var DracoEncoderModule = (function() { var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined; if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename; return ( function(DracoEncoderModule) { DracoEncoderModule = DracoEncoderModule || {}; var Module=typeof DracoEncoderModule!=="undefined"?DracoEncoderModule:{};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]<=4)return true;if(version[0]!=0||version[1]>10)return false;return true}Module["isVersionSupported"]=isVersionSupported;var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram="./this.program";var quit_=function(status,toThrow){throw toThrow};var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string";ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;var nodeFS;var nodePath;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}read_=function shell_read(filename,binary){var ret=tryParseAsDataURI(filename);if(ret){return binary?ret:ret.toString()}if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);return nodeFS["readFileSync"](filename,binary?null:"utf8")};readBinary=function readBinary(filename){var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process["argv"].length>1){thisProgram=process["argv"][1].replace(/\\/g,"/")}arguments_=process["argv"].slice(2);quit_=function(status){process["exit"](status)};Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){read_=function shell_read(f){var data=tryParseAsDataURI(f);if(data){return intArrayToString(data)}return read(f)}}readBinary=function readBinary(f){var data;data=tryParseAsDataURI(f);if(data){return data}if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){arguments_=scriptArgs}else if(typeof arguments!="undefined"){arguments_=arguments}if(typeof quit==="function"){quit_=function(status){quit(status)}}if(typeof print!=="undefined"){if(typeof console==="undefined")console={};console.log=print;console.warn=console.error=typeof printErr!=="undefined"?printErr:print}}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.lastIndexOf("/")+1)}else{scriptDirectory=""}{read_=function shell_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=function 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=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}var data=tryParseAsDataURI(url);if(data){onload(data.buffer);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=function(title){document.title=title}}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var STACK_ALIGN=16;function warnOnce(text){if(!warnOnce.shown)warnOnce.shown={};if(!warnOnce.shown[text]){warnOnce.shown[text]=1;err(text)}}function convertJsFunctionToWasm(func,sig){return func}var freeTableIndexes=[];var functionsInTableMap;function getEmptyTableSlot(){if(freeTableIndexes.length){return freeTableIndexes.pop()}try{wasmTable.grow(1)}catch(err){if(!(err instanceof RangeError)){throw err}throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1}function addFunctionWasm(func,sig){if(!functionsInTableMap){functionsInTableMap=new WeakMap;for(var i=0;i>2]);c=i[e+32>>2];i[e+32>>2]=0;d=i[b+12>>2];i[b+12>>2]=c;if(!d){break a}bi(d);d=i[e+32>>2];i[e+32>>2]=0;if(!d){break a}bi(d);break a}dm(e+32|0,i[b+8>>2]);c=i[e+32>>2];i[e+32>>2]=0;d=i[b+12>>2];i[b+12>>2]=c;if(!d){break a}bi(d);d=i[e+32>>2];i[e+32>>2]=0;if(!d){break a}bi(d)}b:{c:{d:{d=i[b+12>>2];e:{if(!(i[d+40>>2]!=((i[d+4>>2]-i[d>>2]>>2>>>0)/3|0)?d:0)){b=ho(32);i[e+32>>2]=b;i[e+36>>2]=29;i[e+40>>2]=-2147483616;g[b+29|0]=0;d=j[11281]|j[11282]<<8|(j[11283]<<16|j[11284]<<24);c=j[11277]|j[11278]<<8|(j[11279]<<16|j[11280]<<24);g[b+21|0]=c;g[b+22|0]=c>>>8;g[b+23|0]=c>>>16;g[b+24|0]=c>>>24;g[b+25|0]=d;g[b+26|0]=d>>>8;g[b+27|0]=d>>>16;g[b+28|0]=d>>>24;d=j[11276]|j[11277]<<8|(j[11278]<<16|j[11279]<<24);c=j[11272]|j[11273]<<8|(j[11274]<<16|j[11275]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11268]|j[11269]<<8|(j[11270]<<16|j[11271]<<24);c=j[11264]|j[11265]<<8|(j[11266]<<16|j[11267]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11260]|j[11261]<<8|(j[11262]<<16|j[11263]<<24);c=j[11256]|j[11257]<<8|(j[11258]<<16|j[11259]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}bp(i[e+32>>2]);break e}i[b+264>>2]=b;Jb((i[d+28>>2]-i[d+24>>2]>>2)-i[d+44>>2]|0,i[i[b+4>>2]+44>>2]);d=i[b+12>>2];Jb(((i[d+4>>2]-i[d>>2]>>2>>>0)/3|0)-i[d+40>>2]|0,i[i[b+4>>2]+44>>2]);d=i[b+8>>2];c=i[d+100>>2];d=i[d+96>>2];g[e+32|0]=0;q=b+28|0;Uh(q,(c-d|0)/12|0,e+32|0);d=i[b+12>>2];c=i[d+28>>2];d=i[d+24>>2];i[e+32>>2]=-1;Sh(b+52|0,c-d>>2,e+32|0);c=i[b+40>>2];i[b+44>>2]=c;d=i[b+12>>2];f=i[d+4>>2]-i[d>>2]>>2;f=f-((f>>>0)%3|0)|0;f:{if(i[b+48>>2]-c>>2>>>0>=f>>>0){break f}if(f>>>0>=1073741824){break b}h=f<<2;f=ho(h);i[b+44>>2]=f;i[b+40>>2]=f;i[b+48>>2]=f+h;if(!c){break f}bp(c);d=i[b+12>>2]}c=i[d+28>>2];d=i[d+24>>2];g[e+32|0]=0;Uh(b+84|0,c-d>>2,e+32|0);i[b+164>>2]=-1;i[b+168>>2]=0;i[b+100>>2]=i[b+96>>2];i[b+112>>2]=i[b+108>>2];if(i[b+132>>2]){d=i[b+128>>2];if(d){while(1){c=i[d>>2];bp(d);d=c;if(c){continue}break}}i[b+128>>2]=0;c=i[b+124>>2];if(c){d=0;while(1){i[i[b+120>>2]+(d<<2)>>2]=0;d=d+1|0;if((c|0)!=(d|0)){continue}break}}i[b+132>>2]=0}i[b+144>>2]=0;d=i[b+12>>2];c=i[d+28>>2];d=i[d+24>>2];i[e+32>>2]=-1;Sh(b+152|0,c-d>>2,e+32|0);d=i[b+72>>2];i[b+76>>2]=d;c=i[b+12>>2];c=i[c+4>>2]-i[c>>2]>>2;f=(c>>>0)/3|0;g:{if(i[b+80>>2]-d>>2>>>0>=f>>>0){break g}if(c>>>0>=3221225472){break b}f=f<<2;c=ho(f);i[b+76>>2]=c;i[b+72>>2]=c;i[b+80>>2]=c+f;if(!d){break g}bp(d)}i[b- -64>>2]=0;if(!ci(b)){b=ho(32);i[e+32>>2]=b;i[e+36>>2]=29;i[e+40>>2]=-2147483616;g[b+29|0]=0;d=j[11311]|j[11312]<<8|(j[11313]<<16|j[11314]<<24);c=j[11307]|j[11308]<<8|(j[11309]<<16|j[11310]<<24);g[b+21|0]=c;g[b+22|0]=c>>>8;g[b+23|0]=c>>>16;g[b+24|0]=c>>>24;g[b+25|0]=d;g[b+26|0]=d>>>8;g[b+27|0]=d>>>16;g[b+28|0]=d>>>24;d=j[11306]|j[11307]<<8|(j[11308]<<16|j[11309]<<24);c=j[11302]|j[11303]<<8|(j[11304]<<16|j[11305]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11298]|j[11299]<<8|(j[11300]<<16|j[11301]<<24);c=j[11294]|j[11295]<<8|(j[11296]<<16|j[11297]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11290]|j[11291]<<8|(j[11292]<<16|j[11293]<<24);c=j[11286]|j[11287]<<8|(j[11288]<<16|j[11289]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}bp(i[e+32>>2]);break e}if(!di(b)){b=ho(48);i[e+32>>2]=b;i[e+36>>2]=36;i[e+40>>2]=-2147483600;g[b+36|0]=0;d=j[11348]|j[11349]<<8|(j[11350]<<16|j[11351]<<24);g[b+32|0]=d;g[b+33|0]=d>>>8;g[b+34|0]=d>>>16;g[b+35|0]=d>>>24;d=j[11344]|j[11345]<<8|(j[11346]<<16|j[11347]<<24);c=j[11340]|j[11341]<<8|(j[11342]<<16|j[11343]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11336]|j[11337]<<8|(j[11338]<<16|j[11339]<<24);c=j[11332]|j[11333]<<8|(j[11334]<<16|j[11335]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11328]|j[11329]<<8|(j[11330]<<16|j[11331]<<24);c=j[11324]|j[11325]<<8|(j[11326]<<16|j[11327]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11320]|j[11321]<<8|(j[11322]<<16|j[11323]<<24);c=j[11316]|j[11317]<<8|(j[11318]<<16|j[11319]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}bp(i[e+32>>2]);break e}d=(i[b+176>>2]-i[b+172>>2]|0)/136|0;g[e+31|0]=d;c=b;f=i[i[b+4>>2]+44>>2];h=i[f+20>>2];if((h|0)<0?1:(h|0)<=0?l[f+16>>2]<=0:0){ca(f,i[f+4>>2],e+31|0,e+32|0);d=j[e+31|0]}i[c+284>>2]=d&255;c=i[b+12>>2];d=i[c>>2];c=i[c+4>>2];r=b+200|0;ei(r);i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;f=c-d|0;h:{if((f|0)>=1){s=b+96|0;d=d-c|0;d=((d|0)>(f|0)?d:f)>>>2|0;t=d>>>0>1?d:1;d=0;while(1){i:{c=(d>>>0)/3|0;p=c>>>5<<2;o=1<>2]>>2]&o){break i}if(Ql(i[b+12>>2],c)){break i}i[e+24>>2]=0;c=fi(b,c,e+24|0);qf(r,c);f=i[e+24>>2];if(c){c=-1;h=-1;m=-1;j:{if((f|0)==-1){break j}n=i[i[b+12>>2]>>2];c=i[n+(f<<2)>>2];k=f+1|0;k=(k>>>0)%3|0?k:f+ -2|0;if((k|0)!=-1){h=i[n+(k<<2)>>2]}k=f+((f>>>0)%3|0?-1:2)|0;if((k|0)==-1){break j}m=i[n+(k<<2)>>2]}n=i[b+84>>2];k=n+(c>>>3&536870908)|0;i[k>>2]=i[k>>2]|1<>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>2];k=i[b+104>>2];k:{if(c>>>0>>0){i[c>>2]=1;i[b+100>>2]=c+4;break k}h=i[s>>2];n=c-h|0;c=n>>2;m=c+1|0;if(m>>>0>=1073741824){break d}u=c<<2;k=k-h|0;c=k>>1;m=k>>2>>>0<536870911?c>>>0>>0?m:c:1073741823;c=0;l:{if(!m){break l}if(m>>>0>=1073741824){break b}c=ho(m<<2)}k=u+c|0;i[k>>2]=1;m=c+(m<<2)|0;k=k+4|0;if((n|0)>=1){hp(c,h,n)}i[b+104>>2]=m;i[b+100>>2]=k;i[b+96>>2]=c;if(!h){break k}bp(h)}c=p+i[q>>2]|0;i[c>>2]=o|i[c>>2];m=-1;if((f|0)!=-1){c=f+1|0;m=(c>>>0)%3|0?c:f+ -2|0}c=i[e+36>>2];o=i[e+40>>2];m:{if(c>>>0>>0){i[c>>2]=m;i[e+36>>2]=c+4;break m}h=i[e+32>>2];p=c-h|0;k=p>>2;n=k+1|0;if(n>>>0>=1073741824){break c}o=o-h|0;c=o>>1;n=o>>2>>>0<536870911?c>>>0>>0?n:c:1073741823;c=0;n:{if(!n){break n}if(n>>>0>=1073741824){break b}c=ho(n<<2)}o=c+(k<<2)|0;i[o>>2]=m;m=c+(n<<2)|0;n=o+4|0;if((p|0)>=1){hp(c,h,p)}i[e+40>>2]=m;i[e+36>>2]=n;i[e+32>>2]=c;if(!h){break m}bp(h)}if((f|0)==-1){break i}c=f+1|0;c=(c>>>0)%3|0?c:f+ -2|0;if((c|0)==-1){break i}c=i[i[i[b+12>>2]+12>>2]+(c<<2)>>2];if((c|0)==-1){break i}f=(c>>>0)/3|0;if(i[i[q>>2]+(f>>>3&268435452)>>2]>>>f&1){break i}if(gi(b,c)){break i}b=ho(48);i[e+8>>2]=b;i[e+12>>2]=32;i[e+16>>2]=-2147483600;g[b+32|0]=0;d=j[11381]|j[11382]<<8|(j[11383]<<16|j[11384]<<24);c=j[11377]|j[11378]<<8|(j[11379]<<16|j[11380]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11373]|j[11374]<<8|(j[11375]<<16|j[11376]<<24);c=j[11369]|j[11370]<<8|(j[11371]<<16|j[11372]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11365]|j[11366]<<8|(j[11367]<<16|j[11368]<<24);c=j[11361]|j[11362]<<8|(j[11363]<<16|j[11364]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11357]|j[11358]<<8|(j[11359]<<16|j[11360]<<24);c=j[11353]|j[11354]<<8|(j[11355]<<16|j[11356]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}bp(i[e+8>>2]);break h}c=b;if((f|0)!=-1){h=f+1|0;f=(h>>>0)%3|0?h:f+ -2|0}else{f=-1}hi(c,f,1);if(gi(b,i[e+24>>2])){break i}b=ho(48);i[e+8>>2]=b;i[e+12>>2]=32;i[e+16>>2]=-2147483600;g[b+32|0]=0;d=j[11381]|j[11382]<<8|(j[11383]<<16|j[11384]<<24);c=j[11377]|j[11378]<<8|(j[11379]<<16|j[11380]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11373]|j[11374]<<8|(j[11375]<<16|j[11376]<<24);c=j[11369]|j[11370]<<8|(j[11371]<<16|j[11372]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11365]|j[11366]<<8|(j[11367]<<16|j[11368]<<24);c=j[11361]|j[11362]<<8|(j[11363]<<16|j[11364]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11357]|j[11358]<<8|(j[11359]<<16|j[11360]<<24);c=j[11353]|j[11354]<<8|(j[11355]<<16|j[11356]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}bp(i[e+8>>2]);break h}d=d+1|0;if((t|0)!=(d|0)){continue}break}}h=b+72|0;d=i[b+72>>2];f=i[b+76>>2];o:{if((d|0)==(f|0)){break o}c=f+ -4|0;if(c>>>0<=d>>>0){break o}while(1){m=i[d>>2];i[d>>2]=i[c>>2];i[c>>2]=m;d=d+4|0;c=c+ -4|0;if(d>>>0>>0){continue}break}}ii(h,f,i[e+32>>2],i[e+36>>2]);p:{if(i[b+176>>2]==i[b+172>>2]){break p}d=i[b+8>>2];c=i[d+100>>2];d=i[d+96>>2];g[e+8|0]=0;Uh(q,(c-d|0)/12|0,e+8|0);d=i[b+72>>2];c=i[b+76>>2];if((d|0)==(c|0)){break p}while(1){ji(b,i[d>>2]);d=d+4|0;if((c|0)!=(d|0)){continue}break}}ki(r);c=b+232|0;sf(r,c);f=i[b+280>>2];q:{if(!f){break q}d=1;if(i[b+284>>2]<1){break q}sf(f,c);if(i[b+284>>2]<2){break q}while(1){sf(i[b+280>>2]+(d<<5)|0,c);d=d+1|0;if((d|0)>2]){continue}break}}Jb(i[b+272>>2]-i[b+268>>2]>>2,i[i[b+4>>2]+44>>2]);Jb(i[b+168>>2],i[i[b+4>>2]+44>>2]);if(!li(b)){b=ho(32);i[e+8>>2]=b;i[e+12>>2]=28;i[e+16>>2]=-2147483616;g[b+28|0]=0;d=j[11410]|j[11411]<<8|(j[11412]<<16|j[11413]<<24);g[b+24|0]=d;g[b+25|0]=d>>>8;g[b+26|0]=d>>>16;g[b+27|0]=d>>>24;d=j[11406]|j[11407]<<8|(j[11408]<<16|j[11409]<<24);c=j[11402]|j[11403]<<8|(j[11404]<<16|j[11405]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11398]|j[11399]<<8|(j[11400]<<16|j[11401]<<24);c=j[11394]|j[11395]<<8|(j[11396]<<16|j[11397]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11390]|j[11391]<<8|(j[11392]<<16|j[11393]<<24);c=j[11386]|j[11387]<<8|(j[11388]<<16|j[11389]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}bp(i[e+8>>2]);break h}d=i[i[b+4>>2]+44>>2];c=i[d+20>>2];if((c|0)<0?1:(c|0)<=0?l[d+16>>2]<=0:0){ca(d,i[d+4>>2],i[b+232>>2],i[b+236>>2])}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}a=i[e+32>>2];if(!a){break e}i[e+36>>2]=a;bp(a)}F=e+48|0;return}Ho();x()}Ho();x()}za(11708);x()}function vi(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;e=F-48|0;F=e;a:{if(j[b+352|0]){fm(e+32|0,i[b+8>>2]);c=i[e+32>>2];i[e+32>>2]=0;d=i[b+12>>2];i[b+12>>2]=c;if(!d){break a}bi(d);d=i[e+32>>2];i[e+32>>2]=0;if(!d){break a}bi(d);break a}dm(e+32|0,i[b+8>>2]);c=i[e+32>>2];i[e+32>>2]=0;d=i[b+12>>2];i[b+12>>2]=c;if(!d){break a}bi(d);d=i[e+32>>2];i[e+32>>2]=0;if(!d){break a}bi(d)}b:{c:{d:{d=i[b+12>>2];e:{if(!(i[d+40>>2]!=((i[d+4>>2]-i[d>>2]>>2>>>0)/3|0)?d:0)){b=ho(32);i[e+32>>2]=b;i[e+36>>2]=29;i[e+40>>2]=-2147483616;g[b+29|0]=0;d=j[11281]|j[11282]<<8|(j[11283]<<16|j[11284]<<24);c=j[11277]|j[11278]<<8|(j[11279]<<16|j[11280]<<24);g[b+21|0]=c;g[b+22|0]=c>>>8;g[b+23|0]=c>>>16;g[b+24|0]=c>>>24;g[b+25|0]=d;g[b+26|0]=d>>>8;g[b+27|0]=d>>>16;g[b+28|0]=d>>>24;d=j[11276]|j[11277]<<8|(j[11278]<<16|j[11279]<<24);c=j[11272]|j[11273]<<8|(j[11274]<<16|j[11275]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11268]|j[11269]<<8|(j[11270]<<16|j[11271]<<24);c=j[11264]|j[11265]<<8|(j[11266]<<16|j[11267]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11260]|j[11261]<<8|(j[11262]<<16|j[11263]<<24);c=j[11256]|j[11257]<<8|(j[11258]<<16|j[11259]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}bp(i[e+32>>2]);break e}r=b+200|0;wi(r,b);d=i[b+12>>2];Jb((i[d+28>>2]-i[d+24>>2]>>2)-i[d+44>>2]|0,i[i[b+4>>2]+44>>2]);d=i[b+12>>2];Jb(((i[d+4>>2]-i[d>>2]>>2>>>0)/3|0)-i[d+40>>2]|0,i[i[b+4>>2]+44>>2]);d=i[b+8>>2];c=i[d+100>>2];d=i[d+96>>2];g[e+32|0]=0;q=b+28|0;Uh(q,(c-d|0)/12|0,e+32|0);d=i[b+12>>2];c=i[d+28>>2];d=i[d+24>>2];i[e+32>>2]=-1;Sh(b+52|0,c-d>>2,e+32|0);c=i[b+40>>2];i[b+44>>2]=c;d=i[b+12>>2];f=i[d+4>>2]-i[d>>2]>>2;f=f-((f>>>0)%3|0)|0;f:{if(i[b+48>>2]-c>>2>>>0>=f>>>0){break f}if(f>>>0>=1073741824){break b}h=f<<2;f=ho(h);i[b+44>>2]=f;i[b+40>>2]=f;i[b+48>>2]=f+h;if(!c){break f}bp(c);d=i[b+12>>2]}c=i[d+28>>2];d=i[d+24>>2];g[e+32|0]=0;Uh(b+84|0,c-d>>2,e+32|0);i[b+164>>2]=-1;i[b+168>>2]=0;i[b+100>>2]=i[b+96>>2];i[b+112>>2]=i[b+108>>2];if(i[b+132>>2]){d=i[b+128>>2];if(d){while(1){c=i[d>>2];bp(d);d=c;if(c){continue}break}}i[b+128>>2]=0;c=i[b+124>>2];if(c){d=0;while(1){i[i[b+120>>2]+(d<<2)>>2]=0;d=d+1|0;if((c|0)!=(d|0)){continue}break}}i[b+132>>2]=0}i[b+144>>2]=0;d=i[b+12>>2];c=i[d+28>>2];d=i[d+24>>2];i[e+32>>2]=-1;Sh(b+152|0,c-d>>2,e+32|0);d=i[b+72>>2];i[b+76>>2]=d;c=i[b+12>>2];c=i[c+4>>2]-i[c>>2]>>2;f=(c>>>0)/3|0;g:{if(i[b+80>>2]-d>>2>>>0>=f>>>0){break g}if(c>>>0>=3221225472){break b}f=f<<2;c=ho(f);i[b+76>>2]=c;i[b+72>>2]=c;i[b+80>>2]=c+f;if(!d){break g}bp(d)}i[b- -64>>2]=0;if(!ci(b)){b=ho(32);i[e+32>>2]=b;i[e+36>>2]=29;i[e+40>>2]=-2147483616;g[b+29|0]=0;d=j[11311]|j[11312]<<8|(j[11313]<<16|j[11314]<<24);c=j[11307]|j[11308]<<8|(j[11309]<<16|j[11310]<<24);g[b+21|0]=c;g[b+22|0]=c>>>8;g[b+23|0]=c>>>16;g[b+24|0]=c>>>24;g[b+25|0]=d;g[b+26|0]=d>>>8;g[b+27|0]=d>>>16;g[b+28|0]=d>>>24;d=j[11306]|j[11307]<<8|(j[11308]<<16|j[11309]<<24);c=j[11302]|j[11303]<<8|(j[11304]<<16|j[11305]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11298]|j[11299]<<8|(j[11300]<<16|j[11301]<<24);c=j[11294]|j[11295]<<8|(j[11296]<<16|j[11297]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11290]|j[11291]<<8|(j[11292]<<16|j[11293]<<24);c=j[11286]|j[11287]<<8|(j[11288]<<16|j[11289]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}bp(i[e+32>>2]);break e}if(!xi(b)){b=ho(48);i[e+32>>2]=b;i[e+36>>2]=36;i[e+40>>2]=-2147483600;g[b+36|0]=0;d=j[11348]|j[11349]<<8|(j[11350]<<16|j[11351]<<24);g[b+32|0]=d;g[b+33|0]=d>>>8;g[b+34|0]=d>>>16;g[b+35|0]=d>>>24;d=j[11344]|j[11345]<<8|(j[11346]<<16|j[11347]<<24);c=j[11340]|j[11341]<<8|(j[11342]<<16|j[11343]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11336]|j[11337]<<8|(j[11338]<<16|j[11339]<<24);c=j[11332]|j[11333]<<8|(j[11334]<<16|j[11335]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11328]|j[11329]<<8|(j[11330]<<16|j[11331]<<24);c=j[11324]|j[11325]<<8|(j[11326]<<16|j[11327]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11320]|j[11321]<<8|(j[11322]<<16|j[11323]<<24);c=j[11316]|j[11317]<<8|(j[11318]<<16|j[11319]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+32|0);if(g[e+43|0]>-1){break e}bp(i[e+32>>2]);break e}d=(i[b+176>>2]-i[b+172>>2]|0)/136|0;g[e+31|0]=d;c=b;f=i[i[b+4>>2]+44>>2];h=i[f+20>>2];if((h|0)<0?1:(h|0)<=0?l[f+16>>2]<=0:0){ca(f,i[f+4>>2],e+31|0,e+32|0);d=j[e+31|0]}i[c+284>>2]=d&255;c=i[b+12>>2];d=i[c>>2];c=i[c+4>>2];ei(r);i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;f=c-d|0;h:{if((f|0)>=1){s=b+96|0;d=d-c|0;d=((d|0)>(f|0)?d:f)>>>2|0;t=d>>>0>1?d:1;d=0;while(1){i:{c=(d>>>0)/3|0;p=c>>>5<<2;o=1<>2]>>2]&o){break i}if(Ql(i[b+12>>2],c)){break i}i[e+24>>2]=0;c=fi(b,c,e+24|0);qf(r,c);f=i[e+24>>2];if(c){c=-1;h=-1;m=-1;j:{if((f|0)==-1){break j}n=i[i[b+12>>2]>>2];c=i[n+(f<<2)>>2];k=f+1|0;k=(k>>>0)%3|0?k:f+ -2|0;if((k|0)!=-1){h=i[n+(k<<2)>>2]}k=f+((f>>>0)%3|0?-1:2)|0;if((k|0)==-1){break j}m=i[n+(k<<2)>>2]}n=i[b+84>>2];k=n+(c>>>3&536870908)|0;i[k>>2]=i[k>>2]|1<>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>2];k=i[b+104>>2];k:{if(c>>>0>>0){i[c>>2]=1;i[b+100>>2]=c+4;break k}h=i[s>>2];n=c-h|0;c=n>>2;m=c+1|0;if(m>>>0>=1073741824){break d}u=c<<2;k=k-h|0;c=k>>1;m=k>>2>>>0<536870911?c>>>0>>0?m:c:1073741823;c=0;l:{if(!m){break l}if(m>>>0>=1073741824){break b}c=ho(m<<2)}k=u+c|0;i[k>>2]=1;m=c+(m<<2)|0;k=k+4|0;if((n|0)>=1){hp(c,h,n)}i[b+104>>2]=m;i[b+100>>2]=k;i[b+96>>2]=c;if(!h){break k}bp(h)}c=p+i[q>>2]|0;i[c>>2]=o|i[c>>2];m=-1;if((f|0)!=-1){c=f+1|0;m=(c>>>0)%3|0?c:f+ -2|0}c=i[e+36>>2];o=i[e+40>>2];m:{if(c>>>0>>0){i[c>>2]=m;i[e+36>>2]=c+4;break m}h=i[e+32>>2];p=c-h|0;k=p>>2;n=k+1|0;if(n>>>0>=1073741824){break c}o=o-h|0;c=o>>1;n=o>>2>>>0<536870911?c>>>0>>0?n:c:1073741823;c=0;n:{if(!n){break n}if(n>>>0>=1073741824){break b}c=ho(n<<2)}o=c+(k<<2)|0;i[o>>2]=m;m=c+(n<<2)|0;n=o+4|0;if((p|0)>=1){hp(c,h,p)}i[e+40>>2]=m;i[e+36>>2]=n;i[e+32>>2]=c;if(!h){break m}bp(h)}if((f|0)==-1){break i}c=f+1|0;c=(c>>>0)%3|0?c:f+ -2|0;if((c|0)==-1){break i}c=i[i[i[b+12>>2]+12>>2]+(c<<2)>>2];if((c|0)==-1){break i}f=(c>>>0)/3|0;if(i[i[q>>2]+(f>>>3&268435452)>>2]>>>f&1){break i}if(yi(b,c)){break i}b=ho(48);i[e+8>>2]=b;i[e+12>>2]=32;i[e+16>>2]=-2147483600;g[b+32|0]=0;d=j[11381]|j[11382]<<8|(j[11383]<<16|j[11384]<<24);c=j[11377]|j[11378]<<8|(j[11379]<<16|j[11380]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11373]|j[11374]<<8|(j[11375]<<16|j[11376]<<24);c=j[11369]|j[11370]<<8|(j[11371]<<16|j[11372]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11365]|j[11366]<<8|(j[11367]<<16|j[11368]<<24);c=j[11361]|j[11362]<<8|(j[11363]<<16|j[11364]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11357]|j[11358]<<8|(j[11359]<<16|j[11360]<<24);c=j[11353]|j[11354]<<8|(j[11355]<<16|j[11356]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}bp(i[e+8>>2]);break h}c=b;if((f|0)!=-1){h=f+1|0;f=(h>>>0)%3|0?h:f+ -2|0}else{f=-1}hi(c,f,1);if(yi(b,i[e+24>>2])){break i}b=ho(48);i[e+8>>2]=b;i[e+12>>2]=32;i[e+16>>2]=-2147483600;g[b+32|0]=0;d=j[11381]|j[11382]<<8|(j[11383]<<16|j[11384]<<24);c=j[11377]|j[11378]<<8|(j[11379]<<16|j[11380]<<24);g[b+24|0]=c;g[b+25|0]=c>>>8;g[b+26|0]=c>>>16;g[b+27|0]=c>>>24;g[b+28|0]=d;g[b+29|0]=d>>>8;g[b+30|0]=d>>>16;g[b+31|0]=d>>>24;d=j[11373]|j[11374]<<8|(j[11375]<<16|j[11376]<<24);c=j[11369]|j[11370]<<8|(j[11371]<<16|j[11372]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11365]|j[11366]<<8|(j[11367]<<16|j[11368]<<24);c=j[11361]|j[11362]<<8|(j[11363]<<16|j[11364]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11357]|j[11358]<<8|(j[11359]<<16|j[11360]<<24);c=j[11353]|j[11354]<<8|(j[11355]<<16|j[11356]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}bp(i[e+8>>2]);break h}d=d+1|0;if((t|0)!=(d|0)){continue}break}}h=b+72|0;d=i[b+72>>2];f=i[b+76>>2];o:{if((d|0)==(f|0)){break o}c=f+ -4|0;if(c>>>0<=d>>>0){break o}while(1){m=i[d>>2];i[d>>2]=i[c>>2];i[c>>2]=m;d=d+4|0;c=c+ -4|0;if(d>>>0>>0){continue}break}}ii(h,f,i[e+32>>2],i[e+36>>2]);p:{if(i[b+176>>2]==i[b+172>>2]){break p}d=i[b+8>>2];c=i[d+100>>2];d=i[d+96>>2];g[e+8|0]=0;Uh(q,(c-d|0)/12|0,e+8|0);d=i[b+72>>2];c=i[b+76>>2];if((d|0)==(c|0)){break p}while(1){ji(b,i[d>>2]);d=d+4|0;if((c|0)!=(d|0)){continue}break}}zi(r);Jb(i[b+324>>2],i[i[b+4>>2]+44>>2]);Jb(i[b+168>>2],i[i[b+4>>2]+44>>2]);if(!li(b)){b=ho(32);i[e+8>>2]=b;i[e+12>>2]=28;i[e+16>>2]=-2147483616;g[b+28|0]=0;d=j[11410]|j[11411]<<8|(j[11412]<<16|j[11413]<<24);g[b+24|0]=d;g[b+25|0]=d>>>8;g[b+26|0]=d>>>16;g[b+27|0]=d>>>24;d=j[11406]|j[11407]<<8|(j[11408]<<16|j[11409]<<24);c=j[11402]|j[11403]<<8|(j[11404]<<16|j[11405]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;g[b+20|0]=d;g[b+21|0]=d>>>8;g[b+22|0]=d>>>16;g[b+23|0]=d>>>24;d=j[11398]|j[11399]<<8|(j[11400]<<16|j[11401]<<24);c=j[11394]|j[11395]<<8|(j[11396]<<16|j[11397]<<24);g[b+8|0]=c;g[b+9|0]=c>>>8;g[b+10|0]=c>>>16;g[b+11|0]=c>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[11390]|j[11391]<<8|(j[11392]<<16|j[11393]<<24);c=j[11386]|j[11387]<<8|(j[11388]<<16|j[11389]<<24);g[b|0]=c;g[b+1|0]=c>>>8;g[b+2|0]=c>>>16;g[b+3|0]=c>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;i[a>>2]=-1;ro(a+4|0,e+8|0);if(g[e+19|0]>-1){break h}bp(i[e+8>>2]);break h}d=i[i[b+4>>2]+44>>2];c=i[d+20>>2];if((c|0)<0?1:(c|0)<=0?l[d+16>>2]<=0:0){ca(d,i[d+4>>2],i[b+232>>2],i[b+236>>2])}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}a=i[e+32>>2];if(!a){break e}i[e+36>>2]=a;bp(a)}F=e+48|0;return}Ho();x()}Ho();x()}za(11708);x()}function ap(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0;p=F-16|0;F=p;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(a>>>0<=244){g=i[4823];f=a>>>0<11?16:a+11&-8;a=f>>>3|0;b=g>>>a|0;if(b&3){c=a+((b^-1)&1)|0;f=c<<3;b=i[f+19340>>2];a=b+8|0;d=i[b+8>>2];f=f+19332|0;m:{if((d|0)==(f|0)){q=19292,r=yp(-2,c)&g,i[q>>2]=r;break m}i[d+12>>2]=f;i[f+8>>2]=d}c=c<<3;i[b+4>>2]=c|3;b=b+c|0;i[b+4>>2]=i[b+4>>2]|1;break a}k=i[4825];if(f>>>0<=k>>>0){break l}if(b){b=b<>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;c=(c|b)+(a>>>b|0)|0;d=c<<3;b=i[d+19340>>2];a=i[b+8>>2];d=d+19332|0;n:{if((a|0)==(d|0)){g=yp(-2,c)&g;i[4823]=g;break n}i[a+12>>2]=d;i[d+8>>2]=a}a=b+8|0;i[b+4>>2]=f|3;e=b+f|0;c=c<<3;f=c-f|0;i[e+4>>2]=f|1;i[b+c>>2]=f;if(k){c=k>>>3|0;b=(c<<3)+19332|0;d=i[4828];c=1<>2]}i[b+8>>2]=d;i[c+12>>2]=d;i[d+12>>2]=b;i[d+8>>2]=c}i[4828]=e;i[4825]=f;break a}n=i[4824];if(!n){break l}a=(n&0-n)+ -1|0;b=a>>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;b=i[((c|b)+(a>>>b|0)<<2)+19596>>2];e=(i[b+4>>2]&-8)-f|0;c=b;while(1){p:{a=i[c+16>>2];if(!a){a=i[c+20>>2];if(!a){break p}}d=(i[a+4>>2]&-8)-f|0;c=d>>>0>>0;e=c?d:e;b=c?a:b;c=a;continue}break}o=b+f|0;if(o>>>0<=b>>>0){break k}m=i[b+24>>2];d=i[b+12>>2];if((d|0)!=(b|0)){a=i[b+8>>2];i[a+12>>2]=d;i[d+8>>2]=a;break b}c=b+20|0;a=i[c>>2];if(!a){a=i[b+16>>2];if(!a){break j}c=b+16|0}while(1){h=c;d=a;c=a+20|0;a=i[c>>2];if(a){continue}c=d+16|0;a=i[d+16>>2];if(a){continue}break}i[h>>2]=0;break b}f=-1;if(a>>>0>4294967231){break l}a=a+11|0;f=a&-8;k=i[4824];if(!k){break l}h=31;e=0-f|0;if(f>>>0<=16777215){b=a>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;g=c<>>16&2;a=(g<>>15|0)-(c|(a|b))|0;h=(a<<1|f>>>a+21&1)+28|0}c=i[(h<<2)+19596>>2];q:{r:{s:{if(!c){a=0;break s}a=0;b=f<<((h|0)==31?0:25-(h>>>1|0)|0);while(1){t:{g=(i[c+4>>2]&-8)-f|0;if(g>>>0>=e>>>0){break t}d=c;e=g;if(e){break t}e=0;a=c;break r}g=i[c+20>>2];c=i[((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|d)){a=2<>>12&16;c=b;a=a>>>b|0;b=a>>>5&8;c=c|b;a=a>>>b|0;b=a>>>2&4;c=c|b;a=a>>>b|0;b=a>>>1&2;c=c|b;a=a>>>b|0;b=a>>>1&1;a=i[((c|b)+(a>>>b|0)<<2)+19596>>2]}if(!a){break q}}while(1){c=(i[a+4>>2]&-8)-f|0;b=c>>>0>>0;e=b?c:e;d=b?a:d;b=i[a+16>>2];if(b){a=b}else{a=i[a+20>>2]}if(a){continue}break}}if(!d|e>>>0>=i[4825]-f>>>0){break l}h=d+f|0;if(h>>>0<=d>>>0){break k}m=i[d+24>>2];b=i[d+12>>2];if((d|0)!=(b|0)){a=i[d+8>>2];i[a+12>>2]=b;i[b+8>>2]=a;break c}c=d+20|0;a=i[c>>2];if(!a){a=i[d+16>>2];if(!a){break i}c=d+16|0}while(1){g=c;b=a;c=a+20|0;a=i[c>>2];if(a){continue}c=b+16|0;a=i[b+16>>2];if(a){continue}break}i[g>>2]=0;break c}b=i[4825];if(b>>>0>=f>>>0){a=i[4828];c=b-f|0;u:{if(c>>>0>=16){i[4825]=c;d=a+f|0;i[4828]=d;i[d+4>>2]=c|1;i[a+b>>2]=c;i[a+4>>2]=f|3;break u}i[4828]=0;i[4825]=0;i[a+4>>2]=b|3;b=a+b|0;i[b+4>>2]=i[b+4>>2]|1}a=a+8|0;break a}d=i[4826];if(d>>>0>f>>>0){b=d-f|0;i[4826]=b;a=i[4829];c=a+f|0;i[4829]=c;i[c+4>>2]=b|1;i[a+4>>2]=f|3;a=a+8|0;break a}a=0;e=f+47|0;c=e;if(i[4941]){b=i[4943]}else{i[4944]=-1;i[4945]=-1;i[4942]=4096;i[4943]=4096;i[4941]=p+12&-16^1431655768;i[4946]=0;i[4934]=0;b=4096}g=c+b|0;h=0-b|0;c=g&h;if(c>>>0<=f>>>0){break a}b=i[4933];if(b){k=i[4931];m=k+c|0;if(m>>>0<=k>>>0|m>>>0>b>>>0){break a}}if(j[19736]&4){break f}v:{w:{b=i[4829];if(b){a=19740;while(1){k=i[a>>2];if(k+i[a+4>>2]>>>0>b>>>0?k>>>0<=b>>>0:0){break w}a=i[a+8>>2];if(a){continue}break}}b=cp(0);if((b|0)==-1){break g}g=c;a=i[4942];d=a+ -1|0;if(d&b){g=(c-b|0)+(b+d&0-a)|0}if(g>>>0<=f>>>0|g>>>0>2147483646){break g}a=i[4933];if(a){d=i[4931];h=d+g|0;if(h>>>0<=d>>>0|h>>>0>a>>>0){break g}}a=cp(g);if((b|0)!=(a|0)){break v}break e}g=h&g-d;if(g>>>0>2147483646){break g}b=cp(g);if((b|0)==(i[a>>2]+i[a+4>>2]|0)){break h}a=b}if(!((a|0)==-1|f+48>>>0<=g>>>0)){b=i[4943];b=b+(e-g|0)&0-b;if(b>>>0>2147483646){b=a;break e}if((cp(b)|0)!=-1){g=b+g|0;b=a;break e}cp(0-g|0);break g}b=a;if((a|0)!=-1){break e}break g}x()}d=0;break b}b=0;break c}if((b|0)!=-1){break e}}i[4934]=i[4934]|4}if(c>>>0>2147483646){break d}b=cp(c);a=cp(0);if(b>>>0>=a>>>0|(b|0)==-1|(a|0)==-1){break d}g=a-b|0;if(g>>>0<=f+40>>>0){break d}}a=i[4931]+g|0;i[4931]=a;if(a>>>0>l[4932]){i[4932]=a}x:{y:{z:{e=i[4829];if(e){a=19740;while(1){c=i[a>>2];d=i[a+4>>2];if((c+d|0)==(b|0)){break z}a=i[a+8>>2];if(a){continue}break}break y}a=i[4827];if(!(b>>>0>=a>>>0?a:0)){i[4827]=b}a=0;i[4936]=g;i[4935]=b;i[4831]=-1;i[4832]=i[4941];i[4938]=0;while(1){c=a<<3;d=c+19332|0;i[c+19340>>2]=d;i[c+19344>>2]=d;a=a+1|0;if((a|0)!=32){continue}break}a=g+ -40|0;c=b+8&7?-8-b&7:0;d=a-c|0;i[4826]=d;c=b+c|0;i[4829]=c;i[c+4>>2]=d|1;i[(a+b|0)+4>>2]=40;i[4830]=i[4945];break x}if(j[a+12|0]&8|b>>>0<=e>>>0|c>>>0>e>>>0){break y}i[a+4>>2]=d+g;a=e+8&7?-8-e&7:0;b=a+e|0;i[4829]=b;c=i[4826]+g|0;a=c-a|0;i[4826]=a;i[b+4>>2]=a|1;i[(c+e|0)+4>>2]=40;i[4830]=i[4945];break x}d=i[4827];if(b>>>0>>0){i[4827]=b;d=0}c=b+g|0;a=19740;A:{B:{C:{D:{E:{F:{while(1){if((c|0)!=i[a>>2]){a=i[a+8>>2];if(a){continue}break F}break}if(!(j[a+12|0]&8)){break E}}a=19740;while(1){c=i[a>>2];if(c>>>0<=e>>>0){d=c+i[a+4>>2]|0;if(d>>>0>e>>>0){break D}}a=i[a+8>>2];continue}}i[a>>2]=b;i[a+4>>2]=i[a+4>>2]+g;m=(b+8&7?-8-b&7:0)+b|0;i[m+4>>2]=f|3;b=c+(c+8&7?-8-c&7:0)|0;a=(b-m|0)-f|0;h=f+m|0;if((b|0)==(e|0)){i[4829]=h;a=i[4826]+a|0;i[4826]=a;i[h+4>>2]=a|1;break B}if(i[4828]==(b|0)){i[4828]=h;a=i[4825]+a|0;i[4825]=a;i[h+4>>2]=a|1;i[a+h>>2]=a;break B}c=i[b+4>>2];if((c&3)==1){n=c&-8;G:{if(c>>>0<=255){f=c>>>3|0;c=i[b+8>>2];d=i[b+12>>2];if((d|0)==(c|0)){q=19292,r=i[4823]&yp(-2,f),i[q>>2]=r;break G}i[c+12>>2]=d;i[d+8>>2]=c;break G}k=i[b+24>>2];g=i[b+12>>2];H:{if((g|0)!=(b|0)){c=i[b+8>>2];i[c+12>>2]=g;i[g+8>>2]=c;break H}I:{e=b+20|0;f=i[e>>2];if(f){break I}e=b+16|0;f=i[e>>2];if(f){break I}g=0;break H}while(1){c=e;g=f;e=f+20|0;f=i[e>>2];if(f){continue}e=g+16|0;f=i[g+16>>2];if(f){continue}break}i[c>>2]=0}if(!k){break G}c=i[b+28>>2];d=(c<<2)+19596|0;J:{if(i[d>>2]==(b|0)){i[d>>2]=g;if(g){break J}q=19296,r=i[4824]&yp(-2,c),i[q>>2]=r;break G}i[k+(i[k+16>>2]==(b|0)?16:20)>>2]=g;if(!g){break G}}i[g+24>>2]=k;c=i[b+16>>2];if(c){i[g+16>>2]=c;i[c+24>>2]=g}c=i[b+20>>2];if(!c){break G}i[g+20>>2]=c;i[c+24>>2]=g}b=b+n|0;a=a+n|0}i[b+4>>2]=i[b+4>>2]&-2;i[h+4>>2]=a|1;i[a+h>>2]=a;if(a>>>0<=255){b=a>>>3|0;a=(b<<3)+19332|0;c=i[4823];b=1<>2]}i[a+8>>2]=h;i[b+12>>2]=h;i[h+12>>2]=a;i[h+8>>2]=b;break B}e=31;if(a>>>0<=16777215){c=a>>>8|0;b=c+1048320>>>16&8;d=c<>>16&4;f=d<>>16&2;b=(f<>>15|0)-(d|(b|c))|0;e=(b<<1|a>>>b+21&1)+28|0}i[h+28>>2]=e;i[h+16>>2]=0;i[h+20>>2]=0;b=(e<<2)+19596|0;c=i[4824];d=1<>2]=h;i[h+24>>2]=b;break L}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=i[b>>2];while(1){c=b;if((i[b+4>>2]&-8)==(a|0)){break C}b=e>>>29|0;e=e<<1;d=(c+(b&4)|0)+16|0;b=i[d>>2];if(b){continue}break}i[d>>2]=h;i[h+24>>2]=c}i[h+12>>2]=h;i[h+8>>2]=h;break B}a=g+ -40|0;c=b+8&7?-8-b&7:0;h=a-c|0;i[4826]=h;c=b+c|0;i[4829]=c;i[c+4>>2]=h|1;i[(a+b|0)+4>>2]=40;i[4830]=i[4945];a=(d+(d+ -39&7?39-d&7:0)|0)+ -47|0;c=a>>>0>>0?e:a;i[c+4>>2]=27;a=i[4938];i[c+16>>2]=i[4937];i[c+20>>2]=a;a=i[4936];i[c+8>>2]=i[4935];i[c+12>>2]=a;i[4937]=c+8;i[4936]=g;i[4935]=b;i[4938]=0;a=c+24|0;while(1){i[a+4>>2]=7;b=a+8|0;a=a+4|0;if(d>>>0>b>>>0){continue}break}if((c|0)==(e|0)){break x}i[c+4>>2]=i[c+4>>2]&-2;d=c-e|0;i[e+4>>2]=d|1;i[c>>2]=d;if(d>>>0<=255){b=d>>>3|0;a=(b<<3)+19332|0;c=i[4823];b=1<>2]}i[a+8>>2]=e;i[b+12>>2]=e;i[e+12>>2]=a;i[e+8>>2]=b;break x}a=31;i[e+16>>2]=0;i[e+20>>2]=0;if(d>>>0<=16777215){b=d>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;g=c<>>16&2;a=(g<>>15|0)-(c|(a|b))|0;a=(a<<1|d>>>a+21&1)+28|0}i[e+28>>2]=a;b=(a<<2)+19596|0;c=i[4824];g=1<>2]=e;i[e+24>>2]=b;break N}a=d<<((a|0)==31?0:25-(a>>>1|0)|0);b=i[b>>2];while(1){c=b;if((d|0)==(i[b+4>>2]&-8)){break A}b=a>>>29|0;a=a<<1;g=(c+(b&4)|0)+16|0;b=i[g>>2];if(b){continue}break}i[g>>2]=e;i[e+24>>2]=c}i[e+12>>2]=e;i[e+8>>2]=e;break x}a=i[c+8>>2];i[a+12>>2]=h;i[c+8>>2]=h;i[h+24>>2]=0;i[h+12>>2]=c;i[h+8>>2]=a}a=m+8|0;break a}a=i[c+8>>2];i[a+12>>2]=e;i[c+8>>2]=e;i[e+24>>2]=0;i[e+12>>2]=c;i[e+8>>2]=a}a=i[4826];if(a>>>0<=f>>>0){break d}b=a-f|0;i[4826]=b;a=i[4829];c=a+f|0;i[4829]=c;i[c+4>>2]=b|1;i[a+4>>2]=f|3;a=a+8|0;break a}i[4805]=48;a=0;break a}O:{if(!m){break O}a=i[d+28>>2];c=(a<<2)+19596|0;P:{if(i[c>>2]==(d|0)){i[c>>2]=b;if(b){break P}k=yp(-2,a)&k;i[4824]=k;break O}i[m+(i[m+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break O}}i[b+24>>2]=m;a=i[d+16>>2];if(a){i[b+16>>2]=a;i[a+24>>2]=b}a=i[d+20>>2];if(!a){break O}i[b+20>>2]=a;i[a+24>>2]=b}Q:{if(e>>>0<=15){a=e+f|0;i[d+4>>2]=a|3;a=a+d|0;i[a+4>>2]=i[a+4>>2]|1;break Q}i[d+4>>2]=f|3;i[h+4>>2]=e|1;i[e+h>>2]=e;if(e>>>0<=255){b=e>>>3|0;a=(b<<3)+19332|0;c=i[4823];b=1<>2]}i[a+8>>2]=h;i[b+12>>2]=h;i[h+12>>2]=a;i[h+8>>2]=b;break Q}a=31;if(e>>>0<=16777215){b=e>>>8|0;a=b+1048320>>>16&8;c=b<>>16&4;f=c<>>16&2;a=(f<>>15|0)-(c|(a|b))|0;a=(a<<1|e>>>a+21&1)+28|0}i[h+28>>2]=a;i[h+16>>2]=0;i[h+20>>2]=0;b=(a<<2)+19596|0;S:{c=1<>2]=h;break T}a=e<<((a|0)==31?0:25-(a>>>1|0)|0);f=i[b>>2];while(1){b=f;if((i[b+4>>2]&-8)==(e|0)){break S}c=a>>>29|0;a=a<<1;c=(b+(c&4)|0)+16|0;f=i[c>>2];if(f){continue}break}i[c>>2]=h}i[h+24>>2]=b;i[h+12>>2]=h;i[h+8>>2]=h;break Q}a=i[b+8>>2];i[a+12>>2]=h;i[b+8>>2]=h;i[h+24>>2]=0;i[h+12>>2]=b;i[h+8>>2]=a}a=d+8|0;break a}U:{if(!m){break U}a=i[b+28>>2];c=(a<<2)+19596|0;V:{if(i[c>>2]==(b|0)){i[c>>2]=d;if(d){break V}q=19296,r=yp(-2,a)&n,i[q>>2]=r;break U}i[(i[m+16>>2]==(b|0)?16:20)+m>>2]=d;if(!d){break U}}i[d+24>>2]=m;a=i[b+16>>2];if(a){i[d+16>>2]=a;i[a+24>>2]=d}a=i[b+20>>2];if(!a){break U}i[d+20>>2]=a;i[a+24>>2]=d}W:{if(e>>>0<=15){a=e+f|0;i[b+4>>2]=a|3;a=a+b|0;i[a+4>>2]=i[a+4>>2]|1;break W}i[b+4>>2]=f|3;i[o+4>>2]=e|1;i[e+o>>2]=e;if(k){c=k>>>3|0;a=(c<<3)+19332|0;d=i[4828];c=1<>2]}i[a+8>>2]=d;i[c+12>>2]=d;i[d+12>>2]=a;i[d+8>>2]=c}i[4828]=o;i[4825]=e}a=b+8|0}F=p+16|0;return a|0}function Cn(a,b,c,d,e,f,g,h,j){var k=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=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;o=F-192|0;F=o;A=h;J=j&65535;q=d;t=e&65535;D=(e^j)&-2147483648;p=j>>>16&32767;a:{w=e>>>16&32767;b:{c:{if(p+ -1>>>0<32766?w+ -1>>>0<=32765:0){break c}n=e&2147483647;k=n;m=d;if(!(!d&(k|0)==2147418112?!(b|c):(k|0)==2147418112&d>>>0<0|k>>>0<2147418112)){L=d;D=e|32768;break b}n=j&2147483647;e=n;d=h;if(!(!d&(e|0)==2147418112?!(f|g):(e|0)==2147418112&d>>>0<0|e>>>0<2147418112)){L=h;D=j|32768;b=f;c=g;break b}if(!(b|m|(k^2147418112|c))){if(!(d|f|(e^2147418112|g))){b=0;c=0;D=2147450880;break b}D=D|2147418112;b=0;c=0;break b}if(!(d|f|(e^2147418112|g))){b=0;c=0;break b}if(!(b|m|(c|k))){break a}if(!(d|f|(e|g))){D=D|2147418112;b=0;c=0;break b}if((k|0)==65535|k>>>0<65535){j=b;d=!(q|t);h=d<<6;k=r(d?b:q)+32|0;b=r(d?c:t);b=h+((b|0)==32?k:b)|0;sn(o+176|0,j,c,q,t,b+ -15|0);l=16-b|0;q=i[o+184>>2];t=i[o+188>>2];c=i[o+180>>2];b=i[o+176>>2]}if(e>>>0>65535){break c}d=!(A|J);e=d<<6;h=r(d?f:A)+32|0;d=r(d?g:J);d=e+((d|0)==32?h:d)|0;sn(o+160|0,f,g,A,J,d+ -15|0);l=(d+l|0)+ -16|0;A=i[o+168>>2];J=i[o+172>>2];f=i[o+160>>2];g=i[o+164>>2]}e=J|65536;K=e;P=A;d=A;n=e<<15|d>>>17;d=d<<15|g>>>17;h=-102865788-d|0;e=n;k=e;j=1963258675-(k+(4192101508>>0)|0)|0;Bn(o+144|0,d,k,h,j);m=i[o+152>>2];Bn(o+128|0,0-m|0,0-(i[o+156>>2]+(0>>0)|0)|0,h,j);h=i[o+136>>2];j=h<<1|i[o+132>>2]>>>31;h=i[o+140>>2]<<1|h>>>31;Bn(o+112|0,j,h,d,k);m=h;h=i[o+120>>2];Bn(o+96|0,j,m,0-h|0,0-(i[o+124>>2]+(0>>0)|0)|0);h=i[o+104>>2];j=h<<1|i[o+100>>2]>>>31;h=i[o+108>>2]<<1|h>>>31;Bn(o+80|0,j,h,d,k);m=h;h=i[o+88>>2];Bn(o- -64|0,j,m,0-h|0,0-(i[o+92>>2]+(0>>0)|0)|0);h=i[o+72>>2];j=h<<1|i[o+68>>2]>>>31;h=i[o+76>>2]<<1|h>>>31;Bn(o+48|0,j,h,d,k);m=h;h=i[o+56>>2];Bn(o+32|0,j,m,0-h|0,0-(i[o+60>>2]+(0>>0)|0)|0);h=i[o+40>>2];j=h<<1|i[o+36>>2]>>>31;h=i[o+44>>2]<<1|h>>>31;Bn(o+16|0,j,h,d,k);k=h;h=i[o+24>>2];Bn(o,j,k,0-h|0,0-(i[o+28>>2]+(0>>0)|0)|0);N=(w-p|0)+l|0;h=i[o+8>>2];m=i[o+12>>2]<<1|h>>>31;j=h<<1;n=m+ -1|0;j=(i[o+4>>2]>>>31|j)+ -1|0;if((j|0)!=-1){n=n+1|0}h=j;m=0;B=m;s=e;l=0;w=up(h,m,e,l);e=H;u=e;y=n;p=0;h=d;m=up(n,p,d,0);d=m+w|0;k=H+e|0;e=d;k=d>>>0>>0?k+1|0:k;m=0;n=(k|0)==(u|0)&e>>>0>>0|k>>>0>>0;w=up(s,l,y,p);l=w+k|0;k=H+(m|n)|0;k=l>>>0>>0?k+1|0:k;m=l;n=e;e=0;h=up(j,B,h,v);d=e+h|0;l=H+n|0;l=d>>>0>>0?l+1|0:l;w=d;h=d;d=l;e=(n|0)==(d|0)&h>>>0>>0|d>>>0>>0;h=m+e|0;if(h>>>0>>0){k=k+1|0}C=h;h=k;e=g;z=(e&131071)<<15|f>>>17;s=up(j,B,z,0);e=H;v=e;k=f;x=k<<15&-32768;k=up(y,p,x,0);m=k+s|0;l=H+e|0;l=m>>>0>>0?l+1|0:l;e=l;G=up(j,B,x,G);x=0+G|0;k=m;l=k+H|0;l=x>>>0>>0?l+1|0:l;l=(k|0)==(l|0)&x>>>0>>0|l>>>0>>0;k=(e|0)==(v|0)&k>>>0>>0|e>>>0>>0;m=e;e=up(y,p,z,E)+e|0;n=k+H|0;n=e>>>0>>0?n+1|0:n;k=e;e=l+k|0;m=n;m=e>>>0>>0?m+1|0:m;n=e;e=w+e|0;k=m+d|0;k=e>>>0>>0?k+1|0:k;l=h;u=k;d=(d|0)==(k|0)&e>>>0>>0|k>>>0>>0;h=d+C|0;if(h>>>0>>0){l=l+1|0}k=l;d=(e|0)!=0|(u|0)!=0;h=h+d|0;if(h>>>0>>0){k=k+1|0}n=h;h=0-h|0;s=0;w=up(h,s,j,B);d=H;v=d;x=up(y,p,h,s);h=H;C=h;z=0-((0>>0)+k|0)|0;k=0;s=up(j,B,z,k);n=s+x|0;l=H+h|0;l=n>>>0>>0?l+1|0:l;h=n;m=h;s=0+w|0;n=d+m|0;n=s>>>0>>0?n+1|0:n;m=s;d=n;n=(v|0)==(d|0)&m>>>0>>0|d>>>0>>0;m=(l|0)==(C|0)&h>>>0>>0|l>>>0>>0;h=up(y,p,z,k)+l|0;k=m+H|0;k=h>>>0>>0?k+1|0:k;m=h;h=n+m|0;if(h>>>0>>0){k=k+1|0}z=h;h=k;n=s;m=0-((0>>0)+u|0)|0;e=0-e|0;E=m;u=0;C=up(m,u,j,B);x=H;v=e;G=0;m=up(e,G,y,p);e=m+C|0;l=H+x|0;l=e>>>0>>0?l+1|0:l;m=e;e=l;v=up(j,B,v,G);j=0+v|0;k=m;l=k+H|0;l=j>>>0>>0?l+1|0:l;l=(k|0)==(l|0)&j>>>0>>0|l>>>0>>0;k=(e|0)==(x|0)&k>>>0>>0|e>>>0>>0;j=e;e=up(E,u,y,p)+e|0;m=k+H|0;m=e>>>0>>0?m+1|0:m;j=e;e=l+e|0;k=m;k=e>>>0>>0?k+1|0:k;j=e;e=e+n|0;k=k+d|0;k=e>>>0>>0?k+1|0:k;j=e;l=h;e=k;d=(d|0)==(k|0)&j>>>0>>0|k>>>0>>0;h=d+z|0;if(h>>>0>>0){l=l+1|0}d=h;k=l;l=d;n=e+ -1|0;d=j+ -2|0;if(d>>>0<4294967294){n=n+1|0}h=d;m=d;d=n;e=(e|0)==(d|0)&m>>>0>>0|d>>>0>>0;j=l+e|0;if(j>>>0>>0){k=k+1|0}e=j+ -1|0;l=k+ -1|0;l=(e|0)!=-1?l+1|0:l;j=0;y=j;p=e;m=q;x=m<<2|c>>>30;z=0;u=up(e,j,x,z);j=H;m=j;j=c;E=(j&1073741823)<<2|b>>>30;w=0;G=l;j=0;k=up(E,w,l,j);e=k+u|0;n=H+m|0;n=e>>>0>>0?n+1|0:n;k=e;s=n;v=(m|0)==(n|0)&k>>>0>>0|n>>>0>>0;m=n;n=0;u=n;l=0;C=d;I=((t&1073741823)<<2|q>>>30)&-262145|262144;e=up(d,n,I,0);d=e+k|0;m=H+m|0;m=d>>>0>>0?m+1|0:m;q=d;e=m;d=(s|0)==(e|0)&d>>>0>>0|e>>>0>>0;m=d+v|0;if(m>>>0>>0){l=1}c=m;m=up(G,j,I,M);d=c+m|0;k=H+l|0;s=d;n=d>>>0>>0?k+1|0:k;l=up(p,y,I,M);k=H;t=up(x,z,G,j);d=t+l|0;m=H+k|0;m=d>>>0>>0?m+1|0:m;t=d;d=m;m=(k|0)==(d|0)&t>>>0>>0|d>>>0>>0;s=d+s|0;l=m+n|0;k=s;m=k>>>0>>0?l+1|0:l;c=k;n=e+t|0;l=0;d=l+q|0;if(d>>>0>>0){n=n+1|0}t=d;k=d;d=n;e=(e|0)==(d|0)&k>>>0>>0|d>>>0>>0;k=c+e|0;if(k>>>0>>0){m=m+1|0}Q=k;e=t;l=d;q=up(E,w,C,u);n=H;s=h;v=up(h,0,x,z);h=v+q|0;k=H+n|0;k=h>>>0>>0?k+1|0:k;B=h;v=h;h=k;q=(n|0)==(k|0)&v>>>0>>0|k>>>0>>0;c=e;k=0;S=q;O=b<<2&-4;q=up(p,y,O,0);e=q+v|0;n=H+h|0;n=e>>>0>>0?n+1|0:n;v=e;q=e;e=n;h=(h|0)==(e|0)&q>>>0>>0|e>>>0>>0;n=S+h|0;if(n>>>0>>0){k=1}h=c+n|0;l=k+l|0;l=h>>>0>>0?l+1|0:l;q=h;n=m;h=l;d=(d|0)==(l|0)&q>>>0>>0|l>>>0>>0;m=d+Q|0;if(m>>>0>>0){n=n+1|0}c=m;t=q;B=h;Q=up(G,j,O,R);G=H;j=up(s,T,I,M);d=j+Q|0;m=H+G|0;m=d>>>0>>0?m+1|0:m;I=d;k=up(x,z,C,u);d=d+k|0;j=m;l=m+H|0;l=d>>>0>>0?l+1|0:l;x=d;m=up(p,y,E,w);d=d+m|0;k=H+l|0;p=d;k=d>>>0>>0?k+1|0:k;y=0;m=n;d=k;k=(k|0)==(l|0)&p>>>0>>0|k>>>0>>0;n=(j|0)==(G|0)&I>>>0>>0|j>>>0>>0;j=(j|0)==(l|0)&x>>>0>>0|l>>>0>>0;n=n+j|0;n>>>0>>0;l=n;j=k+l|0;l=j;k=d|0;j=k+t|0;l=(l|y)+B|0;l=j>>>0>>0?l+1|0:l;B=j;t=l;h=(h|0)==(l|0)&j>>>0>>0|l>>>0>>0;j=h+c|0;if(j>>>0>>0){m=m+1|0}z=j;j=m;q=B;y=t;l=v;C=up(C,u,O,R);u=H;m=up(E,w,s,T);h=m+C|0;n=H+u|0;n=h>>>0>>0?n+1|0:n;m=n;n=0;k=(m|0)==(u|0)&h>>>0>>0|m>>>0>>0;h=m+l|0;l=(k|n)+e|0;l=h>>>0>>0?l+1|0:l;m=h;k=m;k=(e|0)==(l|0)&k>>>0>>0|l>>>0>>0;e=l;c=k;l=p;p=0;d=p+m|0;k=e+l|0;k=d>>>0

>>0?k+1|0:k;d=(e|0)==(k|0)&d>>>0>>0|k>>>0>>0;e=c+d|0;if(e>>>0>>0){n=1}d=e+q|0;m=n+y|0;h=d;k=j;m=d>>>0>>0?m+1|0:m;j=m;d=(t|0)==(m|0)&d>>>0>>0|m>>>0>>0;e=d+z|0;if(e>>>0>>0){k=k+1|0}d=e;e=k;d:{if((k|0)==131071|k>>>0<131071){m=h;y=0;x=0;n=up(m,y,f,x);l=H;k=b<<17;b=0;c=(n|0)!=0|(l|0)!=0;q=b-c|0;I=k-(b>>>0>>0)|0;w=0-n|0;u=0-((0>>0)+l|0)|0;c=0;z=up(j,c,f,x);b=H;E=b;p=0;l=up(m,y,g,p);k=l+z|0;n=H+b|0;n=k>>>0>>0?n+1|0:n;b=k;l=k;s=0;k=s;v=l;k=(l|0)==(u|0)&w>>>0>>0|u>>>0>>0;B=q-k|0;q=I-(q>>>0>>0)|0;k=up(d,0,f,x);l=H;t=up(m,y,A,0);k=t+k|0;m=H+l|0;m=k>>>0>>0?m+1|0:m;t=up(j,c,g,p);k=t+k|0;l=H+m|0;l=k>>>0>>0?l+1|0:l;m=l;l=(n|0)==(E|0)&b>>>0>>0|n>>>0>>0;b=n+k|0;l=l+m|0;l=b>>>0>>0?l+1|0:l;n=b;b=l;m=up(h,j,K,0);l=H;t=n;n=up(f,g,e,0);m=n+m|0;k=H+l|0;k=m>>>0>>0?k+1|0:k;n=up(d,e,g,p);m=n+m|0;l=H+k|0;k=m;m=up(j,c,A,J);c=k+m|0;k=c;m=0;c=t+m|0;k=b+k|0;b=c;t=B-b|0;c=q-((B>>>0>>0)+(b>>>0>>0?k+1|0:k)|0)|0;N=N+ -1|0;A=w-s|0;b=u-((w>>>0>>0)+v|0)|0;break d}B=j>>>1|0;n=0;m=b<<16;c=0;l=d<<31;h=(j&1)<<31|h>>>1;j=j>>>1|l;z=0;p=f;E=0;b=up(h,z,p,E);k=H;l=k;k=(b|0)!=0|(k|0)!=0;u=c-k|0;M=m-(c>>>0>>0)|0;s=0-b|0;v=0-((0>>0)+l|0)|0;q=0;w=up(h,z,g,q);b=H;I=b;m=n;l=e<<31|d>>>1;n=d<<31|B;O=l|m;m=up(n,0,p,E);c=m+w|0;k=H+b|0;k=c>>>0>>0?k+1|0:k;b=k;k=c;x=k;y=0;m=(k|0)==(v|0)&s>>>0>>0|v>>>0>>0;C=u-m|0;u=M-(u>>>0>>0)|0;m=up(h,j,K,0);l=H;k=up(p,g,e>>>1|0,0);m=k+m|0;l=H+l|0;l=m>>>0>>0?l+1|0:l;d=(e&1)<<31|d>>>1;e=e>>>1|0;M=up(d,e,g,q);m=M+m|0;k=H+l|0;l=up(n,O,A,J);m=l+m|0;J=0;k=up(g,q,n,R);l=H;p=up(d,0,p,E);n=p+k|0;k=H+l|0;k=n>>>0

>>0?k+1|0:k;A=up(h,z,A,0);n=A+n|0;l=H+k|0;l=n>>>0>>0?l+1|0:l;A=n;n=((b|0)==(I|0)&c>>>0>>0|b>>>0>>0)+l|0;c=b;b=b+A|0;if(b>>>0>>0){n=n+1|0}c=b;b=b+J|0;k=m+n|0;k=b>>>0>>0?k+1|0:k;t=C-b|0;c=u-((C>>>0>>0)+k|0)|0;A=s-y|0;b=v-((s>>>0>>0)+x|0)|0}if((N|0)>=16384){D=D|2147418112;b=0;c=0;break b}m=N+16383|0;if((N|0)<=-16383){e:{if(m){break e}m=j;p=A;l=b<<1|p>>>31;n=p<<1;g=(g|0)==(l|0)&n>>>0>f>>>0|l>>>0>g>>>0;n=e&65535;f=t;l=c<<1|f>>>31;c=f<<1|b>>>31;e=c;b=(e|0)==(P|0)&(l|0)==(K|0)?g:(K|0)==(l|0)&e>>>0>P>>>0|l>>>0>K>>>0;c=b+h|0;if(c>>>0>>0){m=m+1|0}b=c;e=b;c=m;e=d+((j|0)==(m|0)&e>>>0>>0|m>>>0>>0)|0;if(e>>>0>>0){n=n+1|0}d=n;if(!(d&65536)){break e}L=e|L;D=d|D;break b}b=0;c=0;break b}k=j;e=e&65535;p=A;n=b<<1|p>>>31;p=p<<1;g=(g|0)==(n|0)&p>>>0>=f>>>0|n>>>0>g>>>0;f=t;n=c<<1|f>>>31;c=f<<1|b>>>31;b=(c|0)==(P|0)&(n|0)==(K|0)?g:(K|0)==(n|0)&c>>>0>=P>>>0|n>>>0>K>>>0;c=b+h|0;if(c>>>0>>0){k=k+1|0}b=c;c=k;f=d;d=((j|0)==(k|0)&b>>>0>>0|k>>>0>>0)+d|0;k=m<<16|e;L=d|L;D=D|(d>>>0>>0?k+1|0:k)}i[a>>2]=b;i[a+4>>2]=c;i[a+8>>2]=L;i[a+12>>2]=D;F=o+192|0;return}i[a>>2]=0;i[a+4>>2]=0;b=!(d|f|(e|g));i[a+8>>2]=b?0:L;i[a+12>>2]=b?2147450880:D;F=o+192|0}function Gd(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 h=0,k=0,l=0,m=0,n=0,p=0,r=0,t=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0;k=F-224|0;F=k;i[a+8>>2]=e;l=a+32|0;h=i[l>>2];f=i[a+36>>2]-h>>2;a:{if(f>>>0>>0){Bd(l,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=h+(e<<2)}b:{if(!d){break b}m=1;h=i[b>>2];c:{if((d|0)<=1){l=h;break c}l=h;while(1){f=i[(m<<2)+b>>2];n=(f|0)<(l|0);l=n?f:l;h=n?h:(f|0)>(h|0)?f:h;m=m+1|0;if((m|0)!=(d|0)){continue}break}}i[a+16>>2]=h;i[a+12>>2]=l;d=l;f=(h>>31)-((h>>>0>>0)+(d>>31)|0)|0;d=h-d|0;if(!f&d>>>0>2147483646|f>>>0>0){break b}d=d+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}W=i[a+52>>2];y=i[a+48>>2];i[k+184>>2]=0;i[k+188>>2]=0;i[k+176>>2]=0;i[k+180>>2]=0;i[k+168>>2]=0;i[k+172>>2]=0;d=k+160|0;i[d>>2]=0;i[d+4>>2]=0;i[k+152>>2]=0;i[k+156>>2]=0;i[k+144>>2]=0;i[k+148>>2]=0;d:{if(!e){m=0;d=0;break d}Bd(k+144|0,e);m=i[d>>2];d=i[k+156>>2]}f=m-d>>2;e:{if(f>>>0>=e>>>0){if(f>>>0<=e>>>0){break e}i[k+160>>2]=d+(e<<2);break e}Bd(k+144|12,e-f|0)}f=i[k+168>>2];d=i[k+172>>2]-f>>2;f:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break f}i[k+172>>2]=f+(e<<2);break f}Bd(k+168|0,e-d|0)}f=i[k+180>>2];d=i[k+184>>2]-f>>2;g:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break g}i[k+184>>2]=f+(e<<2);break g}Bd(k+180|0,e-d|0)}i[k+136>>2]=0;i[k+128>>2]=0;i[k+132>>2]=0;h:{i:{if(e){if(e>>>0>=1073741824){break i}d=e<<2;f=ho(d);i[k+128>>2]=f;l=d+f|0;i[k+136>>2]=l;ip(f,0,d);i[k+132>>2]=l}K=a+152|0;f=i[a+152>>2];d=i[a+156>>2]-f>>2;j:{if(d>>>0>>0){Bd(K,e-d|0);break j}if(d>>>0<=e>>>0){break j}i[a+156>>2]=f+(e<<2)}i[k+104>>2]=0;i[k+108>>2]=0;i[k+96>>2]=0;i[k+100>>2]=0;i[k+88>>2]=0;i[k+92>>2]=0;i[k+80>>2]=0;i[k+84>>2]=0;i[k+72>>2]=0;i[k+76>>2]=0;d=k- -64|0;i[d>>2]=0;i[d+4>>2]=0;i[k+56>>2]=0;i[k+60>>2]=0;i[k+48>>2]=0;i[k+52>>2]=0;if(e){d=e<<2;C=ho(d);d=ip(C,0,d)+d|0}else{d=0}f=i[a+56>>2];m=i[f>>2];f=i[f+4>>2]-m|0;if((f|0)<5){break h}P=d;J=f>>>2|0;l=J+ -1|0;if(f>>2>>>0>l>>>0){Q=e<<2;L=a+112|0;X=k+125|0;R=k+36|0;S=k+24|0;M=k+20|0;Y=M+24|0;T=M+16|0;G=(e|0)<1;while(1){n=0;D=l;d=i[(l<<2)+m>>2];k:{if((d|0)==-1){break k}r=d+((d>>>0)%3|0?-1:2)|0;z=r>>>5|0;l=1;B=1<>2];p=0;m=d;while(1){l:{if(i[I+(m>>>3&536870908)>>2]>>>m&1){break l}f=i[i[i[y+64>>2]+12>>2]+(m<<2)>>2];if((f|0)==-1){break l}n=i[W>>2];h=i[y+28>>2];A=i[n+(i[h+(f<<2)>>2]<<2)>>2];if((A|0)>=(D|0)){break l}t=f+1|0;t=i[n+(i[h+(((t>>>0)%3|0?t:f+ -2|0)<<2)>>2]<<2)>>2];if((t|0)>=(D|0)){break l}f=i[n+(i[h+(f+((f>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((f|0)>=(D|0)){break l}if(!G){n=i[(k+144|0)+o(p,12)>>2];f=o(e,f);t=o(e,t);A=o(e,A);h=0;while(1){i[n+(h<<2)>>2]=(i[(f+h<<2)+b>>2]+i[(h+t<<2)+b>>2]|0)-i[(h+A<<2)+b>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}n=4;p=p+1|0;if((p|0)==4){break k}}m:{if(l&1){h=-1;f=m+1|0;f=(f>>>0)%3|0?f:m+ -2|0;if((f|0)==-1|i[i[y>>2]+(f>>>3&536870908)>>2]>>>f&1){break m}f=i[i[i[y+64>>2]+12>>2]+(f<<2)>>2];if((f|0)==-1){break m}h=f+1|0;h=(h>>>0)%3|0?h:f+ -2|0;break m}h=-1;f=((m>>>0)%3|0?-1:2)+m|0;if((f|0)==-1|i[i[y>>2]+(f>>>3&536870908)>>2]>>>f&1){break m}f=i[i[i[y+64>>2]+12>>2]+(f<<2)>>2];if((f|0)==-1){break m}if((f>>>0)%3|0){h=f+ -1|0;break m}h=f+2|0}if((d|0)==(h|0)){n=p;break k}m=h;f=(h|0)!=-1;h=(f|l^-1)&1;m=h?m:-1;l=f&l;if(!((r|0)==-1|h)){if(B&i[i[y>>2]+(z<<2)>>2]){n=p;break k}f=i[i[i[y+64>>2]+12>>2]+(r<<2)>>2];if((f|0)==-1){n=p;break k}if((f>>>0)%3|0){m=f+ -1|0}else{m=f+2|0}l=0}n=p;if((m|0)!=-1){continue}break}}m=0;g[k+16|0]=0;i[k+8>>2]=0;i[k+12>>2]=0;i[Y>>2]=0;i[T>>2]=0;i[T+4>>2]=0;d=M;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;U=o(e,D)<<2;I=U+b|0;p=(o(J+ -2|0,e)<<2)+b|0;h=i[a+152>>2];l=0;if(!G){while(1){f=l<<2;d=i[f+p>>2]-i[f+I>>2]|0;i[f+C>>2]=d;i[f+h>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;f=d;d=d>>31;m=(f+d^d)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}dg(k+200|0,L,h,e);d=gg(k+200|0);l=H;h=hg(k+200|0);f=h+d|0;d=H+l|0;d=f>>>0>>0?d+1|0:d;l=f;N=(n|0)<1;if(!N){r=(n<<3)+ -8|0;h=r+(k+48|0)|0;z=h;O=h;f=i[h+4>>2];B=i[h>>2];h=n;B=B+h|0;if(B>>>0>>0){f=f+1|0}h=B;i[O>>2]=h;i[z+4>>2]=f;w=v(bg(h,i[r+(k+80|0)>>2])*(+(h>>>0)+ +(f|0)*4294967296));n:{if(q(w)<0x8000000000000000){h=q(w)>=1?w>0?~~s(u(w*2.3283064365386963e-10),4294967295)>>>0:~~v((w- +(~~w>>>0>>>0))*2.3283064365386963e-10)>>>0:0;f=~~w>>>0;break n}h=-2147483648;f=0}d=d+h|0;f=f+l|0;if(f>>>0>>0){d=d+1|0}l=f}i[k+20>>2]=0;g[k+16|0]=0;i[k+8>>2]=l;i[k+12>>2]=m;ra(S,p,p+Q|0);Hd(R,C,P);if(!N){z=(k+124|0)+n|0;B=z+ -2|0;r=z+ -1|0;d=(n<<3)+ -8|0;V=d+(k+48|0)|0;O=d+(k+80|0)|0;p=1;A=0;while(1){ip(k+124|0,1,n);A=A+1|0;ip(k+124|0,0,A);o:{p:while(1){if(!G){ip(i[k+128>>2],0,Q)}d=0;f=i[k+128>>2];t=0;while(1){if(!j[(k+124|0)+d|0]){if(!G){l=i[(k+144|0)+o(d,12)>>2];h=0;while(1){m=h<<2;E=m+f|0;i[E>>2]=i[E>>2]+i[l+m>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}t=1<>2];while(1){f=d+(h<<2)|0;i[f>>2]=i[f>>2]/(p|0);h=h+1|0;if((h|0)!=(e|0)){continue}break}if((e|0)>0){break r}}f=i[a+152>>2];m=0;break q}E=i[k+128>>2];f=i[a+152>>2];m=0;l=0;while(1){h=l<<2;d=i[h+E>>2]-i[h+I>>2]|0;i[h+C>>2]=d;i[f+h>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;h=d;d=d>>31;m=(h+d^d)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}dg(k+200|0,L,f,e);f=gg(k+200|0)+hg(k+200|0)|0;h=f;if((n|0)>0){d=i[V+4>>2];f=i[V>>2];w=v(bg(f,i[O>>2]+p|0)*(+(f>>>0)+ +(d|0)*4294967296));s:{if(q(w)<0x8000000000000000){d=~~w>>>0;break s}d=0}h=d+h|0}d=i[k+8>>2];if(!((h|0)>(d|0)|(m|0)>=i[k+12>>2]?(h|0)>=(d|0):0)){i[k+20>>2]=p;g[k+16|0]=t;i[k+8>>2]=h;i[k+12>>2]=m;Hd(S,i[k+128>>2],i[k+132>>2]);Hd(R,C,P)}if((r|0)==(k+124|0)){break o}m=-1;d=j[r|0];h=d;while(1){l=h&255;f=m+ -1|0;t=f+z|0;h=j[t|0];if(h>>>0>>0){f=r;l=z;if(h>>>0>=(d&255)>>>0){while(1){d=f;f=d+ -1|0;E=l+ -2|0;l=d;if(h>>>0>=j[E|0]){continue}break}d=1}l=m+z|0;g[t|0]=d;g[f|0]=h;h=r;if((m|0)==-1){continue p}while(1){d=j[l|0];g[l|0]=j[h|0];g[h|0]=d;l=l+1|0;h=h+ -1|0;if(l>>>0>>0){continue}break}continue p}m=f;if((t|0)!=(k+124|0)){continue}break}break}if(r>>>0<=k+124>>>0){break o}f=j[k+124|0];g[k+124|0]=d;g[r|0]=f;m=X;h=B;if(m>>>0>=h>>>0){break o}while(1){d=j[m|0];g[m|0]=j[h|0];g[h|0]=d;m=m+1|0;h=h+ -1|0;if(m>>>0>>0){continue}break}}p=p+1|0;if((n|0)!=(A|0)){continue}break}}if((n|0)>0){d=((n<<3)+k|0)+72|0;l=d;h=i[k+20>>2];f=h+i[d>>2]|0;d=i[d+4>>2]+(h>>31)|0;i[l>>2]=f;i[l+4>>2]=f>>>0>>0?d+1|0:d}t:{if((e|0)<=0){l=i[K>>2];break t}l=i[K>>2];h=0;f=i[k+36>>2];while(1){m=h<<2;d=i[m+f>>2];i[l+m>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;h=h+1|0;if((h|0)!=(e|0)){continue}break}}fg(k+200|0,L,l,e);u:{if(N){break u}d=o(n,12)+a|0;r=d+56|0;l=d+52|0;d=d+48|0;m=0;while(1){v:{p=i[r>>2];f=p<<5;h=i[l>>2];w:{if(!(j[k+16|0]>>>m&1)){if((f|0)==(h|0)){if((h+1|0)<=-1){break v}f=d;if(h>>>0<=1073741822){h=h+32&-32;p=p<<6;h=p>>>0>>0?h:p}else{h=2147483647}bd(f,h);h=i[l>>2]}i[l>>2]=h+1;f=i[d>>2]+(h>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>>0<=1073741822){h=h+32&-32;p=p<<6;h=p>>>0>>0?h:p}else{h=2147483647}bd(f,h);h=i[l>>2]}i[l>>2]=h+1;f=i[d>>2]+(h>>>3&536870908)|0;p=i[f>>2];Z=f,_=yp(-2,h)&p,i[Z>>2]=_}m=m+1|0;if((n|0)!=(m|0)){continue}break u}break}Ho();x()}m=i[a+8>>2];if((m|0)>=1){p=c+U|0;d=i[k+24>>2];n=0;while(1){h=0;x:{if((m|0)<=0){f=i[a+32>>2];break x}while(1){l=h<<2;m=i[l+d>>2];r=i[a+16>>2];y:{if((m|0)>(r|0)){f=i[a+32>>2];i[l+f>>2]=r;break y}f=i[a+32>>2];l=l+f|0;r=i[a+12>>2];if((m|0)<(r|0)){i[l>>2]=r;break y}i[l>>2]=m}h=h+1|0;if((h|0)>2]){continue}break}}l=n<<2;d=l+p|0;l=i[l+I>>2]-i[f+l>>2]|0;i[d>>2]=l;z:{if((l|0)>2]){h=l+i[a+20>>2]|0}else{if((l|0)<=i[a+24>>2]){break z}h=l-i[a+20>>2]|0}i[d>>2]=h}d=f;n=n+1|0;m=i[a+8>>2];if((n|0)<(m|0)){continue}break}}d=i[k+36>>2];if(d){i[k+40>>2]=d;bp(d)}d=i[k+24>>2];if(d){i[k+28>>2]=d;bp(d)}if((J|0)<3){break h}J=D;d=i[a+56>>2];m=i[d>>2];l=D+ -1|0;if(i[d+4>>2]-m>>2>>>0>l>>>0){continue}break}}Io();x()}Ho();x()}if((e|0)>=1){ip(i[k+144>>2],0,e<<2)}m=i[a+8>>2];if((m|0)>=1){f=i[k+144>>2];d=0;while(1){h=0;A:{if((m|0)<=0){m=i[a+32>>2];break A}while(1){e=h<<2;l=i[e+f>>2];n=i[a+16>>2];B:{if((l|0)>(n|0)){m=i[a+32>>2];i[e+m>>2]=n;break B}m=i[a+32>>2];e=e+m|0;n=i[a+12>>2];if((l|0)<(n|0)){i[e>>2]=n;break B}i[e>>2]=l}h=h+1|0;if((h|0)>2]){continue}break}}f=d<<2;e=f+c|0;f=i[b+f>>2]-i[f+m>>2]|0;i[e>>2]=f;C:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break C}f=f-i[a+20>>2]|0}i[e>>2]=f}f=m;d=d+1|0;m=i[a+8>>2];if((d|0)<(m|0)){continue}break}}if(C){bp(C)}a=i[k+128>>2];if(a){i[k+132>>2]=a;bp(a)}a=i[k+180>>2];if(a){i[k+184>>2]=a;bp(a)}a=i[k+168>>2];if(a){i[k+172>>2]=a;bp(a)}a=i[k+156>>2];if(a){i[k+160>>2]=a;bp(a)}a=i[k+144>>2];if(a){i[k+148>>2]=a;bp(a)}F=k+224|0;return 1}function de(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 h=0,k=0,l=0,m=0,n=0,p=0,r=0,t=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0;k=F-224|0;F=k;i[a+8>>2]=e;l=a+32|0;h=i[l>>2];f=i[a+36>>2]-h>>2;a:{if(f>>>0>>0){Bd(l,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=h+(e<<2)}b:{if(!d){break b}m=1;h=i[b>>2];c:{if((d|0)<=1){l=h;break c}l=h;while(1){f=i[(m<<2)+b>>2];n=(f|0)<(l|0);l=n?f:l;h=n?h:(f|0)>(h|0)?f:h;m=m+1|0;if((m|0)!=(d|0)){continue}break}}i[a+16>>2]=h;i[a+12>>2]=l;d=l;f=(h>>31)-((h>>>0>>0)+(d>>31)|0)|0;d=h-d|0;if(!f&d>>>0>2147483646|f>>>0>0){break b}d=d+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}V=i[a+52>>2];N=i[a+48>>2];i[k+184>>2]=0;i[k+188>>2]=0;i[k+176>>2]=0;i[k+180>>2]=0;i[k+168>>2]=0;i[k+172>>2]=0;d=k+160|0;i[d>>2]=0;i[d+4>>2]=0;i[k+152>>2]=0;i[k+156>>2]=0;i[k+144>>2]=0;i[k+148>>2]=0;d:{if(!e){m=0;d=0;break d}Bd(k+144|0,e);m=i[d>>2];d=i[k+156>>2]}f=m-d>>2;e:{if(f>>>0>=e>>>0){if(f>>>0<=e>>>0){break e}i[k+160>>2]=d+(e<<2);break e}Bd(k+144|12,e-f|0)}f=i[k+168>>2];d=i[k+172>>2]-f>>2;f:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break f}i[k+172>>2]=f+(e<<2);break f}Bd(k+168|0,e-d|0)}f=i[k+180>>2];d=i[k+184>>2]-f>>2;g:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break g}i[k+184>>2]=f+(e<<2);break g}Bd(k+180|0,e-d|0)}i[k+136>>2]=0;i[k+128>>2]=0;i[k+132>>2]=0;h:{i:{if(e){if(e>>>0>=1073741824){break i}d=e<<2;f=ho(d);i[k+128>>2]=f;l=d+f|0;i[k+136>>2]=l;ip(f,0,d);i[k+132>>2]=l}J=a+152|0;f=i[a+152>>2];d=i[a+156>>2]-f>>2;j:{if(d>>>0>>0){Bd(J,e-d|0);break j}if(d>>>0<=e>>>0){break j}i[a+156>>2]=f+(e<<2)}i[k+104>>2]=0;i[k+108>>2]=0;i[k+96>>2]=0;i[k+100>>2]=0;i[k+88>>2]=0;i[k+92>>2]=0;i[k+80>>2]=0;i[k+84>>2]=0;i[k+72>>2]=0;i[k+76>>2]=0;d=k- -64|0;i[d>>2]=0;i[d+4>>2]=0;i[k+56>>2]=0;i[k+60>>2]=0;i[k+48>>2]=0;i[k+52>>2]=0;if(e){d=e<<2;A=ho(d);d=ip(A,0,d)+d|0}else{d=0}f=i[a+56>>2];m=i[f>>2];f=i[f+4>>2]-m|0;if((f|0)<5){break h}O=d;I=f>>>2|0;l=I+ -1|0;if(f>>2>>>0>l>>>0){P=e<<2;K=a+112|0;W=k+125|0;Q=k+36|0;R=k+24|0;L=k+20|0;X=L+24|0;S=L+16|0;G=(e|0)<1;while(1){n=0;B=l;l=i[(l<<2)+m>>2];k:{if((l|0)==-1){break k}m=i[N+12>>2];C=l+((l>>>0)%3|0?-1:2)|0;D=m+(C<<2)|0;t=1;p=0;d=l;while(1){h=i[m+(d<<2)>>2];l:{if((h|0)==-1){break l}f=-1;r=i[V>>2];n=i[N>>2];y=i[r+(i[n+(h<<2)>>2]<<2)>>2];w=h+1|0;w=(w>>>0)%3|0?w:h+ -2|0;if((w|0)!=-1){w=i[n+(w<<2)>>2]}else{w=-1}h=h+((h>>>0)%3|0?-1:2)|0;if((h|0)!=-1){f=i[n+(h<<2)>>2]}if((y|0)>=(B|0)){break l}h=i[(w<<2)+r>>2];if((h|0)>=(B|0)){break l}f=i[r+(f<<2)>>2];if((f|0)>=(B|0)){break l}n=i[(k+144|0)+o(p,12)>>2];if(!G){f=o(e,f);r=o(e,h);y=o(e,y);h=0;while(1){i[n+(h<<2)>>2]=(i[(f+h<<2)+b>>2]+i[(h+r<<2)+b>>2]|0)-i[(h+y<<2)+b>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}n=4;p=p+1|0;if((p|0)==4){break k}}m:{if(t&1){n=d+1|0;d=(n>>>0)%3|0?n:d+ -2|0;f=-1;if((d|0)==-1){break m}d=i[m+(d<<2)>>2];f=-1;if((d|0)==-1){break m}f=d+1|0;f=(f>>>0)%3|0?f:d+ -2|0;break m}d=((d>>>0)%3|0?-1:2)+d|0;f=-1;if((d|0)==-1){break m}d=i[m+(d<<2)>>2];f=-1;if((d|0)==-1){break m}f=d+ -1|0;if((d>>>0)%3|0){break m}f=d+2|0}if((f|0)==(l|0)){n=p;break k}d=f;f=(f|0)!=-1;h=(f|t^-1)&1;d=h?d:-1;t=f&t;if(!((C|0)==-1|h)){f=i[D>>2];if((f|0)==-1){n=p;break k}t=0;if((f>>>0)%3|0){d=f+ -1|0}else{d=f+2|0}}n=p;if((d|0)!=-1){continue}break}}m=0;g[k+16|0]=0;i[k+8>>2]=0;i[k+12>>2]=0;i[X>>2]=0;i[S>>2]=0;i[S+4>>2]=0;d=L;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;T=o(e,B)<<2;C=T+b|0;p=(o(I+ -2|0,e)<<2)+b|0;h=i[a+152>>2];l=0;if(!G){while(1){f=l<<2;d=i[f+p>>2]-i[f+C>>2]|0;i[f+A>>2]=d;i[f+h>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;f=d;d=d>>31;m=(f+d^d)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}dg(k+200|0,K,h,e);d=gg(k+200|0);l=H;h=hg(k+200|0);f=h+d|0;d=H+l|0;d=f>>>0>>0?d+1|0:d;l=f;M=(n|0)<1;if(!M){r=(n<<3)+ -8|0;h=r+(k+48|0)|0;y=h;t=h;f=i[h+4>>2];w=i[h>>2];h=n;w=w+h|0;if(w>>>0>>0){f=f+1|0}h=w;i[t>>2]=h;i[y+4>>2]=f;z=v(bg(h,i[r+(k+80|0)>>2])*(+(h>>>0)+ +(f|0)*4294967296));n:{if(q(z)<0x8000000000000000){h=q(z)>=1?z>0?~~s(u(z*2.3283064365386963e-10),4294967295)>>>0:~~v((z- +(~~z>>>0>>>0))*2.3283064365386963e-10)>>>0:0;f=~~z>>>0;break n}h=-2147483648;f=0}d=d+h|0;f=f+l|0;if(f>>>0>>0){d=d+1|0}l=f}i[k+20>>2]=0;g[k+16|0]=0;i[k+8>>2]=l;i[k+12>>2]=m;ra(R,p,p+P|0);Hd(Q,A,O);if(!M){y=(k+124|0)+n|0;w=y+ -2|0;r=y+ -1|0;d=(n<<3)+ -8|0;U=d+(k+48|0)|0;Y=d+(k+80|0)|0;p=1;D=0;while(1){ip(k+124|0,1,n);D=D+1|0;ip(k+124|0,0,D);o:{p:while(1){if(!G){ip(i[k+128>>2],0,P)}d=0;f=i[k+128>>2];t=0;while(1){if(!j[(k+124|0)+d|0]){if(!G){l=i[(k+144|0)+o(d,12)>>2];h=0;while(1){m=h<<2;E=m+f|0;i[E>>2]=i[E>>2]+i[l+m>>2];h=h+1|0;if((h|0)!=(e|0)){continue}break}}t=1<>2];while(1){f=d+(h<<2)|0;i[f>>2]=i[f>>2]/(p|0);h=h+1|0;if((h|0)!=(e|0)){continue}break}if((e|0)>0){break r}}f=i[a+152>>2];m=0;break q}E=i[k+128>>2];f=i[a+152>>2];m=0;l=0;while(1){h=l<<2;d=i[h+E>>2]-i[h+C>>2]|0;i[h+A>>2]=d;i[f+h>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;h=d;d=d>>31;m=(h+d^d)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}dg(k+200|0,K,f,e);f=gg(k+200|0)+hg(k+200|0)|0;h=f;if((n|0)>0){d=i[U+4>>2];f=i[U>>2];z=v(bg(f,i[Y>>2]+p|0)*(+(f>>>0)+ +(d|0)*4294967296));s:{if(q(z)<0x8000000000000000){d=~~z>>>0;break s}d=0}h=d+h|0}d=i[k+8>>2];if(!((h|0)>(d|0)|(m|0)>=i[k+12>>2]?(h|0)>=(d|0):0)){i[k+20>>2]=p;g[k+16|0]=t;i[k+8>>2]=h;i[k+12>>2]=m;Hd(R,i[k+128>>2],i[k+132>>2]);Hd(Q,A,O)}if((r|0)==(k+124|0)){break o}m=-1;d=j[r|0];h=d;while(1){l=h&255;f=m+ -1|0;t=f+y|0;h=j[t|0];if(h>>>0>>0){f=r;l=y;if(h>>>0>=(d&255)>>>0){while(1){d=f;f=d+ -1|0;E=l+ -2|0;l=d;if(h>>>0>=j[E|0]){continue}break}d=1}l=m+y|0;g[t|0]=d;g[f|0]=h;h=r;if((m|0)==-1){continue p}while(1){d=j[l|0];g[l|0]=j[h|0];g[h|0]=d;l=l+1|0;h=h+ -1|0;if(l>>>0>>0){continue}break}continue p}m=f;if((t|0)!=(k+124|0)){continue}break}break}if(r>>>0<=k+124>>>0){break o}f=j[k+124|0];g[k+124|0]=d;g[r|0]=f;m=W;h=w;if(m>>>0>=h>>>0){break o}while(1){d=j[m|0];g[m|0]=j[h|0];g[h|0]=d;m=m+1|0;h=h+ -1|0;if(m>>>0>>0){continue}break}}p=p+1|0;if((n|0)!=(D|0)){continue}break}}if((n|0)>0){d=((n<<3)+k|0)+72|0;l=d;h=i[k+20>>2];f=h+i[d>>2]|0;d=i[d+4>>2]+(h>>31)|0;i[l>>2]=f;i[l+4>>2]=f>>>0>>0?d+1|0:d}t:{if((e|0)<=0){l=i[J>>2];break t}l=i[J>>2];h=0;f=i[k+36>>2];while(1){m=h<<2;d=i[m+f>>2];i[l+m>>2]=(d|0)>-1?d<<1:(d^-1)<<1|1;h=h+1|0;if((h|0)!=(e|0)){continue}break}}fg(k+200|0,K,l,e);u:{if(M){break u}d=o(n,12)+a|0;r=d+56|0;l=d+52|0;d=d+48|0;m=0;while(1){v:{p=i[r>>2];f=p<<5;h=i[l>>2];w:{if(!(j[k+16|0]>>>m&1)){if((f|0)==(h|0)){if((h+1|0)<=-1){break v}f=d;if(h>>>0<=1073741822){h=h+32&-32;p=p<<6;h=p>>>0>>0?h:p}else{h=2147483647}bd(f,h);h=i[l>>2]}i[l>>2]=h+1;f=i[d>>2]+(h>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>>0<=1073741822){h=h+32&-32;p=p<<6;h=p>>>0>>0?h:p}else{h=2147483647}bd(f,h);h=i[l>>2]}i[l>>2]=h+1;f=i[d>>2]+(h>>>3&536870908)|0;p=i[f>>2];Z=f,_=yp(-2,h)&p,i[Z>>2]=_}m=m+1|0;if((n|0)!=(m|0)){continue}break u}break}Ho();x()}m=i[a+8>>2];if((m|0)>=1){p=c+T|0;d=i[k+24>>2];n=0;while(1){h=0;x:{if((m|0)<=0){f=i[a+32>>2];break x}while(1){l=h<<2;m=i[l+d>>2];r=i[a+16>>2];y:{if((m|0)>(r|0)){f=i[a+32>>2];i[l+f>>2]=r;break y}f=i[a+32>>2];l=l+f|0;r=i[a+12>>2];if((m|0)<(r|0)){i[l>>2]=r;break y}i[l>>2]=m}h=h+1|0;if((h|0)>2]){continue}break}}l=n<<2;d=l+p|0;l=i[l+C>>2]-i[f+l>>2]|0;i[d>>2]=l;z:{if((l|0)>2]){h=l+i[a+20>>2]|0}else{if((l|0)<=i[a+24>>2]){break z}h=l-i[a+20>>2]|0}i[d>>2]=h}d=f;n=n+1|0;m=i[a+8>>2];if((n|0)<(m|0)){continue}break}}d=i[k+36>>2];if(d){i[k+40>>2]=d;bp(d)}d=i[k+24>>2];if(d){i[k+28>>2]=d;bp(d)}if((I|0)<3){break h}I=B;d=i[a+56>>2];m=i[d>>2];l=B+ -1|0;if(i[d+4>>2]-m>>2>>>0>l>>>0){continue}break}}Io();x()}Ho();x()}if((e|0)>=1){ip(i[k+144>>2],0,e<<2)}m=i[a+8>>2];if((m|0)>=1){f=i[k+144>>2];d=0;while(1){h=0;A:{if((m|0)<=0){m=i[a+32>>2];break A}while(1){e=h<<2;l=i[e+f>>2];n=i[a+16>>2];B:{if((l|0)>(n|0)){m=i[a+32>>2];i[e+m>>2]=n;break B}m=i[a+32>>2];e=e+m|0;n=i[a+12>>2];if((l|0)<(n|0)){i[e>>2]=n;break B}i[e>>2]=l}h=h+1|0;if((h|0)>2]){continue}break}}f=d<<2;e=f+c|0;f=i[b+f>>2]-i[f+m>>2]|0;i[e>>2]=f;C:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break C}f=f-i[a+20>>2]|0}i[e>>2]=f}f=m;d=d+1|0;m=i[a+8>>2];if((d|0)<(m|0)){continue}break}}if(A){bp(A)}a=i[k+128>>2];if(a){i[k+132>>2]=a;bp(a)}a=i[k+180>>2];if(a){i[k+184>>2]=a;bp(a)}a=i[k+168>>2];if(a){i[k+172>>2]=a;bp(a)}a=i[k+156>>2];if(a){i[k+160>>2]=a;bp(a)}a=i[k+144>>2];if(a){i[k+148>>2]=a;bp(a)}F=k+224|0;return 1}function ln(a,b,c,d,e,f){var g=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,I=0,J=0;g=F-8976|0;F=g;y=d+e|0;E=0-y|0;a:{b:{while(1){c:{if((c|0)!=48){if((c|0)!=46){break a}c=i[b+4>>2];if(c>>>0>=l[b+104>>2]){break c}i[b+4>>2]=c+1;c=j[c|0];break b}c=i[b+4>>2];if(c>>>0>2]){k=1;i[b+4>>2]=c+1;c=j[c|0]}else{k=1;c=fn(b)}continue}break}c=fn(b)}n=1;if((c|0)!=48){break a}while(1){h=h+ -1|0;c=m+ -1|0;if((c|0)!=-1){h=h+1|0}m=c;c=i[b+4>>2];d:{if(c>>>0>2]){i[b+4>>2]=c+1;c=j[c|0];break d}c=fn(b)}if((c|0)==48){continue}break}k=1}i[g+784>>2]=0;e:{f:{s=(c|0)==46;r=c+ -48|0;g:{h:{i:{if(s|r>>>0<=9){while(1){j:{if(s&1){if(!n){m=q;h=p;n=1;break j}k=!k;break i}q=q+1|0;if(q>>>0<1){p=p+1|0}if((t|0)<=2044){x=(c|0)==48?x:q;k=(g+784|0)+(t<<2)|0;s=k;if(u){r=(o(i[k>>2],10)+c|0)+ -48|0}i[s>>2]=r;k=1;r=u+1|0;c=(r|0)==9;u=c?0:r;t=c+t|0;break j}if((c|0)==48){break j}i[g+8960>>2]=i[g+8960>>2]|1;x=18396}c=i[b+4>>2];k:{if(c>>>0>2]){i[b+4>>2]=c+1;c=j[c|0];break k}c=fn(b)}s=(c|0)==46;r=c+ -48|0;if(s|r>>>0<10){continue}break}}m=n?m:q;h=n?h:p;if(!(!k|(c&-33)!=69)){n=mn(b);c=H;s=c;l:{if(n|(c|0)!=-2147483648){break l}n=0;s=0;if(!i[b+104>>2]){break l}i[b+4>>2]=i[b+4>>2]+ -1}if(!k){break g}h=h+s|0;b=m+n|0;if(b>>>0>>0){h=h+1|0}m=b;break f}k=!k;if((c|0)<0){break h}}if(!i[b+104>>2]){break h}i[b+4>>2]=i[b+4>>2]+ -1}if(!k){break f}}i[4805]=28;q=0;p=0;en(b);c=0;b=0;break e}b=i[g+784>>2];if(!b){xn(g,+(f|0)*0);q=i[g>>2];p=i[g+4>>2];c=i[g+12>>2];b=i[g+8>>2];break e}if(!((m|0)!=(q|0)|(h|0)!=(p|0)|((p|0)>0?1:(p|0)>=0?q>>>0>9:0)|(b>>>d|0?(d|0)<=30:0))){An(g+48|0,f);En(g+32|0,b);yn(g+16|0,i[g+48>>2],i[g+52>>2],i[g+56>>2],i[g+60>>2],i[g+32>>2],i[g+36>>2],i[g+40>>2],i[g+44>>2]);q=i[g+16>>2];p=i[g+20>>2];c=i[g+28>>2];b=i[g+24>>2];break e}if((h|0)>0?1:(h|0)>=0?m>>>0>(e|0)/-2>>>0:0){i[4805]=68;An(g+96|0,f);yn(g+80|0,i[g+96>>2],i[g+100>>2],i[g+104>>2],i[g+108>>2],-1,-1,-1,2147418111);yn(g- -64|0,i[g+80>>2],i[g+84>>2],i[g+88>>2],i[g+92>>2],-1,-1,-1,2147418111);q=i[g+64>>2];p=i[g+68>>2];c=i[g+76>>2];b=i[g+72>>2];break e}b=e+ -226|0;c=m>>>0>>0;b=b>>31;if((h|0)<(b|0)?1:(h|0)<=(b|0)?c:0){i[4805]=68;An(g+144|0,f);yn(g+128|0,i[g+144>>2],i[g+148>>2],i[g+152>>2],i[g+156>>2],0,0,0,65536);yn(g+112|0,i[g+128>>2],i[g+132>>2],i[g+136>>2],i[g+140>>2],0,0,0,65536);q=i[g+112>>2];p=i[g+116>>2];c=i[g+124>>2];b=i[g+120>>2];break e}if(u){if((u|0)<=8){c=(g+784|0)+(t<<2)|0;b=i[c>>2];while(1){b=o(b,10);u=u+1|0;if((u|0)!=9){continue}break}i[c>>2]=b}t=t+1|0}m:{n=m;if((x|0)>(n|0)|(x|0)>=9|(n|0)>17){break m}if((n|0)==9){An(g+192|0,f);En(g+176|0,i[g+784>>2]);yn(g+160|0,i[g+192>>2],i[g+196>>2],i[g+200>>2],i[g+204>>2],i[g+176>>2],i[g+180>>2],i[g+184>>2],i[g+188>>2]);q=i[g+160>>2];p=i[g+164>>2];c=i[g+172>>2];b=i[g+168>>2];break e}if((n|0)<=8){An(g+272|0,f);En(g+256|0,i[g+784>>2]);yn(g+240|0,i[g+272>>2],i[g+276>>2],i[g+280>>2],i[g+284>>2],i[g+256>>2],i[g+260>>2],i[g+264>>2],i[g+268>>2]);An(g+224|0,i[(0-n<<2)+17616>>2]);Cn(g+208|0,i[g+240>>2],i[g+244>>2],i[g+248>>2],i[g+252>>2],i[g+224>>2],i[g+228>>2],i[g+232>>2],i[g+236>>2]);q=i[g+208>>2];p=i[g+212>>2];c=i[g+220>>2];b=i[g+216>>2];break e}b=(o(n,-3)+d|0)+27|0;c=i[g+784>>2];if(c>>>b|0?(b|0)<=30:0){break m}An(g+352|0,f);En(g+336|0,c);yn(g+320|0,i[g+352>>2],i[g+356>>2],i[g+360>>2],i[g+364>>2],i[g+336>>2],i[g+340>>2],i[g+344>>2],i[g+348>>2]);An(g+304|0,i[(n<<2)+17544>>2]);yn(g+288|0,i[g+320>>2],i[g+324>>2],i[g+328>>2],i[g+332>>2],i[g+304>>2],i[g+308>>2],i[g+312>>2],i[g+316>>2]);q=i[g+288>>2];p=i[g+292>>2];c=i[g+300>>2];b=i[g+296>>2];break e}while(1){c=t;t=c+ -1|0;if(!i[(g+784|0)+(t<<2)>>2]){continue}break}u=0;b=(n|0)%9|0;n:{if(!b){k=0;break n}r=(n|0)>-1?b:b+9|0;o:{if(!c){k=0;c=0;break o}h=i[(0-r<<2)+17616>>2];p=1e9/(h|0)|0;s=0;b=0;k=0;while(1){m=s;q=(g+784|0)+(b<<2)|0;s=i[q>>2];t=(s>>>0)/(h>>>0)|0;m=m+t|0;i[q>>2]=m;m=!m&(b|0)==(k|0);k=m?k+1&2047:k;n=m?n+ -9|0:n;s=o(p,s-o(h,t)|0);b=b+1|0;if((c|0)!=(b|0)){continue}break}if(!s){break o}i[(g+784|0)+(c<<2)>>2]=s;c=c+1|0}n=(n-r|0)+9|0}while(1){q=(g+784|0)+(k<<2)|0;p:{while(1){if((n|0)!=36|l[q>>2]>=10384593?(n|0)>=36:0){break p}t=c+2047|0;s=0;r=c;while(1){c=r;p=t&2047;t=(g+784|0)+(p<<2)|0;b=i[t>>2];h=b>>>3|0;r=b<<29;b=r+s|0;if(b>>>0>>0){h=h+1|0}m=b;r=0;q:{if(!h&b>>>0<1000000001|h>>>0<0){break q}r=wp(b,h,1e9,0);m=m-up(r,H,1e9,0)|0}s=r;i[t>>2]=m;r=(p|0)!=(c+ -1&2047)?c:(p|0)==(k|0)?c:m?c:p;t=p+ -1|0;if((p|0)!=(k|0)){continue}break}u=u+ -29|0;if(!s){continue}break}k=k+ -1&2047;if((r|0)==(k|0)){b=(g+784|0)+((r+2046&2047)<<2)|0;c=r+ -1&2047;i[b>>2]=i[b>>2]|i[(g+784|0)+(c<<2)>>2]}n=n+9|0;i[(g+784|0)+(k<<2)>>2]=s;continue}break}r:{s:while(1){h=c+1&2047;p=(g+784|0)+((c+ -1&2047)<<2)|0;while(1){m=(n|0)>45?9:1;t:{while(1){r=k;b=0;u:{while(1){v:{k=b+r&2047;if((k|0)==(c|0)){break v}k=i[(g+784|0)+(k<<2)>>2];q=i[(b<<2)+17568>>2];if(k>>>0>>0){break v}if(k>>>0>q>>>0){break u}b=b+1|0;if((b|0)!=4){continue}}break}if((n|0)!=36){break u}m=0;h=0;b=0;q=0;p=0;while(1){k=b+r&2047;if((k|0)==(c|0)){c=c+1&2047;i[((c<<2)+g|0)+780>>2]=0}yn(g+768|0,m,h,q,p,0,0,1342177280,1075633366);En(g+752|0,i[(g+784|0)+(k<<2)>>2]);tn(g+736|0,i[g+768>>2],i[g+772>>2],i[g+776>>2],i[g+780>>2],i[g+752>>2],i[g+756>>2],i[g+760>>2],i[g+764>>2]);q=i[g+744>>2];p=i[g+748>>2];m=i[g+736>>2];h=i[g+740>>2];b=b+1|0;if((b|0)!=4){continue}break}An(g+720|0,f);yn(g+704|0,m,h,q,p,i[g+720>>2],i[g+724>>2],i[g+728>>2],i[g+732>>2]);q=i[g+712>>2];p=i[g+716>>2];m=0;h=0;n=i[g+704>>2];s=i[g+708>>2];t=u+113|0;e=t-e|0;k=(e|0)<(d|0);d=k?(e|0)>0?e:0:d;if((d|0)<=112){break t}break r}u=m+u|0;k=c;if((c|0)==(r|0)){continue}break}q=1e9>>>m|0;s=-1<>2];b=(x>>>m|0)+b|0;i[t>>2]=b;b=!b&(k|0)==(r|0);k=b?k+1&2047:k;n=b?n+ -9|0:n;b=o(q,s&x);r=r+1&2047;if((r|0)!=(c|0)){continue}break}if(!b){continue}if((h|0)!=(k|0)){i[(g+784|0)+(c<<2)>>2]=b;c=h;continue s}i[p>>2]=i[p>>2]|1;k=h;continue}break}break}xn(g+656|0,fp(225-d|0));gn(g+688|0,i[g+656>>2],i[g+660>>2],i[g+664>>2],i[g+668>>2],n,s,q,p);z=i[g+696>>2];A=i[g+700>>2];B=i[g+688>>2];C=i[g+692>>2];xn(g+640|0,fp(113-d|0));dp(g+672|0,n,s,q,p,i[g+640>>2],i[g+644>>2],i[g+648>>2],i[g+652>>2]);m=i[g+672>>2];h=i[g+676>>2];v=i[g+680>>2];w=i[g+684>>2];zn(g+624|0,n,s,q,p,m,h,v,w);tn(g+608|0,B,C,z,A,i[g+624>>2],i[g+628>>2],i[g+632>>2],i[g+636>>2]);q=i[g+616>>2];p=i[g+620>>2];n=i[g+608>>2];s=i[g+612>>2]}b=r+4&2047;w:{if((b|0)==(c|0)){break w}b=i[(g+784|0)+(b<<2)>>2];x:{if(b>>>0<=499999999){if((r+5&2047)==(c|0)?!b:0){break x}xn(g+496|0,+(f|0)*.25);tn(g+480|0,m,h,v,w,i[g+496>>2],i[g+500>>2],i[g+504>>2],i[g+508>>2]);v=i[g+488>>2];w=i[g+492>>2];m=i[g+480>>2];h=i[g+484>>2];break x}if((b|0)!=5e8){xn(g+592|0,+(f|0)*.75);tn(g+576|0,m,h,v,w,i[g+592>>2],i[g+596>>2],i[g+600>>2],i[g+604>>2]);v=i[g+584>>2];w=i[g+588>>2];m=i[g+576>>2];h=i[g+580>>2];break x}D=+(f|0);if((r+5&2047)==(c|0)){xn(g+528|0,D*.5);tn(g+512|0,m,h,v,w,i[g+528>>2],i[g+532>>2],i[g+536>>2],i[g+540>>2]);v=i[g+520>>2];w=i[g+524>>2];m=i[g+512>>2];h=i[g+516>>2];break x}xn(g+560|0,D*.75);tn(g+544|0,m,h,v,w,i[g+560>>2],i[g+564>>2],i[g+568>>2],i[g+572>>2]);v=i[g+552>>2];w=i[g+556>>2];m=i[g+544>>2];h=i[g+548>>2]}if((d|0)>111){break w}dp(g+464|0,m,h,v,w,0,0,0,1073676288);if(qn(i[g+464>>2],i[g+468>>2],i[g+472>>2],i[g+476>>2],0,0,0,0)){break w}tn(g+448|0,m,h,v,w,0,0,0,1073676288);v=i[g+456>>2];w=i[g+460>>2];m=i[g+448>>2];h=i[g+452>>2]}tn(g+432|0,n,s,q,p,m,h,v,w);zn(g+416|0,i[g+432>>2],i[g+436>>2],i[g+440>>2],i[g+444>>2],B,C,z,A);q=i[g+424>>2];p=i[g+428>>2];n=i[g+416>>2];s=i[g+420>>2];y:{if((t&2147483647)<=(-2-y|0)){break y}b=g+400|0;i[b+8>>2]=q;i[b+12>>2]=p&2147483647;i[b>>2]=n;i[b+4>>2]=s;yn(g+384|0,n,s,q,p,0,0,0,1073610752);c=rn(i[g+400>>2],i[g+404>>2],i[g+408>>2],i[g+412>>2],1081081856);b=(c|0)<0;q=b?q:i[g+392>>2];p=b?p:i[g+396>>2];n=b?n:i[g+384>>2];s=b?s:i[g+388>>2];u=((c|0)>-1)+u|0;if(G=!(k&(b|(d|0)!=(e|0))&(qn(m,h,v,w,0,0,0,0)|0)!=0),I=0,J=(u+110|0)<=(E|0),J?G:I){break y}i[4805]=68}hn(g+368|0,n,s,q,p,u);q=i[g+368>>2];p=i[g+372>>2];c=i[g+380>>2];b=i[g+376>>2]}i[a>>2]=q;i[a+4>>2]=p;i[a+8>>2]=b;i[a+12>>2]=c;F=g+8976|0}function De(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 h=0,k=0,l=0,m=0,n=0,p=0,r=0,t=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0;h=F-240|0;F=h;V=i[a+36>>2];y=i[a+32>>2];i[h+184>>2]=0;i[h+188>>2]=0;i[h+176>>2]=0;i[h+180>>2]=0;i[h+168>>2]=0;i[h+172>>2]=0;d=h+160|0;i[d>>2]=0;i[d+4>>2]=0;i[h+152>>2]=0;i[h+156>>2]=0;i[h+144>>2]=0;i[h+148>>2]=0;if(e){Bd(h+144|0,e);m=i[d>>2];d=i[h+156>>2]}else{d=0}f=m-d>>2;a:{if(f>>>0>=e>>>0){if(f>>>0<=e>>>0){break a}i[h+160>>2]=d+(e<<2);break a}Bd(h+144|12,e-f|0)}f=i[h+168>>2];d=i[h+172>>2]-f>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}i[h+172>>2]=f+(e<<2);break b}Bd(h+168|0,e-d|0)}f=i[h+180>>2];d=i[h+184>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}i[h+184>>2]=f+(e<<2);break c}Bd(h+180|0,e-d|0)}i[h+136>>2]=0;i[h+128>>2]=0;i[h+132>>2]=0;d:{e:{if(e){if(e>>>0>=1073741824){break e}d=e<<2;f=ho(d);i[h+128>>2]=f;m=d+f|0;i[h+136>>2]=m;ip(f,0,d);i[h+132>>2]=m}K=a+136|0;f=i[a+136>>2];d=i[a+140>>2]-f>>2;f:{if(d>>>0>>0){Bd(K,e-d|0);break f}if(d>>>0<=e>>>0){break f}i[a+140>>2]=f+(e<<2)}i[h+104>>2]=0;i[h+108>>2]=0;i[h+96>>2]=0;i[h+100>>2]=0;i[h+88>>2]=0;i[h+92>>2]=0;i[h+80>>2]=0;i[h+84>>2]=0;i[h+72>>2]=0;i[h+76>>2]=0;d=h- -64|0;i[d>>2]=0;i[d+4>>2]=0;i[h+56>>2]=0;i[h+60>>2]=0;i[h+48>>2]=0;i[h+52>>2]=0;if(e){d=e<<2;B=ho(d);d=ip(B,0,d)+d|0}else{d=0}f=i[a+40>>2];m=i[f>>2];f=i[f+4>>2]-m|0;if((f|0)<5){break d}O=d;J=f>>>2|0;l=J+ -1|0;if(f>>2>>>0>l>>>0){P=e<<2;W=a+8|0;L=a+96|0;X=h+125|0;Q=h+36|0;R=h+24|0;M=h+20|0;Y=M+24|0;S=M+16|0;I=(e|0)<1;while(1){d=0;C=l;n=i[(l<<2)+m>>2];g:{if((n|0)==-1){break g}r=n+((n>>>0)%3|0?-1:2)|0;z=r>>>5|0;l=1;D=1<>2];f=0;m=n;while(1){h:{if(i[E+(m>>>3&536870908)>>2]>>>m&1){break h}d=i[i[i[y+64>>2]+12>>2]+(m<<2)>>2];if((d|0)==-1){break h}p=i[V>>2];k=i[y+28>>2];A=i[p+(i[k+(d<<2)>>2]<<2)>>2];if((A|0)>=(C|0)){break h}t=d+1|0;t=i[p+(i[k+(((t>>>0)%3|0?t:d+ -2|0)<<2)>>2]<<2)>>2];if((t|0)>=(C|0)){break h}d=i[p+(i[k+(d+((d>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((d|0)>=(C|0)){break h}if(!I){p=i[(h+144|0)+o(f,12)>>2];d=o(d,e);t=o(e,t);A=o(e,A);k=0;while(1){i[p+(k<<2)>>2]=(i[(d+k<<2)+b>>2]+i[(k+t<<2)+b>>2]|0)-i[(k+A<<2)+b>>2];k=k+1|0;if((k|0)!=(e|0)){continue}break}}d=4;f=f+1|0;if((f|0)==4){break g}}i:{if(l&1){k=-1;d=m+1|0;d=(d>>>0)%3|0?d:m+ -2|0;if((d|0)==-1|i[i[y>>2]+(d>>>3&536870908)>>2]>>>d&1){break i}d=i[i[i[y+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break i}m=d+1|0;k=(m>>>0)%3|0?m:d+ -2|0;break i}k=-1;d=((m>>>0)%3|0?-1:2)+m|0;if((d|0)==-1|i[i[y>>2]+(d>>>3&536870908)>>2]>>>d&1){break i}d=i[i[i[y+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break i}if((d>>>0)%3|0){k=d+ -1|0;break i}k=d+2|0}if((k|0)==(n|0)){d=f;break g}m=k;d=(k|0)!=-1;k=(d|l^-1)&1;m=k?m:-1;l=d&l;if(!((r|0)==-1|k)){if(D&i[i[y>>2]+(z<<2)>>2]){d=f;break g}d=i[i[i[y+64>>2]+12>>2]+(r<<2)>>2];if((d|0)==-1){d=f;break g}l=0;if((d>>>0)%3|0){m=d+ -1|0}else{m=d+2|0}}d=f;if((m|0)!=-1){continue}break}}m=0;g[h+16|0]=0;i[h+8>>2]=0;i[h+12>>2]=0;i[Y>>2]=0;i[S>>2]=0;i[S+4>>2]=0;f=M;i[f+8>>2]=0;i[f+12>>2]=0;i[f>>2]=0;i[f+4>>2]=0;T=o(e,C)<<2;E=T+b|0;r=(o(J+ -2|0,e)<<2)+b|0;n=i[a+136>>2];l=0;if(!I){while(1){k=l<<2;f=i[k+r>>2]-i[k+E>>2]|0;i[k+B>>2]=f;i[k+n>>2]=(f|0)>-1?f<<1:(f^-1)<<1|1;k=f;f=f>>31;m=(k+f^f)+m|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}dg(h+216|0,L,n,e);f=gg(h+216|0);l=H;k=hg(h+216|0);f=k+f|0;l=H+l|0;l=f>>>0>>0?l+1|0:l;k=f;N=(d|0)<1;if(!N){p=(d<<3)+ -8|0;n=p+(h+48|0)|0;z=n;t=n;f=i[n+4>>2];D=d+i[n>>2]|0;if(D>>>0>>0){f=f+1|0}n=D;i[t>>2]=n;i[z+4>>2]=f;w=v(bg(n,i[p+(h+80|0)>>2])*(+(n>>>0)+ +(f|0)*4294967296));j:{if(q(w)<0x8000000000000000){n=q(w)>=1?w>0?~~s(u(w*2.3283064365386963e-10),4294967295)>>>0:~~v((w- +(~~w>>>0>>>0))*2.3283064365386963e-10)>>>0:0;f=~~w>>>0;break j}n=-2147483648;f=0}l=l+n|0;f=f+k|0;if(f>>>0>>0){l=l+1|0}k=f}i[h+20>>2]=0;g[h+16|0]=0;i[h+8>>2]=k;i[h+12>>2]=m;ra(R,r,r+P|0);Hd(Q,B,O);if(!N){z=(h+124|0)+d|0;D=z+ -2|0;r=z+ -1|0;f=(d<<3)+ -8|0;U=f+(h+48|0)|0;Z=f+(h+80|0)|0;f=1;A=0;while(1){ip(h+124|0,1,d);A=A+1|0;ip(h+124|0,0,A);k:{l:while(1){if(!I){ip(i[h+128>>2],0,P)}p=0;m=i[h+128>>2];t=0;while(1){if(!j[(h+124|0)+p|0]){if(!I){l=i[(h+144|0)+o(p,12)>>2];k=0;while(1){n=k<<2;G=n+m|0;i[G>>2]=i[G>>2]+i[l+n>>2];k=k+1|0;if((k|0)!=(e|0)){continue}break}}t=1<>2];while(1){l=m+(k<<2)|0;i[l>>2]=i[l>>2]/(f|0);k=k+1|0;if((k|0)!=(e|0)){continue}break}if((e|0)>0){break n}}n=i[a+136>>2];m=0;break m}G=i[h+128>>2];n=i[a+136>>2];m=0;l=0;while(1){p=l<<2;k=i[p+G>>2]-i[p+E>>2]|0;i[p+B>>2]=k;i[n+p>>2]=(k|0)>-1?k<<1:(k^-1)<<1|1;p=m;m=k>>31;m=p+(m+k^m)|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}}dg(h+216|0,L,n,e);k=gg(h+216|0)+hg(h+216|0)|0;if((d|0)>0){l=i[U+4>>2];n=i[U>>2];w=v(bg(n,i[Z>>2]+f|0)*(+(n>>>0)+ +(l|0)*4294967296));o:{if(q(w)<0x8000000000000000){n=~~w>>>0;break o}n=0}k=n+k|0}l=i[h+8>>2];if(!((k|0)>(l|0)|(m|0)>=i[h+12>>2]?(k|0)>=(l|0):0)){i[h+20>>2]=f;g[h+16|0]=t;i[h+8>>2]=k;i[h+12>>2]=m;Hd(R,i[h+128>>2],i[h+132>>2]);Hd(Q,B,O)}if((r|0)==(h+124|0)){break k}m=-1;p=j[r|0];k=p;while(1){n=k&255;l=m+ -1|0;t=l+z|0;k=j[t|0];if(k>>>0>>0){n=r;l=z;if(k>>>0>=(p&255)>>>0){while(1){p=n;n=n+ -1|0;G=l+ -2|0;l=p;if(k>>>0>=j[G|0]){continue}break}p=1}l=m+z|0;g[t|0]=p;g[n|0]=k;k=r;if((m|0)==-1){continue l}while(1){m=j[l|0];g[l|0]=j[k|0];g[k|0]=m;l=l+1|0;k=k+ -1|0;if(l>>>0>>0){continue}break}continue l}m=l;if((t|0)!=(h+124|0)){continue}break}break}if(r>>>0<=h+124>>>0){break k}m=j[h+124|0];g[h+124|0]=p;g[r|0]=m;m=X;k=D;if(m>>>0>=k>>>0){break k}while(1){l=j[m|0];g[m|0]=j[k|0];g[k|0]=l;m=m+1|0;k=k+ -1|0;if(m>>>0>>0){continue}break}}f=f+1|0;if((d|0)!=(A|0)){continue}break}}if((d|0)>0){f=((d<<3)+h|0)+72|0;l=f;k=i[h+20>>2];m=k+i[f>>2]|0;f=i[f+4>>2]+(k>>31)|0;i[l>>2]=m;i[l+4>>2]=m>>>0>>0?f+1|0:f}p:{if((e|0)<=0){l=i[K>>2];break p}l=i[K>>2];k=0;m=i[h+36>>2];while(1){n=k<<2;f=i[n+m>>2];i[l+n>>2]=(f|0)>-1?f<<1:(f^-1)<<1|1;k=k+1|0;if((k|0)!=(e|0)){continue}break}}fg(h+216|0,L,l,e);q:{if(N){break q}f=o(d,12)+a|0;p=f+40|0;n=f+36|0;f=f+32|0;m=0;while(1){r:{r=i[p>>2];l=r<<5;k=i[n>>2];s:{if(!(j[h+16|0]>>>m&1)){if((k|0)==(l|0)){if((k+1|0)<=-1){break r}l=f;if(k>>>0<=1073741822){k=k+32&-32;r=r<<6;k=r>>>0>>0?k:r}else{k=2147483647}bd(l,k);k=i[n>>2]}i[n>>2]=k+1;l=i[f>>2]+(k>>>3&536870908)|0;i[l>>2]=i[l>>2]|1<>>0<=1073741822){k=k+32&-32;r=r<<6;k=r>>>0>>0?k:r}else{k=2147483647}bd(l,k);k=i[n>>2]}i[n>>2]=k+1;l=i[f>>2]+(k>>>3&536870908)|0;r=i[l>>2];_=l,$=yp(-2,k)&r,i[_>>2]=$}m=m+1|0;if((m|0)!=(d|0)){continue}break q}break}Ho();x()}d=i[h+24>>2];f=i[d>>2];d=i[d+4>>2];m=i[E+4>>2];i[h+208>>2]=i[E>>2];i[h+212>>2]=m;i[h+200>>2]=f;i[h+204>>2]=d;ze(h+216|0,W,h+208|0,h+200|0);d=c+T|0;i[d>>2]=i[h+216>>2];i[d+4>>2]=i[h+220>>2];d=i[h+36>>2];if(d){i[h+40>>2]=d;bp(d)}d=i[h+24>>2];if(d){i[h+28>>2]=d;bp(d)}if((J|0)<3){break d}J=C;d=i[a+40>>2];m=i[d>>2];l=C+ -1|0;if(i[d+4>>2]-m>>2>>>0>l>>>0){continue}break}}Io();x()}Ho();x()}if((e|0)>=1){ip(i[h+144>>2],0,e<<2)}d=i[h+144>>2];e=i[d>>2];d=i[d+4>>2];f=i[b+4>>2];i[h+216>>2]=i[b>>2];i[h+220>>2]=f;i[h+208>>2]=e;i[h+212>>2]=d;ze(h+8|0,a+8|0,h+216|0,h+208|0);i[c>>2]=i[h+8>>2];i[c+4>>2]=i[h+12>>2];if(B){bp(B)}a=i[h+128>>2];if(a){i[h+132>>2]=a;bp(a)}a=i[h+180>>2];if(a){i[h+184>>2]=a;bp(a)}a=i[h+168>>2];if(a){i[h+172>>2]=a;bp(a)}a=i[h+156>>2];if(a){i[h+160>>2]=a;bp(a)}a=i[h+144>>2];if(a){i[h+148>>2]=a;bp(a)}F=h+240|0;return 1}function Rb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,k=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=p(0),z=0,A=0,B=0,C=0,D=0;c=F+ -64|0;F=c;n=i[a+28>>2];r=i[n+4>>2];z=i[r+80>>2];q=i[a+4>>2];e=i[a+8>>2];k=(q|0)==(e|0);a:{if(k){break a}f=e-q|0;b=(f|0)>-1?f:-1;s=(b|0)<1?b:1;b=q-e|0;b=o(s,((b|0)>(f|0)?b:f)>>>2|0);e=b>>>0>1?b:1;b=i[r+8>>2];while(1){d=g[i[b+(i[(h<<2)+q>>2]<<2)>>2]+24|0]+d|0;h=h+1|0;if((e|0)!=(h|0)){continue}break}}i[a+72>>2]=d;b:{if(k){h=1;break b}A=a+60|0;B=a+36|0;C=a+48|0;D=c+48|0;while(1){c:{d:{e:{f:{g:{h:{i:{j:{u=i[(w<<2)+q>>2];t=i[i[r+8>>2]+(u<<2)>>2];switch(i[t+28>>2]+ -1|0){case 0:case 2:case 4:break i;case 8:break j;default:break c}}i[c+44>>2]=-1;i[c+40>>2]=1140;b=D;i[b+8>>2]=0;i[b+12>>2]=0;i[b>>2]=0;i[b+4>>2]=0;k=i[n+48>>2];f=ho(32);i[c+24>>2]=f;i[c+28>>2]=17;i[c+32>>2]=-2147483616;g[f+17|0]=0;g[f+16|0]=j[1664];e=j[1660]|j[1661]<<8|(j[1662]<<16|j[1663]<<24);b=j[1656]|j[1657]<<8|(j[1658]<<16|j[1659]<<24);g[f+8|0]=b;g[f+9|0]=b>>>8;g[f+10|0]=b>>>16;g[f+11|0]=b>>>24;g[f+12|0]=e;g[f+13|0]=e>>>8;g[f+14|0]=e>>>16;g[f+15|0]=e>>>24;e=j[1652]|j[1653]<<8|(j[1654]<<16|j[1655]<<24);b=j[1648]|j[1649]<<8|(j[1650]<<16|j[1651]<<24);g[f|0]=b;g[f+1|0]=b>>>8;g[f+2|0]=b>>>16;g[f+3|0]=b>>>24;g[f+4|0]=e;g[f+5|0]=e>>>8;g[f+6|0]=e>>>16;g[f+7|0]=e>>>24;k:{l:{e=k+16|0;d=e;h=i[d>>2];if(!h){break l}while(1){b=i[h+16>>2]<(u|0);d=b?d:h;h=i[(b<<2)+h>>2];if(h){continue}break}if((d|0)==(e|0)|(u|0)>2]){break l}b=d+20|0;if(!Sb(b,c+24|0)){break l}s=$j(b,c+24|0,-1);break k}s=$j(k,c+24|0,-1)}if(g[c+35|0]<=-1){bp(i[c+24>>2])}m:{if((s|0)<1){break m}q=i[i[a+28>>2]+48>>2];d=ho(32);i[c+24>>2]=d;i[c+28>>2]=19;i[c+32>>2]=-2147483616;g[d+19|0]=0;v=j[1681]|j[1682]<<8|(j[1683]<<16|j[1684]<<24);g[d+15|0]=v;g[d+16|0]=v>>>8;g[d+17|0]=v>>>16;g[d+18|0]=v>>>24;e=j[1678]|j[1679]<<8|(j[1680]<<16|j[1681]<<24);r=e;f=j[1674]|j[1675]<<8|(j[1676]<<16|j[1677]<<24);b=f;g[d+8|0]=b;g[d+9|0]=b>>>8;g[d+10|0]=b>>>16;g[d+11|0]=b>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;n=j[1670]|j[1671]<<8|(j[1672]<<16|j[1673]<<24);k=n;e=j[1666]|j[1667]<<8|(j[1668]<<16|j[1669]<<24);b=e;g[d|0]=b;g[d+1|0]=b>>>8;g[d+2|0]=b>>>16;g[d+3|0]=b>>>24;g[d+4|0]=k;g[d+5|0]=k>>>8;g[d+6|0]=k>>>16;g[d+7|0]=k>>>24;n:{o:{n=q+16|0;d=n;h=i[d>>2];if(!h){break o}while(1){b=i[h+16>>2]<(u|0);d=b?d:h;h=i[(b<<2)+h>>2];if(h){continue}break}if((d|0)==(n|0)|(u|0)>2]){break o}n=Sb(d+20|0,c+24|0);break n}n=Sb(q,c+24|0)}b=0;p:{if(!n){break p}q=i[i[a+28>>2]+48>>2];d=ho(32);i[c+8>>2]=d;i[c+12>>2]=18;i[c+16>>2]=-2147483616;g[d+18|0]=0;b=j[1702]|j[1703]<<8;g[d+16|0]=b;g[d+17|0]=b>>>8;n=j[1698]|j[1699]<<8|(j[1700]<<16|j[1701]<<24);b=j[1694]|j[1695]<<8|(j[1696]<<16|j[1697]<<24);g[d+8|0]=b;g[d+9|0]=b>>>8;g[d+10|0]=b>>>16;g[d+11|0]=b>>>24;g[d+12|0]=n;g[d+13|0]=n>>>8;g[d+14|0]=n>>>16;g[d+15|0]=n>>>24;n=j[1690]|j[1691]<<8|(j[1692]<<16|j[1693]<<24);b=j[1686]|j[1687]<<8|(j[1688]<<16|j[1689]<<24);g[d|0]=b;g[d+1|0]=b>>>8;g[d+2|0]=b>>>16;g[d+3|0]=b>>>24;g[d+4|0]=n;g[d+5|0]=n>>>8;g[d+6|0]=n>>>16;g[d+7|0]=n>>>24;q:{r:{n=q+16|0;d=n;h=i[d>>2];if(!h){break r}while(1){b=i[h+16>>2]<(u|0);d=b?d:h;h=i[(b<<2)+h>>2];if(h){continue}break}if((d|0)==(n|0)|(u|0)>2]){break r}b=Sb(d+20|0,c+8|0);break q}b=Sb(q,c+8|0)}if(g[c+19|0]<=-1){bp(i[c+8>>2])}b=(b|0)!=0}if(g[c+35|0]<=-1){bp(i[c+24>>2])}s:{if(b){b=g[t+24|0];q=0;i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;if(b){if((b|0)<=-1){break h}n=b<<2;q=ho(n);i[c+24>>2]=q;b=n+q|0;i[c+32>>2]=b;ip(q,0,n);i[c+28>>2]=b}n=i[i[a+28>>2]+48>>2];b=ho(32);i[c+8>>2]=b;i[c+12>>2]=19;i[c+16>>2]=-2147483616;g[b+19|0]=0;g[b+15|0]=v;g[b+16|0]=v>>>8;g[b+17|0]=v>>>16;g[b+18|0]=v>>>24;g[b+8|0]=f;g[b+9|0]=f>>>8;g[b+10|0]=f>>>16;g[b+11|0]=f>>>24;g[b+12|0]=r;g[b+13|0]=r>>>8;g[b+14|0]=r>>>16;g[b+15|0]=r>>>24;g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=k;g[b+5|0]=k>>>8;g[b+6|0]=k>>>16;g[b+7|0]=k>>>24;k=g[t+24|0];t:{u:{e=n+16|0;d=e;h=i[d>>2];if(!h){break u}while(1){b=i[h+16>>2]<(u|0);d=b?d:h;h=i[(b<<2)+h>>2];if(h){continue}break}if((d|0)==(e|0)|(u|0)>2]){break u}b=d+20|0;if(!Sb(b,c+8|0)){break u}Tb(b,c+8|0,k,q);break t}Tb(n,c+8|0,k,q)}if(g[c+19|0]<=-1){bp(i[c+8>>2])}k=i[i[a+28>>2]+48>>2];f=ho(32);i[c+8>>2]=f;i[c+12>>2]=18;i[c+16>>2]=-2147483616;g[f+18|0]=0;b=j[1702]|j[1703]<<8;g[f+16|0]=b;g[f+17|0]=b>>>8;e=j[1698]|j[1699]<<8|(j[1700]<<16|j[1701]<<24);b=j[1694]|j[1695]<<8|(j[1696]<<16|j[1697]<<24);g[f+8|0]=b;g[f+9|0]=b>>>8;g[f+10|0]=b>>>16;g[f+11|0]=b>>>24;g[f+12|0]=e;g[f+13|0]=e>>>8;g[f+14|0]=e>>>16;g[f+15|0]=e>>>24;e=j[1690]|j[1691]<<8|(j[1692]<<16|j[1693]<<24);b=j[1686]|j[1687]<<8|(j[1688]<<16|j[1689]<<24);g[f|0]=b;g[f+1|0]=b>>>8;g[f+2|0]=b>>>16;g[f+3|0]=b>>>24;g[f+4|0]=e;g[f+5|0]=e>>>8;g[f+6|0]=e>>>16;g[f+7|0]=e>>>24;v:{w:{e=k+16|0;d=e;h=i[d>>2];if(!h){break w}while(1){b=i[h+16>>2]<(u|0);d=b?d:h;h=i[(b<<2)+h>>2];if(h){continue}break}if((d|0)==(e|0)|(u|0)>2]){break w}b=d+20|0;if(!Sb(b,c+8|0)){break w}y=ak(b,c+8|0);break v}y=ak(k,c+8|0)}if(g[c+19|0]<=-1){bp(i[c+8>>2])}qa(c+40|0,s,i[c+24>>2],g[t+24|0],y);b=i[c+24>>2];if(!b){break s}i[c+28>>2]=b;bp(b);break s}if(!sa(c+40|0,t,s)){break m}}k=i[a+40>>2];x:{if((k|0)!=i[a+44>>2]){i[k>>2]=1140;b=i[c+44>>2];i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;i[k+4>>2]=b;e=i[c+52>>2]-i[c+48>>2]|0;if(e){b=e>>2;if(b>>>0>=1073741824){break g}e=ho(e);i[k+8>>2]=e;i[k+12>>2]=e;i[k+16>>2]=e+(b<<2);b=k;f=i[c+48>>2];r=i[c+52>>2]-f|0;if((r|0)>=1){e=hp(e,f,r)+r|0}i[b+12>>2]=e}m[k+20>>2]=m[c+60>>2];i[a+40>>2]=k+24;break x}Ub(B,c+40|0)}Aa(c+8|0,c+40|0,t,z);i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;ma(c+40|0,t,c+24|0,i[c+8>>2]);b=i[c+24>>2];if(b){i[c+28>>2]=b;bp(b)}e=i[a+64>>2];y:{if(e>>>0>2]){b=i[c+8>>2];i[c+8>>2]=0;i[e>>2]=b;i[a+64>>2]=e+4;break y}Vb(A,c+8|0)}b=i[c+8>>2];i[c+8>>2]=0;if(b){Wb(b)}i[c+40>>2]=1140;b=i[c+48>>2];if(!b){break c}i[c+52>>2]=b;bp(b);break c}i[c+40>>2]=1140;a=i[c+48>>2];if(a){i[c+52>>2]=a;bp(a)}h=0;break b}b=g[t+24|0];q=0;i[c+48>>2]=0;i[c+40>>2]=0;i[c+44>>2]=0;d=0;if(b){if((b|0)<=-1){break f}b=b<<2;h=ho(b);i[c+40>>2]=h;b=b+h|0;i[c+48>>2]=b;while(1){i[h>>2]=2147483647;h=h+4|0;if((b|0)!=(h|0)){continue}break}i[c+44>>2]=b;d=j[t+24|0]}i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;if(d&255){b=d<<24>>24;if((b|0)<=-1){break e}e=b<<2;q=ho(e);i[c+24>>2]=q;b=e+q|0;i[c+32>>2]=b;ip(q,0,e);i[c+28>>2]=b}s=j[t+24|0];n=0;if(!i[t+80>>2]){break d}while(1){Xb(t,n,s<<24>>24,q);b=j[t+24|0];s=b<<24>>24;if((s|0)>=1){r=b>>>0>1?b:1;h=0;f=i[c+24>>2];k=i[c+40>>2];while(1){b=h<<2;e=b+k|0;b=i[b+f>>2];if(i[e>>2]>(b|0)){i[e>>2]=b}h=h+1|0;if((r|0)!=(h|0)){continue}break}}n=n+1|0;if(n>>>0>=l[t+80>>2]){break d}q=i[c+24>>2];continue}}Ho();x()}Ho();x()}Ho();x()}Ho();x()}h=0;z:{if(s<<24>>24<=0){break z}A:{while(1){B:{r=i[c+40>>2]+(h<<2)|0;b=i[a+52>>2];C:{if((b|0)!=i[a+56>>2]){i[b>>2]=i[r>>2];i[a+52>>2]=b+4;break C}n=i[C>>2];s=b-n|0;f=s>>2;k=f+1|0;if(k>>>0>=1073741824){break B}e=s>>1;k=f>>>0<536870911?e>>>0>>0?k:e:1073741823;b=0;D:{if(!k){break D}if(k>>>0>=1073741824){break A}b=ho(k<<2)}e=b+(f<<2)|0;i[e>>2]=i[r>>2];k=b+(k<<2)|0;e=e+4|0;if((s|0)>=1){hp(b,n,s)}i[a+56>>2]=k;i[a+52>>2]=e;i[a+48>>2]=b;if(!n){break C}bp(n)}h=h+1|0;if((h|0)>2];if(b){i[c+28>>2]=b;bp(b)}b=i[c+40>>2];if(!b){break c}i[c+44>>2]=b;bp(b)}h=1;w=w+1|0;q=i[a+4>>2];if(w>>>0>=i[a+8>>2]-q>>2>>>0){break b}n=i[a+28>>2];r=i[n+4>>2];continue}}F=c- -64|0;return h|0}function Te(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 h=0,k=0,l=0,m=0,n=0,p=0,r=0,t=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0;h=F-240|0;F=h;V=i[a+36>>2];N=i[a+32>>2];i[h+184>>2]=0;i[h+188>>2]=0;i[h+176>>2]=0;i[h+180>>2]=0;i[h+168>>2]=0;i[h+172>>2]=0;d=h+160|0;i[d>>2]=0;i[d+4>>2]=0;i[h+152>>2]=0;i[h+156>>2]=0;i[h+144>>2]=0;i[h+148>>2]=0;if(e){Bd(h+144|0,e);m=i[d>>2];d=i[h+156>>2]}else{d=0}f=m-d>>2;a:{if(f>>>0>=e>>>0){if(f>>>0<=e>>>0){break a}i[h+160>>2]=d+(e<<2);break a}Bd(h+144|12,e-f|0)}f=i[h+168>>2];d=i[h+172>>2]-f>>2;b:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break b}i[h+172>>2]=f+(e<<2);break b}Bd(h+168|0,e-d|0)}f=i[h+180>>2];d=i[h+184>>2]-f>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}i[h+184>>2]=f+(e<<2);break c}Bd(h+180|0,e-d|0)}i[h+136>>2]=0;i[h+128>>2]=0;i[h+132>>2]=0;d:{e:{if(e){if(e>>>0>=1073741824){break e}d=e<<2;f=ho(d);i[h+128>>2]=f;l=d+f|0;i[h+136>>2]=l;ip(f,0,d);i[h+132>>2]=l}J=a+136|0;f=i[a+136>>2];d=i[a+140>>2]-f>>2;f:{if(d>>>0>>0){Bd(J,e-d|0);break f}if(d>>>0<=e>>>0){break f}i[a+140>>2]=f+(e<<2)}i[h+104>>2]=0;i[h+108>>2]=0;i[h+96>>2]=0;i[h+100>>2]=0;i[h+88>>2]=0;i[h+92>>2]=0;i[h+80>>2]=0;i[h+84>>2]=0;i[h+72>>2]=0;i[h+76>>2]=0;d=h- -64|0;i[d>>2]=0;i[d+4>>2]=0;i[h+56>>2]=0;i[h+60>>2]=0;i[h+48>>2]=0;i[h+52>>2]=0;if(e){d=e<<2;B=ho(d);d=ip(B,0,d)+d|0}else{d=0}f=i[a+40>>2];m=i[f>>2];f=i[f+4>>2]-m|0;if((f|0)<5){break d}O=d;I=f>>>2|0;d=I+ -1|0;if(f>>2>>>0>d>>>0){P=e<<2;W=a+8|0;K=a+96|0;X=h+125|0;Q=h+36|0;R=h+24|0;L=h+20|0;Y=L+24|0;S=L+16|0;G=(e|0)<1;while(1){l=0;D=d;d=i[(d<<2)+m>>2];g:{if((d|0)==-1){break g}t=i[N+12>>2];C=d+((d>>>0)%3|0?-1:2)|0;r=t+(C<<2)|0;m=1;n=0;f=d;while(1){l=i[t+(f<<2)>>2];h:{if((l|0)==-1){break h}p=-1;w=i[V>>2];k=i[N>>2];A=i[w+(i[k+(l<<2)>>2]<<2)>>2];y=l+1|0;y=(y>>>0)%3|0?y:l+ -2|0;if((y|0)!=-1){y=i[k+(y<<2)>>2]}else{y=-1}l=l+((l>>>0)%3|0?-1:2)|0;if((l|0)!=-1){p=i[k+(l<<2)>>2]}if((A|0)>=(D|0)){break h}l=i[(y<<2)+w>>2];if((l|0)>=(D|0)){break h}k=i[w+(p<<2)>>2];if((k|0)>=(D|0)){break h}p=i[(h+144|0)+o(n,12)>>2];if(!G){w=o(e,k);l=o(e,l);A=o(e,A);k=0;while(1){i[p+(k<<2)>>2]=(i[(k+w<<2)+b>>2]+i[(k+l<<2)+b>>2]|0)-i[(k+A<<2)+b>>2];k=k+1|0;if((k|0)!=(e|0)){continue}break}}l=4;n=n+1|0;if((n|0)==4){break g}}i:{if(m&1){p=f+1|0;f=(p>>>0)%3|0?p:f+ -2|0;l=-1;if((f|0)==-1){break i}f=i[t+(f<<2)>>2];l=-1;if((f|0)==-1){break i}l=f+1|0;l=(l>>>0)%3|0?l:f+ -2|0;break i}f=((f>>>0)%3|0?-1:2)+f|0;l=-1;if((f|0)==-1){break i}f=i[t+(f<<2)>>2];l=-1;if((f|0)==-1){break i}l=f+ -1|0;if((f>>>0)%3|0){break i}l=f+2|0}if((l|0)==(d|0)){l=n;break g}f=l;l=(l|0)!=-1;k=(l|m^-1)&1;f=k?f:-1;m=m&l;if(!((C|0)==-1|k)){l=i[r>>2];if((l|0)==-1){l=n;break g}m=0;if((l>>>0)%3|0){f=l+ -1|0}else{f=l+2|0}}l=n;if((f|0)!=-1){continue}break}}f=0;g[h+16|0]=0;i[h+8>>2]=0;i[h+12>>2]=0;i[Y>>2]=0;i[S>>2]=0;i[S+4>>2]=0;d=L;i[d+8>>2]=0;i[d+12>>2]=0;i[d>>2]=0;i[d+4>>2]=0;T=o(e,D)<<2;y=T+b|0;p=(o(I+ -2|0,e)<<2)+b|0;m=i[a+136>>2];d=0;if(!G){while(1){k=d<<2;n=i[k+p>>2]-i[k+y>>2]|0;i[k+B>>2]=n;i[k+m>>2]=(n|0)>-1?n<<1:(n^-1)<<1|1;k=f;f=n>>31;f=k+(f+n^f)|0;d=d+1|0;if((e|0)!=(d|0)){continue}break}}dg(h+216|0,K,m,e);d=gg(h+216|0);k=H;m=hg(h+216|0);n=m+d|0;d=H+k|0;d=n>>>0>>0?d+1|0:d;k=n;M=(l|0)<1;if(!M){t=(l<<3)+ -8|0;m=t+(h+48|0)|0;w=m;r=m;n=i[m+4>>2];A=l+i[m>>2]|0;if(A>>>0>>0){n=n+1|0}m=A;i[r>>2]=m;i[w+4>>2]=n;z=v(bg(m,i[t+(h+80|0)>>2])*(+(m>>>0)+ +(n|0)*4294967296));j:{if(q(z)<0x8000000000000000){m=q(z)>=1?z>0?~~s(u(z*2.3283064365386963e-10),4294967295)>>>0:~~v((z- +(~~z>>>0>>>0))*2.3283064365386963e-10)>>>0:0;n=~~z>>>0;break j}m=-2147483648;n=0}d=d+m|0;n=k+n|0;if(n>>>0>>0){d=d+1|0}k=n}i[h+20>>2]=0;g[h+16|0]=0;i[h+8>>2]=k;i[h+12>>2]=f;ra(R,p,p+P|0);Hd(Q,B,O);if(!M){w=(h+124|0)+l|0;A=w+ -2|0;t=w+ -1|0;d=(l<<3)+ -8|0;U=d+(h+48|0)|0;Z=d+(h+80|0)|0;n=1;C=0;while(1){ip(h+124|0,1,l);C=C+1|0;ip(h+124|0,0,C);k:{l:while(1){if(!G){ip(i[h+128>>2],0,P)}f=0;d=i[h+128>>2];m=0;while(1){if(!j[(h+124|0)+f|0]){if(!G){p=i[(h+144|0)+o(f,12)>>2];k=0;while(1){r=k<<2;E=r+d|0;i[E>>2]=i[E>>2]+i[p+r>>2];k=k+1|0;if((k|0)!=(e|0)){continue}break}}m=1<>2];while(1){f=d+(k<<2)|0;i[f>>2]=i[f>>2]/(n|0);k=k+1|0;if((k|0)!=(e|0)){continue}break}if((e|0)>0){break n}}p=i[a+136>>2];f=0;break m}E=i[h+128>>2];p=i[a+136>>2];f=0;d=0;while(1){r=d<<2;k=i[r+E>>2]-i[r+y>>2]|0;i[r+B>>2]=k;i[p+r>>2]=(k|0)>-1?k<<1:(k^-1)<<1|1;r=f;f=k>>31;f=r+(f+k^f)|0;d=d+1|0;if((e|0)!=(d|0)){continue}break}}dg(h+216|0,K,p,e);k=gg(h+216|0)+hg(h+216|0)|0;if((l|0)>0){d=i[U+4>>2];p=i[U>>2];z=v(bg(p,i[Z>>2]+n|0)*(+(p>>>0)+ +(d|0)*4294967296));o:{if(q(z)<0x8000000000000000){d=~~z>>>0;break o}d=0}k=d+k|0}d=i[h+8>>2];if(!((k|0)>(d|0)|(f|0)>=i[h+12>>2]?(k|0)>=(d|0):0)){i[h+20>>2]=n;g[h+16|0]=m;i[h+8>>2]=k;i[h+12>>2]=f;Hd(R,i[h+128>>2],i[h+132>>2]);Hd(Q,B,O)}if((t|0)==(h+124|0)){break k}m=-1;f=j[t|0];k=f;while(1){p=k&255;d=m+ -1|0;r=d+w|0;k=j[r|0];if(k>>>0

>>0){p=t;d=w;if(k>>>0>=(f&255)>>>0){while(1){f=p;p=f+ -1|0;E=d+ -2|0;d=f;if(k>>>0>=j[E|0]){continue}break}f=1}d=m+w|0;g[r|0]=f;g[p|0]=k;k=t;if((m|0)==-1){continue l}while(1){f=j[d|0];g[d|0]=j[k|0];g[k|0]=f;d=d+1|0;k=k+ -1|0;if(d>>>0>>0){continue}break}continue l}m=d;if((r|0)!=(h+124|0)){continue}break}break}if(t>>>0<=h+124>>>0){break k}d=j[h+124|0];g[h+124|0]=f;g[t|0]=d;m=X;k=A;if(m>>>0>=k>>>0){break k}while(1){d=j[m|0];g[m|0]=j[k|0];g[k|0]=d;m=m+1|0;k=k+ -1|0;if(m>>>0>>0){continue}break}}n=n+1|0;if((l|0)!=(C|0)){continue}break}}if((l|0)>0){d=((l<<3)+h|0)+72|0;n=d;k=i[h+20>>2];f=k+i[d>>2]|0;d=i[d+4>>2]+(k>>31)|0;i[n>>2]=f;i[n+4>>2]=f>>>0>>0?d+1|0:d}p:{if((e|0)<=0){d=i[J>>2];break p}d=i[J>>2];k=0;n=i[h+36>>2];while(1){m=k<<2;f=i[m+n>>2];i[d+m>>2]=(f|0)>-1?f<<1:(f^-1)<<1|1;k=k+1|0;if((k|0)!=(e|0)){continue}break}}fg(h+216|0,K,d,e);q:{if(M){break q}d=o(l,12)+a|0;t=d+40|0;n=d+36|0;d=d+32|0;m=0;while(1){r:{p=i[t>>2];f=p<<5;k=i[n>>2];s:{if(!(j[h+16|0]>>>m&1)){if((f|0)==(k|0)){if((k+1|0)<=-1){break r}f=d;if(k>>>0<=1073741822){k=k+32&-32;p=p<<6;k=p>>>0>>0?k:p}else{k=2147483647}bd(f,k);k=i[n>>2]}i[n>>2]=k+1;f=i[d>>2]+(k>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>>0<=1073741822){k=k+32&-32;p=p<<6;k=p>>>0>>0?k:p}else{k=2147483647}bd(f,k);k=i[n>>2]}i[n>>2]=k+1;f=i[d>>2]+(k>>>3&536870908)|0;p=i[f>>2];_=f,$=yp(-2,k)&p,i[_>>2]=$}m=m+1|0;if((l|0)!=(m|0)){continue}break q}break}Ho();x()}d=i[h+24>>2];f=i[d>>2];d=i[d+4>>2];l=i[y+4>>2];i[h+208>>2]=i[y>>2];i[h+212>>2]=l;i[h+200>>2]=f;i[h+204>>2]=d;ze(h+216|0,W,h+208|0,h+200|0);d=c+T|0;i[d>>2]=i[h+216>>2];i[d+4>>2]=i[h+220>>2];d=i[h+36>>2];if(d){i[h+40>>2]=d;bp(d)}d=i[h+24>>2];if(d){i[h+28>>2]=d;bp(d)}if((I|0)<3){break d}I=D;d=i[a+40>>2];m=i[d>>2];f=i[d+4>>2]-m>>2;d=D+ -1|0;if(f>>>0>d>>>0){continue}break}}Io();x()}Ho();x()}if((e|0)>=1){ip(i[h+144>>2],0,e<<2)}d=i[h+144>>2];e=i[d>>2];d=i[d+4>>2];f=i[b+4>>2];i[h+216>>2]=i[b>>2];i[h+220>>2]=f;i[h+208>>2]=e;i[h+212>>2]=d;ze(h+8|0,a+8|0,h+216|0,h+208|0);i[c>>2]=i[h+8>>2];i[c+4>>2]=i[h+12>>2];if(B){bp(B)}a=i[h+128>>2];if(a){i[h+132>>2]=a;bp(a)}a=i[h+180>>2];if(a){i[h+184>>2]=a;bp(a)}a=i[h+168>>2];if(a){i[h+172>>2]=a;bp(a)}a=i[h+156>>2];if(a){i[h+160>>2]=a;bp(a)}a=i[h+144>>2];if(a){i[h+148>>2]=a;bp(a)}F=h+240|0;return 1}function yj(a,b,c,d){var e=0,f=0,h=0,k=0;f=F-32|0;F=f;i[b+44>>2]=d;i[b+48>>2]=c;d=i[b+12>>2];e=i[b+8>>2];if((d|0)!=(e|0)){while(1){d=d+ -4|0;h=i[d>>2];i[d>>2]=0;if(h){I[i[i[h>>2]+4>>2]](h)}if((d|0)!=(e|0)){continue}break}}i[b+12>>2]=e;i[b+24>>2]=i[b+20>>2];i[b+36>>2]=i[b+32>>2];a:{if(!i[b+4>>2]){b=ho(32);i[f+8>>2]=b;i[f+12>>2]=23;i[f+16>>2]=-2147483616;g[b+23|0]=0;c=j[13555]|j[13556]<<8|(j[13557]<<16|j[13558]<<24);d=j[13551]|j[13552]<<8|(j[13553]<<16|j[13554]<<24);g[b+15|0]=d;g[b+16|0]=d>>>8;g[b+17|0]=d>>>16;g[b+18|0]=d>>>24;g[b+19|0]=c;g[b+20|0]=c>>>8;g[b+21|0]=c>>>16;g[b+22|0]=c>>>24;c=j[13548]|j[13549]<<8|(j[13550]<<16|j[13551]<<24);d=j[13544]|j[13545]<<8|(j[13546]<<16|j[13547]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13540]|j[13541]<<8|(j[13542]<<16|j[13543]<<24);d=j[13536]|j[13537]<<8|(j[13538]<<16|j[13539]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ro(a+4|0,f+8|0);if(g[f+19|0]>-1){break a}bp(i[f+8>>2]);break a}zj(a,b);if(i[a>>2]){break a}h=a+4|0;if(g[a+15|0]<=-1){bp(i[h>>2])}d=i[i[b+4>>2]+4>>2];b:{if(!d){i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;break b}if(!im(f+24|0,i[b+44>>2],d)){d=ho(32);i[f+8>>2]=d;i[f+12>>2]=26;i[f+16>>2]=-2147483616;g[d+26|0]=0;e=j[13718]|j[13719]<<8;g[d+24|0]=e;g[d+25|0]=e>>>8;e=j[13714]|j[13715]<<8|(j[13716]<<16|j[13717]<<24);k=j[13710]|j[13711]<<8|(j[13712]<<16|j[13713]<<24);g[d+16|0]=k;g[d+17|0]=k>>>8;g[d+18|0]=k>>>16;g[d+19|0]=k>>>24;g[d+20|0]=e;g[d+21|0]=e>>>8;g[d+22|0]=e>>>16;g[d+23|0]=e>>>24;e=j[13706]|j[13707]<<8|(j[13708]<<16|j[13709]<<24);k=j[13702]|j[13703]<<8|(j[13704]<<16|j[13705]<<24);g[d+8|0]=k;g[d+9|0]=k>>>8;g[d+10|0]=k>>>16;g[d+11|0]=k>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;e=j[13698]|j[13699]<<8|(j[13700]<<16|j[13701]<<24);k=j[13694]|j[13695]<<8|(j[13696]<<16|j[13697]<<24);g[d|0]=k;g[d+1|0]=k>>>8;g[d+2|0]=k>>>16;g[d+3|0]=k>>>24;g[d+4|0]=e;g[d+5|0]=e>>>8;g[d+6|0]=e>>>16;g[d+7|0]=e>>>24;i[a>>2]=-1;ro(h,f+8|0);if(g[f+19|0]<=-1){bp(i[f+8>>2])}if(i[a>>2]){break a}break b}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}if(g[h+11|0]<=-1){bp(i[h>>2])}if(!(I[i[i[b>>2]+16>>2]](b)|0)){b=ho(32);i[f+8>>2]=b;i[f+12>>2]=29;i[f+16>>2]=-2147483616;g[b+29|0]=0;c=j[13585]|j[13586]<<8|(j[13587]<<16|j[13588]<<24);d=j[13581]|j[13582]<<8|(j[13583]<<16|j[13584]<<24);g[b+21|0]=d;g[b+22|0]=d>>>8;g[b+23|0]=d>>>16;g[b+24|0]=d>>>24;g[b+25|0]=c;g[b+26|0]=c>>>8;g[b+27|0]=c>>>16;g[b+28|0]=c>>>24;c=j[13580]|j[13581]<<8|(j[13582]<<16|j[13583]<<24);d=j[13576]|j[13577]<<8|(j[13578]<<16|j[13579]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[13572]|j[13573]<<8|(j[13574]<<16|j[13575]<<24);d=j[13568]|j[13569]<<8|(j[13570]<<16|j[13571]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13564]|j[13565]<<8|(j[13566]<<16|j[13567]<<24);d=j[13560]|j[13561]<<8|(j[13562]<<16|j[13563]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ro(h,f+8|0);if(g[f+19|0]>-1){break a}bp(i[f+8>>2]);break a}if(!(I[i[i[b>>2]+20>>2]](b)|0)){b=ho(32);i[f+8>>2]=b;i[f+12>>2]=31;i[f+16>>2]=-2147483616;g[b+31|0]=0;c=j[13617]|j[13618]<<8|(j[13619]<<16|j[13620]<<24);d=j[13613]|j[13614]<<8|(j[13615]<<16|j[13616]<<24);g[b+23|0]=d;g[b+24|0]=d>>>8;g[b+25|0]=d>>>16;g[b+26|0]=d>>>24;g[b+27|0]=c;g[b+28|0]=c>>>8;g[b+29|0]=c>>>16;g[b+30|0]=c>>>24;c=j[13610]|j[13611]<<8|(j[13612]<<16|j[13613]<<24);d=j[13606]|j[13607]<<8|(j[13608]<<16|j[13609]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[13602]|j[13603]<<8|(j[13604]<<16|j[13605]<<24);d=j[13598]|j[13599]<<8|(j[13600]<<16|j[13601]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13594]|j[13595]<<8|(j[13596]<<16|j[13597]<<24);d=j[13590]|j[13591]<<8|(j[13592]<<16|j[13593]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ro(h,f+8|0);if(g[f+19|0]>-1){break a}bp(i[f+8>>2]);break a}I[i[i[b>>2]+24>>2]](a,b);if(i[a>>2]){break a}if(g[h+11|0]<=-1){bp(i[h>>2])}if(!(I[i[i[b>>2]+28>>2]](b)|0)){b=ho(48);i[f+8>>2]=b;i[f+12>>2]=34;i[f+16>>2]=-2147483600;g[b+34|0]=0;c=j[13654]|j[13655]<<8;g[b+32|0]=c;g[b+33|0]=c>>>8;c=j[13650]|j[13651]<<8|(j[13652]<<16|j[13653]<<24);d=j[13646]|j[13647]<<8|(j[13648]<<16|j[13649]<<24);g[b+24|0]=d;g[b+25|0]=d>>>8;g[b+26|0]=d>>>16;g[b+27|0]=d>>>24;g[b+28|0]=c;g[b+29|0]=c>>>8;g[b+30|0]=c>>>16;g[b+31|0]=c>>>24;c=j[13642]|j[13643]<<8|(j[13644]<<16|j[13645]<<24);d=j[13638]|j[13639]<<8|(j[13640]<<16|j[13641]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[13634]|j[13635]<<8|(j[13636]<<16|j[13637]<<24);d=j[13630]|j[13631]<<8|(j[13632]<<16|j[13633]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[13626]|j[13627]<<8|(j[13628]<<16|j[13629]<<24);d=j[13622]|j[13623]<<8|(j[13624]<<16|j[13625]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ro(h,f+8|0);if(g[f+19|0]>-1){break a}bp(i[f+8>>2]);break a}d=ho(32);i[f+8>>2]=d;i[f+12>>2]=30;i[f+16>>2]=-2147483616;g[d+30|0]=0;h=j[13683]|j[13684]<<8|(j[13685]<<16|j[13686]<<24);e=j[13679]|j[13680]<<8|(j[13681]<<16|j[13682]<<24);g[d+22|0]=e;g[d+23|0]=e>>>8;g[d+24|0]=e>>>16;g[d+25|0]=e>>>24;g[d+26|0]=h;g[d+27|0]=h>>>8;g[d+28|0]=h>>>16;g[d+29|0]=h>>>24;h=j[13677]|j[13678]<<8|(j[13679]<<16|j[13680]<<24);e=j[13673]|j[13674]<<8|(j[13675]<<16|j[13676]<<24);g[d+16|0]=e;g[d+17|0]=e>>>8;g[d+18|0]=e>>>16;g[d+19|0]=e>>>24;g[d+20|0]=h;g[d+21|0]=h>>>8;g[d+22|0]=h>>>16;g[d+23|0]=h>>>24;h=j[13669]|j[13670]<<8|(j[13671]<<16|j[13672]<<24);e=j[13665]|j[13666]<<8|(j[13667]<<16|j[13668]<<24);g[d+8|0]=e;g[d+9|0]=e>>>8;g[d+10|0]=e>>>16;g[d+11|0]=e>>>24;g[d+12|0]=h;g[d+13|0]=h>>>8;g[d+14|0]=h>>>16;g[d+15|0]=h>>>24;h=j[13661]|j[13662]<<8|(j[13663]<<16|j[13664]<<24);e=j[13657]|j[13658]<<8|(j[13659]<<16|j[13660]<<24);g[d|0]=e;g[d+1|0]=e>>>8;g[d+2|0]=e>>>16;g[d+3|0]=e>>>24;g[d+4|0]=h;g[d+5|0]=h>>>8;g[d+6|0]=h>>>16;g[d+7|0]=h>>>24;c=ck(c,f+8|0,0);if(g[f+19|0]<=-1){bp(i[f+8>>2])}if(c){I[i[i[b>>2]+48>>2]](b)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}F=f+32|0}function _m(a,b,c,d,e,f){a=a|0;b=+b;c=c|0;d=d|0;e=e|0;f=f|0;var h=0,k=0,l=0,m=0,n=0,p=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0;p=F-560|0;F=p;i[p+44>>2]=0;Ep(+b);h=Bp(1)|0;Bp(0)|0;a:{if((h|0)<-1?1:(h|0)<=-1){B=1;b=-b;Ep(+b);h=Bp(1)|0;Bp(0)|0;w=17504;break a}B=1;w=17507;if(e&2048){break a}w=17510;if(e&1){break a}B=0;E=1;w=17505}b:{if((h&2146435072)==2146435072){n=B+3|0;Zm(a,32,c,n,e&-65537);Tm(a,w,B);d=f&32;Tm(a,b!=b?d?17531:17535:d?17523:17527,3);break b}x=p+16|0;c:{d:{e:{b=Qm(b,p+44|0);b=b+b;if(b!=0){h=i[p+44>>2];i[p+44>>2]=h+ -1;y=f|32;if((y|0)!=97){break e}break c}y=f|32;if((y|0)==97){break c}n=i[p+44>>2];r=(d|0)<0?6:d;break d}n=h+ -29|0;i[p+44>>2]=n;b=b*268435456;r=(d|0)<0?6:d}t=(n|0)<0?p+48|0:p+336|0;m=t;while(1){d=m;if(b<4294967296&b>=0){h=~~b>>>0}else{h=0}i[d>>2]=h;m=m+4|0;b=(b- +(h>>>0))*1e9;if(b!=0){continue}break}f:{if((n|0)<1){d=n;h=m;k=t;break f}k=t;d=n;while(1){s=(d|0)<29?d:29;h=m+ -4|0;g:{if(h>>>0>>0){break g}d=s;l=0;while(1){u=h;C=l;D=i[h>>2];v=d&31;if(32<=(d&63)>>>0){l=D<>>32-v;D=D<>>0>>0?l+1|0:l;l=wp(v,l,1e9,0);C=u;u=up(l,H,1e9,0);i[C>>2]=v-u;h=h+ -4|0;if(h>>>0>=k>>>0){continue}break}if(!l){break g}k=k+ -4|0;i[k>>2]=l}while(1){h=m;if(h>>>0>k>>>0){m=h+ -4|0;if(!i[m>>2]){continue}}break}d=i[p+44>>2]-s|0;i[p+44>>2]=d;m=h;if((d|0)>0){continue}break}}if((d|0)<=-1){z=((r+25|0)/9|0)+1|0;s=(y|0)==102;while(1){l=(d|0)<-9?9:0-d|0;h:{if(k>>>0>=h>>>0){k=i[k>>2]?k:k+4|0;break h}u=1e9>>>l|0;v=-1<>2];i[m>>2]=C+(d>>>l|0);d=o(u,d&v);m=m+4|0;if(m>>>0>>0){continue}break}k=i[k>>2]?k:k+4|0;if(!d){break h}i[h>>2]=d;h=h+4|0}d=l+i[p+44>>2]|0;i[p+44>>2]=d;m=s?t:k;h=h-m>>2>(z|0)?m+(z<<2)|0:h;if((d|0)<0){continue}break}}m=0;i:{if(k>>>0>=h>>>0){break i}m=o(t-k>>2,9);d=10;l=i[k>>2];if(l>>>0<10){break i}while(1){m=m+1|0;d=o(d,10);if(l>>>0>=d>>>0){continue}break}}d=(r-((y|0)==102?0:m)|0)-((y|0)==103&(r|0)!=0)|0;if((d|0)<(o(h-t>>2,9)+ -9|0)){l=d+9216|0;s=(l|0)/9|0;n=((s<<2)+((n|0)<0?p+48|4:p+340|0)|0)+ -4096|0;d=10;l=l-o(s,9)|0;if((l|0)<=7){while(1){d=o(d,10);l=l+1|0;if((l|0)!=8){continue}break}}s=i[n>>2];u=(s>>>0)/(d>>>0)|0;z=n+4|0;l=s-o(d,u)|0;j:{if(l?0:(z|0)==(h|0)){break j}v=d>>>1|0;A=l>>>0>>0?.5:(h|0)==(z|0)?(v|0)==(l|0)?1:1.5:1.5;b=u&1?9007199254740994:9007199254740992;if(!(j[w|0]!=45|E)){A=-A;b=-b}l=s-l|0;i[n>>2]=l;if(b+A==b){break j}d=d+l|0;i[n>>2]=d;if(d>>>0>=1e9){while(1){i[n>>2]=0;n=n+ -4|0;if(n>>>0>>0){k=k+ -4|0;i[k>>2]=0}d=i[n>>2]+1|0;i[n>>2]=d;if(d>>>0>999999999){continue}break}}m=o(t-k>>2,9);d=10;l=i[k>>2];if(l>>>0<10){break j}while(1){m=m+1|0;d=o(d,10);if(l>>>0>=d>>>0){continue}break}}d=n+4|0;h=h>>>0>d>>>0?d:h}while(1){d=h;n=h>>>0<=k>>>0;if(!n){h=d+ -4|0;if(!i[h>>2]){continue}}break}k:{if((y|0)!=103){s=e&8;break k}h=r?r:1;l=(h|0)>(m|0)&(m|0)>-5;r=(l?m^-1:-1)+h|0;f=(l?-1:-2)+f|0;s=e&8;if(s){break k}h=-9;l:{if(n){break l}s=i[d+ -4>>2];if(!s){break l}l=10;h=0;if((s>>>0)%10|0){break l}while(1){n=h;h=h+1|0;l=o(l,10);if(!((s>>>0)%(l>>>0)|0)){continue}break}h=n^-1}n=o(d-t>>2,9);if((f&-33)==70){s=0;h=(h+n|0)+ -9|0;h=(h|0)>0?h:0;r=(r|0)<(h|0)?r:h;break k}s=0;h=((m+n|0)+h|0)+ -9|0;h=(h|0)>0?h:0;r=(r|0)<(h|0)?r:h}u=r|s;v=(u|0)!=0;C=a;l=c;y=f&-33;h=(m|0)>0?m:0;m:{if((y|0)==70){break m}h=m>>31;h=Ym(h+m^h,0,x);if((x-h|0)<=1){while(1){h=h+ -1|0;g[h|0]=48;if((x-h|0)<2){continue}break}}z=h+ -2|0;g[z|0]=f;g[h+ -1|0]=(m|0)<0?45:43;h=x-z|0}n=(h+(v+(r+B|0)|0)|0)+1|0;Zm(C,32,l,n,e);Tm(a,w,B);Zm(a,48,c,n,e^65536);n:{o:{p:{if((y|0)==70){f=p+16|8;m=p+16|9;l=k>>>0>t>>>0?t:k;k=l;while(1){h=Ym(i[k>>2],0,m);q:{if((k|0)!=(l|0)){if(h>>>0<=p+16>>>0){break q}while(1){h=h+ -1|0;g[h|0]=48;if(h>>>0>p+16>>>0){continue}break}break q}if((h|0)!=(m|0)){break q}g[p+24|0]=48;h=f}Tm(a,h,m-h|0);k=k+4|0;if(k>>>0<=t>>>0){continue}break}if(u){Tm(a,17539,1)}if((r|0)<1|k>>>0>=d>>>0){break p}while(1){h=Ym(i[k>>2],0,m);if(h>>>0>p+16>>>0){while(1){h=h+ -1|0;g[h|0]=48;if(h>>>0>p+16>>>0){continue}break}}Tm(a,h,(r|0)<9?r:9);h=r+ -9|0;k=k+4|0;if(k>>>0>=d>>>0){break o}f=(r|0)>9;r=h;if(f){continue}break}break o}r:{if((r|0)<0){break r}t=d>>>0>k>>>0?d:k+4|0;d=p+16|8;f=p+16|9;m=k;while(1){h=Ym(i[m>>2],0,f);if((f|0)==(h|0)){g[p+24|0]=48;h=d}s:{if((k|0)!=(m|0)){if(h>>>0<=p+16>>>0){break s}while(1){h=h+ -1|0;g[h|0]=48;if(h>>>0>p+16>>>0){continue}break}break s}Tm(a,h,1);h=h+1|0;if((r|0)<1?!s:0){break s}Tm(a,17539,1)}u=h;h=f-h|0;Tm(a,u,(r|0)>(h|0)?h:r);r=r-h|0;m=m+4|0;if(m>>>0>=t>>>0){break r}if((r|0)>-1){continue}break}}Zm(a,48,r+18|0,18,0);Tm(a,z,x-z|0);break n}h=r}Zm(a,48,h+9|0,9,0)}break b}r=f&32;l=r?w+9|0:w;t:{if(d>>>0>11){break t}h=12-d|0;if(!h){break t}A=8;while(1){A=A*16;h=h+ -1|0;if(h){continue}break}if(j[l|0]==45){b=-(A+(-b-A));break t}b=b+A-A}m=i[p+44>>2];h=m>>31;h=Ym(h^h+m,0,x);if((x|0)==(h|0)){g[p+15|0]=48;h=p+15|0}m=B|2;k=i[p+44>>2];t=h+ -2|0;g[t|0]=f+15;g[h+ -1|0]=(k|0)<0?45:43;n=e&8;k=p+16|0;while(1){f=k;u=k;k=r;if(q(b)<2147483648){h=~~b}else{h=-2147483648}g[u|0]=k|j[h+17488|0];b=(b- +(h|0))*16;k=f+1|0;if(!((k-(p+16|0)|0)!=1|(b==0?!((d|0)>0|n):0))){g[f+1|0]=46;k=f+2|0}if(b!=0){continue}break}h=a;f=c;if(!d|((k-p|0)+ -18|0)>=(d|0)){r=((x-(p+16|0)|0)-t|0)+k|0}else{r=((d+x|0)-t|0)+2|0}d=r;n=d+m|0;Zm(h,32,f,n,e);Tm(a,l,m);Zm(a,48,c,n,e^65536);f=k-(p+16|0)|0;Tm(a,p+16|0,f);d=x-t|0;Zm(a,48,r-(d+f|0)|0,0,0);Tm(a,t,d)}Zm(a,32,c,n,e^8192);F=p+560|0;return((n|0)<(c|0)?c:n)|0}function Zb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0;c=F-1696|0;F=c;d=10-_b(i[i[a+28>>2]+48>>2])|0;d=(d|0)<6?d:6;g[c+1695|0]=d;if(!((d&255)!=6|i[a+72>>2]<16)){g[c+1695|0]=5}d=i[b+20>>2];if((d|0)<0?1:(d|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],c+1695|0,c+1696|0)}f=i[a+28>>2];m=i[i[f+4>>2]+80>>2];e=i[a+72>>2];i[c+1684>>2]=0;i[c+1676>>2]=0;i[c+1680>>2]=0;i[c+1668>>2]=e;i[c+1664>>2]=m;i[c+1672>>2]=e<<2;a:{h=o(e,m);if(h){if(h>>>0>=1073741824){break a}d=h<<2;k=ho(d);i[c+1676>>2]=k;n=d+k|0;i[c+1684>>2]=n;ip(k,0,d);i[c+1680>>2]=n}i[c+1688>>2]=k;b:{d=i[a+4>>2];c:{if((d|0)!=i[a+8>>2]){while(1){f=i[i[i[f+4>>2]+8>>2]+(i[(s<<2)+d>>2]<<2)>>2];d=i[f+28>>2];if(d+ -1>>>0>=6){if((d|0)!=9){break c}f=i[i[a+60>>2]+(v<<2)>>2];if(!f){break c}v=v+1|0;d=i[f+28>>2]}d:{e:{switch(d+ -1|0){case 5:if(!m){break d}d=0;while(1){e=d;h=(i[c+1688>>2]+(p<<2)|0)+(o(i[c+1668>>2],d)<<2)|0;k=i[i[f>>2]>>2];n=i[f+48>>2];t=i[f+40>>2];u=i[f+44>>2];if(!j[f+84|0]){e=i[i[f+68>>2]+(d<<2)>>2]}q=h;h=up(t,u,e,0)+n|0;hp(q,h+k|0,g[f+24|0]<<2);d=d+1|0;if((m|0)!=(d|0)){continue}break}break d;case 0:case 2:case 4:e=g[f+24|0];d=0;i[c+464>>2]=0;i[c+456>>2]=0;i[c+460>>2]=0;h=0;f:{if(e){if((e|0)<=-1){break f}e=e<<2;h=ho(e);i[c+456>>2]=h;k=e+h|0;i[c+464>>2]=k;ip(h,0,e);i[c+460>>2]=k;h=j[f+24|0]}i[c+1656>>2]=0;i[c+1648>>2]=0;i[c+1652>>2]=0;g:{if(h&255){d=h<<24>>24;if((d|0)<=-1){break g}e=d<<2;d=ho(e);i[c+1648>>2]=d;h=d+e|0;i[c+1656>>2]=h;ip(d,0,e);i[c+1652>>2]=h}if(m){e=0;while(1){d=e;h=f;if(!j[f+84|0]){d=i[i[f+68>>2]+(e<<2)>>2]}Xb(h,d,g[f+24|0],i[c+456>>2]);k=g[f+24|0];h:{if((k|0)<=0){h=i[c+1648>>2];break h}k=k&255;n=k>>>0>1?k:1;t=i[a+48>>2];d=0;h=i[c+1648>>2];u=i[c+456>>2];while(1){q=d<<2;i[q+h>>2]=i[u+q>>2]-i[t+(d+w<<2)>>2];d=d+1|0;if((n|0)!=(d|0)){continue}break}}hp((i[c+1688>>2]+(p<<2)|0)+(o(i[c+1668>>2],e)<<2)|0,h,k<<2);e=e+1|0;if((e|0)!=(m|0)){continue}break}d=i[c+1648>>2]}e=g[f+24|0];if(d){i[c+1652>>2]=d;bp(d)}d=i[c+456>>2];if(d){i[c+460>>2]=d;bp(d)}w=e+w|0;break d}Ho();x()}Ho();x();default:break e}}e=g[f+24|0];d=0;i[c+464>>2]=0;i[c+456>>2]=0;i[c+460>>2]=0;if(e){if((e|0)<=-1){break b}e=e<<2;d=ho(e);i[c+456>>2]=d;h=d+e|0;i[c+464>>2]=h;ip(d,0,e);i[c+460>>2]=h}if(m){d=0;while(1){e=d;h=f;if(!j[f+84|0]){e=i[i[f+68>>2]+(d<<2)>>2]}$b(h,e,g[f+24|0],i[c+456>>2]);hp((i[c+1688>>2]+(p<<2)|0)+(o(i[c+1668>>2],d)<<2)|0,i[c+456>>2],g[f+24|0]<<2);d=d+1|0;if((m|0)!=(d|0)){continue}break}d=i[c+456>>2]}if(!d){break d}i[c+460>>2]=d;bp(d)}s=s+1|0;d=i[a+4>>2];if(s>>>0>2]-d>>2>>>0){p=g[f+24|0]+p|0;f=i[a+28>>2];continue}break}k=i[c+1688>>2];e=i[a+72>>2];h=o(m,e)}f=0;if((h|0)>0){d=0;while(1){a=i[(d<<2)+k>>2];if(a){a=r(a);f=(a^31)<(f|0)?f:32-a|0}d=d+1|0;if((h|0)!=(d|0)){continue}break}}i:{j:{switch(j[c+1695|0]){case 6:d=cc(c+456|0,e);a=i[c+1668>>2];i[c+448>>2]=a;i[c+432>>2]=a;i[c+32>>2]=a;i[c+16>>2]=a;i[c+440>>2]=0;i[c+424>>2]=i[c+1664>>2];i[c+444>>2]=c+1664;a=i[c+444>>2];i[c+24>>2]=i[c+440>>2];i[c+28>>2]=a;i[c+428>>2]=c+1664;i[c+1648>>2]=f;a=i[c+428>>2];i[c+8>>2]=i[c+424>>2];i[c+12>>2]=a;a=ac(d,c+24|0,c+8|0,c+1648|0,b);bc(d);if(a){break i}break c;case 5:d=cc(c+456|0,e);a=i[c+1668>>2];i[c+416>>2]=a;i[c+400>>2]=a;i[c- -64>>2]=a;i[c+48>>2]=a;i[c+408>>2]=0;i[c+392>>2]=i[c+1664>>2];i[c+412>>2]=c+1664;a=i[c+412>>2];i[c+56>>2]=i[c+408>>2];i[c+60>>2]=a;i[c+396>>2]=c+1664;i[c+1648>>2]=f;a=i[c+396>>2];i[c+40>>2]=i[c+392>>2];i[c+44>>2]=a;a=dc(d,c+56|0,c+40|0,c+1648|0,b);bc(d);if(a){break i}break c;case 4:d=cc(c+456|0,e);a=i[c+1668>>2];i[c+384>>2]=a;i[c+368>>2]=a;i[c+96>>2]=a;i[c+80>>2]=a;i[c+376>>2]=0;i[c+360>>2]=i[c+1664>>2];i[c+380>>2]=c+1664;a=i[c+380>>2];i[c+88>>2]=i[c+376>>2];i[c+92>>2]=a;i[c+364>>2]=c+1664;i[c+1648>>2]=f;a=i[c+364>>2];i[c+72>>2]=i[c+360>>2];i[c+76>>2]=a;a=dc(d,c+88|0,c+72|0,c+1648|0,b);bc(d);if(a){break i}break c;case 3:d=ec(c+456|0,e);a=i[c+1668>>2];i[c+352>>2]=a;i[c+336>>2]=a;i[c+128>>2]=a;i[c+112>>2]=a;i[c+344>>2]=0;i[c+328>>2]=i[c+1664>>2];i[c+348>>2]=c+1664;a=i[c+348>>2];i[c+120>>2]=i[c+344>>2];i[c+124>>2]=a;i[c+332>>2]=c+1664;i[c+1648>>2]=f;a=i[c+332>>2];i[c+104>>2]=i[c+328>>2];i[c+108>>2]=a;a=fc(d,c+120|0,c+104|0,c+1648|0,b);gc(d);if(a){break i}break c;case 2:d=ec(c+456|0,e);a=i[c+1668>>2];i[c+320>>2]=a;i[c+304>>2]=a;i[c+160>>2]=a;i[c+144>>2]=a;i[c+312>>2]=0;i[c+296>>2]=i[c+1664>>2];i[c+316>>2]=c+1664;a=i[c+316>>2];i[c+152>>2]=i[c+312>>2];i[c+156>>2]=a;i[c+300>>2]=c+1664;i[c+1648>>2]=f;a=i[c+300>>2];i[c+136>>2]=i[c+296>>2];i[c+140>>2]=a;a=fc(d,c+152|0,c+136|0,c+1648|0,b);gc(d);if(a){break i}break c;case 1:d=hc(c+456|0,e);a=i[c+1668>>2];i[c+288>>2]=a;i[c+272>>2]=a;i[c+192>>2]=a;i[c+176>>2]=a;i[c+280>>2]=0;i[c+264>>2]=i[c+1664>>2];i[c+284>>2]=c+1664;a=i[c+284>>2];i[c+184>>2]=i[c+280>>2];i[c+188>>2]=a;i[c+268>>2]=c+1664;i[c+1648>>2]=f;a=i[c+268>>2];i[c+168>>2]=i[c+264>>2];i[c+172>>2]=a;a=ic(d,c+184|0,c+168|0,c+1648|0,b);jc(d);if(a){break i}break c;case 0:break j;default:break c}}d=hc(c+456|0,e);a=i[c+1668>>2];i[c+256>>2]=a;i[c+240>>2]=a;i[c+224>>2]=a;i[c+208>>2]=a;i[c+248>>2]=0;i[c+232>>2]=i[c+1664>>2];i[c+252>>2]=c+1664;a=i[c+252>>2];i[c+216>>2]=i[c+248>>2];i[c+220>>2]=a;i[c+236>>2]=c+1664;i[c+1648>>2]=f;a=i[c+236>>2];i[c+200>>2]=i[c+232>>2];i[c+204>>2]=a;a=ic(d,c+216|0,c+200|0,c+1648|0,b);jc(d);if(!a){break c}}y=1}a=i[c+1676>>2];if(a){i[c+1680>>2]=a;bp(a)}F=c+1696|0;return y|0}Ho();x()}Ho();x()}function gi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;l=F-32|0;F=l;d=i[a+16>>2];i[a+20>>2]=d;a:{if((d|0)!=i[a+24>>2]){i[d>>2]=b;b=d+4|0;i[a+20>>2]=b;g=d;break a}g=ho(4);i[g>>2]=b;b=g+4|0;i[a+24>>2]=b;i[a+20>>2]=b;i[a+16>>2]=g;if(!d){break a}bp(d);b=i[a+20>>2];g=i[a+16>>2]}d=i[a+8>>2];q=i[d+100>>2]-i[d+96>>2]|0;d=(q|0)/12|0;b:{if((b|0)!=(g|0)){u=a+16|0;v=(d|0)>1?d:1;w=a+120|0;n=a+268|0;y=a+72|0;while(1){c:{d:{d=b+ -4|0;b=i[d>>2];if((b|0)==-1){break d}g=i[a+28>>2];e=(b>>>0)/3|0;if(i[g+(e>>>3&268435452)>>2]>>>e&1){break d}h=0;if((q|0)<=0){break c}while(1){i[a+164>>2]=i[a+164>>2]+1;j=(b>>>0)/3|0;m=(b|0)==-1;k=m?-1:j;d=(k>>>3&536870908)+g|0;i[d>>2]=i[d>>2]|1<>2];i:{if((d|0)!=i[a+80>>2]){i[d>>2]=b;i[a+76>>2]=d+4;break i}g=i[y>>2];e=d-g|0;f=e>>2;c=f+1|0;if(c>>>0>=1073741824){break h}p=e>>1;c=f>>>0<536870911?p>>>0>>0?c:p:1073741823;d=0;j:{if(!c){break j}if(c>>>0>=1073741824){break b}d=ho(c<<2)}f=d+(f<<2)|0;i[f>>2]=b;c=d+(c<<2)|0;f=f+4|0;if((e|0)>=1){hp(d,g,e)}i[a+80>>2]=c;i[a+76>>2]=f;i[a+72>>2]=d;if(!g){break i}bp(g)}d=-1;d=(b|0)!=-1?i[i[i[a+12>>2]>>2]+(b<<2)>>2]:d;r=d<<2;p=i[r+i[a+152>>2]>>2];k:{g=i[a+84>>2]+(d>>>3&536870908)|0;e=i[g>>2];d=1<>2]=d|e;if((p|0)!=-1){break k}d=i[a+272>>2];l:{if((d|0)!=i[a+276>>2]){i[d>>2]=0;i[a+272>>2]=d+4;break l}g=i[n>>2];e=d-g|0;f=e>>2;c=f+1|0;if(c>>>0>=1073741824){break g}k=e>>1;c=f>>>0<536870911?k>>>0>>0?c:k:1073741823;d=0;m:{if(!c){break m}if(c>>>0>=1073741824){break b}d=ho(c<<2)}f=d+(f<<2)|0;i[f>>2]=0;c=d+(c<<2)|0;f=f+4|0;if((e|0)>=1){hp(d,g,e)}i[a+276>>2]=c;i[a+272>>2]=f;i[a+268>>2]=d;if(!g){break l}bp(g)}d=-1;if((b|0)==-1){break e}g=b+1|0;b=(g>>>0)%3|0?g:b+ -2|0;if((b|0)==-1){break e}d=i[i[i[a+12>>2]+12>>2]+(b<<2)>>2];break e}n:{o:{p:{if(m){break p}d=-1;g=-1;e=b+1|0;c=(e>>>0)%3|0?e:b+ -2|0;if((c|0)!=-1){g=i[i[i[a+12>>2]+12>>2]+(c<<2)>>2]}e=(b-o(j,3)|0?-1:2)+b|0;if((e|0)!=-1){d=i[i[i[a+12>>2]+12>>2]+(e<<2)>>2]}f=(d|0)==-1;j=f?-1:(d>>>0)/3|0;m=(g>>>0)/3|0;q:{if((c|0)==-1){break q}s=i[i[a+12>>2]+12>>2];c=i[s+(c<<2)>>2];if((c|0)==-1){break q}t=i[a+28>>2];c=(c>>>0)/3|0;if(!(i[t+(c>>>3&268435452)>>2]>>>c&1)){break n}}b=(g|0)==-1;if(!b){oi(a,i[a+164>>2],1,b?-1:m)}r:{if((e|0)==-1){break r}b=i[i[i[a+12>>2]+12>>2]+(e<<2)>>2];if((b|0)==-1){break r}b=(b>>>0)/3|0;if(!(i[i[a+28>>2]+(b>>>3&268435452)>>2]>>>b&1)){break o}}if(f){break p}oi(a,i[a+164>>2],0,j)}b=i[a+272>>2];s:{if((b|0)!=i[a+276>>2]){i[b>>2]=7;i[a+272>>2]=b+4;break s}d=i[n>>2];g=b-d|0;c=g>>2;e=c+1|0;if(e>>>0>=1073741824){break g}h=g>>1;e=c>>>0<536870911?h>>>0>>0?e:h:1073741823;b=0;t:{if(!e){break t}if(e>>>0>=1073741824){break b}b=ho(e<<2)}c=b+(c<<2)|0;i[c>>2]=7;e=b+(e<<2)|0;c=c+4|0;if((g|0)>=1){hp(b,d,g)}i[a+276>>2]=e;i[a+272>>2]=c;i[a+268>>2]=b;if(!d){break s}bp(d)}i[a+20>>2]=i[a+20>>2]+ -4;break c}b=i[a+272>>2];if((b|0)!=i[a+276>>2]){i[b>>2]=5;i[a+272>>2]=b+4;break e}g=i[n>>2];e=b-g|0;f=e>>2;c=f+1|0;if(c>>>0>=1073741824){break g}k=e>>1;c=f>>>0<536870911?k>>>0>>0?c:k:1073741823;b=0;u:{if(!c){break u}if(c>>>0>=1073741824){break b}b=ho(c<<2)}f=b+(f<<2)|0;i[f>>2]=5;c=b+(c<<2)|0;f=f+4|0;if((e|0)>=1){hp(b,g,e)}i[a+276>>2]=c;i[a+272>>2]=f;i[a+268>>2]=b;if(!g){break e}bp(g);break e}v:{w:{if((e|0)==-1){break w}e=i[(e<<2)+s>>2];if((e|0)==-1){break w}e=(e>>>0)/3|0;if(!(i[(e>>>3&268435452)+t>>2]>>>e&1)){break v}}if(!f){oi(a,i[a+164>>2],0,j)}b=i[a+272>>2];if((b|0)!=i[a+276>>2]){i[b>>2]=3;i[a+272>>2]=b+4;d=g;break e}d=i[n>>2];e=b-d|0;f=e>>2;c=f+1|0;if(c>>>0>=1073741824){break g}k=e>>1;c=f>>>0<536870911?k>>>0>>0?c:k:1073741823;b=0;x:{if(!c){break x}if(c>>>0>=1073741824){break b}b=ho(c<<2)}f=b+(f<<2)|0;i[f>>2]=3;c=b+(c<<2)|0;f=f+4|0;if((e|0)>=1){hp(b,d,e)}i[a+276>>2]=c;i[a+272>>2]=f;i[a+268>>2]=b;if(d){bp(d)}d=g;break e}e=i[a+272>>2];y:{if((e|0)!=i[a+276>>2]){i[e>>2]=1;i[a+272>>2]=e+4;break y}c=i[n>>2];h=e-c|0;j=h>>2;f=j+1|0;if(f>>>0>=1073741824){break g}m=h>>1;f=j>>>0<536870911?m>>>0>>0?f:m:1073741823;e=0;z:{if(!f){break z}if(f>>>0>=1073741824){break b}e=ho(f<<2)}j=e+(j<<2)|0;i[j>>2]=1;f=e+(f<<2)|0;j=j+4|0;if((h|0)>=1){hp(e,c,h)}i[a+276>>2]=f;i[a+272>>2]=j;i[a+268>>2]=e;if(!c){break y}bp(c)}i[a+168>>2]=i[a+168>>2]+1;A:{if((p|0)==-1){break A}e=i[r+i[a+152>>2]>>2];if(i[i[a+140>>2]+(e>>>3&536870908)>>2]>>>e&1){break A}hi(a,b,0)}b=i[a+164>>2];i[l+4>>2]=k;i[l+16>>2]=l+4;pi(l+24|0,w,l+4|0,l+16|0);i[i[l+24>>2]+12>>2]=b;b=i[a+20>>2];i[b+ -4>>2]=d;if((b|0)!=i[a+24>>2]){i[b>>2]=g;i[a+20>>2]=b+4;break c}d=i[u>>2];e=b-d|0;h=e>>2;c=h+1|0;if(c>>>0>=1073741824){break f}f=e>>1;c=h>>>0<536870911?f>>>0>>0?c:f:1073741823;b=0;B:{if(!c){break B}if(c>>>0>=1073741824){break b}b=ho(c<<2)}h=b+(h<<2)|0;i[h>>2]=g;g=b+(c<<2)|0;c=h+4|0;if((e|0)>=1){hp(b,d,e)}i[a+24>>2]=g;i[a+20>>2]=c;i[a+16>>2]=b;if(!d){break c}bp(d);break c}Ho();x()}Ho();x()}Ho();x()}h=h+1|0;if((v|0)==(h|0)){break c}g=i[a+28>>2];b=d;continue}}i[a+20>>2]=d}b=i[a+20>>2];if((b|0)!=i[a+16>>2]){continue}break}}F=l+32|0;return 1}za(11708);x()}function yn(a,b,c,d,e,f,g,h,j){var k=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,I=0,J=0,K=0,L=0,M=0;m=F-96|0;F=m;u=c;w=(g&131071)<<15|f>>>17;k=j&65535;o=k;n=h;l=h;z=l<<15|g>>>17;p=(e^j)&-2147483648;v=e&65535;l=v;q=d;x=l;v=0;B=(k&131071)<<15|h>>>17;C=j>>>16&32767;D=e>>>16&32767;a:{b:{if(C+ -1>>>0<32766?D+ -1>>>0<=32765:0){break b}s=e&2147483647;y=s;k=d;if(!(!d&(s|0)==2147418112?!(b|c):(s|0)==2147418112&d>>>0<0|s>>>0<2147418112)){A=d;p=e|32768;break a}s=j&2147483647;e=s;d=h;if(!(!d&(e|0)==2147418112?!(f|g):(e|0)==2147418112&d>>>0<0|e>>>0<2147418112)){A=h;p=j|32768;b=f;c=g;break a}if(!(b|k|(y^2147418112|c))){if(!(d|f|(e|g))){p=2147450880;b=0;c=0;break a}p=p|2147418112;b=0;c=0;break a}if(!(d|f|(e^2147418112|g))){d=b|k;e=c|y;b=0;c=0;if(!(d|e)){p=2147450880;break a}p=p|2147418112;break a}if(!(b|k|(c|y))){b=0;c=0;break a}if(!(d|f|(e|g))){b=0;c=0;break a}if((y|0)==65535|y>>>0<65535){j=b;d=!(l|q);h=d<<6;k=r(d?b:q)+32|0;b=r(d?c:l);b=h+((b|0)==32?k:b)|0;sn(m+80|0,j,c,q,l,b+ -15|0);t=16-b|0;q=i[m+88>>2];u=i[m+84>>2];x=i[m+92>>2];b=i[m+80>>2]}if(e>>>0>65535){break b}c=!(n|o);d=c<<6;e=r(c?f:n)+32|0;c=r(c?g:o);c=d+((c|0)==32?e:c)|0;sn(m- -64|0,f,g,n,o,c+ -15|0);t=(t-c|0)+16|0;f=i[m+76>>2];c=f;h=i[m+68>>2];g=h;e=i[m+72>>2];d=e;z=d<<15|g>>>17;d=g;f=i[m+64>>2];w=(d&131071)<<15|f>>>17;B=(c&131071)<<15|e>>>17}L=(C+D|0)+t|0;o=z;s=0;t=0;h=up(o,s,q,t);d=H;j=0;n=w;C=0;x=x|65536;l=up(n,C,x,v);e=l+h|0;c=H+d|0;c=e>>>0>>0?c+1|0:c;l=e;k=e;e=c;g=(d|0)==(c|0)&k>>>0>>0|c>>>0>>0;B=B&2147483647|-2147483648;D=0;h=up(B,D,u,0);d=h+k|0;k=H+c|0;E=d;c=d;k=c>>>0>>0?k+1|0:k;d=k;c=(e|0)==(d|0)&c>>>0>>0|d>>>0>>0;e=g+c|0;if(e>>>0>>0){j=1}M=e;h=j;l=d;e=up(n,C,u,I);c=H;k=c;j=0;G=f<<15&-32768;g=up(G,0,q,t);f=g+e|0;c=H+c|0;c=f>>>0>>0?c+1|0:c;g=f;f=(k|0)==(c|0)&g>>>0>>0|c>>>0>>0;w=b;e=up(o,s,b,0);b=e+g|0;k=H+c|0;k=b>>>0>>0?k+1|0:k;z=b;e=k;b=(c|0)==(k|0)&b>>>0>>0|k>>>0>>0;c=f+b|0;if(c>>>0>>0){j=1}b=c+E|0;f=j+l|0;y=b;k=h;f=b>>>0>>0?f+1|0:f;g=f;b=(d|0)==(f|0)&b>>>0>>0|f>>>0>>0;c=b+M|0;if(c>>>0>>0){k=k+1|0}b=c;c=up(x,v,B,D);b=b+c|0;l=H+k|0;l=b>>>0>>0?l+1|0:l;d=up(q,t,B,D);c=H;j=b;h=up(o,s,x,v);b=h+d|0;f=H+c|0;f=b>>>0>>0?f+1|0:f;h=b;k=b;b=f;f=(c|0)==(b|0)&k>>>0>>0|b>>>0>>0;d=j+b|0;k=f+l|0;c=d;f=c>>>0>>0?k+1|0:k;c=h;h=0;b=h+y|0;j=c+g|0;j=b>>>0>>0?j+1|0:j;h=b;c=b;b=j;c=(g|0)==(b|0)&c>>>0>>0|b>>>0>>0;d=d+c|0;if(d>>>0>>0){f=f+1|0}E=d;c=h;y=b;t=up(q,t,n,C);q=H;g=up(G,J,x,v);d=g+t|0;l=H+q|0;l=d>>>0>>0?l+1|0:l;x=d;k=up(o,s,u,I);d=d+k|0;g=l;j=g+H|0;j=d>>>0>>0?j+1|0:j;o=d;l=up(w,K,B,D);d=d+l|0;k=H+j|0;v=d;k=d>>>0>>0?k+1|0:k;d=k;s=d;k=0;l=f;d=(d|0)==(j|0)&v>>>0>>0|d>>>0>>0;f=(g|0)==(j|0)&o>>>0>>0|j>>>0>>0;g=f+((g|0)==(q|0)&x>>>0>>0|g>>>0>>0)|0;g>>>0>>0;g=d+g|0;f=s;c=c+f|0;k=(g|k)+y|0;k=c>>>0>>0?k+1|0:k;j=c;g=k;b=(b|0)==(k|0)&c>>>0>>0|k>>>0>>0;c=b+E|0;if(c>>>0>>0){l=l+1|0}t=c;b=l;l=j;o=g;k=z;s=up(w,K,n,C);n=H;h=up(G,J,u,I);c=h+s|0;f=H+n|0;q=c;f=c>>>0>>0?f+1|0:f;h=f;f=0;c=(h|0)==(n|0)&c>>>0>>0|h>>>0>>0;n=h+k|0;k=(c|f)+e|0;k=n>>>0>>0?k+1|0:k;f=n;c=k;u=(e|0)==(c|0)&f>>>0>>0|c>>>0>>0;h=l;f=0;k=c+v|0;l=0;d=l+n|0;if(d>>>0>>0){k=k+1|0}e=d;d=k;c=(c|0)==(d|0)&e>>>0>>0|d>>>0>>0;l=c+u|0;if(l>>>0>>0){f=1}k=l;c=h+k|0;l=f+o|0;l=c>>>0>>0?l+1|0:l;v=c;k=b;b=l;c=(g|0)==(b|0)&c>>>0>>0|b>>>0>>0;f=c+t|0;if(f>>>0>>0){k=k+1|0}o=f;c=k;f=c&65536;k=f;n=0;u=k>>>16|0;g=(u+L|0)+ -16383|0;if((g|0)>=32767){p=p|2147418112;b=0;c=0;break a}l=o;j=c<<1|l>>>31;f=l<<1|b>>>31;z=!(k|n);l=z;o=l?f:o;n=l?j:c;j=d;h=0;f=up(w,K,G,J);d=h+f|0;k=q;c=k+H|0;c=d>>>0>>0?c+1|0:c;q=d;f=c;c=e+((k|0)==(c|0)&d>>>0>>0|c>>>0>>0)|0;if(c>>>0>>0){j=j+1|0}w=c;c=j;h=c;e=w;l=u^1;d=l&31;if(32<=(l&63)>>>0){k=e<>>32-d|h<>>1|0;h=(d&1)<<31|q>>>1;j=u|62;d=j&31;if(32<=(j&63)>>>0){j=0;d=k>>>d|0}else{j=k>>>d|0;d=((1<>>d}d=w|d;e=e|j;j=v;k=b<<1|j>>>31;h=z?j<<1|c>>>31:j;j=z?k:b;c=q;b=l&31;if(32<=(l&63)>>>0){f=c<>>32-b|f<>>0>=128){b=0;c=0;break a}g=g+127|0;sn(m+48|0,b,c,d,e,g);sn(m+32|0,h,j,o,n,g);vn(m+16|0,b,c,d,e,f);vn(m,h,j,o,n,f);b=(i[m+48>>2]|i[m+56>>2])!=0|(i[m+52>>2]|i[m+60>>2])!=0|(i[m+32>>2]|i[m+16>>2]);c=i[m+36>>2]|i[m+20>>2];d=i[m+40>>2]|i[m+24>>2];e=i[m+44>>2]|i[m+28>>2];h=i[m>>2];j=i[m+4>>2];g=i[m+12>>2];o=i[m+8>>2];break c}g=n&65535|g<<16}A=o|A;p=g|p;if(!(!d&(e|0)==-2147483648?!(b|c):(e|0)>-1)){k=p;l=j;b=h+1|0;if(b>>>0<1){l=l+1|0}d=b;c=l;d=(j|0)==(c|0)&d>>>0>>0|c>>>0>>0;e=d+A|0;if(e>>>0>>0){k=k+1|0}A=e;p=k;break a}if(b|d|(e^-2147483648|c)){b=h;c=j;break a}l=p;f=j;b=h&1;c=b+h|0;if(c>>>0>>0){f=f+1|0}b=c;d=c;c=f;d=(j|0)==(c|0)&d>>>0>>0|c>>>0>>0;e=d+A|0;if(e>>>0>>0){l=l+1|0}A=e;p=l}i[a>>2]=b;i[a+4>>2]=c;i[a+8>>2]=A;i[a+12>>2]=p;F=m+96|0}function Pd(a,b,c,d){var e=0,f=0,h=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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=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;k=F-80|0;F=k;h=-1;e=-1;a:{if((b|0)==-1){break a}e=b+1|0;h=(e>>>0)%3|0?e:b+ -2|0;e=b+ -1|0;if((b>>>0)%3|0){break a}e=b+2|0}f=i[a+36>>2];b=i[f>>2];b:{c:{d:{e:{f:{g:{h:{i:{f=i[f+4>>2]-b>>2;m=h<<2;h=i[i[a+32>>2]+28>>2];l=i[m+h>>2];if(f>>>0<=l>>>0){break i}e=i[h+(e<<2)>>2];if(f>>>0<=e>>>0){break i}K=i[b+(l<<2)>>2];M=(K|0)>=(d|0);if(M){break d}l=i[b+(e<<2)>>2];if((l|0)>=(d|0)){break d}b=l<<3;f=i[(b|4)+c>>2];e=K<<3;h=i[(e|4)+c>>2];J=i[b+c>>2];z=i[c+e>>2];if(!((J|0)!=(z|0)|(f|0)!=(h|0))){i[a+8>>2]=z;i[a+12>>2]=h;break c}b=i[i[a+4>>2]+(d<<2)>>2];i[k+72>>2]=0;i[k+76>>2]=0;e=k- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[k+56>>2]=0;i[k+60>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Qd(e,b,g[e+24|0],k+56|0);b=i[i[a+4>>2]+(K<<2)>>2];i[k+48>>2]=0;i[k+52>>2]=0;i[k+40>>2]=0;i[k+44>>2]=0;i[k+32>>2]=0;i[k+36>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Qd(e,b,g[e+24|0],k+32|0);b=i[i[a+4>>2]+(l<<2)>>2];i[k+24>>2]=0;i[k+28>>2]=0;i[k+16>>2]=0;i[k+20>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Qd(e,b,g[e+24|0],k+8|0);A=i[k+44>>2];e=i[k+16>>2];b=i[k+40>>2];n=i[k+20>>2]-(A+(e>>>0>>0)|0)|0;l=e-b|0;e=up(l,n,l,n);r=H;m=e;y=i[k+36>>2];e=i[k+8>>2];u=i[k+32>>2];o=u;s=i[k+12>>2]-(y+(e>>>0>>0)|0)|0;o=e-o|0;p=up(o,s,o,s);m=m+p|0;e=H+r|0;e=m>>>0

>>0?e+1|0:e;q=m;t=i[k+52>>2];m=i[k+24>>2];v=i[k+48>>2];p=v;r=i[k+28>>2]-(t+(m>>>0

>>0)|0)|0;m=m-p|0;C=up(m,r,m,r);p=q+C|0;e=H+e|0;w=p;p=p>>>0>>0?e+1|0:e;if(!(w|p)){break d}e=i[k+64>>2];C=e-b|0;N=i[k+68>>2]-((e>>>0>>0)+A|0)|0;b=up(C,N,l,n);e=H;q=b;b=i[k+56>>2];E=b-u|0;O=i[k+60>>2]-((b>>>0>>0)+y|0)|0;u=up(E,O,o,s);b=q+u|0;e=H+e|0;e=b>>>0>>0?e+1|0:e;q=b;b=i[k+72>>2];G=b-v|0;P=i[k+76>>2]-((b>>>0>>0)+t|0)|0;u=up(G,P,m,r);b=q+u|0;e=H+e|0;v=b;e=b>>>0>>0?e+1|0:e;A=e;B=b;u=e;e=r;y=e>>31;b=e>>31;e=b+e|0;t=y;q=t+m|0;if(q>>>0>>0){e=e+1|0}y=y^q;b=b^e;Q=b;q=y;I=b;e=n;b=e>>31;e=e>>31;D=b;b=b+n|0;L=e+l|0;if(L>>>0>>0){b=b+1|0}e=e^L;b=b^D;R=b;L=b;S=B;T=q;q=e;B=s>>31;b=B+s|0;t=s>>31;D=t+o|0;if(D>>>0>>0){b=b+1|0}t=t^D;e=t>>>0>>0;b=b^B;e=(b|0)<(R|0)?1:(b|0)<=(R|0)?e:0;t=e?q:t;b=e?L:b;e=(b|0)<(Q|0)?1:(b|0)<=(Q|0)?t>>>0>>0:0;e=S>>>0>wp(-1,2147483647,e?T:t,e?I:b)>>>0;b=H;if((u|0)>(b|0)?1:(u|0)>=(b|0)?e:0){break e}b=f;e=h;B=b-e|0;h=e>>31;q=(b>>31)-(h+(b>>>0>>0)|0)|0;b=up(v,A,B,q);f=H;e=up(e,h,w,p);b=e+b|0;f=H+f|0;u=b;y=b>>>0>>0?f+1|0:f;b=J;e=z;I=b-e|0;f=e>>31;D=(b>>31)-(f+(b>>>0>>0)|0)|0;b=up(v,A,I,D);h=H;f=up(e,f,w,p);e=f+b|0;b=H+h|0;z=e;J=e>>>0>>0?b+1|0:b;h=1;e=0;b=vp(up(l,n,v,A),H,w,p);f=N-(H+(C>>>0>>0)|0)|0;b=C-b|0;b=up(b,f,b,f);l=H;n=b;b=vp(up(o,s,v,A),H,w,p);f=O-(H+(E>>>0>>0)|0)|0;b=E-b|0;o=up(b,f,b,f);b=n+o|0;f=H+l|0;f=b>>>0>>0?f+1|0:f;n=b;b=vp(up(m,r,v,A),H,w,p);l=P-(H+(G>>>0>>0)|0)|0;b=G-b|0;o=up(b,l,b,l);l=n+o|0;b=H+f|0;l=up(l,l>>>0>>0?b+1|0:b,w,p);b=H;o=b;if(!b&l>>>0<=1|b>>>0<0){break h}m=l;f=o;while(1){b=e<<1|h>>>31;h=h<<1;e=b;n=!f&m>>>0>7|f>>>0>0;m=(f&3)<<30|m>>>2;f=f>>>2|0;if(n){continue}break}break g}Io();x()}h=l;e=o;if(h-1|0){break f}}while(1){b=wp(l,o,h,e)+h|0;e=e+H|0;e=b>>>0>>0?e+1|0:e;h=(e&1)<<31|b>>>1;e=e>>>1|0;b=up(h,e,h,e);f=H;if((o|0)==(f|0)&b>>>0>l>>>0|f>>>0>o>>>0){continue}break}}o=a+16|0;t=i[a+24>>2];C=t<<5;b=i[a+20>>2];v=d<<3;n=i[(v|4)+c>>2];m=n;f=u;E=up(h,e,I,D);l=E;G=H;l=vp(f-l|0,y-(G+(f>>>0>>0)|0)|0,w,p);r=m>>31;f=m;s=r-(H+(f>>>0>>0)|0)|0;f=f-l|0;I=up(f,s,f,s);D=H;n=i[c+v>>2];f=n>>31;v=n;s=n;A=f;n=up(h,e,B,q);B=H;e=J+B|0;h=z;q=h+n|0;if(q>>>0>>0){e=e+1|0}h=vp(q,e,w,p);e=h;f=f-(H+(s>>>0>>0)|0)|0;e=s-e|0;s=up(e,f,e,f);e=s+I|0;f=H+D|0;q=e;s=e>>>0>>0?f+1|0:f;e=y+G|0;f=u+E|0;if(f>>>0>>0){e=e+1|0}e=vp(f,e,w,p);r=r-(H+(m>>>0>>0)|0)|0;f=m-e|0;f=up(f,r,f,r);u=H;m=vp(z-n|0,J-((z>>>0>>0)+B|0)|0,w,p);n=f;f=m;r=A-(H+(v>>>0>>0)|0)|0;f=v-f|0;z=up(f,r,f,r);r=n+z|0;f=H+u|0;f=r>>>0>>0?f+1|0:f;j:{if((f|0)==(s|0)&q>>>0>>0|s>>>0>>0){if((b|0)==(C|0)){if((b+1|0)<=-1){break b}if(b>>>0<=1073741822){b=b+32&-32;e=t<<6;b=e>>>0>>0?b:e}else{b=2147483647}bd(o,b);b=i[a+20>>2]}i[a+20>>2]=b+1;e=i[a+16>>2]+(b>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<>>0<=1073741822){b=b+32&-32;h=t<<6;b=h>>>0>>0?b:h}else{b=2147483647}bd(o,b);b=i[a+20>>2]}i[a+20>>2]=b+1;h=i[a+16>>2]+(b>>>3&536870908)|0;f=i[h>>2];U=h,V=yp(-2,b)&f,i[U>>2]=V;l=e;h=m}i[a+8>>2]=h;i[a+12>>2]=l}if(!(p|w)){break d}break c}e=a;if(M){if((d|0)<=0){i[a+8>>2]=0;i[a+12>>2]=0;break c}b=(d<<1)+ -2|0}else{b=K<<1}b=(b<<2)+c|0;i[e+8>>2]=i[b>>2];i[a+12>>2]=i[b+4>>2]}F=k+80|0;return}Ho();x()} function lc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0;e=F+ -64|0;F=e;g=i[a+8>>2];i[e+48>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;f=ho(d);i[e+40>>2]=f;k=d+f|0;i[e+48>>2]=k;ip(f,0,d);i[e+44>>2]=k}h=i[a+1164>>2];d=i[h>>2];if(d){i[h+4>>2]=d;bp(d);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;g=i[a+8>>2];k=i[e+44>>2];f=i[e+40>>2]}i[h+4>>2]=k;i[h>>2]=f;i[h+8>>2]=i[e+48>>2];f=0;i[e+48>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;d=0;b:{if(g){if(g>>>0>=1073741824){break b}h=g<<2;d=ho(h);i[e+40>>2]=d;f=d+h|0;i[e+48>>2]=f;ip(d,0,h);i[e+44>>2]=f}n=i[a+1176>>2];h=i[n>>2];if(h){i[n+4>>2]=h;bp(h);i[n+8>>2]=0;i[n>>2]=0;i[n+4>>2]=0;d=i[e+40>>2];f=i[e+44>>2]}i[n+4>>2]=f;i[n>>2]=d;i[n+8>>2]=i[e+48>>2];z=i[b+4>>2];G=i[b+8>>2];A=i[c+4>>2];H=i[c+8>>2];q=i[c>>2];j=i[b>>2];d=e+56|0;i[d>>2]=0;i[d+4>>2]=0;f=e+48|0;i[f>>2]=0;i[f+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;n=q-j|0;vc(e+40|0);g=0;h=i[e+44>>2];if((h|0)!=i[f>>2]){d=i[d>>2]+i[e+60>>2]|0;f=(d>>>0)/113|0;g=i[h+(f<<2)>>2]+o(d-o(f,113)|0,36)|0}i[g+32>>2]=0;i[g+28>>2]=n;i[g+24>>2]=0;i[g+16>>2]=A;i[g+20>>2]=H;i[g+12>>2]=q;i[g+4>>2]=z;i[g+8>>2]=G;i[g>>2]=j;f=i[e+60>>2];g=f+1|0;i[e+60>>2]=g;if(g>>>0>=f>>>0){n=A;q=z;J=a+1068|0;K=a+1108|0;L=i[c+8>>2];u=i[b+8>>2];while(1){f=i[e+44>>2];j=g+ -1|0;m=j+i[e+56>>2]|0;d=(m>>>0)/113|0;d=i[f+(d<<2)>>2]+o(m-o(d,113)|0,36)|0;B=i[d+32>>2];p=i[d+12>>2];h=i[d>>2];i[e+60>>2]=j;d=i[e+48>>2];f=d-f|0;if((f?o(f>>2,113)+ -1|0:0)-m>>>0>=226){bp(i[d+ -4>>2]);i[e+48>>2]=i[e+48>>2]+ -4}i[b>>2]=h;i[c>>2]=p;j=i[a+1164>>2];d=i[a+1176>>2];i[e+32>>2]=i[b+8>>2];f=i[b+4>>2];i[e+24>>2]=i[b>>2];i[e+28>>2]=f;i[e+16>>2]=i[c+8>>2];f=i[c+4>>2];i[e+8>>2]=i[c>>2];i[e+12>>2]=f;C=o(B,12);k=j+C|0;m=d+C|0;g=wc(a,e+24|0,e+8|0,k,m);v=g<<2;f=i[a>>2]-i[v+i[m>>2]>>2]|0;c:{d:{if(!f){break d}e:{f:{w=p-h|0;if(w>>>0<=2){j=i[a+1152>>2];i[j>>2]=g;f=1;d=i[a+8>>2];if(d>>>0>1){break f}break e}j=1<>2];d=D+f|0;if((d|0)!=(k|0)){ra(d,i[k>>2],i[k+4>>2]);f=i[a+1164>>2]}f=v+i[f+D>>2]|0;E=j+i[f>>2]|0;i[f>>2]=E;f=h;g:{if((p|0)==(f|0)){break g}M=i[q+24>>2];d=h;f=p;while(1){s=M+(o(d,u)<<2)|0;if(l[s+v>>2]>>0){d=d+1|0;if((f|0)!=(d|0)){continue}break g}while(1){f=f+ -1|0;if((f|0)==(d|0)){f=d;break g}t=i[n+24>>2]+(o(f,L)<<2)|0;if(l[v+t>>2]>=E>>>0){continue}break}y=0;if(u){while(1){k=y<<2;j=k+s|0;m=i[j>>2];N=j;j=k+t|0;i[N>>2]=i[j>>2];i[j>>2]=m;y=y+1|0;if((u|0)!=(y|0)){continue}break}}d=d+1|0;if((f|0)!=(d|0)){continue}break}}d=r(w);s=f-h|0;t=p-f|0;if((s|0)!=(t|0)){xc(K,s>>>0>>0)}m=d^31;d=w>>>1|0;h:{if(s>>>0>>0){if(!m){break h}j=d-s|0;d=1<>>1|0;k=k+1|0;if((m|0)!=(k|0)){continue}break}break h}if(!m){break h}j=d-t|0;d=1<>>1|0;k=k+1|0;if((m|0)!=(k|0)){continue}break}}k=i[a+1176>>2];m=k+C|0;j=i[m>>2];d=j+v|0;i[d>>2]=i[d>>2]+1;ra(k+D|0,j,i[m+4>>2]);if((f|0)!=(h|0)){k=i[e+60>>2]+i[e+56>>2]|0;m=i[e+48>>2];d=i[e+44>>2];j=m-d|0;if((k|0)==((j?o(j>>2,113)+ -1|0:0)|0)){vc(e+40|0);k=i[e+56>>2]+i[e+60>>2]|0;m=i[e+48>>2];d=i[e+44>>2]}j=0;i:{if((d|0)==(m|0)){break i}j=d;d=(k>>>0)/113|0;j=i[j+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[j+32>>2]=B;i[j+28>>2]=s;i[j+24>>2]=g;i[j+20>>2]=u;i[j+16>>2]=q;i[j+12>>2]=f;i[j+4>>2]=z;i[j+8>>2]=G;i[j>>2]=h;i[e+60>>2]=i[e+60>>2]+1}if((f|0)==(p|0)){break d}k=i[e+60>>2]+i[e+56>>2]|0;m=i[e+48>>2];d=i[e+44>>2];h=m-d|0;if((k|0)==((h?o(h>>2,113)+ -1|0:0)|0)){vc(e+40|0);k=i[e+56>>2]+i[e+60>>2]|0;m=i[e+48>>2];d=i[e+44>>2]}h=0;j:{if((d|0)==(m|0)){break j}h=d;d=(k>>>0)/113|0;h=i[h+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[h+32>>2]=I;i[h+28>>2]=t;i[h+24>>2]=g;i[h+16>>2]=A;i[h+20>>2]=H;i[h+12>>2]=p;i[h+8>>2]=u;i[h+4>>2]=q;i[h>>2]=f;g=i[e+60>>2]+1|0;i[e+60>>2]=g;break c}while(1){g=(d+ -1|0)==(g|0)?0:g+1|0;i[j+(f<<2)>>2]=g;f=f+1|0;d=i[a+8>>2];if(f>>>0>>0){continue}break}}k=0;f=d;if(!w){break d}while(1){k:{if(!f){f=0;break k}p=i[q+24>>2]+(o(i[q+4>>2],h+k|0)<<2)|0;g=0;while(1){j=i[i[a+1152>>2]+(g<<2)>>2]<<2;f=i[a>>2]-i[j+i[m>>2]>>2]|0;if(f){yc(J,f,i[j+p>>2]);d=i[a+8>>2]}f=d;g=g+1|0;if(g>>>0>>0){continue}break}}k=k+1|0;if((w|0)!=(k|0)){continue}break}}g=i[e+60>>2]}if(g){continue}break}}i[e+60>>2]=0;a=i[e+48>>2];g=i[e+44>>2];d=a-g>>2;if(d>>>0>=3){while(1){bp(i[g>>2]);g=i[e+44>>2]+4|0;i[e+44>>2]=g;a=i[e+48>>2];d=a-g>>2;if(d>>>0>2){continue}break}}f=56;l:{switch(d+ -1|0){case 1:f=113;case 0:i[e+56>>2]=f;break;default:break l}}m:{if((a|0)==(g|0)){break m}while(1){bp(i[g>>2]);g=g+4|0;if((g|0)!=(a|0)){continue}break}b=i[e+48>>2];a=i[e+44>>2];if((b|0)==(a|0)){break m}i[e+48>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[e+40>>2];if(a){bp(a)}F=e- -64|0;return}Ho();x()}Ho();x()}function he(a,b,c,d){var e=0,f=0,h=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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=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;h=F-80|0;F=h;e=-1;k=-1;a:{if((b|0)==-1){break a}f=((b>>>0)%3|0?-1:2)+b|0;l=i[a+32>>2];m=b+1|0;b=(m>>>0)%3|0?m:b+ -2|0;if((b|0)!=-1){e=i[i[l>>2]+(b<<2)>>2]}if((f|0)==-1){break a}k=i[i[l>>2]+(f<<2)>>2]}f=i[a+36>>2];b=i[f>>2];b:{c:{d:{e:{f:{g:{h:{f=i[f+4>>2]-b>>2;if(!(f>>>0<=e>>>0|f>>>0<=k>>>0)){K=i[b+(e<<2)>>2];M=(K|0)>=(d|0);if(M){break d}l=i[b+(k<<2)>>2];if((l|0)>=(d|0)){break d}b=l<<3;f=i[(b|4)+c>>2];e=K<<3;k=i[(e|4)+c>>2];J=i[b+c>>2];z=i[c+e>>2];if(!((J|0)!=(z|0)|(f|0)!=(k|0))){i[a+8>>2]=z;i[a+12>>2]=k;break c}b=i[i[a+4>>2]+(d<<2)>>2];i[h+72>>2]=0;i[h+76>>2]=0;e=h- -64|0;i[e>>2]=0;i[e+4>>2]=0;i[h+56>>2]=0;i[h+60>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Qd(e,b,g[e+24|0],h+56|0);b=i[i[a+4>>2]+(K<<2)>>2];i[h+48>>2]=0;i[h+52>>2]=0;i[h+40>>2]=0;i[h+44>>2]=0;i[h+32>>2]=0;i[h+36>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Qd(e,b,g[e+24|0],h+32|0);b=i[i[a+4>>2]+(l<<2)>>2];i[h+24>>2]=0;i[h+28>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;i[h+8>>2]=0;i[h+12>>2]=0;e=i[a>>2];if(!j[e+84|0]){b=i[i[e+68>>2]+(b<<2)>>2]}Qd(e,b,g[e+24|0],h+8|0);A=i[h+44>>2];e=i[h+16>>2];b=i[h+40>>2];o=i[h+20>>2]-(A+(e>>>0>>0)|0)|0;l=e-b|0;e=up(l,o,l,o);q=H;n=e;y=i[h+36>>2];e=i[h+8>>2];t=i[h+32>>2];m=t;r=i[h+12>>2]-(y+(e>>>0>>0)|0)|0;m=e-m|0;p=up(m,r,m,r);n=n+p|0;e=H+q|0;e=n>>>0

>>0?e+1|0:e;u=n;s=i[h+52>>2];n=i[h+24>>2];v=i[h+48>>2];p=v;q=i[h+28>>2]-(s+(n>>>0

>>0)|0)|0;n=n-p|0;C=up(n,q,n,q);p=u+C|0;e=H+e|0;w=p;p=p>>>0>>0?e+1|0:e;if(!(w|p)){break d}e=i[h+64>>2];C=e-b|0;N=i[h+68>>2]-((e>>>0>>0)+A|0)|0;b=up(C,N,l,o);e=H;u=b;b=i[h+56>>2];E=b-t|0;O=i[h+60>>2]-((b>>>0>>0)+y|0)|0;t=up(E,O,m,r);b=u+t|0;e=H+e|0;e=b>>>0>>0?e+1|0:e;u=b;b=i[h+72>>2];G=b-v|0;P=i[h+76>>2]-((b>>>0>>0)+s|0)|0;t=up(G,P,n,q);b=u+t|0;e=H+e|0;v=b;e=b>>>0>>0?e+1|0:e;A=e;B=b;t=e;e=q;y=e>>31;b=e>>31;e=b+e|0;s=y;u=s+n|0;if(u>>>0>>0){e=e+1|0}y=y^u;b=b^e;Q=b;u=y;I=b;e=o;b=e>>31;e=e>>31;D=b;b=b+o|0;L=e+l|0;if(L>>>0>>0){b=b+1|0}e=e^L;b=b^D;R=b;L=b;S=B;T=e;B=r>>31;b=B+r|0;s=r>>31;D=s+m|0;if(D>>>0>>0){b=b+1|0}s=s^D;e=s>>>0>>0;b=b^B;e=(b|0)<(R|0)?1:(b|0)<=(R|0)?e:0;s=e?T:s;b=e?L:b;e=(b|0)<(Q|0)?1:(b|0)<=(Q|0)?s>>>0>>0:0;e=S>>>0>wp(-1,2147483647,e?u:s,e?I:b)>>>0;b=H;if((t|0)>(b|0)?1:(t|0)>=(b|0)?e:0){break e}b=f;e=k;B=b-e|0;k=e>>31;u=(b>>31)-(k+(b>>>0>>0)|0)|0;b=up(v,A,B,u);f=H;e=up(e,k,w,p);b=e+b|0;f=H+f|0;t=b;y=b>>>0>>0?f+1|0:f;b=J;e=z;I=b-e|0;f=e>>31;D=(b>>31)-(f+(b>>>0>>0)|0)|0;b=up(v,A,I,D);k=H;f=up(e,f,w,p);e=f+b|0;b=H+k|0;z=e;J=e>>>0>>0?b+1|0:b;k=1;e=0;b=vp(up(l,o,v,A),H,w,p);f=N-(H+(C>>>0>>0)|0)|0;b=C-b|0;b=up(b,f,b,f);l=H;o=b;b=vp(up(m,r,v,A),H,w,p);f=O-(H+(E>>>0>>0)|0)|0;b=E-b|0;m=up(b,f,b,f);b=o+m|0;f=H+l|0;f=b>>>0>>0?f+1|0:f;o=b;b=vp(up(n,q,v,A),H,w,p);l=P-(H+(G>>>0>>0)|0)|0;b=G-b|0;m=up(b,l,b,l);l=o+m|0;b=H+f|0;l=up(l,l>>>0>>0?b+1|0:b,w,p);b=H;m=b;if(!b&l>>>0<=1|b>>>0<0){break h}n=l;f=m;while(1){b=e<<1|k>>>31;k=k<<1;e=b;o=!f&n>>>0>7|f>>>0>0;n=(f&3)<<30|n>>>2;f=f>>>2|0;if(o){continue}break}break g}Io();x()}k=l;e=m;if(k-1|0){break f}}while(1){b=wp(l,m,k,e)+k|0;e=e+H|0;e=b>>>0>>0?e+1|0:e;k=(e&1)<<31|b>>>1;e=e>>>1|0;b=up(k,e,k,e);f=H;if((m|0)==(f|0)&b>>>0>l>>>0|f>>>0>m>>>0){continue}break}}m=a+16|0;s=i[a+24>>2];C=s<<5;b=i[a+20>>2];v=d<<3;o=i[(v|4)+c>>2];n=o;f=t;E=up(k,e,I,D);l=E;G=H;l=vp(f-l|0,y-(G+(f>>>0>>0)|0)|0,w,p);q=n>>31;f=n;r=q-(H+(f>>>0>>0)|0)|0;f=f-l|0;I=up(f,r,f,r);D=H;o=i[c+v>>2];f=o>>31;v=o;r=o;A=f;o=up(k,e,B,u);B=H;e=J+B|0;k=z;u=k+o|0;if(u>>>0>>0){e=e+1|0}k=vp(u,e,w,p);e=k;f=f-(H+(r>>>0>>0)|0)|0;e=r-e|0;r=up(e,f,e,f);e=r+I|0;f=H+D|0;u=e;r=e>>>0>>0?f+1|0:f;e=y+G|0;f=t+E|0;if(f>>>0>>0){e=e+1|0}e=vp(f,e,w,p);q=q-(H+(n>>>0>>0)|0)|0;f=n-e|0;f=up(f,q,f,q);t=H;n=vp(z-o|0,J-((z>>>0>>0)+B|0)|0,w,p);o=f;f=n;q=A-(H+(v>>>0>>0)|0)|0;f=v-f|0;z=up(f,q,f,q);q=o+z|0;f=H+t|0;f=q>>>0>>0?f+1|0:f;i:{if((f|0)==(r|0)&u>>>0>>0|r>>>0>>0){if((b|0)==(C|0)){if((b+1|0)<=-1){break b}if(b>>>0<=1073741822){b=b+32&-32;e=s<<6;b=e>>>0>>0?b:e}else{b=2147483647}bd(m,b);b=i[a+20>>2]}i[a+20>>2]=b+1;e=i[a+16>>2]+(b>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<>>0<=1073741822){b=b+32&-32;k=s<<6;b=k>>>0>>0?b:k}else{b=2147483647}bd(m,b);b=i[a+20>>2]}i[a+20>>2]=b+1;k=i[a+16>>2]+(b>>>3&536870908)|0;f=i[k>>2];U=k,V=yp(-2,b)&f,i[U>>2]=V;l=e;k=n}i[a+8>>2]=k;i[a+12>>2]=l}if(!(p|w)){break d}break c}e=a;if(M){if((d|0)<=0){i[a+8>>2]=0;i[a+12>>2]=0;break c}b=(d<<1)+ -2|0}else{b=K<<1}b=(b<<2)+c|0;i[e+8>>2]=i[b>>2];i[a+12>>2]=i[b+4>>2]}F=h+80|0;return}Ho();x()}function af(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=p(0);h=F-32|0;F=h;a:{b:{if(!fd(a,b,c)){break b}n=i[i[i[b+4>>2]+8>>2]+(c<<2)>>2];if(i[n+28>>2]!=9){break b}k=i[b+48>>2];d=ho(32);i[h+16>>2]=d;i[h+20>>2]=17;i[h+24>>2]=-2147483616;g[d+17|0]=0;g[d+16|0]=j[9828];l=j[9824]|j[9825]<<8|(j[9826]<<16|j[9827]<<24);e=j[9820]|j[9821]<<8|(j[9822]<<16|j[9823]<<24);g[d+8|0]=e;g[d+9|0]=e>>>8;g[d+10|0]=e>>>16;g[d+11|0]=e>>>24;g[d+12|0]=l;g[d+13|0]=l>>>8;g[d+14|0]=l>>>16;g[d+15|0]=l>>>24;l=j[9816]|j[9817]<<8|(j[9818]<<16|j[9819]<<24);e=j[9812]|j[9813]<<8|(j[9814]<<16|j[9815]<<24);g[d|0]=e;g[d+1|0]=e>>>8;g[d+2|0]=e>>>16;g[d+3|0]=e>>>24;g[d+4|0]=l;g[d+5|0]=l>>>8;g[d+6|0]=l>>>16;g[d+7|0]=l>>>24;c:{d:{l=k+16|0;f=i[l>>2];if(!f){break d}d=l;while(1){e=i[f+16>>2]<(c|0);d=e?d:f;f=i[(e<<2)+f>>2];if(f){continue}break}if((d|0)==(l|0)|i[d+16>>2]>(c|0)){break d}d=d+20|0;if(!Sb(d,h+16|0)){break d}l=$j(d,h+16|0,-1);break c}l=$j(k,h+16|0,-1)}if(g[h+27|0]<=-1){bp(i[h+16>>2])}if((l|0)<1){f=0;break b}k=i[b+48>>2];d=ho(32);i[h+16>>2]=d;i[h+20>>2]=19;i[h+24>>2]=-2147483616;g[d+19|0]=0;e=j[9845]|j[9846]<<8|(j[9847]<<16|j[9848]<<24);g[d+15|0]=e;g[d+16|0]=e>>>8;g[d+17|0]=e>>>16;g[d+18|0]=e>>>24;e=j[9842]|j[9843]<<8|(j[9844]<<16|j[9845]<<24);f=j[9838]|j[9839]<<8|(j[9840]<<16|j[9841]<<24);g[d+8|0]=f;g[d+9|0]=f>>>8;g[d+10|0]=f>>>16;g[d+11|0]=f>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;e=j[9834]|j[9835]<<8|(j[9836]<<16|j[9837]<<24);f=j[9830]|j[9831]<<8|(j[9832]<<16|j[9833]<<24);g[d|0]=f;g[d+1|0]=f>>>8;g[d+2|0]=f>>>16;g[d+3|0]=f>>>24;g[d+4|0]=e;g[d+5|0]=e>>>8;g[d+6|0]=e>>>16;g[d+7|0]=e>>>24;e:{f:{e=k+16|0;f=i[e>>2];if(!f){break f}d=e;while(1){m=i[f+16>>2]<(c|0);d=m?d:f;f=i[(m<<2)+f>>2];if(f){continue}break}if((d|0)==(e|0)|i[d+16>>2]>(c|0)){break f}e=Sb(d+20|0,h+16|0);break e}e=Sb(k,h+16|0)}d=0;g:{if(!e){break g}k=i[b+48>>2];d=ho(32);i[h>>2]=d;i[h+4>>2]=18;i[h+8>>2]=-2147483616;g[d+18|0]=0;e=j[9866]|j[9867]<<8;g[d+16|0]=e;g[d+17|0]=e>>>8;e=j[9862]|j[9863]<<8|(j[9864]<<16|j[9865]<<24);f=j[9858]|j[9859]<<8|(j[9860]<<16|j[9861]<<24);g[d+8|0]=f;g[d+9|0]=f>>>8;g[d+10|0]=f>>>16;g[d+11|0]=f>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;e=j[9854]|j[9855]<<8|(j[9856]<<16|j[9857]<<24);f=j[9850]|j[9851]<<8|(j[9852]<<16|j[9853]<<24);g[d|0]=f;g[d+1|0]=f>>>8;g[d+2|0]=f>>>16;g[d+3|0]=f>>>24;g[d+4|0]=e;g[d+5|0]=e>>>8;g[d+6|0]=e>>>16;g[d+7|0]=e>>>24;h:{i:{e=k+16|0;f=i[e>>2];if(!f){break i}d=e;while(1){m=i[f+16>>2]<(c|0);d=m?d:f;f=i[(m<<2)+f>>2];if(f){continue}break}if((d|0)==(e|0)|i[d+16>>2]>(c|0)){break i}d=Sb(d+20|0,h);break h}d=Sb(k,h)}if(g[h+11|0]<=-1){bp(i[h>>2])}d=(d|0)!=0}if(g[h+27|0]<=-1){bp(i[h+16>>2])}j:{if(d){d=g[n+24|0];i[h+24>>2]=0;i[h+16>>2]=0;i[h+20>>2]=0;k=0;if(d){if((d|0)<=-1){break a}d=d<<2;k=ho(d);i[h+16>>2]=k;e=d+k|0;i[h+24>>2]=e;ip(k,0,d);i[h+20>>2]=e}m=i[b+48>>2];d=ho(32);i[h>>2]=d;i[h+4>>2]=19;i[h+8>>2]=-2147483616;g[d+19|0]=0;e=j[9845]|j[9846]<<8|(j[9847]<<16|j[9848]<<24);g[d+15|0]=e;g[d+16|0]=e>>>8;g[d+17|0]=e>>>16;g[d+18|0]=e>>>24;e=j[9842]|j[9843]<<8|(j[9844]<<16|j[9845]<<24);f=j[9838]|j[9839]<<8|(j[9840]<<16|j[9841]<<24);g[d+8|0]=f;g[d+9|0]=f>>>8;g[d+10|0]=f>>>16;g[d+11|0]=f>>>24;g[d+12|0]=e;g[d+13|0]=e>>>8;g[d+14|0]=e>>>16;g[d+15|0]=e>>>24;e=j[9834]|j[9835]<<8|(j[9836]<<16|j[9837]<<24);f=j[9830]|j[9831]<<8|(j[9832]<<16|j[9833]<<24);g[d|0]=f;g[d+1|0]=f>>>8;g[d+2|0]=f>>>16;g[d+3|0]=f>>>24;g[d+4|0]=e;g[d+5|0]=e>>>8;g[d+6|0]=e>>>16;g[d+7|0]=e>>>24;o=g[n+24|0];k:{l:{e=m+16|0;f=i[e>>2];if(!f){break l}d=e;while(1){q=i[f+16>>2]<(c|0);d=q?d:f;f=i[(q<<2)+f>>2];if(f){continue}break}if((d|0)==(e|0)|i[d+16>>2]>(c|0)){break l}d=d+20|0;if(!Sb(d,h)){break l}Tb(d,h,o,k);break k}Tb(m,h,o,k)}if(g[h+11|0]<=-1){bp(i[h>>2])}k=i[b+48>>2];b=ho(32);i[h>>2]=b;i[h+4>>2]=18;i[h+8>>2]=-2147483616;g[b+18|0]=0;d=j[9866]|j[9867]<<8;g[b+16|0]=d;g[b+17|0]=d>>>8;d=j[9862]|j[9863]<<8|(j[9864]<<16|j[9865]<<24);e=j[9858]|j[9859]<<8|(j[9860]<<16|j[9861]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[9854]|j[9855]<<8|(j[9856]<<16|j[9857]<<24);e=j[9850]|j[9851]<<8|(j[9852]<<16|j[9853]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;m:{n:{b=k+16|0;f=i[b>>2];if(!f){break n}d=b;while(1){e=i[f+16>>2]<(c|0);d=e?d:f;f=i[(e<<2)+f>>2];if(f){continue}break}if((b|0)==(d|0)|i[d+16>>2]>(c|0)){break n}b=d+20|0;if(!Sb(b,h)){break n}r=ak(b,h);break m}r=ak(k,h)}if(g[h+11|0]<=-1){bp(i[h>>2])}b=qa(a+40|0,l,i[h+16>>2],g[n+24|0],r);a=i[h+16>>2];if(a){i[h+20>>2]=a;bp(a)}f=0;if(b){break j}break b}f=0;if(!sa(a+40|0,n,l)){break b}}f=1}F=h+32|0;return f|0}Ho();x()}function Sm(a,b,c,d){var e=0,f=0,k=0,l=0,m=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;f=F-80|0;F=f;i[f+76>>2]=18485;z=f+55|0;w=f+56|0;a:{b:while(1){c:{if((t|0)<0){break c}if((e|0)>(2147483647-t|0)){i[4805]=61;t=-1;break c}t=e+t|0}d:{e:{f:{m=i[f+76>>2];e=m;k=j[e|0];if(k){while(1){g:{k=k&255;h:{if(!k){k=e;break h}if((k|0)!=37){break g}k=e;while(1){if(j[e+1|0]!=37){break h}l=e+2|0;i[f+76>>2]=l;k=k+1|0;p=j[e+2|0];e=l;if((p|0)==37){continue}break}}e=k-m|0;if(a){Tm(a,m,e)}if(e){continue b}k=f;l=!Mm(g[i[f+76>>2]+1|0]);e=i[f+76>>2];i:{if(!(l|j[e+2|0]!=36)){v=g[e+1|0]+ -48|0;x=1;e=e+3|0;break i}v=-1;e=e+1|0}i[k+76>>2]=e;q=0;u=g[e|0];l=u+ -32|0;j:{if(l>>>0>31){k=e;break j}k=e;l=1<>2]=k;q=l|q;u=g[e+1|0];l=u+ -32|0;if(l>>>0>=32){break j}e=k;l=1<>2];if(j[e+2|0]!=36){break m}i[((g[e+1|0]<<2)+d|0)+ -192>>2]=10;r=i[((g[e+1|0]<<3)+c|0)+ -384>>2];x=1;e=e+3|0;break l}if(x){break f}x=0;r=0;if(a){e=i[b>>2];i[b>>2]=e+4;r=i[e>>2]}e=i[f+76>>2]+1|0}i[l+76>>2]=e;if((r|0)>-1){break k}r=0-r|0;q=q|8192;break k}r=Um(f+76|0);if((r|0)<0){break f}e=i[f+76>>2]}p=-1;n:{if(j[e|0]!=46){break n}if(j[e+1|0]==42){o:{if(!Mm(g[e+2|0])){break o}e=i[f+76>>2];if(j[e+3|0]!=36){break o}i[((g[e+2|0]<<2)+d|0)+ -192>>2]=10;p=i[((g[e+2|0]<<3)+c|0)+ -384>>2];e=e+4|0;i[f+76>>2]=e;break n}if(x){break f}if(a){e=i[b>>2];i[b>>2]=e+4;p=i[e>>2]}else{p=0}e=i[f+76>>2]+2|0;i[f+76>>2]=e;break n}i[f+76>>2]=e+1;p=Um(f+76|0);e=i[f+76>>2]}k=0;while(1){y=k;s=-1;if(g[e|0]+ -65>>>0>57){break a}u=e+1|0;i[f+76>>2]=u;k=g[e|0];e=u;k=j[(k+o(y,58)|0)+16959|0];if(k+ -1>>>0<8){continue}break}p:{q:{if((k|0)!=19){if(!k){break a}if((v|0)>=0){i[(v<<2)+d>>2]=k;e=(v<<3)+c|0;k=i[e+4>>2];i[f+64>>2]=i[e>>2];i[f+68>>2]=k;break q}if(!a){break d}Vm(f- -64|0,k,b);u=i[f+76>>2];break p}if((v|0)>-1){break a}}e=0;if(!a){continue b}}l=q&-65537;k=q&8192?l:q;s=0;v=16996;q=w;r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{e=g[u+ -1|0];e=y?(e&15)==3?e&-33:e:e;switch(e+ -88|0){case 11:break r;case 9:case 13:case 14:case 15:break s;case 27:break x;case 12:case 17:break A;case 23:break B;case 0:case 32:break C;case 24:break D;case 22:break E;case 29:break F;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 10:case 16:case 18:case 19:case 20:case 21:case 25:case 26:case 28:case 30:case 31:break e;default:break G}}H:{switch(e+ -65|0){case 0:case 4:case 5:case 6:break s;case 2:break v;case 1:case 3:break e;default:break H}}if((e|0)==83){break w}break e}e=i[f+64>>2];m=i[f+68>>2];v=16996;break z}e=0;I:{switch(y&255){case 0:i[i[f+64>>2]>>2]=t;continue b;case 1:i[i[f+64>>2]>>2]=t;continue b;case 2:k=i[f+64>>2];i[k>>2]=t;i[k+4>>2]=t>>31;continue b;case 3:h[i[f+64>>2]>>1]=t;continue b;case 4:g[i[f+64>>2]]=t;continue b;case 6:i[i[f+64>>2]>>2]=t;continue b;case 7:break I;default:continue b}}k=i[f+64>>2];i[k>>2]=t;i[k+4>>2]=t>>31;continue b}p=p>>>0>8?p:8;k=k|8;e=120}m=Wm(i[f+64>>2],i[f+68>>2],w,e&32);if(!(k&8)|!(i[f+64>>2]|i[f+68>>2])){break y}v=(e>>>4|0)+16996|0;s=2;break y}m=Xm(i[f+64>>2],i[f+68>>2],w);if(!(k&8)){break y}e=w-m|0;p=(p|0)>(e|0)?p:e+1|0;break y}l=i[f+68>>2];m=l;e=i[f+64>>2];if((l|0)<-1?1:(l|0)<=-1){m=0-(m+(0>>0)|0)|0;e=0-e|0;i[f+64>>2]=e;i[f+68>>2]=m;s=1;v=16996;break z}if(k&2048){s=1;v=16997;break z}s=k&1;v=s?16998:16996}m=Ym(e,m,w)}k=(p|0)>-1?k&-65537:k;e=i[f+64>>2];l=i[f+68>>2];if(!(!!(e|l)|p)){p=0;m=w;break e}e=!(e|l)+(w-m|0)|0;p=(p|0)>(e|0)?p:e;break e}e=i[f+64>>2];m=e?e:17006;e=Nm(m,p);q=e?e:p+m|0;k=l;p=e?e-m|0:p;break e}l=i[f+64>>2];if(p){break u}e=0;Zm(a,32,r,0,k);break t}i[f+12>>2]=0;i[f+8>>2]=i[f+64>>2];i[f+64>>2]=f+8;p=-1;l=f+8|0}e=0;J:{while(1){m=i[l>>2];if(!m){break J}m=Pm(f+4|0,m);q=(m|0)<0;if(!(q|m>>>0>p-e>>>0)){l=l+4|0;e=e+m|0;if(p>>>0>e>>>0){continue}break J}break}s=-1;if(q){break a}}Zm(a,32,r,e,k);if(!e){e=0;break t}u=0;l=i[f+64>>2];while(1){m=i[l>>2];if(!m){break t}m=Pm(f+4|0,m);u=m+u|0;if((u|0)>(e|0)){break t}Tm(a,f+4|0,m);l=l+4|0;if(u>>>0>>0){continue}break}}Zm(a,32,r,e,k^8192);e=(r|0)>(e|0)?r:e;continue b}e=I[368](a,n[f+64>>3],r,p,k,e)|0;continue b}g[f+55|0]=i[f+64>>2];p=1;m=z;k=l;break e}l=e+1|0;i[f+76>>2]=l;k=j[e+1|0];e=l;continue}}s=t;if(a){break a}if(!x){break d}e=1;while(1){a=i[(e<<2)+d>>2];if(a){Vm((e<<3)+c|0,a,b);s=1;e=e+1|0;if((e|0)!=10){continue}break a}break}s=1;if(e>>>0>=10){break a}while(1){if(i[(e<<2)+d>>2]){break f}e=e+1|0;if((e|0)!=10){continue}break}break a}s=-1;break a}q=q-m|0;p=(p|0)<(q|0)?q:p;l=p+s|0;e=(r|0)<(l|0)?l:r;Zm(a,32,e,l,k);Tm(a,v,s);Zm(a,48,e,l,k^65536);Zm(a,48,p,q,0);Tm(a,m,q);Zm(a,32,e,l,k^8192);continue}break}s=0}F=f+80|0;return s}function Fn(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=F-16|0;F=e;i[e+12>>2]=a;a:{if(a>>>0<=211){a=i[Gn(17648,17840,e+12|0)>>2];break a}if(a>>>0>=4294967292){In();x()}f=(a>>>0)/210|0;d=o(f,210);i[e+8>>2]=a-d;g=Gn(17840,18032,e+8|0)-17840>>2;b:{while(1){a=i[(g<<2)+17840>>2]+d|0;d=5;b=h;c:{d:{while(1){h=b;if((d|0)==47){d=211;while(1){b=(a>>>0)/(d>>>0)|0;if(b>>>0>>0){break c}if((o(b,d)|0)==(a|0)){break d}b=d+10|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+12|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+16|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+18|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+22|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+28|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+30|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+36|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+40|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+42|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+46|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+52|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+58|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+60|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+66|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+70|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+72|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+78|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+82|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+88|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+96|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+100|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+102|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+106|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+108|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+112|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+120|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+126|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+130|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+136|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+138|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+142|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+148|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+150|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+156|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+162|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+166|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+168|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+172|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+178|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+180|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+186|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+190|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+192|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+196|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+198|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}if((o(b,c)|0)==(a|0)){break d}b=d+208|0;c=(a>>>0)/(b>>>0)|0;if(c>>>0>>0){break c}d=d+210|0;if((o(b,c)|0)!=(a|0)){continue}break}break d}b=i[(d<<2)+17648>>2];c=(a>>>0)/(b>>>0)|0;j=o(b,c);c=c>>>0>>0;if(!c){b=c?a:h;d=d+1|0;if((a|0)!=(j|0)){continue}}break}if((a|0)!=(j|0)|c){break b}}b=g+1|0;a=(b|0)==48;g=a?0:b;f=a+f|0;d=o(f,210);continue}break}i[e+12>>2]=a;break a}i[e+12>>2]=a;a=c?a:h}F=e+16|0;return a}function pc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,H=0,I=0,J=0,K=0,L=0;e=F-32|0;F=e;g=i[a+8>>2];i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;f=ho(d);i[e+8>>2]=f;k=d+f|0;i[e+16>>2]=k;ip(f,0,d);i[e+12>>2]=k}h=i[a+1164>>2];d=i[h>>2];if(d){i[h+4>>2]=d;bp(d);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;g=i[a+8>>2];k=i[e+12>>2];f=i[e+8>>2]}i[h+4>>2]=k;i[h>>2]=f;i[h+8>>2]=i[e+16>>2];f=0;i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;d=0;b:{if(g){if(g>>>0>=1073741824){break b}h=g<<2;d=ho(h);i[e+8>>2]=d;f=d+h|0;i[e+16>>2]=f;ip(d,0,h);i[e+12>>2]=f}n=i[a+1176>>2];h=i[n>>2];if(h){i[n+4>>2]=h;bp(h);i[n+8>>2]=0;i[n>>2]=0;i[n+4>>2]=0;d=i[e+8>>2];f=i[e+12>>2]}i[n+4>>2]=f;i[n>>2]=d;i[n+8>>2]=i[e+16>>2];B=i[b+4>>2];H=i[b+8>>2];C=i[c+4>>2];I=i[c+8>>2];q=i[c>>2];j=i[b>>2];d=e+24|0;i[d>>2]=0;i[d+4>>2]=0;f=e+16|0;i[f>>2]=0;i[f+4>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;n=q-j|0;vc(e+8|0);g=0;h=i[e+12>>2];if((h|0)!=i[f>>2]){d=i[d>>2]+i[e+28>>2]|0;f=(d>>>0)/113|0;g=i[h+(f<<2)>>2]+o(d-o(f,113)|0,36)|0}i[g+32>>2]=0;i[g+28>>2]=n;i[g+24>>2]=0;i[g+16>>2]=C;i[g+20>>2]=I;i[g+12>>2]=q;i[g+4>>2]=B;i[g+8>>2]=H;i[g>>2]=j;f=i[e+28>>2];g=f+1|0;i[e+28>>2]=g;if(g>>>0>=f>>>0){n=C;q=B;J=a+1068|0;K=a+1108|0;L=i[c+8>>2];u=i[b+8>>2];while(1){f=i[e+12>>2];j=g+ -1|0;m=j+i[e+24>>2]|0;d=(m>>>0)/113|0;d=i[f+(d<<2)>>2]+o(m-o(d,113)|0,36)|0;D=i[d+32>>2];k=i[d+24>>2];p=i[d+12>>2];h=i[d>>2];i[e+28>>2]=j;d=i[e+16>>2];f=d-f|0;if((f?o(f>>2,113)+ -1|0:0)-m>>>0>=226){bp(i[d+ -4>>2]);i[e+16>>2]=i[e+16>>2]+ -4}i[b>>2]=h;i[c>>2]=p;g=(k|0)==(i[a+8>>2]+ -1|0)?0:k+1|0;v=g<<2;z=o(D,12);m=z+i[a+1176>>2]|0;d=i[a>>2]-i[v+i[m>>2]>>2]|0;c:{d:{if(!d){break d}e:{f:{w=p-h|0;if(w>>>0<=2){j=i[a+1152>>2];i[j>>2]=g;f=1;d=i[a+8>>2];if(d>>>0>1){break f}break e}f=i[a+1164>>2];j=f+z|0;E=f;f=z+12|0;ra(E+f|0,i[j>>2],i[j+4>>2]);f=v+i[f+i[a+1164>>2]>>2]|0;G=i[f>>2]+(1<>2]=G;f=h;g:{if((p|0)==(f|0)){break g}t=i[q+24>>2];d=h;f=p;while(1){s=t+(o(d,u)<<2)|0;if(l[s+v>>2]>>0){d=d+1|0;if((f|0)!=(d|0)){continue}break g}while(1){f=f+ -1|0;if((f|0)==(d|0)){f=d;break g}y=i[n+24>>2]+(o(f,L)<<2)|0;if(l[y+v>>2]>=G>>>0){continue}break}A=0;if(u){while(1){k=A<<2;j=k+s|0;m=i[j>>2];E=j;j=k+y|0;i[E>>2]=i[j>>2];i[j>>2]=m;A=A+1|0;if((u|0)!=(A|0)){continue}break}}d=d+1|0;if((f|0)!=(d|0)){continue}break}}d=r(w);t=f-h|0;s=p-f|0;if((t|0)!=(s|0)){xc(K,t>>>0>>0)}y=D+1|0;m=d^31;d=w>>>1|0;h:{if(t>>>0>>0){if(!m){break h}j=d-t|0;d=1<>>1|0;k=k+1|0;if((m|0)!=(k|0)){continue}break}break h}if(!m){break h}j=d-s|0;d=1<>>1|0;k=k+1|0;if((m|0)!=(k|0)){continue}break}}k=i[a+1176>>2];m=k+z|0;j=i[m>>2];d=j+v|0;i[d>>2]=i[d>>2]+1;ra(k+o(y,12)|0,j,i[m+4>>2]);if((f|0)!=(h|0)){k=i[e+28>>2]+i[e+24>>2]|0;m=i[e+16>>2];d=i[e+12>>2];j=m-d|0;if((k|0)==((j?o(j>>2,113)+ -1|0:0)|0)){vc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;m=i[e+16>>2];d=i[e+12>>2]}j=0;i:{if((d|0)==(m|0)){break i}j=d;d=(k>>>0)/113|0;j=i[j+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[j+32>>2]=D;i[j+28>>2]=t;i[j+24>>2]=g;i[j+20>>2]=u;i[j+16>>2]=q;i[j+12>>2]=f;i[j+4>>2]=B;i[j+8>>2]=H;i[j>>2]=h;i[e+28>>2]=i[e+28>>2]+1}if((f|0)==(p|0)){break d}k=i[e+28>>2]+i[e+24>>2]|0;m=i[e+16>>2];d=i[e+12>>2];h=m-d|0;if((k|0)==((h?o(h>>2,113)+ -1|0:0)|0)){vc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;m=i[e+16>>2];d=i[e+12>>2]}h=0;j:{if((d|0)==(m|0)){break j}h=d;d=(k>>>0)/113|0;h=i[h+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[h+32>>2]=y;i[h+28>>2]=s;i[h+24>>2]=g;i[h+16>>2]=C;i[h+20>>2]=I;i[h+12>>2]=p;i[h+8>>2]=u;i[h+4>>2]=q;i[h>>2]=f;g=i[e+28>>2]+1|0;i[e+28>>2]=g;break c}while(1){g=(d+ -1|0)==(g|0)?0:g+1|0;i[j+(f<<2)>>2]=g;f=f+1|0;d=i[a+8>>2];if(f>>>0>>0){continue}break}}k=0;f=d;if(!w){break d}while(1){k:{if(!f){f=0;break k}p=i[q+24>>2]+(o(i[q+4>>2],h+k|0)<<2)|0;g=0;while(1){j=i[i[a+1152>>2]+(g<<2)>>2]<<2;f=i[a>>2]-i[j+i[m>>2]>>2]|0;if(f){yc(J,f,i[j+p>>2]);d=i[a+8>>2]}f=d;g=g+1|0;if(g>>>0>>0){continue}break}}k=k+1|0;if((w|0)!=(k|0)){continue}break}}g=i[e+28>>2]}if(g){continue}break}}i[e+28>>2]=0;a=i[e+16>>2];g=i[e+12>>2];d=a-g>>2;if(d>>>0>=3){while(1){bp(i[g>>2]);g=i[e+12>>2]+4|0;i[e+12>>2]=g;a=i[e+16>>2];d=a-g>>2;if(d>>>0>2){continue}break}}f=56;l:{switch(d+ -1|0){case 1:f=113;case 0:i[e+24>>2]=f;break;default:break l}}m:{if((a|0)==(g|0)){break m}while(1){bp(i[g>>2]);g=g+4|0;if((g|0)!=(a|0)){continue}break}b=i[e+16>>2];a=i[e+12>>2];if((b|0)==(a|0)){break m}i[e+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[e+8>>2];if(a){bp(a)}F=e+32|0;return}Ho();x()}Ho();x()}function Qd(a,b,c,d){var e=0,f=0,l=0,o=0,r=p(0),t=0,w=0,x=0;a:{b:{if(!d){break b}c:{switch(i[a+28>>2]+ -1|0){case 0:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=g[b|0];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=j[b|0];i[e+4>>2]=0;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=h[b>>1];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=k[b>>1];i[e+4>>2]=0;b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;l=i[b>>2];i[e>>2]=l;i[e+4>>2]=l>>31;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=i[b>>2];i[e+4>>2]=0;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}l=i[b+4>>2];e=(f<<3)+d|0;i[e>>2]=i[b>>2];i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=i[b+4>>2];l=e;w=i[b>>2];if((e|0)<0?1:(e|0)<=0?w>>>0<0:0){return}e=(f<<3)+d|0;i[e>>2]=w;i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 8:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;w=i[e+4>>2];f=0;while(1){if(w>>>0<=b>>>0){return}e=(f<<3)+d|0;o=e;r=m[b>>2];d:{if(p(q(r))=p(1)?r>p(0)?~~p(s(p(u(p(r*p(2.3283064365386963e-10)))),p(4294967296)))>>>0:~~p(v(p(p(r-p(~~r>>>0>>>0))*p(2.3283064365386963e-10))))>>>0:0;x=~~r>>>0;break d}l=-2147483648;x=0}i[o>>2]=x;i[e+4>>2]=l;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 9:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;w=i[e+4>>2];f=0;while(1){if(w>>>0<=b>>>0){return}e=(f<<3)+d|0;o=e;t=n[b>>3];e:{if(q(t)<0x8000000000000000){l=q(t)>=1?t>0?~~s(u(t*2.3283064365386963e-10),4294967295)>>>0:~~v((t- +(~~t>>>0>>>0))*2.3283064365386963e-10)>>>0:0;x=~~t>>>0;break e}l=-2147483648;x=0}i[o>>2]=x;i[e+4>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 10:break c;default:break b}}e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=(f<<3)+d|0;i[e>>2]=j[b|0];i[e+4>>2]=0;b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}ip((e<<3)+d|0,0,c-e<<3)}return}ip((e<<3)+d|0,0,c-e<<3)}function rc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;e=F-32|0;F=e;g=i[a+8>>2];i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;f=ho(d);i[e+8>>2]=f;k=d+f|0;i[e+16>>2]=k;ip(f,0,d);i[e+12>>2]=k}h=i[a+128>>2];d=i[h>>2];if(d){i[h+4>>2]=d;bp(d);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;g=i[a+8>>2];k=i[e+12>>2];f=i[e+8>>2]}i[h+4>>2]=k;i[h>>2]=f;i[h+8>>2]=i[e+16>>2];f=0;i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;d=0;b:{if(g){if(g>>>0>=1073741824){break b}h=g<<2;d=ho(h);i[e+8>>2]=d;f=d+h|0;i[e+16>>2]=f;ip(d,0,h);i[e+12>>2]=f}n=i[a+140>>2];h=i[n>>2];if(h){i[n+4>>2]=h;bp(h);i[n+8>>2]=0;i[n>>2]=0;i[n+4>>2]=0;d=i[e+8>>2];f=i[e+12>>2]}i[n+4>>2]=f;i[n>>2]=d;i[n+8>>2]=i[e+16>>2];B=i[b+4>>2];H=i[b+8>>2];C=i[c+4>>2];I=i[c+8>>2];q=i[c>>2];j=i[b>>2];d=e+24|0;i[d>>2]=0;i[d+4>>2]=0;f=e+16|0;i[f>>2]=0;i[f+4>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;n=q-j|0;vc(e+8|0);g=0;h=i[e+12>>2];if((h|0)!=i[f>>2]){d=i[d>>2]+i[e+28>>2]|0;f=(d>>>0)/113|0;g=i[h+(f<<2)>>2]+o(d-o(f,113)|0,36)|0}i[g+32>>2]=0;i[g+28>>2]=n;i[g+24>>2]=0;i[g+16>>2]=C;i[g+20>>2]=I;i[g+12>>2]=q;i[g+4>>2]=B;i[g+8>>2]=H;i[g>>2]=j;f=i[e+28>>2];g=f+1|0;i[e+28>>2]=g;if(g>>>0>=f>>>0){n=C;q=B;J=a+32|0;K=a+12|0;L=a+72|0;M=i[c+8>>2];u=i[b+8>>2];while(1){f=i[e+12>>2];j=g+ -1|0;m=j+i[e+24>>2]|0;d=(m>>>0)/113|0;d=i[f+(d<<2)>>2]+o(m-o(d,113)|0,36)|0;D=i[d+32>>2];k=i[d+24>>2];p=i[d+12>>2];h=i[d>>2];i[e+28>>2]=j;d=i[e+16>>2];f=d-f|0;if((f?o(f>>2,113)+ -1|0:0)-m>>>0>=226){bp(i[d+ -4>>2]);i[e+16>>2]=i[e+16>>2]+ -4}i[b>>2]=h;i[c>>2]=p;g=(k|0)==(i[a+8>>2]+ -1|0)?0:k+1|0;v=g<<2;z=o(D,12);m=z+i[a+140>>2]|0;d=i[a>>2]-i[v+i[m>>2]>>2]|0;c:{d:{if(!d){break d}e:{f:{w=p-h|0;if(w>>>0<=2){j=i[a+116>>2];i[j>>2]=g;f=1;d=i[a+8>>2];if(d>>>0>1){break f}break e}f=i[a+128>>2];j=f+z|0;E=f;f=z+12|0;ra(E+f|0,i[j>>2],i[j+4>>2]);f=v+i[f+i[a+128>>2]>>2]|0;G=i[f>>2]+(1<>2]=G;f=h;g:{if((p|0)==(f|0)){break g}t=i[q+24>>2];d=h;f=p;while(1){s=t+(o(d,u)<<2)|0;if(l[s+v>>2]>>0){d=d+1|0;if((f|0)!=(d|0)){continue}break g}while(1){f=f+ -1|0;if((f|0)==(d|0)){f=d;break g}y=i[n+24>>2]+(o(f,M)<<2)|0;if(l[v+y>>2]>=G>>>0){continue}break}A=0;if(u){while(1){k=A<<2;j=k+s|0;m=i[j>>2];E=j;j=k+y|0;i[E>>2]=i[j>>2];i[j>>2]=m;A=A+1|0;if((A|0)!=(u|0)){continue}break}}d=d+1|0;if((f|0)!=(d|0)){continue}break}}y=D+1|0;d=r(w)^31;t=f-h|0;s=p-f|0;if((t|0)!=(s|0)){xc(L,t>>>0>>0)}yc(K,d,(w>>>1|0)-(t>>>0>>0?t:s)|0);k=i[a+140>>2];m=k+z|0;j=i[m>>2];d=j+v|0;i[d>>2]=i[d>>2]+1;ra(k+o(y,12)|0,j,i[m+4>>2]);if((f|0)!=(h|0)){k=i[e+28>>2]+i[e+24>>2]|0;m=i[e+16>>2];d=i[e+12>>2];j=m-d|0;if((k|0)==((j?o(j>>2,113)+ -1|0:0)|0)){vc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;m=i[e+16>>2];d=i[e+12>>2]}j=0;h:{if((d|0)==(m|0)){break h}j=d;d=(k>>>0)/113|0;j=i[j+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[j+32>>2]=D;i[j+28>>2]=t;i[j+24>>2]=g;i[j+20>>2]=u;i[j+16>>2]=q;i[j+12>>2]=f;i[j+4>>2]=B;i[j+8>>2]=H;i[j>>2]=h;i[e+28>>2]=i[e+28>>2]+1}if((f|0)==(p|0)){break d}k=i[e+28>>2]+i[e+24>>2]|0;j=i[e+16>>2];d=i[e+12>>2];h=j-d|0;if((k|0)==((h?o(h>>2,113)+ -1|0:0)|0)){vc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;j=i[e+16>>2];d=i[e+12>>2]}h=0;i:{if((d|0)==(j|0)){break i}h=d;d=(k>>>0)/113|0;h=i[h+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[h+32>>2]=y;i[h+28>>2]=s;i[h+24>>2]=g;i[h+16>>2]=C;i[h+20>>2]=I;i[h+12>>2]=p;i[h+8>>2]=u;i[h+4>>2]=q;i[h>>2]=f;g=i[e+28>>2]+1|0;i[e+28>>2]=g;break c}while(1){g=(d+ -1|0)==(g|0)?0:g+1|0;i[j+(f<<2)>>2]=g;f=f+1|0;d=i[a+8>>2];if(f>>>0>>0){continue}break}}k=0;f=d;if(!w){break d}while(1){j:{if(!f){f=0;break j}p=i[q+24>>2]+(o(i[q+4>>2],h+k|0)<<2)|0;g=0;while(1){j=i[i[a+116>>2]+(g<<2)>>2]<<2;f=i[a>>2]-i[j+i[m>>2]>>2]|0;if(f){yc(J,f,i[j+p>>2]);d=i[a+8>>2]}g=g+1|0;f=d;if(g>>>0>>0){continue}break}}k=k+1|0;if((w|0)!=(k|0)){continue}break}}g=i[e+28>>2]}if(g){continue}break}}i[e+28>>2]=0;d=i[e+16>>2];g=i[e+12>>2];a=d-g>>2;if(a>>>0>=3){while(1){bp(i[g>>2]);g=i[e+12>>2]+4|0;i[e+12>>2]=g;d=i[e+16>>2];a=d-g>>2;if(a>>>0>2){continue}break}}f=56;k:{switch(a+ -1|0){case 1:f=113;case 0:i[e+24>>2]=f;break;default:break k}}l:{if((d|0)==(g|0)){break l}while(1){bp(i[g>>2]);g=g+4|0;if((g|0)!=(d|0)){continue}break}b=i[e+16>>2];a=i[e+12>>2];if((b|0)==(a|0)){break l}i[e+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[e+8>>2];if(a){bp(a)}F=e+32|0;return}Ho();x()}Ho();x()}function qc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;e=F-32|0;F=e;g=i[a+8>>2];i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;a:{if(g){if(g>>>0>=1073741824){break a}d=g<<2;f=ho(d);i[e+8>>2]=f;k=d+f|0;i[e+16>>2]=k;ip(f,0,d);i[e+12>>2]=k}h=i[a+140>>2];d=i[h>>2];if(d){i[h+4>>2]=d;bp(d);i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;g=i[a+8>>2];k=i[e+12>>2];f=i[e+8>>2]}i[h+4>>2]=k;i[h>>2]=f;i[h+8>>2]=i[e+16>>2];f=0;i[e+16>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;d=0;b:{if(g){if(g>>>0>=1073741824){break b}h=g<<2;d=ho(h);i[e+8>>2]=d;f=d+h|0;i[e+16>>2]=f;ip(d,0,h);i[e+12>>2]=f}n=i[a+152>>2];h=i[n>>2];if(h){i[n+4>>2]=h;bp(h);i[n+8>>2]=0;i[n>>2]=0;i[n+4>>2]=0;d=i[e+8>>2];f=i[e+12>>2]}i[n+4>>2]=f;i[n>>2]=d;i[n+8>>2]=i[e+16>>2];B=i[b+4>>2];H=i[b+8>>2];C=i[c+4>>2];I=i[c+8>>2];q=i[c>>2];j=i[b>>2];d=e+24|0;i[d>>2]=0;i[d+4>>2]=0;f=e+16|0;i[f>>2]=0;i[f+4>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;n=q-j|0;vc(e+8|0);g=0;h=i[e+12>>2];if((h|0)!=i[f>>2]){d=i[d>>2]+i[e+28>>2]|0;f=(d>>>0)/113|0;g=i[h+(f<<2)>>2]+o(d-o(f,113)|0,36)|0}i[g+32>>2]=0;i[g+28>>2]=n;i[g+24>>2]=0;i[g+16>>2]=C;i[g+20>>2]=I;i[g+12>>2]=q;i[g+4>>2]=B;i[g+8>>2]=H;i[g>>2]=j;f=i[e+28>>2];g=f+1|0;i[e+28>>2]=g;if(g>>>0>=f>>>0){n=C;q=B;J=a+44|0;K=a+12|0;L=a+84|0;M=i[c+8>>2];u=i[b+8>>2];while(1){f=i[e+12>>2];j=g+ -1|0;m=j+i[e+24>>2]|0;d=(m>>>0)/113|0;d=i[f+(d<<2)>>2]+o(m-o(d,113)|0,36)|0;D=i[d+32>>2];k=i[d+24>>2];p=i[d+12>>2];h=i[d>>2];i[e+28>>2]=j;d=i[e+16>>2];f=d-f|0;if((f?o(f>>2,113)+ -1|0:0)-m>>>0>=226){bp(i[d+ -4>>2]);i[e+16>>2]=i[e+16>>2]+ -4}i[b>>2]=h;i[c>>2]=p;g=(k|0)==(i[a+8>>2]+ -1|0)?0:k+1|0;v=g<<2;z=o(D,12);m=z+i[a+152>>2]|0;d=i[a>>2]-i[v+i[m>>2]>>2]|0;c:{d:{if(!d){break d}e:{f:{w=p-h|0;if(w>>>0<=2){j=i[a+128>>2];i[j>>2]=g;f=1;d=i[a+8>>2];if(d>>>0>1){break f}break e}f=i[a+140>>2];j=f+z|0;E=f;f=z+12|0;ra(E+f|0,i[j>>2],i[j+4>>2]);f=v+i[f+i[a+140>>2]>>2]|0;G=i[f>>2]+(1<>2]=G;f=h;g:{if((p|0)==(f|0)){break g}t=i[q+24>>2];d=h;f=p;while(1){s=t+(o(d,u)<<2)|0;if(l[s+v>>2]>>0){d=d+1|0;if((f|0)!=(d|0)){continue}break g}while(1){f=f+ -1|0;if((f|0)==(d|0)){f=d;break g}y=i[n+24>>2]+(o(f,M)<<2)|0;if(l[v+y>>2]>=G>>>0){continue}break}A=0;if(u){while(1){k=A<<2;j=k+s|0;m=i[j>>2];E=j;j=k+y|0;i[E>>2]=i[j>>2];i[j>>2]=m;A=A+1|0;if((A|0)!=(u|0)){continue}break}}d=d+1|0;if((f|0)!=(d|0)){continue}break}}y=D+1|0;d=r(w)^31;t=f-h|0;s=p-f|0;if((t|0)!=(s|0)){xc(L,t>>>0>>0)}rf(K,d,(w>>>1|0)-(t>>>0>>0?t:s)|0);k=i[a+152>>2];m=k+z|0;j=i[m>>2];d=j+v|0;i[d>>2]=i[d>>2]+1;ra(k+o(y,12)|0,j,i[m+4>>2]);if((f|0)!=(h|0)){k=i[e+28>>2]+i[e+24>>2]|0;m=i[e+16>>2];d=i[e+12>>2];j=m-d|0;if((k|0)==((j?o(j>>2,113)+ -1|0:0)|0)){vc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;m=i[e+16>>2];d=i[e+12>>2]}j=0;h:{if((d|0)==(m|0)){break h}j=d;d=(k>>>0)/113|0;j=i[j+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[j+32>>2]=D;i[j+28>>2]=t;i[j+24>>2]=g;i[j+20>>2]=u;i[j+16>>2]=q;i[j+12>>2]=f;i[j+4>>2]=B;i[j+8>>2]=H;i[j>>2]=h;i[e+28>>2]=i[e+28>>2]+1}if((f|0)==(p|0)){break d}k=i[e+28>>2]+i[e+24>>2]|0;j=i[e+16>>2];d=i[e+12>>2];h=j-d|0;if((k|0)==((h?o(h>>2,113)+ -1|0:0)|0)){vc(e+8|0);k=i[e+24>>2]+i[e+28>>2]|0;j=i[e+16>>2];d=i[e+12>>2]}h=0;i:{if((d|0)==(j|0)){break i}h=d;d=(k>>>0)/113|0;h=i[h+(d<<2)>>2]+o(k-o(d,113)|0,36)|0}i[h+32>>2]=y;i[h+28>>2]=s;i[h+24>>2]=g;i[h+16>>2]=C;i[h+20>>2]=I;i[h+12>>2]=p;i[h+8>>2]=u;i[h+4>>2]=q;i[h>>2]=f;g=i[e+28>>2]+1|0;i[e+28>>2]=g;break c}while(1){g=(d+ -1|0)==(g|0)?0:g+1|0;i[j+(f<<2)>>2]=g;f=f+1|0;d=i[a+8>>2];if(f>>>0>>0){continue}break}}k=0;f=d;if(!w){break d}while(1){j:{if(!f){f=0;break j}p=i[q+24>>2]+(o(i[q+4>>2],h+k|0)<<2)|0;g=0;while(1){j=i[i[a+128>>2]+(g<<2)>>2]<<2;f=i[a>>2]-i[j+i[m>>2]>>2]|0;if(f){yc(J,f,i[j+p>>2]);d=i[a+8>>2]}g=g+1|0;f=d;if(g>>>0>>0){continue}break}}k=k+1|0;if((w|0)!=(k|0)){continue}break}}g=i[e+28>>2]}if(g){continue}break}}i[e+28>>2]=0;d=i[e+16>>2];g=i[e+12>>2];a=d-g>>2;if(a>>>0>=3){while(1){bp(i[g>>2]);g=i[e+12>>2]+4|0;i[e+12>>2]=g;d=i[e+16>>2];a=d-g>>2;if(a>>>0>2){continue}break}}f=56;k:{switch(a+ -1|0){case 1:f=113;case 0:i[e+24>>2]=f;break;default:break k}}l:{if((d|0)==(g|0)){break l}while(1){bp(i[g>>2]);g=g+4|0;if((g|0)!=(d|0)){continue}break}b=i[e+16>>2];a=i[e+12>>2];if((b|0)==(a|0)){break l}i[e+16>>2]=b+(((b-a|0)+ -4>>>2^-1)<<2)}a=i[e+8>>2];if(a){bp(a)}F=e+32|0;return}Ho();x()}Ho();x()}function kn(a,b,c,d,e){var f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;f=F-432|0;F=f;g=i[b+4>>2];a:{if(g>>>0>2]){i[b+4>>2]=g+1;h=j[g|0];break a}h=fn(b)}b:{c:{while(1){d:{if((h|0)!=48){if((h|0)!=46){break b}g=i[b+4>>2];if(g>>>0>=l[b+104>>2]){break d}i[b+4>>2]=g+1;h=j[g|0];break c}g=i[b+4>>2];if(g>>>0>2]){y=1;i[b+4>>2]=g+1;h=j[g|0]}else{y=1;h=fn(b)}continue}break}h=fn(b)}x=1;if((h|0)!=48){break b}while(1){q=q+ -1|0;g=u+ -1|0;if((g|0)!=-1){q=q+1|0}u=g;g=i[b+4>>2];e:{if(g>>>0>2]){i[b+4>>2]=g+1;h=j[g|0];break e}h=fn(b)}if((h|0)==48){continue}break}y=1}g=1073676288;while(1){f:{z=h|32;g:{h:{A=h+ -48|0;if(A>>>0<10){break h}if(z+ -97>>>0>5?(h|0)!=46:0){break f}if((h|0)!=46){break h}if(x){break f}x=1;u=o;q=k;break g}h=(h|0)>57?z+ -87|0:A;i:{if((k|0)<0?1:(k|0)<=0?o>>>0<=7:0){r=h+(r<<4)|0;break i}if((k|0)<0?1:(k|0)<=0?o>>>0<=28:0){An(f+48|0,h);yn(f+32|0,v,w,p,g,0,0,0,1073414144);v=i[f+32>>2];w=i[f+36>>2];p=i[f+40>>2];g=i[f+44>>2];yn(f+16|0,v,w,p,g,i[f+48>>2],i[f+52>>2],i[f+56>>2],i[f+60>>2]);tn(f,m,n,s,t,i[f+16>>2],i[f+20>>2],i[f+24>>2],i[f+28>>2]);s=i[f+8>>2];t=i[f+12>>2];m=i[f>>2];n=i[f+4>>2];break i}if(!h|D){break i}yn(f+80|0,v,w,p,g,0,0,0,1073610752);tn(f- -64|0,m,n,s,t,i[f+80>>2],i[f+84>>2],i[f+88>>2],i[f+92>>2]);s=i[f+72>>2];t=i[f+76>>2];D=1;m=i[f+64>>2];n=i[f+68>>2]}o=o+1|0;if(o>>>0<1){k=k+1|0}y=1}h=i[b+4>>2];if(h>>>0>2]){i[b+4>>2]=h+1;h=j[h|0]}else{h=fn(b)}continue}break}j:{k:{if(!y){if(!i[b+104>>2]){break k}c=i[b+4>>2];i[b+4>>2]=c+ -1;i[b+4>>2]=c+ -2;if(!x){break k}i[b+4>>2]=c+ -3;break k}if((k|0)<0?1:(k|0)<=0?o>>>0<=7:0){p=o;g=k;while(1){r=r<<4;p=p+1|0;if(p>>>0<1){g=g+1|0}if((p|0)!=8|g){continue}break}}l:{if((h&-33)==80){p=mn(b);h=H;g=h;if(p|(g|0)!=-2147483648){break l}p=0;g=0;if(!i[b+104>>2]){break l}i[b+4>>2]=i[b+4>>2]+ -1;break l}p=0;g=0;if(!i[b+104>>2]){break l}i[b+4>>2]=i[b+4>>2]+ -1}if(!r){xn(f+112|0,+(e|0)*0);m=i[f+112>>2];n=i[f+116>>2];c=i[f+120>>2];b=i[f+124>>2];break j}b=x?q:k;k=x?u:o;q=b<<2|k>>>30;b=p+(k<<2)|0;k=g+q|0;k=b>>>0

>>0?k+1|0:k;b=b+ -32|0;g=k+ -1|0;o=b;k=b>>>0<4294967264?g+1|0:g;if((k|0)>0?1:(k|0)>=0?b>>>0>0-d>>>0:0){i[4805]=68;An(f+160|0,e);yn(f+144|0,i[f+160>>2],i[f+164>>2],i[f+168>>2],i[f+172>>2],-1,-1,-1,2147418111);yn(f+128|0,i[f+144>>2],i[f+148>>2],i[f+152>>2],i[f+156>>2],-1,-1,-1,2147418111);m=i[f+128>>2];n=i[f+132>>2];c=i[f+136>>2];b=i[f+140>>2];break j}b=d+ -226|0;h=o>>>0>=b>>>0;b=b>>31;if((k|0)>(b|0)?1:(k|0)>=(b|0)?h:0){if((r|0)>-1){while(1){tn(f+416|0,m,n,s,t,0,0,0,-1073807360);h=rn(m,n,s,t,1073610752);g=(h|0)<0;b=g;tn(f+400|0,m,n,s,t,b?m:i[f+416>>2],b?n:i[f+420>>2],b?s:i[f+424>>2],b?t:i[f+428>>2]);k=k+ -1|0;b=o+ -1|0;if((b|0)!=-1){k=k+1|0}o=b;s=i[f+408>>2];t=i[f+412>>2];m=i[f+400>>2];n=i[f+404>>2];r=r<<1|(h|0)>-1;if((r|0)>-1){continue}break}}g=o;b=d;h=(g-b|0)+32|0;k=k-((b>>31)+(g>>>0>>0)|0)|0;b=h;k=b>>>0<32?k+1|0:k;c=((k|0)<0?1:(k|0)<=0?b>>>0>>0:0)?(b|0)>0?b:0:c;m:{if((c|0)>=113){An(f+384|0,e);u=i[f+392>>2];q=i[f+396>>2];v=i[f+384>>2];w=i[f+388>>2];d=0;b=0;break m}xn(f+352|0,fp(144-c|0));An(f+336|0,e);v=i[f+336>>2];w=i[f+340>>2];u=i[f+344>>2];q=i[f+348>>2];gn(f+368|0,i[f+352>>2],i[f+356>>2],i[f+360>>2],i[f+364>>2],v,w,u,q);B=i[f+376>>2];C=i[f+380>>2];d=i[f+372>>2];b=i[f+368>>2]}c=!(r&1)&((qn(m,n,s,t,0,0,0,0)|0)!=0&(c|0)<32);En(f+320|0,c+r|0);yn(f+304|0,v,w,u,q,i[f+320>>2],i[f+324>>2],i[f+328>>2],i[f+332>>2]);tn(f+272|0,i[f+304>>2],i[f+308>>2],i[f+312>>2],i[f+316>>2],b,d,B,C);yn(f+288|0,c?0:m,c?0:n,c?0:s,c?0:t,v,w,u,q);tn(f+256|0,i[f+288>>2],i[f+292>>2],i[f+296>>2],i[f+300>>2],i[f+272>>2],i[f+276>>2],i[f+280>>2],i[f+284>>2]);zn(f+240|0,i[f+256>>2],i[f+260>>2],i[f+264>>2],i[f+268>>2],b,d,B,C);e=i[f+240>>2];d=i[f+244>>2];c=i[f+248>>2];b=i[f+252>>2];if(!qn(e,d,c,b,0,0,0,0)){i[4805]=68}hn(f+224|0,e,d,c,b,o);m=i[f+224>>2];n=i[f+228>>2];c=i[f+232>>2];b=i[f+236>>2];break j}i[4805]=68;An(f+208|0,e);yn(f+192|0,i[f+208>>2],i[f+212>>2],i[f+216>>2],i[f+220>>2],0,0,0,65536);yn(f+176|0,i[f+192>>2],i[f+196>>2],i[f+200>>2],i[f+204>>2],0,0,0,65536);m=i[f+176>>2];n=i[f+180>>2];c=i[f+184>>2];b=i[f+188>>2];break j}xn(f+96|0,+(e|0)*0);m=i[f+96>>2];n=i[f+100>>2];c=i[f+104>>2];b=i[f+108>>2]}i[a>>2]=m;i[a+4>>2]=n;i[a+8>>2]=c;i[a+12>>2]=b;F=f+432|0}function ke(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,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;l=F-48|0;F=l;i[a+68>>2]=f;q=a+112|0;pf(q);d=i[a+56>>2];f=i[d>>2];j=i[d+4>>2];i[l+40>>2]=0;i[l+32>>2]=0;i[l+36>>2]=0;i[l+16>>2]=0;i[l+20>>2]=0;i[l+8>>2]=0;i[l+12>>2]=0;i[l>>2]=0;i[l+4>>2]=0;a:{g=j-f|0;if((g|0)<1){break a}e=i[d>>2];if((e|0)!=i[d+4>>2]){t=a+60|0;d=f-j|0;d=((d|0)>(g|0)?d:g)>>>2|0;u=d>>>0>1?d:1;v=c+4|0;while(1){le(t,i[(n<<2)+e>>2],l+32|0);f=i[l+36>>2];g=f>>31;j=i[l+32>>2];k=j>>31;e=i[l+40>>2];h=e>>31;d=0;h=h^e+h;g=h+((g^f+g)+(k^j+k)|0)|0;if(g>>>0>>0){d=1}k=g;b:{if(!(d|g)){m=i[a+108>>2];g=m;break b}m=i[a+108>>2];h=m;o=h>>31;g=vp(up(h,o,j,j>>31),H,k,d);f=vp(up(h,o,f,f>>31),H,k,d);if((e|0)>=0){e=(((g|0)<0?g:0-g|0)+m|0)+((f|0)<0?f:0-f|0)|0;break b}d=g>>31;e=(d+g^d)-m|0;d=f>>31;e=e+(d+f^d)|0}c:{if((g|0)>=0){j=f+m|0;h=e+m|0;break c}d:{if((f|0)<=-1){d=e>>31;j=d+e^d;break d}j=i[a+100>>2]+((e|0)<0?e:0-e|0)|0}if((e|0)<=-1){d=f>>31;h=d+f^d;break c}h=i[a+100>>2]+((f|0)<0?f:0-f|0)|0}e:{if(!(h|j)){d=i[a+100>>2];h=d;k=d;break e}d=i[a+100>>2];f:{g:{h:{i:{if(!j){if((d|0)==(h|0)){d=h;k=d;break e}k=0;if(d|h){break i}h=0;break e}if((d|0)!=(j|0)|h){break h}d=j;h=d;k=d;break e}if((m|0)<(h|0)){h=(m<<1)-h|0;break e}if(d){break f}break g}if((d|0)!=(j|0)){break f}}d=j;if((m|0)<=(h|0)){break f}h=(m<<1)-h|0;k=j;break e}if(!((d|0)!=(h|0)|(m|0)<=(j|0))){k=(m<<1)-j|0;break e}if(h){k=j;break e}h=0;if((m|0)>=(j|0)){k=j;break e}k=(m<<1)-j|0}i[l+28>>2]=h;i[l+24>>2]=k;j=0-e|0;i[l+40>>2]=j;k=0-f|0;i[l+36>>2]=k;i[l+32>>2]=0-g;j:{k:{l:{if((g|0)<=0){g=m-f|0;e=m-e|0;break l}g=e>>31;h=((e|0)<0?e:j)+d|0;j=(f|0)>0;g=j?g+e^g:h;if((e|0)>=1){e=f>>31;e=e+f^e;break l}e=(j?k:f)+d|0}if(!(e|g)){break k}m:{n:{o:{if(!g){if((d|0)==(e|0)){break k}f=0;if(d|e){break o}e=0;break j}if((d|0)==(g|0)?!e:0){break k}if((d|0)==(g|0)){break n}break m}if((m|0)<(e|0)){e=(m<<1)-e|0;break j}if(d){break m}}d=g;if((m|0)<=(e|0)){break m}e=(m<<1)-e|0;f=g;break j}if(!((d|0)!=(e|0)|(m|0)<=(g|0))){f=(m<<1)-g|0;break j}if(e){f=g;break j}e=0;if((m|0)>=(g|0)){f=g;break j}f=(m<<1)-g|0;break j}e=d;f=d}i[l+20>>2]=e;i[l+16>>2]=f;g=i[a+8>>2];p:{if((g|0)<1){break p}r=(n<<3)+b|0;m=l+24|0;j=0;while(1){f=0;q:{if((g|0)<=0){e=i[a+32>>2];break q}while(1){d=f<<2;g=i[d+m>>2];k=i[a+16>>2];r:{if((g|0)>(k|0)){e=i[a+32>>2];i[d+e>>2]=k;break r}e=i[a+32>>2];d=d+e|0;k=i[a+12>>2];if((g|0)<(k|0)){i[d>>2]=k;break r}i[d>>2]=g}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){continue}break}}f=j<<2;d=f+(l+8|0)|0;f=i[f+r>>2]-i[e+f>>2]|0;i[d>>2]=f;k=i[a+28>>2];h=f+i[a+20>>2]|0;s:{t:{if((f|0)<(k|0)){break t}if((f|0)<=i[a+24>>2]){break s}h=f-i[a+20>>2]|0}i[d>>2]=h}m=e;j=j+1|0;if((j|0)<(g|0)){continue}break}p=0;o=l+16|0;j=e;f=e;if((g|0)<1){break p}while(1){d=0;if((g|0)>=1){while(1){f=e;h=f;s=d<<2;k=i[s+o>>2];g=i[a+16>>2];if((k|0)<=(g|0)){g=i[a+12>>2];f=(k|0)<(g|0);g=f?g:k;h=m;f=f?h:j}i[f+s>>2]=g;m=h;j=f;d=d+1|0;g=i[a+8>>2];if((d|0)<(g|0)){continue}break}k=i[a+28>>2]}h=p<<2;d=h+l|0;h=i[h+r>>2]-i[f+h>>2]|0;i[d>>2]=h;u:{if((h|0)<(k|0)){h=h+i[a+20>>2]|0}else{if((h|0)<=i[a+24>>2]){break u}h=h-i[a+20>>2]|0}i[d>>2]=h}o=f;p=p+1|0;if((p|0)<(g|0)){continue}break}}j=i[a+108>>2];e=i[l+8>>2];v:{if((j|0)<(e|0)){e=e-i[a+96>>2]|0;break v}if((e|0)>=(0-j|0)){break v}e=i[a+96>>2]+e|0}i[l+8>>2]=e;g=i[l+12>>2];w:{if((j|0)<(g|0)){g=g-i[a+96>>2]|0;break w}if((g|0)>=(0-j|0)){break w}g=i[a+96>>2]+g|0}i[l+12>>2]=g;d=i[l>>2];x:{if((j|0)<(d|0)){d=d-i[a+96>>2]|0;break x}if((d|0)>=(0-j|0)){break x}d=i[a+96>>2]+d|0}i[l>>2]=d;f=i[l+4>>2];y:{if((j|0)<(f|0)){f=f-i[a+96>>2]|0;break y}if((f|0)>=(0-j|0)){break y}f=i[a+96>>2]+f|0}j=n<<1;i[l+4>>2]=f;k=g>>31;k=k+g^k;h=e>>31;h=h+e^h;m=h>>>0>(k^2147483647)>>>0?2147483647:k+h|0;k=f>>31;k=k+f^k;h=d>>31;h=h+d^h;z:{if(m>>>0<(h>>>0>(k^2147483647)>>>0?2147483647:k+h|0)>>>0){qf(q,0);d=(j<<2)+c|0;if((e|0)<=-1){e=i[a+96>>2]+e|0}i[d>>2]=e;if((g|0)>-1){f=g;break z}f=i[a+96>>2]+g|0;break z}qf(q,1);e=(j<<2)+c|0;if((d|0)<=-1){d=i[a+96>>2]+d|0}i[e>>2]=d;if((f|0)>-1){break z}f=i[a+96>>2]+f|0}i[(j<<2)+v>>2]=f;n=n+1|0;if((u|0)==(n|0)){break a}d=i[a+56>>2];e=i[d>>2];if(i[d+4>>2]-e>>2>>>0>n>>>0){continue}break}}Io();x()}F=l+48|0;return 1}function Xd(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,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;l=F-48|0;F=l;i[a+68>>2]=f;q=a+112|0;pf(q);d=i[a+56>>2];f=i[d>>2];j=i[d+4>>2];i[l+40>>2]=0;i[l+32>>2]=0;i[l+36>>2]=0;i[l+16>>2]=0;i[l+20>>2]=0;i[l+8>>2]=0;i[l+12>>2]=0;i[l>>2]=0;i[l+4>>2]=0;a:{g=j-f|0;if((g|0)<1){break a}e=i[d>>2];if((e|0)!=i[d+4>>2]){t=a+60|0;d=f-j|0;d=((d|0)>(g|0)?d:g)>>>2|0;u=d>>>0>1?d:1;v=c+4|0;while(1){Yd(t,i[(n<<2)+e>>2],l+32|0);f=i[l+36>>2];g=f>>31;j=i[l+32>>2];k=j>>31;e=i[l+40>>2];h=e>>31;d=0;h=h^e+h;g=h+((g^f+g)+(k^j+k)|0)|0;if(g>>>0>>0){d=1}k=g;b:{if(!(d|g)){m=i[a+108>>2];g=m;break b}m=i[a+108>>2];h=m;o=h>>31;g=vp(up(h,o,j,j>>31),H,k,d);f=vp(up(h,o,f,f>>31),H,k,d);if((e|0)>=0){e=(((g|0)<0?g:0-g|0)+m|0)+((f|0)<0?f:0-f|0)|0;break b}d=g>>31;e=(d+g^d)-m|0;d=f>>31;e=e+(d+f^d)|0}c:{if((g|0)>=0){j=f+m|0;h=e+m|0;break c}d:{if((f|0)<=-1){d=e>>31;j=d+e^d;break d}j=i[a+100>>2]+((e|0)<0?e:0-e|0)|0}if((e|0)<=-1){d=f>>31;h=d+f^d;break c}h=i[a+100>>2]+((f|0)<0?f:0-f|0)|0}e:{if(!(h|j)){d=i[a+100>>2];h=d;k=d;break e}d=i[a+100>>2];f:{g:{h:{i:{if(!j){if((d|0)==(h|0)){d=h;k=d;break e}k=0;if(d|h){break i}h=0;break e}if((d|0)!=(j|0)|h){break h}d=j;h=d;k=d;break e}if((m|0)<(h|0)){h=(m<<1)-h|0;break e}if(d){break f}break g}if((d|0)!=(j|0)){break f}}d=j;if((m|0)<=(h|0)){break f}h=(m<<1)-h|0;k=j;break e}if(!((d|0)!=(h|0)|(m|0)<=(j|0))){k=(m<<1)-j|0;break e}if(h){k=j;break e}h=0;if((m|0)>=(j|0)){k=j;break e}k=(m<<1)-j|0}i[l+28>>2]=h;i[l+24>>2]=k;j=0-e|0;i[l+40>>2]=j;k=0-f|0;i[l+36>>2]=k;i[l+32>>2]=0-g;j:{k:{l:{if((g|0)<=0){g=m-f|0;e=m-e|0;break l}g=e>>31;h=((e|0)<0?e:j)+d|0;j=(f|0)>0;g=j?g+e^g:h;if((e|0)>=1){e=f>>31;e=e+f^e;break l}e=(j?k:f)+d|0}if(!(e|g)){break k}m:{n:{o:{if(!g){if((d|0)==(e|0)){break k}f=0;if(d|e){break o}e=0;break j}if((d|0)==(g|0)?!e:0){break k}if((d|0)==(g|0)){break n}break m}if((m|0)<(e|0)){e=(m<<1)-e|0;break j}if(d){break m}}d=g;if((m|0)<=(e|0)){break m}e=(m<<1)-e|0;f=g;break j}if(!((d|0)!=(e|0)|(m|0)<=(g|0))){f=(m<<1)-g|0;break j}if(e){f=g;break j}e=0;if((m|0)>=(g|0)){f=g;break j}f=(m<<1)-g|0;break j}e=d;f=d}i[l+20>>2]=e;i[l+16>>2]=f;g=i[a+8>>2];p:{if((g|0)<1){break p}r=(n<<3)+b|0;m=l+24|0;j=0;while(1){f=0;q:{if((g|0)<=0){e=i[a+32>>2];break q}while(1){d=f<<2;g=i[d+m>>2];k=i[a+16>>2];r:{if((g|0)>(k|0)){e=i[a+32>>2];i[d+e>>2]=k;break r}e=i[a+32>>2];d=d+e|0;k=i[a+12>>2];if((g|0)<(k|0)){i[d>>2]=k;break r}i[d>>2]=g}f=f+1|0;g=i[a+8>>2];if((f|0)<(g|0)){continue}break}}f=j<<2;d=f+(l+8|0)|0;f=i[f+r>>2]-i[e+f>>2]|0;i[d>>2]=f;k=i[a+28>>2];h=f+i[a+20>>2]|0;s:{t:{if((f|0)<(k|0)){break t}if((f|0)<=i[a+24>>2]){break s}h=f-i[a+20>>2]|0}i[d>>2]=h}m=e;j=j+1|0;if((j|0)<(g|0)){continue}break}p=0;o=l+16|0;j=e;f=e;if((g|0)<1){break p}while(1){d=0;if((g|0)>=1){while(1){f=e;h=f;s=d<<2;k=i[s+o>>2];g=i[a+16>>2];if((k|0)<=(g|0)){g=i[a+12>>2];f=(k|0)<(g|0);g=f?g:k;h=m;f=f?h:j}i[f+s>>2]=g;m=h;j=f;d=d+1|0;g=i[a+8>>2];if((d|0)<(g|0)){continue}break}k=i[a+28>>2]}h=p<<2;d=h+l|0;h=i[h+r>>2]-i[f+h>>2]|0;i[d>>2]=h;u:{if((h|0)<(k|0)){h=h+i[a+20>>2]|0}else{if((h|0)<=i[a+24>>2]){break u}h=h-i[a+20>>2]|0}i[d>>2]=h}o=f;p=p+1|0;if((p|0)<(g|0)){continue}break}}j=i[a+108>>2];e=i[l+8>>2];v:{if((j|0)<(e|0)){e=e-i[a+96>>2]|0;break v}if((e|0)>=(0-j|0)){break v}e=i[a+96>>2]+e|0}i[l+8>>2]=e;g=i[l+12>>2];w:{if((j|0)<(g|0)){g=g-i[a+96>>2]|0;break w}if((g|0)>=(0-j|0)){break w}g=i[a+96>>2]+g|0}i[l+12>>2]=g;d=i[l>>2];x:{if((j|0)<(d|0)){d=d-i[a+96>>2]|0;break x}if((d|0)>=(0-j|0)){break x}d=i[a+96>>2]+d|0}i[l>>2]=d;f=i[l+4>>2];y:{if((j|0)<(f|0)){f=f-i[a+96>>2]|0;break y}if((f|0)>=(0-j|0)){break y}f=i[a+96>>2]+f|0}j=n<<1;i[l+4>>2]=f;k=g>>31;k=k+g^k;h=e>>31;h=h+e^h;m=h>>>0>(k^2147483647)>>>0?2147483647:k+h|0;k=f>>31;k=k+f^k;h=d>>31;h=h+d^h;z:{if(m>>>0<(h>>>0>(k^2147483647)>>>0?2147483647:k+h|0)>>>0){qf(q,0);d=(j<<2)+c|0;if((e|0)<=-1){e=i[a+96>>2]+e|0}i[d>>2]=e;if((g|0)>-1){f=g;break z}f=i[a+96>>2]+g|0;break z}qf(q,1);e=(j<<2)+c|0;if((d|0)<=-1){d=i[a+96>>2]+d|0}i[e>>2]=d;if((f|0)>-1){break z}f=i[a+96>>2]+f|0}i[(j<<2)+v>>2]=f;n=n+1|0;if((u|0)==(n|0)){break a}d=i[a+56>>2];e=i[d>>2];if(i[d+4>>2]-e>>2>>>0>n>>>0){continue}break}}Io();x()}F=l+48|0;return 1}function Xb(a,b,c,d){var e=0,f=0,l=0,o=0,r=0,s=p(0),t=0;a:{b:{c:{if(!d){break c}d:{switch(i[a+28>>2]+ -1|0){case 0:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 1:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 2:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=h[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 3:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 4:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 5:o=g[a+24|0];if(((o|0)>(c|0)?c:o)<<24>>24>=1){e=i[a>>2];l=i[e>>2];o=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+o|0;e=i[e+4>>2];while(1){if(e>>>0<=b>>>0){break b}o=0;r=i[b>>2];if((r|0)<0){break c}i[(f<<2)+d>>2]=r;b=b+4|0;f=f+1|0;o=g[a+24|0];if((f|0)<((o|0)>(c|0)?c:o)<<24>>24){continue}break}}if((o|0)>=(c|0)){return 1}ip((o<<2)+d|0,0,c-o<<2);return 1;case 6:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=i[b+4>>2];l=i[b>>2];if(l+ -2147483648>>>0<2147483648){e=e+1|0}if(e>>>0>0){break b}i[(f<<2)+d>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 7:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=i[b+4>>2];l=i[b>>2];if(!e&l>>>0>2147483647|e>>>0>0){break b}i[(f<<2)+d>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 8:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=(f<<2)+d|0;s=m[b>>2];e:{if(p(q(s))>2]=l;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 9:o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}e=(f<<2)+d|0;t=n[b>>3];f:{if(q(t)<2147483648){l=~~t;break f}l=-2147483648}i[e>>2]=l;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}break a;case 10:break d;default:break c}}o=1;e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];l=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=l+f|0;r=i[e+4>>2];f=0;while(1){if(r>>>0<=b>>>0){break b}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break c}ip((e<<2)+d|0,0,c-e<<2)}return o}return 0}ip((e<<2)+d|0,0,c-e<<2);return 1}function $b(a,b,c,d){var e=0,f=0,o=0,q=0,r=p(0),s=0;a:{b:{if(!d){break b}c:{switch(i[a+28>>2]+ -1|0){case 0:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=g[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 1:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 2:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=h[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 3:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=k[b>>1];b=b+2|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 4:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 5:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=i[b>>2];b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 6:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=i[b>>2];if(l[b+4>>2]>0){return}i[(f<<2)+d>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 7:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}e=i[b>>2];if(l[b+4>>2]>0){return}i[(f<<2)+d>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 8:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}q=(f<<2)+d|0;r=m[b>>2];d:{if(r=p(0)){e=~~r>>>0;break d}e=0}i[q>>2]=e;b=b+4|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 9:e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}q=(f<<2)+d|0;s=n[b>>3];e:{if(s<4294967296&s>=0){e=~~s>>>0;break e}e=0}i[q>>2]=e;b=b+8|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}break a;case 10:break c;default:break b}}e=g[a+24|0];if(((e|0)>(c|0)?c:e)<<24>>24>=1){e=i[a>>2];o=i[e>>2];f=i[a+48>>2]+up(i[a+40>>2],i[a+44>>2],b,0)|0;b=o+f|0;o=i[e+4>>2];f=0;while(1){if(o>>>0<=b>>>0){return}i[(f<<2)+d>>2]=j[b|0];b=b+1|0;f=f+1|0;e=g[a+24|0];if((f|0)<((e|0)>(c|0)?c:e)<<24>>24){continue}break}}if((e|0)>=(c|0)){break b}ip((e<<2)+d|0,0,c-e<<2)}return}ip((e<<2)+d|0,0,c-e<<2)}function Em(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0,t=p(0),u=0,w=0,y=0,z=0,A=0,B=0,C=p(0),D=0,E=0;d=F+ -64|0;F=d;h=i[a+80>>2];i[d+40>>2]=0;i[d+44>>2]=0;i[d+56>>2]=a;i[d+48>>2]=a;i[d+32>>2]=0;i[d+36>>2]=0;i[d+52>>2]=1065353216;Fm(d+32|0,h);h=i[a+80>>2];i[d+24>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;a:{if(h){if(h>>>0>=1073741824){break a}c=h<<2;b=ho(c);i[d+16>>2]=b;f=c+b|0;i[d+24>>2]=f;ip(b,0,c);i[d+20>>2]=f}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;b:{c:{d:{if(!h){break d}D=d+40|0;h=0;while(1){c=0;b=i[d+48>>2];s=i[b+12>>2];q=i[b+8>>2];r=s-q|0;u=(r|0)<1;if(!u){b=q-s|0;b=((b|0)>(r|0)?b:r)>>>2|0;f=b>>>0>1?b:1;e=0;while(1){b=h;k=i[q+(e<<2)>>2];if(!j[k+84|0]){b=i[i[k+68>>2]+(h<<2)>>2]}c=b<<2^c<<1;e=e+1|0;if((f|0)!=(e|0)){continue}break}}e:{f:{g=i[d+36>>2];if(!g){break f}f=i[d+32>>2];z=xp(g)>>>0>1;b=g+ -1&c;g:{if(!z){break g}b=c;if(c>>>0>>0){break g}b=(c>>>0)%(g>>>0)|0}f=i[f+(b<<2)>>2];if(!f){break f}o=i[f>>2];if(!o){break f}n=b;E=g+ -1|0;y=i[d+56>>2];h:{while(1){i:{j:{e=i[o+4>>2];if((c|0)!=(e|0)){k:{if(!z){e=e&E;break k}if(e>>>0>>0){break k}e=(e>>>0)%(g>>>0)|0}if((e|0)==(n|0)){break j}break f}A=i[y+8>>2];b=i[y+12>>2]-A|0;if((b|0)<1){break h}f=i[o+8>>2];l=b>>>2|0;l=l>>>0>1?l:1;e=0;while(1){b=f;k=h;B=i[A+(e<<2)>>2];if(!j[B+84|0]){b=i[B+68>>2];k=i[b+(h<<2)>>2];b=i[b+(f<<2)>>2]}if((b|0)!=(k|0)){break j}e=e+1|0;if((l|0)!=(e|0)){continue}break}break i}o=i[o>>2];if(o){continue}break f}break}if(!o){break f}}i[i[d+16>>2]+(h<<2)>>2]=i[o+12>>2];break e}l:{if(u){c=0;break l}c=q-s|0;c=((c|0)>(r|0)?c:r)>>>2|0;f=c>>>0>1?c:1;c=0;e=0;while(1){b=h;k=i[q+(e<<2)>>2];if(!j[k+84|0]){b=i[i[k+68>>2]+(h<<2)>>2]}c=b<<2^c<<1;e=e+1|0;if((f|0)!=(e|0)){continue}break}}m:{n:{if(!g){break n}b=i[d+32>>2];q=xp(g)>>>0>1;l=g+ -1&c;o:{if(!q){break o}l=c;if(c>>>0>>0){break o}l=(c>>>0)%(g>>>0)|0}b=i[b+(l<<2)>>2];if(!b){break n}n=i[b>>2];if(!n){break n}r=g+ -1|0;o=i[d+56>>2];while(1){e=i[n+4>>2];if((c|0)!=(e|0)){p:{if(!q){e=e&r;break p}if(e>>>0>>0){break p}e=(e>>>0)%(g>>>0)|0}if((e|0)!=(l|0)){break n}}s=i[o+8>>2];b=i[o+12>>2]-s|0;if((b|0)<1){break m}f=i[n+8>>2];b=b>>>2|0;y=b>>>0>1?b:1;e=0;while(1){b=f;k=h;u=i[s+(e<<2)>>2];if(!j[u+84|0]){b=i[u+68>>2];k=i[b+(h<<2)>>2];b=i[b+(f<<2)>>2]}if((b|0)==(k|0)){e=e+1|0;if((y|0)==(e|0)){break m}continue}break}n=i[n>>2];if(n){continue}break}}b=ho(16);i[b+12>>2]=w;i[b+8>>2]=h;i[b+4>>2]=c;i[b>>2]=0;t=m[d+52>>2];C=p(i[d+44>>2]+1>>>0);q:{if(p(t*p(g>>>0))>>0<3|g<<1;k=d+32|0;t=p(v(p(C/t)));r:{if(t=p(0)){l=~~t>>>0;break r}l=0}Fm(k,f>>>0>>0?l:f);g=i[d+36>>2];l=g+ -1|0;if(!(g&l)){l=c&l;break q}if(c>>>0>>0){l=c;break q}l=(c>>>0)%(g>>>0)|0}f=i[d+32>>2]+(l<<2)|0;c=i[f>>2];s:{t:{if(!c){i[b>>2]=i[d+40>>2];i[d+40>>2]=b;i[f>>2]=D;c=i[b>>2];if(!c){break s}c=i[c+4>>2];f=g+ -1|0;u:{if(!(f&g)){c=c&f;break u}if(c>>>0>>0){break u}c=(c>>>0)%(g>>>0)|0}c=i[d+32>>2]+(c<<2)|0;break t}i[b>>2]=i[c>>2]}i[c>>2]=b}i[d+44>>2]=i[d+44>>2]+1}i[i[d+16>>2]+(h<<2)>>2]=w;w=w+1|0;c=i[d+4>>2];if((c|0)!=i[d+8>>2]){i[c>>2]=h;i[d+4>>2]=c+4;break e}b=i[d>>2];f=c-b|0;n=f>>2;k=n+1|0;if(k>>>0>=1073741824){break c}e=f>>1;k=n>>>0<536870911?e>>>0>>0?k:e:1073741823;c=0;v:{if(!k){break v}if(k>>>0>=1073741824){break b}c=ho(k<<2)}n=c+(n<<2)|0;i[n>>2]=h;k=c+(k<<2)|0;n=n+4|0;if((f|0)>=1){hp(c,b,f)}i[d+8>>2]=k;i[d+4>>2]=n;i[d>>2]=c;if(!b){break e}bp(b)}h=h+1|0;c=i[a+80>>2];if(h>>>0>>0){continue}break}if((c|0)!=(w|0)){I[i[i[a>>2]+24>>2]](a,d+16|0,d);i[a+80>>2]=w}a=i[d>>2];if(!a){break d}i[d+4>>2]=a;bp(a)}a=i[d+16>>2];if(a){i[d+20>>2]=a;bp(a)}h=i[d+40>>2];if(h){while(1){a=i[h>>2];bp(h);h=a;if(h){continue}break}}a=i[d+32>>2];i[d+32>>2]=0;if(a){bp(a)}F=d- -64|0;return}Ho();x()}za(16928);x()}Ho();x()}function ui(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=F-80|0;F=e;a:{b:{c:{d:{if(!j[a+352|0]){break d}c=1;d=I[i[i[a>>2]+40>>2]](a)|0;if((i[d+12>>2]-i[d+8>>2]|0)<1){break d}Rh(i[i[(I[i[i[a>>2]+40>>2]](a)|0)+8>>2]>>2],b);break c}c=b<<2;h=i[c+i[i[(I[i[i[a>>2]+40>>2]](a)|0)+56>>2]+84>>2]>>2];k=i[c+i[i[(I[i[i[a>>2]+40>>2]](a)|0)+4>>2]+8>>2]>>2];m=-1;d=i[a+176>>2];f=i[a+172>>2];e:{if((d|0)==(f|0)){break e}d=(d-f|0)/136|0;c=0;while(1){if(i[f+o(c,136)>>2]==(b|0)){d=f;m=c;break e}c=c+1|0;if(c>>>0>>0){continue}break}d=f}f:{g:{h:{i:{j:{k:{l:{m:{if(!j[a+352|0]){c=i[k+56>>2];if(!j[(o(m,136)+d|0)+28|0]|(h|0)!=1?!(!h|!c):0){break k}if(c){break m}}c=a+40|0;break l}c=i[a+12>>2];f=i[c+28>>2];c=i[c+24>>2];i[e+16>>2]=-1;n=d;d=o(m,136);h=n+d|0;Sh(h+116|0,f-c>>2,e+16|0);g[(d+i[a+172>>2]|0)+100|0]=0;c=h+104|0}h=0;if(_b(i[(I[i[i[a>>2]+40>>2]](a)|0)+48>>2])|i[k+56>>2]){break j}n:{if(!j[a+352|0]){h=1;break n}d=i[a+8>>2];d=i[d+12>>2]-i[d+8>>2]|0;h=(d|0)<5;if((d|0)>4){break j}}Th(e+16|0,a,c);break i}d=o(m,136)+d|0;c=i[d+56>>2];f=i[d+60>>2];i[e+16>>2]=-1;Sh(d+116|0,f-c>>2,e+16|0);c=ho(80);h=i[a+8>>2];i[c+12>>2]=0;i[c+16>>2]=0;i[c>>2]=12880;i[c+4>>2]=0;k=c+20|0;f=k;i[f>>2]=0;i[f+4>>2]=0;r=c+28|0;f=r;i[f>>2]=0;i[f+4>>2]=0;i[c+36>>2]=0;i[c+40>>2]=0;n=c+44|0;f=n;i[f>>2]=0;i[f+4>>2]=0;i[c+52>>2]=0;i[c+76>>2]=0;s=d+104|0;i[c+72>>2]=s;i[c+68>>2]=h;i[c+64>>2]=0;i[c+56>>2]=0;i[c+60>>2]=0;i[c+8>>2]=11784;t=e+52|0;f=t;i[f>>2]=0;i[f+4>>2]=0;u=e+44|0;f=u;i[f>>2]=0;i[f+4>>2]=0;p=e+36|0;f=p;i[f>>2]=0;i[f+4>>2]=0;f=e+28|0;i[f>>2]=0;i[f+4>>2]=0;i[e+68>>2]=0;i[e+72>>2]=0;i[e+60>>2]=0;i[e+64>>2]=0;i[e+20>>2]=0;i[e+24>>2]=0;i[e+16>>2]=11784;v=d+4|0;i[e+20>>2]=v;d=i[d+68>>2];q=i[d>>2];d=i[d+4>>2];g[e+79|0]=0;Uh(e+40|0,(d-q>>2>>>0)/3|0,e+79|0);d=i[e+20>>2];q=i[d+56>>2];d=i[d+52>>2];g[e+79|0]=0;Uh(t,q-d>>2,e+79|0);i[p>>2]=c;i[e+32>>2]=h;i[f>>2]=s;i[e+24>>2]=v;i[c+76>>2]=a+72;i[r>>2]=i[p>>2];d=i[f+4>>2];i[k>>2]=i[f>>2];i[k+4>>2]=d;d=i[e+24>>2];i[c+12>>2]=i[e+20>>2];i[c+16>>2]=d;d=c;h=i[u>>2];if(h){f=c+32|0;o:{if(h>>>0<=i[c+40>>2]<<5>>>0){k=h+ -1>>>5|0;h=i[f>>2];break o}f=i[f>>2];if(f){bp(f);i[c+40>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;h=i[e+44>>2]}if((h|0)<=-1){break h}k=h+ -1>>>5|0;f=k+1|0;h=ho(f<<2);i[c+40>>2]=f;i[c+36>>2]=0;i[c+32>>2]=h}jp(h,i[e+40>>2],(k<<2)+4|0);f=i[e+44>>2]}else{f=0}i[d+36>>2]=f;f=c;h=i[e+56>>2];if(h){p:{if(h>>>0<=i[c+52>>2]<<5>>>0){d=h+ -1>>>5|0;h=i[n>>2];break p}d=i[n>>2];if(d){bp(d);i[c+52>>2]=0;i[c+44>>2]=0;i[c+48>>2]=0;h=i[e+56>>2]}if((h|0)<=-1){break g}d=h+ -1>>>5|0;k=d+1|0;h=ho(k<<2);i[c+52>>2]=k;i[c+48>>2]=0;i[c+44>>2]=h}jp(h,i[e+52>>2],(d<<2)+4|0);d=i[e+56>>2]}else{d=0}i[f+48>>2]=d;Vh(c+56|0,i[e+64>>2],i[e+68>>2]);i[e+16>>2]=11784;d=i[e+64>>2];if(d){i[e+68>>2]=d;bp(d)}i[e+16>>2]=12036;d=i[e+52>>2];if(d){bp(d)}d=i[e+40>>2];if(d){bp(d)}h=0;break f}Wh(e+16|0,a,c)}c=i[e+16>>2];if(c){break f}c=0;break c}Ho();x()}Ho();x()}i[((m|0)==-1?a+68|0:(i[a+172>>2]+o(m,136)|0)+132|0)>>2]=h;d=ho(76);i[e+8>>2]=c;Mc(d,e+8|0,b);b=i[e+8>>2];i[e+8>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[a+188>>2];q:{if((b|0)!=i[a+192>>2]){i[b>>2]=m;i[a+188>>2]=b+4;break q}c=i[a+184>>2];f=b-c|0;k=f>>2;h=k+1|0;if(h>>>0>=1073741824){break b}n=f>>1;h=k>>>0<536870911?n>>>0>>0?h:n:1073741823;b=0;r:{if(!h){break r}if(h>>>0>=1073741824){break a}b=ho(h<<2)}k=b+(k<<2)|0;i[k>>2]=m;m=b+(h<<2)|0;h=k+4|0;if((f|0)>=1){hp(b,c,f)}i[a+192>>2]=m;i[a+188>>2]=h;i[a+184>>2]=b;if(!c){break q}bp(c)}a=I[i[i[a>>2]+40>>2]](a)|0;i[e>>2]=d;b=i[a+12>>2];s:{if(b>>>0>2]){i[e>>2]=0;i[b>>2]=d;i[a+12>>2]=b+4;break s}Xh(a+8|0,e)}a=i[e>>2];i[e>>2]=0;c=1;if(!a){break c}I[i[i[a>>2]+4>>2]](a)}F=e+80|0;return c|0}Ho();x()}za(11708);x()}function Qh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=F-80|0;F=e;a:{b:{c:{d:{if(!j[a+288|0]){break d}c=1;d=I[i[i[a>>2]+40>>2]](a)|0;if((i[d+12>>2]-i[d+8>>2]|0)<1){break d}Rh(i[i[(I[i[i[a>>2]+40>>2]](a)|0)+8>>2]>>2],b);break c}c=b<<2;h=i[c+i[i[(I[i[i[a>>2]+40>>2]](a)|0)+56>>2]+84>>2]>>2];k=i[c+i[i[(I[i[i[a>>2]+40>>2]](a)|0)+4>>2]+8>>2]>>2];m=-1;d=i[a+176>>2];f=i[a+172>>2];e:{if((d|0)==(f|0)){break e}d=(d-f|0)/136|0;c=0;while(1){if(i[f+o(c,136)>>2]==(b|0)){d=f;m=c;break e}c=c+1|0;if(c>>>0>>0){continue}break}d=f}f:{g:{h:{i:{j:{k:{l:{m:{if(!j[a+288|0]){c=i[k+56>>2];if(!j[(o(m,136)+d|0)+28|0]|(h|0)!=1?!(!h|!c):0){break k}if(c){break m}}c=a+40|0;break l}c=i[a+12>>2];f=i[c+28>>2];c=i[c+24>>2];i[e+16>>2]=-1;n=d;d=o(m,136);h=n+d|0;Sh(h+116|0,f-c>>2,e+16|0);g[(d+i[a+172>>2]|0)+100|0]=0;c=h+104|0}h=0;if(_b(i[(I[i[i[a>>2]+40>>2]](a)|0)+48>>2])|i[k+56>>2]){break j}n:{if(!j[a+288|0]){h=1;break n}d=i[a+8>>2];d=i[d+12>>2]-i[d+8>>2]|0;h=(d|0)<5;if((d|0)>4){break j}}Th(e+16|0,a,c);break i}d=o(m,136)+d|0;c=i[d+56>>2];f=i[d+60>>2];i[e+16>>2]=-1;Sh(d+116|0,f-c>>2,e+16|0);c=ho(80);h=i[a+8>>2];i[c+12>>2]=0;i[c+16>>2]=0;i[c>>2]=12880;i[c+4>>2]=0;k=c+20|0;f=k;i[f>>2]=0;i[f+4>>2]=0;r=c+28|0;f=r;i[f>>2]=0;i[f+4>>2]=0;i[c+36>>2]=0;i[c+40>>2]=0;n=c+44|0;f=n;i[f>>2]=0;i[f+4>>2]=0;i[c+52>>2]=0;i[c+76>>2]=0;s=d+104|0;i[c+72>>2]=s;i[c+68>>2]=h;i[c+64>>2]=0;i[c+56>>2]=0;i[c+60>>2]=0;i[c+8>>2]=11784;t=e+52|0;f=t;i[f>>2]=0;i[f+4>>2]=0;u=e+44|0;f=u;i[f>>2]=0;i[f+4>>2]=0;p=e+36|0;f=p;i[f>>2]=0;i[f+4>>2]=0;f=e+28|0;i[f>>2]=0;i[f+4>>2]=0;i[e+68>>2]=0;i[e+72>>2]=0;i[e+60>>2]=0;i[e+64>>2]=0;i[e+20>>2]=0;i[e+24>>2]=0;i[e+16>>2]=11784;v=d+4|0;i[e+20>>2]=v;d=i[d+68>>2];q=i[d>>2];d=i[d+4>>2];g[e+79|0]=0;Uh(e+40|0,(d-q>>2>>>0)/3|0,e+79|0);d=i[e+20>>2];q=i[d+56>>2];d=i[d+52>>2];g[e+79|0]=0;Uh(t,q-d>>2,e+79|0);i[p>>2]=c;i[e+32>>2]=h;i[f>>2]=s;i[e+24>>2]=v;i[c+76>>2]=a+72;i[r>>2]=i[p>>2];d=i[f+4>>2];i[k>>2]=i[f>>2];i[k+4>>2]=d;d=i[e+24>>2];i[c+12>>2]=i[e+20>>2];i[c+16>>2]=d;d=c;h=i[u>>2];if(h){f=c+32|0;o:{if(h>>>0<=i[c+40>>2]<<5>>>0){k=h+ -1>>>5|0;h=i[f>>2];break o}f=i[f>>2];if(f){bp(f);i[c+40>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;h=i[e+44>>2]}if((h|0)<=-1){break h}k=h+ -1>>>5|0;f=k+1|0;h=ho(f<<2);i[c+40>>2]=f;i[c+36>>2]=0;i[c+32>>2]=h}jp(h,i[e+40>>2],(k<<2)+4|0);f=i[e+44>>2]}else{f=0}i[d+36>>2]=f;f=c;h=i[e+56>>2];if(h){p:{if(h>>>0<=i[c+52>>2]<<5>>>0){d=h+ -1>>>5|0;h=i[n>>2];break p}d=i[n>>2];if(d){bp(d);i[c+52>>2]=0;i[c+44>>2]=0;i[c+48>>2]=0;h=i[e+56>>2]}if((h|0)<=-1){break g}d=h+ -1>>>5|0;k=d+1|0;h=ho(k<<2);i[c+52>>2]=k;i[c+48>>2]=0;i[c+44>>2]=h}jp(h,i[e+52>>2],(d<<2)+4|0);d=i[e+56>>2]}else{d=0}i[f+48>>2]=d;Vh(c+56|0,i[e+64>>2],i[e+68>>2]);i[e+16>>2]=11784;d=i[e+64>>2];if(d){i[e+68>>2]=d;bp(d)}i[e+16>>2]=12036;d=i[e+52>>2];if(d){bp(d)}d=i[e+40>>2];if(d){bp(d)}h=0;break f}Wh(e+16|0,a,c)}c=i[e+16>>2];if(c){break f}c=0;break c}Ho();x()}Ho();x()}i[((m|0)==-1?a+68|0:(i[a+172>>2]+o(m,136)|0)+132|0)>>2]=h;d=ho(76);i[e+8>>2]=c;Mc(d,e+8|0,b);b=i[e+8>>2];i[e+8>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[a+188>>2];q:{if((b|0)!=i[a+192>>2]){i[b>>2]=m;i[a+188>>2]=b+4;break q}c=i[a+184>>2];f=b-c|0;k=f>>2;h=k+1|0;if(h>>>0>=1073741824){break b}n=f>>1;h=k>>>0<536870911?n>>>0>>0?h:n:1073741823;b=0;r:{if(!h){break r}if(h>>>0>=1073741824){break a}b=ho(h<<2)}k=b+(k<<2)|0;i[k>>2]=m;m=b+(h<<2)|0;h=k+4|0;if((f|0)>=1){hp(b,c,f)}i[a+192>>2]=m;i[a+188>>2]=h;i[a+184>>2]=b;if(!c){break q}bp(c)}a=I[i[i[a>>2]+40>>2]](a)|0;i[e>>2]=d;b=i[a+12>>2];s:{if(b>>>0>2]){i[e>>2]=0;i[b>>2]=d;i[a+12>>2]=b+4;break s}Xh(a+8|0,e)}a=i[e>>2];i[e>>2]=0;c=1;if(!a){break c}I[i[i[a>>2]+4>>2]](a)}F=e+80|0;return c|0}Ho();x()}za(11708);x()}function kg(a,b,c,d,e){var f=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0;k=F-48|0;F=k;a:{b:{c:{d:{e:{if((b|0)<0){break e}if(!b){p=1;break e}if(b>>>0>=1073741824){break a}A=(c|0)>1?c:1;s=b<<2;f=ho(s);i[k+36>>2]=f;i[k+32>>2]=f;z=f+s|0;i[k+40>>2]=z;s=f;n=f;while(1){m=1;p=i[(B<<2)+a>>2];if((c|0)>1){while(1){v=i[(m+B<<2)+a>>2];p=p>>>0>>0?v:p;m=m+1|0;if((A|0)!=(m|0)){continue}break}}t=p?(r(p)^31)+1|0:1;f:{if(n>>>0>>0){i[n>>2]=t;n=n+4|0;i[k+36>>2]=n;break f}u=n-s|0;v=u>>2;q=v+1|0;if(q>>>0>=1073741824){break d}n=z-s|0;m=n>>1;n=n>>2>>>0<536870911?m>>>0>>0?q:m:1073741823;f=0;g:{if(!n){break g}if(n>>>0>=1073741824){break c}f=ho(n<<2)}m=f+(v<<2)|0;i[m>>2]=t;z=(n<<2)+f|0;n=m+4|0;if((u|0)>=1){hp(f,s,u)}i[k+40>>2]=z;i[k+36>>2]=n;i[k+32>>2]=f;if(s){bp(s)}s=f}w=p>>>0>w>>>0?p:w;B=A+B|0;if((B|0)<(b|0)){continue}break}m=0;i[k+24>>2]=0;i[k+16>>2]=0;i[k+20>>2]=0;p=0;n=n-f|0;if(n){c=n>>2;if(c>>>0>=1073741824){break b}m=ho(n);i[k+16>>2]=m;i[k+24>>2]=(c<<2)+m;s=k;if((n|0)<1){c=m}else{c=hp(m,f,n)+n|0}p=c;i[s+20>>2]=p}n=p-m|0;if(n){c=m-p|0;f=((c|0)>(n|0)?c:n)>>>2|0;c=(n|0)>-1?n:-1;c=o(f,(c|0)<1?c:1);s=c>>>0>1?c:1;p=0;while(1){f=i[(p<<2)+m>>2];c=f+y|0;if(c>>>0>>0){h=h+1|0}y=c;p=p+1|0;if((s|0)!=(p|0)){continue}break}}f=ag(m,n>>2,32,k);v=H;m=i[k>>2];c=i[k+16>>2];if(c){i[k+20>>2]=c;bp(c)}p=ag(a,b,w,k);n=H;u=i[k>>2];s=(w-u|0)/64|0;h:{i:{if(!d){break i}c=ho(32);i[k>>2]=c;i[k+4>>2]=22;i[k+8>>2]=-2147483616;g[c+22|0]=0;t=j[10820]|j[10821]<<8|(j[10822]<<16|j[10823]<<24);q=j[10816]|j[10817]<<8|(j[10818]<<16|j[10819]<<24);g[c+14|0]=q;g[c+15|0]=q>>>8;g[c+16|0]=q>>>16;g[c+17|0]=q>>>24;g[c+18|0]=t;g[c+19|0]=t>>>8;g[c+20|0]=t>>>16;g[c+21|0]=t>>>24;t=j[10814]|j[10815]<<8|(j[10816]<<16|j[10817]<<24);q=j[10810]|j[10811]<<8|(j[10812]<<16|j[10813]<<24);g[c+8|0]=q;g[c+9|0]=q>>>8;g[c+10|0]=q>>>16;g[c+11|0]=q>>>24;g[c+12|0]=t;g[c+13|0]=t>>>8;g[c+14|0]=t>>>16;g[c+15|0]=t>>>24;t=j[10806]|j[10807]<<8|(j[10808]<<16|j[10809]<<24);q=j[10802]|j[10803]<<8|(j[10804]<<16|j[10805]<<24);g[c|0]=q;g[c+1|0]=q>>>8;g[c+2|0]=q>>>16;g[c+3|0]=q>>>24;g[c+4|0]=t;g[c+5|0]=t>>>8;g[c+6|0]=t>>>16;g[c+7|0]=t>>>24;c=Sb(d,k);if(g[k+11|0]<=-1){bp(i[k>>2])}if(!c){break i}c=ho(32);i[k>>2]=c;i[k+4>>2]=22;i[k+8>>2]=-2147483616;g[c+22|0]=0;h=j[10820]|j[10821]<<8|(j[10822]<<16|j[10823]<<24);f=j[10816]|j[10817]<<8|(j[10818]<<16|j[10819]<<24);g[c+14|0]=f;g[c+15|0]=f>>>8;g[c+16|0]=f>>>16;g[c+17|0]=f>>>24;g[c+18|0]=h;g[c+19|0]=h>>>8;g[c+20|0]=h>>>16;g[c+21|0]=h>>>24;h=j[10814]|j[10815]<<8|(j[10816]<<16|j[10817]<<24);f=j[10810]|j[10811]<<8|(j[10812]<<16|j[10813]<<24);g[c+8|0]=f;g[c+9|0]=f>>>8;g[c+10|0]=f>>>16;g[c+11|0]=f>>>24;g[c+12|0]=h;g[c+13|0]=h>>>8;g[c+14|0]=h>>>16;g[c+15|0]=h>>>24;h=j[10806]|j[10807]<<8|(j[10808]<<16|j[10809]<<24);f=j[10802]|j[10803]<<8|(j[10804]<<16|j[10805]<<24);g[c|0]=f;g[c+1|0]=f>>>8;g[c+2|0]=f>>>16;g[c+3|0]=f>>>24;g[c+4|0]=h;g[c+5|0]=h>>>8;g[c+6|0]=h>>>16;g[c+7|0]=h>>>24;m=_j(d,k);if(g[k+11|0]>-1){break h}bp(i[k>>2]);break h}if((r(w>>>0>1?w:1)^30)>>>0<18){c=f;f=up(y,h,A,0);h=c+f|0;c=H+v|0;c=h>>>0>>0?c+1|0:c;y=h;h=m<<3;f=h>>31;m=h;h=f<<1|h>>>31;f=m<<1;m=y+f|0;c=c+h|0;c=m>>>0>>0?c+1|0:c;h=s+u<<3;f=h;s=f>>31;y=m;q=f;h=u<<3;f=h;m=f+p|0;h=(f>>31)+n|0;h=m>>>0>>0?h+1|0:h;f=m;m=q+f|0;h=h+s|0;h=m>>>0>>0?h+1|0:h;m=(c|0)>(h|0)?1:(c|0)>=(h|0)?y>>>0>=m>>>0:0}else{m=0}}g[k|0]=m;c=i[e+20>>2];if((c|0)<0?1:(c|0)<=0?l[e+16>>2]<=0:0){ca(e,i[e+4>>2],k,k+1|0)}p=0;j:{k:{switch(m|0){case 0:p=lg(a,b,A,k+32|0,e);break j;case 1:break k;default:break j}}p=mg(a,b,w,u,d,e)}a=i[k+32>>2];if(!a){break e}i[k+36>>2]=a;bp(a)}F=k+48|0;return p}Ho();x()}za(10859);x()}Ho();x()}za(10859);x()}function Si(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;a:{b:{c:{d:{e:{f:{g:{if(i[a+92>>2]==i[a+88>>2]){break g}d=i[a+52>>2];h:{if((d|0)!=i[a+56>>2]){i[d>>2]=b;i[a+52>>2]=d+4;break h}h=i[a+48>>2];g=d-h|0;f=g>>2;c=f+1|0;if(c>>>0>=1073741824){break a}e=g>>1;c=f>>>0<536870911?e>>>0>>0?c:e:1073741823;d=0;i:{if(!c){break i}if(c>>>0>=1073741824){break b}d=ho(c<<2)}e=d+(f<<2)|0;i[e>>2]=b;c=d+(c<<2)|0;e=e+4|0;if((g|0)>=1){hp(d,h,g)}i[a+56>>2]=c;i[a+52>>2]=e;i[a+48>>2]=d;if(!h){break h}bp(h)}i[a+84>>2]=0;e=-1;d=-1;j:{if((b|0)==-1){break j}f=i[a+4>>2];c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){e=i[i[f>>2]+(c<<2)>>2]}c=((b>>>0)%3|0?-1:2)+b|0;if((c|0)==-1){break j}d=i[i[f>>2]+(c<<2)>>2]}c=i[a+36>>2];h=c+(e>>>3&536870908)|0;g=i[h>>2];f=1<>2]=f|g;f=a+8|0;if((b|0)!=-1){c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0}else{c=-1}Ti(f,e,c);c=i[a+36>>2]}f=(d>>>3&536870908)+c|0;c=i[f>>2];e=1<>2]=c|e;c=a+8|0;e=-1;k:{if((b|0)==-1){break k}e=b+ -1|0;if((b>>>0)%3|0){break k}e=b+2|0}Ti(c,d,e)}e=-1;e=(b|0)!=-1?i[i[i[a+4>>2]>>2]+(b<<2)>>2]:e;f=i[a+36>>2]+(e>>>3&536870908)|0;c=i[f>>2];d=1<>2]=c|d;Ti(a+8|0,e,b)}c=i[a+84>>2];if((c|0)>2){break g}q=a+8|0;while(1){b=o(c,12)+a|0;e=b+52|0;d=i[e>>2];if((d|0)==i[b+48>>2]){c=c+1|0;if((c|0)!=3){continue}break g}d=d+ -4|0;b=i[d>>2];i[e>>2]=d;i[a+84>>2]=c;if((b|0)==-1){break g}e=i[a+24>>2];d=(b>>>0)/3|0;l:{if(i[e+(d>>>3&268435452)>>2]>>>d&1){break l}m:{while(1){g=(b>>>0)/3|0;d=(g>>>3&268435452)+e|0;i[d>>2]=i[d>>2]|1<>2]>>2]+(b<<2)>>2]:e;f=i[a+36>>2]+(e>>>3&536870908)|0;c=i[f>>2];d=1<>2]=c|d;Ti(q,e,b)}if((b|0)==-1){break m}h=i[a+4>>2];d=-1;e=-1;c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){e=i[i[h+12>>2]+(c<<2)>>2]}b=(b-o(g,3)|0?-1:2)+b|0;if((b|0)!=-1){d=i[i[h+12>>2]+(b<<2)>>2]}g=(d|0)==-1;f=(d>>>0)/3|0;c=(e>>>0)/3|0;n:{o:{p:{q:{b=(e|0)==-1;if(!b){b=b?-1:c;b=i[i[a+24>>2]+(b>>>3&536870908)>>2]&1<>2]+(b>>>3&536870908)>>2]>>>b&1){break r}b=0;c=i[i[h>>2]+(d<<2)>>2];if(!(i[i[a+36>>2]+(c>>>3&536870908)>>2]>>>c&1)){b=i[a+88>>2]+(c<<2)|0;c=i[b>>2];i[b>>2]=c+1;b=(c|0)<1?2:1}if(!(!p|(b|0)>i[a+84>>2])){b=d;e=i[a+24>>2];continue}c=o(b,12)+a|0;k=c+52|0;f=i[k>>2];m=c+56|0;s:{if((f|0)!=i[m>>2]){i[f>>2]=d;i[k>>2]=f+4;break s}h=c+48|0;n=i[h>>2];j=f-n|0;l=j>>2;g=l+1|0;if(g>>>0>=1073741824){break f}f=j>>1;f=l>>>0<536870911?f>>>0>>0?g:f:1073741823;c=0;t:{if(!f){break t}if(f>>>0>=1073741824){break e}c=ho(f<<2)}g=c+(l<<2)|0;i[g>>2]=d;f=c+(f<<2)|0;d=g+4|0;if((j|0)>=1){hp(c,n,j)}i[h>>2]=c;i[k>>2]=d;i[m>>2]=f;if(!n){break s}bp(n)}if(i[a+84>>2]<=(b|0)){break r}i[a+84>>2]=b}if(p){break m}b=-1;if((e|0)==-1){break n}}b=i[i[i[a+4>>2]>>2]+(e<<2)>>2]}d=0;if(!(i[i[a+36>>2]+(b>>>3&536870908)>>2]>>>b&1)){b=i[a+88>>2]+(b<<2)|0;d=i[b>>2];i[b>>2]=d+1;d=(d|0)<1?2:1}if((d|0)<=i[a+84>>2]){b=e;e=i[a+24>>2];continue}break}b=o(d,12)+a|0;l=b+52|0;c=i[l>>2];h=b+56|0;u:{if((c|0)!=i[h>>2]){i[c>>2]=e;i[l>>2]=c+4;break u}g=b+48|0;j=i[g>>2];k=c-j|0;m=k>>2;f=m+1|0;if(f>>>0>=1073741824){break d}c=k>>1;c=m>>>0<536870911?c>>>0>>0?f:c:1073741823;b=0;v:{if(!c){break v}if(c>>>0>=1073741824){break c}b=ho(c<<2)}f=b+(m<<2)|0;i[f>>2]=e;c=b+(c<<2)|0;e=f+4|0;if((k|0)>=1){hp(b,j,k)}i[g>>2]=b;i[l>>2]=e;i[h>>2]=c;if(!j){break u}bp(j)}c=i[a+84>>2];if((c|0)<=(d|0)){break l}i[a+84>>2]=d;c=d;break l}c=i[a+84>>2]}if((c|0)<3){continue}break}}return 1}Ho();x()}za(11708);x()}Ho();x()}za(11708);x()}za(11708);x()}Ho();x()}function tn(a,b,c,d,e,f,g,h,j){var k=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0;m=F-112|0;F=m;n=h;o=j&2147483647;l=c+ -1|0;k=b+ -1|0;if((k|0)!=-1){l=l+1|0}p=k;t=(k|0)==-1&(l|0)==-1;q=e&2147483647;k=q;s=d;l=(c|0)==(l|0)&p>>>0>>0|l>>>0>>0;p=d+l|0;if(p>>>0>>0){k=k+1|0}l=p+ -1|0;k=k+ -1|0;k=(l|0)!=-1?k+1|0:k;a:{b:{if(!((l|0)==-1&(k|0)==2147418111?t:k>>>0>2147418111)){l=g+ -1|0;k=f+ -1|0;if((k|0)!=-1){l=l+1|0}p=k;t=(k|0)!=-1|(l|0)!=-1;k=o;l=(g|0)==(l|0)&p>>>0>>0|l>>>0>>0;p=l+n|0;if(p>>>0>>0){k=k+1|0}l=p+ -1|0;k=k+ -1|0;k=(l|0)!=-1?k+1|0:k;if((l|0)==-1&(k|0)==2147418111?t:(k|0)==2147418111&(l|0)!=-1|k>>>0<2147418111){break b}}if(!(!s&(q|0)==2147418112?!(b|c):(q|0)==2147418112&s>>>0<0|q>>>0<2147418112)){h=d;j=e|32768;f=b;g=c;break a}if(!(!n&(o|0)==2147418112?!(f|g):(o|0)==2147418112&n>>>0<0|o>>>0<2147418112)){j=j|32768;break a}if(!(b|s|(q^2147418112|c))){k=d;d=!(b^f|d^h|(c^g|e^j^-2147483648));h=d?0:k;j=d?2147450880:e;f=d?0:b;g=d?0:c;break a}if(!(f|n|(o^2147418112|g))){break a}if(!(b|s|(c|q))){if(f|n|(g|o)){break a}f=b&f;g=c&g;h=d&h;j=e&j;break a}if(f|n|(g|o)){break b}f=b;g=c;h=d;j=e;break a}k=(n|0)==(s|0)&(o|0)==(q|0)?(c|0)==(g|0)&f>>>0>b>>>0|g>>>0>c>>>0:(o|0)==(q|0)&n>>>0>s>>>0|o>>>0>q>>>0;q=k?f:b;l=k?g:c;n=k?j:e;s=n;p=k?h:d;n=n&65535;e=k?e:j;u=e;h=k?d:h;t=e>>>16&32767;o=s>>>16&32767;if(!o){d=!(n|p);e=d<<6;j=r(d?q:p)+32|0;d=r(d?l:n);d=e+((d|0)==32?j:d)|0;sn(m+96|0,q,l,p,n,d+ -15|0);p=i[m+104>>2];n=i[m+108>>2];q=i[m+96>>2];o=16-d|0;l=i[m+100>>2]}f=k?b:f;g=k?c:g;j=u&65535;if(!t){b=!(h|j);c=b<<6;d=r(b?f:h)+32|0;b=r(b?g:j);b=c+((b|0)==32?d:b)|0;sn(m+80|0,f,g,h,j,b+ -15|0);t=16-b|0;h=i[m+88>>2];j=i[m+92>>2];g=i[m+84>>2];f=i[m+80>>2]}b=h;k=j<<3|b>>>29;h=b<<3|g>>>29;j=k|524288;b=p;d=n<<3|b>>>29;e=b<<3|l>>>29;p=d;n=s^u;b=f;k=g<<3|b>>>29;b=b<<3;c=k;f=o-t|0;d=b;c:{if(!f){break c}if(f>>>0>127){h=0;j=0;k=0;d=1;break c}sn(m- -64|0,b,c,h,j,128-f|0);vn(m+48|0,b,c,h,j,f);h=i[m+56>>2];j=i[m+60>>2];k=i[m+52>>2];d=i[m+48>>2]|((i[m+64>>2]|i[m+72>>2])!=0|(i[m+68>>2]|i[m+76>>2])!=0)}f=k;p=p|524288;b=q;k=l<<3|b>>>29;c=b<<3;d:{if((n|0)<-1?1:(n|0)<=-1){l=d;b=c-d|0;n=h;q=e-h|0;d=(f|0)==(k|0)&c>>>0>>0|k>>>0>>0;h=q-d|0;c=k-((c>>>0>>0)+f|0)|0;j=(p-((e>>>0>>0)+j|0)|0)-(q>>>0>>0)|0;if(!(b|h|(c|j))){f=0;g=0;h=0;j=0;break a}if(j>>>0>524287){break d}f=b;d=!(h|j);e=d<<6;g=r(d?b:h)+32|0;b=r(d?c:j);b=e+((b|0)==32?g:b)|0;b=b+ -12|0;sn(m+32|0,f,c,h,j,b);o=o-b|0;h=i[m+40>>2];j=i[m+44>>2];b=i[m+32>>2];c=i[m+36>>2];break d}k=f+k|0;b=d;c=b+c|0;if(c>>>0>>0){k=k+1|0}b=c;c=k;g=(f|0)==(k|0)&b>>>0>>0|k>>>0>>0;l=j+p|0;d=e+h|0;if(d>>>0>>0){l=l+1|0}f=d;e=g+d|0;d=l;h=e;j=h>>>0>>0?d+1|0:d;if(!(j&1048576)){break d}b=b&1|((c&1)<<31|b>>>1);c=h<<31|c>>>1;o=o+1|0;h=(j&1)<<31|h>>>1;j=j>>>1|0}l=0;n=s&-2147483648;if((o|0)>=32767){h=l;j=n|2147418112;f=0;g=0;break a}e=0;e:{if((o|0)>0){e=o;break e}sn(m+16|0,b,c,h,j,o+127|0);vn(m,b,c,h,j,1-o|0);b=i[m>>2]|((i[m+16>>2]|i[m+24>>2])!=0|(i[m+20>>2]|i[m+28>>2])!=0);c=i[m+4>>2];h=i[m+8>>2];j=i[m+12>>2]}f=h<<29;d=c>>>3|0;c=(c&7)<<29|b>>>3;d=d|f;k=d;b=b&7;f=b>>>0>4;g=f+c|0;if(g>>>0>>0){k=k+1|0}f=g;g=k;c=(d|0)==(k|0)&f>>>0>>0|k>>>0>>0;d=l|((j&7)<<29|h>>>3);k=n|j>>>3&65535|e<<16;c=d+c|0;if(c>>>0>>0){k=k+1|0}h=c;j=k;f:{if((b|0)==4){b=0;d=g+b|0;c=f&1;e=f+c|0;if(e>>>0>>0){d=d+1|0}f=e;g=d;b=(b|0)==(d|0)&f>>>0>>0|d>>>0>>0;c=b+h|0;if(c>>>0>>0){k=k+1|0}h=c;j=k;break f}if(!b){break a}}}i[a>>2]=f;i[a+4>>2]=g;i[a+8>>2]=h;i[a+12>>2]=j;F=m+112|0}function Ze(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,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;k=F-48|0;F=k;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;r=a+96|0;pf(r);d=i[a+40>>2];e=i[d>>2];f=i[d+4>>2];i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;a:{g=f-e|0;if((g|0)<1){break a}j=i[d>>2];if((j|0)!=i[d+4>>2]){s=a+8|0;t=a+44|0;d=e-f|0;d=((d|0)>(g|0)?d:g)>>>2|0;u=d>>>0>1?d:1;v=c+4|0;while(1){le(t,i[(o<<2)+j>>2],k+8|0);f=i[k+12>>2];g=f>>31;e=i[k+8>>2];l=e>>31;j=i[k+16>>2];h=j>>31;d=0;h=h^j+h;g=h+((g^f+g)+(l^e+l)|0)|0;if(g>>>0>>0){d=1}l=g;b:{if(!(d|g)){n=i[a+92>>2];g=n;break b}n=i[a+92>>2];h=n;q=h>>31;g=vp(up(h,q,e,e>>31),H,l,d);f=vp(up(h,q,f,f>>31),H,l,d);if((j|0)>=0){j=(((g|0)<0?g:0-g|0)+n|0)+((f|0)<0?f:0-f|0)|0;break b}d=g>>31;e=(d+g^d)-n|0;d=f>>31;j=e+(d+f^d)|0}c:{if((g|0)>=0){e=f+n|0;h=j+n|0;break c}d:{if((f|0)<=-1){d=j>>31;e=d+j^d;break d}e=i[a+84>>2]+((j|0)<0?j:0-j|0)|0}if((j|0)<=-1){d=f>>31;h=d+f^d;break c}h=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}e:{if(!(e|h)){d=i[a+84>>2];h=d;l=d;break e}d=i[a+84>>2];f:{g:{h:{i:{if(!e){if((d|0)==(h|0)){d=h;l=d;break e}l=0;if(d|h){break i}h=0;break e}if((d|0)!=(e|0)|h){break h}d=e;h=d;l=d;break e}if((n|0)<(h|0)){h=(n<<1)-h|0;break e}if(d){break f}break g}if((d|0)!=(e|0)){break f}}d=e;if((n|0)<=(h|0)){break f}h=(n<<1)-h|0;l=e;break e}if(!((d|0)!=(h|0)|(n|0)<=(e|0))){l=(n<<1)-e|0;break e}if(h){l=e;break e}h=0;if((n|0)>=(e|0)){l=e;break e}l=(n<<1)-e|0}e=0-j|0;i[k+16>>2]=e;q=0-f|0;i[k+12>>2]=q;i[k+8>>2]=0-g;j:{k:{l:{if((g|0)<=0){g=n-f|0;e=n-j|0;break l}g=j>>31;w=((j|0)<0?j:e)+d|0;e=(f|0)>0;g=e?g+j^g:w;if((j|0)>=1){e=f>>31;e=e+f^e;break l}e=(e?q:f)+d|0}if(!(e|g)){break k}m:{n:{o:{if(!g){if((d|0)==(e|0)){break k}f=0;if(d|e){break o}e=0;break j}if((d|0)==(g|0)?!e:0){break k}if((d|0)==(g|0)){break n}break m}if((n|0)<(e|0)){e=(n<<1)-e|0;break j}if(d){break m}}d=g;if((n|0)<=(e|0)){break m}e=(n<<1)-e|0;f=g;break j}if(!((d|0)!=(e|0)|(n|0)<=(g|0))){f=(n<<1)-g|0;break j}if(e){f=g;break j}e=0;if((n|0)>=(g|0)){f=g;break j}f=(n<<1)-g|0;break j}e=d;f=d}d=(o<<3)+b|0;g=i[d+4>>2];i[k+32>>2]=i[d>>2];i[k+36>>2]=g;i[k+28>>2]=h;i[k+24>>2]=l;ze(k+40|0,s,k+32|0,k+24|0);g=i[k+44>>2];j=i[k+40>>2];l=i[d+4>>2];i[k+32>>2]=i[d>>2];i[k+36>>2]=l;i[k+28>>2]=e;i[k+24>>2]=f;ze(k+40|0,s,k+32|0,k+24|0);f=i[k+44>>2];d=i[k+40>>2];e=i[a+92>>2];p:{if((e|0)<(j|0)){j=j-i[a+80>>2]|0;break p}if((j|0)>=(0-e|0)){break p}j=i[a+80>>2]+j|0}q:{if((e|0)<(g|0)){g=g-i[a+80>>2]|0;break q}if((g|0)>=(0-e|0)){break q}g=i[a+80>>2]+g|0}r:{if((e|0)<(d|0)){d=d-i[a+80>>2]|0;break r}if((d|0)>=(0-e|0)){break r}d=i[a+80>>2]+d|0}s:{if((e|0)<(f|0)){f=f-i[a+80>>2]|0;break s}if((f|0)>=(0-e|0)){break s}f=i[a+80>>2]+f|0}e=o<<1;l=g>>31;l=l+g^l;h=j>>31;h=h+j^h;n=h>>>0>(l^2147483647)>>>0?2147483647:l+h|0;l=f>>31;l=l+f^l;h=d>>31;h=h+d^h;t:{if(n>>>0<(h>>>0>(l^2147483647)>>>0?2147483647:l+h|0)>>>0){qf(r,0);d=(e<<2)+c|0;if((j|0)<=-1){j=i[a+80>>2]+j|0}i[d>>2]=j;if((g|0)>-1){f=g;break t}f=i[a+80>>2]+g|0;break t}qf(r,1);g=(e<<2)+c|0;if((d|0)<=-1){d=i[a+80>>2]+d|0}i[g>>2]=d;if((f|0)>-1){break t}f=i[a+80>>2]+f|0}i[(e<<2)+v>>2]=f;o=o+1|0;if((u|0)==(o|0)){break a}d=i[a+40>>2];j=i[d>>2];if(i[d+4>>2]-j>>2>>>0>o>>>0){continue}break}}Io();x()}F=k+48|0;return 1}function Pe(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,j=0,k=0,l=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;k=F-48|0;F=k;d=i[a+8>>2];if(d+ -2>>>0<=28){i[a+76>>2]=d;e=-1<>2]=d;i[a+80>>2]=e^-1;i[a+92>>2]=(d|0)/2;m[a+88>>2]=p(2)/p(d|0)}i[a+52>>2]=f;r=a+96|0;pf(r);d=i[a+40>>2];e=i[d>>2];f=i[d+4>>2];i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;a:{g=f-e|0;if((g|0)<1){break a}j=i[d>>2];if((j|0)!=i[d+4>>2]){s=a+8|0;t=a+44|0;d=e-f|0;d=((d|0)>(g|0)?d:g)>>>2|0;u=d>>>0>1?d:1;v=c+4|0;while(1){Yd(t,i[(o<<2)+j>>2],k+8|0);f=i[k+12>>2];g=f>>31;e=i[k+8>>2];l=e>>31;j=i[k+16>>2];h=j>>31;d=0;h=h^j+h;g=h+((g^f+g)+(l^e+l)|0)|0;if(g>>>0>>0){d=1}l=g;b:{if(!(d|g)){n=i[a+92>>2];g=n;break b}n=i[a+92>>2];h=n;q=h>>31;g=vp(up(h,q,e,e>>31),H,l,d);f=vp(up(h,q,f,f>>31),H,l,d);if((j|0)>=0){j=(((g|0)<0?g:0-g|0)+n|0)+((f|0)<0?f:0-f|0)|0;break b}d=g>>31;e=(d+g^d)-n|0;d=f>>31;j=e+(d+f^d)|0}c:{if((g|0)>=0){e=f+n|0;h=j+n|0;break c}d:{if((f|0)<=-1){d=j>>31;e=d+j^d;break d}e=i[a+84>>2]+((j|0)<0?j:0-j|0)|0}if((j|0)<=-1){d=f>>31;h=d+f^d;break c}h=i[a+84>>2]+((f|0)<0?f:0-f|0)|0}e:{if(!(e|h)){d=i[a+84>>2];h=d;l=d;break e}d=i[a+84>>2];f:{g:{h:{i:{if(!e){if((d|0)==(h|0)){d=h;l=d;break e}l=0;if(d|h){break i}h=0;break e}if((d|0)!=(e|0)|h){break h}d=e;h=d;l=d;break e}if((n|0)<(h|0)){h=(n<<1)-h|0;break e}if(d){break f}break g}if((d|0)!=(e|0)){break f}}d=e;if((n|0)<=(h|0)){break f}h=(n<<1)-h|0;l=e;break e}if(!((d|0)!=(h|0)|(n|0)<=(e|0))){l=(n<<1)-e|0;break e}if(h){l=e;break e}h=0;if((n|0)>=(e|0)){l=e;break e}l=(n<<1)-e|0}e=0-j|0;i[k+16>>2]=e;q=0-f|0;i[k+12>>2]=q;i[k+8>>2]=0-g;j:{k:{l:{if((g|0)<=0){g=n-f|0;e=n-j|0;break l}g=j>>31;w=((j|0)<0?j:e)+d|0;e=(f|0)>0;g=e?g+j^g:w;if((j|0)>=1){e=f>>31;e=e+f^e;break l}e=(e?q:f)+d|0}if(!(e|g)){break k}m:{n:{o:{if(!g){if((d|0)==(e|0)){break k}f=0;if(d|e){break o}e=0;break j}if((d|0)==(g|0)?!e:0){break k}if((d|0)==(g|0)){break n}break m}if((n|0)<(e|0)){e=(n<<1)-e|0;break j}if(d){break m}}d=g;if((n|0)<=(e|0)){break m}e=(n<<1)-e|0;f=g;break j}if(!((d|0)!=(e|0)|(n|0)<=(g|0))){f=(n<<1)-g|0;break j}if(e){f=g;break j}e=0;if((n|0)>=(g|0)){f=g;break j}f=(n<<1)-g|0;break j}e=d;f=d}d=(o<<3)+b|0;g=i[d+4>>2];i[k+32>>2]=i[d>>2];i[k+36>>2]=g;i[k+28>>2]=h;i[k+24>>2]=l;ze(k+40|0,s,k+32|0,k+24|0);g=i[k+44>>2];j=i[k+40>>2];l=i[d+4>>2];i[k+32>>2]=i[d>>2];i[k+36>>2]=l;i[k+28>>2]=e;i[k+24>>2]=f;ze(k+40|0,s,k+32|0,k+24|0);f=i[k+44>>2];d=i[k+40>>2];e=i[a+92>>2];p:{if((e|0)<(j|0)){j=j-i[a+80>>2]|0;break p}if((j|0)>=(0-e|0)){break p}j=i[a+80>>2]+j|0}q:{if((e|0)<(g|0)){g=g-i[a+80>>2]|0;break q}if((g|0)>=(0-e|0)){break q}g=i[a+80>>2]+g|0}r:{if((e|0)<(d|0)){d=d-i[a+80>>2]|0;break r}if((d|0)>=(0-e|0)){break r}d=i[a+80>>2]+d|0}s:{if((e|0)<(f|0)){f=f-i[a+80>>2]|0;break s}if((f|0)>=(0-e|0)){break s}f=i[a+80>>2]+f|0}e=o<<1;l=g>>31;l=l+g^l;h=j>>31;h=h+j^h;n=h>>>0>(l^2147483647)>>>0?2147483647:l+h|0;l=f>>31;l=l+f^l;h=d>>31;h=h+d^h;t:{if(n>>>0<(h>>>0>(l^2147483647)>>>0?2147483647:l+h|0)>>>0){qf(r,0);d=(e<<2)+c|0;if((j|0)<=-1){j=i[a+80>>2]+j|0}i[d>>2]=j;if((g|0)>-1){f=g;break t}f=i[a+80>>2]+g|0;break t}qf(r,1);g=(e<<2)+c|0;if((d|0)<=-1){d=i[a+80>>2]+d|0}i[g>>2]=d;if((f|0)>-1){break t}f=i[a+80>>2]+f|0}i[(e<<2)+v>>2]=f;o=o+1|0;if((u|0)==(o|0)){break a}d=i[a+40>>2];j=i[d>>2];if(i[d+4>>2]-j>>2>>>0>o>>>0){continue}break}}Io();x()}F=k+48|0;return 1}function le(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0;f=F-96|0;F=f;e=i[a+16>>2];g[f+92|0]=1;i[f+88>>2]=b;i[f+84>>2]=b;i[f+80>>2]=e;d=-1;d=(b|0)!=-1?i[i[e>>2]+(b<<2)>>2]:d;h=i[a+20>>2];e=i[h>>2];a:{b:{if(i[h+4>>2]-e>>2>>>0>d>>>0){e=i[i[a+8>>2]+(i[e+(d<<2)>>2]<<2)>>2];d=i[a+4>>2];if(!j[d+84|0]){e=i[i[d+68>>2]+(e<<2)>>2]}i[f+72>>2]=0;i[f+76>>2]=0;h=f- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;Qd(d,e,g[d+24|0],f+56|0);if((b|0)!=-1){d=b+1|0;h=(d>>>0)%3|0?d:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;n=f+48|0;o=f+40|0;while(1){e=h;d=m;c:{if(!i[a+28>>2]){break c}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break c}d=b+2|0}b=-1;b=(e|0)!=-1?i[i[i[a+16>>2]>>2]+(e<<2)>>2]:b;k=i[a+20>>2];e=i[k>>2];if(i[k+4>>2]-e>>2>>>0<=b>>>0){break b}e=i[i[a+8>>2]+(i[e+(b<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}i[n>>2]=0;i[n+4>>2]=0;i[o>>2]=0;i[o+4>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;Qd(b,e,g[b+24|0],f+32|0);b=-1;b=(d|0)!=-1?i[i[i[a+16>>2]>>2]+(d<<2)>>2]:b;e=i[a+20>>2];d=i[e>>2];if(i[e+4>>2]-d>>2>>>0<=b>>>0){break a}d=i[i[a+8>>2]+(i[d+(b<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}e=f+24|0;i[e>>2]=0;i[e+4>>2]=0;k=f+16|0;i[k>>2]=0;i[k+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Qd(b,d,g[b+24|0],f+8|0);d=i[f+8>>2];b=i[f+56>>2];s=d-b|0;y=i[f+60>>2];t=i[f+12>>2]-(y+(d>>>0>>0)|0)|0;z=i[f+40>>2];d=i[f+64>>2];D=z-d|0;A=i[f+68>>2];z=i[f+44>>2]-(A+(z>>>0>>0)|0)|0;B=up(s,t,D,z);C=l-B|0;u=u-(H+(l>>>0>>0)|0)|0;l=i[k>>2];B=l-d|0;k=i[k+4>>2]-((l>>>0>>0)+A|0)|0;l=i[f+32>>2];A=l-b|0;y=i[f+36>>2]-((l>>>0>>0)+y|0)|0;d=up(B,k,A,y);l=d+C|0;b=H+u|0;b=l>>>0>>0?b+1|0:b;u=b;E=p;w=s;G=t;b=i[f+48>>2];p=i[f+72>>2];d=p;t=b-d|0;s=i[f+76>>2];C=i[f+52>>2]-(s+(b>>>0>>0)|0)|0;w=up(w,G,t,C);d=E+w|0;b=H+q|0;b=d>>>0>>0?b+1|0:b;q=i[e>>2];w=q-p|0;e=i[e+4>>2]-((q>>>0

>>0)+s|0)|0;q=up(w,e,A,y);p=d-q|0;q=b-(H+(d>>>0>>0)|0)|0;b=up(B,k,t,C);d=r-b|0;b=v-(H+(r>>>0>>0)|0)|0;v=up(w,e,D,z);r=v+d|0;b=H+b|0;b=r>>>0>>0?b+1|0:b;v=b;me(f+80|0);b=i[f+88>>2];if((b|0)!=-1){continue}break}}d=v;b=d>>31;d=d>>31;h=b;b=v+b|0;m=d+r|0;if(m>>>0>>0){b=b+1|0}o=d^m;n=b^h;t=-1;e=2147483647;d=q;b=d>>31;d=d>>31;m=b;b=q+b|0;k=d+p|0;if(k>>>0>>0){b=b+1|0}d=d^k;b=b^m;h=b;m=d^-1;b=b^2147483647;d:{if(!i[a+28>>2]){if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break d}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}d=b;h=a;b=u;e=b>>31;o=b>>31;b=o+b|0;k=e+l|0;if(k>>>0>>0){b=b+1|0}e=e^k;m=b^o;n=e+h|0;b=n;h=m^2147483647;a=(h|0)==(d|0)&a>>>0>(e^-1)>>>0|d>>>0>h>>>0;d=a?0:0;b=a?-1:b;a=b;if((b|0)<536870912?1:(b|0)<=536870912?d>>>0<1:0){break d}b=(a|0)/536870912|0;a=b;b=b>>31;l=vp(l,u,a,b);p=vp(p,q,a,b);r=vp(r,v,a,b);break d}e:{if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break e}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}m=b;n=a;d=b;h=u;b=h>>31;h=h>>31;k=b;b=u+b|0;s=h+l|0;if(s>>>0>>0){b=b+1|0}h=h^s;b=b^k;o=b;b=b^2147483647;if((b|0)==(d|0)&n>>>0>(h^-1)>>>0|d>>>0>b>>>0){break e}b=m+o|0;d=a+h|0;if(d>>>0>>0){b=b+1|0}t=d;e=b;if(!b&d>>>0<536870913|b>>>0<0){break d}}a=(e&536870911)<<3|t>>>29;b=e>>>29|0;l=vp(l,u,a,b);p=vp(p,q,a,b);r=vp(r,v,a,b)}i[c+8>>2]=l;i[c+4>>2]=p;i[c>>2]=r;F=f+96|0;return}Io();x()}Io();x()}Io();x()}function Yd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0;f=F-96|0;F=f;d=i[a+16>>2];g[f+92|0]=1;i[f+88>>2]=b;i[f+84>>2]=b;i[f+80>>2]=d;h=i[a+20>>2];e=i[h>>2];a:{b:{d=i[i[d+28>>2]+(b<<2)>>2];if(i[h+4>>2]-e>>2>>>0>d>>>0){d=i[i[a+8>>2]+(i[e+(d<<2)>>2]<<2)>>2];e=i[a+4>>2];if(!j[e+84|0]){d=i[i[e+68>>2]+(d<<2)>>2]}i[f+72>>2]=0;i[f+76>>2]=0;h=f- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[f+56>>2]=0;i[f+60>>2]=0;Qd(e,d,g[e+24|0],f+56|0);if((b|0)!=-1){d=b+1|0;h=(d>>>0)%3|0?d:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;n=f+48|0;o=f+40|0;while(1){e=h;d=m;c:{if(!i[a+28>>2]){break c}d=b+1|0;e=(d>>>0)%3|0?d:b+ -2|0;d=b+ -1|0;if((b>>>0)%3|0){break c}d=b+2|0}k=i[a+20>>2];b=i[k>>2];e=i[i[i[a+16>>2]+28>>2]+(e<<2)>>2];if(i[k+4>>2]-b>>2>>>0<=e>>>0){break b}e=i[i[a+8>>2]+(i[b+(e<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}i[n>>2]=0;i[n+4>>2]=0;i[o>>2]=0;i[o+4>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;Qd(b,e,g[b+24|0],f+32|0);e=i[a+20>>2];b=i[e>>2];d=i[i[i[a+16>>2]+28>>2]+(d<<2)>>2];if(i[e+4>>2]-b>>2>>>0<=d>>>0){break a}e=i[i[a+8>>2]+(i[b+(d<<2)>>2]<<2)>>2];b=i[a+4>>2];if(!j[b+84|0]){e=i[i[b+68>>2]+(e<<2)>>2]}k=f+24|0;d=k;i[d>>2]=0;i[d+4>>2]=0;r=f+16|0;d=r;i[d>>2]=0;i[d+4>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;Qd(b,e,g[b+24|0],f+8|0);d=i[f+8>>2];b=i[f+56>>2];t=d-b|0;y=i[f+60>>2];e=i[f+12>>2]-(y+(d>>>0>>0)|0)|0;z=i[f+40>>2];d=i[f+64>>2];D=z-d|0;A=i[f+68>>2];z=i[f+44>>2]-(A+(z>>>0>>0)|0)|0;B=up(t,e,D,z);C=l-B|0;u=u-(H+(l>>>0>>0)|0)|0;l=i[r>>2];B=l-d|0;r=i[r+4>>2]-((l>>>0>>0)+A|0)|0;l=i[f+32>>2];A=l-b|0;y=i[f+36>>2]-((l>>>0>>0)+y|0)|0;d=up(B,r,A,y);l=d+C|0;b=H+u|0;b=l>>>0>>0?b+1|0:b;u=b;E=p;w=t;G=e;b=i[f+48>>2];p=i[f+72>>2];d=p;e=b-d|0;t=i[f+76>>2];C=i[f+52>>2]-(t+(b>>>0>>0)|0)|0;w=up(w,G,e,C);d=E+w|0;b=H+q|0;b=d>>>0>>0?b+1|0:b;q=i[k>>2];w=q-p|0;k=i[k+4>>2]-((q>>>0

>>0)+t|0)|0;q=up(w,k,A,y);p=d-q|0;q=b-(H+(d>>>0>>0)|0)|0;b=up(B,r,e,C);d=s-b|0;b=v-(H+(s>>>0>>0)|0)|0;v=up(w,k,D,z);s=v+d|0;b=H+b|0;b=s>>>0>>0?b+1|0:b;v=b;$d(f+80|0);b=i[f+88>>2];if((b|0)!=-1){continue}break}}d=v;b=d>>31;d=d>>31;h=b;b=v+b|0;m=d+s|0;if(m>>>0>>0){b=b+1|0}o=d^m;n=b^h;r=-1;e=2147483647;d=q;b=d>>31;d=d>>31;m=b;b=q+b|0;k=d+p|0;if(k>>>0>>0){b=b+1|0}d=d^k;b=b^m;h=b;m=d^-1;b=b^2147483647;d:{if(!i[a+28>>2]){if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break d}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}d=b;h=a;b=u;e=b>>31;o=b>>31;b=o+b|0;k=e+l|0;if(k>>>0>>0){b=b+1|0}e=e^k;m=b^o;n=e+h|0;b=n;h=m^2147483647;a=(h|0)==(d|0)&a>>>0>(e^-1)>>>0|d>>>0>h>>>0;d=a?0:0;b=a?-1:b;a=b;if((b|0)<536870912?1:(b|0)<=536870912?d>>>0<1:0){break d}b=(a|0)/536870912|0;a=b;b=b>>31;l=vp(l,u,a,b);p=vp(p,q,a,b);s=vp(s,v,a,b);break d}e:{if((b|0)==(n|0)&o>>>0>m>>>0|n>>>0>b>>>0){break e}b=h+n|0;a=d+o|0;if(a>>>0>>0){b=b+1|0}m=b;n=a;d=b;h=u;b=h>>31;h=h>>31;k=b;b=u+b|0;t=h+l|0;if(t>>>0>>0){b=b+1|0}h=h^t;b=b^k;o=b;b=b^2147483647;if((b|0)==(d|0)&n>>>0>(h^-1)>>>0|d>>>0>b>>>0){break e}b=m+o|0;d=a+h|0;if(d>>>0>>0){b=b+1|0}r=d;e=b;if(!b&d>>>0<536870913|b>>>0<0){break d}}a=(e&536870911)<<3|r>>>29;b=e>>>29|0;l=vp(l,u,a,b);p=vp(p,q,a,b);s=vp(s,v,a,b)}i[c+8>>2]=l;i[c+4>>2]=p;i[c>>2]=s;F=f+96|0;return}Io();x()}Io();x()}Io();x()}function bm(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;i[a+56>>2]=i[a+52>>2];i[a+44>>2]=i[a+40>>2];a:{b:{c:{g=i[a+64>>2];d=i[g+24>>2];if((d|0)!=i[g+28>>2]){r=a+40|0;s=a+52|0;while(1){g=e;m=i[(q<<2)+d>>2];d:{if((m|0)==-1){break d}if((m|0)<0){d=-1}else{e=(m>>>0)/3|0;d=i[(i[b+96>>2]+o(e,12)|0)+(m-o(e,3)<<2)>>2]}d=j[c+84|0]?d:i[i[c+68>>2]+(d<<2)>>2];e=i[a+56>>2];f=i[a+60>>2];e:{if(e>>>0>>0){i[e>>2]=d;i[a+56>>2]=e+4;break e}n=i[s>>2];p=e-n|0;k=p>>2;l=k+1|0;if(l>>>0>=1073741824){break c}h=f-n|0;f=h>>1;f=h>>2>>>0<536870911?f>>>0>>0?l:f:1073741823;e=0;f:{if(!f){break f}if(f>>>0>=1073741824){break a}e=ho(f<<2)}h=e+(k<<2)|0;i[h>>2]=d;f=e+(f<<2)|0;d=h+4|0;if((p|0)>=1){hp(e,n,p)}i[a+60>>2]=f;i[a+56>>2]=d;i[a+52>>2]=e;if(!n){break e}bp(n)}g:{if(!(i[i[a+12>>2]+(q>>>3&536870908)>>2]>>>q&1)){break g}e=m+1|0;e=(e>>>0)%3|0?e:m+ -2|0;if((e|0)==-1|i[i[a>>2]+(e>>>3&536870908)>>2]>>>e&1){break g}d=i[i[i[a+64>>2]+12>>2]+(e<<2)>>2];if((d|0)==-1){break g}e=d+1|0;d=(e>>>0)%3|0?e:d+ -2|0;if((d|0)==-1){break g}while(1){e=d+1|0;m=d;e=(e>>>0)%3|0?e:d+ -2|0;if((e|0)==-1|i[i[a>>2]+(e>>>3&536870908)>>2]>>>e&1){break g}d=i[i[i[a+64>>2]+12>>2]+(e<<2)>>2];if((d|0)==-1){break g}e=d+1|0;d=(e>>>0)%3|0?e:d+ -2|0;if((d|0)!=-1){continue}break}}i[i[a+28>>2]+(m<<2)>>2]=g;e=i[a+44>>2];h:{if((e|0)!=i[a+48>>2]){i[e>>2]=m;i[a+44>>2]=e+4;break h}l=i[r>>2];k=e-l|0;h=k>>2;f=h+1|0;if(f>>>0>=1073741824){break b}d=k>>1;f=h>>>0<536870911?d>>>0>>0?f:d:1073741823;e=0;i:{if(!f){break i}if(f>>>0>=1073741824){break a}e=ho(f<<2)}d=e+(h<<2)|0;i[d>>2]=m;f=e+(f<<2)|0;d=d+4|0;if((k|0)>=1){hp(e,l,k)}i[a+48>>2]=f;i[a+44>>2]=d;i[a+40>>2]=e;if(!l){break h}bp(l)}e=g+1|0;d=((m>>>0)%3|0?-1:2)+m|0;if((d|0)==-1){break d}d=i[i[i[a+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break d}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)==-1|(d|0)==(m|0)){break d}while(1){f=d+1|0;f=(f>>>0)%3|0?f:d+ -2|0;if(i[i[a>>2]+(f>>>3&536870908)>>2]>>>f&1){g=(d|0)<0?-1:i[(i[b+96>>2]+o((d>>>0)/3|0,12)|0)+((d>>>0)%3<<2)>>2];g=j[c+84|0]?g:i[i[c+68>>2]+(g<<2)>>2];f=i[a+56>>2];h=i[a+60>>2];j:{if(f>>>0>>0){i[f>>2]=g;i[a+56>>2]=f+4;break j}l=i[s>>2];n=f-l|0;f=n>>2;p=f+1|0;if(p>>>0>=1073741824){break c}t=f<<2;k=h-l|0;h=k>>1;h=k>>2>>>0<536870911?h>>>0

>>0?p:h:1073741823;f=0;k:{if(!h){break k}if(h>>>0>=1073741824){break a}f=ho(h<<2)}k=t+f|0;i[k>>2]=g;h=f+(h<<2)|0;g=k+4|0;if((n|0)>=1){hp(f,l,n)}i[a+60>>2]=h;i[a+56>>2]=g;i[a+52>>2]=f;if(!l){break j}bp(l)}f=e+1|0;g=i[a+44>>2];l:{if((g|0)!=i[a+48>>2]){i[g>>2]=d;i[a+44>>2]=g+4;break l}n=i[r>>2];p=g-n|0;l=p>>2;k=l+1|0;if(k>>>0>=1073741824){break b}h=p>>1;k=l>>>0<536870911?h>>>0>>0?k:h:1073741823;g=0;m:{if(!k){break m}if(k>>>0>=1073741824){break a}g=ho(k<<2)}h=g+(l<<2)|0;i[h>>2]=d;k=g+(k<<2)|0;h=h+4|0;if((p|0)>=1){hp(g,n,p)}i[a+48>>2]=k;i[a+44>>2]=h;i[a+40>>2]=g;if(!n){break l}bp(n)}g=e;e=f}i[i[a+28>>2]+(d<<2)>>2]=g;d=((d>>>0)%3|0?-1:2)+d|0;if((d|0)==-1){break d}d=i[i[i[a+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break d}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)==-1){break d}if((d|0)!=(m|0)){continue}break}}g=i[a+64>>2];d=i[g+24>>2];q=q+1|0;if(q>>>0>2]-d>>2>>>0){continue}break}}return}Ho();x()}Ho();x()}za(16720);x()}function yi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;j=F-32|0;F=j;c=i[a+16>>2];i[a+20>>2]=c;a:{if((c|0)!=i[a+24>>2]){i[c>>2]=b;b=c+4|0;i[a+20>>2]=b;e=c;break a}e=ho(4);i[e>>2]=b;b=e+4|0;i[a+24>>2]=b;i[a+20>>2]=b;i[a+16>>2]=e;if(!c){break a}bp(c);b=i[a+20>>2];e=i[a+16>>2]}c=i[a+8>>2];q=i[c+100>>2]-i[c+96>>2]|0;c=(q|0)/12|0;if((b|0)!=(e|0)){t=a+16|0;u=(c|0)>1?c:1;v=a+120|0;m=a+200|0;w=a+72|0;while(1){b:{c:{c=b+ -4|0;b=i[c>>2];if((b|0)==-1){break c}e=i[a+28>>2];d=(b>>>0)/3|0;if(i[e+(d>>>3&268435452)>>2]>>>d&1){break c}h=0;if((q|0)<=0){break b}d:{e:{f:{while(1){g:{i[a+164>>2]=i[a+164>>2]+1;k=(b>>>0)/3|0;n=(b|0)==-1;l=n?-1:k;c=(l>>>3&536870908)+e|0;i[c>>2]=i[c>>2]|1<>2];h:{if((c|0)!=i[a+80>>2]){i[c>>2]=b;i[a+76>>2]=c+4;break h}e=i[w>>2];d=c-e|0;g=d>>2;f=g+1|0;if(f>>>0>=1073741824){break g}p=d>>1;f=g>>>0<536870911?p>>>0>>0?f:p:1073741823;c=0;i:{if(!f){break i}if(f>>>0>=1073741824){break f}c=ho(f<<2)}g=c+(g<<2)|0;i[g>>2]=b;f=c+(f<<2)|0;g=g+4|0;if((d|0)>=1){hp(c,e,d)}i[a+80>>2]=f;i[a+76>>2]=g;i[a+72>>2]=c;if(!e){break h}bp(e)}i[a+320>>2]=b;c=-1;c=(b|0)!=-1?i[i[i[a+12>>2]>>2]+(b<<2)>>2]:c;p=c<<2;g=i[p+i[a+152>>2]>>2];j:{k:{e=i[a+84>>2]+(c>>>3&536870908)|0;d=i[e>>2];c=1<>2]=c|d;if((g|0)!=-1){break k}Ci(m,0);c=-1;if((b|0)==-1){break j}e=b+1|0;b=(e>>>0)%3|0?e:b+ -2|0;if((b|0)==-1){break j}c=i[i[i[a+12>>2]+12>>2]+(b<<2)>>2];break j}l:{m:{n:{if(n){break n}e=-1;c=-1;d=b+1|0;f=(d>>>0)%3|0?d:b+ -2|0;if((f|0)!=-1){c=i[i[i[a+12>>2]+12>>2]+(f<<2)>>2]}d=(b-o(k,3)|0?-1:2)+b|0;if((d|0)!=-1){e=i[i[i[a+12>>2]+12>>2]+(d<<2)>>2]}k=(e|0)==-1;n=k?-1:(e>>>0)/3|0;y=(c>>>0)/3|0;o:{if((f|0)==-1){break o}r=i[i[a+12>>2]+12>>2];f=i[r+(f<<2)>>2];if((f|0)==-1){break o}s=i[a+28>>2];f=(f>>>0)/3|0;if(!(i[s+(f>>>3&268435452)>>2]>>>f&1)){break m}}b=(c|0)==-1;if(!b){oi(a,i[a+164>>2],1,b?-1:y)}p:{if((d|0)==-1){break p}b=i[i[i[a+12>>2]+12>>2]+(d<<2)>>2];if((b|0)==-1){break p}b=(b>>>0)/3|0;if(!(i[i[a+28>>2]+(b>>>3&268435452)>>2]>>>b&1)){break l}}if(k){break n}oi(a,i[a+164>>2],0,n)}Ci(m,7);i[a+20>>2]=i[a+20>>2]+ -4;break b}q:{r:{if((d|0)==-1){break r}d=i[(d<<2)+r>>2];if((d|0)==-1){break r}d=(d>>>0)/3|0;if(!(i[(d>>>3&268435452)+s>>2]>>>d&1)){break q}}if(!k){oi(a,i[a+164>>2],0,n)}Ci(m,3);break j}Ci(m,1);i[a+168>>2]=i[a+168>>2]+1;s:{if((g|0)==-1){break s}d=i[p+i[a+152>>2]>>2];if(i[i[a+140>>2]+(d>>>3&536870908)>>2]>>>d&1){break s}hi(a,b,0)}b=i[a+164>>2];i[j+4>>2]=l;i[j+16>>2]=j+4;pi(j+24|0,v,j+4|0,j+16|0);i[i[j+24>>2]+12>>2]=b;b=i[a+20>>2];i[b+ -4>>2]=e;if((b|0)!=i[a+24>>2]){i[b>>2]=c;i[a+20>>2]=b+4;break b}e=i[t>>2];d=b-e|0;h=d>>2;f=h+1|0;if(f>>>0>=1073741824){break e}l=d>>1;f=h>>>0<536870911?l>>>0>>0?f:l:1073741823;b=0;t:{if(!f){break t}if(f>>>0>=1073741824){break d}b=ho(f<<2)}h=b+(h<<2)|0;i[h>>2]=c;c=b+(f<<2)|0;f=h+4|0;if((d|0)>=1){hp(b,e,d)}i[a+24>>2]=c;i[a+20>>2]=f;i[a+16>>2]=b;if(!e){break b}bp(e);break b}Ci(m,5);c=e}h=h+1|0;if((u|0)==(h|0)){break b}e=i[a+28>>2];b=c;continue}break}Ho();x()}za(11708);x()}Ho();x()}za(11708);x()}i[a+20>>2]=c}b=i[a+20>>2];if((b|0)!=i[a+16>>2]){continue}break}}F=j+32|0;return 1}function ae(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,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;i[a+8>>2]=e;g=a+32|0;l=i[g>>2];f=i[a+36>>2]-l>>2;a:{if(f>>>0>>0){Bd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=l+(e<<2)}b:{if(!d){break b}h=1;g=i[b>>2];c:{if((d|0)<=1){f=g;break c}f=g;while(1){l=i[(h<<2)+b>>2];j=(l|0)<(f|0);f=j?l:f;g=j?g:(l|0)>(g|0)?l:g;h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+16>>2]=g;i[a+12>>2]=f;d=(g>>31)-((f>>31)+(g>>>0>>0)|0)|0;f=g-f|0;if(!d&f>>>0>2147483646|d>>>0>0){break b}d=f+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}d=(e&1073741823)!=(e|0)?-1:e<<2;l=ip(ho(d),0,d);d=i[a+56>>2];s=i[d>>2];d=i[d+4>>2]-s|0;if((d|0)>=5){t=i[a+48>>2];v=i[a+52>>2];u=d>>2;j=u;while(1){q=j;d:{e:{j=j+ -1|0;if(u>>>0>j>>>0){k=o(e,j);d=i[(j<<2)+s>>2];if((d|0)==-1){break e}d=i[i[t+12>>2]+(d<<2)>>2];if((d|0)==-1){break e}h=-1;g=i[v>>2];f=i[t>>2];p=i[g+(i[f+(d<<2)>>2]<<2)>>2];m=d+1|0;m=(m>>>0)%3|0?m:d+ -2|0;if((m|0)!=-1){m=i[f+(m<<2)>>2]}else{m=-1}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)!=-1){h=i[f+(d<<2)>>2]}if((p|0)>=(j|0)){break e}d=i[(m<<2)+g>>2];if((d|0)>=(j|0)){break e}f=i[g+(h<<2)>>2];if((f|0)>=(j|0)){break e}if((e|0)>=1){f=o(e,f);d=o(d,e);h=o(e,p);g=0;while(1){i[(g<<2)+l>>2]=(i[(f+g<<2)+b>>2]+i[(d+g<<2)+b>>2]|0)-i[(g+h<<2)+b>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}f=i[a+8>>2];if((f|0)<1){break d}d=k<<2;m=d+c|0;r=b+d|0;d=l;h=0;while(1){g=0;f:{if((f|0)<=0){f=i[a+32>>2];break f}while(1){k=g<<2;p=i[k+d>>2];n=i[a+16>>2];g:{if((p|0)>(n|0)){f=i[a+32>>2];i[k+f>>2]=n;break g}f=i[a+32>>2];k=k+f|0;n=i[a+12>>2];if((p|0)<(n|0)){i[k>>2]=n;break g}i[k>>2]=p}g=g+1|0;if((g|0)>2]){continue}break}}g=h<<2;d=g+m|0;g=i[g+r>>2]-i[f+g>>2]|0;i[d>>2]=g;h:{if((g|0)>2]){g=g+i[a+20>>2]|0}else{if((g|0)<=i[a+24>>2]){break h}g=g-i[a+20>>2]|0}i[d>>2]=g}d=f;h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}break d}Io();x()}f=i[a+8>>2];if((f|0)<1){break d}d=k<<2;m=d+c|0;r=b+d|0;d=(o(q+ -2|0,e)<<2)+b|0;h=0;while(1){g=0;i:{if((f|0)<=0){f=i[a+32>>2];break i}while(1){k=g<<2;p=i[k+d>>2];n=i[a+16>>2];j:{if((p|0)>(n|0)){f=i[a+32>>2];i[k+f>>2]=n;break j}f=i[a+32>>2];k=k+f|0;n=i[a+12>>2];if((p|0)<(n|0)){i[k>>2]=n;break j}i[k>>2]=p}g=g+1|0;if((g|0)>2]){continue}break}}g=h<<2;d=g+m|0;g=i[g+r>>2]-i[f+g>>2]|0;i[d>>2]=g;k:{if((g|0)>2]){g=g+i[a+20>>2]|0}else{if((g|0)<=i[a+24>>2]){break k}g=g-i[a+20>>2]|0}i[d>>2]=g}d=f;h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}}if((q|0)>2){continue}break}}if((e|0)>=1){ip(l,0,e<<2)}f=i[a+8>>2];if((f|0)>=1){d=l;h=0;while(1){g=0;l:{if((f|0)<=0){f=i[a+32>>2];break l}while(1){e=g<<2;j=i[e+d>>2];q=i[a+16>>2];m:{if((j|0)>(q|0)){f=i[a+32>>2];i[e+f>>2]=q;break m}f=i[a+32>>2];e=e+f|0;q=i[a+12>>2];if((j|0)<(q|0)){i[e>>2]=q;break m}i[e>>2]=j}g=g+1|0;if((g|0)>2]){continue}break}}e=h<<2;d=e+c|0;e=i[b+e>>2]-i[e+f>>2]|0;i[d>>2]=e;n:{if((e|0)>2]){e=e+i[a+20>>2]|0}else{if((e|0)<=i[a+24>>2]){break n}e=e-i[a+20>>2]|0}i[d>>2]=e}d=f;h=h+1|0;f=i[a+8>>2];if((h|0)<(f|0)){continue}break}}bp(l);return 1}function Ad(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,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;i[a+8>>2]=e;g=a+32|0;l=i[g>>2];f=i[a+36>>2]-l>>2;a:{if(f>>>0>>0){Bd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=l+(e<<2)}b:{if(!d){break b}l=1;g=i[b>>2];c:{if((d|0)<=1){f=g;break c}f=g;while(1){h=i[(l<<2)+b>>2];n=(h|0)<(f|0);f=n?h:f;g=n?g:(h|0)>(g|0)?h:g;l=l+1|0;if((l|0)!=(d|0)){continue}break}}i[a+16>>2]=g;i[a+12>>2]=f;d=(g>>31)-((f>>31)+(g>>>0>>0)|0)|0;f=g-f|0;if(!d&f>>>0>2147483646|d>>>0>0){break b}d=f+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}d=(e&1073741823)!=(e|0)?-1:e<<2;l=ip(ho(d),0,d);d=i[a+56>>2];t=i[d>>2];d=i[d+4>>2]-t|0;if((d|0)>=5){q=i[a+48>>2];v=i[a+52>>2];u=d>>2;h=u;while(1){n=h;d:{e:{h=h+ -1|0;if(u>>>0>h>>>0){k=o(e,h);d=i[(h<<2)+t>>2];if((d|0)==-1|i[i[q>>2]+(d>>>3&536870908)>>2]>>>d&1){break e}d=i[i[i[q+64>>2]+12>>2]+(d<<2)>>2];if((d|0)==-1){break e}g=i[v>>2];f=i[q+28>>2];j=i[g+(i[f+(d<<2)>>2]<<2)>>2];if((j|0)>=(h|0)){break e}m=d+1|0;m=i[g+(i[f+(((m>>>0)%3|0?m:d+ -2|0)<<2)>>2]<<2)>>2];if((m|0)>=(h|0)){break e}d=i[g+(i[f+(d+((d>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((d|0)>=(h|0)){break e}if((e|0)>=1){d=o(d,e);f=o(e,m);j=o(e,j);g=0;while(1){i[(g<<2)+l>>2]=(i[(d+g<<2)+b>>2]+i[(f+g<<2)+b>>2]|0)-i[(g+j<<2)+b>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}f=i[a+8>>2];if((f|0)<1){break d}d=k<<2;r=d+c|0;s=b+d|0;d=l;k=0;while(1){g=0;f:{if((f|0)<=0){f=i[a+32>>2];break f}while(1){j=g<<2;m=i[j+d>>2];p=i[a+16>>2];g:{if((m|0)>(p|0)){f=i[a+32>>2];i[j+f>>2]=p;break g}f=i[a+32>>2];j=j+f|0;p=i[a+12>>2];if((m|0)<(p|0)){i[j>>2]=p;break g}i[j>>2]=m}g=g+1|0;if((g|0)>2]){continue}break}}g=k<<2;d=g+r|0;g=i[g+s>>2]-i[f+g>>2]|0;i[d>>2]=g;h:{if((g|0)>2]){g=g+i[a+20>>2]|0}else{if((g|0)<=i[a+24>>2]){break h}g=g-i[a+20>>2]|0}i[d>>2]=g}d=f;k=k+1|0;f=i[a+8>>2];if((k|0)<(f|0)){continue}break}break d}Io();x()}f=i[a+8>>2];if((f|0)<1){break d}d=k<<2;r=d+c|0;s=b+d|0;d=(o(n+ -2|0,e)<<2)+b|0;k=0;while(1){g=0;i:{if((f|0)<=0){f=i[a+32>>2];break i}while(1){j=g<<2;m=i[j+d>>2];p=i[a+16>>2];j:{if((m|0)>(p|0)){f=i[a+32>>2];i[j+f>>2]=p;break j}f=i[a+32>>2];j=j+f|0;p=i[a+12>>2];if((m|0)<(p|0)){i[j>>2]=p;break j}i[j>>2]=m}g=g+1|0;if((g|0)>2]){continue}break}}g=k<<2;d=g+r|0;g=i[g+s>>2]-i[f+g>>2]|0;i[d>>2]=g;k:{if((g|0)>2]){g=g+i[a+20>>2]|0}else{if((g|0)<=i[a+24>>2]){break k}g=g-i[a+20>>2]|0}i[d>>2]=g}d=f;k=k+1|0;f=i[a+8>>2];if((k|0)<(f|0)){continue}break}}if((n|0)>2){continue}break}}if((e|0)>=1){ip(l,0,e<<2)}f=i[a+8>>2];if((f|0)>=1){d=l;k=0;while(1){g=0;l:{if((f|0)<=0){f=i[a+32>>2];break l}while(1){e=g<<2;h=i[e+d>>2];n=i[a+16>>2];m:{if((h|0)>(n|0)){f=i[a+32>>2];i[e+f>>2]=n;break m}f=i[a+32>>2];e=e+f|0;n=i[a+12>>2];if((h|0)<(n|0)){i[e>>2]=n;break m}i[e>>2]=h}g=g+1|0;if((g|0)>2]){continue}break}}e=k<<2;d=e+c|0;e=i[b+e>>2]-i[e+f>>2]|0;i[d>>2]=e;n:{if((e|0)>2]){e=e+i[a+20>>2]|0}else{if((e|0)<=i[a+24>>2]){break n}e=e-i[a+20>>2]|0}i[d>>2]=e}d=f;k=k+1|0;f=i[a+8>>2];if((k|0)<(f|0)){continue}break}}bp(l);return 1}function bp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;a:{if(!a){break a}d=a+ -8|0;b=i[a+ -4>>2];a=b&-8;f=d+a|0;b:{if(b&1){break b}if(!(b&3)){break a}b=i[d>>2];d=d-b|0;if(d>>>0>>0<=255){e=i[d+8>>2];b=b>>>3|0;c=i[d+12>>2];if((c|0)==(e|0)){j=19292,k=i[4823]&yp(-2,b),i[j>>2]=k;break b}i[e+12>>2]=c;i[c+8>>2]=e;break b}h=i[d+24>>2];b=i[d+12>>2];c:{if((b|0)!=(d|0)){c=i[d+8>>2];i[c+12>>2]=b;i[b+8>>2]=c;break c}d:{e=d+20|0;c=i[e>>2];if(c){break d}e=d+16|0;c=i[e>>2];if(c){break d}b=0;break c}while(1){g=e;b=c;e=b+20|0;c=i[e>>2];if(c){continue}e=b+16|0;c=i[b+16>>2];if(c){continue}break}i[g>>2]=0}if(!h){break b}e=i[d+28>>2];c=(e<<2)+19596|0;e:{if(i[c>>2]==(d|0)){i[c>>2]=b;if(b){break e}j=19296,k=i[4824]&yp(-2,e),i[j>>2]=k;break b}i[h+(i[h+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break b}}i[b+24>>2]=h;c=i[d+16>>2];if(c){i[b+16>>2]=c;i[c+24>>2]=b}c=i[d+20>>2];if(!c){break b}i[b+20>>2]=c;i[c+24>>2]=b;break b}b=i[f+4>>2];if((b&3)!=3){break b}i[4825]=a;i[f+4>>2]=b&-2;i[d+4>>2]=a|1;i[a+d>>2]=a;return}if(f>>>0<=d>>>0){break a}b=i[f+4>>2];if(!(b&1)){break a}f:{if(!(b&2)){if((f|0)==i[4829]){i[4829]=d;a=i[4826]+a|0;i[4826]=a;i[d+4>>2]=a|1;if(i[4828]!=(d|0)){break a}i[4825]=0;i[4828]=0;return}if((f|0)==i[4828]){i[4828]=d;a=i[4825]+a|0;i[4825]=a;i[d+4>>2]=a|1;i[a+d>>2]=a;return}a=(b&-8)+a|0;g:{if(b>>>0<=255){c=i[f+8>>2];b=b>>>3|0;e=i[f+12>>2];if((c|0)==(e|0)){j=19292,k=i[4823]&yp(-2,b),i[j>>2]=k;break g}i[c+12>>2]=e;i[e+8>>2]=c;break g}h=i[f+24>>2];b=i[f+12>>2];h:{if((f|0)!=(b|0)){c=i[f+8>>2];i[c+12>>2]=b;i[b+8>>2]=c;break h}i:{e=f+20|0;c=i[e>>2];if(c){break i}e=f+16|0;c=i[e>>2];if(c){break i}b=0;break h}while(1){g=e;b=c;e=b+20|0;c=i[e>>2];if(c){continue}e=b+16|0;c=i[b+16>>2];if(c){continue}break}i[g>>2]=0}if(!h){break g}e=i[f+28>>2];c=(e<<2)+19596|0;j:{if((f|0)==i[c>>2]){i[c>>2]=b;if(b){break j}j=19296,k=i[4824]&yp(-2,e),i[j>>2]=k;break g}i[h+((f|0)==i[h+16>>2]?16:20)>>2]=b;if(!b){break g}}i[b+24>>2]=h;c=i[f+16>>2];if(c){i[b+16>>2]=c;i[c+24>>2]=b}c=i[f+20>>2];if(!c){break g}i[b+20>>2]=c;i[c+24>>2]=b}i[d+4>>2]=a|1;i[a+d>>2]=a;if(i[4828]!=(d|0)){break f}i[4825]=a;return}i[f+4>>2]=b&-2;i[d+4>>2]=a|1;i[a+d>>2]=a}if(a>>>0<=255){a=a>>>3|0;b=(a<<3)+19332|0;c=i[4823];a=1<>2]}i[b+8>>2]=d;i[a+12>>2]=d;i[d+12>>2]=b;i[d+8>>2]=a;return}e=31;i[d+16>>2]=0;i[d+20>>2]=0;if(a>>>0<=16777215){b=a>>>8|0;g=b+1048320>>>16&8;b=b<>>16&4;b=b<>>16&2;b=(b<>>15|0)-(c|(e|g))|0;e=(b<<1|a>>>b+21&1)+28|0}i[d+28>>2]=e;g=(e<<2)+19596|0;l:{m:{c=i[4824];b=1<>2]=d;i[d+24>>2]=g;break n}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=i[g>>2];while(1){c=b;if((i[b+4>>2]&-8)==(a|0)){break m}b=e>>>29|0;e=e<<1;g=(c+(b&4)|0)+16|0;b=i[g>>2];if(b){continue}break}i[g>>2]=d;i[d+24>>2]=c}i[d+12>>2]=d;i[d+8>>2]=d;break l}a=i[c+8>>2];i[a+12>>2]=d;i[c+8>>2]=d;i[d+24>>2]=0;i[d+12>>2]=c;i[d+8>>2]=a}a=i[4831]+ -1|0;i[4831]=a;if(a){break a}d=19748;while(1){a=i[d>>2];d=a+8|0;if(a){continue}break}i[4831]=-1}}function jd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,s=0;e=F-32|0;F=e;a:{b:{if(!i[i[a+8>>2]+80>>2]){d=1;break b}g[e+31|0]=254;k=i[a+36>>2];if(k){if(!(I[i[i[a>>2]+40>>2]](a,k)|0)){break b}d=i[a+36>>2];q=e,s=I[i[i[d>>2]+8>>2]](d)|0,g[q+31|0]=s}d=i[c+20>>2];if((d|0)<0?1:(d|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],e+31|0,e+32|0)}d=i[a+36>>2];c:{if(!d){break c}q=e,s=I[i[i[d>>2]+36>>2]](d)|0,g[q+16|0]=s;d=i[c+20>>2];if((d|0)>0?1:(d|0)>=0?l[c+16>>2]>0:0){break c}ca(c,i[c+4>>2],e+16|0,e+17|0)}d=i[a+32>>2];h=i[d+48>>2];n=i[i[d>>2]>>2];k=i[d+80>>2];m=g[d+24|0];d=0;i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;k=o(k,m);if(k){if(k>>>0>=1073741824){break a}f=k<<2;d=ho(f);i[e+16>>2]=d;p=d+f|0;i[e+24>>2]=p;ip(d,0,f);i[e+20>>2]=p}f=h+n|0;h=i[a+36>>2];d:{e:{if(!h){break e}I[i[i[h>>2]+44>>2]](h,f,d,k,m,i[b>>2])|0;d=i[a+36>>2];if(!d){d=i[e+16>>2];break e}if(I[i[i[d>>2]+32>>2]](d)|0){break d}d=i[e+16>>2];f=i[a+36>>2]?d:f}Nj(f,k,d)}f:{g:{h:{i:{j:{d=i[a+4>>2];if(!d){break j}n=i[d+48>>2];d=ho(48);i[e>>2]=d;i[e+4>>2]=34;i[e+8>>2]=-2147483600;g[d+34|0]=0;f=j[2336]|j[2337]<<8;g[d+32|0]=f;g[d+33|0]=f>>>8;f=j[2332]|j[2333]<<8|(j[2334]<<16|j[2335]<<24);h=j[2328]|j[2329]<<8|(j[2330]<<16|j[2331]<<24);g[d+24|0]=h;g[d+25|0]=h>>>8;g[d+26|0]=h>>>16;g[d+27|0]=h>>>24;g[d+28|0]=f;g[d+29|0]=f>>>8;g[d+30|0]=f>>>16;g[d+31|0]=f>>>24;f=j[2324]|j[2325]<<8|(j[2326]<<16|j[2327]<<24);h=j[2320]|j[2321]<<8|(j[2322]<<16|j[2323]<<24);g[d+16|0]=h;g[d+17|0]=h>>>8;g[d+18|0]=h>>>16;g[d+19|0]=h>>>24;g[d+20|0]=f;g[d+21|0]=f>>>8;g[d+22|0]=f>>>16;g[d+23|0]=f>>>24;f=j[2316]|j[2317]<<8|(j[2318]<<16|j[2319]<<24);h=j[2312]|j[2313]<<8|(j[2314]<<16|j[2315]<<24);g[d+8|0]=h;g[d+9|0]=h>>>8;g[d+10|0]=h>>>16;g[d+11|0]=h>>>24;g[d+12|0]=f;g[d+13|0]=f>>>8;g[d+14|0]=f>>>16;g[d+15|0]=f>>>24;f=j[2308]|j[2309]<<8|(j[2310]<<16|j[2311]<<24);h=j[2304]|j[2305]<<8|(j[2306]<<16|j[2307]<<24);g[d|0]=h;g[d+1|0]=h>>>8;g[d+2|0]=h>>>16;g[d+3|0]=h>>>24;g[d+4|0]=f;g[d+5|0]=f>>>8;g[d+6|0]=f>>>16;g[d+7|0]=f>>>24;d=ck(n,e,1);if(g[e+11|0]<=-1){bp(i[e>>2])}if(d){break j}if(!k){break i}d=0;m=i[e+16>>2];b=0;while(1){b=i[m+(d<<2)>>2]|b;d=d+1|0;if((k|0)!=(d|0)){continue}break}if(!b){break i}b=4-(r(b)>>>3|0)|0;break h}g[e|0]=1;d=i[c+20>>2];if((d|0)<0?1:(d|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],e,e+1|0)}d=Xj(e);k=i[a+4>>2];if(k){jg(d,10-_b(i[k+48>>2])|0)}b=kg(i[e+16>>2],o(m,i[b+4>>2]-i[b>>2]>>2),m,d,c);kd(d,i[d+4>>2]);d=0;if(b){break g}break f}b=1}g[e|0]=0;m=i[c+20>>2];d=m;f=i[c+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ca(c,i[c+4>>2],e,e+1|0);f=i[c+16>>2];d=i[c+20>>2]}g[e|0]=b;if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ca(c,i[c+4>>2],e,e+1|0)}if((Sj(5)|0)!=(b|0)){if(!k){break g}d=0;while(1){m=i[c+20>>2];if((m|0)<0?1:(m|0)<=0?l[c+16>>2]<=0:0){m=i[e+16>>2]+(d<<2)|0;ca(c,i[c+4>>2],m,b+m|0)}d=d+1|0;if((k|0)!=(d|0)){continue}break}break g}b=i[c+20>>2];if((b|0)>0?1:(b|0)>=0?l[c+16>>2]>0:0){break g}b=i[e+16>>2];ca(c,i[c+4>>2],b,b+(k<<2)|0)}d=1;a=i[a+36>>2];if(!a){break f}I[i[i[a>>2]+40>>2]](a,c)|0}a=i[e+16>>2];if(!a){break b}i[e+20>>2]=a;bp(a)}F=e+32|0;return d|0}Ho();x()}function mg(a,b,c,d,e,f){var h=0,k=0,m=0,n=0;n=F-16|0;F=n;a:{if((d|0)<=0){d=1}else{d=r(d)^31;if(d>>>0>17){break a}d=d+1|0}b:{if(!e){break b}h=ho(48);i[n>>2]=h;i[n+4>>2]=33;i[n+8>>2]=-2147483600;g[h+33|0]=0;g[h+32|0]=j[10857];k=j[10853]|j[10854]<<8|(j[10855]<<16|j[10856]<<24);m=j[10849]|j[10850]<<8|(j[10851]<<16|j[10852]<<24);g[h+24|0]=m;g[h+25|0]=m>>>8;g[h+26|0]=m>>>16;g[h+27|0]=m>>>24;g[h+28|0]=k;g[h+29|0]=k>>>8;g[h+30|0]=k>>>16;g[h+31|0]=k>>>24;k=j[10845]|j[10846]<<8|(j[10847]<<16|j[10848]<<24);m=j[10841]|j[10842]<<8|(j[10843]<<16|j[10844]<<24);g[h+16|0]=m;g[h+17|0]=m>>>8;g[h+18|0]=m>>>16;g[h+19|0]=m>>>24;g[h+20|0]=k;g[h+21|0]=k>>>8;g[h+22|0]=k>>>16;g[h+23|0]=k>>>24;k=j[10837]|j[10838]<<8|(j[10839]<<16|j[10840]<<24);m=j[10833]|j[10834]<<8|(j[10835]<<16|j[10836]<<24);g[h+8|0]=m;g[h+9|0]=m>>>8;g[h+10|0]=m>>>16;g[h+11|0]=m>>>24;g[h+12|0]=k;g[h+13|0]=k>>>8;g[h+14|0]=k>>>16;g[h+15|0]=k>>>24;k=j[10829]|j[10830]<<8|(j[10831]<<16|j[10832]<<24);m=j[10825]|j[10826]<<8|(j[10827]<<16|j[10828]<<24);g[h|0]=m;g[h+1|0]=m>>>8;g[h+2|0]=m>>>16;g[h+3|0]=m>>>24;g[h+4|0]=k;g[h+5|0]=k>>>8;g[h+6|0]=k>>>16;g[h+7|0]=k>>>24;h=Sb(e,n);if(g[n+11|0]<=-1){bp(i[n>>2])}if(!h){break b}h=ho(48);i[n>>2]=h;i[n+4>>2]=33;i[n+8>>2]=-2147483600;g[h+33|0]=0;g[h+32|0]=j[10857];k=j[10853]|j[10854]<<8|(j[10855]<<16|j[10856]<<24);m=j[10849]|j[10850]<<8|(j[10851]<<16|j[10852]<<24);g[h+24|0]=m;g[h+25|0]=m>>>8;g[h+26|0]=m>>>16;g[h+27|0]=m>>>24;g[h+28|0]=k;g[h+29|0]=k>>>8;g[h+30|0]=k>>>16;g[h+31|0]=k>>>24;k=j[10845]|j[10846]<<8|(j[10847]<<16|j[10848]<<24);m=j[10841]|j[10842]<<8|(j[10843]<<16|j[10844]<<24);g[h+16|0]=m;g[h+17|0]=m>>>8;g[h+18|0]=m>>>16;g[h+19|0]=m>>>24;g[h+20|0]=k;g[h+21|0]=k>>>8;g[h+22|0]=k>>>16;g[h+23|0]=k>>>24;k=j[10837]|j[10838]<<8|(j[10839]<<16|j[10840]<<24);m=j[10833]|j[10834]<<8|(j[10835]<<16|j[10836]<<24);g[h+8|0]=m;g[h+9|0]=m>>>8;g[h+10|0]=m>>>16;g[h+11|0]=m>>>24;g[h+12|0]=k;g[h+13|0]=k>>>8;g[h+14|0]=k>>>16;g[h+15|0]=k>>>24;k=j[10829]|j[10830]<<8|(j[10831]<<16|j[10832]<<24);m=j[10825]|j[10826]<<8|(j[10827]<<16|j[10828]<<24);g[h|0]=m;g[h+1|0]=m>>>8;g[h+2|0]=m>>>16;g[h+3|0]=m>>>24;g[h+4|0]=k;g[h+5|0]=k>>>8;g[h+6|0]=k>>>16;g[h+7|0]=k>>>24;e=_j(e,n);if(g[n+11|0]<=-1){bp(i[n>>2])}if((e|0)<=3){d=d+ -2|0;break b}if((e|0)<=5){d=d+ -1|0;break b}if((e|0)>=10){d=d+2|0;break b}d=((e|0)>7)+d|0}d=(d|0)>1?d:1;d=(d|0)<18?d:18;i[n+12>>2]=d;g[n|0]=d;e=i[f+20>>2];if((e|0)<0?1:(e|0)<=0?l[f+16>>2]<=0:0){ca(f,i[f+4>>2],n,n+1|0)}h=0;c:{switch(d|0){case 0:case 1:h=pg(a,b,c,f);break a;case 2:h=qg(a,b,c,f);break a;case 3:h=rg(a,b,c,f);break a;case 4:h=sg(a,b,c,f);break a;case 5:h=tg(a,b,c,f);break a;case 6:h=ug(a,b,c,f);break a;case 7:h=vg(a,b,c,f);break a;case 8:h=wg(a,b,c,f);break a;case 9:h=xg(a,b,c,f);break a;case 10:h=yg(a,b,c,f);break a;case 11:h=zg(a,b,c,f);break a;case 12:h=Ag(a,b,c,f);break a;case 13:h=Bg(a,b,c,f);break a;case 14:h=Cg(a,b,c,f);break a;case 15:h=Dg(a,b,c,f);break a;case 16:h=Eg(a,b,c,f);break a;case 17:h=Fg(a,b,c,f);break a;case 18:break c;default:break a}}h=Gg(a,b,c,f)}F=n+16|0;return h}function Tf(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;k=F-16|0;F=k;h=ho(16);i[k>>2]=h;i[k+4>>2]=15;i[k+8>>2]=-2147483632;g[h+15|0]=0;e=j[10535]|j[10536]<<8|(j[10537]<<16|j[10538]<<24);f=j[10531]|j[10532]<<8|(j[10533]<<16|j[10534]<<24);g[h+7|0]=f;g[h+8|0]=f>>>8;g[h+9|0]=f>>>16;g[h+10|0]=f>>>24;g[h+11|0]=e;g[h+12|0]=e>>>8;g[h+13|0]=e>>>16;g[h+14|0]=e>>>24;e=j[10528]|j[10529]<<8|(j[10530]<<16|j[10531]<<24);f=j[10524]|j[10525]<<8|(j[10526]<<16|j[10527]<<24);g[h|0]=f;g[h+1|0]=f>>>8;g[h+2|0]=f>>>16;g[h+3|0]=f>>>24;g[h+4|0]=e;g[h+5|0]=e>>>8;g[h+6|0]=e>>>16;g[h+7|0]=e>>>24;h=b+4|0;o=$j(h,k,-1);if(g[k+11|0]<=-1){bp(i[k>>2])}p=14012;a:{b:{c:{switch(o+1|0){case 0:if((_b(h)|0)==10){break b}break;case 1:break b;default:break c}}d:{f=i[c+12>>2];l=i[c+8>>2];if((f-l|0)<1){break d}m=b+20|0;while(1){e:{e=i[i[(n<<2)+l>>2]+28>>2];if(e+ -1>>>0>=6){if((e|0)!=9){break e}e=ho(32);i[k>>2]=e;i[k+4>>2]=17;i[k+8>>2]=-2147483616;g[e+17|0]=0;g[e+16|0]=j[10556];f=j[10552]|j[10553]<<8|(j[10554]<<16|j[10555]<<24);l=j[10548]|j[10549]<<8|(j[10550]<<16|j[10551]<<24);g[e+8|0]=l;g[e+9|0]=l>>>8;g[e+10|0]=l>>>16;g[e+11|0]=l>>>24;g[e+12|0]=f;g[e+13|0]=f>>>8;g[e+14|0]=f>>>16;g[e+15|0]=f>>>24;f=j[10544]|j[10545]<<8|(j[10546]<<16|j[10547]<<24);l=j[10540]|j[10541]<<8|(j[10542]<<16|j[10543]<<24);g[e|0]=l;g[e+1|0]=l>>>8;g[e+2|0]=l>>>16;g[e+3|0]=l>>>24;g[e+4|0]=f;g[e+5|0]=f>>>8;g[e+6|0]=f>>>16;g[e+7|0]=f>>>24;f=m;l=i[f>>2];e=h;f:{if(!l){break f}while(1){e=i[l+16>>2]<(n|0);f=e?f:l;l=i[(e<<2)+l>>2];if(l){continue}break}e=h;if((f|0)==(m|0)){break f}e=h;if((n|0)>2]){break f}e=f+20|0;e=Sb(e,k)?e:h}e=$j(e,k,-1);if(g[k+11|0]<=-1){bp(i[k>>2])}if((e|0)<1){break e}l=i[c+8>>2];f=i[c+12>>2]}n=n+1|0;if((n|0)>2){continue}break d}break}if((o|0)!=1){break b}b=ho(32);i[k>>2]=b;i[k+4>>2]=24;i[k+8>>2]=-2147483616;g[b+24|0]=0;c=j[10578]|j[10579]<<8|(j[10580]<<16|j[10581]<<24);d=j[10574]|j[10575]<<8|(j[10576]<<16|j[10577]<<24);g[b+16|0]=d;g[b+17|0]=d>>>8;g[b+18|0]=d>>>16;g[b+19|0]=d>>>24;g[b+20|0]=c;g[b+21|0]=c>>>8;g[b+22|0]=c>>>16;g[b+23|0]=c>>>24;c=j[10570]|j[10571]<<8|(j[10572]<<16|j[10573]<<24);d=j[10566]|j[10567]<<8|(j[10568]<<16|j[10569]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[10562]|j[10563]<<8|(j[10564]<<16|j[10565]<<24);d=j[10558]|j[10559]<<8|(j[10560]<<16|j[10561]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ro(a+4|0,k);if(g[k+11|0]>-1){break a}bp(i[k>>2]);break a}p=13836}m=ho(56);e=m;i[e>>2]=0;i[e+4>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;i[e+8>>2]=0;i[e+12>>2]=0;f=xj(e);i[e>>2]=p;aa(f,c);yj(a,f,h,d);if(!i[a>>2]){if(g[a+15|0]<=-1){bp(i[a+4>>2])}c=i[m+52>>2];i[b+44>>2]=0;i[b+40>>2]=c;i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0}I[i[i[m>>2]+4>>2]](f)}F=k+16|0}function Bh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0;e=F-16|0;F=e;f=i[a+48>>2];b=ho(32);i[e>>2]=b;i[e+4>>2]=20;i[e+8>>2]=-2147483616;g[b+20|0]=0;c=j[11024]|j[11025]<<8|(j[11026]<<16|j[11027]<<24);g[b+16|0]=c;g[b+17|0]=c>>>8;g[b+18|0]=c>>>16;g[b+19|0]=c>>>24;c=j[11020]|j[11021]<<8|(j[11022]<<16|j[11023]<<24);d=j[11016]|j[11017]<<8|(j[11018]<<16|j[11019]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11012]|j[11013]<<8|(j[11014]<<16|j[11015]<<24);d=j[11008]|j[11009]<<8|(j[11010]<<16|j[11011]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;f=bk(f+24|0,e);if(g[e+11|0]<=-1){bp(i[e>>2])}h=i[a+48>>2];b=ho(32);i[e>>2]=b;i[e+4>>2]=22;i[e+8>>2]=-2147483616;g[b+22|0]=0;c=j[11047]|j[11048]<<8|(j[11049]<<16|j[11050]<<24);d=j[11043]|j[11044]<<8|(j[11045]<<16|j[11046]<<24);g[b+14|0]=d;g[b+15|0]=d>>>8;g[b+16|0]=d>>>16;g[b+17|0]=d>>>24;g[b+18|0]=c;g[b+19|0]=c>>>8;g[b+20|0]=c>>>16;g[b+21|0]=c>>>24;c=j[11041]|j[11042]<<8|(j[11043]<<16|j[11044]<<24);d=j[11037]|j[11038]<<8|(j[11039]<<16|j[11040]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11033]|j[11034]<<8|(j[11035]<<16|j[11036]<<24);d=j[11029]|j[11030]<<8|(j[11031]<<16|j[11032]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;h=bk(h+24|0,e);if(g[e+11|0]<=-1){bp(i[e>>2])}b=i[a+64>>2];i[a+64>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[a+56>>2];k=i[b+100>>2];m=i[a+48>>2];n=i[b+96>>2];b=ho(32);i[e>>2]=b;i[e+4>>2]=18;i[e+8>>2]=-2147483616;g[b+18|0]=0;c=j[11068]|j[11069]<<8;g[b+16|0]=c;g[b+17|0]=c>>>8;c=j[11064]|j[11065]<<8|(j[11066]<<16|j[11067]<<24);d=j[11060]|j[11061]<<8|(j[11062]<<16|j[11063]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11056]|j[11057]<<8|(j[11058]<<16|j[11059]<<24);d=j[11052]|j[11053]<<8|(j[11054]<<16|j[11055]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;b=(k-n|0)/12|0;c=$j(m,e,-1);if(g[e+11|0]<=-1){bp(i[e>>2])}a:{b:{c:{d:{e:{f:{g:{switch(c+1|0){case 3:break f;case 0:break g;case 1:break e;default:break c}}if(!f){break f}if(b>>>0<1e3|(_b(i[a+48>>2])|0)>4|h^1){break d}}b=i[a+44>>2];g[e|0]=2;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],e,e+1|0)}b=ho(360);si(b);c=i[a+64>>2];i[a+64>>2]=b;if(!c){break b}I[i[i[c>>2]+4>>2]](c);break c}if(!f){break c}}b=i[a+44>>2];g[e|0]=0;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],e,e+1|0)}b=ho(296);Mh(b);c=i[a+64>>2];i[a+64>>2]=b;if(!c){break b}I[i[i[c>>2]+4>>2]](c)}b=i[a+64>>2];if(!b){break a}}a=I[i[i[b>>2]+8>>2]](b,a)|0;F=e+16|0;return a|0}F=e+16|0;return 0}function cm(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;i[a+56>>2]=i[a+52>>2];i[a+44>>2]=i[a+40>>2];a:{b:{c:{e=i[a+64>>2];d=i[e+24>>2];if((d|0)!=i[e+28>>2]){n=a+40|0;o=a+52|0;while(1){e=c;j=i[(l<<2)+d>>2];d:{if((j|0)==-1){break d}c=i[a+56>>2];e:{if((c|0)!=i[a+60>>2]){i[c>>2]=e;i[a+56>>2]=c+4;break e}h=i[o>>2];g=c-h|0;f=g>>2;d=f+1|0;if(d>>>0>=1073741824){break c}b=g>>1;d=f>>>0<536870911?b>>>0>>0?d:b:1073741823;c=0;f:{if(!d){break f}if(d>>>0>=1073741824){break a}c=ho(d<<2)}b=c+(f<<2)|0;i[b>>2]=e;d=c+(d<<2)|0;b=b+4|0;if((g|0)>=1){hp(c,h,g)}i[a+60>>2]=d;i[a+56>>2]=b;i[a+52>>2]=c;if(!h){break e}bp(h)}g:{if(!(i[i[a+12>>2]+(l>>>3&536870908)>>2]>>>l&1)){break g}c=j+1|0;c=(c>>>0)%3|0?c:j+ -2|0;if((c|0)==-1|i[i[a>>2]+(c>>>3&536870908)>>2]>>>c&1){break g}b=i[i[i[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)==-1){break g}while(1){c=d+1|0;j=d;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|i[i[a>>2]+(c>>>3&536870908)>>2]>>>c&1){break g}b=i[i[i[a+64>>2]+12>>2]+(c<<2)>>2];if((b|0)==-1){break g}c=b+1|0;d=(c>>>0)%3|0?c:b+ -2|0;if((d|0)!=-1){continue}break}}i[i[a+28>>2]+(j<<2)>>2]=e;c=i[a+44>>2];h:{if((c|0)!=i[a+48>>2]){i[c>>2]=j;i[a+44>>2]=c+4;break h}h=i[n>>2];g=c-h|0;f=g>>2;d=f+1|0;if(d>>>0>=1073741824){break b}b=g>>1;d=f>>>0<536870911?b>>>0>>0?d:b:1073741823;c=0;i:{if(!d){break i}if(d>>>0>=1073741824){break a}c=ho(d<<2)}b=c+(f<<2)|0;i[b>>2]=j;d=c+(d<<2)|0;b=b+4|0;if((g|0)>=1){hp(c,h,g)}i[a+48>>2]=d;i[a+44>>2]=b;i[a+40>>2]=c;if(!h){break h}bp(h)}c=e+1|0;b=((j>>>0)%3|0?-1:2)+j|0;if((b|0)==-1){break d}b=i[i[i[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1|(d|0)==(j|0)){break d}while(1){b=d+1|0;b=(b>>>0)%3|0?b:d+ -2|0;if(i[i[a>>2]+(b>>>3&536870908)>>2]>>>b&1){e=i[a+56>>2];j:{if((e|0)!=i[a+60>>2]){i[e>>2]=c;i[a+56>>2]=e+4;break j}k=i[o>>2];h=e-k|0;g=h>>2;f=g+1|0;if(f>>>0>=1073741824){break c}b=h>>1;f=g>>>0<536870911?b>>>0>>0?f:b:1073741823;e=0;k:{if(!f){break k}if(f>>>0>=1073741824){break a}e=ho(f<<2)}b=e+(g<<2)|0;i[b>>2]=c;f=e+(f<<2)|0;b=b+4|0;if((h|0)>=1){hp(e,k,h)}i[a+60>>2]=f;i[a+56>>2]=b;i[a+52>>2]=e;if(!k){break j}bp(k)}b=c+1|0;e=i[a+44>>2];l:{if((e|0)!=i[a+48>>2]){i[e>>2]=d;i[a+44>>2]=e+4;break l}m=i[n>>2];k=e-m|0;h=k>>2;g=h+1|0;if(g>>>0>=1073741824){break b}f=k>>1;g=h>>>0<536870911?f>>>0>>0?g:f:1073741823;e=0;m:{if(!g){break m}if(g>>>0>=1073741824){break a}e=ho(g<<2)}f=e+(h<<2)|0;i[f>>2]=d;g=e+(g<<2)|0;f=f+4|0;if((k|0)>=1){hp(e,m,k)}i[a+48>>2]=g;i[a+44>>2]=f;i[a+40>>2]=e;if(!m){break l}bp(m)}e=c;c=b}i[i[a+28>>2]+(d<<2)>>2]=e;b=((d>>>0)%3|0?-1:2)+d|0;if((b|0)==-1){break d}b=i[i[i[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break d}d=b+((b>>>0)%3|0?-1:2)|0;if((d|0)==-1){break d}if((d|0)!=(j|0)){continue}break}}e=i[a+64>>2];d=i[e+24>>2];l=l+1|0;if(l>>>0>2]-d>>2>>>0){continue}break}}return}Ho();x()}Ho();x()}za(16720);x()}function hj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(i[i[a+24>>2]+(d>>>3&268435452)>>2]>>>d&1)){c=i[a+48>>2];i[a+52>>2]=c;a:{if((c|0)!=i[a+56>>2]){i[c>>2]=b;i[a+52>>2]=c+4;break a}f=ho(4);i[f>>2]=b;e=f+4|0;i[a+56>>2]=e;i[a+52>>2]=e;i[a+48>>2]=f;if(!c){break a}bp(c)}e=i[i[a+4>>2]+28>>2];c=b+1|0;f=(c>>>0)%3|0?c:b+ -2|0;c=i[e+(f<<2)>>2];if((c|0)==-1){return 0}h=(b-o(d,3)|0?-1:2)+b|0;d=i[e+(h<<2)>>2];if((d|0)==-1){return 0}b=i[a+36>>2];e=b+(c>>>3&536870908)|0;g=i[e>>2];j=1<>2]=g|j;Ti(a+8|0,c,f);b=i[a+36>>2]}b=(d>>>3&536870908)+b|0;c=i[b>>2];f=1<>2]=c|f;Ti(a+8|0,d,h)}c=i[a+52>>2];if((c|0)==i[a+48>>2]){return 1}l=a+48|0;m=a+8|0;while(1){c=c+ -4|0;b=i[c>>2];d=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}f=i[a+24>>2]+(d>>>3&268435452)|0;e=i[f>>2];d=1<>2]=d|e;f=i[a+4>>2];c=i[i[f+28>>2]+(b<<2)>>2];if((c|0)==-1){return 0}while(1){d=b;d:{b=i[a+36>>2]+(c>>>3&536870908)|0;e=i[b>>2];h=1<>2]+(c<<2)>>2];if((g|0)!=-1){f:{j=g+1|0;g=(j>>>0)%3|0?j:g+ -2|0;if((g|0)==-1|i[i[f>>2]+(g>>>3&536870908)>>2]>>>g&1){break f}f=i[i[i[f+64>>2]+12>>2]+(g<<2)>>2];if((f|0)==-1){break f}i[b>>2]=e|h;Ti(m,c,d);b=f+1|0;if((((b>>>0)%3|0?b:f+ -2|0)|0)==-1){break e}b=-1;f=i[a+4>>2];g:{if((d|0)==-1){break g}c=d+1|0;c=(c>>>0)%3|0?c:d+ -2|0;if((c|0)==-1|i[i[f>>2]+(c>>>3&536870908)>>2]>>>c&1){break g}b=i[i[i[f+64>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;g=1<>2];j=c>>>5|0;e=i[d+(j<<2)>>2];break d}}i[b>>2]=e|h;Ti(m,c,d)}h:{i:{if((d|0)==-1){break i}f=i[a+4>>2];b=-1;e=d+1|0;e=(e>>>0)%3|0?e:d+ -2|0;c=-1;j:{if((e|0)==-1){break j}c=-1;if(i[i[f>>2]+(e>>>3&536870908)>>2]>>>e&1){break j}c=i[i[i[f+64>>2]+12>>2]+(e<<2)>>2]}d=d+((d>>>0)%3|0?-1:2)|0;if(!((d|0)==-1|i[i[f>>2]+(d>>>3&536870908)>>2]>>>d&1)){b=i[i[i[f+64>>2]+12>>2]+(d<<2)>>2]}k=(b|0)==-1;h=k?-1:(b>>>0)/3|0;e=(c>>>0)/3|0;g=(c|0)==-1;if(!g){d=i[a+24>>2];g=g?-1:e;j=g>>>5|0;e=i[d+(j<<2)>>2];g=1<>2];j=h>>>5|0;e=i[d+(j<<2)>>2];if(!(g&e)){break d}}c=i[a+52>>2]+ -4|0;i[a+52>>2]=c;break b}if(k){b=c;break d}if(i[(h>>>3&536870908)+d>>2]>>>h&1){b=c;break d}d=i[a+52>>2];i[d+ -4>>2]=b;if((d|0)!=i[a+56>>2]){i[d>>2]=c;c=d+4|0;break c}k:{b=d;d=i[l>>2];f=b-d|0;h=f>>2;e=h+1|0;if(e>>>0<1073741824){g=f>>1;e=h>>>0<536870911?g>>>0>>0?e:g:1073741823;b=0;l:{if(!e){break l}if(e>>>0>=1073741824){break k}b=ho(e<<2)}h=b+(h<<2)|0;i[h>>2]=c;e=b+(e<<2)|0;c=h+4|0;if((f|0)>=1){hp(b,d,f)}i[a+56>>2]=e;i[a+52>>2]=c;i[a+48>>2]=b;if(!d){break b}bp(d);c=i[a+52>>2];break b}Ho();x()}za(11708);x()}i[(j<<2)+d>>2]=e|g;c=i[i[f+28>>2]+(b<<2)>>2];if((c|0)!=-1){continue}break}return 0}i[a+52>>2]=c}if(i[l>>2]!=(c|0)){continue}break}}return 1}function se(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,n=0;e=F-48|0;F=e;h=i[b+12>>2];k=i[i[b+4>>2]+48>>2];c=ho(32);i[e+24>>2]=c;i[e+28>>2]=17;i[e+32>>2]=-2147483616;g[c+17|0]=0;g[c+16|0]=j[6044];f=j[6040]|j[6041]<<8|(j[6042]<<16|j[6043]<<24);d=j[6036]|j[6037]<<8|(j[6038]<<16|j[6039]<<24);g[c+8|0]=d;g[c+9|0]=d>>>8;g[c+10|0]=d>>>16;g[c+11|0]=d>>>24;g[c+12|0]=f;g[c+13|0]=f>>>8;g[c+14|0]=f>>>16;g[c+15|0]=f>>>24;f=j[6032]|j[6033]<<8|(j[6034]<<16|j[6035]<<24);d=j[6028]|j[6029]<<8|(j[6030]<<16|j[6031]<<24);g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;g[c+4|0]=f;g[c+5|0]=f>>>8;g[c+6|0]=f>>>16;g[c+7|0]=f>>>24;a:{b:{f=k+16|0;d=i[f>>2];if(!d){break b}c=f;while(1){l=i[d+16>>2]<(h|0);c=l?c:d;d=i[(l<<2)+d>>2];if(d){continue}break}if((c|0)==(f|0)|(h|0)>2]){break b}c=c+20|0;if(!Sb(c,e+24|0)){break b}c=$j(c,e+24|0,-1);break a}c=$j(k,e+24|0,-1)}if(g[e+35|0]<=-1){bp(i[e+24>>2])}i[e+32>>2]=-1;i[e+36>>2]=1065353216;i[e+24>>2]=-1;i[e+28>>2]=-1;i[e+40>>2]=-1;c=-1<>>0>28){break c}i[e+24>>2]=c+1;c=-2<>2]=c^-1;c=-2-c|0;i[e+32>>2]=c;i[e+40>>2]=(c|0)/2;m[e+36>>2]=p(2)/p(c|0)}h=ff(i[b+12>>2],i[b+4>>2]);k=i[b+12>>2];l=i[i[b+4>>2]+48>>2];c=ho(32);i[e+8>>2]=c;i[e+12>>2]=17;i[e+16>>2]=-2147483616;g[c+17|0]=0;g[c+16|0]=j[6184];f=j[6180]|j[6181]<<8|(j[6182]<<16|j[6183]<<24);d=j[6176]|j[6177]<<8|(j[6178]<<16|j[6179]<<24);g[c+8|0]=d;g[c+9|0]=d>>>8;g[c+10|0]=d>>>16;g[c+11|0]=d>>>24;g[c+12|0]=f;g[c+13|0]=f>>>8;g[c+14|0]=f>>>16;g[c+15|0]=f>>>24;f=j[6172]|j[6173]<<8|(j[6174]<<16|j[6175]<<24);d=j[6168]|j[6169]<<8|(j[6170]<<16|j[6171]<<24);g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;g[c+4|0]=f;g[c+5|0]=f>>>8;g[c+6|0]=f>>>16;g[c+7|0]=f>>>24;d:{e:{f=l+16|0;d=i[f>>2];if(!d){break e}c=f;while(1){n=i[d+16>>2]<(k|0);c=n?c:d;d=i[(n<<2)+d>>2];if(d){continue}break}if((c|0)==(f|0)|(k|0)>2]){break e}c=c+20|0;if(!Sb(c,e+8|0)){break e}c=$j(c,e+8|0,h);break d}c=$j(l,e+8|0,h)}if(g[e+19|0]<=-1){bp(i[e+8>>2])}f:{g:{switch(c|0){case 6:c=i[b+4>>2];b=i[b+12>>2];f=i[i[i[c+4>>2]+8>>2]+(b<<2)>>2];h:{if((I[i[i[c>>2]+8>>2]](c)|0)==1){te(e+8|0,c,b,e+24|0);d=i[e+8>>2];if(d){break h}}d=ho(28);i[d+4>>2]=f;b=i[e+28>>2];i[d+8>>2]=i[e+24>>2];i[d+12>>2]=b;b=i[e+36>>2];i[d+16>>2]=i[e+32>>2];i[d+20>>2]=b;i[d+24>>2]=i[e+40>>2];i[d>>2]=9572}i[a>>2]=d;break f;case 0:c=i[b+4>>2];f=i[i[i[c+4>>2]+8>>2]+(i[b+12>>2]<<2)>>2];if((I[i[i[c>>2]+8>>2]](c)|0)==1){I[i[i[c>>2]+8>>2]](c)|0}b=ho(28);i[b+4>>2]=f;c=i[e+28>>2];i[b+8>>2]=i[e+24>>2];i[b+12>>2]=c;c=i[e+36>>2];i[b+16>>2]=i[e+32>>2];i[b+20>>2]=c;i[b+24>>2]=i[e+40>>2];i[b>>2]=9572;i[a>>2]=b;break f;default:break g}}i[a>>2]=0}F=e+48|0}function oj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,k=0,m=0,n=0,p=0;f=F-16|0;F=f;c=i[b+56>>2];m=i[c+100>>2]-i[c+96>>2]|0;d=(m|0)/12|0;Jb(d,i[b+44>>2]);Jb(i[i[b+56>>2]+80>>2],i[b+44>>2]);n=i[b+48>>2];c=ho(32);i[f>>2]=c;i[f+4>>2]=21;i[f+8>>2]=-2147483616;g[c+21|0]=0;e=j[13293]|j[13294]<<8|(j[13295]<<16|j[13296]<<24);k=j[13289]|j[13290]<<8|(j[13291]<<16|j[13292]<<24);g[c+13|0]=k;g[c+14|0]=k>>>8;g[c+15|0]=k>>>16;g[c+16|0]=k>>>24;g[c+17|0]=e;g[c+18|0]=e>>>8;g[c+19|0]=e>>>16;g[c+20|0]=e>>>24;e=j[13288]|j[13289]<<8|(j[13290]<<16|j[13291]<<24);k=j[13284]|j[13285]<<8|(j[13286]<<16|j[13287]<<24);g[c+8|0]=k;g[c+9|0]=k>>>8;g[c+10|0]=k>>>16;g[c+11|0]=k>>>24;g[c+12|0]=e;g[c+13|0]=e>>>8;g[c+14|0]=e>>>16;g[c+15|0]=e>>>24;e=j[13280]|j[13281]<<8|(j[13282]<<16|j[13283]<<24);k=j[13276]|j[13277]<<8|(j[13278]<<16|j[13279]<<24);g[c|0]=k;g[c+1|0]=k>>>8;g[c+2|0]=k>>>16;g[c+3|0]=k>>>24;g[c+4|0]=e;g[c+5|0]=e>>>8;g[c+6|0]=e>>>16;g[c+7|0]=e>>>24;e=ck(n,f,0);if(g[f+11|0]<=-1){bp(i[f>>2])}c=i[b+44>>2];a:{if(e){g[f|0]=0;d=i[c+20>>2];if((d|0)<0?1:(d|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],f,f+1|0)}pj(b);break a}g[f|0]=1;e=i[c+20>>2];if((e|0)<0?1:(e|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],f,f+1|0)}e=i[b+56>>2];c=i[e+80>>2];if(c>>>0<=255){if(!m){break a}p=d>>>0>1?d:1;k=f+1|0;m=0;while(1){c=i[b+44>>2];n=i[e+96>>2]+o(m,12)|0;g[f|0]=i[n>>2];d=i[c+20>>2];e=i[c+16>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ca(c,i[c+4>>2],f,k);c=i[b+44>>2];e=i[c+16>>2];d=i[c+20>>2]}g[f|0]=i[n+4>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ca(c,i[c+4>>2],f,k);c=i[b+44>>2];e=i[c+16>>2];d=i[c+20>>2]}g[f|0]=i[n+8>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ca(c,i[c+4>>2],f,k)}m=m+1|0;if((p|0)==(m|0)){break a}e=i[b+56>>2];continue}}if(c>>>0<=65535){if(!m){break a}p=d>>>0>1?d:1;k=f+2|0;m=0;while(1){c=i[b+44>>2];n=i[e+96>>2]+o(m,12)|0;h[f>>1]=i[n>>2];d=i[c+20>>2];e=i[c+16>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ca(c,i[c+4>>2],f,k);c=i[b+44>>2];e=i[c+16>>2];d=i[c+20>>2]}h[f>>1]=i[n+4>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ca(c,i[c+4>>2],f,k);c=i[b+44>>2];e=i[c+16>>2];d=i[c+20>>2]}h[f>>1]=i[n+8>>2];if((d|0)<0?1:(d|0)<=0?e>>>0<=0:0){ca(c,i[c+4>>2],f,k)}m=m+1|0;if((p|0)==(m|0)){break a}e=i[b+56>>2];continue}}if(c>>>0>=2097152){if(!m){break a}k=d>>>0>1?d:1;c=0;while(1){d=i[b+44>>2];m=i[d+20>>2];if((m|0)<0?1:(m|0)<=0?l[d+16>>2]<=0:0){n=d;m=i[d+4>>2];d=i[e+96>>2]+o(c,12)|0;ca(n,m,d,d+12|0)}c=c+1|0;if((k|0)==(c|0)){break a}e=i[b+56>>2];continue}}if(!m){break a}m=d>>>0>1?d:1;c=0;while(1){d=i[e+96>>2]+o(c,12)|0;Jb(i[d>>2],i[b+44>>2]);Jb(i[d+4>>2],i[b+44>>2]);Jb(i[d+8>>2],i[b+44>>2]);c=c+1|0;if((m|0)==(c|0)){break a}e=i[b+56>>2];continue}}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;F=f+16|0}function zh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){zh(f,d,c);a=d+4|0;continue c}zh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function yh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){yh(f,d,c);a=d+4|0;continue c}yh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function xh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){xh(f,d,c);a=d+4|0;continue c}xh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function wh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){wh(f,d,c);a=d+4|0;continue c}wh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function vh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){vh(f,d,c);a=d+4|0;continue c}vh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function uh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){uh(f,d,c);a=d+4|0;continue c}uh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function th(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){th(f,d,c);a=d+4|0;continue c}th(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function sh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){sh(f,d,c);a=d+4|0;continue c}sh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function rh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){rh(f,d,c);a=d+4|0;continue c}rh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function qh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){qh(f,d,c);a=d+4|0;continue c}qh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function ph(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){ph(f,d,c);a=d+4|0;continue c}ph(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function oh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){oh(f,d,c);a=d+4|0;continue c}oh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function nh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){nh(f,d,c);a=d+4|0;continue c}nh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function mh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){mh(f,d,c);a=d+4|0;continue c}mh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function lh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){lh(f,d,c);a=d+4|0;continue c}lh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function kh(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){kh(f,d,c);a=d+4|0;continue c}kh(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function Hg(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){Hg(f,d,c);a=d+4|0;continue c}Hg(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function Ah(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0,o=0,p=0;a:{b:while(1){n=b+ -4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;d=a>>2;switch(d|0){case 0:case 1:break a;case 5:break j;case 4:break k;case 2:break l;case 3:break g;default:break i}}c=i[c>>2];a=i[c>>2];c=i[c+4>>2]-a>>3;d=b+ -4|0;b=i[d>>2];if(c>>>0<=b>>>0){break h}n=c;c=i[f>>2];if(n>>>0<=c>>>0){break h}if(l[a+(b<<3)>>2]>=l[a+(c<<3)>>2]){break a}i[f>>2]=b;i[d>>2]=c;return}Kg(f,f+4|0,f+8|0,b+ -4|0,c);return}Lg(f,f+4|0,f+8|0,f+12|0,b+ -4|0,c);return}if((a|0)<=123){Mg(f,b,c);return}j=((d|0)/2<<2)+f|0;m:{if((a|0)>=3997){a=(d|0)/4<<2;m=Lg(f,a+f|0,j,a+j|0,n,c);break m}m=Ng(f,j,n,c)}a=i[c>>2];h=i[a>>2];g=i[a+4>>2]-h>>3;a=i[f>>2];if(g>>>0<=a>>>0){break e}d=i[j>>2];if(g>>>0<=d>>>0){break e}e=n;k=i[h+(a<<3)>>2];o=i[h+(d<<3)>>2];if(k>>>0>=o>>>0){while(1){e=e+ -4|0;if((e|0)==(f|0)){a=i[n>>2];if(g>>>0<=a>>>0){break e}d=f+4|0;if(k>>>0>2]){break f}if((d|0)==(n|0)){break a}while(1){e=i[d>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){i[d>>2]=a;i[n>>2]=e;d=d+4|0;break f}d=d+4|0;if((n|0)!=(d|0)){continue}break}break a}d=i[e>>2];if(g>>>0<=d>>>0){break e}if(l[h+(d<<3)>>2]>=o>>>0){continue}break}i[f>>2]=d;i[e>>2]=a;m=m+1|0}n:{d=f+4|0;if(d>>>0>=e>>>0){break n}a=i[d>>2];if(g>>>0<=a>>>0){break e}while(1){k=i[j>>2];o=h+(k<<3)|0;while(1){if(g>>>0<=k>>>0){break e}p=i[o>>2];if(l[h+(a<<3)>>2]

>>0){a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break e}break}while(1){e=e+ -4|0;k=i[e>>2];if(g>>>0<=k>>>0){break e}if(l[h+(k<<3)>>2]>=p>>>0){continue}break}if(d>>>0>e>>>0){break n}i[d>>2]=k;i[e>>2]=a;j=(d|0)==(j|0)?e:j;m=m+1|0;a=i[d+4>>2];d=d+4|0;if(g>>>0>a>>>0){continue}break}break e}o:{if((d|0)==(j|0)){break o}a=i[j>>2];if(g>>>0<=a>>>0){break e}e=i[d>>2];if(g>>>0<=e>>>0){break e}if(l[h+(a<<3)>>2]>=l[h+(e<<3)>>2]){break o}i[d>>2]=a;i[j>>2]=e;m=m+1|0}if(!m){e=Og(f,d,c);a=d+4|0;if(Og(a,b,c)){b=d;a=f;if(!e){continue b}break a}if(e){continue c}}if((d-f|0)<(b-d|0)){Ah(f,d,c);a=d+4|0;continue c}Ah(d+4|0,b,c);b=d;a=f;continue b}Io();x()}Ng(f,f+4|0,b+ -4|0,c);break a}if((d|0)==(n|0)){break a}a=n;e=i[f>>2];if(g>>>0<=e>>>0){break e}while(1){j=h+(e<<3)|0;while(1){m=i[d>>2];if(g>>>0<=m>>>0){break e}k=i[j>>2];if(k>>>0>=l[h+(m<<3)>>2]){d=d+4|0;if(g>>>0>e>>>0){continue}break e}break}while(1){a=a+ -4|0;e=i[a>>2];if(g>>>0<=e>>>0){break e}if(k>>>0>2]){continue}break}if(d>>>0>=a>>>0){f=d;continue d}i[d>>2]=e;i[a>>2]=m;d=d+4|0;e=i[f>>2];if(g>>>0>e>>>0){continue}break}}break}break}break}Io();x()}}function Ll(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0;e=F-48|0;F=e;a:{if(!b){break a}w=a+12|0;g=i[a+4>>2];m=i[a>>2];f=g-m|0;k=f>>2;d=i[a+12>>2];c=i[a+16>>2]-d>>2;b:{if(k>>>0>c>>>0){Ol(w,k-c|0);g=i[a+4>>2];m=i[a>>2];f=g-m|0;k=f>>2;break b}if(k>>>0>=c>>>0){break b}i[a+16>>2]=d+(k<<2)}i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;c:{if(!f){break c}if(k>>>0<1073741824){l=ho(f);i[e+36>>2]=l;i[e+32>>2]=l;i[e+40>>2]=(k<<2)+l;d=l;f=0;while(1){c=i[(f<<2)+m>>2];j=d-l>>2;d:{if(c>>>0>>0){break d}i[e+16>>2]=0;d=c+1|0;if(d>>>0>j>>>0){Gb(e+32|0,d-j|0,e+16|0);m=i[a>>2];g=i[a+4>>2];l=i[e+32>>2];break d}if(d>>>0>=j>>>0){break d}i[e+36>>2]=(d<<2)+l}d=(c<<2)+l|0;i[d>>2]=i[d>>2]+1;f=f+1|0;h=g-m|0;k=h>>2;if(f>>>0>=k>>>0){break c}d=i[e+36>>2];continue}}za(16516);x()}i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;e:{f:{if(h){if(k>>>0>=536870912){break f}n=ho(h<<1);i[e+16>>2]=n;c=k<<3;d=c+n|0;i[e+24>>2]=d;ip(n,255,c);i[e+20>>2]=d}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;c=i[e+36>>2];g=c-l|0;u=g>>2;g:{if(g){if(u>>>0>=1073741824){break g}p=ho(g);i[e>>2]=p;d=(u<<2)+p|0;i[e+8>>2]=d;f=0;j=ip(p,0,g);i[e+4>>2]=d;d=l-c|0;c=((d|0)>(g|0)?d:g)>>>2|0;d=(g|0)>-1?g:-1;d=o(c,(d|0)<1?d:1);c=d>>>0>1?d:1;h=0;while(1){d=h<<2;i[d+j>>2]=f;f=i[d+l>>2]+f|0;h=h+1|0;if((c|0)!=(h|0)){continue}break}}if(!k){break e}while(1){y=q<<2;g=i[y+m>>2];r=-1;d=q+1|0;c=(d>>>0)%3|0?d:q+ -2|0;if((c|0)!=-1){r=i[(c<<2)+m>>2]}s=-1;f=(q>>>0)%3|0;c=(f?-1:2)+q|0;if((c|0)!=-1){s=i[(c<<2)+m>>2]}h:{if(!(((g|0)!=(s|0)?!((r|0)==(s|0)|(g|0)==(r|0)):0)|f)){i[a+40>>2]=i[a+40>>2]+1;d=q+3|0;break h}c=s<<2;v=i[c+l>>2];i:{j:{if((v|0)<1){break j}f=i[c+p>>2];h=0;while(1){j=(f<<3)+n|0;c=i[j>>2];if((c|0)==-1){break j}k:{if((c|0)!=(r|0)){break k}t=i[j+4>>2];if((t|0)!=-1){c=i[(t<<2)+m>>2]}else{c=-1}if((c|0)==(g|0)){break k}while(1){l:{c=f;h=h+1|0;if((h|0)>=(v|0)){break l}z=(c<<3)+n|0;f=c+1|0;g=(f<<3)+n|0;j=i[g>>2];i[z>>2]=j;i[z+4>>2]=i[g+4>>2];if((j|0)!=-1){continue}}break}i[(c<<3)+n>>2]=-1;if((t|0)==-1){break j}c=i[w>>2];i[c+y>>2]=t;i[c+(t<<2)>>2]=q;break i}f=f+1|0;h=h+1|0;if((v|0)!=(h|0)){continue}break}}f=r<<2;c=i[f+l>>2];if((c|0)<1){break i}f=i[f+p>>2];h=0;while(1){j=(f<<3)+n|0;if(i[j>>2]==-1){i[j>>2]=s;i[j+4>>2]=q;break i}f=f+1|0;h=h+1|0;if((c|0)!=(h|0)){continue}break}}}q=d;if(d>>>0>>0){continue}break}break e}Ho();x()}Ho();x()}i[b>>2]=u;if(p){i[e+4>>2]=p;bp(p)}a=i[e+16>>2];if(a){i[e+20>>2]=a;bp(a)}a=i[e+32>>2];if(!a){break a}i[e+36>>2]=a;bp(a)}F=e+48|0;return(b|0)!=0}function bj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(i[i[a+24>>2]+(d>>>3&268435452)>>2]>>>d&1)){c=i[a+48>>2];i[a+52>>2]=c;a:{if((c|0)!=i[a+56>>2]){i[c>>2]=b;i[a+52>>2]=c+4;break a}e=ho(4);i[e>>2]=b;f=e+4|0;i[a+56>>2]=f;i[a+52>>2]=f;i[a+48>>2]=e;if(!c){break a}bp(c)}e=i[a+4>>2];c=-1;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)!=-1){c=i[i[e>>2]+(f<<2)>>2]}h=(b-o(d,3)|0?-1:2)+b|0;if((h|0)==-1){return 0}if((c|0)==-1){return 0}d=i[i[e>>2]+(h<<2)>>2];if((d|0)==-1){return 0}b=i[a+36>>2];e=b+(c>>>3&536870908)|0;g=i[e>>2];j=1<>2]=g|j;Ti(a+8|0,c,f);b=i[a+36>>2]}b=(d>>>3&536870908)+b|0;c=i[b>>2];e=1<>2]=c|e;Ti(a+8|0,d,h)}d=i[a+52>>2];if((d|0)==i[a+48>>2]){return 1}k=a+48|0;l=a+8|0;while(1){d=d+ -4|0;b=i[d>>2];c=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}e=i[a+24>>2]+(c>>>3&268435452)|0;f=i[e>>2];c=1<>2]=c|f;while(1){h=i[a+4>>2];c=i[i[h>>2]+(b<<2)>>2];if((c|0)==-1){return 0}d:{d=i[a+36>>2]+(c>>>3&536870908)|0;e=i[d>>2];f=1<>2]+(c<<2)>>2];if((g|0)!=-1){j=g+1|0;g=(j>>>0)%3|0?j:g+ -2|0;if((g|0)!=-1){h=i[i[h+12>>2]+(g<<2)>>2];if((h|0)!=-1){i[d>>2]=e|f;Ti(l,c,b);c=h+1|0;if((((c>>>0)%3|0?c:h+ -2|0)|0)==-1){break e}d=b+ -2|0;c=b+1|0;b=-1;c=(c>>>0)%3|0?c:d;if((c|0)!=-1){b=i[i[i[a+4>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;g=1<>2];j=c>>>5|0;f=i[e+(j<<2)>>2];break d}}}i[d>>2]=e|f;Ti(l,c,b)}d=-1;e=i[a+4>>2];c=-1;f=b+1|0;f=(f>>>0)%3|0?f:b+ -2|0;if((f|0)!=-1){c=i[i[e+12>>2]+(f<<2)>>2]}b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)!=-1){d=i[i[e+12>>2]+(b<<2)>>2]}b=(d|0)==-1;h=b?-1:(d>>>0)/3|0;f=(c>>>0)/3|0;f:{g=(c|0)==-1;if(!g){e=i[a+24>>2];g=g?-1:f;j=g>>>5|0;f=i[e+(j<<2)>>2];g=1<>2];j=h>>>5|0;f=i[e+(j<<2)>>2];if(!(g&f)){break d}}d=i[a+52>>2]+ -4|0;i[a+52>>2]=d;break b}if(b){b=c;break d}if(i[(h>>>3&536870908)+e>>2]>>>h&1){b=c;break d}b=i[a+52>>2];i[b+ -4>>2]=d;if((b|0)!=i[a+56>>2]){i[b>>2]=c;d=b+4|0;break c}g:{e=i[k>>2];f=b-e|0;h=f>>2;d=h+1|0;if(d>>>0<1073741824){g=f>>1;d=h>>>0<536870911?g>>>0>>0?d:g:1073741823;b=0;h:{if(!d){break h}if(d>>>0>=1073741824){break g}b=ho(d<<2)}h=b+(h<<2)|0;i[h>>2]=c;c=b+(d<<2)|0;d=h+4|0;if((f|0)>=1){hp(b,e,f)}i[a+56>>2]=c;i[a+52>>2]=d;i[a+48>>2]=b;if(!e){break b}bp(e);d=i[a+52>>2];break b}Ho();x()}za(11708);x()}i[(j<<2)+e>>2]=f|g;if((b|0)!=-1){continue}break}return 0}i[a+52>>2]=d}if(i[k>>2]!=(d|0)){continue}break}}return 1}function Bj(a){var b=0,c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;f=F+ -64|0;F=f;s=a+32|0;b=i[a+12>>2]-i[a+8>>2]>>2;e=i[a+32>>2];d=i[a+36>>2]-e>>2;a:{if(b>>>0>d>>>0){Bd(s,b-d|0);b=i[a+12>>2]-i[a+8>>2]>>2;break a}if(b>>>0>=d>>>0){break a}i[a+36>>2]=e+(b<<2)}g[f+32|0]=0;q=Cj(f+48|0,b,f+32|0);b=i[a+8>>2];c=i[a+12>>2];while(1){b:{c:{if(k>>>0>2>>>0){j=0;h=0;e=0;if((b|0)==(c|0)){break c}while(1){n=1<>>5<<2;d:{if(n&i[r+i[q>>2]>>2]){break d}d=0;p=1;m=e<<2;c=i[m+b>>2];h=i[c+4>>2];if((h|0)!=i[c+8>>2]){while(1){b=0;h=i[(d<<2)+h>>2];e:{if((I[i[i[c>>2]+24>>2]](c,h)|0)<1){break e}while(1){f:{c=i[m+i[a+8>>2]>>2];c=I[i[i[c>>2]+28>>2]](c,h,b)|0;if((c|0)==(e|0)){break f}c=i[i[a+20>>2]+(c<<2)>>2];if(i[i[q>>2]+(c>>>3&536870908)>>2]>>>c&1){break f}p=0;break e}b=b+1|0;c=i[m+i[a+8>>2]>>2];if((b|0)<(I[i[i[c>>2]+24>>2]](c,h)|0)){continue}break}}b=i[a+8>>2];c=i[m+b>>2];h=i[c+4>>2];d=d+1|0;if(d>>>0>2]-h>>2>>>0){continue}break}if(!p){break d}}i[i[s>>2]+(k<<2)>>2]=e;d=r+i[q>>2]|0;i[d>>2]=n|i[d>>2];j=1;k=k+1|0}e=e+1|0;c=i[a+12>>2];h=c-b>>2;if(e>>>0>>0){continue}break}break c}i[f+40>>2]=0;i[f+32>>2]=0;i[f+36>>2]=0;b=i[a+4>>2];d=i[b+12>>2];b=i[b+8>>2];g[f+15|0]=0;h=Cj(f+16|0,d-b>>2,f+15|0);c=i[a+8>>2];d=i[a+12>>2];g:{if((c|0)==(d|0)){l=1;break g}while(1){h:{k=i[i[s>>2]+(t<<2)>>2]<<2;b=i[k+c>>2];e=i[b+8>>2];j=i[b+4>>2];b=e-j|0;if((b|0)<8){break h}c=b>>2;l=i[f+32>>2];d=i[f+36>>2]-l>>2;i:{if(c>>>0>d>>>0){Bd(f+32|0,c-d|0);break i}if(c>>>0>=d>>>0){break i}i[f+36>>2]=l+(c<<2)}d=j-e|0;b=o(((d|0)>(b|0)?d:b)>>>2|0,(b|0)<1?b:1);r=(b|0)>1?b:1;j=0;while(1){j:{if((j|0)<(c|0)){e=i[h>>2];d=0;l=0;while(1){u=1<>>5<<2;k:{if(u&i[n+e>>2]){break k}b=0;e=i[k+i[a+8>>2]>>2];m=i[i[e+4>>2]+(d<<2)>>2];if((I[i[i[e>>2]+24>>2]](e,m)|0)>0){while(1){e=i[k+i[a+8>>2]>>2];p=I[i[i[e>>2]+28>>2]](e,m,b)|0;e=i[h>>2];if(!(i[e+(p>>>3&536870908)>>2]>>>p&1)){break k}b=b+1|0;e=i[k+i[a+8>>2]>>2];if((b|0)<(I[i[i[e>>2]+24>>2]](e,m)|0)){continue}break}}i[i[f+32>>2]+(j<<2)>>2]=d;e=i[h>>2];b=n+e|0;i[b>>2]=u|i[b>>2];l=1;j=j+1|0}d=d+1|0;if((r|0)!=(d|0)){continue}break}break j}Dj(i[k+i[a+8>>2]>>2],f+32|0);c=i[a+8>>2];d=i[a+12>>2];break h}if(!(l^1)|(j|0)>=(c|0)){continue}break}l=0;break g}l=1;t=t+1|0;if(t>>>0>2>>>0){continue}break}}a=i[h>>2];if(a){bp(a)}a=i[f+32>>2];if(!a){break b}i[f+36>>2]=a;bp(a);break b}if(j&1|k>>>0>=h>>>0){continue}}break}a=i[q>>2];if(a){bp(a)}F=f- -64|0;return l}function Ma(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=F-96|0;F=e;i[e+72>>2]=0;i[e+76>>2]=0;i[e+64>>2]=0;i[e+68>>2]=0;i[e+80>>2]=1065353216;c=i[a+80>>2];i[e+40>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[e+32>>2]=h;d=c+h|0;i[e+40>>2]=d;ip(h,0,c);i[e+36>>2]=d;while(1){c=b;l=i[c+48>>2];d=i[i[c>>2]>>2];u=p;l=up(i[c+40>>2],i[c+44>>2],p,0)+l|0;c=d+l|0;l=j[c+12|0]|j[c+13|0]<<8|(j[c+14|0]<<16|j[c+15|0]<<24);q=j[c+8|0]|j[c+9|0]<<8|(j[c+10|0]<<16|j[c+11|0]<<24);i[e+56>>2]=q;i[e+60>>2]=l;d=j[c+4|0]|j[c+5|0]<<8|(j[c+6|0]<<16|j[c+7|0]<<24);l=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+48>>2]=l;i[e+52>>2]=d;s=i[e+52>>2];t=i[e+60>>2];c:{d:{e:{if(!m){break e}d=i[e+64>>2];r=(((l^318)+239^s)+239^q)+239^t;c=r&m+ -1;v=xp(m)>>>0>1;f:{if(!v){break f}c=r;if(c>>>0>>0){break f}c=(r>>>0)%(m>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}w=m+ -1|0;while(1){k=i[d+4>>2];g:{if((r|0)!=(k|0)){h:{if(!v){k=k&w;break h}if(k>>>0>>0){break h}k=(k>>>0)%(m>>>0)|0}if((c|0)==(k|0)){break g}break e}if(i[d+8>>2]!=(l|0)|i[d+12>>2]!=(s|0)|i[d+16>>2]!=(q|0)){break g}if(i[d+20>>2]==(t|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+24>>2]=n;i[e+20>>2]=t;i[e+16>>2]=q;i[e+12>>2]=s;i[e+8>>2]=l;_a(e+88|0,e- -64|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,n)|0,e+48|0,c);h=i[e+32>>2];i[h+(u<<2)>>2]=n;n=n+1|0;break c}i[(u<<2)+h>>2]=i[d+24>>2]}c=f;f=p+1|0;if(f>>>0<1){c=c+1|0}p=f;f=c;d=i[a+80>>2];if(!c&p>>>0>>0|c>>>0<0){m=i[e+68>>2];continue}break}if((d|0)!=(n|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}h=i[e+32>>2];if(!d){break i}b=i[a+68>>2];k=0;while(1){c=k<<2;i[c+b>>2]=i[c+h>>2];k=k+1|0;if((k|0)!=(d|0)){continue}break}}i[a+80>>2]=n}if(!h){break b}i[e+36>>2]=h;bp(h)}d=i[e+72>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+64>>2];i[e+64>>2]=0;if(a){bp(a)}F=e+96|0;return n}Ho();x()}function jh(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;Ah(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function ih(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;zh(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function hh(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;yh(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function gh(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;xh(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function eh(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*1048576+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==1048576){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;wh(g,p,k+24|0);g:{if((n|0)<1048576){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -1048576;f=0;break g}c=n+ -1048576|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=1048576/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==1048576){n=1048576;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=1048576){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*9.5367431640625e-7)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function vm(a,b){var c=0,d=0,e=0,f=0,h=0,k=0;a:{b:{d=b;h=i[b>>2];if(h){c=i[b+4>>2];if(!c){break b}while(1){d=c;c=i[c>>2];if(c){continue}break}}h=i[d+4>>2];if(h){break b}h=0;e=1;break a}i[h+8>>2]=i[d+8>>2];e=0}f=i[d+8>>2];c=i[f>>2];c:{if((d|0)==(c|0)){i[f>>2]=h;if((a|0)==(d|0)){c=0;a=h;break c}c=i[f+4>>2];break c}i[f+4>>2]=h}d:{e:{f:{k=!j[d+12|0];if((b|0)!=(d|0)){f=i[b+8>>2];i[d+8>>2]=f;i[f+((i[i[b+8>>2]>>2]!=(b|0))<<2)>>2]=d;f=i[b>>2];i[d>>2]=f;i[f+8>>2]=d;f=i[b+4>>2];i[d+4>>2]=f;if(f){i[f+8>>2]=d}g[d+12|0]=j[b+12|0];a=(a|0)==(b|0)?d:a}if(!(k|!a)){if(e){while(1){b=j[c+12|0];g:{e=i[c+8>>2];if(i[e>>2]!=(c|0)){if(!b){g[c+12|0]=1;g[e+12|0]=0;d=i[e+4>>2];b=i[d>>2];i[e+4>>2]=b;if(b){i[b+8>>2]=e}i[d+8>>2]=i[e+8>>2];b=i[e+8>>2];i[(((e|0)!=i[b>>2])<<2)+b>>2]=d;i[d>>2]=e;i[e+8>>2]=d;b=i[c>>2];a=(b|0)==(a|0)?c:a;c=i[b+4>>2]}d=i[c>>2];if(!(j[d+12|0]?0:d)){b=i[c+4>>2];if(j[b+12|0]?0:b){break f}g[c+12|0]=0;c=i[c+8>>2];h:{if((c|0)==(a|0)){c=a;break h}if(j[c+12|0]){break g}}g[c+12|0]=1;return}b=i[c+4>>2];if(b){break f}break e}i:{if(b){b=c;break i}g[c+12|0]=1;g[e+12|0]=0;b=i[c+4>>2];i[e>>2]=b;if(b){i[b+8>>2]=e}i[c+8>>2]=i[e+8>>2];d=i[e+8>>2];j:{if((e|0)==i[d>>2]){i[d>>2]=c;b=i[e>>2];break j}i[d+4>>2]=c}i[c+4>>2]=e;i[e+8>>2]=c;a=(a|0)==(e|0)?c:a}d=i[b>>2];k:{if(!(!d|j[d+12|0])){c=b;break k}c=i[b+4>>2];if(!(j[c+12|0]?0:c)){g[b+12|0]=0;c=i[b+8>>2];if(j[c+12|0]?(c|0)!=(a|0):0){break g}g[c+12|0]=1;return}if(d){if(!j[d+12|0]){c=b;break k}c=i[b+4>>2]}g[c+12|0]=1;g[b+12|0]=0;a=i[c>>2];i[b+4>>2]=a;if(a){i[a+8>>2]=b}i[c+8>>2]=i[b+8>>2];a=i[b+8>>2];i[((i[a>>2]!=(b|0))<<2)+a>>2]=c;i[c>>2]=b;i[b+8>>2]=c;d=b}a=c;c=i[c+8>>2];g[a+12|0]=j[c+12|0];g[c+12|0]=1;g[d+12|0]=1;b=i[c>>2];a=i[b+4>>2];i[c>>2]=a;if(a){i[a+8>>2]=c}i[b+8>>2]=i[c+8>>2];a=i[c+8>>2];i[(((c|0)!=i[a>>2])<<2)+a>>2]=b;i[b+4>>2]=c;i[c+8>>2]=b;return}b=i[c+8>>2];c=i[((i[b>>2]==(c|0))<<2)+b>>2];continue}}g[h+12|0]=1}return}if(j[b+12|0]){break e}d=c;break d}g[d+12|0]=1;g[c+12|0]=0;a=i[d+4>>2];i[c>>2]=a;if(a){i[a+8>>2]=c}i[d+8>>2]=i[c+8>>2];a=i[c+8>>2];i[((i[a>>2]!=(c|0))<<2)+a>>2]=d;i[d+4>>2]=c;i[c+8>>2]=d;b=c}c=i[d+8>>2];g[d+12|0]=j[c+12|0];g[c+12|0]=1;g[b+12|0]=1;b=i[c+4>>2];a=i[b>>2];i[c+4>>2]=a;if(a){i[a+8>>2]=c}i[b+8>>2]=i[c+8>>2];a=i[c+8>>2];i[(((c|0)!=i[a>>2])<<2)+a>>2]=b;i[b>>2]=c;i[c+8>>2]=b}function ch(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*524288+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==524288){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;vh(g,p,k+24|0);g:{if((n|0)<524288){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+524288;f=0;break g}c=n+ -524288|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=524288/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==524288){n=524288;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=524288){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*19073486328125e-19)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function ah(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*262144+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==262144){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;uh(g,p,k+24|0);g:{if((n|0)<262144){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+262144;f=0;break g}c=n+ -262144|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=262144/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==262144){n=262144;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=262144){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*3814697265625e-18)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Nl(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;k=F-48|0;F=k;i[a+36>>2]=b;p=a+24|0;d=i[a+24>>2];c=i[a+28>>2]-d>>2;a:{if(c>>>0>>0){Ol(p,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+28>>2]=d+(b<<2)}g[k+16|0]=0;l=Cj(k+32|0,b,k+16|0);c=i[a>>2];d=i[a+4>>2];g[k+8|0]=0;q=Cj(k+16|0,d-c>>2,k+8|0);b:{h=i[a+4>>2];c=i[a>>2];if(h-c>>2>>>0<3){break b}t=a+48|0;while(1){m=o(r,3);e=i[(m<<2)+c>>2];d=m+1|0;c:{d:{if((d|0)==-1){j=0;f=-1;break d}f=i[(d<<2)+c>>2];j=m+2|0;d=-1;if((j|0)==-1){break c}}d=i[(j<<2)+c>>2]}e:{if(!((d|0)==(f|0)|(e|0)==(f|0)|(d|0)==(e|0))){j=i[q>>2];n=0;while(1){d=m+n|0;f:{if(i[(d>>>3&536870908)+j>>2]>>>d&1){break f}h=i[i[a>>2]+(d<<2)>>2];i[k+8>>2]=h;c=1<>2];f=h>>>5|0;j=i[e+(f<<2)>>2];s=c&j;if(s){Pl(p,16512);Pl(t,k+8|0);c=i[l+4>>2];f=i[l+8>>2];if((c|0)==f<<5){if((c+1|0)<=-1){break e}e=l;if(c>>>0<=1073741822){h=c+32&-32;c=f<<6;c=c>>>0>>0?h:c}else{c=2147483647}bd(e,c);c=i[l+4>>2]}i[l+4>>2]=c+1;e=i[l>>2];f=e+(c>>>3&536870908)|0;h=i[f>>2];u=f,v=yp(-2,c)&h,i[u>>2]=v;i[k+8>>2]=b;c=1<>>5|0;j=i[(f<<2)+e>>2];b=b+1|0}i[(f<<2)+e>>2]=c|j;j=i[q>>2];c=d;g:{while(1){if((c|0)==-1){break g}e=(c>>>3&536870908)+j|0;i[e>>2]=i[e>>2]|1<>2];i[i[p>>2]+(e<<2)>>2]=c;if(s){i[i[a>>2]+(c<<2)>>2]=e}h=d;f=c+1|0;c=(f>>>0)%3|0?f:c+ -2|0;e=-1;h:{if((c|0)==-1){break h}f=i[i[a+12>>2]+(c<<2)>>2];e=-1;if((f|0)==-1){break h}c=f+1|0;e=(c>>>0)%3|0?c:f+ -2|0}c=e;if((h|0)!=(c|0)){continue}break}if((d|0)!=-1){break f}}d=d+((d>>>0)%3|0?-1:2)|0;if((d|0)==-1){break f}d=i[i[a+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)==-1){break f}while(1){d=(c>>>3&536870908)+j|0;i[d>>2]=i[d>>2]|1<>2]+(c<<2)>>2]=i[k+8>>2]}d=((c>>>0)%3|0?-1:2)+c|0;if((d|0)==-1){break f}d=i[i[a+12>>2]+(d<<2)>>2];if((d|0)==-1){break f}c=d+((d>>>0)%3|0?-1:2)|0;if((c|0)!=-1){continue}break}}n=n+1|0;if((n|0)!=3){continue}break}c=i[a>>2];h=i[a+4>>2]}r=r+1|0;if(r>>>0<(h-c>>2>>>0)/3>>>0){continue}break b}break}Ho();x()}j=0;i[a+44>>2]=0;b=i[l>>2];c=i[l+4>>2];d=c>>>5|0;f=c&31;if(d|f){h=(d<<2)+b|0;c=0;e=b;while(1){if(!(i[e>>2]>>>c&1)){j=j+1|0;i[a+44>>2]=j}d=(c|0)==31;c=d?0:c+1|0;e=d?e+4|0:e;if((h|0)!=(e|0)|(c|0)!=(f|0)){continue}break}}a=i[q>>2];if(a){bp(a);b=i[l>>2]}if(b){bp(b)}F=k+48|0}function _g(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*65536+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==65536){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;th(g,p,k+24|0);g:{if((n|0)<65536){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+65536;f=0;break g}c=n+ -65536|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=65536/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==65536){n=65536;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=65536){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*152587890625e-16)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Yg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*32768+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==32768){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;sh(g,p,k+24|0);g:{if((n|0)<32768){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+32768;f=0;break g}c=n+ -32768|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=32768/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==32768){n=32768;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=32768){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*30517578125e-15)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Wg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*8192+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==8192){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;rh(g,p,k+24|0);g:{if((n|0)<8192){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)- -8192;f=0;break g}c=n+ -8192|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=8192/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==8192){n=8192;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=8192){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.0001220703125)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function ng(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;Hg(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Vg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;qh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Ug(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;ph(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Tg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;oh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Sg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;nh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Rg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;mh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Qg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;lh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Pg(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,t=0,w=0,y=0,z=0;k=F-32|0;F=k;if((c|0)<=0){j=0}else{while(1){r=h;h=(f<<3)+b|0;l=i[h+4>>2];g=i[h>>2];h=!(l|g)?r:f;e=e+l|0;l=g+m|0;if(l>>>0>>0){e=e+1|0}m=l;f=f+1|0;if((f|0)!=(c|0)){continue}break}j=+(m>>>0)+ +(e>>>0)*4294967296}e=h+1|0;i[a+12>>2]=e;g=i[a>>2];c=i[a+4>>2]-g>>3;a:{if(e>>>0>c>>>0){ig(a,e-c|0);break a}if(e>>>0>=c>>>0){break a}i[a+4>>2]=g+(e<<3)}b:{c:{d:{e:{if((h|0)>=0){g=i[a>>2];f=0;while(1){l=f<<3;m=l+b|0;c=i[m+4>>2];m=i[m>>2];t=(m|0)!=0|(c|0)!=0;l=g+l|0;o=(+(m>>>0)+ +(c>>>0)*4294967296)/j*4096+.5;f:{if(o<4294967296&o>=0){c=~~o>>>0;break f}c=0}c=t?c?c:1:c;i[l>>2]=c;n=c+n|0;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}if((n|0)==4096){break e}}i[k+16>>2]=0;i[k+8>>2]=0;i[k+12>>2]=0;g=0;if(e){if(e>>>0>=1073741824){break b}c=e<<2;g=ho(c);i[k+8>>2]=g;p=c+g|0;i[k+16>>2]=p;ip(g,0,c);i[k+12>>2]=p}if((h|0)>-1){f=0;while(1){i[(f<<2)+g>>2]=f;c=(f|0)==(h|0);f=f+1|0;if(!c){continue}break}}i[k+24>>2]=a;kh(g,p,k+24|0);g:{if((n|0)<4096){c=i[a>>2]+(i[i[k+12>>2]+ -4>>2]<<3)|0;i[c>>2]=(i[c>>2]-n|0)+4096;f=0;break g}c=n+ -4096|0;l=i[k+8>>2];m=(h|0)<1;while(1){h:{if(m){break h}j=4096/+(n|0);p=i[a>>2];g=h;while(1){f=p+(i[(g<<2)+l>>2]<<3)|0;e=i[f>>2];if(e>>>0<=1){if((g|0)!=(h|0)){break h}f=1;break g}t=e+ -1|0;r=f;y=e;z=c;f=e;o=u(j*+(e>>>0));i:{if(q(o)<2147483648){w=~~o;break i}w=-2147483648}f=f-w|0;f=f?f:1;e=(f|0)<(e|0)?f:t;e=(e|0)>(c|0)?z:e;i[r>>2]=y-e;c=c-e|0;n=n-e|0;if((n|0)==4096){n=4096;break h}e=(g|0)>1;g=g+ -1|0;if(e){continue}break}}f=0;if((c|0)>0){continue}break}}c=i[k+8>>2];if(c){i[k+12>>2]=c;bp(c)}if(!((h|0)<0|f)){break d}break c}if((h|0)<0){break c}}e=i[a>>2];f=0;c=0;while(1){g=e+(f<<3)|0;i[g+4>>2]=c;c=i[g>>2]+c|0;g=(f|0)==(h|0);f=f+1|0;if(!g){continue}break}if((c|0)!=4096){break c}f=0;j=0;if((h|0)>=0){c=i[a>>2];while(1){e=f<<3;g=i[e+c>>2];if(g){e=b+e|0;l=i[e+4>>2];e=i[e>>2];j=j+ep(+(g>>>0)*.000244140625)*(+(e>>>0)+ +(l>>>0)*4294967296)}e=(f|0)==(h|0);f=f+1|0;if(!e){continue}break}}b=a;c=a;j=v(-j);j:{if(j<0x10000000000000000&j>=0){e=q(j)>=1?j>0?~~s(u(j*2.3283064365386963e-10),4294967295)>>>0:~~v((j- +(~~j>>>0>>>0))*2.3283064365386963e-10)>>>0:0;h=~~j>>>0;break j}e=0;h=0}i[c+16>>2]=h;i[b+20>>2]=e;Ig(a,d)}F=k+32|0;return}Ho();x()}function Ci(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;m=F-16|0;F=m;i[a+124>>2]=i[a+124>>2]+1;g=-1;d=i[a+120>>2];c=-1;a:{if((d|0)==-1){break a}c=d+1|0;g=(c>>>0)%3|0?c:d+ -2|0;c=d+ -1|0;if((d>>>0)%3|0){break a}c=d+2|0}e=i[a+104>>2];f=i[a+92>>2];h=f+(g<<2)|0;j=e+(i[h>>2]<<2)|0;k=i[j>>2];b:{c:{switch(b|0){case 0:case 1:i[j>>2]=k+ -1;d=(i[(c<<2)+f>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -1;d=1;if((b|0)!=1){break b}d:{if((c|0)==-1){break d}c=i[i[i[a+88>>2]+12>>2]+(c<<2)>>2];if((c|0)==-1){break d}while(1){e:{e=i[a+64>>2];if(I[i[i[e>>2]+36>>2]](e,(c>>>0)/3|0)|0){break e}e=c+1|0;c=(e>>>0)%3|0?e:c+ -2|0;if((c|0)==-1){d=d+1|0;break e}d=d+1|0;c=i[i[i[a+88>>2]+12>>2]+(c<<2)>>2];if((c|0)!=-1){continue}}break}e=i[a+104>>2];f=i[a+92>>2]}h=a+104|0;i[(i[(i[a+120>>2]<<2)+f>>2]<<2)+e>>2]=d;f=1;f:{if((g|0)==-1){break f}c=i[i[i[a+88>>2]+12>>2]+(g<<2)>>2];if((c|0)==-1){break f}e=i[a+108>>2]-e>>2;while(1){d=i[a+64>>2];g=(c>>>0)/3|0;if(I[i[i[d>>2]+36>>2]](d,g)|0){break f}d=c+1|0;i[i[a+92>>2]+(((d>>>0)%3|0?d:c+ -2|0)<<2)>>2]=e;c=(c-o(g,3)|0?-1:2)+c|0;if((c|0)==-1){f=f+1|0;break f}f=f+1|0;c=i[i[i[a+88>>2]+12>>2]+(c<<2)>>2];if((c|0)!=-1){continue}break}}i[m+12>>2]=f;Di(h,m+12|0);break b;case 5:d=(i[(d<<2)+f>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -1;d=(i[h>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -1;c=(i[(c<<2)+f>>2]<<2)+e|0;i[c>>2]=i[c>>2]+ -2;break b;case 3:d=(i[(d<<2)+f>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -1;d=(i[h>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -2;c=(i[(c<<2)+f>>2]<<2)+e|0;i[c>>2]=i[c>>2]+ -1;break b;case 7:break c;default:break b}}d=(i[(d<<2)+f>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -2;d=(i[h>>2]<<2)+e|0;i[d>>2]=i[d>>2]+ -2;c=(i[(c<<2)+f>>2]<<2)+e|0;i[c>>2]=i[c>>2]+ -2}g:{h:{f=i[a+116>>2];i:{if((f|0)==-1){break i}e=i[a+128>>2];c=e;d=i[a+136>>2];if((k|0)>=(c|0)){c=i[a+132>>2];c=(k|0)>(c|0)?c:k}e=o(c-e|0,12)+d|0;g=e+4|0;k=i[(f<<2)+12080>>2];c=i[e+4>>2];j=i[e+8>>2];if(c>>>0>>0){i[c>>2]=k;i[g>>2]=c+4;break i}f=i[e>>2];h=c-f|0;l=h>>2;d=l+1|0;if(d>>>0>=1073741824){break h}j=j-f|0;c=j>>1;d=j>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;j:{if(!d){break j}if(d>>>0>=1073741824){break g}c=ho(d<<2)}j=e+8|0;l=c+(l<<2)|0;i[l>>2]=k;d=c+(d<<2)|0;k=l+4|0;if((h|0)>=1){hp(c,f,h)}i[e>>2]=c;i[g>>2]=k;i[j>>2]=d;if(!f){break i}bp(f)}i[a+116>>2]=b;F=m+16|0;return}Ho();x()}za(11708);x()}function Ua(a,b){var c=0,d=0,e=0,f=0,h=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;e=F-80|0;F=e;i[e+56>>2]=0;i[e+60>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+64>>2]=1065353216;d=i[a+80>>2];i[e+32>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;a:{b:{if(!d){break b}if(d>>>0>=1073741824){break a}d=d<<2;h=ho(d);i[e+24>>2]=h;f=d+h|0;i[e+32>>2]=f;ip(h,0,d);i[e+28>>2]=f;while(1){d=b;c=i[d+48>>2];f=i[i[d>>2]>>2];t=s;c=up(i[d+40>>2],i[d+44>>2],s,0)+c|0;c=f+c|0;d=j[c+4|0]|j[c+5|0]<<8|(j[c+6|0]<<16|j[c+7|0]<<24);p=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+40>>2]=p;i[e+44>>2]=d;c:{d:{e:{if(!m){break e}c=i[e+48>>2];u=d>>>16|0;v=d&65535;w=((d&65535)<<16|p>>>16)&65535;z=p;q=u^(v^(w^((p^318)&65535)+239)+239)+239;f=q&m+ -1;y=xp(m)>>>0>1;f:{if(!y){break f}f=q;if(f>>>0>>0){break f}f=(q>>>0)%(m>>>0)|0}c=i[(f<<2)+c>>2];if(!c){break e}c=i[c>>2];if(!c){break e}A=m+ -1|0;while(1){l=i[c+4>>2];g:{if((q|0)!=(l|0)){h:{if(!y){l=l&A;break h}if(l>>>0>>0){break h}l=(l>>>0)%(m>>>0)|0}if((f|0)==(l|0)){break g}break e}if(k[c+8>>1]!=(z&65535)|k[c+10>>1]!=(w|0)|k[c+12>>1]!=(v|0)){break g}if(k[c+14>>1]==(u|0)){break d}}c=i[c>>2];if(c){continue}break}}i[e+16>>2]=n;i[e+8>>2]=p;i[e+12>>2]=d;wb(e+72|0,e+48|0,e+8|0,e+8|0);d=i[a+40>>2];hp(i[i[a>>2]>>2]+o(d,n)|0,e+40|0,d);h=i[e+24>>2];i[h+(t<<2)>>2]=n;n=n+1|0;break c}i[(t<<2)+h>>2]=i[c+16>>2]}d=r;f=s+1|0;if(f>>>0<1){d=d+1|0}s=f;r=d;c=i[a+80>>2];if(!d&f>>>0>>0|d>>>0<0){m=i[e+52>>2];continue}break}if((c|0)!=(n|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}d=f-b|0;r=(d|0)>-1?d:-1;f=b-f|0;d=o((r|0)<1?r:1,((f|0)>(d|0)?f:d)>>>2|0);d=d>>>0>1?d:1;c=0;while(1){f=b+(c<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];c=c+1|0;if((d|0)!=(c|0)){continue}break}break i}g[a+84|0]=0;d=i[a+68>>2];b=i[a+72>>2]-d>>2;j:{if(c>>>0>b>>>0){Xa(a+68|0,c-b|0,1420);c=i[a+80>>2];break j}if(c>>>0>=b>>>0){break j}i[a+72>>2]=d+(c<<2)}h=i[e+24>>2];if(!c){break i}b=i[a+68>>2];l=0;while(1){d=l<<2;i[d+b>>2]=i[d+h>>2];l=l+1|0;if((l|0)!=(c|0)){continue}break}}i[a+80>>2]=n}if(!h){break b}i[e+28>>2]=h;bp(h)}c=i[e+56>>2];if(c){while(1){a=i[c>>2];bp(c);c=a;if(c){continue}break}}a=i[e+48>>2];i[e+48>>2]=0;if(a){bp(a)}F=e+80|0;return n}Ho();x()}function Fh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;g=F-16|0;F=g;b=i[a+64>>2];a:{if(!b){break a}l=I[i[i[b>>2]+32>>2]](b)|0;if(!l){break a}q=(i[l+28>>2]-i[l+24>>2]>>2)-i[l+44>>2]|0;b=i[a+56>>2];d=i[b+8>>2];b:{if((i[b+12>>2]-d|0)<5){break b}i[g+8>>2]=0;i[g>>2]=0;i[g+4>>2]=0;c:{d:{while(1){e:{f:{if(!i[i[(c<<2)+d>>2]+56>>2]){break f}h=I[i[i[a>>2]+56>>2]](a,c)|0;if(!h){break f}if(i[g+8>>2]!=(f|0)){i[f>>2]=h;f=f+4|0;i[g+4>>2]=f;break f}j=i[g>>2];d=f-j|0;f=d>>2;e=f+1|0;if(e>>>0>=1073741824){break e}k=d>>1;e=f>>>0<536870911?k>>>0>>0?e:k:1073741823;b=0;g:{if(!e){break g}if(e>>>0>=1073741824){break d}b=ho(e<<2)}f=b+(f<<2)|0;i[f>>2]=h;e=b+(e<<2)|0;f=f+4|0;if((d|0)>=1){hp(b,j,d)}i[g+8>>2]=e;i[g+4>>2]=f;i[g>>2]=b;if(!j){break f}bp(j)}m=i[a+56>>2];d=i[m+8>>2];c=c+1|0;if((c|0)>2]-d>>2){continue}break c}break}Ho();x()}za(11116);x()}n=i[l+24>>2];c=i[l+28>>2];h:{if((n|0)==(c|0)){k=i[g>>2];break h}b=c-n|0;j=(b|0)>-1?b:-1;c=n-c|0;b=o((j|0)<1?j:1,((c|0)>(b|0)?c:b)>>>2|0);s=b>>>0>1?b:1;k=i[g>>2];b=f-k|0;c=(b|0)>-1?b:-1;d=(c|0)<1?c:1;c=k-f|0;b=o(d,((c|0)>(b|0)?c:b)>>>2|0);t=b>>>0>1?b:1;while(1){e=i[(r<<2)+n>>2];if((e|0)!=-1){i:{if((e|0)<=-1){c=(e>>>0)%3|0;b=-1;break i}b=(e>>>0)/3|0;c=e-o(b,3)|0;b=i[(i[m+96>>2]+o(b,12)|0)+(c<<2)>>2]}p=0;c=e+(c?-1:2)|0;j:{if((c|0)==-1){break j}c=i[i[l+12>>2]+(c<<2)>>2];if((c|0)==-1){break j}j=e;d=c+((c>>>0)%3|0?-1:2)|0;if((d|0)==-1){break j}while(1){c=(d|0)<0?-1:i[(i[m+96>>2]+o((d>>>0)/3|0,12)|0)+((d>>>0)%3<<2)>>2];k:{if((b|0)==(c|0)){c=0;if((f|0)==(k|0)){c=b;break k}l:{while(1){h=i[i[(c<<2)+k>>2]+28>>2];if(i[h+(d<<2)>>2]!=i[h+(j<<2)>>2]){break l}c=c+1|0;if((t|0)!=(c|0)){continue}break}c=b;break k}c=b}p=p+1|0}if((d|0)==(e|0)|(d|0)==-1){break j}b=((d>>>0)%3|0?-1:2)+d|0;if((b|0)==-1){break j}h=i[i[l+12>>2]+(b<<2)>>2];if((h|0)==-1){break j}b=c;j=d;c=h+((h>>>0)%3|0?-1:2)|0;d=c;if((c|0)!=-1){continue}break}}c=1;b=e+1|0;b=(b>>>0)%3|0?b:e+ -2|0;m:{if((b|0)==-1){break m}b=i[i[l+12>>2]+(b<<2)>>2];if((b|0)==-1){break m}c=b+1|0;c=(((c>>>0)%3|0?c:b+ -2|0)|0)==-1}q=(q+p|0)-((c^1)&(p|0)!=0)|0}r=r+1|0;if((s|0)!=(r|0)){continue}break}}if(!k){break b}bp(k)}i[a+52>>2]=q}F=g+16|0}function La(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=F-80|0;F=e;i[e+56>>2]=0;i[e+60>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+64>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[e+16>>2]=h;d=c+h|0;i[e+24>>2]=d;ip(h,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];n=i[i[c>>2]>>2];t=p;d=up(i[c+40>>2],i[c+44>>2],p,0)+d|0;c=n+d|0;q=j[c+8|0]|j[c+9|0]<<8|(j[c+10|0]<<16|j[c+11|0]<<24);i[e+40>>2]=q;d=j[c+4|0]|j[c+5|0]<<8|(j[c+6|0]<<16|j[c+7|0]<<24);r=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+32>>2]=r;i[e+36>>2]=d;s=i[e+36>>2];c:{d:{e:{if(!l){break e}d=i[e+48>>2];n=((r^318)+239^s)+239^q;c=n&l+ -1;u=xp(l)>>>0>1;f:{if(!u){break f}c=n;if(c>>>0>>0){break f}c=(n>>>0)%(l>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}v=l+ -1|0;while(1){k=i[d+4>>2];g:{if((n|0)!=(k|0)){h:{if(!u){k=k&v;break h}if(k>>>0>>0){break h}k=(k>>>0)%(l>>>0)|0}if((c|0)==(k|0)){break g}break e}if(i[d+8>>2]!=(r|0)|i[d+12>>2]!=(s|0)){break g}if(i[d+16>>2]==(q|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=m;i[e+8>>2]=q;i[e+4>>2]=s;i[e>>2]=r;Za(e+72|0,e+48|0,e,e);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,m)|0,e+32|0,c);h=i[e+16>>2];i[h+(t<<2)>>2]=m;m=m+1|0;break c}i[(t<<2)+h>>2]=i[d+20>>2]}c=f;f=p+1|0;if(f>>>0<1){c=c+1|0}p=f;f=c;d=i[a+80>>2];if(!c&p>>>0>>0|c>>>0<0){l=i[e+52>>2];continue}break}if((d|0)!=(m|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}h=i[e+16>>2];if(!d){break i}b=i[a+68>>2];k=0;while(1){c=k<<2;i[c+b>>2]=i[c+h>>2];k=k+1|0;if((k|0)!=(d|0)){continue}break}}i[a+80>>2]=m}if(!h){break b}i[e+20>>2]=h;bp(h)}d=i[e+56>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+48>>2];i[e+48>>2]=0;if(a){bp(a)}F=e+80|0;return m}Ho();x()}function rd(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;a:{b:{c:{d:{e:{switch(b+ -1|0){case 0:b=ho(60);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break d}c=ho(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=hp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=4380;break a;case 3:b=ho(168);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break c}c=ho(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=hp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=4804;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=0;i[b+92>>2]=0;i[b+96>>2]=0;i[b+100>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;cg(b+112|0);i[b+160>>2]=0;i[b+152>>2]=0;i[b+156>>2]=0;break a;case 4:b=ho(104);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break b}c=ho(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=hp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=e+8|0;d=i[c>>2];f=i[c+4>>2];i[b+84>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=5040;i[b+52>>2]=d;i[b+56>>2]=f;d=i[e+4>>2];i[b+88>>2]=i[e>>2];i[b+92>>2]=d;d=i[c+4>>2];i[b+96>>2]=i[c>>2];i[b+100>>2]=d;break a;case 5:b=ho(144);td(b,c,d,e);break a;default:break e}}i[a>>2]=0;return}Ho();x()}Ho();x()}Ho();x()}i[a>>2]=b}function qd(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;a:{b:{c:{d:{e:{switch(b+ -1|0){case 0:b=ho(60);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break d}c=ho(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=hp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b>>2]=2476;break a;case 3:b=ho(168);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break c}c=ho(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=hp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=i[e+12>>2];i[b+52>>2]=i[e+8>>2];i[b+56>>2]=c;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=3240;i[b+68>>2]=0;i[b+72>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+84>>2]=0;i[b+88>>2]=0;i[b+92>>2]=0;i[b+96>>2]=0;i[b+100>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;cg(b+112|0);i[b+160>>2]=0;i[b+152>>2]=0;i[b+156>>2]=0;break a;case 4:b=ho(104);i[b+4>>2]=c;i[b>>2]=3184;c=i[d+8>>2];f=i[d+12>>2];g=i[d+16>>2];h=i[d+20>>2];j=i[d>>2];k=i[d+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=g;i[b+28>>2]=h;i[b+16>>2]=c;i[b+20>>2]=f;i[b+8>>2]=j;i[b+12>>2]=k;g=i[d+24>>2];f=i[d+28>>2]-g|0;if(f){d=f>>2;if(d>>>0>=1073741824){break b}c=ho(f);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((f|0)>=1){c=hp(c,g,f)+f|0}i[d+36>>2]=c}c=i[e+4>>2];i[b+44>>2]=i[e>>2];i[b+48>>2]=c;c=e+8|0;d=i[c>>2];f=i[c+4>>2];i[b+84>>2]=0;i[b+76>>2]=0;i[b+80>>2]=0;i[b+60>>2]=0;i[b+64>>2]=0;i[b>>2]=3488;i[b+52>>2]=d;i[b+56>>2]=f;d=i[e+4>>2];i[b+88>>2]=i[e>>2];i[b+92>>2]=d;d=i[c+4>>2];i[b+96>>2]=i[c>>2];i[b+100>>2]=d;break a;case 5:b=ho(144);sd(b,c,d,e);break a;default:break e}}i[a>>2]=0;return}Ho();x()}Ho();x()}Ho();x()}i[a>>2]=b}function Qa(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[e+16>>2]=h;d=c+h|0;i[e+24>>2]=d;ip(h,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];n=i[i[c>>2]>>2];t=q;d=up(i[c+40>>2],i[c+44>>2],q,0)+d|0;c=n+d|0;p=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+28>>2]=p;r=p>>>8&255;s=p>>>16&255;c:{d:{e:{if(!l){break e}d=i[e+32>>2];u=p>>>24|0;v=p&255;n=u^(((v^318)+239^r)+239^s)+239;c=n&l+ -1;w=xp(l)>>>0>1;f:{if(!w){break f}c=n;if(c>>>0>>0){break f}c=(n>>>0)%(l>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}y=l+ -1|0;while(1){k=i[d+4>>2];g:{if((n|0)!=(k|0)){h:{if(!w){k=k&y;break h}if(k>>>0>>0){break h}k=(k>>>0)%(l>>>0)|0}if((c|0)==(k|0)){break g}break e}if(j[d+8|0]!=(v|0)|j[d+9|0]!=(r|0)|j[d+10|0]!=(s|0)){break g}if(j[d+11|0]==(u|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=m;i[e+8>>2]=p&-16776961|s<<16|r<<8;kb(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,m)|0,e+28|0,c);h=i[e+16>>2];i[h+(t<<2)>>2]=m;m=m+1|0;break c}i[(t<<2)+h>>2]=i[d+12>>2]}c=f;f=q+1|0;if(f>>>0<1){c=c+1|0}q=f;f=c;d=i[a+80>>2];if(!c&q>>>0>>0|c>>>0<0){l=i[e+36>>2];continue}break}if((d|0)!=(m|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}h=i[e+16>>2];if(!d){break i}b=i[a+68>>2];k=0;while(1){c=k<<2;i[c+b>>2]=i[c+h>>2];k=k+1|0;if((k|0)!=(d|0)){continue}break}}i[a+80>>2]=m}if(!h){break b}i[e+20>>2]=h;bp(h)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return m}Ho();x()}function jn(a,b,c){var d=0,e=0,f=0,h=0,k=0,m=0,n=0,o=0,q=0,r=0;f=F-48|0;F=f;if(c>>>0<=2){a:{e=b+4|0;c=c<<2;q=i[c+17628>>2];r=i[c+17616>>2];while(1){c=i[b+4>>2];b:{if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break b}c=fn(b)}if(an(c)){continue}break}k=1;c:{d:{switch(c+ -43|0){case 0:case 2:break d;default:break c}}k=(c|0)==45?-1:1;c=i[b+4>>2];if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break c}c=fn(b)}e:{f:{while(1){if(g[d+17541|0]==(c|32)){g:{if(d>>>0>6){break g}c=i[b+4>>2];if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break g}c=fn(b)}d=d+1|0;if((d|0)!=8){continue}break f}break}if((d|0)!=3){if((d|0)==8){break f}if(d>>>0<4){break e}if((d|0)==8){break f}}b=i[b+104>>2];if(b){i[e>>2]=i[e>>2]+ -1}if(d>>>0<4){break f}while(1){if(b){i[e>>2]=i[e>>2]+ -1}d=d+ -1|0;if(d>>>0>3){continue}break}}un(f,p(p(k|0)*p(z)));m=i[f+8>>2];h=i[f+12>>2];n=i[f>>2];o=i[f+4>>2];break a}h:{i:{j:{if(d){break j}d=0;while(1){if(g[d+17550|0]!=(c|32)){break j}k:{if(d>>>0>1){break k}c=i[b+4>>2];if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break k}c=fn(b)}d=d+1|0;if((d|0)!=3){continue}break}break i}l:{switch(d|0){case 0:m:{if((c|0)!=48){break m}d=i[b+4>>2];n:{if(d>>>0>2]){i[e>>2]=d+1;d=j[d|0];break n}d=fn(b)}if((d&-33)==88){kn(f+16|0,b,r,q,k);m=i[f+24>>2];h=i[f+28>>2];n=i[f+16>>2];o=i[f+20>>2];break a}if(!i[b+104>>2]){break m}i[e>>2]=i[e>>2]+ -1}ln(f+32|0,b,c,r,q,k);m=i[f+40>>2];h=i[f+44>>2];n=i[f+32>>2];o=i[f+36>>2];break a;case 3:break i;default:break l}}if(i[b+104>>2]){i[e>>2]=i[e>>2]+ -1}i[4805]=28;break h}o:{c=i[b+4>>2];p:{if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break p}c=fn(b)}if((c|0)==40){d=1;break o}h=2147450880;if(!i[b+104>>2]){break a}i[e>>2]=i[e>>2]+ -1;break a}while(1){q:{c=i[b+4>>2];r:{if(c>>>0>2]){i[e>>2]=c+1;c=j[c|0];break r}c=fn(b)}if(!(c+ -48>>>0<10|c+ -65>>>0<26|(c|0)==95)){if(c+ -97>>>0>=26){break q}}d=d+1|0;continue}break}h=2147450880;if((c|0)==41){break a}b=i[b+104>>2];if(b){i[e>>2]=i[e>>2]+ -1}if(!d){break a}while(1){d=d+ -1|0;if(b){i[e>>2]=i[e>>2]+ -1}if(d){continue}break}break a}en(b)}}i[a>>2]=n;i[a+4>>2]=o;i[a+8>>2]=m;i[a+12>>2]=h;F=f+48|0}function Ta(a,b){var c=0,d=0,e=0,f=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;e=F-80|0;F=e;i[e+56>>2]=0;i[e+60>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+64>>2]=1065353216;c=i[a+80>>2];i[e+32>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;l=ho(c);i[e+24>>2]=l;d=c+l|0;i[e+32>>2]=d;ip(l,0,c);i[e+28>>2]=d;while(1){c=b;d=i[c+48>>2];q=i[i[c>>2]>>2];v=r;d=up(i[c+40>>2],i[c+44>>2],r,0)+d|0;c=q+d|0;s=j[c+4|0]|j[c+5|0]<<8;h[e+44>>1]=s;t=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+40>>2]=t;u=k[e+42>>1];c:{d:{e:{if(!n){break e}d=i[e+48>>2];q=(((t^318)&65535)+239^u)+239^s;c=q&n+262143;w=xp(n)>>>0>1;f:{if(!w){break f}c=q;if(c>>>0>>0){break f}c=(q>>>0)%(n>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}y=n+ -1|0;while(1){m=i[d+4>>2];g:{if((q|0)!=(m|0)){h:{if(!w){m=m&y;break h}if(m>>>0>>0){break h}m=(m>>>0)%(n>>>0)|0}if((c|0)==(m|0)){break g}break e}if(k[d+8>>1]!=(t&65535)|k[d+10>>1]!=(u|0)){break g}if(k[d+12>>1]==(s|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+16>>2]=p;h[e+12>>1]=s;h[e+10>>1]=u;h[e+8>>1]=t;vb(e+72|0,e+48|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,p)|0,e+40|0,c);l=i[e+24>>2];i[l+(v<<2)>>2]=p;p=p+1|0;break c}i[(v<<2)+l>>2]=i[d+16>>2]}c=f;f=r+1|0;if(f>>>0<1){c=c+1|0}r=f;f=c;d=i[a+80>>2];if(!c&r>>>0>>0|c>>>0<0){n=i[e+52>>2];continue}break}if((d|0)!=(p|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+l>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}l=i[e+24>>2];if(!d){break i}b=i[a+68>>2];m=0;while(1){c=m<<2;i[c+b>>2]=i[c+l>>2];m=m+1|0;if((m|0)!=(d|0)){continue}break}}i[a+80>>2]=p}if(!l){break b}i[e+28>>2]=l;bp(l)}d=i[e+56>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+48>>2];i[e+48>>2]=0;if(a){bp(a)}F=e+80|0;return p}Ho();x()}function El(a,b){var c=0,d=0,e=0,f=0;f=F-16|0;F=f;e=ho(32);i[f>>2]=e;i[f+4>>2]=30;i[f+8>>2]=-2147483616;g[e+30|0]=0;c=j[16476]|j[16477]<<8|(j[16478]<<16|j[16479]<<24);d=j[16472]|j[16473]<<8|(j[16474]<<16|j[16475]<<24);g[e+22|0]=d;g[e+23|0]=d>>>8;g[e+24|0]=d>>>16;g[e+25|0]=d>>>24;g[e+26|0]=c;g[e+27|0]=c>>>8;g[e+28|0]=c>>>16;g[e+29|0]=c>>>24;c=j[16470]|j[16471]<<8|(j[16472]<<16|j[16473]<<24);d=j[16466]|j[16467]<<8|(j[16468]<<16|j[16469]<<24);g[e+16|0]=d;g[e+17|0]=d>>>8;g[e+18|0]=d>>>16;g[e+19|0]=d>>>24;g[e+20|0]=c;g[e+21|0]=c>>>8;g[e+22|0]=c>>>16;g[e+23|0]=c>>>24;c=j[16462]|j[16463]<<8|(j[16464]<<16|j[16465]<<24);d=j[16458]|j[16459]<<8|(j[16460]<<16|j[16461]<<24);g[e+8|0]=d;g[e+9|0]=d>>>8;g[e+10|0]=d>>>16;g[e+11|0]=d>>>24;g[e+12|0]=c;g[e+13|0]=c>>>8;g[e+14|0]=c>>>16;g[e+15|0]=c>>>24;c=j[16454]|j[16455]<<8|(j[16456]<<16|j[16457]<<24);d=j[16450]|j[16451]<<8|(j[16452]<<16|j[16453]<<24);g[e|0]=d;g[e+1|0]=d>>>8;g[e+2|0]=d>>>16;g[e+3|0]=d>>>24;g[e+4|0]=c;g[e+5|0]=c>>>8;g[e+6|0]=c>>>16;g[e+7|0]=c>>>24;e=a+4|0;Yj(e,f,b);if(g[f+11|0]<=-1){bp(i[f>>2])}a=ho(32);i[f>>2]=a;i[f+4>>2]=29;i[f+8>>2]=-2147483616;g[a+29|0]=0;c=j[16506]|j[16507]<<8|(j[16508]<<16|j[16509]<<24);d=j[16502]|j[16503]<<8|(j[16504]<<16|j[16505]<<24);g[a+21|0]=d;g[a+22|0]=d>>>8;g[a+23|0]=d>>>16;g[a+24|0]=d>>>24;g[a+25|0]=c;g[a+26|0]=c>>>8;g[a+27|0]=c>>>16;g[a+28|0]=c>>>24;c=j[16501]|j[16502]<<8|(j[16503]<<16|j[16504]<<24);d=j[16497]|j[16498]<<8|(j[16499]<<16|j[16500]<<24);g[a+16|0]=d;g[a+17|0]=d>>>8;g[a+18|0]=d>>>16;g[a+19|0]=d>>>24;g[a+20|0]=c;g[a+21|0]=c>>>8;g[a+22|0]=c>>>16;g[a+23|0]=c>>>24;c=j[16493]|j[16494]<<8|(j[16495]<<16|j[16496]<<24);d=j[16489]|j[16490]<<8|(j[16491]<<16|j[16492]<<24);g[a+8|0]=d;g[a+9|0]=d>>>8;g[a+10|0]=d>>>16;g[a+11|0]=d>>>24;g[a+12|0]=c;g[a+13|0]=c>>>8;g[a+14|0]=c>>>16;g[a+15|0]=c>>>24;c=j[16485]|j[16486]<<8|(j[16487]<<16|j[16488]<<24);d=j[16481]|j[16482]<<8|(j[16483]<<16|j[16484]<<24);g[a|0]=d;g[a+1|0]=d>>>8;g[a+2|0]=d>>>16;g[a+3|0]=d>>>24;g[a+4|0]=c;g[a+5|0]=c>>>8;g[a+6|0]=c>>>16;g[a+7|0]=c>>>24;Yj(e,f,b);if(g[f+11|0]<=-1){bp(i[f>>2])}F=f+16|0}function Ka(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=F-80|0;F=e;i[e+56>>2]=0;i[e+60>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+64>>2]=1065353216;d=i[a+80>>2];i[e+32>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;a:{b:{if(!d){break b}if(d>>>0>=1073741824){break a}f=d<<2;l=ho(f);i[e+24>>2]=l;d=f+l|0;i[e+32>>2]=d;ip(l,0,f);i[e+28>>2]=d;while(1){d=b;k=i[d+48>>2];f=i[i[d>>2]>>2];t=q;d=up(i[d+40>>2],i[d+44>>2],q,0)+k|0;k=f+d|0;d=j[k+4|0]|j[k+5|0]<<8|(j[k+6|0]<<16|j[k+7|0]<<24);s=j[k|0]|j[k+1|0]<<8|(j[k+2|0]<<16|j[k+3|0]<<24);i[e+40>>2]=s;i[e+44>>2]=d;c:{d:{e:{if(!n){break e}c=i[e+48>>2];v=d;k=s;r=d^(k^318)+239;f=r&n+ -1;u=xp(n)>>>0>1;f:{if(!u){break f}f=r;if(f>>>0>>0){break f}f=(r>>>0)%(n>>>0)|0}c=i[(f<<2)+c>>2];if(!c){break e}c=i[c>>2];if(!c){break e}w=n+ -1|0;while(1){m=i[c+4>>2];g:{if((r|0)!=(m|0)){h:{if(!u){m=m&w;break h}if(m>>>0>>0){break h}m=(m>>>0)%(n>>>0)|0}if((f|0)==(m|0)){break g}break e}if(i[c+8>>2]!=(k|0)){break g}if(i[c+12>>2]==(v|0)){break d}}c=i[c>>2];if(c){continue}break}}i[e+16>>2]=p;i[e+8>>2]=s;i[e+12>>2]=d;Ya(e+72|0,e+48|0,e+8|0,e+8|0);d=i[a+40>>2];hp(i[i[a>>2]>>2]+o(d,p)|0,e+40|0,d);l=i[e+24>>2];i[l+(t<<2)>>2]=p;p=p+1|0;break c}i[(t<<2)+l>>2]=i[c+16>>2]}d=h;h=q+1|0;if(h>>>0<1){d=d+1|0}q=h;f=h;h=d;c=i[a+80>>2];if(!d&f>>>0>>0|d>>>0<0){n=i[e+52>>2];continue}break}if((c|0)!=(p|0)){i:{if(!j[a+84|0]){h=i[a+72>>2];f=i[a+68>>2];if((h|0)==(f|0)){break i}d=h-f|0;b=(d|0)>-1?d:-1;q=(b|0)<1?b:1;b=f-h|0;b=o(q,((b|0)>(d|0)?b:d)>>>2|0);h=b>>>0>1?b:1;c=0;while(1){b=f+(c<<2)|0;i[b>>2]=i[(i[b>>2]<<2)+l>>2];c=c+1|0;if((h|0)!=(c|0)){continue}break}break i}g[a+84|0]=0;b=i[a+68>>2];h=i[a+72>>2]-b>>2;j:{if(c>>>0>h>>>0){Xa(a+68|0,c-h|0,1420);c=i[a+80>>2];break j}if(c>>>0>=h>>>0){break j}i[a+72>>2]=b+(c<<2)}l=i[e+24>>2];if(!c){break i}h=i[a+68>>2];m=0;while(1){b=m<<2;i[b+h>>2]=i[b+l>>2];m=m+1|0;if((m|0)!=(c|0)){continue}break}}i[a+80>>2]=p}if(!l){break b}i[e+28>>2]=l;bp(l)}c=i[e+56>>2];if(c){while(1){a=i[c>>2];bp(c);c=a;if(c){continue}break}}a=i[e+48>>2];i[e+48>>2]=0;if(a){bp(a)}F=e+80|0;return p}Ho();x()}function dp(a,b,c,d,e,f,g,h,j){var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;k=F-128|0;F=k;a:{b:{c:{if(!qn(f,g,h,j,0,0,0,0)){break c}m=gp(f,g,h,j);s=e>>>16|0;p=s&32767;if((p|0)==32767){break c}if(m){break b}}yn(k+16|0,b,c,d,e,f,g,h,j);e=i[k+16>>2];d=i[k+20>>2];c=i[k+24>>2];b=i[k+28>>2];Cn(k,e,d,c,b,e,d,c,b);d=i[k+8>>2];e=i[k+12>>2];h=i[k>>2];j=i[k+4>>2];break a}m=p<<16;q=d;r=m|e&65535;n=r;o=h;r=j>>>16&32767;l=j&65535|r<<16;if((qn(b,c,q,n,f,g,h,l)|0)<=0){if(qn(b,c,q,n,f,g,o,l)){h=b;j=c;break a}yn(k+112|0,b,c,d,e,0,0,0,0);d=i[k+120>>2];e=i[k+124>>2];h=i[k+112>>2];j=i[k+116>>2];break a}if(p){j=c;h=b}else{yn(k+96|0,b,c,q,n,0,0,0,1081540608);h=i[k+108>>2];n=h;q=i[k+104>>2];p=(h>>>16|0)+ -120|0;j=i[k+100>>2];h=i[k+96>>2]}if(!r){yn(k+80|0,f,g,o,l,0,0,0,1081540608);f=i[k+92>>2];l=f;o=i[k+88>>2];r=(l>>>16|0)+ -120|0;g=i[k+84>>2];f=i[k+80>>2]}t=l&65535|65536;n=n&65535|65536;if((p|0)>(r|0)){while(1){l=q;m=o;u=l-m|0;m=n-((l>>>0>>0)+t|0)|0;l=(g|0)==(j|0)&h>>>0>>0|j>>>0>>0;m=m-(u>>>0>>0)|0;l=u-l|0;d:{if((m|0)>0?1:(m|0)>=0?l>>>0>=0:0){n=h;h=h-f|0;j=j-((n>>>0>>0)+g|0)|0;if(!(h|l|(j|m))){yn(k+32|0,b,c,d,e,0,0,0,0);d=i[k+40>>2];e=i[k+44>>2];h=i[k+32>>2];j=i[k+36>>2];break a}m=m<<1|l>>>31;q=l<<1|j>>>31;break d}m=n<<1|q>>>31;q=q<<1|j>>>31}n=m;m=j<<1|h>>>31;h=h<<1;j=m;p=p+ -1|0;if((p|0)>(r|0)){continue}break}p=r}e:{m=q;r=m-o|0;l=n-((m>>>0>>0)+t|0)|0;m=(g|0)==(j|0)&h>>>0>>0|j>>>0>>0;l=l-(r>>>0>>0)|0;o=r-m|0;if((l|0)<0?1:(l|0)<=0?o>>>0<0:0){o=q;l=n;break e}q=h;h=h-f|0;j=j-((q>>>0>>0)+g|0)|0;if(h|o|(j|l)){break e}yn(k+48|0,b,c,d,e,0,0,0,0);d=i[k+56>>2];e=i[k+60>>2];h=i[k+48>>2];j=i[k+52>>2];break a}if((l|0)==65535|l>>>0<65535){while(1){b=j>>>31|0;p=p+ -1|0;n=j<<1|h>>>31;h=h<<1;j=n;c=b;b=o;l=l<<1|b>>>31;o=c|b<<1;if((l|0)==65536&o>>>0<0|l>>>0<65536){continue}break}}b=s&32768;if((p|0)<=0){yn(k- -64|0,h,j,o,l&65535|(b|p+120)<<16,0,0,0,1065811968);d=i[k+72>>2];e=i[k+76>>2];h=i[k+64>>2];j=i[k+68>>2];break a}d=o;e=l&65535|(b|p)<<16}i[a>>2]=h;i[a+4>>2]=j;i[a+8>>2]=d;i[a+12>>2]=e;F=k+128|0}function Pa(a,b){var c=0,d=0,e=0,f=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;k=ho(c);i[e+16>>2]=k;d=c+k|0;i[e+24>>2]=d;ip(k,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];p=i[i[c>>2]>>2];u=q;d=up(i[c+40>>2],i[c+44>>2],q,0)+d|0;c=p+d|0;r=j[c+2|0];g[e+30|0]=r;h[e+28>>1]=j[c|0]|j[c+1|0]<<8;s=j[e+28|0];t=j[e+29|0];c:{d:{e:{if(!m){break e}d=i[e+32>>2];p=((s^318)+239^t)+239^r;c=p&m+ -1;v=xp(m)>>>0>1;f:{if(!v){break f}c=p;if(c>>>0>>0){break f}c=(p>>>0)%(m>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}w=m+ -1|0;while(1){l=i[d+4>>2];g:{if((p|0)!=(l|0)){h:{if(!v){l=l&w;break h}if(l>>>0>>0){break h}l=(l>>>0)%(m>>>0)|0}if((c|0)==(l|0)){break g}break e}if(j[d+8|0]!=(s|0)|j[d+9|0]!=(t|0)){break g}if(j[d+10|0]==(r|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=n;g[e+10|0]=r;g[e+9|0]=t;g[e+8|0]=s;jb(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,n)|0,e+28|0,c);k=i[e+16>>2];i[k+(u<<2)>>2]=n;n=n+1|0;break c}i[(u<<2)+k>>2]=i[d+12>>2]}c=f;f=q+1|0;if(f>>>0<1){c=c+1|0}q=f;f=c;d=i[a+80>>2];if(!c&q>>>0>>0|c>>>0<0){m=i[e+36>>2];continue}break}if((d|0)!=(n|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+k>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}k=i[e+16>>2];if(!d){break i}b=i[a+68>>2];l=0;while(1){c=l<<2;i[c+b>>2]=i[c+k>>2];l=l+1|0;if((l|0)!=(d|0)){continue}break}}i[a+80>>2]=n}if(!k){break b}i[e+20>>2]=k;bp(k)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return n}Ho();x()}function am(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;if($l(a,c)){i[a+88>>2]=0;i[a+92>>2]=0;e=a+84|0;c=i[e>>2];i[e>>2]=0;if(c){bp(c)}i[a+76>>2]=0;i[a+80>>2]=0;e=a+72|0;c=i[e>>2];i[e>>2]=0;if(c){bp(c)}m=i[a+64>>2];if(i[m+4>>2]!=i[m>>2]){c=0;while(1){p=(c>>>0)/3|0;e=Ql(m,p);m=i[a+64>>2];a:{if(e){break a}l=i[i[m+12>>2]+(c<<2)>>2];if((l|0)==-1){e=i[a>>2]+(c>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<>>0)%3|0?l:c+ -2|0;if((l|0)!=-1){e=i[i[m>>2]+(l<<2)>>2]}l=i[a+12>>2];k=l+(e>>>3&536870908)|0;i[k>>2]=i[k>>2]|1<>>0)%3|0?-1:2)+c|0;if((e|0)!=-1){f=i[i[m>>2]+(e<<2)>>2]}e=l+(f>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<>>0>>0){break a}e=-1;k=l+((l>>>0)%3|0?-1:2)|0;q=j[d+84|0];f=-1;n=c+1|0;r=c+ -2|0;h=(n>>>0)%3|0?n:r;if((h|0)>=0){f=(h>>>0)/3|0;f=i[(i[b+96>>2]+o(f,12)|0)+(h-o(f,3)<<2)>>2]}e=(k|0)>=0?i[(i[b+96>>2]+o((k>>>0)/3|0,12)|0)+((k>>>0)%3<<2)>>2]:e;if(!q){s=i[d+68>>2];e=i[s+(e<<2)>>2];f=i[(f<<2)+s>>2]}if((e|0)==(f|0)){e=-1;f=-1;if((h|0)!=-1){f=h+1|0;f=(f>>>0)%3|0?f:h+ -2|0}b:{if((k|0)==-1){break b}if((k>>>0)%3|0){e=k+ -1|0;break b}e=k+2|0}k=-1;h=-1;if((f|0)>=0){h=(f>>>0)/3|0;h=i[(i[b+96>>2]+o(h,12)|0)+(f-o(h,3)<<2)>>2]}if((e|0)>=0){f=(e>>>0)/3|0;k=i[(i[b+96>>2]+o(f,12)|0)+(e-o(f,3)<<2)>>2]}if(!q){e=i[d+68>>2];k=i[e+(k<<2)>>2];h=i[e+(h<<2)>>2]}if((h|0)==(k|0)){break a}}g[a+24|0]=0;e=i[a>>2];f=e+(c>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>>3&536870908)|0;i[e>>2]=i[e>>2]|1<>>0)%3|0?n:r;if((k|0)!=-1){f=i[i[m>>2]+(k<<2)>>2]}k=i[a+12>>2];h=k+(f>>>3&536870908)|0;i[h>>2]=i[h>>2]|1<>2]+(f<<2)>>2]}f=k+(e>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>>0)%3|0?h:l+ -2|0;if((h|0)!=-1){f=i[i[m>>2]+(h<<2)>>2]}h=k+(f>>>3&536870908)|0;i[h>>2]=i[h>>2]|1<>>0)%3|0?-1:2)|0;if((f|0)!=-1){e=i[i[m>>2]+(f<<2)>>2]}f=k+(e>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>>0>2]-i[m>>2]>>2>>>0){continue}break}}if(!(!b|!d)){bm(a,b,d);return}cm(a)}}function Sa(a,b){var c=0,d=0,e=0,f=0,h=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[e+16>>2]=h;d=c+h|0;i[e+24>>2]=d;ip(h,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];p=i[i[c>>2]>>2];s=q;d=up(i[c+40>>2],i[c+44>>2],q,0)+d|0;c=p+d|0;r=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+28>>2]=r;c:{d:{e:{if(!m){break e}d=i[e+32>>2];t=r>>>16|0;u=r&65535;p=t^(u^318)+239;c=p&m+131071;v=xp(m)>>>0>1;f:{if(!v){break f}c=p;if(c>>>0>>0){break f}c=(p>>>0)%(m>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}w=m+ -1|0;while(1){l=i[d+4>>2];g:{if((p|0)!=(l|0)){h:{if(!v){l=l&w;break h}if(l>>>0>>0){break h}l=(l>>>0)%(m>>>0)|0}if((c|0)==(l|0)){break g}break e}if(k[d+8>>1]!=(u|0)){break g}if(k[d+10>>1]==(t|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=n;i[e+8>>2]=r;ub(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,n)|0,e+28|0,c);h=i[e+16>>2];i[h+(s<<2)>>2]=n;n=n+1|0;break c}i[(s<<2)+h>>2]=i[d+12>>2]}c=f;f=q+1|0;if(f>>>0<1){c=c+1|0}q=f;f=c;d=i[a+80>>2];if(!c&q>>>0>>0|c>>>0<0){m=i[e+36>>2];continue}break}if((d|0)!=(n|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}h=i[e+16>>2];if(!d){break i}b=i[a+68>>2];l=0;while(1){c=l<<2;i[c+b>>2]=i[c+h>>2];l=l+1|0;if((l|0)!=(d|0)){continue}break}}i[a+80>>2]=n}if(!h){break b}i[e+20>>2]=h;bp(h)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return n}Ho();x()}function xf(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;a:{if(!i[a+8>>2]){break a}d=i[a>>2];l=a+4|0;i[a>>2]=l;i[i[a+4>>2]+8>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;g=i[d+4>>2];f=g?g:d;if(!f){kd(a,f);break a}g=i[f+8>>2];b:{if(!g){break b}d=i[g>>2];if((f|0)==(d|0)){i[g>>2]=0;d=i[g+4>>2];if(!d){e=g;break b}while(1){e=d;d=i[d>>2];if(d){continue}d=i[e+4>>2];if(d){continue}break}break b}i[g+4>>2]=0;if(!d){e=g;break b}while(1){e=d;d=i[d>>2];if(d){continue}d=i[e+4>>2];if(d){continue}break}}c:{if((b|0)==(c|0)){g=f;break c}k=b;while(1){g=e;h=f+16|0;to(h,k+16|0);to(f+28|0,k+28|0);d:{b=i[l>>2];if(!b){b=l;d=b;break d}d=j[f+27|0];e=d<<24>>24<0;d=e?i[f+20>>2]:d;o=e?i[f+16>>2]:h;while(1){h=j[b+27|0];e=h<<24>>24<0;e:{f:{g:{h:{h=e?i[b+20>>2]:h;m=h>>>0>>0?h:d;if(m){n=b+16|0;e=Km(o,e?i[n>>2]:n,m);if(e){break h}}if(d>>>0>>0){break g}break f}if((e|0)>-1){break f}}e=i[b>>2];if(e){break e}d=b;break d}e=i[b+4>>2];if(e){break e}d=b+4|0;break d}b=e;continue}}i[f+8>>2]=b;i[f>>2]=0;i[f+4>>2]=0;i[d>>2]=f;b=i[i[a>>2]>>2];if(b){i[a>>2]=b;f=i[d>>2]}Kf(i[a+4>>2],f);i[a+8>>2]=i[a+8>>2]+1;e=0;i:{if(!g){break i}d=i[g+8>>2];if(!d){break i}b=i[d>>2];if((g|0)==(b|0)){i[d>>2]=0;b=i[d+4>>2];if(!b){e=d;break i}while(1){e=b;b=i[b>>2];if(b){continue}b=i[e+4>>2];if(b){continue}break}break i}i[d+4>>2]=0;if(!b){e=d;break i}while(1){e=b;b=i[b>>2];if(b){continue}b=i[e+4>>2];if(b){continue}break}}d=i[k+4>>2];j:{if(!d){b=i[k+8>>2];if(i[b>>2]==(k|0)){break j}d=k+8|0;while(1){f=i[d>>2];d=f+8|0;b=i[f+8>>2];if((f|0)!=i[b>>2]){continue}break}break j}while(1){b=d;d=i[d>>2];if(d){continue}break}}if((b|0)==(c|0)){break c}k=b;f=g;if(f){continue}break}}kd(a,g);if(!e){break a}while(1){d=i[e+8>>2];if(d){e=d;continue}break}kd(a,e)}if((b|0)!=(c|0)){while(1){e=b;Lf(a,b+16|0);d=i[b+4>>2];k:{if(!d){b=i[e+8>>2];if((e|0)==i[b>>2]){break k}e=e+8|0;while(1){d=i[e>>2];e=d+8|0;b=i[d+8>>2];if((d|0)!=i[b>>2]){continue}break}break k}while(1){b=d;d=i[d>>2];if(d){continue}break}}if((b|0)!=(c|0)){continue}break}}}function Ja(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,n=0,q=0,r=0,s=p(0),t=0,u=0,v=0,w=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[e+16>>2]=h;d=c+h|0;i[e+24>>2]=d;ip(h,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];q=i[i[c>>2]>>2];t=r;d=up(i[c+40>>2],i[c+44>>2],r,0)+d|0;c=q+d|0;s=(Cp(2,j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24)),Gp());m[e+28>>2]=s;c:{d:{e:{if(!l){break e}d=i[e+32>>2];u=(Fp(s),Bp(2));q=u^318;c=q&l+ -1;v=xp(l)>>>0>1;f:{if(!v){break f}c=q;if(c>>>0>>0){break f}c=(q>>>0)%(l>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}w=l+ -1|0;while(1){k=i[d+4>>2];g:{if((q|0)!=(k|0)){h:{if(!v){k=k&w;break h}if(k>>>0>>0){break h}k=(k>>>0)%(l>>>0)|0}if((c|0)==(k|0)){break g}break e}if(i[d+8>>2]==(u|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=n;m[e+8>>2]=s;Wa(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,n)|0,e+28|0,c);h=i[e+16>>2];i[h+(t<<2)>>2]=n;n=n+1|0;break c}i[(t<<2)+h>>2]=i[d+12>>2]}c=f;f=r+1|0;if(f>>>0<1){c=c+1|0}r=f;f=c;d=i[a+80>>2];if(!c&r>>>0>>0|c>>>0<0){l=i[e+36>>2];continue}break}if((d|0)!=(n|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}h=i[e+16>>2];if(!d){break i}b=i[a+68>>2];k=0;while(1){c=k<<2;i[c+b>>2]=i[c+h>>2];k=k+1|0;if((k|0)!=(d|0)){continue}break}}i[a+80>>2]=n}if(!h){break b}i[e+20>>2]=h;bp(h)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return n}Ho();x()}function Oa(a,b){var c=0,d=0,e=0,f=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;k=ho(c);i[e+16>>2]=k;d=c+k|0;i[e+24>>2]=d;ip(k,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];p=i[i[c>>2]>>2];s=q;d=up(i[c+40>>2],i[c+44>>2],q,0)+d|0;c=p+d|0;r=j[c|0]|j[c+1|0]<<8;h[e+30>>1]=r;c:{d:{e:{if(!m){break e}d=i[e+32>>2];t=r>>>8|0;u=r&255;p=t^(u^318)+239;c=p&m+ -1;v=xp(m)>>>0>1;f:{if(!v){break f}c=p;if(m>>>0>c>>>0){break f}c=(p>>>0)%(m>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}w=m+ -1|0;while(1){l=i[d+4>>2];g:{if((p|0)!=(l|0)){h:{if(!v){l=l&w;break h}if(l>>>0>>0){break h}l=(l>>>0)%(m>>>0)|0}if((c|0)==(l|0)){break g}break e}if(j[d+8|0]!=(u|0)){break g}if(j[d+9|0]==(t|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=n;h[e+8>>1]=r;ib(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,n)|0,e+30|0,c);k=i[e+16>>2];i[k+(s<<2)>>2]=n;n=n+1|0;break c}i[(s<<2)+k>>2]=i[d+12>>2]}c=f;f=q+1|0;if(f>>>0<1){c=c+1|0}q=f;f=c;d=i[a+80>>2];if(!c&q>>>0>>0|c>>>0<0){m=i[e+36>>2];continue}break}if((d|0)!=(n|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+k>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}k=i[e+16>>2];if(!d){break i}b=i[a+68>>2];l=0;while(1){c=l<<2;i[c+b>>2]=i[c+k>>2];l=l+1|0;if((l|0)!=(d|0)){continue}break}}i[a+80>>2]=n}if(!k){break b}i[e+20>>2]=k;bp(k)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return n}Ho();x()}function Zf(a,b,c,d,e,f){var h=0,k=0,l=0;h=F-16|0;F=h;i[h+12>>2]=b;b=ho(32);i[h>>2]=b;i[h+4>>2]=17;i[h+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[10556];k=j[10552]|j[10553]<<8|(j[10554]<<16|j[10555]<<24);l=j[10548]|j[10549]<<8|(j[10550]<<16|j[10551]<<24);g[b+8|0]=l;g[b+9|0]=l>>>8;g[b+10|0]=l>>>16;g[b+11|0]=l>>>24;g[b+12|0]=k;g[b+13|0]=k>>>8;g[b+14|0]=k>>>16;g[b+15|0]=k>>>24;k=j[10544]|j[10545]<<8|(j[10546]<<16|j[10547]<<24);l=j[10540]|j[10541]<<8|(j[10542]<<16|j[10543]<<24);g[b|0]=l;g[b+1|0]=l>>>8;g[b+2|0]=l>>>16;g[b+3|0]=l>>>24;g[b+4|0]=k;g[b+5|0]=k>>>8;g[b+6|0]=k>>>16;g[b+7|0]=k>>>24;k=a+4|0;Yj(yf(k,h+12|0),h,c);if(g[h+11|0]<=-1){bp(i[h>>2])}a=ho(32);i[h>>2]=a;i[h+4>>2]=19;i[h+8>>2]=-2147483616;g[a+19|0]=0;b=j[10598]|j[10599]<<8|(j[10600]<<16|j[10601]<<24);g[a+15|0]=b;g[a+16|0]=b>>>8;g[a+17|0]=b>>>16;g[a+18|0]=b>>>24;b=j[10595]|j[10596]<<8|(j[10597]<<16|j[10598]<<24);c=j[10591]|j[10592]<<8|(j[10593]<<16|j[10594]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10587]|j[10588]<<8|(j[10589]<<16|j[10590]<<24);c=j[10583]|j[10584]<<8|(j[10585]<<16|j[10586]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Ff(yf(k,h+12|0),h,e,d);if(g[h+11|0]<=-1){bp(i[h>>2])}a=ho(32);i[h>>2]=a;i[h+4>>2]=18;i[h+8>>2]=-2147483616;g[a+18|0]=0;b=j[10619]|j[10620]<<8;g[a+16|0]=b;g[a+17|0]=b>>>8;b=j[10615]|j[10616]<<8|(j[10617]<<16|j[10618]<<24);c=j[10611]|j[10612]<<8|(j[10613]<<16|j[10614]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10607]|j[10608]<<8|(j[10609]<<16|j[10610]<<24);c=j[10603]|j[10604]<<8|(j[10605]<<16|j[10606]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Zj(yf(k,h+12|0),h,f);if(g[h+11|0]<=-1){bp(i[h>>2])}F=h+16|0}function Ef(a,b,c,d,e,f){var h=0,k=0,l=0;h=F-16|0;F=h;i[h+12>>2]=b;b=ho(32);i[h>>2]=b;i[h+4>>2]=17;i[h+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[10144];k=j[10140]|j[10141]<<8|(j[10142]<<16|j[10143]<<24);l=j[10136]|j[10137]<<8|(j[10138]<<16|j[10139]<<24);g[b+8|0]=l;g[b+9|0]=l>>>8;g[b+10|0]=l>>>16;g[b+11|0]=l>>>24;g[b+12|0]=k;g[b+13|0]=k>>>8;g[b+14|0]=k>>>16;g[b+15|0]=k>>>24;k=j[10132]|j[10133]<<8|(j[10134]<<16|j[10135]<<24);l=j[10128]|j[10129]<<8|(j[10130]<<16|j[10131]<<24);g[b|0]=l;g[b+1|0]=l>>>8;g[b+2|0]=l>>>16;g[b+3|0]=l>>>24;g[b+4|0]=k;g[b+5|0]=k>>>8;g[b+6|0]=k>>>16;g[b+7|0]=k>>>24;k=a+4|0;Yj(yf(k,h+12|0),h,c);if(g[h+11|0]<=-1){bp(i[h>>2])}a=ho(32);i[h>>2]=a;i[h+4>>2]=19;i[h+8>>2]=-2147483616;g[a+19|0]=0;b=j[10161]|j[10162]<<8|(j[10163]<<16|j[10164]<<24);g[a+15|0]=b;g[a+16|0]=b>>>8;g[a+17|0]=b>>>16;g[a+18|0]=b>>>24;b=j[10158]|j[10159]<<8|(j[10160]<<16|j[10161]<<24);c=j[10154]|j[10155]<<8|(j[10156]<<16|j[10157]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10150]|j[10151]<<8|(j[10152]<<16|j[10153]<<24);c=j[10146]|j[10147]<<8|(j[10148]<<16|j[10149]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Ff(yf(k,h+12|0),h,e,d);if(g[h+11|0]<=-1){bp(i[h>>2])}a=ho(32);i[h>>2]=a;i[h+4>>2]=18;i[h+8>>2]=-2147483616;g[a+18|0]=0;b=j[10182]|j[10183]<<8;g[a+16|0]=b;g[a+17|0]=b>>>8;b=j[10178]|j[10179]<<8|(j[10180]<<16|j[10181]<<24);c=j[10174]|j[10175]<<8|(j[10176]<<16|j[10177]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10170]|j[10171]<<8|(j[10172]<<16|j[10173]<<24);c=j[10166]|j[10167]<<8|(j[10168]<<16|j[10169]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Zj(yf(k,h+12|0),h,f);if(g[h+11|0]<=-1){bp(i[h>>2])}F=h+16|0}function Va(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[e+16>>2]=h;d=c+h|0;i[e+24>>2]=d;ip(h,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];n=i[i[c>>2]>>2];r=p;d=up(i[c+40>>2],i[c+44>>2],p,0)+d|0;c=n+d|0;q=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);i[e+28>>2]=q;c:{d:{e:{if(!l){break e}d=i[e+32>>2];n=q^318;c=n&l+ -1;s=xp(l)>>>0>1;f:{if(!s){break f}c=n;if(c>>>0>>0){break f}c=(n>>>0)%(l>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}t=l+ -1|0;while(1){k=i[d+4>>2];g:{if((n|0)!=(k|0)){h:{if(!s){k=k&t;break h}if(k>>>0>>0){break h}k=(k>>>0)%(l>>>0)|0}if((c|0)==(k|0)){break g}break e}if(i[d+8>>2]==(q|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=m;i[e+8>>2]=q;Wa(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,m)|0,e+28|0,c);h=i[e+16>>2];i[h+(r<<2)>>2]=m;m=m+1|0;break c}i[(r<<2)+h>>2]=i[d+12>>2]}c=f;f=p+1|0;if(f>>>0<1){c=c+1|0}p=f;f=c;d=i[a+80>>2];if(!c&p>>>0>>0|c>>>0<0){l=i[e+36>>2];continue}break}if((d|0)!=(m|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}h=i[e+16>>2];if(!d){break i}b=i[a+68>>2];k=0;while(1){c=k<<2;i[c+b>>2]=i[c+h>>2];k=k+1|0;if((k|0)!=(d|0)){continue}break}}i[a+80>>2]=m}if(!h){break b}i[e+20>>2]=h;bp(h)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return m}Ho();x()}function lg(a,b,c,d,e){var f=0,h=0,k=0,m=0,n=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;k=F-336|0;F=k;ip(k+80|0,0,256);h=i[d+4>>2];p=i[d>>2];if((h|0)!=(p|0)){m=h-p|0;f=(m|0)>-1?m:-1;q=(f|0)<1?f:1;f=p-h|0;f=o(q,((f|0)>(m|0)?f:m)>>>2|0);q=f>>>0>1?f:1;while(1){f=(k+80|0)+(i[p+(n<<2)>>2]<<3)|0;h=f;t=f;m=i[f+4>>2];f=i[f>>2]+1|0;if(f>>>0<1){m=m+1|0}i[t>>2]=f;i[h+4>>2]=m;n=n+1|0;if((q|0)!=(n|0)){continue}break}}r=Tj(k+48|0);i[k+8>>2]=0;i[k+12>>2]=0;h=k+16|0;f=h;i[f>>2]=0;i[f+4>>2]=0;p=k+24|0;f=p;i[f>>2]=0;i[f+4>>2]=0;i[k+32>>2]=0;i[k>>2]=0;i[k+4>>2]=0;i[k+40>>2]=0;i[k+44>>2]=0;ng(k,k+80|0,32,e);m=i[h>>2];f=i[h+4>>2];h=i[e+4>>2]-i[e>>2]|0;i[k+40>>2]=h;i[k+44>>2]=0;t=e;q=m;m=f<<1|m>>>31;f=(q<<1)+39|0;if(f>>>0<39){m=m+1|0}q=f;f=m>>>3|0;m=h+((m&7)<<29|q>>>3)|0;if(m>>>0>>0){f=f+1|0}h=m+8|0;h>>>0<8;Uj(t,h);f=i[e>>2];i[k+28>>2]=0;i[k+32>>2]=16384;i[p>>2]=f+i[k+40>>2];h=b;Vj(r,h<<5,h>>31<<5|h>>>27,0);b=h-c|0;if((b|0)>=0){y=(c|0)<1;f=b;while(1){n=i[k+32>>2];s=i[d>>2];q=i[k>>2]+(i[s+((f|0)/(c|0)<<2)>>2]<<3)|0;p=i[q>>2];m=p<<10;if(n>>>0>=m>>>0){while(1){h=i[k+28>>2];i[k+28>>2]=h+1;g[h+i[k+24>>2]|0]=n;n=i[k+32>>2]>>>8|0;i[k+32>>2]=n;if(n>>>0>=m>>>0){continue}break}s=i[d>>2]}h=(n>>>0)/(p>>>0)|0;i[k+32>>2]=i[q+4>>2]+((h<<12)+(n-o(h,p)|0)|0);n=b-f|0;h=(n|0)/(c|0)|0;if(!y){x=i[(h<<2)+s>>2];v=0;while(1){h=i[r+20>>2];if(!((x|0)<1|((h|0)<0?1:(h|0)<=0?l[r+16>>2]<1:0))){p=i[(n+v<<2)+a>>2];u=i[r+12>>2];s=i[u+4>>2];w=0;while(1){q=s>>>3|0;m=q+i[u>>2]|0;h=j[m|0];t=m;m=s&7;z=t,A=yp(-2,m)&h,g[z|0]=A;h=q+i[u>>2]|0;g[h|0]=j[h|0]|(p>>>w&1)<>2]+1|0;i[u+4>>2]=s;w=w+1|0;if((x|0)!=(w|0)){continue}break}}v=v+1|0;if((v|0)!=(c|0)){continue}break}}f=f-c|0;if((f|0)>-1){continue}break}}og(k,e);Wj(r);a=i[e+20>>2];if((a|0)<0?1:(a|0)<=0?l[e+16>>2]<=0:0){ca(e,i[e+4>>2],i[r>>2],i[r+4>>2])}a=i[k>>2];if(a){i[k+4>>2]=a;bp(a)}a=i[r+12>>2];i[r+12>>2]=0;if(a){bp(a)}a=i[r>>2];if(a){i[r+4>>2]=a;bp(a)}F=k+336|0;return 1}function Ra(a,b){var c=0,d=0,e=0,f=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;l=ho(c);i[e+16>>2]=l;d=c+l|0;i[e+24>>2]=d;ip(l,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];q=i[i[c>>2]>>2];t=r;d=up(i[c+40>>2],i[c+44>>2],r,0)+d|0;c=q+d|0;s=j[c|0]|j[c+1|0]<<8;h[e+30>>1]=s;c:{d:{e:{if(!n){break e}d=i[e+32>>2];q=s^318;c=q&n+ -1;u=xp(n)>>>0>1;f:{if(!u){break f}c=q;if(n>>>0>c>>>0){break f}c=(q>>>0)%(n>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}v=n+ -1|0;while(1){m=i[d+4>>2];g:{if((q|0)!=(m|0)){h:{if(!u){m=m&v;break h}if(m>>>0>>0){break h}m=(m>>>0)%(n>>>0)|0}if((c|0)==(m|0)){break g}break e}if(k[d+8>>1]==(s|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=p;h[e+8>>1]=s;tb(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,p)|0,e+30|0,c);l=i[e+16>>2];i[l+(t<<2)>>2]=p;p=p+1|0;break c}i[(t<<2)+l>>2]=i[d+12>>2]}c=f;f=r+1|0;if(f>>>0<1){c=c+1|0}r=f;f=c;d=i[a+80>>2];if(!c&r>>>0>>0|c>>>0<0){n=i[e+36>>2];continue}break}if((d|0)!=(p|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+l>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}l=i[e+16>>2];if(!d){break i}b=i[a+68>>2];m=0;while(1){c=m<<2;i[c+b>>2]=i[c+l>>2];m=m+1|0;if((m|0)!=(d|0)){continue}break}}i[a+80>>2]=p}if(!l){break b}i[e+20>>2]=l;bp(l)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return p}Ho();x()}function Na(a,b){var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;e=F+ -64|0;F=e;i[e+40>>2]=0;i[e+44>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+48>>2]=1065353216;c=i[a+80>>2];i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{b:{if(!c){break b}if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[e+16>>2]=h;d=c+h|0;i[e+24>>2]=d;ip(h,0,c);i[e+20>>2]=d;while(1){c=b;d=i[c+48>>2];n=i[i[c>>2]>>2];r=p;d=up(i[c+40>>2],i[c+44>>2],p,0)+d|0;q=j[n+d|0];g[e+31|0]=q;c:{d:{e:{if(!l){break e}d=i[e+32>>2];n=q^318;c=n&l+ -1;s=xp(l)>>>0>1;f:{if(!s){break f}c=n;if(c>>>0>>0){break f}c=(n>>>0)%(l>>>0)|0}d=i[(c<<2)+d>>2];if(!d){break e}d=i[d>>2];if(!d){break e}t=l+ -1|0;while(1){k=i[d+4>>2];g:{if((n|0)!=(k|0)){h:{if(!s){k=k&t;break h}if(k>>>0>>0){break h}k=(k>>>0)%(l>>>0)|0}if((c|0)==(k|0)){break g}break e}if(j[d+8|0]==(q|0)){break d}}d=i[d>>2];if(d){continue}break}}i[e+12>>2]=m;g[e+8|0]=q;hb(e+56|0,e+32|0,e+8|0,e+8|0);c=i[a+40>>2];hp(i[i[a>>2]>>2]+o(c,m)|0,e+31|0,c);h=i[e+16>>2];i[h+(r<<2)>>2]=m;m=m+1|0;break c}i[(r<<2)+h>>2]=i[d+12>>2]}c=f;f=p+1|0;if(f>>>0<1){c=c+1|0}p=f;f=c;d=i[a+80>>2];if(!c&p>>>0>>0|c>>>0<0){l=i[e+36>>2];continue}break}if((d|0)!=(m|0)){i:{if(!j[a+84|0]){f=i[a+72>>2];b=i[a+68>>2];if((f|0)==(b|0)){break i}c=f-b|0;d=(c|0)>-1?c:-1;f=b-f|0;c=o((d|0)<1?d:1,((f|0)>(c|0)?f:c)>>>2|0);c=c>>>0>1?c:1;d=0;while(1){f=b+(d<<2)|0;i[f>>2]=i[(i[f>>2]<<2)+h>>2];d=d+1|0;if((c|0)!=(d|0)){continue}break}break i}g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;j:{if(d>>>0>b>>>0){Xa(a+68|0,d-b|0,1420);d=i[a+80>>2];break j}if(d>>>0>=b>>>0){break j}i[a+72>>2]=c+(d<<2)}h=i[e+16>>2];if(!d){break i}b=i[a+68>>2];k=0;while(1){c=k<<2;i[c+b>>2]=i[c+h>>2];k=k+1|0;if((k|0)!=(d|0)){continue}break}}i[a+80>>2]=m}if(!h){break b}i[e+20>>2]=h;bp(h)}d=i[e+40>>2];if(d){while(1){a=i[d>>2];bp(d);d=a;if(d){continue}break}}a=i[e+32>>2];i[e+32>>2]=0;if(a){bp(a)}F=e- -64|0;return m}Ho();x()}function Ml(a){var b=0,c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=F-32|0;F=e;b=i[a>>2];d=i[a+4>>2];g[e|0]=0;o=Cj(e+16|0,d-b>>2,e);i[e+8>>2]=0;i[e>>2]=0;k=i[a>>2];b=i[a+4>>2];a:{b:{while(1){c:{p=0;l=0;if((b|0)==(k|0)){break c}while(1){c=i[o>>2];d:{if(i[c+(l>>>3&536870908)>>2]>>>l&1){break d}d=i[e>>2];i[e+4>>2]=d;b=l;while(1){e:{f=b+1|0;q=b;b=(f>>>0)%3|0?f:b+ -2|0;if((b|0)==-1){break e}b=i[i[a+12>>2]+(b<<2)>>2];if((b|0)==-1){break e}f=b+1|0;b=(f>>>0)%3|0?f:b+ -2|0;if((l|0)==(b|0)|(b|0)==-1){break e}if(!(i[(b>>>3&536870908)+c>>2]>>>b&1)){continue}}break}f=d;b=q;while(1){j=(b>>>3&536870908)+c|0;i[j>>2]=i[j>>2]|1<>>0)%3|0?j:b+ -2|0;m=((b>>>0)%3|0?-1:2)+b|0;if((d|0)!=(f|0)){n=i[(j<<2)+k>>2];b=f;while(1){f:{if((n|0)!=i[b>>2]){break f}c=-1;h=i[b+4>>2];c=(m|0)!=-1?i[i[a+12>>2]+(m<<2)>>2]:c;if((h|0)==(c|0)){break f}d=-1;d=(h|0)!=-1?i[i[a+12>>2]+(h<<2)>>2]:d;if((c|0)!=-1){i[i[a+12>>2]+(c<<2)>>2]=-1}b=i[a+12>>2];if((d|0)!=-1){i[b+(d<<2)>>2]=-1}i[b+(m<<2)>>2]=-1;i[b+(h<<2)>>2]=-1;p=1;break d}b=b+8|0;if((d|0)!=(b|0)){continue}break}}n=m<<2;k=i[n+k>>2];g:{if(i[e+8>>2]!=(d|0)){b=d;i[b>>2]=k;i[b+4>>2]=j;i[e+4>>2]=b+8;break g}d=d-f|0;h=d>>3;c=h+1|0;if(c>>>0>=536870912){break b}b=d>>2;c=h>>>0<268435455?b>>>0>>0?c:b:536870911;b=0;h:{if(!c){break h}if(c>>>0>=536870912){break a}b=ho(c<<3)}h=b+(h<<3)|0;i[h>>2]=k;i[h+4>>2]=j;j=b+(c<<3)|0;c=h+8|0;if((d|0)>=1){hp(b,f,d)}i[e+8>>2]=j;i[e+4>>2]=c;i[e>>2]=b;if(!f){break g}bp(f)}i:{if((m|0)==-1){break i}b=i[n+i[a+12>>2]>>2];if((b|0)==-1){break i}b=b+((b>>>0)%3|0?-1:2)|0;if((q|0)==(b|0)|(b|0)==-1){break i}k=i[a>>2];c=i[o>>2];d=i[e+4>>2];f=i[e>>2];continue}break}k=i[a>>2]}l=l+1|0;b=i[a+4>>2];if(l>>>0>2>>>0){continue}break}if(p){continue}}break}a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[o>>2];if(a){bp(a)}F=e+32|0;return}Ho();x()}za(16516);x()}function Wh(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=F+ -64|0;F=e;d=ho(80);o=i[b+8>>2];i[d+12>>2]=0;i[d+16>>2]=0;i[d>>2]=12588;i[d+4>>2]=0;k=d+20|0;f=k;i[f>>2]=0;i[f+4>>2]=0;p=d+28|0;f=p;i[f>>2]=0;i[f+4>>2]=0;i[d+36>>2]=0;i[d+40>>2]=0;l=d+44|0;f=l;i[f>>2]=0;i[f+4>>2]=0;i[d+52>>2]=0;i[d+76>>2]=0;i[d+72>>2]=c;i[d+68>>2]=o;i[d+64>>2]=0;i[d+56>>2]=0;i[d+60>>2]=0;i[d+8>>2]=12752;f=i[b+12>>2];q=e+36|0;h=q;i[h>>2]=0;i[h+4>>2]=0;r=e+28|0;h=r;i[h>>2]=0;i[h+4>>2]=0;m=e+20|0;h=m;i[h>>2]=0;i[h+4>>2]=0;h=e+12|0;i[h>>2]=0;i[h+4>>2]=0;i[e+52>>2]=0;i[e+56>>2]=0;i[e+44>>2]=0;i[e+48>>2]=0;i[e+4>>2]=0;i[e+8>>2]=0;i[e>>2]=12752;i[e+4>>2]=f;j=i[f>>2];n=i[f+4>>2];g[e+63|0]=0;Uh(e+24|0,(n-j>>2>>>0)/3|0,e+63|0);j=i[e+4>>2];n=i[j+28>>2];j=i[j+24>>2];g[e+63|0]=0;Uh(q,n-j>>2,e+63|0);i[m>>2]=d;i[e+16>>2]=o;i[h>>2]=c;i[e+8>>2]=f;i[d+76>>2]=b+72;i[p>>2]=i[m>>2];b=i[h+4>>2];i[k>>2]=i[h>>2];i[k+4>>2]=b;b=i[e+8>>2];i[d+12>>2]=i[e+4>>2];i[d+16>>2]=b;a:{b:{b=d;f=i[r>>2];if(f){h=d+32|0;c:{if(f>>>0<=i[d+40>>2]<<5>>>0){c=f+ -1>>>5|0;f=i[h>>2];break c}c=i[h>>2];if(c){bp(c);i[d+40>>2]=0;i[d+32>>2]=0;i[d+36>>2]=0;f=i[e+28>>2]}if((f|0)<=-1){break b}c=f+ -1>>>5|0;h=c+1|0;f=ho(h<<2);i[d+40>>2]=h;i[d+36>>2]=0;i[d+32>>2]=f}jp(f,i[e+24>>2],(c<<2)+4|0);c=i[e+28>>2]}else{c=0}i[b+36>>2]=c;c=d;f=i[e+40>>2];if(f){d:{if(f>>>0<=i[d+52>>2]<<5>>>0){b=f+ -1>>>5|0;f=i[l>>2];break d}b=i[l>>2];if(b){bp(b);i[d+52>>2]=0;i[d+44>>2]=0;i[d+48>>2]=0;f=i[e+40>>2]}if((f|0)<=-1){break a}b=f+ -1>>>5|0;h=b+1|0;f=ho(h<<2);i[d+52>>2]=h;i[d+48>>2]=0;i[d+44>>2]=f}jp(f,i[e+36>>2],(b<<2)+4|0);b=i[e+40>>2]}else{b=0}i[c+48>>2]=b;Vh(d+56|0,i[e+48>>2],i[e+52>>2]);i[a>>2]=d;i[e>>2]=12752;a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}i[e>>2]=12568;a=i[e+36>>2];if(a){bp(a)}a=i[e+24>>2];if(a){bp(a)}F=e- -64|0;return}Ho();x()}Ho();x()}function ne(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,j=0,k=0,l=0,m=0,n=0,o=0,p=0;i[a+8>>2]=e;g=a+32|0;h=i[g>>2];f=i[a+36>>2]-h>>2;a:{if(f>>>0>>0){Bd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=h+(e<<2)}b:{if(!d){break b}h=1;f=i[b>>2];c:{if((d|0)<=1){g=f;break c}g=f;while(1){j=i[(h<<2)+b>>2];k=(j|0)<(g|0);g=k?j:g;f=k?f:(j|0)>(f|0)?j:f;h=h+1|0;if((h|0)!=(d|0)){continue}break}}i[a+16>>2]=f;i[a+12>>2]=g;h=f;f=(f>>31)-((g>>31)+(f>>>0>>0)|0)|0;g=h-g|0;if(!f&g>>>0>2147483646|f>>>0>0){break b}f=g+1|0;i[a+20>>2]=f;g=(f|0)/2|0;i[a+24>>2]=g;i[a+28>>2]=0-g;if(f&1){break b}i[a+24>>2]=g+ -1}j=d-e|0;if((j|0)>=1){g=i[a+8>>2];o=0-e<<2;while(1){if((g|0)>=1){d=j<<2;p=d+c|0;n=b+d|0;d=n+o|0;h=0;while(1){f=0;d:{if((g|0)<=0){g=i[a+32>>2];break d}while(1){k=f<<2;l=i[k+d>>2];m=i[a+16>>2];e:{if((l|0)>(m|0)){g=i[a+32>>2];i[k+g>>2]=m;break e}g=i[a+32>>2];k=k+g|0;m=i[a+12>>2];if((l|0)<(m|0)){i[k>>2]=m;break e}i[k>>2]=l}f=f+1|0;if((f|0)>2]){continue}break}}f=h<<2;d=f+p|0;f=i[f+n>>2]-i[f+g>>2]|0;i[d>>2]=f;f:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break f}f=f-i[a+20>>2]|0}i[d>>2]=f}d=g;h=h+1|0;g=i[a+8>>2];if((h|0)<(g|0)){continue}break}}j=j-e|0;if((j|0)>0){continue}break}}h=0;d=(e&1073741823)!=(e|0)?-1:e<<2;e=ip(ho(d),0,d);g=i[a+8>>2];if((g|0)>=1){d=e;while(1){f=0;g:{if((g|0)<=0){g=i[a+32>>2];break g}while(1){j=f<<2;k=i[j+d>>2];l=i[a+16>>2];h:{if((k|0)>(l|0)){g=i[a+32>>2];i[j+g>>2]=l;break h}g=i[a+32>>2];j=j+g|0;l=i[a+12>>2];if((k|0)<(l|0)){i[j>>2]=l;break h}i[j>>2]=k}f=f+1|0;if((f|0)>2]){continue}break}}f=h<<2;d=f+c|0;f=i[b+f>>2]-i[f+g>>2]|0;i[d>>2]=f;i:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break i}f=f-i[a+20>>2]|0}i[d>>2]=f}d=g;h=h+1|0;g=i[a+8>>2];if((h|0)<(g|0)){continue}break}}bp(e);return 1}function Wf(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;a:{if(!i[a+8>>2]){break a}g=i[a>>2];j=a+4|0;i[a>>2]=j;i[i[a+4>>2]+8>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;d=i[g+4>>2];f=d?d:g;if(!f){wf(a,f);break a}g=i[f+8>>2];b:{if(!g){break b}d=i[g>>2];if((f|0)==(d|0)){i[g>>2]=0;d=i[g+4>>2];if(!d){e=g;break b}while(1){e=d;d=i[d>>2];if(d){continue}d=i[e+4>>2];if(d){continue}break}break b}i[g+4>>2]=0;if(!d){e=g;break b}while(1){e=d;d=i[d>>2];if(d){continue}d=i[e+4>>2];if(d){continue}break}}c:{if((b|0)==(c|0)){g=f;break c}h=b;while(1){g=e;i[f+16>>2]=i[h+16>>2];if((f|0)!=(h|0)){xf(f+20|0,i[h+20>>2],h+24|0)}d:{b=i[j>>2];if(!b){b=j;d=b;break d}e=i[f+16>>2];while(1){e:{if((e|0)>2]){d=i[b>>2];if(d){break e}d=b;break d}d=i[b+4>>2];if(d){break e}d=b+4|0;break d}b=d;continue}}i[f+8>>2]=b;i[f>>2]=0;i[f+4>>2]=0;i[d>>2]=f;b=i[i[a>>2]>>2];if(b){i[a>>2]=b;f=i[d>>2]}Kf(i[a+4>>2],f);i[a+8>>2]=i[a+8>>2]+1;e=0;f:{if(!g){break f}d=i[g+8>>2];if(!d){break f}b=i[d>>2];if((g|0)==(b|0)){i[d>>2]=0;b=i[d+4>>2];if(!b){e=d;break f}while(1){e=b;b=i[b>>2];if(b){continue}b=i[e+4>>2];if(b){continue}break}break f}i[d+4>>2]=0;if(!b){e=d;break f}while(1){e=b;b=i[b>>2];if(b){continue}b=i[e+4>>2];if(b){continue}break}}d=i[h+4>>2];g:{if(!d){b=i[h+8>>2];if(i[b>>2]==(h|0)){break g}f=h+8|0;while(1){d=i[f>>2];f=d+8|0;b=i[d+8>>2];if((d|0)!=i[b>>2]){continue}break}break g}while(1){b=d;d=i[d>>2];if(d){continue}break}}if(!g){break c}h=b;f=g;if((b|0)!=(c|0)){continue}break}}wf(a,g);if(!e){break a}while(1){d=i[e+8>>2];if(d){e=d;continue}break}wf(a,e)}if((b|0)!=(c|0)){while(1){e=b;$f(a,b+16|0);d=i[b+4>>2];h:{if(!d){b=i[e+8>>2];if((e|0)==i[b>>2]){break h}e=e+8|0;while(1){d=i[e>>2];e=d+8|0;b=i[d+8>>2];if((d|0)!=i[b>>2]){continue}break}break h}while(1){b=d;d=i[d>>2];if(d){continue}break}}if((b|0)!=(c|0)){continue}break}}}function sf(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;f=F-32|0;F=f;m=f;e=i[a>>2];h=i[e>>2];d=i[e+4>>2];n=+(h>>>0)+ +(d>>>0)*4294967296;d=i[e+12>>2]+d|0;e=i[e+8>>2];h=e+h|0;if(h>>>0>>0){d=d+1|0}e=!(d|h);n=n/(+((e?1:h)>>>0)+ +((e?0:d)>>>0)*4294967296)*256+.5;a:{if(n<4294967296&n>=0){d=~~n>>>0;break a}d=0}c=d>>>0<255?d:255;p=!(c&255)+c|0;g[m+23|0]=p;h=i[a+16>>2];r=i[a+12>>2];i[f+16>>2]=0;i[f+8>>2]=0;i[f+12>>2]=0;b:{c:{c=(h-r<<1)- -64|0;if(c){if((c|0)<=-1){break c}k=ho(c);i[f+8>>2]=k;d=c+k|0;i[f+16>>2]=d;ip(k,0,c);i[f+12>>2]=d}c=i[a+28>>2]+ -1|0;if((c|0)<0){e=4096;break b}m=0-p|0;s=m&255;t=i[a+24>>2];e=4096;while(1){q=t&1<>>0>=d<<12>>>0){g[j+k|0]=e;j=j+1|0;e=e>>>8|0}u=256-d|0;d=d<<3;up(i[d+14192>>2],0,e,0);e=((q?0:s)+e|0)+o(u,H+e>>>i[d+14196>>2]|0)|0;c=c+ -1|0;if((c|0)>-1){continue}break}break b}Ho();x()}if((h|0)!=(r|0)){m=0-p|0;s=m&255;while(1){h=h+ -4|0;t=i[h>>2];c=31;while(1){d=c;q=t&1<>>0>=c<<12>>>0){g[j+k|0]=e;j=j+1|0;e=e>>>8|0}u=256-c|0;c=c<<3;up(i[c+14192>>2],0,e,0);e=((q?0:s)+e|0)+o(u,H+e>>>i[c+14196>>2]|0)|0;c=d+ -1|0;if(d){continue}break}if((h|0)!=(r|0)){continue}break}}c=e+ -4096|0;d:{e:{if(c>>>0<=63){e=j+k|0;d=1;break e}if(c>>>0<=16383){c=j+k|0;d=e+12288|0;g[c|0]=d;e=c+1|0;c=d>>>8|0;d=2;break e}if(c>>>0>4194303){break d}c=j+k|0;d=e+8384512|0;g[c|0]=d;g[c+1|0]=d>>>8;e=c+2|0;c=d>>>16|0;d=3}g[e|0]=c;j=d+j|0}c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],f+23|0,f+24|0)}Jb(j,b);c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){d=b;c=i[b+4>>2];b=i[f+8>>2];ca(d,c,b,b+j|0)}i[f+24>>2]=0;i[f+28>>2]=0;of(a,f+24|0);i[a+24>>2]=0;i[a+28>>2]=0;i[a+16>>2]=i[a+12>>2];a=i[f+8>>2];if(a){i[f+12>>2]=a;bp(a)}F=f+32|0}function ti(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0;e=F-16|0;F=e;i[a+4>>2]=b;i[a+8>>2]=i[b+56>>2];i[a+188>>2]=i[a+184>>2];f=i[b+48>>2];b=ho(32);i[e>>2]=b;i[e+4>>2]=19;i[e+8>>2]=-2147483616;g[b+19|0]=0;c=j[11251]|j[11252]<<8|(j[11253]<<16|j[11254]<<24);g[b+15|0]=c;g[b+16|0]=c>>>8;g[b+17|0]=c>>>16;g[b+18|0]=c>>>24;c=j[11248]|j[11249]<<8|(j[11250]<<16|j[11251]<<24);d=j[11244]|j[11245]<<8|(j[11246]<<16|j[11247]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11240]|j[11241]<<8|(j[11242]<<16|j[11243]<<24);d=j[11236]|j[11237]<<8|(j[11238]<<16|j[11239]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;b=Sb(f,e);if(g[e+11|0]<=-1){bp(i[e>>2])}f=i[i[a+4>>2]+48>>2];a:{if(b){b=ho(32);i[e>>2]=b;i[e+4>>2]=19;i[e+8>>2]=-2147483616;g[b+19|0]=0;c=j[11251]|j[11252]<<8|(j[11253]<<16|j[11254]<<24);g[b+15|0]=c;g[b+16|0]=c>>>8;g[b+17|0]=c>>>16;g[b+18|0]=c>>>24;c=j[11248]|j[11249]<<8|(j[11250]<<16|j[11251]<<24);d=j[11244]|j[11245]<<8|(j[11246]<<16|j[11247]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11240]|j[11241]<<8|(j[11242]<<16|j[11243]<<24);d=j[11236]|j[11237]<<8|(j[11238]<<16|j[11239]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;h=a,k=ck(f,e,0),g[h+352|0]=k;if(g[e+11|0]>-1){break a}bp(i[e>>2]);break a}if((_b(f)|0)>=6){g[a+352|0]=1;break a}g[a+352|0]=0}F=e+16|0;return 1}function rf(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i[a>>2];d=e;l=d;f=i[d+12>>2];h=i[d+8>>2];c=c>>>1&1431655765|c<<1&-1431655766;c=c>>>2&858993459|c<<2&-858993460;c=c>>>4&252645135|c<<4&-252645136;k=32-b|0;g=yp(c>>>8&16711935|c<<8&-16711936,16)>>>k|0;c=g-(g>>>1&1431655765)|0;c=(c>>>2&858993459)+(c&858993459)|0;j=o((c>>>4|0)+c&252645135,16843009)>>>24|0;c=j;h=h+c|0;if(h>>>0>>0){f=f+1|0}i[l+8>>2]=h;i[d+12>>2]=f;c=e;d=b-j|0;f=d+i[c>>2]|0;e=i[c+4>>2]+(d>>31)|0;i[c>>2]=f;i[c+4>>2]=f>>>0>>0?e+1|0:e;a:{b:{c:{d:{c=i[a+28>>2];j=32-c|0;e:{f:{if((j|0)>=(b|0)){b=b+c|0;i[a+28>>2]=b;e=-1>>>k<>2]&(e^-1)|e&g<>2]=f;if((b|0)!=32){break e}b=i[a+16>>2];if((b|0)!=i[a+20>>2]){i[b>>2]=f;i[a+16>>2]=b+4;b=0;c=0;break f}c=i[a+12>>2];e=b-c|0;d=e>>2;g=d+1|0;if(g>>>0>=1073741824){break d}j=e>>1;g=d>>>0<536870911?j>>>0>>0?g:j:1073741823;b=0;g:{if(!g){break g}if(g>>>0>=1073741824){break c}b=ho(g<<2)}d=b+(d<<2)|0;i[d>>2]=f;g=b+(g<<2)|0;f=d+4|0;if((e|0)>=1){hp(b,c,e)}i[a+20>>2]=g;i[a+16>>2]=f;i[a+12>>2]=b;b=0;if(!c){c=0;break f}bp(c);c=0;break f}k=i[a+24>>2]&(-1<>2]=k;c=i[a+16>>2];h:{if((c|0)!=i[a+20>>2]){i[c>>2]=k;i[a+16>>2]=c+4;break h}e=i[a+12>>2];f=c-e|0;h=f>>2;d=h+1|0;if(d>>>0>=1073741824){break b}c=f>>1;d=h>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;i:{if(!d){break i}if(d>>>0>=1073741824){break a}c=ho(d<<2)}h=c+(h<<2)|0;i[h>>2]=k;d=c+(d<<2)|0;k=h+4|0;if((f|0)>=1){hp(c,e,f)}i[a+20>>2]=d;i[a+16>>2]=k;i[a+12>>2]=c;if(!e){break h}bp(e)}c=b-j|0;b=-1>>>32-c&g>>>j}i[a+28>>2]=c;i[a+24>>2]=b}return}Ho();x()}za(10036);x()}Ho();x()}za(10036);x()}function Nh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0;e=F-16|0;F=e;i[a+4>>2]=b;i[a+8>>2]=i[b+56>>2];i[a+188>>2]=i[a+184>>2];f=i[b+48>>2];b=ho(32);i[e>>2]=b;i[e+4>>2]=19;i[e+8>>2]=-2147483616;g[b+19|0]=0;c=j[11251]|j[11252]<<8|(j[11253]<<16|j[11254]<<24);g[b+15|0]=c;g[b+16|0]=c>>>8;g[b+17|0]=c>>>16;g[b+18|0]=c>>>24;c=j[11248]|j[11249]<<8|(j[11250]<<16|j[11251]<<24);d=j[11244]|j[11245]<<8|(j[11246]<<16|j[11247]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11240]|j[11241]<<8|(j[11242]<<16|j[11243]<<24);d=j[11236]|j[11237]<<8|(j[11238]<<16|j[11239]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;b=Sb(f,e);if(g[e+11|0]<=-1){bp(i[e>>2])}f=i[i[a+4>>2]+48>>2];a:{if(b){b=ho(32);i[e>>2]=b;i[e+4>>2]=19;i[e+8>>2]=-2147483616;g[b+19|0]=0;c=j[11251]|j[11252]<<8|(j[11253]<<16|j[11254]<<24);g[b+15|0]=c;g[b+16|0]=c>>>8;g[b+17|0]=c>>>16;g[b+18|0]=c>>>24;c=j[11248]|j[11249]<<8|(j[11250]<<16|j[11251]<<24);d=j[11244]|j[11245]<<8|(j[11246]<<16|j[11247]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[11240]|j[11241]<<8|(j[11242]<<16|j[11243]<<24);d=j[11236]|j[11237]<<8|(j[11238]<<16|j[11239]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;h=a,k=ck(f,e,0),g[h+288|0]=k;if(g[e+11|0]>-1){break a}bp(i[e>>2]);break a}if((_b(f)|0)>=6){g[a+288|0]=1;break a}g[a+288|0]=0}F=e+16|0;return 1}function tf(a){var b=0,c=0,d=0,e=0;d=F-16|0;F=d;Xj(a);b=a+16|0;i[b>>2]=0;i[b+4>>2]=0;i[a+12>>2]=b;e=Xj(a+24|0);a=ho(32);i[d>>2]=a;i[d+4>>2]=20;i[d+8>>2]=-2147483616;g[a+20|0]=0;b=j[10408]|j[10409]<<8|(j[10410]<<16|j[10411]<<24);g[a+16|0]=b;g[a+17|0]=b>>>8;g[a+18|0]=b>>>16;g[a+19|0]=b>>>24;b=j[10404]|j[10405]<<8|(j[10406]<<16|j[10407]<<24);c=j[10400]|j[10401]<<8|(j[10402]<<16|j[10403]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10396]|j[10397]<<8|(j[10398]<<16|j[10399]<<24);c=j[10392]|j[10393]<<8|(j[10394]<<16|j[10395]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Yj(e,d,1);if(g[d+11|0]<=-1){bp(i[d>>2])}a=ho(32);i[d>>2]=a;i[d+4>>2]=22;i[d+8>>2]=-2147483616;g[a+22|0]=0;b=j[10431]|j[10432]<<8|(j[10433]<<16|j[10434]<<24);c=j[10427]|j[10428]<<8|(j[10429]<<16|j[10430]<<24);g[a+14|0]=c;g[a+15|0]=c>>>8;g[a+16|0]=c>>>16;g[a+17|0]=c>>>24;g[a+18|0]=b;g[a+19|0]=b>>>8;g[a+20|0]=b>>>16;g[a+21|0]=b>>>24;b=j[10425]|j[10426]<<8|(j[10427]<<16|j[10428]<<24);c=j[10421]|j[10422]<<8|(j[10423]<<16|j[10424]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10417]|j[10418]<<8|(j[10419]<<16|j[10420]<<24);c=j[10413]|j[10414]<<8|(j[10415]<<16|j[10416]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Yj(e,d,1);if(g[d+11|0]<=-1){bp(i[d>>2])}F=d+16|0}function Qf(a){var b=0,c=0,d=0,e=0;d=F-16|0;F=d;Xj(a);b=a+16|0;i[b>>2]=0;i[b+4>>2]=0;i[a+12>>2]=b;e=Xj(a+24|0);a=ho(32);i[d>>2]=a;i[d+4>>2]=20;i[d+8>>2]=-2147483616;g[a+20|0]=0;b=j[10676]|j[10677]<<8|(j[10678]<<16|j[10679]<<24);g[a+16|0]=b;g[a+17|0]=b>>>8;g[a+18|0]=b>>>16;g[a+19|0]=b>>>24;b=j[10672]|j[10673]<<8|(j[10674]<<16|j[10675]<<24);c=j[10668]|j[10669]<<8|(j[10670]<<16|j[10671]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10664]|j[10665]<<8|(j[10666]<<16|j[10667]<<24);c=j[10660]|j[10661]<<8|(j[10662]<<16|j[10663]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Yj(e,d,1);if(g[d+11|0]<=-1){bp(i[d>>2])}a=ho(32);i[d>>2]=a;i[d+4>>2]=22;i[d+8>>2]=-2147483616;g[a+22|0]=0;b=j[10699]|j[10700]<<8|(j[10701]<<16|j[10702]<<24);c=j[10695]|j[10696]<<8|(j[10697]<<16|j[10698]<<24);g[a+14|0]=c;g[a+15|0]=c>>>8;g[a+16|0]=c>>>16;g[a+17|0]=c>>>24;g[a+18|0]=b;g[a+19|0]=b>>>8;g[a+20|0]=b>>>16;g[a+21|0]=b>>>24;b=j[10693]|j[10694]<<8|(j[10695]<<16|j[10696]<<24);c=j[10689]|j[10690]<<8|(j[10691]<<16|j[10692]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[10685]|j[10686]<<8|(j[10687]<<16|j[10688]<<24);c=j[10681]|j[10682]<<8|(j[10683]<<16|j[10684]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;Yj(e,d,1);if(g[d+11|0]<=-1){bp(i[d>>2])}F=d+16|0}function ij(a,b){var c=0,d=0,e=0;i[a>>2]=i[b>>2];i[a+4>>2]=i[b+4>>2];i[a+8>>2]=i[b+8>>2];c=b+12|0;i[a+12>>2]=i[c>>2];i[c>>2]=0;i[b+4>>2]=0;i[b+8>>2]=0;c=b+16|0;i[a+16>>2]=i[c>>2];i[a+20>>2]=i[b+20>>2];d=b+24|0;i[a+24>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=j[b+28|0];e=a+40|0;i[e>>2]=0;c=a+32|0;i[c>>2]=0;i[c+4>>2]=0;g[a+28|0]=d;d=c;c=b+32|0;i[d>>2]=i[c>>2];i[a+36>>2]=i[b+36>>2];d=b+40|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a+52|0;i[d>>2]=0;c=a+44|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+44|0;i[e>>2]=i[c>>2];i[a+48>>2]=i[b+48>>2];e=d;d=b+52|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a- -64|0;i[d>>2]=0;c=a+56|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+56|0;i[e>>2]=i[c>>2];i[a+60>>2]=i[b+60>>2];e=d;d=b- -64|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;i[a+68>>2]=i[b+68>>2];d=i[b+72>>2];e=a+84|0;i[e>>2]=0;c=a+76|0;i[c>>2]=0;i[c+4>>2]=0;i[a+72>>2]=d;d=c;c=b+76|0;i[d>>2]=i[c>>2];i[a+80>>2]=i[b+80>>2];d=b+84|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=a+96|0;i[d>>2]=0;c=a+88|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+88|0;i[e>>2]=i[c>>2];i[a+92>>2]=i[b+92>>2];e=d;d=b+96|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;c=j[b+100|0];d=a+112|0;i[d>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;g[a+100|0]=c;i[a+104>>2]=i[b+104>>2];i[a+108>>2]=i[b+108>>2];c=b+112|0;i[d>>2]=i[c>>2];i[c>>2]=0;i[b+104>>2]=0;i[b+108>>2]=0;d=a+124|0;i[d>>2]=0;c=a+116|0;i[c>>2]=0;i[c+4>>2]=0;e=c;c=b+116|0;i[e>>2]=i[c>>2];i[a+120>>2]=i[b+120>>2];e=d;d=b+124|0;i[e>>2]=i[d>>2];i[d>>2]=0;i[c>>2]=0;i[c+4>>2]=0;i[a+128>>2]=i[b+128>>2];i[a+132>>2]=i[b+132>>2];return a}function pj(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=F-16|0;F=g;i[g+8>>2]=0;i[g>>2]=0;i[g+4>>2]=0;d=i[a+56>>2];c=i[d+96>>2];l=i[d+100>>2]-c|0;d=(l|0)/12|0;a:{if(!l){break a}n=d>>>0>1?d:1;d=0;l=0;b:{while(1){c:{m=o(l,12)+c|0;h=i[m>>2];c=h-j|0;e=c>>31;j=(e^c+e)<<1|c>>>31;d:{if((b|0)!=(d|0)){i[b>>2]=j;b=b+4|0;i[g+4>>2]=b;break d}e=d-f|0;d=e>>2;b=d+1|0;if(b>>>0>=1073741824){break c}k=e>>1;b=d>>>0<536870911?k>>>0>>0?b:k:1073741823;c=0;e:{if(!b){break e}if(b>>>0>=1073741824){break b}c=ho(b<<2)}k=c+(d<<2)|0;i[k>>2]=j;d=c+(b<<2)|0;b=k+4|0;if((e|0)>=1){hp(c,f,e)}i[g+8>>2]=d;i[g+4>>2]=b;i[g>>2]=c;if(f){bp(f)}f=c}k=i[m+4>>2];c=k-h|0;e=c>>31;j=(e^c+e)<<1|c>>>31;f:{if((b|0)!=(d|0)){i[b>>2]=j;b=b+4|0;i[g+4>>2]=b;break f}e=d-f|0;d=e>>2;b=d+1|0;if(b>>>0>1073741823){break c}h=e>>1;b=d>>>0<536870911?h>>>0>>0?b:h:1073741823;c=0;g:{if(!b){break g}if(b>>>0>1073741823){break b}c=ho(b<<2)}h=c+(d<<2)|0;i[h>>2]=j;d=c+(b<<2)|0;b=h+4|0;if((e|0)>=1){hp(c,f,e)}i[g+8>>2]=d;i[g+4>>2]=b;i[g>>2]=c;if(f){bp(f)}f=c}j=i[m+8>>2];c=j-k|0;e=c>>31;m=(e^c+e)<<1|c>>>31;h:{if((b|0)!=(d|0)){i[b>>2]=m;b=b+4|0;i[g+4>>2]=b;break h}e=d-f|0;d=e>>2;b=d+1|0;if(b>>>0>1073741823){break c}h=e>>1;b=d>>>0<536870911?h>>>0>>0?b:h:1073741823;c=0;i:{if(!b){break i}if(b>>>0>1073741823){break b}c=ho(b<<2)}h=c+(d<<2)|0;i[h>>2]=m;d=c+(b<<2)|0;b=h+4|0;if((e|0)>=1){hp(c,f,e)}i[g+8>>2]=d;i[g+4>>2]=b;i[g>>2]=c;if(f){bp(f)}f=c}l=l+1|0;if((n|0)==(l|0)){break a}c=i[i[a+56>>2]+96>>2];continue}break}Ho();x()}za(13344);x()}kg(f,b-f>>2,1,0,i[a+44>>2]);if(f){bp(f)}F=g+16|0}function Qe(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,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;h=F-32|0;F=h;d=(e&1073741823)!=(e|0)?-1:e<<2;p=ip(ho(d),0,d);d=i[a+40>>2];g=i[d>>2];a:{d=i[d+4>>2]-g|0;if((d|0)<5){break a}l=d>>2;f=d>>>2|0;d=f+ -1|0;if(l>>>0>d>>>0){q=i[a+32>>2];s=a+8|0;t=i[a+36>>2];while(1){m=o(d,e);b:{c:{g=i[(d<<2)+g>>2];if((g|0)==-1){break c}g=i[i[q+12>>2]+(g<<2)>>2];if((g|0)==-1){break c}j=-1;n=i[t>>2];k=i[q>>2];r=i[n+(i[k+(g<<2)>>2]<<2)>>2];l=g+1|0;l=(l>>>0)%3|0?l:g+ -2|0;if((l|0)!=-1){l=i[(l<<2)+k>>2]}else{l=-1}g=g+((g>>>0)%3|0?-1:2)|0;if((g|0)!=-1){j=i[(g<<2)+k>>2]}if((r|0)>=(d|0)){break c}g=i[(l<<2)+n>>2];if((g|0)>=(d|0)){break c}j=i[n+(j<<2)>>2];if((j|0)>=(d|0)){break c}if((e|0)>=1){j=o(e,j);k=o(e,g);n=o(e,r);g=0;while(1){i[(g<<2)+p>>2]=(i[(g+j<<2)+b>>2]+i[(g+k<<2)+b>>2]|0)-i[(g+n<<2)+b>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}g=i[p>>2];j=i[p+4>>2];m=m<<2;k=m+b|0;n=i[k+4>>2];i[h+16>>2]=i[k>>2];i[h+20>>2]=n;i[h+8>>2]=g;i[h+12>>2]=j;break b}g=(o(f+ -2|0,e)<<2)+b|0;j=i[g>>2];g=i[g+4>>2];m=m<<2;k=m+b|0;n=i[k+4>>2];i[h+16>>2]=i[k>>2];i[h+20>>2]=n;i[h+8>>2]=j;i[h+12>>2]=g}ze(h+24|0,s,h+16|0,h+8|0);g=c+m|0;i[g>>2]=i[h+24>>2];i[g+4>>2]=i[h+28>>2];if((f|0)<3){break a}f=d;m=i[a+40>>2];g=i[m>>2];d=d+ -1|0;if(i[m+4>>2]-g>>2>>>0>d>>>0){continue}break}}Io();x()}if((e|0)>=1){ip(p,0,e<<2)}d=i[p>>2];e=i[p+4>>2];f=i[b+4>>2];i[h+16>>2]=i[b>>2];i[h+20>>2]=f;i[h+8>>2]=d;i[h+12>>2]=e;ze(h+24|0,a+8|0,h+16|0,h+8|0);i[c>>2]=i[h+24>>2];i[c+4>>2]=i[h+28>>2];bp(p);F=h+32|0;return 1}function ye(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,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;h=F-32|0;F=h;d=(e&1073741823)!=(e|0)?-1:e<<2;n=ip(ho(d),0,d);d=i[a+40>>2];g=i[d>>2];a:{d=i[d+4>>2]-g|0;if((d|0)<5){break a}j=d>>2;f=d>>>2|0;d=f+ -1|0;if(j>>>0>d>>>0){q=i[a+32>>2];r=a+8|0;s=i[a+36>>2];while(1){k=o(d,e);b:{c:{g=i[(d<<2)+g>>2];if((g|0)==-1|i[i[q>>2]+(g>>>3&536870908)>>2]>>>g&1){break c}g=i[i[i[q+64>>2]+12>>2]+(g<<2)>>2];if((g|0)==-1){break c}j=i[s>>2];l=i[q+28>>2];m=i[j+(i[l+(g<<2)>>2]<<2)>>2];if((m|0)>=(d|0)){break c}p=g+1|0;p=i[j+(i[l+(((p>>>0)%3|0?p:g+ -2|0)<<2)>>2]<<2)>>2];if((p|0)>=(d|0)){break c}g=i[j+(i[l+(g+((g>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((g|0)>=(d|0)){break c}if((e|0)>=1){l=o(e,g);j=o(e,p);m=o(e,m);g=0;while(1){i[(g<<2)+n>>2]=(i[(g+l<<2)+b>>2]+i[(g+j<<2)+b>>2]|0)-i[(g+m<<2)+b>>2];g=g+1|0;if((g|0)!=(e|0)){continue}break}}g=i[n>>2];l=i[n+4>>2];k=k<<2;j=k+b|0;m=i[j+4>>2];i[h+16>>2]=i[j>>2];i[h+20>>2]=m;i[h+8>>2]=g;i[h+12>>2]=l;break b}g=(o(f+ -2|0,e)<<2)+b|0;l=i[g>>2];g=i[g+4>>2];k=k<<2;j=k+b|0;m=i[j+4>>2];i[h+16>>2]=i[j>>2];i[h+20>>2]=m;i[h+8>>2]=l;i[h+12>>2]=g}ze(h+24|0,r,h+16|0,h+8|0);g=c+k|0;i[g>>2]=i[h+24>>2];i[g+4>>2]=i[h+28>>2];if((f|0)<3){break a}f=d;k=i[a+40>>2];g=i[k>>2];d=d+ -1|0;if(i[k+4>>2]-g>>2>>>0>d>>>0){continue}break}}Io();x()}if((e|0)>=1){ip(n,0,e<<2)}d=i[n>>2];e=i[n+4>>2];f=i[b+4>>2];i[h+16>>2]=i[b>>2];i[h+20>>2]=f;i[h+8>>2]=d;i[h+12>>2]=e;ze(h+24|0,a+8|0,h+16|0,h+8|0);i[c>>2]=i[h+24>>2];i[c+4>>2]=i[h+28>>2];bp(n);F=h+32|0;return 1}function Nf(a,b,c,d,e){var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{b:{c:{d:{e:{n=a+4|0;f:{if((n|0)==(b|0)){break f}f=j[b+27|0];h=f<<24>>24<0;k=j[e+11|0];p=k<<24>>24;g=(p|0)<0;f=h?i[b+20>>2]:f;k=g?i[e+4>>2]:k;l=f>>>0>>0;m=l?f:k;if(m){g=g?i[e>>2]:e;o=b+16|0;h=h?i[o>>2]:o;o=Km(g,h,m);if(!o){if(k>>>0>>0){break f}break e}if((o|0)>-1){break e}break f}if(k>>>0>=f>>>0){break d}}h=i[b>>2];d=b;g:{h:{if(i[a>>2]==(b|0)){break h}i:{if(h){f=h;while(1){d=f;f=i[f+4>>2];if(f){continue}break}break i}d=b+8|0;if(i[i[b+8>>2]>>2]==(b|0)){while(1){f=i[d>>2];d=f+8|0;if((f|0)==i[i[f+8>>2]>>2]){continue}break}}d=i[d>>2]}g=j[e+11|0];f=g<<24>>24<0;l=j[d+27|0];k=l<<24>>24<0;j:{g=f?i[e+4>>2]:g;l=k?i[d+20>>2]:l;m=g>>>0>>0?g:l;if(m){n=d+16|0;f=Km(k?i[n>>2]:n,f?i[e>>2]:e,m);if(f){break j}}if(l>>>0>>0){break h}break g}if((f|0)>-1){break g}}if(!h){i[c>>2]=b;return b}i[c>>2]=d;return d+4|0}return Of(a,c,e)}f=Km(h,g,m);if(f){break c}}if(l){break b}break a}if((f|0)>-1){break a}}h=i[b+4>>2];k:{if(h){f=h;while(1){d=f;f=i[f>>2];if(f){continue}break}break k}d=i[b+8>>2];if(i[d>>2]==(b|0)){break k}f=b+8|0;while(1){g=i[f>>2];f=g+8|0;d=i[g+8>>2];if((g|0)!=i[d>>2]){continue}break}}l:{m:{if((d|0)==(n|0)){break m}g=j[d+27|0];f=g<<24>>24<0;n:{g=f?i[d+20>>2]:g;l=g>>>0>>0?g:k;if(l){m=d+16|0;f=Km((p|0)<0?i[e>>2]:e,f?i[m>>2]:m,l);if(f){break n}}if(k>>>0>>0){break m}break l}if((f|0)>-1){break l}}if(!h){i[c>>2]=b;return b+4|0}i[c>>2]=d;return d}return Of(a,c,e)}i[c>>2]=b;i[d>>2]=b;return d}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;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;i[a+8>>2]=e;i[a- -64>>2]=f;g=a+32|0;j=i[g>>2];f=i[a+36>>2]-j>>2;a:{if(f>>>0>>0){Bd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=j+(e<<2)}b:{if(!d){break b}j=1;f=i[b>>2];c:{if((d|0)<=1){g=f;break c}g=f;while(1){h=i[(j<<2)+b>>2];k=(h|0)<(g|0);g=k?h:g;f=k?f:(h|0)>(f|0)?h:f;j=j+1|0;if((j|0)!=(d|0)){continue}break}}i[a+16>>2]=f;i[a+12>>2]=g;d=(f>>31)-((g>>31)+(f>>>0>>0)|0)|0;f=f-g|0;if(!d&f>>>0>2147483646|d>>>0>0){break b}d=f+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}d=i[a+56>>2];g=i[d>>2];d:{d=i[d+4>>2]-g|0;if((d|0)<1){break d}h=(d>>>2|0)+ -1|0;if(d>>2>>>0>h>>>0){p=a+60|0;j=a+68|0;while(1){he(p,i[(h<<2)+g>>2],b,h);g=i[a+8>>2];if((g|0)>=1){d=o(e,h)<<2;q=d+c|0;r=b+d|0;d=j;k=0;while(1){f=0;e:{if((g|0)<=0){g=i[a+32>>2];break e}while(1){l=f<<2;n=i[l+d>>2];m=i[a+16>>2];f:{if((n|0)>(m|0)){g=i[a+32>>2];i[l+g>>2]=m;break f}g=i[a+32>>2];l=l+g|0;m=i[a+12>>2];if((n|0)<(m|0)){i[l>>2]=m;break f}i[l>>2]=n}f=f+1|0;if((f|0)>2]){continue}break}}f=k<<2;d=f+q|0;f=i[f+r>>2]-i[f+g>>2]|0;i[d>>2]=f;g:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break g}f=f-i[a+20>>2]|0}i[d>>2]=f}d=g;k=k+1|0;g=i[a+8>>2];if((k|0)<(g|0)){continue}break}}h=h+ -1|0;if((h|0)<0){break d}d=i[a+56>>2];g=i[d>>2];if(i[d+4>>2]-g>>2>>>0>h>>>0){continue}break}}Io();x()}return 1}function Od(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,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;i[a+8>>2]=e;i[a- -64>>2]=f;g=a+32|0;j=i[g>>2];f=i[a+36>>2]-j>>2;a:{if(f>>>0>>0){Bd(g,e-f|0);break a}if(f>>>0<=e>>>0){break a}i[a+36>>2]=j+(e<<2)}b:{if(!d){break b}j=1;f=i[b>>2];c:{if((d|0)<=1){g=f;break c}g=f;while(1){h=i[(j<<2)+b>>2];k=(h|0)<(g|0);g=k?h:g;f=k?f:(h|0)>(f|0)?h:f;j=j+1|0;if((j|0)!=(d|0)){continue}break}}i[a+16>>2]=f;i[a+12>>2]=g;d=(f>>31)-((g>>31)+(f>>>0>>0)|0)|0;f=f-g|0;if(!d&f>>>0>2147483646|d>>>0>0){break b}d=f+1|0;i[a+20>>2]=d;f=(d|0)/2|0;i[a+24>>2]=f;i[a+28>>2]=0-f;if(d&1){break b}i[a+24>>2]=f+ -1}d=i[a+56>>2];g=i[d>>2];d:{d=i[d+4>>2]-g|0;if((d|0)<1){break d}h=(d>>>2|0)+ -1|0;if(d>>2>>>0>h>>>0){p=a+60|0;j=a+68|0;while(1){Pd(p,i[(h<<2)+g>>2],b,h);g=i[a+8>>2];if((g|0)>=1){d=o(e,h)<<2;q=d+c|0;r=b+d|0;d=j;k=0;while(1){f=0;e:{if((g|0)<=0){g=i[a+32>>2];break e}while(1){l=f<<2;n=i[l+d>>2];m=i[a+16>>2];f:{if((n|0)>(m|0)){g=i[a+32>>2];i[l+g>>2]=m;break f}g=i[a+32>>2];l=l+g|0;m=i[a+12>>2];if((n|0)<(m|0)){i[l>>2]=m;break f}i[l>>2]=n}f=f+1|0;if((f|0)>2]){continue}break}}f=k<<2;d=f+q|0;f=i[f+r>>2]-i[f+g>>2]|0;i[d>>2]=f;g:{if((f|0)>2]){f=f+i[a+20>>2]|0}else{if((f|0)<=i[a+24>>2]){break g}f=f-i[a+20>>2]|0}i[d>>2]=f}d=g;k=k+1|0;g=i[a+8>>2];if((k|0)<(g|0)){continue}break}}h=h+ -1|0;if((h|0)<0){break d}d=i[a+56>>2];g=i[d>>2];if(i[d+4>>2]-g>>2>>>0>h>>>0){continue}break}}Io();x()}return 1}function ze(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=c;f=i[b+16>>2];g=i[e+4>>2]-f|0;i[e>>2]=i[e>>2]-f;i[e+4>>2]=g;e=i[d+4>>2]-f|0;f=i[d>>2]-f|0;i[d>>2]=f;i[d+4>>2]=e;g=e>>31;k=g+e^g;g=f>>31;h=i[b+16>>2];if((k+(g+f^g)|0)>(h|0)){j=i[c+4>>2];l=i[c>>2];a:{b:{if((l|0)>=0){e=1;g=1;if((j|0)>-1){break a}f=1;e=-1;g=-1;if((l|0)>=1){break b}break a}f=-1;e=-1;g=-1;if((j|0)<1){break a}}e=(j|0)<1?-1:1;g=f}f=1;k=-1;m=l<<1;l=o(g,h);m=m-l|0;g=(o(e,g)|0)>-1;e=o(e,h);i[c+4>>2]=((g?0-m|0:m)+e|0)/2;e=(j<<1)-e|0;i[c>>2]=(l+(g?0-e|0:e)|0)/2;g=i[d+4>>2];j=i[d>>2];c:{d:{if((j|0)>=0){e=1;if((g|0)>-1){break c}k=1;f=-1;e=-1;if((j|0)>=1){break d}break c}f=-1;e=-1;if((g|0)<1){break c}}f=(g|0)<1?-1:1;e=k}h=j<<1;k=i[b+16>>2];j=o(k,e);h=h-j|0;m=0-h|0;l=h;h=(o(e,f)|0)>-1;f=o(f,k);e=((h?m:l)+f|0)/2|0;i[d+4>>2]=e;f=(g<<1)-f|0;f=(j+(h?0-f|0:f)|0)/2|0;i[d>>2]=f}k=d;e:{f:{g:{h:{i:{j:{if(!f){if(e){break j}e=0;f=0;break e}if((e|0)<1?(f|0)<=-1:0){break e}if((f|0)<1){break i}if((e|0)<=-1){break g}e=0-i[c+4>>2]|0;i[c>>2]=0-i[c>>2];i[c+4>>2]=e;f=0-i[d>>2]|0;e=0-i[d+4>>2]|0;break f}if((e|0)<1){break g}break h}if((e|0)>0){break h}f=i[d>>2];e=i[d+4>>2];break f}e=c;g=i[e>>2];i[e>>2]=0-i[e+4>>2];i[e+4>>2]=g;f=0-i[d+4>>2]|0;e=i[d>>2];break f}e=0-i[c>>2]|0;i[c>>2]=i[c+4>>2];i[c+4>>2]=e;f=i[d+4>>2];e=0-i[d>>2]|0}i[k>>2]=f;i[k+4>>2]=e}d=i[c+4>>2]-e|0;e=a;c=i[c>>2]-f|0;if((c|0)<=-1){c=c+i[b+4>>2]|0}i[e>>2]=c;if((d|0)<=-1){d=d+i[b+4>>2]|0}i[a+4>>2]=d}function Gi(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11424;b=i[a+336>>2];if(b){c=i[a+340>>2];d=b;a:{if((b|0)==(c|0)){break a}while(1){d=c+ -12|0;e=i[d>>2];if(e){i[c+ -8>>2]=e;bp(e)}c=d;if((c|0)!=(b|0)){continue}break}d=i[a+336>>2]}i[a+340>>2]=b;bp(d)}b=i[a+304>>2];if(b){i[a+308>>2]=b;bp(b)}b=i[a+292>>2];if(b){i[a+296>>2]=b;bp(b)}b=a+280|0;c=i[b>>2];i[b>>2]=0;if(c){d=c+ -4|0;b=i[d>>2];if(b){b=c+(b<<5)|0;while(1){b=nf(b+ -32|0);if((c|0)!=(b|0)){continue}break}}bp(d)}b=i[a+268>>2];if(b){i[a+272>>2]=b;bp(b)}c=a+244|0;b=i[c>>2];i[c>>2]=0;if(b){bp(b)}b=i[a+232>>2];if(b){i[a+236>>2]=b;bp(b)}nf(a+200|0);b=i[a+184>>2];if(b){i[a+188>>2]=b;bp(b)}c=i[a+172>>2];if(c){b=i[a+176>>2];d=c;b:{if((c|0)==(b|0)){break b}while(1){d=i[b+ -20>>2];if(d){i[b+ -16>>2]=d;bp(d)}d=b+ -136|0;e=i[b+ -32>>2];if(e){i[b+ -28>>2]=e;bp(e)}ni(b+ -132|0);b=d;if((c|0)!=(b|0)){continue}break}d=i[a+172>>2]}i[a+176>>2]=c;bp(d)}b=i[a+152>>2];if(b){i[a+156>>2]=b;bp(b)}b=i[a+140>>2];if(b){bp(b)}b=i[a+128>>2];if(b){while(1){c=i[b>>2];bp(b);b=c;if(b){continue}break}}b=i[a+120>>2];i[a+120>>2]=0;if(b){bp(b)}b=i[a+108>>2];if(b){i[a+112>>2]=b;bp(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+84>>2];if(b){bp(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;bp(b)}b=i[a+52>>2];if(b){i[a+56>>2]=b;bp(b)}b=i[a+40>>2];if(b){i[a+44>>2]=b;bp(b)}b=i[a+28>>2];if(b){bp(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}b=i[a+12>>2];i[a+12>>2]=0;if(b){bi(b)}return a|0}function _a(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=0,o=0,q=0,r=0,s=p(0),t=0,u=0;n=i[c+12>>2];o=i[c+8>>2];q=i[c+4>>2];r=i[c>>2];j=n^(o^(q^(r^318)+239)+239)+239;t=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];l=xp(e);h=j&e+ -1;c:{if(l>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}u=e+ -1|0;l=l>>>0>1;while(1){f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!l){f=f&u;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(!(i[c+8>>2]!=(r|0)|i[c+12>>2]!=(q|0)|(i[c+16>>2]!=(o|0)|i[c+20>>2]!=(n|0)))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ho(28);f=i[d+12>>2];i[c+16>>2]=i[d+8>>2];i[c+20>>2]=f;f=i[d+4>>2];i[c+8>>2]=i[d>>2];i[c+12>>2]=f;d=i[d+16>>2];i[c>>2]=0;i[c+4>>2]=j;i[c+24>>2]=d;k=m[b+16>>2];s=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(s/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}fb(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[t+4|0]=b;i[a>>2]=c}function ff(a,b){var c=0,d=0,e=0,f=0,h=0,k=0;d=F-16|0;F=d;a:{if((_b(i[b+48>>2])|0)>9){break a}if((I[i[i[b>>2]+8>>2]](b)|0)!=1){break a}a=i[i[i[b+4>>2]+8>>2]+(a<<2)>>2];e=i[a+56>>2];if((e|0)==3){e=5;if((_b(i[b+48>>2])|0)<4){break a}e=i[a+56>>2]}a=_b(i[b+48>>2]);if((e|0)==1){b:{if((a|0)>3){break b}f=xm(i[b+4>>2],0);a=ym(i[b+4>>2]);if(!a){break b}e=6;a=i[a+28>>2]+ -1|0;c:{if(a>>>0<=10){a=1279>>>a&1;break c}a=0}if(a){break a}h=i[b+48>>2];a=ho(32);i[d>>2]=a;i[d+4>>2]=17;i[d+8>>2]=-2147483616;g[a+17|0]=0;g[a+16|0]=j[9948];b=j[9944]|j[9945]<<8|(j[9946]<<16|j[9947]<<24);c=j[9940]|j[9941]<<8|(j[9942]<<16|j[9943]<<24);g[a+8|0]=c;g[a+9|0]=c>>>8;g[a+10|0]=c>>>16;g[a+11|0]=c>>>24;g[a+12|0]=b;g[a+13|0]=b>>>8;g[a+14|0]=b>>>16;g[a+15|0]=b>>>24;b=j[9936]|j[9937]<<8|(j[9938]<<16|j[9939]<<24);c=j[9932]|j[9933]<<8|(j[9934]<<16|j[9935]<<24);g[a|0]=c;g[a+1|0]=c>>>8;g[a+2|0]=c>>>16;g[a+3|0]=c>>>24;g[a+4|0]=b;g[a+5|0]=b>>>8;g[a+6|0]=b>>>16;g[a+7|0]=b>>>24;d:{e:{c=h+16|0;b=i[c>>2];if(!b){break e}a=c;while(1){k=i[b+16>>2]<(f|0);a=k?a:b;b=i[(k<<2)+b>>2];if(b){continue}break}if((a|0)==(c|0)|(f|0)>2]){break e}a=a+20|0;if(!Sb(a,d)){break e}a=$j(a,d,-1);break d}a=$j(h,d,-1)}if(g[d+11|0]<=-1){bp(i[d>>2])}if((a|0)>0){break a}}e=0;break a}e=0;if((a|0)>7){break a}e=1;if((_b(i[b+48>>2])|0)>1){break a}F=d+16|0;return l[i[b+4>>2]+80>>2]<40?1:4}F=d+16|0;return e}function Th(a,b,c){var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;d=F-112|0;F=d;e=ho(120);m=i[b+8>>2];i[e+12>>2]=0;i[e+16>>2]=0;i[e>>2]=12120;i[e+4>>2]=0;i[e+20>>2]=0;i[e+24>>2]=0;i[e+28>>2]=0;i[e+32>>2]=0;i[e+36>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;i[e+56>>2]=0;i[e+60>>2]=0;i[e+8>>2]=12332;h=e- -64|0;i[h>>2]=0;i[h+4>>2]=0;i[e+72>>2]=0;i[e+76>>2]=0;i[e+80>>2]=0;i[e+84>>2]=0;i[e+88>>2]=0;i[e+116>>2]=0;i[e+112>>2]=c;i[e+108>>2]=m;i[e+104>>2]=0;i[e+96>>2]=0;i[e+100>>2]=0;h=i[b+12>>2];i[d+52>>2]=0;n=d+44|0;j=n;i[j>>2]=0;i[j+4>>2]=0;i[d+36>>2]=0;i[d+40>>2]=0;j=d+28|0;i[j>>2]=0;i[j+4>>2]=0;o=d+20|0;f=o;i[f>>2]=0;i[f+4>>2]=0;f=d- -64|0;i[f>>2]=0;i[f+4>>2]=0;i[d+72>>2]=0;i[d+76>>2]=0;f=d+80|0;i[f>>2]=0;i[f+4>>2]=0;i[d+88>>2]=0;i[d+104>>2]=0;i[d+12>>2]=0;i[d+16>>2]=0;i[d+56>>2]=0;i[d+60>>2]=0;i[d+8>>2]=12332;i[d+96>>2]=0;i[d+100>>2]=0;i[d+12>>2]=h;k=i[h>>2];l=i[h+4>>2];g[d+111|0]=0;Uh(d+32|0,(l-k>>2>>>0)/3|0,d+111|0);k=i[d+12>>2];l=i[k+28>>2];k=i[k+24>>2];g[d+111|0]=0;Uh(n,l-k>>2,d+111|0);i[j>>2]=e;i[d+24>>2]=m;i[o>>2]=c;i[d+16>>2]=h;i[e+116>>2]=b+72;Yh(e,d+8|0);i[a>>2]=e;i[d+8>>2]=12332;a=i[d+96>>2];if(a){i[d+100>>2]=a;bp(a)}a=i[f>>2];if(a){i[d+84>>2]=a;bp(a)}a=i[d+68>>2];if(a){i[d+72>>2]=a;bp(a)}a=i[d+56>>2];if(a){i[d+60>>2]=a;bp(a)}i[d+8>>2]=12568;a=i[d+44>>2];if(a){bp(a)}a=i[d+32>>2];if(a){bp(a)}F=d+112|0}function wb(a,b,c,d){var e=0,f=0,h=0,j=0,l=0,n=p(0),o=0,q=0,r=0,s=0,t=p(0),u=0,w=0;q=k[c+6>>1];r=k[c+4>>1];s=k[c+2>>1];l=k[c>>1];j=q^(r^(s^(l^318)+239)+239)+239;u=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];o=xp(e);h=j&e+ -1;c:{if(o>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}w=e+ -1|0;o=o>>>0>1;while(1){f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!o){f=f&w;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(!(k[c+8>>1]!=(l|0)|k[c+10>>1]!=(s|0)|(k[c+12>>1]!=(r|0)|k[c+14>>1]!=(q|0)))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ho(20);l=i[d+4>>2];i[c+8>>2]=i[d>>2];i[c+12>>2]=l;d=i[d+8>>2];i[c+4>>2]=j;i[c+16>>2]=d;i[c>>2]=0;n=m[b+16>>2];t=p(i[b+12>>2]+1>>>0);e:{if(p(n*p(e>>>0))>>0<3|e<<1;d=b;n=p(v(p(t/n)));f:{if(n=p(0)){h=~~n>>>0;break f}h=0}Db(d,l>>>0>>0?h:l);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[u+4|0]=b;i[a>>2]=c}function Vc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0;e=F-16|0;F=e;d=i[b+28>>2];f=i[i[b+4>>2]+(c<<2)>>2];h=i[i[i[d+4>>2]+8>>2]+(f<<2)>>2];b=i[h+28>>2];a:{if(b+ -1>>>0>=6){b:{if((b|0)!=9){break b}k=i[d+48>>2];b=ho(32);i[e>>2]=b;i[e+4>>2]=17;i[e+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[2108];c=j[2104]|j[2105]<<8|(j[2106]<<16|j[2107]<<24);d=j[2100]|j[2101]<<8|(j[2102]<<16|j[2103]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[2096]|j[2097]<<8|(j[2098]<<16|j[2099]<<24);d=j[2092]|j[2093]<<8|(j[2094]<<16|j[2095]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;c:{d:{d=k+16|0;b=i[d>>2];if(!b){break d}c=d;while(1){l=i[b+16>>2]<(f|0);c=l?c:b;b=i[(l<<2)+b>>2];if(b){continue}break}if((c|0)==(d|0)|(f|0)>2]){break d}b=c+20|0;if(!Sb(b,e)){break d}b=$j(b,e,-1);break c}b=$j(k,e,-1)}if(g[e+11|0]<=-1){bp(i[e>>2])}if((b|0)<1){break b}if(i[h+56>>2]==1){b=ho(48);i[b>>2]=0;i[b+4>>2]=0;c=b+40|0;i[c>>2]=0;i[c+4>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=0;i[b+28>>2]=0;i[b+16>>2]=0;i[b+20>>2]=0;i[b+8>>2]=0;i[b+12>>2]=0;ed(b);i[b+44>>2]=-1;i[c>>2]=1032;i[b>>2]=6056;break a}b=ho(64);$e(b);break a}b=ho(36);Bc(b);break a}b=ho(40);ed(b)}i[a>>2]=b;F=e+16|0}function sa(a,b,c){var d=p(0),e=0,f=0,h=0,j=0,k=p(0),l=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;l=F-16|0;F=l;a:{if(!(i[a+4>>2]!=-1|c+ -1>>>0>29)){i[a+4>>2]=c;e=g[b+24|0];c=0;i[a+20>>2]=0;i[l+8>>2]=0;i[l>>2]=0;i[l+4>>2]=0;if(e){if((e|0)<=-1){break a}c=e<<2;f=ho(c);c=ip(f,0,c)+c|0}h=i[a+8>>2];if(h){i[a+12>>2]=h;bp(h)}i[a+8>>2]=f;i[a+16>>2]=c;i[a+12>>2]=c;c=(e&1073741823)!=(e|0)?-1:e<<2;n=ho(c);c=ho(c);w=i[b+44>>2];o=c;h=i[b+48>>2];c=h;q=i[b>>2];t=i[b+40>>2];r=t;u=hp(o,c+i[q>>2]|0,r);s=hp(f,c+i[q>>2]|0,r);n=hp(n,c+i[q>>2]|0,r);b=i[b+80>>2];if(b>>>0>=2){f=b;o=1;c=0;while(1){b=i[q>>2];j=up(o,c,t,w)+h|0;y=hp(u,b+j|0,r);b=0;if((e|0)>0){while(1){j=b<<2;v=j+s|0;d=m[j+y>>2];if(!(m[v>>2]>d^1)){m[v>>2]=d}j=j+n|0;if(!(m[j>>2]>2]=d}b=b+1|0;if((e|0)!=(b|0)){continue}break}}b=o+1|0;if(b>>>0<1){c=c+1|0}o=b;if((f|0)!=(b|0)|c){continue}break}}c=1;b:{c:{d:{if((e|0)>=1){d=m[s>>2];if(d!=d){break b}b=0;break d}d=m[a+20>>2];c=0;break c}while(1){if(((Fp(d),Bp(2))&2147483647)==2139095040){break b}h=(b<<2)+n|0;f=i[h>>2];k=m[h>>2];if((f&2147483647)==2139095040|k!=k){break b}k=p(k-d);d=m[a+20>>2];if(!(k>d^1)){m[a+20>>2]=k;d=k}b=b+1|0;c=(b|0)<(e|0);if((b|0)==(e|0)){break c}d=m[(b<<2)+s>>2];if(d==d){continue}break}break b}if(d!=p(0)){break b}i[a+20>>2]=1065353216}bp(u);bp(n);f=c^1}F=l+16|0;return f&1}Ho();x()}function Za(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=0,o=0,q=0,r=p(0),s=0,t=0;n=i[c+8>>2];o=i[c+4>>2];q=i[c>>2];j=n^(o^(q^318)+239)+239;s=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];l=xp(e);h=j&e+ -1;c:{if(l>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}t=e+ -1|0;l=l>>>0>1;while(1){f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!l){f=f&t;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(!(i[c+8>>2]!=(q|0)|i[c+12>>2]!=(o|0)|i[c+16>>2]!=(n|0))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ho(24);i[c+16>>2]=i[d+8>>2];f=i[d+4>>2];i[c+8>>2]=i[d>>2];i[c+12>>2]=f;d=i[d+12>>2];i[c>>2]=0;i[c+4>>2]=j;i[c+20>>2]=d;k=m[b+16>>2];r=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(r/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}db(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[s+4|0]=b;i[a>>2]=c}function Gg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;jh(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}fh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function Fg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;ih(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}fh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function Eg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;hh(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}fh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function Dg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;gh(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}fh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function Cg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;eh(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=4194304;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=4194304;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<20)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}fh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function Bg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;ch(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=2097152;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=2097152;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<19)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}dh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function Ag(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;ah(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=1048576;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=1048576;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<18)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}bh(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function zg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;_g(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=262144;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=262144;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<16)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}$g(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function yg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Yg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=131072;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=131072;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<15)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}Zg(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function xg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Wg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=32768;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=32768;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<13)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}Xg(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function wg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Vg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function vg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Ug(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function ug(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Tg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function tg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;ng(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function sg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Sg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function rg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Rg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function qg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Qg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function pg(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;e=F+ -64|0;F=e;i[e+56>>2]=0;i[e+48>>2]=0;i[e+52>>2]=0;a:{f=c+1|0;if(f>>>0>=c>>>0){if(f>>>0>=536870912){break a}f=f<<3;l=ho(f);i[e+48>>2]=l;k=f+l|0;i[e+56>>2]=k;ip(l,0,(c<<3)+8|0);i[e+52>>2]=k}if((b|0)>0){while(1){c=(i[(j<<2)+a>>2]<<3)+l|0;f=c;n=c;h=i[c+4>>2];c=i[c>>2]+1|0;if(c>>>0<1){h=h+1|0}i[n>>2]=c;i[f+4>>2]=h;j=j+1|0;if((j|0)!=(b|0)){continue}break}}i[e+8>>2]=0;i[e+12>>2]=0;f=e+16|0;c=f;i[c>>2]=0;i[c+4>>2]=0;m=e+24|0;c=m;i[c>>2]=0;i[c+4>>2]=0;i[e+32>>2]=0;i[e>>2]=0;i[e+4>>2]=0;i[e+40>>2]=0;i[e+44>>2]=0;Pg(e,l,k-l>>3,d);h=i[f>>2];c=i[f+4>>2];f=i[d+4>>2]-i[d>>2]|0;i[e+40>>2]=f;i[e+44>>2]=0;n=d;k=h;h=c<<1|h>>>31;c=(k<<1)+39|0;if(c>>>0<39){h=h+1|0}k=c;c=h>>>3|0;h=f+((h&7)<<29|k>>>3)|0;if(h>>>0>>0){c=c+1|0}f=h+8|0;f>>>0<8;Uj(n,f);c=i[d>>2];i[e+28>>2]=0;i[e+32>>2]=16384;i[m>>2]=c+i[e+40>>2];if((b|0)>=1){j=16384;while(1){c=b+ -1|0;k=i[e>>2]+(i[(c<<2)+a>>2]<<3)|0;m=i[k>>2];h=m<<10;if(j>>>0>=h>>>0){while(1){f=i[e+28>>2];i[e+28>>2]=f+1;g[f+i[e+24>>2]|0]=j;j=i[e+32>>2]>>>8|0;i[e+32>>2]=j;if(j>>>0>=h>>>0){continue}break}}f=(j>>>0)/(m>>>0)|0;j=i[k+4>>2]+((f<<12)+(j-o(f,m)|0)|0)|0;i[e+32>>2]=j;f=(b|0)>1;b=c;if(f){continue}break}}og(e,d);a=i[e>>2];if(a){i[e+4>>2]=a;bp(a)}a=i[e+48>>2];if(a){i[e+52>>2]=a;bp(a)}F=e- -64|0;return 1}Ho();x()}function kb(a,b,c,d){var e=0,f=0,h=0,k=0,l=p(0),n=0,o=0,q=0,r=0,s=0,t=p(0),u=0,w=0;o=j[c+3|0];q=j[c+2|0];r=j[c+1|0];s=j[c|0];k=o^(q^(r^(s^318)+239)+239)+239;u=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];n=xp(e);h=k&e+ -1;c:{if(n>>>0<=1){break c}c=k;h=c;if(c>>>0>>0){break c}h=(k>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}w=e+ -1|0;n=n>>>0>1;while(1){f=i[c+4>>2];if((k|0)!=(f|0)){d:{if(!n){f=f&w;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(!(j[c+8|0]!=(s|0)|j[c+9|0]!=(r|0)|(j[c+10|0]!=(q|0)|j[c+11|0]!=(o|0)))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ho(16);i[c+8>>2]=i[d>>2];d=i[d+4>>2];i[c+4>>2]=k;i[c+12>>2]=d;i[c>>2]=0;l=m[b+16>>2];t=p(i[b+12>>2]+1>>>0);e:{if(p(l*p(e>>>0))>>0<3|e<<1;d=b;l=p(v(p(t/l)));f:{if(l=p(0)){h=~~l>>>0;break f}h=0}rb(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=k&e+ -1;break e}if(k>>>0>>0){h=k;break e}h=(k>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[u+4|0]=b;i[a>>2]=c}function vb(a,b,c,d){var e=0,f=0,j=0,l=0,n=p(0),o=0,q=0,r=0,s=0,t=p(0),u=0,w=0;r=k[c+4>>1];s=k[c+2>>1];o=k[c>>1];l=r^(s^(o^318)+239)+239;u=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];q=xp(e);j=l&e+262143;c:{if(q>>>0<=1){break c}c=l;j=c;if(c>>>0>>0){break c}j=(l>>>0)%(e>>>0)|0}c=j;j=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}w=e+ -1|0;q=q>>>0>1;while(1){f=i[c+4>>2];if((l|0)!=(f|0)){d:{if(!q){f=f&w;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(j|0)){break b}}if(!(k[c+8>>1]!=(o|0)|k[c+10>>1]!=(s|0)|k[c+12>>1]!=(r|0))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ho(20);h[c+12>>1]=k[d+4>>1];i[c+8>>2]=i[d>>2];d=i[d+8>>2];i[c>>2]=0;i[c+4>>2]=l;i[c+16>>2]=d;n=m[b+16>>2];t=p(i[b+12>>2]+1>>>0);e:{if(p(n*p(e>>>0))>>0<3|e<<1;d=b;n=p(v(p(t/n)));f:{if(n=p(0)){j=~~n>>>0;break f}j=0}Bb(d,o>>>0>>0?j:o);e=i[b+4>>2];if(!(e&e+ -1)){j=l&e+ -1;break e}if(l>>>0>>0){j=l;break e}j=(l>>>0)%(e>>>0)|0}d=i[b>>2]+(j<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[u+4|0]=b;i[a>>2]=c}function jb(a,b,c,d){var e=0,f=0,l=0,n=0,o=p(0),q=0,r=0,s=0,t=0,u=p(0),w=0,x=0;r=j[c+2|0];s=j[c+1|0];t=j[c|0];n=r^(s^(t^318)+239)+239;w=a;e=i[b+4>>2];a:{b:{if(!e){break b}f=i[b>>2];q=xp(e);l=n&e+ -1;c:{if(q>>>0<=1){break c}c=n;l=c;if(c>>>0>>0){break c}l=(n>>>0)%(e>>>0)|0}c=l;l=c;c=i[(c<<2)+f>>2];if(!c){break b}c=i[c>>2];if(!c){break b}x=e+ -1|0;q=q>>>0>1;while(1){f=i[c+4>>2];if((n|0)!=(f|0)){d:{if(!q){f=f&x;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(l|0)){break b}}if(!(j[c+8|0]!=(t|0)|j[c+9|0]!=(s|0)|j[c+10|0]!=(r|0))){b=0;break a}c=i[c>>2];if(c){continue}break}}c=ho(16);g[c+10|0]=j[d+2|0];h[c+8>>1]=k[d>>1];d=i[d+4>>2];i[c>>2]=0;i[c+4>>2]=n;i[c+12>>2]=d;o=m[b+16>>2];u=p(i[b+12>>2]+1>>>0);e:{if(p(o*p(e>>>0))>>0<3|e<<1;d=b;o=p(v(p(u/o)));f:{if(o=p(0)){l=~~o>>>0;break f}l=0}pb(d,e>>>0>>0?l:e);e=i[b+4>>2];if(!(e&e+ -1)){l=n&e+ -1;break e}if(n>>>0>>0){l=n;break e}l=(n>>>0)%(e>>>0)|0}d=i[b>>2]+(l<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[w+4|0]=b;i[a>>2]=c}function yf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=F-32|0;F=e;f=a+16|0;d=i[f>>2];a:{b:{if(!d){break b}h=i[b>>2];c=f;while(1){g=i[d+16>>2]<(h|0);c=g?c:d;d=i[(g<<2)+d>>2];if(d){continue}break}if((c|0)==(f|0)){break b}if((h|0)>=i[c+16>>2]){break a}}k=Xj(e+16|0);b=i[b>>2];j=e+8|0;i[j>>2]=0;i[j+4>>2]=0;i[e>>2]=b;i[e+4>>2]=j;c=i[k>>2];h=k+4|0;if((c|0)!=(h|0)){g=e|4;while(1){b=c;d=c+16|0;Mf(g,j,d,d);d=i[c+4>>2];c:{if(!d){c=i[b+8>>2];if((b|0)==i[c>>2]){break c}d=b+8|0;while(1){b=i[d>>2];d=b+8|0;c=i[b+8>>2];if((b|0)!=i[c>>2]){continue}break}break c}while(1){c=d;d=i[c>>2];if(d){continue}break}}if((c|0)!=(h|0)){continue}break}}d=i[f>>2];d:{if(d){f=a+16|0;g=i[e>>2];while(1){b=i[d+16>>2];e:{if((g|0)<(b|0)){c=i[d>>2];if(c){break e}f=d;break d}if((b|0)>=(g|0)){break d}f=d+4|0;c=i[d+4>>2];if(!c){break d}d=f}f=d;d=c;continue}}d=f}c=i[f>>2];if(!c){c=ho(32);i[c+16>>2]=i[e>>2];i[c+20>>2]=i[e+4>>2];g=i[e+8>>2];i[c+24>>2]=g;b=i[e+12>>2];i[c+28>>2]=b;h=c+24|0;f:{if(!b){i[c+20>>2]=h;break f}i[g+8>>2]=h;i[e+8>>2]=0;i[e+12>>2]=0;i[e+4>>2]=j}i[c+8>>2]=d;i[c>>2]=0;i[c+4>>2]=0;i[f>>2]=c;d=i[i[a+12>>2]>>2];b=c;g:{if(!d){break g}i[a+12>>2]=d;b=i[f>>2]}Kf(i[a+16>>2],b);a=a+20|0;i[a>>2]=i[a>>2]+1}kd(e|4,i[e+8>>2]);kd(k,i[k+4>>2])}F=e+32|0;return c+20|0}function mj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0;f=F-16|0;F=f;I[i[i[b>>2]+64>>2]](a,b);if(!i[a>>2]){if(g[a+15|0]<=-1){bp(i[a+4>>2])}h=i[b+48>>2];c=ho(32);i[f>>2]=c;i[f+4>>2]=29;i[f+8>>2]=-2147483616;g[c+29|0]=0;d=j[13157]|j[13158]<<8|(j[13159]<<16|j[13160]<<24);e=j[13153]|j[13154]<<8|(j[13155]<<16|j[13156]<<24);g[c+21|0]=e;g[c+22|0]=e>>>8;g[c+23|0]=e>>>16;g[c+24|0]=e>>>24;g[c+25|0]=d;g[c+26|0]=d>>>8;g[c+27|0]=d>>>16;g[c+28|0]=d>>>24;d=j[13152]|j[13153]<<8|(j[13154]<<16|j[13155]<<24);e=j[13148]|j[13149]<<8|(j[13150]<<16|j[13151]<<24);g[c+16|0]=e;g[c+17|0]=e>>>8;g[c+18|0]=e>>>16;g[c+19|0]=e>>>24;g[c+20|0]=d;g[c+21|0]=d>>>8;g[c+22|0]=d>>>16;g[c+23|0]=d>>>24;d=j[13144]|j[13145]<<8|(j[13146]<<16|j[13147]<<24);e=j[13140]|j[13141]<<8|(j[13142]<<16|j[13143]<<24);g[c+8|0]=e;g[c+9|0]=e>>>8;g[c+10|0]=e>>>16;g[c+11|0]=e>>>24;g[c+12|0]=d;g[c+13|0]=d>>>8;g[c+14|0]=d>>>16;g[c+15|0]=d>>>24;d=j[13136]|j[13137]<<8|(j[13138]<<16|j[13139]<<24);e=j[13132]|j[13133]<<8|(j[13134]<<16|j[13135]<<24);g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;c=ck(h,f,0);if(g[f+11|0]<=-1){bp(i[f>>2])}if(c){I[i[i[b>>2]+68>>2]](b)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}F=f+16|0}function Ia(a,b){var c=0;c=-1;a:{b:{c:{d:{switch(i[b+28>>2]+ -1|0){case 8:e:{switch(g[b+24|0]+ -1|0){case 0:c=Ja(a,b);break c;case 1:c=Ka(a,b);break c;case 2:c=La(a,b);break c;case 3:break e;default:break b}}c=Ma(a,b);break c;case 0:f:{switch(g[b+24|0]+ -1|0){case 0:c=Na(a,b);break c;case 1:c=Oa(a,b);break c;case 2:c=Pa(a,b);break c;case 3:break f;default:break b}}c=Qa(a,b);break c;case 1:case 10:g:{switch(g[b+24|0]+ -1|0){case 0:c=Na(a,b);break c;case 1:c=Oa(a,b);break c;case 2:c=Pa(a,b);break c;case 3:break g;default:break b}}c=Qa(a,b);break c;case 3:h:{switch(g[b+24|0]+ -1|0){case 0:c=Ra(a,b);break c;case 1:c=Sa(a,b);break c;case 2:c=Ta(a,b);break c;case 3:break h;default:break b}}c=Ua(a,b);break c;case 2:i:{switch(g[b+24|0]+ -1|0){case 0:c=Ra(a,b);break c;case 1:c=Sa(a,b);break c;case 2:c=Ta(a,b);break c;case 3:break i;default:break b}}c=Ua(a,b);break c;case 5:j:{switch(g[b+24|0]+ -1|0){case 0:c=Va(a,b);break c;case 1:c=Ka(a,b);break c;case 2:c=La(a,b);break c;case 3:break j;default:break b}}c=Ma(a,b);break c;case 4:break d;default:break a}}k:{switch(g[b+24|0]+ -1|0){case 0:c=Va(a,b);break c;case 1:c=Ka(a,b);break c;case 2:c=La(a,b);break c;case 3:break k;default:break b}}c=Ma(a,b)}if(c){break a}}c=-1}return c}function Ya(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=0,o=0,q=p(0),r=0,s=0;n=i[c+4>>2];o=i[c>>2];j=n^(o^318)+239;r=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];l=xp(e);h=j&e+ -1;c:{if(l>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}s=e+ -1|0;l=l>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!l){f=f&s;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(i[c+8>>2]!=(o|0)|i[c+12>>2]!=(n|0)){continue}break}b=0;break a}c=ho(20);f=i[d+4>>2];i[c+8>>2]=i[d>>2];i[c+12>>2]=f;d=i[d+8>>2];i[c+4>>2]=j;i[c+16>>2]=d;i[c>>2]=0;k=m[b+16>>2];q=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(q/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}bb(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[r+4|0]=b;i[a>>2]=c}function ci(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;a:{b:{d=i[a+12>>2];e=i[d+4>>2];c=i[d>>2];b=e-c|0;if(!b){break b}e=c-e|0;c=((e|0)>(b|0)?e:b)>>>2|0;b=(b|0)>-1?b:-1;b=o(c,(b|0)<1?b:1);k=b>>>0>1?b:1;l=a+140|0;e=0;while(1){c:{if(Ql(d,(e>>>0)/3|0)){break c}d=i[a+12>>2];if(i[i[d+12>>2]+(e<<2)>>2]!=-1){break c}h=i[a+152>>2];g=h;c=e+1|0;c=(c>>>0)%3|0?c:e+ -2|0;if((c|0)!=-1){d=i[i[d>>2]+(c<<2)>>2]}else{d=-1}b=d<<2;if(i[g+b>>2]!=-1){break c}f=-1;g=i[a+144>>2];d=g;c=i[a+148>>2];if((d|0)==c<<5){if((g+1|0)<=-1){break a}d=l;if(g>>>0<=1073741822){f=g+32&-32;c=c<<6;c=c>>>0>>0?f:c}else{c=2147483647}bd(d,c);h=i[a+152>>2];f=i[b+h>>2];d=i[a+144>>2]}i[a+144>>2]=d+1;c=i[a+140>>2]+(d>>>3&536870908)|0;j=i[c>>2];n=c,p=yp(-2,d)&j,i[n>>2]=p;if((f|0)!=-1){break c}b=b+h|0;j=i[a+12>>2];d=e;while(1){c=d;i[b>>2]=g;d=-1;f=-1;d:{if((c|0)==-1){break d}b=c+1|0;b=(b>>>0)%3|0?b:c+ -2|0;if((b|0)==-1){break d}m=i[j+12>>2];while(1){c=i[(b<<2)+m>>2];if((c|0)!=-1){b=c+1|0;b=(b>>>0)%3|0?b:c+ -2|0;if((b|0)!=-1){continue}break d}break}d=b+1|0;d=(d>>>0)%3|0?d:b+ -2|0;if((d|0)!=-1){f=i[i[j>>2]+(d<<2)>>2]}d=b}b=(f<<2)+h|0;if(i[b>>2]==-1){continue}break}}e=e+1|0;if((k|0)==(e|0)){break b}d=i[a+12>>2];continue}}return 1}Ho();x()}function ub(a,b,c,d){var e=0,f=0,h=0,j=0,l=p(0),n=0,o=0,q=0,r=p(0),s=0,t=0;q=k[c+2>>1];n=k[c>>1];j=q^(n^318)+239;s=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];o=xp(e);h=j&e+131071;c:{if(o>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}t=e+ -1|0;o=o>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!o){f=f&t;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(k[c+8>>1]!=(n|0)|k[c+10>>1]!=(q|0)){continue}break}b=0;break a}c=ho(16);i[c+8>>2]=i[d>>2];d=i[d+4>>2];i[c+4>>2]=j;i[c+12>>2]=d;i[c>>2]=0;l=m[b+16>>2];r=p(i[b+12>>2]+1>>>0);e:{if(p(l*p(e>>>0))>>0<3|e<<1;d=b;l=p(v(p(r/l)));f:{if(l=p(0)){h=~~l>>>0;break f}h=0}zb(d,n>>>0>>0?h:n);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[s+4|0]=b;i[a>>2]=c}function ib(a,b,c,d){var e=0,f=0,l=0,n=0,o=p(0),q=0,r=0,s=0,t=p(0),u=0,w=0;r=j[c+1|0];s=j[c|0];n=r^(s^318)+239;u=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];q=xp(e);l=n&e+1023;c:{if(q>>>0<=1){break c}c=n;l=c;if(c>>>0>>0){break c}l=(n>>>0)%(e>>>0)|0}c=l;l=c;c=i[(c<<2)+f>>2];if(!c){break b}w=e+ -1|0;q=q>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((n|0)!=(f|0)){d:{if(!q){f=f&w;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(l|0)){break b}}if(j[c+8|0]!=(s|0)|j[c+9|0]!=(r|0)){continue}break}b=0;break a}c=ho(16);h[c+8>>1]=k[d>>1];d=i[d+4>>2];i[c+4>>2]=n;i[c+12>>2]=d;i[c>>2]=0;o=m[b+16>>2];t=p(i[b+12>>2]+1>>>0);e:{if(p(o*p(e>>>0))>>0<3|e<<1;d=b;o=p(v(p(t/o)));f:{if(o=p(0)){l=~~o>>>0;break f}l=0}nb(d,e>>>0>>0?l:e);e=i[b+4>>2];if(!(e&e+ -1)){l=n&e+ -1;break e}if(n>>>0>>0){l=n;break e}l=(n>>>0)%(e>>>0)|0}d=i[b>>2]+(l<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[u+4|0]=b;i[a>>2]=c}function Jm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;while(1){i[i[a>>2]+(e<<2)>>2]=0;e=e+1|0;if((d|0)!=(e|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}s=b+ -1|0;t=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!t){e=e&s;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}f:{g:{l=e<<2;c=l+i[a>>2]|0;if(i[c>>2]){k=i[d>>2];if(k){break g}k=0;c=d;break f}i[c>>2]=f;f=d;g=e;break e}c=i[a+24>>2];m=i[c+8>>2];n=i[c+12>>2]-m|0;c=n>>>2|0;u=c>>>0>1?c:1;o=i[d+8>>2];c=d;while(1){e=0;if((n|0)>0){p=i[k+8>>2];while(1){h=o;q=p;r=i[(e<<2)+m>>2];if(!j[r+84|0]){h=i[r+68>>2];q=i[h+(p<<2)>>2];h=i[h+(o<<2)>>2]}if((h|0)!=(q|0)){break f}e=e+1|0;if((u|0)!=(e|0)){continue}break}}c=k;h=i[c>>2];k=h;if(h){continue}break}k=0}i[f>>2]=k;i[c>>2]=i[i[i[a>>2]+l>>2]>>2];i[i[i[a>>2]+l>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(16928);x()}function oi(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0;l=F-16|0;F=l;a:{b:{f=i[a+124>>2];c:{if(!f){break c}e=i[a+120>>2];m=xp(f);h=f+ -1&d;d:{if(m>>>0<=1){break d}h=d;if(f>>>0>d>>>0){break d}h=(d>>>0)%(f>>>0)|0}e=i[e+(h<<2)>>2];if(!e){break c}k=i[e>>2];if(!k){break c}n=f+ -1|0;m=m>>>0>1;while(1){e:{e=i[k+4>>2];f:{if((e|0)!=(d|0)){g:{if(!m){e=e&n;break g}if(e>>>0>>0){break g}e=(e>>>0)%(f>>>0)|0}if((e|0)==(h|0)){break f}break c}if(i[k+8>>2]==(d|0)){break e}}k=i[k>>2];if(k){continue}break c}break}k=i[k+12>>2];if((k|0)==-1){break c}m=c&1;c=i[a+112>>2];if((c|0)!=i[a+116>>2]){g[c+8|0]=m;i[c+4>>2]=b;i[c>>2]=k;b=j[l+13|0]|j[l+14|0]<<8;g[c+9|0]=b;g[c+10|0]=b>>>8;g[c+11|0]=j[l+15|0];i[a+112>>2]=c+12;break c}d=i[a+108>>2];h=c-d|0;c=(h|0)/12|0;e=c+1|0;if(e>>>0>=357913942){break b}n=c<<1;e=c>>>0<178956970?n>>>0>>0?e:n:357913941;f=0;h:{if(!e){break h}if(e>>>0>=357913942){break a}f=ho(o(e,12))}c=f+o(c,12)|0;g[c+8|0]=m;i[c+4>>2]=b;i[c>>2]=k;b=j[l+13|0]|j[l+14|0]<<8;g[c+9|0]=b;g[c+10|0]=b>>>8;g[c+11|0]=j[l+15|0];b=c+o((h|0)/-12|0,12)|0;f=f+o(e,12)|0;c=c+12|0;if((h|0)>=1){hp(b,d,h)}i[a+116>>2]=f;i[a+112>>2]=c;i[a+108>>2]=b;if(!d){break c}bp(d)}F=l+16|0;return}Ho();x()}za(11708);x()}function mn(a){var b=0,c=0,d=0,e=0,f=0;a:{b:{c:{b=i[a+4>>2];d:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break d}b=fn(a)}switch(b+ -43|0){case 0:case 2:break b;default:break c}}c=b+ -48|0;break a}f=(b|0)==45;b=i[a+4>>2];e:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break e}b=fn(a)}c=b+ -48|0;if(!(c>>>0<10|!i[a+104>>2])){i[a+4>>2]=i[a+4>>2]+ -1}}f:{if(c>>>0<10){c=0;while(1){d=o(c,10)+b|0;b=i[a+4>>2];g:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break g}b=fn(a)}e=b+ -48|0;c=d+ -48|0;if((c|0)<214748364?e>>>0<=9:0){continue}break}d=c;c=c>>31;h:{if(e>>>0>=10){break h}while(1){c=up(d,c,10,0);d=c+b|0;b=H;b=d>>>0>>0?b+1|0:b;d=d+ -48|0;c=b+ -1|0;c=d>>>0<4294967248?c+1|0:c;b=i[a+4>>2];i:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break i}b=fn(a)}e=b+ -48|0;if(e>>>0>9){break h}if((c|0)<21474836?1:(c|0)<=21474836?d>>>0<2061584302:0){continue}break}}if(e>>>0<10){while(1){b=i[a+4>>2];j:{if(b>>>0>2]){i[a+4>>2]=b+1;b=j[b|0];break j}b=fn(a)}if(b+ -48>>>0<10){continue}break}}if(i[a+104>>2]){i[a+4>>2]=i[a+4>>2]+ -1}a=d;d=f?0-a|0:a;c=f?0-(c+(0>>0)|0)|0:c;break f}c=-2147483648;if(!i[a+104>>2]){break f}i[a+4>>2]=i[a+4>>2]+ -1;H=-2147483648;return 0}H=c;return d}function mi(a,b){var c=0,d=0,e=0,f=0,h=0,j=0;f=i[a+8>>2];c=i[a+4>>2];if((f-c|0)/136>>>0>=b>>>0){if(b){b=o(b,136)+c|0;while(1){i[c>>2]=-1;_l(c+4|0);i[c+104>>2]=0;i[c+108>>2]=0;g[c+100|0]=1;i[c+112>>2]=0;i[c+116>>2]=0;i[c+120>>2]=0;i[c+124>>2]=0;i[c+128>>2]=0;c=c+136|0;if((b|0)!=(c|0)){continue}break}c=b}i[a+4>>2]=c;return}a:{b:{c:{d=i[a>>2];c=(c-d|0)/136|0;e=c+b|0;if(e>>>0<31580642){h=o(c,136);d=(f-d|0)/136|0;c=d<<1;e=d>>>0<15790320?c>>>0>>0?e:c:31580641;if(e){if(e>>>0>=31580642){break c}j=ho(o(e,136))}d=h+j|0;f=d+o(b,136)|0;c=d;while(1){i[c>>2]=-1;_l(c+4|0);i[c+104>>2]=0;i[c+108>>2]=0;g[c+100|0]=1;i[c+112>>2]=0;i[c+116>>2]=0;i[c+120>>2]=0;i[c+124>>2]=0;i[c+128>>2]=0;c=c+136|0;if((f|0)!=(c|0)){continue}break}h=o(e,136)+j|0;b=i[a>>2];c=i[a+4>>2];if((b|0)==(c|0)){break b}while(1){c=c+ -136|0;d=ij(d+ -136|0,c);if((b|0)!=(c|0)){continue}break}i[a+8>>2]=h;c=i[a+4>>2];i[a+4>>2]=f;b=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){a=i[c+ -20>>2];if(a){i[c+ -16>>2]=a;bp(a)}a=c+ -136|0;d=i[c+ -32>>2];if(d){i[c+ -28>>2]=d;bp(d)}ni(c+ -132|0);c=a;if((c|0)!=(b|0)){continue}break}break a}Ho();x()}za(11708);x()}i[a+8>>2]=h;i[a+4>>2]=f;i[a>>2]=d}if(b){bp(b)}}function tb(a,b,c,d){var e=0,f=0,j=0,l=0,n=p(0),o=0,q=0,r=p(0),s=0,t=0;o=k[c>>1];l=o^318;s=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];q=xp(e);j=l&e+ -1;c:{if(q>>>0<=1){break c}c=l;j=c;if(e>>>0>c>>>0){break c}j=(l>>>0)%(e>>>0)|0}c=j;j=c;c=i[(c<<2)+f>>2];if(!c){break b}t=e+ -1|0;q=q>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((l|0)!=(f|0)){d:{if(!q){f=f&t;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(j|0)){break b}}if(k[c+8>>1]!=(o|0)){continue}break}b=0;break a}c=ho(16);h[c+8>>1]=k[d>>1];d=i[d+4>>2];i[c+4>>2]=l;i[c+12>>2]=d;i[c>>2]=0;n=m[b+16>>2];r=p(i[b+12>>2]+1>>>0);e:{if(p(n*p(e>>>0))>>0<3|e<<1;d=b;n=p(v(p(r/n)));f:{if(n=p(0)){j=~~n>>>0;break f}j=0}xb(d,o>>>0>>0?j:o);e=i[b+4>>2];if(!(e&e+ -1)){j=l&e+ -1;break e}if(e>>>0>l>>>0){j=l;break e}j=(l>>>0)%(e>>>0)|0}d=i[b>>2]+(j<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[s+4|0]=b;i[a>>2]=c}function _b(a){var b=0,c=0,d=0,e=0,f=0;e=F-16|0;F=e;b=ho(16);i[e>>2]=b;i[e+4>>2]=14;i[e+8>>2]=-2147483632;g[b+14|0]=0;c=j[1830]|j[1831]<<8|(j[1832]<<16|j[1833]<<24);d=j[1826]|j[1827]<<8|(j[1828]<<16|j[1829]<<24);g[b+6|0]=d;g[b+7|0]=d>>>8;g[b+8|0]=d>>>16;g[b+9|0]=d>>>24;g[b+10|0]=c;g[b+11|0]=c>>>8;g[b+12|0]=c>>>16;g[b+13|0]=c>>>24;c=j[1824]|j[1825]<<8|(j[1826]<<16|j[1827]<<24);d=j[1820]|j[1821]<<8|(j[1822]<<16|j[1823]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;f=$j(a,e,-1);if(g[e+11|0]<=-1){bp(i[e>>2])}b=ho(16);i[e>>2]=b;i[e+4>>2]=14;i[e+8>>2]=-2147483632;g[b+14|0]=0;c=j[1845]|j[1846]<<8|(j[1847]<<16|j[1848]<<24);d=j[1841]|j[1842]<<8|(j[1843]<<16|j[1844]<<24);g[b+6|0]=d;g[b+7|0]=d>>>8;g[b+8|0]=d>>>16;g[b+9|0]=d>>>24;g[b+10|0]=c;g[b+11|0]=c>>>8;g[b+12|0]=c>>>16;g[b+13|0]=c>>>24;c=j[1839]|j[1840]<<8|(j[1841]<<16|j[1842]<<24);d=j[1835]|j[1836]<<8|(j[1837]<<16|j[1838]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;a=$j(a,e,-1);if(g[e+11|0]<=-1){bp(i[e>>2])}F=e+16|0;a=(f|0)<(a|0)?a:f;return(a|0)==-1?5:a}function Wa(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=0,o=p(0),q=0,r=0;n=i[c>>2];j=n^318;q=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];l=xp(e);h=j&e+ -1;c:{if(l>>>0<=1){break c}c=j;h=c;if(c>>>0>>0){break c}h=(j>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}r=e+ -1|0;l=l>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((j|0)!=(f|0)){d:{if(!l){f=f&r;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(i[c+8>>2]!=(n|0)){continue}break}b=0;break a}c=ho(16);i[c+8>>2]=i[d>>2];d=i[d+4>>2];i[c+4>>2]=j;i[c+12>>2]=d;i[c>>2]=0;k=m[b+16>>2];o=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(o/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}$a(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=j&e+ -1;break e}if(j>>>0>>0){h=j;break e}h=(j>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[q+4|0]=b;i[a>>2]=c}function hb(a,b,c,d){var e=0,f=0,h=0,k=0,l=p(0),n=0,o=0,q=p(0),r=0,s=0;o=j[c|0];k=o^318;r=a;a:{b:{e=i[b+4>>2];if(!e){break b}f=i[b>>2];n=xp(e);h=k&e+ -1;c:{if(n>>>0<=1){break c}c=k;h=c;if(c>>>0>>0){break c}h=(k>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+f>>2];if(!c){break b}s=e+ -1|0;n=n>>>0>1;while(1){c=i[c>>2];if(!c){break b}f=i[c+4>>2];if((k|0)!=(f|0)){d:{if(!n){f=f&s;break d}if(f>>>0>>0){break d}f=(f>>>0)%(e>>>0)|0}if((f|0)!=(h|0)){break b}}if(j[c+8|0]!=(o|0)){continue}break}b=0;break a}c=ho(16);g[c+8|0]=j[d|0];d=i[d+4>>2];i[c+4>>2]=k;i[c+12>>2]=d;i[c>>2]=0;l=m[b+16>>2];q=p(i[b+12>>2]+1>>>0);e:{if(p(l*p(e>>>0))>>0<3|e<<1;d=b;l=p(v(p(q/l)));f:{if(l=p(0)){h=~~l>>>0;break f}h=0}lb(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=k&e+ -1;break e}if(k>>>0>>0){h=k;break e}h=(k>>>0)%(e>>>0)|0}d=i[b>>2]+(h<<2)|0;f=i[d>>2];g:{h:{if(!f){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[d>>2]=b+8;d=i[c>>2];if(!d){break g}f=i[d+4>>2];d=e+ -1|0;i:{if(!(d&e)){f=d&f;break i}if(f>>>0>>0){break i}f=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(f<<2)|0;break h}i[c>>2]=i[f>>2]}i[f>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[r+4|0]=b;i[a>>2]=c}function tp(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;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{g=b;if(g){e=c;if(!e){break j}f=d;if(!f){break i}f=r(f)-r(g)|0;if(f>>>0<=31){break h}break b}if((d|0)==1&c>>>0>=0|d>>>0>1){break b}b=(a>>>0)/(c>>>0)|0;H=0;return b}e=d;if(!a){break g}if(!e){break f}if(e+ -1&e){break f}a=g>>>zp(e)|0;H=0;return a}if(!(e+ -1&e)){break e}j=(r(e)+33|0)-r(g)|0;h=0-j|0;break c}j=f+1|0;h=63-f|0;break c}a=(g>>>0)/(e>>>0)|0;H=0;return a}f=r(e)-r(g)|0;if(f>>>0<31){break d}break b}if((e|0)==1){break a}c=a;a=zp(e);d=a&31;if(32<=(a&63)>>>0){f=0;a=b>>>d|0}else{f=b>>>d|0;a=((1<>>d}H=f;return a}j=f+1|0;h=63-f|0}e=b;g=a;f=j&63;i=f&31;if(32<=(f&63)>>>0){f=0;l=e>>>i|0}else{f=e>>>i|0;l=((1<>>i}a=h&63;h=a&31;if(32<=(a&63)>>>0){e=g<>>32-h|b<>>31;f=e<<1|b>>>31;m=k;e=k;k=f;i=g-((h>>>0>>0)+e|0)|0;e=i>>31;i=i>>31;f=c&i;l=k-f|0;f=m-((d&e)+(k>>>0>>0)|0)|0;e=b<<1|a>>>31;a=n|a<<1;b=e|o;m=0;k=i&1;n=k;j=j+ -1|0;if(j){continue}break}}H=m|(b<<1|a>>>31);return k|a<<1}a=0;b=0}H=b;return a}function Xf(a,b,c){var d=0,e=0,f=0,h=0;f=F-16|0;F=f;d=ho(16);i[f>>2]=d;i[f+4>>2]=14;i[f+8>>2]=-2147483632;g[d+14|0]=0;h=j[10714]|j[10715]<<8|(j[10716]<<16|j[10717]<<24);e=j[10710]|j[10711]<<8|(j[10712]<<16|j[10713]<<24);g[d+6|0]=e;g[d+7|0]=e>>>8;g[d+8|0]=e>>>16;g[d+9|0]=e>>>24;g[d+10|0]=h;g[d+11|0]=h>>>8;g[d+12|0]=h>>>16;g[d+13|0]=h>>>24;h=j[10708]|j[10709]<<8|(j[10710]<<16|j[10711]<<24);e=j[10704]|j[10705]<<8|(j[10706]<<16|j[10707]<<24);g[d|0]=e;g[d+1|0]=e>>>8;g[d+2|0]=e>>>16;g[d+3|0]=e>>>24;g[d+4|0]=h;g[d+5|0]=h>>>8;g[d+6|0]=h>>>16;g[d+7|0]=h>>>24;Yj(a,f,b);if(g[f+11|0]<=-1){bp(i[f>>2])}b=ho(16);i[f>>2]=b;i[f+4>>2]=14;i[f+8>>2]=-2147483632;g[b+14|0]=0;e=j[10729]|j[10730]<<8|(j[10731]<<16|j[10732]<<24);d=j[10725]|j[10726]<<8|(j[10727]<<16|j[10728]<<24);g[b+6|0]=d;g[b+7|0]=d>>>8;g[b+8|0]=d>>>16;g[b+9|0]=d>>>24;g[b+10|0]=e;g[b+11|0]=e>>>8;g[b+12|0]=e>>>16;g[b+13|0]=e>>>24;e=j[10723]|j[10724]<<8|(j[10725]<<16|j[10726]<<24);d=j[10719]|j[10720]<<8|(j[10721]<<16|j[10722]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=e;g[b+5|0]=e>>>8;g[b+6|0]=e>>>16;g[b+7|0]=e>>>24;Yj(a,f,c);if(g[f+11|0]<=-1){bp(i[f>>2])}F=f+16|0}function Cf(a,b,c){var d=0,e=0,f=0,h=0;f=F-16|0;F=f;d=ho(16);i[f>>2]=d;i[f+4>>2]=14;i[f+8>>2]=-2147483632;g[d+14|0]=0;h=j[10446]|j[10447]<<8|(j[10448]<<16|j[10449]<<24);e=j[10442]|j[10443]<<8|(j[10444]<<16|j[10445]<<24);g[d+6|0]=e;g[d+7|0]=e>>>8;g[d+8|0]=e>>>16;g[d+9|0]=e>>>24;g[d+10|0]=h;g[d+11|0]=h>>>8;g[d+12|0]=h>>>16;g[d+13|0]=h>>>24;h=j[10440]|j[10441]<<8|(j[10442]<<16|j[10443]<<24);e=j[10436]|j[10437]<<8|(j[10438]<<16|j[10439]<<24);g[d|0]=e;g[d+1|0]=e>>>8;g[d+2|0]=e>>>16;g[d+3|0]=e>>>24;g[d+4|0]=h;g[d+5|0]=h>>>8;g[d+6|0]=h>>>16;g[d+7|0]=h>>>24;Yj(a,f,b);if(g[f+11|0]<=-1){bp(i[f>>2])}b=ho(16);i[f>>2]=b;i[f+4>>2]=14;i[f+8>>2]=-2147483632;g[b+14|0]=0;e=j[10461]|j[10462]<<8|(j[10463]<<16|j[10464]<<24);d=j[10457]|j[10458]<<8|(j[10459]<<16|j[10460]<<24);g[b+6|0]=d;g[b+7|0]=d>>>8;g[b+8|0]=d>>>16;g[b+9|0]=d>>>24;g[b+10|0]=e;g[b+11|0]=e>>>8;g[b+12|0]=e>>>16;g[b+13|0]=e>>>24;e=j[10455]|j[10456]<<8|(j[10457]<<16|j[10458]<<24);d=j[10451]|j[10452]<<8|(j[10453]<<16|j[10454]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=e;g[b+5|0]=e>>>8;g[b+6|0]=e>>>16;g[b+7|0]=e>>>24;Yj(a,f,c);if(g[f+11|0]<=-1){bp(i[f>>2])}F=f+16|0}function pi(a,b,c,d){var e=0,f=0,h=0,j=0,k=p(0),l=0,n=p(0),o=0,q=0;f=i[c>>2];o=a;a:{b:{e=i[b+4>>2];if(!e){break b}j=i[b>>2];l=xp(e);h=f&e+ -1;c:{if(l>>>0<=1){break c}c=f;h=c;if(c>>>0>>0){break c}h=(f>>>0)%(e>>>0)|0}c=h;h=c;c=i[(c<<2)+j>>2];if(!c){break b}q=e+ -1|0;l=l>>>0>1;while(1){c=i[c>>2];if(!c){break b}j=i[c+4>>2];if((f|0)!=(j|0)){d:{if(!l){j=j&q;break d}if(j>>>0>>0){break d}j=(j>>>0)%(e>>>0)|0}if((j|0)!=(h|0)){break b}}if((f|0)!=i[c+8>>2]){continue}break}b=0;break a}c=ho(16);d=i[i[d>>2]>>2];i[c+12>>2]=0;i[c+8>>2]=d;i[c+4>>2]=f;i[c>>2]=0;k=m[b+16>>2];n=p(i[b+12>>2]+1>>>0);e:{if(p(k*p(e>>>0))>>0<3|e<<1;d=b;k=p(v(p(n/k)));f:{if(k=p(0)){h=~~k>>>0;break f}h=0}jj(d,e>>>0>>0?h:e);e=i[b+4>>2];if(!(e&e+ -1)){h=f&e+ -1;break e}if(f>>>0>>0){h=f;break e}h=(f>>>0)%(e>>>0)|0}f=i[b>>2]+(h<<2)|0;d=i[f>>2];g:{h:{if(!d){i[c>>2]=i[b+8>>2];i[b+8>>2]=c;i[f>>2]=b+8;d=i[c>>2];if(!d){break g}d=i[d+4>>2];f=e+ -1|0;i:{if(!(f&e)){d=d&f;break i}if(d>>>0>>0){break i}d=(d>>>0)%(e>>>0)|0}d=i[b>>2]+(d<<2)|0;break h}i[c>>2]=i[d>>2]}i[d>>2]=c}i[b+12>>2]=i[b+12>>2]+1;b=1}g[o+4|0]=b;i[a>>2]=c}function gd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,p=0;f=F-16|0;F=f;a:{c=i[a+4>>2];b:{c:{if(c){if(I[i[i[a>>2]+52>>2]](a,b,i[i[c+4>>2]+80>>2])|0){break c}break b}if(!(I[i[i[a>>2]+52>>2]](a,b,0)|0)){break b}}n=1;if(!j[a+28|0]){break b}e=i[a+32>>2];l=i[a+8>>2];c=i[l+80>>2];i[f+8>>2]=0;i[f>>2]=0;i[f+4>>2]=0;if(c){if(c>>>0>=1073741824){break a}c=c<<2;h=ho(c);i[f>>2]=h;d=c+h|0;i[f+8>>2]=d;ip(h,0,c);i[f+4>>2]=d}c=i[b+4>>2];k=i[b>>2];if((c|0)!=(k|0)){b=c-k|0;d=(b|0)>-1?b:-1;c=k-c|0;b=o((d|0)<1?d:1,((c|0)>(b|0)?c:b)>>>2|0);m=b>>>0>1?b:1;b=0;p=j[l+84|0];while(1){c=i[k+(b<<2)>>2];d=h;if(!p){c=i[i[l+68>>2]+(c<<2)>>2]}i[(c<<2)+d>>2]=b;b=b+1|0;if((m|0)!=(b|0)){continue}break}}d:{if(!j[e+84|0]){break d}b=i[i[i[a+4>>2]+4>>2]+80>>2];g[e+84|0]=0;d=i[e+68>>2];c=i[e+72>>2]-d>>2;if(b>>>0>c>>>0){Xa(e+68|0,b-c|0,2396);break d}if(b>>>0>=c>>>0){break d}i[e+72>>2]=d+(b<<2)}d=i[i[i[a+4>>2]+4>>2]+80>>2];e:{if(d){e=i[e+68>>2];b=0;k=j[l+84|0];while(1){a=b;m=e+(b<<2)|0;c=h;if(!k){a=i[i[l+68>>2]+(b<<2)>>2]}i[m>>2]=i[(a<<2)+c>>2];b=b+1|0;if((d|0)!=(b|0)){continue}break}break e}if(!h){break b}}bp(h)}F=f+16|0;return n|0}Ho();x()}function Ei(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=11192;b=a+280|0;c=i[b>>2];i[b>>2]=0;if(c){d=c+ -4|0;b=i[d>>2];if(b){b=c+(b<<5)|0;while(1){b=nf(b+ -32|0);if((c|0)!=(b|0)){continue}break}}bp(d)}b=i[a+268>>2];if(b){i[a+272>>2]=b;bp(b)}c=a+244|0;b=i[c>>2];i[c>>2]=0;if(b){bp(b)}b=i[a+232>>2];if(b){i[a+236>>2]=b;bp(b)}nf(a+200|0);b=i[a+184>>2];if(b){i[a+188>>2]=b;bp(b)}c=i[a+172>>2];if(c){b=i[a+176>>2];d=c;a:{if((c|0)==(b|0)){break a}while(1){d=i[b+ -20>>2];if(d){i[b+ -16>>2]=d;bp(d)}d=b+ -136|0;e=i[b+ -32>>2];if(e){i[b+ -28>>2]=e;bp(e)}ni(b+ -132|0);b=d;if((c|0)!=(b|0)){continue}break}d=i[a+172>>2]}i[a+176>>2]=c;bp(d)}b=i[a+152>>2];if(b){i[a+156>>2]=b;bp(b)}b=i[a+140>>2];if(b){bp(b)}b=i[a+128>>2];if(b){while(1){c=i[b>>2];bp(b);b=c;if(b){continue}break}}b=i[a+120>>2];i[a+120>>2]=0;if(b){bp(b)}b=i[a+108>>2];if(b){i[a+112>>2]=b;bp(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+84>>2];if(b){bp(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;bp(b)}b=i[a+52>>2];if(b){i[a+56>>2]=b;bp(b)}b=i[a+40>>2];if(b){i[a+44>>2]=b;bp(b)}b=i[a+28>>2];if(b){bp(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}b=i[a+12>>2];i[a+12>>2]=0;if(b){bi(b)}return a|0}function Dn(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;g=F-32|0;F=g;e=d&2147483647;j=e;e=e+ -1006698496|0;h=c;f=c;if(c>>>0<0){e=e+1|0}k=f;f=e;e=j+ -1140785152|0;l=h;if(h>>>0<0){e=e+1|0}a:{if((e|0)==(f|0)&k>>>0>>0|f>>>0>>0){e=d<<4|c>>>28;c=c<<4|b>>>28;b=b&268435455;h=b;if((b|0)==134217728&a>>>0>=1|b>>>0>134217728){e=e+1073741824|0;a=c+1|0;if(a>>>0<1){e=e+1|0}f=a;break a}f=c;e=e-((c>>>0<0)+ -1073741824|0)|0;if(a|h^134217728){break a}a=f+(f&1)|0;if(a>>>0>>0){e=e+1|0}f=a;break a}if(!(!h&(j|0)==2147418112?!(a|b):(j|0)==2147418112&h>>>0<0|j>>>0<2147418112)){e=d<<4|c>>>28;f=c<<4|b>>>28;e=e&524287|2146959360;break a}f=0;e=2146435072;if(j>>>0>1140785151){break a}e=0;h=j>>>16|0;if(h>>>0<15249){break a}e=d&65535|65536;sn(g+16|0,a,b,c,e,h+ -15233|0);vn(g,a,b,c,e,15361-h|0);c=i[g+4>>2];a=i[g+8>>2];e=i[g+12>>2]<<4|a>>>28;f=a<<4|c>>>28;a=c&268435455;c=a;b=i[g>>2]|((i[g+16>>2]|i[g+24>>2])!=0|(i[g+20>>2]|i[g+28>>2])!=0);if((a|0)==134217728&b>>>0>=1|a>>>0>134217728){a=f+1|0;if(a>>>0<1){e=e+1|0}f=a;break a}if(b|c^134217728){break a}a=f+(f&1)|0;if(a>>>0>>0){e=e+1|0}f=a}F=g+32|0;Cp(0,f|0);Cp(1,d&-2147483648|e);return+Dp()}function Ub(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,n=0,p=0;a:{b:{c:{d:{d=i[a+4>>2];j=i[a>>2];g=(d-j|0)/24|0;e=g+1|0;if(e>>>0<178956971){c=(i[a+8>>2]-j|0)/24|0;f=c<<1;h=c>>>0<89478485?f>>>0>>0?e:f:178956970;if(h){if(h>>>0>=178956971){break d}k=ho(o(h,24))}c=o(g,24)+k|0;i[c>>2]=1140;e=i[b+4>>2];l=c+16|0;i[l>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+4>>2]=e;n=i[b+8>>2];f=i[b+12>>2]-n|0;if(f){p=f>>2;if(p>>>0>=1073741824){break c}g=c+12|0;e=ho(f);i[g>>2]=e;i[c+8>>2]=e;i[l>>2]=e+(p<<2);if((f|0)>=1){e=hp(e,n,f)+f|0}i[g>>2]=e}e=o(h,24)+k|0;m[c+20>>2]=m[b+20>>2];g=c+24|0;if((d|0)==(j|0)){break b}while(1){c=c+ -24|0;i[c>>2]=1140;b=i[d+ -20>>2];f=c+16|0;i[f>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+4>>2]=b;b=d+ -16|0;i[c+8>>2]=i[b>>2];i[c+12>>2]=i[d+ -12>>2];h=f;f=d+ -8|0;i[h>>2]=i[f>>2];i[f>>2]=0;i[b>>2]=0;i[b+4>>2]=0;m[c+20>>2]=m[d+ -4>>2];d=d+ -24|0;if((j|0)!=(d|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=g;d=i[a>>2];i[a>>2]=c;if((b|0)==(d|0)){break a}while(1){b=b+ -24|0;I[i[i[b>>2]>>2]](b)|0;if((b|0)!=(d|0)){continue}break}break a}Ho();x()}za(1752);x()}Ho();x()}i[a+8>>2]=e;i[a+4>>2]=g;i[a>>2]=c}if(d){bp(d)}}function wi(a,b){var c=0,d=0,e=0,f=0,g=0;i[a+128>>2]=2;i[a+132>>2]=7;i[a+64>>2]=b;b=I[i[i[b>>2]+32>>2]](b)|0;i[a+88>>2]=b;c=i[b+28>>2]-i[b+24>>2]>>2;d=i[a+108>>2];b=i[a+104>>2];e=d-b>>2;a:{if(c>>>0>e>>>0){Bd(a+104|0,c-e|0);b=i[a+104>>2];d=i[a+108>>2];break a}if(c>>>0>=e>>>0){break a}d=(c<<2)+b|0;i[a+108>>2]=d}if((b|0)!=(d|0)){b=0;while(1){d=Rl(i[a+88>>2],b);c=i[a+104>>2];i[c+(b<<2)>>2]=d;b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}}e=a+92|0;b=i[a+88>>2];d=i[b>>2];c=i[b+4>>2]-d>>2;g=i[a+92>>2];f=i[a+96>>2]-g>>2;b:{if(c>>>0>f>>>0){Ai(e,c-f|0);b=i[a+88>>2];d=i[b>>2];break b}if(c>>>0>=f>>>0){break b}i[a+96>>2]=(c<<2)+g}c=i[b+4>>2];if((c|0)!=(d|0)){b=c-d|0;f=(b|0)>-1?b:-1;c=d-c|0;b=o((f|0)<1?f:1,((c|0)>(b|0)?c:b)>>>2|0);c=b>>>0>1?b:1;e=i[e>>2];b=0;while(1){f=b<<2;i[f+e>>2]=i[d+f>>2];b=b+1|0;if((c|0)!=(b|0)){continue}break}}b=(i[a+132>>2]-i[a+128>>2]|0)+1|0;d=i[a+140>>2];e=i[a+136>>2];c=(d-e|0)/12|0;if(b>>>0>c>>>0){Bi(a+136|0,b-c|0);return}if(b>>>0>>0){c=e+o(b,12)|0;if((c|0)!=(d|0)){while(1){b=d+ -12|0;e=i[b>>2];if(e){i[d+ -8>>2]=e;bp(e)}d=b;if((b|0)!=(c|0)){continue}break}}i[a+140>>2]=c}}function hp(a,b,c){var d=0,e=0,f=0;if(c>>>0>=512){E(a|0,b|0,c|0)|0;return a}e=a+c|0;a:{if(!((a^b)&3)){b:{if((c|0)<1){c=a;break b}if(!(a&3)){c=a;break b}c=a;while(1){g[c|0]=j[b|0];b=b+1|0;c=c+1|0;if(c>>>0>=e>>>0){break b}if(c&3){continue}break}}d=e&-4;c:{if(d>>>0<64){break c}f=d+ -64|0;if(c>>>0>f>>>0){break c}while(1){i[c>>2]=i[b>>2];i[c+4>>2]=i[b+4>>2];i[c+8>>2]=i[b+8>>2];i[c+12>>2]=i[b+12>>2];i[c+16>>2]=i[b+16>>2];i[c+20>>2]=i[b+20>>2];i[c+24>>2]=i[b+24>>2];i[c+28>>2]=i[b+28>>2];i[c+32>>2]=i[b+32>>2];i[c+36>>2]=i[b+36>>2];i[c+40>>2]=i[b+40>>2];i[c+44>>2]=i[b+44>>2];i[c+48>>2]=i[b+48>>2];i[c+52>>2]=i[b+52>>2];i[c+56>>2]=i[b+56>>2];i[c+60>>2]=i[b+60>>2];b=b- -64|0;c=c- -64|0;if(c>>>0<=f>>>0){continue}break}}if(c>>>0>=d>>>0){break a}while(1){i[c>>2]=i[b>>2];b=b+4|0;c=c+4|0;if(c>>>0>>0){continue}break}break a}if(e>>>0<4){c=a;break a}d=e+ -4|0;if(d>>>0>>0){c=a;break a}c=a;while(1){g[c|0]=j[b|0];g[c+1|0]=j[b+1|0];g[c+2|0]=j[b+2|0];g[c+3|0]=j[b+3|0];b=b+4|0;c=c+4|0;if(c>>>0<=d>>>0){continue}break}}if(c>>>0>>0){while(1){g[c|0]=j[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}return a}function jg(a,b){var c=0,d=0,e=0,f=0;f=F-16|0;F=f;a:{if(b>>>0>10){break a}c=ho(48);i[f>>2]=c;i[f+4>>2]=33;i[f+8>>2]=-2147483600;g[c+33|0]=0;g[c+32|0]=j[10857];d=j[10853]|j[10854]<<8|(j[10855]<<16|j[10856]<<24);e=j[10849]|j[10850]<<8|(j[10851]<<16|j[10852]<<24);g[c+24|0]=e;g[c+25|0]=e>>>8;g[c+26|0]=e>>>16;g[c+27|0]=e>>>24;g[c+28|0]=d;g[c+29|0]=d>>>8;g[c+30|0]=d>>>16;g[c+31|0]=d>>>24;d=j[10845]|j[10846]<<8|(j[10847]<<16|j[10848]<<24);e=j[10841]|j[10842]<<8|(j[10843]<<16|j[10844]<<24);g[c+16|0]=e;g[c+17|0]=e>>>8;g[c+18|0]=e>>>16;g[c+19|0]=e>>>24;g[c+20|0]=d;g[c+21|0]=d>>>8;g[c+22|0]=d>>>16;g[c+23|0]=d>>>24;d=j[10837]|j[10838]<<8|(j[10839]<<16|j[10840]<<24);e=j[10833]|j[10834]<<8|(j[10835]<<16|j[10836]<<24);g[c+8|0]=e;g[c+9|0]=e>>>8;g[c+10|0]=e>>>16;g[c+11|0]=e>>>24;g[c+12|0]=d;g[c+13|0]=d>>>8;g[c+14|0]=d>>>16;g[c+15|0]=d>>>24;d=j[10829]|j[10830]<<8|(j[10831]<<16|j[10832]<<24);e=j[10825]|j[10826]<<8|(j[10827]<<16|j[10828]<<24);g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;Yj(a,f,b);if(g[f+11|0]>-1){break a}bp(i[f>>2])}F=f+16|0}function yc(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=32-b|0;c=c<>2];e=32-f|0;d:{if((e|0)>=(b|0)){b=b+f|0;i[a+16>>2]=b;e=i[a+12>>2]|c>>>f;i[a+12>>2]=e;if((b|0)!=32){break d}b=i[a+4>>2];e:{if((b|0)!=i[a+8>>2]){i[b>>2]=e;i[a+4>>2]=b+4;break e}c=i[a>>2];f=b-c|0;g=f>>2;d=g+1|0;if(d>>>0>=1073741824){break c}h=f>>1;d=g>>>0<536870911?h>>>0>>0?d:h:1073741823;b=0;f:{if(!d){break f}if(d>>>0>=1073741824){break b}b=ho(d<<2)}g=b+(g<<2)|0;i[g>>2]=e;d=b+(d<<2)|0;e=g+4|0;if((f|0)>=1){hp(b,c,f)}i[a+8>>2]=d;i[a+4>>2]=e;i[a>>2]=b;if(!c){break e}bp(c)}i[a+12>>2]=0;i[a+16>>2]=0;return}b=b-e|0;i[a+16>>2]=b;h=c>>>d|0;e=i[a+12>>2]|h>>>b;i[a+12>>2]=e;b=i[a+4>>2];g:{if((b|0)!=i[a+8>>2]){i[b>>2]=e;i[a+4>>2]=b+4;break g}c=i[a>>2];f=b-c|0;g=f>>2;d=g+1|0;if(d>>>0>=1073741824){break c}b=f>>1;d=g>>>0<536870911?b>>>0>>0?d:b:1073741823;b=0;h:{if(!d){break h}if(d>>>0>=1073741824){break a}b=ho(d<<2)}g=b+(g<<2)|0;i[g>>2]=e;d=b+(d<<2)|0;e=g+4|0;if((f|0)>=1){hp(b,c,f)}i[a+8>>2]=d;i[a+4>>2]=e;i[a>>2]=b;if(!c){break g}bp(c)}i[a+12>>2]=h<<32-i[a+16>>2]}return}Ho();x()}za(1752);x()}za(1752);x()}function lm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;h=F-16|0;F=h;i[a+4>>2]=0;i[a+8>>2]=0;c=a+16|0;i[c>>2]=0;i[c+4>>2]=0;f=a+4|0;i[a>>2]=f;i[a+12>>2]=c;c=i[b>>2];g=b+4|0;if((c|0)!=(g|0)){while(1){e=c;d=c+16|0;mm(a,f,d,d);d=i[c+4>>2];a:{if(!d){c=i[e+8>>2];if((e|0)==i[c>>2]){break a}d=e+8|0;while(1){e=i[d>>2];d=e+8|0;c=i[e+8>>2];if((e|0)!=i[c>>2]){continue}break}break a}while(1){c=d;d=i[c>>2];if(d){continue}break}}if((c|0)!=(g|0)){continue}break}}c=i[b+12>>2];g=b+16|0;if((c|0)!=(g|0)){e=a+12|0;while(1){b=c;k=ho(24);lm(k,i[c+28>>2]);c=c+16|0;f=Of(e,h+12|0,c);d=i[f>>2];if(!d){d=ho(32);ro(d+16|0,c);i[d+28>>2]=0;i[d+8>>2]=i[h+12>>2];i[d>>2]=0;i[d+4>>2]=0;i[f>>2]=d;c=i[i[e>>2]>>2];j=d;b:{if(!c){break b}i[e>>2]=c;j=i[f>>2]}c=j;Kf(i[a+16>>2],c);i[a+20>>2]=i[a+20>>2]+1}d=d+28|0;c=i[d>>2];i[d>>2]=k;if(c){yk(c+12|0,i[c+16>>2]);zk(c,i[c+4>>2]);bp(c)}d=i[b+4>>2];c:{if(!d){c=i[b+8>>2];if((b|0)==i[c>>2]){break c}d=b+8|0;while(1){b=i[d>>2];d=b+8|0;c=i[b+8>>2];if((b|0)!=i[c>>2]){continue}break}break c}while(1){c=d;d=i[c>>2];if(d){continue}break}}if((c|0)!=(g|0)){continue}break}}F=h+16|0}function ii(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=d-c|0;if((f|0)<1){return}a:{h=f>>2;k=i[a+8>>2];l=i[a+4>>2];if((h|0)<=k-l>>2){g=l-b|0;e=g>>2;if((h|0)<=(e|0)){f=l;j=d;break a}f=l;j=(e<<2)+c|0;if((j|0)!=(d|0)){e=j;while(1){i[f>>2]=i[e>>2];f=f+4|0;e=e+4|0;if((e|0)!=(d|0)){continue}break}}i[a+4>>2]=f;if((g|0)>=1){break a}return}b:{j=i[a>>2];g=h+(l-j>>2)|0;if(g>>>0<1073741824){k=k-j|0;e=k>>1;g=k>>2>>>0<536870911?e>>>0>>0?g:e:1073741823;e=0;c:{if(!g){break c}if(g>>>0>=1073741824){break b}e=ho(g<<2)}k=b-j|0;m=c;c=c-d|0;c=hp(e+(k>>2<<2)|0,m,o(((c|0)>(f|0)?c:f)>>>2|0,(f|0)<1?f:1)<<2);d=h<<2;h=g<<2;if((k|0)>=1){hp(e,j,k)}f=c+d|0;d=e+h|0;c=l-b|0;if((c|0)>=1){f=hp(f,b,c)+c|0}i[a+8>>2]=d;i[a+4>>2]=f;i[a>>2]=e;if(j){bp(j)}return}Ho();x()}za(11708);x()}e=h<<2;g=f-(e+b|0)|0;d=f;e=f-e|0;if(e>>>0>>0){h=e;while(1){i[d>>2]=i[h>>2];d=d+4|0;h=h+4|0;if(h>>>0>>0){continue}break}}i[a+4>>2]=d;if(g){while(1){f=f+ -4|0;e=e+ -4|0;i[f>>2]=i[e>>2];if((b|0)!=(e|0)){continue}break}}if((c|0)==(j|0)){return}f=b;while(1){i[f>>2]=i[c>>2];f=f+4|0;c=c+4|0;if((j|0)!=(c|0)){continue}break}}function sl(a,b,c){var d=0,e=0,f=0,h=0;e=F+ -64|0;F=e;a:{b:{c:{d:{e:{if(!a){break e}d=mp(b);if(d>>>0>=4294967280){break d}f:{g:{if(d>>>0>=11){h=d+16&-16;f=ho(h);i[e+56>>2]=h|-2147483648;i[e+48>>2]=f;i[e+52>>2]=d;break g}g[e+59|0]=d;f=e+48|0;if(!d){break f}}hp(f,b,d)}g[d+f|0]=0;d=mp(c);if(d>>>0>=4294967280){break c}h:{i:{if(d>>>0>=11){h=d+16&-16;f=ho(h);i[e+40>>2]=h|-2147483648;i[e+32>>2]=f;i[e+36>>2]=d;break i}g[e+43|0]=d;f=e+32|0;if(!d){break h}}hp(f,c,d)}g[d+f|0]=0;d=mp(b);if(d>>>0>=4294967280){break b}j:{k:{if(d>>>0>=11){h=d+16&-16;f=ho(h);i[e+24>>2]=h|-2147483648;i[e+16>>2]=f;i[e+20>>2]=d;break k}g[e+27|0]=d;f=e+16|0;if(!d){break j}}hp(f,b,d)}g[d+f|0]=0;d=mp(c);if(d>>>0>=4294967280){break a}l:{m:{if(d>>>0>=11){f=d+16&-16;b=ho(f);i[e+8>>2]=f|-2147483648;i[e>>2]=b;i[e+4>>2]=d;f=e;break m}g[e+11|0]=d;f=e;b=e;if(!d){break l}}hp(b,c,d)}g[b+d|0]=0;um(a,e+16|0,e);if(g[f+11|0]<=-1){bp(i[e>>2])}if(g[e+27|0]<=-1){bp(i[e+16>>2])}if(g[e+43|0]<=-1){bp(i[e+32>>2])}if(g[e+59|0]>-1){break e}bp(i[e+48>>2])}F=e- -64|0;return(a|0)!=0}qo();x()}qo();x()}qo();x()}qo();x()}function qj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=F-16|0;F=d;a:{b:{c:{if(!b){b=ho(76);c=ho(12);i[c+8>>2]=i[i[a+4>>2]+80>>2];i[c>>2]=13420;i[c+4>>2]=0;i[d>>2]=c;Mc(b,d,0);i[d+8>>2]=b;c=i[a+12>>2];d:{if(c>>>0>2]){i[d+8>>2]=0;i[c>>2]=b;i[a+12>>2]=c+4;break d}Xh(a+8|0,d+8|0)}a=i[d+8>>2];i[d+8>>2]=0;if(a){I[i[i[a>>2]+4>>2]](a)}a=i[d>>2];i[d>>2]=0;if(!a){break c}I[i[i[a>>2]+4>>2]](a);break c}c=i[i[a+8>>2]>>2];a=i[c+8>>2];e:{if((a|0)!=i[c+12>>2]){i[a>>2]=b;i[c+8>>2]=a+4;break e}f=i[c+4>>2];g=a-f|0;h=g>>2;e=h+1|0;if(e>>>0>=1073741824){break b}a=g>>1;e=h>>>0<536870911?a>>>0>>0?e:a:1073741823;a=0;f:{if(!e){break f}if(e>>>0>=1073741824){break a}a=ho(e<<2)}h=a+(h<<2)|0;i[h>>2]=b;e=a+(e<<2)|0;h=h+4|0;if((g|0)>=1){hp(a,f,g)}i[c+12>>2]=e;i[c+8>>2]=h;i[c+4>>2]=a;if(!f){break e}bp(f)}a=i[c+16>>2];f=i[c+20>>2]-a>>2;g:{if((f|0)>(b|0)){break g}i[d+12>>2]=-1;g=b+1|0;if(g>>>0>f>>>0){a=c+16|0;Gb(a,g-f|0,d+12|0);a=i[a>>2];break g}if(g>>>0>=f>>>0){break g}i[c+20>>2]=(g<<2)+a}i[(b<<2)+a>>2]=(i[c+8>>2]-i[c+4>>2]>>2)+ -1}F=d+16|0;return 1}Ho();x()}za(13344);x()}function Mj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=F-16|0;F=d;a:{b:{c:{if(!b){b=ho(76);c=ho(12);i[c+8>>2]=i[i[a+4>>2]+80>>2];i[c>>2]=13420;i[c+4>>2]=0;i[d>>2]=c;Mc(b,d,0);i[d+8>>2]=b;c=i[a+12>>2];d:{if(c>>>0>2]){i[d+8>>2]=0;i[c>>2]=b;i[a+12>>2]=c+4;break d}Xh(a+8|0,d+8|0)}a=i[d+8>>2];i[d+8>>2]=0;if(a){I[i[i[a>>2]+4>>2]](a)}a=i[d>>2];i[d>>2]=0;if(!a){break c}I[i[i[a>>2]+4>>2]](a);break c}c=i[i[a+8>>2]>>2];a=i[c+8>>2];e:{if((a|0)!=i[c+12>>2]){i[a>>2]=b;i[c+8>>2]=a+4;break e}f=i[c+4>>2];g=a-f|0;h=g>>2;e=h+1|0;if(e>>>0>=1073741824){break b}a=g>>1;e=h>>>0<536870911?a>>>0>>0?e:a:1073741823;a=0;f:{if(!e){break f}if(e>>>0>=1073741824){break a}a=ho(e<<2)}h=a+(h<<2)|0;i[h>>2]=b;e=a+(e<<2)|0;h=h+4|0;if((g|0)>=1){hp(a,f,g)}i[c+12>>2]=e;i[c+8>>2]=h;i[c+4>>2]=a;if(!f){break e}bp(f)}a=i[c+16>>2];f=i[c+20>>2]-a>>2;g:{if((f|0)>(b|0)){break g}i[d+12>>2]=-1;g=b+1|0;if(g>>>0>f>>>0){a=c+16|0;Gb(a,g-f|0,d+12|0);a=i[a>>2];break g}if(g>>>0>=f>>>0){break g}i[c+20>>2]=(g<<2)+a}i[(b<<2)+a>>2]=(i[c+8>>2]-i[c+4>>2]>>2)+ -1}F=d+16|0;return 1}Ho();x()}za(14116);x()}function _(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,n=0,o=0;j=+m[b>>2];k=+m[b+4>>2];n=+m[b+8>>2];h=q(j)+q(k)+q(n);a:{if(h>1e-6^1){j=1;k=0;f=0;break a}h=1/h;k=h*k;j=h*j;f=h*n<0}h=k;g=i[a+16>>2];k=+(g|0);h=u(h*k+.5);b:{if(q(h)<2147483648){b=~~h;break b}b=-2147483648}l=(b|0)<0?b:0-b|0;j=u(j*k+.5);c:{if(q(j)<2147483648){e=~~j;break c}e=-2147483648}o=(e|0)<0;e=l+((o?e:0-e|0)+g|0)|0;l=(e|0)<0?0:e;f=f?0-l|0:l;b=b+(e>>31&((b|0)>0?e:0-e|0))|0;d:{if(!o){e=b+g|0;b=f+g|0;break d}e:{if((b|0)<=-1){e=f>>31;e=e+f^e;break e}e=i[a+8>>2]+((f|0)<0?f:0-f|0)|0}if((f|0)<=-1){f=b;b=b>>31;b=f+b^b;break d}b=i[a+8>>2]+((b|0)<0?b:0-b|0)|0}f:{if(!(b|e)){b=i[a+8>>2];a=b;break f}f=i[a+8>>2];g:{h:{i:{j:{if(!e){if((b|0)==(f|0)){a=b;break f}a=0;if(b|f){break j}b=0;break f}if((e|0)!=(f|0)|b){break i}b=e;a=b;break f}if((g|0)<(b|0)){b=(g<<1)-b|0;break f}if(f){break g}break h}if((e|0)!=(f|0)){break g}}f=e;if((g|0)<=(b|0)){break g}b=(g<<1)-b|0;a=e;break f}if(!((b|0)!=(f|0)|(g|0)<=(e|0))){a=(g<<1)-e|0;break f}if(b){a=e;break f}b=0;if((g|0)>=(e|0)){a=e;break f}a=(g<<1)-e|0}i[c>>2]=a;i[d>>2]=b}function Cm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;a:{if((b|0)<0){break a}c=i[a+12>>2];d=i[a+8>>2];if(c-d>>2>>>0<=b>>>0){break a}d=d+(b<<2)|0;f=i[d>>2];h=i[f+60>>2];g=i[f+56>>2];e=d+4|0;b:{if((e|0)!=(c|0)){while(1){j=i[e>>2];i[e>>2]=0;i[d>>2]=j;if(f){Wb(f)}d=d+4|0;e=e+4|0;if((e|0)!=(c|0)){f=i[d>>2];continue}break}c=i[a+12>>2];if((d|0)==(c|0)){break b}}while(1){c=c+ -4|0;f=i[c>>2];i[c>>2]=0;if(f){Wb(f)}if((c|0)!=(d|0)){continue}break}}i[a+12>>2]=d;c=i[a+4>>2];if(c){Dm(c,h)}c:{if((g|0)>4){break c}d:{d=o(g,12)+a|0;c=i[d+20>>2];f=d+24|0;d=i[f>>2];if((c|0)==(d|0)){break d}while(1){if(i[c>>2]==(b|0)){break d}c=c+4|0;if((d|0)!=(c|0)){continue}break}break c}if((c|0)==(d|0)){break c}e=c+4|0;d=d-e|0;if(d){jp(c,e,d)}i[f>>2]=c+d}d=0;while(1){c=o(d,12)+a|0;e=i[c+24>>2];f=i[c+20>>2];if((e|0)!=(f|0)){c=e-f|0;g=(c|0)>-1?c:-1;e=f-e|0;c=o((g|0)<1?g:1,((e|0)>(c|0)?e:c)>>>2|0);e=c>>>0>1?c:1;c=0;while(1){g=f+(c<<2)|0;h=i[g>>2];if((h|0)>(b|0)){i[g>>2]=h+ -1}c=c+1|0;if((e|0)!=(c|0)){continue}break}}d=d+1|0;if((d|0)!=5){continue}break}}}function Kf(a,b){var c=0,d=0,e=0;c=(a|0)==(b|0);g[b+12|0]=c;a:{if(c){break a}while(1){d=i[b+8>>2];if(j[d+12|0]){break a}b:{c=i[d+8>>2];e=i[c>>2];if((e|0)==(d|0)){e=i[c+4>>2];if(!(!e|j[e+12|0])){break b}c:{if(i[d>>2]==(b|0)){b=d;break c}b=i[d+4>>2];e=i[b>>2];i[d+4>>2]=e;a=b;if(e){i[e+8>>2]=d;c=i[d+8>>2]}i[a+8>>2]=c;a=i[d+8>>2];i[(((d|0)!=i[a>>2])<<2)+a>>2]=b;i[b>>2]=d;i[d+8>>2]=b;c=i[b+8>>2]}g[b+12|0]=1;g[c+12|0]=0;a=i[c>>2];b=i[a+4>>2];i[c>>2]=b;if(b){i[b+8>>2]=c}i[a+8>>2]=i[c+8>>2];b=i[c+8>>2];i[((i[b>>2]!=(c|0))<<2)+b>>2]=a;i[a+4>>2]=c;i[c+8>>2]=a;return}if(!(j[e+12|0]|!e)){break b}d:{if(i[d>>2]!=(b|0)){b=d;break d}e=i[b+4>>2];i[d>>2]=e;a=b;if(e){i[e+8>>2]=d;c=i[d+8>>2]}i[a+8>>2]=c;a=i[d+8>>2];i[(((d|0)!=i[a>>2])<<2)+a>>2]=b;i[b+4>>2]=d;i[d+8>>2]=b;c=i[b+8>>2]}g[b+12|0]=1;g[c+12|0]=0;a=i[c+4>>2];b=i[a>>2];i[c+4>>2]=b;if(b){i[b+8>>2]=c}i[a+8>>2]=i[c+8>>2];b=i[c+8>>2];i[((i[b>>2]!=(c|0))<<2)+b>>2]=a;i[a>>2]=c;i[c+8>>2]=a;break a}b=e+12|0;g[d+12|0]=1;g[c+12|0]=(a|0)==(c|0);g[b|0]=1;b=c;if((a|0)!=(b|0)){continue}break}}}function dd(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;g=i[b+4>>2];f=i[b>>2];c=(i[c+4>>2]-g|0)+(i[c>>2]-f<<3)|0;a:{if((c|0)<=0){g=i[d+4>>2];break a}b:{if(!g){g=i[d+4>>2];break b}e=i[d+4>>2];j=32-e|0;l=32-g|0;h=(c|0)<(l|0)?c:l;k=j>>>0>>0?j:h;m=i[d>>2];f=i[f>>2]&(-1<>>l-h);i[m>>2]=i[m>>2]&(-1<>>j-k^-1)|(e>>>0>g>>>0?f<>>g-e|0);e=e+k|0;g=e&31;i[d+4>>2]=g;j=m+(e>>>3&536870908)|0;i[d>>2]=j;e=h-k|0;if((e|0)>=1){i[j>>2]=i[j>>2]&(-1>>>32-e^-1)|f>>>k+i[b+4>>2];i[d+4>>2]=e;g=e}c=c-h|0;f=i[b>>2]+4|0;i[b>>2]=f}k=-1<>2];f=i[f>>2];i[e>>2]=j&i[e>>2]|f<>2]=e+4;i[e+4>>2]=k&i[e+4>>2]|f>>>h;f=i[b>>2]+4|0;i[b>>2]=f;l=(c|0)>63;e=c+ -32|0;c=e;if(l){continue}break}}if((e|0)<1){break a}b=i[d>>2];c=(h|0)<(e|0)?h:e;j=i[b>>2]&(k&-1>>>h-c^-1);h=i[f>>2]&-1>>>32-e;i[b>>2]=j|h<>2]=g;f=b+(f>>>3&536870908)|0;i[d>>2]=f;b=e-c|0;if((b|0)<1){break a}i[f>>2]=i[f>>2]&(-1>>>32-b^-1)|h>>>c;i[d+4>>2]=b;g=b}b=i[d>>2];i[a+4>>2]=g;i[a>>2]=b}function wn(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;h=F-32|0;F=h;f=d&2147483647;g=f;e=f+ -1065418752|0;f=c;j=f;if(f>>>0<0){e=e+1|0}l=j;k=g+ -1082064896|0;j=f;if(f>>>0<0){k=k+1|0}a:{if((e|0)==(k|0)&l>>>0>>0|e>>>0>>0){g=(d&33554431)<<7|c>>>25;f=0;k=f;j=c&33554431;if(!(!f&(j|0)==16777216?!(a|b):!f&j>>>0<16777216|f>>>0<0)){e=g+1073741825|0;break a}e=g+1073741824|0;if(j^16777216|a|(b|k)){break a}e=(e&1)+e|0;break a}if(!(!f&(g|0)==2147418112?!(a|b):(g|0)==2147418112&f>>>0<0|g>>>0<2147418112)){e=((d&33554431)<<7|c>>>25)&4194303|2143289344;break a}e=2139095040;if(g>>>0>1082064895){break a}e=0;g=g>>>16|0;if(g>>>0<16145){break a}e=d&65535|65536;sn(h+16|0,a,b,c,e,g+ -16129|0);vn(h,a,b,f,e,16257-g|0);b=i[h+8>>2];e=(i[h+12>>2]&33554431)<<7|b>>>25;f=i[h+4>>2];g=f;a=0;j=a;k=i[h>>2]|((i[h+16>>2]|i[h+24>>2])!=0|(i[h+20>>2]|i[h+28>>2])!=0);b=b&33554431;if(!(!a&(b|0)==16777216?!(f|k):!a&b>>>0<16777216|a>>>0<0)){e=e+1|0;break a}if(b^16777216|k|(g|j)){break a}e=(e&1)+e|0}F=h+32|0;return Cp(2,d&-2147483648|e),Gp()}function hi(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=-1;a:{if((b|0)==-1){h=i[a+12>>2];d=1;e=-1;break a}h=i[a+12>>2];d=((b>>>0)%3|0?-1:2)+b|0;b:{if((d|0)==-1){d=1;break b}g=i[h+12>>2];while(1){f=d;e=i[g+(d<<2)>>2];if((e|0)!=-1){f=-1;d=e+1|0;d=(d>>>0)%3|0?d:e+ -2|0;if((d|0)!=-1){continue}}break}d=(e|0)!=-1;e=-1;if((b|0)==-1){break a}}e=i[i[h>>2]+(b<<2)>>2]}b=0;if(c){b=i[a+84>>2]+(e>>>3&536870908)|0;i[b>>2]=i[b>>2]|1<>2]+(e<<2)>>2];g=i[a+140>>2]+(c>>>3&536870908)|0;i[g>>2]=i[g>>2]|1<>>0)%3|0?-1:2)+f|0;c=-1;if((d|0)==-1){break c}c=i[i[h>>2]+(d<<2)>>2]}if((g|0)!=(c|0)){g=i[a+84>>2];while(1){a=f;f=g+(c>>>3&536870908)|0;i[f>>2]=i[f>>2]|1<>>0)%3|0?d:a+ -2|0;if((d|0)==-1){break d}j=i[h+12>>2];while(1){a=i[j+(d<<2)>>2];if((a|0)!=-1){d=a+1|0;d=(d>>>0)%3|0?d:a+ -2|0;if((d|0)!=-1){continue}break d}break}a=((d>>>0)%3|0?-1:2)+d|0;if((a|0)!=-1){c=i[i[h>>2]+(a<<2)>>2]}f=d}b=b+1|0;if((c|0)!=(e|0)){continue}break}}}function xi(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;a:{b:{if(j[a+352|0]){break b}b=i[a+8>>2];g=i[b+12>>2];h=i[b+8>>2];f=g-h|0;d=(f>>2)+ -1|0;c=i[a+176>>2];b=i[a+172>>2];e=(c-b|0)/136|0;c:{if(d>>>0>e>>>0){mi(a+172|0,d-e|0);break c}if(d>>>0>=e>>>0){break c}d=b+o(d,136)|0;if((d|0)!=(c|0)){while(1){b=i[c+ -20>>2];if(b){i[c+ -16>>2]=b;bp(b)}b=c+ -136|0;e=i[c+ -32>>2];if(e){i[c+ -28>>2]=e;bp(e)}ni(c+ -132|0);c=b;if((b|0)!=(d|0)){continue}break}}i[a+176>>2]=d}if((f|0)==4|(f|0)<1){break b}b=h-g|0;b=((b|0)>(f|0)?b:f)>>>2|0;f=b>>>0>1?b:1;c=0;while(1){d=i[i[i[a+8>>2]+8>>2]+(c<<2)>>2];if(i[d+56>>2]){e=o(n,136);k=e+i[a+172>>2]|0;i[k>>2]=c;g=k+108|0;l=i[k+104>>2];i[g>>2]=l;h=k+112|0;b=i[a+12>>2];b=i[b+4>>2]-i[b>>2]|0;m=b>>2;d:{if(i[h>>2]-l>>2>>>0>=m>>>0){break d}if(m>>>0>=1073741824){break a}b=ho(b);i[k+104>>2]=b;i[g>>2]=b;i[h>>2]=b+(m<<2);if(!l){break d}bp(l)}b=e+i[a+172>>2]|0;i[b+128>>2]=0;am(b+4|0,i[a+8>>2],i[a+12>>2],d);n=n+1|0}c=c+1|0;if((f|0)!=(c|0)){continue}break}}return 1}za(11708);x()}function di(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;a:{b:{if(j[a+288|0]){break b}b=i[a+8>>2];g=i[b+12>>2];h=i[b+8>>2];f=g-h|0;d=(f>>2)+ -1|0;c=i[a+176>>2];b=i[a+172>>2];e=(c-b|0)/136|0;c:{if(d>>>0>e>>>0){mi(a+172|0,d-e|0);break c}if(d>>>0>=e>>>0){break c}d=b+o(d,136)|0;if((d|0)!=(c|0)){while(1){b=i[c+ -20>>2];if(b){i[c+ -16>>2]=b;bp(b)}b=c+ -136|0;e=i[c+ -32>>2];if(e){i[c+ -28>>2]=e;bp(e)}ni(c+ -132|0);c=b;if((b|0)!=(d|0)){continue}break}}i[a+176>>2]=d}if((f|0)==4|(f|0)<1){break b}b=h-g|0;b=((b|0)>(f|0)?b:f)>>>2|0;f=b>>>0>1?b:1;c=0;while(1){d=i[i[i[a+8>>2]+8>>2]+(c<<2)>>2];if(i[d+56>>2]){e=o(n,136);k=e+i[a+172>>2]|0;i[k>>2]=c;g=k+108|0;l=i[k+104>>2];i[g>>2]=l;h=k+112|0;b=i[a+12>>2];b=i[b+4>>2]-i[b>>2]|0;m=b>>2;d:{if(i[h>>2]-l>>2>>>0>=m>>>0){break d}if(m>>>0>=1073741824){break a}b=ho(b);i[k+104>>2]=b;i[g>>2]=b;i[h>>2]=b+(m<<2);if(!l){break d}bp(l)}b=e+i[a+172>>2]|0;i[b+128>>2]=0;am(b+4|0,i[a+8>>2],i[a+12>>2],d);n=n+1|0}c=c+1|0;if((f|0)!=(c|0)){continue}break}}return 1}za(11708);x()}function eg(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0,m=0,o=0,p=0,q=0,r=0;o=F-16|0;F=o;h=i[b+28>>2];f=a+8|0;g=i[b+24>>2];i[f>>2]=g;i[f+4>>2]=h;j=i[b+20>>2];i[a>>2]=i[b+16>>2];i[a+4>>2]=j;j=i[b+36>>2];i[a+16>>2]=i[b+32>>2];i[a+20>>2]=j;i[f>>2]=d+g;a:{b:{if((d|0)>=1){j=i[b>>2];f=0;while(1){g=i[b+4>>2]-j>>2;h=i[(f<<2)+c>>2];c:{if(g>>>0>h>>>0){break c}i[o+12>>2]=0;k=h+1|0;if(k>>>0>g>>>0){Gb(b,k-g|0,o+12|0);j=i[b>>2];break c}if(k>>>0>=g>>>0){break c}i[b+4>>2]=(k<<2)+j}k=(h<<2)+j|0;g=i[k>>2];d:{if((g|0)>=2){m=+(g|0);m=ep(m)*m;break d}m=0;if(g){break d}i[a+16>>2]=i[a+16>>2]+1;if(h>>>0<=l[a+12>>2]){break d}i[a+12>>2]=h}h=g+1|0;i[k>>2]=h;p=+(h|0);q=a,r=ep(p)*p-m+n[a>>3],n[q>>3]=r;f=f+1|0;if((f|0)!=(d|0)){continue}break}if(e){break b}if((d|0)<1){break a}a=i[b>>2];f=0;while(1){b=a+(i[(f<<2)+c>>2]<<2)|0;i[b>>2]=i[b>>2]+ -1;f=f+1|0;if((f|0)!=(d|0)){continue}break}break a}if(!e){break a}}d=i[a+4>>2];b=b+16|0;i[b>>2]=i[a>>2];i[b+4>>2]=d;i[b+16>>2]=i[a+16>>2];c=i[a+12>>2];i[b+8>>2]=i[a+8>>2];i[b+12>>2]=c}F=o+16|0}function si(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=11424;i[a+72>>2]=0;i[a+76>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+88>>2]=0;i[a+92>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=1065353216;i[a+156>>2]=0;i[a+160>>2]=0;i[a+148>>2]=0;i[a+152>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+164>>2]=-1;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;mf(a+200|0);Tj(a+232|0);i[a+304>>2]=0;i[a+308>>2]=0;i[a+296>>2]=0;i[a+300>>2]=0;i[a+288>>2]=0;i[a+292>>2]=0;i[a+280>>2]=0;i[a+284>>2]=0;i[a+272>>2]=0;i[a+276>>2]=0;i[a+264>>2]=0;i[a+268>>2]=0;g[a+352|0]=0;i[a+344>>2]=0;i[a+336>>2]=0;i[a+340>>2]=0;i[a+328>>2]=2;i[a+332>>2]=7;i[a+320>>2]=-1;i[a+324>>2]=0;i[a+312>>2]=0;i[a+316>>2]=-1}function vc(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=F-32|0;F=b;c=i[a+16>>2];a:{if(c>>>0>=113){i[a+16>>2]=c+ -113;c=i[a+4>>2];i[b+8>>2]=i[c>>2];i[a+4>>2]=c+4;zc(a,b+8|0);break a}b:{c:{d:{e:{d=i[a+8>>2];e=d-i[a+4>>2]>>2;f=i[a+12>>2];c=f-i[a>>2]|0;if(e>>>0>2>>>0){if((d|0)==(f|0)){break e}g=b,h=ho(4068),i[g+8>>2]=h;zc(a,b+8|0);break a}i[b+24>>2]=a+12;c=c?c>>1:1;if(c>>>0>=1073741824){break d}d=c<<2;c=ho(d);i[b+8>>2]=c;e=c+(e<<2)|0;i[b+16>>2]=e;i[b+20>>2]=c+d;i[b+12>>2]=e;g=b,h=ho(4068),i[g+4>>2]=h;zc(b+8|0,b+4|0);d=i[a+8>>2];if((d|0)==i[a+4>>2]){c=d;break b}while(1){d=d+ -4|0;Ac(b+8|0,d);if(i[a+4>>2]!=(d|0)){continue}break}break c}g=b,h=ho(4068),i[g+8>>2]=h;Ac(a,b+8|0);c=i[a+4>>2];i[b+8>>2]=i[c>>2];i[a+4>>2]=c+4;zc(a,b+8|0);break a}za(1752);x()}c=i[a+8>>2]}e=i[a>>2];i[a>>2]=i[b+8>>2];i[b+8>>2]=e;i[a+4>>2]=i[b+12>>2];i[b+12>>2]=d;i[a+8>>2]=i[b+16>>2];i[b+16>>2]=c;f=i[a+12>>2];i[a+12>>2]=i[b+20>>2];i[b+20>>2]=f;if((c|0)!=(d|0)){i[b+16>>2]=c+(((c-d|0)+ -4>>>2^-1)<<2)}if(!e){break a}bp(e)}F=b+32|0}function Og(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0,n=0;e=1;a:{b:{c:{d:{e:{f:{switch(b-a>>2){case 2:d=i[c>>2];c=i[d>>2];d=i[d+4>>2]-c>>3;f=b+ -4|0;b=i[f>>2];if(d>>>0<=b>>>0){break e}g=d;d=i[a>>2];if(g>>>0<=d>>>0){break e}if(l[c+(b<<3)>>2]>=l[c+(d<<3)>>2]){break a}i[a>>2]=b;i[f>>2]=d;return 1;case 3:Ng(a,a+4|0,b+ -4|0,c);return 1;case 4:Kg(a,a+4|0,a+8|0,b+ -4|0,c);return 1;case 5:Lg(a,a+4|0,a+8|0,a+12|0,b+ -4|0,c);return 1;case 0:case 1:break a;default:break f}}f=a+8|0;Ng(a,a+4|0,f,c);e=a+12|0;if((e|0)==(b|0)){break c}d=i[c>>2];h=i[d>>2];j=i[d+4>>2]-h>>3;while(1){d=e;k=i[d>>2];if(j>>>0<=k>>>0){break d}e=i[f>>2];if(j>>>0<=e>>>0){break d}g=d;g:{m=h+(k<<3)|0;if(l[m>>2]>2]){while(1){h:{i[g>>2]=e;c=f;if((c|0)==(a|0)){c=a;break h}f=c+ -4|0;e=i[f>>2];if(j>>>0<=e>>>0){break d}g=c;if(l[m>>2]>2]){continue}}break}i[c>>2]=k;n=n+1|0;if((n|0)==8){break g}}f=d;e=d+4|0;if((e|0)==(b|0)){break c}continue}break}c=(d+4|0)==(b|0);a=0;break b}Io();x()}Io();x()}a=1}e=a|c}return e&1}function Uf(a,b,c,d){var e=0,f=0,h=0,k=0;k=F-16|0;F=k;e=ho(16);i[k>>2]=e;i[k+4>>2]=15;i[k+8>>2]=-2147483632;g[e+15|0]=0;f=j[10535]|j[10536]<<8|(j[10537]<<16|j[10538]<<24);h=j[10531]|j[10532]<<8|(j[10533]<<16|j[10534]<<24);g[e+7|0]=h;g[e+8|0]=h>>>8;g[e+9|0]=h>>>16;g[e+10|0]=h>>>24;g[e+11|0]=f;g[e+12|0]=f>>>8;g[e+13|0]=f>>>16;g[e+14|0]=f>>>24;f=j[10528]|j[10529]<<8|(j[10530]<<16|j[10531]<<24);h=j[10524]|j[10525]<<8|(j[10526]<<16|j[10527]<<24);g[e|0]=h;g[e+1|0]=h>>>8;g[e+2|0]=h>>>16;g[e+3|0]=h>>>24;g[e+4|0]=f;g[e+5|0]=f>>>8;g[e+6|0]=f>>>16;g[e+7|0]=f>>>24;f=b+4|0;e=$j(f,k,-1);if(g[k+11|0]<=-1){bp(i[k>>2])}a:{b:{c:{switch(e+1|0){case 0:if((_b(f)|0)==10){break b}break;case 2:break c;default:break b}}e=ho(68);lj(e);i[e+64>>2]=0;i[e>>2]=10936;break a}e=ho(64);lj(e);i[e>>2]=13204}i[e+56>>2]=c;aa(e,c);yj(a,e,f,d);if(!i[a>>2]){if(g[a+15|0]<=-1){bp(i[a+4>>2])}i[b+40>>2]=i[e+52>>2];i[b+44>>2]=i[e+60>>2];i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0}I[i[i[e>>2]+4>>2]](e);F=k+16|0}function Kj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=F-16|0;F=e;a:{b:{c=i[a+8>>2];c:{if((c|0)==i[a+12>>2]){c=ho(76);Qb(c,b);i[e+8>>2]=c;b=i[a+12>>2];d:{if(b>>>0>2]){i[e+8>>2]=0;i[b>>2]=c;i[a+12>>2]=b+4;break d}Xh(a+8|0,e+8|0)}a=i[e+8>>2];i[e+8>>2]=0;if(!a){break c}I[i[i[a>>2]+4>>2]](a);break c}c=i[c>>2];a=i[c+8>>2];e:{if((a|0)!=i[c+12>>2]){i[a>>2]=b;i[c+8>>2]=a+4;break e}f=i[c+4>>2];g=a-f|0;h=g>>2;d=h+1|0;if(d>>>0>=1073741824){break b}a=g>>1;d=h>>>0<536870911?a>>>0>>0?d:a:1073741823;a=0;f:{if(!d){break f}if(d>>>0>=1073741824){break a}a=ho(d<<2)}h=a+(h<<2)|0;i[h>>2]=b;d=a+(d<<2)|0;h=h+4|0;if((g|0)>=1){hp(a,f,g)}i[c+12>>2]=d;i[c+8>>2]=h;i[c+4>>2]=a;if(!f){break e}bp(f)}a=i[c+16>>2];f=i[c+20>>2]-a>>2;g:{if((f|0)>(b|0)){break g}i[e+12>>2]=-1;g=b+1|0;if(g>>>0>f>>>0){a=c+16|0;Gb(a,g-f|0,e+12|0);a=i[a>>2];break g}if(g>>>0>=f>>>0){break g}i[c+20>>2]=(g<<2)+a}i[(b<<2)+a>>2]=(i[c+8>>2]-i[c+4>>2]>>2)+ -1}F=e+16|0;return 1}Ho();x()}za(13936);x()}function gb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|i[d+8>>2]!=i[c+8>>2]|(i[d+12>>2]!=i[c+12>>2]|i[d+16>>2]!=i[c+16>>2])){break f}if(i[d+20>>2]==i[c+20>>2]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function Eb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|k[d+8>>1]!=k[c+8>>1]|(k[d+10>>1]!=k[c+10>>1]|k[d+12>>1]!=k[c+12>>1])){break f}if(k[d+14>>1]==k[c+14>>1]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function Z(a,b,c,d,e){var f=0,g=0,h=0,k=0,l=0,n=0,o=0,q=0;f=F-48|0;F=f;a=i[a+4>>2];a:{if(a+ -2>>>0>28){break a}l=i[i[e>>2]>>2]+i[e+48>>2]|0;i[f+16>>2]=a;a=-1<>2]=a^-1;a=-2-a|0;i[f+24>>2]=a;i[f+32>>2]=(a|0)/2;m[f+28>>2]=p(2)/p(a|0);g=i[c>>2];if((g|0)!=i[c+4>>2]){a=0;e=0;while(1){d=i[(e<<2)+g>>2];g=f+36|0;n=i[i[b>>2]>>2];o=i[b+48>>2];h=i[b+44>>2];k=i[b+40>>2];q=k;if(!j[b+84|0]){d=i[i[b+68>>2]+(d<<2)>>2]}d=up(q,h,d,0)+o|0;hp(g,d+n|0,k);_(f+16|0,f+36|0,f+12|0,f+8|0);d=a<<2;i[d+l>>2]=i[f+12>>2];i[(d|4)+l>>2]=i[f+8>>2];h=1;a=a+2|0;e=e+1|0;g=i[c>>2];if(e>>>0>2]-g>>2>>>0){continue}break}break a}if(!d){h=1;break a}e=0;a=0;while(1){c=a;g=f+36|0;n=i[i[b>>2]>>2];o=i[b+48>>2];h=i[b+44>>2];k=i[b+40>>2];q=k;if(!j[b+84|0]){c=i[i[b+68>>2]+(a<<2)>>2]}c=up(q,h,c,0)+o|0;hp(g,c+n|0,k);_(f+16|0,f+36|0,f+12|0,f+8|0);c=e<<2;i[c+l>>2]=i[f+12>>2];i[(c|4)+l>>2]=i[f+8>>2];e=e+2|0;h=1;a=a+1|0;if((d|0)!=(a|0)){continue}break}}F=f+48|0;return h}function $l(a,b){var c=0,d=0,e=0,f=0,h=0,j=0;j=F-16|0;F=j;a:{b:{if(b){i[a+88>>2]=0;i[a+92>>2]=0;c=a+84|0;d=i[c>>2];i[c>>2]=0;if(d){bp(d)}i[a+76>>2]=0;i[a+80>>2]=0;c=a+72|0;d=i[c>>2];i[c>>2]=0;if(d){bp(d)}d=i[b>>2];c=i[b+4>>2];g[j+15|0]=0;Uh(a,c-d>>2,j+15|0);c=b+28|0;d=i[c>>2];e=i[b+24>>2];g[j+14|0]=0;Uh(a+12|0,d-e>>2,j+14|0);Sh(a+28|0,i[b+4>>2]-i[b>>2]>>2,16716);d=i[a+52>>2];e=i[c>>2]-i[b+24>>2]|0;c=e>>2;c:{if(i[a+60>>2]-d>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break b}f=i[a+56>>2];h=c<<2;c=ho(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){hp(c,d,e)}i[a+60>>2]=h;i[a+56>>2]=f;i[a+52>>2]=c;if(!d){break c}bp(d)}d=i[a+40>>2];e=i[b+28>>2]-i[b+24>>2]|0;c=e>>2;d:{if(i[a+48>>2]-d>>2>>>0>=c>>>0){break d}if(c>>>0>=1073741824){break a}f=i[a+44>>2];h=c<<2;c=ho(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){hp(c,d,e)}i[a+48>>2]=h;i[a+44>>2]=f;i[a+40>>2]=c;if(!d){break d}bp(d)}g[a+24|0]=1;i[a+64>>2]=b}F=j+16|0;return(b|0)!=0}za(16720);x()}za(16720);x()}function oe(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0;f=F-16|0;F=f;if(!(!fd(a,b,c)|j[i[a+8>>2]+24|0]!=3)){h=i[b+48>>2];b=ho(32);i[f>>2]=b;i[f+4>>2]=17;i[f+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[6044];d=j[6040]|j[6041]<<8|(j[6042]<<16|j[6043]<<24);e=j[6036]|j[6037]<<8|(j[6038]<<16|j[6039]<<24);g[b+8|0]=e;g[b+9|0]=e>>>8;g[b+10|0]=e>>>16;g[b+11|0]=e>>>24;g[b+12|0]=d;g[b+13|0]=d>>>8;g[b+14|0]=d>>>16;g[b+15|0]=d>>>24;d=j[6032]|j[6033]<<8|(j[6034]<<16|j[6035]<<24);e=j[6028]|j[6029]<<8|(j[6030]<<16|j[6031]<<24);g[b|0]=e;g[b+1|0]=e>>>8;g[b+2|0]=e>>>16;g[b+3|0]=e>>>24;g[b+4|0]=d;g[b+5|0]=d>>>8;g[b+6|0]=d>>>16;g[b+7|0]=d>>>24;a:{b:{e=h+16|0;b=i[e>>2];if(!b){break b}d=e;while(1){k=i[b+16>>2]<(c|0);d=k?d:b;b=i[(k<<2)+b>>2];if(b){continue}break}if((d|0)==(e|0)|i[d+16>>2]>(c|0)){break b}b=d+20|0;if(!Sb(b,f)){break b}b=$j(b,f,-1);break a}b=$j(h,f,-1)}if(g[f+11|0]<=-1){bp(i[f>>2])}if((b|0)>=1){aa(a+40|0,b)}d=(b|0)>0}F=f+16|0;return d|0}function sb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;k=h+i[a>>2]|0;if(!i[k>>2]){i[k>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|j[d+8|0]!=j[c+8|0]|(j[d+9|0]!=j[c+9|0]|j[d+10|0]!=j[c+10|0])){break f}if(j[d+11|0]==j[c+11|0]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function ua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,m=0,n=0;e=i[a+12>>2];d=i[a+8>>2];f=e-d>>2;b=g[b+24|0];a:{if(f>>>0>>0){ka(a+8|0,b-f|0);d=i[a+8>>2];e=i[a+12>>2];break a}if(f>>>0<=b>>>0){break a}e=(b<<2)+d|0;i[a+12>>2]=e}b=0;h=i[c+12>>2];f=i[c+20>>2];k=i[c+16>>2];m=e-d|0;e=m;n=k+e|0;if(n>>>0>>0){f=f+1|0}b:{if((h|0)<(f|0)?1:(h|0)<=(f|0)?l[c+8>>2]>>0:0){break b}hp(d,k+i[c>>2]|0,m);d=i[c+20>>2];h=e+i[c+16>>2]|0;if(h>>>0>>0){d=d+1|0}e=h;i[c+16>>2]=e;i[c+20>>2]=d;f=i[c+12>>2];h=e+4|0;if(h>>>0<4){d=d+1|0}if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]>>0:0){break b}d=e+i[c>>2]|0;i[a+20>>2]=j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24);d=i[c+20>>2];e=d;k=i[c+16>>2];h=k+4|0;if(h>>>0<4){d=d+1|0}i[c+16>>2]=h;i[c+20>>2]=d;f=i[c+12>>2];if((f|0)<(d|0)?1:(f|0)<=(d|0)?l[c+8>>2]<=h>>>0:0){break b}f=j[h+i[c>>2]|0];d=e;e=k+5|0;if(e>>>0<5){d=d+1|0}i[c+16>>2]=e;i[c+20>>2]=d;if(f+ -1>>>0>29){break b}i[a+4>>2]=f;b=1}return b|0}function Sf(a,b,c){var d=0,e=0,f=0;e=F-16|0;F=e;d=i[b+48>>2];a:{if(!d){b=ho(32);i[e>>2]=b;i[e+4>>2]=23;i[e+8>>2]=-2147483616;g[b+23|0]=0;c=j[10519]|j[10520]<<8|(j[10521]<<16|j[10522]<<24);d=j[10515]|j[10516]<<8|(j[10517]<<16|j[10518]<<24);g[b+15|0]=d;g[b+16|0]=d>>>8;g[b+17|0]=d>>>16;g[b+18|0]=d>>>24;g[b+19|0]=c;g[b+20|0]=c>>>8;g[b+21|0]=c>>>16;g[b+22|0]=c>>>24;c=j[10512]|j[10513]<<8|(j[10514]<<16|j[10515]<<24);d=j[10508]|j[10509]<<8|(j[10510]<<16|j[10511]<<24);g[b+8|0]=d;g[b+9|0]=d>>>8;g[b+10|0]=d>>>16;g[b+11|0]=d>>>24;g[b+12|0]=c;g[b+13|0]=c>>>8;g[b+14|0]=c>>>16;g[b+15|0]=c>>>24;c=j[10504]|j[10505]<<8|(j[10506]<<16|j[10507]<<24);d=j[10500]|j[10501]<<8|(j[10502]<<16|j[10503]<<24);g[b|0]=d;g[b+1|0]=d>>>8;g[b+2|0]=d>>>16;g[b+3|0]=d>>>24;g[b+4|0]=c;g[b+5|0]=c>>>8;g[b+6|0]=c>>>16;g[b+7|0]=c>>>24;i[a>>2]=-1;ro(a+4|0,e);if(g[e+11|0]>-1){break a}bp(i[e>>2]);break a}f=i[b+52>>2];if(!f){Tf(a,b,d,c);break a}Uf(a,b,f,c)}F=e+16|0}function Qi(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i[a+12>>2];d=i[a+108>>2];e=i[d+80>>2];g[b+84|0]=0;f=i[b+68>>2];c=i[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){Xa(b+68|0,e-c|0,12320);d=i[a+108>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=f+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}p=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=i[n>>2]+(o(d,3)<<2)|0;j=i[c>>2];if((j|0)==-1){break c}f=o(d,12)+m|0;h=i[f>>2];if(h>>>0>=e>>>0){break c}l=i[i[a+112>>2]+12>>2];k=i[l+(j<<2)>>2];if(k>>>0>=e>>>0){break c}j=i[b+68>>2];i[j+(h<<2)>>2]=k;h=i[c+4>>2];if((h|0)==-1){break c}k=i[f+4>>2];if(k>>>0>=e>>>0){break c}h=i[(h<<2)+l>>2];if(h>>>0>=e>>>0){break c}i[j+(k<<2)>>2]=h;c=i[c+8>>2];if((c|0)==-1){break c}f=i[f+8>>2];if(f>>>0>=e>>>0){break c}c=i[(c<<2)+l>>2];if(c>>>0>=e>>>0){break c}i[j+(f<<2)>>2]=c;c=1;d=d+1|0;if((p|0)!=(d|0)){continue}break b}break}c=0}return c|0}function $i(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i[a+12>>2];d=i[a+68>>2];e=i[d+80>>2];g[b+84|0]=0;f=i[b+68>>2];c=i[b+72>>2]-f>>2;a:{if(e>>>0>c>>>0){Xa(b+68|0,e-c|0,12320);d=i[a+68>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=f+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}p=d>>>0>1?d:1;d=0;b:{while(1){c:{if((d|0)==1431655765){break c}c=i[n>>2]+(o(d,3)<<2)|0;j=i[c>>2];if((j|0)==-1){break c}f=o(d,12)+m|0;h=i[f>>2];if(h>>>0>=e>>>0){break c}l=i[i[a+72>>2]+12>>2];k=i[l+(j<<2)>>2];if(k>>>0>=e>>>0){break c}j=i[b+68>>2];i[j+(h<<2)>>2]=k;h=i[c+4>>2];if((h|0)==-1){break c}k=i[f+4>>2];if(k>>>0>=e>>>0){break c}h=i[(h<<2)+l>>2];if(h>>>0>=e>>>0){break c}i[j+(k<<2)>>2]=h;c=i[c+8>>2];if((c|0)==-1){break c}f=i[f+8>>2];if(f>>>0>=e>>>0){break c}c=i[(c<<2)+l>>2];if(c>>>0>=e>>>0){break c}i[j+(f<<2)>>2]=c;c=1;d=d+1|0;if((p|0)!=(d|0)){continue}break b}break}c=0}return c|0}function eb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|i[d+8>>2]!=i[c+8>>2]|i[d+12>>2]!=i[c+12>>2]){break f}if(i[d+16>>2]==i[c+16>>2]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function Cb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|k[d+8>>1]!=k[c+8>>1]|k[d+10>>1]!=k[c+10>>1]){break f}if(k[d+12>>1]==k[c+12>>1]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function $c(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=F-16|0;F=e;a:{c=i[a+4>>2];b:{if(c>>>0>>0){d=i[a+8>>2];f=d<<5;g=b-c|0;c:{if(!(f>>>0>>0|c>>>0>f-g>>>0)){i[a+4>>2]=b;d=c&31;b=i[a>>2]+(c>>>3&536870908)|0;break c}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if((b|0)<=-1){break a}c=e;if(f>>>0<=1073741822){f=b+31&-32;b=d<<6;b=b>>>0>>0?f:b}else{b=2147483647}bd(c,b);d=i[a+4>>2];i[e+4>>2]=d+g;h=i[a>>2];b=i[e>>2];d:{if((d|0)<1){d=0;break d}c=d>>>5|0;f=c<<2;b=jp(b,h,f)+f|0;d=d-(c<<5)|0;e:{if((d|0)<1){d=0;break e}c=-1>>>32-d|0;i[b>>2]=i[b>>2]&(c^-1)|c&i[f+h>>2]}h=i[a>>2]}i[a>>2]=i[e>>2];i[e>>2]=h;c=i[a+4>>2];i[a+4>>2]=i[e+4>>2];i[e+4>>2]=c;c=i[a+8>>2];i[a+8>>2]=i[e+8>>2];i[e+8>>2]=c;if(!h){break c}bp(h)}if(!g){break b}if(d){c=32-d|0;a=c>>>0>g>>>0?g:c;i[b>>2]=i[b>>2]&(-1<>>c-a^-1);g=g-a|0;b=b+4|0}c=g>>>5<<2;a=ip(b,0,c);b=g&31;if(!b){break b}a=a+c|0;i[a>>2]=i[a>>2]&(-1>>>32-b^-1);break b}i[a+4>>2]=b}F=e+16|0;return}Ho();x()}function Ri(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=F-16|0;F=g;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+28>>2]-i[c+24>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];h=c<<2;c=ho(e);h=h+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){hp(c,d,e)}i[b+8>>2]=h;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}bp(d)}b=i[a+12>>2];d=i[b+28>>2];b=i[b+24>>2];i[g+12>>2]=0;b=d-b>>2;c=a+96|0;e=i[c>>2];d=i[a+100>>2]-e>>2;c:{if(b>>>0>d>>>0){Gb(c,b-d|0,g+12|0);break c}if(b>>>0>=d>>>0){break c}i[a+100>>2]=e+(b<<2)}e=a+8|0;b=i[a+116>>2];d:{if(b){c=i[b>>2];if((c|0)==i[b+4>>2]){d=1;break d}b=0;while(1){d=Si(e,i[(b<<2)+c>>2]);if(!d){break d}f=i[a+116>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break d}d=1;a=i[a+12>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break d}b=0;while(1){d=Si(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break d}if(d){continue}break}}F=g+16|0;return d|0}za(11708);x()}function cc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=F-16|0;F=d;i[a+8>>2]=b;i[a>>2]=0;nc(a+12|0);mf(a+1036|0);hf(a+1068|0);hf(a+1088|0);hf(a+1108|0);i[a+1136>>2]=0;i[a+1128>>2]=0;i[a+1132>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}e=b<<2;c=ho(e);i[a+1128>>2]=c;f=c+e|0;i[a+1136>>2]=f;ip(c,0,e);i[a+1132>>2]=f}i[a+1140>>2]=0;i[a+1144>>2]=0;i[a+1148>>2]=0;if(b){e=b<<2;c=ho(e);i[a+1140>>2]=c;f=c+e|0;i[a+1148>>2]=f;ip(c,0,e);i[a+1144>>2]=f}i[a+1152>>2]=0;i[a+1156>>2]=0;i[a+1160>>2]=0;if(b){e=b<<2;c=ho(e);i[a+1152>>2]=c;f=c+e|0;i[a+1160>>2]=f;ip(c,0,e);i[a+1156>>2]=f}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;g=a+1164|0;e=b<<5|1;if(b){c=b<<2;f=ho(c);i[d>>2]=f;h=c+f|0;i[d+8>>2]=h;ip(f,0,c);i[d+4>>2]=h}oc(g,e,d);c=i[d>>2];if(c){i[d+4>>2]=c;bp(c)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=a+1176|0;if(b){b=b<<2;c=ho(b);i[d>>2]=c;g=b+c|0;i[d+8>>2]=g;ip(c,0,b);i[d+4>>2]=g}oc(f,e,d);b=i[d>>2];if(b){i[d+4>>2]=b;bp(b)}F=d+16|0;return a}Ho();x()}function qb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;k=h+i[a>>2]|0;if(!i[k>>2]){i[k>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|j[d+8|0]!=j[c+8|0]|j[d+9|0]!=j[c+9|0]){break f}if(j[d+10|0]==j[c+10|0]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function fj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;j=i[a+12>>2];d=i[a+68>>2];e=i[d+80>>2];g[b+84|0]=0;h=i[b+68>>2];c=i[b+72>>2]-h>>2;a:{if(e>>>0>c>>>0){Xa(b+68|0,e-c|0,12320);d=i[a+68>>2];e=i[d+80>>2];break a}if(e>>>0>=c>>>0){break a}i[b+72>>2]=h+(e<<2)}m=i[d+96>>2];c=i[d+100>>2]-m|0;d=(c|0)/12|0;if(!c){return 1}n=d>>>0>1?d:1;p=i[j+28>>2];d=0;b:{while(1){c:{c=(o(d,3)<<2)+p|0;h=i[c>>2];if((h|0)==-1){break c}j=o(d,12)+m|0;k=i[j>>2];if(k>>>0>=e>>>0){break c}f=h<<2;h=i[i[a+72>>2]+12>>2];f=i[f+h>>2];if(f>>>0>=e>>>0){break c}l=k<<2;k=i[b+68>>2];i[l+k>>2]=f;f=i[c+4>>2];if((f|0)==-1){break c}l=i[j+4>>2];if(l>>>0>=e>>>0){break c}f=i[h+(f<<2)>>2];if(f>>>0>=e>>>0){break c}i[k+(l<<2)>>2]=f;c=i[c+8>>2];if((c|0)==-1){break c}j=i[j+8>>2];if(j>>>0>=e>>>0){break c}c=i[h+(c<<2)>>2];if(c>>>0>=e>>>0){break c}i[k+(j<<2)>>2]=c;c=1;d=d+1|0;if((n|0)!=(d|0)){continue}break b}break}c=0}return c|0}function wc(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0;g=i[a+8>>2];a:{b:{c:{h=i[c>>2];f=i[b>>2];k=h-f|0;if(k>>>0>=64){if(g){break c}b=0;break b}b=0;if(g>>>0<2){break a}a=i[e>>2];c=1;while(1){b=l[a+(b<<2)>>2]>l[a+(c<<2)>>2]?c:b;c=c+1|0;if((g|0)!=(c|0)){continue}break}break a}g=i[b+8>>2];m=i[b+4>>2];n=i[d>>2];p=i[a+1140>>2];q=i[e>>2];r=i[a+1128>>2];while(1){b=j<<2;d=b+r|0;i[d>>2]=0;c=i[a>>2]-i[b+q>>2]|0;i[b+p>>2]=c;if(c){d:{if((f|0)==(h|0)){c=i[d>>2];break d}e=i[b+n>>2]+(1<>2]|0;c=i[d>>2];b=f;while(1){c=(l[s+(o(b,g)<<2)>>2]>>0)+c|0;i[d>>2]=c;b=b+1|0;if((h|0)!=(b|0)){continue}break}}b=k-c|0;i[d>>2]=b>>>0>>0?c:b}j=j+1|0;e=i[a+8>>2];if(j>>>0>>0){continue}break}if(!e){b=0;break b}g=i[a+1140>>2];c=0;d=0;b=0;while(1){f=c<<2;if(i[f+g>>2]){h=i[f+i[a+1128>>2]>>2];f=d>>>0>>0;d=f?h:d;b=f?c:b}c=c+1|0;if((e|0)!=(c|0)){continue}break}}yc(a+1088|0,4,b)}return b}function cb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|i[d+8>>2]!=i[c+8>>2]){break f}if(i[d+12>>2]==i[c+12>>2]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function Ab(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|k[d+8>>1]!=k[c+8>>1]){break f}if(k[d+10>>1]==k[c+10>>1]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function Am(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;j=a+8|0;d=i[a+12>>2];h=i[a+8>>2];f=d-h>>2;a:{if((f|0)>(b|0)){break a}e=b+1|0;if(e>>>0>f>>>0){Bm(j,e-f|0);break a}if(e>>>0>=f>>>0){break a}f=h+(e<<2)|0;if((f|0)!=(d|0)){while(1){d=d+ -4|0;e=i[d>>2];i[d>>2]=0;if(e){Wb(e)}if((d|0)!=(f|0)){continue}break}}i[a+12>>2]=f}b:{c:{d=i[i[c>>2]+56>>2];d:{if((d|0)>4){break d}d=o(d,12)+a|0;h=d+24|0;a=i[h>>2];k=d+28|0;if((a|0)!=i[k>>2]){i[a>>2]=b;i[h>>2]=a+4;break d}l=d+20|0;d=i[l>>2];f=a-d|0;g=f>>2;e=g+1|0;if(e>>>0>=1073741824){break c}a=f>>1;e=g>>>0<536870911?a>>>0>>0?e:a:1073741823;a=0;e:{if(!e){break e}if(e>>>0>=1073741824){break b}a=ho(e<<2)}g=a+(g<<2)|0;i[g>>2]=b;e=a+(e<<2)|0;g=g+4|0;if((f|0)>=1){hp(a,d,f)}i[l>>2]=a;i[h>>2]=g;i[k>>2]=e;if(!d){break d}bp(d)}d=i[c>>2];i[d+60>>2]=b;a=i[j>>2];i[c>>2]=0;b=a+(b<<2)|0;a=i[b>>2];i[b>>2]=d;if(a){Wb(a)}return}Ho();x()}za(16928);x()}function ob(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;k=h+i[a>>2]|0;if(!i[k>>2]){i[k>>2]=f;f=d;g=e;break e}while(1){f:{e=c;c=i[c>>2];if(!c|j[d+8|0]!=j[c+8|0]){break f}if(j[d+9|0]==j[c+9|0]){continue}}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function Bi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if((e-c|0)/12>>>0>=b>>>0){if(b){b=o(b,12);c=ip(c,0,b-((b+ -12>>>0)%12|0)|0)+b|0}i[a+4>>2]=c;return}a:{b:{c:{h=i[a>>2];f=(c-h|0)/12|0;d=f+b|0;if(d>>>0<357913942){f=o(f,12);e=(e-h|0)/12|0;g=e<<1;e=e>>>0<178956970?g>>>0>>0?d:g:357913941;if(e){if(e>>>0>=357913942){break c}j=ho(o(e,12))}d=f+j|0;b=o(b,12);f=ip(d,0,b-((b+ -12>>>0)%12|0)|0);g=b+f|0;b=o(e,12)+j|0;if((c|0)==(h|0)){break b}while(1){d=d+ -12|0;i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;c=c+ -12|0;i[d>>2]=i[c>>2];i[d+4>>2]=i[c+4>>2];i[d+8>>2]=i[c+8>>2];i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;if((c|0)!=(h|0)){continue}break}i[a+8>>2]=b;b=i[a+4>>2];i[a+4>>2]=g;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){a=b+ -12|0;d=i[a>>2];if(d){i[b+ -8>>2]=d;bp(d)}b=a;if((b|0)!=(c|0)){continue}break}break a}Ho();x()}za(11708);x()}i[a+8>>2]=b;i[a+4>>2]=g;i[a>>2]=f}if(c){bp(c)}}function ec(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=F-16|0;F=d;i[a+8>>2]=b;i[a>>2]=0;mf(a+12|0);hf(a+44|0);hf(a- -64|0);hf(a+84|0);i[a+112>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}e=b<<2;c=ho(e);i[a+104>>2]=c;f=c+e|0;i[a+112>>2]=f;ip(c,0,e);i[a+108>>2]=f}i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;if(b){e=b<<2;c=ho(e);i[a+116>>2]=c;f=c+e|0;i[a+124>>2]=f;ip(c,0,e);i[a+120>>2]=f}i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=0;if(b){e=b<<2;c=ho(e);i[a+128>>2]=c;f=c+e|0;i[a+136>>2]=f;ip(c,0,e);i[a+132>>2]=f}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;g=a+140|0;e=b<<5|1;if(b){c=b<<2;f=ho(c);i[d>>2]=f;h=c+f|0;i[d+8>>2]=h;ip(f,0,c);i[d+4>>2]=h}oc(g,e,d);c=i[d>>2];if(c){i[d+4>>2]=c;bp(c)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=a+152|0;if(b){b=b<<2;c=ho(b);i[d>>2]=c;g=b+c|0;i[d+8>>2]=g;ip(c,0,b);i[d+4>>2]=g}oc(f,e,d);b=i[d>>2];if(b){i[d+4>>2]=b;bp(b)}F=d+16|0;return a}Ho();x()}function hc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=F-16|0;F=d;i[a+8>>2]=b;i[a>>2]=0;hf(a+12|0);hf(a+32|0);hf(a+52|0);hf(a+72|0);i[a+100>>2]=0;i[a+92>>2]=0;i[a+96>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}e=b<<2;c=ho(e);i[a+92>>2]=c;f=c+e|0;i[a+100>>2]=f;ip(c,0,e);i[a+96>>2]=f}i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;if(b){e=b<<2;c=ho(e);i[a+104>>2]=c;f=c+e|0;i[a+112>>2]=f;ip(c,0,e);i[a+108>>2]=f}i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;if(b){e=b<<2;c=ho(e);i[a+116>>2]=c;f=c+e|0;i[a+124>>2]=f;ip(c,0,e);i[a+120>>2]=f}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;g=a+128|0;e=b<<5|1;if(b){c=b<<2;f=ho(c);i[d>>2]=f;h=c+f|0;i[d+8>>2]=h;ip(f,0,c);i[d+4>>2]=h}oc(g,e,d);c=i[d>>2];if(c){i[d+4>>2]=c;bp(c)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=a+140|0;if(b){b=b<<2;c=ho(b);i[d>>2]=c;g=b+c|0;i[d+8>>2]=g;ip(c,0,b);i[d+4>>2]=g}oc(f,e,d);b=i[d>>2];if(b){i[d+4>>2]=b;bp(b)}F=d+16|0;return a}Ho();x()}function $(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=p(0),f=p(0),h=p(0),k=p(0),l=p(0),m=0,n=p(0),o=p(0),r=p(0),s=p(0),u=0;a:{if(i[c+28>>2]!=9|j[c+24|0]!=3){break a}a=i[a+4>>2];if(a+ -2>>>0>28){break a}u=1;m=i[c+80>>2];if(!m){break a}n=p(p(2)/p((1<>2]>>2]+i[c+48>>2]|0;a=i[i[b>>2]>>2]+i[b+48>>2]|0;b=0;while(1){h=p(0);o=p(0);r=p(0);e=p(p(n*p(i[a>>2]))+p(-1));f=p(p(n*p(i[a+4>>2]))+p(-1));l=p(p(p(1)-p(q(e)))-p(q(f)));k=p(t(p(-l),p(0)));s=p(-k);f=p(f+(f>>8;g[c+10|0]=d>>>16;g[c+11|0]=d>>>24;d=(Fp(o),Bp(2));g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;d=(Fp(h),Bp(2));g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;c=c+12|0;b=b+1|0;if((m|0)!=(b|0)){continue}break}}return u|0}function td(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+4>>2]=b;i[a>>2]=3184;b=c;e=i[b+8>>2];f=i[b+12>>2];h=i[b+16>>2];j=i[b+20>>2];k=i[b>>2];l=i[b+4>>2];i[a+40>>2]=0;g=a+32|0;i[g>>2]=0;i[g+4>>2]=0;i[a+24>>2]=h;i[a+28>>2]=j;i[a+16>>2]=e;i[a+20>>2]=f;i[a+8>>2]=k;i[a+12>>2]=l;a:{b=i[b+28>>2]-i[b+24>>2]|0;if(b){e=b>>2;if(e>>>0>=1073741824){break a}b=ho(b);i[a+32>>2]=b;i[a+36>>2]=b;i[a+40>>2]=b+(e<<2);e=a;f=i[c+24>>2];c=i[c+28>>2]-f|0;if((c|0)>=1){b=hp(b,f,c)+c|0}i[e+36>>2]=b}i[a>>2]=4748;b=i[d+4>>2];i[a+44>>2]=i[d>>2];i[a+48>>2]=b;b=d+8|0;e=i[b+4>>2];i[a+52>>2]=i[b>>2];i[a+56>>2]=e;c=a- -64|0;i[c>>2]=0;i[c+4>>2]=0;i[a+60>>2]=5848;i[a>>2]=5264;c=i[d+4>>2];i[a+72>>2]=i[d>>2];i[a+76>>2]=c;c=i[b+4>>2];i[a+80>>2]=i[b>>2];i[a+84>>2]=c;i[a+104>>2]=1065353216;i[a+108>>2]=-1;i[a+96>>2]=-1;i[a+100>>2]=-1;i[a+88>>2]=1;i[a+92>>2]=-1;i[a+60>>2]=5484;mf(a+112|0);return}Ho();x()}function sd(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+4>>2]=b;i[a>>2]=3184;b=c;e=i[b+8>>2];f=i[b+12>>2];h=i[b+16>>2];j=i[b+20>>2];k=i[b>>2];l=i[b+4>>2];i[a+40>>2]=0;g=a+32|0;i[g>>2]=0;i[g+4>>2]=0;i[a+24>>2]=h;i[a+28>>2]=j;i[a+16>>2]=e;i[a+20>>2]=f;i[a+8>>2]=k;i[a+12>>2]=l;a:{b=i[b+28>>2]-i[b+24>>2]|0;if(b){e=b>>2;if(e>>>0>=1073741824){break a}b=ho(b);i[a+32>>2]=b;i[a+36>>2]=b;i[a+40>>2]=b+(e<<2);e=a;f=i[c+24>>2];c=i[c+28>>2]-f|0;if((c|0)>=1){b=hp(b,f,c)+c|0}i[e+36>>2]=b}i[a>>2]=3128;b=i[d+4>>2];i[a+44>>2]=i[d>>2];i[a+48>>2]=b;b=d+8|0;e=i[b+4>>2];i[a+52>>2]=i[b>>2];i[a+56>>2]=e;c=a- -64|0;i[c>>2]=0;i[c+4>>2]=0;i[a+60>>2]=4352;i[a>>2]=3724;c=i[d+4>>2];i[a+72>>2]=i[d>>2];i[a+76>>2]=c;c=i[b+4>>2];i[a+80>>2]=i[b>>2];i[a+84>>2]=c;i[a+104>>2]=1065353216;i[a+108>>2]=-1;i[a+96>>2]=-1;i[a+100>>2]=-1;i[a+88>>2]=1;i[a+92>>2]=-1;i[a+60>>2]=3960;mf(a+112|0);return}Ho();x()}function $d(a){var b=0,c=0,d=0;b=i[a+8>>2];d=i[a>>2];a:{if(j[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|i[i[d>>2]+(b>>>3&536870908)>>2]>>>b&1){break e}b=i[i[i[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}i[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;i[a+8>>2]=b;if((b|0)!=-1){break b}}b=-1;c=i[a+4>>2];f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1|i[i[d>>2]+(c>>>3&536870908)>>2]>>>c&1){break f}d=i[i[i[d+64>>2]+12>>2]+(c<<2)>>2];if((d|0)==-1){break f}if((d>>>0)%3|0){b=d+ -1|0;break f}b=d+2|0}g[a+12|0]=0;i[a+8>>2]=b;return}if((b|0)!=i[a+4>>2]){break a}i[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)==-1|i[i[d>>2]+(b>>>3&536870908)>>2]>>>b&1){break g}b=i[i[i[d+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break g}if((b>>>0)%3|0){c=b+ -1|0;break g}c=b+2|0}i[a+8>>2]=c}}function $h(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=F-16|0;F=c;b=i[i[a+184>>2]+(b<<2)>>2];g[c+15|0]=b;a:{b:{e=i[i[a+4>>2]+44>>2];d=i[e+20>>2];if((d|0)<0?1:(d|0)<=0?l[e+16>>2]<=0:0){ca(e,i[e+4>>2],c+15|0,c+16|0);b=j[c+15|0]}c:{if(b<<24>>24<=-1){e=i[a+68>>2];break c}b=i[i[a+172>>2]+o(b&255,136)>>2];d=I[i[i[a>>2]+40>>2]](a)|0;f=i[a+172>>2]+o(g[c+15|0],136)|0;e=i[f+132>>2];d:{switch(i[i[i[d+56>>2]+84>>2]+(b<<2)>>2]){case 0:break c;case 1:break d;default:break b}}if(!j[f+28|0]){break b}}b=i[i[a+4>>2]+44>>2];g[c+14|0]=0;d=i[b+20>>2];if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break a}ca(b,i[b+4>>2],c+14|0,c+15|0);break a}b=i[i[a+4>>2]+44>>2];g[c+13|0]=1;d=i[b+20>>2];if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break a}ca(b,i[b+4>>2],c+13|0,c+14|0)}a=i[i[a+4>>2]+44>>2];g[c+12|0]=e;b=i[a+20>>2];if((b|0)<0?1:(b|0)<=0?l[a+16>>2]<=0:0){ca(a,i[a+4>>2],c+12|0,c+13|0)}F=c+16|0;return 1}function kj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(i[d+8>>2]==i[c+8>>2]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(11708);x()}function yb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(k[d+8>>1]==k[c+8>>1]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function ab(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}k=b+ -1|0;l=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!l){e=e&k;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;j=h+i[a>>2]|0;if(!i[j>>2]){i[j>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(i[d+8>>2]==i[c+8>>2]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function mb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;a:{b:{if(b){if(b>>>0>=1073741824){break a}c=ho(b<<2);d=i[a>>2];i[a>>2]=c;if(d){bp(d)}i[a+4>>2]=b;d=b>>>0>1?b:1;c=0;while(1){i[i[a>>2]+(c<<2)>>2]=0;c=c+1|0;if((d|0)!=(c|0)){continue}break}f=i[a+8>>2];if(!f){break b}d=a+8|0;g=i[f+4>>2];c=xp(b);c:{if(c>>>0<=1){g=b+ -1&g;break c}if(g>>>0>>0){break c}g=(g>>>0)%(b>>>0)|0}i[i[a>>2]+(g<<2)>>2]=d;d=i[f>>2];if(!d){break b}l=b+ -1|0;m=c>>>0>1;while(1){e=i[d+4>>2];d:{if(!m){e=e&l;break d}if(e>>>0>>0){break d}e=(e>>>0)%(b>>>0)|0}e:{if((e|0)==(g|0)){f=d;break e}c=d;h=e<<2;k=h+i[a>>2]|0;if(!i[k>>2]){i[k>>2]=f;f=d;g=e;break e}while(1){e=c;c=i[c>>2];if(j[d+8|0]==j[c+8|0]?c:0){continue}break}i[f>>2]=c;i[e>>2]=i[i[i[a>>2]+h>>2]>>2];i[i[i[a>>2]+h>>2]>>2]=d}d=i[f>>2];if(d){continue}break}break b}b=i[a>>2];i[a>>2]=0;if(b){bp(b)}i[a+4>>2]=0}return}za(1352);x()}function Dj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;j=F-16|0;F=j;c=i[a+4>>2];i[a+8>>2]=c;f=i[a+16>>2];i[a+20>>2]=f;a:{b:{g=i[b>>2];m=i[b+4>>2];if((g|0)!=(m|0)){l=a+16|0;b=c;while(1){h=i[g>>2];c:{if(i[a+12>>2]!=(b|0)){i[b>>2]=h;i[a+8>>2]=b+4;break c}k=b-c|0;e=k>>2;d=e+1|0;if(d>>>0>=1073741824){break b}b=k>>1;d=e>>>0<536870911?b>>>0>>0?d:b:1073741823;b=0;d:{if(!d){break d}if(d>>>0>=1073741824){break a}b=ho(d<<2)}e=b+(e<<2)|0;i[e>>2]=h;d=b+(d<<2)|0;e=e+4|0;if((k|0)>=1){hp(b,c,k)}i[a+12>>2]=d;i[a+8>>2]=e;i[a+4>>2]=b;if(!c){break c}bp(c);f=i[l>>2]}b=i[a+20>>2]-f>>2;e:{if((h|0)<(b|0)){break e}i[j+12>>2]=-1;c=h+1|0;if(c>>>0>b>>>0){Gb(l,c-b|0,j+12|0);f=i[l>>2];break e}if(c>>>0>=b>>>0){break e}i[a+20>>2]=(c<<2)+f}b=i[a+8>>2];c=i[a+4>>2];i[(h<<2)+f>>2]=(b-c>>2)+ -1;g=g+4|0;if((m|0)!=(g|0)){continue}break}}F=j+16|0;return}Ho();x()}za(13760);x()}function gf(a,b){var c=0,d=0,e=0,f=0,h=0;f=F-16|0;F=f;c=ho(32);i[f>>2]=c;i[f+4>>2]=17;i[f+8>>2]=-2147483616;g[c+17|0]=0;g[c+16|0]=j[9966];e=j[9962]|j[9963]<<8|(j[9964]<<16|j[9965]<<24);d=j[9958]|j[9959]<<8|(j[9960]<<16|j[9961]<<24);g[c+8|0]=d;g[c+9|0]=d>>>8;g[c+10|0]=d>>>16;g[c+11|0]=d>>>24;g[c+12|0]=e;g[c+13|0]=e>>>8;g[c+14|0]=e>>>16;g[c+15|0]=e>>>24;e=j[9954]|j[9955]<<8|(j[9956]<<16|j[9957]<<24);d=j[9950]|j[9951]<<8|(j[9952]<<16|j[9953]<<24);g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;g[c+4|0]=e;g[c+5|0]=e>>>8;g[c+6|0]=e>>>16;g[c+7|0]=e>>>24;e=b+16|0;d=i[e>>2];a:{if(!d){break a}c=e;while(1){h=i[d+16>>2]<(a|0);c=h?c:d;d=i[(h<<2)+d>>2];if(d){continue}break}if((c|0)==(e|0)|i[c+16>>2]>(a|0)){break a}a=c+20|0;if(!Sb(a,f)){break a}b=a}a=$j(b,f,-1);if(g[f+11|0]<=-1){bp(i[f>>2])}if((a|0)!=-1){F=f+16|0;return a>>>0>6?-2:a}F=f+16|0;return-1}function oa(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,n=0,r=0,s=0,t=0,v=0,w=0,x=p(0),y=0,z=0,A=p(0),B=0,C=0,D=0,E=0;r=F-16|0;F=r;e=i[a+4>>2];h=i[d+48>>2];l=i[i[d>>2]>>2];k=g[b+24|0];f=dk(r+8|0);ek(f,m[a+20>>2],-1<>2];e=i[c+4>>2];if((n|0)!=(e|0)){y=h+l|0;c=e-n|0;h=(c|0)>-1?c:-1;e=n-e|0;c=o((h|0)<1?h:1,((e|0)>(c|0)?e:c)>>>2|0);z=c>>>0>1?c:1;A=m[f>>2];B=i[b>>2];e=i[b+48>>2];C=i[b+68>>2];h=i[b+44>>2];l=i[b+40>>2];D=l;c=0;E=j[b+84|0];while(1){b=i[(s<<2)+n>>2];f=d;t=i[B>>2];v=l;w=h;if(!E){b=i[(b<<2)+C>>2]}b=up(v,w,b,0)+e|0;v=hp(f,b+t|0,D);if((k|0)>=1){w=i[a+8>>2];b=0;while(1){t=y+(c<<2)|0;f=b<<2;x=p(u(p(p(A*p(m[f+v>>2]-m[f+w>>2]))+p(.5))));a:{if(p(q(x))>2]=f;c=c+1|0;b=b+1|0;if((k|0)!=(b|0)){continue}break}}s=s+1|0;if((z|0)!=(s|0)){continue}break}}bp(d);F=r+16|0}function zj(a,b){var c=0,d=0,e=0,f=0,j=0;d=F-16|0;F=d;c=i[b+44>>2];e=i[c+20>>2];if((e|0)<0?1:(e|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],13688,13693)}c=I[i[i[b>>2]+8>>2]](b)|0;g[d+15|0]=c;g[d+14|0]=2;g[d+13|0]=c&255?2:3;c=i[b+44>>2];e=i[c+20>>2];a:{if((e|0)>0?1:(e|0)>=0?l[c+16>>2]>0:0){break a}ca(c,i[c+4>>2],d+14|0,d+15|0);c=i[b+44>>2];e=i[c+20>>2];if((e|0)>0?1:(e|0)>=0?l[c+16>>2]>0:0){break a}ca(c,i[c+4>>2],d+13|0,d+14|0);c=i[b+44>>2];e=i[c+20>>2];if((e|0)>0?1:(e|0)>=0?l[c+16>>2]>0:0){break a}ca(c,i[c+4>>2],d+15|0,d+16|0);c=i[b+44>>2]}f=d,j=I[i[i[b>>2]+12>>2]](b)|0,g[f+12|0]=j;e=i[c+20>>2];if((e|0)<0?1:(e|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],d+12|0,d+13|0)}h[d+10>>1]=(i[i[b+4>>2]+4>>2]!=0)<<15;b=i[b+44>>2];c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],d+10|0,d+12|0)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;F=d+16|0}function ep(a){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;a:{b:{c:{d:{Ep(+a);b=Bp(1)|0;c=Bp(0)|0;if((b|0)>0?1:(b|0)>=0?c>>>0>=0:0){e=b;if(b>>>0>1048575){break d}}if(!(b&2147483647|c)){return-1/(a*a)}if((b|0)>-1){break c}return(a-a)/0}if(e>>>0>2146435071){break a}b=1072693248;j=-1023;if((e|0)!=1072693248){b=e;break b}if(c){break b}return 0}Ep(+(a*0x40000000000000));b=Bp(1)|0;c=Bp(0)|0;j=-1077}Cp(0,c|0);c=b+614242|0;Cp(1,(c&1048575)+1072079006|0);d=+Dp()+ -1;f=d*(d*.5);g=d/(d+2);h=g*g;a=h*h;Ep(+(d-f));b=Bp(1)|0;Bp(0)|0;Cp(0,0);Cp(1,b|0);i=+Dp();k=i*1.4426950407214463;l=+((c>>>20|0)+j|0);m=k+l;a=d-i-f+g*(f+(a*(a*(a*.15313837699209373+.22222198432149784)+.3999999999940942)+h*(a*(a*(a*.14798198605116586+.1818357216161805)+.2857142874366239)+.6666666666666735)));a=m+(k+(l-m)+(a*1.4426950407214463+(a+i)*1.6751713164886512e-10))}return a}function ca(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,m=0,n=0;l=d-c|0;if((l|0)<1){return}a:{e=i[a+8>>2];m=i[a+4>>2];if((l|0)<=(e-m|0)){k=m-b|0;if((l|0)<=(k|0)){e=m;h=d;break a}e=m;h=c+k|0;if((h|0)!=(d|0)){f=h;while(1){g[e|0]=j[f|0];e=e+1|0;f=f+1|0;if((f|0)!=(d|0)){continue}break}}i[a+4>>2]=e;if((k|0)>=1){break a}return}h=i[a>>2];d=(m-h|0)+l|0;if((d|0)>-1){k=b-h|0;n=k;f=e-h|0;e=f<<1;e=f>>>0<1073741823?e>>>0>>0?d:e:2147483647;d=0;b:{if(!e){break b}d=ho(e)}c=hp(n+d|0,c,l);if((k|0)>=1){hp(d,h,k)}e=d+e|0;c=c+l|0;f=m-b|0;if((f|0)>=1){c=hp(c,b,f)+f|0}i[a+8>>2]=e;i[a+4>>2]=c;i[a>>2]=d;if(h){bp(h)}return}Ho();x()}k=e-(b+l|0)|0;f=e;d=e-l|0;if(d>>>0>>0){while(1){g[f|0]=j[d|0];f=f+1|0;d=d+1|0;if(d>>>0>>0){continue}break}}i[a+4>>2]=f;if(k){jp(e-k|0,b,k)}if((c|0)==(h|0)){return}f=b;while(1){g[f|0]=j[c|0];f=f+1|0;c=c+1|0;if((h|0)!=(c|0)){continue}break}}function fh(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=F-32|0;F=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -4194304|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -4177920|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+4194304|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1077936128|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Tj(j);Jg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;jp(k+h|0,h,c);hp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Uj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){bp(a)}a=i[f>>2];if(a){i[f+4>>2]=a;bp(a)}F=j+32|0}function dh(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=F-32|0;F=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -2097152|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -2080768|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+6291456|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1075838976|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Tj(j);Jg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;jp(k+h|0,h,c);hp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Uj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){bp(a)}a=i[f>>2];if(a){i[f+4>>2]=a;bp(a)}F=j+32|0}function bh(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=F-32|0;F=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -1048576|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -1032192|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+7340032|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1074790400|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Tj(j);Jg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;jp(k+h|0,h,c);hp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Uj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){bp(a)}a=i[f>>2];if(a){i[f+4>>2]=a;bp(a)}F=j+32|0}function Xg(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=F-32|0;F=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -32768|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -16384|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+8355840|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1073774592|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Tj(j);Jg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;jp(k+h|0,h,c);hp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Uj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){bp(a)}a=i[f>>2];if(a){i[f+4>>2]=a;bp(a)}F=j+32|0} function Zg(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=F-32|0;F=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -131072|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -114688|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+8257536|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1073872896|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Tj(j);Jg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;jp(k+h|0,h,c);hp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Uj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){bp(a)}a=i[f>>2];if(a){i[f+4>>2]=a;bp(a)}F=j+32|0}function $g(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=F-32|0;F=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -262144|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;d=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;c=c+ -245760|0;g[e|0]=c;g[e+1|0]=c>>>8;d=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+8126464|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;d=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1074003968|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;d=i[e>>2]+4|0;break a}d=i[a+28>>2]}f=d>>31;e=f;c=d;f=Tj(j);Jg(c,e,f);k=i[f+4>>2]-i[f>>2]|0;jp(k+h|0,h,c);hp(h,i[f>>2],k);d=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=c+k|0;if(b>>>0>>0){a=a+1|0}c=b;b=l+c|0;Uj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){bp(a)}a=i[f>>2];if(a){i[f+4>>2]=a;bp(a)}F=j+32|0}function og(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0;j=F-32|0;F=j;h=i[b>>2]+i[a+40>>2]|0;c=i[a+32>>2];d=c+ -16384|0;a:{if(d>>>0<=63){c=a+28|0;g[i[a+24>>2]+i[c>>2]|0]=d;c=i[c>>2]+1|0;break a}if(d>>>0<=16383){d=a+28|0;e=i[a+24>>2]+i[d>>2]|0;g[e|0]=c;g[e+1|0]=c>>>8;c=i[d>>2]+2|0;break a}if(d>>>0<=4194303){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+8372224|0;g[d+2|0]=c>>>16;g[d+1|0]=c>>>8;g[d|0]=c;c=i[e>>2]+3|0;break a}if(d>>>0<=1073741823){e=a+28|0;d=i[a+24>>2]+i[e>>2]|0;c=c+ -1073758208|0;g[d|0]=c;g[d+1|0]=c>>>8;g[d+2|0]=c>>>16;g[d+3|0]=c>>>24;c=i[e>>2]+4|0;break a}c=i[a+28>>2]}f=c>>31;e=f;d=c;f=Tj(j);Jg(d,e,f);k=i[f+4>>2]-i[f>>2]|0;jp(k+h|0,h,d);hp(h,i[f>>2],k);c=i[a+44>>2];h=b;l=i[a+40>>2];a=e;b=d+k|0;if(b>>>0>>0){a=a+1|0}d=b;b=l+d|0;Uj(h,b);a=i[f+12>>2];i[f+12>>2]=0;if(a){bp(a)}a=i[f>>2];if(a){i[f+4>>2]=a;bp(a)}F=j+32|0}function Ig(a,b){var c=0,d=0,e=0,f=0,h=0,j=0,k=0,m=0,n=0,o=0;d=F-16|0;F=d;Jb(i[a+12>>2],b);a:{if(!i[a+12>>2]){break a}m=d+14|0;n=d+15|0;o=d+16|0;while(1){b:{c:{k=i[a>>2];f=i[k+(h<<3)>>2];if(f>>>0>=64){c=1;j=1;e=1;if(f>>>0<16384){break c}if(f>>>0<=4194303){j=2;e=2;break c}break a}j=1;c=0;e=0;if(f){break c}while(1){d:{if(i[(k+(c+h<<3)|0)+8>>2]){f=c;break d}f=63;c=c+1|0;if((c|0)!=63){continue}}break}g[d+15|0]=f<<2|3;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],d+15|0,o)}h=f+h|0;break b}g[d+14|0]=f<<2|e;e=i[b+20>>2];if((e|0)<0?1:(e|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],d+14|0,n)}e=0;if(!c){break b}while(1){e=e+1|0;g[d+13|0]=f>>>(e<<3)+ -2;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],d+13|0,m)}if((e|0)!=(j|0)){continue}break}}h=h+1|0;if(h>>>0>2]){continue}break}}F=d+16|0}function gm(a,b,c){var d=0,e=0,f=0,g=0;Jb(i[c+8>>2],b);d=i[c>>2];g=c+4|0;if((d|0)!=(g|0)){while(1){f=d;if(!hm(b,d+16|0)){return}d=i[f+32>>2]-i[f+28>>2]|0;Jb(d,b);e=i[b+20>>2];if((e|0)<0?1:(e|0)<=0?l[b+16>>2]<=0:0){e=i[f+28>>2];ca(b,i[b+4>>2],e,e+d|0)}e=i[f+4>>2];a:{if(!e){d=i[f+8>>2];if((f|0)==i[d>>2]){break a}e=f+8|0;while(1){f=i[e>>2];e=f+8|0;d=i[f+8>>2];if((f|0)!=i[d>>2]){continue}break}break a}while(1){d=e;e=i[d>>2];if(e){continue}break}}if((d|0)!=(g|0)){continue}break}}Jb(i[c+20>>2],b);d=i[c+12>>2];f=c+16|0;if((d|0)==(f|0)){return}while(1){c=d;if(!hm(b,d+16|0)){return}gm(a,b,i[c+28>>2]);e=i[c+4>>2];b:{if(!e){d=i[c+8>>2];if((c|0)==i[d>>2]){break b}e=c+8|0;while(1){c=i[e>>2];e=c+8|0;d=i[c+8>>2];if((c|0)!=i[d>>2]){continue}break}break b}while(1){d=e;e=i[d>>2];if(e){continue}break}}if((d|0)!=(f|0)){continue}break}}function Ej(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{b=i[a+4>>2];b=i[b+12>>2]-i[b+8>>2]|0;if((b|0)<=0){b=b>>2;break a}while(1){if(I[i[i[a>>2]+36>>2]](a,c)|0){c=c+1|0;b=i[a+4>>2];b=i[b+12>>2]-i[b+8>>2]>>2;if((c|0)<(b|0)){continue}break a}break}return 0}g=a+20|0;d=i[a+20>>2];c=i[a+24>>2]-d>>2;b:{if(b>>>0>c>>>0){Bd(g,b-c|0);break b}if(b>>>0>=c>>>0){break b}i[a+24>>2]=d+(b<<2)}b=i[a+8>>2];c=i[a+12>>2];if((b|0)==(c|0)){return 1}a=c-b|0;d=(a|0)>-1?a:-1;c=b-c|0;a=o((d|0)<1?d:1,((c|0)>(a|0)?c:a)>>>2|0);h=a>>>0>1?a:1;c=0;while(1){a=i[(c<<2)+b>>2];e=i[a+8>>2];d=i[a+4>>2];if((e|0)!=(d|0)){a=e-d|0;f=(a|0)>-1?a:-1;e=d-e|0;a=o((f|0)<1?f:1,((e|0)>(a|0)?e:a)>>>2|0);e=a>>>0>1?a:1;f=i[g>>2];a=0;while(1){i[f+(i[d+(a<<2)>>2]<<2)>>2]=c;a=a+1|0;if((e|0)!=(a|0)){continue}break}}c=c+1|0;if((h|0)!=(c|0)){continue}break}return 1}function Aj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=F-16|0;F=e;a:{b:{if(!(I[i[i[a>>2]+32>>2]](a)|0)){break b}c=i[a+44>>2];d=i[a+12>>2];b=i[a+8>>2];g[e+15|0]=d-b>>>2;f=i[c+20>>2];if((f|0)<0?1:(f|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],e+15|0,e+16|0);d=i[a+12>>2];b=i[a+8>>2]}if((b|0)!=(d|0)){while(1){c=i[b>>2];if(!(I[i[i[c>>2]+8>>2]](c,a,i[a+4>>2])|0)){break b}b=b+4|0;if((d|0)!=(b|0)){continue}break}}if(!Bj(a)){break b}b=i[a+32>>2];c=i[a+36>>2];if((b|0)==(c|0)){break a}while(1){if(!(I[i[i[a>>2]+40>>2]](a,i[b>>2])|0)){break b}b=b+4|0;if((c|0)!=(b|0)){continue}break}b=i[a+32>>2];c=i[a+36>>2];if((b|0)==(c|0)){break a}while(1){d=i[i[a+8>>2]+(i[b>>2]<<2)>>2];if(!(I[i[i[d>>2]+12>>2]](d,i[a+44>>2])|0)){break b}b=b+4|0;if((c|0)!=(b|0)){continue}break}break a}F=e+16|0;return 0}a=I[i[i[a>>2]+44>>2]](a)|0;F=e+16|0;return a|0}function Mh(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=11192;i[a+72>>2]=0;i[a+76>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+88>>2]=0;i[a+92>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;i[a+104>>2]=0;i[a+108>>2]=0;i[a+112>>2]=0;i[a+116>>2]=0;i[a+120>>2]=0;i[a+124>>2]=0;i[a+128>>2]=0;i[a+132>>2]=0;i[a+136>>2]=1065353216;i[a+156>>2]=0;i[a+160>>2]=0;i[a+148>>2]=0;i[a+152>>2]=0;i[a+140>>2]=0;i[a+144>>2]=0;i[a+168>>2]=0;i[a+172>>2]=0;i[a+164>>2]=-1;i[a+176>>2]=0;i[a+180>>2]=0;i[a+184>>2]=0;i[a+188>>2]=0;i[a+192>>2]=0;mf(a+200|0);Tj(a+232|0);g[a+288|0]=0;i[a+280>>2]=0;i[a+284>>2]=0;i[a+272>>2]=0;i[a+276>>2]=0;i[a+264>>2]=0;i[a+268>>2]=0}function lf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=F-16|0;F=e;a:{b:{d=i[a+4>>2];c:{if((d|0)!=i[a+8>>2]){i[d>>2]=i[a+12>>2];c=d+4|0;i[a+4>>2]=c;break c}g=i[a>>2];h=d-g|0;f=h>>2;c=f+1|0;if(c>>>0>=1073741824){break b}j=h>>1;c=f>>>0<536870911?j>>>0>>0?c:j:1073741823;d=0;d:{if(!c){break d}if(c>>>0>=1073741824){break a}d=ho(c<<2)}f=d+(f<<2)|0;i[f>>2]=i[a+12>>2];j=d+(c<<2)|0;c=f+4|0;if((h|0)>=1){hp(d,g,h)}i[a+8>>2]=j;i[a+4>>2]=c;i[a>>2]=d;if(!g){break c}bp(g);c=i[a+4>>2]}d=i[a>>2];i[e+12>>2]=c-d;c=i[b+20>>2];e:{if((c|0)>0?1:(c|0)>=0?l[b+16>>2]>0:0){break e}ca(b,i[b+4>>2],e+12|0,e+16|0);d=i[a>>2];c=i[b+20>>2];if((c|0)>0?1:(c|0)>=0?l[b+16>>2]>0:0){break e}ca(b,i[b+4>>2],d,i[e+12>>2]+d|0);d=i[a>>2]}i[a+12>>2]=0;i[a+16>>2]=0;i[a+4>>2]=d;F=e+16|0;return}Ho();x()}za(9968);x()}function qf(a,b){var c=0,d=0,e=0,f=0;d=i[a>>2];a:{if(b){b=d;c=b;e=i[b+12>>2];d=i[b+8>>2]+1|0;if(d>>>0<1){e=e+1|0}i[c+8>>2]=d;i[b+12>>2]=e;b=i[a+28>>2];i[a+24>>2]=i[a+24>>2]|1<>2];d=i[b>>2]+1|0;if(d>>>0<1){e=e+1|0}i[c>>2]=d;i[b+4>>2]=e;b=i[a+28>>2]}b=b+1|0;i[a+28>>2]=b;b:{c:{if((b|0)==32){b=i[a+16>>2];d:{if((b|0)!=i[a+20>>2]){i[b>>2]=i[a+24>>2];i[a+16>>2]=b+4;break d}d=i[a+12>>2];e=b-d|0;f=e>>2;c=f+1|0;if(c>>>0>=1073741824){break c}b=e>>1;c=f>>>0<536870911?b>>>0>>0?c:b:1073741823;b=0;e:{if(!c){break e}if(c>>>0>=1073741824){break b}b=ho(c<<2)}f=b+(f<<2)|0;i[f>>2]=i[a+24>>2];c=b+(c<<2)|0;f=f+4|0;if((e|0)>=1){hp(b,d,e)}i[a+20>>2]=c;i[a+16>>2]=f;i[a+12>>2]=b;if(!d){break d}bp(d)}i[a+24>>2]=0;i[a+28>>2]=0}return}Ho();x()}za(10036);x()}function Tc(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=F-16|0;F=e;g=a+36|0;b=i[a+8>>2]-i[a+4>>2]>>2;c=i[a+40>>2];f=i[a+36>>2];d=c-f>>2;a:{if(b>>>0>d>>>0){Uc(g,b-d|0);break a}if(b>>>0>=d>>>0){break a}d=f+(b<<2)|0;if((d|0)!=(c|0)){while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}}i[a+40>>2]=d}if(i[a+8>>2]==i[a+4>>2]){c=1}else{c=0;while(1){I[i[i[a>>2]+56>>2]](e+8|0,a,c);b=i[a+36>>2];d=i[e+8>>2];i[e+8>>2]=0;f=c<<2;h=f+b|0;b=i[h>>2];i[h>>2]=d;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[e+8>>2];i[e+8>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[f+i[g>>2]>>2];if(b){if(!(!(i[i[a+48>>2]+(c>>>3&536870908)>>2]>>>c&1)|c>>>0>=l[a+52>>2])){Gc(b)}c=c+1|0;if(c>>>0>2]-i[a+4>>2]>>2>>>0){continue}}break}c=(b|0)!=0}F=e+16|0;return c|0}function Ib(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;d=F-16|0;F=d;e=a+8|0;Jb(i[e>>2]-i[a+4>>2]>>2,b);c=i[a+4>>2];if((c|0)!=i[e>>2]){k=d+13|0;l=d+14|0;m=d+15|0;n=d+16|0;while(1){f=i[i[i[a+32>>2]+8>>2]+(i[(h<<2)+c>>2]<<2)>>2];g[d+15|0]=i[f+56>>2];c=i[b+20>>2];e=i[b+16>>2];if((c|0)<0?1:(c|0)<=0?e>>>0<=0:0){ca(b,i[b+4>>2],d+15|0,n);e=i[b+16>>2];c=i[b+20>>2]}g[d+14|0]=i[f+28>>2];if((c|0)<0?1:(c|0)<=0?e>>>0<=0:0){ca(b,i[b+4>>2],d+14|0,m);e=i[b+16>>2];c=i[b+20>>2]}g[d+13|0]=j[f+24|0];if((c|0)<0?1:(c|0)<=0?e>>>0<=0:0){ca(b,i[b+4>>2],d+13|0,l);e=i[b+16>>2];c=i[b+20>>2]}g[d+12|0]=j[f+32|0];if((c|0)<0?1:(c|0)<=0?e>>>0<=0:0){ca(b,i[b+4>>2],d+12|0,k)}Jb(i[f+60>>2],b);h=h+1|0;c=i[a+4>>2];if(h>>>0>2]-c>>2>>>0){continue}break}}F=d+16|0;return 1}function me(a){var b=0,c=0,d=0;b=i[a+8>>2];d=i[a>>2];a:{if(j[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=i[i[d+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}i[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b+ -2|0;i[a+8>>2]=b;if((b|0)!=-1){break b}}c=i[a+4>>2];b=-1;f:{if((c|0)==-1){break f}c=c+((c>>>0)%3|0?-1:2)|0;b=-1;if((c|0)==-1){break f}c=i[i[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}g[a+12|0]=0;i[a+8>>2]=b;return}if((b|0)!=i[a+4>>2]){break a}i[a+8>>2]=-1;return}c=-1;g:{if((b|0)==-1){break g}b=b+((b>>>0)%3|0?-1:2)|0;c=-1;if((b|0)==-1){break g}b=i[i[d+12>>2]+(b<<2)>>2];c=-1;if((b|0)==-1){break g}c=b+ -1|0;if((b>>>0)%3|0){break g}c=b+2|0}i[a+8>>2]=c}}function jp(a,b,c){var d=0;a:{if((a|0)==(b|0)){break a}if((b-a|0)-c>>>0<=0-(c<<1)>>>0){return hp(a,b,c)}d=(a^b)&3;b:{c:{if(a>>>0>>0){if(d){d=a;break b}if(!(a&3)){d=a;break c}d=a;while(1){if(!c){break a}g[d|0]=j[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(a+c&3){while(1){if(!c){break a}c=c+ -1|0;d=c+a|0;g[d|0]=j[b+c|0];if(d&3){continue}break}}if(c>>>0<=3){break d}while(1){c=c+ -4|0;i[c+a>>2]=i[b+c>>2];if(c>>>0>3){continue}break}}if(!c){break a}while(1){c=c+ -1|0;g[c+a|0]=j[b+c|0];if(c){continue}break}break a}if(c>>>0<=3){break b}while(1){i[d>>2]=i[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){g[d|0]=j[b|0];d=d+1|0;b=b+1|0;c=c+ -1|0;if(c){continue}break}}return a}function Gm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=i[c>>2];l=i[c+4>>2];if((e|0)!=(l|0)){p=i[b>>2];while(1){c=i[e>>2];m=c<<2;f=i[m+p>>2];if(f>>>0>=d>>>0){d=i[a+12>>2];h=i[a+8>>2];b=d-h|0;if((b|0)>=1){d=h-d|0;b=((d|0)>(b|0)?d:b)>>>2|0;q=b>>>0>1?b:1;d=0;while(1){b=c;n=i[(d<<2)+h>>2];o=i[n+68>>2];r=o+(f<<2)|0;if(!j[n+84|0]){b=i[m+o>>2]}i[r>>2]=b;d=d+1|0;if((q|0)!=(d|0)){continue}break}}d=f+1|0}e=e+4|0;if((l|0)!=(e|0)){continue}break}}e=i[a+12>>2];b=i[a+8>>2];if((e-b|0)>0){while(1){c=i[(k<<2)+b>>2];g[c+84|0]=0;h=i[c+68>>2];f=i[c+72>>2]-h>>2;a:{if(d>>>0>f>>>0){Xa(c+68|0,d-f|0,16924);b=i[a+8>>2];e=i[a+12>>2];break a}if(d>>>0>=f>>>0){break a}i[c+72>>2]=h+(d<<2)}k=k+1|0;if((k|0)>2){continue}break}}}function Uc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}a:{b:{c:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){d=d-g|0;h=d>>1;e=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(e){if(e>>>0>=1073741824){break c}j=ho(e<<2)}d=(f<<2)+j|0;f=b<<2;b=ip(d,0,f);f=b+f|0;e=(e<<2)+j|0;if((c|0)==(g|0)){break b}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;d=d+ -4|0;i[d>>2]=b;if((c|0)!=(g|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){I[i[i[a>>2]+4>>2]](a)}if((b|0)!=(c|0)){continue}break}break a}Ho();x()}za(2172);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){bp(c)}}function Ff(a,b,c,d){var e=0,f=0,h=0,k=0;e=F-32|0;F=e;i[e+24>>2]=0;i[e+16>>2]=0;i[e+20>>2]=0;a:{if((d|0)<1){break a}Co(e,m[c>>2]);f=j[e+11|0];h=f<<24>>24<0;Ao(e+16|0,h?i[e>>2]:e,h?i[e+4>>2]:f);if(g[e+11|0]<=-1){bp(i[e>>2])}f=1;if((d|0)==1){break a}while(1){Ao(e+16|0,10466,mp(10466));Co(e,m[(f<<2)+c>>2]);h=j[e+11|0];k=h<<24>>24<0;Ao(e+16|0,k?i[e>>2]:e,k?i[e+4>>2]:h);if(g[e+11|0]<=-1){bp(i[e>>2])}f=f+1|0;if((f|0)!=(d|0)){continue}break}}c=Of(a,e,b);f=i[c>>2];if(!f){f=ho(40);ro(f+16|0,b);i[f+36>>2]=0;i[f+28>>2]=0;i[f+32>>2]=0;i[f+8>>2]=i[e>>2];i[f>>2]=0;i[f+4>>2]=0;i[c>>2]=f;d=i[i[a>>2]>>2];b=f;b:{if(!d){break b}i[a>>2]=d;b=i[c>>2]}Kf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}to(f+28|0,e+16|0);if(g[e+27|0]<=-1){bp(i[e+16>>2])}F=e+32|0}function Dl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=i[a+8>>2];d=i[a+4>>2];if((e-d|0)/12>>>0>=b>>>0){f=a;if(b){a=o(b,12)+d|0;while(1){b=i[c+4>>2];i[d>>2]=i[c>>2];i[d+4>>2]=b;i[d+8>>2]=i[c+8>>2];d=d+12|0;if((a|0)!=(d|0)){continue}break}d=a}i[f+4>>2]=d;return}a:{g=i[a>>2];j=d-g|0;h=(j|0)/12|0;f=h+b|0;if(f>>>0<357913942){d=o(b,12);e=(e-g|0)/12|0;k=e<<1;e=e>>>0<178956970?k>>>0>>0?f:k:357913941;f=0;b:{if(!e){break b}if(e>>>0>=357913942){break a}f=ho(o(e,12))}b=f+o(h,12)|0;h=d+b|0;d=b;while(1){k=i[c+4>>2];i[d>>2]=i[c>>2];i[d+4>>2]=k;i[d+8>>2]=i[c+8>>2];d=d+12|0;if((h|0)!=(d|0)){continue}break}c=f+o(e,12)|0;b=b+o((j|0)/-12|0,12)|0;if((j|0)>=1){hp(b,g,j)}i[a+8>>2]=c;i[a+4>>2]=h;i[a>>2]=b;if(g){bp(g)}return}Ho();x()}za(16382);x()}function $f(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=ho(32);c=i[b>>2];i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=c;f=d+24|0;i[d+20>>2]=f;c=i[b+4>>2];g=b+8|0;if((c|0)!=(g|0)){h=d+20|0;while(1){e=c;b=c+16|0;Mf(h,f,b,b);b=i[c+4>>2];a:{if(!b){c=i[e+8>>2];if((e|0)==i[c>>2]){break a}b=e+8|0;while(1){e=i[b>>2];b=e+8|0;c=i[e+8>>2];if((e|0)!=i[c>>2]){continue}break}break a}while(1){c=b;b=i[b>>2];if(b){continue}break}}if((c|0)!=(g|0)){continue}break}}b=i[a+4>>2];b:{c:{if(b){e=i[d+16>>2];while(1){d:{if((e|0)>2]){c=i[b>>2];if(!c){break c}break d}c=i[b+4>>2];if(c){break d}c=b+4|0;break b}b=c;continue}}b=a+4|0}c=b}i[d+8>>2]=b;i[d>>2]=0;i[d+4>>2]=0;i[c>>2]=d;b=i[i[a>>2]>>2];if(b){i[a>>2]=b;d=i[c>>2]}Kf(i[a+4>>2],d);i[a+8>>2]=i[a+8>>2]+1}function na(a,b,c,d){var e=0,f=0,h=0,k=0,l=0,n=0,o=0,r=0,s=0,t=0,v=0,w=p(0),x=0,y=p(0),z=0,A=0,B=0,C=0,D=0;n=F-16|0;F=n;h=i[a+4>>2];o=i[d+48>>2];d=i[i[d>>2]>>2];f=g[b+24|0];k=dk(n+8|0);ek(k,m[a+20>>2],-1<>2];z=i[b>>2];o=i[b+48>>2];A=i[b+68>>2];k=i[b+44>>2];v=i[b+40>>2];B=v;d=0;C=j[b+84|0];D=(f|0)<1;while(1){b=l;e=h;r=i[z>>2];s=v;t=k;if(!C){b=i[(l<<2)+A>>2]}b=up(s,t,b,0)+o|0;s=hp(e,b+r|0,B);if(!D){t=i[a+8>>2];b=0;while(1){r=(d<<2)+x|0;e=b<<2;w=p(u(p(p(y*p(m[e+s>>2]-m[e+t>>2]))+p(.5))));a:{if(p(q(w))>2]=e;d=d+1|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}l=l+1|0;if((l|0)!=(c|0)){continue}break}}bp(h);F=n+16|0}function cd(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;e=F-32|0;F=e;h=i[c>>2];g=i[b>>2];j=i[c+4>>2];c=i[b+4>>2];b=(h-g<<3)+(j-c|0)|0;d=i[a+4>>2];f=b+d|0;i[a+4>>2]=f;a:{if(!(!d|(f+ -1^d+ -1)>>>0>31)){a=i[a>>2];break a}a=i[a>>2];if(f>>>0<=32){i[a>>2]=0;break a}i[(f+ -1>>>3&536870908)+a>>2]=0}a=(d>>>3&536870908)+a|0;d=d&31;b:{if((d|0)==(c|0)){if((b|0)<1){break b}if(c){f=32-c|0;d=(b|0)<(f|0)?b:f;f=-1<>>f-d;i[a>>2]=i[a>>2]&(f^-1)|f&i[g>>2];b=b-d|0;g=g+4|0;a=a+(c+d>>>3&536870908)|0}d=a;c=(b|0)/32|0;a=c<<2;d=jp(d,g,a);b=b-(c<<5)|0;if((b|0)<1){break b}c=a+d|0;b=-1>>>32-b|0;i[c>>2]=i[c>>2]&(b^-1)|b&i[a+g>>2];break b}i[e+28>>2]=c;i[e+24>>2]=g;i[e+20>>2]=j;i[e+16>>2]=h;i[e+12>>2]=d;i[e+8>>2]=a;dd(e,e+24|0,e+16|0,e+8|0)}F=e+32|0}function ip(a,b,c){var d=0,e=0,f=0,h=0;a:{if(!c){break a}d=a+c|0;g[d+ -1|0]=b;g[a|0]=b;if(c>>>0<3){break a}g[d+ -2|0]=b;g[a+1|0]=b;g[d+ -3|0]=b;g[a+2|0]=b;if(c>>>0<7){break a}g[d+ -4|0]=b;g[a+3|0]=b;if(c>>>0<9){break a}d=0-a&3;e=d+a|0;b=o(b&255,16843009);i[e>>2]=b;c=c-d&-4;d=c+e|0;i[d+ -4>>2]=b;if(c>>>0<9){break a}i[e+8>>2]=b;i[e+4>>2]=b;i[d+ -8>>2]=b;i[d+ -12>>2]=b;if(c>>>0<25){break a}i[e+24>>2]=b;i[e+20>>2]=b;i[e+16>>2]=b;i[e+12>>2]=b;i[d+ -16>>2]=b;i[d+ -20>>2]=b;i[d+ -24>>2]=b;i[d+ -28>>2]=b;h=e&4|24;c=c-h|0;if(c>>>0<32){break a}d=b;f=b;b=e+h|0;while(1){i[b+24>>2]=f;i[b+28>>2]=d;i[b+16>>2]=f;i[b+20>>2]=d;i[b+8>>2]=f;i[b+12>>2]=d;i[b>>2]=f;i[b+4>>2]=d;b=b+32|0;c=c+ -32|0;if(c>>>0>31){continue}break}}return a}function Bm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i[a+8>>2];c=i[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}a:{b:{c:{g=i[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){d=d-g|0;h=d>>1;e=d>>2>>>0<536870911?h>>>0>>0?e:h:1073741823;if(e){if(e>>>0>=1073741824){break c}j=ho(e<<2)}d=(f<<2)+j|0;f=b<<2;b=ip(d,0,f);f=b+f|0;e=(e<<2)+j|0;if((c|0)==(g|0)){break b}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;d=d+ -4|0;i[d>>2]=b;if((c|0)!=(g|0)){continue}break}i[a+8>>2]=e;b=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=d;if((b|0)==(c|0)){break a}while(1){b=b+ -4|0;a=i[b>>2];i[b>>2]=0;if(a){Wb(a)}if((b|0)!=(c|0)){continue}break}break a}Ho();x()}za(16928);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){bp(c)}}function Wj(a){var b=0,c=0,d=0,e=0,f=0,h=0,k=0;f=F-32|0;F=f;c=i[a+16>>2];b=i[a+20>>2];if((b|0)>0?1:(b|0)>=0?c>>>0>=1:0){b=i[i[a+12>>2]+4>>2]+7|0;if(b>>>0<7){e=1}d=b;b=e>>>3|0;e=e<<29|d>>>3;d=b;if(j[a+24|0]){h=i[a+4>>2];g[f+24|0]=0;b=f;i[b+16>>2]=0;i[b+20>>2]=0;i[b+8>>2]=0;i[b+12>>2]=0;i[b>>2]=0;i[b+4>>2]=0;Jg(e,d,b);c=h-c|0;h=c+ -8|0;d=i[b+4>>2]-i[b>>2]|0;jp(h+d|0,c,e);hp(h,i[b>>2],d);b=a;k=b;c=i[b+20>>2];d=8-d|0;h=d+i[b+16>>2]|0;if(h>>>0>>0){c=c+1|0}i[k+16>>2]=h;i[b+20>>2]=c;b=i[f+12>>2];i[f+12>>2]=0;if(b){bp(b)}b=i[f>>2];if(b){i[f+4>>2]=b;bp(b)}c=i[a+16>>2]}d=i[a>>2];b=i[a+4>>2]-d|0;e=e-c|0;c=b+e|0;a:{if(c>>>0>b>>>0){Qj(a,e);break a}if(c>>>0>=b>>>0){break a}i[a+4>>2]=c+d}i[a+16>>2]=0;i[a+20>>2]=0}F=f+32|0}function ji(a,b){var c=0,d=0,e=0,f=0,g=0;d=F-16|0;F=d;i[d>>2]=b;c=-1;a:{if((b|0)==-1){i[d+4>>2]=-1;break a}c=b+1|0;i[d+4>>2]=(c>>>0)%3|0?c:b+ -2|0;if((b>>>0)%3|0){c=b+ -1|0;break a}c=b+2|0}i[d+8>>2]=c;c=(b|0)==-1?-1:(b>>>0)/3|0;e=i[a+28>>2]+(c>>>3&536870908)|0;i[e>>2]=i[e>>2]|1<>2]+12>>2]+(b<<2)>>2];if((c|0)==-1){break b}c=(c>>>0)/3|0;if(i[i[a+28>>2]+(c>>>3&268435452)>>2]>>>c&1){break b}c=i[a+172>>2];if((c|0)==i[a+176>>2]){break b}e=b>>>5|0;g=1<>2]+(b<<5)|0,(i[i[(o(b,136)+c|0)+4>>2]+(e<<2)>>2]&g)!=0);b=b+1|0;c=i[a+172>>2];if(b>>>0<(i[a+176>>2]-c|0)/136>>>0){continue}break}}f=f+1|0;if((f|0)!=3){b=i[(f<<2)+d>>2];continue}break}F=d+16|0}function fi(a,b,c){var d=0,e=0,f=0;a:{b:{c:{b=o(b,3);if((b|0)==-1){break c}e=i[a+12>>2];f=i[e+12>>2];d=b<<2;if(i[f+d>>2]==-1){break b}a=i[a+152>>2];e=i[e>>2];if(i[a+(i[e+d>>2]<<2)>>2]!=-1){break a}d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0;if((b|0)==-1){break c}d=b<<2;if(i[d+f>>2]==-1){break b}if(i[a+(i[d+e>>2]<<2)>>2]!=-1){break a}d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0;if((b|0)==-1){break c}d=b<<2;if(i[d+f>>2]==-1){break b}if(i[a+(i[d+e>>2]<<2)>>2]!=-1){break a}a=b+1|0;i[c>>2]=(a>>>0)%3|0?a:b+ -2|0;return 1}b=-1}i[c>>2]=b;return 0}while(1){d:{a=b;b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)==-1){break d}b=i[(b<<2)+f>>2];if((b|0)==-1){break d}b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)!=-1){continue}}break}i[c>>2]=a+((a>>>0)%3|0?-1:2);return 0}function hn(a,b,c,d,e,f){var g=0;g=F-80|0;F=g;a:{if((f|0)>=16384){yn(g+32|0,b,c,d,e,0,0,0,2147352576);d=i[g+40>>2];e=i[g+44>>2];b=i[g+32>>2];c=i[g+36>>2];if((f|0)<32767){f=f+ -16383|0;break a}yn(g+16|0,b,c,d,e,0,0,0,2147352576);f=((f|0)<49149?f:49149)+ -32766|0;d=i[g+24>>2];e=i[g+28>>2];b=i[g+16>>2];c=i[g+20>>2];break a}if((f|0)>-16383){break a}yn(g- -64|0,b,c,d,e,0,0,0,65536);d=i[g+72>>2];e=i[g+76>>2];b=i[g+64>>2];c=i[g+68>>2];if((f|0)>-32765){f=f+16382|0;break a}yn(g+48|0,b,c,d,e,0,0,0,65536);f=((f|0)>-49146?f:-49146)+32764|0;d=i[g+56>>2];e=i[g+60>>2];b=i[g+48>>2];c=i[g+52>>2]}yn(g,b,c,d,e,0,0,0,f+16383<<16);b=i[g+12>>2];i[a+8>>2]=i[g+8>>2];i[a+12>>2]=b;b=i[g+4>>2];i[a>>2]=i[g>>2];i[a+4>>2]=b;F=g+80|0}function ag(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;h=F-16|0;F=h;i[h+8>>2]=0;i[h>>2]=0;i[h+4>>2]=0;a:{b:{g=c+1|0;if(g>>>0>=c>>>0){if(g>>>0>=1073741824){break b}j=ho(g<<2);ip(j,0,(c<<2)+4|0)}if((b|0)>0){while(1){g=(i[(f<<2)+a>>2]<<2)+j|0;i[g>>2]=i[g>>2]+1;f=f+1|0;if((f|0)!=(b|0)){continue}break}}f=0;if((c|0)<0){b=0;break a}k=+(b|0);b=0;while(1){a=i[(f<<2)+j>>2];if((a|0)>=1){l=e;e=+(a|0);e=l+ep(e/k)*e;b=b+1|0}a=(c|0)==(f|0);f=f+1|0;if(!a){continue}break}break a}Ho();x()}if(d){i[d>>2]=b}if(j){bp(j)}e=-e;c:{if(q(e)<0x8000000000000000){b=q(e)>=1?e>0?~~s(u(e*2.3283064365386963e-10),4294967295)>>>0:~~v((e- +(~~e>>>0>>>0))*2.3283064365386963e-10)>>>0:0;a=~~e>>>0;break c}b=-2147483648;a=0}F=h+16|0;H=b;return a}function gj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+56>>2]-i[c+52>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];g=c<<2;c=ho(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){hp(c,d,e)}i[b+8>>2]=g;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}bp(d)}e=a+8|0;b=i[a+76>>2];c:{if(b){c=i[b>>2];if((c|0)==i[b+4>>2]){return 1}b=0;while(1){d=hj(e,i[(b<<2)+c>>2]);if(!d){break c}f=i[a+76>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break c}d=1;a=i[i[a+12>>2]+64>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break c}b=0;while(1){d=hj(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break c}if(d){continue}break}}return d|0}za(11708);x()}function Rh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;h=F-16|0;F=h;a:{b:{c=i[a+8>>2];c:{if((c|0)!=i[a+12>>2]){i[c>>2]=b;i[a+8>>2]=c+4;break c}e=i[a+4>>2];f=c-e|0;g=f>>2;d=g+1|0;if(d>>>0>=1073741824){break b}c=f>>1;d=g>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;d:{if(!d){break d}if(d>>>0>=1073741824){break a}c=ho(d<<2)}g=c+(g<<2)|0;i[g>>2]=b;d=c+(d<<2)|0;g=g+4|0;if((f|0)>=1){hp(c,e,f)}i[a+12>>2]=d;i[a+8>>2]=g;i[a+4>>2]=c;if(!e){break c}bp(e)}c=i[a+16>>2];e=i[a+20>>2]-c>>2;e:{if((e|0)>(b|0)){break e}i[h+12>>2]=-1;f=b+1|0;if(f>>>0>e>>>0){c=a+16|0;Gb(c,f-e|0,h+12|0);c=i[c>>2];break e}if(f>>>0>=e>>>0){break e}i[a+20>>2]=(f<<2)+c}i[(b<<2)+c>>2]=(i[a+8>>2]-i[a+4>>2]>>2)+ -1;F=h+16|0;return}Ho();x()}za(11708);x()}function km(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=ho(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;d=i[a+4>>2];c=i[a>>2];if((d|0)==(c|0)){break b}while(1){d=d+ -4|0;g=i[d>>2];i[d>>2]=0;b=b+ -4|0;i[b>>2]=g;if((d|0)!=(c|0)){continue}break}i[a+8>>2]=e;d=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=b;if((d|0)==(c|0)){break a}while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){yk(a+12|0,i[a+16>>2]);zk(a,i[a+4>>2]);bp(a)}if((d|0)!=(c|0)){continue}break}break a}Ho();x()}za(16788);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){bp(c)}}function of(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+8>>2];d=i[a>>2];if(c-d>>3>>>0>=2){e=i[a+4>>2];f=e-d>>3;g=f>>>0<2?f:2;if(g){c=d;while(1){h=i[b+4>>2];i[c>>2]=i[b>>2];i[c+4>>2]=h;c=c+8|0;g=g+ -1|0;if(g){continue}break}}if(f>>>0<2){c=a;a=2-f|0;if(a){a=(a<<3)+e|0;while(1){d=i[b+4>>2];i[e>>2]=i[b>>2];i[e+4>>2]=d;e=e+8|0;if((a|0)!=(e|0)){continue}break}}else{a=e}i[c+4>>2]=a;return}i[a+4>>2]=d+16;return}if(d){i[a+4>>2]=d;bp(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;c=0}d=c>>2;c=c>>3>>>0<268435455?d>>>0<2?2:d:536870911;if(c>>>0<536870912){d=c<<3;c=ho(d);i[a>>2]=c;i[a+8>>2]=c+d;d=c+16|0;e=i[b>>2];b=i[b+4>>2];while(1){i[c>>2]=e;i[c+4>>2]=b;c=c+8|0;if((d|0)!=(c|0)){continue}break}i[a+4>>2]=d;return}Ho();x()}function Vm(a,b,c){a:{if(b>>>0>20){break a}b:{switch(b+ -9|0){case 0:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=i[b>>2];return;case 1:b=i[c>>2];i[c>>2]=b+4;b=i[b>>2];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 2:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=i[b>>2];i[a+4>>2]=0;return;case 3:b=i[c>>2]+7&-8;i[c>>2]=b+8;c=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=c;return;case 4:b=i[c>>2];i[c>>2]=b+4;b=h[b>>1];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 5:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=k[b>>1];i[a+4>>2]=0;return;case 6:b=i[c>>2];i[c>>2]=b+4;b=g[b|0];i[a>>2]=b;i[a+4>>2]=b>>31;return;case 7:b=i[c>>2];i[c>>2]=b+4;i[a>>2]=j[b|0];i[a+4>>2]=0;return;case 8:b=i[c>>2]+7&-8;i[c>>2]=b+8;n[a>>3]=n[b>>3];return;case 9:break b;default:break a}}I[369](a,c)}}function aj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=i[a+4>>2];d=i[b>>2];a:{c=i[a+12>>2];e=i[c+28>>2]-i[c+24>>2]|0;c=e>>2;b:{if(i[b+8>>2]-d>>2>>>0>=c>>>0){break b}if(c>>>0>=1073741824){break a}f=i[b+4>>2];g=c<<2;c=ho(e);g=g+c|0;e=f-d|0;f=e+c|0;if((e|0)>=1){hp(c,d,e)}i[b+8>>2]=g;i[b+4>>2]=f;i[b>>2]=c;if(!d){break b}bp(d)}e=a+8|0;b=i[a+76>>2];c:{if(b){c=i[b>>2];if((c|0)==i[b+4>>2]){return 1}b=0;while(1){d=bj(e,i[(b<<2)+c>>2]);if(!d){break c}f=i[a+76>>2];c=i[f>>2];b=b+1|0;if(b>>>0>2]-c>>2>>>0){continue}break}break c}d=1;a=i[a+12>>2];a=(i[a+4>>2]-i[a>>2]>>2>>>0)/3|0;if(a>>>0<1){break c}b=0;while(1){d=bj(e,o(b,3));b=b+1|0;if((a|0)==(b|0)){break c}if(d){continue}break}}return d|0}za(11708);x()}function rl(a,b,c){var d=0,e=0,f=0,h=0,k=0;f=c-b|0;e=i[a+8>>2];d=i[a>>2];if(f>>>0<=e-d>>>0){h=i[a+4>>2]-d|0;e=h+b|0;k=f>>>0>h>>>0?e:c;if((k|0)!=(b|0)){while(1){g[d|0]=j[b|0];d=d+1|0;b=b+1|0;if((k|0)!=(b|0)){continue}break}}if(f>>>0>h>>>0){b=i[a+4>>2];if((c|0)!=(k|0)){while(1){g[b|0]=j[e|0];b=b+1|0;e=e+1|0;if((e|0)!=(c|0)){continue}break}}i[a+4>>2]=b;return}i[a+4>>2]=d;return}if(d){i[a+4>>2]=d;bp(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;e=0}a:{if((f|0)<=-1){break a}d=e<<1;e=e>>>0<1073741823?d>>>0>>0?f:d:2147483647;if((e|0)<=-1){break a}d=ho(e);i[a>>2]=d;i[a+4>>2]=d;i[a+8>>2]=d+e;if((b|0)!=(c|0)){hp(d,b,f);while(1){d=d+1|0;b=b+1|0;if((c|0)!=(b|0)){continue}break}}i[a+4>>2]=d;return}Ho();x()}function Sh(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=i[a+8>>2];e=i[a>>2];if(d-e>>2>>>0>=b>>>0){f=i[a+4>>2];g=f-e>>2;h=g>>>0>>0?g:b;if(h){d=e;while(1){i[d>>2]=i[c>>2];d=d+4|0;h=h+ -1|0;if(h){continue}break}}if(g>>>0>>0){d=a;a=b-g|0;if(a){a=(a<<2)+f|0;while(1){i[f>>2]=i[c>>2];f=f+4|0;if((a|0)!=(f|0)){continue}break}}else{a=f}i[d+4>>2]=a;return}i[a+4>>2]=(b<<2)+e;return}if(e){i[a+4>>2]=e;bp(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(b>>>0>=1073741824){break a}e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?b:e:1073741823;if(d>>>0>=1073741824){break a}e=d<<2;d=ho(e);i[a>>2]=d;i[a+8>>2]=d+e;b=(b<<2)+d|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}i[a+4>>2]=b;return}Ho();x()}function Hc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;a:{b:{if((I[i[i[b>>2]+20>>2]](b)|0)>=1){k=a+16|0;while(1){f=xm(i[i[a+4>>2]+4>>2],I[i[i[b>>2]+24>>2]](b,j)|0);if((f|0)!=-1){c=i[a+20>>2];c:{if((c|0)!=i[a+24>>2]){i[c>>2]=f;i[a+20>>2]=c+4;break c}g=i[k>>2];h=c-g|0;e=h>>2;d=e+1|0;if(d>>>0>=1073741824){break b}c=h>>1;d=e>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;d:{if(!d){break d}if(d>>>0>=1073741824){break a}c=ho(d<<2)}e=c+(e<<2)|0;i[e>>2]=f;d=c+(d<<2)|0;e=e+4|0;if((h|0)>=1){hp(c,g,h)}i[a+24>>2]=d;i[a+20>>2]=e;i[a+16>>2]=c;if(!g){break c}bp(g)}Gj(i[a+4>>2],f);j=j+1|0;if((j|0)<(I[i[i[b>>2]+20>>2]](b)|0)){continue}}break}a=(f|0)!=-1}else{a=1}return a|0}Ho();x()}za(1956);x()}function li(a){var b=0,c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0;b=i[a+112>>2]-i[a+108>>2]|0;c=(b|0)/12|0;Jb(c,i[i[a+4>>2]+44>>2]);if(b){f=c>>>0>1?c:1;while(1){b=i[a+108>>2]+o(d,12)|0;Jb(i[b+4>>2]-h|0,i[i[a+4>>2]+44>>2]);Jb(i[b+4>>2]-i[b>>2]|0,i[i[a+4>>2]+44>>2]);h=i[b+4>>2];d=d+1|0;if((f|0)!=(d|0)){continue}break}d=0;Vj(i[i[a+4>>2]+44>>2],c,0,0);f=c>>>0>1?c:1;while(1){c=i[i[a+4>>2]+44>>2];b=i[c+20>>2];if((b|0)>0?1:(b|0)>=0?l[c+16>>2]>=1:0){h=j[(i[a+108>>2]+o(d,12)|0)+8|0];c=i[c+12>>2];e=i[c+4>>2];b=e>>>3|0;k=b+i[c>>2]|0;m=j[k|0];e=e&7;n=k,p=yp(-2,e)&m,g[n|0]=p;b=b+i[c>>2]|0;g[b|0]=j[b|0]|(h&1)<>2]=i[c+4>>2]+1}d=d+1|0;if((f|0)!=(d|0)){continue}break}Wj(i[i[a+4>>2]+44>>2])}return 1}function Hd(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){f=i[a+4>>2]-e|0;d=f+b|0;h=f>>2;j=g>>>0>h>>>0?d:c;f=j-b|0;if(f){jp(e,b,f)}if(g>>>0>h>>>0){b=i[a+4>>2];if((c|0)!=(j|0)){while(1){i[b>>2]=i[d>>2];b=b+4|0;d=d+4|0;if((d|0)!=(c|0)){continue}break}}i[a+4>>2]=b;return}i[a+4>>2]=e+f;return}if(e){i[a+4>>2]=e;bp(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}e=d>>1;d=d>>2>>>0<536870911?e>>>0>>0?g:e:1073741823;if(d>>>0>=1073741824){break a}e=d<<2;d=ho(e);i[a>>2]=d;i[a+4>>2]=d;i[a+8>>2]=d+e;if((b|0)!=(c|0)){hp(d,b,f&-4);while(1){d=d+4|0;b=b+4|0;if((c|0)!=(b|0)){continue}break}}i[a+4>>2]=d;return}Ho();x()}function Xh(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=ho(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;d=i[a+4>>2];c=i[a>>2];if((d|0)==(c|0)){break b}while(1){d=d+ -4|0;g=i[d>>2];i[d>>2]=0;b=b+ -4|0;i[b>>2]=g;if((d|0)!=(c|0)){continue}break}i[a+8>>2]=e;d=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=b;if((d|0)==(c|0)){break a}while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){I[i[i[a>>2]+4>>2]](a)}if((d|0)!=(c|0)){continue}break}break a}Ho();x()}za(11708);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){bp(c)}}function Ng(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,m=0;e=i[d>>2];d=i[e>>2];a:{e=i[e+4>>2]-d>>3;j=i[b>>2];if(e>>>0<=j>>>0){break a}h=i[a>>2];if(e>>>0<=h>>>0){break a}g=i[c>>2];m=i[d+(j<<3)>>2];k=d+(h<<3)|0;b:{c:{if(m>>>0>=l[k>>2]){if(e>>>0<=g>>>0){break a}f=0;if(l[d+(g<<3)>>2]>=m>>>0){break b}i[b>>2]=g;i[c>>2]=j;c=i[b>>2];if(e>>>0<=c>>>0){break a}k=e;e=i[a>>2];if(k>>>0<=e>>>0){break a}f=1;if(l[d+(c<<3)>>2]>=l[d+(e<<3)>>2]){break b}i[a>>2]=c;i[b>>2]=e;break c}if(e>>>0<=g>>>0){break a}if(l[d+(g<<3)>>2]>>0){i[a>>2]=g;i[c>>2]=h;return 1}i[a>>2]=j;i[b>>2]=h;a=i[c>>2];if(e>>>0<=a>>>0){break a}f=1;if(l[d+(a<<3)>>2]>=l[k>>2]){break b}i[b>>2]=a;i[c>>2]=h}f=2}return f}Io();x()}function em(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,p=0;d=F-16|0;F=d;h=ym(b);a:{if(!h){i[a>>2]=0;break a}c=i[b+100>>2];k=i[b+96>>2];i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;c=c-k|0;e=(c|0)/12|0;b:{if(!c){break b}if(e>>>0<357913942){g=ho(c);i[d>>2]=g;f=g+o(e,12)|0;i[d+8>>2]=f;b=0;m=ip(g,0,c-((c+ -12>>>0)%12|0)|0);i[d+4>>2]=f;n=e>>>0>1?e:1;p=j[h+84|0];while(1){l=o(b,12);c=l+k|0;e=i[c>>2];c:{if(p){g=c+8|0;c=c+4|0;break c}f=i[h+68>>2];g=f+(i[c+8>>2]<<2)|0;e=i[f+(e<<2)>>2];c=f+(i[c+4>>2]<<2)|0}f=i[c>>2];c=m+l|0;i[c+8>>2]=i[g>>2];i[c+4>>2]=f;i[c>>2]=e;b=b+1|0;if((n|0)!=(b|0)){continue}break}break b}Ho();x()}Jl(a,d);a=i[d>>2];if(!a){break a}i[d+4>>2]=a;bp(a)}F=d+16|0}function Vb(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{e=i[a>>2];f=i[a+4>>2]-e>>2;c=f+1|0;if(c>>>0<1073741824){e=i[a+8>>2]-e|0;g=e>>1;c=e>>2>>>0<536870911?g>>>0>>0?c:g:1073741823;if(c){if(c>>>0>=1073741824){break c}d=ho(c<<2)}e=i[b>>2];i[b>>2]=0;b=(f<<2)+d|0;i[b>>2]=e;e=(c<<2)+d|0;f=b+4|0;d=i[a+4>>2];c=i[a>>2];if((d|0)==(c|0)){break b}while(1){d=d+ -4|0;g=i[d>>2];i[d>>2]=0;b=b+ -4|0;i[b>>2]=g;if((d|0)!=(c|0)){continue}break}i[a+8>>2]=e;d=i[a+4>>2];i[a+4>>2]=f;c=i[a>>2];i[a>>2]=b;if((d|0)==(c|0)){break a}while(1){d=d+ -4|0;a=i[d>>2];i[d>>2]=0;if(a){Wb(a)}if((d|0)!=(c|0)){continue}break}break a}Ho();x()}za(1752);x()}i[a+8>>2]=e;i[a+4>>2]=f;i[a>>2]=b}if(c){bp(c)}}function fn(a){var b=0,c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0;a:{c=i[a+112>>2];d=i[a+116>>2];b:{if(c|d){b=l[a+120>>2]>=c>>>0;c=i[a+124>>2];if((c|0)>(d|0)?1:(c|0)>=(d|0)?b:0){break b}}k=dn(a);if((k|0)>-1){break a}}i[a+104>>2]=0;return-1}m=a;e=i[a+116>>2];b=e;d=i[a+8>>2];c=d;f=i[a+112>>2];c:{if(!(b|f)){break c}c=d;e=(i[a+124>>2]^-1)+b|0;b=i[a+120>>2]^-1;f=b+f|0;if(f>>>0>>0){e=e+1|0}b=f;f=i[a+4>>2];h=d-f|0;n=b>>>0>=h>>>0;h=h>>31;if((e|0)>(h|0)?1:(e|0)>=(h|0)?n:0){break c}c=b+f|0}i[m+104>>2]=c;m=i[a+4>>2];if(d){c=a;e=(d-m|0)+1|0;b=e;d=b+i[a+120>>2]|0;a=i[a+124>>2]+(b>>31)|0;i[c+120>>2]=d;i[c+124>>2]=d>>>0>>0?a+1|0:a}a=m+ -1|0;if(j[a|0]!=(k|0)){g[a|0]=k}return k}function Lg(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;j=Kg(a,b,c,d,f);g=i[f>>2];f=i[g>>2];a:{g=i[g+4>>2]-f>>3;h=i[e>>2];if(g>>>0<=h>>>0){break a}k=i[d>>2];if(g>>>0<=k>>>0){break a}if(l[f+(h<<3)>>2]>2]){i[d>>2]=h;i[e>>2]=k;e=i[d>>2];if(g>>>0<=e>>>0){break a}h=i[c>>2];if(g>>>0<=h>>>0){break a}if(l[f+(e<<3)>>2]>=l[f+(h<<3)>>2]){return j+1|0}i[c>>2]=e;i[d>>2]=h;d=i[c>>2];if(g>>>0<=d>>>0){break a}e=i[b>>2];if(g>>>0<=e>>>0){break a}if(l[f+(d<<3)>>2]>=l[f+(e<<3)>>2]){return j+2|0}i[b>>2]=d;i[c>>2]=e;c=i[b>>2];if(g>>>0<=c>>>0){break a}d=i[a>>2];if(g>>>0<=d>>>0){break a}if(l[f+(c<<3)>>2]>=l[f+(d<<3)>>2]){return j+3|0}i[a>>2]=c;i[b>>2]=d;j=j+4|0}return j}Io();x()}function qn(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0;j=1;i=d&2147483647;m=i;k=c;a:{if(!c&(i|0)==2147418112?a|b:(i|0)==2147418112&c>>>0>0|i>>>0>2147418112){break a}l=h&2147483647;n=l;i=g;if(!g&(l|0)==2147418112?e|f:(l|0)==2147418112&g>>>0>0|l>>>0>2147418112){break a}if(!(a|e|(i|k)|(b|f|(m|n)))){return 0}k=d&h;if((k|0)>0?1:(k|0)>=0?(c&g)>>>0>=0:0){j=-1;if((c|0)==(g|0)&(d|0)==(h|0)?(b|0)==(f|0)&a>>>0>>0|b>>>0>>0:(d|0)<(h|0)?1:(d|0)<=(h|0)?c>>>0>>0:0){break a}return(a^e|c^g)!=0|(b^f|d^h)!=0}j=-1;if((c|0)==(g|0)&(d|0)==(h|0)?(b|0)==(f|0)&a>>>0>e>>>0|b>>>0>f>>>0:(d|0)>(h|0)?1:(d|0)>=(h|0)?c>>>0>g>>>0:0){break a}j=(a^e|c^g)!=0|(b^f|d^h)!=0}return j}function Uh(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=F-16|0;F=e;i[a+4>>2]=0;a:{b:{if(!b){break b}f=i[a+8>>2];d=f<<5;c:{if(d>>>0>=b>>>0){i[a+4>>2]=b;break c}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if((b|0)<=-1){break a}h=e;if(d>>>0<=1073741822){g=b+31&-32;d=f<<6;d=d>>>0>>0?g:d}else{d=2147483647}bd(h,d);d=i[a>>2];i[a>>2]=i[e>>2];i[e>>2]=d;f=i[a+4>>2];i[a+4>>2]=b;i[e+4>>2]=f;f=i[a+8>>2];i[a+8>>2]=i[e+8>>2];i[e+8>>2]=f;if(!d){break c}bp(d)}d=b>>>5|0;f=d<<2;a=i[a>>2];if(j[c|0]){a=ip(a,255,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;i[a>>2]=i[a>>2]|-1>>>32-b;break b}a=ip(a,0,f);b=b&31;if(!b){break b}a=a+(d<<2)|0;i[a>>2]=i[a>>2]&(-1>>>32-b^-1)}F=e+16|0;return}Ho();x()}function ki(a){var b=0,c=0,d=0,e=0,f=0,h=0,k=0,m=0,n=0,p=0,q=0,r=0;k=a+32|0;b=i[a+64>>2];b=i[(I[i[i[b>>2]+40>>2]](b)|0)+56>>2];Vj(k,o((i[b+100>>2]-i[b+96>>2]|0)/12|0,3),0,1);a:{b=i[a+68>>2];d=i[a+72>>2]-b|0;if((d|0)<1){break a}d=(d>>>2|0)+ -1|0;while(1){c=i[a+52>>2];b:{if((c|0)<0?1:(c|0)<=0?l[a+48>>2]<1:0){break b}h=i[(d<<2)+b>>2];if(!(171>>>h&1)){break b}n=i[(h<<2)+12048>>2];b=i[a+44>>2];c=i[b+4>>2];f=0;while(1){e=c>>>3|0;m=e+i[b>>2]|0;p=j[m|0];c=c&7;q=m,r=yp(-2,c)&p,g[q|0]=r;e=e+i[b>>2]|0;g[e|0]=j[e|0]|(h>>>f&1)<>2]+1|0;i[b+4>>2]=c;f=f+1|0;if((n|0)!=(f|0)){continue}break}}d=d+ -1|0;if((d|0)<0){break a}b=i[a+68>>2];continue}}Wj(k)}function Yf(a,b,c){var d=0,e=0,f=0;d=F-16|0;F=d;i[d+12>>2]=b;b=ho(32);i[d>>2]=b;i[d+4>>2]=17;i[d+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[10556];e=j[10552]|j[10553]<<8|(j[10554]<<16|j[10555]<<24);f=j[10548]|j[10549]<<8|(j[10550]<<16|j[10551]<<24);g[b+8|0]=f;g[b+9|0]=f>>>8;g[b+10|0]=f>>>16;g[b+11|0]=f>>>24;g[b+12|0]=e;g[b+13|0]=e>>>8;g[b+14|0]=e>>>16;g[b+15|0]=e>>>24;e=j[10544]|j[10545]<<8|(j[10546]<<16|j[10547]<<24);f=j[10540]|j[10541]<<8|(j[10542]<<16|j[10543]<<24);g[b|0]=f;g[b+1|0]=f>>>8;g[b+2|0]=f>>>16;g[b+3|0]=f>>>24;g[b+4|0]=e;g[b+5|0]=e>>>8;g[b+6|0]=e>>>16;g[b+7|0]=e>>>24;Yj(yf(a+4|0,d+12|0),d,c);if(g[d+11|0]<=-1){bp(i[d>>2])}F=d+16|0}function Df(a,b,c){var d=0,e=0,f=0;d=F-16|0;F=d;i[d+12>>2]=b;b=ho(32);i[d>>2]=b;i[d+4>>2]=17;i[d+8>>2]=-2147483616;g[b+17|0]=0;g[b+16|0]=j[10144];e=j[10140]|j[10141]<<8|(j[10142]<<16|j[10143]<<24);f=j[10136]|j[10137]<<8|(j[10138]<<16|j[10139]<<24);g[b+8|0]=f;g[b+9|0]=f>>>8;g[b+10|0]=f>>>16;g[b+11|0]=f>>>24;g[b+12|0]=e;g[b+13|0]=e>>>8;g[b+14|0]=e>>>16;g[b+15|0]=e>>>24;e=j[10132]|j[10133]<<8|(j[10134]<<16|j[10135]<<24);f=j[10128]|j[10129]<<8|(j[10130]<<16|j[10131]<<24);g[b|0]=f;g[b+1|0]=f>>>8;g[b+2|0]=f>>>16;g[b+3|0]=f>>>24;g[b+4|0]=e;g[b+5|0]=e>>>8;g[b+6|0]=e>>>16;g[b+7|0]=e>>>24;Yj(yf(a+4|0,d+12|0),d,c);if(g[d+11|0]<=-1){bp(i[d>>2])}F=d+16|0}function id(a,b,c,d,e){var f=0,g=0,h=0,j=0;f=i[i[i[d+4>>2]+8>>2]+(c<<2)>>2];if((b|0)==-1){b=ff(c,d)}if((b|0)==-2){i[a>>2]=0;return}a:{b:{if((I[i[i[d>>2]+8>>2]](d)|0)==1){pd(a,d,b,c,e);if(i[a>>2]){break b}i[a>>2]=0}b=ho(44);i[b+4>>2]=f;i[b>>2]=3184;c=i[e+8>>2];d=i[e+12>>2];f=i[e+16>>2];g=i[e+20>>2];h=i[e>>2];j=i[e+4>>2];i[b+40>>2]=0;i[b+32>>2]=0;i[b+36>>2]=0;i[b+24>>2]=f;i[b+28>>2]=g;i[b+16>>2]=c;i[b+20>>2]=d;i[b+8>>2]=h;i[b+12>>2]=j;f=i[e+24>>2];e=i[e+28>>2]-f|0;if(e){d=e>>2;if(d>>>0>=1073741824){break a}c=ho(e);i[b+32>>2]=c;i[b+36>>2]=c;i[b+40>>2]=c+(d<<2);d=b;if((e|0)>=1){c=hp(c,f,e)+e|0}i[d+36>>2]=c}i[b>>2]=5876;i[a>>2]=b}return}Ho();x()}function la(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0;i[b>>2]=1;f=b+8|0;c=i[b+8>>2];d=i[b+12>>2]-c|0;if(d>>>0<=4294967291){Rj(f,d+4|0);c=i[f>>2]}c=c+d|0;d=i[a+4>>2];g[c|0]=d;g[c+1|0]=d>>>8;g[c+2|0]=d>>>16;g[c+3|0]=d>>>24;c=i[a+8>>2];if((c|0)!=i[a+12>>2]){d=0;while(1){h=(d<<2)+c|0;c=i[b+8>>2];e=i[b+12>>2]-c|0;if(e>>>0<=4294967291){Rj(f,e+4|0);c=i[f>>2]}c=c+e|0;e=i[h>>2];g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;d=d+1|0;c=i[a+8>>2];if(d>>>0>2]-c>>2>>>0){continue}break}}c=i[b+12>>2];b=i[b+8>>2];c=c-b|0;if(c>>>0<=4294967291){Rj(f,c+4|0);b=i[f>>2]}b=b+c|0;a=i[a+20>>2];g[b|0]=a;g[b+1|0]=a>>>8;g[b+2|0]=a>>>16;g[b+3|0]=a>>>24}function Kl(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=F-16|0;F=f;i[a+80>>2]=0;i[a+84>>2]=0;c=a+76|0;d=i[c>>2];i[c>>2]=0;if(d){bp(d)}i[a+68>>2]=0;i[a+72>>2]=0;c=a- -64|0;d=i[c>>2];i[c>>2]=0;if(d){bp(d)}c=i[b+4>>2];d=i[b>>2];e=o((c-d|0)/12|0,3);h=i[a>>2];g=i[a+4>>2]-h>>2;a:{if(e>>>0>g>>>0){Ai(a,e-g|0);d=i[b>>2];c=i[b+4>>2];break a}if(e>>>0>=g>>>0){break a}i[a+4>>2]=h+(e<<2)}if((c|0)!=(d|0)){b=(c-d|0)/12|0;g=b>>>0>1?b:1;h=i[a>>2];b=0;while(1){e=o(b,12);c=e+h|0;e=d+e|0;i[c>>2]=i[e>>2];i[c+4>>2]=i[e+4>>2];i[c+8>>2]=i[e+8>>2];b=b+1|0;if((g|0)!=(b|0)){continue}break}}i[f+12>>2]=-1;b=Ll(a,f+12|0);if(b){Ml(a);Nl(a,i[f+12>>2])}F=f+16|0;return b}function Fd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=F-32|0;F=d;h=1;while(1){g=o(c,12)+a|0;e=g- -64|0;Jb(i[e>>2],b);c=c+1|0;if(i[e>>2]){f=mf(d);pf(f);e=i[e>>2]-c|0;if((e|0)>=0){k=g+60|0;while(1){g=0;while(1){j=e+g|0;qf(f,i[i[k>>2]+(j>>>3&536870908)>>2]>>>j&1);g=g+1|0;if((h|0)!=(g|0)){continue}break}e=e-c|0;if((e|0)>=0){continue}break}}sf(f,b);nf(f)}h=h+1|0;if((c|0)!=4){continue}break}i[d>>2]=i[a+12>>2];h=i[b+20>>2];c=h;f=i[b+16>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],d,d+4|0);f=i[b+16>>2];c=i[b+20>>2]}i[d>>2]=i[a+16>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],d,d+4|0)}F=d+32|0;return 1}function ja(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,k=0;d=i[b+88>>2];if(!(!d|i[d>>2]!=1)){c=i[d+8>>2];i[a+4>>2]=j[c|0]|j[c+1|0]<<8|(j[c+2|0]<<16|j[c+3|0]<<24);f=a+8|0;h=i[a+8>>2];e=i[a+12>>2]-h>>2;c=g[b+24|0];a:{if(e>>>0>>0){ka(f,c-e|0);c=j[b+24|0];break a}if(e>>>0<=c>>>0){break a}i[a+12>>2]=h+(c<<2)}h=1;e=i[d+8>>2];b:{if(c<<24>>24<1){b=4;break b}b=c&255;k=b>>>0>1?b:1;f=i[f>>2];c=0;b=4;while(1){d=b+e|0;m[f+(c<<2)>>2]=(Cp(2,j[d|0]|j[d+1|0]<<8|(j[d+2|0]<<16|j[d+3|0]<<24)),Gp());b=b+4|0;c=c+1|0;if((k|0)!=(c|0)){continue}break}}c=a;a=b+e|0;m[c+20>>2]=(Cp(2,j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24)),Gp())}return h|0}function Ce(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=F-32|0;F=d;h=1;while(1){g=o(c,12)+a|0;e=g+48|0;Jb(i[e>>2],b);c=c+1|0;if(i[e>>2]){f=mf(d);pf(f);e=i[e>>2]-c|0;if((e|0)>=0){k=g+44|0;while(1){g=0;while(1){j=e+g|0;qf(f,i[i[k>>2]+(j>>>3&536870908)>>2]>>>j&1);g=g+1|0;if((h|0)!=(g|0)){continue}break}e=e-c|0;if((e|0)>=0){continue}break}}sf(f,b);nf(f)}h=h+1|0;if((c|0)!=4){continue}break}i[d>>2]=i[a+12>>2];h=i[b+20>>2];c=h;f=i[b+16>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],d,d+4|0);f=i[b+16>>2];c=i[b+20>>2]}i[d>>2]=i[a+24>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],d,d+4|0)}F=d+32|0;return 1}function pa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,j=0,k=0,l=p(0),n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0;h=F-16|0;F=h;if(i[c+28>>2]==9){d=i[a+4>>2];e=g[c+24|0];j=e<<2;k=ho((e&1073741823)!=(e|0)?-1:j);n=dk(h+8|0);f=n;l=m[a+20>>2];d=-1<=1){m[f>>2]=l/p(d|0)}f=(d|0)>0;a:{if(!f){break a}o=i[c+80>>2];if(!o){break a}t=i[i[b>>2]>>2]+i[b+48>>2]|0;u=(e|0)<1;d=0;while(1){if(!u){v=i[a+8>>2];l=m[n>>2];b=0;while(1){q=b<<2;m[q+k>>2]=p(l*p(i[(d<<2)+t>>2]))+m[v+q>>2];d=d+1|0;b=b+1|0;if((e|0)!=(b|0)){continue}break}}hp(i[i[c+64>>2]>>2]+r|0,k,j);r=j+r|0;s=s+1|0;if((s|0)!=(o|0)){continue}break}}bp(k)}F=h+16|0;return f|0}function xn(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;f=F-16|0;F=f;Ep(+b);h=Bp(1)|0;g=Bp(0)|0;e=h&2147483647;c=e;e=c+ -1048576|0;d=g;if(d>>>0<0){e=e+1|0}a:{if((e|0)==2145386495|e>>>0<2145386495){j=d<<28;e=(c&15)<<28|d>>>4;c=(c>>>4|0)+1006632960|0;d=e;c=d>>>0<0?c+1|0:c;break a}if((c|0)==2146435072&d>>>0>=0|c>>>0>2146435072){j=g<<28;e=g;c=h;g=c>>>4|0;d=(c&15)<<28|e>>>4;c=g|2147418112;break a}if(!(c|d)){d=0;c=0;break a}e=c;c=(c|0)==1&d>>>0<0|c>>>0<1?r(g)+32|0:r(c);sn(f,d,e,0,0,c+49|0);k=i[f>>2];j=i[f+4>>2];d=i[f+8>>2];c=i[f+12>>2]^65536|15372-c<<16}i[a>>2]=k;i[a+4>>2]=j;i[a+8>>2]=d;i[a+12>>2]=h&-2147483648|c;F=f+16|0}function Vh(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){f=i[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){i[e>>2]=i[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)>=1){f=hp(f,d,b)+b|0}i[a+4>>2]=f;return}i[a+4>>2]=e;return}if(e){i[a+4>>2]=e;bp(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=ho(e);i[a>>2]=c;i[a+4>>2]=c;i[a+8>>2]=c+e;if((f|0)>=1){c=hp(c,b,f)+f|0}i[a+4>>2]=c;return}Ho();x()}function bc(a){var b=0,c=0,d=0,e=0;d=i[a+1176>>2];if(d){b=i[a+1180>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;bp(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+1176>>2]}i[a+1180>>2]=d;bp(c)}d=i[a+1164>>2];if(d){b=i[a+1168>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;bp(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+1164>>2]}i[a+1168>>2]=d;bp(c)}b=i[a+1152>>2];if(b){i[a+1156>>2]=b;bp(b)}b=i[a+1140>>2];if(b){i[a+1144>>2]=b;bp(b)}b=i[a+1128>>2];if(b){i[a+1132>>2]=b;bp(b)}jf(a+1108|0);jf(a+1088|0);jf(a+1068|0);nf(a+1036|0);mc(a+12|0)}function Ti(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;d=(c>>>0)/3|0;Ui(i[a+12>>2],i[(i[i[a+8>>2]+96>>2]+o(d,12)|0)+(c-o(d,3)<<2)>>2]);f=i[a+4>>2];d=i[f+4>>2];a:{b:{c:{if((d|0)!=i[f+8>>2]){i[d>>2]=c;i[f+4>>2]=d+4;break c}h=i[f>>2];j=d-h|0;g=j>>2;e=g+1|0;if(e>>>0>=1073741824){break b}d=j>>1;e=g>>>0<536870911?d>>>0>>0?e:d:1073741823;d=0;d:{if(!e){break d}if(e>>>0>=1073741824){break a}d=ho(e<<2)}g=d+(g<<2)|0;i[g>>2]=c;c=d+(e<<2)|0;e=g+4|0;if((j|0)>=1){hp(d,h,j)}i[f+8>>2]=c;i[f+4>>2]=e;i[f>>2]=d;if(!h){break c}bp(h)}a=i[a+4>>2];i[i[a+12>>2]+(b<<2)>>2]=i[a+24>>2];i[a+24>>2]=i[a+24>>2]+1;return}Ho();x()}za(11708);x()}function Rm(a,b){var c=0,d=0,e=0,f=0,h=0;c=F-208|0;F=c;i[c+204>>2]=b;b=0;ip(c+160|0,0,40);i[c+200>>2]=i[c+204>>2];a:{if((Sm(0,c+200|0,c+80|0,c+160|0)|0)<0){a=-1;break a}b=i[a+76>>2]>=0?1:b;d=i[a>>2];if(g[a+74|0]<=0){i[a>>2]=d&-33}h=d&32;b:{if(i[a+48>>2]){e=Sm(a,c+200|0,c+80|0,c+160|0);break b}i[a+48>>2]=80;i[a+16>>2]=c+80;i[a+28>>2]=c;i[a+20>>2]=c;d=i[a+44>>2];i[a+44>>2]=c;f=Sm(a,c+200|0,c+80|0,c+160|0);e=f;if(!d){break b}I[i[a+36>>2]](a,0,0)|0;i[a+48>>2]=0;i[a+44>>2]=d;i[a+28>>2]=0;i[a+16>>2]=0;d=i[a+20>>2];i[a+20>>2]=0;e=d?f:-1}d=e;e=a;a=i[a>>2];i[e>>2]=a|h;a=a&32?-1:d;if(!b){break a}}F=c+208|0;return a}function vf(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=F-16|0;F=f;g=Xj(a);d=a+16|0;i[d>>2]=0;i[d+4>>2]=0;i[a+12>>2]=d;d=Xj(a+24|0);if((g|0)!=(b+4|0)){xf(a,i[b+4>>2],b+8|0)}if((d|0)!=(b+28|0)){xf(d,i[b+28>>2],b+32|0)}d=0;i[f+12>>2]=0;e=i[c+8>>2];if((i[c+12>>2]-e|0)>=1){g=b+20|0;while(1){b=i[g>>2];a:{if(!b){break a}h=i[i[(d<<2)+e>>2]+56>>2];d=g;while(1){e=i[b+16>>2]<(h|0);d=e?d:b;b=i[(e<<2)+b>>2];if(b){continue}break}if((d|0)==(g|0)|(h|0)>2]){break a}b=yf(a,f+12|0);if((b|0)==(d+20|0)){break a}xf(b,i[d+20>>2],d+24|0)}d=i[f+12>>2]+1|0;i[f+12>>2]=d;e=i[c+8>>2];if((d|0)>2]-e>>2){continue}break}}F=f+16|0}function _e(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,j=0,k=0,l=0,m=0,n=0;f=F-32|0;F=f;d=d-e|0;if((d|0)>=1){j=a+8|0;l=0-e<<2;while(1){k=d<<2;g=k+b|0;h=g+l|0;m=i[h>>2];h=i[h+4>>2];n=i[g+4>>2];i[f+16>>2]=i[g>>2];i[f+20>>2]=n;i[f+8>>2]=m;i[f+12>>2]=h;ze(f+24|0,j,f+16|0,f+8|0);g=c+k|0;i[g>>2]=i[f+24>>2];i[g+4>>2]=i[f+28>>2];d=d-e|0;if((d|0)>0){continue}break}}d=(e&1073741823)!=(e|0)?-1:e<<2;d=ip(ho(d),0,d);e=i[d>>2];g=i[d+4>>2];j=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=j;i[f+8>>2]=e;i[f+12>>2]=g;ze(f+24|0,a+8|0,f+16|0,f+8|0);i[c>>2]=i[f+24>>2];i[c+4>>2]=i[f+28>>2];bp(d);F=f+32|0;return 1}function dc(a,b,c,d,e){var f=0,g=0,h=0,j=0;f=F-32|0;F=f;i[a>>2]=i[d>>2];d=i[c>>2]-i[b>>2]|0;i[a+4>>2]=d;g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){d=a+4|0;ca(e,i[e+4>>2],a,d);g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){ca(e,i[e+4>>2],d,d+4|0)}d=i[d>>2]}if(d){kc(a+12|0);d=a+1068|0;kf(d);g=a+1088|0;kf(g);h=a+1108|0;kf(h);i[f+24>>2]=i[b+8>>2];j=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=j;i[f+8>>2]=i[c+8>>2];b=i[c+4>>2];i[f>>2]=i[c>>2];i[f+4>>2]=b;pc(a,f+16|0,f);c=0;while(1){sf(((c<<5)+a|0)+12|0,e);c=c+1|0;if((c|0)!=32){continue}break}sf(a+1036|0,e);lf(d,e);lf(g,e);lf(h,e)}F=f+32|0;return 1}function ac(a,b,c,d,e){var f=0,g=0,h=0,j=0;f=F-32|0;F=f;i[a>>2]=i[d>>2];d=i[c>>2]-i[b>>2]|0;i[a+4>>2]=d;g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){d=a+4|0;ca(e,i[e+4>>2],a,d);g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){ca(e,i[e+4>>2],d,d+4|0)}d=i[d>>2]}if(d){kc(a+12|0);d=a+1068|0;kf(d);g=a+1088|0;kf(g);h=a+1108|0;kf(h);i[f+24>>2]=i[b+8>>2];j=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=j;i[f+8>>2]=i[c+8>>2];b=i[c+4>>2];i[f>>2]=i[c>>2];i[f+4>>2]=b;lc(a,f+16|0,f);c=0;while(1){sf(((c<<5)+a|0)+12|0,e);c=c+1|0;if((c|0)!=32){continue}break}sf(a+1036|0,e);lf(d,e);lf(g,e);lf(h,e)}F=f+32|0;return 1}function _f(a,b){var c=0,d=0,e=0,f=0;f=F-16|0;F=f;c=ho(16);i[f>>2]=c;i[f+4>>2]=15;i[f+8>>2]=-2147483632;g[c+15|0]=0;d=j[10535]|j[10536]<<8|(j[10537]<<16|j[10538]<<24);e=j[10531]|j[10532]<<8|(j[10533]<<16|j[10534]<<24);g[c+7|0]=e;g[c+8|0]=e>>>8;g[c+9|0]=e>>>16;g[c+10|0]=e>>>24;g[c+11|0]=d;g[c+12|0]=d>>>8;g[c+13|0]=d>>>16;g[c+14|0]=d>>>24;d=j[10528]|j[10529]<<8|(j[10530]<<16|j[10531]<<24);e=j[10524]|j[10525]<<8|(j[10526]<<16|j[10527]<<24);g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;Yj(a+4|0,f,b);if(g[f+11|0]<=-1){bp(i[f>>2])}F=f+16|0}function Gf(a,b){var c=0,d=0,e=0,f=0;f=F-16|0;F=f;c=ho(16);i[f>>2]=c;i[f+4>>2]=15;i[f+8>>2]=-2147483632;g[c+15|0]=0;d=j[10479]|j[10480]<<8|(j[10481]<<16|j[10482]<<24);e=j[10475]|j[10476]<<8|(j[10477]<<16|j[10478]<<24);g[c+7|0]=e;g[c+8|0]=e>>>8;g[c+9|0]=e>>>16;g[c+10|0]=e>>>24;g[c+11|0]=d;g[c+12|0]=d>>>8;g[c+13|0]=d>>>16;g[c+14|0]=d>>>24;d=j[10472]|j[10473]<<8|(j[10474]<<16|j[10475]<<24);e=j[10468]|j[10469]<<8|(j[10470]<<16|j[10471]<<24);g[c|0]=e;g[c+1|0]=e>>>8;g[c+2|0]=e>>>16;g[c+3|0]=e>>>24;g[c+4|0]=d;g[c+5|0]=d>>>8;g[c+6|0]=d>>>16;g[c+7|0]=d>>>24;Yj(a+4|0,f,b);if(g[f+11|0]<=-1){bp(i[f>>2])}F=f+16|0}function Xa(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=i[a+8>>2];d=i[a+4>>2];if(f-d>>2>>>0>=b>>>0){e=a;if(b){a=(b<<2)+d|0;while(1){i[d>>2]=i[c>>2];d=d+4|0;if((a|0)!=(d|0)){continue}break}}else{a=d}i[e+4>>2]=a;return}a:{g=i[a>>2];h=d-g|0;e=h>>2;d=e+b|0;if(d>>>0<1073741824){j=e<<2;f=f-g|0;e=f>>1;f=f>>2>>>0<536870911?e>>>0>>0?d:e:1073741823;e=0;b:{if(!f){break b}if(f>>>0>=1073741824){break a}e=ho(f<<2)}d=j+e|0;b=d+(b<<2)|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}c=e+(f<<2)|0;if((h|0)>=1){hp(e,g,h)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=e;if(g){bp(g)}return}Ho();x()}za(1352);x()}function Gb(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0;f=i[a+8>>2];d=i[a+4>>2];if(f-d>>2>>>0>=b>>>0){e=a;if(b){a=(b<<2)+d|0;while(1){i[d>>2]=i[c>>2];d=d+4|0;if((a|0)!=(d|0)){continue}break}}else{a=d}i[e+4>>2]=a;return}a:{g=i[a>>2];h=d-g|0;e=h>>2;d=e+b|0;if(d>>>0<1073741824){j=e<<2;f=f-g|0;e=f>>1;f=f>>2>>>0<536870911?e>>>0>>0?d:e:1073741823;e=0;b:{if(!f){break b}if(f>>>0>=1073741824){break a}e=ho(f<<2)}d=j+e|0;b=d+(b<<2)|0;c=i[c>>2];while(1){i[d>>2]=c;d=d+4|0;if((b|0)!=(d|0)){continue}break}c=e+(f<<2)|0;if((h|0)>=1){hp(e,g,h)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=e;if(g){bp(g)}return}Ho();x()}za(1520);x()}function Ol(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){d=a;if(b){a=(b<<2)+c|0;while(1){i[c>>2]=i[4128];c=c+4|0;if((a|0)!=(c|0)){continue}break}}else{a=c}i[d+4>>2]=a;return}a:{f=i[a>>2];g=c-f|0;d=g>>2;c=d+b|0;if(c>>>0<1073741824){h=d<<2;e=e-f|0;d=e>>1;e=e>>2>>>0<536870911?d>>>0>>0?c:d:1073741823;d=0;b:{if(!e){break b}if(e>>>0>=1073741824){break a}d=ho(e<<2)}c=h+d|0;b=c+(b<<2)|0;h=i[4128];while(1){i[c>>2]=h;c=c+4|0;if((b|0)!=(c|0)){continue}break}c=d+(e<<2)|0;if((g|0)>=1){hp(d,f,g)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=d;if(f){bp(f)}return}Ho();x()}za(16516);x()}function Ie(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=F-48|0;F=c;i[c+40>>2]=i[a- -64>>2];f=i[b+20>>2];if((f|0)<0?1:(f|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],c+40|0,c+44|0)}f=mf(c+8|0);pf(f);if(i[c+40>>2]>=1){d=1;while(1){g=d;d=i[i[a+60>>2]+(e>>>3&536870908)>>2]>>>e|0;qf(f,(g^d^-1)&1);d=d&1;e=e+1|0;if((e|0)>2]){continue}break}}sf(f,b);i[c+44>>2]=i[a+12>>2];d=i[b+20>>2];e=d;d=i[b+16>>2];if((e|0)<0?1:(e|0)<=0?d>>>0<=0:0){ca(b,i[b+4>>2],c+44|0,c+48|0);d=i[b+16>>2];e=i[b+20>>2]}i[c+44>>2]=i[a+24>>2];if((e|0)<0?1:(e|0)<=0?d>>>0<=0:0){ca(b,i[b+4>>2],c+44|0,c+48|0)}nf(f);F=c+48|0;return 1}function Nd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=F-48|0;F=c;i[c+40>>2]=i[a+80>>2];f=i[b+20>>2];if((f|0)<0?1:(f|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],c+40|0,c+44|0)}f=mf(c+8|0);pf(f);if(i[c+40>>2]>=1){d=1;while(1){g=d;d=i[i[a+76>>2]+(e>>>3&536870908)>>2]>>>e|0;qf(f,(g^d^-1)&1);d=d&1;e=e+1|0;if((e|0)>2]){continue}break}}sf(f,b);i[c+44>>2]=i[a+12>>2];d=i[b+20>>2];e=d;d=i[b+16>>2];if((e|0)<0?1:(e|0)<=0?d>>>0<=0:0){ca(b,i[b+4>>2],c+44|0,c+48|0);d=i[b+16>>2];e=i[b+20>>2]}i[c+44>>2]=i[a+16>>2];if((e|0)<0?1:(e|0)<=0?d>>>0<=0:0){ca(b,i[b+4>>2],c+44|0,c+48|0)}nf(f);F=c+48|0;return 1}function Lf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0;d=ho(40);c=d+16|0;ro(c,b);ro(d+28|0,b+12|0);b=i[a+4>>2];a:{b:{if(b){e=c;c=j[d+27|0];f=c<<24>>24<0;k=f?i[d+16>>2]:e;f=f?i[d+20>>2]:c;while(1){e=j[b+27|0];c=e<<24>>24<0;c:{d:{e:{f:{e=c?i[b+20>>2]:e;g=e>>>0>>0?e:f;if(g){h=b+16|0;c=Km(k,c?i[h>>2]:h,g);if(c){break f}}if(f>>>0>>0){break e}break d}if((c|0)>-1){break d}}c=i[b>>2];if(!c){break b}break c}c=i[b+4>>2];if(c){break c}c=b+4|0;break a}b=c;continue}}b=a+4|0}c=b}i[d+8>>2]=b;i[d>>2]=0;i[d+4>>2]=0;i[c>>2]=d;b=i[i[a>>2]>>2];if(b){i[a>>2]=b;d=i[c>>2]}Kf(i[a+4>>2],d);i[a+8>>2]=i[a+8>>2]+1}function We(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,j=0,k=0,l=0,m=0,n=0;d=F-32|0;F=d;i[a+48>>2]=f;f=i[a+40>>2];g=i[f>>2];a:{f=i[f+4>>2]-g|0;if((f|0)<1){break a}h=f>>2;f=(f>>>2|0)+ -1|0;if(h>>>0>f>>>0){l=a+44|0;m=a+8|0;while(1){he(l,i[(f<<2)+g>>2],b,f);g=i[a+52>>2];h=i[a+56>>2];j=o(e,f)<<2;k=j+b|0;n=i[k+4>>2];i[d+16>>2]=i[k>>2];i[d+20>>2]=n;i[d+8>>2]=g;i[d+12>>2]=h;ze(d+24|0,m,d+16|0,d+8|0);g=c+j|0;i[g>>2]=i[d+24>>2];i[g+4>>2]=i[d+28>>2];f=f+ -1|0;if((f|0)<0){break a}h=i[a+40>>2];g=i[h>>2];if(i[h+4>>2]-g>>2>>>0>f>>>0){continue}break}}Io();x()}F=d+32|0;return 1}function Je(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,j=0,k=0,l=0,m=0,n=0;d=F-32|0;F=d;i[a+48>>2]=f;f=i[a+40>>2];g=i[f>>2];a:{f=i[f+4>>2]-g|0;if((f|0)<1){break a}h=f>>2;f=(f>>>2|0)+ -1|0;if(h>>>0>f>>>0){l=a+44|0;m=a+8|0;while(1){Pd(l,i[(f<<2)+g>>2],b,f);g=i[a+52>>2];h=i[a+56>>2];j=o(e,f)<<2;k=j+b|0;n=i[k+4>>2];i[d+16>>2]=i[k>>2];i[d+20>>2]=n;i[d+8>>2]=g;i[d+12>>2]=h;ze(d+24|0,m,d+16|0,d+8|0);g=c+j|0;i[g>>2]=i[d+24>>2];i[g+4>>2]=i[d+28>>2];f=f+ -1|0;if((f|0)<0){break a}h=i[a+40>>2];g=i[h>>2];if(i[h+4>>2]-g>>2>>>0>f>>>0){continue}break}}Io();x()}F=d+32|0;return 1}function Ac(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;a:{f=i[a+4>>2];b:{if((f|0)!=i[a>>2]){c=f;break b}e=i[a+8>>2];c=i[a+12>>2];if(e>>>0>>0){d=((c-e>>2)+1|0)/2<<2;c=d+e|0;g=e-f|0;if(g){c=c-g|0;jp(c,f,g);e=i[a+8>>2]}i[a+4>>2]=c;i[a+8>>2]=e+d;break b}c=c-f|0;d=c?c>>1:1;if(d>>>0>=1073741824){break a}c=d<<2;h=ho(c);g=h+c|0;c=(d+3&-4)+h|0;j=c;d=e-f|0;if(d){j=c+d|0;e=c;d=f;while(1){i[e>>2]=i[d>>2];d=d+4|0;e=e+4|0;if((j|0)!=(e|0)){continue}break}}i[a+12>>2]=g;i[a+8>>2]=j;i[a+4>>2]=c;i[a>>2]=h;if(!f){break b}bp(f);c=i[a+4>>2]}i[c+ -4>>2]=i[b>>2];i[a+4>>2]=i[a+4>>2]+ -4;return}za(1752);x()}function gc(a){var b=0,c=0,d=0,e=0;d=i[a+152>>2];if(d){b=i[a+156>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;bp(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+152>>2]}i[a+156>>2]=d;bp(c)}d=i[a+140>>2];if(d){b=i[a+144>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;bp(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+140>>2]}i[a+144>>2]=d;bp(c)}b=i[a+128>>2];if(b){i[a+132>>2]=b;bp(b)}b=i[a+116>>2];if(b){i[a+120>>2]=b;bp(b)}b=i[a+104>>2];if(b){i[a+108>>2]=b;bp(b)}jf(a+84|0);jf(a- -64|0);jf(a+44|0);nf(a+12|0)}function Yl(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){d=a;if(b){a=(b<<2)+c|0;while(1){i[c>>2]=1;c=c+4|0;if((a|0)!=(c|0)){continue}break}}else{a=c}i[d+4>>2]=a;return}a:{f=i[a>>2];g=c-f|0;d=g>>2;c=d+b|0;if(c>>>0<1073741824){h=d<<2;e=e-f|0;d=e>>1;e=e>>2>>>0<536870911?d>>>0>>0?c:d:1073741823;d=0;b:{if(!e){break b}if(e>>>0>=1073741824){break a}d=ho(e<<2)}c=h+d|0;b=c+(b<<2)|0;while(1){i[c>>2]=1;c=c+4|0;if((b|0)!=(c|0)){continue}break}c=d+(e<<2)|0;if((g|0)>=1){hp(d,f,g)}i[a+8>>2]=c;i[a+4>>2]=b;i[a>>2]=d;if(f){bp(f)}return}Ho();x()}za(16648);x()}function um(a,b,c){var d=0,e=0,f=0,h=0,k=0,l=0,m=0,n=0;d=F-48|0;F=d;e=uc(a,b);if((e|0)!=(a+4|0)){pm(a,e)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;f=i[c+4>>2];e=g[c+11|0];h=e&255;k=(e|0)<0?f:h;if(k){Qj(d,k);f=i[c+4>>2];l=i[d>>2];h=j[c+11|0];e=h}m=i[c>>2];k=c;c=e<<24>>24<0;hp(l,c?m:k,c?f:h);e=ro(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;c=i[d>>2];f=i[d+4>>2]-c|0;b=0;a:{if(!f){break a}Qj(d+28|0,f);c=i[d>>2];n=i[d+4>>2]-c|0;b=i[d+28>>2]}hp(b,c,n);qm(d+40|0,a,e,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;bp(a)}if(g[d+27|0]<=-1){bp(i[d+16>>2])}a=i[d>>2];if(a){i[d+4>>2]=a;bp(a)}F=d+48|0}function jc(a){var b=0,c=0,d=0,e=0;d=i[a+140>>2];if(d){b=i[a+144>>2];c=d;a:{if((d|0)==(b|0)){break a}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;bp(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+140>>2]}i[a+144>>2]=d;bp(c)}d=i[a+128>>2];if(d){b=i[a+132>>2];c=d;b:{if((d|0)==(b|0)){break b}while(1){c=b+ -12|0;e=i[c>>2];if(e){i[b+ -8>>2]=e;bp(e)}b=c;if((b|0)!=(d|0)){continue}break}c=i[a+128>>2]}i[a+132>>2]=d;bp(c)}b=i[a+116>>2];if(b){i[a+120>>2]=b;bp(b)}b=i[a+104>>2];if(b){i[a+108>>2]=b;bp(b)}b=i[a+92>>2];if(b){i[a+96>>2]=b;bp(b)}jf(a+72|0);jf(a+52|0);jf(a+32|0);jf(a+12|0)}function xc(a,b){var c=0,d=0,e=0,f=0;e=i[a+16>>2];if(b){i[a+12>>2]=i[a+12>>2]|-2147483648>>>e}b=e+1|0;i[a+16>>2]=b;a:{b:{if((b|0)==32){b=i[a+4>>2];c:{if((b|0)!=i[a+8>>2]){i[b>>2]=i[a+12>>2];i[a+4>>2]=b+4;break c}e=i[a>>2];f=b-e|0;d=f>>2;c=d+1|0;if(c>>>0>=1073741824){break b}b=f>>1;c=d>>>0<536870911?b>>>0>>0?c:b:1073741823;b=0;d:{if(!c){break d}if(c>>>0>=1073741824){break a}b=ho(c<<2)}d=b+(d<<2)|0;i[d>>2]=i[a+12>>2];c=b+(c<<2)|0;d=d+4|0;if((f|0)>=1){hp(b,e,f)}i[a+8>>2]=c;i[a+4>>2]=d;i[a>>2]=b;if(!e){break c}bp(e)}i[a+12>>2]=0;i[a+16>>2]=0}return}Ho();x()}za(1752);x()}function Of(a,b,c){var d=0,e=0,f=0,g=0,h=0,k=0,l=0;f=a+4|0;a:{a=i[a+4>>2];if(a){e=j[c+11|0];d=e<<24>>24<0;k=d?i[c>>2]:c;e=d?i[c+4>>2]:e;while(1){c=j[a+27|0];d=c<<24>>24<0;c=d?i[a+20>>2]:c;l=c>>>0>>0;b:{c:{d:{e:{f:{h=l?c:e;g:{if(h){g=a+16|0;d=d?i[g>>2]:g;g=Km(k,d,h);if(!g){if(e>>>0>>0){break g}break f}if((g|0)>-1){break f}break g}if(e>>>0>=c>>>0){break e}}c=i[a>>2];if(c){break b}i[b>>2]=a;return a}c=Km(d,k,h);if(c){break d}}if(l){break c}break a}if((c|0)>-1){break a}}f=a+4|0;c=i[a+4>>2];if(!c){break a}a=f}f=a;a=c;continue}}i[b>>2]=f;return f}i[b>>2]=a;return f}function zc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;a:{e=i[a+8>>2];b:{if((e|0)!=i[a+12>>2]){break b}f=i[a+4>>2];g=i[a>>2];if(f>>>0>g>>>0){g=((f-g>>2)+1|0)/-2<<2;c=g+f|0;d=e-f|0;if(d){jp(c,f,d);f=i[a+4>>2]}e=c+d|0;i[a+8>>2]=e;i[a+4>>2]=f+g;break b}c=e-g|0;c=c?c>>1:1;if(c>>>0>=1073741824){break a}d=c<<2;h=ho(d);j=h+d|0;d=e-f|0;c=(c&-4)+h|0;e=c;if(d){e=c+d|0;d=c;while(1){i[d>>2]=i[f>>2];f=f+4|0;d=d+4|0;if((d|0)!=(e|0)){continue}break}}i[a+12>>2]=j;i[a+8>>2]=e;i[a+4>>2]=c;i[a>>2]=h;if(!g){break b}bp(g);e=i[a+8>>2]}i[e>>2]=i[b>>2];i[a+8>>2]=i[a+8>>2]+4;return}za(1752);x()}function Fa(a,b){var c=0;c=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=c;c=i[b+60>>2];i[a+56>>2]=i[b+56>>2];i[a+60>>2]=c;c=i[b+52>>2];i[a+48>>2]=i[b+48>>2];i[a+52>>2]=c;c=i[b+44>>2];i[a+40>>2]=i[b+40>>2];i[a+44>>2]=c;c=i[b+36>>2];i[a+32>>2]=i[b+32>>2];i[a+36>>2]=c;c=i[b+28>>2];i[a+24>>2]=i[b+24>>2];i[a+28>>2]=c;c=i[b+20>>2];i[a+16>>2]=i[b+16>>2];i[a+20>>2]=c;c=i[b+12>>2];i[a+8>>2]=i[b+8>>2];i[a+12>>2]=c;i[a+88>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;g[a+77|0]=0;g[a+78|0]=0;g[a+79|0]=0;g[a+80|0]=0;g[a+81|0]=0;g[a+82|0]=0;g[a+83|0]=0;g[a+84|0]=0;return a}function hm(a,b){var c=0,d=0,e=0,f=0,h=0,k=0;d=F-16|0;F=d;a:{b:{c=j[b+11|0];e=c<<24>>24;c:{if((e|0)<=-1){c=i[b+4>>2];if(c>>>0>255){break a}if(!c){break c}break b}if(e){break b}}g[d+15|0]=0;b=i[a+20>>2];if((b|0)<0?1:(b|0)<=0?l[a+16>>2]<=0:0){ca(a,i[a+4>>2],d+15|0,d+16|0)}h=1;break a}g[d+14|0]=c;h=i[a+20>>2];c=h;f=i[a+16>>2];if((c|0)<0?1:(c|0)<=0?f>>>0<=0:0){ca(a,i[a+4>>2],d+14|0,d+15|0);f=i[a+16>>2];c=i[a+20>>2];e=j[b+11|0]}h=1;if((c|0)>0?1:(c|0)>=0?f>>>0>0:0){break a}f=a;k=i[a+4>>2];a=e<<24>>24<0;c=a?i[b>>2]:b;ca(f,k,c,c+(a?i[b+4>>2]:e&255)|0)}F=d+16|0;return h}function tm(a,b,c){var d=0,e=0,f=0,h=0;d=F-48|0;F=d;f=uc(a,b);if((f|0)!=(a+4|0)){pm(a,f)}e=ho(8);i[d>>2]=e;f=e+8|0;i[d+8>>2]=f;i[d+4>>2]=f;f=i[c+4>>2];c=i[c>>2];g[e|0]=c;g[e+1|0]=c>>>8;g[e+2|0]=c>>>16;g[e+3|0]=c>>>24;g[e+4|0]=f;g[e+5|0]=f>>>8;g[e+6|0]=f>>>16;g[e+7|0]=f>>>24;e=0;f=ro(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;b=i[d>>2];c=i[d+4>>2]-b|0;h=0;a:{if(!c){break a}Qj(d+28|0,c);b=i[d>>2];e=i[d+4>>2]-b|0;h=i[d+28>>2]}hp(h,b,e);qm(d+40|0,a,f,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;bp(a)}if(g[d+27|0]<=-1){bp(i[d+16>>2])}a=i[d>>2];if(a){bp(a)}F=d+48|0}function uc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;g=a+4|0;a=i[a+4>>2];a:{b:{if(!a){break b}d=j[b+11|0];c=d<<24>>24<0;k=c?i[b>>2]:b;e=c?i[b+4>>2]:d;c=g;while(1){b=j[a+27|0];l=b<<24>>24<0;h=l?i[a+20>>2]:b;f=e>>>0>>0;d=f?e:h;c:{if(d){b=a+16|0;b=Km(l?i[b>>2]:b,k,d);if(b){break c}}b=h>>>0>>0?-1:f}c=(b|0)<0?c:a;a=i[(b>>>29&4)+a>>2];if(a){continue}break}if((c|0)==(g|0)){break b}a=j[c+27|0];f=a<<24>>24<0;d:{d=f?i[c+20>>2]:a;b=d>>>0>>0?d:e;if(b){a=c+16|0;a=Km(k,f?i[a>>2]:a,b);if(a){break d}}if(e>>>0>>0){break b}break a}if((a|0)>-1){break a}}c=g}return c}function Cl(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=F-16|0;F=e;a:{if(!a){break a}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;h=a+96|0;g=i[a+96>>2];d=(i[a+100>>2]-g|0)/12|0;b:{if(d>>>0>>0){Dl(h,b-d|0,e);break b}if(d>>>0>b>>>0){i[a+100>>2]=g+o(b,12)}if(!b){break a}}g=i[h>>2];d=0;while(1){j=o(d,12);f=j+c|0;k=i[f>>2];l=i[f+8>>2];m=i[f+4>>2];f=(i[a+100>>2]-g|0)/12|0;c:{if(f>>>0>d>>>0){d=d+1|0;break c}i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;d=d+1|0;Dl(h,d-f|0,e);g=i[h>>2]}f=g+j|0;i[f+8>>2]=l;i[f+4>>2]=m;i[f>>2]=k;if((b|0)!=(d|0)){continue}break}}F=e+16|0;return(a|0)!=0}function qm(a,b,c,d){var e=0,f=0,h=0,j=0,k=0,l=0,m=0;h=F-16|0;F=h;l=a;j=Of(b,h+12|0,c);c=i[j>>2];if(c){b=0}else{c=ho(40);e=d+8|0;i[c+24>>2]=i[e>>2];f=i[d+4>>2];i[c+16>>2]=i[d>>2];i[c+20>>2]=f;i[d>>2]=0;i[d+4>>2]=0;i[e>>2]=0;i[c+36>>2]=0;i[c+28>>2]=0;i[c+32>>2]=0;f=i[d+12>>2];k=i[d+16>>2]-f|0;e=0;a:{if(!k){break a}e=c+28|0;Qj(e,k);f=i[d+12>>2];m=i[d+16>>2]-f|0;e=i[e>>2]}hp(e,f,m);i[c+8>>2]=i[h+12>>2];i[c>>2]=0;i[c+4>>2]=0;i[j>>2]=c;e=i[i[b>>2]>>2];d=c;b:{if(!e){break b}i[b>>2]=e;d=i[j>>2]}Kf(i[b+4>>2],d);i[b+8>>2]=i[b+8>>2]+1;b=1}g[l+4|0]=b;i[a>>2]=c;F=h+16|0}function ra(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=i[a+8>>2];e=i[a>>2];if(g>>>0<=d-e>>2>>>0){d=i[a+4>>2]-e|0;f=d>>2;d=g>>>0>f>>>0?b+d|0:c;h=d-b|0;if(h){jp(e,b,h)}if(g>>>0>f>>>0){b=i[a+4>>2];c=c-d|0;if((c|0)>=1){b=hp(b,d,c)+c|0}i[a+4>>2]=b;return}i[a+4>>2]=e+h;return}if(e){i[a+4>>2]=e;bp(e);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;d=0}a:{if(g>>>0>=1073741824){break a}c=d>>1;c=d>>2>>>0<536870911?c>>>0>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=ho(e);i[a>>2]=c;i[a+4>>2]=c;i[a+8>>2]=c+e;if((f|0)>=1){c=hp(c,b,f)+f|0}i[a+4>>2]=c;return}Ho();x()}function Rl(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=-1;a:{if((b|0)==-1){break a}e=i[i[a+24>>2]+(b<<2)>>2];if((e|0)==-1){return 0}f=0;c=1;b=e;while(1){f=f+1|0;h=c;b:{if(c&255){c=0;d=b+1|0;b=(d>>>0)%3|0?d:b+ -2|0;if((b|0)==-1){b=e;break b}d=i[i[a+12>>2]+(b<<2)>>2];if((d|0)==-1){b=e;break b}b=e;g=d+1|0;d=(g>>>0)%3|0?g:d+ -2|0;if((d|0)==-1){break b}c=h;b=d;if((e|0)!=(b|0)){break b}break a}b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)==-1){break a}c=i[i[a+12>>2]+(b<<2)>>2];if((c|0)==-1){break a}if((c>>>0)%3|0){b=c+ -1|0}else{b=c+2|0}c=0}if((b|0)!=-1){continue}break}}return f}function Dm(a,b){var c=0,d=0,e=0,f=0;a:{if((b|0)<0){break a}c=i[a+24>>2];d=i[a+28>>2];if((c|0)==(d|0)){break a}while(1){f=c+4|0;e=i[c>>2];if(i[e+24>>2]==(b|0)){b:{if((d|0)!=(f|0)){while(1){b=i[f>>2];i[f>>2]=0;i[c>>2]=b;if(e){yk(e+12|0,i[e+16>>2]);zk(e,i[e+4>>2]);bp(e)}c=c+4|0;f=f+4|0;if((d|0)!=(f|0)){e=i[c>>2];continue}break}d=i[a+28>>2];if((d|0)==(c|0)){break b}}while(1){d=d+ -4|0;b=i[d>>2];i[d>>2]=0;if(b){yk(b+12|0,i[b+16>>2]);zk(b,i[b+4>>2]);bp(b)}if((c|0)!=(d|0)){continue}break}}i[a+28>>2]=c;return}c=f;if((d|0)!=(c|0)){continue}break}}}function ul(a,b,c,d){var e=0,f=0,h=0,j=0;e=F-32|0;F=e;a:{b:{c:{if(!a){break c}f=mp(b);if(f>>>0>=4294967280){break b}d:{e:{if(f>>>0>=11){j=f+16&-16;h=ho(j);i[e+24>>2]=j|-2147483648;i[e+16>>2]=h;i[e+20>>2]=f;break e}g[e+27|0]=f;h=e+16|0;if(!f){break d}}hp(h,b,f)}g[f+h|0]=0;i[e+8>>2]=0;i[e>>2]=0;i[e+4>>2]=0;if(d){if(d>>>0>=1073741824){break a}f=d<<2;b=ho(f);i[e>>2]=b;d=b+(d<<2)|0;i[e+8>>2]=d;hp(b,c,f);i[e+4>>2]=d}rm(a,e+16|0,e);b=i[e>>2];if(b){i[e+4>>2]=b;bp(b)}if(g[e+27|0]>-1){break c}bp(i[e+16>>2])}F=e+32|0;return(a|0)!=0}qo();x()}Ho();x()}function fd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=F-16|0;F=d;a:{if(!Cc(a,b,c)){break a}if(f=(I[i[i[a>>2]+32>>2]](a)|0)==1,g=0,h=i[i[a+8>>2]+28>>2]+ -1>>>0>5,h?f:g){break a}g=d+8|0,h=a,j=gf(c,i[b+48>>2]),f=i[i[a>>2]+48>>2],I[f](g|0,h|0,j|0);b=i[d+8>>2];i[d+8>>2]=0;c=i[a+36>>2];i[a+36>>2]=b;e=1;if(c){I[i[i[c>>2]+4>>2]](c);b=i[d+8>>2];i[d+8>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[a+36>>2]}if(!b){break a}if(I[i[i[a>>2]+36>>2]](a,b)|0){break a}b=i[a+36>>2];i[a+36>>2]=0;if(!b){break a}I[i[i[b>>2]+4>>2]](b)}F=d+16|0;return e|0}function sc(a){a=a|0;var b=0,c=0,d=0;i[a>>2]=1596;b=i[a+60>>2];if(b){c=i[a- -64>>2];d=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;d=i[c>>2];i[c>>2]=0;if(d){Wb(d)}if((b|0)!=(c|0)){continue}break}d=i[a+60>>2]}i[a+64>>2]=b;bp(d)}b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}b=i[a+36>>2];if(b){c=i[a+40>>2];d=b;b:{if((b|0)==(c|0)){break b}while(1){c=c+ -24|0;I[i[i[c>>2]>>2]](c)|0;if((b|0)!=(c|0)){continue}break}d=i[a+36>>2]}i[a+40>>2]=b;bp(d)}i[a>>2]=1432;b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;bp(b)}return a|0}function Fc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;d=i[a+8>>2];e=i[d+40>>2];h=ho((e|0)>-1?e:-1);a:{g=i[b>>2];k=i[b+4>>2];if((g|0)==(k|0)){break a}o=e+h|0;while(1){f=i[(m<<2)+g>>2];e=h;p=i[i[d>>2]>>2];q=i[d+48>>2];n=i[d+40>>2];r=n;s=i[d+44>>2];if(!j[d+84|0]){f=i[i[d+68>>2]+(f<<2)>>2]}d=e;e=up(r,s,f,0)+q|0;f=hp(d,e+p|0,n);e=i[c+20>>2];if((e|0)<0?1:(e|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],f,o);g=i[b>>2];k=i[b+4>>2]}m=m+1|0;if(m>>>0>=k-g>>2>>>0){break a}d=i[a+8>>2];continue}}bp(h);return 1}function fc(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;f=F-32|0;F=f;i[a>>2]=i[d>>2];d=i[c>>2]-i[b>>2]|0;i[a+4>>2]=d;g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){d=a+4|0;ca(e,i[e+4>>2],a,d);g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){ca(e,i[e+4>>2],d,d+4|0)}d=i[d>>2]}if(d){d=a+12|0;pf(d);g=a+44|0;kf(g);h=a- -64|0;kf(h);j=a+84|0;kf(j);i[f+24>>2]=i[b+8>>2];k=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=k;i[f+8>>2]=i[c+8>>2];b=i[c+4>>2];i[f>>2]=i[c>>2];i[f+4>>2]=b;qc(a,f+16|0,f);sf(d,e);lf(g,e);lf(h,e);lf(j,e)}F=f+32|0;return 1}function ic(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0;f=F-32|0;F=f;i[a>>2]=i[d>>2];d=i[c>>2]-i[b>>2]|0;i[a+4>>2]=d;g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){d=a+4|0;ca(e,i[e+4>>2],a,d);g=i[e+20>>2];if((g|0)<0?1:(g|0)<=0?l[e+16>>2]<=0:0){ca(e,i[e+4>>2],d,d+4|0)}d=i[d>>2]}if(d){d=a+12|0;kf(d);g=a+32|0;kf(g);h=a+52|0;kf(h);j=a+72|0;kf(j);i[f+24>>2]=i[b+8>>2];k=i[b+4>>2];i[f+16>>2]=i[b>>2];i[f+20>>2]=k;i[f+8>>2]=i[c+8>>2];b=i[c+4>>2];i[f>>2]=i[c>>2];i[f+4>>2]=b;rc(a,f+16|0,f);lf(d,e);lf(g,e);lf(h,e);lf(j,e)}F=f+32|0;return 1}function So(a,b,c){var d=0,e=0,f=0;d=F+ -64|0;F=d;f=i[a>>2];e=i[f+ -4>>2];f=i[f+ -8>>2];i[d+20>>2]=0;i[d+16>>2]=b;i[d+12>>2]=a;i[d+8>>2]=c;b=0;ip(d+24|0,0,39);a=a+f|0;a:{if(Qo(e,c,0)){i[d+56>>2]=1;I[i[i[e>>2]+20>>2]](e,d+8|0,a,a,1,0);b=i[d+32>>2]==1?a:0;break a}I[i[i[e>>2]+24>>2]](e,d+8|0,a,1,0);b:{switch(i[d+44>>2]){case 0:b=i[d+48>>2]==1?i[d+36>>2]==1?i[d+40>>2]==1?i[d+28>>2]:0:0:0;break a;case 1:break b;default:break a}}if(i[d+32>>2]!=1){if(i[d+48>>2]|i[d+36>>2]!=1|i[d+40>>2]!=1){break a}}b=i[d+24>>2]}F=d- -64|0;return b}function ve(a,b,c,d){var e=0,f=0;e=ho(128);i[e+4>>2]=b;b=i[c+4>>2];i[e+8>>2]=i[c>>2];i[e+12>>2]=b;b=i[c+12>>2];i[e+16>>2]=i[c+8>>2];i[e+20>>2]=b;i[e+24>>2]=i[c+16>>2];b=i[d+4>>2];i[e+28>>2]=i[d>>2];i[e+32>>2]=b;b=d+8|0;c=b;f=i[c+4>>2];i[e+36>>2]=i[c>>2];i[e+40>>2]=f;i[e+48>>2]=0;i[e+52>>2]=0;i[e>>2]=8916;c=i[d+4>>2];i[e+56>>2]=i[d>>2];i[e+60>>2]=c;d=i[b+4>>2];c=e- -64|0;i[c>>2]=i[b>>2];i[c+4>>2]=d;i[e+88>>2]=1065353216;i[e+92>>2]=-1;i[e+80>>2]=-1;i[e+84>>2]=-1;i[e+72>>2]=1;i[e+76>>2]=-1;i[e+44>>2]=9160;mf(e+96|0);i[a>>2]=e}function ue(a,b,c,d){var e=0,f=0;e=ho(128);i[e+4>>2]=b;b=i[c+4>>2];i[e+8>>2]=i[c>>2];i[e+12>>2]=b;b=i[c+12>>2];i[e+16>>2]=i[c+8>>2];i[e+20>>2]=b;i[e+24>>2]=i[c+16>>2];b=i[d+4>>2];i[e+28>>2]=i[d>>2];i[e+32>>2]=b;b=d+8|0;c=b;f=i[c+4>>2];i[e+36>>2]=i[c>>2];i[e+40>>2]=f;i[e+48>>2]=0;i[e+52>>2]=0;i[e>>2]=7292;c=i[d+4>>2];i[e+56>>2]=i[d>>2];i[e+60>>2]=c;d=i[b+4>>2];c=e- -64|0;i[c>>2]=i[b>>2];i[c+4>>2]=d;i[e+88>>2]=1065353216;i[e+92>>2]=-1;i[e+80>>2]=-1;i[e+84>>2]=-1;i[e+72>>2]=1;i[e+76>>2]=-1;i[e+44>>2]=7552;mf(e+96|0);i[a>>2]=e}function yl(a,b,c,d,e,f){var g=0,h=0,k=0,l=0,m=0;g=F-16|0;F=g;a:{if(!a){b=-1;break a}h=ho(96);Ga(Ea(h),b,d<<24>>24,f,c);i[g>>2]=h;i[g+8>>2]=0;h=zm(a,g);b=i[g>>2];i[g>>2]=0;if(b){Wb(b)}if(c){k=i[i[a+8>>2]+(h<<2)>>2];b=0;while(1){f=b;l=i[i[k>>2]>>2];if(!j[k+84|0]){f=i[i[k+68>>2]+(b<<2)>>2]}m=f;f=i[k+40>>2];hp(o(m,f)+l|0,(o(b,d)<<1)+e|0,f);b=b+1|0;if((c|0)!=(b|0)){continue}break}}d=i[a+80>>2];b:{c:{if(!d){i[a+80>>2]=c;break c}b=-1;if((c|0)!=(d|0)){break b}}b=h}a=i[g+8>>2];i[g+8>>2]=0;if(!a){break a}Wb(a)}F=g+16|0;return b}function wl(a,b,c,d,e,f){var g=0,h=0,k=0,l=0,m=0;g=F-16|0;F=g;a:{if(!a){b=-1;break a}h=ho(96);Ga(Ea(h),b,d<<24>>24,f,c);i[g>>2]=h;i[g+8>>2]=0;h=zm(a,g);b=i[g>>2];i[g>>2]=0;if(b){Wb(b)}if(c){k=i[i[a+8>>2]+(h<<2)>>2];b=0;while(1){f=b;l=i[i[k>>2]>>2];if(!j[k+84|0]){f=i[i[k+68>>2]+(b<<2)>>2]}m=f;f=i[k+40>>2];hp(o(m,f)+l|0,(o(b,d)<<2)+e|0,f);b=b+1|0;if((c|0)!=(b|0)){continue}break}}d=i[a+80>>2];b:{c:{if(!d){i[a+80>>2]=c;break c}b=-1;if((c|0)!=(d|0)){break b}}b=h}a=i[g+8>>2];i[g+8>>2]=0;if(!a){break a}Wb(a)}F=g+16|0;return b}function Kg(a,b,c,d,e){var f=0,g=0,h=0,j=0;h=Ng(a,b,c,e);f=i[e>>2];e=i[f>>2];a:{f=i[f+4>>2]-e>>3;g=i[d>>2];if(f>>>0<=g>>>0){break a}j=i[c>>2];if(f>>>0<=j>>>0){break a}if(l[e+(g<<3)>>2]>2]){i[c>>2]=g;i[d>>2]=j;d=i[c>>2];if(f>>>0<=d>>>0){break a}g=i[b>>2];if(f>>>0<=g>>>0){break a}if(l[e+(d<<3)>>2]>=l[e+(g<<3)>>2]){return h+1|0}i[b>>2]=d;i[c>>2]=g;c=i[b>>2];if(f>>>0<=c>>>0){break a}d=i[a>>2];if(f>>>0<=d>>>0){break a}if(l[e+(c<<3)>>2]>=l[e+(d<<3)>>2]){return h+2|0}i[a>>2]=c;i[b>>2]=d;h=h+3|0}return h}Io();x()}function xl(a,b,c,d,e,f){var g=0,h=0,k=0,l=0,m=0;g=F-16|0;F=g;a:{if(!a){b=-1;break a}h=ho(96);Ga(Ea(h),b,d<<24>>24,f,c);i[g>>2]=h;i[g+8>>2]=0;h=zm(a,g);b=i[g>>2];i[g>>2]=0;if(b){Wb(b)}if(c){k=i[i[a+8>>2]+(h<<2)>>2];b=0;while(1){f=b;l=i[i[k>>2]>>2];if(!j[k+84|0]){f=i[i[k+68>>2]+(b<<2)>>2]}m=f;f=i[k+40>>2];hp(o(m,f)+l|0,o(b,d)+e|0,f);b=b+1|0;if((c|0)!=(b|0)){continue}break}}d=i[a+80>>2];b:{c:{if(!d){i[a+80>>2]=c;break c}b=-1;if((c|0)!=(d|0)){break b}}b=h}a=i[g+8>>2];i[g+8>>2]=0;if(!a){break a}Wb(a)}F=g+16|0;return b}function pd(a,b,c,d,e){var f=0,g=0,h=0,j=0;f=F-32|0;F=f;h=i[i[i[b+4>>2]+8>>2]+(d<<2)>>2];a:{b:{if((I[i[i[b>>2]+8>>2]](b)|0)!=1|c+ -1>>>0>5){break b}j=I[i[i[b>>2]+52>>2]](b)|0;g=I[i[i[b>>2]+60>>2]](b,d)|0;if(!(g?j:0)){i[a>>2]=0;break a}d=I[i[i[b>>2]+56>>2]](b,d)|0;if(d){b=i[b+56>>2];i[f+20>>2]=d;i[f+16>>2]=b;i[f+28>>2]=g;i[f+24>>2]=g+12;qd(a,c,h,e,f+16|0);if(!i[a>>2]){break b}break a}b=i[b+56>>2];i[f+20>>2]=j;i[f+16>>2]=b;i[f+28>>2]=g;i[f+24>>2]=g+12;rd(a,c,h,e,f+16|0);if(i[a>>2]){break a}}i[a>>2]=0}F=f+32|0}function Yo(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(Qo(a,i[b+8>>2],e)){Xo(b,c,d);return}a:{if(Qo(a,i[b>>2],e)){if(!(i[b+20>>2]!=(c|0)?i[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}i[b+32>>2]=1;return}i[b+32>>2]=d;b:{if(i[b+44>>2]==4){break b}h[b+52>>1]=0;a=i[a+8>>2];I[i[i[a>>2]+20>>2]](a,b,c,c,1,e);if(j[b+53|0]){i[b+44>>2]=3;if(!j[b+52|0]){break b}break a}i[b+44>>2]=4}i[b+20>>2]=c;i[b+40>>2]=i[b+40>>2]+1;if(i[b+36>>2]!=1|i[b+24>>2]!=2){break a}g[b+54|0]=1;return}a=i[a+8>>2];I[i[i[a>>2]+24>>2]](a,b,c,d,e)}}function vn(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;a:{if(f&64){c=f+ -64|0;b=c&31;if(32<=(c&63)>>>0){c=0;b=e>>>b|0}else{c=e>>>b|0;b=((1<>>b}d=0;e=0;break a}if(!f){break a}h=e;j=d;k=64-f|0;g=k&31;if(32<=(k&63)>>>0){h=j<>>32-g|h<>>0){g=0;b=c>>>b|0}else{g=c>>>b|0;b=((1<>>b}b=k|b;c=g|h;g=d;d=f&31;if(32<=(f&63)>>>0){h=0;d=e>>>d|0}else{h=e>>>d|0;d=((1<>>d}e=h}i[a>>2]=b;i[a+4>>2]=c;i[a+8>>2]=d;i[a+12>>2]=e}function rm(a,b,c){var d=0,e=0,f=0,h=0;d=F-48|0;F=d;e=uc(a,b);if((e|0)!=(a+4|0)){pm(a,e)}i[d+8>>2]=0;i[d>>2]=0;i[d+4>>2]=0;e=i[c>>2];f=i[c+4>>2]-e|0;if(f){Qj(d,f);e=i[c>>2];c=i[d>>2]}else{c=0}hp(c,e,f);f=ro(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;e=0;b=i[d>>2];c=i[d+4>>2]-b|0;h=0;a:{if(!c){break a}Qj(d+28|0,c);e=i[d+28>>2];b=i[d>>2];h=i[d+4>>2]-b|0}c=h;hp(e,b,c);qm(d+40|0,a,f,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;bp(a)}if(g[d+27|0]<=-1){bp(i[d+16>>2])}a=i[d>>2];if(a){i[d+4>>2]=a;bp(a)}F=d+48|0}function rn(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0;h=-1;f=d&2147483647;i=f;g=c;a:{if(!c&(f|0)==2147418112?a|b:(f|0)==2147418112&c>>>0>0|f>>>0>2147418112){break a}f=e&2147483647;j=f;if((f|0)==2147418112?0:f>>>0>2147418112){break a}if(!(a|g|(i|j|b))){return 0}g=d&e;if((g|0)>0?1:(g|0)>=0){if(!c&(d|0)==(e|0)?!b&a>>>0<0|b>>>0<0:(d|0)<(e|0)?1:(d|0)<=(e|0)?c>>>0<0:0){break a}return(a|c)!=0|(d^e|b)!=0}if(!c&(d|0)==(e|0)?!b&a>>>0>0|b>>>0>0:(d|0)>(e|0)?1:(d|0)>=(e|0)?c>>>0>0:0){break a}h=(a|c)!=0|(d^e|b)!=0}return h}function bd(a,b){var c=0,d=0;c=F-32|0;F=c;a:{b:{if(i[a+8>>2]<<5>>>0>=b>>>0){break b}i[c+24>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;if((b|0)<=-1){break a}b=(b+ -1>>>5|0)+1|0;d=ho(b<<2);i[c+24>>2]=b;i[c+20>>2]=0;i[c+16>>2]=d;b=i[a>>2];i[c+12>>2]=0;i[c+8>>2]=b;d=i[a+4>>2];i[c+4>>2]=d&31;i[c>>2]=b+(d>>>3&536870908);cd(c+16|0,c+8|0,c);b=i[a>>2];i[a>>2]=i[c+16>>2];i[c+16>>2]=b;d=i[a+4>>2];i[a+4>>2]=i[c+20>>2];i[c+20>>2]=d;d=i[a+8>>2];i[a+8>>2]=i[c+24>>2];i[c+24>>2]=d;if(!b){break b}bp(b)}F=c+32|0;return}Ho();x()}function om(a,b,c){var d=0,e=0,f=0,h=0;d=F-48|0;F=d;e=uc(a,b);if((e|0)!=(a+4|0)){pm(a,e)}e=ho(4);i[d>>2]=e;f=e+4|0;i[d+8>>2]=f;i[d+4>>2]=f;c=i[c>>2];g[e|0]=c;g[e+1|0]=c>>>8;g[e+2|0]=c>>>16;g[e+3|0]=c>>>24;f=ro(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;e=0;b=i[d>>2];c=i[d+4>>2]-b|0;h=0;a:{if(!c){break a}Qj(d+28|0,c);e=i[d+28>>2];b=i[d>>2];h=i[d+4>>2]-b|0}c=h;hp(e,b,c);qm(d+40|0,a,f,d+16|0);a=i[d+28>>2];if(a){i[d+32>>2]=a;bp(a)}if(g[d+27|0]<=-1){bp(i[d+16>>2])}a=i[d>>2];if(a){bp(a)}F=d+48|0}function fm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;c=F-16|0;F=c;d=i[b+100>>2];h=i[b+96>>2];i[c+8>>2]=0;i[c>>2]=0;i[c+4>>2]=0;d=d-h|0;e=(d|0)/12|0;a:{if(d){if(e>>>0>=357913942){break a}f=ho(d);i[c>>2]=f;g=f+o(e,12)|0;i[c+8>>2]=g;b=0;f=ip(f,0,d-((d+ -12>>>0)%12|0)|0);i[c+4>>2]=g;g=e>>>0>1?e:1;while(1){e=o(b,12);d=e+h|0;j=i[d+4>>2];k=i[d>>2];e=e+f|0;i[e+8>>2]=i[d+8>>2];i[e>>2]=k;i[e+4>>2]=j;b=b+1|0;if((g|0)!=(b|0)){continue}break}}Jl(a,c);a=i[c>>2];if(a){i[c+4>>2]=a;bp(a)}F=c+16|0;return}Ho();x()}function sn(a,b,c,d,e,f){var g=0,h=0,j=0,k=0;a:{if(f&64){d=b;e=f+ -64|0;b=e&31;if(32<=(e&63)>>>0){e=d<>>32-b|c<>>0){h=g<>>32-d|e<>>0){f=0;d=d>>>e|0}else{f=d>>>e|0;d=((1<>>e}d=k|d;e=f|h;f=b;b=j&31;if(32<=(j&63)>>>0){h=f<>>32-b|c<>2]=b;i[a+4>>2]=c;i[a+8>>2]=d;i[a+12>>2]=e}function te(a,b,c,d){var e=0,f=0,g=0,h=0;e=F-32|0;F=e;g=i[i[i[b+4>>2]+8>>2]+(c<<2)>>2];a:{b:{if((I[i[i[b>>2]+8>>2]](b)|0)!=1){break b}h=I[i[i[b>>2]+52>>2]](b)|0;f=I[i[i[b>>2]+60>>2]](b,c)|0;if(!(f?h:0)){i[a>>2]=0;break a}c=I[i[i[b>>2]+56>>2]](b,c)|0;if(c){b=i[b+56>>2];i[e+20>>2]=c;i[e+16>>2]=b;i[e+28>>2]=f;i[e+24>>2]=f+12;ue(a,g,d,e+16|0);if(!i[a>>2]){break b}break a}b=i[b+56>>2];i[e+20>>2]=h;i[e+16>>2]=b;i[e+28>>2]=f;i[e+24>>2]=f+12;ve(a,g,d,e+16|0);if(i[a>>2]){break a}}i[a>>2]=0}F=e+32|0}function oc(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;a:{b:{if(b){if(b>>>0>=357913942){break b}e=o(b,12);b=ho(e);i[a>>2]=b;i[a+4>>2]=b;f=b+e|0;i[a+8>>2]=f;g=i[c>>2];d=i[c+4>>2]-g|0;h=d>>2;j=h>>>0<1073741824;k=(d|0)<1;l=d>>>2<<2;while(1){i[b+8>>2]=0;i[b>>2]=0;i[b+4>>2]=0;if(d){if(!j){break a}c=ho(d);i[b>>2]=c;i[b+4>>2]=c;i[b+8>>2]=c+(h<<2);e=b;if(!k){c=hp(c,g,d)+l|0}i[e+4>>2]=c}b=b+12|0;if((f|0)!=(b|0)){continue}break}i[a+4>>2]=f}return}Ho();x()}Ho();x()}function Mg(a,b,c){var d=0,e=0,f=0,g=0,h=0,j=0,k=0,m=0;e=a+8|0;Ng(a,a+4|0,e,c);a:{d=a+12|0;if((d|0)!=(b|0)){c=i[c>>2];f=i[c>>2];g=i[c+4>>2]-f>>3;while(1){h=i[d>>2];if(g>>>0<=h>>>0){break a}j=d;d=i[e>>2];if(g>>>0<=d>>>0){break a}k=j;m=(h<<3)+f|0;if(l[m>>2]>2]){while(1){b:{i[k>>2]=d;c=e;if((c|0)==(a|0)){c=a;break b}e=c+ -4|0;d=i[e>>2];if(g>>>0<=d>>>0){break a}k=c;if(l[m>>2]>2]){continue}}break}i[c>>2]=h}e=j;d=e+4|0;if((d|0)!=(b|0)){continue}break}}return}Io();x()}function vj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{c=i[a+8>>2];b:{if((c|0)<0){break b}d=i[a+4>>2];b=i[d>>2];e=i[d+4>>2]-b>>2;c:{if(c>>>0>e>>>0){wj(d,c-e|0);f=i[a+8>>2];break c}f=c;if(c>>>0>=e>>>0){break c}i[d+4>>2]=b+(c<<2);f=c}g=f;if((f|0)<1){break b}a=i[a+4>>2];b=i[a+4>>2];d=i[a>>2];a=b-d|0;e=(a|0)>-1?a:-1;b=d-b|0;b=o((e|0)<1?e:1,((b|0)>(a|0)?b:a)>>>2|0);a=0;while(1){if((a|0)==(b|0)){break a}i[d+(a<<2)>>2]=a;a=a+1|0;if((a|0)<(g|0)){continue}break}}return(c^-1)>>>31|0}Io();x()}function Vl(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=16864;b=i[a+68>>2];if(b){i[a+72>>2]=b;bp(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;bp(b)}b=i[a+44>>2];if(b){i[a+48>>2]=b;bp(b)}b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;bp(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){Wb(b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;bp(b)}b=i[a+4>>2];i[a+4>>2]=0;if(b){Al(b)}return a|0}function Bl(a,b,c){var d=0,e=0,f=0;e=F-16|0;F=e;a:{if(!c|(!a|(b|0)<0)){break a}f=i[a+8>>2];if(i[a+12>>2]-f>>2<=(b|0)){break a}if(!i[a+4>>2]){d=ho(36);i[d+4>>2]=0;i[d+8>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+32>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d>>2]=d+4;i[d+12>>2]=d+16;i[a+4>>2]=d}d=i[i[(b<<2)+f>>2]+60>>2];b=ho(28);lm(b,c);i[b+24>>2]=d;a=i[a+4>>2];i[e+8>>2]=b;jm(a,e+8|0);a=i[e+8>>2];i[e+8>>2]=0;d=1;if(!a){break a}yk(a+12|0,i[a+16>>2]);zk(a,i[a+4>>2]);bp(a)}F=e+16|0;return d}function Wc(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=2032;b=i[a+72>>2];i[a+72>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;bp(b)}b=i[a+48>>2];if(b){bp(b)}d=i[a+36>>2];if(d){b=d;c=i[a+40>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+36>>2]}b=e;i[a+40>>2]=d;bp(b)}i[a>>2]=1432;b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;bp(b)}return a|0}function zi(a){var b=0,c=0,d=0,e=0,f=0;d=a+32|0;sf(a,d);c=i[a+80>>2];a:{if(!c){break a}b=1;if(i[a+84>>2]<1){break a}sf(c,d);if(i[a+84>>2]<2){break a}while(1){sf(i[a+80>>2]+(b<<5)|0,d);b=b+1|0;if((b|0)>2]){continue}break}}b=i[a+136>>2];if((b|0)!=i[a+140>>2]){c=0;while(1){e=o(c,12);b=e+b|0;Jb(i[b+4>>2]-i[b>>2]>>2,d);b=i[a+136>>2];f=e+b|0;e=i[f>>2];f=i[f+4>>2]-e|0;if(f){kg(e,f>>2,1,0,d);b=i[a+136>>2]}c=c+1|0;if(c>>>0<(i[a+140>>2]-b|0)/12>>>0){continue}break}}}function Sb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a=i[a+4>>2];if(a){c=j[b+11|0];d=c<<24>>24<0;g=d?i[b>>2]:b;b=d?i[b+4>>2]:c;while(1){c=j[a+27|0];d=c<<24>>24<0;c=d?i[a+20>>2]:c;h=c>>>0>>0;a:{b:{f=h?c:b;c:{if(f){e=a+16|0;d=d?i[e>>2]:e;e=Km(g,d,f);d:{if(!e){if(b>>>0>=c>>>0){break d}break a}if((e|0)<=-1){break a}}c=Km(d,g,f);if(!c){break c}if((c|0)<=-1){break b}return 1}if(b>>>0>>0){break a}}if(h){break b}return 1}a=a+4|0}a=i[a>>2];if(a){continue}break}}return 0}function wj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ho(d<<2)}b=b<<2;b=ip(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){hp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}za(13344);x()}function Ai(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ho(d<<2)}b=b<<2;b=ip(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){hp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}za(11708);x()}function ka(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ho(d<<2)}b=b<<2;b=ip(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){hp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}za(1244);x()}function Bd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>2;d=g+b|0;if(d>>>0<1073741824){c=0;g=g<<2;e=e-f|0;j=e>>1;d=e>>2>>>0<536870911?j>>>0>>0?d:j:1073741823;if(d){if(d>>>0>=1073741824){break a}c=ho(d<<2)}b=b<<2;b=ip(c+g|0,0,b)+b|0;d=(d<<2)+c|0;if((h|0)>=1){hp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}za(2400);x()}function Vj(a,b,c,d){var e=0,f=0,h=0;a:{if((c|0)<0?1:(c|0)<=0?b>>>0<1:0){break a}e=i[a+20>>2];if((e|0)>0?1:(e|0)>=0?l[a+16>>2]>0:0){break a}g[a+24|0]=d;e=a;f=a;b=b+7|0;if(b>>>0<7){c=c+1|0}c=vp(b,c,8,0);i[f+16>>2]=c;i[e+20>>2]=H;e=i[a>>2];b=i[a+4>>2]-e|0;h=c;c=b;f=c+8|0;d=d?f:c;f=h+d|0;c=f;b:{if(b>>>0>>0){Qj(a,c-b|0);e=i[a>>2];break b}if(b>>>0<=c>>>0){break b}i[a+4>>2]=c+e}b=ho(8);i[b+4>>2]=0;i[b>>2]=d+e;c=i[a+12>>2];i[a+12>>2]=b;if(!c){break a}bp(c)}}function ig(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>3>>>0>=b>>>0){if(b){b=b<<3;c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}a:{f=i[a>>2];h=c-f|0;g=h>>3;d=g+b|0;if(d>>>0<536870912){c=0;g=g<<3;e=e-f|0;j=e>>2;d=e>>3>>>0<268435455?j>>>0>>0?d:j:536870911;if(d){if(d>>>0>=536870912){break a}c=ho(d<<3)}b=b<<3;b=ip(c+g|0,0,b)+b|0;d=(d<<3)+c|0;if((h|0)>=1){hp(c,f,h)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}za(10734);x()}function Di(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=i[a+4>>2];e=i[a+8>>2];if(c>>>0>>0){i[c>>2]=i[b>>2];i[a+4>>2]=c+4;return}a:{f=i[a>>2];g=c-f|0;c=g>>2;d=c+1|0;if(d>>>0<1073741824){h=c<<2;e=e-f|0;c=e>>1;d=e>>2>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=ho(d<<2)}e=h+c|0;i[e>>2]=i[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){hp(c,f,g)}i[a+8>>2]=b;i[a+4>>2]=d;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}za(11708);x()}function un(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,j=0;e=F-16|0;F=e;f=(Fp(b),Bp(2));c=f&2147483647;a:{if(c+ -8388608>>>0<=2130706431){d=c;c=c>>>7|0;d=d<<25;c=c+1065353216|0;g=d;c=d>>>0<0?c+1|0:c;break a}if(c>>>0>=2139095040){c=f;d=c>>>7|0;g=c<<25;c=d|2147418112;break a}if(!c){c=0;break a}d=c;c=r(c);sn(e,d,0,0,0,c+81|0);h=i[e>>2];j=i[e+4>>2];g=i[e+8>>2];c=i[e+12>>2]^65536|16265-c<<16}i[a>>2]=h;i[a+4>>2]=j;i[a+8>>2]=g;i[a+12>>2]=f&-2147483648|c;F=e+16|0}function ei(a){var b=0,c=0,d=0,e=0;pf(a);c=i[a+84>>2];a:{if((c|0)<1){break a}b=c<<5;d=ho((c|0)!=(c&134217727)?-1:b|4);i[d>>2]=c;d=d+4|0;c=d+b|0;b=d;while(1){b=mf(b)+32|0;if((c|0)!=(b|0)){continue}break}e=i[a+80>>2];i[a+80>>2]=d;if(e){c=e+ -4|0;d=i[c>>2];if(d){b=e+(d<<5)|0;while(1){b=nf(b+ -32|0);if((e|0)!=(b|0)){continue}break}}bp(c)}if(i[a+84>>2]<1){break a}b=0;while(1){pf(i[a+80>>2]+(b<<5)|0);b=b+1|0;if((b|0)>2]){continue}break}}}function Om(a,b){a:{if(a){if(b>>>0<=127){break a}b:{if(!i[i[4790]>>2]){if((b&-128)==57216){break a}break b}if(b>>>0<=2047){g[a+1|0]=b&63|128;g[a|0]=b>>>6|192;return 2}if(!((b&-8192)!=57344?b>>>0>=55296:0)){g[a+2|0]=b&63|128;g[a|0]=b>>>12|224;g[a+1|0]=b>>>6&63|128;return 3}if(b+ -65536>>>0<=1048575){g[a+3|0]=b&63|128;g[a|0]=b>>>18|240;g[a+2|0]=b>>>6&63|128;g[a+1|0]=b>>>12&63|128;return 4}}i[4805]=25;a=-1}else{a=1}return a}g[a|0]=b;return 1}function md(a,b,c,d){var e=0,f=0,h=0,j=0;e=F-80|0;F=e;f=Ba(e+16|0);h=i[i[a+8>>2]+56>>2];j=c<<24>>24;c=o(Sj(5),c);Ca(f,h,0,j,5,c,c>>31);c=ho(96);f=Fa(c,f);i[e+8>>2]=c;Ha(f,b);i[e+8>>2]=0;b=i[a+32>>2];i[a+32>>2]=c;if(b){Wb(b)}a:{if(!d){break a}a=i[a+32>>2];g[a+84|0]=0;c=i[a+68>>2];b=i[a+72>>2]-c>>2;if(b>>>0>>0){Xa(a+68|0,d-b|0,2396);break a}if(b>>>0<=d>>>0){break a}i[a+72>>2]=c+(d<<2)}a=i[e+8>>2];i[e+8>>2]=0;if(a){Wb(a)}F=e+80|0}function ta(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=F-16|0;F=d;e=i[a+4>>2];a:{if((e|0)==-1){break a}c=i[b+20>>2];if((c|0)>0?1:(c|0)>=0?l[b+16>>2]>0:0){break a}ca(b,i[b+4>>2],i[a+8>>2],i[a+12>>2]);c=i[b+20>>2];if((c|0)>0?1:(c|0)>=0?l[b+16>>2]>=1:0){break a}c=a+20|0;ca(b,i[b+4>>2],c,c+4|0);c=i[b+20>>2];f=i[b+16>>2];g[d+15|0]=i[a+4>>2];if((c|0)>0?1:(c|0)>=0?f>>>0>0:0){break a}ca(b,i[b+4>>2],d+15|0,d+16|0)}F=d+16|0;return(e|0)!=-1|0}function Ui(a,b){var c=0,d=0,e=0,f=0,g=0;d=i[a+4>>2];a=i[d+4>>2];if((a|0)!=i[d+8>>2]){i[a>>2]=b;i[d+4>>2]=a+4;return}a:{f=i[d>>2];g=a-f|0;e=g>>2;c=e+1|0;if(c>>>0<1073741824){a=g>>1;c=e>>>0<536870911?a>>>0>>0?c:a:1073741823;a=0;b:{if(!c){break b}if(c>>>0>=1073741824){break a}a=ho(c<<2)}e=a+(e<<2)|0;i[e>>2]=b;b=a+(c<<2)|0;c=e+4|0;if((g|0)>=1){hp(a,f,g)}i[d+8>>2]=b;i[d+4>>2]=c;i[d>>2]=a;if(f){bp(f)}return}Ho();x()}za(11708);x()}function Pl(a,b){var c=0,d=0,e=0,f=0,g=0;c=i[a+4>>2];if((c|0)!=i[a+8>>2]){i[c>>2]=i[b>>2];i[a+4>>2]=c+4;return}a:{f=i[a>>2];g=c-f|0;e=g>>2;d=e+1|0;if(d>>>0<1073741824){c=g>>1;d=e>>>0<536870911?c>>>0>>0?d:c:1073741823;c=0;b:{if(!d){break b}if(d>>>0>=1073741824){break a}c=ho(d<<2)}e=c+(e<<2)|0;i[e>>2]=i[b>>2];b=c+(d<<2)|0;d=e+4|0;if((g|0)>=1){hp(c,f,g)}i[a+8>>2]=b;i[a+4>>2]=d;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}za(16516);x()}function Tb(a,b,c,d){var e=0,f=0,h=0,k=p(0);e=F-32|0;F=e;h=a+4|0;a=uc(a,b);a:{if((h|0)==(a|0)){break a}f=ro(e+16|0,a+28|0);b=g[f+11|0];b:{c:{if((b|0)<=-1){if(!i[f+4>>2]){break b}a=i[f>>2];break c}a=e+16|0;if(!b){break a}}if((c|0)>=1){b=0;while(1){d:{k=nn(a,e+12|0);h=a;a=i[e+12>>2];if((h|0)==(a|0)){break d}m[(b<<2)+d>>2]=k;b=b+1|0;if((c|0)!=(b|0)){continue}}break}b=j[f+11|0]}if(b<<24>>24>-1){break a}}bp(i[f>>2])}F=e+32|0}function Cj(a,b,c){var d=0,e=0,f=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;a:{b:{if(!b){break b}if((b|0)<=-1){break a}e=b+ -1>>>5|0;f=e+1|0;d=ho(f<<2);i[a+8>>2]=f;i[a>>2]=d;f=j[c|0];i[a+4>>2]=b;i[(b>>>0<33?d:d+(e<<2)|0)>>2]=0;c=b>>>5|0;e=c<<2;if(f){d=ip(d,255,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;i[c>>2]=i[c>>2]|-1>>>32-b;return a}d=ip(d,0,e);b=b&31;if(!b){break b}c=d+(c<<2)|0;i[c>>2]=i[c>>2]&(-1>>>32-b^-1)}return a}Ho();x()}function mm(a,b,c,d){var e=0,f=0,g=0,h=0,j=0;f=F-16|0;F=f;c=Nf(a,b,f+12|0,f+8|0,c);if(!i[c>>2]){b=ho(40);ro(b+16|0,d);i[b+36>>2]=0;i[b+28>>2]=0;i[b+32>>2]=0;g=i[d+12>>2];h=i[d+16>>2]-g|0;e=0;a:{if(!h){break a}e=b+28|0;Qj(e,h);g=i[d+12>>2];j=i[d+16>>2]-g|0;e=i[e>>2]}hp(e,g,j);i[b+8>>2]=i[f+12>>2];i[b>>2]=0;i[b+4>>2]=0;i[c>>2]=b;d=i[i[a>>2]>>2];if(d){i[a>>2]=d;b=i[c>>2]}Kf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}F=f+16|0}function Zj(a,b,c){var d=0,e=0,f=0,h=0;e=F-16|0;F=e;Co(e,c);f=Of(a,e+12|0,b);d=i[f>>2];if(!d){d=ho(40);ro(d+16|0,b);i[d+36>>2]=0;i[d+28>>2]=0;i[d+32>>2]=0;i[d+8>>2]=i[e+12>>2];i[d>>2]=0;i[d+4>>2]=0;i[f>>2]=d;b=i[i[a>>2]>>2];h=d;a:{if(!b){break a}i[a>>2]=b;h=i[f>>2]}b=h;Kf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}a=d+28|0;if(g[d+39|0]<=-1){bp(i[a>>2])}b=i[e+4>>2];i[a>>2]=i[e>>2];i[a+4>>2]=b;i[a+8>>2]=i[e+8>>2];F=e+16|0}function zb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){Ab(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}Ab(a,b)}}function xb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){yb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}yb(a,b)}}function rb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){sb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}sb(a,b)}}function pb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){qb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}qb(a,b)}}function nb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){ob(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}ob(a,b)}}function lb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){mb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}mb(a,b)}}function jj(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){kj(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}kj(a,b)}}function fb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){gb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}gb(a,b)}}function db(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){eb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}eb(a,b)}}function bb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){cb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}cb(a,b)}}function Nm(a,b){var c=0;c=(b|0)!=0;a:{b:{c:{if(!b|!(a&3)){break c}while(1){if(!j[a|0]){break b}a=a+1|0;b=b+ -1|0;c=(b|0)!=0;if(!b){break c}if(a&3){continue}break}}if(!c){break a}}d:{if(!j[a|0]|b>>>0<4){break d}while(1){c=i[a>>2];if((c^-1)&c+ -16843009&-2139062144){break d}a=a+4|0;b=b+ -4|0;if(b>>>0>3){continue}break}}if(!b){break a}while(1){if(!j[a|0]){return a}a=a+1|0;b=b+ -1|0;if(b){continue}break}}return 0}function Gl(a,b,c,d){var e=0,f=0,h=0;f=F-48|0;F=f;a:{if(!b){a=0;break a}e=Tj(f+16|0);h=0;b:{if((xm(b,0)|0)==-1){break b}if(c){h=0;if(!(I[i[i[b>>2]+16>>2]](b)|0)){break b}I[i[i[b>>2]+20>>2]](b)}uf(f,a,b,e);a=i[f>>2];if(g[f+15|0]<=-1){bp(i[f+4>>2])}h=0;if(a){break b}rl(d,i[e>>2],i[e+4>>2]);h=i[e+4>>2]-i[e>>2]|0}a=h;b=i[e+12>>2];i[e+12>>2]=0;if(b){bp(b)}b=i[e>>2];if(!b){break a}i[e+4>>2]=b;bp(b)}F=f+48|0;return a}function Fm(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){Jm(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+20>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}Jm(a,b)}}function Db(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){Eb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}Eb(a,b)}}function Bb(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){Cb(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}Cb(a,b)}}function $a(a,b){var c=0,d=0,e=p(0),f=0;c=2;a:{if((b|0)==1){break a}c=b;if(!(b+ -1&b)){break a}c=Fn(b)}d=i[a+4>>2];if(c>>>0>d>>>0){ab(a,c);return}b:{if(c>>>0>=d>>>0){break b}f=d>>>0<3;e=p(v(p(p(l[a+12>>2])/m[a+16>>2])));c:{if(e=p(0)){b=~~e>>>0;break c}b=0}d:{e:{if(f){break e}if(xp(d)>>>0>1){break e}b=b>>>0<2?b:1<<32-r(b+ -1|0);break d}b=Fn(b)}b=c>>>0>>0?b:c;if(b>>>0>=d>>>0){break b}ab(a,b)}}function Yj(a,b,c){var d=0,e=0,f=0;d=F-16|0;F=d;Bo(d,c);e=Of(a,d+12|0,b);c=i[e>>2];if(!c){c=ho(40);ro(c+16|0,b);i[c+36>>2]=0;i[c+28>>2]=0;i[c+32>>2]=0;i[c+8>>2]=i[d+12>>2];i[c>>2]=0;i[c+4>>2]=0;i[e>>2]=c;b=i[i[a>>2]>>2];f=c;a:{if(!b){break a}i[a>>2]=b;f=i[e>>2]}b=f;Kf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}a=c+28|0;if(g[c+39|0]<=-1){bp(i[a>>2])}b=i[d+4>>2];i[a>>2]=i[d>>2];i[a+4>>2]=b;i[a+8>>2]=i[d+8>>2];F=d+16|0}function Hh(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=10936;b=i[a+64>>2];i[a+64>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=13484;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;bp(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;bp(b)}return a|0}function Jl(a,b){var c=0,d=0,e=0;d=F-16|0;F=d;e=ho(88);c=e;i[c>>2]=0;i[c+4>>2]=0;i[c+64>>2]=0;i[c+68>>2]=0;i[c+56>>2]=0;i[c+48>>2]=0;i[c+52>>2]=0;i[c+40>>2]=0;i[c+44>>2]=0;i[c+32>>2]=0;i[c+36>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;i[c+16>>2]=0;i[c+20>>2]=0;i[c+8>>2]=0;i[c+12>>2]=0;i[c+72>>2]=0;i[c+76>>2]=0;i[c+80>>2]=0;i[c+84>>2]=0;i[c+60>>2]=c;a:{if(Kl(c,b)){i[a>>2]=e;break a}i[a>>2]=0;i[d+8>>2]=0;bi(e)}F=d+16|0}function Ih(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=10936;b=i[a+64>>2];i[a+64>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=13484;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;bp(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;bp(b)}bp(a)}function Fl(a,b,c){var d=0,e=0,f=0;e=F-48|0;F=e;a:{if(!b){a=0;break a}d=Tj(e+16|0);f=0;b:{if((xm(b,0)|0)==-1){break b}f=0;if(!(I[i[i[b>>2]+16>>2]](b)|0)){break b}I[i[i[b>>2]+20>>2]](b);Af(e,a,b,d);a=i[e>>2];if(g[e+15|0]<=-1){bp(i[e+4>>2])}f=0;if(a){break b}rl(c,i[d>>2],i[d+4>>2]);f=i[d+4>>2]-i[d>>2]|0}a=f;b=i[d+12>>2];i[d+12>>2]=0;if(b){bp(b)}b=i[d>>2];if(!b){break a}i[d+4>>2]=b;bp(b)}F=e+48|0;return a}function kc(a){pf(a);pf(a+32|0);pf(a- -64|0);pf(a+96|0);pf(a+128|0);pf(a+160|0);pf(a+192|0);pf(a+224|0);pf(a+256|0);pf(a+288|0);pf(a+320|0);pf(a+352|0);pf(a+384|0);pf(a+416|0);pf(a+448|0);pf(a+480|0);pf(a+512|0);pf(a+544|0);pf(a+576|0);pf(a+608|0);pf(a+640|0);pf(a+672|0);pf(a+704|0);pf(a+736|0);pf(a+768|0);pf(a+800|0);pf(a+832|0);pf(a+864|0);pf(a+896|0);pf(a+928|0);pf(a+960|0);pf(a+992|0);pf(a+1024|0)}function vo(a,b,c,d,e,f,h,j){var k=0,l=0,m=0;k=F-16|0;F=k;if((b^-1)+ -17>>>0>=c>>>0){l=Yn(a);a:{if(2147483623>b>>>0){i[k+8>>2]=b<<1;i[k+12>>2]=b+c;c=ao(i[Mn(k+12|0,k+8|0)>>2]);break a}c=-18}m=c+1|0;c=bo(m);if(e){Ln(c,l,e)}if(h){Ln(c+e|0,j,h)}d=d-f|0;j=d-e|0;if(j){Ln((c+e|0)+h|0,(e+l|0)+f|0,j)}if((b|0)!=10){bp(l)}co(a,c);eo(a,m);b=a;a=d+h|0;aa(b,a);g[k+7|0]=0;_n(a+c|0,k+7|0);F=k+16|0;return}qo();x()}function on(a,b,c,d){var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=F-160|0;F=e;ip(e+16|0,0,144);i[e+92>>2]=-1;i[e+60>>2]=b;i[e+24>>2]=-1;i[e+20>>2]=b;en(e+16|0);jn(e,e+16|0,d);d=i[e+8>>2];g=i[e+12>>2];h=i[e>>2];j=i[e+4>>2];if(c){k=c;f=b;b=i[e+20>>2]-i[e+24>>2]|0;l=b;c=b+i[e+136>>2]|0;b=i[e+140>>2]+(b>>31)|0;b=c>>>0>>0?b+1|0:b;i[k>>2]=!(b|c)?f:f+c|0}i[a>>2]=h;i[a+4>>2]=j;i[a+8>>2]=d;i[a+12>>2]=g;F=e+160|0}function Af(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=F-96|0;F=e;f=Rf(e+40|0,c);vf(e,b,c);Vf(f,e);kd(e+24|0,i[e+28>>2]);wf(e+12|0,i[e+16>>2]);kd(e,i[e+4>>2]);Sf(a,f,d);if(!i[a>>2]){if(g[a+15|0]<=-1){bp(i[a+4>>2])}i[b+40>>2]=i[f+40>>2];i[b+44>>2]=i[f+44>>2];i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+4>>2]=0}i[f>>2]=10308;kd(f+28|0,i[f+32>>2]);wf(f+16|0,i[f+20>>2]);kd(f+4|0,i[f+8>>2]);F=e+96|0}function nc(a){mf(a);mf(a+32|0);mf(a- -64|0);mf(a+96|0);mf(a+128|0);mf(a+160|0);mf(a+192|0);mf(a+224|0);mf(a+256|0);mf(a+288|0);mf(a+320|0);mf(a+352|0);mf(a+384|0);mf(a+416|0);mf(a+448|0);mf(a+480|0);mf(a+512|0);mf(a+544|0);mf(a+576|0);mf(a+608|0);mf(a+640|0);mf(a+672|0);mf(a+704|0);mf(a+736|0);mf(a+768|0);mf(a+800|0);mf(a+832|0);mf(a+864|0);mf(a+896|0);mf(a+928|0);mf(a+960|0);mf(a+992|0)}function mc(a){nf(a+992|0);nf(a+960|0);nf(a+928|0);nf(a+896|0);nf(a+864|0);nf(a+832|0);nf(a+800|0);nf(a+768|0);nf(a+736|0);nf(a+704|0);nf(a+672|0);nf(a+640|0);nf(a+608|0);nf(a+576|0);nf(a+544|0);nf(a+512|0);nf(a+480|0);nf(a+448|0);nf(a+416|0);nf(a+384|0);nf(a+352|0);nf(a+320|0);nf(a+288|0);nf(a+256|0);nf(a+224|0);nf(a+192|0);nf(a+160|0);nf(a+128|0);nf(a+96|0);nf(a- -64|0);nf(a+32|0);nf(a)}function Oc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,h=0,j=0,k=0;d=F-16|0;F=d;f=Ib(a,b);a:{if(!f){break a}c=i[a+36>>2];if((c|0)==i[a+40>>2]){break a}h=d+16|0;while(1){c=i[(e<<2)+c>>2];j=d,k=I[i[i[c>>2]+32>>2]](c)|0,g[j+15|0]=k;c=i[b+20>>2];if((c|0)<0?1:(c|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],d+15|0,h)}e=e+1|0;c=i[a+36>>2];if(e>>>0>2]-c>>2>>>0){continue}break}}F=d+16|0;return f|0}function Mi(a,b){var c=0,d=0,e=0;a:{if((a|0)!=(b|0)){e=a;c=i[b+4>>2];d=0;b:{if(!c){break b}c:{if(c>>>0<=i[a+8>>2]<<5>>>0){d=i[a>>2];break c}d=i[a>>2];if(d){bp(d);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;c=i[b+4>>2]}if((c|0)<=-1){break a}c=(c+ -1>>>5|0)+1|0;d=ho(c<<2);i[a+8>>2]=c;i[a+4>>2]=0;i[a>>2]=d;c=i[b+4>>2]}jp(d,i[b>>2],(c+ -1>>>3&536870908)+4|0);d=i[b+4>>2]}i[e+4>>2]=d}return}Ho();x()}function Il(a,b,c){var d=0,e=0,f=0;d=F-48|0;F=d;e=i[a+4>>2];a:{if(!e){break a}if(b){if(!(I[i[i[e>>2]+16>>2]](e)|0)){break a}b=i[a+4>>2];I[i[i[b>>2]+20>>2]](b)}b=Tj(d+16|0);Sf(d,i[a>>2],b);a=i[d>>2];if(g[d+15|0]<=-1){bp(i[d+4>>2])}if(!a){rl(c,i[b>>2],i[b+4>>2]);f=i[b+4>>2]-i[b>>2]|0}a=i[b+12>>2];i[b+12>>2]=0;if(a){bp(a)}a=i[b>>2];if(!a){break a}i[b+4>>2]=a;bp(a)}F=d+48|0;return f}function Yh(a,b){var c=0;c=i[b+8>>2];i[a+12>>2]=i[b+4>>2];i[a+16>>2]=c;i[a+28>>2]=i[b+20>>2];c=i[b+16>>2];i[a+20>>2]=i[b+12>>2];i[a+24>>2]=c;Mi(a+32|0,b+24|0);Mi(a+44|0,b+36|0);if((a+8|0)==(b|0)){i[a+92>>2]=i[b+84>>2];return}Vh(a+56|0,i[b+48>>2],i[b+52>>2]);Vh(a+68|0,i[b+60>>2],i[b- -64>>2]);Vh(a+80|0,i[b+72>>2],i[b+76>>2]);i[a+92>>2]=i[b+84>>2];ra(a+96|0,i[b+88>>2],i[b+92>>2])}function pm(a,b){var c=0,d=0,e=0;c=i[b+4>>2];a:{if(!c){d=i[b+8>>2];if(i[d>>2]==(b|0)){break a}e=b+8|0;while(1){c=i[e>>2];e=c+8|0;d=i[c+8>>2];if((c|0)!=i[d>>2]){continue}break}break a}while(1){d=c;c=i[c>>2];if(c){continue}break}}if(i[a>>2]==(b|0)){i[a>>2]=d}i[a+8>>2]=i[a+8>>2]+ -1;vm(i[a+4>>2],b);a=i[b+28>>2];if(a){i[b+32>>2]=a;bp(a)}if(g[b+27|0]<=-1){bp(i[b+16>>2])}bp(b)}function ld(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,h=0,k=0;d=i[a+8>>2];e=g[d+24|0];md(a,i[b+4>>2]-i[b>>2]>>2,e,c);c=i[b>>2];f=i[b+4>>2];if((c|0)==(f|0)){return 1}a=i[a+32>>2];h=i[i[a>>2]>>2]+i[a+48>>2]|0;b=0;while(1){a=i[c>>2];k=d;if(!j[d+84|0]){a=i[i[d+68>>2]+(a<<2)>>2]}a=Xb(k,a,g[d+24|0],(b<<2)+h|0);if(a){b=b+e|0;c=c+4|0;if((f|0)!=(c|0)){continue}}break}return a|0}function Yb(a,b){a=a|0;b=b|0;var c=0,d=0;c=i[a+36>>2];if((c|0)!=i[a+40>>2]){while(1){c=o(d,24)+c|0;I[i[i[c>>2]+28>>2]](c,b)|0;d=d+1|0;c=i[a+36>>2];if(d>>>0<(i[a+40>>2]-c|0)/24>>>0){continue}break}}c=i[a+48>>2];if((c|0)!=i[a+52>>2]){d=0;while(1){c=i[(d<<2)+c>>2];Jb((c|0)>-1?c<<1:(c^-1)<<1|1,b);d=d+1|0;c=i[a+48>>2];if(d>>>0>2]-c>>2>>>0){continue}break}}return 1}function Jg(a,b,c){var d=0,e=0,f=0;d=F-16|0;F=d;e=a;g[d+15|0]=a&127;a:{if(!b&a>>>0>=128|b>>>0>0){g[d+15|0]=e|128;e=i[c+20>>2];f=0;if((e|0)>0?1:(e|0)>=0?l[c+16>>2]>0:0){break a}ca(c,i[c+4>>2],d+15|0,d+16|0);f=Jg((b&127)<<25|a>>>7,b>>>7|0,c);break a}a=i[c+20>>2];if((a|0)<0?1:(a|0)<=0?l[c+16>>2]<=0:0){ca(c,i[c+4>>2],d+15|0,d+16|0);f=1;break a}f=0}e=f;F=d+16|0;return e}function Qj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=i[a+8>>2];c=i[a+4>>2];if(e-c>>>0>=b>>>0){if(b){c=ip(c,0,b)+b|0}i[a+4>>2]=c;return}f=i[a>>2];g=c-f|0;d=g+b|0;if((d|0)>-1){c=0;e=e-f|0;h=e<<1;d=e>>>0<1073741823?h>>>0>>0?d:h:2147483647;if(d){c=ho(d)}d=c+d|0;b=ip(c+g|0,0,b)+b|0;if((g|0)>=1){hp(c,f,g)}i[a+8>>2]=d;i[a+4>>2]=b;i[a>>2]=c;if(f){bp(f)}return}Ho();x()}function lp(a,b,c){var d=0,e=0,f=0;a:{d=i[c+16>>2];if(!d){if(kp(c)){break a}d=i[c+16>>2]}f=i[c+20>>2];if(d-f>>>0>>0){I[i[c+36>>2]](c,a,b)|0;return}b:{if(g[c+75|0]<0){break b}d=b;while(1){e=d;if(!e){break b}d=e+ -1|0;if(j[d+a|0]!=10){continue}break}if(I[i[c+36>>2]](c,a,e)>>>0>>0){break a}a=a+e|0;b=b-e|0;f=i[c+20>>2]}hp(f,a,b);i[c+20>>2]=i[c+20>>2]+b}}function Bn(a,b,c,d,e){var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;j=a;k=e;e=0;g=e;f=c;c=0;e=up(k,e,f,c);l=H;h=b;m=up(d,0,b,0);b=H;d=up(d,n,f,c);c=b+d|0;b=H;b=c>>>0>>0?b+1|0:b;f=b;d=b+e|0;b=l;b=d>>>0>>0?b+1|0:b;f=d;e=b;b=up(h,o,k,g)+c|0;d=H;g=b;d=b>>>0>>0?d+1|0:d;h=d;d=d+f|0;if(d>>>0>>0){e=e+1|0}i[j+8>>2]=d;i[j+12>>2]=e;i[a>>2]=m;i[a+4>>2]=g}function vl(a,b,c){var d=0,e=0,f=0,h=0;d=F-16|0;F=d;a:{b:{if(!a){break b}e=mp(b);if(e>>>0>=4294967280){break a}c:{d:{if(e>>>0>=11){f=e+16&-16;h=ho(f);i[d+8>>2]=f|-2147483648;i[d>>2]=h;i[d+4>>2]=e;f=d;break d}g[d+11|0]=e;f=d;h=d;if(!e){break c}}hp(h,b,e)}g[e+h|0]=0;sm(a,d,c);if(g[f+11|0]>-1){break b}bp(i[d>>2])}F=d+16|0;return(a|0)!=0}qo();x()}function tl(a,b,c){var d=0,e=0,f=0,h=0;d=F-16|0;F=d;a:{b:{if(!a){break b}e=mp(b);if(e>>>0>=4294967280){break a}c:{d:{if(e>>>0>=11){f=e+16&-16;h=ho(f);i[d+8>>2]=f|-2147483648;i[d>>2]=h;i[d+4>>2]=e;f=d;break d}g[d+11|0]=e;f=d;h=d;if(!e){break c}}hp(h,b,e)}g[e+h|0]=0;nm(a,d,c);if(g[f+11|0]>-1){break b}bp(i[d>>2])}F=d+16|0;return(a|0)!=0}qo();x()}function nj(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=13484;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;bp(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;bp(b)}return a|0}function Fb(a,b){var c=0,d=0,e=0,f=0;e=F-16|0;F=e;i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=1432;d=a+12|0;c=d;i[c>>2]=0;i[c+4>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;c=ho(4);i[c>>2]=b;f=d;d=c+4|0;i[f>>2]=d;f=a+8|0;i[f>>2]=d;i[a+4>>2]=c;i[e+12>>2]=-1;Gb(a+16|0,b+1|0,e+12|0);i[i[a+16>>2]+(b<<2)>>2]=(i[f>>2]-i[a+4>>2]>>2)+ -1;F=e+16|0}function Wo(a,b,c,d){g[a+53|0]=1;a:{if(i[a+4>>2]!=(c|0)){break a}g[a+52|0]=1;c=i[a+16>>2];if(!c){i[a+36>>2]=1;i[a+24>>2]=d;i[a+16>>2]=b;if((d|0)!=1|i[a+48>>2]!=1){break a}g[a+54|0]=1;return}if((b|0)==(c|0)){c=i[a+24>>2];if((c|0)==2){i[a+24>>2]=d;c=d}if(i[a+48>>2]!=1|(c|0)!=1){break a}g[a+54|0]=1;return}g[a+54|0]=1;i[a+36>>2]=i[a+36>>2]+1}}function Ro(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=F+ -64|0;F=d;e=1;a:{if(Qo(a,b,0)){break a}e=0;if(!b){break a}b=So(b,18792,18840);e=0;if(!b){break a}ip(d+8|4,0,52);i[d+56>>2]=1;i[d+20>>2]=-1;i[d+16>>2]=a;i[d+8>>2]=b;I[i[i[b>>2]+28>>2]](b,d+8|0,i[c>>2],1);a=i[d+32>>2];if((a|0)==1){i[c>>2]=i[d+24>>2]}e=(a|0)==1}a=e;F=d- -64|0;return a|0}function Pn(a,b,c){var d=0,e=0;d=F-160|0;F=d;hp(d+8|0,18056,144);a:{b:{if(b+ -1>>>0>=2147483647){if(b){break b}b=1;a=d+159|0}i[d+52>>2]=a;i[d+28>>2]=a;e=-2-a|0;b=b>>>0>e>>>0?e:b;i[d+56>>2]=b;a=a+b|0;i[d+36>>2]=a;i[d+24>>2]=a;a=Rm(d+8|0,c);if(!b){break a}b=i[d+28>>2];g[b-((b|0)==i[d+24>>2])|0]=0;break a}i[4805]=61;a=-1}F=d+160|0;return a}function tj(a){a=a|0;var b=0,c=0,d=0,e=0;i[a>>2]=13484;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}b=i[a+20>>2];if(b){i[a+24>>2]=b;bp(b)}d=i[a+8>>2];if(d){b=d;c=i[a+12>>2];e=b;a:{if((b|0)==(c|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}e=i[a+8>>2]}b=e;i[a+12>>2]=d;bp(b)}bp(a)}function Ic(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=1;a:{if((I[i[i[b>>2]+20>>2]](b)|0)<1){break a}c=0;while(1){e=xm(i[i[a+4>>2]+4>>2],I[i[i[b>>2]+24>>2]](b,d)|0);if((e|0)==-1){break a}if(!(g=b,h=Hj(i[a+4>>2],e),f=i[i[b>>2]+28>>2],I[f](g|0,h|0)|0)){break a}d=d+1|0;if((d|0)<(I[i[i[b>>2]+20>>2]](b)|0)){continue}break}c=1}return c|0}function Jb(a,b){var c=0,d=0,e=0;c=F-16|0;F=c;g[c+15|0]=a&127;a:{if(a>>>0>=128){g[c+15|0]=a|128;e=i[b+20>>2];d=0;if((e|0)>0?1:(e|0)>=0?l[b+16>>2]>0:0){break a}ca(b,i[b+4>>2],c+15|0,c+16|0);d=Jb(a>>>7|0,b);break a}a=i[b+20>>2];if((a|0)<0?1:(a|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],c+15|0,c+16|0);d=1;break a}d=0}a=d;F=c+16|0;return a}function Nc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(!Hb(a,b,c)){break a}if(!(I[i[i[a>>2]+52>>2]](a)|0)){break a}e=i[a+4>>2];if((e|0)==i[a+8>>2]){return 1}c=0;while(1){d=c<<2;f=i[d+i[a+36>>2]>>2];d=I[i[i[f>>2]+8>>2]](f,b,i[d+e>>2])|0;if(!d){break a}c=c+1|0;e=i[a+4>>2];if(c>>>0>2]-e>>2>>>0){continue}break}}return d|0}function Zh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=F-16|0;F=d;i[a+4>>2]=b;b=i[b+64>>2];e=i[b>>2];b=i[b+4>>2];g[d+15|0]=0;Uh(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=i[a+4>>2];e=i[b+56>>2];b=i[b+52>>2];g[d+14|0]=0;Uh(a+36|0,e-b>>2,d+14|0);b=i[c+12>>2];i[a+16>>2]=i[c+8>>2];i[a+20>>2]=b;b=i[c+4>>2];i[a+8>>2]=i[c>>2];i[a+12>>2]=b;F=d+16|0}function mp(a){var b=0,c=0,d=0;a:{b:{b=a;if(!(b&3)){break b}if(!j[a|0]){return 0}while(1){b=b+1|0;if(!(b&3)){break b}if(j[b|0]){continue}break}break a}while(1){c=b;b=b+4|0;d=i[c>>2];if(!((d^-1)&d+ -16843009&-2139062144)){continue}break}if(!(d&255)){return c-a|0}while(1){d=j[c+1|0];b=c+1|0;c=b;if(d){continue}break}}return b-a|0}function _l(a){i[a>>2]=0;i[a+4>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;g[a+24|0]=1;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;i[a+80>>2]=0;i[a+84>>2]=0;i[a+88>>2]=0;i[a+92>>2]=0;i[a+68>>2]=a}function Zo(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(Qo(a,i[b+8>>2],e)){Xo(b,c,d);return}a:{if(!Qo(a,i[b>>2],e)){break a}if(!(i[b+20>>2]!=(c|0)?i[b+16>>2]!=(c|0):0)){if((d|0)!=1){break a}i[b+32>>2]=1;return}i[b+20>>2]=c;i[b+32>>2]=d;i[b+40>>2]=i[b+40>>2]+1;if(!(i[b+36>>2]!=1|i[b+24>>2]!=2)){g[b+54|0]=1}i[b+44>>2]=4}}function Wd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=F-16|0;F=c;i[c+12>>2]=i[a+12>>2];d=i[b+20>>2];e=d;f=i[b+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+12|0,c+16|0);f=i[b+16>>2];e=i[b+20>>2]}i[c+8>>2]=i[a+16>>2];if((e|0)<0?1:(e|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+8|0,c+12|0)}sf(a+112|0,b);F=c+16|0;return 1}function Oe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=F-16|0;F=c;i[c+12>>2]=i[a+12>>2];d=i[b+20>>2];e=d;f=i[b+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+12|0,c+16|0);f=i[b+16>>2];e=i[b+20>>2]}i[c+8>>2]=i[a+24>>2];if((e|0)<0?1:(e|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+8|0,c+12|0)}sf(a+96|0,b);F=c+16|0;return 1}function Li(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=F-16|0;F=d;i[a+4>>2]=b;e=i[b>>2];b=i[b+4>>2];g[d+15|0]=0;Uh(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=i[a+4>>2];e=i[b+28>>2];b=i[b+24>>2];g[d+14|0]=0;Uh(a+36|0,e-b>>2,d+14|0);b=i[c+12>>2];i[a+16>>2]=i[c+8>>2];i[a+20>>2]=b;b=i[c+4>>2];i[a+8>>2]=i[c>>2];i[a+12>>2]=b;F=d+16|0}function _c(a,b){a=a|0;b=b|0;var c=0,d=0;c=i[a+16>>2];a:{if(i[a+20>>2]-c>>2<=(b|0)){break a}b=i[c+(b<<2)>>2];if((b|0)<0){break a}if(l[a+52>>2]<=b>>>0){$c(a+48|0,b+1|0)}d=1;c=i[a+48>>2]+(b>>>3&536870908)|0;i[c>>2]=i[c>>2]|1<>2];a=i[a+36>>2];if(c-a>>2>>>0<=b>>>0){break a}Gc(i[a+(b<<2)>>2])}return d|0}function Al(a){var b=0,c=0,d=0,e=0;if(a){d=i[a+24>>2];if(d){b=d;c=i[a+28>>2];e=b;a:{if((c|0)==(b|0)){break a}while(1){c=c+ -4|0;b=i[c>>2];i[c>>2]=0;if(b){yk(b+12|0,i[b+16>>2]);zk(b,i[b+4>>2]);bp(b)}if((c|0)!=(d|0)){continue}break}e=i[a+24>>2]}b=e;i[a+28>>2]=d;bp(b)}yk(a+12|0,i[a+16>>2]);zk(a,i[a+4>>2]);bp(a)}}function fp(a){var b=0;b=1;a:{if((a|0)>=1024){b=8.98846567431158e+307;if((a|0)<2047){a=a+ -1023|0;break a}b=z;a=((a|0)<3069?a:3069)+ -2046|0;break a}if((a|0)>-1023){break a}b=2.2250738585072014e-308;if((a|0)>-2045){a=a+1022|0;break a}b=0;a=((a|0)>-3066?a:-3066)+2044|0}Cp(0,0);Cp(1,a+1023<<20);return b*+Dp()}function zd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=F-16|0;F=c;i[c+12>>2]=i[a+12>>2];d=i[b+20>>2];e=d;f=i[b+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+12|0,c+16|0);f=i[b+16>>2];e=i[b+20>>2]}i[c+8>>2]=i[a+16>>2];if((e|0)<0?1:(e|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+8|0,c+12|0)}F=c+16|0;return 1}function xe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=F-16|0;F=c;i[c+12>>2]=i[a+12>>2];d=i[b+20>>2];e=d;f=i[b+16>>2];if((d|0)<0?1:(d|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+12|0,c+16|0);f=i[b+16>>2];e=i[b+20>>2]}i[c+8>>2]=i[a+24>>2];if((e|0)<0?1:(e|0)<=0?f>>>0<=0:0){ca(b,i[b+4>>2],c+8|0,c+12|0)}F=c+16|0;return 1}function Tl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;Gm(a,b,c);d=i[a+96>>2];a=i[a+100>>2];if((d|0)!=(a|0)){a=(a-d|0)/12|0;e=a>>>0>1?a:1;b=i[b>>2];c=0;while(1){a=o(c,12)+d|0;i[a>>2]=i[b+(i[a>>2]<<2)>>2];i[a+4>>2]=i[b+(i[a+4>>2]<<2)>>2];i[a+8>>2]=i[b+(i[a+8>>2]<<2)>>2];c=c+1|0;if((e|0)!=(c|0)){continue}break}}}function Xl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=F-16|0;F=d;e=i[c>>2];i[c>>2]=0;i[d+8>>2]=e;Am(a,b,d+8|0);c=i[d+8>>2];i[d+8>>2]=0;if(c){Wb(c)}e=i[a+84>>2];c=i[a+88>>2]-e>>2;a:{if((c|0)>(b|0)){break a}b=b+1|0;if(b>>>0>c>>>0){Yl(a+84|0,b-c|0);break a}if(b>>>0>=c>>>0){break a}i[a+88>>2]=e+(b<<2)}F=d+16|0}function An(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=F-16|0;F=d;g=a;h=a;a:{if(!b){b=0;break a}c=b>>31;e=c+b^c;c=r(e);sn(d,e,0,0,0,c+81|0);c=(i[d+12>>2]^65536)+(16414-c<<16)|0;e=0+i[d+8>>2]|0;if(e>>>0>>0){c=c+1|0}f=b&-2147483648|c;c=i[d+4>>2];b=i[d>>2]}i[h>>2]=b;i[g+4>>2]=c;i[a+8>>2]=e;i[a+12>>2]=f;F=d+16|0}function zo(a,b,c,d,e){var f=0,g=0,h=0;f=F-16|0;F=f;if(-17-b>>>0>=c>>>0){g=Yn(a);a:{if(2147483623>b>>>0){i[f+8>>2]=b<<1;i[f+12>>2]=b+c;c=ao(i[Mn(f+12|0,f+8|0)>>2]);break a}c=-18}h=c+1|0;c=bo(h);if(e){Ln(c,g,e)}d=d-e|0;if(d){Ln(c+e|0,e+g|0,d)}if((b|0)!=10){bp(g)}co(a,c);eo(a,h);F=f+16|0;return}qo();x()}function da(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;h=i[c+8>>2];f=i[c+16>>2];g=i[c+12>>2];d=g;e=i[c+20>>2];if((d|0)>(e|0)?1:(d|0)>=(e|0)?h>>>0>f>>>0:0){b=j[f+i[c>>2]|0];d=e;k=f+1|0;if(k>>>0<1){d=d+1|0}i[c+16>>2]=k;i[c+20>>2]=d;i[a+4>>2]=b}return((g|0)>(e|0)?1:(g|0)>=(e|0)?h>>>0>f>>>0:0)|0}function Ql(a,b){var c=0,d=0,e=0,f=0;a:{if((b|0)==-1){break a}b=o(b,3);if((b|0)==-1){break a}d=-1;e=i[a>>2];f=i[e+(b<<2)>>2];a=-1;c=b+1|0;c=(c>>>0)%3|0?c:b+ -2|0;if((c|0)!=-1){a=i[(c<<2)+e>>2]}b=b+((b>>>0)%3|0?-1:2)|0;if((b|0)!=-1){d=i[(b<<2)+e>>2]}return(a|0)==(f|0)|(d|0)==(f|0)|(a|0)==(d|0)}return 1}function bn(a){var b=0,c=0,d=0,e=0,f=0;while(1){b=a;a=b+1|0;if(an(g[b|0])){continue}break}a:{b:{c:{c=g[b|0];switch(c+ -43|0){case 0:break b;case 2:break c;default:break a}}e=1}c=g[a|0];b=a;f=e}if(Mm(c)){while(1){d=(o(d,10)-g[b|0]|0)+48|0;a=g[b+1|0];b=b+1|0;if(Mm(a)){continue}break}}return f?d:0-d|0}function Ym(a,b,c){var d=0,e=0,f=0;a:{if((b|0)==1&a>>>0<0|b>>>0<1){d=a;break a}while(1){d=wp(a,b,10,0);e=H;f=e;e=up(d,e,10,0);c=c+ -1|0;g[c|0]=a-e|48;e=b>>>0>9;a=d;b=f;if(e){continue}break}}if(d){while(1){c=c+ -1|0;a=(d>>>0)/10|0;g[c|0]=d-o(a,10)|48;b=d>>>0>9;d=a;if(b){continue}break}}return c}function hd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=F-48|0;F=d;f=i[b+4>>2];b=i[b+12>>2];i[d+40>>2]=0;e=d+32|0;i[e>>2]=0;i[e+4>>2]=0;i[d+24>>2]=0;i[d+28>>2]=0;i[d+16>>2]=0;i[d+20>>2]=0;i[d+8>>2]=0;i[d+12>>2]=0;id(d,c,b,f,d+8|0);b=i[e>>2];if(b){i[d+36>>2]=b;bp(b)}i[a>>2]=i[d>>2];F=d+48|0}function cf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;c=F-16|0;F=c;d=a+40|0;Aa(c+8|0,d,i[a+8>>2],i[b+4>>2]-i[b>>2]>>2);d=ma(d,i[a+8>>2],b,i[c+8>>2]);a:{if(!d){break a}e=i[c+8>>2];i[c+8>>2]=0;b=i[a+32>>2];i[a+32>>2]=e;if(!b){break a}Wb(b)}a=i[c+8>>2];i[c+8>>2]=0;if(a){Wb(a)}F=c+16|0;return d|0}function Oi(a){a=a|0;var b=0;i[a+8>>2]=12332;i[a>>2]=12120;b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+80>>2];if(b){i[a+84>>2]=b;bp(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;bp(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;bp(b)}i[a+8>>2]=12568;b=i[a+44>>2];if(b){bp(b)}b=i[a+32>>2];if(b){bp(b)}return a|0}function qe(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;c=F-16|0;F=c;d=a+40|0;Aa(c+8|0,d,i[a+8>>2],i[b+4>>2]-i[b>>2]>>2);d=Y(d,i[a+8>>2],b,i[c+8>>2]);a:{if(!d){break a}e=i[c+8>>2];i[c+8>>2]=0;b=i[a+32>>2];i[a+32>>2]=e;if(!b){break a}Wb(b)}a=i[c+8>>2];i[c+8>>2]=0;if(a){Wb(a)}F=c+16|0;return d|0}function Aa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,h=0,j=0;e=F+ -64|0;F=e;f=I[i[i[b>>2]+44>>2]](b,c)|0;b=I[i[i[b>>2]+40>>2]](b,c)|0;h=Ba(e);j=i[c+56>>2];c=b;b=o(Sj(b),f);Ca(h,j,0,f<<24>>24,c,b,b>>31);b=ho(96);c=Fa(b,h);i[a>>2]=b;Ha(c,d);g[b+84|0]=1;i[b+72>>2]=i[b+68>>2];F=e- -64|0}function Do(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=F-16|0;F=f;g=+c;d=Sn(b);while(1){a:{e=Yn(b);n[f>>3]=g;h=b;e=Rn(e,d+1|0,f);b:{if((e|0)>=0){if(e>>>0<=d>>>0){break a}d=e;break b}d=d<<1|1}Un(h,d);continue}break}Un(b,e);d=i[b+4>>2];i[a>>2]=i[b>>2];i[a+4>>2]=d;i[a+8>>2]=i[b+8>>2];Vn(b);F=f+16|0}function be(a){a=a|0;var b=0;i[a>>2]=4804;b=i[a+152>>2];if(b){i[a+156>>2]=b;bp(b)}b=i[a+112>>2];if(b){i[a+116>>2]=b;bp(b)}b=i[a+96>>2];if(b){bp(b)}b=i[a+84>>2];if(b){bp(b)}b=i[a+72>>2];if(b){bp(b)}b=i[a+60>>2];if(b){bp(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}return a|0}function Pi(a){a=a|0;var b=0;i[a+8>>2]=12332;i[a>>2]=12120;b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+80>>2];if(b){i[a+84>>2]=b;bp(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;bp(b)}b=i[a+56>>2];if(b){i[a+60>>2]=b;bp(b)}i[a+8>>2]=12568;b=i[a+44>>2];if(b){bp(b)}b=i[a+32>>2];if(b){bp(b)}bp(a)}function Cd(a){a=a|0;var b=0;i[a>>2]=3240;b=i[a+152>>2];if(b){i[a+156>>2]=b;bp(b)}b=i[a+112>>2];if(b){i[a+116>>2]=b;bp(b)}b=i[a+96>>2];if(b){bp(b)}b=i[a+84>>2];if(b){bp(b)}b=i[a+72>>2];if(b){bp(b)}b=i[a+60>>2];if(b){bp(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}return a|0}function go(a,b,c){var d=0,e=0,f=0,h=0;f=F-16|0;F=f;e=c-b|0;if(e>>>0<=4294967279){a:{if(e>>>0<=10){$n(a,e);d=a;break a}h=ao(e)+1|0;d=bo(h);co(a,d);eo(a,h);aa(a,e)}while(1){if((b|0)!=(c|0)){_n(d,b);d=d+1|0;b=b+1|0;continue}break}g[f+15|0]=0;_n(d,f+15|0);F=f+16|0;return}qo();x()}function gg(a){var b=0,c=0;c=i[a+8>>2];if((c|0)>=2){b=+(c|0);b=v(ep(b)*b-n[a>>3]);if(q(b)<0x8000000000000000){H=q(b)>=1?b>0?~~s(u(b*2.3283064365386963e-10),4294967295)>>>0:~~v((b- +(~~b>>>0>>>0))*2.3283064365386963e-10)>>>0:0;return~~b>>>0}a=-2147483648}else{a=0}H=a;return 0}function Ni(a){a=a|0;var b=0;i[a>>2]=12332;b=i[a+88>>2];if(b){i[a+92>>2]=b;bp(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;bp(b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;bp(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=12568;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}return a|0}function En(a,b){var c=0,d=0,e=0,f=0;i[a>>2]=0;i[a+4>>2]=0;e=a;f=a;if(b){a=b;c=r(a);d=(c|32)+113&63;b=d&31;if(32<=(d&63)>>>0){d=a<>>32-b;b=a<>>0>>0?a+1|0:a}else{a=0;b=0}i[f+8>>2]=b;i[e+12>>2]=a}function Hl(a,b){var c=0;i[a+4>>2]=b;i[a>>2]=0;a:{b:{if(!b){break b}c=So(b,16916,16636);if(!c){break b}b=ho(56);Rf(b,c);c=i[a>>2];i[a>>2]=b;if(!c){break a}I[i[i[c>>2]+4>>2]](c);return a}c=ho(56);Pf(c,b);b=i[a>>2];i[a>>2]=c;if(!b){break a}I[i[i[b>>2]+4>>2]](b)}return a}function Vi(a){a=a|0;var b=0;i[a>>2]=12332;b=i[a+88>>2];if(b){i[a+92>>2]=b;bp(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;bp(b)}b=i[a+60>>2];if(b){i[a- -64>>2]=b;bp(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=12568;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}bp(a)}function Pj(a,b,c){var d=0;if((c|0)<0?1:(c|0)<=0?b>>>0<0:0){return 0}d=i[a>>2];c=i[a+4>>2]-d|0;a:{if(c>>>0>>0){Qj(a,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+4>>2]=b+d}b=a+24|0;c=b;d=b;a=i[b+4>>2];b=i[b>>2]+1|0;if(b>>>0<1){a=a+1|0}i[d>>2]=b;i[c+4>>2]=a;return 1}function Ha(a,b){var c=0,d=0;a:{if(i[a+64>>2]){break a}d=ho(32);Oj(d);c=i[a+64>>2];i[a+64>>2]=d;if(!c){break a}d=i[c>>2];if(d){i[c+4>>2]=d;bp(d)}bp(c)}c=Sj(i[a+28>>2]);c=o(c,g[a+24|0]);d=c;c=c>>31;if(Pj(i[a+64>>2],up(d,c,b,0),H)){Da(a,i[a+64>>2],d,c);i[a+80>>2]=b}}function Qm(a,b){var c=0,d=0,e=0;Ep(+a);c=Bp(1)|0;d=Bp(0)|0;e=c;c=c>>>20&2047;if((c|0)!=2047){if(!c){c=b;if(a==0){b=0}else{a=Qm(a*0x10000000000000000,b);b=i[b>>2]+ -64|0}i[c>>2]=b;return a}i[b>>2]=c+ -1022;Cp(0,d|0);Cp(1,e&-2146435073|1071644672);a=+Dp()}return a}function df(a){a=a|0;var b=0;i[a+40>>2]=1140;i[a>>2]=9756;b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=2248;b=i[a+36>>2];i[a+36>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Wb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}return a|0}function bi(a){var b=0;if(a){b=i[a+76>>2];if(b){i[a+80>>2]=b;bp(b)}b=i[a- -64>>2];if(b){i[a+68>>2]=b;bp(b)}b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}b=i[a+24>>2];if(b){i[a+28>>2]=b;bp(b)}b=i[a+12>>2];if(b){i[a+16>>2]=b;bp(b)}b=i[a>>2];if(b){i[a+4>>2]=b;bp(b)}bp(a)}}function Mf(a,b,c,d){var e=0;e=F-16|0;F=e;c=Nf(a,b,e+12|0,e+8|0,c);if(!i[c>>2]){b=ho(40);ro(b+16|0,d);ro(b+28|0,d+12|0);i[b+8>>2]=i[e+12>>2];i[b>>2]=0;i[b+4>>2]=0;i[c>>2]=b;d=i[i[a>>2]>>2];if(d){i[a>>2]=d;b=i[c>>2]}Kf(i[a+4>>2],b);i[a+8>>2]=i[a+8>>2]+1}F=e+16|0}function ni(a){var b=0;b=i[a+84>>2];if(b){i[a+88>>2]=b;bp(b)}b=i[a+72>>2];if(b){i[a+76>>2]=b;bp(b)}b=i[a+52>>2];if(b){i[a+56>>2]=b;bp(b)}b=i[a+40>>2];if(b){i[a+44>>2]=b;bp(b)}b=i[a+28>>2];if(b){i[a+32>>2]=b;bp(b)}b=i[a+12>>2];if(b){bp(b)}a=i[a>>2];if(a){bp(a)}}function uf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=F-96|0;F=e;f=Pf(e+40|0,c);vf(e,b,c);Vf(f,e);kd(e+24|0,i[e+28>>2]);wf(e+12|0,i[e+16>>2]);kd(e,i[e+4>>2]);Sf(a,f,d);i[f>>2]=10308;kd(f+28|0,i[f+32>>2]);wf(f+16|0,i[f+20>>2]);kd(f+4|0,i[f+8>>2]);F=e+96|0}function ef(a){a=a|0;var b=0;i[a+40>>2]=1140;i[a>>2]=9756;b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=2248;b=i[a+36>>2];i[a+36>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Wb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}bp(a)}function cn(a){var b=0,c=0;b=j[a+74|0];g[a+74|0]=b+ -1|b;if(l[a+20>>2]>l[a+28>>2]){I[i[a+36>>2]](a,0,0)|0}i[a+28>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;b=i[a>>2];if(b&4){i[a>>2]=b|32;return-1}c=i[a+44>>2]+i[a+48>>2]|0;i[a+8>>2]=c;i[a+4>>2]=c;return b<<27>>31}function sp(a,b,c,d){var e=0,f=0,g=0,h=0;e=b;f=e>>31;e=e>>31;a=a^e;g=a-e|0;h=(b^f)-((a>>>0>>0)+f|0)|0;e=d;f=e>>31;e=e>>31;a=c^e;e=wp(g,h,a-e|0,(d^f)-((a>>>0>>0)+f|0)|0);b=b^d;c=b>>31;a=b>>31;b=e^a;d=b-a|0;H=(c^H)-((b>>>0>>0)+c|0)|0;return d}function Pc(a,b){a=a|0;b=b|0;var c=0,d=0;c=i[a+72>>2];a:{if(!c){break a}i[c+4>>2]=a+60;if(!(I[i[i[c>>2]+12>>2]](c)|0)){break a}if(!(I[i[i[a>>2]+40>>2]](a)|0)){break a}if(!(I[i[i[a>>2]+44>>2]](a,b)|0)){break a}d=I[i[i[a>>2]+48>>2]](a,b)|0}return d|0}function Ca(a,b,c,d,e,f,h){var j=0;i[a>>2]=c;if(c){j=i[c+20>>2];i[a+8>>2]=i[c+16>>2];i[a+12>>2]=j;j=i[c+28>>2];i[a+16>>2]=i[c+24>>2];i[a+20>>2]=j}i[a+56>>2]=b;i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=f;i[a+44>>2]=h;g[a+32|0]=0;i[a+28>>2]=e;g[a+24|0]=d}function Oh(a,b){a=a|0;b=b|0;var c=0,d=0;a:{c=i[a+172>>2];a=i[a+176>>2];if((c|0)!=(a|0)){d=(a-c|0)/136|0;a=0;while(1){if(i[o(a,136)+c>>2]==(b|0)){break a}a=a+1|0;if(a>>>0>>0){continue}break}}return 0}a=o(a,136)+c|0;return(j[a+100|0]?a+4|0:0)|0}function Rc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=i[a+36>>2];if((c|0)==i[a+40>>2]){return 1}f=a+60|0;while(1){c=i[(d<<2)+c>>2];e=I[i[i[c>>2]+20>>2]](c,f,b)|0;if(e){d=d+1|0;c=i[a+36>>2];if(d>>>0>2]-c>>2>>>0){continue}}break}return e|0}function Ph(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{d=i[a+172>>2];c=i[a+176>>2];if((d|0)!=(c|0)){e=(c-d|0)/136|0;c=0;while(1){if(i[o(c,136)+d>>2]==(b|0)){break a}c=c+1|0;if(c>>>0>>0){continue}break}}return a+40|0}return(o(c,136)+d|0)+104|0}function Hm(a){a=a|0;var b=0,c=0,d=0;b=1;a:{if(!i[a+80>>2]){break a}c=i[a+8>>2];if((i[a+12>>2]-c|0)<=0){break a}while(1){b=i[(d<<2)+c>>2];b=Ia(b,b);if(b){d=d+1|0;c=i[a+8>>2];if((d|0)>2]-c>>2){continue}}break}b=(b|0)!=0}return b|0}function Jn(a,b,c){var d=0,e=0,f=0,g=0;e=F-16|0;F=e;b=b-a>>2;while(1){if(b){i[e+12>>2]=a;d=e+12|0;f=d;g=i[d>>2];d=b>>>1|0;i[f>>2]=g+(d<<2);f=(d^-1)+b|0;b=d;d=Kn(i[e+12>>2],c);b=d?f:b;a=d?i[e+12>>2]+4|0:a;continue}break}F=e+16|0;return a}function im(a,b,c){var d=0,e=0,f=0;if(c){d=c+28|0;Jb(i[d>>2]-i[c+24>>2]>>2,b);e=i[c+24>>2];f=i[d>>2];if((e|0)!=(f|0)){while(1){d=i[e>>2];if(d){Jb(i[d+24>>2],b);gm(a,b,d)}e=e+4|0;if((f|0)!=(e|0)){continue}break}}gm(a,b,c)}return(c|0)!=0}function Fj(a){a=a|0;var b=0,c=0,d=0;b=i[a+32>>2];d=i[a+36>>2];if((b|0)==(d|0)){return 1}while(1){a:{c=i[i[a+8>>2]+(i[b>>2]<<2)>>2];c=I[i[i[c>>2]+20>>2]](c,i[a+44>>2])|0;b=b+4|0;if((d|0)==(b|0)){break a}if(c){continue}}break}return c|0}function Jj(a,b){a=a|0;b=b|0;var c=0,d=0;c=F-16|0;F=c;i[c+12>>2]=i[i[b+4>>2]+80>>2];b=i[b+44>>2];d=i[b+20>>2];if((d|0)<0?1:(d|0)<=0?l[b+16>>2]<=0:0){ca(b,i[b+4>>2],c+12|0,c+16|0)}i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;F=c+16|0}function Qc(a){a=a|0;var b=0,c=0,d=0,e=0;b=i[a+36>>2];if((b|0)==i[a+40>>2]){return 1}e=a+60|0;while(1){b=i[(c<<2)+b>>2];d=I[i[i[b>>2]+16>>2]](b,e)|0;if(d){c=c+1|0;b=i[a+36>>2];if(c>>>0>2]-b>>2>>>0){continue}}break}return d|0}function Re(a){a=a|0;var b=0;i[a>>2]=8408;b=i[a+136>>2];if(b){i[a+140>>2]=b;bp(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+80>>2];if(b){bp(b)}b=i[a+68>>2];if(b){bp(b)}b=i[a+56>>2];if(b){bp(b)}b=i[a+44>>2];if(b){bp(b)}return a|0}function Ae(a){a=a|0;var b=0;i[a>>2]=6760;b=i[a+136>>2];if(b){i[a+140>>2]=b;bp(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+80>>2];if(b){bp(b)}b=i[a+68>>2];if(b){bp(b)}b=i[a+56>>2];if(b){bp(b)}b=i[a+44>>2];if(b){bp(b)}return a|0}function Wb(a){a=a|0;var b=0,c=0;if(a){b=i[a+88>>2];i[a+88>>2]=0;if(b){c=i[b+8>>2];if(c){i[b+12>>2]=c;bp(c)}bp(b)}b=i[a+68>>2];if(b){i[a+72>>2]=b;bp(b)}b=i[a+64>>2];i[a+64>>2]=0;if(b){c=i[b>>2];if(c){i[b+4>>2]=c;bp(c)}bp(b)}bp(a)}}function Sc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=i[a+36>>2];if((c|0)==i[a+40>>2]){return 1}while(1){c=i[(d<<2)+c>>2];e=I[i[i[c>>2]+24>>2]](c,b)|0;if(e){d=d+1|0;c=i[a+36>>2];if(d>>>0>2]-c>>2>>>0){continue}}break}return e|0}function Se(a){a=a|0;var b=0;i[a>>2]=8408;b=i[a+136>>2];if(b){i[a+140>>2]=b;bp(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+80>>2];if(b){bp(b)}b=i[a+68>>2];if(b){bp(b)}b=i[a+56>>2];if(b){bp(b)}b=i[a+44>>2];if(b){bp(b)}bp(a)}function Be(a){a=a|0;var b=0;i[a>>2]=6760;b=i[a+136>>2];if(b){i[a+140>>2]=b;bp(b)}b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+80>>2];if(b){bp(b)}b=i[a+68>>2];if(b){bp(b)}b=i[a+56>>2];if(b){bp(b)}b=i[a+44>>2];if(b){bp(b)}bp(a)}function Ga(a,b,c,d,e){var f=0,h=0,j=0;j=ho(32);f=Oj(j);h=i[a+64>>2];i[a+64>>2]=j;j=a;if(h){f=i[h>>2];if(f){i[h+4>>2]=f;bp(f)}bp(h);f=i[a+64>>2]}h=b;b=o(Sj(d),c);Ca(j,h,f,c,d,b,b>>31);Ha(a,e);g[a+84|0]=1;i[a+72>>2]=i[a+68>>2]}function zm(a,b){var c=0,d=0,e=0,f=0;c=F-16|0;F=c;d=i[a+12>>2];e=i[a+8>>2];f=i[b>>2];i[b>>2]=0;i[c+8>>2]=f;I[i[i[a>>2]+8>>2]](a,d-e>>2,c+8|0);b=i[c+8>>2];i[c+8>>2]=0;if(b){Wb(b)}F=c+16|0;return(i[a+12>>2]-i[a+8>>2]>>2)+ -1|0}function rp(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=o(e,f);g=c&65535;h=a&65535;i=o(g,h);f=(i>>>16|0)+o(f,g)|0;e=(f&65535)+o(e,h)|0;a=(o(b,c)+j|0)+o(a,d)+(f>>>16)+(e>>>16)|0;b=i&65535|e<<16;H=a;return b}function ba(a,b){a=a|0;b=b|0;var c=0,d=0;c=F-16|0;F=c;a=i[a+4>>2];a:{if((a|0)==-1){break a}g[c+15|0]=a;d=i[b+20>>2];if((d|0)>0?1:(d|0)>=0?l[b+16>>2]>0:0){break a}ca(b,i[b+4>>2],c+15|0,c+16|0)}F=c+16|0;return(a|0)!=-1|0}function Ao(a,b,c){var d=0,e=0,f=0;f=F-16|0;F=f;d=Tn(a);e=Sn(a);a:{if(d-e>>>0>=c>>>0){if(!c){break a}d=Yn(a);Ln(d+e|0,b,c);b=a;a=c+e|0;fo(b,a);g[f+15|0]=0;_n(a+d|0,f+15|0);break a}vo(a,d,(c+e|0)-d|0,e,e,0,c,b)}F=f+16|0}function Rj(a,b){var c=0,d=0;d=i[a>>2];c=i[a+4>>2]-d|0;a:{if(c>>>0>>0){Qj(a,b-c|0);break a}if(c>>>0<=b>>>0){break a}i[a+4>>2]=b+d}b=a+24|0;c=b;d=b;a=i[b+4>>2];b=i[b>>2]+1|0;if(b>>>0<1){a=a+1|0}i[d>>2]=b;i[c+4>>2]=a}function so(a,b,c){var d=0,e=0,f=0;d=F-16|0;F=d;if(4294967279>=c>>>0){a:{if(c>>>0<=10){$n(a,c);e=a;break a}f=ao(c)+1|0;e=bo(f);co(a,e);eo(a,f);aa(a,c)}Ln(e,b,c);g[d+15|0]=0;_n(c+e|0,d+15|0);F=d+16|0;return}qo();x()}function To(a,b,c){var d=0;d=i[a+16>>2];if(!d){i[a+36>>2]=1;i[a+24>>2]=c;i[a+16>>2]=b;return}a:{if((b|0)==(d|0)){if(i[a+24>>2]!=2){break a}i[a+24>>2]=c;return}g[a+54|0]=1;i[a+24>>2]=2;i[a+36>>2]=i[a+36>>2]+1}}function X(a,b){a=a|0;b=b|0;var c=0,d=0;i[b>>2]=2;c=i[b+8>>2];d=i[b+12>>2]-c|0;if(d>>>0<=4294967291){b=b+8|0;Rj(b,d+4|0);c=i[b>>2]}b=c+d|0;a=i[a+4>>2];g[b|0]=a;g[b+1|0]=a>>>8;g[b+2|0]=a>>>16;g[b+3|0]=a>>>24}function nf(a){var b=0,c=0;c=F-16|0;F=c;i[c+8>>2]=0;i[c+12>>2]=0;of(a,c+8|0);i[a+24>>2]=0;i[a+28>>2]=0;b=i[a+12>>2];i[a+16>>2]=b;if(b){i[a+16>>2]=b;bp(b)}b=i[a>>2];if(b){i[a+4>>2]=b;bp(b)}F=c+16|0;return a}function ad(a,b){a=a|0;b=b|0;var c=0,d=0;d=i[a+16>>2];a:{if(i[a+20>>2]-d>>2<=(b|0)){break a}b=i[(b<<2)+d>>2];if((b|0)<0){break a}a=i[i[a+36>>2]+(b<<2)>>2];c=i[a+32>>2];if(c){break a}c=i[a+8>>2]}return c|0}function Zm(a,b,c,d,e){var f=0;f=F-256|0;F=f;if(!(e&73728|(c|0)<=(d|0))){c=c-d|0;d=c>>>0<256;ip(f,b&255,d?c:256);if(!d){while(1){Tm(a,f,256);c=c+ -256|0;if(c>>>0>255){continue}break}}Tm(a,f,c)}F=f+256|0}function uo(a,b,c){var d=0,e=0,f=0,h=0;e=F-16|0;F=e;d=Tn(a);a:{if(d>>>0>=c>>>0){f=Yn(a);h=f;d=c;if(c){jp(h,b,d)}g[e+15|0]=0;_n(c+f|0,e+15|0);fo(a,c);break a}f=a;a=Sn(a);vo(f,d,c-d|0,a,0,a,c,b)}F=e+16|0}function Zc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=-1;e=i[a+16>>2];a:{if(i[a+20>>2]-e>>2<=(b|0)){break a}b=i[(b<<2)+e>>2];if((b|0)<0){break a}d=i[i[i[i[a+36>>2]+(b<<2)>>2]+16>>2]+(c<<2)>>2]}return d|0}function Yc(a,b){a=a|0;b=b|0;var c=0,d=0;d=i[a+16>>2];c=0;a:{if(i[a+20>>2]-d>>2<=(b|0)){break a}b=i[(b<<2)+d>>2];c=0;if((b|0)<0){break a}a=i[i[a+36>>2]+(b<<2)>>2];c=i[a+20>>2]-i[a+16>>2]>>2}return c|0}function Bc(a){i[a+32>>2]=0;i[a+12>>2]=-1;i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=1860;i[a+16>>2]=0;i[a+20>>2]=0;g[a+21|0]=0;g[a+22|0]=0;g[a+23|0]=0;g[a+24|0]=0;g[a+25|0]=0;g[a+26|0]=0;g[a+27|0]=0;g[a+28|0]=0}function xo(a,b){var c=0,d=0,e=0,f=0;e=F-16|0;F=e;if(b){d=Tn(a);c=Sn(a);f=c+b|0;if(d-c>>>0>>0){zo(a,d,f-d|0,c,c)}d=c;c=Yn(a);d=d+c|0;if(b){ip(d,0,b)}fo(a,f);g[e+15|0]=0;_n(c+f|0,e+15|0)}F=e+16|0}function xj(a){i[a+52>>2]=0;i[a>>2]=13484;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0;i[a+36>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;return a} function nd(a){a=a|0;var b=0;i[a>>2]=2248;b=i[a+36>>2];i[a+36>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Wb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}return a|0}function Hj(a,b){var c=0,d=0;a:{if((b|0)<0){break a}c=i[a+4>>2];if(i[c+12>>2]-i[c+8>>2]>>2<=(b|0)){break a}a=i[i[a+8>>2]+(i[i[a+20>>2]+(b<<2)>>2]<<2)>>2];d=I[i[i[a>>2]+36>>2]](a,b)|0}return d}function od(a){a=a|0;var b=0;i[a>>2]=2248;b=i[a+36>>2];i[a+36>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Wb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}bp(a)}function Ea(a){Ba(a);i[a+64>>2]=0;i[a+68>>2]=0;i[a+88>>2]=0;i[a+72>>2]=0;i[a+76>>2]=0;g[a+77|0]=0;g[a+78|0]=0;g[a+79|0]=0;g[a+80|0]=0;g[a+81|0]=0;g[a+82|0]=0;g[a+83|0]=0;g[a+84|0]=0;return a}function Mc(a,b,c){Fb(a,c);i[a+36>>2]=0;i[a+40>>2]=0;i[a>>2]=2032;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0;c=i[b>>2];i[b>>2]=0;i[a+72>>2]=c}function Da(a,b,c,d){var e=0;i[a>>2]=b;e=i[b+20>>2];i[a+8>>2]=i[b+16>>2];i[a+12>>2]=e;e=i[b+24>>2];b=i[b+28>>2];i[a+48>>2]=0;i[a+52>>2]=0;i[a+40>>2]=c;i[a+44>>2]=d;i[a+16>>2]=e;i[a+20>>2]=b}function kp(a){var b=0;b=j[a+74|0];g[a+74|0]=b+ -1|b;b=i[a>>2];if(b&8){i[a>>2]=b|32;return-1}i[a+4>>2]=0;i[a+8>>2]=0;b=i[a+44>>2];i[a+28>>2]=b;i[a+20>>2]=b;i[a+16>>2]=b+i[a+48>>2];return 0}function Ba(a){i[a+8>>2]=0;i[a+12>>2]=0;i[a>>2]=0;i[a+40>>2]=0;i[a+44>>2]=0;i[a+28>>2]=9;g[a+24|0]=1;i[a+56>>2]=-1;i[a+60>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;return a}function On(a,b){var c=0,d=0;c=j[a|0];d=j[b|0];a:{if(!c|(c|0)!=(d|0)){break a}while(1){d=j[b+1|0];c=j[a+1|0];if(!c){break a}b=b+1|0;a=a+1|0;if((c|0)==(d|0)){continue}break}}return c-d|0}function Zl(a,b){a=a|0;b=b|0;var c=0,d=0;Cm(a,b);a:{if((b|0)<0){break a}c=i[a+88>>2];d=i[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){jp(b,d,c)}i[a+88>>2]=b+c}}function zn(a,b,c,d,e,f,g,h,j){var k=0;k=F-16|0;F=k;tn(k,b,c,d,e,f,g,h,j^-2147483648);b=i[k+4>>2];i[a>>2]=i[k>>2];i[a+4>>2]=b;b=i[k+12>>2];i[a+8>>2]=i[k+8>>2];i[a+12>>2]=b;F=k+16|0}function yk(a,b){var c=0;if(b){yk(a,i[b>>2]);yk(a,i[b+4>>2]);c=b+28|0;a=i[c>>2];i[c>>2]=0;if(a){yk(a+12|0,i[a+16>>2]);zk(a,i[a+4>>2]);bp(a)}if(g[b+27|0]<=-1){bp(i[b+16>>2])}bp(b)}}function cp(a){var b=0,c=0;b=i[4804];c=a+3&-4;a=b+c|0;a:{if(a>>>0<=b>>>0?(c|0)>=1:0){break a}if(a>>>0>Ip()<<16>>>0){if(!(D(a|0)|0)){break a}}i[4804]=a;return b}i[4805]=48;return-1}function Gj(a,b){var c=0;a:{if((b|0)<0){break a}c=i[a+4>>2];if(i[c+12>>2]-i[c+8>>2]>>2<=(b|0)){break a}a=i[i[a+8>>2]+(i[i[a+20>>2]+(b<<2)>>2]<<2)>>2];I[i[i[a>>2]+32>>2]](a,b)|0}}function ro(a,b){var c=0,d=0,e=0;d=F-16|0;F=d;c=a;a:{if(!Wn(b)){i[c+8>>2]=i[b+8>>2];e=i[b+4>>2];i[c>>2]=i[b>>2];i[c+4>>2]=e;break a}so(a,i[b>>2],i[b+4>>2])}F=d+16|0;return a}function dj(a){a=a|0;var b=0;i[a+8>>2]=11784;i[a>>2]=12880;b=i[a+56>>2];if(b){i[a+60>>2]=b;bp(b)}i[a+8>>2]=12036;b=i[a+44>>2];if(b){bp(b)}b=i[a+32>>2];if(b){bp(b)}return a|0}function Zi(a){a=a|0;var b=0;i[a+8>>2]=12752;i[a>>2]=12588;b=i[a+56>>2];if(b){i[a+60>>2]=b;bp(b)}i[a+8>>2]=12568;b=i[a+44>>2];if(b){bp(b)}b=i[a+32>>2];if(b){bp(b)}return a|0}function ej(a){a=a|0;var b=0;i[a+8>>2]=11784;i[a>>2]=12880;b=i[a+56>>2];if(b){i[a+60>>2]=b;bp(b)}i[a+8>>2]=12036;b=i[a+44>>2];if(b){bp(b)}b=i[a+32>>2];if(b){bp(b)}bp(a)}function _i(a){a=a|0;var b=0;i[a+8>>2]=12752;i[a>>2]=12588;b=i[a+56>>2];if(b){i[a+60>>2]=b;bp(b)}i[a+8>>2]=12568;b=i[a+44>>2];if(b){bp(b)}b=i[a+32>>2];if(b){bp(b)}bp(a)}function Km(a,b,c){var d=0,e=0,f=0;a:{if(!c){break a}while(1){d=j[a|0];e=j[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}f=d-e|0}return f}function Qb(a,b){Fb(a,b);i[a+36>>2]=0;i[a+40>>2]=0;i[a>>2]=1596;i[a+44>>2]=0;i[a+48>>2]=0;i[a+52>>2]=0;i[a+56>>2]=0;i[a+60>>2]=0;i[a+64>>2]=0;i[a+68>>2]=0;i[a+72>>2]=0}function zl(a,b){var c=0;a:{if(i[a+4>>2]|!a){break a}c=ho(36);lm(c,b);i[c+32>>2]=0;i[c+24>>2]=0;i[c+28>>2]=0;b=i[a+4>>2];i[a+4>>2]=c;c=1;if(!b){break a}Al(b)}return c}function Fo(a,b,c,d){var e=0,f=0,g=0,h=0;f=a;a:{b:{e=c-b|0;if((e|0)<=9){if((Go(d)|0)>(e|0)){break b}}g=a,h=jo(d,b),i[g>>2]=h;a=0;break a}i[a>>2]=c;a=61}i[f+4>>2]=a}function hg(a){var b=0,c=0,d=0;b=i[a+12>>2];a=i[a+16>>2];c=(((b-a|0)+1|0)/64|0)+a<<3;b=c;a=a<<3;d=a;b=b+a|0;a=(c>>31)+(a>>31)|0;a=b>>>0>>0?a+1|0:a;H=a;return b}function W(a,b){a=a|0;b=b|0;var c=0;b=i[b+88>>2];if(!(!b|i[b>>2]!=2)){c=a;a=i[b+8>>2];i[c+4>>2]=j[a|0]|j[a+1|0]<<8|(j[a+2|0]<<16|j[a+3|0]<<24);c=1}return c|0}function Gh(a){a=a|0;var b=0;a:{b=i[a+64>>2];if(!b){break a}b=I[i[i[b>>2]+32>>2]](b)|0;if(!b){break a}i[a+60>>2]=((i[b+4>>2]-i[b>>2]>>2>>>0)/3|0)-i[b+40>>2]}}function Mb(a,b){a=a|0;b=b|0;a:{if(!(I[i[i[a>>2]+40>>2]](a)|0)){break a}if(!(I[i[i[a>>2]+44>>2]](a,b)|0)){break a}return I[i[i[a>>2]+48>>2]](a,b)|0}return 0}function yo(a,b){var c=0,d=0;c=F-16|0;F=c;a:{if(Wn(a)){d=i[a>>2];g[c+15|0]=0;_n(b+d|0,c+15|0);aa(a,b);break a}g[c+14|0]=0;_n(a+b|0,c+14|0);$n(a,b)}F=c+16|0}function _h(a){a=a|0;var b=0;i[a>>2]=11784;b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=12036;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}return a|0}function Yi(a){a=a|0;var b=0;i[a>>2]=12752;b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=12568;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}return a|0}function Um(a){var b=0,c=0,d=0;if(Mm(g[i[a>>2]])){while(1){b=i[a>>2];d=g[b|0];i[a>>2]=b+1;c=(o(c,10)+d|0)+ -48|0;if(Mm(g[b+1|0])){continue}break}}return c}function Nj(a,b,c){var d=0,e=0,f=0;if((b|0)>0){while(1){f=d<<2;e=i[f+a>>2];i[c+f>>2]=(e|0)>-1?e<<1:(e^-1)<<1|1;d=d+1|0;if((d|0)!=(b|0)){continue}break}}}function cj(a){a=a|0;var b=0;i[a>>2]=12752;b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=12568;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}bp(a)}function Ii(a){a=a|0;var b=0;i[a>>2]=11784;b=i[a+48>>2];if(b){i[a+52>>2]=b;bp(b)}i[a>>2]=12036;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}bp(a)}function jo(a,b){var c=0,d=0;if(a>>>0<=99999999){return ko(b,a)}c=(a>>>0)/1e8|0;d=a-o(c,1e8)|0;a=(d>>>0)/1e4|0;return mo(mo(lo(b,c),a),d-o(a,1e4)|0)}function jm(a,b){var c=0,d=0;a:{d=i[b>>2];if(!d){break a}c=i[a+28>>2];if(c>>>0>2]){i[b>>2]=0;i[c>>2]=d;i[a+28>>2]=c+4;break a}km(a+24|0,b)}}function bk(a,b){a:{b=uc(a,b);if((b|0)==(a+4|0)){break a}a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}a=bn(a);if((a|0)==-1){break a}return(a|0)!=0}return 0}function _o(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(Qo(a,i[b+8>>2],f)){Wo(b,c,d,e);return}a=i[a+8>>2];I[i[i[a>>2]+20>>2]](a,b,c,d,e,f)}function Ud(a){a=a|0;var b=0;a:{if(!i[a- -64>>2]|!i[a+68>>2]|(!i[a+44>>2]|!i[a+48>>2])){break a}if(!i[a+52>>2]){break a}b=i[a+56>>2]!=0}return b|0}function ck(a,b,c){b=uc(a,b);a:{if((b|0)==(a+4|0)){break a}a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}a=bn(a);if((a|0)==-1){break a}c=(a|0)!=0}return c}function Me(a){a=a|0;var b=0;a:{if(!i[a+48>>2]|!i[a+52>>2]|(!i[a+28>>2]|!i[a+32>>2])){break a}if(!i[a+36>>2]){break a}b=i[a+40>>2]!=0}return b|0}function Qn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=i[a+20>>2];d=i[a+16>>2]-e|0;d=d>>>0>c>>>0?c:d;hp(e,b,d);i[a+20>>2]=d+i[a+20>>2];return c|0}function gp(a,b,c,d){var e=0,f=0;f=d&65535;d=d>>>16&32767;a:{if((d|0)!=32767){e=4;if(d){break a}return a|c|(b|f)?3:2}e=!(a|c|(b|f))}return e}function dn(a){var b=0,c=0;b=F-16|0;F=b;c=-1;a:{if(cn(a)){break a}if((I[i[a+32>>2]](a,b+15|0,1)|0)!=1){break a}c=j[b+15|0]}F=b+16|0;return c}function ym(a){var b=0,c=0;b=i[a+20>>2];a:{if((i[a+24>>2]-b|0)<1){break a}b=i[b>>2];if((b|0)==-1){break a}c=i[i[a+8>>2]+(b<<2)>>2]}return c}function xm(a,b){var c=0;c=-1;a:{if((b|0)==-1|(b|0)>4){break a}b=o(b,12)+a|0;a=i[b+20>>2];if((i[b+24>>2]-a|0)<1){break a}c=i[a>>2]}return c}function $m(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=b;b=i[b>>2]+15&-16;i[c>>2]=b+16;d=a,e=Dn(i[b>>2],i[b+4>>2],i[b+8>>2],i[b+12>>2]),n[d>>3]=e}function Wm(a,b,c,d){if(a|b){while(1){c=c+ -1|0;g[c|0]=j[(a&15)+17488|0]|d;a=(b&15)<<28|a>>>4;b=b>>>4|0;if(a|b){continue}break}}return c}function Ul(a){a=a|0;var b=0;i[a>>2]=16592;b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+84>>2];if(b){i[a+88>>2]=b;bp(b)}Vl(a);return a|0}function Co(a,b){var c=0,d=0;c=F-16|0;F=c;d=F-16|0;F=d;Vn(c);F=d+16|0;Un(c,Tn(c));Do(a,c,b);a=c;if(Wn(c)){d=i[a>>2];Xn(a);bp(d)}F=c+16|0}function no(a,b){var c=0;if(b>>>0<=99){return lo(a,b)}if(b>>>0<=999){c=a;a=(b>>>0)/100|0;return po(oo(c,a),b-o(a,100)|0)}return mo(a,b)}function Wl(a){a=a|0;var b=0;i[a>>2]=16592;b=i[a+96>>2];if(b){i[a+100>>2]=b;bp(b)}b=i[a+84>>2];if(b){i[a+88>>2]=b;bp(b)}Vl(a);bp(a)}function zk(a,b){if(b){zk(a,i[b>>2]);zk(a,i[b+4>>2]);a=i[b+28>>2];if(a){i[b+32>>2]=a;bp(a)}if(g[b+27|0]<=-1){bp(i[b+16>>2])}bp(b)}}function pf(a){var b=0;b=F-16|0;F=b;i[b+8>>2]=0;i[b+12>>2]=0;of(a,b+8|0);i[a+24>>2]=0;i[a+28>>2]=0;i[a+16>>2]=i[a+12>>2];F=b+16|0}function en(a){var b=0,c=0;i[a+112>>2]=0;i[a+116>>2]=0;b=i[a+8>>2];c=b-i[a+4>>2]|0;i[a+120>>2]=c;i[a+124>>2]=c>>31;i[a+104>>2]=b}function ee(a){a=a|0;var b=0;i[a>>2]=5040;b=i[a+76>>2];if(b){bp(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}return a|0}function Vf(a,b){var c=0;c=a+4|0;if((c|0)!=(b|0)){xf(c,i[b>>2],b+4|0);Wf(a+16|0,i[b+12>>2],b+16|0);xf(a+28|0,i[b+24>>2],b+28|0)}}function Jc(a){a=a|0;var b=0;i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Wb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}return a|0}function Id(a){a=a|0;var b=0;i[a>>2]=3488;b=i[a+76>>2];if(b){bp(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}return a|0}function io(a,b){var c=0,d=0,e=0,f=0;c=mp(b);d=ho(c+13|0);i[d+8>>2]=0;i[d+4>>2]=c;i[d>>2]=c;e=a,f=hp(d+12|0,b,c+1|0),i[e>>2]=f}function Kb(a){a=a|0;var b=0;i[a>>2]=1432;b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}b=i[a+4>>2];if(b){i[a+8>>2]=b;bp(b)}return a|0}function kd(a,b){if(b){kd(a,i[b>>2]);kd(a,i[b+4>>2]);if(g[b+39|0]<=-1){bp(i[b+28>>2])}if(g[b+27|0]<=-1){bp(i[b+16>>2])}bp(b)}}function ak(a,b){var c=p(0);b=uc(a,b);if((b|0)!=(a+4|0)){a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}c=p(pn(a))}else{c=p(1)}return c}function Vo(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(Qo(a,i[b+8>>2],0)){To(b,c,d);return}a=i[a+8>>2];I[i[i[a>>2]+28>>2]](a,b,c,d)}function fe(a){a=a|0;var b=0;i[a>>2]=5040;b=i[a+76>>2];if(b){bp(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}bp(a)}function Sl(a){wm(a);i[a+84>>2]=0;i[a+88>>2]=0;i[a>>2]=16592;i[a+92>>2]=0;i[a+96>>2]=0;i[a+100>>2]=0;i[a+104>>2]=0;return a}function Kc(a){a=a|0;var b=0;i[a>>2]=1860;b=i[a+32>>2];i[a+32>>2]=0;if(b){Wb(b)}b=i[a+16>>2];if(b){i[a+20>>2]=b;bp(b)}bp(a)}function Jd(a){a=a|0;var b=0;i[a>>2]=3488;b=i[a+76>>2];if(b){bp(b)}i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}bp(a)}function mf(a){i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;return a}function ho(a){var b=0;a=a?a:1;a:{while(1){b=ap(a);if(b){break a}b=i[4822];if(b){I[b|0]();continue}break}C();x()}return b}function Xm(a,b,c){if(a|b){while(1){c=c+ -1|0;g[c|0]=a&7|48;a=(b&7)<<29|a>>>3;b=b>>>3|0;if(a|b){continue}break}}return c}function Uj(a,b){var c=0,d=0;d=i[a>>2];c=i[a+4>>2]-d|0;if(c>>>0>>0){Qj(a,b-c|0);return}if(c>>>0>b>>>0){i[a+4>>2]=b+d}}function wk(){var a=0;a=ho(24);i[a+4>>2]=0;i[a+8>>2]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a>>2]=a+4;i[a+12>>2]=a+16;return a|0}function nn(a,b){var c=0,d=p(0);c=F-16|0;F=c;on(c,a,b,0);d=wn(i[c>>2],i[c+4>>2],i[c+8>>2],i[c+12>>2]);F=c+16|0;return d}function qa(a,b,c,d,e){var f=0;f=b+ -1|0;if(f>>>0<=29){i[a+4>>2]=b;ra(a+8|0,c,(d<<2)+c|0);m[a+20>>2]=e}return f>>>0<30}function ma(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(i[c>>2]==i[c+4>>2]){na(a,b,i[d+80>>2],d);return 1}oa(a,b,c,d);return 1}function Bo(a,b){var c=0;c=F-32|0;F=c;Eo(c+8|0,c+21|0,c+32|0,b);b=F-16|0;F=b;go(a,c+21|0,i[c+8>>2]);F=b+16|0;F=c+32|0}function ie(a){a=a|0;var b=0;i[a>>2]=5264;nf(a+112|0);i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}return a|0}function gn(a,b,c,d,e,f,g,h,j){i[a>>2]=b;i[a+4>>2]=c;i[a+8>>2]=d;i[a+12>>2]=e&65535|(j>>>16&32768|e>>>16&32767)<<16}function Rf(a,b){i[a>>2]=10308;Qf(a+4|0);i[a+40>>2]=0;i[a+44>>2]=0;i[a+52>>2]=b;i[a+48>>2]=b;i[a>>2]=10492;return a}function Rd(a){a=a|0;var b=0;i[a>>2]=3724;nf(a+112|0);i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}return a|0}function Pf(a,b){i[a>>2]=10308;Qf(a+4|0);i[a+40>>2]=0;i[a+44>>2]=0;i[a+52>>2]=0;i[a+48>>2]=b;i[a>>2]=10492;return a}function Cc(a,b,c){a=a|0;b=b|0;c=c|0;i[a+4>>2]=b;b=i[i[i[b+4>>2]+8>>2]+(c<<2)>>2];i[a+12>>2]=c;i[a+8>>2]=b;return 1}function $e(a){ed(a);i[a+48>>2]=0;i[a+52>>2]=0;i[a+44>>2]=-1;i[a+40>>2]=1140;i[a>>2]=9756;i[a+56>>2]=0;i[a+60>>2]=0}function pn(a){var b=0,c=0;b=F-16|0;F=b;on(b,a,0,1);c=Dn(i[b>>2],i[b+4>>2],i[b+8>>2],i[b+12>>2]);F=b+16|0;return c}function cg(a){i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;i[a+32>>2]=0}function Ld(a){a=a|0;var b=0;if(!(!i[a+60>>2]|!i[a+44>>2]|(!i[a+48>>2]|!i[a+52>>2]))){b=i[a+56>>2]!=0}return b|0}function Ge(a){a=a|0;var b=0;if(!(!i[a+44>>2]|!i[a+28>>2]|(!i[a+32>>2]|!i[a+36>>2]))){b=i[a+40>>2]!=0}return b|0}function al(a){a=a|0;if(a){i[a>>2]=10384;kd(a+28|0,i[a+32>>2]);Bf(a+16|0,i[a+20>>2]);kd(a+4|0,i[a+8>>2]);bp(a)}}function je(a){a=a|0;var b=0;i[a>>2]=5264;nf(a+112|0);i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}bp(a)}function bg(a,b){var c=0,d=0;if(!(!a|!b|(a|0)==(b|0))){c=+(b>>>0)/+(a>>>0);d=1-c;c=-(c*ep(c)+d*ep(d))}return c}function Sd(a){a=a|0;var b=0;i[a>>2]=3724;nf(a+112|0);i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}bp(a)}function Qo(a,b,c){if(!c){return i[a+4>>2]==i[b+4>>2]}if((a|0)==(b|0)){return 1}return!On(i[a+4>>2],i[b+4>>2])}function zf(a){a=a|0;i[a>>2]=10308;kd(a+28|0,i[a+32>>2]);wf(a+16|0,i[a+20>>2]);kd(a+4|0,i[a+8>>2]);return a|0}function Oj(a){i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;i[a+24>>2]=0;i[a+28>>2]=0;return a}function Hf(a){a=a|0;i[a>>2]=10384;kd(a+28|0,i[a+32>>2]);Bf(a+16|0,i[a+20>>2]);kd(a+4|0,i[a+8>>2]);return a|0}function Tj(a){i[a>>2]=0;i[a+4>>2]=0;g[a+24|0]=0;i[a+16>>2]=0;i[a+20>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0;return a}function Mo(a){var b=0,c=0;a:{b=i[a>>2]+ -12|0;c=b+8|0;a=i[c>>2]+ -1|0;i[c>>2]=a;if((a|0)>-1){break a}bp(b)}}function ko(a,b){var c=0;if(b>>>0<=9999){return no(a,b)}c=a;a=(b>>>0)/1e4|0;return mo(no(c,a),b-o(a,1e4)|0)}function za(a){var b=0;b=A(8)|0;i[b>>2]=18596;i[b>>2]=18640;io(b+4|0,a);i[b>>2]=18688;B(b|0,18720,13);x()}function Tk(){var a=0;a=ho(48);i[a>>2]=10384;tf(a+4|0);i[a+40>>2]=0;i[a+44>>2]=0;i[a>>2]=10112;return a|0}function _j(a,b){b=uc(a,b);if((b|0)==(a+4|0)){return-1}a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}return bn(a)}function Jf(a){a=a|0;i[a>>2]=10308;kd(a+28|0,i[a+32>>2]);wf(a+16|0,i[a+20>>2]);kd(a+4|0,i[a+8>>2]);bp(a)}function If(a){a=a|0;i[a>>2]=10384;kd(a+28|0,i[a+32>>2]);Bf(a+16|0,i[a+20>>2]);kd(a+4|0,i[a+8>>2]);bp(a)}function Wi(a){a=a|0;var b=0;i[a>>2]=12568;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}return a|0}function Ji(a){a=a|0;var b=0;i[a>>2]=12036;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}return a|0}function $j(a,b,c){b=uc(a,b);if((b|0)!=(a+4|0)){a=b+28|0;if(g[b+39|0]<=-1){a=i[a>>2]}c=bn(a)}return c}function xd(a){a=a|0;var b=0;if(!(!i[a+52>>2]|(!i[a+44>>2]|!i[a+48>>2]))){b=i[a+56>>2]!=0}return b|0}function we(a){a=a|0;var b=0;if(!(!i[a+36>>2]|(!i[a+28>>2]|!i[a+32>>2]))){b=i[a+40>>2]!=0}return b|0}function Xi(a){a=a|0;var b=0;i[a>>2]=12568;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}bp(a)}function Ki(a){a=a|0;var b=0;i[a>>2]=12036;b=i[a+36>>2];if(b){bp(b)}b=i[a+24>>2];if(b){bp(b)}bp(a)}function Vd(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a- -64>>2]=b;c=1}return c|0}function jf(a){var b=0;i[a+12>>2]=0;i[a+16>>2]=0;b=i[a>>2];i[a+4>>2]=b;if(b){i[a+4>>2]=b;bp(b)}}function Ne(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a+48>>2]=b;c=1}return c|0}function Md(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a+60>>2]=b;c=1}return c|0}function He(a,b){a=a|0;b=b|0;var c=0;if(!(i[b+56>>2]|j[b+24|0]!=3)){i[a+44>>2]=b;c=1}return c|0}function $o(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(Qo(a,i[b+8>>2],f)){Wo(b,c,d,e)}}function Go(a){var b=0;b=o(32-r(a|1)|0,1233)>>>12|0;return(b-(l[(b<<2)+18496>>2]>a>>>0)|0)+1|0}function Vn(a){var b=0;b=a;a=0;while(1){if((a|0)!=3){i[(a<<2)+b>>2]=0;a=a+1|0;continue}break}}function ao(a){var b=0;if(a>>>0>=11){b=a+16&-16;a=b+ -1|0;a=(a|0)==11?b:a}else{a=10}return a}function ud(a){a=a|0;var b=0;i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}return a|0}function va(a){a=a|0;var b=0;i[a>>2]=1140;b=i[a+8>>2];if(b){i[a+12>>2]=b;bp(b)}return a|0}function kl(a){a=a|0;var b=0;if(a){b=i[a>>2];i[a>>2]=0;if(b){I[i[i[b>>2]+4>>2]](b)}bp(a)}}function yp(a,b){var c=0,d=0;c=b&31;d=(-1>>>c&a)<>>a}function Eo(a,b,c,d){if(!((b|0)==(c|0)|(d|0)>-1)){g[b|0]=45;d=0-d|0;b=b+1|0}Fo(a,b,c,d)}function sj(a){a=a|0;var b=0;b=a;a=i[a+56>>2];i[b+60>>2]=(i[a+100>>2]-i[a+96>>2]|0)/12}function xp(a){var b=0,c=0;while(1){c=b;if(a){a=a-1&a;b=b+1|0;continue}break}return c}function vd(a){a=a|0;var b=0;i[a>>2]=3184;b=i[a+32>>2];if(b){i[a+36>>2]=b;bp(b)}bp(a)}function Pk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return wl(b,c,d,e,f,6)|0}function Ok(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return wl(b,c,d,e,f,5)|0}function Nk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return yl(b,c,d,e,f,4)|0}function Mk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return yl(b,c,d,e,f,3)|0}function Lk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return xl(b,c,d,e,f,2)|0}function Kk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return xl(b,c,d,e,f,1)|0}function Jk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return wl(b,c,d,e,f,9)|0}function wa(a){a=a|0;var b=0;i[a>>2]=1140;b=i[a+8>>2];if(b){i[a+12>>2]=b;bp(b)}bp(a)}function el(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=p(f);Zf(i[a>>2],b,c,d,e,f)}function Rn(a,b,c){var d=0;d=F-16|0;F=d;i[d+12>>2]=c;a=Pn(a,b,c);F=d+16|0;return a}function wf(a,b){if(b){wf(a,i[b>>2]);wf(a,i[b+4>>2]);kd(b+20|0,i[b+24>>2]);bp(b)}}function Bf(a,b){if(b){Bf(a,i[b>>2]);Bf(a,i[b+4>>2]);kd(b+20|0,i[b+24>>2]);bp(b)}}function Eh(a,b){a=a|0;b=b|0;var c=0;c=a;a=i[b+64>>2];I[i[i[a>>2]+28>>2]](c,a)}function Wk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=p(f);Ef(a,b,c,d,e,f)}function Uo(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(Qo(a,i[b+8>>2],0)){To(b,c,d)}}function Ue(a){a=a|0;var b=0;i[a>>2]=8668;b=i[a+60>>2];if(b){bp(b)}return a|0}function Ee(a){a=a|0;var b=0;i[a>>2]=7032;b=i[a+60>>2];if(b){bp(b)}return a|0}function ri(a,b){a=a|0;b=b|0;return i[i[a+28>>2]+(b>>>3&536870908)>>2]>>>b&1}function nm(a,b,c){var d=0;d=F-16|0;F=d;i[d+12>>2]=c;om(a,b,d+12|0);F=d+16|0}function mo(a,b){var c=0;c=a;a=(b>>>0)/100|0;return po(po(c,a),b-o(a,100)|0)}function wo(a,b){var c=0;c=Sn(a);if(c>>>0>>0){xo(a,b-c|0);return}yo(a,b)}function Lh(a,b){a=a|0;b=b|0;a=i[a+64>>2];return I[i[i[a>>2]+16>>2]](a,b)|0}function Kh(a,b){a=a|0;b=b|0;a=i[a+64>>2];return I[i[i[a>>2]+12>>2]](a,b)|0}function Ij(a,b){a=a|0;b=b|0;i[a>>2]=0;i[a+4>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}function Dk(a){a=a|0;var b=0;if(a){b=i[a>>2];if(b){i[a+4>>2]=b;bp(b)}bp(a)}}function Dh(a,b){a=a|0;b=b|0;a=i[a+64>>2];return I[i[i[a>>2]+24>>2]](a,b)|0}function Ch(a,b){a=a|0;b=b|0;a=i[a+64>>2];return I[i[i[a>>2]+20>>2]](a,b)|0}function Ak(){var a=0;a=ho(12);i[a+8>>2]=0;i[a>>2]=0;i[a+4>>2]=0;return a|0}function sm(a,b,c){var d=0;d=F-16|0;F=d;n[d+8>>3]=c;tm(a,b,d+8|0);F=d+16|0}function po(a,b){b=k[(b<<1)+18272>>1];g[a|0]=b;g[a+1|0]=b>>>8;return a+2|0}function hf(a){i[a>>2]=0;i[a+4>>2]=0;i[a+16>>2]=0;i[a+8>>2]=0;i[a+12>>2]=0}function Y(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Z(a,b,c,i[d+80>>2],d)|0}function Sj(a){a=a+ -1|0;if(a>>>0<=10){return i[(a<<2)+16240>>2]}return-1}function Nn(a,b){var c=0,d=0;c=F-16|0;F=c;d=Kn(a,b);F=c+16|0;return d?b:a}function Hk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ul(b,c,d,e)|0}function Ve(a){a=a|0;var b=0;i[a>>2]=8668;b=i[a+60>>2];if(b){bp(b)}bp(a)}function Fe(a){a=a|0;var b=0;i[a>>2]=7032;b=i[a+60>>2];if(b){bp(b)}bp(a)}function Ec(a,b,c){a=a|0;b=b|0;c=c|0;return I[i[i[a>>2]+44>>2]](a,b,c)|0}function xk(a){a=a|0;if(a){yk(a+12|0,i[a+16>>2]);zk(a,i[a+4>>2]);bp(a)}}function uj(a,b){a=a|0;b=b|0;g[b+84|0]=1;i[b+72>>2]=i[b+68>>2];return 1}function Zd(a,b){a=a|0;b=b|0;if(b>>>0<=1){i[a+28>>2]=b}return b>>>0<2|0}function Hb(a,b,c){a=a|0;b=b|0;c=c|0;i[a+32>>2]=c;i[a+28>>2]=b;return 1}function Xo(a,b,c){if(!(i[a+28>>2]==1|i[a+4>>2]!=(b|0))){i[a+28>>2]=c}}function Hn(a,b,c){var d=0;d=F-16|0;F=d;a=Jn(a,b,c);F=d+16|0;return a}function _k(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Gl(a,b,c,d)|0}function Jh(a){a=a|0;a=i[a+64>>2];return I[i[i[a>>2]+32>>2]](a)|0}function Sk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Cl(b,c,d)|0}function Rk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Bl(b,c,d)|0}function Gk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return tl(b,c,d)|0}function Fk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return sl(b,c,d)|0}function Dc(a,b){a=a|0;b=b|0;i[a+12>>2]=-1;i[a+8>>2]=b;return 1}function qp(a,b){a=a|0;b=b|0;if(!i[4947]){i[4948]=b;i[4947]=a}}function bo(a){if(4294967295>>0){za(18200);x()}return ho(a)}function Ik(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return vl(b,c,d)|0}function lj(a){xj(a);i[a+56>>2]=0;i[a+60>>2]=0;i[a>>2]=13060}function lo(a,b){if(b>>>0<=9){return oo(a,b)}return po(a,b)}function Xj(a){i[a+4>>2]=0;i[a+8>>2]=0;i[a>>2]=a+4;return a}function uk(a){a=a|0;return(i[a+100>>2]-i[a+96>>2]|0)/12|0}function kf(a){i[a+12>>2]=0;i[a+16>>2]=0;i[a+4>>2]=i[a>>2]}function Sn(a){if(Wn(a)){return i[a+4>>2]}return j[a+11|0]}function zp(a){if(a){return 31-r(a+ -1^a)|0}return 32} function Tn(a){if(Wn(a)){a=Xn(a)+ -1|0}else{a=10}return a}function fl(a,b,c){a=a|0;b=b|0;c=c|0;Xf(i[a>>2]+4|0,b,c)}function hl(a,b,c){a=a|0;b=b|0;c=c|0;return Il(a,b,c)|0}function Zk(a,b,c){a=a|0;b=b|0;c=c|0;return Fl(a,b,c)|0}function Xe(a){a=a|0;i[a>>2]=8916;nf(a+96|0);return a|0}function Lo(a){a=a|0;i[a>>2]=18640;Mo(a+4|0);return a|0}function Ke(a){a=a|0;i[a>>2]=7292;nf(a+96|0);return a|0}function Qk(a,b,c){a=a|0;b=b|0;c=c|0;return zl(b,c)|0}function wm(a){i[a>>2]=16864;ip(a+4|0,0,80);return a}function to(a,b){if((a|0)!=(b|0)){uo(a,Yn(b),Sn(b))}}function dl(a,b,c){a=a|0;b=b|0;c=c|0;Yf(i[a>>2],b,c)}function rk(a){a=a|0;return i[a+12>>2]-i[a+8>>2]>>2}function rj(a){a=a|0;i[a+52>>2]=i[i[a+56>>2]+80>>2]}function pe(a,b){a=a|0;b=b|0;return ba(a+40|0,b)|0}function bf(a,b){a=a|0;b=b|0;return ta(a+40|0,b)|0}function Ye(a){a=a|0;i[a>>2]=8916;nf(a+96|0);bp(a)}function Xk(a,b,c){a=a|0;b=b|0;c=c|0;Cf(a+4|0,b,c)}function Lj(a){a=a|0;i[a+52>>2]=i[i[a+4>>2]+80>>2]}function Le(a){a=a|0;i[a>>2]=7292;nf(a+96|0);bp(a)}function Bk(a,b){a=a|0;b=b|0;return g[i[a>>2]+b|0]}function sk(a){a=a|0;if(a){I[i[i[a>>2]+4>>2]](a)}}function fo(a,b){if(Wn(a)){aa(a,b);return}$n(a,b)}function Yn(a){if(Wn(a)){return i[a>>2]}return a}function Pm(a,b){if(!a){return 0}return Om(a,b)}function Ck(a){a=a|0;return i[a+4>>2]-i[a>>2]|0}function ed(a){Bc(a);i[a+36>>2]=0;i[a>>2]=2248}function Vk(a,b,c){a=a|0;b=b|0;c=c|0;Df(a,b,c)}function Tm(a,b,c){if(!(j[a|0]&32)){lp(b,c,a)}}function ya(a,b){a=a|0;b=b|0;return g[b+24|0]}function pp(a){a=a|0;a=F-a&-16;F=a;return a|0}function Ob(a,b,c){a=a|0;b=b|0;c=c|0;return-1}function jl(a){a=a|0;return i[i[a>>2]+44>>2]}function il(a){a=a|0;return i[i[a>>2]+40>>2]}function wp(a,b,c,d){a=tp(a,b,c,d);return a}function vp(a,b,c,d){a=sp(a,b,c,d);return a}function up(a,b,c,d){a=rp(a,b,c,d);return a}function gl(a,b){a=a|0;b=b|0;El(i[a>>2],b)}function dk(a){i[a>>2]=1065353216;return a}function cl(a,b){a=a|0;b=b|0;_f(i[a>>2],b)}function an(a){return(a|0)==32|a+ -9>>>0<5}function Xn(a){return i[a+8>>2]&2147483647}function vk(a,b){a=a|0;b=b|0;i[a+80>>2]=b}function oo(a,b){g[a|0]=b+48;return a+1|0}function bl(a){a=a|0;return Hl(ho(8),a)|0}function eo(a,b){i[a+8>>2]=b|-2147483648}function Kn(a,b){return l[a>>2]>2]}function qi(a){a=a|0;return i[a+12>>2]}function pk(a){a=a|0;return i[a+60>>2]}function ok(a){a=a|0;return i[a+48>>2]}function nk(a){a=a|0;return i[a+40>>2]}function kk(a){a=a|0;return i[a+56>>2]}function jk(a){a=a|0;return i[a+80>>2]}function _d(a){a=a|0;return i[a+28>>2]}function $k(a){a=a|0;return i[a+44>>2]}function yd(a,b){a=a|0;b=b|0;return-1}function wd(a){a=a|0;return i[a+4>>2]}function mk(a){a=a|0;return j[a+32|0]}function lk(a){a=a|0;return g[a+24|0]}function ia(a,b){a=a|0;b=b|0;return 2}function ha(a,b){a=a|0;b=b|0;return 6}function Wn(a){return j[a+11|0]>>>7|0}function Pb(a,b){a=a|0;b=b|0;return 1}function Oo(a){a=a|0;return i[a+4>>2]}function Nb(a,b){a=a|0;b=b|0;return 0}function Yk(a,b){a=a|0;b=b|0;El(a,b)}function Uk(a,b){a=a|0;b=b|0;Gf(a,b)}function ek(a,b,c){m[a>>2]=p(c|0)/b}function Mm(a){return a+ -48>>>0<10}function Ln(a,b,c){if(c){hp(a,b,c)}}function Gn(a,b,c){return Hn(a,b,c)}function tk(){return Sl(ho(108))|0}function fg(a,b,c,d){eg(a,b,c,d,1)}function dg(a,b,c,d){eg(a,b,c,d,0)}function qk(){return wm(ho(84))|0}function ik(){return Ea(ho(96))|0}function hk(){return Ba(ho(64))|0}function gk(a){a=a|0;if(a){bp(a)}}function Ko(a){a=a|0;return 18573}function Po(a){a=a|0;Lo(a);bp(a)}function ea(a){a=a|0;return a|0}function Mn(a,b){return Nn(a,b)}function tc(a){a=a|0;bp(sc(a))}function ce(a){a=a|0;bp(be(a))}function _n(a,b){g[a|0]=j[b|0]}function Xc(a){a=a|0;bp(Wc(a))}function No(a){a=a|0;bp(Lo(a))}function Im(a){a=a|0;bp(Vl(a))}function Hi(a){a=a|0;bp(Gi(a))}function Fi(a){a=a|0;bp(Ei(a))}function Dd(a){a=a|0;bp(Cd(a))}function xa(a){a=a|0;return 1}function re(a){a=a|0;return 3}function ga(a){a=a|0;return 2}function Td(a){a=a|0;return 6}function Lc(a){a=a|0;return 0}function Kd(a){a=a|0;return 5}function Ed(a){a=a|0;return 4}function aa(a,b){i[a+4>>2]=b}function Ek(){return ho(1)|0}function $n(a,b){g[a+11|0]=b}function qo(){za(18472);x()}function Ho(){za(18536);x()}function fk(){return 16284}function fa(a){a=a|0;bp(a)}function co(a,b){i[a>>2]=b}function Lm(){return 19220}function Gc(a){g[a+28|0]=1}function op(a){a=a|0;F=a}function np(){return F|0}function dm(a,b){em(a,b)}function Un(a,b){wo(a,b)}function Lb(a){a=a|0;x()}function ql(){return 4}function pl(){return 3}function ol(){return 2}function nl(){return 1}function ml(){return 0}function ll(){return-1}function Io(){In();x()}function In(){C();x()}function Zn(a){a=a|0}function Jo(){x()}function V(){} // EMSCRIPTEN_END_FUNCS var I=Ap([null,ea,fa,ga,W,X,Y,$,ba,da,Aa,ha,ia,Lo,va,wa,xa,ja,la,ma,pa,ta,ua,ha,ya,Kb,Lb,Hb,Ib,Jo,Mb,Nb,Ob,Nb,Nb,xa,Pb,sc,tc,ga,Rb,Zb,Yb,Jc,Kc,Cc,Dc,Pb,Ec,Pb,Lc,Lc,Hc,Ic,Fc,Wc,Xc,Nc,Oc,Lc,Pc,Yc,Zc,_c,ad,Qc,Rc,Sc,Tc,Vc,nd,od,fd,gd,xa,jd,hd,ld,ud,vd,xa,wd,xd,Lc,yd,Nb,Lc,xa,zd,Ad,Lb,Lb,Cd,Dd,Ed,xd,Fd,Gd,Id,Jd,Kd,Ld,xa,Nb,Md,Nd,Od,Rd,Sd,Td,Ud,xa,Nb,Vd,Wd,Xd,ea,fa,Zd,_d,Yd,Lb,vd,xa,xd,ae,Lb,be,ce,Ed,xd,Fd,de,ee,fe,Kd,Ld,xa,Nb,Md,Nd,ge,ie,je,Td,Ud,xa,Nb,Vd,Wd,ke,ea,fa,Zd,_d,le,Lb,vd,Lc,xa,ne,nd,od,oe,pe,xa,re,se,qe,ea,fa,xa,wd,we,Lc,yd,Nb,xa,re,xe,ye,Ae,Be,Ed,we,Ce,De,Ee,Fe,Kd,Ge,xa,Nb,He,Ie,Je,Ke,Le,Td,Me,xa,Nb,Ne,Oe,Pe,ea,fa,Zd,_d,Yd,fa,xa,we,Qe,Re,Se,Ed,we,Ce,Te,Ue,Ve,Kd,Ge,xa,Nb,He,Ie,We,Xe,Ye,Td,Me,xa,Nb,Ne,Oe,Ze,ea,fa,Zd,_d,le,fa,Lc,xa,_e,df,ef,af,bf,xa,ga,cf,Hf,If,uf,Af,zf,Jf,If,Jf,Hh,Ih,xa,xa,Bh,xa,mj,Aj,Ej,Ch,Dh,Fj,Fh,Jh,Kh,Lh,Eh,Gh,Ei,Fi,Nh,Oh,Ph,Qh,$h,ai,qi,ri,wd,Gi,Hi,ti,Oh,Ph,ui,$h,vi,qi,ri,wd,_h,Ii,Zh,Ji,Ki,Oi,Pi,Qi,Ri,Ni,Vi,Li,Wi,Xi,Zi,_i,$i,aj,Yi,cj,dj,ej,fj,gj,nj,Lb,xa,Pb,Lc,Nb,Nb,tj,Lc,qj,rj,oj,sj,ea,fa,uj,vj,Lb,Lc,Ij,tj,xa,Jj,Kj,Lj,tj,Lc,Jj,Mj,Lj,Ul,Wl,Xl,Zl,Hm,Em,Tl,Vl,Im,Am,Cm,Gm,_m,$m,Qn,ea,fa,Ko,No,Oo,Po,ea,fa,Zn,Zn,Ro,$o,Zo,Uo,fa,_o,Yo,Vo]);function Ip(){return f.byteLength/65536|0}function Jp(Tp){Tp=Tp|0;var J=Ip()|0;var K=J+Tp|0;if(J=0;--P){O[48+P]=52+P;O[65+P]=P;O[97+P]=26+P}O[43]=62;O[47]=63;function Kp(Up,Vp,Wp){var Q,R,P=0,S=Vp,T=Wp.length,U=Vp+(T*3>>2)-(Wp[T-2]=="=")-(Wp[T-1]=="=");for(;P>4;if(S>2;if(S=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else{var str="";while(idx>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=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 stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i=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}var UTF16Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf-16le"):undefined;function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}var WASM_PAGE_SIZE=65536;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 STACK_BASE=5262688;var INITIAL_INITIAL_MEMORY=Module["INITIAL_MEMORY"]||16777216;if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE,"maximum":2147483648/WASM_PAGE_SIZE})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){runtimeExited=true}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnPreMain(cb){__ATMAIN__.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+="";err(what);ABORT=true;EXITSTATUS=1;what="abort("+what+"). Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}function hasPrefix(str,prefix){return String.prototype.startsWith?str.startsWith(prefix):str.indexOf(prefix)===0}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return hasPrefix(filename,dataURIPrefix)}var fileURIPrefix="file://";function isFileURI(filename){return hasPrefix(filename,fileURIPrefix)}var wasmBinaryFile="draco_encoder.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(){try{if(wasmBinary){return new Uint8Array(wasmBinary)}var binary=tryParseAsDataURI(wasmBinaryFile);if(binary){return binary}if(readBinary){return readBinary(wasmBinaryFile)}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)&&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()})}return Promise.resolve().then(getBinary)}function createWasm(){var info={"env":asmLibraryArg,"wasi_snapshot_preview1":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;wasmTable=Module["asm"]["__indirect_function_table"];removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiatedSource(output){receiveInstance(output["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).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(receiveInstantiatedSource,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiatedSource)})})}else{return instantiateArrayBuffer(receiveInstantiatedSource)}}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{}}var tempDouble;var tempI64;function array_bounds_check_error(idx,size){throw"Array index "+idx+" out of bounds: [0,"+size+")"}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){wasmTable.get(func)()}else{wasmTable.get(func)(callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}function demangle(func){return func}function demangleAll(text){var regex=/\b_Z[\w\d_]+/g;return text.replace(regex,function(x){var y=demangle(x);return x===y?x:y+" ["+x+"]"})}function dynCallLegacy(sig,ptr,args){if(args&&args.length){return Module["dynCall_"+sig].apply(null,[ptr].concat(args))}return Module["dynCall_"+sig].call(null,ptr)}function jsStackTrace(){var error=new Error;if(!error.stack){try{throw new Error}catch(e){error=e}if(!error.stack){return"(no stack trace available)"}}return error.stack.toString()}var ExceptionInfoAttrs={DESTRUCTOR_OFFSET:0,REFCOUNT_OFFSET:4,TYPE_OFFSET:8,CAUGHT_OFFSET:12,RETHROWN_OFFSET:13,SIZE:16};function ___cxa_allocate_exception(size){return _malloc(size+ExceptionInfoAttrs.SIZE)+ExceptionInfoAttrs.SIZE}function ExceptionInfo(excPtr){this.excPtr=excPtr;this.ptr=excPtr-ExceptionInfoAttrs.SIZE;this.set_type=function(type){HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]=type};this.get_type=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]};this.set_destructor=function(destructor){HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]=destructor};this.get_destructor=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(refcount){HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=refcount};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]=caught};this.get_caught=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]=rethrown};this.get_rethrown=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>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+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=value+1};this.release_ref=function(){var prev=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=prev-1;return prev===1}}var exceptionLast=0;function __ZSt18uncaught_exceptionv(){return __ZSt18uncaught_exceptionv.uncaught_exceptions>0}function ___cxa_throw(ptr,type,destructor){var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;if(!("uncaught_exception"in __ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exceptions=1}else{__ZSt18uncaught_exceptionv.uncaught_exceptions++}throw ptr}function _abort(){abort()}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}function _emscripten_get_heap_size(){return HEAPU8.length}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){requestedSize=requestedSize>>>0;var oldSize=_emscripten_get_heap_size();var maxHeapSize=2147483648;if(requestedSize>maxHeapSize){return false}var minHeapSize=16777216;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(minHeapSize,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;i255){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(i0){return}preRun();if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();preMain();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()()}}noExitRuntime=true;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.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