From 1bf4c0df70b1ef40ab162e588180bc282679d81d Mon Sep 17 00:00:00 2001 From: Noitidart Date: Wed, 6 Jan 2016 17:42:58 -0800 Subject: [PATCH] 1.3-night.rev2 * Lands OCR support so closes #22 --- amo-reviewer.txt | 2 + bootstrap.js | 247 +- locale/en-US/bootstrap.properties | 5 + modules/gocr/GOCRWorker.js | 35 + modules/gocr/gocr.js | 5857 +++++++++++++++++++++++++++++ modules/ocrad/OCRADWorker.js | 35 + modules/ocrad/ocrad.js | 47 + 7 files changed, 6226 insertions(+), 2 deletions(-) create mode 100644 amo-reviewer.txt create mode 100644 modules/gocr/GOCRWorker.js create mode 100644 modules/gocr/gocr.js create mode 100644 modules/ocrad/OCRADWorker.js create mode 100644 modules/ocrad/ocrad.js diff --git a/amo-reviewer.txt b/amo-reviewer.txt new file mode 100644 index 0000000..cc0e381 --- /dev/null +++ b/amo-reviewer.txt @@ -0,0 +1,2 @@ +ocrad.js - https://github.com/antimatter15/ocrad.js/blob/5b0af624ebfd70cf45ddf55c58eaf25718133ba3/ocrad.js +gocr.js - https://github.com/antimatter15/gocr.js/tree/d820e0651cf819e9649a837d83125724a2c1cc37 \ No newline at end of file diff --git a/bootstrap.js b/bootstrap.js index f5026b9..8e21d6e 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -2,7 +2,7 @@ const {classes: Cc, interfaces: Ci, manager: Cm, results: Cr, utils: Cu, Constructor: CC} = Components; Cm.QueryInterface(Ci.nsIComponentRegistrar); -const { BasePromiseWorker } = Cu.import('resource://gre/modules/PromiseWorker.jsm', {}); +const PromiseWorker = Cu.import('resource://gre/modules/PromiseWorker.jsm').BasePromiseWorker; Cu.import('resource:///modules/CustomizableUI.jsm'); Cu.import('resource://gre/modules/ctypes.jsm'); @@ -269,6 +269,13 @@ function get_gEMenuDomJson() { ['xul:menuitem', {label:myServices.sb.GetStringFromName('editor-menu_google-images'), oncommand:function(e){ gEditor.reverseSearch(e, 1) }}] ] ], + ['xul:menu', {label:myServices.sb.GetStringFromName('editor-menu_ocr')}, + ['xul:menupopup', {}, + ['xul:menuitem', {label:myServices.sb.GetStringFromName('editor-menu_gocr'), oncommand:function(e){ gEditor.ocr(e, 'gocr') }}], + ['xul:menuitem', {label:myServices.sb.GetStringFromName('editor-menu_ocrad'), oncommand:function(e){ gEditor.ocr(e, 'ocrad') }}], + ['xul:menuitem', {label:myServices.sb.GetStringFromName('editor-menu_ocr-all'), oncommand:function(e){ gEditor.ocr(e, 'all') }}] + ] + ], ['xul:menuseparator', {}], ['xul:menuitem', {label:myServices.sb.GetStringFromName('editor-menu_select-clear'), oncommand:function(e){ gEditor.clearSelection(e) }}], ['xul:menu', {label:myServices.sb.GetStringFromName('editor-menu_select-fullscreen')}, @@ -1739,9 +1746,101 @@ var gEditor = { appendToHistoryLog(serviceTypeStr, { d: new Date().getTime() }); + }, + ocr: function(e, serviceTypeStr) { + // serviceTypeStr valid values + // gocr + // ocrad + // all + + + + this.compositeSelection(); + + var cDOMWindow = gEditor.gBrowserDOMWindow; + var cWidth = gEditor.canComp.width; + var cHeight = gEditor.canComp.height; + + var serviceTypeFunc = { + gocr: function(aByteArr, dontTransfer) { + if (!bootstrap.GOCRWorker) { + bootstrap.GOCRWorker = new PromiseWorker(core.addon.path.content + 'modules/gocr/GOCRWorker.js'); + } + + return GOCRWorker.post('readByteArr', [aByteArr, cWidth, cHeight], null, dontTransfer ? undefined : [aByteArr]); + }, + ocrad: function(aByteArr, dontTransfer) { + if (!bootstrap.OCRADWorker) { + bootstrap.OCRADWorker = new PromiseWorker(core.addon.path.content + 'modules/ocrad/OCRADWorker.js'); + } + + return OCRADWorker.post('readByteArr', [aByteArr, cWidth, cHeight], null, dontTransfer ? undefined : [aByteArr]); + } + }; + + var cImgData = this.ctxComp.getImageData(0, 0, this.canComp.width, this.canComp.height); + console.log('cImgData:', cImgData); + gEditor.closeOutEditor(e); + + var promiseAllArr_ocr = []; + var allArr_serviceTypeStr = []; + if (serviceTypeStr == 'all') { + for (var p in serviceTypeFunc) { + promiseAllArr_ocr.push(serviceTypeFunc[p](cImgData.data.buffer, true)); + allArr_serviceTypeStr.push(p.toUpperCase()); + } + } else { + promiseAllArr_ocr.push(serviceTypeFunc[serviceTypeStr](cImgData.data.buffer)); + allArr_serviceTypeStr.push(serviceTypeStr); + } + + var promiseAll_ocr = Promise.all(promiseAllArr_ocr); + promiseAll_ocr.then( + function(aTxtArr) { + console.log('Fullfilled - promiseAll_ocr - ', aTxtArr); + cImgData = undefined; // when do all, we dont transfer, so it doesnt get neutered, so lets just do this, it might help it gc + var alertStrArr = []; + for (var i=0; i 1) { + alertStrArr.push(allArr_serviceTypeStr[i] + ':'); + alertStrArr.push(); + alertStrArr.push(); + } + alertStrArr.push(aTxtArr[i]); + } + var alertStr = alertStrArr.join('\n'); + Services.prompt.alert(cDOMWindow, 'NativeShot - OCR Results', alertStr); // :todo: hook this up to the notif-bar system once i rework it + if (allArr_serviceTypeStr.length == 1) { + copyTextToClip(alertStr, cDOMWindow); + } else { + var choices = ['All']; + for (var i=0; i= 2 && aVal[aVal.length-1] == SIC_TRANS_WORD && Array.isArray(aVal[aVal.length-2])) { + // to transfer in callback, set last element in arr to SIC_TRANS_WORD and 2nd to last element an array of the transferables // cannot transfer on promise reject, well can, but i didnt set it up as probably makes sense not to + console.error('doing transferrrrr'); + aVal.pop(); + bootstrap[workerScopeName].postMessage([callbackPendingId, aVal], aVal.pop()); + } else { + bootstrap[workerScopeName].postMessage([callbackPendingId, aVal]); + } + }, + function(aReason) { + console.error('aReject:', aReason); + bootstrap[workerScopeName].postMessage([callbackPendingId, ['promise_rejected', aReason]]); + } + ).catch( + function(aCatch) { + console.error('aCatch:', aCatch); + bootstrap[workerScopeName].postMessage([callbackPendingId, ['promise_rejected', aCatch]]); + } + ); + } else { + // assume array + if (rez_mainthread_call.length > 2 && rez_mainthread_call[rez_mainthread_call.length-1] == SIC_TRANS_WORD && Array.isArray(rez_mainthread_call[rez_mainthread_call.length-2])) { + // to transfer in callback, set last element in arr to SIC_TRANS_WORD and 2nd to last element an array of the transferables // cannot transfer on promise reject, well can, but i didnt set it up as probably makes sense not to + rez_mainthread_call.pop(); + bootstrap[workerScopeName].postMessage([callbackPendingId, rez_mainthread_call], rez_mainthread_call.pop()); + } else { + bootstrap[workerScopeName].postMessage([callbackPendingId, rez_mainthread_call]); + } + } + } + } + else { console.warn('funcName', funcName, 'not in scope of aFuncExecScope') } // else is intentionally on same line with console. so on finde replace all console. lines on release it will take this out + + }; + + var beforeInitListener = function(aMsgEvent) { + // note:all msgs from bootstrap must be postMessage([nameOfFuncInWorker, arg1, ...]) + var aMsgEventData = aMsgEvent.data; + if (aMsgEventData[0] == 'init') { + bootstrap[workerScopeName].removeEventListener('message', beforeInitListener); + bootstrap[workerScopeName].addEventListener('message', afterInitListener); + deferredMain_SICWorker.resolve(true); + if ('init' in aFuncExecScope) { + aFuncExecScope[aMsgEventData.shift()].apply(null, aMsgEventData); + } + } + }; + + // var lastCallbackId = -1; // dont do this, in case multi SICWorker's are sharing the same aFuncExecScope so now using new Date().getTime() in its place // link8888881 + bootstrap[workerScopeName].postMessageWithCallback = function(aPostMessageArr, aCB, aPostMessageTransferList) { + // lastCallbackId++; // link8888881 + sic_last_cb_id++; + var thisCallbackId = SIC_CB_PREFIX + sic_last_cb_id; // + lastCallbackId; // link8888881 + aFuncExecScope[thisCallbackId] = function() { + delete aFuncExecScope[thisCallbackId]; + // console.log('in mainthread callback trigger wrap, will apply aCB with these arguments:', arguments, 'turned into array:', Array.prototype.slice.call(arguments)); + aCB.apply(null, arguments[0]); + }; + aPostMessageArr.push(thisCallbackId); + // console.log('aPostMessageArr:', aPostMessageArr); + bootstrap[workerScopeName].postMessage(aPostMessageArr, aPostMessageTransferList); + }; + + bootstrap[workerScopeName].addEventListener('message', beforeInitListener); + bootstrap[workerScopeName].postMessage(['init', aCore]); + + } else { + deferredMain_SICWorker.reject('Something is loaded into bootstrap[workerScopeName] already'); + } + + return deferredMain_SICWorker.promise; + +} + function jsonToDOM(json, doc, nodes) { var namespaces = { @@ -3870,4 +4093,24 @@ function encodeFormData(data, charset, forArrBuf_nameDotExt, forArrBuf_mimeType) return postStream; } +function genericReject(aPromiseName, aPromiseToReject, aReason) { + var rejObj = { + name: aPromiseName, + aReason: aReason + }; + console.error('Rejected - ' + aPromiseName + ' - ', rejObj); + if (aPromiseToReject) { + aPromiseToReject.reject(rejObj); + } +} +function genericCatch(aPromiseName, aPromiseToReject, aCaught) { + var rejObj = { + name: aPromiseName, + aCaught: aCaught + }; + console.error('Caught - ' + aPromiseName + ' - ', rejObj); + if (aPromiseToReject) { + aPromiseToReject.reject(rejObj); + } +} // end - common helper functions \ No newline at end of file diff --git a/locale/en-US/bootstrap.properties b/locale/en-US/bootstrap.properties index 73f252c..8cefcf9 100644 --- a/locale/en-US/bootstrap.properties +++ b/locale/en-US/bootstrap.properties @@ -39,6 +39,11 @@ editor-menu_search-reverse=Reverse Image Search editor-menu_tineye=Tineye editor-menu_google-images=Google Images +editor-menu_ocr=Text Recognition (OCR) +editor-menu_ocrad=OCRAD +editor-menu_gocr=GOCR +editor-menu_ocr-all=All Methods + screenshot=Screenshot failed-upload=Failed Upload filepicker-title-save-screenshot=Save Screenshot to File As diff --git a/modules/gocr/GOCRWorker.js b/modules/gocr/GOCRWorker.js new file mode 100644 index 0000000..a1e5796 --- /dev/null +++ b/modules/gocr/GOCRWorker.js @@ -0,0 +1,35 @@ +importScripts('resource://gre/modules/workers/require.js'); +importScripts('chrome://nativeshot/content/modules/gocr/gocr.js'); + +// Setup PromiseWorker +var PromiseWorker = require('resource://gre/modules/workers/PromiseWorker.js'); + +// Instantiate AbstractWorker (see below). +var worker = new PromiseWorker.AbstractWorker() + +worker.dispatch = function(method, args = []) { + // Dispatch a call to method `method` with args `args` + return self[method](...args); +}; +worker.postMessage = function(...args) { + // Post a message to the main thread + self.postMessage(...args); +}; +worker.close = function() { + // Close the worker + self.close(); +}; +worker.log = function(...args) { + // Log (or discard) messages (optional) + dump('Worker: ' + args.join(' ') + '\n'); +}; + +// Connect it to message port. +self.addEventListener('message', msg => worker.handleMessage(msg)); + +function readByteArr(aImgBuf, aWidth, aHeight) { + console.info('GOCR aImgBuf:', aImgBuf, 'aWidth:', aWidth, 'aHeight:', aHeight, ''); + var cImgData = new ImageData(new Uint8ClampedArray(aImgBuf), aWidth, aHeight); + var txt = GOCR(cImgData); + return txt; +} \ No newline at end of file diff --git a/modules/gocr/gocr.js b/modules/gocr/gocr.js new file mode 100644 index 0000000..172330f --- /dev/null +++ b/modules/gocr/gocr.js @@ -0,0 +1,5857 @@ +function GOCR(image){ + Module = { + arguments: ['-i', 'in.pnm', '-f', 'UTF8'] + } + + if(image.getContext) image = image.getContext('2d'); + if(image.getImageData) image = image.getImageData(0, 0, image.canvas.width, image.canvas.height); + // if(image.data){ + var width = image.width, height = image.height; + var header = "P5\n" + width + " " + height + "\n255\n"; + var dst = new Uint8Array(header.length + width * height); + var src = image.data; + var srcLength = src.length | 0, srcLength_16 = (srcLength - 16) | 0; + var j = header.length; + for(var i = 0; i < j; i++){ + dst[i] = header.charCodeAt(i) // write the header + } + var coeff_r = 4899, coeff_g = 9617, coeff_b = 1868; + for (var i = 0; i <= srcLength_16; i += 16, j += 4) { + dst[j] = (src[i] * coeff_r + src[i+1] * coeff_g + src[i+2] * coeff_b + 8192) >> 14; + dst[j + 1] = (src[i+4] * coeff_r + src[i+5] * coeff_g + src[i+6] * coeff_b + 8192) >> 14; + dst[j + 2] = (src[i+8] * coeff_r + src[i+9] * coeff_g + src[i+10] * coeff_b + 8192) >> 14; + dst[j + 3] = (src[i+12] * coeff_r + src[i+13] * coeff_g + src[i+14] * coeff_b + 8192) >> 14; + } + for (; i < srcLength; i += 4, ++j) { + dst[j] = (src[i] * coeff_r + src[i+1] * coeff_g + src[i+2] * coeff_b + 8192) >> 14; + } + var recognizedText = ""; + var utf8; + Module['preRun'] = function(){ + utf8 = new Runtime.UTF8Processor(); + FS.writeFile('/in.pnm', dst, { encoding: 'binary' }) + } + + Module['stdout'] = function(x){ + recognizedText += utf8.processCChar(x) + } + // Module['print'] = function(text) { + // console.log('print', text) + // } + // Module['abort'] = function(){ + // console.log('aborted') + // } + // Module['printErr'] = function(text) { + // console.error(text) + // } +// Note: For maximum-speed code, see "Optimizing Code" on the Emscripten wiki, https://github.com/kripken/emscripten/wiki/Optimizing-Code +// Note: Some Emscripten settings may limit the speed of the generated code. +// The Module object: Our interface to the outside world. We import +// and export values on it, and do the work to get that through +// closure compiler if necessary. There are various ways Module can be used: +// 1. Not defined. We create it here +// 2. A function parameter, function(Module) { ..generated code.. } +// 3. pre-run appended it, var Module = {}; ..generated code.. +// 4. External script tag defines var Module. +// We need to do an eval in order to handle the closure compiler +// case, where this code here is minified but Module was defined +// elsewhere (e.g. case 4 above). We also need to check if Module +// already exists (e.g. case 3 above). +// Note that if you want to run closure, and also to use Module +// after the generated code, you will need to define var Module = {}; +// before the code. Then that object will be used in the code, and you +// can continue to use Module afterwards as well. +var Module; +if (!Module) Module = eval('(function() { try { return Module || {} } catch(e) { return {} } })()'); +// Sometimes an existing Module object exists with properties +// meant to overwrite the default module functionality. Here +// we collect those properties and reapply _after_ we configure +// the current environment's defaults to avoid having to be so +// defensive during initialization. +var moduleOverrides = {}; +for (var key in Module) { + if (Module.hasOwnProperty(key)) { + moduleOverrides[key] = Module[key]; + } +} +// The environment setup code below is customized to use Module. +// *** Environment setup code *** +var ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof require === 'function'; +var ENVIRONMENT_IS_WEB = typeof window === 'object'; +var ENVIRONMENT_IS_WORKER = typeof importScripts === 'function'; +var ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER; +if (ENVIRONMENT_IS_NODE) { + // Expose functionality in the same simple way that the shells work + // Note that we pollute the global namespace here, otherwise we break in node + Module['print'] = function print(x) { + process['stdout'].write(x + '\n'); + }; + Module['printErr'] = function printErr(x) { + process['stderr'].write(x + '\n'); + }; + var nodeFS = require('fs'); + var nodePath = require('path'); + Module['read'] = function read(filename, binary) { + filename = nodePath['normalize'](filename); + var ret = nodeFS['readFileSync'](filename); + // The path is absolute if the normalized version is the same as the resolved. + if (!ret && filename != nodePath['resolve'](filename)) { + filename = path.join(__dirname, '..', 'src', filename); + ret = nodeFS['readFileSync'](filename); + } + if (ret && !binary) ret = ret.toString(); + return ret; + }; + Module['readBinary'] = function readBinary(filename) { return Module['read'](filename, true) }; + Module['load'] = function load(f) { + globalEval(read(f)); + }; + Module['arguments'] = process['argv'].slice(2); + module['exports'] = Module; +} +else if (ENVIRONMENT_IS_SHELL) { + Module['print'] = print; + if (typeof printErr != 'undefined') Module['printErr'] = printErr; // not present in v8 or older sm + if (typeof read != 'undefined') { + Module['read'] = read; + } else { + Module['read'] = function read() { throw 'no read() available (jsc?)' }; + } + Module['readBinary'] = function readBinary(f) { + return read(f, 'binary'); + }; + if (typeof scriptArgs != 'undefined') { + Module['arguments'] = scriptArgs; + } else if (typeof arguments != 'undefined') { + Module['arguments'] = arguments; + } + this['Module'] = Module; + eval("if (typeof gc === 'function' && gc.toString().indexOf('[native code]') > 0) var gc = undefined"); // wipe out the SpiderMonkey shell 'gc' function, which can confuse closure (uses it as a minified name, and it is then initted to a non-falsey value unexpectedly) +} +else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) { + Module['read'] = function read(url) { + var xhr = new XMLHttpRequest(); + xhr.open('GET', url, false); + xhr.send(null); + return xhr.responseText; + }; + if (typeof arguments != 'undefined') { + Module['arguments'] = arguments; + } + if (typeof console !== 'undefined') { + Module['print'] = function print(x) { + console.log(x); + }; + Module['printErr'] = function printErr(x) { + console.log(x); + }; + } else { + // Probably a worker, and without console.log. We can do very little here... + var TRY_USE_DUMP = false; + Module['print'] = (TRY_USE_DUMP && (typeof(dump) !== "undefined") ? (function(x) { + dump(x); + }) : (function(x) { + // self.postMessage(x); // enable this if you want stdout to be sent as messages + })); + } + if (ENVIRONMENT_IS_WEB) { + this['Module'] = Module; + } else { + Module['load'] = importScripts; + } +} +else { + // Unreachable because SHELL is dependant on the others + throw 'Unknown runtime environment. Where are we?'; +} +function globalEval(x) { + eval.call(null, x); +} +if (!Module['load'] == 'undefined' && Module['read']) { + Module['load'] = function load(f) { + globalEval(Module['read'](f)); + }; +} +if (!Module['print']) { + Module['print'] = function(){}; +} +if (!Module['printErr']) { + Module['printErr'] = Module['print']; +} +if (!Module['arguments']) { + Module['arguments'] = []; +} +// *** Environment setup code *** +// Closure helpers +Module.print = Module['print']; +Module.printErr = Module['printErr']; +// Callbacks +Module['preRun'] = []; +Module['postRun'] = []; +// Merge back in the overrides +for (var key in moduleOverrides) { + if (moduleOverrides.hasOwnProperty(key)) { + Module[key] = moduleOverrides[key]; + } +} +// === Auto-generated preamble library stuff === +//======================================== +// Runtime code shared with compiler +//======================================== +var Runtime = { + stackSave: function () { + return STACKTOP; + }, + stackRestore: function (stackTop) { + STACKTOP = stackTop; + }, + forceAlign: function (target, quantum) { + quantum = quantum || 4; + if (quantum == 1) return target; + if (isNumber(target) && isNumber(quantum)) { + return Math.ceil(target/quantum)*quantum; + } else if (isNumber(quantum) && isPowerOfTwo(quantum)) { + return '(((' +target + ')+' + (quantum-1) + ')&' + -quantum + ')'; + } + return 'Math.ceil((' + target + ')/' + quantum + ')*' + quantum; + }, + isNumberType: function (type) { + return type in Runtime.INT_TYPES || type in Runtime.FLOAT_TYPES; + }, + isPointerType: function isPointerType(type) { + return type[type.length-1] == '*'; +}, + isStructType: function isStructType(type) { + if (isPointerType(type)) return false; + if (isArrayType(type)) return true; + if (/?/.test(type)) return true; // { i32, i8 } etc. - anonymous struct types + // See comment in isStructPointerType() + return type[0] == '%'; +}, + INT_TYPES: {"i1":0,"i8":0,"i16":0,"i32":0,"i64":0}, + FLOAT_TYPES: {"float":0,"double":0}, + or64: function (x, y) { + var l = (x | 0) | (y | 0); + var h = (Math.round(x / 4294967296) | Math.round(y / 4294967296)) * 4294967296; + return l + h; + }, + and64: function (x, y) { + var l = (x | 0) & (y | 0); + var h = (Math.round(x / 4294967296) & Math.round(y / 4294967296)) * 4294967296; + return l + h; + }, + xor64: function (x, y) { + var l = (x | 0) ^ (y | 0); + var h = (Math.round(x / 4294967296) ^ Math.round(y / 4294967296)) * 4294967296; + return l + h; + }, + getNativeTypeSize: function (type) { + switch (type) { + case 'i1': case 'i8': return 1; + case 'i16': return 2; + case 'i32': return 4; + case 'i64': return 8; + case 'float': return 4; + case 'double': return 8; + default: { + if (type[type.length-1] === '*') { + return Runtime.QUANTUM_SIZE; // A pointer + } else if (type[0] === 'i') { + var bits = parseInt(type.substr(1)); + assert(bits % 8 === 0); + return bits/8; + } else { + return 0; + } + } + } + }, + getNativeFieldSize: function (type) { + return Math.max(Runtime.getNativeTypeSize(type), Runtime.QUANTUM_SIZE); + }, + dedup: function dedup(items, ident) { + var seen = {}; + if (ident) { + return items.filter(function(item) { + if (seen[item[ident]]) return false; + seen[item[ident]] = true; + return true; + }); + } else { + return items.filter(function(item) { + if (seen[item]) return false; + seen[item] = true; + return true; + }); + } +}, + set: function set() { + var args = typeof arguments[0] === 'object' ? arguments[0] : arguments; + var ret = {}; + for (var i = 0; i < args.length; i++) { + ret[args[i]] = 0; + } + return ret; +}, + STACK_ALIGN: 8, + getAlignSize: function (type, size, vararg) { + // we align i64s and doubles on 64-bit boundaries, unlike x86 + if (vararg) return 8; + if (!vararg && (type == 'i64' || type == 'double')) return 8; + if (!type) return Math.min(size, 8); // align structures internally to 64 bits + return Math.min(size || (type ? Runtime.getNativeFieldSize(type) : 0), Runtime.QUANTUM_SIZE); + }, + calculateStructAlignment: function calculateStructAlignment(type) { + type.flatSize = 0; + type.alignSize = 0; + var diffs = []; + var prev = -1; + var index = 0; + type.flatIndexes = type.fields.map(function(field) { + index++; + var size, alignSize; + if (Runtime.isNumberType(field) || Runtime.isPointerType(field)) { + size = Runtime.getNativeTypeSize(field); // pack char; char; in structs, also char[X]s. + alignSize = Runtime.getAlignSize(field, size); + } else if (Runtime.isStructType(field)) { + if (field[1] === '0') { + // this is [0 x something]. When inside another structure like here, it must be at the end, + // and it adds no size + // XXX this happens in java-nbody for example... assert(index === type.fields.length, 'zero-length in the middle!'); + size = 0; + if (Types.types[field]) { + alignSize = Runtime.getAlignSize(null, Types.types[field].alignSize); + } else { + alignSize = type.alignSize || QUANTUM_SIZE; + } + } else { + size = Types.types[field].flatSize; + alignSize = Runtime.getAlignSize(null, Types.types[field].alignSize); + } + } else if (field[0] == 'b') { + // bN, large number field, like a [N x i8] + size = field.substr(1)|0; + alignSize = 1; + } else if (field[0] === '<') { + // vector type + size = alignSize = Types.types[field].flatSize; // fully aligned + } else if (field[0] === 'i') { + // illegal integer field, that could not be legalized because it is an internal structure field + // it is ok to have such fields, if we just use them as markers of field size and nothing more complex + size = alignSize = parseInt(field.substr(1))/8; + assert(size % 1 === 0, 'cannot handle non-byte-size field ' + field); + } else { + assert(false, 'invalid type for calculateStructAlignment'); + } + if (type.packed) alignSize = 1; + type.alignSize = Math.max(type.alignSize, alignSize); + var curr = Runtime.alignMemory(type.flatSize, alignSize); // if necessary, place this on aligned memory + type.flatSize = curr + size; + if (prev >= 0) { + diffs.push(curr-prev); + } + prev = curr; + return curr; + }); + if (type.name_[0] === '[') { + // arrays have 2 elements, so we get the proper difference. then we scale here. that way we avoid + // allocating a potentially huge array for [999999 x i8] etc. + type.flatSize = parseInt(type.name_.substr(1))*type.flatSize/2; + } + type.flatSize = Runtime.alignMemory(type.flatSize, type.alignSize); + if (diffs.length == 0) { + type.flatFactor = type.flatSize; + } else if (Runtime.dedup(diffs).length == 1) { + type.flatFactor = diffs[0]; + } + type.needsFlattening = (type.flatFactor != 1); + return type.flatIndexes; + }, + generateStructInfo: function (struct, typeName, offset) { + var type, alignment; + if (typeName) { + offset = offset || 0; + type = (typeof Types === 'undefined' ? Runtime.typeInfo : Types.types)[typeName]; + if (!type) return null; + if (type.fields.length != struct.length) { + printErr('Number of named fields must match the type for ' + typeName + ': possibly duplicate struct names. Cannot return structInfo'); + return null; + } + alignment = type.flatIndexes; + } else { + var type = { fields: struct.map(function(item) { return item[0] }) }; + alignment = Runtime.calculateStructAlignment(type); + } + var ret = { + __size__: type.flatSize + }; + if (typeName) { + struct.forEach(function(item, i) { + if (typeof item === 'string') { + ret[item] = alignment[i] + offset; + } else { + // embedded struct + var key; + for (var k in item) key = k; + ret[key] = Runtime.generateStructInfo(item[key], type.fields[i], alignment[i]); + } + }); + } else { + struct.forEach(function(item, i) { + ret[item[1]] = alignment[i]; + }); + } + return ret; + }, + dynCall: function (sig, ptr, args) { + if (args && args.length) { + if (!args.splice) args = Array.prototype.slice.call(args); + args.splice(0, 0, ptr); + return Module['dynCall_' + sig].apply(null, args); + } else { + return Module['dynCall_' + sig].call(null, ptr); + } + }, + functionPointers: [], + addFunction: function (func) { + for (var i = 0; i < Runtime.functionPointers.length; i++) { + if (!Runtime.functionPointers[i]) { + Runtime.functionPointers[i] = func; + return 2*(1 + i); + } + } + throw 'Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS.'; + }, + removeFunction: function (index) { + Runtime.functionPointers[(index-2)/2] = null; + }, + getAsmConst: function (code, numArgs) { + // code is a constant string on the heap, so we can cache these + if (!Runtime.asmConstCache) Runtime.asmConstCache = {}; + var func = Runtime.asmConstCache[code]; + if (func) return func; + var args = []; + for (var i = 0; i < numArgs; i++) { + args.push(String.fromCharCode(36) + i); // $0, $1 etc + } + return Runtime.asmConstCache[code] = eval('(function(' + args.join(',') + '){ ' + Pointer_stringify(code) + ' })'); // new Function does not allow upvars in node + }, + warnOnce: function (text) { + if (!Runtime.warnOnce.shown) Runtime.warnOnce.shown = {}; + if (!Runtime.warnOnce.shown[text]) { + Runtime.warnOnce.shown[text] = 1; + Module.printErr(text); + } + }, + funcWrappers: {}, + getFuncWrapper: function (func, sig) { + assert(sig); + if (!Runtime.funcWrappers[func]) { + Runtime.funcWrappers[func] = function dynCall_wrapper() { + return Runtime.dynCall(sig, func, arguments); + }; + } + return Runtime.funcWrappers[func]; + }, + UTF8Processor: function () { + var buffer = []; + var needed = 0; + this.processCChar = function (code) { + code = code & 0xFF; + if (buffer.length == 0) { + if ((code & 0x80) == 0x00) { // 0xxxxxxx + return String.fromCharCode(code); + } + buffer.push(code); + if ((code & 0xE0) == 0xC0) { // 110xxxxx + needed = 1; + } else if ((code & 0xF0) == 0xE0) { // 1110xxxx + needed = 2; + } else { // 11110xxx + needed = 3; + } + return ''; + } + if (needed) { + buffer.push(code); + needed--; + if (needed > 0) return ''; + } + var c1 = buffer[0]; + var c2 = buffer[1]; + var c3 = buffer[2]; + var c4 = buffer[3]; + var ret; + if (buffer.length == 2) { + ret = String.fromCharCode(((c1 & 0x1F) << 6) | (c2 & 0x3F)); + } else if (buffer.length == 3) { + ret = String.fromCharCode(((c1 & 0x0F) << 12) | ((c2 & 0x3F) << 6) | (c3 & 0x3F)); + } else { + // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae + var codePoint = ((c1 & 0x07) << 18) | ((c2 & 0x3F) << 12) | + ((c3 & 0x3F) << 6) | (c4 & 0x3F); + ret = String.fromCharCode( + Math.floor((codePoint - 0x10000) / 0x400) + 0xD800, + (codePoint - 0x10000) % 0x400 + 0xDC00); + } + buffer.length = 0; + return ret; + } + this.processJSString = function processJSString(string) { + string = unescape(encodeURIComponent(string)); + var ret = []; + for (var i = 0; i < string.length; i++) { + ret.push(string.charCodeAt(i)); + } + return ret; + } + }, + stackAlloc: function (size) { var ret = STACKTOP;STACKTOP = (STACKTOP + size)|0;STACKTOP = (((STACKTOP)+7)&-8); return ret; }, + staticAlloc: function (size) { var ret = STATICTOP;STATICTOP = (STATICTOP + size)|0;STATICTOP = (((STATICTOP)+7)&-8); return ret; }, + dynamicAlloc: function (size) { var ret = DYNAMICTOP;DYNAMICTOP = (DYNAMICTOP + size)|0;DYNAMICTOP = (((DYNAMICTOP)+7)&-8); if (DYNAMICTOP >= TOTAL_MEMORY) enlargeMemory();; return ret; }, + alignMemory: function (size,quantum) { var ret = size = Math.ceil((size)/(quantum ? quantum : 8))*(quantum ? quantum : 8); return ret; }, + makeBigInt: function (low,high,unsigned) { var ret = (unsigned ? ((+((low>>>0)))+((+((high>>>0)))*(+4294967296))) : ((+((low>>>0)))+((+((high|0)))*(+4294967296)))); return ret; }, + GLOBAL_BASE: 8, + QUANTUM_SIZE: 4, + __dummy__: 0 +} +//======================================== +// Runtime essentials +//======================================== +var __THREW__ = 0; // Used in checking for thrown exceptions. +var ABORT = false; // whether we are quitting the application. no code should run after this. set in exit() and abort() +var EXITSTATUS = 0; +var undef = 0; +// tempInt is used for 32-bit signed values or smaller. tempBigInt is used +// for 32-bit unsigned values or more than 32 bits. TODO: audit all uses of tempInt +var tempValue, tempInt, tempBigInt, tempInt2, tempBigInt2, tempPair, tempBigIntI, tempBigIntR, tempBigIntS, tempBigIntP, tempBigIntD, tempDouble, tempFloat; +var tempI64, tempI64b; +var tempRet0, tempRet1, tempRet2, tempRet3, tempRet4, tempRet5, tempRet6, tempRet7, tempRet8, tempRet9; +function assert(condition, text) { + if (!condition) { + abort('Assertion failed: ' + text); + } +} +var globalScope = this; +// C calling interface. A convenient way to call C functions (in C files, or +// defined with extern "C"). +// +// Note: LLVM optimizations can inline and remove functions, after which you will not be +// able to call them. Closure can also do so. To avoid that, add your function to +// the exports using something like +// +// -s EXPORTED_FUNCTIONS='["_main", "_myfunc"]' +// +// @param ident The name of the C function (note that C++ functions will be name-mangled - use extern "C") +// @param returnType The return type of the function, one of the JS types 'number', 'string' or 'array' (use 'number' for any C pointer, and +// 'array' for JavaScript arrays and typed arrays; note that arrays are 8-bit). +// @param argTypes An array of the types of arguments for the function (if there are no arguments, this can be ommitted). Types are as in returnType, +// except that 'array' is not possible (there is no way for us to know the length of the array) +// @param args An array of the arguments to the function, as native JS values (as in returnType) +// Note that string arguments will be stored on the stack (the JS string will become a C string on the stack). +// @return The return value, as a native JS value (as in returnType) +function ccall(ident, returnType, argTypes, args) { + return ccallFunc(getCFunc(ident), returnType, argTypes, args); +} +Module["ccall"] = ccall; +// Returns the C function with a specified identifier (for C++, you need to do manual name mangling) +function getCFunc(ident) { + try { + var func = Module['_' + ident]; // closure exported function + if (!func) func = eval('_' + ident); // explicit lookup + } catch(e) { + } + assert(func, 'Cannot call unknown function ' + ident + ' (perhaps LLVM optimizations or closure removed it?)'); + return func; +} +// Internal function that does a C call using a function, not an identifier +function ccallFunc(func, returnType, argTypes, args) { + var stack = 0; + function toC(value, type) { + if (type == 'string') { + if (value === null || value === undefined || value === 0) return 0; // null string + value = intArrayFromString(value); + type = 'array'; + } + if (type == 'array') { + if (!stack) stack = Runtime.stackSave(); + var ret = Runtime.stackAlloc(value.length); + writeArrayToMemory(value, ret); + return ret; + } + return value; + } + function fromC(value, type) { + if (type == 'string') { + return Pointer_stringify(value); + } + assert(type != 'array'); + return value; + } + var i = 0; + var cArgs = args ? args.map(function(arg) { + return toC(arg, argTypes[i++]); + }) : []; + var ret = fromC(func.apply(null, cArgs), returnType); + if (stack) Runtime.stackRestore(stack); + return ret; +} +// Returns a native JS wrapper for a C function. This is similar to ccall, but +// returns a function you can call repeatedly in a normal way. For example: +// +// var my_function = cwrap('my_c_function', 'number', ['number', 'number']); +// alert(my_function(5, 22)); +// alert(my_function(99, 12)); +// +function cwrap(ident, returnType, argTypes) { + var func = getCFunc(ident); + return function() { + return ccallFunc(func, returnType, argTypes, Array.prototype.slice.call(arguments)); + } +} +Module["cwrap"] = cwrap; +// Sets a value in memory in a dynamic way at run-time. Uses the +// type data. This is the same as makeSetValue, except that +// makeSetValue is done at compile-time and generates the needed +// code then, whereas this function picks the right code at +// run-time. +// Note that setValue and getValue only do *aligned* writes and reads! +// Note that ccall uses JS types as for defining types, while setValue and +// getValue need LLVM types ('i8', 'i32') - this is a lower-level operation +function setValue(ptr, value, type, noSafe) { + type = type || 'i8'; + if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit + switch(type) { + case 'i1': HEAP8[(ptr)]=value; break; + case 'i8': HEAP8[(ptr)]=value; break; + case 'i16': HEAP16[((ptr)>>1)]=value; break; + case 'i32': HEAP32[((ptr)>>2)]=value; break; + case 'i64': (tempI64 = [value>>>0,(tempDouble=value,(+(Math_abs(tempDouble))) >= (+1) ? (tempDouble > (+0) ? ((Math_min((+(Math_floor((tempDouble)/(+4294967296)))), (+4294967295)))|0)>>>0 : (~~((+(Math_ceil((tempDouble - +(((~~(tempDouble)))>>>0))/(+4294967296))))))>>>0) : 0)],HEAP32[((ptr)>>2)]=tempI64[0],HEAP32[(((ptr)+(4))>>2)]=tempI64[1]); break; + case 'float': HEAPF32[((ptr)>>2)]=value; break; + case 'double': HEAPF64[((ptr)>>3)]=value; break; + default: abort('invalid type for setValue: ' + type); + } +} +Module['setValue'] = setValue; +// Parallel to setValue. +function getValue(ptr, type, noSafe) { + type = type || 'i8'; + if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit + switch(type) { + case 'i1': return HEAP8[(ptr)]; + case 'i8': return HEAP8[(ptr)]; + case 'i16': return HEAP16[((ptr)>>1)]; + case 'i32': return HEAP32[((ptr)>>2)]; + case 'i64': return HEAP32[((ptr)>>2)]; + case 'float': return HEAPF32[((ptr)>>2)]; + case 'double': return HEAPF64[((ptr)>>3)]; + default: abort('invalid type for setValue: ' + type); + } + return null; +} +Module['getValue'] = getValue; +var ALLOC_NORMAL = 0; // Tries to use _malloc() +var ALLOC_STACK = 1; // Lives for the duration of the current function call +var ALLOC_STATIC = 2; // Cannot be freed +var ALLOC_DYNAMIC = 3; // Cannot be freed except through sbrk +var ALLOC_NONE = 4; // Do not allocate +Module['ALLOC_NORMAL'] = ALLOC_NORMAL; +Module['ALLOC_STACK'] = ALLOC_STACK; +Module['ALLOC_STATIC'] = ALLOC_STATIC; +Module['ALLOC_DYNAMIC'] = ALLOC_DYNAMIC; +Module['ALLOC_NONE'] = ALLOC_NONE; +// allocate(): This is for internal use. You can use it yourself as well, but the interface +// is a little tricky (see docs right below). The reason is that it is optimized +// for multiple syntaxes to save space in generated code. So you should +// normally not use allocate(), and instead allocate memory using _malloc(), +// initialize it with setValue(), and so forth. +// @slab: An array of data, or a number. If a number, then the size of the block to allocate, +// in *bytes* (note that this is sometimes confusing: the next parameter does not +// affect this!) +// @types: Either an array of types, one for each byte (or 0 if no type at that position), +// or a single type which is used for the entire block. This only matters if there +// is initial data - if @slab is a number, then this does not matter at all and is +// ignored. +// @allocator: How to allocate memory, see ALLOC_* +function allocate(slab, types, allocator, ptr) { + var zeroinit, size; + if (typeof slab === 'number') { + zeroinit = true; + size = slab; + } else { + zeroinit = false; + size = slab.length; + } + var singleType = typeof types === 'string' ? types : null; + var ret; + if (allocator == ALLOC_NONE) { + ret = ptr; + } else { + ret = [_malloc, Runtime.stackAlloc, Runtime.staticAlloc, Runtime.dynamicAlloc][allocator === undefined ? ALLOC_STATIC : allocator](Math.max(size, singleType ? 1 : types.length)); + } + if (zeroinit) { + var ptr = ret, stop; + assert((ret & 3) == 0); + stop = ret + (size & ~3); + for (; ptr < stop; ptr += 4) { + HEAP32[((ptr)>>2)]=0; + } + stop = ret + size; + while (ptr < stop) { + HEAP8[((ptr++)|0)]=0; + } + return ret; + } + if (singleType === 'i8') { + if (slab.subarray || slab.slice) { + HEAPU8.set(slab, ret); + } else { + HEAPU8.set(new Uint8Array(slab), ret); + } + return ret; + } + var i = 0, type, typeSize, previousType; + while (i < size) { + var curr = slab[i]; + if (typeof curr === 'function') { + curr = Runtime.getFunctionIndex(curr); + } + type = singleType || types[i]; + if (type === 0) { + i++; + continue; + } + if (type == 'i64') type = 'i32'; // special case: we have one i32 here, and one i32 later + setValue(ret+i, curr, type); + // no need to look up size unless type changes, so cache it + if (previousType !== type) { + typeSize = Runtime.getNativeTypeSize(type); + previousType = type; + } + i += typeSize; + } + return ret; +} +Module['allocate'] = allocate; +function Pointer_stringify(ptr, /* optional */ length) { + // TODO: use TextDecoder + // Find the length, and check for UTF while doing so + var hasUtf = false; + var t; + var i = 0; + while (1) { + t = HEAPU8[(((ptr)+(i))|0)]; + if (t >= 128) hasUtf = true; + else if (t == 0 && !length) break; + i++; + if (length && i == length) break; + } + if (!length) length = i; + var ret = ''; + if (!hasUtf) { + var MAX_CHUNK = 1024; // split up into chunks, because .apply on a huge string can overflow the stack + var curr; + while (length > 0) { + curr = String.fromCharCode.apply(String, HEAPU8.subarray(ptr, ptr + Math.min(length, MAX_CHUNK))); + ret = ret ? ret + curr : curr; + ptr += MAX_CHUNK; + length -= MAX_CHUNK; + } + return ret; + } + var utf8 = new Runtime.UTF8Processor(); + for (i = 0; i < length; i++) { + t = HEAPU8[(((ptr)+(i))|0)]; + ret += utf8.processCChar(t); + } + return ret; +} +Module['Pointer_stringify'] = Pointer_stringify; +// Given a pointer 'ptr' to a null-terminated UTF16LE-encoded string in the emscripten HEAP, returns +// a copy of that string as a Javascript String object. +function UTF16ToString(ptr) { + var i = 0; + var str = ''; + while (1) { + var codeUnit = HEAP16[(((ptr)+(i*2))>>1)]; + if (codeUnit == 0) + return str; + ++i; + // fromCharCode constructs a character from a UTF-16 code unit, so we can pass the UTF16 string right through. + str += String.fromCharCode(codeUnit); + } +} +Module['UTF16ToString'] = UTF16ToString; +// Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr', +// null-terminated and encoded in UTF16LE form. The copy will require at most (str.length*2+1)*2 bytes of space in the HEAP. +function stringToUTF16(str, outPtr) { + for(var i = 0; i < str.length; ++i) { + // charCodeAt returns a UTF-16 encoded code unit, so it can be directly written to the HEAP. + var codeUnit = str.charCodeAt(i); // possibly a lead surrogate + HEAP16[(((outPtr)+(i*2))>>1)]=codeUnit; + } + // Null-terminate the pointer to the HEAP. + HEAP16[(((outPtr)+(str.length*2))>>1)]=0; +} +Module['stringToUTF16'] = stringToUTF16; +// Given a pointer 'ptr' to a null-terminated UTF32LE-encoded string in the emscripten HEAP, returns +// a copy of that string as a Javascript String object. +function UTF32ToString(ptr) { + var i = 0; + var str = ''; + while (1) { + var utf32 = HEAP32[(((ptr)+(i*4))>>2)]; + if (utf32 == 0) + return str; + ++i; + // Gotcha: fromCharCode constructs a character from a UTF-16 encoded code (pair), not from a Unicode code point! So encode the code point to UTF-16 for constructing. + if (utf32 >= 0x10000) { + var ch = utf32 - 0x10000; + str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF)); + } else { + str += String.fromCharCode(utf32); + } + } +} +Module['UTF32ToString'] = UTF32ToString; +// Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr', +// null-terminated and encoded in UTF32LE form. The copy will require at most (str.length+1)*4 bytes of space in the HEAP, +// but can use less, since str.length does not return the number of characters in the string, but the number of UTF-16 code units in the string. +function stringToUTF32(str, outPtr) { + var iChar = 0; + for(var iCodeUnit = 0; iCodeUnit < str.length; ++iCodeUnit) { + // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! We must decode the string to UTF-32 to the heap. + var codeUnit = str.charCodeAt(iCodeUnit); // possibly a lead surrogate + if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) { + var trailSurrogate = str.charCodeAt(++iCodeUnit); + codeUnit = 0x10000 + ((codeUnit & 0x3FF) << 10) | (trailSurrogate & 0x3FF); + } + HEAP32[(((outPtr)+(iChar*4))>>2)]=codeUnit; + ++iChar; + } + // Null-terminate the pointer to the HEAP. + HEAP32[(((outPtr)+(iChar*4))>>2)]=0; +} +Module['stringToUTF32'] = stringToUTF32; +function demangle(func) { + try { + if (typeof func === 'number') func = Pointer_stringify(func); + if (func[0] !== '_') return func; + if (func[1] !== '_') return func; // C function + if (func[2] !== 'Z') return func; + switch (func[3]) { + case 'n': return 'operator new()'; + case 'd': return 'operator delete()'; + } + var i = 3; + // params, etc. + var basicTypes = { + 'v': 'void', + 'b': 'bool', + 'c': 'char', + 's': 'short', + 'i': 'int', + 'l': 'long', + 'f': 'float', + 'd': 'double', + 'w': 'wchar_t', + 'a': 'signed char', + 'h': 'unsigned char', + 't': 'unsigned short', + 'j': 'unsigned int', + 'm': 'unsigned long', + 'x': 'long long', + 'y': 'unsigned long long', + 'z': '...' + }; + function dump(x) { + //return; + if (x) Module.print(x); + Module.print(func); + var pre = ''; + for (var a = 0; a < i; a++) pre += ' '; + Module.print (pre + '^'); + } + var subs = []; + function parseNested() { + i++; + if (func[i] === 'K') i++; // ignore const + var parts = []; + while (func[i] !== 'E') { + if (func[i] === 'S') { // substitution + i++; + var next = func.indexOf('_', i); + var num = func.substring(i, next) || 0; + parts.push(subs[num] || '?'); + i = next+1; + continue; + } + if (func[i] === 'C') { // constructor + parts.push(parts[parts.length-1]); + i += 2; + continue; + } + var size = parseInt(func.substr(i)); + var pre = size.toString().length; + if (!size || !pre) { i--; break; } // counter i++ below us + var curr = func.substr(i + pre, size); + parts.push(curr); + subs.push(curr); + i += pre + size; + } + i++; // skip E + return parts; + } + var first = true; + function parse(rawList, limit, allowVoid) { // main parser + limit = limit || Infinity; + var ret = '', list = []; + function flushList() { + return '(' + list.join(', ') + ')'; + } + var name; + if (func[i] === 'N') { + // namespaced N-E + name = parseNested().join('::'); + limit--; + if (limit === 0) return rawList ? [name] : name; + } else { + // not namespaced + if (func[i] === 'K' || (first && func[i] === 'L')) i++; // ignore const and first 'L' + var size = parseInt(func.substr(i)); + if (size) { + var pre = size.toString().length; + name = func.substr(i + pre, size); + i += pre + size; + } + } + first = false; + if (func[i] === 'I') { + i++; + var iList = parse(true); + var iRet = parse(true, 1, true); + ret += iRet[0] + ' ' + name + '<' + iList.join(', ') + '>'; + } else { + ret = name; + } + paramLoop: while (i < func.length && limit-- > 0) { + //dump('paramLoop'); + var c = func[i++]; + if (c in basicTypes) { + list.push(basicTypes[c]); + } else { + switch (c) { + case 'P': list.push(parse(true, 1, true)[0] + '*'); break; // pointer + case 'R': list.push(parse(true, 1, true)[0] + '&'); break; // reference + case 'L': { // literal + i++; // skip basic type + var end = func.indexOf('E', i); + var size = end - i; + list.push(func.substr(i, size)); + i += size + 2; // size + 'EE' + break; + } + case 'A': { // array + var size = parseInt(func.substr(i)); + i += size.toString().length; + if (func[i] !== '_') throw '?'; + i++; // skip _ + list.push(parse(true, 1, true)[0] + ' [' + size + ']'); + break; + } + case 'E': break paramLoop; + default: ret += '?' + c; break paramLoop; + } + } + } + if (!allowVoid && list.length === 1 && list[0] === 'void') list = []; // avoid (void) + return rawList ? list : ret + flushList(); + } + return parse(); + } catch(e) { + return func; + } +} +function demangleAll(text) { + return text.replace(/__Z[\w\d_]+/g, function(x) { var y = demangle(x); return x === y ? x : (x + ' [' + y + ']') }); +} +function stackTrace() { + var stack = new Error().stack; + return stack ? demangleAll(stack) : '(no stack trace available)'; // Stack trace is not available at least on IE10 and Safari 6. +} +// Memory management +var PAGE_SIZE = 4096; +function alignMemoryPage(x) { + return (x+4095)&-4096; +} +var HEAP; +var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64; +var STATIC_BASE = 0, STATICTOP = 0, staticSealed = false; // static area +var STACK_BASE = 0, STACKTOP = 0, STACK_MAX = 0; // stack area +var DYNAMIC_BASE = 0, DYNAMICTOP = 0; // dynamic area handled by sbrk +function enlargeMemory() { + abort('Cannot enlarge memory arrays in asm.js. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value ' + TOTAL_MEMORY + ', or (2) set Module.TOTAL_MEMORY before the program runs.'); +} +var TOTAL_STACK = Module['TOTAL_STACK'] || 5242880; +var TOTAL_MEMORY = Module['TOTAL_MEMORY'] || 16777216; +var FAST_MEMORY = Module['FAST_MEMORY'] || 2097152; +// Initialize the runtime's memory +// check for full engine support (use string 'subarray' to avoid closure compiler confusion) +assert(typeof Int32Array !== 'undefined' && typeof Float64Array !== 'undefined' && !!(new Int32Array(1)['subarray']) && !!(new Int32Array(1)['set']), + 'Cannot fallback to non-typed array case: Code is too specialized'); +var buffer = new ArrayBuffer(TOTAL_MEMORY); +HEAP8 = new Int8Array(buffer); +HEAP16 = new Int16Array(buffer); +HEAP32 = new Int32Array(buffer); +HEAPU8 = new Uint8Array(buffer); +HEAPU16 = new Uint16Array(buffer); +HEAPU32 = new Uint32Array(buffer); +HEAPF32 = new Float32Array(buffer); +HEAPF64 = new Float64Array(buffer); +// Endianness check (note: assumes compiler arch was little-endian) +HEAP32[0] = 255; +assert(HEAPU8[0] === 255 && HEAPU8[3] === 0, 'Typed arrays 2 must be run on a little-endian system'); +Module['HEAP'] = HEAP; +Module['HEAP8'] = HEAP8; +Module['HEAP16'] = HEAP16; +Module['HEAP32'] = HEAP32; +Module['HEAPU8'] = HEAPU8; +Module['HEAPU16'] = HEAPU16; +Module['HEAPU32'] = HEAPU32; +Module['HEAPF32'] = HEAPF32; +Module['HEAPF64'] = HEAPF64; +function callRuntimeCallbacks(callbacks) { + while(callbacks.length > 0) { + var callback = callbacks.shift(); + if (typeof callback == 'function') { + callback(); + continue; + } + var func = callback.func; + if (typeof func === 'number') { + if (callback.arg === undefined) { + Runtime.dynCall('v', func); + } else { + Runtime.dynCall('vi', func, [callback.arg]); + } + } else { + func(callback.arg === undefined ? null : callback.arg); + } + } +} +var __ATPRERUN__ = []; // functions called before the runtime is initialized +var __ATINIT__ = []; // functions called during startup +var __ATMAIN__ = []; // functions called when main() is to be run +var __ATEXIT__ = []; // functions called during shutdown +var __ATPOSTRUN__ = []; // functions called after the runtime has exited +var runtimeInitialized = false; +function preRun() { + // compatibility - merge in anything from Module['preRun'] at this time + if (Module['preRun']) { + if (typeof Module['preRun'] == 'function') Module['preRun'] = [Module['preRun']]; + while (Module['preRun'].length) { + addOnPreRun(Module['preRun'].shift()); + } + } + callRuntimeCallbacks(__ATPRERUN__); +} +function ensureInitRuntime() { + if (runtimeInitialized) return; + runtimeInitialized = true; + callRuntimeCallbacks(__ATINIT__); +} +function preMain() { + callRuntimeCallbacks(__ATMAIN__); +} +function exitRuntime() { + callRuntimeCallbacks(__ATEXIT__); +} +function postRun() { + // compatibility - merge in anything from Module['postRun'] at this time + if (Module['postRun']) { + if (typeof Module['postRun'] == 'function') Module['postRun'] = [Module['postRun']]; + while (Module['postRun'].length) { + addOnPostRun(Module['postRun'].shift()); + } + } + callRuntimeCallbacks(__ATPOSTRUN__); +} +function addOnPreRun(cb) { + __ATPRERUN__.unshift(cb); +} +Module['addOnPreRun'] = Module.addOnPreRun = addOnPreRun; +function addOnInit(cb) { + __ATINIT__.unshift(cb); +} +Module['addOnInit'] = Module.addOnInit = addOnInit; +function addOnPreMain(cb) { + __ATMAIN__.unshift(cb); +} +Module['addOnPreMain'] = Module.addOnPreMain = addOnPreMain; +function addOnExit(cb) { + __ATEXIT__.unshift(cb); +} +Module['addOnExit'] = Module.addOnExit = addOnExit; +function addOnPostRun(cb) { + __ATPOSTRUN__.unshift(cb); +} +Module['addOnPostRun'] = Module.addOnPostRun = addOnPostRun; +// Tools +// This processes a JS string into a C-line array of numbers, 0-terminated. +// For LLVM-originating strings, see parser.js:parseLLVMString function +function intArrayFromString(stringy, dontAddNull, length /* optional */) { + var ret = (new Runtime.UTF8Processor()).processJSString(stringy); + if (length) { + ret.length = length; + } + if (!dontAddNull) { + ret.push(0); + } + return ret; +} +Module['intArrayFromString'] = intArrayFromString; +function intArrayToString(array) { + var ret = []; + for (var i = 0; i < array.length; i++) { + var chr = array[i]; + if (chr > 0xFF) { + chr &= 0xFF; + } + ret.push(String.fromCharCode(chr)); + } + return ret.join(''); +} +Module['intArrayToString'] = intArrayToString; +// Write a Javascript array to somewhere in the heap +function writeStringToMemory(string, buffer, dontAddNull) { + var array = intArrayFromString(string, dontAddNull); + var i = 0; + while (i < array.length) { + var chr = array[i]; + HEAP8[(((buffer)+(i))|0)]=chr; + i = i + 1; + } +} +Module['writeStringToMemory'] = writeStringToMemory; +function writeArrayToMemory(array, buffer) { + for (var i = 0; i < array.length; i++) { + HEAP8[(((buffer)+(i))|0)]=array[i]; + } +} +Module['writeArrayToMemory'] = writeArrayToMemory; +function writeAsciiToMemory(str, buffer, dontAddNull) { + for (var i = 0; i < str.length; i++) { + HEAP8[(((buffer)+(i))|0)]=str.charCodeAt(i); + } + if (!dontAddNull) HEAP8[(((buffer)+(str.length))|0)]=0; +} +Module['writeAsciiToMemory'] = writeAsciiToMemory; +function unSign(value, bits, ignore, sig) { + if (value >= 0) { + return value; + } + return bits <= 32 ? 2*Math.abs(1 << (bits-1)) + value // Need some trickery, since if bits == 32, we are right at the limit of the bits JS uses in bitshifts + : Math.pow(2, bits) + value; +} +function reSign(value, bits, ignore, sig) { + if (value <= 0) { + return value; + } + var half = bits <= 32 ? Math.abs(1 << (bits-1)) // abs is needed if bits == 32 + : Math.pow(2, bits-1); + if (value >= half && (bits <= 32 || value > half)) { // for huge values, we can hit the precision limit and always get true here. so don't do that + // but, in general there is no perfect solution here. With 64-bit ints, we get rounding and errors + // TODO: In i64 mode 1, resign the two parts separately and safely + value = -2*half + value; // Cannot bitshift half, as it may be at the limit of the bits JS uses in bitshifts + } + return value; +} +if (!Math['imul']) Math['imul'] = function imul(a, b) { + var ah = a >>> 16; + var al = a & 0xffff; + var bh = b >>> 16; + var bl = b & 0xffff; + return (al*bl + ((ah*bl + al*bh) << 16))|0; +}; +Math.imul = Math['imul']; +var Math_abs = Math.abs; +var Math_cos = Math.cos; +var Math_sin = Math.sin; +var Math_tan = Math.tan; +var Math_acos = Math.acos; +var Math_asin = Math.asin; +var Math_atan = Math.atan; +var Math_atan2 = Math.atan2; +var Math_exp = Math.exp; +var Math_log = Math.log; +var Math_sqrt = Math.sqrt; +var Math_ceil = Math.ceil; +var Math_floor = Math.floor; +var Math_pow = Math.pow; +var Math_imul = Math.imul; +var Math_fround = Math.fround; +var Math_min = Math.min; +// A counter of dependencies for calling run(). If we need to +// do asynchronous work before running, increment this and +// decrement it. Incrementing must happen in a place like +// PRE_RUN_ADDITIONS (used by emcc to add file preloading). +// Note that you can add dependencies in preRun, even though +// it happens right before run - run will be postponed until +// the dependencies are met. +var runDependencies = 0; +var runDependencyWatcher = null; +var dependenciesFulfilled = null; // overridden to take different actions when all run dependencies are fulfilled +function addRunDependency(id) { + runDependencies++; + if (Module['monitorRunDependencies']) { + Module['monitorRunDependencies'](runDependencies); + } +} +Module['addRunDependency'] = addRunDependency; +function removeRunDependency(id) { + runDependencies--; + if (Module['monitorRunDependencies']) { + Module['monitorRunDependencies'](runDependencies); + } + if (runDependencies == 0) { + if (runDependencyWatcher !== null) { + clearInterval(runDependencyWatcher); + runDependencyWatcher = null; + } + if (dependenciesFulfilled) { + var callback = dependenciesFulfilled; + dependenciesFulfilled = null; + callback(); // can add another dependenciesFulfilled + } + } +} +Module['removeRunDependency'] = removeRunDependency; +Module["preloadedImages"] = {}; // maps url to image data +Module["preloadedAudios"] = {}; // maps url to audio data +var memoryInitializer = null; +// === Body === +STATIC_BASE = 8; +STATICTOP = STATIC_BASE + 28144; +/* global initializers */ __ATINIT__.push({ func: function() { runPostSets() } }); +var _stdout; +var _stdout=_stdout=allocate([0,0,0,0,0,0,0,0], "i8", ALLOC_STATIC); +var _stdin; +var _stdin=_stdin=allocate([0,0,0,0,0,0,0,0], "i8", ALLOC_STATIC); +var _stderr; +var _stderr=_stderr=allocate([0,0,0,0,0,0,0,0], "i8", ALLOC_STATIC); +/* memory initializer */ allocate([80,30,0,0,168,76,0,0,192,59,0,0,168,76,0,0,32,42,0,0,168,76,0,0,96,35,0,0,168,76,0,0,216,31,0,0,248,26,0,0,32,23,0,0,248,26,0,0,80,19,0,0,248,26,0,0,176,15,0,0,248,26,0,0,32,97,0,0,128,94,0,0,40,91,0,0,128,94,0,0,72,85,0,0,80,80,0,0,152,77,0,0,24,75,0,0,72,72,0,0,240,69,0,0,160,68,0,0,64,67,0,0,16,66,0,0,96,64,0,0,64,63,0,0,96,64,0,0,136,61,0,0,80,60,0,0,0,0,0,0,0,0,0,0,0,224,0,0,95,0,0,0,46,0,0,0,44,0,0,0,39,0,0,0,33,0,0,0,59,0,0,0,63,0,0,0,58,0,0,0,45,0,0,0,61,0,0,0,40,0,0,0,41,0,0,0,47,0,0,0,92,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,224,91,0,0,0,0,0,0,184,33,0,0,152,33,0,0,40,33,0,0,224,32,0,0,56,32,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,255,255,255,255,1,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,1,0,0,1,0,2,1,1,0,0,1,0,0,0,2,1,0,0,1,0,0,0,0,1,2,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,11,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0,0,0,0,0,7,0,0,0,10,0,0,0,13,0,0,0,17,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,44,0,0,0,7,0,0,0,10,0,0,0,16,0,0,0,22,0,0,0,28,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,70,0,0,0,7,0,0,0,15,0,0,0,26,0,0,0,36,0,0,0,44,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,100,0,0,0,7,0,0,0,20,0,0,0,36,0,0,0,52,0,0,0,64,0,0,0,1,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,134,0,0,0,7,0,0,0,26,0,0,0,48,0,0,0,72,0,0,0,88,0,0,0,1,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,172,0,0,0,7,0,0,0,36,0,0,0,64,0,0,0,96,0,0,0,112,0,0,0,2,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,196,0,0,0,0,0,0,0,40,0,0,0,72,0,0,0,108,0,0,0,130,0,0,0,2,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,2,0,0,0,4,0,0,0,4,0,0,0,1,0,0,0,242,0,0,0,0,0,0,0,48,0,0,0,88,0,0,0,132,0,0,0,156,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,2,0,0,0,4,0,0,0,2,0,0,0,4,0,0,0,2,0,0,0,36,1,0,0,0,0,0,0,60,0,0,0,110,0,0,0,160,0,0,0,192,0,0,0,2,0,0,0,0,0,0,0,3,0,0,0,2,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,90,1,0,0,0,0,0,0,72,0,0,0,130,0,0,0,192,0,0,0,224,0,0,0,2,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,6,0,0,0,2,0,0,0,6,0,0,0,2,0,0,0,148,1,0,0,0,0,0,0,80,0,0,0,150,0,0,0,224,0,0,0,8,1,0,0,4,0,0,0,0,0,0,0,1,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,3,0,0,0,8,0,0,0,210,1,0,0,0,0,0,0,96,0,0,0,176,0,0,0,4,1,0,0,52,1,0,0,2,0,0,0,2,0,0,0,6,0,0,0,2,0,0,0,4,0,0,0,6,0,0,0,7,0,0,0,4,0,0,0,20,2,0,0,0,0,0,0,104,0,0,0,198,0,0,0,32,1,0,0,96,1,0,0,4,0,0,0,0,0,0,0,8,0,0,0,1,0,0,0,8,0,0,0,4,0,0,0,12,0,0,0,4,0,0,0,69,2,0,0,3,0,0,0,120,0,0,0,216,0,0,0,64,1,0,0,128,1,0,0,3,0,0,0,1,0,0,0,4,0,0,0,5,0,0,0,11,0,0,0,5,0,0,0,11,0,0,0,5,0,0,0,143,2,0,0,3,0,0,0,132,0,0,0,240,0,0,0,104,1,0,0,176,1,0,0,5,0,0,0,1,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,7,0,0,0,11,0,0,0,7,0,0,0,221,2,0,0,3,0,0,0,144,0,0,0,24,1,0,0,152,1,0,0,224,1,0,0,5,0,0,0,1,0,0,0,7,0,0,0,3,0,0,0,15,0,0,0,2,0,0,0,3,0,0,0,13,0,0,0,47,3,0,0,3,0,0,0,168,0,0,0,52,1,0,0,192,1,0,0,20,2,0,0,1,0,0,0,5,0,0,0,10,0,0,0,1,0,0,0,1,0,0,0,15,0,0,0,2,0,0,0,17,0,0,0,133,3,0,0,3,0,0,0,180,0,0,0,82,1,0,0,248,1,0,0,76,2,0,0,5,0,0,0,1,0,0,0,9,0,0,0,4,0,0,0,17,0,0,0,1,0,0,0,2,0,0,0,19,0,0,0,223,3,0,0,3,0,0,0,196,0,0,0,108,1,0,0,34,2,0,0,138,2,0,0,3,0,0,0,4,0,0,0,3,0,0,0,11,0,0,0,17,0,0,0,4,0,0,0,9,0,0,0,16,0,0,0,61,4,0,0,3,0,0,0,224,0,0,0,160,1,0,0,88,2,0,0,188,2,0,0,3,0,0,0,5,0,0,0,3,0,0,0,13,0,0,0,15,0,0,0,5,0,0,0,15,0,0,0,10,0,0,0,132,4,0,0,4,0,0,0,224,0,0,0,186,1,0,0,132,2,0,0,238,2,0,0,4,0,0,0,4,0,0,0,17,0,0,0,0,0,0,0,17,0,0,0,6,0,0,0,19,0,0,0,6,0,0,0,234,4,0,0,4,0,0,0,252,0,0,0,220,1,0,0,178,2,0,0,48,3,0,0,2,0,0,0,7,0,0,0,17,0,0,0,0,0,0,0,7,0,0,0,16,0,0,0,34,0,0,0,0,0,0,0,84,5,0,0,4,0,0,0,14,1,0,0,248,1,0,0,238,2,0,0,132,3,0,0,4,0,0,0,5,0,0,0,4,0,0,0,14,0,0,0,11,0,0,0,14,0,0,0,16,0,0,0,14,0,0,0,194,5,0,0,4,0,0,0,44,1,0,0,48,2,0,0,42,3,0,0,192,3,0,0,6,0,0,0,4,0,0,0,6,0,0,0,14,0,0,0,11,0,0,0,16,0,0,0,30,0,0,0,2,0,0,0,52,6,0,0,4,0,0,0,56,1,0,0,76,2,0,0,102,3,0,0,26,4,0,0,8,0,0,0,4,0,0,0,8,0,0,0,13,0,0,0,7,0,0,0,22,0,0,0,22,0,0,0,13,0,0,0,170,6,0,0,4,0,0,0,80,1,0,0,132,2,0,0,184,3,0,0,86,4,0,0,10,0,0,0,2,0,0,0,19,0,0,0,4,0,0,0,28,0,0,0,6,0,0,0,33,0,0,0,4,0,0,0,36,7,0,0,4,0,0,0,104,1,0,0,188,2,0,0,252,3,0,0,176,4,0,0,8,0,0,0,4,0,0,0,22,0,0,0,3,0,0,0,8,0,0,0,26,0,0,0,12,0,0,0,28,0,0,0,129,7,0,0,3,0,0,0,134,1,0,0,216,2,0,0,26,4,0,0,236,4,0,0,3,0,0,0,10,0,0,0,3,0,0,0,23,0,0,0,4,0,0,0,31,0,0,0,11,0,0,0,31,0,0,0,3,8,0,0,3,0,0,0,164,1,0,0,16,3,0,0,116,4,0,0,70,5,0,0,7,0,0,0,7,0,0,0,21,0,0,0,7,0,0,0,1,0,0,0,37,0,0,0,19,0,0,0,26,0,0,0,137,8,0,0,3,0,0,0,194,1,0,0,44,3,0,0,176,4,0,0,160,5,0,0,5,0,0,0,10,0,0,0,19,0,0,0,10,0,0,0,15,0,0,0,25,0,0,0,23,0,0,0,25,0,0,0,19,9,0,0,3,0,0,0,224,1,0,0,100,3,0,0,10,5,0,0,250,5,0,0,13,0,0,0,3,0,0,0,2,0,0,0,29,0,0,0,42,0,0,0,1,0,0,0,23,0,0,0,28,0,0,0,161,9,0,0,3,0,0,0,254,1,0,0,156,3,0,0,70,5,0,0,84,6,0,0,17,0,0,0,0,0,0,0,10,0,0,0,23,0,0,0,10,0,0,0,35,0,0,0,19,0,0,0,35,0,0,0,51,10,0,0,3,0,0,0,28,2,0,0,212,3,0,0,160,5,0,0,174,6,0,0,17,0,0,0,1,0,0,0,14,0,0,0,21,0,0,0,29,0,0,0,19,0,0,0,11,0,0,0,46,0,0,0,201,10,0,0,3,0,0,0,58,2,0,0,12,4,0,0,250,5,0,0,8,7,0,0,13,0,0,0,6,0,0,0,14,0,0,0,23,0,0,0,44,0,0,0,7,0,0,0,59,0,0,0,1,0,0,0,60,11,0,0,0,0,0,0,58,2,0,0,40,4,0,0,54,6,0,0,98,7,0,0,12,0,0,0,7,0,0,0,12,0,0,0,26,0,0,0,39,0,0,0,14,0,0,0,22,0,0,0,41,0,0,0,218,11,0,0,0,0,0,0,88,2,0,0,96,4,0,0,144,6,0,0,188,7,0,0,6,0,0,0,14,0,0,0,6,0,0,0,34,0,0,0,46,0,0,0,10,0,0,0,2,0,0,0,64,0,0,0,124,12,0,0,0,0,0,0,118,2,0,0,180,4,0,0,234,6,0,0,52,8,0,0,17,0,0,0,4,0,0,0,29,0,0,0,14,0,0,0,49,0,0,0,10,0,0,0,24,0,0,0,46,0,0,0,34,13,0,0,0,0,0,0,148,2,0,0,236,4,0,0,68,7,0,0,172,8,0,0,4,0,0,0,18,0,0,0,13,0,0,0,32,0,0,0,48,0,0,0,14,0,0,0,42,0,0,0,32,0,0,0,204,13,0,0,0,0,0,0,208,2,0,0,36,5,0,0,158,7,0,0,6,9,0,0,20,0,0,0,4,0,0,0,40,0,0,0,7,0,0,0,43,0,0,0,22,0,0,0,10,0,0,0,67,0,0,0,122,14,0,0,0,0,0,0,238,2,0,0,92,5,0,0,248,7,0,0,126,9,0,0,19,0,0,0,6,0,0,0,18,0,0,0,31,0,0,0,34,0,0,0,34,0,0,0,20,0,0,0,61,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,254,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,254,255,255,255,254,255,255,255,253,255,255,255,253,255,255,255,252,255,255,255,253,255,255,255,251,255,255,255,253,255,255,255,253,255,255,255,252,255,255,255,252,255,255,255,252,255,255,255,251,255,255,255,252,255,255,255,253,255,255,255,251,255,255,255,254,255,255,255,251,255,255,255,255,255,255,255,5,0,0,0,255,255,255,255,4,0,0,0,255,255,255,255,3,0,0,0,255,255,255,255,2,0,0,0,254,255,255,255,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,3,0,0,0,255,255,255,255,2,0,0,0,254,255,255,255,2,0,0,0,253,255,255,255,2,0,0,0,252,255,255,255,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,3,0,0,0,255,255,255,255,2,0,0,0,255,255,255,255,1,0,0,0,255,255,255,255,0,0,0,0,254,255,255,255,0,0,0,0,2,0,0,0,255,255,255,255,1,0,0,0,255,255,255,255,0,0,0,0,255,255,255,255,0,0,0,0,18,0,0,0,17,0,0,0,0,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,15,0,0,0,0,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,13,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,36,37,42,43,45,46,47,58,0,0,0,0,0,0,0,0,107,0,0,0,0,0,0,46,46,46,46,46,46,0,0,40,96,0,0,16,96,0,0,216,95,0,0,80,95,0,0,240,94,0,0,176,94,0,0,152,94,0,0,32,94,0,0,152,93,0,0,56,93,0,0,8,93,0,0,216,92,0,0,160,92,0,0,24,92,0,0,216,91,0,0,96,91,0,0,48,91,0,0,224,90,0,0,152,90,0,0,88,90,0,0,56,90,0,0,0,0,0,0,0,87,0,0,0,0,0,0,24,84,0,0,0,0,0,0,208,85,0,0,0,0,0,0,216,98,0,0,208,98,0,0,64,68,0,0,248,53,0,0,120,38,0,0,200,33,0,0,240,29,0,0,208,25,0,0,176,21,0,0,56,18,0,0,200,98,0,0,48,96,0,0,16,93,0,0,64,90,0,0,16,83,0,0,120,79,0,0,152,76,0,0,56,74,0,0,72,71,0,0,120,69,0,0,56,68,0,0,192,66,0,0,176,65,0,0,16,64,0,0,144,62,0,0,80,61,0,0,184,59,0,0,240,57,0,0,112,56,0,0,8,55,0,0,240,53,0,0,88,51,0,0,88,48,0,0,168,46,0,0,40,44,0,0,0,43,0,0,24,42,0,0,240,40,0,0,168,39,0,0,40,39,0,0,112,38,0,0,8,38,0,0,112,37,0,0,240,36,0,0,80,36,0,0,192,35,0,0,88,35,0,0,232,34,0,0,120,34,0,0,16,34,0,0,192,33,0,0,160,33,0,0,104,33,0,0,248,32,0,0,144,32,0,0,32,32,0,0,208,31,0,0,96,31,0,0,208,30,0,0,88,30,0,0,232,29,0,0,136,29,0,0,16,29,0,0,168,28,0,0,24,28,0,0,72,27,0,0,240,26,0,0,160,26,0,0,48,26,0,0,248,25,0,0,200,25,0,0,160,25,0,0,248,24,0,0,88,24,0,0,224,23,0,0,72,23,0,0,24,23,0,0,208,22,0,0,80,22,0,0,24,22,0,0,168,21,0,0,88,21,0,0,208,20,0,0,80,20,0,0,152,19,0,0,112,19,0,0,72,19,0,0,232,18,0,0,152,18,0,0,104,18,0,0,48,18,0,0,16,18,0,0,144,17,0,0,208,16,0,0,80,16,0,0,232,15,0,0,168,15,0,0,120,15,0,0,48,15,0,0,24,15,0,0,192,98,0,0,128,98,0,0,16,98,0,0,184,97,0,0,136,97,0,0,64,97,0,0,40,97,0,0,0,97,0,0,92,94,73,0,0,0,0,0,108,49,0,0,0,0,0,0,49,49,51,49,52,49,0,0,92,39,73,0,0,0,0,0,79,48,0,0,0,0,0,0,52,49,49,51,49,49,0,0,92,96,73,0,0,0,0,0,58,32,0,0,0,0,0,0,32,67,79,77,80,79,83,69,58,32,67,73,82,67,85,77,70,76,69,88,95,65,67,67,69,78,84,43,37,48,52,120,32,110,111,116,32,100,101,102,105,110,101,100,10,0,0,0,52,49,49,49,49,51,0,0,92,34,69,0,0,0,0,0,79,48,108,73,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,97,98,99,100,101,102,0,0,0,0,0,0,0,49,49,52,51,49,49,0,0,46,112,112,109,46,98,122,50,0,0,0,0,0,0,0,0,92,94,69,0,0,0,0,0,35,32,99,111,110,116,101,120,116,32,99,111,114,114,101,99,116,105,111,110,32,73,108,49,32,48,79,0,0,0,0,0,49,49,52,49,49,51,0,0,92,118,123,69,125,0,0,0,98,99,100,102,103,104,106,107,108,109,110,112,113,114,115,116,118,119,120,122,66,67,68,70,71,72,74,75,76,77,78,80,81,82,83,84,86,87,88,90,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,69,82,82,79,82,32,112,99,120,46,99,32,76,37,100,58,32,114,101,97,100,32,112,97,108,101,116,116,101,10,0,0,49,51,49,49,52,49,0,0,37,99,0,0,0,0,0,0,92,39,69,0,0,0,0,0,69,82,82,79,82,32,116,104,32,121,120,61,32,37,50,100,32,37,50,100,32,116,61,32,37,100,32,118,61,32,37,51,100,32,109,105,110,47,109,97,120,61,32,37,100,32,37,100,10,0,0,0,0,0,0,0,97,101,105,111,117,121,0,0,60,98,108,111,99,107,32,120,61,34,37,100,34,32,121,61,34,37,100,34,32,100,120,61,34,37,100,34,32,100,121,61,34,37,100,34,62,10,0,0,49,49,49,51,52,49,0,0,92,96,69,0,0,0,0,0,32,118,101,114,115,105,111,110,32,52,46,50,46,49,32,67,111,109,112,97,116,105,98,108,101,32,85,98,117,110,116,117,32,67,108,97,110,103,32,51,46,50,32,40,116,97,103,115,47,82,69,76,69,65,83,69,95,51,50,47,102,105,110,97,108,41,0,0,0,0,0,0,10,35,32,32,99,104,97,110,103,101,32,91,37,100,93,32,37,115,32,37,115,32,37,51,100,32,37,51,100,32,32,116,111,32,37,115,32,37,51,100,32,97,116,32,37,52,100,32,37,52,100,0,0,0,0,0,32,76,37,48,50,100,32,119,61,32,37,51,100,32,121,61,32,37,51,100,32,109,61,32,37,52,100,32,37,43,51,100,32,37,43,51,100,32,37,43,51,100,10,35,32,32,0,0,49,49,49,49,52,51,0,0,109,97,108,108,111,99,32,101,114,114,111,114,32,105,110,32,108,111,97,100,95,100,98,32,115,51,10,0,0,0,0,0,10,68,66,71,32,99,117,116,95,98,111,120,95,114,101,115,117,108,116,58,0,0,0,0,92,67,0,0,0,0,0,0,10,35,32,32,99,104,97,110,103,101,32,91,37,100,93,32,37,115,32,32,32,37,51,100,32,32,32,32,32,32,116,111,32,37,115,32,37,51,100,32,97,116,32,37,52,100,32,37,52,100,0,0,0,0,0,0,52,49,50,49,50,49,0,0,92,118,123,67,125,0,0,0,69,82,82,79,82,32,108,105,115,116,95,105,110,115,10,0,50,49,52,49,50,49,0,0,50,50,49,50,49,51,0,0,92,65,69,0,0,0,0,0,10,35,32,100,105,118,105,100,101,32,98,111,120,32,98,101,108,111,119,32,121,61,37,52,100,0,0,0,0,0,0,0,50,49,50,49,52,49,0,0,92,65,65,0,0,0,0,0,35,32,100,105,118,105,100,101,32,118,101,114,116,105,99,97,108,32,103,108,117,101,100,32,98,111,120,101,115,0,0,0,52,50,49,50,49,49,0,0,92,34,65,0,0,0,0,0,44,32,110,117,109,67,32,37,100,10,0,0,0,0,0,0,32,67,79,77,80,79,83,69,58,32,68,73,65,69,82,69,83,73,83,43,37,48,52,120,32,40,37,99,41,32,110,111,116,32,100,101,102,105,110,101,100,10,0,0,0,0,0,0,52,50,49,49,49,50,0,0,92,126,65,0,0,0,0,0,35,32,46,46,46,32,37,51,100,32,119,104,105,116,101,32,112,105,120,101,108,115,32,114,101,109,111,118,101,100,44,32,99,115,61,37,100,32,110,67,61,32,37,51,100,10,0,0,10,32,115,112,108,105,116,32,114,101,115,117,108,116,61,32,37,115,32,40,37,51,100,41,32,0,0,0,0,0,0,0,52,49,49,50,49,50,0,0,46,112,103,109,46,98,122,50,0,0,0,0,0,0,0,0,92,94,65,0,0,0,0,0,10,0,0,0,0,0,0,0,49,50,52,50,49,49,0,0,92,39,65,0,0,0,0,0,32,32,37,50,100,32,37,115,32,40,37,51,100,41,0,0,50,61,103,114,97,121,0,0,49,50,52,49,49,50,0,0,35,32,108,105,115,116,32,112,97,116,116,101,114,110,32,32,120,61,32,37,52,100,32,37,52,100,32,100,61,32,37,51,100,32,37,51,100,32,116,61,32,37,100,32,37,100,32,121,121,48,61,32,37,100,10,0,92,96,65,0,0,0,0,0,35,32,116,104,114,101,115,104,111,108,100,86,97,108,117,101,32,111,117,116,32,111,102,32,114,97,110,103,101,32,37,100,46,46,37,100,44,32,114,101,115,101,116,32,116,111,32,37,100,10,0,0,0,0,0,0,10,32,115,112,108,105,116,32,97,116,47,116,111,58,32,0,60,112,97,103,101,32,120,61,34,37,100,34,32,121,61,34,37,100,34,32,100,120,61,34,37,100,34,32,100,121,61,34,37,100,34,62,10,0,0,0,49,49,52,50,49,50,0,0,63,39,0,0,0,0,0,0,32,117,110,105,120,0,0,0,10,32,116,114,121,32,101,110,100,32,115,112,108,105,116,32,91,37,100,93,61,37,100,32,91,37,100,93,61,37,100,32,0,0,0,0,0,0,0,0,32,76,37,48,50,100,32,115,116,101,112,32,50,32,121,61,37,52,100,32,109,61,32,37,52,100,32,37,43,51,100,32,37,43,51,100,32,37,43,51,100,32,120,61,32,37,51,100,32,37,43,51,100,10,35,32,32,0,0,0,0,0,0,0,49,50,49,50,52,49,0,0,109,97,108,108,111,99,32,101,114,114,111,114,32,105,110,32,108,111,97,100,95,100,98,32,98,111,120,49,10,0,0,0,10,32,114,101,109,111,118,101,32,118,101,99,116,111,114,91,37,100,93,91,37,100,93,32,120,61,32,37,50,100,32,37,50,100,0,0,0,0,0,0,92,40,32,51,92,111,118,101,114,32,52,32,92,41,0,0,10,35,32,32,99,101,114,116,97,105,110,116,121,32,37,100,32,32,108,105,109,105,116,61,32,37,100,32,32,99,98,101,115,116,61,32,37,100,32,0,49,50,49,49,52,50,0,0,92,40,32,49,92,111,118,101,114,32,50,32,92,41,0,0,10,35,32,116,114,121,32,116,111,32,115,112,108,105,116,44,32,110,101,119,98,111,120,91,37,100,93,46,120,61,32,37,50,100,32,46,46,46,32,37,50,100,32,100,121,61,32,37,100,32,0,0,0,0,0,0,49,49,49,50,52,50,0,0,49,51,50,50,49,50,0,0,92,40,32,49,92,111,118,101,114,32,52,32,92,41,0,0,10,35,32,116,101,115,116,32,105,102,32,116,111,32,115,112,108,105,116,32,97,116,32,120,37,100,61,32,37,50,100,32,37,50,100,32,37,50,100,32,98,111,119,44,40,109,97,120,45,109,105,110,41,91,105,44,48,44,49,93,32,37,100,32,37,51,100,32,37,51,100,32,37,51,100,0,0,0,0,0,49,51,52,49,49,49,0,0,92,102,114,113,113,123,125,0,10,35,10,35,32,100,105,118,105,100,101,32,98,111,120,58,32,37,52,100,32,37,52,100,32,37,51,100,32,37,51,100,10,0,0,0,0,0,0,0,50,52,49,49,49,50,0,0,36,94,123,92,117,110,100,101,114,98,97,114,123,111,125,125,36,0,0,0,0,0,0,0,35,32,116,114,121,32,116,111,32,100,105,118,105,100,101,32,117,110,107,110,111,119,110,32,99,104,97,114,115,32,33,40,109,111,100,101,38,49,54,41,0,0,0,0,0,0,0,0,32,67,79,77,80,79,83,69,58,32,71,82,65,86,69,95,65,67,67,69,78,84,43,37,48,52,120,32,110,111,116,32,100,101,102,105,110,101,100,10,0,0,0,0,0,0,0,0,52,49,51,49,49,49,0,0,36,94,123,49,125,36,0,0,32,37,51,100,32,99,108,117,115,116,101,114,32,114,101,109,111,118,101,100,44,32,110,67,61,32,37,51,100,10,0,0,32,45,32,102,111,117,110,100,32,37,100,32,40,110,67,61,37,100,41,10,0,0,0,0,50,50,49,49,49,52,0,0,46,112,98,109,46,98,122,50,0,0,0,0,0,0,0,0,92,44,0,0,0,0,0,0,32,119,61,32,37,51,100,37,37,0,0,0,0,0,0,0,50,52,49,50,49,49,0,0,36,92,99,100,111,116,36,0,10,35,32,32,76,37,48,50,100,32,120,121,61,32,37,52,100,32,37,52,100,32,98,101,115,116,32,102,105,116,32,119,97,115,32,37,48,52,120,61,37,99,32,100,105,115,116,61,37,51,100,37,37,32,105,61,37,100,0,0,0,0,0,0,10,35,68,69,66,85,71,58,32,84,104,101,114,101,32,105,115,32,115,111,109,101,116,104,105,110,103,32,119,114,111,110,103,32,119,105,116,104,32,116,101,115,116,97,99,40,41,33,0,0,0,0,0,0,0,0,49,61,99,111,108,111,114,47,98,119,0,0,0,0,0,0,49,52,50,50,49,49,0,0,10,0,0,0,0,0,0,0,92,80,0,0,0,0,0,0,35,32,116,104,114,101,115,104,111,108,100,58,32,105,110,118,101,114,116,32,116,104,101,32,105,109,97,103,101,10,0,0,99,111,109,112,97,114,101,95,99,104,97,114,115,0,0,0,35,32,87,97,114,110,105,110,103,58,32,110,111,110,45,112,111,115,105,116,105,118,101,32,109,101,100,105,97,110,32,108,105,110,101,32,103,97,112,32,111,102,32,37,100,10,0,0,49,52,50,49,49,50,0,0,36,92,109,117,36,0,0,0,46,37,100,0,0,0,0,0,35,32,116,114,121,32,116,111,32,99,111,109,112,97,114,101,32,117,110,107,110,111,119,110,32,119,105,116,104,32,107,110,111,119,110,32,99,104,97,114,115,32,33,40,109,111,100,101,38,56,41,0,0,0,0,0,32,76,37,48,50,100,32,115,116,101,112,32,49,32,121,61,37,52,100,32,109,61,32,37,52,100,32,37,43,51,100,32,37,43,51,100,32,37,43,51,100,32,120,61,32,37,51,100,32,37,43,51,100,32,109,121,61,37,50,100,32,99,104,97,114,115,61,37,51,100,10,35,32,32,0,0,0,0,0,0,49,50,50,52,49,49,0,0,10,100,97,116,97,98,97,115,101,32,101,114,114,111,114,58,32,114,101,97,100,112,103,109,32,37,115,10,0,0,0,0,10,32,99,104,101,99,107,32,99,117,116,116,105,110,103,32,118,101,99,116,111,114,115,32,111,110,32,102,114,97,109,101,32,37,100,0,0,0,0,0,92,40,32,92,112,114,105,109,101,32,92,41,0,0,0,0,32,37,100,32,111,102,32,37,100,32,99,104,97,114,115,32,117,110,105,100,101,110,116,105,102,105,101,100,10,0,0,0,35,32,87,97,114,110,105,110,103,32,99,111,109,112,111,115,101,32,37,48,52,120,32,43,32,37,48,52,120,62,49,50,55,10,0,0,0,0,0,0,49,50,50,49,49,52,0,0,36,94,123,51,125,36,0,0,10,35,32,99,111,100,101,61,32,37,48,52,108,120,32,37,99,0,0,0,0,0,0,0,49,49,50,52,49,50,0,0,49,50,50,51,49,50,0,0,36,94,123,50,125,36,0,0,99,104,97,114,95,114,101,99,111,103,110,105,116,105,111,110,0,0,0,0,0,0,0,0,49,49,50,50,49,52,0,0,36,92,112,109,36,0,0,0,32,117,110,107,110,111,119,110,61,32,37,100,32,112,105,99,116,115,61,32,37,100,32,98,111,120,101,115,61,32,37,100,10,35,32,0,0,0,0,0,49,52,49,50,50,49,0,0,36,94,123,111,125,36,0,0,35,32,99,104,97,114,32,114,101,99,111,103,110,105,116,105,111,110,0,0,0,0,0,0,32,67,79,77,80,79,83,69,58,32,84,73,76,68,69,43,37,48,52,120,32,110,111,116,32,100,101,102,105,110,101,100,10,0,0,0,0,0,0,0,35,32,114,101,109,111,118,101,46,99,32,114,101,109,111,118,101,95,100,117,115,116,40,41,58,0,0,0,0,0,0,0,49,52,49,49,50,50,0,0,92,116,101,120,116,97,115,99,105,105,109,97,99,114,111,110,0,0,0,0,0,0,0,0,32,104,105,115,116,111,61,37,100,44,37,100,40,63,61,37,100,41,44,37,100,40,63,61,37,100,41,44,46,46,46,10,35,32,46,46,46,0,0,0,32,111,107,10,0,0,0,0,49,50,49,52,50,49,0,0,98,122,105,112,50,32,45,99,100,0,0,0,0,0,0,0,119,0,0,0,0,0,0,0,92,116,101,120,116,114,101,103,105,115,116,101,114,101,100,0,32,110,111,32,37,100,32,99,104,97,114,32,37,52,100,32,37,53,100,32,116,105,109,101,115,32,115,117,109,61,37,100,10,0,0,0,0,0,0,0,49,50,49,49,50,52,0,0,92,45,0,0,0,0,0,0,32,110,111,32,37,100,32,99,104,97,114,32,37,52,100,32,37,53,100,32,116,105,109,101,115,32,109,97,120,100,105,115,116,61,37,100,10,0,0,0,10,68,66,71,32,37,115,32,115,101,116,97,99,32,40,37,100,44,37,100,41,58,32,99,111,109,112,111,115,101,32,119,97,115,32,117,115,101,108,101,115,115,44,32,119,97,99,61,37,100,0,0,0,0,0,0,35,32,80,67,88,32,118,101,114,115,105,111,110,61,37,100,32,98,105,116,115,61,37,100,32,120,61,37,100,32,121,61,37,100,32,72,82,101,115,61,37,100,32,86,82,101,115,61,37,100,10,35,32,78,80,108,97,110,101,115,61,37,100,32,66,121,116,101,115,80,101,114,76,105,110,101,61,37,100,32,80,97,108,101,116,116,101,61,37,115,0,0,0,0,0,0,49,49,49,52,50,50,0,0,32,37,115,40,37,100,41,0,36,92,108,110,111,116,36,0,35,32,116,104,114,101,115,104,111,108,100,58,32,86,97,108,117,101,32,61,32,37,100,32,103,109,105,110,61,37,100,32,103,109,97,120,61,37,100,32,99,109,97,120,61,37,100,32,98,47,119,61,32,37,100,32,37,100,10,0,0,0,0,0,32,37,100,32,100,105,102,102,101,114,101,110,116,32,99,104,97,114,115,0,0,0,0,0,35,32,115,116,111,114,101,32,98,111,120,116,114,101,101,32,116,111,32,108,105,110,101,115,32,46,46,46,0,0,0,0,49,49,49,50,50,52,0,0,92,102,108,113,113,123,125,0,32,71,78,85,67,45,37,100,0,0,0,0,0,0,0,0,13,35,32,112,97,99,107,105,110,103,32,37,53,100,0,0,32,115,101,116,32,109,51,61,32,37,51,100,32,37,43,51,100,32,121,121,61,32,37,100,32,32,114,101,97,115,111,110,50,32,120,121,61,32,37,52,100,32,37,52,100,10,35,32,32,0,0,0,0,0,0,0,52,51,49,49,49,49,0,0,109,97,108,108,111,99,32,101,114,114,111,114,32,105,110,32,108,111,97,100,95,100,98,32,112,105,120,10,0,0,0,0,32,114,101,109,111,118,101,32,102,114,97,109,101,32,37,100,0,0,0,0,0,0,0,0,36,94,123,92,117,110,100,101,114,98,97,114,123,97,125,125,36,0,0,0,0,0,0,0,80,52,10,37,100,32,37,100,10,0,0,0,0,0,0,0,35,32,112,97,99,107,105,110,103,0,0,0,0,0,0,0,50,50,49,52,49,49,0,0,92,99,111,112,121,114,105,103,104,116,0,0,0,0,0,0,80,54,10,37,100,32,37,100,10,50,53,53,10,0,0,0,32,106,111,105,110,101,100,58,32,37,51,100,32,102,114,97,103,109,101,110,116,115,32,40,102,111,117,110,100,32,37,51,100,41,44,32,37,51,100,32,114,101,115,116,44,32,110,67,61,32,37,100,10,0,0,0,51,49,52,49,49,49,0,0,49,50,50,50,49,51,0,0,34,0,0,0,0,0,0,0,112,111,112,101,110,32,103,122,105,112,32,45,99,10,0,0,32,106,111,105,110,32,111,98,106,101,99,116,115,32,37,51,100,32,37,51,100,32,37,43,52,100,32,37,43,52,100,32,43,32,37,51,100,32,37,51,100,32,37,43,52,100,32,37,43,52,100,32,110,104,10,35,32,46,46,46,0,0,0,0,46,112,110,109,46,103,122,0,51,51,50,49,49,49,0,0,92,83,0,0,0,0,0,0,103,122,105,112,32,45,99,32,62,32,0,0,0,0,0,0,32,106,111,105,110,32,111,98,106,101,99,116,115,32,32,37,51,100,32,37,51,100,32,37,43,52,100,32,37,43,52,100,32,43,32,37,51,100,32,37,51,100,32,37,43,52,100,32,37,43,52,100,32,119,39,75,39,10,35,32,46,46,46,0,105,32,62,61,32,48,32,38,38,32,105,32,60,61,32,57,0,0,0,0,0,0,0,0,51,49,50,51,49,49,0,0,92,116,101,120,116,98,114,111,107,101,110,98,97,114,0,0,112,111,112,101,110,32,112,110,109,116,111,112,110,103,10,0,32,106,111,105,110,32,111,98,106,101,99,116,115,32,32,37,51,100,32,37,51,100,32,37,43,52,100,32,37,43,52,100,32,43,32,37,51,100,32,37,51,100,32,37,43,52,100,32,37,43,52,100,32,37,115,10,35,32,46,46,46,0,0,0,32,67,79,77,80,79,83,69,58,32,67,69,68,73,76,76,65,43,37,48,52,120,32,110,111,116,32,100,101,102,105,110,101,100,10,0,0,0,0,0,51,49,50,49,49,51,0,0,92,116,101,120,116,121,101,110,0,0,0,0,0,0,0,0,35,32,32,114,101,109,111,118,101,32,100,117,115,116,32,111,102,32,115,105,122,101,32,37,50,100,0,0,0,0,0,0,119,0,0,0,0,0,0,0,35,32,103,108,117,101,32,98,114,111,107,101,110,32,99,104,97,114,115,32,110,67,61,32,37,100,32,97,118,88,61,32,37,100,10,35,32,46,46,46,0,0,0,0,0,0,0,0,51,51,49,49,50,49,0,0,46,112,110,109,46,98,122,50,0,0,0,0,0,0,0,0,92,116,101,120,116,99,117,114,114,101,110,99,121,0,0,0,112,110,109,116,111,112,110,103,32,62,32,0,0,0,0,0,103,108,117,101,95,98,114,111,107,101,110,95,99,104,97,114,115,0,0,0,0,0,0,0,51,49,49,51,50,49,0,0,92,101,117,114,111,0,0,0,46,112,112,109,0,0,0,0,39,39,44,44,0,0,0,0,10,68,66,71,58,32,115,101,116,97,99,40,48,41,32,109,97,107,101,115,32,110,111,32,115,101,110,115,101,33,0,0,69,82,82,79,82,32,112,99,120,46,99,32,76,37,100,58,32,111,110,108,121,32,49,32,111,114,32,56,32,98,105,116,115,32,115,117,112,112,111,114,116,101,100,10,0,0,0,0,51,49,49,49,50,51,0,0,10,35,32,108,105,115,116,32,98,111,120,32,99,104,97,114,58,32,0,0,0,0,0,0,92,112,111,117,110,100,115,0,35,32,116,104,114,101,115,104,111,108,100,58,32,86,97,108,117,101,60,61,103,109,105,110,10,0,0,0,0,0,0,0,119,114,105,116,101,10,0,0,61,58,59,0,0,0,0,0,109,97,108,108,111,99,32,102,97,105,108,101,100,33,10,0,50,49,51,49,51,49,0,0,92,116,101,120,116,99,101,110,116,0,0,0,0,0,0,0,35,32,99,111,109,112,105,108,101,100,58,32,68,101,99,32,51,48,32,50,48,49,51,0,33,63,59,37,0,0,0,0,32,115,101,116,32,109,51,61,32,37,51,100,32,37,43,51,100,32,121,121,61,32,37,100,32,32,114,101,97,115,111,110,49,32,120,121,61,32,37,52,100,32,37,52,100,10,35,32,32,0,0,0,0,0,0,0,50,49,51,51,49,49,0,0,32,9,0,0,0,0,0,0,105,110,49,43,111,117,116,50,61,32,37,100,0,0,0,0,33,39,0,0,0,0,0,0,111,112,101,110,10,0,0,0,34,65,34,85,105,106,37,0,50,49,51,49,49,51,0,0,92,94,123,125,0,0,0,0,119,98,0,0,0,0,0,0,110,111,0,0,0,0,0,0,50,51,49,49,51,49,0,0,49,51,49,50,50,50,0,0,92,126,123,125,0,0,0,0,35,32,80,78,77,32,69,79,70,10,0,0,0,0,0,0,32,106,111,105,110,101,100,58,32,37,51,100,32,104,111,108,101,115,44,32,37,51,100,32,115,97,109,101,44,32,110,67,61,32,37,100,10,0,0,0,50,49,49,51,51,49,0,0,92,116,101,120,116,98,97,99,107,115,108,97,115,104,0,0,10,0,0,0,0,0,0,0,32,106,111,105,110,32,104,111,108,101,32,37,52,100,32,37,52,100,32,37,43,52,100,32,37,43,52,100,32,37,43,54,100,32,43,32,37,52,100,32,37,52,100,32,37,43,52,100,32,37,43,52,100,32,37,43,54,100,32,37,100,10,35,32,46,46,46,0,0,0,0,0,51,49,51,49,50,49,0,0,92,125,0,0,0,0,0,0,32,109,105,110,61,37,100,32,109,97,120,61,37,100,0,0,35,32,103,108,117,101,32,104,111,108,101,115,32,116,111,32,99,104,97,114,115,32,110,67,61,32,37,100,10,35,32,46,46,46,0,0,0,0,0,0,32,67,79,77,80,79,83,69,58,32,67,65,82,79,78,43,37,48,52,120,32,110,111,116,32,100,101,102,105,110,101,100,10,0,0,0,0,0,0,0,49,51,51,49,50,49,0,0,92,123,0,0,0,0,0,0,10,35,32,32,97,117,116,111,32,100,117,115,116,32,115,105,122,101,32,61,32,37,100,32,110,67,61,32,37,51,100,32,46,46,32,37,51,100,32,97,118,68,61,32,37,50,100,32,37,50,100,32,46,46,32,37,50,100,32,37,50,100,10,0,114,101,97,100,10,0,0,0,103,108,117,101,95,104,111,108,101,115,95,105,110,115,105,100,101,95,99,104,97,114,115,0,49,49,51,51,50,49,0,0,46,112,112,109,46,103,122,0,92,95,0,0,0,0,0,0,117,110,101,120,112,101,99,116,101,100,32,99,104,97,114,10,0,0,0,0,0,0,0,0,32,37,51,100,32,115,117,98,98,111,120,101,115,32,99,111,117,110,116,101,100,32,40,109,105,110,105,61,37,100,44,32,115,97,109,101,61,37,100,41,32,110,67,61,32,37,100,10,0,0,0,0,0,0,0,0,49,49,51,49,50,51,0,0,92,35,0,0,0,0,0,0,32,69,82,82,79,82,32,114,101,97,100,105,110,103,32,97,116,32,104,101,97,100,43,51,42,37,100,42,37,100,10,0,99,111,117,110,116,95,115,117,98,98,111,120,101,115,0,0,10,68,66,71,58,32,84,104,105,115,32,105,115,32,97,32,98,97,100,32,99,97,108,108,32,116,111,32,115,101,116,97,99,40,41,33,0,0,0,0,69,82,82,79,82,32,112,99,120,46,99,32,76,37,100,58,32,117,110,107,110,111,119,110,32,99,111,100,105,110,103,10,0,0,0,0,0,0,0,0,49,51,50,49,51,49,0,0,32,35,37,48,50,100,32,37,50,100,32,37,50,100,0,0,92,37,0,0,0,0,0,0,35,32,116,104,114,101,115,104,111,108,100,58,32,86,97,108,117,101,32,62,103,109,97,120,10,0,0,0,0,0,0,0,32,69,82,82,79,82,32,114,101,97,100,105,110,103,32,97,116,32,104,101,97,100,43,37,100,42,37,100,10,0,0,0,35,32,99,111,117,110,116,32,115,117,98,98,111,120,101,115,10,35,32,46,46,46,0,0,35,32,77,105,110,105,109,117,109,32,97,100,106,117,115,116,101,100,32,120,58,32,37,100,32,40,109,105,110,95,105,110,100,101,110,116,41,10,0,0,49,49,50,51,51,49,0,0,92,38,0,0,0,0,0,0,46,112,99,120,0,0,0,0,109,101,109,111,114,121,32,102,97,105,108,101,100,10,0,0,112,114,111,112,111,114,116,105,111,110,97,108,0,0,0,0,32,115,101,116,32,109,52,61,32,37,51,100,32,37,43,51,100,32,121,121,61,32,37,100,32,32,114,101,97,115,111,110,49,32,120,121,61,32,37,52,100,32,37,52,100,10,35,32,32,0,0,0,0,0,0,0,32,37,100,32,45,32,98,111,120,101,115,32,37,100,10,0,49,49,50,49,51,51,0,0,32,9,44,59,0,0,0,0,45,45,0,0,0,0,0,0,10,32,99,104,101,99,107,105,110,103,32,102,114,97,109,101,32,37,100,32,0,0,0,0,92,36,0,0,0,0,0,0,69,114,114,111,114,32,105,110,116,101,103,101,114,32,111,118,101,114,102,108,111,119,10,0,109,111,110,111,115,112,97,99,101,100,0,0,0,0,0,0,35,32,100,101,116,101,99,116,46,99,32,76,37,100,32,112,105,99,116,117,114,101,115,44,32,102,114,97,109,101,115,44,32,109,88,109,89,61,32,37,100,32,37,100,32,46,46,46,32,0,0,0,0,0,0,0,50,51,49,51,49,49,0,0,92,99,111,100,101,40,37,48,52,120,41,0,0,0,0,0,32,80,66,77,50,80,71,77,32,110,120,32,37,100,0,0,32,111,118,101,114,97,108,108,32,115,112,97,99,101,32,119,105,100,116,104,32,105,115,32,37,100,32,37,115,10,0,0,35,32,100,101,116,101,99,116,46,99,32,76,37,100,32,87,97,114,110,105,110,103,58,32,110,117,109,67,61,48,10,0,50,51,49,49,49,51,0,0,49,50,49,51,50,50,0,0,114,98,0,0,0,0,0,0,95,0,0,0,0,0,0,0,35,32,80,78,77,32,80,37,99,32,104,42,119,61,37,100,42,37,100,32,99,61,37,100,32,104,101,97,100,61,37,108,100,0,0,0,0,0,0,0,32,76,37,48,50,100,32,114,101,115,117,108,116,58,32,109,111,110,111,61,37,100,32,32,100,105,115,116,97,110,99,101,32,62,61,32,37,100,32,99,111,110,115,105,100,101,114,101,100,32,97,115,32,115,112,97,99,101,10,35,32,46,46,46,0,0,0,0,0,0,0,0,35,32,97,118,101,114,97,103,101,115,58,32,109,88,109,89,61,32,37,100,32,37,100,32,110,67,61,32,37,100,32,110,61,32,37,100,10,0,0,0,50,49,49,51,49,51,0,0,115,116,0,0,0,0,0,0,117,110,101,120,112,101,99,116,101,100,32,99,104,97,114,97,99,116,101,114,10,0,0,0,32,76,37,48,50,100,32,112,114,111,112,58,32,110,117,109,61,37,51,100,32,109,105,110,61,37,51,100,32,109,97,120,61,37,51,100,32,112,105,116,99,104,61,37,51,100,32,64,32,37,50,100,37,37,10,35,32,46,46,46,0,0,0,0,10,35,32,32,99,104,97,110,103,101,100,95,99,104,97,114,115,61,32,37,100,10,0,0,49,51,50,51,49,49,0,0,102,102,108,0,0,0,0,0,10,35,32,108,105,115,116,32,98,111,120,32,32,32,32,32,32,120,61,32,37,52,100,32,37,52,100,32,100,61,32,37,51,100,32,37,51,100,32,114,61,32,37,51,100,32,37,51,100,32,110,114,117,110,61,37,100,32,112,61,37,112,0,0,10,114,101,97,100,45,80,78,77,45,101,114,114,111,114,58].concat([32,98,97,100,32,109,97,103,105,99,32,98,121,116,101,115,44,32,101,120,112,101,99,116,32,48,120,53,48,32,48,120,51,91,49,45,54,93,32,98,117,116,32,103,111,116,32,48,120,37,48,50,120,32,48,120,37,48,50,120,0,0,0,0,32,76,37,48,50,100,32,109,111,110,111,58,32,110,117,109,61,37,51,100,32,109,105,110,61,37,51,100,32,109,97,120,61,37,51,100,32,112,105,116,99,104,61,37,51,100,10,35,32,46,46,46,0,0,0,0,99,67,111,79,112,80,115,83,117,85,118,86,119,87,120,88,121,89,122,90,0,0,0,0,32,103,111,116,32,32,99,104,97,114,61,32,37,99,32,32,49,54,98,105,116,61,32,48,120,37,48,52,120,32,32,115,116,114,105,110,103,61,32,34,37,115,34,10,0,0,0,0,32,67,79,77,80,79,83,69,58,32,66,82,69,86,69,43,37,48,52,120,32,110,111,116,32,100,101,102,105,110,101,100,10,0,0,0,0,0,0,0,49,51,50,49,49,51,0,0,102,102,105,0,0,0,0,0,32,98,114,101,97,107,0,0,35,32,116,104,114,101,115,104,111,108,100,58,32,109,97,120,95,99,111,110,116,114,97,115,116,61,32,37,100,10,0,0,10,114,101,97,100,45,80,78,77,45,101,114,114,111,114,58,32,102,105,108,101,32,110,117,109,98,101,114,32,105,115,32,37,50,100,44,32,112,111,115,105,116,105,111,110,32,37,108,100,0,0,0,0,0,0,0,32,112,114,111,103,114,101,115,115,32,37,115,32,37,53,100,32,47,32,37,100,32,32,116,105,109,101,91,115,93,32,37,53,100,32,47,32,37,53,100,32,32,40,115,107,105,112,61,37,100,41,37,99,0,0,0,32,76,37,48,50,100,32,109,97,120,100,105,102,102,61,37,100,32,109,105,110,95,115,97,109,101,100,105,102,102,115,61,37,100,0,0,0,0,0,0,10,35,32,32,108,105,110,101,61,32,37,51,100,32,109,61,32,37,52,100,32,37,43,51,100,32,37,43,51,100,32,37,43,51,100,32,32,110,61,32,37,50,100,32,37,50,100,32,37,50,100,32,37,50,100,32,32,119,61,32,37,51,100,32,100,105,102,102,61,32,37,100,0,0,0,0,0,0,0,0,10,35,0,0,0,0,0,0,49,49,50,51,49,51,0,0,46,112,103,109,46,103,122,0,116,114,101,101,91,110,93,32,61,61,32,48,32,124,124,32,116,114,101,101,91,110,93,32,61,61,32,49,32,124,124,32,116,114,101,101,91,110,93,32,61,61,32,50,0,0,0,0,69,114,114,111,114,32,105,110,32,111,99,114,48,46,99,32,76,37,100,58,32,105,100,120,32,111,117,116,32,111,102,32,114,97,110,103,101,0,0,0,102,108,0,0,0,0,0,0,117,110,101,120,112,101,99,116,101,100,32,69,79,70,10,0,32,60,45,32,112,100,105,115,116,91,37,100,93,32,115,111,114,116,101,100,10,35,32,46,46,46,0,0,0,0,0,0,32,109,105,114,114,111,114,58,32,32,104,116,116,112,58,47,47,119,119,119,45,101,46,117,110,105,45,109,97,103,100,101,98,117,114,103,46,100,101,47,106,115,99,104,117,108,101,110,47,111,99,114,47,10,0,0,103,113,0,0,0,0,0,0,32,37,48,50,120,0,0,0,49,51,49,51,50,49,0,0,102,105,0,0,0,0,0,0,111,112,101,110,105,110,103,32,112,105,112,101,32,37,115,10,0,0,0,0,0,0,0,0,32,76,37,48,50,100,32,98,101,115,116,95,112,61,37,51,100,32,110,105,95,109,105,110,61,37,51,100,10,35,32,46,46,46,0,0,0,0,0,0,32,119,101,98,112,97,103,101,58,32,104,116,116,112,58,47,47,106,111,99,114,46,115,111,117,114,99,101,102,111,114,103,101,46,110,101,116,47,32,40,109,97,121,32,111,117,116,32,111,102,32,100,97,116,101,41,10,0,0,0,0,0,0,0,98,100,104,107,108,65,66,68,69,70,71,72,73,75,76,77,78,82,84,49,50,51,52,54,55,56,57,0,0,0,0,0,10,35,32,102,103,101,116,115,32,91,37,100,93,58,0,0,10,68,66,71,58,32,115,101,116,97,115,40,34,34,41,32,109,97,107,101,115,32,110,111,32,115,101,110,115,101,33,32,120,61,32,37,100,32,37,100,0,0,0,0,0,0,0,0,32,114,101,97,108,108,111,99,32,102,97,105,108,101,100,33,32,97,98,111,114,116,10,0,69,82,82,79,82,32,112,99,120,46,99,32,76,37,100,58,32,110,111,32,90,83,111,102,116,32,115,105,103,110,10,0,49,51,49,49,50,51,0,0,10,35,32,32,102,114,97,109,101,32,37,100,32,40,37,43,52,100,44,37,51,100,44,37,50,100,41,32,0,0,0,0,102,102,0,0,0,0,0,0,35,32,116,104,114,101,115,104,111,108,100,58,32,37,51,100,32,37,54,100,32,37,54,100,32,37,56,46,51,102,32,37,52,100,10,0,0,0,0,0,114,0,0,0,0,0,0,0,40,48,120,37,48,50,120,41,0,0,0,0,0,0,0,0,32,76,37,48,50,100,32,98,101,115,116,95,112,61,32,37,51,100,32,43,32,109,97,120,100,105,102,102,61,37,51,100,10,35,32,46,46,46,0,0,40,48,120,37,48,52,120,41,0,0,0,0,0,0,0,0,32,101,120,97,109,112,108,101,115,58,10,9,103,111,99,114,32,45,109,32,52,32,116,101,120,116,49,46,112,98,109,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,35,32,100,111,32,108,97,121,111,117,116,32,97,110,97,108,121,122,105,115,10,9,103,111,99,114,32,45,109,32,49,51,48,32,45,112,32,46,47,100,97,116,97,98,97,115,101,47,32,116,101,120,116,49,46,112,98,109,32,32,35,32,101,120,116,101,110,100,32,100,97,116,97,98,97,115,101,10,9,100,106,112,101,103,32,45,112,110,109,32,45,103,114,97,121,32,116,101,120,116,46,106,112,103,32,124,32,103,111,99,114,32,45,32,32,32,32,35,32,117,115,101,32,106,112,101,103,45,102,105,108,101,32,118,105,97,32,112,105,112,101,10,10,0,0,0,0,0,0,0,40,63,41,0,0,0,0,0,97,101,109,110,114,0,0,0,84,104,101,32,97,98,111,118,101,32,112,97,116,116,101,114,110,32,119,97,115,32,110,111,116,32,114,101,99,111,103,110,105,122,101,100,46,10,69,110,116,101,114,32,85,84,70,56,32,99,104,97,114,32,111,114,32,115,116,114,105,110,103,32,102,111,114,32,97,98,111,118,101,32,112,97,116,116,101,114,110,46,32,76,101,97,118,101,32,101,109,112,116,121,32,105,102,32,117,110,115,117,114,101,46,10,80,114,101,115,115,32,82,69,84,32,97,116,32,116,104,101,32,101,110,100,32,40,65,76,84,43,82,69,84,32,116,111,32,115,116,111,114,101,32,105,110,116,111,32,82,65,77,32,111,110,108,121,41,32,58,32,0,0,0,0,0,0,38,35,120,37,48,51,120,59,0,0,0,0,0,0,0,0,35,32,76,105,110,101,32,37,50,100,44,32,117,110,97,100,106,117,115,116,101,100,32,120,121,32,37,51,100,32,37,51,100,44,32,97,100,106,117,115,116,101,100,32,120,32,37,50,100,10,0,0,0,0,0,0,38,35,37,117,59,0,0,0,38,101,117,114,111,59,0,0,49,49,49,51,50,51,0,0,38,122,99,97,114,111,110,59,0,0,0,0,0,0,0,0,38,121,117,109,108,59,0,0,69,85,82,0,0,0,0,0,69,108,97,112,115,101,100,32,116,105,109,101,58,32,37,100,58,37,48,50,100,58,37,51,46,51,102,46,10,0,0,0,38,116,104,111,114,110,59,0,35,32,112,111,112,101,110,40,32,37,115,32,41,10,0,0,38,121,97,99,117,116,101,59,0,0,0,0,0,0,0,0,38,117,117,109,108,59,0,0,32,60,45,32,112,100,105,115,116,91,37,100,93,10,35,32,46,46,46,0,0,0,0,0,38,117,99,105,114,99,59,0,32,45,97,32,110,117,109,32,32,32,32,45,32,118,97,108,117,101,32,111,102,32,99,101,114,116,97,105,110,116,121,32,40,105,110,32,112,101,114,99,101,110,116,44,32,48,46,46,49,48,48,44,32,100,101,102,97,117,108,116,61,57,53,41,10,32,45,117,32,115,116,114,105,110,103,32,45,32,111,117,116,112,117,116,32,116,104,105,115,32,115,116,114,105,110,103,32,102,111,114,32,101,118,101,114,121,32,117,110,114,101,99,111,103,110,105,122,101,100,32,99,104,97,114,97,99,116,101,114,10,0,0,0,0,0,0,38,117,97,99,117,116,101,59,0,0,0,0,0,0,0,0,32,115,101,116,32,109,50,61,32,37,51,100,32,37,43,51,100,32,121,121,61,32,37,100,32,32,114,101,97,115,111,110,49,32,120,121,61,32,37,52,100,32,37,52,100,10,35,32,32,0,0,0,0,0,0,0,32,109,97,108,108,111,99,32,102,97,105,108,101,100,10,0,108,49,124,73,48,79,0,0,38,117,103,114,97,118,101,59,0,0,0,0,0,0,0,0,38,115,99,97,114,111,110,59,0,0,0,0,0,0,0,0,38,111,115,108,97,115,104,59,0,0,0,0,0,0,0,0,50,51,50,49,50,49,0,0,32,68,66,32,37,115,32,110,111,116,32,102,111,117,110,100,10,0,0,0,0,0,0,0,38,100,105,118,105,100,101,59,0,0,0,0,0,0,0,0,38,111,117,109,108,59,0,0,10,32,99,117,116,32,98,111,120,32,120,61,32,37,51,100,32,37,51,100,0,0,0,0,62,0,0,0,0,0,0,0,32,37,51,100,32,43,32,37,51,100,32,98,111,120,101,115,32,100,101,108,101,116,101,100,44,32,110,67,61,32,37,100,32,63,10,0,0,0,0,0,38,111,116,105,108,100,101,59,0,0,0,0,0,0,0,0,37,115,32,34,37,115,34,0,38,111,99,105,114,99,59,0,38,111,97,99,117,116,101,59,0,0,0,0,0,0,0,0,10,35,66,85,71,58,32,97,112,112,101,110,100,105,110,103,32,48,32,116,111,32,97,32,108,105,110,101,32,109,97,107,101,115,32,110,111,32,115,101,110,115,101,33,0,0,0,0,32,37,50,100,0,0,0,0,38,111,103,114,97,118,101,59,0,0,0,0,0,0,0,0,32,45,102,32,102,109,116,32,32,32,32,45,32,111,117,116,112,117,116,32,102,111,114,109,97,116,32,40,73,83,79,56,56,53,57,95,49,32,84,101,88,32,72,84,77,76,32,88,77,76,32,85,84,70,56,32,65,83,67,73,73,41,10,32,45,108,32,110,117,109,32,32,32,32,45,32,116,104,114,101,115,104,111,108,100,32,103,114,101,121,32,108,101,118,101,108,32,48,60,49,54,48,60,61,50,53,53,32,40,48,32,61,32,97,117,116,111,100,101,116,101,99,116,41,10,32,45,100,32,110,117,109,32,32,32,32,45,32,100,117,115,116,95,115,105,122,101,32,40,114,101,109,111,118,101,32,115,109,97,108,108,32,99,108,117,115,116,101,114,115,44,32,45,49,32,61,32,97,117,116,111,100,101,116,101,99,116,41,10,32,45,115,32,110,117,109,32,32,32,32,45,32,115,112,97,99,101,119,105,100,116,104,47,100,111,116,115,32,40,48,32,61,32,97,117,116,111,100,101,116,101,99,116,41,10,32,45,118,32,110,117,109,32,32,32,32,45,32,118,101,114,98,111,115,101,32,40,115,101,101,32,109,97,110,117,97,108,32,112,97,103,101,41,10,32,45,99,32,115,116,114,105,110,103,32,45,32,108,105,115,116,32,111,102,32,99,104,97,114,115,32,40,100,101,98,117,103,103,105,110,103,44,32,115,101,101,32,109,97,110,117,97,108,41,10,32,45,67,32,115,116,114,105,110,103,32,45,32,99,104,97,114,32,102,105,108,116,101,114,32,40,101,120,46,32,104,101,120,100,105,103,105,116,115,58,32,48,45,57,65,45,70,120,44,32,111,110,108,121,32,65,83,67,73,73,41,10,32,45,109,32,110,117,109,32,32,32,32,45,32,111,112,101,114,97,116,105,111,110,32,109,111,100,101,115,32,40,98,105,116,112,97,116,116,101,114,110,44,32,115,101,101,32,109,97,110,117,97,108,41,10,0,0,0,0,0,0,0,38,110,116,105,108,100,101,59,0,0,0,0,0,0,0,0,35,32,100,101,116,101,99,116,46,99,32,97,100,106,117,115,116,95,116,101,120,116,95,108,105,110,101,115,40,41,32,0,38,101,116,104,59,0,0,0,38,105,117,109,108,59,0,0,38,105,99,105,114,99,59,0,50,49,50,51,50,49,0,0,38,105,97,99,117,116,101,59,0,0,0,0,0,0,0,0,38,105,103,114,97,118,101,59,0,0,0,0,0,0,0,0,38,101,117,109,108,59,0,0,60,0,0,0,0,0,0,0,10,35,32,32,114,101,109,111,118,101,50,32,37,51,100,32,37,51,100,32,0,0,0,0,45,0,0,0,0,0,0,0,111,112,101,110,105,110,103,32,102,105,108,101,32,37,115,10,0,0,0,0,0,0,0,0,38,101,99,105,114,99,59,0,38,101,99,97,114,111,110,59,0,0,0,0,0,0,0,0,10,35,32,46,46,46,0,0,38,101,97,99,117,116,101,59,0,0,0,0,0,0,0,0,32,117,115,105,110,103,58,32,103,111,99,114,32,91,111,112,116,105,111,110,115,93,32,112,110,109,95,102,105,108,101,95,110,97,109,101,32,32,35,32,117,115,101,32,45,32,102,111,114,32,115,116,100,105,110,10,32,111,112,116,105,111,110,115,32,40,115,101,101,32,103,111,99,114,32,109,97,110,117,97,108,32,112,97,103,101,115,32,102,111,114,32,109,111,114,101,32,100,101,116,97,105,108,115,41,58,10,32,45,104,44,32,45,45,104,101,108,112,10,32,45,105,32,110,97,109,101,32,32,32,45,32,105,110,112,117,116,32,105,109,97,103,101,32,102,105,108,101,32,40,112,110,109,44,112,103,109,44,112,98,109,44,112,112,109,44,112,99,120,44,46,46,46,41,10,32,45,111,32,110,97,109,101,32,32,32,45,32,111,117,116,112,117,116,32,102,105,108,101,32,32,40,114,101,100,105,114,101,99,116,105,111,110,32,111,102,32,115,116,100,111,117,116,41,10,32,45,101,32,110,97,109,101,32,32,32,45,32,108,111,103,103,105,110,103,32,102,105,108,101,32,40,114,101,100,105,114,101,99,116,105,111,110,32,111,102,32,115,116,100,101,114,114,41,10,32,45,120,32,110,97,109,101,32,32,32,45,32,112,114,111,103,114,101,115,115,32,111,117,116,112,117,116,32,116,111,32,102,105,102,111,32,40,115,101,101,32,109,97,110,117,97,108,41,10,32,45,112,32,110,97,109,101,32,32,32,45,32,100,97,116,97,98,97,115,101,32,112,97,116,104,32,105,110,99,108,117,100,105,110,103,32,102,105,110,97,108,32,115,108,97,115,104,32,40,100,101,102,97,117,108,116,32,105,115,32,46,47,100,98,47,41,10,0,0,0,0,0,0,0,38,101,103,114,97,118,101,59,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,32,100,105,115,116,61,37,52,100,32,99,61,32,37,99,32,48,120,37,48,50,120,32,37,115,32,32,119,99,61,32,37,51,100,0,0,0,0,0,0,38,99,99,101,100,105,108,59,0,0,0,0,0,0,0,0,38,99,99,97,114,111,110,59,0,0,0,0,0,0,0,0,38,97,101,108,105,103,59,0,50,49,50,49,50,51,0,0,49,50,49,50,50,51,0,0,38,97,114,105,110,103,59,0,38,97,117,109,108,59,0,0,37,37,0,0,0,0,0,0,38,97,116,105,108,100,101,59,0,0,0,0,0,0,0,0,114,101,109,111,118,101,95,100,117,115,116,50,0,0,0,0,114,98,0,0,0,0,0,0,38,97,99,105,114,99,59,0,38,97,99,97,114,111,110,59,0,0,0,0,0,0,0,0,32,40,87,65,82,78,73,78,71,32,110,117,109,95,103,97,112,115,60,56,41,0,0,0,38,97,98,114,101,118,101,59,0,0,0,0,0,0,0,0,35,32,117,110,107,110,111,119,110,32,111,112,116,105,111,110,32,117,115,101,32,45,104,32,102,111,114,32,104,101,108,112,10,0,0,0,0,0,0,0,38,97,97,99,117,116,101,59,0,0,0,0,0,0,0,0,35,32,122,111,110,105,110,103,10,35,32,46,46,46,32,0,10,35,68,69,66,85,71,58,32,111,99,114,95,100,98,32,40,37,100,44,37,100,41,32,0,0,0,0,0,0,0,0,38,97,103,114,97,118,101,59,0,0,0,0,0,0,0,0,38,115,122,108,105,103,59,0,38,84,72,79,82,78,59,0,51,50,50,50,49,49,0,0,38,90,99,97,114,111,110,59,0,0,0,0,0,0,0,0,38,89,97,99,117,116,101,59,0,0,0,0,0,0,0,0,46,46,46,0,0,0,0,0,38,85,117,109,108,59,0,0,10,35,32,32,114,101,109,111,118,101,49,32,37,51,100,32,37,51,100,32,0,0,0,0,114,101,97,100,32,102,101,114,114,111,114,10,0,0,0,0,38,85,99,105,114,99,59,0,38,85,97,99,117,116,101,59,0,0,0,0,0,0,0,0,32,76,37,48,50,100,32,110,117,109,95,103,97,112,115,61,32,37,50,100,32,120,95,119,105,100,116,104,61,32,37,50,100,32,45,32,37,50,100,32,109,111,110,111,95,101,109,61,32,37,50,100,32,45,32,37,50,100,32,32,109,111,110,111,61,32,37,100,0,0,0,0,38,85,103,114,97,118,101,59,0,0,0,0,0,0,0,0,38,83,99,97,114,111,110,59,0,0,0,0,0,0,0,0,87,97,114,110,105,110,103,58,32,117,110,107,110,111,119,110,32,102,111,114,109,97,116,32,40,45,102,32,37,115,41,10,0,0,0,0,0,0,0,0,35,32,100,101,116,101,99,116,46,99,32,100,101,116,101,99,116,95,116,101,120,116,95,108,105,110,101,115,32,40,118,118,118,61,49,54,32,102,111,114,32,109,111,114,101,32,105,110,102,111,41,10,0,0,0,0,37,99,37,99,10,0,0,0,38,79,115,108,97,115,104,59,0,0,0,0,0,0,0,0,38,116,105,109,101,115,0,0,38,79,117,109,108,59,0,0,51,50,50,49,49,50,0,0,38,79,116,105,108,100,101,59,0,0,0,0,0,0,0,0,38,79,99,105,114,99,59,0,42,0,0,0,0,0,0,0,38,79,97,99,117,116,101,59,0,0,0,0,0,0,0,0,35,32,114,101,109,111,118,101,95,114,101,115,116,95,111,102,95,100,117,115,116,32,40,97,118,88,44,110,67,41,44,32,46,46,46,32,0,0,0,0,114,101,97,100,32,102,101,111,102,10,0,0,0,0,0,0,38,79,103,114,97,118,101,59,0,0,0,0,0,0,0,0,38,78,116,105,108,100,101,59,0,0,0,0,0,0,0,0,32,76,37,48,50,100,32,109,111,110,111,58,61,48,32,32,37,100,32,45,32,37,100,32,32,112,114,101,50,32,37,100,32,37,100,32,32,37,100,32,37,100,10,35,32,46,46,46,0,0,0,0,0,0,0,0,38,69,84,72,59,0,0,0,38,73,117,109,108,59,0,0,65,83,67,73,73,0,0,0,60,33,45,45,32,103,111,99,114,32,119,105,108,108,32,102,97,105,108,44,32,115,116,114,111,110,103,32,114,111,116,97,116,105,111,110,32,97,110,103,108,101,32,100,101,116,101,99,116,101,100,32,45,45,62,10,0,0,0,0,0,0,0,0,37,99,0,0,0,0,0,0,38,73,99,105,114,99,59,0,32,67,79,77,80,79,83,69,58,32,65,67,85,84,69,95,65,67,67,69,78,84,43,37,48,52,120,32,110,111,116,32,100,101,102,105,110,101,100,10,0,0,0,0,0,0,0,0,38,73,97,99,117,116,101,59,0,0,0,0,0,0,0,0,38,73,103,114,97,118,101,59,0,0,0,0,0,0,0,0,51,49,50,50,49,50,0,0,38,69,117,109,108,59,0,0,106,111,98,0,0,0,0,0,38,69,99,105,114,99,59,0,43,0,0,0,0,0,0,0,10,35,32,32,100,117,115,116,32,115,105,122,101,32,104,105,115,116,111,103,114,97,109,32,37,51,100,32,37,53,100,0,38,69,99,97,114,111,110,59,0,0,0,0,0,0,0,0,32,37,51,100,32,99,108,117,115,116,101,114,32,99,111,114,114,101,99,116,101,100,44,32,37,100,32,110,101,119,32,98,111,120,101,115,10,0,0,0,10,69,82,82,79,82,32,112,110,109,46,99,32,76,37,100,58,32,0,0,0,0,0,0,99,111,117,108,100,32,110,111,116,32,111,112,101,110,32,37,115,32,102,111,114,32,112,114,111,103,114,101,115,115,32,111,117,116,112,117,116,10,0,0,38,69,97,99,117,116,101,59,0,0,0,0,0,0,0,0,38,69,103,114,97,118,101,59,0,0,0,0,0,0,0,0,32,76,37,48,50,100,32,109,111,110,111,58,61,48,32,32,37,100,32,45,32,37,100,32,32,112,114,101,49,32,37,100,32,37,100,32,32,37,100,32,37,100,10,35,32,46,46,46,0,0,0,0,0,0,0,0,38,67,99,101,100,105,108,59,0,0,0,0,0,0,0,0,38,67,99,97,114,111,110,59,0,0,0,0,0,0,0,0,85,84,70,56,0,0,0,0,35,32,114,111,116,97,116,105,111,110,32,97,110,103,108,101,32,40,120,44,121,44,109,97,120,114,44,110,117,109,41,32,37,54,100,32,37,54,100,32,37,54,100,32,37,52,100,32,112,97,115,115,32,37,100,10,0,0,0,0,0,0,0,0,35,32,115,104,111,119,32,112,97,116,116,101,114,110,32,120,61,32,37,52,100,32,37,52,100,32,100,61,32,37,51,100,32,37,51,100,32,116,61,32,37,100,32,37,100,10,0,0,38,65,69,108,105,103,59,0,38,65,114,105,110,103,59,0,38,65,117,109,108,59,0,0,51,50,49,50,50,49,0,0,46,112,98,109,46,103,122,0,38,65,116,105,108,100,101,59,0,0,0,0,0,0,0,0,110,32,60,32,84,82,69,69,95,65,82,82,65,89,95,83,73,90,69,0,0,0,0,0,38,65,99,105,114,99,59,0,44,44,0,0,0,0,0,0,38,65,98,114,101,118,101,59,0,0,0,0,0,0,0,0,10,35,32,32,108,111,119,101,114,32,115,101,114,105,102,32,120,48,44,121,48,44,106,49,45,120,48,43,120,44,121,49,45,121,32,37,52,100,32,37,52,100,32,37,51,100,32,43,32,37,50,100,32,37,50,100,0,0,0,0,0,0,0,0,102,105,103,50,100,101,118,32,45,76,32,112,112,109,32,45,109,32,51,0,0,0,0,0,38,65,97,99,117,116,101,59,0,0,0,0,0,0,0,0,38,65,103,114,97,118,101,59,0,0,0,0,0,0,0,0,32,76,37,48,50,100,32,68,66,71,50,32,120,32,37,51,100,32,37,43,52,100,32,37,51,100,32,37,43,52,100,32,32,100,32,37,51,100,32,37,51,100,32,32,101,109,32,37,50,100,32,37,50,100,32,32,101,120,32,37,50,100,10,35,32,46,46,46,0,0,0,0,38,105,113,117,101,115,116,59,0,0,0,0,0,0,0,0,38,102,114,97,99,51,52,59,0,0,0,0,0,0,0,0,83,71,77,76,0,0,0,0,32,98,111,120,32,100,101,116,101,99,116,101,100,32,97,116,32,37,52,100,32,37,52,100,32,37,52,100,32,37,52,100,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,38,102,114,97,99,49,50,59,0,0,0,0,0,0,0,0,38,102,114,97,99,49,52,59,0,0,0,0,0,0,0,0,38,114,97,113,117,111,59,0,51,50,49,49,50,50,0,0,38,111,114,100,109,59,0,0,38,115,117,112,49,59,0,0,39,39,0,0,0,0,0,0,38,99,101,100,105,108,59,0,32,61,62,32,115,112,108,105,116,116,101,100,0,0,0,0,46,102,105,103,0,0,0,0,38,109,105,100,100,111,116,59,0,0,0,0,0,0,0,0,38,112,97,114,97,59,0,0,32,76,37,48,50,100,32,68,66,71,49,32,120,32,37,51,100,32,37,43,52,100,32,37,51,100,32,37,43,52,100,32,32,100,32,37,51,100,32,37,51,100,32,32,101,109,32,37,50,100,32,37,50,100,32,32,101,120,32,37,50,100,10,35,32,46,46,46,0,0,0,0,38,109,105,99,114,111,59,0,38,97,99,117,116,101,59,0,88,77,76,0,0,0,0,0,32,101,109,112,116,121,32,98,111,120,0,0,0,0,0,0,32,37,115,40,37,100,41,0,10,68,66,71,58,32,115,101,116,97,115,40,78,85,76,76,41,32,109,97,107,101,115,32,110,111,32,115,101,110,115,101,33,0,0,0,0,0,0,0,38,115,117,112,51,59,0,0,38,115,117,112,50,59,0,0,69,82,82,79,82,32,112,99,120,46,99,32,76,37,100,58,32,114,101,97,100,32,80,67,88,32,104,101,97,100,101,114,10,0,0,0,0,0,0,0,38,112,108,117,115,109,110,59,0,0,0,0,0,0,0,0,51,49,49,50,50,50,0,0,38,100,101,103,59,0,0,0,38,109,97,99,114,59,0,0,10,35,32,32,102,114,97,109,101,115,61,32,37,100,32,40,115,117,109,118,101,99,116,115,61,37,100,41,0,0,0,0,96,96,0,0,0,0,0,0,38,114,101,103,59,0,0,0,35,32,109,101,108,116,101,100,32,115,101,114,105,102,115,32,99,111,114,114,101,99,116,101,100,32,111,110,32,37,100,32,37,100,32,106,49,61,37,100,32,106,51,61,37,100,0,0,35,32,116,104,114,101,115,104,111,108,100,58,32,118,97,108,117,101,32,105,104,105,115,116,32,99,104,105,115,116,32,109,97,115,115,95,100,105,112,111,108,95,109,111,109,101,110,116,32,116,114,105,103,103,10,0,46,101,112,115,0,0,0,0,60,33,45,45,69,82,82,79,82,32,53,55,54,45,45,62,0,0,0,0,0,0,0,0,38,115,104,121,59,0,0,0,38,110,111,116,59,0,0,0,10,35,32,32,108,105,110,101,32,37,50,100,10,35,32,46,46,46,0,0,0,0,0,0,38,108,97,113,117,111,59,0,38,111,114,100,102,101,109,59,0,0,0,0,0,0,0,0,72,84,77,76,0,0,0,0,63,0,0,0,0,0,0,0,10,35,32,108,105,115,116,32,98,111,120,32,99,104,97,114,58,32,0,0,0,0,0,0,38,99,111,112,121,59,0,0,103,101,116,95,108,101,97,115,116,95,108,105,110,101,95,105,110,100,101,110,116,58,32,114,111,116,46,118,101,99,116,111,114,32,100,120,100,121,32,37,100,32,37,100,10,0,0,0,38,117,109,108,59,0,0,0,38,115,101,99,116,59,0,0,51,49,50,49,51,49,0,0,38,98,114,118,98,97,114,59,0,0,0,0,0,0,0,0,38,121,101,110,59,0,0,0,126,0,0,0,0,0,0,0,60,98,114,32,47,62,0,0,38,99,117,114,114,101,110,59,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,38,112,111,117,110,100,59,0,112,115,116,111,112,110,109,32,45,115,116,100,111,117,116,32,45,112,111,114,116,114,97,105,116,32,45,112,103,109,0,0,10,35,32,100,101,116,101,99,116,95,108,105,110,101,115,49,40,37,100,32,37,100,32,37,100,32,37,100,41,32,118,118,118,38,49,54,32,99,104,97,114,115,61,37,100,32,109,121,61,37,100,10,35,32,32,0,38,99,101,110,116,59,0,0,35,32,99,104,101,99,107,32,102,111,114,32,119,111,114,100,32,112,105,116,99,104,0,0,38,105,101,120,99,108,59,0,46,46,46,32,37,100,32,108,105,110,101,115,44,32,98,111,120,101,115,61,32,37,100,44,32,99,104,97,114,115,61,32,37,100,10,0,0,0,0,0,60,110,111,98,114,32,47,62,0,0,0,0,0,0,0,0,84,101,88,0,0,0,0,0,32,109,111,115,116,32,117,112,112,101,114,32,98,111,120,32,97,116,32,110,101,119,32,108,105,110,101,32,120,121,61,32,37,52,100,32,37,52,100,32,37,43,52,100,32,37,43,52,100,10,35,32,32,0,0,0,121,0,0,0,0,0,0,0,10,35,32,115,104,111,119,32,98,111,120,32,32,32,32,32,120,61,32,37,52,100,32,37,52,100,32,100,61,32,37,51,100,32,37,51,100,32,114,61,32,37,100,32,37,100,0,0,60,98,114,32,47,62,0,0,60,33,45,45,80,73,67,84,85,82,69,45,45,62,0,0,38,103,116,59,0,0,0,0,50,50,51,49,49,50,0,0,114,0,0,0,0,0,0,0,38,108,116,59,0,0,0,0,38,113,117,111,116,59,0,0,10,68,66,71,32,109,101,114,103,101,95,98,111,120,101,115,32,77,97,120,78,117,109,70,114,97,109,101,115,32,114,101,97,99,104,101,100,0,0,0,44,0,0,0,0,0,0,0,38,97,112,111,115,59,0,0,32,111,107,49,0,0,0,0,46,112,115,0,0,0,0,0,38,97,109,112,59,0,0,0,92,115,121,109,98,111,108,123,37,117,125,0,0,0,0,0,32,110,67,61,32,37,51,100,32,97,118,68,61,32,37,50,100,32,37,50,100,10,0,0,40,80,73,67,84,85,82,69,41,0,0,0,0,0,0,0,60,47,98,108,111,99,107,62,10,60,47,112,97,103,101,62,10,0,0,0,0,0,0,0,73,83,79,56,56,53,57,95,49,0,0,0,0,0,0,0,120,0,0,0,0,0,0,0,10,35,32,115,104,111,119,32,98,111,120,32,43,32,101,110,118,105,114,111,110,109,101,110,116,0,0,0,0,0,0,0,92,105,110,102,116,121,0,0,92,102,114,113,123,125,0,0,92,102,108,113,123,125,0,0,50,49,51,50,49,50,0,0,92,108,100,111,116,115,0,0,36,92,98,108,97,99,107,116,114,105,97,110,103,108,101,114,105,103,104,116,0,0,0,0,39,0,0,0,0,0,0,0,36,92,98,117,108,108,101,116,36,0,0,0,0,0,0,0,10,35,32,32,117,112,112,101,114,32,115,101,114,105,102,32,120,48,44,121,48,44,106,49,45,120,48,43,120,44,121,45,121,48,32,37,52,100,32,37,52,100,32,37,51,100,32,43,32,37,50,100,32,37,50,100,0,0,0,0,0,0,0,0,112,110,103,116,111,112,110,109,0,0,0,0,0,0,0,0,92,100,100,97,103,0,0,0,92,100,97,103,0,0,0,0,10,69,82,82,79,82,32,115,99,97,110,95,98,111,120,101,115,58,32,110,111,32,118,101,99,116,111,114,32,105,110,32,102,114,97,109,101,32,40,37,100,44,37,100,41,0,0,0,92,103,108,113,113,123,125,0,34,32,47,62,10,0,0,0,92,103,108,113,123,125,0,0,115,116,100,111,117,116,32,114,101,100,105,114,101,99,116,105,111,110,32,116,111,32,37,115,32,102,97,105,108,101,100,10,0,0,0,0,0,0,0,0,32,100,105,118,105,100,101,32,97,116,32,37,115,32,120,61,37,52,100,32,121,61,37,52,100,32,100,120,61,37,52,100,32,100,121,61,37,52,100,0,37,115,32,37,48,52,120,10,0,0,0,0,0,0,0,0,92,40,32,92,118,97,114,112,105,32,92,41,0,0,0,0,92,40,32,92,112,104,105,32,92,41,0,0,0,0,0,0,92,40,32,92,118,97,114,116,104,101,116,97,32,92,41,0,50,50,49,50,51,49,0,0,50,50,50,50,50,49,0,0,92,40,32,92,111,109,101,103,97,32,92,41,0,0,0,0,92,40,32,92,112,115,105,32,92,41,0,0,0,0,0,0,96,0,0,0,0,0,0,0,92,40,32,92,99,104,105,32,92,41,0,0,0,0,0,0,35,32,115,101,97,114,99,104,105,110,103,32,109,101,108,116,101,100,32,115,101,114,105,102,115,32,46,46,46,0,0,0,46,112,110,103,0,0,0,0,92,40,32,92,118,97,114,112,104,105,32,92,41,0,0,0,92,40,32,92,117,112,115,105,108,111,110,32,92,41,0,0,35,32,115,99,97,110,95,98,111,120,101,115,0,0,0,0,92,40,32,92,116,97,117,32,92,41,0,0,0,0,0,0,34,32,97,99,104,97,114,115,61,34,0,0,0,0,0,0,92,40,32,92,115,105,103,109,97,32,92,41,0,0,0,0,115,116,100,101,114,114,32,114,101,100,105,114,101,99,116,105,111,110,32,116,111,32,37,115,32,102,97,105,108,101,100,10,0,0,0,0,0,0,0,0,32,105,61,37,100,0,0,0,37,115,32,37,48,56,120,10,0,0,0,0,0,0,0,0,92,40,32,92,118,97,114,115,105,103,109,97,32,92,41,0,92,40,32,92,114,104,111,32,92,41,0,0,0,0,0,0,92,40,32,92,112,105,32,92,41,0,0,0,0,0,0,0,50,50,49,49,51,50,0,0,92,40,32,92,111,109,105,99,114,111,110,32,92,41,0,0,92,40,32,92,120,105,32,92,41,0,0,0,0,0,0,0,35,32,108,111,97,100,32,100,97,116,97,98,97,115,101,32,37,115,32,37,115,32,46,46,46,32,0,0,0,0,0,0,45,45,45,0,0,0,0,0,92,40,32,92,110,117,32,92,41,0,0,0,0,0,0,0,114,101,109,111,118,101,95,109,101,108,116,101,100,95,115,101,114,105,102,115,0,0,0,0,116,105,102,102,116,111,112,110,109,0,0,0,0,0,0,0,92,40,32,92,109,117,32,92,41,0,0,0,0,0,0,0,92,40,32,92,108,97,109,98,100,97,32,92,41,0,0,0,10,68,66,71,32,119,104,97,116,108,101,116,116,101,114,58,32,99,111,109,112,111,115,101,40,37,115,41,32,119,97,115,32,117,115,101,108,101,115,115,32,40,37,100,44,37,100,41,0,0,0,0,0,0,0,0,92,40,32,92,107,97,112,112,97,32,92,41,0,0,0,0,35,32,119,114,105,116,105,110,103,32,37,115,91,46,112,110,103,93,32,120,121,61,32,37,100,32,37,100,10,0,0,0,44,0,0,0,0,0,0,0,92,40,32,92,105,111,116,97,32,92,41,0,0,0,0,0,119,0,0,0,0,0,0,0,10,35,32,114,61,37,50,100,32,0,0,0,0,0,0,0,37,115,32,37,99,10,0,0,92,40,32,92,116,104,101,116,97,32,92,41,0,0,0,0,92,40,32,92,101,116,97,32,92,41,0,0,0,0,0,0,105,110,105,116,95,114,115,32,102,97,105,108,101,100,44,32,98,97,100,32,112,114,105,109,105,116,105,118,101,32,103,102,112,111,108,121,32,120,61,37,100,10,35,32,0,0,0,0,92,40,32,92,122,101,116,97,32,92,41,0,0,0,0,0,60,98,97,114,99,111,100,101,32,116,121,112,101,61,34,117,110,107,110,111,119,110,32,113,114,99,111,100,101,34,32,47,62,0,0,0,0,0,0,0,50,50,51,50,49,49,0,0,92,40,32,92,101,112,115,105,108,111,110,32,92,41,0,0,60,98,97,114,99,111,100,101,32,116,121,112,101,61,34,113,114,99,111,100,101,37,100,34,32,99,104,97,114,115,61,34,37,100,34,32,101,99,99,108,101,118,101,108,61,34,37,100,34,32,62,10,37,115,10,60,47,98,97,114,99,111,100,101,62,0,0,0,0,0,0,0,92,40,32,92,100,101,108,116,97,32,92,41,0,0,0,0,113,114,99,111,100,101,46,109,97,108,108,111,99,32,102,97,105,108,101,100,10,0,0,0,92,40,32,92,103,97,109,109,97,32,92,41,0,0,0,0,45,45,0,0,0,0,0,0,113,114,99,111,100,101,46,117,110,101,120,112,101,99,116,101,100,95,111,118,101,114,102,108,111,119,10,0,0,0,0,0,92,40,32,92,98,101,116,97,32,92,41,0,0,0,0,0,32,115,116,97,116,117,115,58,32,112,105,99,116,117,114,101,115,61,32,37,100,32,32,111,116,104,101,114,61,32,37,100,32,32,110,67,61,32,37,100,10,0,0,0,0,0,0,0,46,116,105,102,102,0,0,0,32,101,114,114,111,114,45,99,111,112,121,98,111,120,32,120,61,37,53,100,32,37,53,100,32,32,100,61,37,53,100,32,37,53,100,10,0,0,0,0,92,40,32,92,97,108,112,104,97,32,92,41,0,0,0,0,69,82,82,79,82,32,113,114,99,111,100,101,32,76,37,48,52,100,32,105,61,37,100,32,106,61,37,100,10,0,0,0,92,40,32,92,79,109,101,103,97,32,92,41,0,0,0,0,87,97,114,110,105,110,103,58,32,109,97,108,108,111,99,32,102,97,105,108,101,100,32,76,37,100,10,0,0,0,0,0,35,10,35,32,98,97,114,99,111,100,101,46,99,32,100,101,116,101,99,116,95,98,97,114,99,111,100,101,32,115,101,97,114,99,104,32,113,114,99,111,100,101,32,0,0,0,0,0,35,32,109,97,114,107,32,108,105,110,101,115,32,102,111,114,32,37,115,46,112,112,109,10,0,0,0,0,0,0,0,0,92,40,32,92,80,115,105,32,92,41,0,0,0,0,0,0,37,100,0,0,0,0,0,0,60,98,97,114,99,111,100,101,32,116,121,112,101,61,34,117,110,107,110,111,119,110,32,100,97,116,97,109,97,116,114,105,120,34,32,47,62,0,0,0,92,40,32,92,67,104,105,32,92,41,0,0,0,0,0,0,32,110,117,109,95,108,105,110,101,115,61,32,37,100,0,0,37,115,32,34,37,115,34,10,0,0,0,0,0,0,0,0,34,32,47,62,0,0,0,0,92,40,32,92,80,104,105,32,92,41,0,0,0,0,0,0,67,79,77,80,79,83,69,58,32,103,111,116,32,65,80,79,83,84,82,79,80,72,69,32,105,110,115,116,101,97,100,32,111,102,32,65,67,85,84,69,95,65,67,67,69,78,84,0,10,35,32,100,97,116,97,109,97,116,114,105,120,32,97,116,32,37,51,100,32,37,51,100,32,115,105,122,101,32,37,51,100,32,37,51,100,32,110,112,105,120,32,37,100,42,37,100,32,117,110,105,116,32,37,100,42,37,100,0,0,0,0,0,92,40,32,92,85,112,115,105,108,111,110,32,92,41,0,0,38,35,37,100,59,0,0,0,49,50,51,50,50,49,0,0,84,0,0,0,0,0,0,0,91,69,79,84,111,114,82,69,84,50,84,101,120,116,93,0,92,40,32,92,83,105,103,109,97,32,92,41,0,0,0,0,91,69,68,73,70,65,67,84,93,0,0,0,0,0,0,0,80,0,0,0,0,0,0,0,45,0,0,0,0,0,0,0,10,35,32,32,100,117,115,116,32,115,105,122,101,32,100,101,116,101,99,116,105,111,110,44,32,118,111,108,32,110,117,109,32,111,98,106,61,37,100,32,109,97,120,68,117,115,116,61,37,100,32,109,80,61,32,37,51,100,32,109,88,89,61,32,37,50,100,32,37,50,100,0,91,84,101,120,116,93,0,0,92,40,32,92,80,105,32,92,41,0,0,0,0,0,0,0,32,102,111,117,110,100,32,112,105,99,116,117,114,101,32,97,116,32,37,52,100,32,37,52,100,32,115,105,122,101,32,37,52,100,32,37,52,100,10,35,32,46,46,46,0,0,0,0,98,109,112,116,111,112,112,109,0,0,0,0,0,0,0,0,91,65,110,115,105,88,49,50,93,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,79,0,0,0,0,0,0,0,91,83,104,105,102,116,65,83,67,93,0,0,0,0,0,0,92,40,32,92,88,105,32,92,41,0,0,0,0,0,0,0,10,35,32,32,100,105,115,116,97,110,99,101,32,114,99,61,37,100,32,103,111,111,100,61,37,100,32,98,97,100,61,37,100,0,0,0,0,0,0,0,91,70,78,67,49,93,0,0,10,35,32,108,105,115,116,32,115,104,97,112,101,32,37,51,100,32,120,61,37,52,100,32,37,52,100,32,100,61,32,37,51,100,32,37,51,100,32,118,102,61,37,100,32,97,99,61,37,100,32,37,48,52,120,32,37,115,0,0,0,0,0,0,78,0,0,0,0,0,0,0,34,32,110,117,109,97,99,61,34,37,100,34,32,119,101,105,103,104,116,115,61,34,0,0,91,66,97,115,101,50,53,54,93,0,0,0,0,0,0,0,77,0,0,0,0,0,0,0,45,45,104,101,108,112,0,0,87,97,114,110,105,110,103,58,32,108,105,110,101,115,62,77,65,88,108,105,110,101,115,10,0,0,0,0,0,0,0,0,10,70,65,84,65,76,58,32,109,97,108,108,111,99,32,102,97,105,108,101,100,44,32,115,107,105,112,32,115,116,111,114,101,95,100,98,0,0,0,0,91,67,52,48,93,0,0,0,92,40,32,92,76,97,109,98,100,97,32,92,41,0,0,0,91,80,97,100,100,105,110,103,93,0,0,0,0,0,0,0,75,0,0,0,0,0,0,0,37,48,50,100,0,0,0,0,49,50,51,49,50,50,0,0,73,0,0,0,0,0,0,0,103,122,105,112,32,45,99,100,0,0,0,0,0,0,0,0,37,99,0,0,0,0,0,0,92,40,32,92,84,104,101,116,97,32,92,41,0,0,0,0,112,105,120,101,108,46,99,0,10,35,32,64,32,37,51,100,32,37,51,100,32,58,32,37,48,50,120,32,37,51,100,32,100,32,37,50,100,32,112,111,115,32,37,51,100,32,100,101,99,111,100,101,61,32,0,0,72,0,0,0,0,0,0,0,32,67,79,77,80,79,83,69,58,32,109,111,100,105,102,105,101,114,32,37,48,52,120,32,110,111,116,32,100,101,102,105,110,101,100,10,0,0,0,0,60,98,97,114,99,111,100,101,32,116,121,112,101,61,34,100,97,116,97,109,97,116,114,105,120,32,101,99,99,50,48,48,34,32,114,97,119,99,111,100,101,61,34,34,32,47,62,0,90,0,0,0,0,0,0,0,32,100,101,108,101,116,101,100,61,32,37,100,32,110,101,115,116,101,100,32,112,105,99,116,117,114,101,115,10,35,32,46,46,46,0,0,0,0,0,0,46,98,109,112,0,0,0,0,32,69,82,82,79,82,58,32,109,97,108,108,111,99,68,77,50,32,102,97,105,108,101,100,10,0,0,0,0,0,0,0,69,0,0,0,0,0,0,0,10,35,32,110,111,119,32,119,105,116,104,111,117,116,32,102,105,110,100,101,114,32,112,97,116,116,101,114,110,10,35,32,32,32,32,32,32,0,0,0,92,40,32,92,68,101,108,116,97,32,92,41,0,0,0,0,10,70,65,84,65,76,58,32,109,97,108,108,111,99,40,37,100,41,32,102,97,105,108,101,100,44,32,115,107,105,112,32,110,117,109,95,111,98,106,0,32,37,99,0,0,0,0,0,10,35,32,32,32,32,32,32,32,32,32,32,32,32,98,111,120,32,102,111,117,110,100,32,105,110,32,99,104,97,114,108,105,115,116,0,0,0,0,0,92,40,32,92,71,97,109,109,97,32,92,41,0,0,0,0,32,60,98,111,120,32,120,61,34,37,100,34,32,121,61,34,37,100,34,32,100,120,61,34,37,100,34,32,100,121,61,34,37,100,34,32,118,97,108,117,101,61,34,0,0,0,0,0,10,35,32,37,51,100,58,32,0,0,0,0,0,0,0,0,66,0,0,0,0,0,0,0,32,117,115,101,32,111,112,116,105,111,110,32,45,104,32,102,111,114,32,104,101,108,112,10,0,0,0,0,0,0,0,0,32,76,37,48,50,100,32,102,105,110,97,108,32,32,121,61,32,37,51,100,32,109,61,32,37,52,100,32,37,43,51,100,32,37,43,51,100,32,37,43,51,100,32,120,61,32,37,51,100,32,37,43,51,100,32,119,61,32,37,100,10,35,32,32,0,0,0,0,0,0,0,0,115,116,111,114,101,95,100,98,58,32,97,100,100,32,102,105,108,101,32,37,115,32,116,111,32,100,97,116,97,98,97,115,101,32,40,110,97,99,61,37,100,32,99,61,37,48,52,120,41,10,35,0,0,0,0,0,32,37,55,100,0,0,0,0,65,0,0,0,0,0,0,0,32,37,51,100,0,0,0,0,92,118,123,122,125,0,0,0,32,37,49,100,0,0,0,0,49,49,51,50,50,50,0,0,92,34,121,0,0,0,0,0,10,35,32,32,32,32,32,32,0,0,0,0,0,0,0,0,92,39,121,0,0,0,0,0,32,69,82,82,79,82,58,32,109,97,108,108,111,99,68,77,49,32,102,97,105,108,101,100,10,0,0,0,0,0,0,0,92,34,117,0,0,0,0,0,32,67,79,77,80,79,83,69,58,32,71,82,69,69,75,32,37,48,52,120,32,110,111,116,32,100,101,102,105,110,101,100,10,0,0,0,0,0,0,0,35,32,98,97,114,99,111,100,101,46,99,32,100,101,116,101,99,116,95,98,97,114,99,111]) +.concat([100,101,32,115,101,97,114,99,104,32,100,97,116,97,109,97,116,114,105,120,32,0,0,0,92,94,117,0,0,0,0,0,32,100,101,108,101,116,101,100,61,32,37,100,32,112,105,99,116,117,114,101,115,32,40,111,110,32,98,111,114,100,101,114,41,10,35,32,46,46,46,0,103,105,102,116,111,112,110,109,32,45,105,109,97,103,101,61,97,108,108,0,0,0,0,0,10,35,32,46,46,46,32,98,111,120,101,115,32,37,100,32,110,67,32,37,100,10,0,0,92,39,117,0,0,0,0,0,10,35,32,46,46,46,32,114,101,109,111,118,101,100,32,98,111,120,101,115,58,32,37,100,0,0,0,0,0,0,0,0,92,96,117,0,0,0,0,0,10,70,65,84,65,76,58,32,109,97,108,108,111,99,40,37,100,41,32,102,97,105,108,101,100,44,32,115,107,105,112,32,110,117,109,95,104,111,108,101,0,0,0,0,0,0,0,0,10,35,32,46,46,46,32,100,101,99,111,100,101,100,32,97,115,58,32,37,115,0,0,0,10,35,32,108,105,115,116,32,115,104,97,112,101,32,102,111,114,32,99,104,97,114,108,105,115,116,32,37,115,0,0,0,92,118,123,115,125,0,0,0,32,0,0,0,0,0,0,0,60,98,97,114,99,111,100,101,32,116,121,112,101,61,34,117,110,107,110,111,119,110,34,32,47,62,0,0,0,0,0,0,92,111,0,0,0,0,0,0,32,79,112,116,105,99,97,108,32,67,104,97,114,97,99,116,101,114,32,82,101,99,111,103,110,105,116,105,111,110,32,45,45,45,32,103,111,99,114,32,48,46,53,48,32,50,48,49,51,48,51,48,53,10,32,67,111,112,121,114,105,103,104,116,32,40,67,41,32,50,48,48,49,45,50,48,49,48,32,74,111,101,114,103,32,83,99,104,117,108,101,110,98,117,114,103,32,32,71,80,71,61,49,48,50,52,68,47,53,51,66,68,70,66,69,51,10,32,114,101,108,101,97,115,101,100,32,117,110,100,101,114,32,116,104,101,32,71,78,85,32,71,101,110,101,114,97,108,32,80,117,98,108,105,99,32,76,105,99,101,110,115,101,10,0,0,0,0,32,76,37,48,50,100,32,106,106,32,37,51,100,32,121,61,32,37,51,100,32,109,61,32,37,52,100,32,37,43,51,100,32,37,43,51,100,32,37,43,51,100,32,32,109,121,61,32,37,52,100,10,35,32,32,0,32,99,111,117,108,100,32,110,111,116,32,97,99,99,101,115,115,32,37,115,10,0,0,0,10,68,66,71,58,32,84,104,101,114,101,32,105,115,32,115,111,109,101,116,104,105,110,103,32,119,114,111,110,103,32,119,105,116,104,32,115,101,116,97,115,40,41,33,0,0,0,0,10,35,32,46,46,46,32,116,114,111,117,98,108,101,58,32,110,117,109,95,102,111,117,110,100,95,98,97,114,115,32,33,61,32,110,117,109,95,99,114,111,115,115,0,0,0,0,0,36,92,100,105,118,36,0,0,10,35,32,98,97,114,99,111,100,101,32,97,116,32,37,51,100,32,37,51,100,32,115,105,122,101,32,37,51,100,32,37,51,100,32,110,98,97,114,115,32,37,100,32,40,37,100,41,0,0,0,0,0,0,0,0,92,34,111,0,0,0,0,0,35,32,98,97,114,99,111,100,101,46,99,32,100,101,116,101,99,116,95,98,97,114,99,111,100,101,32,0,0,0,0,0,49,50,50,50,51,49,0,0,69,82,82,79,82,32,112,99,120,46,99,32,76,37,100,58,32,111,112,101,110,10,0,0,92,126,111,0,0,0,0,0,10,35,32,46,46,46,32,100,101,116,101,99,116,32,98,97,114,115,61,37,51,100,32,119,61,37,52,100,0,0,0,0,92,94,111,0,0,0,0,0,60,98,97,114,99,111,100,101,32,116,121,112,101,61,34,99,111,100,97,98,97,114,34,32,99,104,97,114,115,61,34,37,100,34,32,99,111,100,101,61,34,37,115,34,32,99,114,99,61,34,37,99,34,32,101,114,114,111,114,61,34,37,46,51,102,34,32,47,62,0,0,0,92,39,111,0,0,0,0,0,10,35,32,32,100,111,116,115,61,37,100,32,98,111,120,101,115,61,37,100,32,115,117,98,98,111,120,101,115,61,37,100,32,99,61,37,115,32,109,111,100,61,37,115,32,108,105,110,101,61,37,100,32,109,61,32,37,100,32,37,100,32,37,100,32,37,100,0,0,0,0,0,32,67,79,77,80,79,83,69,58,32,37,48,52,120,43,101,47,69,32,110,111,116,32,100,101,102,105,110,101,100,10,0,48,46,46,46,46,46,45,45,49,46,46,46,46,45,45,46,50,46,46,46,45,46,46,45,51,45,45,46,46,46,46,46,52,46,46,45,46,46,45,46,53,45,46,46,46,46,45,46,54,46,45,46,46,46,46,45,55,46,45,46,46,45,46,46,56,46,45,45,46,46,46,46,57,45,46,46,45,46,46,46,45,46,46,46,45,45,46,46,36,46,46,45,45,46,46,46,58,45,46,46,46,45,46,45,47,45,46,45,46,46,46,45,46,45,46,45,46,45,46,46,43,46,46,45,46,45,46,45,97,46,46,45,45,46,45,46,98,46,45,46,45,46,46,45,99,46,46,46,45,46,45,45,100,46,46,46,45,45,45,46,116,46,46,45,45,46,45,46,110,46,45,46,45,46,46,45,42,46,46,46,45,46,45,45,101,46,46,46,45,45,45,46,63,63,63,63,63,63,63,63,0,0,0,0,0,0,0,0,92,96,111,0,0,0,0,0,32,100,101,108,101,116,101,100,61,32,37,100,32,112,105,99,116,117,114,101,115,32,40,116,97,98,108,101,32,102,114,97,109,101,115,41,10,35,32,46,46,46,0,0,0,0,0,0,78,79,84,32,78,79,82,77,65,76,44,32,116,104,114,101,115,104,111,108,100,86,97,108,117,101,32,61,32,49,54,48,10,0,0,0,0,0,0,0,46,103,105,102,0,0,0,0,60,98,97,114,99,111,100,101,32,116,121,112,101,61,34,105,50,53,34,32,99,104,97,114,115,61,34,37,100,34,32,99,111,100,101,61,34,37,115,34,32,99,114,99,61,34,37,99,34,32,101,114,114,111,114,61,34,37,46,51,102,34,32,47,62,0,0,0,0,0,0,0,69,114,114,111,114,32,105,110,32,111,99,114,48,46,99,32,76,37,100,58,32,105,100,120,32,37,100,45,37,100,32,111,117,116,32,111,102,32,114,97,110,103,101,10,0,0,0,0,92,126,110,0,0,0,0,0,49,45,46,46,46,45,50,46,45,46,46,45,51,45,45,46,46,46,52,46,46,45,46,45,53,45,46,45,46,46,54,46,45,45,46,46,55,46,46,46,45,45,56,45,46,46,45,46,57,46,45,46,45,46,48,46,46,45,45,46,0,0,0,0,92,34,105,0,0,0,0,0,111,117,116,51,48,0,0,0,69,82,82,79,82,32,102,114,97,109,101,95,118,101,99,116,111,114,58,32,110,111,32,98,111,114,100,101,114,10,0,0,108,105,115,116,95,115,111,114,116,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,60,98,97,114,99,111,100,101,32,116,121,112,101,61,34,51,57,34,32,99,104,97,114,115,61,34,37,100,34,32,99,111,100,101,61,34,37,115,34,32,99,114,99,61,34,37,99,34,32,101,114,114,111,114,61,34,37,46,51,102,34,32,47,62,0,0,0,0,0,0,0,0,10,35,32,108,105,115,116,32,50,32,112,97,116,116,101,114,110,115,0,0,0,0,0,0,92,94,105,0,0,0,0,0,32,40,37,99,41,61,37,100,0,0,0,0,0,0,0,0,32,60,115,112,97,99,101,32,120,61,34,37,100,34,32,121,61,34,37,100,34,32,100,120,61,34,37,100,34,32,100,121,61,34,37,100,34,32,47,62,10,0,0,0,0,0,0,0,48,46,46,45,45,46,46,45,46,46,49,45,46,46,46,45,46,45,46,46,50,46,45,46,46,45,46,45,46,46,51,45,45,46,46,46,46,45,46,46,52,46,46,45,46,45,46,45,46,46,53,45,46,45,46,46,46,45,46,46,54,46,45,45,46,46,46,45,46,46,55,46,46,46,45,45,46,45,46,46,56,45,46,46,45,46,46,45,46,46,57,46,45,46,45,46,46,45,46,46,65,45,46,46,46,45,46,46,45,46,66,46,45,46,46,45,46,46,45,46,67,45,45,46,46,46,46,46,45,46,68,46,46,45,46,45,46,46,45,46,69,45,46,45,46,46,46,46,45,46,70,46,45,45,46,46,46,46,45,46,71,46,46,46,45,45,46,46,45,46,72,45,46,46,45,46,46,46,45,46,73,46,45,46,45,46,46,46,45,46,74,46,46,45,45,46,46,46,45,46,75,45,46,46,46,45,46,46,46,45,76,46,45,46,46,45,46,46,46,45,77,45,45,46,46,46,46,46,46,45,78,46,46,45,46,45,46,46,46,45,79,45,46,45,46,46,46,46,46,45,80,46,45,45,46,46,46,46,46,45,81,46,46,46,45,45,46,46,46,45,82,45,46,46,45,46,46,46,46,45,83,46,45,46,45,46,46,46,46,45,84,46,46,45,45,46,46,46,46,45,85,45,46,46,46,45,45,46,46,46,86,46,45,46,46,45,45,46,46,46,87,45,45,46,46,46,45,46,46,46,88,46,46,45,46,45,45,46,46,46,89,45,46,45,46,46,45,46,46,46,90,46,45,45,46,46,45,46,46,46,45,46,46,46,45,45,45,46,46,46,46,45,46,46,45,46,45,46,46,46,32,46,45,46,45,46,45,46,46,46,42,46,46,45,45,46,45,46,46,46,36,46,46,46,46,46,45,45,45,46,47,46,46,46,46,46,45,45,46,45,43,46,46,46,46,46,45,46,45,45,37,46,46,46,46,46,46,45,45,45,63,120,120,120,120,120,120,120,120,120,0,0,0,0,0,0,92,39,105,0,0,0,0,0,35,32,117,115,105,110,103,32,117,110,105,99,111,100,101,10,0,0,0,0,0,0,0,0,35,32,100,101,98,117,103,58,32,40,95,41,61,32,37,100,32,112,105,99,116,115,61,32,37,100,32,99,104,97,114,115,61,32,37,100,0,0,0,0,32,97,108,108,32,98,111,120,101,115,32,111,102,32,115,97,109,101,32,108,111,119,101,114,32,98,111,117,110,100,33,10,35,32,32,0,0,0,0,0,97,0,0,0,0,0,0,0,60,98,97,114,99,111,100,101,32,116,121,112,101,61,34,85,80,67,95,97,100,100,111,110,34,32,99,104,97,114,115,61,34,37,100,34,32,99,111,100,101,61,34,37,115,34,32,101,114,114,111,114,61,34,37,46,51,102,34,32,47,62,0,0,92,96,105,0,0,0,0,0,114,101,97,108,108,111,99,32,102,97,105,108,101,100,33,10,0,0,0,0,0,0,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,0,0,0,60,98,97,114,99,111,100,101,32,116,121,112,101,61,34,85,80,67,34,32,99,104,97,114,115,61,34,37,100,34,32,99,111,100,101,61,34,37,100,37,115,34,32,99,114,99,61,34,37,100,34,32,101,114,114,111,114,61,34,37,46,51,102,34,32,47,62,0,0,0,0,0,92,34,101,0,0,0,0,0,95,0,0,0,0,0,0,0,35,32,99,111,110,116,101,120,116,32,99,111,114,114,101,99,116,105,111,110,32,105,102,32,33,40,109,111,100,101,38,51,50,41,10,0,0,0,0,0,63,63,63,63,0,0,0,0,49,50,50,49,51,50,0,0,92,94,101,0,0,0,0,0,111,117,116,50,48,0,0,0,50,49,49,51,0,0,0,0,92,118,123,101,125,0,0,0,35,32,100,101,98,117,103,58,32,117,110,107,110,111,119,110,61,32,37,100,32,112,105,99,116,115,61,32,37,100,32,98,111,120,101,115,61,32,37,100,10,0,0,0,0,0,0,0,51,49,50,49,0,0,0,0,92,39,101,0,0,0,0,0,111,117,116,49,48,0,0,0,32,67,79,77,80,79,83,69,58,32,82,73,78,71,95,65,66,79,86,69,43,37,48,52,120,32,110,111,116,32,100,101,102,105,110,101,100,10,0,0,103,111,99,114,46,99,0,0,50,49,51,49,0,0,0,0,92,96,101,0,0,0,0,0,32,115,116,97,116,117,115,58,32,112,105,99,116,117,114,101,115,61,32,37,100,32,32,111,116,104,101,114,61,32,37,100,32,32,110,67,61,32,37,100,10,35,32,46,46,46,0,0,111,117,116,48,49,0,0,0,46,106,112,101,103,0,0,0,52,49,49,49,0,0,0,0,92,99,0,0,0,0,0,0,35,32,110,111,32,98,111,120,101,115,32,102,111,117,110,100,32,45,32,115,116,111,112,112,101,100,10,0,0,0,0,0,49,51,50,49,0,0,0,0,92,118,123,99,125,0,0,0,35,32,116,104,114,101,115,104,111,108,100,105,110,103,32,110,101,119,95,116,104,114,101,115,104,111,108,100,61,32,37,100,10,0,0,0,0,0,0,0,35,32,87,97,114,110,105,110,103,58,32,102,114,97,109,101,95,110,110,32,115,116,97,99,107,32,111,101,114,102,108,111,119,10,0,0,0,0,0,0,10,114,101,97,100,32,101,114,114,111,114,32,120,61,37,100,32,121,61,37,100,10,0,0,50,51,49,49,0,0,0,0,79,88,88,88,88,120,120,64,46,44,44,44,44,44,44,44,0,0,0,0,0,0,0,0,92,97,101,0,0,0,0,0,112,103,109,50,97,115,99,95,109,97,105,110,0,0,0,0,10,0,0,0,0,0,0,0,49,49,52,49,0,0,0,0,92,97,97,0,0,0,0,0,35,32,102,105,108,101,58,32,37,115,10,0,0,0,0,0,115,101,97,114,99,104,105,110,103,32,110,101,119,32,108,105,110,101,32,37,100,10,35,32,32,0,0,0,0,0,0,0,106,111,98,0,0,0,0,0,32,97,108,108,32,98,111,120,101,115,32,111,102,32,115,97,109,101,32,117,112,112,101,114,32,98,111,117,110,100,33,10,35,32,32,0,0,0,0,0,100,98,95,37,48,52,120,95,37,48,56,108,120,46,112,98,109,0,0,0,0,0,0,0,50,50,49,50,0,0,0,0,92,34,97,0,0,0,0,0,32,100,111,110,101,44,32,110,117,109,95,108,105,110,101,95,99,104,97,114,115,61,37,100,32,114,101,115,116,61,37,100,10,0,0,0,0,0,0,0,49,50,50,50,0,0,0,0,92,126,97,0,0,0,0,0,35,32,97,100,100,95,108,105,110,101,95,105,110,102,111,32,116,111,32,98,111,120,101,115,32,46,46,46,0,0,0,0,49,49,50,51,0,0,0,0,49,49,50,50,51,50,0,0,92,94,97,0,0,0,0,0,10,35,32,46,46,46,32,102,111,117,110,100,32,37,100,32,115,112,97,99,101,115,10,0,51,49,49,50,0,0,0,0,100,98,46,108,115,116,0,0,92,39,97,0,0,0,0,0,10,35,32,105,110,115,101,114,116,32,115,112,97,99,101,32,38,37,100,59,32,97,116,32,37,52,100,32,37,52,100,32,98,111,120,61,32,37,112,32,109,111,110,111,32,37,100,32,100,120,32,37,50,100,32,112,100,120,44,109,100,120,32,37,50,100,32,37,50,100,0,0,49,50,49,51,0,0,0,0,92,96,97,0,0,0,0,0,69,82,82,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,121,101,116,44,32,84,111,68,111,10,0,0,0,0,35,32,105,110,115,101,114,116,32,115,112,97,99,101,32,98,101,116,119,101,101,110,32,119,111,114,100,115,32,40,100,121,61,37,100,41,32,46,46,46,0,0,0,0,0,0,0,0,32,67,79,77,80,79,83,69,58,32,68,79,84,95,65,66,79,86,69,43,37,48,52,120,32,110,111,116,32,100,101,102,105,110,101,100,10,0,0,0,49,51,49,50,0,0,0,0,92,115,115,0,0,0,0,0,35,32,114,101,109,111,118,101,46,99,32,76,37,100,58,32,114,101,109,111,118,101,32,112,105,99,116,117,114,101,115,10,35,32,46,46,46,0,0,0,32,110,117,109,95,99,111,114,114,101,99,116,101,100,61,32,37,100,32,114,101,109,111,118,101,100,95,115,112,97,99,101,115,61,32,37,100,10,0,0,100,106,112,101,103,32,45,103,114,97,121,32,45,112,110,109,0,0,0,0,0,0,0,0,49,49,49,52,0,0,0,0,92,118,123,90,125,0,0,0,46,44,59,58,33,63,41,0,49,50,51,49,0,0,0,0,92,39,89,0,0,0,0,0,53,83,0,0,0,0,0,0,109,97,108,108,111,99,32,102,97,105,108,101,100,32,40,102,114,97,109,101,95,110,110,41,10,0,0,0,0,0,0,0,63,0,0,0,0,0,0,0,49,49,51,50,0,0,0,0,37,99,37,99,10,0,0,0,92,34,85,0,0,0,0,0,10,32,47,58,46,44,45,43,79,0,0,0,0,0,0,0,60,108,105,110,101,32,120,61,34,37,100,34,32,121,61,34,37,100,34,32,100,120,61,34,37,100,34,32,100,121,61,34,37,100,34,32,118,97,108,117,101,61,34,37,100,34,62,10,0,0,0,0,0,0,0,0,49,52,49,49,0,0,0,0,92,94,85,0,0,0,0,0,35,32,111,112,116,105,111,110,115,32,97,114,101,58,32,45,108,32,37,100,32,45,115,32,37,100,32,45,118,32,37,100,32,45,99,32,37,115,32,45,109,32,37,100,32,45,100,32,37,100,32,45,110,32,37,100,32,45,97,32,37,100,32,45,67,32,34,37,115,34,10,0,47,58,45,32,0,0,0,0,32,97,108,108,32,98,111,120,101,115,32,111,102,32,115,97,109,101,32,104,105,103,104,33,32,109,105,61,37,100,10,35,32,32,0,0,0,0,0,0,50,49,50,50,0,0,0,0,32,37,100,32,99,104,97,114,115,32,108,111,97,100,101,100,10,0,0,0,0,0,0,0,92,39,85,0,0,0,0,0,97,98,99,100,65,66,67,68,0,0,0,0,0,0,0,0,50,50,50,49,0,0,0,0,92,96,85,0,0,0,0,0,47,58,46,44,45,43,79,0,51,50,49,49,0,0,0,0,50,51,49,50,49,50,0,0,92,118,123,83,125,0,0,0,73,108,124,0,0,0,0,0,60,98,97,114,99,111,100,101,32,116,121,112,101,61,34,49,50,56,34,32,99,104,97,114,115,61,34,37,100,34,32,99,111,100,101,61,34,37,115,34,32,99,114,99,61,34,37,100,34,32,101,114,114,111,114,61,34,37,46,51,102,34,32,47,62,0,0,0,0,0,0,0,92,79,0,0,0,0,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,97,98,99,100,0,0,0,0,0,0,32,37,115,61,37,48,50,100,63,32,0,0,0,0,0,0,36,92,116,105,109,101,115,36,0,0,0,0,0,0,0,0,58,45,0,0,0,0,0,0,32,67,79,77,80,79,83,69,58,32,77,65,67,82,79,78,43,37,48,52,120,32,110,111,116,32,100,101,102,105,110,101,100,10,0,0,0,0,0,0,63,63,63,0,0,0,0,0,92,34,79,0,0,0,0,0,79,48,73,49,50,51,52,53,54,55,56,57,0,0,0,0,46,106,112,103,0,0,0,0,50,51,51,49,49,49,50,0,92,126,79,0,0,0,0,0,32,10,0,0,0,0,0,0,50,49,49,50,51,50,0,0,92,94,79,0,0,0,0,0,34,32,10,0,0,0,0,0,112,103,109,50,97,115,99,46,99,0,0,0,0,0,0,0,69,82,82,79,82,32,112,99,120,46,99,32,76,37,100,58,32,110,111,32,109,101,109,111,114,121,10,0,0,0,0,0,50,49,49,50,49,52,0,0,32,32,0,0,0,0,0,0,92,39,79,0,0,0,0,0,73,108,49,124,0,0,0,0,60,47,108,105,110,101,62,10,0,0,0,0,0,0,0,0,50,49,49,52,49,50,0,0,92,96,79,0,0,0,0,0,10,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,32,76,37,48,50,100,32,32,32,32,32,32,32,32,121,61,32,37,51,100,32,105,61,32,32,37,51,100,32,37,51,100,32,37,51,100,32,37,51,100,32,40,99,111,117,110,116,115,41,10,35,32,32,0,0,0,52,49,49,49,51,49,0,0,108,111,97,100,95,100,98,58,32,115,116,114,105,110,103,32,112,97,114,115,101,32,101,114,114,111,114,32,76,37,100,10,0,0,0,0,0,0,0,0,92,126,78,0,0,0,0,0,10,35,32,32,99,104,97,110,103,101,32,91,37,100,93,32,37,115,32,32,32,37,51,100,32,32,32,32,32,32,116,111,32,37,115,32,37,51,100,32,97,116,32,37,51,100,32,37,51,100,0,0,0,0,0,0,51,49,49,49,52,49,0,0,92,34,73,0,0,0,0,0,10,35,32,32,46,46,46,32,102,111,117,110,100,32,68,79,85,66,76,69,95,76,79,87,95,57,95,81,85,79,84,65,84,73,79,78,95,77,65,82,75,0,0,0,0,0,0,0,49,49,52,49,51,49,0,0,50,50,49,51,49,50,0,0,50,50,50,49,50,50,0,0,50,49,50,50,50,50,0,0,116,117,114,109,105,116,101,0,114,101,99,95,103,101,110,101,114,97,116,101,95,116,114,101,101,0,0,0,0,0,0,0,114,101,97,100,95,112,105,99,116,117,114,101,0,0,0,0,112,114,111,99,101,115,115,95,97,114,103,117,109,101,110,116,115,0,0,0,0,0,0,0,112,114,105,110,116,95,111,117,116,112,117,116,0,0,0,0,112,105,120,101,108,95,102,105,108,116,101,114,95,98,121,95,116,114,101,101,0,0,0,0,112,103,109,50,97,115,99,0,109,97,114,107,95,115,116,97,114,116,0,0,0,0,0,0,109,97,114,107,95,101,110,100,0,0,0,0,0,0,0,0]) +, "i8", ALLOC_NONE, Runtime.GLOBAL_BASE) +var tempDoublePtr = Runtime.alignMemory(allocate(12, "i8", ALLOC_STATIC), 8); +assert(tempDoublePtr % 8 == 0); +function copyTempFloat(ptr) { // functions, because inlining this code increases code size too much + HEAP8[tempDoublePtr] = HEAP8[ptr]; + HEAP8[tempDoublePtr+1] = HEAP8[ptr+1]; + HEAP8[tempDoublePtr+2] = HEAP8[ptr+2]; + HEAP8[tempDoublePtr+3] = HEAP8[ptr+3]; +} +function copyTempDouble(ptr) { + HEAP8[tempDoublePtr] = HEAP8[ptr]; + HEAP8[tempDoublePtr+1] = HEAP8[ptr+1]; + HEAP8[tempDoublePtr+2] = HEAP8[ptr+2]; + HEAP8[tempDoublePtr+3] = HEAP8[ptr+3]; + HEAP8[tempDoublePtr+4] = HEAP8[ptr+4]; + HEAP8[tempDoublePtr+5] = HEAP8[ptr+5]; + HEAP8[tempDoublePtr+6] = HEAP8[ptr+6]; + HEAP8[tempDoublePtr+7] = HEAP8[ptr+7]; +} + var ERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86}; + var ERRNO_MESSAGES={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"}; + var ___errno_state=0;function ___setErrNo(value) { + // For convenient setting and returning of errno. + HEAP32[((___errno_state)>>2)]=value + return value; + } + var PATH={splitPath:function (filename) { + var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/; + return splitPathRe.exec(filename).slice(1); + },normalizeArray:function (parts, allowAboveRoot) { + // if the path tries to go above the root, `up` ends up > 0 + var up = 0; + for (var i = parts.length - 1; i >= 0; i--) { + var last = parts[i]; + if (last === '.') { + parts.splice(i, 1); + } else if (last === '..') { + parts.splice(i, 1); + up++; + } else if (up) { + parts.splice(i, 1); + up--; + } + } + // if the path is allowed to go above the root, restore leading ..s + if (allowAboveRoot) { + for (; up--; up) { + parts.unshift('..'); + } + } + return parts; + },normalize:function (path) { + var isAbsolute = path.charAt(0) === '/', + trailingSlash = path.substr(-1) === '/'; + // Normalize the path + path = PATH.normalizeArray(path.split('/').filter(function(p) { + return !!p; + }), !isAbsolute).join('/'); + if (!path && !isAbsolute) { + path = '.'; + } + if (path && trailingSlash) { + path += '/'; + } + return (isAbsolute ? '/' : '') + path; + },dirname:function (path) { + var result = PATH.splitPath(path), + root = result[0], + dir = result[1]; + if (!root && !dir) { + // No dirname whatsoever + return '.'; + } + if (dir) { + // It has a dirname, strip trailing slash + dir = dir.substr(0, dir.length - 1); + } + return root + dir; + },basename:function (path) { + // EMSCRIPTEN return '/'' for '/', not an empty string + if (path === '/') return '/'; + var lastSlash = path.lastIndexOf('/'); + if (lastSlash === -1) return path; + return path.substr(lastSlash+1); + },extname:function (path) { + return PATH.splitPath(path)[3]; + },join:function () { + var paths = Array.prototype.slice.call(arguments, 0); + return PATH.normalize(paths.join('/')); + },join2:function (l, r) { + return PATH.normalize(l + '/' + r); + },resolve:function () { + var resolvedPath = '', + resolvedAbsolute = false; + for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) { + var path = (i >= 0) ? arguments[i] : FS.cwd(); + // Skip empty and invalid entries + if (typeof path !== 'string') { + throw new TypeError('Arguments to path.resolve must be strings'); + } else if (!path) { + continue; + } + resolvedPath = path + '/' + resolvedPath; + resolvedAbsolute = path.charAt(0) === '/'; + } + // At this point the path should be resolved to a full absolute path, but + // handle relative paths to be safe (might happen when process.cwd() fails) + resolvedPath = PATH.normalizeArray(resolvedPath.split('/').filter(function(p) { + return !!p; + }), !resolvedAbsolute).join('/'); + return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.'; + },relative:function (from, to) { + from = PATH.resolve(from).substr(1); + to = PATH.resolve(to).substr(1); + function trim(arr) { + var start = 0; + for (; start < arr.length; start++) { + if (arr[start] !== '') break; + } + var end = arr.length - 1; + for (; end >= 0; end--) { + if (arr[end] !== '') break; + } + if (start > end) return []; + return arr.slice(start, end - start + 1); + } + var fromParts = trim(from.split('/')); + var toParts = trim(to.split('/')); + var length = Math.min(fromParts.length, toParts.length); + var samePartsLength = length; + for (var i = 0; i < length; i++) { + if (fromParts[i] !== toParts[i]) { + samePartsLength = i; + break; + } + } + var outputParts = []; + for (var i = samePartsLength; i < fromParts.length; i++) { + outputParts.push('..'); + } + outputParts = outputParts.concat(toParts.slice(samePartsLength)); + return outputParts.join('/'); + }}; + var TTY={ttys:[],init:function () { + // https://github.com/kripken/emscripten/pull/1555 + // if (ENVIRONMENT_IS_NODE) { + // // currently, FS.init does not distinguish if process.stdin is a file or TTY + // // device, it always assumes it's a TTY device. because of this, we're forcing + // // process.stdin to UTF8 encoding to at least make stdin reading compatible + // // with text files until FS.init can be refactored. + // process['stdin']['setEncoding']('utf8'); + // } + },shutdown:function () { + // https://github.com/kripken/emscripten/pull/1555 + // if (ENVIRONMENT_IS_NODE) { + // // inolen: any idea as to why node -e 'process.stdin.read()' wouldn't exit immediately (with process.stdin being a tty)? + // // isaacs: because now it's reading from the stream, you've expressed interest in it, so that read() kicks off a _read() which creates a ReadReq operation + // // inolen: I thought read() in that case was a synchronous operation that just grabbed some amount of buffered data if it exists? + // // isaacs: it is. but it also triggers a _read() call, which calls readStart() on the handle + // // isaacs: do process.stdin.pause() and i'd think it'd probably close the pending call + // process['stdin']['pause'](); + // } + },register:function (dev, ops) { + TTY.ttys[dev] = { input: [], output: [], ops: ops }; + FS.registerDevice(dev, TTY.stream_ops); + },stream_ops:{open:function (stream) { + var tty = TTY.ttys[stream.node.rdev]; + if (!tty) { + throw new FS.ErrnoError(ERRNO_CODES.ENODEV); + } + stream.tty = tty; + stream.seekable = false; + },close:function (stream) { + // flush any pending line data + if (stream.tty.output.length) { + stream.tty.ops.put_char(stream.tty, 10); + } + },read:function (stream, buffer, offset, length, pos /* ignored */) { + if (!stream.tty || !stream.tty.ops.get_char) { + throw new FS.ErrnoError(ERRNO_CODES.ENXIO); + } + var bytesRead = 0; + for (var i = 0; i < length; i++) { + var result; + try { + result = stream.tty.ops.get_char(stream.tty); + } catch (e) { + throw new FS.ErrnoError(ERRNO_CODES.EIO); + } + if (result === undefined && bytesRead === 0) { + throw new FS.ErrnoError(ERRNO_CODES.EAGAIN); + } + if (result === null || result === undefined) break; + bytesRead++; + buffer[offset+i] = result; + } + if (bytesRead) { + stream.node.timestamp = Date.now(); + } + return bytesRead; + },write:function (stream, buffer, offset, length, pos) { + if (!stream.tty || !stream.tty.ops.put_char) { + throw new FS.ErrnoError(ERRNO_CODES.ENXIO); + } + for (var i = 0; i < length; i++) { + try { + stream.tty.ops.put_char(stream.tty, buffer[offset+i]); + } catch (e) { + throw new FS.ErrnoError(ERRNO_CODES.EIO); + } + } + if (length) { + stream.node.timestamp = Date.now(); + } + return i; + }},default_tty_ops:{get_char:function (tty) { + if (!tty.input.length) { + var result = null; + if (ENVIRONMENT_IS_NODE) { + result = process['stdin']['read'](); + if (!result) { + if (process['stdin']['_readableState'] && process['stdin']['_readableState']['ended']) { + return null; // EOF + } + return undefined; // no data available + } + } else if (typeof window != 'undefined' && + typeof window.prompt == 'function') { + // Browser. + result = window.prompt('Input: '); // returns null on cancel + if (result !== null) { + result += '\n'; + } + } else if (typeof readline == 'function') { + // Command line. + result = readline(); + if (result !== null) { + result += '\n'; + } + } + if (!result) { + return null; + } + tty.input = intArrayFromString(result, true); + } + return tty.input.shift(); + },put_char:function (tty, val) { + if (val === null || val === 10) { + Module['print'](tty.output.join('')); + tty.output = []; + } else { + tty.output.push(TTY.utf8.processCChar(val)); + } + }},default_tty1_ops:{put_char:function (tty, val) { + if (val === null || val === 10) { + Module['printErr'](tty.output.join('')); + tty.output = []; + } else { + tty.output.push(TTY.utf8.processCChar(val)); + } + }}}; + var MEMFS={ops_table:null,CONTENT_OWNING:1,CONTENT_FLEXIBLE:2,CONTENT_FIXED:3,mount:function (mount) { + return MEMFS.createNode(null, '/', 16384 | 0777, 0); + },createNode:function (parent, name, mode, dev) { + if (FS.isBlkdev(mode) || FS.isFIFO(mode)) { + // no supported + throw new FS.ErrnoError(ERRNO_CODES.EPERM); + } + if (!MEMFS.ops_table) { + MEMFS.ops_table = { + dir: { + node: { + getattr: MEMFS.node_ops.getattr, + setattr: MEMFS.node_ops.setattr, + lookup: MEMFS.node_ops.lookup, + mknod: MEMFS.node_ops.mknod, + mknod: MEMFS.node_ops.mknod, + rename: MEMFS.node_ops.rename, + unlink: MEMFS.node_ops.unlink, + rmdir: MEMFS.node_ops.rmdir, + readdir: MEMFS.node_ops.readdir, + symlink: MEMFS.node_ops.symlink + }, + stream: { + llseek: MEMFS.stream_ops.llseek + } + }, + file: { + node: { + getattr: MEMFS.node_ops.getattr, + setattr: MEMFS.node_ops.setattr + }, + stream: { + llseek: MEMFS.stream_ops.llseek, + read: MEMFS.stream_ops.read, + write: MEMFS.stream_ops.write, + allocate: MEMFS.stream_ops.allocate, + mmap: MEMFS.stream_ops.mmap + } + }, + link: { + node: { + getattr: MEMFS.node_ops.getattr, + setattr: MEMFS.node_ops.setattr, + readlink: MEMFS.node_ops.readlink + }, + stream: {} + }, + chrdev: { + node: { + getattr: MEMFS.node_ops.getattr, + setattr: MEMFS.node_ops.setattr + }, + stream: FS.chrdev_stream_ops + }, + }; + } + var node = FS.createNode(parent, name, mode, dev); + if (FS.isDir(node.mode)) { + node.node_ops = MEMFS.ops_table.dir.node; + node.stream_ops = MEMFS.ops_table.dir.stream; + node.contents = {}; + } else if (FS.isFile(node.mode)) { + node.node_ops = MEMFS.ops_table.file.node; + node.stream_ops = MEMFS.ops_table.file.stream; + node.contents = []; + node.contentMode = MEMFS.CONTENT_FLEXIBLE; + } else if (FS.isLink(node.mode)) { + node.node_ops = MEMFS.ops_table.link.node; + node.stream_ops = MEMFS.ops_table.link.stream; + } else if (FS.isChrdev(node.mode)) { + node.node_ops = MEMFS.ops_table.chrdev.node; + node.stream_ops = MEMFS.ops_table.chrdev.stream; + } + node.timestamp = Date.now(); + // add the new node to the parent + if (parent) { + parent.contents[name] = node; + } + return node; + },ensureFlexible:function (node) { + if (node.contentMode !== MEMFS.CONTENT_FLEXIBLE) { + var contents = node.contents; + node.contents = Array.prototype.slice.call(contents); + node.contentMode = MEMFS.CONTENT_FLEXIBLE; + } + },node_ops:{getattr:function (node) { + var attr = {}; + // device numbers reuse inode numbers. + attr.dev = FS.isChrdev(node.mode) ? node.id : 1; + attr.ino = node.id; + attr.mode = node.mode; + attr.nlink = 1; + attr.uid = 0; + attr.gid = 0; + attr.rdev = node.rdev; + if (FS.isDir(node.mode)) { + attr.size = 4096; + } else if (FS.isFile(node.mode)) { + attr.size = node.contents.length; + } else if (FS.isLink(node.mode)) { + attr.size = node.link.length; + } else { + attr.size = 0; + } + attr.atime = new Date(node.timestamp); + attr.mtime = new Date(node.timestamp); + attr.ctime = new Date(node.timestamp); + // NOTE: In our implementation, st_blocks = Math.ceil(st_size/st_blksize), + // but this is not required by the standard. + attr.blksize = 4096; + attr.blocks = Math.ceil(attr.size / attr.blksize); + return attr; + },setattr:function (node, attr) { + if (attr.mode !== undefined) { + node.mode = attr.mode; + } + if (attr.timestamp !== undefined) { + node.timestamp = attr.timestamp; + } + if (attr.size !== undefined) { + MEMFS.ensureFlexible(node); + var contents = node.contents; + if (attr.size < contents.length) contents.length = attr.size; + else while (attr.size > contents.length) contents.push(0); + } + },lookup:function (parent, name) { + throw FS.genericErrors[ERRNO_CODES.ENOENT]; + },mknod:function (parent, name, mode, dev) { + return MEMFS.createNode(parent, name, mode, dev); + },rename:function (old_node, new_dir, new_name) { + // if we're overwriting a directory at new_name, make sure it's empty. + if (FS.isDir(old_node.mode)) { + var new_node; + try { + new_node = FS.lookupNode(new_dir, new_name); + } catch (e) { + } + if (new_node) { + for (var i in new_node.contents) { + throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY); + } + } + } + // do the internal rewiring + delete old_node.parent.contents[old_node.name]; + old_node.name = new_name; + new_dir.contents[new_name] = old_node; + old_node.parent = new_dir; + },unlink:function (parent, name) { + delete parent.contents[name]; + },rmdir:function (parent, name) { + var node = FS.lookupNode(parent, name); + for (var i in node.contents) { + throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY); + } + delete parent.contents[name]; + },readdir:function (node) { + var entries = ['.', '..'] + for (var key in node.contents) { + if (!node.contents.hasOwnProperty(key)) { + continue; + } + entries.push(key); + } + return entries; + },symlink:function (parent, newname, oldpath) { + var node = MEMFS.createNode(parent, newname, 0777 | 40960, 0); + node.link = oldpath; + return node; + },readlink:function (node) { + if (!FS.isLink(node.mode)) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + return node.link; + }},stream_ops:{read:function (stream, buffer, offset, length, position) { + var contents = stream.node.contents; + if (position >= contents.length) + return 0; + var size = Math.min(contents.length - position, length); + assert(size >= 0); + if (size > 8 && contents.subarray) { // non-trivial, and typed array + buffer.set(contents.subarray(position, position + size), offset); + } else + { + for (var i = 0; i < size; i++) { + buffer[offset + i] = contents[position + i]; + } + } + return size; + },write:function (stream, buffer, offset, length, position, canOwn) { + var node = stream.node; + node.timestamp = Date.now(); + var contents = node.contents; + if (length && contents.length === 0 && position === 0 && buffer.subarray) { + // just replace it with the new data + if (canOwn && offset === 0) { + node.contents = buffer; // this could be a subarray of Emscripten HEAP, or allocated from some other source. + node.contentMode = (buffer.buffer === HEAP8.buffer) ? MEMFS.CONTENT_OWNING : MEMFS.CONTENT_FIXED; + } else { + node.contents = new Uint8Array(buffer.subarray(offset, offset+length)); + node.contentMode = MEMFS.CONTENT_FIXED; + } + return length; + } + MEMFS.ensureFlexible(node); + var contents = node.contents; + while (contents.length < position) contents.push(0); + for (var i = 0; i < length; i++) { + contents[position + i] = buffer[offset + i]; + } + return length; + },llseek:function (stream, offset, whence) { + var position = offset; + if (whence === 1) { // SEEK_CUR. + position += stream.position; + } else if (whence === 2) { // SEEK_END. + if (FS.isFile(stream.node.mode)) { + position += stream.node.contents.length; + } + } + if (position < 0) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + stream.ungotten = []; + stream.position = position; + return position; + },allocate:function (stream, offset, length) { + MEMFS.ensureFlexible(stream.node); + var contents = stream.node.contents; + var limit = offset + length; + while (limit > contents.length) contents.push(0); + },mmap:function (stream, buffer, offset, length, position, prot, flags) { + if (!FS.isFile(stream.node.mode)) { + throw new FS.ErrnoError(ERRNO_CODES.ENODEV); + } + var ptr; + var allocated; + var contents = stream.node.contents; + // Only make a new copy when MAP_PRIVATE is specified. + if ( !(flags & 2) && + (contents.buffer === buffer || contents.buffer === buffer.buffer) ) { + // We can't emulate MAP_SHARED when the file is not backed by the buffer + // we're mapping to (e.g. the HEAP buffer). + allocated = false; + ptr = contents.byteOffset; + } else { + // Try to avoid unnecessary slices. + if (position > 0 || position + length < contents.length) { + if (contents.subarray) { + contents = contents.subarray(position, position + length); + } else { + contents = Array.prototype.slice.call(contents, position, position + length); + } + } + allocated = true; + ptr = _malloc(length); + if (!ptr) { + throw new FS.ErrnoError(ERRNO_CODES.ENOMEM); + } + buffer.set(contents, ptr); + } + return { ptr: ptr, allocated: allocated }; + }}}; + var IDBFS={dbs:{},indexedDB:function () { + return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; + },DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",mount:function (mount) { + return MEMFS.mount.apply(null, arguments); + },syncfs:function (mount, populate, callback) { + IDBFS.getLocalSet(mount, function(err, local) { + if (err) return callback(err); + IDBFS.getRemoteSet(mount, function(err, remote) { + if (err) return callback(err); + var src = populate ? remote : local; + var dst = populate ? local : remote; + IDBFS.reconcile(src, dst, callback); + }); + }); + },reconcile:function (src, dst, callback) { + var total = 0; + var create = {}; + for (var key in src.files) { + if (!src.files.hasOwnProperty(key)) continue; + var e = src.files[key]; + var e2 = dst.files[key]; + if (!e2 || e.timestamp > e2.timestamp) { + create[key] = e; + total++; + } + } + var remove = {}; + for (var key in dst.files) { + if (!dst.files.hasOwnProperty(key)) continue; + var e = dst.files[key]; + var e2 = src.files[key]; + if (!e2) { + remove[key] = e; + total++; + } + } + if (!total) { + // early out + return callback(null); + } + var completed = 0; + function done(err) { + if (err) return callback(err); + if (++completed >= total) { + return callback(null); + } + }; + // create a single transaction to handle and IDB reads / writes we'll need to do + var db = src.type === 'remote' ? src.db : dst.db; + var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readwrite'); + transaction.onerror = function transaction_onerror() { callback(this.error); }; + var store = transaction.objectStore(IDBFS.DB_STORE_NAME); + for (var path in create) { + if (!create.hasOwnProperty(path)) continue; + var entry = create[path]; + if (dst.type === 'local') { + // save file to local + try { + if (FS.isDir(entry.mode)) { + FS.mkdir(path, entry.mode); + } else if (FS.isFile(entry.mode)) { + var stream = FS.open(path, 'w+', 0666); + FS.write(stream, entry.contents, 0, entry.contents.length, 0, true /* canOwn */); + FS.close(stream); + } + done(null); + } catch (e) { + return done(e); + } + } else { + // save file to IDB + var req = store.put(entry, path); + req.onsuccess = function req_onsuccess() { done(null); }; + req.onerror = function req_onerror() { done(this.error); }; + } + } + for (var path in remove) { + if (!remove.hasOwnProperty(path)) continue; + var entry = remove[path]; + if (dst.type === 'local') { + // delete file from local + try { + if (FS.isDir(entry.mode)) { + // TODO recursive delete? + FS.rmdir(path); + } else if (FS.isFile(entry.mode)) { + FS.unlink(path); + } + done(null); + } catch (e) { + return done(e); + } + } else { + // delete file from IDB + var req = store.delete(path); + req.onsuccess = function req_onsuccess() { done(null); }; + req.onerror = function req_onerror() { done(this.error); }; + } + } + },getLocalSet:function (mount, callback) { + var files = {}; + function isRealDir(p) { + return p !== '.' && p !== '..'; + }; + function toAbsolute(root) { + return function(p) { + return PATH.join2(root, p); + } + }; + var check = FS.readdir(mount.mountpoint) + .filter(isRealDir) + .map(toAbsolute(mount.mountpoint)); + while (check.length) { + var path = check.pop(); + var stat, node; + try { + var lookup = FS.lookupPath(path); + node = lookup.node; + stat = FS.stat(path); + } catch (e) { + return callback(e); + } + if (FS.isDir(stat.mode)) { + check.push.apply(check, FS.readdir(path) + .filter(isRealDir) + .map(toAbsolute(path))); + files[path] = { mode: stat.mode, timestamp: stat.mtime }; + } else if (FS.isFile(stat.mode)) { + files[path] = { contents: node.contents, mode: stat.mode, timestamp: stat.mtime }; + } else { + return callback(new Error('node type not supported')); + } + } + return callback(null, { type: 'local', files: files }); + },getDB:function (name, callback) { + // look it up in the cache + var db = IDBFS.dbs[name]; + if (db) { + return callback(null, db); + } + var req; + try { + req = IDBFS.indexedDB().open(name, IDBFS.DB_VERSION); + } catch (e) { + return onerror(e); + } + req.onupgradeneeded = function req_onupgradeneeded() { + db = req.result; + db.createObjectStore(IDBFS.DB_STORE_NAME); + }; + req.onsuccess = function req_onsuccess() { + db = req.result; + // add to the cache + IDBFS.dbs[name] = db; + callback(null, db); + }; + req.onerror = function req_onerror() { + callback(this.error); + }; + },getRemoteSet:function (mount, callback) { + var files = {}; + IDBFS.getDB(mount.mountpoint, function(err, db) { + if (err) return callback(err); + var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readonly'); + transaction.onerror = function transaction_onerror() { callback(this.error); }; + var store = transaction.objectStore(IDBFS.DB_STORE_NAME); + store.openCursor().onsuccess = function store_openCursor_onsuccess(event) { + var cursor = event.target.result; + if (!cursor) { + return callback(null, { type: 'remote', db: db, files: files }); + } + files[cursor.key] = cursor.value; + cursor.continue(); + }; + }); + }}; + var NODEFS={isWindows:false,staticInit:function () { + NODEFS.isWindows = !!process.platform.match(/^win/); + },mount:function (mount) { + assert(ENVIRONMENT_IS_NODE); + return NODEFS.createNode(null, '/', NODEFS.getMode(mount.opts.root), 0); + },createNode:function (parent, name, mode, dev) { + if (!FS.isDir(mode) && !FS.isFile(mode) && !FS.isLink(mode)) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + var node = FS.createNode(parent, name, mode); + node.node_ops = NODEFS.node_ops; + node.stream_ops = NODEFS.stream_ops; + return node; + },getMode:function (path) { + var stat; + try { + stat = fs.lstatSync(path); + if (NODEFS.isWindows) { + // On Windows, directories return permission bits 'rw-rw-rw-', even though they have 'rwxrwxrwx', so + // propagate write bits to execute bits. + stat.mode = stat.mode | ((stat.mode & 146) >> 1); + } + } catch (e) { + if (!e.code) throw e; + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + return stat.mode; + },realPath:function (node) { + var parts = []; + while (node.parent !== node) { + parts.push(node.name); + node = node.parent; + } + parts.push(node.mount.opts.root); + parts.reverse(); + return PATH.join.apply(null, parts); + },flagsToPermissionStringMap:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},flagsToPermissionString:function (flags) { + if (flags in NODEFS.flagsToPermissionStringMap) { + return NODEFS.flagsToPermissionStringMap[flags]; + } else { + return flags; + } + },node_ops:{getattr:function (node) { + var path = NODEFS.realPath(node); + var stat; + try { + stat = fs.lstatSync(path); + } catch (e) { + if (!e.code) throw e; + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + // node.js v0.10.20 doesn't report blksize and blocks on Windows. Fake them with default blksize of 4096. + // See http://support.microsoft.com/kb/140365 + if (NODEFS.isWindows && !stat.blksize) { + stat.blksize = 4096; + } + if (NODEFS.isWindows && !stat.blocks) { + stat.blocks = (stat.size+stat.blksize-1)/stat.blksize|0; + } + return { + dev: stat.dev, + ino: stat.ino, + mode: stat.mode, + nlink: stat.nlink, + uid: stat.uid, + gid: stat.gid, + rdev: stat.rdev, + size: stat.size, + atime: stat.atime, + mtime: stat.mtime, + ctime: stat.ctime, + blksize: stat.blksize, + blocks: stat.blocks + }; + },setattr:function (node, attr) { + var path = NODEFS.realPath(node); + try { + if (attr.mode !== undefined) { + fs.chmodSync(path, attr.mode); + // update the common node structure mode as well + node.mode = attr.mode; + } + if (attr.timestamp !== undefined) { + var date = new Date(attr.timestamp); + fs.utimesSync(path, date, date); + } + if (attr.size !== undefined) { + fs.truncateSync(path, attr.size); + } + } catch (e) { + if (!e.code) throw e; + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + },lookup:function (parent, name) { + var path = PATH.join2(NODEFS.realPath(parent), name); + var mode = NODEFS.getMode(path); + return NODEFS.createNode(parent, name, mode); + },mknod:function (parent, name, mode, dev) { + var node = NODEFS.createNode(parent, name, mode, dev); + // create the backing node for this in the fs root as well + var path = NODEFS.realPath(node); + try { + if (FS.isDir(node.mode)) { + fs.mkdirSync(path, node.mode); + } else { + fs.writeFileSync(path, '', { mode: node.mode }); + } + } catch (e) { + if (!e.code) throw e; + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + return node; + },rename:function (oldNode, newDir, newName) { + var oldPath = NODEFS.realPath(oldNode); + var newPath = PATH.join2(NODEFS.realPath(newDir), newName); + try { + fs.renameSync(oldPath, newPath); + } catch (e) { + if (!e.code) throw e; + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + },unlink:function (parent, name) { + var path = PATH.join2(NODEFS.realPath(parent), name); + try { + fs.unlinkSync(path); + } catch (e) { + if (!e.code) throw e; + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + },rmdir:function (parent, name) { + var path = PATH.join2(NODEFS.realPath(parent), name); + try { + fs.rmdirSync(path); + } catch (e) { + if (!e.code) throw e; + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + },readdir:function (node) { + var path = NODEFS.realPath(node); + try { + return fs.readdirSync(path); + } catch (e) { + if (!e.code) throw e; + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + },symlink:function (parent, newName, oldPath) { + var newPath = PATH.join2(NODEFS.realPath(parent), newName); + try { + fs.symlinkSync(oldPath, newPath); + } catch (e) { + if (!e.code) throw e; + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + },readlink:function (node) { + var path = NODEFS.realPath(node); + try { + return fs.readlinkSync(path); + } catch (e) { + if (!e.code) throw e; + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + }},stream_ops:{open:function (stream) { + var path = NODEFS.realPath(stream.node); + try { + if (FS.isFile(stream.node.mode)) { + stream.nfd = fs.openSync(path, NODEFS.flagsToPermissionString(stream.flags)); + } + } catch (e) { + if (!e.code) throw e; + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + },close:function (stream) { + try { + if (FS.isFile(stream.node.mode) && stream.nfd) { + fs.closeSync(stream.nfd); + } + } catch (e) { + if (!e.code) throw e; + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + },read:function (stream, buffer, offset, length, position) { + // FIXME this is terrible. + var nbuffer = new Buffer(length); + var res; + try { + res = fs.readSync(stream.nfd, nbuffer, 0, length, position); + } catch (e) { + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + if (res > 0) { + for (var i = 0; i < res; i++) { + buffer[offset + i] = nbuffer[i]; + } + } + return res; + },write:function (stream, buffer, offset, length, position) { + // FIXME this is terrible. + var nbuffer = new Buffer(buffer.subarray(offset, offset + length)); + var res; + try { + res = fs.writeSync(stream.nfd, nbuffer, 0, length, position); + } catch (e) { + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + return res; + },llseek:function (stream, offset, whence) { + var position = offset; + if (whence === 1) { // SEEK_CUR. + position += stream.position; + } else if (whence === 2) { // SEEK_END. + if (FS.isFile(stream.node.mode)) { + try { + var stat = fs.fstatSync(stream.nfd); + position += stat.size; + } catch (e) { + throw new FS.ErrnoError(ERRNO_CODES[e.code]); + } + } + } + if (position < 0) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + stream.position = position; + return position; + }}}; + var _stdin=allocate(1, "i32*", ALLOC_STATIC); + var _stdout=allocate(1, "i32*", ALLOC_STATIC); + var _stderr=allocate(1, "i32*", ALLOC_STATIC); + function _fflush(stream) { + // int fflush(FILE *stream); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/fflush.html + // we don't currently perform any user-space buffering of data + }var FS={root:null,mounts:[],devices:[null],streams:[null],nextInode:1,nameTable:null,currentPath:"/",initialized:false,ignorePermissions:true,ErrnoError:null,genericErrors:{},handleFSError:function (e) { + if (!(e instanceof FS.ErrnoError)) throw e + ' : ' + stackTrace(); + return ___setErrNo(e.errno); + },lookupPath:function (path, opts) { + path = PATH.resolve(FS.cwd(), path); + opts = opts || { recurse_count: 0 }; + if (opts.recurse_count > 8) { // max recursive lookup of 8 + throw new FS.ErrnoError(ERRNO_CODES.ELOOP); + } + // split the path + var parts = PATH.normalizeArray(path.split('/').filter(function(p) { + return !!p; + }), false); + // start at the root + var current = FS.root; + var current_path = '/'; + for (var i = 0; i < parts.length; i++) { + var islast = (i === parts.length-1); + if (islast && opts.parent) { + // stop resolving + break; + } + current = FS.lookupNode(current, parts[i]); + current_path = PATH.join2(current_path, parts[i]); + // jump to the mount's root node if this is a mountpoint + if (FS.isMountpoint(current)) { + current = current.mount.root; + } + // follow symlinks + // by default, lookupPath will not follow a symlink if it is the final path component. + // setting opts.follow = true will override this behavior. + if (!islast || opts.follow) { + var count = 0; + while (FS.isLink(current.mode)) { + var link = FS.readlink(current_path); + current_path = PATH.resolve(PATH.dirname(current_path), link); + var lookup = FS.lookupPath(current_path, { recurse_count: opts.recurse_count }); + current = lookup.node; + if (count++ > 40) { // limit max consecutive symlinks to 40 (SYMLOOP_MAX). + throw new FS.ErrnoError(ERRNO_CODES.ELOOP); + } + } + } + } + return { path: current_path, node: current }; + },getPath:function (node) { + var path; + while (true) { + if (FS.isRoot(node)) { + var mount = node.mount.mountpoint; + if (!path) return mount; + return mount[mount.length-1] !== '/' ? mount + '/' + path : mount + path; + } + path = path ? node.name + '/' + path : node.name; + node = node.parent; + } + },hashName:function (parentid, name) { + var hash = 0; + for (var i = 0; i < name.length; i++) { + hash = ((hash << 5) - hash + name.charCodeAt(i)) | 0; + } + return ((parentid + hash) >>> 0) % FS.nameTable.length; + },hashAddNode:function (node) { + var hash = FS.hashName(node.parent.id, node.name); + node.name_next = FS.nameTable[hash]; + FS.nameTable[hash] = node; + },hashRemoveNode:function (node) { + var hash = FS.hashName(node.parent.id, node.name); + if (FS.nameTable[hash] === node) { + FS.nameTable[hash] = node.name_next; + } else { + var current = FS.nameTable[hash]; + while (current) { + if (current.name_next === node) { + current.name_next = node.name_next; + break; + } + current = current.name_next; + } + } + },lookupNode:function (parent, name) { + var err = FS.mayLookup(parent); + if (err) { + throw new FS.ErrnoError(err); + } + var hash = FS.hashName(parent.id, name); + for (var node = FS.nameTable[hash]; node; node = node.name_next) { + var nodeName = node.name; + if (node.parent.id === parent.id && nodeName === name) { + return node; + } + } + // if we failed to find it in the cache, call into the VFS + return FS.lookup(parent, name); + },createNode:function (parent, name, mode, rdev) { + if (!FS.FSNode) { + FS.FSNode = function(parent, name, mode, rdev) { + this.id = FS.nextInode++; + this.name = name; + this.mode = mode; + this.node_ops = {}; + this.stream_ops = {}; + this.rdev = rdev; + this.parent = null; + this.mount = null; + if (!parent) { + parent = this; // root node sets parent to itself + } + this.parent = parent; + this.mount = parent.mount; + FS.hashAddNode(this); + }; + // compatibility + var readMode = 292 | 73; + var writeMode = 146; + FS.FSNode.prototype = {}; + // NOTE we must use Object.defineProperties instead of individual calls to + // Object.defineProperty in order to make closure compiler happy + Object.defineProperties(FS.FSNode.prototype, { + read: { + get: function() { return (this.mode & readMode) === readMode; }, + set: function(val) { val ? this.mode |= readMode : this.mode &= ~readMode; } + }, + write: { + get: function() { return (this.mode & writeMode) === writeMode; }, + set: function(val) { val ? this.mode |= writeMode : this.mode &= ~writeMode; } + }, + isFolder: { + get: function() { return FS.isDir(this.mode); }, + }, + isDevice: { + get: function() { return FS.isChrdev(this.mode); }, + }, + }); + } + return new FS.FSNode(parent, name, mode, rdev); + },destroyNode:function (node) { + FS.hashRemoveNode(node); + },isRoot:function (node) { + return node === node.parent; + },isMountpoint:function (node) { + return node.mounted; + },isFile:function (mode) { + return (mode & 61440) === 32768; + },isDir:function (mode) { + return (mode & 61440) === 16384; + },isLink:function (mode) { + return (mode & 61440) === 40960; + },isChrdev:function (mode) { + return (mode & 61440) === 8192; + },isBlkdev:function (mode) { + return (mode & 61440) === 24576; + },isFIFO:function (mode) { + return (mode & 61440) === 4096; + },isSocket:function (mode) { + return (mode & 49152) === 49152; + },flagModes:{"r":0,"rs":1052672,"r+":2,"w":577,"wx":705,"xw":705,"w+":578,"wx+":706,"xw+":706,"a":1089,"ax":1217,"xa":1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function (str) { + var flags = FS.flagModes[str]; + if (typeof flags === 'undefined') { + throw new Error('Unknown file open mode: ' + str); + } + return flags; + },flagsToPermissionString:function (flag) { + var accmode = flag & 2097155; + var perms = ['r', 'w', 'rw'][accmode]; + if ((flag & 512)) { + perms += 'w'; + } + return perms; + },nodePermissions:function (node, perms) { + if (FS.ignorePermissions) { + return 0; + } + // return 0 if any user, group or owner bits are set. + if (perms.indexOf('r') !== -1 && !(node.mode & 292)) { + return ERRNO_CODES.EACCES; + } else if (perms.indexOf('w') !== -1 && !(node.mode & 146)) { + return ERRNO_CODES.EACCES; + } else if (perms.indexOf('x') !== -1 && !(node.mode & 73)) { + return ERRNO_CODES.EACCES; + } + return 0; + },mayLookup:function (dir) { + return FS.nodePermissions(dir, 'x'); + },mayCreate:function (dir, name) { + try { + var node = FS.lookupNode(dir, name); + return ERRNO_CODES.EEXIST; + } catch (e) { + } + return FS.nodePermissions(dir, 'wx'); + },mayDelete:function (dir, name, isdir) { + var node; + try { + node = FS.lookupNode(dir, name); + } catch (e) { + return e.errno; + } + var err = FS.nodePermissions(dir, 'wx'); + if (err) { + return err; + } + if (isdir) { + if (!FS.isDir(node.mode)) { + return ERRNO_CODES.ENOTDIR; + } + if (FS.isRoot(node) || FS.getPath(node) === FS.cwd()) { + return ERRNO_CODES.EBUSY; + } + } else { + if (FS.isDir(node.mode)) { + return ERRNO_CODES.EISDIR; + } + } + return 0; + },mayOpen:function (node, flags) { + if (!node) { + return ERRNO_CODES.ENOENT; + } + if (FS.isLink(node.mode)) { + return ERRNO_CODES.ELOOP; + } else if (FS.isDir(node.mode)) { + if ((flags & 2097155) !== 0 || // opening for write + (flags & 512)) { + return ERRNO_CODES.EISDIR; + } + } + return FS.nodePermissions(node, FS.flagsToPermissionString(flags)); + },MAX_OPEN_FDS:4096,nextfd:function (fd_start, fd_end) { + fd_start = fd_start || 1; + fd_end = fd_end || FS.MAX_OPEN_FDS; + for (var fd = fd_start; fd <= fd_end; fd++) { + if (!FS.streams[fd]) { + return fd; + } + } + throw new FS.ErrnoError(ERRNO_CODES.EMFILE); + },getStream:function (fd) { + return FS.streams[fd]; + },createStream:function (stream, fd_start, fd_end) { + if (!FS.FSStream) { + FS.FSStream = function(){}; + FS.FSStream.prototype = {}; + // compatibility + Object.defineProperties(FS.FSStream.prototype, { + object: { + get: function() { return this.node; }, + set: function(val) { this.node = val; } + }, + isRead: { + get: function() { return (this.flags & 2097155) !== 1; } + }, + isWrite: { + get: function() { return (this.flags & 2097155) !== 0; } + }, + isAppend: { + get: function() { return (this.flags & 1024); } + } + }); + } + if (stream.__proto__) { + // reuse the object + stream.__proto__ = FS.FSStream.prototype; + } else { + var newStream = new FS.FSStream(); + for (var p in stream) { + newStream[p] = stream[p]; + } + stream = newStream; + } + var fd = FS.nextfd(fd_start, fd_end); + stream.fd = fd; + FS.streams[fd] = stream; + return stream; + },closeStream:function (fd) { + FS.streams[fd] = null; + },chrdev_stream_ops:{open:function (stream) { + var device = FS.getDevice(stream.node.rdev); + // override node's stream ops with the device's + stream.stream_ops = device.stream_ops; + // forward the open call + if (stream.stream_ops.open) { + stream.stream_ops.open(stream); + } + },llseek:function () { + throw new FS.ErrnoError(ERRNO_CODES.ESPIPE); + }},major:function (dev) { + return ((dev) >> 8); + },minor:function (dev) { + return ((dev) & 0xff); + },makedev:function (ma, mi) { + return ((ma) << 8 | (mi)); + },registerDevice:function (dev, ops) { + FS.devices[dev] = { stream_ops: ops }; + },getDevice:function (dev) { + return FS.devices[dev]; + },syncfs:function (populate, callback) { + if (typeof(populate) === 'function') { + callback = populate; + populate = false; + } + var completed = 0; + var total = FS.mounts.length; + function done(err) { + if (err) { + return callback(err); + } + if (++completed >= total) { + callback(null); + } + }; + // sync all mounts + for (var i = 0; i < FS.mounts.length; i++) { + var mount = FS.mounts[i]; + if (!mount.type.syncfs) { + done(null); + continue; + } + mount.type.syncfs(mount, populate, done); + } + },mount:function (type, opts, mountpoint) { + var lookup; + if (mountpoint) { + lookup = FS.lookupPath(mountpoint, { follow: false }); + mountpoint = lookup.path; // use the absolute path + } + var mount = { + type: type, + opts: opts, + mountpoint: mountpoint, + root: null + }; + // create a root node for the fs + var root = type.mount(mount); + root.mount = mount; + mount.root = root; + // assign the mount info to the mountpoint's node + if (lookup) { + lookup.node.mount = mount; + lookup.node.mounted = true; + // compatibility update FS.root if we mount to / + if (mountpoint === '/') { + FS.root = mount.root; + } + } + // add to our cached list of mounts + FS.mounts.push(mount); + return root; + },lookup:function (parent, name) { + return parent.node_ops.lookup(parent, name); + },mknod:function (path, mode, dev) { + var lookup = FS.lookupPath(path, { parent: true }); + var parent = lookup.node; + var name = PATH.basename(path); + var err = FS.mayCreate(parent, name); + if (err) { + throw new FS.ErrnoError(err); + } + if (!parent.node_ops.mknod) { + throw new FS.ErrnoError(ERRNO_CODES.EPERM); + } + return parent.node_ops.mknod(parent, name, mode, dev); + },create:function (path, mode) { + mode = mode !== undefined ? mode : 0666; + mode &= 4095; + mode |= 32768; + return FS.mknod(path, mode, 0); + },mkdir:function (path, mode) { + mode = mode !== undefined ? mode : 0777; + mode &= 511 | 512; + mode |= 16384; + return FS.mknod(path, mode, 0); + },mkdev:function (path, mode, dev) { + if (typeof(dev) === 'undefined') { + dev = mode; + mode = 0666; + } + mode |= 8192; + return FS.mknod(path, mode, dev); + },symlink:function (oldpath, newpath) { + var lookup = FS.lookupPath(newpath, { parent: true }); + var parent = lookup.node; + var newname = PATH.basename(newpath); + var err = FS.mayCreate(parent, newname); + if (err) { + throw new FS.ErrnoError(err); + } + if (!parent.node_ops.symlink) { + throw new FS.ErrnoError(ERRNO_CODES.EPERM); + } + return parent.node_ops.symlink(parent, newname, oldpath); + },rename:function (old_path, new_path) { + var old_dirname = PATH.dirname(old_path); + var new_dirname = PATH.dirname(new_path); + var old_name = PATH.basename(old_path); + var new_name = PATH.basename(new_path); + // parents must exist + var lookup, old_dir, new_dir; + try { + lookup = FS.lookupPath(old_path, { parent: true }); + old_dir = lookup.node; + lookup = FS.lookupPath(new_path, { parent: true }); + new_dir = lookup.node; + } catch (e) { + throw new FS.ErrnoError(ERRNO_CODES.EBUSY); + } + // need to be part of the same mount + if (old_dir.mount !== new_dir.mount) { + throw new FS.ErrnoError(ERRNO_CODES.EXDEV); + } + // source must exist + var old_node = FS.lookupNode(old_dir, old_name); + // old path should not be an ancestor of the new path + var relative = PATH.relative(old_path, new_dirname); + if (relative.charAt(0) !== '.') { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + // new path should not be an ancestor of the old path + relative = PATH.relative(new_path, old_dirname); + if (relative.charAt(0) !== '.') { + throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY); + } + // see if the new path already exists + var new_node; + try { + new_node = FS.lookupNode(new_dir, new_name); + } catch (e) { + // not fatal + } + // early out if nothing needs to change + if (old_node === new_node) { + return; + } + // we'll need to delete the old entry + var isdir = FS.isDir(old_node.mode); + var err = FS.mayDelete(old_dir, old_name, isdir); + if (err) { + throw new FS.ErrnoError(err); + } + // need delete permissions if we'll be overwriting. + // need create permissions if new doesn't already exist. + err = new_node ? + FS.mayDelete(new_dir, new_name, isdir) : + FS.mayCreate(new_dir, new_name); + if (err) { + throw new FS.ErrnoError(err); + } + if (!old_dir.node_ops.rename) { + throw new FS.ErrnoError(ERRNO_CODES.EPERM); + } + if (FS.isMountpoint(old_node) || (new_node && FS.isMountpoint(new_node))) { + throw new FS.ErrnoError(ERRNO_CODES.EBUSY); + } + // if we are going to change the parent, check write permissions + if (new_dir !== old_dir) { + err = FS.nodePermissions(old_dir, 'w'); + if (err) { + throw new FS.ErrnoError(err); + } + } + // remove the node from the lookup hash + FS.hashRemoveNode(old_node); + // do the underlying fs rename + try { + old_dir.node_ops.rename(old_node, new_dir, new_name); + } catch (e) { + throw e; + } finally { + // add the node back to the hash (in case node_ops.rename + // changed its name) + FS.hashAddNode(old_node); + } + },rmdir:function (path) { + var lookup = FS.lookupPath(path, { parent: true }); + var parent = lookup.node; + var name = PATH.basename(path); + var node = FS.lookupNode(parent, name); + var err = FS.mayDelete(parent, name, true); + if (err) { + throw new FS.ErrnoError(err); + } + if (!parent.node_ops.rmdir) { + throw new FS.ErrnoError(ERRNO_CODES.EPERM); + } + if (FS.isMountpoint(node)) { + throw new FS.ErrnoError(ERRNO_CODES.EBUSY); + } + parent.node_ops.rmdir(parent, name); + FS.destroyNode(node); + },readdir:function (path) { + var lookup = FS.lookupPath(path, { follow: true }); + var node = lookup.node; + if (!node.node_ops.readdir) { + throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR); + } + return node.node_ops.readdir(node); + },unlink:function (path) { + var lookup = FS.lookupPath(path, { parent: true }); + var parent = lookup.node; + var name = PATH.basename(path); + var node = FS.lookupNode(parent, name); + var err = FS.mayDelete(parent, name, false); + if (err) { + // POSIX says unlink should set EPERM, not EISDIR + if (err === ERRNO_CODES.EISDIR) err = ERRNO_CODES.EPERM; + throw new FS.ErrnoError(err); + } + if (!parent.node_ops.unlink) { + throw new FS.ErrnoError(ERRNO_CODES.EPERM); + } + if (FS.isMountpoint(node)) { + throw new FS.ErrnoError(ERRNO_CODES.EBUSY); + } + parent.node_ops.unlink(parent, name); + FS.destroyNode(node); + },readlink:function (path) { + var lookup = FS.lookupPath(path, { follow: false }); + var link = lookup.node; + if (!link.node_ops.readlink) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + return link.node_ops.readlink(link); + },stat:function (path, dontFollow) { + var lookup = FS.lookupPath(path, { follow: !dontFollow }); + var node = lookup.node; + if (!node.node_ops.getattr) { + throw new FS.ErrnoError(ERRNO_CODES.EPERM); + } + return node.node_ops.getattr(node); + },lstat:function (path) { + return FS.stat(path, true); + },chmod:function (path, mode, dontFollow) { + var node; + if (typeof path === 'string') { + var lookup = FS.lookupPath(path, { follow: !dontFollow }); + node = lookup.node; + } else { + node = path; + } + if (!node.node_ops.setattr) { + throw new FS.ErrnoError(ERRNO_CODES.EPERM); + } + node.node_ops.setattr(node, { + mode: (mode & 4095) | (node.mode & ~4095), + timestamp: Date.now() + }); + },lchmod:function (path, mode) { + FS.chmod(path, mode, true); + },fchmod:function (fd, mode) { + var stream = FS.getStream(fd); + if (!stream) { + throw new FS.ErrnoError(ERRNO_CODES.EBADF); + } + FS.chmod(stream.node, mode); + },chown:function (path, uid, gid, dontFollow) { + var node; + if (typeof path === 'string') { + var lookup = FS.lookupPath(path, { follow: !dontFollow }); + node = lookup.node; + } else { + node = path; + } + if (!node.node_ops.setattr) { + throw new FS.ErrnoError(ERRNO_CODES.EPERM); + } + node.node_ops.setattr(node, { + timestamp: Date.now() + // we ignore the uid / gid for now + }); + },lchown:function (path, uid, gid) { + FS.chown(path, uid, gid, true); + },fchown:function (fd, uid, gid) { + var stream = FS.getStream(fd); + if (!stream) { + throw new FS.ErrnoError(ERRNO_CODES.EBADF); + } + FS.chown(stream.node, uid, gid); + },truncate:function (path, len) { + if (len < 0) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + var node; + if (typeof path === 'string') { + var lookup = FS.lookupPath(path, { follow: true }); + node = lookup.node; + } else { + node = path; + } + if (!node.node_ops.setattr) { + throw new FS.ErrnoError(ERRNO_CODES.EPERM); + } + if (FS.isDir(node.mode)) { + throw new FS.ErrnoError(ERRNO_CODES.EISDIR); + } + if (!FS.isFile(node.mode)) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + var err = FS.nodePermissions(node, 'w'); + if (err) { + throw new FS.ErrnoError(err); + } + node.node_ops.setattr(node, { + size: len, + timestamp: Date.now() + }); + },ftruncate:function (fd, len) { + var stream = FS.getStream(fd); + if (!stream) { + throw new FS.ErrnoError(ERRNO_CODES.EBADF); + } + if ((stream.flags & 2097155) === 0) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + FS.truncate(stream.node, len); + },utime:function (path, atime, mtime) { + var lookup = FS.lookupPath(path, { follow: true }); + var node = lookup.node; + node.node_ops.setattr(node, { + timestamp: Math.max(atime, mtime) + }); + },open:function (path, flags, mode, fd_start, fd_end) { + flags = typeof flags === 'string' ? FS.modeStringToFlags(flags) : flags; + mode = typeof mode === 'undefined' ? 0666 : mode; + if ((flags & 64)) { + mode = (mode & 4095) | 32768; + } else { + mode = 0; + } + var node; + if (typeof path === 'object') { + node = path; + } else { + path = PATH.normalize(path); + try { + var lookup = FS.lookupPath(path, { + follow: !(flags & 131072) + }); + node = lookup.node; + } catch (e) { + // ignore + } + } + // perhaps we need to create the node + if ((flags & 64)) { + if (node) { + // if O_CREAT and O_EXCL are set, error out if the node already exists + if ((flags & 128)) { + throw new FS.ErrnoError(ERRNO_CODES.EEXIST); + } + } else { + // node doesn't exist, try to create it + node = FS.mknod(path, mode, 0); + } + } + if (!node) { + throw new FS.ErrnoError(ERRNO_CODES.ENOENT); + } + // can't truncate a device + if (FS.isChrdev(node.mode)) { + flags &= ~512; + } + // check permissions + var err = FS.mayOpen(node, flags); + if (err) { + throw new FS.ErrnoError(err); + } + // do truncation if necessary + if ((flags & 512)) { + FS.truncate(node, 0); + } + // we've already handled these, don't pass down to the underlying vfs + flags &= ~(128 | 512); + // register the stream with the filesystem + var stream = FS.createStream({ + node: node, + path: FS.getPath(node), // we want the absolute path to the node + flags: flags, + seekable: true, + position: 0, + stream_ops: node.stream_ops, + // used by the file family libc calls (fopen, fwrite, ferror, etc.) + ungotten: [], + error: false + }, fd_start, fd_end); + // call the new stream's open function + if (stream.stream_ops.open) { + stream.stream_ops.open(stream); + } + if (Module['logReadFiles'] && !(flags & 1)) { + if (!FS.readFiles) FS.readFiles = {}; + if (!(path in FS.readFiles)) { + FS.readFiles[path] = 1; + Module['printErr']('read file: ' + path); + } + } + return stream; + },close:function (stream) { + try { + if (stream.stream_ops.close) { + stream.stream_ops.close(stream); + } + } catch (e) { + throw e; + } finally { + FS.closeStream(stream.fd); + } + },llseek:function (stream, offset, whence) { + if (!stream.seekable || !stream.stream_ops.llseek) { + throw new FS.ErrnoError(ERRNO_CODES.ESPIPE); + } + return stream.stream_ops.llseek(stream, offset, whence); + },read:function (stream, buffer, offset, length, position) { + if (length < 0 || position < 0) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + if ((stream.flags & 2097155) === 1) { + throw new FS.ErrnoError(ERRNO_CODES.EBADF); + } + if (FS.isDir(stream.node.mode)) { + throw new FS.ErrnoError(ERRNO_CODES.EISDIR); + } + if (!stream.stream_ops.read) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + var seeking = true; + if (typeof position === 'undefined') { + position = stream.position; + seeking = false; + } else if (!stream.seekable) { + throw new FS.ErrnoError(ERRNO_CODES.ESPIPE); + } + var bytesRead = stream.stream_ops.read(stream, buffer, offset, length, position); + if (!seeking) stream.position += bytesRead; + return bytesRead; + },write:function (stream, buffer, offset, length, position, canOwn) { + if (length < 0 || position < 0) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + if ((stream.flags & 2097155) === 0) { + throw new FS.ErrnoError(ERRNO_CODES.EBADF); + } + if (FS.isDir(stream.node.mode)) { + throw new FS.ErrnoError(ERRNO_CODES.EISDIR); + } + if (!stream.stream_ops.write) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + var seeking = true; + if (typeof position === 'undefined') { + position = stream.position; + seeking = false; + } else if (!stream.seekable) { + throw new FS.ErrnoError(ERRNO_CODES.ESPIPE); + } + if (stream.flags & 1024) { + // seek to the end before writing in append mode + FS.llseek(stream, 0, 2); + } + var bytesWritten = stream.stream_ops.write(stream, buffer, offset, length, position, canOwn); + if (!seeking) stream.position += bytesWritten; + return bytesWritten; + },allocate:function (stream, offset, length) { + if (offset < 0 || length <= 0) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + if ((stream.flags & 2097155) === 0) { + throw new FS.ErrnoError(ERRNO_CODES.EBADF); + } + if (!FS.isFile(stream.node.mode) && !FS.isDir(node.mode)) { + throw new FS.ErrnoError(ERRNO_CODES.ENODEV); + } + if (!stream.stream_ops.allocate) { + throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP); + } + stream.stream_ops.allocate(stream, offset, length); + },mmap:function (stream, buffer, offset, length, position, prot, flags) { + // TODO if PROT is PROT_WRITE, make sure we have write access + if ((stream.flags & 2097155) === 1) { + throw new FS.ErrnoError(ERRNO_CODES.EACCES); + } + if (!stream.stream_ops.mmap) { + throw new FS.errnoError(ERRNO_CODES.ENODEV); + } + return stream.stream_ops.mmap(stream, buffer, offset, length, position, prot, flags); + },ioctl:function (stream, cmd, arg) { + if (!stream.stream_ops.ioctl) { + throw new FS.ErrnoError(ERRNO_CODES.ENOTTY); + } + return stream.stream_ops.ioctl(stream, cmd, arg); + },readFile:function (path, opts) { + opts = opts || {}; + opts.flags = opts.flags || 'r'; + opts.encoding = opts.encoding || 'binary'; + var ret; + var stream = FS.open(path, opts.flags); + var stat = FS.stat(path); + var length = stat.size; + var buf = new Uint8Array(length); + FS.read(stream, buf, 0, length, 0); + if (opts.encoding === 'utf8') { + ret = ''; + var utf8 = new Runtime.UTF8Processor(); + for (var i = 0; i < length; i++) { + ret += utf8.processCChar(buf[i]); + } + } else if (opts.encoding === 'binary') { + ret = buf; + } else { + throw new Error('Invalid encoding type "' + opts.encoding + '"'); + } + FS.close(stream); + return ret; + },writeFile:function (path, data, opts) { + opts = opts || {}; + opts.flags = opts.flags || 'w'; + opts.encoding = opts.encoding || 'utf8'; + var stream = FS.open(path, opts.flags, opts.mode); + if (opts.encoding === 'utf8') { + var utf8 = new Runtime.UTF8Processor(); + var buf = new Uint8Array(utf8.processJSString(data)); + FS.write(stream, buf, 0, buf.length, 0); + } else if (opts.encoding === 'binary') { + FS.write(stream, data, 0, data.length, 0); + } else { + throw new Error('Invalid encoding type "' + opts.encoding + '"'); + } + FS.close(stream); + },cwd:function () { + return FS.currentPath; + },chdir:function (path) { + var lookup = FS.lookupPath(path, { follow: true }); + if (!FS.isDir(lookup.node.mode)) { + throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR); + } + var err = FS.nodePermissions(lookup.node, 'x'); + if (err) { + throw new FS.ErrnoError(err); + } + FS.currentPath = lookup.path; + },createDefaultDirectories:function () { + FS.mkdir('/tmp'); + },createDefaultDevices:function () { + // create /dev + FS.mkdir('/dev'); + // setup /dev/null + FS.registerDevice(FS.makedev(1, 3), { + read: function() { return 0; }, + write: function() { return 0; } + }); + FS.mkdev('/dev/null', FS.makedev(1, 3)); + // setup /dev/tty and /dev/tty1 + // stderr needs to print output using Module['printErr'] + // so we register a second tty just for it. + TTY.register(FS.makedev(5, 0), TTY.default_tty_ops); + TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops); + FS.mkdev('/dev/tty', FS.makedev(5, 0)); + FS.mkdev('/dev/tty1', FS.makedev(6, 0)); + // we're not going to emulate the actual shm device, + // just create the tmp dirs that reside in it commonly + FS.mkdir('/dev/shm'); + FS.mkdir('/dev/shm/tmp'); + },createStandardStreams:function () { + // TODO deprecate the old functionality of a single + // input / output callback and that utilizes FS.createDevice + // and instead require a unique set of stream ops + // by default, we symlink the standard streams to the + // default tty devices. however, if the standard streams + // have been overwritten we create a unique device for + // them instead. + if (Module['stdin']) { + FS.createDevice('/dev', 'stdin', Module['stdin']); + } else { + FS.symlink('/dev/tty', '/dev/stdin'); + } + if (Module['stdout']) { + FS.createDevice('/dev', 'stdout', null, Module['stdout']); + } else { + FS.symlink('/dev/tty', '/dev/stdout'); + } + if (Module['stderr']) { + FS.createDevice('/dev', 'stderr', null, Module['stderr']); + } else { + FS.symlink('/dev/tty1', '/dev/stderr'); + } + // open default streams for the stdin, stdout and stderr devices + var stdin = FS.open('/dev/stdin', 'r'); + HEAP32[((_stdin)>>2)]=stdin.fd; + assert(stdin.fd === 1, 'invalid handle for stdin (' + stdin.fd + ')'); + var stdout = FS.open('/dev/stdout', 'w'); + HEAP32[((_stdout)>>2)]=stdout.fd; + assert(stdout.fd === 2, 'invalid handle for stdout (' + stdout.fd + ')'); + var stderr = FS.open('/dev/stderr', 'w'); + HEAP32[((_stderr)>>2)]=stderr.fd; + assert(stderr.fd === 3, 'invalid handle for stderr (' + stderr.fd + ')'); + },ensureErrnoError:function () { + if (FS.ErrnoError) return; + FS.ErrnoError = function ErrnoError(errno) { + this.errno = errno; + for (var key in ERRNO_CODES) { + if (ERRNO_CODES[key] === errno) { + this.code = key; + break; + } + } + this.message = ERRNO_MESSAGES[errno]; + this.stack = stackTrace(); + }; + FS.ErrnoError.prototype = new Error(); + FS.ErrnoError.prototype.constructor = FS.ErrnoError; + // Some errors may happen quite a bit, to avoid overhead we reuse them (and suffer a lack of stack info) + [ERRNO_CODES.ENOENT].forEach(function(code) { + FS.genericErrors[code] = new FS.ErrnoError(code); + FS.genericErrors[code].stack = ''; + }); + },staticInit:function () { + FS.ensureErrnoError(); + FS.nameTable = new Array(4096); + FS.root = FS.createNode(null, '/', 16384 | 0777, 0); + FS.mount(MEMFS, {}, '/'); + FS.createDefaultDirectories(); + FS.createDefaultDevices(); + },init:function (input, output, error) { + assert(!FS.init.initialized, 'FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)'); + FS.init.initialized = true; + FS.ensureErrnoError(); + // Allow Module.stdin etc. to provide defaults, if none explicitly passed to us here + Module['stdin'] = input || Module['stdin']; + Module['stdout'] = output || Module['stdout']; + Module['stderr'] = error || Module['stderr']; + FS.createStandardStreams(); + },quit:function () { + FS.init.initialized = false; + for (var i = 0; i < FS.streams.length; i++) { + var stream = FS.streams[i]; + if (!stream) { + continue; + } + FS.close(stream); + } + },getMode:function (canRead, canWrite) { + var mode = 0; + if (canRead) mode |= 292 | 73; + if (canWrite) mode |= 146; + return mode; + },joinPath:function (parts, forceRelative) { + var path = PATH.join.apply(null, parts); + if (forceRelative && path[0] == '/') path = path.substr(1); + return path; + },absolutePath:function (relative, base) { + return PATH.resolve(base, relative); + },standardizePath:function (path) { + return PATH.normalize(path); + },findObject:function (path, dontResolveLastLink) { + var ret = FS.analyzePath(path, dontResolveLastLink); + if (ret.exists) { + return ret.object; + } else { + ___setErrNo(ret.error); + return null; + } + },analyzePath:function (path, dontResolveLastLink) { + // operate from within the context of the symlink's target + try { + var lookup = FS.lookupPath(path, { follow: !dontResolveLastLink }); + path = lookup.path; + } catch (e) { + } + var ret = { + isRoot: false, exists: false, error: 0, name: null, path: null, object: null, + parentExists: false, parentPath: null, parentObject: null + }; + try { + var lookup = FS.lookupPath(path, { parent: true }); + ret.parentExists = true; + ret.parentPath = lookup.path; + ret.parentObject = lookup.node; + ret.name = PATH.basename(path); + lookup = FS.lookupPath(path, { follow: !dontResolveLastLink }); + ret.exists = true; + ret.path = lookup.path; + ret.object = lookup.node; + ret.name = lookup.node.name; + ret.isRoot = lookup.path === '/'; + } catch (e) { + ret.error = e.errno; + }; + return ret; + },createFolder:function (parent, name, canRead, canWrite) { + var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name); + var mode = FS.getMode(canRead, canWrite); + return FS.mkdir(path, mode); + },createPath:function (parent, path, canRead, canWrite) { + parent = typeof parent === 'string' ? parent : FS.getPath(parent); + var parts = path.split('/').reverse(); + while (parts.length) { + var part = parts.pop(); + if (!part) continue; + var current = PATH.join2(parent, part); + try { + FS.mkdir(current); + } catch (e) { + // ignore EEXIST + } + parent = current; + } + return current; + },createFile:function (parent, name, properties, canRead, canWrite) { + var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name); + var mode = FS.getMode(canRead, canWrite); + return FS.create(path, mode); + },createDataFile:function (parent, name, data, canRead, canWrite, canOwn) { + var path = name ? PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name) : parent; + var mode = FS.getMode(canRead, canWrite); + var node = FS.create(path, mode); + if (data) { + if (typeof data === 'string') { + var arr = new Array(data.length); + for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i); + data = arr; + } + // make sure we can write to the file + FS.chmod(node, mode | 146); + var stream = FS.open(node, 'w'); + FS.write(stream, data, 0, data.length, 0, canOwn); + FS.close(stream); + FS.chmod(node, mode); + } + return node; + },createDevice:function (parent, name, input, output) { + var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name); + var mode = FS.getMode(!!input, !!output); + if (!FS.createDevice.major) FS.createDevice.major = 64; + var dev = FS.makedev(FS.createDevice.major++, 0); + // Create a fake device that a set of stream ops to emulate + // the old behavior. + FS.registerDevice(dev, { + open: function(stream) { + stream.seekable = false; + }, + close: function(stream) { + // flush any pending line data + if (output && output.buffer && output.buffer.length) { + output(10); + } + }, + read: function(stream, buffer, offset, length, pos /* ignored */) { + var bytesRead = 0; + for (var i = 0; i < length; i++) { + var result; + try { + result = input(); + } catch (e) { + throw new FS.ErrnoError(ERRNO_CODES.EIO); + } + if (result === undefined && bytesRead === 0) { + throw new FS.ErrnoError(ERRNO_CODES.EAGAIN); + } + if (result === null || result === undefined) break; + bytesRead++; + buffer[offset+i] = result; + } + if (bytesRead) { + stream.node.timestamp = Date.now(); + } + return bytesRead; + }, + write: function(stream, buffer, offset, length, pos) { + for (var i = 0; i < length; i++) { + try { + output(buffer[offset+i]); + } catch (e) { + throw new FS.ErrnoError(ERRNO_CODES.EIO); + } + } + if (length) { + stream.node.timestamp = Date.now(); + } + return i; + } + }); + return FS.mkdev(path, mode, dev); + },createLink:function (parent, name, target, canRead, canWrite) { + var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name); + return FS.symlink(target, path); + },forceLoadFile:function (obj) { + if (obj.isDevice || obj.isFolder || obj.link || obj.contents) return true; + var success = true; + if (typeof XMLHttpRequest !== 'undefined') { + throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread."); + } else if (Module['read']) { + // Command-line. + try { + // WARNING: Can't read binary files in V8's d8 or tracemonkey's js, as + // read() will try to parse UTF8. + obj.contents = intArrayFromString(Module['read'](obj.url), true); + } catch (e) { + success = false; + } + } else { + throw new Error('Cannot load without read() or XMLHttpRequest.'); + } + if (!success) ___setErrNo(ERRNO_CODES.EIO); + return success; + },createLazyFile:function (parent, name, url, canRead, canWrite) { + if (typeof XMLHttpRequest !== 'undefined') { + if (!ENVIRONMENT_IS_WORKER) throw 'Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc'; + // Lazy chunked Uint8Array (implements get and length from Uint8Array). Actual getting is abstracted away for eventual reuse. + function LazyUint8Array() { + this.lengthKnown = false; + this.chunks = []; // Loaded chunks. Index is the chunk number + } + LazyUint8Array.prototype.get = function LazyUint8Array_get(idx) { + if (idx > this.length-1 || idx < 0) { + return undefined; + } + var chunkOffset = idx % this.chunkSize; + var chunkNum = Math.floor(idx / this.chunkSize); + return this.getter(chunkNum)[chunkOffset]; + } + LazyUint8Array.prototype.setDataGetter = function LazyUint8Array_setDataGetter(getter) { + this.getter = getter; + } + LazyUint8Array.prototype.cacheLength = function LazyUint8Array_cacheLength() { + // Find length + var xhr = new XMLHttpRequest(); + xhr.open('HEAD', url, false); + xhr.send(null); + if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status); + var datalength = Number(xhr.getResponseHeader("Content-length")); + var header; + var hasByteServing = (header = xhr.getResponseHeader("Accept-Ranges")) && header === "bytes"; + var chunkSize = 1024*1024; // Chunk size in bytes + if (!hasByteServing) chunkSize = datalength; + // Function to get a range from the remote URL. + var doXHR = (function(from, to) { + if (from > to) throw new Error("invalid range (" + from + ", " + to + ") or no bytes requested!"); + if (to > datalength-1) throw new Error("only " + datalength + " bytes available! programmer error!"); + // TODO: Use mozResponseArrayBuffer, responseStream, etc. if available. + var xhr = new XMLHttpRequest(); + xhr.open('GET', url, false); + if (datalength !== chunkSize) xhr.setRequestHeader("Range", "bytes=" + from + "-" + to); + // Some hints to the browser that we want binary data. + if (typeof Uint8Array != 'undefined') xhr.responseType = 'arraybuffer'; + if (xhr.overrideMimeType) { + xhr.overrideMimeType('text/plain; charset=x-user-defined'); + } + xhr.send(null); + if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status); + if (xhr.response !== undefined) { + return new Uint8Array(xhr.response || []); + } else { + return intArrayFromString(xhr.responseText || '', true); + } + }); + var lazyArray = this; + lazyArray.setDataGetter(function(chunkNum) { + var start = chunkNum * chunkSize; + var end = (chunkNum+1) * chunkSize - 1; // including this byte + end = Math.min(end, datalength-1); // if datalength-1 is selected, this is the last block + if (typeof(lazyArray.chunks[chunkNum]) === "undefined") { + lazyArray.chunks[chunkNum] = doXHR(start, end); + } + if (typeof(lazyArray.chunks[chunkNum]) === "undefined") throw new Error("doXHR failed!"); + return lazyArray.chunks[chunkNum]; + }); + this._length = datalength; + this._chunkSize = chunkSize; + this.lengthKnown = true; + } + var lazyArray = new LazyUint8Array(); + Object.defineProperty(lazyArray, "length", { + get: function() { + if(!this.lengthKnown) { + this.cacheLength(); + } + return this._length; + } + }); + Object.defineProperty(lazyArray, "chunkSize", { + get: function() { + if(!this.lengthKnown) { + this.cacheLength(); + } + return this._chunkSize; + } + }); + var properties = { isDevice: false, contents: lazyArray }; + } else { + var properties = { isDevice: false, url: url }; + } + var node = FS.createFile(parent, name, properties, canRead, canWrite); + // This is a total hack, but I want to get this lazy file code out of the + // core of MEMFS. If we want to keep this lazy file concept I feel it should + // be its own thin LAZYFS proxying calls to MEMFS. + if (properties.contents) { + node.contents = properties.contents; + } else if (properties.url) { + node.contents = null; + node.url = properties.url; + } + // override each stream op with one that tries to force load the lazy file first + var stream_ops = {}; + var keys = Object.keys(node.stream_ops); + keys.forEach(function(key) { + var fn = node.stream_ops[key]; + stream_ops[key] = function forceLoadLazyFile() { + if (!FS.forceLoadFile(node)) { + throw new FS.ErrnoError(ERRNO_CODES.EIO); + } + return fn.apply(null, arguments); + }; + }); + // use a custom read function + stream_ops.read = function stream_ops_read(stream, buffer, offset, length, position) { + if (!FS.forceLoadFile(node)) { + throw new FS.ErrnoError(ERRNO_CODES.EIO); + } + var contents = stream.node.contents; + if (position >= contents.length) + return 0; + var size = Math.min(contents.length - position, length); + assert(size >= 0); + if (contents.slice) { // normal array + for (var i = 0; i < size; i++) { + buffer[offset + i] = contents[position + i]; + } + } else { + for (var i = 0; i < size; i++) { // LazyUint8Array from sync binary XHR + buffer[offset + i] = contents.get(position + i); + } + } + return size; + }; + node.stream_ops = stream_ops; + return node; + },createPreloadedFile:function (parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn) { + Browser.init(); + // TODO we should allow people to just pass in a complete filename instead + // of parent and name being that we just join them anyways + var fullname = name ? PATH.resolve(PATH.join2(parent, name)) : parent; + function processData(byteArray) { + function finish(byteArray) { + if (!dontCreateFile) { + FS.createDataFile(parent, name, byteArray, canRead, canWrite, canOwn); + } + if (onload) onload(); + removeRunDependency('cp ' + fullname); + } + var handled = false; + Module['preloadPlugins'].forEach(function(plugin) { + if (handled) return; + if (plugin['canHandle'](fullname)) { + plugin['handle'](byteArray, fullname, finish, function() { + if (onerror) onerror(); + removeRunDependency('cp ' + fullname); + }); + handled = true; + } + }); + if (!handled) finish(byteArray); + } + addRunDependency('cp ' + fullname); + if (typeof url == 'string') { + Browser.asyncLoad(url, function(byteArray) { + processData(byteArray); + }, onerror); + } else { + processData(url); + } + },indexedDB:function () { + return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; + },DB_NAME:function () { + return 'EM_FS_' + window.location.pathname; + },DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function (paths, onload, onerror) { + onload = onload || function(){}; + onerror = onerror || function(){}; + var indexedDB = FS.indexedDB(); + try { + var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION); + } catch (e) { + return onerror(e); + } + openRequest.onupgradeneeded = function openRequest_onupgradeneeded() { + console.log('creating db'); + var db = openRequest.result; + db.createObjectStore(FS.DB_STORE_NAME); + }; + openRequest.onsuccess = function openRequest_onsuccess() { + var db = openRequest.result; + var transaction = db.transaction([FS.DB_STORE_NAME], 'readwrite'); + var files = transaction.objectStore(FS.DB_STORE_NAME); + var ok = 0, fail = 0, total = paths.length; + function finish() { + if (fail == 0) onload(); else onerror(); + } + paths.forEach(function(path) { + var putRequest = files.put(FS.analyzePath(path).object.contents, path); + putRequest.onsuccess = function putRequest_onsuccess() { ok++; if (ok + fail == total) finish() }; + putRequest.onerror = function putRequest_onerror() { fail++; if (ok + fail == total) finish() }; + }); + transaction.onerror = onerror; + }; + openRequest.onerror = onerror; + },loadFilesFromDB:function (paths, onload, onerror) { + onload = onload || function(){}; + onerror = onerror || function(){}; + var indexedDB = FS.indexedDB(); + try { + var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION); + } catch (e) { + return onerror(e); + } + openRequest.onupgradeneeded = onerror; // no database to load from + openRequest.onsuccess = function openRequest_onsuccess() { + var db = openRequest.result; + try { + var transaction = db.transaction([FS.DB_STORE_NAME], 'readonly'); + } catch(e) { + onerror(e); + return; + } + var files = transaction.objectStore(FS.DB_STORE_NAME); + var ok = 0, fail = 0, total = paths.length; + function finish() { + if (fail == 0) onload(); else onerror(); + } + paths.forEach(function(path) { + var getRequest = files.get(path); + getRequest.onsuccess = function getRequest_onsuccess() { + if (FS.analyzePath(path).exists) { + FS.unlink(path); + } + FS.createDataFile(PATH.dirname(path), PATH.basename(path), getRequest.result, true, true, true); + ok++; + if (ok + fail == total) finish(); + }; + getRequest.onerror = function getRequest_onerror() { fail++; if (ok + fail == total) finish() }; + }); + transaction.onerror = onerror; + }; + openRequest.onerror = onerror; + }}; + var _mkport=undefined;var SOCKFS={mount:function (mount) { + return FS.createNode(null, '/', 16384 | 0777, 0); + },createSocket:function (family, type, protocol) { + var streaming = type == 1; + if (protocol) { + assert(streaming == (protocol == 6)); // if SOCK_STREAM, must be tcp + } + // create our internal socket structure + var sock = { + family: family, + type: type, + protocol: protocol, + server: null, + peers: {}, + pending: [], + recv_queue: [], + sock_ops: SOCKFS.websocket_sock_ops + }; + // create the filesystem node to store the socket structure + var name = SOCKFS.nextname(); + var node = FS.createNode(SOCKFS.root, name, 49152, 0); + node.sock = sock; + // and the wrapping stream that enables library functions such + // as read and write to indirectly interact with the socket + var stream = FS.createStream({ + path: name, + node: node, + flags: FS.modeStringToFlags('r+'), + seekable: false, + stream_ops: SOCKFS.stream_ops + }); + // map the new stream to the socket structure (sockets have a 1:1 + // relationship with a stream) + sock.stream = stream; + return sock; + },getSocket:function (fd) { + var stream = FS.getStream(fd); + if (!stream || !FS.isSocket(stream.node.mode)) { + return null; + } + return stream.node.sock; + },stream_ops:{poll:function (stream) { + var sock = stream.node.sock; + return sock.sock_ops.poll(sock); + },ioctl:function (stream, request, varargs) { + var sock = stream.node.sock; + return sock.sock_ops.ioctl(sock, request, varargs); + },read:function (stream, buffer, offset, length, position /* ignored */) { + var sock = stream.node.sock; + var msg = sock.sock_ops.recvmsg(sock, length); + if (!msg) { + // socket is closed + return 0; + } + buffer.set(msg.buffer, offset); + return msg.buffer.length; + },write:function (stream, buffer, offset, length, position /* ignored */) { + var sock = stream.node.sock; + return sock.sock_ops.sendmsg(sock, buffer, offset, length); + },close:function (stream) { + var sock = stream.node.sock; + sock.sock_ops.close(sock); + }},nextname:function () { + if (!SOCKFS.nextname.current) { + SOCKFS.nextname.current = 0; + } + return 'socket[' + (SOCKFS.nextname.current++) + ']'; + },websocket_sock_ops:{createPeer:function (sock, addr, port) { + var ws; + if (typeof addr === 'object') { + ws = addr; + addr = null; + port = null; + } + if (ws) { + // for sockets that've already connected (e.g. we're the server) + // we can inspect the _socket property for the address + if (ws._socket) { + addr = ws._socket.remoteAddress; + port = ws._socket.remotePort; + } + // if we're just now initializing a connection to the remote, + // inspect the url property + else { + var result = /ws[s]?:\/\/([^:]+):(\d+)/.exec(ws.url); + if (!result) { + throw new Error('WebSocket URL must be in the format ws(s)://address:port'); + } + addr = result[1]; + port = parseInt(result[2], 10); + } + } else { + // create the actual websocket object and connect + try { + var url = 'ws://' + addr + ':' + port; + // the node ws library API is slightly different than the browser's + var opts = ENVIRONMENT_IS_NODE ? {headers: {'websocket-protocol': ['binary']}} : ['binary']; + // If node we use the ws library. + var WebSocket = ENVIRONMENT_IS_NODE ? require('ws') : window['WebSocket']; + ws = new WebSocket(url, opts); + ws.binaryType = 'arraybuffer'; + } catch (e) { + throw new FS.ErrnoError(ERRNO_CODES.EHOSTUNREACH); + } + } + var peer = { + addr: addr, + port: port, + socket: ws, + dgram_send_queue: [] + }; + SOCKFS.websocket_sock_ops.addPeer(sock, peer); + SOCKFS.websocket_sock_ops.handlePeerEvents(sock, peer); + // if this is a bound dgram socket, send the port number first to allow + // us to override the ephemeral port reported to us by remotePort on the + // remote end. + if (sock.type === 2 && typeof sock.sport !== 'undefined') { + peer.dgram_send_queue.push(new Uint8Array([ + 255, 255, 255, 255, + 'p'.charCodeAt(0), 'o'.charCodeAt(0), 'r'.charCodeAt(0), 't'.charCodeAt(0), + ((sock.sport & 0xff00) >> 8) , (sock.sport & 0xff) + ])); + } + return peer; + },getPeer:function (sock, addr, port) { + return sock.peers[addr + ':' + port]; + },addPeer:function (sock, peer) { + sock.peers[peer.addr + ':' + peer.port] = peer; + },removePeer:function (sock, peer) { + delete sock.peers[peer.addr + ':' + peer.port]; + },handlePeerEvents:function (sock, peer) { + var first = true; + var handleOpen = function () { + try { + var queued = peer.dgram_send_queue.shift(); + while (queued) { + peer.socket.send(queued); + queued = peer.dgram_send_queue.shift(); + } + } catch (e) { + // not much we can do here in the way of proper error handling as we've already + // lied and said this data was sent. shut it down. + peer.socket.close(); + } + }; + function handleMessage(data) { + assert(typeof data !== 'string' && data.byteLength !== undefined); // must receive an ArrayBuffer + data = new Uint8Array(data); // make a typed array view on the array buffer + // if this is the port message, override the peer's port with it + var wasfirst = first; + first = false; + if (wasfirst && + data.length === 10 && + data[0] === 255 && data[1] === 255 && data[2] === 255 && data[3] === 255 && + data[4] === 'p'.charCodeAt(0) && data[5] === 'o'.charCodeAt(0) && data[6] === 'r'.charCodeAt(0) && data[7] === 't'.charCodeAt(0)) { + // update the peer's port and it's key in the peer map + var newport = ((data[8] << 8) | data[9]); + SOCKFS.websocket_sock_ops.removePeer(sock, peer); + peer.port = newport; + SOCKFS.websocket_sock_ops.addPeer(sock, peer); + return; + } + sock.recv_queue.push({ addr: peer.addr, port: peer.port, data: data }); + }; + if (ENVIRONMENT_IS_NODE) { + peer.socket.on('open', handleOpen); + peer.socket.on('message', function(data, flags) { + if (!flags.binary) { + return; + } + handleMessage((new Uint8Array(data)).buffer); // copy from node Buffer -> ArrayBuffer + }); + peer.socket.on('error', function() { + // don't throw + }); + } else { + peer.socket.onopen = handleOpen; + peer.socket.onmessage = function peer_socket_onmessage(event) { + handleMessage(event.data); + }; + } + },poll:function (sock) { + if (sock.type === 1 && sock.server) { + // listen sockets should only say they're available for reading + // if there are pending clients. + return sock.pending.length ? (64 | 1) : 0; + } + var mask = 0; + var dest = sock.type === 1 ? // we only care about the socket state for connection-based sockets + SOCKFS.websocket_sock_ops.getPeer(sock, sock.daddr, sock.dport) : + null; + if (sock.recv_queue.length || + !dest || // connection-less sockets are always ready to read + (dest && dest.socket.readyState === dest.socket.CLOSING) || + (dest && dest.socket.readyState === dest.socket.CLOSED)) { // let recv return 0 once closed + mask |= (64 | 1); + } + if (!dest || // connection-less sockets are always ready to write + (dest && dest.socket.readyState === dest.socket.OPEN)) { + mask |= 4; + } + if ((dest && dest.socket.readyState === dest.socket.CLOSING) || + (dest && dest.socket.readyState === dest.socket.CLOSED)) { + mask |= 16; + } + return mask; + },ioctl:function (sock, request, arg) { + switch (request) { + case 21531: + var bytes = 0; + if (sock.recv_queue.length) { + bytes = sock.recv_queue[0].data.length; + } + HEAP32[((arg)>>2)]=bytes; + return 0; + default: + return ERRNO_CODES.EINVAL; + } + },close:function (sock) { + // if we've spawned a listen server, close it + if (sock.server) { + try { + sock.server.close(); + } catch (e) { + } + sock.server = null; + } + // close any peer connections + var peers = Object.keys(sock.peers); + for (var i = 0; i < peers.length; i++) { + var peer = sock.peers[peers[i]]; + try { + peer.socket.close(); + } catch (e) { + } + SOCKFS.websocket_sock_ops.removePeer(sock, peer); + } + return 0; + },bind:function (sock, addr, port) { + if (typeof sock.saddr !== 'undefined' || typeof sock.sport !== 'undefined') { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); // already bound + } + sock.saddr = addr; + sock.sport = port || _mkport(); + // in order to emulate dgram sockets, we need to launch a listen server when + // binding on a connection-less socket + // note: this is only required on the server side + if (sock.type === 2) { + // close the existing server if it exists + if (sock.server) { + sock.server.close(); + sock.server = null; + } + // swallow error operation not supported error that occurs when binding in the + // browser where this isn't supported + try { + sock.sock_ops.listen(sock, 0); + } catch (e) { + if (!(e instanceof FS.ErrnoError)) throw e; + if (e.errno !== ERRNO_CODES.EOPNOTSUPP) throw e; + } + } + },connect:function (sock, addr, port) { + if (sock.server) { + throw new FS.ErrnoError(ERRNO_CODS.EOPNOTSUPP); + } + // TODO autobind + // if (!sock.addr && sock.type == 2) { + // } + // early out if we're already connected / in the middle of connecting + if (typeof sock.daddr !== 'undefined' && typeof sock.dport !== 'undefined') { + var dest = SOCKFS.websocket_sock_ops.getPeer(sock, sock.daddr, sock.dport); + if (dest) { + if (dest.socket.readyState === dest.socket.CONNECTING) { + throw new FS.ErrnoError(ERRNO_CODES.EALREADY); + } else { + throw new FS.ErrnoError(ERRNO_CODES.EISCONN); + } + } + } + // add the socket to our peer list and set our + // destination address / port to match + var peer = SOCKFS.websocket_sock_ops.createPeer(sock, addr, port); + sock.daddr = peer.addr; + sock.dport = peer.port; + // always "fail" in non-blocking mode + throw new FS.ErrnoError(ERRNO_CODES.EINPROGRESS); + },listen:function (sock, backlog) { + if (!ENVIRONMENT_IS_NODE) { + throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP); + } + if (sock.server) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); // already listening + } + var WebSocketServer = require('ws').Server; + var host = sock.saddr; + sock.server = new WebSocketServer({ + host: host, + port: sock.sport + // TODO support backlog + }); + sock.server.on('connection', function(ws) { + if (sock.type === 1) { + var newsock = SOCKFS.createSocket(sock.family, sock.type, sock.protocol); + // create a peer on the new socket + var peer = SOCKFS.websocket_sock_ops.createPeer(newsock, ws); + newsock.daddr = peer.addr; + newsock.dport = peer.port; + // push to queue for accept to pick up + sock.pending.push(newsock); + } else { + // create a peer on the listen socket so calling sendto + // with the listen socket and an address will resolve + // to the correct client + SOCKFS.websocket_sock_ops.createPeer(sock, ws); + } + }); + sock.server.on('closed', function() { + sock.server = null; + }); + sock.server.on('error', function() { + // don't throw + }); + },accept:function (listensock) { + if (!listensock.server) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + var newsock = listensock.pending.shift(); + newsock.stream.flags = listensock.stream.flags; + return newsock; + },getname:function (sock, peer) { + var addr, port; + if (peer) { + if (sock.daddr === undefined || sock.dport === undefined) { + throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN); + } + addr = sock.daddr; + port = sock.dport; + } else { + // TODO saddr and sport will be set for bind()'d UDP sockets, but what + // should we be returning for TCP sockets that've been connect()'d? + addr = sock.saddr || 0; + port = sock.sport || 0; + } + return { addr: addr, port: port }; + },sendmsg:function (sock, buffer, offset, length, addr, port) { + if (sock.type === 2) { + // connection-less sockets will honor the message address, + // and otherwise fall back to the bound destination address + if (addr === undefined || port === undefined) { + addr = sock.daddr; + port = sock.dport; + } + // if there was no address to fall back to, error out + if (addr === undefined || port === undefined) { + throw new FS.ErrnoError(ERRNO_CODES.EDESTADDRREQ); + } + } else { + // connection-based sockets will only use the bound + addr = sock.daddr; + port = sock.dport; + } + // find the peer for the destination address + var dest = SOCKFS.websocket_sock_ops.getPeer(sock, addr, port); + // early out if not connected with a connection-based socket + if (sock.type === 1) { + if (!dest || dest.socket.readyState === dest.socket.CLOSING || dest.socket.readyState === dest.socket.CLOSED) { + throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN); + } else if (dest.socket.readyState === dest.socket.CONNECTING) { + throw new FS.ErrnoError(ERRNO_CODES.EAGAIN); + } + } + // create a copy of the incoming data to send, as the WebSocket API + // doesn't work entirely with an ArrayBufferView, it'll just send + // the entire underlying buffer + var data; + if (buffer instanceof Array || buffer instanceof ArrayBuffer) { + data = buffer.slice(offset, offset + length); + } else { // ArrayBufferView + data = buffer.buffer.slice(buffer.byteOffset + offset, buffer.byteOffset + offset + length); + } + // if we're emulating a connection-less dgram socket and don't have + // a cached connection, queue the buffer to send upon connect and + // lie, saying the data was sent now. + if (sock.type === 2) { + if (!dest || dest.socket.readyState !== dest.socket.OPEN) { + // if we're not connected, open a new connection + if (!dest || dest.socket.readyState === dest.socket.CLOSING || dest.socket.readyState === dest.socket.CLOSED) { + dest = SOCKFS.websocket_sock_ops.createPeer(sock, addr, port); + } + dest.dgram_send_queue.push(data); + return length; + } + } + try { + // send the actual data + dest.socket.send(data); + return length; + } catch (e) { + throw new FS.ErrnoError(ERRNO_CODES.EINVAL); + } + },recvmsg:function (sock, length) { + // http://pubs.opengroup.org/onlinepubs/7908799/xns/recvmsg.html + if (sock.type === 1 && sock.server) { + // tcp servers should not be recv()'ing on the listen socket + throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN); + } + var queued = sock.recv_queue.shift(); + if (!queued) { + if (sock.type === 1) { + var dest = SOCKFS.websocket_sock_ops.getPeer(sock, sock.daddr, sock.dport); + if (!dest) { + // if we have a destination address but are not connected, error out + throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN); + } + else if (dest.socket.readyState === dest.socket.CLOSING || dest.socket.readyState === dest.socket.CLOSED) { + // return null if the socket has closed + return null; + } + else { + // else, our socket is in a valid state but truly has nothing available + throw new FS.ErrnoError(ERRNO_CODES.EAGAIN); + } + } else { + throw new FS.ErrnoError(ERRNO_CODES.EAGAIN); + } + } + // queued.data will be an ArrayBuffer if it's unadulterated, but if it's + // requeued TCP data it'll be an ArrayBufferView + var queuedLength = queued.data.byteLength || queued.data.length; + var queuedOffset = queued.data.byteOffset || 0; + var queuedBuffer = queued.data.buffer || queued.data; + var bytesRead = Math.min(length, queuedLength); + var res = { + buffer: new Uint8Array(queuedBuffer, queuedOffset, bytesRead), + addr: queued.addr, + port: queued.port + }; + // push back any unread data for TCP connections + if (sock.type === 1 && bytesRead < queuedLength) { + var bytesRemaining = queuedLength - bytesRead; + queued.data = new Uint8Array(queuedBuffer, queuedOffset + bytesRead, bytesRemaining); + sock.recv_queue.unshift(queued); + } + return res; + }}};function _send(fd, buf, len, flags) { + var sock = SOCKFS.getSocket(fd); + if (!sock) { + ___setErrNo(ERRNO_CODES.EBADF); + return -1; + } + // TODO honor flags + return _write(fd, buf, len); + } + function _pwrite(fildes, buf, nbyte, offset) { + // ssize_t pwrite(int fildes, const void *buf, size_t nbyte, off_t offset); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/write.html + var stream = FS.getStream(fildes); + if (!stream) { + ___setErrNo(ERRNO_CODES.EBADF); + return -1; + } + try { + var slab = HEAP8; + return FS.write(stream, slab, buf, nbyte, offset); + } catch (e) { + FS.handleFSError(e); + return -1; + } + }function _write(fildes, buf, nbyte) { + // ssize_t write(int fildes, const void *buf, size_t nbyte); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/write.html + var stream = FS.getStream(fildes); + if (!stream) { + ___setErrNo(ERRNO_CODES.EBADF); + return -1; + } + try { + var slab = HEAP8; + return FS.write(stream, slab, buf, nbyte); + } catch (e) { + FS.handleFSError(e); + return -1; + } + }function _fwrite(ptr, size, nitems, stream) { + // size_t fwrite(const void *restrict ptr, size_t size, size_t nitems, FILE *restrict stream); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/fwrite.html + var bytesToWrite = nitems * size; + if (bytesToWrite == 0) return 0; + var bytesWritten = _write(stream, ptr, bytesToWrite); + if (bytesWritten == -1) { + var streamObj = FS.getStream(stream); + if (streamObj) streamObj.error = true; + return 0; + } else { + return Math.floor(bytesWritten / size); + } + } + Module["_strlen"] = _strlen; + function __reallyNegative(x) { + return x < 0 || (x === 0 && (1/x) === -Infinity); + }function __formatString(format, varargs) { + var textIndex = format; + var argIndex = 0; + function getNextArg(type) { + // NOTE: Explicitly ignoring type safety. Otherwise this fails: + // int x = 4; printf("%c\n", (char)x); + var ret; + if (type === 'double') { + ret = HEAPF64[(((varargs)+(argIndex))>>3)]; + } else if (type == 'i64') { + ret = [HEAP32[(((varargs)+(argIndex))>>2)], + HEAP32[(((varargs)+(argIndex+8))>>2)]]; + argIndex += 8; // each 32-bit chunk is in a 64-bit block + } else { + type = 'i32'; // varargs are always i32, i64, or double + ret = HEAP32[(((varargs)+(argIndex))>>2)]; + } + argIndex += Math.max(Runtime.getNativeFieldSize(type), Runtime.getAlignSize(type, null, true)); + return ret; + } + var ret = []; + var curr, next, currArg; + while(1) { + var startTextIndex = textIndex; + curr = HEAP8[(textIndex)]; + if (curr === 0) break; + next = HEAP8[((textIndex+1)|0)]; + if (curr == 37) { + // Handle flags. + var flagAlwaysSigned = false; + var flagLeftAlign = false; + var flagAlternative = false; + var flagZeroPad = false; + var flagPadSign = false; + flagsLoop: while (1) { + switch (next) { + case 43: + flagAlwaysSigned = true; + break; + case 45: + flagLeftAlign = true; + break; + case 35: + flagAlternative = true; + break; + case 48: + if (flagZeroPad) { + break flagsLoop; + } else { + flagZeroPad = true; + break; + } + case 32: + flagPadSign = true; + break; + default: + break flagsLoop; + } + textIndex++; + next = HEAP8[((textIndex+1)|0)]; + } + // Handle width. + var width = 0; + if (next == 42) { + width = getNextArg('i32'); + textIndex++; + next = HEAP8[((textIndex+1)|0)]; + } else { + while (next >= 48 && next <= 57) { + width = width * 10 + (next - 48); + textIndex++; + next = HEAP8[((textIndex+1)|0)]; + } + } + // Handle precision. + var precisionSet = false; + if (next == 46) { + var precision = 0; + precisionSet = true; + textIndex++; + next = HEAP8[((textIndex+1)|0)]; + if (next == 42) { + precision = getNextArg('i32'); + textIndex++; + } else { + while(1) { + var precisionChr = HEAP8[((textIndex+1)|0)]; + if (precisionChr < 48 || + precisionChr > 57) break; + precision = precision * 10 + (precisionChr - 48); + textIndex++; + } + } + next = HEAP8[((textIndex+1)|0)]; + } else { + var precision = 6; // Standard default. + } + // Handle integer sizes. WARNING: These assume a 32-bit architecture! + var argSize; + switch (String.fromCharCode(next)) { + case 'h': + var nextNext = HEAP8[((textIndex+2)|0)]; + if (nextNext == 104) { + textIndex++; + argSize = 1; // char (actually i32 in varargs) + } else { + argSize = 2; // short (actually i32 in varargs) + } + break; + case 'l': + var nextNext = HEAP8[((textIndex+2)|0)]; + if (nextNext == 108) { + textIndex++; + argSize = 8; // long long + } else { + argSize = 4; // long + } + break; + case 'L': // long long + case 'q': // int64_t + case 'j': // intmax_t + argSize = 8; + break; + case 'z': // size_t + case 't': // ptrdiff_t + case 'I': // signed ptrdiff_t or unsigned size_t + argSize = 4; + break; + default: + argSize = null; + } + if (argSize) textIndex++; + next = HEAP8[((textIndex+1)|0)]; + // Handle type specifier. + switch (String.fromCharCode(next)) { + case 'd': case 'i': case 'u': case 'o': case 'x': case 'X': case 'p': { + // Integer. + var signed = next == 100 || next == 105; + argSize = argSize || 4; + var currArg = getNextArg('i' + (argSize * 8)); + var origArg = currArg; + var argText; + // Flatten i64-1 [low, high] into a (slightly rounded) double + if (argSize == 8) { + currArg = Runtime.makeBigInt(currArg[0], currArg[1], next == 117); + } + // Truncate to requested size. + if (argSize <= 4) { + var limit = Math.pow(256, argSize) - 1; + currArg = (signed ? reSign : unSign)(currArg & limit, argSize * 8); + } + // Format the number. + var currAbsArg = Math.abs(currArg); + var prefix = ''; + if (next == 100 || next == 105) { + if (argSize == 8 && i64Math) argText = i64Math.stringify(origArg[0], origArg[1], null); else + argText = reSign(currArg, 8 * argSize, 1).toString(10); + } else if (next == 117) { + if (argSize == 8 && i64Math) argText = i64Math.stringify(origArg[0], origArg[1], true); else + argText = unSign(currArg, 8 * argSize, 1).toString(10); + currArg = Math.abs(currArg); + } else if (next == 111) { + argText = (flagAlternative ? '0' : '') + currAbsArg.toString(8); + } else if (next == 120 || next == 88) { + prefix = (flagAlternative && currArg != 0) ? '0x' : ''; + if (argSize == 8 && i64Math) { + if (origArg[1]) { + argText = (origArg[1]>>>0).toString(16); + var lower = (origArg[0]>>>0).toString(16); + while (lower.length < 8) lower = '0' + lower; + argText += lower; + } else { + argText = (origArg[0]>>>0).toString(16); + } + } else + if (currArg < 0) { + // Represent negative numbers in hex as 2's complement. + currArg = -currArg; + argText = (currAbsArg - 1).toString(16); + var buffer = []; + for (var i = 0; i < argText.length; i++) { + buffer.push((0xF - parseInt(argText[i], 16)).toString(16)); + } + argText = buffer.join(''); + while (argText.length < argSize * 2) argText = 'f' + argText; + } else { + argText = currAbsArg.toString(16); + } + if (next == 88) { + prefix = prefix.toUpperCase(); + argText = argText.toUpperCase(); + } + } else if (next == 112) { + if (currAbsArg === 0) { + argText = '(nil)'; + } else { + prefix = '0x'; + argText = currAbsArg.toString(16); + } + } + if (precisionSet) { + while (argText.length < precision) { + argText = '0' + argText; + } + } + // Add sign if needed + if (currArg >= 0) { + if (flagAlwaysSigned) { + prefix = '+' + prefix; + } else if (flagPadSign) { + prefix = ' ' + prefix; + } + } + // Move sign to prefix so we zero-pad after the sign + if (argText.charAt(0) == '-') { + prefix = '-' + prefix; + argText = argText.substr(1); + } + // Add padding. + while (prefix.length + argText.length < width) { + if (flagLeftAlign) { + argText += ' '; + } else { + if (flagZeroPad) { + argText = '0' + argText; + } else { + prefix = ' ' + prefix; + } + } + } + // Insert the result into the buffer. + argText = prefix + argText; + argText.split('').forEach(function(chr) { + ret.push(chr.charCodeAt(0)); + }); + break; + } + case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': { + // Float. + var currArg = getNextArg('double'); + var argText; + if (isNaN(currArg)) { + argText = 'nan'; + flagZeroPad = false; + } else if (!isFinite(currArg)) { + argText = (currArg < 0 ? '-' : '') + 'inf'; + flagZeroPad = false; + } else { + var isGeneral = false; + var effectivePrecision = Math.min(precision, 20); + // Convert g/G to f/F or e/E, as per: + // http://pubs.opengroup.org/onlinepubs/9699919799/functions/printf.html + if (next == 103 || next == 71) { + isGeneral = true; + precision = precision || 1; + var exponent = parseInt(currArg.toExponential(effectivePrecision).split('e')[1], 10); + if (precision > exponent && exponent >= -4) { + next = ((next == 103) ? 'f' : 'F').charCodeAt(0); + precision -= exponent + 1; + } else { + next = ((next == 103) ? 'e' : 'E').charCodeAt(0); + precision--; + } + effectivePrecision = Math.min(precision, 20); + } + if (next == 101 || next == 69) { + argText = currArg.toExponential(effectivePrecision); + // Make sure the exponent has at least 2 digits. + if (/[eE][-+]\d$/.test(argText)) { + argText = argText.slice(0, -1) + '0' + argText.slice(-1); + } + } else if (next == 102 || next == 70) { + argText = currArg.toFixed(effectivePrecision); + if (currArg === 0 && __reallyNegative(currArg)) { + argText = '-' + argText; + } + } + var parts = argText.split('e'); + if (isGeneral && !flagAlternative) { + // Discard trailing zeros and periods. + while (parts[0].length > 1 && parts[0].indexOf('.') != -1 && + (parts[0].slice(-1) == '0' || parts[0].slice(-1) == '.')) { + parts[0] = parts[0].slice(0, -1); + } + } else { + // Make sure we have a period in alternative mode. + if (flagAlternative && argText.indexOf('.') == -1) parts[0] += '.'; + // Zero pad until required precision. + while (precision > effectivePrecision++) parts[0] += '0'; + } + argText = parts[0] + (parts.length > 1 ? 'e' + parts[1] : ''); + // Capitalize 'E' if needed. + if (next == 69) argText = argText.toUpperCase(); + // Add sign. + if (currArg >= 0) { + if (flagAlwaysSigned) { + argText = '+' + argText; + } else if (flagPadSign) { + argText = ' ' + argText; + } + } + } + // Add padding. + while (argText.length < width) { + if (flagLeftAlign) { + argText += ' '; + } else { + if (flagZeroPad && (argText[0] == '-' || argText[0] == '+')) { + argText = argText[0] + '0' + argText.slice(1); + } else { + argText = (flagZeroPad ? '0' : ' ') + argText; + } + } + } + // Adjust case. + if (next < 97) argText = argText.toUpperCase(); + // Insert the result into the buffer. + argText.split('').forEach(function(chr) { + ret.push(chr.charCodeAt(0)); + }); + break; + } + case 's': { + // String. + var arg = getNextArg('i8*'); + var argLength = arg ? _strlen(arg) : '(null)'.length; + if (precisionSet) argLength = Math.min(argLength, precision); + if (!flagLeftAlign) { + while (argLength < width--) { + ret.push(32); + } + } + if (arg) { + for (var i = 0; i < argLength; i++) { + ret.push(HEAPU8[((arg++)|0)]); + } + } else { + ret = ret.concat(intArrayFromString('(null)'.substr(0, argLength), true)); + } + if (flagLeftAlign) { + while (argLength < width--) { + ret.push(32); + } + } + break; + } + case 'c': { + // Character. + if (flagLeftAlign) ret.push(getNextArg('i8')); + while (--width > 0) { + ret.push(32); + } + if (!flagLeftAlign) ret.push(getNextArg('i8')); + break; + } + case 'n': { + // Write the length written so far to the next parameter. + var ptr = getNextArg('i32*'); + HEAP32[((ptr)>>2)]=ret.length + break; + } + case '%': { + // Literal percent sign. + ret.push(curr); + break; + } + default: { + // Unknown specifiers remain untouched. + for (var i = startTextIndex; i < textIndex + 2; i++) { + ret.push(HEAP8[(i)]); + } + } + } + textIndex += 2; + // TODO: Support a/A (hex float) and m (last error) specifiers. + // TODO: Support %1${specifier} for arg selection. + } else { + ret.push(curr); + textIndex += 1; + } + } + return ret; + }function _fprintf(stream, format, varargs) { + // int fprintf(FILE *restrict stream, const char *restrict format, ...); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/printf.html + var result = __formatString(format, varargs); + var stack = Runtime.stackSave(); + var ret = _fwrite(allocate(result, 'i8', ALLOC_STACK), 1, result.length, stream); + Runtime.stackRestore(stack); + return ret; + } + function _snprintf(s, n, format, varargs) { + // int snprintf(char *restrict s, size_t n, const char *restrict format, ...); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/printf.html + var result = __formatString(format, varargs); + var limit = (n === undefined) ? result.length + : Math.min(result.length, Math.max(n - 1, 0)); + if (s < 0) { + s = -s; + var buf = _malloc(limit+1); + HEAP32[((s)>>2)]=buf; + s = buf; + } + for (var i = 0; i < limit; i++) { + HEAP8[(((s)+(i))|0)]=result[i]; + } + if (limit < n || (n === undefined)) HEAP8[(((s)+(i))|0)]=0; + return result.length; + }function _sprintf(s, format, varargs) { + // int sprintf(char *restrict s, const char *restrict format, ...); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/printf.html + return _snprintf(s, undefined, format, varargs); + } + Module["_memcpy"] = _memcpy;var _llvm_memcpy_p0i8_p0i8_i32=_memcpy; + Module["_memset"] = _memset;var _llvm_memset_p0i8_i32=_memset; + Module["_memmove"] = _memmove;var _llvm_memmove_p0i8_p0i8_i32=_memmove; + var _abs=Math_abs; + Module["_strncpy"] = _strncpy; + function _open(path, oflag, varargs) { + // int open(const char *path, int oflag, ...); + // http://pubs.opengroup.org/onlinepubs/009695399/functions/open.html + var mode = HEAP32[((varargs)>>2)]; + path = Pointer_stringify(path); + try { + var stream = FS.open(path, oflag, mode); + return stream.fd; + } catch (e) { + FS.handleFSError(e); + return -1; + } + }function _fopen(filename, mode) { + // FILE *fopen(const char *restrict filename, const char *restrict mode); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/fopen.html + var flags; + mode = Pointer_stringify(mode); + if (mode[0] == 'r') { + if (mode.indexOf('+') != -1) { + flags = 2; + } else { + flags = 0; + } + } else if (mode[0] == 'w') { + if (mode.indexOf('+') != -1) { + flags = 2; + } else { + flags = 1; + } + flags |= 64; + flags |= 512; + } else if (mode[0] == 'a') { + if (mode.indexOf('+') != -1) { + flags = 2; + } else { + flags = 1; + } + flags |= 64; + flags |= 1024; + } else { + ___setErrNo(ERRNO_CODES.EINVAL); + return 0; + } + var ret = _open(filename, flags, allocate([0x1FF, 0, 0, 0], 'i32', ALLOC_STACK)); // All creation permissions. + return (ret == -1) ? 0 : ret; + } + function _feof(stream) { + // int feof(FILE *stream); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/feof.html + stream = FS.getStream(stream); + return Number(stream && stream.eof); + } + function _recv(fd, buf, len, flags) { + var sock = SOCKFS.getSocket(fd); + if (!sock) { + ___setErrNo(ERRNO_CODES.EBADF); + return -1; + } + // TODO honor flags + return _read(fd, buf, len); + } + function _pread(fildes, buf, nbyte, offset) { + // ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/read.html + var stream = FS.getStream(fildes); + if (!stream) { + ___setErrNo(ERRNO_CODES.EBADF); + return -1; + } + try { + var slab = HEAP8; + return FS.read(stream, slab, buf, nbyte, offset); + } catch (e) { + FS.handleFSError(e); + return -1; + } + }function _read(fildes, buf, nbyte) { + // ssize_t read(int fildes, void *buf, size_t nbyte); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/read.html + var stream = FS.getStream(fildes); + if (!stream) { + ___setErrNo(ERRNO_CODES.EBADF); + return -1; + } + try { + var slab = HEAP8; + return FS.read(stream, slab, buf, nbyte); + } catch (e) { + FS.handleFSError(e); + return -1; + } + }function _fread(ptr, size, nitems, stream) { + // size_t fread(void *restrict ptr, size_t size, size_t nitems, FILE *restrict stream); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/fread.html + var bytesToRead = nitems * size; + if (bytesToRead == 0) { + return 0; + } + var bytesRead = 0; + var streamObj = FS.getStream(stream); + if (!streamObj) { + ___setErrNo(ERRNO_CODES.EBADF); + return 0; + } + while (streamObj.ungotten.length && bytesToRead > 0) { + HEAP8[((ptr++)|0)]=streamObj.ungotten.pop() + bytesToRead--; + bytesRead++; + } + var err = _read(stream, ptr, bytesToRead); + if (err == -1) { + if (streamObj) streamObj.error = true; + return 0; + } + bytesRead += err; + if (bytesRead < bytesToRead) streamObj.eof = true; + return Math.floor(bytesRead / size); + }function _fgetc(stream) { + // int fgetc(FILE *stream); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/fgetc.html + var streamObj = FS.getStream(stream); + if (!streamObj) return -1; + if (streamObj.eof || streamObj.error) return -1; + var ret = _fread(_fgetc.ret, 1, 1, stream); + if (ret == 0) { + return -1; + } else if (ret == -1) { + streamObj.error = true; + return -1; + } else { + return HEAPU8[((_fgetc.ret)|0)]; + } + }function _fgets(s, n, stream) { + // char *fgets(char *restrict s, int n, FILE *restrict stream); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/fgets.html + var streamObj = FS.getStream(stream); + if (!streamObj) return 0; + if (streamObj.error || streamObj.eof) return 0; + var byte_; + for (var i = 0; i < n - 1 && byte_ != 10; i++) { + byte_ = _fgetc(stream); + if (byte_ == -1) { + if (streamObj.error || (streamObj.eof && i == 0)) return 0; + else if (streamObj.eof) break; + } + HEAP8[(((s)+(i))|0)]=byte_ + } + HEAP8[(((s)+(i))|0)]=0 + return s; + } + function _strchr(ptr, chr) { + ptr--; + do { + ptr++; + var val = HEAP8[(ptr)]; + if (val == chr) return ptr; + } while (val); + return 0; + } + function __exit(status) { + // void _exit(int status); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/exit.html + Module['exit'](status); + }function _exit(status) { + __exit(status); + } + function _strrchr(ptr, chr) { + var ptr2 = ptr + _strlen(ptr); + do { + if (HEAP8[(ptr2)] == chr) return ptr2; + ptr2--; + } while (ptr2 >= ptr); + return 0; + } + function _isspace(chr) { + return (chr == 32) || (chr >= 9 && chr <= 13); + }function __parseInt(str, endptr, base, min, max, bits, unsign) { + // Skip space. + while (_isspace(HEAP8[(str)])) str++; + // Check for a plus/minus sign. + var multiplier = 1; + if (HEAP8[(str)] == 45) { + multiplier = -1; + str++; + } else if (HEAP8[(str)] == 43) { + str++; + } + // Find base. + var finalBase = base; + if (!finalBase) { + if (HEAP8[(str)] == 48) { + if (HEAP8[((str+1)|0)] == 120 || + HEAP8[((str+1)|0)] == 88) { + finalBase = 16; + str += 2; + } else { + finalBase = 8; + str++; + } + } + } else if (finalBase==16) { + if (HEAP8[(str)] == 48) { + if (HEAP8[((str+1)|0)] == 120 || + HEAP8[((str+1)|0)] == 88) { + str += 2; + } + } + } + if (!finalBase) finalBase = 10; + // Get digits. + var chr; + var ret = 0; + while ((chr = HEAP8[(str)]) != 0) { + var digit = parseInt(String.fromCharCode(chr), finalBase); + if (isNaN(digit)) { + break; + } else { + ret = ret * finalBase + digit; + str++; + } + } + // Apply sign. + ret *= multiplier; + // Set end pointer. + if (endptr) { + HEAP32[((endptr)>>2)]=str + } + // Unsign if needed. + if (unsign) { + if (Math.abs(ret) > max) { + ret = max; + ___setErrNo(ERRNO_CODES.ERANGE); + } else { + ret = unSign(ret, bits); + } + } + // Validate range. + if (ret > max || ret < min) { + ret = ret > max ? max : min; + ___setErrNo(ERRNO_CODES.ERANGE); + } + if (bits == 64) { + return ((asm["setTempRet0"]((tempDouble=ret,(+(Math_abs(tempDouble))) >= (+1) ? (tempDouble > (+0) ? ((Math_min((+(Math_floor((tempDouble)/(+4294967296)))), (+4294967295)))|0)>>>0 : (~~((+(Math_ceil((tempDouble - +(((~~(tempDouble)))>>>0))/(+4294967296))))))>>>0) : 0)),ret>>>0)|0); + } + return ret; + }function _strtol(str, endptr, base) { + return __parseInt(str, endptr, base, -2147483648, 2147483647, 32); // LONG_MIN, LONG_MAX. + } + function _close(fildes) { + // int close(int fildes); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/close.html + var stream = FS.getStream(fildes); + if (!stream) { + ___setErrNo(ERRNO_CODES.EBADF); + return -1; + } + try { + FS.close(stream); + return 0; + } catch (e) { + FS.handleFSError(e); + return -1; + } + } + function _fsync(fildes) { + // int fsync(int fildes); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/fsync.html + var stream = FS.getStream(fildes); + if (stream) { + // We write directly to the file system, so there's nothing to do here. + return 0; + } else { + ___setErrNo(ERRNO_CODES.EBADF); + return -1; + } + }function _fclose(stream) { + // int fclose(FILE *stream); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/fclose.html + _fsync(stream); + return _close(stream); + } + function _time(ptr) { + var ret = Math.floor(Date.now()/1000); + if (ptr) { + HEAP32[((ptr)>>2)]=ret + } + return ret; + } + function _islower(chr) { + return chr >= 97 && chr <= 122; + } + function _toupper(chr) { + if (chr >= 97 && chr <= 122) { + return chr - 97 + 65; + } else { + return chr; + } + } + function _isupper(chr) { + return chr >= 65 && chr <= 90; + } + Module["_tolower"] = _tolower; + function ___assert_fail(condition, filename, line, func) { + ABORT = true; + throw 'Assertion failed: ' + Pointer_stringify(condition) + ', at: ' + [filename ? Pointer_stringify(filename) : 'unknown filename', line, func ? Pointer_stringify(func) : 'unknown function'] + ' at ' + stackTrace(); + } + function _fputs(s, stream) { + // int fputs(const char *restrict s, FILE *restrict stream); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/fputs.html + return _write(stream, s, _strlen(s)); + } + function _fputc(c, stream) { + // int fputc(int c, FILE *stream); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/fputc.html + var chr = unSign(c & 0xFF); + HEAP8[((_fputc.ret)|0)]=chr + var ret = _write(stream, _fputc.ret, 1); + if (ret == -1) { + var streamObj = FS.getStream(stream); + if (streamObj) streamObj.error = true; + return -1; + } else { + return chr; + } + } + function _setvbuf(stream, buf, type, size) { + // int setvbuf(FILE *restrict stream, char *restrict buf, int type, size_t size); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/setvbuf.html + // TODO: Implement custom buffering. + return 0; + } + function _gettimeofday(ptr) { + var now = Date.now(); + HEAP32[((ptr)>>2)]=Math.floor(now/1000); // seconds + HEAP32[(((ptr)+(4))>>2)]=Math.floor((now-1000*Math.floor(now/1000))*1000); // microseconds + return 0; + } + function _strstr(ptr1, ptr2) { + var check = 0, start; + do { + if (!check) { + start = ptr1; + check = ptr2; + } + var curr1 = HEAP8[((ptr1++)|0)]; + var curr2 = HEAP8[((check++)|0)]; + if (curr2 == 0) return start; + if (curr2 != curr1) { + // rewind to one character after start, to find ez in eeez + ptr1 = start + 1; + check = 0; + } + } while (curr1); + return 0; + } + function _strncmp(px, py, n) { + var i = 0; + while (i < n) { + var x = HEAPU8[(((px)+(i))|0)]; + var y = HEAPU8[(((py)+(i))|0)]; + if (x == y && x == 0) return 0; + if (x == 0) return -1; + if (y == 0) return 1; + if (x == y) { + i ++; + continue; + } else { + return x > y ? 1 : -1; + } + } + return 0; + }function _strcmp(px, py) { + return _strncmp(px, py, TOTAL_MEMORY); + } + function _fcntl(fildes, cmd, varargs, dup2) { + // int fcntl(int fildes, int cmd, ...); + // http://pubs.opengroup.org/onlinepubs/009695399/functions/fcntl.html + var stream = FS.getStream(fildes); + if (!stream) { + ___setErrNo(ERRNO_CODES.EBADF); + return -1; + } + switch (cmd) { + case 0: + var arg = HEAP32[((varargs)>>2)]; + if (arg < 0) { + ___setErrNo(ERRNO_CODES.EINVAL); + return -1; + } + var newStream; + try { + newStream = FS.open(stream.path, stream.flags, 0, arg); + } catch (e) { + FS.handleFSError(e); + return -1; + } + return newStream.fd; + case 1: + case 2: + return 0; // FD_CLOEXEC makes no sense for a single process. + case 3: + return stream.flags; + case 4: + var arg = HEAP32[((varargs)>>2)]; + stream.flags |= arg; + return 0; + case 12: + case 12: + var arg = HEAP32[((varargs)>>2)]; + var offset = 0; + // We're always unlocked. + HEAP16[(((arg)+(offset))>>1)]=2 + return 0; + case 13: + case 14: + case 13: + case 14: + // Pretend that the locking is successful. + return 0; + case 8: + case 9: + // These are for sockets. We don't have them fully implemented yet. + ___setErrNo(ERRNO_CODES.EINVAL); + return -1; + default: + ___setErrNo(ERRNO_CODES.EINVAL); + return -1; + } + // Should never be reached. Only to silence strict warnings. + return -1; + }function _dup2(fildes, fildes2) { + // int dup2(int fildes, int fildes2); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/dup.html + var stream = FS.getStream(fildes); + if (fildes2 < 0) { + ___setErrNo(ERRNO_CODES.EBADF); + return -1; + } else if (fildes === fildes2 && stream) { + return fildes; + } else { + _close(fildes2); + try { + var stream2 = FS.open(stream.path, stream.flags, 0, fildes2, fildes2); + return stream2.fd; + } catch (e) { + FS.handleFSError(e); + return -1; + } + } + } + function _freopen(filename, mode, stream) { + // FILE *freopen(const char *restrict filename, const char *restrict mode, FILE *restrict stream); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/freopen.html + if (!filename) { + var streamObj = FS.getStream(stream); + if (!streamObj) { + ___setErrNo(ERRNO_CODES.EBADF); + return 0; + } + if (_freopen.buffer) _free(_freopen.buffer); + filename = intArrayFromString(streamObj.path); + filename = allocate(filename, 'i8', ALLOC_NORMAL); + } + _fclose(stream); + return _fopen(filename, mode); + } + function _atoi(ptr) { + return _strtol(ptr, null, 10); + } + function _qsort(base, num, size, cmp) { + if (num == 0 || size == 0) return; + // forward calls to the JavaScript sort method + // first, sort the items logically + var keys = []; + for (var i = 0; i < num; i++) keys.push(i); + keys.sort(function(a, b) { + return Module['dynCall_iii'](cmp, base+a*size, base+b*size); + }); + // apply the sort + var temp = _malloc(num*size); + _memcpy(temp, base, num*size); + for (var i = 0; i < num; i++) { + if (keys[i] == i) continue; // already in place + _memcpy(base+i*size, temp+keys[i]*size, size); + } + _free(temp); + } + function _strdup(ptr) { + var len = _strlen(ptr); + var newStr = _malloc(len + 1); + (_memcpy(newStr, ptr, len)|0); + HEAP8[(((newStr)+(len))|0)]=0; + return newStr; + } + function _ferror(stream) { + // int ferror(FILE *stream); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/ferror.html + stream = FS.getStream(stream); + return Number(stream && stream.error); + } + function _lseek(fildes, offset, whence) { + // off_t lseek(int fildes, off_t offset, int whence); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/lseek.html + var stream = FS.getStream(fildes); + if (!stream) { + ___setErrNo(ERRNO_CODES.EBADF); + return -1; + } + try { + return FS.llseek(stream, offset, whence); + } catch (e) { + FS.handleFSError(e); + return -1; + } + }function _fseek(stream, offset, whence) { + // int fseek(FILE *stream, long offset, int whence); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/fseek.html + var ret = _lseek(stream, offset, whence); + if (ret == -1) { + return -1; + } + stream = FS.getStream(stream); + stream.eof = false; + return 0; + } + function _strncat(pdest, psrc, num) { + var len = _strlen(pdest); + var i = 0; + while(1) { + HEAP8[((pdest+len+i)|0)]=HEAP8[((psrc+i)|0)]; + if (HEAP8[(((pdest)+(len+i))|0)] == 0) break; + i ++; + if (i == num) { + HEAP8[(((pdest)+(len+i))|0)]=0 + break; + } + } + return pdest; + } + function _isalpha(chr) { + return (chr >= 97 && chr <= 122) || + (chr >= 65 && chr <= 90); + } + function _isdigit(chr) { + return chr >= 48 && chr <= 57; + } + function _popen(command, mode) { + // FILE *popen(const char *command, const char *mode); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/popen.html + // We allow only one process, so no pipes. + ___setErrNo(ERRNO_CODES.EMFILE); + return 0; + } + function _fileno(stream) { + // int fileno(FILE *stream); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/fileno.html + // We use file descriptor numbers and FILE* streams interchangeably. + return stream; + } + function _ftell(stream) { + // long ftell(FILE *stream); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/ftell.html + stream = FS.getStream(stream); + if (!stream) { + ___setErrNo(ERRNO_CODES.EBADF); + return -1; + } + if (FS.isChrdev(stream.node.mode)) { + ___setErrNo(ERRNO_CODES.ESPIPE); + return -1; + } else { + return stream.position; + } + } + function _pclose(stream) { + // int pclose(FILE *stream); + // http://pubs.opengroup.org/onlinepubs/000095399/functions/pclose.html + // We allow only one process, so no pipes. + ___setErrNo(ERRNO_CODES.ECHILD); + return -1; + } + function ___errno_location() { + return ___errno_state; + } + function _abort() { + Module['abort'](); + } + function _sbrk(bytes) { + // Implement a Linux-like 'memory area' for our 'process'. + // Changes the size of the memory area by |bytes|; returns the + // address of the previous top ('break') of the memory area + // We control the "dynamic" memory - DYNAMIC_BASE to DYNAMICTOP + var self = _sbrk; + if (!self.called) { + DYNAMICTOP = alignMemoryPage(DYNAMICTOP); // make sure we start out aligned + self.called = true; + assert(Runtime.dynamicAlloc); + self.alloc = Runtime.dynamicAlloc; + Runtime.dynamicAlloc = function() { abort('cannot dynamically allocate, sbrk now has control') }; + } + var ret = DYNAMICTOP; + if (bytes != 0) self.alloc(bytes); + return ret; // Previous break location. + } + function _sysconf(name) { + // long sysconf(int name); + // http://pubs.opengroup.org/onlinepubs/009695399/functions/sysconf.html + switch(name) { + case 30: return PAGE_SIZE; + case 132: + case 133: + case 12: + case 137: + case 138: + case 15: + case 235: + case 16: + case 17: + case 18: + case 19: + case 20: + case 149: + case 13: + case 10: + case 236: + case 153: + case 9: + case 21: + case 22: + case 159: + case 154: + case 14: + case 77: + case 78: + case 139: + case 80: + case 81: + case 79: + case 82: + case 68: + case 67: + case 164: + case 11: + case 29: + case 47: + case 48: + case 95: + case 52: + case 51: + case 46: + return 200809; + case 27: + case 246: + case 127: + case 128: + case 23: + case 24: + case 160: + case 161: + case 181: + case 182: + case 242: + case 183: + case 184: + case 243: + case 244: + case 245: + case 165: + case 178: + case 179: + case 49: + case 50: + case 168: + case 169: + case 175: + case 170: + case 171: + case 172: + case 97: + case 76: + case 32: + case 173: + case 35: + return -1; + case 176: + case 177: + case 7: + case 155: + case 8: + case 157: + case 125: + case 126: + case 92: + case 93: + case 129: + case 130: + case 131: + case 94: + case 91: + return 1; + case 74: + case 60: + case 69: + case 70: + case 4: + return 1024; + case 31: + case 42: + case 72: + return 32; + case 87: + case 26: + case 33: + return 2147483647; + case 34: + case 1: + return 47839; + case 38: + case 36: + return 99; + case 43: + case 37: + return 2048; + case 0: return 2097152; + case 3: return 65536; + case 28: return 32768; + case 44: return 32767; + case 75: return 16384; + case 39: return 1000; + case 89: return 700; + case 71: return 256; + case 40: return 255; + case 2: return 100; + case 180: return 64; + case 25: return 20; + case 5: return 16; + case 6: return 6; + case 73: return 4; + case 84: return 1; + } + ___setErrNo(ERRNO_CODES.EINVAL); + return -1; + } + var Browser={mainLoop:{scheduler:null,shouldPause:false,paused:false,queue:[],pause:function () { + Browser.mainLoop.shouldPause = true; + },resume:function () { + if (Browser.mainLoop.paused) { + Browser.mainLoop.paused = false; + Browser.mainLoop.scheduler(); + } + Browser.mainLoop.shouldPause = false; + },updateStatus:function () { + if (Module['setStatus']) { + var message = Module['statusMessage'] || 'Please wait...'; + var remaining = Browser.mainLoop.remainingBlockers; + var expected = Browser.mainLoop.expectedBlockers; + if (remaining) { + if (remaining < expected) { + Module['setStatus'](message + ' (' + (expected - remaining) + '/' + expected + ')'); + } else { + Module['setStatus'](message); + } + } else { + Module['setStatus'](''); + } + } + }},isFullScreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:function () { + if (!Module["preloadPlugins"]) Module["preloadPlugins"] = []; // needs to exist even in workers + if (Browser.initted || ENVIRONMENT_IS_WORKER) return; + Browser.initted = true; + try { + new Blob(); + Browser.hasBlobConstructor = true; + } catch(e) { + Browser.hasBlobConstructor = false; + console.log("warning: no blob constructor, cannot create blobs with mimetypes"); + } + Browser.BlobBuilder = typeof MozBlobBuilder != "undefined" ? MozBlobBuilder : (typeof WebKitBlobBuilder != "undefined" ? WebKitBlobBuilder : (!Browser.hasBlobConstructor ? console.log("warning: no BlobBuilder") : null)); + Browser.URLObject = typeof window != "undefined" ? (window.URL ? window.URL : window.webkitURL) : undefined; + if (!Module.noImageDecoding && typeof Browser.URLObject === 'undefined') { + console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."); + Module.noImageDecoding = true; + } + // Support for plugins that can process preloaded files. You can add more of these to + // your app by creating and appending to Module.preloadPlugins. + // + // Each plugin is asked if it can handle a file based on the file's name. If it can, + // it is given the file's raw data. When it is done, it calls a callback with the file's + // (possibly modified) data. For example, a plugin might decompress a file, or it + // might create some side data structure for use later (like an Image element, etc.). + var imagePlugin = {}; + imagePlugin['canHandle'] = function imagePlugin_canHandle(name) { + return !Module.noImageDecoding && /\.(jpg|jpeg|png|bmp)$/i.test(name); + }; + imagePlugin['handle'] = function imagePlugin_handle(byteArray, name, onload, onerror) { + var b = null; + if (Browser.hasBlobConstructor) { + try { + b = new Blob([byteArray], { type: Browser.getMimetype(name) }); + if (b.size !== byteArray.length) { // Safari bug #118630 + // Safari's Blob can only take an ArrayBuffer + b = new Blob([(new Uint8Array(byteArray)).buffer], { type: Browser.getMimetype(name) }); + } + } catch(e) { + Runtime.warnOnce('Blob constructor present but fails: ' + e + '; falling back to blob builder'); + } + } + if (!b) { + var bb = new Browser.BlobBuilder(); + bb.append((new Uint8Array(byteArray)).buffer); // we need to pass a buffer, and must copy the array to get the right data range + b = bb.getBlob(); + } + var url = Browser.URLObject.createObjectURL(b); + var img = new Image(); + img.onload = function img_onload() { + assert(img.complete, 'Image ' + name + ' could not be decoded'); + var canvas = document.createElement('canvas'); + canvas.width = img.width; + canvas.height = img.height; + var ctx = canvas.getContext('2d'); + ctx.drawImage(img, 0, 0); + Module["preloadedImages"][name] = canvas; + Browser.URLObject.revokeObjectURL(url); + if (onload) onload(byteArray); + }; + img.onerror = function img_onerror(event) { + console.log('Image ' + url + ' could not be decoded'); + if (onerror) onerror(); + }; + img.src = url; + }; + Module['preloadPlugins'].push(imagePlugin); + var audioPlugin = {}; + audioPlugin['canHandle'] = function audioPlugin_canHandle(name) { + return !Module.noAudioDecoding && name.substr(-4) in { '.ogg': 1, '.wav': 1, '.mp3': 1 }; + }; + audioPlugin['handle'] = function audioPlugin_handle(byteArray, name, onload, onerror) { + var done = false; + function finish(audio) { + if (done) return; + done = true; + Module["preloadedAudios"][name] = audio; + if (onload) onload(byteArray); + } + function fail() { + if (done) return; + done = true; + Module["preloadedAudios"][name] = new Audio(); // empty shim + if (onerror) onerror(); + } + if (Browser.hasBlobConstructor) { + try { + var b = new Blob([byteArray], { type: Browser.getMimetype(name) }); + } catch(e) { + return fail(); + } + var url = Browser.URLObject.createObjectURL(b); // XXX we never revoke this! + var audio = new Audio(); + audio.addEventListener('canplaythrough', function() { finish(audio) }, false); // use addEventListener due to chromium bug 124926 + audio.onerror = function audio_onerror(event) { + if (done) return; + console.log('warning: browser could not fully decode audio ' + name + ', trying slower base64 approach'); + function encode64(data) { + var BASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; + var PAD = '='; + var ret = ''; + var leftchar = 0; + var leftbits = 0; + for (var i = 0; i < data.length; i++) { + leftchar = (leftchar << 8) | data[i]; + leftbits += 8; + while (leftbits >= 6) { + var curr = (leftchar >> (leftbits-6)) & 0x3f; + leftbits -= 6; + ret += BASE[curr]; + } + } + if (leftbits == 2) { + ret += BASE[(leftchar&3) << 4]; + ret += PAD + PAD; + } else if (leftbits == 4) { + ret += BASE[(leftchar&0xf) << 2]; + ret += PAD; + } + return ret; + } + audio.src = 'data:audio/x-' + name.substr(-3) + ';base64,' + encode64(byteArray); + finish(audio); // we don't wait for confirmation this worked - but it's worth trying + }; + audio.src = url; + // workaround for chrome bug 124926 - we do not always get oncanplaythrough or onerror + Browser.safeSetTimeout(function() { + finish(audio); // try to use it even though it is not necessarily ready to play + }, 10000); + } else { + return fail(); + } + }; + Module['preloadPlugins'].push(audioPlugin); + // Canvas event setup + var canvas = Module['canvas']; + canvas.requestPointerLock = canvas['requestPointerLock'] || + canvas['mozRequestPointerLock'] || + canvas['webkitRequestPointerLock']; + canvas.exitPointerLock = document['exitPointerLock'] || + document['mozExitPointerLock'] || + document['webkitExitPointerLock'] || + function(){}; // no-op if function does not exist + canvas.exitPointerLock = canvas.exitPointerLock.bind(document); + function pointerLockChange() { + Browser.pointerLock = document['pointerLockElement'] === canvas || + document['mozPointerLockElement'] === canvas || + document['webkitPointerLockElement'] === canvas; + } + document.addEventListener('pointerlockchange', pointerLockChange, false); + document.addEventListener('mozpointerlockchange', pointerLockChange, false); + document.addEventListener('webkitpointerlockchange', pointerLockChange, false); + if (Module['elementPointerLock']) { + canvas.addEventListener("click", function(ev) { + if (!Browser.pointerLock && canvas.requestPointerLock) { + canvas.requestPointerLock(); + ev.preventDefault(); + } + }, false); + } + },createContext:function (canvas, useWebGL, setInModule, webGLContextAttributes) { + var ctx; + try { + if (useWebGL) { + var contextAttributes = { + antialias: false, + alpha: false + }; + if (webGLContextAttributes) { + for (var attribute in webGLContextAttributes) { + contextAttributes[attribute] = webGLContextAttributes[attribute]; + } + } + var errorInfo = '?'; + function onContextCreationError(event) { + errorInfo = event.statusMessage || errorInfo; + } + canvas.addEventListener('webglcontextcreationerror', onContextCreationError, false); + try { + ['experimental-webgl', 'webgl'].some(function(webglId) { + return ctx = canvas.getContext(webglId, contextAttributes); + }); + } finally { + canvas.removeEventListener('webglcontextcreationerror', onContextCreationError, false); + } + } else { + ctx = canvas.getContext('2d'); + } + if (!ctx) throw ':('; + } catch (e) { + Module.print('Could not create canvas: ' + [errorInfo, e]); + return null; + } + if (useWebGL) { + // Set the background of the WebGL canvas to black + canvas.style.backgroundColor = "black"; + // Warn on context loss + canvas.addEventListener('webglcontextlost', function(event) { + alert('WebGL context lost. You will need to reload the page.'); + }, false); + } + if (setInModule) { + Module.ctx = ctx; + Module.useWebGL = useWebGL; + Browser.moduleContextCreatedCallbacks.forEach(function(callback) { callback() }); + Browser.init(); + } + return ctx; + },destroyContext:function (canvas, useWebGL, setInModule) {},fullScreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullScreen:function (lockPointer, resizeCanvas) { + Browser.lockPointer = lockPointer; + Browser.resizeCanvas = resizeCanvas; + if (typeof Browser.lockPointer === 'undefined') Browser.lockPointer = true; + if (typeof Browser.resizeCanvas === 'undefined') Browser.resizeCanvas = false; + var canvas = Module['canvas']; + function fullScreenChange() { + Browser.isFullScreen = false; + if ((document['webkitFullScreenElement'] || document['webkitFullscreenElement'] || + document['mozFullScreenElement'] || document['mozFullscreenElement'] || + document['fullScreenElement'] || document['fullscreenElement']) === canvas) { + canvas.cancelFullScreen = document['cancelFullScreen'] || + document['mozCancelFullScreen'] || + document['webkitCancelFullScreen']; + canvas.cancelFullScreen = canvas.cancelFullScreen.bind(document); + if (Browser.lockPointer) canvas.requestPointerLock(); + Browser.isFullScreen = true; + if (Browser.resizeCanvas) Browser.setFullScreenCanvasSize(); + } else if (Browser.resizeCanvas){ + Browser.setWindowedCanvasSize(); + } + if (Module['onFullScreen']) Module['onFullScreen'](Browser.isFullScreen); + } + if (!Browser.fullScreenHandlersInstalled) { + Browser.fullScreenHandlersInstalled = true; + document.addEventListener('fullscreenchange', fullScreenChange, false); + document.addEventListener('mozfullscreenchange', fullScreenChange, false); + document.addEventListener('webkitfullscreenchange', fullScreenChange, false); + } + canvas.requestFullScreen = canvas['requestFullScreen'] || + canvas['mozRequestFullScreen'] || + (canvas['webkitRequestFullScreen'] ? function() { canvas['webkitRequestFullScreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null); + canvas.requestFullScreen(); + },requestAnimationFrame:function requestAnimationFrame(func) { + if (typeof window === 'undefined') { // Provide fallback to setTimeout if window is undefined (e.g. in Node.js) + setTimeout(func, 1000/60); + } else { + if (!window.requestAnimationFrame) { + window.requestAnimationFrame = window['requestAnimationFrame'] || + window['mozRequestAnimationFrame'] || + window['webkitRequestAnimationFrame'] || + window['msRequestAnimationFrame'] || + window['oRequestAnimationFrame'] || + window['setTimeout']; + } + window.requestAnimationFrame(func); + } + },safeCallback:function (func) { + return function() { + if (!ABORT) return func.apply(null, arguments); + }; + },safeRequestAnimationFrame:function (func) { + return Browser.requestAnimationFrame(function() { + if (!ABORT) func(); + }); + },safeSetTimeout:function (func, timeout) { + return setTimeout(function() { + if (!ABORT) func(); + }, timeout); + },safeSetInterval:function (func, timeout) { + return setInterval(function() { + if (!ABORT) func(); + }, timeout); + },getMimetype:function (name) { + return { + 'jpg': 'image/jpeg', + 'jpeg': 'image/jpeg', + 'png': 'image/png', + 'bmp': 'image/bmp', + 'ogg': 'audio/ogg', + 'wav': 'audio/wav', + 'mp3': 'audio/mpeg' + }[name.substr(name.lastIndexOf('.')+1)]; + },getUserMedia:function (func) { + if(!window.getUserMedia) { + window.getUserMedia = navigator['getUserMedia'] || + navigator['mozGetUserMedia']; + } + window.getUserMedia(func); + },getMovementX:function (event) { + return event['movementX'] || + event['mozMovementX'] || + event['webkitMovementX'] || + 0; + },getMovementY:function (event) { + return event['movementY'] || + event['mozMovementY'] || + event['webkitMovementY'] || + 0; + },mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,calculateMouseEvent:function (event) { // event should be mousemove, mousedown or mouseup + if (Browser.pointerLock) { + // When the pointer is locked, calculate the coordinates + // based on the movement of the mouse. + // Workaround for Firefox bug 764498 + if (event.type != 'mousemove' && + ('mozMovementX' in event)) { + Browser.mouseMovementX = Browser.mouseMovementY = 0; + } else { + Browser.mouseMovementX = Browser.getMovementX(event); + Browser.mouseMovementY = Browser.getMovementY(event); + } + // check if SDL is available + if (typeof SDL != "undefined") { + Browser.mouseX = SDL.mouseX + Browser.mouseMovementX; + Browser.mouseY = SDL.mouseY + Browser.mouseMovementY; + } else { + // just add the mouse delta to the current absolut mouse position + // FIXME: ideally this should be clamped against the canvas size and zero + Browser.mouseX += Browser.mouseMovementX; + Browser.mouseY += Browser.mouseMovementY; + } + } else { + // Otherwise, calculate the movement based on the changes + // in the coordinates. + var rect = Module["canvas"].getBoundingClientRect(); + var x, y; + if (event.type == 'touchstart' || + event.type == 'touchend' || + event.type == 'touchmove') { + var t = event.touches.item(0); + if (t) { + x = t.pageX - (window.scrollX + rect.left); + y = t.pageY - (window.scrollY + rect.top); + } else { + return; + } + } else { + x = event.pageX - (window.scrollX + rect.left); + y = event.pageY - (window.scrollY + rect.top); + } + // the canvas might be CSS-scaled compared to its backbuffer; + // SDL-using content will want mouse coordinates in terms + // of backbuffer units. + var cw = Module["canvas"].width; + var ch = Module["canvas"].height; + x = x * (cw / rect.width); + y = y * (ch / rect.height); + Browser.mouseMovementX = x - Browser.mouseX; + Browser.mouseMovementY = y - Browser.mouseY; + Browser.mouseX = x; + Browser.mouseY = y; + } + },xhrLoad:function (url, onload, onerror) { + var xhr = new XMLHttpRequest(); + xhr.open('GET', url, true); + xhr.responseType = 'arraybuffer'; + xhr.onload = function xhr_onload() { + if (xhr.status == 200 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0 + onload(xhr.response); + } else { + onerror(); + } + }; + xhr.onerror = onerror; + xhr.send(null); + },asyncLoad:function (url, onload, onerror, noRunDep) { + Browser.xhrLoad(url, function(arrayBuffer) { + assert(arrayBuffer, 'Loading data file "' + url + '" failed (no arrayBuffer).'); + onload(new Uint8Array(arrayBuffer)); + if (!noRunDep) removeRunDependency('al ' + url); + }, function(event) { + if (onerror) { + onerror(); + } else { + throw 'Loading data file "' + url + '" failed.'; + } + }); + if (!noRunDep) addRunDependency('al ' + url); + },resizeListeners:[],updateResizeListeners:function () { + var canvas = Module['canvas']; + Browser.resizeListeners.forEach(function(listener) { + listener(canvas.width, canvas.height); + }); + },setCanvasSize:function (width, height, noUpdates) { + var canvas = Module['canvas']; + canvas.width = width; + canvas.height = height; + if (!noUpdates) Browser.updateResizeListeners(); + },windowedWidth:0,windowedHeight:0,setFullScreenCanvasSize:function () { + var canvas = Module['canvas']; + this.windowedWidth = canvas.width; + this.windowedHeight = canvas.height; + canvas.width = screen.width; + canvas.height = screen.height; + // check if SDL is available + if (typeof SDL != "undefined") { + var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]; + flags = flags | 0x00800000; // set SDL_FULLSCREEN flag + HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags + } + Browser.updateResizeListeners(); + },setWindowedCanvasSize:function () { + var canvas = Module['canvas']; + canvas.width = this.windowedWidth; + canvas.height = this.windowedHeight; + // check if SDL is available + if (typeof SDL != "undefined") { + var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]; + flags = flags & ~0x00800000; // clear SDL_FULLSCREEN flag + HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags + } + Browser.updateResizeListeners(); + }}; +FS.staticInit();__ATINIT__.unshift({ func: function() { if (!Module["noFSInit"] && !FS.init.initialized) FS.init() } });__ATMAIN__.push({ func: function() { FS.ignorePermissions = false } });__ATEXIT__.push({ func: function() { FS.quit() } });Module["FS_createFolder"] = FS.createFolder;Module["FS_createPath"] = FS.createPath;Module["FS_createDataFile"] = FS.createDataFile;Module["FS_createPreloadedFile"] = FS.createPreloadedFile;Module["FS_createLazyFile"] = FS.createLazyFile;Module["FS_createLink"] = FS.createLink;Module["FS_createDevice"] = FS.createDevice; +___errno_state = Runtime.staticAlloc(4); HEAP32[((___errno_state)>>2)]=0; +__ATINIT__.unshift({ func: function() { TTY.init() } });__ATEXIT__.push({ func: function() { TTY.shutdown() } });TTY.utf8 = new Runtime.UTF8Processor(); +if (ENVIRONMENT_IS_NODE) { var fs = require("fs"); NODEFS.staticInit(); } +__ATINIT__.push({ func: function() { SOCKFS.root = FS.mount(SOCKFS, {}, null); } }); +_fgetc.ret = allocate([0], "i8", ALLOC_STATIC); +_fputc.ret = allocate([0], "i8", ALLOC_STATIC); +Module["requestFullScreen"] = function Module_requestFullScreen(lockPointer, resizeCanvas) { Browser.requestFullScreen(lockPointer, resizeCanvas) }; + Module["requestAnimationFrame"] = function Module_requestAnimationFrame(func) { Browser.requestAnimationFrame(func) }; + Module["setCanvasSize"] = function Module_setCanvasSize(width, height, noUpdates) { Browser.setCanvasSize(width, height, noUpdates) }; + Module["pauseMainLoop"] = function Module_pauseMainLoop() { Browser.mainLoop.pause() }; + Module["resumeMainLoop"] = function Module_resumeMainLoop() { Browser.mainLoop.resume() }; + Module["getUserMedia"] = function Module_getUserMedia() { Browser.getUserMedia() } +STACK_BASE = STACKTOP = Runtime.alignMemory(STATICTOP); +staticSealed = true; // seal the static portion of memory +STACK_MAX = STACK_BASE + 5242880; +DYNAMIC_BASE = DYNAMICTOP = Runtime.alignMemory(STACK_MAX); +assert(DYNAMIC_BASE < TOTAL_MEMORY); // Stack must fit in TOTAL_MEMORY; allocations from here on may enlarge TOTAL_MEMORY +var Math_min = Math.min; +function invoke_ii(index,a1) { + try { + return Module["dynCall_ii"](index,a1); + } catch(e) { + if (typeof e !== 'number' && e !== 'longjmp') throw e; + asm["setThrew"](1, 0); + } +} +function invoke_v(index) { + try { + Module["dynCall_v"](index); + } catch(e) { + if (typeof e !== 'number' && e !== 'longjmp') throw e; + asm["setThrew"](1, 0); + } +} +function invoke_iii(index,a1,a2) { + try { + return Module["dynCall_iii"](index,a1,a2); + } catch(e) { + if (typeof e !== 'number' && e !== 'longjmp') throw e; + asm["setThrew"](1, 0); + } +} +function invoke_vi(index,a1) { + try { + Module["dynCall_vi"](index,a1); + } catch(e) { + if (typeof e !== 'number' && e !== 'longjmp') throw e; + asm["setThrew"](1, 0); + } +} +function asmPrintInt(x, y) { + Module.print('int ' + x + ',' + y);// + ' ' + new Error().stack); +} +function asmPrintFloat(x, y) { + Module.print('float ' + x + ',' + y);// + ' ' + new Error().stack); +} +// EMSCRIPTEN_START_ASM +var asm=(function(global,env,buffer){"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.STACKTOP|0;var j=env.STACK_MAX|0;var k=env.tempDoublePtr|0;var l=env.ABORT|0;var m=env._stdin|0;var n=env._stderr|0;var o=env._stdout|0;var p=+env.NaN;var q=+env.Infinity;var r=0;var s=0;var t=0;var u=0;var v=0,w=0,x=0,y=0,z=0.0,A=0,B=0,C=0,D=0.0;var E=0;var F=0;var G=0;var H=0;var I=0;var J=0;var K=0;var L=0;var M=0;var N=0;var O=global.Math.floor;var P=global.Math.abs;var Q=global.Math.sqrt;var R=global.Math.pow;var S=global.Math.cos;var T=global.Math.sin;var U=global.Math.tan;var V=global.Math.acos;var W=global.Math.asin;var X=global.Math.atan;var Y=global.Math.atan2;var Z=global.Math.exp;var _=global.Math.log;var $=global.Math.ceil;var aa=global.Math.imul;var ab=env.abort;var ac=env.assert;var ad=env.asmPrintInt;var ae=env.asmPrintFloat;var af=env.min;var ag=env.invoke_ii;var ah=env.invoke_v;var ai=env.invoke_iii;var aj=env.invoke_vi;var ak=env._strncmp;var al=env._lseek;var am=env._ferror;var an=env._snprintf;var ao=env._fgetc;var ap=env._pclose;var aq=env._fclose;var ar=env._freopen;var as=env._isdigit;var at=env._strncat;var au=env._fprintf;var av=env._toupper;var aw=env._close;var ax=env._fgets;var ay=env._pread;var az=env._fflush;var aA=env._fopen;var aB=env._open;var aC=env._strchr;var aD=env._fputc;var aE=env.___assert_fail;var aF=env.___setErrNo;var aG=env._feof;var aH=env._fseek;var aI=env._qsort;var aJ=env._send;var aK=env._write;var aL=env._fputs;var aM=env._ftell;var aN=env._abs;var aO=env._exit;var aP=env._sprintf;var aQ=env._strrchr;var aR=env._strdup;var aS=env._isspace;var aT=env._sysconf;var aU=env._fcntl;var aV=env._strtol;var aW=env._fread;var aX=env._isalpha;var aY=env._dup2;var aZ=env._read;var a_=env.__reallyNegative;var a$=env._time;var a0=env.__formatString;var a1=env._gettimeofday;var a2=env._atoi;var a3=env._recv;var a4=env._fileno;var a5=env._pwrite;var a6=env._strstr;var a7=env._sbrk;var a8=env._fsync;var a9=env.___errno_location;var ba=env._popen;var bb=env._abort;var bc=env.__parseInt;var bd=env._fwrite;var be=env._islower;var bf=env.__exit;var bg=env._isupper;var bh=env._strcmp;var bi=env._setvbuf;var bj=0.0; +// EMSCRIPTEN_START_FUNCS +function df(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0;b=i;i=i+40|0;d=b|0;e=a;a=c[e>>2]|0;f=c[e+4>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;j=c[a+8>>2]|0;k=c[a+12>>2]|0;l=h-g+1|0;m=k-j+1|0;n=d;eC(n|0,0,36)|0;n=c[e+8>>2]|0;o=57344;p=e+44|0;q=0;if((j<<1|0)<=((c[a+56>>2]<<1)-((c[a+56>>2]|0)-(c[a+52>>2]|0))|0)){q=1}r=0;if((k<<1|0)>=((c[a+60>>2]<<1)+((c[a+64>>2]|0)-(c[a+60>>2]|0))|0)){r=1}do{if((j|0)<(c[a+56>>2]|0)){if((k|0)<=(c[a+60>>2]|0)){break}if((k<<1|0)>=((c[a+60>>2]|0)+(c[a+64>>2]|0)|0)){break}if((j-(k-(c[a+60>>2]|0))<<1|0)<=((c[a+56>>2]<<1)-((c[a+56>>2]|0)-(c[a+52>>2]|0))|0)){q=1}}}while(0);do{if((o|0)==57344){if((q|0)==0){break}s=100;t=100;if((l|0)>3){u=(m|0)>6}else{u=0}L3988:do{if(u){if((c[e+108>>2]|0)>2){break}do{if((dv(g,h,j+((m|0)/4|0)|0,j+((m|0)/4|0)|0,c[a+68>>2]|0,n)|0)!=2){if((dv(g,h,j+((m|0)/4|0)+1|0,j+((m|0)/4|0)+1|0,c[a+68>>2]|0,n)|0)==2){break}break L3988}}while(0);v=((m|0)/16|0)+1|0;w=j+((m|0)/8|0)|0;while(1){if((w|0)<(k-((m|0)/4|0)|0)){x=(v|0)>0}else{x=0}if(!x){break}if((w|0)<(k-((m*6|0|0)/16|0)|0)){if((dv(g,h,w,w,c[a+68>>2]|0,n)|0)!=2){v=v-1|0}}else{if((dv(g,h,w,w,c[a+68>>2]|0,n)|0)<2){v=v-1|0}}if(((du(g,g+((l|0)/2|0)|0,w,w,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==0){v=v-1|0}if((w|0)<(k-((m*5|0|0)/16|0)|0)){if(((du(h-((l|0)/2|0)|0,h,w,w,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==0){v=v-1|0}}w=w+1|0}if((v|0)<=0){break}w=j+((m|0)/3|0)|0;while(1){if((w|0)>=(k-((m|0)/3|0)|0)){break}v=dC(c[a+68>>2]|0,h,w,l,n,0,4)|0;if((v|0)>=((l|0)/8|0|0)){y=2947;break}v=v+(dC(c[a+68>>2]|0,h-v|0,w,l,n,1,4)|0)|0;if((v|0)>=((l|0)/2|0|0)){y=2949;break}w=w+1|0}if((w|0)>=(k-((m|0)/3|0)|0)){break}w=j+((m|0)/5|0)|0;while(1){if((w|0)>=(j+((m|0)/3|0)|0)){break}if(((du(h-((l|0)/6|0)|0,h,w,w,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){y=2957;break}w=w+1|0}if((w|0)>=(j+((m|0)/3|0)|0)){break}w=j+((m|0)/2|0)|0;while(1){if((w|0)>=(k|0)){break}if(((du(h-((l|0)/6|0)|0,h,w,w,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){y=2965;break}w=w+1|0}if((w|0)>=(k|0)){break}w=k-((m|0)/3|0)|0;while(1){if((w|0)>=(k-((m|0)/8|0)|0)){break}v=dC(c[a+68>>2]|0,h,w,l,n,0,4)|0;if((v|0)>((l|0)/4|0|0)){if(((du(h-((l|0)/8|0)|0,h-((l|0)/8|0)|0,w,k,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){y=2974;break}}w=w+1|0}if((w|0)<(k-((m|0)/8|0)|0)){break}if((c[a+60>>2]|0)==0){y=2981}else{if((k<<1|0)<((c[a+60>>2]|0)+(c[a+64>>2]|0)|0)){y=2981}}if((y|0)==2981){do{if((dC(c[a+68>>2]|0,h,k,l,n,0,4)|0)==0){if((dC(c[a+68>>2]|0,h,k-((m|0)/4|0)|0,l,n,0,4)|0)<=((l|0)/8|0|0)){break}break L3988}}while(0)}z=g+((l|0)/4|0)|0;while(1){if((z|0)>=(h-((l|0)/4|0)|0)){break}if((dv(z,z,j,k,c[a+68>>2]|0,n)|0)==3){y=2988;break}z=z+1|0}if((z|0)>=(h-((l|0)/4|0)|0)){break}v=(dC(f,(l|0)/2|0,m-1|0,m,n,0,1)|0)+((m|0)/64|0)|0;z=(l|0)/5|0;while(1){if((z|0)>=((l|0)/2|0|0)){break}if((dC(f,z,m-1|0,m,n,0,1)|0)>(v|0)){y=2996;break}z=z+1|0}if((z|0)==((l|0)/2|0|0)){break}z=g+(dC(f,0,(m|0)/4|0,l,n,0,3)|0)|0;while(1){if((z|0)>=(h-((l|0)/3|0)|0)){break}if(((du(z,z,j,j+((m|0)/4|0)|0,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==0){y=3004;break}z=z+1|0}if((z|0)<(h-((l|0)/3|0)|0)){break}do{if((r|0)==0){if((c[e+108>>2]|0)!=0){break L3988}else{break}}}while(0);o=223;dy(a,o,98)|0}}while(0)}}while(0);s=100;t=100;if((l|0)>2){A=(m|0)>2}else{A=0}L4129:do{if(A){if((c[e+108>>2]|0)>1){break}r=((l+1|0)/3|0)-1|0;x=((m+1|0)/3|0)-1|0;if(((du(g,g+r|0,j,j+x|0,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){break}if(((du(g,g+r|0,k-x|0,k,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){break}if(((du(h-((l+1|0)/4|0)|0,h,j,j+x|0,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){break}do{if(((du(h-r|0,h,k-x|0,k,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){if(((du(h-r|0,h,k-((m+2|0)/4|0)|0,k,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){break L4129}else{t=(t*99|0|0)/100|0;break}}}while(0);v=0;w=j+x|0;while(1){if((w|0)>(k-x|0)){break}if(((du(g+((l|0)/9|0)|0,h-((l|0)/9|0)|0,w,w,c[a+68>>2]|0,n,2)|0)<<24>>24|0)==0){y=3034;break}w=w+1|0}if((y|0)==3034){v=w}if((l*3|0|0)<(m<<1|0)){t=(t*99|0|0)/100|0}if((v|0)==0){break}B=43;dy(a,B,t)|0;if((t|0)<100){break}C=B;D=C;i=b;return D|0}}while(0);s=99;t=99;if((l|0)>3){E=(m|0)>6}else{E=0}L4172:do{if(E){if((c[e+108>>2]|0)!=2){break}if(((du(g,g+((l|0)/5|0)|0,j,j+((m|0)/18|0)|0,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){break}if(((du(g,g+((l|0)/9|0)|0,k-((m|0)/23|0)|0,k,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){break}if(((du(h-((l|0)/9|0)|0,h,j,j+((m|0)/18|0)|0,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){break}if(((du(h-((l|0)/5|0)|0,h,k-((m|0)/23|0)|0,k,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){break}if(((du(g,g+((l|0)/3|0)|0,j+((m|0)/3|0)|0,j+((m|0)/2|0)|0,c[a+68>>2]|0,n,1)|0)<<24>>24|0)!=1){break}if(((du(h-((l|0)/3|0)|0,h,k-((m|0)/2|0)|0,k-((m|0)/3|0)|0,c[a+68>>2]|0,n,1)|0)<<24>>24|0)!=1){break}F=g+(dC(c[a+68>>2]|0,g,j,l,n,0,3)|0)|0;do{if((F|0)>=(g+((l|0)/3|0)|0)){if((F|0)>(h-((l|0)/5|0)|0)){break}G=g+(dC(c[a+68>>2]|0,g,k,l,n,0,3)|0)|0;do{if((G|0)>=(g+((l|0)/5|0)|0)){if((G|0)>(F|0)){break}t=(aa(dt(F,j,G,k,c[a+68>>2]|0,n,100)|0,t)|0)/100|0;if((c[e+128>>2]|0)<(c[e+156>>2]|0)){H=0}else{H=1}if((c[e+112+((0^H)*28|0)+24>>2]|0)>(c[e+112+((1^H)*28|0)+16>>2]|0)){break L4172}if((c[e+112+((0^H)*28|0)+12>>2]|0)>((l+1|0)/3|0|0)){break L4172}if((c[e+112+((0^H)*28|0)+20>>2]|0)>(((l|0)/2|0)+((l|0)/4|0)|0)){break L4172}if((c[e+112+((0^H)*28|0)+24>>2]|0)>=(((m|0)/2|0)+((m|0)/8|0)|0)){break L4172}if((c[e+112+((0^H)*28|0)+16>>2]|0)>(((m|0)/2|0)-((m|0)/8|0)|0)){break L4172}if((c[e+112+((1^H)*28|0)+12>>2]|0)<=(((l|0)/2|0)-((l|0)/4|0)|0)){break L4172}if((c[e+112+((1^H)*28|0)+20>>2]|0)<(((l|0)/2|0)+((l|0)/4|0)|0)){break L4172}if((c[e+112+((1^H)*28|0)+24>>2]|0)<(((m|0)/2|0)+((m|0)/8|0)|0)){break L4172}if((c[e+112+((1^H)*28|0)+16>>2]|0)<=(((m|0)/2|0)-((m|0)/8|0)|0)){break L4172}if((t|0)<95){break L4172}B=36;A=a;x=B;r=t;dy(A,x,r)|0;if((t|0)<100){break L4172}C=B;D=C;i=b;return D|0}}while(0);break L4172}}while(0)}}while(0);s=99;t=99;if((l|0)>3){I=(m|0)>6}else{I=0}L4246:do{if(I){if((c[a+196>>2]|0)!=1){break}if(((du(g,g+((l|0)/9|0)|0,k-((m|0)/23|0)|0,k,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){break}if(((du(h-((l|0)/9|0)|0,h,j,j+((m|0)/18|0)|0,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){break}if(((du(h-((l|0)/5|0)|0,h,k-((m|0)/23|0)|0,k,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){break}if(((du(g,g+((l|0)/3|0)|0,j+((m|0)/3|0)|0,j+((m|0)/2|0)|0,c[a+68>>2]|0,n,1)|0)<<24>>24|0)!=1){break}if(((du(h-((l|0)/3|0)|0,h,k-((m|0)/2|0)|0,k-((m|0)/3|0)|0,c[a+68>>2]|0,n,1)|0)<<24>>24|0)!=1){break}F=g+(dC(c[a+68>>2]|0,g,j,l,n,0,3)|0)|0;do{if((F|0)>=(g+((l|0)/3|0)|0)){if((F|0)>(h-((l|0)/5|0)|0)){break}G=g+(dC(c[a+68>>2]|0,g,k,l,n,0,3)|0)|0;do{if((G|0)>=(g+((l|0)/5|0)|0)){if((G|0)>(F|0)){break}F=cI(a,c[p+12>>2]|0,c[p+28>>2]|0,h+(l<<1)|0,(j+k|0)/2|0)|0;G=cI(a,c[p+44>>2]|0,c[p+60>>2]|0,g-(l<<1)|0,(j+k|0)/2|0)|0;do{if(((c[a+296+(F<<3)>>2]|0)-g|0)>=((l*3|0|0)/4|0|0)){if(((c[a+296+(G<<3)>>2]|0)-g|0)>((l|0)/4|0|0)){break}if(((c[a+296+(F<<3)+4>>2]|0)-j|0)<((c[a+296+(G<<3)+4>>2]|0)-j|0)){break}if((t|0)<95){break L4246}B=36;H=a;E=B;r=t;dy(H,E,r)|0;if((t|0)<100){break L4246}C=B;D=C;i=b;return D|0}}while(0);break L4246}}while(0);break L4246}}while(0)}}while(0);s=99;t=99;if((l|0)>3){J=(m|0)>4}else{J=0}L4291:do{if(J){if((c[e+108>>2]|0)!=2){break}if(((du(h-((l|0)/9|0)|0,h,j,j+((m|0)/4|0)|0,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){break}if((dC(f,(l|0)/2|0,0,m,n,0,2)|0)>((m|0)/2|0|0)){break}F=dC(f,0,(m|0)/8|0,l,n,0,3)|0;if((F|0)>((l|0)/2|0|0)){break}v=dC(f,0,(m|0)/4|0,l,n,0,3)|0;if((F|0)>((l|0)/2|0|0)){break}if((v|0)<(F|0)){F=v}p=dC(f,0,m-((m|0)/4|0)|0,l,n,0,3)|0;if((p|0)>((l|0)/2|0|0)){break}v=dC(f,0,m-((m|0)/4|0)-1|0,l,n,0,3)|0;if((p|0)>((l|0)/2|0|0)){break}if((v|0)<(p|0)){p=v}if((p|0)>(F|0)){break}G=0;w=(m|0)/4|0;while(1){if((w|0)>(((m|0)/2|0)+1|0)){break}v=dC(f,0,w,l,n,0,3)|0;if((v|0)>(G|0)){G=v}w=w+1|0}if(((G<<1)-F-p|0)<1){break}if((dH(g,h-((l|0)/4|0)|0,j,k,c[a+68>>2]|0,n,0)|0)!=2){break}if((dv(l-1|0,l-1|0,(m|0)/4|0,m-1|0,f,n)|0)<1){break}z=l-1|0;while(1){if((z|0)<((l|0)/2|0|0)){break}if((dv(z,z,(m|0)/4|0,m-1|0,f,n)|0)>1){y=3164;break}z=z-1|0}do{if((z|0)<=((l*3|0|0)/4|0|0)){if((z|0)>=(l-2|0)){break}break L4291}}while(0);if((dv(0,l-1|0,m-1-((m|0)/4|0)|0,m-1-((m|0)/4|0)|0,f,n)|0)>3){if((m|0)>15){break}t=(t*96|0|0)/100|0}if((q|0)==0){t=(t*98|0|0)/100|0}o=38;dy(a,o,t)|0;if((t|0)<100){break}C=o;D=C;i=b;return D|0}}while(0);if((o|0)==57344){s=100;t=100;if((l|0)>7){K=(m|0)>7}else{K=0}do{if(K){if((c[e+108>>2]|0)>2){break}if((dv(0,l-1|0,(m|0)/4|0,(m|0)/4|0,f,n)|0)!=3){break}if((dv(0,l-1|0,(m|0)/2|0,(m|0)/2|0,f,n)|0)!=4){break}if((dv((l|0)/2|0,l-1|0,(m|0)/2|0,(m|0)/2|0,f,n)|0)!=2){break}if((dv(0,l-1|0,(m*3|0|0)/4|0,(m*3|0|0)/4|0,f,n)|0)!=2){break}if((dv(0,l-1|0,m-1|0,m-1|0,f,n)|0)!=1){break}if((dv(0,0,0,m-1|0,f,n)|0)!=1){break}if((dv((l|0)/3|0,(l|0)/3|0,0,m-1|0,f,n)|0)!=4){break}if((dv((l*13|0|0)/16|0,(l*13|0|0)/16|0,0,(m|0)/8|0,f,n)|0)!=0){break}if((dv((l<<2|0)/8|0,(l<<2|0)/8|0,m-((m|0)/4|0)|0,m-1|0,f,n)|0)!=1){break}if((dv((l*3|0|0)/8|0,(l*3|0|0)/8|0,m-((m|0)/4|0)|0,m-1|0,f,n)|0)!=1){break}if((dv((l*5|0|0)/8|0,(l*5|0|0)/8|0,m-((m|0)/4|0)|0,m-1|0,f,n)|0)!=1){break}if((dH(g,(g+h|0)/2|0,j,k,c[a+68>>2]|0,n,0)|0)!=1){break}if((dH(g+((l|0)/8|0)|0,h-((l|0)/4|0)|0,j,k-((m|0)/4|0)|0,c[a+68>>2]|0,n,0)|0)!=1){break}B=38;J=a;p=B;I=t;dy(J,p,I)|0;if((t|0)<100){break}C=B;D=C;i=b;return D|0}}while(0)}s=98;t=98;if((l|0)>2){L=(m|0)>5}else{L=0}L4427:do{if(L){if((c[e+108>>2]|0)>1){break}if((dv(g,h,j,j,c[a+68>>2]|0,n)|0)!=1){break}if((dv(g,h,k,k,c[a+68>>2]|0,n)|0)>1){break}w=j;while(1){if((w|0)>=(k|0)){break}if(((du(g,h,w,w,c[a+68>>2]|0,n,1)|0)<<24>>24|0)!=1){y=3230;break}w=w+1|0}if((w<<1|0)<(j+k|0)){break}F=k;do{if((w|0)==(k|0)){if((c[a+64>>2]|0)==0){break}if(((du(g+1|0,h-1|0,k+1|0,c[a+64>>2]|0,c[a+68>>2]|0,n,1)|0)<<24>>24|0)!=1){break L4427}F=c[a+64>>2]|0;while(1){if((F|0)<=(k|0)){break}if(((du(g,h,F,F,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){y=3242;break}F=F-1|0}}}while(0);w=w-1|0;v=w-j+1|0;w=0;while(1){if((w|0)>=((m|0)/2|0|0)){break}if((dv(g,h,j+w|0,j+w|0,c[a+68>>2]|0,n)|0)==2){y=3249;break}w=w+1|0}if((w|0)==((m|0)/2|0|0)){break}if((c[e+108>>2]|0)>0){break}w=j+((m|0)/2|0)|0;while(1){if((w|0)>(F|0)){break}if(((du(g,h,w,w,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==0){y=3259;break}w=w+1|0}if((w|0)==(F|0)){break}while(1){if((w|0)>(F|0)){break}if(((du(g,h,w,w,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){y=3267;break}w=w+1|0}if(((du(g,h,w,w,c[a+68>>2]|0,n,1)|0)<<24>>24|0)!=1){break}if(((du(g+((l*7|0|0)/8|0)|0,h,w,F,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){break}o=63;dy(a,o,98)|0;C=o;D=C;i=b;return D|0}}while(0);s=99;t=99;if((m|0)>4){M=(m|0)>(l<<1|0)}else{M=0}L4509:do{if(M){if((c[e+108>>2]|0)>1){break}if((dv(g,h,j,j,c[a+68>>2]|0,n)|0)!=1){break}if((dv(g,h,j+((m|0)/2|0)|0,j+((m|0)/2|0)|0,c[a+68>>2]|0,n)|0)!=1){break}w=j;while(1){if((w|0)>=(k|0)){break}if(((du(g,h,w,w,c[a+68>>2]|0,n,1)|0)<<24>>24|0)!=1){y=3288;break}w=w+1|0}if((w<<1|0)<(j+k|0)){break}do{if((w|0)==(k|0)){if((w|0)<=((c[a+60>>2]|0)-((m|0)/8|0)|0)){break}t=(t*97|0|0)/100|0}}while(0);F=k;do{if((w|0)==(k|0)){if((c[a+64>>2]|0)==0){break}if((l|0)>2){if(((du(g+1|0,h-1|0,k+1|0,c[a+64>>2]|0,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){y=3302}else{y=3300}}else{y=3300}do{if((y|0)==3300){if((l|0)>=3){break}if(((du(g,h,k+1|0,c[a+64>>2]|0,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){y=3302}}}while(0);if((y|0)==3302){F=c[a+64>>2]|0;while(1){if((F|0)<=(k|0)){break}if(((du(g,h,F,F,c[a+68>>2]|0,n,1)|0)<<24>>24|0)==1){y=3305;break}F=F-1|0}}}}while(0);G=F;F=0;w=j;while(1){if((w|0)>(G|0)){break}v=dv(g,h,w,w,c[a+68>>2]|0,n)|0;if((v|0)>1){y=3313;break}do{if((v|0)==0){if((F|0)!=0){break}F=w}}while(0);w=w+1|0}do{if((w|0)>(G|0)){if((F|0)==0){break}if((F|0)<(j+((m|0)/2|0)|0)){break}L=dC(f,l-1|0,(m|0)/8|0,l,n,0,4)|0;if((L-(dC(f,l-1|0,0,l,n,0,4)|0)|0)>(((l|0)/4|0)+1|0)){break L4509}if((q|0)==0){t=(t*96|0|0)/100|0}L=a;B=t;dy(L,33,B)|0;break L4509}}while(0)}}while(0);s=99;t=99;if((l|0)>2){N=(m|0)>4}else{N=0}L4583:do{if(N){if((c[e+108>>2]|0)>0){break}do{if((dv(0,l-1|0,0,m-1|0,f,n)|0)!=1){if((dv(0,l-1|0,1,m-2|0,f,n)|0)==1){break}break L4583}}while(0);do{if((dv(0,l-1|0,m-1|0,m-1|0,f,n)|0)!=2){if((dv(0,l-1|0,m-2|0,m-2|0,f,n)|0)==2){break}break L4583}}while(0);z=(l|0)/2|0;w=((m*6|0)+8|0)/16|0;F=dt(z,w,z,0,f,n,100)|0;v=F;c[d>>2]=F;if((v|0)<95){break}do{if((l|0)<8){if(((du(z,z,0,w,f,n,2)|0)<<24>>24|0)==2){break L4583}else{break}}}while(0);F=dt(0,w,l-1|0,w,f,n,100)|0;v=F;c[d+4>>2]=F;if((v|0)<95){break}if((m|0)<8){do{if(((du(0,l-1|0,w,w,f,n,2)|0)<<24>>24|0)==2){if(((du(0,l-1|0,w+1|0,w+1|0,f,n,2)|0)<<24>>24|0)!=2){break}break L4583}}while(0)}v=dt(z,w,((l*5|0)+4|0)/8|0,m-1|0,f,n,100)|0;O=dt(z,w,((l*6|0)+4|0)/8|0,m-1|0,f,n,100)|0;if((O|0)>(v|0)){F=O;v=F;c[d+8>>2]=F}if((v|0)<95){break}F=dt(z,w,((l<<1)+4|0)/8|0,m-1|0,f,n,100)|0;v=F;c[d+12>>2]=F;if((v|0)<95){break}F=(du(z,z,m-1-((m|0)/8|0)|0,m-1|0,f,n,1)|0)<<24>>24;v=F;c[d+16>>2]=F;if((v|0)==1){break}F=dt((l|0)/4|0,(m|0)/4|0,0,0,f,n,101)|0;v=F;c[d+20>>2]=F;if((v|0)<95){break}F=dt(l-1-((l|0)/4|0)|0,(m|0)/4|0,l-1|0,0,f,n,101)|0;v=F;c[d+24>>2]=F;if((v|0)<95){break}else{F=a;G=t;dy(F,42,G)|0;break}}}while(0);s=100;t=100;if((l|0)>4){Q=(m|0)>4}else{Q=0}L4638:do{if(Q){if((c[e+108>>2]|0)>0){break}do{if((dv(0,l-1|0,(m|0)/8|0,(m|0)/8|0,f,n)|0)!=3){if((dv(0,l-1|0,((m|0)/8|0)+1|0,((m|0)/8|0)+1|0,f,n)|0)==3){break}break L4638}}while(0);if((dv(0,l-1|0,m-2-((m|0)/8|0)|0,m-2-((m|0)/8|0)|0,f,n)|0)!=3){break}if((dv(0,0,0,m-1|0,f,n)|0)!=2){break}if((dv(l-1|0,l-1|0,0,m-1|0,f,n)|0)!=2){break}if((dv(0,l-1|0,(m|0)/2|0,(m|0)/2|0,f,n)|0)!=1){break}if((dv(0,(l|0)/8|0,(m|0)/2|0,(m|0)/2|0,f,n)|0)!=0){break}if((dv(l-1-((l|0)/8|0)|0,l-1|0,(m|0)/2|0,(m|0)/2|0,f,n)|0)!=0){break}do{if((l|0)>5){N=dt(0,m-2-((m|0)/8|0)|0,l-1|0,(m|0)/8|0,f,n,100)|0;v=N;c[d>>2]=N;if((v|0)<95){break L4638}N=dt(0,(m|0)/8|0,l-1|0,m-2-((m|0)/8|0)|0,f,n,100)|0;v=N;c[d+4>>2]=N;if((v|0)<95){break L4638}N=dt((l|0)/2|0,0,(l|0)/2|0,m-1|0,f,n,100)|0;v=N;c[d+8>>2]=N;if((v|0)<95){break L4638}else{break}}}while(0);N=a;dy(N,42,99)|0}}while(0);s=100;t=100;if((l|0)>3){R=(m|0)>4}else{R=0}L4682:do{if(R){if((c[e+108>>2]|0)>0){break}do{if((dv((l|0)/8|0,(l|0)/8|0,0,m-1|0,f,n)|0)!=3){if((dv(((l|0)/8|0)+1|0,((l|0)/8|0)+1|0,0,m-1|0,f,n)|0)==3){break}break L4682}}while(0);do{if((dv(l-1-((l|0)/8|0)|0,l-1-((l|0)/8|0)|0,0,m-1|0,f,n)|0)!=3){if((dv(l-2-((l|0)/8|0)|0,l-2-((l|0)/8|0)|0,0,m-1|0,f,n)|0)==3){break}break L4682}}while(0);if((dv(0,l-1|0,0,0,f,n)|0)!=2){break}if((dv(0,l-1|0,m-1|0,m-1|0,f,n)|0)!=2){break}if((dv((l|0)/2|0,(l|0)/2|0,0,m-1|0,f,n)|0)!=1){break}if((dv((l|0)/2|0,(l|0)/2|0,0,(m|0)/8|0,f,n)|0)!=0){break}if((dv((l|0)/2|0,(l|0)/2|0,m-1-((m|0)/8|0)|0,m-1|0,f,n)|0)!=0){break}do{if((l|0)>5){Q=dt(l-2-((l|0)/8|0)|0,0,(l|0)/8|0,m-1|0,f,n,100)|0;v=Q;c[d>>2]=Q;if((v|0)<95){break L4682}Q=dt((l|0)/8|0,0,l-2-((l|0)/8|0)|0,m-1|0,f,n,100)|0;v=Q;c[d+4>>2]=Q;if((v|0)<95){break L4682}Q=dt(0,(m|0)/2|0,l-1|0,(m|0)/2|0,f,n,100)|0;v=Q;c[d+8>>2]=Q;if((v|0)<95){break L4682}else{break}}}while(0);Q=a;dy(Q,42,98)|0}}while(0);if((o|0)==57344){s=99;t=99;if((l|0)>4){S=(m|0)>7}else{S=0}L4729:do{if(S){if((c[e+108>>2]|0)>3){break}do{if((c[e+108>>2]|0)==1){if((c[e+128>>2]|0)>(j+((m|0)/8|0)|0)){break}if((c[e+136>>2]|0)<(k-((m|0)/8|0)|0)){break}break L4729}}while(0);if((dC(f,0,(m|0)/2|0,l,n,0,3)|0)>((l|0)/4|0|0)){break}if((dC(f,l-1|0,(m|0)/2|0,l,n,0,4)|0)>((l|0)/4|0|0)){break}if((dC(f,(l|0)/2|0,m-1|0,m,n,0,1)|0)>((l|0)/8|0|0)){break}if((dC(f,(l|0)/2|0,0,m,n,0,2)|0)>((l|0)/8|0|0)){break}z=((l*7|0)+3|0)/16|0;w=(m|0)/2|0;v=dv(0,l-1|0,w,w,f,n)|0;O=dC(f,0,w,l,n,0,3)|0;O=dC(f,O,w,l,n,1,3)|0;do{if((l|0)>=(O<<2|0)){if((v|0)>=3){if((v|0)<=4){break}}break L4729}}while(0);do{if((l|0)>=(O*5|0|0)){if((v|0)==4){break}t=(t*98|0|0)/100|0}}while(0);v=dv(z,z,0,m-1|0,f,n)|0;if((v|0)<2){break}if((v|0)!=4){O=dv(z+1|0,z+1|0,0,m-1|0,f,n)|0;if((P(4-O|0)|0)<(P(v-4|0)|0)){v=O}}if((v|0)!=4){O=dv(z+2|0,z+2|0,0,m-1|0,f,n)|0;if((P(4-O|0)|0)<(P(v-4|0)|0)){v=O}}do{if((v|0)>=3){if((v|0)>4){break}if((v|0)!=4){t=(t*97|0|0)/100|0}if((dv(0,z,w,w,f,n)|0)!=2){break L4729}do{if((dv(z,l-1|0,w,w,f,n)|0)!=2){if((l|0)<(O<<2|0)){break}break L4729}}while(0);if((dv(z,z,0,w,f,n)|0)!=2){break L4729}if((dv(z,z,w,m-1|0,f,n)|0)!=2){break L4729}do{if((l|0)>7){if((c[e+108>>2]|0)!=1){break L4729}if((dH(g+((l|0)/8|0)|0,h-((l*3|0|0)/16|0)|0,j+((m|0)/8|0)|0,k-((m|0)/8|0)|0,c[a+68>>2]|0,n,0)|0)!=1){break L4729}else{break}}}while(0);d=a;R=t;dy(d,64,R)|0;break L4729}}while(0)}}while(0)}do{if((o|0)==57344){if((q|0)==0){break}s=100;t=100;if((l|0)>4){T=(m|0)>15}else{T=0}do{if(T){if((c[e+108>>2]|0)>3){break}if(((du(0,(l|0)/2|0,(m*3|0|0)/4|0,(m*3|0|0)/4|0,f,n,1)|0)<<24>>24|0)==1){break}if(((du((l*3|0|0)/4|0,l-1|0,(m*3|0|0)/4|0,(m*3|0|0)/4|0,f,n,1)|0)<<24>>24|0)==0){break}if(((du(0,(l|0)/4|0,(m|0)/4|0,(m|0)/4|0,f,n,1)|0)<<24>>24|0)==0){break}if(((du((l|0)/2|0,l-1|0,(m|0)/4|0,(m|0)/4|0,f,n,1)|0)<<24>>24|0)==1){break}if(((du((l|0)/2|0,(l|0)/2|0,0,(m|0)/4|0,f,n,1)|0)<<24>>24|0)==0){break}if(((du((l|0)/2|0,(l|0)/2|0,m-1-((m|0)/4|0)|0,m-1|0,f,n,1)|0)<<24>>24|0)==0){break}if((dv((l|0)/2|0,(l|0)/2|0,0,m-1|0,f,n)|0)!=4){break}if((dv(g,h,j+((m|0)/2|0)|0,j+((m|0)/2|0)|0,c[a+68>>2]|0,n)|0)!=2){break}if((dH(g,h,j+((m|0)/4|0)|0,k-((m|0)/4|0)|0,c[a+68>>2]|0,n,0)|0)!=1){break}else{w=a;dy(w,167,96)|0;break}}}while(0)}}while(0);C=o;D=C;i=b;return D|0}function dg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[a>>2]|0;f=c[a+4>>2]|0;g=c[a+8>>2]|0;h=c[a+12>>2]|0;i=f-e+1|0;j=h-g+1|0;k=c[b+8>>2]|0;l=b+44|0;m=57344;n=0;if((g<<1|0)<=((c[a+56>>2]<<1)-((c[a+56>>2]|0)-(c[a+52>>2]|0))|0)){n=1}o=0;if((h<<1|0)>=((c[a+60>>2]<<1)+((c[a+64>>2]|0)-(c[a+60>>2]|0))|0)){o=1}do{if((g|0)<(c[a+56>>2]|0)){if((h|0)<=(c[a+60>>2]|0)){break}if((h<<1|0)>=((c[a+60>>2]|0)+(c[a+64>>2]|0)|0)){break}if((g-(h-(c[a+60>>2]|0))<<1|0)<=((c[a+56>>2]<<1)-((c[a+56>>2]|0)-(c[a+52>>2]|0))|0)){n=1}}}while(0);if((m|0)==57344){p=98;if((i|0)>4){q=(j|0)>6}else{q=0}L4870:do{if(q){if((c[b+108>>2]|0)>2){break}do{if((dv(0,i-1|0,(j|0)/4|0,(j|0)/4|0,d,k)|0)!=2){if((dv(0,i-1|0,(j*3|0|0)/16|0,(j*3|0|0)/16|0,d,k)|0)==2){break}break L4870}}while(0);do{if((dv(0,i-1|0,(j*3|0|0)/4|0,(j*3|0|0)/4|0,d,k)|0)!=2){if((dv(0,i-1|0,((j*3|0|0)/4|0)+1|0,((j*3|0|0)/4|0)+1|0,d,k)|0)==2){break}break L4870}}while(0);r=dC(d,0,(j|0)/8|0,i,k,0,3)|0;if((r+(dC(d,i-1|0,(j|0)/8|0,i,k,0,4)|0)|0)>((i|0)/2|0|0)){break}r=0;s=1;t=g+((j|0)/10|0)|0;while(1){if((t|0)<(h-((j|0)/10|0)|0)){u=(s|0)!=0}else{u=0}if(!u){break}v=dC(c[a+68>>2]|0,e,t,i,k,0,3)|0;w=v+(dC(c[a+68>>2]|0,f,t,i,k,0,4)|0)|0;if((w|0)>((i*10|0|0)/16|0|0)){s=0}if((w|0)>(r|0)){r=w}t=t+1|0}if((s|0)==0){break}x=(i|0)/4|0;while(1){if((x|0)>=((i|0)/2|0|0)){break}t=dC(d,x,j-1|0,j,k,0,1)|0;if((t|0)>((j*3|0|0)/8|0|0)){y=3562;break}if((t*10|0|0)>(j|0)){s=dC(d,x,j-t|0,i,k,0,3)|0;if((s|0)>1){if((t+(dC(d,x+s-1|0,j-t|0,j,k,0,1)|0)|0)>((j*3|0|0)/8|0|0)){y=3566;break}}}x=x+1|0}if((x|0)>=((i|0)/2|0|0)){break}r=dC(c[a+68>>2]|0,e,h-((j|0)/8|0)|0,i,k,0,3)|0;x=r+(dC(c[a+68>>2]|0,f,h-((j|0)/8|0)|0,i,k,0,4)|0)|0;s=1;t=(j|0)/4|0;while(1){if((t|0)<(j-1-((j|0)/4|0)|0)){z=(s|0)!=0}else{z=0}if(!z){break}r=dC(d,0,t,i,k,0,3)|0;w=r+(dC(d,i-1|0,t,i,k,0,4)|0)|0;if((w-x|0)>((i|0)/5|0|0)){s=0}t=t+1|0}if((s|0)==0){break}s=0;r=g+((j|0)/4|0)|0;t=r;v=r;while(1){if((t|0)>=(h-((j|0)/3|0)|0)){break}w=dC(c[a+68>>2]|0,e,t,i,k,0,3)|0;w=dC(c[a+68>>2]|0,e+w|0,t,i,k,1,3)|0;if((w|0)>(s|0)){s=w;v=t}t=t+1|0}if((s|0)<=((i|0)/2|0|0)){break}v=v-g|0;do{if((dv(0,i-1|0,v,v,d,k)|0)!=1){if((dv(0,i-1|0,v+1|0,v+1|0,d,k)|0)==1){break}break L4870}}while(0);t=v;while(1){if((t|0)>=(j-((j|0)/4|0)|0)){break}if((dv(0,i-1|0,t,t,d,k)|0)>2){if((dv(0,i-1|0,t+1|0,t+1|0,d,k)|0)>2){y=3597;break}}t=t+1|0}if((t|0)<(j-((j|0)/4|0)|0)){break}s=1;x=e+((i|0)/2|0)|0;while(1){if((x|0)<=(f-((i|0)/4|0)|0)){A=(s|0)!=0}else{A=0}if(!A){break}if(((du(x,x,g,g+((j|0)/4|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){s=0}x=x+1|0}if((s|0)==0){break}s=1;x=e+((i|0)/4|0)|0;while(1){if((x|0)<=(f-((i|0)/4|0)|0)){B=(s|0)!=0}else{B=0}if(!B){break}if(((du(x,x,h-((j|0)/4|0)|0,h,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){s=0}x=x+1|0}if((s|0)!=0){break}s=1;x=e+((i|0)/4|0)|0;while(1){if((x|0)<=(f-((i|0)/4|0)|0)){C=(s|0)!=0}else{C=0}if(!C){break}if((dv(x,x,g+((j|0)/8|0)|0,h-((j|0)/8|0)|0,c[a+68>>2]|0,k)|0)==1){s=0}x=x+1|0}if((s|0)!=0){break}s=1;t=g;while(1){if((t|0)<=(g+((j|0)/4|0)|0)){D=(s|0)!=0}else{D=0}if(!D){break}if((dv(e,f,t,t,c[a+68>>2]|0,k)|0)==2){s=0}t=t+1|0}if((s|0)!=0){break}s=1;t=h-((j|0)/4|0)|0;while(1){if((t|0)<=(h|0)){E=(s|0)!=0}else{E=0}if(!E){break}if((dv(e,f,t,t,c[a+68>>2]|0,k)|0)==2){s=0}t=t+1|0}if((s|0)!=0){break}if((dv(e,e+((i|0)/8|0)|0,g+((j|0)/8|0)|0,g,c[a+68>>2]|0,k)|0)!=0){p=(p*96|0|0)/100|0}if(((du(f-((i|0)/8|0)|0,f,g,g+((j|0)/8|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(e,e+((i|0)/8|0)|0,h-((j|0)/8|0)|0,h,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}F=dC(d,i-1|0,(j|0)/4|0,i,k,0,4)|0;if((F|0)>((i|0)/2|0|0)){break}G=dC(d,i-1|0,(j|0)/2|0,i,k,0,4)|0;do{if((G|0)>=(F-((i|0)/4|0)|0)){if((G|0)>(F+((i|0)/8|0)|0)){break}H=dC(d,i-1|0,j-1-((j|0)/4|0)|0,i,k,0,4)|0;do{if((H|0)>=(G-((i|0)/4|0)|0)){if((H|0)>(G+((i|0)/8|0)|0)){break}if((P(F+H-(G<<1)|0)|0)>(((i|0)/16|0)+1|0)){break L4870}if((dH(e,f,g+((j|0)/4|0)|0,h,c[a+68>>2]|0,k,0)|0)!=0){break L4870}if((n|0)==0){p=(p*96|0|0)/100|0}if((o|0)==0){p=(p*99|0|0)/100|0}I=64256;v=a;r=I;J=p;dy(v,r,J)|0;break L4870}}while(0);break L4870}}while(0)}}while(0)}if((m|0)==57344){p=98;if((i|0)>4){K=(j|0)>6}else{K=0}L5073:do{if(K){if((c[b+108>>2]|0)>4){break}do{if((dv((i|0)/4|0,i-1|0,(j*3|0|0)/16|0,(j*3|0|0)/16|0,d,k)|0)!=2){if((dv(i-1-((i|0)/4|0)|0,i-1|0,(j*3|0|0)/16|0,(j*3|0|0)/16|0,d,k)|0)==1){break}break L5073}}while(0);if((dv(0,i-1|0,(j*3|0|0)/4|0,(j*3|0|0)/4|0,d,k)|0)<2){break}if((dv(0,i-1|0,0,j-1|0,d,k)|0)<3){break}if((dv(i-1|0,0,0,j-1|0,d,k)|0)<3){break}do{if((dv(0,i-1|0,(j|0)/16|0,(j|0)/16|0,d,k)|0)<2){if((dv(0,i-1|0,((j|0)/16|0)+1|0,((j|0)/16|0)+1|0,d,k)|0)<2){break L5073}else{break}}}while(0);if((dv(0,i-1|0,j-1-((j|0)/16|0)|0,j-1-((j|0)/16|0)|0,d,k)|0)<2){break}x=0;E=(j|0)/4|0;t=E;G=E;while(1){if((t|0)>=((j*3|0|0)/4|0|0)){break}w=dC(d,0,t,i,k,0,3)|0;if((w|0)>(x|0)){G=t;x=w}t=t+1|0}do{if((x|0)>=((i|0)/4|0|0)){if((x|0)>((i*3|0|0)/4|0|0)){break}x=0;E=(j|0)/4|0;t=E;L=E;while(1){if((t|0)>=((j*3|0|0)/4|0|0)){break}w=dC(d,i-1|0,t,i,k,0,4)|0;if((w|0)>(x|0)){L=t;x=w}t=t+1|0}do{if((x|0)>=((i|0)/4|0|0)){if((x|0)>((i*3|0|0)/4|0|0)){break}x=0;E=(j|0)/8|0;t=E;L=E;while(1){if((t|0)>=((j*3|0|0)/4|0|0)){break}w=dC(d,i-1|0,t,i,k,0,4)|0;w=dC(d,i-1-w|0,t,i,k,1,4)|0;if((w|0)>(x|0)){L=t;x=w}t=t+1|0}if((x|0)<((i|0)/4|0|0)){break L5073}if((dH(e,e+((i*3|0|0)/4|0)|0,g+((j|0)/4|0)|0,h,c[a+68>>2]|0,k,0)|0)!=1){break L5073}if((dH(e+((i|0)/2|0)-1|0,f,g,h-((j|0)/4|0)|0,c[a+68>>2]|0,k,0)|0)!=1){break L5073}I=230;dy(a,I,p)|0;if((p|0)<100){break L5073}M=I;N=M;return N|0}}while(0);break L5073}}while(0)}}while(0)}if((m|0)==57344){p=98;if((i|0)>5){O=(j|0)>6}else{O=0}L5153:do{if(O){if((c[b+108>>2]|0)>2){break}if((dv(0,i-1|0,(j*3|0|0)/16|0,(j*3|0|0)/16|0,d,k)|0)<2){break}if((dv(0,i-1|0,(j*3|0|0)/4|0,(j*3|0|0)/4|0,d,k)|0)<2){break}if((dv(0,i-1|0,0,j-1|0,d,k)|0)<3){break}do{if((dv(0,i-1|0,(j|0)/16|0,(j|0)/16|0,d,k)|0)!=1){if((dv(0,i-1|0,(j|0)/32|0,(j|0)/32|0,d,k)|0)==1){break}if((dv(0,i-1|0,0,0,d,k)|0)==1){break}break L5153}}while(0);w=dC(d,i-1|0,0,i,k,0,4)|0;x=w;w=dC(d,i-1-w|0,0,i,k,1,4)|0;s=dC(d,i-1|0,1,i,k,0,4)|0;if((s|0)<(x|0)){x=s}s=dC(d,i-1-s|0,1,i,k,1,4)|0;if((s|0)>(w|0)){w=s}if((x|0)>((i|0)/8|0|0)){break}if((w|0)<((i|0)/4|0|0)){break}x=i;H=0;F=0;K=(j|0)/4|0;t=K;G=K;while(1){if((t|0)>=((j*3|0|0)/4|0|0)){break}w=dC(d,0,t,i,k,0,3)|0;if((w|0)>(x|0)){y=3760;break}x=w;w=dC(d,w,t,i,k,1,3)|0;if((w|0)>(F|0)){F=w;G=t}w=dC(d,i-1|0,t,i,k,0,4)|0;w=dC(d,i-1-w|0,t,i,k,1,4)|0;if((w|0)>(H|0)){H=w;L=t}t=t+1|0}do{if((t|0)>=((j*3|0|0)/4|0|0)){if((F|0)<(((i|0)/4|0)-1|0)){break}if((H|0)<(((i|0)/4|0)-1|0)){break}H=0;F=0;t=0;while(1){if((t|0)>=((j|0)/8|0|0)){break}w=dC(d,i-1|0,t,i,k,0,4)|0;w=dC(d,i-1-w|0,t,i,k,1,4)|0;if((w|0)>(F|0)){F=w}w=dC(d,i-1|0,j-1-t|0,i,k,0,4)|0;w=dC(d,i-1-w|0,j-1-t|0,i,k,1,4)|0;if((w|0)>(H|0)){H=w}t=t+1|0}do{if((F|0)>((i|0)/4|0|0)){if((H|0)<=((i|0)/4|0|0)){break}x=i-1-((i|0)/8|0)|0;while(1){if((x|0)<=((i|0)/2|0|0)){break}if((dv(x,x,0,j-1|0,d,k)|0)==3){if((dv(x,x,0,(j|0)/4|0,d,k)|0)==1){if((dv(x-1|0,i-1-((i|0)/8|0)|0,(j*3|0|0)/4|0,(j*3|0|0)/4|0,d,k)|0)==0){if((dv(x,x,(j*3|0|0)/4|0,j-1|0,d,k)|0)==1){y=3788;break}}}}x=x-1|0}if((x|0)<=((i|0)/2|0|0)){break L5153}if((c[b+108>>2]|0)!=1){break L5153}if((dH(e,e+((i*3|0|0)/4|0)|0,g,h-((j|0)/4|0)|0,c[a+68>>2]|0,k,0)|0)!=1){break L5153}I=198;dy(a,I,p)|0;if((p|0)<100){break L5153}M=I;N=M;return N|0}}while(0);break L5153}}while(0)}}while(0)}p=99;if((i|0)>4){Q=(j|0)>4}else{Q=0}do{if(Q){if((c[b+108>>2]|0)>3){break}if((dv(0,i-1|0,(j|0)/2|0,(j|0)/2|0,d,k)|0)!=3){break}if((dv((i|0)/2|0,(i|0)/2|0,0,j-1|0,d,k)|0)!=3){break}if((dC(d,i-1|0,(j*3|0|0)/8|0,i,k,0,3)|0)>((i|0)/8|0|0)){break}if((dC(d,0,(j*5|0|0)/8|0,i,k,0,3)|0)>((i|0)/8|0|0)){break}if((dv(0,i-1|0,0,0,d,k)|0)>2){break}if((dv((i|0)/4|0,i-1|0,0,0,d,k)|0)>2){break}if((dv(0,i-1|0,j-1|0,j-1|0,d,k)|0)>2){break}if((dv(0,(i*3|0|0)/4|0,j-1|0,j-1|0,d,k)|0)>2){break}if((dv(0,0,0,j-1|0,d,k)|0)>2){break}if((dv(i-1|0,i-1|0,0,j-1|0,d,k)|0)>2){break}if((dv(0,0,(j|0)/4|0,j-1|0,d,k)|0)>2){break}if((dv(i-1|0,i-1|0,0,(j*3|0|0)/4|0,d,k)|0)>2){break}F=dC(d,i-1|0,0,i,k,0,4)|0;if((F|0)>((i|0)/8|0|0)){break}F=F+(dC(d,i-1-F|0,0,i,k,1,4)|0)|0;if((F|0)>((i|0)/3|0|0)){break}F=i-1-F|0;G=dC(d,0,j-1|0,i,k,0,3)|0;if((G|0)>((i|0)/8|0|0)){break}t=1;while(1){if((t|0)>=(j-1|0)){break}x=F+((aa(t,G-F|0)|0)/(j|0)|0)-((i|0)/8|0)|0;if((x|0)<0){x=0}w=dC(d,x,t,i,k,0,3)|0;if((w|0)>((i*3|0|0)/16|0|0)){y=3845;break}t=t+1|0}if((t|0)<(j-1|0)){break}if((dv(0,(i|0)/4|0,(j|0)/2|0,(j|0)/2|0,d,k)|0)!=1){break}if((dv(i-1-((i|0)/4|0)|0,i-1|0,(j|0)/2|0,(j|0)/2|0,d,k)|0)!=1){break}if((dv((i|0)/4|0,i-1-((i|0)/4|0)|0,(j|0)/2|0,(j|0)/2|0,d,k)|0)!=1){break}if((c[b+108>>2]|0)!=2){break}do{if((n|0)!=0){if((g<<1|0)>=((c[a+52>>2]|0)+(c[a+56>>2]|0)|0)){y=3861;break}I=216}else{y=3861}}while(0);if((y|0)==3861){I=248}dy(a,I,p)|0;if((p|0)<100){break}M=I;N=M;return N|0}}while(0);if((m|0)==57344){p=98;if((i|0)>4){R=(j|0)>4}else{R=0}do{if(R){if((c[b+108>>2]|0)>2){break}if((dv(0,i-1|0,(j|0)/2|0,(j|0)/2|0,d,k)|0)!=2){break}if((dv(0,i-1-((i|0)/4|0)|0,(j|0)/2|0,(j|0)/2|0,d,k)|0)!=2){break}if((dv((i|0)/2|0,(i|0)/2|0,0,j-1|0,d,k)|0)!=3){break}if((dv(0,i-1|0,0,0,d,k)|0)>2){break}if((dv((i|0)/4|0,i-1|0,0,0,d,k)|0)>2){break}if((dv(0,i-1|0,j-1|0,j-1|0,d,k)|0)>2){break}if((dv(0,(i*3|0|0)/4|0,j-1|0,j-1|0,d,k)|0)>2){break}if((dv(0,0,0,j-1|0,d,k)|0)>2){break}if((dv(i-1|0,i-1|0,0,j-1|0,d,k)|0)>3){break}if((dv(0,0,(j|0)/4|0,j-1|0,d,k)|0)>2){break}if((dv(i-1|0,i-1|0,0,(j*3|0|0)/4|0,d,k)|0)>3){break}F=dC(d,i-1|0,0,i,k,0,4)|0;if((F|0)>((i|0)/4|0|0)){break}F=F+(dC(d,i-1-F|0,0,i,k,1,4)|0)|0;if((F|0)>((i|0)/4|0|0)){break}F=i-1-F|0;G=dC(d,0,j-1|0,i,k,0,3)|0;if((G|0)>((i|0)/4|0|0)){break}t=0;while(1){if((t|0)>=(j|0)){break}x=F+((aa(t,G-F|0)|0)/(j|0)|0)|0;if((x|0)>(((i|0)/16|0)+1|0)){x=x-(((i|0)/16|0)+1)|0}w=dC(d,x,t,i,k,0,3)|0;if((w|0)>((i+4|0)/8|0|0)){p=(p*96|0|0)/100|0}if((w|0)>((i+2|0)/4|0|0)){y=3907;break}t=t+1|0}if((t|0)<(j|0)){break}if((dv(0,(i|0)/4|0,(j|0)/2|0,(j|0)/2|0,d,k)|0)!=1){break}if((dv(i-1-((i|0)/4|0)|0,i-1|0,(j|0)/2|0,(j|0)/2|0,d,k)|0)!=0){break}if((dv((i|0)/4|0,i-1-((i|0)/4|0)|0,(j|0)/2|0,(j|0)/2|0,d,k)|0)!=1){break}if((c[b+108>>2]|0)!=1){break}I=162;dy(a,I,p)|0;if((p|0)<100){break}M=I;N=M;return N|0}}while(0)}if((m|0)==57344){p=98;if((i|0)>4){S=(j|0)>6}else{S=0}L5435:do{if(S){if((c[b+108>>2]|0)>1){break}if((dv((i|0)/2|0,(i|0)/2|0,0,j-1|0,d,k)|0)!=4){break}if((dv(0,i-1|0,0,0,d,k)|0)!=1){break}if((dv(0,i-1|0,j-1|0,j-1|0,d,k)|0)!=1){break}if((dv(0,i-1|0,(j|0)/2|0,(j|0)/2|0,d,k)|0)!=1){break}s=0;t=(j|0)/4|0;while(1){if((t|0)>=(j-((j|0)/4|0)-1|0)){break}x=dC(d,0,t,i,k,0,3)|0;if((x|0)>((i|0)/4|0|0)){y=3942;break}w=dC(d,x,t,i,k,1,3)|0;if((w|0)>(s|0)){s=w}t=t+1|0}do{if((t|0)>=(j-((j|0)/4|0)-1|0)){if((s|0)<((i|0)/2|0|0)){break}t=(j|0)/4|0;while(1){if((t|0)>=(j-((j|0)/4|0)-1|0)){break}x=dC(d,i-1|0,t,i,k,0,4)|0;if((x|0)>((i|0)/2|0|0)){y=3953;break}t=t+1|0}if((t|0)>=(j-((j|0)/4|0)-1|0)){break L5435}if((c[b+108>>2]|0)!=0){break L5435}I=8364;dy(a,I,p)|0;if((p|0)<100){break L5435}M=I;N=M;return N|0}}while(0)}}while(0)}if((m|0)==57344){if((o|0)!=0){p=98;if((i|0)>3){T=(j|0)>6}else{T=0}L5495:do{if(T){if((c[b+108>>2]|0)>0){break}w=dC(d,i-1|0,(j|0)/16|0,j,k,0,4)|0;x=dC(d,i-1|0,((j|0)/16|0)+1|0,j,k,0,4)|0;if((x|0)<(w|0)){w=x}if((x*3|0|0)>(i|0)){break}if((dv(0,i-1|0,(j*3|0|0)/16|0,(j*3|0|0)/16|0,d,k)|0)>2){break}if((dv(0,i-1|0,0,j-1|0,d,k)|0)<2){break}if((dv(0,i-1|0,(j|0)/16|0,(j|0)/16|0,d,k)|0)>2){break}x=i;S=(j|0)/4|0;t=S;G=S;while(1){if((t|0)>=((j*3|0|0)/4|0|0)){break}w=dC(d,0,t,i,k,0,3)|0;if((w|0)<(x|0)){G=t;x=w}t=t+1|0}if((x|0)>0){break}F=x;x=0;S=(j|0)/4|0;t=S;L=S;while(1){if((t|0)>=((j*5|0|0)/8|0|0)){break}w=dC(d,i-1|0,t,i,k,0,4)|0;if((w|0)>(x|0)){L=t;x=w}t=t+1|0}if((x|0)<((i|0)/2|0|0)){break}H=x;w=dC(d,(i|0)/2|0,0,j,k,0,2)|0;w=w+(dC(d,(i|0)/2|0,w,j,k,1,2)|0)|0;if((w|0)>((j|0)/4|0|0)){break}w=dC(d,(i|0)/2|0,w,j,k,0,2)|0;if((w|0)<((j|0)/2|0|0)){break}w=dC(d,i-1|0,j-1-((j|0)/8|0)|0,i,k,0,4)|0;do{if((w|0)>=((i|0)/4|0|0)){if((w<<2|0)>(i*3|0|0)){break}w=dC(d,i-1-((w|0)/2|0)|0,j-1-((j|0)/8|0)|0,j,k,0,1)|0;if((w|0)>((j|0)/2|0|0)){break L5495}if((c[b+108>>2]|0)!=0){break L5495}if((n|0)!=0){I=199}else{I=231}S=a;R=I;Q=p;dy(S,R,Q)|0;if((p|0)<100){break L5495}M=I;N=M;return N|0}}while(0)}}while(0)}}p=99;if((i|0)>4){U=(j|0)>4}else{U=0}L5568:do{if(U){if((c[b+108>>2]|0)>2){break}if((c[b+108>>2]|0)<1){break}if((dv(0,i-1|0,(j|0)/8|0,(j|0)/8|0,d,k)|0)!=2){break}if((dv(0,i-1|0,j-1-((j|0)/8|0)|0,j-1-((j|0)/8|0)|0,d,k)|0)!=2){break}if((dv(0,i-1|0,(j|0)/2|0,(j|0)/2|0,d,k)|0)!=2){break}if((dv(0,(i|0)/2|0,(j|0)/2|0,(j|0)/2|0,d,k)|0)!=1){break}w=dC(d,0,(j|0)/8|0,i,k,0,3)|0;do{if((w|0)>=1){if((w|0)<((i|0)/16|0|0)){break}if((w|0)<((i|0)/8|0|0)){p=(p*96|0|0)/100|0}w=dC(d,0,(j|0)/2|0,i,k,0,3)|0;do{if((w|0)>=1){if((w|0)<((i|0)/16|0|0)){break}if((w|0)>=((i|0)/2|0|0)){break}if((w|0)<((i|0)/8|0|0)){p=(p*96|0|0)/100|0}w=dC(d,i-1|0,(j|0)/2|0,i,k,0,4)|0;do{if((w|0)>=1){if((w|0)<((i|0)/16|0|0)){break}if((w|0)>=((i|0)/2|0|0)){break}if((w|0)<((i|0)/8|0|0)){p=(p*96|0|0)/100|0}w=dC(d,i-1|0,j-1|0,i,k,0,4)|0;do{if((w|0)>=1){if((w|0)<((i|0)/16|0|0)){break}if((w|0)<((i|0)/8|0|0)){p=(p*96|0|0)/100|0}H=0;F=0;t=(j|0)/4|0;while(1){if((t|0)>=((j|0)/2|0|0)){break}w=dC(d,0,t,i,k,0,3)|0;if((w|0)>((i*3|0|0)/4|0|0)){y=4058;break}w=dC(d,w,t,i,k,1,3)|0;if((w|0)>(F|0)){F=w}w=dC(d,0,j-1-t|0,i,k,0,3)|0;if((w|0)>((i*3|0|0)/4|0|0)){y=4062;break}w=dC(d,w,j-1-t|0,i,k,1,3)|0;if((w|0)>(H|0)){H=w}t=t+1|0}if((y|0)==4058){F=0}else if((y|0)==4062){F=0}do{if((F|0)>=(i-((i|0)/4|0)|0)){if((H|0)<(i-((i|0)/4|0)|0)){break}if((F|0)<(i-((i|0)/8|0)|0)){p=(p*97|0|0)/100|0}if((H|0)<(i-((i|0)/8|0)|0)){p=(p*97|0|0)/100|0}if((c[b+108>>2]|0)!=1){p=(p*95|0|0)/100|0}if((dH(e+((i|0)/8|0)|0,f-((i|0)/8|0)|0,g+((j|0)/8|0)|0,h-((j|0)/8|0)|0,c[a+68>>2]|0,k,0)|0)!=1){break L5568}I=35;if((o|0)!=0){p=(p*99|0|0)/100|0}L=a;T=I;Q=p;dy(L,T,Q)|0;if((p|0)<100){break L5568}M=I;N=M;return N|0}}while(0);break L5568}}while(0);break L5568}}while(0);break L5568}}while(0);break L5568}}while(0)}}while(0);if((m|0)==57344){p=96;do{if((i|0)>4){if((j|0)<=4){V=0;break}V=(i<<1|0)>(j|0)}else{V=0}}while(0);do{if(V){if(((du(e,f,g,h,c[a+68>>2]|0,k,2)|0)<<24>>24|0)!=0){break}I=8226;do{if((o|0)!=0){if((n|0)!=0){break}p=(p*80|0|0)/100|0}}while(0);H=a;t=I;U=p;dy(H,t,U)|0;if((p|0)<100){break}M=I;N=M;return N|0}}while(0)}p=99;if((j|0)>4){W=(i<<1|0)<(j|0)}else{W=0}L5684:do{if(W){if(((du(e+((i|0)/8|0)|0,f-((i|0)/8|0)|0,g+((j|0)/9|0)|0,h-((j|0)/9|0)|0,c[a+68>>2]|0,k,2)|0)<<24>>24|0)!=0){break}if(((du(e,e+((i|0)/8|0)|0,g+((j|0)/9|0)|0,h-((j|0)/9|0)|0,c[a+68>>2]|0,k,2)|0)<<24>>24|0)!=0){p=(p*99|0|0)/100|0}if(((du(f-((i|0)/8|0)|0,f,g+((j|0)/9|0)|0,h-((j|0)/9|0)|0,c[a+68>>2]|0,k,2)|0)<<24>>24|0)!=0){p=(p*99|0|0)/100|0}if(((du(e+((i|0)/8|0)|0,f-((i|0)/8|0)|0,g,g+((j|0)/8|0)|0,c[a+68>>2]|0,k,2)|0)<<24>>24|0)!=0){p=(p*99|0|0)/100|0}if(((du(e+((i|0)/8|0)|0,f-((i|0)/8|0)|0,h-((j|0)/8|0)|0,h,c[a+68>>2]|0,k,2)|0)<<24>>24|0)!=0){p=(p*99|0|0)/100|0}if((i*3|0|0)<(j|0)){p=(p*98|0|0)/100|0}if((i<<2|0)<(j|0)){p=(p*99|0|0)/100|0}do{if((c[a+56>>2]|0)!=0){if((h<<1|0)>=((c[a+56>>2]|0)+(c[a+60>>2]|0)|0)){break}break L5684}}while(0);do{if((c[a+56>>2]|0)!=0){if((h*3|0|0)>=((c[a+56>>2]|0)+(c[a+60>>2]<<1)|0)){break}p=(p*95|0|0)/100|0}}while(0);I=124;if((n|0)==0){p=(p*98|0|0)/100|0}V=a;U=I;t=p;dy(V,U,t)|0}}while(0);if((c[a+196>>2]|0)==2){p=99;if((j|0)>6){X=(i<<1|0)<(j|0)}else{X=0}L5725:do{if(X){W=(P((c[a+200>>2]|0)-(c[a+204>>2]|0)|0)|0)<<3;if((W|0)>((c[a+200>>2]|0)+(c[a+204>>2]|0)|0)){break}if(((c[a+200>>2]|0)+(c[a+204>>2]|0)|0)<(((aa(i,j)|0)*7|0|0)/8|0|0)){break}do{if(((du(e,f,g+((j|0)/2|0)|0,g-((j|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=0){if(((du(e,f,g+((j|0)/2|0)-1|0,g-((j|0)/2|0)-1|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){break}break L5725}}while(0);if((i*3|0|0)<(j|0)){p=(p*98|0|0)/100|0}if((i<<2|0)<(j|0)){p=(p*99|0|0)/100|0}do{if((c[a+56>>2]|0)!=0){if((h<<2|0)>=((c[a+56>>2]|0)+((c[a+60>>2]|0)*3|0)|0)){break}break L5725}}while(0);do{if((c[a+56>>2]|0)!=0){if((h<<2|0)>=(0+(c[a+60>>2]<<2)|0)){break}p=(p*95|0|0)/100|0}}while(0);I=124;if((n|0)==0){p=(p*98|0|0)/100|0}W=a;t=I;U=p;dy(W,t,U)|0}}while(0)}p=100;if((i|0)>5){Y=(j|0)>7}else{Y=0}L5760:do{if(Y){if((c[b+108>>2]|0)>2){break}do{if((c[a+196>>2]|0)!=1){if((c[a+196>>2]|0)==3){break}if((c[a+196>>2]|0)==5){break}break L5760}}while(0);if((c[a+196>>2]|0)==1){break}L5773:do{if((c[a+196>>2]|0)>=3){if((c[a+204>>2]|0)>=0){break}if((c[a+208>>2]|0)>=0){break}do{if(((c[l>>2]|0)-e|0)<=((i|0)/4|0|0)){if(((c[l+4>>2]|0)-g|0)>((j|0)/4|0|0)){break}do{if(((c[l+32>>2]|0)-e|0)>=((i*3|0|0)/4|0|0)){if(((c[l+36>>2]|0)-g|0)<((j*3|0|0)/4|0|0)){break}do{if(((c[l+16>>2]|0)-e|0)<=((i|0)/4|0|0)){if(((c[l+20>>2]|0)-g|0)<((j*3|0|0)/4|0|0)){break}do{if(((c[l+48>>2]|0)-e|0)>=((i*3|0|0)/4|0|0)){if(((c[l+52>>2]|0)-g|0)>((j|0)/4|0|0)){break}w=cI(a,c[l+60>>2]|0,c[l+12>>2]|0,e+((i|0)/2|0)|0,g+((j|0)/2|0)|0)|0;do{if(((c[a+296+(w<<3)>>2]|0)-e|0)>=((i|0)/2|0|0)){if((f-(c[a+296+(w<<3)>>2]|0)|0)<((i|0)/4|0|0)){break}if(((c[a+296+(w<<3)+4>>2]|0)-g|0)<=((j|0)/8|0|0)){break}w=cI(a,c[l+28>>2]|0,c[l+44>>2]|0,e+((i|0)/2|0)|0,g+((j|0)/2|0)|0)|0;do{if(((c[a+296+(w<<3)>>2]|0)-e|0)>=((i|0)/4|0|0)){if((f-(c[a+296+(w<<3)>>2]|0)|0)<((i|0)/2|0|0)){break}if((h-(c[a+296+(w<<3)+4>>2]|0)|0)<=((j|0)/8|0|0)){break}do{if((i|0)>7){if((p|0)!=100){break}p=(p*99|0|0)/100|0}}while(0);G=1;F=1;s=1;while(1){if((s|0)>=(c[a+196>>2]|0)){break}do{if((F|0)==(G|0)){if((s|0)==(F|0)){break}G=s}}while(0);do{if((c[a+200+(s<<2)>>2]|0)<(c[a+200+(G<<2)>>2]|0)){if((s|0)==(F|0)){break}G=s}}while(0);if((c[a+200+(G<<2)>>2]|0)<(c[a+200+(F<<2)>>2]|0)){w=F;F=G;G=w}s=s+1|0}if((F|0)==(G|0)){break L5760}X=P(c[a+200+(F<<2)>>2]|0)|0;if((X|0)>=((c[a+200>>2]|0)/8|0|0)){break L5760}X=P(c[a+200+(G<<2)>>2]|0)|0;if((X|0)>=((c[a+200>>2]|0)/8|0|0)){break L5760}X=P((c[a+200+(F<<2)>>2]|0)-(c[a+200+(G<<2)>>2]|0)|0)|0;if((X|0)>=((P((c[a+200+(F<<2)>>2]|0)+(c[a+200+(G<<2)>>2]|0)|0)|0)/2|0|0)){break L5760}if((p|0)==100){p=(p*99|0|0)/100|0}break L5773}}while(0);break L5760}}while(0);break L5760}}while(0);break L5760}}while(0);break L5760}}while(0);break L5760}}while(0);break L5760}}while(0);L5839:do{if((c[a+196>>2]|0)==3){if((c[a+204>>2]|0)<=0){break}do{if(((c[l>>2]|0)-e|0)<((i|0)/4|0|0)){if(((c[l+4>>2]|0)-g|0)>=((j|0)/4|0|0)){break}break L5760}}while(0);do{if(((c[l+32>>2]|0)-e|0)>((i*3|0|0)/4|0|0)){if(((c[l+36>>2]|0)-g|0)<=((j*3|0|0)/4|0|0)){break}break L5760}}while(0);do{if(((c[l+16>>2]|0)-e|0)<=((i|0)/4|0|0)){if(((c[l+20>>2]|0)-g|0)<((j*3|0|0)/4|0|0)){break}do{if(((c[l+48>>2]|0)-e|0)>=((i*3|0|0)/4|0|0)){if(((c[l+52>>2]|0)-g|0)>((j|0)/4|0|0)){break}do{if((i|0)>7){if((p|0)!=100){break}p=(p*99|0|0)/100|0}}while(0);if((c[a+204>>2]|0)>=(c[a+200>>2]|0)){break L5760}X=P((c[a+204>>2]|0)-(c[a+208>>2]|0)|0)|0;if((X|0)>=((P((c[a+204>>2]|0)+(c[a+208>>2]|0)|0)|0)/8|0|0)){break L5760}if((p|0)==100){p=(p*99|0|0)/100|0}break L5839}}while(0);break L5760}}while(0);break L5760}}while(0);L5872:do{if((c[a+196>>2]|0)==5){if((c[b+108>>2]|0)!=2){break}if((c[a+204>>2]|0)<=0){break}do{if(((c[l>>2]|0)-e|0)<((i|0)/4|0|0)){if(((c[l+4>>2]|0)-g|0)>=((j|0)/4|0|0)){break}break L5760}}while(0);do{if(((c[l+32>>2]|0)-e|0)>((i*3|0|0)/4|0|0)){if(((c[l+36>>2]|0)-g|0)<=((j*3|0|0)/4|0|0)){break}break L5760}}while(0);do{if(((c[l+16>>2]|0)-e|0)<=((i|0)/4|0|0)){if(((c[l+20>>2]|0)-g|0)<((j*3|0|0)/4|0|0)){break}do{if(((c[l+48>>2]|0)-e|0)>=((i*3|0|0)/4|0|0)){if(((c[l+52>>2]|0)-g|0)>((j|0)/4|0|0)){break}do{if((dv(e,f,g+((j|0)/4|0)|0,g+((j|0)/4|0)|0,c[a+68>>2]|0,k)|0)!=3){if((dv(e,f,g+((j|0)/8|0)|0,g+((j|0)/8|0)|0,c[a+68>>2]|0,k)|0)==3){break}break L5760}}while(0);do{if((dv(e,f+((i|0)/4|0)|0,h-((j|0)/4|0)|0,h-((j|0)/4|0)|0,c[a+68>>2]|0,k)|0)!=3){if((dv(e,f+((i|0)/4|0)|0,h-((j|0)/8|0)|0,h-((j|0)/8|0)|0,c[a+68>>2]|0,k)|0)==3){break}break L5760}}while(0);do{if((dv(e,f,g,h,c[a+68>>2]|0,k)|0)<4){if((dv(e+((i|0)/8|0)|0,f,g,h,c[a+68>>2]|0,k)|0)>=4){break}if((dv(e,f+((i|0)/4|0)|0,g,h,c[a+68>>2]|0,k)|0)>=4){break}if((i|0)<=7){break}if((j|0)<=15){break}break L5760}}while(0);do{if((i|0)>7){if((j|0)<=12){y=4272;break}if((dH(e,f,g,h-((j|0)/4|0)|0,c[a+68>>2]|0,k,0)|0)!=1){break L5760}if((dH(e+((i|0)/4|0)|0,f+((i|0)/4|0)|0,g+((j|0)/4|0)|0,h,c[a+68>>2]|0,k,0)|0)!=1){break L5760}if((dH(e,f+((i|0)/4|0)|0,g,h,c[a+68>>2]|0,k,0)|0)!=2){break L5760}else{break}}else{y=4272}}while(0);if((y|0)==4272){p=(p*98|0|0)/100|0}break L5872}}while(0);break L5760}}while(0);break L5760}}while(0);X=dC(c[a+68>>2]|0,e,g,i,k,0,3)|0;if((X|0)<(dC(c[a+68>>2]|0,e,g+((j|0)/16|0)+1|0,i,k,0,3)|0)){p=(p*96|0|0)/100|0}X=dC(c[a+68>>2]|0,f,h,i,k,0,4)|0;if((X|0)<(dC(c[a+68>>2]|0,f,h-1-((j|0)/16|0)|0,i,k,0,4)|0)){p=(p*96|0|0)/100|0}x=0;while(1){if((x|0)>=(i|0)){break}if(((du(e+x|0,e+x|0,g+((j|0)/8|0)|0,h-((j|0)/8|0)|0,c[a+68>>2]|0,k,2)|0)<<24>>24|0)!=2){y=4281;break}x=x+1|0}if((x|0)<(i|0)){break}if((o|0)!=0){p=(p*98|0|0)/100|0}I=37;dy(a,I,p)|0;if((p|0)<100){break}M=I;N=M;return N|0}}while(0);p=99;if((i|0)>7){Z=(j|0)>7}else{Z=0}L5952:do{if(Z){if(((du(e,e+((i|0)/2|0)|0,g+((j|0)/2|0)|0,g+((j|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(f-((i|0)/2|0)|0,f,g+((j|0)/2|0)|0,g+((j|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g,g+((j|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=0){break}if((dv(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){break}do{if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,g,g,c[a+68>>2]|0,k)|0)!=1){if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,g+1|0,g+1|0,c[a+68>>2]|0,k)|0)!=1){break L5952}else{break}}}while(0);do{if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,h,h,c[a+68>>2]|0,k)|0)!=2){if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,h-1|0,h-1|0,c[a+68>>2]|0,k)|0)!=2){break L5952}else{break}}}while(0);do{if((dv(e,e,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){if((dv(e+1|0,e+1|0,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){break L5952}else{break}}}while(0);do{if((dv(f,f,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){if((dv(f-1|0,f-1|0,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){break L5952}else{break}}}while(0);if((c[b+108>>2]|0)!=0){break}I=dC(d,0,0,f-e|0,k,0,3)|0;if((I|0)<=(dC(d,0,2,f-e|0,k,0,3)|0)){break}do{if((dC(d,(i|0)/2|0,j-((j|0)/4|0)|0,f-e|0,k,0,3)|0)<=((i|0)/4|0|0)){if((dC(d,(i|0)/2|0,j-((j|0)/4|0)|0,f-e|0,k,0,4)|0)>((i|0)/4|0|0)){break}do{if((dC(d,(i|0)/2|0,(j*3|0|0)/8|0,f-e|0,k,0,3)|0)>=((i|0)/4|0|0)){if((dC(d,(i|0)/2|0,(j*3|0|0)/8|0,f-e|0,k,0,4)|0)<((i|0)/4|0|0)){break}s=dC(d,0,j-1-((j|0)/16|0)|0,f-e|0,k,0,3)|0;if((s|0)>((i|0)/8|0|0)){break L5952}x=dC(d,s,j-1-((j|0)/16|0)|0,f-e|0,k,1,3)|0;s=s+x|0;do{if((s|0)>=((i*3|0|0)/8|0|0)){if((s|0)>((i|0)/2|0|0)){break}x=dC(d,s,j-1-((j|0)/16|0)|0,f-e|0,k,0,3)|0;s=s+x|0;do{if((s|0)>=((i|0)/2|0|0)){if((s|0)>((i*5|0|0)/8|0|0)){break}x=dC(d,s,j-1-((j|0)/16|0)|0,f-e|0,k,1,3)|0;s=s+x|0;if((s|0)<((i*7|0|0)/8|0|0)){break L5952}x=(i|0)/4|0;while(1){if((x|0)>=((i*3|0|0)/4|0|0)){break}s=dC(d,x,j-1|0,h-g|0,k,0,1)|0;if((s|0)>((j*3|0|0)/4|0|0)){y=4344;break}x=x+1|0}if((x|0)>=((i*3|0|0)/4|0|0)){break L5952}if((n|0)==0){p=(p*60|0|0)/100|0}m=937;dy(a,m,p)|0;break L5952}}while(0);break L5952}}while(0);break L5952}}while(0);break L5952}}while(0)}}while(0);M=m;N=M;return N|0}function dh(b,e,f,g,j,k,l,m){b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;m=m|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0.0,S=0.0,T=0,U=0,V=0.0,W=0.0,X=0.0;e=i;i=i+2048|0;o=e|0;p=e+1024|0;q=b;b=f;f=g;g=j;j=k;k=l;l=m;m=0;r=1;s=o;eC(s|0,0,1024)|0;s=p;eC(s|0,0,1024)|0;s=a[q+((aa(g,b)|0)+f)|0]|0;t=s;u=s;v=s;w=s;s=255;x=0;y=((k|0)/512|0)+1|0;z=0;while(1){if((z|0)>=(k|0)){break}A=q+((aa(g+z|0,b)|0)+f)|0;B=0;while(1){if((B|0)>=(j|0)){break}C=o+((d[A]|0)<<2)|0;c[C>>2]=(c[C>>2]|0)+1;if((d[A]|0|0)>(x|0)){x=d[A]|0}if((d[A]|0|0)<(s|0)){s=d[A]|0}if(((d[A]|0)-(u&255)|0)<0){D=-((d[A]|0)-(u&255)|0)|0}else{D=(d[A]|0)-(u&255)|0}if((D|0)>(m|0)){if(((d[A]|0)-(u&255)|0)<0){E=-((d[A]|0)-(u&255)|0)|0}else{E=(d[A]|0)-(u&255)|0}m=E}if(((d[A]|0)-(t&255)|0)<0){F=-((d[A]|0)-(t&255)|0)|0}else{F=(d[A]|0)-(t&255)|0}if((F|0)>(m|0)){if(((d[A]|0)-(t&255)|0)<0){G=-((d[A]|0)-(t&255)|0)|0}else{G=(d[A]|0)-(t&255)|0}m=G}if(((d[A]|0)-(v&255)|0)<0){H=-((d[A]|0)-(v&255)|0)|0}else{H=(d[A]|0)-(v&255)|0}if((H|0)>(m|0)){if(((d[A]|0)-(v&255)|0)<0){I=-((d[A]|0)-(v&255)|0)|0}else{I=(d[A]|0)-(v&255)|0}m=I}if(((d[A]|0)-(w&255)|0)<0){J=-((d[A]|0)-(w&255)|0)|0}else{J=(d[A]|0)-(w&255)|0}if((J|0)>(m|0)){if(((d[A]|0)-(w&255)|0)<0){K=-((d[A]|0)-(w&255)|0)|0}else{K=(d[A]|0)-(w&255)|0}m=K}w=v;v=t;t=u;u=a[A]|0;A=A+1|0;B=B+1|0}z=z+y|0}if((l&1|0)!=0){K=c[n>>2]|0;J=m;au(K|0,10504,(L=i,i=i+8|0,c[L>>2]=J,L)|0)|0;i=L}J=a[q+((aa(g,b)|0)+f)|0]|0;t=J;u=J;v=J;w=J;z=0;while(1){if((z|0)>=(k|0)){break}A=q+((aa(g+z|0,b)|0)+f)|0;B=0;while(1){if((B|0)>=(j|0)){break}if(((d[A]|0)-(u&255)|0)<0){M=-((d[A]|0)-(u&255)|0)|0}else{M=(d[A]|0)-(u&255)|0}do{if((M|0)>=((m|0)/4|0|0)){N=4430}else{if(((d[A]|0)-(t&255)|0)<0){O=-((d[A]|0)-(t&255)|0)|0}else{O=(d[A]|0)-(t&255)|0}if((O|0)>=((m|0)/4|0|0)){N=4430;break}if(((d[A]|0)-(v&255)|0)<0){P=-((d[A]|0)-(v&255)|0)|0}else{P=(d[A]|0)-(v&255)|0}if((P|0)>=((m|0)/4|0|0)){N=4430;break}if(((d[A]|0)-(w&255)|0)<0){Q=-((d[A]|0)-(w&255)|0)|0}else{Q=(d[A]|0)-(w&255)|0}if((Q|0)>=((m|0)/4|0|0)){N=4430}}}while(0);if((N|0)==4430){N=0;J=p+((d[A]|0)<<2)|0;c[J>>2]=(c[J>>2]|0)+1}w=v;v=t;t=u;u=a[A]|0;A=A+1|0;B=B+1|0}z=z+y|0}R=0.0;S=0.0;u=0;t=0;y=0;while(1){if((y|0)>255){break}S=S+ +(y|0)*+(c[p+(y<<2)>>2]|0);u=u+(c[p+(y<<2)>>2]|0)|0;t=t+(c[o+(y<<2)>>2]|0)|0;y=y+1|0}if((u|0)==0){v=c[n>>2]|0;au(v|0,21792,(L=i,i=i+1|0,i=i+7&-8,c[L>>2]=0,L)|0)|0;i=L;T=160;U=T;i=e;return U|0}if((l&1|0)!=0){v=c[n>>2]|0;au(v|0,16136,(L=i,i=i+1|0,i=i+7&-8,c[L>>2]=0,L)|0)|0;i=L}V=-1.0;v=0;y=0;while(1){if((y|0)>=255){break}v=v+(c[p+(y<<2)>>2]|0)|0;if((v|0)!=0){w=u-v|0;if((w|0)==0){N=4448;break}R=R+ +(y|0)*+(c[p+(y<<2)>>2]|0);W=+(v|0)*+(w|0)*((S-R)/+(w|0)-R/+(v|0));if(W>V){V=W;r=y+1|0}do{if((l&1|0)!=0){if((c[o+(y<<2)>>2]|0)==0){break}w=c[n>>2]|0;Q=y;P=c[o+(y<<2)>>2]|0;O=c[p+(y<<2)>>2]|0;X=W*256.0/+(aa(j,k)|0)/+(aa(j,k)|0);M=r;au(w|0,11352,(L=i,i=i+40|0,c[L>>2]=Q,c[L+8>>2]=P,c[L+16>>2]=O,h[L+24>>3]=X,c[L+32>>2]=M,L)|0)|0;i=L}}while(0)}y=y+1|0}p=0;y=0;while(1){if((y|0)>=(r|0)){break}p=p+(c[o+(y<<2)>>2]|0)|0;y=y+1|0}y=t-p|0;if((r|0)>(x|0)){t=c[n>>2]|0;au(t|0,9328,(L=i,i=i+1|0,i=i+7&-8,c[L>>2]=0,L)|0)|0;i=L;r=x}if((r|0)<=(s|0)){t=c[n>>2]|0;au(t|0,8376,(L=i,i=i+1|0,i=i+7&-8,c[L>>2]=0,L)|0)|0;i=L;r=s+1|0}if((l&1|0)!=0){t=c[n>>2]|0;o=r;v=s;s=x;x=m;m=p;N=y;au(t|0,7216,(L=i,i=i+48|0,c[L>>2]=o,c[L+8>>2]=v,c[L+16>>2]=s,c[L+24>>2]=x,c[L+32>>2]=m,c[L+40>>2]=N,L)|0)|0;i=L}if((p<<1|0)>(y*7|0|0)){if((l&1|0)!=0){l=c[n>>2]|0;au(l|0,6136,(L=i,i=i+1|0,i=i+7&-8,c[L>>2]=0,L)|0)|0;i=L}z=0;while(1){if((z|0)>=(k|0)){break}A=q+((aa(g+z|0,b)|0)+f)|0;B=0;while(1){if((B|0)>=(j|0)){break}a[A]=255-(d[A]|0)&255;A=A+1|0;B=B+1|0}z=z+1|0}r=255-r+1|0}T=r;U=T;i=e;return U|0}function di(b,e,f,g,h,j,k,l){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;e=i;m=b;b=f;f=g;g=h;h=j;j=k;k=l;l=255;o=0;p=255;q=0;r=g;while(1){if((r|0)>=(g+j|0)){break}s=m+((aa(r,b)|0)+f+1)|0;t=f;while(1){if((t|0)>=(f+h|0)){break}if((d[s]|0|0)>(o|0)){o=d[s]|0}if((d[s]|0|0)<(l|0)){l=d[s]|0}s=s+1|0;t=t+1|0}r=r+1|0}if((k|0)<=(l|0)){u=4496}else{if((k|0)>(o|0)){u=4496}}if((u|0)==4496){k=(l+o+1|0)/2|0;v=c[n>>2]|0;w=l;x=o;y=k;au(v|0,5088,(z=i,i=i+24|0,c[z>>2]=w,c[z+8>>2]=x,c[z+16>>2]=y,z)|0)|0;i=z}r=g;while(1){if((r|0)>=(g+j|0)){break}s=m+((aa(r,b)|0)+f)|0;t=f;while(1){if((t|0)>=(f+h|0)){break}if((d[s]|0|0)>(o|0)){u=4503}else{if((d[s]|0|0)<(l|0)){u=4503}}if((u|0)==4503){u=0;y=c[n>>2]|0;x=r;w=t;v=k;A=d[s]|0;B=l;C=o;au(y|0,4200,(z=i,i=i+48|0,c[z>>2]=x,c[z+8>>2]=w,c[z+16>>2]=v,c[z+24>>2]=A,c[z+32>>2]=B,c[z+40>>2]=C,z)|0)|0;i=z}do{if((d[s]|0|0)>=(k|0)){u=4506}else{if((k|0)==(l|0)){u=4506;break}D=(((d[s]|0)-l|0)*150|0|0)/(k-l|0)|0|0}}while(0);if((u|0)==4506){u=0;D=255-(((o-(d[s]|0)|0)*80|0|0)/(o-k+1|0)|0)|0}a[s]=D&255;if((d[s]|0|0)>(q|0)){q=d[s]|0}if((d[s]|0|0)<(p|0)){p=d[s]|0}s=s+1|0;t=t+1|0}r=r+1|0}i=e;return 160}function dj(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;j=i;k=a;a=b;b=d;d=e;e=f;f=g;g=h;h=d;if((k|0)!=0){if((a|0)==0){a=c[k+68>>2]|0;b=c[k>>2]|0;e=(c[k+4>>2]|0)-(c[k>>2]|0)+1|0;d=c[k+8>>2]|0;f=(c[k+12>>2]|0)-(c[k+8>>2]|0)+1|0;h=d}if((g|0)==0){g=c[(c[7036]|0)+37052>>2]|0}l=c[n>>2]|0;m=c[k>>2]|0;o=c[k+8>>2]|0;p=(c[k+4>>2]|0)-(c[k>>2]|0)+1|0;q=(c[k+12>>2]|0)-(c[k+8>>2]|0)+1|0;r=(c[k+16>>2]|0)-(c[k>>2]|0)|0;s=(c[k+20>>2]|0)-(c[k+8>>2]|0)|0;t=c[(c[7036]|0)+44>>2]|0;u=k;au(l|0,10168,(v=i,i=i+64|0,c[v>>2]=m,c[v+8>>2]=o,c[v+16>>2]=p,c[v+24>>2]=q,c[v+32>>2]=r,c[v+40>>2]=s,c[v+48>>2]=t,c[v+56>>2]=u,v)|0)|0;i=v;u=c[n>>2]|0;t=c[k+24>>2]|0;s=c[k+28>>2]|0;r=c[k+32>>2]|0;q=es(c[k+36>>2]|0,6)|0;p=es(c[k+40>>2]|0,6)|0;o=c[k+48>>2]|0;m=(c[k+52>>2]|0)-(c[k+8>>2]|0)|0;l=(c[k+56>>2]|0)-(c[k+8>>2]|0)|0;w=(c[k+60>>2]|0)-(c[k+8>>2]|0)|0;x=(c[k+64>>2]|0)-(c[k+8>>2]|0)|0;au(u|0,21424,(v=i,i=i+80|0,c[v>>2]=t,c[v+8>>2]=s,c[v+16>>2]=r,c[v+24>>2]=q,c[v+32>>2]=p,c[v+40>>2]=o,c[v+48>>2]=m,c[v+56>>2]=l,c[v+64>>2]=w,c[v+72>>2]=x,v)|0)|0;i=v;if((c[k+196>>2]|0)!=0){x=c[n>>2]|0;w=c[k+196>>2]|0;if((c[k+196>>2]|0)!=0){y=c[k+264+((c[k+196>>2]|0)-1<<2)>>2]|0}else{y=-1}au(x|0,16040,(v=i,i=i+16|0,c[v>>2]=w,c[v+8>>2]=y,v)|0)|0;i=v;y=0;w=0;x=0;while(1){if((y|0)>=(c[k+196>>2]|0)){break}l=c[k+200+(y<<2)>>2]|0;m=c[k+232+(y<<2)>>2]|0;o=(c[k+264+(y<<2)>>2]|0)-x|0;au(c[n>>2]|0,11312,(v=i,i=i+32|0,c[v>>2]=y,c[v+8>>2]=l,c[v+16>>2]=m,c[v+24>>2]=o,v)|0)|0;i=v;while(1){if((w|0)<(c[k+264+(y<<2)>>2]|0)){z=(w|0)<128}else{z=0}if(!z){break}o=(c[k+296+(w<<3)>>2]|0)-(c[k>>2]|0)|0;m=(c[k+296+(w<<3)+4>>2]|0)-(c[k+8>>2]|0)|0;au(c[n>>2]|0,9304,(v=i,i=i+24|0,c[v>>2]=w,c[v+8>>2]=o,c[v+16>>2]=m,v)|0)|0;i=v;w=w+1|0}y=y+1|0;x=w}}if((c[k+72>>2]|0)!=0){w=c[n>>2]|0;au(w|0,8344,(v=i,i=i+1|0,i=i+7&-8,c[v>>2]=0,v)|0)|0;i=v;w=0;while(1){if((w|0)<(c[k+72>>2]|0)){A=(w|0)<10}else{A=0}if(!A){break}if((c[k+156+(w<<2)>>2]|0)!=0){x=c[n>>2]|0;y=c[k+156+(w<<2)>>2]|0;z=c[k+116+(w<<2)>>2]|0;au(x|0,7200,(v=i,i=i+16|0,c[v>>2]=y,c[v+8>>2]=z,v)|0)|0;i=v}else{z=c[n>>2]|0;y=es(c[k+76+(w<<2)>>2]|0,6)|0;x=c[k+116+(w<<2)>>2]|0;au(z|0,7200,(v=i,i=i+16|0,c[v>>2]=y,c[v+8>>2]=x,v)|0)|0;i=v}w=w+1|0}}w=c[n>>2]|0;au(w|0,6120,(v=i,i=i+1|0,i=i+7&-8,c[v>>2]=0,v)|0)|0;i=v;do{if((c[k+56>>2]|0)!=0){if((c[k+52>>2]|0)>=(d|0)){break}if((c[k+24>>2]|0)==0){if((d|0)<=(c[k+56>>2]|0)){break}}h=c[k+52>>2]|0;f=(c[k+12>>2]|0)-h+1|0}}while(0)}w=((e|0)/80|0)+1|0;A=((f|0)/40|0)+1|0;au(c[n>>2]|0,5024,(v=i,i=i+56|0,c[v>>2]=b,c[v+8>>2]=d,c[v+16>>2]=e,c[v+24>>2]=f,c[v+32>>2]=w,c[v+40>>2]=A,c[v+48>>2]=h,v)|0)|0;i=v;if((e|0)<=0){i=j;return}x=h;while(1){if((x|0)>=(h+f|0)){break}if((k|0)!=0){B=b;while(1){if((B|0)>=(b+e|0)){break}C=46;D=x;while(1){if((D|0)<(x+A|0)){E=(D|0)<(d+f|0)}else{E=0}if(!E){break}F=B;while(1){if((F|0)<(B+w|0)){G=(F|0)<(b+e|0)}else{G=0}if(!G){break}if((d8(c[k+68>>2]|0,F-b+(c[k>>2]|0)|0,D-d+(c[k+8>>2]|0)|0)|0)<(g|0)){C=64}F=F+1|0}D=D+1|0}if((c[k+196>>2]|0)!=0){do{if((C<<24>>24|0)!=36){if((C<<24>>24|0)==83){break}y=0;while(1){if((y|0)>=(c[k+264+((c[k+196>>2]|0)-1<<2)>>2]|0)){break}if((((c[k+296+(y<<3)>>2]|0)-(c[k>>2]|0)|0)/(w|0)|0|0)==((B-b|0)/(w|0)|0|0)){if((((c[k+296+(y<<3)+4>>2]|0)-(c[k+8>>2]|0)|0)/(A|0)|0|0)==((x-d|0)/(A|0)|0|0)){H=4581;break}}y=y+1|0}if((H|0)==4581){H=0;C=((C<<24>>24|0)==64?36:83)&255}}}while(0)}au(c[n>>2]|0,4184,(v=i,i=i+8|0,c[v>>2]=C<<24>>24,v)|0)|0;i=v;B=B+w|0}}if((e|0)<40){y=c[n>>2]|0;au(y|0,24976,(v=i,i=i+1|0,i=i+7&-8,c[v>>2]=0,v)|0)|0;i=v}if((e|0)<40){B=b;while(1){if((B|0)>=(b+e|0)){break}C=46;D=x;while(1){if((D|0)<(x+A|0)){I=(D|0)<(d+f|0)}else{I=0}if(!I){break}F=B;while(1){if((F|0)<(B+w|0)){J=(F|0)<(b+e|0)}else{J=0}if(!J){break}if((d8(a,F,D)|0)<(g|0)){C=64}F=F+1|0}D=D+1|0}au(c[n>>2]|0,4184,(v=i,i=i+8|0,c[v>>2]=C<<24>>24,v)|0)|0;i=v;B=B+w|0}}y=32;C=32;if((k|0)!=0){do{if((x-d+(c[k+8>>2]|0)|0)==(c[k+52>>2]|0)){H=4616}else{if((x-d+(c[k+8>>2]|0)|0)==(c[k+56>>2]|0)){H=4616;break}if((x-d+(c[k+8>>2]|0)|0)==(c[k+60>>2]|0)){H=4616;break}if((x-d+(c[k+8>>2]|0)|0)==(c[k+64>>2]|0)){H=4616}}}while(0);if((H|0)==4616){H=0;C=60}}if((x|0)==(d|0)){H=4620}else{if((x|0)==(h+f-1|0)){H=4620}}if((H|0)==4620){H=0;y=45}au(c[n>>2]|0,24312,(v=i,i=i+16|0,c[v>>2]=C<<24>>24,c[v+8>>2]=y<<24>>24,v)|0)|0;i=v;x=x+A|0}i=j;return}function dk(a){a=a|0;dj(a,0,0,0,0,0,c[(c[7036]|0)+37052>>2]|0);return}function dl(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0;e=i;f=b;b=d;d=(c[7036]|0)+4|0;g=(c[f+12>>2]|0)-(c[f+8>>2]|0)+1|0;if((g|0)<((c[b+12>>2]|0)-(c[b+8>>2]|0)+1|0)){g=(c[b+12>>2]|0)-(c[b+8>>2]|0)+1|0}h=(((c[f+4>>2]|0)-(c[f>>2]|0)|0)/40|0)+1|0;j=(((c[f+12>>2]|0)-(c[f+8>>2]|0)|0)/40|0)+1|0;if((b|0)!=0){k=c[n>>2]|0;au(k|0,22176,(l=i,i=i+1|0,i=i+7&-8,c[l>>2]=0,l)|0)|0;i=l}k=0;while(1){if((k|0)>=(g|0)){break}au(c[n>>2]|0,6120,(l=i,i=i+1|0,i=i+7&-8,c[l>>2]=0,l)|0)|0;i=l;m=(c[f+8>>2]|0)+k|0;o=c[f>>2]|0;while(1){if((o|0)>(c[f+4>>2]|0)){break}p=c[n>>2]|0;q=d8(d,o,m)|0;r=(q|0)<(c[(c[7036]|0)+37052>>2]|0)?0:8;q=r+(d5(d,o,m)|0)|0;au(p|0,4184,(l=i,i=i+8|0,c[l>>2]=a[(c[56]|0)+q|0]|0,l)|0)|0;i=l;o=o+h|0}if((b|0)!=0){q=c[n>>2]|0;au(q|0,24976,(l=i,i=i+1|0,i=i+7&-8,c[l>>2]=0,l)|0)|0;i=l;m=(c[b+8>>2]|0)+k|0;o=c[b>>2]|0;while(1){if((o|0)>(c[b+4>>2]|0)){break}q=c[n>>2]|0;p=d8(d,o,m)|0;r=(p|0)<(c[(c[7036]|0)+37052>>2]|0)?0:8;p=r+(d5(d,o,m)|0)|0;au(q|0,4184,(l=i,i=i+8|0,c[l>>2]=a[(c[56]|0)+p|0]|0,l)|0)|0;i=l;o=o+h|0}}k=k+j|0}i=e;return}function dm(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;b=i;d=a;a=0;e=d+4|0;f=c[d+37080>>2]|0;au(c[n>>2]|0,20728,(g=i,i=i+8|0,c[g>>2]=f,g)|0)|0;i=g;if((cy(d+84|0)|0)!=0){h=c[n>>2]|0;j=au(h|0,6120,(g=i,i=i+1|0,i=i+7&-8,c[g>>2]=0,g)|0)|0;i=g;i=b;return 0}while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){k=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{k=0}if(!k){break}l=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;m=0;while(1){if((m|0)>=(c[l+72>>2]|0)){break}if((f|0)==0){o=4659;break}if((c[l+76+(m<<2)>>2]|0)!=0){if((aC(f|0,c[l+76+(m<<2)>>2]|0)|0)!=0){o=4659;break}}if((c[l+156+(m<<2)>>2]|0)!=0){if((a6(f|0,c[l+156+(m<<2)>>2]|0)|0)!=0){o=4659;break}}m=m+1|0}if((o|0)==4659){o=0}if((m|0)<(c[l+72>>2]|0)){p=c[n>>2]|0;au(p|0,20016,(g=i,i=i+1|0,i=i+7&-8,c[g>>2]=0,g)|0)|0;i=g}L6447:do{if((f|0)!=0){do{if((aC(f|0,c[l+36>>2]|0)|0)!=0){if((c[l+36>>2]|0)>=256){break}if((c[l+36>>2]|0)!=0){o=4671;break L6447}}}while(0);if((aC(f|0,95)|0)!=0){if((c[l+36>>2]|0)==57344){o=4671;break}}if((m|0)<(c[l+72>>2]|0)){o=4671}}else{o=4671}}while(0);if((o|0)==4671){o=0;if((e|0)==0){e=c[l+68>>2]|0}m=c[n>>2]|0;p=a;q=c[l>>2]|0;r=c[l+8>>2]|0;s=(c[l+4>>2]|0)-(c[l>>2]|0)+1|0;t=(c[l+12>>2]|0)-(c[l+8>>2]|0)+1|0;u=c[l+196>>2]|0;v=c[l+72>>2]|0;w=c[l+36>>2]|0;x=es(c[l+36>>2]|0,6)|0;au(m|0,19352,(g=i,i=i+72|0,c[g>>2]=p,c[g+8>>2]=q,c[g+16>>2]=r,c[g+24>>2]=s,c[g+32>>2]=t,c[g+40>>2]=u,c[g+48>>2]=v,c[g+56>>2]=w,c[g+64>>2]=x,g)|0)|0;i=g;if((c[d+37072>>2]&4|0)!=0){dk(l)}}a=a+1|0;c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0);h=c[n>>2]|0;j=au(h|0,6120,(g=i,i=i+1|0,i=i+7&-8,c[g>>2]=0,g)|0)|0;i=g;i=b;return 0}function dn(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;g=i;h=b;b=e;e=f;f=b+28|0;if((e&8|0)!=0){j=0;while(1){if((j|0)>=(c[f+8>>2]|0)){break}k=aa(c[f+4>>2]|0,j)|0;l=(c[f>>2]|0)+k|0;m=0;while(1){if((m|0)>=(c[f+4>>2]|0)){break}a[l]=(d[l]|0)&241;l=l+1|0;m=m+1|0}j=j+1|0}}do{if((c[b+37072>>2]&32|0)!=0){if((c[b+160>>2]|0)==0){break}o=0;while(1){if((o|0)>=(c[f+4>>2]|0)){break}j=(c[f+8>>2]|0)/2|0;if((c[b+160>>2]|0)!=0){k=aa(c[b+164>>2]|0,o)|0;j=j+((k|0)/(c[b+160>>2]|0)|0)|0}m=o;do{if((m|0)<0){p=4702}else{if((m|0)>=(c[f+4>>2]|0)){p=4702;break}if((j|0)<0){p=4702;break}if((j|0)>=(c[f+8>>2]|0)){p=4702;break}k=m+(aa(c[f+4>>2]|0,j)|0)|0;l=(c[f>>2]|0)+k|0;if((d[l]|0|0)<160){break}do{if((m&7|0)<5){if((m&1|0)!=0){break}d9(f,m,j,255,8)}}while(0)}}while(0);if((p|0)==4702){p=0}o=o+1|0}}}while(0);(e&2|0)!=0?1:2;if((cy(b+84|0)|0)==0){while(1){if((c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]|0)!=0){q=(c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]|0)!=(b+96|0)}else{q=0}if(!q){break}k=c[(c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]|0)+8>>2]|0;do{if((c[k+36>>2]|0)==32){p=4718}else{if((c[k+36>>2]|0)==10){p=4718;break}r=4;do{if((c[k+36>>2]|0)==57344){if((e&3|0)==0){break}r=2}}while(0);if((c[k>>2]|0)>1){j=c[k+8>>2]|0;while(1){if((j|0)>(c[k+12>>2]|0)){break}s=(c[k>>2]|0)-1+(aa(j,c[f+4>>2]|0)|0)|0;l=(c[f>>2]|0)+s|0;if((d[l]|0|0)>=160){s=l;a[s]=(d[s]|0|r)&255}j=j+1|0}}if(((c[k+12>>2]|0)+1|0)<(c[f+8>>2]|0)){m=c[k>>2]|0;while(1){if((m|0)>(c[k+4>>2]|0)){break}s=m+(aa((c[k+12>>2]|0)+1|0,c[f+4>>2]|0)|0)|0;l=(c[f>>2]|0)+s|0;if((d[l]|0|0)>=160){s=l;a[s]=(d[s]|0|r)&255}m=m+1|0}}if((c[k+36>>2]|0)==57345){m=0;while(1){if((m|0)>=((c[k+4>>2]|0)-(c[k>>2]|0)+1|0)){break}r=aa((c[k+12>>2]|0)-(c[k+8>>2]|0)+1|0,m)|0;j=(r|0)/((c[k+4>>2]|0)-(c[k>>2]|0)+1|0)|0;r=(c[k>>2]|0)+m+(aa((c[k+8>>2]|0)+j|0,c[f+4>>2]|0)|0)|0;s=(c[f>>2]|0)+r|0;a[s]=(d[s]|0|4)&255;s=(c[k+4>>2]|0)-m+(aa((c[k+8>>2]|0)+j|0,c[f+4>>2]|0)|0)|0;r=(c[f>>2]|0)+s|0;a[r]=(d[r]|0|4)&255;m=m+1|0}}}}while(0);if((p|0)==4718){p=0}c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]=c[c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]>>2]}cz(b+84|0)}if((e&4|0)!=0){e=b+156|0;if((c[b+37072>>2]|0)!=0){q=c[n>>2]|0;k=h;au(q|0,18696,(t=i,i=i+8|0,c[t>>2]=k,t)|0)|0;i=t}o=0;while(1){if((o|0)>=(c[e>>2]|0)){break}k=(c[e+20492+(o<<2)>>2]|0)-(c[e+16396+(o<<2)>>2]|0)+1|0;q=-1;while(1){if((q|0)>=(k+1|0)){break}m=(c[e+16396+(o<<2)>>2]|0)+q|0;do{if((m|0)<0){p=4756}else{if((m|0)>=(c[f+4>>2]|0)){p=4756;break}j=c[e+12+(o<<2)>>2]|0;while(1){if((j|0)>(c[e+12300+(o<<2)>>2]|0)){break}do{if((j|0)>=(c[e+4108+(o<<2)>>2]|0)){if((j|0)>(c[e+8204+(o<<2)>>2]|0)){p=4764;break}if((q|0)<=-1){p=4764;break}if((q|0)>=(k|0)){p=4764;break}}else{p=4764}}while(0);L6580:do{if((p|0)==4764){p=0;r=j;if((c[e+4>>2]|0)!=0){s=aa(c[e+8>>2]|0,m)|0;r=r+((s|0)/(c[e+4>>2]|0)|0)|0}do{if((r|0)>=0){if((r|0)>=(c[f+8>>2]|0)){break}s=m+(aa(c[f+4>>2]|0,r)|0)|0;l=(c[f>>2]|0)+s|0;if((d[l]|0|0)<160){break L6580}if((a[l]&6|0)!=0){break L6580}else{d9(f,m,r,255,6);break L6580}}}while(0)}}while(0);j=j+1|0}}}while(0);if((p|0)==4756){p=0}q=q+1|0}o=o+1|0}}if((c[b+37072>>2]&1|0)==0){u=h;v=f;w=ef(u,v)|0;i=g;return 0}b=c[f+4>>2]|0;o=c[f+8>>2]|0;au(c[n>>2]|0,18024,(t=i,i=i+24|0,c[t>>2]=h,c[t+8>>2]=b,c[t+16>>2]=o,t)|0)|0;i=t;u=h;v=f;w=ef(u,v)|0;i=g;return 0}function dp(a){a=a|0;var b=0,d=0;b=a;a=0;a=(ao(b|0)|0)&255;do{if((aG(b|0)|0)==0){if((am(b|0)|0)!=0){break}d=a;return d|0}}while(0);c[6846]=1;d=a;return d|0}function dq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;g=i;i=i+3200|0;h=g|0;j=g+3072|0;k=b;b=e;e=f;c[6846]=0;f=0;while(1){if((f|0)>=256){break}l=0;while(1){if((l|0)>=3){break}c[h+(f*12|0)+(l<<2)>>2]=f;l=l+1|0}f=f+1|0}m=aA(k|0,9856)|0;if((m|0)==0){k=c[n>>2]|0;au(k|0,21272,(p=i,i=i+8|0,c[p>>2]=46,p)|0)|0;i=p;aO(1)}if((aW(j|0,1,128,m|0)|0)!=128){k=c[n>>2]|0;au(k|0,15960,(p=i,i=i+8|0,c[p>>2]=47,p)|0)|0;i=p;aO(1)}if((d[j|0]|0|0)!=10){k=c[n>>2]|0;au(k|0,11272,(p=i,i=i+8|0,c[p>>2]=48,p)|0)|0;i=p;aO(1)}if((d[j+2|0]|0|0)>1){k=c[n>>2]|0;au(k|0,9256,(p=i,i=i+8|0,c[p>>2]=49,p)|0)|0;i=p;aO(1)}k=d[j+3|0]|0;do{if((k|0)!=1){if((k|0)==8){break}q=c[n>>2]|0;au(q|0,8288,(p=i,i=i+8|0,c[p>>2]=51,p)|0)|0;i=p;aO(1)}}while(0);q=((d[j+9|0]|0)<<8)+(d[j+8|0]|0)-((d[j+5|0]|0)<<8)-(d[j+4|0]|0)+1|0;r=((d[j+11|0]|0)<<8)+(d[j+10|0]|0)-((d[j+7|0]|0)<<8)-(d[j+6|0]|0)+1|0;s=d[j+65|0]|0;t=(d[j+66|0]|0)+((d[j+67|0]|0)<<8)|0;if((e|0)!=0){u=c[n>>2]|0;v=d[j+1|0]|0;w=k;x=q;y=r;z=(d[j+12|0]|0)+((d[j+13|0]|0)<<8)|0;A=(d[j+14|0]|0)+((d[j+15|0]|0)<<8)|0;B=s;C=t;D=(d[j+68|0]|0|0)==1?6096:5008;au(u|0,7096,(p=i,i=i+72|0,c[p>>2]=v,c[p+8>>2]=w,c[p+16>>2]=x,c[p+24>>2]=y,c[p+32>>2]=z,c[p+40>>2]=A,c[p+48>>2]=B,c[p+56>>2]=C,c[p+64>>2]=D,p)|0)|0;i=p}az(c[o>>2]|0)|0;if((s|0)>1){E=0;while(1){if((E|0)>=16){break}f=0;while(1){if((f|0)>=16){break}l=0;while(1){if((l|0)>=3){break}c[h+(((E<<4)+f|0)*12|0)+(l<<2)>>2]=(d[j+((f*3|0)+16+l)|0]|0)>>2;l=l+1|0}f=f+1|0}E=E+1|0}}if((k|0)>7){D=m;aH(D|0,-768|0,2)|0;if((aW(h|0,3,256,m|0)|0)!=256){D=c[n>>2]|0;au(D|0,4144,(p=i,i=i+8|0,c[p>>2]=67,p)|0)|0;i=p;aO(1)}f=0;while(1){if((f|0)>=256){break}l=0;while(1){if((l|0)>=3){break}D=h+(f*12|0)+(l<<2)|0;c[D>>2]=c[D>>2]>>2;l=l+1|0}f=f+1|0}}aH(m|0,128,0)|0;f=ev(aa(q,r)|0)|0;if((f|0)==0){l=c[n>>2]|0;au(l|0,24936,(p=i,i=i+8|0,c[p>>2]=72,p)|0)|0;i=p;aO(1)}l=0;h=0;do{D=0;while(1){if((D|0)>=(s|0)){break}do{C=1;B=dp(m)|0;A=B;if((C&255|0)==192){z=c[n>>2]|0;au(z|0,24296,(p=i,i=i+1|0,i=i+7&-8,c[p>>2]=0,p)|0)|0;i=p}do{if((A&255|0)>=192){if((d[j+2|0]|0|0)!=1){break}C=A&255&63;B=dp(m)|0;A=B}}while(0);if((c[6846]|0)!=0){F=4850;break}z=0;while(1){if((z&255|0)>=(C&255|0)){break}E=0;while(1){if((E|0)>=8){break}if((h|0)<(q|0)){B=(A&255)>>8-k-E&~(-1<>2]|0;B=h;A=l;au(z|0,23488,(p=i,i=i+16|0,c[p>>2]=B,c[p+8>>2]=A,p)|0)|0;i=p;h=q;l=r}D=D+1|0}h=0;l=l+1|0;}while((l|0)<(r|0));aq(m|0)|0;c[b>>2]=f;c[b+4>>2]=q;c[b+8>>2]=r;c[b+12>>2]=1;if((e|0)==0){i=g;return}au(c[n>>2]|0,22096,(p=i,i=i+1|0,i=i+7&-8,c[p>>2]=0,p)|0)|0;i=p;i=g;return}function dr(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;j=i;i=i+80|0;k=j|0;l=j+8|0;m=j+16|0;n=j+24|0;o=j+32|0;p=j+40|0;q=j+48|0;r=j+56|0;s=j+64|0;t=j+72|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;e=f;f=g;g=h;c[o>>2]=P((c[m>>2]|0)-(c[k>>2]|0)|0)|0;c[t>>2]=(c[m>>2]|0)>(c[k>>2]|0)?1:-1;c[p>>2]=P((c[n>>2]|0)-(c[l>>2]|0)|0)|0;c[s>>2]=(c[n>>2]|0)>(c[l>>2]|0)?1:-1;if((c[o>>2]|0)>(c[p>>2]|0)){u=o;v=p;w=q;x=r;y=t;z=s;A=m}else{u=p;v=o;w=r;x=q;y=s;z=t;A=n}if((c[y>>2]|0)<0){ds(k,m);ds(l,n);c[t>>2]=-(c[t>>2]|0);c[s>>2]=-(c[s>>2]|0)}s=(c[v>>2]<<1)-(c[u>>2]|0)|0;t=c[v>>2]<<1;n=(c[v>>2]|0)-(c[u>>2]|0)<<1;c[q>>2]=c[k>>2];c[r>>2]=c[l>>2];l=0;k=0;while(1){if((c[w>>2]|0)>(c[A>>2]|0)){break}u=(d8(e,c[q>>2]|0,c[r>>2]|0)|0)<(f|0);if(((u?1:0)^g&1|0)!=0){k=k+1|0}else{l=l+1|0}u=w;c[u>>2]=(c[u>>2]|0)+1;if((s|0)<=0){s=s+t|0}else{s=s+n|0;u=x;c[u>>2]=(c[u>>2]|0)+(c[z>>2]|0)}}z=(aa(k,g&-2)|0)/(k+l|0)|0;i=j;return z|0}function ds(a,b){a=a|0;b=b|0;var d=0;d=a;a=b;b=c[d>>2]|0;c[d>>2]=c[a>>2];c[a>>2]=b;return}function dt(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;j=i;i=i+80|0;k=j|0;l=j+8|0;m=j+16|0;n=j+24|0;o=j+32|0;p=j+40|0;q=j+48|0;r=j+56|0;s=j+64|0;t=j+72|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;e=f;f=g;g=h;c[o>>2]=P((c[m>>2]|0)-(c[k>>2]|0)|0)|0;c[t>>2]=(c[m>>2]|0)>(c[k>>2]|0)?1:-1;c[p>>2]=P((c[n>>2]|0)-(c[l>>2]|0)|0)|0;c[s>>2]=(c[n>>2]|0)>(c[l>>2]|0)?1:-1;if((c[o>>2]|0)>(c[p>>2]|0)){u=o;v=p;w=q;x=r;y=t;z=s;A=m;B=1;C=0}else{u=p;v=o;w=r;x=q;y=s;z=t;A=n;B=0;C=1}if((c[y>>2]|0)<0){ds(k,m);ds(l,n);c[t>>2]=-(c[t>>2]|0);c[s>>2]=-(c[s>>2]|0)}s=(c[v>>2]<<1)-(c[u>>2]|0)|0;t=c[v>>2]<<1;n=(c[v>>2]|0)-(c[u>>2]|0)<<1;c[q>>2]=c[k>>2];c[r>>2]=c[l>>2];l=0;k=0;u=3;while(1){if((c[w>>2]|0)>(c[A>>2]|0)){break}v=(d8(e,c[q>>2]|0,c[r>>2]|0)|0)<(f|0);if(((v?1:0)^g&1|0)!=0){u=3}else{v=(d8(e,(c[q>>2]|0)+C|0,(c[r>>2]|0)+B|0)|0)<(f|0);u=u&((v?1:0)^g&1|-2);v=(d8(e,(c[q>>2]|0)-C|0,(c[r>>2]|0)-B|0)|0)<(f|0);u=u&(((v?1:0)^g&1)<<1|-3)}if((u|0)!=0){k=k+1|0}else{l=l+1|0}v=w;c[v>>2]=(c[v>>2]|0)+1;if((s|0)<=0){s=s+t|0}else{s=s+n|0;v=x;c[v>>2]=(c[v>>2]|0)+(c[z>>2]|0)}}z=(aa(k,g&-2)|0)/(k+l|0)|0;i=j;return z|0}function du(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;i=a;a=b;b=d;d=e;e=f;f=g;g=h;h=0;if((i|0)<0){i=0}if((a|0)>=(c[e+4>>2]|0)){a=(c[e+4>>2]|0)-1|0}if((b|0)<0){b=0}if((d|0)>=(c[e+8>>2]|0)){d=(c[e+8>>2]|0)-1|0}j=b;L6787:while(1){if((j|0)>(d|0)){k=4930;break}b=i;while(1){if((b|0)>(a|0)){break}l=(d8(e,b,j)|0)<(f|0);h=(h<<24>>24|(l?1:2))&255;if((h<<24>>24&g|0)==(g|0)){k=4925;break L6787}b=b+1|0}j=j+1|0}if((k|0)==4925){m=g&255;n=m;return n|0}else if((k|0)==4930){m=h<<24>>24&g&255;n=m;return n|0}return 0}function dv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=a;a=c;c=e;e=f;f=0;h=0;i=b-g|0;b=d-a|0;if((P(i|0)|0)>=(P(b|0)|0)){j=P(i|0)|0}else{j=P(b|0)|0}d=j;j=0;k=g;l=a;while(1){if((j|0)>(d|0)){break}if((d|0)!=0){k=g+((aa(j,i)|0)/(d|0)|0)|0;l=a+((aa(j,b)|0)/(d|0)|0)|0}m=(d8(c,k,l)|0)<(e|0);n=m?1:0;do{if((h|0)==0){if((n|0)!=1){break}f=f+1|0}}while(0);h=n;j=j+1|0}return f|0}function dw(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=b;b=c;if((d|0)==0){e=0;f=e;return f|0}do{if((b|0)==45){g=a6(d|0,9600)|0;if((g|0)==0){break}e=1;f=e;return f|0}else{g=a6(d|0,es(b,5)|0)|0;if((g|0)!=0){e=1;f=e;return f|0}g=d;L6830:while(1){if((g|0)==0){h=4968;break}g=aC(g+1|0,45)|0;if((g|0)==0){h=4960;break}if((a[g|0]|0)==0){h=4960;break}if((a[g+1|0]|0)==0){h=4960;break}do{if((a[g-1|0]|0)!=45){if((a[g+1|0]|0)==45){break}if((a[g-1|0]|0)<=(b|0)){if((a[g+1|0]|0)>=(b|0)){h=4966;break L6830}}continue L6830}}while(0)}if((h|0)==4960){e=0;f=e;return f|0}else if((h|0)==4966){e=1;f=e;return f|0}else if((h|0)==4968){break}}}while(0);e=0;f=e;return f|0}function dx(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0;f=i;g=b;b=d;d=e;e=c[7036]|0;if((c[g+72>>2]|0)>10){h=4979}else{if((c[g+72>>2]|0)<0){h=4979}}if((h|0)==4979){j=c[n>>2]|0;au(j|0,21064,(k=i,i=i+1|0,i=i+7&-8,c[k>>2]=0,k)|0)|0;i=k;c[g+72>>2]=0}if((b|0)==0){j=c[n>>2]|0;au(j|0,15904,(k=i,i=i+1|0,i=i+7&-8,c[k>>2]=0,k)|0)|0;i=k;l=0;m=l;i=f;return m|0}if((a[b|0]|0)==0){j=c[n>>2]|0;o=c[g>>2]|0;p=c[g+8>>2]|0;au(j|0,11200,(k=i,i=i+16|0,c[k>>2]=o,c[k+8>>2]=p,k)|0)|0;i=k;l=0;m=l;i=f;return m|0}if((c[e+37088>>2]|0)!=0){do{if((a[b|0]|0)>0){if((a[b+1|0]|0)!=0){break}if((dw(c[e+37088>>2]|0,a[b|0]|0)|0)!=0){break}l=0;m=l;i=f;return m|0}}while(0)}d=(aa(100-(c[e+44>>2]|0)|0,d)|0)/100|0;e=0;while(1){if((e|0)>=(c[g+72>>2]|0)){break}if((c[g+156+(e<<2)>>2]|0)!=0){if((bh(b|0,c[g+156+(e<<2)>>2]|0)|0)==0){h=4995;break}}e=e+1|0}do{if((c[g+72>>2]|0)>0){if((e|0)>=(c[g+72>>2]|0)){break}if((d|0)<=(c[g+116+(e<<2)>>2]|0)){l=0;m=l;i=f;return m|0}if((c[g+156+(e<<2)>>2]|0)!=0){ew(c[g+156+(e<<2)>>2]|0)}q=e;while(1){if((q|0)>=((c[g+72>>2]|0)-1|0)){break}c[g+76+(q<<2)>>2]=c[g+76+(q+1<<2)>>2];c[g+156+(q<<2)>>2]=c[g+156+(q+1<<2)>>2];c[g+116+(q<<2)>>2]=c[g+116+(q+1<<2)>>2];q=q+1|0}k=g+72|0;c[k>>2]=(c[k>>2]|0)-1}}while(0);e=0;while(1){if((e|0)>=(c[g+72>>2]|0)){break}if((d|0)>(c[g+116+(e<<2)>>2]|0)){h=5013;break}e=e+1|0}if((c[g+72>>2]|0)<9){h=g+72|0;c[h>>2]=(c[h>>2]|0)+1}q=(c[g+72>>2]|0)-1|0;while(1){if((q|0)<=(e|0)){break}c[g+76+(q<<2)>>2]=c[g+76+(q-1<<2)>>2];c[g+156+(q<<2)>>2]=c[g+156+(q-1<<2)>>2];c[g+116+(q<<2)>>2]=c[g+116+(q-1<<2)>>2];q=q-1|0}if((e|0)<(c[g+72>>2]|0)){c[g+76+(e<<2)>>2]=0;c[g+156+(e<<2)>>2]=ev((eA(b|0)|0)+1|0)|0;if((c[g+156+(e<<2)>>2]|0)!=0){q=c[g+156+(e<<2)>>2]|0;h=b;k=(eA(b|0)|0)+1|0;eB(q|0,h|0,k)|0}c[g+116+(e<<2)>>2]=d}if((e|0)==0){c[g+36>>2]=c[g+76>>2]}l=0;m=l;i=f;return m|0}function dy(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0;e=i;f=a;a=b;b=d;d=c[7036]|0;do{if((f|0)!=0){if((c[f+72>>2]|0)>10){g=5038;break}if((c[f+72>>2]|0)<0){g=5038}}else{g=5038}}while(0);if((g|0)==5038){h=c[n>>2]|0;au(h|0,9216,(j=i,i=i+1|0,i=i+7&-8,c[j>>2]=0,j)|0)|0;i=j;do{if((f|0)!=0){if((c[d+37072>>2]&6|0)==0){break}dk(f)}}while(0);c[f+72>>2]=0}do{if((a|0)!=0){if((a|0)==57344){break}do{if((c[d+37088>>2]|0)!=0){if((dw(c[d+37088>>2]|0,a)|0)!=0){break}k=0;l=k;i=e;return l|0}}while(0);do{if((c[f+40>>2]|0)!=32){if((c[f+40>>2]|0)==0){break}h=er(a,c[f+40>>2]|0)|0;if((h|0)==(a|0)){if((c[d+37072>>2]&7|0)!=0){m=c[n>>2]|0;o=es(a,6)|0;p=c[f>>2]|0;q=c[f+8>>2]|0;r=b;au(m|0,7040,(j=i,i=i+32|0,c[j>>2]=o,c[j+8>>2]=p,c[j+16>>2]=q,c[j+24>>2]=r,j)|0)|0;i=j}}a=h}}while(0);b=(aa(100-(c[d+44>>2]|0)|0,b)|0)/100|0;h=0;while(1){if((h|0)>=(c[f+72>>2]|0)){break}if((a|0)==(c[f+76+(h<<2)>>2]|0)){g=5059;break}h=h+1|0}do{if((c[f+72>>2]|0)>0){if((h|0)>=(c[f+72>>2]|0)){break}if((b|0)<=(c[f+116+(h<<2)>>2]|0)){k=0;l=k;i=e;return l|0}if((c[f+156+(h<<2)>>2]|0)!=0){ew(c[f+156+(h<<2)>>2]|0)}s=h;while(1){if((s|0)>=((c[f+72>>2]|0)-1|0)){break}c[f+76+(s<<2)>>2]=c[f+76+(s+1<<2)>>2];c[f+156+(s<<2)>>2]=c[f+156+(s+1<<2)>>2];c[f+116+(s<<2)>>2]=c[f+116+(s+1<<2)>>2];s=s+1|0}r=f+72|0;c[r>>2]=(c[r>>2]|0)-1}}while(0);h=0;while(1){if((h|0)>=(c[f+72>>2]|0)){break}if((b|0)>(c[f+116+(h<<2)>>2]|0)){g=5076;break}h=h+1|0}if((c[f+72>>2]|0)<9){r=f+72|0;c[r>>2]=(c[r>>2]|0)+1}s=(c[f+72>>2]|0)-1|0;while(1){if((s|0)<=(h|0)){break}c[f+76+(s<<2)>>2]=c[f+76+(s-1<<2)>>2];c[f+156+(s<<2)>>2]=c[f+156+(s-1<<2)>>2];c[f+116+(s<<2)>>2]=c[f+116+(s-1<<2)>>2];s=s-1|0}if((h|0)<(c[f+72>>2]|0)){c[f+76+(h<<2)>>2]=a;c[f+156+(s<<2)>>2]=0;c[f+116+(h<<2)>>2]=b}if((h|0)==0){c[f+36>>2]=a}k=0;l=k;i=e;return l|0}}while(0);au(c[n>>2]|0,8256,(j=i,i=i+1|0,i=i+7&-8,c[j>>2]=0,j)|0)|0;i=j;k=0;l=k;i=e;return l|0}function dz(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=a;a=b;if((c[e+72>>2]|0)>10){f=5097}else{if((c[e+72>>2]|0)<0){f=5097}}if((f|0)==5097){b=c[n>>2]|0;au(b|0,6040,(b=i,i=i+1|0,i=i+7&-8,c[b>>2]=0,b)|0)|0;i=b;c[e+72>>2]=0}b=0;while(1){if((b|0)>=(c[e+72>>2]|0)){f=5104;break}if((a|0)==(c[e+76+(b<<2)>>2]|0)){f=5101;break}b=b+1|0}if((f|0)==5104){g=0;h=g;i=d;return h|0}else if((f|0)==5101){g=c[e+116+(b<<2)>>2]|0;h=g;i=d;return h|0}return 0}function dA(a,b,d,e,f,g,h,i,j,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0;l=a;a=b;b=d;d=e;e=f;f=g;g=h;h=i;i=j;j=k;do{if((d|0)>=0){if((f|0)<0){break}if((d|0)>=(c[l+4>>2]|0)){break}if((f|0)>=(c[l+8>>2]|0)){break}L7036:while(1){do{if((c[a>>2]|0)>=(d|0)){if((c[b>>2]|0)<(f|0)){m=0;break}if((c[a>>2]|0)>(e|0)){m=0;break}m=(c[b>>2]|0)<=(g|0)}else{m=0}}while(0);if(!m){n=5133;break}if((d8(l,c[a>>2]|0,c[b>>2]|0)|0)<(h|0)){o=j}else{o=i}k=o;switch(k|0){case 1:{p=b;c[p>>2]=(c[p>>2]|0)-1;break};case 2:{p=b;c[p>>2]=(c[p>>2]|0)+1;break};case 4:{p=a;c[p>>2]=(c[p>>2]|0)-1;break};case 3:{p=a;c[p>>2]=(c[p>>2]|0)+1;break};case 7:{break};default:{n=5128;break L7036}}if((k|0)==7){n=5130;break}}if((n|0)==5128){aE(4136,24920,507,25312)}else if((n|0)==5130){return}else if((n|0)==5133){return}}}while(0);return}function dB(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;g=a;a=b;b=c;c=d;d=e;e=f;f=a;h=b;i=1;j=0;if((c|0)>(a|0)){k=a;l=c}else{l=a;k=c}if((d|0)>(b|0)){m=b;n=d}else{n=b;m=d}o=(d8(g,f,h)|0)<(e|0);p=o?1:0;L7072:while(1){o=(d8(g,f+j|0,h-i|0)|0)<(e|0);do{if((p|0)==((o?1:0)|0)){if((f+j|0)<(k|0)){q=5149;break}if((f+j|0)>(l|0)){q=5149;break}if((h-i|0)<(m|0)){q=5149;break}if((h-i|0)>(n|0)){q=5149;break}r=j;j=-i|0;i=r;f=f+i|0;h=h+j|0}else{q=5149}}while(0);if((q|0)==5149){q=0;r=i;i=-j|0;j=r}if((f|0)==(c|0)){if((h|0)==(d|0)){q=5152;break}}do{if((f|0)==(a|0)){if((h|0)!=(b|0)){break}if((i|0)==1){q=5156;break L7072}}}while(0)}if((q|0)==5152){s=1;t=s;return t|0}else if((q|0)==5156){s=0;t=s;return t|0}return 0}function dC(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;i=a;a=b;b=d;d=e;e=f;f=g;g=0;if((a|0)<0){j=g;return j|0}if((b|0)<0){j=g;return j|0}if((a|0)>=(c[i+4>>2]|0)){j=g;return j|0}if((b|0)>=(c[i+8>>2]|0)){j=g;return j|0}k=h;if((k|0)==3){while(1){if((g|0)<(d|0)){l=(a|0)<(c[i+4>>2]|0)}else{l=0}if(!l){break}if(((d8(i,a,b)|0)<(e|0)^f|0)!=0){m=5198;break}g=g+1|0;a=a+1|0}}else if((k|0)==1){while(1){if((g|0)<(d|0)){n=(b|0)>=0}else{n=0}if(!n){break}if(((d8(i,a,b)|0)<(e|0)^f|0)!=0){m=5171;break}g=g+1|0;b=b-1|0}}else if((k|0)==4){while(1){if((g|0)<(d|0)){o=(a|0)>=0}else{o=0}if(!o){break}if(((d8(i,a,b)|0)<(e|0)^f|0)!=0){m=5189;break}g=g+1|0;a=a-1|0}}else if((k|0)==2){while(1){if((g|0)<(d|0)){p=(b|0)<(c[i+8>>2]|0)}else{p=0}if(!p){break}if(((d8(i,a,b)|0)<(e|0)^f|0)!=0){m=5180;break}g=g+1|0;b=b+1|0}}j=g;return j|0}function dD(b,e,f,g,h,j,k,l,m,o){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;p=i;q=b;b=e;e=f;f=g;g=h;h=j;j=k;k=l;l=m;m=o;o=0;r=0;s=1024;t=0;do{if((b|0)>=0){if((e|0)<0){break}if((b|0)>=(c[q+4>>2]|0)){break}if((e|0)>=(c[q+8>>2]|0)){break}if(((d5(q,b,e)|0)&l|0)==(l|0)){u=0;v=u;i=p;return v|0}w=(d8(q,b,e)|0)<(k|0);x=w?0:1;w=ev(s<<2<<1)|0;if((w|0)==0){y=c[n>>2]|0;au(y|0,24264,(z=i,i=i+1|0,i=i+7&-8,c[z>>2]=0,z)|0)|0;i=z;u=0;v=u;i=p;return v|0}c[w>>2]=b;c[w+4>>2]=e;t=1;while(1){if((t|0)==0){break}if((t|0)>(r|0)){r=t}t=t-1|0;b=c[w+(t<<1<<2)>>2]|0;e=c[w+((t<<1)+1<<2)>>2]|0;if((e|0)<(c[h>>2]|0)){c[h>>2]=e}if((e|0)>(c[j>>2]|0)){c[j>>2]=e}while(1){if((b|0)>0){y=(d8(q,b-1|0,e)|0)<(k|0);A=(x|0)==((y?0:1)|0)}else{A=0}if(!A){break}b=b-1|0}if(((d5(q,b,e)|0)&l|0)==(l|0)){continue}y=-1;while(1){if((y|0)>=2){break}do{if((m|0)!=0){if((b|0)>=(c[q+4>>2]|0)){B=5248;break}if((b-1|0)<=0){B=5248;break}if((e+y|0)<0){B=5248;break}if((e+y|0)>=(c[q+8>>2]|0)){B=5248;break}C=(d8(q,b,e+y|0)|0)<(k|0);if((x|0)==((C?0:1)|0)){B=5248;break}C=(d8(q,b-1|0,e+y|0)|0)<(k|0);if((x|0)!=((C?0:1)|0)){B=5248;break}if(((d5(q,b-1|0,e+y|0)|0)&l|0)==(l|0)){B=5248;break}if((t+1|0)>=(s|0)){c[6842]=c[6842]|1;break}else{c[w+(t<<1<<2)>>2]=b-1;c[w+((t<<1)+1<<2)>>2]=e+y;t=t+1|0;B=5248;break}}else{B=5248}}while(0);if((B|0)==5248){B=0}y=y+2|0}if((b|0)<(c[f>>2]|0)){c[f>>2]=b}while(1){if((b|0)<(c[q+4>>2]|0)){C=(d8(q,b,e)|0)<(k|0);D=(x|0)==((C?0:1)|0)}else{D=0}if(!D){break}C=b+(aa(e,c[q+4>>2]|0)|0)|0;E=(c[q>>2]|0)+C|0;a[E]=(d[E]|0|l&7)&255;o=o+1|0;if((b|0)>(c[g>>2]|0)){c[g>>2]=b}y=-1;while(1){if((y|0)>=2){break}E=(d8(q,b,e+y|0)|0)<(k|0);do{if((x|0)==((E?0:1)|0)){C=(d8(q,b-1|0,e)|0)<(k|0);if((x|0)==((C?0:1)|0)){C=(d8(q,b-1|0,e+y|0)|0)<(k|0);if((x|0)==((C?0:1)|0)){B=5269;break}}if(((d5(q,b,e+y|0)|0)&l|0)==(l|0)){B=5269;break}if((e+y|0)>=(c[q+8>>2]|0)){B=5269;break}if((e+y|0)<0){B=5269;break}if((t+1|0)>=(s|0)){c[6842]=c[6842]|1;break}else{c[w+(t<<1<<2)>>2]=b;c[w+((t<<1)+1<<2)>>2]=e+y;t=t+1|0;B=5269;break}}else{B=5269}}while(0);if((B|0)==5269){B=0}y=y+2|0}b=b+1|0}y=-1;while(1){if((y|0)>=2){break}do{if((m|0)!=0){if((b|0)>=(c[q+4>>2]|0)){B=5288;break}if((b-1|0)<=0){B=5288;break}if((e+y|0)<0){B=5288;break}if((e+y|0)>=(c[q+8>>2]|0)){B=5288;break}E=(d8(q,b-1|0,e)|0)<(k|0);if((x|0)!=((E?0:1)|0)){B=5288;break}E=(d8(q,b,e)|0)<(k|0);if((x|0)==((E?0:1)|0)){B=5288;break}E=(d8(q,b-1|0,e+y|0)|0)<(k|0);if((x|0)==((E?0:1)|0)){B=5288;break}E=(d8(q,b,e+y|0)|0)<(k|0);if((x|0)!=((E?0:1)|0)){B=5288;break}if(((d5(q,b,e+y|0)|0)&l|0)==(l|0)){B=5288;break}if((t+1|0)>=(s|0)){c[6842]=c[6842]|1;break}else{c[w+(t<<1<<2)>>2]=b;c[w+((t<<1)+1<<2)>>2]=e+y;t=t+1|0;B=5288;break}}else{B=5288}}while(0);if((B|0)==5288){B=0}y=y+2|0}}if((c[6842]|0)==1){c[6842]=c[6842]|2;x=c[n>>2]|0;au(x|0,23448,(z=i,i=i+1|0,i=i+7&-8,c[z>>2]=0,z)|0)|0;i=z}ew(w);u=o;v=u;i=p;return v|0}}while(0);u=0;v=u;i=p;return v|0}function dE(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;i=i+32|0;h=g|0;j=g+8|0;k=g+16|0;l=g+24|0;m=a;a=b;b=d;d=e;e=f;do{if((a|0)>=0){if((b|0)<0){break}if((a|0)>=(c[m+4>>2]|0)){break}if((b|0)>=(c[m+8>>2]|0)){break}if(((d5(m,a,b)|0)&e|0)==(e|0)){break}f=a;c[j>>2]=f;c[h>>2]=f;f=b;c[l>>2]=f;c[k>>2]=f;n=dD(m,a,b,h,j,k,l,d,e,c[(c[7036]|0)+44>>2]&1)|0;o=n;i=g;return o|0}}while(0);n=0;o=n;i=g;return o|0}function dF(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;l=i;m=b;b=e;e=f;f=g;g=h;h=j;j=k;k=1;o=1;p=1;q=0;r=0;s=c[m+68>>2]|0;do{if((b|0)>=0){if((e|0)<0){break}if((b|0)>=(c[s+4>>2]|0)){break}if((e|0)>=(c[s+8>>2]|0)){break}t=j;u=(d8(s,b,e)|0)<(f|0);v=u?0:1;u=(d8(s,b+(c[256+(t<<3)>>2]|0)|0,e+(c[260+(t<<3)>>2]|0)|0)|0)<(f|0);w=u?0:1;if((v|0)==(w|0)){u=c[n>>2]|0;au(u|0,22048,(u=i,i=i+1|0,i=i+7&-8,c[u>>2]=0,u)|0)|0;i=u;x=-7;y=x;i=l;return y|0}if((c[m+196>>2]|0)>=8){x=-2;y=x;i=l;return y|0}if((c[m+196>>2]|0)==0){z=0}else{z=c[m+264+(c[m+196>>2]<<2)>>2]|0}w=z;u=z;A=m+196|0;c[A>>2]=(c[A>>2]|0)+1;A=b;B=e;L7304:while(1){if((k|0)!=0){C=b+(aa(e,c[s+4>>2]|0)|0)|0;D=(c[s>>2]|0)+C|0;a[D]=(d[D]|0|g&7)&255}do{if((k|0)!=0){if(((p|0)%(o|0)|0|0)!=0){break}if((w|0)>=128){c[m+264+((c[m+196>>2]|0)-1<<2)>>2]=w;D=m;bW(D,1)|0;w=c[m+264+((c[m+196>>2]|0)-1<<2)>>2]|0;o=(((c[m+12>>2]|0)-(c[m+8>>2]|0)+(c[m+4>>2]|0)-(c[m>>2]|0)|0)/32|0)+1|0}if((w|0)<128){c[m+296+(w<<3)>>2]=b;c[m+296+(w<<3)+4>>2]=e;if((w|0)>1){E=(c[m+296+(w-1<<3)>>2]|0)-(c[m+296+(w-2<<3)>>2]|0)|0;F=(c[m+296+(w-1<<3)+4>>2]|0)-(c[m+296+(w-2<<3)+4>>2]|0)|0;D=b-(c[m+296+(w-1<<3)>>2]|0)|0;C=e-(c[m+296+(w-1<<3)+4>>2]|0)|0;do{if(((aa(E,C)|0)-(aa(F,D)|0)|0)==0){if((aa(E,D)|0)<0){break}if((aa(F,C)|0)<0){break}w=w-1|0;c[m+296+(w<<3)>>2]=b;c[m+296+(w<<3)+4>>2]=e}}while(0)}w=w+1|0;c[m+264+((c[m+196>>2]|0)-1<<2)>>2]=w}}}while(0);k=0;do{if((b|0)==(A|0)){if((e|0)!=(B|0)){break}if((P(q|0)|0)>=8){break L7304}}}while(0);E=b+(c[256+(t<<3)>>2]|0)|0;F=e+(c[260+(t<<3)>>2]|0)|0;do{if((E|0)<0){G=5346}else{if((F|0)<0){G=5346;break}if((E|0)>=(c[s+4>>2]|0)){G=5346;break}if((F|0)>=(c[s+8>>2]|0)){G=5346;break}C=(d8(s,E,F)|0)<(f|0);if((v|0)!=((C?0:1)|0)){G=5346;break}b=E;e=F;t=t+6-h&7;q=q+(2-h-4)|0;p=p+1|0;if((b|0)<(c[m>>2]|0)){c[m>>2]=b}if((b|0)>(c[m+4>>2]|0)){c[m+4>>2]=b}if((e|0)<(c[m+8>>2]|0)){c[m+8>>2]=e}if((e|0)>(c[m+12>>2]|0)){c[m+12>>2]=e}k=1}}while(0);if((G|0)==5346){G=0;do{if((e|0)==(F|0)){if((E|0)<0){break}if((E|0)>=(c[s+4>>2]|0)){break}C=E+(aa(F,c[s+4>>2]|0)|0)|0;D=(c[s>>2]|0)+C|0;a[D]=(d[D]|0|g&7)&255}}while(0);t=t+2-h&7;q=q+(2-h)|0;D=t+h|0;if((D|0)==8){r=r+b|0}else if((D|0)==4){r=r-(b-1)|0}}}c[m+200+((c[m+196>>2]|0)-1<<2)>>2]=r;c[m+232+((c[m+196>>2]|0)-1<<2)>>2]=p-1;if((w-u|0)>1){w=w-1|0;p=p-1|0;c[m+264+((c[m+196>>2]|0)-1<<2)>>2]=w}x=p;y=x;i=l;return y|0}}while(0);x=0;y=x;i=l;return y|0}function dG(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0;i=b;b=e;e=f;f=h;h=g;while(1){if((h|0)>(f|0)){break}g=b;while(1){if((g|0)>(e|0)){break}j=g+(aa(h,c[i+4>>2]|0)|0)|0;k=(c[i>>2]|0)+j|0;a[k]=(d[k]|0)&-8&255;g=g+1|0}h=h+1|0}return}function dH(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=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;j=i;i=i+48|0;k=j|0;l=j+16|0;m=j+24|0;o=j+32|0;p=j+40|0;q=a;a=d;d=f;f=g;g=h;h=0;r=b-q+1|0;b=e-a+1|0;if((g|0)!=0){c[g>>2]=0}do{if((r|0)>=3){if((b|0)<3){break}e=ev(aa(r,b)|0)|0;c[k>>2]=e;if((e|0)==0){e=c[n>>2]|0;s=aa(r,b)|0;au(e|0,20656,(e=i,i=i+8|0,c[e>>2]=s,e)|0)|0;i=e;t=0;u=t;i=j;return u|0}if((bS(d,q,a,r,b,k,aa(r,b)|0)|0)!=0){ew(c[k>>2]|0);t=-1;u=t;i=j;return u|0}e=0;while(1){if((e|0)>=(c[k+4>>2]|0)){break}if((d8(k,e,0)|0)>=(f|0)){s=e;v=f;dE(k,s,0,v,7)|0}if((d8(k,e,(c[k+8>>2]|0)-1|0)|0)>=(f|0)){v=e;s=(c[k+8>>2]|0)-1|0;w=f;dE(k,v,s,w,7)|0}e=e+1|0}w=0;while(1){if((w|0)>=(c[k+8>>2]|0)){break}if((d8(k,0,w)|0)>=(f|0)){s=w;v=f;dE(k,0,s,v,7)|0}if((d8(k,(c[k+4>>2]|0)-1|0,w)|0)>=(f|0)){v=(c[k+4>>2]|0)-1|0;s=w;x=f;dE(k,v,s,x,7)|0}w=w+1|0}e=0;while(1){if((e|0)>=(c[k+4>>2]|0)){break}w=0;while(1){if((w|0)>=(c[k+8>>2]|0)){break}if(((d5(k,e,w)|0)&7|0)!=7){if((d8(k,e,w)|0)>=(f|0)){x=e;c[m>>2]=x;c[l>>2]=x;x=w;c[p>>2]=x;c[o>>2]=x;x=dD(k,e,w,l,m,o,p,f,7,c[(c[7036]|0)+44>>2]&1)|0;if((x|0)>1){y=5414}else{if((aa(r,b)|0)<=40){y=5414}}if((y|0)==5414){y=0;h=h+1|0;if((g|0)!=0){s=0;while(1){if((s|0)<(c[g>>2]|0)){z=(s|0)<3}else{z=0}if(!z){break}if((c[g+4+(s*28|0)>>2]|0)<(x|0)){y=5420;break}s=s+1|0}if((y|0)==5420){y=0}v=1;while(1){if((v|0)<(s|0)){break}A=g+4+((v+1|0)*28|0)|0;B=g+4+(v*28|0)|0;c[A>>2]=c[B>>2];c[A+4>>2]=c[B+4>>2];c[A+8>>2]=c[B+8>>2];c[A+12>>2]=c[B+12>>2];c[A+16>>2]=c[B+16>>2];c[A+20>>2]=c[B+20>>2];c[A+24>>2]=c[B+24>>2];v=v-1|0}if((s|0)<3){c[g+4+(s*28|0)>>2]=x;c[g+4+(s*28|0)+4>>2]=e;c[g+4+(s*28|0)+8>>2]=w;c[g+4+(s*28|0)+12>>2]=c[l>>2];c[g+4+(s*28|0)+16>>2]=c[o>>2];c[g+4+(s*28|0)+20>>2]=c[m>>2];c[g+4+(s*28|0)+24>>2]=c[p>>2]}v=g|0;c[v>>2]=(c[v>>2]|0)+1}}}}w=w+1|0}e=e+1|0}ew(c[k>>2]|0);t=h;u=t;i=j;return u|0}}while(0);t=0;u=t;i=j;return u|0}function dI(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0;h=i;i=i+16|0;j=h|0;k=a;a=b;b=d;d=e;e=f;f=g;g=0;do{if((a|0)>=(k|0)){if((d|0)<(b|0)){break}l=ev(aa(a-k+1|0,d-b+1|0)|0)|0;c[j>>2]=l;if((l|0)==0){l=c[n>>2]|0;m=aa(a-k+1|0,d-b+1|0)|0;au(l|0,19968,(l=i,i=i+8|0,c[l>>2]=m,l)|0)|0;i=l;o=0;p=o;i=h;return p|0}if((bS(e,k,b,a-k+1|0,d-b+1|0,j,aa(a-k+1|0,d-b+1|0)|0)|0)!=0){ew(c[j>>2]|0);o=-1;p=o;i=h;return p|0}l=0;while(1){if((l|0)>=(c[j+4>>2]|0)){break}m=0;while(1){if((m|0)>=(c[j+8>>2]|0)){break}if((d8(j,l,m)|0)<(f|0)){if(((d5(j,l,m)|0)&7|0)!=7){g=g+1|0;q=l;r=m;s=f;dE(j,q,r,s,7)|0}}m=m+1|0}l=l+1|0}ew(c[j>>2]|0);o=g;p=o;i=h;return p|0}}while(0);o=0;p=o;i=h;return p|0}function dJ(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;g=i;h=a;a=b;b=d;d=e;e=f;f=0;j=0;k=0;l=c[a>>2]|0;m=c[a+8>>2]|0;o=c[d>>2]|0;p=c[d+8>>2]|0;q=(c[a+4>>2]|0)-(c[a>>2]|0)+1|0;r=(c[d+4>>2]|0)-(c[d>>2]|0)+1|0;if((q|0)>(r|0)){s=q}else{s=r}t=s;s=(c[a+12>>2]|0)-(c[a+8>>2]|0)+1|0;u=(c[d+12>>2]|0)-(c[d+8>>2]|0)+1|0;if((s|0)>(u|0)){v=s}else{v=u}w=v;do{if((P(q-r|0)|0)<=(((t|0)/16|0)+1|0)){if((P(s-u|0)|0)>(((w|0)/16|0)+1|0)){break}do{if((c[a+12>>2]<<1|0)>((c[a+60>>2]|0)+(c[a+64>>2]|0)|0)){if((c[d+12>>2]<<1|0)>=((c[d+60>>2]|0)+(c[d+64>>2]|0)|0)){break}k=k+128|0}}while(0);do{if((c[a+8>>2]<<1|0)>((c[a+52>>2]|0)+(c[a+56>>2]|0)|0)){if((c[d+8>>2]<<1|0)>=((c[d+52>>2]|0)+(c[d+56>>2]|0)|0)){break}k=k+128|0}}while(0);v=0;while(1){if((v|0)>=(w|0)){break}x=0;while(1){if((x|0)>=(t|0)){break}y=(d8(h,l+x|0,m+v|0)|0)<(e|0);z=y?1:0;y=8;A=(d8(b,o+x|0,p+v|0)|0)<(e|0);B=8;if((z|0)==((A?1:0)|0)){j=j+8|0}else{z=-1;y=-1;while(1){if((y|0)>=2){break}B=-1;while(1){if((B|0)>=2){break}if((y|0)!=0){C=5495}else{if((B|0)!=0){C=5495}}if((C|0)==5495){C=0;A=(d8(h,l+x+(aa(y,((t|0)/32|0)+1|0)|0)|0,m+v+(aa(B,((w|0)/32|0)+1|0)|0)|0)|0)<(e|0);D=(d8(b,o+x+(aa(y,((t|0)/32|0)+1|0)|0)|0,p+v+(aa(B,((w|0)/32|0)+1|0)|0)|0)|0)<(e|0);if(((A?1:0)|0)!=((D?1:0)|0)){z=z+1|0}}B=B+1|0}y=y+1|0}if((z|0)>0){k=k+(z<<4)|0}else{k=k+1|0}}x=x+1|0}v=v+1|0}if((j+k|0)!=0){f=((k*100|0)+(j+k-1)|0)/(j+k|0)|0}else{f=99}do{if((f|0)<10){if((c[(c[7036]|0)+37072>>2]&7|0)==0){break}v=c[n>>2]|0;x=f;y=j;B=k;au(v|0,19304,(v=i,i=i+24|0,c[v>>2]=x,c[v+8>>2]=y,c[v+16>>2]=B,v)|0)|0;i=v}}while(0);E=f;F=E;i=g;return F|0}}while(0);E=100;F=E;i=g;return F|0}function dK(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;e=i;i=i+1344|0;f=e|0;g=e+8|0;h=e+24|0;j=b;b=d;d=57344;c[f>>2]=32;k=c[j+68>>2]|0;l=h;m=j;eB(l|0,m|0,1320)|0;do{if((c[j+72>>2]|0)>0){if((c[j+116>>2]|0)<(c[(c[7036]|0)+37092>>2]|0)){break}if((d|0)!=57344){break}d=c[j+76>>2]|0}}while(0);c[h>>2]=c[j>>2];c[h+8>>2]=c[j+8>>2];c[h+4>>2]=c[j+4>>2];c[h+12>>2]=c[j+12>>2];m=c[j+16>>2]|0;l=c[j+20>>2]|0;o=c[j>>2]|0;p=c[j+8>>2]|0;q=c[j+4>>2]|0;r=c[j+12>>2]|0;while(1){if(((du(o,q,p,p,k,b,1)|0)<<24>>24|0)!=1){s=(p+1|0)<(r|0)}else{s=0}if(!s){break}p=p+1|0}while(1){if(((du(o,q,r,r,k,b,1)|0)<<24>>24|0)!=1){t=(p+1|0)<(r|0)}else{t=0}if(!t){break}r=r-1|0}t=q-o+1|0;s=r-p+1|0;do{if((c[f>>2]|0)==32){if((s|0)<=5){break}if((c[j+28>>2]|0)<=1){break}u=j;v=b;cJ(u,v,2,f)|0}}while(0);v=c[j+24>>2]|0;p=c[j+8>>2]|0;s=r-p+1|0;while(1){if(((du(o,q,p,p,k,b,1)|0)<<24>>24|0)==0){w=(p+1|0)<(r|0)}else{w=0}if(!w){break}p=p+1|0}while(1){if(((du(o,q,r,r,k,b,1)|0)<<24>>24|0)==0){x=(p+1|0)<(r|0)}else{x=0}if(!x){break}r=r-1|0}while(1){if(((du(o,o,p,r,k,b,1)|0)<<24>>24|0)==0){y=(o+1|0)<(q|0)}else{y=0}if(!y){break}o=o+1|0}while(1){if(((du(q,q,p,r,k,b,1)|0)<<24>>24|0)==0){z=(o+1|0)<(q|0)}else{z=0}if(!z){break}q=q-1|0}t=q-o+1|0;s=r-p+1|0;c[j>>2]=o;c[j+8>>2]=p;c[j+4>>2]=q;c[j+12>>2]=r;do{if((m|0)<(o|0)){A=5563}else{if((m|0)>(q|0)){A=5563;break}if((l|0)<(p|0)){A=5563;break}if((l|0)>(r|0)){A=5563;break}if((d8(k,m,l)|0)>=(b|0)){A=5563;break}if((v|0)>0){A=5563}}}while(0);if((A|0)==5563){B=r;while(1){if((B|0)<(p|0)){break}C=(o+q|0)/2|0;v=0;while(1){if((C|0)>=(o|0)){D=(C|0)<=(q|0)}else{D=0}if(!D){break}if((d8(k,C,B)|0)<(b|0)){if((d8(k,C+1|0,B)|0)<(b|0)){A=5572;break}if((d8(k,C,B+1|0)|0)<(b|0)){A=5572;break}}v=v+1|0;C=C+(aa((v<<1&2)-1|0,v)|0)|0}if((A|0)==5572){A=0;m=C;l=B;B=-1}B=B-1|0}}do{if((t|0)>=1){if((s|0)<1){break}c[g>>2]=ev(aa(t,s)|0)|0;if((c[g>>2]|0)==0){A=c[n>>2]|0;au(A|0,18616,(E=i,i=i+8|0,c[E>>2]=1224,E)|0)|0;i=E}if((bS(k,o,p,t,s,g,aa(t,s)|0)|0)!=0){ew(c[g>>2]|0);F=d;G=F;i=e;return G|0}if((p|0)>0){C=o;while(1){if((C|0)>(q|0)){break}do{if((d8(k,C,p-1|0)|0)<(b|0)){if((d8(k,C,p)|0)>=(b|0)){break}if(((d5(g,C-o|0,0)|0)&1|0)==1){break}A=C-o|0;D=b;dE(g,A,0,D,1)|0}}while(0);C=C+1|0}}if((o|0)>0){B=p;while(1){if((B|0)>(r|0)){break}do{if((d8(k,o-1|0,B)|0)<(b|0)){if((d8(k,o,B)|0)>=(b|0)){break}if(((d5(g,0,B-p|0)|0)&1|0)==1){break}D=B-p|0;A=b;dE(g,0,D,A,1)|0}}while(0);B=B+1|0}}if((q|0)<((c[k+4>>2]|0)-1|0)){B=p;while(1){if((B|0)>(r|0)){break}do{if((d8(k,q+1|0,B)|0)<(b|0)){if((d8(k,q,B)|0)>=(b|0)){break}if(((d5(g,q-o|0,B-p|0)|0)&1|0)==1){break}A=q-o|0;D=B-p|0;v=b;dE(g,A,D,v,1)|0}}while(0);B=B+1|0}}v=m-o|0;D=l-p|0;A=b;dE(g,v,D,A,2)|0;C=0;while(1){if((C|0)>=(c[g+4>>2]|0)){break}B=0;while(1){if((B|0)>=(c[g+8>>2]|0)){break}do{if(((d5(g,C,B)|0)&3|0)==1){if((d8(g,C,B)|0)>=(b|0)){break}A=C+(aa(B,c[g+4>>2]|0)|0)|0;a[(c[g>>2]|0)+A|0]=-8}}while(0);B=B+1|0}C=C+1|0}d=cK(j,g,b)|0;do{if((c[j+72>>2]|0)>0){if((c[j+116>>2]|0)<(c[(c[7036]|0)+37092>>2]|0)){break}if((d|0)!=57344){break}d=c[j+76>>2]|0}}while(0);do{if((c[f>>2]|0)!=0){if((c[f>>2]|0)==32){break}if((d|0)>=127){break}A=er(d,c[f>>2]|0)|0;if((A|0)==(d|0)){if((c[(c[7036]|0)+37072>>2]&7|0)!=0){D=c[n>>2]|0;v=es(d,6)|0;z=c[j>>2]|0;y=c[j+8>>2]|0;au(D|0,17952,(E=i,i=i+24|0,c[E>>2]=v,c[E+8>>2]=z,c[E+16>>2]=y,E)|0)|0;i=E}}d=A}}while(0);c[j>>2]=c[h>>2];c[j+8>>2]=c[h+8>>2];c[j+4>>2]=c[h+4>>2];c[j+12>>2]=c[h+12>>2];ew(c[g>>2]|0);F=d;G=F;i=e;return G|0}}while(0);F=d;G=F;i=e;return G|0}function dL(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;d=i;e=a;a=b;if((c[e+37072>>2]|0)!=0){b=c[n>>2]|0;au(b|0,17608,(f=i,i=i+1|0,i=i+7&-8,c[f>>2]=0,f)|0)|0;i=f}b=c[e+37052>>2]|0;c[e+37048>>2]=0;c[e+37044>>2]=0;c[e+37040>>2]=0;dG(a,0,(c[a+4>>2]|0)-1|0,0,(c[a+8>>2]|0)-1|0);g=0;while(1){if((g|0)>=(c[a+8>>2]|0)){break}h=0;while(1){if((h|0)>=(c[a+4>>2]|0)){break}j=2;while(1){if((j|0)>=7){break}k=h+((j|0)==2?-1:1)|0;L7736:do{if((k|0)<0){l=5653}else{if((k|0)>=(c[a+4>>2]|0)){l=5653;break}do{if((d8(a,h,g)|0)<(b|0)){if((d8(a,k,g)|0)<(b|0)){break}do{if(((d5(a,h,g)|0)&1|0)!=0){if(((d5(a,k,g)|0)&1|0)==0){break}break L7736}}while(0);m=bU(0)|0;o=h;c[m+16>>2]=o;c[m+4>>2]=o;c[m>>2]=o;o=g;c[m+20>>2]=o;c[m+12>>2]=o;c[m+8>>2]=o;c[m+196>>2]=0;c[m+24>>2]=0;c[m+28>>2]=1;c[m+32>>2]=0;c[m+40>>2]=0;c[m+44>>2]=c[e+37048>>2];c[m+48>>2]=0;c[m+52>>2]=0;c[m+56>>2]=0;c[m+60>>2]=0;c[m+64>>2]=0;c[m+68>>2]=a;c[m+72>>2]=0;if((dF(m,h,g,b,1,1,j)|0)<0){o=m;bV(o)|0;break L7736}do{if((c[m+196>>2]|0)!=0){if((c[m+264>>2]|0)!=0){break}o=c[n>>2]|0;p=h;q=g;au(o|0,17248,(f=i,i=i+16|0,c[f>>2]=p,c[f+8>>2]=q,f)|0)|0;i=f}}while(0);q=e+37048|0;c[q>>2]=(c[q>>2]|0)+1;q=e+37040|0;c[q>>2]=(c[q>>2]|0)+((c[m+4>>2]|0)-(c[m>>2]|0)+1);q=e+37044|0;c[q>>2]=(c[q>>2]|0)+((c[m+12>>2]|0)-(c[m+8>>2]|0)+1);q=(aa((c[m+12>>2]|0)-(c[m+8>>2]|0)+1|0,(c[m+4>>2]|0)-(c[m>>2]|0)+1|0)|0)>=2e4;c[m+36>>2]=q?57345:57344;q=e+84|0;p=m;cu(q,p)|0;break L7736}}while(0)}}while(0);if((l|0)==5653){l=0}j=j+4|0}h=h+1|0}g=g+1|0}if((c[e+37048>>2]|0)==0){r=e;s=r+84|0;t=s+36964|0;u=c[t>>2]|0;i=d;return u|0}if((c[e+37072>>2]|0)!=0){g=c[n>>2]|0;l=c[e+37048>>2]|0;b=((c[e+37040>>2]|0)+((c[e+37048>>2]|0)/2|0)|0)/(c[e+37048>>2]|0)|0;a=((c[e+37044>>2]|0)+((c[e+37048>>2]|0)/2|0)|0)/(c[e+37048>>2]|0)|0;au(g|0,16944,(f=i,i=i+24|0,c[f>>2]=l,c[f+8>>2]=b,c[f+16>>2]=a,f)|0)|0;i=f}r=e;s=r+84|0;t=s+36964|0;u=c[t>>2]|0;i=d;return u|0}function dM(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=a;a=b;if((c[d>>2]|0)<(c[a>>2]|0)){e=-1;f=e;return f|0}if((c[d>>2]|0)>(c[a>>2]|0)){e=1;f=e;return f|0}else{e=0;f=e;return f|0}return 0}function dN(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;b=i;i=i+4096|0;d=b|0;e=a;a=0;f=0;g=2;h=10;j=1;k=1023;l=0;m=0;o=2047;p=0;q=0;if((c[e+37072>>2]|0)!=0){r=c[n>>2]|0;au(r|0,16576,(s=i,i=i+1|0,i=i+7&-8,c[s>>2]=0,s)|0)|0;i=s}r=0;while(1){if((r|0)>=(c[e+156>>2]|0)){break}if((c[e+37072>>2]|0)!=0){t=c[n>>2]|0;u=r;au(t|0,16240,(s=i,i=i+8|0,c[s>>2]=u,s)|0)|0;i=s}a=0;j=1;m=0;o=2047;k=1023;l=0;if((cy(e+84|0)|0)==0){while(1){if((c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)!=0){v=(c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)!=(e+96|0)}else{v=0}if(!v){break}u=c[(c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)+8>>2]|0;do{if((r|0)>0){if((c[u+48>>2]|0)==(r|0)){w=5701;break}}else{w=5701}}while(0);do{if((w|0)==5701){w=0;if(((c[u+12>>2]|0)-(c[u+8>>2]|0)+1|0)<4){w=5703}else{if((c[u+36>>2]|0)==57345){w=5703}}if((w|0)==5703){w=0;p=0;q=0}if((p|0)==0){p=u;break}t=(c[u>>2]|0)-(c[p+4>>2]|0)-1|0;if((t|0)<0){q=0;p=u;break}if(((c[u+4>>2]|0)-(c[u>>2]|0)+1|0)>((c[u+12>>2]|0)-(c[u+8>>2]|0)+1<<1|0)){break}if(((c[p+4>>2]|0)-(c[p>>2]|0)+1|0)>((c[p+12>>2]|0)-(c[p+8>>2]|0)+1<<1|0)){p=u;break}if((k|0)>((c[u+4>>2]|0)-(c[u>>2]|0)+1|0)){k=(c[u+4>>2]|0)-(c[u>>2]|0)+1|0}if(((c[u+4>>2]|0)-(c[u>>2]|0)|0)<((c[p+4>>2]|0)-(c[p>>2]|0)<<2|0)){if((l|0)<((c[u+4>>2]|0)-(c[u>>2]|0)+1|0)){l=(c[u+4>>2]|0)-(c[u>>2]|0)+1|0}}if((m|0)<(l+1|0)){m=l+1|0}if((p|0)!=0){x=(c[u>>2]|0)-(c[p>>2]|0)|0;y=(c[u+4>>2]|0)-(c[p+4>>2]|0)|0;if((x|0)>(y|0)){z=y;A=x}else{z=x;A=y}do{if((z|0)>0){if((z|0)>=(l<<1|0)){break}if((A|0)>=(o<<1|0)){break}if((m|0)<(z-1|0)){m=z}}}while(0);if((z|0)>0){if((o|0)>(A+2|0)){o=A}}if((48&c[e+37072>>2]|0)==48){do{if((j|0)!=0){if((r|0)==0){break}B=c[n>>2]|0;C=r;D=c[p>>2]|0;E=(c[p+4>>2]|0)-(c[p>>2]|0)+1|0;F=c[u>>2]|0;G=(c[u+4>>2]|0)-(c[u>>2]|0)+1|0;H=z;I=A;J=m;K=o;L=l;au(B|0,15784,(s=i,i=i+80|0,c[s>>2]=C,c[s+8>>2]=D,c[s+16>>2]=E,c[s+24>>2]=F,c[s+32>>2]=G,c[s+40>>2]=H,c[s+48>>2]=I,c[s+56>>2]=J,c[s+64>>2]=K,c[s+72>>2]=L,s)|0)|0;i=s}}while(0)}}if((q|0)!=0){x=(c[u>>2]|0)-(c[q>>2]|0)|0;y=(c[u+4>>2]|0)-(c[q+4>>2]|0)|0;if((x|0)>(y|0)){z=y;A=x}else{z=x;A=y}do{if((z|0)>0){if((z|0)>=(l*3|0|0)){break}if((A|0)>=(o*3|0|0)){break}if((m<<1|0)<(z|0)){m=(z+1|0)/2|0}}}while(0);if((z|0)>0){if((o<<1|0)>(A|0)){o=(A+1|0)/2|0}}if((48&c[e+37072>>2]|0)==48){do{if((j|0)!=0){if((r|0)==0){break}L=c[n>>2]|0;K=r;J=c[q>>2]|0;I=(c[q+4>>2]|0)-(c[q>>2]|0)+1|0;H=c[u>>2]|0;G=(c[u+4>>2]|0)-(c[u>>2]|0)+1|0;F=z;E=A;D=m;C=o;B=l;au(L|0,15496,(s=i,i=i+80|0,c[s>>2]=K,c[s+8>>2]=J,c[s+16>>2]=I,c[s+24>>2]=H,c[s+32>>2]=G,c[s+40>>2]=F,c[s+48>>2]=E,c[s+56>>2]=D,c[s+64>>2]=C,c[s+72>>2]=B,s)|0)|0;i=s}}while(0)}}do{if((j|0)!=0){if((p|0)==0){break}x=(c[u>>2]|0)-(c[p>>2]|0)|0;y=(c[u+4>>2]|0)-(c[p+4>>2]|0)|0;if((x|0)>(y|0)){z=y;A=x}else{z=x;A=y}if(((c[u>>2]|0)-(c[p+4>>2]|0)|0)<=(m|0)){if(((c[u+4>>2]|0)-(c[p>>2]|0)|0)>(o<<1|0)){w=5770}else{w=5767}}else{w=5767}do{if((w|0)==5767){w=0;if(((c[u>>2]|0)-(c[p+4>>2]|0)|0)<=(o|0)){break}if(((c[u>>2]|0)-(c[p+4>>2]|0)|0)>(m<<1|0)){break}if(((c[u+4>>2]|0)-(c[p>>2]|0)|0)>(o*3|0|0)){w=5770}}}while(0);if((w|0)==5770){w=0;j=0;if((c[e+37072>>2]|0)!=0){B=c[n>>2]|0;C=r;D=m;E=o;F=c[p>>2]|0;G=c[p+4>>2]|0;H=c[u>>2]|0;I=c[u+4>>2]|0;au(B|0,15056,(s=i,i=i+56|0,c[s>>2]=C,c[s+8>>2]=D,c[s+16>>2]=E,c[s+24>>2]=F,c[s+32>>2]=G,c[s+40>>2]=H,c[s+48>>2]=I,s)|0)|0;i=s}}}}while(0);do{if((j|0)!=0){if((q|0)==0){break}if((o*6|0|0)>=(m*7|0|0)){break}x=(c[u>>2]|0)-(c[q>>2]|0)|0;y=(c[u+4>>2]|0)-(c[q+4>>2]|0)|0;if((x|0)>(y|0)){z=y;A=x}else{z=x;A=y}do{if(((c[u>>2]|0)-(c[q+4>>2]|0)|0)>(o|0)){if(((c[u>>2]|0)-(c[q+4>>2]|0)|0)>(m<<1|0)){w=5783;break}if(((c[u+4>>2]|0)-(c[q>>2]|0)|0)>(o*3|0|0)){w=5786}else{w=5783}}else{w=5783}}while(0);do{if((w|0)==5783){w=0;if(((c[u>>2]|0)-(c[q+4>>2]|0)|0)<=(o<<1|0)){break}if(((c[u>>2]|0)-(c[q+4>>2]|0)|0)>(m*3|0|0)){break}if(((c[u+4>>2]|0)-(c[q>>2]|0)|0)>(o<<2|0)){w=5786}}}while(0);if((w|0)==5786){w=0;j=0;if((c[e+37072>>2]|0)!=0){I=c[n>>2]|0;H=r;G=m;F=o;E=c[q>>2]|0;D=c[q+4>>2]|0;C=c[u>>2]|0;B=c[u+4>>2]|0;au(I|0,14592,(s=i,i=i+56|0,c[s>>2]=H,c[s+8>>2]=G,c[s+16>>2]=F,c[s+24>>2]=E,c[s+32>>2]=D,c[s+40>>2]=C,c[s+48>>2]=B,s)|0)|0;i=s}}}}while(0);do{if(0<(t|0)){if((t|0)>=140){break}if((t<<1|0)<(l*5|0|0)){if((a|0)<1024){c[d+(a<<2)>>2]=t;a=a+1|0}}}}while(0);q=p;p=u}}while(0);c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]=c[c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]>>2]}cz(e+84|0)}if((c[e+37072>>2]|0)!=0){u=c[n>>2]|0;t=r;B=a;C=k;D=l;E=m;F=o;G=j;au(u|0,14208,(s=i,i=i+56|0,c[s>>2]=t,c[s+8>>2]=B,c[s+16>>2]=C,c[s+24>>2]=D,c[s+32>>2]=E,c[s+40>>2]=F,c[s+48>>2]=G,s)|0)|0;i=s}if((a|0)<8){do{if((c[e+37072>>2]|0)!=0){if((r|0)!=0){break}G=c[n>>2]|0;au(G|0,13912,(s=i,i=i+1|0,i=i+7&-8,c[s>>2]=0,s)|0)|0;i=s}}while(0)}if((c[e+37072>>2]&48|0)==48){G=c[n>>2]|0;au(G|0,13280,(s=i,i=i+1|0,i=i+7&-8,c[s>>2]=0,s)|0)|0;i=s;G=0;while(1){if((G|0)>=(a|0)){break}au(c[n>>2]|0,12600,(s=i,i=i+8|0,c[s>>2]=c[d+(G<<2)>>2],s)|0)|0;i=s;G=G+1|0}au(c[n>>2]|0,12064,(s=i,i=i+8|0,c[s>>2]=r,s)|0)|0;i=s}if((a|0)>0){aI(d|0,a|0,4,4);G=(a<<2|0)/5|0;do{if((m|0)>(o+((m|0)/32|0)+1|0)){w=5816}else{if((o|0)>=(m<<1|0)){w=5816;break}if((o|0)<(m*3|0|0)){M=(o+(m*3|0)|0)/4|0}else{M=m}h=M}}while(0);if((w|0)==5816){w=0;j=0}F=1024;E=1024;D=0;if((a|0)<8){N=0}else{N=((a|0)/2|0)+1|0}C=N;L7976:while(1){if((C|0)>=(a|0)){break}L7979:do{if((c[d+(C<<2)>>2]|0)>((k|0)/3|0|0)){if((c[d+(C<<2)>>2]|0)>(l<<1|0)){w=5829;break L7976}do{if((a|0)<16){if((c[d+(C<<2)>>2]|0)<=((l|0)/3|0|0)){break L7979}else{break}}}while(0);B=(c[d+(C<<2)>>2]|0)-(c[d+(C-1<<2)>>2]|0)|0;if((B|0)>(D|0)){D=B;G=C-1|0;if((c[e+37072>>2]&48|0)==48){t=c[n>>2]|0;u=r;H=c[d+(G<<2)>>2]|0;I=D;au(t|0,11416,(s=i,i=i+24|0,c[s>>2]=u,c[s+8>>2]=H,c[s+16>>2]=I,s)|0)|0;i=s}if((D|0)>3){if(((c[d+(C<<2)>>2]|0)*3|0|0)>=(c[d+(C-1<<2)>>2]<<2|0)){w=5839;break L7976}}do{if((D|0)>1){if((C*3|0|0)<=(a<<1|0)){break}if(((c[d+(C<<2)>>2]|0)*3|0|0)>=(c[d+(C-1<<2)>>2]<<2|0)){w=5843;break L7976}}}while(0)}if((B|0)!=0){if((E|0)<(F|0)){F=E;do{if((D|0)<=1){if((a|0)<=16){break}G=C-1|0}}while(0);if((c[e+37072>>2]&48|0)==48){B=c[n>>2]|0;I=r;H=c[d+(G<<2)>>2]|0;u=F;au(B|0,11048,(s=i,i=i+24|0,c[s>>2]=I,c[s+8>>2]=H,c[s+16>>2]=u,s)|0)|0;i=s}}E=1}else{E=E+1|0}}}while(0);C=C+1|0}if((w|0)==5829){w=0}else if((w|0)==5843){w=0}else if((w|0)==5839){w=0}do{if((a|0)<16){if((D|0)>1){break}if((F|0)<=1){break}G=a-1|0}}while(0);if((c[e+37072>>2]&48|0)==48){C=0;while(1){if((C|0)>=(a|0)){break}au(c[n>>2]|0,12600,(s=i,i=i+8|0,c[s>>2]=c[d+(C<<2)>>2],s)|0)|0;i=s;C=C+1|0}au(c[n>>2]|0,10904,(s=i,i=i+8|0,c[s>>2]=r,s)|0)|0;i=s;au(c[n>>2]|0,10648,(s=i,i=i+24|0,c[s>>2]=r,c[s+8>>2]=D,c[s+16>>2]=F,s)|0)|0;i=s}if((G|0)<(a-1|0)){g=(((c[d+(G<<2)>>2]|0)+(c[d+(G+1<<2)>>2]|0)|0)/2|0)+1|0}else{g=(c[d+(G<<2)>>2]|0)+1|0}if((a|0)!=0){if((c[d+(a-1<<2)>>2]<<1|0)<=((c[d>>2]|0)*3|0|0)){w=5873}else{if((c[d+(a-1<<2)>>2]|0)<=((c[d>>2]|0)+3|0)){w=5873}}if((w|0)==5873){w=0;g=(c[d+(a-1<<2)>>2]|0)+10|0}}do{if((r|0)>0){if((c[e+37056>>2]|0)!=0){break}if((j|0)!=0){O=h}else{O=g}c[e+28840+(r<<2)>>2]=O;c[e+32936+(r<<2)>>2]=j}}while(0);if((c[e+37072>>2]|0)!=0){F=c[n>>2]|0;au(F|0,13280,(s=i,i=i+1|0,i=i+7&-8,c[s>>2]=0,s)|0)|0;i=s;F=c[n>>2]|0;D=r;C=a;E=m;u=o;H=h;au(F|0,10312,(s=i,i=i+40|0,c[s>>2]=D,c[s+8>>2]=C,c[s+16>>2]=E,c[s+24>>2]=u,c[s+32>>2]=H,s)|0)|0;i=s;H=c[n>>2]|0;u=r;E=a;C=c[d>>2]|0;D=c[d+(a-1<<2)>>2]|0;F=g;I=(G*100|0|0)/(a|0)|0;au(H|0,10064,(s=i,i=i+48|0,c[s>>2]=u,c[s+8>>2]=E,c[s+16>>2]=C,c[s+24>>2]=D,c[s+32>>2]=F,c[s+40>>2]=I,s)|0)|0;i=s;I=c[n>>2]|0;F=r;D=j;C=c[e+28840+(r<<2)>>2]|0;au(I|0,9912,(s=i,i=i+24|0,c[s>>2]=F,c[s+8>>2]=D,c[s+16>>2]=C,s)|0)|0;i=s}}if((r|0)==0){f=c[e+37056>>2]|0;if((f|0)==0){if((j|0)!=0){P=h}else{P=g}f=P}C=0;while(1){if((C|0)>=(c[e+156>>2]|0)){break}c[e+28840+(C<<2)>>2]=f;C=C+1|0}}r=r+1|0}if((c[e+37056>>2]|0)==0){c[e+37056>>2]=f}if((c[e+37072>>2]|0)==0){i=b;return}au(c[n>>2]|0,9776,(s=i,i=i+16|0,c[s>>2]=f,c[s+8>>2]=(j|0)!=0?9664:9496,s)|0)|0;i=s;i=b;return}function dO(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0;a=i;b=0;d=0;e=0;f=0;g=c[7036]|0;h=0;if((c[g+37072>>2]|0)!=0){j=c[n>>2]|0;au(j|0,9392,(k=i,i=i+1|0,i=i+7&-8,c[k>>2]=0,k)|0)|0;i=k}h=ei(c[g+112>>2]|0,9200)|0;if((cy(g+84|0)|0)==0){while(1){if((c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=0){l=(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=(g+96|0)}else{l=0}if(!l){break}j=c[(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)+8>>2]|0;c[j+32>>2]=0;m=f;f=m+1|0;ek(m,h)|0;do{if(((c[j+4>>2]|0)-(c[j>>2]|0)|0)<2){o=5913}else{if(((c[j+12>>2]|0)-(c[j+8>>2]|0)|0)<2){o=5913;break}if((cy(g+84|0)|0)==0){while(1){if((c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=0){p=(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=(g+96|0)}else{p=0}if(!p){break}m=c[(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[m+8>>2]|0)>(c[j+12>>2]|0)){o=5920;break}if((m|0)!=(j|0)){do{if((c[m>>2]|0)==(c[j>>2]|0)){if((c[m+4>>2]|0)!=(c[j+4>>2]|0)){break}if((c[m+8>>2]|0)!=(c[j+8>>2]|0)){break}if((c[m+12>>2]|0)!=(c[j+12>>2]|0)){break}e=e+1|0}}while(0);do{if((c[m>>2]|0)>=(c[j>>2]|0)){if((c[m+4>>2]|0)>(c[j+4>>2]|0)){break}if((c[m+8>>2]|0)<(c[j+8>>2]|0)){break}if((c[m+12>>2]|0)>(c[j+12>>2]|0)){break}if((c[m+32>>2]|0)!=0){break}q=j+32|0;c[q>>2]=(c[q>>2]|0)+1;b=b+1|0;if((aa((c[m+4>>2]|0)-(c[m>>2]|0)+1|0,(c[m+12>>2]|0)-(c[m+8>>2]|0)+1|0)|0)<17){d=d+1|0}}}while(0)}c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]=c[c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]>>2]}if((o|0)==5920){o=0}cz(g+84|0)}}}while(0);if((o|0)==5913){o=0}c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]=c[c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]>>2]}cz(g+84|0)}ej(h)|0;if((c[g+37072>>2]|0)==0){i=a;return 0}au(c[n>>2]|0,9096,(k=i,i=i+32|0,c[k>>2]=b,c[k+8>>2]=d,c[k+16>>2]=(e|0)/2|0,c[k+24>>2]=f,k)|0)|0;i=k;i=a;return 0}function dP(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;b=i;d=0;e=0;f=0;g=c[7036]|0;h=0;dO(a)|0;h=ei(c[g+112>>2]|0,9024)|0;if((c[g+37072>>2]|0)!=0){a=c[n>>2]|0;j=c[g+37048>>2]|0;au(a|0,8856,(k=i,i=i+8|0,c[k>>2]=j,k)|0)|0;i=k}j=0;if((cy(g+84|0)|0)==0){while(1){if((c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=0){l=(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=(g+96|0)}else{l=0}if(!l){break}a=c[(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)+8>>2]|0;m=c[a>>2]|0;o=c[a+4>>2]|0;p=c[a+8>>2]|0;q=c[a+12>>2]|0;r=d;d=r+1|0;ek(r,h)|0;do{if((c[a+36>>2]|0)==57345){s=5956}else{if((c[a+32>>2]|0)>7){s=5956;break}if((cy(g+84|0)|0)==0){while(1){if((c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=0){t=(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=(g+96|0)}else{t=0}if(!t){break}r=c[(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)+8>>2]|0;do{if((r|0)!=(a|0)){if((c[r+36>>2]|0)==57345){break}u=P(c[r+200>>2]|0)|0;if((u|0)>=((P(c[a+200>>2]|0)|0)/512|0|0)){do{if((c[r>>2]|0)==(m|0)){if((c[r+4>>2]|0)!=(o|0)){s=5969;break}if((c[r+8>>2]|0)!=(p|0)){s=5969;break}if((c[r+12>>2]|0)==(q|0)){s=5974}else{s=5969}}else{s=5969}}while(0);do{if((s|0)==5969){s=0;if((c[r>>2]|0)<(m|0)){break}if((c[r+4>>2]|0)>(o|0)){break}if((c[r+8>>2]|0)<(p|0)){break}if((c[r+12>>2]|0)>(q|0)){break}if((c[r+32>>2]|0)<2){s=5974}}}while(0);if((s|0)==5974){s=0;do{if((c[r>>2]|0)==(m|0)){if((c[r+4>>2]|0)!=(o|0)){s=5979;break}if((c[r+8>>2]|0)!=(p|0)){s=5979;break}if((c[r+12>>2]|0)!=(q|0)){s=5979;break}e=e+1|0}else{s=5979}}while(0);if((s|0)==5979){s=0;f=f+1|0}if((c[g+37072>>2]&7|0)==7){u=c[n>>2]|0;v=m;w=p;x=o-m+1|0;y=q-p+1|0;z=c[a+200>>2]|0;A=c[r>>2]|0;B=c[r+8>>2]|0;C=(c[r+4>>2]|0)-(c[r>>2]|0)+1|0;D=(c[r+12>>2]|0)-(c[r+8>>2]|0)+1|0;E=c[r+200>>2]|0;F=e;au(u|0,8752,(k=i,i=i+88|0,c[k>>2]=v,c[k+8>>2]=w,c[k+16>>2]=x,c[k+24>>2]=y,c[k+32>>2]=z,c[k+40>>2]=A,c[k+48>>2]=B,c[k+56>>2]=C,c[k+64>>2]=D,c[k+72>>2]=E,c[k+80>>2]=F,k)|0)|0;i=k}if(((c[r+4>>2]|0)-(c[r>>2]|0)+1|0)<(o-m+1<<3|0)){s=5984}else{if(((c[r+12>>2]|0)-(c[r+8>>2]|0)+1|0)<((q-p+1|0)*12|0|0)){s=5984}}if((s|0)==5984){s=0;F=a;E=r;bX(F,E)|0}m=c[a>>2]|0;o=c[a+4>>2]|0;p=c[a+8>>2]|0;q=c[a+12>>2]|0;E=g+37048|0;c[E>>2]=(c[E>>2]|0)-1;j=j+1|0;E=g+84|0;F=r;cw(E,F)|0;F=r;bV(F)|0}}}}while(0);c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]=c[c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]>>2]}cz(g+84|0)}}}while(0);if((s|0)==5956){s=0}c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]=c[c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]>>2]}cz(g+84|0)}if((c[g+37072>>2]|0)==0){G=h;H=ej(G)|0;i=b;return 0}s=c[g+37048>>2]|0;au(c[n>>2]|0,8680,(k=i,i=i+24|0,c[k>>2]=f,c[k+8>>2]=e,c[k+16>>2]=s,k)|0)|0;i=k;G=h;H=ej(G)|0;i=b;return 0}function dQ(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;d=i;i=i+24|0;e=d|0;f=a;a=b;b=0;g=0;h=0;j=0;k=0;l=e;c[l>>2]=c[58];c[l+4>>2]=c[59];c[l+8>>2]=c[60];c[l+12>>2]=c[61];c[l+16>>2]=c[62];l=0;m=c[f+37052>>2]|0;dO(a)|0;l=ei(c[f+112>>2]|0,8200)|0;if((c[f+37072>>2]|0)!=0){o=c[n>>2]|0;p=c[f+37048>>2]|0;q=c[f+37032>>2]|0;au(o|0,8096,(r=i,i=i+16|0,c[r>>2]=p,c[r+8>>2]=q,r)|0)|0;i=r}q=0;if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){s=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{s=0}if(!s){break}p=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;o=c[p>>2]|0;t=c[p+4>>2]|0;u=c[p+8>>2]|0;v=c[p+12>>2]|0;w=b;b=w+1|0;ek(w,l)|0;k=0;L8223:do{if((c[p+36>>2]|0)==57345){x=6008}else{if((c[p+32>>2]|0)>7){x=6008;break}do{if((c[p+64>>2]|0)>0){if((u|0)<=(c[p+64>>2]|0)){break}break L8223}}while(0);do{if((c[p+52>>2]|0)>0){if((u|0)>=((c[p+52>>2]|0)-((c[p+60>>2]|0)-(c[p+56>>2]|0))|0)){break}break L8223}}while(0);do{if((v-u<<1|0)<((c[p+64>>2]|0)-(c[p+52>>2]|0)|0)){if((v<<1|0)>((c[p+60>>2]|0)+(c[p+56>>2]|0)|0)){if((u<<1|0)<((c[p+60>>2]|0)+(c[p+56>>2]|0)|0)){break}}w=0;y=0;z=0;g=g+1|0;if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){A=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{A=0}if(!A){break}z=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;L8247:do{if((z|0)==(p|0)){x=6025}else{if((c[z+36>>2]|0)==57345){x=6025;break}do{if(((c[z+4>>2]|0)-(c[z>>2]|0)+1|0)<(t-o+1|0)){if(((c[z+12>>2]|0)-(c[z+8>>2]|0)+1|0)>=(v-u+1|0)){break}break L8247}}while(0);do{if((c[z+48>>2]|0)>=0){if((c[p+48>>2]|0)<0){break}if((c[z+48>>2]|0)!=(c[p+48>>2]|0)){break}if((w|0)==0){w=z}B=P((c[z>>2]|0)+(c[z+4>>2]|0)-(c[p>>2]<<1)|0)|0;if((B|0)<(P((c[w>>2]|0)+(c[w+4>>2]|0)-(c[p>>2]<<1)|0)|0)){y=w;w=z}}}while(0)}}while(0);if((x|0)==6025){x=0}c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}z=w;if((z|0)!=0){do{if(((c[z+4>>2]|0)-(c[z>>2]|0)+1|0)>((c[f+37032>>2]|0)/2|0|0)){if(((c[p+4>>2]|0)-(c[p>>2]|0)+1|0)<=((c[f+37032>>2]|0)/2|0|0)){break}if((c[p>>2]|0)<=(c[z+4>>2]|0)){if((c[z>>2]|0)<=(c[p+4>>2]|0)){break}}break L8223}}while(0);do{if((v<<2|0)<=(((c[p+56>>2]|0)*3|0)+(c[p+60>>2]|0)|0)){if((c[z+12>>2]<<2|0)<(((c[p+56>>2]|0)*3|0)+(c[p+60>>2]|0)|0)){break}if((v<<1|0)>=((c[z+12>>2]|0)+(c[z+8>>2]|0)|0)){break}if(((c[z+4>>2]|0)+((c[f+37032>>2]|0)/2|0)|0)<(o|0)){break}if(((c[z>>2]|0)-((c[f+37032>>2]|0)/2|0)|0)>(t|0)){break}if((v|0)>=(c[z+8>>2]|0)){if((o|0)>=(c[z+4>>2]|0)){break}}if(((v-(c[z+8>>2]|0)|0)*3|0|0)>((c[z+12>>2]|0)-(c[z+8>>2]|0)<<1|0)){break}if((t-o+1<<3|0)<((c[z+4>>2]|0)-(c[z>>2]|0)+1|0)){break}if(((v-u+1|0)*10|0|0)<((c[z+12>>2]|0)-(c[z+8>>2]|0)+1|0)){break}k=1}}while(0);do{if((k|0)==0){if((c[z+4>>2]<<1|0)<(o+t|0)){break}if((c[z>>2]<<1|0)>(t<<1|0)){break}if((t-o|0)>((c[z+4>>2]|0)-(c[z>>2]|0)+2|0)){break}if((u<<1|0)<((c[p+56>>2]|0)+(c[p+60>>2]|0)|0)){break}if((v<<2|0)<((c[p+56>>2]|0)+((c[p+60>>2]|0)*3|0)|0)){break}if((v-u<<2|0)>=((c[p+64>>2]|0)-(c[p+52>>2]|0)|0)){break}if((c[z+12>>2]<<3|0)>=((c[z+56>>2]|0)+((c[z+60>>2]|0)*7|0)|0)){if(((c[z+64>>2]|0)-(c[z+52>>2]|0)|0)>=16){break}}k=2}}while(0);L8304:do{if((k|0)==0){if((c[z+4>>2]<<1|0)<(o+t|0)){break}if((c[z>>2]<<1|0)>(t<<1|0)){break}if((t-o|0)>((c[z+4>>2]|0)-(c[z>>2]|0)+4|0)){break}if((o<<2|0)>(((c[z+4>>2]|0)*3|0)+(c[z>>2]|0)|0)){break}do{if((c[p+56>>2]|0)!=0){if((c[z+56>>2]|0)==0){x=6078;break}if((v|0)>=(c[p+60>>2]|0)){x=6078;break}if((c[z+12>>2]<<1|0)<=((c[z+60>>2]|0)+(c[z+56>>2]|0)|0)){x=6078;break}if((c[z+8>>2]<<2|0)<(((c[z+56>>2]|0)*3|0)+(c[z+60>>2]|0)|0)){x=6078;break}if((c[p+8>>2]<<1|0)>=((c[p+60>>2]|0)+(c[p+56>>2]|0)|0)){x=6078}}else{x=6078}}while(0);do{if((x|0)==6078){x=0;if((c[p+56>>2]|0)==0){break}if((c[z+56>>2]|0)!=0){break L8304}}}while(0);k=3}}while(0);do{if((P((c[p+12>>2]|0)-(c[z+12>>2]|0)|0)|0)<=(((v-u|0)/8|0)+1|0)){if((P((c[p+8>>2]|0)-(c[z+8>>2]|0)|0)|0)>(((v-u|0)/8|0)+1|0)){break}if((P((c[z+4>>2]|0)-(c[z>>2]|0)-(t-o)|0)|0)>(((t-o|0)/8|0)+1|0)){break}if((t-o|0)>((c[f+37032>>2]|0)/2|0|0)){break}w=P((c[z>>2]|0)-t-1|0)|0;if((w|0)>((c[f+37032>>2]|0)/2|0|0)){w=P(o-(c[z+4>>2]|0)-1|0)|0;if((w|0)>((c[f+37032>>2]|0)/2|0|0)){break}}if((v<<2|0)>(((c[p+56>>2]|0)*3|0)+(c[p+60>>2]|0)|0)){if((u<<2|0)<((c[p+56>>2]<<1)+(c[p+60>>2]<<1)|0)){break}}k=4}}while(0);if((k|0)>0){if((c[f+37072>>2]&7|0)!=0){w=c[n>>2]|0;y=o;B=u;C=t-o+1|0;D=v-u+1|0;E=c[z>>2]|0;F=c[z+8>>2]|0;G=(c[z+4>>2]|0)-(c[z>>2]|0)+1|0;H=(c[z+12>>2]|0)-(c[z+8>>2]|0)+1|0;I=c[e+(k<<2)>>2]|0;au(w|0,7928,(r=i,i=i+72|0,c[r>>2]=y,c[r+8>>2]=B,c[r+16>>2]=C,c[r+24>>2]=D,c[r+32>>2]=E,c[r+40>>2]=F,c[r+48>>2]=G,c[r+56>>2]=H,c[r+64>>2]=I,r)|0)|0;i=r}I=p;H=z;bX(I,H)|0;o=c[p>>2]|0;t=c[p+4>>2]|0;u=c[p+8>>2]|0;v=c[p+12>>2]|0;q=q+1|0;h=h+1|0;H=f+84|0;I=z;cw(H,I)|0;I=z;bV(I)|0}}}}while(0);if((v<<1|0)<((c[p+60>>2]|0)+(c[p+56>>2]|0)|0)){if((v-u<<1|0)<((c[p+60>>2]|0)+(c[p+56>>2]|0)|0)){if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){J=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{J=0}if(!J){break}z=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;do{if((z|0)!=(p|0)){if((c[z+36>>2]|0)==57345){break}do{if((c[z+48>>2]|0)>=0){if((c[z+48>>2]|0)!=(c[p+48>>2]|0)){break}if((c[z+4>>2]|0)<(o-1|0)){break}if((c[z+4>>2]|0)>=(o|0)){break}if(((c[z>>2]|0)+((c[z+4>>2]|0)*3|0)|0)>=(o<<2|0)){break}if(((du(o,o,v,v,a,m,1)|0)<<24>>24|0)==1){if(((du(o-2|0,o-1|0,v,v+2|0,a,m,1)|0)<<24>>24|0)==1){if((c[f+37072>>2]&7|0)!=0){I=c[n>>2]|0;H=o;G=u;F=t-o+1|0;E=v-u+1|0;D=c[z>>2]|0;C=c[z+8>>2]|0;B=(c[z+4>>2]|0)-(c[z>>2]|0)+1|0;y=(c[z+12>>2]|0)-(c[z+8>>2]|0)+1|0;au(I|0,7800,(r=i,i=i+64|0,c[r>>2]=H,c[r+8>>2]=G,c[r+16>>2]=F,c[r+24>>2]=E,c[r+32>>2]=D,c[r+40>>2]=C,c[r+48>>2]=B,c[r+56>>2]=y,r)|0)|0;i=r}d9(a,o,v+1|0,-193,0);y=p;B=z;bX(y,B)|0;o=c[p>>2]|0;t=c[p+4>>2]|0;u=c[p+8>>2]|0;v=c[p+12>>2]|0;B=f+37048|0;c[B>>2]=(c[B>>2]|0)-1;q=q+1|0;j=j+1|0;B=f+84|0;y=z;cw(B,y)|0;y=z;bV(y)|0}}}}while(0)}}while(0);c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}}}if((P((c[p+56>>2]|0)-u|0)|0)<=((v-u|0)/8|0|0)){if((P((c[p+60>>2]|0)-v|0)|0)<=((v-u|0)/8|0|0)){if((dv(o,t,(u+v|0)/2|0,(u+v|0)/2|0,a,m)|0)==1){if((dv(o,t,(u+(v*3|0)|0)/4|0,(u+(v*3|0)|0)/4|0,a,m)|0)==1){if(((du(((o*3|0)+t|0)/4|0,((o*3|0)+t|0)/4|0,((u*3|0)+v|0)/4|0,v,a,m,1)|0)<<24>>24|0)==0){if(((du(o,((o*3|0)+t|0)/4|0,((u*3|0)+v|0)/4|0,(u+(v*3|0)|0)/4|0,a,m,1)|0)<<24>>24|0)==0){if(((du(o,o,u,((u*3|0)+v|0)/4|0,a,m,1)|0)<<24>>24|0)==1){if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){K=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{K=0}if(!K){break}z=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;L8400:do{if((z|0)!=(p|0)){if((c[z+36>>2]|0)==57345){x=6148;break}do{if((c[z+48>>2]|0)>=0){if((c[z+48>>2]|0)!=(c[p+48>>2]|0)){break}if((c[z+4>>2]|0)<=(o-3|0)){break}if(((c[z+4>>2]|0)-2|0)>=(o|0)){break}if((P((c[z+12>>2]|0)-(c[p+60>>2]|0)|0)|0)>=2){break}if((c[f+37072>>2]&7|0)!=0){y=c[n>>2]|0;B=o;C=u;D=t-o+1|0;E=v-u+1|0;F=c[z>>2]|0;G=c[z+8>>2]|0;H=(c[z+4>>2]|0)-(c[z>>2]|0)+1|0;I=(c[z+12>>2]|0)-(c[z+8>>2]|0)+1|0;au(y|0,7696,(r=i,i=i+64|0,c[r>>2]=B,c[r+8>>2]=C,c[r+16>>2]=D,c[r+24>>2]=E,c[r+32>>2]=F,c[r+40>>2]=G,c[r+48>>2]=H,c[r+56>>2]=I,r)|0)|0;i=r}I=dC(a,o,u,v-u|0,m,0,2)|0;if((I<<1|0)>(v-u|0)){break L8400}else{d9(a,o-1|0,u+I|0,-193,0);d9(a,o-1|0,u+I+1|0,-193,0);I=p;H=z;bX(I,H)|0;o=c[p>>2]|0;t=c[p+4>>2]|0;u=c[p+8>>2]|0;v=c[p+12>>2]|0;H=f+37048|0;c[H>>2]=(c[H>>2]|0)-1;q=q+1|0;j=j+1|0;H=f+84|0;I=z;cw(H,I)|0;I=z;bV(I)|0;break}}}while(0);x=6148}else{x=6148}}while(0);if((x|0)==6148){x=0}c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}}}}}}}}}}while(0);if((x|0)==6008){x=0}c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}if((c[f+37072>>2]|0)==0){L=l;M=ej(L)|0;i=d;return 0}x=c[f+37048>>2]|0;au(c[n>>2]|0,7600,(r=i,i=i+32|0,c[r>>2]=h,c[r+8>>2]=g,c[r+16>>2]=j,c[r+24>>2]=x,r)|0)|0;i=r;L=l;M=ej(L)|0;i=d;return 0}function dR(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;b=i;i=i+16|0;d=b|0;e=d;f=a;c[e>>2]=c[f>>2];c[e+4>>2]=c[f+4>>2];c[e+8>>2]=c[f+8>>2];c[e+12>>2]=c[f+12>>2];f=c[7036]|0;e=c[f+37052>>2]|0;if((c[f+37072>>2]|0)!=0){a=c[n>>2]|0;au(a|0,7544,(g=i,i=i+1|0,i=i+7&-8,c[g>>2]=0,g)|0)|0;i=g}a=c[f+112>>2]|0;if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){h=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{h=0}if(!h){break}j=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;k=j;l=j;j=1e3;m=(c[k+4>>2]|0)-(c[k>>2]|0)+1|0;if((c[f+37072>>2]|0)!=0){o=c[n>>2]|0;p=a;au(o|0,7368,(g=i,i=i+8|0,c[g>>2]=p,g)|0)|0;i=g}if((m|0)>3){m=cA(f+84|0,k)|0;while(1){if((m|0)==0){break}if((c[k+44>>2]|0)!=(c[m+44>>2]|0)){p=dJ(d,k,d,m,e)|0;if((p|0)<(j|0)){j=p;l=m}if((p|0)<5){a=a-1|0;p=c[m+44>>2]|0;if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){q=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{q=0}if(!q){break}o=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;if((o|0)!=(k|0)){if((c[o+44>>2]|0)==(p|0)){c[o+44>>2]=c[k+44>>2]}}c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}}}m=cA(f+84|0,m)|0}}c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}q=0;if((c[f+37072>>2]|0)!=0){h=c[n>>2]|0;m=a;au(h|0,7280,(g=i,i=i+8|0,c[g>>2]=m,g)|0)|0;i=g}if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){r=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{r=0}if(!r){break}k=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;m=c[(c[f+84>>2]|0)+8>>2]|0;while(1){if((m|0)!=(k|0)){s=(m|0)!=0}else{s=0}if(!s){break}if((c[m+44>>2]|0)==(c[k+44>>2]|0)){t=6214;break}m=cA(f+84|0,m)|0}if((t|0)==6214){t=0}do{if((m|0)!=(k|0)){if((m|0)==0){t=6220;break}}else{t=6220}}while(0);if((t|0)==6220){t=0;a=a+1|0;h=0;l=k;m=k;j=0;while(1){if((m|0)==0){break}if((c[m+44>>2]|0)==(c[k+44>>2]|0)){j=j+1|0;p=dJ(d,k,d,m,e)|0;if((p|0)>(h|0)){h=p;l=m}}m=cA(f+84|0,m)|0}if((c[f+37072>>2]&8|0)!=0){dl(k,l);m=c[n>>2]|0;p=a;o=c[k+44>>2]|0;u=j;v=h;au(m|0,7e3,(g=i,i=i+32|0,c[g>>2]=p,c[g+8>>2]=o,c[g+16>>2]=u,c[g+24>>2]=v,g)|0)|0;i=g}q=q+j|0;if((c[f+37072>>2]&8|0)!=0){v=c[n>>2]|0;u=a;o=c[k+44>>2]|0;p=j;m=q;au(v|0,6944,(g=i,i=i+32|0,c[g>>2]=u,c[g+8>>2]=o,c[g+16>>2]=p,c[g+24>>2]=m,g)|0)|0;i=g}}c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}if((c[f+37072>>2]|0)==0){i=b;return 0}au(c[n>>2]|0,6888,(g=i,i=i+1|0,i=i+7&-8,c[g>>2]=0,g)|0)|0;i=g;i=b;return 0}function dS(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;d=i;e=a;a=b;b=c[7036]|0;f=c[b+37052>>2]|0;if((c[b+37072>>2]|0)!=0){g=c[n>>2]|0;au(g|0,6720,(h=i,i=i+1|0,i=i+7&-8,c[h>>2]=0,h)|0)|0;i=h}g=0;j=0;k=0;if((cy(b+84|0)|0)==0){while(1){if((c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]|0)!=0){l=(c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]|0)!=(b+96|0)}else{l=0}if(!l){break}m=c[(c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[m+36>>2]|0)==57344){k=k+1|0}if((c[m+36>>2]|0)==57345){j=j+1|0}g=g+1|0;c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]=c[c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]>>2]}cz(b+84|0)}if((c[b+37072>>2]|0)!=0){l=c[n>>2]|0;o=k;p=j;q=g;au(l|0,6664,(h=i,i=i+24|0,c[h>>2]=o,c[h+8>>2]=p,c[h+16>>2]=q,h)|0)|0;i=h}if((g|0)==0){r=0;s=r;i=d;return s|0}j=0;k=0;q=ei(g,6624)|0;if((cy(b+84|0)|0)==0){while(1){if((c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]|0)!=0){t=(c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]|0)!=(b+96|0)}else{t=0}if(!t){break}m=c[(c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]|0)+8>>2]|0;g=c[m>>2]|0;p=c[m+4>>2]|0;o=c[m+8>>2]|0;l=c[m+12>>2]|0;u=c[m+36>>2]|0;if((u|0)!=57345){if((a&256|0)==0){do{if((u|0)==57344){v=6269}else{if((c[m+72>>2]|0)==0){v=6269;break}if((c[m+116>>2]|0)<(c[b+37092>>2]|0)){v=6269}}}while(0);if((v|0)==6269){v=0;u=dK(m,f,0)|0}}if((a&2|0)!=0){do{if((u|0)==57344){v=6275}else{if((c[m+72>>2]|0)==0){v=6275;break}if((c[m+116>>2]|0)<(c[b+37092>>2]|0)){v=6275}}}while(0);if((v|0)==6275){v=0;u=b1(m,b)|0}}if((u|0)==57344){k=k+1|0}j=j+1|0;if((c[b+37072>>2]&8|0)!=0){w=c[n>>2]|0;x=u;if((u|0)<255){y=u}else{y=95}z=(y&255)<<24>>24;au(w|0,6576,(h=i,i=i+16|0,c[h>>2]=x,c[h+8>>2]=z,h)|0)|0;i=h;dj(m,e,g,o,p-g+1|0,l-o+1|0,f)}z=j;x=q;ek(z,x)|0}c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]=c[c[(c[b+108>>2]|0)+(c[b+116>>2]<<2)>>2]>>2]}cz(b+84|0)}ej(q)|0;if((c[b+37072>>2]|0)!=0){b=c[n>>2]|0;q=k;k=j;au(b|0,6488,(h=i,i=i+16|0,c[h>>2]=q,c[h+8>>2]=k,h)|0)|0;i=h}r=0;s=r;i=d;return s|0}function dT(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,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=i;e=a;a=c[7036]|0;f=c[a+37052>>2]|0;g=0;h=0;j=0;if((c[a+37072>>2]|0)!=0){k=c[n>>2]|0;au(k|0,6256,(l=i,i=i+1|0,i=i+7&-8,c[l>>2]=0,l)|0)|0;i=l}if((b&8|0)==0){b=0;h=0;if((cy(a+84|0)|0)==0){while(1){if((c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=0){m=(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=(a+96|0)}else{m=0}if(!m){break}b=b+1|0;c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]=c[c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]>>2]}cz(a+84|0)}g=ei(b,6168)|0;if((cy(a+84|0)|0)==0){while(1){if((c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=0){o=(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=(a+96|0)}else{o=0}if(!o){break}b=c[(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)+8>>2]|0;h=h+1|0;do{if((c[b+36>>2]|0)==57344){p=6312}else{if((c[b+72>>2]|0)<=0){break}if((c[b+116>>2]|0)<97){p=6312}}}while(0);if((p|0)==6312){p=0;do{if(((c[b+12>>2]|0)-(c[b+8>>2]|0)|0)>4){if(((c[b+4>>2]|0)-(c[b>>2]|0)|0)<=1){break}m=c[(c[a+84>>2]|0)+8>>2]|0;k=1e3;q=57344;if((cy(a+84|0)|0)==0){while(1){if((c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=0){r=(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=(a+96|0)}else{r=0}if(!r){break}s=c[(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[s+72>>2]|0)>0){t=c[s+116>>2]|0}else{t=100}u=t;L8659:do{if((s|0)==(b|0)){p=6325}else{if((c[s+36>>2]|0)==57344){p=6325;break}if((u|0)<(c[a+37092>>2]|0)){p=6325;break}do{if(((c[b+12>>2]|0)-(c[b+8>>2]|0)|0)>=5){if(((c[b+4>>2]|0)-(c[b>>2]|0)|0)<3){break}v=dJ(e,b,e,s,f)|0;if((v|0)<(k|0)){k=v;q=c[s+36>>2]|0;m=s}break L8659}}while(0)}}while(0);if((p|0)==6325){p=0}c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]=c[c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]>>2]}cz(a+84|0)}if((k|0)<10){if((c[m+72>>2]|0)>0){w=c[m+116>>2]|0}else{w=97}w=w-k|0;if((w|0)<1){w=1}s=b;u=q;v=w;dy(s,u,v)|0;j=j+1|0}do{if((k|0)<50){if((c[a+37072>>2]&7|0)==0){break}v=c[n>>2]|0;u=c[b+48>>2]|0;s=c[b>>2]|0;x=c[b+8>>2]|0;y=q;if((q|0)<128){z=q}else{z=95}A=(z&255)<<24>>24;B=k;C=j;au(v|0,5976,(l=i,i=i+56|0,c[l>>2]=u,c[l+8>>2]=s,c[l+16>>2]=x,c[l+24>>2]=y,c[l+32>>2]=A,c[l+40>>2]=B,c[l+48>>2]=C,l)|0)|0;i=l;if((c[m+72>>2]|0)>0){C=c[n>>2]|0;B=c[m+116>>2]|0;au(C|0,5944,(l=i,i=i+8|0,c[l>>2]=B,l)|0)|0;i=l}do{if((c[a+37072>>2]&4|0)!=0){if((k|0)>=10){break}dl(b,m)}}while(0)}}while(0);m=h;k=g;ek(m,k)|0}}while(0)}c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]=c[c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]>>2]}cz(a+84|0)}z=g;ej(z)|0}if((c[a+37072>>2]|0)==0){i=d;return 0}au(c[n>>2]|0,5888,(l=i,i=i+16|0,c[l>>2]=j,c[l+8>>2]=h,l)|0)|0;i=l;i=d;return 0}function dU(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0;e=i;i=i+2872|0;f=e|0;g=e+1320|0;h=e+2640|0;j=e+2672|0;k=e+2704|0;l=e+2768|0;m=e+2808|0;o=b;b=d;d=c[7036]|0;p=c[d+37052>>2]|0;q=100;r=k;eB(r|0,152,64)|0;if((c[d+37072>>2]|0)!=0){r=c[n>>2]|0;au(r|0,5744,(s=i,i=i+1|0,i=i+7&-8,c[s>>2]=0,s)|0)|0;i=s}if((b&16|0)==0){if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){t=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{t=0}if(!t){break}b=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;L8724:do{if((c[b+196>>2]|0)!=0){if((c[b+264+((c[b+196>>2]|0)-1<<2)>>2]|0)<9){u=6373;break}do{if((c[b+36>>2]|0)==57344){u=6377}else{if((c[b+72>>2]|0)==0){break}if((c[b+116>>2]|0)<(c[d+37092>>2]|0)){u=6377}}}while(0);do{if((u|0)==6377){u=0;if(((c[b+4>>2]|0)-(c[b>>2]|0)|0)<=5){break}if(((c[b+12>>2]|0)-(c[b+8>>2]|0)|0)<=4){break}r=c[b>>2]|0;v=c[b+4>>2]|0;w=c[b+8>>2]|0;x=c[b+12>>2]|0;q=100;y=0;z=dv(r,v,(x+w|0)/2|0,(x+w|0)/2|0,o,p)|0;A=dv(r,v,((x*3|0)+w|0)/4|0,((x*3|0)+w|0)/4|0,o,p)|0;if((A|0)<(z|0)){z=A}do{if((c[b+56>>2]|0)!=0){if((c[b+60>>2]|0)<=((c[b+56>>2]|0)+2|0)){break}B=(c[b+56>>2]|0)+1|0;while(1){if((B|0)>((c[b+60>>2]|0)-1|0)){break}if((dC(o,r+1|0,B,v-r|0,p,1,3)|0)<=(v-r-2|0)){A=dv(r,v,B,B,o,p)|0;if((A|0)<(z|0)){z=A}}B=B+1|0}}}while(0);if((z|0)<2){break L8724}if((z|0)<4){q=(q*99|0|0)/100|0}if((z|0)<3){q=(q*99|0|0)/100|0}do{if((x<<1|0)<((c[b+60>>2]|0)+(c[b+64>>2]|0)|0)){if((dv(r,v,x-1|0,x-1|0,o,p)|0)!=1){break}if((dv((r+(v<<1)|0)/3|0,(r+(v*3|0)|0)/4|0,w,x,o,p)|0)>=3){break}if((dv(((r*3|0)+v|0)/4|0,((r<<1)+v|0)/3|0,w,x,o,p)|0)>=3){break}C=dC(o,r,x-((x-w|0)/32|0)|0,v-r|0,p,0,3)|0;if((C+(dC(o,v,x-((x-w|0)/32|0)|0,v-r|0,p,0,4)|0)|0)<=((v-r+1|0)/2|0|0)){break}break L8724}}while(0);if((dv(r,v,(x+w|0)/2|0,(x+w|0)/2|0,o,p)|0)<=1){break L8724}z=m;eC(z|0,0,64)|0;if((c[d+37072>>2]&2|0)!=0){z=c[n>>2]|0;C=r;D=w;E=v-r+1|0;F=x-w+1|0;au(z|0,5672,(s=i,i=i+32|0,c[s>>2]=C,c[s+8>>2]=D,c[s+16>>2]=E,c[s+24>>2]=F,s)|0)|0;i=s;if((c[d+37072>>2]&4|0)!=0){dk(b)}}B=0;c[l>>2]=r;c[l+4>>2]=r+3;c[l+8>>2]=v;L8777:while(1){L8779:do{if((c[l+(B+1<<2)>>2]|0)>(v-3|0)){if((B|0)==0){u=6413;break L8777}B=B-1|0;c[l+(B+2<<2)>>2]=v}else{F=x;E=w;D=0;C=w;z=w;G=x;H=x;I=0;A=0;while(1){if((A|0)>=(c[b+264>>2]|0)){break}J=A-1|0;K=(A+1|0)%(c[b+264>>2]|0)|0;if((J|0)<0){J=(c[b+264>>2]|0)-1|0}do{if((c[b+296+(A<<3)>>2]|0)>(c[l+(B<<2)>>2]|0)){if((c[b+296+(A<<3)>>2]|0)>(c[l+(B+2<<2)>>2]|0)){break}if((P((c[b+296+(A<<3)>>2]|0)-(c[l+(B+1<<2)>>2]|0)|0)|0)<2){I=(c[b+296+(A<<3)+4>>2]<<1)-(c[b+296+(K<<3)+4>>2]|0)-(c[b+296+(J<<3)+4>>2]|0)|0;L=(c[b+296+(K<<3)>>2]|0)-(c[b+296+(J<<3)>>2]|0)|0;if((L|0)>0){M=I}else{M=-I|0}if((M|0)<((-(P(L|0)|0)|0)/2|0|0)){D=1}}if((c[b+296+(J<<3)>>2]|0)<=(c[l+(B+1<<2)>>2]|0)){if((c[b+296+(K<<3)>>2]|0)>=(c[l+(B+1<<2)>>2]|0)){u=6434}else{u=6432}}else{u=6432}do{if((u|0)==6432){u=0;if((c[b+296+(J<<3)>>2]|0)<(c[l+(B+1<<2)>>2]|0)){break}if((c[b+296+(K<<3)>>2]|0)<=(c[l+(B+1<<2)>>2]|0)){u=6434}}}while(0);if((u|0)==6434){u=0;if((c[b+296+(A<<3)+4>>2]|0)>(E|0)){E=c[b+296+(A<<3)+4>>2]|0}if((c[b+296+(A<<3)+4>>2]|0)<(F|0)){F=c[b+296+(A<<3)+4>>2]|0}}do{if((c[b+296+(A<<3)+4>>2]|0)>(C|0)){if((c[b+296+(A<<3)>>2]|0)>(c[l+(B+1<<2)>>2]|0)){break}C=c[b+296+(A<<3)+4>>2]|0}}while(0);do{if((c[b+296+(A<<3)+4>>2]|0)>(z|0)){if((c[b+296+(A<<3)>>2]|0)<=(c[l+(B+1<<2)>>2]|0)){break}z=c[b+296+(A<<3)+4>>2]|0}}while(0);do{if((c[b+296+(A<<3)+4>>2]|0)<(G|0)){if((c[b+296+(A<<3)>>2]|0)>(c[l+(B+1<<2)>>2]|0)){break}G=c[b+296+(A<<3)+4>>2]|0}}while(0);do{if((c[b+296+(A<<3)+4>>2]|0)<(H|0)){if((c[b+296+(A<<3)>>2]|0)<=(c[l+(B+1<<2)>>2]|0)){break}H=c[b+296+(A<<3)+4>>2]|0}}while(0)}}while(0);A=A+1|0}if((c[d+37072>>2]&2|0)!=0){K=c[n>>2]|0;J=B;L=(c[l+(B<<2)>>2]|0)-r|0;N=(c[l+(B+1<<2)>>2]|0)-r|0;O=(c[l+(B+2<<2)>>2]|0)-r|0;Q=D;R=E-F|0;S=C-G|0;T=z-H|0;au(K|0,5576,(s=i,i=i+64|0,c[s>>2]=J,c[s+8>>2]=L,c[s+16>>2]=N,c[s+24>>2]=O,c[s+32>>2]=Q,c[s+40>>2]=R,c[s+48>>2]=S,c[s+56>>2]=T,s)|0)|0;i=s}if((D|0)==0){break}if((C-G+1<<1|0)<(x-w+1|0)){break}if((z-H+1<<1|0)<(x-w+1|0)){break}if((c[d+37072>>2]&2|0)!=0){T=c[n>>2]|0;S=B;R=(c[l+(B<<2)>>2]|0)-r|0;Q=(c[l+(B+1<<2)>>2]|0)-r|0;O=I;au(T|0,5488,(s=i,i=i+32|0,c[s>>2]=S,c[s+8>>2]=R,c[s+16>>2]=Q,c[s+24>>2]=O,s)|0)|0;i=s}O=f;Q=b;eB(O|0,Q|0,1320)|0;c[f+16>>2]=c[l+(B<<2)>>2];c[f+20>>2]=w;c[f>>2]=c[l+(B<<2)>>2];c[f+4>>2]=c[l+(B+1<<2)>>2];bY(f)|0;c[f+72>>2]=0;c[j+(B<<2)>>2]=dK(f,p,0)|0;c[h+(B<<2)>>2]=dz(f,c[j+(B<<2)>>2]|0)|0;if((c[d+37072>>2]&2|0)!=0){Q=c[n>>2]|0;O=c[h+(B<<2)>>2]|0;R=c[d+37092>>2]|0;S=y;au(Q|0,5424,(s=i,i=i+24|0,c[s>>2]=O,c[s+8>>2]=R,c[s+16>>2]=S,s)|0)|0;i=s}do{if((c[h+(B<<2)>>2]|0)>=(c[d+37092>>2]|0)){if((c[h+(B<<2)>>2]|0)<(y-1|0)){break}if((et(k|0,c[j+(B<<2)>>2]|0)|0)!=0){break}S=q;A=0;while(1){if((A|0)>(B|0)){break}S=(aa(c[h+(A<<2)>>2]|0,S)|0)/100|0;A=A+1|0}do{if((S|0)>=(((c[d+37092>>2]|0)*98|0|0)/100|0|0)){if((S|0)<(y|0)){break}B=B+1|0;if((B|0)==8){u=6477;break L8777}if((B|0)==4){u=6479;break L8777}if((B+1|0)<8){c[l+(B+1<<2)>>2]=v}if((B+2|0)<8){c[l+(B+2<<2)>>2]=v}if((c[d+37072>>2]&2|0)!=0){R=c[n>>2]|0;O=B;Q=(c[l+(B<<2)>>2]|0)-r|0;T=B+1|0;N=(c[l+(B+1<<2)>>2]|0)-r|0;au(R|0,5224,(s=i,i=i+32|0,c[s>>2]=O,c[s+8>>2]=Q,c[s+16>>2]=T,c[s+24>>2]=N,s)|0)|0;i=s}N=g;T=b;eB(N|0,T|0,1320)|0;c[g+16>>2]=(c[l+(B<<2)>>2]|0)+1;c[g+20>>2]=w;c[g>>2]=(c[l+(B<<2)>>2]|0)+1;c[g+4>>2]=c[l+(B+1<<2)>>2];bY(g)|0;c[g+72>>2]=0;c[j+(B<<2)>>2]=dK(g,p,0)|0;c[h+(B<<2)>>2]=dz(g,c[j+(B<<2)>>2]|0)|0;do{if((c[h+(B<<2)>>2]|0)>=(c[d+37092>>2]|0)){if((c[h+(B<<2)>>2]|0)<(y-1|0)){break}if((et(k|0,c[j+(B<<2)>>2]|0)|0)!=0){break}if((c[d+37072>>2]&2|0)!=0){T=c[n>>2]|0;au(T|0,5144,(s=i,i=i+1|0,i=i+7&-8,c[s>>2]=0,s)|0)|0;i=s;A=0;while(1){if((A|0)>(B|0)){break}T=c[n>>2]|0;N=(c[l+(A+1<<2)>>2]|0)-r|0;Q=es(c[j+(A<<2)>>2]|0,6)|0;O=c[h+(A<<2)>>2]|0;au(T|0,4992,(s=i,i=i+24|0,c[s>>2]=N,c[s+8>>2]=Q,c[s+16>>2]=O,s)|0)|0;i=s;A=A+1|0}au(c[n>>2]|0,4968,(s=i,i=i+1|0,i=i+7&-8,c[s>>2]=0,s)|0)|0;i=s}a[m|0]=0;S=q;A=0;while(1){if((A|0)>(B|0)){break}S=(aa(c[h+(A<<2)>>2]|0,S)|0)/100|0;do{if((B|0)>0){if((c[j+(A<<2)>>2]|0)!=110){break}if((c[j+(A-1<<2)>>2]|0)!=114){break}S=S-1|0}}while(0);at(m|0,es(c[j+(A<<2)>>2]|0,c[d+37076>>2]|0)|0,20)|0;A=A+1|0}if((S|0)>(y|0)){y=S}if(((S*99|0|0)/100|0|0)>(c[d+37092>>2]|0)){S=(S*99|0|0)/100|0}if((c[d+37072>>2]&2|0)!=0){O=c[n>>2]|0;Q=m|0;N=S;au(O|0,4904,(s=i,i=i+16|0,c[s>>2]=Q,c[s+8>>2]=N,s)|0)|0;i=s}dx(b,m|0,S)|0;a[m|0]=0;B=B-1|0;c[l+(B+2<<2)>>2]=v;break L8779}}while(0);c[l+(B+1<<2)>>2]=(c[l+(B<<2)>>2]|0)+2;break L8779}}while(0);break L8779}}while(0)}}while(0);I=l+(B+1<<2)|0;c[I>>2]=(c[I>>2]|0)+1}if((u|0)==6477){u=0}else if((u|0)==6479){u=0}else if((u|0)==6413){u=0}}}while(0)}else{u=6373}}while(0);if((u|0)==6373){u=0}c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}}if((c[d+37072>>2]|0)==0){i=e;return 0}au(c[n>>2]|0,4776,(s=i,i=i+8|0,c[s>>2]=c[d+37048>>2],s)|0)|0;i=s;i=e;return 0}function dV(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0;b=i;a=c[7036]|0;if((c[a+37072>>2]|0)!=0){d=c[n>>2]|0;au(d|0,4728,(e=i,i=i+1|0,i=i+7&-8,c[e>>2]=0,e)|0)|0;i=e}if((cy(a+84|0)|0)==0){while(1){if((c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=0){f=(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=(a+96|0)}else{f=0}if(!f){break}d=c[(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)+8>>2]|0;L8941:do{if((c[d+36>>2]|0)==57344){g=c[d+8>>2]|0;h=c[d+12>>2]|0;j=h-g+1|0;k=(c[a+37032>>2]|0)+(c[d+4>>2]|0)-(c[d>>2]|0)+1<<2;do{if((j|0)>(c[a+37036>>2]<<1|0)){if((j|0)>=((c[a+37036>>2]|0)*6|0|0)){break}if((c[d+52>>2]|0)==0){break}if((g|0)>((c[d+56>>2]|0)+2|0)){break}if((g|0)<((c[d+52>>2]|0)-2|0)){break}if((h|0)<((c[d+64>>2]|0)+(c[a+37036>>2]|0)-2|0)){break}l=d;m=0;if((cy(a+84|0)|0)==0){L8953:while(1){if((c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=0){o=(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=(a+96|0)}else{o=0}if(!o){break}l=c[(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)+8>>2]|0;L8959:do{if((c[l+36>>2]|0)==57344){do{if((c[l+4>>2]|0)>=((c[d>>2]|0)-k|0)){if((c[l>>2]|0)>((c[d+4>>2]|0)+k|0)){break}if((c[l+48>>2]|0)==(c[d+48>>2]|0)){m=m|1}if((c[l+48>>2]|0)==((c[d+48>>2]|0)+1|0)){m=m|2}if((m|0)==3){p=6552;break L8953}break L8959}}while(0)}}while(0);c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]=c[c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]>>2]}if((p|0)==6552){p=0}cz(a+84|0)}if((m|0)!=3){break L8941}q=c[d+64>>2]|0;if((c[a+37072>>2]&2|0)!=0){r=c[n>>2]|0;s=q-g|0;au(r|0,4680,(e=i,i=i+8|0,c[e>>2]=s,e)|0)|0;i=e;if((c[a+37072>>2]&6|0)!=0){dk(d)}}s=bU(d)|0;c[s+12>>2]=q;c[d+8>>2]=q+1;q=d+48|0;c[q>>2]=(c[q>>2]|0)+1;if((c[l+48>>2]|0)==(c[d+48>>2]|0)){c[d+52>>2]=c[l+52>>2];c[d+56>>2]=c[l+56>>2];c[d+60>>2]=c[l+60>>2];c[d+64>>2]=c[l+64>>2]}c[s+44>>2]=c[a+37048>>2];if((ct(a+84|0,d,s)|0)!=0){s=c[n>>2]|0;au(s|0,4640,(e=i,i=i+1|0,i=i+7&-8,c[e>>2]=0,e)|0)|0;i=e}s=a+37048|0;c[s>>2]=(c[s>>2]|0)+1}}while(0)}}while(0);c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]=c[c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]>>2]}cz(a+84|0)}if((c[a+37072>>2]|0)==0){i=b;return 0}au(c[n>>2]|0,4776,(e=i,i=i+8|0,c[e>>2]=c[a+37048>>2],e)|0)|0;i=e;i=b;return 0}function dW(a){a=a|0;var b=0,c=0;b=a;if((b|0)<128){c=bg(b|0)|0}else{c=0}return c|0}function dX(a){a=a|0;var b=0,c=0;b=a;if((b|0)<128){c=be(b|0)|0}else{c=0}return c|0}function dY(a){a=a|0;var b=0,c=0;b=a;if((b|0)<128){c=aX(b|0)|0}else{c=0}return c|0}function dZ(a){a=a|0;var b=0,c=0;b=a;if((b|0)<128){c=as(b|0)|0}else{c=0}return c|0}function d_(a){a=a|0;var b=0,c=0;b=a;if((b|0)<128){c=aS(b|0)|0}else{c=0}return c|0}function d$(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=a;a=b;b=0;if((c[e+72>>2]|0)!=0){f=c[e+116>>2]|0}else{f=0}g=f;f=dz(e,a)|0;if((c[(c[7036]|0)+37072>>2]|0)!=0){if((c[e+72>>2]|0)<2){h=c[n>>2]|0;j=c[e+72>>2]|0;k=es(c[e+36>>2]|0,6)|0;l=g;g=es(a,6)|0;m=(f+101|0)/2|0;o=c[e>>2]|0;p=c[e+8>>2]|0;au(h|0,4568,(q=i,i=i+56|0,c[q>>2]=j,c[q+8>>2]=k,c[q+16>>2]=l,c[q+24>>2]=g,c[q+32>>2]=m,c[q+40>>2]=o,c[q+48>>2]=p,q)|0)|0;i=q}else{p=c[n>>2]|0;o=c[e+72>>2]|0;m=es(c[e+36>>2]|0,6)|0;g=es(c[e+80>>2]|0,6)|0;l=c[e+116>>2]|0;k=c[e+120>>2]|0;j=es(a,6)|0;h=(f+101|0)/2|0;r=c[e>>2]|0;s=c[e+8>>2]|0;au(p|0,4392,(q=i,i=i+72|0,c[q>>2]=o,c[q+8>>2]=m,c[q+16>>2]=g,c[q+24>>2]=l,c[q+32>>2]=k,c[q+40>>2]=j,c[q+48>>2]=h,c[q+56>>2]=r,c[q+64>>2]=s,q)|0)|0;i=q}}if((f|0)==0){t=b;i=d;return t|0}if((c[e+36>>2]|0)!=(a|0)){b=1;q=e;e=a;a=(f+101|0)/2|0;dy(q,e,a)|0}t=b;i=d;return t|0}function d0(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;b=i;d=a;a=4256;e=4088;f=0;g=0;h=0;j=0;k=0;l=0;m=0;o=0;p=0;q=0;if((c[d+37072>>2]|0)!=0){r=c[n>>2]|0;au(r|0,4040,(s=i,i=i+1|0,i=i+7&-8,c[s>>2]=0,s)|0)|0;i=s}if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){t=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{t=0}if(!t){break}q=p;p=o;o=m;r=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+4>>2]|0)==0){u=0}else{u=c[(c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+4>>2]|0)+8>>2]|0}m=u;if((c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]|0)==0){v=0}else{v=c[(c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]|0)+8>>2]|0}l=v;if((aC(3976,c[r+36>>2]|0)|0)!=0){f=f+1|0}else{do{if((aC(3904,c[r+36>>2]|0)|0)!=0){if((m|0)==0){w=6631;break}if((c[m+36>>2]|0)==(c[r+36>>2]|0)){w=6631;break}if((f-g|0)!=2){if((f-g|0)!=4){w=6631;break}}g=f}else{w=6631}}while(0);if((w|0)==6631){w=0;f=0;g=0}}do{if((c[r+36>>2]|0)==32){if((m|0)==0){break}if((c[m+36>>2]|0)!=32){break}f=0}}while(0);do{if((c[r+36>>2]|0)==58){if((p|0)==0){break}if((c[p+36>>2]|0)==58){break}f=0}}while(0);do{if((aC(3880,c[r+36>>2]|0)|0)!=0){if((f|0)<=5){break}h=h+(d$(r,48)|0)|0}}while(0);do{if((aC(3856,c[r+36>>2]|0)|0)!=0){if((f|0)<=5){break}h=h+(d$(r,49)|0)|0}}while(0);if((c[r+36>>2]|0)==8222){k=c[r+76>>2]|0;x=c[n>>2]|0;au(x|0,25232,(s=i,i=i+1|0,i=i+7&-8,c[s>>2]=0,s)|0)|0;i=s}do{if((c[r+36>>2]|0)==34){if((k|0)!=8222){break}k=0;c[r+76>>2]=8223;c[r+36>>2]=8223;if((c[d+37072>>2]|0)!=0){x=c[n>>2]|0;y=c[r+72>>2]|0;z=c[r+116>>2]|0;A=es(c[r+36>>2]|0,6)|0;B=c[r+116>>2]|0;C=c[r>>2]|0;D=c[r+8>>2]|0;au(x|0,25160,(s=i,i=i+56|0,c[s>>2]=y,c[s+8>>2]=25040,c[s+16>>2]=z,c[s+24>>2]=A,c[s+32>>2]=B,c[s+40>>2]=C,c[s+48>>2]=D,s)|0)|0;i=s}}}while(0);L9107:do{if((c[r+36>>2]|0)<=255){do{if((m|0)!=0){if((c[m+36>>2]|0)<=255){break}break L9107}}while(0);do{if((l|0)!=0){if((c[l+36>>2]|0)<=255){break}break L9107}}while(0);if((c[r+72>>2]|0)<2){break}do{if((c[r+116>>2]|0)==100){if((c[r+120>>2]|0)>=100){break}break L9107}}while(0);do{if((c[r+72>>2]|0)!=0){if((c[r+156>>2]|0)==0){break}break L9107}}while(0);do{if((aC(24992,c[r+36>>2]|0)|0)!=0){if((l|0)==0){break}if((m|0)==0){break}do{if((dY(c[l+36>>2]|0)|0)!=0){if((c[l+36>>2]|0)==105){w=6679;break}if((c[m+36>>2]|0)!=10){if((c[m+36>>2]|0)!=32){w=6679;break}if((c[o+36>>2]|0)!=46){w=6679;break}}h=h+(d$(r,73)|0)|0}else{w=6679}}while(0);if((w|0)==6679){w=0;do{if((c[r+36>>2]|0)!=49){if((aC(e|0,c[l+36>>2]|0)|0)==0){w=6682;break}if((aC(24912,c[m+36>>2]|0)|0)!=0){w=6692}else{w=6682}}else{w=6682}}while(0);L9144:do{if((w|0)==6682){w=0;L9146:do{if((m|0)!=0){do{if((o|0)!=0){if((dW(c[o+36>>2]|0)|0)!=0){break}if((aC(24888,c[o+36>>2]|0)|0)==0){break L9146}}}while(0);if((dW(c[m+36>>2]|0)|0)==0){break}if((c[r+264>>2]|0)!=4){break}if((c[r+296>>2]|0)!=(c[r>>2]|0)){break}if((c[r+304>>2]|0)!=(c[r>>2]|0)){break}if((c[r+312>>2]|0)!=(c[r+4>>2]|0)){break}if((c[r+320>>2]|0)==(c[r+4>>2]|0)){w=6692;break L9144}}}while(0);if((aC(a|0,c[l+36>>2]|0)|0)!=0){h=h+(d$(r,108)|0)|0}else{do{if((dW(c[l+36>>2]|0)|0)!=0){if((aC(24848,c[l+36>>2]|0)|0)!=0){w=6699;break}if((aC(24848,c[m+36>>2]|0)|0)!=0){w=6699;break}h=h+(d$(r,73)|0)|0}else{w=6699}}while(0);if((w|0)==6699){w=0;do{if((m|0)!=0){if((dX(c[m+36>>2]|0)|0)==0){w=6702;break}h=h+(d$(r,108)|0)|0}else{w=6702}}while(0);if((w|0)==6702){w=0;L9171:do{if((dZ(c[m+36>>2]|0)|0)!=0){w=6712}else{if((dZ(c[l+36>>2]|0)|0)!=0){w=6712;break}do{if((l|0)!=0){if((aC(24784,c[l+36>>2]|0)|0)==0){break}if((o|0)==0){break}if((c[o+36>>2]|0)!=(c[l+36>>2]|0)){break}if((m|0)==0){break}if((aC(24728,c[m+36>>2]|0)|0)!=0){w=6712;break L9171}}}while(0);if((c[l+36>>2]|0)!=79){break}if((dY(c[m+36>>2]|0)|0)==0){w=6712}}}while(0);if((w|0)==6712){w=0;h=h+(d$(r,49)|0)|0}}}}}}while(0);if((w|0)==6692){w=0;h=h+(d$(r,73)|0)|0}}}}while(0);do{if((aC(24640,c[r+36>>2]|0)|0)!=0){if((l|0)==0){w=6731;break}if((m|0)!=0){w=6731;break}do{if((dY(c[l+36>>2]|0)|0)!=0){if((c[l+36>>2]|0)==105){w=6726;break}if((aC(a|0,c[l+36>>2]|0)|0)!=0){w=6726;break}h=h+(d$(r,73)|0)|0}else{w=6726}}while(0);if((w|0)==6726){w=0;do{if((dW(c[l+36>>2]|0)|0)!=0){if((aC(24848,c[l+36>>2]|0)|0)!=0){break}h=h+(d$(r,73)|0)|0}}while(0)}}else{w=6731}}while(0);if((w|0)==6731){w=0;if((aC(3880,c[r+36>>2]|0)|0)!=0){if((m|0)!=0){if((d_(c[m+36>>2]|0)|0)!=0){w=6734}else{w=6738}}else{w=6734}do{if((w|0)==6734){w=0;if((l|0)==0){w=6738;break}if((dY(c[l+36>>2]|0)|0)==0){w=6738;break}if((dZ(c[l+36>>2]|0)|0)!=0){w=6738;break}h=h+(d$(r,79)|0)|0}}while(0);if((w|0)==6738){w=0;do{if((m|0)!=0){if((dZ(c[m+36>>2]|0)|0)!=0){w=6745;break}if((dW(c[m+36>>2]|0)|0)==0){w=6745;break}if((l|0)==0){w=6745;break}if((dZ(c[l+36>>2]|0)|0)!=0){w=6745;break}if((dW(c[l+36>>2]|0)|0)==0){w=6745;break}h=h+(d$(r,79)|0)|0}else{w=6745}}while(0);if((w|0)==6745){w=0;do{if((m|0)!=0){w=6748}else{if((l|0)==0){w=6748;break}if((dZ(c[l+36>>2]|0)|0)!=0){w=6761}else{w=6748}}}while(0);L9234:do{if((w|0)==6748){w=0;if((m|0)!=0){if((dZ(c[m+36>>2]|0)|0)!=0){w=6761;break}}do{if((m|0)!=0){if((o|0)==0){break}if((d_(c[m+36>>2]|0)|0)!=0){w=6761;break L9234}}}while(0);if((m|0)!=0){if((aC(24608,c[m+36>>2]|0)|0)!=0){w=6761;break}}if((m|0)==0){break}if((aC(24576,c[m+36>>2]|0)|0)==0){break}if((o|0)==0){break}if((l|0)==0){break}if((c[o+36>>2]|0)!=(c[l+36>>2]|0)){break}if((aC(24488,c[o+36>>2]|0)|0)!=0){w=6761}}}while(0);L9251:do{if((w|0)==6761){w=0;if((l|0)!=0){if((dZ(c[l+36>>2]|0)|0)==0){w=6763}}else{w=6763}L9255:do{if((w|0)==6763){w=0;if((l|0)!=0){if((aC(24328,c[l+36>>2]|0)|0)!=0){break}}do{if((l|0)!=0){if((aC(24576,c[l+36>>2]|0)|0)==0){break}if((o|0)==0){break}if((dZ(c[o+36>>2]|0)|0)==0){break}if((m|0)==0){break}if((aC(24488,c[m+36>>2]|0)|0)!=0){break L9255}}}while(0);if((l|0)!=0){break L9251}}}while(0);do{if((o|0)!=0){if((o|0)!=0){if((aC(24608,c[o+36>>2]|0)|0)!=0){break}}if((o|0)!=0){if((dZ(c[o+36>>2]|0)|0)!=0){break}}if((o|0)==0){break L9251}if((d_(c[o+36>>2]|0)|0)==0){break L9251}}}while(0);if((m|0)!=0){if((dZ(c[m+36>>2]|0)|0)==0){w=6781}}else{w=6781}do{if((w|0)==6781){w=0;if((o|0)!=0){if((dZ(c[o+36>>2]|0)|0)!=0){break}}if((p|0)!=0){if((dZ(c[p+36>>2]|0)|0)!=0){break}}if((l|0)==0){break L9251}if((dZ(c[l+36>>2]|0)|0)==0){break L9251}}}while(0);h=h+(d$(r,48)|0)|0}}while(0)}}}else{do{if((aC(24256,c[r+36>>2]|0)|0)!=0){if((l|0)==0){break}if((m|0)==0){break}do{if((d_(c[m+36>>2]|0)|0)!=0){if((dY(c[l+36>>2]|0)|0)==0){w=6797;break}h=h+(d$(r,83)|0)|0}else{w=6797}}while(0);if((w|0)==6797){w=0;do{if((dY(c[m+36>>2]|0)|0)!=0){if((dY(c[l+36>>2]|0)|0)==0){w=6801;break}if((dW(c[l+36>>2]|0)|0)==0){w=6801;break}h=h+(d$(r,83)|0)|0}else{w=6801}}while(0);if((w|0)==6801){w=0;if((dZ(c[m+36>>2]|0)|0)!=0){w=6803}else{if((dZ(c[l+36>>2]|0)|0)!=0){w=6803}}if((w|0)==6803){w=0;h=h+(d$(r,53)|0)|0}}}}}while(0)}}do{if((dW(c[r+36>>2]|0)|0)!=0){if((l|0)==0){break}if((m|0)==0){break}do{if((dX(c[m+36>>2]|0)|0)!=0){if((dX(c[l+36>>2]|0)|0)==0){break}if(((c[r>>2]|0)-(c[m+4>>2]|0)<<1|0)<=(((c[l>>2]|0)-(c[r+4>>2]|0)|0)*3|0|0)){break}D=bU(0)|0;c[D>>2]=(c[m+4>>2]|0)+2;c[D+4>>2]=(c[r>>2]|0)-2;c[D+8>>2]=c[r+8>>2];c[D+12>>2]=c[r+12>>2];c[D+16>>2]=(c[r>>2]|0)-1;c[D+20>>2]=c[r+8>>2];c[D+24>>2]=0;c[D+28>>2]=0;c[D+32>>2]=0;c[D+36>>2]=32;c[D+40>>2]=0;C=D;dy(C,32,99)|0;c[D+44>>2]=-1;c[D+48>>2]=c[m+48>>2];c[D+64>>2]=0;c[D+60>>2]=0;c[D+56>>2]=0;c[D+52>>2]=0;c[D+68>>2]=d+4;C=d+84|0;B=r;A=D;ct(C,B,A)|0}}while(0)}}while(0);do{if((m|0)!=0){if((l|0)==0){break}do{if((c[m+36>>2]|0)==32){if((aC(24888,c[l+36>>2]|0)|0)==0){break}if((aC(24232,c[r+36>>2]|0)|0)==0){break}if(((c[m+4>>2]|0)-(c[m>>2]|0)|0)<(c[d+37032>>2]<<1|0)){E=m;if((cw(d+84|0,E)|0)==0){A=E;bV(A)|0}if((c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+4>>2]|0)==0){F=0}else{F=c[(c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+4>>2]|0)+8>>2]|0}m=F;j=j+1|0}}}while(0)}}while(0);if((m|0)!=0){if((c[m+36>>2]|0)==96){w=6834}else{if((c[m+36>>2]|0)==39){w=6834}}do{if((w|0)==6834){w=0;if((c[r+36>>2]|0)!=96){if((c[r+36>>2]|0)!=39){break}}if(((c[m+4>>2]|0)-(c[r>>2]|0)|0)<(c[d+37032>>2]|0)){c[r+36>>2]=34;E=m;A=d+84|0;B=E;cw(A,B)|0;B=E;bV(B)|0}}}while(0)}}}while(0);c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}if((c[d+37072>>2]|0)==0){i=b;return 0}au(c[n>>2]|0,24152,(s=i,i=i+16|0,c[s>>2]=h,c[s+8>>2]=j,s)|0)|0;i=s;i=b;return 0}function d1(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;d=i;e=a;a=b;b=0;f=-1;g=0;h=0;j=0;k=1023;l=0;m=0;o=1;while(1){if((o|0)>=(c[a+156>>2]|0)){break}g=g+((c[a+12456+(o<<2)>>2]|0)-(c[a+168+(o<<2)>>2]|0)+1)|0;if((k|0)>(c[a+16552+(o<<2)>>2]|0)){k=c[a+16552+(o<<2)>>2]|0}o=o+1|0}if((c[a+156>>2]|0)>1){g=(g|0)/((c[a+156>>2]|0)-1|0)|0}b=0;p=0;o=1;while(1){if((o|0)>=(c[a+156>>2]|0)){break}q=(c[a+12456+(o<<2)>>2]|0)-(c[a+168+(o<<2)>>2]|0)+1|0;do{if((q|0)>((g*120|0|0)/100|0|0)){r=6860}else{if((q|0)<((g*80|0|0)/100|0|0)){r=6860;break}p=p+q|0;b=b+1|0}}while(0);if((r|0)==6860){r=0}o=o+1|0}do{if((b|0)>0){if(((p|0)/(b|0)|0|0)<=7){break}g=(p|0)/(b|0)|0}}while(0);if((c[a+37072>>2]&1|0)!=0){p=c[n>>2]|0;q=g;au(p|0,24008,(s=i,i=i+8|0,c[s>>2]=q,s)|0)|0;i=s}if((g|0)==0){g=(((c[a+37036>>2]|0)*110|0|0)/100|0)+1|0}if((k|0)<4){k=0}b=0;if((cy(a+84|0)|0)==0){while(1){if((c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=0){t=(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=(a+96|0)}else{t=0}if(!t){break}g=0;q=0;p=0;u=c[(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)+8>>2]|0;v=0;h=0;j=0;l=cB(a+84|0,u)|0;if((c[u+48>>2]|0)>(f|0)){w=0;x=0;if((f|0)>=0){if((c[u+48>>2]|0)>1){w=(c[a+168+(c[u+48>>2]<<2)>>2]|0)-(c[a+168+((c[u+48>>2]|0)-1<<2)>>2]|0)|0}x=(c[a+12456+(c[u+48>>2]<<2)>>2]|0)-(c[a+168+(c[u+48>>2]<<2)>>2]|0)|0;if((x|0)>4){h=(w|0)/(x<<1|0)|0}if((h|0)==0){h=1}}f=c[u+48>>2]|0}if((c[u+48>>2]|0)==(f|0)){g=c[a+28840+(c[u+48>>2]<<2)>>2]|0;q=c[a+32936+(c[u+48>>2]<<2)>>2]|0;if((l|0)!=0){p=(c[u>>2]|0)-(c[l+4>>2]|0)-1|0}if((p|0)<0){p=0}if((h|0)!=0){r=6894}else{if((l|0)==0){r=6894}}if((r|0)==6894){r=0;p=(c[u>>2]|0)-k|0}if((q|0)!=0){j=(p|0)/(g|0)|0}else{j=(p<<1|0)/((c[a+37032>>2]|0)*3|0|0)|0}do{if((p|0)>=(g|0)){if((j|0)!=0){break}j=1}}while(0)}o=0;while(1){if((o|0)>=(h+j|0)){break}x=0;m=cB(a+84|0,u)|0;if((m|0)!=0){x=(c[u>>2]|0)-(c[m+4>>2]|0)+1|0}else{x=0}if((x|0)<0){x=0}l=bU(0)|0;if((j|0)!=0){y=(-x|0)+((aa(o,x)|0)/(j|0)|0)|0}else{y=0}c[l>>2]=(c[u>>2]|0)-2+y;if((j|0)!=0){z=(-x|0)+((aa(o+1|0,x)|0)/(j|0)|0)|0}else{z=0}c[l+4>>2]=(c[u>>2]|0)-2+z;c[l+8>>2]=c[u+8>>2];c[l+12>>2]=c[u+12>>2];do{if((o|0)>=(h|0)){if((m|0)==0){break}if((j|0)!=0){A=(aa(o,x)|0)/(j|0)|0}else{A=0}c[l>>2]=(c[m+4>>2]|0)+2+A}}while(0);if((o|0)<(h|0)){r=6923}else{if((m|0)==0){r=6923}}if((r|0)==6923){r=0;c[l>>2]=c[a+16552+(c[u+48>>2]<<2)>>2]}do{if((o|0)<(h|0)){if((m|0)==0){break}c[l+8>>2]=c[m+12>>2];c[l+12>>2]=c[u+8>>2]}}while(0);c[l+16>>2]=c[l>>2];c[l+20>>2]=c[u+8>>2];c[l+24>>2]=0;w=((o|0)<(h|0)?10:32)&255;v=w;c[l+36>>2]=w<<24>>24;c[l+28>>2]=0;c[l+32>>2]=0;c[l+40>>2]=0;c[l+44>>2]=-1;c[l+48>>2]=c[u+48>>2];c[l+52>>2]=c[u+52>>2];c[l+56>>2]=c[u+56>>2];c[l+60>>2]=c[u+60>>2];c[l+64>>2]=c[u+64>>2];c[l+68>>2]=e;dy(l,v<<24>>24,100)|0;ct(a+84|0,u,l)|0;if((c[a+37072>>2]&1|0)!=0){w=c[n>>2]|0;B=c[l+36>>2]|0;C=c[l>>2]|0;D=c[l+8>>2]|0;E=l;F=q;G=g;H=p;I=x;au(w|0,23888,(s=i,i=i+64|0,c[s>>2]=B,c[s+8>>2]=C,c[s+16>>2]=D,c[s+24>>2]=E,c[s+32>>2]=F,c[s+40>>2]=G,c[s+48>>2]=H,c[s+56>>2]=I,s)|0)|0;i=s}b=b+1|0;o=o+1|0}c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]=c[c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]>>2]}cz(a+84|0)}if((c[a+37072>>2]&1|0)==0){i=d;return 0}au(c[n>>2]|0,23840,(s=i,i=i+8|0,c[s>>2]=b,s)|0)|0;i=s;i=d;return 0}function d2(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0;b=i;d=a;a=d+156|0;e=0;f=0;if((c[d+37072>>2]&1|0)!=0){g=c[n>>2]|0;au(g|0,23784,(h=i,i=i+1|0,i=i+7&-8,c[h>>2]=0,h)|0)|0;i=h}if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){j=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{j=0}if(!j){break}g=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;k=1;while(1){if((k|0)>=(c[d+156>>2]|0)){break}if((c[a+4>>2]|0)!=0){l=aa(c[a+8>>2]|0,((c[g+4>>2]|0)+(c[g>>2]|0)|0)/2|0)|0;m=(l|0)/(c[a+4>>2]|0)|0}else{m=0}l=(c[a+12+(k<<2)>>2]|0)+m|0;o=(c[a+4108+(k<<2)>>2]|0)+m|0;p=(c[a+8204+(k<<2)>>2]|0)+m|0;q=(c[a+12300+(k<<2)>>2]|0)+m|0;if((q-l|0)!=0){do{if((c[g>>2]|0)>=(c[a+16396+(k<<2)>>2]|0)){if((c[g+4>>2]|0)>((c[a+20492+(k<<2)>>2]|0)+(c[d+37032>>2]|0)|0)){break}do{if((c[g+8>>2]|0)<=(q+(c[d+37036>>2]<<1)|0)){if((c[g+12>>2]|0)<(l-((c[d+37036>>2]|0)/2|0)|0)){break}if((c[g+12>>2]|0)>(q+(c[d+37036>>2]<<1)|0)){break}do{if((c[g+56>>2]|0)==0){r=6961}else{s=P((c[g+12>>2]|0)-(c[g+60>>2]|0)|0)|0;if((s|0)<=(P((c[g+12>>2]|0)-l|0)|0)){break}if((c[g+8>>2]|0)>(c[g+64>>2]|0)){r=6961}}}while(0);if((r|0)==6961){r=0;c[g+52>>2]=l;c[g+56>>2]=o;c[g+60>>2]=p;c[g+64>>2]=q;c[g+48>>2]=k}}}while(0)}}while(0)}k=k+1|0}do{if(((c[g+12>>2]|0)+2|0)<(c[g+52>>2]|0)){r=6970}else{if((c[g+8>>2]|0)<((c[g+52>>2]|0)-(((c[g+60>>2]|0)-(c[g+52>>2]|0)|0)/2|0)|0)){r=6970;break}if(((c[g+8>>2]|0)-2|0)>((c[g+64>>2]|0)+(((c[g+60>>2]|0)-(c[g+56>>2]|0)|0)/2|0)|0)){r=6970;break}if((c[g+12>>2]|0)>((c[g+60>>2]|0)+((c[g+60>>2]|0)-(c[g+52>>2]|0))|0)){r=6970;break}e=e+1|0}}while(0);if((r|0)==6970){r=0;c[g+52>>2]=0;c[g+56>>2]=0;c[g+60>>2]=0;c[g+64>>2]=0;c[g+48>>2]=0;f=f+1|0}c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}if((c[d+37072>>2]&1|0)==0){i=b;return 0}au(c[n>>2]|0,23728,(h=i,i=i+16|0,c[h>>2]=e,c[h+8>>2]=f,h)|0)|0;i=h;i=b;return 0}function d3(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=a;a=b;do{if((c[a+48>>2]|0)>=(c[d+48>>2]|0)){if((c[a+48>>2]|0)==(c[d+48>>2]|0)){if((c[a>>2]|0)<(c[d>>2]|0)){break}}e=-1;f=e;return f|0}}while(0);e=1;f=e;return f|0}function d4(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;d=i;e=b;b=0;if((c[6834]|0)==0){b=c[e+37052>>2]|0}c[6834]=(c[6834]|0)+1;if((e|0)!=0){}else{aE(23640,24920,3039,25424);return 0}f=e+4|0;g=ei(100,23552)|0;ek(0,g)|0;h=e+28|0;j=e+4|0;c[h>>2]=c[j>>2];c[h+4>>2]=c[j+4>>2];c[h+8>>2]=c[j+8>>2];c[h+12>>2]=c[j+12>>2];if((b|0)==0){c[e+37052>>2]=dh(c[f>>2]|0,c[f+8>>2]|0,c[f+4>>2]|0,0,0,c[f+4>>2]|0,c[f+8>>2]|0,c[e+37072>>2]&1)|0}else{b=c[f>>2]|0;j=c[f+8>>2]|0;h=c[f+4>>2]|0;k=c[f+4>>2]|0;l=c[f+8>>2]|0;m=c[e+37072>>2]&1;dh(b,j,h,0,0,k,l,m)|0}c[e+37052>>2]=di(c[f>>2]|0,c[f+8>>2]|0,c[f+4>>2]|0,0,0,c[f+4>>2]|0,c[f+8>>2]|0,c[e+37052>>2]|0)|0;if((c[e+37072>>2]|0)!=0){m=c[n>>2]|0;l=c[e+37052>>2]|0;au(m|0,23408,(o=i,i=i+8|0,c[o>>2]=l,o)|0)|0;i=o}ek(5,g)|0;ek(8,g)|0;dL(e,f)|0;if((c[e+37048>>2]|0)==0){l=c[n>>2]|0;au(l|0,23360,(o=i,i=i+1|0,i=i+7&-8,c[o>>2]=0,o)|0)|0;i=o;if((c[e+37072>>2]&32|0)!=0){l=e;dn(23328,l,8)|0}p=1;q=p;i=d;return q|0}ek(10,g)|0;el(e)|0;ek(12,g)|0;bQ(e)|0;b8(e)|0;eo(e)|0;dP(f)|0;b4(e)|0;b5(f,c[e+37060>>2]|0)|0;ek(20,g)|0;d2(e)|0;if((c[e+37072>>2]&32|0)!=0){l=e;dn(23208,l,12)|0}dV(f,c[e+37060>>2]|0)|0;ep(e,f)|0;dQ(e,f)|0;eq(e)|0;cC(e+84|0,2);dN(e);if((c[e+37060>>2]&64|0)!=0){l=f;dR(l)|0}ek(30,g)|0;dS(f,c[e+37060>>2]|0)|0;ek(60,g)|0;if((b6(f,c[e+37060>>2]|0)|0)!=0){cC(e+84|0,2);l=f;m=c[e+37060>>2]|0;dS(l,m)|0}m=0;l=0;k=0;if((cy(e+84|0)|0)==0){while(1){if((c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)!=0){r=(c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)!=(e+96|0)}else{r=0}if(!r){break}h=c[(c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[h+36>>2]|0)==57344){k=k+1|0}if((c[h+36>>2]|0)==57345){l=l+1|0}m=m+1|0;c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]=c[c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]>>2]}cz(e+84|0)}if((c[e+37072>>2]|0)!=0){r=c[n>>2]|0;h=k;k=l;l=m;au(r|0,23144,(o=i,i=i+24|0,c[o>>2]=h,c[o+8>>2]=k,c[o+16>>2]=l,o)|0)|0;i=o}if((c[e+37072>>2]&32|0)!=0){l=e;dn(23120,l,13)|0}dT(f,c[e+37060>>2]|0)|0;ek(70,g)|0;dU(f,c[e+37060>>2]|0)|0;ek(80,g)|0;if((c[e+37072>>2]&6|0)!=0){l=e;dm(l)|0}d1(f,e)|0;if((c[e+37072>>2]|0)!=0){f=c[n>>2]|0;au(f|0,23056,(o=i,i=i+1|0,i=i+7&-8,c[o>>2]=0,o)|0)|0;i=o}if((c[e+37060>>2]&32|0)==0){f=e;d0(f)|0}cr(e,c[e+37060>>2]|0);ek(90,g)|0;f=22944;l=0;k=0;h=0;if((cy(e+84|0)|0)==0){while(1){if((c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)!=0){s=(c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)!=(e+96|0)}else{s=0}if(!s){break}t=c[(c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[t+36>>2]|0)==57344){h=h+1|0}if((c[t+36>>2]|0)==57345){k=k+1|0}do{if((c[t+36>>2]|0)>32){if((c[t+36>>2]|0)>122){break}l=l+1|0}}while(0);c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]=c[c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]>>2]}cz(e+84|0)}if((c[e+37072>>2]|0)!=0){s=c[n>>2]|0;r=h;m=k;k=l;au(s|0,22760,(o=i,i=i+24|0,c[o>>2]=r,c[o+8>>2]=m,c[o+16>>2]=k,o)|0)|0;i=o}h=0;while(1){if((h|0)>=20){break}l=0;if((cy(e+84|0)|0)==0){while(1){if((c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)!=0){u=(c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)!=(e+96|0)}else{u=0}if(!u){break}t=c[(c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[t+36>>2]|0)==(a[f+h|0]|0)){l=l+1|0}c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]=c[c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]>>2]}cz(e+84|0)}do{if((c[e+37072>>2]|0)!=0){if((l|0)<=0){break}k=c[n>>2]|0;m=a[f+h|0]|0;r=l;au(k|0,22208,(o=i,i=i+16|0,c[o>>2]=m,c[o+8>>2]=r,o)|0)|0;i=o}}while(0);h=h+1|0}if((c[e+37072>>2]|0)!=0){h=c[n>>2]|0;au(h|0,4968,(o=i,i=i+1|0,i=i+7&-8,c[o>>2]=0,o)|0)|0;i=o}if((c[e+37072>>2]&32|0)!=0){o=e;dn(22040,o,6)|0}ek(100,g)|0;ej(g)|0;p=0;q=p;i=d;return q|0}function d5(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=b;b=d;d=e;do{if((b|0)>=0){if((d|0)<0){break}if((b|0)>=(c[f+4>>2]|0)){break}if((d|0)>=(c[f+8>>2]|0)){break}e=b+(aa(d,c[f+4>>2]|0)|0)|0;g=a[(c[f>>2]|0)+e|0]&7;h=g;return h|0}}while(0);g=0;h=g;return h|0}function d6(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=b;b=c;c=d;d=e;if((c|0)>=0){if((c|0)<=9){}else{g=7084}}else{g=7084}if((g|0)==7084){aE(7864,19664,265,25320)}if((d|0)<1024){}else{aE(15320,19664,266,25320)}if((c|0)==9){if((a[b+4|0]|0)==0){a[f+d|0]=2}else{a[f+d|0]=1}return}if((d|0)!=-1){a[f+d|0]=1}if((a[b+c|0]|0)==0){d6(f,b,c+1|0,(d<<1)+2|0);return}if((a[b+c|0]|0)==1){d6(f,b,c+1|0,(d<<1)+3|0)}else{d6(f,b,c+1|0,(d<<1)+2|0);d6(f,b,c+1|0,(d<<1)+3|0)}return}function d7(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=b;b=e;e=f;f=b+(aa(e,c[g+4>>2]|0)|0)|0;h=d[(c[g>>2]|0)+f|0]&-8;if((c[6576]|0)==0){eC(26312,0,1024)|0;f=0;while(1){if((f|0)>=6){break}d6(26312,320+(f*9|0)|0,0,-1);f=f+1|0}c[6576]=1}f=-1;do{if((e|0)==0){f=13}else{do{if((b|0)==0){i=7114}else{j=b-1+(aa(e-1|0,c[g+4>>2]|0)|0)|0;if((d[(c[g>>2]|0)+j|0]>>7|0)==0){i=7114;break}f=(f<<1)+2|0}}while(0);if((i|0)==7114){f=(f<<1)+3|0}j=b+(aa(e-1|0,c[g+4>>2]|0)|0)|0;if((d[(c[g>>2]|0)+j|0]>>7|0)!=0){f=(f<<1)+2|0}else{f=(f<<1)+3|0}if((a[26312+f|0]|0)==0){k=h;l=k;return l|0}do{if((b+1|0)==(c[g+4>>2]|0)){i=7123}else{j=b+1+(aa(e-1|0,c[g+4>>2]|0)|0)|0;if((d[(c[g>>2]|0)+j|0]>>7|0)==0){i=7123;break}f=(f<<1)+2|0}}while(0);if((i|0)==7123){f=(f<<1)+3|0}if((a[26312+f|0]|0)!=0){break}k=h;l=k;return l|0}}while(0);do{if((b|0)==0){i=7130}else{j=b-1+(aa(e|0,c[g+4>>2]|0)|0)|0;if((d[(c[g>>2]|0)+j|0]>>7|0)==0){i=7130;break}f=(f<<1)+2|0}}while(0);if((i|0)==7130){f=(f<<1)+3|0}if((a[26312+f|0]|0)==0){k=h;l=k;return l|0}j=b+(aa(e|0,c[g+4>>2]|0)|0)|0;if((d[(c[g>>2]|0)+j|0]>>7|0)!=0){f=(f<<1)+2|0}else{f=(f<<1)+3|0}if((a[26312+f|0]|0)==0){k=h;l=k;return l|0}do{if((b+1|0)==(c[g+4>>2]|0)){i=7141}else{j=b+1+(aa(e|0,c[g+4>>2]|0)|0)|0;if((d[(c[g>>2]|0)+j|0]>>7|0)==0){i=7141;break}f=(f<<1)+2|0}}while(0);if((i|0)==7141){f=(f<<1)+3|0}if((a[26312+f|0]|0)==0){k=h;l=k;return l|0}if((e+1|0)==(c[g+8>>2]|0)){f=(f<<3)+21|0}else{do{if((b|0)==0){i=7149}else{j=b-1+(aa(e+1|0,c[g+4>>2]|0)|0)|0;if((d[(c[g>>2]|0)+j|0]>>7|0)==0){i=7149;break}f=(f<<1)+2|0}}while(0);if((i|0)==7149){f=(f<<1)+3|0}if((a[26312+f|0]|0)==0){k=h;l=k;return l|0}j=b+(aa(e+1|0,c[g+4>>2]|0)|0)|0;if((d[(c[g>>2]|0)+j|0]>>7|0)!=0){f=(f<<1)+2|0}else{f=(f<<1)+3|0}if((a[26312+f|0]|0)==0){k=h;l=k;return l|0}do{if((b+1|0)==(c[g+4>>2]|0)){i=7160}else{j=b+1+(aa(e+1|0,c[g+4>>2]|0)|0)|0;if((d[(c[g>>2]|0)+j|0]>>7|0)==0){i=7160;break}f=(f<<1)+2|0}}while(0);if((i|0)==7160){f=(f<<1)+3|0}}if((f|0)<1024){}else{aE(15320,19664,418,25400);return 0}do{if((a[26312+f|0]|0)==0){m=1}else{if((a[26312+f|0]|0)==1){m=1;break}if((a[26312+f|0]|0)==2){m=1;break}aE(10792,19664,419,25400);return 0}}while(0);if((a[26312+f|0]|0)==0){k=h;l=k;return l|0}if((a[26312+f|0]|0)==1){k=c[(c[7036]|0)+37052>>2]|0;l=k;return l|0}else{k=0;l=k;return l|0}return 0}function d8(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,i=0;f=a;a=b;b=e;e=c[7036]|0;do{if((a|0)>=0){if((b|0)<0){break}if((a|0)>=(c[f+4>>2]|0)){break}if((b|0)>=(c[f+8>>2]|0)){break}if((c[e+44>>2]|0)>0){g=d7(f,a,b)|0;h=g;return h|0}else{i=a+(aa(b,c[f+4>>2]|0)|0)|0;g=(d[(c[f>>2]|0)+i|0]|0)&-8;h=g;return h|0}}}while(0);g=248;h=g;return h|0}function d9(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;i=b;b=e;e=f;if((b|0)>=(c[i+4>>2]|0)){return}if((b|0)<0){return}if((e|0)<0){return}if((e|0)>=(c[i+8>>2]|0)){return}f=b+(aa(e,c[i+4>>2]|0)|0)|0;j=b+(aa(e,c[i+4>>2]|0)|0)|0;a[(c[i>>2]|0)+j|0]=((d[(c[i>>2]|0)+f|0]|0)&g|h)&255;return}function ea(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=a;a=0;while(1){if((c[8+(a<<2)>>2]|0)==0){d=7216;break}e=a6(b|0,c[8+(a<<2)>>2]|0)|0;if((e|0)!=0){f=eA(e|0)|0;if((f|0)==(eA(c[8+(a<<2)>>2]|0)|0)){d=7212;break}}a=a+2|0}if((d|0)==7212){g=c[8+(a+1<<2)>>2]|0;h=g;return h|0}else if((d|0)==7216){g=0;h=g;return h|0}return 0}function eb(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;d=a;a=0;while(1){e=(ao(d|0)|0)&255;if((aG(d|0)|0)!=0){f=c[n>>2]|0;au(f|0,14960,(g=i,i=i+8|0,c[g>>2]=130,g)|0)|0;i=g;f=c[n>>2]|0;au(f|0,14544,(g=i,i=i+1|0,i=i+7&-8,c[g>>2]=0,g)|0)|0;i=g}if((am(d|0)|0)!=0){h=7224;break}if((e<<24>>24|0)==35){a=1;continue}if((a|0)==0){h=7228;break}if((e<<24>>24|0)==10){a=0}}if((h|0)==7228){i=b;return e|0}else if((h|0)==7224){au(c[n>>2]|0,14960,(g=i,i=i+8|0,c[g>>2]=131,g)|0)|0;i=g;au(c[n>>2]|0,14168,(g=i,i=i+1|0,i=i+7&-8,c[g>>2]=0,g)|0)|0;i=g;aO(1);return 0}return 0}function ec(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=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=i;i=i+512|0;h=g|0;j=b;b=e;e=f;f=1;do{if((c[6570]|0)==0){c[6568]=0;do{if((a[j|0]|0)==45){if((a[j+1|0]|0)!=0){k=7236;break}c[6570]=c[m>>2]}else{k=7236}}while(0);if((k|0)==7236){c[6568]=ea(j)|0;do{if((c[6568]|0)!=0){l=h|0;p=c[6568]|0;q=j;aP(l|0,12520,(r=i,i=i+16|0,c[r>>2]=p,c[r+8>>2]=q,r)|0)|0;i=r;if((e|0)!=0){q=c[n>>2]|0;p=h|0;au(q|0,12024,(r=i,i=i+8|0,c[r>>2]=p,r)|0)|0;i=r}c[6570]=ba(h|0,11392)|0;if((c[6570]|0)!=0){break}else{p=c[n>>2]|0;au(p|0,14960,(r=i,i=i+8|0,c[r>>2]=325,r)|0)|0;i=r;p=c[n>>2]|0;q=h|0;au(p|0,11024,(r=i,i=i+8|0,c[r>>2]=q,r)|0)|0;i=r;aO(1);return 0}}else{c[6570]=aA(j|0,13880)|0;if((c[6570]|0)!=0){break}else{q=c[n>>2]|0;au(q|0,14960,(r=i,i=i+8|0,c[r>>2]=311,r)|0)|0;i=r;q=c[n>>2]|0;p=j;au(q|0,13232,(r=i,i=i+8|0,c[r>>2]=p,r)|0)|0;i=r;aO(1);return 0}}}while(0)}a[26296]=(ao(c[6570]|0)|0)&255;if((aG(c[6570]|0)|0)==0){break}p=c[n>>2]|0;au(p|0,14960,(r=i,i=i+8|0,c[r>>2]=328,r)|0)|0;i=r;p=c[n>>2]|0;au(p|0,10888,(r=i,i=i+1|0,i=i+7&-8,c[r>>2]=0,r)|0)|0;i=r;s=-1;t=s;i=g;return t|0}}while(0);a[26288]=(ao(c[6570]|0)|0)&255;if((aG(c[6570]|0)|0)!=0){p=c[n>>2]|0;au(p|0,14960,(r=i,i=i+8|0,c[r>>2]=330,r)|0)|0;i=r;p=c[n>>2]|0;au(p|0,10888,(r=i,i=i+1|0,i=i+7&-8,c[r>>2]=0,r)|0)|0;i=r;s=-1;t=s;i=g;return t|0}do{if((a[26296]|0)==80){if((a[26288]|0)<49){break}if((a[26288]|0)>54){break}p=0;q=0;l=0;if((a[26288]|0)==52){k=7259}else{if((a[26288]|0)==49){k=7259}}if((k|0)==7259){p=1}u=0;while(1){if((a[26288]|0)==53){k=7263}else{if((a[26288]|0)==50){k=7263}else{k=7264}}if((k|0)==7263){k=0;if((u&7|0)<6){v=1}else{k=7264}}do{if((k|0)==7264){k=0;if((a[26288]|0)==54){k=7266}else{if((a[26288]|0)==51){k=7266}}if((k|0)==7266){k=0;if((u&7|0)<6){v=1;break}}if((a[26288]|0)==52){k=7269}else{if((a[26288]|0)==49){k=7269}else{w=0}}if((k|0)==7269){k=0;w=(u&7|0)<4}v=w}}while(0);if(!v){break}a[26296]=eb(c[6570]|0)|0;if((u&1|0)==0){if((aS(a[26296]|0)|0)==0){u=u+1|0}}if((u&1|0)==1){if((as(a[26296]|0)|0)!=0){if((u|0)==1){l=(l*10|0)+(a[26296]|0)-48|0}else{if((u|0)==3){q=(q*10|0)+(a[26296]|0)-48|0}else{if((u|0)==5){p=(p*10|0)+(a[26296]|0)-48|0}}}}else{if((aS(a[26296]|0)|0)==0){k=7279;break}u=u+1|0}}}if((k|0)==7279){x=c[n>>2]|0;au(x|0,14960,(r=i,i=i+8|0,c[r>>2]=353,r)|0)|0;i=r;x=c[n>>2]|0;au(x|0,10040,(r=i,i=i+1|0,i=i+7&-8,c[r>>2]=0,r)|0)|0;i=r;aO(1);return 0}if((e|0)!=0){x=c[n>>2]|0;y=a[26288]|0;z=q;A=l;B=p;C=aM(c[6570]|0)|0;au(x|0,9872,(r=i,i=i+40|0,c[r>>2]=y,c[r+8>>2]=z,c[r+16>>2]=A,c[r+24>>2]=B,c[r+32>>2]=C,r)|0)|0;i=r}do{if((a[26288]|0)==52){if((l&7|0)==0){break}if((e|0)!=0){C=c[n>>2]|0;B=l+7&-8;au(C|0,9760,(r=i,i=i+8|0,c[r>>2]=B,r)|0)|0;i=r}}}while(0);if((p>>8|0)!=0){f=2}if((p>>16|0)!=0){f=3}if((p>>24|0)!=0){f=4}az(c[o>>2]|0)|0;if(+(aa(l,q)|0)*1.0!=+(l|0)*1.0*+(q|0)){B=c[n>>2]|0;au(B|0,14960,(r=i,i=i+8|0,c[r>>2]=370,r)|0)|0;i=r;B=c[n>>2]|0;au(B|0,9640,(r=i,i=i+1|0,i=i+7&-8,c[r>>2]=0,r)|0)|0;i=r;aO(1);return 0}B=ev(aa(l,q)|0)|0;if((B|0)==0){C=c[n>>2]|0;au(C|0,14960,(r=i,i=i+8|0,c[r>>2]=372,r)|0)|0;i=r;C=c[n>>2]|0;au(C|0,9480,(r=i,i=i+1|0,i=i+7&-8,c[r>>2]=0,r)|0)|0;i=r;aO(1);return 0}C=0;while(1){if((C|0)>=(aa(l,q)|0)){break}a[B+C|0]=-1;C=C+1|0}if((a[26288]|0)==53){k=7315}else{if((a[26288]|0)==50){k=7315}}if((k|0)==7315){C=0;while(1){if((C|0)>=(aa(l,q)|0)){break}if((a[26288]|0)==53){if((f|0)!=(aW(h|0,1,f|0,c[6570]|0)|0)){k=7319;break}}else{D=0;while(1){if((D|0)>=3){break}A=h+(aa(D,f)|0)|0;ed(A,f,c[6570]|0)|0;D=D+1|0}}a[B+C|0]=a[h+(f-1)|0]|0;C=C+1|0}if((k|0)==7319){A=c[n>>2]|0;z=f;y=C;au(A|0,9360,(r=i,i=i+16|0,c[r>>2]=z,c[r+8>>2]=y,r)|0)|0;i=r}}if((a[26288]|0)==54){k=7331}else{if((a[26288]|0)==51){k=7331}}if((k|0)==7331){C=0;while(1){if((C|0)>=(aa(l,q)|0)){break}if((a[26288]|0)==54){if((f*3|0|0)!=(aW(h|0,1,f*3|0|0,c[6570]|0)|0)){k=7335;break}}else{D=0;while(1){if((D|0)>=3){break}y=h+(aa(D,f)|0)|0;ed(y,f,c[6570]|0)|0;D=D+1|0}}a[B+C|0]=(((d[h+(f-1)|0]|0)*511|0)+511>>10)+(((d[h+((f<<1)-1)|0]|0)*396|0)+511>>10)+(((d[h+((f*3|0)-1)|0]|0)*117|0)+511>>10)&255;C=C+1|0}if((k|0)==7335){y=c[n>>2]|0;z=f;A=C;au(y|0,9168,(r=i,i=i+16|0,c[r>>2]=z,c[r+8>>2]=A,r)|0)|0;i=r}}do{if((a[26288]|0)==49){C=0;D=0;u=0;p=255;while(1){if((C|0)<(aa(l,q)|0)){E=(aG(c[6570]|0)|0)!=0^1}else{E=0}if(!E){k=7356;break}a[26296]=eb(c[6570]|0)|0;if((as(a[26296]|0)|0)!=0){a[B+C|0]=((a[26296]|0)==48?255:0)&255;C=C+1|0}else{if((aS(a[26296]|0)|0)==0){k=7353;break}}}if((k|0)==7353){A=c[n>>2]|0;au(A|0,14960,(r=i,i=i+8|0,c[r>>2]=399,r)|0)|0;i=r;A=c[n>>2]|0;au(A|0,9072,(r=i,i=i+1|0,i=i+7&-8,c[r>>2]=0,r)|0)|0;i=r;aO(1);return 0}else if((k|0)==7356){break}}}while(0);if((a[26288]|0)==52){u=l+7&-8;if((q|0)!=(aW(B|0,u>>3|0,q|0,c[6570]|0)|0)){A=c[n>>2]|0;au(A|0,14960,(r=i,i=i+8|0,c[r>>2]=403,r)|0)|0;i=r;A=c[n>>2]|0;au(A|0,9016,(r=i,i=i+1|0,i=i+7&-8,c[r>>2]=0,r)|0)|0;i=r;aO(1);return 0}A=q-1|0;while(1){if((A|0)<0){break}z=l-1|0;while(1){if((z|0)<0){break}y=(128&d[B+(z+(aa(A,u)|0)>>3)|0]<<(z&7)|0)!=0;a[B+(z+(aa(A,l)|0))|0]=(y?0:255)&255;z=z-1|0}A=A-1|0}p=255}A=255;u=0;C=0;while(1){if((C|0)>=(aa(l,q)|0)){break}if((d[B+C|0]|0)>(u|0)){u=d[B+C|0]|0}if((d[B+C|0]|0)<(A|0)){A=d[B+C|0]|0}C=C+1|0}if((e|0)!=0){C=c[n>>2]|0;p=A;z=u;au(C|0,8840,(r=i,i=i+16|0,c[r>>2]=p,c[r+8>>2]=z,r)|0)|0;i=r}c[b>>2]=B;c[b+4>>2]=l;c[b+8>>2]=q;c[b+12>>2]=1;if((e|0)!=0){z=c[n>>2]|0;au(z|0,8744,(r=i,i=i+1|0,i=i+7&-8,c[r>>2]=0,r)|0)|0;i=r}a[26296]=0;a[26296]=(ao(c[6570]|0)|0)&255;do{if((aG(c[6570]|0)|0)==0){if((a[26296]|0)!=80){break}s=1;t=s;i=g;return t|0}}while(0);if((e|0)!=0){q=c[n>>2]|0;au(q|0,8664,(r=i,i=i+1|0,i=i+7&-8,c[r>>2]=0,r)|0)|0;i=r}if((a[j|0]|0)!=45){k=7387}else{if((a[j+1|0]|0)!=0){k=7387}}if((k|0)==7387){if((c[6568]|0)!=0){q=c[6570]|0;ap(q|0)|0}else{q=c[6570]|0;aq(q|0)|0}}c[6570]=0;s=0;t=s;i=g;return t|0}}while(0);k=c[n>>2]|0;j=a4(c[6570]|0)|0;e=aM(c[6570]|0)|0;au(k|0,10536,(r=i,i=i+16|0,c[r>>2]=j,c[r+8>>2]=e,r)|0)|0;i=r;e=255&a[26288];au(c[n>>2]|0,10232,(r=i,i=i+16|0,c[r>>2]=255&a[26296],c[r+8>>2]=e,r)|0)|0;i=r;if((c[6570]|0)!=0){r=c[6570]|0;aq(r|0)|0}c[6570]=0;s=-1;t=s;i=g;return t|0}function ed(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;g=b;b=d;d=e;e=0;while(1){if((e|0)>=(b|0)){break}a[g+e|0]=0;e=e+1|0}h=0;while(1){if(!((aG(d|0)|0)!=0^1)){j=7417;break}k=eb(d)|0;if((aS(k<<24>>24|0)|0)!=0){if((h|0)!=0){j=7408;break}continue}h=1;if((as(k<<24>>24|0)|0)==0){j=7410;break}e=0;l=0;while(1){if((e|0)>=(b|0)){break}l=((a[g+e|0]|0)*10|0)+l|0;a[g+e|0]=l&255;l=l>>8;e=e+1|0}l=g|0;a[l]=(a[l]|0)+((k<<24>>24)-48)&255}if((j|0)==7410){g=c[n>>2]|0;au(g|0,14960,(g=i,i=i+8|0,c[g>>2]=274,g)|0)|0;i=g;e=c[n>>2]|0;au(e|0,9072,(g=i,i=i+1|0,i=i+7&-8,c[g>>2]=0,g)|0)|0;i=g;aO(1);return 0}else if((j|0)==7417){i=f;return 0}else if((j|0)==7408){i=f;return 0}return 0}function ee(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h|0;k=b;b=e;e=f;f=g;c[j>>2]=b<<1;c[j+4>>2]=e<<1;c[j+8>>2]=f<<1;if(((d[k|0]|0)+(d[k+1|0]|0)+(d[k+2|0]|0)|0)>=480){c[j>>2]=(-e|0)-f;c[j+4>>2]=(-b|0)-f;c[j+8>>2]=(-b|0)-e}e=0;while(1){if((e|0)>=3){break}if((c[j+(e<<2)>>2]|0)<0){if((d[k+e|0]|0|0)<(-(c[j+(e<<2)>>2]|0)|0)){l=d[k+e|0]|0}else{l=-(c[j+(e<<2)>>2]|0)|0}b=k+e|0;a[b]=(d[b]|0)-l&255}else{if((255-(d[k+e|0]|0)|0)<(c[j+(e<<2)>>2]|0)){m=255-(d[k+e|0]|0)|0}else{m=c[j+(e<<2)>>2]|0}b=k+e|0;a[b]=(d[b]|0)+m&255}e=e+1|0}i=h;return}function ef(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0;e=i;i=i+136|0;f=e|0;g=e+8|0;h=b;b=d;d=0;j=0;if((aC(h|0,124)|0)!=0){k=-1;l=k;i=e;return l|0}if((a6(h|0,8240)|0)!=0){d=aA(h|0,8624)|0}if((d|0)==0){m=g|0;eE(m|0,8184,12)|0;m=g+11|0;o=h;eE(m|0,o|0,111)|0;a[g+123|0]=0;o=g+(eA(g|0)|0)|0;eE(o|0,17568,5)|0;d=ba(g|0,8088)|0;if((d|0)!=0){j=1}else{o=c[n>>2]|0;au(o|0,14960,(p=i,i=i+8|0,c[p>>2]=478,p)|0)|0;i=p;o=c[n>>2]|0;au(o|0,7912,(p=i,i=i+1|0,i=i+7&-8,c[p>>2]=0,p)|0)|0;i=p}}if((d|0)==0){o=g|0;eE(o|0,7784,11)|0;o=g+10|0;m=h;eE(o|0,m|0,109)|0;a[g+120|0]=0;m=g+(eA(g|0)|0)|0;eE(m|0,9056,8)|0;d=ba(g|0,8088)|0;if((d|0)!=0){j=1}else{m=c[n>>2]|0;au(m|0,14960,(p=i,i=i+8|0,c[p>>2]=485,p)|0)|0;i=p;m=c[n>>2]|0;au(m|0,7680,(p=i,i=i+1|0,i=i+7&-8,c[p>>2]=0,p)|0)|0;i=p}}if((d|0)==0){m=g|0;o=h;eE(m|0,o|0,113)|0;a[g+114|0]=0;o=g+(eA(g|0)|0)|0;eE(o|0,8240,5)|0;d=aA(g|0,8624)|0}if((d|0)==0){g=c[n>>2]|0;au(g|0,14960,(p=i,i=i+8|0,c[p>>2]=493,p)|0)|0;i=p;g=c[n>>2]|0;au(g|0,8592,(p=i,i=i+1|0,i=i+7&-8,c[p>>2]=0,p)|0)|0;i=p;aO(1);return 0}g=c[b+8>>2]|0;au(d|0,7584,(p=i,i=i+16|0,c[p>>2]=c[b+4>>2],c[p+8>>2]=g,p)|0)|0;i=p;if((c[b+12>>2]|0)==1){g=0;while(1){if((g|0)>=(c[b+8>>2]|0)){break}o=0;while(1){if((o|0)>=(c[b+4>>2]|0)){break}m=o+(aa(g,c[b+4>>2]|0)|0)|0;h=a[(c[b>>2]|0)+m|0]|0;m=h&255&15;if((h&255|0)<160){q=(h&255&-16)>>1}else{q=195|(h&255)>>1}h=q&255;r=h;a[f+2|0]=r;a[f+1|0]=r;a[f|0]=r;if((m&1|0)==1){ee(f|0,0,0,((o+g&1)<<3)+8|0)}if((m&8|0)==8){ee(f|0,0,0,16)}if((m&6|0)==6){ee(f|0,0,0,32)}if((m&6|0)==4){ee(f|0,0,48,0)}if((m&6|0)==2){ee(f|0,32,0,0)}if(1!=(bd(f|0,3,1,d|0)|0)){s=7472;break}o=o+1|0}if((s|0)==7472){s=0;o=c[n>>2]|0;au(o|0,14960,(p=i,i=i+8|0,c[p>>2]=508,p)|0)|0;i=p;o=c[n>>2]|0;au(o|0,8408,(p=i,i=i+1|0,i=i+7&-8,c[p>>2]=0,p)|0)|0;i=p;g=c[b+8>>2]|0}g=g+1|0}}if((c[b+12>>2]|0)==3){g=c[b+8>>2]|0;if((g|0)!=(bd(c[b>>2]|0,(c[b+4>>2]|0)*3|0|0,c[b+8>>2]|0,d|0)|0)){b=c[n>>2]|0;au(b|0,14960,(p=i,i=i+8|0,c[p>>2]=511,p)|0)|0;i=p;b=c[n>>2]|0;au(b|0,8408,(p=i,i=i+1|0,i=i+7&-8,c[p>>2]=0,p)|0)|0;i=p}}if((j|0)!=0){j=d;ap(j|0)|0;d=0}if((d|0)!=0){j=d;aq(j|0)|0}k=0;l=k;i=e;return l|0}function eg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0;f=i;g=b;b=e;e=(c[b+4>>2]|0)+7&-8;h=0;while(1){if((h|0)>=(c[b+8>>2]|0)){break}j=0;while(1){if((j|0)>=(c[b+4>>2]|0)){break}k=j+(aa(h,e)|0)>>3;l=7-(j&7)|0;m=j+(aa(h,c[b+4>>2]|0)|0)|0;if((c[b+12>>2]|0)==3){m=((d[(c[b>>2]|0)+(m*3|0)|0]|0)+(d[(c[b>>2]|0)+((m*3|0)+1)|0]|0)+(d[(c[b>>2]|0)+((m*3|0)+2)|0]|0)|0)/3|0}else{m=d[(c[b>>2]|0)+m|0]|0}m=(m|0)>127?0:1;a[(c[b>>2]|0)+k|0]=((d[(c[b>>2]|0)+k|0]|0)&-2<>2]|0;au(g|0,14960,(o=i,i=i+8|0,c[o>>2]=532,o)|0)|0;i=o;g=c[n>>2]|0;au(g|0,8592,(o=i,i=i+1|0,i=i+7&-8,c[o>>2]=0,o)|0)|0;i=o;aO(1);return 0}g=c[b+8>>2]|0;au(h|0,7528,(o=i,i=i+16|0,c[o>>2]=c[b+4>>2],c[o+8>>2]=g,o)|0)|0;i=o;g=c[b+8>>2]|0;if((g|0)!=(bd(c[b>>2]|0,e>>3|0,c[b+8>>2]|0,h|0)|0)){b=c[n>>2]|0;au(b|0,14960,(o=i,i=i+8|0,c[o>>2]=534,o)|0)|0;i=o;b=c[n>>2]|0;au(b|0,8408,(o=i,i=i+1|0,i=i+7&-8,c[o>>2]=0,o)|0)|0;i=o;aO(1);return 0}else{o=h;aq(o|0)|0;i=f;return 0}return 0}function eh(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=b;if((c[6844]|0)!=0){b=c[6844]|0;aq(b|0)|0;c[6844]=0}if((e|0)!=0){do{if((a[e|0]|0)!=0){b=a2(e|0)|0;if((b|0)>255){f=7515}else{if((b|0)>99){g=3}else{g=(b|0)>9?2:1}if((a[e+g|0]|0)!=0){f=7515}}if((f|0)==7515){b=-1}do{if((a[e|0]|0)==45){if((a[e+1|0]|0)!=0){f=7519;break}c[6844]=c[o>>2]}else{f=7519}}while(0);if((f|0)==7519){c[6844]=aA(e|0,6920)|0;if((c[6844]|0)==0){c[6844]=aA(e|0,19256)|0}}if((c[6844]|0)!=0){break}b=c[n>>2]|0;h=e;au(b|0,14984,(b=i,i=i+8|0,c[b>>2]=h,b)|0)|0;i=b;j=-1;k=j;i=d;return k|0}}while(0)}j=0;k=j;i=d;return k|0}function ei(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=ev(24)|0;if((d|0)!=0){c[d+16>>2]=a$(0)|0;c[d+8>>2]=a;c[d+12>>2]=0;c[d+4>>2]=-1;c[d>>2]=b;c[d+20>>2]=c[d+16>>2];e=d;f=e;return f|0}else{e=0;f=e;return f|0}return 0}function ej(a){a=a|0;var b=0;b=a;if((b|0)==0){return 0}ew(b);return 0}function ek(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;e=a;a=b;do{if((c[6844]|0)!=0){if((e-(c[a+4>>2]|0)|0)<=(c[a+12>>2]|0)){break}b=10;f=a$(0)|0;do{if(((f-(c[a+20>>2]|0)|0)*5|0|0)<(c[54]<<1|0)){if((e-(c[a+4>>2]|0)|0)<(c[a+12>>2]|0)){break}if((c[a+12>>2]|0)<1024){g=a+12|0;c[g>>2]=(c[g>>2]|0)+((c[a+12>>2]|0)+1)}}}while(0);if(((f-(c[a+20>>2]|0)|0)*3|0|0)<(c[54]<<1|0)){h=0;j=h;i=d;return j|0}if((f-(c[a+20>>2]|0)<<1|0)>((c[54]|0)*3|0|0)){g=a+12|0;c[g>>2]=c[g>>2]>>1}if((a4(c[6844]|0)|0)<3){b=13}if((e|0)!=0){g=c[6844]|0;k=c[a>>2]|0;l=e;m=c[a+8>>2]|0;n=f-(c[a+16>>2]|0)|0;o=(aa(f-(c[a+16>>2]|0)|0,c[a+8>>2]|0)|0)/(e|0)|0;p=c[a+12>>2]|0;q=b<<24>>24;au(g|0,10592,(g=i,i=i+56|0,c[g>>2]=k,c[g+8>>2]=l,c[g+16>>2]=m,c[g+24>>2]=n,c[g+32>>2]=o,c[g+40>>2]=p,c[g+48>>2]=q,g)|0)|0;i=g}g=c[6844]|0;az(g|0)|0;c[a+4>>2]=e;c[a+20>>2]=f;h=0;j=h;i=d;return j|0}}while(0);h=0;j=h;i=d;return j|0}function el(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;b=i;i=i+880|0;e=b|0;f=a;a=f+4|0;g=c[f+37072>>2]|0;h=c[f+37052>>2]|0;j=0;k=0;l=0;m=0;o=0;p=0;while(1){if((p|0)>=220){break}c[e+(p<<2)>>2]=0;p=p+1|0}if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){q=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{q=0}if(!q){break}r=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[r+196>>2]|0)!=0){o=P(c[r+200>>2]|0)|0;if(((c[r+12>>2]|0)-(c[r+8>>2]|0)+1|0)>3){j=j+1|0;l=l+((c[r+4>>2]|0)-(c[r>>2]|0)+1)|0;k=k+((c[r+12>>2]|0)-(c[r+8>>2]|0)+1)|0;m=m+o|0}if((o|0)<220){s=e+(o<<2)|0;c[s>>2]=(c[s>>2]|0)+1}}c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}do{if((c[f+37064>>2]|0)<0){if((j|0)<=0){break}c[f+37064>>2]=((aa((l|0)/(j|0)|0,(k|0)/(j|0)|0)|0)+16|0)/32|0;if(((k|0)/(j|0)|0|0)<10){c[f+37064>>2]=1}if((g|0)!=0){q=c[n>>2]|0;au(q|0,6784,(t=i,i=i+1|0,i=i+7&-8,c[t>>2]=0,t)|0)|0;i=t}if((g|0)!=0){q=c[n>>2]|0;s=j;u=c[f+37064>>2]|0;v=(m|0)/(j|0)|0;w=(l|0)/(j|0)|0;x=(k|0)/(j|0)|0;au(q|0,19080,(t=i,i=i+40|0,c[t>>2]=s,c[t+8>>2]=u,c[t+16>>2]=v,c[t+24>>2]=w,c[t+32>>2]=x,t)|0)|0;i=t}y=1;L10371:while(1){if((y+3|0)>=220){break}if((g|0)!=0){x=c[n>>2]|0;w=y;v=c[e+(y<<2)>>2]|0;au(x|0,14872,(t=i,i=i+16|0,c[t>>2]=w,c[t+8>>2]=v,t)|0)|0;i=t}L10377:do{if((c[e+(y<<2)>>2]|0)<(j|0)){if((y|0)>=(c[f+37064>>2]|0)){z=7595;break L10371}do{if((y|0)<((c[f+37064>>2]|0)/16|0|0)){if((y|0)>=9){break}break L10377}}while(0);if((c[e+(y<<2)>>2]|0)==0){z=7600;break L10371}if(((c[e+(y+2<<2)>>2]|0)+(c[e+(y+3<<2)>>2]|0)|0)>=((c[e+(y<<2)>>2]|0)+(c[e+(y+1<<2)>>2]|0)|0)){z=7602;break L10371}if((c[e+(y-1<<2)>>2]|0)>(c[e+(y<<2)>>2]<<10|0)){if((c[e+(y+1<<2)>>2]<<1|0)>=(c[e+(y<<2)>>2]|0)){z=7605;break L10371}}}}while(0);y=y+1|0}if((g|0)!=0){v=c[n>>2]|0;au(v|0,10496,(t=i,i=i+1|0,i=i+7&-8,c[t>>2]=0,t)|0)|0;i=t}if((g|0)!=0){p=0;o=y+1|0;while(1){if((o|0)>=220){break}do{if((o|0)==219){z=7616}else{if((c[e+(o<<2)>>2]|0)!=(c[e+(o-1<<2)>>2]|0)){z=7616;break}if((c[e+(o<<2)>>2]|0)!=(c[e+(o+1<<2)>>2]|0)){z=7616}}}while(0);if((z|0)==7616){z=0;v=c[n>>2]|0;w=o;x=c[e+(o<<2)>>2]|0;au(v|0,14872,(t=i,i=i+16|0,c[t>>2]=w,c[t+8>>2]=x,t)|0)|0;i=t;x=p+1|0;p=x;if((x|0)>20){z=7617;break}}o=o+1|0}}c[f+37064>>2]=y-1;if((g|0)!=0){x=c[n>>2]|0;w=c[f+37064>>2]|0;v=j;u=c[f+37048>>2]|0;s=((c[f+37040>>2]|0)+((c[f+37048>>2]|0)/2|0)|0)/(c[f+37048>>2]|0)|0;q=((c[f+37044>>2]|0)+((c[f+37048>>2]|0)/2|0)|0)/(c[f+37048>>2]|0)|0;A=(l|0)/(j|0)|0;B=(k|0)/(j|0)|0;au(x|0,8952,(t=i,i=i+56|0,c[t>>2]=w,c[t+8>>2]=v,c[t+16>>2]=u,c[t+24>>2]=s,c[t+32>>2]=q,c[t+40>>2]=A,c[t+48>>2]=B,t)|0)|0;i=t}}}while(0);if((c[f+37064>>2]|0)!=0){y=0;if((g|0)!=0){j=c[n>>2]|0;k=c[f+37064>>2]|0;au(j|0,8056,(t=i,i=i+8|0,c[t>>2]=k,t)|0)|0;i=t;k=c[n>>2]|0;j=c[e+4>>2]|0;l=c[e+8>>2]|0;z=aa(c[e+4>>2]|0,c[e+4>>2]|0)|0;p=(z|0)/(aa(c[a+4>>2]|0,c[a+8>>2]|0)|0)|0;z=c[e+12>>2]|0;m=aa(c[e+4>>2]|0,c[e+4>>2]|0)|0;B=(m|0)/(aa(c[a+4>>2]|0,c[a+8>>2]|0)|0)|0;m=aa(B,c[e+4>>2]|0)|0;e=(m|0)/(aa(c[a+4>>2]|0,c[a+8>>2]|0)|0)|0;au(k|0,6848,(t=i,i=i+40|0,c[t>>2]=j,c[t+8>>2]=l,c[t+16>>2]=p,c[t+24>>2]=z,c[t+32>>2]=e,t)|0)|0;i=t}y=0;if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){C=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{C=0}if(!C){break}r=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;D=c[r>>2]|0;E=c[r+4>>2]|0;F=c[r+8>>2]|0;G=c[r+12>>2]|0;o=P(c[r+200>>2]|0)|0;if((o|0)<=(c[f+37064>>2]|0)){e=f+37048|0;c[e>>2]=(c[e>>2]|0)-1;e=f+37040|0;c[e>>2]=(c[e>>2]|0)-(E-D+1);e=f+37044|0;c[e>>2]=(c[e>>2]|0)-(G-F+1);H=D;while(1){if((H|0)>(E|0)){break}I=F;while(1){if((I|0)>(G|0)){break}d9(a,H,I,0,248);I=I+1|0}H=H+1|0}cw(f+84|0,r)|0;bV(r)|0;y=y+1|0}c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}if((g|0)!=0){o=c[n>>2]|0;C=y;e=c[f+37048>>2]|0;au(o|0,5856,(t=i,i=i+16|0,c[t>>2]=C,c[t+8>>2]=e,t)|0)|0;i=t}}y=0;if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){J=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{J=0}if(!J){break}r=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[r+200>>2]|0)>=0){D=c[r>>2]|0;E=c[r+4>>2]|0;F=c[r+8>>2]|0;G=c[r+12>>2]|0;do{if((E-D|0)>16){if((G-F|0)<=30){break}H=D+1|0;while(1){if((H|0)>(E-1|0)){break}I=F+1|0;while(1){if((I|0)>(G-1|0)){break}e=H+(aa(I,c[a+4>>2]|0)|0)|0;do{if((d[(c[a>>2]|0)+e|0]|0|0)>=(h|0)){C=H-1+(aa(I,c[a+4>>2]|0)|0)|0;if((d[(c[a>>2]|0)+C|0]|0|0)>=(h|0)){break}C=H+1+(aa(I,c[a+4>>2]|0)|0)|0;if((d[(c[a>>2]|0)+C|0]|0|0)>=(h|0)){break}C=H+(aa(I-1|0,c[a+4>>2]|0)|0)|0;if((d[(c[a>>2]|0)+C|0]|0|0)>=(h|0)){break}C=H+(aa(I+1|0,c[a+4>>2]|0)|0)|0;if((d[(c[a>>2]|0)+C|0]|0|0)>=(h|0)){break}d9(a,H,I,0,0);y=y+1|0}}while(0);I=I+1|0}H=H+1|0}}}while(0)}c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}if((g|0)==0){i=b;return 0}g=c[f+37048>>2]|0;au(c[n>>2]|0,4856,(t=i,i=i+24|0,c[t>>2]=y,c[t+8>>2]=h,c[t+16>>2]=g,t)|0)|0;i=t;i=b;return 0}function em(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=a;a=b;if((c[d>>2]|0)>=((c[a>>2]|0)-1|0)){if((c[d>>2]|0)<=((c[a+4>>2]|0)+1|0)){e=7685}else{e=7683}}else{e=7683}do{if((e|0)==7683){if((c[d+4>>2]|0)<((c[a>>2]|0)-1|0)){break}if((c[d+4>>2]|0)<=((c[a+4>>2]|0)+1|0)){e=7685}}}while(0);do{if((e|0)==7685){if((c[d+8>>2]|0)>=((c[a+8>>2]|0)-1|0)){if((c[d+8>>2]|0)>((c[a+12>>2]|0)+1|0)){e=7687}}else{e=7687}if((e|0)==7687){if((c[d+12>>2]|0)<((c[a+8>>2]|0)-1|0)){break}if((c[d+12>>2]|0)>((c[a+12>>2]|0)+1|0)){break}}f=1;g=f;return g|0}}while(0);f=0;g=f;return g|0}function en(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=a;a=b;do{if((c[d>>2]|0)>=((c[a>>2]|0)-1|0)){if((c[d+4>>2]|0)>((c[a+4>>2]|0)+1|0)){break}if((c[d+8>>2]|0)<((c[a+8>>2]|0)-1|0)){break}if((c[d+12>>2]|0)>((c[a+12>>2]|0)+1|0)){break}e=1;f=e;return f|0}}while(0);e=0;f=e;return f|0}function eo(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;b=i;d=a;a=0;e=0;f=0;if((c[d+37072>>2]|0)!=0){g=c[n>>2]|0;au(g|0,24112,(h=i,i=i+8|0,c[h>>2]=314,h)|0)|0;i=h}a=0;e=0;if((c[d+37072>>2]|0)!=0){if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){j=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{j=0}if(!j){break}k=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[k+36>>2]|0)==57345){a=a+1|0}else{e=e+1|0}c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}}if((c[d+37072>>2]|0)!=0){j=c[n>>2]|0;g=a;l=e;m=c[d+37048>>2]|0;au(j|0,23280,(h=i,i=i+24|0,c[h>>2]=g,c[h+8>>2]=l,c[h+16>>2]=m,h)|0)|0;i=h}if((c[d+37048>>2]|0)>8){if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){o=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{o=0}if(!o){break}p=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;do{if((c[p+36>>2]|0)==57345){if((c[p+72>>2]|0)!=0){break}if(((c[p+4>>2]|0)-(c[p>>2]|0)+1|0)<=((c[(c[p+68>>2]|0)+4>>2]|0)/2|0|0)){break}if(((c[p+12>>2]|0)-(c[p+8>>2]|0)+1|0)<=((c[(c[p+68>>2]|0)+8>>2]|0)/2|0|0)){break}a=0;if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){q=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{q=0}if(!q){break}k=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;if((k|0)!=(p|0)){if((em(k,p)|0)!=0){a=a+1|0}}c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}if((a|0)>8){m=d+84|0;l=p;cw(m,l)|0;l=p;bV(l)|0;f=f+1|0}}}while(0);c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}}if((c[d+37072>>2]|0)!=0){q=c[n>>2]|0;o=f;au(q|0,21744,(h=i,i=i+8|0,c[h>>2]=o,h)|0)|0;i=h}f=0;if((c[d+37048>>2]|0)>1){if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){r=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{r=0}if(!r){break}p=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;L10597:do{if((c[p+36>>2]|0)==57345){do{if(((c[p+4>>2]|0)-(c[p>>2]|0)+1|0)>((c[(c[p+68>>2]|0)+4>>2]|0)/2|0|0)){if(((c[p+12>>2]|0)-(c[p+8>>2]|0)+1|0)<=((c[(c[p+68>>2]|0)+8>>2]|0)/2|0|0)){break}break L10597}}while(0);a=0;if((c[p>>2]|0)==0){a=a+1|0}if((c[p+8>>2]|0)==0){a=a+1|0}if((c[p+4>>2]|0)==((c[(c[p+68>>2]|0)+4>>2]|0)-1|0)){a=a+1|0}if((c[p+12>>2]|0)==((c[(c[p+68>>2]|0)+8>>2]|0)-1|0)){a=a+1|0}if((a|0)>2){o=c[d+37052>>2]|0;a=0;if((d8(c[p+68>>2]|0,c[p>>2]|0,c[p+8>>2]|0)|0)<(o|0)){a=a+1|0}if((d8(c[p+68>>2]|0,c[p+4>>2]|0,c[p+8>>2]|0)|0)<(o|0)){a=a+1|0}if((d8(c[p+68>>2]|0,c[p>>2]|0,c[p+12>>2]|0)|0)<(o|0)){a=a+1|0}if((d8(c[p+68>>2]|0,c[p+4>>2]|0,c[p+12>>2]|0)|0)<(o|0)){a=a+1|0}if((a|0)>2){o=d+84|0;q=p;cw(o,q)|0;q=p;bV(q)|0;f=f+1|0}}}}while(0);c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}}if((c[d+37072>>2]|0)!=0){r=c[n>>2]|0;q=f;au(r|0,20520,(h=i,i=i+8|0,c[h>>2]=q,h)|0)|0;i=h}f=0;a=0;e=0;if((c[d+37072>>2]|0)!=0){if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){s=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{s=0}if(!s){break}k=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[k+36>>2]|0)==57345){a=a+1|0}else{e=e+1|0}c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}}if((c[d+37072>>2]|0)!=0){s=c[n>>2]|0;q=a;r=e;o=c[d+37048>>2]|0;au(s|0,23280,(h=i,i=i+24|0,c[h>>2]=q,c[h+8>>2]=r,c[h+16>>2]=o,h)|0)|0;i=h}a=1;while(1){if((a|0)==0){break}a=0;if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){t=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{t=0}if(!t){break}p=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;do{if((c[p+36>>2]|0)==57345){if((c[p+72>>2]|0)!=0){break}a=1;while(1){if((a|0)==0){break}a=0;k=0;if((cy(d+84|0)|0)==0){L10681:while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){u=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{u=0}if(!u){break}k=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;do{if((k|0)!=(p|0)){if((c[k+72>>2]|0)!=0){break}if((c[k+36>>2]|0)!=57345){break}if((em(k,p)|0)!=0){v=7824}else{if((em(p,k)|0)!=0){v=7824}}if((v|0)==7824){v=0;if(((c[k+4>>2]|0)-(c[k>>2]|0)+1|0)>(c[d+37032>>2]<<1|0)){v=7829;break L10681}if(((c[k+4>>2]|0)-(c[k>>2]|0)+1|0)<((c[d+37032>>2]|0)/2|0|0)){v=7829;break L10681}if(((c[k+12>>2]|0)-(c[k+8>>2]|0)+1|0)>(c[d+37036>>2]<<1|0)){v=7829;break L10681}if(((c[k+12>>2]|0)-(c[k+8>>2]|0)+1|0)<((c[d+37036>>2]|0)/2|0|0)){v=7829;break L10681}if((en(k,p)|0)!=0){v=7829;break L10681}}}}while(0);c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}if((v|0)==7829){v=0;if((c[k>>2]|0)<(c[p>>2]|0)){c[p>>2]=c[k>>2]}if((c[k+4>>2]|0)>(c[p+4>>2]|0)){c[p+4>>2]=c[k+4>>2]}if((c[k+8>>2]|0)<(c[p+8>>2]|0)){c[p+8>>2]=c[k+8>>2]}if((c[k+12>>2]|0)>(c[p+12>>2]|0)){c[p+12>>2]=c[k+12>>2]}a=1}cz(d+84|0)}do{if((a|0)!=0){if((k|0)==0){break}o=d+84|0;r=k;cw(o,r)|0;r=k;bV(r)|0;f=f+1|0}}while(0)}}}while(0);c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}}if((c[d+37072>>2]|0)!=0){p=c[n>>2]|0;v=f;au(p|0,19824,(h=i,i=i+8|0,c[h>>2]=v,h)|0)|0;i=h}a=0;e=0;if((c[d+37072>>2]|0)!=0){if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){w=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{w=0}if(!w){break}k=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[k+36>>2]|0)==57345){v=c[n>>2]|0;p=c[k>>2]|0;f=c[k+8>>2]|0;u=(c[k+4>>2]|0)-(c[k>>2]|0)+1|0;t=(c[k+12>>2]|0)-(c[k+8>>2]|0)+1|0;au(v|0,19176,(h=i,i=i+32|0,c[h>>2]=p,c[h+8>>2]=f,c[h+16>>2]=u,c[h+24>>2]=t,h)|0)|0;i=h;a=a+1|0}else{e=e+1|0}c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}}if((c[d+37072>>2]|0)==0){i=b;return 0}k=c[d+37048>>2]|0;au(c[n>>2]|0,18456,(h=i,i=i+24|0,c[h>>2]=a,c[h+8>>2]=e,c[h+16>>2]=k,h)|0)|0;i=h;i=b;return 0}function ep(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;d=i;e=a;a=b;b=0;f=c[e+37072>>2]|0;g=c[e+37052>>2]|0;h=0;j=0;k=0;if((cy(e+84|0)|0)==0){while(1){if((c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)!=0){l=(c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)!=(e+96|0)}else{l=0}if(!l){break}k=k+1|0;c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]=c[c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]>>2]}cz(e+84|0)}b=ei(k,17880)|0;k=0;if((f|0)!=0){l=c[n>>2]|0;au(l|0,17536,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}if((cy(e+84|0)|0)==0){while(1){if((c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)!=0){o=(c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)!=(e+96|0)}else{o=0}if(!o){break}l=c[(c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[l+36>>2]|0)==57344){p=c[l>>2]|0;q=c[l+4>>2]|0;r=c[l+8>>2]|0;s=c[l+12>>2]|0;t=p;L10779:while(1){if((t+4|0)>=(q|0)){break}t=t+(dC(a,t,r,q-p|0,g,0,3)|0)|0;u=dC(a,t,r,q-p|0,g,1,3)|0;if((t+u|0)>(q+1|0)){v=7892;break}w=dC(a,t,r+1|0,q-p|0,g,1,3)|0;if((w|0)>(u|0)){u=w}if((t+u|0)>(q+1|0)){v=7896;break}x=0;y=0;z=0;A=t;while(1){if((A|0)>=(t+u|0)){break}B=dC(a,A,r,s-r|0,g,0,2)|0;if((B<<3|0)>(s-r|0)){v=7900;break}B=B+(dC(a,A,r+B|0,s-r|0,g,1,2)|0)|0;if((B<<3|0)<=(s-r|0)){if((B<<3|0)<(s-r|0)){z=z+B|0;y=y+1|0}}A=A+1|0}if((v|0)==7900){v=0}if((y|0)==0){t=t+u|0;continue}w=r+((z+y-1|0)/(y|0)|0)+((s-r+1|0)/32|0)|0;if((f&1|0)!=0){C=c[n>>2]|0;D=p;E=r;F=t-p|0;G=u;H=w-r|0;au(C|0,17152,(m=i,i=i+40|0,c[m>>2]=D,c[m+8>>2]=E,c[m+16>>2]=F,c[m+24>>2]=G,c[m+32>>2]=H,m)|0)|0;i=m}if((dC(a,t,w,q-p|0,g,0,3)|0)<1){t=t+u|0;continue}if((dv(t,t+u|0,w,w,a,g)|0)<2){t=t+u|0;continue}if((f&1|0)!=0){H=c[n>>2]|0;au(H|0,16904,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}z=t+(dC(a,t,w,q-p|0,g,0,3)|0)|0;z=z+(dC(a,z,w,q-p|0,g,1,3)|0)|0;B=dC(a,z,w,q-p|0,g,0,3)|0;if((B|0)<2){t=t+u|0;continue}z=z+((B|0)/2|0)|0;y=z+(dC(a,z,w,q-z|0,g,0,3)|0)|0;B=z+(dC(a,z,w+1|0,q-z|0,g,0,3)|0)|0;if((B|0)>(y|0)){y=B}y=y+(dC(a,y,w,q-y|0,g,1,3)|0)|0;B=dC(a,y,w,q-y|0,g,0,3)|0;do{if((B|0)>=2){if((y|0)>=(t+u|0)){break}y=y+((B|0)/2|0)|0;if((u|0)>5){h=h+1|0;w=0;while(1){if((w|0)>=((s-r+5|0)/8|0|0)){break}d9(a,z,r+w|0,255,192);w=w+1|0}if((f&4|0)!=0){H=c[n>>2]|0;au(H|0,16464,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m;dk(l);H=c[n>>2]|0;G=z-p|0;F=w;E=t-p|0;D=y-p|0;au(H|0,16088,(m=i,i=i+32|0,c[m>>2]=G,c[m+8>>2]=F,c[m+16>>2]=E,c[m+24>>2]=D,m)|0)|0;i=m}I=0;J=0;while(1){if((J|0)>=((q-p+4|0)/8|0|0)){break}B=s;do{if((c[l+60>>2]|0)>(r|0)){if((s<<1|0)<=((c[l+60>>2]|0)+(c[l+64>>2]|0)|0)){break}B=c[l+60>>2]|0}}while(0);if((dC(a,z-J|0,B,B-r|0,g,0,1)|0)>((s-r+1|0)/2|0|0)){if((dC(a,z,(r+s|0)/2|0,J+1|0,g,0,4)|0)>=(J|0)){v=7938;break}}if((dC(a,z+J|0,B,B-r|0,g,0,1)|0)>((s-r+1|0)/2|0|0)){if((dC(a,z,(r+s|0)/2|0,J+1|0,g,0,3)|0)>=(J|0)){v=7941;break}}J=J+1|0}if((v|0)==7941){v=0;I=J}else if((v|0)==7938){v=0;I=-J|0}do{if(((du(z,z,r,(r+s|0)/2|0,a,g,1)|0)<<24>>24|0)==0){if(((du(z+I|0,z+I|0,(r+s|0)/2|0,B,a,g,1)|0)<<24>>24|0)!=0){break}K=bU(l)|0;c[K+4>>2]=z-1;c[l>>2]=z+1;q=c[l+4>>2]|0;D=l;bY(D)|0;D=K;bY(D)|0;c[K+44>>2]=c[e+37048>>2];D=e+84|0;E=l;F=K;ct(D,E,F)|0;F=e+37048|0;c[F>>2]=(c[F>>2]|0)+1;j=j+1|0;if((f&4|0)!=0){F=c[n>>2]|0;au(F|0,15736,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}F=c[l>>2]|0;p=F;t=F;u=0}}while(0)}t=t+u|0;continue L10779}}while(0);t=t+u|0}if((v|0)==7892){v=0}else if((v|0)==7896){v=0}t=p;L10866:while(1){if((t|0)>=(q|0)){break}t=t+(dC(a,t,s,q-p|0,g,0,3)|0)|0;u=dC(a,t,s,q-p|0,g,1,3)|0;if((t+u|0)>(q+1|0)){v=7954;break}w=dC(a,t,s-1|0,q-p|0,g,1,3)|0;if((w|0)>(u|0)){u=w}if((t+u|0)>(q+1|0)){v=7958;break}x=0;y=0;z=0;A=t;while(1){if((A|0)>=(t+u|0)){break}B=dC(a,A,s,s-r|0,g,0,1)|0;if((B<<3|0)>(s-r|0)){v=7962;break}B=B+(dC(a,A,s-B|0,s-r|0,g,1,1)|0)|0;if((B<<3|0)<=(s-r|0)){if((B<<3|0)<(s-r|0)){z=z+B|0;y=y+1|0}}A=A+1|0}if((v|0)==7962){v=0}if((y|0)==0){t=t+u|0;continue}w=s-((z+y-1|0)/(y|0)|0)-((s-r+1|0)/32|0)|0;if((f&1|0)!=0){F=c[n>>2]|0;E=p;D=r;G=t-p|0;H=u;C=s-w|0;au(F|0,15376,(m=i,i=i+40|0,c[m>>2]=E,c[m+8>>2]=D,c[m+16>>2]=G,c[m+24>>2]=H,c[m+32>>2]=C,m)|0)|0;i=m}if((dC(a,t,w,q-p|0,g,0,3)|0)<1){t=t+u|0;continue}if((dv(t,t+u|0,w,w,a,g)|0)<2){t=t+u|0;continue}if((f&1|0)!=0){C=c[n>>2]|0;au(C|0,16904,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}z=t+(dC(a,t,w,q-p|0,g,0,3)|0)|0;z=z+(dC(a,z,w,q-p|0,g,1,3)|0)|0;B=dC(a,z,w,q-p|0,g,0,3)|0;if((B|0)<2){t=t+u|0;continue}z=z+((B|0)/2|0)|0;y=z+(dC(a,z,w,q-z|0,g,0,3)|0)|0;B=z+(dC(a,z,w-1|0,q-z|0,g,0,3)|0)|0;if((B|0)>(y|0)){y=B}y=y+(dC(a,y,w,q-y|0,g,1,3)|0)|0;B=dC(a,y,w,q-y|0,g,0,3)|0;do{if((B|0)>=2){if((y|0)>=(t+u|0)){break}y=y+((B|0)/2|0)|0;if((u|0)>5){h=h+1|0;B=0;while(1){if((B|0)>=((s-r+5|0)/8|0|0)){break}d9(a,z,s-B|0,255,192);B=B+1|0}if((f&4|0)!=0){C=c[n>>2]|0;au(C|0,16464,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m;dk(l);C=c[n>>2]|0;H=z-p|0;G=w-r|0;D=t-p|0;E=y-p|0;au(C|0,16088,(m=i,i=i+32|0,c[m>>2]=H,c[m+8>>2]=G,c[m+16>>2]=D,c[m+24>>2]=E,m)|0)|0;i=m}I=0;J=0;while(1){if((J|0)>=((q-p+4|0)/8|0|0)){break}if((dC(a,z-J|0,r,s-r|0,g,0,2)|0)>((s-r+1|0)/2|0|0)){if((dC(a,z,(r+s|0)/2|0,J+1|0,g,0,4)|0)>=(J|0)){v=7997;break}}if((dC(a,z+J|0,r,s-r|0,g,0,2)|0)>((s-r+1|0)/2|0|0)){if((dC(a,z,(r+s|0)/2|0,J+1|0,g,0,3)|0)>=(J|0)){v=8e3;break}}J=J+1|0}if((v|0)==7997){v=0;I=-J|0}else if((v|0)==8e3){v=0;I=J}do{if(((du(z,z,(r+s|0)/2|0,s,a,g,1)|0)<<24>>24|0)==0){if(((du(z+I|0,z+I|0,r,(r+s|0)/2|0,a,g,1)|0)<<24>>24|0)!=0){break}K=bU(l)|0;c[K+4>>2]=z-1;c[l>>2]=z;q=c[l+4>>2]|0;E=l;bY(E)|0;E=K;bY(E)|0;c[K+44>>2]=c[e+37048>>2];E=e+84|0;D=l;G=K;ct(E,D,G)|0;G=e+37048|0;c[G>>2]=(c[G>>2]|0)+1;j=j+1|0;if((f&4|0)!=0){G=c[n>>2]|0;au(G|0,15736,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}G=c[l>>2]|0;p=G;t=G;u=0}}while(0)}t=t+u|0;continue L10866}}while(0);t=t+u|0}if((v|0)==7958){v=0}else if((v|0)==7954){v=0}t=k;k=t+1|0;ek(t,b)|0}c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]=c[c[(c[e+108>>2]|0)+(c[e+116>>2]<<2)>>2]>>2]}cz(e+84|0)}ej(b)|0;if((f|0)==0){i=d;return 0}au(c[n>>2]|0,14920,(m=i,i=i+16|0,c[m>>2]=h,c[m+8>>2]=j,m)|0)|0;i=m;i=d;return 0}function eq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;b=i;d=a;a=c[d+37072>>2]|0;e=0;f=0;g=0;h=0;if((a|0)!=0){j=c[n>>2]|0;au(j|0,14504,(k=i,i=i+1|0,i=i+7&-8,c[k>>2]=0,k)|0)|0;i=k}if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){l=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{l=0}if(!l){break}m=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[m+36>>2]|0)==57344){o=c[m>>2]|0;p=c[m+4>>2]|0;q=c[m+8>>2]|0;r=c[m+12>>2]|0;j=aa(c[d+37048>>2]<<1,r-q+1|0)|0;do{if((j|0)<((c[d+37044>>2]|0)*3|0|0)){if((r|0)>=((c[(c[m+68>>2]|0)+8>>2]|0)/4|0|0)){if((q|0)<=(((c[(c[m+68>>2]|0)+8>>2]|0)*3|0|0)/4|0|0)){break}}if((c[d+37048>>2]|0)<=1){break}if((c[m+64>>2]|0)!=0){break}s=d+37048|0;c[s>>2]=(c[s>>2]|0)-1;h=h+1|0;s=d+84|0;t=m;cw(s,t)|0;t=m;bV(t)|0;if((a|0)!=0){t=c[n>>2]|0;s=o;u=q;au(t|0,14144,(k=i,i=i+16|0,c[k>>2]=s,c[k+8>>2]=u,k)|0)|0;i=k}}}while(0)}c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}f=ei(c[d+112>>2]|0,13864)|0;if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){v=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{v=0}if(!v){break}m=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;l=e;e=l+1|0;ek(l,f)|0;L10994:do{if((c[m+36>>2]|0)!=57345){o=c[m>>2]|0;p=c[m+4>>2]|0;q=c[m+8>>2]|0;r=c[m+12>>2]|0;do{if((c[m+56>>2]|0)!=0){if((q<<2|0)<=((c[m+56>>2]|0)+((c[m+60>>2]|0)*3|0)|0)){break}if((r<<1|0)>=((c[m+60>>2]|0)+(c[m+64>>2]|0)|0)){break}break L10994}}while(0);do{if((p-o+1|0)<3){if((r-q+1|0)>=3){break}l=0;if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){w=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{w=0}if(!w){break}j=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;L11013:do{if((l|0)!=0){x=8058}else{if((j|0)==(m|0)){x=8058;break}do{if(((c[j+4>>2]|0)-(c[j>>2]|0)+1|0)<3){if(((c[j+12>>2]|0)-(c[j+8>>2]|0)+1|0)>=3){break}break L11013}}while(0);u=P((((c[j>>2]|0)+(c[j+4>>2]|0)|0)/2|0)-(c[m>>2]|0)|0)|0;s=P((((c[j+8>>2]|0)+(c[j+12>>2]|0)|0)/2|0)-(c[m+8>>2]|0)|0)|0;do{if((u<<1|0)<(((c[j+4>>2]|0)-(c[j>>2]|0)+1|0)*3|0|0)){if((s<<1|0)>=(((c[j+12>>2]|0)-(c[j+8>>2]|0)+1|0)*3|0|0)){break}l=1}}while(0)}}while(0);if((x|0)==8058){x=0}c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}if((l|0)==0){g=g+1|0;j=d+84|0;s=m;cw(j,s)|0;s=m;bV(s)|0;if((a|0)!=0){s=c[n>>2]|0;j=o;u=q;au(s|0,13200,(k=i,i=i+16|0,c[k>>2]=j,c[k+8>>2]=u,k)|0)|0;i=k}}}}while(0)}}while(0);c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}ej(f)|0;if((a|0)==0){i=b;return 0}a=c[d+37048>>2]|0;au(c[n>>2]|0,12464,(k=i,i=i+24|0,c[k>>2]=h,c[k+8>>2]=g,c[k+16>>2]=a,k)|0)|0;i=k;i=b;return 0}function er(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=a;a=b;L11044:do{if((e|0)==57344){f=8083}else{if((e|0)==57345){f=8083;break}do{if((e|0)>127){if((a|0)==0){break}if((a|0)==32){break}if((c[6366]|0)==0){break}b=c[n>>2]|0;g=a;h=e;au(b|0,6520,(j=i,i=i+16|0,c[j>>2]=g,c[j+8>>2]=h,j)|0)|0;i=j}}while(0);L11053:do{switch(a|0){case 39:{au(c[n>>2]|0,18864,(j=i,i=i+1|0,i=i+7&-8,c[j>>2]=0,j)|0)|0;i=j;f=8092;break};case 184:{h=e;if((h|0)==67){k=199;break L11044}else if((h|0)==99){k=231;break L11044}else{if((c[6366]|0)!=0){h=c[n>>2]|0;g=e;au(h|0,7992,(j=i,i=i+8|0,c[j>>2]=g,j)|0)|0;i=j}break L11053}break};case 0:case 32:{k=e;break L11044;break};case 96:{switch(e|0){case 111:{k=242;break L11044;break};case 79:{k=210;break L11044;break};case 85:{k=217;break L11044;break};case 110:{k=505;break L11044;break};case 78:{k=504;break L11044;break};case 101:{k=232;break L11044;break};case 69:{k=200;break L11044;break};case 97:{k=224;break L11044;break};case 65:{k=192;break L11044;break};case 105:{k=236;break L11044;break};case 73:{k=204;break L11044;break};case 48:{k=210;break L11044;break};case 117:{k=249;break L11044;break};default:{if((c[6366]|0)!=0){g=c[n>>2]|0;h=e;au(g|0,5792,(j=i,i=i+8|0,c[j>>2]=h,j)|0)|0;i=j}break L11053}}break};case 729:{switch(e|0){case 108:{k=105;break L11044;break};case 105:{k=105;break L11044;break};case 305:{k=105;break L11044;break};case 73:{k=304;break L11044;break};case 97:{k=551;break L11044;break};case 65:{k=550;break L11044;break};case 99:{k=267;break L11044;break};case 67:{k=266;break L11044;break};case 90:{k=379;break L11044;break};case 44:{k=59;break L11044;break};case 46:{k=58;break L11044;break};case 106:{k=106;break L11044;break};case 111:{k=559;break L11044;break};case 79:{k=558;break L11044;break};case 122:{k=380;break L11044;break};case 101:{k=279;break L11044;break};case 69:{k=278;break L11044;break};case 103:{k=289;break L11044;break};case 71:{k=288;break L11044;break};default:{if((c[6366]|0)!=0){h=c[n>>2]|0;g=e;au(h|0,24056,(j=i,i=i+8|0,c[j>>2]=g,j)|0)|0;i=j}break L11053}}break};case 180:{f=8092;break};case 34:{au(c[n>>2]|0,18864,(j=i,i=i+1|0,i=i+7&-8,c[j>>2]=0,j)|0)|0;i=j;f=8207;break};case 126:{switch(e|0){case 48:{k=213;break L11044;break};case 117:{k=361;break L11044;break};case 111:{k=245;break L11044;break};case 79:{k=213;break L11044;break};case 105:{k=297;break L11044;break};case 73:{k=296;break L11044;break};case 85:{k=360;break L11044;break};case 97:{k=227;break L11044;break};case 65:{k=195;break L11044;break};case 110:{k=241;break L11044;break};case 78:{k=209;break L11044;break};default:{if((c[6366]|0)!=0){g=c[n>>2]|0;h=e;au(g|0,6744,(j=i,i=i+8|0,c[j>>2]=h,j)|0)|0;i=j}break L11053}}break};case 175:{switch(e|0){case 73:{k=298;break L11044;break};case 111:{k=333;break L11044;break};case 79:{k=332;break L11044;break};case 97:{k=257;break L11044;break};case 65:{k=256;break L11044;break};case 117:{k=363;break L11044;break};case 85:{k=362;break L11044;break};case 121:{k=563;break L11044;break};case 89:{k=562;break L11044;break};case 230:{k=483;break L11044;break};case 198:{k=482;break L11044;break};case 101:{k=275;break L11044;break};case 69:{k=274;break L11044;break};case 105:{k=299;break L11044;break};case 61:{k=8801;break L11044;break};case 45:{k=61;break L11044;break};case 32:{k=713;break L11044;break};default:{if((c[6366]|0)!=0){h=c[n>>2]|0;g=e;au(h|0,24792,(j=i,i=i+8|0,c[j>>2]=g,j)|0)|0;i=j}break L11053}}break};case 94:{switch(e|0){case 87:{k=372;break L11044;break};case 121:{k=375;break L11044;break};case 89:{k=374;break L11044;break};case 117:{k=251;break L11044;break};case 85:{k=219;break L11044;break};case 119:{k=373;break L11044;break};case 65:{k=194;break L11044;break};case 99:{k=265;break L11044;break};case 67:{k=264;break L11044;break};case 105:{k=238;break L11044;break};case 73:{k=206;break L11044;break};case 106:{k=309;break L11044;break};case 101:{k=234;break L11044;break};case 69:{k=202;break L11044;break};case 103:{k=285;break L11044;break};case 74:{k=308;break L11044;break};case 111:{k=244;break L11044;break};case 79:{k=212;break L11044;break};case 97:{k=226;break L11044;break};case 71:{k=284;break L11044;break};case 104:{k=293;break L11044;break};case 72:{k=292;break L11044;break};case 48:{k=212;break L11044;break};case 115:{k=349;break L11044;break};case 83:{k=348;break L11044;break};default:{if((c[6366]|0)!=0){g=c[n>>2]|0;h=e;au(g|0,3912,(j=i,i=i+8|0,c[j>>2]=h,j)|0)|0;i=j}break L11053}}break};case 730:{h=e;if((h|0)==97){k=229;break L11044}else if((h|0)==65){k=197;break L11044}else if((h|0)==117){k=367;break L11044}else if((h|0)==85){k=366;break L11044}else{if((c[6366]|0)!=0){h=c[n>>2]|0;g=e;au(h|0,23216,(j=i,i=i+8|0,c[j>>2]=g,j)|0)|0;i=j}break L11053}break};case 101:case 69:{switch(e|0){case 97:{k=230;break L11044;break};case 65:{k=198;break L11044;break};case 111:{k=339;break L11044;break};case 79:{k=338;break L11044;break};case 48:{k=338;break L11044;break};default:{if((c[6366]|0)!=0){g=c[n>>2]|0;h=e;au(g|0,21496,(j=i,i=i+8|0,c[j>>2]=h,j)|0)|0;i=j}break L11053}}break};case 103:{switch(e|0){case 67:{k=935;break L11044;break};case 86:{k=936;break L11044;break};case 87:{k=937;break L11044;break};case 97:{k=945;break L11044;break};case 98:{k=946;break L11044;break};case 103:{k=947;break L11044;break};case 80:{k=928;break L11044;break};case 82:{k=929;break L11044;break};case 83:{k=931;break L11044;break};case 84:{k=932;break L11044;break};case 89:{k=933;break L11044;break};case 70:{k=934;break L11044;break};case 65:{k=913;break L11044;break};case 66:{k=914;break L11044;break};case 71:{k=915;break L11044;break};case 118:{k=968;break L11044;break};case 119:{k=969;break L11044;break};case 75:{k=922;break L11044;break};case 76:{k=923;break L11044;break};case 77:{k=924;break L11044;break};case 78:{k=925;break L11044;break};case 88:{k=926;break L11044;break};case 79:{k=927;break L11044;break};case 100:{k=948;break L11044;break};case 101:{k=949;break L11044;break};case 122:{k=950;break L11044;break};case 104:{k=951;break L11044;break};case 113:{k=952;break L11044;break};case 105:{k=953;break L11044;break};case 107:{k=954;break L11044;break};case 108:{k=955;break L11044;break};case 109:{k=956;break L11044;break};case 110:{k=957;break L11044;break};case 120:{k=958;break L11044;break};case 111:{k=959;break L11044;break};case 112:{k=960;break L11044;break};case 114:{k=961;break L11044;break};case 38:{k=962;break L11044;break};case 115:{k=963;break L11044;break};case 116:{k=964;break L11044;break};case 121:{k=965;break L11044;break};case 102:{k=966;break L11044;break};case 99:{k=967;break L11044;break};case 68:{k=916;break L11044;break};case 69:{k=917;break L11044;break};case 90:{k=918;break L11044;break};case 72:{k=919;break L11044;break};case 81:{k=920;break L11044;break};case 73:{k=921;break L11044;break};default:{if((c[6366]|0)!=0){h=c[n>>2]|0;g=e;au(h|0,20424,(j=i,i=i+8|0,c[j>>2]=g,j)|0)|0;i=j}break L11053}}break};case 168:{f=8207;break};case 711:{switch(e|0){case 90:{k=381;break L11044;break};case 99:{k=269;break L11044;break};case 105:{k=464;break L11044;break};case 111:{k=466;break L11044;break};case 101:{k=283;break L11044;break};case 83:{k=352;break L11044;break};case 48:{k=465;break L11044;break};case 79:{k=465;break L11044;break};case 85:{k=467;break L11044;break};case 115:{k=353;break L11044;break};case 69:{k=282;break L11044;break};case 122:{k=382;break L11044;break};case 73:{k=463;break L11044;break};case 67:{k=268;break L11044;break};case 117:{k=468;break L11044;break};case 65:{k=461;break L11044;break};case 97:{k=462;break L11044;break};default:{if((c[6366]|0)!=0){g=c[n>>2]|0;h=e;au(g|0,8896,(j=i,i=i+8|0,c[j>>2]=h,j)|0)|0;i=j}break L11053}}break};case 728:{switch(e|0){case 103:{k=287;break L11044;break};case 105:{k=301;break L11044;break};case 117:{k=365;break L11044;break};case 85:{k=364;break L11044;break};case 65:{k=258;break L11044;break};case 73:{k=300;break L11044;break};case 79:{k=334;break L11044;break};case 101:{k=277;break L11044;break};case 71:{k=286;break L11044;break};case 69:{k=276;break L11044;break};case 97:{k=259;break L11044;break};case 111:{k=335;break L11044;break};default:{if((c[6366]|0)!=0){h=c[n>>2]|0;g=e;au(h|0,10440,(j=i,i=i+8|0,c[j>>2]=g,j)|0)|0;i=j}break L11053}}break};default:{au(c[n>>2]|0,19728,(j=i,i=i+8|0,c[j>>2]=a,j)|0)|0;i=j}}}while(0);L11309:do{if((f|0)==8092){switch(e|0){case 83:{k=346;break L11044;break};case 85:{k=218;break L11044;break};case 90:{k=377;break L11044;break};case 110:{k=324;break L11044;break};case 99:{k=263;break L11044;break};case 105:{k=237;break L11044;break};case 73:{k=205;break L11044;break};case 108:{k=314;break L11044;break};case 101:{k=233;break L11044;break};case 76:{k=313;break L11044;break};case 78:{k=323;break L11044;break};case 79:{k=211;break L11044;break};case 117:{k=250;break L11044;break};case 230:{k=509;break L11044;break};case 122:{k=378;break L11044;break};case 89:{k=221;break L11044;break};case 71:{k=500;break L11044;break};case 65:{k=193;break L11044;break};case 111:{k=243;break L11044;break};case 82:{k=340;break L11044;break};case 114:{k=341;break L11044;break};case 121:{k=253;break L11044;break};case 48:{k=211;break L11044;break};case 69:{k=201;break L11044;break};case 97:{k=225;break L11044;break};case 103:{k=501;break L11044;break};case 115:{k=347;break L11044;break};case 67:{k=262;break L11044;break};case 198:{k=508;break L11044;break};default:{if((c[6366]|0)!=0){g=c[n>>2]|0;h=e;au(g|0,14752,(j=i,i=i+8|0,c[j>>2]=h,j)|0)|0;i=j}break L11309}}}else if((f|0)==8207){switch(e|0){case 73:{k=207;break L11044;break};case 111:{k=246;break L11044;break};case 65:{k=196;break L11044;break};case 101:{k=235;break L11044;break};case 79:{k=214;break L11044;break};case 48:{k=214;break L11044;break};case 69:{k=203;break L11044;break};case 105:{k=239;break L11044;break};case 117:{k=252;break L11044;break};case 85:{k=220;break L11044;break};case 121:{k=255;break L11044;break};case 89:{k=376;break L11044;break};case 97:{k=228;break L11044;break};default:{if((c[6366]|0)!=0){h=c[n>>2]|0;g=e;b=(e&255)<<24>>24;au(h|0,4792,(j=i,i=i+16|0,c[j>>2]=g,c[j+8>>2]=b,j)|0)|0;i=j}break L11309}}}}while(0);k=e}}while(0);if((f|0)==8083){k=e}i=d;return k|0}function es(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;f=b;c[822]=(c[822]|0)+32;if((c[822]|0)>>>0>=27648>>>0){c[822]=27392}a[(c[822]|0)+2|0]=0;a[(c[822]|0)+1|0]=0;a[c[822]|0]=0;L11374:do{switch(d|0){case 4:{aP(c[822]|0,11928,(g=i,i=i+8|0,c[g>>2]=f,g)|0)|0;i=g;h=c[822]|0;break};case 6:{do{if((f|0)!=10){if((f|0)>=32){if((f|0)<=127){break}}b=f;if((b|0)==57344){h=11672;break L11374}else if((b|0)==57345){h=11672;break L11374}else{if(f>>>0>255>>>0){b=c[822]|0;j=f;aP(b|0,11456,(g=i,i=i+8|0,c[g>>2]=j,g)|0)|0;i=g}else{j=c[822]|0;b=f;aP(j|0,11400,(g=i,i=i+8|0,c[g>>2]=b,g)|0)|0;i=g}h=c[822]|0;break L11374}}}while(0);a[c[822]|0]=f&255;h=c[822]|0;break};case 0:{if((f|0)<=255){a[c[822]|0]=f&255;h=c[822]|0;break L11374}b=f;if((b|0)==8227){h=14480;break L11374}else if((b|0)==8212){h=17856;break L11374}else if((b|0)==8221){h=15720;break L11374}else if((b|0)==8231){h=19072;break L11374}else if((b|0)==8208){h=19072;break L11374}else if((b|0)==8219){h=16432;break L11374}else if((b|0)==8226){h=14480;break L11374}else if((b|0)==8223){h=16432;break L11374}else if((b|0)==8210|(b|0)==8211){h=18400;break L11374}else if((b|0)==8216){h=17512;break L11374}else if((b|0)==8224){h=14864;break L11374}else if((b|0)==8218){h=16888;break L11374}else if((b|0)==8225){h=14480;break L11374}else if((b|0)==8217){h=17128;break L11374}else if((b|0)==8220){h=16072;break L11374}else if((b|0)==8222){h=15352;break L11374}else if((b|0)==8230){h=14128;break L11374}else if((b|0)==8240){h=13840;break L11374}else if((b|0)==8249){h=13192;break L11374}else if((b|0)==8250){h=12456;break L11374}else if((b|0)==8364){h=11976;break L11374}else if((b|0)==64256){h=11344;break L11374}else if((b|0)==64257){h=11016;break L11374}else if((b|0)==64258){h=10880;break L11374}else if((b|0)==64259){h=10488;break L11374}else if((b|0)==64260){h=10160;break L11374}else if((b|0)==64261|(b|0)==64262){h=10032;break L11374}else if((b|0)==57344){h=9864;break L11374}else if((b|0)==57345){h=9864;break L11374}else{aP(c[822]|0,9744,(g=i,i=i+8|0,c[g>>2]=f,g)|0)|0;i=g;h=c[822]|0;break L11374}break};case 2:{do{if((f|0)>=32){if((f|0)>126){break}switch(f|0){case 38:{h=16920;break L11374;break};case 39:{h=16896;break L11374;break};case 34:{h=16840;break L11374;break};case 60:{h=16832;break L11374;break};case 62:{h=16808;break L11374;break};default:{a[c[822]|0]=f&255;h=c[822]|0;break L11374}}}}while(0);b=f;if((b|0)==171){h=16264;break L11374}else if((b|0)==172){h=16232;break L11374}else if((b|0)==173){h=16224;break L11374}else if((b|0)==174){h=16080;break L11374}else if((b|0)==183){h=15760;break L11374}else if((b|0)==184){h=15728;break L11374}else if((b|0)==185){h=15712;break L11374}else if((b|0)==186){h=15704;break L11374}else if((b|0)==12|(b|0)==13){h=16784;break L11374}else if((b|0)==160){h=16648;break L11374}else if((b|0)==161){h=16600;break L11374}else if((b|0)==168){h=16384;break L11374}else if((b|0)==169){h=16328;break L11374}else if((b|0)==170){h=16272;break L11374}else if((b|0)==175){h=16032;break L11374}else if((b|0)==176){h=16024;break L11374}else if((b|0)==177){h=16e3;break L11374}else if((b|0)==178){h=15952;break L11374}else if((b|0)==187){h=15688;break L11374}else if((b|0)==188){h=15672;break L11374}else if((b|0)==189){h=15656;break L11374}else if((b|0)==190){h=15584;break L11374}else if((b|0)==191){h=15568;break L11374}else if((b|0)==192){h=15480;break L11374}else if((b|0)==193){h=15464;break L11374}else if((b|0)==258){h=15360;break L11374}else if((b|0)==238){h=13136;break L11374}else if((b|0)==239){h=13128;break L11374}else if((b|0)==240){h=13120;break L11374}else if((b|0)==241){h=13072;break L11374}else if((b|0)==242){h=12608;break L11374}else if((b|0)==243){h=12536;break L11374}else if((b|0)==215){h=14432;break L11374}else if((b|0)==216){h=14416;break L11374}else if((b|0)==352){h=14296;break L11374}else if((b|0)==217){h=14280;break L11374}else if((b|0)==218){h=14192;break L11374}else if((b|0)==205){h=14800;break L11374}else if((b|0)==206){h=14744;break L11374}else if((b|0)==207){h=14656;break L11374}else if((b|0)==208){h=14648;break L11374}else if((b|0)==209){h=14576;break L11374}else if((b|0)==194){h=15344;break L11374}else if((b|0)==195){h=15304;break L11374}else if((b|0)==196){h=15280;break L11374}else if((b|0)==197){h=15272;break L11374}else if((b|0)==210){h=14560;break L11374}else if((b|0)==211){h=14488;break L11374}else if((b|0)==212){h=14472;break L11374}else if((b|0)==213){h=14456;break L11374}else if((b|0)==214){h=14440;break L11374}else if((b|0)==198){h=15264;break L11374}else if((b|0)==268){h=15128;break L11374}else if((b|0)==199){h=15112;break L11374}else if((b|0)==200){h=15040;break L11374}else if((b|0)==233){h=13288;break L11374}else if((b|0)==283){h=13264;break L11374}else if((b|0)==234){h=13256;break L11374}else if((b|0)==235){h=13184;break L11374}else if((b|0)==236){h=13168;break L11374}else if((b|0)==237){h=13152;break L11374}else if((b|0)==201){h=15024;break L11374}else if((b|0)==282){h=14904;break L11374}else if((b|0)==202){h=14856;break L11374}else if((b|0)==203){h=14840;break L11374}else if((b|0)==204){h=14816;break L11374}else if((b|0)==219){h=14184;break L11374}else if((b|0)==220){h=14136;break L11374}else if((b|0)==221){h=14112;break L11374}else if((b|0)==381){h=14096;break L11374}else if((b|0)==222){h=14080;break L11374}else if((b|0)==223){h=14072;break L11374}else if((b|0)==57345){h=16792;break L11374}else if((b|0)==57344){h=9864;break L11374}else if((b|0)==10){h=16784;break L11374}else if((b|0)==228){h=13832;break L11374}else if((b|0)==229){h=13824;break L11374}else if((b|0)==230){h=13800;break L11374}else if((b|0)==269){h=13784;break L11374}else if((b|0)==231){h=13768;break L11374}else if((b|0)==232){h=13704;break L11374}else if((b|0)==162){h=16568;break L11374}else if((b|0)==163){h=16472;break L11374}else if((b|0)==164){h=16448;break L11374}else if((b|0)==244){h=12528;break L11374}else if((b|0)==245){h=12504;break L11374}else if((b|0)==246){h=12424;break L11374}else if((b|0)==247){h=12408;break L11374}else if((b|0)==248){h=12360;break L11374}else if((b|0)==353){h=12344;break L11374}else if((b|0)==179){h=15944;break L11374}else if((b|0)==180){h=15864;break L11374}else if((b|0)==181){h=15856;break L11374}else if((b|0)==182){h=15776;break L11374}else if((b|0)==165){h=16424;break L11374}else if((b|0)==166){h=16408;break L11374}else if((b|0)==167){h=16392;break L11374}else if((b|0)==249){h=12328;break L11374}else if((b|0)==250){h=12232;break L11374}else if((b|0)==251){h=12088;break L11374}else if((b|0)==252){h=12056;break L11374}else if((b|0)==253){h=12040;break L11374}else if((b|0)==254){h=12016;break L11374}else if((b|0)==255){h=11968;break L11374}else if((b|0)==382){h=11952;break L11374}else if((b|0)==8364){h=11936;break L11374}else if((b|0)==0){h=27656;break L11374}else if((b|0)==224){h=14056;break L11374}else if((b|0)==225){h=13992;break L11374}else if((b|0)==259){h=13936;break L11374}else if((b|0)==462){h=13896;break L11374}else if((b|0)==226){h=13888;break L11374}else if((b|0)==227){h=13848;break L11374}else{aP(c[822]|0,11928,(g=i,i=i+8|0,c[g>>2]=f,g)|0)|0;i=g;h=c[822]|0;break L11374}break};case 3:{do{if((f|0)>=32){if((f|0)>126){break}switch(f|0){case 38:{h=16920;break L11374;break};case 39:{h=16896;break L11374;break};case 34:{h=16840;break L11374;break};case 60:{h=16832;break L11374;break};case 62:{h=16808;break L11374;break};default:{a[c[822]|0]=f&255;h=c[822]|0;break L11374}}}}while(0);b=f;if((b|0)==0){h=27656;break L11374}else if((b|0)==57345){h=16968;break L11374}else if((b|0)==57344){h=9864;break L11374}else if((b|0)==10|(b|0)==12|(b|0)==13){h=16784;break L11374}else if((b|0)==160){h=16648;break L11374}else{aP(c[822]|0,11856,(g=i,i=i+8|0,c[g>>2]=f,g)|0)|0;i=g;h=c[822]|0;break L11374}break};case 1:{do{if((f|0)>=32){if((f|0)>126){break}switch(f|0){case 36:{h=9632;break L11374;break};case 38:{h=9464;break L11374;break};case 37:{h=9320;break L11374;break};case 35:{h=9160;break L11374;break};case 95:{h=9064;break L11374;break};case 123:{h=8944;break L11374;break};case 125:{h=8832;break L11374;break};case 92:{h=8728;break L11374;break};case 126:{h=8656;break L11374;break};case 94:{h=8616;break L11374;break};default:{a[c[822]|0]=f&255;h=c[822]|0;break L11374}}}}while(0);b=f;if((b|0)==248){h=20808;break L11374}else if((b|0)==219){h=24408;break L11374}else if((b|0)==224){h=23968;break L11374}else if((b|0)==8221){h=15720;break L11374}else if((b|0)==8222){h=17296;break L11374}else if((b|0)==8223){h=16432;break L11374}else if((b|0)==237){h=22728;break L11374}else if((b|0)==8734){h=17064;break L11374}else if((b|0)==0){h=27656;break L11374}else if((b|0)==57344){h=9064;break L11374}else if((b|0)==208){h=16432;break L11374}else if((b|0)==206){h=3848;break L11374}else if((b|0)==64259){h=10488;break L11374}else if((b|0)==64260){h=10160;break L11374}else if((b|0)==64261|(b|0)==64262){h=10032;break L11374}else if((b|0)==938){h=16432;break L11374}else if((b|0)==939){h=16432;break L11374}else if((b|0)==936){h=18728;break L11374}else if((b|0)==937){h=18600;break L11374}else if((b|0)==241){h=21960;break L11374}else if((b|0)==8210|(b|0)==8211){h=18400;break L11374}else if((b|0)==8212){h=17856;break L11374}else if((b|0)==245){h=21296;break L11374}else if((b|0)==940){h=16432;break L11374}else if((b|0)==941){h=16432;break L11374}else if((b|0)==239){h=22032;break L11374}else if((b|0)==225){h=23880;break L11374}else if((b|0)==251){h=20512;break L11374}else if((b|0)==218){h=24568;break L11374}else if((b|0)==253){h=20376;break L11374}else if((b|0)==230){h=23544;break L11374}else if((b|0)==216){h=24720;break L11374}else if((b|0)==382){h=20328;break L11374}else if((b|0)==950){h=18192;break L11374}else if((b|0)==951){h=18128;break L11374}else if((b|0)==944){h=16432;break L11374}else if((b|0)==945){h=18552;break L11374}else if((b|0)==932){h=19008;break L11374}else if((b|0)==933){h=18976;break L11374}else if((b|0)==948){h=18344;break L11374}else if((b|0)==949){h=18256;break L11374}else if((b|0)==246){h=21224;break L11374}else if((b|0)==249){h=20648;break L11374}else if((b|0)==229){h=23584;break L11374}else if((b|0)==921){h=19616;break L11374}else if((b|0)==922){h=19592;break L11374}else if((b|0)==217){h=24600;break L11374}else if((b|0)==269){h=23400;break L11374}else if((b|0)==8213){h=16432;break L11374}else if((b|0)==8216){h=17512;break L11374}else if((b|0)==8217){h=17128;break L11374}else if((b|0)==381){h=24224;break L11374}else if((b|0)==255){h=20352;break L11374}else if((b|0)==352){h=24632;break L11374}else if((b|0)==8227){h=17104;break L11374}else if((b|0)==8231){h=6992;break L11374}else if((b|0)==8230){h=17096;break L11374}else if((b|0)==8218){h=17312;break L11374}else if((b|0)==8219){h=16432;break L11374}else if((b|0)==8220){h=16072;break L11374}else if((b|0)==215){h=24768;break L11374}else if((b|0)==213){h=24880;break L11374}else if((b|0)==283){h=23136;break L11374}else if((b|0)==57345){h=16968;break L11374}else if((b|0)==977){h=17448;break L11374}else if((b|0)==978){h=16432;break L11374}else if((b|0)==923){h=19560;break L11374}else if((b|0)==924){h=19464;break L11374}else if((b|0)==207){h=25224;break L11374}else if((b|0)==952){h=18112;break L11374}else if((b|0)==953){h=18064;break L11374}else if((b|0)==964){h=17624;break L11374}else if((b|0)==965){h=17592;break L11374}else if((b|0)==227){h=23776;break L11374}else if((b|0)==203){h=3968;break L11374}else if((b|0)==934){h=18848;break L11374}else if((b|0)==935){h=18792;break L11374}else if((b|0)==252){h=20416;break L11374}else if((b|0)==8240){h=16432;break L11374}else if((b|0)==8249){h=17080;break L11374}else if((b|0)==8250){h=17072;break L11374}else if((b|0)==915){h=20056;break L11374}else if((b|0)==240){h=16432;break L11374}else if((b|0)==235){h=23040;break L11374}else if((b|0)==8208){h=19072;break L11374}else if((b|0)==8209){h=16432;break L11374}else if((b|0)==204){h=3896;break L11374}else if((b|0)==353){h=20760;break L11374}else if((b|0)==247){h=21160;break L11374}else if((b|0)==232){h=23272;break L11374}else if((b|0)==916){h=19952;break L11374}else if((b|0)==974){h=16432;break L11374}else if((b|0)==976){h=16432;break L11374}else if((b|0)==956){h=17920;break L11374}else if((b|0)==957){h=17864;break L11374}else if((b|0)==221){h=24248;break L11374}else if((b|0)==918){h=19816;break L11374}else if((b|0)==927){h=19264;break L11374}else if((b|0)==928){h=19160;break L11374}else if((b|0)==244){h=21336;break L11374}else if((b|0)==234){h=23112;break L11374}else if((b|0)==979){h=16432;break L11374}else if((b|0)==980){h=16432;break L11374}else if((b|0)==214){h=24840;break L11374}else if((b|0)==210){h=25024;break L11374}else if((b|0)==962){h=17736;break L11374}else if((b|0)==963){h=17656;break L11374}else if((b|0)==917){h=19904;break L11374}else if((b|0)==954){h=18008;break L11374}else if((b|0)==955){h=17936;break L11374}else if((b|0)==211){h=24984;break L11374}else if((b|0)==238){h=22200;break L11374}else if((b|0)==960){h=17768;break L11374}else if((b|0)==961){h=17752;break L11374}else if((b|0)==205){h=3872;break L11374}else if((b|0)==212){h=24904;break L11374}else if((b|0)==966){h=17576;break L11374}else if((b|0)==967){h=17520;break L11374}else if((b|0)==220){h=24320;break L11374}else if((b|0)==231){h=23352;break L11374}else if((b|0)==8224){h=17240;break L11374}else if((b|0)==8225){h=17232;break L11374}else if((b|0)==8226){h=17136;break L11374}else if((b|0)==209){h=25152;break L11374}else if((b|0)==981){h=17432;break L11374}else if((b|0)==982){h=17416;break L11374}else if((b|0)==250){h=20608;break L11374}else if((b|0)==236){h=22912;break L11374}else if((b|0)==968){h=17496;break L11374}else if((b|0)==969){h=17480;break L11374}else if((b|0)==222){h=16432;break L11374}else if((b|0)==233){h=23200;break L11374}else if((b|0)==228){h=23720;break L11374}else if((b|0)==929){h=19064;break L11374}else if((b|0)==931){h=19032;break L11374}else if((b|0)==972){h=16432;break L11374}else if((b|0)==973){h=16432;break L11374}else if((b|0)==946){h=18440;break L11374}else if((b|0)==947){h=18384;break L11374}else if((b|0)==958){h=17808;break L11374}else if((b|0)==959){h=17792;break L11374}else if((b|0)==970){h=16432;break L11374}else if((b|0)==971){h=16432;break L11374}else if((b|0)==925){h=19416;break L11374}else if((b|0)==926){h=19288;break L11374}else if((b|0)==243){h=21416;break L11374}else if((b|0)==223){h=24104;break L11374}else if((b|0)==942){h=16432;break L11374}else if((b|0)==943){h=16432;break L11374}else if((b|0)==242){h=21736;break L11374}else if((b|0)==254){h=16432;break L11374}else if((b|0)==913){h=20312;break L11374}else if((b|0)==64256){h=11344;break L11374}else if((b|0)==64257){h=11016;break L11374}else if((b|0)==64258){h=10880;break L11374}else if((b|0)==226){h=23832;break L11374}else if((b|0)==160){h=16432;break L11374}else if((b|0)==161){h=8584;break L11374}else if((b|0)==162){h=8448;break L11374}else if((b|0)==163){h=8368;break L11374}else if((b|0)==8364){h=8232;break L11374}else if((b|0)==164){h=8168;break L11374}else if((b|0)==165){h=8040;break L11374}else if((b|0)==166){h=7896;break L11374}else if((b|0)==167){h=7776;break L11374}else if((b|0)==168){h=7672;break L11374}else if((b|0)==169){h=7568;break L11374}else if((b|0)==170){h=7504;break L11374}else if((b|0)==171){h=7344;break L11374}else if((b|0)==172){h=7208;break L11374}else if((b|0)==173){h=6992;break L11374}else if((b|0)==174){h=6928;break L11374}else if((b|0)==175){h=6824;break L11374}else if((b|0)==176){h=6712;break L11374}else if((b|0)==177){h=6656;break L11374}else if((b|0)==178){h=6616;break L11374}else if((b|0)==179){h=6568;break L11374}else if((b|0)==180){h=6472;break L11374}else if((b|0)==181){h=6240;break L11374}else if((b|0)==182){h=6128;break L11374}else if((b|0)==183){h=5968;break L11374}else if((b|0)==184){h=5936;break L11374}else if((b|0)==185){h=5848;break L11374}else if((b|0)==186){h=5720;break L11374}else if((b|0)==187){h=5664;break L11374}else if((b|0)==188){h=5560;break L11374}else if((b|0)==189){h=5472;break L11374}else if((b|0)==190){h=5408;break L11374}else if((b|0)==191){h=5208;break L11374}else if((b|0)==192){h=5080;break L11374}else if((b|0)==193){h=4984;break L11374}else if((b|0)==194){h=4960;break L11374}else if((b|0)==195){h=4848;break L11374}else if((b|0)==196){h=4768;break L11374}else if((b|0)==197){h=4720;break L11374}else if((b|0)==198){h=4672;break L11374}else if((b|0)==268){h=4632;break L11374}else if((b|0)==199){h=4560;break L11374}else if((b|0)==200){h=4312;break L11374}else if((b|0)==201){h=4192;break L11374}else if((b|0)==282){h=4080;break L11374}else if((b|0)==202){h=4032;break L11374}else if((b|0)==919){h=19720;break L11374}else if((b|0)==920){h=19648;break L11374}else if((b|0)==914){h=20136;break L11374}else{aP(c[822]|0,16928,(g=i,i=i+8|0,c[g>>2]=f,g)|0)|0;i=g;h=c[822]|0;break L11374}break};default:{if((f|0)==57344){h=9864;break L11374}if((f|0)==57345){h=9864;break L11374}if((f|0)<=127){a[c[822]|0]=f&255;h=c[822]|0;break L11374}if((f|0)<=2047){a[c[822]|0]=(192|f>>6&31)&255;a[(c[822]|0)+1|0]=(128|f&63)&255;a[(c[822]|0)+2|0]=0;h=c[822]|0;break L11374}if((f|0)<=65535){a[c[822]|0]=(224|f>>12&15)&255;a[(c[822]|0)+1|0]=(128|f>>6&63)&255;a[(c[822]|0)+2|0]=(128|f&63)&255;a[(c[822]|0)+3|0]=0;h=c[822]|0;break L11374}if((f|0)<=2097151){a[c[822]|0]=(240|f>>18&7)&255;a[(c[822]|0)+1|0]=(128|f>>12&63)&255;a[(c[822]|0)+2|0]=(128|f>>6&63)&255;a[(c[822]|0)+3|0]=(128|f&63)&255;a[(c[822]|0)+4|0]=0;h=c[822]|0;break L11374}if((f|0)<=67108863){a[c[822]|0]=(248|f>>24&3)&255;a[(c[822]|0)+1|0]=(128|f>>18&63)&255;a[(c[822]|0)+2|0]=(128|f>>12&63)&255;a[(c[822]|0)+3|0]=(128|f>>6&63)&255;a[(c[822]|0)+4|0]=(128|f&63)&255;a[(c[822]|0)+5|0]=0;h=c[822]|0;break L11374}if((f|0)<=2147483647){a[c[822]|0]=(252|f>>30&1)&255;a[(c[822]|0)+1|0]=(128|f>>24&63)&255;a[(c[822]|0)+2|0]=(128|f>>18&63)&255;a[(c[822]|0)+3|0]=(128|f>>12&63)&255;a[(c[822]|0)+4|0]=(128|f>>6&63)&255;a[(c[822]|0)+5|0]=(128|f&63)&255;a[(c[822]|0)+6|0]=0;h=c[822]|0;break L11374}else{h=16432;break L11374}}}}while(0);i=e;return h|0}function et(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;if((b|0)==0){d=a+((eu(a)|0)<<2)|0;return d|0}else{e=a}while(1){f=c[e>>2]|0;if((f|0)==0|(f|0)==(b|0)){break}else{e=e+4|0}}d=(f|0)!=0?e:0;return d|0}function eu(a){a=a|0;var b=0;b=a;while(1){if((c[b>>2]|0)==0){break}else{b=b+4|0}}return b-a>>2|0}function ev(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ab=0,ac=0,ad=0,ae=0,af=0,ag=0,ah=0,ai=0,aj=0,ak=0,al=0,am=0,an=0,ao=0,ap=0,aq=0,ar=0,as=0,at=0,au=0,av=0,aw=0,ax=0,ay=0,az=0,aA=0,aB=0,aC=0,aD=0,aE=0,aF=0,aG=0;do{if(a>>>0<245>>>0){if(a>>>0<11>>>0){b=16}else{b=a+11&-8}d=b>>>3;e=c[6918]|0;f=e>>>(d>>>0);if((f&3|0)!=0){g=(f&1^1)+d|0;h=g<<1;i=27712+(h<<2)|0;j=27712+(h+2<<2)|0;h=c[j>>2]|0;k=h+8|0;l=c[k>>2]|0;do{if((i|0)==(l|0)){c[6918]=e&~(1<>>0<(c[6922]|0)>>>0){bb();return 0}m=l+12|0;if((c[m>>2]|0)==(h|0)){c[m>>2]=i;c[j>>2]=l;break}else{bb();return 0}}}while(0);l=g<<3;c[h+4>>2]=l|3;j=h+(l|4)|0;c[j>>2]=c[j>>2]|1;n=k;return n|0}if(b>>>0<=(c[6920]|0)>>>0){o=b;break}if((f|0)!=0){j=2<>>12&16;i=j>>>(l>>>0);j=i>>>5&8;m=i>>>(j>>>0);i=m>>>2&4;p=m>>>(i>>>0);m=p>>>1&2;q=p>>>(m>>>0);p=q>>>1&1;r=(j|l|i|m|p)+(q>>>(p>>>0))|0;p=r<<1;q=27712+(p<<2)|0;m=27712+(p+2<<2)|0;p=c[m>>2]|0;i=p+8|0;l=c[i>>2]|0;do{if((q|0)==(l|0)){c[6918]=e&~(1<>>0<(c[6922]|0)>>>0){bb();return 0}j=l+12|0;if((c[j>>2]|0)==(p|0)){c[j>>2]=q;c[m>>2]=l;break}else{bb();return 0}}}while(0);l=r<<3;m=l-b|0;c[p+4>>2]=b|3;q=p;e=q+b|0;c[q+(b|4)>>2]=m|1;c[q+l>>2]=m;l=c[6920]|0;if((l|0)!=0){q=c[6923]|0;d=l>>>3;l=d<<1;f=27712+(l<<2)|0;k=c[6918]|0;h=1<>2]|0;if(g>>>0>=(c[6922]|0)>>>0){s=g;t=d;break}bb();return 0}}while(0);c[t>>2]=q;c[s+12>>2]=q;c[q+8>>2]=s;c[q+12>>2]=f}c[6920]=m;c[6923]=e;n=i;return n|0}l=c[6919]|0;if((l|0)==0){o=b;break}h=(l&-l)-1|0;l=h>>>12&16;k=h>>>(l>>>0);h=k>>>5&8;p=k>>>(h>>>0);k=p>>>2&4;r=p>>>(k>>>0);p=r>>>1&2;d=r>>>(p>>>0);r=d>>>1&1;g=c[27976+((h|l|k|p|r)+(d>>>(r>>>0))<<2)>>2]|0;r=g;d=g;p=(c[g+4>>2]&-8)-b|0;while(1){g=c[r+16>>2]|0;if((g|0)==0){k=c[r+20>>2]|0;if((k|0)==0){break}else{u=k}}else{u=g}g=(c[u+4>>2]&-8)-b|0;k=g>>>0

>>0;r=u;d=k?u:d;p=k?g:p}r=d;i=c[6922]|0;if(r>>>0>>0){bb();return 0}e=r+b|0;m=e;if(r>>>0>=e>>>0){bb();return 0}e=c[d+24>>2]|0;f=c[d+12>>2]|0;do{if((f|0)==(d|0)){q=d+20|0;g=c[q>>2]|0;if((g|0)==0){k=d+16|0;l=c[k>>2]|0;if((l|0)==0){v=0;break}else{w=l;x=k}}else{w=g;x=q}while(1){q=w+20|0;g=c[q>>2]|0;if((g|0)!=0){w=g;x=q;continue}q=w+16|0;g=c[q>>2]|0;if((g|0)==0){break}else{w=g;x=q}}if(x>>>0>>0){bb();return 0}else{c[x>>2]=0;v=w;break}}else{q=c[d+8>>2]|0;if(q>>>0>>0){bb();return 0}g=q+12|0;if((c[g>>2]|0)!=(d|0)){bb();return 0}k=f+8|0;if((c[k>>2]|0)==(d|0)){c[g>>2]=f;c[k>>2]=q;v=f;break}else{bb();return 0}}}while(0);L11913:do{if((e|0)!=0){f=d+28|0;i=27976+(c[f>>2]<<2)|0;do{if((d|0)==(c[i>>2]|0)){c[i>>2]=v;if((v|0)!=0){break}c[6919]=c[6919]&~(1<>2]);break L11913}else{if(e>>>0<(c[6922]|0)>>>0){bb();return 0}q=e+16|0;if((c[q>>2]|0)==(d|0)){c[q>>2]=v}else{c[e+20>>2]=v}if((v|0)==0){break L11913}}}while(0);if(v>>>0<(c[6922]|0)>>>0){bb();return 0}c[v+24>>2]=e;f=c[d+16>>2]|0;do{if((f|0)!=0){if(f>>>0<(c[6922]|0)>>>0){bb();return 0}else{c[v+16>>2]=f;c[f+24>>2]=v;break}}}while(0);f=c[d+20>>2]|0;if((f|0)==0){break}if(f>>>0<(c[6922]|0)>>>0){bb();return 0}else{c[v+20>>2]=f;c[f+24>>2]=v;break}}}while(0);if(p>>>0<16>>>0){e=p+b|0;c[d+4>>2]=e|3;f=r+(e+4)|0;c[f>>2]=c[f>>2]|1}else{c[d+4>>2]=b|3;c[r+(b|4)>>2]=p|1;c[r+(p+b)>>2]=p;f=c[6920]|0;if((f|0)!=0){e=c[6923]|0;i=f>>>3;f=i<<1;q=27712+(f<<2)|0;k=c[6918]|0;g=1<>2]|0;if(l>>>0>=(c[6922]|0)>>>0){y=l;z=i;break}bb();return 0}}while(0);c[z>>2]=e;c[y+12>>2]=e;c[e+8>>2]=y;c[e+12>>2]=q}c[6920]=p;c[6923]=m}f=d+8|0;if((f|0)==0){o=b;break}else{n=f}return n|0}else{if(a>>>0>4294967231>>>0){o=-1;break}f=a+11|0;g=f&-8;k=c[6919]|0;if((k|0)==0){o=g;break}r=-g|0;i=f>>>8;do{if((i|0)==0){A=0}else{if(g>>>0>16777215>>>0){A=31;break}f=(i+1048320|0)>>>16&8;l=i<>>16&4;j=l<>>16&2;B=14-(h|f|l)+(j<>>15)|0;A=g>>>((B+7|0)>>>0)&1|B<<1}}while(0);i=c[27976+(A<<2)>>2]|0;L11961:do{if((i|0)==0){C=0;D=r;E=0}else{if((A|0)==31){F=0}else{F=25-(A>>>1)|0}d=0;m=r;p=i;q=g<>2]&-8;l=B-g|0;if(l>>>0>>0){if((B|0)==(g|0)){C=p;D=l;E=p;break L11961}else{G=p;H=l}}else{G=d;H=m}l=c[p+20>>2]|0;B=c[p+16+(q>>>31<<2)>>2]|0;j=(l|0)==0|(l|0)==(B|0)?e:l;if((B|0)==0){C=G;D=H;E=j;break}else{d=G;m=H;p=B;q=q<<1;e=j}}}}while(0);if((E|0)==0&(C|0)==0){i=2<>>12&16;e=i>>>(r>>>0);i=e>>>5&8;q=e>>>(i>>>0);e=q>>>2&4;p=q>>>(e>>>0);q=p>>>1&2;m=p>>>(q>>>0);p=m>>>1&1;I=c[27976+((i|r|e|q|p)+(m>>>(p>>>0))<<2)>>2]|0}else{I=E}if((I|0)==0){J=D;K=C}else{p=I;m=D;q=C;while(1){e=(c[p+4>>2]&-8)-g|0;r=e>>>0>>0;i=r?e:m;e=r?p:q;r=c[p+16>>2]|0;if((r|0)!=0){p=r;m=i;q=e;continue}r=c[p+20>>2]|0;if((r|0)==0){J=i;K=e;break}else{p=r;m=i;q=e}}}if((K|0)==0){o=g;break}if(J>>>0>=((c[6920]|0)-g|0)>>>0){o=g;break}q=K;m=c[6922]|0;if(q>>>0>>0){bb();return 0}p=q+g|0;k=p;if(q>>>0>=p>>>0){bb();return 0}e=c[K+24>>2]|0;i=c[K+12>>2]|0;do{if((i|0)==(K|0)){r=K+20|0;d=c[r>>2]|0;if((d|0)==0){j=K+16|0;B=c[j>>2]|0;if((B|0)==0){L=0;break}else{M=B;N=j}}else{M=d;N=r}while(1){r=M+20|0;d=c[r>>2]|0;if((d|0)!=0){M=d;N=r;continue}r=M+16|0;d=c[r>>2]|0;if((d|0)==0){break}else{M=d;N=r}}if(N>>>0>>0){bb();return 0}else{c[N>>2]=0;L=M;break}}else{r=c[K+8>>2]|0;if(r>>>0>>0){bb();return 0}d=r+12|0;if((c[d>>2]|0)!=(K|0)){bb();return 0}j=i+8|0;if((c[j>>2]|0)==(K|0)){c[d>>2]=i;c[j>>2]=r;L=i;break}else{bb();return 0}}}while(0);L12011:do{if((e|0)!=0){i=K+28|0;m=27976+(c[i>>2]<<2)|0;do{if((K|0)==(c[m>>2]|0)){c[m>>2]=L;if((L|0)!=0){break}c[6919]=c[6919]&~(1<>2]);break L12011}else{if(e>>>0<(c[6922]|0)>>>0){bb();return 0}r=e+16|0;if((c[r>>2]|0)==(K|0)){c[r>>2]=L}else{c[e+20>>2]=L}if((L|0)==0){break L12011}}}while(0);if(L>>>0<(c[6922]|0)>>>0){bb();return 0}c[L+24>>2]=e;i=c[K+16>>2]|0;do{if((i|0)!=0){if(i>>>0<(c[6922]|0)>>>0){bb();return 0}else{c[L+16>>2]=i;c[i+24>>2]=L;break}}}while(0);i=c[K+20>>2]|0;if((i|0)==0){break}if(i>>>0<(c[6922]|0)>>>0){bb();return 0}else{c[L+20>>2]=i;c[i+24>>2]=L;break}}}while(0);do{if(J>>>0<16>>>0){e=J+g|0;c[K+4>>2]=e|3;i=q+(e+4)|0;c[i>>2]=c[i>>2]|1}else{c[K+4>>2]=g|3;c[q+(g|4)>>2]=J|1;c[q+(J+g)>>2]=J;i=J>>>3;if(J>>>0<256>>>0){e=i<<1;m=27712+(e<<2)|0;r=c[6918]|0;j=1<>2]|0;if(d>>>0>=(c[6922]|0)>>>0){O=d;P=i;break}bb();return 0}}while(0);c[P>>2]=k;c[O+12>>2]=k;c[q+(g+8)>>2]=O;c[q+(g+12)>>2]=m;break}e=p;j=J>>>8;do{if((j|0)==0){Q=0}else{if(J>>>0>16777215>>>0){Q=31;break}r=(j+1048320|0)>>>16&8;i=j<>>16&4;B=i<>>16&2;l=14-(d|r|i)+(B<>>15)|0;Q=J>>>((l+7|0)>>>0)&1|l<<1}}while(0);j=27976+(Q<<2)|0;c[q+(g+28)>>2]=Q;c[q+(g+20)>>2]=0;c[q+(g+16)>>2]=0;m=c[6919]|0;l=1<>2]=e;c[q+(g+24)>>2]=j;c[q+(g+12)>>2]=e;c[q+(g+8)>>2]=e;break}if((Q|0)==31){R=0}else{R=25-(Q>>>1)|0}l=J<>2]|0;while(1){if((c[m+4>>2]&-8|0)==(J|0)){break}S=m+16+(l>>>31<<2)|0;j=c[S>>2]|0;if((j|0)==0){T=8965;break}else{l=l<<1;m=j}}if((T|0)==8965){if(S>>>0<(c[6922]|0)>>>0){bb();return 0}else{c[S>>2]=e;c[q+(g+24)>>2]=m;c[q+(g+12)>>2]=e;c[q+(g+8)>>2]=e;break}}l=m+8|0;j=c[l>>2]|0;i=c[6922]|0;if(m>>>0>>0){bb();return 0}if(j>>>0>>0){bb();return 0}else{c[j+12>>2]=e;c[l>>2]=e;c[q+(g+8)>>2]=j;c[q+(g+12)>>2]=m;c[q+(g+24)>>2]=0;break}}}while(0);q=K+8|0;if((q|0)==0){o=g;break}else{n=q}return n|0}}while(0);K=c[6920]|0;if(o>>>0<=K>>>0){S=K-o|0;J=c[6923]|0;if(S>>>0>15>>>0){R=J;c[6923]=R+o;c[6920]=S;c[R+(o+4)>>2]=S|1;c[R+K>>2]=S;c[J+4>>2]=o|3}else{c[6920]=0;c[6923]=0;c[J+4>>2]=K|3;S=J+(K+4)|0;c[S>>2]=c[S>>2]|1}n=J+8|0;return n|0}J=c[6921]|0;if(o>>>0>>0){S=J-o|0;c[6921]=S;J=c[6924]|0;K=J;c[6924]=K+o;c[K+(o+4)>>2]=S|1;c[J+4>>2]=o|3;n=J+8|0;return n|0}do{if((c[6836]|0)==0){J=aT(30)|0;if((J-1&J|0)==0){c[6838]=J;c[6837]=J;c[6839]=-1;c[6840]=-1;c[6841]=0;c[7029]=0;c[6836]=(a$(0)|0)&-16^1431655768;break}else{bb();return 0}}}while(0);J=o+48|0;S=c[6838]|0;K=o+47|0;R=S+K|0;Q=-S|0;S=R&Q;if(S>>>0<=o>>>0){n=0;return n|0}O=c[7028]|0;do{if((O|0)!=0){P=c[7026]|0;L=P+S|0;if(L>>>0<=P>>>0|L>>>0>O>>>0){n=0}else{break}return n|0}}while(0);L12103:do{if((c[7029]&4|0)==0){O=c[6924]|0;L12105:do{if((O|0)==0){T=8995}else{L=O;P=28120;while(1){U=P|0;M=c[U>>2]|0;if(M>>>0<=L>>>0){V=P+4|0;if((M+(c[V>>2]|0)|0)>>>0>L>>>0){break}}M=c[P+8>>2]|0;if((M|0)==0){T=8995;break L12105}else{P=M}}if((P|0)==0){T=8995;break}L=R-(c[6921]|0)&Q;if(L>>>0>=2147483647>>>0){W=0;break}m=a7(L|0)|0;e=(m|0)==((c[U>>2]|0)+(c[V>>2]|0)|0);X=e?m:-1;Y=e?L:0;Z=m;_=L;T=9004}}while(0);do{if((T|0)==8995){O=a7(0)|0;if((O|0)==-1){W=0;break}g=O;L=c[6837]|0;m=L-1|0;if((m&g|0)==0){$=S}else{$=S-g+(m+g&-L)|0}L=c[7026]|0;g=L+$|0;if(!($>>>0>o>>>0&$>>>0<2147483647>>>0)){W=0;break}m=c[7028]|0;if((m|0)!=0){if(g>>>0<=L>>>0|g>>>0>m>>>0){W=0;break}}m=a7($|0)|0;g=(m|0)==(O|0);X=g?O:-1;Y=g?$:0;Z=m;_=$;T=9004}}while(0);L12125:do{if((T|0)==9004){m=-_|0;if((X|0)!=-1){aa=Y;ab=X;T=9015;break L12103}do{if((Z|0)!=-1&_>>>0<2147483647>>>0&_>>>0>>0){g=c[6838]|0;O=K-_+g&-g;if(O>>>0>=2147483647>>>0){ac=_;break}if((a7(O|0)|0)==-1){a7(m|0)|0;W=Y;break L12125}else{ac=O+_|0;break}}else{ac=_}}while(0);if((Z|0)==-1){W=Y}else{aa=ac;ab=Z;T=9015;break L12103}}}while(0);c[7029]=c[7029]|4;ad=W;T=9012}else{ad=0;T=9012}}while(0);do{if((T|0)==9012){if(S>>>0>=2147483647>>>0){break}W=a7(S|0)|0;Z=a7(0)|0;if(!((Z|0)!=-1&(W|0)!=-1&W>>>0>>0)){break}ac=Z-W|0;Z=ac>>>0>(o+40|0)>>>0;Y=Z?W:-1;if((Y|0)!=-1){aa=Z?ac:ad;ab=Y;T=9015}}}while(0);do{if((T|0)==9015){ad=(c[7026]|0)+aa|0;c[7026]=ad;if(ad>>>0>(c[7027]|0)>>>0){c[7027]=ad}ad=c[6924]|0;L12145:do{if((ad|0)==0){S=c[6922]|0;if((S|0)==0|ab>>>0>>0){c[6922]=ab}c[7030]=ab;c[7031]=aa;c[7033]=0;c[6927]=c[6836];c[6926]=-1;S=0;do{Y=S<<1;ac=27712+(Y<<2)|0;c[27712+(Y+3<<2)>>2]=ac;c[27712+(Y+2<<2)>>2]=ac;S=S+1|0;}while(S>>>0<32>>>0);S=ab+8|0;if((S&7|0)==0){ae=0}else{ae=-S&7}S=aa-40-ae|0;c[6924]=ab+ae;c[6921]=S;c[ab+(ae+4)>>2]=S|1;c[ab+(aa-36)>>2]=40;c[6925]=c[6840]}else{S=28120;while(1){af=c[S>>2]|0;ag=S+4|0;ah=c[ag>>2]|0;if((ab|0)==(af+ah|0)){T=9027;break}ac=c[S+8>>2]|0;if((ac|0)==0){break}else{S=ac}}do{if((T|0)==9027){if((c[S+12>>2]&8|0)!=0){break}ac=ad;if(!(ac>>>0>=af>>>0&ac>>>0>>0)){break}c[ag>>2]=ah+aa;ac=c[6924]|0;Y=(c[6921]|0)+aa|0;Z=ac;W=ac+8|0;if((W&7|0)==0){ai=0}else{ai=-W&7}W=Y-ai|0;c[6924]=Z+ai;c[6921]=W;c[Z+(ai+4)>>2]=W|1;c[Z+(Y+4)>>2]=40;c[6925]=c[6840];break L12145}}while(0);if(ab>>>0<(c[6922]|0)>>>0){c[6922]=ab}S=ab+aa|0;Y=28120;while(1){aj=Y|0;if((c[aj>>2]|0)==(S|0)){T=9037;break}Z=c[Y+8>>2]|0;if((Z|0)==0){break}else{Y=Z}}do{if((T|0)==9037){if((c[Y+12>>2]&8|0)!=0){break}c[aj>>2]=ab;S=Y+4|0;c[S>>2]=(c[S>>2]|0)+aa;S=ab+8|0;if((S&7|0)==0){ak=0}else{ak=-S&7}S=ab+(aa+8)|0;if((S&7|0)==0){al=0}else{al=-S&7}S=ab+(al+aa)|0;Z=S;W=ak+o|0;ac=ab+W|0;_=ac;K=S-(ab+ak)-o|0;c[ab+(ak+4)>>2]=o|3;do{if((Z|0)==(c[6924]|0)){J=(c[6921]|0)+K|0;c[6921]=J;c[6924]=_;c[ab+(W+4)>>2]=J|1}else{if((Z|0)==(c[6923]|0)){J=(c[6920]|0)+K|0;c[6920]=J;c[6923]=_;c[ab+(W+4)>>2]=J|1;c[ab+(J+W)>>2]=J;break}J=aa+4|0;X=c[ab+(J+al)>>2]|0;if((X&3|0)==1){$=X&-8;V=X>>>3;L12190:do{if(X>>>0<256>>>0){U=c[ab+((al|8)+aa)>>2]|0;Q=c[ab+(aa+12+al)>>2]|0;R=27712+(V<<1<<2)|0;do{if((U|0)!=(R|0)){if(U>>>0<(c[6922]|0)>>>0){bb();return 0}if((c[U+12>>2]|0)==(Z|0)){break}bb();return 0}}while(0);if((Q|0)==(U|0)){c[6918]=c[6918]&~(1<>>0<(c[6922]|0)>>>0){bb();return 0}m=Q+8|0;if((c[m>>2]|0)==(Z|0)){am=m;break}bb();return 0}}while(0);c[U+12>>2]=Q;c[am>>2]=U}else{R=S;m=c[ab+((al|24)+aa)>>2]|0;P=c[ab+(aa+12+al)>>2]|0;do{if((P|0)==(R|0)){O=al|16;g=ab+(J+O)|0;L=c[g>>2]|0;if((L|0)==0){e=ab+(O+aa)|0;O=c[e>>2]|0;if((O|0)==0){an=0;break}else{ao=O;ap=e}}else{ao=L;ap=g}while(1){g=ao+20|0;L=c[g>>2]|0;if((L|0)!=0){ao=L;ap=g;continue}g=ao+16|0;L=c[g>>2]|0;if((L|0)==0){break}else{ao=L;ap=g}}if(ap>>>0<(c[6922]|0)>>>0){bb();return 0}else{c[ap>>2]=0;an=ao;break}}else{g=c[ab+((al|8)+aa)>>2]|0;if(g>>>0<(c[6922]|0)>>>0){bb();return 0}L=g+12|0;if((c[L>>2]|0)!=(R|0)){bb();return 0}e=P+8|0;if((c[e>>2]|0)==(R|0)){c[L>>2]=P;c[e>>2]=g;an=P;break}else{bb();return 0}}}while(0);if((m|0)==0){break}P=ab+(aa+28+al)|0;U=27976+(c[P>>2]<<2)|0;do{if((R|0)==(c[U>>2]|0)){c[U>>2]=an;if((an|0)!=0){break}c[6919]=c[6919]&~(1<>2]);break L12190}else{if(m>>>0<(c[6922]|0)>>>0){bb();return 0}Q=m+16|0;if((c[Q>>2]|0)==(R|0)){c[Q>>2]=an}else{c[m+20>>2]=an}if((an|0)==0){break L12190}}}while(0);if(an>>>0<(c[6922]|0)>>>0){bb();return 0}c[an+24>>2]=m;R=al|16;P=c[ab+(R+aa)>>2]|0;do{if((P|0)!=0){if(P>>>0<(c[6922]|0)>>>0){bb();return 0}else{c[an+16>>2]=P;c[P+24>>2]=an;break}}}while(0);P=c[ab+(J+R)>>2]|0;if((P|0)==0){break}if(P>>>0<(c[6922]|0)>>>0){bb();return 0}else{c[an+20>>2]=P;c[P+24>>2]=an;break}}}while(0);aq=ab+(($|al)+aa)|0;ar=$+K|0}else{aq=Z;ar=K}J=aq+4|0;c[J>>2]=c[J>>2]&-2;c[ab+(W+4)>>2]=ar|1;c[ab+(ar+W)>>2]=ar;J=ar>>>3;if(ar>>>0<256>>>0){V=J<<1;X=27712+(V<<2)|0;P=c[6918]|0;m=1<>2]|0;if(U>>>0>=(c[6922]|0)>>>0){as=U;at=J;break}bb();return 0}}while(0);c[at>>2]=_;c[as+12>>2]=_;c[ab+(W+8)>>2]=as;c[ab+(W+12)>>2]=X;break}V=ac;m=ar>>>8;do{if((m|0)==0){au=0}else{if(ar>>>0>16777215>>>0){au=31;break}P=(m+1048320|0)>>>16&8;$=m<>>16&4;U=$<>>16&2;Q=14-(J|P|$)+(U<<$>>>15)|0;au=ar>>>((Q+7|0)>>>0)&1|Q<<1}}while(0);m=27976+(au<<2)|0;c[ab+(W+28)>>2]=au;c[ab+(W+20)>>2]=0;c[ab+(W+16)>>2]=0;X=c[6919]|0;Q=1<>2]=V;c[ab+(W+24)>>2]=m;c[ab+(W+12)>>2]=V;c[ab+(W+8)>>2]=V;break}if((au|0)==31){av=0}else{av=25-(au>>>1)|0}Q=ar<>2]|0;while(1){if((c[X+4>>2]&-8|0)==(ar|0)){break}aw=X+16+(Q>>>31<<2)|0;m=c[aw>>2]|0;if((m|0)==0){T=9110;break}else{Q=Q<<1;X=m}}if((T|0)==9110){if(aw>>>0<(c[6922]|0)>>>0){bb();return 0}else{c[aw>>2]=V;c[ab+(W+24)>>2]=X;c[ab+(W+12)>>2]=V;c[ab+(W+8)>>2]=V;break}}Q=X+8|0;m=c[Q>>2]|0;$=c[6922]|0;if(X>>>0<$>>>0){bb();return 0}if(m>>>0<$>>>0){bb();return 0}else{c[m+12>>2]=V;c[Q>>2]=V;c[ab+(W+8)>>2]=m;c[ab+(W+12)>>2]=X;c[ab+(W+24)>>2]=0;break}}}while(0);n=ab+(ak|8)|0;return n|0}}while(0);Y=ad;W=28120;while(1){ax=c[W>>2]|0;if(ax>>>0<=Y>>>0){ay=c[W+4>>2]|0;az=ax+ay|0;if(az>>>0>Y>>>0){break}}W=c[W+8>>2]|0}W=ax+(ay-39)|0;if((W&7|0)==0){aA=0}else{aA=-W&7}W=ax+(ay-47+aA)|0;ac=W>>>0<(ad+16|0)>>>0?Y:W;W=ac+8|0;_=ab+8|0;if((_&7|0)==0){aB=0}else{aB=-_&7}_=aa-40-aB|0;c[6924]=ab+aB;c[6921]=_;c[ab+(aB+4)>>2]=_|1;c[ab+(aa-36)>>2]=40;c[6925]=c[6840];c[ac+4>>2]=27;c[W>>2]=c[7030];c[W+4>>2]=c[7031];c[W+8>>2]=c[7032];c[W+12>>2]=c[7033];c[7030]=ab;c[7031]=aa;c[7033]=0;c[7032]=W;W=ac+28|0;c[W>>2]=7;if((ac+32|0)>>>0>>0){_=W;while(1){W=_+4|0;c[W>>2]=7;if((_+8|0)>>>0>>0){_=W}else{break}}}if((ac|0)==(Y|0)){break}_=ac-ad|0;W=Y+(_+4)|0;c[W>>2]=c[W>>2]&-2;c[ad+4>>2]=_|1;c[Y+_>>2]=_;W=_>>>3;if(_>>>0<256>>>0){K=W<<1;Z=27712+(K<<2)|0;S=c[6918]|0;m=1<>2]|0;if(Q>>>0>=(c[6922]|0)>>>0){aC=Q;aD=W;break}bb();return 0}}while(0);c[aD>>2]=ad;c[aC+12>>2]=ad;c[ad+8>>2]=aC;c[ad+12>>2]=Z;break}K=ad;m=_>>>8;do{if((m|0)==0){aE=0}else{if(_>>>0>16777215>>>0){aE=31;break}S=(m+1048320|0)>>>16&8;Y=m<>>16&4;W=Y<>>16&2;Q=14-(ac|S|Y)+(W<>>15)|0;aE=_>>>((Q+7|0)>>>0)&1|Q<<1}}while(0);m=27976+(aE<<2)|0;c[ad+28>>2]=aE;c[ad+20>>2]=0;c[ad+16>>2]=0;Z=c[6919]|0;Q=1<>2]=K;c[ad+24>>2]=m;c[ad+12>>2]=ad;c[ad+8>>2]=ad;break}if((aE|0)==31){aF=0}else{aF=25-(aE>>>1)|0}Q=_<>2]|0;while(1){if((c[Z+4>>2]&-8|0)==(_|0)){break}aG=Z+16+(Q>>>31<<2)|0;m=c[aG>>2]|0;if((m|0)==0){T=9145;break}else{Q=Q<<1;Z=m}}if((T|0)==9145){if(aG>>>0<(c[6922]|0)>>>0){bb();return 0}else{c[aG>>2]=K;c[ad+24>>2]=Z;c[ad+12>>2]=ad;c[ad+8>>2]=ad;break}}Q=Z+8|0;_=c[Q>>2]|0;m=c[6922]|0;if(Z>>>0>>0){bb();return 0}if(_>>>0>>0){bb();return 0}else{c[_+12>>2]=K;c[Q>>2]=K;c[ad+8>>2]=_;c[ad+12>>2]=Z;c[ad+24>>2]=0;break}}}while(0);ad=c[6921]|0;if(ad>>>0<=o>>>0){break}_=ad-o|0;c[6921]=_;ad=c[6924]|0;Q=ad;c[6924]=Q+o;c[Q+(o+4)>>2]=_|1;c[ad+4>>2]=o|3;n=ad+8|0;return n|0}}while(0);c[(a9()|0)>>2]=12;n=0;return n|0} +function cL(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;b=i;i=i+16|0;d=b|0;e=b+8|0;f=a;a=c[f>>2]|0;g=c[f+36>>2]|0;h=c[f+40>>2]|0;j=0;k=c[a>>2]|0;l=c[a+4>>2]|0;m=c[a+8>>2]|0;n=c[a+12>>2]|0;o=c[f+8>>2]|0;p=l-k+1|0;q=n-m+1|0;r=f+44|0;s=100;t=100;if((p|0)>2){u=(q|0)>3}else{u=0}L7509:do{if(u){if((c[f+108>>2]|0)>0){break}if((c[a+196>>2]|0)!=1){break}do{if((c[r>>2]|0)<=(k+((p|0)/4|0)|0)){if((c[r+4>>2]|0)>(m+((q|0)/4|0)|0)){break}do{if((c[r+16>>2]|0)<=(k+((p|0)/4|0)|0)){if((c[r+20>>2]|0)<(n-((q|0)/4|0)|0)){break}do{if((c[r+32>>2]|0)>=(l-((p|0)/4|0)|0)){if((c[r+36>>2]|0)<(n-((q|0)/4|0)|0)){break}do{if((c[r+48>>2]|0)>=(l-((p|0)/4|0)|0)){if((c[r+52>>2]|0)>(m+((q|0)/4|0)|0)){break}v=dC(c[a+68>>2]|0,k+((p|0)/2|0)|0,m,n-m|0,o,0,2)|0;if((v|0)>((q|0)/8|0|0)){break L7509}v=dC(c[a+68>>2]|0,k+((p|0)/2|0)|0,m+v|0,n-m|0,o,1,2)|0;w=dC(c[a+68>>2]|0,k+((p|0)/2|0)|0,n,n-m|0,o,0,1)|0;if((w|0)>((q|0)/8|0|0)){break L7509}w=dC(c[a+68>>2]|0,k+((p|0)/2|0)|0,n-w|0,n-m|0,o,1,1)|0;if((w|0)>((q|0)/3|0|0)){break L7509}if((v|0)<((w<<1)-((q|0)/16|0)|0)){break L7509}x=cI(a,c[r+44>>2]|0,c[r+60>>2]|0,k,m+((q<<1|0)/3|0)|0)|0;if((c[a+296+(x<<3)>>2]|0)>=(k+((p|0)/3|0)|0)){break L7509}if((c[a+296+(x<<3)+4>>2]|0)<=(m+((q|0)/2|0)|0)){break L7509}y=cI(a,x,c[r+60>>2]|0,l,m+((q<<1|0)/3|0)|0)|0;if((c[a+296+(y<<3)>>2]|0)<(l-((p|0)/8|0)-1|0)){break L7509}if((c[a+296+(y<<3)+4>>2]|0)<(m+((q|0)/2|0)-1|0)){break L7509}if((c[a+56>>2]|0)!=0){if((c[f+40>>2]|0)!=0){t=(t*98|0|0)/100|0}if((c[f+36>>2]|0)!=0){t=(t*98|0|0)/100|0}}else{t=(t*99|0|0)/100|0}z=a;A=t;dy(z,101,A)|0;if((t|0)<100){break L7509}B=101;C=B;i=b;return C|0}}while(0);break L7509}}while(0);break L7509}}while(0);break L7509}}while(0)}}while(0);s=100;t=100;if((p|0)>2){D=(q|0)>3}else{D=0}L7576:do{if(D){if((c[f+108>>2]|0)>2){break}if((c[f+108>>2]|0)!=1){t=(t*97|0|0)/100|0}if((dC(c[a+68>>2]|0,k,m+((q|0)/2|0)|0,l-k|0,o,0,3)|0)>((p|0)/3|0|0)){break}if((dC(c[a+68>>2]|0,k+((p|0)/2|0)|0,m,n-m|0,o,0,2)|0)>((q|0)/3|0|0)){break}if((dC(c[a+68>>2]|0,k+((p|0)/2|0)|0,n,n-m|0,o,0,1)|0)>((q|0)/3|0|0)){break}do{if((dv(k,l,m+((q|0)/4|0)|0,m+((q|0)/4|0)|0,c[a+68>>2]|0,o)|0)>2){if((dv(k,l,m+((q|0)/4|0)+1|0,m+((q|0)/4|0)+1|0,c[a+68>>2]|0,o)|0)<=2){break}break L7576}}while(0);c[d>>2]=(k+l|0)/2|0;v=dv(c[d>>2]|0,c[d>>2]|0,m,n,c[a+68>>2]|0,o)|0;if((v|0)!=3){c[d>>2]=(k+(l<<1)|0)/3|0;v=dv(c[d>>2]|0,c[d>>2]|0,m,n,c[a+68>>2]|0,o)|0}if((v|0)!=3){c[d>>2]=(k+(l*3|0)|0)/4|0;v=dv(c[d>>2]|0,c[d>>2]|0,m,n,c[a+68>>2]|0,o)|0}if((v|0)!=3){v=dv((k+(l<<1)|0)/3|0,(k+l|0)/2|0,m,n,c[a+68>>2]|0,o)|0}v=dC(c[a+68>>2]|0,k,m+((q|0)/2|0)|0,l-k|0,o,0,3)|0;if((v|0)>((p|0)/2|0|0)){break}w=dC(c[a+68>>2]|0,k,m,l-k|0,o,0,3)|0;if((w|0)<(v|0)){break}w=dC(c[a+68>>2]|0,k,n,l-k|0,o,0,3)|0;if((w|0)<(v|0)){break}v=dC(c[a+68>>2]|0,k+((p|0)/2|0)|0,m,n-m|0,o,0,2)|0;if((v|0)>((p|0)/2|0|0)){break}w=dC(c[a+68>>2]|0,l-((p|0)/3|0)|0,m,n-m|0,o,0,2)|0;if((w|0)<(v|0)){v=w}w=dC(c[a+68>>2]|0,k,m,n-m|0,o,0,2)|0;if((w|0)<(v|0)){break}w=dC(c[a+68>>2]|0,l,m,n-m|0,o,0,2)|0;if((w|0)<(v|0)){break}v=dC(c[a+68>>2]|0,k+((p|0)/2|0)|0,n,n-m|0,o,0,1)|0;if((v|0)>((p|0)/2|0|0)){break}w=dC(c[a+68>>2]|0,k,n,n-m|0,o,0,1)|0;if((w|0)<(v|0)){break}w=dC(c[a+68>>2]|0,l,n,n-m|0,o,0,1)|0;if((w|0)<(v|0)){break}u=(dC(c[a+68>>2]|0,k,(m+n|0)/2|0,l-k|0,o,0,3)|0)<<1;A=u-(dC(c[a+68>>2]|0,k,((m*3|0)+n|0)/4|0,l-k|0,o,0,3)|0)|0;w=A-(dC(c[a+68>>2]|0,k,(m+(n*3|0)|0)/4|0,l-k|0,o,0,3)|0)|0;do{if((p|0)>3){if((w|0)<((p|0)/4|0|0)){break}break L7576}}while(0);c[e>>2]=1;while(1){if((c[e>>2]|0)>=((q|0)/2|0|0)){break}if((dv(k,l,m+(c[e>>2]|0)|0,m+(c[e>>2]|0)|0,c[a+68>>2]|0,o)|0)==2){E=5579;break}c[e>>2]=(c[e>>2]|0)+1}if((c[e>>2]|0)==((q|0)/2|0|0)){break}v=0;w=k+((p|0)/4|0)|0;while(1){if((w|0)<=(l-((p|0)/4|0)|0)){F=(v|0)<=((p|0)/4|0|0)}else{F=0}if(!F){break}if((dv(w,w,m,n,c[a+68>>2]|0,o)|0)==3){v=v+1|0}w=w+1|0}do{if((p|0)>4){if((q|0)<=5){break}if((v|0)>=(((p|0)/4|0)-1|0)){if((v|0)!=0){break}}break L7576}}while(0);c[d>>2]=0;A=m+((q|0)/3|0)|0;v=A;c[e>>2]=A;while(1){if((v|0)>=(n-((q|0)/6|0)|0)){break}w=dC(c[a+68>>2]|0,l,v,n-m|0,o,0,4)|0;if((w|0)>=(c[d>>2]|0)){c[d>>2]=w;c[e>>2]=v}v=v+1|0}if((c[d>>2]|0)<((p|0)/2|0|0)){x=p;v=m+((q|0)/3|0)|0;while(1){if((v|0)>=(n-((q|0)/6|0)|0)){break}w=dC(c[a+68>>2]|0,k,v,n-m|0,o,0,3)|0;if((w|0)>((p|0)/2|0|0)){E=5607;break}w=dC(c[a+68>>2]|0,k+w|0,v,n-m|0,o,1,3)|0;if((w|0)<(x|0)){x=w}v=v+1|0}y=p;A=m+((q|0)/3|0)|0;v=A;c[e>>2]=A;while(1){if((v|0)>=(n-((q|0)/6|0)|0)){break}w=dC(c[a+68>>2]|0,l,v,n-m|0,o,0,4)|0;w=dC(c[a+68>>2]|0,l-w|0,v,n-m|0,o,1,4)|0;if((w|0)<(y|0)){y=w;c[e>>2]=v}v=v+1|0}if((y*3|0|0)>(x<<1|0)){break}c[d>>2]=dC(c[a+68>>2]|0,l,c[e>>2]|0,n-m|0,o,0,4)|0;A=dC(c[a+68>>2]|0,l-(c[d>>2]|0)|0,c[e>>2]|0,n-m|0,o,1,4)|0;c[d>>2]=(c[d>>2]|0)+A;A=dC(c[a+68>>2]|0,l-(c[d>>2]|0)|0,c[e>>2]|0,n-m|0,o,0,4)|0;c[d>>2]=(c[d>>2]|0)+A;if((y*3|0|0)>(x|0)){t=(t*99|0|0)/100|0}if((y<<1|0)>(x|0)){t=(t*99|0|0)/100|0}j=60}if((c[d>>2]|0)<((p|0)/2|0|0)){break}v=1;w=k+((p|0)/6|0)|0;while(1){if((w|0)<(l-((p|0)/6|0)|0)){G=(v|0)!=0}else{G=0}if(!G){break}if((dv(w,w,m,c[e>>2]|0,c[a+68>>2]|0,o)|0)>1){v=0}w=w+1|0}if((v|0)!=0){break}do{if((q|0)>11){if((j|0)>=50){break}if((dv(k,l,c[e>>2]|0,c[e>>2]|0,c[a+68>>2]|0,o)|0)!=1){break L7576}else{break}}}while(0);do{if((dv(k,l-((p|0)/3|0)|0,c[e>>2]|0,c[e>>2]|0,c[a+68>>2]|0,o)|0)!=1){if((dv(k,l-((p|0)/3|0)|0,(c[e>>2]|0)+1|0,(c[e>>2]|0)+1|0,c[a+68>>2]|0,o)|0)==1){break}break L7576}}while(0);if((c[f+108>>2]|0)==0){E=5647}else{if((c[f+136>>2]|0)>=((c[e>>2]|0)-m|0)){E=5647}}do{if((E|0)==5647){if((c[f+36>>2]|0)!=0){break L7576}w=0;v=k+((p|0)/8|0)|0;while(1){if((v|0)>=(l-1|0)){break}if(((du(v,v,m+((q|0)/4|0)|0,c[e>>2]|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)==1){w=w+1|0}v=v+1|0}if((w|0)<((p<<1|0)/4|0|0)){break L7576}else{break}}}while(0);do{if((c[f+108>>2]|0)>0){if((c[f+128>>2]|0)<=((c[e>>2]|0)-m|0)){break}break L7576}}while(0);do{if((c[f+108>>2]|0)>1){if((c[f+156>>2]|0)<=((c[e>>2]|0)-m|0)){break}break L7576}}while(0);do{if((c[f+108>>2]|0)==1){if((c[f+124>>2]|0)<((p|0)/2|0|0)){break}t=(t*95|0|0)/100|0}}while(0);c[d>>2]=0;A=m+((q|0)/4|0)|0;v=A;c[e>>2]=A;while(1){if((v|0)>=(n-((q|0)/4|0)|0)){break}w=dC(c[a+68>>2]|0,k,v,l-k|0,o,0,3)|0;if((w|0)>=(c[d>>2]|0)){c[d>>2]=w;c[e>>2]=v}v=v+1|0}do{if((c[e>>2]|0)>(m+((q|0)/4|0)|0)){if((c[e>>2]|0)>=(n-((q|0)/4|0)|0)){break}if((c[d>>2]|0)<=((p|0)/2|0|0)){break}break L7576}}while(0);if((c[d>>2]|0)>((p|0)/4|0|0)){t=(t*99|0|0)/100|0}do{if((dv(k+((p|0)/2|0)|0,l,n-((q|0)/4|0)|0,n,c[a+68>>2]|0,o)|0)==0){if((dv(k+((p|0)/2|0)|0,l-1|0,n-((q|0)/4|0)|0,n,c[a+68>>2]|0,o)|0)!=0){break}if((dv(k+((p|0)/2|0)|0,l,n-((q|0)/4|0)|0,n-1|0,c[a+68>>2]|0,o)|0)!=0){break}if((c[f+40>>2]|0)!=0){break L7576}else{t=(t*99|0|0)/100|0;break}}}while(0);do{if((c[f+36>>2]|0)!=0){if((dC(c[a+68>>2]|0,l,n-((q|0)/3|0)|0,p,o,0,4)|0)>((p|0)/8|0|0)){break}c[d>>2]=dC(c[a+68>>2]|0,k,m+((q|0)/2|0)|0,p,o,0,3)|0;A=dC(c[a+68>>2]|0,k,m+((q|0)/4|0)|0,p,o,0,3)|0;do{if((A|0)<=(c[d>>2]|0)){u=dC(c[a+68>>2]|0,k,m+((q|0)/8|0)|0,p,o,0,3)|0;if((u|0)>(c[d>>2]|0)){break}break L7576}}while(0);A=dC(c[a+68>>2]|0,k,n-((q|0)/4|0)|0,p,o,0,3)|0;do{if((A|0)<=(c[d>>2]|0)){u=dC(c[a+68>>2]|0,k,n-((q|0)/8|0)|0,p,o,0,3)|0;if((u|0)>(c[d>>2]|0)){break}break L7576}}while(0)}}while(0);c[d>>2]=dC(c[f+4>>2]|0,0,q-2|0,p,o,0,3)|0;A=dC(c[f+4>>2]|0,0,q-1-((q|0)/8|0)|0,p,o,0,3)|0;do{if((A|0)>(c[d>>2]|0)){if((q|0)<=16){break}break L7576}}while(0);if((c[a+56>>2]|0)!=0){if((c[f+40>>2]|0)!=0){t=(t*99|0|0)/100|0}if((c[f+36>>2]|0)!=0){t=(t*99|0|0)/100|0}}else{t=(t*99|0|0)/100|0}dy(a,101,t)|0;if((t|0)<100){break}B=101;C=B;i=b;return C|0}}while(0);s=100;t=100;if((p|0)>2){H=(q|0)>4}else{H=0}L7826:do{if(H){if((c[f+108>>2]|0)>1){break}s=(cH(32)|0)<<1;if((c[r+56>>2]|0)>((s|0)/2|0|0)){break}if((c[r+8>>2]|0)>((s|0)/2|0|0)){break}if((c[r+24>>2]|0)>((s|0)/2|0|0)){break}if((c[r+40>>2]|0)>((s|0)/2|0|0)){break}v=c[r+28>>2]|0;while(1){if((v|0)==(c[r+44>>2]|0)){break}if((n-(c[a+296+(v<<3)+4>>2]|0)|0)>((q|0)/4|0|0)){E=5724;break}v=(v+1|0)%(c[a+264>>2]|0)|0}if((v|0)!=(c[r+44>>2]|0)){break}j=cI(a,c[r+44>>2]|0,c[r+60>>2]|0,k,n)|0;G=cI(a,j,c[r+60>>2]|0,k,m)|0;x=cI(a,j,G,l,(m+n|0)/2|0)|0;cI(a,j,x,k,((m<<1)+n|0)/3|0)|0;cI(a,x,G,k,(m+(n<<1)|0)/3|0)|0;v=cI(a,c[r+12>>2]|0,c[r+28>>2]|0,k-((p|0)/4|0)|0,(m+n|0)/2|0)|0;if((c[a+296+(v<<3)>>2]<<1|0)<((c[r>>2]|0)+(c[r+16>>2]|0)-1-((p|0)/16|0)|0)){break}if((c[a+296+(v<<3)>>2]<<1|0)<((c[r>>2]|0)+(c[r+16>>2]|0)|0)){t=(t*99|0|0)/100|0}v=1;c[e>>2]=m;while(1){if((c[e>>2]|0)<(m+((q|0)/4|0)|0)){I=(v|0)!=0}else{I=0}if(!I){break}if(((du(k+((p|0)/3|0)|0,l-((p|0)/6|0)|0,c[e>>2]|0,c[e>>2]|0,c[a+68>>2]|0,o,2)|0)<<24>>24|0)==0){v=0}c[e>>2]=(c[e>>2]|0)+1}if((v|0)!=0){break}v=1;c[e>>2]=n;while(1){if((c[e>>2]|0)>(n-((q|0)/4|0)|0)){J=(v|0)!=0}else{J=0}if(!J){break}if(((du(k+((p|0)/6|0)|0,l-((p|0)/4|0)|0,c[e>>2]|0,c[e>>2]|0,c[a+68>>2]|0,o,2)|0)<<24>>24|0)==0){v=0}c[e>>2]=(c[e>>2]|0)-1}if((v|0)!=0){break}v=1;c[e>>2]=m+((q|0)/3|0);while(1){if((c[e>>2]|0)<(n-((q|0)/3|0)|0)){K=(v|0)!=0}else{K=0}if(!K){break}w=dC(c[a+68>>2]|0,k,c[e>>2]|0,p,o,0,3)|0;w=dC(c[a+68>>2]|0,k+w|0,c[e>>2]|0,p,o,1,3)|0;if((w|0)>((p|0)/3|0|0)){v=0}c[e>>2]=(c[e>>2]|0)+1}if((v|0)!=0){break}c[d>>2]=l-((p|0)/3|0);c[e>>2]=m;dA(c[a+68>>2]|0,d,e,k,l,m,n,o,2,7);if((c[e>>2]|0)>(m+((q|0)/4|0)|0)){break}dA(c[a+68>>2]|0,d,e,k,l,m,n,o,7,2);if((c[e>>2]|0)>(m+((q|0)/3|0)|0)){break}dA(c[a+68>>2]|0,d,e,k,l,m,n,o,3,2);do{if((c[d>>2]|0)>(l|0)){if((c[e>>2]|0)>(m+((q|0)/2|0)|0)){break}c[d>>2]=l-((p|0)/3|0);c[e>>2]=n;dA(c[a+68>>2]|0,d,e,k,l,m,n,o,1,7);if((c[e>>2]|0)<(n-((q|0)/4|0)|0)){break L7826}dA(c[a+68>>2]|0,d,e,k,l,m,n,o,7,1);if((c[e>>2]|0)<(m-((q|0)/3|0)|0)){break L7826}dA(c[a+68>>2]|0,d,e,k,l,m,n,o,3,1);do{if((c[d>>2]|0)>(l|0)){if((c[e>>2]|0)<(m+((q|0)/2|0)|0)){break}c[d>>2]=l-((p|0)/3|0);c[e>>2]=m;dA(c[a+68>>2]|0,d,e,k,l,m,n,o,2,7);if((c[e>>2]|0)>(m+((q|0)/4|0)|0)){break L7826}dA(c[a+68>>2]|0,d,e,k,l,m,n,o,7,2);if((c[e>>2]|0)>(m+((q|0)/3|0)|0)){break L7826}c[e>>2]=(c[e>>2]|0)+((q|0)/15|0);dA(c[a+68>>2]|0,d,e,k,l,m,n,o,4,7);if((c[d>>2]|0)<(k|0)){break L7826}do{if((p|0)>15){if((c[d>>2]|0)!=(k|0)){break}t=(t*99|0|0)/100|0}}while(0);c[d>>2]=(c[d>>2]|0)+(((p|0)/15|0)+1);dA(c[a+68>>2]|0,d,e,k,l,m,n,o,2,7);if((c[e>>2]|0)>(n-((q|0)/3|0)|0)){break L7826}if((c[f+108>>2]|0)>0){break L7826}v=dC(c[a+68>>2]|0,k,m+((q|0)/4|0)|0,p,o,0,3)|0;if((v|0)>((p|0)/2|0|0)){break L7826}w=dC(c[a+68>>2]|0,k,m+((q|0)/2|0)|0,p,o,0,3)|0;do{if((w|0)>=(v-((p|0)/4|0)|0)){if((w|0)>(v+((p|0)/8|0)|0)){break}v=w;w=dC(c[a+68>>2]|0,k,n-((q|0)/4|0)|0,p,o,0,3)|0;do{if((w|0)>=(v-((p|0)/4|0)|0)){if((w|0)>(v+((p|0)/8|0)|0)){break}w=dC(c[a+68>>2]|0,l,n-((q|0)/4|0)|0,p,o,0,4)|0;c[d>>2]=p;c[e>>2]=m+((q|0)/6|0);while(1){if((c[e>>2]|0)>=(n-((q|0)/9|0)|0)){break}v=dC(c[a+68>>2]|0,k,c[e>>2]|0,p,o,0,3)|0;do{if((v|0)>((w|0)/2|0|0)){if((t|0)<=98){break}t=(t*99|0|0)/100|0}}while(0);if((v|0)>((p|0)/4|0|0)){E=5804;break}if((v|0)<(c[d>>2]|0)){c[d>>2]=v}c[e>>2]=(c[e>>2]|0)+1}if((c[e>>2]|0)<(n-((q|0)/9|0)|0)){break L7826}do{if((q|0)>(p*3|0|0)){if(((du(k+((p|0)/2|0)|0,k+((p|0)/2|0)|0,m+((q|0)/4|0)|0,n-((q|0)/4|0)|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)==0){break L7826}else{break}}}while(0);if((c[a+56>>2]|0)!=0){if((g|0)==0){t=(t*99|0|0)/100|0}if((h|0)!=0){t=(t*99|0|0)/100|0}}dy(a,69,t)|0;if((t|0)<100){break L7826}B=69;C=B;i=b;return C|0}}while(0);break L7826}}while(0);break L7826}}while(0);break L7826}}while(0)}}while(0);B=c[a+36>>2]|0;C=B;i=b;return C|0}function cM(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;b=i;i=i+128|0;d=b|0;e=a;a=c[e>>2]|0;f=c[e+4>>2]|0;g=c[e+36>>2]|0;h=c[e+40>>2]|0;j=c[a>>2]|0;k=c[a+4>>2]|0;l=c[a+8>>2]|0;m=c[a+12>>2]|0;n=c[e+8>>2]|0;o=k-j+1|0;p=m-l+1|0;q=e+44|0;r=100;if((o|0)>2){s=(p|0)>5}else{s=0}if(!s){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((c[e+108>>2]|0)>1){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}s=(cH(32)|0)<<1;if((c[q+56>>2]|0)>((s|0)/2|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((c[q+8>>2]|0)>(s|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}s=cI(a,c[q+12>>2]|0,c[q+28>>2]|0,j-((o|0)/2|0)|0,((l*5|0)+(m*3|0)|0)/8|0)|0;w=c[q+28>>2]|0;if((c[a+296+(w<<3)+4>>2]|0)<(m-((p|0)/8|0)|0)){w=cI(a,c[q+28>>2]|0,c[q+44>>2]|0,j,m+((p|0)/4|0)|0)|0}x=cI(a,s,w,k,m)|0;w=cI(a,c[q+28>>2]|0,c[q+44>>2]|0,k,m+((p|0)/4|0)|0)|0;y=cI(a,w,c[q+60>>2]|0,j,m)|0;z=cI(a,y,c[q+60>>2]|0,(j+k|0)/2|0,l)|0;cI(a,z,c[q+12>>2]|0,k,((l*3|0)+m|0)/4|0)|0;A=cI(a,c[q+60>>2]|0,c[q+12>>2]|0,(j+(k<<1)|0)/3|0,l-((p|0)/4|0)|0)|0;B=cI(a,y,z,k+((o|0)/4|0)|0,((l*5|0)+(m*3|0)|0)/8|0)|0;cI(a,y,B,j,((l*3|0)+m|0)/4|0)|0;cI(a,B,z,j,(l+(m*3|0)|0)/4|0)|0;if(((c[a+296+(x<<3)>>2]|0)-j|0)>((o|0)/2|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}w=cI(a,c[q+12>>2]|0,x,k+(o<<1)|0,(l+m|0)/2|0)|0;if(((c[a+296+(w<<3)>>2]|0)-(c[a+296+(A<<3)>>2]|0)|0)>((o|0)/8|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((c[a+24>>2]|0)!=0){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((p|0)<=((c[a+60>>2]|0)-(c[a+56>>2]|0)+1|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}A=0;z=(((p*3|0)+4|0)/32|0)+2|0;B=z;C=z;L8030:while(1){if((B|0)>((p*5|0|0)/8|0|0)){break}w=dC(f,0,B,o,n,0,3)|0;if((B|0)>((p|0)/4|0|0)){if((w|0)>((o*5|0|0)/8|0|0)){D=5854;break}}w=dC(f,w,B,o,n,1,3)|0;if((w|0)>(A|0)){A=w;C=B}do{if((B|0)<((p*3|0|0)/4|0|0)){if((B|0)<=((p|0)/4|0|0)){break}if((dv(0,o-1|0,B,B,f,n)|0)==1){break}if((dv(0,o-1|0,B+1|0,B+1|0,f,n)|0)!=1){D=5861;break L8030}}}while(0);B=B+1|0}if((B|0)<=((p*5|0|0)/8|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}B=C;w=(dC(f,(o+1|0)/2|0,0,p,n,0,2)|0)/2|0;do{if((w|0)>((p|0)/8|0|0)){if((dv(0,(o+1|0)/2|0,w,w,f,n)|0)<=0){break}if((dv((o+1|0)/2|0,o-1|0,w,w,f,n)|0)<=0){break}t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}}while(0);do{if((dC(f,(o*3|0|0)/4|0,0,p,n,0,2)|0)>((p|0)/8|0|0)){if((dC(f,((o*3|0|0)/4|0)-1|0,0,p,n,0,2)|0)<=((p|0)/8|0|0)){break}t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}}while(0);w=(p*3|0|0)/4|0;do{if((c[a+60>>2]|0)!=0){if((w|0)<(c[a+60>>2]|0)){break}w=(c[a+60>>2]|0)-1|0}}while(0);if((dv(0,o-1|0,w,w,f,n)|0)!=1){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}s=o;x=B;C=B+1|0;while(1){if((C|0)>=(p-((p|0)/4|0)|0)){break}w=dC(f,0,C,o,n,0,3)|0;w=dC(f,w,C,o,n,1,3)|0;if((w|0)<(s|0)){s=w;x=C;if((w<<1|0)<=(A|0)){D=5882;break}}C=C+1|0}w=s;C=x;do{if((A|0)<(w<<1|0)){if((A|0)>=(o|0)){break}t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}}while(0);if((A|0)<(w+2+((o|0)/8|0)|0)){r=(r*97|0|0)/100|0}y=cI(a,c[q+44>>2]|0,c[q+60>>2]|0,j,l)|0;c[d+112>>2]=c[a+296+(y<<3)>>2];c[d+116>>2]=c[a+296+(y<<3)+4>>2];c[d+124>>2]=y;if(((c[d+116>>2]|0)-l|0)<=((p|0)/16|0|0)){r=(r*95|0|0)/100|0}do{if(((c[q+48>>2]|0)-j|0)>((o*3|0|0)/4|0|0)){if(((c[q+52>>2]|0)-l|0)<=((p*3|0|0)/16|0|0)){break}r=(r*99|0|0)/100|0}}while(0);C=dC(f,0,(p|0)/8|0,o,n,0,3)|0;if((A<<1|0)<(o|0)){if((C|0)>((o|0)/2|0|0)){D=5898}}else{D=5898}do{if((D|0)==5898){if((A*3|0|0)<(o|0)){break}w=(p|0)/8|0;while(1){if((w|0)>=(p|0)){break}if((dC(f,0,w,o,n,0,3)|0)>(C+((o|0)/4|0)|0)){D=5903;break}w=w+1|0}if((w|0)<(p|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((dC(f,o-1|0,(p|0)/2|0,o,n,0,4)|0)<((o|0)/2|0|0)){q=(dC(f,o-1|0,(p|0)/2|0,o,n,0,4)|0)-1|0;do{if((q|0)<=(dC(f,o-1|0,B,o,n,0,4)|0)){d=dC(f,o-1|0,B-1|0,o,n,0,4)|0;if((d|0)>(dC(f,o-1|0,B,o,n,0,4)|0)){break}t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}}while(0)}q=(dC(f,0,(p|0)/2|0,o,n,0,3)|0)-1|0;if((q|0)>(dC(f,0,1,o,n,0,3)|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}w=B;C=1;do{if((dv(0,o-1|0,0,0,f,n)|0)==1){if((g|0)==0){break}do{if((dv(0,o-1|0,p-1|0,p-1|0,f,n)|0)!=1){if((dv(0,o-1|0,p-2|0,p-2|0,f,n)|0)==1){break}t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}}while(0)}}while(0);B=1;while(1){if((C|0)!=0){E=(B|0)<(w|0)}else{E=0}if(!E){break}if((dv(0,o-1|0,B,B,f,n)|0)==2){C=0}B=B+1|0}if((C|0)==0){r=(r+101|0)/2|0}B=1;while(1){if((C|0)!=0){F=(B|0)<(w|0)}else{F=0}if(!F){break}A=0;L8158:while(1){if((C|0)!=0){G=(A|0)<(o|0)}else{G=0}if(!G){break}if((d8(f,A,B)|0)>=(n|0)){D=5942}else{if((o|0)<7){D=5942}}do{if((D|0)==5942){D=0;if((d8(f,A+1|0,B)|0)<(n|0)){break}if((d8(f,A,B-1|0)|0)>=(n|0)){break}if((d8(f,A+1|0,B-1|0)|0)<(n|0)){D=5945;break L8158}}}while(0);A=A+1|0}if((D|0)==5945){D=0;C=0}B=B+1|0}if((C|0)!=0){r=(r*98|0|0)/100|0}if((c[e+108>>2]|0)!=0){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}q=o;x=q;s=q;B=(p*7|0|0)/8|0;while(1){if((B|0)>=(p|0)){break}A=dC(f,0,B,o,n,0,3)|0;if((A|0)<(s|0)){s=A}A=dC(f,o-1|0,B,o,n,0,4)|0;if((A|0)<(x|0)){x=A}B=B+1|0}if((s|0)>(x+((o|0)/4|0)|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((s|0)>(x+1|0)){r=(r*96|0|0)/100|0}if((dC(f,0,(p*3|0|0)/4|0,o,n,0,3)|0)<(s-((o|0)/4|0)|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}do{if((o|0)>5){if((g|0)!=0){break}do{if((dC(f,o-1|0,(p|0)/2|0,o,n,0,4)|0)>((o*3|0|0)/4|0|0)){if((dC(f,o-1|0,p-1|0,p,n,0,1)|0)>=((o|0)/2|0|0)){break}t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}}while(0)}}while(0);if((o|0)>8){if((dC(f,0,(p<<1|0)/3|0,o,n,0,3)|0)>((o<<1|0)/3|0|0)){D=5978}else{if((dC(f,0,((p<<1|0)/3|0)-1|0,o,n,0,3)|0)>((o<<1|0)/3|0|0)){D=5978}}do{if((D|0)==5978){if((dC(f,o-1|0,(p|0)/4|0,o,n,0,4)|0)<=((o<<1|0)/3|0|0)){break}t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}}while(0)}if((g|0)==0){do{if(((du(j+((o|0)/8|0)|0,j+((o|0)/8|0)|0,l+((p|0)/4|0)|0,m-((p|0)/16|0)|0,c[a+68>>2]|0,n,2)|0)<<24>>24|0)==0){if((dv(k-((o|0)/4|0)|0,k-((o|0)/4|0)|0,l,m,c[a+68>>2]|0,n)|0)==2){break}if((dv(k-((o|0)/8|0)|0,k-((o|0)/8|0)|0,l,m,c[a+68>>2]|0,n)|0)==2){break}t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}}while(0)}if((p|0)>15){do{if((dv(j,k,m-((p|0)/4|0)|0,m-((p|0)/4|0)|0,c[a+68>>2]|0,n)|0)>1){if((dv(j,k,l+((p|0)/4|0)|0,l+((p|0)/4|0)|0,c[a+68>>2]|0,n)|0)<=1){break}t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}}while(0)}if((o|0)>4){q=dC(f,o-1|0,(p*3|0|0)/4|0,o,n,0,4)|0;do{if((q-(dC(f,0,(p*3|0|0)/4|0,o,n,0,3)|0)|0)>(((o|0)/5|0)+1|0)){if((dC(f,o-1-((o|0)/8|0)|0,p-1|0,p,n,0,1)|0)>=((p|0)/4|0|0)){break}d=dC(f,o-1|0,(p*5|0|0)/16|0,o,n,0,4)|0;if((d-(dC(f,0,(p*5|0|0)/16|0,o,n,0,3)|0)|0)>=(((o|0)/5|0)+1|0)){r=(r*98|0|0)/100|0}w=dC(f,(o|0)/8|0,0,p,n,0,2)|0;if((w|0)<((p|0)/8|0|0)){D=6e3}else{if((w|0)>((p|0)/2|0|0)){D=6e3}}if((D|0)==6e3){r=(r*98|0|0)/100|0}if((h|0)==0){r=(r*98|0|0)/100|0}}}while(0)}w=(dC(f,o-1|0,(p*3|0|0)/4|0,o,n,0,4)|0)/2|0;if((dC(f,o-1-w|0,p-1|0,(p|0)/2|0,n,0,1)|0)<((p|0)/4|0|0)){if((dC(f,0,(p*3|0|0)/4|0,o,n,0,3)|0)<((o|0)/4|0|0)){r=(r*98|0|0)/100|0}}do{if((dC(f,0,(p|0)/4|0,o,n,0,3)|0)>1){if((dC(f,0,0,(p|0)/4|0,n,0,2)|0)>=((p|0)/4|0|0)){break}r=(r*95|0|0)/100|0}}while(0);if(((du(j+((o|0)/16|0)|0,k-((o|0)/16|0)|0,l,l,c[a+68>>2]|0,n,2)|0)<<24>>24|0)==0){r=(r*98|0|0)/100|0}if((g|0)==0){r=(r*98|0|0)/100|0}do{if((c[a+64>>2]|0)>0){if((h|0)==0){break}if((r|0)>=99){break}if((c[a+12>>2]<<3|0)<(((c[a+64>>2]|0)*7|0)+(c[a+60>>2]|0)|0)){break}r=r+1|0}}while(0);dy(a,102,r)|0;t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}}while(0);t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}function cN(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=100;o=100;if((l|0)>2){p=(m|0)>4}else{p=0}L8294:do{if(p){if((c[b+108>>2]|0)<2){break}q=1;r=i;while(1){if((r|0)<(j-((m|0)/2|0)|0)){s=(q|0)!=0}else{s=0}if(!s){break}if(((du(g,g+((l|0)/2|0)|0,r,r,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=0}r=r+1|0}if((q|0)==0){break}q=1;r=j-((m|0)/2|0)|0;while(1){if((r|0)<(j|0)){t=(q|0)!=0}else{t=0}if(!t){break}if(((du(g,g+((l|0)/3|0)|0,r,r,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=0}r=r+1|0}if((q|0)==0){break}if(((du(h,h,i,i,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){break}do{if((dv(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,i,j,c[a+68>>2]|0,k)|0)!=3){if((dv(h-((l|0)/3|0)|0,h-((l|0)/3|0)|0,i,j,c[a+68>>2]|0,k)|0)!=3){break L8294}else{break}}}while(0);r=dC(c[a+68>>2]|0,g+((l|0)/2|0)|0,j,m,k,0,1)|0;if((r|0)>(((m|0)/8|0)+1|0)){break}r=r+(dC(c[a+68>>2]|0,g+((l|0)/2|0)|0,j-r|0,m,k,1,1)|0)|0;if((r|0)>((m|0)/3|0|0)){break}r=j-r-((dC(c[a+68>>2]|0,g+((l|0)/2|0)|0,j-r|0,m,k,0,1)|0)/2|0)|0;if((r|0)<(i+((m*3|0|0)/8|0)|0)){break}if((r|0)<(i+((m|0)/2|0)|0)){o=(o*96|0|0)/100|0}do{if((dv(0,l-1|0,r-i|0,r-i|0,d,k)|0)!=2){if((dv(0,l-1|0,r-i+1|0,r-i+1|0,d,k)|0)!=2){break L8294}else{break}}}while(0);if((dv(0,l-1|0,(m|0)/4|0,(m|0)/4|0,d,k)|0)!=2){do{if((dv(0,l-1|0,((m|0)/4|0)+1|0,((m|0)/4|0)+1|0,d,k)|0)!=2){if((dv(0,l-1|0,((m|0)/4|0)-1|0,((m|0)/4|0)-1|0,d,k)|0)!=2){break L8294}else{break}}}while(0)}r=(m|0)/4|0;while(1){if((r|0)>=((m*3|0|0)/4|0|0)){break}if((dv(0,l-1|0,r,r,d,k)|0)==1){u=6102;break}r=r+1|0}if((r|0)==((m*3|0|0)/4|0|0)){break}v=dC(c[a+68>>2]|0,g,i+r|0,l,k,0,3)|0;if((v|0)>((dC(c[a+68>>2]|0,g,i+((m|0)/4|0)|0,l,k,0,3)|0)+((l|0)/32|0)|0)){do{if(((du(g,g,i,i,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){if(((du(g,g,j,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){break L8294}else{break}}}while(0)}v=dC(c[a+68>>2]|0,g,i+((m|0)/4|0)|0,l,k,0,3)|0;w=dC(c[a+68>>2]|0,g,i+((m|0)/2|0)|0,l,k,0,3)|0;q=dC(c[a+68>>2]|0,g,i+((m|0)/2|0)-((m|0)/8|0)|0,l,k,0,3)|0;if((q|0)>(w|0)){w=q}q=dC(c[a+68>>2]|0,g,i+((m|0)/2|0)-((m|0)/16|0)|0,l,k,0,3)|0;if((q|0)>(w|0)){w=q}x=dC(c[a+68>>2]|0,g,j-((m|0)/4|0)|0,l,k,0,3)|0;do{if((m|0)>16){if((x|0)>=(w|0)){break}if((v+x|0)>=(w<<1|0)){break}if((x+v|0)<((w<<1)-((l|0)/16|0)|0)){o=(o*98|0|0)/100|0}if((x+v|0)<((w<<1)-((l|0)/8|0)|0)){o=(o*96|0|0)/100|0}y=dC(c[a+68>>2]|0,g,i+1|0,l,k,0,3)|0;if((y|0)>=((dC(c[a+68>>2]|0,g,i+3|0,l,k,0,3)|0)+((l|0)/32|0)|0)){y=dC(c[a+68>>2]|0,g,i|0,l,k,0,3)|0;if((y|0)>((dC(c[a+68>>2]|0,g,i+3|0,l,k,0,3)|0)+((l|0)/32|0)|0)){y=dC(c[a+68>>2]|0,g,j|0,l,k,0,3)|0;do{if((y|0)>((dC(c[a+68>>2]|0,g,j-3|0,l,k,0,3)|0)+((l|0)/32|0)|0)){z=dC(c[a+68>>2]|0,g,j-1|0,l,k,0,3)|0;if((z|0)>((dC(c[a+68>>2]|0,g,j-3|0,l,k,0,3)|0)+((l|0)/32|0)|0)){break L8294}else{break}}}while(0)}}}}while(0);if((c[b+108>>2]|0)!=2){break}do{if((c[b+128>>2]|0)<(r-1|0)){if((c[b+156>>2]|0)>=(r-1|0)){break}break L8294}}while(0);do{if((c[b+136>>2]|0)>(r+1|0)){if((c[b+164>>2]|0)<=(r+1|0)){break}break L8294}}while(0);w=l;r=(m|0)/6|0;while(1){if((r|0)>=(m-((m|0)/8|0)|0)){break}q=dC(c[a+68>>2]|0,g,i+r|0,l,k,0,3)|0;if((q|0)>(w+((l|0)/9|0)|0)){u=6144;break}if((q|0)<(w|0)){w=q}r=r+1|0}if((r|0)<(m-((m|0)/8|0)|0)){break}w=l;r=1;while(1){if((r|0)>=((m|0)/4|0|0)){break}q=dC(d,l-1|0,m-r|0,l,k,0,4)|0;if((q|0)<(w|0)){w=q}else{if((q|0)>(w|0)){u=6156;break}}r=r+1|0}if((r|0)<((m|0)/4|0|0)){break}w=dC(d,0,(m|0)/2|0,l,k,0,3)|0;q=dC(d,0,((m|0)/2|0)-1|0,l,k,0,3)|0;if((q|0)>(w|0)){w=q}q=dC(d,0,((m|0)/2|0)+1|0,l,k,0,3)|0;if((q|0)>(w|0)){w=q}v=dC(d,0,(m|0)/8|0,l,k,0,3)|0;if((v+(dC(d,0,(m*7|0|0)/8|0,l,k,0,3)|0)|0)>((w<<1)+1|0)){break}if((e|0)==0){o=(o*99|0|0)/100|0;w=dC(d,0,(m|0)/4|0,l,k,0,3)|0;if((dC(d,0,(m|0)/2|0,l,k,0,3)|0)>(w+((l|0)/8|0)|0)){o=(o*97|0|0)/100|0}}do{if((e|0)==0){if((l|0)>10){if((m|0)>10){break}}o=(o*97|0|0)/100|0}}while(0);if((f|0)!=0){o=(o*99|0|0)/100|0}dy(a,66,o)|0}}while(0);n=100;o=100;if((l|0)>3){A=(m|0)>4}else{A=0}L8481:do{if(A){if((c[b+108>>2]|0)<1){break}r=i;while(1){if((r|0)>=(j|0)){break}if(((du(g,g+((l|0)/2|0)|0,r,r,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){u=6188;break}r=r+1|0}if((r|0)<(j-((m|0)/32|0)-1|0)){break}if(((du(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,j-((m|0)/3|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(h-((l|0)/2|0)|0,h,j-((m|0)/3|0)|0,j-((m|0)/3|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(h-((l|0)/3|0)|0,h,i,i+((m|0)/5|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){break}if(((du(h-((l<<2|0)/9|0)|0,h,i+((m|0)/5|0)|0,i+((m|0)/5|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){break}if((dv(g,h,i+((m|0)/4|0)|0,i+((m|0)/4|0)|0,c[a+68>>2]|0,k)|0)>1){L8511:do{if((dv(g,h,i+((m|0)/4|0)-1|0,i+((m|0)/4|0)-1|0,c[a+68>>2]|0,k)|0)>1){do{if((m|0)>=16){if((dv(g,h,i+((m|0)/5|0)|0,i+((m|0)/5|0)|0,c[a+68>>2]|0,k)|0)>1){break}break L8511}}while(0);break L8481}}while(0)}n=0;q=0;r=(m|0)/2|0;while(1){if((r|0)>=(m-((m|0)/8|0)|0)){break}if((dv(0,l-1|0,r,r,d,k)|0)==2){q=q+1|0}else{n=n+1|0}r=r+1|0}if((q|0)<(n<<1|0)){break}if((c[b+108>>2]|0)!=1){break}if((c[b+128>>2]|0)<((m|0)/4|0|0)){break}if(((aa((c[b+136>>2]|0)-(c[b+128>>2]|0)+1|0,(c[b+132>>2]|0)-(c[b+124>>2]|0)+1|0)|0)<<4|0)<(aa(l,m)|0)){o=(o*90|0|0)/100|0}if((dH(g,h,i+((m|0)/4|0)|0,j,c[a+68>>2]|0,k,0)|0)!=1){break}q=dC(d,l-1|0,m-1|0,l,k,0,4)|0;n=dC(d,l-1|0,m-1-((m|0)/8|0)|0,l,k,0,4)|0;if((n|0)>(q|0)){break}if((e|0)==0){o=(o*99|0|0)/100|0}if((f|0)!=0){o=(o*99|0|0)/100|0}dy(a,98,o)|0;if((o|0)<100){break}B=98;C=B;return C|0}}while(0);B=c[a+36>>2]|0;C=B;return C|0}function cO(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=100;o=100;if((l|0)>2){p=(m|0)>3}else{p=0}L8563:do{if(p){if((c[b+108>>2]|0)<1){break}if(((du(g,g+((l|0)/3|0)|0,i+((m|0)/2|0)|0,i+((m|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(h-((l|0)/3|0)|0,h,i+((m|0)/2|0)|0,i+((m|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(h,h,i,i+((m|0)/16|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){break}if(((du(h-((l|0)/2|0)|0,h,i+((m|0)/4|0)|0,i+((m|0)/4|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}do{if((dv(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,i,j,c[a+68>>2]|0,k)|0)!=2){if((dv(h-((l|0)/3|0)|0,h-((l|0)/3|0)|0,i,j,c[a+68>>2]|0,k)|0)!=2){break L8563}else{break}}}while(0);if((dv(g,h,i+((m|0)/3|0)|0,i+((m|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=2){break}if((dv(g,h,j-((m|0)/3|0)|0,j-((m|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=2){break}if((c[b+108>>2]|0)!=1){break}if((c[b+128>>2]|0)>((m|0)/3|0|0)){break}if((c[b+136>>2]|0)<(m-1-((m|0)/3|0)|0)){break}q=0;r=(c[d+8>>2]|0)-1-((m|0)/8|0)|0;while(1){if((r|0)<((m|0)/5|0|0)){break}s=dC(d,0,r,h-g|0,k,0,3)|0;if((s+2+((l|0)/16|0)|0)<=(q|0)){t=6269;break}if((s|0)>(q|0)){q=s}r=r-1|0}if((r|0)>=((m|0)/5|0|0)){break}q=l;r=0;while(1){if((r|0)>=((m|0)/3|0|0)){break}s=dC(d,(c[d+4>>2]|0)-1|0,r,h-g|0,k,0,4)|0;if((s|0)>(q+((l|0)/16|0)|0)){t=6279;break}if((s|0)<(q|0)){q=s}r=r+1|0}if((r|0)<((m|0)/3|0|0)){break}q=l;r=(c[d+8>>2]|0)-1|0;while(1){if((r|0)<=((m<<1|0)/3|0|0)){break}s=dC(d,(c[d+4>>2]|0)-1|0,r,h-g|0,k,0,4)|0;if((s|0)>(q+((l|0)/16|0)|0)){t=6289;break}if((s|0)<(q|0)){q=s}r=r-1|0}if((r|0)>((m<<1|0)/3|0|0)){break}u=dC(d,l-1|0,m-1|0,l,k,0,4)|0;if((u|0)<=(dC(d,l-1|0,m-2-((m|0)/16|0)|0,l,k,0,4)|0)){break}r=(dC(d,(l|0)/2|0,m-1|0,m,k,0,1)|0)-1|0;if((m|0)>16){r=(r|0)/2|0}do{if((r|0)>=((m|0)/16|0|0)){r=r-((m|0)/16|0)|0;if(((du((l|0)/2|0,l-1|0,m-1-r|0,m-1-r|0,d,k,1)|0)<<24>>24|0)==1){break L8563}else{break}}}while(0);u=dC(d,0,m-1|0,m,k,0,1)|0;v=dC(d,((l|0)/16|0)+1|0,m-1|0,m,k,0,1)|0;do{if((u|0)<((m|0)/2|0|0)){if((u|0)<=((m|0)/16|0|0)){break}if((u|0)<=(v|0)){break}break L8563}}while(0);if((dC(d,0,m-1-((m|0)/16|0)|0,l,k,0,3)|0)>((l|0)/16|0|0)){o=(o*99|0|0)/100|0}v=dC(d,0,m-1-((m|0)/16|0)|0,l,k,0,3)|0;if((v|0)>=(dC(d,l-1|0,m-1-((m|0)/16|0)|0,l,k,0,4)|0)){o=(o*97|0|0)/100|0}v=dC(d,(l|0)/2|0,0,m,k,0,2)|0;if((v-(dC(d,(l|0)/2|0,m-1|0,m,k,0,1)|0)|0)>((m|0)/8|0|0)){o=(o*97|0|0)/100|0}do{if((dC(d,0,0,l,k,0,3)|0)>=((l|0)/2|0|0)){if((dC(d,l-1|0,m-1|0,l,k,0,4)|0)<((l|0)/2|0|0)){break}if((dC(d,0,(m|0)/2|0,l,k,0,3)|0)>=2){break}o=(o*96|0|0)/100|0}}while(0);if((c[a+24>>2]|0)!=0){o=(o*94|0|0)/100|0}if((f|0)!=0){o=(o*99|0|0)/100|0}if((e|0)==0){o=(o*99|0|0)/100|0}dy(a,68,o)|0}}while(0);n=100;if((l|0)>2){w=(m|0)>3}else{w=0}if(!w){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}o=100;if((c[b+108>>2]|0)<1){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}if(((du(g,g+((l|0)/2|0)|0,j-((m|0)/6|0)|0,j-((m|0)/9|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}if(((du(g,g+((l|0)/2|0)|0,j-((m|0)/3|0)|0,j-((m|0)/3|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}if(((du(g+((l|0)/2|0)|0,h,j-((m|0)/3|0)|0,j-((m|0)/3|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}if(((du(h-((l|0)/4|0)|0,h,i+((m|0)/8|0)|0,i+((m|0)/8|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}if(((du(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,j-((m|0)/4|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}do{if((m|0)>19){if(((du(g,g+((l|0)/4|0)|0,i,i+((m|0)/5|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}x=a;y=x+36|0;z=c[y>>2]|0;return z|0}}while(0);if(((du(g,g+((l|0)/4|0)|0,i,i+((m|0)/6|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}if(((du(g,g+((l|0)/4|0)|0,j-((m|0)/8|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}if(((du(g+((l|0)/2|0)-1|0,g+((l|0)/2|0)|0,j-((m|0)/8|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}j=dC(d,(c[d+4>>2]|0)-1|0,(c[d+8>>2]|0)/4|0,h-g|0,k,0,4)|0;if((j|0)>((dC(d,(c[d+4>>2]|0)-1|0,((c[d+8>>2]|0)*3|0|0)/4|0,h-g|0,k,0,4)|0)+1|0)){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}s=((l|0)/8|0)+1|0;q=0;while(1){if((q|0)<(l|0)){A=(s|0)!=0}else{A=0}if(!A){break}if((dv(q,q,0,m-1|0,d,k)|0)==2){s=s-1|0}q=q+1|0}if((s|0)>1){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}if((s|0)==1){o=(o*99|0|0)/100|0}s=((m|0)/6|0)+1|0;r=(m|0)/4|0;while(1){if((r|0)<(m|0)){B=(s|0)!=0}else{B=0}if(!B){break}if((dv(0,l-1|0,r,r,d,k)|0)==2){s=s-1|0}if((dv(0,l-1|0,r,r,d,k)|0)>3){s=s+1|0}r=r+1|0}if((s|0)!=0){o=(o*98|0|0)/100|0}s=((m|0)/8|0)+1|0;r=0;while(1){if((r|0)<((m|0)/2|0|0)){C=(s|0)!=0}else{C=0}if(!C){break}if((dv(0,l-1|0,r,r,d,k)|0)==1){if((dv((l|0)/2|0,l-1|0,r,r,d,k)|0)==1){s=s-1|0}}r=r+1|0}if((s|0)!=0){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}if((c[b+108>>2]|0)<1){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}do{if((c[b+108>>2]|0)>1){if((l|0)>=6){o=(o*95|0|0)/100|0;break}x=a;y=x+36|0;z=c[y>>2]|0;return z|0}}while(0);if((c[b+128>>2]|0)<((m|0)/4|0|0)){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}if((m-(c[b+136>>2]|0)|0)>(((m|0)/4|0)+1|0)){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}do{if((dv(0,l-1|0,m-1-((m|0)/4|0)|0,m-1-((m|0)/4|0)|0,d,k)|0)!=2){if((m|0)>15){x=a;y=x+36|0;z=c[y>>2]|0;return z|0}else{o=(o*96|0|0)/100|0;break}}}while(0);if((e|0)==0){o=(o*98|0|0)/100|0}if((f|0)!=0){o=(o*99|0|0)/100|0}dy(a,100,o)|0;x=a;y=x+36|0;z=c[y>>2]|0;return z|0}function cP(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+8>>2]|0;i=c[a+12>>2]|0;j=c[b+8>>2]|0;k=(c[a+4>>2]|0)-g+1|0;l=i-h+1|0;m=100;if((k|0)>2){n=(l|0)>4}else{n=0}if(!n){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}if((c[b+108>>2]|0)>1){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}if(((du(g+((k|0)/2|0)|0,g+((k|0)/2|0)|0,h,h+((l|0)/8|0)|0,c[a+68>>2]|0,j,1)|0)<<24>>24|0)!=1){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}if(((du(g,g+((k|0)/4|0)|0,i-((l|0)/4|0)|0,i-((l|0)/4|0)|0,c[a+68>>2]|0,j,1)|0)<<24>>24|0)!=1){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}if(((du(g,g+((k|0)/2|0)|0,h+((l|0)/4|0)|0,h+((l|0)/4|0)|0,c[a+68>>2]|0,j,1)|0)<<24>>24|0)!=1){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}h=0;g=0;while(1){if((g|0)>=((l|0)/4|0|0)){break}r=dC(d,k-1|0,l-1-g|0,k,j,0,4)|0;if((r|0)<3){s=6446;break}if((r*3|0|0)<(k|0)){s=6446;break}if((r|0)>(h|0)){h=r}g=g+1|0}do{if((g|0)>=((l|0)/4|0|0)){if((h|0)<((k|0)/2|0|0)){break}i=1;g=0;while(1){if((g|0)<((l|0)/4|0|0)){t=(i|0)!=0}else{t=0}if(!t){break}r=dC(d,0,g,k,j,0,3)|0;r=dC(d,r,g,k,j,1,3)|0;if((r|0)>((k|0)/2|0|0)){i=0}g=g+1|0}if((i|0)!=0){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}h=dC(d,0,l-1-((l|0)/4|0)|0,k,j,0,3)|0;h=dC(d,h,l-1-((l|0)/4|0)|0,k,j,1,3)|0;i=1;g=(l|0)/3|0;while(1){if((g|0)<(l-1-((l|0)/3|0)|0)){u=(i|0)!=0}else{u=0}if(!u){break}r=dC(d,0,g,k,j,0,3)|0;r=dC(d,r,g,k,j,1,3)|0;do{if((r|0)>((k|0)/3|0|0)){if((r|0)>(h<<1|0)){if((k|0)<=8){s=6471}}else{s=6471}if((s|0)==6471){s=0;if((r|0)<=(h+1|0)){break}}i=0}}while(0);g=g+1|0}if((i|0)!=0){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}g=(l|0)/8|0;if((g|0)<1){g=1}i=1;while(1){if((g|0)>=(l-1-((l|0)/2|0)|0)){break}h=dC(d,k-1|0,g,k,j,0,4)|0;if((h|0)>=2){r=dC(d,k-h|0,g,(l|0)/4|0,j,0,1)|0;h=h+(dC(d,k-h|0,g-r+1|0,k,j,0,4)|0)|0;if((h|0)>=((k|0)/3|0|0)){s=6484;break}}g=g+1|0}if((s|0)==6484){i=0}if((i|0)!=0){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}i=1;g=1;while(1){if((g|0)<=((l|0)/2|0|0)){v=(i|0)!=0}else{v=0}if(!v){break}if(((du(0,(k|0)/2|0,g,g,d,j,1)|0)<<24>>24|0)!=1){i=0}g=g+1|0}if((i|0)==0){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}i=1;g=(l|0)/2|0;while(1){if((g|0)<(l|0)){w=(i|0)!=0}else{w=0}if(!w){break}if(((du(0,(k|0)/3|0,g,g,d,j,1)|0)<<24>>24|0)!=1){i=0}g=g+1|0}if((i|0)==0){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}i=dC(d,k-1|0,l-1|0,k,j,0,4)|0;L8947:do{if((i|0)<=((k|0)/3|0|0)){do{if((dC(d,k-1|0,(l+4|0)/8|0,k,j,0,4)|0)<=((k|0)/8|0|0)){if((dC(d,0,l-3|0,k,j,0,3)|0)<1){break}m=(m*99|0|0)/100|0;break L8947}}while(0);o=a;p=o+36|0;q=c[p>>2]|0;return q|0}}while(0);if(((du(k-1-((k|0)/4|0)|0,k-1|0,l-1-((l|0)/4|0)|0,l-1|0,d,j,1)|0)<<24>>24|0)==1){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}if(((du(k-1|0,k-1|0,0,(l|0)/3|0,d,j,1)|0)<<24>>24|0)!=1){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}n=dC(d,0,(c[d+8>>2]|0)/4|0,k,j,0,3)|0;if((n|0)<((dC(d,0,((c[d+8>>2]|0)*3|0|0)/4|0,k,j,0,3)|0)-1|0)){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}if((c[b+108>>2]|0)>0){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}i=0;h=(k|0)/4|0;while(1){if((h|0)>=(k-1|0)){break}if((dv(h,h,0,l-2|0,d,j)|0)==2){i=i+1|0}h=h+1|0}if((i|0)<1){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}if((l|0)<20){do{if(((du(1,1,1,1,d,j,1)|0)<<24>>24|0)==1){if(((du(0,0,2,2,d,j,1)|0)<<24>>24|0)!=1){break}if(((du(k-2|0,k-1|0,0,0,d,j,1)|0)<<24>>24|0)!=0){break}if(((du(0,1,0,0,d,j,1)|0)<<24>>24|0)!=0){break}if(((du(0,0,0,1,d,j,1)|0)<<24>>24|0)!=0){break}o=a;p=o+36|0;q=c[p>>2]|0;return q|0}}while(0)}i=(dC(d,0,((c[d+8>>2]|0)*3|0|0)/4|0,k,j,0,3)|0)-1|0;do{if((i|0)>=0){if((dC(d,l-1|0,i,l,j,0,1)|0)>((l*3|0|0)/4|0|0)){break}m=(m*98|0|0)/100|0}}while(0);i=dC(d,(c[d+4>>2]|0)-1|0,(c[d+8>>2]|0)/4|0,k,j,0,4)|0;if((i|0)<1){r=i+(dC(d,(c[d+4>>2]|0)-1-i|0,(c[d+8>>2]|0)/4|0,k,j,1,4)|0)|0;r=dC(d,(c[d+4>>2]|0)-1-r|0,(c[d+8>>2]|0)/4|0,(l*3|0|0)/4|0,j,0,2)|0;if((r|0)<=((l|0)/2|0|0)){i=dC(d,(c[d+4>>2]|0)-1|0,0,k,j,0,4)|0;m=(m*98|0|0)/100|0;if((i|0)>((k|0)/8|0|0)){o=a;p=o+36|0;q=c[p>>2]|0;return q|0}if((i|0)!=0){m=(m*98|0|0)/100|0}}}if((e|0)==0){if(((c[a+56>>2]|0)-(c[a+8>>2]|0)<<3|0)>=(l|0)){if((dv((k<<1|0)/3|0,(k<<1|0)/3|0,0,l-1|0,d,j)|0)<2){m=(m*90|0|0)/100|0}}}if((f|0)!=0){m=(m*99|0|0)/100|0}dy(a,70,m)|0;o=a;p=o+36|0;q=c[p>>2]|0;return q|0}}while(0);o=a;p=o+36|0;q=c[p>>2]|0;return q|0}function cQ(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=57344;o=100;if((l|0)>2){p=(m|0)>3}else{p=0}if(!p){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((c[b+108>>2]|0)>1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}b=i+((m|0)/4|0)|0;while(1){if((b|0)>=(j-((m|0)/4|0)|0)){break}if((dv(g,h,b,b,c[a+68>>2]|0,k)|0)<2){t=6588;break}b=b+1|0}if((b|0)<(j-((m|0)/4|0)|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du((l|0)/2|0,(l|0)/2|0,(m|0)/2|0,m-1|0,d,k,1)|0)<<24>>24|0)==0){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du((l|0)/2|0,l-1|0,(m|0)/2|0,(m|0)/2|0,d,k,1)|0)<<24>>24|0)==0){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}p=0;u=(l*3|0|0)/8|0;while(1){if((u|0)>=(l-((l|0)/4|0)|0)){break}b=dC(d,u,0,m,k,0,2)|0;if((b|0)>(p|0)){p=b}if((b|0)<(p|0)){if((p|0)>1){t=6603;break}}u=u+1|0}if((p|0)<((m|0)/4|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}u=u-1|0;if(((du(0,u,p-1|0,p-1|0,d,k,1)|0)<<24>>24|0)==0){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(u,l-1|0,p-1|0,p-1|0,d,k,1)|0)<<24>>24|0)==0){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}p=((m|0)/8|0)+2|0;b=(m|0)/8|0;while(1){if((b|0)<(m-((m+2|0)/4|0)|0)){v=(p|0)!=0}else{v=0}if(!v){break}if((b|0)>((m|0)/2|0|0)){w=(l|0)/8|0}else{w=0}x=dv(0,((l|0)/2|0)-w|0,b,b,d,k)|0;do{if((b|0)<((m|0)/2|0|0)){if((dv((l|0)/2|0,l-1|0,b,b,d,k)|0)<=1){break}p=p-1|0}}while(0);do{if((b|0)<((m|0)/2|0|0)){if((x|0)>=1){break}if((x|0)<=2){break}p=p-1|0;o=(o*90|0|0)/100|0}}while(0);do{if((b|0)>((m|0)/2|0|0)){if((x|0)==1){break}p=p-1|0;o=(o*95|0|0)/100|0}}while(0);b=b+1|0}if((p|0)==0){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}p=((m|0)/16|0)+1|0;b=(m|0)/8|0;while(1){if((b|0)<(m-((m|0)/4|0)|0)){y=(p|0)!=0}else{y=0}if(!y){break}x=dv(l-((l|0)/2|0)|0,l-1|0,b,b,d,k)|0;do{if((b|0)>((m|0)/2|0|0)){if((x|0)>=1){break}if((x|0)<=2){break}p=p-1|0}}while(0);do{if((b|0)<((m|0)/2|0|0)){if((x|0)==1){break}p=p-1|0}}while(0);b=b+1|0}if((p|0)==0){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}p=1;u=g+((l|0)/3|0)|0;while(1){if((u|0)<=(h-((l|0)/3|0)|0)){z=(p|0)!=0}else{z=0}if(!z){break}if(((du(u,u,i,i+((m|0)/3|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){p=0}u=u+1|0}if((p|0)!=0){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}p=((l|0)/4|0)+1|0;u=g+((l|0)/3|0)|0;while(1){if((u|0)<=(h-((l|0)/3|0)|0)){A=(p|0)!=0}else{A=0}if(!A){break}if(((du(u,u,i+((m|0)/3|0)|0,j-((m|0)/3|0)|0,c[a+68>>2]|0,k,3)|0)<<24>>24|0)!=2){p=p-1|0}u=u+1|0}if((p|0)==0){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}p=1;u=g+((l|0)/3|0)|0;while(1){if((u|0)<=(h-((l|0)/3|0)|0)){B=(p|0)!=0}else{B=0}if(!B){break}if(((du(u,u,j-((m|0)/2|0)|0,j,c[a+68>>2]|0,k,3)|0)<<24>>24|0)==2){p=0}if(((du(u,u,j-((m|0)/3|0)|0,j,c[a+68>>2]|0,k,3)|0)<<24>>24|0)==2){o=(o*98|0|0)/100|0}u=u+1|0}if((p|0)==0){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}do{if((dv(0,(l|0)/2|0,(m|0)/4|0,(m|0)/4|0,d,k)|0)==2){if((dv(l-((l|0)/2|0)|0,l-1|0,m-((m|0)/4|0)|0,m-((m|0)/4|0)|0,d,k)|0)!=1){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);p=dC(d,0,m-1-((m|0)/16|0)|0,l,k,0,3)|0;x=dC(d,0,m-1-((m|0)/8|0)|0,l,k,0,3)|0;if((p|0)<(x|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}do{if((m|0)>15){u=dC(d,l-1|0,(m|0)/16|0,l,k,0,4)|0;if((u|0)<=((dC(d,l-1|0,(m|0)/8|0,l,k,0,4)|0)+1+((l|0)/32|0)|0)){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);do{if((e|0)!=0){if((m|0)<=7){break}do{if((dC(d,0,m-1|0,l,k,1,3)|0)==(l|0)){if((dC(d,l-1|0,(m*3|0|0)/4|0,l,k,0,4)|0)<=((l|0)/16|0|0)){break}if((dC(d,0,(m*3|0|0)/4|0,l,k,0,3)|0)<=((l|0)/16|0|0)){break}if((dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0)<=((l|0)/16|0|0)){break}if((dC(d,0,(m|0)/2|0,l,k,0,3)|0)<=((l|0)/16|0|0)){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0)}}while(0);p=dC(d,0,m-1-((m|0)/8|0)|0,l,k,0,3)|0;x=dC(d,l-1|0,m-1-((m|0)/8|0)|0,l,k,0,4)|0;do{if((p|0)>((l|0)/4|0|0)){if((x|0)<=((l|0)/4|0|0)){break}if((p+x|0)<((l|0)/2|0|0)){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);if((p+x|0)>=((l|0)/2|0|0)){o=(o*97|0|0)/100|0}if((dv(0,l-1|0,(m|0)/2|0,(m|0)/2|0,d,k)|0)!=2){o=(o*96|0|0)/100|0}if((dC(d,(l|0)/2|0,m-1|0,m,k,0,1)|0)>0){o=(o*98|0|0)/100|0}if((o|0)==100){o=99}n=117;if((f|0)!=0){o=(o*98|0|0)/100|0}if((e|0)!=0){n=85}if((c[a+24>>2]|0)>0){o=(o*99|0|0)/100|0}dy(a,n,o)|0;q=a;r=q+36|0;s=c[r>>2]|0;return s|0}function cR(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[a>>2]|0;f=c[a+4>>2]|0;g=c[a+8>>2]|0;h=c[a+12>>2]|0;i=c[b+8>>2]|0;j=f-e+1|0;k=h-g+1|0;if((c[b+40>>2]|0)==0){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}if((c[b+36>>2]|0)!=0){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}o=100;if((j|0)>2){p=(k|0)>4}else{p=0}L9248:do{if(p){if((c[b+108>>2]|0)>1){break}q=g+((k|0)/8|0)|0;while(1){if((q|0)>=((c[a+60>>2]|0)-((k|0)/4|0)|0)){break}if((dv(e,f,q,q,c[a+68>>2]|0,i)|0)<2){r=6748;break}q=q+1|0}if((q|0)<((c[a+60>>2]|0)-((k|0)/4|0)|0)){break}if(((du((j|0)/2|0,(j|0)/2|0,(k*3|0|0)/8|0,(k*7|0|0)/8|0,d,i,1)|0)<<24>>24|0)==0){break}if(((du((j|0)/2|0,j-1|0,(k*3|0|0)/8|0,(k*7|0|0)/8|0,d,i,1)|0)<<24>>24|0)==0){break}q=(k|0)/2|0;while(1){if((q|0)>=(k|0)){break}s=dC(d,j-1|0,q,j,i,0,4)|0;if((s<<3|0)>(j*5|0|0)){r=6760;break}q=q+1|0}do{if((q|0)<(k|0)){if((q<<1|0)>((c[a+60>>2]|0)+(c[a+64>>2]|0)|0)){break}t=0;s=(j<<1|0)/8|0;while(1){if((s|0)>=(j-1-((j|0)/4|0)|0)){break}q=dC(d,s,0,k,i,0,2)|0;if((q|0)>(t|0)){t=q}if((q|0)<(t|0)){if((t|0)>1){r=6772;break}}s=s+1|0}if((t|0)<((k|0)/4|0|0)){break L9248}s=s-1|0;if(((du(0,s,t-1|0,t-1|0,d,i,1)|0)<<24>>24|0)==0){break L9248}if(((du(s,j-1|0,t-1|0,t-1|0,d,i,1)|0)<<24>>24|0)==0){break L9248}t=((k|0)/16|0)+1|0;q=(k|0)/8|0;while(1){if((q|0)<(k-((c[a+64>>2]|0)-(c[a+60>>2]|0))-((k|0)/4|0)|0)){u=(t|0)!=0}else{u=0}if(!u){break}v=dv(0,(j|0)/2|0,q,q,d,i)|0;do{if((q|0)<((k|0)/2|0|0)){if((dv((j|0)/2|0,j-1|0,q,q,d,i)|0)<=1){break}t=t-1|0}}while(0);do{if((q|0)<((k|0)/2|0|0)){if((v|0)>=1){break}if((v|0)<=2){break}t=t-1|0}}while(0);do{if((q|0)>((k|0)/2|0|0)){if((v|0)==1){break}t=t-1|0}}while(0);q=q+1|0}if((t|0)==0){break L9248}t=((k|0)/16|0)+1|0;q=(k|0)/8|0;while(1){if((q|0)<(k-((c[a+64>>2]|0)-(c[a+60>>2]|0))-((k|0)/4|0)|0)){w=(t|0)!=0}else{w=0}if(!w){break}v=dv(j-((j|0)/2|0)|0,j-1|0,q,q,d,i)|0;do{if((q|0)>((k|0)/2|0|0)){if((v|0)>=1){break}if((v|0)<=2){break}t=t-1|0}}while(0);do{if((q|0)<((k|0)/2|0|0)){if((v|0)==1){break}t=t-1|0}}while(0);q=q+1|0}if((t|0)==0){break L9248}t=1;s=e+((j|0)/3|0)|0;while(1){if((s|0)<=(f-((j|0)/3|0)|0)){x=(t|0)!=0}else{x=0}if(!x){break}if(((du(s,s,g,g+((k|0)/4|0)|0,c[a+68>>2]|0,i,1)|0)<<24>>24|0)!=1){t=0}s=s+1|0}if((t|0)!=0){break L9248}t=((j|0)/4|0)+1|0;s=e+((j|0)/3|0)|0;while(1){if((s|0)<=(f-((j|0)/3|0)|0)){y=(t|0)!=0}else{y=0}if(!y){break}if(((du(s,s,g+((k|0)/4|0)|0,h-((k|0)/2|0)|0,c[a+68>>2]|0,i,3)|0)<<24>>24|0)!=2){t=t-1|0}s=s+1|0}if((t|0)==0){break L9248}if((dv(0,(j|0)/2|0,(k|0)/4|0,(k|0)/4|0,d,i)|0)!=1){break L9248}if((dv(j-((j|0)/2|0)|0,j-1|0,k-((k|0)/2|0)|0,k-((k|0)/2|0)|0,d,i)|0)!=1){break L9248}if(((du((j+2|0)/4|0,j-1|0,k-2-((k*3|0|0)/16|0)|0,k-1|0,d,i,1)|0)<<24>>24|0)==1){break L9248}if((dv(0,(j|0)/4|0,k-1|0,k-1|0,d,i)|0)!=1){break L9248}else{z=a;A=o;dy(z,181,A)|0;break L9248}}}while(0)}}while(0);l=a;m=l+36|0;n=c[m>>2]|0;return n|0}function cS(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=57344;o=100;if((l|0)>2){p=(m|0)>3}else{p=0}if(!p){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((c[b+108>>2]|0)>0){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}b=(dC(d,(l|0)/2|0,0,l,k,1,3)|0)+((l|0)/2|0)|0;p=(dC(d,b,0,(m+1|0)/2|0,k,0,2)|0)-1|0;do{if((b|0)<=((l*3|0|0)/4|0|0)){if((p|0)<((m|0)/4|0|0)){break}if(((du(g,g+b|0,i+p|0,i+p|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(g+b|0,h,i+p|0,i+p|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(g+b|0,g+b|0,j-((m|0)/2|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}do{if(((du(g+b|0,g+b|0,i,i+((m|0)/3|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){if(((du(g+b+1|0,g+b+1|0,i,i+((m|0)/3|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);do{if((dv(0,((l|0)/2|0)+1|0,(m|0)/8|0,(m|0)/8|0,d,k)|0)!=1){if((dv(0,((l|0)/2|0)+1|0,(m|0)/16|0,(m|0)/16|0,d,k)|0)==1){t=6870;break}if((dv(((l|0)/2|0)+1|0,l-1|0,(m|0)/8|0,(m|0)/8|0,d,k)|0)==1){t=6870}}else{t=6870}}while(0);do{if((t|0)==6870){if((dv(0,l-1|0,m-1-((m|0)/8|0)|0,m-1-((m|0)/8|0)|0,d,k)|0)>1){if((dv(0,l-1|0,m-1|0,m-1|0,d,k)|0)>1){break}}if(((du(0,(l|0)/8|0,m-1-((m|0)/6|0)|0,m-1|0,d,k,1)|0)<<24>>24|0)==1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(l-1-((l|0)/8|0)|0,l-1|0,m-1-((m|0)/6|0)|0,m-1|0,d,k,1)|0)<<24>>24|0)==1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}do{if((e|0)==0){u=dC(d,0,(m|0)/6|0,l,k,0,3)|0;if((u|0)<(dC(d,0,m-1-((m|0)/3|0)|0,l,k,0,3)|0)){break}if((m|0)<=6){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);do{if((e|0)!=0){u=dC(d,0,(m|0)/3|0,l,k,0,3)|0;if((u|0)<(dC(d,0,m-1-((m|0)/3|0)|0,l,k,0,3)|0)){break}u=dC(d,0,m-1-((m|0)/3|0)|0,l,k,0,3)|0;if((u|0)<(dC(d,0,m-1-((m|0)/3|0)+((m|0)/6|0)|0,l,k,0,3)|0)){break}if((m|0)<=6){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);u=dC(d,0,m-1-((m|0)/3|0)|0,l,k,0,3)|0;do{if((u|0)>(dC(d,0,m-1-((m|0)/8|0)|0,l,k,0,3)|0)){v=dC(d,l-1|0,m-1-((m|0)/3|0)|0,l,k,0,4)|0;if((v|0)<=(dC(d,l-1|0,m-1-((m|0)/8|0)|0,l,k,0,4)|0)){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);u=dC(d,0,m-1-((m|0)/3|0)|0,l,k,0,3)|0;do{if((u|0)>=(dC(d,0,m-1-((m|0)/8|0)|0,l,k,0,3)|0)){v=dC(d,l-1|0,m-1-((m|0)/3|0)|0,l,k,0,4)|0;if((v|0)<(dC(d,l-1|0,m-1-((m|0)/8|0)|0,l,k,0,4)|0)){break}o=(o*99|0|0)/100|0}}while(0);do{if((e|0)==0){u=dC(d,l-1|0,(m|0)/6|0,l,k,0,4)|0;if((u|0)<(dC(d,l-1|0,m-1-((m|0)/3|0)|0,l,k,0,4)|0)){break}if((m|0)<=6){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);b=dC(d,0,m-1|0,l,k,0,3)|0;b=dC(d,b,m-1|0,l,k,1,3)|0;do{if((l|0)>14){if((b<<1|0)<=(l|0)){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);do{if((dv(0,(l|0)/2|0,(m|0)/4|0,(m|0)/4|0,d,k)|0)==2){if((dv(l-((l|0)/2|0)|0,l-1|0,m-((m|0)/4|0)|0,m-((m|0)/4|0)|0,d,k)|0)!=2){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);u=dC(d,0,0,l,k,0,3)|0;u=dC(d,u,0,l,k,1,3)|0;v=u;u=dC(d,0,1,l,k,0,3)|0;u=dC(d,u,1,l,k,1,3)|0;if((u|0)>(v|0)){v=u}u=dC(d,0,(m|0)/4|0,l,k,0,3)|0;u=dC(d,u,(m|0)/4|0,l,k,1,3)|0;w=u;u=dC(d,0,m,l,k,0,3)|0;u=dC(d,u,m,l,k,1,3)|0;x=u;u=dC(d,0,m-1|0,l,k,0,3)|0;u=dC(d,u,m-1|0,l,k,1,3)|0;if((u|0)>(x|0)){x=u}if((i|0)<(c[a+56>>2]|0)){do{if((v-w|0)>(((l|0)/32|0)+2|0)){if((x-w|0)<=(((l|0)/32|0)+2|0)){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0)}if((i|0)<(c[a+56>>2]|0)){if((v-w|0)<(((l|0)/32|0)+2|0)){if((dv(0,l-1|0,m-1-((m|0)/4|0)|0,m-1-((m|0)/4|0)|0,d,k)|0)==1){x=dC(d,0,m-1-((m|0)/4|0)|0,l,k,0,3)|0;x=dC(d,x,m-1-((m|0)/4|0)|0,l,k,1,3)|0;if((x|0)<(w+1|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((x|0)<=(w+1|0)){o=(o*99|0|0)/100|0}}}}o=(o*99|0|0)/100|0;x=dC(d,0,m-1-((m|0)/4|0)|0,l,k,0,3)|0;if((x|0)>(dC(d,0,m-1|0,l,k,0,3)|0)){o=(o*96|0|0)/100|0}do{if((dv(0,l-1|0,(m|0)/2|0,(m|0)/2|0,d,k)|0)==1){if((dv(0,l-1|0,(m*3|0|0)/4|0,(m*3|0|0)/4|0,d,k)|0)<=1){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);if((f|0)!=0){o=(o*99|0|0)/100|0}n=118;if((e|0)!=0){n=86}w=a;v=n;x=o;dy(w,v,x)|0;q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);q=a;r=q+36|0;s=c[r>>2]|0;return s|0}function cT(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=b+44|0;o=100;p=100;if((m|0)>3){q=(l|0)>1}else{q=0}L9532:do{if(q){do{if((c[b+108>>2]|0)>0){if((c[b+136>>2]|0)<=((m|0)/2|0|0)){if((c[b+132>>2]|0)<=((l|0)/2|0|0)){break}}break L9532}}while(0);if((m<<1|0)<((c[a+60>>2]|0)-(c[a+52>>2]|0)|0)){break}if((dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0)<=((l|0)/8|0|0)){break}r=dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0;if((r|0)<=((l|0)/2|0|0)){p=(p*99|0|0)/100|0}if((dC(d,l-1-((r|0)/2|0)|0,0,m,k,0,2)|0)>((m|0)/8|0|0)){p=(p*99|0|0)/100|0}do{if((l|0)>4){if((dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0)<=(((l|0)/8|0)+2|0)){break L9532}else{break}}}while(0);s=m-((m+20|0)/32|0)|0;t=(m<<2|0)/8|0;while(1){if((t|0)>=(s|0)){break}if((t|0)<(m-((m<<1|0)/8|0)|0)){if((dv(0,l-1|0,t,t,d,k)|0)!=1){u=6976;break}}v=dC(d,0,t,l,k,0,3)|0;if((v|0)>((l*3|0|0)/8|0|0)){u=6978;break}w=dC(d,l-1|0,t,l,k,0,4)|0;if((v|0)>(w|0)){u=6980;break}if(((v+(l-w-1)|0)/2|0|0)>=((l<<2|0)/8|0|0)){u=6982;break}t=t+1|0}if((t|0)<(s|0)){break}r=(l<<2|0)/8|0;while(1){if((r|0)>=(l-((l|0)/8|0)|0)){break}if(((du(r,r,0,(m+2|0)/4|0,d,k,1)|0)<<24>>24|0)!=1){u=6990;break}r=r+1|0}if((r|0)<(l-((l|0)/8|0)|0)){break}do{if((dC(d,l-1|0,m-1-((m|0)/4|0)|0,l,k,0,4)|0)>((l*5|0|0)/8|0|0)){if(((du(l-1-((l|0)/8|0)|0,l-1|0,m-1-((m|0)/4|0)|0,m-1|0,d,k,1)|0)<<24>>24|0)!=1){break}break L9532}}while(0);do{if((dC(d,0,(m*5|0|0)/8|0,l,k,0,3)|0)<=((l|0)/8|0|0)){if((dC(d,l-1|0,(m*5|0|0)/8|0,l,k,0,4)|0)<((m*5|0|0)/8|0|0)){break}if((dC(d,(l|0)/2|0,m-1|0,m,k,0,1)|0)>((m|0)/8|0|0)){break}break L9532}}while(0);x=dC(d,0,(m*3|0|0)/8|0,l,k,0,3)|0;do{if((x|0)>((dC(d,l-1|0,(m*3|0|0)/8|0,l,k,0,4)|0)+((l|0)/8|0)|0)){if((dC(d,0,(m|0)/8|0,l,k,0,3)|0)<((l|0)/8|0|0)){break L9532}else{p=(p*98|0|0)/100|0;break}}}while(0);if((dC(d,0,(m|0)/3|0,l,k,0,3)|0)>((l*3|0|0)/4|0|0)){break}do{if((dC(d,0,(m|0)/4|0,l,k,0,3)|0)>((l*3|0|0)/8|0|0)){if(((du(0,(l|0)/8|0,0,(m|0)/4|0,d,k,1)|0)<<24>>24|0)!=1){break}break L9532}}while(0);do{if((dv(0,l-1|0,(m|0)/2|0,(m|0)/2|0,d,k)|0)!=1){if((dv(0,l-1|0,((m|0)/2|0)+1|0,((m|0)/2|0)+1|0,d,k)|0)==1){break}break L9532}}while(0);t=(m*3|0|0)/4|0;while(1){if((t|0)>=(m-1|0)){break}if((dv(0,l-1|0,t,t,d,k)|0)==2){if((dv(0,l-1|0,t+1+((m|0)/32|0)|0,t+1+((m|0)/32|0)|0,d,k)|0)==2){u=7018;break}}t=t+1|0}if((t|0)<(m-1|0)){break}if((dC(d,l-1-((l|0)/4|0)|0,m-1|0,l,k,0,1)|0)<((m|0)/4|0|0)){p=(p*98|0|0)/100|0}if((dv(l-1|0,l-1|0,0,(m*3|0|0)/4|0,d,k)|0)>1){p=(p*95|0|0)/100|0}do{if((dv((l|0)/2|0,(l|0)/2|0,0,m-1|0,d,k)|0)>2){if((dv(((l|0)/2|0)+1|0,((l|0)/2|0)+1|0,0,m-1|0,d,k)|0)<=2){break}break L9532}}while(0);v=cI(a,c[n+60>>2]|0,c[n+12>>2]|0,g+((l|0)/3|0)|0,i+((m|0)/4|0)|0)|0;do{if((c[a+56>>2]|0)!=0){if((c[a+8>>2]<<1|0)>((c[a+52>>2]|0)+(c[a+56>>2]|0)|0)){break}if(((c[a+12>>2]|0)*3|0|0)>((c[a+56>>2]|0)+(c[a+60>>2]<<1)|0)){break}if(((c[a+296+(v<<3)+4>>2]|0)-i|0)!=0){break}p=(p*97|0|0)/100|0}}while(0);if((c[a+24>>2]|0)!=0){p=(p*98|0|0)/100|0}if((e|0)!=0){p=(p*96|0|0)/100|0}if((f|0)!=0){p=(p*97|0|0)/100|0}dy(a,114,p)|0}}while(0);o=100;p=100;if((l|0)>2){y=(m|0)>3}else{y=0}if(!y){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}if((c[b+108>>2]|0)>2){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}if((dv(g,h,j-((m|0)/8|0)|0,j-((m|0)/8|0)|0,c[a+68>>2]|0,k)|0)<2){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}if((dC(d,(l|0)/2|0,(m|0)/4|0,m,k,0,2)|0)>((m|0)/2|0|0)){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}do{if((dC(d,(l|0)/2|0,0,m,k,0,2)|0)>((m|0)/8|0|0)){if((dC(d,(l|0)/2|0,(m|0)/16|0,l,k,0,3)|0)>=((l|0)/2|0|0)){break}if((m|0)<16){break}z=a;A=z+36|0;B=c[A>>2]|0;return B|0}}while(0);s=1;t=i+((m|0)/8|0)|0;while(1){if((t|0)<=(j-((m|0)/8|0)|0)){C=(s|0)!=0}else{C=0}if(!C){break}if(((du(g,g+((l|0)/2|0)|0,t,t,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){s=0}t=t+1|0}if((s|0)==0){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}s=1;r=g+((l*3|0|0)/8|0)|0;while(1){if((r|0)<=(h-((l|0)/4|0)|0)){D=(s|0)!=0}else{D=0}if(!D){break}if(((du(r,r,i,i+((m|0)/4|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){s=0}r=r+1|0}if((s|0)==0){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}t=0;r=g+((l|0)/4|0)|0;while(1){if((r|0)>(h-((l|0)/4|0)|0)){break}s=dC(c[a+68>>2]|0,r,j,m,k,0,1)|0;if((s|0)>0){w=dC(c[a+68>>2]|0,r-1|0,j-s-1|0,m,k,0,1)|0;if((w|0)>1){s=s+(w-1)|0}}if((s|0)>(t|0)){t=s;v=r}r=r+1|0}if((t|0)<=((m|0)/8|0|0)){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}if((t|0)<((m|0)/4|0|0)){p=(p*80|0|0)/100|0}s=1;r=g+((l|0)/3|0)|0;while(1){if((r|0)<=(h-((l|0)/8|0)|0)){E=(s|0)!=0}else{E=0}if(!E){break}if((dv(r,r,i,j,c[a+68>>2]|0,k)|0)==2){s=0}r=r+1|0}if((s|0)!=0){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}s=1;t=i;while(1){if((t|0)<=(i+((m*3|0|0)/8|0)|0)){F=(s|0)!=0}else{F=0}if(!F){break}if((dv(g,h,t,t,c[a+68>>2]|0,k)|0)==2){s=0}t=t+1|0}if((s|0)!=0){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}s=1;t=i+((m|0)/3|0)|0;while(1){if((t|0)<=(j-((m|0)/3|0)|0)){G=(s|0)!=0}else{G=0}if(!G){break}if((dv(g,h,t,t,c[a+68>>2]|0,k)|0)==1){s=0}t=t+1|0}if((s|0)!=0){p=(p*95|0|0)/100|0}s=1;t=j-((m|0)/4|0)|0;while(1){if((t|0)<=(j|0)){H=(s|0)!=0}else{H=0}if(!H){break}if((dv(g,h,t,t,c[a+68>>2]|0,k)|0)==2){s=0}t=t+1|0}if((s|0)!=0){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}if(((du(h-((l|0)/3|0)|0,h,i,i+((m|0)/4|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}r=dC(d,l-1|0,(m|0)/4|0,l,k,0,4)|0;if((r|0)>((l|0)/2|0|0)){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}s=r;r=dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0;if((r|0)<=(s|0)){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}s=r;r=dC(d,l-1|0,(m*5|0|0)/8|0,l,k,0,4)|0;if((r|0)>(s|0)){s=r}r=dC(d,l-1|0,(m*6|0|0)/8|0,l,k,0,4)|0;if((r|0)>(s|0)){s=r}r=dC(d,l-1|0,m-1-((m|0)/8|0)|0,l,k,0,4)|0;if((r|0)>=(s|0)){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}v=dC(d,0,(m|0)/4|0,l,k,0,3)|0;w=dC(d,0,(m|0)/2|0,l,k,0,3)|0;if((P(v+(dC(d,0,m-1-((m|0)/4|0)|0,l,k,0,3)|0)-(w<<1)|0)|0)>(((l|0)/16|0)+1|0)){z=a;A=z+36|0;B=c[A>>2]|0;return B|0}if((m|0)>15){w=dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0;do{if((w|0)>=(dC(d,l-1|0,m-1|0,l,k,0,4)|0)){v=dC(d,l-1|0,(m*3|0|0)/16|0,l,k,0,4)|0;if((v|0)<((dC(d,l-1|0,(m|0)/16|0,l,k,0,4)|0)+((l|0)/8|0)|0)){break}z=a;A=z+36|0;B=c[A>>2]|0;return B|0}}while(0)}if((m|0)>7){w=dC(d,l-1|0,m-2|0,l,k,0,4)|0;if((w|0)>(dC(d,l-1|0,m-2-((m|0)/8|0)|0,l,k,0,4)|0)){p=(p*98|0|0)/100|0;do{if((dC(d,l-1|0,m-1-((m|0)/4|0)|0,l,k,0,4)|0)==0){if((dC(d,l-1|0,m-2-((m|0)/8|0)|0,l,k,0,4)|0)<=0){break}z=a;A=z+36|0;B=c[A>>2]|0;return B|0}}while(0)}}l=c[b+108>>2]|0;L9833:do{if((l|0)!=1){s=dH(g,h,i,j-((m|0)/3|0)|0,c[a+68>>2]|0,k,0)|0;if((s|0)==0){p=(p*90|0|0)/100|0}do{if((l|0)<=1){if((l|0)>(s|0)){break}break L9833}}while(0);z=a;A=z+36|0;B=c[A>>2]|0;return B|0}}while(0);if((c[b+108>>2]|0)<1){p=(p*90|0|0)/100|0}if((c[b+108>>2]|0)==1){if((c[b+136>>2]|0)>((m*3|0|0)/4|0|0)){p=(p*95|0|0)/100|0}}if((e|0)==0){p=(p*98|0|0)/100|0}if((f|0)!=0){p=(p*98|0|0)/100|0}dy(a,82,p)|0;z=a;A=z+36|0;B=c[A>>2]|0;return B|0}function cU(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=0;h=c[a+8>>2]|0;i=c[a+12>>2]|0;j=c[b+8>>2]|0;k=(c[a+4>>2]|0)-(c[a>>2]|0)+1|0;l=i-h+1|0;m=100;if((k|0)>4){n=(l|0)>3}else{n=0}L9865:do{if(n){if((c[b+108>>2]|0)>1){break}if((c[b+108>>2]|0)>0){m=(m*96|0|0)/100|0}o=dC(d,k-1|0,(l|0)/2|0,k,j,0,4)|0;if((o*3|0|0)>(k|0)){break}p=(l|0)/2|0;q=dv(0,k-1|0,p,p,d,j)|0;if((q|0)!=3){q=dv(0,k-1|0,p+1|0,p+1|0,d,j)|0}if((dv(0,k-1|0,(l|0)/2|0,(l|0)/2|0,d,j)|0)==1){break}do{if((q|0)<3){if((q|0)<=5){break}break L9865}}while(0);if((q|0)>3){m=(m*99|0|0)/100|0}do{if((q|0)>=5){o=dC(d,0,p,k,j,0,3)|0;if((o|0)>((k|0)/4|0|0)){break L9865}o=o+(dC(d,o,p,k-o|0,j,1,3)|0)|0;if((o|0)>((k|0)/2|0|0)){break L9865}r=o;o=o+(dC(d,o,p,k-o|0,j,0,3)|0)|0;if((o|0)>((k*3|0|0)/4|0|0)){break L9865}r=o-r|0;o=o+(dC(d,o,p,k-o|0,j,1,3)|0)|0;if((o|0)>((k*6|0|0)/8|0|0)){break L9865}s=o;o=o+(dC(d,o,p,k-o|0,j,0,3)|0)|0;s=o-s|0;if((r|0)>(s<<1|0)){break L9865}else{break}}}while(0);q=0;p=l-1-((l|0)/8|0)|0;while(1){if((p|0)<=((l|0)/2|0|0)){break}q=dv(0,k-1|0,p,p,d,j)|0;if((q|0)>2){t=7229;break}p=p-1|0}if((q|0)>3){break}while(1){if((p|0)<=((l|0)/2|0|0)){break}q=dv(0,k-1|0,p,p,d,j)|0;if((q|0)!=3){t=7237;break}p=p-1|0}if((q|0)>5){break}p=p+1|0;u=p;if((p|0)>((l|0)/2|0|0)){g=10}if((p|0)>((l*3|0|0)/4|0|0)){g=60}o=dC(d,0,p,k,j,0,3)|0;if((o|0)>((k|0)/4|0|0)){break}o=o+(dC(d,o,p,k-o|0,j,1,3)|0)|0;if((o|0)>((k|0)/2|0|0)){break}r=o;o=o+(dC(d,o,p,k-o|0,j,0,3)|0)|0;if((o|0)>((k*3|0|0)/4|0|0)){break}s=o;o=o+(dC(d,o,p,k-o|0,j,1,3)|0)|0;if((o|0)>((k*6|0|0)/8|0|0)){break}v=o;o=o+(dC(d,o,p,k-o|0,j,0,3)|0)|0;if((o|0)<((k*5|0|0)/8|0|0)){break}w=o;if((o|0)>=(k|0)){break}if((P(s-r-(w-v)|0)|0)>(((s-r+(w-v)|0)/4|0)+2|0)){break}if((P(s-r-(w-v)|0)|0)>(((s-r+(w-v)|0)/8|0)+2|0)){m=(m*98|0|0)/100|0}q=dC(d,0,(l*5|0|0)/8|0,k,j,0,3)|0;q=dC(d,q,(l*5|0|0)/8|0,k,j,1,3)|0;o=dC(d,0,l-((l|0)/32|0)-1|0,k,j,0,3)|0;o=dC(d,o,l-((l|0)/32|0)-1|0,k,j,1,3)|0;if((o|0)>(q+1|0)){q=1}else{q=0}p=0;o=r;while(1){if((o|0)>=(s|0)){break}q=dC(d,o,l-1|0,l,j,0,1)|0;if((q|0)>(p|0)){p=q}o=o+1|0}do{if((p|0)>=((l|0)/4|0|0)){if((p|0)<(i-h-u-1-((l|0)/16|0)|0)){break}p=0;o=v;while(1){if((o|0)>=(w|0)){break}q=dC(d,o,l-1|0,l,j,0,1)|0;if((q|0)>(p|0)){p=q}o=o+1|0}if((p|0)<((l|0)/4|0|0)){break L9865}o=r;while(1){if((o|0)>=(w|0)){break}if((dC(d,o,0,l,j,0,2)|0)>=((l|0)/2|0|0)){t=7285;break}o=o+1|0}do{if((o|0)<(w|0)){if((g|0)>=10){break}break L9865}}while(0);do{if((s-r|0)>(w-v+((k|0)/16|0)|0)){p=0;o=(r+s|0)/2|0;while(1){if((o|0)>=(s|0)){break}q=dC(d,o,0,l,j,0,2)|0;q=dC(d,o,q,l,j,1,2)|0;if((q|0)>(p|0)){p=q}if((q<<1|0)<(p|0)){t=7297;break}o=o+1|0}if((o|0)<(s|0)){break L9865}else{break}}}while(0);if((f|0)!=0){m=(m*99|0|0)/100|0}if((e|0)!=0){m=(m*99|0|0)/100|0}do{if((dC(d,k-1|0,(l|0)/16|0,k,j,0,4)|0)<2){if((dC(d,k-1|0,(l|0)/4|0,k,j,0,4)|0)<=3){break}break L9865}}while(0);o=dC(d,k-1|0,(l|0)/2|0,k,j,0,4)|0;do{if((o|0)>2){if((dC(d,k-1-((o|0)/2|0)|0,0,l,j,0,2)|0)>=((l|0)/2|0|0)){break}break L9865}}while(0);if((dC(d,(v+w|0)/2|0,0,l,j,0,2)|0)>((l|0)/2|0|0)){break L9865}x=dC(d,1,(l|0)/4|0,k,j,0,3)|0;if((x|0)>(dC(d,0,(l*7|0|0)/8|0,k,j,0,3)|0)){x=a;y=(m*98|0|0)/100|0;dy(x,109,y)|0}do{if((g|0)<10){o=dC(d,0,(l|0)/4|0,k,j,0,3)|0;o=o+(dC(d,o,(l|0)/4|0,k,j,1,3)|0)|0;while(1){if((o|0)>=(w|0)){break}q=dC(d,o,0,l,j,0,2)|0;if((q|0)>=((l|0)/4|0|0)){m=(m*99|0|0)/100|0}if((q|0)>((l+2|0)/4|0|0)){m=(m*95|0|0)/100|0}if((q*3|0|0)>(l|0)){t=7325;break}o=o+1|0}if((o|0)<(w|0)){break L9865}else{break}}}while(0);if((c[a+24>>2]|0)!=0){m=(m*99|0|0)/100|0}dy(a,109,m)|0;if((m|0)<100){break L9865}z=109;A=z;return A|0}}while(0)}}while(0);z=c[a+36>>2]|0;A=z;return A|0}function cV(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=b+44|0;m=h-g+1|0;n=j-i+1|0;o=100;p=100;if((m|0)>2){q=(n|0)>3}else{q=0}L10069:do{if(q){if((c[b+108>>2]|0)>1){break}do{if((c[a+196>>2]|0)>1){if((c[a+204>>2]<<2|0)<(c[a+200>>2]|0)){break L10069}else{p=(p*99|0|0)/100|0;break}}}while(0);r=dC(d,(m|0)/8|0,0,n,k,0,2)|0;s=dC(d,m-1-((m|0)/8|0)|0,0,n,k,0,2)|0;t=d;u=(m|0)/8|0;v=r;w=n;x=k;dC(t,u,v,w,x,1,2)|0;x=d;w=m-1-((m|0)/8|0)|0;v=s;u=n;t=k;dC(x,w,v,u,t,1,2)|0;if((P(r-s|0)|0)>=((n|0)/8|0|0)){p=(p*99|0|0)/100|0}do{if((r|0)<=((n|0)/4|0|0)){if((s|0)>((n|0)/4|0|0)){break}y=(m|0)/8|0;while(1){if((y|0)>=(m-1-((m|0)/8|0)|0)){break}z=dC(d,y,0,n,k,0,2)|0;if((z|0)>(r+((n|0)/8|0)|0)){if((z|0)>(s+((n|0)/8|0)|0)){A=7359;break}}if((z|0)<(r-((n|0)/8|0)|0)){if((z|0)<(s-((n|0)/8|0)|0)){A=7362;break}}y=y+1|0}if((y|0)<(m-1-((m|0)/8|0)|0)){break L10069}if(((du(0,m-1|0,(n|0)/2|0,(n|0)/2|0,d,k,1)|0)<<24>>24|0)!=1){break L10069}if(((du(0,(m-1|0)/8|0,(n|0)/2|0,n-1-((n|0)/8|0)|0,d,k,1)|0)<<24>>24|0)==1){break L10069}if(((du(0,(m*3|0|0)/16|0,(n|0)/2|0,n-1-((n|0)/4|0)|0,d,k,1)|0)<<24>>24|0)==1){break L10069}if(((du(m-1-((m|0)/4|0)|0,m-1|0,(n|0)/2|0,n-1-((n|0)/4|0)|0,d,k,1)|0)<<24>>24|0)==1){break L10069}t=0;B=0;while(1){if((B|0)>((n|0)/4|0|0)){break}z=dC(d,0,B,m,k,0,3)|0;C=dC(d,z,B,m,k,1,3)|0;do{if((n|0)>16){if((B|0)<=0){break}if((z+C|0)>=(m|0)){break}C=C+(dC(d,z+C|0,B-1|0,m-z-C|0,k,1,3)|0)|0}}while(0);do{if((n|0)>32){if((B|0)<=1){break}if((z+C|0)>=(m|0)){break}C=C+(dC(d,z+C|0,B-2|0,m-z-C|0,k,1,3)|0)|0}}while(0);if((C|0)>(t|0)){t=C}B=B+1|0}if((t*3|0|0)<(m|0)){break L10069}if((t<<2|0)<(m<<1|0)){p=(p*99|0|0)/100|0}if((t*5|0|0)<(m*3|0|0)){p=(p*99|0|0)/100|0}B=(n|0)/4|0;while(1){if((B|0)>=((n*3|0|0)/4|0|0)){break}z=((m|0)/4|0)+(dC(d,(m|0)/4|0,B,m,k,0,3)|0)|0;C=dC(d,z,B,m,k,1,3)|0;if((C<<1|0)>(m+1|0)){A=7400;break}if((z+C|0)>=(m|0)){A=7400;break}if((z|0)<(((m|0)/4|0)-1|0)){A=7400;break}B=B+1|0}if((B|0)<((n*3|0|0)/4|0|0)){break L10069}B=(n*3|0|0)/4|0;while(1){if((B|0)>=(n|0)){break}z=dC(d,(m|0)/4|0,B,m,k,0,3)|0;z=dC(d,z,B,m,k,1,3)|0;if((z<<2|0)>(y*3|0|0)){A=7408;break}B=B+1|0}if((B|0)<(n|0)){break L10069}z=((m|0)/4|0)+(dC(d,(m|0)/4|0,(n|0)/4|0,m,k,0,3)|0)|0;if((z|0)>((m*3|0|0)/4|0|0)){break L10069}z=z+(dC(d,z,(n|0)/4|0,m,k,1,3)|0)|0;if((z|0)>((m*3|0|0)/4|0|0)){break L10069}do{if((dv(0,m-1|0,n-1|0,n-1|0,d,k)|0)!=1){if((dv(0,m-1|0,n-2|0,n-2|0,d,k)|0)==1){break}break L10069}}while(0);do{if((dv(0,m-1|0,(n<<1|0)/3|0,(n<<1|0)/3|0,d,k)|0)!=1){if((dv(0,m-1|0,(n<<1|0)/3|0,(n<<1|0)/3|0,d,k)|0)==1){break}break L10069}}while(0);do{if((c[a+60>>2]|0)!=0){if((j<<1|0)<=((c[a+60>>2]|0)+(c[a+64>>2]|0)|0)){break}if((dC(d,0,0,(n|0)/2|0,k,0,2)|0)<((n|0)/4|0|0)){break}if((dC(d,0,n-1|0,n,k,0,1)|0)>((n|0)/2|0|0)){break}p=(p*96|0|0)/100|0}}while(0);if((f|0)!=0){p=(p*98|0|0)/100|0}if((dC(d,0,n-1|0,m,k,0,3)|0)<=((m|0)/8|0|0)){p=(p*99|0|0)/100|0}z=dC(d,0,(n|0)/2|0,m,k,0,3)|0;C=dC(d,z,(n|0)/2|0,m,k,1,3)|0;if((z<<1|0)>=(m|0)){A=7434}else{if((m-C-z<<1|0)<(z|0)){A=7434}}if((A|0)==7434){p=(p*95|0|0)/100|0}dy(a,84,p)|0;if((p|0)<100){break L10069}D=84;E=D;return E|0}}while(0)}}while(0);o=100;p=100;if((m|0)>1){F=(n|0)>=((c[a+60>>2]|0)-(c[a+56>>2]|0)-1|0)}else{F=0}L10207:do{if(F){if((c[b+108>>2]|0)>1){break}if((n|0)<=((c[a+60>>2]|0)-(c[a+56>>2]|0)+1|0)){p=(p*96|0|0)/100|0}do{if((dv(0,m-1|0,0,0,d,k)|0)!=1){if((n|0)<10){break L10207}else{p=(p*98|0|0)/100|0;break}}}while(0);do{if((dv(0,m-1|0,n-1|0,n-1|0,d,k)|0)!=1){if((n|0)<10){break L10207}else{p=(p*98|0|0)/100|0;break}}}while(0);y=0;o=((n|0)/32|0)+((n*3|0|0)/16|0)|0;B=o;C=o;q=o;L10227:while(1){if((B|0)>=((n*5|0|0)/8|0|0)){break}if((B|0)>0){z=dC(d,0,B,m,k,0,3)|0;z=dC(d,z,B,m,k,1,3)|0;if((z|0)>(y|0)){y=z;o=B;C=o;q=o}z=dv(0,m-1|0,B,B,d,k)|0;C=dv(0,m-1|0,B+1|0,B+1|0,d,k)|0;if((z|0)>2){if((C|0)>2){A=7461;break}}do{if((B|0)<((n*11|0|0)/16|0|0)){if((dv(0,m-1|0,B,B,d,k)|0)==1){break}if((dv(0,m-1|0,B+((n|0)/8|0)|0,B+((n|0)/8|0)|0,d,k)|0)!=1){A=7466;break L10227}if((n|0)<13){A=7466;break L10227}}}while(0)}B=B+1|0}if((B|0)<((n<<2|0)/8|0|0)){break}do{if((n|0)>12){if((y|0)<=4){break}if((y|0)<=((m|0)/2|0|0)){break}if((q|0)>((n+4|0)/8|0|0)){break}o=dC(d,m-1-((y*3|0|0)/4|0)|0,q,n,k,1,1)|0;do{if((o|0)<=((dC(d,m-1-((y|0)/4|0)|0,q,n,k,1,1)|0)+1|0)){if((dC(d,0,(n|0)/2|0,n,k,1,1)|0)>((m|0)/8|0|0)){break L10207}else{break}}}while(0)}}while(0);if((y|0)<((m|0)/2|0|0)){p=(p*95|0|0)/100|0}do{if((y|0)>=(m|0)){if((m*9|0|0)<(n<<3|0)){break}p=(p*99|0|0)/100|0}}while(0);z=dC(d,m-1|0,0,m,k,0,4)|0;B=0;while(1){if((B|0)>=((n|0)/4|0|0)){break}if((dv(0,m-1|0,B,B,d,k)|0)==2){if((dv(0,m-1|0,B+1|0,B+1|0,d,k)|0)==2){A=7490;break}}C=dC(d,m-1|0,B,m,k,0,4)|0;if((C-z|0)>1){A=7492;break}z=C;B=B+1|0}if((B|0)<((n|0)/4|0|0)){break}z=dC(d,m-1|0,q,m,k,0,4)|0;B=(n|0)/8|0;while(1){if((B|0)>=(q|0)){break}if((dC(d,m-1|0,B,m,k,0,4)|0)>(z|0)){A=7500;break}B=B+1|0}if((B|0)==(q|0)){break}C=dC(d,0,(n|0)/2|0,m,k,0,3)|0;C=dC(d,C,(n|0)/2|0,m,k,1,3)|0;z=C;C=dC(d,0,(n|0)/4|0,m,k,0,3)|0;C=dC(d,C,(n|0)/4|0,m,k,1,3)|0;if((C|0)<(z|0)){z=C}C=dC(d,0,(n*3|0|0)/4|0,m,k,0,3)|0;C=dC(d,C,(n*3|0|0)/4|0,m,k,1,3)|0;if((C|0)<(z|0)){z=C}if((y<<1|0)<(z*3|0|0)){break}o=(dC(d,m-1|0,(n|0)/2|0,m,k,0,4)|0)-((m|0)/8|0)|0;do{if((o|0)<=(dC(d,m-1|0,q,m,k,0,4)|0)){t=(dC(d,m-1|0,q,m,k,0,4)|0)-((m|0)/8|0)|0;if((t|0)>=(dC(d,m-1|0,(q|0)/2|0,m,k,0,4)|0)){break L10207}else{break}}}while(0);C=1;B=1;while(1){if((C|0)!=0){G=(B|0)<(q|0)}else{G=0}if(!G){break}y=0;L10318:while(1){if((C|0)!=0){H=(y|0)<(m-2|0)}else{H=0}if(!H){break}do{if((d8(d,y,B)|0)>=(k|0)){if((d8(d,y+1|0,B)|0)<(k|0)){break}if((d8(d,y,B-1|0)|0)>=(k|0)){break}if((d8(d,y+1|0,B-1|0)|0)<(k|0)){A=7527;break L10318}}}while(0);y=y+1|0}if((A|0)==7527){A=0;C=0}B=B+1|0}if((C|0)==0){break}do{if((dv(0,m-1|0,n-2|0,n-2|0,d,k)|0)==2){if((dv(0,m-1|0,n-1|0,n-1|0,d,k)|0)!=2){break}break L10207}}while(0);L10342:do{if((n|0)>=16){q=dC(d,0,(n*3|0|0)/4|0,m,k,0,3)|0;if((q|0)<(dC(d,0,n-2|0,m,k,0,3)|0)){break}q=dC(d,m-1|0,(n*3|0|0)/4|0,m,k,0,4)|0;if((q|0)>(dC(d,m-1|0,n-2|0,m,k,0,4)|0)){break}q=(dC(d,m-1|0,1,m,k,0,4)|0)+((m|0)/16|0)|0;if((q|0)>=(dC(d,m-1|0,(n*3|0|0)/16|0,m,k,0,4)|0)){break}q=dC(d,0,1,m,k,0,3)|0;do{if((q|0)<=((dC(d,0,(n*3|0|0)/16|0,m,k,0,3)|0)+((m|0)/16|0)|0)){if((dC(d,m-1|0,0,m,k,0,4)|0)==0){break}if((dC(d,m-1|0,1,m,k,0,4)|0)!=0){break L10342}}}while(0);p=(p*96|0|0)/100|0}}while(0);do{if((m|0)<8){if((n|0)<=12){break}y=dC(d,m-1|0,(n*3|0|0)/16|0,m,k,0,4)|0;if((y|0)!=0){do{if((dC(d,m-y|0,0,n,k,0,2)|0)<((n*3|0|0)/16|0|0)){q=(dC(d,0,(n*3|0|0)/4|0,m,k,0,3)|0)+1|0;if((q|0)<(dC(d,0,n-2|0,m,k,0,3)|0)){break}q=dC(d,m-1|0,(n*3|0|0)/4|0,m,k,0,4)|0;if((q|0)>(dC(d,m-1|0,n-2|0,m,k,0,4)|0)){break}break L10207}}while(0)}}}while(0);if((m|0)>7){do{if((dv(0,m-1|0,(n<<1|0)/3|0,(n<<1|0)/3|0,d,k)|0)>1){if((dv(0,(m|0)/2|0,(n<<1|0)/3|0,(n<<1|0)/3|0,d,k)|0)<=0){break}if((dv((m|0)/2|0,m-1|0,(n<<1|0)/3|0,(n<<1|0)/3|0,d,k)|0)<=0){break}do{if((c[b+108>>2]|0)>0){if((c[b+128>>2]|0)>((n|0)/4|0|0)){break L10207}else{break}}}while(0)}}while(0)}do{if((dv(0,m-1|0,(n*3|0|0)/4|0,(n*3|0|0)/4|0,d,k)|0)>=2){if((dv(0,m-1|0,((n*3|0|0)/4|0)-1|0,((n*3|0|0)/4|0)-1|0,d,k)|0)<2){break}p=(p*99|0|0)/100|0;if((dC(d,(m|0)/2|0,n-1|0,n,k,0,1)|0)>((n|0)/4|0|0)){break L10207}if((dC(d,((m|0)/2|0)+1|0,n-1|0,n,k,0,1)|0)>((n|0)/4|0|0)){break L10207}else{break}}}while(0);y=dC(d,m-1|0,(n|0)/2|0,m,k,0,4)|0;z=dC(d,m-1|0,(n|0)/8|0,m,k,0,4)|0;do{if((z|0)>(y|0)){if((dC(d,m-y|0,0,n,k,0,2)|0)<((n|0)/2|0|0)){break}p=(p*90|0|0)/100|0}}while(0);y=dC(d,0,0,m,k,0,3)|0;z=dC(d,0,1,m,k,0,3)|0;if((z|0)<(y|0)){y=z}z=dC(d,0,(n|0)/4|0,m,k,0,3)|0;if((z-y|0)>1){break}r=cI(a,c[l+12>>2]|0,c[l+28>>2]|0,h+(m<<1)|0,(i+j|0)/2|0)|0;s=cI(a,c[l+44>>2]|0,c[l+60>>2]|0,g-(m<<1)|0,(i+j|0)/2|0)|0;do{if(((c[a+296+(r<<3)>>2]|0)-g|0)>((m*3|0|0)/4|0|0)){if(((c[a+296+(s<<3)>>2]|0)-g|0)>=((m|0)/4|0|0)){break}if(((c[a+296+(r<<3)+4>>2]|0)-i|0)<=((c[a+296+(s<<3)+4>>2]|0)-i|0)){break}break L10207}}while(0);if((c[a+56>>2]|0)==0){p=(p*99|0|0)/100|0}if((c[a+56>>2]|0)!=0){if((e|0)==0){p=(p*99|0|0)/100|0}if((i|0)>=((c[a+56>>2]|0)-(((c[a+56>>2]|0)-(c[a+52>>2]|0)|0)/4|0)|0)){p=(p*99|0|0)/100|0}if((i|0)>=(c[a+56>>2]|0)){p=(p*99|0|0)/100|0}}if((m|0)<3){p=(p*99|0|0)/100|0;do{if((dC(d,0,0,m,k,0,3)|0)==0){if((dC(d,0,n-1|0,m,k,0,3)|0)!=0){break}if((dC(d,m-1|0,(n+1|0)/2|0,m,k,0,4)|0)!=0){break}break L10207}}while(0)}do{if((dC(d,0,0,m,k,0,3)|0)<=((m|0)/8|0|0)){if((dC(d,m-1|0,((n|0)/2|0)+1|0,m,k,0,4)|0)>((m|0)/8|0|0)){break}p=(p*98|0|0)/100|0}}while(0);if((c[b+108>>2]|0)>0){p=(p*95|0|0)/100|0}if((f|0)!=0){p=(p*99|0|0)/100|0}if((c[a+24>>2]|0)!=0){p=(p*90|0|0)/100|0}dy(a,116,p)|0}}while(0);D=c[a+36>>2]|0;E=D;return E|0}function cW(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[b+8>>2]|0;h=(c[a+4>>2]|0)-(c[a>>2]|0)+1|0;i=(c[a+12>>2]|0)-(c[a+8>>2]|0)+1|0;j=100;if((h|0)>2){k=(i|0)>3}else{k=0}if(!k){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}if((c[b+108>>2]|0)>1){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}do{if((dv((h|0)/2|0,(h|0)/2|0,0,i-1|0,d,g)|0)!=3){if((dv((h*6|0|0)/8|0,(h<<1|0)/8|0,0,i-1|0,d,g)|0)==3){break}if((i|0)<=4){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);do{if((dv(0,h-1|0,(i|0)/2|0,(i|0)/2|0,d,g)|0)!=1){if((dv(0,h-1|0,((i|0)/2|0)-1|0,((i|0)/2|0)-1|0,d,g)|0)==1){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);k=(i+2|0)/4|0;o=dC(d,0,(i+2|0)/4|0,h,g,0,3)|0;if((o|0)>((h*3|0|0)/8|0|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}o=o+(dC(d,o,(i+2|0)/4|0,h,g,1,3)|0)|0;if((o|0)>((h*5|0|0)/8|0|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}p=dC(d,o,(i+2|0)/4|0,h,g,0,3)|0;p=(p+(o<<1)|0)/2|0;k=(i*11|0|0)/16|0;o=dC(d,h-1|0,k,h,g,0,4)|0;if((o|0)>((h|0)/4|0|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}o=o+(dC(d,h-1-o|0,k,h,g,1,4)|0)|0;do{if((h|0)>5){if((i|0)<=7){break}if((o|0)<=((h|0)/2|0|0)){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);if((o|0)>((h*3|0|0)/4|0|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}if((o|0)>((h|0)/2|0|0)){j=(j*98|0|0)/100|0}q=dC(d,h-1-o|0,k,h,g,0,4)|0;q=h-1-((q+(o<<1)|0)/2|0)|0;r=dC(d,0,(i+2|0)/4|0,h,g,0,3)|0;k=(i|0)/4|0;while(1){if((k|0)>=((i|0)/2|0|0)){break}o=dC(d,0,k,h,g,0,3)|0;if((o|0)>(r+((h|0)/8|0)|0)){if((dC(d,o-1|0,k,h,g,0,1)|0)>(((i|0)/8|0)+1|0)){s=7643;break}}k=k+1|0}if((k|0)<((i|0)/2|0|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}k=((i|0)/2|0)-(dC(d,h-1|0,(i|0)/2|0,(i|0)/2|0,g,1,1)|0)|0;k=(i|0)/4|0;while(1){if((k|0)>=((i|0)/2|0|0)){break}o=dC(d,h-1|0,k,h,g,0,4)|0;if((o|0)>((h|0)/8|0|0)){s=7651;break}k=k+1|0}if((k|0)==((i|0)/2|0|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}k=((i|0)/2|0)+(dC(d,0,(i|0)/2|0,(i|0)/2|0,g,1,2)|0)|0;if((dB(d,0,k,q,(i*11|0|0)/16|0,g)|0)==0){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}do{if((c[b+108>>2]|0)>0){if((c[b+128>>2]|0)<=((i+2|0)/4|0|0)){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);p=dC(d,h-1|0,i-1|0,h,g,0,4)|0;q=dC(d,h-1|0,i-2|0,h,g,0,4)|0;if((q-p|0)>=((h|0)/4|0|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}p=dC(d,0,0,h,g,0,3)|0;q=dC(d,0,1,h,g,0,3)|0;if((q-p|0)>=((h|0)/4|0|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}p=dC(d,0,(i|0)/2|0,h,g,0,3)|0;p=dC(d,p,(i|0)/2|0,h,g,1,3)|0;if((p<<2|0)>=(h*3|0|0)){j=(j*97|0|0)/100|0}p=dC(d,0,(i|0)/16|0,h,g,0,3)|0;q=dC(d,0,(i<<2|0)/16|0,h,g,0,3)|0;r=dC(d,0,(i*7|0|0)/16|0,h,g,0,3)|0;L10537:do{if(((q<<1)+((h|0)/32|0)|0)>=(p+r|0)){do{if(((q<<1)+((h|0)/32|0)|0)<=(p+r|0)){if((h|0)>9){break}p=p+(dC(d,p,(i|0)/16|0,h,g,1,3)|0)|0;q=q+(dC(d,q,(i<<2|0)/16|0,h,g,1,3)|0)|0;r=r+(dC(d,r,(i*7|0|0)/16|0,h,g,1,3)|0)|0;if(((q<<1)+((h|0)/32|0)|0)<(p+r|0)){break L10537}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);k=((i*7|0)+8|0)/16|0;while(1){if((k|0)>=(((i*5|0)+4|0)/8|0|0)){break}if((dv(0,h-1|0,k,k,d,g)|0)==2){if((dv(0,h-1|0,k+1|0,k+1|0,d,g)|0)==1){if((dv(0,(h|0)/4|0,k,k,d,g)|0)==1){s=7680;break}}}k=k+1|0}if((k|0)<((i*5|0|0)/8|0|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}k=dC(d,h-1|0,i-2-((i|0)/32|0)|0,h,g,0,4)|0;if((k|0)>((dC(d,0,((i|0)/32|0)+1|0,h,g,0,3)|0)+((h|0)/4|0)|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}k=115;if((f|0)!=0){j=(j*98|0|0)/100|0}f=dC(d,h-1|0,0,h,g,1,4)|0;if((f|0)>((dC(d,0,i-1|0,h,g,1,3)|0)+((h|0)/8|0)|0)){j=(j*98|0|0)/100|0}if((e|0)!=0){k=83;e=dC(d,(h*3|0|0)/4|0,0,i,g,1,2)|0;if((e|0)>(dC(d,(h|0)/4|0,i-1|0,i,g,1,1)|0)){j=(j*99|0|0)/100|0}e=dC(d,h-1|0,i-1-((i|0)/32|0)|0,h,g,0,4)|0;if((e|0)>(dC(d,0,(i|0)/32|0|0,h,g,0,3)|0)){j=(j*99|0|0)/100|0}e=dC(d,0,i-1-((i|0)/32|0)|0,h,g,0,3)|0;if((e|0)>(dC(d,h-1|0,(i|0)/32|0|0,h,g,0,4)|0)){j=(j*99|0|0)/100|0}}dy(a,k,j)|0;l=a;m=l+36|0;n=c[m>>2]|0;return n|0}function cX(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;b=i;i=i+16|0;d=b|0;e=b+8|0;f=a;a=c[f>>2]|0;g=c[f+4>>2]|0;h=c[f+36>>2]|0;j=c[f+40>>2]|0;k=c[a>>2]|0;l=c[a+4>>2]|0;m=c[a+8>>2]|0;n=c[a+12>>2]|0;o=c[f+8>>2]|0;p=l-k+1|0;q=n-m+1|0;r=100;s=100;if((p|0)>2){t=(q|0)>4}else{t=0}L10595:do{if(t){if((c[f+108>>2]|0)>3){break}if(((du(k+((p|0)/2|0)|0,k+((p|0)/2|0)|0,n-((q|0)/2|0)|0,n,c[a+68>>2]|0,o,1)|0)<<24>>24|0)!=1){break}if(((du(l-((p|0)/4|0)|0,l,n-((q|0)/4|0)|0,n,c[a+68>>2]|0,o,1)|0)<<24>>24|0)!=1){break}if(((du(k+((p|0)/2|0)|0,k+((p|0)/2|0)|0,m,m+((q|0)/2|0)|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)!=1){break}do{if((dv(k+((p|0)/2|0)|0,k+((p|0)/2|0)|0,m,n,c[a+68>>2]|0,o)|0)<3){if((dv(l-((p|0)/2|0)|0,l-((p|0)/2|0)|0,m,n,c[a+68>>2]|0,o)|0)<3){break L10595}else{break}}}while(0);if((c[f+108>>2]|0)<1){break}u=0;while(1){if((u|0)>=(c[f+108>>2]|0)){break}if((c[f+112+(u*28|0)+24>>2]|0)<(((q*5|0|0)/8|0)+1|0)){v=7744;break}u=u+1|0}if((u|0)==(c[f+108>>2]|0)){break}c[e>>2]=(q|0)/4|0;while(1){if((c[e>>2]|0)>=(q|0)){break}if((dv(0,p-1|0,c[e>>2]|0,c[e>>2]|0,g,o)|0)==2){v=7752;break}c[e>>2]=(c[e>>2]|0)+1}if((c[e>>2]|0)==(q|0)){break}if(((du(0,(p|0)/2|0,(q*7|0|0)/8|0,(q*7|0|0)/8|0,g,o,1)|0)<<24>>24|0)!=1){break}c[e>>2]=dC(g,(p|0)/16|0,0,q,o,0,2)|0;if((c[e>>2]|0)<=((q|0)/8|0|0)){w=dC(g,(p|0)/16|0,c[e>>2]|0,q,o,1,2)|0;c[e>>2]=(c[e>>2]|0)+w}if((c[e>>2]<<4|0)>=(q*15|0|0)){break}if((dv(l,l,(m+n|0)/2|0,n,c[a+68>>2]|0,o)|0)>1){s=(s*98|0|0)/100|0;if((dv(l,l,m,(m+n|0)/2|0,c[a+68>>2]|0,o)|0)<1){s=(s*96|0|0)/100|0}if((dv(l-1|0,l-1|0,m,(m+n|0)/2|0,c[a+68>>2]|0,o)|0)<1){s=(s*95|0|0)/100|0}}c[d>>2]=0;c[e>>2]=(q|0)/4|0;while(1){if((c[e>>2]|0)>=(q-((q|0)/4|0)|0)){break}u=dC(g,p-1|0,c[e>>2]|0,q,o,0,4)|0;if((u|0)>(c[d>>2]|0)){c[d>>2]=u}c[e>>2]=(c[e>>2]|0)+1}if((c[d>>2]|0)<((p|0)/2|0|0)){if((dv(k,l,m+((q|0)/4|0)|0,m+((q|0)/4|0)|0,c[a+68>>2]|0,o)|0)>2){v=7778}else{if((dv(k,l,m+((q|0)/8|0)|0,m+((q|0)/8|0)|0,c[a+68>>2]|0,o)|0)>2){v=7778}}if((v|0)==7778){s=(s*90|0|0)/100|0}if((dv(k,l+((p|0)/4|0)|0,n-((q|0)/4|0)|0,n-((q|0)/4|0)|0,c[a+68>>2]|0,o)|0)>2){v=7781}else{if((dv(k,l+((p|0)/4|0)|0,n-((q|0)/8|0)|0,n-((q|0)/8|0)|0,c[a+68>>2]|0,o)|0)>2){v=7781}}if((v|0)==7781){s=(s*90|0|0)/100|0}}if((dv(0,p-1|0,(q|0)/2|0,(q|0)/2|0,g,o)|0)>2){s=(s*99|0|0)/100|0}c[e>>2]=0;while(1){if((c[e>>2]|0)>=(q|0)){break}c[d>>2]=0;while(1){if((c[d>>2]|0)>=((p|0)/2|0|0)){break}w=(d8(g,c[d>>2]|0,c[e>>2]|0)|0)<(o|0)|0;if((w|0)!=((d8(g,p-1-(c[d>>2]|0)|0,c[e>>2]|0)|0)<(o|0)|0)){v=7790;break}c[d>>2]=(c[d>>2]|0)+1}if((v|0)==7790){v=0;c[e>>2]=q+1}c[e>>2]=(c[e>>2]|0)+1}if((c[e>>2]|0)==(q|0)){break}if((c[a+64>>2]|0)==0){s=(s*98|0|0)/100|0}if((h|0)!=0){s=(s*96|0|0)/100|0}if((j|0)==0){s=(s*96|0|0)/100|0}s=(s*98|0|0)/100|0;dy(a,103,s)|0}}while(0);r=100;s=100;if((p|0)>3){x=(q|0)>4}else{x=0}L10712:do{if(x){if((c[f+108>>2]|0)>1){break}if(((du(k,k+((p|0)/2|0)|0,m+((q|0)/3|0)|0,m+((q|0)/3|0)|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)!=1){break}if(((du(k+((p|0)/2|0)|0,l-((p|0)/4|0)|0,m,m+((q|0)/4|0)|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)!=1){break}if(((du(k+((p|0)/2|0)|0,k+((p|0)/2|0)|0,n-((q|0)/4|0)|0,n,c[a+68>>2]|0,o,1)|0)<<24>>24|0)!=1){break}if(((du(k,k+((p|0)/2|0)|0,n-((q|0)/3|0)|0,n-((q|0)/3|0)|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)!=1){break}c[e>>2]=m+((q|0)/4|0);while(1){if((c[e>>2]|0)>=(n-((q|0)/3|0)|0)){break}if(((du(l-((p|0)/2|0)|0,l,c[e>>2]|0,c[e>>2]|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)==0){v=7821;break}c[e>>2]=(c[e>>2]|0)+1}if((c[e>>2]|0)==(n-((q|0)/3|0)|0)){break}do{if((dv(k+((p|0)/2|0)|0,k+((p|0)/2|0)|0,m,c[e>>2]|0,c[a+68>>2]|0,o)|0)==1){if((dv(k+((p|0)/2|0)+1|0,k+((p|0)/2|0)+1|0,m,c[e>>2]|0,c[a+68>>2]|0,o)|0)!=1){break}c[d>>2]=k;c[e>>2]=n;dA(c[a+68>>2]|0,d,e,k,l,m,n,o,1,7);if((c[e>>2]|0)<(m+((q|0)/4|0)|0)){break L10712}c[d>>2]=l;c[e>>2]=n-((q|0)/3|0);dA(c[a+68>>2]|0,d,e,k,l,m,n,o,4,7);if((c[d>>2]|0)<(l-((p*3|0|0)/8|0)|0)){break L10712}dA(c[a+68>>2]|0,d,e,k,l,m,n,o,7,4);do{if((c[d>>2]|0)<(k+((p|0)/2|0)|0)){c[d>>2]=l;c[e>>2]=n-((q|0)/4|0);dA(c[a+68>>2]|0,d,e,k,l,m,n,o,4,7);dA(c[a+68>>2]|0,d,e,k,l,m,n,o,7,4);if((c[d>>2]|0)<(k+((p|0)/2|0)|0)){break L10712}else{break}}}while(0);dA(c[a+68>>2]|0,d,e,k,l,m,n,o,3,1);if((c[d>>2]|0)<=(l|0)){break L10712}if((c[e>>2]|0)<(m+((q*3|0|0)/8|0)|0)){break L10712}if((c[e>>2]|0)>(n-((q|0)/4|0)|0)){break L10712}c[d>>2]=l-((p|0)/3|0);c[e>>2]=n;dA(c[a+68>>2]|0,d,e,k,l,m+((q|0)/4|0)|0,n,o,4,1);if((c[e>>2]|0)>(m+((q|0)/4|0)+1|0)){break L10712}dA(c[a+68>>2]|0,d,e,k,l,m,n,o,3,1);if((c[e>>2]|0)>(m|0)){break L10712}if((c[f+108>>2]|0)>0){break L10712}do{if((p|0)>4){if((q|0)<=6){break}u=1;c[e>>2]=0;while(1){if((u|0)!=0){y=(c[e>>2]|0)<((q|0)/3|0|0)}else{y=0}if(!y){break}if((dv(0,p-1|0,c[e>>2]|0,c[e>>2]|0,g,o)|0)==2){u=0}c[e>>2]=(c[e>>2]|0)+1}if((u|0)!=0){s=(s*98|0|0)/100|0}u=1;c[e>>2]=0;while(1){if((u|0)!=0){z=(c[e>>2]|0)<((q|0)/3|0|0)}else{z=0}if(!z){break}if((dv(0,p-1|0,q-1-(c[e>>2]|0)|0,q-1-(c[e>>2]|0)|0,g,o)|0)==2){u=0}c[e>>2]=(c[e>>2]|0)+1}if((u|0)!=0){break L10712}else{break}}}while(0);u=1;c[e>>2]=(q|0)/2|0;while(1){if((u|0)!=0){A=(c[e>>2]|0)<(q|0)}else{A=0}if(!A){break}if((dv(0,p-1|0,c[e>>2]|0,c[e>>2]|0,g,o)|0)==2){u=0}c[e>>2]=(c[e>>2]|0)+1}if((u|0)!=0){break L10712}u=0;c[e>>2]=(q*3|0|0)/4|0;while(1){if((c[e>>2]|0)>=(q|0)){break}c[d>>2]=dC(g,0,c[e>>2]|0,p,o,0,3)|0;if((c[d>>2]|0)<(u-((p|0)/20|0)|0)){v=7885;break}if((c[d>>2]|0)>(u|0)){u=c[d>>2]|0}c[e>>2]=(c[e>>2]|0)+1}if((c[e>>2]|0)<(q|0)){break L10712}u=0;t=(q|0)/4|0;c[e>>2]=t;B=t;while(1){if((c[e>>2]|0)>=(q-((q|0)/4|0)|0)){break}c[d>>2]=dC(g,p-1|0,c[e>>2]|0,(p|0)/4|0,o,0,4)|0;c[d>>2]=dC(g,p-1-(c[d>>2]|0)|0,c[e>>2]|0,(p|0)/2|0,o,1,4)|0;if((c[d>>2]|0)>(u|0)){u=c[d>>2]|0;B=c[e>>2]|0}c[e>>2]=(c[e>>2]|0)+1}do{if((B|0)>((q|0)/4|0|0)){if((B|0)>=(q-((q|0)/4|0)|0)){break}c[d>>2]=dC(g,0,B,p,o,0,3)|0;t=dC(g,c[d>>2]|0,B,p-(c[d>>2]|0)|0,o,1,3)|0;c[d>>2]=(c[d>>2]|0)+t;t=dC(g,c[d>>2]|0,B,p-(c[d>>2]|0)|0,o,0,3)|0;c[d>>2]=(c[d>>2]|0)+t;if((c[d>>2]|0)>=(p|0)){s=(s*90|0|0)/100|0}u=1;c[d>>2]=(p|0)/2|0;while(1){if((c[d>>2]|0)<(p-1|0)){C=(u|0)!=0}else{C=0}if(!C){break}c[e>>2]=(q|0)/2|0;L10853:while(1){if((c[e>>2]|0)<(q-1|0)){D=(u|0)!=0}else{D=0}if(!D){break}do{if((d8(g,c[d>>2]|0,c[e>>2]|0)|0)>=(o|0)){if((d8(g,(c[d>>2]|0)+1|0,c[e>>2]|0)|0)>=(o|0)){break}if((d8(g,(c[d>>2]|0)+1|0,(c[e>>2]|0)-1|0)|0)>=(o|0)){break}if((d8(g,c[d>>2]|0,(c[e>>2]|0)-1|0)|0)<(o|0)){v=7915;break L10853}}}while(0);c[e>>2]=(c[e>>2]|0)+1}if((v|0)==7915){v=0;u=0}c[d>>2]=(c[d>>2]|0)+1}if((u|0)!=0){s=(s*95|0|0)/100|0}if((h|0)==0){s=(s*98|0|0)/100|0}if((j|0)!=0){s=(s*98|0|0)/100|0}dy(a,71,s)|0;break L10712}}while(0);break L10712}}while(0)}}while(0);r=100;s=100;if((p|0)>2){E=(q|0)>4}else{E=0}if(!E){F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}if((c[f+108>>2]|0)>2){F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}do{if((dv(k+((p|0)/2|0)|0,k+((p|0)/2|0)|0,m,n,c[a+68>>2]|0,o)|0)!=3){if((dv(k+((p|0)/4|0)|0,l-((p|0)/4|0)|0,m,n,c[a+68>>2]|0,o)|0)==3){break}F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}}while(0);c[d>>2]=0;f=m+((q|0)/2|0)|0;c[e>>2]=f;u=f;while(1){if((c[e>>2]|0)>(n-((q*3|0|0)/16|0)|0)){break}I=dC(c[a+68>>2]|0,k,c[e>>2]|0,p,o,0,3)|0;do{if((I|0)>2){if((I|0)<=((p|0)/4|0|0)){break}if((c[e>>2]|0)>=(n-3|0)){break}if((I|0)>=((p|0)/2|0|0)){break}I=I+((dC(c[a+68>>2]|0,k+I-2|0,(c[e>>2]|0)+1|0,p,o,0,3)|0)-2)|0}}while(0);if((I|0)>(c[d>>2]|0)){c[d>>2]=I;u=c[e>>2]|0}c[e>>2]=(c[e>>2]|0)+1}if((c[d>>2]|0)<((p<<2|0)/8|0|0)){F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}do{if((dv(k+((p|0)/2|0)|0,l,u,n,c[a+68>>2]|0,o)|0)!=1){if((dv(k+((p|0)/2|0)|0,l,u+1|0,n,c[a+68>>2]|0,o)|0)==1){break}F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}}while(0);if((dH(k,l,m,u+1|0,c[a+68>>2]|0,o,0)|0)!=1){F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}if((dH(k,l,u-1|0,n,c[a+68>>2]|0,o,0)|0)!=0){F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}do{if((dC(c[a+68>>2]|0,k,n,q,o,0,3)|0)>((p|0)/3|0|0)){if((dC(c[a+68>>2]|0,k,n-1|0,q,o,0,3)|0)<=((p|0)/3|0|0)){break}F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}}while(0);c[d>>2]=0;f=m+((q|0)/3|0)|0;c[e>>2]=f;u=f;while(1){if((c[e>>2]|0)>(n-((q|0)/3|0)|0)){break}I=dC(c[a+68>>2]|0,l,c[e>>2]|0,p,o,0,4)|0;if((I|0)>(c[d>>2]|0)){c[d>>2]=I;u=c[e>>2]|0}c[e>>2]=(c[e>>2]|0)+1}if((c[d>>2]|0)>((p|0)/2|0|0)){F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}B=dC(g,p-1|0,(q|0)/8|0,p,o,0,4)|0;if((B|0)>((p|0)/2|0|0)){F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}u=dC(g,p-1|0,q-1-((q|0)/8|0)|0,p,o,0,4)|0;I=dC(g,p-1|0,(q|0)/2|0,p,o,0,4)|0;if((B+u|0)<((I<<1)-((p|0)/8|0)|0)){F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}B=dC(g,p-1|0,(q|0)/4|0,p,o,0,4)|0;if((B|0)>((p|0)/2|0|0)){F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}u=dC(g,p-1|0,q-1-((q|0)/8|0)|0,p,o,0,4)|0;c[e>>2]=(q|0)/4|0;while(1){if((c[e>>2]|0)>=(q-1-((q|0)/4|0)|0)){break}I=dC(g,p-1|0,c[e>>2]|0,p,o,0,4)|0;if((B+u-(I<<1)|0)<(-1-((p|0)/16|0)|0)){v=7976;break}c[e>>2]=(c[e>>2]|0)+1}if((c[e>>2]|0)<(q-1-((q|0)/4|0)|0)){F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}c[d>>2]=dC(g,p-1|0,(q*6|0|0)/8|0,p,o,0,4)|0;do{if((c[d>>2]|0)>0){c[d>>2]=(c[d>>2]|0)-1;c[e>>2]=dC(g,p-(c[d>>2]|0)-1|0,q-1|0,q,o,0,1)|0;if((c[e>>2]|0)>=((q|0)/8|0|0)){break}F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}}while(0);if((dv(k,l,m+((q|0)/4|0)|0,m+((q|0)/4|0)|0,c[a+68>>2]|0,o)|0)>2){s=(s*90|0|0)/100|0}if((dv(k,l+((p|0)/4|0)|0,n-((q|0)/4|0)|0,n-((q|0)/4|0)|0,c[a+68>>2]|0,o)|0)>2){v=7989}else{if((dv(k,l+((p|0)/4|0)|0,n-((q|0)/8|0)|0,n-((q|0)/8|0)|0,c[a+68>>2]|0,o)|0)>2){v=7989}}if((v|0)==7989){s=(s*90|0|0)/100|0}if((c[a+64>>2]|0)==0){s=(s*98|0|0)/100|0}if((h|0)!=0){s=(s*96|0|0)/100|0}if((j|0)==0){if(((c[a+64>>2]|0)-(c[a+60>>2]|0)|0)>2){s=(s*96|0|0)/100|0}else{if((n|0)>(c[a+60>>2]|0)){s=(s*99|0|0)/100|0}else{s=(s*97|0|0)/100|0}}}if((s|0)>99){s=99}dy(a,103,s)|0;F=a;G=F+36|0;H=c[G>>2]|0;i=b;return H|0}function cY(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;b=a;a=c[b>>2]|0;d=c[b+36>>2]|0;e=c[b+40>>2]|0;f=c[a>>2]|0;g=c[a+4>>2]|0;h=c[a+8>>2]|0;i=c[a+12>>2]|0;j=g-f+1|0;k=i-h+1|0;l=b+44|0;m=57344;n=100;o=100;if((j|0)>2){p=(k|0)>3}else{p=0}L11011:do{if(p){if((c[b+108>>2]|0)>0){break}n=(cH(32)|0)<<1;if((c[l+8>>2]|0)>(n|0)){break}if((c[l+24>>2]|0)>(n|0)){break}if((c[l+40>>2]|0)>(n|0)){break}if((c[l+56>>2]|0)>(n|0)){break}if(((c[l+48>>2]|0)-(c[l>>2]|0)|0)<((j|0)/2|0|0)){break}if(((c[l+32>>2]|0)-(c[l+16>>2]|0)|0)<((j|0)/2|0|0)){break}if(((c[l+20>>2]|0)-(c[l+4>>2]|0)|0)<((k|0)/2|0|0)){break}if(((c[l+36>>2]|0)-(c[l+52>>2]|0)|0)<((k|0)/2|0|0)){break}do{if(((c[l+4>>2]|0)-h|0)>((k|0)/16|0|0)){if(((c[l+52>>2]|0)-h|0)<=((k|0)/16|0|0)){break}if((i-(c[l+20>>2]|0)|0)<=((k|0)/16|0|0)){break}if((i-(c[l+36>>2]|0)|0)<=((k|0)/16|0|0)){break}break L11011}}while(0);do{if(((c[a+56>>2]|0)-(c[a+52>>2]|0)|0)>2){if((((c[l+52>>2]|0)-(c[l+4>>2]|0)|0)*3|0|0)<((c[a+56>>2]|0)-(c[a+52>>2]|0)<<1|0)){break}break L11011}}while(0);q=cI(a,c[l+12>>2]|0,c[l+28>>2]|0,f+j|0,h+((k|0)/3|0)|0)|0;r=cI(a,c[l+12>>2]|0,c[l+28>>2]|0,f+j|0,i-((k|0)/3|0)|0)|0;s=cI(a,q,r,f+((j|0)/4|0)|0,h+((k|0)/2|0)|0)|0;if((c[a+296+(s<<3)>>2]|0)<=(f+((j|0)/8|0)|0)){break}if((c[a+296+(s<<3)>>2]|0)<=(f+((j|0)/4|0)|0)){o=(o*98|0|0)/100|0}q=cI(a,c[l+44>>2]|0,c[l+60>>2]|0,f,h+((k|0)/3|0)|0)|0;r=cI(a,c[l+44>>2]|0,c[l+60>>2]|0,f,i-((k|0)/3|0)|0)|0;s=cI(a,q,r,g-((j|0)/4|0)|0,h+((k|0)/2|0)|0)|0;if((c[a+296+(s<<3)>>2]|0)>=(g-((j|0)/8|0)|0)){break}if((c[a+296+(s<<3)>>2]|0)>=(g-((j|0)/4|0)|0)){o=(o*98|0|0)/100|0}t=c[l+12>>2]|0;u=t;v=t;while(1){if((u|0)==(c[l+28>>2]|0)){break}if((c[a+296+(u<<3)>>2]|0)>=(c[a+296+(v<<3)>>2]|0)){v=u}u=(u+1|0)%(c[a+264>>2]|0)|0}if((v|0)==(u|0)){break}t=c[a+296+(v<<3)>>2]|0;w=c[a+296+(v<<3)+4>>2]|0;q=v;if((P((c[l>>2]|0)+(c[l+16>>2]|0)+(c[l+32>>2]|0)+(c[l+48>>2]|0)-(t<<2)|0)|0)>(j+2|0)){break}if((P((c[l+4>>2]|0)+(c[l+20>>2]|0)+(c[l+36>>2]|0)+(c[l+52>>2]|0)-(w<<2)|0)|0)>(k+2|0)){break}if(((c[l>>2]|0)+(c[l+16>>2]|0)-(t<<1)|0)>=0){break}if((c[l+16>>2]|0)>=(t|0)){break}if((c[l>>2]|0)>(t|0)){break}if((c[l>>2]|0)>=(t|0)){o=(o*99|0|0)/100|0}if((t-f|0)<((j|0)/8|0|0)){break}if((t-f|0)<((j|0)/4|0|0)){o=(o*99|0|0)/100|0}x=cG(a,c[l+12>>2]|0,v)|0;if((x|0)>((cH(256)|0)<<1|0)){break}x=cG(a,v,c[l+28>>2]|0)|0;if((x|0)>((cH(256)|0)<<1|0)){break}y=c[l+28>>2]|0;u=y;v=y;while(1){if((u|0)==(c[l+44>>2]|0)){break}if((c[a+296+(u<<3)+4>>2]|0)<=(c[a+296+(v<<3)+4>>2]|0)){v=u}u=(u+1|0)%(c[a+264>>2]|0)|0}if((v|0)==(u|0)){break}t=c[a+296+(v<<3)>>2]|0;w=c[a+296+(v<<3)+4>>2]|0;s=v;if((P((c[l>>2]|0)+(c[l+16>>2]|0)+(c[l+32>>2]|0)+(c[l+48>>2]|0)-(t<<2)|0)|0)>(j+2|0)){break}if((P((c[l+4>>2]|0)+(c[l+20>>2]|0)+(c[l+36>>2]|0)+(c[l+52>>2]|0)-(w<<2)|0)|0)>(k+2|0)){break}if(((c[l+20>>2]|0)+(c[l+36>>2]|0)-(w<<1)|0)<=0){break}x=cG(a,c[l+28>>2]|0,v)|0;if((x|0)>((cH(256)|0)<<1|0)){break}x=cG(a,v,c[l+44>>2]|0)|0;if((x|0)>((cH(256)|0)<<1|0)){break}y=c[l+44>>2]|0;u=y;v=y;while(1){if((u|0)==(c[l+60>>2]|0)){break}if((c[a+296+(u<<3)>>2]|0)<=(c[a+296+(v<<3)>>2]|0)){v=u}u=(u+1|0)%(c[a+264>>2]|0)|0}if((v|0)==(u|0)){break}t=c[a+296+(v<<3)>>2]|0;w=c[a+296+(v<<3)+4>>2]|0;r=v;if((P((c[l>>2]|0)+(c[l+16>>2]|0)+(c[l+32>>2]|0)+(c[l+48>>2]|0)-(t<<2)|0)|0)>(j+2|0)){break}if((P((c[l+4>>2]|0)+(c[l+20>>2]|0)+(c[l+36>>2]|0)+(c[l+52>>2]|0)-(w<<2)|0)|0)>(k+2|0)){break}if(((c[l+32>>2]|0)+(c[l+48>>2]|0)-(t<<1)|0)<=0){break}if((c[l+48>>2]|0)<=(t|0)){break}if((c[l+32>>2]|0)<(t|0)){break}if((c[l+32>>2]|0)<=(t|0)){o=(o*99|0|0)/100|0}if((j-(t-f)|0)<((j|0)/8|0|0)){break}if((j-(t-f)|0)<((j|0)/4|0|0)){o=(o*99|0|0)/100|0}x=cG(a,c[l+44>>2]|0,v)|0;if((x|0)>((cH(256)|0)<<1|0)){break}x=cG(a,v,c[l+60>>2]|0)|0;if((x|0)>((cH(256)|0)<<1|0)){break}s=c[l+60>>2]|0;u=s;v=s;while(1){if((u|0)==(c[l+12>>2]|0)){break}if((c[a+296+(u<<3)+4>>2]|0)>=(c[a+296+(v<<3)+4>>2]|0)){v=u}u=(u+1|0)%(c[a+264>>2]|0)|0}if((v|0)==(u|0)){break}t=c[a+296+(v<<3)>>2]|0;w=c[a+296+(v<<3)+4>>2]|0;if((P((c[l>>2]|0)+(c[l+16>>2]|0)+(c[l+32>>2]|0)+(c[l+48>>2]|0)-(t<<2)|0)|0)>(j+2|0)){break}if((P((c[l+4>>2]|0)+(c[l+20>>2]|0)+(c[l+36>>2]|0)+(c[l+52>>2]|0)-(w<<2)|0)|0)>(k+2|0)){break}if(((c[l+52>>2]|0)+(c[l+4>>2]|0)-(w<<1)|0)>=0){break}x=cG(a,c[l+60>>2]|0,v)|0;if((x|0)>((cH(256)|0)<<1|0)){break}x=cG(a,v,c[l+12>>2]|0)|0;if((x|0)>((cH(256)|0)<<1|0)){break}if(((c[a+296+(r<<3)>>2]|0)-(c[a+296+(q<<3)>>2]|0)|0)>((j|0)/2|0|0)){break}if((e|0)!=0){o=(o*99|0|0)/100|0}m=120;if((d|0)!=0){m=88}dy(a,m,o)|0}}while(0);return c[a+36>>2]|0}function cZ(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+8>>2]|0;i=c[a+12>>2]|0;j=c[b+8>>2]|0;k=(c[a+4>>2]|0)-g+1|0;l=i-h+1|0;m=57344;n=100;o=100;if((k|0)>2){p=(l|0)>3}else{p=0}L11211:do{if(p){if((c[b+108>>2]|0)>1){break}if((c[b+108>>2]|0)>0){o=(o*97|0|0)/100|0}do{if((dv(0,k-1|0,(l|0)/8|0,(l|0)/8|0,d,j)|0)<2){if((dv(0,k-1|0,1,1,d,j)|0)>=2){break}break L11211}}while(0);do{if((dv(0,k-1|0,l-1|0,l-1|0,d,j)|0)!=1){if((dv(0,k-1|0,l-2|0,l-2|0,d,j)|0)==1){break}break L11211}}while(0);do{if((dv(k-1|0,k-1|0,0,l-1|0,d,j)|0)!=1){if((dv(k-2|0,k-2|0,0,l-1|0,d,j)|0)==1){break}break L11211}}while(0);do{if((dv((k|0)/3|0,(k|0)/3|0,(l|0)/4|0,l-1|0,d,j)|0)!=2){if((dv((k|0)/2|0,(k|0)/2|0,(l|0)/4|0,l-1|0,d,j)|0)==2){break}break L11211}}while(0);q=0;r=0;s=(k|0)/4|0;t=s;u=s;while(1){if((t|0)>=(k-((k|0)/4|0)|0)){break}v=dC(d,t,0,l,j,0,2)|0;if((v|0)>(q|0)){s=v;q=s;r=s;u=t}t=t+1|0}do{if((q|0)<=((l*12|0|0)/16|0|0)){if((q|0)<((l*3|0|0)/8|0|0)){break}w=(l|0)/8|0;x=u-(dC(d,u,w,k,j,0,4)|0)|0;if((x|0)<0){break L11211}y=(l|0)/8|0;z=u+(dC(d,u,y,k,j,0,3)|0)|0;if((z|0)>=(k|0)){break L11211}q=(l|0)/8|0;while(1){if((q|0)>=(r-((l|0)/8|0)|0)){break}if((dv(u,k-1|0,q,q,d,j)|0)!=1){A=8195;break}if((dv(0,u,q,q,d,j)|0)<1){A=8197;break}q=q+1|0}if((q|0)<(r-((l|0)/8|0)|0)){break L11211}B=l-1-((l|0)/8|0)|0;C=k-1-(dC(d,k-1|0,B,k,j,0,4)|0)|0;if((C|0)>((k*6|0|0)/8|0|0)){o=(o*99|0|0)/100|0}if((dC(d,k-1|0,l-1|0,k,j,0,4)|0)<1){break L11211}if((dt(z,y,C,B,d,j,100)|0)<95){break L11211}m=121;do{if((f|0)!=0){if((e|0)!=0){A=8211;break}m=121}else{A=8211}}while(0);if((A|0)==8211){do{if((e|0)!=0){if((f|0)!=0){if((l|0)>=14){A=8215;break}}m=89}else{A=8215}}while(0);if((A|0)==8215){o=(o*98|0|0)/100|0}}dy(a,m,o)|0;break L11211}}while(0)}}while(0);n=100;o=100;if((k|0)>2){D=(l|0)>3}else{D=0}if(!D){E=a;F=E+36|0;G=c[F>>2]|0;return G|0}if((c[b+108>>2]|0)>1){E=a;F=E+36|0;G=c[F>>2]|0;return G|0}do{if(((du(g,g,i-((l|0)/8|0)|0,i,c[a+68>>2]|0,j,1)|0)<<24>>24|0)==1){if(((du(g,g+((k<<2|0)/8|0)|0,h+((l|0)/8|0)|0,h+((l|0)/8|0)|0,c[a+68>>2]|0,j,1)|0)<<24>>24|0)==1){break}E=a;F=E+36|0;G=c[F>>2]|0;return G|0}else{if(((du(g,g+((k*3|0|0)/8|0)|0,h+((l|0)/8|0)|0,h+((l|0)/8|0)|0,c[a+68>>2]|0,j,1)|0)<<24>>24|0)==1){break}E=a;F=E+36|0;G=c[F>>2]|0;return G|0}}while(0);do{if((dv(0,k-1|0,(l|0)/8|0,(l|0)/8|0,d,j)|0)!=2){if((dv(0,k-1|0,1,1,d,j)|0)==2){break}E=a;F=E+36|0;G=c[F>>2]|0;return G|0}}while(0);if((dv((k|0)/2|0,(k|0)/2|0,0,1,d,j)|0)!=0){E=a;F=E+36|0;G=c[F>>2]|0;return G|0}do{if((dv(0,k-1|0,l-1|0,l-1|0,d,j)|0)!=1){if((dv(0,k-1|0,l-2|0,l-2|0,d,j)|0)==1){break}E=a;F=E+36|0;G=c[F>>2]|0;return G|0}}while(0);do{if((dv(k-1|0,k-1|0,0,l-1|0,d,j)|0)!=1){if((dv(k-2|0,k-2|0,0,l-1|0,d,j)|0)==1){break}if((dv(k-((k|0)/8|0)-1|0,k-((k|0)/8|0)-1|0,0,l-1|0,d,j)|0)==1){break}E=a;F=E+36|0;G=c[F>>2]|0;return G|0}}while(0);g=(dC(d,k-1|0,l-1-((l|0)/8|0)|0,k,j,0,4)|0)+((k|0)/8|0)+1|0;if((g|0)<(dC(d,0,l-1-((l|0)/8|0)|0,k,j,0,3)|0)){E=a;F=E+36|0;G=c[F>>2]|0;return G|0}q=0;t=(k|0)/4|0;while(1){if((t|0)>=(k-((k|0)/4|0)|0)){break}v=dC(d,t,0,l,j,0,2)|0;if((v|0)>(q|0)){q=v}t=t+1|0}do{if((q|0)<=((l*10|0|0)/16|0|0)){if((q|0)<((l<<1|0)/8|0|0)){break}g=k;x=g;z=g;u=g;q=0;w=0;y=0;r=0;while(1){if((q|0)>=((l|0)/4|0|0)){break}t=dC(d,0,q,k,j,0,3)|0;if((t|0)<(x|0)){x=t;w=q}t=dC(d,k-1|0,q,k,j,0,4)|0;if((t|0)<(z|0)){z=t;y=q}q=q+1|0}if((y|0)>((l|0)/8|0|0)){E=a;F=E+36|0;G=c[F>>2]|0;return G|0}v=k;g=(l|0)/4|0;q=g;r=g;while(1){if((q|0)>=((l*3|0|0)/4|0|0)){break}if((dv(0,k-1|0,q,q,d,j)|0)<2){A=8267;break}t=dC(d,k-1|0,q,k,j,0,4)|0;t=t+(dC(d,k-1-t|0,q,k,j,1,4)|0)|0;H=dC(d,k-1-t|0,q,k,j,0,4)|0;if((H|0)<=(v|0)){v=H;r=q;u=k-1-t-((H|0)/2|0)|0}q=q+1|0}r=r+(((l|0)/16|0)+1)|0;r=r+((dC(d,u,r,v,j,1,2)|0)/2|0)|0;x=x+((dC(d,x,w,k,j,1,3)|0)/2|0)|0;z=k-1-((dC(d,k-1|0,y,k,j,1,4)|0)/2|0)|0;B=l-1-((l|0)/8|0)|0;C=k-1-(dC(d,k-1|0,B,k,j,0,4)|0)|0;if((C|0)>((k*6|0|0)/8|0|0)){E=a;F=E+36|0;G=c[F>>2]|0;return G|0}v=0;t=k-1|0;while(1){if((v|0)>=((l|0)/4|0|0)){break}H=dC(d,k-1|0,l-1-v|0,k,j,0,4)|0;if((H|0)>(t+((k|0)/16|0)+1|0)){A=8277;break}if((H|0)<(t|0)){t=H}v=v+1|0}if((v|0)<((l|0)/4|0|0)){C=C-((dC(d,C,B,k,j,1,4)|0)/2|0)|0}do{if((dt(x,w,u,r,d,j,100)|0)<95){if((dt(x,w,u-1|0,r,d,j,100)|0)>=95){break}E=a;F=E+36|0;G=c[F>>2]|0;return G|0}}while(0);do{if((dt(z,y,u,r,d,j,100)|0)<95){if((dt(z,y,u-1|0,r,d,j,100)|0)>=95){break}z=z+((dC(d,z,y,(k|0)/4|0,j,1,3)|0)-1)|0;y=y+((dC(d,z,y,(l|0)/8|0,j,1,2)|0)-1)|0;if((dt(z,y,u,r,d,j,100)|0)>=95){break}E=a;F=E+36|0;G=c[F>>2]|0;return G|0}}while(0);if((dt(u,r,C,B,d,j,100)|0)<95){E=a;F=E+36|0;G=c[F>>2]|0;return G|0}do{if((r|0)>=((l*5|0|0)/8|0|0)){if((f|0)!=0){break}if((dt(x,w,C,B,d,j,100)|0)>95){do{if((dt(z,y,C,B,d,j,100)|0)>95){if((k|0)>4){E=a;F=E+36|0;G=c[F>>2]|0;return G|0}else{o=(o*98|0|0)/100|0;break}}}while(0)}}}while(0);x=dC(d,0,(l|0)/8|0,k,j,0,3)|0;z=dC(d,0,(l|0)/2|0,k,j,0,3)|0;u=dC(d,0,l-1|0,k,j,0,3)|0;if((z<<1|0)<(x+u|0)){o=(o*98|0|0)/100|0}if((z<<1|0)<=(x+u|0)){o=(o*98|0|0)/100|0}if((z<<1|0)<=(x+u+1|0)){o=(o*98|0|0)/100|0}m=121;do{if((f|0)==0){if((e|0)!=0){break}o=(o*98|0|0)/100|0}}while(0);if((h|0)<((c[a+56>>2]|0)-(((c[a+56>>2]|0)-(c[a+52>>2]|0)|0)/4|0)|0)){m=89;if((f|0)!=0){o=(o*98|0|0)/100|0}}dy(a,m,o)|0;E=a;F=E+36|0;G=c[F>>2]|0;return G|0}}while(0);E=a;F=E+36|0;G=c[F>>2]|0;return G|0}function c_(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;b=i;i=i+40|0;d=b|0;e=a;a=c[e>>2]|0;f=c[e+36>>2]|0;g=c[e+40>>2]|0;h=c[a>>2]|0;j=c[a+4>>2]|0;k=c[a+8>>2]|0;l=c[a+12>>2]|0;m=j-h+1|0;n=l-k+1|0;o=e+44|0;p=57344;q=100;r=100;if((m|0)>3){s=(n|0)>3}else{s=0}if(!s){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((c[e+108>>2]|0)>0){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((c[a+196>>2]|0)>1){r=(r*98|0|0)/100|0}q=(cH(32)|0)<<1;if((c[o+8>>2]|0)>(q|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((c[o+24>>2]|0)>(q|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((c[o+40>>2]|0)>(q|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((c[o+56>>2]|0)>(q|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if(((c[o+48>>2]|0)-(c[o>>2]|0)|0)<((m|0)/2|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if(((c[o+32>>2]|0)-(c[o+16>>2]|0)|0)<((m|0)/2|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if(((c[o+20>>2]|0)-(c[o+4>>2]|0)|0)<((n|0)/2|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if(((c[o+36>>2]|0)-(c[o+52>>2]|0)|0)<((n|0)/2|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if(((c[o+48>>2]|0)-(c[o>>2]|0)|0)<3){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if(((c[o+32>>2]|0)-(c[o+16>>2]|0)|0)<3){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if(((c[o+52>>2]|0)-k|0)>((n|0)/8|0|0)){r=(r*99|0|0)/100|0}if(((c[o+4>>2]|0)-k|0)>((n|0)/8|0|0)){r=(r*99|0|0)/100|0}e=c[a+296+((cI(a,c[o+28>>2]|0,c[o+44>>2]|0,h+((m|0)/2|0)|0,k)|0)<<3)+4>>2]|0;do{if((e|0)>=(k+((n|0)/2|0)|0)){if((e|0)<((c[o+20>>2]|0)-((n|0)/8|0)|0)){if((e|0)<((c[o+36>>2]|0)-((n|0)/8|0)|0)){break}}if((m<<1|0)<(n|0)){r=(r*99|0|0)/100|0}q=cG(a,c[o+60>>2]|0,c[o+12>>2]|0)|0;if((q|0)>((cH(256)|0)<<1|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}s=q-((cH(1024)|0)/2|0)|0;r=(aa(100-(((s|0)/(cH(1024)|0)|0|0)/4|0)|0,r)|0)/100|0;q=cG(a,c[o+28>>2]|0,c[o+44>>2]|0)|0;if((q|0)>((cH(256)|0)<<1|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}s=cI(a,c[o+12>>2]|0,c[o+28>>2]|0,j,k)|0;w=c[a+296+(s<<3)>>2]|0;x=c[a+296+(s<<3)+4>>2]|0;if((x-k|0)>((n*5|0|0)/8|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((w-h|0)<((m*3|0|0)/8|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((w-(c[o>>2]|0)|0)<=((m|0)/4|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((w-(c[o>>2]|0)|0)<=((m|0)/3|0|0)){r=(r*98|0|0)/100|0}if((w-(c[o>>2]|0)|0)<((m|0)/2|0|0)){r=(r*99|0|0)/100|0}y=cI(a,c[o+12>>2]|0,c[o+28>>2]|0,j+(m<<1)|0,(k+l|0)/2|0)|0;do{if(((c[a+296+(y<<3)+4>>2]|0)-k|0)>((n+2|0)/4|0|0)){if(((c[a+296+(y<<3)>>2]|0)-w|0)<0){break}t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}}while(0);do{if(((c[a+296+(y<<3)+4>>2]|0)-x|0)>(((n|0)/8|0)+1|0)){if(((c[a+296+(y<<3)>>2]|0)-w|0)<((-m|0)/8|0|0)){break}r=(r*98|0|0)/100|0}}while(0);do{if(((c[a+296+(y<<3)+4>>2]|0)-x|0)>(((n|0)/8|0)+1|0)){if(((c[a+296+(y<<3)>>2]|0)-w|0)<0){break}r=(r*97|0|0)/100|0}}while(0);if(((c[a+296+(y<<3)+4>>2]|0)-x|0)>(((n|0)/16|0)+1|0)){r=(r*99|0|0)/100|0}if(((c[a+296+(y<<3)>>2]|0)-(c[o>>2]|0)|0)<((c[o+48>>2]|0)-(c[a+296+(y<<3)>>2]|0)|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if(((c[a+296+(y<<3)>>2]|0)-(c[o>>2]|0)|0)<((c[o+48>>2]|0)-(c[a+296+(y<<3)>>2]|0)-1<<1|0)){r=(r*98|0|0)/100|0}z=cI(a,c[o+44>>2]|0,c[o+12>>2]|0,j+m|0,k)|0;A=cI(a,c[o+44>>2]|0,c[o+12>>2]|0,j,k-m|0)|0;B=cH((c[a+296+(A<<3)>>2]|0)-(c[a+296+(z<<3)>>2]|0)|0)|0;q=B+(cH((c[a+296+(A<<3)+4>>2]|0)-(c[a+296+(z<<3)+4>>2]|0)|0)|0)|0;if((q|0)>((cH(((m|0)/8|0)+1|0)|0)<<1|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}do{if((q|0)>0){if((m|0)>=8){break}r=(r*99|0|0)/100|0}}while(0);do{if((q|0)>1){if((m|0)>=16){break}r=(r*98|0|0)/100|0}}while(0);y=cG(a,c[o+12>>2]|0,s)|0;q=y;c[d>>2]=y;if((q|0)>((cH(256)|0)<<1|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}y=cG(a,s,c[o+28>>2]|0)|0;q=y;c[d+4>>2]=y;if((q|0)>((cH(256)|0)<<1|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}y=cI(a,c[o+44>>2]|0,c[o+60>>2]|0,h,l)|0;w=c[a+296+(y<<3)>>2]|0;x=c[a+296+(y<<3)+4>>2]|0;if((x-k|0)<((n*3|0|0)/8|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if((w-h|0)>((m*5|0|0)/8|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if(((c[o+32>>2]|0)-w|0)<=((m|0)/4|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if(((c[o+32>>2]|0)-w|0)<=((m|0)/3|0|0)){r=(r*98|0|0)/100|0}if(((c[o+32>>2]|0)-w|0)<((m|0)/2|0|0)){r=(r*99|0|0)/100|0}z=cG(a,y,c[o+60>>2]|0)|0;q=z;c[d+8>>2]=z;if((q|0)>((cH(256)|0)*3|0|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}do{if((m|0)>9){if((q|0)<=((cH(256)|0)<<1|0)){break}t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}}while(0);w=cG(a,c[o+44>>2]|0,y)|0;q=w;c[d+12>>2]=w;if((q|0)>((cH(256)|0)<<1|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}if(((c[a+296+(s<<3)>>2]|0)-(c[a+296+(y<<3)>>2]|0)|0)<(((m|0)/8|0)-1|0)){t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}w=c[d>>2]|0;r=(aa(100-((w|0)/(cH(256)|0)|0)|0,r)|0)/100|0;w=c[d+4>>2]|0;r=(aa(100-((w|0)/(cH(256)|0)|0)|0,r)|0)/100|0;w=c[d+8>>2]|0;r=(aa(100-((w|0)/(cH(256)|0)|0)|0,r)|0)/100|0;w=c[d+12>>2]|0;r=(aa(100-((w|0)/(cH(256)|0)|0)|0,r)|0)/100|0;if((g|0)!=0){r=(r*98|0|0)/100|0}p=122;if((f|0)!=0){p=90}w=a;x=p;z=r;dy(w,x,z)|0;t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}}while(0);t=a;u=t+36|0;v=c[u>>2]|0;i=b;return v|0}function c$(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=0;h=c[b+8>>2]|0;i=(c[a+4>>2]|0)-(c[a>>2]|0)+1|0;j=(c[a+12>>2]|0)-(c[a+8>>2]|0)+1|0;k=100;l=100;if((i|0)>3){m=(j|0)>3}else{m=0}L11633:do{if(m){if((c[b+108>>2]|0)>1){break}n=(j|0)/8|0;while(1){if((n|0)>=((j|0)/2|0|0)){break}if((dv(0,i-1|0,n,n,d,h)|0)<2){o=8480;break}n=n+1|0}if((n|0)<((j|0)/2|0|0)){break}p=j-1|0;do{if((i|0)>4){n=j-1-((j|0)/16|0)|0;while(1){if((n|0)<=((j*3|0|0)/4|0|0)){break}if((dv(0,i-1|0,n,n,d,h)|0)==2){o=8489;break}n=n-1|0}if((n|0)==((j*3|0|0)/4|0|0)){break L11633}else{break}}}while(0);p=n;q=dC(d,0,(j|0)/4|0,i,h,0,3)|0;q=dC(d,q,(j|0)/4|0,i,h,1,3)|0;r=0;s=0;while(1){if((n|0)<=((j|0)/4|0|0)){break}if((dv(0,i-1|0,n,n,d,h)|0)==4){s=s+1|0}else{if((dv(0,i-1|0,n,n,d,h)|0)>=3){r=r+1|0}}n=n-1|0}do{if((s+5|0)<((j|0)/4|0|0)){if((q*7|0|0)>=(j|0)){break}break L11633}}while(0);do{if((s+r|0)==0){if((j|0)<=6){if((i|0)<=4){break}}break L11633}}while(0);L11685:do{if((s+r|0)==0){if((i|0)>4){break}q=dC(d,1,j-1|0,j,h,0,1)|0;if((P(q-(dC(d,i-2|0,j-1|0,j,h,0,1)|0)|0)|0)>(((j|0)/8|0)+1|0)){break L11633}if((dC(d,1,0,j,h,0,2)|0)>=(j-2|0)){if((dC(d,0,j-1|0,j,h,0,1)|0)<=0){o=8517}}else{o=8517}do{if((o|0)==8517){if((dC(d,i-2|0,0,j,h,0,2)|0)>=(j-2|0)){if((dC(d,i-1|0,j-1|0,j,h,0,1)|0)>0){break}}l=(l*99|0|0)/100|0;break L11685}}while(0);break L11633}}while(0);do{if((dv(0,i-1|0,1,1,d,h)|0)<2){if((dv(0,i-1|0,(j|0)/16|0,(j|0)/16|0,d,h)|0)>=2){break}break L11633}}while(0);t=dC(d,0,p,i,h,0,3)|0;u=dC(d,t,p,i,h,1,3)|0;u=t+((u|0)/2|0)|0;if((u|0)>((i|0)/2|0|0)){break}t=dC(d,i-1|0,p,i,h,0,4)|0;v=dC(d,i-1-t|0,p,i,h,1,4)|0;v=i-1-t-((v|0)/2|0)|0;if((v|0)<((i*3|0|0)/8|0|0)){break}n=0;r=u+1|0;t=r;q=r;while(1){if((t|0)>=(v|0)){break}r=dC(d,t,j-1|0,j,h,0,1)|0;s=r;if((r|0)>(n|0)){q=t;n=s}t=t+1|0}do{if((i|0)>4){if((n|0)!=0){break}break L11633}}while(0);r=j-1-n|0;n=dC(d,q,r,j,h,1,1)|0;if((n|0)!=0){n=n-1|0}if((j|0)>6){o=8541}else{if((i|0)>4){o=8541}}if((o|0)==8541){do{if((dv(0,q,r-n|0,r-n|0,d,h)|0)!=2){if((dv(0,q,r-((n|0)/2|0)|0,r-((n|0)/2|0)|0,d,h)|0)==2){break}break L11633}}while(0);do{if((dv(q,i-1|0,r-n|0,r-n|0,d,h)|0)!=2){if((dv(q,i-1|0,r-((n|0)/2|0)|0,r-((n|0)/2|0)|0,d,h)|0)==2){break}break L11633}}while(0)}r=r-((n|0)/2|0)|0;t=dC(d,0,1,i,h,0,3)|0;w=dC(d,t,1,i,h,1,3)|0;if((t+w|0)>(u|0)){w=t+((w|0)/4|0)|0}else{w=t+((w|0)/2|0)|0}t=dC(d,i-1|0,1,i,h,0,4)|0;x=dC(d,i-1-t|0,1,i,h,1,4)|0;x=i-1-t-((x|0)/2|0)|0;do{if((r|0)<((j|0)/2|0|0)){if((q|0)>=((i|0)/2|0|0)){break}l=(l*98|0|0)/100|0}}while(0);do{if((r|0)<((j|0)/2|0|0)){if((q|0)>=((i*3|0|0)/8|0|0)){break}l=(l*96|0|0)/100|0}}while(0);s=dC(d,w,1,i,h,1,3)|0;t=w;while(1){if((t|0)>=(w+s|0)){break}if((dt(t,1,u,p,d,h,100)|0)>94){o=8560;break}t=t+1|0}if((t|0)==(w+s|0)){break}do{if((dt(u,p-1|0,q,r,d,h,100)|0)<95){if((dt(u,p-1|0,q,r+((j|0)/32|0)|0,d,h,100)|0)>=95){break}if((dt(u,p-1|0,q,r+((j|0)/16|0)|0,d,h,100)|0)>=95){break}break L11633}}while(0);do{if((dt(q,r,v,p,d,h,100)|0)<95){if((dt(q+1|0,r,v,p,d,h,100)|0)>=95){break}break L11633}}while(0);do{if((dt(v,p,x,((j|0)/16|0)+1|0,d,h,100)|0)<95){if((dt(v,p,i-1|0,((j|0)/8|0)+1|0,d,h,100)|0)>=95){break}if((dt(v,p,x+((i|0)/20|0)|0,((j|0)/16|0)+1|0,d,h,100)|0)>=95){break}break L11633}}while(0);s=0;n=(j*5|0|0)/8|0;while(1){if((n|0)>=(j|0)){break}t=dC(d,i-1|0,n,i,h,0,4)|0;if((t|0)>(s|0)){s=t}if((t|0)<(s-2|0)){o=8581;break}if((t|0)<(s|0)){l=(l*98|0|0)/100|0}n=n+1|0}if((n|0)<(j|0)){break}y=(e|0)!=0?87:119;if((f|0)!=0){l=(l*98|0|0)/100|0}dy(a,y,l)|0}}while(0);k=100;l=100;if((i|0)>3){z=(j|0)>3}else{z=0}if(!z){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}if((c[b+108>>2]|0)>1){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}if((dv(0,i-1|0,(j|0)/2|0,(j|0)/2|0,d,h)|0)<2){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}if((dv(0,i-1|0,(j|0)/8|0,(j|0)/8|0,d,h)|0)<2){g=40}if((dv(0,i-1|0,(j|0)/4|0,(j|0)/4|0,d,h)|0)<2){g=80}s=0;n=0;while(1){if((n|0)>=(j-1|0)){break}if((dv(0,i-1|0,n,n,d,h)|0)==3){s=s+1|0}n=n+1|0}if((s|0)<=((j|0)/8|0|0)){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}n=(j|0)/2|0;while(1){if((n|0)>=(j-1-((j|0)/8|0)|0)){break}if((dv(0,i-1|0,n,n,d,h)|0)==3){o=8614;break}n=n+1|0}p=n;t=dC(d,0,p,i,h,0,3)|0;t=t+(dC(d,t,p,i,h,1,3)|0)|0;if((t|0)>((i|0)/2|0|0)){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}u=dC(d,t,p,i,h,0,3)|0;u=t+((u|0)/2|0)|0;if((u|0)>((i|0)/2|0|0)){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}t=dC(d,i-1|0,p,i,h,0,4)|0;t=t+(dC(d,i-1-t|0,p,i,h,1,4)|0)|0;v=dC(d,i-1-t|0,p,i,h,0,4)|0;v=i-1-t-((v|0)/2|0)|0;if((v|0)<((i*3|0|0)/8|0|0)){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}if((dv(u,v,p,p,d,h)|0)!=1){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}if((dv(u,u,p,j-1|0,d,h)|0)!=1){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}if((dv(v,v,p,j-1|0,d,h)|0)!=1){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}if((dv(u,u,0,p,d,h)|0)!=0){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}if((dv(v,v,0,p,d,h)|0)!=0){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}if((c[b+108>>2]|0)!=0){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}s=0;n=(j*3|0|0)/4|0;while(1){if((n|0)>=(j|0)){break}t=dC(d,i-1|0,n,i,h,0,4)|0;if((t|0)>(s|0)){s=t}if((t|0)<(s-2|0)){o=8640;break}n=n+1|0}if((n|0)<(j|0)){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}y=(e|0)!=0?87:119;if((f|0)!=0){l=(l*98|0|0)/100|0}dy(a,y,l)|0;A=a;B=A+36|0;C=c[B>>2]|0;return C|0}function c0(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=b+44|0;o=100;p=100;if((l|0)>2){q=(m|0)>3}else{q=0}L11897:do{if(q){if((c[b+108>>2]|0)>2){break}do{if(((du((l|0)/2|0,(l|0)/2|0,m-1-((m|0)/8|0)|0,m-1|0,d,k,1)|0)<<24>>24|0)==1){if(((du(((l|0)/2|0)-1|0,((l|0)/2|0)-1|0,m-1-((m|0)/8|0)|0,m-1|0,d,k,1)|0)<<24>>24|0)!=1){break}break L11897}}while(0);r=0;if((c[a+40>>2]|0)!=0){r=0;while(1){if((r|0)>=((m|0)/2|0|0)){break}if((dv(0,l-1|0,r,r,d,k)|0)==0){s=8677;break}r=r+1|0}}if((r|0)>=((m|0)/2|0|0)){r=0}do{if((dv(0,l-1|0,r+1|0,r+1|0,d,k)|0)!=1){if((dv(0,l-1|0,r+((m|0)/8|0)|0,r+((m|0)/8|0)|0,d,k)|0)==1){break}if((dv(0,l-1|0,r+((m|0)/16|0)|0,r+((m|0)/16|0)|0,d,k)|0)==1){break}if((dv(0,l-1|0,r+((m|0)/8|0)+1|0,r+((m|0)/8|0)+1|0,d,k)|0)==1){break}break L11897}}while(0);do{if((dv(0,l-1|0,(m*7|0|0)/8|0,(m*7|0|0)/8|0,d,k)|0)!=2){if((dv(0,l-1|0,((m*7|0|0)/8|0)-1|0,((m*7|0|0)/8|0)-1|0,d,k)|0)==2){break}break L11897}}while(0);if((dv(0,(l|0)/8|0,r+((m|0)/8|0)|0,r|0,d,k)|0)>0){break}t=r+((m|0)/8|0)|0;while(1){if((t|0)>=(r+((m|0)/2|0)|0)){break}if((dv(0,l-1|0,t,t,d,k)|0)>1){s=8696;break}t=t+1|0}if((t|0)==(r+((m|0)/2|0)|0)){break}u=t;if((m|0)>20){u=u+1|0}v=dC(d,0,u,l,k,0,3)|0;if((v|0)>((l*3|0|0)/4|0|0)){break}v=v+(dC(d,v,u,l,k,1,3)|0)|0;if((v|0)>((l*3|0|0)/4|0|0)){break}w=v;v=v+(dC(d,v,u,l,k,0,3)|0)|0;if((v|0)<((l*3|0|0)/8|0|0)){break}w=(v+w|0)/2|0;t=t+(dC(d,w,t,m,k,1,2)|0)|0;t=t+(dC(d,w,t,m,k,0,2)|0)|0;if((t|0)>((m*3|0|0)/4|0|0)){p=(p*99|0|0)/100|0}if((t|0)>((m*5|0|0)/6|0|0)){break}do{if((c[b+108>>2]|0)==(((c[a+40>>2]|0)==730?2:1)|0)){if(((c[b+136>>2]|0)-r|0)>=(m-1-((m|0)/4|0)|0)){break}x=0;y=0;v=(l|0)/3|0;while(1){if((v|0)>=((l<<1|0)/3|0|0)){break}y=dv(w,v,t,m-1|0,d,k)|0;if((y|0)<1){s=8722}else{if((y|0)>2){s=8722}}if((s|0)==8722){s=0;y=dv(w,v,t+((m|0)/16|0)|0,m-1|0,d,k)|0}if((y|0)<1){s=8725;break}if((y|0)>2){s=8725;break}if((y|0)==1){x=v}v=v+1|0}do{if((y|0)>=1){if((y|0)>2){break}if((x|0)==0){break}if(((du(l-1-((l|0)/4|0)|0,l-1|0,m-1-((m|0)/4|0)|0,m-1|0,d,k,1)|0)<<24>>24|0)!=1){break L11897}u=dC(d,l-1|0,r+((m-r|0)/4|0)|0,l,k,0,4)|0;w=dC(d,l-1|0,r+((m-r|0)/2|0)|0,l,k,0,4)|0;x=dC(d,l-1|0,m-1-((m-r|0)/4|0)|0,l,k,0,4)|0;if(((w<<1)-((l|0)/8|0)|0)>(u+x|0)){p=(p*99|0|0)/100|0}do{if(((w<<1)+((l|0)/4|0)|0)>=(u+x|0)){if(((w<<1)-((l|0)/4|0)|0)>(u+x|0)){break}u=dC(d,0,r+((m-r|0)/4|0)|0,l,k,0,3)|0;w=dC(d,0,r+((m-r|0)/2|0)|0,l,k,0,3)|0;x=dC(d,0,m-1-((m-r|0)/4|0)|0,l,k,0,3)|0;if(((w<<1)-((l|0)/8|0)|0)>(u+x|0)){p=(p*98|0|0)/100|0}do{if(((w<<1)+((l|0)/4|0)|0)>=(u+x|0)){if(((w<<1)-((l|0)/4|0)|0)>(u+x|0)){break}if((u|0)<(x|0)){break}x=l;t=r+((m-r|0)/4|0)|0;while(1){if((t|0)>=((m*7|0|0)/8|0|0)){break}u=dC(d,0,t,l,k,0,3)|0;w=dC(d,l-1|0,t,l,k,0,4)|0;if((u+w|0)>(x+((l|0)/16|0)|0)){s=8750;break}if((u+12|0)<(x|0)){x=u+w|0}t=t+1|0}if((t|0)<((m*7|0|0)/8|0|0)){break L11897}z=dC(d,0,m-1-((m|0)/8|0)|0,l,k,0,3)|0;if((z-(dC(d,0,(m|0)/2|0,l,k,0,3)|0)|0)>0){p=(p*97|0|0)/100|0}if((e|0)==0){p=(p*99|0|0)/100|0}dy(a,65,p)|0;break L11897}}while(0);break L11897}}while(0);break L11897}}while(0);break L11897}}while(0)}}while(0);o=100;p=100;if((l|0)>2){A=(m|0)>4}else{A=0}L12034:do{if(A){if((c[b+108>>2]|0)>1){break}if((c[a+196>>2]|0)!=((c[a+24>>2]|0)+2|0)){break}do{if((c[n>>2]|0)<=(g+((l|0)/4|0)|0)){if((c[n+4>>2]|0)>(i+((m|0)/4|0)|0)){break}do{if((c[n+16>>2]|0)<=(g+((l|0)/4|0)|0)){if((c[n+20>>2]|0)<(j-((m|0)/4|0)|0)){break}do{if((c[n+32>>2]|0)>=(h-((l|0)/4|0)|0)){if((c[n+36>>2]|0)<(j-((m|0)/4|0)|0)){break}do{if((c[n+48>>2]|0)>=(h-((l|0)/4|0)|0)){if((c[n+52>>2]|0)>(i+((m|0)/4|0)|0)){break}u=cI(a,c[n+12>>2]|0,c[n+28>>2]|0,h,i+((m|0)/3|0)|0)|0;do{if((c[a+296+(u<<3)>>2]|0)>(c[n>>2]|0)){if((c[a+296+(u<<3)>>2]|0)<=(c[n+16>>2]|0)){break}if((c[a+296+(u<<3)>>2]|0)<(g+((l|0)/3|0)|0)){break L12034}do{if((c[a+296+(u<<3)>>2]|0)<(h-((l|0)/3|0)|0)){B=dC(c[a+68>>2]|0,g+((l|0)/2|0)|0,i,j-i|0,k,0,2)|0;if((B|0)>((m|0)/8|0|0)){break L12034}B=dC(c[a+68>>2]|0,g+((l|0)/2|0)|0,i+B|0,j-i|0,k,1,2)|0;q=dC(c[a+68>>2]|0,g+((l|0)/2|0)|0,j,j-i|0,k,0,1)|0;if((q|0)>((m|0)/8|0|0)){break L12034}q=dC(c[a+68>>2]|0,g+((l|0)/2|0)|0,j-q|0,j-i|0,k,1,1)|0;if((q|0)>((m|0)/3|0|0)){break L12034}if((B|0)<((q<<1)-((m|0)/16|0)|0)){break L12034}else{p=(p*98|0|0)/100|0;break}}}while(0);if((c[a+296+(u<<3)+4>>2]|0)>(i+((m|0)/2|0)|0)){break L12034}w=cI(a,u,c[n+28>>2]|0,g-((l|0)/2|0)|0,i+((m|0)/2|0)|0)|0;if((c[a+296+(w<<3)>>2]|0)>(g+((l+4|0)/8|0)+1|0)){break L12034}if((c[a+296+(w<<3)+4>>2]|0)>(j-((m|0)/4|0)|0)){break L12034}B=0;while(1){if((B|0)>=(c[a+196>>2]|0)){break}if((c[a+200+(B<<2)>>2]|0)<0){s=8806;break}B=B+1|0}do{if((B|0)<(c[a+196>>2]|0)){if((B|0)<1){break}x=c[a+264+(B-1<<2)>>2]|0;y=(c[a+264+(B<<2)>>2]|0)-1|0;if((c[a+296+((cI(a,x,y,g+((l|0)/2|0)|0,i)|0)<<3)+4>>2]|0)<(i+((m|0)/3|0)|0)){break L12034}if((c[a+56>>2]|0)!=0){if((c[b+40>>2]|0)!=0){p=(p*98|0|0)/100|0}if((c[b+36>>2]|0)!=0){p=(p*98|0|0)/100|0}}else{p=(p*99|0|0)/100|0}q=a;r=p;dy(q,97,r)|0;if((p|0)<100){break L12034}C=97;D=C;return D|0}}while(0);break L12034}}while(0);break L12034}}while(0);break L12034}}while(0);break L12034}}while(0);break L12034}}while(0)}}while(0);o=100;p=100;if((l|0)>3){E=(m|0)>3}else{E=0}L12123:do{if(E){if((c[b+108>>2]|0)>2){break}if(((du(g,g+((l|0)/2|0)|0,i+((m|0)/2|0)|0,i+((m|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(h-((l|0)/2|0)|0,h,i+((m|0)/2|0)|0,i+((m|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,j-((m|0)/2|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,i,i+((m|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(g+((l|0)/3|0)|0,g+((l|0)/3|0)|0,i,i+((m|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}B=dC(d,(l|0)/2|0,0,m,k,0,2)|0;if((B|0)>((m|0)/4|0|0)){break}B=B+(dC(d,(l|0)/2|0,B,m,k,1,2)|0)|0;if((B|0)>((m|0)/2|0|0)){break}B=dC(d,(l|0)/2|0,B,m,k,0,2)|0;if((B|0)<((m|0)/4|0|0)){break}if(((du(g,g,j,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){break}if((dv(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,i,j,c[a+68>>2]|0,k)|0)!=2){break}do{if((dv(g+((l|0)/3|0)|0,h-((l|0)/3|0)|0,i,i,c[a+68>>2]|0,k)|0)!=1){if((dv(g+((l|0)/3|0)|0,h-((l|0)/3|0)|0,i+1|0,i+1|0,c[a+68>>2]|0,k)|0)!=1){break L12123}else{break}}}while(0);B=dC(d,(l|0)/2|0,m-1|0,m,k,0,1)|0;if((B|0)>((m|0)/3|0|0)){break}t=B+(dC(d,(l|0)/2|0,m-1-B|0,m,k,1,1)|0)|0;if((B|0)>((m|0)/2|0|0)){break}do{if((dv(g+((l|0)/2|0)-1|0,h,j,j,c[a+68>>2]|0,k)|0)<2){if((dv(g+((l|0)/2|0)-1|0,h,j-B|0,j-B|0,c[a+68>>2]|0,k)|0)>=2){break}if((dv(g+((l|0)/2|0)-1|0,h,j-t|0,j-t|0,c[a+68>>2]|0,k)|0)>=2){break}n=dC(d,0,m-1-((m|0)/16|0)|0,l,k,0,3)|0;if((n|0)<((dC(d,l-1|0,m-1-((m|0)/16|0)|0,l,k,0,4)|0)<<2|0)){break L12123}p=(p*98|0|0)/100|0}}while(0);do{if((dv(g,h,i+((m|0)/2|0)|0,i+((m|0)/2|0)|0,c[a+68>>2]|0,k)|0)>=2){if((dv(g,h,i+((m|0)/3|0)|0,i+((m|0)/3|0)|0,c[a+68>>2]|0,k)|0)<2){break}do{if((dv(g,g,i+((m|0)/3|0)|0,j-((m|0)/4|0)|0,c[a+68>>2]|0,k)|0)!=1){if((dv(g+1|0,g+1|0,i+((m|0)/3|0)|0,j-((m|0)/4|0)|0,c[a+68>>2]|0,k)|0)!=1){break L12123}else{break}}}while(0);do{if((c[b+108>>2]|0)!=1){if((dH(g,h-2|0,i,j,c[a+68>>2]|0,k,0)|0)!=1){break L12123}else{break}}}while(0);if((dH(g,h,i+((m|0)/3|0)|0,j-1|0,c[a+68>>2]|0,k,0)|0)!=0){break L12123}n=dC(d,0,0,h-g|0,k,0,3)|0;if((n|0)<=(dC(d,0,2,h-g|0,k,0,3)|0)){break L12123}do{if((dC(d,l-1|0,m-1|0,h-g|0,k,0,4)|0)>((l|0)/4|0|0)){if((dC(d,l-1|0,m-2|0,h-g|0,k,0,4)|0)<=((l+4|0)/8|0|0)){break}p=(p*97|0|0)/100|0}}while(0);v=dC(d,l-1|0,m-1-((m|0)/4|0)|0,l,k,0,4)|0;B=dC(d,l-1|0,(m|0)/4|0,l,k,0,4)|0;if((P(v-B|0)|0)>((l|0)/4|0|0)){break L12123}v=(l|0)/4|0;while(1){if((v|0)>=(l-((l|0)/4|0)|0)){break}B=dC(d,v,0,j-i|0,k,0,2)|0;if((B|0)>((m|0)/2|0|0)){s=8888;break}B=dC(d,v,m-1|0,j-i|0,k,0,1)|0;if((B|0)>((m|0)/2|0|0)){s=8890;break}v=v+1|0}if((v|0)<(l-((l|0)/4|0)|0)){break L12123}if((dv(g,h,j,j,c[a+68>>2]|0,k)|0)==1){if((dv(g,h,i,i,c[a+68>>2]|0,k)|0)==1){do{if((dC(d,l-1|0,0,j-i|0,k,0,2)|0)>((m|0)/4|0|0)){if((dC(d,l-1|0,m-1|0,j-i|0,k,0,1)|0)<=((m|0)/4|0|0)){break}break L12123}}while(0)}}if((dC(d,(l|0)/2|0,m-1|0,j-i|0,k,0,1)|0)>((m|0)/4|0|0)){break L12123}do{if((p|0)>99){if((dC(d,l-1|0,m-1|0,j-i|0,k,0,1)|0)<=((m|0)/32|0|0)){break}p=(p*98|0|0)/100|0}}while(0);if((e|0)!=0){p=(p*96|0|0)/100|0}if((f|0)!=0){p=(p*98|0|0)/100|0}dy(a,97,p)|0;break L12123}}while(0)}}while(0);o=100;p=100;if((l|0)>2){F=(m|0)>4}else{F=0}L12249:do{if(F){if((c[b+108>>2]|0)>2){break}if(((du((l|0)/2|0,(l|0)/2|0,m-1-((m|0)/8|0)|0,m-1|0,d,k,1)|0)<<24>>24|0)==1){break}do{if((dv(0,l-1|0,1,1,d,k)|0)!=1){if((dv(0,l-1|0,(m|0)/8|0,(m|0)/8|0,d,k)|0)==1){break}if((dv(0,l-1|0,(m|0)/16|0,(m|0)/16|0,d,k)|0)==1){break}if((dv(0,l-1|0,((m|0)/8|0)+1|0,((m|0)/8|0)+1|0,d,k)|0)==1){break}break L12249}}while(0);if((dv(0,l-1|0,m-1|0,m-1|0,d,k)|0)!=1){break}do{if((dv(0,l-1|0,(m|0)/4|0,(m|0)/4|0,d,k)|0)!=2){if((dv(0,l-1|0,(m|0)/3|0,(m|0)/3|0,d,k)|0)==2){break}break L12249}}while(0);if((dv(0,(l|0)/8|0,(m|0)/8|0,0,d,k)|0)>0){break}t=(m|0)/8|0;while(1){if((t|0)>=((m|0)/2|0|0)){break}if((dv(0,l-1|0,t,t,d,k)|0)>1){s=8935;break}t=t+1|0}if((t|0)==((m|0)/2|0|0)){break}u=t;if((m|0)>20){u=u+1|0}v=dC(d,0,u,l,k,0,3)|0;if((v|0)>((l*3|0|0)/4|0|0)){break}v=v+(dC(d,v,u,l,k,1,3)|0)|0;if((v|0)>((l*3|0|0)/4|0|0)){break}w=v;v=v+(dC(d,v,u,l,k,0,3)|0)|0;if((v|0)<((l*3|0|0)/8|0|0)){break}w=(v+w|0)/2|0;t=t+(dC(d,w,t,m,k,1,2)|0)|0;t=t+(dC(d,w,t,m,k,0,2)|0)|0;if((t|0)>((m*3|0|0)/4|0|0)){p=(p*99|0|0)/100|0}if((t|0)>((m*5|0|0)/6|0|0)){break}do{if((c[b+108>>2]|0)==1){if((c[b+136>>2]|0)>=(m-1-((m|0)/4|0)|0)){break}x=0;y=0;v=(l|0)/3|0;while(1){if((v|0)>=((l<<1|0)/3|0|0)){break}y=dv(w,v,t,m-1|0,d,k)|0;if((y|0)<1){s=8959}else{if((y|0)>2){s=8959}}if((s|0)==8959){s=0;y=dv(w,v,t+((m|0)/16|0)|0,m-1|0,d,k)|0}if((y|0)<1){s=8962;break}if((y|0)>2){s=8962;break}if((y|0)==1){x=v}v=v+1|0}do{if((y|0)>=1){if((y|0)>2){break}if((x|0)==0){break}if(((du(l-1-((l|0)/4|0)|0,l-1|0,m-1-((m|0)/4|0)|0,m-1|0,d,k,1)|0)<<24>>24|0)!=1){break L12249}if((dv(0,(l|0)/8|0,(m|0)/6|0,0,d,k)|0)>0){break L12249}if((dv(l-1-((l|0)/4|0)|0,l-1|0,0,(m|0)/6|0,d,k)|0)>0){break L12249}u=dC(d,l-1|0,(m|0)/4|0,l,k,0,4)|0;w=dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0;x=dC(d,l-1|0,m-1-((m|0)/4|0)|0,l,k,0,4)|0;do{if(((w<<1)+((l|0)/4|0)|0)>=(u+x|0)){if(((w<<1)-((l|0)/8|0)|0)>(u+x|0)){break}u=dC(d,0,(m|0)/4|0,l,k,0,3)|0;w=dC(d,0,(m|0)/2|0,l,k,0,3)|0;x=dC(d,0,m-1-((m|0)/4|0)|0,l,k,0,3)|0;do{if(((w<<1)+((l|0)/4|0)|0)>=(u+x|0)){if(((w<<1)-((l|0)/8|0)|0)>(u+x|0)){break}if((u|0)<(x|0)){break}x=l;t=(m|0)/4|0;while(1){if((t|0)>=((m*6|0|0)/8|0|0)){break}u=dC(d,0,t,l,k,0,3)|0;w=dC(d,l-1|0,t,l,k,0,4)|0;if((u+w|0)>(x+((l|0)/16|0)|0)){s=8987;break}if((u+12|0)<(x|0)){x=u+w|0}t=t+1|0}if((t|0)<((m*6|0|0)/8|0|0)){break L12249}if((e|0)==0){p=(p*96|0|0)/100|0}if((f|0)==0){p=(p*98|0|0)/100|0}dy(a,260,p)|0;break L12249}}while(0);break L12249}}while(0);break L12249}}while(0);break L12249}}while(0)}}while(0);C=c[a+36>>2]|0;D=C;return D|0}function c1(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=57344;o=100;if((l|0)>2){p=(m|0)>2}else{p=0}if(!p){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((c[b+108>>2]|0)>1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(g,g+((l|0)/3|0)|0,i+((m|0)/2|0)|0,i+((m|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,j-((m|0)/3|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,i,i+((m|0)/3|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((dv(g,(g+h|0)/2|0,(i+j|0)/2|0,(i+j|0)/2|0,c[a+68>>2]|0,k)|0)>1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}b=i+((m|0)/4|0)|0;while(1){if((b|0)>=(i+((m*3|0|0)/4|0)|0)){break}if(((du(g+((l|0)/2|0)|0,h,b,b,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){t=9020;break}b=b+1|0}if((b|0)==(i+((m*3|0|0)/4|0)|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}p=b;u=dC(d,0,(m|0)/2|0,l,k,0,3)|0;u=dC(d,u,(m|0)/2|0,l,k,1,3)|0;if((u|0)>((l|0)/2|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}b=p;v=0;w=g+((l|0)/2|0)|0;while(1){if((w|0)>=(g+((l*6|0|0)/8|0)|0)){break}x=b-1+(dC(c[a+68>>2]|0,g+((l|0)/2|0)|0,p,m,k,0,2)|0)|0;if((x|0)>(v|0)){v=x}w=w+1|0}if((v|0)<(i+((m*5|0|0)/8|0)-((u|0)/2|0)|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}y=p+1-(dC(c[a+68>>2]|0,g+((l*5|0|0)/8|0)|0,p,m,k,0,1)|0)|0;x=p+1-(dC(c[a+68>>2]|0,g+((l<<2|0)/8|0)|0,p,m,k,0,1)|0)|0;if((x|0)<(y|0)){y=x}if((y|0)>(i+((m|0)/4|0)+((u|0)/2|0)|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}b=p;while(1){if((b|0)>=(j-((m|0)/8|0)|0)){break}if(((du(g+((l|0)/2|0)|0,h,b,b,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){t=9042;break}b=b+1|0}if((b-p|0)<((m|0)/6|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}v=b-1|0;if((dv(h-((l|0)/4|0)|0,h-((l|0)/4|0)|0,v,i,c[a+68>>2]|0,k)|0)<1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((dC(c[a+68>>2]|0,g,i+((m*3|0|0)/4|0)|0,l,k,0,3)|0)>((l|0)/16|0|0)){do{if((dv(g+((l|0)/2|0)|0,h,y,j,c[a+68>>2]|0,k)|0)<1){if((dv(g+((l|0)/2|0)|0,h,j-((m|0)/4|0)|0,j,c[a+68>>2]|0,k)|0)>=1){break}if((dv(h,h,j-((m|0)/4|0)|0,j,c[a+68>>2]|0,k)|0)>=1){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0)}x=1;w=(l|0)/2|0;while(1){if((w|0)<(l-1|0)){z=(x|0)!=0}else{z=0}if(!z){break}b=(m|0)/2|0;L12462:while(1){if((b|0)<(m-1-((m|0)/8|0)|0)){A=(x|0)!=0}else{A=0}if(!A){break}do{if((d8(d,w,b)|0)>=(k|0)){if((d8(d,w+1|0,b)|0)>=(k|0)){break}if((d8(d,w+1|0,b-1|0)|0)>=(k|0)){break}if((d8(d,w,b-1|0)|0)<(k|0)){t=9067;break L12462}}}while(0);b=b+1|0}if((t|0)==9067){t=0;x=0}w=w+1|0}if((x|0)==0){o=(o*95|0|0)/100|0}x=dC(d,0,(m|0)/2|0,l,k,0,3)|0;b=0;while(1){if((b|0)>=(m|0)){break}if((dC(d,0,b,l,k,0,3)|0)<(x-1-((l|0)/32|0)|0)){t=9077;break}b=b+1|0}if((b|0)<(m|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}A=0;z=l;b=(m|0)/2|0;while(1){if((b|0)<((m|0)/4|0|0)){break}w=dC(d,0,b,l,k,0,3)|0;w=w+(dC(d,w,b,l,k,1,3)|0)|0;if((w|0)>(A|0)){A=w}x=dC(d,w,b,l,k,0,3)|0;if((x|0)<(z|0)){z=x}if((A|0)<(w-((l|0)/32|0)|0)){if((x|0)>(z+((l|0)/32|0)|0)){t=9090;break}}b=b-1|0}if((b|0)>=((m|0)/4|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((e|0)==0){w=dC(d,0,(m|0)/2|0,l,k,0,3)|0;w=w+(dC(d,w,(m|0)/2|0,l,k,1,3)|0)|0;b=((m|0)/2|0)-(dC(d,w,(m|0)/2|0,m,k,0,1)|0)-1|0;x=w+(dC(d,w,b,l,k,1,3)|0)|0;x=x+(dC(d,x,b,l,k,0,3)|0)|0;if((dv(w,w,1,(m|0)/2|0,d,k)|0)>1){t=9098}else{if((dv(w+1|0,w+1|0,1,(m|0)/2|0,d,k)|0)>1){t=9098}}L12518:do{if((t|0)==9098){do{if((dv(x-1|0,x-1|0,1,(m|0)/2|0,d,k)|0)<=1){if((dv(x,x,1,(m|0)/2|0,d,k)|0)>1){break}break L12518}}while(0);q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0)}do{if((m|0)>16){if((m|0)<=(l*3|0|0)){break}if((e|0)==0){break}w=dC(d,0,(m|0)/16|0,l,k,0,3)|0;w=dC(d,0,m-1-((m|0)/16|0)|0,l,k,0,3)|0;x=(dC(d,0,(m|0)/2|0,l,k,0,3)|0)<<1;do{if((x|0)>=(w|0)){if((dv(0,l-1|0,(m|0)/4|0,(m|0)/4|0,d,k)|0)>=2){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0)}}while(0);do{if(((du(g,g,i,j,c[a+68>>2]|0,k,2)|0)<<24>>24|0)!=2){if(((du(g,h,i,i,c[a+68>>2]|0,k,2)|0)<<24>>24|0)==2){break}if(((du(g,h,j,j,c[a+68>>2]|0,k,2)|0)<<24>>24|0)==2){break}if(((du(h,h,i+1|0,j-1|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);w=dC(d,0,(m|0)/2|0,l,k,0,3)|0;x=dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0;if((x|0)<((l|0)/2|0|0)){t=9118}else{if((x|0)<3){t=9118}}do{if((t|0)==9118){if((e|0)==0){break}if((m|0)<=7){break}do{if((dC(d,0,(m*7|0|0)/8|0,l,k,0,3)|0)>(w+((l|0)/8|0)|0)){if((dC(d,0,(m|0)/8|0,l,k,0,3)|0)<=(w+((l|0)/8|0)|0)){break}j=dC(d,l-1|0,m-1-((m|0)/8|0)|0,l,k,0,4)|0;if((j|0)<=(dC(d,l-1|0,m-1-((m|0)/16|0)|0,l,k,0,4)|0)){break}j=dC(d,l-1|0,(m|0)/8|0,l,k,0,4)|0;if((j|0)<=(dC(d,l-1|0,(m|0)/16|0,l,k,0,4)|0)){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0)}}while(0);do{if((e|0)!=0){if((m|0)<=15){break}if((l|0)<=7){break}if((v-i|0)>=((m*9|0|0)/16|0|0)){break}if((p-i|0)>((m|0)/4|0|0)){break}if((dC(d,(l*5|0|0)/8|0,v-i|0,m,k,0,2)|0)<=((m<<1|0)/8|0|0)){break}j=a;dy(j,71,90)|0;q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);if((e|0)!=0){x=1;w=(l|0)/2|0;while(1){if((w|0)<(l-1|0)){B=(x|0)!=0}else{B=0}if(!B){break}b=1;L12579:while(1){if((b|0)<((m|0)/4|0|0)){C=(x|0)!=0}else{C=0}if(!C){break}do{if((d8(d,w,b)|0)>=(k|0)){if((d8(d,w+1|0,b)|0)>=(k|0)){break}if((d8(d,w+1|0,b-1|0)|0)>=(k|0)){break}if((d8(d,w,b-1|0)|0)<(k|0)){t=9147;break L12579}}}while(0);b=b+1|0}if((t|0)==9147){t=0;x=0}w=w+1|0}if((x|0)!=0){o=(o*98|0|0)/100|0}if((m|0)>(l<<1|0)){o=(o*99|0|0)/100|0}}if((dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0)<((l*6|0|0)/8|0|0)){o=(o*98|0|0)/100|0}x=dC(d,l-1|0,(m|0)/16|0,l,k,0,4)|0;w=dC(d,(l|0)/2|0,0,m,k,0,2)|0;do{if((x|0)>=((l|0)/2|0|0)){if((w|0)<=((m|0)/8|0|0)){break}if((w|0)<=2){break}if((w|0)>=((m|0)/2|0|0)){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);do{if((m|0)>=(l*3|0|0)){if((m|0)<=12){break}o=(o*99|0|0)/100|0}}while(0);x=dC(d,l-1|0,m-1|0,m,k,0,1)|0;w=dC(d,(l|0)/2|0,m-1|0,m,k,0,1)|0;do{if((x|0)==0){if((w|0)<=((m|0)/8|0|0)){break}o=(o*95|0|0)/100|0}}while(0);x=dC(d,l-1|0,0,m,k,0,2)|0;w=dC(d,(l|0)/2|0,0,m,k,0,2)|0;do{if((x|0)==0){if((w|0)<=((m|0)/8|0|0)){break}o=(o*95|0|0)/100|0}}while(0);if((dC(d,0,m-1-((m|0)/8|0)|0,l,k,0,3)|0)>=((l*3|0|0)/4|0|0)){o=(o*98|0|0)/100|0}if((dC(d,0,m-1-((m|0)/8|0)|0,l,k,0,3)|0)>=((l+1|0)/2|0|0)){o=(o*98|0|0)/100|0}if((dC(d,0,(m|0)/8|0,l,k,0,3)|0)>=((l|0)/2|0|0)){o=(o*98|0|0)/100|0}if((f|0)!=0){o=(o*98|0|0)/100|0}n=(e|0)!=0?67:99;dy(a,n,o)|0;q=a;r=q+36|0;s=c[r>>2]|0;return s|0}function c2(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=100;o=100;if((l|0)>2){p=(m|0)>4}else{p=0}L5:do{if(p){if((c[b+108>>2]|0)>1){break}q=dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0;do{if((q|0)<3){if((m|0)<=8){break}break L5}}while(0);if((q|0)<((l|0)/2|0|0)){o=(o*98|0|0)/100|0}do{if((l|0)<8){if(((dC(d,l-1|0,0,m,k,0,2)|0)*3|0|0)>(m|0)){break}break L5}}while(0);r=0;q=0;s=j-((m|0)/4|0)|0;while(1){if((s|0)>(j|0)){break}t=dC(c[a+68>>2]|0,g,s,l,k,0,3)|0;t=dC(c[a+68>>2]|0,g+t|0,s,l,k,1,3)|0;if((t|0)>(q|0)){q=t;r=s}s=s+1|0}if((q|0)<((l*3|0|0)/4|0|0)){break}r=q;q=dC(c[a+68>>2]|0,g,i+((m|0)/2|0)|0,l,k,0,3)|0;if((q|0)>((l|0)/2|0|0)){break}t=dC(c[a+68>>2]|0,g+q|0,i+((m|0)/2|0)|0,l,k,1,3)|0;if((q+t|0)>((l|0)/2|0|0)){break}u=t;do{if((dC(d,l-1|0,0,l,k,0,4)|0)<((l|0)/8|0|0)){if((dC(d,l-1|0,(m|0)/4|0,l,k,0,4)|0)<=((l|0)/2|0|0)){break}if((dC(d,0,(m*5|0|0)/8|0,l,k,0,3)|0)>=((l|0)/4|0|0)){break}if((dC(d,l-1|0,(m*3|0|0)/4|0,l,k,0,4)|0)>=((l|0)/4|0|0)){break}break L5}}while(0);q=1;s=i;while(1){if((s|0)<=(j-((m|0)/4|0)|0)){v=(q|0)!=0}else{v=0}if(!v){break}t=dC(c[a+68>>2]|0,g,s,l,k,0,3)|0;if((t|0)>(((l+2|0)/4|0)+(((aa(j-((m|0)/4|0)-s|0,l)|0)/2|0|0)/(m|0)|0)|0)){w=37;break}x=dC(c[a+68>>2]|0,g+t|0,s,l,k,1,3)|0;if((x|0)>(u+1|0)){w=40}else{if((x<<2|0)<(u*3|0|0)){w=40}else{w=41}}if((w|0)==40){w=0;if((s|0)>(i+((m|0)/8|0)|0)){w=42}else{w=41}}if((w|0)==41){w=0;if((x<<2|0)>(r*3|0|0)){w=42}}if((w|0)==42){w=0;q=0}s=s+1|0}if((w|0)==37){q=0}if((q|0)==0){break}if((dv(0,l-1-((l|0)/8|0)|0,m-1-((m|0)/2|0)|0,m-1-((m|0)/2|0)|0,d,k)|0)!=1){break}if((dv(0,l-1|0,(m|0)/3|0,(m|0)/3|0,d,k)|0)!=1){break}if((dv(0,l-1|0,(m|0)/8|0,(m|0)/8|0,d,k)|0)!=1){break}y=dC(d,0,m-1|0,l,k,0,3)|0;if((y-(dC(d,0,m-3|0,l,k,0,3)|0)|0)>(((l|0)/16|0)+1|0)){o=(o*96|0|0)/100|0}if((dC(c[a+68>>2]|0,g+((l|0)/4|0)|0,j,m,k,0,1)|0)>(((m|0)/16|0)+1|0)){o=(o*99|0|0)/100|0}y=dC(d,0,m-2|0,l,k,0,3)|0;if((y-(dC(d,0,m-1|0,l,k,0,3)|0)|0)>((l|0)/4|0|0)){break}if((f|0)!=0){o=(o*98|0|0)/100|0}if((e|0)==0){o=(o*99|0|0)/100|0}do{if((l*5|0|0)<(m<<1|0)){if((dC(c[a+68>>2]|0,g,j,l,k,0,3)|0)<=((l|0)/4|0|0)){break}o=(o*99|0|0)/100|0}}while(0);dy(a,76,o)|0}}while(0);n=100;o=100;if((m|0)>(l|0)){z=(m|0)>5}else{z=0}if(!z){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}if((c[a+24>>2]|0)>0){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}do{if((dv(0,l-1|0,(m|0)/2|0,(m|0)/2|0,d,k)|0)==1){if((dv(0,l-1|0,(m|0)/4|0,(m|0)/4|0,d,k)|0)!=1){break}do{if((c[a+196>>2]|0)>1){if((c[a+60>>2]|0)==0){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);r=0;u=l;s=(m|0)/4|0;while(1){if((s|0)>=(m-((m|0)/4|0)|0)){break}t=dC(d,0,s,l,k,0,3)|0;t=dC(d,t,s,l,k,1,3)|0;if((t|0)>(r|0)){r=t}if((t|0)<(u|0)){u=t}s=s+1|0}if((r|0)>(u<<1|0)){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}do{if((c[a+60>>2]|0)!=0){if((m|0)>((c[a+60>>2]|0)-(c[a+56>>2]|0)|0)){break}o=(o*94|0|0)/100|0}}while(0);do{if(((c[a+56>>2]|0)-(c[a+52>>2]|0)|0)>1){if((i|0)<(c[a+56>>2]|0)){break}o=(o*94|0|0)/100|0}}while(0);z=0;n=0;s=0;while(1){if((s|0)>=((m|0)/4|0|0)){break}t=dC(d,0,s,l,k,0,3)|0;if((t|0)>(n|0)){n=t}t=dC(d,t,s,l,k,1,3)|0;if((t|0)>(z|0)){z=t;n=0}s=s+1|0}if((z|0)>(u<<2|0)){w=105}else{if((n*3|0|0)>(l<<1|0)){w=105}}L151:do{if((w|0)==105){do{if((dC(d,l-1|0,m-1|0,l,k,0,4)|0)<=((l*3|0|0)/8|0|0)){if((dC(d,0,m-1|0,l,k,0,3)|0)>((l*3|0|0)/8|0|0)){break}break L151}}while(0);A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);x=dC(d,0,0,l,k,0,3)|0;n=dC(d,x,0,l,k,0,3)|0;x=dC(d,0,1,l,k,0,3)|0;x=dC(d,x,1,l,k,0,3)|0;if((x|0)>(n|0)){n=x}x=dC(d,0,m-1|0,l,k,0,3)|0;z=dC(d,x,m-1|0,l,k,0,3)|0;x=dC(d,0,m-2|0,l,k,0,3)|0;x=dC(d,x,m-2|0,l,k,0,3)|0;if((x|0)>(z|0)){z=x}do{if((n|0)>(r+((l|0)/8|0)+1|0)){if((z|0)<=(r+((l|0)/8|0)+1|0)){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);q=l;t=0;s=1;while(1){if((s|0)>=((m|0)/4|0|0)){break}x=dC(d,l-1|0,s,l,k,0,4)|0;if((x|0)>(q+1|0)){w=119;break}q=x;do{if((dv(0,l-1|0,s,s,d,k)|0)==2){if((dv(0,l-1|0,s+1+((m|0)/32|0)|0,s+1+((m|0)/32|0)|0,d,k)|0)!=2){break}t=1}}while(0);s=s+1|0}if((s|0)<((m|0)/4|0|0)){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}do{if((t|0)!=0){s=(m*3|0|0)/4|0;while(1){if((s|0)>=(m|0)){break}if((dv(0,l-1|0,s,s,d,k)|0)==2){if((dv(0,l-1|0,s-1-((m|0)/32|0)|0,s-1-((m|0)/32|0)|0,d,k)|0)==2){w=132;break}}s=s+1|0}if((s|0)!=(m|0)){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);if((l|0)>3){do{if(((du(l-1-((l|0)/8|0)|0,l-1|0,0,(m|0)/6|0,d,k,1)|0)<<24>>24|0)!=1){if(((du(l-1-((l|0)/8|0)|0,l-1|0,0,(m|0)/2|0,d,k,1)|0)<<24>>24|0)!=1){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0)}if(((du(l-1-((l|0)/8|0)|0,l-1|0,(m|0)/4|0,(m|0)/3|0,d,k,1)|0)<<24>>24|0)!=1){if(((du(0,(l|0)/8|0,(m|0)/4|0,(m|0)/3|0,d,k,1)|0)<<24>>24|0)!=1){if(((du(l-1-((l|0)/8|0)|0,l-1|0,0,(m|0)/8|0,d,k,1)|0)<<24>>24|0)==1){if(((du(0,(l|0)/8|0,0,(m|0)/8|0,d,k,1)|0)<<24>>24|0)==1){o=(o*97|0|0)/100|0}}}}if(((du(l-1-((l|0)/8|0)|0,l-1|0,(m|0)/2|0,m-1|0,d,k,1)|0)<<24>>24|0)!=1){if(((du(0,(l|0)/8|0,(m|0)/2|0,m-1|0,d,k,1)|0)<<24>>24|0)==1){do{if(((du(l-1-((l|0)/8|0)|0,l-1|0,0,(m|0)/3|0,d,k,1)|0)<<24>>24|0)==1){if(((du(0,(l|0)/8|0,0,(m|0)/3|0,d,k,1)|0)<<24>>24|0)!=1){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0)}}s=1;while(1){if((s|0)>=((m*12|0|0)/16|0|0)){break}if((dv(0,l-1|0,s,s,d,k)|0)!=1){if((dv(0,l-1|0,s-1|0,s-1|0,d,k)|0)!=1){w=164;break}}s=s+1|0}if((s|0)<((m*12|0|0)/16|0|0)){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}do{if((l|0)>3){s=(m|0)/2|0;while(1){if((s|0)>=(m-1|0)){break}if(((du((l|0)/4|0,l-1-((l|0)/4|0)|0,s,s,d,k,1)|0)<<24>>24|0)!=1){w=173;break}s=s+1|0}if((s|0)>=(m-1|0)){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);x=l;s=(c[d+8>>2]|0)-1-((m*5|0|0)/16|0)|0;while(1){if((s|0)<((m|0)/5|0|0)){break}q=dC(d,(c[d+4>>2]|0)-1|0,s,h-g|0,k,0,4)|0;if((q-2-((l|0)/16|0)|0)>=(x|0)){w=182;break}if((q|0)<(x|0)){x=q}s=s-1|0}if((s|0)>=((m|0)/5|0|0)){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}x=0;s=(c[d+8>>2]|0)-1-((m|0)/5|0)|0;while(1){if((s|0)<((m|0)/5|0|0)){break}q=dC(d,0,s,h-g|0,k,0,3)|0;if((q+2+((l|0)/16|0)|0)<(x|0)){w=192;break}if((q|0)>(x|0)){x=q}s=s-1|0}if((s|0)>=((m|0)/5|0|0)){A=a;B=A+36|0;C=c[B>>2]|0;return C|0}do{if((c[a+64>>2]|0)!=0){if((j|0)>=(c[a+64>>2]|0)){break}if(((du(g,h,j+1|0,(c[a+64>>2]|0)+((m|0)/8|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){o=(o*97|0|0)/100|0}}}while(0);q=dC(d,l-1|0,(m|0)/16|0,l,k,0,4)|0;t=dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0;do{if((q|0)>3){if((t|0)<=3){break}if(((du(l-1-((q|0)/2|0)|0,l-1-((q|0)/2|0)|0,0,(m|0)/2|0,d,k,1)|0)<<24>>24|0)!=1){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);s=(m*5|0|0)/8|0;while(1){if((s|0)>=(m|0)){break}if((dv(0,l-1|0,s,s,d,k)|0)==2){w=212;break}s=s+1|0}if((s|0)<(m|0)){q=dC(d,0,s,l,k,0,3)|0;q=q+(dC(d,q,s,l,k,1,3)|0)|0;q=q+((dC(d,q,s,l,k,0,3)|0)/2|0)|0;do{if((dv(0,q,(m*5|0|0)/8|0,(m*5|0|0)/8|0,d,k)|0)==0){if((dv(q,q,(m*5|0|0)/8|0,s,d,k)|0)!=0){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0)}do{if((l|0)>8){if((dC(d,0,(m*3|0|0)/4|0,l,k,0,3)|0)<((l|0)/4|0|0)){break}if((dC(d,0,(m*7|0|0)/8|0,l,k,0,3)|0)>((l|0)/8|0|0)){break}if((dC(d,l-1|0,(m*3|0|0)/4|0,l,k,0,4)|0)>((l|0)/8|0|0)){break}if((dC(d,l-1|0,(m*7|0|0)/8|0,l,k,0,4)|0)>((l|0)/8|0|0)){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);if((n<<1|0)>(r*5|0|0)){do{if((dC(d,0,(m|0)/4|0,l,k,0,3)|0)>((l|0)/2|0|0)){if(((du(0,(l|0)/8|0,0,(m|0)/4|0,d,k,1)|0)<<24>>24|0)!=1){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0)}do{if((dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0)>((l|0)/2|0|0)){if(((du((l*3|0|0)/4|0,l-1|0,(m*3|0|0)/4|0,m-1|0,d,k,1)|0)<<24>>24|0)!=1){break}if((dC(d,0,m-1|0,l,k,0,3)|0)<((l|0)/8|0|0)){o=(o*99|0|0)/100|0}if((l*5|0|0)>(m<<1|0)){o=(o*99|0|0)/100|0}if((l*5|0|0)>(m*3|0|0)){o=(o*99|0|0)/100|0}}}while(0);if((e|0)==0){do{if(((du((l|0)/4|0,(l|0)/4|0,0,(m|0)/4|0,d,k,1)|0)<<24>>24|0)==1){if(((du((l|0)/4|0,(l|0)/4|0,(m|0)/2|0,m-1|0,d,k,1)|0)<<24>>24|0)!=0){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0)}do{if((l|0)>3){if((m|0)<=(l*3|0|0)){break}do{if((dC(d,(l|0)/4|0,m-1|0,m,k,0,1)|0)<((m|0)/4|0|0)){if((dC(d,0,m-1-((m|0)/8|0)|0,l,k,0,3)|0)<((l|0)/2|0|0)){break}if((dC(d,l-1|0,m-1-((m|0)/8|0)|0,l,k,0,4)|0)>((l|0)/4|0|0)){break}o=(o*98|0|0)/100|0;if((dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0)!=0){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0)}}while(0);x=0;while(1){if((x|0)>=((l|0)/2|0|0)){break}if(((du(x,x,0,(m|0)/4|0,d,k,1)|0)<<24>>24|0)==1){w=257;break}x=x+1|0}do{if(((du(x,x+((l|0)/16|0)|0,0,(m|0)/16|0,d,k,1)|0)<<24>>24|0)==0){if(((du(x,x+((l|0)/16|0)|0,(m|0)/4|0,(m|0)/2|0,d,k,1)|0)<<24>>24|0)!=0){break}if(((du(x,x+((l|0)/16|0)|0,(m|0)/16|0,(m|0)/4|0,d,k,1)|0)<<24>>24|0)!=1){break}q=l;s=0;while(1){if((s|0)>=((m|0)/4|0|0)){break}x=dC(d,0,s,l,k,0,3)|0;if((x|0)>(q|0)){w=266;break}s=s+1|0}if((x|0)>=(dC(d,0,s+1|0,l,k,0,3)|0)){do{if((dC(d,0,0,m,k,0,2)|0)>1){n=dC(d,0,0,m,k,0,2)|0;if((n-(dC(d,((l|0)/16|0)+1|0,0,m,k,0,2)|0)|0)>=(((l|0)/16|0)+1|0)){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0)}if((dv(0,(l|0)/2|0,s-1|0,s-1|0,d,k)|0)!=2){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);do{if((l|0)<8){if((m|0)>=12){break}q=dC(d,0,0,m,k,0,2)|0;do{if((dC(d,(l|0)/2|0,1,m,k,1,2)|0)>=(m-2|0)){if((dC(d,0,(m|0)/2|0,l,k,0,3)|0)<2){break}if((q|0)<=1){break}if((q|0)>=((m|0)/2|0|0)){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0)}}while(0);do{if(((du(h,h,i,j,c[a+68>>2]|0,k,2)|0)<<24>>24|0)!=2){if(((du(g,h,i,i,c[a+68>>2]|0,k,2)|0)<<24>>24|0)==2){break}if(((du(g,h,j,j,c[a+68>>2]|0,k,2)|0)<<24>>24|0)==2){break}if(((du(g,g+((l|0)/4|0)|0,i+1+((m|0)/16|0)|0,j-1-((m|0)/16|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);q=dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0;do{if((dC(d,0,(m|0)/2|0,l,k,0,3)|0)>=((l|0)/2|0|0)){if((q|0)>=((l|0)/2|0|0)){if((q|0)!=0){break}}if((l|0)<=1){break}o=(o*98|0|0)/100|0}}while(0);do{if(((du(g,g,i,j,c[a+68>>2]|0,k,2)|0)<<24>>24|0)!=2){if(((du(g,h,i,i,c[a+68>>2]|0,k,2)|0)<<24>>24|0)==2){break}if(((du(g,h,j,j,c[a+68>>2]|0,k,2)|0)<<24>>24|0)==2){break}if(((du(h-((l|0)/4|0)|0,h,i+1+((m|0)/16|0)|0,j-1-((m|0)/16|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);x=dC(d,0,(m|0)/2|0,l,k,0,3)|0;q=dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0;do{if((dC(d,0,(m*7|0|0)/8|0,l,k,0,3)|0)>(x+((l|0)/8|0)|0)){if((dC(d,0,(m|0)/8|0,l,k,0,3)|0)<=(x+((l|0)/8|0)|0)){break}if((dC(d,l-1|0,(m*7|0|0)/8|0,l,k,0,4)|0)>=(q-((l|0)/8|0)|0)){break}if((dC(d,l-1|0,(m|0)/8|0,l,k,0,4)|0)>=(q-((l|0)/8|0)|0)){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);do{if((dC(d,0,(m*7|0|0)/8|0,l,k,0,3)|0)<(x-((l|0)/8|0)|0)){if((dC(d,0,(m|0)/8|0,l,k,0,3)|0)>=(x-((l|0)/8|0)|0)){break}if((dC(d,l-1|0,(m*7|0|0)/8|0,l,k,0,4)|0)<=(q+((l|0)/8|0)|0)){break}if((dC(d,l-1|0,(m|0)/8|0,l,k,0,4)|0)<=(q+((l|0)/8|0)|0)){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);q=dC(d,0,0,m,k,0,2)|0;do{if((m|0)>=12){if((q|0)<=((m|0)/8|0|0)){break}if((q|0)>=((m|0)/2|0|0)){break}n=(dC(d,l-1|0,(m*3|0|0)/16|0,l,k,0,4)|0)-((l|0)/8|0)|0;if((n|0)>(dC(d,l-1|0,q,l,k,0,4)|0)){w=316}else{n=(dC(d,l-1|0,(m*3|0|0)/16|0,l,k,0,4)|0)-((l|0)/8|0)|0;if((n|0)>(dC(d,l-1|0,q+1|0,l,k,0,4)|0)){w=316}}if((w|0)==316){n=(dC(d,l-1|0,(m<<3|0)/16|0,l,k,0,4)|0)-((l|0)/8|0)|0;if((n|0)>(dC(d,l-1|0,q,l,k,0,4)|0)){w=318}else{n=(dC(d,l-1|0,(m<<3|0)/16|0,l,k,0,4)|0)-((l|0)/8|0)|0;if((n|0)>(dC(d,l-1|0,q+1|0,l,k,0,4)|0)){w=318}}if((w|0)==318){n=(dC(d,0,(m*3|0|0)/16|0,l,k,0,3)|0)-((l|0)/8|0)|0;if((n|0)>(dC(d,0,q,l,k,0,3)|0)){w=320}else{n=(dC(d,0,(m*3|0|0)/16|0,l,k,0,3)|0)-((l|0)/8|0)|0;if((n|0)>(dC(d,0,q+1|0,l,k,0,3)|0)){w=320}}L473:do{if((w|0)==320){n=(dC(d,0,(m<<3|0)/16|0,l,k,0,3)|0)-((l|0)/8|0)|0;do{if((n|0)<=(dC(d,0,q,l,k,0,3)|0)){z=(dC(d,0,(m<<3|0)/16|0,l,k,0,3)|0)-((l|0)/8|0)|0;if((z|0)>(dC(d,0,q+1|0,l,k,0,3)|0)){break}break L473}}while(0);A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0)}}do{if((dC(d,0,q-1|0,l,k,0,3)|0)>1){if((l|0)>=6){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);do{if((dC(d,0,(m<<3|0)/16|0,l,k,0,3)|0)>((l|0)/8|0|0)){if((dC(d,0,q,l,k,1,3)|0)<(l-1|0)){break}if((dC(d,l-1|0,(m<<3|0)/16|0,l,k,0,4)|0)<=((l|0)/8|0|0)){break}if((dC(d,l-1|0,q-1|0,l,k,0,4)|0)<=((l|0)/8|0|0)){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0)}}while(0);do{if((dC(d,0,1,l,k,0,3)|0)>=((l|0)/2|0|0)){if((dC(d,0,m-2|0,l,k,0,3)|0)>((l|0)/8|0|0)){if((dC(d,0,m-1|0,l,k,0,3)|0)>((l|0)/8|0|0)){break}}do{if((l|0)>1){if((dC(d,l-1|0,0,l,k,0,4)|0)>((l|0)/8|0|0)){if((dC(d,l-1|0,1,l,k,0,4)|0)>((l|0)/8|0|0)){break}}if((dC(d,l-1|0,m-2|0,l,k,0,4)|0)<((l|0)/2|0|0)){break}o=(o*98|0|0)/100|0}}while(0)}}while(0);if((e|0)!=0){if((dC(d,0,(m|0)/4|0,l,k,0,3)|0)>((l|0)/2|0|0)){w=346}}else{w=346}if((w|0)==346){q=dC(d,0,(m|0)/16|0,l,k,0,3)|0;q=dC(d,q,(m|0)/16|0,l,k,1,3)|0;t=q;q=dC(d,0,((m|0)/16|0)+1|0,l,k,0,3)|0;q=dC(d,q,((m|0)/16|0)+1|0,l,k,1,3)|0;if((q|0)>(t|0)){t=q}q=dC(d,0,((m|0)/16|0)+2|0,l,k,0,3)|0;q=dC(d,q,((m|0)/16|0)+2|0,l,k,1,3)|0;if((q|0)>(t|0)){t=q}if((t<<2|0)>=(l*3|0|0)){o=(o*98|0|0)/100|0}if((t<<3|0)>=(l*7|0|0)){o=(o*96|0|0)/100|0}}q=dC(d,0,0,m,k,0,2)|0;do{if((q*3|0|0)>(m|0)){if((q*3|0|0)>=(m<<1|0)){break}if((dC(d,l-1|0,0,m,k,0,2)|0)!=0){break}if((dC(d,l-1|0,m-1|0,m,k,0,1)|0)!=0){break}q=dC(d,0,m-1|0,m,k,0,1)|0;do{if((q*3|0|0)>(m|0)){if((q*3|0|0)>=(m<<1|0)){break}A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);o=(o*99|0|0)/100|0}}while(0);if((o|0)==100){o=o-1|0}if((e|0)==0){o=(o*99|0|0)/100|0}if((f|0)!=0){o=(o*99|0|0)/100|0}do{if((o|0)>98){if(((du(g,h,i,j,c[a+68>>2]|0,k,2)|0)<<24>>24|0)!=0){break}o=(o*99|0|0)/100|0}}while(0);do{if((l|0)<3){if((m|0)<=10){break}if((c[a+64>>2]|0)!=0){break}o=(o*95|0|0)/100|0}}while(0);dy(a,108,o)|0;A=a;B=A+36|0;C=c[B>>2]|0;return C|0}}while(0);A=a;B=A+36|0;C=c[B>>2]|0;return C|0}function c3(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=57344;o=100;if((l|0)>2){p=(m|0)>3}else{p=0}if(!p){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((c[b+108>>2]|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(g,g+((l|0)/2|0)|0,i+((m|0)/2|0)|0,i+((m|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(h-((l|0)/2|0)|0,h,i+((m|0)/2|0)|0,i+((m|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,j-((m|0)/2|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,i,i+((m|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,i+((m|0)/2|0)|0,j-((m|0)/3|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=0){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}do{if((c[b+128>>2]|0)<=((m|0)/3|0|0)){if((c[b+136>>2]|0)<(m-1-((m|0)/3|0)|0)){break}do{if((dv(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,i,j,c[a+68>>2]|0,k)|0)!=2){if((dv(g+((l|0)/2|0)+1|0,g+((l|0)/2|0)+1|0,i,j,c[a+68>>2]|0,k)|0)==2){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);do{if((dv(g+((l|0)/3|0)|0,h-((l|0)/4|0)|0,i,i,c[a+68>>2]|0,k)|0)!=1){if((dv(g+((l|0)/3|0)|0,h-((l|0)/4|0)|0,i+1|0,i+1|0,c[a+68>>2]|0,k)|0)==1){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);do{if((dv(g+((l|0)/4|0)|0,h-((l|0)/3|0)|0,j,j,c[a+68>>2]|0,k)|0)!=1){if((dv(g+((l|0)/4|0)|0,h-((l|0)/3|0)|0,j-1|0,j-1|0,c[a+68>>2]|0,k)|0)==1){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);do{if((dv(g,g,i+((m|0)/3|0)|0,j-((m|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){if((dv(g+1|0,g+1|0,i+((m|0)/3|0)|0,j-((m|0)/3|0)|0,c[a+68>>2]|0,k)|0)==1){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);do{if((dv(h,h,i+((m|0)/3|0)|0,j-((m|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){if((dv(h-1|0,h-1|0,i+((m|0)/3|0)|0,j-((m|0)/3|0)|0,c[a+68>>2]|0,k)|0)==1){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);p=dC(d,0,0,h-g|0,k,0,3)|0;if((p|0)<=(dC(d,0,2,h-g|0,k,0,3)|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}p=dC(d,l-1|0,m-1-((m|0)/3|0)|0,h-g|0,k,0,4)|0;t=m-1-((m|0)/3|0)|0;while(1){if((t|0)>=(m|0)){break}u=dC(d,l-1|0,t,h-g|0,k,0,4)|0;if((u|0)<(p|0)){v=454;break}p=u;t=t+1|0}if((t|0)<(m|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}w=dC(d,0,(m|0)/16|0,l,k,0,3)|0;x=w+(dC(d,0,m-1-((m|0)/16|0)|0,l,k,0,3)|0)|0;if((x|0)<=(((dC(d,0,(m|0)/2|0,l,k,0,3)|0)<<1)+((l|0)/8|0)|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}x=(dC(d,0,((m|0)/16|0)+1|0,l,k,0,3)|0)+((l|0)/4|0)|0;if((x|0)<=(dC(d,l-1|0,((m|0)/16|0)+1|0,l,k,0,4)|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}do{if((dC(d,l-1|0,(m|0)/16|0,l,k,0,4)|0)>((l|0)/8|0|0)){if((dC(d,0,(m|0)/16|0,l,k,0,3)|0)>=((l|0)/16|0|0)){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);do{if((dC(d,l-1|0,m-1-((m|0)/16|0)|0,l,k,0,4)|0)>((l|0)/8|0|0)){if((dC(d,0,m-1-((m|0)/16|0)|0,l,k,0,3)|0)>=((l|0)/16|0|0)){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);do{if(((du(h-((l|0)/32|0)|0,h,i,i+((m|0)/32|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){if(((du(h-((l|0)/32|0)|0,h,j-((m|0)/32|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=0){break}if(((du(0,(l|0)/32|0,0,(m|0)/32|0,d,k,1)|0)<<24>>24|0)!=1){if(((du(g,g+((l|0)/32|0)|0,j-((m|0)/32|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);t=m;p=0;x=0;while(1){if((p|0)>=(l|0)){break}u=dC(d,p,m-1|0,j-i|0,k,0,1)|0;u=u+(dC(d,p,m-1-u|0,j-i|0,k,1,1)|0)|0;if((u|0)<=(t|0)){t=u;x=p}p=p+1|0}u=t;t=m-1-u|0;while(1){if((t|0)>=(m-1|0)){break}if((dv(x,l-1|0,t,t,d,k)|0)>1){o=(o*99|0|0)/100|0}t=t+1|0}t=0;while(1){if((t|0)>=(m-1-u|0)){break}if((dv(0,l-1|0,t,t,d,k)|0)>2){o=(o*98|0|0)/100|0}t=t+1|0}if((dC(d,l-1|0,m-1|0,h-g|0,k,0,4)|0)<((l|0)/8|0|0)){o=(o*98|0|0)/100|0}if((dC(d,l-1|0,0,h-g|0,k,0,4)|0)<((l|0)/8|0|0)){o=(o*98|0|0)/100|0}t=(dC(d,l-1|0,m-1-((m|0)/8|0)|0,h-g|0,k,0,4)|0)+1+((l|0)/16|0)|0;if((t|0)<(dC(d,0,m-1-((m|0)/8|0)|0,h-g|0,k,0,3)|0)){o=(o*99|0|0)/100|0}t=(dC(d,l-1|0,m-1|0,j-i|0,k,0,1)|0)+1+((m+3|0)/8|0)|0;if((t|0)<(dC(d,0,m-1|0,j-i|0,k,0,1)|0)){o=(o*98|0|0)/100|0}t=dC(d,(l|0)/2|0,0,m,k,0,2)|0;do{if((P(t-(dC(d,(l|0)/2|0,m-1|0,m,k,0,1)|0)|0)|0)>((m|0)/8|0|0)){v=505}else{if((dv(0,l-1|0,0,0,d,k)|0)>1){v=505;break}if((dv(0,l-1|0,m-1|0,m-1|0,d,k)|0)>1){v=505}}}while(0);if((v|0)==505){o=(o*98|0|0)/100|0}do{if((e|0)!=0){if((i<<1|0)>=((c[a+52>>2]|0)+(c[a+56>>2]|0)|0)){v=509;break}u=1}else{v=509}}while(0);if((v|0)==509){u=0}if((f|0)!=0){o=(o*99|0|0)/100|0}n=111;if((u|0)!=0){n=79}do{if((n|0)==79){if((o|0)<=99){break}o=99}}while(0);do{if((n|0)==111){if((e|0)!=0){break}if((i|0)>=(c[a+56>>2]|0)){break}t=a;x=(o*98|0|0)/100|0;dy(t,79,x)|0;x=a;t=(o*98|0|0)/100|0;dy(x,48,t)|0}}while(0);do{if((o|0)==100){if((n|0)!=111){break}if((c[a+56>>2]|0)==0){break}t=P((c[a+56>>2]|0)-(c[a+8>>2]|0)-((c[a+8>>2]|0)-(c[a+52>>2]|0))|0)|0;if((t|0)>(((c[a+56>>2]|0)-(c[a+52>>2]|0)|0)/4|0|0)){break}o=(o*98|0|0)/100|0}}while(0);dy(a,n,o)|0;if((n|0)==79){t=a;x=o;dy(t,48,x)|0}if((n|0)==111){x=a;t=(o*98|0|0)/100|0;dy(x,48,t)|0}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);q=a;r=q+36|0;s=c[r>>2]|0;return s|0}function c4(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=57344;o=100;if((l|0)>2){p=(m|0)>3}else{p=0}if(!p){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((c[b+108>>2]|0)>2){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(0,(l|0)/2|0,(m*3|0|0)/4|0,(m*3|0|0)/4|0,d,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(0,(l|0)/2|0,(m|0)/2|0,(m|0)/2|0,d,k,1)|0)<<24>>24|0)<1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du((l|0)/4|0,l-1|0,(m|0)/4|0,(m|0)/4|0,d,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}p=dC(d,l-1|0,(m*3|0|0)/4|0,l,k,0,4)|0;if((p|0)<((l|0)/4|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((dv(h-((p*3|0|0)/4|0)|0,h-((p*3|0|0)/4|0)|0,i,j-((m*3|0|0)/16|0)|0,c[a+68>>2]|0,k)|0)!=2){do{if((dv(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,i,j-((m*3|0|0)/16|0)|0,c[a+68>>2]|0,k)|0)!=2){if((dv(g+((l|0)/2|0)+1|0,g+((l|0)/2|0)+1|0,i,j-((m*3|0|0)/16|0)|0,c[a+68>>2]|0,k)|0)==2){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0)}do{if((dv(0,l-1|0,(m*7|0|0)/8|0,(m*7|0|0)/8|0,d,k)|0)!=1){if((dv(0,l-1|0,((m*7|0|0)/8|0)-1|0,((m*7|0|0)/8|0)-1|0,d,k)|0)==1){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);if((dv(0,l-1|0,(m|0)/4|0,(m|0)/4|0,d,k)|0)!=2){if((dv(0,l-1|0,((m|0)/4|0)-1|0,((m|0)/4|0)-1|0,d,k)|0)!=3){do{if((dv(0,l-1|0,(m|0)/4|0,(m|0)/4|0,d,k)|0)!=2){if((dv(0,l-1|0,((m|0)/4|0)+1|0,((m|0)/4|0)+1|0,d,k)|0)==2){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0)}}p=dC(d,0,(m|0)/2|0,l,k,0,3)|0;if((p|0)<1){p=p+1|0}do{if((dv(p-1|0,l-1|0,(m|0)/4|0,(m|0)/4|0,d,k)|0)!=2){if((dv(p-1|0,l-1|0,((m|0)/4|0)+1|0,((m|0)/4|0)+1|0,d,k)|0)==2){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);t=dC(d,0,(m*3|0|0)/8|0,l,k,0,3)|0;if((t|0)>=((l|0)/2|0|0)){o=(o*90|0|0)/100|0}u=t+(dC(d,t,(m*3|0|0)/8|0,l,k,1,3)|0)|0;t=dC(d,0,(m*7|0|0)/8|0,l,k,0,3)|0;v=t+(dC(d,t,(m*7|0|0)/8|0,l,k,1,3)|0)|0;t=(m|0)/8|0;while(1){if((t|0)>=((m*7|0|0)/8|0|0)){break}w=u+((aa((t<<3)-(m*3|0)|0,v-u|0)|0)/(m<<2|0)|0)|0;p=dC(d,0,t,l,k,0,3)|0;if((p|0)>(w+((l|0)/16|0)|0)){x=596;break}t=t+1|0}if((t|0)<((m*7|0|0)/8|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}w=0;u=(m|0)/3|0;t=u;v=u;while(1){if((t|0)>=(m-((m|0)/8|0)|0)){break}p=dC(d,l-1|0,t,l,k,0,4)|0;if((p|0)>(w|0)){w=p;v=t}if((w|0)>((l|0)/2|0|0)){x=606;break}t=t+1|0}do{if((w|0)>=((l|0)/2|0|0)){if((w|0)>=(l|0)){break}if(((du((l*3|0|0)/4|0,l-1|0,t,m-1|0,d,k,1)|0)<<24>>24|0)==1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}p=dH(g,h,i,j-((m|0)/5|0)|0,c[a+68>>2]|0,k,0)|0;v=c[b+108>>2]|0;do{if((v|0)!=1){if((l|0)>=8){break}o=(o*96|0|0)/100|0}}while(0);do{if((v|0)!=1){if((l|0)<8){break}o=(o*98|0|0)/100|0}}while(0);do{if((p|0)==0){if((v|0)!=0){break}o=(o*90|0|0)/100|0}}while(0);do{if((p|0)<=1){if((v|0)>1){break}if((v|0)>(p|0)){break}p=dC(d,(c[d+4>>2]|0)-1|0,(c[d+8>>2]|0)/4|0,l,k,0,4)|0;p=p+(dC(d,(c[d+4>>2]|0)-1-p|0,(c[d+8>>2]|0)/4|0,l,k,1,4)|0)|0;v=dC(d,(c[d+4>>2]|0)-1-p|0,(c[d+8>>2]|0)/4|0,(m*3|0|0)/4|0,k,0,2)|0;if((v|0)>((m|0)/2|0|0)){o=(o*80|0|0)/100|0}if((e|0)!=0){x=631}else{if((f|0)!=0){x=631}else{x=633}}do{if((x|0)==631){if((e|0)==0){break}if((f|0)!=0){x=633}}}while(0);if((x|0)==633){o=(o*95|0|0)/100|0}n=112;do{if((e|0)!=0){if((f|0)!=0){if((m|0)>=14){break}}n=80}}while(0);do{if((e|0)!=0){if((f|0)==0){break}o=(o*98|0|0)/100|0}}while(0);do{if((e|0)==0){if((f|0)!=0){break}o=(o*98|0|0)/100|0}}while(0);u=a;y=n;z=o;dy(u,y,z)|0;q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);q=a;r=q+36|0;s=c[r>>2]|0;return s|0}function c5(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;b=i;i=i+16|0;d=b|0;e=b+8|0;f=a;a=c[f>>2]|0;g=c[f+4>>2]|0;h=c[f+36>>2]|0;j=c[f+40>>2]|0;k=c[a>>2]|0;l=c[a+4>>2]|0;m=c[a+8>>2]|0;n=c[a+12>>2]|0;o=c[f+8>>2]|0;p=l-k+1|0;q=n-m+1|0;r=100;s=100;if((p|0)>2){t=(q|0)>4}else{t=0}L902:do{if(t){if((c[f+108>>2]|0)>2){break}if(((du(k,k+((p|0)/3|0)|0,m+((q|0)/3|0)|0,m+((q|0)/3|0)|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)!=1){break}if(((du(l-((p|0)/3|0)|0,l,m+((q|0)/3|0)|0,m+((q|0)/3|0)|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)!=1){break}if(((du(k+((p|0)/2|0)|0,k+((p|0)/2|0)|0,n-((q|0)/3|0)|0,n,c[a+68>>2]|0,o,1)|0)<<24>>24|0)!=1){break}if(((du(k+((p|0)/2|0)|0,k+((p|0)/2|0)|0,m,m+((q|0)/4|0)|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)!=1){break}if(((du(k+((p|0)/2|0)|0,k+((p|0)/2|0)|0,m+((q|0)/3|0)|0,n-((q|0)/2|0)|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)==1){break}if(((du(l,l,m,m,c[a+68>>2]|0,o,1)|0)<<24>>24|0)==1){break}if((dv(k+((p|0)/2|0)|0,k+((p|0)/2|0)|0,m,n,c[a+68>>2]|0,o)|0)<2){break}do{if((dv(k+((p|0)/5|0)|0,l-((p|0)/5|0)|0,m,m,c[a+68>>2]|0,o)|0)!=1){if((dv(k+((p|0)/5|0)|0,l-((p|0)/5|0)|0,m+1|0,m+1|0,c[a+68>>2]|0,o)|0)!=1){break L902}else{break}}}while(0);do{if((dv(k,k,m+((q|0)/3|0)|0,n-((q|0)/3|0)|0,c[a+68>>2]|0,o)|0)!=1){if((dv(k+1|0,k+1|0,m+((q|0)/3|0)|0,n-((q|0)/3|0)|0,c[a+68>>2]|0,o)|0)!=1){break L902}else{break}}}while(0);if(((du(l,l,n-((q|0)/8|0)|0,n,c[a+68>>2]|0,o,1)|0)<<24>>24|0)==0){do{if((dv(l,l,m+((q|0)/3|0)|0,n-((q|0)/3|0)|0,c[a+68>>2]|0,o)|0)!=1){if((dv(l-1|0,l-1|0,m+((q|0)/3|0)|0,n-((q|0)/3|0)|0,c[a+68>>2]|0,o)|0)!=1){break L902}else{break}}}while(0)}u=c[f+108>>2]|0;if((u|0)==0){break}do{if((u|0)!=1){if((u|0)==2){if((dH(k,l,m+((q|0)/2|0)|0,n,c[a+68>>2]|0,o,0)|0)==1){break}}break L902}}while(0);c[d>>2]=l;c[e>>2]=n;dA(c[a+68>>2]|0,d,e,k,l,m,n,o,4,7);if((c[d>>2]|0)<(l-((p|0)/2|0)|0)){break}dA(c[a+68>>2]|0,d,e,k,l,m,n,o,7,4);if((c[d>>2]|0)<(l-((p|0)/2|0)|0)){if((j|0)!=0){s=(s*98|0|0)/100|0}else{s=(s*90|0|0)/100|0}}v=dC(g,0,0,p,o,0,3)|0;if((v|0)<(dC(g,0,2,p,o,0,3)|0)){break}v=dC(g,0,((q|0)/8|0)+2|0,p,o,0,3)|0;if((v+(dC(g,p-1|0,((q|0)/8|0)+2|0,p,o,0,4)|0)|0)>((p*5|0|0)/8|0|0)){break}c[d>>2]=dC(g,p-1|0,(q*3|0|0)/8|0,q,o,0,4)|0;if((c[d>>2]|0)>((p|0)/4|0|0)){break}v=dC(g,p-1-(c[d>>2]|0)|0,0,q,o,0,2)|0;if((v|0)<=(dC(g,p-2-(c[d>>2]|0)|0,0,q,o,0,2)|0)){break}v=dC(g,p-1|0,q-2|0,p,o,0,4)|0;if((v|0)<=(dC(g,p-1|0,(q|0)/2|0,p,o,0,4)|0)){v=dC(g,1,q-1|0,q,o,0,1)|0;if((v|0)<=(dC(g,(p|0)/2|0,q-1|0,q,o,0,1)|0)){do{if((dC(g,0,q-2|0,p,o,0,3)|0)>((p|0)/2|0|0)){if((dC(g,0,0,p,o,0,3)|0)>((p|0)/2|0|0)){break L902}else{break}}}while(0)}}v=dC(g,p-1|0,(q*3|0|0)/4|0,p,o,0,4)|0;w=v+(dC(g,0,(q*3|0|0)/4|0,p,o,0,3)|0)|0;v=dC(g,p-1|0,(q<<1|0)/4|0,p,o,0,4)|0;if((w|0)<(v+(dC(g,0,(q<<1|0)/4|0,p,o,0,3)|0)|0)){s=(s*94|0|0)/100|0}if((dC(g,0,(q*3|0|0)/4|0,p,o,1,3)|0)>=(p|0)){s=(s*94|0|0)/100|0}if((dC(g,p-1|0,(q|0)/3|0,p,o,0,4)|0)>((p|0)/4|0|0)){break}x=dC(g,(p|0)/2|0,q-1|0,q,o,0,1)|0;do{if((x|0)>1){if((x|0)<=((q|0)/8|0|0)){break}if(((du(0,(p|0)/2|0,q-1-((x|0)/2|0)|0,q-1-((x|0)/2|0)|0,g,o,1)|0)<<24>>24|0)==1){if((x|0)>=5){break L902}s=(s*95|0|0)/100|0}}}while(0);u=0;c[e>>2]=0;while(1){if((c[e>>2]|0)>=((q|0)/2|0|0)){break}if((dv(0,p-1|0,c[e>>2]|0,c[e>>2]|0,g,o)|0)>2){u=u+1|0}c[e>>2]=(c[e>>2]|0)+1}if((u|0)>((q|0)/8|0|0)){break}if((u|0)>0){s=(s*99|0|0)/100|0}c[d>>2]=0;x=0;c[e>>2]=(q|0)/2|0;while(1){if((c[e>>2]|0)>=(q|0)){break}u=dC(g,p-1|0,c[e>>2]|0,p,o,0,4)|0;if((u|0)>(c[d>>2]|0)){c[d>>2]=u}if(((c[d>>2]|0)-u|0)>(x|0)){x=(c[d>>2]|0)-u|0}if((x|0)>((p|0)/16|0|0)){y=755;break}c[e>>2]=(c[e>>2]|0)+1}if((x|0)==0){break}if((x|0)<=((p|0)/16|0|0)){s=(s*98|0|0)/100|0}if((n|0)<=(c[a+60>>2]|0)){s=(s*98|0|0)/100|0}if((h|0)==0){s=(s*96|0|0)/100|0}dy(a,81,s)|0}}while(0);r=100;s=100;if((p|0)>2){z=(q|0)>3}else{z=0}if(!z){A=a;B=A+36|0;C=c[B>>2]|0;i=b;return C|0}if((c[f+108>>2]|0)>2){A=a;B=A+36|0;C=c[B>>2]|0;i=b;return C|0}c[e>>2]=m;while(1){if((c[e>>2]<<1|0)>(m+n|0)){break}if((dv(k,l,c[e>>2]|0,c[e>>2]|0,c[a+68>>2]|0,o)|0)==2){y=776;break}c[e>>2]=(c[e>>2]|0)+1}if((c[e>>2]<<1|0)>(m+n|0)){A=a;B=A+36|0;C=c[B>>2]|0;i=b;return C|0}c[e>>2]=(m+n|0)/2|0;while(1){if((c[e>>2]|0)>(n|0)){break}if((dv(k,l,c[e>>2]|0,c[e>>2]|0,c[a+68>>2]|0,o)|0)==1){if((dv(k,k+((p|0)/2|0)|0,c[e>>2]|0,c[e>>2]|0,c[a+68>>2]|0,o)|0)==0){y=785;break}}c[e>>2]=(c[e>>2]|0)+1}if((c[e>>2]|0)>(n|0)){A=a;B=A+36|0;C=c[B>>2]|0;i=b;return C|0}c[d>>2]=0;z=m+((q|0)/3|0)|0;c[e>>2]=z;x=z;while(1){if((c[e>>2]|0)>(n-((q|0)/8|0)|0)){break}u=dC(c[a+68>>2]|0,k,c[e>>2]|0,p,o,0,3)|0;if((u|0)>(c[d>>2]|0)){c[d>>2]=u;x=c[e>>2]|0}if((c[d>>2]|0)>((p|0)/2|0|0)){y=795;break}c[e>>2]=(c[e>>2]|0)+1}do{if((c[d>>2]|0)>=((p|0)/2|0|0)){if((c[d>>2]|0)>=(p|0)){break}if((n-x+1|0)<((q|0)/4|0|0)){s=(s*96|0|0)/100|0}if((dv(k+((c[d>>2]|0)/2|0)|0,k+((c[d>>2]|0)/2|0)|0,x,n,c[a+68>>2]|0,o)|0)!=0){s=(s*96|0|0)/100|0}L1110:do{if((dC(c[a+68>>2]|0,k+((p|0)/16|0)|0,x,q,o,0,1)|0)<(((q|0)/16|0)+1|0)){s=(s*97|0|0)/100|0;do{if((h|0)==0){if((j|0)==0){break}break L1110}}while(0);A=a;B=A+36|0;C=c[B>>2]|0;i=b;return C|0}}while(0);if((dC(c[a+68>>2]|0,k+((p|0)/16|0)|0,x-((q|0)/32|0)-1|0,q,o,1,3)|0)>=(p-((p|0)/8|0)|0)){y=812}else{if((dC(c[a+68>>2]|0,k+((p|0)/16|0)|0,x-((q|0)/16|0)-1|0,q,o,1,3)|0)>=(p-((p|0)/8|0)|0)){y=812}}if((y|0)==812){s=(s*96|0|0)/100|0}if(((du(l-((p|0)/3|0)|0,l,m+((q|0)/3|0)|0,m+((q|0)/3|0)|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)!=1){A=a;B=A+36|0;C=c[B>>2]|0;i=b;return C|0}if(((du(k,k+((p|0)/3|0)|0,m+((q|0)/3|0)|0,m+((q|0)/3|0)|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)!=1){A=a;B=A+36|0;C=c[B>>2]|0;i=b;return C|0}if(((du(k,k+((p|0)/4|0)|0,n-((q|0)/8|0)|0,n-((q|0)/9|0)|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)==1){A=a;B=A+36|0;C=c[B>>2]|0;i=b;return C|0}if(((du(k,k+((p|0)/4|0)|0,n-((q|0)/5|0)|0,n-((q|0)/9|0)|0,c[a+68>>2]|0,o,1)|0)<<24>>24|0)==1){s=(s*99|0|0)/100|0}if((dv(k+((p|0)/2|0)|0,k+((p|0)/2|0)|0,m,x,c[a+68>>2]|0,o)|0)!=2){A=a;B=A+36|0;C=c[B>>2]|0;i=b;return C|0}do{if((c[f+108>>2]|0)!=1){if((p|0)<16){s=(s*98|0|0)/100|0;break}else{A=a;B=A+36|0;C=c[B>>2]|0;i=b;return C|0}}}while(0);do{if((dH(k,l,m,x,c[a+68>>2]|0,o,0)|0)!=1){if((p|0)<16){s=(s*98|0|0)/100|0;break}else{A=a;B=A+36|0;C=c[B>>2]|0;i=b;return C|0}}}while(0);do{if((dC(g,0,q-1-((q|0)/4|0)|0,p,o,0,3)|0)>((p*5|0|0)/8|0|0)){if(((du((p|0)/4|0,(p|0)/4|0,q-1-((q|0)/4|0)|0,q-1|0,g,o,1)|0)<<24>>24|0)!=1){break}A=a;B=A+36|0;C=c[B>>2]|0;i=b;return C|0}}while(0);if((j|0)==0){s=(s*99|0|0)/100|0}if((h|0)!=0){s=(s*99|0|0)/100|0}e=a;u=s;dy(e,113,u)|0;A=a;B=A+36|0;C=c[B>>2]|0;i=b;return C|0}}while(0);A=a;B=A+36|0;C=c[B>>2]|0;i=b;return C|0}function c6(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=b+44|0;o=100;p=100;if((m|0)>3){q=(l|0)>0}else{q=0}L1177:do{if(q){if((c[b+108>>2]|0)>1){break}if((c[a+196>>2]|0)>2){break}r=i;s=r;t=r;if((c[a+24>>2]|0)!=1){p=(p*98|0|0)/100|0}if((c[b+108>>2]|0)>0){p=(p*96|0|0)/100|0}if((m|0)>(l*3|0|0)){u=(c[a+56>>2]|0)!=0}else{u=0}do{if(u){v=dC(d,(l|0)/2|0,m-1|0,m,k,0,1)|0;if((m-1-v|0)<((c[a+60>>2]|0)-2|0)){break}v=v+(dC(d,(l|0)/2|0,m-1-v|0,m,k,1,1)|0)|0;r=(P(m-1-v-(c[a+56>>2]|0)|0)|0)*3|0;if((r|0)>((c[a+56>>2]|0)-(c[a+52>>2]|0)|0)){break}L1203:do{if(((du(g,h,i,((c[a+52>>2]|0)+(c[a+56>>2]|0)|0)/2|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){do{if(((du(g,h,j-v|0,j-v|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=0){if(((du(g,h,j-v-1|0,j-v-1|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){break}if(((du(g,h,j-v-2|0,j-v-2|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){break}break L1203}}while(0);r=a;w=p;dy(r,105,w)|0;x=105;y=x;return y|0}}while(0)}}while(0);do{if((c[a+56>>2]|0)!=0){if((i<<1|0)<((c[a+56>>2]|0)+(c[a+52>>2]|0)|0)){break}t=c[a+52>>2]|0}}while(0);if((c[a+196>>2]|0)<=1){break}do{if((c[a+204>>2]|0)>((c[a+200>>2]|0)/8|0|0)){if(((c[a+204>>2]|0)*3|0|0)>(c[a+200>>2]<<1|0)){break L1177}if(((c[a+236>>2]|0)*3|0|0)>(c[a+232>>2]<<1|0)){break L1177}z=0;A=c[a+264>>2]|0;while(1){if((A|0)<(c[a+268>>2]|0)){B=(A|0)<128}else{B=0}if(!B){break}if((t|0)>(c[a+296+(A<<3)+4>>2]|0)){t=c[a+296+(A<<3)+4>>2]|0}if((z|0)<(c[a+296+(A<<3)+4>>2]|0)){z=c[a+296+(A<<3)+4>>2]|0}A=A+1|0}do{if((c[a+56>>2]|0)!=0){if((t|0)<=((c[a+56>>2]|0)+2|0)){break}break L1177}}while(0);if((z<<1|0)>=(t+j|0)){break L1177}else{break}}}while(0);if((s*5|0|0)>=((t*3|0)+(j<<1)|0)){p=(p*99|0|0)/100|0}if((s<<1|0)>=(t+j|0)){p=(p*97|0|0)/100|0}if((s*5|0|0)>=(t+(j<<2)|0)){break}if((dC(d,l-1|0,s+((j-t+1|0)/32|0)|0,l,k,0,4)|0)>((l|0)/2|0|0)){p=(p*95|0|0)/100|0}z=j;while(1){if((z|0)<=(t|0)){break}if(((du(g,h,z,z,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){C=921;break}z=z-1|0}if((z|0)>((t+(j*3|0)|0)/4|0|0)){break}if((z|0)>((t+(j<<1)|0)/3|0|0)){p=(p*96|0|0)/100|0}z=((j-s+1|0)/2|0)+s-i|0;if((dv(0,l-1|0,z,z,d,k)|0)!=1){break}while(1){if((z|0)>(j-i|0)){break}if((dv(0,l-1|0,z,z,d,k)|0)!=1){C=933;break}z=z+1|0}D=z;while(1){if((z|0)>(j-i|0)){break}if((dv(0,l-1|0,z,z,d,k)|0)!=2){C=939;break}z=z+1|0}E=z;if((E|0)<((((j-s+1|0)*3|0|0)/4|0)+s-i|0)){break}z=((j-s+1|0)/2|0)+s-i|0;while(1){if((z|0)<=0){break}if((dv(0,l-1|0,z,z,d,k)|0)!=1){C=947;break}z=z-1|0}F=z;while(1){if((z|0)<=0){break}if((dv(0,l-1|0,z,z,d,k)|0)!=2){C=953;break}z=z-1|0}G=z;if((G|0)>(((j-s+1|0)/4|0)+s-i|0)){break}if((E|0)>(D+2|0)){H=dC(d,0,D-1|0,l,k,0,3)|0;I=dC(d,l-1|0,D-1|0,l,k,0,4)|0;w=I-(dC(d,l-1|0,D,l,k,0,4)|0)|0;do{if((w|0)>(H-(dC(d,0,D,l,k,0,3)|0)|0)){z=dC(d,l-I|0,D-1|0,m,k,0,2)|0;if((z|0)>0){v=dC(d,l-I-1|0,D-1+z-1|0,m,k,0,2)|0;if((v|0)>0){z=z+(v-1)|0}}if((D-1+z|0)<(E-1|0)){break L1177}else{break}}else{z=dC(d,(H*11|0|0)/16|0,D-1|0,m,k,0,2)|0;if((D-1+z|0)<(E-2|0)){break L1177}else{break}}}while(0)}do{if((G|0)<(F-2|0)){J=dC(d,0,F+1|0,l,k,0,3)|0;z=dC(d,J-1|0,F+1|0,m,k,0,1)|0;v=dC(d,J,F+2-z|0,m,k,0,1)|0;if((v|0)>0){z=z+(v-1)|0}if((F+1-z|0)>(G+1|0)){break L1177}else{break}}}while(0);do{if((i<<1|0)<=((c[a+52>>2]|0)+(c[a+56>>2]|0)|0)){w=(dC(d,0,0,l,k,0,3)|0)+1|0;if((w|0)>=(dC(d,0,(l|0)/2|0,l,k,0,3)|0)){break}p=(p*97|0|0)/100|0}}while(0);do{if((f|0)!=0){w=dC(d,0,(m<<1|0)/4|0,l,k,0,3)|0;if((w-(dC(d,l-1|0,(m<<1|0)/4|0,l,k,0,4)|0)|0)>((l|0)/8|0|0)){break L1177}else{break}}}while(0);if((t*3|0|0)>((c[a+52>>2]|0)+(c[a+56>>2]<<1)|0)){p=(p*90|0|0)/100|0}do{if((dC(d,l-1|0,(m*3|0|0)/4|0,l,k,0,4)|0)>((l|0)/2|0|0)){if((dC(d,l-1|0,m-1|0,l,k,0,4)|0)>=((l|0)/4|0|0)){break}break L1177}}while(0);do{if((l|0)>5){if((dv(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,t,j,c[a+68>>2]|0,k)|0)<3){break}p=(p*95|0|0)/100|0}}while(0);dy(a,105,p)|0}}while(0);o=100;p=100;if((m|0)>4){K=(l|0)>0}else{K=0}L1372:do{if(K){if((c[b+108>>2]|0)>1){break}t=i;do{if((c[a+56>>2]|0)!=0){if((i<<1|0)<((c[a+56>>2]|0)+(c[a+52>>2]|0)|0)){break}t=c[a+52>>2]|0}}while(0);z=t;while(1){if((z<<1|0)>=(t+j|0)){break}if(((du(g,h,z,z,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){C=1005;break}z=z+1|0}if((z<<1|0)>=(t+j|0)){break}t=z;do{if((c[a+56>>2]|0)!=0){if((t|0)<=((c[a+56>>2]|0)+2|0)){break}break L1372}}while(0);while(1){if((z<<1|0)>=(j+t|0)){break}if(((du(g,h,z,z,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){C=1016;break}z=z+1|0}if((z<<1|0)>=(t+j|0)){break}while(1){if((z<<1|0)>=(j+t|0)){break}if(((du(g,h,z,z,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){C=1024;break}z=z+1|0}if((z<<1|0)>=(t+j|0)){break}s=z;if((dC(d,l-1|0,z+((j-t+1|0)/32|0)|0,l,k,0,4)|0)>((l|0)/2|0|0)){break}z=(t+j|0)/2|0;while(1){if((z|0)>(j|0)){break}if(((du(g,h,z,z,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){C=1034;break}z=z+1|0}if((z|0)<=(j|0)){break}z=((j-s+1|0)/2|0)+s-i|0;if((dv(0,l-1|0,z,z,d,k)|0)>2){break}while(1){if((z|0)>(j-i|0)){break}if((dv(0,l-1|0,z,z,d,k)|0)!=1){C=1044;break}z=z+1|0}D=z;while(1){if((z|0)>(j-i|0)){break}if((dv(0,l-1|0,z,z,d,k)|0)!=2){C=1050;break}z=z+1|0}E=z;if((E|0)<((((j-s+1|0)*3|0|0)/4|0)+s-i|0)){break}z=((j-s+1|0)/2|0)+s-i|0;while(1){if((z|0)<=0){break}if((dv(0,l-1|0,z,z,d,k)|0)!=1){C=1058;break}z=z-1|0}F=z;while(1){if((z|0)<=0){break}if((dv(0,l-1|0,z,z,d,k)|0)!=2){C=1064;break}z=z-1|0}G=z;if((G|0)>(((j-s+1|0)/4|0)+s-i|0)){break}if((E|0)>(D+2|0)){H=dC(d,0,D-1|0,l,k,0,3)|0;I=dC(d,l-1|0,D-1|0,l,k,0,4)|0;B=I-(dC(d,l-1|0,D,l,k,0,4)|0)|0;do{if((B|0)>(H-(dC(d,0,D,l,k,0,3)|0)|0)){z=dC(d,l-I|0,D-1|0,m,k,0,2)|0;if((z|0)>0){v=dC(d,l-I-1|0,D-1+z-1|0,m,k,0,2)|0;if((v|0)>0){z=z+(v-1)|0}}if((D-1+z|0)<(E-1|0)){break L1372}else{break}}else{z=dC(d,(H*11|0|0)/16|0,D-1|0,m,k,0,2)|0;if((D-1+z|0)<(E-2|0)){break L1372}else{break}}}while(0)}do{if((G|0)<(F-2|0)){J=dC(d,0,F+1|0,l,k,0,3)|0;z=dC(d,J-1|0,F+1|0,m,k,0,1)|0;v=dC(d,J,F+2-z|0,m,k,0,1)|0;if((v|0)>0){z=z+(v-1)|0}if((F+1-z|0)>(G+1|0)){break L1372}else{break}}}while(0);do{if((i<<1|0)<=((c[a+52>>2]|0)+(c[a+56>>2]|0)|0)){B=(dC(d,0,0,l,k,0,3)|0)+1|0;if((B|0)>=(dC(d,0,(l|0)/2|0,l,k,0,3)|0)){break}p=(p*97|0|0)/100|0}}while(0);B=dC(d,0,m-1|0,l,k,0,3)|0;if((B-(dC(d,0,m-3|0,l,k,0,3)|0)|0)>(((l|0)/16|0)+1|0)){p=(p*96|0|0)/100|0}do{if((f|0)!=0){B=dC(d,0,(m<<1|0)/4|0,l,k,0,3)|0;if((B-(dC(d,l-1|0,(m<<1|0)/4|0,l,k,0,4)|0)|0)<=((l|0)/8|0|0)){break L1372}else{break}}}while(0);if((t*3|0|0)>((c[a+52>>2]|0)+(c[a+56>>2]<<1)|0)){p=(p*80|0|0)/100|0}if((f|0)==0){p=(p*96|0|0)/100|0}if((c[a+24>>2]|0)!=1){p=(p*98|0|0)/100|0}dy(a,106,p)|0}}while(0);o=100;p=100;do{if((m|0)>4){if((m|0)<=(l|0)){L=0;break}L=(m*5|0|0)>((c[a+60>>2]|0)-(c[a+56>>2]|0)<<2|0)}else{L=0}}while(0);L1529:do{if(L){if((c[a+24>>2]|0)==1){break}if((c[b+108>>2]|0)>1){break}J=dC(d,0,(m|0)/2|0,l,k,0,3)|0;if((dC(d,0,(m*7|0|0)/8|0,l,k,0,3)|0)>(J+((l|0)/8|0)|0)){break}z=(m|0)/16|0;while(1){if((z|0)>=(m-1-((m|0)/16|0)|0)){break}if((dv(0,l-1|0,z,z,d,k)|0)!=1){if((dv(0,l-1|0,z+((m|0)/16|0)|0,z+((m|0)/16|0)|0,d,k)|0)!=1){C=1119;break}}z=z+1|0}if((z|0)<(m-1-((m|0)/16|0)|0)){break}J=dC(d,0,(m|0)/2|0,l,k,0,3)|0;t=dC(d,J,(m|0)/2|0,l,k,1,3)|0;z=(m|0)/4|0;while(1){if((z|0)>=((m*3|0|0)/4|0|0)){break}J=dC(d,0,z,l,k,0,3)|0;J=dC(d,J,z,l,k,1,3)|0;if((P(J-t|0)|0)>(((l|0)/8|0)+1|0)){C=1128;break}z=z+1|0}if((z|0)<((m*3|0|0)/4|0|0)){break}G=0;F=0;z=0;while(1){if((z|0)>=((m|0)/4|0|0)){break}J=dC(d,0,z,l,k,0,3)|0;J=dC(d,J,z,l,k,1,3)|0;if((J|0)>(G|0)){G=J;F=z}z=z+1|0}E=0;D=0;z=(m*3|0|0)/4|0;while(1){if((z|0)>=(m|0)){break}J=dC(d,0,z,l,k,0,3)|0;J=dC(d,J,z,l,k,1,3)|0;if((J|0)>(E|0)){E=J;D=z}z=z+1|0}if((P(E-G|0)|0)>(((l|0)/8|0)+1|0)){break}do{if((G+1|0)<(t|0)){if((e|0)!=0){break}break L1529}}while(0);J=dC(d,0,(m|0)/8|0,l,k,0,3)|0;G=J;J=J+(dC(d,J,(m|0)/8|0,l,k,1,3)|0)|0;G=(G+J-1|0)/2|0;J=dC(d,0,m-1-((m|0)/8|0)|0,l,k,0,3)|0;F=J;J=J+(dC(d,J,m-1-((m|0)/8|0)|0,l,k,1,3)|0)|0;F=(F+J-1|0)/2|0;J=dC(d,0,m-2-((m|0)/8|0)|0,l,k,0,3)|0;v=J;J=J+(dC(d,J,m-2-((m|0)/8|0)|0,l,k,1,3)|0)|0;v=(v+J-1|0)/2|0;if((v|0)>(F|0)){F=v}if((dt(G,(m|0)/8|0,F,m-1-((m|0)/8|0)|0,d,k,100)|0)<95){break}J=(G-F+4|0)/8|0;G=G+J|0;F=F-J|0;z=(m|0)/8|0;J=dC(d,G,z|0,l,k,1,4)|0;v=J;J=dC(d,G,z+1|0,l,k,1,4)|0;if((J|0)>(v|0)){v=J}J=dC(d,G,z|0,l,k,1,3)|0;A=J;J=dC(d,G,z+1|0,l,k,1,3)|0;if((J|0)>(A|0)){A=J}if((P(v-A|0)|0)>(((l|0)/8|0)+1|0)){break}J=dC(d,F,m-z-1|0,l,k,1,4)|0;A=J;J=dC(d,F,m-z-2|0,l,k,1,4)|0;if((J|0)>(A|0)){A=J}if((P(v-A|0)|0)>(((l|0)/8|0)+1|0)){break}J=dC(d,F,m-z-1|0,l,k,1,3)|0;A=J;J=dC(d,F,m-z-2|0,l,k,1,3)|0;if((J|0)>(A|0)){A=J}if((P(v-A|0)|0)>(((l|0)/8|0)+1|0)){break}do{if((m|0)>15){H=dC(d,l-1|0,(m|0)/16|0,l,k,0,4)|0;if((H|0)>((dC(d,l-1|0,(m|0)/4|0,l,k,0,4)|0)+1+((l|0)/32|0)|0)){break L1529}else{break}}}while(0);v=0;z=(m|0)/16|0;while(1){if((z|0)<((m*15|0|0)/16|0|0)){M=(v|0)<2}else{M=0}if(!M){break}if((dv(0,l-1|0,z,z,d,k)|0)!=1){v=v+1|0}z=z+1|0}if((v|0)>1){break}if((e|0)==0){do{if(((du((l|0)/4|0,(l|0)/4|0,0,(m|0)/4|0,d,k,1)|0)<<24>>24|0)==1){if(((du((l|0)/4|0,(l|0)/4|0,(m|0)/2|0,m-1|0,d,k,1)|0)<<24>>24|0)!=0){break}break L1529}}while(0);do{if((dC(d,0,(m|0)/4|0,l,k,0,3)|0)>((l|0)/4|0|0)){if((dC(d,l-1|0,(m|0)/4|0,l,k,0,4)|0)>((l|0)/4|0|0)){break}if((dC(d,1,0,m,k,0,2)|0)>((m|0)/4|0|0)){break}break L1529}}while(0)}do{if(((du(h,h,i,j,c[a+68>>2]|0,k,2)|0)<<24>>24|0)!=2){if(((du(g,h,i,i,c[a+68>>2]|0,k,2)|0)<<24>>24|0)==2){break}if(((du(g,h,j,j,c[a+68>>2]|0,k,2)|0)<<24>>24|0)==2){break}if(((du(g,g,i+1|0,j-1|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){break}break L1529}}while(0);do{if((dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0)<=((l|0)/8|0|0)){if((dC(d,0,(m|0)/2|0,l,k,0,3)|0)<=((l|0)/2|0|0)){break}break L1529}}while(0);do{if((dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0)>((l|0)/2|0|0)){if((dC(d,0,(m|0)/2|0,l,k,0,3)|0)>((l|0)/8|0|0)){break}break L1529}}while(0);do{if((dC(d,l-1|0,(m|0)/4|0,l,k,0,4)|0)>((l|0)/2|0|0)){if((dC(d,l-1|0,(m*3|0|0)/4|0,l,k,0,4)|0)<=((l|0)/2|0|0)){break}if((dC(d,0,(m|0)/2|0,l,k,0,3)|0)>=((l|0)/4|0|0)){break}break L1529}}while(0);J=dC(d,0,(m|0)/2|0,l,k,0,3)|0;v=dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0;do{if((dC(d,0,(m*7|0|0)/8|0,l,k,0,3)|0)>(J+((l|0)/8|0)|0)){if((dC(d,0,(m|0)/8|0,l,k,0,3)|0)<=(J+((l|0)/8|0)|0)){break}if((dC(d,l-1|0,(m*7|0|0)/8|0,l,k,0,4)|0)>=(v-((l|0)/8|0)|0)){break}if((dC(d,l-1|0,(m|0)/8|0,l,k,0,4)|0)>=(v-((l|0)/8|0)|0)){break}break L1529}}while(0);do{if((dC(d,0,(m*7|0|0)/8|0,l,k,0,3)|0)<(J-((l|0)/8|0)|0)){if((dC(d,0,(m|0)/8|0,l,k,0,3)|0)>=(J-((l|0)/8|0)|0)){break}if((dC(d,l-1|0,(m*7|0|0)/8|0,l,k,0,4)|0)<=(v+((l|0)/8|0)|0)){break}if((dC(d,l-1|0,(m|0)/8|0,l,k,0,4)|0)<=(v+((l|0)/8|0)|0)){break}break L1529}}while(0);F=dC(d,0,(m|0)/8|0,l,k,0,3)|0;if((F-(l-(dC(d,l-1|0,(m*7|0|0)/8|0,l,k,0,4)|0))|0)>((l|0)/4|0|0)){break}do{if((dC(d,0,0,l,k,0,3)|0)>((l|0)/2|0|0)){if((dC(d,0,(m|0)/8|0,l,k,0,3)|0)<=((l|0)/2|0|0)){break}if((dC(d,l-1|0,m-1|0,l,k,0,4)|0)<=((l|0)/2|0|0)){break}if((dC(d,l-1|0,m-1-((m|0)/8|0)|0,l,k,0,4)|0)<=((l|0)/2|0|0)){break}p=(p*99|0|0)/100|0}}while(0);do{if((c[a+56>>2]|0)!=0){if((i*3|0|0)<=((c[a+52>>2]|0)+(c[a+56>>2]<<1)|0)){break}if(((du(g+((l|0)/8|0)|0,h-((l|0)/8|0)|0,c[a+52>>2]|0,((c[a+52>>2]|0)+(c[a+56>>2]|0)|0)/2|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){break L1529}else{break}}}while(0);do{if((G+1|0)<(t|0)){if((e|0)!=0){break}p=(p*65|0|0)/100|0}}while(0);E=dC(d,l-1|0,(m|0)/4|0,l,k,0,4)|0;D=dC(d,0,m-1-((m|0)/4|0)|0,l,k,0,3)|0;do{if((E|0)<2){C=1237}else{if((D|0)<2){C=1237;break}if(((du(h-((E|0)/4|0)|0,h-((E|0)/4|0)|0,i,i+((m|0)/4|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){C=1237;break}if(((du(g+((D|0)/4|0)|0,g+((D|0)/4|0)|0,j-((m|0)/4|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){C=1237}}}while(0);if((C|0)==1237){p=(p*99|0|0)/100|0}if((e|0)==0){p=(p*96|0|0)/100|0}do{if((c[a+64>>2]|0)!=0){if((j|0)>=(c[a+64>>2]|0)){break}if((l|0)>2){if(((du(g+1|0,h-1|0,j+1|0,c[a+64>>2]|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){C=1246}else{C=1244}}else{C=1244}do{if((C|0)==1244){if((l|0)>=3){break}if(((du(g,h,j+1|0,c[a+64>>2]|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){C=1246}}}while(0);if((C|0)==1246){p=(p*96|0|0)/100|0}}}while(0);D=0;E=l;z=0;t=0;G=0;while(1){if((z|0)>=((m|0)/4|0|0)){break}v=dC(d,l-1|0,z,l,k,0,4)|0;if((l-v-1|0)>(D|0)){D=l-1-v|0;t=z}v=v+(dC(d,l-1-v|0,z,l,k,1,4)|0)|0;if((l-v-1|0)<(E|0)){E=l-v|0;G=z}z=z+1|0}F=l;H=0;I=m-1|0;z=I;s=I;K=I;while(1){if((z|0)<=(m-1-((m|0)/4|0)|0)){break}v=dC(d,0,z,l,k,0,3)|0;if((v|0)<(F|0)){F=v;s=z}v=v+(dC(d,v,z,l,k,1,3)|0)|0;if((v|0)>(H|0)){H=v;K=z}z=z-1|0}J=((E*3|0)+F|0)/4|0;z=((G*3|0)+s|0)/4|0;v=dC(d,J,z,l,k,0,3)|0;J=((D*3|0)+H|0)/4|0;z=((t*3|0)+K|0)/4|0;A=dC(d,J,z,l,k,0,4)|0;do{if((A|0)>1){if((v<<1|0)<=(A*3|0|0)){if((v*3|0|0)>=(A<<1|0)){break}}p=(p*99|0|0)/100|0}}while(0);do{if((A|0)>1){if((v|0)<=(A<<1|0)){if((v<<1|0)>=(A|0)){break}}p=(p*97|0|0)/100|0}}while(0);v=dC(d,0,0,m,k,0,2)|0;do{if((v|0)>((m|0)/8|0|0)){if((v|0)>=((m|0)/2|0|0)){break}p=(p*99|0|0)/100|0}}while(0);K=dC(d,l-1|0,0,l,k,0,4)|0;if((K-(dC(d,0,0,l,k,0,3)|0)|0)>((l|0)/4|0|0)){p=(p*96|0|0)/100|0}K=dC(d,l-1|0,0,l,k,0,4)|0;if((K-(dC(d,0,0,l,k,0,3)|0)|0)==((l|0)/4|0|0)){p=(p*98|0|0)/100|0}do{if((p|0)>98){if(((du(g,h,i,j,c[a+68>>2]|0,k,2)|0)<<24>>24|0)!=0){break}p=(p*99|0|0)/100|0}}while(0);if((f|0)!=0){p=(p*98|0|0)/100|0}do{if((c[a+60>>2]|0)!=0){if((j<<1|0)>((c[a+56>>2]|0)+(c[a+60>>2]|0)|0)){break}p=(p*96|0|0)/100|0}}while(0);do{if((l|0)<3){if((m|0)<=10){break}if((c[a+64>>2]|0)!=0){break}p=(p*95|0|0)/100|0}}while(0);dy(a,73,p)|0}}while(0);o=100;p=100;do{if((m|0)>4){if((m|0)<(l|0)){N=0;break}N=(l|0)>2}else{N=0}}while(0);do{if(N){if((c[b+108>>2]|0)>0){break}o=(cH(32)|0)<<1;if((c[n+56>>2]|0)>(o|0)){break}v=cI(a,c[n+60>>2]|0,c[n+28>>2]|0,(g+h|0)/2|0,i)|0;f=cI(a,v,c[n+28>>2]|0,h+((l|0)/8|0)|0,j-((m|0)/8|0)|0)|0;k=cI(a,f,c[n+60>>2]|0,g-(l<<1)|0,j-((m|0)/8|0)|0)|0;d=cI(a,c[n+28>>2]|0,c[n+44>>2]|0,(g+h|0)/2|0,j)|0;z=cI(a,c[n+28>>2]|0,c[n+60>>2]|0,h,(i+(j<<1)|0)/3|0)|0;J=cI(a,c[n+44>>2]|0,c[n+60>>2]|0,(g+(h<<1)|0)/3|0,i)|0;M=cI(a,c[n+60>>2]|0,f,g,i)|0;L=cI(a,M,f,h,i)|0;v=cI(a,f,d,g,i)|0;if(((c[a+296+(v<<3)+4>>2]|0)-i|0)<((m|0)/4|0|0)){break}if(((c[a+296+(v<<3)+4>>2]|0)-i|0)<=((m|0)/2|0|0)){p=(p*97|0|0)/100|0}A=cI(a,M,L,g,j)|0;if(((c[a+296+(v<<3)+4>>2]|0)-(c[a+296+(A<<3)+4>>2]|0)|0)<=((m|0)/4|0|0)){break}if((c[a+296+(L<<3)+4>>2]|0)>(i+((m|0)/4|0)|0)){break}if(((c[a+296+(f<<3)+4>>2]|0)-(c[a+296+(L<<3)+4>>2]|0)|0)<((m|0)/2|0|0)){break}if(((c[a+296+(z<<3)+4>>2]|0)-(c[a+296+(J<<3)+4>>2]|0)|0)<((m|0)/2|0|0)){break}if((c[a+296+(L<<3)>>2]|0)<(g+((l|0)/2|0)|0)){break}if(((c[a+296+(f<<3)>>2]|0)-(c[a+296+(k<<3)>>2]|0)|0)<=((l|0)/8|0|0)){break}if(((c[a+296+(f<<3)>>2]|0)-(c[a+296+(k<<3)>>2]|0)|0)<=((l|0)/4|0|0)){p=(p*99|0|0)/100|0}if((c[a+296+(M<<3)+4>>2]|0)>(i+((m|0)/8|0)|0)){p=(p*99|0|0)/100|0}if((c[n+8>>2]|0)==0){p=(p*99|0|0)/100|0;if((c[n+24>>2]|0)==0){p=(p*98|0|0)/100|0}if((c[n+40>>2]|0)<=(c[n+56>>2]|0)){p=(p*97|0|0)/100|0}}d=k;v=d;A=d;while(1){if((v|0)==(z|0)){break}if((c[a+296+(v<<3)>>2]|0)<(c[a+296+(f<<3)>>2]|0)){C=1330;break}v=(v+1|0)%(c[a+264>>2]|0)|0}if((v|0)==(z|0)){break}d=k;v=d;A=d;while(1){if((v|0)==(z|0)){break}if((c[a+296+(v<<3)>>2]|0)>(c[a+296+(z<<3)>>2]|0)){C=1338;break}v=(v+1|0)%(c[a+264>>2]|0)|0}if((v|0)!=(z|0)){break}k=J;v=k;A=k;while(1){if((v|0)==(M|0)){break}if((c[a+296+(v<<3)+4>>2]|0)>(i+((m|0)/4|0)|0)){C=1346;break}v=(v+1|0)%(c[a+264>>2]|0)|0}if((v|0)!=(M|0)){break}k=cG(a,L,f)|0;if((k|0)>((cH(256)|0)<<1|0)){break}if((k*5|0|0)>((cH(256)|0)<<3|0)){p=(p*99|0|0)/100|0}if((k*6|0|0)>((cH(256)|0)<<3|0)){p=(p*99|0|0)/100|0}if((k*7|0|0)>((cH(256)|0)<<3|0)){p=(p*99|0|0)/100|0}if((k<<3|0)>((cH(256)|0)<<3|0)){p=(p*99|0|0)/100|0}k=cG(a,z,J)|0;if((k|0)>((cH(256)|0)<<1|0)){break}if((k*5|0|0)>((cH(256)|0)<<3|0)){p=(p*99|0|0)/100|0}if((e|0)==0){p=(p*99|0|0)/100|0}if((c[a+196>>2]|0)>1){p=(p*98|0|0)/100|0}dy(a,74,p)|0}}while(0);x=c[a+36>>2]|0;y=x;return y|0}function c7(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;b=a;a=c[b>>2]|0;d=0;e=c[a>>2]|0;f=c[a+4>>2]|0;g=c[a+8>>2]|0;h=c[b+8>>2]|0;i=f-e+1|0;j=(c[a+12>>2]|0)-g+1|0;k=100;if((i|0)>2){l=(j|0)>3}else{l=0}if(!l){m=a;n=m+36|0;o=c[n>>2]|0;return o|0}if((c[b+108>>2]|0)>1){m=a;n=m+36|0;o=c[n>>2]|0;return o|0}l=dv(0,i-1|0,(j|0)/4|0,(j|0)/4|0,c[b+4>>2]|0,h)|0;p=dv(0,i-1|0,(j|0)/2|0,(j|0)/2|0,c[b+4>>2]|0,h)|0;if((l|0)<2){q=1382}else{if((l|0)>3){q=1382}}do{if((q|0)==1382){if((p|0)==2){break}m=a;n=m+36|0;o=c[n>>2]|0;return o|0}}while(0);do{if((dC(c[b+4>>2]|0,(i|0)/2|0,0,j,h,0,2)|0)>((j|0)/8|0|0)){if((c[b+36>>2]|0)==0){break}m=a;n=m+36|0;o=c[n>>2]|0;return o|0}}while(0);p=(j*5|0|0)/8|0;do{if((dv(0,(i|0)/2|0,p,p,c[b+4>>2]|0,h)|0)!=1){if((dv(0,(i|0)/2|0,p-1|0,p-1|0,c[b+4>>2]|0,h)|0)==1){break}if((dv((i|0)/2|0,i-1|0,p,p,c[b+4>>2]|0,h)|0)>=1){break}m=a;n=m+36|0;o=c[n>>2]|0;return o|0}}while(0);p=dC(c[b+4>>2]|0,i-1-((i|0)/4|0)|0,0,j,h,0,2)|0;if((p|0)>((j|0)/2|0|0)){m=a;n=m+36|0;o=c[n>>2]|0;return o|0}do{if((p|0)>1){if(((du(i-1-((i|0)/4|0)|0,i-1|0,0,p-2|0,c[b+4>>2]|0,h,1)|0)<<24>>24|0)!=1){break}m=a;n=m+36|0;o=c[n>>2]|0;return o|0}}while(0);p=(j*3|0|0)/4|0;do{if((dv(0,(i|0)/2|0,p,p,c[b+4>>2]|0,h)|0)==1){if((dv((i|0)/2|0,i-1|0,p,p,c[b+4>>2]|0,h)|0)!=0){break}m=a;n=m+36|0;o=c[n>>2]|0;return o|0}}while(0);p=(j|0)/2|0;do{if((dv(0,i-1|0,((j|0)/2|0)-((j|0)/8|0)|0,((j|0)/2|0)-((j|0)/8|0)|0,c[b+4>>2]|0,h)|0)==2){if((dv(0,i-1|0,(j|0)/2|0,(j|0)/2|0,c[b+4>>2]|0,h)|0)!=2){q=1452;break}r=dC(c[b+4>>2]|0,0,p,i,h,0,3)|0;if((r|0)>((i|0)/4|0|0)){m=a;n=m+36|0;o=c[n>>2]|0;return o|0}r=r+(dC(c[b+4>>2]|0,r,p,i-r|0,h,1,3)|0)|0;if((r|0)>((i|0)/2|0|0)){m=a;n=m+36|0;o=c[n>>2]|0;return o|0}s=r;r=r+(dC(c[b+4>>2]|0,r,p,i-r|0,h,0,3)|0)|0;if((r|0)<((i|0)/2|0|0)){m=a;n=m+36|0;o=c[n>>2]|0;return o|0}t=r;r=r+(dC(c[b+4>>2]|0,r,p,i-r|0,h,1,3)|0)|0;if((r|0)<((i*3|0|0)/4|0|0)){m=a;n=m+36|0;o=c[n>>2]|0;return o|0}l=(j|0)/4|0;p=(j*13|0|0)/16|0;if((dv((i|0)/2|0,i-1|0,p,p,c[b+4>>2]|0,h)|0)==2){l=(j*3|0|0)/8|0}do{if((l|0)<2){if((l|0)>=((j|0)/2|0|0)){break}l=l+1|0}}while(0);r=s;while(1){if((r|0)>=(t|0)){break}if((dC(c[b+4>>2]|0,r,0,j,h,0,2)|0)>=(l|0)){q=1418;break}r=r+1|0}if((r|0)<(t|0)){m=a;n=m+36|0;o=c[n>>2]|0;return o|0}r=s;while(1){if((r|0)>=(t|0)){break}if((dC(c[b+4>>2]|0,r,j-1|0,j,h,0,1)|0)>((j|0)/4|0|0)){q=1426;break}r=r+1|0}if((r|0)==(t|0)){m=a;n=m+36|0;o=c[n>>2]|0;return o|0}p=0;r=(s+t|0)/2|0;while(1){if((r|0)>=(t|0)){break}l=dC(c[b+4>>2]|0,r,0,j,h,0,2)|0;l=dC(c[b+4>>2]|0,r,l,j,h,1,2)|0;if((l|0)>(p|0)){p=l}if((l|0)<((p|0)/2|0|0)){q=1436;break}r=r+1|0}if((r|0)<(t|0)){m=a;n=m+36|0;o=c[n>>2]|0;return o|0}if((j|0)>7){s=dC(c[b+4>>2]|0,i-1|0,j-1-((j|0)/8|0)|0,i,h,0,4)|0;u=s+(dC(c[b+4>>2]|0,0,j-1-((j|0)/8|0)|0,i,h,0,3)|0)-((i|0)/8|0)-1|0;s=dC(c[b+4>>2]|0,i-1|0,j-1-((j|0)/2|0)|0,i,h,0,4)|0;if((u|0)>(s+(dC(c[b+4>>2]|0,0,j-1-((j|0)/2|0)|0,i,h,0,3)|0)|0)){k=(k*90|0|0)/100|0}}do{if((j|0)>7){if((i|0)<=7){break}do{if((dC(c[b+4>>2]|0,i-1|0,(j|0)/2|0,i,h,0,4)|0)==0){if((dC(c[b+4>>2]|0,i-1|0,j-1-((j|0)/8|0)|0,i,h,0,3)|0)<=((i|0)/8|0|0)){break}k=(k*98|0|0)/100|0}}while(0)}}while(0)}else{q=1452}}while(0);do{if((q|0)==1452){do{if((dv(0,i-1|0,(j|0)/2|0,(j|0)/2|0,c[b+4>>2]|0,h)|0)!=3){if((dv(0,i-1|0,((j|0)/2|0)-((j|0)/8|0)|0,((j|0)/2|0)-((j|0)/8|0)|0,c[b+4>>2]|0,h)|0)==3){break}m=a;n=m+36|0;o=c[n>>2]|0;return o|0}}while(0);l=dC(c[b+4>>2]|0,0,((j|0)/2|0)-((j|0)/8|0)|0,i,h,0,3)|0;if((l|0)>((i|0)/4|0|0)){m=a;n=m+36|0;o=c[n>>2]|0;return o|0}l=l+(dC(c[b+4>>2]|0,l,((j|0)/2|0)-((j|0)/8|0)|0,i,h,1,3)|0)|0;if((l|0)>((i|0)/2|0|0)){m=a;n=m+36|0;o=c[n>>2]|0;return o|0}l=l+(dC(c[b+4>>2]|0,l,((j|0)/2|0)-((j|0)/8|0)|0,i,h,0,3)|0)|0;if((dv(l,l,0,((j|0)/2|0)-((j<<1|0)/8|0)|0,c[b+4>>2]|0,h)|0)!=0){m=a;n=m+36|0;o=c[n>>2]|0;return o|0}l=l+(dC(c[b+4>>2]|0,l,((j|0)/2|0)-((j|0)/8|0)|0,i,h,1,3)|0)|0;if((dv(l,l,((j|0)/2|0)+1|0,j-1|0,c[b+4>>2]|0,h)|0)==0){d=80;break}m=a;n=m+36|0;o=c[n>>2]|0;return o|0}}while(0);l=dC(c[b+4>>2]|0,i-1|0,(j|0)/2|0,i,h,0,4)|0;do{if((l|0)>5){if(((du(i-1-((l|0)/2|0)|0,i-1-((l|0)/2|0)|0,0,(j|0)/2|0,c[b+4>>2]|0,h,1)|0)<<24>>24|0)!=1){break}m=a;n=m+36|0;o=c[n>>2]|0;return o|0}}while(0);l=l+(dC(c[b+4>>2]|0,i-1-l|0,(j|0)/2|0,i,h,1,4)|0)|0;if(((du(i-1-l|0,i-1-l|0,0,(j|0)/2|0,c[b+4>>2]|0,h,1)|0)<<24>>24|0)==0){m=a;n=m+36|0;o=c[n>>2]|0;return o|0}do{if(((du((i|0)/2|0,(i|0)/2|0,(j|0)/4|0,(j|0)/4|0,c[b+4>>2]|0,h,1)|0)<<24>>24|0)==0){if(((du((i|0)/2|0,i-1|0,j-2|0,j-2|0,c[b+4>>2]|0,h,1)|0)<<24>>24|0)!=0){break}if(((du((i|0)/2|0,(i|0)/2|0,(j|0)/4|0,j-2|0,c[b+4>>2]|0,h,1)|0)<<24>>24|0)!=1){break}m=a;n=m+36|0;o=c[n>>2]|0;return o|0}}while(0);do{if((c[a+24>>2]|0)>0){if((c[a+52>>2]|0)==0){break}L2067:do{if(((du((f+e|0)/2|0,f,c[a+52>>2]|0,g-1|0,c[a+68>>2]|0,h,1)|0)<<24>>24|0)==1){do{if((dv(0,i-1|0,0,0,c[b+4>>2]|0,h)|0)<=2){if((dv(0,i-1|0,1,1,c[b+4>>2]|0,h)|0)>2){break}break L2067}}while(0);m=a;n=m+36|0;o=c[n>>2]|0;return o|0}}while(0)}}while(0);l=dC(c[b+4>>2]|0,i-1|0,j-1|0,i,h,0,4)|0;if((l|0)>((i|0)/2|0|0)){l=dC(c[b+4>>2]|0,i-1|0,j-2|0,i,h,0,4)|0}r=dC(c[b+4>>2]|0,i-1|0,j-1-((j|0)/4|0)|0,i,h,0,4)|0;do{if((c[b+36>>2]|0)!=0){if((l-r|0)<=1){break}m=a;n=m+36|0;o=c[n>>2]|0;return o|0}}while(0);r=dC(c[b+4>>2]|0,0,j-1|0,i,h,0,4)|0;l=dC(c[b+4>>2]|0,0,j-2|0,i,h,0,4)|0;if((l|0)<(r|0)){r=l}l=dC(c[b+4>>2]|0,0,1,i,h,0,4)|0;if((l|0)<(r|0)){r=l}l=dC(c[b+4>>2]|0,0,2,i,h,0,4)|0;if((l|0)<(r|0)){r=l}do{if((c[b+36>>2]|0)!=0){if((r|0)<=0){break}m=a;n=m+36|0;o=c[n>>2]|0;return o|0}}while(0);if((dv(0,i-1|0,(j|0)/4|0,(j|0)/4|0,c[b+4>>2]|0,h)|0)>=3){k=(k*98|0|0)/100|0}if((c[b+36>>2]|0)!=0){q=1500}else{if((g<<1|0)<((c[a+52>>2]|0)+(c[a+56>>2]|0)|0)){q=1500}}if((q|0)==1500){k=(k*96|0|0)/100|0}if((c[b+40>>2]|0)!=0){k=(k*96|0|0)/100|0}if((i|0)<5){k=(k*99|0|0)/100|0;if((dv(0,i-1|0,(j|0)/8|0,(j|0)/8|0,c[b+4>>2]|0,h)|0)>=2){k=(k*97|0|0)/100|0;if((j|0)<=4){j=a;dy(j,109,97)|0}}}dy(a,110,k)|0;m=a;n=m+36|0;o=c[n>>2]|0;return o|0}function c8(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[b+8>>2]|0;h=(c[a+4>>2]|0)-(c[a>>2]|0)+1|0;i=(c[a+12>>2]|0)-(c[a+8>>2]|0)+1|0;j=100;if((h|0)>3){k=(i|0)>3}else{k=0}if(!k){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}if((c[b+108>>2]|0)>1){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}k=(i|0)/4|0;while(1){if((k|0)>((i*3|0|0)/4|0|0)){break}if((dv(0,h-1|0,k,k,d,g)|0)>=3){o=1547;break}k=k+1|0}do{if((k|0)>((i*3|0|0)/4|0|0)){if((h|0)<=4){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);do{if((dv(0,h-1|0,(i|0)/4|0,(i|0)/4|0,d,g)|0)<2){if((dv(0,h-1|0,(i|0)/8|0,(i|0)/8|0,d,g)|0)>=2){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);if((dv(0,h-1|0,(i*3|0|0)/4|0,(i*3|0|0)/4|0,d,g)|0)<2){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}p=dC(d,h-1|0,i-1|0,h,g,0,4)|0;p=dC(d,h-1-p|0,i-1|0,h,g,1,4)|0;if((p|0)>((h|0)/2|0|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}q=dC(d,0,(i*7|0|0)/16|0,h,g,0,3)|0;if((q+(dC(d,h-1|0,(i*7|0|0)/16|0,h,g,0,4)|0)|0)>((h|0)/2|0|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}if((dC(d,0,i-1|0,h,g,0,3)|0)>((i|0)/4|0|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}if((dC(d,0,i-1|0,h,g,0,3)|0)>((i|0)/8|0|0)){j=(j*99|0|0)/100|0}do{if((i|0)>8){if((dC(d,(h|0)/4|0,i-1|0,i,g,0,1)|0)>=((i|0)/4|0|0)){break}if((dC(d,(h*3|0|0)/8|0,i-1|0,i,g,0,1)|0)>=((i|0)/4|0|0)){break}q=dC(d,0,i-1-((i|0)/8|0)|0,h,g,0,3)|0;if((q|0)>=((dC(d,0,i-1-((i|0)/16|0)|0,h,g,0,3)|0)-((h|0)/32|0)|0)){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);do{if((dv(0,h-1|0,(i|0)/2|0,(i|0)/2|0,d,g)|0)==2){if((dv(0,h-1|0,(i|0)/4|0,(i|0)/4|0,d,g)|0)<=2){break}if((dv(0,h-1|0,(i*3|0|0)/4|0,(i*3|0|0)/4|0,d,g)|0)<=2){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);do{if((dv(0,h-1|0,(i*3|0|0)/4|0,(i*3|0|0)/4|0,d,g)|0)==2){if((dv((h|0)/2|0,(h|0)/2|0,(i*3|0|0)/4|0,i-1|0,d,g)|0)<=0){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);q=dC(d,(h*3|0|0)/4|0,0,i,g,0,2)|0;do{if((q|0)>(dC(d,(h<<1|0)/4|0,0,i,g,0,2)|0)){r=dC(d,(h*3|0|0)/4|0,i-1|0,i,g,0,1)|0;if((r|0)>=(dC(d,(h<<1|0)/4|0,i-1|0,i,g,0,1)|0)){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);q=dC(d,(h*3|0|0)/4|0,(i|0)/8|0,i,g,0,2)|0;do{if((q|0)>(dC(d,(h<<1|0)/4|0,(i|0)/8|0,i,g,0,2)|0)){r=dC(d,(h*3|0|0)/4|0,i-1-((i|0)/8|0)|0,i,g,0,1)|0;if((r|0)>=(dC(d,(h<<1|0)/4|0,i-1-((i|0)/8|0)|0,i,g,0,1)|0)){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);if((dv(0,h-1|0,(i|0)/2|0,(i|0)/2|0,d,g)|0)!=4){if((dv(0,h-1|0,(i|0)/2|0,(i|0)/2|0,d,g)|0)==3){k=((i|0)/2|0)+1|0;while(1){if((k|0)>=(i|0)){break}if((dv(0,h-1|0,k,k,d,g)|0)<3){o=1590;break}k=k+1|0}do{if((dv(0,h-1|0,k,k,d,g)|0)==2){p=dC(d,h-1|0,k-1|0,h,g,0,4)|0;p=p+(dC(d,h-1-p|0,k-1|0,h,g,1,4)|0)|0;p=p+(dC(d,h-1-p|0,k-1|0,h,g,0,4)|0)|0;if((dC(d,h-p|0,k-1|0,i,g,0,1)|0)<=(k-2|0)){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0)}}q=0;r=(h|0)/2|0;p=r;s=r;while(1){if((p|0)>=(h-((h|0)/4|0)|0)){break}k=dC(d,p,0,i,g,0,2)|0;if((k|0)<=(q|0)){o=1603;break}q=k;s=p;p=p+1|0}dC(d,s,q,i-q|0,g,1,2)|0;do{if((q|0)<((i|0)/4|0|0)){if((c[b+36>>2]|0)!=0){j=(j*99|0|0)/100|0;break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);do{if((q|0)==0){if((h|0)<=8){break}if((i|0)<=12){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);if((c[b+108>>2]|0)!=0){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}b=dC(d,0,(i*3|0|0)/4|0,h,g,0,3)|0;b=dC(d,b,(i*3|0|0)/4|0,h,g,1,3)|0;L2245:do{if(((b+1|0)*7|0|0)<(h|0)){do{if((dv(s,h-1|0,q-1|0,q-1|0,d,g)|0)==2){if((dv(0,s,q-1|0,q-1|0,d,g)|0)!=2){break}break L2245}}while(0);l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);do{if((dv(0,h-1|0,0,0,d,g)|0)!=2){if((dv(0,h-1|0,1,1,d,g)|0)==2){break}if((dv(0,h-1|0,2,2,d,g)|0)==2){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);do{if((dv(0,h-1|0,(i|0)/4|0,(i|0)/4|0,d,g)|0)==4){if((dv(0,h-1|0,(i*3|0|0)/4|0,(i*3|0|0)/4|0,d,g)|0)!=4){break}s=dC(d,0,(i|0)/4|0,h,g,0,3)|0;s=s+(dC(d,s,(i|0)/4|0,h,g,1,3)|0)|0;s=s+(dC(d,s,(i|0)/4|0,h,g,0,3)|0)|0;q=dC(d,0,(i*3|0|0)/4|0,h,g,0,3)|0;q=q+(dC(d,q,(i*3|0|0)/4|0,h,g,1,3)|0)|0;q=q+(dC(d,q,(i*3|0|0)/4|0,h,g,0,3)|0)|0;if((s|0)>=(q|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}s=s+(dC(d,s,(i|0)/4|0,h,g,1,3)|0)|0;q=q+(dC(d,q,(i*3|0|0)/4|0,h,g,1,3)|0)|0;if((s|0)>=(q|0)){l=a;m=l+36|0;n=c[m>>2]|0;return n|0}s=s+(dC(d,s,(i|0)/4|0,h,g,0,3)|0)|0;q=q+(dC(d,q,(i*3|0|0)/4|0,h,g,0,3)|0)|0;if((s|0)>(q|0)){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);do{if((dv(0,h-1|0,(i|0)/2|0,(i|0)/2|0,d,g)|0)==2){if((dv(0,h-1|0,(i|0)/4|0,(i|0)/4|0,d,g)|0)!=2){break}if((e|0)!=0){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);if((i|0)<17){if((dv(0,h-1|0,0,0,d,g)|0)<2){j=(j*99|0|0)/100|0}}if((h|0)>5){if((dv(0,h-1|0,1,1,d,g)|0)<2){j=(j*96|0|0)/100|0}}if((dv((h|0)/2|0,(h|0)/2|0,0,i-1|0,d,g)|0)!=1){j=(j*98|0|0)/100|0}do{if((h|0)<5){if((dC(d,(h|0)/2|0,0,i,g,0,2)|0)<((i*3|0|0)/8|0|0)){break}j=(j*96|0|0)/100|0}}while(0);do{if((dv(0,h-1|0,(i|0)/4|0,(i|0)/4|0,d,g)|0)<=2){if((dv(0,h-1|0,(i*3|0|0)/4|0,(i*3|0|0)/4|0,d,g)|0)>2){break}if((h|0)<=8){break}if((i|0)<=12){break}j=(j*98|0|0)/100|0;k=(i*5|0|0)/16|0;while(1){if((k|0)>=((i*5|0|0)/8|0|0)){break}if((dv(0,h-1|0,k,k,d,g)|0)==1){o=1658;break}k=k+1|0}if((k|0)<((i*5|0|0)/8|0|0)){j=(j*95|0|0)/100|0}L2316:do{if((k|0)<((i*5|0|0)/8|0|0)){do{if((dv(((h|0)/6|0)+2|0,h-3-((h|0)/6|0)|0,k-2|0,k-2|0,d,g)|0)!=0){if((dv(((h|0)/6|0)+2|0,h-3-((h|0)/6|0)|0,k-1|0,k-1|0,d,g)|0)==0){break}break L2316}}while(0);l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0)}}while(0);do{if((dC(d,(h*3|0|0)/8|0,0,i,g,0,2)|0)>((i|0)/2|0|0)){if((dC(d,(h*5|0|0)/8|0,i-1|0,i,g,0,1)|0)<=((i|0)/2|0|0)){break}j=(j*95|0|0)/100|0}}while(0);do{if((e|0)==0){j=(j*98|0|0)/100|0;k=dC(d,0,(i|0)/4|0,h,g,0,3)|0;if((k|0)>=((dC(d,0,i-1-((i|0)/8|0)|0,h,g,0,3)|0)-((h|0)/16|0)|0)){break}l=a;m=l+36|0;n=c[m>>2]|0;return n|0}}while(0);if((f|0)!=0){j=(j*98|0|0)/100|0}do{if((j|0)>99){if((h|0)>=8){break}j=(j*99|0|0)/100|0}}while(0);dy(a,77,j)|0;l=a;m=l+36|0;n=c[m>>2]|0;return n|0}function c9(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;b=i;i=i+40|0;d=b|0;e=a;a=c[e>>2]|0;f=c[e+36>>2]|0;g=c[e+40>>2]|0;h=c[a>>2]|0;j=c[a+4>>2]|0;k=c[a+8>>2]|0;l=c[a+12>>2]|0;m=j-h+1|0;n=l-k+1|0;o=e+44|0;p=100;q=100;if((m|0)>3){r=(n|0)>3}else{r=0}if(!r){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if((c[e+108>>2]|0)>1){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if((c[e+108>>2]|0)>0){q=(q*98|0|0)/100|0}if((m|0)<6){q=(q*99|0|0)/100|0}if((m|0)<5){q=(q*99|0|0)/100|0}p=(cH(32)|0)<<1;if((c[o+8>>2]|0)>(p|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if((c[o+24>>2]|0)>(p|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if((c[o+40>>2]|0)>(p|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if((c[o+56>>2]|0)>(p|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if(((c[o+48>>2]|0)-(c[o>>2]|0)|0)<((m|0)/2|0|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if(((c[o+32>>2]|0)-(c[o+16>>2]|0)|0)<((m|0)/2|0|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if(((c[o+20>>2]|0)-(c[o+4>>2]|0)|0)<((n|0)/2|0|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if(((c[o+36>>2]|0)-(c[o+52>>2]|0)|0)<((n|0)/2|0|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if(((c[o+48>>2]|0)-(c[o>>2]|0)|0)<3){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if(((c[o+32>>2]|0)-(c[o+16>>2]|0)|0)<3){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if((c[o+20>>2]|0)<=(l-((n|0)/4|0)|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if((c[o+16>>2]|0)>(h+((m|0)/8|0)|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if((P((c[o+52>>2]|0)-(c[o+4>>2]|0)|0)|0)>((n+2|0)/5|0|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if((P((c[o+52>>2]|0)-(c[o+4>>2]|0)|0)|0)>((n+4|0)/8|0|0)){q=(q*98|0|0)/100|0}e=c[a+296+((cI(a,c[o+44>>2]|0,c[o+60>>2]|0,h,k+((n|0)/2|0)|0)|0)<<3)>>2]|0;do{if((e|0)>(h+((m|0)/2|0)|0)){if((e|0)<((c[o+32>>2]|0)-((m|0)/8|0)|0)){break}p=cG(a,c[o+12>>2]|0,c[o+28>>2]|0)|0;if((p|0)>((cH(256)|0)<<1|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}r=p-((cH(1024)|0)/2|0)|0;q=(aa(100-(((r|0)/(cH(1024)|0)|0|0)/4|0)|0,q)|0)/100|0;p=cG(a,c[o+44>>2]|0,c[o+60>>2]|0)|0;if((p|0)>((cH(256)|0)<<1|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}r=cI(a,c[o+28>>2]|0,c[o+44>>2]|0,h+((m|0)/8|0)|0,k)|0;e=c[a+296+(r<<3)>>2]|0;v=c[a+296+(r<<3)+4>>2]|0;if((v-k|0)>((n*5|0|0)/8|0|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if((e-h|0)>((m*5|0|0)/8|0|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}w=cI(a,c[o+28>>2]|0,c[o+44>>2]|0,j,k)|0;x=cG(a,r,c[o+44>>2]|0)|0;p=x;c[d>>2]=x;x=cI(a,c[o+28>>2]|0,r,h+((m|0)/2|0)|0,l+((n|0)/2|0)|0)|0;y=cG(a,c[o+28>>2]|0,x)|0;p=y;c[d+4>>2]=y;y=a;z=x;A=r;cG(y,z,A)|0;A=c[d>>2]|0;if((A|0)>(cH(256)|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}do{if((m|0)>4){A=c[d+4>>2]|0;if((A|0)<=(cH(256)|0)){break}q=(q*97|0|0)/100|0}}while(0);do{if((m|0)>4){A=c[d+4>>2]|0;if((A|0)<=(cH(341)|0)){break}s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}}while(0);A=cI(a,c[o+60>>2]|0,c[o+12>>2]|0,j,l-((n|0)/8|0)|0)|0;e=c[a+296+(A<<3)>>2]|0;v=c[a+296+(A<<3)+4>>2]|0;if((v-k|0)<((n*3|0|0)/8|0|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if((e-h|0)<((m*3|0|0)/8|0|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}do{if(((c[a+296+(w<<3)>>2]|0)-(c[a+296+(r<<3)>>2]|0)|0)>((m|0)/4|0|0)){if(((c[a+296+(w<<3)+4>>2]|0)-(c[a+296+(r<<3)+4>>2]|0)|0)>((n|0)/8|0|0)){break}if((v|0)>(c[a+296+(r<<3)+4>>2]|0)){break}s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}}while(0);x=cI(a,A,c[o+12>>2]|0,h+((m|0)/2|0)|0,k-((n|0)/2|0)|0)|0;v=cG(a,A,x)|0;w=v+(cG(a,x,c[o+12>>2]|0)|0)|0;p=w;c[d+8>>2]=w;x=cI(a,c[o+60>>2]|0,A,h+((m|0)/2|0)|0,k-((n|0)/2|0)|0)|0;w=cG(a,c[o+60>>2]|0,x)|0;v=w+(cG(a,x,A)|0)|0;p=v;c[d+12>>2]=v;v=c[d+8>>2]|0;if((v|0)>(cH(256)|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}v=c[d+12>>2]|0;if((v|0)>(cH(256)|0)){q=(q*97|0|0)/100|0}v=c[d+12>>2]|0;if((v|0)>(cH(341)|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if(((c[a+296+(r<<3)+4>>2]|0)-k-(l-(c[a+296+(A<<3)+4>>2]|0))|0)>((n|0)/8|0|0)){q=(q*99|0|0)/100|0}if(((c[a+296+(A<<3)>>2]|0)-(c[a+296+(r<<3)>>2]|0)|0)<=((m|0)/8|0|0)){s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}if(((c[a+296+(A<<3)+4>>2]|0)-(c[a+296+(r<<3)+4>>2]|0)|0)<=((n|0)/8|0|0)){if((m|0)>8){q=(q*97|0|0)/100|0}}if(((c[a+296+(A<<3)+4>>2]|0)-(c[a+296+(r<<3)+4>>2]|0)|0)<=((n|0)/2|0|0)){q=(q*99|0|0)/100|0}v=c[d>>2]|0;w=v-((cH(1024)|0)/2|0)|0;q=(aa(100-(((w|0)/(cH(1024)|0)|0|0)/4|0)|0,q)|0)/100|0;w=c[d+4>>2]|0;v=w-((cH(1024)|0)/2|0)|0;q=(aa(100-(((v|0)/(cH(1024)|0)|0|0)/4|0)|0,q)|0)/100|0;v=c[d+8>>2]|0;w=v-((cH(1024)|0)/2|0)|0;q=(aa(100-(((w|0)/(cH(1024)|0)|0|0)/4|0)|0,q)|0)/100|0;w=c[d+12>>2]|0;v=w-((cH(1024)|0)/2|0)|0;q=(aa(100-(((v|0)/(cH(1024)|0)|0|0)/4|0)|0,q)|0)/100|0;if((f|0)==0){q=(q*99|0|0)/100|0}if((g|0)!=0){q=(q*98|0|0)/100|0}v=a;w=q;dy(v,78,w)|0;s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}}while(0);s=a;t=s+36|0;u=c[t>>2]|0;i=b;return u|0}function da(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=b+44|0;o=100;p=100;if((l|0)>2){q=(m|0)>3}else{q=0}if(!q){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}if((c[b+108>>2]|0)>1){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}o=(cH(32)|0)<<1;if((c[n+56>>2]|0)<((o|0)/4|0|0)){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}if((c[n+8>>2]|0)>((o|0)/2|0|0)){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}if((c[n+24>>2]|0)>((o|0)/2|0|0)){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}if((c[n+40>>2]|0)>((o|0)/2|0|0)){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}o=c[n+12>>2]|0;q=c[n+28>>2]|0;u=q;v=q;q=c[n+44>>2]|0;n=q;w=q;q=v;x=q;y=q;while(1){if((x|0)==(w|0)){break}if((c[a+296+(x<<3)+4>>2]|0)<(c[a+296+(y<<3)+4>>2]|0)){y=x}if((c[a+296+(x<<3)+4>>2]|0)<=(i|0)){z=1846;break}x=(x+1|0)%(c[a+264>>2]|0)|0}if(((c[a+296+(y<<3)+4>>2]|0)-i|0)<((m|0)/4|0|0)){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}if((j-(c[a+296+(y<<3)+4>>2]|0)|0)<((m|0)/4|0|0)){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}q=cI(a,n,o,(g+h|0)/2|0,(i+j|0)/2|0)|0;q=cI(a,n,q,g,(i+j|0)/2|0)|0;u=cI(a,v,y,(g+h|0)/2|0,j)|0;w=cI(a,y,n,(g+h|0)/2|0,j)|0;if(((du(0,(l|0)/2|0,(m|0)/8|0,(m|0)/8|0,d,k,1)|0)<<24>>24|0)!=1){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}if(((du(0,(l|0)/2|0,(m|0)/2|0,(m|0)/2|0,d,k,1)|0)<<24>>24|0)!=1){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}if(((du((l|0)/2|0,l-1|0,m-1-((m|0)/3|0)|0,m-1-((m|0)/3|0)|0,d,k,1)|0)<<24>>24|0)!=1){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}if(((du((l|0)/2|0,(l|0)/2|0,(m|0)/5|0,m-1-((m|0)/3|0)|0,d,k,1)|0)<<24>>24|0)!=1){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}if(((du(l-1-((l|0)/3|0)|0,l-1|0,0,1,d,k,1)|0)<<24>>24|0)==1){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}if(((du(l-1-((l|0)/3|0)|0,l-1|0,1,(m|0)/6|0,d,k,1)|0)<<24>>24|0)==1){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}do{if((m|0)>18){if(((du(l-1-((l|0)/3|0)|0,l-1|0,(m|0)/6|0,(m|0)/5|0,d,k,1)|0)<<24>>24|0)!=1){break}r=a;s=r+36|0;t=c[s>>2]|0;return t|0}}while(0);if(((du(l-1-((l|0)/3|0)|0,l-1|0,m-1-((m|0)/4|0)|0,m-1|0,d,k,1)|0)<<24>>24|0)==0){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}n=g+((l|0)/3|0)|0;while(1){if((n|0)>=(h-((l|0)/3|0)|0)){break}if(((du(n,n,j-((m|0)/4|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){z=1874;break}n=n+1|0}if((n|0)>=(h-((l|0)/3|0)|0)){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}x=(m|0)/4|0;n=i+((m|0)/3|0)|0;while(1){if((n|0)<=(j|0)){A=(x|0)!=0}else{A=0}if(!A){break}if((dv(g,h,n,n,c[a+68>>2]|0,k)|0)==2){x=x-1|0}n=n+1|0}if((x|0)!=0){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}x=(m|0)/4|0;n=i;while(1){if((n|0)<=(i+((m|0)/2|0)|0)){B=(x|0)!=0}else{B=0}if(!B){break}if((dv(g,g+((l|0)/2|0)|0,n,n,c[a+68>>2]|0,k)|0)==1){x=x-1|0}n=n+1|0}if((x|0)!=0){r=a;s=r+36|0;t=c[s>>2]|0;return t|0}if((c[b+108>>2]|0)>0){do{if((c[b+128>>2]|0)>((m|0)/3|0|0)){if((c[b+136>>2]|0)>=(m-1-((m|0)/3|0)|0)){break}r=a;s=r+36|0;t=c[s>>2]|0;return t|0}}while(0)}n=(dC(d,l-1|0,(m|0)/3|0,l,k,0,4)|0)+((l|0)/8|0)|0;do{if((n|0)<(dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0)){B=(dC(d,l-1|0,m-1-((m|0)/8|0)|0,l,k,0,4)|0)+((l|0)/8|0)|0;if((B|0)>=(dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0)){break}r=a;s=r+36|0;t=c[s>>2]|0;return t|0}}while(0);x=dC(d,0,m-1-((m|0)/4|0)|0,l,k,0,3)|0;do{if((x|0)>1){if((dv(g,g,i+((m|0)/8|0)+2|0,i+((m|0)/2|0)|0,c[a+68>>2]|0,k)|0)!=1){break}p=(aa(99-(1<>2]|0,k)|0)==0){p=(p*97|0|0)/100|0}if((dv(g+((l|0)/2|0)|0,g+((l|0)/2|0)|0,i,i+((m|0)/8|0)+2|0,c[a+68>>2]|0,k)|0)==1){p=(p*97|0|0)/100|0}if((p|0)>=1){break}r=a;s=r+36|0;t=c[s>>2]|0;return t|0}}while(0);x=dC(d,0,(m|0)/4|0,l,k,0,3)|0;x=x+((dC(d,x,(m|0)/4|0,l,k,1,3)|0)+1)|0;while(1){if((x|0)>=(l-((l|0)/3|0)|0)){break}if((dC(d,x,0,m,k,0,2)|0)>((m*5|0|0)/8|0|0)){p=(p*98|0|0)/100|0}x=x+1|0}if((dv(g,g,i+((m+3|0)/8|0)|0,j,c[a+68>>2]|0,k)|0)>1){p=(p*98|0|0)/100|0}x=dC(d,l-1|0,(m*3|0|0)/4|0,l,k,0,4)|0;do{if((x|0)>((l|0)/4|0|0)){if((dC(d,l-1-x|0,m-1|0,m,k,1,1)|0)<=((m|0)/2|0|0)){break}p=(p*94|0|0)/100|0}}while(0);x=dC(d,l-1|0,((m|0)/16|0)+1|0,l,k,0,4)|0;if((x|0)<((l|0)/4|0|0)){p=(p*98|0|0)/100|0}if((dv(l-x+1+((l|0)/8|0)|0,l-x+1+((l|0)/8|0)|0,0,((m|0)/16|0)+1|0,d,k)|0)>0){p=(p*95|0|0)/100|0}if((dC(c[a+68>>2]|0,h,i+1+((m|0)/16|0)|0,l,k,0,4)|0)<((l|0)/4|0|0)){p=(p*98|0|0)/100|0}if((dC(c[a+68>>2]|0,h,i,l,k,0,4)|0)<((l|0)/4|0|0)){z=1935}else{if((dC(c[a+68>>2]|0,h,i+1|0,l,k,0,4)|0)<((l|0)/4|0|0)){z=1935}}if((z|0)==1935){p=(p*98|0|0)/100|0}if((c[b+108>>2]|0)>0){p=(p*97|0|0)/100|0}if((c[a+56>>2]|0)!=0){if((f|0)!=0){p=(p*98|0|0)/100|0}if((e|0)==0){p=(p*97|0|0)/100|0}}else{p=(p*99|0|0)/100|0}dy(a,104,p)|0;r=a;s=r+36|0;t=c[s>>2]|0;return t|0}function db(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=100;if((l|0)>2){o=(m|0)>3}else{o=0}if(!o){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}if((c[b+108>>2]|0)>1){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}do{if((dv(0,l-1|0,(m|0)/4|0,(m|0)/4|0,d,k)|0)!=2){if((dv(0,l-1|0,((m|0)/4|0)-1|0,((m|0)/4|0)-1|0,d,k)|0)==2){break}p=a;q=p+36|0;r=c[q>>2]|0;return r|0}}while(0);do{if((dv(0,l-1|0,(m*3|0|0)/4|0,(m*3|0|0)/4|0,d,k)|0)!=2){if((dv(0,l-1|0,((m*3|0|0)/4|0)+1|0,((m*3|0|0)/4|0)+1|0,d,k)|0)==2){break}p=a;q=p+36|0;r=c[q>>2]|0;return r|0}}while(0);o=dC(d,0,(m|0)/8|0,l,k,0,3)|0;if((o+(dC(d,l-1|0,(m|0)/8|0,l,k,0,4)|0)|0)>((l|0)/2|0|0)){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}o=0;s=1;t=i+((m|0)/10|0)|0;while(1){if((t|0)<(j-((m|0)/10|0)|0)){u=(s|0)!=0}else{u=0}if(!u){break}v=dC(c[a+68>>2]|0,g,t,l,k,0,3)|0;w=v+(dC(c[a+68>>2]|0,h,t,l,k,0,4)|0)|0;if((w|0)>((l|0)/2|0|0)){s=0}if((w|0)>(o|0)){o=w}t=t+1|0}if((s|0)==0){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}s=1;t=(m|0)/4|0;while(1){if((t|0)<(m-1-((m|0)/4|0)|0)){x=(s|0)!=0}else{x=0}if(!x){break}u=dC(d,0,t,l,k,0,3)|0;w=u+(dC(d,l-1|0,t,l,k,0,4)|0)|0;if((o-w|0)>((l|0)/5|0|0)){s=0}t=t+1|0}if((s|0)==0){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}s=0;o=i+((m|0)/3|0)|0;t=o;x=o;while(1){if((t|0)>=(j-((m|0)/3|0)|0)){break}w=dC(c[a+68>>2]|0,g,t,l,k,0,3)|0;w=dC(c[a+68>>2]|0,g+w|0,t,l,k,1,3)|0;if((w|0)>(s|0)){s=w;x=t}t=t+1|0}if((s|0)<=((l|0)/2|0|0)){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}x=x-i|0;do{if((dv(0,l-1|0,x,x,d,k)|0)!=1){if((dv(0,l-1|0,x+1|0,x+1|0,d,k)|0)==1){break}p=a;q=p+36|0;r=c[q>>2]|0;return r|0}}while(0);t=x;while(1){if((t|0)>=(m-((m|0)/4|0)|0)){break}if((dv(0,l-1|0,t,t,d,k)|0)>2){if((dv(0,l-1|0,t+1|0,t+1|0,d,k)|0)>2){x=2021;break}}t=t+1|0}if((t|0)<(m-((m|0)/4|0)|0)){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}s=1;x=g+((l|0)/4|0)|0;while(1){if((x|0)<=(h-((l|0)/4|0)|0)){y=(s|0)!=0}else{y=0}if(!y){break}if(((du(x,x,i,i+((m|0)/4|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){s=0}x=x+1|0}if((s|0)!=0){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}s=1;x=g+((l|0)/4|0)|0;while(1){if((x|0)<=(h-((l|0)/4|0)|0)){z=(s|0)!=0}else{z=0}if(!z){break}if(((du(x,x,j-((m|0)/4|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){s=0}x=x+1|0}if((s|0)!=0){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}s=1;x=g+((l|0)/4|0)|0;while(1){if((x|0)<=(h-((l|0)/4|0)|0)){A=(s|0)!=0}else{A=0}if(!A){break}if((dv(x,x,i+((m|0)/8|0)|0,j-((m|0)/8|0)|0,c[a+68>>2]|0,k)|0)==1){s=0}x=x+1|0}if((s|0)!=0){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}s=1;t=i;while(1){if((t|0)<=(i+((m|0)/4|0)|0)){B=(s|0)!=0}else{B=0}if(!B){break}if((dv(g,h,t,t,c[a+68>>2]|0,k)|0)==2){s=0}t=t+1|0}if((s|0)!=0){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}s=1;t=j-((m|0)/4|0)|0;while(1){if((t|0)<=(j|0)){C=(s|0)!=0}else{C=0}if(!C){break}if((dv(g,h,t,t,c[a+68>>2]|0,k)|0)==2){s=0}t=t+1|0}if((s|0)!=0){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}if(((du(h-((l|0)/8|0)|0,h,i,i+((m|0)/8|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}if(((du(g,g+((l|0)/8|0)|0,j-((m|0)/8|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}t=dC(d,l-1|0,(m|0)/4|0,l,k,0,4)|0;if((t|0)>((l|0)/2|0|0)){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}C=dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0;do{if((C|0)>=(t-((l|0)/4|0)|0)){if((C|0)>(t+((l|0)/8|0)|0)){break}B=dC(d,l-1|0,m-1-((m|0)/4|0)|0,l,k,0,4)|0;do{if((B|0)>=(C-((l|0)/4|0)|0)){if((B|0)>(C+((l|0)/8|0)|0)){break}if((P(t+B-(C<<1)|0)|0)>(((l|0)/16|0)+1|0)){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}if((dv(g,h,i,j,c[a+68>>2]|0,k)|0)<2){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}if((dv(g,h,i,(i+j|0)/2|0,c[a+68>>2]|0,k)|0)<2){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}t=dC(d,0,(m|0)/4|0,l,k,0,3)|0;t=dC(d,t,(m|0)/4|0,l,k,1,3)|0;C=dC(d,0,m-1-((m|0)/4|0)|0,l,k,0,3)|0;C=dC(d,C,m-1-((m|0)/4|0)|0,l,k,1,3)|0;B=dC(d,l-1|0,m-1-((m|0)/4|0)|0,l,k,0,4)|0;B=dC(d,l-1-B|0,m-1-((m|0)/4|0)|0,l,k,1,4)|0;do{if((l|0)<10){if((t-C|0)<=((l|0)/4|0|0)){break}p=a;q=p+36|0;r=c[q>>2]|0;return r|0}}while(0);do{if((l|0)<10){if((t-C|0)<=((l|0)/8|0|0)){break}n=(n*99|0|0)/100|0}}while(0);s=dC(d,0,((m|0)/2|0)+1+((m|0)/8|0)|0,l,k,0,3)|0;s=s+(dC(d,s,((m|0)/2|0)+1+((m|0)/8|0)|0,l,k,1,3)|0)|0;s=dC(d,s,((m|0)/2|0)+1+((m|0)/8|0)|0,l,k,0,3)|0;do{if((s|0)<(((l|0)/2|0)-1|0)){if((t*5|0|0)<=(C*6|0|0)){break}if((B*5|0|0)<=(C*6|0|0)){break}if((t|0)<=(C|0)){break}if((B|0)<=(C|0)){break}p=a;q=p+36|0;r=c[q>>2]|0;return r|0}}while(0);if((l|0)>8){x=dC(d,l-1|0,(m*3|0|0)/8|0,l,k,0,4)|0;do{if((x-(dC(d,l-1|0,(m|0)/8|0,l,k,0,4)|0)|0)>((l|0)/4|0|0)){A=dC(d,l-1|0,(m*3|0|0)/8|0,l,k,0,4)|0;if((A-(dC(d,l-1|0,m-1-((m|0)/8|0)|0,l,k,0,4)|0)|0)<=((l|0)/4|0|0)){break}p=a;q=p+36|0;r=c[q>>2]|0;return r|0}}while(0)}if((c[b+108>>2]|0)!=0){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}if((f|0)!=0){n=(n*99|0|0)/100|0}if((e|0)==0){n=(n*98|0|0)/100|0}x=a;A=n;dy(x,72,A)|0;p=a;q=p+36|0;r=c[q>>2]|0;return r|0}}while(0);p=a;q=p+36|0;r=c[q>>2]|0;return r|0}}while(0);p=a;q=p+36|0;r=c[q>>2]|0;return r|0}function dc(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=b+44|0;o=100;if((l|0)>2){p=(m|0)>3}else{p=0}if(!p){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((c[b+108>>2]|0)>1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}p=(cH(32)|0)<<1;if((c[n+56>>2]|0)<((p|0)/4|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((c[n+8>>2]|0)>((p|0)/2|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((c[n+24>>2]|0)>((p|0)/2|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((c[n+40>>2]|0)>((p|0)/2|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}p=c[n+12>>2]|0;t=p;u=p;p=c[n+28>>2]|0;v=p;w=p;p=c[n+44>>2]|0;n=w;x=n;y=n;while(1){if((x|0)==(p|0)){break}if((c[a+296+(x<<3)+4>>2]|0)<(c[a+296+(y<<3)+4>>2]|0)){y=x}if((c[a+296+(x<<3)+4>>2]|0)<=(i|0)){z=2166;break}x=(x+1|0)%(c[a+264>>2]|0)|0}if(((c[a+296+(y<<3)+4>>2]|0)-i|0)<((m|0)/4|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((j-(c[a+296+(y<<3)+4>>2]|0)|0)<((m|0)/4|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}n=cI(a,p,t,h,((i<<1)+j|0)/3|0)|0;cI(a,n,t,g,j)|0;v=cI(a,w,y,(g+h|0)/2|0,j)|0;x=cI(a,p,n,g-l|0,(i+(j<<1)|0)/3|0)|0;if((h-(c[a+296+(x<<3)>>2]|0)|0)<((l|0)/4|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((h-(c[a+296+(x<<3)>>2]|0)|0)<((l|0)/3|0|0)){o=(o*99|0|0)/100|0}if((h-(c[a+296+(x<<3)>>2]|0)|0)<((l|0)/2|0|0)){o=(o*99|0|0)/100|0}do{if((dv(0,l-1|0,0,0,d,k)|0)!=1){if((dv(0,l-1|0,1,1,d,k)|0)==1){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);do{if((dv(0,(l*3|0|0)/4|0,(m|0)/8|0,(m|0)/8|0,d,k)|0)==1){if((dv(0,(l*3|0|0)/4|0,(m*3|0|0)/16|0,(m*3|0|0)/16|0,d,k)|0)!=1){break}do{if((dv(0,l-1|0,m-1|0,m-1|0,d,k)|0)!=2){if((dv(0,l-1|0,m-2|0,m-2|0,d,k)|0)==2){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);do{if((l|0)<8){if((dv(l-1|0,l-1|0,(m|0)/4|0,m-1|0,d,k)|0)==2){break}if((dv(l-2|0,l-2|0,(m|0)/4|0,m-1|0,d,k)|0)==2){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);u=dC(d,0,((m|0)/2|0)-((m|0)/4|0)|0,l,k,0,3)|0;w=dC(d,0,(m|0)/2|0,l,k,0,3)|0;if((w|0)>((l|0)/2|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}v=dC(d,0,((m|0)/2|0)+((m|0)/4|0)|0,l,k,0,3)|0;do{if((P(u+v-(w<<1)|0)|0)<=(((l+8|0)/16|0)+1|0)){if((u|0)<(v-1|0)){break}if(((du(g,g+((l|0)/2|0)|0,i,i+((m|0)/4|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(g+((l|0)/2|0)|0,h,j-((m|0)/3|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(h-((l|0)/4|0)|0,h,i,i+((m*3|0|0)/16|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(h-((l|0)/4|0)|0,h,i+((m|0)/4|0)|0,j-((m|0)/4|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if(((du(h-((l|0)/4|0)|0,h,j-((m|0)/8|0)|0,j,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}do{if((c[b+108>>2]|0)>0){if((c[b+128>>2]|0)<=((m|0)/4|0|0)){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);n=i+1|0;while(1){if((n|0)>=(i+((m|0)/2|0)|0)){break}if(((du(g,h,n,n,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){z=2214;break}n=n+1|0}if((n|0)<(i+((m|0)/2|0)|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}x=1;p=g;while(1){if((p|0)<=(g+((l|0)/2|0)|0)){A=(x|0)!=0}else{A=0}if(!A){break}if((dr(p,i,p,j,c[a+68>>2]|0,k,100)|0)>50){x=0}p=p+1|0}if((x|0)!=0){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}p=0;y=0;n=(m*5|0|0)/8|0;while(1){if((n|0)>=((m*7|0|0)/8|0|0)){break}x=dC(d,l-1|0,n,l,k,0,4)|0;if((x|0)>(p|0)){p=x;y=n}n=n+1|0}if((p+((dC(d,l-1-p|0,y,l,k,1,4)|0)/2|0)|0)<((l|0)/4|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}if((p+((dC(d,l-1-p|0,y,l,k,1,4)|0)/2|0)|0)<((l|0)/2|0|0)){o=(o*98|0|0)/100|0}p=l-1-p|0;n=y;x=dC(d,l-1|0,m-1|0,l,k,0,4)|0;if((x|0)>((l|0)/2|0|0)){x=dC(d,l-1|0,m-2|0,l,k,0,4)|0}if((x|0)>((l|0)/2|0|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}x=x+((dC(d,l-1-x|0,m-1|0,l,k,1,4)|0)/2|0)|0;if((dr(p,n,l-1-x|0,m-1|0,d,k,100)|0)<60){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}n=i+((m|0)/3|0)|0;while(1){if((n|0)>=(j|0)){break}if((dv(g,h,n,n,c[a+68>>2]|0,k)|0)==2){z=2248;break}n=n+1|0}if((n|0)==(j|0)){q=a;r=q+36|0;s=c[r>>2]|0;return s|0}L3106:do{if((c[b+108>>2]|0)>0){do{if((c[b+132>>2]|0)<=(l-1-((l|0)/4|0)|0)){if((c[b+136>>2]|0)>(m-1-((m|0)/4|0)|0)){break}if((c[b+128>>2]|0)<((m|0)/4|0|0)){break}break L3106}}while(0);q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);x=dC(d,0,m-1|0,l,k,0,3)|0;x=dC(d,x,m-1|0,l,k,1,3)|0;do{if((l|0)>8){if((x<<2|0)<=(l*3|0|0)){break}q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);x=dC(d,0,(m|0)/4|0,l,k,0,3)|0;do{if((x|0)>((l|0)/4|0|0)){if((x+(dC(d,x,(m|0)/4|0,l,k,1,3)|0)|0)<=((l|0)/2|0|0)){break}if((dC(d,0,0,l,k,0,3)|0)>((l|0)/4|0|0)){break}if((dC(d,l-1|0,0,l,k,0,4)|0)<((l|0)/2|0|0)){break}o=(o*90|0|0)/100|0}}while(0);if((i<<1|0)>((c[a+52>>2]|0)+(c[a+56>>2]|0)|0)){o=(o*99|0|0)/100|0}if((f|0)!=0){o=(o*99|0|0)/100|0}if((e|0)==0){o=(o*99|0|0)/100|0}dy(a,107,o)|0;q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);q=a;r=q+36|0;s=c[r>>2]|0;return s|0}}while(0);q=a;r=q+36|0;s=c[r>>2]|0;return s|0}function dd(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[b+40>>2]|0;g=c[a>>2]|0;h=c[a+4>>2]|0;i=c[a+8>>2]|0;j=c[a+12>>2]|0;k=c[b+8>>2]|0;l=h-g+1|0;m=j-i+1|0;n=100;if((l|0)>2){o=(m|0)>3}else{o=0}if(!o){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}if((c[b+108>>2]|0)>1){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}o=(m|0)/8|0;while(1){if((o|0)>=(m-((m|0)/8|0)|0)){break}if((du(0,(l|0)/2|0,o,o,d,k,1)|0)<<24>>24==0){s=2314;break}o=o+1|0}if((o|0)<(m-((m|0)/8|0)|0)){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}t=0;u=1;v=g+((l|0)/4|0)|0;while(1){if((v|0)<=(h-((l|0)/4|0)|0)){w=(u|0)!=0}else{w=0}if(!w){break}o=dC(c[a+68>>2]|0,v,i,j-i|0,k,0,2)|0;if((o|0)>((m*3|0|0)/4|0|0)){s=2324;break}do{if((m|0)>15){if((t|0)<=((m|0)/8|0|0)){break}t=(dC(c[a+68>>2]|0,v-1|0,i+o-1|0,h-g|0,k,0,4)|0)/2|0;o=o+((dC(c[a+68>>2]|0,v-t|0,i+o-1|0,j-i|0,k,0,2)|0)-1)|0}}while(0);if((o|0)>=((m|0)/4|0|0)){u=0}v=v+1|0}if((s|0)==2324){u=1}if((u|0)!=0){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}o=0;v=g+((l|0)/4|0)|0;while(1){if((v|0)>(h-((l|0)/4|0)|0)){break}u=dC(c[a+68>>2]|0,v,j,m,k,0,1)|0;if((u|0)>0){s=dC(c[a+68>>2]|0,v-1|0,j-u-1|0,m,k,0,1)|0;if((s|0)>1){u=u+(s-1)|0}}if((u|0)>(o|0)){o=u;}v=v+1|0}if((o|0)<=((m|0)/8|0|0)){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}if((o|0)<((m|0)/4|0|0)){n=(n*80|0|0)/100|0}u=1;v=g+((l|0)/3|0)|0;while(1){if((v|0)<=(h-((l|0)/8|0)|0)){x=(u|0)!=0}else{x=0}if(!x){break}if((dv(v,v,i,j,c[a+68>>2]|0,k)|0)==2){u=0}v=v+1|0}if((u|0)!=0){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}u=1;o=i;while(1){if((o|0)<=(i+((m|0)/4|0)|0)){y=(u|0)!=0}else{y=0}if(!y){break}if((dv(g,h,o,o,c[a+68>>2]|0,k)|0)==2){u=0}o=o+1|0}if((u|0)!=0){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}do{if((l|0)<10){u=1;o=i+((m|0)/3|0)|0;while(1){if((o|0)<=(j-((m|0)/3|0)|0)){z=(u|0)!=0}else{z=0}if(!z){break}if((dv(g,h,o,o,c[a+68>>2]|0,k)|0)==1){u=0}o=o+1|0}if((u|0)==0){break}p=a;q=p+36|0;r=c[q>>2]|0;return r|0}}while(0);u=1;o=j-((m|0)/4|0)|0;while(1){if((o|0)<=(j|0)){A=(u|0)!=0}else{A=0}if(!A){break}if((dv(g,h,o,o,c[a+68>>2]|0,k)|0)==2){u=0}o=o+1|0}if((u|0)!=0){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}if(((du(h-((l|0)/3|0)|0,h,i,i+((m|0)/8|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}A=dC(d,0,(m|0)/4|0,l,k,0,3)|0;z=A+(dC(d,0,(m*3|0|0)/4|0,l,k,0,3)|0)|0;do{if((z|0)<(((dC(d,0,(m|0)/2|0,l,k,0,3)|0)<<1)-2-((l|0)/32|0)|0)){if((m|0)>=16){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}else{n=(n*98|0|0)/100|0;break}}}while(0);u=dC(c[a+68>>2]|0,h,i+((m|0)/4|0)|0,h-g+1|0,k,0,4)|0;if((u|0)>((l|0)/2|0|0)){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}t=dC(c[a+68>>2]|0,h,i+((m|0)/2|0)|0,h-g+1|0,k,0,4)|0;v=dC(c[a+68>>2]|0,h,i+((m*3|0|0)/8|0)|0,h-g+1|0,k,0,4)|0;if((v|0)>(t|0)){t=v}if((t|0)<=(u|0)){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}u=t;t=dC(c[a+68>>2]|0,h,j-((m|0)/4|0)|0,h-g+1|0,k,0,4)|0;if((t|0)>=(u|0)){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}t=(m|0)/4|0;g=dC(d,0,t,l,k,0,3)|0;g=g+((dC(d,g,t,l,k,1,3)|0)/2|0)|0;h=m-((m|0)/4|0)|0;j=dC(d,0,h,l,k,0,3)|0;j=j+((dC(d,j,h,l,k,1,3)|0)/2|0)|0;i=(m|0)/2|0;z=l-1-(dC(d,l-1|0,(m|0)/2|0,l,k,0,4)|0)|0;u=0;o=0;A=0;y=0;x=0;s=0;w=l;B=w;C=w;while(1){if((o|0)>=((m|0)/4|0|0)){break}v=dC(d,l-1|0,o,l,k,0,4)|0;if((v|0)<(B|0)){B=v;s=o}v=dC(d,l-1|0,m-1-o|0,l,k,0,4)|0;if((v|0)<(C|0)){C=v;y=m-1-o|0}v=dC(d,l-1|0,((m|0)/2|0)+o|0,l,k,0,4)|0;if((v|0)>(A|0)){A=v;x=((m|0)/2|0)+o|0}v=dC(d,l-1|0,((m|0)/2|0)-o|0,l,k,0,4)|0;if((v|0)>(A|0)){A=v;x=((m|0)/2|0)-o|0}v=dC(d,0,((m|0)/2|0)-o|0,l,k,0,3)|0;v=v+(dC(d,v,((m|0)/2|0)-o|0,l,k,1,3)|0)|0;v=v+(dC(d,v,((m|0)/2|0)-o|0,l,k,0,3)|0)|0;if((v|0)<(z|0)){z=v;i=((m|0)/2|0)-o|0}v=l-1-(dC(d,l-1|0,((m|0)/2|0)-o|0,l,k,0,4)|0)|0;if((v|0)<(z|0)){z=v;i=((m|0)/2|0)-o|0}o=o+1|0}B=l-1-B|0;A=l-1-A|0;C=l-1-C|0;z=z+((dC(d,z,i,l,k,1,3)|0)/4|0)|0;A=A-((dC(d,A,x,l,k,1,4)|0)/4|0)|0;B=B-((dC(d,B,s,l,k,1,4)|0)/4|0)|0;C=C-((dC(d,C,y,l,k,1,4)|0)/4|0)|0;if((dt(g,t,j,h,d,k,100)|0)<95){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}L3324:do{if((l|0)>8){do{if((A|0)<=((l*5|0|0)/8|0|0)){if((z|0)>((l*5|0|0)/8|0|0)){break}u=dC(d,z,i,z,k,1,4)|0;do{if((dt(z,i,B,s,d,k,100)|0)<95){if((dt(z-((u|0)/2|0)|0,i,B,s,d,k,100)|0)>=95){break}p=a;q=p+36|0;r=c[q>>2]|0;return r|0}}while(0);if((dt(A,x,C,y,d,k,100)|0)<95){p=a;q=p+36|0;r=c[q>>2]|0;return r|0}A=A+(dC(d,A,x,l,k,1,3)|0)|0;if((A|0)<(C|0)){break L3324}p=a;q=p+36|0;r=c[q>>2]|0;return r|0}}while(0);p=a;q=p+36|0;r=c[q>>2]|0;return r|0}else{do{if((m|0)<16){if((e|0)!=0){break}p=a;q=p+36|0;r=c[q>>2]|0;return r|0}}while(0);do{if((dC(d,0,1,m,k,1,2)|0)<=((l*3|0|0)/4|0|0)){if((dC(d,1,1,m,k,1,2)|0)>((l*3|0|0)/4|0|0)){break}if((dC(d,2,1,m,k,1,2)|0)>((l*3|0|0)/4|0|0)){break}p=a;q=p+36|0;r=c[q>>2]|0;return r|0}}while(0)}}while(0);if((dC(d,l-1|0,m-1-((m|0)/4|0)|0,l,k,0,4)|0)<=((l|0)/8|0|0)){n=(n*99|0|0)/100|0;do{if((c[b+108>>2]|0)>0){if((c[b+136>>2]|0)>=(m-1-((m|0)/3|0)|0)){break}p=a;q=p+36|0;r=c[q>>2]|0;return r|0}}while(0)}do{if((c[a+60>>2]|0)!=0){if((e|0)!=0){break}n=(n*99|0|0)/100|0}}while(0);do{if((c[a+60>>2]|0)!=0){if((f|0)==0){break}n=(n*99|0|0)/100|0}}while(0);dy(a,75,n)|0;p=a;q=p+36|0;r=c[q>>2]|0;return r|0}function de(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[b+36>>2]|0;f=c[a>>2]|0;g=c[a+4>>2]|0;h=c[a+8>>2]|0;i=c[a+12>>2]|0;j=c[b+8>>2]|0;k=g-f+1|0;l=i-h+1|0;m=b+44|0;n=57344;o=100;p=100;if((k|0)>1){q=(l|0)>2}else{q=0}L3383:do{if(q){if((c[b+108>>2]|0)>1){break}do{if((c[b+108>>2]|0)>0){if((k|0)>=6){if((l|0)>=6){break}}break L3383}}while(0);o=(cH(32)|0)<<1;if((c[m+8>>2]|0)>(o|0)){break}if((c[m+24>>2]|0)>(o|0)){break}if(((c[m+20>>2]|0)-(c[m+4>>2]|0)|0)<((l|0)/2|0|0)){break}r=c[m+12>>2]|0;s=r;t=r;while(1){if((s|0)==(c[m+28>>2]|0)){break}if((c[a+296+(s<<3)>>2]|0)>=(c[a+296+(t<<3)>>2]|0)){t=s}s=(s+1|0)%(c[a+264>>2]|0)|0}do{if((t|0)!=(s|0)){if((t|0)==(c[m+12>>2]|0)){break}u=c[a+296+(t<<3)>>2]|0;v=c[a+296+(t<<3)+4>>2]|0;if(((u<<1)-(c[m>>2]|0)-(c[m+16>>2]|0)|0)<(k|0)){p=(p*99|0|0)/100|0}if((P((c[m+4>>2]|0)+(c[m+20>>2]|0)-(v<<1)|0)|0)>(l+2|0)){break L3383}if(((c[m>>2]|0)+(c[m+16>>2]|0)-(u<<1)|0)>=0){break L3383}r=cG(a,c[m+12>>2]|0,t)|0;o=(r|0)>(cH(256)|0)|0;if((o|0)>(cH(256)|0)){break L3383}p=p-((o*100|0|0)/(cH(1024)|0)|0)|0;w=cI(a,t,c[m+28>>2]|0,f-(k<<1)|0,i-((l|0)/8|0)-1|0)|0;o=cG(a,t,w)|0;if((o|0)>(cH(256)|0)){break L3383}p=p-((o*100|0|0)/(cH(1024)|0)|0)|0;r=c[m+28>>2]|0;s=r;x=r;w=r;while(1){if((s|0)==(c[m+12>>2]|0)){break}if((c[a+296+(s<<3)>>2]|0)>=(c[a+296+(x<<3)>>2]|0)){x=s}s=(s+1|0)%(c[a+264>>2]|0)|0}do{if((x|0)!=(s|0)){if((x|0)==(c[m+28>>2]|0)){break}u=c[a+296+(x<<3)>>2]|0;v=c[a+296+(x<<3)+4>>2]|0;if(((c[m>>2]|0)+(c[m+16>>2]|0)-(u<<1)|0)>=0){break L3383}if((P((c[m+4>>2]|0)+(c[m+20>>2]|0)-(v<<1)|0)|0)>((l+2|0)/4|0|0)){break L3383}do{if((c[m>>2]|0)<(u|0)){if((c[m+16>>2]|0)>=(u|0)){break}w=cI(a,x,c[m+12>>2]|0,f+((k|0)/4|0)|0,h-(l<<1)|0)|0;if(((c[a+296+(w<<3)>>2]|0)-f|0)>((k|0)/4|0|0)){break L3383}o=cG(a,x,w)|0;if((o|0)>(cH(256)|0)){break L3383}p=p-((o*100|0|0)/(cH(1024)|0)|0)|0;w=cI(a,c[m+28>>2]|0,x,f+((k|0)/4|0)|0,i+(l<<1)|0)|0;if(((c[a+296+(w<<3)>>2]|0)-f|0)>((k|0)/4|0|0)){break L3383}s=cI(a,c[m+28>>2]|0,x,g+(k<<1)|0,h+((l|0)/2|0)+((l|0)/8|0)|0)|0;if(((c[a+296+(s<<3)+4>>2]|0)-h|0)>(((l|0)/2|0)+((l|0)/8|0)|0)){break L3383}o=cG(a,w,s)|0;if((o|0)>(cH(256)|0)){break L3383}p=p-((o*100|0|0)/(cH(1024)|0)|0)|0;if((c[b+40>>2]|0)!=0){p=(p*98|0|0)/100|0}if((c[b+36>>2]|0)!=0){p=(p*99|0|0)/100|0}n=62;r=a;y=n;z=p;dy(r,y,z)|0;break L3383}}while(0);break L3383}}while(0);break L3383}}while(0)}}while(0);o=100;p=100;if((k|0)>3){A=(l|0)>3}else{A=0}L3478:do{if(A){if((c[b+108>>2]|0)>0){break}v=0;s=0;while(1){if((v|0)>=(l|0)){break}if((dv(0,k-1|0,v,v,d,j)|0)!=1){s=s+1|0}m=dC(d,0,v,k,j,0,3)|0;if((m+(dC(d,k-1|0,v,k,j,0,4)|0)|0)<((k*3|0|0)/8|0|0)){B=2558;break}v=v+1|0}if((v|0)<(l|0)){break}do{if((s|0)<=2){if((s|0)>0){if((l|0)<16){break}}m=k-1-(dC(d,k-1|0,(l|0)/2|0,k,j,0,4)|0)+k-1|0;q=m-(dC(d,k-1|0,((l|0)/2|0)+((l|0)%2|0)-1|0,k,j,0,4)|0)|0;m=q+(dC(d,0,(l|0)/2|0,k,j,0,3)|0)|0;x=m+(dC(d,0,((l|0)/2|0)+((l|0)%2|0)-1|0,k,j,0,3)|0)|0;if((P(x-(k<<1)|0)|0)>(((k|0)/2|0)+1|0)){break L3478}if((P(x-(k<<1)|0)|0)>((k|0)/2|0|0)){p=(p*99|0|0)/100|0}t=dC(d,k-1|0,(l|0)/16|0,k,j,0,4)|0;C=dC(d,k-1|0,l-1|0,k,j,0,4)|0;D=dC(d,0,0,k,j,0,3)|0;E=dC(d,0,l-1|0,k,j,0,3)|0;s=D;v=0;while(1){if((v|0)>=(l|0)){break}u=dC(d,0,v,k,j,0,3)|0;if((P(u-s|0)|0)>(((k|0)/6|0)+1|0)){B=2574;break}s=u;v=v+1|0}if((v|0)<(l|0)){break L3478}s=t;v=0;while(1){if((v|0)>=(l|0)){break}u=dC(d,k-1|0,v,k,j,0,4)|0;if((P(u-s|0)|0)>(((k|0)/6|0)+1|0)){B=2582;break}s=u;v=v+1|0}if((v|0)<(l|0)){break L3478}do{if((c[a+56>>2]|0)!=0){if((c[b+40>>2]|0)==0){break}p=(p*99|0|0)/100|0}}while(0);do{if((c[a+56>>2]|0)!=0){if((c[b+36>>2]|0)!=0){break}p=(p*98|0|0)/100|0}}while(0);do{if((c[a+56>>2]|0)!=0){if((l|0)>=((c[a+60>>2]|0)-(c[a+56>>2]|0)-1|0)){break}p=(p*96|0|0)/100|0}}while(0);do{if((t|0)<=((k|0)/8|0|0)){if((E|0)>((k|0)/8|0|0)){break}if((D-(k-C)|0)<((k|0)/8|0|0)){break}do{if((D|0)<=((k|0)/8|0|0)){if((C|0)>((k|0)/8|0|0)){break}break L3478}}while(0);if((D-(k-C)|0)<((k|0)/4|0|0)){p=(p*99|0|0)/100|0}m=a;n=47;q=p;dy(m,47,q)|0;break L3478}}while(0);do{if((D|0)<=((k|0)/8|0|0)){if((C|0)>((k|0)/8|0|0)){break}if((E-(k-t)|0)<((k|0)/8|0|0)){break}do{if((E|0)<=((k|0)/8|0|0)){if((t|0)>((k|0)/8|0|0)){break}break L3478}}while(0);if((E-(k-t)|0)<((k|0)/4|0|0)){p=(p*99|0|0)/100|0}q=a;n=92;m=p;dy(q,92,m)|0;break L3478}}while(0);break L3478}}while(0)}}while(0);o=100;p=100;if((k|0)>1){F=(l|0)>4}else{F=0}L3572:do{if(F){if((c[b+108>>2]|0)>1){break}v=0;s=0;while(1){if((v|0)>=(l|0)){break}if((dv(0,k-1|0,v,v,d,j)|0)!=1){s=s+1|0}A=dC(d,0,v,k,j,0,3)|0;if((A+(dC(d,k-1|0,v,k,j,0,4)|0)|0)<((k*3|0|0)/8|0|0)){B=2626;break}v=v+1|0}if((v|0)<(l|0)){break}do{if((s|0)<=2){if((s|0)>0){if((l|0)<16){break}}s=k;A=((l|0)/2|0)-((l|0)/8|0)|0;v=A;m=A;q=A;while(1){if((v|0)>(((l|0)/2|0)+((l|0)/8|0)|0)){break}w=dC(d,0,v,k,j,0,3)|0;if((w|0)==(s|0)){m=v}if((w|0)<(s|0)){A=v;q=A;m=A;s=w}w=dC(d,k-1|0,v,k,j,0,4)|0;if((w|0)==(s|0)){m=v}if((w|0)<(s|0)){A=v;q=A;m=A;s=w}v=v+1|0}v=(q+m|0)/2|0;t=dC(d,k-1|0,(l|0)/16|0,k,j,0,4)|0;x=dC(d,k-1|0,v,k,j,0,4)|0;C=dC(d,k-1|0,l-1-((l|0)/16|0)|0,k,j,0,4)|0;D=dC(d,0,(l|0)/16|0,k,j,0,3)|0;A=dC(d,0,v,k,j,0,3)|0;E=dC(d,0,l-1-((l|0)/16|0)|0,k,j,0,3)|0;if((k|0)>(l|0)){do{if((A|0)==0){if((x*3|0|0)<=(k|0)){break}if((t|0)>((k|0)/8|0|0)){break}if((C|0)>((k|0)/8|0|0)){break}z=a;n=60;dy(z,60,98)|0;break L3572}}while(0)}do{if((k|0)>2){if((k*9|0|0)<(l*5|0|0)){break}p=98;if((k|0)<8){p=(p*99|0|0)/100|0}if((k|0)<6){p=(p*96|0|0)/100|0}do{if((k<<1|0)>(c[(c[7036]|0)+37032>>2]|0)){if((k<<2|0)<=(l|0)){break}p=98}}while(0);do{if((A|0)==0){if((t|0)>(((k|0)/8|0)+1|0)){break}if((C|0)>(((k|0)/8|0)+1|0)){break}if((t+C|0)>(((k|0)/8|0)+1|0)){break}if((x|0)<((k|0)/2|0|0)){break}if((D|0)<((k*3|0|0)/4|0|0)){break}if((E|0)<((k*3|0|0)/4|0|0)){break}if((((dC(d,0,(v|0)/2|0,k,j,0,3)|0)<<1)+1+((k|0)/16|0)|0)<(D+A|0)){p=(p*95|0|0)/100|0}if((((dC(d,0,l-1-((v|0)/2|0)|0,k,j,0,3)|0)<<1)+1+((k|0)/16|0)|0)<(E+A|0)){p=(p*95|0|0)/100|0}m=a;n=60;q=p;dy(m,60,q)|0;break L3572}}while(0)}}while(0);t=dC(d,k-1|0,(l|0)/16|0,k,j,0,4)|0;x=dC(d,k-1|0,(l|0)/2|0,k,j,0,4)|0;C=dC(d,k-1|0,l-1|0,k,j,0,4)|0;D=dC(d,0,0,k,j,0,3)|0;A=dC(d,0,(l|0)/2|0,k,j,0,3)|0;E=dC(d,0,l-1|0,k,j,0,3)|0;s=(((c[a+64>>2]|0)+(c[a+60>>2]|0)|0)/2|0)-(c[a+56>>2]|0)|0;do{if((x<<1|0)<(t+C|0)){if((A<<1|0)<=(D+E|0)){break}if((k<<1|0)>=(l|0)){break}if((l|0)<(s|0)){break}q=a;n=41;dy(q,41,98)|0;break L3572}}while(0);do{if((x<<1|0)>(t+C|0)){if((A<<1|0)>=(D+E|0)){break}if((k<<1|0)>=(l|0)){break}if((l|0)<(s|0)){break}if((x<<1|0)<=(t+C+1|0)){B=2687}else{if((A<<1|0)>=(D+E-1|0)){B=2687}}if((B|0)==2687){p=(p*98|0|0)/100|0}if((x<<1|0)<=(t+C+2|0)){B=2690}else{if((A<<1|0)>=(D+E-2|0)){B=2690}}if((B|0)==2690){p=(p*98|0|0)/100|0}v=0;u=0;while(1){if((v|0)>=((l|0)/4|0|0)){break}s=dC(d,0,v,k,j,0,3)|0;if((s|0)>(u|0)){u=s}v=v+1|0}v=0;while(1){if((v|0)>=((l+2|0)/4|0|0)){break}s=dC(d,0,v+((l|0)/8|0)|0,k,j,0,3)|0;if((s|0)<(u|0)){B=2700;break}v=v+1|0}if((v|0)==((l+2|0)/4|0|0)){break L3572}if(((dC(d,0,((l|0)/2|0)+((l|0)/8|0)|0,k,j,0,3)|0)-A|0)>=(((k|0)/8|0)+1|0)){p=(p*99|0|0)/100|0}if(((dC(d,0,((l|0)/2|0)-((l|0)/8|0)|0,k,j,0,3)|0)-A|0)>=(((k|0)/8|0)+1|0)){p=(p*99|0|0)/100|0}n=40;dy(a,40,p)|0;break L3572}}while(0);break L3572}}while(0)}}while(0);o=100;p=100;do{if((k|0)>2){if((l|0)<=4){G=0;break}G=(l|0)>=(k<<1|0)}else{G=0}}while(0);L3705:do{if(G){if((c[b+108>>2]|0)>1){break}if((c[a+196>>2]|0)!=1){break}if((c[a+264>>2]|0)!=10){p=98}if((e|0)==0){p=(p*97|0|0)/100|0}v=0;while(1){if((v|0)>=(l|0)){break}if((dv(0,k-1|0,v,v,d,j)|0)!=1){B=2727;break}v=v+1|0}if((v|0)<(l|0)){break}do{if(((du(f,g,h,h,c[a+68>>2]|0,j,2)|0)<<24>>24|0)==2){if(((du(f,g,h+1|0,h+1|0,c[a+68>>2]|0,j,2)|0)<<24>>24|0)!=2){break}break L3705}}while(0);do{if(((du(f,g,i,i,c[a+68>>2]|0,j,2)|0)<<24>>24|0)==2){if(((du(f,g,i-1|0,i-1|0,c[a+68>>2]|0,j,2)|0)<<24>>24|0)!=2){break}break L3705}}while(0);if(((du(f,f,h,i,c[a+68>>2]|0,j,2)|0)<<24>>24|0)==0){B=2740}else{if(((du(f+1|0,f+1|0,h,i,c[a+68>>2]|0,j,2)|0)<<24>>24|0)==0){B=2740}}do{if((B|0)==2740){if(((du(f+((k|0)/2|0)|0,g,h+((l|0)/4|0)|0,i-((l|0)/4|0)|0,c[a+68>>2]|0,j,1)|0)<<24>>24|0)==0){s=a;n=91;E=p;dy(s,91,E)|0;break L3705}else{break}}}while(0);if(((du(g,g,h,i,c[a+68>>2]|0,j,2)|0)<<24>>24|0)==0){B=2745}else{if(((du(g-1|0,g-1|0,h,i,c[a+68>>2]|0,j,2)|0)<<24>>24|0)==0){B=2745}}do{if((B|0)==2745){if(((du(f,g-((k|0)/2|0)|0,h+((l|0)/4|0)|0,i-((l|0)/4|0)|0,c[a+68>>2]|0,j,1)|0)<<24>>24|0)==0){E=a;n=93;s=p;dy(E,93,s)|0;break L3705}else{break}}}while(0)}}while(0);if((n|0)==57344){o=98;p=98;do{if((k|0)>5){if((l|0)<=7){H=0;break}H=(l<<1|0)>(k*3|0|0)}else{H=0}}while(0);do{if(H){if((c[b+108>>2]|0)>2){break}if((e|0)==0){p=(p*97|0|0)/100|0}if((dv(0,k-1|0,0,0,d,j)|0)!=1){break}if((dv(0,k-1|0,l-1|0,l-1|0,d,j)|0)!=1){break}G=dC(d,k-1|0,(l|0)/2|0,k,j,0,4)|0;if((G+(dC(d,0,(l|0)/2|0,k,j,0,3)|0)|0)<=((k|0)/4|0|0)){break}v=(l|0)/8|0;while(1){if((v|0)>=(l-((l|0)/8|0)|0)){break}if((dv(0,k,v,v,d,j)|0)!=2){B=2768;break}v=v+1|0}if((v|0)<(l-((l|0)/8|0)|0)){break}if(((du(((f*3|0)+(g*5|0)|0)/8|0,g,h+((l*3|0|0)/16|0)|0,i-((l*3|0|0)/16|0)|0,c[a+68>>2]|0,j,1)|0)<<24>>24|0)==0){G=a;n=91;s=p;dy(G,91,s)|0;break}if(((du(f,((f*5|0)+(g*3|0)|0)/8|0,h+((l*3|0|0)/16|0)|0,i-((l*3|0|0)/16|0)|0,c[a+68>>2]|0,j,1)|0)<<24>>24|0)==0){s=a;n=93;G=p;dy(s,93,G)|0;break}else{break}}}while(0)}o=99;p=99;do{if((k|0)>2){if((l|0)<=5){I=0;break}I=(l<<1|0)>(k*3|0|0)}else{I=0}}while(0);L3803:do{if(I){if((c[b+108>>2]|0)>1){break}if((e|0)==0){p=(p*97|0|0)/100|0}v=0;while(1){if((v|0)>=(l|0)){break}if((dv(0,k-1|0,v,v,d,j)|0)!=1){B=2791;break}v=v+1|0}if((v|0)<(l|0)){break}u=0;while(1){if((u|0)>=((k|0)/2|0|0)){break}if((dv(k-1-u|0,k-1-u|0,0,l-1|0,d,j)|0)!=2){B=2799;break}u=u+1|0}if((v|0)<((k|0)/2|0|0)){break}if((dv(k-1|0,k-1|0,(l|0)/4|0,l-1-((l|0)/4|0)|0,d,j)|0)!=0){break}if((dv(0,0,(l|0)/4|0,l-1-((l|0)/4|0)|0,d,j)|0)!=1){break}t=dC(d,0,(l|0)/4|0,k,j,0,3)|0;t=dC(d,t,(l|0)/4|0,k,j,1,3)|0;x=k;H=((l|0)/2|0)-1-((l|0)/16|0)|0;v=H;C=H;while(1){if((v|0)>=(((l|0)/2|0)+2+((l|0)/16|0)|0)){break}u=dC(d,0,v,k,j,0,3)|0;if((u|0)<(x|0)){x=u;C=v}v=v+1|0}x=dC(d,x,C,k,j,1,3)|0;if((x|0)<(t+((k|0)/16|0)+1|0)){break}if((dC(d,0,l-1|0,k,j,0,3)|0)>((k*3|0|0)/4|0|0)){p=(p*99|0|0)/100|0}if((dC(d,0,0,k,j,0,3)|0)>((k*3|0|0)/4|0|0)){p=(p*99|0|0)/100|0}if((dC(d,0,0,l,j,0,2)|0)<(((l|0)/2|0)-((l|0)/8|0)-1|0)){p=(p*98|0|0)/100|0}if((dC(d,0,l-1|0,l,j,0,1)|0)<(((l|0)/2|0)-((l|0)/8|0)-1|0)){p=(p*98|0|0)/100|0}if((dC(d,0,l-1|0,l,j,0,1)|0)<=((l|0)/4|0|0)){break}if((l|0)>=8){H=dC(d,k-1|0,0,k,j,0,4)|0;G=H+(dC(d,k-1|0,(l|0)/4|0,k,j,0,4)|0)|0;if((G-((dC(d,k-1|0,(l|0)/8|0,k,j,0,4)|0)<<1)|0)>=((k|0)/8|0|0)){p=(p*98|0|0)/100|0}}if((dC(d,k-2|0,l-1|0,l,j,0,1)|0)>((l|0)/4|0|0)){break}do{if(((du(f,f,h,h+((l|0)/4|0)|0,c[a+68>>2]|0,j,1)|0)<<24>>24|0)!=1){if(((du(f,f,i-((l|0)/4|0)|0,i,c[a+68>>2]|0,j,1)|0)<<24>>24|0)==1){break}G=a;n=123;H=p;dy(G,123,H)|0;break L3803}}while(0)}}while(0);o=99;p=99;do{if((k|0)>2){if((l|0)<=5){J=0;break}J=(l<<1|0)>(k*3|0|0)}else{J=0}}while(0);if(!J){K=a;L=K+36|0;M=c[L>>2]|0;return M|0}if((e|0)==0){p=(p*97|0|0)/100|0}v=0;while(1){if((v|0)>=(l|0)){break}if((dv(0,k-1|0,v,v,d,j)|0)!=1){B=2846;break}v=v+1|0}if((v|0)<(l|0)){K=a;L=K+36|0;M=c[L>>2]|0;return M|0}u=0;while(1){if((u|0)>=((k|0)/2|0|0)){break}if((dv(u,u,0,l-1|0,d,j)|0)!=2){B=2854;break}u=u+1|0}if((v|0)<((k|0)/2|0|0)){K=a;L=K+36|0;M=c[L>>2]|0;return M|0}if((dv(0,0,(l|0)/4|0,l-1-((l|0)/4|0)|0,d,j)|0)!=0){K=a;L=K+36|0;M=c[L>>2]|0;return M|0}if((dv(k-1|0,k-1|0,(l|0)/4|0,l-1-((l|0)/4|0)|0,d,j)|0)!=1){K=a;L=K+36|0;M=c[L>>2]|0;return M|0}t=dC(d,k-1|0,(l|0)/4|0,k,j,0,4)|0;t=dC(d,k-1-t|0,(l|0)/4|0,k,j,1,4)|0;x=k;B=((l|0)/2|0)-1-((l|0)/16|0)|0;v=B;C=B;while(1){if((v|0)>=(((l|0)/2|0)+2+((l|0)/16|0)|0)){break}u=dC(d,k-1|0,v,k,j,0,4)|0;if((u|0)<(x|0)){x=u;C=v}v=v+1|0}x=dC(d,k-1-x|0,C,k,j,1,4)|0;if((x|0)<(t+((k|0)/16|0)+1|0)){K=a;L=K+36|0;M=c[L>>2]|0;return M|0}if((dC(d,k-1|0,l-1|0,k,j,0,4)|0)>((k*3|0|0)/4|0|0)){p=(p*99|0|0)/100|0}if((dC(d,k-1|0,0,k,j,0,4)|0)>((k*3|0|0)/4|0|0)){p=(p*99|0|0)/100|0}if((dC(d,k-1|0,0,l,j,0,2)|0)<(((l|0)/2|0)-((l|0)/8|0)-1|0)){p=(p*98|0|0)/100|0}if((dC(d,k-1|0,l-1|0,l,j,0,1)|0)<(((l|0)/2|0)-((l|0)/8|0)-1|0)){p=(p*98|0|0)/100|0}if((dC(d,k-1|0,0,l,j,0,2)|0)<=((l|0)/4|0|0)){K=a;L=K+36|0;M=c[L>>2]|0;return M|0}if((l|0)>=8){t=dC(d,0,0,k,j,0,3)|0;x=t+(dC(d,0,(l|0)/4|0,k,j,0,3)|0)|0;if((x-((dC(d,0,(l|0)/8|0,k,j,0,3)|0)<<1)|0)>=((k|0)/8|0|0)){p=(p*98|0|0)/100|0}}if((dC(d,1,l-1|0,l,j,0,1)|0)>((l|0)/4|0|0)){K=a;L=K+36|0;M=c[L>>2]|0;return M|0}do{if(((du(g,g,h,h+((l|0)/4|0)|0,c[a+68>>2]|0,j,1)|0)<<24>>24|0)!=1){if(((du(g,g,i-((l|0)/4|0)|0,i,c[a+68>>2]|0,j,1)|0)<<24>>24|0)==1){break}d=a;n=125;k=p;dy(d,125,k)|0;K=a;L=K+36|0;M=c[L>>2]|0;return M|0}}while(0);K=a;L=K+36|0;M=c[L>>2]|0;return M|0} +function bo(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+7&-8;return b|0}function bp(){return i|0}function bq(a){a=a|0;i=a}function br(a,b){a=a|0;b=b|0;if((r|0)==0){r=a;s=b}}function bs(b){b=b|0;a[k]=a[b];a[k+1|0]=a[b+1|0];a[k+2|0]=a[b+2|0];a[k+3|0]=a[b+3|0]}function bt(b){b=b|0;a[k]=a[b];a[k+1|0]=a[b+1|0];a[k+2|0]=a[b+2|0];a[k+3|0]=a[b+3|0];a[k+4|0]=a[b+4|0];a[k+5|0]=a[b+5|0];a[k+6|0]=a[b+6|0];a[k+7|0]=a[b+7|0]}function bu(a){a=a|0;E=a}function bv(a){a=a|0;F=a}function bw(a){a=a|0;G=a}function bx(a){a=a|0;H=a}function by(a){a=a|0;I=a}function bz(a){a=a|0;J=a}function bA(a){a=a|0;K=a}function bB(a){a=a|0;L=a}function bC(a){a=a|0;M=a}function bD(a){a=a|0;N=a}function bE(){}function bF(a){a=+a;var b=0.0;b=a;return+(b*b)}function bG(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0.0,u=0,v=0,w=0.0,x=0,y=0,z=0,A=0.0,B=0.0,C=0,D=0,E=0,F=0,G=0;e=i;i=i+24|0;f=e|0;g=b;b=d;d=0;j=0;k=1;l=0;m=c[g>>2]|0;o=m;p=m;m=c[g+4>>2]|0;q=m;r=m;m=0;while(1){if((m|0)>=((b<<1)-1|0)){break}if((m&1|0)!=0){if((r|0)>(c[g+(m<<2)>>2]|0)){r=c[g+(m<<2)>>2]|0}if((q|0)<(c[g+(m<<2)>>2]|0)){q=c[g+(m<<2)>>2]|0}}else{if((p|0)>(c[g+(m<<2)>>2]|0)){p=c[g+(m<<2)>>2]|0}if((o|0)<(c[g+(m<<2)>>2]|0)){o=c[g+(m<<2)>>2]|0}}m=m+1|0}o=(p-r+1|0)/2|0;q=(-(p-r|0)|0)/2|0;m=0;r=0;while(1){if((m|0)>=((b<<1)-1|0)){break}if((m&1|0)!=0){s=o}else{s=q}r=r+((c[g+(m<<2)>>2]|0)+s)|0;m=m+1|0}do{if(((b-1|0)%3|0|0)==0){if((b|0)<10){break}if((r|0)<((((b-1|0)*11|0|0)/3|0)+2|0)){break}do{if((((c[g>>2]|0)+q|0)*3|0|0)>=((c[g+4>>2]|0)+o<<2|0)){if(((c[g>>2]|0)*3|0|0)<(c[g+8>>2]<<2|0)){break}if((c[g>>2]<<2|0)<(((c[g+4>>2]|0)+(c[g+8>>2]|0)|0)*3|0|0)){break}if(((c[g>>2]|0)*3|0|0)>((c[g+4>>2]|0)+(c[g+8>>2]|0)<<2|0)){break}t=+(r|0)*3.0/+(((b-1|0)*11|0)+6|0);m=ev((((b-7|0)/3|0)<<1)+1|0)|0;if((m|0)==0){u=l;v=u;i=e;return v|0}l=ev((((b-7|0)/3|0)<<1)+257|0)|0;s=0;w=0.0;p=0;x=0;while(1){if((p|0)>=((b-1|0)/3|0|0)){break}y=0;while(1){if((y|0)>=6){break}if((y&1|0)!=0){z=o}else{z=q}c[f+(y<<2)>>2]=(c[g+((p*6|0)+y<<2)>>2]|0)+z;y=y+1|0}A=1.0e8;d=107;j=0;while(1){if((j|0)>=107){break}y=0;B=0.0;while(1){if((y|0)>=6){break}B=B+ +bF(+((a[(c[3416+(j<<2)>>2]|0)+y|0]|0)-48|0)- +(c[f+(y<<2)>>2]|0)/t);y=y+1|0}if(B102){if((d|0)>=106){break}k=d-103+1|0}}while(0);s=d}do{if((p|0)>0){if((p|0)>=(((b-1|0)/3|0)-2|0)){break}s=s+(aa(d,p)|0)|0;y=0;if((k|0)>3){C=k>>2}else{C=k&3}j=C;k=k&3;D=j;if((D|0)==1){do{if((d|0)>=64){if((d|0)>=96){E=69;break}y=d-64&255}else{E=69}}while(0);if((E|0)==69){E=0;y=d+32&255}if((d|0)==101){k=1}if((d|0)==99){k=3}if((d|0)==98){k=k|8}}else if((D|0)==2){y=d+32&255;if((d|0)==100){k=2}if((d|0)==99){k=3}if((d|0)==98){k=k|4}}else if((D|0)==3){if((d|0)==101){k=1}if((d|0)==100){k=2}}do{if((j|0)==3){if((d|0)>=100){break}a[m+x|0]=((d|0)/10|0)+48&255;x=x+1|0;a[m+x|0]=((d|0)%10|0)+48&255;x=x+1|0}}while(0);if((j|0)!=3){do{if((y<<24>>24|0)>=32){if((d|0)>127){break}a[m+x|0]=y;x=x+1|0}}while(0);do{if((y<<24>>24|0)>=0){if((y<<24>>24|0)>=32){break}a[m+x|0]=94;x=x+1|0;a[m+x|0]=(y<<24>>24)+64&255;x=x+1|0}}while(0)}}}while(0);if((p|0)==(((b-1|0)/3|0)-2|0)){s=(s+103-d|0)%103|0}if((p|0)==(((b-1|0)/3|0)-1|0)){if((d|0)!=106){d=-1}}k=k&3}else{y=c[n>>2]|0;D=m;F=j;au(y|0,24752,(G=i,i=i+16|0,c[G>>2]=D,c[G+8>>2]=F,G)|0)|0;i=G}p=p+1|0}a[m+x|0]=0;if((l|0)!=0){p=l;F=x;D=m;y=s;t=w/+(b-1|0);aP(p|0,24648,(G=i,i=i+32|0,c[G>>2]=F,c[G+8>>2]=D,c[G+16>>2]=y,h[G+24>>3]=t,G)|0)|0;i=G}ew(m);u=l;v=u;i=e;return v|0}}while(0);u=0;v=u;i=e;return v|0}}while(0);u=0;v=u;i=e;return v|0}function bH(b,d){b=b|0;d=d|0;var e=0,f=0,g=0.0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.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.0,D=0,E=0.0,F=0,G=0,H=0,I=0.0;e=i;f=b;b=d;g=0.0;d=0;j=0;k=c[f>>2]|0;l=k;m=k;k=c[f+4>>2]|0;n=k;o=k;k=0;while(1){if((k|0)>=((b<<1)-1|0)){break}if((k&1|0)!=0){if((o|0)>(c[f+(k<<2)>>2]|0)){o=c[f+(k<<2)>>2]|0}if((n|0)<(c[f+(k<<2)>>2]|0)){n=c[f+(k<<2)>>2]|0}}else{if((m|0)>(c[f+(k<<2)>>2]|0)){m=c[f+(k<<2)>>2]|0}if((l|0)<(c[f+(k<<2)>>2]|0)){l=c[f+(k<<2)>>2]|0}}k=k+1|0}l=(m-o|0)/2|0;n=(-(m-o|0)|0)/2|0;k=0;o=0;while(1){if((k|0)>=((b<<1)-1|0)){break}if((k&1|0)!=0){p=l}else{p=n}o=o+((c[f+(k<<2)>>2]|0)+p)|0;k=k+1|0}q=+(o|0)*2.0/+(((b-6|0)*7|0)+22|0);p=0;do{if(((b|0)%2|0|0)==0){if((b|0)<10){break}if((o|0)<((((b-6|0)*7|0|0)/2|0)+11|0)){break}if((((b-6|0)/2|0|0)%2|0|0)!=0){break}g=0.0;k=0;while(1){if((k|0)>=3){break}if((k&1|0)!=0){r=l}else{r=n}g=+bF(+((c[f+(k<<2)>>2]|0)+r|0)/q-1.0);if(g>.4){s=152;break}k=k+1|0}if((s|0)==152){t=0;u=t;i=e;return u|0}k=0;while(1){if((k|0)>=5){break}if((k&1|0)!=0){v=n}else{v=l}g=+bF(+((c[f+(k+b-3<<2)>>2]|0)+v|0)/q-1.0);if(g>.4){s=161;break}k=k+1|0}if((s|0)==161){t=0;u=t;i=e;return u|0}k=0;while(1){if((k|0)>=3){break}if((k&1|0)!=0){w=l}else{w=n}g=+bF(+((c[f+(k+(b<<1)-4<<2)>>2]|0)+w|0)/q-1.0);if(g>.4){s=170;break}k=k+1|0}if((s|0)==170){t=0;u=t;i=e;return u|0}j=ev(((b-6|0)/2|0)+1|0)|0;if((j|0)==0){t=d;u=t;i=e;return u|0}d=ev(((b-6|0)/2|0)+257|0)|0;m=0;x=0;y=3;while(1){if((y|0)>=((b<<1)-4|0)){break}if((y|0)==(b-3|0)){y=y+1|0}else{z=20;A=0;B=63;C=16.0e8;D=0;while(1){if((D|0)>=20){break}E=0.0;F=0;while(1){if((F|0)>=4){break}if((y+F&1|0)!=0){G=l}else{G=n}E=E+ +bF(+((a[(c[3304+(D<<2)>>2]|0)+F|0]|0)-48|0)- +((c[f+(y+F<<2)>>2]|0)+G|0)/q);F=F+1|0}if(E>24)-48|0,(m&1|0)!=0?1:3)|0)|0;D=m;m=D+1|0;a[j+D|0]=B;if((m|0)<7){x=x<<1|A}}y=y+4|0}if((x&32|0)!=0){x=x^63}switch(x|0){case 11:{x=1;break};case 13:{x=2;break};case 14:{x=3;break};case 19:{x=4;break};case 25:{x=5;break};case 28:{x=6;break};case 21:{x=7;break};case 22:{x=8;break};case 26:{x=9;break};default:{x=0}}p=p+x|0;a[j+m|0]=0;if((d|0)!=0){y=d;D=m+1|0;z=x;F=j;H=(10-((p|0)%10|0)|0)%10|0;I=g/+(b-6<<1|0);aP(y|0,22968,(y=i,i=i+40|0,c[y>>2]=D,c[y+8>>2]=z,c[y+16>>2]=F,c[y+24>>2]=H,h[y+32>>3]=I,y)|0)|0;i=y}ew(j);t=d;u=t;i=e;return u|0}}while(0);t=0;u=t;i=e;return u|0}function bI(b,d){b=b|0;d=d|0;var e=0,f=0,g=0.0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0.0,t=0,u=0,v=0,w=0,x=0,y=0.0,z=0.0,A=0;e=i;f=b;b=d;d=(b|0)/3|0;g=0.0;j=0;k=0;l=c[f>>2]|0;m=l;n=l;l=c[f+4>>2]|0;o=l;p=l;l=0;while(1){if((l|0)>=((b<<1)-1|0)){break}if((l&1|0)!=0){if((p|0)>(c[f+(l<<2)>>2]|0)){p=c[f+(l<<2)>>2]|0}if((o|0)<(c[f+(l<<2)>>2]|0)){o=c[f+(l<<2)>>2]|0}}else{if((n|0)>(c[f+(l<<2)>>2]|0)){n=c[f+(l<<2)>>2]|0}if((m|0)<(c[f+(l<<2)>>2]|0)){m=c[f+(l<<2)>>2]|0}}l=l+1|0}m=(n-p|0)/2|0;o=(-(n-p|0)|0)/2|0;do{if((b|0)!=7){if((b|0)==16){break}q=0;r=q;i=e;return r|0}}while(0);l=0;p=0;while(1){if((l|0)>=((b<<1)-1|0)){break}p=p+(c[f+(l<<2)>>2]|0)|0;l=l+1|0}s=+(p|0)*1.0/+((d*7|0)+4+(d-1<<1)|0);g=0.0;l=0;while(1){if((l|0)>=2){break}if((l&1|0)!=0){t=m}else{t=o}g=+bF(+((c[f+(l<<2)>>2]|0)+t|0)/s-1.0);if(g>.4){u=247;break}l=l+1|0}if((u|0)==247){q=0;r=q;i=e;return r|0}if((l&1|0)!=0){v=m}else{v=o}g=+bF(+((c[f+(l<<2)>>2]|0)+v|0)*.5/s-1.0);if(g>.4){q=0;r=q;i=e;return r|0}l=1;L339:while(1){if((l|0)>=(d|0)){break}w=0;while(1){if((w|0)>=2){break}if((w&1|0)!=0){x=o}else{x=m}g=+bF(+((c[f+((l*6|0)+1+w<<2)>>2]|0)+x|0)/s-1.0);if(g>.4){u=263;break L339}w=w+1|0}l=l+1|0}if((u|0)==263){q=0;r=q;i=e;return r|0}k=ev(d+1|0)|0;if((k|0)==0){q=j;r=q;i=e;return r|0}j=ev(d+257|0)|0;d=0;w=3;while(1){if((w|0)>=((b<<1)-1|0)){break}u=20;l=63;y=16.0e8;x=0;while(1){if((x|0)>=20){break}z=0.0;v=0;while(1){if((v|0)>=4){break}if((w+v&1|0)!=0){A=m}else{A=o}z=z+ +bF(+((a[(c[3304+(x<<2)>>2]|0)+v|0]|0)-48|0)- +((c[f+(w+v<<2)>>2]|0)+A|0)/s);v=v+1|0}if(z>2]=A,c[w+8>>2]=d,h[w+16>>3]=s,w)|0)|0;i=w}ew(k);q=j;r=q;i=e;return r|0}function bJ(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=a;a=b;b=d;d=0;while(1){if((d|0)>=(b|0)){break}c[a+(d<<2)>>2]=d;d=d+1|0}f=1;while(1){if((f|0)==0){break}d=0;f=0;while(1){if((d|0)>=(b-1|0)){break}if((c[e+(c[a+(d<<2)>>2]<<2)>>2]|0)<(c[e+(c[a+(d+1<<2)>>2]<<2)>>2]|0)){f=c[a+(d<<2)>>2]|0;c[a+(d<<2)>>2]=c[a+(d+1<<2)>>2];c[a+(d+1<<2)>>2]=f;f=1}d=d+1|0}}return}function bK(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0,t=0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0;e=i;i=i+80|0;f=e|0;g=e+40|0;j=b;b=d;d=0;do{if(((b|0)%5|0|0)==0){if((b|0)<15){break}k=c[j>>2]|0;l=k;m=k;k=c[j+4>>2]|0;n=k;o=k;k=0;while(1){if((k|0)>=((b<<1)-1|0)){break}if((k&1|0)!=0){if((o|0)>(c[j+(k<<2)>>2]|0)){o=c[j+(k<<2)>>2]|0}if((n|0)<(c[j+(k<<2)>>2]|0)){n=c[j+(k<<2)>>2]|0}}else{if((m|0)>(c[j+(k<<2)>>2]|0)){m=c[j+(k<<2)>>2]|0}if((l|0)<(c[j+(k<<2)>>2]|0)){l=c[j+(k<<2)>>2]|0}}k=k+1|0}l=(m-o|0)/2|0;n=(-(m-o|0)|0)/2|0;k=0;p=0;while(1){if((k|0)>=((b<<1)-1|0)){break}if((k&1|0)!=0){p=p+((c[j+(k<<2)>>2]|0)+l)|0}else{p=p+((c[j+(k<<2)>>2]|0)+n)|0}k=k+1|0}q=+(p|0)*1.0/+(((b|0)/5|0)<<4|0);o=0;r=0.0;m=ev(((b|0)/5|0)+1|0)|0;if((m|0)==0){s=d;t=s;i=e;return t|0}d=ev(((b|0)/5|0)+256|0)|0;u=0;v=0;while(1){if((u|0)>=((b<<1)-3|0)){break}k=0;while(1){if((k|0)>=9){break}if((k&1|0)!=0){w=l}else{w=n}c[g+(k<<2)>>2]=(c[j+(u+k<<2)>>2]|0)+w;k=k+1|0}bJ(g|0,f|0,9);x=0.0;y=3;while(1){if((y|0)>=9){break}x=x+ +bF(+(c[g+(c[f+(y<<2)>>2]<<2)>>2]|0)/q-1.0);y=y+1|0}r=r+x;y=0;L460:while(1){if((y|0)>=44){break}do{if((a[(c[848]|0)+((y*10|0)+1+(((c[f>>2]|0)%2|0)*5|0)+((c[f>>2]|0)/2|0))|0]|0)==45){if((a[(c[848]|0)+((y*10|0)+1+(((c[f+4>>2]|0)%2|0)*5|0)+((c[f+4>>2]|0)/2|0))|0]|0)!=45){break}if((a[(c[848]|0)+((y*10|0)+1+(((c[f+8>>2]|0)%2|0)*5|0)+((c[f+8>>2]|0)/2|0))|0]|0)==45){z=356;break L460}}}while(0);y=y+1|0}if((z|0)==356){z=0}do{if((v|0)>0){if((v|0)>=(((b|0)/5|0)-2|0)){break}o=o+y|0}}while(0);A=v;v=A+1|0;a[m+A|0]=a[(c[848]|0)+(y*10|0)|0]|0;A=0;if((c[f>>2]&1|0)!=0){A=A+1|0}if((c[f+4>>2]&1|0)!=0){A=A+1|0}if((c[f+8>>2]&1|0)!=0){A=A+1|0}if((A&1|0)==0){z=369;break}u=u+10|0}if((z|0)==369){ew(m);ew(d);s=0;t=s;i=e;return t|0}a[m+v|0]=0;if((d|0)!=0){u=d;k=v;n=m;l=a[(c[848]|0)+(((o|0)%44|0)*10|0)|0]|0;q=r/+(((b|0)/5|0)*6|0|0);aP(u|0,22104,(u=i,i=i+32|0,c[u>>2]=k,c[u+8>>2]=n,c[u+16>>2]=l,h[u+24>>3]=q,u)|0)|0;i=u}ew(m);s=d;t=s;i=e;return t|0}}while(0);s=0;t=s;i=e;return t|0}function bL(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0.0,s=0,t=0.0,u=0,v=0,w=0.0,x=0,y=0,z=0,A=0;e=i;i=i+32|0;f=e|0;g=b;b=d;d=0;if(((b|0)%5|0|0)!=4){j=0;k=j;i=e;return k|0}l=((b-4|0)/5|0)<<1;m=ev((l*5|0)<<2)|0;if((m|0)==0){j=0;k=j;i=e;return k|0}n=ev(28)|0;if((n|0)==0){ew(m);j=0;k=j;i=e;return k|0}o=ev(l)|0;if((o|0)==0){ew(m);ew(n);j=0;k=j;i=e;return k|0}p=0;while(1){if((p|0)>=((l*5|0)+7|0)){break}if((p|0)<4){c[n+(p<<2)>>2]=c[g+(p<<2)>>2]}else{if((p|0)>((l*5|0)+3|0)){c[n+(p-(l*5|0)<<2)>>2]=c[g+(p<<2)>>2]}else{q=p-4|0;q=(((q|0)/10|0)*10|0)+(((q|0)%10|0|0)/2|0)+((q&1)*5|0)|0;c[m+(q<<2)>>2]=c[g+(p<<2)>>2]}}p=p+1|0}g=m;bJ(n,f|0,7);do{if((c[f>>2]|0)==4){if((c[n+(c[f>>2]<<2)>>2]|0)==(c[n+(c[f+4>>2]<<2)>>2]|0)){break}p=0;q=0;while(1){if((p|0)>=(l*5|0|0)){break}q=q+(c[g+(p<<2)>>2]|0)|0;p=p+1|0}r=+(q|0)*1.0/+(((b|0)/5|0)<<4|0);s=0;t=0.0;u=0;v=0;while(1){if((u|0)>=(l*5|0|0)){break}bJ(g+(u<<2)|0,f|0,5);w=0.0;x=2;while(1){if((x|0)>=5){break}w=w+ +bF(+(c[g+(u+(c[f+(x<<2)>>2]|0)<<2)>>2]|0)/r-1.0);x=x+1|0}t=t+w;x=0;while(1){if((x|0)>=10){break}if((a[(c[852]|0)+((x*6|0)+1+(c[f>>2]|0))|0]|0)==45){if((a[(c[852]|0)+((x*6|0)+1+(c[f+4>>2]|0))|0]|0)==45){y=415;break}}x=x+1|0}if((y|0)==415){y=0}z=v;v=z+1|0;a[o+z|0]=a[(c[852]|0)+(x*6|0)|0]|0;if((c[g+(u+(c[f+4>>2]|0)<<2)>>2]|0)==(c[g+(u+(c[f+8>>2]|0)<<2)>>2]|0)){y=419;break}u=u+5|0}if((y|0)==419){ew(o);ew(m);ew(n);j=0;k=j;i=e;return k|0}a[o+v|0]=0;d=ev(l+256|0)|0;if((d|0)!=0){u=d;q=v;z=o;A=a[(c[852]|0)+(((s|0)%10|0)*10|0)|0]|0;r=t/+(((b|0)/5|0)*6|0|0);aP(u|0,21840,(u=i,i=i+32|0,c[u>>2]=q,c[u+8>>2]=z,c[u+16>>2]=A,h[u+24>>3]=r,u)|0)|0;i=u}ew(m);ew(n);ew(o);j=d;k=j;i=e;return k|0}}while(0);ew(m);ew(n);j=0;k=j;i=e;return k|0}function bM(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=i;i=i+72|0;f=e|0;g=e+16|0;j=e+32|0;k=e+48|0;l=e+64|0;m=b;b=d;d=0;n=l;eB(n|0,3296,8)|0;n=0;if(((b|0)%4|0|0)!=0){o=0;p=o;i=e;return p|0}q=(b|0)/4|0;b=ev(q)|0;if((b|0)==0){o=n;p=o;i=e;return p|0}n=ev(q+256|0)|0;r=0;s=0;while(1){if((s|0)>=(q|0)){break}c[j>>2]=c[m+(s<<3<<2)>>2];c[j+4>>2]=c[m+((s<<3)+2<<2)>>2];c[j+8>>2]=c[m+((s<<3)+4<<2)>>2];c[j+12>>2]=c[m+((s<<3)+6<<2)>>2];c[k>>2]=c[m+((s<<3)+1<<2)>>2];c[k+4>>2]=c[m+((s<<3)+3<<2)>>2];c[k+8>>2]=c[m+((s<<3)+5<<2)>>2];bJ(j|0,f|0,4);bJ(k|0,g|0,3);if((c[j+(c[f>>2]<<2)>>2]|0)==(c[j+(c[f+12>>2]<<2)>>2]|0)){t=440;break}u=(c[j+(c[f>>2]<<2)>>2]|0)-(c[j+(c[f+4>>2]<<2)>>2]|0)|0;v=1;w=u;u=(c[j+(c[f+4>>2]<<2)>>2]|0)-(c[j+(c[f+8>>2]<<2)>>2]|0)|0;if((u|0)>(w|0)){v=2;w=u}u=(c[j+(c[f+8>>2]<<2)>>2]|0)-(c[j+(c[f+12>>2]<<2)>>2]|0)|0;if((u|0)>(w|0)){v=3;w=u}if((v|0)==2){t=446;break}u=0;while(1){if((u|0)>=7){break}a[l+u|0]=46;u=u+1|0}if((v|0)==1){if(((c[k+(c[g>>2]<<2)>>2]|0)-(c[k+(c[g+4>>2]<<2)>>2]|0)|0)>((c[k+(c[g+4>>2]<<2)>>2]|0)-(c[k+(c[g+8>>2]<<2)>>2]|0)|0)){a[l+(c[f>>2]<<1)|0]=45;a[l+((c[g>>2]<<1)+1)|0]=45}else{if((c[k+(c[g+8>>2]<<2)>>2]|0)==(c[k+(c[g+4>>2]<<2)>>2]|0)){t=455;break}a[l+(c[f>>2]<<1)|0]=45;a[l+((c[g>>2]<<1)+1)|0]=45;a[l+((c[g+4>>2]<<1)+1)|0]=45}}else{a[l+(c[g>>2]<<1)|0]=45;a[l+(c[g+4>>2]<<1)|0]=45;a[l+(c[g+8>>2]<<1)|0]=45}w=24;u=0;L598:while(1){if((u|0)>=24){break}do{if((a[(c[850]|0)+((u<<3)+1)|0]|0)==(a[l|0]|0)){if((a[(c[850]|0)+((u<<3)+2)|0]|0)!=(a[l+1|0]|0)){break}if((a[(c[850]|0)+((u<<3)+3)|0]|0)!=(a[l+2|0]|0)){break}if((a[(c[850]|0)+((u<<3)+4)|0]|0)!=(a[l+3|0]|0)){break}if((a[(c[850]|0)+((u<<3)+5)|0]|0)!=(a[l+4|0]|0)){break}if((a[(c[850]|0)+((u<<3)+6)|0]|0)!=(a[l+5|0]|0)){break}if((a[(c[850]|0)+((u<<3)+7)|0]|0)==(a[l+6|0]|0)){t=468;break L598}}}while(0);u=u+1|0}if((t|0)==468){t=0;w=u;v=r;r=v+1|0;a[b+v|0]=a[(c[850]|0)+(u<<3)|0]|0}if((w|0)==24){t=472;break}s=s+1|0}if((t|0)==440){d=658}else if((t|0)==446){d=663}else if((t|0)==455){d=671}else if((t|0)==472){d=692}if((s|0)<(q|0)){ew(n);n=0}a[b+r|0]=0;if((n|0)!=0){q=n;s=r;r=b;aP(q|0,21344,(q=i,i=i+32|0,c[q>>2]=s,c[q+8>>2]=r,c[q+16>>2]=63,h[q+24>>3]=0.0,q)|0)|0;i=q}ew(b);o=n;p=o;i=e;return p|0}function bN(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0;b=i;d=a;a=c[7036]|0;e=c[a+37052>>2]|0;f=0;g=((c[d+8>>2]|0)+(c[d+12>>2]|0)|0)/2|0;h=(c[d+4>>2]|0)-(c[d>>2]|0)+1|0;j=h;k=h;h=dv(c[d>>2]|0,c[d+4>>2]|0,g,g,c[d+68>>2]|0,c[a+37052>>2]|0)|0;if((c[a+37072>>2]|0)!=0){a=c[n>>2]|0;l=h;m=j;au(a|0,21304,(a=i,i=i+16|0,c[a>>2]=l,c[a+8>>2]=m,a)|0)|0;i=a}a=ev(h<<1<<2)|0;if((a|0)==0){o=0;p=o;i=b;return p|0}m=c[d>>2]|0;m=m-(dC(c[d+68>>2]|0,m,g,8,e,1,4)|0)|0;m=m+(dC(c[d+68>>2]|0,m,g,j,e,0,3)|0)|0;l=0;while(1){if((l|0)>=(h<<1|0)){break}q=dC(c[d+68>>2]|0,m,g,k,e,1^l&1,3)|0;m=m+q|0;k=k-q|0;c[a+(l<<2)>>2]=q;l=l+1|0}c[a+((h<<1)-1<<2)>>2]=0;do{if(((h-1|0)%3|0|0)==0){if((h|0)<10){break}if((j|0)<((((h-1|0)*11|0|0)/3|0)+2|0)){break}if((f|0)==0){f=bG(a,h)|0}}}while(0);do{if(((h|0)%2|0|0)==0){if((h|0)<8){break}if((j|0)<((((h-6|0)*7|0|0)/2|0)+11|0)){break}if((((h-6|0)/2|0|0)%2|0|0)!=0){break}if((f|0)==0){f=bH(a,h)|0}}}while(0);if((h|0)==7){r=508}else{if((h|0)==16){r=508}}if((r|0)==508){if((f|0)==0){f=bI(a,h)|0}}do{if(((h|0)%5|0|0)==0){if((h|0)<=14){break}if((f|0)==0){f=bK(a,h)|0}}}while(0);do{if(((h|0)%5|0|0)==4){if((h|0)<=3){break}if((f|0)==0){f=bL(a,h)|0}}}while(0);do{if(((h|0)%4|0|0)==0){if((h|0)<=3){break}if((f|0)==0){f=bM(a,h)|0}}}while(0);ew(a);o=f;p=o;i=b;return p|0}function bO(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b;b=e;e=f;f=e;h=c[g+776>>2]|0;eC(f|0,0,h|0)|0;h=0;while(1){if((h|0)>=((c[g+4>>2]|0)-(c[g+776>>2]|0)-(c[g+792>>2]|0)|0)){break}f=a[g+264+((d[b+h|0]|0)^(d[e|0]|0))|0]|0;if((f&255|0)!=(c[g+4>>2]|0)){i=1;while(1){if((i|0)>=(c[g+776>>2]|0)){break}j=d[g+8+(bP(g,(f&255)+(d[g+520+((c[g+776>>2]|0)-i)|0]|0)|0)|0)|0]|0;k=e+i|0;a[k]=((d[k]|0)^j)&255;i=i+1|0}}i=e|0;j=e+1|0;k=(c[g+776>>2]|0)-1|0;eD(i|0,j|0,k|0)|0;if((f&255|0)!=(c[g+4>>2]|0)){k=a[g+8+(bP(g,(f&255)+(d[g+520|0]|0)|0)|0)|0]|0;a[e+((c[g+776>>2]|0)-1)|0]=k}else{a[e+((c[g+776>>2]|0)-1)|0]=0}h=h+1|0}return}function bP(a,b){a=a|0;b=b|0;var d=0;d=a;a=b;while(1){if((a|0)<(c[d+4>>2]|0)){break}a=a-(c[d+4>>2]|0)|0;a=(a>>c[d>>2])+(a&c[d+4>>2])|0}return a|0}function bQ(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,ab=0,ac=0,ad=0,ae=0,af=0,ag=0,ah=0,ai=0,aj=0,ak=0,al=0,am=0,an=0,ao=0,ap=0,aq=0,ar=0,as=0,at=0,av=0,aw=0,ax=0,ay=0,az=0,aA=0,aB=0,aC=0;e=i;i=i+320|0;f=e|0;g=e+48|0;h=e+304|0;j=b;b=0;k=0;if((c[j+37072>>2]|0)!=0){l=c[n>>2]|0;au(l|0,21232,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}l=0;o=0;p=0;q=c[j+8>>2]|0;r=c[j+12>>2]|0;s=c[j+37052>>2]|0;t=0;u=0;if((cy(j+84|0)|0)==0){while(1){if((c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=0){v=(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=(j+96|0)}else{v=0}if(!v){break}w=c[(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)+8>>2]|0;x=(c[w+4>>2]|0)-(c[w>>2]|0)+1|0;y=x-(dC(c[w+68>>2]|0,c[w+4>>2]|0,((c[w+8>>2]|0)+(c[w+12>>2]|0)|0)/2|0,(c[w+4>>2]|0)-(c[w>>2]|0)|0,s,0,4)|0)|0;t=y-(dC(c[w+68>>2]|0,c[w>>2]|0,((c[w+8>>2]|0)+(c[w+12>>2]|0)|0)/2|0,(c[w+4>>2]|0)-(c[w>>2]|0)|0,s,0,3)|0)|0;u=(c[w+12>>2]|0)-(c[w+8>>2]|0)+1|0;if((c[w+36>>2]|0)==57345){z=557}else{if((c[w+36>>2]|0)==57344){z=557}}if((z|0)==557){z=0;do{if((c[w+8>>2]|0)>=(l|0)){if((c[w+12>>2]|0)>(l+r|0)){break}if((c[w>>2]|0)<(o|0)){break}if((c[w+4>>2]|0)>(o+q|0)){break}if(((c[w+12>>2]|0)-(c[w+8>>2]|0)|0)<=19){break}if(((c[w+12>>2]|0)-(c[w+8>>2]|0)|0)<=(t<<3|0)){break}b=1;A=c[w>>2]|0;B=c[w+4>>2]|0;C=c[w+8>>2]|0;D=c[w+12>>2]|0;E=B-A+2|0;y=C;x=y;F=y;y=D;G=y;H=y;k=1;while(1){if((k|0)==0){break}k=0;if((cy(j+84|0)|0)==0){while(1){if((c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=0){I=(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=(j+96|0)}else{I=0}if(!I){break}J=c[(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)+8>>2]|0;if((w|0)!=(J|0)){if((c[J+36>>2]|0)==57345){z=573}else{if((c[J+36>>2]|0)==57344){z=573}}if((z|0)==573){z=0;L752:do{if((c[J+8>>2]|0)>=(l|0)){if((c[J+12>>2]|0)>(l+r|0)){break}if((c[J>>2]|0)<(o|0)){break}if((c[J+4>>2]|0)>(o+q|0)){break}if(((c[J+12>>2]|0)-(c[J+8>>2]|0)|0)<=19){break}if(((c[J+12>>2]|0)-(c[J+8>>2]|0)|0)<=(t<<2|0)){break}if(((c[J+4>>2]|0)-(c[J>>2]|0)|0)>=(u<<2|0)){break}if((P((c[J+8>>2]|0)-C|0)|0)<(((u|0)/16|0)+4|0)){if((P((c[J+12>>2]|0)-D|0)|0)>=((u|0)/2|0|0)){z=582}}else{z=582}L762:do{if((z|0)==582){z=0;do{if((P((c[J+8>>2]|0)-F|0)|0)<(((u|0)/16|0)+4|0)){if((P((c[J+12>>2]|0)-H|0)|0)>=((u|0)/2|0|0)){break}if((c[J>>2]|0)<=(A|0)){break L762}}}while(0);if((P((c[J+8>>2]|0)-x|0)|0)>=(((u|0)/16|0)+4|0)){break L752}if((P((c[J+12>>2]|0)-G|0)|0)>=((u|0)/2|0|0)){break L752}if((c[J>>2]|0)<(B|0)){break L752}}}while(0);if((c[J>>2]|0)<=(A-(E*12|0)|0)){break}if((c[J+4>>2]|0)>=(B+(E*12|0)|0)){break}if((c[J>>2]|0)<=(A-((u|0)/2|0)|0)){break}if((c[J+4>>2]|0)>=(B+((u|0)/2|0)|0)){break}if((c[J+4>>2]|0)<=(B|0)){if((c[J>>2]|0)>=(A|0)){break}}if((c[J>>2]|0)<(A|0)){A=c[J>>2]|0;F=c[J+8>>2]|0;H=c[J+12>>2]|0}if((c[J+4>>2]|0)>(B|0)){B=c[J+4>>2]|0;x=c[J+8>>2]|0;G=c[J+12>>2]|0}if(((c[J+12>>2]|0)-(c[J+8>>2]|0)<<2|0)>((D-C|0)*3|0|0)){if((c[J+8>>2]|0)>(C|0)){C=c[J+8>>2]|0}if((c[J+12>>2]|0)<(D|0)){D=c[J+12>>2]|0}}b=b+1|0;k=1}}while(0)}}c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]=c[c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]>>2]}cz(j+84|0)}}if((b|0)>5){G=0;c[w+36>>2]=57345;c[w>>2]=A;c[w+8>>2]=C;c[w+4>>2]=B;c[w+12>>2]=D;K=((c[w+8>>2]|0)+(c[w+12>>2]|0)|0)/2|0;if((c[j+37072>>2]|0)!=0){x=dv(c[w>>2]|0,c[w+4>>2]|0,K,K,c[w+68>>2]|0,c[j+37052>>2]|0)|0;H=c[n>>2]|0;F=A;y=C;L=B-A+1|0;M=D-C+1|0;N=x;O=b;au(H|0,21168,(m=i,i=i+48|0,c[m>>2]=F,c[m+8>>2]=y,c[m+16>>2]=L,c[m+24>>2]=M,c[m+32>>2]=N,c[m+40>>2]=O,m)|0)|0;i=m;if((b|0)!=(x|0)){x=c[n>>2]|0;au(x|0,21112,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}}G=bN(w)|0;if((G|0)==0){G=ev(128)|0;if((G|0)!=0){x=G;eE(x|0,20776,128)|0}}if((c[j+37072>>2]|0)!=0){x=c[n>>2]|0;O=G;au(x|0,20704,(m=i,i=i+8|0,c[m>>2]=O,m)|0)|0;i=m}O=w;x=G;dx(O,x,99)|0;ew(G);if((cy(j+84|0)|0)==0){while(1){if((c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=0){Q=(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=(j+96|0)}else{Q=0}if(!Q){break}J=c[(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)+8>>2]|0;if((w|0)!=(J|0)){if((c[J+36>>2]|0)==57345){z=630}else{if((c[J+36>>2]|0)==57344){z=630}}if((z|0)==630){z=0;do{if((P((c[J+8>>2]|0)-C|0)|0)<(((u|0)/16|0)+4|0)){if((P((c[J+12>>2]|0)-D|0)|0)>=((u|0)/2|0|0)){break}if((c[J+4>>2]|0)>(B|0)){break}if((c[J>>2]|0)<(A|0)){break}p=p+1|0;G=j+84|0;x=J;cw(G,x)|0;x=J;bV(x)|0}}while(0)}}c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]=c[c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]>>2]}cz(j+84|0)}if((c[j+37072>>2]|0)!=0){x=c[n>>2]|0;G=p;au(x|0,20616,(m=i,i=i+8|0,c[m>>2]=G,m)|0)|0;i=m}p=0}}}while(0)}c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]=c[c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]>>2]}cz(j+84|0)}k=0;c[j+37044>>2]=0;c[j+37040>>2]=0;c[j+37048>>2]=0;if((cy(j+84|0)|0)==0){while(1){if((c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=0){R=(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=(j+96|0)}else{R=0}if(!R){break}k=k+1|0;J=c[(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[J+36>>2]|0)!=57345){Q=j+37048|0;c[Q>>2]=(c[Q>>2]|0)+1;Q=j+37040|0;c[Q>>2]=(c[Q>>2]|0)+((c[J+4>>2]|0)-(c[J>>2]|0)+1);Q=j+37044|0;c[Q>>2]=(c[Q>>2]|0)+((c[J+12>>2]|0)-(c[J+8>>2]|0)+1)}c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]=c[c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]>>2]}cz(j+84|0)}if((c[j+37072>>2]|0)!=0){R=c[n>>2]|0;Q=k;I=c[j+37048>>2]|0;au(R|0,20584,(m=i,i=i+16|0,c[m>>2]=Q,c[m+8>>2]=I,m)|0)|0;i=m}if((c[j+37072>>2]|0)!=0){I=c[n>>2]|0;au(I|0,20464,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}l=0;o=0;p=0;q=c[j+8>>2]|0;r=c[j+12>>2]|0;s=c[j+37052>>2]|0;if((cy(j+84|0)|0)==0){while(1){if((c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=0){S=(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=(j+96|0)}else{S=0}if(!S){break}w=c[(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)+8>>2]|0;t=(c[w+4>>2]|0)-(c[w>>2]|0)+1|0;u=(c[w+12>>2]|0)-(c[w+8>>2]|0)+1|0;L879:do{if((t|0)<10){z=669}else{if((u|0)<10){z=669;break}C=0;B=0;A=0;D=0;T=dv(c[w>>2]|0,c[w+4>>2]|0,c[w+12>>2]|0,c[w+12>>2]|0,c[w+68>>2]|0,c[j+37052>>2]|0)|0;K=dv(c[w>>2]|0,c[w>>2]|0,c[w+8>>2]|0,c[w+12>>2]|0,c[w+68>>2]|0,c[j+37052>>2]|0)|0;b=c[w+8>>2]|0;while(1){if((b|0)>(c[w+12>>2]|0)){break}U=dv(c[w>>2]|0,c[w+4>>2]|0,b,b,c[w+68>>2]|0,c[j+37052>>2]|0)|0;k=0;while(1){if((k|0)>=(U|0)){break}I=(c[w>>2]|0)+((aa(k,t)|0)/(U|0)|0)|0;Q=(d8(c[w+68>>2]|0,I+((t|0)/(U<<2|0)|0)|0,b)|0)<(s|0);if(((Q?1:0)|0)!=1){z=675;break}Q=(d8(c[w+68>>2]|0,I+((t*3|0|0)/(U<<2|0)|0)|0,b)|0)<(s|0);if(((Q?1:0)|0)!=0){z=677;break}k=k+1|0}if((z|0)==675){z=0}else if((z|0)==677){z=0}if((k|0)==(U|0)){if((U|0)>(B|0)){B=U;C=b}}b=b+1|0}b=c[w>>2]|0;while(1){if((b|0)>(c[w+4>>2]|0)){break}U=dv(b,b,c[w+8>>2]|0,c[w+12>>2]|0,c[w+68>>2]|0,c[j+37052>>2]|0)|0;k=0;while(1){if((k|0)>=(U|0)){break}Q=(c[w+8>>2]|0)+((aa(k,u)|0)/(U|0)|0)|0;I=(d8(c[w+68>>2]|0,b,Q+((u|0)/(U<<2|0)|0)|0)|0)<(s|0);if(((I?1:0)|0)!=0){z=691;break}I=(d8(c[w+68>>2]|0,b,Q+((u*3|0|0)/(U<<2|0)|0)|0)|0)<(s|0);if(((I?1:0)|0)!=1){z=693;break}k=k+1|0}if((z|0)==691){z=0}else if((z|0)==693){z=0}if((k|0)==(U|0)){if((U|0)>=(D|0)){D=U;A=b}}b=b+1|0}if((B|0)!=0){V=(t|0)/(B<<1|0)|0}else{V=1}E=V;if((D|0)!=0){W=(u|0)/(D<<1|0)|0}else{W=1}I=W;do{if((c[w+36>>2]|0)!=57345){if((c[w+36>>2]|0)==57344){break}break L879}}while(0);do{if((T|0)==1){if((K|0)!=1){break}if((B|0)>=5){if((B|0)<=13){z=725}else{z=716}}else{z=716}L941:do{if((z|0)==716){z=0;do{if((B|0)>=16){if((B|0)>26){break}if(((B|0)%2|0|0)==0){z=725;break L941}}}while(0);do{if((B|0)>=32){if((B|0)>52){break}if(((B|0)%4|0|0)==0){z=725;break L941}}}while(0);if((B|0)<60){z=726;break}if((B|0)>72){z=726;break}if(((B|0)%6|0|0)==0){z=725}else{z=726}}}while(0);if((z|0)==725){z=0;if((B|0)==(D|0)){z=738}else{z=726}}do{if((z|0)==726){z=0;if((D|0)==4){if((B|0)==9){z=738;break}}if((D|0)==6){if((B|0)==13){z=738;break}}if((D|0)==8){if((B|0)==36){z=738;break}}if((D|0)==4){if((B|0)==16){z=738;break}}if((D|0)==6){if((B|0)==18){z=738;break}}if((D|0)!=8){break}if((B|0)==24){z=738}}}while(0);do{if((z|0)==738){z=0;if((C|0)>=((c[w+8>>2]|0)+I|0)){break}if((A|0)<=((c[w+4>>2]|0)-E|0)){break}Q=1;R=1;if((B|0)>=16){Q=2}if((B|0)>=32){Q=4}if((B|0)>=60){Q=6}if((D|0)>=16){R=2}if((D|0)>=32){R=4}if((D|0)>=60){R=6}v=0;v=ev(aa(B-Q<<2,D-R|0)|0)|0;if((v|0)==0){G=c[n>>2]|0;au(G|0,20384,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m;break L879}G=0;while(1){if((G|0)>=(D-R<<1|0)){break}X=0;while(1){if((X|0)>=(B-Q<<1|0)){break}T=(c[w>>2]|0)+(aa(E,X+1+(((X+2|0)/((B<<1|0)/(Q|0)|0|0)|0)<<1)|0)|0)+((E|0)/2|0)|0;K=(c[w+8>>2]|0)+(aa(I,G+1+(((G+2|0)/((D<<1|0)/(R|0)|0|0)|0)<<1)|0)|0)+((I|0)/2|0)|0;x=(d8(c[w+68>>2]|0,T,K)|0)<(s|0);a[v+((aa(G<<1,B-Q|0)|0)+X)|0]=(x?1:0)&255;X=X+1|0}G=G+1|0}if((c[j+37072>>2]|0)!=0){x=c[n>>2]|0;au(x|0,20360,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m;X=0;while(1){if((X|0)>=(B<<1|0)){break}if((X|0)<=8){x=c[n>>2]|0;O=X;au(x|0,20336,(m=i,i=i+8|0,c[m>>2]=O,m)|0)|0;i=m}else{do{if((X|0)<=98){if(((X|0)%2|0|0)!=0){z=770;break}O=c[n>>2]|0;x=X;au(O|0,20320,(m=i,i=i+8|0,c[m>>2]=x,m)|0)|0;i=m}else{z=770}}while(0);if((z|0)==770){z=0;if(((X|0)%4|0|0)==0){x=c[n>>2]|0;O=X;au(x|0,20304,(m=i,i=i+8|0,c[m>>2]=O,m)|0)|0;i=m}}}X=X+1|0}G=0;while(1){if((G|0)>=(D<<1|0)){break}au(c[n>>2]|0,20120,(m=i,i=i+8|0,c[m>>2]=G,m)|0)|0;i=m;X=0;while(1){if((X|0)>=(B<<1|0)){break}O=c[n>>2]|0;x=(c[w>>2]|0)+(aa(E,X)|0)+((E|0)/2|0)|0;if((d8(c[w+68>>2]|0,x,(c[w+8>>2]|0)+(aa(I,G)|0)+((I|0)/2|0)|0)|0)<(s|0)){do{if(((X|0)%((B<<1|0)/(Q|0)|0|0)|0|0)==0){Y=1}else{if(((X|0)%((B<<1|0)/(Q|0)|0|0)|0|0)==(((B<<1|0)/(Q|0)|0)-1|0)){Y=1;break}if(((G|0)%((D<<1|0)/(R|0)|0|0)|0|0)==0){Y=1;break}Y=((G|0)%((D<<1|0)/(R|0)|0|0)|0|0)==(((D<<1|0)/(R|0)|0)-1|0)}}while(0);Z=Y?120:111}else{Z=32}au(O|0,20008,(m=i,i=i+8|0,c[m>>2]=Z,m)|0)|0;i=m;X=X+1|0}G=G+1|0}au(c[n>>2]|0,19912,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m;X=0;while(1){if((X|0)>=(B-Q<<1|0)){break}if((X|0)<=8){x=c[n>>2]|0;N=X;au(x|0,20336,(m=i,i=i+8|0,c[m>>2]=N,m)|0)|0;i=m}else{do{if((X|0)<=98){if(((X|0)%2|0|0)!=0){z=798;break}N=c[n>>2]|0;x=X;au(N|0,20320,(m=i,i=i+8|0,c[m>>2]=x,m)|0)|0;i=m}else{z=798}}while(0);if((z|0)==798){z=0;if(((X|0)%4|0|0)==0){x=c[n>>2]|0;N=X;au(x|0,20304,(m=i,i=i+8|0,c[m>>2]=N,m)|0)|0;i=m}}}X=X+1|0}G=0;while(1){if((G|0)>=(D-R<<1|0)){break}au(c[n>>2]|0,20120,(m=i,i=i+8|0,c[m>>2]=G,m)|0)|0;i=m;X=0;while(1){if((X|0)>=(B-Q<<1|0)){break}N=(a[v+((aa(G<<1,B-Q|0)|0)+X)|0]|0)!=0;au(c[n>>2]|0,20008,(m=i,i=i+8|0,c[m>>2]=N?111:32,m)|0)|0;i=m;X=X+1|0}G=G+1|0}}N=0;x=0;c[w+36>>2]=57345;N=0;N=ev(((aa(B*24|0,D)|0)/8|0)+128|0)|0;if((N|0)==0){M=c[n>>2]|0;au(M|0,19872,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m;break L879}a[N|0]=0;eE(N|0,19768,128)|0;x=43;T=0;K=4;M=B-Q<<1;L=D-R<<1;y=1;b=0;L1079:while(1){if((b|0)>=((aa(B-Q|0,D-R|0)|0)/2|0|0)){break}F=0;H=2760;do{if((T|0)==0){if((K|0)!=(L|0)){break}H=3016}}while(0);do{if((T|0)==0){if((K|0)!=(L-2|0)){break}if(((M|0)%4|0|0)==0){break}H=2952}}while(0);do{if((T|0)==0){if((K|0)!=(L-2|0)){break}if(((M|0)%8|0|0)!=4){break}H=2888}}while(0);do{if((T|0)==2){if((K|0)!=(L+4|0)){break}if(((M|0)%8|0|0)!=0){break}H=2824}}while(0);k=0;while(1){if((k|0)>=8){break}X=T+(c[H+(k<<1<<2)>>2]|0)|0;G=K+(c[H+((k<<1)+1<<2)>>2]|0)|0;if((H|0)!=2760){X=(X+M|0)%(M|0)|0;G=(G+L|0)%(L|0)|0}if((G|0)<0){G=G+L|0;X=X+(4-((L+4|0)%8|0))|0}if((X|0)<0){X=X+M|0;G=G+(4-((M+4|0)%8|0))|0}X=(X+M|0)%(M|0)|0;G=(G+L|0)%(L|0)|0;F=F+(a[v+((aa(G,M)|0)+X)|0]<0){if((T|0)<0){z=845;break}if((K|0)<(L|0)){z=848}else{z=845}}else{z=845}}while(0);L1118:do{if((z|0)==845){z=0;do{if((y|0)<0){if((K|0)<0){break}if((T|0)<(M|0)){z=848;break L1118}}}while(0);b=b-1|0}}while(0);if((z|0)==848){z=0;O=c[n>>2]|0;H=T;_=K;$=F;ab=F;ac=y;ad=x;au(O|0,19672,(m=i,i=i+48|0,c[m>>2]=H,c[m+8>>2]=_,c[m+16>>2]=$,c[m+24>>2]=ab,c[m+32>>2]=ac,c[m+40>>2]=ad,m)|0)|0;i=m;do{if((F|0)>=33){if((F|0)>128){z=851;break}ad=x;x=ad+1|0;a[N+ad|0]=F-1&255;ad=c[n>>2]|0;ac=F-1|0;au(ad|0,19640,(m=i,i=i+8|0,c[m>>2]=ac,m)|0)|0;i=m}else{z=851}}while(0);if((z|0)==851){z=0;do{if((F|0)>=130){if((F|0)>229){z=854;break}ac=x;x=ac+1|0;a[N+ac|0]=((((F-130|0)/10|0)&255)<<24>>24)+48&255;ac=x;x=ac+1|0;a[N+ac|0]=((((F-130|0)%10|0)&255)<<24>>24)+48&255;ac=c[n>>2]|0;ad=F-130|0;au(ac|0,19600,(m=i,i=i+8|0,c[m>>2]=ad,m)|0)|0;i=m}else{z=854}}while(0);if((z|0)==854){z=0;ad=0;if((F|0)==129){ac=c[n>>2]|0;au(ac|0,19576,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}if((F|0)==230){ac=c[n>>2]|0;au(ac|0,19552,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}if((F|0)==231){ac=c[n>>2]|0;au(ac|0,19448,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}if((F|0)==232){ac=c[n>>2]|0;au(ac|0,19344,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}if((F|0)==235){ac=c[n>>2]|0;au(ac|0,19272,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}if((F|0)==238){ac=c[n>>2]|0;au(ac|0,19240,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}if((F|0)==239){ac=c[n>>2]|0;au(ac|0,19152,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}if((F|0)==240){ac=c[n>>2]|0;au(ac|0,19048,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}if((F|0)==254){ac=c[n>>2]|0;au(ac|0,19016,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}ac=aP(N+x|0,18992,(m=i,i=i+8|0,c[m>>2]=F,m)|0)|0;i=m;ad=ac;if((ad|0)>0){x=x+ad|0}}}}if((x|0)>(((aa(B*24|0,D)|0)/8|0)+128-10|0)){z=879;break}T=T+(y<<1)|0;K=K-(y<<1)|0;do{if((y|0)>0){if((K|0)>=0){if((T|0)<(M|0)){z=884;break}}K=K+1|0;T=T+3|0;y=y*-1|0}else{z=884}}while(0);if((z|0)==884){z=0;do{if((y|0)<0){if((T|0)>=0){if((K|0)<(L|0)){break}}T=T+1|0;K=K+3|0;y=y*-1|0}}while(0)}do{if((y|0)>0){if((T|0)<(M|0)){break}if((K|0)>=(L|0)){z=892;break L1079}}}while(0);b=b+1|0}if((z|0)==879){z=0}else if((z|0)==892){z=0}if((c[j+37072>>2]|0)!=0){L=c[n>>2]|0;M=c[w>>2]|0;y=c[w+8>>2]|0;G=t;R=u;Q=B<<1;F=D<<1;ad=E;ac=I;au(L|0,18912,(m=i,i=i+64|0,c[m>>2]=M,c[m+8>>2]=y,c[m+16>>2]=G,c[m+24>>2]=R,c[m+32>>2]=Q,c[m+40>>2]=F,c[m+48>>2]=ad,c[m+56>>2]=ac,m)|0)|0;i=m}do{if((N|0)!=0){if((x|0)>=(((aa(B<<3,D)|0)/8|0)+128-6|0)){break}ac=N+x|0;eE(ac|0,18840,6)|0}}while(0);a[N+(((aa(B<<3,D)|0)/8|0)+127)|0]=0;if((N|0)==0){N=ev(128)|0;if((N|0)!=0){x=N;eE(x|0,18752,128)|0}}if((c[j+37072>>2]|0)!=0){x=c[n>>2]|0;ac=N;au(x|0,20704,(m=i,i=i+8|0,c[m>>2]=ac,m)|0)|0;i=m}dx(w,N,99)|0;ew(N);if((cy(j+84|0)|0)==0){while(1){if((c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=0){ae=(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=(j+96|0)}else{ae=0}if(!ae){break}J=c[(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)+8>>2]|0;if((w|0)!=(J|0)){if((c[J+36>>2]|0)==57345){z=914}else{if((c[J+36>>2]|0)==57344){z=914}}if((z|0)==914){z=0;do{if((c[J+8>>2]|0)>=(c[w+8>>2]|0)){if((c[J+12>>2]|0)>(c[w+12>>2]|0)){break}if((c[J+4>>2]|0)>(c[w+4>>2]|0)){break}if((c[J>>2]|0)<(c[w>>2]|0)){break}p=p+1|0;ac=j+84|0;x=J;cw(ac,x)|0;x=J;bV(x)|0}}while(0)}}c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]=c[c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]>>2]}cz(j+84|0)}if((c[j+37072>>2]|0)!=0){N=c[n>>2]|0;x=p;au(N|0,20616,(m=i,i=i+8|0,c[m>>2]=x,m)|0)|0;i=m}p=0;ew(v)}}while(0);break L879}}while(0)}}while(0);if((z|0)==669){z=0}c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]=c[c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]>>2]}cz(j+84|0)}ae=0;D=1;B=0;E=0;u=0;t=0;b=0;X=0;Z=0;Y=0;A=0;C=0;W=0;V=0;U=0;S=0;I=0;x=0;if((c[j+37072>>2]|0)!=0){N=c[n>>2]|0;au(N|0,18648,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}N=0;while(1){if((N|0)>=4){break}af=0;while(1){if((af|0)>=40){break}if(((c[520+(af*56|0)+(N+2<<2)>>2]|0)%((c[520+(af*56|0)+((N<<1)+6<<2)>>2]|0)+(c[520+(af*56|0)+((N<<1)+7<<2)>>2]|0)|0)|0|0)!=0){ac=c[n>>2]|0;ad=af;F=N;au(ac|0,18568,(m=i,i=i+24|0,c[m>>2]=1476,c[m+8>>2]=ad,c[m+16>>2]=F,m)|0)|0;i=m}af=af+1|0}N=N+1|0}N=0;while(1){if((N|0)>=4){break}af=0;while(1){if((af|0)>=40){break}if(((c[520+(af*56|0)>>2]|0)%((c[520+(af*56|0)+((N<<1)+6<<2)>>2]|0)+(c[520+(af*56|0)+((N<<1)+7<<2)>>2]|0)|0)|0|0)!=(c[520+(af*56|0)+((N<<1)+7<<2)>>2]|0)){F=c[n>>2]|0;ad=af;ac=N;au(F|0,18568,(m=i,i=i+24|0,c[m>>2]=1481,c[m+8>>2]=ad,c[m+16>>2]=ac,m)|0)|0;i=m}af=af+1|0}N=N+1|0}l=0;o=0;p=0;q=c[j+8>>2]|0;r=c[j+12>>2]|0;s=c[j+37052>>2]|0;if((cy(j+84|0)|0)==0){while(1){if((c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=0){ag=(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=(j+96|0)}else{ag=0}if(!ag){break}w=c[(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)+8>>2]|0;ah=c[w>>2]|0;ai=(c[w+4>>2]|0)-ah+1|0;aj=c[w+8>>2]|0;ak=(c[w+12>>2]|0)-aj+1|0;do{if((ai|0)<7){z=960}else{if((ak|0)<7){z=960;break}if(((P(ai-ak|0)|0)<<3|0)>(ai+ak|0)){z=960;break}K=aj+((ak|0)/2|0)|0;T=dC(c[w+68>>2]|0,ah,K,ai,s,0,3)|0;if((T|0)>((ai|0)/16|0|0)){break}T=T+(dC(c[w+68>>2]|0,ah+T|0,K,ai,s,1,3)|0)|0;if((P(T-((ai|0)/7|0)|0)|0)>((ai|0)/16|0|0)){break}T=T+(dC(c[w+68>>2]|0,ah+T|0,K,ai,s,0,3)|0)|0;if((P(T-((ai<<1|0)/7|0)|0)|0)>((ai|0)/16|0|0)){break}T=T+(dC(c[w+68>>2]|0,ah+T|0,K,ai,s,1,3)|0)|0;if((P(T-((ai*5|0|0)/7|0)|0)|0)>((ai|0)/16|0|0)){break}T=T+(dC(c[w+68>>2]|0,ah+T|0,K,ai,s,0,3)|0)|0;if((P(T-((ai*6|0|0)/7|0)|0)|0)>((ai|0)/16|0|0)){break}K=aj+((ak|0)/14|0)|0;T=dC(c[w+68>>2]|0,ah,K,ai,s,0,3)|0;if((P(T-(0/7|0)|0)|0)>((ai|0)/16|0|0)){break}T=T+(dC(c[w+68>>2]|0,ah+T|0,K,ai,s,1,3)|0)|0;if((P(T-((ai*7|0|0)/7|0)|0)|0)>((ai|0)/16|0|0)){break}K=aj+((ak*13|0|0)/14|0)|0;T=dC(c[w+68>>2]|0,ah,K,ai,s,0,3)|0;if((P(T-(0/7|0)|0)|0)>((ai|0)/16|0|0)){break}T=T+(dC(c[w+68>>2]|0,ah+T|0,K,ai,s,1,3)|0)|0;if((P(T-((ai*7|0|0)/7|0)|0)|0)>((ai|0)/16|0|0)){break}K=aj+((ak*3|0|0)/14|0)|0;T=dC(c[w+68>>2]|0,ah,K,ai,s,0,3)|0;if((P(T-(0/7|0)|0)|0)>((ai|0)/16|0|0)){break}T=T+(dC(c[w+68>>2]|0,ah+T|0,K,ai,s,1,3)|0)|0;if((P(T-((ai|0)/7|0)|0)|0)>((ai|0)/16|0|0)){break}T=T+(dC(c[w+68>>2]|0,ah+T|0,K,ai,s,0,3)|0)|0;if((P(T-((ai*6|0|0)/7|0)|0)|0)>((ai|0)/16|0|0)){break}K=aj+((ak*11|0|0)/14|0)|0;T=dC(c[w+68>>2]|0,ah,K,ai,s,0,3)|0;if((P(T-(0/7|0)|0)|0)>((ai|0)/16|0|0)){break}T=T+(dC(c[w+68>>2]|0,ah+T|0,K,ai,s,1,3)|0)|0;if((P(T-((ai|0)/7|0)|0)|0)>((ai|0)/16|0|0)){break}T=T+(dC(c[w+68>>2]|0,ah+T|0,K,ai,s,0,3)|0)|0;if((P(T-((ai*6|0|0)/7|0)|0)|0)>((ai|0)/16|0|0)){break}T=ah+((ai|0)/2|0)|0;K=dC(c[w+68>>2]|0,T,aj,ak,s,0,2)|0;if((K|0)>((ak|0)/16|0|0)){break}K=K+(dC(c[w+68>>2]|0,T,aj+K|0,ak,s,1,2)|0)|0;if((P(K-((ak|0)/7|0)|0)|0)>((ak|0)/16|0|0)){break}K=K+(dC(c[w+68>>2]|0,T,aj+K|0,ak,s,0,2)|0)|0;if((P(K-((ak<<1|0)/7|0)|0)|0)>((ak|0)/16|0|0)){break}K=K+(dC(c[w+68>>2]|0,T,aj+K|0,ak,s,1,2)|0)|0;if((P(K-((ak*5|0|0)/7|0)|0)|0)>((ak|0)/16|0|0)){break}K=K+(dC(c[w+68>>2]|0,T,aj+K|0,ak,s,0,2)|0)|0;if((P(K-((ak*6|0|0)/7|0)|0)|0)>((ak|0)/16|0|0)){break}T=ah+((ai|0)/14|0)|0;K=dC(c[w+68>>2]|0,T,aj,ak,s,0,2)|0;if((P(K-(0/7|0)|0)|0)>((ak|0)/16|0|0)){break}K=K+(dC(c[w+68>>2]|0,T,aj+K|0,ak,s,1,2)|0)|0;if((P(K-((ak*7|0|0)/7|0)|0)|0)>((ak|0)/16|0|0)){break}T=ah+((ai*13|0|0)/14|0)|0;K=dC(c[w+68>>2]|0,T,aj,ak,s,0,2)|0;if((P(K-(0/7|0)|0)|0)>((ak|0)/16|0|0)){break}K=K+(dC(c[w+68>>2]|0,T,aj+K|0,ak,s,1,2)|0)|0;if((P(K-((ak*7|0|0)/7|0)|0)|0)>((ak|0)/16|0|0)){break}T=ah+((ai*3|0|0)/14|0)|0;K=dC(c[w+68>>2]|0,T,aj,ak,s,0,2)|0;if((P(K-(0/7|0)|0)|0)>((ak|0)/16|0|0)){break}K=K+(dC(c[w+68>>2]|0,T,aj+K|0,ak,s,1,2)|0)|0;if((P(K-((ak|0)/7|0)|0)|0)>((ak|0)/16|0|0)){break}K=K+(dC(c[w+68>>2]|0,T,aj+K|0,ak,s,0,2)|0)|0;if((P(K-((ak*6|0|0)/7|0)|0)|0)>((ak|0)/16|0|0)){break}T=ah+((ai*11|0|0)/14|0)|0;K=dC(c[w+68>>2]|0,T,aj,ak,s,0,2)|0;if((P(K-(0/7|0)|0)|0)>((ak|0)/16|0|0)){break}K=K+(dC(c[w+68>>2]|0,T,aj+K|0,ak,s,1,2)|0)|0;if((P(K-((ak|0)/7|0)|0)|0)>((ak|0)/16|0|0)){break}K=K+(dC(c[w+68>>2]|0,T,aj+K|0,ak,s,0,2)|0)|0;if((P(K-((ak*6|0|0)/7|0)|0)|0)>((ak|0)/16|0|0)){break}if((B|0)<3){c[f+(B<<4)>>2]=ah;c[f+(B<<4)+4>>2]=aj;c[f+(B<<4)+8>>2]=ai;c[f+(B<<4)+12>>2]=ak}else{E=-1}B=B+1|0}}while(0);if((z|0)==960){z=0}c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]=c[c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]>>2]}cz(j+84|0)}do{if((B|0)==3){if((c[f>>2]|0)<=(c[f+16>>2]|0)){break}af=c[f>>2]|0;c[f>>2]=c[f+16>>2];c[f+16>>2]=af;af=c[f+4>>2]|0;c[f+4>>2]=c[f+20>>2];c[f+20>>2]=af;af=c[f+8>>2]|0;c[f+8>>2]=c[f+24>>2];c[f+24>>2]=af;af=c[f+12>>2]|0;c[f+12>>2]=c[f+28>>2];c[f+28>>2]=af}}while(0);do{if((B|0)==3){if(((c[f>>2]|0)+(c[f+8>>2]|0)|0)>=(c[f+16>>2]|0)){break}if(((c[f+4>>2]|0)+(c[f+12>>2]|0)|0)>=(c[f+36>>2]|0)){break}s=c[f>>2]|0;ag=c[f+4>>2]|0;r=(c[f+16>>2]|0)+(c[f+24>>2]|0)-(c[f>>2]|0)|0;q=(c[f+36>>2]|0)+(c[f+44>>2]|0)-(c[f+4>>2]|0)|0;af=dv(s,s+r-1|0,ag+(((c[f+28>>2]|0)*13|0|0)/14|0)|0,ag+(((c[f+28>>2]|0)*13|0|0)/14|0)|0,c[w+68>>2]|0,c[j+37052>>2]|0)|0;af=(af-2<<1)+15|0;N=dv(s+(((c[f+24>>2]|0)*13|0|0)/14|0)|0,s+(((c[f+24>>2]|0)*13|0|0)/14|0)|0,ag,ag+q-1|0,c[w+68>>2]|0,c[j+37052>>2]|0)|0;N=(N-2<<1)+15|0;T=(r*14|0|0)/((c[f+8>>2]|0)+(c[f+24>>2]|0)|0)|0;K=(q*14|0|0)/((c[f+12>>2]|0)+(c[f+44>>2]|0)|0)|0;o=af;do{if(((af-17|0)%4|0|0)!=0){if(((N-17|0)%4|0|0)!=0){break}o=N}}while(0);I=(o-17|0)/4|0;l=o;K=l;T=l;l=28;ac=28;ad=0;af=2;while(1){if((af|0)>(I|0)){break}if((ad|0)!=0){l=((af<<2)+17-13+ad-(((ad|0)/4|0)<<1)|0)/(ad+1|0)|0}l=((l+1|0)/2|0)<<1;ac=(af<<2)+17-13-(aa(ad,l)|0)|0;if((ac+(aa(ad,l)|0)|0)>=((ad*28|0)+28|0)){ad=ad+1|0}af=af+1|0}o=(aa((I<<2)+17|0,(I<<2)+17|0)|0)-192|0;if((ad|0)>=0){al=aa((ad+1|0)*25|0,ad+1|0)|0}else{al=0}if((ad|0)>=1){am=ad*20|0}else{am=0}F=o-al-(am<<1)-((I<<2)+17-16<<1)-((I|0)<=6?0:36)-30-1|0;do{if((T|0)==(K|0)){if(((T-17|0)%4|0|0)!=0){break}if((T|0)<21){break}if((T|0)>177){break}b=ev(aa(T,K)|0)|0;if((b|0)!=0){af=0;while(1){if((af|0)>=(aa(T,K)|0)){break}o=d8(c[w+68>>2]|0,s+(((aa((af|0)%(T|0)|0,r)|0)+((r|0)/2|0)|0)/(T|0)|0)|0,ag+(((aa((af|0)/(T|0)|0,q)|0)+((q|0)/2|0)|0)/(K|0)|0)|0)|0;a[b+af|0]=((o|0)<(c[j+37052>>2]|0)?1:0)&255;af=af+1|0}E=1;af=0;while(1){if((af|0)>=(T-14|0)){break}if((a[b+((T*6|0)+(af+7))|0]&1|0)!=(af&1|0)){E=-1}if((a[b+((aa(af+7|0,T)|0)+6)|0]&1|0)!=(af&1|0)){E=-2}o=b+((T*6|0)+(af+7))|0;a[o]=(a[o]|2)&255;o=b+((aa(af+7|0,T)|0)+6)|0;a[o]=(a[o]|2)&255;af=af+1|0}if((a[b+((aa(T-7-1|0,T)|0)+8)|0]&1|0)==0){E=-3}o=b+((aa(T-7-1|0,T)|0)+8)|0;a[o]=(a[o]|2)&255;if((ac|0)!=0){af=6;while(1){if((af|0)>=(K|0)){break}N=6;while(1){if((N|0)>=(T|0)){break}do{if((af|0)<8){if((N|0)<=6){z=1077;break}if((N|0)<(T-8|0)){z=1082}else{z=1077}}else{z=1077}}while(0);L1452:do{if((z|0)==1077){z=0;do{if((N|0)<8){if((af|0)<=6){break}if((af|0)<(K-8|0)){z=1082;break L1452}}}while(0);if((af|0)<=6){break}if((N|0)>6){z=1082}}}while(0);if((z|0)==1082){z=0;v=-2;while(1){if((v|0)>=3){break}o=-2;while(1){if((o|0)>=3){break}Q=b+((aa(af+v|0,T)|0)+(N+o))|0;a[Q]=(a[Q]|2)&255;o=o+1|0}v=v+1|0}}do{if((N|0)==6){z=1094}else{if((l|0)==0){z=1094;break}an=l}}while(0);if((z|0)==1094){z=0;an=ac}N=N+an|0}do{if((af|0)==6){z=1100}else{if((l|0)==0){z=1100;break}ao=l}}while(0);if((z|0)==1100){z=0;ao=ac}af=af+ao|0}}af=0;while(1){if((af|0)>=64){break}v=b+(((af|0)%8|0)+(aa(T,(af|0)/8|0)|0))|0;a[v]=(a[v]|2)&255;v=b+(T-8+((af|0)%8|0)+(aa(T,(af|0)/8|0)|0))|0;a[v]=(a[v]|2)&255;v=b+(((af|0)%8|0)+(aa(T,T-8+((af|0)/8|0)|0)|0))|0;a[v]=(a[v]|2)&255;af=af+1|0}if((I|0)>6){af=0;while(1){if((af|0)>=18){break}v=b+(T-11+((af|0)%3|0)+(aa(T,(af|0)/3|0)|0))|0;a[v]=(a[v]|2)&255;v=b+(((af|0)%6|0)+(aa(T,T-11+((af|0)/6|0)|0)|0))|0;a[v]=(a[v]|2)&255;af=af+1|0}}af=0;while(1){if((af|0)>=15){break}v=T<<3;if((af|0)<8){ap=T-af-1|0}else{if((af|0)<9){aq=7}else{aq=14-af|0}ap=aq}Z=Z|(a[b+(v+ap)|0]&1)<=15){break}o=T;if((af|0)<6){at=af}else{if((af|0)<8){av=af+1|0}else{av=af+T-7-8|0}at=av}N=a[b+((aa(o,at)|0)+8)|0]&1;if((Z>>af&1|0)!=(N|0)){E=-4}o=T;if((af|0)<6){aw=af}else{if((af|0)<8){ax=af+1|0}else{ax=af+T-7-8|0}aw=ax}v=b+((aa(o,aw)|0)+8)|0;a[v]=(a[v]|2)&255;af=af+1|0}Z=Z^21522;af=0;while(1){if((af|0)>=15){break}af=af+1|0}S=7&Z>>10;v=0;o=31&Z>>10;o=o<<5;af=0;while(1){if((af|0)>=5){break}v=v<<1;o=o<<1;if(((v^o)&1024|0)!=0){v=v^311}af=af+1|0}o=o&31744|v&1023;x=1^3&Z>>13;af=0;while(1){if((af|0)>=(aa(T,K)|0)){break}af=af+1|0}af=0;v=0;while(1){if((v|0)>=(T|0)){break}ay=0;while(1){if((ay|0)>=(T|0)){break}o=(aa(v,T)|0)+ay|0;if((a[b+o|0]&6|0)==0){if((S|0)==0){if(((v+ay|0)%2|0|0)==0){z=1183}else{z=1169}}else{z=1169}do{if((z|0)==1169){z=0;if((S|0)==1){if(((v|0)%2|0|0)==0){z=1183;break}}if((S|0)==2){if(((ay|0)%3|0|0)==0){z=1183;break}}if((S|0)==3){if(((v+ay|0)%3|0|0)==0){z=1183;break}}if((S|0)==4){if(((((v|0)/2|0)+((ay|0)/3|0)|0)%2|0|0)==0){z=1183;break}}if((S|0)==5){if((((aa(v,ay)|0)%2|0)+((aa(v,ay)|0)%3|0)|0)==0){z=1183;break}}if((S|0)==6){if(((((aa(v,ay)|0)%2|0)+((aa(v,ay)|0)%3|0)|0)%2|0|0)==0){z=1183;break}}if((S|0)!=7){break}if(((((aa(v,ay)|0)%3|0)+((v+ay|0)%2|0)|0)%2|0|0)==0){z=1183}}}while(0);if((z|0)==1183){z=0;Q=b+o|0;a[Q]=(a[Q]^1)&255}}if((a[b+o|0]&6|0)==0){af=af+1|0}ay=ay+1|0}v=v+1|0}F=af;af=0;while(1){if((af|0)>=(aa(T,K)|0)){break}af=af+1|0}u=ev((aa(T,T)|0)/8|0)|0;A=0;Q=0;D=(c[520+((I-1|0)*56|0)+((x<<1)+6<<2)>>2]|0)+(c[520+((I-1|0)*56|0)+((x<<1)+7<<2)>>2]|0)|0;R=c[520+((I-1|0)*56|0)+(x+2<<2)>>2]|0;G=(c[520+((I-1|0)*56|0)>>2]|0)-R|0;N=-1;y=T-1|0;ay=y;v=y;if((u|0)!=0){while(1){if((ay|0)>=0){az=(v|0)>=0}else{az=0}if(!az){break}y=(aa(v,T)|0)+ay|0;M=c[520+((I-1|0)*56|0)+((x<<1)+6<<2)>>2]|0;L=c[520+((I-1|0)*56|0)+((x<<1)+7<<2)>>2]|0;if((a[b+y|0]&6|0)==0){Q=Q<<1|a[b+y|0]&1;A=A+1|0;if((A&7|0)==0){if((((A|0)/8|0)-1|0)<(G|0)){aA=((((A|0)/8|0)-1|0)/(D|0)|0)+(aa((((A|0)/8|0)-1|0)%(D|0)|0,(G|0)/(D|0)|0)|0)|0;if((aA|0)>=(aa(M,(G|0)/(D|0)|0)|0)){aA=((((A|0)/8|0)-1-M|0)/(D|0)|0)+(aa((((A|0)/8|0)-1-M|0)%(D|0)|0,((G|0)/(D|0)|0)+1|0)|0)+(aa(M,(G|0)/(D|0)|0)|0)|0}if((((A|0)/8|0)-1|0)>=(G-L|0)){aA=((((A|0)/8|0)-1|0)/(D|0)|0)+(aa((((A|0)/8|0)-1|0)%(D|0)|0,((G|0)/(D|0)|0)+1|0)|0)+(aa(M,(G|0)/(D|0)|0)|0)|0}}else{aA=((((A|0)/8|0)-G-1|0)/(D|0)|0)+(aa((((A|0)/8|0)-G-1|0)%(D|0)|0,(R|0)/(D|0)|0)|0)+G|0;if(((((A|0)/8|0)-1|0)/(D|0)|0|0)>=(((F|0)/8|0)-L|0)){aA=aA+(((F|0)/8|0)-L+((((A|0)/8|0)-1|0)%(D|0)|0))|0}}a[u+aA|0]=Q&255;if(((A|0)/8|0|0)==(G-L|0)){af=0;while(1){if((af|0)>=(M|0)){break}af=af+1|0}}Q=0}}do{if(((ay|0)%2|0|0)==(((ay|0)<6?1:0)|0)){z=1221}else{if((ay|0)==6){z=1221;break}do{if((v+N|0)>=0){if((v+N|0)>=(T|0)){z=1225;break}v=v+N|0;ay=ay+1|0}else{z=1225}}while(0);if((z|0)==1225){z=0;ay=ay-1|0;N=N*-1|0}}}while(0);if((z|0)==1221){z=0;ay=ay-1|0}}}v=0;Q=0;o=G;M=0;L=c[520+((I-1|0)*56|0)+((x<<1)+6<<2)>>2]|0;y=c[520+((I-1|0)*56|0)+((x<<1)+7<<2)>>2]|0;af=0;while(1){if((af|0)>=(L+y|0)){break}if((af|0)==0){z=1233}else{if((af|0)==(L|0)){z=1233}}if((z|0)==1233){z=0;v=(G|0)/(L+y|0)|0;if((af|0)==(L|0)){v=v+1|0}Q=(R|0)/(L+y|0)|0;bR(8,285,0,1,Q,255-v-Q|0)}bO(25472,u+M|0,g|0);N=0;while(1){if((N|0)>=(Q|0)){break}if((d[g+N|0]|0)!=(d[u+(o+N)|0]|0)){z=1239;break}N=N+1|0}if((z|0)==1239){z=0;E=-3}M=M+v|0;o=o+Q|0;af=af+1|0}if((I|0)<=40){ae=3080}if((I|0)<=26){ae=3144}if((I|0)<=9){ae=3208}Y=0;Q=0;C=0;W=0;o=0;v=1023;M=0;if((t|0)==0){t=ev(((F*3|0|0)/10|0)+1|0)|0}if((t|0)!=0){A=0;L1696:while(1){if((A|0)>=(G<<3|0)){break}o=o<<1|1&d[u+((A|0)/8|0)|0]>>7-((A|0)%8|0);Y=Y+1|0;Q=Q+1|0;do{if((U|0)==0){if((Y|0)!=4){break}U=o&15;o=0;Q=0;C=0}}while(0);do{if((C|0)==0){if((c[ae+(U<<2)>>2]|0)==0){break}if((c[ae+(U<<2)>>2]|0)!=(Y|0)){break}C=o;o=0;Q=0;v=c[456+(U<<2)>>2]|0;if((C|0)==0){U=0;Y=0}}}while(0);if((W|0)==0){a[t|0]=0}do{if((U|0)==0){z=1268}else{if((C|0)==0){z=1268;break}if((V|0)>=(C|0)){break}if((Q|0)<(v|0)){break}M=t+W|0;if((W+(c[392+(U<<2)>>2]|0)|0)>=((F*3|0|0)/10|0|0)){z=1274;break L1696}if((U|0)==8){y=((o|0)/192|0)+((o|0)%192|0)|0;if((y+33088|0)<=40956){y=y+33088|0}else{y=y+49472|0}a[t+W|0]=y>>8&255;a[t+(W+1)|0]=y&255;W=W+2|0;V=V+2|0;if((C-V|0)==1){v=8}}if((U|0)==4){a[t+W|0]=o&255;W=W+1|0;V=V+1|0}if((U|0)==2){y=((o|0)/45|0|0)%45|0;L=(o|0)%45|0;R=h;eB(R|0,3272,10)|0;if((v|0)==11){a[t+W|0]=y+48&255;a[t+(W+1)|0]=L+48&255;if((y|0)>9){a[t+W|0]=y-10+65&255}if((L|0)>9){a[t+(W+1)|0]=L-10+65&255}if((y|0)>35){a[t+W|0]=a[h+(y-36)|0]|0}if((L|0)>35){a[t+(W+1)|0]=a[h+(L-36)|0]|0}W=W+2|0;V=V+2|0;if((C-V|0)==1){v=6}}else{if((v|0)==6){a[t+W|0]=L+48&255;if((L|0)>9){a[t+W|0]=L-10+65&255}if((L|0)>35){a[t+W|0]=a[h+(L-36)|0]|0}W=W+1|0;V=V+1|0;v=0}}}if((U|0)==1){if((v|0)==10){a[t+W|0]=((o|0)/100|0)+48&255;a[t+(W+1)|0]=(((o|0)/10|0|0)%10|0)+48&255;a[t+(W+2)|0]=((o|0)%10|0)+48&255;W=W+3|0;V=V+3|0}if((v|0)==7){a[t+W|0]=((o|0)/10|0)+48&255;a[t+(W+1)|0]=((o|0)%10|0)+48&255;W=W+2|0;V=V+2|0;v=0}if((v|0)==4){a[t+W|0]=((o|0)%10|0)+48&255;W=W+1|0;V=V+1|0;v=0}if((C-V|0)==1){v=4}if((C-V|0)==2){v=7}}if((W|0)<=((F*3|0|0)/10|0|0)){a[t+W|0]=0}o=0;Q=0;if((V|0)>=(C|0)){V=0;C=0;U=0;Y=0}}}while(0);if((z|0)==1268){z=0}A=A+1|0}if((z|0)==1274){Q=c[n>>2]|0;au(Q|0,18408,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}}}else{au(c[n>>2]|0,18360,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}}}while(0);if((E|0)>0){X=ev(4e3)|0;do{if((X|0)!=0){if((t|0)==0){break}a[X|0]=95;a[X+1|0]=0;F=X;ac=I;l=W;ad=x;Q=t;aP(F|0,18272,(m=i,i=i+32|0,c[m>>2]=ac,c[m+8>>2]=l,c[m+16>>2]=ad,c[m+24>>2]=Q,m)|0)|0;i=m}}while(0)}if((E|0)<0){X=ev(128)|0;if((X|0)!=0){Q=X;eE(Q|0,18208,128)|0}}if((t|0)!=0){ew(t)}if((u|0)!=0){ew(u)}J=0;if((cy(j+84|0)|0)==0){while(1){if((c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=0){aB=(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=(j+96|0)}else{aB=0}if(!aB){break}w=c[(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)+8>>2]|0;ah=c[w>>2]|0;ai=(c[w+4>>2]|0)-ah+1|0;aj=c[w+8>>2]|0;ak=(c[w+12>>2]|0)-aj+1|0;do{if((ah|0)>=(s-((c[f+8>>2]|0)/14|0)|0)){if((aj|0)<(ag-((c[f+12>>2]|0)/14|0)|0)){break}if((ah+ai|0)>(s+r+((c[f+8>>2]|0)/14|0)|0)){break}if((aj+ak|0)>(ag+q+((c[f+12>>2]|0)/14|0)|0)){break}c[w+36>>2]=57345;c[w>>2]=s;c[w+8>>2]=ag;c[w+4>>2]=s+r-1;c[w+12>>2]=ag+q-1;if((J|0)!=0){p=p+1|0;Q=j+84|0;ad=w;cw(Q,ad)|0;ad=w;bV(ad)|0}else{J=w;if((X|0)!=0){ad=J;Q=X;dx(ad,Q,99)|0}}}}while(0);c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]=c[c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]>>2]}cz(j+84|0)}if((X|0)!=0){ew(X)}if((c[j+37072>>2]|0)!=0){q=c[n>>2]|0;ag=p;au(q|0,20616,(m=i,i=i+8|0,c[m>>2]=ag,m)|0)|0;i=m}p=0}}while(0);k=0;c[j+37044>>2]=0;c[j+37040>>2]=0;c[j+37048>>2]=0;if((cy(j+84|0)|0)==0){while(1){if((c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=0){aC=(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)!=(j+96|0)}else{aC=0}if(!aC){break}k=k+1|0;J=c[(c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[J+36>>2]|0)!=57345){p=j+37048|0;c[p>>2]=(c[p>>2]|0)+1;p=j+37040|0;c[p>>2]=(c[p>>2]|0)+((c[J+4>>2]|0)-(c[J>>2]|0)+1);p=j+37044|0;c[p>>2]=(c[p>>2]|0)+((c[J+12>>2]|0)-(c[J+8>>2]|0)+1)}c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]=c[c[(c[j+108>>2]|0)+(c[j+116>>2]<<2)>>2]>>2]}cz(j+84|0)}if((c[j+37072>>2]|0)==0){i=e;return 0}J=c[j+37048>>2]|0;au(c[n>>2]|0,20584,(m=i,i=i+16|0,c[m>>2]=k,c[m+8>>2]=J,m)|0)|0;i=m;i=e;return 0}function bR(b,e,f,g,h,j){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0;k=i;l=b;b=e;e=f;f=g;g=h;c[6368]=l;c[6369]=(1<=255){break}a[25736+j|0]=l&255;a[25480+l|0]=j&255;j=j<<1;if((j|0)>=256){j=j^b}l=l+1|0}if((j|0)!=1){b=c[n>>2]|0;h=j;au(b|0,18144,(b=i,i=i+8|0,c[b>>2]=h,b)|0)|0;i=b}b=1;while(1){if(((b|0)%(f|0)|0|0)==0){break}b=b+(c[6369]|0)|0}c[6565]=(b|0)/(f|0)|0;a[25992]=1;l=0;b=aa(e,f)|0;while(1){if((l|0)>=(g|0)){break}a[l+25993|0]=1;e=l;while(1){if((e|0)<=0){break}if((d[25992+e|0]|0|0)!=0){h=d[25992+(e-1)|0]|0;a[25992+e|0]=(h^(d[25480+(bP(25472,(d[25736+(d[25992+e|0]|0)|0]|0)+b|0)|0)|0]|0))&255}else{a[25992+e|0]=a[25992+(e-1)|0]|0}e=e-1|0}a[25992]=a[25480+(bP(25472,(d[25736+(d[25992]|0)|0]|0)+b|0)|0)|0]|0;l=l+1|0;b=b+f|0}l=0;while(1){if((l|0)>(g|0)){break}a[25992+l|0]=a[25736+(d[25992+l|0]|0)|0]|0;l=l+1|0}i=k;return}function bS(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,o=0,p=0,q=0,r=0;k=i;l=b;b=d;d=e;e=f;f=g;g=h;h=j;do{if((c[g>>2]|0)!=0){if((e|0)<0){break}if((f|0)<0){break}if((aa(e,f)|0)>(h|0)){break}c[g+4>>2]=e;c[g+8>>2]=f;c[g+12>>2]=1;j=0;while(1){if((j|0)>=(f|0)){break}m=0;while(1){if((m|0)>=(e|0)){break}o=(d8(l,m+b|0,j+d|0)|0)&255;p=m+(aa(j,c[g+4>>2]|0)|0)|0;a[(c[g>>2]|0)+p|0]=o;m=m+1|0}j=j+1|0}q=0;r=q;i=k;return r|0}}while(0);au(c[n>>2]|0,18512,(g=i,i=i+32|0,c[g>>2]=b,c[g+8>>2]=d,c[g+16>>2]=e,c[g+24>>2]=f,g)|0)|0;i=g;q=1;r=q;i=k;return r|0}function bT(a){a=a|0;var b=0;b=a;a=0;while(1){if((a|0)>=(c[b+72>>2]|0)){break}if((c[b+156+(a<<2)>>2]|0)!=0){ew(c[b+156+(a<<2)>>2]|0);c[b+156+(a<<2)>>2]=0}a=a+1|0}c[b+72>>2]=0;return 0}function bU(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0;b=a;a=ev(1320)|0;if((a|0)==0){d=0;e=d;return e|0}if((b|0)!=0){f=a;g=b;eB(f|0,g|0,1320)|0;g=0;while(1){if((g|0)>=(c[b+72>>2]|0)){break}if((c[b+156+(g<<2)>>2]|0)!=0){c[a+156+(g<<2)>>2]=ev((eA(c[b+156+(g<<2)>>2]|0)|0)+1|0)|0;f=c[a+156+(g<<2)>>2]|0;h=c[b+156+(g<<2)>>2]|0;i=(eA(c[b+156+(g<<2)>>2]|0)|0)+1|0;eB(f|0,h|0,i)|0}g=g+1|0}}else{c[a+72>>2]=0;c[a+196>>2]=0}d=a;e=d;return e|0}function bV(a){a=a|0;var b=0,c=0,d=0;b=a;if((b|0)!=0){a=b;bT(a)|0;ew(b);c=0;d=c;return d|0}else{c=0;d=c;return d|0}return 0}function bW(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0.0,j=0,k=0,l=0,m=0,o=0,p=0.0,q=0,r=0;d=i;e=a;a=1024;f=0;g=2;h=-1.0;if((b|0)!=1){b=c[n>>2]|0;au(b|0,23976,(b=i,i=i+1|0,i=i+7&-8,c[b>>2]=0,b)|0)|0;i=b}b=1;j=0;while(1){if((j|0)>=(c[e+196>>2]|0)){break}while(1){if((b|0)>=((c[e+264+(j<<2)>>2]|0)-1|0)){break}k=(c[e+296+(b<<3)>>2]|0)-(c[e+296+(b-1<<3)>>2]|0)|0;l=(c[e+296+(b<<3)+4>>2]|0)-(c[e+296+(b-1<<3)+4>>2]|0)|0;m=(c[e+296+(b+1<<3)>>2]|0)-(c[e+296+(b<<3)>>2]|0)|0;o=(c[e+296+(b+1<<3)+4>>2]|0)-(c[e+296+(b<<3)+4>>2]|0)|0;p=+(aa(P((aa(k,m)|0)+(aa(l,o)|0)|0)|0,(aa(k,m)|0)+(aa(l,o)|0)|0)|0)/(+((aa(k,k)|0)+(aa(l,l)|0)|0)*1.0*+((aa(m,m)|0)+(aa(o,o)|0)|0))-1.0;if(p<0.0){p=-0.0-p}q=aa((aa(m,m)|0)+(aa(o,o)|0)|0,(aa(k,k)|0)+(aa(l,l)|0)|0)|0;if(+(q|0)*p*p*p*p<+(a|0)*h*h*h*h){r=1461}else{if(h<0.0){r=1461}}if((r|0)==1461){r=0;h=p;f=j;g=b;a=q}b=b+1|0}j=j+1|0}if((c[e+196>>2]|0)>0){b=g;while(1){if((b|0)>=((c[e+264+((c[e+196>>2]|0)-1<<2)>>2]|0)-1|0)){break}c[e+296+(b<<3)>>2]=c[e+296+(b+1<<3)>>2];c[e+296+(b<<3)+4>>2]=c[e+296+(b+1<<3)+4>>2];b=b+1|0}}j=f;while(1){if((j|0)>=(c[e+196>>2]|0)){break}f=e+264+(j<<2)|0;c[f>>2]=(c[f>>2]|0)-1;j=j+1|0}i=d;return 0}function bX(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;d=i;i=i+1320|0;e=d|0;f=a;a=b;b=aa((c[a+4>>2]|0)-(c[a>>2]|0)+1|0,(c[a+12>>2]|0)-(c[a+8>>2]|0)+1|0)|0;if((b|0)>(aa((c[f+4>>2]|0)-(c[f>>2]|0)+1|0,(c[f+12>>2]|0)-(c[f+8>>2]|0)+1|0)|0)){g=a;h=f}else{g=f;h=a}do{if((c[a+8>>2]|0)>(c[f+12>>2]|0)){j=1484}else{if((c[a+12>>2]|0)<(c[f+8>>2]|0)){j=1484;break}if((c[a>>2]|0)>(c[f+4>>2]|0)){j=1484;break}if((c[a+4>>2]|0)<(c[f>>2]|0)){j=1484;break}if((c[a+28>>2]|0)>(c[f+28>>2]|0)){c[f+28>>2]=c[a+28>>2]}c[f+32>>2]=c[g+32>>2]}}while(0);if((j|0)==1484){b=f+28|0;c[b>>2]=(c[b>>2]|0)+(c[a+28>>2]|0);do{if((c[f+12>>2]<<2|0)<(((c[a+8>>2]|0)*3|0)+(c[a+12>>2]|0)|0)){if((c[f+8>>2]|0)>=(c[a+8>>2]|0)){break}b=a+24|0;c[b>>2]=(c[b>>2]|0)+1}}while(0)}b=f+24|0;c[b>>2]=(c[b>>2]|0)+(c[a+24>>2]|0);if((c[a>>2]|0)<(c[f>>2]|0)){c[f>>2]=c[a>>2]}if((c[a+4>>2]|0)>(c[f+4>>2]|0)){c[f+4>>2]=c[a+4>>2]}if((c[a+8>>2]|0)<(c[f+8>>2]|0)){c[f+8>>2]=c[a+8>>2]}if((c[a+12>>2]|0)>(c[f+12>>2]|0)){c[f+12>>2]=c[a+12>>2]}a=0;b=0;if((c[g+196>>2]|0)!=0){b=c[g+264+((c[g+196>>2]|0)-1<<2)>>2]|0}if((c[h+196>>2]|0)!=0){a=c[h+264+((c[h+196>>2]|0)-1<<2)>>2]|0}while(1){if((b+a|0)<=128){break}if((b|0)>(a|0)){k=g;bW(k,1)|0;b=b-1|0}else{k=h;bW(k,1)|0;a=a-1|0}}a=e;k=g;eB(a|0,k|0,1320)|0;k=0;a=0;while(1){if((k|0)>=(c[h+196>>2]|0)){j=1525;break}if((c[e+196>>2]|0)>=8){j=1512;break}while(1){if((a|0)>=(c[h+264+(k<<2)>>2]|0)){break}g=e+296+(b<<3)|0;l=h+296+(a<<3)|0;c[g>>2]=c[l>>2];c[g+4>>2]=c[l+4>>2];b=b+1|0;a=a+1|0}c[e+264+(c[e+196>>2]<<2)>>2]=b;c[e+200+(c[e+196>>2]<<2)>>2]=c[h+200+(k<<2)>>2];c[e+232+(c[e+196>>2]<<2)>>2]=c[h+232+(k<<2)>>2];l=e+196|0;c[l>>2]=(c[l>>2]|0)+1;if((c[e+196>>2]|0)>=8){j=1518;break}k=k+1|0}if((j|0)==1525){m=e+196|0;o=c[m>>2]|0;p=f;q=p+196|0;c[q>>2]=o;r=f;s=r+264|0;t=s;u=e+264|0;v=u;eB(t|0,v|0,32)|0;w=f;x=w+200|0;y=x;z=e+200|0;A=z;eB(y|0,A|0,32)|0;B=f;C=B+232|0;D=C;E=e+232|0;F=E;eB(D|0,F|0,32)|0;G=f;H=G+296|0;I=H;J=e+296|0;K=J;eB(I|0,K|0,1024)|0;i=d;return 0}else if((j|0)==1518){if((c[(c[7036]|0)+37072>>2]|0)!=0){k=c[n>>2]|0;au(k|0,16848,(k=i,i=i+1|0,i=i+7&-8,c[k>>2]=0,k)|0)|0;i=k}m=e+196|0;o=c[m>>2]|0;p=f;q=p+196|0;c[q>>2]=o;r=f;s=r+264|0;t=s;u=e+264|0;v=u;eB(t|0,v|0,32)|0;w=f;x=w+200|0;y=x;z=e+200|0;A=z;eB(y|0,A|0,32)|0;B=f;C=B+232|0;D=C;E=e+232|0;F=E;eB(D|0,F|0,32)|0;G=f;H=G+296|0;I=H;J=e+296|0;K=J;eB(I|0,K|0,1024)|0;i=d;return 0}else if((j|0)==1512){m=e+196|0;o=c[m>>2]|0;p=f;q=p+196|0;c[q>>2]=o;r=f;s=r+264|0;t=s;u=e+264|0;v=u;eB(t|0,v|0,32)|0;w=f;x=w+200|0;y=x;z=e+200|0;A=z;eB(y|0,A|0,32)|0;B=f;C=B+232|0;D=C;E=e+232|0;F=E;eB(D|0,F|0,32)|0;G=f;H=G+296|0;I=H;J=e+296|0;K=J;eB(I|0,K|0,1024)|0;i=d;return 0}return 0}function bY(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0;b=i;d=a;a=0;if((a|0)!=0){e=c[n>>2]|0;f=c[d>>2]|0;g=c[d+8>>2]|0;au(e|0,12432,(h=i,i=i+16|0,c[h>>2]=f,c[h+8>>2]=g,h)|0)|0;i=h}g=0;while(1){if((g|0)>=(c[d+196>>2]|0)){break}if((a|0)>2){f=c[n>>2]|0;e=g;au(f|0,9608,(h=i,i=i+8|0,c[h>>2]=e,h)|0)|0;i=h}c[d+232+(g<<2)>>2]=0;if((g|0)!=0){j=c[d+264+(g-1<<2)>>2]|0}else{j=0}k=j;l=c[d+264+(g<<2)>>2]|0;m=k;while(1){if((m|0)>=(l|0)){break}o=c[d+296+(m<<3)>>2]|0;p=c[d+296+(m<<3)+4>>2]|0;do{if((o|0)>=(c[d>>2]|0)){if((o|0)>(c[d+4>>2]|0)){break}if((p|0)<(c[d+8>>2]|0)){break}if((p|0)>(c[d+12>>2]|0)){break}e=d+232+(g<<2)|0;c[e>>2]=c[e>>2]|1}}while(0);do{if((o|0)<(c[d>>2]|0)){q=1547}else{if((o|0)>(c[d+4>>2]|0)){q=1547;break}if((p|0)<(c[d+8>>2]|0)){q=1547;break}if((p|0)>(c[d+12>>2]|0)){q=1547}}}while(0);if((q|0)==1547){q=0;e=d+232+(g<<2)|0;c[e>>2]=c[e>>2]|2}m=m+1|0}if((a|0)>2){e=c[n>>2]|0;f=c[d+232+(g<<2)>>2]|0;au(e|0,8568,(h=i,i=i+8|0,c[h>>2]=f,h)|0)|0;i=h}if((c[d+232+(g<<2)>>2]|0)==2){if((a|0)>1){f=c[n>>2]|0;e=g;au(f|0,7480,(h=i,i=i+8|0,c[h>>2]=e,h)|0)|0;i=h}m=k;while(1){if((m|0)>=((c[d+264+((c[d+196>>2]|0)-1<<2)>>2]|0)-(l-k)|0)){break}c[d+296+(m<<3)>>2]=c[d+296+(m+l-k<<3)>>2];c[d+296+(m<<3)+4>>2]=c[d+296+(m+l-k<<3)+4>>2];m=m+1|0}m=g;while(1){if((m|0)>=((c[d+196>>2]|0)-1|0)){break}c[d+264+(m<<2)>>2]=(c[d+264+(m+1<<2)>>2]|0)-(l-k);c[d+200+(m<<2)>>2]=c[d+200+(m+1<<2)>>2];c[d+232+(m<<2)>>2]=c[d+232+(m+1<<2)>>2];m=m+1|0}e=d+196|0;c[e>>2]=(c[e>>2]|0)-1;g=g-1|0}g=g+1|0}l=0;g=0;while(1){if((g|0)>=(c[d+196>>2]|0)){break}if((a|0)>2){j=c[n>>2]|0;e=g;au(j|0,6432,(h=i,i=i+8|0,c[h>>2]=e,h)|0)|0;i=h}o=c[d+296>>2]|0;p=c[d+300>>2]|0;do{if((o|0)<(c[d>>2]|0)){q=1574}else{if((o|0)>(c[d+4>>2]|0)){q=1574;break}if((p|0)<(c[d+8>>2]|0)){q=1574;break}if((p|0)>(c[d+12>>2]|0)){q=1574}}}while(0);if((q|0)==1574){q=0;l=1}k=0;while(1){if((k|0)>=(c[d+264+(g<<2)>>2]|0)){break}e=o;j=p;o=c[d+296+(k<<3)>>2]|0;p=c[d+296+(k<<3)+4>>2]|0;do{if((o|0)<(c[d>>2]|0)){q=1581}else{if((o|0)>(c[d+4>>2]|0)){q=1581;break}if((p|0)<(c[d+8>>2]|0)){q=1581;break}if((p|0)>(c[d+12>>2]|0)){q=1581;break}if((l|0)!=0){if((e|0)<(c[d>>2]|0)){e=c[d>>2]|0}if((e|0)>(c[d+4>>2]|0)){e=c[d+4>>2]|0}if((j|0)<(c[d+8>>2]|0)){j=c[d+8>>2]|0}if((j|0)>(c[d+12>>2]|0)){j=c[d+12>>2]|0}f=e;c[d+296+(k<<3)>>2]=f;o=f;f=j;c[d+296+(k<<3)+4>>2]=f;p=f;l=0}}}while(0);if((q|0)==1581){q=0;if((l|0)==0){if((o|0)<(c[d>>2]|0)){j=c[d>>2]|0;c[d+296+(k<<3)>>2]=j;o=j}if((o|0)>(c[d+4>>2]|0)){j=c[d+4>>2]|0;c[d+296+(k<<3)>>2]=j;o=j}if((p|0)<(c[d+8>>2]|0)){j=c[d+8>>2]|0;c[d+296+(k<<3)+4>>2]=j;p=j}if((p|0)>(c[d+12>>2]|0)){j=c[d+12>>2]|0;c[d+296+(k<<3)+4>>2]=j;p=j}}else{if((a|0)>1){j=c[n>>2]|0;e=g;f=k;r=o-(c[d>>2]|0)|0;s=p-(c[d+8>>2]|0)|0;au(j|0,5368,(h=i,i=i+32|0,c[h>>2]=e,c[h+8>>2]=f,c[h+16>>2]=r,c[h+24>>2]=s,h)|0)|0;i=h}m=k;while(1){if((m|0)>=((c[d+264+((c[d+196>>2]|0)-1<<2)>>2]|0)-1|0)){break}c[d+296+(m<<3)>>2]=c[d+296+(m+1<<3)>>2];c[d+296+(m<<3)+4>>2]=c[d+296+(m+1<<3)+4>>2];m=m+1|0}m=g;while(1){if((m|0)>=(c[d+196>>2]|0)){break}s=d+264+(m<<2)|0;c[s>>2]=(c[s>>2]|0)-1;m=m+1|0}k=k-1|0}l=l+1|0}k=k+1|0}g=g+1|0}if((a|0)<=2){i=b;return 0}au(c[n>>2]|0,4536,(h=i,i=i+1|0,i=i+7&-8,c[h>>2]=0,h)|0)|0;i=h;dk(d);i=b;return 0}function bZ(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=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;d=i;i=i+536|0;e=d|0;f=d+264|0;g=d+528|0;h=b;b=f;eC(b|0,0,257)|0;j=b;a[j|0]=46;a[j+1|0]=47;a[j+2|0]=100;a[j+3|0]=98;a[j+4|0]=47;if((c[h+37084>>2]|0)!=0){j=f|0;b=c[h+37084>>2]|0;eE(j|0,b|0,255)|0}b=eA(f|0)|0;if((c[h+37072>>2]|0)!=0){j=c[n>>2]|0;k=f|0;l=c[h+37084>>2]|0;au(j|0,17824,(m=i,i=i+16|0,c[m>>2]=k,c[m+8>>2]=l,m)|0)|0;i=m}eE(f+b|0,23872,256-b|0)|0;a[f+256|0]=0;l=aA(f|0,16824)|0;if((l|0)==0){k=c[n>>2]|0;j=f|0;au(k|0,12384,(m=i,i=i+8|0,c[m>>2]=j,m)|0)|0;i=m;o=1;p=o;i=d;return p|0}j=0;k=0;L2198:while(1){if(!((aG(l|0)|0)!=0^1)){break}if((ax(e|0,256,l|0)|0)==0){q=1631;break}j=j+1|0;r=eA(e|0)|0;while(1){if((r|0)>0){if((a[e+(r-1)|0]|0)==13){s=1}else{s=(a[e+(r-1)|0]|0)==10}t=s}else{t=0}if(!t){break}u=r-1|0;r=u;a[e+u|0]=0}do{if((r|0)!=0){if((a[e|0]|0)==35){break}u=0;while(1){do{if((u|0)<(r|0)){if((u+b|0)>=256){v=0;break}v=(aC(9592,a[e+u|0]|0)|0)==0}else{v=0}}while(0);if(!v){break}a[f+(b+u)|0]=a[e+u|0]|0;u=u+1|0}a[f+(b+u)|0]=0;while(1){if((u|0)<(r|0)){w=(aC(8560,a[e+u|0]|0)|0)!=0}else{w=0}if(!w){break}u=u+1|0}x=ev(16)|0;if((x|0)==0){y=c[n>>2]|0;au(y|0,7448,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}if((ec(f|0,x,0)|0)!=0){q=1659;break L2198}y=bU(0)|0;if((y|0)==0){z=c[n>>2]|0;au(z|0,5336,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}c[y>>2]=0;c[y+4>>2]=(c[x+4>>2]|0)-1;c[y+8>>2]=0;c[y+12>>2]=(c[x+8>>2]|0)-1;c[y+16>>2]=1;c[y+20>>2]=1;c[y+24>>2]=0;c[y+36>>2]=0;c[y+40>>2]=0;c[y+156>>2]=0;c[y+76>>2]=0;c[y+116>>2]=100;c[y+72>>2]=1;if((a[e+u|0]|0)==34){r=(aQ(e+u+1|0,34)|0)-(e+u+1)|0;if((r|0)>=1){c[g>>2]=ev(r+1|0)|0;if((c[g>>2]|0)==0){z=c[n>>2]|0;au(z|0,4504,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}if((c[g>>2]|0)!=0){z=c[g>>2]|0;A=e+u+1|0;B=r;eB(z|0,A|0,B)|0;a[(c[g>>2]|0)+r|0]=0;c[y+156>>2]=c[g>>2]}}else{B=c[n>>2]|0;A=j;au(B|0,25112,(m=i,i=i+8|0,c[m>>2]=A,m)|0)|0;i=m}}else{A=a[e+u|0]|0;c[y+36>>2]=A;c[y+76>>2]=A;c[g>>2]=e+u;r=aV(e+u|0,g|0,16)|0;do{if((r|0)!=0){if((u+3|0)>256){break}if(((c[g>>2]|0)-e-u|0)<=3){break}A=r;c[y+36>>2]=A;c[y+76>>2]=A}}while(0)}c[y+44>>2]=0;c[y+48>>2]=-1;c[y+52>>2]=0;c[y+56>>2]=0;c[y+60>>2]=0;c[y+64>>2]=0;c[y+68>>2]=x;cu(h+48|0,y)|0}}while(0);k=k+1|0}if((q|0)!=1631)if((q|0)==1659){au(c[n>>2]|0,6400,(m=i,i=i+8|0,c[m>>2]=f,m)|0)|0;i=m;aO(-1|0);return 0}aq(l|0)|0;if((c[h+37072>>2]|0)!=0){h=c[n>>2]|0;l=k;au(h|0,24544,(m=i,i=i+8|0,c[m>>2]=l,m)|0)|0;i=m}o=0;p=o;i=d;return p|0}function b_(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0;f=i;i=i+544|0;g=f|0;h=f+264|0;j=f+528|0;k=b;b=e;e=g;eC(e|0,0,257)|0;l=e;a[l|0]=46;a[l+1|0]=47;a[l+2|0]=100;a[l+3|0]=98;a[l+4|0]=47;if((c[b+37084>>2]|0)!=0){l=g|0;e=c[b+37084>>2]|0;eE(l|0,e|0,255)|0}e=eA(g|0)|0;do{if((c[k+72>>2]|0)!=0){if((c[k+156>>2]|0)==0){m=1689;break}o=d[c[k+156>>2]|0]|0}else{m=1689}}while(0);if((m|0)==1689){o=c[k+36>>2]|0}l=o;o=a$(0)|0;aP(h|0,23688,(p=i,i=i+16|0,c[p>>2]=l,c[p+8>>2]=o,p)|0)|0;i=p;eE(g+e|0,23872,256-e|0)|0;a[g+256|0]=0;o=aA(g|0,22840)|0;if((o|0)==0){q=c[n>>2]|0;r=g|0;au(q|0,21040,(p=i,i=i+8|0,c[p>>2]=r,p)|0)|0;i=p;s=1;t=s;i=f;return t|0}eE(g+e|0,h|0,eA(h|0)|0)|0;a[g+(e+(eA(h|0)|0))|0]=0;if((c[b+37072>>2]|0)!=0){b=c[n>>2]|0;e=h|0;r=c[k+72>>2]|0;q=l;au(b|0,20248,(p=i,i=i+24|0,c[p>>2]=e,c[p+8>>2]=r,c[p+16>>2]=q,p)|0)|0;i=p}q=(c[k+4>>2]|0)-(c[k>>2]|0)+1|0;r=(c[k+12>>2]|0)-(c[k+8>>2]|0)+1|0;c[j>>2]=ev(aa(q,r)|0)|0;if((c[j>>2]|0)==0){e=c[n>>2]|0;au(e|0,19512,(p=i,i=i+1|0,i=i+7&-8,c[p>>2]=0,p)|0)|0;i=p;e=o;aq(e|0)|0;s=2;t=s;i=f;return t|0}if((bS(c[k+68>>2]|0,c[k>>2]|0,c[k+8>>2]|0,q,r,j,aa(q,r)|0)|0)!=0){r=o;aq(r|0)|0;s=-1;t=s;i=f;return t|0}eg(g|0,j)|0;ew(c[j>>2]|0);do{if((c[k+72>>2]|0)!=0){if((c[k+156>>2]|0)==0){m=1701;break}j=o;g=h|0;r=c[k+156>>2]|0;au(j|0,18824,(p=i,i=i+16|0,c[p>>2]=g,c[p+8>>2]=r,p)|0)|0;i=p}else{m=1701}}while(0);if((m|0)==1701){if((c[k+36>>2]|0)>=48){if((c[k+36>>2]|0)<=57){m=1707}else{m=1703}}else{m=1703}do{if((m|0)==1703){if((c[k+36>>2]|0)>=65){if((c[k+36>>2]|0)<=90){m=1707;break}}if((c[k+36>>2]|0)>=97){if((c[k+36>>2]|0)<=122){m=1707;break}}if((c[k+36>>2]>>16>>16|0)!=0){r=o;g=h|0;j=c[k+36>>2]|0;au(r|0,17720,(p=i,i=i+16|0,c[p>>2]=g,c[p+8>>2]=j,p)|0)|0;i=p}else{j=o;g=h|0;r=c[k+36>>2]|0;au(j|0,17400,(p=i,i=i+16|0,c[p>>2]=g,c[p+8>>2]=r,p)|0)|0;i=p}}}while(0);if((m|0)==1707){m=o;r=h|0;h=(c[k+36>>2]&255)<<24>>24;au(m|0,18104,(p=i,i=i+16|0,c[p>>2]=r,c[p+8>>2]=h,p)|0)|0;i=p}}aq(o|0)|0;s=0;t=s;i=f;return t|0}function b$(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;d=i;e=a;a=c[b+37052>>2]|0;b=c[e+8>>2]|0;f=c[e+68>>2]|0;g=c[e>>2]|0;h=c[e+4>>2]|0;j=h-g+1|0;k=c[e+8>>2]|0;l=c[e+12>>2]|0;m=l-k+1|0;k=k-2|0;l=l+2|0;do{if((c[e+64>>2]|0)!=0){if((k|0)<=(c[e+52>>2]|0)){break}k=c[e+52>>2]|0}}while(0);do{if((c[e+64>>2]|0)!=0){if((l|0)>=(c[e+64>>2]|0)){break}l=c[e+64>>2]|0}}while(0);if((h-g+1|0)<52){g=g-10|0;h=h+10|0}if((h-g+1|0)<52){g=g-10|0;h=h+10|0}if((h-g+1|0)<62){g=g-5|0;h=h+5|0}if((l-k+1|0)<10){k=k-4|0;l=l+4|0}if((g|0)<0){g=0}if((h|0)>=(c[f+4>>2]|0)){h=(c[f+4>>2]|0)-1|0}if((k|0)<0){k=0}if((l|0)>=(c[f+8>>2]|0)){l=(c[f+8>>2]|0)-1|0}j=h-g+1|0;m=l-k+1|0;b=k;au(c[n>>2]|0,17032,(l=i,i=i+1|0,i=i+7&-8,c[l>>2]=0,l)|0)|0;i=l;h=c[e+8>>2]|0;o=(c[e+4>>2]|0)-(c[e>>2]|0)+1|0;p=(c[e+12>>2]|0)-(c[e+8>>2]|0)+1|0;q=(c[e+16>>2]|0)-(c[e>>2]|0)|0;r=(c[e+20>>2]|0)-(c[e+8>>2]|0)|0;au(c[n>>2]|0,16736,(l=i,i=i+48|0,c[l>>2]=c[e>>2],c[l+8>>2]=h,c[l+16>>2]=o,c[l+24>>2]=p,c[l+32>>2]=q,c[l+40>>2]=r,l)|0)|0;i=l;if((c[e+72>>2]|0)!=0){r=c[n>>2]|0;au(r|0,16304,(l=i,i=i+1|0,i=i+7&-8,c[l>>2]=0,l)|0)|0;i=l;r=0;while(1){if((r|0)<(c[e+72>>2]|0)){s=(r|0)<10}else{s=0}if(!s){break}if((c[e+156+(r<<2)>>2]|0)!=0){q=c[n>>2]|0;p=c[e+156+(r<<2)>>2]|0;o=c[e+116+(r<<2)>>2]|0;au(q|0,15896,(l=i,i=i+16|0,c[l>>2]=p,c[l+8>>2]=o,l)|0)|0;i=l}else{o=c[n>>2]|0;p=es(c[e+76+(r<<2)>>2]|0,6)|0;q=c[e+116+(r<<2)>>2]|0;au(o|0,15896,(l=i,i=i+16|0,c[l>>2]=p,c[l+8>>2]=q,l)|0)|0;i=l}r=r+1|0}}au(c[n>>2]|0,15648,(l=i,i=i+1|0,i=i+7&-8,c[l>>2]=0,l)|0)|0;i=l;do{if((c[e+24>>2]|0)!=0){if((c[e+56>>2]|0)==0){break}if((c[e+52>>2]|0)>=(k|0)){break}b=c[e+52>>2]|0;m=(c[e+12>>2]|0)-b+1|0}}while(0);r=((j|0)/80|0)+1|0;s=((m|0)/40|0)+1|0;au(c[n>>2]|0,15216,(l=i,i=i+48|0,c[l>>2]=g,c[l+8>>2]=k,c[l+16>>2]=j,c[l+24>>2]=m,c[l+32>>2]=r,c[l+40>>2]=s,l)|0)|0;i=l;if((j|0)<=0){i=d;return}q=b;while(1){if((q|0)>=(b+m|0)){break}p=g;while(1){if((p|0)>=(g+j|0)){break}t=46;o=q;while(1){if((o|0)<(q+s|0)){u=(o|0)<(k+m|0)}else{u=0}if(!u){break}h=p;while(1){if((h|0)<(p+r|0)){v=(h|0)<(g+j|0)}else{v=0}if(!v){break}if((d8(f,h,o)|0)<(a|0)){t=35}h=h+1|0}o=o+1|0}do{if((p+r-1|0)<(c[e>>2]|0)){w=1779}else{if((p|0)>(c[e+4>>2]|0)){w=1779;break}if((q+s-1|0)<(c[e+8>>2]|0)){w=1779;break}if((q|0)>(c[e+12>>2]|0)){w=1779}}}while(0);if((w|0)==1779){w=0;t=((t<<24>>24|0)==35?79:44)&255}au(c[n>>2]|0,14736,(l=i,i=i+8|0,c[l>>2]=t<<24>>24,l)|0)|0;i=l;p=p+r|0}p=32;t=32;if((e|0)!=0){do{if((q|0)==(c[e+52>>2]|0)){w=1787}else{if((q|0)==(c[e+56>>2]|0)){w=1787;break}if((q|0)==(c[e+60>>2]|0)){w=1787;break}if((q|0)==(c[e+64>>2]|0)){w=1787}}}while(0);if((w|0)==1787){w=0;t=60}}if((q|0)==(c[e+8>>2]|0)){w=1791}else{if((q|0)==(c[e+12>>2]|0)){w=1791}}if((w|0)==1791){w=0;p=45}au(c[n>>2]|0,14408,(l=i,i=i+16|0,c[l>>2]=t<<24>>24,c[l+8>>2]=p<<24>>24,l)|0)|0;i=l;q=q+s|0}i=d;return}function b0(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;h=a;a=b;b=d;d=e;e=f;f=g;g=0;i=0;j=0;k=c[a>>2]|0;l=c[a+8>>2]|0;m=c[d>>2]|0;n=c[d+8>>2]|0;o=(c[a+4>>2]|0)-(c[a>>2]|0)+1|0;p=(c[d+4>>2]|0)-(c[d>>2]|0)+1|0;if((o|0)>(p|0)){q=o}else{q=p}r=q;r=o;q=(c[a+12>>2]|0)-(c[a+8>>2]|0)+1|0;s=(c[d+12>>2]|0)-(c[d+8>>2]|0)+1|0;if((q|0)>(s|0)){t=q}else{t=s}u=t;u=q;if((P(o-p|0)|0)>(((r|0)/16|0)+1|0)){v=1806}else{if((P(q-s|0)|0)>(((u|0)/16|0)+1|0)){v=1806}}if((v|0)==1806){j=j+1|0}do{if((c[a+64>>2]|0)>0){if((c[d+64>>2]|0)<=0){break}do{if((c[a+12>>2]<<1|0)>((c[a+60>>2]|0)+(c[a+64>>2]|0)|0)){if((c[d+12>>2]<<1|0)>=((c[d+60>>2]|0)+(c[d+64>>2]|0)|0)){break}j=j+128|0}}while(0);do{if((c[a+8>>2]<<1|0)>((c[a+52>>2]|0)+(c[a+56>>2]|0)|0)){if((c[d+8>>2]<<1|0)>=((c[d+52>>2]|0)+(c[d+56>>2]|0)|0)){break}j=j+128|0}}while(0)}}while(0);d=(r|0)/16|0;if((r|0)<17){d=1}a=(u|0)/32|0;if((u|0)<33){a=1}t=0;while(1){if((t|0)>=(u|0)){break}w=0;while(1){if((w|0)>=(r|0)){break}x=(d8(h,k+((aa(w,o)|0)/(r|0)|0)|0,l+((aa(t,q)|0)/(u|0)|0)|0)|0)<(e|0);y=x?1:0;x=8;z=(d8(b,m+((aa(w,p)|0)/(r|0)|0)|0,n+((aa(t,s)|0)/(u|0)|0)|0)|0)<(e|0);A=8;if((y|0)==((z?1:0)|0)){i=i+16|0}else{y=1;j=j+4|0;y=-1;x=-1;while(1){if((x|0)>=2){break}A=-1;while(1){if((A|0)>=2){break}if((x|0)!=0){v=1832}else{if((A|0)!=0){v=1832}}if((v|0)==1832){v=0;z=(d8(h,k+((aa(w,o)|0)/(r|0)|0)+(aa(x,((o|0)/32|0)+1|0)|0)|0,l+((aa(t,q)|0)/(u|0)|0)+(aa(A,((q|0)/32|0)+1|0)|0)|0)|0)<(e|0);B=(d8(b,m+((aa(w,p)|0)/(r|0)|0)+(aa(x,((p|0)/32|0)+1|0)|0)|0,n+((aa(t,s)|0)/(u|0)|0)+(aa(A,((s|0)/32|0)+1|0)|0)|0)|0)<(e|0);if(((z?1:0)|0)!=((B?1:0)|0)){y=y+1|0}}A=A+1|0}x=x+1|0}if((y|0)>0){j=j+(y<<4)|0}}w=w+d|0}t=t+a|0}if((i+j|0)!=0){g=(j*100|0|0)/(i+j|0)|0}else{g=99}g=g+(((P((aa(o,s)|0)-(aa(p,q)|0)|0)|0)*10|0|0)/(aa(q,s)|0)|0)|0;if((g|0)>100){g=100}if((f|0)==0){C=g;return C|0}C=g;return C|0}function b1(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=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;f=i;i=i+200|0;g=f|0;h=b;b=e;e=1e3;j=1e3;k=57344;if((c[b+48>>2]|0)==(b+60|0)){if(!1){l=1858}}else{if(!0){l=1858}}if((l|0)==1858){o=c[(c[b+48>>2]|0)+8>>2]|0;if((c[b+37072>>2]|0)!=0){p=c[n>>2]|0;q=c[h>>2]|0;r=c[h+8>>2]|0;au(p|0,14024,(s=i,i=i+16|0,c[s>>2]=q,c[s+8>>2]=r,s)|0)|0;i=s}if((cy(b+48|0)|0)==0){while(1){if((c[(c[b+72>>2]|0)+(c[b+80>>2]<<2)>>2]|0)!=0){t=(c[(c[b+72>>2]|0)+(c[b+80>>2]<<2)>>2]|0)!=(b+60|0)}else{t=0}if(!t){break}r=c[(c[(c[b+72>>2]|0)+(c[b+80>>2]<<2)>>2]|0)+8>>2]|0;e=b0(c[r+68>>2]|0,r,c[h+68>>2]|0,h,c[b+37052>>2]|0,c[b+37072>>2]|0)|0;if((e|0)<=(j|0)){j=e;o=r;do{if((j|0)<100){if((100-j|0)<(c[b+37092>>2]|0)){break}r=0;while(1){if((r|0)>=(c[o+72>>2]|0)){break}q=(aa(100-j|0,c[o+116+(r<<2)>>2]|0)|0)/100|0;if((c[o+156+(r<<2)>>2]|0)!=0){p=h;u=c[o+156+(r<<2)>>2]|0;v=q;dx(p,u,v)|0}else{v=h;u=c[o+76+(r<<2)>>2]|0;p=q;dy(v,u,p)|0}r=r+1|0}if((c[o+72>>2]|0)!=0){k=c[o+76>>2]|0}if((c[b+37072>>2]|0)!=0){r=c[n>>2]|0;p=j;do{if((c[o+36>>2]|0)>32){if((c[o+36>>2]|0)>=127){l=1881;break}w=(c[o+36>>2]&255)<<24>>24}else{l=1881}}while(0);if((l|0)==1881){l=0;w=46}u=c[o+36>>2]|0;if((c[o+156>>2]|0)!=0){x=c[o+156>>2]|0}else{x=27648}v=c[o+116>>2]|0;au(r|0,13728,(s=i,i=i+40|0,c[s>>2]=p,c[s+8>>2]=w,c[s+16>>2]=u,c[s+24>>2]=x,c[s+32>>2]=v,s)|0)|0;i=s}}}while(0);if((e|0)<=0){if((c[o+72>>2]|0)!=0){if((c[o+156>>2]|0)!=0){l=1892;break}}if((c[o+36>>2]|0)>=128){l=1892;break}if((aC(12320,c[o+36>>2]|0)|0)==0){l=1892;break}}}c[(c[b+72>>2]|0)+(c[b+80>>2]<<2)>>2]=c[c[(c[b+72>>2]|0)+(c[b+80>>2]<<2)>>2]>>2]}cz(b+48|0)}}if((c[b+37060>>2]&128|0)==0){y=k;i=f;return y|0}if((k|0)!=57344){y=k;i=f;return y|0}o=0;b$(h,b);au(c[n>>2]|0,11688,(s=i,i=i+1|0,i=i+7&-8,c[s>>2]=0,s)|0)|0;i=s;a[g|0]=0;ax(g|0,200,c[m>>2]|0)|0;e=eA(g|0)|0;if((c[b+37072>>2]|0)!=0){x=c[n>>2]|0;w=e;au(x|0,11184,(s=i,i=i+8|0,c[s>>2]=w,s)|0)|0;i=s;z=0;while(1){if((z|0)>=(e|0)){break}au(c[n>>2]|0,11e3,(s=i,i=i+8|0,c[s>>2]=d[g+z|0]|0,s)|0)|0;i=s;z=z+1|0}au(c[n>>2]|0,10768,(s=i,i=i+1|0,i=i+7&-8,c[s>>2]=0,s)|0)|0;i=s}z=0;while(1){if((z|0)>=(e|0)){break}if((d[g+z|0]|0|0)<32){l=1909;break}z=z+1|0}w=d[g+z|0]|0;if((w|0)==1){z=0;x=b+37060|0;c[x>>2]=c[x>>2]&-129}x=z;e=x;a[g+x|0]=0;do{if((e|0)==1){if((a[g|0]&128|0)!=0){break}k=d[g|0]|0;o=1}}while(0);do{if((e|0)>1){if((e|0)>=7){break}x=1<<7-e;j=255&~((1<<8-e)-1);z=1;while(1){if((z|0)>=(e|0)){break}if((a[g+z|0]&192|0)!=128){l=1922;break}z=z+1|0}do{if((z|0)==(e|0)){if(((d[g|0]|0)&(x|j)|0)!=(j|0)){break}o=1;k=(d[g|0]|0)&x-1;z=1;while(1){if((z|0)>=(e|0)){break}k=k<<6;k=k|a[g+z|0]&63;z=z+1|0}}}while(0)}}while(0);if((e|0)>0){if((o|0)==1){e=h;z=k;dy(e,z,100)|0}if((o|0)==0){k=95;o=h;z=g|0;dx(o,z,100)|0}if((w|0)!=1){z=b+48|0;o=h;cu(z,o)|0}do{if((w|0)!=1){if((w|0)==27){break}o=h;z=b;b_(o,z)|0}}while(0);if((c[b+37072>>2]|0)!=0){b=c[n>>2]|0;do{if((k|0)>32){if((k|0)>=127){l=1947;break}A=(k&255)<<24>>24}else{l=1947}}while(0);if((l|0)==1947){A=46}l=k;h=g|0;au(b|0,10392,(s=i,i=i+24|0,c[s>>2]=A,c[s+8>>2]=l,c[s+16>>2]=h,s)|0)|0;i=s}}y=k;i=f;return y|0}function b2(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,Q=0,R=0,S=0;g=i;h=b;b=d;d=e;e=f;f=c[7036]|0;j=f+156|0;if((c[j>>2]|0)==0){c[j+12300>>2]=0;c[j+8204>>2]=0;c[j+4108>>2]=0;c[j+12>>2]=0;c[j+16396>>2]=c[a+4>>2];c[j+20492>>2]=0;c[j+28684>>2]=c[f+37056>>2];c[j+32780>>2]=0;a=j|0;c[a>>2]=(c[a>>2]|0)+1}a=c[j>>2]|0;if((e|0)<4){k=0;l=k;i=g;return l|0}m=0;o=0;if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){p=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{p=0}if(!p){break}q=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;do{if((c[q+36>>2]|0)!=57345){if((c[q+196>>2]|0)<=1){break}if((c[q+196>>2]|0)>=4){break}if((c[q+8>>2]|0)<(b|0)){break}if((c[q+12>>2]|0)>(b+e|0)){break}if((c[q>>2]|0)<(h|0)){break}if((c[q+4>>2]|0)>(h+d|0)){break}if((c[q+200>>2]|0)<=0){break}if((c[q+204>>2]|0)>=0){break}m=m+1|0;o=o+((c[q+12>>2]|0)-(c[q+8>>2]|0)+1)|0}}while(0);c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}if((m|0)==0){if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){r=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{r=0}if(!r){break}q=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;do{if((c[q+36>>2]|0)!=57345){if(((c[q+12>>2]|0)-(c[q+8>>2]|0)+1|0)<4){break}if((c[q+8>>2]|0)<(b|0)){break}if((c[q+12>>2]|0)>(b+e|0)){break}if((c[q>>2]|0)<(h|0)){break}if((c[q+4>>2]|0)>(h+d|0)){break}m=m+1|0;o=o+((c[q+12>>2]|0)-(c[q+8>>2]|0)+1)|0}}while(0);c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}}if((m|0)==0){k=0;l=k;i=g;return l|0}o=(o|0)/(m|0)|0;if((c[f+37072>>2]&16|0)!=0){r=c[n>>2]|0;p=h;s=b;t=d;u=e;v=m;w=o;au(r|0,16512,(x=i,i=i+48|0,c[x>>2]=p,c[x+8>>2]=s,c[x+16>>2]=t,c[x+24>>2]=u,c[x+32>>2]=v,c[x+40>>2]=w,x)|0)|0;i=x}if((o|0)<4){k=0;l=k;i=g;return l|0}w=b;v=w;u=w;w=b;while(1){if((w|0)>=(b+e|0)){break}t=b+e|0;m=0;if((c[f+37072>>2]&16|0)!=0){s=c[n>>2]|0;p=a;au(s|0,23608,(x=i,i=i+8|0,c[x>>2]=p,x)|0)|0;i=x}p=0;if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){y=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{y=0}if(!y){break}q=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;do{if((c[q+48>>2]|0)>0){z=2011}else{if((c[q+36>>2]|0)==57345){z=2011;break}if((c[j+4>>2]|0)!=0){s=aa(c[j+8>>2]|0,c[q>>2]|0)|0;A=(s|0)/(c[j+4>>2]|0)|0}else{A=0}do{if((c[q+8>>2]|0)>=(w+A|0)){if((c[q+12>>2]|0)>=(b+e|0)){break}if((c[q>>2]|0)<(h|0)){break}if((c[q+4>>2]|0)>=(h+d|0)){break}if(((c[q+4>>2]|0)-(c[q>>2]|0)+1|0)<=2){break}if((c[q+36>>2]|0)==57345){break}if((c[q+28>>2]|0)>1){break}if((((c[q+12>>2]|0)-(c[q+8>>2]|0)|0)*3|0|0)<=(o<<1|0)){break}if(((c[q+12>>2]|0)-(c[q+8>>2]|0)|0)>=(o*3|0|0)){break}if(((c[q+12>>2]|0)-(c[q+8>>2]|0)|0)<=4){break}if((c[q+8>>2]|0)<(t+A|0)){t=(c[q+8>>2]|0)-A|0;p=q}}}while(0)}}while(0);if((z|0)==2011){z=0}c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}if((p|0)==0){z=2033;break}if((t|0)>=(b+e|0)){z=2033;break}if((c[f+37072>>2]&16|0)!=0){s=c[n>>2]|0;r=c[p>>2]|0;B=c[p+8>>2]|0;C=(c[p+4>>2]|0)-(c[p>>2]|0)|0;D=(c[p+12>>2]|0)-(c[p+8>>2]|0)|0;au(s|0,16672,(x=i,i=i+32|0,c[x>>2]=r,c[x+8>>2]=B,c[x+16>>2]=C,c[x+24>>2]=D,x)|0)|0;i=x}c[j+16396+(a<<2)>>2]=h+d-1;c[j+20492+(a<<2)>>2]=h;D=t;C=D;B=D;D=t+o|0;r=t+(o<<1)|0;m=0;if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){E=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{E=0}if(!E){break}q=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;L2759:do{if((c[q+48>>2]|0)>0){z=2043}else{if((c[q+36>>2]|0)==57345){z=2043;break}do{if((c[q+8>>2]|0)>=(b|0)){if((c[q+12>>2]|0)>=(b+e|0)){break}if((c[q>>2]|0)<(h|0)){break}if((c[q+4>>2]|0)>=(h+d|0)){break}if((c[j+4>>2]|0)!=0){s=aa(c[j+8>>2]|0,c[q>>2]|0)|0;A=(s|0)/(c[j+4>>2]|0)|0}else{A=0}do{if((c[q+8>>2]|0)>=(w+A|0)){if((c[q+12>>2]|0)>(w+A+(o*3|0)|0)){break}if((c[q+12>>2]|0)>(B+((o<<1|0)/3|0)|0)){break}if((c[j+20492+(a<<2)>>2]|0)<(c[q+4>>2]|0)){c[j+20492+(a<<2)>>2]=c[q+4>>2]}if((c[j+16396+(a<<2)>>2]|0)>(c[q>>2]|0)){c[j+16396+(a<<2)>>2]=c[q>>2]}}}while(0);do{if(((c[q+12>>2]|0)-(c[q+8>>2]|0)+1|0)<=(o<<1|0)){if((c[q+8>>2]|0)<(w+A|0)){break}if((c[q+12>>2]|0)>=(t+A+((o|0)/4|0)|0)){break}if((c[q+8>>2]|0)>=(D+A|0)){break}D=(c[q+8>>2]|0)-A|0}}while(0);do{if((c[q+8>>2]|0)>=(w+A|0)){if((((c[q+12>>2]|0)-(c[q+8>>2]|0)+1|0)*3|0|0)<=(o<<1|0)){break}if(((c[q+12>>2]|0)-(c[q+8>>2]|0)+1|0)>=(o*3|0|0)){break}if(((c[q+12>>2]|0)-(c[q+8>>2]|0)+1|0)<=3){break}if((c[q+8>>2]|0)<(t-((o|0)/4|0)|0)){break}if((c[q+8>>2]|0)>(t+A+((o*9|0|0)/8|0)|0)){break}if((c[q+12>>2]|0)>(t+A+(o*3|0)|0)){break}if((c[q+12>>2]|0)<(t+A+((o|0)/2|0)|0)){break}if(((c[q+8>>2]|0)+(c[q+12>>2]|0)|0)>((c[p+8>>2]|0)+o<<1|0)){break}m=m+1|0;if((c[q+8>>2]|0)>(C+A|0)){C=(c[q+8>>2]|0)-A|0;if((c[f+37072>>2]&16|0)!=0){s=c[n>>2]|0;F=C;G=C-t|0;H=A;I=c[q>>2]|0;J=c[q+8>>2]|0;au(s|0,12248,(x=i,i=i+40|0,c[x>>2]=F,c[x+8>>2]=G,c[x+16>>2]=H,c[x+24>>2]=I,c[x+32>>2]=J,x)|0)|0;i=x}}do{if((c[q+12>>2]|0)>(B+A|0)){if((o|0)<=6){if((c[q+12>>2]|0)>=(r+o|0)){break}}B=(c[q+12>>2]|0)-A|0;if((c[f+37072>>2]&16|0)!=0){J=c[n>>2]|0;I=B;H=B-t|0;G=A;F=c[q>>2]|0;s=c[q+8>>2]|0;au(J|0,9512,(x=i,i=i+40|0,c[x>>2]=I,c[x+8>>2]=H,c[x+16>>2]=G,c[x+24>>2]=F,c[x+32>>2]=s,x)|0)|0;i=x}}}while(0);do{if((c[q+12>>2]|0)<(r+A|0)){if((c[q+12>>2]<<1|0)>(C+B+A|0)){if((C|0)<=(t|0)){z=2087}}else{z=2087}if((z|0)==2087){z=0;if((c[q+12>>2]<<2|0)<=(t+(B*3|0)+A|0)){break}}do{if(((du(c[q>>2]|0,c[q+4>>2]|0,(c[q+12>>2]|0)+1|0,(c[q+12>>2]|0)+((o|0)/2|0)|0,c[q+68>>2]|0,c[f+37052>>2]|0,1)|0)<<24>>24|0)==0){z=2091}else{if(((du(c[q>>2]|0,c[q+4>>2]|0,(c[q+12>>2]|0)+((o|0)/2|0)|0,(c[q+12>>2]|0)+((o|0)/2|0)|0,c[q+68>>2]|0,c[f+37052>>2]|0,1)|0)<<24>>24|0)==1){z=2091;break}if((dv(c[q>>2]|0,c[q+4>>2]|0,((c[q+8>>2]|0)+(c[q+12>>2]|0)|0)/2|0,((c[q+8>>2]|0)+(c[q+12>>2]|0)|0)/2|0,c[q+68>>2]|0,c[f+37052>>2]|0)|0)>2){z=2091}}}while(0);if((z|0)==2091){z=0;r=(c[q+12>>2]|0)-A|0;if((c[f+37072>>2]&16|0)!=0){s=c[n>>2]|0;F=r;G=r-t|0;H=A;I=c[q>>2]|0;J=c[q+8>>2]|0;au(s|0,8496,(x=i,i=i+40|0,c[x>>2]=F,c[x+8>>2]=G,c[x+16>>2]=H,c[x+24>>2]=I,c[x+32>>2]=J,x)|0)|0;i=x}}}}while(0);do{if(((c[q+8>>2]|0)+(c[q+12>>2]|0)|0)>(r+A<<1|0)){if((c[q+12>>2]|0)>=(B+A-((o|0)/4|0)-1|0)){break}if((c[q+12>>2]|0)<((C+B|0)/2|0|0)){break}if((C|0)<=(t|0)){break}r=(c[q+12>>2]|0)-A|0;if((c[f+37072>>2]&16|0)!=0){J=c[n>>2]|0;I=r;H=r-t|0;G=A;F=c[q>>2]|0;s=c[q+8>>2]|0;au(J|0,7384,(x=i,i=i+40|0,c[x>>2]=I,c[x+8>>2]=H,c[x+16>>2]=G,c[x+24>>2]=F,c[x+32>>2]=s,x)|0)|0;i=x}}}while(0)}}while(0);break L2759}}while(0)}}while(0);if((z|0)==2043){z=0}c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}do{if((r|0)==(B|0)){if((a|0)<=1){break}if((r-t|0)==((c[j+8204+(a-1<<2)>>2]|0)-(c[j+12+(a-1<<2)>>2]|0)|0)){B=t+(c[j+12300+(a-1<<2)>>2]|0)-(c[j+12+(a-1<<2)>>2]|0)|0}}}while(0);do{if((t|0)==(C|0)){if((a|0)<=1){break}if((r-t|0)==((c[j+8204+(a-1<<2)>>2]|0)-(c[j+12+(a-1<<2)>>2]|0)|0)){C=t+(c[j+4108+(a-1<<2)>>2]|0)-(c[j+12+(a-1<<2)>>2]|0)|0}}}while(0);if((c[f+37072>>2]&16|0)!=0){p=c[n>>2]|0;s=a;F=w;G=t;H=C-t|0;I=r-t|0;J=B-t|0;K=c[j+16396+(a<<2)>>2]|0;L=(c[j+20492+(a<<2)>>2]|0)-(c[j+16396+(a<<2)>>2]|0)|0;M=o;N=m;au(p|0,6312,(x=i,i=i+80|0,c[x>>2]=s,c[x+8>>2]=F,c[x+16>>2]=G,c[x+24>>2]=H,c[x+32>>2]=I,c[x+40>>2]=J,c[x+48>>2]=K,c[x+56>>2]=L,c[x+64>>2]=M,c[x+72>>2]=N,x)|0)|0;i=x}if((r|0)==(t|0)){z=2119;break}m=0;N=0;M=0;L=0;K=0;J=0;I=0;H=0;G=0;if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){O=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{O=0}if(!O){break}q=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;do{if((c[q+48>>2]|0)>0){z=2127}else{if((c[q+36>>2]|0)==57345){z=2127;break}if((c[j+4>>2]|0)!=0){F=aa(c[j+8>>2]|0,c[q>>2]|0)|0;A=(F|0)/(c[j+4>>2]|0)|0}else{A=0}do{if((c[q+8>>2]|0)>=(w+A|0)){if((c[q+12>>2]|0)>=(b+e|0)){break}if((c[q>>2]|0)<(h|0)){break}if((c[q+4>>2]|0)>=(h+d|0)){break}if((c[q+36>>2]|0)==57345){break}if(((c[q+12>>2]|0)-(c[q+8>>2]|0)<<1|0)<=(o|0)){break}if(((c[q+12>>2]|0)-(c[q+8>>2]|0)|0)>=(o<<2|0)){break}do{if(((c[q+8>>2]|0)-A|0)>=(t-((o|0)/4|0)|0)){if(((c[q+8>>2]|0)-A|0)>(C+((o|0)/4|0)|0)){break}if(((c[q+12>>2]|0)-A|0)<(r-((o|0)/4|0)|0)){break}if(((c[q+12>>2]|0)-A|0)>(B+((o|0)/4|0)|0)){break}F=P((c[q+8>>2]|0)-A-t|0)|0;if((F|0)<=(P((c[q+8>>2]|0)-A-C|0)|0)){K=K+1|0;G=G+((c[q+8>>2]|0)-A)|0}else{L=L+1|0;H=H+((c[q+8>>2]|0)-A)|0}F=P((c[q+12>>2]|0)-A-r|0)|0;if((F|0)<(P((c[q+12>>2]|0)-A-B|0)|0)){M=M+1|0;I=I+((c[q+12>>2]|0)-A)|0}else{N=N+1|0;J=J+((c[q+12>>2]|0)-A)|0}if((c[q+4>>2]|0)>(c[j+20492+(a<<2)>>2]|0)){c[j+20492+(a<<2)>>2]=c[q+4>>2]}if((c[q>>2]|0)<(c[j+16396+(a<<2)>>2]|0)){c[j+16396+(a<<2)>>2]=c[q>>2]}}}while(0)}}while(0)}}while(0);if((z|0)==2127){z=0}c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}if((K|0)!=0){t=(G+((K|0)/2|0)|0)/(K|0)|0}if((L|0)!=0){C=(H+((L|0)/2|0)|0)/(L|0)|0}if((M|0)!=0){r=(I+M-1|0)/(M|0)|0}if((N|0)!=0){B=(J+N-1|0)/(N|0)|0}if((cy(f+84|0)|0)==0){while(1){if((c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=0){Q=(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)!=(f+96|0)}else{Q=0}if(!Q){break}q=c[(c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]|0)+8>>2]|0;do{if((c[q+48>>2]|0)>0){z=2172}else{if((c[q+36>>2]|0)==57345){z=2172;break}if((c[j+4>>2]|0)!=0){F=aa(c[j+8>>2]|0,c[q>>2]|0)|0;A=(F|0)/(c[j+4>>2]|0)|0}else{A=0}do{if((c[q>>2]|0)>=(h|0)){if((c[q+4>>2]|0)>=(h+d|0)){break}if(((c[q+12>>2]|0)-(c[q+8>>2]|0)|0)>(((B-t|0)*3|0|0)/2|0|0)){break}if((c[q+36>>2]|0)==57345){break}if((c[q+8>>2]|0)<(t-((B-t+4|0)/4|0)|0)){break}if((c[q+8>>2]|0)>(B+2|0)){break}if((c[q+12>>2]|0)<(t-1|0)){break}if((c[q+12>>2]|0)>(B+((B-t+4|0)/4|0)|0)){break}if((c[q+4>>2]|0)>(c[j+20492+(a<<2)>>2]|0)){c[j+20492+(a<<2)>>2]=c[q+4>>2]}if((c[q>>2]|0)<(c[j+16396+(a<<2)>>2]|0)){c[j+16396+(a<<2)>>2]=c[q>>2]}}}while(0)}}while(0);if((z|0)==2172){z=0}c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]=c[c[(c[f+108>>2]|0)+(c[f+116>>2]<<2)>>2]>>2]}cz(f+84|0)}if((c[f+37072>>2]&16|0)!=0){J=c[n>>2]|0;I=a;H=w;G=t;F=C-t|0;s=r-t|0;p=B-t|0;R=c[j+16396+(a<<2)>>2]|0;S=(c[j+20492+(a<<2)>>2]|0)-(c[j+16396+(a<<2)>>2]|0)|0;au(J|0,5264,(x=i,i=i+64|0,c[x>>2]=I,c[x+8>>2]=H,c[x+16>>2]=G,c[x+24>>2]=F,c[x+32>>2]=s,c[x+40>>2]=p,c[x+48>>2]=R,c[x+56>>2]=S,x)|0)|0;i=x}if((B|0)==(t|0)){if((r+B|0)>(w<<1|0)){w=(B+r|0)/2|0}}else{m=0;c[j+24588+(a<<2)>>2]=100;if(((C-t+1|0)*5|0|0)<(r-C|0)){z=2200}else{if((C-t|0)<2){z=2200}}if((z|0)==2200){z=0;m=m|1}if(((B-r+1|0)*5|0|0)<(r-C|0)){z=2203}else{if((B-r|0)<1){z=2203}}if((z|0)==2203){z=0;m=m|2}if((m&1|0)!=0){c[j+24588+(a<<2)>>2]=((c[j+24588+(a<<2)>>2]|0)*75|0|0)/100|0}if((m&2|0)!=0){c[j+24588+(a<<2)>>2]=((c[j+24588+(a<<2)>>2]|0)*75|0|0)/100|0}do{if((m|0)>0){if((c[f+37072>>2]|0)==0){break}S=c[n>>2]|0;R=a;p=c[j+24588+(a<<2)>>2]|0;s=w;F=t;G=C-t|0;H=r-t|0;I=B-t|0;au(S|0,4448,(x=i,i=i+56|0,c[x>>2]=R,c[x+8>>2]=p,c[x+16>>2]=s,c[x+24>>2]=F,c[x+32>>2]=G,c[x+40>>2]=H,c[x+48>>2]=I,x)|0)|0;i=x;I=c[n>>2]|0;H=a;G=w;F=K;s=L;p=M;R=N;au(I|0,25048,(x=i,i=i+48|0,c[x>>2]=H,c[x+8>>2]=G,c[x+16>>2]=F,c[x+24>>2]=s,c[x+32>>2]=p,c[x+40>>2]=R,x)|0)|0;i=x;if((m|0)==3){R=c[n>>2]|0;p=D-t|0;au(R|0,24496,(x=i,i=i+8|0,c[x>>2]=p,x)|0)|0;i=x}if((m|0)==1){p=c[n>>2]|0;au(p|0,23648,(x=i,i=i+1|0,i=i+7&-8,c[x>>2]=0,x)|0)|0;i=x}if((m|0)==2){p=c[n>>2]|0;au(p|0,22800,(x=i,i=i+1|0,i=i+7&-8,c[x>>2]=0,x)|0)|0;i=x}}}while(0);if((D|0)<(t-(B-t)|0)){D=0}do{if((m|0)==3){if((B-t|0)<(o|0)){break}m=0;C=t+((o|0)/5|0)+1|0;B=r+((o|0)/5|0)+1|0}}while(0);do{if((m|0)==3){if((D|0)<=0){break}if((D|0)>=(t|0)){break}if((D|0)<=(u|0)){break}m=2;t=D}}while(0);do{if((m|0)==1){if((C-((r-C|0)/4|0)|0)<=(v|0)){break}if((t-u|0)<(B-t|0)){t=(C+u|0)/2|0}else{t=C-((r-C|0)/4|0)|0}}}while(0);if((m|0)==3){C=t+((r-t|0)/4|0)+1|0}if((C-t|0)<2){C=t+2|0}if((m&2|0)!=0){B=r+((B-t|0)/4|0)+1|0}do{if((m|0)>0){if((c[f+37072>>2]&16|0)==0){break}D=c[n>>2]|0;N=a;M=m;L=w;K=t;p=C-t|0;R=r-t|0;s=B-t|0;F=o;au(D|0,20984,(x=i,i=i+64|0,c[x>>2]=N,c[x+8>>2]=M,c[x+16>>2]=L,c[x+24>>2]=K,c[x+32>>2]=p,c[x+40>>2]=R,c[x+48>>2]=s,c[x+56>>2]=F,x)|0)|0;i=x}}while(0);c[j+12300+(a<<2)>>2]=B;c[j+8204+(a<<2)>>2]=r;c[j+4108+(a<<2)>>2]=C;c[j+12+(a<<2)>>2]=t;c[j+28684+(a<<2)>>2]=c[f+37056>>2];c[j+32780+(a<<2)>>2]=0;if((c[f+37072>>2]&16|0)!=0){F=c[n>>2]|0;s=a;R=w;p=t;K=C-t|0;L=r-t|0;M=B-t|0;N=c[j+16396+(a<<2)>>2]|0;D=(c[j+20492+(a<<2)>>2]|0)-(c[j+16396+(a<<2)>>2]|0)|0;G=c[j+24588+(a<<2)>>2]|0;au(F|0,20176,(x=i,i=i+72|0,c[x>>2]=s,c[x+8>>2]=R,c[x+16>>2]=p,c[x+24>>2]=K,c[x+32>>2]=L,c[x+40>>2]=M,c[x+48>>2]=N,c[x+56>>2]=D,c[x+64>>2]=G,x)|0)|0;i=x}do{if((a|0)<1024){if((B-t|0)<=4){break}a=a+1|0}}while(0);if((a|0)>=1024){z=2248;break}if((r+B|0)>(w<<1|0)){w=(r+B|0)/2|0}if((r|0)>(v|0)){v=r}else{r=b}if((B|0)>(u|0)){u=B}else{B=b}}w=w+1|0}if((z|0)!=2033)if((z|0)!=2119)if((z|0)==2248){au(c[n>>2]|0,19480,(x=i,i=i+1|0,i=i+7&-8,c[x>>2]=0,x)|0)|0;i=x}c[j>>2]=a;if((c[f+37072>>2]|0)!=0){f=c[n>>2]|0;a=(c[j>>2]|0)-1|0;au(f|0,18808,(x=i,i=i+8|0,c[x>>2]=a,x)|0)|0;i=x}k=0;l=k;i=g;return l|0}function b3(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;h=i;j=a;a=b;b=d;d=e;e=f;f=g;g=c[7036]|0;do{if((d|0)>0){if((e|0)<=0){break}do{if((b+e|0)<((c[j+8>>2]|0)/128|0|0)){if((b|0)!=0){break}k=0;l=k;i=h;return l|0}}while(0);do{if((b|0)>((c[j+8>>2]|0)-((c[j+8>>2]|0)/128|0)|0)){if((b+e|0)!=(c[j+8>>2]|0)){break}k=0;l=k;i=h;return l|0}}while(0);if((f|0)>1e3){k=-1;l=k;i=h;return l|0}if((c[g+37072>>2]|0)!=0){m=c[n>>2]|0;o=f;au(m|0,18088,(p=i,i=i+8|0,c[p>>2]=o,p)|0)|0;i=p}o=0;m=0;q=0;r=a+d-1|0;s=b+e-1|0;t=a;u=b;if((cy(g+84|0)|0)==0){while(1){if((c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=0){v=(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=(g+96|0)}else{v=0}if(!v){break}w=c[(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)+8>>2]|0;do{if((c[w+8>>2]|0)>=(b|0)){if((c[w+12>>2]|0)>=(b+e|0)){break}if((c[w>>2]|0)<(a|0)){break}if((c[w+4>>2]|0)>=(a+d|0)){break}if((c[w+4>>2]|0)>(t|0)){t=c[w+4>>2]|0}if((c[w>>2]|0)<(r|0)){r=c[w>>2]|0}if((c[w+12>>2]|0)>(u|0)){u=c[w+12>>2]|0}if((c[w+8>>2]|0)<(s|0)){s=c[w+8>>2]|0}if((c[w+36>>2]|0)!=57345){if(((c[w+12>>2]|0)-(c[w+8>>2]|0)|0)>4){o=o+1|0;q=q+((c[w+4>>2]|0)-(c[w>>2]|0)+1)|0;m=m+((c[w+12>>2]|0)-(c[w+8>>2]|0)+1)|0}}}}while(0);c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]=c[c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]>>2]}cz(g+84|0)}a=r;d=t-r+1|0;b=s;e=u-s+1|0;do{if((o|0)!=0){if((d|0)<=0){break}if((e|0)<=0){break}q=(q|0)/(o|0)|0;m=(m|0)/(o|0)|0;do{if((f|0)<8){x=0;y=0;u=0;s=0;x=0;x=0;t=0;r=0;if((cy(g+84|0)|0)==0){while(1){if((c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=0){z=(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=(g+96|0)}else{z=0}if(!z){break}A=c[(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[A+36>>2]|0)!=57345){do{if((c[A+8>>2]|0)>=(b|0)){if((c[A+12>>2]|0)>=(b+e|0)){break}if((c[A>>2]|0)<(a|0)){break}if((c[A+4>>2]|0)>=(a+d|0)){break}if(((c[A+12>>2]|0)-(c[A+8>>2]|0)|0)<=((m|0)/2|0|0)){break}y=b+e-1|0;x=a+d-1|0;if((cy(g+84|0)|0)==0){while(1){if((c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=0){B=(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=(g+96|0)}else{B=0}if(!B){break}w=c[(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)+8>>2]|0;if((w|0)!=(A|0)){do{if((c[w+8>>2]|0)>=(b|0)){if((c[w+12>>2]|0)>=(b+e|0)){break}do{if((c[w>>2]|0)>=(a|0)){if((c[w+4>>2]|0)>=(a+d|0)){break}if((c[w+36>>2]|0)!=57345){if(((c[w+12>>2]|0)-(c[w+8>>2]|0)|0)>((m|0)/2|0|0)){C=c[w>>2]|0;D=c[w+4>>2]|0;E=c[w+8>>2]|0;do{if((c[w+12>>2]|0)>(c[A+12>>2]|0)){if((E|0)>=(y|0)){break}y=E-1|0}}while(0);do{if((D|0)>(c[A+4>>2]|0)){if((C|0)>=(x|0)){break}x=C-1|0}}while(0)}}}}while(0)}}while(0)}c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]=c[c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]>>2]}cz(g+84|0)}if((y-(c[A+12>>2]|0)|0)>(u|0)){u=y-(c[A+12>>2]|0)|0;s=(y+(c[A+12>>2]|0)|0)/2|0}if((x-(c[A+4>>2]|0)|0)>(t|0)){t=x-(c[A+4>>2]|0)|0;r=(x+(c[A+4>>2]|0)|0)/2|0}}}while(0)}c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]=c[c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]>>2]}cz(g+84|0)}o=0;if((t|0)>0){F=2358}else{if((u|0)>0){F=2358}}if((F|0)==2358){do{if((t|0)>(q|0)){if((t|0)<=(u<<1|0)){F=2364;break}if((e|0)<=(t*5|0|0)){if((t|0)<=(u*10|0|0)){F=2364;break}if((u|0)<=0){F=2364;break}}o=1}else{F=2364}}while(0);if((F|0)==2364){do{if((d|0)>(u*5|0|0)){if((u|0)<=(m|0)){break}o=2}}while(0)}}if((cy(g+84|0)|0)==0){L3208:while(1){if((c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=0){G=(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)!=(g+96|0)}else{G=0}if(!G){break}A=c[(c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[A+36>>2]|0)==57345){do{if((c[A+8>>2]|0)>=(b|0)){if((c[A+12>>2]|0)>=(b+e|0)){break}if((c[A>>2]|0)<(a|0)){break}if((c[A+4>>2]|0)>=(a+d|0)){break}if(((c[A+4>>2]|0)-(c[A>>2]|0)+4|0)>(d|0)){if(((c[A+12>>2]|0)+4|0)<(b+e|0)){F=2381;break L3208}}if(((c[A+4>>2]|0)-(c[A>>2]|0)+4|0)>(d|0)){if(((c[A+8>>2]|0)-4|0)>(b|0)){F=2384;break L3208}}if(((c[A+12>>2]|0)-(c[A+8>>2]|0)+4|0)>(e|0)){if(((c[A+4>>2]|0)+4|0)<(a+d|0)){F=2387;break L3208}}if(((c[A+12>>2]|0)-(c[A+8>>2]|0)+4|0)>(e|0)){if(((c[A>>2]|0)-4|0)>(a|0)){F=2390;break L3208}}}}while(0)}c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]=c[c[(c[g+108>>2]|0)+(c[g+116>>2]<<2)>>2]>>2]}if((F|0)==2381){u=1;s=(c[A+12>>2]|0)+1|0;o=2}else if((F|0)==2384){u=1;s=(c[A+8>>2]|0)-1|0;o=2}else if((F|0)==2387){t=1;r=(c[A+4>>2]|0)+1|0;o=1}else if((F|0)==2390){t=1;r=(c[A>>2]|0)-1|0;o=1}cz(g+84|0)}if((c[g+37072>>2]|0)!=0){x=c[n>>2]|0;y=o;au(x|0,17712,(p=i,i=i+8|0,c[p>>2]=y,p)|0)|0;i=p}do{if((c[g+37072>>2]|0)!=0){if((o|0)==0){break}y=c[n>>2]|0;if((o|0)!=0){H=(o|0)==1?17024:16728}else{H=16296}x=r;C=s;D=t;E=u;au(y|0,17360,(p=i,i=i+40|0,c[p>>2]=H,c[p+8>>2]=x,c[p+16>>2]=C,c[p+24>>2]=D,c[p+32>>2]=E,p)|0)|0;i=p}}while(0);if((o|0)==1){E=j;D=a;C=b;x=r-a+1|0;y=e;I=f+1|0;b3(E,D,C,x,y,I)|0;k=b3(j,r,b,a+d-r+1|0,e,f+1|0)|0;l=k;i=h;return l|0}if((o|0)!=2){break}I=j;y=a;x=b;C=d;D=s-b+1|0;E=f+1|0;b3(I,y,x,C,D,E)|0;k=b3(j,a,s,d,b+e-s+1|0,f+1|0)|0;l=k;i=h;return l|0}}while(0);if((c[g+37072>>2]|0)!=0){if((d|0)<5){F=2412}else{if((e|0)<7){F=2412}}if((F|0)==2412){E=c[n>>2]|0;au(E|0,15880,(p=i,i=i+1|0,i=i+7&-8,c[p>>2]=0,p)|0)|0;i=p}}do{if((d|0)>=5){if((e|0)<7){break}if((c[g+37072>>2]|0)!=0){E=c[n>>2]|0;D=a;C=b;x=d;y=e;au(E|0,15608,(p=i,i=i+32|0,c[p>>2]=D,c[p+8>>2]=C,c[p+16>>2]=x,c[p+24>>2]=y,p)|0)|0;i=p}if((c[g+28>>2]|0)!=0){o=0;while(1){if((o|0)>=(d|0)){break}d9(g+28|0,a+o|0,b,255,16);o=o+1|0}o=0;while(1){if((o|0)>=(d|0)){break}d9(g+28|0,a+o|0,b+e-1|0,255,16);o=o+1|0}o=0;while(1){if((o|0)>=(e|0)){break}d9(g+28|0,a,b+o|0,255,16);o=o+1|0}o=0;while(1){if((o|0)>=(e|0)){break}d9(g+28|0,a+d-1|0,b+o|0,255,16);o=o+1|0}}k=b2(j,a|0,b|0,d|0,e|0)|0;l=k;i=h;return l|0}}while(0);k=0;l=k;i=h;return l|0}}while(0);k=0;l=k;i=h;return l|0}}while(0);k=0;l=k;i=h;return l|0}function b4(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0.0,z=0.0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;b=i;i=i+64|0;d=b|0;e=b+16|0;f=b+32|0;g=b+48|0;h=a;a=0;j=0;k=0;l=d;eC(l|0,0,16)|0;l=e;eC(l|0,0,16)|0;l=f;eC(l|0,0,16)|0;l=g;c[l>>2]=c[94];c[l+4>>2]=c[95];c[l+8>>2]=c[96];c[l+12>>2]=c[97];a=1024;j=0;l=0;while(1){if((l|0)>=4){break}if((cy(h+84|0)|0)==0){while(1){if((c[(c[h+108>>2]|0)+(c[h+116>>2]<<2)>>2]|0)!=0){m=(c[(c[h+108>>2]|0)+(c[h+116>>2]<<2)>>2]|0)!=(h+96|0)}else{m=0}if(!m){break}o=c[(c[(c[h+108>>2]|0)+(c[h+116>>2]<<2)>>2]|0)+8>>2]|0;do{if((c[o+36>>2]|0)!=57345){if(((c[o+12>>2]|0)-(c[o+8>>2]|0)|0)<4){break}p=o;q=aa(c[h+8>>2]|0,c[h+8>>2]|0)|0;r=q+(aa(c[h+12>>2]|0,c[h+12>>2]|0)|0)|0;q=((c[o>>2]|0)+(c[o+4>>2]|0)|0)/2|0;s=((c[o+8>>2]|0)+(c[o+12>>2]|0)|0)/2|0;k=0;if((cy(h+84|0)|0)==0){while(1){if((c[(c[h+108>>2]|0)+(c[h+116>>2]<<2)>>2]|0)!=0){t=(c[(c[h+108>>2]|0)+(c[h+116>>2]<<2)>>2]|0)!=(h+96|0)}else{t=0}if(!t){break}u=c[(c[(c[h+108>>2]|0)+(c[h+116>>2]<<2)>>2]|0)+8>>2]|0;L3333:do{if((c[u+36>>2]|0)==57345){v=2466}else{if((u|0)==(o|0)){v=2466;break}w=((c[u>>2]|0)+(c[u+4>>2]|0)|0)/2|0;x=((c[u+8>>2]|0)+(c[u+12>>2]|0)|0)/2|0;if((w|0)<(q|0)){break}do{if((l|0)>0){y=+(w-q|0)*1.0*+(c[e+(l-1<<2)>>2]|0)+ +(aa(x-s|0,c[f+(l-1<<2)>>2]|0)|0);z=y*(+(w-q|0)*1.0*+(c[e+(l-1<<2)>>2]|0)+ +(aa(x-s|0,c[f+(l-1<<2)>>2]|0)|0))*1024.0;y=+((aa(w-q|0,w-q|0)|0)+(aa(x-s|0,x-s|0)|0)|0)*1.0;k=~~(z/(y*(+(c[e+(l-1<<2)>>2]|0)*1.0*+(c[e+(l-1<<2)>>2]|0)+ +(aa(c[f+(l-1<<2)>>2]|0,c[f+(l-1<<2)>>2]|0)|0))));if((1024-k|0)>(c[g+(l-1<<2)>>2]|0)){break L3333}else{break}}}while(0);if((((c[u+12>>2]|0)-(c[u+8>>2]|0)+4|0)*3|0|0)<((c[o+12>>2]|0)-(c[o+8>>2]|0)+1<<1|0)){break}if(((c[u+12>>2]|0)-(c[u+8>>2]|0)+1<<1|0)>(((c[o+12>>2]|0)-(c[o+8>>2]|0)+4|0)*3|0|0)){break}if(((c[u+4>>2]|0)-(c[u>>2]|0)+1<<1|0)>(((c[o+4>>2]|0)-(c[o>>2]|0)+4|0)*5|0|0)){break}if((((c[u+4>>2]|0)-(c[u>>2]|0)+4|0)*5|0|0)<((c[o+4>>2]|0)-(c[o>>2]|0)+1<<1|0)){break}do{if((w|0)<((c[o+4>>2]|0)-1|0)){if((w|0)<=((c[o>>2]|0)+1|0)){break}if((x|0)>=((c[o+12>>2]|0)-1|0)){break}if((x|0)<=((c[o+8>>2]|0)+1|0)){break}break L3333}}while(0);A=P(w-q|0)|0;if((A|0)>((c[o+4>>2]|0)-(c[o>>2]|0)+(c[u+4>>2]|0)-(c[u>>2]|0)+2<<1|0)){break}A=P(x-s|0)|0;if((A|0)>((c[o+4>>2]|0)-(c[o>>2]|0)+(c[u+4>>2]|0)-(c[u>>2]|0)+2|0)){break}B=(aa(x-s|0,x-s|0)|0)+(aa(w-q|0,w-q|0)|0)|0;if((B|0)<9){break}if((B|0)<(r|0)){r=B;p=u}}}while(0);if((v|0)==2466){v=0}c[(c[h+108>>2]|0)+(c[h+116>>2]<<2)>>2]=c[c[(c[h+108>>2]|0)+(c[h+116>>2]<<2)>>2]>>2]}cz(h+84|0)}if((p|0)==(o|0)){break}u=p;B=r;w=((c[u>>2]|0)+(c[u+4>>2]|0)|0)/2|0;x=((c[u+8>>2]|0)+(c[u+12>>2]|0)|0)/2|0;q=((c[o>>2]|0)+(c[o+4>>2]|0)|0)/2|0;s=((c[o+8>>2]|0)+(c[o+12>>2]|0)|0)/2|0;do{if((l|0)>0){A=(P(c[f+(l-1<<2)>>2]|0)|0)<<4;if((A|0)>=(c[e+(l-1<<2)>>2]|0)){break}A=P((c[o+12>>2]|0)-(c[o+8>>2]|0)-(c[u+12>>2]|0)+(c[u+8>>2]|0)|0)|0;if((A|0)>(((c[o+12>>2]|0)-(c[o+8>>2]|0)|0)/8|0|0)){if((P((c[o+12>>2]|0)-(c[u+12>>2]|0)|0)|0)<(P(x-s|0)|0)){s=c[o+12>>2]|0;x=c[u+12>>2]|0}if((P((c[o+8>>2]|0)-(c[u+8>>2]|0)|0)|0)<(P(x-s|0)|0)){s=c[o+8>>2]|0;x=c[u+8>>2]|0}}}}while(0);if((P(w-q|0)|0)<4){break}r=e+(l<<2)|0;c[r>>2]=(c[r>>2]|0)+(w-q<<10);r=f+(l<<2)|0;c[r>>2]=(c[r>>2]|0)+(x-s<<10);r=d+(l<<2)|0;c[r>>2]=(c[r>>2]|0)+1;if((l|0)>0){y=+(w-q|0)*1.0*+(c[e+(l-1<<2)>>2]|0)+ +(aa(x-s|0,c[f+(l-1<<2)>>2]|0)|0);z=y*(+(w-q|0)*1.0*+(c[e+(l-1<<2)>>2]|0)+ +(aa(x-s|0,c[f+(l-1<<2)>>2]|0)|0))*1024.0;y=+(w-q|0)*1.0*+(w-q|0)+ +(aa(x-s|0,x-s|0)|0);k=1024-~~(z/(y*(+(c[e+(l-1<<2)>>2]|0)*1.0*+(c[e+(l-1<<2)>>2]|0)+ +(aa(c[f+(l-1<<2)>>2]|0,c[f+(l-1<<2)>>2]|0)|0))))|0;r=g+(l<<2)|0;c[r>>2]=(c[r>>2]|0)+k}}}while(0);c[(c[h+108>>2]|0)+(c[h+116>>2]<<2)>>2]=c[c[(c[h+108>>2]|0)+(c[h+116>>2]<<2)>>2]>>2]}cz(h+84|0)}if((c[d+(l<<2)>>2]|0)==0){v=2516;break}if((c[d+(l<<2)>>2]|0)!=0){o=e+(l<<2)|0;r=(c[o>>2]|0)/(c[d+(l<<2)>>2]|0)|0;c[o>>2]=r;a=r;r=f+(l<<2)|0;o=(c[r>>2]|0)/(c[d+(l<<2)>>2]|0)|0;c[r>>2]=o;j=o;if((l|0)>0){o=g+(l<<2)|0;c[o>>2]=(c[o>>2]|0)/(c[d+(l<<2)>>2]|0)|0}}if((c[h+37072>>2]|0)!=0){o=c[n>>2]|0;r=a;p=j;A=c[g+(l<<2)>>2]|0;C=c[d+(l<<2)>>2]|0;D=l+1|0;au(o|0,15152,(E=i,i=i+40|0,c[E>>2]=r,c[E+8>>2]=p,c[E+16>>2]=A,c[E+24>>2]=C,c[E+32>>2]=D,E)|0)|0;i=E}l=l+1|0}if((P(j*100|0|0)|0)<=(P(a*50|0|0)|0)){F=a;G=h;H=G+84|0;I=H+72|0;J=I+4|0;c[J>>2]=F;K=j;L=h;M=L+84|0;N=M+72|0;O=N+8|0;c[O>>2]=K;i=b;return 0}au(c[n>>2]|0,14672,(E=i,i=i+1|0,i=i+7&-8,c[E>>2]=0,E)|0)|0;i=E;F=a;G=h;H=G+84|0;I=H+72|0;J=I+4|0;c[J>>2]=F;K=j;L=h;M=L+84|0;N=M+72|0;O=N+8|0;c[O>>2]=K;i=b;return 0}function b5(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=a;a=c[(c[7036]|0)+37072>>2]|0;if((a|0)!=0){f=c[n>>2]|0;au(f|0,14352,(g=i,i=i+1|0,i=i+7&-8,c[g>>2]=0,g)|0)|0;i=g}if((b&4|0)!=0){if((a|0)!=0){b=c[n>>2]|0;au(b|0,14008,(g=i,i=i+1|0,i=i+7&-8,c[g>>2]=0,g)|0)|0;i=g}b=e;f=c[e+4>>2]|0;h=c[e+8>>2]|0;b3(b,0,0,f,h,0)|0}else{h=e;f=c[e+4>>2]|0;b=c[e+8>>2]|0;b2(h,0,0,f,b)|0}if((a|0)==0){i=d;return 0}au(c[n>>2]|0,13720,(g=i,i=i+1|0,i=i+7&-8,c[g>>2]=0,g)|0)|0;i=g;i=d;return 0}function b6(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,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;b=i;a=c[7036]|0;d=0;e=c[a+156>>2]|0;f=e;if((e|0)<2){g=0;h=g;i=b;return h|0}if((c[a+37072>>2]|0)!=0){e=c[n>>2]|0;au(e|0,13088,(j=i,i=i+1|0,i=i+7&-8,c[j>>2]=0,j)|0)|0;i=j}e=ev(f<<4<<2)|0;if((e|0)==0){k=c[n>>2]|0;au(k|0,12304,(j=i,i=i+1|0,i=i+7&-8,c[j>>2]=0,j)|0)|0;i=j;g=0;h=g;i=b;return h|0}k=0;while(1){if((k|0)>=(f<<4|0)){break}c[e+(k<<2)>>2]=0;k=k+1|0}l=c[a+164>>2]|0;m=c[a+160>>2]|0;if((m|0)!=0){if((cy(a+84|0)|0)==0){while(1){if((c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=0){o=(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=(a+96|0)}else{o=0}if(!o){break}p=c[(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)+8>>2]|0;L3465:do{if((c[p+48>>2]|0)>0){if((c[p+72>>2]|0)<1){break}if((c[p+116>>2]|0)<98){break}do{if((c[p+56>>2]|0)!=0){if((c[p+12>>2]|0)<(c[p+56>>2]|0)){break}do{if((c[p+60>>2]|0)!=4){if((c[p+8>>2]|0)>(c[p+60>>2]|0)){break}q=(c[p+8>>2]|0)-((aa(c[p+4>>2]|0,l)|0)/(m|0)|0)|0;r=(c[p+12>>2]|0)-((aa(c[p+4>>2]|0,l)|0)/(m|0)|0)|0;if((aC(11680,(c[p+76>>2]&255)<<24>>24|0)|0)!=0){s=e+((c[p+48>>2]<<4)+1<<2)|0;c[s>>2]=(c[s>>2]|0)+q;s=e+((c[p+48>>2]<<4)+5<<2)|0;c[s>>2]=(c[s>>2]|0)+1;s=e+((c[p+48>>2]<<4)+2<<2)|0;c[s>>2]=(c[s>>2]|0)+r;s=e+((c[p+48>>2]<<4)+6<<2)|0;c[s>>2]=(c[s>>2]|0)+1;if((c[e+((c[p+48>>2]<<4)+9<<2)>>2]|0)>(q|0)){c[e+((c[p+48>>2]<<4)+9<<2)>>2]=q}if((c[e+((c[p+48>>2]<<4)+13<<2)>>2]|0)<(q|0)){c[e+((c[p+48>>2]<<4)+13<<2)>>2]=q}if((c[e+((c[p+48>>2]<<4)+10<<2)>>2]|0)>(r|0)){c[e+((c[p+48>>2]<<4)+10<<2)>>2]=r}if((c[e+((c[p+48>>2]<<4)+14<<2)>>2]|0)<(r|0)){c[e+((c[p+48>>2]<<4)+14<<2)>>2]=r}}if((aC(11152,(c[p+76>>2]&255)<<24>>24|0)|0)!=0){s=e+(c[p+48>>2]<<4<<2)|0;c[s>>2]=(c[s>>2]|0)+q;s=e+((c[p+48>>2]<<4)+4<<2)|0;c[s>>2]=(c[s>>2]|0)+1;s=e+((c[p+48>>2]<<4)+2<<2)|0;c[s>>2]=(c[s>>2]|0)+r;s=e+((c[p+48>>2]<<4)+6<<2)|0;c[s>>2]=(c[s>>2]|0)+1;if((c[e+((c[p+48>>2]<<4)+8<<2)>>2]|0)>(q|0)){c[e+((c[p+48>>2]<<4)+8<<2)>>2]=q}if((c[e+((c[p+48>>2]<<4)+12<<2)>>2]|0)<(q|0)){c[e+((c[p+48>>2]<<4)+12<<2)>>2]=q}if((c[e+((c[p+48>>2]<<4)+10<<2)>>2]|0)>(r|0)){c[e+((c[p+48>>2]<<4)+10<<2)>>2]=r}if((c[e+((c[p+48>>2]<<4)+14<<2)>>2]|0)<(r|0)){c[e+((c[p+48>>2]<<4)+14<<2)>>2]=r}}if((aC(10992,(c[p+76>>2]&255)<<24>>24|0)|0)!=0){s=e+((c[p+48>>2]<<4)+1<<2)|0;c[s>>2]=(c[s>>2]|0)+q;s=e+((c[p+48>>2]<<4)+5<<2)|0;c[s>>2]=(c[s>>2]|0)+1;s=e+((c[p+48>>2]<<4)+3<<2)|0;c[s>>2]=(c[s>>2]|0)+r;s=e+((c[p+48>>2]<<4)+7<<2)|0;c[s>>2]=(c[s>>2]|0)+1;if((c[e+((c[p+48>>2]<<4)+9<<2)>>2]|0)>(q|0)){c[e+((c[p+48>>2]<<4)+9<<2)>>2]=q}if((c[e+((c[p+48>>2]<<4)+13<<2)>>2]|0)<(q|0)){c[e+((c[p+48>>2]<<4)+13<<2)>>2]=q}if((c[e+((c[p+48>>2]<<4)+11<<2)>>2]|0)>(r|0)){c[e+((c[p+48>>2]<<4)+11<<2)>>2]=r}if((c[e+((c[p+48>>2]<<4)+15<<2)>>2]|0)<(r|0)){c[e+((c[p+48>>2]<<4)+15<<2)>>2]=r}}break L3465}}while(0);break L3465}}while(0)}}while(0);c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]=c[c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]>>2]}cz(a+84|0)}}k=1;while(1){if((k|0)>=(f|0)){break}d=0;if((c[e+((k<<4)+4<<2)>>2]|0)!=0){d=d+(P((c[a+168+(k<<2)>>2]|0)-((c[e+(k<<4<<2)>>2]|0)/(c[e+((k<<4)+4<<2)>>2]|0)|0)|0)|0)|0}if((c[e+((k<<4)+5<<2)>>2]|0)!=0){d=d+(P((c[a+4264+(k<<2)>>2]|0)-((c[e+((k<<4)+1<<2)>>2]|0)/(c[e+((k<<4)+5<<2)>>2]|0)|0)|0)|0)|0}if((c[e+((k<<4)+6<<2)>>2]|0)!=0){d=d+(P((c[a+8360+(k<<2)>>2]|0)-((c[e+((k<<4)+2<<2)>>2]|0)/(c[e+((k<<4)+6<<2)>>2]|0)|0)|0)|0)|0}if((c[e+((k<<4)+7<<2)>>2]|0)!=0){d=d+(P((c[a+12456+(k<<2)>>2]|0)-((c[e+((k<<4)+3<<2)>>2]|0)/(c[e+((k<<4)+7<<2)>>2]|0)|0)|0)|0)|0}o=aa(c[e+((k<<4)+4<<2)>>2]|0,c[e+((k<<4)+5<<2)>>2]|0)|0;r=aa(o,c[e+((k<<4)+6<<2)>>2]|0)|0;if((aa(r,c[e+((k<<4)+7<<2)>>2]|0)|0)>0){c[a+24744+(k<<2)>>2]=((c[a+24744+(k<<2)>>2]|0)+100|0)/2|0}else{c[a+24744+(k<<2)>>2]=((c[a+24744+(k<<2)>>2]|0)*90|0|0)/100|0}if((c[e+((k<<4)+4<<2)>>2]|0)!=0){c[a+168+(k<<2)>>2]=((c[e+(k<<4<<2)>>2]|0)+((c[e+((k<<4)+4<<2)>>2]|0)/2|0)|0)/(c[e+((k<<4)+4<<2)>>2]|0)|0}if((c[e+((k<<4)+5<<2)>>2]|0)!=0){c[a+4264+(k<<2)>>2]=((c[e+((k<<4)+1<<2)>>2]|0)+((c[e+((k<<4)+5<<2)>>2]|0)/2|0)|0)/(c[e+((k<<4)+5<<2)>>2]|0)|0}if((c[e+((k<<4)+6<<2)>>2]|0)!=0){c[a+8360+(k<<2)>>2]=((c[e+((k<<4)+2<<2)>>2]|0)+((c[e+((k<<4)+6<<2)>>2]|0)/2|0)|0)/(c[e+((k<<4)+6<<2)>>2]|0)|0}if((c[e+((k<<4)+7<<2)>>2]|0)!=0){c[a+12456+(k<<2)>>2]=((c[e+((k<<4)+3<<2)>>2]|0)+((c[e+((k<<4)+7<<2)>>2]|0)/2|0)|0)/(c[e+((k<<4)+7<<2)>>2]|0)|0}do{if(((c[a+4264+(k<<2)>>2]|0)-(c[a+168+(k<<2)>>2]|0)|0)<=1){if((c[e+((k<<4)+5<<2)>>2]|0)!=0){break}if((c[e+((k<<4)+4<<2)>>2]|0)==0){break}c[a+4264+(k<<2)>>2]=(c[a+168+(k<<2)>>2]|0)+2}}while(0);do{if(((c[a+4264+(k<<2)>>2]|0)-(c[a+168+(k<<2)>>2]|0)|0)<=1){if((c[e+((k<<4)+4<<2)>>2]|0)!=0){break}if((c[e+((k<<4)+5<<2)>>2]|0)==0){break}c[a+168+(k<<2)>>2]=(c[a+4264+(k<<2)>>2]|0)-2}}while(0);do{if(((c[a+12456+(k<<2)>>2]|0)-(c[a+8360+(k<<2)>>2]|0)|0)<=1){if((c[e+((k<<4)+7<<2)>>2]|0)!=0){break}if((c[e+((k<<4)+6<<2)>>2]|0)==0){break}c[a+12456+(k<<2)>>2]=(c[a+8360+(k<<2)>>2]|0)+2}}while(0);do{if(((c[a+12456+(k<<2)>>2]|0)-(c[a+8360+(k<<2)>>2]|0)|0)<=1){if((c[e+((k<<4)+6<<2)>>2]|0)!=0){break}if((c[e+((k<<4)+7<<2)>>2]|0)==0){break}c[a+8360+(k<<2)>>2]=(c[a+12456+(k<<2)>>2]|0)-2}}while(0);do{if((c[e+((k<<4)+7<<2)>>2]|0)<1){if((c[a+12456+(k<<2)>>2]|0)>((c[a+8360+(k<<2)>>2]|0)+(((c[a+8360+(k<<2)>>2]|0)-(c[a+4264+(k<<2)>>2]|0)|0)/4|0)|0)){break}c[a+12456+(k<<2)>>2]=(c[a+8360+(k<<2)>>2]|0)+(((c[a+8360+(k<<2)>>2]|0)-(c[a+4264+(k<<2)>>2]|0)|0)/4|0)}}while(0);do{if((c[e+((k<<4)+7<<2)>>2]|0)<1){if((c[e+((k<<4)+14<<2)>>2]|0)<=0){break}if((c[a+12456+(k<<2)>>2]|0)>=((c[e+((k<<4)+14<<2)>>2]<<1)-(c[a+8360+(k<<2)>>2]|0)+2|0)){break}c[a+12456+(k<<2)>>2]=(c[e+((k<<4)+14<<2)>>2]<<1)-(c[a+8360+(k<<2)>>2]|0)+2}}while(0);if((c[a+12456+(k<<2)>>2]|0)<=(c[a+8360+(k<<2)>>2]|0)){c[a+12456+(k<<2)>>2]=(c[a+8360+(k<<2)>>2]|0)+1}if((c[a+37072>>2]&17|0)!=0){r=c[n>>2]|0;o=k;q=c[a+168+(k<<2)>>2]|0;s=(c[a+4264+(k<<2)>>2]|0)-(c[a+168+(k<<2)>>2]|0)|0;t=(c[a+8360+(k<<2)>>2]|0)-(c[a+168+(k<<2)>>2]|0)|0;u=(c[a+12456+(k<<2)>>2]|0)-(c[a+168+(k<<2)>>2]|0)|0;v=c[e+((k<<4)+4<<2)>>2]|0;w=c[e+((k<<4)+5<<2)>>2]|0;x=c[e+((k<<4)+6<<2)>>2]|0;y=c[e+((k<<4)+7<<2)>>2]|0;z=c[a+24744+(k<<2)>>2]|0;A=d;au(r|0,10688,(j=i,i=i+88|0,c[j>>2]=o,c[j+8>>2]=q,c[j+16>>2]=s,c[j+24>>2]=t,c[j+32>>2]=u,c[j+40>>2]=v,c[j+48>>2]=w,c[j+56>>2]=x,c[j+64>>2]=y,c[j+72>>2]=z,c[j+80>>2]=A,j)|0)|0;i=j}k=k+1|0}d=0;if((m|0)!=0){if((cy(a+84|0)|0)==0){while(1){if((c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=0){B=(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)!=(a+96|0)}else{B=0}if(!B){break}p=c[(c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]|0)+8>>2]|0;if((c[p+48>>2]|0)>0){if((c[p+8>>2]<<1|0)<((c[a+168+(c[p+48>>2]<<2)>>2]<<1)-(c[a+12456+(c[p+48>>2]<<2)>>2]|0)+(c[a+168+(c[p+48>>2]<<2)>>2]|0)|0)){c[p+48>>2]=0}if((c[p+12>>2]<<1|0)>((c[a+12456+(c[p+48>>2]<<2)>>2]<<1)+(c[a+12456+(c[p+48>>2]<<2)>>2]|0)-(c[a+168+(c[p+48>>2]<<2)>>2]|0)|0)){c[p+48>>2]=0}do{if((c[p+72>>2]|0)>0){if((c[p+72>>2]|0)<=31){break}if((c[p+76>>2]|0)>=127){break}if((aC(10368,(c[p+76>>2]&255)<<24>>24|0)|0)==0){break}k=(c[p+8>>2]|0)-((aa(c[p+4>>2]|0,l)|0)/(m|0)|0)|0;do{if((k|0)<(((c[a+168+(c[p+48>>2]<<2)>>2]|0)+(c[a+4264+(c[p+48>>2]<<2)>>2]|0)|0)/2|0|0)){if((be(c[p+76>>2]|0)|0)==0){break}f=p;A=av((c[p+76>>2]&255)<<24>>24|0)|0;z=((c[p+116>>2]|0)+101|0)/2|0;dy(f,A,z)|0;d=d+1|0}}while(0);k=(c[p+8>>2]|0)-((aa(c[p+4>>2]|0,l)|0)/(m|0)|0)|0;do{if((k|0)>(((c[a+168+(c[p+48>>2]<<2)>>2]|0)+(c[a+4264+(c[p+48>>2]<<2)>>2]|0)+1|0)/2|0|0)){if((bg(c[p+76>>2]|0)|0)==0){break}z=p;A=eF((c[p+76>>2]&255)<<24>>24|0)|0;f=((c[p+116>>2]|0)+101|0)/2|0;dy(z,A,f)|0;d=d+1|0}}while(0)}}while(0);c[p+52>>2]=(c[a+168+(c[p+48>>2]<<2)>>2]|0)+((aa(c[p+4>>2]|0,l)|0)/(m|0)|0);c[p+56>>2]=(c[a+4264+(c[p+48>>2]<<2)>>2]|0)+((aa(c[p+4>>2]|0,l)|0)/(m|0)|0);c[p+60>>2]=(c[a+8360+(c[p+48>>2]<<2)>>2]|0)+((aa(c[p+4>>2]|0,l)|0)/(m|0)|0);c[p+64>>2]=(c[a+12456+(c[p+48>>2]<<2)>>2]|0)+((aa(c[p+4>>2]|0,l)|0)/(m|0)|0)}c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]=c[c[(c[a+108>>2]|0)+(c[a+116>>2]<<2)>>2]>>2]}cz(a+84|0)}}ew(e);if((c[a+37072>>2]|0)!=0){a=c[n>>2]|0;e=d;au(a|0,10128,(j=i,i=i+8|0,c[j>>2]=e,j)|0)|0;i=j}g=d;h=g;i=b;return h|0}function b7(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;a=i;b=0;d=c[7036]|0;c[d+37048>>2]=0;c[d+37044>>2]=0;c[d+37040>>2]=0;if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){e=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{e=0}if(!e){break}f=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;L3649:do{if((c[f+36>>2]|0)!=57345){g=c[f>>2]|0;h=c[f+4>>2]|0;j=c[f+8>>2]|0;k=c[f+12>>2]|0;b=b+1|0;L3651:do{if((aa(c[d+37032>>2]|0,c[d+37036>>2]|0)|0)>0){do{if((h-g+1|0)>(c[d+37032>>2]<<2|0)){if((k-j+1|0)<=(c[d+37036>>2]<<2|0)){break}break L3649}}while(0);do{if((k-j+1<<2|0)>=(c[d+37036>>2]|0)){if((k-j|0)<2){break}break L3651}}while(0);break L3649}}while(0);do{if((h-g+1|0)<4){if((k-j+1|0)>=6){break}break L3649}}while(0);l=d+37040|0;c[l>>2]=(c[l>>2]|0)+(h-g+1);l=d+37044|0;c[l>>2]=(c[l>>2]|0)+(k-j+1);l=d+37048|0;c[l>>2]=(c[l>>2]|0)+1;m=2706}else{m=2706}}while(0);if((m|0)==2706){m=0}c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}if((c[d+37048>>2]|0)!=0){c[d+37036>>2]=((c[d+37044>>2]|0)+((c[d+37048>>2]|0)/2|0)|0)/(c[d+37048>>2]|0)|0;c[d+37032>>2]=((c[d+37040>>2]|0)+((c[d+37048>>2]|0)/2|0)|0)/(c[d+37048>>2]|0)|0}if((c[d+37072>>2]|0)==0){i=a;return 0}m=c[d+37036>>2]|0;e=c[d+37048>>2]|0;au(c[n>>2]|0,9984,(f=i,i=i+32|0,c[f>>2]=c[d+37032>>2],c[f+8>>2]=m,c[f+16>>2]=e,c[f+24>>2]=b,f)|0)|0;i=f;i=a;return 0}function b8(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0;b=i;d=a;a=0;if((c[d+37048>>2]|0)==0){if((c[d+37072>>2]|0)!=0){e=c[n>>2]|0;au(e|0,9808,(f=i,i=i+8|0,c[f>>2]=958,f)|0)|0;i=f}g=-1;h=g;i=b;return h|0}c[d+37036>>2]=((c[d+37044>>2]|0)+((c[d+37048>>2]|0)/2|0)|0)/(c[d+37048>>2]|0)|0;c[d+37032>>2]=((c[d+37040>>2]|0)+((c[d+37048>>2]|0)/2|0)|0)/(c[d+37048>>2]|0)|0;if((c[d+37072>>2]|0)!=0){e=c[n>>2]|0;j=c[d+37032>>2]|0;k=c[d+37036>>2]|0;au(e|0,9680,(f=i,i=i+24|0,c[f>>2]=967,c[f+8>>2]=j,c[f+16>>2]=k,f)|0)|0;i=f}if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){l=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{l=0}if(!l){break}k=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;L3697:do{if((c[k+36>>2]|0)!=57345){j=c[k+8>>2]|0;e=c[k+12>>2]|0;if(((c[k+4>>2]|0)-(c[k>>2]|0)+1|0)>(c[d+37032>>2]<<2|0)){m=2731}else{if((e-j+1|0)>(c[d+37036>>2]<<2|0)){m=2731}}do{if((m|0)==2731){m=0;o=0;if((cy(d+84|0)|0)==0){while(1){if((c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=0){p=(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)!=(d+96|0)}else{p=0}if(!p){break}q=c[(c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]|0)+8>>2]|0;L3712:do{if((c[q+36>>2]|0)!=57345){if(((c[q+12>>2]|0)-(c[q+8>>2]|0)|0)>(e-j<<1|0)){break}if(((c[q+12>>2]|0)-(c[q+8>>2]|0)<<1|0)<(e-j|0)){break}do{if((c[q+8>>2]|0)<=(j+((e-j+1|0)/2|0)|0)){if((c[q+8>>2]|0)<(j-((e-j+1|0)/2|0)|0)){break}if((c[q+12>>2]|0)>(e+((e-j+1|0)/2|0)|0)){break}if((c[q+12>>2]|0)<(e-((e-j+1|0)/2|0)|0)){break}o=o+1|0;break L3712}}while(0)}}while(0);c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}if((o|0)>4){break L3697}else{c[k+36>>2]=57345;a=a+1|0;break}}}while(0)}}while(0);c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]=c[c[(c[d+108>>2]|0)+(c[d+116>>2]<<2)>>2]>>2]}cz(d+84|0)}if((c[d+37072>>2]|0)!=0){p=c[n>>2]|0;m=a;l=(c[d+37048>>2]|0)-a|0;au(p|0,9568,(f=i,i=i+16|0,c[f>>2]=m,c[f+8>>2]=l,f)|0)|0;i=f}b7()|0;g=0;h=g;i=b;return h|0}function b9(a){a=a|0;var b=0,d=0,e=0;b=a;a=0;if((b|0)!=0){}else{aE(14848,23256,320,25384)}a=0;d=a;a=d+1|0;e=cm(b+120|0,d)|0;while(1){if((e|0)==0){break}aL(e|0,c[o>>2]|0)|0;if((c[b+37076>>2]|0)==2){d=c[o>>2]|0;aL(16440,d|0)|0}if((c[b+37076>>2]|0)!=3){d=c[o>>2]|0;aD(10,d|0)|0}d=a;a=d+1|0;e=cm(b+120|0,d)|0}cn(b+120|0);return}function ca(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+37104|0;e=d|0;f=1;c[7036]=e;g=e;bi(c[o>>2]|0,0,2,0)|0;ci(g);cb(g,a,b);if((c[g+37060>>2]&2|0)!=0){b=g;bZ(b)|0}while(1){if((f|0)!=1){break}cj(g);cc(g);f=cd(g)|0;if((f|0)<0){b=2777;break}d4(g)|0;ce(g);b9(g);cl(g)}if((f|0)<0){h=f;i=d;return h|0}else{h=0;i=d;return h|0}return 0}function cb(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;g=b;b=d;d=e;if((g|0)!=0){}else{aE(14848,23256,127,25360)}if((b|0)<=1){cg(1);aO(0)}e=1;while(1){if((e|0)>=(b|0)){break}if((bh(c[d+(e<<2)>>2]|0,19472)|0)==0){ch()}do{if((a[c[d+(e<<2)>>2]|0]|0)==45){if((a[(c[d+(e<<2)>>2]|0)+1|0]|0)==0){h=2850;break}j=27664;if((e+1|0)<(b|0)){j=c[d+(e+1<<2)>>2]|0}switch(a[(c[d+(e<<2)>>2]|0)+1|0]|0){case 104:{ch();break};case 100:{c[g+37064>>2]=a2(j|0)|0;e=e+1|0;break};case 108:{c[g+37052>>2]=a2(j|0)|0;e=e+1|0;break};case 115:{c[g+37056>>2]=a2(j|0)|0;e=e+1|0;break};case 117:{c[g+37096>>2]=j;e=e+1|0;break};case 105:{c[g>>2]=j;e=e+1|0;break};case 99:{c[g+37080>>2]=j;e=e+1|0;break};case 67:{c[g+37088>>2]=j;e=e+1|0;break};case 118:{k=g+37072|0;c[k>>2]=a2(j|0)|0|c[k>>2];e=e+1|0;break};case 109:{k=g+37060|0;c[k>>2]=a2(j|0)|0|c[k>>2];e=e+1|0;break};case 101:{do{if((a[j|0]|0)==45){if((a[j+1|0]|0)!=0){h=2803;break}aY(2,3)|0}else{h=2803}}while(0);if((h|0)==2803){h=0;if((ar(j|0,18080,c[n>>2]|0)|0)==0){k=c[n>>2]|0;l=j;au(k|0,17672,(m=i,i=i+8|0,c[m>>2]=l,m)|0)|0;i=m}}e=e+1|0;break};case 112:{c[g+37084>>2]=j;e=e+1|0;break};case 111:{do{if((a[j|0]|0)==45){if((a[j+1|0]|0)!=0){h=2811;break}}else{h=2811}}while(0);if((h|0)==2811){h=0;if((ar(j|0,18080,c[o>>2]|0)|0)==0){l=c[n>>2]|0;k=j;au(l|0,17320,(m=i,i=i+8|0,c[m>>2]=k,m)|0)|0;i=m}}e=e+1|0;break};case 102:{if((bh(j|0,17008)|0)==0){c[g+37076>>2]=0}else{if((bh(j|0,16664)|0)==0){c[g+37076>>2]=1}else{if((bh(j|0,16288)|0)==0){c[g+37076>>2]=2}else{if((bh(j|0,15872)|0)==0){c[g+37076>>2]=3}else{if((bh(j|0,15600)|0)==0){c[g+37076>>2]=4}else{if((bh(j|0,15144)|0)==0){c[g+37076>>2]=5}else{if((bh(j|0,14664)|0)==0){c[g+37076>>2]=6}else{k=c[n>>2]|0;l=j;au(k|0,14312,(m=i,i=i+8|0,c[m>>2]=l,m)|0)|0;i=m}}}}}}}e=e+1|0;break};case 110:{c[g+37068>>2]=a2(j|0)|0;e=e+1|0;break};case 120:{eh(j)|0;e=e+1|0;break};case 97:{c[g+37092>>2]=a2(j|0)|0;e=e+1|0;break};default:{au(c[n>>2]|0,13952,(m=i,i=i+1|0,i=i+7&-8,c[m>>2]=0,m)|0)|0;i=m}}}else{h=2850}}while(0);if((h|0)==2850){h=0;if((a[c[d+(e<<2)>>2]|0]|0)!=45){h=2852}else{if((a[(c[d+(e<<2)>>2]|0)+1|0]|0)==0){h=2852}}if((h|0)==2852){h=0;c[g>>2]=c[d+(e<<2)>>2]}}e=e+1|0}i=f;return}function cc(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;b=i;d=a;if((d|0)!=0){}else{aE(14848,23256,247,25432)}if((c[d+37072>>2]|0)==0){i=b;return}cg(0);au(c[n>>2]|0,8464,(a=i,i=i+1|0,i=i+7&-8,c[a>>2]=0,a)|0)|0;i=a;au(c[n>>2]|0,7352,(a=i,i=i+8|0,c[a>>2]=4,a)|0)|0;i=a;au(c[n>>2]|0,6248,(a=i,i=i+8|0,c[a>>2]=2,a)|0)|0;i=a;au(c[n>>2]|0,5216,(a=i,i=i+1|0,i=i+7&-8,c[a>>2]=0,a)|0)|0;i=a;au(c[n>>2]|0,4320,(a=i,i=i+1|0,i=i+7&-8,c[a>>2]=0,a)|0)|0;i=a;au(c[n>>2]|0,25032,(a=i,i=i+1|0,i=i+7&-8,c[a>>2]=0,a)|0)|0;i=a;e=c[d+37056>>2]|0;f=c[d+37072>>2]|0;g=c[d+37080>>2]|0;h=c[d+37060>>2]|0;j=c[d+37064>>2]|0;k=c[d+37068>>2]|0;l=c[d+37092>>2]|0;m=c[d+37088>>2]|0;au(c[n>>2]|0,24416,(a=i,i=i+72|0,c[a>>2]=c[d+37052>>2],c[a+8>>2]=e,c[a+16>>2]=f,c[a+24>>2]=g,c[a+32>>2]=h,c[a+40>>2]=j,c[a+48>>2]=k,c[a+56>>2]=l,c[a+64>>2]=m,a)|0)|0;i=a;au(c[n>>2]|0,23592,(a=i,i=i+8|0,c[a>>2]=c[d>>2],a)|0)|0;i=a;au(c[n>>2]|0,22736,(a=i,i=i+1|0,i=i+7&-8,c[a>>2]=0,a)|0)|0;i=a;a1(d+20|0,0)|0;i=b;return}function cd(a){a=a|0;var b=0,d=0;b=a;a=0;if((b|0)!=0){}else{aE(14848,23256,306,25344);return 0}if((a6(c[b>>2]|0,9472)|0)!=0){dq(c[b>>2]|0,b+4|0,c[b+37072>>2]|0);d=a;return d|0}else{a=ec(c[b>>2]|0,b+4|0,c[b+37072>>2]|0)|0;d=a;return d|0}return 0}function ce(a){a=a|0;var b=0,d=0,e=0,f=0,g=0.0;b=i;i=i+16|0;d=b|0;e=b+8|0;f=a;if((f|0)!=0){}else{aE(14848,23256,290,25448)}if((c[f+37072>>2]|0)==0){i=b;return}a1(d|0,0)|0;cf(e,d,f+20|0)|0;f=(c[e>>2]|0)%60|0;g=+(c[e+4>>2]|0)/1.0e3;au(c[n>>2]|0,11984,(d=i,i=i+24|0,c[d>>2]=(c[e>>2]|0)/60|0,c[d+8>>2]=f,h[d+16>>3]=g,d)|0)|0;i=d;i=b;return}function cf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=a;a=b;b=d;if((c[a+4>>2]|0)<(c[b+4>>2]|0)){d=(((c[b+4>>2]|0)-(c[a+4>>2]|0)|0)/1e6|0)+1|0;f=b+4|0;c[f>>2]=(c[f>>2]|0)-(d*1e6|0);f=b|0;c[f>>2]=(c[f>>2]|0)+d}if(((c[a+4>>2]|0)-(c[b+4>>2]|0)|0)>1e6){d=((c[a+4>>2]|0)-(c[b+4>>2]|0)|0)/1e6|0;f=b+4|0;c[f>>2]=(c[f>>2]|0)+(d*1e6|0);f=b|0;c[f>>2]=(c[f>>2]|0)-d}c[e>>2]=(c[a>>2]|0)-(c[b>>2]|0);c[e+4>>2]=(c[a+4>>2]|0)-(c[b+4>>2]|0);return(c[a>>2]|0)<(c[b>>2]|0)|0}function cg(a){a=a|0;var b=0,d=0,e=0;b=i;d=a;au(c[n>>2]|0,20816,(a=i,i=i+1|0,i=i+7&-8,c[a>>2]=0,a)|0)|0;i=a;if((d|0)!=0){e=c[n>>2]|0;au(e|0,20144,(a=i,i=i+1|0,i=i+7&-8,c[a>>2]=0,a)|0)|0;i=a}if((d&2|0)!=0){aO(1)}else{i=b;return}}function ch(){var a=0,b=0;a=i;cg(0);au(c[n>>2]|0,13304,(b=i,i=i+1|0,i=i+7&-8,c[b>>2]=0,b)|0)|0;i=b;au(c[n>>2]|0,12624,(b=i,i=i+1|0,i=i+7&-8,c[b>>2]=0,b)|0)|0;i=b;au(c[n>>2]|0,12096,(b=i,i=i+1|0,i=i+7&-8,c[b>>2]=0,b)|0)|0;i=b;au(c[n>>2]|0,11472,(b=i,i=i+1|0,i=i+7&-8,c[b>>2]=0,b)|0)|0;i=b;au(c[n>>2]|0,11088,(b=i,i=i+1|0,i=i+7&-8,c[b>>2]=0,b)|0)|0;i=b;au(c[n>>2]|0,10936,(b=i,i=i+1|0,i=i+7&-8,c[b>>2]=0,b)|0)|0;i=b;aO(0);i=a;return}function ci(a){a=a|0;var b=0;b=a;c[b>>2]=13224;cs(b+48|0);c[b+37052>>2]=0;c[b+37056>>2]=0;c[b+37060>>2]=0;c[b+37064>>2]=-1;c[b+37068>>2]=0;c[b+37072>>2]=0;c[b+37076>>2]=5;c[b+37080>>2]=23048;c[b+37084>>2]=0;c[b+37088>>2]=0;c[b+37092>>2]=95;c[b+37096>>2]=23048;return}function cj(a){a=a|0;var b=0;b=a;c[b+4>>2]=0;cs(b+84|0);cs(b+120|0);c[b+37032>>2]=5;c[b+37036>>2]=8;c[b+37040>>2]=0;c[b+37044>>2]=0;c[b+37048>>2]=0;c[b+164>>2]=0;c[b+156>>2]=0;c[b+44>>2]=0;c[b+28>>2]=0;c[b+32>>2]=0;c[b+36>>2]=0;return}function ck(a){a=a|0;bV(a)|0;return}function cl(a){a=a|0;var b=0;b=a;if((c[b+28>>2]|0)==(c[b+4>>2]|0)){c[b+28>>2]=0}cD(b+84|0,2)|0;if((c[b+4>>2]|0)!=0){ew(c[b+4>>2]|0);c[b+4>>2]=0}if((c[b+28>>2]|0)==0){return}ew(c[b+28>>2]|0);c[b+28>>2]=0;return}function cm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=a;a=b;do{if((a|0)>=0){if((a|0)>(c[d+28>>2]|0)){break}b=0;e=c[d>>2]|0;while(1){if((b|0)<(a|0)){f=(e|0)!=0}else{f=0}if(!f){break}e=c[e>>2]|0;b=b+1|0}if((e|0)!=0){g=c[e+8>>2]|0;h=g;return h|0}else{g=0;h=g;return h|0}}}while(0);g=0;h=g;return h|0}function cn(a){a=a|0;var b=0,d=0,e=0;b=a;if((cy(b)|0)!=0){d=b;cx(d);return}while(1){if((c[(c[b+24>>2]|0)+(c[b+32>>2]<<2)>>2]|0)!=0){e=(c[(c[b+24>>2]|0)+(c[b+32>>2]<<2)>>2]|0)!=(b+12|0)}else{e=0}if(!e){break}if((c[(c[(c[b+24>>2]|0)+(c[b+32>>2]<<2)>>2]|0)+8>>2]|0)!=0){ew(c[(c[(c[b+24>>2]|0)+(c[b+32>>2]<<2)>>2]|0)+8>>2]|0)}c[(c[b+24>>2]|0)+(c[b+32>>2]<<2)>>2]=c[c[(c[b+24>>2]|0)+(c[b+32>>2]<<2)>>2]>>2]}cz(b);d=b;cx(d);return}function co(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0;f=i;g=b;b=d;d=e;e=0;do{if((b|0)!=0){if((a[b|0]|0)==0){break}if((c[d>>2]|0)>0){e=eA(g|0)|0}h=eA(b|0)|0;do{if((e+h+1|0)>=(c[d>>2]|0)){j=d;c[j>>2]=(c[j>>2]|0)+((h+1>>9)+1<<9);k=ex(g,c[d>>2]|0)|0;if((k|0)!=0){g=k;break}else{j=c[n>>2]|0;au(j|0,22920,(l=i,i=i+1|0,i=i+7&-8,c[l>>2]=0,l)|0)|0;i=l;j=d;c[j>>2]=(c[j>>2]|0)-((h+1>>9)+1<<9);m=g;o=m;i=f;return o|0}}}while(0);k=g+e|0;j=k;p=b;q=h+1|0;eB(j|0,p|0,q)|0;m=g;o=m;i=f;return o|0}}while(0);au(c[n>>2]|0,12552,(l=i,i=i+1|0,i=i+7&-8,c[l>>2]=0,l)|0)|0;i=l;m=g;o=m;i=f;return o|0}function cp(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+4096|0;d=b|0;e=a;if((c[e>>2]|0)<2){f=0;g=f;i=b;return g|0}a=0;while(1){if((a|0)>=((c[e>>2]|0)-1|0)){break}c[d+(a<<2)>>2]=(c[e+4108+(a+1<<2)>>2]|0)-(c[e+8204+(a<<2)>>2]|0);a=a+1|0}aI(d|0,(c[e>>2]|0)-1|0,4,4);f=c[d+((((c[e>>2]|0)-1|0)/2|0)<<2)>>2]|0;g=f;i=b;return g|0}function cq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0;f=i;g=a;a=b;b=d;d=e;e=2147483647;if((d|0)!=0){h=c[n>>2]|0;j=a;k=b;au(h|0,16336,(l=i,i=i+16|0,c[l>>2]=j,c[l+8>>2]=k,l)|0)|0;i=l}if((cy(g)|0)==0){while(1){if((c[(c[g+24>>2]|0)+(c[g+32>>2]<<2)>>2]|0)!=0){m=(c[(c[g+24>>2]|0)+(c[g+32>>2]<<2)>>2]|0)!=(g+12|0)}else{m=0}if(!m){break}k=c[(c[(c[g+24>>2]|0)+(c[g+32>>2]<<2)>>2]|0)+8>>2]|0;if((c[k+44>>2]|0)!=-1){j=c[k>>2]|0;if((a|0)!=0){j=j+((aa(c[k+8>>2]|0,b)|0)/(a|0)|0)|0}if((j|0)<(e|0)){e=j;do{if((b|0)!=0){if((d|0)==0){break}h=c[n>>2]|0;o=c[k+48>>2]|0;p=c[k>>2]|0;q=c[k+8>>2]|0;r=j;au(h|0,11872,(l=i,i=i+32|0,c[l>>2]=o,c[l+8>>2]=p,c[l+16>>2]=q,c[l+24>>2]=r,l)|0)|0;i=l}}while(0)}}c[(c[g+24>>2]|0)+(c[g+32>>2]<<2)>>2]=c[c[(c[g+24>>2]|0)+(c[g+32>>2]<<2)>>2]>>2]}cz(g)}if((d|0)==0){s=e;i=f;return s|0}au(c[n>>2]|0,9416,(l=i,i=i+8|0,c[l>>2]=e,l)|0)|0;i=l;s=e;i=f;return s|0}function cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;d=i;i=i+38424|0;e=d|0;f=d+8|0;g=d+36888|0;h=d+37144|0;j=d+37400|0;k=d+37656|0;l=d+37912|0;m=d+38168|0;o=b;b=0;p=0;c[e>>2]=1024;q=0;r=0;s=-1;t=0;u=0;v=ev(c[e>>2]|0)|0;if((v|0)==0){w=c[n>>2]|0;au(w|0,8424,(x=i,i=i+1|0,i=i+7&-8,c[x>>2]=0,x)|0)|0;i=x;i=d;return}a[v]=0;if((c[o+37072>>2]&1|0)!=0){w=c[n>>2]|0;au(w|0,7304,(x=i,i=i+1|0,i=i+7&-8,c[x>>2]=0,x)|0)|0;i=x}q=cp(o+156|0)|0;if((q|0)<=0){if((c[o+37072>>2]&1|0)!=0){w=c[n>>2]|0;y=q;au(w|0,6184,(x=i,i=i+8|0,c[x>>2]=y,x)|0)|0;i=x}q=8;r=12}else{r=(q*7|0|0)/4|0}y=cq(o+84|0,c[o+160>>2]|0,c[o+164>>2]|0,c[o+37072>>2]|0)|0;if((c[o+37076>>2]|0)==3){w=g|0;aP(w|0,5160,(x=i,i=i+32|0,c[x>>2]=0,c[x+8>>2]=0,c[x+16>>2]=0,c[x+24>>2]=0,x)|0)|0;i=x;v=co(v,g|0,e)|0;w=g|0;aP(w|0,4264,(x=i,i=i+32|0,c[x>>2]=0,c[x+8>>2]=0,c[x+16>>2]=0,c[x+24>>2]=0,x)|0)|0;i=x;v=co(v,g|0,e)|0}if((cy(o+84|0)|0)==0){while(1){if((c[(c[o+108>>2]|0)+(c[o+116>>2]<<2)>>2]|0)!=0){z=(c[(c[o+108>>2]|0)+(c[o+116>>2]<<2)>>2]|0)!=(o+96|0)}else{z=0}if(!z){break}g=c[(c[(c[o+108>>2]|0)+(c[o+116>>2]<<2)>>2]|0)+8>>2]|0;w=c[g+48>>2]|0;A=f;B=o+156|0;eB(A|0,B|0,36876)|0;do{if((c[g+72>>2]|0)!=0){if((c[g+116>>2]|0)>=(c[o+37092>>2]|0)){break}c[g+36>>2]=57344}}while(0);if((w|0)!=(s|0)){do{if((c[o+37076>>2]|0)==3){if((s|0)<=-1){break}v=co(v,25e3,e)|0;B=o+120|0;A=aR(v|0)|0;cu(B,A)|0;A=v;B=c[e>>2]|0;eC(A|0,0,B|0)|0;p=0}}while(0);if((c[o+37076>>2]|0)==3){B=h|0;A=c[f+16396+(w<<2)>>2]|0;C=c[f+12+(w<<2)>>2]|0;D=(c[f+20492+(w<<2)>>2]|0)-(c[f+16396+(w<<2)>>2]|0)+1|0;E=(c[f+12300+(w<<2)>>2]|0)-(c[f+12+(w<<2)>>2]|0)|0;F=w;aP(B|0,24344,(x=i,i=i+40|0,c[x>>2]=A,c[x+8>>2]=C,c[x+16>>2]=D,c[x+24>>2]=E,c[x+32>>2]=F,x)|0)|0;i=x;v=co(v,h|0,e)|0}s=w}do{if((c[g+36>>2]|0)>32){if((c[g+36>>2]|0)>122){break}t=t+1|0}}while(0);if((c[g+36>>2]|0)==10){if((c[o+37076>>2]|0)!=3){F=f;E=o+156|0;eB(F|0,E|0,36876)|0;w=c[g+48>>2]|0;if((w|0)>0){E=(c[f+4108+(w<<2)>>2]|0)-(c[f+8204+(w-1<<2)>>2]|0)|0;E=E-r|0;while(1){if((E|0)<=0){break}v=co(v,23568,e)|0;p=p+1|0;E=E-q|0}}E=o+120|0;w=aR(v|0)|0;cu(E,w)|0;w=v;E=c[e>>2]|0;eC(w|0,0,E|0)|0;p=0}}if((c[g+36>>2]|0)==32){if((c[o+37032>>2]|0)!=0){if((c[o+37076>>2]|0)==3){E=j|0;w=c[g>>2]|0;F=c[g+8>>2]|0;D=(c[g+4>>2]|0)-(c[g>>2]|0)+1|0;C=(c[g+12>>2]|0)-(c[g+8>>2]|0)+1|0;aP(E|0,22224,(x=i,i=i+32|0,c[x>>2]=w,c[x+8>>2]=F,c[x+16>>2]=D,c[x+24>>2]=C,x)|0)|0;i=x;v=co(v,j|0,e)|0}else{v=co(v,20768,e)|0;p=p+1|0}}}else{if((c[g+36>>2]|0)!=10){do{if((p|0)==0){if((c[o+37032>>2]|0)==0){break}C=(c[g>>2]|0)-(c[o+16552+(c[g+48>>2]<<2)>>2]|0)|0;if((c[o+160>>2]|0)!=0){D=aa(c[g+8>>2]|0,c[o+164>>2]|0)|0;C=C+((D|0)/(c[o+160>>2]|0)|0)|0}C=C-y|0;if((c[o+37076>>2]|0)==3){D=k|0;F=c[g>>2]|0;w=c[g+8>>2]|0;E=(c[g+4>>2]|0)-(c[g>>2]|0)+1|0;A=(c[g+12>>2]|0)-(c[g+8>>2]|0)+1|0;aP(D|0,22224,(x=i,i=i+32|0,c[x>>2]=F,c[x+8>>2]=w,c[x+16>>2]=E,c[x+24>>2]=A,x)|0)|0;i=x;v=co(v,k|0,e)|0}else{b=(C|0)/(c[o+37032>>2]|0)|0;while(1){if((b|0)<=0){break}v=co(v,20768,e)|0;p=p+1|0;b=b-1|0}}}}while(0);if((c[o+37076>>2]|0)==3){C=l|0;A=c[g>>2]|0;E=c[g+8>>2]|0;w=(c[g+4>>2]|0)-(c[g>>2]|0)+1|0;F=(c[g+12>>2]|0)-(c[g+8>>2]|0)+1|0;aP(C|0,20072,(x=i,i=i+32|0,c[x>>2]=A,c[x+8>>2]=E,c[x+16>>2]=w,c[x+24>>2]=F,x)|0)|0;i=x;v=co(v,l|0,e)|0;}do{if((c[g+36>>2]|0)!=57344){if((c[g+36>>2]|0)==0){G=3049;break}v=co(v,es(c[g+36>>2]|0,c[o+37076>>2]|0)|0,e)|0;do{if((c[g+36>>2]|0)>32){if((c[g+36>>2]|0)>122){break}u=u+1|0}}while(0)}else{G=3049}}while(0);if((G|0)==3049){G=0;do{if((c[g+72>>2]|0)>0){if((c[g+156>>2]|0)==0){break}if((a[c[g+156>>2]|0]|0)==60){break}v=co(v,c[g+156>>2]|0,e)|0;p=p+(eA(c[g+156>>2]|0)|0)|0}}while(0);if((c[g+72>>2]|0)==0){G=3055}else{if((c[g+36>>2]|0)==57344){G=3055}}if((G|0)==3055){G=0;if((a[c[o+37096>>2]|0]|0)!=0){v=co(v,c[o+37096>>2]|0,e)|0}}}if((c[o+37076>>2]|0)==3){if((c[g+72>>2]|0)>0){F=m|0;w=c[g+72>>2]|0;aP(F|0,19424,(x=i,i=i+8|0,c[x>>2]=w,x)|0)|0;i=x;v=co(v,m|0,e)|0;w=0;while(1){if((w|0)>=(c[g+72>>2]|0)){break}aP(m|0,18744,(x=i,i=i+8|0,c[x>>2]=c[g+116+(w<<2)>>2],x)|0)|0;i=x;v=co(v,m|0,e)|0;if((w+1|0)<(c[g+72>>2]|0)){v=co(v,18056,e)|0}w=w+1|0}if((c[g+72>>2]|0)>1){v=co(v,17640,e)|0}w=1;while(1){if((w|0)>=(c[g+72>>2]|0)){break}do{if((c[g+156+(w<<2)>>2]|0)!=0){if((a[c[g+156+(w<<2)>>2]|0]|0)==60){G=3074;break}v=co(v,c[g+156+(w<<2)>>2]|0,e)|0}else{G=3074}}while(0);if((G|0)==3074){G=0;v=co(v,es(c[g+76+(w<<2)>>2]|0,c[o+37076>>2]|0)|0,e)|0}if((w+1|0)<(c[g+72>>2]|0)){v=co(v,18056,e)|0}w=w+1|0}}v=co(v,17304,e)|0}do{if((c[g+72>>2]|0)!=0){if((c[g+156>>2]|0)==0){break}if((a[c[g+156>>2]|0]|0)==60){v=co(v,c[g+156>>2]|0,e)|0;if((c[o+37076>>2]|0)==3){v=co(v,23568,e)|0}p=p+(eA(c[g+156>>2]|0)|0)|0}}}while(0);p=p+1|0}}b=b+1|0;c[(c[o+108>>2]|0)+(c[o+116>>2]<<2)>>2]=c[c[(c[o+108>>2]|0)+(c[o+116>>2]<<2)>>2]>>2]}cz(o+84|0)}do{if((c[o+37076>>2]|0)==3){if((s|0)<=-1){break}v=co(v,25e3,e)|0}}while(0);if((c[o+37076>>2]|0)==3){v=co(v,16984,e)|0}cu(o+120|0,aR(v|0)|0)|0;ew(v);if((c[o+37072>>2]&1|0)==0){i=d;return}au(c[n>>2]|0,16608,(x=i,i=i+24|0,c[x>>2]=b,c[x+8>>2]=t,c[x+16>>2]=u,x)|0)|0;i=x;i=d;return}function cs(a){a=a|0;var b=0;b=a;if((b|0)!=0){c[b>>2]=b+12;c[b+16>>2]=b;c[b+12>>2]=0;c[b+4>>2]=0;c[b+20>>2]=0;c[b+8>>2]=0;c[b+24>>2]=0;c[b+32>>2]=-1;c[b+28>>2]=0;return}else{return}}function ct(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e=a;a=b;b=d;do{if((e|0)!=0){if((b|0)==0){break}do{if((a|0)!=0){if((c[e+28>>2]|0)==0){break}d=cv(e,a)|0;f=d;if((d|0)==0){g=1;h=g;return h|0}d=ev(12)|0;i=d;if((d|0)!=0){c[i+8>>2]=b;c[i>>2]=f;c[i+4>>2]=c[f+4>>2];c[c[f+4>>2]>>2]=i;c[f+4>>2]=i;i=e+28|0;c[i>>2]=(c[i>>2]|0)+1;g=0;h=g;return h|0}else{g=1;h=g;return h|0}}}while(0);g=cu(e,b)|0;h=g;return h|0}}while(0);g=1;h=g;return h|0}function cu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=a;a=b;do{if((d|0)!=0){if((a|0)==0){break}b=ev(12)|0;e=b;if((b|0)!=0){c[e+8>>2]=a;c[e+4>>2]=c[d+16>>2];c[e>>2]=c[c[d+16>>2]>>2];c[c[d+16>>2]>>2]=e;c[d+16>>2]=e;e=d+28|0;c[e>>2]=(c[e>>2]|0)+1;f=0;g=f;return g|0}else{f=1;g=f;return g|0}}}while(0);f=1;g=f;return g|0}function cv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=a;a=b;do{if((d|0)!=0){if((a|0)==0){break}if((c[d+28>>2]|0)==0){break}b=c[d>>2]|0;while(1){if((c[b+8>>2]|0)==(a|0)){e=3147;break}if((b|0)==0){e=3145;break}if((b|0)==(d+12|0)){e=3145;break}b=c[b>>2]|0}if((e|0)==3145){f=0;g=f;return g|0}else if((e|0)==3147){f=b;g=f;return g|0}}}while(0);f=0;g=f;return g|0}function cw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=a;a=b;if((a|0)==0){e=1;f=e;return f|0}b=cv(d,a)|0;a=b;if((b|0)==0){e=1;f=e;return f|0}b=c[d+32>>2]|0;while(1){if((b|0)<0){break}if((c[(c[d+24>>2]|0)+(b<<2)>>2]|0)==(a|0)){c[(c[d+24>>2]|0)+(b<<2)>>2]=c[a+4>>2]}b=b-1|0}c[c[a+4>>2]>>2]=c[a>>2];c[(c[a>>2]|0)+4>>2]=c[a+4>>2];c[a>>2]=0;c[a+4>>2]=0;ew(a);a=d+28|0;c[a>>2]=(c[a>>2]|0)-1;e=0;f=e;return f|0}function cx(a){a=a|0;var b=0,d=0,e=0;b=a;do{if((b|0)!=0){if((c[b+28>>2]|0)==0){break}if((c[b+24>>2]|0)!=0){ew(c[b+24>>2]|0)}c[b+24>>2]=0;a=c[b>>2]|0;while(1){if((a|0)!=0){d=(a|0)!=(b+12|0)}else{d=0}if(!d){break}e=c[a>>2]|0;ew(a);a=e}c[b>>2]=b+12;c[b+16>>2]=b;return}}while(0);return}function cy(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=a;if((d|0)==0){e=1;f=e;i=b;return f|0}a=ex(c[d+24>>2]|0,(c[d+32>>2]|0)+2<<2)|0;if((a|0)!=0){c[d+24>>2]=a;g=d+32|0;c[g>>2]=(c[g>>2]|0)+1;c[(c[d+24>>2]|0)+(c[d+32>>2]<<2)>>2]=c[d>>2]}if((a|0)!=0){e=0;f=e;i=b;return f|0}else{a=c[n>>2]|0;au(a|0,11248,(a=i,i=i+1|0,i=i+7&-8,c[a>>2]=0,a)|0)|0;i=a;e=1;f=e;i=b;return f|0}return 0}function cz(a){a=a|0;var b=0;b=a;if((b|0)==0){return}if((c[b+32>>2]|0)!=0){c[b+24>>2]=ex(c[b+24>>2]|0,c[b+32>>2]<<2)|0}else{ew(c[b+24>>2]|0);c[b+24>>2]=0}a=b+32|0;c[a>>2]=(c[a>>2]|0)-1;return}function cA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=a;do{if((d|0)!=0){a=cv(d,b)|0;e=a;if((a|0)==0){break}if((c[e>>2]|0)!=0){f=c[(c[e>>2]|0)+8>>2]|0;g=f;return g|0}else{f=0;g=f;return g|0}}}while(0);f=0;g=f;return g|0}function cB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=a;do{if((d|0)!=0){a=cv(d,b)|0;e=a;if((a|0)==0){break}if((c[e+4>>2]|0)!=0){f=c[(c[e+4>>2]|0)+8>>2]|0;g=f;return g|0}else{f=0;g=f;return g|0}}}while(0);f=0;g=f;return g|0}function cC(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=a;a=b;b=0;if((d|0)==0){return}b=ei(c[d+28>>2]|0,22080)|0;e=0;while(1){if((e|0)>=(c[d+28>>2]|0)){break}f=1;g=c[c[d>>2]>>2]|0;while(1){if((g|0)!=0){h=(g|0)!=(d+12|0)}else{h=0}if(!h){break}if((c[g+4>>2]|0)!=(d|0)){if((bm[a&7](c[(c[g+4>>2]|0)+8>>2]|0,c[g+8>>2]|0)|0)>0){f=0;i=c[g+4>>2]|0;c[c[i+4>>2]>>2]=g;c[(c[g>>2]|0)+4>>2]=i;c[g+4>>2]=c[i+4>>2];c[i>>2]=c[g>>2];c[i+4>>2]=g;c[g>>2]=i;g=i}}g=c[g>>2]|0}if((f|0)!=0){g=3236;break}ek(e,b)|0;e=e+1|0}ej(b)|0;return}function cD(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=a;a=b;if((d|0)==0){e=0;f=e;return f|0}if((a|0)==0){e=1;f=e;return f|0}if((cy(d)|0)==0){while(1){if((c[(c[d+24>>2]|0)+(c[d+32>>2]<<2)>>2]|0)!=0){g=(c[(c[d+24>>2]|0)+(c[d+32>>2]<<2)>>2]|0)!=(d+12|0)}else{g=0}if(!g){break}b=c[(c[(c[d+24>>2]|0)+(c[d+32>>2]<<2)>>2]|0)+8>>2]|0;if((b|0)!=0){bn[a&3](b)}c[(c[d+24>>2]|0)+(c[d+32>>2]<<2)>>2]=c[c[(c[d+24>>2]|0)+(c[d+32>>2]<<2)>>2]>>2]}cz(d)}cx(d);e=0;f=e;return f|0}function cE(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;b=a;a=c[b>>2]|0;d=c[b+4>>2]|0;e=c[a>>2]|0;f=c[a+4>>2]|0;g=c[a+8>>2]|0;h=c[a+12>>2]|0;i=f-e+1|0;j=h-g+1|0;k=c[b+8>>2]|0;l=b+44|0;m=57344;n=0;o=c[b+36>>2]|0;p=c[b+40>>2]|0;q=c[a+24>>2]|0;r=100;n=100;if((i|0)>2){s=(j|0)>4}else{s=0}L4379:do{if(s){if((c[b+108>>2]|0)>1){break}do{if((dv((i|0)/2|0,(i|0)/2|0,0,j-1|0,d,k)|0)!=3){if((dv((i*6|0|0)/8|0,(i<<1|0)/8|0,0,j-1|0,d,k)|0)==3){break}break L4379}}while(0);t=dC(d,i-1|0,j-1|0,i,k,0,4)|0;u=dC(d,i-1|0,j-2|0,i,k,0,4)|0;if((u-t|0)>=((i|0)/4|0|0)){break}do{if((i|0)<13){if((j|0)>=17){break}t=dC(d,0,0,i,k,0,3)|0;u=dC(d,0,1,i,k,0,3)|0;v=dC(d,i-1|0,0,i,k,0,4)|0;do{if((t|0)>(u|0)){if((v|0)<=0){break}n=(n*98|0|0)/100|0}}while(0)}}while(0);w=(i*5|0|0)/8|0;x=dC(d,w,0,j,k,0,2)|0;if((x|0)>((j|0)/8|0|0)){break}x=x+(dC(d,w,x,j,k,1,2)|0)|0;if((x|0)>((j+2|0)/4|0|0)){break}t=(dC(d,w,x,j,k,0,2)|0)+x|0;if((t|0)>((j*5|0|0)/8|0|0)){break}y=(x+t|0)/2|0;x=y;v=y;w=dC(d,0,x,i,k,0,3)|0;if((w|0)>((i<<2|0)/8|0|0)){break}w=w+(dC(d,w,x,i,k,1,3)|0)|0;if((w|0)>((i*5|0|0)/8|0|0)){break}t=dC(d,w,x,i,k,0,3)|0;t=(t+(w<<1)|0)/2|0;x=(j*11|0|0)/16|0;w=dC(d,i-1|0,x,i,k,0,4)|0;if((w|0)>((i|0)/4|0|0)){break}w=w+(dC(d,i-1-w|0,x,i,k,1,4)|0)|0;if((w|0)>((i|0)/2|0|0)){break}u=dC(d,i-1-w|0,x,i,k,0,4)|0;u=i-1-((u+(w<<1)|0)/2|0)|0;x=dC(d,t,0,j,k,0,2)|0;x=x+(dC(d,t,x,j,k,1,2)|0)|0;x=((x*3|0)+v|0)/4|0;if((dv(t,i-1|0,x,x,d,k)|0)>0){x=dC(d,t,v,j,k,0,2)|0;z=dC(d,t-1|0,v,j,k,0,2)|0;if((x|0)>(z|0)){n=(n*99|0|0)/100|0}x=dC(d,t,v,j,k,0,1)|0;z=dC(d,t+1|0,v,j,k,0,1)|0;if((z|0)<(x|0)){n=(n*99|0|0)/100|0}w=dC(d,i-1|0,0,i,k,0,4)|0;z=dC(d,i-1|0,1,i,k,0,4)|0;if((w|0)>(z|0)){n=(n*99|0|0)/100|0}do{if((dv(0,(i|0)/2|0,j-1|0,j-1|0,d,k)|0)>1){if((dv((i|0)/2|0,i-1|0,0,0,d,k)|0)<=1){break}n=(n*98|0|0)/100|0}}while(0);if((dC(d,0,j-1|0,i,k,0,3)|0)==0){n=(n*98|0|0)/100|0}n=(n*99|0|0)/100|0}x=(j|0)/5|0;while(1){if((x|0)>=((j*3|0|0)/4|0|0)){break}if((dv(t,i-1|0,x,x,d,k)|0)==0){A=3309;break}x=x+1|0}if((x|0)==((j*3|0|0)/4|0|0)){break}x=(j|0)/4|0;while(1){if((x|0)>((j*11|0|0)/16|0|0)){break}if((dv(0,u,x,x,d,k)|0)==0){A=3317;break}x=x+1|0}if((x|0)>((j*11|0|0)/16|0|0)){break}if((c[b+108>>2]|0)>0){break}w=i;y=(j|0)/4|0;x=y;z=y;while(1){if((x|0)>=((j|0)/2|0|0)){break}B=dC(d,0,x,i,k,0,3)|0;if((B|0)<(w|0)){w=B;z=x}x=x+1|0}x=z;t=dC(d,0,(j|0)/16|0,i,k,0,3)|0;u=dC(d,0,(x+((j|0)/16|0)|0)/2|0,i,k,0,3)|0;z=dC(d,0,((x+((j|0)/16|0)|0)/2|0)+1|0,i,k,0,3)|0;if((z|0)>(u|0)){u=z}v=dC(d,0,x,i,k,0,3)|0;z=dC(d,0,x-1|0,i,k,0,3)|0;if((z|0)<(v|0)){v=z}if(((u<<1)+((i|0)/16|0)|0)<(t+v|0)){n=(n*99|0|0)/100|0}if(((u<<1)+1+((i|0)/16|0)|0)<(t+v|0)){break}do{if((j|0)>=20){if((i|0)>=16){break}y=dC(d,0,(j|0)/5|0,i,k,0,3)|0;do{if((y|0)==(dC(d,0,(j|0)/4|0,i,k,0,3)|0)){C=dC(d,0,(j|0)/10|0,i,k,0,3)|0;if((C|0)<=(dC(d,0,(j|0)/4|0,i,k,0,3)|0)){break}C=dC(d,0,1,i,k,0,3)|0;if((C|0)<=((dC(d,0,(j|0)/4|0,i,k,0,3)|0)+1|0)){break}C=dC(d,i-1|0,0,i,k,0,4)|0;if((C|0)<=(dC(d,i-1|0,1,i,k,0,4)|0)){break}break L4379}}while(0)}}while(0);do{if((j|0)>=30){if((i|0)<=15){break}if((dC(d,(i|0)/4|0,(j*3|0|0)/10|0,j,k,1,2)|0)>0){do{if((dC(d,i-2|0,(j*3|0|0)/4|0,j,k,1,1)|0)>0){if((dv((i|0)/4|0,i-2|0,(j*3|0|0)/10|0,(j*3|0|0)/4|0,d,k)|0)==1){break L4379}else{break}}}while(0)}}}while(0);if((dv((i|0)/8|0,i-1-((i|0)/8|0)|0,(j*3|0|0)/10|0,(j*3|0|0)/4|0,d,k)|0)==1){n=(n*98|0|0)/100|0}do{if((j|0)>17){if((i|0)<=9){break}if((dC(d,0,(j|0)/2|0,i,k,0,3)|0)<((i|0)/2|0|0)){A=3361}else{if((dC(d,0,((j|0)/2|0)-1|0,i,k,0,3)|0)<((i|0)/2|0|0)){A=3361}}if((A|0)==3361){if((dC(d,(i|0)/4|0,(j*3|0|0)/10|0,j,k,1,2)|0)>0){if((dC(d,i-2|0,(j<<1|0)/3|0,j,k,1,1)|0)>0){y=dC(d,0,(j|0)/16|0,i,k,0,3)|0;if((y|0)>=(dC(d,i-1|0,j-1-((j|0)/16|0)|0,i,k,0,4)|0)){n=(n*98|0|0)/100|0}}}}}}while(0);y=dC(d,(i*3|0|0)/4|0,0,j,k,1,2)|0;do{if((y|0)<(dC(d,(i|0)/4|0,j-1|0,j,k,1,1)|0)){C=dC(d,((i*3|0|0)/4|0)-1|0,0,j,k,0,2)|0;if((C|0)>=(dC(d,((i|0)/4|0)+1|0,j-1|0,j,k,0,1)|0)){break}n=(n*98|0|0)/100|0}}while(0);if((p|0)!=0){n=(n*99|0|0)/100|0}if((o|0)==0){n=(n*98|0|0)/100|0}do{if((c[a+56>>2]|0)!=0){if((g|0)<(c[a+56>>2]|0)){break}if((n|0)>=100){break}if((n|0)<=96){break}n=96}}while(0);dy(a,53,n)|0;if((n|0)!=100){break}D=53;E=D;return E|0}}while(0);r=100;n=100;do{if((j|0)>4){if((j|0)<=(i|0)){F=0;break}F=(j<<1|0)>((c[a+60>>2]|0)-(c[a+56>>2]|0)|0)}else{F=0}}while(0);L4554:do{if(F){if((q|0)==1){break}if((c[b+108>>2]|0)>1){break}do{if((dv(0,i-1|0,0,0,d,k)|0)!=1){if((dv(0,i-1|0,1,1,d,k)|0)==1){break}break L4554}}while(0);if((dv(0,i-1|0,(j|0)/2|0,(j|0)/2|0,d,k)|0)!=1){break}do{if((dv(0,i-1|0,j-1|0,j-1|0,d,k)|0)!=1){if((dv(0,i-1|0,j-2|0,j-2|0,d,k)|0)==1){break}break L4554}}while(0);s=0;do{if((dv(0,i-1|0,(j*3|0|0)/4|0,(j*3|0|0)/4|0,d,k)|0)!=2){x=1;while(1){if((x|0)>=((j|0)/2|0|0)){break}if((dv(0,i-1|0,x,x,d,k)|0)==2){A=3405;break}x=x+1|0}if((x|0)>=((j|0)/2|0|0)){if((i|0)>6){n=(n*98|0|0)/100|0}else{n=(n*99|0|0)/100|0}}z=(j|0)/8|0;x=(j*7|0|0)/16|0;while(1){if((x|0)<(j-1|0)){G=(z|0)!=0}else{G=0}if(!G){break}if((dv(0,i-1|0,x,x,d,k)|0)!=1){z=z-1|0}x=x+1|0}do{if((j|0)>8){if((z|0)!=0){break}break L4554}}while(0)}else{z=dC(d,(i|0)/2|0,0,j,k,0,2)|0;if((dC(d,(i|0)/2|0,z,j,k,1,2)|0)<(j-1|0)){break L4554}z=dC(d,i-1|0,j-1-((j|0)/16|0)|0,i,k,0,4)|0;if((dC(d,i-z-1|0,j-1-((j|0)/16|0)|0,i,k,1,4)|0)<(i-1|0)){break L4554}z=dC(d,0,(j|0)/16|0,i,k,0,3)|0;if((dC(d,z,(j|0)/16|0,i,k,1,3)|0)<((i|0)/2|0|0)){break L4554}else{s=1;break}}}while(0);do{if((dv(0,i-1|0,0,0,d,k)|0)>1){if((dv(0,i-1|0,1,1,d,k)|0)<=1){break}break L4554}}while(0);w=dC(d,0,((j*7|0|0)/8|0)-1|0,i,k,0,3)|0;u=w;w=w+((dC(d,w,((j*7|0|0)/8|0)-1|0,i,k,1,3)|0)-1)|0;u=(u+w|0)/2|0;t=dC(d,i-1|0,(0/4|0)+1|0,i,k,0,4)|0;t=i-1-t-((w-u|0)/2|0)|0;w=(t-u+4|0)/8|0;t=t+w|0;u=u-w|0;do{if((dt(t,0,u,j-1|0,d,k,100)|0)<95){t=dC(d,i-1|0,(0/4|0)+1|0,i,k,0,4)|0;t=i-1-t|0;if((dt(t,0,u,j-1|0,d,k,100)|0)<95){break L4554}else{break}}}while(0);w=dC(d,(t+u|0)/2|0,(j|0)/2|0,i,k,1,3)|0;z=w;v=0;x=0;while(1){if((x|0)>=((j*7|0|0)/8|0|0)){break}if(((dC(d,t+((aa(x,u-t|0)|0)/(j|0)|0)|0,x,i,k,1,3)|0)-z|0)>(((i|0)/8|0)+1|0)){A=3442;break}x=x+1|0}if((x|0)<((j*7|0|0)/8|0|0)){n=(n*98|0|0)/100|0}if((x|0)<((j*6|0|0)/8|0|0)){n=(n*99|0|0)/100|0}if((x|0)<((j<<2|0)/8|0|0)){break}w=dC(d,u,j-1|0,i,k,1,4)|0;B=w;w=dC(d,u,j-2|0,i,k,1,4)|0;if((w|0)>(B|0)){B=w}z=B;w=dC(d,u,j-1|0,i,k,1,3)|0;B=w;w=dC(d,u,j-2|0,i,k,1,3)|0;if((w|0)>(B|0)){B=w}if((P(z-B|0)|0)>(((i|0)/8|0)+1|0)){v=v|1}if((v|0)!=0){break}z=i;x=0;B=0;while(1){if((x|0)>=((j*7|0|0)/16|0|0)){break}w=dC(d,0,x,i,k,0,3)|0;if((w|0)<(z|0)){z=w;B=x}x=x+1|0}if((t-z|0)<((i*7|0|0)/16|0|0)){n=(n*98|0|0)/100|0}if((t-z|0)<((i*6|0|0)/16|0|0)){n=(n*98|0|0)/100|0}if((t-z|0)<((i<<2|0)/16|0|0)){break}w=dC(d,0,(j|0)/2|0,i,k,0,3)|0;B=dC(d,w,(j|0)/2|0,i,k,1,3)|0;if((B|0)>(w+((j+16|0)/32|0)|0)){n=(n*98|0|0)/100|0}w=dC(d,0,0,i,k,0,3)|0;B=dC(d,0,1,i,k,0,3)|0;if((B|0)>(w|0)){if((j|0)>9){break}if((n|0)>99){n=(n*99|0|0)/100|0}}if((w|0)==(B|0)){B=dC(d,0,(j|0)/8|0,i,k,0,3)|0}do{if((B|0)>(w|0)){if((x|0)<=9){break}if((s|0)!=0){break}break L4554}}while(0);do{if((B|0)>(w|0)){if((s|0)!=0){break}if((n|0)<=99){break}n=(n*99|0|0)/100|0}}while(0);if((w|0)==(B|0)){if((dC(d,0,(j|0)/4|0,i,k,0,3)|0)>(w|0)){do{if((dC(d,i-1|0,(j|0)/8|0,i,k,0,4)|0)<=((i|0)/4|0|0)){if((dC(d,0,(j*3|0|0)/4|0,i,k,1,3)|0)>=(i-1|0)){break}n=(n*97|0|0)/100|0}}while(0)}}w=B;do{if((o|0)==0){s=(dC(d,i-1|0,1,i,k,0,4)|0)-((j|0)/6|0)|0;if((s|0)>(dC(d,i-1|0,(j|0)/4|0,i,k,0,4)|0)){break L4554}else{break}}}while(0);do{if((dC(d,i-1|0,(j*3|0|0)/4|0,i,k,0,4)|0)>((i|0)/2|0|0)){if(((du(f-((i|0)/4|0)|0,f,h-1|0,h,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}break L4554}}while(0);z=dC(d,(i|0)/8|0,0,j,k,0,2)|0;x=j;w=(i|0)/2|0;while(1){if((w|0)>=((i*3|0|0)/4|0|0)){break}B=dC(d,w,0,j,k,0,2)|0;if((B|0)<(x|0)){x=B}w=w+1|0}do{if((x|0)<((j|0)/2|0|0)){if((x+((j|0)/16|0)|0)<(z|0)){break}n=(n*98|0|0)/100|0}}while(0);s=dC(d,0,(j|0)/8|0,i,k,0,3)|0;if((s-(i-(dC(d,i-1|0,(j*7|0|0)/8|0,i,k,0,4)|0))|0)>((i|0)/4|0|0)){break}z=dC(d,0,0,j,k,0,2)|0;L4734:do{if((j|0)>=12){if((z|0)<=((j|0)/8|0|0)){break}if((z|0)>=((j|0)/2|0|0)){break}s=(dC(d,i-1|0,(j*3|0|0)/16|0,i,k,0,4)|0)-((i|0)/8|0)|0;do{if((s|0)<=(dC(d,i-1|0,z,i,k,0,4)|0)){y=(dC(d,i-1|0,(j*3|0|0)/16|0,i,k,0,4)|0)-((i|0)/8|0)|0;if((y|0)>(dC(d,i-1|0,z+1|0,i,k,0,4)|0)){break}z=dC(d,0,j-1-((j|0)/32|0)|0,i,k,0,3)|0;w=dC(d,0,j-2-((j|0)/32|0)|0,i,k,0,3)|0;if((z|0)<(w|0)){w=z}do{if((w-(dC(d,0,(j*3|0|0)/4|0,i,k,0,3)|0)|0)>((i|0)/8|0|0)){y=(dC(d,i-1|0,(j*3|0|0)/4|0,i,k,0,4)|0)-((i|0)/8|0)|0;if((y|0)<=(dC(d,i-1|0,j-1-((j|0)/32|0)|0,i,k,0,4)|0)){break}break L4554}}while(0);do{if((dC(d,0,z-1|0,i,k,0,3)|0)>1){if((i|0)>=6){break}n=(n*99|0|0)/100|0;if((dC(d,i-1|0,z-1|0,i,k,0,4)|0)>1){break L4554}else{break}}}while(0);break L4734}}while(0);break L4554}}while(0);if((i|0)>8){s=dC(d,0,(j*3|0|0)/4|0,i,k,0,3)|0;if((s-(dC(d,0,((j|0)/2|0)-1|0,i,k,0,3)|0)|0)>((i|0)/4|0|0)){n=(n*95|0|0)/100|0}s=dC(d,i-1|0,((j|0)/2|0)-1|0,i,k,0,4)|0;if((s-(dC(d,i-1|0,(j*3|0|0)/4|0,i,k,0,4)|0)|0)>((i|0)/8|0|0)){n=(n*99|0|0)/100|0}do{if((dC(d,i-1|0,(j|0)/4|0,i,k,0,4)|0)<((i|0)/3|0|0)){s=dC(d,i-1|0,(j|0)/16|0,i,k,0,4)|0;if((s-(dC(d,i-1|0,(j|0)/4|0,i,k,0,4)|0)|0)<=((i|0)/8|0|0)){break}n=(n*95|0|0)/100|0}}while(0)}z=dC(d,i-1-((i|0)/8|0)|0,j-1|0,j,k,0,1)|0;if((z|0)<=((j|0)/4|0|0)){z=z+(dC(d,i-1-((i|0)/8|0)|0,j-1-z|0,j,k,1,1)|0)|0;if((z|0)<=((j|0)/4|0|0)){z=dC(d,i-1-((i|0)/8|0)|0,j-1-z|0,i,k,0,4)|0;if((dC(d,i-1|0,(j|0)/4|0,i,k,0,4)|0)<((i|0)/2|0|0)){do{if((z<<1|0)>=(i|0)){if((dC(d,(i|0)/4|0,0,j,k,0,2)|0)>=((j|0)/2|0|0)){break}if((i|0)<17){n=(n*98|0|0)/100|0}if((i|0)<9){n=(n*97|0|0)/100|0}}}while(0)}}}do{if((i|0)<3){if((j|0)<=7){break}if((c[a+64>>2]|0)!=0){break}n=(n*96|0|0)/100|0}}while(0);u=0;z=i;x=0;while(1){if((x|0)>=((j|0)/2|0|0)){break}B=dC(d,0,x,i,k,0,3)|0;if((B|0)<(z|0)){z=B}if((B|0)>(z+((i|0)/8|0)|0)){A=3564;break}x=x+1|0}if((x|0)>=((j|0)/2|0|0)){n=(n*95|0|0)/100|0}if((c[b+108>>2]|0)>0){break}do{if((c[a+60>>2]|0)!=0){A=3574}else{if((n|0)<=98){A=3574;break}n=98}}while(0);if((A|0)==3574){if((o|0)==0){n=(n*99|0|0)/100|0}if((c[a+8>>2]|0)>(c[a+56>>2]|0)){n=(n*98|0|0)/100|0}if((c[a+12>>2]|0)<(((c[a+56>>2]|0)+((c[a+60>>2]|0)*3|0)|0)/4|0|0)){n=(n*98|0|0)/100|0}if(((c[a+12>>2]|0)-(c[a+8>>2]|0)|0)<(((c[a+60>>2]|0)-(c[a+52>>2]|0)|0)/2|0|0)){n=(n*98|0|0)/100|0}if((p|0)!=0){n=(n*99|0|0)/100|0}}dy(a,49,n)|0}}while(0);r=100;n=100;if((i|0)>2){H=(j|0)>4}else{H=0}do{if(H){if((c[b+108>>2]|0)>0){break}r=(cF(32)|0)<<1;if((c[l+24>>2]|0)>((r|0)/4|0|0)){break}if((c[l+40>>2]|0)>((r|0)/2|0|0)){break}if((c[l+8>>2]|0)>((r|0)/1|0|0)){break}if((c[l+56>>2]|0)>((r|0)/1|0|0)){break}G=dC(d,i-1|0,0,i,k,0,4)|0;if((G|0)<((dC(d,i-1|0,(j|0)/4|0,i,k,0,4)|0)-((i|0)/8|0)|0)){break}z=(c[a+264>>2]|0)-1|0;G=cI(a,c[l+12>>2]|0,c[l+28>>2]|0,f+i|0,g+((j|0)/4|0)|0)|0;q=cI(a,c[l+12>>2]|0,G,e-i|0,(g+h|0)/2|0)|0;F=c[l+28>>2]|0;s=cI(a,c[l+44>>2]|0,c[l+60>>2]|0,e,h)|0;y=cI(a,c[l+28>>2]|0,s,f+i|0,h)|0;C=s;z=s;L4857:while(1){if((z|0)==(c[l+12>>2]|0)){break}if((c[a+296+(z<<3)>>2]|0)>(c[a+296+(C<<3)>>2]|0)){C=z}do{if((c[a+296+(z<<3)>>2]|0)<(e+((i|0)/3|0)|0)){if((c[a+296+(z<<3)+4>>2]|0)>=(g+((j|0)/3|0)|0)){break}if((c[a+296+(C<<3)>>2]|0)>(e+((i|0)/2|0)|0)){A=3609;break L4857}}}while(0);z=(z+1|0)%(c[a+264>>2]|0)|0}I=cI(a,G,F,e-((i|0)/8|0)|0,(g+h|0)/2|0)|0;do{if((c[a+296+(I<<3)>>2]|0)<=(e+((i|0)/4|0)|0)){if((c[a+296+(I<<3)+4>>2]|0)>(g+((j<<1|0)/3|0)|0)){A=3615;break}}else{A=3615}}while(0);if((A|0)==3615){do{if((c[l+48>>2]|0)>=(f-((i|0)/8|0)|0)){if((c[l+52>>2]|0)>=(g+((j|0)/8|0)|0)){break}n=(n*99|0|0)/100|0}}while(0);do{if((c[l>>2]|0)<=(e+((i|0)/8|0)|0)){if((c[l+4>>2]|0)>=(g+((j|0)/8|0)|0)){break}n=(n*99|0|0)/100|0}}while(0);if((c[l+56>>2]|0)<=(c[l+24>>2]|0)){n=(n*97|0|0)/100|0}}if((s|0)==(C|0)){break}if(((c[a+296+(s<<3)+4>>2]|0)-(c[a+296+(C<<3)+4>>2]|0)|0)<((j|0)/4|0|0)){break}if((c[a+296+(q<<3)+4>>2]|0)>(g+((j|0)/2|0)|0)){break}if((c[a+296+(q<<3)>>2]|0)>(e+((i|0)/8|0)+((i|0)/16|0)|0)){break}if((c[a+296+(G<<3)+4>>2]|0)>((g+h|0)/2|0|0)){break}if((c[a+296+(G<<3)+4>>2]|0)>(((g*5|0)+(h*3|0)|0)/8|0|0)){n=(n*99|0|0)/100|0}if((c[a+296+(G<<3)>>2]|0)<((e+f+1|0)/2|0|0)){break}if((c[a+296+(G<<3)>>2]|0)<((e+(f<<1)|0)/3|0|0)){n=(n*99|0|0)/100|0}if((c[a+296+(F<<3)>>2]|0)>(((e*3|0)+f|0)/4|0|0)){break}if((c[a+296+(F<<3)>>2]|0)>(((e*7|0)+f|0)/8|0|0)){n=(n*99|0|0)/100|0}if((c[a+296+(F<<3)+4>>2]|0)<((g+(h*3|0)|0)/4|0|0)){break}if((c[a+296+(F<<3)+4>>2]|0)<((g+(h*7|0)|0)/8|0|0)){n=(n*99|0|0)/100|0}if((c[a+296+(s<<3)>>2]|0)>((e+(f<<1)|0)/3|0|0)){break}if((c[a+296+(s<<3)>>2]|0)>((e+f|0)/2|0|0)){n=(n*98|0|0)/100|0}if((c[a+296+(s<<3)>>2]|0)>(((e<<1)+2+f|0)/3|0|0)){n=(n*99|0|0)/100|0}if((c[a+296+(s<<3)+4>>2]|0)<(((g*3|0)+(h*5|0)|0)/8|0|0)){break}if((c[a+296+(s<<3)+4>>2]|0)<((g+(h*3|0)|0)/4|0|0)){n=(n*99|0|0)/100|0}if((c[a+296+(C<<3)+4>>2]|0)>((g+(h<<1)|0)/3|0|0)){break}if((c[a+296+(C<<3)+4>>2]|0)>((g+h|0)/2|0|0)){n=(n*99|0|0)/100|0}if((c[a+296+(C<<3)>>2]|0)<((e+(f*3|0)|0)/4|0|0)){break}if((c[a+296+(C<<3)>>2]|0)<((e+(f*7|0)|0)/8|0|0)){n=(n*99|0|0)/100|0}I=cG(a,F,y)|0;if((I|0)>((cF(256)|0)<<1|0)){break}if((I|0)>(cF(256)|0)){n=(n*99|0|0)/100|0}if((c[a+60>>2]|0)!=0){if((o|0)==0){n=(n*99|0|0)/100|0}if((p|0)!=0){n=(n*99|0|0)/100|0}}else{if((n|0)==100){n=99}}dy(a,50,n)|0;if((n|0)!=100){break}D=50;E=D;return E|0}}while(0);r=100;n=100;if((i|0)>3){J=(j|0)>4}else{J=0}L4979:do{if(J){if((c[b+108>>2]|0)>1){break}if((c[b+108>>2]|0)>0){n=(n*98|0|0)/100|0}if((i<<2|0)<(j|0)){n=(n*98|0|0)/100|0}r=(cF(32)|0)<<1;if((c[l+24>>2]|0)>((r|0)/1|0|0)){break}if((c[l+40>>2]|0)>((r|0)/1|0|0)){break}if((c[l+8>>2]|0)>((r|0)/1|0|0)){break}if((c[l+56>>2]|0)>((r|0)/1|0|0)){break}H=cI(a,c[l+12>>2]|0,c[l+28>>2]|0,f,g+((j*3|0|0)/16|0)|0)|0;I=cI(a,c[l+12>>2]|0,c[l+28>>2]|0,f,h-((j|0)/4|0)|0)|0;K=cI(a,H,I,e,g+((j|0)/2|0)|0)|0;L=cI(a,c[l+12>>2]|0,H,e-i|0,(g+h|0)/2|0)|0;M=c[l+28>>2]|0;N=c[l+44>>2]|0;do{if((c[a+296+((cI(a,N,c[l+60>>2]|0,e,g+((j|0)/2|0)|0)|0)<<3)>>2]|0)>=(f-((i|0)/4|0)|0)){if((c[a+296+(N<<3)>>2]|0)<(f-((i|0)/8|0)|0)){A=3704;break}if((c[a+296+(N<<3)+4>>2]|0)<(h-((j|0)/8|0)|0)){A=3704;break}}else{A=3704}}while(0);if(((c[a+296+(H<<3)>>2]|0)-(c[a+296+(K<<3)>>2]|0)|0)<((i|0)/4|0|0)){break}if(((c[a+296+(I<<3)>>2]|0)-(c[a+296+(K<<3)>>2]|0)|0)<((i|0)/4|0|0)){break}if(((c[a+296+(I<<3)>>2]|0)-(c[a+296+(M<<3)>>2]|0)|0)<((i|0)/2|0|0)){break}if(((c[a+296+(H<<3)>>2]|0)-(c[a+296+(L<<3)>>2]|0)|0)<((i|0)/2|0|0)){break}if((c[a+296+(L<<3)+4>>2]|0)>(g+((j|0)/2|0)|0)){break}if((c[a+296+(L<<3)>>2]|0)>(e+((i|0)/4|0)+((i|0)/16|0)|0)){break}if((c[a+296+(M<<3)+4>>2]|0)<(h-((j|0)/2|0)|0)){break}if((c[a+296+(M<<3)>>2]|0)>(e+((i|0)/4|0)|0)){break}if(((du((i|0)/2|0,(i|0)/2|0,0,(j|0)/6|0,d,k,1)|0)<<24>>24|0)==0){break}if(((du((i|0)/2|0,i-1|0,(j|0)/6|0,(j|0)/6|0,d,k,1)|0)<<24>>24|0)==0){break}if(((du((i|0)/2|0,(i|0)/2|0,j-1-((j|0)/8|0)|0,j-1|0,d,k,1)|0)<<24>>24|0)==0){break}do{if((dv((i|0)/2|0,(i|0)/2|0,0,j-1|0,d,k)|0)<2){if((dv((i|0)/3|0,(i|0)/3|0,0,j-1|0,d,k)|0)>=2){break}break L4979}}while(0);if((dv((i|0)/4|0,(i|0)/4|0,j-1-((j|0)/2|0)|0,j-1|0,d,k)|0)==0){break}if((dC(d,(i|0)/2|0,0,j,k,0,2)|0)>((j|0)/4|0|0)){break}if((dC(d,(i|0)/2|0,j-1|0,j,k,0,1)|0)>((j|0)/4|0|0)){break}do{if((dC(d,i-1|0,(j|0)/3|0,j,k,0,4)|0)>((j|0)/4|0|0)){if((dC(d,i-1|0,(j|0)/8|0,j,k,0,4)|0)<=((j|0)/4|0|0)){break}if((dC(d,(i|0)/4|0,(j|0)/8|0,j,k,1,3)|0)>=((j|0)/2|0|0)){break}break L4979}}while(0);if((dC(d,i-1|0,(j<<1|0)/3|0,j,k,0,4)|0)>((j|0)/4|0|0)){break}if((dC(d,i-1|0,(j*3|0|0)/4|0,j,k,0,4)|0)>((j|0)/2|0|0)){break}if((dC(d,i-1|0,(j*7|0|0)/8|0,j,k,0,4)|0)>((j|0)/2|0|0)){break}w=0;K=0;M=(j|0)/5|0;x=M;L=M;while(1){if((x|0)>=((j|0)/2|0|0)){break}z=dC(d,0,x,i,k,0,3)|0;if((z|0)>(w|0)){M=z;w=M;K=M;L=x}x=x+1|0}K=K-1|0;if((dC(d,K,L,1,k,0,1)|0)==1){L=L-1|0;K=K+((dC(d,K,L,i,k,0,3)|0)-1)|0}do{if((K|0)<((i|0)/3|0|0)){if((K+1+(dC(d,K+1|0,L,i,k,1,3)|0)|0)>=((i*3|0|0)/4|0|0)){break}break L4979}}while(0);if((dC(d,i-1|0,L,i,k,0,4)|0)>(((i|0)/8|0)+1|0)){n=(n*99|0|0)/100|0}w=0;I=0;M=j-1-((j|0)/8|0)|0;x=M;H=M;while(1){if((x|0)<((j|0)/2|0|0)){break}z=dC(d,0,x,i,k,0,3)|0;if((z|0)>(w|0)){M=z;w=M;I=M;H=x}x=x-1|0}I=I-1|0;do{if((I|0)<((i|0)/3|0|0)){if((I+1+(dC(d,I+1|0,H,i,k,1,3)|0)|0)>=((i*3|0|0)/4|0|0)){break}break L4979}}while(0);if((dC(d,i-1|0,H,i,k,0,4)|0)>(((i|0)/8|0)+1|0)){n=(n*99|0|0)/100|0}M=0;w=0;N=(j|0)/4|0;x=N;y=N;while(1){if((x|0)>=((j*3|0|0)/4|0|0)){break}z=dC(d,i-1|0,x,i,k,0,4)|0;if((z|0)>=(M|0)){M=z;y=x;w=M+(dC(d,i-1-M|0,x,i,k,1,4)|0)|0}x=x+1|0}if((j|0)>(i*3|0|0)){do{if((M|0)<2){if((w-M|0)>=((i|0)/2|0|0)){break}break L4979}}while(0)}do{if((M|0)>(((i|0)/8|0)+1|0)){if((M|0)>(dC(d,i-1|0,H,i,k,0,4)|0)){break}n=(n*99|0|0)/100|0}}while(0);do{if((M|0)>(((i|0)/8|0)+1|0)){if((M|0)>(dC(d,i-1|0,L,i,k,0,4)|0)){break}n=(n*99|0|0)/100|0}}while(0);if(((du(K,K,L,H,d,k,1)|0)<<24>>24|0)!=1){break}if(((du(I,I,L,H,d,k,1)|0)<<24>>24|0)!=1){break}if(((du(K,K,0,L,d,k,1)|0)<<24>>24|0)!=1){break}if(((du(I,I,H,j-1|0,d,k,1)|0)<<24>>24|0)!=1){break}L5137:do{if((c[b+108>>2]|0)>0){do{if((c[b+132>>2]|0)<((i|0)/2|0|0)){if((c[b+136>>2]|0)>=((j|0)/2|0|0)){break}break L5137}}while(0);break L4979}}while(0);dy(a,51,n)|0;if((n|0)!=100){break}D=51;E=D;return E|0}}while(0);r=100;n=100;if((j|0)>3){O=(i|0)>2}else{O=0}L5153:do{if(O){if((c[b+108>>2]|0)>1){break}r=(cF(32)|0)<<1;if((c[l+24>>2]|0)<((r|0)/16|0|0)){break}z=(c[a+264>>2]|0)-1|0;J=cI(a,0,z,e,g-j|0)|0;H=cI(a,0,z,e-(i<<1)|0,(g+(h*7|0)|0)/8|0)|0;I=cI(a,0,z,e-(i<<1)|0,((g*5|0)+(h*3|0)|0)/8|0)|0;L=cI(a,0,z,(e+(f<<1)|0)/3|0,h+j|0)|0;K=cI(a,H,L,f,((g*3|0)+h|0)/4|0)|0;M=L;z=L;while(1){if((z|0)==(H|0)){break}if((c[a+296+(z<<3)+4>>2]|0)<(c[a+296+(M<<3)+4>>2]|0)){M=z}if((c[a+296+(z<<3)+4>>2]|0)>((c[a+296+(M<<3)+4>>2]|0)+1|0)){A=3816;break}if((c[a+296+(z<<3)>>2]|0)<(e+((i|0)/4|0)|0)){A=3818;break}z=(z+1|0)%(c[a+264>>2]|0)|0}if((c[a+196>>2]|0)>1){z=(c[a+264>>2]|0)-1|0;B=(c[a+268>>2]|0)-1|0;if((c[a+196>>2]|0)>2){B=(c[a+272>>2]|0)-1|0;n=(n*99|0|0)/100|0}Q=cI(a,z+1|0,B,f,h)|0;R=cI(a,z+1|0,B,e,h)|0;if(((c[a+296+(J<<3)>>2]|0)-(c[a+296+(H<<3)>>2]|0)|0)<(((i|0)/4|0)+1|0)){n=(n*96|0|0)/100|0}z=cI(a,z+1|0,B,e,g)|0;do{if(((c[a+296+(z<<3)>>2]|0)-e|0)<(((i|0)/4|0)+1|0)){if(((c[a+296+(z<<3)+4>>2]|0)-g|0)>=(((j|0)/4|0)+1|0)){break}if((i|0)<=7){break}n=(n*97|0|0)/100|0}}while(0)}else{Q=cI(a,M,J,(e+(f*3|0)|0)/4|0,h-((j|0)/8|0)|0)|0;R=cI(a,M,J,e,h-((j|0)/8|0)|0)|0;if(((c[a+296+(Q<<3)+4>>2]|0)-g|0)>((j*3|0|0)/4|0|0)){A=3833}else{if(((c[a+296+(R<<3)+4>>2]|0)-g|0)>((j*3|0|0)/4|0|0)){A=3833}}if((A|0)==3833){n=(n*96|0|0)/100|0}}if((M|0)==(Q|0)){break}if((c[a+296+(J<<3)+4>>2]|0)>(g+((j|0)/8|0)|0)){break}if(((c[a+296+(H<<3)+4>>2]|0)-(c[a+296+(J<<3)+4>>2]|0)|0)<((j|0)/2|0|0)){break}if(((c[a+296+(K<<3)>>2]|0)-(c[a+296+(H<<3)>>2]|0)|0)<((i|0)/4|0|0)){break}if((P((c[a+296+(K<<3)+4>>2]|0)-(c[a+296+(H<<3)+4>>2]|0)|0)|0)>((j|0)/4|0|0)){break}if((c[a+296+(H<<3)>>2]|0)>(e+((i|0)/8|0)|0)){break}if((c[a+296+(H<<3)+4>>2]|0)>(h-((j|0)/8|0)|0)){break}if(((c[a+296+(L<<3)+4>>2]|0)-(c[a+296+(H<<3)+4>>2]|0)|0)<((j|0)/8|0|0)){break}if(((c[a+296+(L<<3)+4>>2]|0)-(c[a+296+(H<<3)+4>>2]|0)|0)<((j|0)/6|0|0)){n=(n*99|0|0)/100|0}if(((c[a+296+(L<<3)+4>>2]|0)-(c[a+296+(K<<3)+4>>2]|0)|0)<(((j|0)/16|0)+1|0)){break}if(((c[a+296+(L<<3)+4>>2]|0)-(c[a+296+(K<<3)+4>>2]|0)<<1|0)<=((c[a+296+(K<<3)+4>>2]|0)-(c[a+296+(Q<<3)+4>>2]|0)|0)){break}if(((c[a+296+(L<<3)+4>>2]|0)-(c[a+296+(K<<3)+4>>2]|0)|0)<((c[a+296+(K<<3)+4>>2]|0)-(c[a+296+(Q<<3)+4>>2]|0)|0)){n=(n*99|0|0)/100|0}if(((c[a+296+(L<<3)+4>>2]|0)-(c[a+296+(K<<3)+4>>2]|0)|0)<((j|0)/6|0|0)){n=(n*99|0|0)/100|0}if(((c[a+296+(L<<3)+4>>2]|0)-(c[a+296+(K<<3)+4>>2]|0)|0)<((j|0)/8|0|0)){n=(n*99|0|0)/100|0}if((c[a+296+(L<<3)+4>>2]|0)<(h-1-((j|0)/8|0)|0)){break}if((c[a+296+(K<<3)>>2]|0)<(e+((i|0)/4|0)|0)){break}if((c[a+296+(K<<3)>>2]|0)<(e+((i|0)/2|0)|0)){n=(n*98|0|0)/100|0}if((c[a+296+(K<<3)+4>>2]|0)>(h-1|0)){break}if((c[a+296+(K<<3)+4>>2]|0)>(h-((j|0)/16|0)|0)){break}if((c[a+296+(K<<3)+4>>2]|0)>=(h|0)){break}if((c[a+296+(M<<3)>>2]|0)<(e+((i|0)/3|0)|0)){break}if((c[a+296+(M<<3)+4>>2]|0)>(g+((j<<1|0)/3|0)|0)){break}if(((c[a+296+(Q<<3)+4>>2]|0)-(c[a+296+(M<<3)+4>>2]|0)|0)<(((j|0)/16|0)+1|0)){break}if((c[a+296+(Q<<3)>>2]|0)<(e+((i|0)/3|0)|0)){break}if((c[a+296+(R<<3)>>2]|0)>(e+((i|0)/2|0)|0)){break}if((c[a+296+(R<<3)>>2]|0)>(e+((i|0)/3|0)|0)){n=(n*99|0|0)/100|0}if((c[a+296+(Q<<3)+4>>2]|0)<(g+((j|0)/3|0)|0)){break}if((c[a+296+(Q<<3)>>2]|0)<(e+((i|0)/2|0)|0)){n=(n*96|0|0)/100|0}do{if((c[a+296+(Q<<3)>>2]|0)<((c[l+32>>2]|0)-((i|0)/2|0)|0)){if((c[l+36>>2]|0)<(h-1-((j|0)/8|0)|0)){break}n=(n*96|0|0)/100|0}}while(0);if((c[a+296+(R<<3)+4>>2]|0)<(g+((j|0)/3|0)|0)){break}if((P((c[a+296+(K<<3)+4>>2]|0)-(c[a+296+(H<<3)+4>>2]|0)|0)|0)>((j|0)/4|0|0)){break}y=cG(a,J,I)|0;if((y|0)>((cF(256)|0)<<1|0)){break}if((H|0)!=(I|0)){y=cG(a,I,H)|0}else{y=0}if((y|0)>((cF(256)|0)<<1|0)){break}y=cG(a,H,K)|0;if((y|0)>(cF(256)|0)){break}y=cG(a,K,L)|0;if((y|0)>(cF(256)|0)){break}y=cG(a,Q,R)|0;if((y|0)>((cF(256)|0)<<1|0)){break}do{if((c[b+108>>2]|0)==1){if(((c[a+296+(M<<3)>>2]|0)-(c[a+296+(J<<3)>>2]|0)|0)<=((i|0)/4|0|0)){break}break L5153}}while(0);if((o|0)==0){n=(n*99|0|0)/100|0}dy(a,52,n)|0}}while(0);r=100;n=100;if((i|0)>3){S=(j|0)>4}else{S=0}L5319:do{if(S){if((c[b+108>>2]|0)>2){break}do{if((dC(d,0,(j|0)/4|0,i,k,0,3)|0)>((i|0)/2|0|0)){if((dC(d,i-1|0,0,j,k,0,2)|0)<=((j|0)/4|0|0)){break}break L5319}}while(0);if((dC(d,0,(j|0)/2|0,i,k,0,3)|0)>((i|0)/4|0|0)){break}if((dC(d,0,(j*3|0|0)/4|0,i,k,0,3)|0)>((i|0)/4|0|0)){break}if((dC(d,i-1|0,(j*3|0|0)/4|0,i,k,0,4)|0)>((i|0)/2|0|0)){break}do{if((dv(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g,h,c[a+68>>2]|0,k)|0)!=3){if((dv(e+((i*5|0|0)/8|0)|0,e+((i*5|0|0)/8|0)|0,g,h,c[a+68>>2]|0,k)|0)==3){A=3940;break}do{if((dv(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g+((j|0)/4|0)|0,h,c[a+68>>2]|0,k)|0)!=2){if((dv(e+((i*5|0|0)/8|0)|0,e+((i*5|0|0)/8|0)|0,g+((j|0)/4|0)|0,h,c[a+68>>2]|0,k)|0)==2){break}break L5319}}while(0);if((dC(c[a+68>>2]|0,(e+f|0)/2|0,g,j,k,0,2)|0)<((j|0)/2|0|0)){break L5319}else{n=(n*99|0|0)/100|0;break}}else{A=3940}}while(0);if((A|0)==3940){do{if((dC(c[a+68>>2]|0,e+((i|0)/2|0)|0,g,i,k,0,2)|0)>((j|0)/8|0|0)){if((dC(c[a+68>>2]|0,f-((i|0)/4|0)|0,g,i,k,0,2)|0)<=((j|0)/8|0|0)){break}break L5319}}while(0)}if((dv(e,f,h-((j|0)/4|0)|0,h-((j|0)/4|0)|0,c[a+68>>2]|0,k)|0)!=2){break}x=g+((j|0)/6|0)|0;while(1){if((x|0)>=(g+((j|0)/2|0)|0)){break}w=dC(c[a+68>>2]|0,f,x,i,k,0,4)|0;if((w|0)>((i|0)/2|0|0)){A=3949;break}w=w+(dC(c[a+68>>2]|0,f-w+1|0,x-1|0,i,k,0,4)|0)|0;if((w|0)>((i|0)/2|0|0)){A=3951;break}x=x+1|0}if((x|0)>=(g+((j|0)/2|0)|0)){break}if((dC(c[a+68>>2]|0,e,h-((j|0)/3|0)|0,i,k,0,3)|0)>((i|0)/4|0|0)){break}if((dC(c[a+68>>2]|0,f,h-((j|0)/3|0)|0,i,k,0,4)|0)>((i|0)/4|0|0)){break}if((c[b+108>>2]|0)!=1){break}if((c[b+136>>2]|0)<((j|0)/2|0|0)){n=(n*95|0|0)/100|0}if((c[b+128>>2]|0)<((j|0)/4|0|0)){break}do{if((c[b+124>>2]|0)<1){if((i-1-(c[b+132>>2]|0)|0)<=2){break}n=(n*99|0|0)/100|0}}while(0);do{if((dC(c[a+68>>2]|0,e,g+((j|0)/2|0)|0,i,k,0,3)|0)>0){if((dC(c[a+68>>2]|0,e,g+((j|0)/4|0)|0,i,k,0,3)|0)!=0){break}if((dC(c[a+68>>2]|0,e,h-((j|0)/4|0)|0,i,k,0,3)|0)!=0){break}n=(n*97|0|0)/100|0}}while(0);t=dC(d,0,(j|0)/8|0,i,k,0,3)|0;v=dC(d,0,j-1-((j|0)/8|0)|0,i,k,0,3)|0;u=dC(d,0,(j|0)/2|0,i,k,0,3)|0;do{if((t+v-(u<<1)|0)<(-2-((i|0)/16|0)|0)){if((t+u+v|0)<=0){break}break L5319}}while(0);do{if((t+v-(u<<1)|0)<1){if((t+u+v|0)<=0){break}n=(n*99|0|0)/100|0}}while(0);w=i;x=0;while(1){if((x|0)>=((j|0)/4|0|0)){break}t=dC(d,0,x,i,k,0,3)|0;u=dC(d,t,x,i,k,1,3)|0;if((u+t|0)>((i|0)/2|0|0)){if((u|0)>((i|0)/4|0|0)){A=3983;break}}if((t|0)<(w|0)){w=t}else{if((t|0)>(w|0)){A=3987;break}}x=x+1|0}do{if((x|0)<((j|0)/4|0|0)){if((t+u|0)>((i|0)/2|0|0)){break}break L5319}}while(0);z=0;x=(j|0)/2|0;while(1){if((x|0)>=(j|0)){break}if((dv((i|0)/2|0,i-1|0,x,x,d,k)|0)>1){z=z+1|0}if((z|0)>((j|0)/8|0|0)){A=3999;break}x=x+1|0}if((x|0)<(j|0)){break}if((p|0)!=0){n=(n*99|0|0)/100|0}if((o|0)==0){n=(n*98|0|0)/100|0}if((c[a+24>>2]|0)!=0){n=(n*98|0|0)/100|0}dy(a,54,n)|0;m=54}}while(0);r=100;n=100;if((i|0)>2){T=(j|0)>4}else{T=0}L5450:do{if(T){if((c[b+108>>2]|0)>1){break}if((dC(d,(i|0)/2|0,0,j,k,0,2)|0)>((j|0)/8|0|0)){break}if((dv(0,i-1|0,(j*3|0|0)/4|0,(j*3|0|0)/4|0,d,k)|0)!=1){break}x=0;m=0;S=0;while(1){if((x|0)>=((j|0)/2|0|0)){break}B=dC(d,0,x,i,k,0,3)|0;if((m|0)>0){if((B|0)>((i|0)/4|0|0)){A=4025;break}}B=dC(d,B,x,i,k,1,3)|0;if((B|0)>(m|0)){m=B;S=x}x=x+1|0}do{if((m|0)>=((i|0)/4|0|0)){if((x|0)==((j|0)/2|0|0)){break}B=dC(d,0,(j|0)/2|0,i,k,0,3)|0;B=dC(d,B,(j|0)/2|0,i,k,1,3)|0;if((m|0)<(B<<1|0)){break L5450}w=0;x=x+((j|0)/16|0)|0;while(1){if((x|0)>=(j|0)){break}if((dv(0,i-1|0,x,x,d,k)|0)!=1){A=4038;break}B=dC(d,i-1|0,x,i,k,0,4)|0;if((B|0)<(w|0)){A=4040;break}if((B-1|0)>(w|0)){w=B-1|0}x=x+1|0}do{if((x|0)>=(j|0)){if((w|0)<((i|0)/3|0|0)){break}B=dC(d,i-1|0,0,j,k,0,2)|0;B=B+((dC(d,i-1|0,B,j,k,1,2)|0)+((j|0)/16|0))|0;z=dC(d,i-1|0,B,i,k,0,4)|0;if((B|0)<((j|0)/2|0|0)){if((z|0)>(B|0)){break L5450}B=dC(d,0,B,i,k,0,3)|0;do{if((B|0)>((i|0)/4|0|0)){if((B|0)>(z+((i|0)/16|0)|0)){break}break L5450}}while(0)}S=dC(d,0,(j*3|0|0)/8|0,i,k,0,3)|0;if((S|0)<=((dC(d,i-1|0,(j*3|0|0)/8|0,i,k,0,4)|0)+((i|0)/8|0)|0)){n=(n*98|0|0)/100|0}do{if((dv(0,i-1|0,(j|0)/4|0,(j|0)/4|0,d,k)|0)==1){if((dC(d,0,(j|0)/4|0,i,k,0,3)|0)>=((i|0)/2|0|0)){break}n=(n*96|0|0)/100|0}}while(0);do{if((c[a+60>>2]|0)!=0){if((j|0)>=((c[a+60>>2]|0)-(c[a+56>>2]|0)|0)){break}n=(n*99|0|0)/100|0}}while(0);do{if((c[a+60>>2]|0)!=0){if((j<<1|0)>=((c[a+60>>2]|0)-(c[a+56>>2]|0)|0)){break}n=(n*96|0|0)/100|0}}while(0);if((j|0)>(i*3|0|0)){n=(n*99|0|0)/100|0}if((p|0)!=0){n=(n*99|0|0)/100|0}if((o|0)==0){n=(n*99|0|0)/100|0}S=a;R=n;dy(S,55,R)|0;break L5450}}while(0);break L5450}}while(0)}}while(0);r=100;n=100;if((i|0)>2){U=(j|0)>4}else{U=0}L5537:do{if(U){if((c[b+108>>2]|0)!=2){break}if((dv(e,f,g+((j|0)/4|0)|0,g+((j|0)/4|0)|0,c[a+68>>2]|0,k)|0)!=2){break}do{if((dv(e,f,h-((j|0)/4|0)|0,h-((j|0)/4|0)|0,c[a+68>>2]|0,k)|0)!=2){if((dv(e,f,h-((j*3|0|0)/8|0)|0,h-((j*3|0|0)/8|0)|0,c[a+68>>2]|0,k)|0)==2){break}break L5537}}while(0);if(((du(e,e+((i|0)/4|0)|0,h-((j|0)/4|0)|0,h-((j|0)/4|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){break}if(((du(e,e+((i|0)/2|0)|0,g+((j|0)/4|0)|0,g+((j|0)/4|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){break}if(((du(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g+((j|0)/4|0)|0,h-((j|0)/4|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){break}w=0;t=0;u=0;T=g+((j|0)/3|0)|0;x=T;z=T;while(1){if((x|0)>(h-((j|0)/3|0)|0)){break}B=dC(c[a+68>>2]|0,e,x,i,k,0,3)|0;do{if((B|0)>(w|0)){A=4095}else{if((P(B-w|0)|0)>((i|0)/8|0|0)){break}T=dC(c[a+68>>2]|0,e+B|0,x,i,k,1,3)|0;t=T;if((T|0)>((i|0)/2|0|0)){A=4095}}}while(0);if((A|0)==4095){A=0;if((B|0)>(w|0)){w=B}z=x;if((t|0)>(u|0)){u=t}}x=x+1|0}do{if((z|0)<(h-((j|0)/3|0)|0)){if((w|0)<((i|0)/8|0|0)){if((u|0)<=((i|0)/2|0|0)){break}}if((w|0)>((i|0)/2|0|0)){break}if((w|0)<((i|0)/4|0|0)){n=(n*99|0|0)/100|0}if((w|0)<=((i|0)/8|0|0)){n=(n*98|0|0)/100|0}B=dC(c[a+68>>2]|0,f,h-((j|0)/4|0)|0,i,k,0,4)|0;do{if((B|0)>(dC(c[a+68>>2]|0,f,h-((j|0)/5|0)|0,i,k,0,4)|0)){if((B|0)<=(dC(c[a+68>>2]|0,f,h-((j<<1|0)/5|0)|0,i,k,0,4)|0)){break}break L5537}}while(0);B=0;while(1){if((B|0)>=(c[b+108>>2]|0)){break}if((c[b+112+(B*28|0)+24>>2]|0)<(z-g+1|0)){A=4117;break}if((c[b+112+(B*28|0)+24>>2]|0)<(z-g+((j|0)/8|0)|0)){A=4119;break}B=B+1|0}if((B|0)==(c[b+108>>2]|0)){break L5537}B=0;while(1){if((B|0)>=(c[b+108>>2]|0)){break}if((c[b+112+(B*28|0)+16>>2]|0)>(z-g-1|0)){A=4127;break}B=B+1|0}if((B|0)==(c[b+108>>2]|0)){break L5537}t=z;w=0;T=g+((j|0)/3|0)|0;x=T;z=T;u=T;while(1){if((x|0)>(h-((j|0)/3|0)|0)){break}B=dC(c[a+68>>2]|0,f,x,i,k,0,4)|0;if((B|0)>=(w|0)){u=x}do{if((B|0)>(w|0)){A=4139}else{if((P(B-w|0)|0)>((i+4|0)/8|0|0)){break}if((dC(c[a+68>>2]|0,f-B|0,x,i,k,1,4)|0)>((i|0)/2|0|0)){A=4139}}}while(0);if((A|0)==4139){A=0;if((B|0)>(w|0)){w=B}z=x}x=x+1|0}if((z|0)>(g+((j|0)/2|0)+((j|0)/10|0)|0)){break L5537}if((w|0)>((i|0)/2|0|0)){break L5537}do{if((dv(e,f,z,z,c[a+68>>2]|0,k)|0)!=1){if((dv(e,f,z+1|0,z+1|0,c[a+68>>2]|0,k)|0)==1){break}if((dv(e,f,(z+u|0)/2|0,(z+u|0)/2|0,c[a+68>>2]|0,k)|0)==1){break}break L5537}}while(0);if((P(t-z|0)|0)>((j+5|0)/10|0|0)){n=(n*99|0|0)/100|0}if((P(t-z|0)|0)>((j+4|0)/8|0|0)){n=(n*99|0|0)/100|0}if((P(t-z|0)|0)>((j+2|0)/4|0|0)){break L5537}z=i;x=0;while(1){if((x|0)>=(((j|0)/8|0)+2|0)){break}B=dC(d,0,x,i,k,0,3)|0;if((B|0)<(z|0)){z=B}if((B|0)>(z+((i|0)/16|0)|0)){A=4163;break}x=x+1|0}if((x|0)<(((j|0)/8|0)+2|0)){break L5537}z=i;x=0;while(1){if((x|0)>=(((j|0)/8|0)+2|0)){break}B=dC(d,0,j-1-x|0,i,k,0,3)|0;if((B|0)<(z|0)){z=B}if((B|0)>(z+((i|0)/16|0)|0)){A=4173;break}x=x+1|0}if((x|0)<(((j|0)/8|0)+2|0)){break L5537}do{if((j|0)>16){if((dv(0,i-1|0,j-1|0,j-1|0,d,k)|0)<=1){break}if((dC(d,0,j-1|0,i,k,0,3)|0)>=(((i|0)/8|0)+1|0)){break}break L5537}}while(0);z=0;x=(j|0)/2|0;while(1){if((x|0)>=(j|0)){break}if((dv(0,i-1|0,x,x,d,k)|0)>2){z=z+1|0}if((z|0)>((j|0)/8|0|0)){A=4187;break}x=x+1|0}if((x|0)<(j|0)){break L5537}if((dC(d,i-1|0,0,i,k,0,4)|0)==0){n=(n*99|0|0)/100|0}if((dv(0,i-1|0,j-1|0,j-1|0,d,k)|0)>1){n=(n*98|0|0)/100|0}if((dv(i-1|0,i-1|0,(j|0)/2|0,j-1|0,d,k)|0)>1){n=(n*98|0|0)/100|0}if((dv(0,i-1|0,0,0,d,k)|0)>1){n=(n*98|0|0)/100|0}if((j|0)>15){if((dv(0,i-1|0,1,1,d,k)|0)>1){n=(n*98|0|0)/100|0}}if((o|0)==0){if(((c[a+56>>2]|0)-(c[a+8>>2]|0)<<3|0)>=(j|0)){n=(n*98|0|0)/100|0}else{n=(n*99|0|0)/100|0}}do{if((p|0)!=0){if(((c[a+12>>2]|0)-(c[a+60>>2]|0)<<3|0)<(j|0)){break}n=(n*99|0|0)/100|0}}while(0);dy(a,56,n)|0;break L5537}}while(0)}}while(0);r=100;n=100;if((i|0)>2){V=(j|0)>4}else{V=0}L5734:do{if(V){if((c[b+108>>2]|0)>1){break}do{if((dv(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g,h-((j|0)/4|0)|0,c[a+68>>2]|0,k)|0)!=2){if((dv(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g,h,c[a+68>>2]|0,k)|0)==3){break}if((dv(e+((i*3|0|0)/8|0)|0,e+((i*3|0|0)/8|0)|0,g,h,c[a+68>>2]|0,k)|0)==3){break}if((dv(e+((i|0)/4|0)|0,f-((i|0)/4|0)|0,g,h,c[a+68>>2]|0,k)|0)==3){break}break L5734}}while(0);if((dv(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g,g+((j|0)/4|0)|0,c[a+68>>2]|0,k)|0)<1){break}if((dv(e+((i|0)/2|0)|0,f,g+((j|0)/2|0)|0,g+((j|0)/2|0)|0,c[a+68>>2]|0,k)|0)<1){break}do{if((dv(e,f,g+((j|0)/4|0)|0,g+((j|0)/4|0)|0,c[a+68>>2]|0,k)|0)!=2){if((dv(e,f,g+((j*3|0|0)/8|0)|0,g+((j*3|0|0)/8|0)|0,c[a+68>>2]|0,k)|0)==2){break}break L5734}}while(0);if((dv(f-((i|0)/8|0)|0,f,g+((j|0)/4|0)|0,g+((j|0)/4|0)|0,c[a+68>>2]|0,k)|0)==0){n=(n*97|0|0)/100|0}w=0;U=g+((j|0)/2|0)|0;x=U;z=U;while(1){if((x|0)>(h-((j|0)/4|0)|0)){break}B=dC(c[a+68>>2]|0,e,x,i,k,0,3)|0;if((B|0)>(w|0)){w=B;z=x}x=x+1|0}do{if((w|0)>=1){if((w|0)<((i|0)/8|0|0)){break}x=z;do{if((w|0)<((i|0)/2|0|0)){B=(dC(c[a+68>>2]|0,e+w-1|0,x,((j|0)/8|0)+1|0,k,0,2)|0)/2|0;U=x+B|0;z=U;x=U;B=dC(c[a+68>>2]|0,e+w-1|0,x,(i|0)/2|0,k,0,3)|0;w=w+B|0;if((w|0)<((i|0)/2|0|0)){break L5734}else{break}}}while(0);if((i|0)>5){do{if((dv(e+((i|0)/2|0)|0,f,z,h,c[a+68>>2]|0,k)|0)!=1){if((dv(e+((i|0)/2|0)|0,f,z,h-((j|0)/8|0)|0,c[a+68>>2]|0,k)|0)==1){break}break L5734}}while(0)}if((dv(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,z,h,c[a+68>>2]|0,k)|0)>1){break L5734}if((dv(e+((i|0)/2|0)|0,f,z,z,c[a+68>>2]|0,k)|0)!=1){break L5734}if((c[b+108>>2]|0)<1){if((i|0)>=8){break L5734}n=(n*98|0|0)/100|0}else{if((c[b+136>>2]|0)>=(z+1|0)){break L5734}if((c[b+128>>2]|0)>(z-1|0)){break L5734}do{if((c[b+108>>2]|0)>1){if((c[b+156>>2]|0)>(z-1|0)){break L5734}else{break}}}while(0)}L5808:do{if((dC(c[a+68>>2]|0,e,h,j,k,0,3)|0)>((i|0)/3|0|0)){if((dC(c[a+68>>2]|0,e,h-1|0,j,k,0,3)|0)<=((i|0)/3|0|0)){break}do{if((c[a+60>>2]|0)!=0){if((c[a+60>>2]|0)==0){break L5808}if((o|0)==0){break}if((p|0)==0){break L5808}}}while(0);n=(n*98|0|0)/100|0}}while(0);w=0;U=g+((j|0)/3|0)|0;x=U;z=U;while(1){if((x|0)>(h-((j|0)/3|0)|0)){break}B=dC(c[a+68>>2]|0,f,x,i,k,0,4)|0;if((B|0)>(w|0)){w=B;z=x}x=x+1|0}if((w|0)>((i|0)/2|0|0)){break L5734}t=dC(d,i-1|0,(j|0)/8|0,i,k,0,4)|0;if((t|0)>((i|0)/2|0|0)){break L5734}v=dC(d,i-1|0,j-1-((j|0)/8|0)|0,i,k,0,4)|0;u=dC(d,i-1|0,(j|0)/2|0,i,k,0,4)|0;if((t+v-(u<<1)|0)<(-1-((i|0)/16|0)|0)){break L5734}t=dC(d,i-1|0,(j|0)/4|0,i,k,0,4)|0;if((t|0)>((i|0)/2|0|0)){break L5734}v=dC(d,i-1|0,j-1-((j|0)/8|0)|0,i,k,0,4)|0;x=(j|0)/4|0;while(1){if((x|0)>=(j-1-((j|0)/4|0)|0)){break}u=dC(d,i-1|0,x,i,k,0,4)|0;if((u|0)>(t+((aa(v-t|0,(x<<1)-((j|0)/2|0)|0)|0)/(j|0)|0)+((i|0)/16|0)|0)){A=4293;break}x=x+1|0}if((x|0)<(j-1-((j|0)/4|0)|0)){break L5734}w=dC(d,i-1|0,(j*6|0|0)/8|0,i,k,0,4)|0;do{if((w|0)>0){w=w-1|0;x=dC(d,i-w-1|0,j-1|0,j,k,0,1)|0;if((x|0)<((j|0)/8|0|0)){break L5734}else{break}}}while(0);do{if((j|0)>=16){if((i|0)<=9){break}U=dC(d,0,(j|0)/4|0,i,k,0,3)|0;if((U-(dC(d,0,(j|0)/16|0,i,k,0,3)|0)|0)<=((i|0)/6|0|0)){break}U=dC(d,i-1|0,(j|0)/4|0,i,k,0,4)|0;if((U-(dC(d,i-1|0,(j|0)/16|0,i,k,0,4)|0)|0)<=((i|0)/6|0|0)){break}break L5734}}while(0);if((c[a+60>>2]|0)!=0){if((p|0)!=0){n=(n*99|0|0)/100|0}do{if((c[a+56>>2]|0)!=0){if((p|0)!=0){break}if((h|0)<=(c[a+60>>2]|0)){break}n=(n*99|0|0)/100|0;if(((c[a+64>>2]|0)-(c[a+60>>2]|0)|0)<3){n=(n*99|0|0)/100|0}}}while(0);if((o|0)==0){n=(n*99|0|0)/100|0}}else{if((n|0)==100){n=99}}dy(a,57,n)|0;break L5734}}while(0)}}while(0);n=100;r=100;if((i|0)>2){W=(j|0)>3}else{W=0}L5887:do{if(W){if((c[b+108>>2]|0)>1){break}if(((du(e,e+((i|0)/3|0)|0,g+((j|0)/2|0)|0,g+((j|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(f-((i|0)/3|0)|0,f,g+((j|0)/2|0)|0,g+((j|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(e,f,g+((j|0)/2|0)|0,g+((j|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=3){n=99}if(((du(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,h-((j|0)/3|0)|0,h,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g,g+((j|0)/3|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=0){break}if((dv(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g,h,c[a+68>>2]|0,k)|0)!=2){break}do{if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,g,g,c[a+68>>2]|0,k)|0)!=1){if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,g+1|0,g+1|0,c[a+68>>2]|0,k)|0)!=1){break L5887}else{break}}}while(0);do{if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,h,h,c[a+68>>2]|0,k)|0)!=1){if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,h-1|0,h-1|0,c[a+68>>2]|0,k)|0)!=1){break L5887}else{break}}}while(0);do{if((dv(e,e,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){if((dv(e+1|0,e+1|0,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){break L5887}else{break}}}while(0);do{if((dv(f,f,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){if((dv(f-1|0,f-1|0,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){break L5887}else{break}}}while(0);if((c[b+108>>2]|0)!=1){break}r=dC(d,0,0,f-e|0,k,0,3)|0;z=r-(dC(d,0,2,f-e|0,k,0,3)|0)|0;if((z|0)<0){break}if((z|0)==0){r=dC(d,i-1|0,0,f-e|0,k,0,4)|0;if((r|0)>(dC(d,i-1|0,2,f-e|0,k,0,4)|0)){n=(n*98|0|0)/100|0}n=(n*99|0|0)/100|0}w=dC(d,i-1|0,j-1-((j|0)/3|0)|0,f-e|0,k,0,4)|0;x=j-1-((j|0)/3|0)|0;while(1){if((x|0)>=(j|0)){break}z=dC(d,i-1|0,x,f-e|0,k,0,4)|0;if((z|0)<(w-((i|0)/16|0)-1|0)){A=4370;break}if((z|0)>(w|0)){w=z}x=x+1|0}if((x|0)<(j|0)){break}r=dC(d,0,(j|0)/16|0,i,k,0,3)|0;t=r+(dC(d,0,j-1-((j|0)/16|0)|0,i,k,0,3)|0)|0;z=t-((dC(d,0,(j|0)/2|0,i,k,0,3)|0)<<1)|0;t=dC(d,i-1|0,(j|0)/16|0,i,k,0,4)|0;r=t+(dC(d,i-1|0,j-1-((j|0)/16|0)|0,i,k,0,4)|0)|0;B=(r|0)<=((dC(d,i-1|0,(j|0)/2|0,i,k,0,4)|0)<<1|0)|0;do{if((z|0)>=((-i|0)/8|0|0)){if((z+((i|0)/8|0)|0)<(B|0)){break}do{if((dC(d,i-1|0,(j|0)/16|0,i,k,0,4)|0)>((i|0)/8|0|0)){if((dC(d,0,(j|0)/16|0,i,k,0,3)|0)<((i|0)/16|0|0)){break L5887}else{break}}}while(0);do{if((dC(d,i-1|0,j-1-((j|0)/16|0)|0,i,k,0,4)|0)>((i|0)/8|0|0)){if((dC(d,0,j-1-((j|0)/16|0)|0,i,k,0,3)|0)<((i|0)/16|0|0)){break L5887}else{break}}}while(0);do{if(((du(f-((i|0)/32|0)|0,f,g,g+((j|0)/32|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){if(((du(f-((i|0)/32|0)|0,f,h-((j|0)/32|0)|0,h,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=0){break}if(((du(e,e+((i|0)/32|0)|0,g,g+((j|0)/32|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){if(((du(e,e+((i|0)/32|0)|0,h-((j|0)/32|0)|0,h,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}}if((i|0)>=32){break L5887}n=(n*99|0|0)/100|0}}while(0);x=j;w=0;B=0;while(1){if((w|0)>=(i|0)){break}z=dC(d,w,j-1|0,h-g|0,k,0,1)|0;z=z+(dC(d,w,j-1-z|0,h-g|0,k,1,1)|0)|0;if((z|0)<=(x|0)){x=z;B=w}w=w+1|0}z=x;x=j-1-z|0;while(1){if((x|0)>=(j-1|0)){break}if((dv(B,i-1|0,x,x,d,k)|0)>1){n=(n*99|0|0)/100|0}x=x+1|0}if((dC(d,0,0,f-e|0,k,0,3)|0)>=((i|0)/8|0|0)){if((dC(d,i-1|0,j-1|0,f-e|0,k,0,4)|0)<((i|0)/8|0|0)){n=(n*98|0|0)/100|0}if((dC(d,i-1|0,0,f-e|0,k,0,4)|0)<((i|0)/8|0|0)){n=(n*98|0|0)/100|0}}r=dC(d,(i|0)/2|0,0,j,k,0,2)|0;do{if((P(r-(dC(d,(i|0)/2|0,j-1|0,j,k,0,1)|0)|0)|0)>((j|0)/8|0|0)){A=4417}else{if((dv(0,i-1|0,0,0,d,k)|0)>1){A=4417;break}if((dv(0,i-1|0,j-1|0,j-1|0,d,k)|0)>1){A=4417}}}while(0);if((A|0)==4417){n=(n*98|0|0)/100|0}if((c[a+60>>2]|0)!=0){if((o|0)!=0){if((p|0)!=0){n=(n*99|0|0)/100|0}}else{n=(n*98|0|0)/100|0}}else{if((n|0)==100){n=99}}if((n|0)>98){n=98}dy(a,48,n)|0;break L5887}}while(0)}}while(0);n=100;if((i|0)>4){X=(j|0)>5}else{X=0}L6043:do{if(X){if((c[b+108>>2]|0)>3){break}if((c[b+108>>2]|0)<1){break}if((c[b+108>>2]|0)!=2){n=(n*95|0|0)/100|0}if(((du(e,e+((i|0)/2|0)|0,g+((j|0)/2|0)|0,g+((j|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(f-((i|0)/2|0)|0,f,g+((j|0)/2|0)|0,g+((j|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,h-((j|0)/2|0)|0,h,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g,g+((j|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if((dv(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g,h,c[a+68>>2]|0,k)|0)!=3){break}do{if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,g,g,c[a+68>>2]|0,k)|0)!=1){if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,g+1|0,g+1|0,c[a+68>>2]|0,k)|0)!=1){break L6043}else{break}}}while(0);do{if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,h,h,c[a+68>>2]|0,k)|0)!=1){if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,h-1|0,h-1|0,c[a+68>>2]|0,k)|0)!=1){break L6043}else{break}}}while(0);do{if((dv(e,e,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){if((dv(e+1|0,e+1|0,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){break L6043}else{break}}}while(0);do{if((dv(f,f,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){if((dv(f-1|0,f-1|0,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){break L6043}else{break}}}while(0);if((c[b+108>>2]|0)!=2){n=(n*85|0|0)/100|0}p=dC(d,0,0,f-e|0,k,0,3)|0;if((p|0)<=(dC(d,0,((j|0)/32|0)+2|0,f-e|0,k,0,3)|0)){break}w=dC(d,0,(j|0)/2|0,f-e|0,k,0,3)|0;z=dC(d,0,((j|0)/2|0)-1|0,f-e|0,k,0,3)|0;if((z|0)>(w|0)){w=z}z=dC(d,0,((j|0)/2|0)-2|0,f-e|0,k,0,3)|0;do{if((z|0)>(w|0)){if((j|0)<=8){break}w=z}}while(0);if((dC(d,0,(j|0)/4|0,f-e|0,k,0,3)|0)<(w|0)){break}w=dC(d,i-1|0,(j|0)/2|0,f-e|0,k,0,4)|0;z=dC(d,i-1|0,((j|0)/2|0)-1|0,f-e|0,k,0,4)|0;if((z|0)>(w|0)){w=z}z=dC(d,i-1|0,((j|0)/2|0)-1|0,f-e|0,k,0,4)|0;do{if((z|0)>(w|0)){if((j|0)<=8){break}w=z}}while(0);if((dC(d,i-1|0,(j*3|0|0)/4|0,f-e|0,k,0,4)|0)<(w|0)){break}w=dC(d,i-1|0,j-1-((j|0)/3|0)|0,f-e|0,k,0,4)|0;x=j-1-((j|0)/3|0)|0;while(1){if((x|0)>=(j|0)){break}z=dC(d,i-1|0,x,f-e|0,k,0,4)|0;if((z|0)<(w-((i|0)/16|0)|0)){A=4490;break}if((z|0)>(w|0)){w=z}x=x+1|0}if((x|0)<(j|0)){break}x=dC(d,(i|0)/2|0,j-1|0,h-g|0,k,0,1)|0;if((x|0)>((j|0)/4|0|0)){break}x=x+(dC(d,(i|0)/2|0,j-1-x|0,h-g|0,k,1,1)|0)|0;if((x|0)>((j|0)/3|0|0)){break}if((x|0)>((j|0)/4|0|0)){n=(n*99|0|0)/100|0}x=x+(dC(d,(i|0)/2|0,j-1-x|0,h-g|0,k,0,1)|0)|0;if((x*3|0|0)>(j<<1|0)){break}w=dC(d,(i|0)/2|0,j-x|0,(i|0)/2|0,k,0,3)|0;if((w|0)==0){break}if((dC(d,((i|0)/2|0)+w-1-((i|0)/16|0)|0,j-x|0,h-g|0,k,0,1)|0)==0){break}z=0;x=(j|0)/4|0;while(1){if((x|0)>=(j-((j|0)/4|0)-1|0)){break}if((dC(d,0,x,i-1|0,k,0,3)|0)>((i|0)/4|0|0)){A=4513;break}if((dC(d,i-1|0,x,i-1|0,k,0,4)|0)>((i|0)/4|0|0)){A=4513;break}x=x+1|0}if((x|0)<(j-((j|0)/4|0)-1|0)){break}p=dC(d,0,(j|0)/16|0,i,k,0,3)|0;B=p+(dC(d,0,j-1-((j|0)/16|0)|0,i,k,0,3)|0)|0;if((B|0)<=(((dC(d,0,(j|0)/2|0,i,k,0,3)|0)<<1)+((i|0)/8|0)|0)){break}do{if((dC(d,i-1|0,(j|0)/16|0,i,k,0,4)|0)>((i|0)/8|0|0)){if((dC(d,0,(j|0)/16|0,i,k,0,3)|0)<((i|0)/16|0|0)){break L6043}else{break}}}while(0);do{if((dC(d,i-1|0,j-1-((j|0)/16|0)|0,i,k,0,4)|0)>((i|0)/8|0|0)){if((dC(d,0,j-1-((j|0)/16|0)|0,i,k,0,3)|0)<((i|0)/16|0|0)){break L6043}else{break}}}while(0);do{if(((du(f-((i|0)/32|0)|0,f,g,g+((j|0)/32|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){if(((du(f-((i|0)/32|0)|0,f,h-((j|0)/32|0)|0,h,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=0){break}if(((du(e,e+((i|0)/32|0)|0,g,g+((j|0)/32|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){if(((du(e,e+((i|0)/32|0)|0,h-((j|0)/32|0)|0,h,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}}break L6043}}while(0);if((i|0)<16){if((dv(e,e,g,h,c[a+68>>2]|0,k)|0)!=1){n=(n*98|0|0)/100|0}}z=0;x=(j*6|0|0)/8|0;while(1){if((x|0)>=(j-((j|0)/16|0)|0)){break}if((dv(0,i-1|0,x,x,d,k)|0)>2){z=z+1|0}else{z=z-1|0}x=x+1|0}if((z|0)>0){n=(n*98|0|0)/100|0}if((o|0)==0){n=(n*90|0|0)/100|0}dy(a,48,n)|0}}while(0);n=100;if((i|0)>4){Y=(j|0)>5}else{Y=0}L6214:do{if(Y){if((c[b+108>>2]|0)!=1){break}if((c[(c[b>>2]|0)+196>>2]|0)!=3){n=(n*85|0|0)/100|0}if(((du(e,e+((i|0)/2|0)|0,g+((j|0)/2|0)|0,g+((j|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(f-((i|0)/2|0)|0,f,g+((j|0)/2|0)|0,g+((j|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,h-((j|0)/2|0)|0,h,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g,g+((j|0)/2|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if(((du(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}if((dv(e+((i|0)/2|0)|0,e+((i|0)/2|0)|0,g,h,c[a+68>>2]|0,k)|0)!=3){break}do{if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,g,g,c[a+68>>2]|0,k)|0)!=1){if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,g+1|0,g+1|0,c[a+68>>2]|0,k)|0)!=1){break L6214}else{break}}}while(0);do{if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,h,h,c[a+68>>2]|0,k)|0)!=1){if((dv(e+((i|0)/3|0)|0,f-((i|0)/3|0)|0,h-1|0,h-1|0,c[a+68>>2]|0,k)|0)!=1){break L6214}else{break}}}while(0);do{if((dv(e,e,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){if((dv(e+1|0,e+1|0,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){break L6214}else{break}}}while(0);do{if((dv(f,f,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){if((dv(f-1|0,f-1|0,g+((j|0)/3|0)|0,h-((j|0)/3|0)|0,c[a+68>>2]|0,k)|0)!=1){break L6214}else{break}}}while(0);X=dC(d,0,0,f-e|0,k,0,3)|0;if((X|0)<=(dC(d,0,((j|0)/32|0)+2|0,f-e|0,k,0,3)|0)){break}w=dC(d,0,(j|0)/2|0,f-e|0,k,0,3)|0;z=dC(d,0,((j|0)/2|0)-1|0,f-e|0,k,0,3)|0;if((z|0)>(w|0)){w=z}z=dC(d,0,((j|0)/2|0)-2|0,f-e|0,k,0,3)|0;do{if((z|0)>(w|0)){if((j|0)<=8){break}w=z}}while(0);if((dC(d,0,(j|0)/4|0,f-e|0,k,0,3)|0)<(w|0)){break}w=dC(d,i-1|0,(j|0)/2|0,f-e|0,k,0,4)|0;z=dC(d,i-1|0,((j|0)/2|0)-1|0,f-e|0,k,0,4)|0;if((z|0)>(w|0)){w=z}z=dC(d,i-1|0,((j|0)/2|0)-1|0,f-e|0,k,0,4)|0;do{if((z|0)>(w|0)){if((j|0)<=8){break}w=z}}while(0);if((dC(d,i-1|0,(j*3|0|0)/4|0,f-e|0,k,0,4)|0)<(w|0)){break}w=dC(d,i-1|0,j-1-((j|0)/3|0)|0,f-e|0,k,0,4)|0;x=j-1-((j|0)/3|0)|0;while(1){if((x|0)>=(j|0)){break}z=dC(d,i-1|0,x,f-e|0,k,0,4)|0;if((z|0)<(w-((i|0)/16|0)|0)){A=4604;break}if((z|0)>(w|0)){w=z}x=x+1|0}if((x|0)<(j|0)){break}x=dC(d,(i|0)/2|0,j-1|0,h-g|0,k,0,1)|0;if((x|0)>((j|0)/4|0|0)){break}x=x+(dC(d,(i|0)/2|0,j-1-x|0,h-g|0,k,1,1)|0)|0;if((x|0)>((j|0)/3|0|0)){break}if((x|0)>((j|0)/4|0|0)){n=(n*99|0|0)/100|0}x=x+(dC(d,(i|0)/2|0,j-1-x|0,h-g|0,k,0,1)|0)|0;if((x*3|0|0)>(j<<1|0)){break}w=dC(d,(i|0)/2|0,j-x|0,(i|0)/2|0,k,0,3)|0;if((w|0)==0){break}if((dC(d,((i|0)/2|0)+w-1-((i|0)/16|0)|0,j-x|0,h-g|0,k,0,1)|0)==0){break}z=0;x=(j|0)/4|0;while(1){if((x|0)>=(j-((j|0)/4|0)-1|0)){break}if((dC(d,0,x,i-1|0,k,0,3)|0)>((i|0)/4|0|0)){A=4627;break}if((dC(d,i-1|0,x,i-1|0,k,0,4)|0)>((i|0)/4|0|0)){A=4627;break}x=x+1|0}if((x|0)<(j-((j|0)/4|0)-1|0)){break}X=dC(d,0,(j|0)/16|0,i,k,0,3)|0;B=X+(dC(d,0,j-1-((j|0)/16|0)|0,i,k,0,3)|0)|0;if((B|0)<=(((dC(d,0,(j|0)/2|0,i,k,0,3)|0)<<1)+((i|0)/8|0)|0)){break}do{if((dC(d,i-1|0,(j|0)/16|0,i,k,0,4)|0)>((i|0)/8|0|0)){if((dC(d,0,(j|0)/16|0,i,k,0,3)|0)<((i|0)/16|0|0)){break L6214}else{break}}}while(0);do{if((dC(d,i-1|0,j-1-((j|0)/16|0)|0,i,k,0,4)|0)>((i|0)/8|0|0)){if((dC(d,0,j-1-((j|0)/16|0)|0,i,k,0,3)|0)<((i|0)/16|0|0)){break L6214}else{break}}}while(0);do{if(((du(f-((i|0)/32|0)|0,f,g,g+((j|0)/32|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)==0){if(((du(f-((i|0)/32|0)|0,f,h-((j|0)/32|0)|0,h,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=0){break}if(((du(e,e+((i|0)/32|0)|0,g,g+((j|0)/32|0)|0,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){if(((du(e,e+((i|0)/32|0)|0,h-((j|0)/32|0)|0,h,c[a+68>>2]|0,k,1)|0)<<24>>24|0)!=1){break}}break L6214}}while(0);if((i|0)<16){if((dv(e,e,g,h,c[a+68>>2]|0,k)|0)!=1){n=(n*98|0|0)/100|0}}z=0;x=(j*6|0|0)/8|0;while(1){if((x|0)>=(j-((j|0)/16|0)|0)){break}if((dv(0,i-1|0,x,x,d,k)|0)>2){z=z+1|0}else{z=z-1|0}x=x+1|0}if((z|0)>0){n=(n*98|0|0)/100|0}if((o|0)==0){n=(n*90|0|0)/100|0}dy(a,48,n)|0}}while(0);D=c[a+36>>2]|0;E=D;return E|0}function cF(a){a=a|0;var b=0;b=a;return aa(b,b)|0}function cG(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;e=i;f=a;a=b;b=d;d=0;g=c[f+296+(a<<3)>>2]|0;h=c[f+296+(a<<3)+4>>2]|0;j=c[f+296+(b<<3)>>2]|0;k=c[f+296+(b<<3)+4>>2]|0;if((c[f+196>>2]|0)==0){l=-1;m=l;i=e;return m|0}do{if((a|0)>=0){if((a|0)>(c[f+264+((c[f+196>>2]|0)-1<<2)>>2]|0)){break}if((b|0)<0){break}if((b|0)>(c[f+264+((c[f+196>>2]|0)-1<<2)>>2]|0)){break}o=0;while(1){if((o|0)>=(c[f+196>>2]|0)){break}if((b|0)<(c[f+264+(o<<2)>>2]|0)){p=4680;break}o=o+1|0}p=o;o=a;while(1){if((o|0)>=(c[f+264+(p<<2)>>2]|0)){if((p|0)!=0){q=c[f+264+(p-1<<2)>>2]|0}else{q=0}o=q}if((o|0)==(b|0)){break}r=c[f+296+(o<<3)>>2]|0;s=c[f+296+(o<<3)+4>>2]|0;t=cH(j-g|0)|0;u=t+(cH(k-h|0)|0)|0;if((u|0)==0){v=-1024}else{v=(-((aa(g+j-(r<<1)|0,j-g|0)|0)+(aa(h+k-(s<<1)|0,k-h|0)|0)|0)<<10|0)/(u|0)|0}if((v|0)<=-1024){w=g;x=h}else{if((v|0)>=1024){w=j;x=k}else{w=((g+j+1|0)/2|0)+((aa(v,j-g|0)|0)/2048|0)|0;x=((h+k+1|0)/2|0)+((aa(v,k-h|0)|0)/2048|0)|0}}u=cH((w-r<<10|0)/((c[f+4>>2]|0)-(c[f>>2]|0)+1|0)|0)|0;r=u+(cH((x-s<<10|0)/((c[f+12>>2]|0)-(c[f+8>>2]|0)+1|0)|0)|0)|0;if((r|0)>(d|0)){d=r}o=o+1|0}l=d;m=l;i=e;return m|0}}while(0);au(c[n>>2]|0,10840,(d=i,i=i+8|0,c[d>>2]=132,d)|0)|0;i=d;l=-1;m=l;i=e;return m|0}function cH(a){a=a|0;var b=0;b=a;return aa(b,b)|0}function cI(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0;g=i;i=i+16|0;h=g|0;j=a;a=b;b=d;d=e;e=f;f=0;if((c[j+196>>2]|0)==0){k=-1;l=k;i=g;return l|0}do{if((a|0)>=0){if((a|0)>(c[j+264+((c[j+196>>2]|0)-1<<2)>>2]|0)){break}if((b|0)<0){break}if((b|0)>(c[j+264+((c[j+196>>2]|0)-1<<2)>>2]|0)){break}m=c[j+296+(b<<3)>>2]|0;o=m;c[h>>2]=m;m=c[j+296+(b<<3)+4>>2]|0;p=m;c[h+4>>2]=m;m=cH(o-d|0)|0;q=m+(cH(p-e|0)|0)<<1;m=q;c[h+8>>2]=q;c[h+12>>2]=b;q=0;while(1){if((q|0)>=(c[j+196>>2]|0)){break}if((b|0)<(c[j+264+(q<<2)>>2]|0)){r=4720;break}q=q+1|0}f=q;q=a;while(1){if((q|0)>=(c[j+264+(f<<2)>>2]|0)){if((f|0)!=0){s=c[j+264+(f-1<<2)>>2]|0}else{s=0}q=s}o=c[j+296+(q<<3)>>2]|0;p=c[j+296+(q<<3)+4>>2]|0;r=cH(o-d|0)|0;m=r+(cH(p-e|0)|0)|0;if((m|0)<(c[h+8>>2]|0)){c[h>>2]=o;c[h+4>>2]=p;c[h+8>>2]=m;c[h+12>>2]=q}if((q|0)==(b|0)){break}q=q+1|0}k=c[h+12>>2]|0;l=k;i=g;return l|0}}while(0);au(c[n>>2]|0,21912,(h=i,i=i+24|0,c[h>>2]=216,c[h+8>>2]=a,c[h+16>>2]=b,h)|0)|0;i=h;dk(j);k=-1;l=k;i=g;return l|0}function cJ(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;f=a;a=b;b=d;d=e;e=0;if((c[f+196>>2]|0)<1){g=0;h=g;return h|0}if((c[f+196>>2]|0)==2){do{if((c[f+8>>2]|0)>(c[f+52>>2]|0)){i=P((c[f+200>>2]|0)-(c[f+204>>2]|0)|0)|0;if((i|0)>((P((c[f+200>>2]|0)+(c[f+204>>2]|0)|0)|0)/8|0|0)){break}g=0;h=g;return h|0}}while(0)}i=0;j=c[f>>2]|0;k=c[f+4>>2]|0;l=k-j+1|0;m=c[f+8>>2]|0;n=c[f+12>>2]|0;o=c[f+52>>2]|0;p=c[f+56>>2]|0;q=c[f+60>>2]|0;r=j;s=k;t=m;u=t;v=t;do{if((n-m+1|0)>=5){if((m<<2|0)>((p*3|0)+q|0)){break}do{if((m|0)>=(p|0)){if((n|0)<(q|0)){break}g=0;h=g;return h|0}}while(0);if((n<<1|0)>(o+p|0)){w=m;while(1){if((w<<1|0)>=(m+n|0)){break}if(((du(r,s,w,w,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==0){x=4757;break}w=w+1|0}if((w<<1|0)<(m+n|0)){u=w;while(1){if(((du(r,s,w,w,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==0){y=(w<<1|0)<=(m+n|0)}else{y=0}if(!y){break}w=w+1|0}}}if((v|0)>=(u|0)){if((b|0)!=0){c[f+24>>2]=0}g=0;h=g;return h|0}if(((du(r-1|0,r-1|0,v,u-1|0,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==1){while(1){if(((du(r,r,v,u-1|0,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==1){z=(r<<1|0)<(j+k|0)}else{z=0}if(!z){break}r=r+1|0}}while(1){if((r|0)>=(k|0)){break}if(((du(r,r,v,u,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==1){x=4782;break}r=r+1|0}while(1){if((s|0)<=(r|0)){break}if(((du(s,s,v,u,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==1){x=4788;break}s=s-1|0}if((u-1|0)>(v|0)){w=v;if(((du(r,k+1|0,v,u-1|0,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==0){i=0}else{if(((du(r,r,v,u-1|0,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==0){x=4796}else{if(((du(r-1|0,r-1|0,v,u-1|0,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==0){x=4796}}if((x|0)==4796){if(((du(s,s,v,u-1|0,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==0){x=4798}else{if(((du(s+1|0,s+1|0,v,u-1|0,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==0){x=4798}}if((x|0)==4798){i=1;t=v;while(1){if((t|0)>=(u|0)){break}if(((du(r,s,t,t,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==1){x=4801;break}t=t+1|0}while(1){if((t|0)>=(u|0)){break}if(((du(r,s,t,t,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==0){x=4807;break}t=t+1|0}A=r;while(1){if((A|0)>=(s|0)){break}if(((du(A,A,v,t,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==1){x=4813;break}A=A+1|0}while(1){if((A|0)>=(s|0)){break}if(((du(A,A,v,t,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==0){x=4819;break}A=A+1|0}B=A;while(1){if((B|0)>=(s|0)){break}if(((du(B,B,v,t,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==1){x=4825;break}B=B+1|0}do{if((A|0)<(s|0)){if((B|0)>=(s|0)){break}if((A|0)>=(B|0)){break}if((s-r|0)<=2){break}if((dI(r,s,v,u-1|0,c[f+68>>2]|0,a)|0)<2){break}if((dv(r,s,v+((u-v|0)/4|0)|0,v+((u-v|0)/4|0)|0,c[f+68>>2]|0,a)|0)!=2){break}if((dv(r,s,u-1-((u-v|0)/2|0)|0,u-1-((u-v|0)/2|0)|0,c[f+68>>2]|0,a)|0)!=2){break}while(1){if(((du(r,s,u,u,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==0){C=(u<<1|0)<(m+n|0)}else{C=0}if(!C){break}u=u+1|0}i=2;e=168}}while(0);do{if((b&2|0)!=0){if((c[f+8>>2]|0)==(u|0)){break}c[f+8>>2]=u}}while(0)}}}if((i|0)==0){while(1){if(((du(j,k,v,v,c[f+68>>2]|0,a,1)|0)<<24>>24|0)==0){D=(v<<1|0)<(m+n|0)}else{D=0}if(!D){break}v=v+1|0}if((b|0)!=0){c[f+8>>2]=v}}if((i|0)==1){u=u-1|0;B=dC(c[f+68>>2]|0,r,v,s-r|0,a,0,3)|0;A=B-(dC(c[f+68>>2]|0,s,v,s-r|0,a,0,4)|0)|0;B=dC(c[f+68>>2]|0,r,u,s-r|0,a,0,3)|0;if((A|0)>(B-(dC(c[f+68>>2]|0,s,u,s-r|0,a,0,4)|0)+1|0)){e=180}do{if((s-r+1|0)>((u-v+1|0)*3|0|0)){if(((du(r,s,v,u,c[f+68>>2]|0,a,2)|0)<<24>>24|0)!=0){break}e=175}}while(0);B=dC(c[f+68>>2]|0,r,v,s-r|0,a,0,3)|0;A=B-(dC(c[f+68>>2]|0,s,v,s-r|0,a,0,4)|0)|0;B=dC(c[f+68>>2]|0,r,u,s-r|0,a,0,3)|0;if((A|0)<(B-(dC(c[f+68>>2]|0,s,u,s-r|0,a,0,4)|0)-1|0)){e=96}do{if((s-r+1|0)<((u-v+1<<1)+2|0)){if(((s-r+1<<1)+2|0)<=(u-v+1|0)){break}B=dC(c[f+68>>2]|0,r,(v+u|0)/2|0,s-r+1|0,a,0,3)|0;B=dC(c[f+68>>2]|0,r+B|0,(v+u|0)/2|0,s-r+1|0,a,1,3)|0;A=dC(c[f+68>>2]|0,(r+s|0)/2|0,v,u-v+1|0,a,0,2)|0;A=dC(c[f+68>>2]|0,(r+s|0)/2|0,v+A|0,u-v+1|0,a,1,2)|0;t=0;while(1){if((t|0)<(s-r+1|0)){E=(t|0)<(u-v+1|0)}else{E=0}if(!E){break}if((d8(c[f+68>>2]|0,r+t|0,v+t|0)|0)<(a|0)){x=4871;break}t=t+1|0}F=t;while(1){if((t|0)<(s-r+1|0)){G=(t|0)<(u-v+1|0)}else{G=0}if(!G){break}if((d8(c[f+68>>2]|0,r+t|0,v+t|0)|0)>=(a|0)){x=4879;break}t=t+1|0}F=t-F|0;t=0;while(1){if((t|0)<(s-r+1|0)){H=(t|0)<(u-v+1|0)}else{H=0}if(!H){break}if((d8(c[f+68>>2]|0,s-t|0,v+t|0)|0)<(a|0)){x=4887;break}t=t+1|0}I=t;while(1){if((t|0)<(s-r+1|0)){J=(t|0)<(u-v+1|0)}else{J=0}if(!J){break}if((d8(c[f+68>>2]|0,s-t|0,v+t|0)|0)>=(a|0)){x=4895;break}t=t+1|0}I=t-I|0;if((s-r|0)<5){if((u-v|0)<8){x=4906}else{x=4900}}else{x=4900}do{if((x|0)==4900){if((B|0)<(((s-r+1|0)/2|0)+2|0)){break}if((A|0)<(((u-v+1|0)/2|0)+2|0)){break}if((P(F-I|0)|0)>(((B|0)/4|0)+2|0)){break}if((P(B-A|0)|0)>(((B|0)/4|0)+2|0)){break}if((P(F-B|0)|0)>(((B|0)/4|0)+4|0)){break}if((P(I-A|0)|0)<=(((B|0)/4|0)+4|0)){x=4906}}}while(0);if((x|0)==4906){e=729}}}while(0);B=dC(c[f+68>>2]|0,r,v,s-r|0,a,0,3)|0;if((B|0)>((dC(c[f+68>>2]|0,r,u,s-r|0,a,0,3)|0)-((l|0)/8|0)|0)){x=4910}else{B=dC(c[f+68>>2]|0,r,v,s-r|0,a,0,3)|0;if((B|0)>((dC(c[f+68>>2]|0,r,u-1|0,s-r|0,a,0,3)|0)-((l|0)/8|0)|0)){x=4910}}do{if((x|0)==4910){B=dC(c[f+68>>2]|0,s,v,s-r|0,a,0,4)|0;if((B|0)<=((dC(c[f+68>>2]|0,s,u,s-r|0,a,0,4)|0)-((l|0)/8|0)|0)){B=dC(c[f+68>>2]|0,s,v,s-r|0,a,0,4)|0;if((B|0)<=((dC(c[f+68>>2]|0,s,u-1|0,s-r|0,a,0,4)|0)-((l|0)/8|0)|0)){break}}if((dv(r,s,v,v,c[f+68>>2]|0,a)|0)!=1){break}if((dv(r,s,u,u,c[f+68>>2]|0,a)|0)!=2){if((dv(r,s,u-1|0,u-1|0,c[f+68>>2]|0,a)|0)!=2){break}}e=94}}while(0);B=dC(c[f+68>>2]|0,r,v,s-r|0,a,0,3)|0;if((B|0)<((dC(c[f+68>>2]|0,r,u,s-r|0,a,0,3)|0)-((l|0)/10|0)|0)){x=4918}else{B=dC(c[f+68>>2]|0,r,v+1|0,s-r|0,a,0,3)|0;if((B|0)<((dC(c[f+68>>2]|0,r,u,s-r|0,a,0,3)|0)-((l|0)/10|0)|0)){x=4918}}do{if((x|0)==4918){B=dC(c[f+68>>2]|0,s,v,s-r|0,a,0,4)|0;if((B|0)>=((dC(c[f+68>>2]|0,s,u,s-r|0,a,0,4)|0)-((l|0)/10|0)|0)){B=dC(c[f+68>>2]|0,s,v+1|0,s-r|0,a,0,4)|0;if((B|0)>=((dC(c[f+68>>2]|0,s,u,s-r|0,a,0,4)|0)-((l|0)/10|0)|0)){break}}if((dv(r,s,v,v,c[f+68>>2]|0,a)|0)!=2){if((dv(r,s,v+1|0,v+1|0,c[f+68>>2]|0,a)|0)!=2){break}}if((dv(r,s,u,u,c[f+68>>2]|0,a)|0)!=1){break}e=711}}while(0);B=dC(c[f+68>>2]|0,r,v,s-r|0,a,0,3)|0;A=B+(dC(c[f+68>>2]|0,r,u,s-r|0,a,0,3)|0)|0;do{if((A-((dC(c[f+68>>2]|0,r,(u+v|0)/2|0,s-r|0,a,0,3)|0)<<1)|0)>(((l|0)/16|0)+1|0)){if((s-r|0)<=10){break}B=dC(c[f+68>>2]|0,r,v,s-r|0,a,0,3)|0;if((B|0)<((dC(c[f+68>>2]|0,r,u,s-r|0,a,0,3)|0)-((l|0)/10|0)|0)){x=4928}else{B=dC(c[f+68>>2]|0,r,v+1|0,s-r|0,a,0,3)|0;if((B|0)<((dC(c[f+68>>2]|0,r,u,s-r|0,a,0,3)|0)-((l|0)/10|0)|0)){x=4928}}do{if((x|0)==4928){B=dC(c[f+68>>2]|0,s,v,s-r|0,a,0,4)|0;if((B|0)>=((dC(c[f+68>>2]|0,s,u,s-r|0,a,0,4)|0)-((l|0)/10|0)|0)){B=dC(c[f+68>>2]|0,s,v+1|0,s-r|0,a,0,4)|0;if((B|0)>=((dC(c[f+68>>2]|0,s,u,s-r|0,a,0,4)|0)-((l|0)/10|0)|0)){break}}if((dv(r,s,v,v,c[f+68>>2]|0,a)|0)!=2){if((dv(r,s,v+1|0,v+1|0,c[f+68>>2]|0,a)|0)!=2){break}}if((dv(r,s,u,u,c[f+68>>2]|0,a)|0)!=1){break}e=728}}while(0)}}while(0);do{if((s-r|0)>3){if((u-v|0)<=1){break}A=dC(c[f+68>>2]|0,r,v,s-r|0,a,0,3)|0;do{if((A|0)>(dC(c[f+68>>2]|0,r,u,s-r|0,a,0,3)|0)){B=dC(c[f+68>>2]|0,s,v,s-r|0,a,0,4)|0;if((B|0)>=(dC(c[f+68>>2]|0,s,u,s-r|0,a,0,4)|0)){break}if((dv(r,s,v,v,c[f+68>>2]|0,a)|0)!=2){break}if((dv(r,s,u,u,c[f+68>>2]|0,a)|0)!=2){break}e=126}}while(0)}}while(0);do{if((s-r|0)>2){if((u-v|0)<=2){break}if((dv(r,s,(v+u|0)/2|0,(v+u|0)/2|0,c[f+68>>2]|0,a)|0)>1){if((dv((r+s|0)/2|0,(r+s|0)/2|0,v,u,c[f+68>>2]|0,a)|0)>1){if((dH(r,s,v,u,c[f+68>>2]|0,a,0)|0)==1){e=730}}}}}while(0)}if((b|0)!=0){c[f+24>>2]=i}if((b|0)!=0){c[f+40>>2]=e}}if((d|0)!=0){c[d>>2]=e}g=i;h=g;return h|0}}while(0);g=0;h=g;return h|0}function cK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;e=i;i=i+264|0;f=e|0;g=e+64|0;h=a;a=b;b=d;d=c[h>>2]|0;j=c[h+4>>2]|0;k=c[h+8>>2]|0;l=c[h+12>>2]|0;m=j-d+1|0;o=l-k+1|0;p=57344;q=32;c[g>>2]=h;c[g+4>>2]=a;c[g+8>>2]=b;r=0;if((k|0)<((c[h+56>>2]|0)-(((c[h+56>>2]|0)-(c[h+52>>2]|0)|0)/2|0)|0)){r=1}s=0;if((l|0)>((c[h+60>>2]|0)+(((c[h+64>>2]|0)-(c[h+60>>2]|0)|0)/2|0)|0)){s=1}do{if((k|0)<(c[h+56>>2]|0)){if((l|0)<=(c[h+60>>2]|0)){break}if((l<<1|0)>=((c[h+60>>2]|0)+(c[h+64>>2]|0)|0)){break}if((k-(l-(c[h+60>>2]|0))<<1|0)<=((c[h+56>>2]<<1)-((c[h+56>>2]|0)-(c[h+52>>2]|0))|0)){r=1}}}while(0);c[g+36>>2]=r;c[g+40>>2]=s;r=(d+j|0)/2|0;c[f+48>>2]=r;c[f+32>>2]=r;c[f+16>>2]=r;c[f>>2]=r;r=(k+l|0)/2|0;c[f+52>>2]=r;c[f+36>>2]=r;c[f+20>>2]=r;c[f+4>>2]=r;r=(cH(128)|0)<<1;c[f+56>>2]=r;c[f+40>>2]=r;c[f+24>>2]=r;c[f+8>>2]=r;c[f+60>>2]=0;c[f+44>>2]=0;c[f+28>>2]=0;c[f+12>>2]=0;r=0;while(1){if((r|0)>=(c[h+264>>2]|0)){break}t=c[h+296+(r<<3)>>2]|0;u=c[h+296+(r<<3)+4>>2]|0;v=0;w=cH((t-d<<7|0)/(m|0)|0)|0;x=w+(cH((u-k<<7|0)/(o|0)|0)|0)|0;if((x|0)<(c[f+(v<<4)+8>>2]|0)){c[f+(v<<4)>>2]=t;c[f+(v<<4)+4>>2]=u;c[f+(v<<4)+8>>2]=x;c[f+(v<<4)+12>>2]=r}v=1;w=cH((t-d<<7|0)/(m|0)|0)|0;x=w+(cH((u-l<<7|0)/(o|0)|0)|0)|0;if((x|0)<(c[f+(v<<4)+8>>2]|0)){c[f+(v<<4)>>2]=t;c[f+(v<<4)+4>>2]=u;c[f+(v<<4)+8>>2]=x;c[f+(v<<4)+12>>2]=r}v=2;w=cH((t-j<<7|0)/(m|0)|0)|0;x=w+(cH((u-l<<7|0)/(o|0)|0)|0)|0;if((x|0)<(c[f+(v<<4)+8>>2]|0)){c[f+(v<<4)>>2]=t;c[f+(v<<4)+4>>2]=u;c[f+(v<<4)+8>>2]=x;c[f+(v<<4)+12>>2]=r}v=3;w=cH((t-j<<7|0)/(m|0)|0)|0;x=w+(cH((u-k<<7|0)/(o|0)|0)|0)|0;if((x|0)<(c[f+(v<<4)+8>>2]|0)){c[f+(v<<4)>>2]=t;c[f+(v<<4)+4>>2]=u;c[f+(v<<4)+8>>2]=x;c[f+(v<<4)+12>>2]=r}r=r+1|0}r=0;while(1){if((r|0)>=16){break}c[g+44+(((r|0)/4|0)<<4)+(((r|0)%4|0)<<2)>>2]=c[f+(((r|0)/4|0)<<4)+(((r|0)%4|0)<<2)>>2];r=r+1|0}c[g+108>>2]=0;if((c[h+196>>2]|0)>0){f=d;v=j;w=k;y=l;z=c[h+68>>2]|0;A=b;B=g+108|0;dH(f,v,w,y,z,A,B)|0}if((k<<1|0)<((c[h+56>>2]|0)+(c[h+60>>2]|0)|0)){do{if((c[h+64>>2]|0)>(c[h+60>>2]|0)){if((c[h+12>>2]<<1|0)<=((c[h+64>>2]|0)+(c[h+60>>2]|0)|0)){break}u=((c[h+60>>2]|0)+(c[h+56>>2]|0)|0)/2|0;while(1){if((u<<1|0)>=((c[h+60>>2]|0)+(c[h+64>>2]|0)|0)){break}if(((du(d,j,u,u,c[h+68>>2]|0,b,1)|0)<<24>>24|0)==0){C=5002;break}u=u+1|0}if((u<<1|0)<((c[h+60>>2]|0)+(c[h+64>>2]|0)|0)){if(((du((d+j|0)/2|0,(d+j|0)/2|0,u,c[h+64>>2]|0,c[h+68>>2]|0,b,1)|0)<<24>>24|0)==0){if((u|0)>(k|0)){B=u;c[h+12>>2]=B;l=B}}}}}while(0)}B=100;do{if((o<<1|0)<((c[h+60>>2]|0)-(c[h+56>>2]|0)|0)){if((m*3|0|0)<(o<<2|0)){D=0;break}D=(m|0)>2}else{D=0}}while(0);L6846:do{if(D){if(((du(d+((m|0)/8|0)+1|0,j-((m|0)/8|0)-1|0,k+((o|0)/8|0)+((o|0)>2?1:0)|0,l-((o|0)/8|0)-((o|0)>2?1:0)|0,c[h+68>>2]|0,b,2)|0)<<24>>24|0)==2){break}if((c[h+24>>2]|0)!=0){A=h;dy(A,61,97)|0;break}if((m|0)<=(o<<1|0)){B=(B*98|0|0)/100|0}if((m|0)<=(o*3|0|0)){B=(B*99|0|0)/100|0}do{if((c[h+64>>2]|0)!=0){if((l|0)<(c[h+60>>2]|0)){break}if((m|0)<(o<<1|0)){B=(B*98|0|0)/100|0}if((m<<1|0)<(o*3|0|0)){B=(B*98|0|0)/100|0}A=h;z=B;dy(A,95,z)|0;break L6846}else{B=(B*96|0|0)/100|0}}while(0);z=h;A=B;dy(z,45,A)|0;if((B|0)<100){break}E=45;F=E;i=e;return F|0}}while(0);B=100;if((o|0)>2){G=(m|0)>2}else{G=0}do{if(G){if((c[h+196>>2]|0)!=2){break}u=k;while(1){if((u|0)>=(l|0)){break}if(((du(d+((m|0)/10|0)|0,j-((m|0)/10|0)|0,u,u,c[h+68>>2]|0,b,1)|0)<<24>>24|0)==1){C=5047;break}u=u+1|0}if(((du(d+((m|0)/10|0)|0,j-((m|0)/10|0)|0,u,u,c[h+68>>2]|0,b,2)|0)<<24>>24|0)==2){break}if(((du(d,j,(u+l|0)/2|0,(u+l|0)/2|0,c[h+68>>2]|0,b,1)|0)<<24>>24|0)==1){break}if(((du(d+((m|0)/10|0)|0,j-((m|0)/10|0)|0,l,l,c[h+68>>2]|0,b,2)|0)<<24>>24|0)==2){break}if((m<<1|0)<(o|0)){break}if((m<<2|0)<(o*3|0|0)){B=(B*99|0|0)/100|0}dy(h,61,B)|0;E=61;F=E;i=e;return F|0}}while(0);B=100;if((o|0)>2){H=(o|0)>=(m<<1|0)}else{H=0}L6916:do{if(H){do{if((c[h+28>>2]|0)==2){if((c[h+32>>2]|0)!=0){break}I=(o|0)/16|0;while(1){if((I|0)>=((o|0)/2|0|0)){break}if(((du(d+((m|0)/8|0)|0,j-((m|0)/8|0)|0,k+I|0,k+I|0,c[h+68>>2]|0,b,1)|0)<<24>>24|0)==0){C=5071;break}I=I+1|0}if((I|0)>=((o|0)/2|0|0)){break L6916}J=(o|0)/16|0;while(1){if((J|0)>=((o|0)/2|0|0)){break}if(((du(d+((m|0)/8|0)|0,j-((m|0)/8|0)|0,l-J|0,l-J|0,c[h+68>>2]|0,b,1)|0)<<24>>24|0)==0){C=5079;break}J=J+1|0}if((J|0)>=((o|0)/2|0|0)){break L6916}do{if((c[h+60>>2]|0)!=0){if((l|0)<=(c[h+60>>2]|0)){break}B=(B*98|0|0)/100|0}}while(0);do{if((c[h+60>>2]|0)!=0){if((k<<1|0)<=((c[h+56>>2]|0)+(c[h+52>>2]|0)|0)){break}B=(B*98|0|0)/100|0}}while(0);if((s|0)!=0){B=(B*99|0|0)/100|0}B=B-(((P(I-J|0)|0)/(o|0)|0)*20|0)|0;if((P(I-m|0)|0)>((o|0)/4|0|0)){break L6916}if((P(I-m|0)|0)>((o|0)/8|0|0)){B=(B*98|0|0)/100|0}if((P(J-m|0)|0)>((o|0)/4|0|0)){break L6916}if((P(J-m|0)|0)>((o|0)/8|0|0)){B=(B*98|0|0)/100|0}if((c[h+24>>2]|0)!=1){B=(B*96|0|0)/100|0}dy(h,58,B)|0;if((B|0)<100){break L6916}E=58;F=E;i=e;return F|0}}while(0)}}while(0);if((k<<1|0)>((c[h+56>>2]|0)+(c[h+52>>2]|0)|0)){if((l<<2|0)>=(((c[h+60>>2]|0)*3|0)+(c[h+56>>2]|0)|0)){if((c[h+196>>2]|0)==2){B=100;do{if((o|0)>5){if((m|0)<=1){K=0;break}K=(o<<1|0)>(m*3|0|0)}else{K=0}}while(0);do{if(K){I=0;while(1){if((I|0)>=((o|0)/2|0|0)){break}if(((du(d,j,k+I|0,k+I|0,c[h+68>>2]|0,b,1)|0)<<24>>24|0)==0){C=5116;break}I=I+1|0}if((I|0)>=((o|0)/2|0|0)){break}J=0;while(1){if((J|0)>=((o|0)/2|0|0)){break}if(((du(d,j,l-J|0,l-J|0,c[h+68>>2]|0,b,1)|0)<<24>>24|0)==0){C=5124;break}J=J+1|0}if((J|0)<(I|0)){break}u=0;while(1){if((u|0)>=(o|0)){break}t=0;while(1){if((t|0)>=((m|0)/2|0|0)){break}s=(d8(a,t,u)|0)<(b|0)|0;if((s|0)!=((d8(a,m-1-t|0,u)|0)<(b|0)|0)){C=5134;break}t=t+1|0}if((C|0)==5134){C=0;u=o+1|0}u=u+1|0}if((u|0)==(o|0)){B=(B*96|0|0)/100|0}do{if((J|0)==(I|0)){if((l|0)>(c[h+60>>2]|0)){break}B=(B*97|0|0)/100|0}}while(0);if((J-I|0)<((o|0)/8|0|0)){B=(B*99|0|0)/100|0}dy(h,59,B)|0;if((B|0)<100){break}E=59;F=E;i=e;return F|0}}while(0)}}}do{if((o*3|0|0)<((c[h+64>>2]|0)-(c[h+52>>2]|0)|0)){if((P(m-o|0)|0)>=(((m+o|0)/4|0)+2|0)){break}if((l*3|0|0)<((c[h+60>>2]<<1)+(c[h+56>>2]|0)|0)){break}if((k*5|0|0)<(((c[h+60>>2]|0)*3|0)+(c[h+56>>2]<<1)|0)){break}x=0;I=60;J=140;B=99;t=d;while(1){if((t|0)>(j|0)){break}u=k;while(1){if((u|0)>(l|0)){break}K=(((t<<1)-(d+j)|0)*100|0|0)/(m|0)|0;s=(((u<<1)-(k+l)|0)*100|0|0)/(o|0)|0;if(((aa(K,K)|0)+(aa(s,s)|0)|0)<(aa(I,I)|0)){if((d8(c[h+68>>2]|0,t,u)|0)>=(b|0)){x=x+1|0;t=j+1|0;u=l+1|0}}if(((aa(K,K)|0)+(aa(s,s)|0)|0)>(aa(J,J)|0)){if((d8(c[h+68>>2]|0,t,u)|0)<(b|0)){x=x+1|0;t=j+1|0;u=l+1|0}}u=u+1|0}t=t+1|0}if((dC(c[h+68>>2]|0,d,k+((o|0)/2|0)|0,j-d|0,b,0,3)|0)>((m|0)/8|0|0)){B=(B*98|0|0)/100|0;if((dC(c[h+68>>2]|0,d,l,j-d|0,b,0,3)|0)<=((m|0)/8|0|0)){B=(B*98|0|0)/100|0}}if((x|0)==0){J=dC(c[h+68>>2]|0,d,k,j-d|0,b,0,3)|0;if((J|0)<=(dC(c[h+68>>2]|0,d,l,j-d|0,b,0,3)|0)){C=5179}else{J=dC(c[h+68>>2]|0,j,k,j-d|0,b,0,4)|0;if((J|0)>=(dC(c[h+68>>2]|0,j,l,j-d|0,b,0,4)|0)){C=5179}}if((C|0)==5179){p=46;if((c[h+24>>2]|0)!=0){J=h;I=B;dy(J,58,I)|0;B=(B*98|0|0)/100|0}I=h;J=p;s=B;dy(I,J,s)|0}}}}while(0);do{if((o*3|0|0)<((c[h+64>>2]|0)-(c[h+52>>2]|0)<<1|0)){if((k<<1|0)<=((c[h+56>>2]|0)+(c[h+60>>2]|0)|0)){break}if((m<<1|0)>=(o*3|0|0)){if(((du(0,(m|0)/2|0,(o|0)/2|0,o-1|0,a,b,1)|0)<<24>>24|0)!=0){break}}if((c[h+24>>2]|0)!=0){break}B=100;p=44;do{if((o|0)==1){if((m|0)!=1){break}B=(B*98|0|0)/100|0}}while(0);do{if((o|0)==2){if((m|0)!=1){break}B=(B*99|0|0)/100|0}}while(0);if((m|0)>=(o|0)){B=(B*99|0|0)/100|0}if((o<<1|0)>=((c[h+64>>2]|0)-(c[h+52>>2]|0)|0)){B=(B*98|0|0)/100|0}x=dC(c[h+68>>2]|0,d,k,j-d|0,b,0,3)|0;do{if((x|0)>(dC(c[h+68>>2]|0,d,l,j-d|0,b,0,3)|0)){t=dC(c[h+68>>2]|0,j,k,j-d|0,b,0,4)|0;if((t|0)>=(dC(c[h+68>>2]|0,j,l,j-d|0,b,0,4)|0)){C=5202;break}B=(B*99|0|0)/100|0}else{C=5202}}while(0);if((C|0)==5202){if((dC(c[h+68>>2]|0,d,(k+l+1|0)/2|0,j-d|0,b,0,3)|0)<((m|0)/2|0|0)){B=(B*98|0|0)/100|0}if((dC(c[h+68>>2]|0,j,l,j-d|0,b,0,4)|0)<((m|0)/2|0|0)){B=(B*99|0|0)/100|0}}x=h;t=p;s=B;dy(x,t,s)|0}}while(0);do{if((o|0)<((c[h+60>>2]|0)-(c[h+56>>2]|0)|0)){if((k<<1|0)>=((c[h+56>>2]|0)+(c[h+60>>2]|0)|0)){break}if((l*3|0|0)>=((c[h+56>>2]|0)+(c[h+60>>2]<<1)+2|0)){break}B=100;p=39;if((l*3|0|0)>=((c[h+56>>2]|0)+(c[h+60>>2]<<1)|0)){B=(B*96|0|0)/100|0}if((l<<1|0)>=((c[h+56>>2]|0)+(c[h+60>>2]|0)|0)){B=(B*99|0|0)/100|0}if((c[h+196>>2]|0)>1){if((l<<1|0)>=((c[h+56>>2]|0)+(c[h+60>>2]|0)|0)){B=(B*96|0|0)/100|0}if((l*3|0|0)>=((c[h+56>>2]<<1)+(c[h+60>>2]|0)|0)){B=(B*96|0|0)/100|0}if(((du(d,j,((c[h+56>>2]|0)+((c[h+60>>2]|0)*3|0)|0)/4|0,c[h+64>>2]|0,c[h+68>>2]|0,b,1)|0)<<24>>24|0)!=0){B=(B*98|0|0)/100|0}}do{if((m|0)>4){if((dv(d,j,(k+(l*3|0)|0)/4|0,(k+(l*3|0)|0)/4|0,c[h+68>>2]|0,b)|0)!=2){C=5228;break}p=34;if(((du((d+j|0)/2|0,(d+j|0)/2|0,k,l,c[h+68>>2]|0,b,1)|0)<<24>>24|0)!=0){B=(B*96|0|0)/100|0}}else{C=5228}}while(0);if((C|0)==5228){if((dv(d,j,k,k,c[h+68>>2]|0,b)|0)!=1){B=(B*96|0|0)/100|0}if((dv(d,j,(k+l|0)/2|0,(k+l|0)/2|0,c[h+68>>2]|0,b)|0)!=1){B=(B*98|0|0)/100|0}if((m|0)>(o|0)){B=(B*96|0|0)/100|0}}do{if((dv(j,j,k,l,c[h+68>>2]|0,b)|0)!=1){if((dv(d,d,k,l,c[h+68>>2]|0,b)|0)==1){break}B=(B*99|0|0)/100|0}}while(0);if((dv(d,j,k+((o|0)/4|0)|0,k+((o|0)/4|0)|0,c[h+68>>2]|0,b)|0)>2){B=(B*97|0|0)/100|0}if((dv(d,j,l-((o|0)/4|0)|0,l-((o|0)/4|0)|0,c[h+68>>2]|0,b)|0)>2){B=(B*97|0|0)/100|0}do{if((dC(c[h+68>>2]|0,d,k,m,b,0,3)|0)==0){if((dC(c[h+68>>2]|0,d,l,m,b,0,3)|0)<=0){break}if((dC(c[h+68>>2]|0,j,k,m,b,0,4)|0)<=0){break}if((dC(c[h+68>>2]|0,j,l,m,b,0,4)|0)!=0){break}p=96}}while(0);if((k<<1|0)>((c[h+52>>2]|0)+(c[h+56>>2]|0)|0)){B=(B*99|0|0)/100|0}a=h;s=p;t=B;dy(a,s,t)|0;if((B|0)<100){break}E=p;F=E;i=e;return F|0}}while(0);do{if((o<<1|0)<((c[h+64>>2]|0)-(c[h+52>>2]|0)+1|0)){if((k<<1|0)<((c[h+56>>2]|0)+(c[h+60>>2]|0)|0)){break}if((l|0)>((c[h+64>>2]|0)+1|0)){break}if((c[h+196>>2]|0)!=2){break}if((c[h+28>>2]|0)!=2){break}if((c[h+32>>2]|0)!=0){break}if((c[g+108>>2]|0)!=0){break}B=100;p=34;if((l<<1|0)>=(c[h+64>>2]|0)){B=(B*98|0|0)/100|0}if((k<<2|0)<=((c[h+56>>2]|0)+((c[h+60>>2]|0)*3|0)|0)){B=(B*99|0|0)/100|0}if((dv(d,j,(k+(l*3|0)|0)/4|0,(k+(l*3|0)|0)/4|0,c[h+68>>2]|0,b)|0)!=2){B=(B*90|0|0)/100|0}if((dv(j,j,k,l,c[h+68>>2]|0,b)|0)!=1){B=(B*99|0|0)/100|0}if((dv(d,j,k+((o|0)/4|0)|0,k+((o|0)/4|0)|0,c[h+68>>2]|0,b)|0)>2){B=(B*97|0|0)/100|0}if((dv(d,j,l-((o|0)/4|0)|0,l-((o|0)/4|0)|0,c[h+68>>2]|0,b)|0)>2){B=(B*97|0|0)/100|0}if((l<<1|0)>((c[h+60>>2]|0)+(c[h+64>>2]|0)|0)){B=(B*99|0|0)/100|0}t=h;s=B;dy(t,8222,s)|0;if((B|0)<100){break}E=p;F=E;i=e;return F|0}}while(0);do{if((o<<1|0)<((c[h+64>>2]|0)-(c[h+52>>2]|0)|0)){if((m|0)<(o|0)){break}if((m|0)<=3){break}if((o|0)<=1){break}if((k<<1|0)>=((c[h+52>>2]|0)+(c[h+56>>2]|0)|0)){break}if((l*3|0|0)>=((c[h+56>>2]<<1)+(c[h+60>>2]|0)|0)){break}B=dC(c[h+68>>2]|0,d,k,m,b,0,3)|0;do{if((B|0)>(dC(c[h+68>>2]|0,d,l,m,b,0,3)|0)){s=dC(c[h+68>>2]|0,j,k,m,b,0,4)|0;if((s|0)>=(dC(c[h+68>>2]|0,j,l,m,b,0,4)|0)){break}if((dv(d,j,k,k,c[h+68>>2]|0,b)|0)!=2){break}if((dv(d,j,l,l,c[h+68>>2]|0,b)|0)!=2){break}p=126;s=h;t=p;dy(s,t,99)|0}}while(0)}}while(0);do{if((o<<1|0)<((c[h+64>>2]|0)-(c[h+52>>2]|0)|0)){if((m|0)<(o|0)){break}if((m|0)<=2){break}if((o|0)<=1){break}if((k<<1|0)>=((c[h+52>>2]|0)+(c[h+56>>2]|0)|0)){break}if((l*3|0|0)>=((c[h+56>>2]<<1)+(c[h+60>>2]|0)|0)){break}if((c[h+196>>2]|0)!=1){break}if((c[h+28>>2]|0)!=1){break}if((c[h+32>>2]|0)!=0){break}if((c[g+108>>2]|0)!=0){break}B=dC(c[h+68>>2]|0,d,k,m,b,0,3)|0;if((B|0)>((dC(c[h+68>>2]|0,d,l,m,b,0,3)|0)-((m|0)/8|0)|0)){C=5300}else{B=dC(c[h+68>>2]|0,d,k,m,b,0,3)|0;if((B|0)>((dC(c[h+68>>2]|0,d,l-1|0,m,b,0,3)|0)-((m|0)/8|0)|0)){C=5300}}do{if((C|0)==5300){B=dC(c[h+68>>2]|0,j,k,m,b,0,4)|0;if((B|0)<=((dC(c[h+68>>2]|0,j,l,m,b,0,4)|0)-((m|0)/8|0)|0)){B=dC(c[h+68>>2]|0,j,k,m,b,0,4)|0;if((B|0)<=((dC(c[h+68>>2]|0,j,l-1|0,m,b,0,4)|0)-((m|0)/8|0)|0)){break}}if((dv(d,j,k,k,c[h+68>>2]|0,b)|0)!=1){break}if((dv(d,j,l,l,c[h+68>>2]|0,b)|0)!=2){if((dv(d,j,l-1|0,l-1|0,c[h+68>>2]|0,b)|0)!=2){break}}p=94;B=h;t=p;dy(B,t,99)|0}}while(0)}}while(0);q=c[h+40>>2]|0;if((q|0)==168){u=l;while(1){if((u|0)<=(k|0)){break}if(((du(d,j,u,u,c[h+68>>2]|0,b,1)|0)<<24>>24|0)==0){C=5311;break}u=u-1|0}if((C|0)==5311){k=u;o=l-k+1|0}}if((c[(c[7036]|0)+37068>>2]|0)!=0){E=cE(g)|0;F=E;i=e;return F|0}do{if((p|0)!=57344){if((c[h+72>>2]|0)<=0){break}if((c[h+116>>2]|0)!=100){break}E=p;F=E;i=e;return F|0}}while(0);do{if((p|0)==57344){C=5324}else{if((c[h+72>>2]|0)==0){C=5324;break}if((c[h+116>>2]|0)<100){C=5324}}}while(0);if((C|0)==5324){p=cL(g)|0}do{if((p|0)==57344){C=5328}else{if((c[h+72>>2]|0)==0){C=5328;break}if((c[h+116>>2]|0)<100){C=5328}}}while(0);if((C|0)==5328){p=cM(g)|0}do{if((p|0)==57344){C=5332}else{if((c[h+72>>2]|0)==0){C=5332;break}if((c[h+116>>2]|0)<100){C=5332}}}while(0);if((C|0)==5332){p=cN(g)|0}do{if((p|0)==57344){C=5336}else{if((c[h+72>>2]|0)==0){C=5336;break}if((c[h+116>>2]|0)<100){C=5336}}}while(0);if((C|0)==5336){p=cO(g)|0}do{if((p|0)==57344){C=5340}else{if((c[h+72>>2]|0)==0){C=5340;break}if((c[h+116>>2]|0)<100){C=5340}}}while(0);if((C|0)==5340){p=cP(g)|0}do{if((p|0)==57344){C=5344}else{if((c[h+72>>2]|0)==0){C=5344;break}if((c[h+116>>2]|0)<100){C=5344}}}while(0);if((C|0)==5344){p=cQ(g)|0}do{if((p|0)==57344){C=5348}else{if((c[h+72>>2]|0)==0){C=5348;break}if((c[h+116>>2]|0)<100){C=5348}}}while(0);if((C|0)==5348){p=cR(g)|0}do{if((p|0)==57344){C=5352}else{if((c[h+72>>2]|0)==0){C=5352;break}if((c[h+116>>2]|0)<100){C=5352}}}while(0);if((C|0)==5352){p=cS(g)|0}do{if((p|0)==57344){C=5356}else{if((c[h+72>>2]|0)==0){C=5356;break}if((c[h+116>>2]|0)<100){C=5356}}}while(0);if((C|0)==5356){p=cT(g)|0}do{if((p|0)==57344){C=5360}else{if((c[h+72>>2]|0)==0){C=5360;break}if((c[h+116>>2]|0)<100){C=5360}}}while(0);if((C|0)==5360){p=cU(g)|0}do{if((p|0)==57344){C=5364}else{if((c[h+72>>2]|0)==0){C=5364;break}if((c[h+116>>2]|0)<100){C=5364}}}while(0);if((C|0)==5364){p=cV(g)|0}do{if((p|0)==57344){C=5368}else{if((c[h+72>>2]|0)==0){C=5368;break}if((c[h+116>>2]|0)<100){C=5368}}}while(0);if((C|0)==5368){p=cW(g)|0}do{if((p|0)==57344){C=5372}else{if((c[h+72>>2]|0)==0){C=5372;break}if((c[h+116>>2]|0)<100){C=5372}}}while(0);if((C|0)==5372){p=cX(g)|0}do{if((p|0)==57344){C=5376}else{if((c[h+72>>2]|0)==0){C=5376;break}if((c[h+116>>2]|0)<100){C=5376}}}while(0);if((C|0)==5376){p=cY(g)|0}do{if((p|0)==57344){C=5380}else{if((c[h+72>>2]|0)==0){C=5380;break}if((c[h+116>>2]|0)<100){C=5380}}}while(0);if((C|0)==5380){p=cZ(g)|0}do{if((p|0)==57344){C=5384}else{if((c[h+72>>2]|0)==0){C=5384;break}if((c[h+116>>2]|0)<100){C=5384}}}while(0);if((C|0)==5384){p=c_(g)|0}do{if((p|0)==57344){C=5388}else{if((c[h+72>>2]|0)==0){C=5388;break}if((c[h+116>>2]|0)<100){C=5388}}}while(0);if((C|0)==5388){p=c$(g)|0}do{if((p|0)==57344){C=5392}else{if((c[h+72>>2]|0)==0){C=5392;break}if((c[h+116>>2]|0)<100){C=5392}}}while(0);if((C|0)==5392){p=c0(g)|0}do{if((p|0)==57344){C=5396}else{if((c[h+72>>2]|0)==0){C=5396;break}if((c[h+116>>2]|0)<100){C=5396}}}while(0);if((C|0)==5396){p=c1(g)|0}do{if((p|0)==57344){C=5400}else{if((c[h+72>>2]|0)==0){C=5400;break}if((c[h+116>>2]|0)<100){C=5400}}}while(0);if((C|0)==5400){p=c2(g)|0}do{if((p|0)==57344){C=5404}else{if((c[h+72>>2]|0)==0){C=5404;break}if((c[h+116>>2]|0)<100){C=5404}}}while(0);if((C|0)==5404){p=c3(g)|0}do{if((p|0)==57344){C=5408}else{if((c[h+72>>2]|0)==0){C=5408;break}if((c[h+116>>2]|0)<100){C=5408}}}while(0);if((C|0)==5408){p=c4(g)|0}do{if((p|0)==57344){C=5412}else{if((c[h+72>>2]|0)==0){C=5412;break}if((c[h+116>>2]|0)<100){C=5412}}}while(0);if((C|0)==5412){p=c5(g)|0}do{if((p|0)==57344){C=5416}else{if((c[h+72>>2]|0)==0){C=5416;break}if((c[h+116>>2]|0)<100){C=5416}}}while(0);if((C|0)==5416){p=c6(g)|0}do{if((p|0)==57344){C=5420}else{if((c[h+72>>2]|0)==0){C=5420;break}if((c[h+116>>2]|0)<100){C=5420}}}while(0);if((C|0)==5420){p=c7(g)|0}do{if((p|0)==57344){C=5424}else{if((c[h+72>>2]|0)==0){C=5424;break}if((c[h+116>>2]|0)<100){C=5424}}}while(0);if((C|0)==5424){p=c8(g)|0}do{if((p|0)==57344){C=5428}else{if((c[h+72>>2]|0)==0){C=5428;break}if((c[h+116>>2]|0)<100){C=5428}}}while(0);if((C|0)==5428){p=c9(g)|0}do{if((p|0)==57344){C=5432}else{if((c[h+72>>2]|0)==0){C=5432;break}if((c[h+116>>2]|0)<100){C=5432}}}while(0);if((C|0)==5432){p=da(g)|0}do{if((p|0)==57344){C=5436}else{if((c[h+72>>2]|0)==0){C=5436;break}if((c[h+116>>2]|0)<100){C=5436}}}while(0);if((C|0)==5436){p=db(g)|0}do{if((p|0)==57344){C=5440}else{if((c[h+72>>2]|0)==0){C=5440;break}if((c[h+116>>2]|0)<100){C=5440}}}while(0);if((C|0)==5440){p=dc(g)|0}do{if((p|0)==57344){C=5444}else{if((c[h+72>>2]|0)==0){C=5444;break}if((c[h+116>>2]|0)<100){C=5444}}}while(0);if((C|0)==5444){p=dd(g)|0}do{if((p|0)==57344){C=5448}else{if((c[h+72>>2]|0)==0){C=5448;break}if((c[h+116>>2]|0)<100){C=5448}}}while(0);if((C|0)==5448){p=cE(g)|0}do{if((p|0)==57344){C=5452}else{if((c[h+72>>2]|0)==0){C=5452;break}if((c[h+116>>2]|0)<100){C=5452}}}while(0);if((C|0)==5452){p=de(g)|0}do{if((p|0)==57344){C=5456}else{if((c[h+72>>2]|0)==0){C=5456;break}if((c[h+116>>2]|0)<100){C=5456}}}while(0);if((C|0)==5456){p=df(g)|0}do{if((p|0)==57344){C=5460}else{if((c[h+72>>2]|0)==0){C=5460;break}if((c[h+116>>2]|0)<100){C=5460}}}while(0);if((C|0)==5460){p=dg(g)|0}do{if((c[h+72>>2]|0)==0){if((p|0)==57344){break}g=c[n>>2]|0;au(g|0,16200,(g=i,i=i+1|0,i=i+7&-8,c[g>>2]=0,g)|0)|0;i=g}}while(0);do{if((c[h+72>>2]|0)>0){if((c[h+116>>2]|0)<=95){break}g=c[h+76>>2]|0;p=g;c[h+36>>2]=g}}while(0);r=0;while(1){if((r|0)>=(c[h+72>>2]|0)){break}if((c[h+76+(r<<2)>>2]|0)==(p|0)){p=c[h+76>>2]|0}r=r+1|0}E=p;F=E;i=e;return F|0} +function ew(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;if((a|0)==0){return}b=a-8|0;d=b;e=c[6922]|0;if(b>>>0>>0){bb()}f=c[a-4>>2]|0;g=f&3;if((g|0)==1){bb()}h=f&-8;i=a+(h-8)|0;j=i;L12362:do{if((f&1|0)==0){k=c[b>>2]|0;if((g|0)==0){return}l=-8-k|0;m=a+l|0;n=m;o=k+h|0;if(m>>>0>>0){bb()}if((n|0)==(c[6923]|0)){p=a+(h-4)|0;if((c[p>>2]&3|0)!=3){q=n;r=o;break}c[6920]=o;c[p>>2]=c[p>>2]&-2;c[a+(l+4)>>2]=o|1;c[i>>2]=o;return}p=k>>>3;if(k>>>0<256>>>0){k=c[a+(l+8)>>2]|0;s=c[a+(l+12)>>2]|0;t=27712+(p<<1<<2)|0;do{if((k|0)!=(t|0)){if(k>>>0>>0){bb()}if((c[k+12>>2]|0)==(n|0)){break}bb()}}while(0);if((s|0)==(k|0)){c[6918]=c[6918]&~(1<>>0>>0){bb()}v=s+8|0;if((c[v>>2]|0)==(n|0)){u=v;break}bb()}}while(0);c[k+12>>2]=s;c[u>>2]=k;q=n;r=o;break}t=m;p=c[a+(l+24)>>2]|0;v=c[a+(l+12)>>2]|0;do{if((v|0)==(t|0)){w=a+(l+20)|0;x=c[w>>2]|0;if((x|0)==0){y=a+(l+16)|0;z=c[y>>2]|0;if((z|0)==0){A=0;break}else{B=z;C=y}}else{B=x;C=w}while(1){w=B+20|0;x=c[w>>2]|0;if((x|0)!=0){B=x;C=w;continue}w=B+16|0;x=c[w>>2]|0;if((x|0)==0){break}else{B=x;C=w}}if(C>>>0>>0){bb()}else{c[C>>2]=0;A=B;break}}else{w=c[a+(l+8)>>2]|0;if(w>>>0>>0){bb()}x=w+12|0;if((c[x>>2]|0)!=(t|0)){bb()}y=v+8|0;if((c[y>>2]|0)==(t|0)){c[x>>2]=v;c[y>>2]=w;A=v;break}else{bb()}}}while(0);if((p|0)==0){q=n;r=o;break}v=a+(l+28)|0;m=27976+(c[v>>2]<<2)|0;do{if((t|0)==(c[m>>2]|0)){c[m>>2]=A;if((A|0)!=0){break}c[6919]=c[6919]&~(1<>2]);q=n;r=o;break L12362}else{if(p>>>0<(c[6922]|0)>>>0){bb()}k=p+16|0;if((c[k>>2]|0)==(t|0)){c[k>>2]=A}else{c[p+20>>2]=A}if((A|0)==0){q=n;r=o;break L12362}}}while(0);if(A>>>0<(c[6922]|0)>>>0){bb()}c[A+24>>2]=p;t=c[a+(l+16)>>2]|0;do{if((t|0)!=0){if(t>>>0<(c[6922]|0)>>>0){bb()}else{c[A+16>>2]=t;c[t+24>>2]=A;break}}}while(0);t=c[a+(l+20)>>2]|0;if((t|0)==0){q=n;r=o;break}if(t>>>0<(c[6922]|0)>>>0){bb()}else{c[A+20>>2]=t;c[t+24>>2]=A;q=n;r=o;break}}else{q=d;r=h}}while(0);d=q;if(d>>>0>=i>>>0){bb()}A=a+(h-4)|0;e=c[A>>2]|0;if((e&1|0)==0){bb()}do{if((e&2|0)==0){if((j|0)==(c[6924]|0)){B=(c[6921]|0)+r|0;c[6921]=B;c[6924]=q;c[q+4>>2]=B|1;if((q|0)!=(c[6923]|0)){return}c[6923]=0;c[6920]=0;return}if((j|0)==(c[6923]|0)){B=(c[6920]|0)+r|0;c[6920]=B;c[6923]=q;c[q+4>>2]=B|1;c[d+B>>2]=B;return}B=(e&-8)+r|0;C=e>>>3;L12464:do{if(e>>>0<256>>>0){u=c[a+h>>2]|0;g=c[a+(h|4)>>2]|0;b=27712+(C<<1<<2)|0;do{if((u|0)!=(b|0)){if(u>>>0<(c[6922]|0)>>>0){bb()}if((c[u+12>>2]|0)==(j|0)){break}bb()}}while(0);if((g|0)==(u|0)){c[6918]=c[6918]&~(1<>>0<(c[6922]|0)>>>0){bb()}f=g+8|0;if((c[f>>2]|0)==(j|0)){D=f;break}bb()}}while(0);c[u+12>>2]=g;c[D>>2]=u}else{b=i;f=c[a+(h+16)>>2]|0;t=c[a+(h|4)>>2]|0;do{if((t|0)==(b|0)){p=a+(h+12)|0;v=c[p>>2]|0;if((v|0)==0){m=a+(h+8)|0;k=c[m>>2]|0;if((k|0)==0){E=0;break}else{F=k;G=m}}else{F=v;G=p}while(1){p=F+20|0;v=c[p>>2]|0;if((v|0)!=0){F=v;G=p;continue}p=F+16|0;v=c[p>>2]|0;if((v|0)==0){break}else{F=v;G=p}}if(G>>>0<(c[6922]|0)>>>0){bb()}else{c[G>>2]=0;E=F;break}}else{p=c[a+h>>2]|0;if(p>>>0<(c[6922]|0)>>>0){bb()}v=p+12|0;if((c[v>>2]|0)!=(b|0)){bb()}m=t+8|0;if((c[m>>2]|0)==(b|0)){c[v>>2]=t;c[m>>2]=p;E=t;break}else{bb()}}}while(0);if((f|0)==0){break}t=a+(h+20)|0;u=27976+(c[t>>2]<<2)|0;do{if((b|0)==(c[u>>2]|0)){c[u>>2]=E;if((E|0)!=0){break}c[6919]=c[6919]&~(1<>2]);break L12464}else{if(f>>>0<(c[6922]|0)>>>0){bb()}g=f+16|0;if((c[g>>2]|0)==(b|0)){c[g>>2]=E}else{c[f+20>>2]=E}if((E|0)==0){break L12464}}}while(0);if(E>>>0<(c[6922]|0)>>>0){bb()}c[E+24>>2]=f;b=c[a+(h+8)>>2]|0;do{if((b|0)!=0){if(b>>>0<(c[6922]|0)>>>0){bb()}else{c[E+16>>2]=b;c[b+24>>2]=E;break}}}while(0);b=c[a+(h+12)>>2]|0;if((b|0)==0){break}if(b>>>0<(c[6922]|0)>>>0){bb()}else{c[E+20>>2]=b;c[b+24>>2]=E;break}}}while(0);c[q+4>>2]=B|1;c[d+B>>2]=B;if((q|0)!=(c[6923]|0)){H=B;break}c[6920]=B;return}else{c[A>>2]=e&-2;c[q+4>>2]=r|1;c[d+r>>2]=r;H=r}}while(0);r=H>>>3;if(H>>>0<256>>>0){d=r<<1;e=27712+(d<<2)|0;A=c[6918]|0;E=1<>2]|0;if(h>>>0>=(c[6922]|0)>>>0){I=h;J=r;break}bb()}}while(0);c[J>>2]=q;c[I+12>>2]=q;c[q+8>>2]=I;c[q+12>>2]=e;return}e=q;I=H>>>8;do{if((I|0)==0){K=0}else{if(H>>>0>16777215>>>0){K=31;break}J=(I+1048320|0)>>>16&8;d=I<>>16&4;A=d<>>16&2;r=14-(E|J|d)+(A<>>15)|0;K=H>>>((r+7|0)>>>0)&1|r<<1}}while(0);I=27976+(K<<2)|0;c[q+28>>2]=K;c[q+20>>2]=0;c[q+16>>2]=0;r=c[6919]|0;d=1<>2]=e;c[q+24>>2]=I;c[q+12>>2]=q;c[q+8>>2]=q}else{if((K|0)==31){L=0}else{L=25-(K>>>1)|0}A=H<>2]|0;while(1){if((c[J+4>>2]&-8|0)==(H|0)){break}M=J+16+(A>>>31<<2)|0;E=c[M>>2]|0;if((E|0)==0){N=9322;break}else{A=A<<1;J=E}}if((N|0)==9322){if(M>>>0<(c[6922]|0)>>>0){bb()}else{c[M>>2]=e;c[q+24>>2]=J;c[q+12>>2]=q;c[q+8>>2]=q;break}}A=J+8|0;B=c[A>>2]|0;E=c[6922]|0;if(J>>>0>>0){bb()}if(B>>>0>>0){bb()}else{c[B+12>>2]=e;c[A>>2]=e;c[q+8>>2]=B;c[q+12>>2]=J;c[q+24>>2]=0;break}}}while(0);q=(c[6926]|0)-1|0;c[6926]=q;if((q|0)==0){O=28128}else{return}while(1){q=c[O>>2]|0;if((q|0)==0){break}else{O=q+8|0}}c[6926]=-1;return}function ex(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if((a|0)==0){d=ev(b)|0;return d|0}if(b>>>0>4294967231>>>0){c[(a9()|0)>>2]=12;d=0;return d|0}if(b>>>0<11>>>0){e=16}else{e=b+11&-8}f=ey(a-8|0,e)|0;if((f|0)!=0){d=f+8|0;return d|0}f=ev(b)|0;if((f|0)==0){d=0;return d|0}e=c[a-4>>2]|0;g=(e&-8)-((e&3|0)==0?8:4)|0;e=g>>>0>>0?g:b;eB(f|0,a|0,e)|0;ew(a);d=f;return d|0}function ey(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;d=a+4|0;e=c[d>>2]|0;f=e&-8;g=a;h=g+f|0;i=h;j=c[6922]|0;if(g>>>0>>0){bb();return 0}k=e&3;if(!((k|0)!=1&g>>>0>>0)){bb();return 0}l=g+(f|4)|0;m=c[l>>2]|0;if((m&1|0)==0){bb();return 0}if((k|0)==0){if(b>>>0<256>>>0){n=0;return n|0}do{if(f>>>0>=(b+4|0)>>>0){if((f-b|0)>>>0>c[6838]<<1>>>0){break}else{n=a}return n|0}}while(0);n=0;return n|0}if(f>>>0>=b>>>0){k=f-b|0;if(k>>>0<=15>>>0){n=a;return n|0}c[d>>2]=e&1|b|2;c[g+(b+4)>>2]=k|3;c[l>>2]=c[l>>2]|1;ez(g+b|0,k);n=a;return n|0}if((i|0)==(c[6924]|0)){k=(c[6921]|0)+f|0;if(k>>>0<=b>>>0){n=0;return n|0}l=k-b|0;c[d>>2]=e&1|b|2;c[g+(b+4)>>2]=l|1;c[6924]=g+b;c[6921]=l;n=a;return n|0}if((i|0)==(c[6923]|0)){l=(c[6920]|0)+f|0;if(l>>>0>>0){n=0;return n|0}k=l-b|0;if(k>>>0>15>>>0){c[d>>2]=e&1|b|2;c[g+(b+4)>>2]=k|1;c[g+l>>2]=k;o=g+(l+4)|0;c[o>>2]=c[o>>2]&-2;p=g+b|0;q=k}else{c[d>>2]=e&1|l|2;e=g+(l+4)|0;c[e>>2]=c[e>>2]|1;p=0;q=0}c[6920]=q;c[6923]=p;n=a;return n|0}if((m&2|0)!=0){n=0;return n|0}p=(m&-8)+f|0;if(p>>>0>>0){n=0;return n|0}q=p-b|0;e=m>>>3;L12651:do{if(m>>>0<256>>>0){l=c[g+(f+8)>>2]|0;k=c[g+(f+12)>>2]|0;o=27712+(e<<1<<2)|0;do{if((l|0)!=(o|0)){if(l>>>0>>0){bb();return 0}if((c[l+12>>2]|0)==(i|0)){break}bb();return 0}}while(0);if((k|0)==(l|0)){c[6918]=c[6918]&~(1<>>0>>0){bb();return 0}s=k+8|0;if((c[s>>2]|0)==(i|0)){r=s;break}bb();return 0}}while(0);c[l+12>>2]=k;c[r>>2]=l}else{o=h;s=c[g+(f+24)>>2]|0;t=c[g+(f+12)>>2]|0;do{if((t|0)==(o|0)){u=g+(f+20)|0;v=c[u>>2]|0;if((v|0)==0){w=g+(f+16)|0;x=c[w>>2]|0;if((x|0)==0){y=0;break}else{z=x;A=w}}else{z=v;A=u}while(1){u=z+20|0;v=c[u>>2]|0;if((v|0)!=0){z=v;A=u;continue}u=z+16|0;v=c[u>>2]|0;if((v|0)==0){break}else{z=v;A=u}}if(A>>>0>>0){bb();return 0}else{c[A>>2]=0;y=z;break}}else{u=c[g+(f+8)>>2]|0;if(u>>>0>>0){bb();return 0}v=u+12|0;if((c[v>>2]|0)!=(o|0)){bb();return 0}w=t+8|0;if((c[w>>2]|0)==(o|0)){c[v>>2]=t;c[w>>2]=u;y=t;break}else{bb();return 0}}}while(0);if((s|0)==0){break}t=g+(f+28)|0;l=27976+(c[t>>2]<<2)|0;do{if((o|0)==(c[l>>2]|0)){c[l>>2]=y;if((y|0)!=0){break}c[6919]=c[6919]&~(1<>2]);break L12651}else{if(s>>>0<(c[6922]|0)>>>0){bb();return 0}k=s+16|0;if((c[k>>2]|0)==(o|0)){c[k>>2]=y}else{c[s+20>>2]=y}if((y|0)==0){break L12651}}}while(0);if(y>>>0<(c[6922]|0)>>>0){bb();return 0}c[y+24>>2]=s;o=c[g+(f+16)>>2]|0;do{if((o|0)!=0){if(o>>>0<(c[6922]|0)>>>0){bb();return 0}else{c[y+16>>2]=o;c[o+24>>2]=y;break}}}while(0);o=c[g+(f+20)>>2]|0;if((o|0)==0){break}if(o>>>0<(c[6922]|0)>>>0){bb();return 0}else{c[y+20>>2]=o;c[o+24>>2]=y;break}}}while(0);if(q>>>0<16>>>0){c[d>>2]=p|c[d>>2]&1|2;y=g+(p|4)|0;c[y>>2]=c[y>>2]|1;n=a;return n|0}else{c[d>>2]=c[d>>2]&1|b|2;c[g+(b+4)>>2]=q|3;d=g+(p|4)|0;c[d>>2]=c[d>>2]|1;ez(g+b|0,q);n=a;return n|0}return 0}function ez(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;d=a;e=d+b|0;f=e;g=c[a+4>>2]|0;L12727:do{if((g&1|0)==0){h=c[a>>2]|0;if((g&3|0)==0){return}i=d+(-h|0)|0;j=i;k=h+b|0;l=c[6922]|0;if(i>>>0>>0){bb()}if((j|0)==(c[6923]|0)){m=d+(b+4)|0;if((c[m>>2]&3|0)!=3){n=j;o=k;break}c[6920]=k;c[m>>2]=c[m>>2]&-2;c[d+(4-h)>>2]=k|1;c[e>>2]=k;return}m=h>>>3;if(h>>>0<256>>>0){p=c[d+(8-h)>>2]|0;q=c[d+(12-h)>>2]|0;r=27712+(m<<1<<2)|0;do{if((p|0)!=(r|0)){if(p>>>0>>0){bb()}if((c[p+12>>2]|0)==(j|0)){break}bb()}}while(0);if((q|0)==(p|0)){c[6918]=c[6918]&~(1<>>0>>0){bb()}t=q+8|0;if((c[t>>2]|0)==(j|0)){s=t;break}bb()}}while(0);c[p+12>>2]=q;c[s>>2]=p;n=j;o=k;break}r=i;m=c[d+(24-h)>>2]|0;t=c[d+(12-h)>>2]|0;do{if((t|0)==(r|0)){u=16-h|0;v=d+(u+4)|0;w=c[v>>2]|0;if((w|0)==0){x=d+u|0;u=c[x>>2]|0;if((u|0)==0){y=0;break}else{z=u;A=x}}else{z=w;A=v}while(1){v=z+20|0;w=c[v>>2]|0;if((w|0)!=0){z=w;A=v;continue}v=z+16|0;w=c[v>>2]|0;if((w|0)==0){break}else{z=w;A=v}}if(A>>>0>>0){bb()}else{c[A>>2]=0;y=z;break}}else{v=c[d+(8-h)>>2]|0;if(v>>>0>>0){bb()}w=v+12|0;if((c[w>>2]|0)!=(r|0)){bb()}x=t+8|0;if((c[x>>2]|0)==(r|0)){c[w>>2]=t;c[x>>2]=v;y=t;break}else{bb()}}}while(0);if((m|0)==0){n=j;o=k;break}t=d+(28-h)|0;l=27976+(c[t>>2]<<2)|0;do{if((r|0)==(c[l>>2]|0)){c[l>>2]=y;if((y|0)!=0){break}c[6919]=c[6919]&~(1<>2]);n=j;o=k;break L12727}else{if(m>>>0<(c[6922]|0)>>>0){bb()}i=m+16|0;if((c[i>>2]|0)==(r|0)){c[i>>2]=y}else{c[m+20>>2]=y}if((y|0)==0){n=j;o=k;break L12727}}}while(0);if(y>>>0<(c[6922]|0)>>>0){bb()}c[y+24>>2]=m;r=16-h|0;t=c[d+r>>2]|0;do{if((t|0)!=0){if(t>>>0<(c[6922]|0)>>>0){bb()}else{c[y+16>>2]=t;c[t+24>>2]=y;break}}}while(0);t=c[d+(r+4)>>2]|0;if((t|0)==0){n=j;o=k;break}if(t>>>0<(c[6922]|0)>>>0){bb()}else{c[y+20>>2]=t;c[t+24>>2]=y;n=j;o=k;break}}else{n=a;o=b}}while(0);a=c[6922]|0;if(e>>>0>>0){bb()}y=d+(b+4)|0;z=c[y>>2]|0;do{if((z&2|0)==0){if((f|0)==(c[6924]|0)){A=(c[6921]|0)+o|0;c[6921]=A;c[6924]=n;c[n+4>>2]=A|1;if((n|0)!=(c[6923]|0)){return}c[6923]=0;c[6920]=0;return}if((f|0)==(c[6923]|0)){A=(c[6920]|0)+o|0;c[6920]=A;c[6923]=n;c[n+4>>2]=A|1;c[n+A>>2]=A;return}A=(z&-8)+o|0;s=z>>>3;L12827:do{if(z>>>0<256>>>0){g=c[d+(b+8)>>2]|0;t=c[d+(b+12)>>2]|0;h=27712+(s<<1<<2)|0;do{if((g|0)!=(h|0)){if(g>>>0>>0){bb()}if((c[g+12>>2]|0)==(f|0)){break}bb()}}while(0);if((t|0)==(g|0)){c[6918]=c[6918]&~(1<>>0>>0){bb()}m=t+8|0;if((c[m>>2]|0)==(f|0)){B=m;break}bb()}}while(0);c[g+12>>2]=t;c[B>>2]=g}else{h=e;m=c[d+(b+24)>>2]|0;l=c[d+(b+12)>>2]|0;do{if((l|0)==(h|0)){i=d+(b+20)|0;p=c[i>>2]|0;if((p|0)==0){q=d+(b+16)|0;v=c[q>>2]|0;if((v|0)==0){C=0;break}else{D=v;E=q}}else{D=p;E=i}while(1){i=D+20|0;p=c[i>>2]|0;if((p|0)!=0){D=p;E=i;continue}i=D+16|0;p=c[i>>2]|0;if((p|0)==0){break}else{D=p;E=i}}if(E>>>0>>0){bb()}else{c[E>>2]=0;C=D;break}}else{i=c[d+(b+8)>>2]|0;if(i>>>0>>0){bb()}p=i+12|0;if((c[p>>2]|0)!=(h|0)){bb()}q=l+8|0;if((c[q>>2]|0)==(h|0)){c[p>>2]=l;c[q>>2]=i;C=l;break}else{bb()}}}while(0);if((m|0)==0){break}l=d+(b+28)|0;g=27976+(c[l>>2]<<2)|0;do{if((h|0)==(c[g>>2]|0)){c[g>>2]=C;if((C|0)!=0){break}c[6919]=c[6919]&~(1<>2]);break L12827}else{if(m>>>0<(c[6922]|0)>>>0){bb()}t=m+16|0;if((c[t>>2]|0)==(h|0)){c[t>>2]=C}else{c[m+20>>2]=C}if((C|0)==0){break L12827}}}while(0);if(C>>>0<(c[6922]|0)>>>0){bb()}c[C+24>>2]=m;h=c[d+(b+16)>>2]|0;do{if((h|0)!=0){if(h>>>0<(c[6922]|0)>>>0){bb()}else{c[C+16>>2]=h;c[h+24>>2]=C;break}}}while(0);h=c[d+(b+20)>>2]|0;if((h|0)==0){break}if(h>>>0<(c[6922]|0)>>>0){bb()}else{c[C+20>>2]=h;c[h+24>>2]=C;break}}}while(0);c[n+4>>2]=A|1;c[n+A>>2]=A;if((n|0)!=(c[6923]|0)){F=A;break}c[6920]=A;return}else{c[y>>2]=z&-2;c[n+4>>2]=o|1;c[n+o>>2]=o;F=o}}while(0);o=F>>>3;if(F>>>0<256>>>0){z=o<<1;y=27712+(z<<2)|0;C=c[6918]|0;b=1<>2]|0;if(d>>>0>=(c[6922]|0)>>>0){G=d;H=o;break}bb()}}while(0);c[H>>2]=n;c[G+12>>2]=n;c[n+8>>2]=G;c[n+12>>2]=y;return}y=n;G=F>>>8;do{if((G|0)==0){I=0}else{if(F>>>0>16777215>>>0){I=31;break}H=(G+1048320|0)>>>16&8;z=G<>>16&4;C=z<>>16&2;o=14-(b|H|z)+(C<>>15)|0;I=F>>>((o+7|0)>>>0)&1|o<<1}}while(0);G=27976+(I<<2)|0;c[n+28>>2]=I;c[n+20>>2]=0;c[n+16>>2]=0;o=c[6919]|0;z=1<>2]=y;c[n+24>>2]=G;c[n+12>>2]=n;c[n+8>>2]=n;return}if((I|0)==31){J=0}else{J=25-(I>>>1)|0}I=F<>2]|0;while(1){if((c[J+4>>2]&-8|0)==(F|0)){break}K=J+16+(I>>>31<<2)|0;G=c[K>>2]|0;if((G|0)==0){L=9602;break}else{I=I<<1;J=G}}if((L|0)==9602){if(K>>>0<(c[6922]|0)>>>0){bb()}c[K>>2]=y;c[n+24>>2]=J;c[n+12>>2]=n;c[n+8>>2]=n;return}K=J+8|0;L=c[K>>2]|0;I=c[6922]|0;if(J>>>0>>0){bb()}if(L>>>0>>0){bb()}c[L+12>>2]=y;c[K>>2]=y;c[n+8>>2]=L;c[n+12>>2]=J;c[n+24>>2]=0;return}function eA(b){b=b|0;var c=0;c=b;while(a[c]|0){c=c+1|0}return c-b|0}function eB(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=b|0;if((b&3)==(d&3)){while(b&3){if((e|0)==0)return f|0;a[b]=a[d]|0;b=b+1|0;d=d+1|0;e=e-1|0}while((e|0)>=4){c[b>>2]=c[d>>2];b=b+4|0;d=d+4|0;e=e-4|0}}while((e|0)>0){a[b]=a[d]|0;b=b+1|0;d=d+1|0;e=e-1|0}return f|0}function eC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=b+e|0;if((e|0)>=20){d=d&255;g=b&3;h=d|d<<8|d<<16|d<<24;i=f&~3;if(g){g=b+4-g|0;while((b|0)<(g|0)){a[b]=d;b=b+1|0}}while((b|0)<(i|0)){c[b>>2]=h;b=b+4|0}}while((b|0)<(f|0)){a[b]=d;b=b+1|0}return b-e|0}function eD(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if((c|0)<(b|0)&(b|0)<(c+d|0)){e=b;c=c+d|0;b=b+d|0;while((d|0)>0){b=b-1|0;c=c-1|0;d=d-1|0;a[b]=a[c]|0}b=e}else{eB(b,c,d)|0}return b|0}function eE(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0;while((e|0)<(d|0)){a[b+e|0]=f?0:a[c+e|0]|0;f=f?1:(a[c+e|0]|0)==0;e=e+1|0}return b|0}function eF(a){a=a|0;if((a|0)<65)return a|0;if((a|0)>90)return a|0;return a-65+97|0}function eG(a,b){a=a|0;b=b|0;return bk[a&1](b|0)|0}function eH(a){a=a|0;bl[a&1]()}function eI(a,b,c){a=a|0;b=b|0;c=c|0;return bm[a&7](b|0,c|0)|0}function eJ(a,b){a=a|0;b=b|0;bn[a&3](b|0)}function eK(a){a=a|0;ab(0);return 0}function eL(){ab(1)}function eM(a,b){a=a|0;b=b|0;ab(2);return 0}function eN(a){a=a|0;ab(3)} +// EMSCRIPTEN_END_FUNCS +var bk=[eK,eK];var bl=[eL,eL];var bm=[eM,eM,d3,eM,dM,eM,eM,eM];var bn=[eN,eN,ck,eN];return{_strlen:eA,_free:ew,_main:ca,_realloc:ex,_strncpy:eE,_memmove:eD,_tolower:eF,_memset:eC,_malloc:ev,_memcpy:eB,runPostSets:bE,stackAlloc:bo,stackSave:bp,stackRestore:bq,setThrew:br,setTempRet0:bu,setTempRet1:bv,setTempRet2:bw,setTempRet3:bx,setTempRet4:by,setTempRet5:bz,setTempRet6:bA,setTempRet7:bB,setTempRet8:bC,setTempRet9:bD,dynCall_ii:eG,dynCall_v:eH,dynCall_iii:eI,dynCall_vi:eJ}}) +// EMSCRIPTEN_END_ASM +({ "Math": Math, "Int8Array": Int8Array, "Int16Array": Int16Array, "Int32Array": Int32Array, "Uint8Array": Uint8Array, "Uint16Array": Uint16Array, "Uint32Array": Uint32Array, "Float32Array": Float32Array, "Float64Array": Float64Array }, { "abort": abort, "assert": assert, "asmPrintInt": asmPrintInt, "asmPrintFloat": asmPrintFloat, "min": Math_min, "invoke_ii": invoke_ii, "invoke_v": invoke_v, "invoke_iii": invoke_iii, "invoke_vi": invoke_vi, "_strncmp": _strncmp, "_lseek": _lseek, "_ferror": _ferror, "_snprintf": _snprintf, "_fgetc": _fgetc, "_pclose": _pclose, "_fclose": _fclose, "_freopen": _freopen, "_isdigit": _isdigit, "_strncat": _strncat, "_fprintf": _fprintf, "_toupper": _toupper, "_close": _close, "_fgets": _fgets, "_pread": _pread, "_fflush": _fflush, "_fopen": _fopen, "_open": _open, "_strchr": _strchr, "_fputc": _fputc, "___assert_fail": ___assert_fail, "___setErrNo": ___setErrNo, "_feof": _feof, "_fseek": _fseek, "_qsort": _qsort, "_send": _send, "_write": _write, "_fputs": _fputs, "_ftell": _ftell, "_abs": _abs, "_exit": _exit, "_sprintf": _sprintf, "_strrchr": _strrchr, "_strdup": _strdup, "_isspace": _isspace, "_sysconf": _sysconf, "_fcntl": _fcntl, "_strtol": _strtol, "_fread": _fread, "_isalpha": _isalpha, "_dup2": _dup2, "_read": _read, "__reallyNegative": __reallyNegative, "_time": _time, "__formatString": __formatString, "_gettimeofday": _gettimeofday, "_atoi": _atoi, "_recv": _recv, "_fileno": _fileno, "_pwrite": _pwrite, "_strstr": _strstr, "_sbrk": _sbrk, "_fsync": _fsync, "___errno_location": ___errno_location, "_popen": _popen, "_abort": _abort, "__parseInt": __parseInt, "_fwrite": _fwrite, "_islower": _islower, "__exit": __exit, "_isupper": _isupper, "_strcmp": _strcmp, "_setvbuf": _setvbuf, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX, "tempDoublePtr": tempDoublePtr, "ABORT": ABORT, "NaN": NaN, "Infinity": Infinity, "_stdin": _stdin, "_stderr": _stderr, "_stdout": _stdout }, buffer); +var _strlen = Module["_strlen"] = asm["_strlen"]; +var _free = Module["_free"] = asm["_free"]; +var _main = Module["_main"] = asm["_main"]; +var _realloc = Module["_realloc"] = asm["_realloc"]; +var _strncpy = Module["_strncpy"] = asm["_strncpy"]; +var _memmove = Module["_memmove"] = asm["_memmove"]; +var _tolower = Module["_tolower"] = asm["_tolower"]; +var _memset = Module["_memset"] = asm["_memset"]; +var _malloc = Module["_malloc"] = asm["_malloc"]; +var _memcpy = Module["_memcpy"] = asm["_memcpy"]; +var runPostSets = Module["runPostSets"] = asm["runPostSets"]; +var dynCall_ii = Module["dynCall_ii"] = asm["dynCall_ii"]; +var dynCall_v = Module["dynCall_v"] = asm["dynCall_v"]; +var dynCall_iii = Module["dynCall_iii"] = asm["dynCall_iii"]; +var dynCall_vi = Module["dynCall_vi"] = asm["dynCall_vi"]; +Runtime.stackAlloc = function(size) { return asm['stackAlloc'](size) }; +Runtime.stackSave = function() { return asm['stackSave']() }; +Runtime.stackRestore = function(top) { asm['stackRestore'](top) }; +// Warning: printing of i64 values may be slightly rounded! No deep i64 math used, so precise i64 code not included +var i64Math = null; +// === Auto-generated postamble setup entry stuff === +if (memoryInitializer) { + function applyData(data) { + HEAPU8.set(data, STATIC_BASE); + } + if (ENVIRONMENT_IS_NODE || ENVIRONMENT_IS_SHELL) { + applyData(Module['readBinary'](memoryInitializer)); + } else { + addRunDependency('memory initializer'); + Browser.asyncLoad(memoryInitializer, function(data) { + applyData(data); + removeRunDependency('memory initializer'); + }, function(data) { + throw 'could not load memory initializer ' + memoryInitializer; + }); + } +} +function ExitStatus(status) { + this.name = "ExitStatus"; + this.message = "Program terminated with exit(" + status + ")"; + this.status = status; +}; +ExitStatus.prototype = new Error(); +ExitStatus.prototype.constructor = ExitStatus; +var initialStackTop; +var preloadStartTime = null; +var calledMain = false; +dependenciesFulfilled = function runCaller() { + // If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false) + if (!Module['calledRun'] && shouldRunNow) run(); + if (!Module['calledRun']) dependenciesFulfilled = runCaller; // try this again later, after new deps are fulfilled +} +Module['callMain'] = Module.callMain = function callMain(args) { + assert(runDependencies == 0, 'cannot call main when async dependencies remain! (listen on __ATMAIN__)'); + assert(__ATPRERUN__.length == 0, 'cannot call main when preRun functions remain to be called'); + args = args || []; + if (ENVIRONMENT_IS_WEB && preloadStartTime !== null) { + Module.printErr('preload time: ' + (Date.now() - preloadStartTime) + ' ms'); + } + ensureInitRuntime(); + var argc = args.length+1; + function pad() { + for (var i = 0; i < 4-1; i++) { + argv.push(0); + } + } + var argv = [allocate(intArrayFromString("/bin/this.program"), 'i8', ALLOC_NORMAL) ]; + pad(); + for (var i = 0; i < argc-1; i = i + 1) { + argv.push(allocate(intArrayFromString(args[i]), 'i8', ALLOC_NORMAL)); + pad(); + } + argv.push(0); + argv = allocate(argv, 'i32', ALLOC_NORMAL); + initialStackTop = STACKTOP; + try { + var ret = Module['_main'](argc, argv, 0); + // if we're not running an evented main loop, it's time to exit + if (!Module['noExitRuntime']) { + exit(ret); + } + } + catch(e) { + if (e instanceof ExitStatus) { + // exit() throws this once it's done to make sure execution + // has been stopped completely + return; + } else if (e == 'SimulateInfiniteLoop') { + // running an evented main loop, don't immediately exit + Module['noExitRuntime'] = true; + return; + } else { + if (e && typeof e === 'object' && e.stack) Module.printErr('exception thrown: ' + [e, e.stack]); + throw e; + } + } finally { + calledMain = true; + } +} +function run(args) { + args = args || Module['arguments']; + if (preloadStartTime === null) preloadStartTime = Date.now(); + if (runDependencies > 0) { + Module.printErr('run() called, but dependencies remain, so not running'); + return; + } + preRun(); + if (runDependencies > 0) { + // a preRun added a dependency, run will be called later + return; + } + function doRun() { + ensureInitRuntime(); + preMain(); + Module['calledRun'] = true; + if (Module['_main'] && shouldRunNow) { + Module['callMain'](args); + } + postRun(); + } + if (Module['setStatus']) { + Module['setStatus']('Running...'); + setTimeout(function() { + setTimeout(function() { + Module['setStatus'](''); + }, 1); + if (!ABORT) doRun(); + }, 1); + } else { + doRun(); + } +} +Module['run'] = Module.run = run; +function exit(status) { + ABORT = true; + EXITSTATUS = status; + STACKTOP = initialStackTop; + // exit the runtime + exitRuntime(); + // TODO We should handle this differently based on environment. + // In the browser, the best we can do is throw an exception + // to halt execution, but in node we could process.exit and + // I'd imagine SM shell would have something equivalent. + // This would let us set a proper exit status (which + // would be great for checking test exit statuses). + // https://github.com/kripken/emscripten/issues/1371 + // throw an exception to halt the current execution + throw new ExitStatus(status); +} +Module['exit'] = Module.exit = exit; +function abort(text) { + if (text) { + Module.print(text); + Module.printErr(text); + } + ABORT = true; + EXITSTATUS = 1; + throw 'abort() at ' + stackTrace(); +} +Module['abort'] = Module.abort = abort; +// {{PRE_RUN_ADDITIONS}} +if (Module['preInit']) { + if (typeof Module['preInit'] == 'function') Module['preInit'] = [Module['preInit']]; + while (Module['preInit'].length > 0) { + Module['preInit'].pop()(); + } +} +// shouldRunNow refers to calling main(), not run(). +var shouldRunNow = true; +if (Module['noInitialRun']) { + shouldRunNow = false; +} +run(); +// {{POST_RUN_ADDITIONS}} +// {{MODULE_ADDITIONS}} + return recognizedText +} diff --git a/modules/ocrad/OCRADWorker.js b/modules/ocrad/OCRADWorker.js new file mode 100644 index 0000000..10f7d8a --- /dev/null +++ b/modules/ocrad/OCRADWorker.js @@ -0,0 +1,35 @@ +importScripts('resource://gre/modules/workers/require.js'); +importScripts('chrome://nativeshot/content/modules/ocrad/ocrad.js'); + +// Setup PromiseWorker +var PromiseWorker = require('resource://gre/modules/workers/PromiseWorker.js'); + +// Instantiate AbstractWorker (see below). +var worker = new PromiseWorker.AbstractWorker() + +worker.dispatch = function(method, args = []) { + // Dispatch a call to method `method` with args `args` + return self[method](...args); +}; +worker.postMessage = function(...args) { + // Post a message to the main thread + self.postMessage(...args); +}; +worker.close = function() { + // Close the worker + self.close(); +}; +worker.log = function(...args) { + // Log (or discard) messages (optional) + dump('Worker: ' + args.join(' ') + '\n'); +}; + +// Connect it to message port. +self.addEventListener('message', msg => worker.handleMessage(msg)); + +function readByteArr(aImgBuf, aWidth, aHeight) { + console.info('OCRAD aImgBuf:', aImgBuf, 'aWidth:', aWidth, 'aHeight:', aHeight, ''); + var cImgData = new ImageData(new Uint8ClampedArray(aImgBuf), aWidth, aHeight); + var txt = OCRAD(cImgData); + return txt; +} \ No newline at end of file diff --git a/modules/ocrad/ocrad.js b/modules/ocrad/ocrad.js new file mode 100644 index 0000000..e934f62 --- /dev/null +++ b/modules/ocrad/ocrad.js @@ -0,0 +1,47 @@ +var OCRAD=(function(){function createOcradInstance(){var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function";var ENVIRONMENT_IS_WEB=typeof window==="object";var ENVIRONMENT_IS_WORKER=typeof importScripts==="function";var ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=function print(x){process["stdout"].write(x+"\n")};if(!Module["printErr"])Module["printErr"]=function printErr(x){process["stderr"].write(x+"\n")};var nodeFS=require("fs");var nodePath=require("path");Module["read"]=function read(filename,binary){filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](filename);if(!ret&&filename!=nodePath["resolve"](filename)){filename=path.join(__dirname,"..","src",filename);ret=nodeFS["readFileSync"](filename)}if(ret&&!binary)ret=ret.toString();return ret};Module["readBinary"]=function readBinary(filename){return Module["read"](filename,true)};Module["load"]=function load(f){globalEval(read(f))};if(process["argv"].length>1){Module["thisProgram"]=process["argv"][1].replace(/\\/g,"/")}else{Module["thisProgram"]="unknown-program"}Module["arguments"]=process["argv"].slice(2);if(typeof module!=="undefined"){module["exports"]=Module}process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}))}else if(ENVIRONMENT_IS_SHELL){if(!Module["print"])Module["print"]=print;if(typeof printErr!="undefined")Module["printErr"]=printErr;if(typeof read!="undefined"){Module["read"]=read}else{Module["read"]=function read(){throw"no read() available (jsc?)"}}Module["readBinary"]=function readBinary(f){if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}var data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){Module["arguments"]=scriptArgs}else if(typeof arguments!="undefined"){Module["arguments"]=arguments}this["Module"]=Module}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof console!=="undefined"){if(!Module["print"])Module["print"]=function print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=function printErr(x){console.log(x)}}else{var TRY_USE_DUMP=false;if(!Module["print"])Module["print"]=TRY_USE_DUMP&&typeof dump!=="undefined"?(function(x){dump(x)}):(function(x){})}if(ENVIRONMENT_IS_WEB){window["Module"]=Module}else{Module["load"]=importScripts}}else{throw"Unknown runtime environment. Where are we?"}function globalEval(x){eval.call(null,x)}if(!Module["load"]&&Module["read"]){Module["load"]=function load(f){globalEval(Module["read"](f))}}if(!Module["print"]){Module["print"]=(function(){})}if(!Module["printErr"]){Module["printErr"]=Module["print"]}if(!Module["arguments"]){Module["arguments"]=[]}if(!Module["thisProgram"]){Module["thisProgram"]="./this.program"}Module.print=Module["print"];Module.printErr=Module["printErr"];Module["preRun"]=[];Module["postRun"]=[];for(var key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}var Runtime={setTempRet0:(function(value){tempRet0=value}),getTempRet0:(function(){return tempRet0}),stackSave:(function(){return STACKTOP}),stackRestore:(function(stackTop){STACKTOP=stackTop}),getNativeTypeSize:(function(type){switch(type){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:{if(type[type.length-1]==="*"){return Runtime.QUANTUM_SIZE}else if(type[0]==="i"){var bits=parseInt(type.substr(1));assert(bits%8===0);return bits/8}else{return 0}}}}),getNativeFieldSize:(function(type){return Math.max(Runtime.getNativeTypeSize(type),Runtime.QUANTUM_SIZE)}),STACK_ALIGN:16,getAlignSize:(function(type,size,vararg){if(!vararg&&(type=="i64"||type=="double"))return 8;if(!type)return Math.min(size,8);return Math.min(size||(type?Runtime.getNativeFieldSize(type):0),Runtime.QUANTUM_SIZE)}),dynCall:(function(sig,ptr,args){if(args&&args.length){if(!args.splice)args=Array.prototype.slice.call(args);args.splice(0,0,ptr);return Module["dynCall_"+sig].apply(null,args)}else{return Module["dynCall_"+sig].call(null,ptr)}}),functionPointers:[],addFunction:(function(func){for(var i=0;i0)return""}var c1=buffer[0];var c2=buffer[1];var c3=buffer[2];var c4=buffer[3];var ret;if(buffer.length==2){ret=String.fromCharCode((c1&31)<<6|c2&63)}else if(buffer.length==3){ret=String.fromCharCode((c1&15)<<12|(c2&63)<<6|c3&63)}else{var codePoint=(c1&7)<<18|(c2&63)<<12|(c3&63)<<6|c4&63;ret=String.fromCharCode(((codePoint-65536)/1024|0)+55296,(codePoint-65536)%1024+56320)}buffer.length=0;return ret});this.processJSString=function processJSString(string){string=unescape(encodeURIComponent(string));var ret=[];for(var i=0;i=TOTAL_MEMORY)enlargeMemory();return ret}),alignMemory:(function(size,quantum){var ret=size=Math.ceil(size/(quantum?quantum:16))*(quantum?quantum:16);return ret}),makeBigInt:(function(low,high,unsigned){var ret=unsigned?+(low>>>0)+ +(high>>>0)*+4294967296:+(low>>>0)+ +(high|0)*+4294967296;return ret}),GLOBAL_BASE:8,QUANTUM_SIZE:4,__dummy__:0};Module["Runtime"]=Runtime;var __THREW__=0;var ABORT=false;var EXITSTATUS=0;var undef=0;var tempValue,tempInt,tempBigInt,tempInt2,tempBigInt2,tempPair,tempBigIntI,tempBigIntR,tempBigIntS,tempBigIntP,tempBigIntD,tempDouble,tempFloat;var tempI64,tempI64b;var tempRet0,tempRet1,tempRet2,tempRet3,tempRet4,tempRet5,tempRet6,tempRet7,tempRet8,tempRet9;function assert(condition,text){if(!condition){abort("Assertion failed: "+text)}}var globalScope=this;function getCFunc(ident){var func=Module["_"+ident];if(!func){try{func=eval("_"+ident)}catch(e){}}assert(func,"Cannot call unknown function "+ident+" (perhaps LLVM optimizations or closure removed it?)");return func}var cwrap,ccall;((function(){var stack=0;var JSfuncs={"stackSave":(function(){stack=Runtime.stackSave()}),"stackRestore":(function(){Runtime.stackRestore(stack)}),"arrayToC":(function(arr){var ret=Runtime.stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}),"stringToC":(function(str){var ret=0;if(str!==null&&str!==undefined&&str!==0){ret=Runtime.stackAlloc((str.length<<2)+1);writeStringToMemory(str,ret)}return ret})};var toC={"string":JSfuncs["stringToC"],"array":JSfuncs["arrayToC"]};ccall=function ccallFunc(ident,returnType,argTypes,args){var func=getCFunc(ident);var cArgs=[];if(args){for(var i=0;i>0]=value;break;case"i8":HEAP8[ptr>>0]=value;break;case"i16":HEAP16[ptr>>1]=value;break;case"i32":HEAP32[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math_abs(tempDouble)>=+1?tempDouble>+0?(Math_min(+Math_floor(tempDouble/+4294967296),+4294967295)|0)>>>0:~~+Math_ceil((tempDouble- +(~~tempDouble>>>0))/+4294967296)>>>0:0)],HEAP32[ptr>>2]=tempI64[0],HEAP32[ptr+4>>2]=tempI64[1];break;case"float":HEAPF32[ptr>>2]=value;break;case"double":HEAPF64[ptr>>3]=value;break;default:abort("invalid type for setValue: "+type)}}Module["setValue"]=setValue;function getValue(ptr,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":return HEAP8[ptr>>0];case"i8":return HEAP8[ptr>>0];case"i16":return HEAP16[ptr>>1];case"i32":return HEAP32[ptr>>2];case"i64":return HEAP32[ptr>>2];case"float":return HEAPF32[ptr>>2];case"double":return HEAPF64[ptr>>3];default:abort("invalid type for setValue: "+type)}return null}Module["getValue"]=getValue;var ALLOC_NORMAL=0;var ALLOC_STACK=1;var ALLOC_STATIC=2;var ALLOC_DYNAMIC=3;var ALLOC_NONE=4;Module["ALLOC_NORMAL"]=ALLOC_NORMAL;Module["ALLOC_STACK"]=ALLOC_STACK;Module["ALLOC_STATIC"]=ALLOC_STATIC;Module["ALLOC_DYNAMIC"]=ALLOC_DYNAMIC;Module["ALLOC_NONE"]=ALLOC_NONE;function allocate(slab,types,allocator,ptr){var zeroinit,size;if(typeof slab==="number"){zeroinit=true;size=slab}else{zeroinit=false;size=slab.length}var singleType=typeof types==="string"?types:null;var ret;if(allocator==ALLOC_NONE){ret=ptr}else{ret=[_malloc,Runtime.stackAlloc,Runtime.staticAlloc,Runtime.dynamicAlloc][allocator===undefined?ALLOC_STATIC:allocator](Math.max(size,singleType?1:types.length))}if(zeroinit){var ptr=ret,stop;assert((ret&3)==0);stop=ret+(size&~3);for(;ptr>2]=0}stop=ret+size;while(ptr>0]=0}return ret}if(singleType==="i8"){if(slab.subarray||slab.slice){HEAPU8.set(slab,ret)}else{HEAPU8.set(new Uint8Array(slab),ret)}return ret}var i=0,type,typeSize,previousType;while(i>0];if(t>=128)hasUtf=true;else if(t==0&&!length)break;i++;if(length&&i==length)break}if(!length)length=i;var ret="";if(!hasUtf){var MAX_CHUNK=1024;var curr;while(length>0){curr=String.fromCharCode.apply(String,HEAPU8.subarray(ptr,ptr+Math.min(length,MAX_CHUNK)));ret=ret?ret+curr:curr;ptr+=MAX_CHUNK;length-=MAX_CHUNK}return ret}var utf8=new Runtime.UTF8Processor;for(i=0;i>0];ret+=utf8.processCChar(t)}return ret}Module["Pointer_stringify"]=Pointer_stringify;function UTF16ToString(ptr){var i=0;var str="";while(1){var codeUnit=HEAP16[ptr+i*2>>1];if(codeUnit==0)return str;++i;str+=String.fromCharCode(codeUnit)}}Module["UTF16ToString"]=UTF16ToString;function stringToUTF16(str,outPtr){for(var i=0;i>1]=codeUnit}HEAP16[outPtr+str.length*2>>1]=0}Module["stringToUTF16"]=stringToUTF16;function UTF32ToString(ptr){var i=0;var str="";while(1){var utf32=HEAP32[ptr+i*4>>2];if(utf32==0)return str;++i;if(utf32>=65536){var ch=utf32-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}else{str+=String.fromCharCode(utf32)}}}Module["UTF32ToString"]=UTF32ToString;function stringToUTF32(str,outPtr){var iChar=0;for(var iCodeUnit=0;iCodeUnit=55296&&codeUnit<=57343){var trailSurrogate=str.charCodeAt(++iCodeUnit);codeUnit=65536+((codeUnit&1023)<<10)|trailSurrogate&1023}HEAP32[outPtr+iChar*4>>2]=codeUnit;++iChar}HEAP32[outPtr+iChar*4>>2]=0}Module["stringToUTF32"]=stringToUTF32;function demangle(func){var hasLibcxxabi=!!Module["___cxa_demangle"];if(hasLibcxxabi){try{var buf=_malloc(func.length);writeStringToMemory(func.substr(1),buf);var status=_malloc(4);var ret=Module["___cxa_demangle"](buf,0,0,status);if(getValue(status,"i32")===0&&ret){return Pointer_stringify(ret)}}catch(e){}finally{if(buf)_free(buf);if(status)_free(status);if(ret)_free(ret)}}var i=3;var basicTypes={"v":"void","b":"bool","c":"char","s":"short","i":"int","l":"long","f":"float","d":"double","w":"wchar_t","a":"signed char","h":"unsigned char","t":"unsigned short","j":"unsigned int","m":"unsigned long","x":"long long","y":"unsigned long long","z":"..."};var subs=[];var first=true;function dump(x){if(x)Module.print(x);Module.print(func);var pre="";for(var a=0;a"}else{ret=name}paramLoop:while(i0){var c=func[i++];if(c in basicTypes){list.push(basicTypes[c])}else{switch(c){case"P":list.push(parse(true,1,true)[0]+"*");break;case"R":list.push(parse(true,1,true)[0]+"&");break;case"L":{i++;var end=func.indexOf("E",i);var size=end-i;list.push(func.substr(i,size));i+=size+2;break};case"A":{var size=parseInt(func.substr(i));i+=size.toString().length;if(func[i]!=="_")throw"?";i++;list.push(parse(true,1,true)[0]+" ["+size+"]");break};case"E":break paramLoop;default:ret+="?"+c;break paramLoop}}}if(!allowVoid&&list.length===1&&list[0]==="void")list=[];if(rawList){if(ret){list.push(ret+"?")}return list}else{return ret+flushList()}}var final=func;try{if(func=="Object._main"||func=="_main"){return"main()"}if(typeof func==="number")func=Pointer_stringify(func);if(func[0]!=="_")return func;if(func[1]!=="_")return func;if(func[2]!=="Z")return func;switch(func[3]){case"n":return"operator new()";case"d":return"operator delete()"}final=parse()}catch(e){final+="?"}if(final.indexOf("?")>=0&&!hasLibcxxabi){Runtime.warnOnce("warning: a problem occurred in builtin C++ name demangling; build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling")}return final}function demangleAll(text){return text.replace(/__Z[\w\d_]+/g,(function(x){var y=demangle(x);return x===y?x:x+" ["+y+"]"}))}function jsStackTrace(){var err=new Error;if(!err.stack){try{throw new Error(0)}catch(e){err=e}if(!err.stack){return"(no stack trace available)"}}return err.stack.toString()}function stackTrace(){return demangleAll(jsStackTrace())}Module["stackTrace"]=stackTrace;var PAGE_SIZE=4096;function alignMemoryPage(x){return x+4095&-4096}var HEAP;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;var STATIC_BASE=0,STATICTOP=0,staticSealed=false;var STACK_BASE=0,STACKTOP=0,STACK_MAX=0;var DYNAMIC_BASE=0,DYNAMICTOP=0;function enlargeMemory(){abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+TOTAL_MEMORY+", (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.")}var TOTAL_STACK=Module["TOTAL_STACK"]||5242880;var TOTAL_MEMORY=Module["TOTAL_MEMORY"]||33554432;var FAST_MEMORY=Module["FAST_MEMORY"]||2097152;var totalMemory=64*1024;while(totalMemory0){var callback=callbacks.shift();if(typeof callback=="function"){callback();continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){Runtime.dynCall("v",func)}else{Runtime.dynCall("vi",func,[callback.arg])}}else{func(callback.arg===undefined?null:callback.arg)}}}var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATEXIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function ensureInitRuntime(){if(runtimeInitialized)return;runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){callRuntimeCallbacks(__ATEXIT__);runtimeExited=true}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}Module["addOnPreRun"]=Module.addOnPreRun=addOnPreRun;function addOnInit(cb){__ATINIT__.unshift(cb)}Module["addOnInit"]=Module.addOnInit=addOnInit;function addOnPreMain(cb){__ATMAIN__.unshift(cb)}Module["addOnPreMain"]=Module.addOnPreMain=addOnPreMain;function addOnExit(cb){__ATEXIT__.unshift(cb)}Module["addOnExit"]=Module.addOnExit=addOnExit;function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}Module["addOnPostRun"]=Module.addOnPostRun=addOnPostRun;function intArrayFromString(stringy,dontAddNull,length){var ret=(new Runtime.UTF8Processor).processJSString(stringy);if(length){ret.length=length}if(!dontAddNull){ret.push(0)}return ret}Module["intArrayFromString"]=intArrayFromString;function intArrayToString(array){var ret=[];for(var i=0;i255){chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}Module["intArrayToString"]=intArrayToString;function writeStringToMemory(string,buffer,dontAddNull){var array=intArrayFromString(string,dontAddNull);var i=0;while(i>0]=chr;i=i+1}}Module["writeStringToMemory"]=writeStringToMemory;function writeArrayToMemory(array,buffer){for(var i=0;i>0]=array[i]}}Module["writeArrayToMemory"]=writeArrayToMemory;function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer+str.length>>0]=0}Module["writeAsciiToMemory"]=writeAsciiToMemory;function unSign(value,bits,ignore){if(value>=0){return value}return bits<=32?2*Math.abs(1<=half&&(bits<=32||value>half)){value=-2*half+value}return value}if(!Math["imul"]||Math["imul"](4294967295,5)!==-5)Math["imul"]=function imul(a,b){var ah=a>>>16;var al=a&65535;var bh=b>>>16;var bl=b&65535;return al*bl+(ah*bl+al*bh<<16)|0};Math.imul=Math["imul"];var Math_abs=Math.abs;var Math_cos=Math.cos;var Math_sin=Math.sin;var Math_tan=Math.tan;var Math_acos=Math.acos;var Math_asin=Math.asin;var Math_atan=Math.atan;var Math_atan2=Math.atan2;var Math_exp=Math.exp;var Math_log=Math.log;var Math_sqrt=Math.sqrt;var Math_ceil=Math.ceil;var Math_floor=Math.floor;var Math_pow=Math.pow;var Math_imul=Math.imul;var Math_fround=Math.fround;var Math_min=Math.min;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}Module["addRunDependency"]=addRunDependency;function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["removeRunDependency"]=removeRunDependency;Module["preloadedImages"]={};Module["preloadedAudios"]={};var memoryInitializer=null;STATIC_BASE=8;STATICTOP=STATIC_BASE+18736;__ATINIT__.push({func:(function(){__GLOBAL__I_a()})});allocate([45,0,0,0,0,0,0,0,114,98,0,0,0,0,0,0,119,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,46,50,52,0,0,0,0,122,101,114,111,32,109,97,120,118,97,108,32,105,110,32,112,103,109,32,102,105,108,101,46,0,0,0,0,0,0,0,0,78,49,48,80,97,103,101,95,105,109,97,103,101,53,69,114,114,111,114,69,0,0,0,0,88,66,0,0,80,0,0,0,118,97,108,117,101,32,62,32,109,97,120,118,97,108,32,105,110,32,112,103,109,32,102,105,108,101,46,0,0,0,0,0,109,97,120,118,97,108,32,62,32,50,53,53,32,105,110,32,112,103,109,32,34,80,53,34,32,102,105,108,101,46,0,0,122,101,114,111,32,109,97,120,118,97,108,32,105,110,32,112,112,109,32,102,105,108,101,46,0,0,0,0,0,0,0,0,118,97,108,117,101,32,62,32,109,97,120,118,97,108,32,105,110,32,112,112,109,32,102,105,108,101,46,0,0,0,0,0,109,97,120,118,97,108,32,62,32,50,53,53,32,105,110,32,112,112,109,32,34,80,54,34,32,102,105,108,101,46,0,0,98,97,100,32,109,97,103,105,99,32,110,117,109,98,101,114,32,45,32,110,111,116,32,97,32,112,98,109,44,32,112,103,109,32,111,114,32,112,112,109,32,102,105,108,101,46,0,0,122,101,114,111,32,119,105,100,116,104,32,105,110,32,112,110,109,32,102,105,108,101,46,0,122,101,114,111,32,104,101,105,103,104,116,32,105,110,32,112,110,109,32,102,105,108,101,46,0,0,0,0,0,0,0,0,105,109,97,103,101,32,116,111,111,32,115,109,97,108,108,46,32,77,105,110,105,109,117,109,32,115,105,122,101,32,105,115,32,51,120,51,46,0,0,0,105,109,97,103,101,32,116,111,111,32,98,105,103,46,32,39,105,110,116,39,32,119,105,108,108,32,111,118,101,114,102,108,111,119,46,0,0,0,0,0,102,105,108,101,32,116,121,112,101,32,105,115,32,80,37,99,10,0,0,0,0,0,0,0,102,105,108,101,32,115,105,122,101,32,105,115,32,37,100,119,32,120,32,37,100,104,10,0,80,37,99,10,37,100,32,37,100,10,0,0,0,0,0,0,37,100,10,0,0,0,0,0,37,100,32,0,0,0,0,0,37,100,32,37,100,32,37,100,32,0,0,0,0,0,0,0,37,100,32,37,100,32,37,100,10,0,0,0,0,0,0,0,37,99,32,37,99,32,37,99,32,0,0,0,0,0,0,0,106,117,110,107,32,105,110,32,112,110,109,32,102,105,108,101,32,119,104,101,114,101,32,97,110,32,105,110,116,101,103,101,114,32,115,104,111,117,108,100,32,98,101,46,0,0,0,0,110,117,109,98,101,114,32,116,111,111,32,98,105,103,32,105,110,32,112,110,109,32,102,105,108,101,46,0,0,0,0,0,101,110,100,45,111,102,45,102,105,108,101,32,114,101,97,100,105,110,103,32,112,110,109,32,102,105,108,101,46,0,0,0,106,117,110,107,32,105,110,32,112,98,109,32,102,105,108,101,32,119,104,101,114,101,32,98,105,116,115,32,115,104,111,117,108,100,32,98,101,46,0,0,98,97,100,32,112,97,114,97,109,101,116,101,114,32,98,117,105,108,100,105,110,103,32,97,32,114,101,100,117,99,101,100,32,80,97,103,101,95,105,109,97,103,101,46,0,0,0,0,115,99,97,108,101,32,102,97,99,116,111,114,32,116,111,111,32,98,105,103,46,32,39,105,110,116,39,32,119,105,108,108,32,111,118,101,114,102,108,111,119,46,0,0,0,0,0,0,108,32,61,32,37,100,44,32,116,32,61,32,37,100,44,32,114,32,61,32,37,100,44,32,98,32,61,32,37,100,10,0,98,97,100,32,112,97,114,97,109,101,116,101,114,32,98,117,105,108,100,105,110,103,32,97,32,82,101,99,116,97,110,103,108,101,46,0,0,0,0,0,108,101,102,116,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,82,101,99,116,97,110,103,108,101,46,0,0,0,0,0,0,0,116,111,112,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,82,101,99,116,97,110,103,108,101,46,0,0,0,0,0,0,0,0,114,105,103,104,116,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,82,101,99,116,97,110,103,108,101,46,0,0,0,0,0,0,98,111,116,116,111,109,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,82,101,99,116,97,110,103,108,101,46,0,0,0,0,0,104,101,105,103,104,116,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,82,101,99,116,97,110,103,108,101,46,0,0,0,0,0,119,105,100,116,104,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,82,101,99,116,97,110,103,108,101,46,0,0,0,0,0,0,110,117,109,98,101,114,32,111,102,32,116,101,120,116,32,98,108,111,99,107,115,32,61,32,37,100,10,0,0,0,0,0,84,101,120,116,112,97,103,101,58,58,116,101,120,116,98,108,111,99,107,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,46,0,0,0,0,0,0,0,115,111,117,114,99,101,32,102,105,108,101,32,37,115,10,0,116,111,116,97,108,32,116,101,120,116,32,98,108,111,99,107,115,32,37,100,10,0,0,0,116,101,120,116,32,98,108,111,99,107,32,37,100,32,37,100,32,37,100,32,37,100,32,37,100,10,0,0,0,0,0,0,116,111,116,97,108,32,122,111,110,101,115,32,105,110,32,112,97,103,101,32,37,100,10,0,116,111,116,97,108,32,98,108,111,98,115,32,105,110,32,112,97,103,101,32,37,100,10,10,0,0,0,0,0,0,0,0,122,111,110,101,32,37,100,32,111,102,32,37,100,10,0,0,122,111,110,101,32,115,105,122,101,32,37,100,119,32,120,32,37,100,104,10,0,0,0,0,116,111,116,97,108,32,98,108,111,98,115,32,105,110,32,122,111,110,101,32,37,117,10,10,0,0,0,0,0,0,0,0,106,111,105,110,95,98,108,111,98,115,44,32,108,111,115,116,32,98,108,111,98,46,0,0,98,97,100,32,112,97,114,97,109,101,116,101,114,32,98,117,105,108,100,105,110,103,32,97,32,66,105,116,109,97,112,32,102,114,111,109,32,112,97,114,116,32,111,102,32,97,110,111,116,104,101,114,32,111,110,101,46,0,0,0,0,0,0,0,104,111,108,101,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,46,0,0,0,0,0,0,32,79,0,0,0,0,0,0,32,46,0,0,0,0,0,0,102,105,108,108,95,104,111,108,101,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,46,0,106,111,105,110,95,104,111,108,101,115,44,32,108,111,115,116,32,104,111,108,101,46,0,0,100,101,108,101,116,101,95,104,111,108,101,44,32,108,111,115,116,32,104,111,108,101,46,0,108,105,110,101,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,46,0,0,0,0,0,0,37,100,32,108,105,110,101,115,10,10,0,0,0,0,0,0,37,100,32,99,104,97,114,97,99,116,101,114,115,32,105,110,32,108,105,110,101,32,37,100,10,0,0,0,0,0,0,0,108,105,110,101,115,32,37,100,10,0,0,0,0,0,0,0,108,105,110,101,32,37,100,32,99,104,97,114,115,32,37,100,32,104,101,105,103,104,116,32,37,100,10,0,0,0,0,0,0,0,0,0,0,0,0,0,99,111,110,115,116,32,98,108,111,98,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,98,108,111,98,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,0,0,0,0,0,105,110,115,101,114,116,95,103,117,101,115,115,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,0,0,0,0,0,115,119,97,112,95,103,117,101,115,115,101,115,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,0,0,0,0,0,103,117,101,115,115,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,0,0,0,0,95,0,0,0,0,0,0,0,37,100,32,103,117,101,115,115,101,115,32,32,32,32,0,0,103,117,101,115,115,32,39,92,116,39,44,32,99,111,110,102,105,100,101,110,99,101,32,37,100,32,32,32,32,0,0,0,103,117,101,115,115,32,39,37,99,39,44,32,99,111,110,102,105,100,101,110,99,101,32,37,100,32,32,32,32,0,0,0,103,117,101,115,115,32,39,37,115,39,44,32,99,111,110,102,105,100,101,110,99,101,32,37,100,32,32,32,32,0,0,0,108,101,102,116,32,61,32,37,100,44,32,116,111,112,32,61,32,37,100,44,32,114,105,103,104,116,32,61,32,37,100,44,32,98,111,116,116,111,109,32,61,32,37,100,10,0,0,0,119,105,100,116,104,32,61,32,37,100,44,32,104,101,105,103,104,116,32,61,32,37,100,44,32,104,99,101,110,116,101,114,32,61,32,37,100,44,32,118,99,101,110,116,101,114,32,61,32,37,100,44,32,98,108,97,99,107,32,97,114,101,97,32,61,32,37,100,37,37,10,0,104,98,97,114,115,32,61,32,37,100,44,32,118,98,97,114,115,32,61,32,37,100,10,0,32,37,99,0,0,0,0,0,32,32,116,111,112,40,37,100,41,0,0,0,0,0,0,0,32,32,118,99,101,110,116,101,114,40,37,100,41,0,0,0,32,32,98,111,116,116,111,109,40,37,100,41,0,0,0,0,32,32,98,111,120,46,116,111,112,40,37,100,41,0,0,0,32,32,98,111,120,46,118,99,101,110,116,101,114,40,37,100,41,0,0,0,0,0,0,0,32,32,98,111,120,46,98,111,116,116,111,109,40,37,100,41,0,0,0,0,0,0,0,0,32,32,104,49,46,116,111,112,40,37,100,41,0,0,0,0,32,32,104,49,46,98,111,116,116,111,109,40,37,100,41,0,32,32,104,50,46,116,111,112,40,37,100,41,0,0,0,0,32,32,104,50,46,98,111,116,116,111,109,40,37,100,41,0,10,10,0,0,0,0,0,0,37,51,100,32,37,51,100,32,37,50,100,32,37,50,100,59,32,37,100,0,0,0,0,0,44,32,39,37,99,39,37,100,0,0,0,0,0,0,0,0,44,32,39,37,115,39,37,100,0,0,0,0,0,0,0,0,99,104,97,114,97,99,116,101,114,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,46,0,100,101,108,101,116,101,95,99,104,97,114,97,99,116,101,114,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,46,0,0,105,110,115,101,114,116,95,115,112,97,99,101,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,46,0,0,0,0,0,0,105,110,115,101,114,116,95,115,112,97,99,101,44,32,116,114,97,99,107,32,110,111,116,32,115,101,116,32,121,101,116,46,0,0,0,0,0,0,0,0,109,101,97,110,32,104,101,105,103,104,116,32,61,32,37,100,44,32,109,101,100,105,97,110,32,104,101,105,103,104,116,32,61,32,37,100,44,32,116,114,97,99,107,32,115,101,103,109,101,110,116,115,32,61,32,37,100,10,0,0,0,0,0,0,108,32,61,32,37,100,44,32,108,99,32,61,32,37,100,44,32,114,32,61,32,37,100,44,32,114,99,32,61,32,37,100,44,32,104,32,61,32,37,100,10,0,0,0,0,0,0,0,98,97,100,32,112,97,114,97,109,101,116,101,114,32,98,117,105,108,100,105,110,103,32,97,32,86,114,104,111,109,98,111,105,100,46,0,0,0,0,0,101,120,116,101,110,100,95,108,101,102,116,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,86,114,104,111,109,98,111,105,100,46,0,0,0,0,0,0,0,0,101,120,116,101,110,100,95,114,105,103,104,116,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,86,114,104,111,109,98,111,105,100,46,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,111,99,114,97,100,58,32,105,110,116,101,114,110,97,108,32,101,114,114,111,114,58,32,37,115,10,0,0,0,0,0,0,104,101,108,112,0,0,0,0,32,32,37,115,0,0,0,0,192,12,0,0,0,0,0,0,200,12,0,0,1,0,0,0,216,12,0,0,2,0,0,0,232,12,0,0,3,0,0,0,248,12,0,0,4,0,0,0,8,13,0,0,5,0,0,0,24,13,0,0,6,0,0,0,40,13,0,0,7,0,0,0,0,0,0,0,0,0,0,0,96,12,0,0,0,0,0,0,104,12,0,0,1,0,0,0,120,12,0,0,2,0,0,0,128,12,0,0,3,0,0,0,144,12,0,0,4,0,0,0,160,12,0,0,5,0,0,0,176,12,0,0,6,0,0,0,0,0,0,0,0,0,0,0,37,115,58,32,98,97,100,32,102,105,108,116,101,114,32,39,37,115,39,10,0,0,0,0,86,97,108,105,100,32,102,105,108,116,101,114,32,110,97,109,101,115,58,0,0,0,0,0,108,101,116,116,101,114,115,0,108,101,116,116,101,114,115,95,111,110,108,121,0,0,0,0,110,117,109,98,101,114,115,0,110,117,109,98,101,114,115,95,111,110,108,121,0,0,0,0,115,97,109,101,95,104,101,105,103,104,116,0,0,0,0,0,117,112,112,101,114,95,110,117,109,0,0,0,0,0,0,0,117,112,112,101,114,95,110,117,109,95,111,110,108,121,0,0,110,111,110,101,0,0,0,0,114,111,116,97,116,101,57,48,0,0,0,0,0,0,0,0,114,111,116,97,116,101,49,56,48,0,0,0,0,0,0,0,114,111,116,97,116,101,50,55,48,0,0,0,0,0,0,0,109,105,114,114,111,114,95,108,114,0,0,0,0,0,0,0,109,105,114,114,111,114,95,116,98,0,0,0,0,0,0,0,109,105,114,114,111,114,95,100,49,0,0,0,0,0,0,0,109,105,114,114,111,114,95,100,50,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,1,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,1,0,0,0,255,255,255,255,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,255,255,255,255],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE);allocate([248,17,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,78,83,116,51,95,95,49,49,49,95,95,115,116,100,111,117,116,98,117,102,73,119,69,69,0,0,0,0,0,0,0,0,128,66,0,0,216,17,0,0,112,23,0,0,0,0,0,0,0,0,0,0,96,18,0,0,3,0,0,0,4,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,5,0,0,0,2,0,0,0,2,0,0,0,6,0,0,0,7,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,78,83,116,51,95,95,49,49,48,95,95,115,116,100,105,110,98,117,102,73,119,69,69,0,128,66,0,0,72,18,0,0,112,23,0,0,0,0,0,0,117,110,115,117,112,112,111,114,116,101,100,32,108,111,99,97,108,101,32,102,111,114,32,115,116,97,110,100,97,114,100,32,105,110,112,117,116,0,0,0,0,0,0,0,248,18,0,0,5,0,0,0,6,0,0,0,3,0,0,0,5,0,0,0,2,0,0,0,2,0,0,0,8,0,0,0,9,0,0,0,6,0,0,0,10,0,0,0,11,0,0,0,5,0,0,0,7,0,0,0,6,0,0,0,78,83,116,51,95,95,49,49,49,95,95,115,116,100,111,117,116,98,117,102,73,99,69,69,0,0,0,0,0,0,0,0,128,66,0,0,216,18,0,0,48,23,0,0,0,0,0,0,0,0,0,0,96,19,0,0,7,0,0,0,8,0,0,0,4,0,0,0,5,0,0,0,2,0,0,0,2,0,0,0,12,0,0,0,9,0,0,0,6,0,0,0,13,0,0,0,14,0,0,0,7,0,0,0,8,0,0,0,8,0,0,0,78,83,116,51,95,95,49,49,48,95,95,115,116,100,105,110,98,117,102,73,99,69,69,0,128,66,0,0,72,19,0,0,48,23,0,0,0,0,0,0,78,83,116,51,95,95,49,49,52,95,95,115,104,97,114,101,100,95,99,111,117,110,116,69,0,0,0,0,0,0,0,0,88,66,0,0,112,19,0,0,58,32,0,0,0,0,0,0,0,0,0,0,208,19,0,0,9,0,0,0,10,0,0,0,15,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,50,115,121,115,116,101,109,95,101,114,114,111,114,69,0,0,128,66,0,0,184,19,0,0,0,65,0,0,0,0,0,0,78,83,116,51,95,95,49,49,52,101,114,114,111,114,95,99,97,116,101,103,111,114,121,69,0,0,0,0,0,0,0,0,88,66,0,0,224,19,0,0,78,83,116,51,95,95,49,49,50,95,95,100,111,95,109,101,115,115,97,103,101,69,0,0,128,66,0,0,8,20,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,98,97,115,105,99,95,115,116,114,105,110,103,0,0,0,0,0,0,0,0,48,23,0,0,11,0,0,0,12,0,0,0,5,0,0,0,5,0,0,0,2,0,0,0,2,0,0,0,12,0,0,0,9,0,0,0,6,0,0,0,10,0,0,0,11,0,0,0,5,0,0,0,8,0,0,0,8,0,0,0,0,0,0,0,112,23,0,0,13,0,0,0,14,0,0,0,6,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,5,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,4,0,0,0,4,0,0,0,8,0,0,0,0,0,0,0,168,23,0,0,15,0,0,0,16,0,0,0,248,255,255,255,248,255,255,255,168,23,0,0,17,0,0,0,18,0,0,0,8,0,0,0,0,0,0,0,240,23,0,0,19,0,0,0,20,0,0,0,248,255,255,255,248,255,255,255,240,23,0,0,21,0,0,0,22,0,0,0,4,0,0,0,0,0,0,0,56,24,0,0,23,0,0,0,24,0,0,0,252,255,255,255,252,255,255,255,56,24,0,0,25,0,0,0,26,0,0,0,4,0,0,0,0,0,0,0,128,24,0,0,27,0,0,0,28,0,0,0,252,255,255,255,252,255,255,255,128,24,0,0,29,0,0,0,30,0,0,0,105,111,115,116,114,101,97,109,0,0,0,0,0,0,0,0,117,110,115,112,101,99,105,102,105,101,100,32,105,111,115,116,114,101,97,109,95,99,97,116,101,103,111,114,121,32,101,114,114,111,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,22,0,0,31,0,0,0,32,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,112,22,0,0,33,0,0,0,34,0,0,0,105,111,115,95,98,97,115,101,58,58,99,108,101,97,114,0,78,83,116,51,95,95,49,56,105,111,115,95,98,97,115,101,55,102,97,105,108,117,114,101,69,0,0,0,0,0,0,0,128,66,0,0,40,22,0,0,208,19,0,0,0,0,0,0,78,83,116,51,95,95,49,56,105,111,115,95,98,97,115,101,69,0,0,0,0,0,0,0,88,66,0,0,88,22,0,0,78,83,116,51,95,95,49,57,98,97,115,105,99,95,105,111,115,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,0,0,0,0,0,0,128,66,0,0,120,22,0,0,112,22,0,0,0,0,0,0,78,83,116,51,95,95,49,57,98,97,115,105,99,95,105,111,115,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,0,0,0,0,0,0,0,128,66,0,0,184,22,0,0,112,22,0,0,0,0,0,0,78,83,116,51,95,95,49,49,53,98,97,115,105,99,95,115,116,114,101,97,109,98,117,102,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,0,0,0,0,0,0,0,88,66,0,0,248,22,0,0,78,83,116,51,95,95,49,49,53,98,97,115,105,99,95,115,116,114,101,97,109,98,117,102,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,0,0,0,0,0,0,0,0,88,66,0,0,56,23,0,0,78,83,116,51,95,95,49,49,51,98,97,115,105,99,95,105,115,116,114,101,97,109,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,0,224,66,0,0,120,23,0,0,0,0,0,0,1,0,0,0,168,22,0,0,3,244,255,255,78,83,116,51,95,95,49,49,51,98,97,115,105,99,95,105,115,116,114,101,97,109,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,0,0,224,66,0,0,192,23,0,0,0,0,0,0,1,0,0,0,232,22,0,0,3,244,255,255,78,83,116,51,95,95,49,49,51,98,97,115,105,99,95,111,115,116,114,101,97,109,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,0,224,66,0,0,8,24,0,0,0,0,0,0,1,0,0,0,168,22,0,0,3,244,255,255,78,83,116,51,95,95,49,49,51,98,97,115,105,99,95,111,115,116,114,101,97,109,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,0,0,224,66,0,0,80,24,0,0,0,0,0,0,1,0,0,0,232,22,0,0,3,244,255,255,0,0,0,0,224,24,0,0,35,0,0,0,36,0,0,0,16,0,0,0,1,0,0,0,9,0,0,0,10,0,0,0,2,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,57,95,95,105,111,115,116,114,101,97,109,95,99,97,116,101,103,111,114,121,69,0,0,0,128,66,0,0,192,24,0,0,32,20,0,0,0,0,0,0,0,0,0,0,40,39,0,0,37,0,0,0,38,0,0,0,39,0,0,0,1,0,0,0,3,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,39,0,0,40,0,0,0,41,0,0,0,39,0,0,0,2,0,0,0,4,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,42,0,0,0,43,0,0,0,39,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,65,66,67,68,69,70,120,88,43,45,112,80,105,73,110,78,0,0,0,0,0,0,0,0,37,112,0,0,0,0,0,0,0,0,0,0,152,44,0,0,44,0,0,0,45,0,0,0,39,0,0,0,12,0,0,0,13,0,0,0,14,0,0,0,15,0,0,0,16,0,0,0,17,0,0,0,18,0,0,0,19,0,0,0,20,0,0,0,21,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,45,0,0,46,0,0,0,47,0,0,0,39,0,0,0,3,0,0,0,4,0,0,0,23,0,0,0,5,0,0,0,24,0,0,0,1,0,0,0,2,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,108,0,0,0,0,0,0,0,108,108,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0,0,0,0,0,0,0,0,0,0,240,45,0,0,48,0,0,0,49,0,0,0,39,0,0,0,7,0,0,0,8,0,0,0,25,0,0,0,9,0,0,0,26,0,0,0,3,0,0,0,4,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,0,0,0,0,37,112,0,0,0,0,0,0,0,0,0,0,24,41,0,0,50,0,0,0,51,0,0,0,39,0,0,0,17,0,0,0,27,0,0,0,28,0,0,0,29,0,0,0,30,0,0,0,31,0,0,0,1,0,0,0,248,255,255,255,24,41,0,0,18,0,0,0,19,0,0,0,20,0,0,0,21,0,0,0,22,0,0,0,23,0,0,0,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,72,58,37,77,58,37,83,37,109,47,37,100,47,37,121,37,89,45,37,109,45,37,100,37,73,58,37,77,58,37,83,32,37,112,0,0,0,0,0,37,72,58,37,77,0,0,0,37,72,58,37,77,58,37,83,0,0,0,0,184,41,0,0,52,0,0,0,53,0,0,0,39,0,0,0,25,0,0,0,32,0,0,0,33,0,0,0,34,0,0,0,35,0,0,0,36,0,0,0,2,0,0,0,248,255,255,255,184,41,0,0,26,0,0,0,27,0,0,0,28,0,0,0,29,0,0,0,30,0,0,0,31,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,37,0,0,0,109,0,0,0,47,0,0,0,37,0,0,0,100,0,0,0,47,0,0,0,37,0,0,0,121,0,0,0,37,0,0,0,89,0,0,0,45,0,0,0,37,0,0,0,109,0,0,0,45,0,0,0,37,0,0,0,100,0,0,0,37,0,0,0,73,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,32,0,0,0,37,0,0,0,112,0,0,0,0,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,0,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,0,0,0,0,72,42,0,0,54,0,0,0,55,0,0,0,39,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,176,42,0,0,56,0,0,0,57,0,0,0,39,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,39,0,0,58,0,0,0,59,0,0,0,39,0,0,0,33,0,0,0,34,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,35,0,0,0,11,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,224,39,0,0,60,0,0,0,61,0,0,0,39,0,0,0,36,0,0,0,37,0,0,0,13,0,0,0,14,0,0,0,15,0,0,0,16,0,0,0,38,0,0,0,17,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,40,0,0,62,0,0,0,63,0,0,0,39,0,0,0,39,0,0,0,40,0,0,0,19,0,0,0,20,0,0,0,21,0,0,0,22,0,0,0,41,0,0,0,23,0,0,0,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,40,0,0,64,0,0,0,65,0,0,0,39,0,0,0,42,0,0,0,43,0,0,0,25,0,0,0,26,0,0,0,27,0,0,0,28,0,0,0,44,0,0,0,29,0,0,0,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,46,0,0,66,0,0,0,67,0,0,0,39,0,0,0,3,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,49,50,51,52,53,54,55,56,57,0,0,0,0,0,0,37,76,102,0,0,0,0,0,109,111,110,101,121,95,103,101,116,32,101,114,114,111,114,0,0,0,0,0,16,47,0,0,68,0,0,0,69,0,0,0,39,0,0,0,5,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,49,50,51,52,53,54,55,56,57,0,0,0,0,0,0,0,0,0,0,160,47,0,0,70,0,0,0,71,0,0,0,39,0,0,0,1,0,0,0,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,46,48,76,102,0,0,0,0,0,0,0,48,48,0,0,72,0,0,0,73,0,0,0,39,0,0,0,2,0,0,0,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,43,0,0,74,0,0,0,75,0,0,0,39,0,0,0,13,0,0,0,11,0,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,43,0,0,76,0,0,0,77,0,0,0,39,0,0,0,14,0,0,0,12,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,118,101,99,116,111,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,67,0,0,0,0,0,0,0,0,0,0,0,0,39,0,0,78,0,0,0,79,0,0,0,39,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,216,35,0,0,80,0,0,0,81,0,0,0,39,0,0,0,9,0,0,0,15,0,0,0,10,0,0,0,16,0,0,0,11,0,0,0,1,0,0,0,17,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,36,0,0,82,0,0,0,83,0,0,0,39,0,0,0,1,0,0,0,2,0,0,0,4,0,0,0,45,0,0,0,46,0,0,0,5,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,176,38,0,0,84,0,0,0,85,0,0,0,39,0,0,0,48,0,0,0,49,0,0,0,33,0,0,0,34,0,0,0,35,0,0,0,0,0,0,0,216,38,0,0,86,0,0,0,87,0,0,0,39,0,0,0,50,0,0,0,51,0,0,0,36,0,0,0,37,0,0,0,38,0,0,0,116,114,117,101,0,0,0,0,116,0,0,0,114,0,0,0,117,0,0,0,101,0,0,0,0,0,0,0,0,0,0,0,102,97,108,115,101,0,0,0,102,0,0,0,97,0,0,0,108,0,0,0,115,0,0,0,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,109,47,37,100,47,37,121,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,109,0,0,0,47,0,0,0,37,0,0,0,100,0,0,0,47,0,0,0,37,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,72,58,37,77,58,37,83,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,97,32,37,98,32,37,100,32,37,72,58,37,77,58,37,83,32,37,89,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,97,0,0,0,32,0,0,0,37,0,0,0,98,0,0,0,32,0,0,0,37,0,0,0,100,0,0,0,32,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,32,0,0,0,37,0,0,0,89,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,73,58,37,77,58,37,83,32,37,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,73,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,32,0,0,0,37,0,0,0,112,0,0,0,0,0,0,0,108,111,99,97,108,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,0,0,0,0,0,0,0,16,35,0,0,88,0,0,0,89,0,0,0,39,0,0,0,0,0,0,0,78,83,116,51,95,95,49,54,108,111,99,97,108,101,53,102,97,99,101,116,69,0,0,0,128,66,0,0,248,34,0,0,144,19,0,0,0,0,0,0,0,0,0,0,160,35,0,0,88,0,0,0,90,0,0,0,39,0,0,0,18,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,12,0,0,0,19,0,0,0,13,0,0,0,20,0,0,0,14,0,0,0,5,0,0,0,21,0,0,0,6,0,0,0,0,0,0,0,78,83,116,51,95,95,49,53,99,116,121,112,101,73,119,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,48,99,116,121,112,101,95,98,97,115,101,69,0,0,0,0,88,66,0,0,128,35,0,0,224,66,0,0,104,35,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,152,35,0,0,2,0,0,0,78,83,116,51,95,95,49,53,99,116,121,112,101,73,99,69,69,0,0,0,0,0,0,0,224,66,0,0,192,35,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,152,35,0,0,2,0,0,0,0,0,0,0,112,36,0,0,88,0,0,0,91,0,0,0,39,0,0,0,3,0,0,0,4,0,0,0,7,0,0,0,52,0,0,0,53,0,0,0,8,0,0,0,54,0,0,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,99,99,49,49,95,95,109,98,115,116,97,116,101,95,116,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,50,99,111,100,101,99,118,116,95,98,97,115,101,69,0,0,88,66,0,0,80,36,0,0,224,66,0,0,40,36,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,104,36,0,0,2,0,0,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,119,99,49,49,95,95,109,98,115,116,97,116,101,95,116,69,69,0,0,0,0,0,0,0,224,66,0,0,144,36,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,104,36,0,0,2,0,0,0,0,0,0,0,48,37,0,0,88,0,0,0,92,0,0,0,39,0,0,0,5,0,0,0,6,0,0,0,9,0,0,0,55,0,0,0,56,0,0,0,10,0,0,0,57,0,0,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,68,115,99,49,49,95,95,109,98,115,116,97,116,101,95,116,69,69,0,0,0,0,0,0,224,66,0,0,8,37,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,104,36,0,0,2,0,0,0,0,0,0,0,168,37,0,0,88,0,0,0,93,0,0,0,39,0,0,0,7,0,0,0,8,0,0,0,11,0,0,0,58,0,0,0,59,0,0,0,12,0,0,0,60,0,0,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,68,105,99,49,49,95,95,109,98,115,116,97,116,101,95,116,69,69,0,0,0,0,0,0,224,66,0,0,128,37,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,104,36,0,0,2,0,0,0,0,0,0,0,32,38,0,0,88,0,0,0,94,0,0,0,39,0,0,0,7,0,0,0,8,0,0,0,11,0,0,0,58,0,0,0,59,0,0,0,12,0,0,0,60,0,0,0,78,83,116,51,95,95,49,49,54,95,95,110,97,114,114,111,119,95,116,111,95,117,116,102,56,73,76,106,51,50,69,69,69,0,0,0,0,0,0,0,128,66,0,0,248,37,0,0,168,37,0,0,0,0,0,0,0,0,0,0,136,38,0,0,88,0,0,0,95,0,0,0,39,0,0,0,7,0,0,0,8,0,0,0,11,0,0,0,58,0,0,0,59,0,0,0,12,0,0,0,60,0,0,0,78,83,116,51,95,95,49,49,55,95,95,119,105,100,101,110,95,102,114,111,109,95,117,116,102,56,73,76,106,51,50,69,69,69,0,0,0,0,0,0,128,66,0,0,96,38,0,0,168,37,0,0,0,0,0,0,78,83,116,51,95,95,49,56,110,117,109,112,117,110,99,116,73,99,69,69,0,0,0,0,128,66,0,0,152,38,0,0,16,35,0,0,0,0,0,0,78,83,116,51,95,95,49,56,110,117,109,112,117,110,99,116,73,119,69,69,0,0,0,0,128,66,0,0,192,38,0,0,16,35,0,0,0,0,0,0,78,83,116,51,95,95,49,54,108,111,99,97,108,101,53,95,95,105,109,112,69,0,0,0,128,66,0,0,232,38,0,0,16,35,0,0,0,0,0,0,78,83,116,51,95,95,49,55,99,111,108,108,97,116,101,73,99,69,69,0,0,0,0,0,128,66,0,0,16,39,0,0,16,35,0,0,0,0,0,0,78,83,116,51,95,95,49,55,99,111,108,108,97,116,101,73,119,69,69,0,0,0,0,0,128,66,0,0,56,39,0,0,16,35,0,0,0,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,99,76,98,48,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,95,98,97,115,101,69,0,0,0,0,88,66,0,0,128,39,0,0,224,66,0,0,96,39,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,152,39,0,0,2,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,99,76,98,49,69,69,69,0,0,0,0,0,224,66,0,0,192,39,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,152,39,0,0,2,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,119,76,98,48,69,69,69,0,0,0,0,0,224,66,0,0,0,40,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,152,39,0,0,2,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,119,76,98,49,69,69,69,0,0,0,0,0,224,66,0,0,64,40,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,152,39,0,0,2,0,0,0,78,83,116,51,95,95,49,56,116,105,109,101,95,103,101,116,73,99,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,0,78,83,116,51,95,95,49,57,116,105,109,101,95,98,97,115,101,69,0,0,0,0,0,0,88,66,0,0,200,40,0,0,78,83,116,51,95,95,49,50,48,95,95,116,105,109,101,95,103,101,116,95,99,95,115,116,111,114,97,103,101,73,99,69,69,0,0,0,0,0,0,0,88,66,0,0,232,40,0,0,224,66,0,0,128,40,0,0,0,0,0,0,3,0,0,0,16,35,0,0,2,0,0,0,224,40,0,0,2,0,0,0,16,41,0,0,0,8,0,0,78,83,116,51,95,95,49,56,116,105,109,101,95,103,101,116,73,119,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,0,78,83,116,51,95,95,49,50,48,95,95,116,105,109,101,95,103,101,116,95,99,95,115,116,111,114,97,103,101,73,119,69,69,0,0,0,0,0,0,0,88,66,0,0,136,41,0,0,224,66,0,0,64,41,0,0,0,0,0,0,3,0,0,0,16,35,0,0,2,0,0,0,224,40,0,0,2,0,0,0,176,41,0,0,0,8,0,0,78,83,116,51,95,95,49,56,116,105,109,101,95,112,117,116,73,99,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,0,78,83,116,51,95,95,49,49,48,95,95,116,105,109,101,95,112,117,116,69,0,0,0,0,88,66,0,0,40,42,0,0,224,66,0,0,224,41,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,64,42,0,0,0,8,0,0,78,83,116,51,95,95,49,56,116,105,109,101,95,112,117,116,73,119,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,0,224,66,0,0,104,42,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,64,42,0,0,0,8,0,0,78,83,116,51,95,95,49,56,109,101,115,115,97,103,101,115,73,99,69,69,0,0,0,0,78,83,116,51,95,95,49,49,51,109,101,115,115,97,103,101,115,95,98,97,115,101,69,0,88,66,0,0,232,42,0,0,224,66,0,0,208,42,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,0,43,0,0,2,0,0,0,78,83,116,51,95,95,49,56,109,101,115,115,97,103,101,115,73,119,69,69,0,0,0,0,224,66,0,0,40,43,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,0,43,0,0,2,0,0,0,78,83,116,51,95,95,49,55,110,117,109,95,103,101,116,73,99,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,103,101,116,73,99,69,69,0,0,0,78,83,116,51,95,95,49,49,52,95,95,110,117,109,95,103,101,116,95,98,97,115,101,69,0,0,0,0,0,0,0,0,88,66,0,0,192,43,0,0,224,66,0,0,168,43,0,0,0,0,0,0,1,0,0,0,224,43,0,0,0,0,0,0,224,66,0,0,96,43,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,232,43,0,0,0,0,0,0,78,83,116,51,95,95,49,55,110,117,109,95,103,101,116,73,119,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,103,101,116,73,119,69,69,0,0,0,224,66,0,0,104,44,0,0,0,0,0,0,1,0,0,0,224,43,0,0,0,0,0,0,224,66,0,0,32,44,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,128,44,0,0,0,0,0,0,78,83,116,51,95,95,49,55,110,117,109,95,112,117,116,73,99,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,112,117,116,73,99,69,69,0,0,0,78,83,116,51,95,95,49,49,52,95,95,110,117,109,95,112,117,116,95,98,97,115,101,69,0,0,0,0,0,0,0,0,88,66,0,0,24,45,0,0,224,66,0,0,0,45,0,0,0,0,0,0,1,0,0,0,56,45,0,0,0,0,0,0,224,66,0,0,184,44,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,64,45,0,0,0,0,0,0,78,83,116,51,95,95,49,55,110,117,109,95,112,117,116,73,119,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,112,117,116,73,119,69,69,0,0,0,224,66,0,0,192,45,0,0,0,0,0,0,1,0,0,0,56,45,0,0,0,0,0,0,224,66,0,0,120,45,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,216,45,0,0,0,0,0,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,103,101,116,73,99,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,103,101,116,73,99,69,69,0,0,0,0,0,0,0,0,88,66,0,0,88,46,0,0,224,66,0,0,16,46,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,120,46,0,0,0,0,0,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,103,101,116,73,119,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,103,101,116,73,119,69,69,0,0,0,0,0,0,0,0,88,66,0,0,232,46,0,0,224,66,0,0,160,46,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,8,47,0,0,0,0,0,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,112,117,116,73,99,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,112,117,116,73,99,69,69,0,0,0,0,0,0,0,0,88,66,0,0,120,47,0,0,224,66,0,0,48,47,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,152,47,0,0,0,0,0,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,112,117,116,73,119,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,112,117,116,73,119,69,69,0,0,0,0,0,0,0,0,88,66,0,0,8,48,0,0,224,66,0,0,192,47,0,0,0,0,0,0,2,0,0,0,16,35,0,0,2,0,0,0,40,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,80,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65,77,0,0,0,0,0,0,80,77,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74,0,0,0,97,0,0,0,110,0,0,0,117,0,0,0,97,0,0,0,114,0,0,0,121,0,0,0,0,0,0,0,70,0,0,0,101,0,0,0,98,0,0,0,114,0,0,0,117,0,0,0,97,0,0,0,114,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,77,0,0,0,97,0,0,0,114,0,0,0,99,0,0,0,104,0,0,0,0,0,0,0,65,0,0,0,112,0,0,0,114,0,0,0,105,0,0,0,108,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,110,0,0,0,101,0,0,0,0,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,108,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,65,0,0,0,117,0,0,0,103,0,0,0,117,0,0,0,115,0,0,0,116,0,0,0,0,0,0,0,0,0,0,0,83,0,0,0,101,0,0,0,112,0,0,0,116,0,0,0,101,0,0,0,109,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,79,0,0,0,99,0,0,0,116,0,0,0,111,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,78,0,0,0,111,0,0,0,118,0,0,0,101,0,0,0,109,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,0,0,0,0,68,0,0,0,101,0,0,0,99,0,0,0,101,0,0,0,109,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,0,0,0,0,74,0,0,0,97,0,0,0,110,0,0,0,0,0,0,0,70,0,0,0,101,0,0,0,98,0,0,0,0,0,0,0,77,0,0,0,97,0,0,0,114,0,0,0,0,0,0,0,65,0,0,0,112,0,0,0,114,0,0,0,0,0,0,0,77,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,110,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,108,0,0,0,0,0,0,0,65,0,0,0,117,0,0,0,103,0,0,0,0,0,0,0,83,0,0,0,101,0,0,0,112,0,0,0,0,0,0,0,79,0,0,0,99,0,0,0,116,0,0,0,0,0,0,0,78,0,0,0,111,0,0,0,118,0,0,0,0,0,0,0,68,0,0,0,101,0,0,0,99,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74,97,110,117,97,114,121,0,70,101,98,114,117,97,114,121,0,0,0,0,0,0,0,0,77,97,114,99,104,0,0,0,65,112,114,105,108,0,0,0,77,97,121,0,0,0,0,0,74,117,110,101,0,0,0,0,74,117,108,121,0,0,0,0,65,117,103,117,115,116,0,0,83,101,112,116,101,109,98,101,114,0,0,0,0,0,0,0,79,99,116,111,98,101,114,0,78,111,118,101,109,98,101,114,0,0,0,0,0,0,0,0,68,101,99,101,109,98,101,114,0,0,0,0,0,0,0,0,74,97,110],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+4500);allocate([70,101,98,0,0,0,0,0,77,97,114,0,0,0,0,0,65,112,114,0,0,0,0,0,74,117,110,0,0,0,0,0,74,117,108,0,0,0,0,0,65,117,103,0,0,0,0,0,83,101,112,0,0,0,0,0,79,99,116,0,0,0,0,0,78,111,118,0,0,0,0,0,68,101,99,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,83,0,0,0,117,0,0,0,110,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,77,0,0,0,111,0,0,0,110,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,84,0,0,0,117,0,0,0,101,0,0,0,115,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,87,0,0,0,101,0,0,0,100,0,0,0,110,0,0,0,101,0,0,0,115,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,84,0,0,0,104,0,0,0,117,0,0,0,114,0,0,0,115,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,70,0,0,0,114,0,0,0,105,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,83,0,0,0,97,0,0,0,116,0,0,0,117,0,0,0,114,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,83,0,0,0,117,0,0,0,110,0,0,0,0,0,0,0,77,0,0,0,111,0,0,0,110,0,0,0,0,0,0,0,84,0,0,0,117,0,0,0,101,0,0,0,0,0,0,0,87,0,0,0,101,0,0,0,100,0,0,0,0,0,0,0,84,0,0,0,104,0,0,0,117,0,0,0,0,0,0,0,70,0,0,0,114,0,0,0,105,0,0,0,0,0,0,0,83,0,0,0,97,0,0,0,116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,83,117,110,100,97,121,0,0,77,111,110,100,97,121,0,0,84,117,101,115,100,97,121,0,87,101,100,110,101,115,100,97,121,0,0,0,0,0,0,0,84,104,117,114,115,100,97,121,0,0,0,0,0,0,0,0,70,114,105,100,97,121,0,0,83,97,116,117,114,100,97,121,0,0,0,0,0,0,0,0,83,117,110,0,0,0,0,0,77,111,110,0,0,0,0,0,84,117,101,0,0,0,0,0,87,101,100,0,0,0,0,0,84,104,117,0,0,0,0,0,70,114,105,0,0,0,0,0,83,97,116,0,0,0,0,0,2,0,0,192,3,0,0,192,4,0,0,192,5,0,0,192,6,0,0,192,7,0,0,192,8,0,0,192,9,0,0,192,10,0,0,192,11,0,0,192,12,0,0,192,13,0,0,192,14,0,0,192,15,0,0,192,16,0,0,192,17,0,0,192,18,0,0,192,19,0,0,192,20,0,0,192,21,0,0,192,22,0,0,192,23,0,0,192,24,0,0,192,25,0,0,192,26,0,0,192,27,0,0,192,28,0,0,192,29,0,0,192,30,0,0,192,31,0,0,192,0,0,0,179,1,0,0,195,2,0,0,195,3,0,0,195,4,0,0,195,5,0,0,195,6,0,0,195,7,0,0,195,8,0,0,195,9,0,0,195,10,0,0,195,11,0,0,195,12,0,0,195,13,0,0,211,14,0,0,195,15,0,0,195,0,0,12,187,1,0,12,195,2,0,12,195,3,0,12,195,4,0,12,211,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,48,62,0,0,0,0,0,0,117,110,99,97,117,103,104,116,0,0,0,0,0,0,0,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,58,32,37,115,0,0,0,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,0,0,0,0,0,0,0,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,102,111,114,101,105,103,110,32,101,120,99,101,112,116,105,111,110,0,0,0,116,101,114,109,105,110,97,116,105,110,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,116,104,114,101,97,100,95,111,110,99,101,32,102,97,105,108,117,114,101,32,105,110,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,95,102,97,115,116,40,41,0,0,0,0,0,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,112,116,104,114,101,97,100,32,107,101,121,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,0,0,0,0,0,0,99,97,110,110,111,116,32,122,101,114,111,32,111,117,116,32,116,104,114,101,97,100,32,118,97,108,117,101,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,0,0,0,0,0,0,0,200,63,0,0,96,0,0,0,97,0,0,0,61,0,0,0,0,0,0,0,115,116,100,58,58,98,97,100,95,97,108,108,111,99,0,0,83,116,57,98,97,100,95,97,108,108,111,99,0,0,0,0,128,66,0,0,184,63,0,0,80,64,0,0,0,0,0,0,116,101,114,109,105,110,97,116,101,95,104,97,110,100,108,101,114,32,117,110,101,120,112,101,99,116,101,100,108,121,32,114,101,116,117,114,110,101,100,0,116,101,114,109,105,110,97,116,101,95,104,97,110,100,108,101,114,32,117,110,101,120,112,101,99,116,101,100,108,121,32,116,104,114,101,119,32,97,110,32,101,120,99,101,112,116,105,111,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,83,116,57,101,120,99,101,112,116,105,111,110,0,0,0,0,88,66,0,0,64,64,0,0,0,0,0,0,152,64,0,0,98,0,0,0,99,0,0,0,62,0,0,0,0,0,0,0,0,0,0,0,0,65,0,0,100,0,0,0,101,0,0,0,15,0,0,0,0,0,0,0,83,116,49,49,108,111,103,105,99,95,101,114,114,111,114,0,128,66,0,0,136,64,0,0,80,64,0,0,0,0,0,0,0,0,0,0,216,64,0,0,98,0,0,0,102,0,0,0,62,0,0,0,0,0,0,0,83,116,49,50,108,101,110,103,116,104,95,101,114,114,111,114,0,0,0,0,0,0,0,0,128,66,0,0,192,64,0,0,152,64,0,0,0,0,0,0,83,116,49,51,114,117,110,116,105,109,101,95,101,114,114,111,114,0,0,0,0,0,0,0,128,66,0,0,232,64,0,0,80,64,0,0,0,0,0,0,0,0,0,0,96,65,0,0,103,0,0,0,104,0,0,0,63,0,0,0,0,0,0,0,115,116,100,58,58,98,97,100,95,99,97,115,116,0,0,0,83,116,57,116,121,112,101,95,105,110,102,111,0,0,0,0,88,66,0,0,56,65,0,0,83,116,56,98,97,100,95,99,97,115,116,0,0,0,0,0,128,66,0,0,80,65,0,0,80,64,0,0,0,0,0,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,54,95,95,115,104,105,109,95,116,121,112,101,95,105,110,102,111,69,0,0,0,0,0,0,0,0,128,66,0,0,112,65,0,0,72,65,0,0,0,0,0,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,0,0,0,0,0,0,128,66,0,0,168,65,0,0,152,65,0,0,0,0,0,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,57,95,95,112,111,105,110,116,101,114,95,116,121,112,101,95,105,110,102,111,69,0,0,0,0,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,112,98,97,115,101,95,116,121,112,101,95,105,110,102,111,69,0,0,0,0,0,0,0,128,66,0,0,8,66,0,0,152,65,0,0,0,0,0,0,128,66,0,0,224,65,0,0,48,66,0,0,0,0,0,0,0,0,0,0,208,65,0,0,105,0,0,0,106,0,0,0,107,0,0,0,108,0,0,0,22,0,0,0,13,0,0,0,1,0,0,0,5,0,0,0,0,0,0,0,200,66,0,0,105,0,0,0,109,0,0,0,107,0,0,0,108,0,0,0,22,0,0,0,14,0,0,0,2,0,0,0,6,0,0,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,48,95,95,115,105,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,0,0,0,128,66,0,0,160,66,0,0,208,65,0,0,0,0,0,0,0,0,0,0,40,67,0,0,105,0,0,0,110,0,0,0,107,0,0,0,108,0,0,0,22,0,0,0,15,0,0,0,3,0,0,0,7,0,0,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,49,95,95,118,109,105,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,0,0,128,66,0,0,0,67,0,0,208,65,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,255,255,255,255,255,255,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,1,2,4,7,3,6,5,0,0,0,0,0,0,0,0,105,110,102,105,110,105,116,121,0,0,0,0,0,0,0,0,110,97,110,0,0,0,0,0,95,112,137,0,255,9,47,15,10,0,0,0,100,0,0,0,232,3,0,0,16,39,0,0,160,134,1,0,64,66,15,0,128,150,152,0,0,225,245,5,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,45,43,32,32,32,48,88,48,120,0,0,0,0,0,0,0,40,110,117,108,108,41,0,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,0,0,0,0,0,105,110,102,0,0,0,0,0,73,78,70,0,0,0,0,0,110,97,110,0,0,0,0,0,78,65,78,0,0,0,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,46,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+14744);var tempDoublePtr=Runtime.alignMemory(allocate(12,"i8",ALLOC_STATIC),8);assert(tempDoublePtr%8==0);function copyTempFloat(ptr){HEAP8[tempDoublePtr]=HEAP8[ptr];HEAP8[tempDoublePtr+1]=HEAP8[ptr+1];HEAP8[tempDoublePtr+2]=HEAP8[ptr+2];HEAP8[tempDoublePtr+3]=HEAP8[ptr+3]}function copyTempDouble(ptr){HEAP8[tempDoublePtr]=HEAP8[ptr];HEAP8[tempDoublePtr+1]=HEAP8[ptr+1];HEAP8[tempDoublePtr+2]=HEAP8[ptr+2];HEAP8[tempDoublePtr+3]=HEAP8[ptr+3];HEAP8[tempDoublePtr+4]=HEAP8[ptr+4];HEAP8[tempDoublePtr+5]=HEAP8[ptr+5];HEAP8[tempDoublePtr+6]=HEAP8[ptr+6];HEAP8[tempDoublePtr+7]=HEAP8[ptr+7]}function _atexit(func,arg){__ATEXIT__.unshift({func:func,arg:arg})}function ___cxa_atexit(){return _atexit.apply(null,arguments)}Module["_i64Subtract"]=_i64Subtract;Module["_i64Add"]=_i64Add;function __ZSt18uncaught_exceptionv(){return!!__ZSt18uncaught_exceptionv.uncaught_exception}var EXCEPTIONS={last:0,caught:[],infos:{},deAdjust:(function(adjusted){if(!adjusted||EXCEPTIONS.infos[adjusted])return adjusted;for(var ptr in EXCEPTIONS.infos){var info=EXCEPTIONS.infos[ptr];if(info.adjusted===adjusted){return ptr}}return adjusted}),addRef:(function(ptr){if(!ptr)return;var info=EXCEPTIONS.infos[ptr];info.refcount++}),decRef:(function(ptr){if(!ptr)return;var info=EXCEPTIONS.infos[ptr];assert(info.refcount>0);info.refcount--;if(info.refcount===0){if(info.destructor){Runtime.dynCall("vi",info.destructor,[ptr])}delete EXCEPTIONS.infos[ptr];___cxa_free_exception(ptr)}}),clearRef:(function(ptr){if(!ptr)return;var info=EXCEPTIONS.infos[ptr];info.refcount=0})};function ___resumeException(ptr){if(!EXCEPTIONS.last){EXCEPTIONS.last=ptr}EXCEPTIONS.clearRef(EXCEPTIONS.deAdjust(ptr));throw ptr+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."}function ___cxa_find_matching_catch(){var thrown=EXCEPTIONS.last;if(!thrown){return(asm["setTempRet0"](0),0)|0}var info=EXCEPTIONS.infos[thrown];var throwntype=info.type;if(!throwntype){return(asm["setTempRet0"](0),thrown)|0}var typeArray=Array.prototype.slice.call(arguments);var pointer=Module["___cxa_is_pointer_type"](throwntype);if(!___cxa_find_matching_catch.buffer)___cxa_find_matching_catch.buffer=_malloc(4);HEAP32[___cxa_find_matching_catch.buffer>>2]=thrown;thrown=___cxa_find_matching_catch.buffer;for(var i=0;i>2];info.adjusted=thrown;return(asm["setTempRet0"](typeArray[i]),thrown)|0}}thrown=HEAP32[thrown>>2];return(asm["setTempRet0"](throwntype),thrown)|0}function ___cxa_throw(ptr,type,destructor){EXCEPTIONS.infos[ptr]={ptr:ptr,adjusted:ptr,type:type,destructor:destructor,refcount:0};EXCEPTIONS.last=ptr;if(!("uncaught_exception"in __ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exception=1}else{__ZSt18uncaught_exceptionv.uncaught_exception++}throw ptr+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."}var ERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86};var ERRNO_MESSAGES={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};var ___errno_state=0;function ___setErrNo(value){HEAP32[___errno_state>>2]=value;return value}var PATH={splitPath:(function(filename){var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)}),normalizeArray:(function(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}),normalize:(function(path){var isAbsolute=path.charAt(0)==="/",trailingSlash=path.substr(-1)==="/";path=PATH.normalizeArray(path.split("/").filter((function(p){return!!p})),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path}),dirname:(function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir}),basename:(function(path){if(path==="/")return"/";var lastSlash=path.lastIndexOf("/");if(lastSlash===-1)return path;return path.substr(lastSlash+1)}),extname:(function(path){return PATH.splitPath(path)[3]}),join:(function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join("/"))}),join2:(function(l,r){return PATH.normalize(l+"/"+r)}),resolve:(function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:FS.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){return""}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=PATH.normalizeArray(resolvedPath.split("/").filter((function(p){return!!p})),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."}),relative:(function(from,to){from=PATH.resolve(from).substr(1);to=PATH.resolve(to).substr(1);function trim(arr){var start=0;for(;start=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;inode.contents.length){node.contents=MEMFS.getFileDataAsRegularArray(node);node.usedBytes=node.contents.length}if(!node.contents||node.contents.subarray){var prevCapacity=node.contents?node.contents.buffer.byteLength:0;if(prevCapacity>=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity0)node.contents.set(oldContents.subarray(0,node.usedBytes),0);return}if(!node.contents&&newCapacity>0)node.contents=[];while(node.contents.lengthnewSize)node.contents.length=newSize;else while(node.contents.length=stream.node.usedBytes)return 0;var size=Math.min(stream.node.usedBytes-position,length);assert(size>=0);if(size>8&&contents.subarray){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i0||position+lengthe2.timestamp){create.push(key);total++}}));var remove=[];Object.keys(dst.entries).forEach((function(key){var e=dst.entries[key];var e2=src.entries[key];if(!e2){remove.push(key);total++}}));if(!total){return callback(null)}var errored=false;var completed=0;var db=src.type==="remote"?src.db:dst.db;var transaction=db.transaction([IDBFS.DB_STORE_NAME],"readwrite");var store=transaction.objectStore(IDBFS.DB_STORE_NAME);function done(err){if(err){if(!done.errored){done.errored=true;return callback(err)}return}if(++completed>=total){return callback(null)}}transaction.onerror=(function(){done(this.error)});create.sort().forEach((function(path){if(dst.type==="local"){IDBFS.loadRemoteEntry(store,path,(function(err,entry){if(err)return done(err);IDBFS.storeLocalEntry(path,entry,done)}))}else{IDBFS.loadLocalEntry(path,(function(err,entry){if(err)return done(err);IDBFS.storeRemoteEntry(store,path,entry,done)}))}}));remove.sort().reverse().forEach((function(path){if(dst.type==="local"){IDBFS.removeLocalEntry(path,done)}else{IDBFS.removeRemoteEntry(store,path,done)}}))})};var NODEFS={isWindows:false,staticInit:(function(){NODEFS.isWindows=!!process.platform.match(/^win/)}),mount:(function(mount){assert(ENVIRONMENT_IS_NODE);return NODEFS.createNode(null,"/",NODEFS.getMode(mount.opts.root),0)}),createNode:(function(parent,name,mode,dev){if(!FS.isDir(mode)&&!FS.isFile(mode)&&!FS.isLink(mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node=FS.createNode(parent,name,mode);node.node_ops=NODEFS.node_ops;node.stream_ops=NODEFS.stream_ops;return node}),getMode:(function(path){var stat;try{stat=fs.lstatSync(path);if(NODEFS.isWindows){stat.mode=stat.mode|(stat.mode&146)>>1}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}return stat.mode}),realPath:(function(node){var parts=[];while(node.parent!==node){parts.push(node.name);node=node.parent}parts.push(node.mount.opts.root);parts.reverse();return PATH.join.apply(null,parts)}),flagsToPermissionStringMap:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},flagsToPermissionString:(function(flags){if(flags in NODEFS.flagsToPermissionStringMap){return NODEFS.flagsToPermissionStringMap[flags]}else{return flags}}),node_ops:{getattr:(function(node){var path=NODEFS.realPath(node);var stat;try{stat=fs.lstatSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}if(NODEFS.isWindows&&!stat.blksize){stat.blksize=4096}if(NODEFS.isWindows&&!stat.blocks){stat.blocks=(stat.size+stat.blksize-1)/stat.blksize|0}return{dev:stat.dev,ino:stat.ino,mode:stat.mode,nlink:stat.nlink,uid:stat.uid,gid:stat.gid,rdev:stat.rdev,size:stat.size,atime:stat.atime,mtime:stat.mtime,ctime:stat.ctime,blksize:stat.blksize,blocks:stat.blocks}}),setattr:(function(node,attr){var path=NODEFS.realPath(node);try{if(attr.mode!==undefined){fs.chmodSync(path,attr.mode);node.mode=attr.mode}if(attr.timestamp!==undefined){var date=new Date(attr.timestamp);fs.utimesSync(path,date,date)}if(attr.size!==undefined){fs.truncateSync(path,attr.size)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),lookup:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);var mode=NODEFS.getMode(path);return NODEFS.createNode(parent,name,mode)}),mknod:(function(parent,name,mode,dev){var node=NODEFS.createNode(parent,name,mode,dev);var path=NODEFS.realPath(node);try{if(FS.isDir(node.mode)){fs.mkdirSync(path,node.mode)}else{fs.writeFileSync(path,"",{mode:node.mode})}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}return node}),rename:(function(oldNode,newDir,newName){var oldPath=NODEFS.realPath(oldNode);var newPath=PATH.join2(NODEFS.realPath(newDir),newName);try{fs.renameSync(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),unlink:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);try{fs.unlinkSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),rmdir:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);try{fs.rmdirSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),readdir:(function(node){var path=NODEFS.realPath(node);try{return fs.readdirSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),symlink:(function(parent,newName,oldPath){var newPath=PATH.join2(NODEFS.realPath(parent),newName);try{fs.symlinkSync(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),readlink:(function(node){var path=NODEFS.realPath(node);try{return fs.readlinkSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}})},stream_ops:{open:(function(stream){var path=NODEFS.realPath(stream.node);try{if(FS.isFile(stream.node.mode)){stream.nfd=fs.openSync(path,NODEFS.flagsToPermissionString(stream.flags))}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),close:(function(stream){try{if(FS.isFile(stream.node.mode)&&stream.nfd){fs.closeSync(stream.nfd)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),read:(function(stream,buffer,offset,length,position){if(length===0)return 0;var nbuffer=new Buffer(length);var res;try{res=fs.readSync(stream.nfd,nbuffer,0,length,position)}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}if(res>0){for(var i=0;i8){throw new FS.ErrnoError(ERRNO_CODES.ELOOP)}var parts=PATH.normalizeArray(path.split("/").filter((function(p){return!!p})),false);var current=FS.root;var current_path="/";for(var i=0;i40){throw new FS.ErrnoError(ERRNO_CODES.ELOOP)}}}}return{path:current_path,node:current}}),getPath:(function(node){var path;while(true){if(FS.isRoot(node)){var mount=node.mount.mountpoint;if(!path)return mount;return mount[mount.length-1]!=="/"?mount+"/"+path:mount+path}path=path?node.name+"/"+path:node.name;node=node.parent}}),hashName:(function(parentid,name){var hash=0;for(var i=0;i>>0)%FS.nameTable.length}),hashAddNode:(function(node){var hash=FS.hashName(node.parent.id,node.name);node.name_next=FS.nameTable[hash];FS.nameTable[hash]=node}),hashRemoveNode:(function(node){var hash=FS.hashName(node.parent.id,node.name);if(FS.nameTable[hash]===node){FS.nameTable[hash]=node.name_next}else{var current=FS.nameTable[hash];while(current){if(current.name_next===node){current.name_next=node.name_next;break}current=current.name_next}}}),lookupNode:(function(parent,name){var err=FS.mayLookup(parent);if(err){throw new FS.ErrnoError(err,parent)}var hash=FS.hashName(parent.id,name);for(var node=FS.nameTable[hash];node;node=node.name_next){var nodeName=node.name;if(node.parent.id===parent.id&&nodeName===name){return node}}return FS.lookup(parent,name)}),createNode:(function(parent,name,mode,rdev){if(!FS.FSNode){FS.FSNode=(function(parent,name,mode,rdev){if(!parent){parent=this}this.parent=parent;this.mount=parent.mount;this.mounted=null;this.id=FS.nextInode++;this.name=name;this.mode=mode;this.node_ops={};this.stream_ops={};this.rdev=rdev});FS.FSNode.prototype={};var readMode=292|73;var writeMode=146;Object.defineProperties(FS.FSNode.prototype,{read:{get:(function(){return(this.mode&readMode)===readMode}),set:(function(val){val?this.mode|=readMode:this.mode&=~readMode})},write:{get:(function(){return(this.mode&writeMode)===writeMode}),set:(function(val){val?this.mode|=writeMode:this.mode&=~writeMode})},isFolder:{get:(function(){return FS.isDir(this.mode)})},isDevice:{get:(function(){return FS.isChrdev(this.mode)})}})}var node=new FS.FSNode(parent,name,mode,rdev);FS.hashAddNode(node);return node}),destroyNode:(function(node){FS.hashRemoveNode(node)}),isRoot:(function(node){return node===node.parent}),isMountpoint:(function(node){return!!node.mounted}),isFile:(function(mode){return(mode&61440)===32768}),isDir:(function(mode){return(mode&61440)===16384}),isLink:(function(mode){return(mode&61440)===40960}),isChrdev:(function(mode){return(mode&61440)===8192}),isBlkdev:(function(mode){return(mode&61440)===24576}),isFIFO:(function(mode){return(mode&61440)===4096}),isSocket:(function(mode){return(mode&49152)===49152}),flagModes:{"r":0,"rs":1052672,"r+":2,"w":577,"wx":705,"xw":705,"w+":578,"wx+":706,"xw+":706,"a":1089,"ax":1217,"xa":1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:(function(str){var flags=FS.flagModes[str];if(typeof flags==="undefined"){throw new Error("Unknown file open mode: "+str)}return flags}),flagsToPermissionString:(function(flag){var accmode=flag&2097155;var perms=["r","w","rw"][accmode];if(flag&512){perms+="w"}return perms}),nodePermissions:(function(node,perms){if(FS.ignorePermissions){return 0}if(perms.indexOf("r")!==-1&&!(node.mode&292)){return ERRNO_CODES.EACCES}else if(perms.indexOf("w")!==-1&&!(node.mode&146)){return ERRNO_CODES.EACCES}else if(perms.indexOf("x")!==-1&&!(node.mode&73)){return ERRNO_CODES.EACCES}return 0}),mayLookup:(function(dir){var err=FS.nodePermissions(dir,"x");if(err)return err;if(!dir.node_ops.lookup)return ERRNO_CODES.EACCES;return 0}),mayCreate:(function(dir,name){try{var node=FS.lookupNode(dir,name);return ERRNO_CODES.EEXIST}catch(e){}return FS.nodePermissions(dir,"wx")}),mayDelete:(function(dir,name,isdir){var node;try{node=FS.lookupNode(dir,name)}catch(e){return e.errno}var err=FS.nodePermissions(dir,"wx");if(err){return err}if(isdir){if(!FS.isDir(node.mode)){return ERRNO_CODES.ENOTDIR}if(FS.isRoot(node)||FS.getPath(node)===FS.cwd()){return ERRNO_CODES.EBUSY}}else{if(FS.isDir(node.mode)){return ERRNO_CODES.EISDIR}}return 0}),mayOpen:(function(node,flags){if(!node){return ERRNO_CODES.ENOENT}if(FS.isLink(node.mode)){return ERRNO_CODES.ELOOP}else if(FS.isDir(node.mode)){if((flags&2097155)!==0||flags&512){return ERRNO_CODES.EISDIR}}return FS.nodePermissions(node,FS.flagsToPermissionString(flags))}),MAX_OPEN_FDS:4096,nextfd:(function(fd_start,fd_end){fd_start=fd_start||0;fd_end=fd_end||FS.MAX_OPEN_FDS;for(var fd=fd_start;fd<=fd_end;fd++){if(!FS.streams[fd]){return fd}}throw new FS.ErrnoError(ERRNO_CODES.EMFILE)}),getStream:(function(fd){return FS.streams[fd]}),createStream:(function(stream,fd_start,fd_end){if(!FS.FSStream){FS.FSStream=(function(){});FS.FSStream.prototype={};Object.defineProperties(FS.FSStream.prototype,{object:{get:(function(){return this.node}),set:(function(val){this.node=val})},isRead:{get:(function(){return(this.flags&2097155)!==1})},isWrite:{get:(function(){return(this.flags&2097155)!==0})},isAppend:{get:(function(){return this.flags&1024})}})}var newStream=new FS.FSStream;for(var p in stream){newStream[p]=stream[p]}stream=newStream;var fd=FS.nextfd(fd_start,fd_end);stream.fd=fd;FS.streams[fd]=stream;return stream}),closeStream:(function(fd){FS.streams[fd]=null}),getStreamFromPtr:(function(ptr){return FS.streams[ptr-1]}),getPtrForStream:(function(stream){return stream?stream.fd+1:0}),chrdev_stream_ops:{open:(function(stream){var device=FS.getDevice(stream.node.rdev);stream.stream_ops=device.stream_ops;if(stream.stream_ops.open){stream.stream_ops.open(stream)}}),llseek:(function(){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)})},major:(function(dev){return dev>>8}),minor:(function(dev){return dev&255}),makedev:(function(ma,mi){return ma<<8|mi}),registerDevice:(function(dev,ops){FS.devices[dev]={stream_ops:ops}}),getDevice:(function(dev){return FS.devices[dev]}),getMounts:(function(mount){var mounts=[];var check=[mount];while(check.length){var m=check.pop();mounts.push(m);check.push.apply(check,m.mounts)}return mounts}),syncfs:(function(populate,callback){if(typeof populate==="function"){callback=populate;populate=false}var mounts=FS.getMounts(FS.root.mount);var completed=0;function done(err){if(err){if(!done.errored){done.errored=true;return callback(err)}return}if(++completed>=mounts.length){callback(null)}}mounts.forEach((function(mount){if(!mount.type.syncfs){return done(null)}mount.type.syncfs(mount,populate,done)}))}),mount:(function(type,opts,mountpoint){var root=mountpoint==="/";var pseudo=!mountpoint;var node;if(root&&FS.root){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}else if(!root&&!pseudo){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});mountpoint=lookup.path;node=lookup.node;if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}}var mount={type:type,opts:opts,mountpoint:mountpoint,mounts:[]};var mountRoot=type.mount(mount);mountRoot.mount=mount;mount.root=mountRoot;if(root){FS.root=mountRoot}else if(node){node.mounted=mount;if(node.mount){node.mount.mounts.push(mount)}}return mountRoot}),unmount:(function(mountpoint){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});if(!FS.isMountpoint(lookup.node)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node=lookup.node;var mount=node.mounted;var mounts=FS.getMounts(mount);Object.keys(FS.nameTable).forEach((function(hash){var current=FS.nameTable[hash];while(current){var next=current.name_next;if(mounts.indexOf(current.mount)!==-1){FS.destroyNode(current)}current=next}}));node.mounted=null;var idx=node.mount.mounts.indexOf(mount);assert(idx!==-1);node.mount.mounts.splice(idx,1)}),lookup:(function(parent,name){return parent.node_ops.lookup(parent,name)}),mknod:(function(path,mode,dev){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);if(!name||name==="."||name===".."){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var err=FS.mayCreate(parent,name);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.mknod){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return parent.node_ops.mknod(parent,name,mode,dev)}),create:(function(path,mode){mode=mode!==undefined?mode:438;mode&=4095;mode|=32768;return FS.mknod(path,mode,0)}),mkdir:(function(path,mode){mode=mode!==undefined?mode:511;mode&=511|512;mode|=16384;return FS.mknod(path,mode,0)}),mkdev:(function(path,mode,dev){if(typeof dev==="undefined"){dev=mode;mode=438}mode|=8192;return FS.mknod(path,mode,dev)}),symlink:(function(oldpath,newpath){if(!PATH.resolve(oldpath)){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}var lookup=FS.lookupPath(newpath,{parent:true});var parent=lookup.node;if(!parent){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}var newname=PATH.basename(newpath);var err=FS.mayCreate(parent,newname);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.symlink){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return parent.node_ops.symlink(parent,newname,oldpath)}),rename:(function(old_path,new_path){var old_dirname=PATH.dirname(old_path);var new_dirname=PATH.dirname(new_path);var old_name=PATH.basename(old_path);var new_name=PATH.basename(new_path);var lookup,old_dir,new_dir;try{lookup=FS.lookupPath(old_path,{parent:true});old_dir=lookup.node;lookup=FS.lookupPath(new_path,{parent:true});new_dir=lookup.node}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(!old_dir||!new_dir)throw new FS.ErrnoError(ERRNO_CODES.ENOENT);if(old_dir.mount!==new_dir.mount){throw new FS.ErrnoError(ERRNO_CODES.EXDEV)}var old_node=FS.lookupNode(old_dir,old_name);var relative=PATH.relative(old_path,new_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}relative=PATH.relative(new_path,old_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(old_node===new_node){return}var isdir=FS.isDir(old_node.mode);var err=FS.mayDelete(old_dir,old_name,isdir);if(err){throw new FS.ErrnoError(err)}err=new_node?FS.mayDelete(new_dir,new_name,isdir):FS.mayCreate(new_dir,new_name);if(err){throw new FS.ErrnoError(err)}if(!old_dir.node_ops.rename){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(old_node)||new_node&&FS.isMountpoint(new_node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(new_dir!==old_dir){err=FS.nodePermissions(old_dir,"w");if(err){throw new FS.ErrnoError(err)}}try{if(FS.trackingDelegate["willMovePath"]){FS.trackingDelegate["willMovePath"](old_path,new_path)}}catch(e){console.log("FS.trackingDelegate['willMovePath']('"+old_path+"', '"+new_path+"') threw an exception: "+e.message)}FS.hashRemoveNode(old_node);try{old_dir.node_ops.rename(old_node,new_dir,new_name)}catch(e){throw e}finally{FS.hashAddNode(old_node)}try{if(FS.trackingDelegate["onMovePath"])FS.trackingDelegate["onMovePath"](old_path,new_path)}catch(e){console.log("FS.trackingDelegate['onMovePath']('"+old_path+"', '"+new_path+"') threw an exception: "+e.message)}}),rmdir:(function(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var err=FS.mayDelete(parent,name,true);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.rmdir){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}try{if(FS.trackingDelegate["willDeletePath"]){FS.trackingDelegate["willDeletePath"](path)}}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: "+e.message)}parent.node_ops.rmdir(parent,name);FS.destroyNode(node);try{if(FS.trackingDelegate["onDeletePath"])FS.trackingDelegate["onDeletePath"](path)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: "+e.message)}}),readdir:(function(path){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;if(!node.node_ops.readdir){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}return node.node_ops.readdir(node)}),unlink:(function(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var err=FS.mayDelete(parent,name,false);if(err){if(err===ERRNO_CODES.EISDIR)err=ERRNO_CODES.EPERM;throw new FS.ErrnoError(err)}if(!parent.node_ops.unlink){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}try{if(FS.trackingDelegate["willDeletePath"]){FS.trackingDelegate["willDeletePath"](path)}}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: "+e.message)}parent.node_ops.unlink(parent,name);FS.destroyNode(node);try{if(FS.trackingDelegate["onDeletePath"])FS.trackingDelegate["onDeletePath"](path)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: "+e.message)}}),readlink:(function(path){var lookup=FS.lookupPath(path);var link=lookup.node;if(!link){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(!link.node_ops.readlink){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return link.node_ops.readlink(link)}),stat:(function(path,dontFollow){var lookup=FS.lookupPath(path,{follow:!dontFollow});var node=lookup.node;if(!node){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(!node.node_ops.getattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return node.node_ops.getattr(node)}),lstat:(function(path){return FS.stat(path,true)}),chmod:(function(path,mode,dontFollow){var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}node.node_ops.setattr(node,{mode:mode&4095|node.mode&~4095,timestamp:Date.now()})}),lchmod:(function(path,mode){FS.chmod(path,mode,true)}),fchmod:(function(fd,mode){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}FS.chmod(stream.node,mode)}),chown:(function(path,uid,gid,dontFollow){var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}node.node_ops.setattr(node,{timestamp:Date.now()})}),lchown:(function(path,uid,gid){FS.chown(path,uid,gid,true)}),fchown:(function(fd,uid,gid){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}FS.chown(stream.node,uid,gid)}),truncate:(function(path,len){if(len<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:true});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!FS.isFile(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var err=FS.nodePermissions(node,"w");if(err){throw new FS.ErrnoError(err)}node.node_ops.setattr(node,{size:len,timestamp:Date.now()})}),ftruncate:(function(fd,len){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}FS.truncate(stream.node,len)}),utime:(function(path,atime,mtime){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;node.node_ops.setattr(node,{timestamp:Math.max(atime,mtime)})}),open:(function(path,flags,mode,fd_start,fd_end){if(path===""){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}flags=typeof flags==="string"?FS.modeStringToFlags(flags):flags;mode=typeof mode==="undefined"?438:mode;if(flags&64){mode=mode&4095|32768}else{mode=0}var node;if(typeof path==="object"){node=path}else{path=PATH.normalize(path);try{var lookup=FS.lookupPath(path,{follow:!(flags&131072)});node=lookup.node}catch(e){}}var created=false;if(flags&64){if(node){if(flags&128){throw new FS.ErrnoError(ERRNO_CODES.EEXIST)}}else{node=FS.mknod(path,mode,0);created=true}}if(!node){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(FS.isChrdev(node.mode)){flags&=~512}if(!created){var err=FS.mayOpen(node,flags);if(err){throw new FS.ErrnoError(err)}}if(flags&512){FS.truncate(node,0)}flags&=~(128|512);var stream=FS.createStream({node:node,path:FS.getPath(node),flags:flags,seekable:true,position:0,stream_ops:node.stream_ops,ungotten:[],error:false},fd_start,fd_end);if(stream.stream_ops.open){stream.stream_ops.open(stream)}if(Module["logReadFiles"]&&!(flags&1)){if(!FS.readFiles)FS.readFiles={};if(!(path in FS.readFiles)){FS.readFiles[path]=1;Module["printErr"]("read file: "+path)}}try{if(FS.trackingDelegate["onOpenFile"]){var trackingFlags=0;if((flags&2097155)!==1){trackingFlags|=FS.tracking.openFlags.READ}if((flags&2097155)!==0){trackingFlags|=FS.tracking.openFlags.WRITE}FS.trackingDelegate["onOpenFile"](path,trackingFlags)}}catch(e){console.log("FS.trackingDelegate['onOpenFile']('"+path+"', flags) threw an exception: "+e.message)}return stream}),close:(function(stream){try{if(stream.stream_ops.close){stream.stream_ops.close(stream)}}catch(e){throw e}finally{FS.closeStream(stream.fd)}}),llseek:(function(stream,offset,whence){if(!stream.seekable||!stream.stream_ops.llseek){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}stream.position=stream.stream_ops.llseek(stream,offset,whence);stream.ungotten=[];return stream.position}),read:(function(stream,buffer,offset,length,position){if(length<0||position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===1){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!stream.stream_ops.read){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var seeking=true;if(typeof position==="undefined"){position=stream.position;seeking=false}else if(!stream.seekable){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}var bytesRead=stream.stream_ops.read(stream,buffer,offset,length,position);if(!seeking)stream.position+=bytesRead;return bytesRead}),write:(function(stream,buffer,offset,length,position,canOwn){if(length<0||position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!stream.stream_ops.write){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if(stream.flags&1024){FS.llseek(stream,0,2)}var seeking=true;if(typeof position==="undefined"){position=stream.position;seeking=false}else if(!stream.seekable){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}var bytesWritten=stream.stream_ops.write(stream,buffer,offset,length,position,canOwn);if(!seeking)stream.position+=bytesWritten;try{if(stream.path&&FS.trackingDelegate["onWriteToFile"])FS.trackingDelegate["onWriteToFile"](stream.path)}catch(e){console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: "+e.message)}return bytesWritten}),allocate:(function(stream,offset,length){if(offset<0||length<=0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(!FS.isFile(stream.node.mode)&&!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}if(!stream.stream_ops.allocate){throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP)}stream.stream_ops.allocate(stream,offset,length)}),mmap:(function(stream,buffer,offset,length,position,prot,flags){if((stream.flags&2097155)===1){throw new FS.ErrnoError(ERRNO_CODES.EACCES)}if(!stream.stream_ops.mmap){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}return stream.stream_ops.mmap(stream,buffer,offset,length,position,prot,flags)}),ioctl:(function(stream,cmd,arg){if(!stream.stream_ops.ioctl){throw new FS.ErrnoError(ERRNO_CODES.ENOTTY)}return stream.stream_ops.ioctl(stream,cmd,arg)}),readFile:(function(path,opts){opts=opts||{};opts.flags=opts.flags||"r";opts.encoding=opts.encoding||"binary";if(opts.encoding!=="utf8"&&opts.encoding!=="binary"){throw new Error('Invalid encoding type "'+opts.encoding+'"')}var ret;var stream=FS.open(path,opts.flags);var stat=FS.stat(path);var length=stat.size;var buf=new Uint8Array(length);FS.read(stream,buf,0,length,0);if(opts.encoding==="utf8"){ret="";var utf8=new Runtime.UTF8Processor;for(var i=0;i>2]=FS.getPtrForStream(stdin);assert(stdin.fd===0,"invalid handle for stdin ("+stdin.fd+")");var stdout=FS.open("/dev/stdout","w");HEAP32[_stdout>>2]=FS.getPtrForStream(stdout);assert(stdout.fd===1,"invalid handle for stdout ("+stdout.fd+")");var stderr=FS.open("/dev/stderr","w");HEAP32[_stderr>>2]=FS.getPtrForStream(stderr);assert(stderr.fd===2,"invalid handle for stderr ("+stderr.fd+")")}),ensureErrnoError:(function(){if(FS.ErrnoError)return;FS.ErrnoError=function ErrnoError(errno,node){this.node=node;this.setErrno=(function(errno){this.errno=errno;for(var key in ERRNO_CODES){if(ERRNO_CODES[key]===errno){this.code=key;break}}});this.setErrno(errno);this.message=ERRNO_MESSAGES[errno]};FS.ErrnoError.prototype=new Error;FS.ErrnoError.prototype.constructor=FS.ErrnoError;[ERRNO_CODES.ENOENT].forEach((function(code){FS.genericErrors[code]=new FS.ErrnoError(code);FS.genericErrors[code].stack=""}))}),staticInit:(function(){FS.ensureErrnoError();FS.nameTable=new Array(4096);FS.mount(MEMFS,{},"/");FS.createDefaultDirectories();FS.createDefaultDevices()}),init:(function(input,output,error){assert(!FS.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)");FS.init.initialized=true;FS.ensureErrnoError();Module["stdin"]=input||Module["stdin"];Module["stdout"]=output||Module["stdout"];Module["stderr"]=error||Module["stderr"];FS.createStandardStreams()}),quit:(function(){FS.init.initialized=false;for(var i=0;ithis.length-1||idx<0){return undefined}var chunkOffset=idx%this.chunkSize;var chunkNum=idx/this.chunkSize|0;return this.getter(chunkNum)[chunkOffset]};LazyUint8Array.prototype.setDataGetter=function LazyUint8Array_setDataGetter(getter){this.getter=getter};LazyUint8Array.prototype.cacheLength=function LazyUint8Array_cacheLength(){var xhr=new XMLHttpRequest;xhr.open("HEAD",url,false);xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);var datalength=Number(xhr.getResponseHeader("Content-length"));var header;var hasByteServing=(header=xhr.getResponseHeader("Accept-Ranges"))&&header==="bytes";var chunkSize=1024*1024;if(!hasByteServing)chunkSize=datalength;var doXHR=(function(from,to){if(from>to)throw new Error("invalid range ("+from+", "+to+") or no bytes requested!");if(to>datalength-1)throw new Error("only "+datalength+" bytes available! programmer error!");var xhr=new XMLHttpRequest;xhr.open("GET",url,false);if(datalength!==chunkSize)xhr.setRequestHeader("Range","bytes="+from+"-"+to);if(typeof Uint8Array!="undefined")xhr.responseType="arraybuffer";if(xhr.overrideMimeType){xhr.overrideMimeType("text/plain; charset=x-user-defined")}xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);if(xhr.response!==undefined){return new Uint8Array(xhr.response||[])}else{return intArrayFromString(xhr.responseText||"",true)}});var lazyArray=this;lazyArray.setDataGetter((function(chunkNum){var start=chunkNum*chunkSize;var end=(chunkNum+1)*chunkSize-1;end=Math.min(end,datalength-1);if(typeof lazyArray.chunks[chunkNum]==="undefined"){lazyArray.chunks[chunkNum]=doXHR(start,end)}if(typeof lazyArray.chunks[chunkNum]==="undefined")throw new Error("doXHR failed!");return lazyArray.chunks[chunkNum]}));this._length=datalength;this._chunkSize=chunkSize;this.lengthKnown=true};if(typeof XMLHttpRequest!=="undefined"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var lazyArray=new LazyUint8Array;Object.defineProperty(lazyArray,"length",{get:(function(){if(!this.lengthKnown){this.cacheLength()}return this._length})});Object.defineProperty(lazyArray,"chunkSize",{get:(function(){if(!this.lengthKnown){this.cacheLength()}return this._chunkSize})});var properties={isDevice:false,contents:lazyArray}}else{var properties={isDevice:false,url:url}}var node=FS.createFile(parent,name,properties,canRead,canWrite);if(properties.contents){node.contents=properties.contents}else if(properties.url){node.contents=null;node.url=properties.url}Object.defineProperty(node,"usedBytes",{get:(function(){return this.contents.length})});var stream_ops={};var keys=Object.keys(node.stream_ops);keys.forEach((function(key){var fn=node.stream_ops[key];stream_ops[key]=function forceLoadLazyFile(){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(ERRNO_CODES.EIO)}return fn.apply(null,arguments)}}));stream_ops.read=function stream_ops_read(stream,buffer,offset,length,position){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(ERRNO_CODES.EIO)}var contents=stream.node.contents;if(position>=contents.length)return 0;var size=Math.min(contents.length-position,length);assert(size>=0);if(contents.slice){for(var i=0;i>2];path=Pointer_stringify(path);try{var stream=FS.open(path,oflag,mode);return stream.fd}catch(e){FS.handleFSError(e);return-1}}function _fopen(filename,mode){var flags;mode=Pointer_stringify(mode);if(mode[0]=="r"){if(mode.indexOf("+")!=-1){flags=2}else{flags=0}}else if(mode[0]=="w"){if(mode.indexOf("+")!=-1){flags=2}else{flags=1}flags|=64;flags|=512}else if(mode[0]=="a"){if(mode.indexOf("+")!=-1){flags=2}else{flags=1}flags|=64;flags|=1024}else{___setErrNo(ERRNO_CODES.EINVAL);return 0}var fd=_open(filename,flags,allocate([511,0,0,0],"i32",ALLOC_STACK));return fd===-1?0:FS.getPtrForStream(FS.getStream(fd))}function _mkport(){throw"TODO"}var SOCKFS={mount:(function(mount){Module["websocket"]=Module["websocket"]&&"object"===typeof Module["websocket"]?Module["websocket"]:{};Module["websocket"]._callbacks={};Module["websocket"]["on"]=(function(event,callback){if("function"===typeof callback){this._callbacks[event]=callback}return this});Module["websocket"].emit=(function(event,param){if("function"===typeof this._callbacks[event]){this._callbacks[event].call(this,param)}});return FS.createNode(null,"/",16384|511,0)}),createSocket:(function(family,type,protocol){var streaming=type==1;if(protocol){assert(streaming==(protocol==6))}var sock={family:family,type:type,protocol:protocol,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:SOCKFS.websocket_sock_ops};var name=SOCKFS.nextname();var node=FS.createNode(SOCKFS.root,name,49152,0);node.sock=sock;var stream=FS.createStream({path:name,node:node,flags:FS.modeStringToFlags("r+"),seekable:false,stream_ops:SOCKFS.stream_ops});sock.stream=stream;return sock}),getSocket:(function(fd){var stream=FS.getStream(fd);if(!stream||!FS.isSocket(stream.node.mode)){return null}return stream.node.sock}),stream_ops:{poll:(function(stream){var sock=stream.node.sock;return sock.sock_ops.poll(sock)}),ioctl:(function(stream,request,varargs){var sock=stream.node.sock;return sock.sock_ops.ioctl(sock,request,varargs)}),read:(function(stream,buffer,offset,length,position){var sock=stream.node.sock;var msg=sock.sock_ops.recvmsg(sock,length);if(!msg){return 0}buffer.set(msg.buffer,offset);return msg.buffer.length}),write:(function(stream,buffer,offset,length,position){var sock=stream.node.sock;return sock.sock_ops.sendmsg(sock,buffer,offset,length)}),close:(function(stream){var sock=stream.node.sock;sock.sock_ops.close(sock)})},nextname:(function(){if(!SOCKFS.nextname.current){SOCKFS.nextname.current=0}return"socket["+SOCKFS.nextname.current++ +"]"}),websocket_sock_ops:{createPeer:(function(sock,addr,port){var ws;if(typeof addr==="object"){ws=addr;addr=null;port=null}if(ws){if(ws._socket){addr=ws._socket.remoteAddress;port=ws._socket.remotePort}else{var result=/ws[s]?:\/\/([^:]+):(\d+)/.exec(ws.url);if(!result){throw new Error("WebSocket URL must be in the format ws(s)://address:port")}addr=result[1];port=parseInt(result[2],10)}}else{try{var runtimeConfig=Module["websocket"]&&"object"===typeof Module["websocket"];var url="ws:#".replace("#","//");if(runtimeConfig){if("string"===typeof Module["websocket"]["url"]){url=Module["websocket"]["url"]}}if(url==="ws://"||url==="wss://"){var parts=addr.split("/");url=url+parts[0]+":"+port+"/"+parts.slice(1).join("/")}var subProtocols="binary";if(runtimeConfig){if("string"===typeof Module["websocket"]["subprotocol"]){subProtocols=Module["websocket"]["subprotocol"]}}subProtocols=subProtocols.replace(/^ +| +$/g,"").split(/ *, */);var opts=ENVIRONMENT_IS_NODE?{"protocol":subProtocols.toString()}:subProtocols;var WebSocket=ENVIRONMENT_IS_NODE?require("ws"):window["WebSocket"];ws=new WebSocket(url,opts);ws.binaryType="arraybuffer"}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EHOSTUNREACH)}}var peer={addr:addr,port:port,socket:ws,dgram_send_queue:[]};SOCKFS.websocket_sock_ops.addPeer(sock,peer);SOCKFS.websocket_sock_ops.handlePeerEvents(sock,peer);if(sock.type===2&&typeof sock.sport!=="undefined"){peer.dgram_send_queue.push(new Uint8Array([255,255,255,255,"p".charCodeAt(0),"o".charCodeAt(0),"r".charCodeAt(0),"t".charCodeAt(0),(sock.sport&65280)>>8,sock.sport&255]))}return peer}),getPeer:(function(sock,addr,port){return sock.peers[addr+":"+port]}),addPeer:(function(sock,peer){sock.peers[peer.addr+":"+peer.port]=peer}),removePeer:(function(sock,peer){delete sock.peers[peer.addr+":"+peer.port]}),handlePeerEvents:(function(sock,peer){var first=true;var handleOpen=(function(){Module["websocket"].emit("open",sock.stream.fd);try{var queued=peer.dgram_send_queue.shift();while(queued){peer.socket.send(queued);queued=peer.dgram_send_queue.shift()}}catch(e){peer.socket.close()}});function handleMessage(data){assert(typeof data!=="string"&&data.byteLength!==undefined);data=new Uint8Array(data);var wasfirst=first;first=false;if(wasfirst&&data.length===10&&data[0]===255&&data[1]===255&&data[2]===255&&data[3]===255&&data[4]==="p".charCodeAt(0)&&data[5]==="o".charCodeAt(0)&&data[6]==="r".charCodeAt(0)&&data[7]==="t".charCodeAt(0)){var newport=data[8]<<8|data[9];SOCKFS.websocket_sock_ops.removePeer(sock,peer);peer.port=newport;SOCKFS.websocket_sock_ops.addPeer(sock,peer);return}sock.recv_queue.push({addr:peer.addr,port:peer.port,data:data});Module["websocket"].emit("message",sock.stream.fd)}if(ENVIRONMENT_IS_NODE){peer.socket.on("open",handleOpen);peer.socket.on("message",(function(data,flags){if(!flags.binary){return}handleMessage((new Uint8Array(data)).buffer)}));peer.socket.on("close",(function(){Module["websocket"].emit("close",sock.stream.fd)}));peer.socket.on("error",(function(error){sock.error=ERRNO_CODES.ECONNREFUSED;Module["websocket"].emit("error",[sock.stream.fd,sock.error,"ECONNREFUSED: Connection refused"])}))}else{peer.socket.onopen=handleOpen;peer.socket.onclose=(function(){Module["websocket"].emit("close",sock.stream.fd)});peer.socket.onmessage=function peer_socket_onmessage(event){handleMessage(event.data)};peer.socket.onerror=(function(error){sock.error=ERRNO_CODES.ECONNREFUSED;Module["websocket"].emit("error",[sock.stream.fd,sock.error,"ECONNREFUSED: Connection refused"])})}}),poll:(function(sock){if(sock.type===1&&sock.server){return sock.pending.length?64|1:0}var mask=0;var dest=sock.type===1?SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport):null;if(sock.recv_queue.length||!dest||dest&&dest.socket.readyState===dest.socket.CLOSING||dest&&dest.socket.readyState===dest.socket.CLOSED){mask|=64|1}if(!dest||dest&&dest.socket.readyState===dest.socket.OPEN){mask|=4}if(dest&&dest.socket.readyState===dest.socket.CLOSING||dest&&dest.socket.readyState===dest.socket.CLOSED){mask|=16}return mask}),ioctl:(function(sock,request,arg){switch(request){case 21531:var bytes=0;if(sock.recv_queue.length){bytes=sock.recv_queue[0].data.length}HEAP32[arg>>2]=bytes;return 0;default:return ERRNO_CODES.EINVAL}}),close:(function(sock){if(sock.server){try{sock.server.close()}catch(e){}sock.server=null}var peers=Object.keys(sock.peers);for(var i=0;i>0]=chr;var fd=_fileno(stream);var ret=_write(fd,_fputc.ret,1);if(ret==-1){var streamObj=FS.getStreamFromPtr(stream);if(streamObj)streamObj.error=true;return-1}else{return chr}}function _fwrite(ptr,size,nitems,stream){var bytesToWrite=nitems*size;if(bytesToWrite==0)return 0;var fd=_fileno(stream);var bytesWritten=_write(fd,ptr,bytesToWrite);if(bytesWritten==-1){var streamObj=FS.getStreamFromPtr(stream);if(streamObj)streamObj.error=true;return 0}else{return bytesWritten/size|0}}var _SItoD=true;function _putc(){return _fputc.apply(null,arguments)}function _emscripten_set_main_loop_timing(mode,value){Browser.mainLoop.timingMode=mode;Browser.mainLoop.timingValue=value;if(!Browser.mainLoop.func){return 1}if(mode==0){Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler(){setTimeout(Browser.mainLoop.runner,value)};Browser.mainLoop.method="timeout"}else if(mode==1){Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler(){Browser.requestAnimationFrame(Browser.mainLoop.runner)};Browser.mainLoop.method="rAF"}return 0}function _emscripten_set_main_loop(func,fps,simulateInfiniteLoop,arg){Module["noExitRuntime"]=true;assert(!Browser.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.");Browser.mainLoop.func=func;Browser.mainLoop.arg=arg;var thisMainLoopId=Browser.mainLoop.currentlyRunningMainloop;Browser.mainLoop.runner=function Browser_mainLoop_runner(){if(ABORT)return;if(Browser.mainLoop.queue.length>0){var start=Date.now();var blocker=Browser.mainLoop.queue.shift();blocker.func(blocker.arg);if(Browser.mainLoop.remainingBlockers){var remaining=Browser.mainLoop.remainingBlockers;var next=remaining%1==0?remaining-1:Math.floor(remaining);if(blocker.counted){Browser.mainLoop.remainingBlockers=next}else{next=next+.5;Browser.mainLoop.remainingBlockers=(8*remaining+next)/9}}console.log('main loop blocker "'+blocker.name+'" took '+(Date.now()-start)+" ms");Browser.mainLoop.updateStatus();setTimeout(Browser.mainLoop.runner,0);return}if(thisMainLoopId1&&Browser.mainLoop.currentFrameNumber%Browser.mainLoop.timingValue!=0){Browser.mainLoop.scheduler();return}if(Browser.mainLoop.method==="timeout"&&Module.ctx){Module.printErr("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!");Browser.mainLoop.method=""}Browser.mainLoop.runIter((function(){if(typeof arg!=="undefined"){Runtime.dynCall("vi",func,[arg])}else{Runtime.dynCall("v",func)}}));if(thisMainLoopId0)_emscripten_set_main_loop_timing(0,1e3/fps);else _emscripten_set_main_loop_timing(1,1);Browser.mainLoop.scheduler();if(simulateInfiniteLoop){throw"SimulateInfiniteLoop"}}var Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:(function(){Browser.mainLoop.scheduler=null;Browser.mainLoop.currentlyRunningMainloop++}),resume:(function(){Browser.mainLoop.currentlyRunningMainloop++;var timingMode=Browser.mainLoop.timingMode;var timingValue=Browser.mainLoop.timingValue;var func=Browser.mainLoop.func;Browser.mainLoop.func=null;_emscripten_set_main_loop(func,0,false,Browser.mainLoop.arg);_emscripten_set_main_loop_timing(timingMode,timingValue)}),updateStatus:(function(){if(Module["setStatus"]){var message=Module["statusMessage"]||"Please wait...";var remaining=Browser.mainLoop.remainingBlockers;var expected=Browser.mainLoop.expectedBlockers;if(remaining){if(remaining=6){var curr=leftchar>>leftbits-6&63;leftbits-=6;ret+=BASE[curr]}}if(leftbits==2){ret+=BASE[(leftchar&3)<<4];ret+=PAD+PAD}else if(leftbits==4){ret+=BASE[(leftchar&15)<<2];ret+=PAD}return ret}audio.src="data:audio/x-"+name.substr(-3)+";base64,"+encode64(byteArray);finish(audio)};audio.src=url;Browser.safeSetTimeout((function(){finish(audio)}),1e4)}else{return fail()}};Module["preloadPlugins"].push(audioPlugin);var canvas=Module["canvas"];function pointerLockChange(){Browser.pointerLock=document["pointerLockElement"]===canvas||document["mozPointerLockElement"]===canvas||document["webkitPointerLockElement"]===canvas||document["msPointerLockElement"]===canvas}if(canvas){canvas.requestPointerLock=canvas["requestPointerLock"]||canvas["mozRequestPointerLock"]||canvas["webkitRequestPointerLock"]||canvas["msRequestPointerLock"]||(function(){});canvas.exitPointerLock=document["exitPointerLock"]||document["mozExitPointerLock"]||document["webkitExitPointerLock"]||document["msExitPointerLock"]||(function(){});canvas.exitPointerLock=canvas.exitPointerLock.bind(document);document.addEventListener("pointerlockchange",pointerLockChange,false);document.addEventListener("mozpointerlockchange",pointerLockChange,false);document.addEventListener("webkitpointerlockchange",pointerLockChange,false);document.addEventListener("mspointerlockchange",pointerLockChange,false);if(Module["elementPointerLock"]){canvas.addEventListener("click",(function(ev){if(!Browser.pointerLock&&canvas.requestPointerLock){canvas.requestPointerLock();ev.preventDefault()}}),false)}}}),createContext:(function(canvas,useWebGL,setInModule,webGLContextAttributes){if(useWebGL&&Module.ctx&&canvas==Module.canvas)return Module.ctx;var ctx;var contextHandle;if(useWebGL){var contextAttributes={antialias:false,alpha:false};if(webGLContextAttributes){for(var attribute in webGLContextAttributes){contextAttributes[attribute]=webGLContextAttributes[attribute]}}contextHandle=GL.createContext(canvas,contextAttributes);if(contextHandle){ctx=GL.getContext(contextHandle).GLctx}canvas.style.backgroundColor="black"}else{ctx=canvas.getContext("2d")}if(!ctx)return null;if(setInModule){if(!useWebGL)assert(typeof GLctx==="undefined","cannot set in module if GLctx is used, but we are a non-GL context that would replace it");Module.ctx=ctx;if(useWebGL)GL.makeContextCurrent(contextHandle);Module.useWebGL=useWebGL;Browser.moduleContextCreatedCallbacks.forEach((function(callback){callback()}));Browser.init()}return ctx}),destroyContext:(function(canvas,useWebGL,setInModule){}),fullScreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullScreen:(function(lockPointer,resizeCanvas){Browser.lockPointer=lockPointer;Browser.resizeCanvas=resizeCanvas;if(typeof Browser.lockPointer==="undefined")Browser.lockPointer=true;if(typeof Browser.resizeCanvas==="undefined")Browser.resizeCanvas=false;var canvas=Module["canvas"];function fullScreenChange(){Browser.isFullScreen=false;var canvasContainer=canvas.parentNode;if((document["webkitFullScreenElement"]||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["mozFullscreenElement"]||document["fullScreenElement"]||document["fullscreenElement"]||document["msFullScreenElement"]||document["msFullscreenElement"]||document["webkitCurrentFullScreenElement"])===canvasContainer){canvas.cancelFullScreen=document["cancelFullScreen"]||document["mozCancelFullScreen"]||document["webkitCancelFullScreen"]||document["msExitFullscreen"]||document["exitFullscreen"]||(function(){});canvas.cancelFullScreen=canvas.cancelFullScreen.bind(document);if(Browser.lockPointer)canvas.requestPointerLock();Browser.isFullScreen=true;if(Browser.resizeCanvas)Browser.setFullScreenCanvasSize()}else{canvasContainer.parentNode.insertBefore(canvas,canvasContainer);canvasContainer.parentNode.removeChild(canvasContainer);if(Browser.resizeCanvas)Browser.setWindowedCanvasSize()}if(Module["onFullScreen"])Module["onFullScreen"](Browser.isFullScreen);Browser.updateCanvasDimensions(canvas)}if(!Browser.fullScreenHandlersInstalled){Browser.fullScreenHandlersInstalled=true;document.addEventListener("fullscreenchange",fullScreenChange,false);document.addEventListener("mozfullscreenchange",fullScreenChange,false);document.addEventListener("webkitfullscreenchange",fullScreenChange,false);document.addEventListener("MSFullscreenChange",fullScreenChange,false)}var canvasContainer=document.createElement("div");canvas.parentNode.insertBefore(canvasContainer,canvas);canvasContainer.appendChild(canvas);canvasContainer.requestFullScreen=canvasContainer["requestFullScreen"]||canvasContainer["mozRequestFullScreen"]||canvasContainer["msRequestFullscreen"]||(canvasContainer["webkitRequestFullScreen"]?(function(){canvasContainer["webkitRequestFullScreen"](Element["ALLOW_KEYBOARD_INPUT"])}):null);canvasContainer.requestFullScreen()}),nextRAF:0,fakeRequestAnimationFrame:(function(func){var now=Date.now();if(Browser.nextRAF===0){Browser.nextRAF=now+1e3/60}else{while(now+2>=Browser.nextRAF){Browser.nextRAF+=1e3/60}}var delay=Math.max(Browser.nextRAF-now,0);setTimeout(func,delay)}),requestAnimationFrame:function requestAnimationFrame(func){if(typeof window==="undefined"){Browser.fakeRequestAnimationFrame(func)}else{if(!window.requestAnimationFrame){window.requestAnimationFrame=window["requestAnimationFrame"]||window["mozRequestAnimationFrame"]||window["webkitRequestAnimationFrame"]||window["msRequestAnimationFrame"]||window["oRequestAnimationFrame"]||Browser.fakeRequestAnimationFrame}window.requestAnimationFrame(func)}},safeCallback:(function(func){return(function(){if(!ABORT)return func.apply(null,arguments)})}),safeRequestAnimationFrame:(function(func){return Browser.requestAnimationFrame((function(){if(!ABORT)func()}))}),safeSetTimeout:(function(func,timeout){Module["noExitRuntime"]=true;return setTimeout((function(){if(!ABORT)func()}),timeout)}),safeSetInterval:(function(func,timeout){Module["noExitRuntime"]=true;return setInterval((function(){if(!ABORT)func()}),timeout)}),getMimetype:(function(name){return{"jpg":"image/jpeg","jpeg":"image/jpeg","png":"image/png","bmp":"image/bmp","ogg":"audio/ogg","wav":"audio/wav","mp3":"audio/mpeg"}[name.substr(name.lastIndexOf(".")+1)]}),getUserMedia:(function(func){if(!window.getUserMedia){window.getUserMedia=navigator["getUserMedia"]||navigator["mozGetUserMedia"]}window.getUserMedia(func)}),getMovementX:(function(event){return event["movementX"]||event["mozMovementX"]||event["webkitMovementX"]||0}),getMovementY:(function(event){return event["movementY"]||event["mozMovementY"]||event["webkitMovementY"]||0}),getMouseWheelDelta:(function(event){var delta=0;switch(event.type){case"DOMMouseScroll":delta=event.detail;break;case"mousewheel":delta=event.wheelDelta;break;case"wheel":delta=event["deltaY"];break;default:throw"unrecognized mouse wheel event: "+event.type}return delta}),mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:(function(event){if(Browser.pointerLock){if(event.type!="mousemove"&&"mozMovementX"in event){Browser.mouseMovementX=Browser.mouseMovementY=0}else{Browser.mouseMovementX=Browser.getMovementX(event);Browser.mouseMovementY=Browser.getMovementY(event)}if(typeof SDL!="undefined"){Browser.mouseX=SDL.mouseX+Browser.mouseMovementX;Browser.mouseY=SDL.mouseY+Browser.mouseMovementY}else{Browser.mouseX+=Browser.mouseMovementX;Browser.mouseY+=Browser.mouseMovementY}}else{var rect=Module["canvas"].getBoundingClientRect();var cw=Module["canvas"].width;var ch=Module["canvas"].height;var scrollX=typeof window.scrollX!=="undefined"?window.scrollX:window.pageXOffset;var scrollY=typeof window.scrollY!=="undefined"?window.scrollY:window.pageYOffset;if(event.type==="touchstart"||event.type==="touchend"||event.type==="touchmove"){var touch=event.touch;if(touch===undefined){return}var adjustedX=touch.pageX-(scrollX+rect.left);var adjustedY=touch.pageY-(scrollY+rect.top);adjustedX=adjustedX*(cw/rect.width);adjustedY=adjustedY*(ch/rect.height);var coords={x:adjustedX,y:adjustedY};if(event.type==="touchstart"){Browser.lastTouches[touch.identifier]=coords;Browser.touches[touch.identifier]=coords}else if(event.type==="touchend"||event.type==="touchmove"){Browser.lastTouches[touch.identifier]=Browser.touches[touch.identifier];Browser.touches[touch.identifier]={x:adjustedX,y:adjustedY}}return}var x=event.pageX-(scrollX+rect.left);var y=event.pageY-(scrollY+rect.top);x=x*(cw/rect.width);y=y*(ch/rect.height);Browser.mouseMovementX=x-Browser.mouseX;Browser.mouseMovementY=y-Browser.mouseY;Browser.mouseX=x;Browser.mouseY=y}}),xhrLoad:(function(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response)}else{onerror()}};xhr.onerror=onerror;xhr.send(null)}),asyncLoad:(function(url,onload,onerror,noRunDep){Browser.xhrLoad(url,(function(arrayBuffer){assert(arrayBuffer,'Loading data file "'+url+'" failed (no arrayBuffer).');onload(new Uint8Array(arrayBuffer));if(!noRunDep)removeRunDependency("al "+url)}),(function(event){if(onerror){onerror()}else{throw'Loading data file "'+url+'" failed.'}}));if(!noRunDep)addRunDependency("al "+url)}),resizeListeners:[],updateResizeListeners:(function(){var canvas=Module["canvas"];Browser.resizeListeners.forEach((function(listener){listener(canvas.width,canvas.height)}))}),setCanvasSize:(function(width,height,noUpdates){var canvas=Module["canvas"];Browser.updateCanvasDimensions(canvas,width,height);if(!noUpdates)Browser.updateResizeListeners()}),windowedWidth:0,windowedHeight:0,setFullScreenCanvasSize:(function(){if(typeof SDL!="undefined"){var flags=HEAPU32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2];flags=flags|8388608;HEAP32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2]=flags}Browser.updateResizeListeners()}),setWindowedCanvasSize:(function(){if(typeof SDL!="undefined"){var flags=HEAPU32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2];flags=flags&~8388608;HEAP32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2]=flags}Browser.updateResizeListeners()}),updateCanvasDimensions:(function(canvas,wNative,hNative){if(wNative&&hNative){canvas.widthNative=wNative;canvas.heightNative=hNative}else{wNative=canvas.widthNative;hNative=canvas.heightNative}var w=wNative;var h=hNative;if(Module["forcedAspectRatio"]&&Module["forcedAspectRatio"]>0){if(w/h>2]=HEAP32[varargs+argIndex>>2],HEAP32[tempDoublePtr+4>>2]=HEAP32[varargs+(argIndex+4)>>2],+HEAPF64[tempDoublePtr>>3])}else if(type=="i64"){ret=[HEAP32[varargs+argIndex>>2],HEAP32[varargs+(argIndex+4)>>2]]}else{type="i32";ret=HEAP32[varargs+argIndex>>2]}argIndex+=Runtime.getNativeFieldSize(type);return ret}var ret=[];var curr,next,currArg;while(1){var startTextIndex=textIndex;curr=HEAP8[textIndex>>0];if(curr===0)break;next=HEAP8[textIndex+1>>0];if(curr==37){var flagAlwaysSigned=false;var flagLeftAlign=false;var flagAlternative=false;var flagZeroPad=false;var flagPadSign=false;flagsLoop:while(1){switch(next){case 43:flagAlwaysSigned=true;break;case 45:flagLeftAlign=true;break;case 35:flagAlternative=true;break;case 48:if(flagZeroPad){break flagsLoop}else{flagZeroPad=true;break};case 32:flagPadSign=true;break;default:break flagsLoop}textIndex++;next=HEAP8[textIndex+1>>0]}var width=0;if(next==42){width=getNextArg("i32");textIndex++;next=HEAP8[textIndex+1>>0]}else{while(next>=48&&next<=57){width=width*10+(next-48);textIndex++;next=HEAP8[textIndex+1>>0]}}var precisionSet=false,precision=-1;if(next==46){precision=0;precisionSet=true;textIndex++;next=HEAP8[textIndex+1>>0];if(next==42){precision=getNextArg("i32");textIndex++}else{while(1){var precisionChr=HEAP8[textIndex+1>>0];if(precisionChr<48||precisionChr>57)break;precision=precision*10+(precisionChr-48);textIndex++}}next=HEAP8[textIndex+1>>0]}if(precision<0){precision=6;precisionSet=false}var argSize;switch(String.fromCharCode(next)){case"h":var nextNext=HEAP8[textIndex+2>>0];if(nextNext==104){textIndex++;argSize=1}else{argSize=2}break;case"l":var nextNext=HEAP8[textIndex+2>>0];if(nextNext==108){textIndex++;argSize=8}else{argSize=4}break;case"L":case"q":case"j":argSize=8;break;case"z":case"t":case"I":argSize=4;break;default:argSize=null}if(argSize)textIndex++;next=HEAP8[textIndex+1>>0];switch(String.fromCharCode(next)){case"d":case"i":case"u":case"o":case"x":case"X":case"p":{var signed=next==100||next==105;argSize=argSize||4;var currArg=getNextArg("i"+argSize*8);var origArg=currArg;var argText;if(argSize==8){currArg=Runtime.makeBigInt(currArg[0],currArg[1],next==117)}if(argSize<=4){var limit=Math.pow(256,argSize)-1;currArg=(signed?reSign:unSign)(currArg&limit,argSize*8)}var currAbsArg=Math.abs(currArg);var prefix="";if(next==100||next==105){if(argSize==8&&i64Math)argText=i64Math.stringify(origArg[0],origArg[1],null);else argText=reSign(currArg,8*argSize,1).toString(10)}else if(next==117){if(argSize==8&&i64Math)argText=i64Math.stringify(origArg[0],origArg[1],true);else argText=unSign(currArg,8*argSize,1).toString(10);currArg=Math.abs(currArg)}else if(next==111){argText=(flagAlternative?"0":"")+currAbsArg.toString(8)}else if(next==120||next==88){prefix=flagAlternative&&currArg!=0?"0x":"";if(argSize==8&&i64Math){if(origArg[1]){argText=(origArg[1]>>>0).toString(16);var lower=(origArg[0]>>>0).toString(16);while(lower.length<8)lower="0"+lower;argText+=lower}else{argText=(origArg[0]>>>0).toString(16)}}else if(currArg<0){currArg=-currArg;argText=(currAbsArg-1).toString(16);var buffer=[];for(var i=0;i=0){if(flagAlwaysSigned){prefix="+"+prefix}else if(flagPadSign){prefix=" "+prefix}}if(argText.charAt(0)=="-"){prefix="-"+prefix;argText=argText.substr(1)}while(prefix.length+argText.lengthexponent&&exponent>=-4){next=(next==103?"f":"F").charCodeAt(0);precision-=exponent+1}else{next=(next==103?"e":"E").charCodeAt(0);precision--}effectivePrecision=Math.min(precision,20)}if(next==101||next==69){argText=currArg.toExponential(effectivePrecision);if(/[eE][-+]\d$/.test(argText)){argText=argText.slice(0,-1)+"0"+argText.slice(-1)}}else if(next==102||next==70){argText=currArg.toFixed(effectivePrecision);if(currArg===0&&__reallyNegative(currArg)){argText="-"+argText}}var parts=argText.split("e");if(isGeneral&&!flagAlternative){while(parts[0].length>1&&parts[0].indexOf(".")!=-1&&(parts[0].slice(-1)=="0"||parts[0].slice(-1)==".")){parts[0]=parts[0].slice(0,-1)}}else{if(flagAlternative&&argText.indexOf(".")==-1)parts[0]+=".";while(precision>effectivePrecision++)parts[0]+="0"}argText=parts[0]+(parts.length>1?"e"+parts[1]:"");if(next==69)argText=argText.toUpperCase();if(currArg>=0){if(flagAlwaysSigned){argText="+"+argText}else if(flagPadSign){argText=" "+argText}}}while(argText.length>0])}}else{ret=ret.concat(intArrayFromString("(null)".substr(0,argLength),true))}if(flagLeftAlign){while(argLength0){ret.push(32)}if(!flagLeftAlign)ret.push(getNextArg("i8"));break};case"n":{var ptr=getNextArg("i32*");HEAP32[ptr>>2]=ret.length;break};case"%":{ret.push(curr);break};default:{for(var i=startTextIndex;i>0])}}}textIndex+=2}else{ret.push(curr);textIndex+=1}}return ret}function _fprintf(stream,format,varargs){var result=__formatString(format,varargs);var stack=Runtime.stackSave();var ret=_fwrite(allocate(result,"i8",ALLOC_STACK),1,result.length,stream);Runtime.stackRestore(stack);return ret}function _vfprintf(s,f,va_arg){return _fprintf(s,f,HEAP32[va_arg>>2])}function _pthread_mutex_unlock(){}function _emscripten_memcpy_big(dest,src,num){HEAPU8.set(HEAPU8.subarray(src,src+num),dest);return dest}Module["_memcpy"]=_memcpy;function _sbrk(bytes){var self=_sbrk;if(!self.called){DYNAMICTOP=alignMemoryPage(DYNAMICTOP);self.called=true;assert(Runtime.dynamicAlloc);self.alloc=Runtime.dynamicAlloc;Runtime.dynamicAlloc=(function(){abort("cannot dynamically allocate, sbrk now has control")})}var ret=DYNAMICTOP;if(bytes!=0)self.alloc(bytes);return ret}Module["_memmove"]=_memmove;var LOCALE={curr:0,check:(function(locale){if(locale)locale=Pointer_stringify(locale);return locale==="C"||locale==="POSIX"||!locale})};function _calloc(n,s){var ret=_malloc(n*s);_memset(ret,0,n*s);return ret}Module["_calloc"]=_calloc;function _newlocale(mask,locale,base){if(!LOCALE.check(locale)){___setErrNo(ERRNO_CODES.ENOENT);return 0}if(!base)base=_calloc(1,4);return base}function ___errno_location(){return ___errno_state}var _BItoD=true;function _catclose(catd){return 0}function _free(){}Module["_free"]=_free;function ___cxa_free_exception(ptr){try{return _free(ptr)}catch(e){}}function ___cxa_end_catch(){if(___cxa_end_catch.rethrown){___cxa_end_catch.rethrown=false;return}asm["setThrew"](0);var ptr=EXCEPTIONS.caught.pop();if(ptr){EXCEPTIONS.decRef(EXCEPTIONS.deAdjust(ptr));EXCEPTIONS.last=0}}function ___cxa_rethrow(){___cxa_end_catch.rethrown=true;var ptr=EXCEPTIONS.caught.pop();EXCEPTIONS.last=ptr;throw ptr+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."}function ___cxa_guard_release(){}function _ungetc(c,stream){stream=FS.getStreamFromPtr(stream);if(!stream){return-1}if(c===-1){return c}c=unSign(c&255);stream.ungotten.push(c);stream.eof=false;return c}function _uselocale(locale){var old=LOCALE.curr;if(locale)LOCALE.curr=locale;return old}function _sysconf(name){switch(name){case 30:return PAGE_SIZE;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 79:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:{if(typeof navigator==="object")return navigator["hardwareConcurrency"]||1;return 1}}___setErrNo(ERRNO_CODES.EINVAL);return-1}function _recv(fd,buf,len,flags){var sock=SOCKFS.getSocket(fd);if(!sock){___setErrNo(ERRNO_CODES.EBADF);return-1}return _read(fd,buf,len)}function _pread(fildes,buf,nbyte,offset){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{var slab=HEAP8;return FS.read(stream,slab,buf,nbyte,offset)}catch(e){FS.handleFSError(e);return-1}}function _read(fildes,buf,nbyte){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{var slab=HEAP8;return FS.read(stream,slab,buf,nbyte)}catch(e){FS.handleFSError(e);return-1}}function _fread(ptr,size,nitems,stream){var bytesToRead=nitems*size;if(bytesToRead==0){return 0}var bytesRead=0;var streamObj=FS.getStreamFromPtr(stream);if(!streamObj){___setErrNo(ERRNO_CODES.EBADF);return 0}while(streamObj.ungotten.length&&bytesToRead>0){HEAP8[ptr++>>0]=streamObj.ungotten.pop();bytesToRead--;bytesRead++}var err=_read(streamObj.fd,ptr,bytesToRead);if(err==-1){if(streamObj)streamObj.error=true;return 0}bytesRead+=err;if(bytesRead>0]}}Module["_memset"]=_memset;var _BDtoILow=true;function _strerror_r(errnum,strerrbuf,buflen){if(errnum in ERRNO_MESSAGES){if(ERRNO_MESSAGES[errnum].length>buflen-1){return ___setErrNo(ERRNO_CODES.ERANGE)}else{var msg=ERRNO_MESSAGES[errnum];writeAsciiToMemory(msg,strerrbuf);return 0}}else{return ___setErrNo(ERRNO_CODES.EINVAL)}}function _strerror(errnum){if(!_strerror.buffer)_strerror.buffer=_malloc(256);_strerror_r(errnum,_strerror.buffer,256);return _strerror.buffer}function __isLeapYear(year){return year%4===0&&(year%100!==0||year%400===0)}function __arraySum(array,index){var sum=0;for(var i=0;i<=index;sum+=array[i++]);return sum}var __MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31];var __MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31];function __addDays(date,days){var newDate=new Date(date.getTime());while(days>0){var leap=__isLeapYear(newDate.getFullYear());var currentMonth=newDate.getMonth();var daysInCurrentMonth=(leap?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR)[currentMonth];if(days>daysInCurrentMonth-newDate.getDate()){days-=daysInCurrentMonth-newDate.getDate()+1;newDate.setDate(1);if(currentMonth<11){newDate.setMonth(currentMonth+1)}else{newDate.setMonth(0);newDate.setFullYear(newDate.getFullYear()+1)}}else{newDate.setDate(newDate.getDate()+days);return newDate}}return newDate}function _strftime(s,maxsize,format,tm){var tm_zone=HEAP32[tm+40>>2];var date={tm_sec:HEAP32[tm>>2],tm_min:HEAP32[tm+4>>2],tm_hour:HEAP32[tm+8>>2],tm_mday:HEAP32[tm+12>>2],tm_mon:HEAP32[tm+16>>2],tm_year:HEAP32[tm+20>>2],tm_wday:HEAP32[tm+24>>2],tm_yday:HEAP32[tm+28>>2],tm_isdst:HEAP32[tm+32>>2],tm_gmtoff:HEAP32[tm+36>>2],tm_zone:tm_zone?Pointer_stringify(tm_zone):""};var pattern=Pointer_stringify(format);var EXPANSION_RULES_1={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S"};for(var rule in EXPANSION_RULES_1){pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_1[rule])}var WEEKDAYS=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var MONTHS=["January","February","March","April","May","June","July","August","September","October","November","December"];function leadingSomething(value,digits,character){var str=typeof value==="number"?value.toString():value||"";while(str.length0?1:0}var compare;if((compare=sgn(date1.getFullYear()-date2.getFullYear()))===0){if((compare=sgn(date1.getMonth()-date2.getMonth()))===0){compare=sgn(date1.getDate()-date2.getDate())}}return compare}function getFirstWeekStartDate(janFourth){switch(janFourth.getDay()){case 0:return new Date(janFourth.getFullYear()-1,11,29);case 1:return janFourth;case 2:return new Date(janFourth.getFullYear(),0,3);case 3:return new Date(janFourth.getFullYear(),0,2);case 4:return new Date(janFourth.getFullYear(),0,1);case 5:return new Date(janFourth.getFullYear()-1,11,31);case 6:return new Date(janFourth.getFullYear()-1,11,30)}}function getWeekBasedYear(date){var thisDate=__addDays(new Date(date.tm_year+1900,0,1),date.tm_yday);var janFourthThisYear=new Date(thisDate.getFullYear(),0,4);var janFourthNextYear=new Date(thisDate.getFullYear()+1,0,4);var firstWeekStartThisYear=getFirstWeekStartDate(janFourthThisYear);var firstWeekStartNextYear=getFirstWeekStartDate(janFourthNextYear);if(compareByDay(firstWeekStartThisYear,thisDate)<=0){if(compareByDay(firstWeekStartNextYear,thisDate)<=0){return thisDate.getFullYear()+1}else{return thisDate.getFullYear()}}else{return thisDate.getFullYear()-1}}var EXPANSION_RULES_2={"%a":(function(date){return WEEKDAYS[date.tm_wday].substring(0,3)}),"%A":(function(date){return WEEKDAYS[date.tm_wday]}),"%b":(function(date){return MONTHS[date.tm_mon].substring(0,3)}),"%B":(function(date){return MONTHS[date.tm_mon]}),"%C":(function(date){var year=date.tm_year+1900;return leadingNulls(year/100|0,2)}),"%d":(function(date){return leadingNulls(date.tm_mday,2)}),"%e":(function(date){return leadingSomething(date.tm_mday,2," ")}),"%g":(function(date){return getWeekBasedYear(date).toString().substring(2)}),"%G":(function(date){return getWeekBasedYear(date)}),"%H":(function(date){return leadingNulls(date.tm_hour,2)}),"%I":(function(date){return leadingNulls(date.tm_hour<13?date.tm_hour:date.tm_hour-12,2)}),"%j":(function(date){return leadingNulls(date.tm_mday+__arraySum(__isLeapYear(date.tm_year+1900)?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,date.tm_mon-1),3)}),"%m":(function(date){return leadingNulls(date.tm_mon+1,2)}),"%M":(function(date){return leadingNulls(date.tm_min,2)}),"%n":(function(){return"\n"}),"%p":(function(date){if(date.tm_hour>0&&date.tm_hour<13){return"AM"}else{return"PM"}}),"%S":(function(date){return leadingNulls(date.tm_sec,2)}),"%t":(function(){return"\t"}),"%u":(function(date){var day=new Date(date.tm_year+1900,date.tm_mon+1,date.tm_mday,0,0,0,0);return day.getDay()||7}),"%U":(function(date){var janFirst=new Date(date.tm_year+1900,0,1);var firstSunday=janFirst.getDay()===0?janFirst:__addDays(janFirst,7-janFirst.getDay());var endDate=new Date(date.tm_year+1900,date.tm_mon,date.tm_mday);if(compareByDay(firstSunday,endDate)<0){var februaryFirstUntilEndMonth=__arraySum(__isLeapYear(endDate.getFullYear())?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,endDate.getMonth()-1)-31;var firstSundayUntilEndJanuary=31-firstSunday.getDate();var days=firstSundayUntilEndJanuary+februaryFirstUntilEndMonth+endDate.getDate();return leadingNulls(Math.ceil(days/7),2)}return compareByDay(firstSunday,janFirst)===0?"01":"00"}),"%V":(function(date){var janFourthThisYear=new Date(date.tm_year+1900,0,4);var janFourthNextYear=new Date(date.tm_year+1901,0,4);var firstWeekStartThisYear=getFirstWeekStartDate(janFourthThisYear);var firstWeekStartNextYear=getFirstWeekStartDate(janFourthNextYear);var endDate=__addDays(new Date(date.tm_year+1900,0,1),date.tm_yday);if(compareByDay(endDate,firstWeekStartThisYear)<0){return"53"}if(compareByDay(firstWeekStartNextYear,endDate)<=0){return"01"}var daysDifference;if(firstWeekStartThisYear.getFullYear()=0;off=Math.abs(off)/60;off=off/60*100+off%60;return(ahead?"+":"-")+String("0000"+off).slice(-4)}),"%Z":(function(date){return date.tm_zone}),"%%":(function(){return"%"})};for(var rule in EXPANSION_RULES_2){if(pattern.indexOf(rule)>=0){pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_2[rule](date))}}var bytes=intArrayFromString(pattern,false);if(bytes.length>maxsize){return 0}writeArrayToMemory(bytes,s);return bytes.length-1}function _strftime_l(s,maxsize,format,tm){return _strftime(s,maxsize,format,tm)}function _abort(){Module["abort"]()}function _pthread_once(ptr,func){if(!_pthread_once.seen)_pthread_once.seen={};if(ptr in _pthread_once.seen)return;Runtime.dynCall("v",func);_pthread_once.seen[ptr]=1}function _pthread_cond_wait(){return 0}var PTHREAD_SPECIFIC={};function _pthread_getspecific(key){return PTHREAD_SPECIFIC[key]||0}var _fabs=Math_abs;function _getc(){return _fgetc.apply(null,arguments)}var _abs=Math_abs;function __exit(status){Module["exit"](status)}function _exit(status){__exit(status)}function _pthread_setspecific(key,value){if(!(key in PTHREAD_SPECIFIC)){return ERRNO_CODES.EINVAL}PTHREAD_SPECIFIC[key]=value;return 0}function ___ctype_b_loc(){var me=___ctype_b_loc;if(!me.ret){var values=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,8195,8194,8194,8194,8194,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,24577,49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,55304,55304,55304,55304,55304,55304,55304,55304,55304,55304,49156,49156,49156,49156,49156,49156,49156,54536,54536,54536,54536,54536,54536,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,49156,49156,49156,49156,49156,49156,54792,54792,54792,54792,54792,54792,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,49156,49156,49156,49156,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var i16size=2;var arr=_malloc(values.length*i16size);for(var i=0;i>1]=values[i]}me.ret=allocate([arr+128*i16size],"i16*",ALLOC_NORMAL)}return me.ret}function _freelocale(locale){_free(locale)}function _malloc(bytes){var ptr=Runtime.dynamicAlloc(bytes+8);return ptr+8&4294967288}Module["_malloc"]=_malloc;function ___cxa_allocate_exception(size){return _malloc(size)}function _fmod(x,y){return x%y}function _fmodl(){return _fmod.apply(null,arguments)}function _catopen(name,oflag){return-1}function _catgets(catd,set_id,msg_id,s){return s}function _time(ptr){var ret=Date.now()/1e3|0;if(ptr){HEAP32[ptr>>2]=ret}return ret}function ___ctype_toupper_loc(){var me=___ctype_toupper_loc;if(!me.ret){var values=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255];var i32size=4;var arr=_malloc(values.length*i32size);for(var i=0;i>2]=values[i]}me.ret=allocate([arr+128*i32size],"i32*",ALLOC_NORMAL)}return me.ret}function ___cxa_guard_acquire(variable){if(!HEAP8[variable>>0]){HEAP8[variable>>0]=1;return 1}return 0}function ___ctype_tolower_loc(){var me=___ctype_tolower_loc;if(!me.ret){var values=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255];var i32size=4;var arr=_malloc(values.length*i32size);for(var i=0;i>2]=values[i]}me.ret=allocate([arr+128*i32size],"i32*",ALLOC_NORMAL)}return me.ret}function ___cxa_begin_catch(ptr){__ZSt18uncaught_exceptionv.uncaught_exception--;EXCEPTIONS.caught.push(ptr);EXCEPTIONS.addRef(EXCEPTIONS.deAdjust(ptr));return ptr}Module["_bitshift64Shl"]=_bitshift64Shl;var PTHREAD_SPECIFIC_NEXT_KEY=1;function _pthread_key_create(key,destructor){if(key==0){return ERRNO_CODES.EINVAL}HEAP32[key>>2]=PTHREAD_SPECIFIC_NEXT_KEY;PTHREAD_SPECIFIC[PTHREAD_SPECIFIC_NEXT_KEY]=0;PTHREAD_SPECIFIC_NEXT_KEY++;return 0}function _copysign(a,b){return __reallyNegative(a)===__reallyNegative(b)?a:-a}function _copysignl(){return _copysign.apply(null,arguments)}var ___dso_handle=allocate(1,"i32*",ALLOC_STATIC);FS.staticInit();__ATINIT__.unshift({func:(function(){if(!Module["noFSInit"]&&!FS.init.initialized)FS.init()})});__ATMAIN__.push({func:(function(){FS.ignorePermissions=false})});__ATEXIT__.push({func:(function(){FS.quit()})});Module["FS_createFolder"]=FS.createFolder;Module["FS_createPath"]=FS.createPath;Module["FS_createDataFile"]=FS.createDataFile;Module["FS_createPreloadedFile"]=FS.createPreloadedFile;Module["FS_createLazyFile"]=FS.createLazyFile;Module["FS_createLink"]=FS.createLink;Module["FS_createDevice"]=FS.createDevice;___errno_state=Runtime.staticAlloc(4);HEAP32[___errno_state>>2]=0;__ATINIT__.unshift({func:(function(){TTY.init()})});__ATEXIT__.push({func:(function(){TTY.shutdown()})});TTY.utf8=new Runtime.UTF8Processor;if(ENVIRONMENT_IS_NODE){var fs=require("fs");NODEFS.staticInit()}_fputc.ret=allocate([0],"i8",ALLOC_STATIC);__ATINIT__.push({func:(function(){SOCKFS.root=FS.mount(SOCKFS,{},null)})});Module["requestFullScreen"]=function Module_requestFullScreen(lockPointer,resizeCanvas){Browser.requestFullScreen(lockPointer,resizeCanvas)};Module["requestAnimationFrame"]=function Module_requestAnimationFrame(func){Browser.requestAnimationFrame(func)};Module["setCanvasSize"]=function Module_setCanvasSize(width,height,noUpdates){Browser.setCanvasSize(width,height,noUpdates)};Module["pauseMainLoop"]=function Module_pauseMainLoop(){Browser.mainLoop.pause()};Module["resumeMainLoop"]=function Module_resumeMainLoop(){Browser.mainLoop.resume()};Module["getUserMedia"]=function Module_getUserMedia(){Browser.getUserMedia()};_fgetc.ret=allocate([0],"i8",ALLOC_STATIC);STACK_BASE=STACKTOP=Runtime.alignMemory(STATICTOP);staticSealed=true;STACK_MAX=STACK_BASE+TOTAL_STACK;DYNAMIC_BASE=DYNAMICTOP=Runtime.alignMemory(STACK_MAX);assert(DYNAMIC_BASE>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;kj(p,10,0);if(!(a[p>>0]&1)){g=p+1|0;w=g;x=p+8|0;y=g}else{g=p+8|0;w=p+1|0;x=g;y=c[g>>2]|0}c[q>>2]=y;c[s>>2]=r;c[t>>2]=0;a[u>>0]=1;a[v>>0]=69;g=p+4|0;z=c[m>>2]|0;m=c[n>>2]|0;n=c[e>>2]|0;A=y;a:while(1){if(n){y=c[n+12>>2]|0;if((y|0)==(c[n+16>>2]|0))B=ec[c[(c[n>>2]|0)+36>>2]&63](n)|0;else B=c[y>>2]|0;if((B|0)==-1){c[e>>2]=0;C=1;D=0}else{C=0;D=n}}else{C=1;D=0}y=c[f>>2]|0;do if(y){E=c[y+12>>2]|0;if((E|0)==(c[y+16>>2]|0))F=ec[c[(c[y>>2]|0)+36>>2]&63](y)|0;else F=c[E>>2]|0;if((F|0)!=-1)if(C){G=y;break}else{H=y;I=A;break a}else{c[f>>2]=0;J=17;break}}else J=17;while(0);if((J|0)==17){J=0;if(C){H=0;I=A;break}else G=0}y=a[p>>0]|0;E=(y&1)==0;if(E)K=(y&255)>>>1;else K=c[g>>2]|0;if((c[q>>2]|0)==(A+K|0)){if(E){L=(y&255)>>>1;M=(y&255)>>>1}else{y=c[g>>2]|0;L=y;M=y}kj(p,L<<1,0);if(!(a[p>>0]&1))N=10;else N=(c[p>>2]&-2)+ -1|0;kj(p,N,0);if(!(a[p>>0]&1))O=w;else O=c[x>>2]|0;c[q>>2]=O+M;P=O}else P=A;y=D+12|0;E=c[y>>2]|0;Q=D+16|0;if((E|0)==(c[Q>>2]|0))R=ec[c[(c[D>>2]|0)+36>>2]&63](D)|0;else R=c[E>>2]|0;if(em(R,u,v,P,q,z,m,o,r,s,t,l)|0){H=G;I=P;break}E=c[y>>2]|0;if((E|0)==(c[Q>>2]|0)){ec[c[(c[D>>2]|0)+40>>2]&63](D)|0;n=D;A=P;continue}else{c[y>>2]=E+4;n=D;A=P;continue}}P=a[o>>0]|0;if(!(P&1))S=(P&255)>>>1;else S=c[o+4>>2]|0;if(((S|0)!=0?(a[u>>0]|0)!=0:0)?(u=c[s>>2]|0,(u-r|0)<160):0){S=c[t>>2]|0;c[s>>2]=u+4;c[u>>2]=S}h[k>>3]=+is(I,c[q>>2]|0,j);Uo(o,r,c[s>>2]|0,j);if(D){s=c[D+12>>2]|0;if((s|0)==(c[D+16>>2]|0))T=ec[c[(c[D>>2]|0)+36>>2]&63](D)|0;else T=c[s>>2]|0;if((T|0)==-1){c[e>>2]=0;U=0;V=1}else{U=D;V=0}}else{U=0;V=1}do if(H){D=c[H+12>>2]|0;if((D|0)==(c[H+16>>2]|0))W=ec[c[(c[H>>2]|0)+36>>2]&63](H)|0;else W=c[D>>2]|0;if((W|0)==-1){c[f>>2]=0;J=57;break}if(V){c[b>>2]=U;gj(p);gj(o);i=d;return}}else J=57;while(0);if((J|0)==57?!V:0){c[b>>2]=U;gj(p);gj(o);i=d;return}c[j>>2]=c[j>>2]|2;c[b>>2]=U;gj(p);gj(o);i=d;return}function Xl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];Yl(a,0,k,j,f,g,h);i=b;return}function Yl(b,d,e,f,g,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0;d=i;i=i+352|0;l=d+208|0;m=d+184|0;n=d+4|0;o=d+8|0;p=d+196|0;q=d;r=d+24|0;s=d+192|0;t=d+188|0;u=d+337|0;v=d+336|0;dm(o,g,l,m,n);c[p+0>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;kj(p,10,0);if(!(a[p>>0]&1)){g=p+1|0;w=g;x=p+8|0;y=g}else{g=p+8|0;w=p+1|0;x=g;y=c[g>>2]|0}c[q>>2]=y;c[s>>2]=r;c[t>>2]=0;a[u>>0]=1;a[v>>0]=69;g=p+4|0;z=c[m>>2]|0;m=c[n>>2]|0;n=c[e>>2]|0;A=y;a:while(1){if(n){y=c[n+12>>2]|0;if((y|0)==(c[n+16>>2]|0))B=ec[c[(c[n>>2]|0)+36>>2]&63](n)|0;else B=c[y>>2]|0;if((B|0)==-1){c[e>>2]=0;C=1;D=0}else{C=0;D=n}}else{C=1;D=0}y=c[f>>2]|0;do if(y){E=c[y+12>>2]|0;if((E|0)==(c[y+16>>2]|0))F=ec[c[(c[y>>2]|0)+36>>2]&63](y)|0;else F=c[E>>2]|0;if((F|0)!=-1)if(C){G=y;break}else{H=y;I=A;break a}else{c[f>>2]=0;J=17;break}}else J=17;while(0);if((J|0)==17){J=0;if(C){H=0;I=A;break}else G=0}y=a[p>>0]|0;E=(y&1)==0;if(E)K=(y&255)>>>1;else K=c[g>>2]|0;if((c[q>>2]|0)==(A+K|0)){if(E){L=(y&255)>>>1;M=(y&255)>>>1}else{y=c[g>>2]|0;L=y;M=y}kj(p,L<<1,0);if(!(a[p>>0]&1))N=10;else N=(c[p>>2]&-2)+ -1|0;kj(p,N,0);if(!(a[p>>0]&1))O=w;else O=c[x>>2]|0;c[q>>2]=O+M;P=O}else P=A;y=D+12|0;E=c[y>>2]|0;Q=D+16|0;if((E|0)==(c[Q>>2]|0))R=ec[c[(c[D>>2]|0)+36>>2]&63](D)|0;else R=c[E>>2]|0;if(em(R,u,v,P,q,z,m,o,r,s,t,l)|0){H=G;I=P;break}E=c[y>>2]|0;if((E|0)==(c[Q>>2]|0)){ec[c[(c[D>>2]|0)+40>>2]&63](D)|0;n=D;A=P;continue}else{c[y>>2]=E+4;n=D;A=P;continue}}P=a[o>>0]|0;if(!(P&1))S=(P&255)>>>1;else S=c[o+4>>2]|0;if(((S|0)!=0?(a[u>>0]|0)!=0:0)?(u=c[s>>2]|0,(u-r|0)<160):0){S=c[t>>2]|0;c[s>>2]=u+4;c[u>>2]=S}h[k>>3]=+hs(I,c[q>>2]|0,j);Uo(o,r,c[s>>2]|0,j);if(D){s=c[D+12>>2]|0;if((s|0)==(c[D+16>>2]|0))T=ec[c[(c[D>>2]|0)+36>>2]&63](D)|0;else T=c[s>>2]|0;if((T|0)==-1){c[e>>2]=0;U=0;V=1}else{U=D;V=0}}else{U=0;V=1}do if(H){D=c[H+12>>2]|0;if((D|0)==(c[H+16>>2]|0))W=ec[c[(c[H>>2]|0)+36>>2]&63](H)|0;else W=c[D>>2]|0;if((W|0)==-1){c[f>>2]=0;J=57;break}if(V){c[b>>2]=U;gj(p);gj(o);i=d;return}}else J=57;while(0);if((J|0)==57?!V:0){c[b>>2]=U;gj(p);gj(o);i=d;return}c[j>>2]=c[j>>2]|2;c[b>>2]=U;gj(p);gj(o);i=d;return}function Zl(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;d=i;i=i+320|0;k=d;l=d+200|0;m=d+188|0;n=d+8|0;o=d+176|0;p=d+4|0;q=d+16|0;r=d+304|0;s=d+308|0;c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;Hj(n,g);g=oq(n,8016)|0;kc[c[(c[g>>2]|0)+48>>2]&7](g,6536,6562|0,l)|0;Ni(c[n>>2]|0)|0;c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;kj(o,10,0);if(!(a[o>>0]&1)){n=o+1|0;t=n;u=o+8|0;v=n}else{n=o+8|0;t=o+1|0;u=n;v=c[n>>2]|0}c[p>>2]=v;c[r>>2]=q;c[s>>2]=0;n=o+4|0;g=c[e>>2]|0;w=v;a:while(1){if(g){v=c[g+12>>2]|0;if((v|0)==(c[g+16>>2]|0))x=ec[c[(c[g>>2]|0)+36>>2]&63](g)|0;else x=c[v>>2]|0;if((x|0)==-1){c[e>>2]=0;y=1;z=0}else{y=0;z=g}}else{y=1;z=0}v=c[f>>2]|0;do if(v){A=c[v+12>>2]|0;if((A|0)==(c[v+16>>2]|0))B=ec[c[(c[v>>2]|0)+36>>2]&63](v)|0;else B=c[A>>2]|0;if((B|0)!=-1)if(y){C=v;break}else{D=v;E=w;break a}else{c[f>>2]=0;F=17;break}}else F=17;while(0);if((F|0)==17){F=0;if(y){D=0;E=w;break}else C=0}v=a[o>>0]|0;A=(v&1)==0;if(A)G=(v&255)>>>1;else G=c[n>>2]|0;if((c[p>>2]|0)==(w+G|0)){if(A){H=(v&255)>>>1;I=(v&255)>>>1}else{v=c[n>>2]|0;H=v;I=v}kj(o,H<<1,0);if(!(a[o>>0]&1))J=10;else J=(c[o>>2]&-2)+ -1|0;kj(o,J,0);if(!(a[o>>0]&1))K=t;else K=c[u>>2]|0;c[p>>2]=K+I;L=K}else L=w;v=z+12|0;A=c[v>>2]|0;M=z+16|0;if((A|0)==(c[M>>2]|0))N=ec[c[(c[z>>2]|0)+36>>2]&63](z)|0;else N=c[A>>2]|0;if(_l(N,16,L,p,s,0,m,q,r,l)|0){D=C;E=L;break}A=c[v>>2]|0;if((A|0)==(c[M>>2]|0)){ec[c[(c[z>>2]|0)+40>>2]&63](z)|0;g=z;w=L;continue}else{c[v>>2]=A+4;g=z;w=L;continue}}kj(o,(c[p>>2]|0)-E|0,0);if(!(a[o>>0]&1))O=t;else O=c[u>>2]|0;u=Cl()|0;c[k>>2]=j;if((Bl(O,u,6576,k)|0)!=1)c[h>>2]=4;if(z){k=c[z+12>>2]|0;if((k|0)==(c[z+16>>2]|0))P=ec[c[(c[z>>2]|0)+36>>2]&63](z)|0;else P=c[k>>2]|0;if((P|0)==-1){c[e>>2]=0;Q=0;R=1}else{Q=z;R=0}}else{Q=0;R=1}do if(D){z=c[D+12>>2]|0;if((z|0)==(c[D+16>>2]|0))S=ec[c[(c[D>>2]|0)+36>>2]&63](D)|0;else S=c[z>>2]|0;if((S|0)==-1){c[f>>2]=0;F=54;break}if(R){c[b>>2]=Q;gj(o);gj(m);i=d;return}}else F=54;while(0);if((F|0)==54?!R:0){c[b>>2]=Q;gj(o);gj(m);i=d;return}c[h>>2]=c[h>>2]|2;c[b>>2]=Q;gj(o);gj(m);i=d;return}function _l(b,d,e,f,g,h,j,k,l,m){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0;n=i;o=c[f>>2]|0;p=(o|0)==(e|0);do if(p){q=(c[m+96>>2]|0)==(b|0);if(!q?(c[m+100>>2]|0)!=(b|0):0)break;c[f>>2]=e+1;a[e>>0]=q?43:45;c[g>>2]=0;r=0;i=n;return r|0}while(0);q=a[j>>0]|0;if(!(q&1))s=(q&255)>>>1;else s=c[j+4>>2]|0;if((s|0)!=0&(b|0)==(h|0)){h=c[l>>2]|0;if((h-k|0)>=160){r=0;i=n;return r|0}k=c[g>>2]|0;c[l>>2]=h+4;c[h>>2]=k;c[g>>2]=0;r=0;i=n;return r|0}k=m+104|0;h=m;while(1){if((c[h>>2]|0)==(b|0)){t=h;break}h=h+4|0;if((h|0)==(k|0)){t=k;break}}k=t-m|0;m=k>>2;if((k|0)>92){r=-1;i=n;return r|0}if((d|0)==10|(d|0)==8){if((m|0)>=(d|0)){r=-1;i=n;return r|0}}else if((d|0)==16?(k|0)>=88:0){if(p){r=-1;i=n;return r|0}if((o-e|0)>=3){r=-1;i=n;return r|0}if((a[o+ -1>>0]|0)!=48){r=-1;i=n;return r|0}c[g>>2]=0;e=a[6536+m>>0]|0;c[f>>2]=o+1;a[o>>0]=e;r=0;i=n;return r|0}e=a[6536+m>>0]|0;c[f>>2]=o+1;a[o>>0]=e;c[g>>2]=(c[g>>2]|0)+1;r=0;i=n;return r|0}function $l(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;i=i+16|0;h=g;Hj(h,d);d=oq(h,8024)|0;kc[c[(c[d>>2]|0)+32>>2]&7](d,6536,6562|0,e)|0;e=oq(h,8168)|0;a[f>>0]=ec[c[(c[e>>2]|0)+16>>2]&63](e)|0;cc[c[(c[e>>2]|0)+20>>2]&63](b,e);Ni(c[h>>2]|0)|0;i=g;return}function am(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;j=h;Hj(j,d);d=oq(j,8024)|0;kc[c[(c[d>>2]|0)+32>>2]&7](d,6536,6568|0,e)|0;e=oq(j,8168)|0;a[f>>0]=ec[c[(c[e>>2]|0)+12>>2]&63](e)|0;a[g>>0]=ec[c[(c[e>>2]|0)+16>>2]&63](e)|0;cc[c[(c[e>>2]|0)+20>>2]&63](b,e);Ni(c[j>>2]|0)|0;i=h;return}function bm(b,e,f,g,h,j,k,l,m,n,o,p){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;var q=0,r=0,s=0,t=0,u=0,v=0;q=i;if(b<<24>>24==j<<24>>24){if(!(a[e>>0]|0)){r=-1;i=q;return r|0}a[e>>0]=0;j=c[h>>2]|0;c[h>>2]=j+1;a[j>>0]=46;j=a[l>>0]|0;if(!(j&1))s=(j&255)>>>1;else s=c[l+4>>2]|0;if(!s){r=0;i=q;return r|0}s=c[n>>2]|0;if((s-m|0)>=160){r=0;i=q;return r|0}j=c[o>>2]|0;c[n>>2]=s+4;c[s>>2]=j;r=0;i=q;return r|0}if(b<<24>>24==k<<24>>24){k=a[l>>0]|0;if(!(k&1))t=(k&255)>>>1;else t=c[l+4>>2]|0;if(t){if(!(a[e>>0]|0)){r=-1;i=q;return r|0}t=c[n>>2]|0;if((t-m|0)>=160){r=0;i=q;return r|0}k=c[o>>2]|0;c[n>>2]=t+4;c[t>>2]=k;c[o>>2]=0;r=0;i=q;return r|0}}k=p+32|0;t=p;while(1){if((a[t>>0]|0)==b<<24>>24){u=t;break}t=t+1|0;if((t|0)==(k|0)){u=k;break}}k=u-p|0;if((k|0)>31){r=-1;i=q;return r|0}p=a[6536+k>>0]|0;if((k|0)==23|(k|0)==22){a[f>>0]=80;u=c[h>>2]|0;c[h>>2]=u+1;a[u>>0]=p;r=0;i=q;return r|0}else if((k|0)==24|(k|0)==25){u=c[h>>2]|0;if((u|0)!=(g|0)?(d[u+ -1>>0]&95|0)!=(d[f>>0]&127|0):0){r=-1;i=q;return r|0}c[h>>2]=u+1;a[u>>0]=p;r=0;i=q;return r|0}else{u=p&95;if((u|0)==(a[f>>0]|0)?(a[f>>0]=u|128,(a[e>>0]|0)!=0):0){a[e>>0]=0;e=a[l>>0]|0;if(!(e&1))v=(e&255)>>>1;else v=c[l+4>>2]|0;if((v|0)!=0?(v=c[n>>2]|0,(v-m|0)<160):0){m=c[o>>2]|0;c[n>>2]=v+4;c[v>>2]=m}}m=c[h>>2]|0;c[h>>2]=m+1;a[m>>0]=p;if((k|0)>21){r=0;i=q;return r|0}c[o>>2]=(c[o>>2]|0)+1;r=0;i=q;return r|0}return 0}function cm(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;g=f;Hj(g,b);b=oq(g,8016)|0;kc[c[(c[b>>2]|0)+48>>2]&7](b,6536,6562|0,d)|0;d=oq(g,8176)|0;c[e>>2]=ec[c[(c[d>>2]|0)+16>>2]&63](d)|0;cc[c[(c[d>>2]|0)+20>>2]&63](a,d);Ni(c[g>>2]|0)|0;i=f;return}function dm(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;i=i+16|0;h=g;Hj(h,b);b=oq(h,8016)|0;kc[c[(c[b>>2]|0)+48>>2]&7](b,6536,6568|0,d)|0;d=oq(h,8176)|0;c[e>>2]=ec[c[(c[d>>2]|0)+12>>2]&63](d)|0;c[f>>2]=ec[c[(c[d>>2]|0)+16>>2]&63](d)|0;cc[c[(c[d>>2]|0)+20>>2]&63](a,d);Ni(c[h>>2]|0)|0;i=g;return}function em(b,e,f,g,h,j,k,l,m,n,o,p){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;var q=0,r=0,s=0,t=0,u=0,v=0;q=i;if((b|0)==(j|0)){if(!(a[e>>0]|0)){r=-1;i=q;return r|0}a[e>>0]=0;j=c[h>>2]|0;c[h>>2]=j+1;a[j>>0]=46;j=a[l>>0]|0;if(!(j&1))s=(j&255)>>>1;else s=c[l+4>>2]|0;if(!s){r=0;i=q;return r|0}s=c[n>>2]|0;if((s-m|0)>=160){r=0;i=q;return r|0}j=c[o>>2]|0;c[n>>2]=s+4;c[s>>2]=j;r=0;i=q;return r|0}if((b|0)==(k|0)){k=a[l>>0]|0;if(!(k&1))t=(k&255)>>>1;else t=c[l+4>>2]|0;if(t){if(!(a[e>>0]|0)){r=-1;i=q;return r|0}t=c[n>>2]|0;if((t-m|0)>=160){r=0;i=q;return r|0}k=c[o>>2]|0;c[n>>2]=t+4;c[t>>2]=k;c[o>>2]=0;r=0;i=q;return r|0}}k=p+128|0;t=p;while(1){if((c[t>>2]|0)==(b|0)){u=t;break}t=t+4|0;if((t|0)==(k|0)){u=k;break}}k=u-p|0;p=k>>2;if((k|0)>124){r=-1;i=q;return r|0}u=a[6536+p>>0]|0;if((p|0)==24|(p|0)==25){t=c[h>>2]|0;if((t|0)!=(g|0)?(d[t+ -1>>0]&95|0)!=(d[f>>0]&127|0):0){r=-1;i=q;return r|0}c[h>>2]=t+1;a[t>>0]=u;r=0;i=q;return r|0}else if(!((p|0)==23|(p|0)==22)){p=u&95;if((p|0)==(a[f>>0]|0)?(a[f>>0]=p|128,(a[e>>0]|0)!=0):0){a[e>>0]=0;e=a[l>>0]|0;if(!(e&1))v=(e&255)>>>1;else v=c[l+4>>2]|0;if((v|0)!=0?(v=c[n>>2]|0,(v-m|0)<160):0){m=c[o>>2]|0;c[n>>2]=v+4;c[v>>2]=m}}}else a[f>>0]=80;f=c[h>>2]|0;c[h>>2]=f+1;a[f>>0]=u;if((k|0)>84){r=0;i=q;return r|0}c[o>>2]=(c[o>>2]|0)+1;r=0;i=q;return r|0}function fm(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function gm(a){a=a|0;return}function hm(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;j=i;i=i+32|0;k=j+20|0;l=j+16|0;m=j+12|0;n=j;if(!(c[f+4>>2]&1)){o=c[(c[d>>2]|0)+24>>2]|0;c[l>>2]=c[e>>2];p=h&1;c[k+0>>2]=c[l+0>>2];mc[o&15](b,d,k,f,g,p);i=j;return}Hj(m,f);f=oq(m,8168)|0;Ni(c[m>>2]|0)|0;m=c[f>>2]|0;if(h)cc[c[m+24>>2]&63](n,f);else cc[c[m+28>>2]&63](n,f);f=a[n>>0]|0;if(!(f&1)){m=n+1|0;q=m;r=m;s=n+8|0}else{m=n+8|0;q=c[m>>2]|0;r=n+1|0;s=m}m=n+4|0;h=f;f=q;while(1){if(!(h&1)){t=r;u=(h&255)>>>1}else{t=c[s>>2]|0;u=c[m>>2]|0}if((f|0)==(t+u|0))break;q=a[f>>0]|0;p=c[e>>2]|0;do if(p){g=p+24|0;k=c[g>>2]|0;if((k|0)!=(c[p+28>>2]|0)){c[g>>2]=k+1;a[k>>0]=q;break}if((nc[c[(c[p>>2]|0)+52>>2]&15](p,q&255)|0)==-1)c[e>>2]=0}while(0);h=a[n>>0]|0;f=f+1|0}c[b>>2]=c[e>>2];gj(n);i=j;return}function im(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;i=i+64|0;j=d;k=d+20|0;l=d+28|0;m=d+40|0;n=d+12|0;o=d+4|0;p=d+8|0;q=d+16|0;a[k+0>>0]=a[6816]|0;a[k+1>>0]=a[6817]|0;a[k+2>>0]=a[6818]|0;a[k+3>>0]=a[6819]|0;a[k+4>>0]=a[6820]|0;a[k+5>>0]=a[6821]|0;jm(k+1|0,6720,1,c[f+4>>2]|0);r=Cl()|0;c[j>>2]=h;h=l+(km(l,12,r,k,j)|0)|0;k=lm(l,h,f)|0;Hj(p,f);mm(l,k,h,m,n,o,p);Ni(c[p>>2]|0)|0;c[q>>2]=c[e>>2];e=c[n>>2]|0;n=c[o>>2]|0;c[j+0>>2]=c[q+0>>2];nm(b,j,m,e,n,f,g);i=d;return}function jm(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;if(!(e&2048))g=b;else{a[b>>0]=43;g=b+1|0}if(!(e&512))h=g;else{a[g>>0]=35;h=g+1|0}g=a[c>>0]|0;if(!(g<<24>>24))j=h;else{b=c;c=h;h=g;while(1){b=b+1|0;g=c+1|0;a[c>>0]=h;h=a[b>>0]|0;if(!(h<<24>>24)){j=g;break}else c=g}}c=e&74;if((c|0)==64){a[j>>0]=111;i=f;return}else if((c|0)==8)if(!(e&16384)){a[j>>0]=120;i=f;return}else{a[j>>0]=88;i=f;return}else if(d){a[j>>0]=100;i=f;return}else{a[j>>0]=117;i=f;return}}function km(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;i=i+16|0;h=g;c[h>>2]=f;f=Za(d|0)|0;d=Gu(a,b,e,h)|0;if(!f){i=g;return d|0}Za(f|0)|0;i=g;return d|0}function lm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;g=c[e+4>>2]&176;do if((g|0)==32)h=d;else if((g|0)==16){e=a[b>>0]|0;if(e<<24>>24==43|e<<24>>24==45){h=b+1|0;break}if((d-b|0)>1&e<<24>>24==48?(e=a[b+1>>0]|0,e<<24>>24==88|e<<24>>24==120):0)h=b+2|0;else j=7}else j=7;while(0);if((j|0)==7)h=b;i=f;return h|0}function mm(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;k=i;i=i+16|0;l=k;m=oq(j,8024)|0;n=oq(j,8168)|0;cc[c[(c[n>>2]|0)+20>>2]&63](l,n);j=a[l>>0]|0;if(!(j&1))o=(j&255)>>>1;else o=c[l+4>>2]|0;if(o){c[h>>2]=f;o=a[b>>0]|0;if(o<<24>>24==43|o<<24>>24==45){j=nc[c[(c[m>>2]|0)+28>>2]&15](m,o)|0;o=c[h>>2]|0;c[h>>2]=o+1;a[o>>0]=j;p=b+1|0}else p=b;if(((e-p|0)>1?(a[p>>0]|0)==48:0)?(j=p+1|0,o=a[j>>0]|0,o<<24>>24==88|o<<24>>24==120):0){o=nc[c[(c[m>>2]|0)+28>>2]&15](m,48)|0;q=c[h>>2]|0;c[h>>2]=q+1;a[q>>0]=o;o=nc[c[(c[m>>2]|0)+28>>2]&15](m,a[j>>0]|0)|0;j=c[h>>2]|0;c[h>>2]=j+1;a[j>>0]=o;r=p+2|0}else r=p;if((r|0)!=(e|0)?(p=e+ -1|0,p>>>0>r>>>0):0){o=r;j=p;do{p=a[o>>0]|0;a[o>>0]=a[j>>0]|0;a[j>>0]=p;o=o+1|0;j=j+ -1|0}while(o>>>0>>0)}j=ec[c[(c[n>>2]|0)+16>>2]&63](n)|0;if(r>>>0>>0){n=l+1|0;o=l+4|0;p=l+8|0;q=0;s=0;t=r;while(1){u=(a[l>>0]&1)==0;if((a[(u?n:c[p>>2]|0)+s>>0]|0)!=0?(q|0)==(a[(u?n:c[p>>2]|0)+s>>0]|0):0){u=c[h>>2]|0;c[h>>2]=u+1;a[u>>0]=j;u=a[l>>0]|0;if(!(u&1))v=(u&255)>>>1;else v=c[o>>2]|0;w=0;x=(s>>>0<(v+ -1|0)>>>0&1)+s|0}else{w=q;x=s}u=nc[c[(c[m>>2]|0)+28>>2]&15](m,a[t>>0]|0)|0;y=c[h>>2]|0;c[h>>2]=y+1;a[y>>0]=u;t=t+1|0;if(t>>>0>=e>>>0)break;else{q=w+1|0;s=x}}}x=f+(r-b)|0;r=c[h>>2]|0;if((x|0)!=(r|0)?(s=r+ -1|0,s>>>0>x>>>0):0){r=x;x=s;do{s=a[r>>0]|0;a[r>>0]=a[x>>0]|0;a[x>>0]=s;r=r+1|0;x=x+ -1|0}while(r>>>0>>0)}}else{kc[c[(c[m>>2]|0)+32>>2]&7](m,b,e,f)|0;c[h>>2]=f+(e-b)}if((d|0)==(e|0)){z=c[h>>2]|0;c[g>>2]=z;gj(l);i=k;return}else{z=f+(d-b)|0;c[g>>2]=z;gj(l);i=k;return}}function nm(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;k=i;i=i+16|0;l=k;m=c[d>>2]|0;if(!m){c[b>>2]=0;i=k;return}n=g;g=e;o=n-g|0;p=h+12|0;h=c[p>>2]|0;q=(h|0)>(o|0)?h-o|0:0;o=f;h=o-g|0;if((h|0)>0?(_b[c[(c[m>>2]|0)+48>>2]&31](m,e,h)|0)!=(h|0):0){c[d>>2]=0;c[b>>2]=0;i=k;return}do if((q|0)>0){ej(l,q,j);if(!(a[l>>0]&1))r=l+1|0;else r=c[l+8>>2]|0;if((_b[c[(c[m>>2]|0)+48>>2]&31](m,r,q)|0)==(q|0)){gj(l);break}c[d>>2]=0;c[b>>2]=0;gj(l);i=k;return}while(0);l=n-o|0;if((l|0)>0?(_b[c[(c[m>>2]|0)+48>>2]&31](m,f,l)|0)!=(l|0):0){c[d>>2]=0;c[b>>2]=0;i=k;return}c[p>>2]=0;c[b>>2]=m;i=k;return}function om(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;b=i;i=i+96|0;j=b;k=b+8|0;l=b+32|0;m=b+54|0;n=b+16|0;o=b+24|0;p=b+20|0;q=b+28|0;r=k;c[r>>2]=37;c[r+4>>2]=0;jm(k+1|0,6728,1,c[e+4>>2]|0);r=Cl()|0;s=j;c[s>>2]=g;c[s+4>>2]=h;h=l+(km(l,22,r,k,j)|0)|0;k=lm(l,h,e)|0;Hj(p,e);mm(l,k,h,m,n,o,p);Ni(c[p>>2]|0)|0;c[q>>2]=c[d>>2];d=c[n>>2]|0;n=c[o>>2]|0;c[j+0>>2]=c[q+0>>2];nm(a,j,m,d,n,e,f);i=b;return}function pm(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;i=i+64|0;j=d;k=d+20|0;l=d+28|0;m=d+40|0;n=d+12|0;o=d+4|0;p=d+8|0;q=d+16|0;a[k+0>>0]=a[6816]|0;a[k+1>>0]=a[6817]|0;a[k+2>>0]=a[6818]|0;a[k+3>>0]=a[6819]|0;a[k+4>>0]=a[6820]|0;a[k+5>>0]=a[6821]|0;jm(k+1|0,6720,0,c[f+4>>2]|0);r=Cl()|0;c[j>>2]=h;h=l+(km(l,12,r,k,j)|0)|0;k=lm(l,h,f)|0;Hj(p,f);mm(l,k,h,m,n,o,p);Ni(c[p>>2]|0)|0;c[q>>2]=c[e>>2];e=c[n>>2]|0;n=c[o>>2]|0;c[j+0>>2]=c[q+0>>2];nm(b,j,m,e,n,f,g);i=d;return}function qm(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;b=i;i=i+112|0;j=b;k=b+8|0;l=b+32|0;m=b+55|0;n=b+16|0;o=b+24|0;p=b+20|0;q=b+28|0;r=k;c[r>>2]=37;c[r+4>>2]=0;jm(k+1|0,6728,0,c[e+4>>2]|0);r=Cl()|0;s=j;c[s>>2]=g;c[s+4>>2]=h;h=l+(km(l,23,r,k,j)|0)|0;k=lm(l,h,e)|0;Hj(p,e);mm(l,k,h,m,n,o,p);Ni(c[p>>2]|0)|0;c[q>>2]=c[d>>2];d=c[n>>2]|0;n=c[o>>2]|0;c[j+0>>2]=c[q+0>>2];nm(a,j,m,d,n,e,f);i=b;return}function rm(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=+g;var j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;b=i;i=i+144|0;j=b+8|0;l=b;m=b+44|0;n=b+36|0;o=b+74|0;p=b+20|0;q=b+32|0;r=b+28|0;s=b+24|0;t=b+40|0;u=l;c[u>>2]=37;c[u+4>>2]=0;u=sm(l+1|0,6736,c[e+4>>2]|0)|0;c[n>>2]=m;v=Cl()|0;if(u){c[j>>2]=c[e+8>>2];u=j+4|0;h[k>>3]=g;c[u>>2]=c[k>>2];c[u+4>>2]=c[k+4>>2];w=km(m,30,v,l,j)|0}else{h[k>>3]=g;c[j>>2]=c[k>>2];c[j+4>>2]=c[k+4>>2];w=km(m,30,v,l,j)|0}if((w|0)>29){v=Cl()|0;c[j>>2]=c[e+8>>2];u=j+4|0;h[k>>3]=g;c[u>>2]=c[k>>2];c[u+4>>2]=c[k+4>>2];u=tm(n,v,l,j)|0;l=c[n>>2]|0;if(!l)eu();else{x=l;y=l;z=u}}else{x=c[n>>2]|0;y=0;z=w}w=x+z|0;n=lm(x,w,e)|0;if((x|0)!=(m|0)){u=fu(z<<1)|0;if(!u)eu();else{A=x;B=u;C=u}}else{A=m;B=0;C=o}Hj(r,e);um(A,n,w,C,p,q,r);Ni(c[r>>2]|0)|0;c[t>>2]=c[d>>2];r=c[p>>2]|0;p=c[q>>2]|0;c[j+0>>2]=c[t+0>>2];nm(s,j,C,r,p,e,f);f=c[s>>2]|0;c[d>>2]=f;c[a>>2]=f;if(B)gu(B);if(!y){i=b;return}gu(y);i=b;return}function sm(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;if(!(d&2048))f=b;else{a[b>>0]=43;f=b+1|0}if(!(d&1024))g=f;else{a[f>>0]=35;g=f+1|0}f=d&260;b=d>>>14;d=(f|0)==260;if(d){h=g;j=0}else{a[g>>0]=46;a[g+1>>0]=42;h=g+2|0;j=1}g=a[c>>0]|0;if(!(g<<24>>24))k=h;else{l=c;c=h;h=g;while(1){l=l+1|0;g=c+1|0;a[c>>0]=h;h=a[l>>0]|0;if(!(h<<24>>24)){k=g;break}else c=g}}do if((f|0)==256)if(!(b&1)){a[k>>0]=101;break}else{a[k>>0]=69;break}else if((f|0)==4)if(!(b&1)){a[k>>0]=102;break}else{a[k>>0]=70;break}else{c=(b&1|0)!=0;if(d)if(c){a[k>>0]=65;break}else{a[k>>0]=97;break}else if(c){a[k>>0]=71;break}else{a[k>>0]=103;break}}while(0);i=e;return j|0}function tm(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;g=f;c[g>>2]=e;e=Za(b|0)|0;b=Xs(a,d,g)|0;if(!e){i=f;return b|0}Za(e|0)|0;i=f;return b|0}function um(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;k=i;i=i+16|0;l=k;m=oq(j,8024)|0;n=oq(j,8168)|0;cc[c[(c[n>>2]|0)+20>>2]&63](l,n);c[h>>2]=f;j=a[b>>0]|0;if(j<<24>>24==43|j<<24>>24==45){o=nc[c[(c[m>>2]|0)+28>>2]&15](m,j)|0;j=c[h>>2]|0;c[h>>2]=j+1;a[j>>0]=o;p=b+1|0}else p=b;o=e;a:do if(((o-p|0)>1?(a[p>>0]|0)==48:0)?(j=p+1|0,q=a[j>>0]|0,q<<24>>24==88|q<<24>>24==120):0){q=nc[c[(c[m>>2]|0)+28>>2]&15](m,48)|0;r=c[h>>2]|0;c[h>>2]=r+1;a[r>>0]=q;q=p+2|0;r=nc[c[(c[m>>2]|0)+28>>2]&15](m,a[j>>0]|0)|0;j=c[h>>2]|0;c[h>>2]=j+1;a[j>>0]=r;if(q>>>0>>0){r=q;while(1){j=a[r>>0]|0;s=r+1|0;if(!(Ms(j<<24>>24,Cl()|0)|0)){t=q;u=r;break a}if(s>>>0>>0)r=s;else{t=q;u=s;break}}}else{t=q;u=q}}else v=4;while(0);b:do if((v|0)==4)if(p>>>0>>0){r=p;while(1){s=a[r>>0]|0;j=r+1|0;if(!(Ls(s<<24>>24,Cl()|0)|0)){t=p;u=r;break b}if(j>>>0>>0)r=j;else{t=p;u=j;break}}}else{t=p;u=p}while(0);p=a[l>>0]|0;if(!(p&1))w=(p&255)>>>1;else w=c[l+4>>2]|0;if(w){if((t|0)!=(u|0)?(w=u+ -1|0,w>>>0>t>>>0):0){p=t;v=w;do{w=a[p>>0]|0;a[p>>0]=a[v>>0]|0;a[v>>0]=w;p=p+1|0;v=v+ -1|0}while(p>>>0>>0)}v=ec[c[(c[n>>2]|0)+16>>2]&63](n)|0;if(t>>>0>>0){p=l+1|0;w=l+4|0;r=l+8|0;q=0;j=0;s=t;while(1){x=(a[l>>0]&1)==0;if((a[(x?p:c[r>>2]|0)+j>>0]|0)>0?(q|0)==(a[(x?p:c[r>>2]|0)+j>>0]|0):0){x=c[h>>2]|0;c[h>>2]=x+1;a[x>>0]=v;x=a[l>>0]|0;if(!(x&1))y=(x&255)>>>1;else y=c[w>>2]|0;z=0;A=(j>>>0<(y+ -1|0)>>>0&1)+j|0}else{z=q;A=j}x=nc[c[(c[m>>2]|0)+28>>2]&15](m,a[s>>0]|0)|0;B=c[h>>2]|0;c[h>>2]=B+1;a[B>>0]=x;s=s+1|0;if(s>>>0>=u>>>0)break;else{q=z+1|0;j=A}}}A=f+(t-b)|0;j=c[h>>2]|0;if((A|0)!=(j|0)?(z=j+ -1|0,z>>>0>A>>>0):0){j=A;A=z;do{z=a[j>>0]|0;a[j>>0]=a[A>>0]|0;a[A>>0]=z;j=j+1|0;A=A+ -1|0}while(j>>>0>>0)}}else{kc[c[(c[m>>2]|0)+32>>2]&7](m,t,u,c[h>>2]|0)|0;c[h>>2]=(c[h>>2]|0)+(u-t)}c:do if(u>>>0>>0){t=u;while(1){A=a[t>>0]|0;if(A<<24>>24==46)break;j=nc[c[(c[m>>2]|0)+28>>2]&15](m,A)|0;A=c[h>>2]|0;c[h>>2]=A+1;a[A>>0]=j;j=t+1|0;if(j>>>0>>0)t=j;else{C=j;break c}}j=ec[c[(c[n>>2]|0)+12>>2]&63](n)|0;A=c[h>>2]|0;c[h>>2]=A+1;a[A>>0]=j;C=t+1|0}else C=u;while(0);kc[c[(c[m>>2]|0)+32>>2]&7](m,C,e,c[h>>2]|0)|0;m=(c[h>>2]|0)+(o-C)|0;c[h>>2]=m;if((d|0)==(e|0)){D=m;c[g>>2]=D;gj(l);i=k;return}D=f+(d-b)|0;c[g>>2]=D;gj(l);i=k;return}function vm(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=+g;var j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;b=i;i=i+144|0;j=b+8|0;l=b;m=b+44|0;n=b+36|0;o=b+74|0;p=b+20|0;q=b+32|0;r=b+28|0;s=b+24|0;t=b+40|0;u=l;c[u>>2]=37;c[u+4>>2]=0;u=sm(l+1|0,6744,c[e+4>>2]|0)|0;c[n>>2]=m;v=Cl()|0;if(u){c[j>>2]=c[e+8>>2];w=j+4|0;h[k>>3]=g;c[w>>2]=c[k>>2];c[w+4>>2]=c[k+4>>2];x=km(m,30,v,l,j)|0}else{h[k>>3]=g;c[j>>2]=c[k>>2];c[j+4>>2]=c[k+4>>2];x=km(m,30,v,l,j)|0}if((x|0)>29){v=Cl()|0;if(u){c[j>>2]=c[e+8>>2];u=j+4|0;h[k>>3]=g;c[u>>2]=c[k>>2];c[u+4>>2]=c[k+4>>2];y=tm(n,v,l,j)|0}else{h[k>>3]=g;c[j>>2]=c[k>>2];c[j+4>>2]=c[k+4>>2];y=tm(n,v,l,j)|0}l=c[n>>2]|0;if(!l)eu();else{z=l;A=l;B=y}}else{z=c[n>>2]|0;A=0;B=x}x=z+B|0;n=lm(z,x,e)|0;if((z|0)!=(m|0)){y=fu(B<<1)|0;if(!y)eu();else{C=z;D=y;E=y}}else{C=m;D=0;E=o}Hj(r,e);um(C,n,x,E,p,q,r);Ni(c[r>>2]|0)|0;c[t>>2]=c[d>>2];d=c[p>>2]|0;p=c[q>>2]|0;c[j+0>>2]=c[t+0>>2];nm(s,j,E,d,p,e,f);c[a>>2]=c[s>>2];gu(D);gu(A);i=b;return}function wm(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;i=i+80|0;j=d;k=d+72|0;l=d+52|0;m=d+12|0;n=d+8|0;o=d+4|0;a[k+0>>0]=a[6824]|0;a[k+1>>0]=a[6825]|0;a[k+2>>0]=a[6826]|0;a[k+3>>0]=a[6827]|0;a[k+4>>0]=a[6828]|0;a[k+5>>0]=a[6829]|0;p=Cl()|0;c[j>>2]=h;h=km(l,20,p,k,j)|0;k=l+h|0;p=lm(l,k,f)|0;Hj(n,f);q=oq(n,8024)|0;Ni(c[n>>2]|0)|0;kc[c[(c[q>>2]|0)+32>>2]&7](q,l,k,m)|0;q=m+h|0;if((p|0)==(k|0))r=q;else r=m+(p-l)|0;c[o>>2]=c[e>>2];c[j+0>>2]=c[o+0>>2];nm(b,j,m,r,q,f,g);i=d;return}function xm(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function ym(a){a=a|0;return}function zm(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var 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;j=i;i=i+32|0;k=j+20|0;l=j+16|0;m=j+12|0;n=j;if(!(c[f+4>>2]&1)){o=c[(c[d>>2]|0)+24>>2]|0;c[l>>2]=c[e>>2];p=h&1;c[k+0>>2]=c[l+0>>2];mc[o&15](b,d,k,f,g,p);i=j;return}Hj(m,f);f=oq(m,8176)|0;Ni(c[m>>2]|0)|0;m=c[f>>2]|0;if(h)cc[c[m+24>>2]&63](n,f);else cc[c[m+28>>2]&63](n,f);f=a[n>>0]|0;if(!(f&1)){m=n+4|0;q=m;r=n+8|0;s=m}else{m=n+8|0;q=c[m>>2]|0;r=m;s=n+4|0}m=f;f=q;while(1){if(!(m&1)){t=s;u=(m&255)>>>1}else{t=c[r>>2]|0;u=c[s>>2]|0}if((f|0)==(t+(u<<2)|0))break;q=c[f>>2]|0;h=c[e>>2]|0;if(h){p=h+24|0;g=c[p>>2]|0;if((g|0)==(c[h+28>>2]|0))v=nc[c[(c[h>>2]|0)+52>>2]&15](h,q)|0;else{c[p>>2]=g+4;c[g>>2]=q;v=q}if((v|0)==-1)c[e>>2]=0}m=a[n>>0]|0;f=f+4|0}c[b>>2]=c[e>>2];vj(n);i=j;return}function Am(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;i=i+128|0;j=d;k=d+104|0;l=d+112|0;m=d+8|0;n=d+4|0;o=d+96|0;p=d+92|0;q=d+100|0;a[k+0>>0]=a[6816]|0;a[k+1>>0]=a[6817]|0;a[k+2>>0]=a[6818]|0;a[k+3>>0]=a[6819]|0;a[k+4>>0]=a[6820]|0;a[k+5>>0]=a[6821]|0;jm(k+1|0,6720,1,c[f+4>>2]|0);r=Cl()|0;c[j>>2]=h;h=l+(km(l,12,r,k,j)|0)|0;k=lm(l,h,f)|0;Hj(p,f);Bm(l,k,h,m,n,o,p);Ni(c[p>>2]|0)|0;c[q>>2]=c[e>>2];e=c[n>>2]|0;n=c[o>>2]|0;c[j+0>>2]=c[q+0>>2];Cm(b,j,m,e,n,f,g);i=d;return}function Bm(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;k=i;i=i+16|0;l=k;m=oq(j,8016)|0;n=oq(j,8176)|0;cc[c[(c[n>>2]|0)+20>>2]&63](l,n);j=a[l>>0]|0;if(!(j&1))o=(j&255)>>>1;else o=c[l+4>>2]|0;if(o){c[h>>2]=f;o=a[b>>0]|0;if(o<<24>>24==43|o<<24>>24==45){j=nc[c[(c[m>>2]|0)+44>>2]&15](m,o)|0;o=c[h>>2]|0;c[h>>2]=o+4;c[o>>2]=j;p=b+1|0}else p=b;if(((e-p|0)>1?(a[p>>0]|0)==48:0)?(j=p+1|0,o=a[j>>0]|0,o<<24>>24==88|o<<24>>24==120):0){o=nc[c[(c[m>>2]|0)+44>>2]&15](m,48)|0;q=c[h>>2]|0;c[h>>2]=q+4;c[q>>2]=o;o=nc[c[(c[m>>2]|0)+44>>2]&15](m,a[j>>0]|0)|0;j=c[h>>2]|0;c[h>>2]=j+4;c[j>>2]=o;r=p+2|0}else r=p;if((r|0)!=(e|0)?(p=e+ -1|0,p>>>0>r>>>0):0){o=r;j=p;do{p=a[o>>0]|0;a[o>>0]=a[j>>0]|0;a[j>>0]=p;o=o+1|0;j=j+ -1|0}while(o>>>0>>0)}j=ec[c[(c[n>>2]|0)+16>>2]&63](n)|0;if(r>>>0>>0){n=l+1|0;o=l+4|0;p=l+8|0;q=0;s=0;t=r;while(1){u=(a[l>>0]&1)==0;if((a[(u?n:c[p>>2]|0)+s>>0]|0)!=0?(q|0)==(a[(u?n:c[p>>2]|0)+s>>0]|0):0){u=c[h>>2]|0;c[h>>2]=u+4;c[u>>2]=j;u=a[l>>0]|0;if(!(u&1))v=(u&255)>>>1;else v=c[o>>2]|0;w=0;x=(s>>>0<(v+ -1|0)>>>0&1)+s|0}else{w=q;x=s}u=nc[c[(c[m>>2]|0)+44>>2]&15](m,a[t>>0]|0)|0;y=c[h>>2]|0;z=y+4|0;c[h>>2]=z;c[y>>2]=u;t=t+1|0;if(t>>>0>=e>>>0){A=z;break}else{q=w+1|0;s=x}}}else A=c[h>>2]|0;x=f+(r-b<<2)|0;if((x|0)!=(A|0)?(r=A+ -4|0,r>>>0>x>>>0):0){s=x;x=r;do{r=c[s>>2]|0;c[s>>2]=c[x>>2];c[x>>2]=r;s=s+4|0;x=x+ -4|0}while(s>>>0>>0);B=A}else B=A}else{kc[c[(c[m>>2]|0)+48>>2]&7](m,b,e,f)|0;m=f+(e-b<<2)|0;c[h>>2]=m;B=m}if((d|0)==(e|0)){C=B;c[g>>2]=C;gj(l);i=k;return}C=f+(d-b<<2)|0;c[g>>2]=C;gj(l);i=k;return}function Cm(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;k=i;i=i+16|0;l=k;m=c[d>>2]|0;if(!m){c[b>>2]=0;i=k;return}n=g;g=e;o=n-g>>2;p=h+12|0;h=c[p>>2]|0;q=(h|0)>(o|0)?h-o|0:0;o=f;h=o-g|0;g=h>>2;if((h|0)>0?(_b[c[(c[m>>2]|0)+48>>2]&31](m,e,g)|0)!=(g|0):0){c[d>>2]=0;c[b>>2]=0;i=k;return}do if((q|0)>0){tj(l,q,j);if(!(a[l>>0]&1))r=l+4|0;else r=c[l+8>>2]|0;if((_b[c[(c[m>>2]|0)+48>>2]&31](m,r,q)|0)==(q|0)){vj(l);break}c[d>>2]=0;c[b>>2]=0;vj(l);i=k;return}while(0);l=n-o|0;o=l>>2;if((l|0)>0?(_b[c[(c[m>>2]|0)+48>>2]&31](m,f,o)|0)!=(o|0):0){c[d>>2]=0;c[b>>2]=0;i=k;return}c[p>>2]=0;c[b>>2]=m;i=k;return}function Dm(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;b=i;i=i+224|0;j=b;k=b+8|0;l=b+196|0;m=b+24|0;n=b+20|0;o=b+16|0;p=b+188|0;q=b+192|0;r=k;c[r>>2]=37;c[r+4>>2]=0;jm(k+1|0,6728,1,c[e+4>>2]|0);r=Cl()|0;s=j;c[s>>2]=g;c[s+4>>2]=h;h=l+(km(l,22,r,k,j)|0)|0;k=lm(l,h,e)|0;Hj(p,e);Bm(l,k,h,m,n,o,p);Ni(c[p>>2]|0)|0;c[q>>2]=c[d>>2];d=c[n>>2]|0;n=c[o>>2]|0;c[j+0>>2]=c[q+0>>2];Cm(a,j,m,d,n,e,f);i=b;return}function Em(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;i=i+128|0;j=d;k=d+104|0;l=d+112|0;m=d+8|0;n=d+4|0;o=d+96|0;p=d+92|0;q=d+100|0;a[k+0>>0]=a[6816]|0;a[k+1>>0]=a[6817]|0;a[k+2>>0]=a[6818]|0;a[k+3>>0]=a[6819]|0;a[k+4>>0]=a[6820]|0;a[k+5>>0]=a[6821]|0;jm(k+1|0,6720,0,c[f+4>>2]|0);r=Cl()|0;c[j>>2]=h;h=l+(km(l,12,r,k,j)|0)|0;k=lm(l,h,f)|0;Hj(p,f);Bm(l,k,h,m,n,o,p);Ni(c[p>>2]|0)|0;c[q>>2]=c[e>>2];e=c[n>>2]|0;n=c[o>>2]|0;c[j+0>>2]=c[q+0>>2];Cm(b,j,m,e,n,f,g);i=d;return}function Fm(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;b=i;i=i+240|0;j=b;k=b+8|0;l=b+204|0;m=b+24|0;n=b+20|0;o=b+16|0;p=b+196|0;q=b+200|0;r=k;c[r>>2]=37;c[r+4>>2]=0;jm(k+1|0,6728,0,c[e+4>>2]|0);r=Cl()|0;s=j;c[s>>2]=g;c[s+4>>2]=h;h=l+(km(l,23,r,k,j)|0)|0;k=lm(l,h,e)|0;Hj(p,e);Bm(l,k,h,m,n,o,p);Ni(c[p>>2]|0)|0;c[q>>2]=c[d>>2];d=c[n>>2]|0;n=c[o>>2]|0;c[j+0>>2]=c[q+0>>2];Cm(a,j,m,d,n,e,f);i=b;return}function Gm(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=+g;var j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;b=i;i=i+320|0;j=b;l=b+16|0;m=b+276|0;n=b+36|0;o=b+44|0;p=b+24|0;q=b+32|0;r=b+40|0;s=b+28|0;t=b+272|0;u=l;c[u>>2]=37;c[u+4>>2]=0;u=sm(l+1|0,6736,c[e+4>>2]|0)|0;c[n>>2]=m;v=Cl()|0;if(u){c[j>>2]=c[e+8>>2];u=j+4|0;h[k>>3]=g;c[u>>2]=c[k>>2];c[u+4>>2]=c[k+4>>2];w=km(m,30,v,l,j)|0}else{h[k>>3]=g;c[j>>2]=c[k>>2];c[j+4>>2]=c[k+4>>2];w=km(m,30,v,l,j)|0}if((w|0)>29){v=Cl()|0;c[j>>2]=c[e+8>>2];u=j+4|0;h[k>>3]=g;c[u>>2]=c[k>>2];c[u+4>>2]=c[k+4>>2];u=tm(n,v,l,j)|0;l=c[n>>2]|0;if(!l)eu();else{x=l;y=l;z=u}}else{x=c[n>>2]|0;y=0;z=w}w=x+z|0;n=lm(x,w,e)|0;if((x|0)!=(m|0)){u=fu(z<<3)|0;if(!u)eu();else{A=x;B=u;C=u}}else{A=m;B=0;C=o}Hj(r,e);Hm(A,n,w,C,p,q,r);Ni(c[r>>2]|0)|0;c[t>>2]=c[d>>2];r=c[p>>2]|0;p=c[q>>2]|0;c[j+0>>2]=c[t+0>>2];Cm(s,j,C,r,p,e,f);f=c[s>>2]|0;c[d>>2]=f;c[a>>2]=f;if(!B){gu(y);i=b;return}gu(B);gu(y);i=b;return}function Hm(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;k=i;i=i+16|0;l=k;m=oq(j,8016)|0;n=oq(j,8176)|0;cc[c[(c[n>>2]|0)+20>>2]&63](l,n);c[h>>2]=f;j=a[b>>0]|0;if(j<<24>>24==43|j<<24>>24==45){o=nc[c[(c[m>>2]|0)+44>>2]&15](m,j)|0;j=c[h>>2]|0;c[h>>2]=j+4;c[j>>2]=o;p=b+1|0}else p=b;o=e;a:do if(((o-p|0)>1?(a[p>>0]|0)==48:0)?(j=p+1|0,q=a[j>>0]|0,q<<24>>24==88|q<<24>>24==120):0){q=nc[c[(c[m>>2]|0)+44>>2]&15](m,48)|0;r=c[h>>2]|0;c[h>>2]=r+4;c[r>>2]=q;q=p+2|0;r=nc[c[(c[m>>2]|0)+44>>2]&15](m,a[j>>0]|0)|0;j=c[h>>2]|0;c[h>>2]=j+4;c[j>>2]=r;if(q>>>0>>0){r=q;while(1){j=a[r>>0]|0;s=r+1|0;if(!(Ms(j<<24>>24,Cl()|0)|0)){t=q;u=r;break a}if(s>>>0>>0)r=s;else{t=q;u=s;break}}}else{t=q;u=q}}else v=4;while(0);b:do if((v|0)==4)if(p>>>0>>0){r=p;while(1){s=a[r>>0]|0;j=r+1|0;if(!(Ls(s<<24>>24,Cl()|0)|0)){t=p;u=r;break b}if(j>>>0>>0)r=j;else{t=p;u=j;break}}}else{t=p;u=p}while(0);p=a[l>>0]|0;if(!(p&1))w=(p&255)>>>1;else w=c[l+4>>2]|0;if(w){if((t|0)!=(u|0)?(w=u+ -1|0,w>>>0>t>>>0):0){p=t;v=w;do{w=a[p>>0]|0;a[p>>0]=a[v>>0]|0;a[v>>0]=w;p=p+1|0;v=v+ -1|0}while(p>>>0>>0)}v=ec[c[(c[n>>2]|0)+16>>2]&63](n)|0;if(t>>>0>>0){p=l+1|0;w=l+4|0;r=l+8|0;q=0;j=0;s=t;while(1){x=(a[l>>0]&1)==0;if((a[(x?p:c[r>>2]|0)+j>>0]|0)>0?(q|0)==(a[(x?p:c[r>>2]|0)+j>>0]|0):0){x=c[h>>2]|0;c[h>>2]=x+4;c[x>>2]=v;x=a[l>>0]|0;if(!(x&1))y=(x&255)>>>1;else y=c[w>>2]|0;z=0;A=(j>>>0<(y+ -1|0)>>>0&1)+j|0}else{z=q;A=j}x=nc[c[(c[m>>2]|0)+44>>2]&15](m,a[s>>0]|0)|0;B=c[h>>2]|0;C=B+4|0;c[h>>2]=C;c[B>>2]=x;s=s+1|0;if(s>>>0>=u>>>0){D=C;break}else{q=z+1|0;j=A}}}else D=c[h>>2]|0;A=f+(t-b<<2)|0;if((A|0)!=(D|0)?(j=D+ -4|0,j>>>0>A>>>0):0){z=A;A=j;do{j=c[z>>2]|0;c[z>>2]=c[A>>2];c[A>>2]=j;z=z+4|0;A=A+ -4|0}while(z>>>0>>0);E=D}else E=D}else{kc[c[(c[m>>2]|0)+48>>2]&7](m,t,u,c[h>>2]|0)|0;D=(c[h>>2]|0)+(u-t<<2)|0;c[h>>2]=D;E=D}c:do if(u>>>0>>0){D=u;while(1){t=a[D>>0]|0;if(t<<24>>24==46)break;A=nc[c[(c[m>>2]|0)+44>>2]&15](m,t)|0;t=c[h>>2]|0;z=t+4|0;c[h>>2]=z;c[t>>2]=A;A=D+1|0;if(A>>>0>>0)D=A;else{F=z;G=A;break c}}A=ec[c[(c[n>>2]|0)+12>>2]&63](n)|0;z=c[h>>2]|0;t=z+4|0;c[h>>2]=t;c[z>>2]=A;F=t;G=D+1|0}else{F=E;G=u}while(0);kc[c[(c[m>>2]|0)+48>>2]&7](m,G,e,F)|0;F=(c[h>>2]|0)+(o-G<<2)|0;c[h>>2]=F;if((d|0)==(e|0)){H=F;c[g>>2]=H;gj(l);i=k;return}H=f+(d-b<<2)|0;c[g>>2]=H;gj(l);i=k;return}function Im(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=+g;var j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;b=i;i=i+320|0;j=b;l=b+16|0;m=b+276|0;n=b+36|0;o=b+44|0;p=b+24|0;q=b+32|0;r=b+40|0;s=b+28|0;t=b+272|0;u=l;c[u>>2]=37;c[u+4>>2]=0;u=sm(l+1|0,6744,c[e+4>>2]|0)|0;c[n>>2]=m;v=Cl()|0;if(u){c[j>>2]=c[e+8>>2];w=j+4|0;h[k>>3]=g;c[w>>2]=c[k>>2];c[w+4>>2]=c[k+4>>2];x=km(m,30,v,l,j)|0}else{h[k>>3]=g;c[j>>2]=c[k>>2];c[j+4>>2]=c[k+4>>2];x=km(m,30,v,l,j)|0}if((x|0)>29){v=Cl()|0;if(u){c[j>>2]=c[e+8>>2];u=j+4|0;h[k>>3]=g;c[u>>2]=c[k>>2];c[u+4>>2]=c[k+4>>2];y=tm(n,v,l,j)|0}else{h[k>>3]=g;c[j>>2]=c[k>>2];c[j+4>>2]=c[k+4>>2];y=tm(n,v,l,j)|0}l=c[n>>2]|0;if(!l)eu();else{z=l;A=l;B=y}}else{z=c[n>>2]|0;A=0;B=x}x=z+B|0;n=lm(z,x,e)|0;if((z|0)!=(m|0)){y=fu(B<<3)|0;if(!y)eu();else{C=z;D=y;E=y}}else{C=m;D=0;E=o}Hj(r,e);Hm(C,n,x,E,p,q,r);Ni(c[r>>2]|0)|0;c[t>>2]=c[d>>2];r=c[p>>2]|0;p=c[q>>2]|0;c[j+0>>2]=c[t+0>>2];Cm(s,j,E,r,p,e,f);f=c[s>>2]|0;c[d>>2]=f;c[a>>2]=f;if(!D){gu(A);i=b;return}gu(D);gu(A);i=b;return}function Jm(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;i=i+192|0;j=d;k=d+180|0;l=d+160|0;m=d+12|0;n=d+8|0;o=d+4|0;a[k+0>>0]=a[6824]|0;a[k+1>>0]=a[6825]|0;a[k+2>>0]=a[6826]|0;a[k+3>>0]=a[6827]|0;a[k+4>>0]=a[6828]|0;a[k+5>>0]=a[6829]|0;p=Cl()|0;c[j>>2]=h;h=km(l,20,p,k,j)|0;k=l+h|0;p=lm(l,k,f)|0;Hj(n,f);q=oq(n,8016)|0;Ni(c[n>>2]|0)|0;kc[c[(c[q>>2]|0)+48>>2]&7](q,l,k,m)|0;q=m+(h<<2)|0;if((p|0)==(k|0))r=q;else r=m+(p-l<<2)|0;c[o>>2]=c[e>>2];c[j+0>>2]=c[o+0>>2];Cm(b,j,m,r,q,f,g);i=d;return}function Km(e,f,g,h,j,k,l,m,n){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;o=i;i=i+32|0;p=o+20|0;q=o+16|0;r=o+12|0;s=o+8|0;t=o+4|0;u=o;Hj(r,j);v=oq(r,8024)|0;Ni(c[r>>2]|0)|0;c[k>>2]=0;a:do if((m|0)!=(n|0)){r=v+8|0;w=m;x=0;b:while(1){y=x;while(1){if(y){z=60;break a}A=c[g>>2]|0;if(A)if((c[A+12>>2]|0)==(c[A+16>>2]|0)?(ec[c[(c[A>>2]|0)+36>>2]&63](A)|0)==-1:0){c[g>>2]=0;B=0}else B=A;else B=0;A=(B|0)==0;C=c[h>>2]|0;do if(C){if((c[C+12>>2]|0)==(c[C+16>>2]|0)?(ec[c[(c[C>>2]|0)+36>>2]&63](C)|0)==-1:0){c[h>>2]=0;z=14;break}if(A)D=C;else{z=15;break b}}else z=14;while(0);if((z|0)==14){z=0;if(A){z=15;break b}else D=0}if((_b[c[(c[v>>2]|0)+36>>2]&31](v,a[w>>0]|0,0)|0)<<24>>24==37){z=17;break}C=a[w>>0]|0;if(C<<24>>24>-1?(E=c[r>>2]|0,(b[E+(C<<24>>24<<1)>>1]&8192)!=0):0){F=w;z=28;break}G=B+12|0;C=c[G>>2]|0;H=B+16|0;if((C|0)==(c[H>>2]|0))I=ec[c[(c[B>>2]|0)+36>>2]&63](B)|0;else I=d[C>>0]|0;C=nc[c[(c[v>>2]|0)+12>>2]&15](v,I&255)|0;if(C<<24>>24==(nc[c[(c[v>>2]|0)+12>>2]&15](v,a[w>>0]|0)|0)<<24>>24){z=55;break}c[k>>2]=4;y=4}c:do if((z|0)==17){z=0;y=w+1|0;if((y|0)==(n|0)){z=18;break b}C=_b[c[(c[v>>2]|0)+36>>2]&31](v,a[y>>0]|0,0)|0;if(C<<24>>24==48|C<<24>>24==69){J=w+2|0;if((J|0)==(n|0)){z=21;break b}K=J;L=_b[c[(c[v>>2]|0)+36>>2]&31](v,a[J>>0]|0,0)|0;M=C}else{K=y;L=C;M=0}C=c[(c[f>>2]|0)+36>>2]|0;c[t>>2]=B;c[u>>2]=D;c[q+0>>2]=c[t+0>>2];c[p+0>>2]=c[u+0>>2];dc[C&3](s,f,q,p,j,k,l,L,M);c[g>>2]=c[s>>2];N=K+1|0}else if((z|0)==28){while(1){z=0;C=F+1|0;if((C|0)==(n|0)){O=n;break}y=a[C>>0]|0;if(y<<24>>24<=-1){O=C;break}if(!(b[E+(y<<24>>24<<1)>>1]&8192)){O=C;break}else{F=C;z=28}}A=B;C=D;y=D;while(1){if(A)if((c[A+12>>2]|0)==(c[A+16>>2]|0)?(ec[c[(c[A>>2]|0)+36>>2]&63](A)|0)==-1:0){c[g>>2]=0;P=0}else P=A;else P=0;J=(P|0)==0;do if(y){if((c[y+12>>2]|0)!=(c[y+16>>2]|0))if(J){Q=C;R=y;break}else{N=O;break c}if((ec[c[(c[y>>2]|0)+36>>2]&63](y)|0)!=-1)if(J^(C|0)==0){Q=C;R=C;break}else{N=O;break c}else{c[h>>2]=0;S=0;z=41;break}}else{S=C;z=41}while(0);if((z|0)==41){z=0;if(J){N=O;break c}else{Q=S;R=0}}T=P+12|0;U=c[T>>2]|0;V=P+16|0;if((U|0)==(c[V>>2]|0))W=ec[c[(c[P>>2]|0)+36>>2]&63](P)|0;else W=d[U>>0]|0;if((W&255)<<24>>24<=-1){N=O;break c}if(!(b[(c[r>>2]|0)+(W<<24>>24<<1)>>1]&8192)){N=O;break c}U=c[T>>2]|0;if((U|0)==(c[V>>2]|0)){ec[c[(c[P>>2]|0)+40>>2]&63](P)|0;A=P;C=Q;y=R;continue}else{c[T>>2]=U+1;A=P;C=Q;y=R;continue}}}else if((z|0)==55){z=0;y=c[G>>2]|0;if((y|0)==(c[H>>2]|0))ec[c[(c[B>>2]|0)+40>>2]&63](B)|0;else c[G>>2]=y+1;N=w+1|0}while(0);if((N|0)==(n|0)){z=60;break a}w=N;x=c[k>>2]|0}if((z|0)==15){c[k>>2]=4;X=B;break}else if((z|0)==18){c[k>>2]=4;X=B;break}else if((z|0)==21){c[k>>2]=4;X=B;break}}else z=60;while(0);if((z|0)==60)X=c[g>>2]|0;if(X)if((c[X+12>>2]|0)==(c[X+16>>2]|0)?(ec[c[(c[X>>2]|0)+36>>2]&63](X)|0)==-1:0){c[g>>2]=0;Y=0}else Y=X;else Y=0;X=(Y|0)==0;g=c[h>>2]|0;do if(g){if((c[g+12>>2]|0)==(c[g+16>>2]|0)?(ec[c[(c[g>>2]|0)+36>>2]&63](g)|0)==-1:0){c[h>>2]=0;z=70;break}if(X){c[e>>2]=Y;i=o;return}}else z=70;while(0);if((z|0)==70?!X:0){c[e>>2]=Y;i=o;return}c[k>>2]=c[k>>2]|2;c[e>>2]=Y;i=o;return}function Lm(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function Mm(a){a=a|0;return}function Nm(a){a=a|0;return 2}function Om(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0;j=i;i=i+16|0;k=j+12|0;l=j+8|0;m=j+4|0;n=j;c[m>>2]=c[d>>2];c[n>>2]=c[e>>2];c[l+0>>2]=c[m+0>>2];c[k+0>>2]=c[n+0>>2];Km(a,b,l,k,f,g,h,6928,6936|0);i=j;return}function Pm(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;k=i;i=i+16|0;l=k+12|0;m=k+8|0;n=k+4|0;o=k;p=d+8|0;q=ec[c[(c[p>>2]|0)+20>>2]&63](p)|0;c[n>>2]=c[e>>2];c[o>>2]=c[f>>2];f=a[q>>0]|0;if(!(f&1)){r=q+1|0;s=(f&255)>>>1;t=q+1|0}else{f=c[q+8>>2]|0;r=f;s=c[q+4>>2]|0;t=f}f=r+s|0;c[m+0>>2]=c[n+0>>2];c[l+0>>2]=c[o+0>>2];Km(b,d,m,l,g,h,j,t,f);i=k;return}function Qm(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;j=i;i=i+16|0;k=j+8|0;l=j+4|0;m=j;Hj(l,f);f=oq(l,8024)|0;Ni(c[l>>2]|0)|0;l=h+24|0;c[m>>2]=c[e>>2];c[k+0>>2]=c[m+0>>2];Rm(b,l,d,k,g,f);c[a>>2]=c[d>>2];i=j;return}function Rm(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0;h=i;i=i+16|0;j=h+4|0;k=h;l=a+8|0;a=ec[c[c[l>>2]>>2]&63](l)|0;c[k>>2]=c[e>>2];e=a+168|0;c[j+0>>2]=c[k+0>>2];k=(gl(d,j,a,e,g,f,0)|0)-a|0;if((k|0)>=168){i=h;return}c[b>>2]=((k|0)/12|0|0)%7|0;i=h;return}function Sm(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;j=i;i=i+16|0;k=j+8|0;l=j+4|0;m=j;Hj(l,f);f=oq(l,8024)|0;Ni(c[l>>2]|0)|0;l=h+16|0;c[m>>2]=c[e>>2];c[k+0>>2]=c[m+0>>2];Tm(b,l,d,k,g,f);c[a>>2]=c[d>>2];i=j;return}function Tm(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0;h=i;i=i+16|0;j=h+4|0;k=h;l=a+8|0;a=ec[c[(c[l>>2]|0)+4>>2]&63](l)|0;c[k>>2]=c[e>>2];e=a+288|0;c[j+0>>2]=c[k+0>>2];k=(gl(d,j,a,e,g,f,0)|0)-a|0;if((k|0)>=288){i=h;return}c[b>>2]=((k|0)/12|0|0)%12|0;i=h;return}function Um(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0;b=i;i=i+16|0;j=b+8|0;k=b+4|0;l=b;Hj(k,f);f=oq(k,8024)|0;Ni(c[k>>2]|0)|0;k=h+20|0;c[l>>2]=c[e>>2];c[j+0>>2]=c[l+0>>2];Vm(0,k,d,j,g,f);c[a>>2]=c[d>>2];i=b;return}function Vm(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=hn(d,h,f,g,4)|0;if(c[f>>2]&4){i=a;return}if((j|0)<69)k=j+2e3|0;else k=(j+ -69|0)>>>0<31?j+1900|0:j;c[b>>2]=k+ -1900;i=a;return}function Wm(b,d,e,f,g,h,j,k,l){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0;l=i;i=i+176|0;m=l+156|0;n=l+148|0;o=l;p=l+56|0;q=l+60|0;r=l+116|0;s=l+12|0;t=l+108|0;u=l+16|0;v=l+20|0;w=l+24|0;x=l+28|0;y=l+32|0;z=l+36|0;A=l+40|0;B=l+104|0;C=l+128|0;D=l+136|0;E=l+144|0;F=l+152|0;G=l+160|0;H=l+64|0;I=l+68|0;J=l+72|0;K=l+76|0;L=l+80|0;M=l+84|0;N=l+88|0;O=l+92|0;P=l+96|0;Q=l+100|0;R=l+4|0;S=l+120|0;T=l+44|0;U=l+124|0;V=l+8|0;W=l+48|0;X=l+132|0;Y=l+52|0;Z=l+140|0;_=l+112|0;c[h>>2]=0;Hj(o,g);$=oq(o,8024)|0;Ni(c[o>>2]|0)|0;do switch(k<<24>>24|0){case 70:{c[z>>2]=c[e>>2];c[A>>2]=c[f>>2];c[n+0>>2]=c[z+0>>2];c[m+0>>2]=c[A+0>>2];Km(y,d,n,m,g,h,j,6944,6952|0);c[e>>2]=c[y>>2];break};case 82:{c[M>>2]=c[e>>2];c[N>>2]=c[f>>2];c[n+0>>2]=c[M+0>>2];c[m+0>>2]=c[N+0>>2];Km(L,d,n,m,g,h,j,6968,6973|0);c[e>>2]=c[L>>2];break};case 73:{c[C>>2]=c[f>>2];c[m+0>>2]=c[C+0>>2];Zm(0,j+8|0,e,m,h,$);break};case 104:case 66:case 98:{c[q>>2]=c[f>>2];c[m+0>>2]=c[q+0>>2];Tm(d,j+16|0,e,m,h,$);break};case 120:{o=c[(c[d>>2]|0)+20>>2]|0;c[T>>2]=c[e>>2];c[U>>2]=c[f>>2];c[n+0>>2]=c[T+0>>2];c[m+0>>2]=c[U+0>>2];$b[o&63](b,d,n,m,g,h,j);i=l;return};case 109:{c[E>>2]=c[f>>2];c[m+0>>2]=c[E+0>>2];$m(0,j+16|0,e,m,h,$);break};case 65:case 97:{c[p>>2]=c[f>>2];c[m+0>>2]=c[p+0>>2];Rm(d,j+24|0,e,m,h,$);break};case 99:{o=d+8|0;aa=ec[c[(c[o>>2]|0)+12>>2]&63](o)|0;c[s>>2]=c[e>>2];c[t>>2]=c[f>>2];o=a[aa>>0]|0;if(!(o&1)){ba=aa+1|0;ca=(o&255)>>>1;da=aa+1|0}else{o=c[aa+8>>2]|0;ba=o;ca=c[aa+4>>2]|0;da=o}c[n+0>>2]=c[s+0>>2];c[m+0>>2]=c[t+0>>2];Km(r,d,n,m,g,h,j,da,ba+ca|0);c[e>>2]=c[r>>2];break};case 106:{c[D>>2]=c[f>>2];c[m+0>>2]=c[D+0>>2];_m(0,j+28|0,e,m,h,$);break};case 121:{c[Y>>2]=c[f>>2];c[m+0>>2]=c[Y+0>>2];Vm(0,j+20|0,e,m,h,$);break};case 84:{c[Q>>2]=c[e>>2];c[R>>2]=c[f>>2];c[n+0>>2]=c[Q+0>>2];c[m+0>>2]=c[R+0>>2];Km(P,d,n,m,g,h,j,6976,6984|0);c[e>>2]=c[P>>2];break};case 116:case 110:{c[G>>2]=c[f>>2];c[m+0>>2]=c[G+0>>2];bn(0,e,m,h,$);break};case 77:{c[F>>2]=c[f>>2];c[m+0>>2]=c[F+0>>2];an(0,j+4|0,e,m,h,$);break};case 89:{c[Z>>2]=c[f>>2];c[m+0>>2]=c[Z+0>>2];fn(0,j+20|0,e,m,h,$);break};case 88:{o=d+8|0;aa=ec[c[(c[o>>2]|0)+24>>2]&63](o)|0;c[W>>2]=c[e>>2];c[X>>2]=c[f>>2];o=a[aa>>0]|0;if(!(o&1)){ea=aa+1|0;fa=(o&255)>>>1;ga=aa+1|0}else{o=c[aa+8>>2]|0;ea=o;fa=c[aa+4>>2]|0;ga=o}c[n+0>>2]=c[W+0>>2];c[m+0>>2]=c[X+0>>2];Km(V,d,n,m,g,h,j,ga,ea+fa|0);c[e>>2]=c[V>>2];break};case 83:{c[O>>2]=c[f>>2];c[m+0>>2]=c[O+0>>2];dn(0,j,e,m,h,$);break};case 68:{c[w>>2]=c[e>>2];c[x>>2]=c[f>>2];c[n+0>>2]=c[w+0>>2];c[m+0>>2]=c[x+0>>2];Km(v,d,n,m,g,h,j,6936,6944|0);c[e>>2]=c[v>>2];break};case 37:{c[_>>2]=c[f>>2];c[m+0>>2]=c[_+0>>2];gn(0,e,m,h,$);break};case 114:{c[J>>2]=c[e>>2];c[K>>2]=c[f>>2];c[n+0>>2]=c[J+0>>2];c[m+0>>2]=c[K+0>>2];Km(I,d,n,m,g,h,j,6952,6963|0);c[e>>2]=c[I>>2];break};case 112:{c[H>>2]=c[f>>2];c[m+0>>2]=c[H+0>>2];cn(d,j+8|0,e,m,h,$);break};case 119:{c[S>>2]=c[f>>2];c[m+0>>2]=c[S+0>>2];en(0,j+24|0,e,m,h,$);break};case 101:case 100:{c[u>>2]=c[f>>2];c[m+0>>2]=c[u+0>>2];Xm(0,j+12|0,e,m,h,$);break};case 72:{c[B>>2]=c[f>>2];c[m+0>>2]=c[B+0>>2];Ym(0,j+8|0,e,m,h,$);break};default:c[h>>2]=c[h>>2]|4}while(0);c[b>>2]=c[e>>2];i=l;return}function Xm(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=hn(d,h,f,g,2)|0;g=c[f>>2]|0;if((g&4|0)==0?(j+ -1|0)>>>0<31:0){c[b>>2]=j;i=a;return}c[f>>2]=g|4;i=a;return}function Ym(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=hn(d,h,f,g,2)|0;g=c[f>>2]|0;if((g&4|0)==0&(j|0)<24){c[b>>2]=j;i=a;return}else{c[f>>2]=g|4;i=a;return}}function Zm(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=hn(d,h,f,g,2)|0;g=c[f>>2]|0;if((g&4|0)==0?(j+ -1|0)>>>0<12:0){c[b>>2]=j;i=a;return}c[f>>2]=g|4;i=a;return}function _m(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=hn(d,h,f,g,3)|0;g=c[f>>2]|0;if((g&4|0)==0&(j|0)<366){c[b>>2]=j;i=a;return}else{c[f>>2]=g|4;i=a;return}}function $m(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=hn(d,h,f,g,2)|0;g=c[f>>2]|0;if((g&4|0)==0&(j|0)<13){c[b>>2]=j+ -1;i=a;return}else{c[f>>2]=g|4;i=a;return}}function an(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=hn(d,h,f,g,2)|0;g=c[f>>2]|0;if((g&4|0)==0&(j|0)<60){c[b>>2]=j;i=a;return}else{c[f>>2]=g|4;i=a;return}}function bn(a,e,f,g,h){a=a|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;a=i;j=h+8|0;a:while(1){h=c[e>>2]|0;do if(h)if((c[h+12>>2]|0)==(c[h+16>>2]|0))if((ec[c[(c[h>>2]|0)+36>>2]&63](h)|0)==-1){c[e>>2]=0;k=0;break}else{k=c[e>>2]|0;break}else k=h;else k=0;while(0);h=(k|0)==0;l=c[f>>2]|0;do if(l){if((c[l+12>>2]|0)!=(c[l+16>>2]|0))if(h){m=l;break}else{n=l;break a}if((ec[c[(c[l>>2]|0)+36>>2]&63](l)|0)!=-1)if(h){m=l;break}else{n=l;break a}else{c[f>>2]=0;o=12;break}}else o=12;while(0);if((o|0)==12){o=0;if(h){n=0;break}else m=0}l=c[e>>2]|0;p=c[l+12>>2]|0;if((p|0)==(c[l+16>>2]|0))q=ec[c[(c[l>>2]|0)+36>>2]&63](l)|0;else q=d[p>>0]|0;if((q&255)<<24>>24<=-1){n=m;break}if(!(b[(c[j>>2]|0)+(q<<24>>24<<1)>>1]&8192)){n=m;break}p=c[e>>2]|0;l=p+12|0;r=c[l>>2]|0;if((r|0)==(c[p+16>>2]|0)){ec[c[(c[p>>2]|0)+40>>2]&63](p)|0;continue}else{c[l>>2]=r+1;continue}}m=c[e>>2]|0;do if(m)if((c[m+12>>2]|0)==(c[m+16>>2]|0))if((ec[c[(c[m>>2]|0)+36>>2]&63](m)|0)==-1){c[e>>2]=0;s=0;break}else{s=c[e>>2]|0;break}else s=m;else s=0;while(0);m=(s|0)==0;do if(n){if((c[n+12>>2]|0)==(c[n+16>>2]|0)?(ec[c[(c[n>>2]|0)+36>>2]&63](n)|0)==-1:0){c[f>>2]=0;o=32;break}if(m){i=a;return}}else o=32;while(0);if((o|0)==32?!m:0){i=a;return}c[g>>2]=c[g>>2]|2;i=a;return}function cn(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0;j=i;i=i+16|0;k=j+4|0;l=j;m=b+8|0;b=ec[c[(c[m>>2]|0)+8>>2]&63](m)|0;m=a[b>>0]|0;if(!(m&1))n=(m&255)>>>1;else n=c[b+4>>2]|0;m=a[b+12>>0]|0;if(!(m&1))o=(m&255)>>>1;else o=c[b+16>>2]|0;if((n|0)==(0-o|0)){c[g>>2]=c[g>>2]|4;i=j;return}c[l>>2]=c[f>>2];f=b+24|0;c[k+0>>2]=c[l+0>>2];l=gl(e,k,b,f,h,g,0)|0;g=l-b|0;if((l|0)==(b|0)?(c[d>>2]|0)==12:0){c[d>>2]=0;i=j;return}if((g|0)!=12){i=j;return}g=c[d>>2]|0;if((g|0)>=12){i=j;return}c[d>>2]=g+12;i=j;return}function dn(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=hn(d,h,f,g,2)|0;g=c[f>>2]|0;if((g&4|0)==0&(j|0)<61){c[b>>2]=j;i=a;return}else{c[f>>2]=g|4;i=a;return}}function en(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=hn(d,h,f,g,1)|0;g=c[f>>2]|0;if((g&4|0)==0&(j|0)<7){c[b>>2]=j;i=a;return}else{c[f>>2]=g|4;i=a;return}}function fn(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=hn(d,h,f,g,4)|0;if(c[f>>2]&4){i=a;return}c[b>>2]=j+ -1900;i=a;return}function gn(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;a=i;h=c[b>>2]|0;do if(h)if((c[h+12>>2]|0)==(c[h+16>>2]|0))if((ec[c[(c[h>>2]|0)+36>>2]&63](h)|0)==-1){c[b>>2]=0;j=0;break}else{j=c[b>>2]|0;break}else j=h;else j=0;while(0);h=(j|0)==0;j=c[e>>2]|0;do if(j){if((c[j+12>>2]|0)==(c[j+16>>2]|0)?(ec[c[(c[j>>2]|0)+36>>2]&63](j)|0)==-1:0){c[e>>2]=0;k=11;break}if(h)l=j;else k=12}else k=11;while(0);if((k|0)==11)if(h)k=12;else l=0;if((k|0)==12){c[f>>2]=c[f>>2]|6;i=a;return}h=c[b>>2]|0;j=c[h+12>>2]|0;if((j|0)==(c[h+16>>2]|0))m=ec[c[(c[h>>2]|0)+36>>2]&63](h)|0;else m=d[j>>0]|0;if((_b[c[(c[g>>2]|0)+36>>2]&31](g,m&255,0)|0)<<24>>24!=37){c[f>>2]=c[f>>2]|4;i=a;return}m=c[b>>2]|0;g=m+12|0;j=c[g>>2]|0;if((j|0)==(c[m+16>>2]|0))ec[c[(c[m>>2]|0)+40>>2]&63](m)|0;else c[g>>2]=j+1;j=c[b>>2]|0;do if(j)if((c[j+12>>2]|0)==(c[j+16>>2]|0))if((ec[c[(c[j>>2]|0)+36>>2]&63](j)|0)==-1){c[b>>2]=0;n=0;break}else{n=c[b>>2]|0;break}else n=j;else n=0;while(0);j=(n|0)==0;do if(l){if((c[l+12>>2]|0)==(c[l+16>>2]|0)?(ec[c[(c[l>>2]|0)+36>>2]&63](l)|0)==-1:0){c[e>>2]=0;k=31;break}if(j){i=a;return}}else k=31;while(0);if((k|0)==31?!j:0){i=a;return}c[f>>2]=c[f>>2]|2;i=a;return}function hn(a,e,f,g,h){a=a|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;j=i;k=c[a>>2]|0;do if(k)if((c[k+12>>2]|0)==(c[k+16>>2]|0))if((ec[c[(c[k>>2]|0)+36>>2]&63](k)|0)==-1){c[a>>2]=0;l=0;break}else{l=c[a>>2]|0;break}else l=k;else l=0;while(0);k=(l|0)==0;l=c[e>>2]|0;do if(l){if((c[l+12>>2]|0)==(c[l+16>>2]|0)?(ec[c[(c[l>>2]|0)+36>>2]&63](l)|0)==-1:0){c[e>>2]=0;m=11;break}if(k)n=l;else m=12}else m=11;while(0);if((m|0)==11)if(k)m=12;else n=0;if((m|0)==12){c[f>>2]=c[f>>2]|6;o=0;i=j;return o|0}k=c[a>>2]|0;l=c[k+12>>2]|0;if((l|0)==(c[k+16>>2]|0))p=ec[c[(c[k>>2]|0)+36>>2]&63](k)|0;else p=d[l>>0]|0;l=p&255;if(l<<24>>24>-1?(k=g+8|0,(b[(c[k>>2]|0)+(p<<24>>24<<1)>>1]&2048)!=0):0){p=(_b[c[(c[g>>2]|0)+36>>2]&31](g,l,0)|0)<<24>>24;l=c[a>>2]|0;q=l+12|0;r=c[q>>2]|0;if((r|0)==(c[l+16>>2]|0)){ec[c[(c[l>>2]|0)+40>>2]&63](l)|0;s=h;t=n;u=n;v=p}else{c[q>>2]=r+1;s=h;t=n;u=n;v=p}while(1){w=v+ -48|0;p=s+ -1|0;n=c[a>>2]|0;do if(n)if((c[n+12>>2]|0)==(c[n+16>>2]|0))if((ec[c[(c[n>>2]|0)+36>>2]&63](n)|0)==-1){c[a>>2]=0;x=0;break}else{x=c[a>>2]|0;break}else x=n;else x=0;while(0);n=(x|0)==0;if(u)if((c[u+12>>2]|0)==(c[u+16>>2]|0))if((ec[c[(c[u>>2]|0)+36>>2]&63](u)|0)==-1){c[e>>2]=0;y=0;z=0}else{y=t;z=t}else{y=t;z=u}else{y=t;z=0}A=c[a>>2]|0;if(!((n^(z|0)==0)&(p|0)>0)){m=40;break}n=c[A+12>>2]|0;if((n|0)==(c[A+16>>2]|0))B=ec[c[(c[A>>2]|0)+36>>2]&63](A)|0;else B=d[n>>0]|0;n=B&255;if(n<<24>>24<=-1){o=w;m=52;break}if(!(b[(c[k>>2]|0)+(B<<24>>24<<1)>>1]&2048)){o=w;m=52;break}h=((_b[c[(c[g>>2]|0)+36>>2]&31](g,n,0)|0)<<24>>24)+(w*10|0)|0;n=c[a>>2]|0;r=n+12|0;q=c[r>>2]|0;if((q|0)==(c[n+16>>2]|0)){ec[c[(c[n>>2]|0)+40>>2]&63](n)|0;s=p;t=y;u=z;v=h;continue}else{c[r>>2]=q+1;s=p;t=y;u=z;v=h;continue}}if((m|0)==40){do if(A)if((c[A+12>>2]|0)==(c[A+16>>2]|0))if((ec[c[(c[A>>2]|0)+36>>2]&63](A)|0)==-1){c[a>>2]=0;C=0;break}else{C=c[a>>2]|0;break}else C=A;else C=0;while(0);A=(C|0)==0;do if(y){if((c[y+12>>2]|0)==(c[y+16>>2]|0)?(ec[c[(c[y>>2]|0)+36>>2]&63](y)|0)==-1:0){c[e>>2]=0;m=50;break}if(A){o=w;i=j;return o|0}}else m=50;while(0);if((m|0)==50?!A:0){o=w;i=j;return o|0}c[f>>2]=c[f>>2]|2;o=w;i=j;return o|0}else if((m|0)==52){i=j;return o|0}}c[f>>2]=c[f>>2]|4;o=0;i=j;return o|0}function jn(a,b,d,e,f,g,h,j,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0;l=i;i=i+32|0;m=l+20|0;n=l+16|0;o=l+12|0;p=l+8|0;q=l+4|0;r=l;Hj(o,f);s=oq(o,8016)|0;Ni(c[o>>2]|0)|0;c[g>>2]=0;a:do if((j|0)!=(k|0)){o=j;t=0;b:while(1){u=t;while(1){if(u){v=64;break a}w=c[d>>2]|0;if(w){x=c[w+12>>2]|0;if((x|0)==(c[w+16>>2]|0))y=ec[c[(c[w>>2]|0)+36>>2]&63](w)|0;else y=c[x>>2]|0;if((y|0)==-1){c[d>>2]=0;z=1;A=0}else{z=0;A=w}}else{z=1;A=0}w=c[e>>2]|0;do if(w){x=c[w+12>>2]|0;if((x|0)==(c[w+16>>2]|0))B=ec[c[(c[w>>2]|0)+36>>2]&63](w)|0;else B=c[x>>2]|0;if((B|0)!=-1)if(z){C=w;break}else{v=19;break b}else{c[e>>2]=0;v=17;break}}else v=17;while(0);if((v|0)==17){v=0;if(z){v=19;break b}else C=0}if((_b[c[(c[s>>2]|0)+52>>2]&31](s,c[o>>2]|0,0)|0)<<24>>24==37){v=21;break}if(_b[c[(c[s>>2]|0)+12>>2]&31](s,8192,c[o>>2]|0)|0){D=o;v=31;break}E=A+12|0;w=c[E>>2]|0;F=A+16|0;if((w|0)==(c[F>>2]|0))G=ec[c[(c[A>>2]|0)+36>>2]&63](A)|0;else G=c[w>>2]|0;w=nc[c[(c[s>>2]|0)+28>>2]&15](s,G)|0;if((w|0)==(nc[c[(c[s>>2]|0)+28>>2]&15](s,c[o>>2]|0)|0)){v=59;break}c[g>>2]=4;u=4}c:do if((v|0)==21){v=0;u=o+4|0;if((u|0)==(k|0)){v=22;break b}w=_b[c[(c[s>>2]|0)+52>>2]&31](s,c[u>>2]|0,0)|0;if(w<<24>>24==48|w<<24>>24==69){x=o+8|0;if((x|0)==(k|0)){v=25;break b}H=x;I=_b[c[(c[s>>2]|0)+52>>2]&31](s,c[x>>2]|0,0)|0;J=w}else{H=u;I=w;J=0}w=c[(c[b>>2]|0)+36>>2]|0;c[q>>2]=A;c[r>>2]=C;c[n+0>>2]=c[q+0>>2];c[m+0>>2]=c[r+0>>2];dc[w&3](p,b,n,m,f,g,h,I,J);c[d>>2]=c[p>>2];K=H+4|0}else if((v|0)==31){while(1){v=0;w=D+4|0;if((w|0)==(k|0)){L=k;break}if(_b[c[(c[s>>2]|0)+12>>2]&31](s,8192,c[w>>2]|0)|0){D=w;v=31}else{L=w;break}}w=A;u=C;x=C;while(1){if(w){M=c[w+12>>2]|0;if((M|0)==(c[w+16>>2]|0))N=ec[c[(c[w>>2]|0)+36>>2]&63](w)|0;else N=c[M>>2]|0;if((N|0)==-1){c[d>>2]=0;O=0;P=1}else{O=w;P=0}}else{O=0;P=1}do if(x){M=c[x+12>>2]|0;if((M|0)==(c[x+16>>2]|0))Q=ec[c[(c[x>>2]|0)+36>>2]&63](x)|0;else Q=c[M>>2]|0;if((Q|0)!=-1)if(P^(u|0)==0){R=u;S=u;break}else{K=L;break c}else{c[e>>2]=0;T=0;v=46;break}}else{T=u;v=46}while(0);if((v|0)==46){v=0;if(P){K=L;break c}else{R=T;S=0}}M=O+12|0;U=c[M>>2]|0;V=O+16|0;if((U|0)==(c[V>>2]|0))W=ec[c[(c[O>>2]|0)+36>>2]&63](O)|0;else W=c[U>>2]|0;if(!(_b[c[(c[s>>2]|0)+12>>2]&31](s,8192,W)|0)){K=L;break c}U=c[M>>2]|0;if((U|0)==(c[V>>2]|0)){ec[c[(c[O>>2]|0)+40>>2]&63](O)|0;w=O;u=R;x=S;continue}else{c[M>>2]=U+4;w=O;u=R;x=S;continue}}}else if((v|0)==59){v=0;x=c[E>>2]|0;if((x|0)==(c[F>>2]|0))ec[c[(c[A>>2]|0)+40>>2]&63](A)|0;else c[E>>2]=x+4;K=o+4|0}while(0);if((K|0)==(k|0)){v=64;break a}o=K;t=c[g>>2]|0}if((v|0)==19){c[g>>2]=4;X=A;break}else if((v|0)==22){c[g>>2]=4;X=A;break}else if((v|0)==25){c[g>>2]=4;X=A;break}}else v=64;while(0);if((v|0)==64)X=c[d>>2]|0;if(X){A=c[X+12>>2]|0;if((A|0)==(c[X+16>>2]|0))Y=ec[c[(c[X>>2]|0)+36>>2]&63](X)|0;else Y=c[A>>2]|0;if((Y|0)==-1){c[d>>2]=0;Z=0;_=1}else{Z=X;_=0}}else{Z=0;_=1}X=c[e>>2]|0;do if(X){d=c[X+12>>2]|0;if((d|0)==(c[X+16>>2]|0))$=ec[c[(c[X>>2]|0)+36>>2]&63](X)|0;else $=c[d>>2]|0;if(($|0)==-1){c[e>>2]=0;v=77;break}if(_){c[a>>2]=Z;i=l;return}}else v=77;while(0);if((v|0)==77?!_:0){c[a>>2]=Z;i=l;return}c[g>>2]=c[g>>2]|2;c[a>>2]=Z;i=l;return}function kn(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function ln(a){a=a|0;return}function mn(a){a=a|0;return 2}function nn(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0;j=i;i=i+16|0;k=j+12|0;l=j+8|0;m=j+4|0;n=j;c[m>>2]=c[d>>2];c[n>>2]=c[e>>2];c[l+0>>2]=c[m+0>>2];c[k+0>>2]=c[n+0>>2];jn(a,b,l,k,f,g,h,7080,7112|0);i=j;return}function on(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;k=i;i=i+16|0;l=k+12|0;m=k+8|0;n=k+4|0;o=k;p=d+8|0;q=ec[c[(c[p>>2]|0)+20>>2]&63](p)|0;c[n>>2]=c[e>>2];c[o>>2]=c[f>>2];f=a[q>>0]|0;if(!(f&1)){r=q+4|0;s=(f&255)>>>1;t=q+4|0}else{f=c[q+8>>2]|0;r=f;s=c[q+4>>2]|0;t=f}f=r+(s<<2)|0;c[m+0>>2]=c[n+0>>2];c[l+0>>2]=c[o+0>>2];jn(b,d,m,l,g,h,j,t,f);i=k;return}function pn(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;j=i;i=i+16|0;k=j+8|0;l=j+4|0;m=j;Hj(l,f);f=oq(l,8016)|0;Ni(c[l>>2]|0)|0;l=h+24|0;c[m>>2]=c[e>>2];c[k+0>>2]=c[m+0>>2];qn(b,l,d,k,g,f);c[a>>2]=c[d>>2];i=j;return}function qn(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0;h=i;i=i+16|0;j=h+4|0;k=h;l=a+8|0;a=ec[c[c[l>>2]>>2]&63](l)|0;c[k>>2]=c[e>>2];e=a+168|0;c[j+0>>2]=c[k+0>>2];k=(Gl(d,j,a,e,g,f,0)|0)-a|0;if((k|0)>=168){i=h;return}c[b>>2]=((k|0)/12|0|0)%7|0;i=h;return}function rn(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;j=i;i=i+16|0;k=j+8|0;l=j+4|0;m=j;Hj(l,f);f=oq(l,8016)|0;Ni(c[l>>2]|0)|0;l=h+16|0;c[m>>2]=c[e>>2];c[k+0>>2]=c[m+0>>2];sn(b,l,d,k,g,f);c[a>>2]=c[d>>2];i=j;return}function sn(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0;h=i;i=i+16|0;j=h+4|0;k=h;l=a+8|0;a=ec[c[(c[l>>2]|0)+4>>2]&63](l)|0;c[k>>2]=c[e>>2];e=a+288|0;c[j+0>>2]=c[k+0>>2];k=(Gl(d,j,a,e,g,f,0)|0)-a|0;if((k|0)>=288){i=h;return}c[b>>2]=((k|0)/12|0|0)%12|0;i=h;return}function tn(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0;b=i;i=i+16|0;j=b+8|0;k=b+4|0;l=b;Hj(k,f);f=oq(k,8016)|0;Ni(c[k>>2]|0)|0;k=h+20|0;c[l>>2]=c[e>>2];c[j+0>>2]=c[l+0>>2];un(0,k,d,j,g,f);c[a>>2]=c[d>>2];i=b;return}function un(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=In(d,h,f,g,4)|0;if(c[f>>2]&4){i=a;return}if((j|0)<69)k=j+2e3|0;else k=(j+ -69|0)>>>0<31?j+1900|0:j;c[b>>2]=k+ -1900;i=a;return}function vn(b,d,e,f,g,h,j,k,l){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0;l=i;i=i+176|0;m=l+156|0;n=l+148|0;o=l+4|0;p=l+72|0;q=l+76|0;r=l;s=l+20|0;t=l+24|0;u=l+28|0;v=l+32|0;w=l+36|0;x=l+40|0;y=l+44|0;z=l+48|0;A=l+52|0;B=l+56|0;C=l+128|0;D=l+136|0;E=l+144|0;F=l+152|0;G=l+160|0;H=l+80|0;I=l+84|0;J=l+88|0;K=l+92|0;L=l+96|0;M=l+100|0;N=l+104|0;O=l+108|0;P=l+112|0;Q=l+116|0;R=l+12|0;S=l+120|0;T=l+60|0;U=l+124|0;V=l+16|0;W=l+64|0;X=l+132|0;Y=l+68|0;Z=l+140|0;_=l+8|0;c[h>>2]=0;Hj(o,g);$=oq(o,8016)|0;Ni(c[o>>2]|0)|0;do switch(k<<24>>24|0){case 99:{o=d+8|0;aa=ec[c[(c[o>>2]|0)+12>>2]&63](o)|0;c[s>>2]=c[e>>2];c[t>>2]=c[f>>2];o=a[aa>>0]|0;if(!(o&1)){ba=aa+4|0;ca=(o&255)>>>1;da=aa+4|0}else{o=c[aa+8>>2]|0;ba=o;ca=c[aa+4>>2]|0;da=o}c[n+0>>2]=c[s+0>>2];c[m+0>>2]=c[t+0>>2];jn(r,d,n,m,g,h,j,da,ba+(ca<<2)|0);c[e>>2]=c[r>>2];break};case 70:{c[z>>2]=c[e>>2];c[A>>2]=c[f>>2];c[n+0>>2]=c[z+0>>2];c[m+0>>2]=c[A+0>>2];jn(y,d,n,m,g,h,j,7144,7176|0);c[e>>2]=c[y>>2];break};case 120:{o=c[(c[d>>2]|0)+20>>2]|0;c[T>>2]=c[e>>2];c[U>>2]=c[f>>2];c[n+0>>2]=c[T+0>>2];c[m+0>>2]=c[U+0>>2];$b[o&63](b,d,n,m,g,h,j);i=l;return};case 101:case 100:{c[u>>2]=c[f>>2];c[m+0>>2]=c[u+0>>2];wn(0,j+12|0,e,m,h,$);break};case 73:{c[C>>2]=c[f>>2];c[m+0>>2]=c[C+0>>2];yn(0,j+8|0,e,m,h,$);break};case 88:{o=d+8|0;aa=ec[c[(c[o>>2]|0)+24>>2]&63](o)|0;c[W>>2]=c[e>>2];c[X>>2]=c[f>>2];o=a[aa>>0]|0;if(!(o&1)){ea=aa+4|0;fa=(o&255)>>>1;ga=aa+4|0}else{o=c[aa+8>>2]|0;ea=o;fa=c[aa+4>>2]|0;ga=o}c[n+0>>2]=c[W+0>>2];c[m+0>>2]=c[X+0>>2];jn(V,d,n,m,g,h,j,ga,ea+(fa<<2)|0);c[e>>2]=c[V>>2];break};case 72:{c[B>>2]=c[f>>2];c[m+0>>2]=c[B+0>>2];xn(0,j+8|0,e,m,h,$);break};case 84:{c[Q>>2]=c[e>>2];c[R>>2]=c[f>>2];c[n+0>>2]=c[Q+0>>2];c[m+0>>2]=c[R+0>>2];jn(P,d,n,m,g,h,j,7248,7280|0);c[e>>2]=c[P>>2];break};case 119:{c[S>>2]=c[f>>2];c[m+0>>2]=c[S+0>>2];Fn(0,j+24|0,e,m,h,$);break};case 116:case 110:{c[G>>2]=c[f>>2];c[m+0>>2]=c[G+0>>2];Cn(0,e,m,h,$);break};case 121:{c[Y>>2]=c[f>>2];c[m+0>>2]=c[Y+0>>2];un(0,j+20|0,e,m,h,$);break};case 83:{c[O>>2]=c[f>>2];c[m+0>>2]=c[O+0>>2];En(0,j,e,m,h,$);break};case 112:{c[H>>2]=c[f>>2];c[m+0>>2]=c[H+0>>2];Dn(d,j+8|0,e,m,h,$);break};case 104:case 66:case 98:{c[q>>2]=c[f>>2];c[m+0>>2]=c[q+0>>2];sn(d,j+16|0,e,m,h,$);break};case 89:{c[Z>>2]=c[f>>2];c[m+0>>2]=c[Z+0>>2];Gn(0,j+20|0,e,m,h,$);break};case 82:{c[M>>2]=c[e>>2];c[N>>2]=c[f>>2];c[n+0>>2]=c[M+0>>2];c[m+0>>2]=c[N+0>>2];jn(L,d,n,m,g,h,j,7224,7244|0);c[e>>2]=c[L>>2];break};case 109:{c[E>>2]=c[f>>2];c[m+0>>2]=c[E+0>>2];An(0,j+16|0,e,m,h,$);break};case 65:case 97:{c[p>>2]=c[f>>2];c[m+0>>2]=c[p+0>>2];qn(d,j+24|0,e,m,h,$);break};case 77:{c[F>>2]=c[f>>2];c[m+0>>2]=c[F+0>>2];Bn(0,j+4|0,e,m,h,$);break};case 114:{c[J>>2]=c[e>>2];c[K>>2]=c[f>>2];c[n+0>>2]=c[J+0>>2];c[m+0>>2]=c[K+0>>2];jn(I,d,n,m,g,h,j,7176,7220|0);c[e>>2]=c[I>>2];break};case 37:{c[_>>2]=c[f>>2];c[m+0>>2]=c[_+0>>2];Hn(0,e,m,h,$);break};case 68:{c[w>>2]=c[e>>2];c[x>>2]=c[f>>2];c[n+0>>2]=c[w+0>>2];c[m+0>>2]=c[x+0>>2];jn(v,d,n,m,g,h,j,7112,7144|0);c[e>>2]=c[v>>2];break};case 106:{c[D>>2]=c[f>>2];c[m+0>>2]=c[D+0>>2];zn(0,j+28|0,e,m,h,$);break};default:c[h>>2]=c[h>>2]|4}while(0);c[b>>2]=c[e>>2];i=l;return}function wn(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=In(d,h,f,g,2)|0;g=c[f>>2]|0;if((g&4|0)==0?(j+ -1|0)>>>0<31:0){c[b>>2]=j;i=a;return}c[f>>2]=g|4;i=a;return}function xn(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=In(d,h,f,g,2)|0;g=c[f>>2]|0;if((g&4|0)==0&(j|0)<24){c[b>>2]=j;i=a;return}else{c[f>>2]=g|4;i=a;return}}function yn(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=In(d,h,f,g,2)|0;g=c[f>>2]|0;if((g&4|0)==0?(j+ -1|0)>>>0<12:0){c[b>>2]=j;i=a;return}c[f>>2]=g|4;i=a;return}function zn(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=In(d,h,f,g,3)|0;g=c[f>>2]|0;if((g&4|0)==0&(j|0)<366){c[b>>2]=j;i=a;return}else{c[f>>2]=g|4;i=a;return}}function An(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=In(d,h,f,g,2)|0;g=c[f>>2]|0;if((g&4|0)==0&(j|0)<13){c[b>>2]=j+ -1;i=a;return}else{c[f>>2]=g|4;i=a;return}}function Bn(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=In(d,h,f,g,2)|0;g=c[f>>2]|0;if((g&4|0)==0&(j|0)<60){c[b>>2]=j;i=a;return}else{c[f>>2]=g|4;i=a;return}}function Cn(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;a=i;a:while(1){g=c[b>>2]|0;do if(g){h=c[g+12>>2]|0;if((h|0)==(c[g+16>>2]|0))j=ec[c[(c[g>>2]|0)+36>>2]&63](g)|0;else j=c[h>>2]|0;if((j|0)==-1){c[b>>2]=0;k=1;break}else{k=(c[b>>2]|0)==0;break}}else k=1;while(0);g=c[d>>2]|0;do if(g){h=c[g+12>>2]|0;if((h|0)==(c[g+16>>2]|0))l=ec[c[(c[g>>2]|0)+36>>2]&63](g)|0;else l=c[h>>2]|0;if((l|0)!=-1)if(k){m=g;break}else{n=g;break a}else{c[d>>2]=0;o=15;break}}else o=15;while(0);if((o|0)==15){o=0;if(k){n=0;break}else m=0}g=c[b>>2]|0;h=c[g+12>>2]|0;if((h|0)==(c[g+16>>2]|0))p=ec[c[(c[g>>2]|0)+36>>2]&63](g)|0;else p=c[h>>2]|0;if(!(_b[c[(c[f>>2]|0)+12>>2]&31](f,8192,p)|0)){n=m;break}h=c[b>>2]|0;g=h+12|0;q=c[g>>2]|0;if((q|0)==(c[h+16>>2]|0)){ec[c[(c[h>>2]|0)+40>>2]&63](h)|0;continue}else{c[g>>2]=q+4;continue}}m=c[b>>2]|0;do if(m){p=c[m+12>>2]|0;if((p|0)==(c[m+16>>2]|0))r=ec[c[(c[m>>2]|0)+36>>2]&63](m)|0;else r=c[p>>2]|0;if((r|0)==-1){c[b>>2]=0;s=1;break}else{s=(c[b>>2]|0)==0;break}}else s=1;while(0);do if(n){b=c[n+12>>2]|0;if((b|0)==(c[n+16>>2]|0))t=ec[c[(c[n>>2]|0)+36>>2]&63](n)|0;else t=c[b>>2]|0;if((t|0)==-1){c[d>>2]=0;o=37;break}if(s){i=a;return}}else o=37;while(0);if((o|0)==37?!s:0){i=a;return}c[e>>2]=c[e>>2]|2;i=a;return}function Dn(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0;j=i;i=i+16|0;k=j+4|0;l=j;m=b+8|0;b=ec[c[(c[m>>2]|0)+8>>2]&63](m)|0;m=a[b>>0]|0;if(!(m&1))n=(m&255)>>>1;else n=c[b+4>>2]|0;m=a[b+12>>0]|0;if(!(m&1))o=(m&255)>>>1;else o=c[b+16>>2]|0;if((n|0)==(0-o|0)){c[g>>2]=c[g>>2]|4;i=j;return}c[l>>2]=c[f>>2];f=b+24|0;c[k+0>>2]=c[l+0>>2];l=Gl(e,k,b,f,h,g,0)|0;g=l-b|0;if((l|0)==(b|0)?(c[d>>2]|0)==12:0){c[d>>2]=0;i=j;return}if((g|0)!=12){i=j;return}g=c[d>>2]|0;if((g|0)>=12){i=j;return}c[d>>2]=g+12;i=j;return}function En(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=In(d,h,f,g,2)|0;g=c[f>>2]|0;if((g&4|0)==0&(j|0)<61){c[b>>2]=j;i=a;return}else{c[f>>2]=g|4;i=a;return}}function Fn(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=In(d,h,f,g,1)|0;g=c[f>>2]|0;if((g&4|0)==0&(j|0)<7){c[b>>2]=j;i=a;return}else{c[f>>2]=g|4;i=a;return}}function Gn(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;a=i;i=i+16|0;h=a+4|0;j=a;c[j>>2]=c[e>>2];c[h+0>>2]=c[j+0>>2];j=In(d,h,f,g,4)|0;if(c[f>>2]&4){i=a;return}c[b>>2]=j+ -1900;i=a;return}function Hn(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a=i;g=c[b>>2]|0;do if(g){h=c[g+12>>2]|0;if((h|0)==(c[g+16>>2]|0))j=ec[c[(c[g>>2]|0)+36>>2]&63](g)|0;else j=c[h>>2]|0;if((j|0)==-1){c[b>>2]=0;k=1;break}else{k=(c[b>>2]|0)==0;break}}else k=1;while(0);j=c[d>>2]|0;do if(j){g=c[j+12>>2]|0;if((g|0)==(c[j+16>>2]|0))l=ec[c[(c[j>>2]|0)+36>>2]&63](j)|0;else l=c[g>>2]|0;if((l|0)!=-1)if(k){m=j;break}else{n=16;break}else{c[d>>2]=0;n=14;break}}else n=14;while(0);if((n|0)==14)if(k)n=16;else m=0;if((n|0)==16){c[e>>2]=c[e>>2]|6;i=a;return}k=c[b>>2]|0;j=c[k+12>>2]|0;if((j|0)==(c[k+16>>2]|0))o=ec[c[(c[k>>2]|0)+36>>2]&63](k)|0;else o=c[j>>2]|0;if((_b[c[(c[f>>2]|0)+52>>2]&31](f,o,0)|0)<<24>>24!=37){c[e>>2]=c[e>>2]|4;i=a;return}o=c[b>>2]|0;f=o+12|0;j=c[f>>2]|0;if((j|0)==(c[o+16>>2]|0))ec[c[(c[o>>2]|0)+40>>2]&63](o)|0;else c[f>>2]=j+4;j=c[b>>2]|0;do if(j){f=c[j+12>>2]|0;if((f|0)==(c[j+16>>2]|0))p=ec[c[(c[j>>2]|0)+36>>2]&63](j)|0;else p=c[f>>2]|0;if((p|0)==-1){c[b>>2]=0;q=1;break}else{q=(c[b>>2]|0)==0;break}}else q=1;while(0);do if(m){b=c[m+12>>2]|0;if((b|0)==(c[m+16>>2]|0))r=ec[c[(c[m>>2]|0)+36>>2]&63](m)|0;else r=c[b>>2]|0;if((r|0)==-1){c[d>>2]=0;n=38;break}if(q){i=a;return}}else n=38;while(0);if((n|0)==38?!q:0){i=a;return}c[e>>2]=c[e>>2]|2;i=a;return}function In(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;g=i;h=c[a>>2]|0;do if(h){j=c[h+12>>2]|0;if((j|0)==(c[h+16>>2]|0))k=ec[c[(c[h>>2]|0)+36>>2]&63](h)|0;else k=c[j>>2]|0;if((k|0)==-1){c[a>>2]=0;l=1;break}else{l=(c[a>>2]|0)==0;break}}else l=1;while(0);k=c[b>>2]|0;do if(k){h=c[k+12>>2]|0;if((h|0)==(c[k+16>>2]|0))m=ec[c[(c[k>>2]|0)+36>>2]&63](k)|0;else m=c[h>>2]|0;if((m|0)!=-1)if(l){n=k;break}else{o=16;break}else{c[b>>2]=0;o=14;break}}else o=14;while(0);if((o|0)==14)if(l)o=16;else n=0;if((o|0)==16){c[d>>2]=c[d>>2]|6;p=0;i=g;return p|0}l=c[a>>2]|0;k=c[l+12>>2]|0;if((k|0)==(c[l+16>>2]|0))q=ec[c[(c[l>>2]|0)+36>>2]&63](l)|0;else q=c[k>>2]|0;if(!(_b[c[(c[e>>2]|0)+12>>2]&31](e,2048,q)|0)){c[d>>2]=c[d>>2]|4;p=0;i=g;return p|0}k=(_b[c[(c[e>>2]|0)+52>>2]&31](e,q,0)|0)<<24>>24;q=c[a>>2]|0;l=q+12|0;m=c[l>>2]|0;if((m|0)==(c[q+16>>2]|0)){ec[c[(c[q>>2]|0)+40>>2]&63](q)|0;r=f;s=n;t=n;u=k}else{c[l>>2]=m+4;r=f;s=n;t=n;u=k}while(1){v=u+ -48|0;k=r+ -1|0;n=c[a>>2]|0;do if(n){f=c[n+12>>2]|0;if((f|0)==(c[n+16>>2]|0))w=ec[c[(c[n>>2]|0)+36>>2]&63](n)|0;else w=c[f>>2]|0;if((w|0)==-1){c[a>>2]=0;x=1;break}else{x=(c[a>>2]|0)==0;break}}else x=1;while(0);do if(t){n=c[t+12>>2]|0;if((n|0)==(c[t+16>>2]|0))y=ec[c[(c[t>>2]|0)+36>>2]&63](t)|0;else y=c[n>>2]|0;if((y|0)==-1){c[b>>2]=0;z=0;A=0;B=1;break}else{z=s;A=s;B=(s|0)==0;break}}else{z=s;A=0;B=1}while(0);C=c[a>>2]|0;if(!((x^B)&(k|0)>0))break;n=c[C+12>>2]|0;if((n|0)==(c[C+16>>2]|0))D=ec[c[(c[C>>2]|0)+36>>2]&63](C)|0;else D=c[n>>2]|0;if(!(_b[c[(c[e>>2]|0)+12>>2]&31](e,2048,D)|0)){p=v;o=63;break}n=((_b[c[(c[e>>2]|0)+52>>2]&31](e,D,0)|0)<<24>>24)+(v*10|0)|0;f=c[a>>2]|0;m=f+12|0;l=c[m>>2]|0;if((l|0)==(c[f+16>>2]|0)){ec[c[(c[f>>2]|0)+40>>2]&63](f)|0;r=k;s=z;t=A;u=n;continue}else{c[m>>2]=l+4;r=k;s=z;t=A;u=n;continue}}if((o|0)==63){i=g;return p|0}do if(C){u=c[C+12>>2]|0;if((u|0)==(c[C+16>>2]|0))E=ec[c[(c[C>>2]|0)+36>>2]&63](C)|0;else E=c[u>>2]|0;if((E|0)==-1){c[a>>2]=0;F=1;break}else{F=(c[a>>2]|0)==0;break}}else F=1;while(0);do if(z){a=c[z+12>>2]|0;if((a|0)==(c[z+16>>2]|0))G=ec[c[(c[z>>2]|0)+36>>2]&63](z)|0;else G=c[a>>2]|0;if((G|0)==-1){c[b>>2]=0;o=60;break}if(F){p=v;i=g;return p|0}}else o=60;while(0);if((o|0)==60?!F:0){p=v;i=g;return p|0}c[d>>2]=c[d>>2]|2;p=v;i=g;return p|0}function Jn(a){a=a|0;var b=0;b=i;Ln(a+8|0);kt(a);i=b;return}function Kn(a){a=a|0;var b=0;b=i;Ln(a+8|0);i=b;return}function Ln(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)==(Cl()|0)){i=b;return}fb(c[a>>2]|0);i=b;return}function Mn(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0;g=i;i=i+112|0;f=g+4|0;l=g;c[l>>2]=f+100;Nn(d+8|0,f,l,h,j,k);k=c[l>>2]|0;l=c[e>>2]|0;if((f|0)==(k|0)){m=l;c[b>>2]=m;i=g;return}else{n=f;o=l;p=l}while(1){l=a[n>>0]|0;do if(p){f=p+24|0;e=c[f>>2]|0;if((e|0)==(c[p+28>>2]|0)){j=(nc[c[(c[p>>2]|0)+52>>2]&15](p,l&255)|0)==-1;q=j?0:o;r=j?0:p;break}else{c[f>>2]=e+1;a[e>>0]=l;q=o;r=p;break}}else{q=o;r=0}while(0);n=n+1|0;if((n|0)==(k|0)){m=q;break}else{o=q;p=r}}c[b>>2]=m;i=g;return}function Nn(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;j=i;i=i+16|0;k=j;a[k>>0]=37;l=k+1|0;a[l>>0]=g;m=k+2|0;a[m>>0]=h;a[k+3>>0]=0;if(h<<24>>24){a[l>>0]=h;a[m>>0]=g}c[e>>2]=d+(Va(d|0,(c[e>>2]|0)-d|0,k|0,f|0,c[b>>2]|0)|0);i=j;return}function On(a){a=a|0;var b=0;b=i;Ln(a+8|0);kt(a);i=b;return}function Pn(a){a=a|0;var b=0;b=i;Ln(a+8|0);i=b;return}function Qn(a,b,d,e,f,g,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;f=i;i=i+416|0;e=f+8|0;k=f;c[k>>2]=e+400;Rn(b+8|0,e,k,g,h,j);j=c[k>>2]|0;k=c[d>>2]|0;if((e|0)==(j|0)){l=k;c[a>>2]=l;i=f;return}else{m=e;n=k;o=k}while(1){k=c[m>>2]|0;if(!o){p=n;q=0}else{e=o+24|0;d=c[e>>2]|0;if((d|0)==(c[o+28>>2]|0))r=nc[c[(c[o>>2]|0)+52>>2]&15](o,k)|0;else{c[e>>2]=d+4;c[d>>2]=k;r=k}k=(r|0)==-1;p=k?0:n;q=k?0:o}m=m+4|0;if((m|0)==(j|0)){l=p;break}else{n=p;o=q}}c[a>>2]=l;i=f;return}function Rn(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+128|0;j=h+16|0;k=h+12|0;l=h;m=h+8|0;c[k>>2]=j+100;Nn(a,j,k,e,f,g);g=l;c[g>>2]=0;c[g+4>>2]=0;c[m>>2]=j;j=(c[d>>2]|0)-b>>2;g=Za(c[a>>2]|0)|0;a=Rs(b,m,j,l)|0;if(g)Za(g|0)|0;if((a|0)==-1)Oo(8904);else{c[d>>2]=b+(a<<2);i=h;return}}function Sn(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function Tn(a){a=a|0;return}function Un(a){a=a|0;return 127}function Vn(a){a=a|0;return 127}function Wn(a,b){a=a|0;b=b|0;b=i;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;i=b;return}function Xn(a,b){a=a|0;b=b|0;b=i;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;i=b;return}function Yn(a,b){a=a|0;b=b|0;b=i;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;i=b;return}function Zn(a,b){a=a|0;b=b|0;b=i;ej(a,1,45);i=b;return}function _n(a){a=a|0;return 0}function $n(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function ao(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function bo(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function co(a){a=a|0;return}function eo(a){a=a|0;return 127}function fo(a){a=a|0;return 127}function go(a,b){a=a|0;b=b|0;b=i;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;i=b;return}function ho(a,b){a=a|0;b=b|0;b=i;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;i=b;return}function io(a,b){a=a|0;b=b|0;b=i;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;i=b;return}function jo(a,b){a=a|0;b=b|0;b=i;ej(a,1,45);i=b;return}function ko(a){a=a|0;return 0}function lo(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function mo(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function no(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function oo(a){a=a|0;return}function po(a){a=a|0;return 2147483647}function qo(a){a=a|0;return 2147483647}function ro(a,b){a=a|0;b=b|0;b=i;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;i=b;return}function so(a,b){a=a|0;b=b|0;b=i;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;i=b;return}function to(a,b){a=a|0;b=b|0;b=i;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;i=b;return}function uo(a,b){a=a|0;b=b|0;b=i;tj(a,1,45);i=b;return}function vo(a){a=a|0;return 0}function wo(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function xo(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function yo(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function zo(a){a=a|0;return}function Ao(a){a=a|0;return 2147483647}function Bo(a){a=a|0;return 2147483647}function Co(a,b){a=a|0;b=b|0;b=i;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;i=b;return}function Do(a,b){a=a|0;b=b|0;b=i;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;i=b;return}function Eo(a,b){a=a|0;b=b|0;b=i;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;i=b;return}function Fo(a,b){a=a|0;b=b|0;b=i;tj(a,1,45);i=b;return}function Go(a){a=a|0;return 0}function Ho(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function Io(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function Jo(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function Ko(a){a=a|0;return}function Lo(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;d=i;i=i+240|0;l=d;m=d+136|0;n=d+8|0;o=d+4|0;p=d+20|0;q=d+236|0;r=d+16|0;s=d+124|0;t=d+24|0;c[n>>2]=m;u=n+4|0;c[u>>2]=112;v=m+100|0;Hj(p,h);m=oq(p,8024)|0;a[q>>0]=0;c[r>>2]=c[f>>2];w=c[h+4>>2]|0;c[l+0>>2]=c[r+0>>2];do if(No(e,l,g,p,w,j,q,m,n,o,v)|0){kc[c[(c[m>>2]|0)+32>>2]&7](m,7640,7650,s)|0;r=c[o>>2]|0;h=c[n>>2]|0;x=r-h|0;if((x|0)>98){y=fu(x+2|0)|0;if(!y)eu();else{z=y;A=y}}else{z=0;A=t}if(!(a[q>>0]|0))B=A;else{a[A>>0]=45;B=A+1|0}if(h>>>0>>0){r=s+10|0;y=s;x=B;C=h;while(1){h=a[C>>0]|0;D=s;while(1){if((a[D>>0]|0)==h<<24>>24){E=D;break}D=D+1|0;if((D|0)==(r|0)){E=r;break}}a[x>>0]=a[7640+(E-y)>>0]|0;C=C+1|0;D=x+1|0;if(C>>>0>=(c[o>>2]|0)>>>0){F=D;break}else x=D}}else F=B;a[F>>0]=0;c[l>>2]=k;if((Ws(t,7656,l)|0)==1){gu(z);break}else Oo(7664)}while(0);z=c[e>>2]|0;do if(z)if((c[z+12>>2]|0)==(c[z+16>>2]|0))if((ec[c[(c[z>>2]|0)+36>>2]&63](z)|0)==-1){c[e>>2]=0;G=0;break}else{G=c[e>>2]|0;break}else G=z;else G=0;while(0);z=(G|0)==0;G=c[f>>2]|0;do if(G){if((c[G+12>>2]|0)!=(c[G+16>>2]|0))if(z)break;else{H=28;break}if((ec[c[(c[G>>2]|0)+36>>2]&63](G)|0)!=-1)if(z)break;else{H=28;break}else{c[f>>2]=0;H=26;break}}else H=26;while(0);if((H|0)==26?z:0)H=28;if((H|0)==28)c[j>>2]=c[j>>2]|2;c[b>>2]=c[e>>2];Ni(c[p>>2]|0)|0;p=c[n>>2]|0;c[n>>2]=0;if(!p){i=d;return}bc[c[u>>2]&127](p);i=d;return}function Mo(a){a=a|0;return}function No(e,f,g,h,j,k,l,m,n,o,p){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0;q=i;i=i+496|0;r=q+488|0;s=q+24|0;t=q+472|0;u=q+440|0;v=q+468|0;w=q+480|0;x=q+492|0;y=q+493|0;z=q;A=q+444|0;B=q+12|0;C=q+456|0;D=q+424|0;E=q+436|0;F=q+484|0;c[r>>2]=p;c[t>>2]=s;p=t+4|0;c[p>>2]=112;c[u>>2]=s;c[v>>2]=s+400;c[w>>2]=0;c[z+0>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;c[A+0>>2]=0;c[A+4>>2]=0;c[A+8>>2]=0;c[B+0>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;c[C+0>>2]=0;c[C+4>>2]=0;c[C+8>>2]=0;c[D+0>>2]=0;c[D+4>>2]=0;c[D+8>>2]=0;Ro(g,h,w,x,y,z,A,B,C,E);c[o>>2]=c[n>>2];h=m+8|0;m=C+1|0;g=C+4|0;G=C+8|0;H=B+1|0;I=B+4|0;J=B+8|0;K=(j&512|0)!=0;j=A+1|0;L=A+8|0;M=A+4|0;N=D+1|0;O=D+8|0;P=D+4|0;Q=w+3|0;R=z+4|0;S=s;s=0;T=0;a:while(1){U=c[e>>2]|0;do if(U)if((c[U+12>>2]|0)==(c[U+16>>2]|0))if((ec[c[(c[U>>2]|0)+36>>2]&63](U)|0)==-1){c[e>>2]=0;V=0;break}else{V=c[e>>2]|0;break}else V=U;else V=0;while(0);U=(V|0)==0;W=c[f>>2]|0;do if(W){if((c[W+12>>2]|0)!=(c[W+16>>2]|0))if(U){X=W;break}else{Y=S;Z=W;_=T;$=250;break a}if((ec[c[(c[W>>2]|0)+36>>2]&63](W)|0)!=-1)if(U){X=W;break}else{Y=S;Z=W;_=T;$=250;break a}else{c[f>>2]=0;$=12;break}}else $=12;while(0);if(($|0)==12){$=0;if(U){Y=S;Z=0;_=T;$=250;break}else X=0}b:do switch(a[w+s>>0]|0){case 3:{W=a[B>>0]|0;aa=(W&1)==0;if(aa)ba=(W&255)>>>1;else ba=c[I>>2]|0;ca=a[C>>0]|0;da=(ca&1)==0;if(da)ea=(ca&255)>>>1;else ea=c[g>>2]|0;if((ba|0)==(0-ea|0)){fa=X;ga=S;ha=T}else{if(aa)ia=(W&255)>>>1;else ia=c[I>>2]|0;if(ia){if(da)ja=(ca&255)>>>1;else ja=c[g>>2]|0;if(ja){da=c[e>>2]|0;ka=c[da+12>>2]|0;if((ka|0)==(c[da+16>>2]|0)){la=ec[c[(c[da>>2]|0)+36>>2]&63](da)|0;ma=la;na=a[B>>0]|0}else{ma=d[ka>>0]|0;na=W}ka=c[e>>2]|0;la=ka+12|0;da=c[la>>2]|0;oa=(da|0)==(c[ka+16>>2]|0);if((ma&255)<<24>>24==(a[((na&1)==0?H:c[J>>2]|0)>>0]|0)){if(oa)ec[c[(c[ka>>2]|0)+40>>2]&63](ka)|0;else c[la>>2]=da+1;la=a[B>>0]|0;if(!(la&1))pa=(la&255)>>>1;else pa=c[I>>2]|0;fa=X;ga=S;ha=pa>>>0>1?B:T;break b}if(oa)qa=ec[c[(c[ka>>2]|0)+36>>2]&63](ka)|0;else qa=d[da>>0]|0;if((qa&255)<<24>>24!=(a[((a[C>>0]&1)==0?m:c[G>>2]|0)>>0]|0)){$=113;break a}da=c[e>>2]|0;ka=da+12|0;oa=c[ka>>2]|0;if((oa|0)==(c[da+16>>2]|0))ec[c[(c[da>>2]|0)+40>>2]&63](da)|0;else c[ka>>2]=oa+1;a[l>>0]=1;oa=a[C>>0]|0;if(!(oa&1))ra=(oa&255)>>>1;else ra=c[g>>2]|0;fa=X;ga=S;ha=ra>>>0>1?C:T;break b}}if(aa)sa=(W&255)>>>1;else sa=c[I>>2]|0;aa=c[e>>2]|0;oa=c[aa+12>>2]|0;ka=(oa|0)==(c[aa+16>>2]|0);if(!sa){if(ka){da=ec[c[(c[aa>>2]|0)+36>>2]&63](aa)|0;ta=da;ua=a[C>>0]|0}else{ta=d[oa>>0]|0;ua=ca}if((ta&255)<<24>>24!=(a[((ua&1)==0?m:c[G>>2]|0)>>0]|0)){fa=X;ga=S;ha=T;break b}ca=c[e>>2]|0;da=ca+12|0;la=c[da>>2]|0;if((la|0)==(c[ca+16>>2]|0))ec[c[(c[ca>>2]|0)+40>>2]&63](ca)|0;else c[da>>2]=la+1;a[l>>0]=1;la=a[C>>0]|0;if(!(la&1))va=(la&255)>>>1;else va=c[g>>2]|0;fa=X;ga=S;ha=va>>>0>1?C:T;break b}if(ka){ka=ec[c[(c[aa>>2]|0)+36>>2]&63](aa)|0;wa=ka;xa=a[B>>0]|0}else{wa=d[oa>>0]|0;xa=W}if((wa&255)<<24>>24!=(a[((xa&1)==0?H:c[J>>2]|0)>>0]|0)){a[l>>0]=1;fa=X;ga=S;ha=T;break b}W=c[e>>2]|0;oa=W+12|0;ka=c[oa>>2]|0;if((ka|0)==(c[W+16>>2]|0))ec[c[(c[W>>2]|0)+40>>2]&63](W)|0;else c[oa>>2]=ka+1;ka=a[B>>0]|0;if(!(ka&1))ya=(ka&255)>>>1;else ya=c[I>>2]|0;fa=X;ga=S;ha=ya>>>0>1?B:T}break};case 4:{ka=a[y>>0]|0;oa=X;W=X;aa=S;la=0;c:while(1){da=c[e>>2]|0;do if(da)if((c[da+12>>2]|0)==(c[da+16>>2]|0))if((ec[c[(c[da>>2]|0)+36>>2]&63](da)|0)==-1){c[e>>2]=0;za=0;break}else{za=c[e>>2]|0;break}else za=da;else za=0;while(0);da=(za|0)==0;do if(W){if((c[W+12>>2]|0)!=(c[W+16>>2]|0))if(da){Aa=oa;Ba=W;break}else{Ca=oa;break c}if((ec[c[(c[W>>2]|0)+36>>2]&63](W)|0)!=-1)if(da^(oa|0)==0){Aa=oa;Ba=oa;break}else{Ca=oa;break c}else{c[f>>2]=0;Da=0;$=175;break}}else{Da=oa;$=175}while(0);if(($|0)==175){$=0;if(da){Ca=Da;break}else{Aa=Da;Ba=0}}ca=c[e>>2]|0;Ea=c[ca+12>>2]|0;if((Ea|0)==(c[ca+16>>2]|0))Fa=ec[c[(c[ca>>2]|0)+36>>2]&63](ca)|0;else Fa=d[Ea>>0]|0;Ea=Fa&255;if(Ea<<24>>24>-1?(b[(c[h>>2]|0)+(Fa<<24>>24<<1)>>1]&2048)!=0:0){ca=c[o>>2]|0;if((ca|0)==(c[r>>2]|0)){So(n,o,r);Ga=c[o>>2]|0}else Ga=ca;c[o>>2]=Ga+1;a[Ga>>0]=Ea;Ha=aa;Ia=la+1|0}else{ca=a[z>>0]|0;if(!(ca&1))Ja=(ca&255)>>>1;else Ja=c[R>>2]|0;if(!((la|0)!=0&(Ja|0)!=0&Ea<<24>>24==ka<<24>>24)){Ca=Aa;break}if((aa|0)==(c[v>>2]|0)){To(t,u,v);Ka=c[u>>2]|0}else Ka=aa;Ea=Ka+4|0;c[u>>2]=Ea;c[Ka>>2]=la;Ha=Ea;Ia=0}Ea=c[e>>2]|0;ca=Ea+12|0;La=c[ca>>2]|0;if((La|0)==(c[Ea+16>>2]|0)){ec[c[(c[Ea>>2]|0)+40>>2]&63](Ea)|0;oa=Aa;W=Ba;aa=Ha;la=Ia;continue}else{c[ca>>2]=La+1;oa=Aa;W=Ba;aa=Ha;la=Ia;continue}}if((la|0)==0?1:(c[t>>2]|0)==(aa|0))Ma=aa;else{if((aa|0)==(c[v>>2]|0)){To(t,u,v);Na=c[u>>2]|0}else Na=aa;W=Na+4|0;c[u>>2]=W;c[Na>>2]=la;Ma=W}W=c[E>>2]|0;if((W|0)>0){oa=c[e>>2]|0;do if(oa)if((c[oa+12>>2]|0)==(c[oa+16>>2]|0))if((ec[c[(c[oa>>2]|0)+36>>2]&63](oa)|0)==-1){c[e>>2]=0;Oa=0;break}else{Oa=c[e>>2]|0;break}else Oa=oa;else Oa=0;while(0);oa=(Oa|0)==0;do if(Ca){if((c[Ca+12>>2]|0)!=(c[Ca+16>>2]|0))if(oa){Pa=Ca;break}else{$=216;break a}if((ec[c[(c[Ca>>2]|0)+36>>2]&63](Ca)|0)!=-1)if(oa^(Ca|0)==0){Pa=Ca;break}else{$=216;break a}else{c[f>>2]=0;$=210;break}}else $=210;while(0);if(($|0)==210){$=0;if(oa){$=216;break a}else Pa=0}la=c[e>>2]|0;aa=c[la+12>>2]|0;if((aa|0)==(c[la+16>>2]|0))Qa=ec[c[(c[la>>2]|0)+36>>2]&63](la)|0;else Qa=d[aa>>0]|0;if((Qa&255)<<24>>24!=(a[x>>0]|0)){$=216;break a}aa=c[e>>2]|0;la=aa+12|0;ka=c[la>>2]|0;if((ka|0)==(c[aa+16>>2]|0)){ec[c[(c[aa>>2]|0)+40>>2]&63](aa)|0;Ra=Pa;Sa=Pa;Ta=W}else{c[la>>2]=ka+1;Ra=Pa;Sa=Pa;Ta=W}while(1){ka=c[e>>2]|0;do if(ka)if((c[ka+12>>2]|0)==(c[ka+16>>2]|0))if((ec[c[(c[ka>>2]|0)+36>>2]&63](ka)|0)==-1){c[e>>2]=0;Ua=0;break}else{Ua=c[e>>2]|0;break}else Ua=ka;else Ua=0;while(0);ka=(Ua|0)==0;do if(Sa){if((c[Sa+12>>2]|0)!=(c[Sa+16>>2]|0))if(ka){Va=Ra;Wa=Sa;break}else{$=237;break a}if((ec[c[(c[Sa>>2]|0)+36>>2]&63](Sa)|0)!=-1)if(ka^(Ra|0)==0){Va=Ra;Wa=Ra;break}else{$=237;break a}else{c[f>>2]=0;Xa=0;$=230;break}}else{Xa=Ra;$=230}while(0);if(($|0)==230){$=0;if(ka){$=237;break a}else{Va=Xa;Wa=0}}da=c[e>>2]|0;la=c[da+12>>2]|0;if((la|0)==(c[da+16>>2]|0))Ya=ec[c[(c[da>>2]|0)+36>>2]&63](da)|0;else Ya=d[la>>0]|0;if((Ya&255)<<24>>24<=-1){$=237;break a}if(!(b[(c[h>>2]|0)+(Ya<<24>>24<<1)>>1]&2048)){$=237;break a}if((c[o>>2]|0)==(c[r>>2]|0))So(n,o,r);la=c[e>>2]|0;da=c[la+12>>2]|0;if((da|0)==(c[la+16>>2]|0))Za=ec[c[(c[la>>2]|0)+36>>2]&63](la)|0;else Za=d[da>>0]|0;da=c[o>>2]|0;c[o>>2]=da+1;a[da>>0]=Za;Ta=Ta+ -1|0;c[E>>2]=Ta;da=c[e>>2]|0;la=da+12|0;aa=c[la>>2]|0;if((aa|0)==(c[da+16>>2]|0))ec[c[(c[da>>2]|0)+40>>2]&63](da)|0;else c[la>>2]=aa+1;if((Ta|0)<=0){_a=Va;break}else{Ra=Va;Sa=Wa}}}else _a=Ca;if((c[o>>2]|0)==(c[n>>2]|0)){$=248;break a}else{fa=_a;ga=Ma;ha=T}break};case 1:{if((s|0)==3){Y=S;Z=X;_=T;$=250;break a}W=c[e>>2]|0;oa=c[W+12>>2]|0;if((oa|0)==(c[W+16>>2]|0))$a=ec[c[(c[W>>2]|0)+36>>2]&63](W)|0;else $a=d[oa>>0]|0;if(($a&255)<<24>>24<=-1){$=26;break a}if(!(b[(c[h>>2]|0)+($a<<24>>24<<1)>>1]&8192)){$=26;break a}oa=c[e>>2]|0;W=oa+12|0;aa=c[W>>2]|0;if((aa|0)==(c[oa+16>>2]|0))ab=ec[c[(c[oa>>2]|0)+40>>2]&63](oa)|0;else{c[W>>2]=aa+1;ab=d[aa>>0]|0}oj(D,ab&255);$=27;break};case 2:{if(!((T|0)!=0|s>>>0<2)){if((s|0)==2)bb=(a[Q>>0]|0)!=0;else bb=0;if(!(K|bb)){fa=X;ga=S;ha=0;break b}}aa=a[A>>0]|0;W=(aa&1)==0;oa=W?j:c[L>>2]|0;d:do if((s|0)!=0?(d[w+(s+ -1)>>0]|0)<2:0){la=(aa&255)>>>1;da=c[L>>2]|0;La=c[M>>2]|0;ca=oa;while(1){if((ca|0)==((W?j:da)+(W?la:La)|0))break;Ea=a[ca>>0]|0;if(Ea<<24>>24<=-1)break;if(!(b[(c[h>>2]|0)+(Ea<<24>>24<<1)>>1]&8192))break;else ca=ca+1|0}La=ca-(W?j:da)|0;la=a[D>>0]|0;ka=(la&1)==0;if(ka)cb=(la&255)>>>1;else cb=c[P>>2]|0;e:do if(La>>>0<=cb>>>0){if(ka){db=N;eb=(la&255)>>>1;fb=D+(((la&255)>>>1)-La)+1|0}else{Ea=c[O>>2]|0;gb=c[P>>2]|0;db=Ea;eb=gb;fb=Ea+(gb-La)|0}gb=db+eb|0;if((fb|0)==(gb|0)){hb=X;ib=aa;jb=ca;kb=X;break d}else{lb=fb;mb=W?j:da}while(1){if((a[lb>>0]|0)!=(a[mb>>0]|0))break e;lb=lb+1|0;if((lb|0)==(gb|0)){hb=X;ib=aa;jb=ca;kb=X;break d}else mb=mb+1|0}}while(0);hb=X;ib=aa;jb=W?j:da;kb=X}else{hb=X;ib=aa;jb=oa;kb=X}while(0);f:while(1){if(!(ib&1)){nb=j;ob=(ib&255)>>>1}else{nb=c[L>>2]|0;ob=c[M>>2]|0}if((jb|0)==(nb+ob|0)){pb=hb;break}oa=c[e>>2]|0;do if(oa)if((c[oa+12>>2]|0)==(c[oa+16>>2]|0))if((ec[c[(c[oa>>2]|0)+36>>2]&63](oa)|0)==-1){c[e>>2]=0;qb=0;break}else{qb=c[e>>2]|0;break}else qb=oa;else qb=0;while(0);oa=(qb|0)==0;do if(kb){if((c[kb+12>>2]|0)!=(c[kb+16>>2]|0))if(oa){rb=hb;sb=kb;break}else{pb=hb;break f}if((ec[c[(c[kb>>2]|0)+36>>2]&63](kb)|0)!=-1)if(oa^(hb|0)==0){rb=hb;sb=hb;break}else{pb=hb;break f}else{c[f>>2]=0;tb=0;$=149;break}}else{tb=hb;$=149}while(0);if(($|0)==149){$=0;if(oa){pb=tb;break}else{rb=tb;sb=0}}da=c[e>>2]|0;aa=c[da+12>>2]|0;if((aa|0)==(c[da+16>>2]|0))ub=ec[c[(c[da>>2]|0)+36>>2]&63](da)|0;else ub=d[aa>>0]|0;if((ub&255)<<24>>24!=(a[jb>>0]|0)){pb=rb;break}aa=c[e>>2]|0;da=aa+12|0;W=c[da>>2]|0;if((W|0)==(c[aa+16>>2]|0))ec[c[(c[aa>>2]|0)+40>>2]&63](aa)|0;else c[da>>2]=W+1;hb=rb;ib=a[A>>0]|0;jb=jb+1|0;kb=sb}if(K){W=a[A>>0]|0;if(!(W&1)){vb=j;wb=(W&255)>>>1}else{vb=c[L>>2]|0;wb=c[M>>2]|0}if((jb|0)!=(vb+wb|0)){$=164;break a}else{fa=pb;ga=S;ha=T}}else{fa=pb;ga=S;ha=T}break};case 0:{$=27;break};default:{fa=X;ga=S;ha=T}}while(0);g:do if(($|0)==27){$=0;if((s|0)==3){Y=S;Z=X;_=T;$=250;break a}else{xb=X;yb=X}while(1){U=c[e>>2]|0;do if(U)if((c[U+12>>2]|0)==(c[U+16>>2]|0))if((ec[c[(c[U>>2]|0)+36>>2]&63](U)|0)==-1){c[e>>2]=0;zb=0;break}else{zb=c[e>>2]|0;break}else zb=U;else zb=0;while(0);U=(zb|0)==0;do if(yb){if((c[yb+12>>2]|0)!=(c[yb+16>>2]|0))if(U){Ab=xb;Bb=yb;break}else{fa=xb;ga=S;ha=T;break g}if((ec[c[(c[yb>>2]|0)+36>>2]&63](yb)|0)!=-1)if(U^(xb|0)==0){Ab=xb;Bb=xb;break}else{fa=xb;ga=S;ha=T;break g}else{c[f>>2]=0;Cb=0;$=38;break}}else{Cb=xb;$=38}while(0);if(($|0)==38){$=0;if(U){fa=Cb;ga=S;ha=T;break g}else{Ab=Cb;Bb=0}}oa=c[e>>2]|0;W=c[oa+12>>2]|0;if((W|0)==(c[oa+16>>2]|0))Db=ec[c[(c[oa>>2]|0)+36>>2]&63](oa)|0;else Db=d[W>>0]|0;if((Db&255)<<24>>24<=-1){fa=Ab;ga=S;ha=T;break g}if(!(b[(c[h>>2]|0)+(Db<<24>>24<<1)>>1]&8192)){fa=Ab;ga=S;ha=T;break g}W=c[e>>2]|0;oa=W+12|0;da=c[oa>>2]|0;if((da|0)==(c[W+16>>2]|0))Eb=ec[c[(c[W>>2]|0)+40>>2]&63](W)|0;else{c[oa>>2]=da+1;Eb=d[da>>0]|0}oj(D,Eb&255);xb=Ab;yb=Bb}}while(0);s=s+1|0;if(s>>>0>=4){Y=ga;Z=fa;_=ha;$=250;break}else{S=ga;T=ha}}h:do if(($|0)==26){c[k>>2]=c[k>>2]|4;Fb=0}else if(($|0)==113){c[k>>2]=c[k>>2]|4;Fb=0}else if(($|0)==164){c[k>>2]=c[k>>2]|4;Fb=0}else if(($|0)==216){c[k>>2]=c[k>>2]|4;Fb=0}else if(($|0)==237){c[k>>2]=c[k>>2]|4;Fb=0}else if(($|0)==248){c[k>>2]=c[k>>2]|4;Fb=0}else if(($|0)==250){i:do if(_){ha=_+1|0;T=_+8|0;ga=_+4|0;S=Z;fa=Z;s=1;j:while(1){Bb=a[_>>0]|0;if(!(Bb&1))Gb=(Bb&255)>>>1;else Gb=c[ga>>2]|0;if(s>>>0>=Gb>>>0)break i;Bb=c[e>>2]|0;do if(Bb)if((c[Bb+12>>2]|0)==(c[Bb+16>>2]|0))if((ec[c[(c[Bb>>2]|0)+36>>2]&63](Bb)|0)==-1){c[e>>2]=0;Hb=0;break}else{Hb=c[e>>2]|0;break}else Hb=Bb;else Hb=0;while(0);Bb=(Hb|0)==0;do if(fa){if((c[fa+12>>2]|0)!=(c[fa+16>>2]|0))if(Bb){Ib=S;Jb=fa;break}else break j;if((ec[c[(c[fa>>2]|0)+36>>2]&63](fa)|0)!=-1)if(Bb^(S|0)==0){Ib=S;Jb=S;break}else break j;else{c[f>>2]=0;Kb=0;$=266;break}}else{Kb=S;$=266}while(0);if(($|0)==266){$=0;if(Bb)break;else{Ib=Kb;Jb=0}}U=c[e>>2]|0;yb=c[U+12>>2]|0;if((yb|0)==(c[U+16>>2]|0))Lb=ec[c[(c[U>>2]|0)+36>>2]&63](U)|0;else Lb=d[yb>>0]|0;if(!(a[_>>0]&1))Mb=ha;else Mb=c[T>>2]|0;if((Lb&255)<<24>>24!=(a[Mb+s>>0]|0))break;yb=s+1|0;U=c[e>>2]|0;Ab=U+12|0;xb=c[Ab>>2]|0;if((xb|0)==(c[U+16>>2]|0)){ec[c[(c[U>>2]|0)+40>>2]&63](U)|0;S=Ib;fa=Jb;s=yb;continue}else{c[Ab>>2]=xb+1;S=Ib;fa=Jb;s=yb;continue}}c[k>>2]=c[k>>2]|4;Fb=0;break h}while(0);s=c[t>>2]|0;if((s|0)!=(Y|0)?(c[F>>2]=0,Uo(z,s,Y,F),(c[F>>2]|0)!=0):0){c[k>>2]=c[k>>2]|4;Fb=0}else Fb=1}while(0);gj(D);gj(C);gj(B);gj(A);gj(z);z=c[t>>2]|0;c[t>>2]=0;if(!z){i=q;return Fb|0}bc[c[p>>2]&127](z);i=q;return Fb|0}function Oo(a){a=a|0;var b=0;b=Na(8)|0;Qi(b,a);Nb(b|0,16640,100)}function Po(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;d=i;i=i+144|0;l=d;m=d+28|0;n=d+8|0;o=d+24|0;p=d+20|0;q=d+128|0;r=d+16|0;c[n>>2]=m;s=n+4|0;c[s>>2]=112;t=m+100|0;Hj(p,h);m=oq(p,8024)|0;a[q>>0]=0;u=c[f>>2]|0;c[r>>2]=u;v=c[h+4>>2]|0;c[l+0>>2]=c[r+0>>2];if(No(e,l,g,p,v,j,q,m,n,o,t)|0){if(!(a[k>>0]&1)){a[k+1>>0]=0;a[k>>0]=0}else{a[c[k+8>>2]>>0]=0;c[k+4>>2]=0}if(a[q>>0]|0)oj(k,nc[c[(c[m>>2]|0)+28>>2]&15](m,45)|0);q=nc[c[(c[m>>2]|0)+28>>2]&15](m,48)|0;m=c[n>>2]|0;t=c[o>>2]|0;o=t+ -1|0;a:do if(m>>>0>>0){v=m;while(1){g=v+1|0;if((a[v>>0]|0)!=q<<24>>24){w=v;break a}if(g>>>0>>0)v=g;else{w=g;break}}}else w=m;while(0);Qo(k,w,t)|0}t=c[e>>2]|0;do if(t)if((c[t+12>>2]|0)==(c[t+16>>2]|0))if((ec[c[(c[t>>2]|0)+36>>2]&63](t)|0)==-1){c[e>>2]=0;x=0;break}else{x=c[e>>2]|0;break}else x=t;else x=0;while(0);t=(x|0)==0;do if(u){if((c[u+12>>2]|0)!=(c[u+16>>2]|0))if(t)break;else{y=23;break}if((ec[c[(c[u>>2]|0)+36>>2]&63](u)|0)!=-1)if(t^(u|0)==0)break;else{y=23;break}else{c[f>>2]=0;y=21;break}}else y=21;while(0);if((y|0)==21?t:0)y=23;if((y|0)==23)c[j>>2]=c[j>>2]|2;c[b>>2]=c[e>>2];Ni(c[p>>2]|0)|0;p=c[n>>2]|0;c[n>>2]=0;if(!p){i=d;return}bc[c[s>>2]&127](p);i=d;return}function Qo(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;g=d;h=a[b>>0]|0;if(!(h&1)){j=10;k=(h&255)>>>1;l=h}else{h=c[b>>2]|0;j=(h&-2)+ -1|0;k=c[b+4>>2]|0;l=h&255}h=e-g|0;if((e|0)==(d|0)){i=f;return b|0}if((j-k|0)>>>0>>0){rj(b,j,k+h-j|0,k,k,0,0);m=a[b>>0]|0}else m=l;if(!(m&1))n=b+1|0;else n=c[b+8>>2]|0;m=e+(k-g)|0;g=d;d=n+k|0;while(1){a[d>>0]=a[g>>0]|0;g=g+1|0;if((g|0)==(e|0))break;else d=d+1|0}a[n+m>>0]=0;m=k+h|0;if(!(a[b>>0]&1)){a[b>>0]=m<<1;i=f;return b|0}else{c[b+4>>2]=m;i=f;return b|0}return 0}function Ro(b,d,e,f,g,h,j,k,l,m){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;n=i;i=i+112|0;o=n;p=n+40|0;q=n+76|0;r=n+4|0;s=n+88|0;t=n+100|0;u=n+28|0;v=n+64|0;w=n+52|0;x=n+16|0;if(b){b=oq(d,7464)|0;cc[c[(c[b>>2]|0)+44>>2]&63](o,b);y=c[o>>2]|0;a[e>>0]=y;a[e+1>>0]=y>>8;a[e+2>>0]=y>>16;a[e+3>>0]=y>>24;cc[c[(c[b>>2]|0)+32>>2]&63](p,b);if(!(a[l>>0]&1)){a[l+1>>0]=0;a[l>>0]=0}else{a[c[l+8>>2]>>0]=0;c[l+4>>2]=0}mj(l,0);c[l+0>>2]=c[p+0>>2];c[l+4>>2]=c[p+4>>2];c[l+8>>2]=c[p+8>>2];c[p+0>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;gj(p);cc[c[(c[b>>2]|0)+28>>2]&63](q,b);if(!(a[k>>0]&1)){a[k+1>>0]=0;a[k>>0]=0}else{a[c[k+8>>2]>>0]=0;c[k+4>>2]=0}mj(k,0);c[k+0>>2]=c[q+0>>2];c[k+4>>2]=c[q+4>>2];c[k+8>>2]=c[q+8>>2];c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;gj(q);a[f>>0]=ec[c[(c[b>>2]|0)+12>>2]&63](b)|0;a[g>>0]=ec[c[(c[b>>2]|0)+16>>2]&63](b)|0;cc[c[(c[b>>2]|0)+20>>2]&63](r,b);if(!(a[h>>0]&1)){a[h+1>>0]=0;a[h>>0]=0}else{a[c[h+8>>2]>>0]=0;c[h+4>>2]=0}mj(h,0);c[h+0>>2]=c[r+0>>2];c[h+4>>2]=c[r+4>>2];c[h+8>>2]=c[r+8>>2];c[r+0>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;gj(r);cc[c[(c[b>>2]|0)+24>>2]&63](s,b);if(!(a[j>>0]&1)){a[j+1>>0]=0;a[j>>0]=0}else{a[c[j+8>>2]>>0]=0;c[j+4>>2]=0}mj(j,0);c[j+0>>2]=c[s+0>>2];c[j+4>>2]=c[s+4>>2];c[j+8>>2]=c[s+8>>2];c[s+0>>2]=0;c[s+4>>2]=0;c[s+8>>2]=0;gj(s);z=ec[c[(c[b>>2]|0)+36>>2]&63](b)|0;c[m>>2]=z;i=n;return}else{b=oq(d,7400)|0;cc[c[(c[b>>2]|0)+44>>2]&63](t,b);d=c[t>>2]|0;a[e>>0]=d;a[e+1>>0]=d>>8;a[e+2>>0]=d>>16;a[e+3>>0]=d>>24;cc[c[(c[b>>2]|0)+32>>2]&63](u,b);if(!(a[l>>0]&1)){a[l+1>>0]=0;a[l>>0]=0}else{a[c[l+8>>2]>>0]=0;c[l+4>>2]=0}mj(l,0);c[l+0>>2]=c[u+0>>2];c[l+4>>2]=c[u+4>>2];c[l+8>>2]=c[u+8>>2];c[u+0>>2]=0;c[u+4>>2]=0;c[u+8>>2]=0;gj(u);cc[c[(c[b>>2]|0)+28>>2]&63](v,b);if(!(a[k>>0]&1)){a[k+1>>0]=0;a[k>>0]=0}else{a[c[k+8>>2]>>0]=0;c[k+4>>2]=0}mj(k,0);c[k+0>>2]=c[v+0>>2];c[k+4>>2]=c[v+4>>2];c[k+8>>2]=c[v+8>>2];c[v+0>>2]=0;c[v+4>>2]=0;c[v+8>>2]=0;gj(v);a[f>>0]=ec[c[(c[b>>2]|0)+12>>2]&63](b)|0;a[g>>0]=ec[c[(c[b>>2]|0)+16>>2]&63](b)|0;cc[c[(c[b>>2]|0)+20>>2]&63](w,b);if(!(a[h>>0]&1)){a[h+1>>0]=0;a[h>>0]=0}else{a[c[h+8>>2]>>0]=0;c[h+4>>2]=0}mj(h,0);c[h+0>>2]=c[w+0>>2];c[h+4>>2]=c[w+4>>2];c[h+8>>2]=c[w+8>>2];c[w+0>>2]=0;c[w+4>>2]=0;c[w+8>>2]=0;gj(w);cc[c[(c[b>>2]|0)+24>>2]&63](x,b);if(!(a[j>>0]&1)){a[j+1>>0]=0;a[j>>0]=0}else{a[c[j+8>>2]>>0]=0;c[j+4>>2]=0}mj(j,0);c[j+0>>2]=c[x+0>>2];c[j+4>>2]=c[x+4>>2];c[j+8>>2]=c[x+8>>2];c[x+0>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;gj(x);z=ec[c[(c[b>>2]|0)+36>>2]&63](b)|0;c[m>>2]=z;i=n;return}}function So(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;f=a+4|0;g=(c[f>>2]|0)!=112;h=c[a>>2]|0;j=h;k=(c[d>>2]|0)-j|0;l=k>>>0<2147483647?k<<1:-1;k=(c[b>>2]|0)-j|0;j=hu(g?h:0,l)|0;if(!j)eu();if(!g){g=c[a>>2]|0;c[a>>2]=j;if(!g)m=j;else{bc[c[f>>2]&127](g);m=c[a>>2]|0}}else{c[a>>2]=j;m=j}c[f>>2]=113;c[b>>2]=m+k;c[d>>2]=(c[a>>2]|0)+l;i=e;return}function To(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;e=i;f=a+4|0;g=(c[f>>2]|0)!=112;h=c[a>>2]|0;j=h;k=(c[d>>2]|0)-j|0;l=k>>>0<2147483647?k<<1:-1;k=(c[b>>2]|0)-j>>2;if(g)m=h;else m=0;h=hu(m,l)|0;if(!h)eu();if(!g){g=c[a>>2]|0;c[a>>2]=h;if(!g)n=h;else{bc[c[f>>2]&127](g);n=c[a>>2]|0}}else{c[a>>2]=h;n=h}c[f>>2]=113;c[b>>2]=n+(k<<2);c[d>>2]=(c[a>>2]|0)+(l>>>2<<2);i=e;return}function Uo(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;g=i;h=a[b>>0]|0;if(!(h&1))j=(h&255)>>>1;else j=c[b+4>>2]|0;if(!j){i=g;return}if((d|0)!=(e|0)?(j=e+ -4|0,j>>>0>d>>>0):0){k=d;l=j;do{j=c[k>>2]|0;c[k>>2]=c[l>>2];c[l>>2]=j;k=k+4|0;l=l+ -4|0}while(k>>>0>>0);m=a[b>>0]|0}else m=h;if(!(m&1)){n=b+1|0;o=(m&255)>>>1}else{n=c[b+8>>2]|0;o=c[b+4>>2]|0}b=e+ -4|0;e=a[n>>0]|0;m=e<<24>>24<1|e<<24>>24==127;a:do if(b>>>0>d>>>0){h=n+o|0;l=e;k=n;j=d;p=m;while(1){if(!p?(l<<24>>24|0)!=(c[j>>2]|0):0)break;k=(h-k|0)>1?k+1|0:k;j=j+4|0;q=a[k>>0]|0;r=q<<24>>24<1|q<<24>>24==127;if(j>>>0>=b>>>0){s=q;t=r;break a}else{l=q;p=r}}c[f>>2]=4;i=g;return}else{s=e;t=m}while(0);if(t){i=g;return}t=c[b>>2]|0;if(!(s<<24>>24>>>0>>0|(t|0)==0)){i=g;return}c[f>>2]=4;i=g;return}function Vo(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function Wo(a){a=a|0;return}function Xo(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;d=i;i=i+576|0;l=d;m=d+64|0;n=d+56|0;o=d+48|0;p=d+468|0;q=d+572|0;r=d+464|0;s=d+8|0;t=d+472|0;c[n>>2]=m;u=n+4|0;c[u>>2]=112;v=m+400|0;Hj(p,h);m=oq(p,8016)|0;a[q>>0]=0;c[r>>2]=c[f>>2];w=c[h+4>>2]|0;c[l+0>>2]=c[r+0>>2];do if(Yo(e,l,g,p,w,j,q,m,n,o,v)|0){kc[c[(c[m>>2]|0)+48>>2]&7](m,7720,7730,s)|0;r=c[o>>2]|0;h=c[n>>2]|0;x=r-h|0;if((x|0)>392){y=fu((x>>2)+2|0)|0;if(!y)eu();else{z=y;A=y}}else{z=0;A=t}if(!(a[q>>0]|0))B=A;else{a[A>>0]=45;B=A+1|0}if(h>>>0>>0){r=s+40|0;y=s;x=B;C=h;while(1){h=c[C>>2]|0;D=s;while(1){if((c[D>>2]|0)==(h|0)){E=D;break}D=D+4|0;if((D|0)==(r|0)){E=r;break}}a[x>>0]=a[7720+(E-y>>2)>>0]|0;C=C+4|0;D=x+1|0;if(C>>>0>=(c[o>>2]|0)>>>0){F=D;break}else x=D}}else F=B;a[F>>0]=0;c[l>>2]=k;if((Ws(t,7656,l)|0)==1){gu(z);break}else Oo(7664)}while(0);z=c[e>>2]|0;do if(z){l=c[z+12>>2]|0;if((l|0)==(c[z+16>>2]|0))G=ec[c[(c[z>>2]|0)+36>>2]&63](z)|0;else G=c[l>>2]|0;if((G|0)==-1){c[e>>2]=0;H=1;break}else{H=(c[e>>2]|0)==0;break}}else H=1;while(0);G=c[f>>2]|0;do if(G){z=c[G+12>>2]|0;if((z|0)==(c[G+16>>2]|0))I=ec[c[(c[G>>2]|0)+36>>2]&63](G)|0;else I=c[z>>2]|0;if((I|0)!=-1)if(H)break;else{J=31;break}else{c[f>>2]=0;J=29;break}}else J=29;while(0);if((J|0)==29?H:0)J=31;if((J|0)==31)c[j>>2]=c[j>>2]|2;c[b>>2]=c[e>>2];Ni(c[p>>2]|0)|0;p=c[n>>2]|0;c[n>>2]=0;if(!p){i=d;return}bc[c[u>>2]&127](p);i=d;return}function Yo(b,e,f,g,h,j,k,l,m,n,o){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0;p=i;i=i+512|0;q=p+492|0;r=p+88|0;s=p+48|0;t=p+44|0;u=p+36|0;v=p+84|0;w=p+488|0;x=p+496|0;y=p+56|0;z=p+24|0;A=p+12|0;B=p+68|0;C=p;D=p+40|0;E=p+80|0;c[q>>2]=o;c[s>>2]=r;o=s+4|0;c[o>>2]=112;c[t>>2]=r;c[u>>2]=r+400;c[v>>2]=0;c[y+0>>2]=0;c[y+4>>2]=0;c[y+8>>2]=0;c[z+0>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;c[A+0>>2]=0;c[A+4>>2]=0;c[A+8>>2]=0;c[B+0>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;c[C+0>>2]=0;c[C+4>>2]=0;c[C+8>>2]=0;$o(f,g,v,w,x,y,z,A,B,D);c[n>>2]=c[m>>2];g=B+4|0;f=B+8|0;F=A+4|0;G=A+8|0;H=(h&512|0)!=0;h=z+4|0;I=z+8|0;J=C+4|0;K=C+8|0;L=v+3|0;M=y+4|0;N=r;r=0;O=0;a:while(1){P=c[b>>2]|0;do if(P){Q=c[P+12>>2]|0;if((Q|0)==(c[P+16>>2]|0))R=ec[c[(c[P>>2]|0)+36>>2]&63](P)|0;else R=c[Q>>2]|0;if((R|0)==-1){c[b>>2]=0;S=1;break}else{S=(c[b>>2]|0)==0;break}}else S=1;while(0);P=c[e>>2]|0;do if(P){Q=c[P+12>>2]|0;if((Q|0)==(c[P+16>>2]|0))T=ec[c[(c[P>>2]|0)+36>>2]&63](P)|0;else T=c[Q>>2]|0;if((T|0)!=-1)if(S){U=P;break}else{V=N;W=P;X=O;Y=268;break a}else{c[e>>2]=0;Y=15;break}}else Y=15;while(0);if((Y|0)==15){Y=0;if(S){V=N;W=0;X=O;Y=268;break}else U=0}b:do switch(a[v+r>>0]|0){case 4:{P=c[x>>2]|0;Q=U;Z=U;_=N;$=0;c:while(1){aa=c[b>>2]|0;do if(aa){ba=c[aa+12>>2]|0;if((ba|0)==(c[aa+16>>2]|0))ca=ec[c[(c[aa>>2]|0)+36>>2]&63](aa)|0;else ca=c[ba>>2]|0;if((ca|0)==-1){c[b>>2]=0;da=1;break}else{da=(c[b>>2]|0)==0;break}}else da=1;while(0);do if(Z){aa=c[Z+12>>2]|0;if((aa|0)==(c[Z+16>>2]|0))ea=ec[c[(c[Z>>2]|0)+36>>2]&63](Z)|0;else ea=c[aa>>2]|0;if((ea|0)!=-1)if(da^(Q|0)==0){fa=Q;ga=Q;break}else{ha=Q;break c}else{c[e>>2]=0;ia=0;Y=189;break}}else{ia=Q;Y=189}while(0);if((Y|0)==189){Y=0;if(da){ha=ia;break}else{fa=ia;ga=0}}aa=c[b>>2]|0;ba=c[aa+12>>2]|0;if((ba|0)==(c[aa+16>>2]|0))ja=ec[c[(c[aa>>2]|0)+36>>2]&63](aa)|0;else ja=c[ba>>2]|0;if(_b[c[(c[l>>2]|0)+12>>2]&31](l,2048,ja)|0){ba=c[n>>2]|0;if((ba|0)==(c[q>>2]|0)){ap(m,n,q);ka=c[n>>2]|0}else ka=ba;c[n>>2]=ka+4;c[ka>>2]=ja;la=_;ma=$+1|0}else{ba=a[y>>0]|0;if(!(ba&1))na=(ba&255)>>>1;else na=c[M>>2]|0;if(!(($|0)!=0&(na|0)!=0&(ja|0)==(P|0))){ha=fa;break}if((_|0)==(c[u>>2]|0)){To(s,t,u);oa=c[t>>2]|0}else oa=_;ba=oa+4|0;c[t>>2]=ba;c[oa>>2]=$;la=ba;ma=0}ba=c[b>>2]|0;aa=ba+12|0;pa=c[aa>>2]|0;if((pa|0)==(c[ba+16>>2]|0)){ec[c[(c[ba>>2]|0)+40>>2]&63](ba)|0;Q=fa;Z=ga;_=la;$=ma;continue}else{c[aa>>2]=pa+4;Q=fa;Z=ga;_=la;$=ma;continue}}if(($|0)==0?1:(c[s>>2]|0)==(_|0))qa=_;else{if((_|0)==(c[u>>2]|0)){To(s,t,u);ra=c[t>>2]|0}else ra=_;Z=ra+4|0;c[t>>2]=Z;c[ra>>2]=$;qa=Z}Z=c[D>>2]|0;if((Z|0)>0){Q=c[b>>2]|0;do if(Q){P=c[Q+12>>2]|0;if((P|0)==(c[Q+16>>2]|0))sa=ec[c[(c[Q>>2]|0)+36>>2]&63](Q)|0;else sa=c[P>>2]|0;if((sa|0)==-1){c[b>>2]=0;ta=1;break}else{ta=(c[b>>2]|0)==0;break}}else ta=1;while(0);do if(ha){Q=c[ha+12>>2]|0;if((Q|0)==(c[ha+16>>2]|0))ua=ec[c[(c[ha>>2]|0)+36>>2]&63](ha)|0;else ua=c[Q>>2]|0;if((ua|0)!=-1)if(ta){va=ha;break}else{Y=232;break a}else{c[e>>2]=0;Y=226;break}}else Y=226;while(0);if((Y|0)==226){Y=0;if(ta){Y=232;break a}else va=0}Q=c[b>>2]|0;$=c[Q+12>>2]|0;if(($|0)==(c[Q+16>>2]|0))wa=ec[c[(c[Q>>2]|0)+36>>2]&63](Q)|0;else wa=c[$>>2]|0;if((wa|0)!=(c[w>>2]|0)){Y=232;break a}$=c[b>>2]|0;Q=$+12|0;_=c[Q>>2]|0;if((_|0)==(c[$+16>>2]|0)){ec[c[(c[$>>2]|0)+40>>2]&63]($)|0;xa=va;ya=va;za=Z}else{c[Q>>2]=_+4;xa=va;ya=va;za=Z}while(1){_=c[b>>2]|0;do if(_){Q=c[_+12>>2]|0;if((Q|0)==(c[_+16>>2]|0))Aa=ec[c[(c[_>>2]|0)+36>>2]&63](_)|0;else Aa=c[Q>>2]|0;if((Aa|0)==-1){c[b>>2]=0;Ba=1;break}else{Ba=(c[b>>2]|0)==0;break}}else Ba=1;while(0);do if(ya){_=c[ya+12>>2]|0;if((_|0)==(c[ya+16>>2]|0))Ca=ec[c[(c[ya>>2]|0)+36>>2]&63](ya)|0;else Ca=c[_>>2]|0;if((Ca|0)!=-1)if(Ba^(xa|0)==0){Da=xa;Ea=xa;break}else{Y=255;break a}else{c[e>>2]=0;Fa=0;Y=249;break}}else{Fa=xa;Y=249}while(0);if((Y|0)==249){Y=0;if(Ba){Y=255;break a}else{Da=Fa;Ea=0}}_=c[b>>2]|0;Q=c[_+12>>2]|0;if((Q|0)==(c[_+16>>2]|0))Ga=ec[c[(c[_>>2]|0)+36>>2]&63](_)|0;else Ga=c[Q>>2]|0;if(!(_b[c[(c[l>>2]|0)+12>>2]&31](l,2048,Ga)|0)){Y=255;break a}if((c[n>>2]|0)==(c[q>>2]|0))ap(m,n,q);Q=c[b>>2]|0;_=c[Q+12>>2]|0;if((_|0)==(c[Q+16>>2]|0))Ha=ec[c[(c[Q>>2]|0)+36>>2]&63](Q)|0;else Ha=c[_>>2]|0;_=c[n>>2]|0;c[n>>2]=_+4;c[_>>2]=Ha;za=za+ -1|0;c[D>>2]=za;_=c[b>>2]|0;Q=_+12|0;$=c[Q>>2]|0;if(($|0)==(c[_+16>>2]|0))ec[c[(c[_>>2]|0)+40>>2]&63](_)|0;else c[Q>>2]=$+4;if((za|0)<=0){Ia=Da;break}else{xa=Da;ya=Ea}}}else Ia=ha;if((c[n>>2]|0)==(c[m>>2]|0)){Y=266;break a}else{Ja=Ia;Ka=qa;La=O}break};case 1:{if((r|0)==3){V=N;W=U;X=O;Y=268;break a}Z=c[b>>2]|0;$=c[Z+12>>2]|0;if(($|0)==(c[Z+16>>2]|0))Ma=ec[c[(c[Z>>2]|0)+36>>2]&63](Z)|0;else Ma=c[$>>2]|0;if(!(_b[c[(c[l>>2]|0)+12>>2]&31](l,8192,Ma)|0)){Y=28;break a}$=c[b>>2]|0;Z=$+12|0;Q=c[Z>>2]|0;if((Q|0)==(c[$+16>>2]|0))Na=ec[c[(c[$>>2]|0)+40>>2]&63]($)|0;else{c[Z>>2]=Q+4;Na=c[Q>>2]|0}Aj(C,Na);Y=29;break};case 3:{Q=a[A>>0]|0;Z=(Q&1)==0;if(Z)Oa=(Q&255)>>>1;else Oa=c[F>>2]|0;$=a[B>>0]|0;_=($&1)==0;if(_)Pa=($&255)>>>1;else Pa=c[g>>2]|0;if((Oa|0)==(0-Pa|0)){Ja=U;Ka=N;La=O}else{if(Z)Qa=(Q&255)>>>1;else Qa=c[F>>2]|0;if(Qa){if(_)Ra=($&255)>>>1;else Ra=c[g>>2]|0;if(Ra){_=c[b>>2]|0;P=c[_+12>>2]|0;if((P|0)==(c[_+16>>2]|0)){pa=ec[c[(c[_>>2]|0)+36>>2]&63](_)|0;Sa=pa;Ta=a[A>>0]|0}else{Sa=c[P>>2]|0;Ta=Q}P=c[b>>2]|0;pa=P+12|0;_=c[pa>>2]|0;aa=(_|0)==(c[P+16>>2]|0);if((Sa|0)==(c[((Ta&1)==0?F:c[G>>2]|0)>>2]|0)){if(aa)ec[c[(c[P>>2]|0)+40>>2]&63](P)|0;else c[pa>>2]=_+4;pa=a[A>>0]|0;if(!(pa&1))Ua=(pa&255)>>>1;else Ua=c[F>>2]|0;Ja=U;Ka=N;La=Ua>>>0>1?A:O;break b}if(aa)Va=ec[c[(c[P>>2]|0)+36>>2]&63](P)|0;else Va=c[_>>2]|0;if((Va|0)!=(c[((a[B>>0]&1)==0?g:c[f>>2]|0)>>2]|0)){Y=117;break a}_=c[b>>2]|0;P=_+12|0;aa=c[P>>2]|0;if((aa|0)==(c[_+16>>2]|0))ec[c[(c[_>>2]|0)+40>>2]&63](_)|0;else c[P>>2]=aa+4;a[k>>0]=1;aa=a[B>>0]|0;if(!(aa&1))Wa=(aa&255)>>>1;else Wa=c[g>>2]|0;Ja=U;Ka=N;La=Wa>>>0>1?B:O;break b}}if(Z)Xa=(Q&255)>>>1;else Xa=c[F>>2]|0;Z=c[b>>2]|0;aa=c[Z+12>>2]|0;P=(aa|0)==(c[Z+16>>2]|0);if(!Xa){if(P){_=ec[c[(c[Z>>2]|0)+36>>2]&63](Z)|0;Ya=_;Za=a[B>>0]|0}else{Ya=c[aa>>2]|0;Za=$}if((Ya|0)!=(c[((Za&1)==0?g:c[f>>2]|0)>>2]|0)){Ja=U;Ka=N;La=O;break b}$=c[b>>2]|0;_=$+12|0;pa=c[_>>2]|0;if((pa|0)==(c[$+16>>2]|0))ec[c[(c[$>>2]|0)+40>>2]&63]($)|0;else c[_>>2]=pa+4;a[k>>0]=1;pa=a[B>>0]|0;if(!(pa&1))_a=(pa&255)>>>1;else _a=c[g>>2]|0;Ja=U;Ka=N;La=_a>>>0>1?B:O;break b}if(P){P=ec[c[(c[Z>>2]|0)+36>>2]&63](Z)|0;$a=P;ab=a[A>>0]|0}else{$a=c[aa>>2]|0;ab=Q}if(($a|0)!=(c[((ab&1)==0?F:c[G>>2]|0)>>2]|0)){a[k>>0]=1;Ja=U;Ka=N;La=O;break b}Q=c[b>>2]|0;aa=Q+12|0;P=c[aa>>2]|0;if((P|0)==(c[Q+16>>2]|0))ec[c[(c[Q>>2]|0)+40>>2]&63](Q)|0;else c[aa>>2]=P+4;P=a[A>>0]|0;if(!(P&1))bb=(P&255)>>>1;else bb=c[F>>2]|0;Ja=U;Ka=N;La=bb>>>0>1?A:O}break};case 0:{Y=29;break};case 2:{if(!((O|0)!=0|r>>>0<2)){if((r|0)==2)cb=(a[L>>0]|0)!=0;else cb=0;if(!(H|cb)){Ja=U;Ka=N;La=0;break b}}P=a[z>>0]|0;aa=(P&1)==0?h:c[I>>2]|0;d:do if((r|0)!=0?(d[v+(r+ -1)>>0]|0)<2:0){Q=P;Z=aa;while(1){if(!(Q&1)){db=h;eb=(Q&255)>>>1}else{db=c[I>>2]|0;eb=c[h>>2]|0}if((Z|0)==(db+(eb<<2)|0)){fb=Q;break}if(!(_b[c[(c[l>>2]|0)+12>>2]&31](l,8192,c[Z>>2]|0)|0)){Y=130;break}Q=a[z>>0]|0;Z=Z+4|0}if((Y|0)==130){Y=0;fb=a[z>>0]|0}Q=(fb&1)==0;pa=Z-(Q?h:c[I>>2]|0)>>2;_=a[C>>0]|0;$=(_&1)==0;if($)gb=(_&255)>>>1;else gb=c[J>>2]|0;e:do if(pa>>>0<=gb>>>0){if($){hb=J;ib=(_&255)>>>1;jb=J+(((_&255)>>>1)-pa<<2)|0}else{ba=c[K>>2]|0;kb=c[J>>2]|0;hb=ba;ib=kb;jb=ba+(kb-pa<<2)|0}kb=hb+(ib<<2)|0;if((jb|0)==(kb|0)){lb=U;mb=fb;nb=Z;ob=U;break d}else{pb=jb;qb=Q?h:c[I>>2]|0}while(1){if((c[pb>>2]|0)!=(c[qb>>2]|0))break e;ba=pb+4|0;if((ba|0)==(kb|0)){lb=U;mb=fb;nb=Z;ob=U;break d}pb=ba;qb=qb+4|0}}while(0);lb=U;mb=fb;nb=Q?h:c[I>>2]|0;ob=U}else{lb=U;mb=P;nb=aa;ob=U}while(0);f:while(1){if(!(mb&1)){rb=h;sb=(mb&255)>>>1}else{rb=c[I>>2]|0;sb=c[h>>2]|0}if((nb|0)==(rb+(sb<<2)|0)){tb=lb;break}aa=c[b>>2]|0;do if(aa){P=c[aa+12>>2]|0;if((P|0)==(c[aa+16>>2]|0))ub=ec[c[(c[aa>>2]|0)+36>>2]&63](aa)|0;else ub=c[P>>2]|0;if((ub|0)==-1){c[b>>2]=0;vb=1;break}else{vb=(c[b>>2]|0)==0;break}}else vb=1;while(0);do if(ob){aa=c[ob+12>>2]|0;if((aa|0)==(c[ob+16>>2]|0))wb=ec[c[(c[ob>>2]|0)+36>>2]&63](ob)|0;else wb=c[aa>>2]|0;if((wb|0)!=-1)if(vb^(lb|0)==0){xb=lb;yb=lb;break}else{tb=lb;break f}else{c[e>>2]=0;zb=0;Y=160;break}}else{zb=lb;Y=160}while(0);if((Y|0)==160){Y=0;if(vb){tb=zb;break}else{xb=zb;yb=0}}aa=c[b>>2]|0;Q=c[aa+12>>2]|0;if((Q|0)==(c[aa+16>>2]|0))Ab=ec[c[(c[aa>>2]|0)+36>>2]&63](aa)|0;else Ab=c[Q>>2]|0;if((Ab|0)!=(c[nb>>2]|0)){tb=xb;break}Q=c[b>>2]|0;aa=Q+12|0;P=c[aa>>2]|0;if((P|0)==(c[Q+16>>2]|0))ec[c[(c[Q>>2]|0)+40>>2]&63](Q)|0;else c[aa>>2]=P+4;lb=xb;mb=a[z>>0]|0;nb=nb+4|0;ob=yb}if(H){P=a[z>>0]|0;if(!(P&1)){Bb=h;Cb=(P&255)>>>1}else{Bb=c[I>>2]|0;Cb=c[h>>2]|0}if((nb|0)!=(Bb+(Cb<<2)|0)){Y=175;break a}else{Ja=tb;Ka=N;La=O}}else{Ja=tb;Ka=N;La=O}break};default:{Ja=U;Ka=N;La=O}}while(0);g:do if((Y|0)==29){Y=0;if((r|0)==3){V=N;W=U;X=O;Y=268;break a}else{Db=U;Eb=U}while(1){P=c[b>>2]|0;do if(P){aa=c[P+12>>2]|0;if((aa|0)==(c[P+16>>2]|0))Fb=ec[c[(c[P>>2]|0)+36>>2]&63](P)|0;else Fb=c[aa>>2]|0;if((Fb|0)==-1){c[b>>2]=0;Gb=1;break}else{Gb=(c[b>>2]|0)==0;break}}else Gb=1;while(0);do if(Eb){P=c[Eb+12>>2]|0;if((P|0)==(c[Eb+16>>2]|0))Hb=ec[c[(c[Eb>>2]|0)+36>>2]&63](Eb)|0;else Hb=c[P>>2]|0;if((Hb|0)!=-1)if(Gb^(Db|0)==0){Ib=Db;Jb=Db;break}else{Ja=Db;Ka=N;La=O;break g}else{c[e>>2]=0;Kb=0;Y=43;break}}else{Kb=Db;Y=43}while(0);if((Y|0)==43){Y=0;if(Gb){Ja=Kb;Ka=N;La=O;break g}else{Ib=Kb;Jb=0}}P=c[b>>2]|0;aa=c[P+12>>2]|0;if((aa|0)==(c[P+16>>2]|0))Lb=ec[c[(c[P>>2]|0)+36>>2]&63](P)|0;else Lb=c[aa>>2]|0;if(!(_b[c[(c[l>>2]|0)+12>>2]&31](l,8192,Lb)|0)){Ja=Ib;Ka=N;La=O;break g}aa=c[b>>2]|0;P=aa+12|0;Q=c[P>>2]|0;if((Q|0)==(c[aa+16>>2]|0))Mb=ec[c[(c[aa>>2]|0)+40>>2]&63](aa)|0;else{c[P>>2]=Q+4;Mb=c[Q>>2]|0}Aj(C,Mb);Db=Ib;Eb=Jb}}while(0);r=r+1|0;if(r>>>0>=4){V=Ka;W=Ja;X=La;Y=268;break}else{N=Ka;O=La}}h:do if((Y|0)==28){c[j>>2]=c[j>>2]|4;Nb=0}else if((Y|0)==117){c[j>>2]=c[j>>2]|4;Nb=0}else if((Y|0)==175){c[j>>2]=c[j>>2]|4;Nb=0}else if((Y|0)==232){c[j>>2]=c[j>>2]|4;Nb=0}else if((Y|0)==255){c[j>>2]=c[j>>2]|4;Nb=0}else if((Y|0)==266){c[j>>2]=c[j>>2]|4;Nb=0}else if((Y|0)==268){i:do if(X){La=X+4|0;O=X+8|0;Ka=W;N=W;Ja=1;j:while(1){r=a[X>>0]|0;if(!(r&1))Ob=(r&255)>>>1;else Ob=c[La>>2]|0;if(Ja>>>0>=Ob>>>0)break i;r=c[b>>2]|0;do if(r){Jb=c[r+12>>2]|0;if((Jb|0)==(c[r+16>>2]|0))Pb=ec[c[(c[r>>2]|0)+36>>2]&63](r)|0;else Pb=c[Jb>>2]|0;if((Pb|0)==-1){c[b>>2]=0;Qb=1;break}else{Qb=(c[b>>2]|0)==0;break}}else Qb=1;while(0);do if(N){r=c[N+12>>2]|0;if((r|0)==(c[N+16>>2]|0))Rb=ec[c[(c[N>>2]|0)+36>>2]&63](N)|0;else Rb=c[r>>2]|0;if((Rb|0)!=-1)if(Qb^(Ka|0)==0){Sb=Ka;Tb=Ka;break}else break j;else{c[e>>2]=0;Ub=0;Y=287;break}}else{Ub=Ka;Y=287}while(0);if((Y|0)==287){Y=0;if(Qb)break;else{Sb=Ub;Tb=0}}r=c[b>>2]|0;Jb=c[r+12>>2]|0;if((Jb|0)==(c[r+16>>2]|0))Vb=ec[c[(c[r>>2]|0)+36>>2]&63](r)|0;else Vb=c[Jb>>2]|0;if(!(a[X>>0]&1))Wb=La;else Wb=c[O>>2]|0;if((Vb|0)!=(c[Wb+(Ja<<2)>>2]|0))break;Jb=Ja+1|0;r=c[b>>2]|0;Eb=r+12|0;Ib=c[Eb>>2]|0;if((Ib|0)==(c[r+16>>2]|0)){ec[c[(c[r>>2]|0)+40>>2]&63](r)|0;Ka=Sb;N=Tb;Ja=Jb;continue}else{c[Eb>>2]=Ib+4;Ka=Sb;N=Tb;Ja=Jb;continue}}c[j>>2]=c[j>>2]|4;Nb=0;break h}while(0);Ja=c[s>>2]|0;if((Ja|0)!=(V|0)?(c[E>>2]=0,Uo(y,Ja,V,E),(c[E>>2]|0)!=0):0){c[j>>2]=c[j>>2]|4;Nb=0}else Nb=1}while(0);vj(C);vj(B);vj(A);vj(z);gj(y);y=c[s>>2]|0;c[s>>2]=0;if(!y){i=p;return Nb|0}bc[c[o>>2]&127](y);i=p;return Nb|0}function Zo(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;d=i;i=i+432|0;l=d+4|0;m=d+16|0;n=d+8|0;o=d+420|0;p=d;q=d+424|0;r=d+416|0;c[n>>2]=m;s=n+4|0;c[s>>2]=112;t=m+400|0;Hj(p,h);m=oq(p,8016)|0;a[q>>0]=0;u=c[f>>2]|0;c[r>>2]=u;v=c[h+4>>2]|0;c[l+0>>2]=c[r+0>>2];if(Yo(e,l,g,p,v,j,q,m,n,o,t)|0){if(!(a[k>>0]&1)){c[k+4>>2]=0;a[k>>0]=0}else{c[c[k+8>>2]>>2]=0;c[k+4>>2]=0}if(a[q>>0]|0)Aj(k,nc[c[(c[m>>2]|0)+44>>2]&15](m,45)|0);q=nc[c[(c[m>>2]|0)+44>>2]&15](m,48)|0;m=c[n>>2]|0;t=c[o>>2]|0;o=t+ -4|0;a:do if(m>>>0>>0){v=m;while(1){g=v+4|0;if((c[v>>2]|0)!=(q|0)){w=v;break a}if(g>>>0>>0)v=g;else{w=g;break}}}else w=m;while(0);_o(k,w,t)|0}t=c[e>>2]|0;do if(t){w=c[t+12>>2]|0;if((w|0)==(c[t+16>>2]|0))x=ec[c[(c[t>>2]|0)+36>>2]&63](t)|0;else x=c[w>>2]|0;if((x|0)==-1){c[e>>2]=0;y=1;break}else{y=(c[e>>2]|0)==0;break}}else y=1;while(0);do if(u){x=c[u+12>>2]|0;if((x|0)==(c[u+16>>2]|0))z=ec[c[(c[u>>2]|0)+36>>2]&63](u)|0;else z=c[x>>2]|0;if((z|0)!=-1)if(y)break;else{A=26;break}else{c[f>>2]=0;A=24;break}}else A=24;while(0);if((A|0)==24?y:0)A=26;if((A|0)==26)c[j>>2]=c[j>>2]|2;c[b>>2]=c[e>>2];Ni(c[p>>2]|0)|0;p=c[n>>2]|0;c[n>>2]=0;if(!p){i=d;return}bc[c[s>>2]&127](p);i=d;return}function _o(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=i;g=d;h=a[b>>0]|0;if(!(h&1)){j=1;k=(h&255)>>>1;l=h}else{h=c[b>>2]|0;j=(h&-2)+ -1|0;k=c[b+4>>2]|0;l=h&255}h=e-g>>2;if(!h){i=f;return b|0}if((j-k|0)>>>0>>0){Cj(b,j,k+h-j|0,k,k,0,0);m=a[b>>0]|0}else m=l;if(!(m&1))n=b+4|0;else n=c[b+8>>2]|0;m=n+(k<<2)|0;if((d|0)==(e|0))o=m;else{l=k+((e+ -4+(0-g)|0)>>>2)+1|0;g=d;d=m;while(1){c[d>>2]=c[g>>2];g=g+4|0;if((g|0)==(e|0))break;else d=d+4|0}o=n+(l<<2)|0}c[o>>2]=0;o=k+h|0;if(!(a[b>>0]&1)){a[b>>0]=o<<1;i=f;return b|0}else{c[b+4>>2]=o;i=f;return b|0}return 0}function $o(b,d,e,f,g,h,j,k,l,m){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;n=i;i=i+112|0;o=n;p=n+40|0;q=n+76|0;r=n+4|0;s=n+88|0;t=n+100|0;u=n+28|0;v=n+64|0;w=n+52|0;x=n+16|0;if(b){b=oq(d,7592)|0;cc[c[(c[b>>2]|0)+44>>2]&63](o,b);y=c[o>>2]|0;a[e>>0]=y;a[e+1>>0]=y>>8;a[e+2>>0]=y>>16;a[e+3>>0]=y>>24;cc[c[(c[b>>2]|0)+32>>2]&63](p,b);if(!(a[l>>0]&1)){c[l+4>>2]=0;a[l>>0]=0}else{c[c[l+8>>2]>>2]=0;c[l+4>>2]=0}zj(l,0);c[l+0>>2]=c[p+0>>2];c[l+4>>2]=c[p+4>>2];c[l+8>>2]=c[p+8>>2];c[p+0>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;vj(p);cc[c[(c[b>>2]|0)+28>>2]&63](q,b);if(!(a[k>>0]&1)){c[k+4>>2]=0;a[k>>0]=0}else{c[c[k+8>>2]>>2]=0;c[k+4>>2]=0}zj(k,0);c[k+0>>2]=c[q+0>>2];c[k+4>>2]=c[q+4>>2];c[k+8>>2]=c[q+8>>2];c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;vj(q);c[f>>2]=ec[c[(c[b>>2]|0)+12>>2]&63](b)|0;c[g>>2]=ec[c[(c[b>>2]|0)+16>>2]&63](b)|0;cc[c[(c[b>>2]|0)+20>>2]&63](r,b);if(!(a[h>>0]&1)){a[h+1>>0]=0;a[h>>0]=0}else{a[c[h+8>>2]>>0]=0;c[h+4>>2]=0}mj(h,0);c[h+0>>2]=c[r+0>>2];c[h+4>>2]=c[r+4>>2];c[h+8>>2]=c[r+8>>2];c[r+0>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;gj(r);cc[c[(c[b>>2]|0)+24>>2]&63](s,b);if(!(a[j>>0]&1)){c[j+4>>2]=0;a[j>>0]=0}else{c[c[j+8>>2]>>2]=0;c[j+4>>2]=0}zj(j,0);c[j+0>>2]=c[s+0>>2];c[j+4>>2]=c[s+4>>2];c[j+8>>2]=c[s+8>>2];c[s+0>>2]=0;c[s+4>>2]=0;c[s+8>>2]=0;vj(s);z=ec[c[(c[b>>2]|0)+36>>2]&63](b)|0;c[m>>2]=z;i=n;return}else{b=oq(d,7528)|0;cc[c[(c[b>>2]|0)+44>>2]&63](t,b);d=c[t>>2]|0;a[e>>0]=d;a[e+1>>0]=d>>8;a[e+2>>0]=d>>16;a[e+3>>0]=d>>24;cc[c[(c[b>>2]|0)+32>>2]&63](u,b);if(!(a[l>>0]&1)){c[l+4>>2]=0;a[l>>0]=0}else{c[c[l+8>>2]>>2]=0;c[l+4>>2]=0}zj(l,0);c[l+0>>2]=c[u+0>>2];c[l+4>>2]=c[u+4>>2];c[l+8>>2]=c[u+8>>2];c[u+0>>2]=0;c[u+4>>2]=0;c[u+8>>2]=0;vj(u);cc[c[(c[b>>2]|0)+28>>2]&63](v,b);if(!(a[k>>0]&1)){c[k+4>>2]=0;a[k>>0]=0}else{c[c[k+8>>2]>>2]=0;c[k+4>>2]=0}zj(k,0);c[k+0>>2]=c[v+0>>2];c[k+4>>2]=c[v+4>>2];c[k+8>>2]=c[v+8>>2];c[v+0>>2]=0;c[v+4>>2]=0;c[v+8>>2]=0;vj(v);c[f>>2]=ec[c[(c[b>>2]|0)+12>>2]&63](b)|0;c[g>>2]=ec[c[(c[b>>2]|0)+16>>2]&63](b)|0;cc[c[(c[b>>2]|0)+20>>2]&63](w,b);if(!(a[h>>0]&1)){a[h+1>>0]=0;a[h>>0]=0}else{a[c[h+8>>2]>>0]=0;c[h+4>>2]=0}mj(h,0);c[h+0>>2]=c[w+0>>2];c[h+4>>2]=c[w+4>>2];c[h+8>>2]=c[w+8>>2];c[w+0>>2]=0;c[w+4>>2]=0;c[w+8>>2]=0;gj(w);cc[c[(c[b>>2]|0)+24>>2]&63](x,b);if(!(a[j>>0]&1)){c[j+4>>2]=0;a[j>>0]=0}else{c[c[j+8>>2]>>2]=0;c[j+4>>2]=0}zj(j,0);c[j+0>>2]=c[x+0>>2];c[j+4>>2]=c[x+4>>2];c[j+8>>2]=c[x+8>>2];c[x+0>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;vj(x);z=ec[c[(c[b>>2]|0)+36>>2]&63](b)|0;c[m>>2]=z;i=n;return}}function ap(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;e=i;f=a+4|0;g=(c[f>>2]|0)!=112;h=c[a>>2]|0;j=h;k=(c[d>>2]|0)-j|0;l=k>>>0<2147483647?k<<1:-1;k=(c[b>>2]|0)-j>>2;if(g)m=h;else m=0;h=hu(m,l)|0;if(!h)eu();if(!g){g=c[a>>2]|0;c[a>>2]=h;if(!g)n=h;else{bc[c[f>>2]&127](g);n=c[a>>2]|0}}else{c[a>>2]=h;n=h}c[f>>2]=113;c[b>>2]=n+(k<<2);c[d>>2]=(c[a>>2]|0)+(l>>>2<<2);i=e;return}function bp(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function cp(a){a=a|0;return}function dp(b,d,e,f,g,j,l){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;l=+l;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;d=i;i=i+384|0;m=d;n=d+72|0;o=d+40|0;p=d+172|0;q=d+36|0;r=d+64|0;s=d+272|0;t=d+376|0;u=d+52|0;v=d+20|0;w=d+8|0;x=d+48|0;y=d+276|0;z=d+32|0;A=d+44|0;B=d+68|0;c[o>>2]=n;h[k>>3]=l;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];C=Du(n,100,7776,m)|0;if(C>>>0>99){n=Cl()|0;h[k>>3]=l;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];D=tm(o,n,7776,m)|0;n=c[o>>2]|0;if(!n)eu();E=fu(D)|0;if(!E)eu();else{F=E;G=n;H=E;I=D}}else{F=0;G=0;H=p;I=C}Hj(q,g);C=oq(q,8024)|0;p=c[o>>2]|0;kc[c[(c[C>>2]|0)+32>>2]&7](C,p,p+I|0,H)|0;if(!I)J=0;else J=(a[c[o>>2]>>0]|0)==45;c[r>>2]=0;c[u+0>>2]=0;c[u+4>>2]=0;c[u+8>>2]=0;c[v+0>>2]=0;c[v+4>>2]=0;c[v+8>>2]=0;c[w+0>>2]=0;c[w+4>>2]=0;c[w+8>>2]=0;ep(f,J,q,r,s,t,u,v,w,x);f=c[x>>2]|0;if((I|0)>(f|0)){x=a[w>>0]|0;if(!(x&1))K=(x&255)>>>1;else K=c[w+4>>2]|0;x=a[v>>0]|0;if(!(x&1))L=(x&255)>>>1;else L=c[v+4>>2]|0;M=K+(I-f<<1|1)+L|0}else{L=a[w>>0]|0;if(!(L&1))N=(L&255)>>>1;else N=c[w+4>>2]|0;L=a[v>>0]|0;if(!(L&1))O=(L&255)>>>1;else O=c[v+4>>2]|0;M=N+2+O|0}O=M+f|0;if(O>>>0>100){M=fu(O)|0;if(!M)eu();else{P=M;Q=M}}else{P=0;Q=y}fp(Q,z,A,c[g+4>>2]|0,H,H+I|0,C,J,r,a[s>>0]|0,a[t>>0]|0,u,v,w,f);c[B>>2]=c[e>>2];e=c[z>>2]|0;z=c[A>>2]|0;c[m+0>>2]=c[B+0>>2];nm(b,m,Q,e,z,g,j);gu(P);gj(w);gj(v);gj(u);Ni(c[q>>2]|0)|0;gu(F);gu(G);i=d;return}function ep(b,d,e,f,g,h,j,k,l,m){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;n=i;i=i+112|0;o=n+12|0;p=n+40|0;q=n+92|0;r=n;s=n+80|0;t=n+96|0;u=n+108|0;v=n+56|0;w=n+52|0;x=n+16|0;y=n+28|0;z=n+68|0;if(b){b=oq(e,7464)|0;A=c[b>>2]|0;if(d){cc[c[A+44>>2]&63](o,b);B=c[o>>2]|0;a[f>>0]=B;a[f+1>>0]=B>>8;a[f+2>>0]=B>>16;a[f+3>>0]=B>>24;cc[c[(c[b>>2]|0)+32>>2]&63](p,b);if(!(a[l>>0]&1)){a[l+1>>0]=0;a[l>>0]=0}else{a[c[l+8>>2]>>0]=0;c[l+4>>2]=0}mj(l,0);c[l+0>>2]=c[p+0>>2];c[l+4>>2]=c[p+4>>2];c[l+8>>2]=c[p+8>>2];c[p+0>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;gj(p)}else{cc[c[A+40>>2]&63](q,b);A=c[q>>2]|0;a[f>>0]=A;a[f+1>>0]=A>>8;a[f+2>>0]=A>>16;a[f+3>>0]=A>>24;cc[c[(c[b>>2]|0)+28>>2]&63](r,b);if(!(a[l>>0]&1)){a[l+1>>0]=0;a[l>>0]=0}else{a[c[l+8>>2]>>0]=0;c[l+4>>2]=0}mj(l,0);c[l+0>>2]=c[r+0>>2];c[l+4>>2]=c[r+4>>2];c[l+8>>2]=c[r+8>>2];c[r+0>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;gj(r)}a[g>>0]=ec[c[(c[b>>2]|0)+12>>2]&63](b)|0;a[h>>0]=ec[c[(c[b>>2]|0)+16>>2]&63](b)|0;cc[c[(c[b>>2]|0)+20>>2]&63](s,b);if(!(a[j>>0]&1)){a[j+1>>0]=0;a[j>>0]=0}else{a[c[j+8>>2]>>0]=0;c[j+4>>2]=0}mj(j,0);c[j+0>>2]=c[s+0>>2];c[j+4>>2]=c[s+4>>2];c[j+8>>2]=c[s+8>>2];c[s+0>>2]=0;c[s+4>>2]=0;c[s+8>>2]=0;gj(s);cc[c[(c[b>>2]|0)+24>>2]&63](t,b);if(!(a[k>>0]&1)){a[k+1>>0]=0;a[k>>0]=0}else{a[c[k+8>>2]>>0]=0;c[k+4>>2]=0}mj(k,0);c[k+0>>2]=c[t+0>>2];c[k+4>>2]=c[t+4>>2];c[k+8>>2]=c[t+8>>2];c[t+0>>2]=0;c[t+4>>2]=0;c[t+8>>2]=0;gj(t);C=ec[c[(c[b>>2]|0)+36>>2]&63](b)|0;c[m>>2]=C;i=n;return}else{b=oq(e,7400)|0;e=c[b>>2]|0;if(d){cc[c[e+44>>2]&63](u,b);d=c[u>>2]|0;a[f>>0]=d;a[f+1>>0]=d>>8;a[f+2>>0]=d>>16;a[f+3>>0]=d>>24;cc[c[(c[b>>2]|0)+32>>2]&63](v,b);if(!(a[l>>0]&1)){a[l+1>>0]=0;a[l>>0]=0}else{a[c[l+8>>2]>>0]=0;c[l+4>>2]=0}mj(l,0);c[l+0>>2]=c[v+0>>2];c[l+4>>2]=c[v+4>>2];c[l+8>>2]=c[v+8>>2];c[v+0>>2]=0;c[v+4>>2]=0;c[v+8>>2]=0;gj(v)}else{cc[c[e+40>>2]&63](w,b);e=c[w>>2]|0;a[f>>0]=e;a[f+1>>0]=e>>8;a[f+2>>0]=e>>16;a[f+3>>0]=e>>24;cc[c[(c[b>>2]|0)+28>>2]&63](x,b);if(!(a[l>>0]&1)){a[l+1>>0]=0;a[l>>0]=0}else{a[c[l+8>>2]>>0]=0;c[l+4>>2]=0}mj(l,0);c[l+0>>2]=c[x+0>>2];c[l+4>>2]=c[x+4>>2];c[l+8>>2]=c[x+8>>2];c[x+0>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;gj(x)}a[g>>0]=ec[c[(c[b>>2]|0)+12>>2]&63](b)|0;a[h>>0]=ec[c[(c[b>>2]|0)+16>>2]&63](b)|0;cc[c[(c[b>>2]|0)+20>>2]&63](y,b);if(!(a[j>>0]&1)){a[j+1>>0]=0;a[j>>0]=0}else{a[c[j+8>>2]>>0]=0;c[j+4>>2]=0}mj(j,0);c[j+0>>2]=c[y+0>>2];c[j+4>>2]=c[y+4>>2];c[j+8>>2]=c[y+8>>2];c[y+0>>2]=0;c[y+4>>2]=0;c[y+8>>2]=0;gj(y);cc[c[(c[b>>2]|0)+24>>2]&63](z,b);if(!(a[k>>0]&1)){a[k+1>>0]=0;a[k>>0]=0}else{a[c[k+8>>2]>>0]=0;c[k+4>>2]=0}mj(k,0);c[k+0>>2]=c[z+0>>2];c[k+4>>2]=c[z+4>>2];c[k+8>>2]=c[z+8>>2];c[z+0>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;gj(z);C=ec[c[(c[b>>2]|0)+36>>2]&63](b)|0;c[m>>2]=C;i=n;return}}function fp(d,e,f,g,h,j,k,l,m,n,o,p,q,r,s){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;s=s|0;var t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0;t=i;c[f>>2]=d;u=r+1|0;v=r+8|0;w=r+4|0;x=(g&512|0)==0;y=q+1|0;z=q+8|0;A=q+4|0;B=(s|0)>0;C=p+1|0;D=p+8|0;E=p+4|0;F=k+8|0;G=0-s|0;H=h;h=0;while(1){switch(a[m+h>>0]|0){case 0:{c[e>>2]=c[f>>2];I=H;break};case 2:{J=a[q>>0]|0;K=(J&1)==0;if(K)L=(J&255)>>>1;else L=c[A>>2]|0;if((L|0)==0|x)I=H;else{if(K){M=y;N=(J&255)>>>1}else{M=c[z>>2]|0;N=c[A>>2]|0}J=M+N|0;K=c[f>>2]|0;if((M|0)==(J|0))O=K;else{P=K;K=M;while(1){a[P>>0]=a[K>>0]|0;K=K+1|0;Q=P+1|0;if((K|0)==(J|0)){O=Q;break}else P=Q}}c[f>>2]=O;I=H}break};case 4:{P=c[f>>2]|0;J=l?H+1|0:H;a:do if(J>>>0>>0){K=J;while(1){Q=a[K>>0]|0;if(Q<<24>>24<=-1){R=K;break a}S=K+1|0;if(!(b[(c[F>>2]|0)+(Q<<24>>24<<1)>>1]&2048)){R=K;break a}if(S>>>0>>0)K=S;else{R=S;break}}}else R=J;while(0);K=R;if(B){if(R>>>0>J>>>0){S=J+(0-K)|0;K=S>>>0>>0?G:S;S=K+s|0;Q=P;T=R;U=s;while(1){V=T+ -1|0;W=a[V>>0]|0;c[f>>2]=Q+1;a[Q>>0]=W;W=U+ -1|0;X=(W|0)>0;if(!(V>>>0>J>>>0&X))break;Q=c[f>>2]|0;T=V;U=W}U=R+K|0;if(X){Y=U;Z=S;_=32}else{$=0;aa=U;ba=S}}else{Y=R;Z=s;_=32}if((_|0)==32){_=0;$=nc[c[(c[k>>2]|0)+28>>2]&15](k,48)|0;aa=Y;ba=Z}U=c[f>>2]|0;c[f>>2]=U+1;if((ba|0)>0){T=U;Q=ba;while(1){a[T>>0]=$;Q=Q+ -1|0;W=c[f>>2]|0;c[f>>2]=W+1;if((Q|0)<=0){ca=W;break}else T=W}}else ca=U;a[ca>>0]=n;da=aa}else da=R;if((da|0)==(J|0)){T=nc[c[(c[k>>2]|0)+28>>2]&15](k,48)|0;Q=c[f>>2]|0;c[f>>2]=Q+1;a[Q>>0]=T}else{T=a[p>>0]|0;Q=(T&1)==0;if(Q)ea=(T&255)>>>1;else ea=c[E>>2]|0;if(!ea){fa=da;ga=-1;ha=0;ia=0}else{if(Q)ja=C;else ja=c[D>>2]|0;fa=da;ga=a[ja>>0]|0;ha=0;ia=0}while(1){if((ia|0)==(ga|0)){Q=c[f>>2]|0;c[f>>2]=Q+1;a[Q>>0]=o;Q=ha+1|0;T=a[p>>0]|0;S=(T&1)==0;if(S)ka=(T&255)>>>1;else ka=c[E>>2]|0;if(Q>>>0>>0){if(S)la=C;else la=c[D>>2]|0;if((a[la+Q>>0]|0)==127){ma=-1;na=Q;oa=0}else{if(S)pa=C;else pa=c[D>>2]|0;ma=a[pa+Q>>0]|0;na=Q;oa=0}}else{ma=ga;na=Q;oa=0}}else{ma=ga;na=ha;oa=ia}fa=fa+ -1|0;Q=a[fa>>0]|0;S=c[f>>2]|0;c[f>>2]=S+1;a[S>>0]=Q;if((fa|0)==(J|0))break;else{ga=ma;ha=na;ia=oa+1|0}}}U=c[f>>2]|0;if((P|0)!=(U|0)?(Q=U+ -1|0,Q>>>0>P>>>0):0){U=P;S=Q;do{Q=a[U>>0]|0;a[U>>0]=a[S>>0]|0;a[S>>0]=Q;U=U+1|0;S=S+ -1|0}while(U>>>0>>0);I=J}else I=J;break};case 1:{c[e>>2]=c[f>>2];S=nc[c[(c[k>>2]|0)+28>>2]&15](k,32)|0;U=c[f>>2]|0;c[f>>2]=U+1;a[U>>0]=S;I=H;break};case 3:{S=a[r>>0]|0;U=(S&1)==0;if(U)qa=(S&255)>>>1;else qa=c[w>>2]|0;if(!qa)I=H;else{if(U)ra=u;else ra=c[v>>2]|0;U=a[ra>>0]|0;S=c[f>>2]|0;c[f>>2]=S+1;a[S>>0]=U;I=H}break};default:I=H}h=h+1|0;if((h|0)==4)break;else H=I}I=a[r>>0]|0;r=(I&1)==0;if(r)sa=(I&255)>>>1;else sa=c[w>>2]|0;if(sa>>>0>1){if(r){ta=u;ua=(I&255)>>>1}else{ta=c[v>>2]|0;ua=c[w>>2]|0}w=ta+1|0;v=ta+ua|0;ua=c[f>>2]|0;if((w|0)==(v|0))va=ua;else{ta=ua;ua=w;while(1){a[ta>>0]=a[ua>>0]|0;ua=ua+1|0;w=ta+1|0;if((ua|0)==(v|0)){va=w;break}else ta=w}}c[f>>2]=va}va=g&176;if((va|0)==32){c[e>>2]=c[f>>2];i=t;return}else if((va|0)==16){i=t;return}else{c[e>>2]=d;i=t;return}}function gp(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0;d=i;i=i+176|0;k=d+20|0;l=d+24|0;m=d+12|0;n=d+64|0;o=d+65|0;p=d;q=d+52|0;r=d+32|0;s=d+28|0;t=d+68|0;u=d+44|0;v=d+48|0;w=d+16|0;Hj(l,g);x=oq(l,8024)|0;y=a[j>>0]|0;z=(y&1)==0;if(z)A=(y&255)>>>1;else A=c[j+4>>2]|0;if(!A)B=0;else{if(z)C=j+1|0;else C=c[j+8>>2]|0;z=a[C>>0]|0;B=z<<24>>24==(nc[c[(c[x>>2]|0)+28>>2]&15](x,45)|0)<<24>>24}c[m>>2]=0;c[p+0>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[r+0>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;ep(f,B,l,m,n,o,p,q,r,s);f=a[j>>0]|0;z=(f&1)==0;if(z)D=(f&255)>>>1;else D=c[j+4>>2]|0;C=c[s>>2]|0;if((D|0)>(C|0)){if(z)E=(f&255)>>>1;else E=c[j+4>>2]|0;z=a[r>>0]|0;if(!(z&1))F=(z&255)>>>1;else F=c[r+4>>2]|0;z=a[q>>0]|0;if(!(z&1))G=(z&255)>>>1;else G=c[q+4>>2]|0;H=F+(E-C<<1|1)+G|0}else{G=a[r>>0]|0;if(!(G&1))I=(G&255)>>>1;else I=c[r+4>>2]|0;G=a[q>>0]|0;if(!(G&1))J=(G&255)>>>1;else J=c[q+4>>2]|0;H=I+2+J|0}J=H+C|0;if(J>>>0>100){H=fu(J)|0;if(!H)eu();else{K=H;L=H}}else{K=0;L=t}if(!(f&1)){M=j+1|0;N=(f&255)>>>1}else{M=c[j+8>>2]|0;N=c[j+4>>2]|0}fp(L,u,v,c[g+4>>2]|0,M,M+N|0,x,B,m,a[n>>0]|0,a[o>>0]|0,p,q,r,C);c[w>>2]=c[e>>2];e=c[u>>2]|0;u=c[v>>2]|0;c[k+0>>2]=c[w+0>>2];nm(b,k,L,e,u,g,h);gu(K);gj(r);gj(q);gj(p);Ni(c[l>>2]|0)|0;i=d;return}function hp(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function ip(a){a=a|0;return}function jp(b,d,e,f,g,j,l){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;l=+l;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;d=i;i=i+992|0;m=d;n=d+880|0;o=d+412|0;p=d+8|0;q=d+408|0;r=d+416|0;s=d+420|0;t=d+872|0;u=d+432|0;v=d+444|0;w=d+456|0;x=d+468|0;y=d+472|0;z=d+424|0;A=d+428|0;B=d+876|0;c[o>>2]=n;h[k>>3]=l;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];C=Du(n,100,7776,m)|0;if(C>>>0>99){n=Cl()|0;h[k>>3]=l;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];D=tm(o,n,7776,m)|0;n=c[o>>2]|0;if(!n)eu();E=fu(D<<2)|0;if(!E)eu();else{F=E;G=n;H=E;I=D}}else{F=0;G=0;H=p;I=C}Hj(q,g);C=oq(q,8016)|0;p=c[o>>2]|0;kc[c[(c[C>>2]|0)+48>>2]&7](C,p,p+I|0,H)|0;if(!I)J=0;else J=(a[c[o>>2]>>0]|0)==45;c[r>>2]=0;c[u+0>>2]=0;c[u+4>>2]=0;c[u+8>>2]=0;c[v+0>>2]=0;c[v+4>>2]=0;c[v+8>>2]=0;c[w+0>>2]=0;c[w+4>>2]=0;c[w+8>>2]=0;kp(f,J,q,r,s,t,u,v,w,x);f=c[x>>2]|0;if((I|0)>(f|0)){x=a[w>>0]|0;if(!(x&1))K=(x&255)>>>1;else K=c[w+4>>2]|0;x=a[v>>0]|0;if(!(x&1))L=(x&255)>>>1;else L=c[v+4>>2]|0;M=K+(I-f<<1|1)+L|0}else{L=a[w>>0]|0;if(!(L&1))N=(L&255)>>>1;else N=c[w+4>>2]|0;L=a[v>>0]|0;if(!(L&1))O=(L&255)>>>1;else O=c[v+4>>2]|0;M=N+2+O|0}O=M+f|0;if(O>>>0>100){M=fu(O<<2)|0;if(!M)eu();else{P=M;Q=M}}else{P=0;Q=y}lp(Q,z,A,c[g+4>>2]|0,H,H+(I<<2)|0,C,J,r,c[s>>2]|0,c[t>>2]|0,u,v,w,f);c[B>>2]=c[e>>2];e=c[z>>2]|0;z=c[A>>2]|0;c[m+0>>2]=c[B+0>>2];Cm(b,m,Q,e,z,g,j);if(P)gu(P);vj(w);vj(v);gj(u);Ni(c[q>>2]|0)|0;if(!F){gu(G);i=d;return}gu(F);gu(G);i=d;return}function kp(b,d,e,f,g,h,j,k,l,m){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;n=i;i=i+112|0;o=n+12|0;p=n+40|0;q=n+92|0;r=n;s=n+80|0;t=n+96|0;u=n+108|0;v=n+56|0;w=n+52|0;x=n+16|0;y=n+28|0;z=n+68|0;if(b){b=oq(e,7592)|0;A=c[b>>2]|0;if(d){cc[c[A+44>>2]&63](o,b);B=c[o>>2]|0;a[f>>0]=B;a[f+1>>0]=B>>8;a[f+2>>0]=B>>16;a[f+3>>0]=B>>24;cc[c[(c[b>>2]|0)+32>>2]&63](p,b);if(!(a[l>>0]&1)){c[l+4>>2]=0;a[l>>0]=0}else{c[c[l+8>>2]>>2]=0;c[l+4>>2]=0}zj(l,0);c[l+0>>2]=c[p+0>>2];c[l+4>>2]=c[p+4>>2];c[l+8>>2]=c[p+8>>2];c[p+0>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;vj(p)}else{cc[c[A+40>>2]&63](q,b);A=c[q>>2]|0;a[f>>0]=A;a[f+1>>0]=A>>8;a[f+2>>0]=A>>16;a[f+3>>0]=A>>24;cc[c[(c[b>>2]|0)+28>>2]&63](r,b);if(!(a[l>>0]&1)){c[l+4>>2]=0;a[l>>0]=0}else{c[c[l+8>>2]>>2]=0;c[l+4>>2]=0}zj(l,0);c[l+0>>2]=c[r+0>>2];c[l+4>>2]=c[r+4>>2];c[l+8>>2]=c[r+8>>2];c[r+0>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;vj(r)}c[g>>2]=ec[c[(c[b>>2]|0)+12>>2]&63](b)|0;c[h>>2]=ec[c[(c[b>>2]|0)+16>>2]&63](b)|0;cc[c[(c[b>>2]|0)+20>>2]&63](s,b);if(!(a[j>>0]&1)){a[j+1>>0]=0;a[j>>0]=0}else{a[c[j+8>>2]>>0]=0;c[j+4>>2]=0}mj(j,0);c[j+0>>2]=c[s+0>>2];c[j+4>>2]=c[s+4>>2];c[j+8>>2]=c[s+8>>2];c[s+0>>2]=0;c[s+4>>2]=0;c[s+8>>2]=0;gj(s);cc[c[(c[b>>2]|0)+24>>2]&63](t,b);if(!(a[k>>0]&1)){c[k+4>>2]=0;a[k>>0]=0}else{c[c[k+8>>2]>>2]=0;c[k+4>>2]=0}zj(k,0);c[k+0>>2]=c[t+0>>2];c[k+4>>2]=c[t+4>>2];c[k+8>>2]=c[t+8>>2];c[t+0>>2]=0;c[t+4>>2]=0;c[t+8>>2]=0;vj(t);C=ec[c[(c[b>>2]|0)+36>>2]&63](b)|0;c[m>>2]=C;i=n;return}else{b=oq(e,7528)|0;e=c[b>>2]|0;if(d){cc[c[e+44>>2]&63](u,b);d=c[u>>2]|0;a[f>>0]=d;a[f+1>>0]=d>>8;a[f+2>>0]=d>>16;a[f+3>>0]=d>>24;cc[c[(c[b>>2]|0)+32>>2]&63](v,b);if(!(a[l>>0]&1)){c[l+4>>2]=0;a[l>>0]=0}else{c[c[l+8>>2]>>2]=0;c[l+4>>2]=0}zj(l,0);c[l+0>>2]=c[v+0>>2];c[l+4>>2]=c[v+4>>2];c[l+8>>2]=c[v+8>>2];c[v+0>>2]=0;c[v+4>>2]=0;c[v+8>>2]=0;vj(v)}else{cc[c[e+40>>2]&63](w,b);e=c[w>>2]|0;a[f>>0]=e;a[f+1>>0]=e>>8;a[f+2>>0]=e>>16;a[f+3>>0]=e>>24;cc[c[(c[b>>2]|0)+28>>2]&63](x,b);if(!(a[l>>0]&1)){c[l+4>>2]=0;a[l>>0]=0}else{c[c[l+8>>2]>>2]=0;c[l+4>>2]=0}zj(l,0);c[l+0>>2]=c[x+0>>2];c[l+4>>2]=c[x+4>>2];c[l+8>>2]=c[x+8>>2];c[x+0>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;vj(x)}c[g>>2]=ec[c[(c[b>>2]|0)+12>>2]&63](b)|0;c[h>>2]=ec[c[(c[b>>2]|0)+16>>2]&63](b)|0;cc[c[(c[b>>2]|0)+20>>2]&63](y,b);if(!(a[j>>0]&1)){a[j+1>>0]=0;a[j>>0]=0}else{a[c[j+8>>2]>>0]=0;c[j+4>>2]=0}mj(j,0);c[j+0>>2]=c[y+0>>2];c[j+4>>2]=c[y+4>>2];c[j+8>>2]=c[y+8>>2];c[y+0>>2]=0;c[y+4>>2]=0;c[y+8>>2]=0;gj(y);cc[c[(c[b>>2]|0)+24>>2]&63](z,b);if(!(a[k>>0]&1)){c[k+4>>2]=0;a[k>>0]=0}else{c[c[k+8>>2]>>2]=0;c[k+4>>2]=0}zj(k,0);c[k+0>>2]=c[z+0>>2];c[k+4>>2]=c[z+4>>2];c[k+8>>2]=c[z+8>>2];c[z+0>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;vj(z);C=ec[c[(c[b>>2]|0)+36>>2]&63](b)|0;c[m>>2]=C;i=n;return}} + + + +function lp(b,d,e,f,g,h,j,k,l,m,n,o,p,q,r){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0;s=i;c[e>>2]=b;t=q+4|0;u=q+8|0;v=(f&512|0)==0;w=p+4|0;x=p+8|0;y=(r|0)>0;z=o+1|0;A=o+8|0;B=o+4|0;C=g;g=0;while(1){switch(a[l+g>>0]|0){case 3:{D=a[q>>0]|0;E=(D&1)==0;if(E)F=(D&255)>>>1;else F=c[t>>2]|0;if(!F)G=C;else{if(E)H=t;else H=c[u>>2]|0;E=c[H>>2]|0;D=c[e>>2]|0;c[e>>2]=D+4;c[D>>2]=E;G=C}break};case 4:{E=c[e>>2]|0;D=k?C+4|0:C;a:do if(D>>>0>>0){I=D;while(1){J=I+4|0;if(!(_b[c[(c[j>>2]|0)+12>>2]&31](j,2048,c[I>>2]|0)|0)){K=I;break a}if(J>>>0>>0)I=J;else{K=J;break}}}else K=D;while(0);if(y){if(K>>>0>D>>>0){I=c[e>>2]|0;J=K;L=r;do{J=J+ -4|0;M=I;I=I+4|0;c[M>>2]=c[J>>2];L=L+ -1|0;N=(L|0)>0}while(J>>>0>D>>>0&N);c[e>>2]=I;if(N){O=J;P=L;Q=34}else{M=c[e>>2]|0;c[e>>2]=M+4;R=M;S=J}}else{O=K;P=r;Q=34}if((Q|0)==34){Q=0;M=nc[c[(c[j>>2]|0)+44>>2]&15](j,48)|0;T=c[e>>2]|0;U=T+4|0;c[e>>2]=U;if((P|0)>0){V=T;W=U;U=P;while(1){c[V>>2]=M;U=U+ -1|0;if((U|0)<=0)break;else{X=W;W=W+4|0;V=X}}c[e>>2]=T+(P+1<<2);R=T+(P<<2)|0;S=O}else{R=T;S=O}}c[R>>2]=m;Y=S}else Y=K;if((Y|0)==(D|0)){V=nc[c[(c[j>>2]|0)+44>>2]&15](j,48)|0;W=c[e>>2]|0;U=W+4|0;c[e>>2]=U;c[W>>2]=V;Z=U}else{U=a[o>>0]|0;V=(U&1)==0;if(V)_=(U&255)>>>1;else _=c[B>>2]|0;if(!_){$=Y;aa=-1;ba=0;ca=0}else{if(V)da=z;else da=c[A>>2]|0;$=Y;aa=a[da>>0]|0;ba=0;ca=0}while(1){V=c[e>>2]|0;if((ca|0)==(aa|0)){U=V+4|0;c[e>>2]=U;c[V>>2]=n;W=ba+1|0;M=a[o>>0]|0;J=(M&1)==0;if(J)ea=(M&255)>>>1;else ea=c[B>>2]|0;if(W>>>0>>0){if(J)fa=z;else fa=c[A>>2]|0;if((a[fa+W>>0]|0)==127){ga=U;ha=-1;ia=W;ja=0}else{if(J)ka=z;else ka=c[A>>2]|0;ga=U;ha=a[ka+W>>0]|0;ia=W;ja=0}}else{ga=U;ha=aa;ia=W;ja=0}}else{ga=V;ha=aa;ia=ba;ja=ca}$=$+ -4|0;V=c[$>>2]|0;W=ga+4|0;c[e>>2]=W;c[ga>>2]=V;if(($|0)==(D|0)){Z=W;break}else{aa=ha;ba=ia;ca=ja+1|0}}}if((E|0)!=(Z|0)?(T=Z+ -4|0,T>>>0>E>>>0):0){W=E;V=T;do{T=c[W>>2]|0;c[W>>2]=c[V>>2];c[V>>2]=T;W=W+4|0;V=V+ -4|0}while(W>>>0>>0);G=D}else G=D;break};case 2:{V=a[p>>0]|0;W=(V&1)==0;if(W)la=(V&255)>>>1;else la=c[w>>2]|0;if((la|0)==0|v)G=C;else{if(W){ma=w;na=(V&255)>>>1}else{ma=c[x>>2]|0;na=c[w>>2]|0}V=ma+(na<<2)|0;W=c[e>>2]|0;if((ma|0)==(V|0))oa=W;else{E=(ma+(na+ -1<<2)+(0-ma)|0)>>>2;T=W;U=ma;while(1){c[T>>2]=c[U>>2];J=U+4|0;if((J|0)==(V|0))break;T=T+4|0;U=J}oa=W+(E+1<<2)|0}c[e>>2]=oa;G=C}break};case 1:{c[d>>2]=c[e>>2];U=nc[c[(c[j>>2]|0)+44>>2]&15](j,32)|0;T=c[e>>2]|0;c[e>>2]=T+4;c[T>>2]=U;G=C;break};case 0:{c[d>>2]=c[e>>2];G=C;break};default:G=C}g=g+1|0;if((g|0)==4)break;else C=G}G=a[q>>0]|0;q=(G&1)==0;if(q)pa=(G&255)>>>1;else pa=c[t>>2]|0;if(pa>>>0>1){if(q){qa=t;ra=(G&255)>>>1}else{qa=c[u>>2]|0;ra=c[t>>2]|0}t=qa+4|0;u=qa+(ra<<2)|0;G=c[e>>2]|0;if((t|0)==(u|0))sa=G;else{q=(qa+(ra+ -1<<2)+(0-t)|0)>>>2;ra=G;qa=t;while(1){c[ra>>2]=c[qa>>2];qa=qa+4|0;if((qa|0)==(u|0))break;else ra=ra+4|0}sa=G+(q+1<<2)|0}c[e>>2]=sa}sa=f&176;if((sa|0)==32){c[d>>2]=c[e>>2];i=s;return}else if((sa|0)==16){i=s;return}else{c[d>>2]=b;i=s;return}}function mp(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;d=i;i=i+480|0;k=d+456|0;l=d+440|0;m=d+28|0;n=d+24|0;o=d+436|0;p=d+444|0;q=d+460|0;r=d+8|0;s=d+4|0;t=d+32|0;u=d+20|0;v=d+432|0;w=d;Hj(l,g);x=oq(l,8016)|0;y=a[j>>0]|0;z=(y&1)==0;if(z)A=(y&255)>>>1;else A=c[j+4>>2]|0;if(!A)B=0;else{if(z)C=j+4|0;else C=c[j+8>>2]|0;z=c[C>>2]|0;B=(z|0)==(nc[c[(c[x>>2]|0)+44>>2]&15](x,45)|0)}c[m>>2]=0;c[p+0>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[r+0>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;kp(f,B,l,m,n,o,p,q,r,s);f=a[j>>0]|0;z=(f&1)==0;if(z)D=(f&255)>>>1;else D=c[j+4>>2]|0;C=c[s>>2]|0;if((D|0)>(C|0)){if(z)E=(f&255)>>>1;else E=c[j+4>>2]|0;z=a[r>>0]|0;if(!(z&1))F=(z&255)>>>1;else F=c[r+4>>2]|0;z=a[q>>0]|0;if(!(z&1))G=(z&255)>>>1;else G=c[q+4>>2]|0;H=F+(E-C<<1|1)+G|0}else{G=a[r>>0]|0;if(!(G&1))I=(G&255)>>>1;else I=c[r+4>>2]|0;G=a[q>>0]|0;if(!(G&1))J=(G&255)>>>1;else J=c[q+4>>2]|0;H=I+2+J|0}J=H+C|0;if(J>>>0>100){H=fu(J<<2)|0;if(!H)eu();else{K=H;L=H}}else{K=0;L=t}if(!(f&1)){M=j+4|0;N=(f&255)>>>1}else{M=c[j+8>>2]|0;N=c[j+4>>2]|0}lp(L,u,v,c[g+4>>2]|0,M,M+(N<<2)|0,x,B,m,c[n>>2]|0,c[o>>2]|0,p,q,r,C);c[w>>2]=c[e>>2];e=c[u>>2]|0;u=c[v>>2]|0;c[k+0>>2]=c[w+0>>2];Cm(b,k,L,e,u,g,h);if(!K){vj(r);vj(q);gj(p);O=c[l>>2]|0;Ni(O)|0;i=d;return}gu(K);vj(r);vj(q);gj(p);O=c[l>>2]|0;Ni(O)|0;i=d;return}function np(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function op(a){a=a|0;return}function pp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;e=i;if(!(a[d>>0]&1))f=d+1|0;else f=c[d+8>>2]|0;d=Ub(f|0,1)|0;i=e;return d>>>((d|0)!=(-1|0)&1)|0}function qp(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;d=i;i=i+16|0;j=d;c[j+0>>2]=0;c[j+4>>2]=0;c[j+8>>2]=0;k=a[h>>0]|0;if(!(k&1)){l=h+1|0;m=(k&255)>>>1;n=h+1|0}else{k=c[h+8>>2]|0;l=k;m=c[h+4>>2]|0;n=k}k=l+m|0;if(n>>>0>>0){m=n;do{oj(j,a[m>>0]|0);m=m+1|0}while((m|0)!=(k|0));k=(e|0)==-1?-1:e<<1;if(!(a[j>>0]&1)){o=k;p=9}else{q=k;r=c[j+8>>2]|0}}else{o=(e|0)==-1?-1:e<<1;p=9}if((p|0)==9){q=o;r=j+1|0}o=_a(q|0,f|0,g|0,r|0)|0;c[b+0>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;r=Su(o|0)|0;g=o+r|0;if((r|0)>0)s=o;else{gj(j);i=d;return}do{oj(b,a[s>>0]|0);s=s+1|0}while((s|0)!=(g|0));gj(j);i=d;return}function rp(a,b){a=a|0;b=b|0;a=i;Lb(((b|0)==-1?-1:b<<1)|0)|0;i=a;return}function sp(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function tp(a){a=a|0;return}function up(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;e=i;if(!(a[d>>0]&1))f=d+1|0;else f=c[d+8>>2]|0;d=Ub(f|0,1)|0;i=e;return d>>>((d|0)!=(-1|0)&1)|0}function vp(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var 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;d=i;i=i+176|0;j=d;k=d+40|0;l=d+168|0;m=d+172|0;n=d+16|0;o=d+8|0;p=d+32|0;c[n+0>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;c[o+4>>2]=0;c[o>>2]=9680;q=a[h>>0]|0;if(!(q&1)){r=h+4|0;s=(q&255)>>>1;t=h+4|0}else{q=c[h+8>>2]|0;r=q;s=c[h+4>>2]|0;t=q}q=r+(s<<2)|0;s=j;c[s>>2]=0;c[s+4>>2]=0;a:do if(t>>>0>>0){s=k+32|0;r=t;h=9680|0;while(1){c[m>>2]=r;u=(jc[c[h+12>>2]&15](o,j,r,q,m,k,s,l)|0)==2;v=c[m>>2]|0;if(u|(v|0)==(r|0))break;if(k>>>0<(c[l>>2]|0)>>>0){u=k;do{oj(n,a[u>>0]|0);u=u+1|0}while(u>>>0<(c[l>>2]|0)>>>0);w=c[m>>2]|0}else w=v;if(w>>>0>=q>>>0)break a;r=w;h=c[o>>2]|0}Oo(8904)}while(0);if(!(a[n>>0]&1))x=n+1|0;else x=c[n+8>>2]|0;o=_a(((e|0)==-1?-1:e<<1)|0,f|0,g|0,x|0)|0;c[b+0>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[p+4>>2]=0;c[p>>2]=9784;x=Su(o|0)|0;g=o+x|0;f=j;c[f>>2]=0;c[f+4>>2]=0;if((x|0)<=0){gj(n);i=d;return}x=g;f=k+128|0;e=o;o=9784|0;while(1){c[m>>2]=e;w=(jc[c[o+16>>2]&15](p,j,e,(x-e|0)>32?e+32|0:g,m,k,f,l)|0)==2;q=c[m>>2]|0;if(w|(q|0)==(e|0)){y=20;break}if(k>>>0<(c[l>>2]|0)>>>0){w=k;do{Aj(b,c[w>>2]|0);w=w+4|0}while(w>>>0<(c[l>>2]|0)>>>0);z=c[m>>2]|0}else z=q;if(z>>>0>=g>>>0){y=25;break}e=z;o=c[p>>2]|0}if((y|0)==20)Oo(8904);else if((y|0)==25){gj(n);i=d;return}}function wp(a,b){a=a|0;b=b|0;a=i;Lb(((b|0)==-1?-1:b<<1)|0)|0;i=a;return}function xp(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=8112;d=a+8|0;a=c[d>>2]|0;if((a|0)==(Cl()|0)){i=b;return}fb(c[d>>2]|0);i=b;return}function yp(a){a=a|0;a=Na(8)|0;Oi(a,7904);c[a>>2]=16560;Nb(a|0,16600,98)}function zp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;c[b+4>>2]=d+ -1;c[b>>2]=7944;d=b+8|0;ys(d,28);dj(b+144|0,7928,1);f=c[d>>2]|0;d=b+12|0;g=c[d>>2]|0;if((g|0)!=(f|0))c[d>>2]=g+(~((g+ -4+(0-f)|0)>>>2)<<2);c[3209]=0;c[3208]=6392;Ap(b,12832);c[3207]=0;c[3206]=6432;Bp(b,12824);Iq(12808,0,0,1);Cp(b,12808);c[3201]=0;c[3200]=9e3;Dp(b,12800);c[3199]=0;c[3198]=9216;Ep(b,12792);$q(12776,1);Fp(b,12776);c[3193]=0;c[3192]=9440;Gp(b,12768);c[3191]=0;c[3190]=9560;Hp(b,12760);c[3185]=0;c[3184]=8192;a[12744]=46;a[12745]=44;c[3187]=0;c[3188]=0;c[3189]=0;Ip(b,12736);c[3177]=0;c[3176]=8232;c[3178]=46;c[3179]=44;c[3180]=0;c[3181]=0;c[3182]=0;Jp(b,12704);c[3175]=0;c[3174]=6472;Kp(b,12696);c[3173]=0;c[3172]=6592;Lp(b,12688);c[3171]=0;c[3170]=6664;Mp(b,12680);c[3169]=0;c[3168]=6760;Np(b,12672);c[3167]=0;c[3166]=7352;Op(b,12664);c[3165]=0;c[3164]=7416;Pp(b,12656);c[3163]=0;c[3162]=7480;Qp(b,12648);c[3161]=0;c[3160]=7544;Rp(b,12640);c[3159]=0;c[3158]=7608;Sp(b,12632);c[3157]=0;c[3156]=7688;Tp(b,12624);c[3155]=0;c[3154]=7744;Up(b,12616);c[3153]=0;c[3152]=7792;Vp(b,12608);c[3149]=0;c[3148]=6840;c[3150]=6888;Wp(b,12592);c[3145]=0;c[3144]=6992;c[3146]=7040;Xp(b,12576);c[3141]=0;c[3140]=8936;c[3142]=Cl()|0;c[3140]=7288;Yp(b,12560);c[3137]=0;c[3136]=8936;c[3138]=Cl()|0;c[3136]=7320;Zp(b,12544);c[3135]=0;c[3134]=7832;_p(b,12536);c[3133]=0;c[3132]=7872;$p(b,12528);i=e;return}function Ap(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(6416)|0);i=c;return}function Bp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(6456)|0);i=c;return}function Cp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(8024)|0);i=c;return}function Dp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(8016)|0);i=c;return}function Ep(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(8088)|0);i=c;return}function Fp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(8096)|0);i=c;return}function Gp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(8152)|0);i=c;return}function Hp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(8160)|0);i=c;return}function Ip(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(8168)|0);i=c;return}function Jp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(8176)|0);i=c;return}function Kp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(6528)|0);i=c;return}function Lp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(6648)|0);i=c;return}function Mp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(6712)|0);i=c;return}function Np(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(6808)|0);i=c;return}function Op(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(7400)|0);i=c;return}function Pp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(7464)|0);i=c;return}function Qp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(7528)|0);i=c;return}function Rp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(7592)|0);i=c;return}function Sp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(7632)|0);i=c;return}function Tp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(7712)|0);i=c;return}function Up(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(7768)|0);i=c;return}function Vp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(7816)|0);i=c;return}function Wp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(6920)|0);i=c;return}function Xp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(7072)|0);i=c;return}function Yp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(7304)|0);i=c;return}function Zp(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(7336)|0);i=c;return}function _p(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(7856)|0);i=c;return}function $p(a,b){a=a|0;b=b|0;var c=0;c=i;bq(a,b,nq(7896)|0);i=c;return}function aq(){var b=0;b=i;if((a[7976]|0)==0?(Ia(7976)|0)!=0:0){hq()|0;c[1992]=7960;Ra(7976)}i=b;return c[1992]|0}function bq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;Mi(b);f=a+8|0;g=c[f>>2]|0;if((c[a+12>>2]|0)-g>>2>>>0>d>>>0)h=g;else{eq(f,d+1|0);h=c[f>>2]|0}g=c[h+(d<<2)>>2]|0;if(!g){j=h;k=j+(d<<2)|0;c[k>>2]=b;i=e;return}Ni(g)|0;j=c[f>>2]|0;k=j+(d<<2)|0;c[k>>2]=b;i=e;return}function cq(a){a=a|0;var b=0;b=i;dq(a);kt(a);i=b;return}function dq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;b=i;c[a>>2]=7944;d=a+8|0;e=a+12|0;f=c[e>>2]|0;g=c[d>>2]|0;if((f|0)!=(g|0)){h=f;f=g;g=0;while(1){j=c[f+(g<<2)>>2]|0;if(!j){k=h;l=f}else{Ni(j)|0;k=c[e>>2]|0;l=c[d>>2]|0}g=g+1|0;if(g>>>0>=k-l>>2>>>0)break;else{h=k;f=l}}}gj(a+144|0);zs(d);i=b;return}function eq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=a+4|0;f=c[e>>2]|0;g=c[a>>2]|0;h=f-g>>2;if(h>>>0>>0){rs(a,b-h|0);i=d;return}if(h>>>0<=b>>>0){i=d;return}h=g+(b<<2)|0;if((f|0)==(h|0)){i=d;return}c[e>>2]=f+(~((f+ -4+(0-h)|0)>>>2)<<2);i=d;return}function fq(a,b){a=a|0;b=b|0;var d=0;d=i;if(gq(a,b)|0){i=d;return c[(c[a+8>>2]|0)+(b<<2)>>2]|0}else{b=Na(4)|0;Et(b);Nb(b|0,16736,103)}return 0}function gq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=c[a+8>>2]|0;if((c[a+12>>2]|0)-e>>2>>>0<=b>>>0){f=0;i=d;return f|0}f=(c[e+(b<<2)>>2]|0)!=0;i=d;return f|0}function hq(){var a=0;a=i;zp(12368,1);c[1990]=12368;i=a;return 7960}function iq(){var a=0,b=0;a=i;b=c[(aq()|0)>>2]|0;c[1996]=b;Mi(b);i=a;return 7984}function jq(){var b=0;b=i;if((a[8e3]|0)==0?(Ia(8e3)|0)!=0:0){iq()|0;c[1998]=7984;Ra(8e3)}i=b;return c[1998]|0}function kq(a){a=a|0;var b=0,d=0;b=i;d=c[(jq()|0)>>2]|0;c[a>>2]=d;Mi(d);i=b;return}function lq(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[b>>2]|0;c[a>>2]=e;Mi(e);i=d;return}function mq(a){a=a|0;var b=0;b=i;Ni(c[a>>2]|0)|0;i=b;return}function nq(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;if((c[a>>2]|0)!=-1){c[d>>2]=a;c[d+4>>2]=114;c[d+8>>2]=0;$i(a,d,115)}i=b;return(c[a+4>>2]|0)+ -1|0}function oq(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[a>>2]|0;a=fq(e,nq(b)|0)|0;i=d;return a|0}function pq(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function qq(a){a=a|0;var b=0;b=i;if(!a){i=b;return}bc[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function rq(a){a=a|0;var b=0;b=c[2002]|0;c[2002]=b+1;c[a+4>>2]=b+1;return}function sq(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function tq(a,c,d){a=a|0;c=c|0;d=d|0;var e=0;a=i;if(d>>>0>=128){e=0;i=a;return e|0}e=(b[(uq()|0)+(d<<1)>>1]&c)<<16>>16!=0;i=a;return e|0}function uq(){var a=0,b=0;a=i;b=c[(Ga()|0)>>2]|0;i=a;return b|0}function vq(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;a=i;if((d|0)==(e|0)){g=d;i=a;return g|0}h=((e+ -4+(0-d)|0)>>>2)+1|0;j=d;k=f;while(1){f=c[j>>2]|0;if(f>>>0<128)l=b[(uq()|0)+(f<<1)>>1]|0;else l=0;b[k>>1]=l;j=j+4|0;if((j|0)==(e|0))break;else k=k+2|0}g=d+(h<<2)|0;i=a;return g|0}function wq(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0;a=i;a:do if((e|0)==(f|0))g=e;else{h=e;while(1){j=c[h>>2]|0;if(j>>>0<128?(b[(uq()|0)+(j<<1)>>1]&d)<<16>>16!=0:0){g=h;break a}h=h+4|0;if((h|0)==(f|0)){g=f;break}}}while(0);i=a;return g|0}function xq(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0;a=i;a:do if((e|0)==(f|0))g=e;else{h=e;while(1){j=c[h>>2]|0;if(j>>>0>=128){g=h;break a}if(!((b[(uq()|0)+(j<<1)>>1]&d)<<16>>16)){g=h;break a}h=h+4|0;if((h|0)==(f|0)){g=f;break}}}while(0);i=a;return g|0}function yq(a,b){a=a|0;b=b|0;var d=0;a=i;if(b>>>0>=128){d=b;i=a;return d|0}d=c[(zq()|0)+(b<<2)>>2]|0;i=a;return d|0}function zq(){var a=0,b=0;a=i;b=c[(Pa()|0)>>2]|0;i=a;return b|0}function Aq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;a=i;if((b|0)==(d|0)){e=b;i=a;return e|0}f=((d+ -4+(0-b)|0)>>>2)+1|0;g=b;do{h=c[g>>2]|0;if(h>>>0<128)j=c[(zq()|0)+(h<<2)>>2]|0;else j=h;c[g>>2]=j;g=g+4|0}while((g|0)!=(d|0));e=b+(f<<2)|0;i=a;return e|0}function Bq(a,b){a=a|0;b=b|0;var d=0;a=i;if(b>>>0>=128){d=b;i=a;return d|0}d=c[(Cq()|0)+(b<<2)>>2]|0;i=a;return d|0}function Cq(){var a=0,b=0;a=i;b=c[(lb()|0)>>2]|0;i=a;return b|0}function Dq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;a=i;if((b|0)==(d|0)){e=b;i=a;return e|0}f=((d+ -4+(0-b)|0)>>>2)+1|0;g=b;do{h=c[g>>2]|0;if(h>>>0<128)j=c[(Cq()|0)+(h<<2)>>2]|0;else j=h;c[g>>2]=j;g=g+4|0}while((g|0)!=(d|0));e=b+(f<<2)|0;i=a;return e|0}function Eq(a,b){a=a|0;b=b|0;return b<<24>>24|0}function Fq(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0;b=i;if((d|0)==(e|0)){g=d;i=b;return g|0}else{h=d;j=f}while(1){c[j>>2]=a[h>>0];h=h+1|0;if((h|0)==(e|0)){g=e;break}else j=j+4|0}i=b;return g|0}function Gq(a,b,c){a=a|0;b=b|0;c=c|0;return(b>>>0<128?b&255:c)|0}function Hq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0;b=i;if((d|0)==(e|0)){h=d;i=b;return h|0}j=((e+ -4+(0-d)|0)>>>2)+1|0;k=d;l=g;while(1){g=c[k>>2]|0;a[l>>0]=g>>>0<128?g&255:f;k=k+4|0;if((k|0)==(e|0))break;else l=l+1|0}h=d+(j<<2)|0;i=b;return h|0}function Iq(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;c[b+4>>2]=f+ -1;c[b>>2]=8040;f=b+8|0;c[f>>2]=d;a[b+12>>0]=e&1;if(d){i=g;return}c[f>>2]=uq()|0;i=g;return}function Jq(a){a=a|0;var b=0;b=i;Kq(a);kt(a);i=b;return}function Kq(b){b=b|0;var d=0,e=0;d=i;c[b>>2]=8040;e=c[b+8>>2]|0;if((e|0)!=0?(a[b+12>>0]|0)!=0:0)mt(e);i=d;return}function Lq(a,b){a=a|0;b=b|0;var d=0;a=i;if(b<<24>>24<=-1){d=b;i=a;return d|0}d=c[(zq()|0)+((b&255)<<2)>>2]&255;i=a;return d|0}function Mq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;b=i;if((d|0)==(e|0)){f=d;i=b;return f|0}else g=d;do{d=a[g>>0]|0;if(d<<24>>24>-1)h=c[(zq()|0)+(d<<24>>24<<2)>>2]&255;else h=d;a[g>>0]=h;g=g+1|0}while((g|0)!=(e|0));f=e;i=b;return f|0}function Nq(a,b){a=a|0;b=b|0;var d=0;a=i;if(b<<24>>24<=-1){d=b;i=a;return d|0}d=c[(Cq()|0)+(b<<24>>24<<2)>>2]&255;i=a;return d|0}function Oq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;b=i;if((d|0)==(e|0)){f=d;i=b;return f|0}else g=d;do{d=a[g>>0]|0;if(d<<24>>24>-1)h=c[(Cq()|0)+(d<<24>>24<<2)>>2]&255;else h=d;a[g>>0]=h;g=g+1|0}while((g|0)!=(e|0));f=e;i=b;return f|0}function Pq(a,b){a=a|0;b=b|0;return b|0}function Qq(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;b=i;if((c|0)==(d|0))f=c;else{g=c;c=e;while(1){a[c>>0]=a[g>>0]|0;g=g+1|0;if((g|0)==(d|0)){f=d;break}else c=c+1|0}}i=b;return f|0}function Rq(a,b,c){a=a|0;b=b|0;c=c|0;return(b<<24>>24>-1?b:c)|0}function Sq(b,c,d,e,f){b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0;b=i;if((c|0)==(d|0)){g=c;i=b;return g|0}else{h=c;j=f}while(1){f=a[h>>0]|0;a[j>>0]=f<<24>>24>-1?f:e;h=h+1|0;if((h|0)==(d|0)){g=d;break}else j=j+1|0}i=b;return g|0}function Tq(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function Uq(a,b,d,e,f,g,h,i){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;c[f>>2]=d;c[i>>2]=g;return 3}function Vq(a,b,d,e,f,g,h,i){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;c[f>>2]=d;c[i>>2]=g;return 3}function Wq(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;c[f>>2]=d;return 3}function Xq(a){a=a|0;return 1}function Yq(a){a=a|0;return 1}function Zq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=d-c|0;return(b>>>0>>0?b:e)|0}function _q(a){a=a|0;return 1}function $q(a,b){a=a|0;b=b|0;var d=0;d=i;c[a+4>>2]=b+ -1;c[a>>2]=8112;c[a+8>>2]=Cl()|0;i=d;return}function ar(a){a=a|0;var b=0;b=i;xp(a);kt(a);i=b;return}function br(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;l=i;i=i+16|0;m=l;n=l+8|0;o=(e|0)==(f|0);a:do if(!o){p=e;while(1){if(!(c[p>>2]|0)){q=p;break}p=p+4|0;if((p|0)==(f|0)){q=f;break}}c[k>>2]=h;c[g>>2]=e;if(!(o|(h|0)==(j|0))){p=j;r=b+8|0;s=e;t=h;u=q;while(1){v=d;w=c[v+4>>2]|0;x=m;c[x>>2]=c[v>>2];c[x+4>>2]=w;w=Za(c[r>>2]|0)|0;x=Ts(t,g,u-s>>2,p-t|0,d)|0;if(w)Za(w|0)|0;if((x|0)==-1){y=10;break}else if(!x){z=1;y=33;break}w=(c[k>>2]|0)+x|0;c[k>>2]=w;if((w|0)==(j|0)){y=31;break}if((u|0)==(f|0)){A=c[g>>2]|0;B=w;C=f}else{w=Za(c[r>>2]|0)|0;x=yu(n,0,d)|0;if(w)Za(w|0)|0;if((x|0)==-1){z=2;y=33;break}w=c[k>>2]|0;if(x>>>0>(p-w|0)>>>0){z=1;y=33;break}b:do if(x){v=w;D=x;E=n;while(1){F=a[E>>0]|0;c[k>>2]=v+1;a[v>>0]=F;F=D+ -1|0;if(!F)break b;v=c[k>>2]|0;D=F;E=E+1|0}}while(0);x=(c[g>>2]|0)+4|0;c[g>>2]=x;c:do if((x|0)==(f|0))G=f;else{w=x;while(1){if(!(c[w>>2]|0)){G=w;break c}w=w+4|0;if((w|0)==(f|0)){G=f;break}}}while(0);A=x;B=c[k>>2]|0;C=G}if((A|0)==(f|0)|(B|0)==(j|0)){H=A;break a}else{s=A;t=B;u=C}}if((y|0)==10){c[k>>2]=t;d:do if((s|0)==(c[g>>2]|0))I=s;else{u=s;p=t;while(1){w=c[u>>2]|0;E=Za(c[r>>2]|0)|0;D=yu(p,w,m)|0;if(E)Za(E|0)|0;if((D|0)==-1){I=u;break d}p=(c[k>>2]|0)+D|0;c[k>>2]=p;D=u+4|0;if((D|0)==(c[g>>2]|0)){I=D;break}else u=D}}while(0);c[g>>2]=I;z=2;i=l;return z|0}else if((y|0)==31){H=c[g>>2]|0;break}else if((y|0)==33){i=l;return z|0}}else H=e}else{c[k>>2]=h;c[g>>2]=e;H=e}while(0);z=(H|0)!=(f|0)&1;i=l;return z|0}function cr(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;l=i;i=i+16|0;m=l;n=(e|0)==(f|0);a:do if(!n){o=e;while(1){if(!(a[o>>0]|0)){p=o;break}o=o+1|0;if((o|0)==(f|0)){p=f;break}}c[k>>2]=h;c[g>>2]=e;if(!(n|(h|0)==(j|0))){o=j;q=b+8|0;r=e;s=h;t=p;while(1){u=d;v=c[u+4>>2]|0;w=m;c[w>>2]=c[u>>2];c[w+4>>2]=v;x=t;v=Za(c[q>>2]|0)|0;w=Qs(s,g,x-r|0,o-s>>2,d)|0;if(v)Za(v|0)|0;if((w|0)==-1){y=10;break}else if(!w){z=2;y=32;break}v=(c[k>>2]|0)+(w<<2)|0;c[k>>2]=v;if((v|0)==(j|0)){y=30;break}w=c[g>>2]|0;if((t|0)==(f|0)){A=w;B=v;C=f}else{u=Za(c[q>>2]|0)|0;D=Os(v,w,1,d)|0;if(u)Za(u|0)|0;if(D){z=2;y=32;break}c[k>>2]=(c[k>>2]|0)+4;D=(c[g>>2]|0)+1|0;c[g>>2]=D;b:do if((D|0)==(f|0))E=f;else{u=D;while(1){if(!(a[u>>0]|0)){E=u;break b}u=u+1|0;if((u|0)==(f|0)){E=f;break}}}while(0);A=D;B=c[k>>2]|0;C=E}if((A|0)==(f|0)|(B|0)==(j|0)){F=A;break a}else{r=A;s=B;t=C}}if((y|0)==10){c[k>>2]=s;c:do if((r|0)!=(c[g>>2]|0)){t=r;o=s;while(1){u=Za(c[q>>2]|0)|0;w=Os(o,t,x-t|0,m)|0;if(u)Za(u|0)|0;if((w|0)==-1){y=15;break}else if((w|0)==-2){y=16;break}else if(!w)G=t+1|0;else G=t+w|0;o=(c[k>>2]|0)+4|0;c[k>>2]=o;if((G|0)==(c[g>>2]|0)){H=G;break c}else t=G}if((y|0)==15){c[g>>2]=t;z=2;i=l;return z|0}else if((y|0)==16){c[g>>2]=t;z=1;i=l;return z|0}}else H=r;while(0);c[g>>2]=H;z=(H|0)!=(f|0)&1;i=l;return z|0}else if((y|0)==30){F=c[g>>2]|0;break}else if((y|0)==32){i=l;return z|0}}else F=e}else{c[k>>2]=h;c[g>>2]=e;F=e}while(0);z=(F|0)!=(f|0)&1;i=l;return z|0}function dr(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;i=i+16|0;j=h;c[g>>2]=e;e=Za(c[b+8>>2]|0)|0;b=yu(j,0,d)|0;if(e)Za(e|0)|0;if((b|0)==0|(b|0)==-1){k=2;i=h;return k|0}e=b+ -1|0;b=c[g>>2]|0;if(e>>>0>(f-b|0)>>>0){k=1;i=h;return k|0}if(!e){k=0;i=h;return k|0}else{l=b;m=e;n=j}while(1){j=a[n>>0]|0;c[g>>2]=l+1;a[l>>0]=j;j=m+ -1|0;if(!j){k=0;break}l=c[g>>2]|0;m=j;n=n+1|0}i=h;return k|0}function er(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+8|0;a=Za(c[d>>2]|0)|0;e=Ss(0,0,4)|0;if(a)Za(a|0)|0;if(!e){e=c[d>>2]|0;if(e){d=Za(e|0)|0;if(!d)f=0;else{Za(d|0)|0;f=0}}else f=1}else f=-1;i=b;return f|0}function fr(a){a=a|0;return 0}function gr(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;g=i;if((f|0)==0|(d|0)==(e|0)){h=0;i=g;return h|0}j=e;k=a+8|0;a=d;d=0;l=0;while(1){m=Za(c[k>>2]|0)|0;n=Ns(a,j-a|0,b)|0;if(m)Za(m|0)|0;if(!n){o=a+1|0;p=1}else if((n|0)==-2|(n|0)==-1){h=d;q=9;break}else{o=a+n|0;p=n}n=p+d|0;l=l+1|0;if(l>>>0>=f>>>0|(o|0)==(e|0)){h=n;q=9;break}else{a=o;d=n}}if((q|0)==9){i=g;return h|0}return 0}function hr(a){a=a|0;var b=0,d=0,e=0;b=i;d=c[a+8>>2]|0;if(d){a=Za(d|0)|0;if(!a)e=4;else{Za(a|0)|0;e=4}}else e=1;i=b;return e|0}function ir(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function jr(a,b,d,e,f,g,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0;b=i;i=i+16|0;a=b+4|0;k=b;c[a>>2]=d;c[k>>2]=g;l=kr(d,e,a,g,h,k,1114111,0)|0;c[f>>2]=d+((c[a>>2]|0)-d>>1<<1);c[j>>2]=g+((c[k>>2]|0)-g);i=b;return l|0}function kr(d,f,g,h,j,k,l,m){d=d|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0;n=i;c[g>>2]=d;c[k>>2]=h;do if(m&2)if((j-h|0)<3){o=1;i=n;return o|0}else{c[k>>2]=h+1;a[h>>0]=-17;d=c[k>>2]|0;c[k>>2]=d+1;a[d>>0]=-69;d=c[k>>2]|0;c[k>>2]=d+1;a[d>>0]=-65;break}while(0);h=f;m=c[g>>2]|0;if(m>>>0>=f>>>0){o=0;i=n;return o|0}d=j;j=m;a:while(1){m=b[j>>1]|0;p=m&65535;if(p>>>0>l>>>0){o=2;q=26;break}do if((m&65535)<128){r=c[k>>2]|0;if((d-r|0)<1){o=1;q=26;break a}c[k>>2]=r+1;a[r>>0]=m}else{if((m&65535)<2048){r=c[k>>2]|0;if((d-r|0)<2){o=1;q=26;break a}c[k>>2]=r+1;a[r>>0]=p>>>6|192;r=c[k>>2]|0;c[k>>2]=r+1;a[r>>0]=p&63|128;break}if((m&65535)<55296){r=c[k>>2]|0;if((d-r|0)<3){o=1;q=26;break a}c[k>>2]=r+1;a[r>>0]=p>>>12|224;r=c[k>>2]|0;c[k>>2]=r+1;a[r>>0]=p>>>6&63|128;r=c[k>>2]|0;c[k>>2]=r+1;a[r>>0]=p&63|128;break}if((m&65535)>=56320){if((m&65535)<57344){o=2;q=26;break a}r=c[k>>2]|0;if((d-r|0)<3){o=1;q=26;break a}c[k>>2]=r+1;a[r>>0]=p>>>12|224;r=c[k>>2]|0;c[k>>2]=r+1;a[r>>0]=p>>>6&63|128;r=c[k>>2]|0;c[k>>2]=r+1;a[r>>0]=p&63|128;break}if((h-j|0)<4){o=1;q=26;break a}r=j+2|0;s=e[r>>1]|0;if((s&64512|0)!=56320){o=2;q=26;break a}if((d-(c[k>>2]|0)|0)<4){o=1;q=26;break a}t=p&960;if(((t<<10)+65536|p<<10&64512|s&1023)>>>0>l>>>0){o=2;q=26;break a}c[g>>2]=r;r=(t>>>6)+1|0;t=c[k>>2]|0;c[k>>2]=t+1;a[t>>0]=r>>>2|240;t=c[k>>2]|0;c[k>>2]=t+1;a[t>>0]=p>>>2&15|r<<4&48|128;r=c[k>>2]|0;c[k>>2]=r+1;a[r>>0]=p<<4&48|s>>>6&15|128;r=c[k>>2]|0;c[k>>2]=r+1;a[r>>0]=s&63|128}while(0);j=(c[g>>2]|0)+2|0;c[g>>2]=j;if(j>>>0>=f>>>0){o=0;q=26;break}}if((q|0)==26){i=n;return o|0}return 0}function lr(a,b,d,e,f,g,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0;b=i;i=i+16|0;a=b+4|0;k=b;c[a>>2]=d;c[k>>2]=g;l=mr(d,e,a,g,h,k,1114111,0)|0;c[f>>2]=d+((c[a>>2]|0)-d);c[j>>2]=g+((c[k>>2]|0)-g>>1<<1);i=b;return l|0}function mr(e,f,g,h,j,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;n=i;c[g>>2]=e;c[k>>2]=h;h=c[g>>2]|0;if(((((m&4|0)!=0?(f-h|0)>2:0)?(a[h>>0]|0)==-17:0)?(a[h+1>>0]|0)==-69:0)?(a[h+2>>0]|0)==-65:0){m=h+3|0;c[g>>2]=m;o=m}else o=h;a:do if(o>>>0>>0){h=f;m=j;e=c[k>>2]|0;p=o;b:while(1){if(e>>>0>=j>>>0){q=p;break a}r=a[p>>0]|0;s=r&255;if(s>>>0>l>>>0){t=2;u=41;break}do if(r<<24>>24>-1){b[e>>1]=r&255;c[g>>2]=p+1}else{if((r&255)<194){t=2;u=41;break b}if((r&255)<224){if((h-p|0)<2){t=1;u=41;break b}v=d[p+1>>0]|0;if((v&192|0)!=128){t=2;u=41;break b}w=v&63|s<<6&1984;if(w>>>0>l>>>0){t=2;u=41;break b}b[e>>1]=w;c[g>>2]=p+2;break}if((r&255)<240){if((h-p|0)<3){t=1;u=41;break b}w=a[p+1>>0]|0;v=a[p+2>>0]|0;if((s|0)==237){if((w&-32)<<24>>24!=-128){t=2;u=41;break b}}else if((s|0)==224){if((w&-32)<<24>>24!=-96){t=2;u=41;break b}}else if((w&-64)<<24>>24!=-128){t=2;u=41;break b}x=v&255;if((x&192|0)!=128){t=2;u=41;break b}v=(w&255)<<6&4032|s<<12|x&63;if((v&65535)>>>0>l>>>0){t=2;u=41;break b}b[e>>1]=v;c[g>>2]=p+3;break}if((r&255)>=245){t=2;u=41;break b}if((h-p|0)<4){t=1;u=41;break b}v=a[p+1>>0]|0;x=a[p+2>>0]|0;w=a[p+3>>0]|0;if((s|0)==244){if((v&-16)<<24>>24!=-128){t=2;u=41;break b}}else if((s|0)==240){if((v+112<<24>>24&255)>=48){t=2;u=41;break b}}else if((v&-64)<<24>>24!=-128){t=2;u=41;break b}y=x&255;if((y&192|0)!=128){t=2;u=41;break b}x=w&255;if((x&192|0)!=128){t=2;u=41;break b}if((m-e|0)<4){t=1;u=41;break b}w=s&7;z=v&255;v=y<<6;A=x&63;if((z<<12&258048|w<<18|v&4032|A)>>>0>l>>>0){t=2;u=41;break b}b[e>>1]=z<<2&60|y>>>4&3|((z>>>4&3|w<<2)<<6)+16320|55296;w=e+2|0;c[k>>2]=w;b[w>>1]=A|v&960|56320;c[g>>2]=(c[g>>2]|0)+4}while(0);e=(c[k>>2]|0)+2|0;c[k>>2]=e;s=c[g>>2]|0;if(s>>>0>=f>>>0){q=s;break a}else p=s}if((u|0)==41){i=n;return t|0}}else q=o;while(0);t=q>>>0>>0&1;i=n;return t|0}function nr(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;c[f>>2]=d;return 3}function or(a){a=a|0;return 0}function pr(a){a=a|0;return 0}function qr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=i;a=rr(c,d,e,1114111,0)|0;i=b;return a|0}function rr(b,c,e,f,g){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;var 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,w=0,x=0,y=0;h=i;if((((g&4|0)!=0?(c-b|0)>2:0)?(a[b>>0]|0)==-17:0)?(a[b+1>>0]|0)==-69:0)j=(a[b+2>>0]|0)==-65?b+3|0:b;else j=b;a:do if(j>>>0>>0&(e|0)!=0){g=c;k=j;l=0;b:while(1){m=a[k>>0]|0;n=m&255;if(n>>>0>f>>>0){o=k;break a}do if(m<<24>>24>-1){p=k+1|0;q=l}else{if((m&255)<194){o=k;break a}if((m&255)<224){if((g-k|0)<2){o=k;break a}r=d[k+1>>0]|0;if((r&192|0)!=128){o=k;break a}if((r&63|n<<6&1984)>>>0>f>>>0){o=k;break a}p=k+2|0;q=l;break}if((m&255)<240){s=k;if((g-s|0)<3){o=k;break a}r=a[k+1>>0]|0;t=a[k+2>>0]|0;if((n|0)==237){if((r&-32)<<24>>24!=-128){u=23;break b}}else if((n|0)==224){if((r&-32)<<24>>24!=-96){u=21;break b}}else if((r&-64)<<24>>24!=-128){u=25;break b}v=t&255;if((v&192|0)!=128){o=k;break a}if(((r&255)<<6&4032|n<<12&61440|v&63)>>>0>f>>>0){o=k;break a}p=k+3|0;q=l;break}if((m&255)>=245){o=k;break a}w=k;if((g-w|0)<4){o=k;break a}if((e-l|0)>>>0<2){o=k;break a}v=a[k+1>>0]|0;r=a[k+2>>0]|0;t=a[k+3>>0]|0;if((n|0)==244){if((v&-16)<<24>>24!=-128){u=36;break b}}else if((n|0)==240){if((v+112<<24>>24&255)>=48){u=34;break b}}else if((v&-64)<<24>>24!=-128){u=38;break b}x=r&255;if((x&192|0)!=128){o=k;break a}r=t&255;if((r&192|0)!=128){o=k;break a}if(((v&255)<<12&258048|n<<18&1835008|x<<6&4032|r&63)>>>0>f>>>0){o=k;break a}p=k+4|0;q=l+1|0}while(0);l=q+1|0;if(!(p>>>0>>0&l>>>0>>0)){o=p;break a}else k=p}if((u|0)==21){y=s-b|0;i=h;return y|0}else if((u|0)==23){y=s-b|0;i=h;return y|0}else if((u|0)==25){y=s-b|0;i=h;return y|0}else if((u|0)==34){y=w-b|0;i=h;return y|0}else if((u|0)==36){y=w-b|0;i=h;return y|0}else if((u|0)==38){y=w-b|0;i=h;return y|0}}else o=j;while(0);y=o-b|0;i=h;return y|0}function sr(a){a=a|0;return 4}function tr(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function ur(a,b,d,e,f,g,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0;b=i;i=i+16|0;a=b+4|0;k=b;c[a>>2]=d;c[k>>2]=g;l=vr(d,e,a,g,h,k,1114111,0)|0;c[f>>2]=d+((c[a>>2]|0)-d>>2<<2);c[j>>2]=g+((c[k>>2]|0)-g);i=b;return l|0}function vr(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0;l=i;c[e>>2]=b;c[h>>2]=f;do if(k&2)if((g-f|0)<3){m=1;i=l;return m|0}else{c[h>>2]=f+1;a[f>>0]=-17;b=c[h>>2]|0;c[h>>2]=b+1;a[b>>0]=-69;b=c[h>>2]|0;c[h>>2]=b+1;a[b>>0]=-65;break}while(0);f=c[e>>2]|0;if(f>>>0>=d>>>0){m=0;i=l;return m|0}k=g;g=f;a:while(1){f=c[g>>2]|0;if((f&-2048|0)==55296|f>>>0>j>>>0){m=2;n=19;break}do if(f>>>0>=128){if(f>>>0<2048){b=c[h>>2]|0;if((k-b|0)<2){m=1;n=19;break a}c[h>>2]=b+1;a[b>>0]=f>>>6|192;b=c[h>>2]|0;c[h>>2]=b+1;a[b>>0]=f&63|128;break}b=c[h>>2]|0;o=k-b|0;if(f>>>0<65536){if((o|0)<3){m=1;n=19;break a}c[h>>2]=b+1;a[b>>0]=f>>>12|224;p=c[h>>2]|0;c[h>>2]=p+1;a[p>>0]=f>>>6&63|128;p=c[h>>2]|0;c[h>>2]=p+1;a[p>>0]=f&63|128;break}else{if((o|0)<4){m=1;n=19;break a}c[h>>2]=b+1;a[b>>0]=f>>>18|240;b=c[h>>2]|0;c[h>>2]=b+1;a[b>>0]=f>>>12&63|128;b=c[h>>2]|0;c[h>>2]=b+1;a[b>>0]=f>>>6&63|128;b=c[h>>2]|0;c[h>>2]=b+1;a[b>>0]=f&63|128;break}}else{b=c[h>>2]|0;if((k-b|0)<1){m=1;n=19;break a}c[h>>2]=b+1;a[b>>0]=f}while(0);g=(c[e>>2]|0)+4|0;c[e>>2]=g;if(g>>>0>=d>>>0){m=0;n=19;break}}if((n|0)==19){i=l;return m|0}return 0}function wr(a,b,d,e,f,g,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0;b=i;i=i+16|0;a=b+4|0;k=b;c[a>>2]=d;c[k>>2]=g;l=xr(d,e,a,g,h,k,1114111,0)|0;c[f>>2]=d+((c[a>>2]|0)-d);c[j>>2]=g+((c[k>>2]|0)-g>>2<<2);i=b;return l|0}function xr(b,e,f,g,h,j,k,l){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;m=i;c[f>>2]=b;c[j>>2]=g;g=c[f>>2]|0;if(((((l&4|0)!=0?(e-g|0)>2:0)?(a[g>>0]|0)==-17:0)?(a[g+1>>0]|0)==-69:0)?(a[g+2>>0]|0)==-65:0){l=g+3|0;c[f>>2]=l;n=l}else n=g;a:do if(n>>>0>>0){g=e;l=c[j>>2]|0;b=n;while(1){if(l>>>0>=h>>>0){o=b;p=39;break a}q=a[b>>0]|0;r=q&255;do if(q<<24>>24>-1){if(r>>>0>k>>>0){s=2;break a}c[l>>2]=r;c[f>>2]=b+1}else{if((q&255)<194){s=2;break a}if((q&255)<224){if((g-b|0)<2){s=1;break a}t=d[b+1>>0]|0;if((t&192|0)!=128){s=2;break a}u=t&63|r<<6&1984;if(u>>>0>k>>>0){s=2;break a}c[l>>2]=u;c[f>>2]=b+2;break}if((q&255)<240){if((g-b|0)<3){s=1;break a}u=a[b+1>>0]|0;t=a[b+2>>0]|0;if((r|0)==237){if((u&-32)<<24>>24!=-128){s=2;break a}}else if((r|0)==224){if((u&-32)<<24>>24!=-96){s=2;break a}}else if((u&-64)<<24>>24!=-128){s=2;break a}v=t&255;if((v&192|0)!=128){s=2;break a}t=(u&255)<<6&4032|r<<12&61440|v&63;if(t>>>0>k>>>0){s=2;break a}c[l>>2]=t;c[f>>2]=b+3;break}if((q&255)>=245){s=2;break a}if((g-b|0)<4){s=1;break a}t=a[b+1>>0]|0;v=a[b+2>>0]|0;u=a[b+3>>0]|0;if((r|0)==244){if((t&-16)<<24>>24!=-128){s=2;break a}}else if((r|0)==240){if((t+112<<24>>24&255)>=48){s=2;break a}}else if((t&-64)<<24>>24!=-128){s=2;break a}w=v&255;if((w&192|0)!=128){s=2;break a}v=u&255;if((v&192|0)!=128){s=2;break a}u=(t&255)<<12&258048|r<<18&1835008|w<<6&4032|v&63;if(u>>>0>k>>>0){s=2;break a}c[l>>2]=u;c[f>>2]=b+4}while(0);l=(c[j>>2]|0)+4|0;c[j>>2]=l;r=c[f>>2]|0;if(r>>>0>=e>>>0){o=r;p=39;break}else b=r}}else{o=n;p=39}while(0);if((p|0)==39)s=o>>>0>>0&1;i=m;return s|0}function yr(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;c[f>>2]=d;return 3}function zr(a){a=a|0;return 0}function Ar(a){a=a|0;return 0}function Br(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=i;a=Cr(c,d,e,1114111,0)|0;i=b;return a|0}function Cr(b,c,e,f,g){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;var 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,w=0,x=0;h=i;if((((g&4|0)!=0?(c-b|0)>2:0)?(a[b>>0]|0)==-17:0)?(a[b+1>>0]|0)==-69:0)j=(a[b+2>>0]|0)==-65?b+3|0:b;else j=b;a:do if(j>>>0>>0&(e|0)!=0){g=c;k=j;l=1;b:while(1){m=a[k>>0]|0;n=m&255;do if(m<<24>>24>-1){if(n>>>0>f>>>0){o=k;break a}p=k+1|0}else{if((m&255)<194){o=k;break a}if((m&255)<224){if((g-k|0)<2){o=k;break a}q=d[k+1>>0]|0;if((q&192|0)!=128){o=k;break a}if((q&63|n<<6&1984)>>>0>f>>>0){o=k;break a}p=k+2|0;break}if((m&255)<240){r=k;if((g-r|0)<3){o=k;break a}q=a[k+1>>0]|0;s=a[k+2>>0]|0;if((n|0)==224){if((q&-32)<<24>>24!=-96){t=21;break b}}else if((n|0)==237){if((q&-32)<<24>>24!=-128){t=23;break b}}else if((q&-64)<<24>>24!=-128){t=25;break b}u=s&255;if((u&192|0)!=128){o=k;break a}if(((q&255)<<6&4032|n<<12&61440|u&63)>>>0>f>>>0){o=k;break a}p=k+3|0;break}if((m&255)>=245){o=k;break a}v=k;if((g-v|0)<4){o=k;break a}u=a[k+1>>0]|0;q=a[k+2>>0]|0;s=a[k+3>>0]|0;if((n|0)==240){if((u+112<<24>>24&255)>=48){t=33;break b}}else if((n|0)==244){if((u&-16)<<24>>24!=-128){t=35;break b}}else if((u&-64)<<24>>24!=-128){t=37;break b}w=q&255;if((w&192|0)!=128){o=k;break a}q=s&255;if((q&192|0)!=128){o=k;break a}if(((u&255)<<12&258048|n<<18&1835008|w<<6&4032|q&63)>>>0>f>>>0){o=k;break a}p=k+4|0}while(0);if(!(p>>>0>>0&l>>>0>>0)){o=p;break a}k=p;l=l+1|0}if((t|0)==21){x=r-b|0;i=h;return x|0}else if((t|0)==23){x=r-b|0;i=h;return x|0}else if((t|0)==25){x=r-b|0;i=h;return x|0}else if((t|0)==33){x=v-b|0;i=h;return x|0}else if((t|0)==35){x=v-b|0;i=h;return x|0}else if((t|0)==37){x=v-b|0;i=h;return x|0}}else o=j;while(0);x=o-b|0;i=h;return x|0}function Dr(a){a=a|0;return 4}function Er(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function Fr(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function Gr(a){a=a|0;var b=0;b=i;Hr(a);kt(a);i=b;return}function Hr(a){a=a|0;var b=0;b=i;c[a>>2]=8192;gj(a+12|0);i=b;return}function Ir(a){a=a|0;var b=0;b=i;Jr(a);kt(a);i=b;return}function Jr(a){a=a|0;var b=0;b=i;c[a>>2]=8232;gj(a+16|0);i=b;return}function Kr(b){b=b|0;return a[b+8>>0]|0}function Lr(a){a=a|0;return c[a+8>>2]|0}function Mr(b){b=b|0;return a[b+9>>0]|0}function Nr(a){a=a|0;return c[a+12>>2]|0}function Or(a,b){a=a|0;b=b|0;var c=0;c=i;bj(a,b+12|0);i=c;return}function Pr(a,b){a=a|0;b=b|0;var c=0;c=i;bj(a,b+16|0);i=c;return}function Qr(a,b){a=a|0;b=b|0;b=i;dj(a,8264,4);i=b;return}function Rr(a,b){a=a|0;b=b|0;b=i;sj(a,8272,$s(8272)|0);i=b;return}function Sr(a,b){a=a|0;b=b|0;b=i;dj(a,8296,5);i=b;return}function Tr(a,b){a=a|0;b=b|0;b=i;sj(a,8304,$s(8304)|0);i=b;return}function Ur(a){a=a|0;var b=0,d=0,e=0;b=i;d=c[a+4>>2]&74;if((d|0)==8)e=16;else if((d|0)==64)e=8;else if(!d)e=0;else e=10;i=b;return e|0}function Vr(b){b=b|0;var d=0;b=i;if(a[8336]|0){d=c[2082]|0;i=b;return d|0}if(!(Ia(8336)|0)){d=c[2082]|0;i=b;return d|0}if((a[15536]|0)==0?(Ia(15536)|0)!=0:0){Vu(15368,0,168)|0;Qb(116,0,o|0)|0;Ra(15536)}ij(15368,15544)|0;ij(15380,15552)|0;ij(15392,15560)|0;ij(15404,15568)|0;ij(15416,15584)|0;ij(15428,15600)|0;ij(15440,15608)|0;ij(15452,15624)|0;ij(15464,15632)|0;ij(15476,15640)|0;ij(15488,15648)|0;ij(15500,15656)|0;ij(15512,15664)|0;ij(15524,15672)|0;c[2082]=15368;Ra(8336);d=c[2082]|0;i=b;return d|0}function Wr(b){b=b|0;var d=0;b=i;if(a[8352]|0){d=c[2086]|0;i=b;return d|0}if(!(Ia(8352)|0)){d=c[2086]|0;i=b;return d|0}if((a[15e3]|0)==0?(Ia(15e3)|0)!=0:0){Vu(14832,0,168)|0;Qb(117,0,o|0)|0;Ra(15e3)}xj(14832,15008)|0;xj(14844,15040)|0;xj(14856,15072)|0;xj(14868,15104)|0;xj(14880,15144)|0;xj(14892,15184)|0;xj(14904,15216)|0;xj(14916,15256)|0;xj(14928,15272)|0;xj(14940,15288)|0;xj(14952,15304)|0;xj(14964,15320)|0;xj(14976,15336)|0;xj(14988,15352)|0;c[2086]=14832;Ra(8352);d=c[2086]|0;i=b;return d|0}function Xr(b){b=b|0;var d=0;b=i;if(a[8368]|0){d=c[2090]|0;i=b;return d|0}if(!(Ia(8368)|0)){d=c[2090]|0;i=b;return d|0}if((a[14608]|0)==0?(Ia(14608)|0)!=0:0){Vu(14320,0,288)|0;Qb(118,0,o|0)|0;Ra(14608)}ij(14320,14616)|0;ij(14332,14624)|0;ij(14344,14640)|0;ij(14356,14648)|0;ij(14368,14656)|0;ij(14380,14664)|0;ij(14392,14672)|0;ij(14404,14680)|0;ij(14416,14688)|0;ij(14428,14704)|0;ij(14440,14712)|0;ij(14452,14728)|0;ij(14464,14744)|0;ij(14476,14752)|0;ij(14488,14760)|0;ij(14500,14768)|0;ij(14512,14656)|0;ij(14524,14776)|0;ij(14536,14784)|0;ij(14548,14792)|0;ij(14560,14800)|0;ij(14572,14808)|0;ij(14584,14816)|0;ij(14596,14824)|0;c[2090]=14320;Ra(8368);d=c[2090]|0;i=b;return d|0}function Yr(b){b=b|0;var d=0;b=i;if(a[8384]|0){d=c[2094]|0;i=b;return d|0}if(!(Ia(8384)|0)){d=c[2094]|0;i=b;return d|0}if((a[13768]|0)==0?(Ia(13768)|0)!=0:0){Vu(13480,0,288)|0;Qb(119,0,o|0)|0;Ra(13768)}xj(13480,13776)|0;xj(13492,13808)|0;xj(13504,13848)|0;xj(13516,13872)|0;xj(13528,14192)|0;xj(13540,13896)|0;xj(13552,13920)|0;xj(13564,13944)|0;xj(13576,13976)|0;xj(13588,14016)|0;xj(13600,14048)|0;xj(13612,14088)|0;xj(13624,14128)|0;xj(13636,14144)|0;xj(13648,14160)|0;xj(13660,14176)|0;xj(13672,14192)|0;xj(13684,14208)|0;xj(13696,14224)|0;xj(13708,14240)|0;xj(13720,14256)|0;xj(13732,14272)|0;xj(13744,14288)|0;xj(13756,14304)|0;c[2094]=13480;Ra(8384);d=c[2094]|0;i=b;return d|0}function Zr(b){b=b|0;var d=0;b=i;if(a[8400]|0){d=c[2098]|0;i=b;return d|0}if(!(Ia(8400)|0)){d=c[2098]|0;i=b;return d|0}if((a[13456]|0)==0?(Ia(13456)|0)!=0:0){Vu(13168,0,288)|0;Qb(120,0,o|0)|0;Ra(13456)}ij(13168,13464)|0;ij(13180,13472)|0;c[2098]=13168;Ra(8400);d=c[2098]|0;i=b;return d|0}function _r(b){b=b|0;var d=0;b=i;if(a[8416]|0){d=c[2102]|0;i=b;return d|0}if(!(Ia(8416)|0)){d=c[2102]|0;i=b;return d|0}if((a[13128]|0)==0?(Ia(13128)|0)!=0:0){Vu(12840,0,288)|0;Qb(121,0,o|0)|0;Ra(13128)}xj(12840,13136)|0;xj(12852,13152)|0;c[2102]=12840;Ra(8416);d=c[2102]|0;i=b;return d|0}function $r(b){b=b|0;b=i;if(a[8440]|0){i=b;return 8424}if(!(Ia(8440)|0)){i=b;return 8424}dj(8424,8448,8);Qb(122,8424,o|0)|0;Ra(8440);i=b;return 8424}function as(b){b=b|0;b=i;if(a[8480]|0){i=b;return 8464}if(!(Ia(8480)|0)){i=b;return 8464}sj(8464,8488,$s(8488)|0);Qb(123,8464,o|0)|0;Ra(8480);i=b;return 8464}function bs(b){b=b|0;b=i;if(a[8544]|0){i=b;return 8528}if(!(Ia(8544)|0)){i=b;return 8528}dj(8528,8552,8);Qb(122,8528,o|0)|0;Ra(8544);i=b;return 8528}function cs(b){b=b|0;b=i;if(a[8584]|0){i=b;return 8568}if(!(Ia(8584)|0)){i=b;return 8568}sj(8568,8592,$s(8592)|0);Qb(123,8568,o|0)|0;Ra(8584);i=b;return 8568}function ds(b){b=b|0;b=i;if(a[8648]|0){i=b;return 8632}if(!(Ia(8648)|0)){i=b;return 8632}dj(8632,8656,20);Qb(122,8632,o|0)|0;Ra(8648);i=b;return 8632}function es(b){b=b|0;b=i;if(a[8696]|0){i=b;return 8680}if(!(Ia(8696)|0)){i=b;return 8680}sj(8680,8704,$s(8704)|0);Qb(123,8680,o|0)|0;Ra(8696);i=b;return 8680}function fs(b){b=b|0;b=i;if(a[8808]|0){i=b;return 8792}if(!(Ia(8808)|0)){i=b;return 8792}dj(8792,8816,11);Qb(122,8792,o|0)|0;Ra(8808);i=b;return 8792}function gs(b){b=b|0;b=i;if(a[8848]|0){i=b;return 8832}if(!(Ia(8848)|0)){i=b;return 8832}sj(8832,8856,$s(8856)|0);Qb(123,8832,o|0)|0;Ra(8848);i=b;return 8832}function hs(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0.0,k=0,l=0.0;e=i;i=i+16|0;f=e;do if((a|0)!=(b|0)){g=zb()|0;h=c[g>>2]|0;c[g>>2]=0;j=+Iu(a,f,Cl()|0);k=c[g>>2]|0;if(!k)c[g>>2]=h;if((c[f>>2]|0)!=(b|0)){c[d>>2]=4;l=0.0;break}if((k|0)==34){c[d>>2]=4;l=j}else l=j}else{c[d>>2]=4;l=0.0}while(0);i=e;return+l}function is(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0.0,k=0,l=0.0;e=i;i=i+16|0;f=e;do if((a|0)!=(b|0)){g=zb()|0;h=c[g>>2]|0;c[g>>2]=0;j=+Iu(a,f,Cl()|0);k=c[g>>2]|0;if(!k)c[g>>2]=h;if((c[f>>2]|0)!=(b|0)){c[d>>2]=4;l=0.0;break}if((k|0)==34){c[d>>2]=4;l=j}else l=j}else{c[d>>2]=4;l=0.0}while(0);i=e;return+l}function js(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0.0,h=0,j=0,k=0.0;e=i;i=i+16|0;f=e;if((a|0)==(b|0)){c[d>>2]=4;g=0.0;i=e;return+g}h=zb()|0;j=c[h>>2]|0;c[h>>2]=0;k=+Iu(a,f,Cl()|0);a=c[h>>2]|0;if(!a)c[h>>2]=j;if((c[f>>2]|0)!=(b|0)){c[d>>2]=4;g=0.0;i=e;return+g}if((a|0)==34)c[d>>2]=4;g=k;i=e;return+g}function ks(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;i=i+16|0;h=g;do if((b|0)!=(d|0)){if((a[b>>0]|0)==45){c[e>>2]=4;j=0;k=0;break}l=zb()|0;m=c[l>>2]|0;c[l>>2]=0;n=Gs(b,h,f,Cl()|0)|0;o=c[l>>2]|0;if(!o)c[l>>2]=m;if((c[h>>2]|0)!=(d|0)){c[e>>2]=4;j=0;k=0;break}if((o|0)==34){c[e>>2]=4;j=-1;k=-1}else{j=H;k=n}}else{c[e>>2]=4;j=0;k=0}while(0);H=j;i=g;return k|0}function ls(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+16|0;h=g;if((b|0)==(d|0)){c[e>>2]=4;j=0;i=g;return j|0}if((a[b>>0]|0)==45){c[e>>2]=4;j=0;i=g;return j|0}k=zb()|0;l=c[k>>2]|0;c[k>>2]=0;m=Gs(b,h,f,Cl()|0)|0;f=H;b=c[k>>2]|0;if(!b)c[k>>2]=l;if((c[h>>2]|0)!=(d|0)){c[e>>2]=4;j=0;i=g;return j|0}if((b|0)==34|(f>>>0>0|(f|0)==0&m>>>0>4294967295)){c[e>>2]=4;j=-1;i=g;return j|0}else{j=m;i=g;return j|0}return 0}function ms(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+16|0;h=g;if((b|0)==(d|0)){c[e>>2]=4;j=0;i=g;return j|0}if((a[b>>0]|0)==45){c[e>>2]=4;j=0;i=g;return j|0}k=zb()|0;l=c[k>>2]|0;c[k>>2]=0;m=Gs(b,h,f,Cl()|0)|0;f=H;b=c[k>>2]|0;if(!b)c[k>>2]=l;if((c[h>>2]|0)!=(d|0)){c[e>>2]=4;j=0;i=g;return j|0}if((b|0)==34|(f>>>0>0|(f|0)==0&m>>>0>4294967295)){c[e>>2]=4;j=-1;i=g;return j|0}else{j=m;i=g;return j|0}return 0}function ns(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+16|0;h=g;if((b|0)==(d|0)){c[e>>2]=4;j=0;i=g;return j|0}if((a[b>>0]|0)==45){c[e>>2]=4;j=0;i=g;return j|0}k=zb()|0;l=c[k>>2]|0;c[k>>2]=0;m=Gs(b,h,f,Cl()|0)|0;f=H;b=c[k>>2]|0;if(!b)c[k>>2]=l;if((c[h>>2]|0)!=(d|0)){c[e>>2]=4;j=0;i=g;return j|0}if((b|0)==34|(f>>>0>0|(f|0)==0&m>>>0>65535)){c[e>>2]=4;j=-1;i=g;return j|0}else{j=m&65535;i=g;return j|0}return 0}function os(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+16|0;g=f;if((a|0)==(b|0)){c[d>>2]=4;h=0;j=0;H=h;i=f;return j|0}k=zb()|0;l=c[k>>2]|0;c[k>>2]=0;m=Hs(a,g,e,Cl()|0)|0;e=H;a=c[k>>2]|0;if(!a)c[k>>2]=l;if((c[g>>2]|0)!=(b|0)){c[d>>2]=4;h=0;j=0;H=h;i=f;return j|0}if((a|0)==34){c[d>>2]=4;d=(e|0)>0|(e|0)==0&m>>>0>0;H=d?2147483647:-2147483648;i=f;return(d?-1:0)|0}else{h=e;j=m;H=h;i=f;return j|0}return 0}function ps(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+16|0;g=f;if((a|0)==(b|0)){c[d>>2]=4;h=0;i=f;return h|0}j=zb()|0;k=c[j>>2]|0;c[j>>2]=0;l=Hs(a,g,e,Cl()|0)|0;e=H;a=c[j>>2]|0;if(!a)c[j>>2]=k;if((c[g>>2]|0)!=(b|0)){c[d>>2]=4;h=0;i=f;return h|0}do if((a|0)==34){c[d>>2]=4;if((e|0)>0|(e|0)==0&l>>>0>0){h=2147483647;i=f;return h|0}}else{if((e|0)<-1|(e|0)==-1&l>>>0<2147483648){c[d>>2]=4;break}if((e|0)>0|(e|0)==0&l>>>0>2147483647){c[d>>2]=4;h=2147483647;i=f;return h|0}else{h=l;i=f;return h|0}}while(0);h=-2147483648;i=f;return h|0}function qs(a){a=a|0;var b=0,e=0,f=0,g=0,h=0;b=i;e=a+4|0;f=d[e>>0]|d[e+1>>0]<<8|d[e+2>>0]<<16|d[e+3>>0]<<24;g=e+4|0;e=d[g>>0]|d[g+1>>0]<<8|d[g+2>>0]<<16|d[g+3>>0]<<24;g=(c[a>>2]|0)+(e>>1)|0;if(!(e&1)){h=f;bc[h&127](g);i=b;return}else{h=c[(c[g>>2]|0)+f>>2]|0;bc[h&127](g);i=b;return}}function rs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;i=i+32|0;e=d;f=c[a+8>>2]|0;g=c[a+4>>2]|0;if(f-g>>2>>>0>=b>>>0){ss(a,b);i=d;return}h=c[a>>2]|0;j=g-h>>2;g=j+b|0;if(g>>>0>1073741823)yp(0);k=f-h|0;if(k>>2>>>0<536870911){h=k>>1;l=h>>>0>>0?g:h}else l=1073741823;ws(e,l,j,a+16|0);ts(e,b);us(a,e);vs(e);i=d;return}function ss(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=a+4|0;a=b;b=c[e>>2]|0;do{if(!b)f=0;else{c[b>>2]=0;f=c[e>>2]|0}b=f+4|0;c[e>>2]=b;a=a+ -1|0}while((a|0)!=0);i=d;return}function ts(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=a+8|0;a=b;b=c[e>>2]|0;do{if(!b)f=0;else{c[b>>2]=0;f=c[e>>2]|0}b=f+4|0;c[e>>2]=b;a=a+ -1|0}while((a|0)!=0);i=d;return}function us(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;e=c[a>>2]|0;f=a+4|0;g=b+4|0;h=(c[f>>2]|0)-e|0;j=(c[g>>2]|0)+(0-(h>>2)<<2)|0;c[g>>2]=j;Tu(j|0,e|0,h|0)|0;h=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=h;h=b+8|0;e=c[f>>2]|0;c[f>>2]=c[h>>2];c[h>>2]=e;e=a+8|0;a=b+12|0;h=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=h;c[b>>2]=c[g>>2];i=d;return}function vs(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;e=c[b+4>>2]|0;f=b+8|0;g=c[f>>2]|0;if((g|0)!=(e|0))c[f>>2]=g+(~((g+ -4+(0-e)|0)>>>2)<<2);e=c[b>>2]|0;if(!e){i=d;return}g=c[b+16>>2]|0;if((g|0)==(e|0)){a[g+112>>0]=0;i=d;return}else{kt(e);i=d;return}}function ws(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;h=b+12|0;c[h>>2]=0;c[b+16>>2]=f;do if(d){j=f+112|0;if((a[j>>0]|0)==0&d>>>0<29){a[j>>0]=1;k=f;break}else{k=it(d<<2)|0;break}}else k=0;while(0);c[b>>2]=k;f=k+(e<<2)|0;c[b+8>>2]=f;c[b+4>>2]=f;c[h>>2]=k+(d<<2);i=g;return}function xs(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;if(d>>>0>1073741823)yp(0);f=b+128|0;if((a[f>>0]|0)==0&d>>>0<29){a[f>>0]=1;g=b+16|0}else g=it(d<<2)|0;c[b+4>>2]=g;c[b>>2]=g;c[b+8>>2]=g+(d<<2);i=e;return}function ys(b,d){b=b|0;d=d|0;var e=0;e=i;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;a[b+128>>0]=0;if(!d){i=e;return}xs(b,d);ss(b,d);i=e;return}function zs(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;e=c[b>>2]|0;if(!e){i=d;return}f=b+4|0;g=c[f>>2]|0;if((g|0)!=(e|0))c[f>>2]=g+(~((g+ -4+(0-e)|0)>>>2)<<2);if((b+16|0)==(e|0)){a[b+128>>0]=0;i=d;return}else{kt(e);i=d;return}}function As(a){a=a|0;a=i;vj(13116|0);vj(13104|0);vj(13092|0);vj(13080|0);vj(13068|0);vj(13056|0);vj(13044|0);vj(13032|0);vj(13020|0);vj(13008|0);vj(12996|0);vj(12984|0);vj(12972|0);vj(12960|0);vj(12948|0);vj(12936|0);vj(12924|0);vj(12912|0);vj(12900|0);vj(12888|0);vj(12876|0);vj(12864|0);vj(12852|0);vj(12840);i=a;return}function Bs(a){a=a|0;a=i;gj(13444|0);gj(13432|0);gj(13420|0);gj(13408|0);gj(13396|0);gj(13384|0);gj(13372|0);gj(13360|0);gj(13348|0);gj(13336|0);gj(13324|0);gj(13312|0);gj(13300|0);gj(13288|0);gj(13276|0);gj(13264|0);gj(13252|0);gj(13240|0);gj(13228|0);gj(13216|0);gj(13204|0);gj(13192|0);gj(13180|0);gj(13168);i=a;return}function Cs(a){a=a|0;a=i;vj(13756|0);vj(13744|0);vj(13732|0);vj(13720|0);vj(13708|0);vj(13696|0);vj(13684|0);vj(13672|0);vj(13660|0);vj(13648|0);vj(13636|0);vj(13624|0);vj(13612|0);vj(13600|0);vj(13588|0);vj(13576|0);vj(13564|0);vj(13552|0);vj(13540|0);vj(13528|0);vj(13516|0);vj(13504|0);vj(13492|0);vj(13480);i=a;return}function Ds(a){a=a|0;a=i;gj(14596|0);gj(14584|0);gj(14572|0);gj(14560|0);gj(14548|0);gj(14536|0);gj(14524|0);gj(14512|0);gj(14500|0);gj(14488|0);gj(14476|0);gj(14464|0);gj(14452|0);gj(14440|0);gj(14428|0);gj(14416|0);gj(14404|0);gj(14392|0);gj(14380|0);gj(14368|0);gj(14356|0);gj(14344|0);gj(14332|0);gj(14320);i=a;return}function Es(a){a=a|0;a=i;vj(14988|0);vj(14976|0);vj(14964|0);vj(14952|0);vj(14940|0);vj(14928|0);vj(14916|0);vj(14904|0);vj(14892|0);vj(14880|0);vj(14868|0);vj(14856|0);vj(14844|0);vj(14832);i=a;return}function Fs(a){a=a|0;a=i;gj(15524|0);gj(15512|0);gj(15500|0);gj(15488|0);gj(15476|0);gj(15464|0);gj(15452|0);gj(15440|0);gj(15428|0);gj(15416|0);gj(15404|0);gj(15392|0);gj(15380|0);gj(15368);i=a;return}function Gs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;d=i;e=Ju(a,b,c)|0;i=d;return e|0}function Hs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;d=i;e=Ku(a,b,c)|0;i=d;return e|0}function Is(a){a=a|0;return((a|32)+ -97|0)>>>0<26|0}function Js(a){a=a|0;return(a+ -97|0)>>>0<26|0}function Ks(a){a=a|0;var b=0,c=0;b=i;c=(Js(a)|0)==0;i=b;return(c?a:a&95)|0}function Ls(a,b){a=a|0;b=b|0;return(a+ -48|0)>>>0<10|0}function Ms(a,b){a=a|0;b=b|0;var c=0;b=i;c=mu(a)|0;i=b;return c|0}function Ns(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=i;e=Os(0,a,b,(c|0)!=0?c:15888)|0;i=d;return e|0}function Os(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;g=i;i=i+16|0;h=g;c[h>>2]=b;j=(f|0)==0?15896:f;f=c[j>>2]|0;a:do if(!d){if(!f){k=0;i=g;return k|0}}else{if(!b){c[h>>2]=h;l=h}else l=b;if(!e){k=-2;i=g;return k|0}do if(!f){m=a[d>>0]|0;n=m&255;if(m<<24>>24>-1){c[l>>2]=n;k=m<<24>>24!=0&1;i=g;return k|0}else{m=n+ -194|0;if(m>>>0>50)break a;o=e+ -1|0;p=c[15680+(m<<2)>>2]|0;q=d+1|0;break}}else{o=e;p=f;q=d}while(0);b:do if(!o)r=p;else{m=a[q>>0]|0;n=(m&255)>>>3;if((n+ -16|n+(p>>26))>>>0>7)break a;else{s=o;t=m;u=p;v=q}while(1){v=v+1|0;u=(t&255)+ -128|u<<6;s=s+ -1|0;if((u|0)>=0)break;if(!s){r=u;break b}t=a[v>>0]|0;if(((t&255)+ -128|0)>>>0>63)break a}c[j>>2]=0;c[l>>2]=u;k=e-s|0;i=g;return k|0}while(0);c[j>>2]=r;k=-2;i=g;return k|0}while(0);c[j>>2]=0;c[(zb()|0)>>2]=84;k=-1;i=g;return k|0}function Ps(a){a=a|0;var b=0;if(!a)b=1;else b=(c[a>>2]|0)==0;return b&1|0}function Qs(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;g=i;i=i+1040|0;h=g+8|0;j=g;k=c[b>>2]|0;c[j>>2]=k;l=(a|0)!=0;m=l?e:256;e=l?a:h;a:do if((k|0)==0|(m|0)==0){n=d;o=m;p=k;q=0;r=e}else{a=d;s=m;t=k;u=0;v=e;while(1){w=a>>>2;x=w>>>0>=s>>>0;if(!(x|a>>>0>131)){n=a;o=s;p=t;q=u;r=v;break a}y=x?s:w;z=a-y|0;w=Rs(v,j,y,f)|0;if((w|0)==-1)break;if((v|0)==(h|0)){A=s;B=h}else{A=s-w|0;B=v+(w<<2)|0}y=w+u|0;w=c[j>>2]|0;if((w|0)==0|(A|0)==0){n=z;o=A;p=w;q=y;r=B;break a}else{a=z;s=A;t=w;u=y;v=B}}n=z;o=0;p=c[j>>2]|0;q=-1;r=v}while(0);b:do if((p|0)!=0?!((o|0)==0|(n|0)==0):0){z=n;B=o;A=p;h=q;e=r;while(1){C=Os(e,A,z,f)|0;if((C+2|0)>>>0<3)break;A=(c[j>>2]|0)+C|0;c[j>>2]=A;B=B+ -1|0;k=h+1|0;if((B|0)==0|(z|0)==(C|0)){D=k;break b}else{z=z-C|0;h=k;e=e+4|0}}if((C|0)==-1){D=-1;break}else if(!C){c[j>>2]=0;D=h;break}else{c[f>>2]=0;D=h;break}}else D=q;while(0);if(!l){i=g;return D|0}c[b>>2]=c[j>>2];i=g;return D|0}function Rs(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var 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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0;h=i;j=c[e>>2]|0;if((g|0)!=0?(k=c[g>>2]|0,(k|0)!=0):0)if(!b){l=f;m=k;n=j;o=16}else{c[g>>2]=0;p=b;q=f;r=k;s=j;o=37}else if(!b){t=f;u=j;o=7}else{v=b;w=f;x=j;o=6}a:while(1)if((o|0)==6){o=0;if(!w){y=x;o=26;break}else{z=v;A=w;B=x}while(1){j=a[B>>0]|0;do if(((j&255)+ -1|0)>>>0<127?(B&3|0)==0&A>>>0>4:0){k=z;g=A;C=B;while(1){D=c[C>>2]|0;if((D+ -16843009|D)&-2139062144){o=31;break}c[k>>2]=D&255;c[k+4>>2]=d[C+1>>0];c[k+8>>2]=d[C+2>>0];E=C+4|0;F=k+16|0;c[k+12>>2]=d[C+3>>0];G=g+ -4|0;if(G>>>0>4){k=F;g=G;C=E}else{o=32;break}}if((o|0)==31){o=0;H=k;I=g;J=D&255;K=C;break}else if((o|0)==32){o=0;H=F;I=G;J=a[E>>0]|0;K=E;break}}else{H=z;I=A;J=j;K=B}while(0);L=J&255;if((L+ -1|0)>>>0>=127)break;j=K+1|0;c[H>>2]=L;A=I+ -1|0;if(!A){y=j;o=26;break a}else{z=H+4|0;B=j}}j=L+ -194|0;if(j>>>0>50){M=H;N=I;O=K;o=48;break}p=H;q=I;r=c[15680+(j<<2)>>2]|0;s=K+1|0;o=37;continue}else if((o|0)==7){o=0;j=a[u>>0]|0;if(((j&255)+ -1|0)>>>0<127?(u&3|0)==0:0){P=c[u>>2]|0;if(!((P+ -16843009|P)&-2139062144)){Q=t;R=u;while(1){S=R+4|0;T=Q+ -4|0;U=c[S>>2]|0;if(!((U+ -16843009|U)&-2139062144)){Q=T;R=S}else{V=T;W=U;X=S;break}}}else{V=t;W=P;X=u}Y=V;Z=W&255;_=X}else{Y=t;Z=j;_=u}R=Z&255;if((R+ -1|0)>>>0<127){t=Y+ -1|0;u=_+1|0;o=7;continue}Q=R+ -194|0;if(Q>>>0>50){M=b;N=Y;O=_;o=48;break}l=Y;m=c[15680+(Q<<2)>>2]|0;n=_+1|0;o=16;continue}else if((o|0)==16){o=0;Q=(d[n>>0]|0)>>>3;if((Q+ -16|Q+(m>>26))>>>0>7){o=17;break}Q=n+1|0;if(m&33554432){if(((d[Q>>0]|0)+ -128|0)>>>0>63){o=20;break}R=n+2|0;if(!(m&524288))$=R;else{if(((d[R>>0]|0)+ -128|0)>>>0>63){o=23;break}$=n+3|0}}else $=Q;t=l+ -1|0;u=$;o=7;continue}else if((o|0)==37){o=0;Q=d[s>>0]|0;R=Q>>>3;if((R+ -16|R+(r>>26))>>>0>7){o=38;break}R=s+1|0;aa=Q+ -128|r<<6;if((aa|0)<0){Q=(d[R>>0]|0)+ -128|0;if(Q>>>0>63){o=41;break}S=s+2|0;ba=Q|aa<<6;if((ba|0)<0){Q=(d[S>>0]|0)+ -128|0;if(Q>>>0>63){o=44;break}ca=Q|ba<<6;da=s+3|0}else{ca=ba;da=S}}else{ca=aa;da=R}c[p>>2]=ca;v=p+4|0;w=q+ -1|0;x=da;o=6;continue}if((o|0)==17){ea=b;fa=l;ga=m;ha=n+ -1|0;o=47}else if((o|0)==20){ea=b;fa=l;ga=m;ha=n+ -1|0;o=47}else if((o|0)==23){ea=b;fa=l;ga=m;ha=n+ -1|0;o=47}else if((o|0)==26){c[e>>2]=y;ia=f;i=h;return ia|0}else if((o|0)==38){ea=p;fa=q;ga=r;ha=s+ -1|0;o=47}else if((o|0)==41){ea=p;fa=q;ga=aa;ha=s+ -1|0;o=47}else if((o|0)==44){ea=p;fa=q;ga=ba;ha=s+ -1|0;o=47}if((o|0)==47)if(!ga){M=ea;N=fa;O=ha;o=48}else{ja=ea;ka=ha}if((o|0)==48)if(!(a[O>>0]|0)){if(M){c[M>>2]=0;c[e>>2]=0}ia=f-N|0;i=h;return ia|0}else{ja=M;ka=O}c[(zb()|0)>>2]=84;if(!ja){ia=-1;i=h;return ia|0}c[e>>2]=ka;ia=-1;i=h;return ia|0}function Ss(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;i=i+16|0;h=g;c[h>>2]=b;if(!e){j=0;i=g;return j|0}do if(f){if(!b){c[h>>2]=h;k=h}else k=b;l=a[e>>0]|0;m=l&255;if(l<<24>>24>-1){c[k>>2]=m;j=l<<24>>24!=0&1;i=g;return j|0}l=m+ -194|0;if(l>>>0<=50){m=e+1|0;n=c[15680+(l<<2)>>2]|0;if(f>>>0<4?(n&-2147483648>>>((f*6|0)+ -6|0)|0)!=0:0)break;l=d[m>>0]|0;m=l>>>3;if((m+ -16|m+(n>>26))>>>0<=7){m=l+ -128|n<<6;if((m|0)>=0){c[k>>2]=m;j=2;i=g;return j|0}n=(d[e+2>>0]|0)+ -128|0;if(n>>>0<=63){l=n|m<<6;if((l|0)>=0){c[k>>2]=l;j=3;i=g;return j|0}m=(d[e+3>>0]|0)+ -128|0;if(m>>>0<=63){c[k>>2]=m|l<<6;j=4;i=g;return j|0}}}}}while(0);c[(zb()|0)>>2]=84;j=-1;i=g;return j|0}function Ts(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;f=i;i=i+272|0;g=f+8|0;h=f;j=c[b>>2]|0;c[h>>2]=j;k=(a|0)!=0;l=k?e:256;e=k?a:g;a:do if((j|0)==0|(l|0)==0){m=d;n=l;o=j;p=0;q=e}else{a=d;r=l;s=j;t=0;u=e;while(1){v=a>>>0>=r>>>0;if(!(v|a>>>0>32)){m=a;n=r;o=s;p=t;q=u;break a}w=v?r:a;x=a-w|0;v=Us(u,h,w,0)|0;if((v|0)==-1)break;if((u|0)==(g|0)){y=r;z=g}else{y=r-v|0;z=u+v|0}w=v+t|0;v=c[h>>2]|0;if((v|0)==0|(y|0)==0){m=x;n=y;o=v;p=w;q=z;break a}else{a=x;r=y;s=v;t=w;u=z}}m=x;n=0;o=c[h>>2]|0;p=-1;q=u}while(0);b:do if((o|0)!=0?!((n|0)==0|(m|0)==0):0){x=m;z=n;y=o;g=p;e=q;while(1){A=yu(e,c[y>>2]|0,0)|0;if((A+1|0)>>>0<2)break;y=(c[h>>2]|0)+4|0;c[h>>2]=y;x=x+ -1|0;j=g+1|0;if((z|0)==(A|0)|(x|0)==0){B=j;break b}else{z=z-A|0;g=j;e=e+A|0}}if(!A){c[h>>2]=0;B=g}else B=-1}else B=p;while(0);if(!k){i=f;return B|0}c[b>>2]=c[h>>2];i=f;return B|0}function Us(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;f=i;i=i+16|0;g=f;if(!b){h=c[d>>2]|0;j=c[h>>2]|0;if(!j){k=0;i=f;return k|0}else{l=0;m=j;n=h}while(1){if(m>>>0>127){h=yu(g,m,0)|0;if((h|0)==-1){k=-1;o=26;break}else p=h}else p=1;h=p+l|0;n=n+4|0;m=c[n>>2]|0;if(!m){k=h;o=26;break}else l=h}if((o|0)==26){i=f;return k|0}}a:do if(e>>>0>3){l=b;m=e;n=c[d>>2]|0;while(1){p=c[n>>2]|0;if((p+ -1|0)>>>0>126){if(!p)break;h=yu(l,p,0)|0;if((h|0)==-1){k=-1;o=26;break}q=l+h|0;r=m-h|0;s=n}else{a[l>>0]=p;q=l+1|0;r=m+ -1|0;s=c[d>>2]|0}n=s+4|0;c[d>>2]=n;if(r>>>0<=3){t=q;u=r;break a}else{l=q;m=r}}if((o|0)==26){i=f;return k|0}a[l>>0]=0;c[d>>2]=0;k=e-m|0;i=f;return k|0}else{t=b;u=e}while(0);if(!u){k=e;i=f;return k|0}b=t;t=u;u=c[d>>2]|0;while(1){r=c[u>>2]|0;if((r+ -1|0)>>>0>126){if(!r){o=19;break}q=yu(g,r,0)|0;if((q|0)==-1){k=-1;o=26;break}if(q>>>0>t>>>0){o=22;break}yu(b,c[u>>2]|0,0)|0;v=b+q|0;w=t-q|0;x=u}else{a[b>>0]=r;v=b+1|0;w=t+ -1|0;x=c[d>>2]|0}u=x+4|0;c[d>>2]=u;if(!w){k=e;o=26;break}else{b=v;t=w}}if((o|0)==19){a[b>>0]=0;c[d>>2]=0;k=e-t|0;i=f;return k|0}else if((o|0)==22){k=e-t|0;i=f;return k|0}else if((o|0)==26){i=f;return k|0}return 0}function Vs(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;f=a+84|0;g=c[f>>2]|0;h=d+256|0;j=Lu(g,0,h)|0;if(!j)k=h;else k=j-g|0;j=k>>>0>>0?k:d;Tu(b|0,g|0,j|0)|0;c[a+4>>2]=g+j;b=g+k|0;c[a+8>>2]=b;c[f>>2]=b;i=e;return j|0}function Ws(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;f=e;c[f>>2]=d;d=Zs(a,b,f)|0;i=e;return d|0}function Xs(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+16|0;f=e;g=fu(240)|0;do if(g){c[f>>2]=c[d>>2];h=Gu(g,240,b,f)|0;if(h>>>0<240){j=hu(g,h+1|0)|0;c[a>>2]=(j|0)!=0?j:g;k=h;break}gu(g);if((h|0)>=0?(j=h+1|0,h=fu(j)|0,c[a>>2]=h,(h|0)!=0):0)k=Gu(h,j,b,d)|0;else k=-1}else k=-1;while(0);i=e;return k|0}function Ys(e,f,j){e=e|0;f=f|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=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,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0.0,_a=0,$a=0,ab=0;k=i;i=i+304|0;l=k+16|0;m=k+8|0;n=k+33|0;o=k;p=k+32|0;q=a[f>>0]|0;if(!(q<<24>>24)){r=0;i=k;return r|0}s=e+4|0;t=e+100|0;u=e+108|0;v=e+8|0;w=n+10|0;x=n+33|0;y=m+4|0;z=n+46|0;A=n+94|0;B=q;q=0;C=f;f=0;D=0;E=0;a:while(1){b:do if(!(ku(B&255)|0)){F=(a[C>>0]|0)==37;c:do if(F){G=C+1|0;I=a[G>>0]|0;do if(I<<24>>24==37)break c;else if(I<<24>>24==42){J=0;K=C+2|0}else{L=(I&255)+ -48|0;if(L>>>0<10?(a[C+2>>0]|0)==36:0){c[l>>2]=c[j>>2];M=L;while(1){L=c[l>>2]|0;N=c[L>>2]|0;c[l>>2]=L+4;if(M>>>0>1)M=M+ -1|0;else break}J=N;K=C+3|0;break}M=c[j>>2]|0;L=c[M>>2]|0;c[j>>2]=M+4;J=L;K=G}while(0);G=a[K>>0]|0;I=G&255;if((I+ -48|0)>>>0<10){L=I;I=K;M=0;while(1){O=(M*10|0)+ -48+L|0;P=I+1|0;Q=a[P>>0]|0;L=Q&255;if((L+ -48|0)>>>0>=10){R=Q;S=P;T=O;break}else{I=P;M=O}}}else{R=G;S=K;T=0}if(R<<24>>24==109){M=S+1|0;U=a[M>>0]|0;V=(J|0)!=0&1;W=M;X=0;Y=0}else{U=R;V=0;W=S;X=D;Y=E}M=W+1|0;switch(U&255|0){case 106:{Z=M;_=3;break};case 108:{I=(a[M>>0]|0)==108;Z=I?W+2|0:M;_=I?3:1;break};case 104:{I=(a[M>>0]|0)==104;Z=I?W+2|0:M;_=I?-2:-1;break};case 76:{Z=M;_=2;break};case 110:case 112:case 67:case 83:case 91:case 99:case 115:case 88:case 71:case 70:case 69:case 65:case 103:case 102:case 101:case 97:case 120:case 117:case 111:case 105:case 100:{Z=W;_=0;break};case 116:case 122:{Z=M;_=1;break};default:{$=V;aa=X;ba=Y;ca=162;break a}}M=d[Z>>0]|0;I=(M&47|0)==3;L=I?M|32:M;M=I?1:_;if((L|0)==110){if(!J){da=q;ea=Z;fa=f;ga=X;ha=Y;break b}switch(M|0){case 1:{c[J>>2]=f;da=q;ea=Z;fa=f;ga=X;ha=Y;break b;break};case 0:{c[J>>2]=f;da=q;ea=Z;fa=f;ga=X;ha=Y;break b;break};case-2:{a[J>>0]=f;da=q;ea=Z;fa=f;ga=X;ha=Y;break b;break};case 3:{I=J;c[I>>2]=f;c[I+4>>2]=((f|0)<0)<<31>>31;da=q;ea=Z;fa=f;ga=X;ha=Y;break b;break};case-1:{b[J>>1]=f;da=q;ea=Z;fa=f;ga=X;ha=Y;break b;break};default:{da=q;ea=Z;fa=f;ga=X;ha=Y;break b}}}else if((L|0)==91){ia=f;ja=T}else if((L|0)==99){ia=f;ja=(T|0)<1?1:T}else{ru(e,0);do{I=c[s>>2]|0;if(I>>>0<(c[t>>2]|0)>>>0){c[s>>2]=I+1;ka=d[I>>0]|0}else ka=su(e)|0}while((ku(ka)|0)!=0);G=c[s>>2]|0;if(!(c[t>>2]|0))la=G;else{I=G+ -1|0;c[s>>2]=I;la=I}ia=(c[u>>2]|0)+f+la-(c[v>>2]|0)|0;ja=T}ru(e,ja);I=c[s>>2]|0;G=c[t>>2]|0;if(I>>>0>>0){c[s>>2]=I+1;ma=G}else{if((su(e)|0)<0){$=V;aa=X;ba=Y;ca=162;break a}ma=c[t>>2]|0}if(ma)c[s>>2]=(c[s>>2]|0)+ -1;d:do switch(L|0){case 91:case 99:case 115:{G=(L|0)==99;e:do if((L&239|0)==99){Vu(n|0,-1,257)|0;a[n>>0]=0;if((L|0)==115){a[x>>0]=0;a[w+0>>0]=0;a[w+1>>0]=0;a[w+2>>0]=0;a[w+3>>0]=0;a[w+4>>0]=0;na=Z}else na=Z}else{I=Z+1|0;O=(a[I>>0]|0)==94;P=O&1;Q=O?Z+2|0:I;Vu(n|0,O&1|0,257)|0;a[n>>0]=0;O=a[Q>>0]|0;if(O<<24>>24==93){I=(P^1)&255;a[A>>0]=I;oa=I;pa=Q+1|0}else if(O<<24>>24==45){O=(P^1)&255;a[z>>0]=O;oa=O;pa=Q+1|0}else{oa=(P^1)&255;pa=Q}Q=pa;while(1){P=a[Q>>0]|0;if(P<<24>>24==45){O=Q+1|0;I=a[O>>0]|0;if(!(I<<24>>24==93|I<<24>>24==0)){qa=a[Q+ -1>>0]|0;if((qa&255)<(I&255)){ra=qa&255;do{ra=ra+1|0;a[n+ra>>0]=oa;qa=a[O>>0]|0}while((ra|0)<(qa&255|0));sa=qa;ta=O}else{sa=I;ta=O}}else{sa=45;ta=Q}}else if(!(P<<24>>24)){$=V;aa=X;ba=Y;ca=162;break a}else if(P<<24>>24==93){na=Q;break e}else{sa=P;ta=Q}a[n+((sa&255)+1)>>0]=oa;Q=ta+1|0}}while(0);Q=G?ja+1|0:31;ra=(M|0)==1;qa=(V|0)!=0;f:do if(ra){if(qa){ua=fu(Q<<2)|0;if(!ua){$=V;aa=0;ba=ua;ca=162;break a}else va=ua}else va=J;c[m>>2]=0;c[y>>2]=0;ua=0;wa=Q;xa=va;g:while(1){if(!xa)while(1){ya=c[s>>2]|0;if(ya>>>0<(c[t>>2]|0)>>>0){c[s>>2]=ya+1;za=d[ya>>0]|0}else za=su(e)|0;if(!(a[n+(za+1)>>0]|0)){Aa=ua;Ba=0;break g}a[p>>0]=za;ya=Os(o,p,1,m)|0;if((ya|0)==-2)continue;else if((ya|0)==-1){$=V;aa=0;ba=0;ca=162;break a}if(qa&(ua|0)==(wa|0)){Ca=ua;break}}else{if(qa)Da=ua;else{Ea=ua;ca=98;break}while(1){while(1){P=c[s>>2]|0;if(P>>>0<(c[t>>2]|0)>>>0){c[s>>2]=P+1;Fa=d[P>>0]|0}else Fa=su(e)|0;if(!(a[n+(Fa+1)>>0]|0)){Aa=Da;Ba=xa;break g}a[p>>0]=Fa;P=Os(o,p,1,m)|0;if((P|0)==-1){$=V;aa=0;ba=xa;ca=162;break a}else if((P|0)!=-2)break}c[xa+(Da<<2)>>2]=c[o>>2];Da=Da+1|0;if((Da|0)==(wa|0)){Ca=wa;break}}}P=wa<<1|1;O=hu(xa,P<<2)|0;if(!O){$=V;aa=0;ba=xa;ca=162;break a}ua=Ca;wa=P;xa=O}h:do if((ca|0)==98)while(1){ca=0;while(1){wa=c[s>>2]|0;if(wa>>>0<(c[t>>2]|0)>>>0){c[s>>2]=wa+1;Ga=d[wa>>0]|0}else Ga=su(e)|0;if(!(a[n+(Ga+1)>>0]|0)){Aa=Ea;Ba=xa;break h}a[p>>0]=Ga;wa=Os(o,p,1,m)|0;if((wa|0)==-1){$=0;aa=0;ba=xa;ca=162;break a}else if((wa|0)!=-2)break}c[xa+(Ea<<2)>>2]=c[o>>2];Ea=Ea+1|0;ca=98}while(0);if(!(Ps(m)|0)){$=V;aa=0;ba=Ba;ca=162;break a}else{Ha=Aa;Ia=0;Ja=Ba}}else{if(qa){xa=fu(Q)|0;if(!xa){$=V;aa=0;ba=0;ca=162;break a}else{Ka=0;La=Q;Ma=xa}while(1){xa=Ka;do{wa=c[s>>2]|0;if(wa>>>0<(c[t>>2]|0)>>>0){c[s>>2]=wa+1;Na=d[wa>>0]|0}else Na=su(e)|0;if(!(a[n+(Na+1)>>0]|0)){Ha=xa;Ia=Ma;Ja=0;break f}a[Ma+xa>>0]=Na;xa=xa+1|0}while((xa|0)!=(La|0));xa=La<<1|1;wa=hu(Ma,xa)|0;if(!wa){$=V;aa=Ma;ba=0;ca=162;break a}else{ua=La;La=xa;Ma=wa;Ka=ua}}}if(!J){ua=ma;while(1){wa=c[s>>2]|0;if(wa>>>0>>0){c[s>>2]=wa+1;Oa=d[wa>>0]|0}else Oa=su(e)|0;if(!(a[n+(Oa+1)>>0]|0)){Ha=0;Ia=0;Ja=0;break f}ua=c[t>>2]|0}}else{ua=ma;wa=0;while(1){xa=c[s>>2]|0;if(xa>>>0>>0){c[s>>2]=xa+1;Pa=d[xa>>0]|0}else Pa=su(e)|0;if(!(a[n+(Pa+1)>>0]|0)){Ha=wa;Ia=J;Ja=0;break f}a[J+wa>>0]=Pa;ua=c[t>>2]|0;wa=wa+1|0}}}while(0);Q=c[s>>2]|0;if(!(c[t>>2]|0))Qa=Q;else{wa=Q+ -1|0;c[s>>2]=wa;Qa=wa}wa=Qa-(c[v>>2]|0)+(c[u>>2]|0)|0;if(!wa){Ra=V;Sa=q;Ta=Ia;Ua=Ja;break a}if(!((wa|0)==(ja|0)|G^1)){Ra=V;Sa=q;Ta=Ia;Ua=Ja;break a}do if(qa)if(ra){c[J>>2]=Ja;break}else{c[J>>2]=Ia;break}while(0);if(!G){if(Ja)c[Ja+(Ha<<2)>>2]=0;if(!Ia){Va=na;Wa=0;Xa=Ja}else{a[Ia+Ha>>0]=0;Va=na;Wa=Ia;Xa=Ja}}else{Va=na;Wa=Ia;Xa=Ja}break};case 111:{Ya=8;ca=144;break};case 117:case 100:{Ya=10;ca=144;break};case 105:{Ya=0;ca=144;break};case 120:case 88:case 112:{Ya=16;ca=144;break};case 71:case 103:case 70:case 102:case 69:case 101:case 65:case 97:{Za=+pu(e,M,0);if((c[u>>2]|0)==((c[v>>2]|0)-(c[s>>2]|0)|0)){Ra=V;Sa=q;Ta=X;Ua=Y;break a}if(J)if(!M){g[J>>2]=Za;Va=Z;Wa=X;Xa=Y;break d}else if((M|0)==1){h[J>>3]=Za;Va=Z;Wa=X;Xa=Y;break d}else if((M|0)==2){h[J>>3]=Za;Va=Z;Wa=X;Xa=Y;break d}else{Va=Z;Wa=X;Xa=Y;break d}else{Va=Z;Wa=X;Xa=Y}break};default:{Va=Z;Wa=X;Xa=Y}}while(0);i:do if((ca|0)==144){ca=0;ra=ou(e,Ya,0,-1,-1)|0;if((c[u>>2]|0)==((c[v>>2]|0)-(c[s>>2]|0)|0)){Ra=V;Sa=q;Ta=X;Ua=Y;break a}qa=(J|0)==0;if(!((L|0)!=112|qa)){c[J>>2]=ra;Va=Z;Wa=X;Xa=Y;break}if(qa){Va=Z;Wa=X;Xa=Y}else switch(M|0){case-2:{a[J>>0]=ra;Va=Z;Wa=X;Xa=Y;break i;break};case-1:{b[J>>1]=ra;Va=Z;Wa=X;Xa=Y;break i;break};case 0:{c[J>>2]=ra;Va=Z;Wa=X;Xa=Y;break i;break};case 1:{c[J>>2]=ra;Va=Z;Wa=X;Xa=Y;break i;break};case 3:{qa=J;c[qa>>2]=ra;c[qa+4>>2]=H;Va=Z;Wa=X;Xa=Y;break i;break};default:{Va=Z;Wa=X;Xa=Y;break i}}}while(0);da=((J|0)!=0&1)+q|0;ea=Va;fa=(c[u>>2]|0)+ia+(c[s>>2]|0)-(c[v>>2]|0)|0;ga=Wa;ha=Xa;break b}while(0);M=C+(F&1)|0;ru(e,0);L=c[s>>2]|0;if(L>>>0<(c[t>>2]|0)>>>0){c[s>>2]=L+1;_a=d[L>>0]|0}else _a=su(e)|0;if((_a|0)!=(d[M>>0]|0)){ca=19;break a}da=q;ea=M;fa=f+1|0;ga=D;ha=E}else{M=C;while(1){L=M+1|0;if(!(ku(d[L>>0]|0)|0))break;else M=L}ru(e,0);do{F=c[s>>2]|0;if(F>>>0<(c[t>>2]|0)>>>0){c[s>>2]=F+1;$a=d[F>>0]|0}else $a=su(e)|0}while((ku($a)|0)!=0);F=c[s>>2]|0;if(!(c[t>>2]|0))ab=F;else{L=F+ -1|0;c[s>>2]=L;ab=L}da=q;ea=M;fa=(c[u>>2]|0)+f+ab-(c[v>>2]|0)|0;ga=D;ha=E}while(0);C=ea+1|0;B=a[C>>0]|0;if(!(B<<24>>24)){r=da;ca=165;break}else{q=da;f=fa;D=ga;E=ha}}if((ca|0)==165){i=k;return r|0}if((ca|0)==19){if(c[t>>2]|0)c[s>>2]=(c[s>>2]|0)+ -1;if((_a|0)<0){$=0;aa=D;ba=E;ca=162}else{r=q;i=k;return r|0}}if((ca|0)==162){Ra=$;Sa=(((q|0)==0)<<31>>31)+q|0;Ta=aa;Ua=ba}if(!Ra){r=Sa;i=k;return r|0}gu(Ta);gu(Ua);r=Sa;i=k;return r|0}function Zs(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+112|0;f=e;g=f+0|0;h=g+112|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(h|0));c[f+32>>2]=24;c[f+44>>2]=a;c[f+76>>2]=-1;c[f+84>>2]=a;a=Ys(f,b,d)|0;i=e;return a|0}function _s(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=i;e=Vs(a,b,c)|0;i=d;return e|0}function $s(a){a=a|0;var b=0,d=0;b=i;d=a;while(1)if(!(c[d>>2]|0))break;else d=d+4|0;i=b;return d-a>>2|0}function at(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;if(!d){i=e;return a|0}else{f=d;g=b;h=a}while(1){f=f+ -1|0;c[h>>2]=c[g>>2];if(!f)break;else{g=g+4|0;h=h+4|0}}i=e;return a|0}function bt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;f=(d|0)==0;if(a-b>>2>>>0>>0){if(!f){g=d;do{g=g+ -1|0;c[a+(g<<2)>>2]=c[b+(g<<2)>>2]}while((g|0)!=0)}}else if(!f){f=b;b=a;g=d;while(1){g=g+ -1|0;c[b>>2]=c[f>>2];if(!g)break;else{f=f+4|0;b=b+4|0}}}i=e;return a|0}function ct(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;if(d){f=d;d=a;while(1){f=f+ -1|0;c[d>>2]=b;if(!f)break;else d=d+4|0}}i=e;return a|0}function dt(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=b;b=c[p>>2]|0;Ka(b|0,a|0,e|0)|0;Eb(10,b|0)|0;Kb()}function et(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0;a=i;i=i+16|0;b=a;d=a+12|0;a=ft()|0;if(!a)dt(16072,b);e=c[a>>2]|0;if(!e)dt(16072,b);a=e+48|0;f=c[a>>2]|0;g=c[a+4>>2]|0;if(!((f&-256|0)==1126902528&(g|0)==1129074247)){c[b>>2]=c[3978];dt(16032,b)}if((f|0)==1126902529&(g|0)==1129074247)h=c[e+44>>2]|0;else h=e+80|0;c[d>>2]=h;h=c[e>>2]|0;e=c[h+4>>2]|0;if(_b[c[(c[16464>>2]|0)+16>>2]&31](16464,h,d)|0){h=c[d>>2]|0;d=c[3978]|0;g=ec[c[(c[h>>2]|0)+8>>2]&63](h)|0;c[b>>2]=d;c[b+4>>2]=e;c[b+8>>2]=g;dt(15936,b)}else{c[b>>2]=c[3978];c[b+4>>2]=e;dt(15984,b)}}function ft(){var a=0,b=0;a=i;i=i+16|0;if(!(ob(16096,2)|0)){b=qb(c[4022]|0)|0;i=a;return b|0}else dt(16104,a);return 0}function gt(){var a=0;a=i;i=i+16|0;if(!(Ea(16088,124)|0)){i=a;return}else dt(16160,a)}function ht(a){a=a|0;var b=0;b=i;i=i+16|0;gu(a);if(!(Bb(c[4022]|0,0)|0)){i=b;return}else dt(16216,b)}function it(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=(a|0)==0?1:a;a=fu(d)|0;if(a){e=a;i=b;return e|0}while(1){a=tt()|0;if(!a){f=4;break}ic[a&3]();a=fu(d)|0;if(a){e=a;f=5;break}}if((f|0)==4){d=Na(4)|0;c[d>>2]=16280;Nb(d|0,16328,96)}else if((f|0)==5){i=b;return e|0}return 0}function jt(a,b){a=a|0;b=b|0;var c=0;b=i;c=it(a)|0;i=b;return c|0}function kt(a){a=a|0;var b=0;b=i;gu(a);i=b;return}function lt(a,b){a=a|0;b=b|0;b=i;kt(a);i=b;return}function mt(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function nt(a){a=a|0;c[a>>2]=16280;return}function ot(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function pt(a){a=a|0;return}function qt(a){a=a|0;return 16296}function rt(a){a=a|0;var b=0;b=i;i=i+16|0;ic[a&3]();dt(16344,b)}function st(){var a=0,b=0;a=ft()|0;if(((a|0)!=0?(b=c[a>>2]|0,(b|0)!=0):0)?(a=b+48|0,(c[a>>2]&-256|0)==1126902528?(c[a+4>>2]|0)==1129074247:0):0)rt(c[b+12>>2]|0);b=c[3976]|0;c[3976]=b+0;rt(b)}function tt(){var a=0;a=c[4110]|0;c[4110]=a+0;return a|0}function ut(a){a=a|0;return}function vt(a){a=a|0;var b=0;b=i;wt(a);kt(a);i=b;return}function wt(a){a=a|0;var b=0;b=i;c[a>>2]=16480;Ct(a+4|0);i=b;return}function xt(a){a=a|0;return c[a+4>>2]|0}function yt(a){a=a|0;var b=0;b=i;zt(a);kt(a);i=b;return}function zt(a){a=a|0;var b=0;b=i;c[a>>2]=16504;Ct(a+4|0);i=b;return}function At(a){a=a|0;return c[a+4>>2]|0}function Bt(a){a=a|0;var b=0;b=i;wt(a);kt(a);i=b;return}function Ct(a){a=a|0;var b=0,d=0,e=0;b=i;d=(c[a>>2]|0)+ -4|0;e=c[d>>2]|0;c[d>>2]=e+ -1;if((e+ -1|0)>=0){i=b;return}kt((c[a>>2]|0)+ -12|0);i=b;return}function Dt(a){a=a|0;return}function Et(a){a=a|0;c[a>>2]=16664;return}function Ft(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function Gt(a){a=a|0;return}function Ht(a){a=a|0;return 16680}function It(a){a=a|0;return}function Jt(a){a=a|0;return}function Kt(a){a=a|0;return}function Lt(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function Mt(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function Nt(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function Ot(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+64|0;f=e;if((a|0)==(b|0)){g=1;i=e;return g|0}if(!b){g=0;i=e;return g|0}h=Ut(b,16792,16848,0)|0;if(!h){g=0;i=e;return g|0}b=f+0|0;j=b+56|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(j|0));c[f>>2]=h;c[f+8>>2]=a;c[f+12>>2]=-1;c[f+48>>2]=1;pc[c[(c[h>>2]|0)+28>>2]&7](h,f,c[d>>2]|0,1);if((c[f+24>>2]|0)!=1){g=0;i=e;return g|0}c[d>>2]=c[f+16>>2];g=1;i=e;return g|0}function Pt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;b=i;g=d+16|0;h=c[g>>2]|0;if(!h){c[g>>2]=e;c[d+24>>2]=f;c[d+36>>2]=1;i=b;return}if((h|0)!=(e|0)){e=d+36|0;c[e>>2]=(c[e>>2]|0)+1;c[d+24>>2]=2;a[d+54>>0]=1;i=b;return}e=d+24|0;if((c[e>>2]|0)!=2){i=b;return}c[e>>2]=f;i=b;return}function Qt(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;if((c[b+8>>2]|0)!=(a|0)){i=f;return}Pt(0,b,d,e);i=f;return}function Rt(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;if((a|0)==(c[b+8>>2]|0)){Pt(0,b,d,e);i=f;return}else{g=c[a+8>>2]|0;pc[c[(c[g>>2]|0)+28>>2]&7](g,b,d,e);i=f;return}}function St(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;g=c[a+4>>2]|0;h=g>>8;if(!(g&1))j=h;else j=c[(c[d>>2]|0)+h>>2]|0;h=c[a>>2]|0;pc[c[(c[h>>2]|0)+28>>2]&7](h,b,d+j|0,(g&2|0)!=0?e:2);i=f;return}function Tt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;if((b|0)==(c[d+8>>2]|0)){Pt(0,d,e,f);i=g;return}h=c[b+12>>2]|0;j=b+(h<<3)+16|0;St(b+16|0,d,e,f);if((h|0)<=1){i=g;return}h=d+54|0;k=b+24|0;while(1){St(k,d,e,f);if(a[h>>0]|0){l=7;break}k=k+8|0;if(k>>>0>=j>>>0){l=7;break}}if((l|0)==7){i=g;return}}function Ut(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;h=i;i=i+64|0;j=h;k=c[d>>2]|0;l=d+(c[k+ -8>>2]|0)|0;m=c[k+ -4>>2]|0;c[j>>2]=f;c[j+4>>2]=d;c[j+8>>2]=e;c[j+12>>2]=g;g=j+16|0;e=j+20|0;d=j+24|0;k=j+28|0;n=j+32|0;o=j+40|0;p=(m|0)==(f|0);f=g+0|0;q=f+36|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(q|0));b[g+36>>1]=0;a[g+38>>0]=0;if(p){c[j+48>>2]=1;mc[c[(c[m>>2]|0)+20>>2]&15](m,j,l,l,1,0);r=(c[d>>2]|0)==1?l:0;i=h;return r|0}ac[c[(c[m>>2]|0)+24>>2]&3](m,j,l,1,0);l=c[j+36>>2]|0;if(!l){if((c[o>>2]|0)!=1){r=0;i=h;return r|0}if((c[k>>2]|0)!=1){r=0;i=h;return r|0}r=(c[n>>2]|0)==1?c[e>>2]|0:0;i=h;return r|0}else if((l|0)==1){if((c[d>>2]|0)!=1){if(c[o>>2]|0){r=0;i=h;return r|0}if((c[k>>2]|0)!=1){r=0;i=h;return r|0}if((c[n>>2]|0)!=1){r=0;i=h;return r|0}}r=c[g>>2]|0;i=h;return r|0}else{r=0;i=h;return r|0}return 0}function Vt(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;b=i;a[d+53>>0]=1;if((c[d+4>>2]|0)!=(f|0)){i=b;return}a[d+52>>0]=1;f=d+16|0;h=c[f>>2]|0;if(!h){c[f>>2]=e;c[d+24>>2]=g;c[d+36>>2]=1;if(!((g|0)==1?(c[d+48>>2]|0)==1:0)){i=b;return}a[d+54>>0]=1;i=b;return}if((h|0)!=(e|0)){e=d+36|0;c[e>>2]=(c[e>>2]|0)+1;a[d+54>>0]=1;i=b;return}e=d+24|0;h=c[e>>2]|0;if((h|0)==2){c[e>>2]=g;j=g}else j=h;if(!((j|0)==1?(c[d+48>>2]|0)==1:0)){i=b;return}a[d+54>>0]=1;i=b;return}function Wt(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var 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,w=0,x=0,y=0,z=0,A=0,B=0;h=i;if((b|0)==(c[d+8>>2]|0)){if((c[d+4>>2]|0)!=(e|0)){i=h;return}j=d+28|0;if((c[j>>2]|0)==1){i=h;return}c[j>>2]=f;i=h;return}if((b|0)!=(c[d>>2]|0)){j=c[b+12>>2]|0;k=b+(j<<3)+16|0;Yt(b+16|0,d,e,f,g);l=b+24|0;if((j|0)<=1){i=h;return}j=c[b+8>>2]|0;if((j&2|0)==0?(m=d+36|0,(c[m>>2]|0)!=1):0){if(!(j&1)){j=d+54|0;n=l;while(1){if(a[j>>0]|0){o=43;break}if((c[m>>2]|0)==1){o=43;break}Yt(n,d,e,f,g);n=n+8|0;if(n>>>0>=k>>>0){o=43;break}}if((o|0)==43){i=h;return}}n=d+24|0;j=d+54|0;p=l;while(1){if(a[j>>0]|0){o=43;break}if((c[m>>2]|0)==1?(c[n>>2]|0)==1:0){o=43;break}Yt(p,d,e,f,g);p=p+8|0;if(p>>>0>=k>>>0){o=43;break}}if((o|0)==43){i=h;return}}p=d+54|0;n=l;while(1){if(a[p>>0]|0){o=43;break}Yt(n,d,e,f,g);n=n+8|0;if(n>>>0>=k>>>0){o=43;break}}if((o|0)==43){i=h;return}}if((c[d+16>>2]|0)!=(e|0)?(k=d+20|0,(c[k>>2]|0)!=(e|0)):0){c[d+32>>2]=f;n=d+44|0;if((c[n>>2]|0)==4){i=h;return}p=c[b+12>>2]|0;l=b+(p<<3)+16|0;a:do if((p|0)>0){m=d+52|0;j=d+53|0;q=d+54|0;r=b+8|0;s=d+24|0;t=0;u=0;v=b+16|0;b:while(1){a[m>>0]=0;a[j>>0]=0;Xt(v,d,e,e,1,g);if(a[q>>0]|0){w=t;x=u;break}do if(a[j>>0]|0){if(!(a[m>>0]|0))if(!(c[r>>2]&1)){w=t;x=1;break b}else{y=t;z=1;break}if((c[s>>2]|0)==1){o=25;break a}if(!(c[r>>2]&2)){o=25;break a}else{y=1;z=1}}else{y=t;z=u}while(0);v=v+8|0;if(v>>>0>=l>>>0){w=y;x=z;break}else{t=y;u=z}}if(w){A=x;o=24}else{B=x;o=21}}else{B=0;o=21}while(0);if((o|0)==21){c[k>>2]=e;e=d+40|0;c[e>>2]=(c[e>>2]|0)+1;if((c[d+36>>2]|0)==1?(c[d+24>>2]|0)==2:0){a[d+54>>0]=1;if(B)o=25;else o=26}else{A=B;o=24}}if((o|0)==24)if(A)o=25;else o=26;if((o|0)==25){c[n>>2]=3;i=h;return}else if((o|0)==26){c[n>>2]=4;i=h;return}}if((f|0)!=1){i=h;return}c[d+32>>2]=1;i=h;return}function Xt(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0;h=i;j=c[a+4>>2]|0;k=j>>8;if(!(j&1))l=k;else l=c[(c[e>>2]|0)+k>>2]|0;k=c[a>>2]|0;mc[c[(c[k>>2]|0)+20>>2]&15](k,b,d,e+l|0,(j&2|0)!=0?f:2,g);i=h;return}function Yt(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;h=c[a+4>>2]|0;j=h>>8;if(!(h&1))k=j;else k=c[(c[d>>2]|0)+j>>2]|0;j=c[a>>2]|0;ac[c[(c[j>>2]|0)+24>>2]&3](j,b,d+k|0,(h&2|0)!=0?e:2,f);i=g;return}function Zt(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=i;if((b|0)==(c[d+8>>2]|0)){if((c[d+4>>2]|0)!=(e|0)){i=h;return}j=d+28|0;if((c[j>>2]|0)==1){i=h;return}c[j>>2]=f;i=h;return}if((b|0)!=(c[d>>2]|0)){j=c[b+8>>2]|0;ac[c[(c[j>>2]|0)+24>>2]&3](j,d,e,f,g);i=h;return}if((c[d+16>>2]|0)!=(e|0)?(j=d+20|0,(c[j>>2]|0)!=(e|0)):0){c[d+32>>2]=f;k=d+44|0;if((c[k>>2]|0)==4){i=h;return}l=d+52|0;a[l>>0]=0;m=d+53|0;a[m>>0]=0;n=c[b+8>>2]|0;mc[c[(c[n>>2]|0)+20>>2]&15](n,d,e,e,1,g);if(a[m>>0]|0){if(!(a[l>>0]|0)){o=1;p=13}}else{o=0;p=13}do if((p|0)==13){c[j>>2]=e;l=d+40|0;c[l>>2]=(c[l>>2]|0)+1;if((c[d+36>>2]|0)==1?(c[d+24>>2]|0)==2:0){a[d+54>>0]=1;if(o)break}else p=16;if((p|0)==16?o:0)break;c[k>>2]=4;i=h;return}while(0);c[k>>2]=3;i=h;return}if((f|0)!=1){i=h;return}c[d+32>>2]=1;i=h;return}function _t(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0;g=i;if((c[d+8>>2]|0)==(b|0)){if((c[d+4>>2]|0)!=(e|0)){i=g;return}h=d+28|0;if((c[h>>2]|0)==1){i=g;return}c[h>>2]=f;i=g;return}if((c[d>>2]|0)!=(b|0)){i=g;return}if((c[d+16>>2]|0)!=(e|0)?(b=d+20|0,(c[b>>2]|0)!=(e|0)):0){c[d+32>>2]=f;c[b>>2]=e;e=d+40|0;c[e>>2]=(c[e>>2]|0)+1;if((c[d+36>>2]|0)==1?(c[d+24>>2]|0)==2:0)a[d+54>>0]=1;c[d+44>>2]=4;i=g;return}if((f|0)!=1){i=g;return}c[d+32>>2]=1;i=g;return}function $t(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;j=i;if((b|0)==(c[d+8>>2]|0)){Vt(0,d,e,f,g);i=j;return}k=d+52|0;l=a[k>>0]|0;m=d+53|0;n=a[m>>0]|0;o=c[b+12>>2]|0;p=b+(o<<3)+16|0;a[k>>0]=0;a[m>>0]=0;Xt(b+16|0,d,e,f,g,h);a:do if((o|0)>1){q=d+24|0;r=b+8|0;s=d+54|0;t=b+24|0;do{if(a[s>>0]|0)break a;if(!(a[k>>0]|0)){if((a[m>>0]|0)!=0?(c[r>>2]&1|0)==0:0)break a}else{if((c[q>>2]|0)==1)break a;if(!(c[r>>2]&2))break a}a[k>>0]=0;a[m>>0]=0;Xt(t,d,e,f,g,h);t=t+8|0}while(t>>>0

>>0)}while(0);a[k>>0]=l;a[m>>0]=n;i=j;return}function au(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;if((a|0)==(c[b+8>>2]|0)){Vt(0,b,d,e,f);i=h;return}else{j=c[a+8>>2]|0;mc[c[(c[j>>2]|0)+20>>2]&15](j,b,d,e,f,g);i=h;return}}function bu(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;g=i;if((c[b+8>>2]|0)!=(a|0)){i=g;return}Vt(0,b,d,e,f);i=g;return}function cu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e;c[f>>2]=c[d>>2];g=_b[c[(c[a>>2]|0)+16>>2]&31](a,b,f)|0;b=g&1;if(!g){i=e;return b|0}c[d>>2]=c[f>>2];i=e;return b|0}function du(a){a=a|0;var b=0,c=0;b=i;if(!a)c=0;else c=(Ut(a,16792,16960,0)|0)!=0;i=b;return c&1|0}function eu(){var a=0;a=Na(4)|0;nt(a);Nb(a|0,16328,96)}function fu(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0;b=i;do if(a>>>0<245){if(a>>>0<11)d=16;else d=a+11&-8;e=d>>>3;f=c[4304]|0;g=f>>>e;if(g&3){h=(g&1^1)+e|0;j=h<<1;k=17256+(j<<2)|0;l=17256+(j+2<<2)|0;j=c[l>>2]|0;m=j+8|0;n=c[m>>2]|0;do if((k|0)!=(n|0)){if(n>>>0<(c[4308]|0)>>>0)Kb();o=n+12|0;if((c[o>>2]|0)==(j|0)){c[o>>2]=k;c[l>>2]=n;break}else Kb()}else c[4304]=f&~(1<>2]=n|3;l=j+(n|4)|0;c[l>>2]=c[l>>2]|1;p=m;i=b;return p|0}if(d>>>0>(c[4306]|0)>>>0){if(g){l=2<>>12&16;k=l>>>n;l=k>>>5&8;o=k>>>l;k=o>>>2&4;q=o>>>k;o=q>>>1&2;r=q>>>o;q=r>>>1&1;s=(l|n|k|o|q)+(r>>>q)|0;q=s<<1;r=17256+(q<<2)|0;o=17256+(q+2<<2)|0;q=c[o>>2]|0;k=q+8|0;n=c[k>>2]|0;do if((r|0)!=(n|0)){if(n>>>0<(c[4308]|0)>>>0)Kb();l=n+12|0;if((c[l>>2]|0)==(q|0)){c[l>>2]=r;c[o>>2]=n;break}else Kb()}else c[4304]=f&~(1<>2]=d|3;o=q+d|0;c[q+(d|4)>>2]=n|1;c[q+f>>2]=n;f=c[4306]|0;if(f){r=c[4309]|0;e=f>>>3;f=e<<1;g=17256+(f<<2)|0;m=c[4304]|0;j=1<>2]|0;if(h>>>0<(c[4308]|0)>>>0)Kb();else{t=e;u=h}}else{c[4304]=m|j;t=17256+(f+2<<2)|0;u=g}c[t>>2]=r;c[u+12>>2]=r;c[r+8>>2]=u;c[r+12>>2]=g}c[4306]=n;c[4309]=o;p=k;i=b;return p|0}o=c[4305]|0;if(o){n=(o&0-o)+ -1|0;o=n>>>12&16;g=n>>>o;n=g>>>5&8;r=g>>>n;g=r>>>2&4;f=r>>>g;r=f>>>1&2;j=f>>>r;f=j>>>1&1;m=c[17520+((n|o|g|r|f)+(j>>>f)<<2)>>2]|0;f=(c[m+4>>2]&-8)-d|0;j=m;r=m;while(1){m=c[j+16>>2]|0;if(!m){g=c[j+20>>2]|0;if(!g)break;else v=g}else v=m;m=(c[v+4>>2]&-8)-d|0;g=m>>>0>>0;f=g?m:f;j=v;r=g?v:r}j=c[4308]|0;if(r>>>0>>0)Kb();k=r+d|0;if(r>>>0>=k>>>0)Kb();q=c[r+24>>2]|0;s=c[r+12>>2]|0;do if((s|0)==(r|0)){g=r+20|0;m=c[g>>2]|0;if(!m){o=r+16|0;n=c[o>>2]|0;if(!n){w=0;break}else{x=n;y=o}}else{x=m;y=g}while(1){g=x+20|0;m=c[g>>2]|0;if(m){x=m;y=g;continue}g=x+16|0;m=c[g>>2]|0;if(!m)break;else{x=m;y=g}}if(y>>>0>>0)Kb();else{c[y>>2]=0;w=x;break}}else{g=c[r+8>>2]|0;if(g>>>0>>0)Kb();m=g+12|0;if((c[m>>2]|0)!=(r|0))Kb();o=s+8|0;if((c[o>>2]|0)==(r|0)){c[m>>2]=s;c[o>>2]=g;w=s;break}else Kb()}while(0);do if(q){s=c[r+28>>2]|0;j=17520+(s<<2)|0;if((r|0)==(c[j>>2]|0)){c[j>>2]=w;if(!w){c[4305]=c[4305]&~(1<>>0<(c[4308]|0)>>>0)Kb();s=q+16|0;if((c[s>>2]|0)==(r|0))c[s>>2]=w;else c[q+20>>2]=w;if(!w)break}if(w>>>0<(c[4308]|0)>>>0)Kb();c[w+24>>2]=q;s=c[r+16>>2]|0;do if(s)if(s>>>0<(c[4308]|0)>>>0)Kb();else{c[w+16>>2]=s;c[s+24>>2]=w;break}while(0);s=c[r+20>>2]|0;if(s)if(s>>>0<(c[4308]|0)>>>0)Kb();else{c[w+20>>2]=s;c[s+24>>2]=w;break}}while(0);if(f>>>0<16){q=f+d|0;c[r+4>>2]=q|3;s=r+(q+4)|0;c[s>>2]=c[s>>2]|1}else{c[r+4>>2]=d|3;c[r+(d|4)>>2]=f|1;c[r+(f+d)>>2]=f;s=c[4306]|0;if(s){q=c[4309]|0;j=s>>>3;s=j<<1;g=17256+(s<<2)|0;o=c[4304]|0;m=1<>2]|0;if(n>>>0<(c[4308]|0)>>>0)Kb();else{z=j;A=n}}else{c[4304]=o|m;z=17256+(s+2<<2)|0;A=g}c[z>>2]=q;c[A+12>>2]=q;c[q+8>>2]=A;c[q+12>>2]=g}c[4306]=f;c[4309]=k}p=r+8|0;i=b;return p|0}else B=d}else B=d}else if(a>>>0<=4294967231){g=a+11|0;q=g&-8;s=c[4305]|0;if(s){m=0-q|0;o=g>>>8;if(o)if(q>>>0>16777215)C=31;else{g=(o+1048320|0)>>>16&8;n=o<>>16&4;j=n<>>16&2;h=14-(o|g|n)+(j<>>15)|0;C=q>>>(h+7|0)&1|h<<1}else C=0;h=c[17520+(C<<2)>>2]|0;a:do if(!h){D=m;E=0;F=0}else{if((C|0)==31)G=0;else G=25-(C>>>1)|0;n=m;j=0;g=q<>2]&-8;H=l-q|0;if(H>>>0>>0)if((l|0)==(q|0)){D=H;E=o;F=o;break a}else{I=H;J=o}else{I=n;J=e}H=c[o+20>>2]|0;o=c[o+(g>>>31<<2)+16>>2]|0;l=(H|0)==0|(H|0)==(o|0)?j:H;if(!o){D=I;E=l;F=J;break}else{n=I;j=l;g=g<<1;e=J}}}while(0);if((E|0)==0&(F|0)==0){h=2<>>12&16;r=h>>>m;h=r>>>5&8;k=r>>>h;r=k>>>2&4;f=k>>>r;k=f>>>1&2;e=f>>>k;f=e>>>1&1;K=c[17520+((h|m|r|k|f)+(e>>>f)<<2)>>2]|0}else K=E;if(!K){L=D;M=F}else{f=D;e=K;k=F;while(1){r=(c[e+4>>2]&-8)-q|0;m=r>>>0>>0;h=m?r:f;r=m?e:k;m=c[e+16>>2]|0;if(m){f=h;e=m;k=r;continue}e=c[e+20>>2]|0;if(!e){L=h;M=r;break}else{f=h;k=r}}}if((M|0)!=0?L>>>0<((c[4306]|0)-q|0)>>>0:0){k=c[4308]|0;if(M>>>0>>0)Kb();f=M+q|0;if(M>>>0>=f>>>0)Kb();e=c[M+24>>2]|0;s=c[M+12>>2]|0;do if((s|0)==(M|0)){r=M+20|0;h=c[r>>2]|0;if(!h){m=M+16|0;g=c[m>>2]|0;if(!g){N=0;break}else{O=g;P=m}}else{O=h;P=r}while(1){r=O+20|0;h=c[r>>2]|0;if(h){O=h;P=r;continue}r=O+16|0;h=c[r>>2]|0;if(!h)break;else{O=h;P=r}}if(P>>>0>>0)Kb();else{c[P>>2]=0;N=O;break}}else{r=c[M+8>>2]|0;if(r>>>0>>0)Kb();h=r+12|0;if((c[h>>2]|0)!=(M|0))Kb();m=s+8|0;if((c[m>>2]|0)==(M|0)){c[h>>2]=s;c[m>>2]=r;N=s;break}else Kb()}while(0);do if(e){s=c[M+28>>2]|0;k=17520+(s<<2)|0;if((M|0)==(c[k>>2]|0)){c[k>>2]=N;if(!N){c[4305]=c[4305]&~(1<>>0<(c[4308]|0)>>>0)Kb();s=e+16|0;if((c[s>>2]|0)==(M|0))c[s>>2]=N;else c[e+20>>2]=N;if(!N)break}if(N>>>0<(c[4308]|0)>>>0)Kb();c[N+24>>2]=e;s=c[M+16>>2]|0;do if(s)if(s>>>0<(c[4308]|0)>>>0)Kb();else{c[N+16>>2]=s;c[s+24>>2]=N;break}while(0);s=c[M+20>>2]|0;if(s)if(s>>>0<(c[4308]|0)>>>0)Kb();else{c[N+20>>2]=s;c[s+24>>2]=N;break}}while(0);b:do if(L>>>0>=16){c[M+4>>2]=q|3;c[M+(q|4)>>2]=L|1;c[M+(L+q)>>2]=L;e=L>>>3;if(L>>>0<256){s=e<<1;k=17256+(s<<2)|0;r=c[4304]|0;m=1<>2]|0;if(h>>>0>=(c[4308]|0)>>>0){Q=e;R=h;break}Kb()}while(0);c[Q>>2]=f;c[R+12>>2]=f;c[M+(q+8)>>2]=R;c[M+(q+12)>>2]=k;break}s=L>>>8;if(s)if(L>>>0>16777215)S=31;else{m=(s+1048320|0)>>>16&8;r=s<>>16&4;h=r<>>16&2;e=14-(s|m|r)+(h<>>15)|0;S=L>>>(e+7|0)&1|e<<1}else S=0;e=17520+(S<<2)|0;c[M+(q+28)>>2]=S;c[M+(q+20)>>2]=0;c[M+(q+16)>>2]=0;r=c[4305]|0;h=1<>2]=f;c[M+(q+24)>>2]=e;c[M+(q+12)>>2]=f;c[M+(q+8)>>2]=f;break}h=c[e>>2]|0;if((S|0)==31)T=0;else T=25-(S>>>1)|0;c:do if((c[h+4>>2]&-8|0)!=(L|0)){e=L<>>31<<2)+16|0;m=c[U>>2]|0;if(!m)break;if((c[m+4>>2]&-8|0)==(L|0)){V=m;break c}else{e=e<<1;r=m}}if(U>>>0<(c[4308]|0)>>>0)Kb();else{c[U>>2]=f;c[M+(q+24)>>2]=r;c[M+(q+12)>>2]=f;c[M+(q+8)>>2]=f;break b}}else V=h;while(0);h=V+8|0;k=c[h>>2]|0;e=c[4308]|0;if(V>>>0>>0)Kb();if(k>>>0>>0)Kb();else{c[k+12>>2]=f;c[h>>2]=f;c[M+(q+8)>>2]=k;c[M+(q+12)>>2]=V;c[M+(q+24)>>2]=0;break}}else{k=L+q|0;c[M+4>>2]=k|3;h=M+(k+4)|0;c[h>>2]=c[h>>2]|1}while(0);p=M+8|0;i=b;return p|0}else B=q}else B=q}else B=-1;while(0);M=c[4306]|0;if(B>>>0<=M>>>0){L=M-B|0;V=c[4309]|0;if(L>>>0>15){c[4309]=V+B;c[4306]=L;c[V+(B+4)>>2]=L|1;c[V+M>>2]=L;c[V+4>>2]=B|3}else{c[4306]=0;c[4309]=0;c[V+4>>2]=M|3;L=V+(M+4)|0;c[L>>2]=c[L>>2]|1}p=V+8|0;i=b;return p|0}V=c[4307]|0;if(B>>>0>>0){L=V-B|0;c[4307]=L;V=c[4310]|0;c[4310]=V+B;c[V+(B+4)>>2]=L|1;c[V+4>>2]=B|3;p=V+8|0;i=b;return p|0}do if(!(c[4422]|0)){V=Gb(30)|0;if(!(V+ -1&V)){c[4424]=V;c[4423]=V;c[4425]=-1;c[4426]=-1;c[4427]=0;c[4415]=0;c[4422]=(Wb(0)|0)&-16^1431655768;break}else Kb()}while(0);V=B+48|0;L=c[4424]|0;M=B+47|0;U=L+M|0;T=0-L|0;L=U&T;if(L>>>0<=B>>>0){p=0;i=b;return p|0}S=c[4414]|0;if((S|0)!=0?(R=c[4412]|0,Q=R+L|0,Q>>>0<=R>>>0|Q>>>0>S>>>0):0){p=0;i=b;return p|0}d:do if(!(c[4415]&4)){S=c[4310]|0;e:do if(S){Q=17664|0;while(1){R=c[Q>>2]|0;if(R>>>0<=S>>>0?(W=Q+4|0,(R+(c[W>>2]|0)|0)>>>0>S>>>0):0)break;R=c[Q+8>>2]|0;if(!R){X=182;break e}else Q=R}if(Q){R=U-(c[4307]|0)&T;if(R>>>0<2147483647){N=Ya(R|0)|0;O=(N|0)==((c[Q>>2]|0)+(c[W>>2]|0)|0);Y=N;Z=R;_=O?N:-1;$=O?R:0;X=191}else aa=0}else X=182}else X=182;while(0);do if((X|0)==182){S=Ya(0)|0;if((S|0)!=(-1|0)){q=S;R=c[4423]|0;O=R+ -1|0;if(!(O&q))ba=L;else ba=L-q+(O+q&0-R)|0;R=c[4412]|0;q=R+ba|0;if(ba>>>0>B>>>0&ba>>>0<2147483647){O=c[4414]|0;if((O|0)!=0?q>>>0<=R>>>0|q>>>0>O>>>0:0){aa=0;break}O=Ya(ba|0)|0;q=(O|0)==(S|0);Y=O;Z=ba;_=q?S:-1;$=q?ba:0;X=191}else aa=0}else aa=0}while(0);f:do if((X|0)==191){q=0-Z|0;if((_|0)!=(-1|0)){ca=_;da=$;X=202;break d}do if((Y|0)!=(-1|0)&Z>>>0<2147483647&Z>>>0>>0?(S=c[4424]|0,O=M-Z+S&0-S,O>>>0<2147483647):0)if((Ya(O|0)|0)==(-1|0)){Ya(q|0)|0;aa=$;break f}else{ea=O+Z|0;break}else ea=Z;while(0);if((Y|0)==(-1|0))aa=$;else{ca=Y;da=ea;X=202;break d}}while(0);c[4415]=c[4415]|4;fa=aa;X=199}else{fa=0;X=199}while(0);if((((X|0)==199?L>>>0<2147483647:0)?(aa=Ya(L|0)|0,L=Ya(0)|0,(L|0)!=(-1|0)&(aa|0)!=(-1|0)&aa>>>0>>0):0)?(ea=L-aa|0,L=ea>>>0>(B+40|0)>>>0,L):0){ca=aa;da=L?ea:fa;X=202}if((X|0)==202){fa=(c[4412]|0)+da|0;c[4412]=fa;if(fa>>>0>(c[4413]|0)>>>0)c[4413]=fa;fa=c[4310]|0;g:do if(fa){ea=17664|0;while(1){ga=c[ea>>2]|0;ha=ea+4|0;ia=c[ha>>2]|0;if((ca|0)==(ga+ia|0)){X=214;break}L=c[ea+8>>2]|0;if(!L)break;else ea=L}if(((X|0)==214?(c[ea+12>>2]&8|0)==0:0)?fa>>>0>=ga>>>0&fa>>>0>>0:0){c[ha>>2]=ia+da;L=(c[4307]|0)+da|0;aa=fa+8|0;if(!(aa&7))ja=0;else ja=0-aa&7;aa=L-ja|0;c[4310]=fa+ja;c[4307]=aa;c[fa+(ja+4)>>2]=aa|1;c[fa+(L+4)>>2]=40;c[4311]=c[4426];break}if(ca>>>0<(c[4308]|0)>>>0)c[4308]=ca;L=ca+da|0;aa=17664|0;while(1){if((c[aa>>2]|0)==(L|0)){X=224;break}Y=c[aa+8>>2]|0;if(!Y)break;else aa=Y}if((X|0)==224?(c[aa+12>>2]&8|0)==0:0){c[aa>>2]=ca;L=aa+4|0;c[L>>2]=(c[L>>2]|0)+da;L=ca+8|0;if(!(L&7))ka=0;else ka=0-L&7;L=ca+(da+8)|0;if(!(L&7))la=0;else la=0-L&7;L=ca+(la+da)|0;ea=ka+B|0;Y=ca+ea|0;$=L-(ca+ka)-B|0;c[ca+(ka+4)>>2]=B|3;h:do if((L|0)!=(c[4310]|0)){if((L|0)==(c[4309]|0)){Z=(c[4306]|0)+$|0;c[4306]=Z;c[4309]=Y;c[ca+(ea+4)>>2]=Z|1;c[ca+(Z+ea)>>2]=Z;break}Z=da+4|0;M=c[ca+(Z+la)>>2]|0;if((M&3|0)==1){V=M&-8;_=M>>>3;i:do if(M>>>0>=256){ba=c[ca+((la|24)+da)>>2]|0;W=c[ca+(da+12+la)>>2]|0;do if((W|0)==(L|0)){T=la|16;U=ca+(Z+T)|0;q=c[U>>2]|0;if(!q){Q=ca+(T+da)|0;T=c[Q>>2]|0;if(!T){ma=0;break}else{na=T;oa=Q}}else{na=q;oa=U}while(1){U=na+20|0;q=c[U>>2]|0;if(q){na=q;oa=U;continue}U=na+16|0;q=c[U>>2]|0;if(!q)break;else{na=q;oa=U}}if(oa>>>0<(c[4308]|0)>>>0)Kb();else{c[oa>>2]=0;ma=na;break}}else{U=c[ca+((la|8)+da)>>2]|0;if(U>>>0<(c[4308]|0)>>>0)Kb();q=U+12|0;if((c[q>>2]|0)!=(L|0))Kb();Q=W+8|0;if((c[Q>>2]|0)==(L|0)){c[q>>2]=W;c[Q>>2]=U;ma=W;break}else Kb()}while(0);if(!ba)break;W=c[ca+(da+28+la)>>2]|0;r=17520+(W<<2)|0;do if((L|0)!=(c[r>>2]|0)){if(ba>>>0<(c[4308]|0)>>>0)Kb();U=ba+16|0;if((c[U>>2]|0)==(L|0))c[U>>2]=ma;else c[ba+20>>2]=ma;if(!ma)break i}else{c[r>>2]=ma;if(ma)break;c[4305]=c[4305]&~(1<>>0<(c[4308]|0)>>>0)Kb();c[ma+24>>2]=ba;W=la|16;r=c[ca+(W+da)>>2]|0;do if(r)if(r>>>0<(c[4308]|0)>>>0)Kb();else{c[ma+16>>2]=r;c[r+24>>2]=ma;break}while(0);r=c[ca+(Z+W)>>2]|0;if(!r)break;if(r>>>0<(c[4308]|0)>>>0)Kb();else{c[ma+20>>2]=r;c[r+24>>2]=ma;break}}else{r=c[ca+((la|8)+da)>>2]|0;ba=c[ca+(da+12+la)>>2]|0;U=17256+(_<<1<<2)|0;do if((r|0)!=(U|0)){if(r>>>0<(c[4308]|0)>>>0)Kb();if((c[r+12>>2]|0)==(L|0))break;Kb()}while(0);if((ba|0)==(r|0)){c[4304]=c[4304]&~(1<<_);break}do if((ba|0)==(U|0))pa=ba+8|0;else{if(ba>>>0<(c[4308]|0)>>>0)Kb();W=ba+8|0;if((c[W>>2]|0)==(L|0)){pa=W;break}Kb()}while(0);c[r+12>>2]=ba;c[pa>>2]=r}while(0);qa=ca+((V|la)+da)|0;ra=V+$|0}else{qa=L;ra=$}_=qa+4|0;c[_>>2]=c[_>>2]&-2;c[ca+(ea+4)>>2]=ra|1;c[ca+(ra+ea)>>2]=ra;_=ra>>>3;if(ra>>>0<256){Z=_<<1;M=17256+(Z<<2)|0;U=c[4304]|0;W=1<<_;do if(!(U&W)){c[4304]=U|W;sa=17256+(Z+2<<2)|0;ta=M}else{_=17256+(Z+2<<2)|0;Q=c[_>>2]|0;if(Q>>>0>=(c[4308]|0)>>>0){sa=_;ta=Q;break}Kb()}while(0);c[sa>>2]=Y;c[ta+12>>2]=Y;c[ca+(ea+8)>>2]=ta;c[ca+(ea+12)>>2]=M;break}Z=ra>>>8;do if(!Z)ua=0;else{if(ra>>>0>16777215){ua=31;break}W=(Z+1048320|0)>>>16&8;U=Z<>>16&4;Q=U<>>16&2;_=14-(V|W|U)+(Q<>>15)|0;ua=ra>>>(_+7|0)&1|_<<1}while(0);Z=17520+(ua<<2)|0;c[ca+(ea+28)>>2]=ua;c[ca+(ea+20)>>2]=0;c[ca+(ea+16)>>2]=0;M=c[4305]|0;_=1<>2]=Y;c[ca+(ea+24)>>2]=Z;c[ca+(ea+12)>>2]=Y;c[ca+(ea+8)>>2]=Y;break}_=c[Z>>2]|0;if((ua|0)==31)va=0;else va=25-(ua>>>1)|0;j:do if((c[_+4>>2]&-8|0)!=(ra|0)){Z=ra<>>31<<2)+16|0;U=c[wa>>2]|0;if(!U)break;if((c[U+4>>2]&-8|0)==(ra|0)){xa=U;break j}else{Z=Z<<1;M=U}}if(wa>>>0<(c[4308]|0)>>>0)Kb();else{c[wa>>2]=Y;c[ca+(ea+24)>>2]=M;c[ca+(ea+12)>>2]=Y;c[ca+(ea+8)>>2]=Y;break h}}else xa=_;while(0);_=xa+8|0;Z=c[_>>2]|0;r=c[4308]|0;if(xa>>>0>>0)Kb();if(Z>>>0>>0)Kb();else{c[Z+12>>2]=Y;c[_>>2]=Y;c[ca+(ea+8)>>2]=Z;c[ca+(ea+12)>>2]=xa;c[ca+(ea+24)>>2]=0;break}}else{Z=(c[4307]|0)+$|0;c[4307]=Z;c[4310]=Y;c[ca+(ea+4)>>2]=Z|1}while(0);p=ca+(ka|8)|0;i=b;return p|0}ea=17664|0;while(1){ya=c[ea>>2]|0;if(ya>>>0<=fa>>>0?(za=c[ea+4>>2]|0,Aa=ya+za|0,Aa>>>0>fa>>>0):0)break;ea=c[ea+8>>2]|0}ea=ya+(za+ -39)|0;if(!(ea&7))Ba=0;else Ba=0-ea&7;ea=ya+(za+ -47+Ba)|0;Y=ea>>>0<(fa+16|0)>>>0?fa:ea;ea=Y+8|0;$=ca+8|0;if(!($&7))Ca=0;else Ca=0-$&7;$=da+ -40-Ca|0;c[4310]=ca+Ca;c[4307]=$;c[ca+(Ca+4)>>2]=$|1;c[ca+(da+ -36)>>2]=40;c[4311]=c[4426];c[Y+4>>2]=27;c[ea+0>>2]=c[4416];c[ea+4>>2]=c[4417];c[ea+8>>2]=c[4418];c[ea+12>>2]=c[4419];c[4416]=ca;c[4417]=da;c[4419]=0;c[4418]=ea;ea=Y+28|0;c[ea>>2]=7;if((Y+32|0)>>>0>>0){$=ea;do{ea=$;$=$+4|0;c[$>>2]=7}while((ea+8|0)>>>0>>0)}if((Y|0)!=(fa|0)){$=Y-fa|0;ea=fa+($+4)|0;c[ea>>2]=c[ea>>2]&-2;c[fa+4>>2]=$|1;c[fa+$>>2]=$;ea=$>>>3;if($>>>0<256){L=ea<<1;aa=17256+(L<<2)|0;Z=c[4304]|0;_=1<>2]|0;if(r>>>0>=(c[4308]|0)>>>0){Da=ea;Ea=r;break}Kb()}while(0);c[Da>>2]=fa;c[Ea+12>>2]=fa;c[fa+8>>2]=Ea;c[fa+12>>2]=aa;break}L=$>>>8;if(L)if($>>>0>16777215)Fa=31;else{_=(L+1048320|0)>>>16&8;Z=L<<_;L=(Z+520192|0)>>>16&4;Y=Z<>>16&2;r=14-(L|_|Z)+(Y<>>15)|0;Fa=$>>>(r+7|0)&1|r<<1}else Fa=0;r=17520+(Fa<<2)|0;c[fa+28>>2]=Fa;c[fa+20>>2]=0;c[fa+16>>2]=0;Z=c[4305]|0;Y=1<>2]=fa;c[fa+24>>2]=r;c[fa+12>>2]=fa;c[fa+8>>2]=fa;break}Y=c[r>>2]|0;if((Fa|0)==31)Ga=0;else Ga=25-(Fa>>>1)|0;k:do if((c[Y+4>>2]&-8|0)!=($|0)){r=$<>>31<<2)+16|0;_=c[Ha>>2]|0;if(!_)break;if((c[_+4>>2]&-8|0)==($|0)){Ia=_;break k}else{r=r<<1;Z=_}}if(Ha>>>0<(c[4308]|0)>>>0)Kb();else{c[Ha>>2]=fa;c[fa+24>>2]=Z;c[fa+12>>2]=fa;c[fa+8>>2]=fa;break g}}else Ia=Y;while(0);Y=Ia+8|0;$=c[Y>>2]|0;aa=c[4308]|0;if(Ia>>>0>>0)Kb();if($>>>0>>0)Kb();else{c[$+12>>2]=fa;c[Y>>2]=fa;c[fa+8>>2]=$;c[fa+12>>2]=Ia;c[fa+24>>2]=0;break}}}else{$=c[4308]|0;if(($|0)==0|ca>>>0<$>>>0)c[4308]=ca;c[4416]=ca;c[4417]=da;c[4419]=0;c[4313]=c[4422];c[4312]=-1;$=0;do{Y=$<<1;aa=17256+(Y<<2)|0;c[17256+(Y+3<<2)>>2]=aa;c[17256+(Y+2<<2)>>2]=aa;$=$+1|0}while(($|0)!=32);$=ca+8|0;if(!($&7))Ja=0;else Ja=0-$&7;$=da+ -40-Ja|0;c[4310]=ca+Ja;c[4307]=$;c[ca+(Ja+4)>>2]=$|1;c[ca+(da+ -36)>>2]=40;c[4311]=c[4426]}while(0);da=c[4307]|0;if(da>>>0>B>>>0){ca=da-B|0;c[4307]=ca;da=c[4310]|0;c[4310]=da+B;c[da+(B+4)>>2]=ca|1;c[da+4>>2]=B|3;p=da+8|0;i=b;return p|0}}c[(zb()|0)>>2]=12;p=0;i=b;return p|0}function gu(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;b=i;if(!a){i=b;return}d=a+ -8|0;e=c[4308]|0;if(d>>>0>>0)Kb();f=c[a+ -4>>2]|0;g=f&3;if((g|0)==1)Kb();h=f&-8;j=a+(h+ -8)|0;do if(!(f&1)){k=c[d>>2]|0;if(!g){i=b;return}l=-8-k|0;m=a+l|0;n=k+h|0;if(m>>>0>>0)Kb();if((m|0)==(c[4309]|0)){o=a+(h+ -4)|0;if((c[o>>2]&3|0)!=3){p=m;q=n;break}c[4306]=n;c[o>>2]=c[o>>2]&-2;c[a+(l+4)>>2]=n|1;c[j>>2]=n;i=b;return}o=k>>>3;if(k>>>0<256){k=c[a+(l+8)>>2]|0;r=c[a+(l+12)>>2]|0;s=17256+(o<<1<<2)|0;if((k|0)!=(s|0)){if(k>>>0>>0)Kb();if((c[k+12>>2]|0)!=(m|0))Kb()}if((r|0)==(k|0)){c[4304]=c[4304]&~(1<>>0>>0)Kb();s=r+8|0;if((c[s>>2]|0)==(m|0))t=s;else Kb()}else t=r+8|0;c[k+12>>2]=r;c[t>>2]=k;p=m;q=n;break}k=c[a+(l+24)>>2]|0;r=c[a+(l+12)>>2]|0;do if((r|0)==(m|0)){s=a+(l+20)|0;o=c[s>>2]|0;if(!o){u=a+(l+16)|0;v=c[u>>2]|0;if(!v){w=0;break}else{x=v;y=u}}else{x=o;y=s}while(1){s=x+20|0;o=c[s>>2]|0;if(o){x=o;y=s;continue}s=x+16|0;o=c[s>>2]|0;if(!o)break;else{x=o;y=s}}if(y>>>0>>0)Kb();else{c[y>>2]=0;w=x;break}}else{s=c[a+(l+8)>>2]|0;if(s>>>0>>0)Kb();o=s+12|0;if((c[o>>2]|0)!=(m|0))Kb();u=r+8|0;if((c[u>>2]|0)==(m|0)){c[o>>2]=r;c[u>>2]=s;w=r;break}else Kb()}while(0);if(k){r=c[a+(l+28)>>2]|0;s=17520+(r<<2)|0;if((m|0)==(c[s>>2]|0)){c[s>>2]=w;if(!w){c[4305]=c[4305]&~(1<>>0<(c[4308]|0)>>>0)Kb();r=k+16|0;if((c[r>>2]|0)==(m|0))c[r>>2]=w;else c[k+20>>2]=w;if(!w){p=m;q=n;break}}if(w>>>0<(c[4308]|0)>>>0)Kb();c[w+24>>2]=k;r=c[a+(l+16)>>2]|0;do if(r)if(r>>>0<(c[4308]|0)>>>0)Kb();else{c[w+16>>2]=r;c[r+24>>2]=w;break}while(0);r=c[a+(l+20)>>2]|0;if(r)if(r>>>0<(c[4308]|0)>>>0)Kb();else{c[w+20>>2]=r;c[r+24>>2]=w;p=m;q=n;break}else{p=m;q=n}}else{p=m;q=n}}else{p=d;q=h}while(0);if(p>>>0>=j>>>0)Kb();d=a+(h+ -4)|0;w=c[d>>2]|0;if(!(w&1))Kb();if(!(w&2)){if((j|0)==(c[4310]|0)){e=(c[4307]|0)+q|0;c[4307]=e;c[4310]=p;c[p+4>>2]=e|1;if((p|0)!=(c[4309]|0)){i=b;return}c[4309]=0;c[4306]=0;i=b;return}if((j|0)==(c[4309]|0)){e=(c[4306]|0)+q|0;c[4306]=e;c[4309]=p;c[p+4>>2]=e|1;c[p+e>>2]=e;i=b;return}e=(w&-8)+q|0;x=w>>>3;do if(w>>>0>=256){y=c[a+(h+16)>>2]|0;t=c[a+(h|4)>>2]|0;do if((t|0)==(j|0)){g=a+(h+12)|0;f=c[g>>2]|0;if(!f){r=a+(h+8)|0;k=c[r>>2]|0;if(!k){z=0;break}else{A=k;B=r}}else{A=f;B=g}while(1){g=A+20|0;f=c[g>>2]|0;if(f){A=f;B=g;continue}g=A+16|0;f=c[g>>2]|0;if(!f)break;else{A=f;B=g}}if(B>>>0<(c[4308]|0)>>>0)Kb();else{c[B>>2]=0;z=A;break}}else{g=c[a+h>>2]|0;if(g>>>0<(c[4308]|0)>>>0)Kb();f=g+12|0;if((c[f>>2]|0)!=(j|0))Kb();r=t+8|0;if((c[r>>2]|0)==(j|0)){c[f>>2]=t;c[r>>2]=g;z=t;break}else Kb()}while(0);if(y){t=c[a+(h+20)>>2]|0;n=17520+(t<<2)|0;if((j|0)==(c[n>>2]|0)){c[n>>2]=z;if(!z){c[4305]=c[4305]&~(1<>>0<(c[4308]|0)>>>0)Kb();t=y+16|0;if((c[t>>2]|0)==(j|0))c[t>>2]=z;else c[y+20>>2]=z;if(!z)break}if(z>>>0<(c[4308]|0)>>>0)Kb();c[z+24>>2]=y;t=c[a+(h+8)>>2]|0;do if(t)if(t>>>0<(c[4308]|0)>>>0)Kb();else{c[z+16>>2]=t;c[t+24>>2]=z;break}while(0);t=c[a+(h+12)>>2]|0;if(t)if(t>>>0<(c[4308]|0)>>>0)Kb();else{c[z+20>>2]=t;c[t+24>>2]=z;break}}}else{t=c[a+h>>2]|0;y=c[a+(h|4)>>2]|0;n=17256+(x<<1<<2)|0;if((t|0)!=(n|0)){if(t>>>0<(c[4308]|0)>>>0)Kb();if((c[t+12>>2]|0)!=(j|0))Kb()}if((y|0)==(t|0)){c[4304]=c[4304]&~(1<>>0<(c[4308]|0)>>>0)Kb();n=y+8|0;if((c[n>>2]|0)==(j|0))C=n;else Kb()}else C=y+8|0;c[t+12>>2]=y;c[C>>2]=t}while(0);c[p+4>>2]=e|1;c[p+e>>2]=e;if((p|0)==(c[4309]|0)){c[4306]=e;i=b;return}else D=e}else{c[d>>2]=w&-2;c[p+4>>2]=q|1;c[p+q>>2]=q;D=q}q=D>>>3;if(D>>>0<256){w=q<<1;d=17256+(w<<2)|0;e=c[4304]|0;C=1<>2]|0;if(j>>>0<(c[4308]|0)>>>0)Kb();else{E=q;F=j}}else{c[4304]=e|C;E=17256+(w+2<<2)|0;F=d}c[E>>2]=p;c[F+12>>2]=p;c[p+8>>2]=F;c[p+12>>2]=d;i=b;return}d=D>>>8;if(d)if(D>>>0>16777215)G=31;else{F=(d+1048320|0)>>>16&8;E=d<>>16&4;w=E<>>16&2;C=14-(d|F|E)+(w<>>15)|0;G=D>>>(C+7|0)&1|C<<1}else G=0;C=17520+(G<<2)|0;c[p+28>>2]=G;c[p+20>>2]=0;c[p+16>>2]=0;E=c[4305]|0;w=1<>2]|0;if((G|0)==31)H=0;else H=25-(G>>>1)|0;b:do if((c[F+4>>2]&-8|0)!=(D|0)){d=D<>>31<<2)+16|0;j=c[I>>2]|0;if(!j)break;if((c[j+4>>2]&-8|0)==(D|0)){J=j;break b}else{d=d<<1;e=j}}if(I>>>0<(c[4308]|0)>>>0)Kb();else{c[I>>2]=p;c[p+24>>2]=e;c[p+12>>2]=p;c[p+8>>2]=p;break a}}else J=F;while(0);F=J+8|0;d=c[F>>2]|0;j=c[4308]|0;if(J>>>0>>0)Kb();if(d>>>0>>0)Kb();else{c[d+12>>2]=p;c[F>>2]=p;c[p+8>>2]=d;c[p+12>>2]=J;c[p+24>>2]=0;break}}else{c[4305]=E|w;c[C>>2]=p;c[p+24>>2]=C;c[p+12>>2]=p;c[p+8>>2]=p}while(0);p=(c[4312]|0)+ -1|0;c[4312]=p;if(!p)K=17672|0;else{i=b;return}while(1){p=c[K>>2]|0;if(!p)break;else K=p+8|0}c[4312]=-1;i=b;return}function hu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;do if(a){if(b>>>0>4294967231){c[(zb()|0)>>2]=12;e=0;break}if(b>>>0<11)f=16;else f=b+11&-8;g=iu(a+ -8|0,f)|0;if(g){e=g+8|0;break}g=fu(b)|0;if(!g)e=0;else{h=c[a+ -4>>2]|0;j=(h&-8)-((h&3|0)==0?8:4)|0;Tu(g|0,a|0,(j>>>0>>0?j:b)|0)|0;gu(a);e=g}}else e=fu(b)|0;while(0);i=d;return e|0}function iu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;d=i;e=a+4|0;f=c[e>>2]|0;g=f&-8;h=a+g|0;j=c[4308]|0;if(a>>>0>>0)Kb();k=f&3;if(!((k|0)!=1&a>>>0>>0))Kb();l=a+(g|4)|0;m=c[l>>2]|0;if(!(m&1))Kb();if(!k){if(b>>>0<256){n=0;i=d;return n|0}if(g>>>0>=(b+4|0)>>>0?(g-b|0)>>>0<=c[4424]<<1>>>0:0){n=a;i=d;return n|0}n=0;i=d;return n|0}if(g>>>0>=b>>>0){k=g-b|0;if(k>>>0<=15){n=a;i=d;return n|0}c[e>>2]=f&1|b|2;c[a+(b+4)>>2]=k|3;c[l>>2]=c[l>>2]|1;ju(a+b|0,k);n=a;i=d;return n|0}if((h|0)==(c[4310]|0)){k=(c[4307]|0)+g|0;if(k>>>0<=b>>>0){n=0;i=d;return n|0}l=k-b|0;c[e>>2]=f&1|b|2;c[a+(b+4)>>2]=l|1;c[4310]=a+b;c[4307]=l;n=a;i=d;return n|0}if((h|0)==(c[4309]|0)){l=(c[4306]|0)+g|0;if(l>>>0>>0){n=0;i=d;return n|0}k=l-b|0;if(k>>>0>15){c[e>>2]=f&1|b|2;c[a+(b+4)>>2]=k|1;c[a+l>>2]=k;o=a+(l+4)|0;c[o>>2]=c[o>>2]&-2;p=a+b|0;q=k}else{c[e>>2]=f&1|l|2;f=a+(l+4)|0;c[f>>2]=c[f>>2]|1;p=0;q=0}c[4306]=q;c[4309]=p;n=a;i=d;return n|0}if(m&2){n=0;i=d;return n|0}p=(m&-8)+g|0;if(p>>>0>>0){n=0;i=d;return n|0}q=p-b|0;f=m>>>3;do if(m>>>0>=256){l=c[a+(g+24)>>2]|0;k=c[a+(g+12)>>2]|0;do if((k|0)==(h|0)){o=a+(g+20)|0;r=c[o>>2]|0;if(!r){s=a+(g+16)|0;t=c[s>>2]|0;if(!t){u=0;break}else{v=t;w=s}}else{v=r;w=o}while(1){o=v+20|0;r=c[o>>2]|0;if(r){v=r;w=o;continue}o=v+16|0;r=c[o>>2]|0;if(!r)break;else{v=r;w=o}}if(w>>>0>>0)Kb();else{c[w>>2]=0;u=v;break}}else{o=c[a+(g+8)>>2]|0;if(o>>>0>>0)Kb();r=o+12|0;if((c[r>>2]|0)!=(h|0))Kb();s=k+8|0;if((c[s>>2]|0)==(h|0)){c[r>>2]=k;c[s>>2]=o;u=k;break}else Kb()}while(0);if(l){k=c[a+(g+28)>>2]|0;o=17520+(k<<2)|0;if((h|0)==(c[o>>2]|0)){c[o>>2]=u;if(!u){c[4305]=c[4305]&~(1<>>0<(c[4308]|0)>>>0)Kb();k=l+16|0;if((c[k>>2]|0)==(h|0))c[k>>2]=u;else c[l+20>>2]=u;if(!u)break}if(u>>>0<(c[4308]|0)>>>0)Kb();c[u+24>>2]=l;k=c[a+(g+16)>>2]|0;do if(k)if(k>>>0<(c[4308]|0)>>>0)Kb();else{c[u+16>>2]=k;c[k+24>>2]=u;break}while(0);k=c[a+(g+20)>>2]|0;if(k)if(k>>>0<(c[4308]|0)>>>0)Kb();else{c[u+20>>2]=k;c[k+24>>2]=u;break}}}else{k=c[a+(g+8)>>2]|0;l=c[a+(g+12)>>2]|0;o=17256+(f<<1<<2)|0;if((k|0)!=(o|0)){if(k>>>0>>0)Kb();if((c[k+12>>2]|0)!=(h|0))Kb()}if((l|0)==(k|0)){c[4304]=c[4304]&~(1<>>0>>0)Kb();o=l+8|0;if((c[o>>2]|0)==(h|0))x=o;else Kb()}else x=l+8|0;c[k+12>>2]=l;c[x>>2]=k}while(0);if(q>>>0<16){c[e>>2]=p|c[e>>2]&1|2;x=a+(p|4)|0;c[x>>2]=c[x>>2]|1;n=a;i=d;return n|0}else{c[e>>2]=c[e>>2]&1|b|2;c[a+(b+4)>>2]=q|3;e=a+(p|4)|0;c[e>>2]=c[e>>2]|1;ju(a+b|0,q);n=a;i=d;return n|0}return 0}function ju(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;d=i;e=a+b|0;f=c[a+4>>2]|0;do if(!(f&1)){g=c[a>>2]|0;if(!(f&3)){i=d;return}h=a+(0-g)|0;j=g+b|0;k=c[4308]|0;if(h>>>0>>0)Kb();if((h|0)==(c[4309]|0)){l=a+(b+4)|0;if((c[l>>2]&3|0)!=3){m=h;n=j;break}c[4306]=j;c[l>>2]=c[l>>2]&-2;c[a+(4-g)>>2]=j|1;c[e>>2]=j;i=d;return}l=g>>>3;if(g>>>0<256){o=c[a+(8-g)>>2]|0;p=c[a+(12-g)>>2]|0;q=17256+(l<<1<<2)|0;if((o|0)!=(q|0)){if(o>>>0>>0)Kb();if((c[o+12>>2]|0)!=(h|0))Kb()}if((p|0)==(o|0)){c[4304]=c[4304]&~(1<>>0>>0)Kb();q=p+8|0;if((c[q>>2]|0)==(h|0))r=q;else Kb()}else r=p+8|0;c[o+12>>2]=p;c[r>>2]=o;m=h;n=j;break}o=c[a+(24-g)>>2]|0;p=c[a+(12-g)>>2]|0;do if((p|0)==(h|0)){q=16-g|0;l=a+(q+4)|0;s=c[l>>2]|0;if(!s){t=a+q|0;q=c[t>>2]|0;if(!q){u=0;break}else{v=q;w=t}}else{v=s;w=l}while(1){l=v+20|0;s=c[l>>2]|0;if(s){v=s;w=l;continue}l=v+16|0;s=c[l>>2]|0;if(!s)break;else{v=s;w=l}}if(w>>>0>>0)Kb();else{c[w>>2]=0;u=v;break}}else{l=c[a+(8-g)>>2]|0;if(l>>>0>>0)Kb();s=l+12|0;if((c[s>>2]|0)!=(h|0))Kb();t=p+8|0;if((c[t>>2]|0)==(h|0)){c[s>>2]=p;c[t>>2]=l;u=p;break}else Kb()}while(0);if(o){p=c[a+(28-g)>>2]|0;k=17520+(p<<2)|0;if((h|0)==(c[k>>2]|0)){c[k>>2]=u;if(!u){c[4305]=c[4305]&~(1<>>0<(c[4308]|0)>>>0)Kb();p=o+16|0;if((c[p>>2]|0)==(h|0))c[p>>2]=u;else c[o+20>>2]=u;if(!u){m=h;n=j;break}}if(u>>>0<(c[4308]|0)>>>0)Kb();c[u+24>>2]=o;p=16-g|0;k=c[a+p>>2]|0;do if(k)if(k>>>0<(c[4308]|0)>>>0)Kb();else{c[u+16>>2]=k;c[k+24>>2]=u;break}while(0);k=c[a+(p+4)>>2]|0;if(k)if(k>>>0<(c[4308]|0)>>>0)Kb();else{c[u+20>>2]=k;c[k+24>>2]=u;m=h;n=j;break}else{m=h;n=j}}else{m=h;n=j}}else{m=a;n=b}while(0);u=c[4308]|0;if(e>>>0>>0)Kb();v=a+(b+4)|0;w=c[v>>2]|0;if(!(w&2)){if((e|0)==(c[4310]|0)){r=(c[4307]|0)+n|0;c[4307]=r;c[4310]=m;c[m+4>>2]=r|1;if((m|0)!=(c[4309]|0)){i=d;return}c[4309]=0;c[4306]=0;i=d;return}if((e|0)==(c[4309]|0)){r=(c[4306]|0)+n|0;c[4306]=r;c[4309]=m;c[m+4>>2]=r|1;c[m+r>>2]=r;i=d;return}r=(w&-8)+n|0;f=w>>>3;do if(w>>>0>=256){k=c[a+(b+24)>>2]|0;g=c[a+(b+12)>>2]|0;do if((g|0)==(e|0)){o=a+(b+20)|0;l=c[o>>2]|0;if(!l){t=a+(b+16)|0;s=c[t>>2]|0;if(!s){x=0;break}else{y=s;z=t}}else{y=l;z=o}while(1){o=y+20|0;l=c[o>>2]|0;if(l){y=l;z=o;continue}o=y+16|0;l=c[o>>2]|0;if(!l)break;else{y=l;z=o}}if(z>>>0>>0)Kb();else{c[z>>2]=0;x=y;break}}else{o=c[a+(b+8)>>2]|0;if(o>>>0>>0)Kb();l=o+12|0;if((c[l>>2]|0)!=(e|0))Kb();t=g+8|0;if((c[t>>2]|0)==(e|0)){c[l>>2]=g;c[t>>2]=o;x=g;break}else Kb()}while(0);if(k){g=c[a+(b+28)>>2]|0;j=17520+(g<<2)|0;if((e|0)==(c[j>>2]|0)){c[j>>2]=x;if(!x){c[4305]=c[4305]&~(1<>>0<(c[4308]|0)>>>0)Kb();g=k+16|0;if((c[g>>2]|0)==(e|0))c[g>>2]=x;else c[k+20>>2]=x;if(!x)break}if(x>>>0<(c[4308]|0)>>>0)Kb();c[x+24>>2]=k;g=c[a+(b+16)>>2]|0;do if(g)if(g>>>0<(c[4308]|0)>>>0)Kb();else{c[x+16>>2]=g;c[g+24>>2]=x;break}while(0);g=c[a+(b+20)>>2]|0;if(g)if(g>>>0<(c[4308]|0)>>>0)Kb();else{c[x+20>>2]=g;c[g+24>>2]=x;break}}}else{g=c[a+(b+8)>>2]|0;k=c[a+(b+12)>>2]|0;j=17256+(f<<1<<2)|0;if((g|0)!=(j|0)){if(g>>>0>>0)Kb();if((c[g+12>>2]|0)!=(e|0))Kb()}if((k|0)==(g|0)){c[4304]=c[4304]&~(1<>>0>>0)Kb();j=k+8|0;if((c[j>>2]|0)==(e|0))A=j;else Kb()}else A=k+8|0;c[g+12>>2]=k;c[A>>2]=g}while(0);c[m+4>>2]=r|1;c[m+r>>2]=r;if((m|0)==(c[4309]|0)){c[4306]=r;i=d;return}else B=r}else{c[v>>2]=w&-2;c[m+4>>2]=n|1;c[m+n>>2]=n;B=n}n=B>>>3;if(B>>>0<256){w=n<<1;v=17256+(w<<2)|0;r=c[4304]|0;A=1<>2]|0;if(e>>>0<(c[4308]|0)>>>0)Kb();else{C=n;D=e}}else{c[4304]=r|A;C=17256+(w+2<<2)|0;D=v}c[C>>2]=m;c[D+12>>2]=m;c[m+8>>2]=D;c[m+12>>2]=v;i=d;return}v=B>>>8;if(v)if(B>>>0>16777215)E=31;else{D=(v+1048320|0)>>>16&8;C=v<>>16&4;w=C<>>16&2;A=14-(v|D|C)+(w<>>15)|0;E=B>>>(A+7|0)&1|A<<1}else E=0;A=17520+(E<<2)|0;c[m+28>>2]=E;c[m+20>>2]=0;c[m+16>>2]=0;C=c[4305]|0;w=1<>2]=m;c[m+24>>2]=A;c[m+12>>2]=m;c[m+8>>2]=m;i=d;return}w=c[A>>2]|0;if((E|0)==31)F=0;else F=25-(E>>>1)|0;a:do if((c[w+4>>2]&-8|0)==(B|0))G=w;else{E=B<>>31<<2)+16|0;C=c[H>>2]|0;if(!C)break;if((c[C+4>>2]&-8|0)==(B|0)){G=C;break a}else{E=E<<1;A=C}}if(H>>>0<(c[4308]|0)>>>0)Kb();c[H>>2]=m;c[m+24>>2]=A;c[m+12>>2]=m;c[m+8>>2]=m;i=d;return}while(0);H=G+8|0;B=c[H>>2]|0;w=c[4308]|0;if(G>>>0>>0)Kb();if(B>>>0>>0)Kb();c[B+12>>2]=m;c[H>>2]=m;c[m+8>>2]=B;c[m+12>>2]=G;c[m+24>>2]=0;i=d;return}function ku(a){a=a|0;var b=0;if((a|0)==32)b=1;else b=(a+ -9|0)>>>0<5;return b&1|0}function lu(a){a=a|0;return(a+ -65|0)>>>0<26|0}function mu(a){a=a|0;var b=0;if((a+ -48|0)>>>0<10)b=1;else b=((a|32)+ -97|0)>>>0<6;return b&1|0}function nu(a){a=a|0;var b=0,c=0;b=i;c=(lu(a)|0)==0;i=b;return(c?a:a|32)|0}function ou(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=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,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0,ha=0;j=i;if(e>>>0>36){c[(zb()|0)>>2]=22;k=0;l=0;H=k;i=j;return l|0}m=b+4|0;n=b+100|0;do{o=c[m>>2]|0;if(o>>>0<(c[n>>2]|0)>>>0){c[m>>2]=o+1;p=d[o>>0]|0}else p=su(b)|0}while((ku(p)|0)!=0);do if((p|0)==43|(p|0)==45){o=((p|0)==45)<<31>>31;q=c[m>>2]|0;if(q>>>0<(c[n>>2]|0)>>>0){c[m>>2]=q+1;r=d[q>>0]|0;s=o;break}else{r=su(b)|0;s=o;break}}else{r=p;s=0}while(0);p=(e|0)==0;do if((e&-17|0)==0&(r|0)==48){o=c[m>>2]|0;if(o>>>0<(c[n>>2]|0)>>>0){c[m>>2]=o+1;t=d[o>>0]|0}else t=su(b)|0;if((t|32|0)!=120){u=p?8:e;v=t;w=32;break}o=c[m>>2]|0;if(o>>>0<(c[n>>2]|0)>>>0){c[m>>2]=o+1;x=d[o>>0]|0}else x=su(b)|0;if((d[x+17713>>0]|0)>15){o=(c[n>>2]|0)==0;if(!o)c[m>>2]=(c[m>>2]|0)+ -1;if(!f){ru(b,0);k=0;l=0;H=k;i=j;return l|0}if(o){k=0;l=0;H=k;i=j;return l|0}c[m>>2]=(c[m>>2]|0)+ -1;k=0;l=0;H=k;i=j;return l|0}else{y=16;z=x;w=47}}else{o=p?10:e;if((d[r+17713>>0]|0)>>>0>>0){u=o;v=r;w=32}else{if(c[n>>2]|0)c[m>>2]=(c[m>>2]|0)+ -1;ru(b,0);c[(zb()|0)>>2]=22;k=0;l=0;H=k;i=j;return l|0}}while(0);if((w|0)==32)if((u|0)==10){r=v+ -48|0;if(r>>>0<10){e=r;r=0;while(1){A=r+e|0;p=c[m>>2]|0;if(p>>>0<(c[n>>2]|0)>>>0){c[m>>2]=p+1;B=d[p>>0]|0}else B=su(b)|0;p=B+ -48|0;if(!(p>>>0<10&A>>>0<429496729))break;e=p;r=A*10|0}C=A;D=0;E=B}else{C=0;D=0;E=v}B=E+ -48|0;if(B>>>0<10){A=C;r=D;e=B;B=E;while(1){E=av(A|0,r|0,10,0)|0;p=H;x=((e|0)<0)<<31>>31;f=~x;if(p>>>0>f>>>0|(p|0)==(f|0)&E>>>0>~e>>>0){F=e;G=A;I=r;J=B;break}f=Pu(E|0,p|0,e|0,x|0)|0;x=H;p=c[m>>2]|0;if(p>>>0<(c[n>>2]|0)>>>0){c[m>>2]=p+1;K=d[p>>0]|0}else K=su(b)|0;p=K+ -48|0;if(p>>>0<10&(x>>>0<429496729|(x|0)==429496729&f>>>0<2576980378)){A=f;r=x;e=p;B=K}else{F=p;G=f;I=x;J=K;break}}if(F>>>0>9){L=I;M=G}else{N=10;O=G;P=I;Q=J;w=73}}else{L=D;M=C}}else{y=u;z=v;w=47}a:do if((w|0)==47){if(!(y+ -1&y)){v=a[17976+((y*23|0)>>>5&7)>>0]|0;u=a[z+17713>>0]|0;C=u&255;if(C>>>0>>0){D=C;C=0;do{C=D|C<>2]|0;if(J>>>0<(c[n>>2]|0)>>>0){c[m>>2]=J+1;R=d[J>>0]|0}else R=su(b)|0;S=a[R+17713>>0]|0;D=S&255}while(D>>>0>>0&C>>>0<134217728);T=S;U=0;V=C;W=R}else{T=u;U=0;V=0;W=z}D=Ru(-1,-1,v|0)|0;J=H;if((T&255)>>>0>=y>>>0|(U>>>0>J>>>0|(U|0)==(J|0)&V>>>0>D>>>0)){N=y;O=V;P=U;Q=W;w=73;break}else{X=V;Y=U;Z=T}while(1){I=Wu(X|0,Y|0,v|0)|0;G=H;F=Z&255|I;I=c[m>>2]|0;if(I>>>0<(c[n>>2]|0)>>>0){c[m>>2]=I+1;_=d[I>>0]|0}else _=su(b)|0;Z=a[_+17713>>0]|0;if((Z&255)>>>0>=y>>>0|(G>>>0>J>>>0|(G|0)==(J|0)&F>>>0>D>>>0)){N=y;O=F;P=G;Q=_;w=73;break a}else{X=F;Y=G}}}D=a[z+17713>>0]|0;J=D&255;if(J>>>0>>0){v=J;J=0;do{J=v+(da(J,y)|0)|0;u=c[m>>2]|0;if(u>>>0<(c[n>>2]|0)>>>0){c[m>>2]=u+1;$=d[u>>0]|0}else $=su(b)|0;aa=a[$+17713>>0]|0;v=aa&255}while(v>>>0>>0&J>>>0<119304647);ba=aa;ca=J;ea=0;fa=$}else{ba=D;ca=0;ea=0;fa=z}if((ba&255)>>>0>>0){v=bv(-1,-1,y|0,0)|0;u=H;C=ea;G=ca;F=ba;I=fa;while(1){if(C>>>0>u>>>0|(C|0)==(u|0)&G>>>0>v>>>0){N=y;O=G;P=C;Q=I;w=73;break a}K=av(G|0,C|0,y|0,0)|0;B=H;e=F&255;if(B>>>0>4294967295|(B|0)==-1&K>>>0>~e>>>0){N=y;O=G;P=C;Q=I;w=73;break a}r=Pu(e|0,0,K|0,B|0)|0;B=H;K=c[m>>2]|0;if(K>>>0<(c[n>>2]|0)>>>0){c[m>>2]=K+1;ga=d[K>>0]|0}else ga=su(b)|0;F=a[ga+17713>>0]|0;if((F&255)>>>0>=y>>>0){N=y;O=r;P=B;Q=ga;w=73;break}else{C=B;G=r;I=ga}}}else{N=y;O=ca;P=ea;Q=fa;w=73}}while(0);if((w|0)==73)if((d[Q+17713>>0]|0)>>>0>>0){do{Q=c[m>>2]|0;if(Q>>>0<(c[n>>2]|0)>>>0){c[m>>2]=Q+1;ha=d[Q>>0]|0}else ha=su(b)|0}while((d[ha+17713>>0]|0)>>>0>>0);c[(zb()|0)>>2]=34;L=h;M=g}else{L=P;M=O}if(c[n>>2]|0)c[m>>2]=(c[m>>2]|0)+ -1;if(!(L>>>0>>0|(L|0)==(h|0)&M>>>0>>0)){if((g&1|0)==0&0==0&(s|0)==0){c[(zb()|0)>>2]=34;m=Pu(g|0,h|0,-1,-1)|0;k=H;l=m;H=k;i=j;return l|0}if(L>>>0>h>>>0|(L|0)==(h|0)&M>>>0>g>>>0){c[(zb()|0)>>2]=34;k=h;l=g;H=k;i=j;return l|0}}g=((s|0)<0)<<31>>31;h=Ou(M^s|0,L^g|0,s|0,g|0)|0;k=H;l=h;H=k;i=j;return l|0}function pu(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0.0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,T=0.0,U=0,V=0.0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0.0,ga=0,ha=0.0,ia=0,ja=0.0,ka=0,la=0.0,ma=0,na=0.0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0.0,wa=0,xa=0.0,ya=0,za=0,Aa=0,Ba=0,Da=0.0,Ea=0,Fa=0.0,Ga=0.0,Ha=0,Ia=0.0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0,Yb=0,Zb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,jc=0,kc=0,lc=0,mc=0,nc=0,oc=0,pc=0,qc=0,rc=0,sc=0,tc=0.0,uc=0,vc=0,wc=0.0,xc=0.0,yc=0.0,zc=0.0,Ac=0.0,Bc=0.0,Cc=0,Dc=0,Ec=0.0,Fc=0,Gc=0.0;g=i;i=i+512|0;h=g;if(!e){j=24;k=-149}else if((e|0)==1){j=53;k=-1074}else if((e|0)==2){j=53;k=-1074}else{l=0.0;i=g;return+l}e=b+4|0;m=b+100|0;do{n=c[e>>2]|0;if(n>>>0<(c[m>>2]|0)>>>0){c[e>>2]=n+1;o=d[n>>0]|0}else o=su(b)|0}while((ku(o)|0)!=0);do if((o|0)==43|(o|0)==45){n=1-(((o|0)==45&1)<<1)|0;p=c[e>>2]|0;if(p>>>0<(c[m>>2]|0)>>>0){c[e>>2]=p+1;q=d[p>>0]|0;r=n;break}else{q=su(b)|0;r=n;break}}else{q=o;r=1}while(0);o=q;q=0;while(1){if((o|32|0)!=(a[17992+q>>0]|0)){s=o;t=q;break}do if(q>>>0<7){n=c[e>>2]|0;if(n>>>0<(c[m>>2]|0)>>>0){c[e>>2]=n+1;u=d[n>>0]|0;break}else{u=su(b)|0;break}}else u=o;while(0);n=q+1|0;if(n>>>0<8){o=u;q=n}else{s=u;t=n;break}}do if((t|0)==3)v=23;else if((t|0)!=8){u=(f|0)==0;if(!(t>>>0<4|u))if((t|0)==8)break;else{v=23;break}a:do if(!t){q=s;o=0;while(1){if((q|32|0)!=(a[18008+o>>0]|0)){y=q;z=o;break a}do if(o>>>0<2){n=c[e>>2]|0;if(n>>>0<(c[m>>2]|0)>>>0){c[e>>2]=n+1;A=d[n>>0]|0;break}else{A=su(b)|0;break}}else A=q;while(0);n=o+1|0;if(n>>>0<3){q=A;o=n}else{y=A;z=n;break}}}else{y=s;z=t}while(0);if((z|0)==3){o=c[e>>2]|0;if(o>>>0<(c[m>>2]|0)>>>0){c[e>>2]=o+1;B=d[o>>0]|0}else B=su(b)|0;if((B|0)==40)C=1;else{if(!(c[m>>2]|0)){l=w;i=g;return+l}c[e>>2]=(c[e>>2]|0)+ -1;l=w;i=g;return+l}while(1){o=c[e>>2]|0;if(o>>>0<(c[m>>2]|0)>>>0){c[e>>2]=o+1;D=d[o>>0]|0}else D=su(b)|0;if(!((D+ -48|0)>>>0<10|(D+ -65|0)>>>0<26)?!((D+ -97|0)>>>0<26|(D|0)==95):0)break;C=C+1|0}if((D|0)==41){l=w;i=g;return+l}o=(c[m>>2]|0)==0;if(!o)c[e>>2]=(c[e>>2]|0)+ -1;if(u){c[(zb()|0)>>2]=22;ru(b,0);l=0.0;i=g;return+l}if((C|0)==0|o){l=w;i=g;return+l}else E=C;do{E=E+ -1|0;c[e>>2]=(c[e>>2]|0)+ -1}while((E|0)!=0);l=w;i=g;return+l}else if(!z){do if((y|0)==48){o=c[e>>2]|0;if(o>>>0<(c[m>>2]|0)>>>0){c[e>>2]=o+1;F=d[o>>0]|0}else F=su(b)|0;if((F|32|0)!=120){if(!(c[m>>2]|0)){G=48;break}c[e>>2]=(c[e>>2]|0)+ -1;G=48;break}o=c[e>>2]|0;if(o>>>0<(c[m>>2]|0)>>>0){c[e>>2]=o+1;I=d[o>>0]|0;J=0}else{I=su(b)|0;J=0}while(1){if((I|0)==46){v=70;break}else if((I|0)!=48){K=0;L=0;M=0;N=0;O=I;P=J;Q=0;R=0;T=1.0;U=0;V=0.0;break}o=c[e>>2]|0;if(o>>>0<(c[m>>2]|0)>>>0){c[e>>2]=o+1;I=d[o>>0]|0;J=1;continue}else{I=su(b)|0;J=1;continue}}b:do if((v|0)==70){o=c[e>>2]|0;if(o>>>0<(c[m>>2]|0)>>>0){c[e>>2]=o+1;W=d[o>>0]|0}else W=su(b)|0;if((W|0)==48){o=-1;q=-1;while(1){n=c[e>>2]|0;if(n>>>0<(c[m>>2]|0)>>>0){c[e>>2]=n+1;X=d[n>>0]|0}else X=su(b)|0;if((X|0)!=48){K=0;L=0;M=o;N=q;O=X;P=1;Q=1;R=0;T=1.0;U=0;V=0.0;break b}n=Pu(o|0,q|0,-1,-1)|0;o=n;q=H}}else{K=0;L=0;M=0;N=0;O=W;P=J;Q=1;R=0;T=1.0;U=0;V=0.0}}while(0);c:while(1){q=O+ -48|0;do if(q>>>0>=10){o=O|32;n=(O|0)==46;if(!((o+ -97|0)>>>0<6|n)){Y=O;break c}if(n)if(!Q){Z=L;_=K;$=L;aa=K;ba=P;ca=1;ea=R;fa=T;ga=U;ha=V;break}else{Y=46;break c}else{ia=(O|0)>57?o+ -87|0:q;v=84;break}}else{ia=q;v=84}while(0);if((v|0)==84){v=0;do if(!((K|0)<0|(K|0)==0&L>>>0<8)){if((K|0)<0|(K|0)==0&L>>>0<14){ja=T*.0625;ka=R;la=ja;ma=U;na=V+ja*+(ia|0);break}if((ia|0)!=0&(R|0)==0){ka=1;la=T;ma=U;na=V+T*.5}else{ka=R;la=T;ma=U;na=V}}else{ka=R;la=T;ma=ia+(U<<4)|0;na=V}while(0);q=Pu(L|0,K|0,1,0)|0;Z=M;_=N;$=q;aa=H;ba=1;ca=Q;ea=ka;fa=la;ga=ma;ha=na}q=c[e>>2]|0;if(q>>>0<(c[m>>2]|0)>>>0){c[e>>2]=q+1;K=aa;L=$;M=Z;N=_;O=d[q>>0]|0;P=ba;Q=ca;R=ea;T=fa;U=ga;V=ha;continue}else{K=aa;L=$;M=Z;N=_;O=su(b)|0;P=ba;Q=ca;R=ea;T=fa;U=ga;V=ha;continue}}if(!P){q=(c[m>>2]|0)==0;if(!q)c[e>>2]=(c[e>>2]|0)+ -1;if(!u){if(!q?(q=c[e>>2]|0,c[e>>2]=q+ -1,(Q|0)!=0):0)c[e>>2]=q+ -2}else ru(b,0);l=+(r|0)*0.0;i=g;return+l}q=(Q|0)==0;o=q?L:M;n=q?K:N;if((K|0)<0|(K|0)==0&L>>>0<8){q=L;p=K;oa=U;while(1){pa=oa<<4;q=Pu(q|0,p|0,1,0)|0;p=H;if(!((p|0)<0|(p|0)==0&q>>>0<8)){qa=pa;break}else oa=pa}}else qa=U;do if((Y|32|0)==112){oa=qu(b,f)|0;q=H;if((oa|0)==0&(q|0)==-2147483648)if(u){ru(b,0);l=0.0;i=g;return+l}else{if(!(c[m>>2]|0)){ra=0;sa=0;break}c[e>>2]=(c[e>>2]|0)+ -1;ra=0;sa=0;break}else{ra=oa;sa=q}}else if(!(c[m>>2]|0)){ra=0;sa=0}else{c[e>>2]=(c[e>>2]|0)+ -1;ra=0;sa=0}while(0);q=Wu(o|0,n|0,2)|0;oa=Pu(q|0,H|0,-32,-1)|0;q=Pu(oa|0,H|0,ra|0,sa|0)|0;oa=H;if(!qa){l=+(r|0)*0.0;i=g;return+l}if((oa|0)>0|(oa|0)==0&q>>>0>(0-k|0)>>>0){c[(zb()|0)>>2]=34;l=+(r|0)*1.7976931348623157e+308*1.7976931348623157e+308;i=g;return+l}p=k+ -106|0;pa=((p|0)<0)<<31>>31;if((oa|0)<(pa|0)|(oa|0)==(pa|0)&q>>>0

>>0){c[(zb()|0)>>2]=34;l=+(r|0)*2.2250738585072014e-308*2.2250738585072014e-308;i=g;return+l}if((qa|0)>-1){p=q;pa=oa;ta=qa;ja=V;while(1){ua=ta<<1;if(!(ja>=.5)){va=ja;wa=ua}else{va=ja+-1.0;wa=ua|1}xa=ja+va;ua=Pu(p|0,pa|0,-1,-1)|0;ya=H;if((wa|0)>-1){p=ua;pa=ya;ta=wa;ja=xa}else{za=ua;Aa=ya;Ba=wa;Da=xa;break}}}else{za=q;Aa=oa;Ba=qa;Da=V}ta=Ou(32,0,k|0,((k|0)<0)<<31>>31|0)|0;pa=Pu(za|0,Aa|0,ta|0,H|0)|0;ta=H;if(0>(ta|0)|0==(ta|0)&j>>>0>pa>>>0)Ea=(pa|0)<0?0:pa;else Ea=j;do if((Ea|0)<53){ja=+(r|0);xa=+Ca(+(+vu(1.0,84-Ea|0)),+ja);if(!((Ea|0)<32&Da!=0.0)){Fa=ja;Ga=xa;Ha=Ba;Ia=Da;break}pa=Ba&1;Fa=ja;Ga=xa;Ha=(pa^1)+Ba|0;Ia=(pa|0)==0?0.0:Da}else{Fa=+(r|0);Ga=0.0;Ha=Ba;Ia=Da}while(0);xa=Fa*Ia+(Ga+Fa*+(Ha>>>0))-Ga;if(!(xa!=0.0))c[(zb()|0)>>2]=34;l=+wu(xa,za);i=g;return+l}else G=y;while(0);oa=k+j|0;q=0-oa|0;pa=G;ta=0;while(1){if((pa|0)==46){v=139;break}else if((pa|0)!=48){Ka=pa;La=0;Ma=0;Na=ta;Oa=0;break}p=c[e>>2]|0;if(p>>>0<(c[m>>2]|0)>>>0){c[e>>2]=p+1;pa=d[p>>0]|0;ta=1;continue}else{pa=su(b)|0;ta=1;continue}}d:do if((v|0)==139){pa=c[e>>2]|0;if(pa>>>0<(c[m>>2]|0)>>>0){c[e>>2]=pa+1;Pa=d[pa>>0]|0}else Pa=su(b)|0;if((Pa|0)==48){pa=-1;p=-1;while(1){n=c[e>>2]|0;if(n>>>0<(c[m>>2]|0)>>>0){c[e>>2]=n+1;Qa=d[n>>0]|0}else Qa=su(b)|0;if((Qa|0)!=48){Ka=Qa;La=pa;Ma=p;Na=1;Oa=1;break d}n=Pu(pa|0,p|0,-1,-1)|0;pa=n;p=H}}else{Ka=Pa;La=0;Ma=0;Na=ta;Oa=1}}while(0);c[h>>2]=0;ta=Ka+ -48|0;p=(Ka|0)==46;e:do if(ta>>>0<10|p){pa=h+496|0;n=Ka;o=0;ya=0;ua=p;Ra=ta;Sa=La;Ta=Ma;Ua=Na;Va=Oa;Wa=0;Xa=0;Ya=0;while(1){do if(ua)if(!Va){Za=o;_a=ya;$a=o;ab=ya;bb=Ua;cb=1;db=Wa;eb=Xa;fb=Ya}else{gb=n;hb=Sa;ib=Ta;jb=o;kb=ya;lb=Ua;mb=Wa;nb=Xa;ob=Ya;break e}else{pb=Pu(o|0,ya|0,1,0)|0;qb=H;rb=(n|0)!=48;if((Xa|0)>=125){if(!rb){Za=Sa;_a=Ta;$a=pb;ab=qb;bb=Ua;cb=Va;db=Wa;eb=Xa;fb=Ya;break}c[pa>>2]=c[pa>>2]|1;Za=Sa;_a=Ta;$a=pb;ab=qb;bb=Ua;cb=Va;db=Wa;eb=Xa;fb=Ya;break}sb=h+(Xa<<2)|0;if(!Wa)tb=Ra;else tb=n+ -48+((c[sb>>2]|0)*10|0)|0;c[sb>>2]=tb;sb=Wa+1|0;ub=(sb|0)==9;Za=Sa;_a=Ta;$a=pb;ab=qb;bb=1;cb=Va;db=ub?0:sb;eb=(ub&1)+Xa|0;fb=rb?pb:Ya}while(0);pb=c[e>>2]|0;if(pb>>>0<(c[m>>2]|0)>>>0){c[e>>2]=pb+1;vb=d[pb>>0]|0}else vb=su(b)|0;Ra=vb+ -48|0;ua=(vb|0)==46;if(!(Ra>>>0<10|ua)){wb=vb;xb=$a;yb=Za;Ab=ab;Bb=_a;Cb=bb;Db=cb;Eb=db;Fb=eb;Gb=fb;v=162;break}else{n=vb;o=$a;ya=ab;Sa=Za;Ta=_a;Ua=bb;Va=cb;Wa=db;Xa=eb;Ya=fb}}}else{wb=Ka;xb=0;yb=La;Ab=0;Bb=Ma;Cb=Na;Db=Oa;Eb=0;Fb=0;Gb=0;v=162}while(0);if((v|0)==162){ta=(Db|0)==0;gb=wb;hb=ta?xb:yb;ib=ta?Ab:Bb;jb=xb;kb=Ab;lb=Cb;mb=Eb;nb=Fb;ob=Gb}ta=(lb|0)!=0;if(ta?(gb|32|0)==101:0){p=qu(b,f)|0;Ya=H;do if((p|0)==0&(Ya|0)==-2147483648)if(u){ru(b,0);l=0.0;i=g;return+l}else{if(!(c[m>>2]|0)){Hb=0;Ib=0;break}c[e>>2]=(c[e>>2]|0)+ -1;Hb=0;Ib=0;break}else{Hb=p;Ib=Ya}while(0);Ya=Pu(Hb|0,Ib|0,hb|0,ib|0)|0;Jb=Ya;Kb=H}else if((gb|0)>-1?(c[m>>2]|0)!=0:0){c[e>>2]=(c[e>>2]|0)+ -1;Jb=hb;Kb=ib}else{Jb=hb;Kb=ib}if(!ta){c[(zb()|0)>>2]=22;ru(b,0);l=0.0;i=g;return+l}Ya=c[h>>2]|0;if(!Ya){l=+(r|0)*0.0;i=g;return+l}do if((Jb|0)==(jb|0)&(Kb|0)==(kb|0)&((kb|0)<0|(kb|0)==0&jb>>>0<10)){if(j>>>0<=30?(Ya>>>j|0)!=0:0)break;l=+(r|0)*+(Ya>>>0);i=g;return+l}while(0);Ya=(k|0)/-2|0;ta=((Ya|0)<0)<<31>>31;if((Kb|0)>(ta|0)|(Kb|0)==(ta|0)&Jb>>>0>Ya>>>0){c[(zb()|0)>>2]=34;l=+(r|0)*1.7976931348623157e+308*1.7976931348623157e+308;i=g;return+l}Ya=k+ -106|0;ta=((Ya|0)<0)<<31>>31;if((Kb|0)<(ta|0)|(Kb|0)==(ta|0)&Jb>>>0>>0){c[(zb()|0)>>2]=34;l=+(r|0)*2.2250738585072014e-308*2.2250738585072014e-308;i=g;return+l}if(!mb)Lb=nb;else{if((mb|0)<9){Ya=h+(nb<<2)|0;ta=c[Ya>>2]|0;p=mb;do{ta=ta*10|0;p=p+1|0}while((p|0)!=9);c[Ya>>2]=ta}Lb=nb+1|0}do if((ob|0)<9?(ob|0)<=(Jb|0)&(Jb|0)<18:0){if((Jb|0)==9){l=+(r|0)*+((c[h>>2]|0)>>>0);i=g;return+l}if((Jb|0)<9){l=+(r|0)*+((c[h>>2]|0)>>>0)/+(c[18024+(8-Jb<<2)>>2]|0);i=g;return+l}p=j+27+(da(Jb,-3)|0)|0;u=c[h>>2]|0;if((p|0)<=30?(u>>>p|0)!=0:0)break;l=+(r|0)*+(u>>>0)*+(c[18024+(Jb+ -10<<2)>>2]|0);i=g;return+l}while(0);ta=(Jb|0)%9|0;if(!ta){Mb=0;Nb=0;Ob=Jb;Pb=Lb}else{Ya=(Jb|0)>-1?ta:ta+9|0;ta=c[18024+(8-Ya<<2)>>2]|0;if(Lb){u=1e9/(ta|0)|0;p=0;Xa=0;Wa=0;Va=Jb;while(1){Ua=h+(Wa<<2)|0;Ta=c[Ua>>2]|0;Sa=((Ta>>>0)/(ta>>>0)|0)+Xa|0;c[Ua>>2]=Sa;Xa=da((Ta>>>0)%(ta>>>0)|0,u)|0;Ta=Wa;Wa=Wa+1|0;if((Ta|0)==(p|0)&(Sa|0)==0){Qb=Wa&127;Rb=Va+ -9|0}else{Qb=p;Rb=Va}if((Wa|0)==(Lb|0))break;else{p=Qb;Va=Rb}}if(!Xa){Sb=Qb;Tb=Rb;Ub=Lb}else{c[h+(Lb<<2)>>2]=Xa;Sb=Qb;Tb=Rb;Ub=Lb+1|0}}else{Sb=0;Tb=Jb;Ub=0}Mb=Sb;Nb=0;Ob=9-Ya+Tb|0;Pb=Ub}f:while(1){Va=h+(Mb<<2)|0;if((Ob|0)<18){p=Nb;Wa=Pb;while(1){u=0;ta=Wa+127|0;Sa=Wa;while(1){Ta=ta&127;Ua=h+(Ta<<2)|0;ya=Wu(c[Ua>>2]|0,0,29)|0;o=Pu(ya|0,H|0,u|0,0)|0;ya=H;if(ya>>>0>0|(ya|0)==0&o>>>0>1e9){n=bv(o|0,ya|0,1e9,0)|0;ua=cv(o|0,ya|0,1e9,0)|0;Vb=ua;Wb=n}else{Vb=o;Wb=0}c[Ua>>2]=Vb;Ua=(Ta|0)==(Mb|0);if((Ta|0)!=(Sa+127&127|0)|Ua)Xb=Sa;else Xb=(Vb|0)==0?Ta:Sa;if(Ua)break;else{u=Wb;ta=Ta+ -1|0;Sa=Xb}}Sa=p+ -29|0;if(!Wb){p=Sa;Wa=Xb}else{Yb=Sa;Zb=Wb;_b=Xb;break}}}else{if((Ob|0)==18){$b=Nb;ac=Pb}else{bc=Mb;cc=Nb;dc=Ob;ec=Pb;break}while(1){if((c[Va>>2]|0)>>>0>=9007199){bc=Mb;cc=$b;dc=18;ec=ac;break f}Wa=0;p=ac+127|0;Sa=ac;while(1){ta=p&127;u=h+(ta<<2)|0;Ta=Wu(c[u>>2]|0,0,29)|0;Ua=Pu(Ta|0,H|0,Wa|0,0)|0;Ta=H;if(Ta>>>0>0|(Ta|0)==0&Ua>>>0>1e9){o=bv(Ua|0,Ta|0,1e9,0)|0;n=cv(Ua|0,Ta|0,1e9,0)|0;fc=n;gc=o}else{fc=Ua;gc=0}c[u>>2]=fc;u=(ta|0)==(Mb|0);if((ta|0)!=(Sa+127&127|0)|u)hc=Sa;else hc=(fc|0)==0?ta:Sa;if(u)break;else{Wa=gc;p=ta+ -1|0;Sa=hc}}Sa=$b+ -29|0;if(!gc){$b=Sa;ac=hc}else{Yb=Sa;Zb=gc;_b=hc;break}}}Va=Mb+127&127;if((Va|0)==(_b|0)){Sa=_b+127&127;p=h+((_b+126&127)<<2)|0;c[p>>2]=c[p>>2]|c[h+(Sa<<2)>>2];ic=Sa}else ic=_b;c[h+(Va<<2)>>2]=Zb;Mb=Va;Nb=Yb;Ob=Ob+9|0;Pb=ic}g:while(1){jc=ec+1&127;Ya=h+((ec+127&127)<<2)|0;Xa=bc;Va=cc;Sa=dc;while(1){p=(Sa|0)==18;Wa=(Sa|0)>27?9:1;kc=Xa;lc=Va;while(1){ta=0;while(1){u=ta+kc&127;if((u|0)==(ec|0)){mc=2;break}Ua=c[h+(u<<2)>>2]|0;u=c[18016+(ta<<2)>>2]|0;if(Ua>>>0>>0){mc=2;break}o=ta+1|0;if(Ua>>>0>u>>>0){mc=ta;break}if((o|0)<2)ta=o;else{mc=o;break}}if((mc|0)==2&p)break g;nc=Wa+lc|0;if((kc|0)==(ec|0)){kc=ec;lc=nc}else break}p=(1<>>Wa;oc=kc;pc=0;o=kc;qc=Sa;do{u=h+(o<<2)|0;Ua=c[u>>2]|0;n=(Ua>>>Wa)+pc|0;c[u>>2]=n;pc=da(Ua&p,ta)|0;Ua=(o|0)==(oc|0)&(n|0)==0;o=o+1&127;qc=Ua?qc+ -9|0:qc;oc=Ua?o:oc}while((o|0)!=(ec|0));if(!pc){Xa=oc;Va=nc;Sa=qc;continue}if((jc|0)!=(oc|0))break;c[Ya>>2]=c[Ya>>2]|1;Xa=oc;Va=nc;Sa=qc}c[h+(ec<<2)>>2]=pc;bc=oc;cc=nc;dc=qc;ec=jc}Sa=kc&127;if((Sa|0)==(ec|0)){c[h+(jc+ -1<<2)>>2]=0;rc=jc}else rc=ec;xa=+((c[h+(Sa<<2)>>2]|0)>>>0);Sa=kc+1&127;if((Sa|0)==(rc|0)){Va=rc+1&127;c[h+(Va+ -1<<2)>>2]=0;sc=Va}else sc=rc;ja=+(r|0);tc=ja*(xa*1.0e9+ +((c[h+(Sa<<2)>>2]|0)>>>0));Sa=lc+53|0;Va=Sa-k|0;if((Va|0)<(j|0)){uc=(Va|0)<0?0:Va;vc=1}else{uc=j;vc=0}if((uc|0)<53){xa=+Ca(+(+vu(1.0,105-uc|0)),+tc);wc=+Ja(+tc,+(+vu(1.0,53-uc|0)));xc=xa;yc=wc;zc=xa+(tc-wc)}else{xc=0.0;yc=0.0;zc=tc}Xa=kc+2&127;do if((Xa|0)==(sc|0))Ac=yc;else{Ya=c[h+(Xa<<2)>>2]|0;do if(Ya>>>0>=5e8){if(Ya>>>0>5e8){Bc=ja*.75+yc;break}if((kc+3&127|0)==(sc|0)){Bc=ja*.5+yc;break}else{Bc=ja*.75+yc;break}}else{if((Ya|0)==0?(kc+3&127|0)==(sc|0):0){Bc=yc;break}Bc=ja*.25+yc}while(0);if((53-uc|0)<=1){Ac=Bc;break}if(+Ja(+Bc,1.0)!=0.0){Ac=Bc;break}Ac=Bc+1.0}while(0);ja=zc+Ac-xc;do if((Sa&2147483647|0)>(-2-oa|0)){if(!(+S(+ja)>=9007199254740992.0)){Cc=vc;Dc=lc;Ec=ja}else{Cc=(vc|0)!=0&(uc|0)==(Va|0)?0:vc;Dc=lc+1|0;Ec=ja*.5}if((Dc+50|0)<=(q|0)?!((Cc|0)!=0&Ac!=0.0):0){Fc=Dc;Gc=Ec;break}c[(zb()|0)>>2]=34;Fc=Dc;Gc=Ec}else{Fc=lc;Gc=ja}while(0);l=+wu(Gc,Fc);i=g;return+l}else{if(c[m>>2]|0)c[e>>2]=(c[e>>2]|0)+ -1;c[(zb()|0)>>2]=22;ru(b,0);l=0.0;i=g;return+l}}while(0);if((v|0)==23){v=(c[m>>2]|0)==0;if(!v)c[e>>2]=(c[e>>2]|0)+ -1;if(!(t>>>0<4|(f|0)==0|v)){v=t;do{c[e>>2]=(c[e>>2]|0)+ -1;v=v+ -1|0}while(v>>>0>3)}}l=+(r|0)*x;i=g;return+l} + + + +function ke(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=a+4|0;f=c[a>>2]|0;g=((c[e>>2]|0)-f>>2)+1|0;if(g>>>0>1073741823)yp(a);h=a+8|0;j=f;k=(c[h>>2]|0)-j|0;if(k>>2>>>0<536870911){l=k>>1;k=l>>>0>>0?g:l;l=(c[e>>2]|0)-j|0;g=l>>2;if(!k){m=0;n=0;o=g;p=l}else{q=k;r=g;s=l;t=6}}else{l=(c[e>>2]|0)-j|0;q=1073741823;r=l>>2;s=l;t=6}if((t|0)==6){m=q;n=it(q<<2)|0;o=r;p=s}s=n+(o<<2)|0;if(s)c[s>>2]=c[b>>2];Tu(n|0,f|0,p|0)|0;c[a>>2]=n;c[e>>2]=n+(o+1<<2);c[h>>2]=n+(m<<2);if(!f){i=d;return}kt(f);i=d;return}function le(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var 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;h=i;i=i+16|0;j=h;wd(b,d,e,f,g);g=b+16|0;f=b+12|0;e=b+4|0;pd(g,(c[f>>2]|0)+1-(c[e>>2]|0)|0);d=c[f>>2]|0;k=c[e>>2]|0;if((d+1-k|0)<=0){i=h;return}l=b+8|0;m=k;k=d;d=0;while(1){n=c[g>>2]|0;o=n+(d*12|0)|0;p=(c[l>>2]|0)+1-(c[b>>2]|0)|0;a[j>>0]=0;q=n+(d*12|0)+4|0;n=c[q>>2]|0;r=c[o>>2]|0;s=n-r|0;if(s>>>0>=p>>>0)if(s>>>0>p>>>0?(t=r+p|0,(n|0)!=(t|0)):0){c[q>>2]=t;u=k;v=m}else{u=k;v=m}else{sd(o,p-s|0,j);u=c[f>>2]|0;v=c[e>>2]|0}d=d+1|0;if((d|0)>=(u+1-v|0))break;else{m=v;k=u}}i=h;return}function me(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;f=i;c[b+0>>2]=c[e+0>>2];c[b+4>>2]=c[e+4>>2];c[b+8>>2]=c[e+8>>2];c[b+12>>2]=c[e+12>>2];g=b+16|0;pd(g,(c[e+12>>2]|0)+1-(c[e+4>>2]|0)|0);if(!(Ed(d,e)|0))Eh(1496);e=c[b>>2]|0;h=e-(c[d>>2]|0)|0;j=b+4|0;k=c[j>>2]|0;l=k-(c[d+4>>2]|0)|0;m=b+12|0;if(((c[m>>2]|0)+1-k|0)<=0){i=f;return}k=b+8|0;n=d+16|0;d=c[k>>2]|0;o=e;e=0;while(1){p=c[g>>2]|0;q=p+(e*12|0)|0;r=d+1-o|0;s=p+(e*12|0)+4|0;p=c[s>>2]|0;t=c[q>>2]|0;u=p-t|0;if(u>>>0>=r>>>0)if(u>>>0>r>>>0?(v=t+r|0,(p|0)!=(v|0)):0){c[s>>2]=v;w=d;x=o}else{w=d;x=o}else{od(q,r-u|0);w=c[k>>2]|0;x=c[b>>2]|0}if((w+1-x|0)>0){u=(c[n>>2]|0)+((l+e|0)*12|0)|0;r=(c[g>>2]|0)+(e*12|0)|0;q=0;do{a[(c[r>>2]|0)+q>>0]=a[(c[u>>2]|0)+(h+q)>>0]|0;q=q+1|0;v=c[k>>2]|0;s=c[b>>2]|0}while((q|0)<(v+1-s|0));y=s;z=v}else{y=x;z=w}e=e+1|0;if((e|0)>=((c[m>>2]|0)+1-(c[j>>2]|0)|0))break;else{d=z;o=y}}i=f;return}function ne(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;e=i;i=i+16|0;f=e+8|0;g=e+4|0;h=e+12|0;j=e;k=c[b>>2]|0;if((k|0)==(d|0)){i=e;return}l=(c[b+12>>2]|0)-(c[b+4>>2]|0)|0;m=(l|0)>-1;a:do if((k|0)>(d|0)){if(m){n=b+16|0;o=k;p=l;while(1){q=(c[n>>2]|0)+(p*12|0)|0;c[g>>2]=c[q>>2];r=o-d|0;a[h>>0]=0;c[f+0>>2]=c[g+0>>2];oe(j,q,f,r,h);if((p|0)<=0)break a;o=c[b>>2]|0;p=p+ -1|0}}}else if(m){p=b+16|0;o=k;n=l;while(1){r=c[p>>2]|0;q=c[r+(n*12|0)>>2]|0;if((o|0)!=(d|0)?(s=q+(d-o)|0,t=r+(n*12|0)+4|0,r=(c[t>>2]|0)-s|0,Uu(q|0,s|0,r|0)|0,s=q+r|0,(c[t>>2]|0)!=(s|0)):0)c[t>>2]=s;if((n|0)<=0)break a;o=c[b>>2]|0;n=n+ -1|0}}while(0);xd(b,d);i=e;return}function oe(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var 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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;h=i;j=c[d>>2]|0;k=j;l=(c[e>>2]|0)-k|0;e=j+l|0;if(!f){m=e;c[b>>2]=m;i=h;return}n=d+8|0;o=c[n>>2]|0;p=d+4|0;q=c[p>>2]|0;r=q;if((o-r|0)>>>0>>0){s=r-k+f|0;if((s|0)<0)yp(d);k=j;t=o-k|0;if(t>>>0<1073741823){o=t<<1;t=o>>>0>>0?s:o;o=e;s=o-k|0;if(!t){u=0;v=0;w=s;x=o}else{y=t;z=s;A=o;B=22}}else{o=e;y=2147483647;z=o-k|0;A=o;B=22}if((B|0)==22){u=y;v=it(y)|0;w=z;x=A}A=v+w|0;z=f;y=A;do{if(!y)C=0;else{a[y>>0]=a[g>>0]|0;C=y}y=C+1|0;z=z+ -1|0}while((z|0)!=0);z=c[d>>2]|0;B=x-z|0;o=v+(w-B)|0;Tu(o|0,z|0,B|0)|0;B=(c[p>>2]|0)-x|0;Tu(y|0,e|0,B|0)|0;y=c[d>>2]|0;c[d>>2]=o;c[p>>2]=C+(B+1);c[n>>2]=v+u;if(!y){m=A;c[b>>2]=m;i=h;return}kt(y);m=A;c[b>>2]=m;i=h;return}A=r-e|0;if(A>>>0>>0){r=f-A|0;y=q;while(1){if(!y)D=0;else{a[y>>0]=a[g>>0]|0;D=c[p>>2]|0}u=D+1|0;c[p>>2]=u;r=r+ -1|0;if(!r){E=A;F=u;break}else y=u}}else{E=f;F=q}if(!E){m=e;c[b>>2]=m;i=h;return}y=F-(j+(l+f))|0;A=j+(y+l)|0;if(A>>>0>>0){l=F;j=A;do{if(!l)G=0;else{a[l>>0]=a[j>>0]|0;G=c[p>>2]|0}j=j+1|0;l=G+1|0;c[p>>2]=l}while((j|0)!=(q|0))}Uu(F+(0-y)|0,e|0,y|0)|0;if(e>>>0<=g>>>0?(c[p>>2]|0)>>>0>g>>>0:0)H=g+f|0;else H=g;Vu(e|0,a[H>>0]|0,E|0)|0;m=e;c[b>>2]=m;i=h;return}function pe(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;e=i;i=i+48|0;f=e+4|0;g=e+16|0;h=e+8|0;j=e+20|0;k=e+36|0;l=e;m=e+12|0;n=e+32|0;o=c[b+4>>2]|0;if((o|0)==(d|0)){i=e;return}p=b+16|0;q=c[p>>2]|0;if((o|0)>(d|0)){c[h>>2]=q;r=o-d|0;s=c[b>>2]|0;t=(c[b+8>>2]|0)+1|0;u=t-s|0;c[j>>2]=0;v=j+4|0;c[v>>2]=0;w=j+8|0;c[w>>2]=0;if((t|0)!=(s|0)){if((u|0)<0)yp(j);s=it(u)|0;c[v>>2]=s;c[j>>2]=s;c[w>>2]=s+u;w=u;u=s;do{if(!u)x=0;else{a[u>>0]=0;x=c[v>>2]|0}u=x+1|0;c[v>>2]=u;w=w+ -1|0}while((w|0)!=0)}c[f+0>>2]=c[h+0>>2];qe(k,p,f,r,j);r=c[j>>2]|0;if(r){if((c[v>>2]|0)!=(r|0))c[v>>2]=r;kt(r)}}else{c[l>>2]=q;c[m>>2]=q+((d-o|0)*12|0);c[g+0>>2]=c[l+0>>2];c[f+0>>2]=c[m+0>>2];gd(n,p,g,f)}yd(b,d);i=e;return}function qe(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var 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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;h=i;i=i+32|0;j=h;k=c[d>>2]|0;l=k;m=((c[e>>2]|0)-l|0)/12|0;e=k+(m*12|0)|0;if(!f){n=e;c[b>>2]=n;i=h;return}o=c[d+8>>2]|0;p=d+4|0;q=c[p>>2]|0;r=q;if(((o-r|0)/12|0)>>>0>=f>>>0){s=(r-e|0)/12|0;a:do if(s>>>0>>0){t=g+4|0;u=f-s|0;v=q;while(1){if((v|0)!=0?(c[v>>2]=0,w=v+4|0,c[w>>2]=0,x=v+8|0,c[x>>2]=0,y=c[t>>2]|0,z=c[g>>2]|0,A=y-z|0,(y|0)!=(z|0)):0){if((A|0)<0)break;z=it(A)|0;c[w>>2]=z;c[v>>2]=z;c[x>>2]=z+A;A=c[g>>2]|0;x=c[t>>2]|0;if((A|0)!=(x|0)){y=A;A=z;do{if(!A)B=0;else{a[A>>0]=a[y>>0]|0;B=c[w>>2]|0}A=B+1|0;c[w>>2]=A;y=y+1|0}while((y|0)!=(x|0))}}x=(c[p>>2]|0)+12|0;c[p>>2]=x;u=u+ -1|0;if(!u){C=s;break a}else v=x}yp(v)}else C=f;while(0);if(!C){n=e;c[b>>2]=n;i=h;return}Ne(d,e,q,k+((m+f|0)*12|0)|0);if(e>>>0<=g>>>0?(c[p>>2]|0)>>>0>g>>>0:0)D=g+(f*12|0)|0;else D=g;p=D+4|0;m=C;C=e;while(1){if((C|0)!=(D|0))nd(C,c[D>>2]|0,c[p>>2]|0);m=m+ -1|0;if(!m){n=e;break}else C=C+12|0}c[b>>2]=n;i=h;return}C=((r-l|0)/12|0)+f|0;if(C>>>0>357913941)yp(d);l=k;k=(o-l|0)/12|0;if(k>>>0<178956970){o=k<<1;E=o>>>0>>0?C:o}else E=357913941;o=j+12|0;c[o>>2]=0;c[j+16>>2]=d+8;if(!E)F=0;else F=it(E*12|0)|0;c[j>>2]=F;C=F+(((e-l|0)/12|0)*12|0)|0;l=j+8|0;c[l>>2]=C;k=j+4|0;c[k>>2]=C;c[o>>2]=F+(E*12|0);E=g+4|0;F=f;f=C;while(1){if((f|0)!=0?(c[f>>2]=0,C=f+4|0,c[C>>2]=0,o=f+8|0,c[o>>2]=0,r=c[E>>2]|0,m=c[g>>2]|0,p=r-m|0,(r|0)!=(m|0)):0){if((p|0)<0){G=32;break}m=it(p)|0;c[C>>2]=m;c[f>>2]=m;c[o>>2]=m+p;p=c[g>>2]|0;o=c[E>>2]|0;if((p|0)!=(o|0)){r=p;p=m;do{if(!p)H=0;else{a[p>>0]=a[r>>0]|0;H=c[C>>2]|0}p=H+1|0;c[C>>2]=p;r=r+1|0}while((r|0)!=(o|0))}}o=(c[l>>2]|0)+12|0;c[l>>2]=o;F=F+ -1|0;if(!F)break;else f=o}if((G|0)==32)yp(f);f=Oe(d,j,e)|0;e=c[k>>2]|0;k=c[l>>2]|0;if((k|0)!=(e|0)){d=k;while(1){k=d+ -12|0;c[l>>2]=k;G=c[k>>2]|0;if(!G)I=k;else{F=d+ -8|0;if((c[F>>2]|0)==(G|0))J=k;else{c[F>>2]=G;J=c[l>>2]|0}kt(G);I=J}if((I|0)==(e|0))break;else d=I}}I=c[j>>2]|0;if(!I){n=f;c[b>>2]=n;i=h;return}kt(I);n=f;c[b>>2]=n;i=h;return}function re(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;e=i;i=i+16|0;f=e;g=b+8|0;if((c[g>>2]|0)==(d|0)){i=e;return}zd(b,d);d=(c[b+12>>2]|0)+1-(c[b+4>>2]|0)|0;if((d|0)<=0){i=e;return}h=b+16|0;j=d;do{j=j+ -1|0;d=c[h>>2]|0;k=d+(j*12|0)|0;l=(c[g>>2]|0)+1-(c[b>>2]|0)|0;a[f>>0]=0;m=d+(j*12|0)+4|0;d=c[m>>2]|0;n=c[k>>2]|0;o=d-n|0;if(o>>>0>=l>>>0){if(o>>>0>l>>>0?(p=n+l|0,(d|0)!=(p|0)):0)c[m>>2]=p}else sd(k,l-o|0,f)}while((j|0)>0);i=e;return}function se(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;i=i+16|0;f=e;g=b+12|0;h=c[g>>2]|0;if((h|0)==(d|0)){i=e;return}j=b+4|0;k=h+1-(c[j>>2]|0)|0;Ad(b,d);d=b+16|0;h=(c[g>>2]|0)+1-(c[j>>2]|0)|0;l=b+20|0;m=c[l>>2]|0;n=c[d>>2]|0;o=(m-n|0)/12|0;if(o>>>0>=h>>>0){if(o>>>0>h>>>0?(p=n+(h*12|0)|0,(m|0)!=(p|0)):0){n=m;while(1){m=n+ -12|0;c[l>>2]=m;q=c[m>>2]|0;if(!q)r=m;else{m=n+ -8|0;if((c[m>>2]|0)!=(q|0))c[m>>2]=q;kt(q);r=c[l>>2]|0}if((r|0)==(p|0))break;else n=r}}}else $c(d,h-o|0);o=c[g>>2]|0;h=c[j>>2]|0;if((k|0)>=(o+1-h|0)){i=e;return}r=b+8|0;n=h;h=o;o=k;while(1){k=c[d>>2]|0;p=k+(o*12|0)|0;l=(c[r>>2]|0)+1-(c[b>>2]|0)|0;a[f>>0]=0;q=k+(o*12|0)+4|0;k=c[q>>2]|0;m=c[p>>2]|0;s=k-m|0;if(s>>>0>=l>>>0)if(s>>>0>l>>>0?(t=m+l|0,(k|0)!=(t|0)):0){c[q>>2]=t;u=h;v=n}else{u=h;v=n}else{sd(p,l-s|0,f);u=c[g>>2]|0;v=c[j>>2]|0}o=o+1|0;if((o|0)>=(u+1-v|0))break;else{n=v;h=u}}i=e;return}function te(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;ue(b,d);f=d+4|0;g=c[f>>2]|0;h=d+12|0;j=c[h>>2]|0;if((g|0)>(j|0)){i=e;return}k=d+8|0;l=d+16|0;m=b+4|0;n=b+16|0;o=c[k>>2]|0;p=j;j=g;while(1){g=c[d>>2]|0;if((g|0)>(o|0)){q=p;r=o}else{s=g;t=o;u=g;while(1){if(!(a[(c[(c[l>>2]|0)+((j-(c[f>>2]|0)|0)*12|0)>>2]|0)+(u-s)>>0]|0))v=t;else{a[(c[(c[n>>2]|0)+((j-(c[m>>2]|0)|0)*12|0)>>2]|0)+(u-(c[b>>2]|0))>>0]=1;v=c[k>>2]|0}if((u|0)>=(v|0))break;s=c[d>>2]|0;t=v;u=u+1|0}q=c[h>>2]|0;r=v}if((j|0)>=(q|0))break;o=r;p=q;j=j+1|0}i=e;return}function ue(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;i=i+16|0;f=e;g=c[d>>2]|0;if((g|0)<(c[b>>2]|0))ne(b,g);g=c[d+4>>2]|0;h=b+4|0;if((g|0)<(c[h>>2]|0))pe(b,g);g=c[d+8>>2]|0;j=b+8|0;k=c[j>>2]|0;if(((g|0)>(k|0)?(k|0)!=(g|0):0)?(zd(b,g),g=(c[b+12>>2]|0)+1-(c[h>>2]|0)|0,(g|0)>0):0){h=b+16|0;k=g;do{k=k+ -1|0;g=c[h>>2]|0;l=g+(k*12|0)|0;m=(c[j>>2]|0)+1-(c[b>>2]|0)|0;a[f>>0]=0;n=g+(k*12|0)+4|0;g=c[n>>2]|0;o=c[l>>2]|0;p=g-o|0;if(p>>>0>=m>>>0){if(p>>>0>m>>>0?(q=o+m|0,(g|0)!=(q|0)):0)c[n>>2]=q}else sd(l,m-p|0,f)}while((k|0)>0)}k=c[d+12>>2]|0;if((k|0)<=(c[b+12>>2]|0)){i=e;return}se(b,k);i=e;return}function ve(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;f=i;i=i+16|0;g=f;h=b+8|0;j=c[h>>2]|0;if((j|0)<(e|0)){if((j|0)!=(e|0)?(zd(b,e),j=(c[b+12>>2]|0)+1-(c[b+4>>2]|0)|0,(j|0)>0):0){k=b+16|0;l=j;do{l=l+ -1|0;j=c[k>>2]|0;m=j+(l*12|0)|0;n=(c[h>>2]|0)+1-(c[b>>2]|0)|0;a[g>>0]=0;o=j+(l*12|0)+4|0;j=c[o>>2]|0;p=c[m>>2]|0;q=j-p|0;if(q>>>0>=n>>>0){if(q>>>0>n>>>0?(r=p+n|0,(j|0)!=(r|0)):0)c[o>>2]=r}else sd(m,n-q|0,g)}while((l|0)>0)}}else if((c[b>>2]|0)>(e|0))ne(b,e);if((c[b+12>>2]|0)>=(d|0)){l=b+4|0;if((c[l>>2]|0)>(d|0)){pe(b,d);s=l}else s=l}else{se(b,d);s=b+4|0}a[(c[(c[b+16>>2]|0)+((d-(c[s>>2]|0)|0)*12|0)>>2]|0)+(e-(c[b>>2]|0))>>0]=1;i=f;return}function we(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;d=i;e=c[b+4>>2]|0;f=b+12|0;g=c[f>>2]|0;a:do if((e|0)>(g|0))h=e;else{j=c[b>>2]|0;k=c[b+8>>2]|0;l=b+16|0;if((j|0)>(k|0)){m=e;while(1){n=m+1|0;if((m|0)<(g|0))m=n;else{h=n;break a}}}else o=e;while(1){m=c[(c[l>>2]|0)+((o-e|0)*12|0)>>2]|0;n=j;while(1){if(a[m+(n-j)>>0]|0){h=o;break a}if((n|0)<(k|0))n=n+1|0;else break}n=o+1|0;if((o|0)<(g|0))o=n;else{h=n;break}}}while(0);if((g|0)<(h|0)){p=0;i=d;return p|0}o=c[b>>2]|0;k=c[b+8>>2]|0;j=b+16|0;if((o|0)>(k|0)){l=g;while(1)if((l|0)>(h|0))l=l+ -1|0;else{p=0;break}i=d;return p|0}else q=g;b:while(1){l=c[(c[j>>2]|0)+((q-e|0)*12|0)>>2]|0;n=o;while(1){if(a[l+(n-o)>>0]|0)break b;if((n|0)<(k|0))n=n+1|0;else break}if((q|0)>(h|0))q=q+ -1|0;else{p=0;r=19;break}}if((r|0)==19){i=d;return p|0}if((h|0)>(e|0)){pe(b,h);s=c[f>>2]|0}else s=g;if((q|0)>=(s|0)){p=1;i=d;return p|0}se(b,q);p=1;i=d;return p|0}function xe(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;d=i;i=i+16|0;e=d;f=c[b>>2]|0;g=b+8|0;h=c[g>>2]|0;a:do if((f|0)>(h|0))j=f;else{k=c[b+4>>2]|0;l=c[b+12>>2]|0;m=b+16|0;if((k|0)>(l|0)){n=f;while(1){o=n+1|0;if((n|0)<(h|0))n=o;else{j=o;break a}}}else p=f;while(1){n=c[m>>2]|0;o=p-f|0;q=k;while(1){if(a[(c[n+((q-k|0)*12|0)>>2]|0)+o>>0]|0){j=p;break a}if((q|0)<(l|0))q=q+1|0;else break}q=p+1|0;if((p|0)<(h|0))p=q;else{j=q;break}}}while(0);b:do if((h|0)<(j|0))r=h;else{p=c[b+4>>2]|0;l=c[b+12>>2]|0;k=b+16|0;if((p|0)>(l|0)){m=h;while(1){q=m+ -1|0;if((m|0)>(j|0))m=q;else{r=q;break b}}}else s=h;while(1){m=c[k>>2]|0;q=s-f|0;o=p;while(1){if(a[(c[m+((o-p|0)*12|0)>>2]|0)+q>>0]|0){r=s;break b}if((o|0)<(l|0))o=o+1|0;else break}o=s+ -1|0;if((s|0)>(j|0))s=o;else{r=o;break}}}while(0);if((j|0)>=(r|0)){t=0;i=d;return t|0}if((j|0)>(f|0)){ne(b,j);u=c[g>>2]|0}else u=h;if((r|0)>=(u|0)){t=1;i=d;return t|0}if((u|0)==(r|0)){t=1;i=d;return t|0}zd(b,r);r=(c[b+12>>2]|0)+1-(c[b+4>>2]|0)|0;if((r|0)<=0){t=1;i=d;return t|0}u=b+16|0;h=r;do{h=h+ -1|0;r=c[u>>2]|0;j=r+(h*12|0)|0;f=(c[g>>2]|0)+1-(c[b>>2]|0)|0;a[e>>0]=0;s=r+(h*12|0)+4|0;r=c[s>>2]|0;l=c[j>>2]|0;p=r-l|0;if(p>>>0>=f>>>0){if(p>>>0>f>>>0?(k=l+f|0,(r|0)!=(k|0)):0)c[s>>2]=k}else sd(j,f-p|0,e)}while((h|0)>0);t=1;i=d;return t|0}function ye(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;e=c[b+4>>2]|0;f=c[b+12>>2]|0;if((e|0)>(f|0)){g=0;i=d;return g|0}h=c[b>>2]|0;j=c[b+8>>2]|0;k=(h|0)>(j|0);l=b+16|0;b=0;m=e;while(1){if(k)n=b;else{o=c[(c[l>>2]|0)+((m-e|0)*12|0)>>2]|0;p=b;q=h;while(1){r=((a[o+(q-h)>>0]|0)!=0&1)+p|0;if((q|0)<(j|0)){p=r;q=q+1|0}else{n=r;break}}}if((m|0)<(f|0)){b=n;m=m+1|0}else{g=n;break}}i=d;return g|0}function ze(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;d=i;e=c[b+12>>2]|0;f=c[b+4>>2]|0;g=e+1-f|0;h=c[b+8>>2]|0;j=c[b>>2]|0;k=h+1-j|0;l=((k|0)<(g|0)?k:g)*29|0;g=(l|0)/100|0;k=g+j|0;m=h-g|0;n=(l|0)>99;if(n){l=b+16|0;o=0;p=0;while(1){q=k-p|0;r=p+m|0;if((q|0)>(r|0))s=o;else{t=c[(c[l>>2]|0)+(p*12|0)>>2]|0;u=o;v=q;while(1){q=((a[t+(v-j)>>0]|0)!=0&1)+u|0;if((v|0)<(r|0)){u=q;v=v+1|0}else{s=q;break}}}p=p+1|0;if((p|0)>=(g|0)){w=s;break}else o=s}}else w=0;s=f+g|0;o=e-g|0;if((s|0)>(o|0))x=w;else{p=(j|0)>(h|0);l=b+16|0;v=w;w=s;while(1){if(p)y=v;else{s=c[(c[l>>2]|0)+((w-f|0)*12|0)>>2]|0;u=v;r=j;while(1){t=((a[s+(r-j)>>0]|0)!=0&1)+u|0;if((r|0)<(h|0)){u=t;r=r+1|0}else{y=t;break}}}if((w|0)<(o|0)){v=y;w=w+1|0}else{x=y;break}}}if(!n){z=x;i=d;return z|0}n=b+16|0;b=x;x=g;while(1){g=x;x=x+ -1|0;y=k-x|0;w=x+m|0;if((y|0)>(w|0))A=b;else{v=c[(c[n>>2]|0)+((e+(1-g)-f|0)*12|0)>>2]|0;g=b;o=y;while(1){y=((a[v+(o-j)>>0]|0)!=0&1)+g|0;if((o|0)<(w|0)){g=y;o=o+1|0}else{A=y;break}}}if((x|0)<=0){z=A;break}else b=A}i=d;return z|0}function Ae(a){a=a|0;var b=0,d=0,e=0;b=(c[a+12>>2]|0)+1-(c[a+4>>2]|0)|0;d=(c[a+8>>2]|0)+1-(c[a>>2]|0)|0;a=(((d|0)<(b|0)?d:b)*29|0)/100|0;e=(da(d,b)|0)-(da(a<<1,a+1|0)|0)|0;return e|0}function Be(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;h=c[b>>2]|0;j=b+4|0;k=b+16|0;b=e;while(1){if((b|0)<=(h|0)){l=4;break}e=b+ -1|0;if((a[(c[(c[k>>2]|0)+((d-(c[j>>2]|0)|0)*12|0)>>2]|0)+(e-h)>>0]|0)!=0^f)b=e;else{l=4;break}}if((l|0)==4){i=g;return b|0}return 0}function Ce(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;h=c[b+4>>2]|0;j=b+16|0;k=d;while(1){if((k|0)<=(h|0)){l=4;break}d=k+ -1|0;if((a[(c[(c[j>>2]|0)+((d-h|0)*12|0)>>2]|0)+(e-(c[b>>2]|0))>>0]|0)!=0^f)k=d;else{l=4;break}}if((l|0)==4){i=g;return k|0}return 0}function De(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;h=c[b+8>>2]|0;j=b+4|0;k=b+16|0;l=e;while(1){if((l|0)>=(h|0)){m=4;break}e=l+1|0;if((a[(c[(c[k>>2]|0)+((d-(c[j>>2]|0)|0)*12|0)>>2]|0)+(e-(c[b>>2]|0))>>0]|0)!=0^f)l=e;else{m=4;break}}if((m|0)==4){i=g;return l|0}return 0}function Ee(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;h=c[b+12>>2]|0;j=b+4|0;k=b+16|0;l=d;while(1){if((l|0)>=(h|0)){m=4;break}d=l+1|0;if((a[(c[(c[k>>2]|0)+((d-(c[j>>2]|0)|0)*12|0)>>2]|0)+(e-(c[b>>2]|0))>>0]|0)!=0^f)l=d;else{m=4;break}}if((m|0)==4){i=g;return l|0}return 0}function Fe(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;f=i;g=c[b+4>>2]|0;h=c[b+16>>2]|0;j=c[b>>2]|0;k=e-j|0;if(a[(c[h+((d-g|0)*12|0)>>2]|0)+k>>0]|0){l=0;i=f;return l|0}m=g+1|0;n=d;while(1){if((n|0)<=(m|0))break;o=n+ -1|0;if(!(a[(c[h+((o-g|0)*12|0)>>2]|0)+k>>0]|0))n=o;else break}m=(c[b+12>>2]|0)+ -1|0;b=d;while(1){if((b|0)>=(m|0))break;d=b+1|0;if(!(a[(c[h+((d-g|0)*12|0)>>2]|0)+k>>0]|0))b=d;else break}a:do if((n|0)>(b|0))p=e;else{k=e;d=b;o=n;while(1){q=k+ -1|0;if((k|0)<=(j|0)){p=q;break a}if((o|0)>(g+1|0))r=(((a[(c[h+((o-g|0)*12|0)>>2]|0)+(q-j)>>0]|0)==0)<<31>>31)+o|0;else r=o;if((d|0)<(m|0))s=((a[(c[h+((d-g|0)*12|0)>>2]|0)+(q-j)>>0]|0)==0&1)+d|0;else s=d;b:do if((r|0)>(s|0))t=r;else{u=q-j|0;v=r;while(1){w=v+1|0;if(!(a[(c[h+((v-g|0)*12|0)>>2]|0)+u>>0]|0)){t=v;break b}if((v|0)<(s|0))v=w;else{t=w;break}}}while(0);c:do if((t|0)>(s|0))x=s;else{v=q-j|0;u=s;while(1){w=u+ -1|0;if(!(a[(c[h+((u-g|0)*12|0)>>2]|0)+v>>0]|0)){x=u;break c}if((t|0)>(w|0)){x=w;break}else u=w}}while(0);if((t|0)>(x|0)){p=q;break}else{k=q;d=x;o=t}}}while(0);l=(p|0)<(j|0);i=f;return l|0}function Ge(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;f=i;g=c[b+4>>2]|0;h=c[b+16>>2]|0;j=c[b>>2]|0;k=c[h+((d-g|0)*12|0)>>2]|0;if(a[k+(e-j)>>0]|0){l=0;i=f;return l|0}m=j+1|0;n=e;while(1){if((n|0)<=(m|0))break;o=n+ -1|0;if(!(a[k+(o-j)>>0]|0))n=o;else break}m=(c[b+8>>2]|0)+ -1|0;b=e;while(1){if((b|0)>=(m|0))break;e=b+1|0;if(!(a[k+(e-j)>>0]|0))b=e;else break}a:do if((n|0)>(b|0))p=d;else{k=d;e=n;o=b;while(1){q=k+ -1|0;if((k|0)<=(g|0)){p=q;break a}if((e|0)>(j+1|0))r=(((a[(c[h+((q-g|0)*12|0)>>2]|0)+(e-j)>>0]|0)==0)<<31>>31)+e|0;else r=e;if((o|0)<(m|0))s=((a[(c[h+((q-g|0)*12|0)>>2]|0)+(o-j)>>0]|0)==0&1)+o|0;else s=o;b:do if((r|0)>(s|0))t=r;else{u=c[h+((q-g|0)*12|0)>>2]|0;v=r;while(1){w=v+1|0;if(!(a[u+(v-j)>>0]|0)){t=v;break b}if((v|0)<(s|0))v=w;else{t=w;break}}}while(0);c:do if((t|0)>(s|0))x=s;else{v=c[h+((q-g|0)*12|0)>>2]|0;u=s;while(1){w=u+ -1|0;if(!(a[v+(u-j)>>0]|0)){x=u;break c}if((t|0)>(w|0)){x=w;break}else u=w}}while(0);if((t|0)>(x|0)){p=q;break}else{k=q;e=t;o=x}}}while(0);l=(p|0)<(g|0);i=f;return l|0}function He(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;f=i;g=c[b+4>>2]|0;h=c[b+16>>2]|0;j=c[b>>2]|0;k=e-j|0;if(a[(c[h+((d-g|0)*12|0)>>2]|0)+k>>0]|0){l=0;i=f;return l|0}m=g+1|0;n=d;while(1){if((n|0)<=(m|0))break;o=n+ -1|0;if(!(a[(c[h+((o-g|0)*12|0)>>2]|0)+k>>0]|0))n=o;else break}m=(c[b+12>>2]|0)+ -1|0;o=d;while(1){if((o|0)>=(m|0))break;d=o+1|0;if(!(a[(c[h+((d-g|0)*12|0)>>2]|0)+k>>0]|0))o=d;else break}k=c[b+8>>2]|0;a:do if((n|0)>(o|0))p=e;else{b=e;d=o;q=n;while(1){r=b+1|0;if((b|0)>=(k|0)){p=r;break a}if((q|0)>(g+1|0))s=(((a[(c[h+((q-g|0)*12|0)>>2]|0)+(r-j)>>0]|0)==0)<<31>>31)+q|0;else s=q;if((d|0)<(m|0))t=((a[(c[h+((d-g|0)*12|0)>>2]|0)+(r-j)>>0]|0)==0&1)+d|0;else t=d;b:do if((s|0)>(t|0))u=s;else{v=r-j|0;w=s;while(1){x=w+1|0;if(!(a[(c[h+((w-g|0)*12|0)>>2]|0)+v>>0]|0)){u=w;break b}if((w|0)<(t|0))w=x;else{u=x;break}}}while(0);c:do if((u|0)>(t|0))y=t;else{w=r-j|0;v=t;while(1){x=v+ -1|0;if(!(a[(c[h+((v-g|0)*12|0)>>2]|0)+w>>0]|0)){y=v;break c}if((u|0)>(x|0)){y=x;break}else v=x}}while(0);if((u|0)>(y|0)){p=r;break}else{b=r;d=y;q=u}}}while(0);l=(p|0)>(k|0);i=f;return l|0}function Ie(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;f=i;g=c[b+4>>2]|0;h=c[b+16>>2]|0;j=c[b>>2]|0;k=c[h+((d-g|0)*12|0)>>2]|0;if(a[k+(e-j)>>0]|0){l=0;i=f;return l|0}m=j+1|0;n=e;while(1){if((n|0)<=(m|0))break;o=n+ -1|0;if(!(a[k+(o-j)>>0]|0))n=o;else break}m=(c[b+8>>2]|0)+ -1|0;o=e;while(1){if((o|0)>=(m|0))break;e=o+1|0;if(!(a[k+(e-j)>>0]|0))o=e;else break}k=c[b+12>>2]|0;a:do if((n|0)>(o|0))p=d;else{b=d;e=n;q=o;while(1){r=b+1|0;if((b|0)>=(k|0)){p=r;break a}if((e|0)>(j+1|0))s=(((a[(c[h+((r-g|0)*12|0)>>2]|0)+(e-j)>>0]|0)==0)<<31>>31)+e|0;else s=e;if((q|0)<(m|0))t=((a[(c[h+((r-g|0)*12|0)>>2]|0)+(q-j)>>0]|0)==0&1)+q|0;else t=q;b:do if((s|0)>(t|0))u=s;else{v=c[h+((r-g|0)*12|0)>>2]|0;w=s;while(1){x=w+1|0;if(!(a[v+(w-j)>>0]|0)){u=w;break b}if((w|0)<(t|0))w=x;else{u=x;break}}}while(0);c:do if((u|0)>(t|0))y=t;else{w=c[h+((r-g|0)*12|0)>>2]|0;v=t;while(1){x=v+ -1|0;if(!(a[w+(v-j)>>0]|0)){y=v;break c}if((u|0)>(x|0)){y=x;break}else v=x}}while(0);if((u|0)>(y|0)){p=r;break}else{b=r;e=u;q=y}}}while(0);l=(p|0)>(k|0);i=f;return l|0}function Je(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;f=i;i=i+16|0;g=f;h=f+14|0;j=f+13|0;k=f+12|0;l=b+4|0;m=b+16|0;n=c[b>>2]|0;if(!(a[(c[(c[m>>2]|0)+((d-(c[l>>2]|0)|0)*12|0)>>2]|0)+(e-n)>>0]|0)){o=d;i=f;return o|0}c[g>>2]=0;p=g+4|0;c[p>>2]=0;q=g+8|0;c[q>>2]=0;r=b+8|0;s=(c[r>>2]|0)+1|0;t=s-n|0;if((s|0)==(n|0))u=e;else{if((s|0)==(n|0))v=0;else v=it(t)|0;c[g>>2]=v;c[p>>2]=v;c[q>>2]=v+t;u=e}while(1){if((u|0)<=(n|0))break;t=u+ -1|0;if(!(a[(c[(c[m>>2]|0)+((d-(c[l>>2]|0)|0)*12|0)>>2]|0)+(t-n)>>0]|0)){w=8;break}else u=t}do if((w|0)==8){t=u-n|0;a[h>>0]=0;v=c[p>>2]|0;q=c[g>>2]|0;s=v-q|0;if(s>>>0>>0){sd(g,t-s|0,h);break}if(s>>>0>t>>>0?(s=q+t|0,(v|0)!=(s|0)):0)c[p>>2]=s}while(0);h=c[r>>2]|0;n=e;while(1){if((n|0)>=(h|0)){w=15;break}e=n+1|0;u=c[b>>2]|0;if(!(a[(c[(c[m>>2]|0)+((d-(c[l>>2]|0)|0)*12|0)>>2]|0)+(e-u)>>0]|0)){x=u;break}else n=e}if((w|0)==15)x=c[b>>2]|0;w=n-x+1|0;a[j>>0]=1;x=c[p>>2]|0;e=c[g>>2]|0;u=x-e|0;if(u>>>0>=w>>>0)if(u>>>0>w>>>0?(s=e+w|0,(x|0)!=(s|0)):0){c[p>>2]=s;y=h}else y=h;else{sd(g,w-u|0,j);y=c[r>>2]|0}do if((n|0)<(y|0)){j=y+1-(c[b>>2]|0)|0;a[k>>0]=0;u=c[p>>2]|0;w=c[g>>2]|0;h=u-w|0;if(h>>>0>>0){sd(g,j-h|0,k);break}if(h>>>0>j>>>0?(h=w+j|0,(u|0)!=(h|0)):0)c[p>>2]=h}while(0);a:do if((c[l>>2]|0)<(d|0)){k=d;while(1){y=k+ -1|0;n=c[r>>2]|0;h=c[b>>2]|0;if((n+1-h|0)>0){z=n;A=h;B=0;C=0}else{D=k;break a}while(1){h=(c[g>>2]|0)+C|0;if(a[h>>0]|0)if(!(a[(c[(c[m>>2]|0)+((y-(c[l>>2]|0)|0)*12|0)>>2]|0)+C>>0]|0)){a[h>>0]=0;E=c[r>>2]|0;F=c[b>>2]|0;G=B}else{E=z;F=A;G=1}else{E=z;F=A;G=B}C=C+1|0;if((C|0)>=(E+1-F|0))break;else{z=E;A=F;B=G}}if(!G){D=k;break a}h=E+1-F|0;if((h|0)>1){n=E;u=F;j=1;while(1){w=c[g>>2]|0;if(((a[w+(j+ -1)>>0]|0)!=0?(s=w+j|0,(a[s>>0]|0)==0):0)?(a[(c[(c[m>>2]|0)+((y-(c[l>>2]|0)|0)*12|0)>>2]|0)+j>>0]|0)!=0:0){a[s>>0]=1;H=c[r>>2]|0;I=c[b>>2]|0}else{H=n;I=u}j=j+1|0;s=H+1-I|0;if((j|0)>=(s|0)){J=s;break}else{n=H;u=I}}}else J=h;u=J+ -2|0;b:do if((u|0)>-1){n=u;while(1){j=c[g>>2]|0;if(((a[j+(n+1)>>0]|0)!=0?(s=j+n|0,(a[s>>0]|0)==0):0)?(a[(c[(c[m>>2]|0)+((y-(c[l>>2]|0)|0)*12|0)>>2]|0)+n>>0]|0)!=0:0)a[s>>0]=1;if((n|0)<=0)break b;n=n+ -1|0}}while(0);if((y|0)>(c[l>>2]|0))k=y;else{D=y;break}}}else D=d;while(0);d=c[g>>2]|0;if(!d){o=D;i=f;return o|0}if((c[p>>2]|0)!=(d|0))c[p>>2]=d;kt(d);o=D;i=f;return o|0}function Ke(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;f=i;i=i+16|0;g=f;h=f+14|0;j=f+13|0;k=f+12|0;l=b+4|0;m=b+16|0;n=c[b>>2]|0;if(!(a[(c[(c[m>>2]|0)+((d-(c[l>>2]|0)|0)*12|0)>>2]|0)+(e-n)>>0]|0)){o=d;i=f;return o|0}c[g>>2]=0;p=g+4|0;c[p>>2]=0;q=g+8|0;c[q>>2]=0;r=b+8|0;s=(c[r>>2]|0)+1|0;t=s-n|0;if((s|0)==(n|0))u=e;else{if((s|0)==(n|0))v=0;else v=it(t)|0;c[g>>2]=v;c[p>>2]=v;c[q>>2]=v+t;u=e}while(1){if((u|0)<=(n|0))break;t=u+ -1|0;if(!(a[(c[(c[m>>2]|0)+((d-(c[l>>2]|0)|0)*12|0)>>2]|0)+(t-n)>>0]|0)){w=8;break}else u=t}do if((w|0)==8){t=u-n|0;a[h>>0]=0;v=c[p>>2]|0;q=c[g>>2]|0;s=v-q|0;if(s>>>0>>0){sd(g,t-s|0,h);break}if(s>>>0>t>>>0?(s=q+t|0,(v|0)!=(s|0)):0)c[p>>2]=s}while(0);h=c[r>>2]|0;n=e;while(1){if((n|0)>=(h|0)){w=15;break}e=n+1|0;u=c[b>>2]|0;if(!(a[(c[(c[m>>2]|0)+((d-(c[l>>2]|0)|0)*12|0)>>2]|0)+(e-u)>>0]|0)){x=u;break}else n=e}if((w|0)==15)x=c[b>>2]|0;w=n-x+1|0;a[j>>0]=1;x=c[p>>2]|0;e=c[g>>2]|0;u=x-e|0;if(u>>>0>=w>>>0)if(u>>>0>w>>>0?(s=e+w|0,(x|0)!=(s|0)):0){c[p>>2]=s;y=h}else y=h;else{sd(g,w-u|0,j);y=c[r>>2]|0}do if((n|0)<(y|0)){j=y+1-(c[b>>2]|0)|0;a[k>>0]=0;u=c[p>>2]|0;w=c[g>>2]|0;h=u-w|0;if(h>>>0>>0){sd(g,j-h|0,k);break}if(h>>>0>j>>>0?(h=w+j|0,(u|0)!=(h|0)):0)c[p>>2]=h}while(0);k=b+12|0;a:do if((c[k>>2]|0)>(d|0)){y=d;while(1){n=y+1|0;h=c[r>>2]|0;u=c[b>>2]|0;if((h+1-u|0)>0){z=h;A=u;B=0;C=0}else{D=y;break a}while(1){u=(c[g>>2]|0)+C|0;if(a[u>>0]|0)if(!(a[(c[(c[m>>2]|0)+((n-(c[l>>2]|0)|0)*12|0)>>2]|0)+C>>0]|0)){a[u>>0]=0;E=c[r>>2]|0;F=c[b>>2]|0;G=B}else{E=z;F=A;G=1}else{E=z;F=A;G=B}C=C+1|0;if((C|0)>=(E+1-F|0))break;else{z=E;A=F;B=G}}if(!G){D=y;break a}u=E+1-F|0;if((u|0)>1){h=E;j=F;w=1;while(1){s=c[g>>2]|0;if(((a[s+(w+ -1)>>0]|0)!=0?(x=s+w|0,(a[x>>0]|0)==0):0)?(a[(c[(c[m>>2]|0)+((n-(c[l>>2]|0)|0)*12|0)>>2]|0)+w>>0]|0)!=0:0){a[x>>0]=1;H=c[r>>2]|0;I=c[b>>2]|0}else{H=h;I=j}w=w+1|0;x=H+1-I|0;if((w|0)>=(x|0)){J=x;break}else{h=H;j=I}}}else J=u;j=J+ -2|0;b:do if((j|0)>-1){h=j;while(1){w=c[g>>2]|0;if(((a[w+(h+1)>>0]|0)!=0?(x=w+h|0,(a[x>>0]|0)==0):0)?(a[(c[(c[m>>2]|0)+((n-(c[l>>2]|0)|0)*12|0)>>2]|0)+h>>0]|0)!=0:0)a[x>>0]=1;if((h|0)<=0)break b;h=h+ -1|0}}while(0);if((n|0)<(c[k>>2]|0))y=n;else{D=n;break}}}else D=d;while(0);d=c[g>>2]|0;if(!d){o=D;i=f;return o|0}if((c[p>>2]|0)!=(d|0))c[p>>2]=d;kt(d);o=D;i=f;return o|0}function Le(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0;e=i;f=c[b+4>>2]|0;g=((c[b+12>>2]|0)+f|0)/2|0;h=b+8|0;j=b+16|0;k=0;l=0;m=f;n=0;while(1){m=m+1|0;if((m|0)>=(g|0)){o=0;p=18;break}q=c[b>>2]|0;r=c[h>>2]|0;if((q|0)>(r|0)){s=0;t=-1;u=k;v=-2;w=l}else{x=c[(c[j>>2]|0)+((m-f|0)*12|0)>>2]|0;y=0;z=q;A=-1;B=k;C=0;D=-2;E=l;while(1){F=C;C=(a[x+(z-q)>>0]|0)!=0;if(C){if(F){G=y;H=E}else{I=y+1|0;G=I;H=(I|0)==2?z:E}J=G;K=(A|0)<0?z:A;L=B;M=z;N=H}else{J=y;K=A;L=F&(y|0)==1?z+ -1|0:B;M=D;N=E}if((z|0)>=(r|0)){s=J;t=K;u=L;v=M;w=N;break}else{y=J;z=z+1|0;A=K;B=L;D=M;E=N}}}E=v-t|0;D=E+1|0;if((D*10|0)<=(n*9|0)){o=0;p=18;break}if((s|0)>1){p=13;break}else{k=u;l=w;n=(E|0)<(n|0)?n:D}}if((p|0)==13){if((s|0)!=2){o=0;i=e;return o|0}if(Ge(b,m,u+1|0)|0){o=0;i=e;return o|0}s=Ke(b,m,u)|0;u=Ke(b,m,w)|0;if(!((s|0)>(m|0)&(u|0)>(m|0))){o=0;i=e;return o|0}if(!d){o=1;i=e;return o|0}c[d>>2]=s-u;o=1;i=e;return o|0}else if((p|0)==18){i=e;return o|0}return 0}function Me(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;e=i;f=c[b+12>>2]|0;g=c[b+4>>2]|0;a:do if((f|0)>((((f-g|0)*80|0)/100|0)+g|0)){h=c[b>>2]|0;j=c[b+8>>2]|0;k=(h|0)>(j|0);l=b+16|0;m=f;n=0;while(1){b:do if(k)o=h;else{p=c[(c[l>>2]|0)+((m-g|0)*12|0)>>2]|0;q=h;while(1){r=q+1|0;if(a[p+(q-h)>>0]|0){o=q;break b}if((q|0)<(j|0))q=r;else{o=r;break}}}while(0);c:do if((j|0)>(o|0)){q=c[(c[l>>2]|0)+((m-g|0)*12|0)>>2]|0;p=j;while(1){r=p+ -1|0;if(a[q+(p-h)>>0]|0){s=p;break c}if((r|0)>(o|0))p=r;else{s=r;break}}}else s=j;while(0);p=s-o|0;q=p+1|0;r=(p|0)<(n|0)?n:q;if((q<<2|0)>=(j+1-h|0)){q=o;do{q=q+1|0;if((q|0)>=(s|0)){t=m;u=r;break a}}while((a[(c[(c[l>>2]|0)+((m-g|0)*12|0)>>2]|0)+(q-h)>>0]|0)!=0)}q=m+ -1|0;if((q|0)>((((f-g|0)*80|0)/100|0)+g|0)){m=q;n=r}else{t=q;u=r;break}}}else{t=f;u=0}while(0);if((t|0)<=((((f-g|0)*80|0)/100|0)+g|0)){v=0;i=e;return v|0}s=t+ -1|0;t=(f+g|0)/2|0;if((s|0)<=(t|0)){v=0;i=e;return v|0}f=c[b>>2]|0;o=c[b+8>>2]|0;n=(f|0)>(o|0);m=b+16|0;h=s;s=0;l=0;j=u;while(1){if(!n){u=c[(c[m>>2]|0)+((h-g|0)*12|0)>>2]|0;k=0;q=f;p=-1;w=s;x=0;y=-2;z=l;while(1){A=x;x=(a[u+(q-f)>>0]|0)!=0;if(x){if(A){B=k;C=z}else{D=k+1|0;B=D;C=(D|0)==2?q:z}E=B;F=(p|0)<0?q:p;G=w;H=q;I=C}else{E=k;F=p;G=A&(k|0)==1?q+ -1|0:w;H=y;I=z}if((q|0)>=(o|0))break;else{k=E;q=q+1|0;p=F;w=G;y=H;z=I}}z=H-F|0;if((E|0)>2){v=0;J=34;break}else{K=z+1|0;L=z;M=E;N=G;O=I}}else{K=0;L=-1;M=0;N=s;O=l}if((K*10|0)<=(j<<3|0)){v=0;J=34;break}j=(L|0)<(j|0)?j:K;if((M|0)==2?(O-N|0)>1:0){J=31;break}z=h+ -1|0;if((z|0)<=(t|0)){v=0;J=34;break}else{h=z;s=N;l=O}}if((J|0)==31){if(Ie(b,h,N+1|0)|0){v=0;i=e;return v|0}if(!d){v=1;i=e;return v|0}l=Je(b,h,N)|0;c[d>>2]=l-(Je(b,h,O)|0);v=1;i=e;return v|0}else if((J|0)==34){i=e;return v|0}return 0}function Ne(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;g=i;h=b+4|0;b=c[h>>2]|0;j=d+(((b-f|0)/12|0)*12|0)|0;a:do if(j>>>0>>0){k=b;l=j;while(1){if((k|0)!=0?(c[k>>2]=0,m=k+4|0,c[m>>2]=0,n=k+8|0,c[n>>2]=0,o=l+4|0,p=c[o>>2]|0,q=c[l>>2]|0,r=p-q|0,(p|0)!=(q|0)):0){if((r|0)<0)break;q=it(r)|0;c[m>>2]=q;c[k>>2]=q;c[n>>2]=q+r;r=c[l>>2]|0;n=c[o>>2]|0;if((r|0)!=(n|0)){o=r;r=q;do{if(!r)s=0;else{a[r>>0]=a[o>>0]|0;s=c[m>>2]|0}r=s+1|0;c[m>>2]=r;o=o+1|0}while((o|0)!=(n|0))}}l=l+12|0;n=(c[h>>2]|0)+12|0;c[h>>2]=n;if(l>>>0>=e>>>0)break a;else k=n}yp(k)}while(0);if((b|0)==(f|0)){i=g;return}else{t=j;u=b}do{b=u;u=u+ -12|0;j=t;t=t+ -12|0;if((b|0)!=(j|0))nd(u,c[t>>2]|0,c[j+ -8>>2]|0)}while((t|0)!=(d|0));i=g;return}function Oe(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=i;g=d+4|0;h=c[g>>2]|0;j=c[b>>2]|0;a:do if((j|0)==(e|0))k=h;else{l=e;m=h;while(1){n=m+ -12|0;c[n>>2]=0;o=m+ -8|0;c[o>>2]=0;p=m+ -4|0;c[p>>2]=0;q=l+ -8|0;l=l+ -12|0;r=c[q>>2]|0;s=c[l>>2]|0;t=r-s|0;if((r|0)!=(s|0)){if((t|0)<0)break;s=it(t)|0;c[o>>2]=s;c[n>>2]=s;c[p>>2]=s+t;t=c[l>>2]|0;p=c[q>>2]|0;if((t|0)!=(p|0)){q=t;t=s;do{if(!t)u=0;else{a[t>>0]=a[q>>0]|0;u=c[o>>2]|0}t=u+1|0;c[o>>2]=t;q=q+1|0}while((q|0)!=(p|0))}}p=(c[g>>2]|0)+ -12|0;c[g>>2]=p;if((l|0)==(j|0)){k=p;break a}else m=p}yp(n)}while(0);n=b+4|0;j=c[n>>2]|0;u=d+8|0;if((j|0)==(e|0)){v=k;w=c[b>>2]|0;c[b>>2]=v;c[g>>2]=w;x=c[n>>2]|0;y=c[u>>2]|0;c[n>>2]=y;c[u>>2]=x;z=b+8|0;A=d+12|0;B=c[z>>2]|0;C=c[A>>2]|0;c[z>>2]=C;c[A>>2]=B;D=c[g>>2]|0;c[d>>2]=D;i=f;return h|0}k=e;e=c[u>>2]|0;while(1){if((e|0)!=0?(c[e>>2]=0,m=e+4|0,c[m>>2]=0,l=e+8|0,c[l>>2]=0,p=k+4|0,q=c[p>>2]|0,t=c[k>>2]|0,o=q-t|0,(q|0)!=(t|0)):0){if((o|0)<0){E=15;break}t=it(o)|0;c[m>>2]=t;c[e>>2]=t;c[l>>2]=t+o;o=c[k>>2]|0;l=c[p>>2]|0;if((o|0)!=(l|0)){p=o;o=t;do{if(!o)F=0;else{a[o>>0]=a[p>>0]|0;F=c[m>>2]|0}o=F+1|0;c[m>>2]=o;p=p+1|0}while((p|0)!=(l|0))}}k=k+12|0;l=(c[u>>2]|0)+12|0;c[u>>2]=l;if((k|0)==(j|0))break;else e=l}if((E|0)==15)yp(e);v=c[g>>2]|0;w=c[b>>2]|0;c[b>>2]=v;c[g>>2]=w;x=c[n>>2]|0;y=c[u>>2]|0;c[n>>2]=y;c[u>>2]=x;z=b+8|0;A=d+12|0;B=c[z>>2]|0;C=c[A>>2]|0;c[z>>2]=C;c[A>>2]=B;D=c[g>>2]|0;c[d>>2]=D;i=f;return h|0}function Pe(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;d=i;c[a+0>>2]=c[b+0>>2];c[a+4>>2]=c[b+4>>2];c[a+8>>2]=c[b+8>>2];c[a+12>>2]=c[b+12>>2];ce(a+16|0,b+16|0);e=a+28|0;c[e>>2]=0;f=a+32|0;c[f>>2]=0;g=a+36|0;c[g>>2]=0;a=b+32|0;h=b+28|0;b=(c[a>>2]|0)-(c[h>>2]|0)|0;j=b>>2;if(!j){i=d;return}if(j>>>0>1073741823)yp(e);k=it(b)|0;c[f>>2]=k;c[e>>2]=k;c[g>>2]=k+(j<<2);j=c[h>>2]|0;g=c[a>>2]|0;if((j|0)==(g|0)){i=d;return}else{l=j;m=k}do{if(!m)n=0;else{c[m>>2]=c[l>>2];n=c[f>>2]|0}m=n+4|0;c[f>>2]=m;l=l+4|0}while((l|0)!=(g|0));if((m|0)==(c[e>>2]|0)){i=d;return}else o=0;do{m=it(28)|0;g=c[(c[h>>2]|0)+(o<<2)>>2]|0;c[m+0>>2]=c[g+0>>2];c[m+4>>2]=c[g+4>>2];c[m+8>>2]=c[g+8>>2];c[m+12>>2]=c[g+12>>2];ce(m+16|0,g+16|0);c[(c[e>>2]|0)+(o<<2)>>2]=m;o=o+1|0}while(o>>>0<(c[f>>2]|0)-(c[e>>2]|0)>>2>>>0);i=d;return}function Qe(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;b=i;d=a+32|0;e=c[d>>2]|0;f=a+28|0;g=c[f>>2]|0;if((e|0)==(g|0)){h=e;j=e;k=g}else{l=e;e=g;g=0;while(1){m=c[e+(g<<2)>>2]|0;if(!m){n=l;o=e}else{p=m+16|0;q=c[p>>2]|0;if(q){r=m+20|0;s=c[r>>2]|0;if((s|0)==(q|0))t=q;else{u=s;while(1){s=u+ -12|0;c[r>>2]=s;v=c[s>>2]|0;if(!v)w=s;else{s=u+ -8|0;if((c[s>>2]|0)!=(v|0))c[s>>2]=v;kt(v);w=c[r>>2]|0}if((w|0)==(q|0))break;else u=w}t=c[p>>2]|0}kt(t)}kt(m);n=c[d>>2]|0;o=c[f>>2]|0}g=g+1|0;u=o;if(g>>>0>=n-u>>2>>>0){h=n;j=o;k=u;break}else{l=n;e=o}}}if(j){if((h|0)!=(j|0))c[d>>2]=h+(~((h+ -4+(0-k)|0)>>>2)<<2);kt(j)}j=a+16|0;k=c[j>>2]|0;if(!k){i=b;return}h=a+20|0;a=c[h>>2]|0;if((a|0)==(k|0))x=k;else{d=a;while(1){a=d+ -12|0;c[h>>2]=a;o=c[a>>2]|0;if(!o)y=a;else{a=d+ -8|0;if((c[a>>2]|0)!=(o|0))c[a>>2]=o;kt(o);y=c[h>>2]|0}if((y|0)==(k|0))break;else d=y}x=c[j>>2]|0}kt(x);i=b;return}function Re(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[a>>2]|0;if((e|0)==(b|0)){i=d;return}ne(a,b);if((b-e|0)<=0){i=d;return}Se(a,a+28|0);i=d;return}function Se(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;e=b+4|0;f=c[b>>2]|0;g=(c[e>>2]|0)-f>>2;if(!g){i=d;return}else{h=f;j=g}while(1){g=j+ -1|0;f=c[h+(g<<2)>>2]|0;if(!(Gd(a,f)|0)){if(f){k=f+16|0;l=c[k>>2]|0;if(l){m=f+20|0;n=c[m>>2]|0;if((n|0)==(l|0))o=l;else{p=n;while(1){n=p+ -12|0;c[m>>2]=n;q=c[n>>2]|0;if(!q)r=n;else{n=p+ -8|0;if((c[n>>2]|0)!=(q|0))c[n>>2]=q;kt(q);r=c[m>>2]|0}if((r|0)==(l|0))break;else p=r}o=c[k>>2]|0}kt(o)}kt(f)}p=c[b>>2]|0;l=g<<2>>2;m=p+(l+1<<2)|0;q=(c[e>>2]|0)-m|0;Uu(p+(l<<2)|0,m|0,q|0)|0;m=p+((q>>2)+l<<2)|0;l=c[e>>2]|0;if((l|0)!=(m|0))c[e>>2]=l+(~((l+ -4+(0-m)|0)>>>2)<<2)}if(!g)break;h=c[b>>2]|0;j=g}i=d;return}function Te(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[a+4>>2]|0;if((e|0)==(b|0)){i=d;return}pe(a,b);if((b-e|0)<=0){i=d;return}Se(a,a+28|0);i=d;return}function Ue(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[a+8>>2]|0;if((e|0)==(b|0)){i=d;return}re(a,b);if((b-e|0)>=0){i=d;return}Se(a,a+28|0);i=d;return}function Ve(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[a+12>>2]|0;if((e|0)==(b|0)){i=d;return}se(a,b);if((b-e|0)>=0){i=d;return}Se(a,a+28|0);i=d;return}function We(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((b|0)<0)Eh(1560);e=c[a+28>>2]|0;if(((c[a+32>>2]|0)-e>>2|0)>(b|0)){i=d;return c[e+(b<<2)>>2]|0}else Eh(1560);return 0}function Xe(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;if(!(Fd(b,d,e)|0)){g=0;i=f;return g|0}if(a[(c[(c[b+16>>2]|0)+((d-(c[b+4>>2]|0)|0)*12|0)>>2]|0)+(e-(c[b>>2]|0))>>0]|0){g=1;i=f;return g|0}h=b+32|0;j=b+28|0;b=c[j>>2]|0;if(((c[h>>2]|0)-b|0)>0){k=b;l=0}else{g=0;i=f;return g|0}while(1){b=Fd(c[k+(l<<2)>>2]|0,d,e)|0;k=c[j>>2]|0;if(b?(b=c[k+(l<<2)>>2]|0,(a[(c[(c[b+16>>2]|0)+((d-(c[b+4>>2]|0)|0)*12|0)>>2]|0)+(e-(c[b>>2]|0))>>0]|0)!=0):0)break;b=l+1|0;if((b|0)>=((c[h>>2]|0)-k>>2|0)){g=0;m=8;break}else l=b}if((m|0)==8){i=f;return g|0}g=~l;i=f;return g|0}function Ye(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;b=i;d=a+12|0;e=c[d>>2]|0;f=a+4|0;g=e+1-(c[f>>2]|0)|0;h=a+8|0;j=c[a>>2]|0;k=(c[h>>2]|0)+1-j|0;l=(k|0)<(g|0)?k:g;g=(l|0)/2|0;k=(l|0)>1;a:do if(k){l=e;m=j;n=0;while(1){if(Xe(a,l-n|0,m+n|0)|0){o=n;break}p=n+1|0;if(Xe(a,(c[d>>2]|0)-n|0,p+(c[a>>2]|0)|0)|0){o=n;break}if((p|0)>=(g|0)){o=g;break}l=c[d>>2]|0;m=c[a>>2]|0;n=p}if(k){n=0;while(1){if(Xe(a,(c[f>>2]|0)+n|0,(c[h>>2]|0)-n|0)|0){q=o;r=n;break a}n=n+1|0;if((n|0)>=(g|0)){q=o;r=g;break}}}else{q=o;r=g}}else{q=g;r=g}while(0);if((r|0)<=1){s=0;i=b;return s|0}s=(q*3|0)<=(r|0);i=b;return s|0}function Ze(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;b=i;d=a+12|0;e=a+4|0;f=(c[d>>2]|0)+1-(c[e>>2]|0)|0;g=a+8|0;h=c[a>>2]|0;j=(c[g>>2]|0)+1-h|0;k=(j|0)<(f|0)?j:f;f=(k|0)/2|0;a:do if((j|0)>3){if((k|0)>1){l=h;m=0;n=f;o=0;p=f;q=0}else{r=0;while(1){r=r+1|0;if((r|0)>=((j|0)/4|0|0)){s=f;t=0;u=f;v=0;break a}}}while(1){r=l;w=0;x=n;y=0;z=p;A=0;while(1){B=w+m|0;if((Xe(a,(c[e>>2]|0)+w|0,B+r|0)|0)==1){C=(x|0)>(w|0)?w:x;D=y+1|0}else{C=x;D=y}if((Xe(a,(c[d>>2]|0)-w|0,(c[g>>2]|0)-B|0)|0)==1){E=(z|0)>(w|0)?w:z;F=A+1|0}else{E=z;F=A}B=w+1|0;if((B|0)>=(f|0))break;r=c[a>>2]|0;w=B;x=C;y=D;z=E;A=F}l=c[a>>2]|0;A=(o|0)<(D|0)?D:o;z=(q|0)<(F|0)?F:q;m=m+1|0;if((m|0)>=(((c[g>>2]|0)+1-l|0)/4|0|0)){s=C;t=A;u=E;v=z;break}else{n=C;o=A;p=E;q=z}}}else{s=f;t=0;u=f;v=0}while(0);if(!((s|0)>(u|0)|(u|0)==0)){G=0;i=b;return G|0}u=t<<1;if((u|0)<(v|0)){G=1;i=b;return G|0}else{i=b;return(u|0)==(v|0)&(v|0)>3|0}return 0}function _e(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;e=i;f=b+4|0;g=c[f>>2]|0;h=b+12|0;if((g|0)>(c[h>>2]|0)){Eb(10,d|0)|0;i=e;return}j=b+8|0;k=b+16|0;l=g;while(1){g=c[b>>2]|0;a:do if((g|0)<=(c[j>>2]|0)){m=g;n=g;while(1){if(!(a[(c[(c[k>>2]|0)+((l-(c[f>>2]|0)|0)*12|0)>>2]|0)+(n-m)>>0]|0))Mb(1600,2,1,d|0)|0;else Mb(1592,2,1,d|0)|0;if((n|0)>=(c[j>>2]|0))break a;m=c[b>>2]|0;n=n+1|0}}while(0);Eb(10,d|0)|0;if((l|0)<(c[h>>2]|0))l=l+1|0;else break}Eb(10,d|0)|0;i=e;return}function $e(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;d=i;if((b|0)<0)Eh(1608);e=c[a+28>>2]|0;if(((c[a+32>>2]|0)-e>>2|0)<=(b|0))Eh(1608);f=a+28|0;te(a,c[e+(b<<2)>>2]|0);e=c[f>>2]|0;g=c[e+(b<<2)>>2]|0;if(!g)h=e;else{e=g+16|0;j=c[e>>2]|0;if(j){k=g+20|0;l=c[k>>2]|0;if((l|0)==(j|0))m=j;else{n=l;while(1){l=n+ -12|0;c[k>>2]=l;o=c[l>>2]|0;if(!o)p=l;else{l=n+ -8|0;if((c[l>>2]|0)!=(o|0))c[l>>2]=o;kt(o);p=c[k>>2]|0}if((p|0)==(j|0))break;else n=p}m=c[e>>2]|0}kt(m)}kt(g);h=c[f>>2]|0}f=b<<2>>2;b=h+(f+1<<2)|0;g=a+32|0;a=(c[g>>2]|0)-b|0;Uu(h+(f<<2)|0,b|0,a|0)|0;b=h+((a>>2)+f<<2)|0;f=c[g>>2]|0;if((f|0)==(b|0)){i=d;return}c[g>>2]=f+(~((f+ -4+(0-b)|0)>>>2)<<2);i=d;return}function af(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;d=i;i=i+32|0;e=d+16|0;f=d+4|0;g=d;h=b+28|0;j=b+32|0;k=c[j>>2]|0;l=c[h>>2]|0;if((k|0)!=(l|0)){m=k;k=l;l=0;while(1){n=c[k+(l<<2)>>2]|0;if(!n){o=m;p=k}else{q=n+16|0;r=c[q>>2]|0;if(r){s=n+20|0;t=c[s>>2]|0;if((t|0)==(r|0))u=r;else{v=t;while(1){t=v+ -12|0;c[s>>2]=t;w=c[t>>2]|0;if(!w)x=t;else{t=v+ -8|0;if((c[t>>2]|0)!=(w|0))c[t>>2]=w;kt(w);x=c[s>>2]|0}if((x|0)==(r|0))break;else v=x}u=c[q>>2]|0}kt(u)}kt(n);o=c[j>>2]|0;p=c[h>>2]|0}l=l+1|0;y=p;if(l>>>0>=o-y>>2>>>0)break;else{m=o;k=p}}if((o|0)!=(p|0))c[j>>2]=o+(~((o+ -4+(0-y)|0)>>>2)<<2)}y=b+12|0;o=b+4|0;if(((c[y>>2]|0)+1-(c[o>>2]|0)|0)<3){i=d;return}p=b+8|0;k=(c[p>>2]|0)+1-(c[b>>2]|0)|0;if((k|0)<3){i=d;return}c[e>>2]=0;m=e+4|0;c[m>>2]=0;l=e+8|0;c[l>>2]=0;if(k>>>0>1073741823)yp(e);u=it(k<<2)|0;c[m>>2]=u;c[e>>2]=u;c[l>>2]=u+(k<<2);x=k;k=u;do{if(!k)z=0;else{c[k>>2]=0;z=c[m>>2]|0}k=z+4|0;c[m>>2]=k;x=x+ -1|0}while((x|0)!=0);x=c[b>>2]|0;k=(c[p>>2]|0)+1|0;z=k-x|0;c[f>>2]=0;u=f+4|0;c[u>>2]=0;v=f+8|0;c[v>>2]=0;if((k|0)==(x|0))A=0;else{if(z>>>0>1073741823)yp(f);x=it(z<<2)|0;c[u>>2]=x;c[f>>2]=x;c[v>>2]=x+(z<<2);k=z;z=x;while(1){if(!z)B=0;else{c[z>>2]=0;B=c[u>>2]|0}x=B+4|0;c[u>>2]=x;k=k+ -1|0;if(!k){A=x;break}else z=x}}z=c[o>>2]|0;a:do if((z|0)<=(c[y>>2]|0)){k=b+16|0;B=b+36|0;x=A;r=z;s=z;b:while(1){w=c[e>>2]|0;c[e>>2]=c[f>>2];c[f>>2]=w;t=c[m>>2]|0;c[m>>2]=x;c[u>>2]=t;t=c[l>>2]|0;c[l>>2]=c[v>>2];c[v>>2]=t;c[w>>2]=(a[c[(c[k>>2]|0)+((s-r|0)*12|0)>>2]>>0]|0)!=0?b:0;w=c[b>>2]|0;t=w+1|0;C=c[p>>2]|0;if((t|0)<(C|0)){D=w;E=r;F=t;while(1){t=F-D|0;if(!(a[(c[(c[k>>2]|0)+((s-E|0)*12|0)>>2]|0)+t>>0]|0)){G=c[(c[f>>2]|0)+(t+ -1<<2)>>2]|0;H=c[e>>2]|0;I=c[H+(t<<2)>>2]|0;J=(G|0)==0;K=(I|0)==0;do if(J|K){c[g>>2]=0;if(!(J|(G|0)==(b|0))){bf(h,H,c[m>>2]|0,f,G,t);L=0;break}if(K|(I|0)==(b|0))L=0;else{bf(h,H,c[m>>2]|0,f,I,t);L=0}}else{if((G|0)!=(b|0)){c[g>>2]=G;ve(G,s,F);L=G;break}if((I|0)!=(b|0)){c[g>>2]=I;ve(I,s,F);L=I;break}M=it(28)|0;le(M,F,s,F,s);c[g>>2]=M;a[(c[(c[M+16>>2]|0)+((s-(c[M+4>>2]|0)|0)*12|0)>>2]|0)+(F-(c[M>>2]|0))>>0]=1;N=c[j>>2]|0;if((N|0)==(c[B>>2]|0)){cf(h,g);L=c[g>>2]|0;break}if(!N)O=0;else{c[N>>2]=M;O=c[j>>2]|0}c[j>>2]=O+4;L=M}while(0);c[(c[f>>2]|0)+(t<<2)>>2]=L;if(!((L|0)==0|(G|0)==(I|0)|(G|0)==(b|0)|(I|0)==(b|0))){H=c[m>>2]|0;K=c[f>>2]|0;if((c[G+4>>2]|0)>(c[I+4>>2]|0)){J=t+1|0;M=K+(J<<2)|0;if(!J){P=G;Q=I}else{J=K;do{if((c[J>>2]|0)==(G|0))c[J>>2]=I;J=J+4|0}while((J|0)!=(M|0));P=G;Q=I}}else{M=(c[e>>2]|0)+(t<<2)|0;if((M|0)==(H|0)){P=I;Q=G}else{J=M;do{if((c[J>>2]|0)==(I|0))c[J>>2]=G;J=J+4|0}while((J|0)!=(H|0));P=I;Q=G}}G=c[j>>2]|0;I=c[h>>2]|0;H=G-I>>2;while(1){R=H+ -1|0;if((H|0)<=0){S=66;break b}if((c[I+(R<<2)>>2]|0)==(P|0))break;else H=R}if((H|0)<1){S=66;break b}J=R<<2>>2;M=I+(J+1<<2)|0;K=G-M|0;Uu(I+(J<<2)|0,M|0,K|0)|0;M=I+((K>>2)+J<<2)|0;J=c[j>>2]|0;if((J|0)!=(M|0))c[j>>2]=J+(~((J+ -4+(0-M)|0)>>>2)<<2);te(Q,P);if(P){M=P+16|0;J=c[M>>2]|0;if(J){K=P+20|0;N=c[K>>2]|0;if((N|0)==(J|0))T=J;else{U=N;while(1){N=U+ -12|0;c[K>>2]=N;V=c[N>>2]|0;if(!V)W=N;else{N=U+ -8|0;if((c[N>>2]|0)!=(V|0))c[N>>2]=V;kt(V);W=c[K>>2]|0}if((W|0)==(J|0))break;else U=W}T=c[M>>2]|0}kt(T)}kt(P)}}}else c[(c[f>>2]|0)+(t<<2)>>2]=b;U=F+1|0;X=c[p>>2]|0;if((U|0)>=(X|0))break;D=c[b>>2]|0;E=c[o>>2]|0;F=U}Y=X;Z=c[o>>2]|0;_=c[b>>2]|0}else{Y=C;Z=r;_=w}if((a[(c[(c[k>>2]|0)+((s-Z|0)*12|0)>>2]|0)+(Y-_)>>0]|0)==0?(F=Y+1-_|0,E=c[(c[f>>2]|0)+(F+ -2<<2)>>2]|0,!((E|0)==0|(E|0)==(b|0))):0)bf(h,c[e>>2]|0,c[m>>2]|0,f,E,F+ -1|0);if((s|0)>=(c[y>>2]|0))break a;x=c[u>>2]|0;r=c[o>>2]|0;s=s+1|0}if((S|0)==66)Eh(1640)}while(0);o=c[h>>2]|0;y=(c[j>>2]|0)-o>>2;c:do if(y){_=o;Y=y;while(1){Z=Y+ -1|0;X=c[_+(Z<<2)>>2]|0;if(Gd(b,X)|0){p=(c[X+12>>2]|0)+1-(c[X+4>>2]|0)|0;if((p|0)<=4?(P=(c[X+8>>2]|0)+1-(c[X>>2]|0)|0,(P|0)<=4):0)if(!((p|0)>2|(P|0)>2?(ye(X)|0)>3:0))S=94}else S=94;if((S|0)==94){S=0;if(X){P=X+16|0;p=c[P>>2]|0;if(p){T=X+20|0;W=c[T>>2]|0;if((W|0)==(p|0))$=p;else{Q=W;while(1){W=Q+ -12|0;c[T>>2]=W;R=c[W>>2]|0;if(!R)aa=W;else{W=Q+ -8|0;if((c[W>>2]|0)!=(R|0))c[W>>2]=R;kt(R);aa=c[T>>2]|0}if((aa|0)==(p|0))break;else Q=aa}$=c[P>>2]|0}kt($)}kt(X)}Q=c[h>>2]|0;p=Z<<2>>2;T=Q+(p+1<<2)|0;w=(c[j>>2]|0)-T|0;Uu(Q+(p<<2)|0,T|0,w|0)|0;T=Q+((w>>2)+p<<2)|0;p=c[j>>2]|0;if((p|0)!=(T|0))c[j>>2]=p+(~((p+ -4+(0-T)|0)>>>2)<<2)}if(!Z)break c;_=c[h>>2]|0;Y=Z}}while(0);h=c[f>>2]|0;if(h){f=c[u>>2]|0;if((f|0)!=(h|0))c[u>>2]=f+(~((f+ -4+(0-h)|0)>>>2)<<2);kt(h)}h=c[e>>2]|0;if(!h){i=d;return}e=c[m>>2]|0;if((e|0)!=(h|0))c[m>>2]=e+(~((e+ -4+(0-h)|0)>>>2)<<2);kt(h);i=d;return}function bf(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;j=b+(g<<2)|0;if((j|0)!=(d|0)){b=j;do{if((c[b>>2]|0)==(f|0))c[b>>2]=0;b=b+4|0}while((b|0)!=(d|0))}d=c[e>>2]|0;e=d+(g<<2)|0;if(g){g=d;do{if((c[g>>2]|0)==(f|0))c[g>>2]=0;g=g+4|0}while((g|0)!=(e|0))}e=a+4|0;g=c[e>>2]|0;d=c[a>>2]|0;a=g-d>>2;while(1){k=a+ -1|0;if((a|0)<=0){l=13;break}if((c[d+(k<<2)>>2]|0)==(f|0))break;else a=k}if((l|0)==13)Eh(1664);if((a|0)<1)Eh(1664);a=k<<2>>2;k=d+(a+1<<2)|0;l=g-k|0;Uu(d+(a<<2)|0,k|0,l|0)|0;k=d+((l>>2)+a<<2)|0;a=c[e>>2]|0;if((a|0)!=(k|0))c[e>>2]=a+(~((a+ -4+(0-k)|0)>>>2)<<2);if(!f){i=h;return}k=f+16|0;a=c[k>>2]|0;if(a){e=f+20|0;l=c[e>>2]|0;if((l|0)==(a|0))m=a;else{d=l;while(1){l=d+ -12|0;c[e>>2]=l;g=c[l>>2]|0;if(!g)n=l;else{l=d+ -8|0;if((c[l>>2]|0)!=(g|0))c[l>>2]=g;kt(g);n=c[e>>2]|0}if((n|0)==(a|0))break;else d=n}m=c[k>>2]|0}kt(m)}kt(f);i=h;return}function cf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=a+4|0;f=c[a>>2]|0;g=((c[e>>2]|0)-f>>2)+1|0;if(g>>>0>1073741823)yp(a);h=a+8|0;j=f;k=(c[h>>2]|0)-j|0;if(k>>2>>>0<536870911){l=k>>1;k=l>>>0>>0?g:l;l=(c[e>>2]|0)-j|0;g=l>>2;if(!k){m=0;n=0;o=g;p=l}else{q=k;r=g;s=l;t=6}}else{l=(c[e>>2]|0)-j|0;q=1073741823;r=l>>2;s=l;t=6}if((t|0)==6){m=q;n=it(q<<2)|0;o=r;p=s}s=n+(o<<2)|0;if(s)c[s>>2]=c[b>>2];Tu(n|0,f|0,p|0)|0;c[a>>2]=n;c[e>>2]=n+(o+1<<2);c[h>>2]=n+(m<<2);if(!f){i=d;return}kt(f);i=d;return}function df(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0;f=i;i=i+80|0;g=f+60|0;h=f+24|0;j=f;k=f+44|0;l=f+48|0;m=f+64|0;n=f+12|0;o=f+32|0;p=f+28|0;q=f+8|0;r=f+4|0;c[a+0>>2]=c[d+0>>2];c[a+4>>2]=c[d+4>>2];c[a+8>>2]=c[d+8>>2];c[a+12>>2]=c[d+12>>2];d=a+16|0;c[d>>2]=0;s=a+20|0;c[s>>2]=0;t=a+24|0;c[t>>2]=0;c[l>>2]=0;u=l+4|0;c[u>>2]=0;v=l+8|0;c[v>>2]=0;c[m>>2]=0;w=m+4|0;c[w>>2]=0;x=m+8|0;c[x>>2]=0;c[n>>2]=0;y=n+4|0;c[y>>2]=0;z=n+8|0;c[z>>2]=0;A=e+4|0;B=c[A>>2]|0;C=c[e>>2]|0;do if((B|0)!=(C|0)){D=o+4|0;E=o+8|0;F=B;G=C;H=0;while(1){I=H+1|0;J=F-G>>2;a:do if(I>>>0>>0){K=I;L=c[(c[G+(H<<2)>>2]|0)+12>>2]|0;while(1){M=c[G+(K<<2)>>2]|0;if((c[M+4>>2]|0)>(L|0)){N=K;break a}O=c[M+12>>2]|0;M=K+1|0;if(M>>>0>>0){K=M;L=(L|0)<(O|0)?O:L}else{N=M;break}}}else N=I;while(0);c[o>>2]=0;c[D>>2]=0;c[E>>2]=0;I=H>>>0>>0;if(I){J=G;L=0;K=H;M=0;while(1){O=c[J+(K<<2)>>2]|0;P=(c[O+12>>2]|0)+1-(c[O+4>>2]|0)|0;if((P|0)>=10?(Q=(c[O+8>>2]|0)+1-(c[O>>2]|0)|0,!((P|0)>=(Q*5|0)|(Q|0)>=(P*3|0))):0){Q=c[D>>2]|0;O=Q-L>>2;do if(P>>>0>=O>>>0){R=P+1|0;if(O>>>0>>0){je(o,R-O|0);S=c[o>>2]|0;break}if(O>>>0>R>>>0?(T=L+(R<<2)|0,(Q|0)!=(T|0)):0){c[D>>2]=Q+(~((Q+ -4+(0-T)|0)>>>2)<<2);S=L}else S=L}else S=L;while(0);Q=S+(P<<2)|0;c[Q>>2]=(c[Q>>2]|0)+1;U=S;V=M+1|0}else{U=L;V=M}Q=K+1|0;if(Q>>>0>=N>>>0)break;J=c[e>>2]|0;L=U;K=Q;M=V}M=c[D>>2]|0;if((U|0)==(M|0))if(I){K=M;L=M;J=H;Q=V;while(1){O=c[(c[e>>2]|0)+(J<<2)>>2]|0;T=(c[O+12>>2]|0)+1-(c[O+4>>2]|0)|0;O=L-K>>2;do if(T>>>0>=O>>>0){R=T+1|0;if(O>>>0>>0){je(o,R-O|0);W=c[o>>2]|0;break}if(O>>>0>R>>>0?(X=K+(R<<2)|0,(L|0)!=(X|0)):0){c[D>>2]=L+(~((L+ -4+(0-X)|0)>>>2)<<2);W=K}else W=K}else W=K;while(0);O=W+(T<<2)|0;c[O>>2]=(c[O>>2]|0)+1;O=Q+1|0;J=J+1|0;P=c[D>>2]|0;if(J>>>0>=N>>>0){Y=P;Z=W;_=O;$=28;break}else{K=W;L=P;Q=O}}}else aa=M;else{Y=M;Z=U;_=V;$=28}if(($|0)==28){$=0;if((Y|0)!=(Z|0)){Q=Y-Z>>2;L=_*9|0;K=0;J=0;O=0;P=0;while(1){X=c[Z+(J<<2)>>2]|0;R=K;K=X+K|0;if((K*10|0)>>>0>=_>>>0&(R*10|0)>>>0>>0){ba=(da(X,J)|0)+O|0;ca=X+P|0}else{ba=O;ca=P}J=J+1|0;if(J>>>0>=Q>>>0)break;else{O=ba;P=ca}}if(!ca)ea=ba;else ea=(ba|0)/(ca|0)|0}else ea=0;if(I){P=ea<<1;O=H;do{Q=c[(c[e>>2]|0)+(O<<2)>>2]|0;c[p>>2]=Q;J=(c[Q+12>>2]|0)+1-(c[Q+4>>2]|0)|0;if((J|0)>=10?(L=(c[Q+8>>2]|0)+1-(c[Q>>2]|0)|0,(J|0)<(L*5|0)):0)fa=(L|0)>=(J*3|0);else fa=1;do if(!((J|0)>=(P|0)|fa&(J|0)>(ea|0)))if((J<<1|0)<=(ea|0)|(J|0)<6|fa&(J|0)<(ea|0)){L=c[y>>2]|0;if((L|0)==(c[z>>2]|0)){ke(n,p);break}if(!L)ga=0;else{c[L>>2]=Q;ga=c[y>>2]|0}c[y>>2]=ga+4;break}else{L=c[u>>2]|0;if((L|0)==(c[v>>2]|0)){ke(l,p);break}if(!L)ha=0;else{c[L>>2]=Q;ha=c[u>>2]|0}c[u>>2]=ha+4;break}else{L=c[w>>2]|0;if((L|0)==(c[x>>2]|0)){ke(m,p);break}if(!L)ia=0;else{c[L>>2]=Q;ia=c[w>>2]|0}c[w>>2]=ia+4}while(0);O=O+1|0}while(O>>>0>>0);aa=c[o>>2]|0}else aa=Z}if(aa){O=c[D>>2]|0;if((O|0)!=(aa|0))c[D>>2]=O+(~((O+ -4+(0-aa)|0)>>>2)<<2);kt(aa)}}F=c[A>>2]|0;G=c[e>>2]|0;ja=G;if(N>>>0>=F-ja>>2>>>0)break;else H=N}H=(F|0)==(G|0);if((c[l>>2]|0)==(c[u>>2]|0)){if(H)break;else{ka=F;la=G;ma=0}while(1){D=c[la+(ma<<2)>>2]|0;if(!D){na=ka;oa=la}else{Qe(D);kt(D);na=c[A>>2]|0;oa=c[e>>2]|0}ma=ma+1|0;pa=oa;if(ma>>>0>=na-pa>>2>>>0)break;else{ka=na;la=oa}}if((na|0)==(oa|0))break;c[A>>2]=na+(~((na+ -4+(0-pa)|0)>>>2)<<2);break}if(!H)c[A>>2]=F+(~((F+ -4+(0-ja)|0)>>>2)<<2);G=it(28)|0;c[G+0>>2]=0;c[G+4>>2]=0;c[G+8>>2]=0;c[G+12>>2]=0;c[G+16>>2]=0;c[G+20>>2]=0;c[G+24>>2]=0;c[q>>2]=G;D=c[s>>2]|0;if((D|0)==(c[t>>2]|0)){nf(d,q);qa=c[s>>2]|0}else{if(!D)ra=0;else{c[D>>2]=G;ra=c[s>>2]|0}G=ra+4|0;c[s>>2]=G;qa=G}G=a+16|0;D=c[G>>2]|0;E=(qa-D>>2)+ -1|0;O=c[D+(E<<2)>>2]|0;D=it(40)|0;P=c[c[l>>2]>>2]|0;c[D+0>>2]=c[P+0>>2];c[D+4>>2]=c[P+4>>2];c[D+8>>2]=c[P+8>>2];c[D+12>>2]=c[P+12>>2];I=D+20|0;Q=it(4)|0;c[I>>2]=Q;c[D+16>>2]=Q;c[D+24>>2]=Q+4;if(!Q)sa=0;else{c[Q>>2]=P;sa=Q}c[I>>2]=sa+4;c[D+28>>2]=0;c[D+32>>2]=0;c[D+36>>2]=0;pg(O,D,0)|0;D=c[l>>2]|0;if((c[u>>2]|0)-D>>2>>>0>1){O=D;D=E;I=1;while(1){Q=c[O+(I<<2)>>2]|0;P=D+ -2|0;J=Q+12|0;T=c[d>>2]|0;L=(E|0)<(P|0)?P:E;while(1){P=c[T+(L<<2)>>2]|0;K=0;M=(c[P+20>>2]|0)-(c[P+16>>2]|0)>>2;b:while(1){if((M|0)>0)ta=M;else{ua=0;va=0;break}while(1){ta=ta+ -1|0;wa=lg(c[(c[d>>2]|0)+(L<<2)>>2]|0,ta)|0;if(!(Hd(Q,wa)|0)?!(Hd(wa,Q)|0):0)break;if((ta|0)<=0){ua=0;va=0;break b}}if(Sd(Q,wa)|0){K=wa;M=ta}else{$=89;break}}if(($|0)==89){$=0;if(wa){if(Id(wa,Q)|0){$=95;break}if(Id(Q,wa)|0){$=95;break}else{ua=1;va=wa}}else{ua=0;va=0}}M=(K|0)!=0;if(M){if(Id(K,Q)|0){$=95;break}if(Id(Q,K)|0){$=95;break}}if(ua?(c[va+4>>2]|0)>(c[J>>2]|0):0){$=102;break}if(M?(c[K+4>>2]|0)>(c[J>>2]|0):0){$=102;break}if(ua?(Od(va,Q)|0)>5:0){$=109;break}if(M?(Od(K,Q)|0)>5:0){$=109;break}M=L+1|0;xa=c[s>>2]|0;T=c[G>>2]|0;if((M|0)>=(xa-T>>2|0)){$=113;break}else L=M}if(($|0)==95){$=0;T=c[(c[d>>2]|0)+(L<<2)>>2]|0;J=it(40)|0;c[J+0>>2]=c[Q+0>>2];c[J+4>>2]=c[Q+4>>2];c[J+8>>2]=c[Q+8>>2];c[J+12>>2]=c[Q+12>>2];M=J+20|0;P=it(4)|0;c[M>>2]=P;c[J+16>>2]=P;c[J+24>>2]=P+4;if(!P)ya=0;else{c[P>>2]=Q;ya=P}c[M>>2]=ya+4;c[J+28>>2]=0;c[J+32>>2]=0;c[J+36>>2]=0;pg(T,J,0)|0;za=L}else if(($|0)==102){$=0;c[h>>2]=(c[d>>2]|0)+(L<<2);J=it(28)|0;c[J+0>>2]=0;c[J+4>>2]=0;c[J+8>>2]=0;c[J+12>>2]=0;c[J+16>>2]=0;c[J+20>>2]=0;c[J+24>>2]=0;c[j>>2]=J;c[g+0>>2]=c[h+0>>2];of(k,d,g,j);J=c[(c[d>>2]|0)+(L<<2)>>2]|0;T=it(40)|0;c[T+0>>2]=c[Q+0>>2];c[T+4>>2]=c[Q+4>>2];c[T+8>>2]=c[Q+8>>2];c[T+12>>2]=c[Q+12>>2];M=T+20|0;P=it(4)|0;c[M>>2]=P;c[T+16>>2]=P;c[T+24>>2]=P+4;if(!P)Aa=0;else{c[P>>2]=Q;Aa=P}c[M>>2]=Aa+4;c[T+28>>2]=0;c[T+32>>2]=0;c[T+36>>2]=0;pg(J,T,0)|0;za=L}else if(($|0)==109){$=0;T=c[(c[d>>2]|0)+(L<<2)>>2]|0;J=it(40)|0;c[J+0>>2]=c[Q+0>>2];c[J+4>>2]=c[Q+4>>2];c[J+8>>2]=c[Q+8>>2];c[J+12>>2]=c[Q+12>>2];M=J+20|0;P=it(4)|0;c[M>>2]=P;c[J+16>>2]=P;c[J+24>>2]=P+4;if(!P)Ba=0;else{c[P>>2]=Q;Ba=P}c[M>>2]=Ba+4;c[J+28>>2]=0;c[J+32>>2]=0;c[J+36>>2]=0;pg(T,J,0)|0;za=L}else if(($|0)==113){$=0;J=it(28)|0;c[J+0>>2]=0;c[J+4>>2]=0;c[J+8>>2]=0;c[J+12>>2]=0;c[J+16>>2]=0;c[J+20>>2]=0;c[J+24>>2]=0;c[r>>2]=J;if((xa|0)==(c[t>>2]|0)){nf(d,r);Ca=c[s>>2]|0}else{if(!xa)Da=0;else{c[xa>>2]=J;Da=c[s>>2]|0}J=Da+4|0;c[s>>2]=J;Ca=J}J=c[G>>2]|0;T=(Ca-J>>2)+ -1|0;M=c[J+(T<<2)>>2]|0;J=it(40)|0;c[J+0>>2]=c[Q+0>>2];c[J+4>>2]=c[Q+4>>2];c[J+8>>2]=c[Q+8>>2];c[J+12>>2]=c[Q+12>>2];P=J+20|0;X=it(4)|0;c[P>>2]=X;c[J+16>>2]=X;c[J+24>>2]=X+4;if(!X)Ea=0;else{c[X>>2]=Q;Ea=X}c[P>>2]=Ea+4;c[J+28>>2]=0;c[J+32>>2]=0;c[J+36>>2]=0;pg(M,J,0)|0;za=T}I=I+1|0;O=c[l>>2]|0;if(I>>>0>=(c[u>>2]|0)-O>>2>>>0)break;else D=za}}D=c[s>>2]|0;O=c[G>>2]|0;I=D-O|0;c:do if((I|0)>0){E=D;F=O;H=I>>2;while(1){T=H+ -1|0;J=c[F+(T<<2)>>2]|0;if((c[J+20>>2]|0)==(c[J+16>>2]|0)){if(!J){Fa=F;Ga=E}else{hg(J);kt(J);Fa=c[d>>2]|0;Ga=c[s>>2]|0}J=T<<2>>2;M=Fa+(J+1<<2)|0;P=Ga-M|0;Uu(Fa+(J<<2)|0,M|0,P|0)|0;M=Fa+((P>>2)+J<<2)|0;J=c[s>>2]|0;if((J|0)==(M|0))Ha=M;else{P=J+(~((J+ -4+(0-M)|0)>>>2)<<2)|0;c[s>>2]=P;Ha=P}}else Ha=E;if((T|0)<=0)break c;E=Ha;F=c[d>>2]|0;H=T}}while(0);ef(d);I=c[G>>2]|0;if(((c[s>>2]|0)-I|0)>0){O=I;I=0;do{ig(c[O+(I<<2)>>2]|0);I=I+1|0;O=c[G>>2]|0}while((I|0)<((c[s>>2]|0)-O>>2|0))}O=c[m>>2]|0;if((c[w>>2]|0)!=(O|0)){I=O;O=0;D=0;while(1){H=c[I+(D<<2)>>2]|0;d:do if((O|0)>0){F=H+12|0;E=H+8|0;Q=O;while(1){L=c[F>>2]|0;T=Q+ -1|0;if((L|0)>=(Fg(c[(c[d>>2]|0)+(Q<<2)>>2]|0,((c[E>>2]|0)+(c[H>>2]|0)|0)/2|0)|0)){Ia=Q;break d}if((T|0)>0)Q=T;else{Ia=T;break}}}else Ia=O;while(0);Q=c[s>>2]|0;E=c[G>>2]|0;e:do if((Ia|0)<(Q-E>>2|0)){F=H+4|0;K=H+8|0;T=E;L=Ia;while(1){P=c[F>>2]|0;M=(P|0)>(Fg(c[T+(L<<2)>>2]|0,((c[K>>2]|0)+(c[H>>2]|0)|0)/2|0)|0);P=L+1|0;J=c[s>>2]|0;X=c[G>>2]|0;if(!M){Ja=J;Ka=X;La=L;break e}if((P|0)<(J-X>>2|0)){T=X;L=P}else{Ja=J;Ka=X;La=P;break}}}else{Ja=Q;Ka=E;La=Ia}while(0);f:do if((La|0)>=(Ja-Ka>>2|0)){E=La+ -1|0;if(!H)Ma=E;else{Qe(H);kt(H);Ma=E}}else{E=c[Ka+(La<<2)>>2]|0;Q=c[E+12>>2]|0;L=kg(E)|0;T=(c[H+12>>2]|0)+1-(c[H+4>>2]|0)|0;do if((T|0)<=(L*3|0)){if((T|0)>(L<<1|0)?(K=c[(lg(E,Q)|0)>>2]|0,(K|0)>=(c[H>>2]|0)):0)break;K=it(40)|0;c[K+0>>2]=c[H+0>>2];c[K+4>>2]=c[H+4>>2];c[K+8>>2]=c[H+8>>2];c[K+12>>2]=c[H+12>>2];F=K+20|0;P=it(4)|0;c[F>>2]=P;c[K+16>>2]=P;c[K+24>>2]=P+4;if(!P)Na=0;else{c[P>>2]=H;Na=P}c[F>>2]=Na+4;c[K+28>>2]=0;c[K+32>>2]=0;c[K+36>>2]=0;pg(E,K,0)|0;Ma=La;break f}while(0);L=(c[E+20>>2]|0)-(c[E+16>>2]|0)>>2;if((L|0)!=0?(T=Q+1|0,K=L+ -1|0,L=c[(lg(E,(K|0)<(T|0)?K:T)|0)>>2]|0,(L|0)<=(((c[H+8>>2]|0)+(c[H>>2]|0)|0)/2|0|0)):0){if(!H){Ma=La;break}Qe(H);kt(H);Ma=La;break}L=it(40)|0;c[L+0>>2]=c[H+0>>2];c[L+4>>2]=c[H+4>>2];c[L+8>>2]=c[H+8>>2];c[L+12>>2]=c[H+12>>2];T=L+20|0;K=it(4)|0;c[T>>2]=K;c[L+16>>2]=K;c[L+24>>2]=K+4;if(!K)Oa=0;else{c[K>>2]=H;Oa=K}c[T>>2]=Oa+4;c[L+28>>2]=0;c[L+32>>2]=0;c[L+36>>2]=0;pg(E,L,1)|0;Ma=La}while(0);D=D+1|0;I=c[m>>2]|0;if(D>>>0>=(c[w>>2]|0)-I>>2>>>0)break;else O=Ma}}O=c[n>>2]|0;if((c[y>>2]|0)!=(O|0)){I=O;O=0;D=0;while(1){H=c[I+(D<<2)>>2]|0;g:do if((O|0)>0){L=H+12|0;T=H+8|0;K=O;while(1){F=c[L>>2]|0;P=K+ -1|0;if((F|0)>=(Eg(c[(c[d>>2]|0)+(K<<2)>>2]|0,((c[T>>2]|0)+(c[H>>2]|0)|0)/2|0)|0)){Pa=K;break g}if((P|0)>0)K=P;else{Pa=P;break}}}else Pa=O;while(0);K=Pa+ -1|0;T=(K|0)>0?K:0;K=c[s>>2]|0;L=c[G>>2]|0;h:do if((Pa|0)<(K-L>>2|0)){E=H+4|0;Q=H+8|0;P=L;F=Pa;while(1){X=c[E>>2]|0;J=(X|0)>(Dg(c[P+(F<<2)>>2]|0,((c[Q>>2]|0)+(c[H>>2]|0)|0)/2|0)|0);X=F+1|0;M=c[s>>2]|0;R=c[G>>2]|0;if(!J){Qa=M;Ra=R;Sa=F;break h}if((X|0)<(M-R>>2|0)){P=R;F=X}else{Qa=M;Ra=R;Sa=X;break}}}else{Qa=K;Ra=L;Sa=Pa}while(0);do if((Sa|0)>=(Qa-Ra>>2|0)){L=Sa+ -1|0;K=c[Ra+(L<<2)>>2]|0;F=H+8|0;P=mg(K,((c[F>>2]|0)+(c[H>>2]|0)|0)/2|0)|0;Q=H+4|0;E=c[Q>>2]|0;X=Dg(K,((c[F>>2]|0)+(c[H>>2]|0)|0)/2|0)|0;F=c[K>>2]|0;R=(F|0)==(c[K+4>>2]|0);if(R)Ta=0;else Ta=(c[F+16>>2]|0)/2|0;if((E|0)>(Ta+X|0)){if(P){if(R)Ua=0;else Ua=(c[F+16>>2]|0)/2|0;if((c[Q>>2]|0)<=(Ua+(c[P+12>>2]|0)|0)){Va=L;Wa=L;$=178;break}}if(!H){Xa=L;break}Qe(H);kt(H);Xa=L}else{Va=L;Wa=L;$=178}}else{Va=Sa;Wa=T;$=178}while(0);if(($|0)==178){$=0;T=(Va-Wa|0)>1?Va+ -1|0:Wa;if((Va|0)==(T|0))Ya=Va;else{L=c[H+4>>2]|0;P=H+8|0;Q=Dg(c[(c[d>>2]|0)+(T<<2)>>2]|0,((c[P>>2]|0)+(c[H>>2]|0)|0)/2|0)|0;F=Eg(c[(c[d>>2]|0)+(Va<<2)>>2]|0,((c[P>>2]|0)+(c[H>>2]|0)|0)/2|0)|0;Ya=(L-Q<<1|0)<(F-(c[H+12>>2]|0)|0)?T:Va}T=c[(c[d>>2]|0)+(Ya<<2)>>2]|0;F=it(40)|0;c[F+0>>2]=c[H+0>>2];c[F+4>>2]=c[H+4>>2];c[F+8>>2]=c[H+8>>2];c[F+12>>2]=c[H+12>>2];Q=F+20|0;L=it(4)|0;c[Q>>2]=L;c[F+16>>2]=L;c[F+24>>2]=L+4;if(!L)Za=0;else{c[L>>2]=H;Za=L}c[Q>>2]=Za+4;c[F+28>>2]=0;c[F+32>>2]=0;c[F+36>>2]=0;pg(T,F,0)|0;Xa=Ya}D=D+1|0;I=c[n>>2]|0;if(D>>>0>=(c[y>>2]|0)-I>>2>>>0)break;else O=Xa}}O=c[s>>2]|0;I=c[G>>2]|0;D=O-I|0;i:do if((D|0)>8){F=c[I+((D>>2)+ -1<<2)>>2]|0;T=F+20|0;Q=F+16|0;j:do if(((c[T>>2]|0)-(c[Q>>2]|0)|0)>0){L=b+12|0;P=0;R=0;while(1){X=c[(lg(F,R)|0)+12>>2]|0;if((X|0)>=(c[L>>2]|0)){X=P+1|0;E=c[T>>2]|0;K=c[Q>>2]|0;if((X<<1|0)<(E-K>>2|0)){_a=E;$a=K;ab=X}else break}else{_a=c[T>>2]|0;$a=c[Q>>2]|0;ab=P}R=R+1|0;if((R|0)>=(_a-$a>>2|0))break j;else P=ab}P=c[s>>2]|0;R=c[G>>2]|0;L=(P-R>>2)+ -1|0;X=c[R+(L<<2)>>2]|0;if(!X){bb=R;cb=P}else{hg(X);kt(X);bb=c[d>>2]|0;cb=c[s>>2]|0}X=L<<2>>2;L=bb+(X+1<<2)|0;P=cb-L|0;Uu(bb+(X<<2)|0,L|0,P|0)|0;L=bb+((P>>2)+X<<2)|0;X=c[s>>2]|0;if((X|0)!=(L|0))c[s>>2]=X+(~((X+ -4+(0-L)|0)>>>2)<<2)}while(0);Q=c[c[d>>2]>>2]|0;T=c[b+4>>2]|0;F=(T|0)<1?1:T;T=Q+20|0;H=Q+16|0;k:do if(((c[T>>2]|0)-(c[H>>2]|0)|0)>0){L=0;X=0;while(1){if((c[(lg(Q,X)|0)+4>>2]|0)<=(F|0)){P=L+1|0;R=c[T>>2]|0;K=c[H>>2]|0;if((P<<1|0)<(R-K>>2|0)){db=R;eb=K;fb=P}else break}else{db=c[T>>2]|0;eb=c[H>>2]|0;fb=L}X=X+1|0;if((X|0)>=(db-eb>>2|0))break k;else L=fb}L=c[d>>2]|0;X=c[L>>2]|0;if(!X)gb=L;else{hg(X);kt(X);gb=c[d>>2]|0}X=gb+4|0;L=(c[s>>2]|0)-X|0;Uu(gb|0,X|0,L|0)|0;X=gb+(L>>2<<2)|0;L=c[s>>2]|0;if((L|0)==(X|0)){hb=X;break i}P=L+(~((L+ -4+(0-X)|0)>>>2)<<2)|0;c[s>>2]=P;hb=P;break i}while(0);hb=c[s>>2]|0}else hb=O;while(0);O=c[G>>2]|0;if(((hb-O>>2)+ -1|0)>0){D=O;O=0;while(1){I=c[D+(O<<2)>>2]|0;H=O+1|0;T=c[D+(H<<2)>>2]|0;F=I+20|0;Q=I+16|0;P=T+20|0;X=T+16|0;l:do if(((c[F>>2]|0)-(c[Q>>2]|0)>>2|0)<=((c[P>>2]|0)-(c[X>>2]|0)>>1|0)?(L=kg(I)|0,(L<<1|0)<(kg(T)|0)):0){L=O<<2>>2;K=L+1|0;R=0;m:while(1){if((R|0)>=((c[F>>2]|0)-(c[Q>>2]|0)>>2|0)){ib=H;break l}E=lg(I,R)|0;M=E+12|0;J=c[M>>2]|0;jb=c[E+4>>2]|0;n:do if((J+1-jb<<1|0)<(kg(T)|0)){kb=E+8|0;lb=0;while(1){if((lb|0)>=((c[P>>2]|0)-(c[X>>2]|0)>>2|0))break n;mb=lg(T,lb)|0;do if((c[mb+8>>2]|0)>=(c[E>>2]|0)){if((c[mb>>2]|0)>(c[kb>>2]|0))break n;if(!(Hd(mb,E)|0)?!(Hd(E,mb)|0):0)break;nb=c[mb+4>>2]|0;ob=c[M>>2]|0;if((nb-ob|0)<(kg(T)|0))break m}while(0);lb=lb+1|0}}while(0);R=R+1|0}tg(T,I);R=c[d>>2]|0;M=c[R+(O<<2)>>2]|0;if(!M)pb=R;else{hg(M);kt(M);pb=c[d>>2]|0}M=pb+(K<<2)|0;R=(c[s>>2]|0)-M|0;Uu(pb+(L<<2)|0,M|0,R|0)|0;M=pb+((R>>2)+L<<2)|0;R=c[s>>2]|0;if((R|0)==(M|0))ib=O;else{c[s>>2]=R+(~((R+ -4+(0-M)|0)>>>2)<<2);ib=O}}else ib=H;while(0);D=c[G>>2]|0;if((ib|0)>=(((c[s>>2]|0)-D>>2)+ -1|0))break;else O=ib}}ef(d);O=c[s>>2]|0;D=c[G>>2]|0;if((O-D|0)>0){H=D;I=0;do{jg(c[H+(I<<2)>>2]|0);I=I+1|0;qb=c[s>>2]|0;H=c[G>>2]|0;rb=qb-H|0}while((I|0)<(rb>>2|0));if((rb|0)>8?(qb-H|0)>8:0){I=H;T=2;X=0;while(1){P=c[I+(X<<2)>>2]|0;Q=X;X=X+1|0;F=c[I+(X<<2)>>2]|0;M=c[I+(T<<2)>>2]|0;do if(((c[F+20>>2]|0)-(c[F+16>>2]|0)|0)<=8){if(((c[P+20>>2]|0)-(c[P+16>>2]|0)|0)<16)break;if(((c[M+20>>2]|0)-(c[M+16>>2]|0)|0)<16)break;R=c[P>>2]|0;E=P+4|0;if((R|0)==(c[E>>2]|0))sb=0;else sb=c[R+16>>2]|0;R=c[M>>2]|0;jb=M+4|0;if((R|0)==(c[jb>>2]|0))tb=0;else tb=c[R+16>>2]|0;if(!(Fh(sb,tb,10,1)|0))break;R=c[F>>2]|0;if((R|0)==(c[F+4>>2]|0))ub=0;else ub=c[R+16>>2]<<3;R=c[P>>2]|0;if((R|0)==(c[E>>2]|0))vb=0;else vb=c[R+16>>2]|0;R=c[M>>2]|0;if((R|0)==(c[jb>>2]|0))wb=0;else wb=c[R+16>>2]|0;if((ub|0)>(wb+vb|0))break;R=c[d>>2]|0;jb=c[R+(X<<2)>>2]|0;if(!jb)xb=R;else{hg(jb);kt(jb);xb=c[d>>2]|0}jb=X<<2>>2;R=xb+(jb+1<<2)|0;E=(c[s>>2]|0)-R|0;Uu(xb+(jb<<2)|0,R|0,E|0)|0;R=xb+((E>>2)+jb<<2)|0;jb=c[s>>2]|0;if((jb|0)==(R|0))break;c[s>>2]=jb+(~((jb+ -4+(0-R)|0)>>>2)<<2)}while(0);T=Q+3|0;M=c[s>>2]|0;P=c[G>>2]|0;if((T|0)>=(M-P>>2|0)){yb=M;zb=P;break}else I=P}}else{yb=qb;zb=H}}else{yb=O;zb=D}if((yb-zb|0)>0){I=zb;T=0;while(1){X=c[I+(T<<2)>>2]|0;P=X+20|0;do if(!(c[X+12>>2]|0)){M=X+16|0;if(((c[P>>2]|0)-(c[M>>2]|0)|0)>8){F=lg(X,0)|0;R=lg(X,1)|0;jb=lg(X,2)|0;if(((c[F+20>>2]|0)-(c[F+16>>2]|0)|0)!=4){Ab=M;break}E=c[F+8>>2]|0;J=c[R+8>>2]|0;lb=c[R>>2]|0;kb=da((c[F+12>>2]|0)+1-(c[F+4>>2]|0)<<2,E+1-(c[F>>2]|0)|0)|0;if((kb|0)>=(da(J+1-lb|0,(c[R+12>>2]|0)+1-(c[R+4>>2]|0)|0)|0)){Ab=M;break}R=c[X>>2]|0;F=(R|0)==(c[X+4>>2]|0);if(F)Bb=0;else Bb=c[R+16>>2]<<1;if((lb-E|0)<=(Bb|0)){Ab=M;break}E=c[jb>>2]|0;if((kb|0)>=(da((c[jb+8>>2]|0)+1-E|0,(c[jb+12>>2]|0)+1-(c[jb+4>>2]|0)|0)|0)){Ab=M;break}if(F)Cb=0;else Cb=c[R+16>>2]|0;if((E-J|0)>=(Cb|0)){Ab=M;break}og(X,0);Ab=M}else Ab=M}else Ab=X+16|0;while(0);Q=(c[P>>2]|0)-(c[Ab>>2]|0)|0;do if((Q|0)>8){M=lg(X,(Q>>2)+ -1|0)|0;J=lg(X,((c[P>>2]|0)-(c[Ab>>2]|0)>>2)+ -2|0)|0;E=lg(X,((c[P>>2]|0)-(c[Ab>>2]|0)>>2)+ -3|0)|0;if(((c[M+20>>2]|0)-(c[M+16>>2]|0)|0)!=4)break;R=c[M>>2]|0;F=c[J+8>>2]|0;jb=c[J>>2]|0;kb=da((c[M+12>>2]|0)+1-(c[M+4>>2]|0)<<2,(c[M+8>>2]|0)+1-R|0)|0;if((kb|0)>=(da(F+1-jb|0,(c[J+12>>2]|0)+1-(c[J+4>>2]|0)|0)|0))break;J=c[X>>2]|0;M=(J|0)==(c[X+4>>2]|0);if(M)Db=0;else Db=c[J+16>>2]<<1;if((R-F|0)<=(Db|0))break;F=c[E+8>>2]|0;if((kb|0)>=(da(F+1-(c[E>>2]|0)|0,(c[E+12>>2]|0)+1-(c[E+4>>2]|0)|0)|0))break;if(M)Eb=0;else Eb=c[J+16>>2]|0;if((jb-F|0)>=(Eb|0))break;og(X,((c[P>>2]|0)-(c[Ab>>2]|0)>>2)+ -1|0)}while(0);T=T+1|0;P=c[s>>2]|0;X=c[G>>2]|0;if((T|0)>=(P-X>>2|0)){Fb=P;Gb=X;break}else I=X}}else{Fb=yb;Gb=zb}if((Fb-Gb|0)>0){I=Gb;T=0;do{sg(c[I+(T<<2)>>2]|0);T=T+1|0;I=c[G>>2]|0}while((T|0)<((c[s>>2]|0)-I>>2|0))}}while(0);s=c[n>>2]|0;if(s){n=c[y>>2]|0;if((n|0)!=(s|0))c[y>>2]=n+(~((n+ -4+(0-s)|0)>>>2)<<2);kt(s)}s=c[m>>2]|0;if(s){m=c[w>>2]|0;if((m|0)!=(s|0))c[w>>2]=m+(~((m+ -4+(0-s)|0)>>>2)<<2);kt(s)}s=c[l>>2]|0;if(!s){i=f;return}l=c[u>>2]|0;if((l|0)!=(s|0))c[u>>2]=l+(~((l+ -4+(0-s)|0)>>>2)<<2);kt(s);i=f;return}function ef(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;b=i;d=a+4|0;e=c[a>>2]|0;if((c[d>>2]|0)==(e|0)){i=b;return}else{f=e;g=0}do{e=c[f+(g<<2)>>2]|0;h=e+20|0;j=e+16|0;a:do if((((c[h>>2]|0)-(c[j>>2]|0)>>2)+ -1|0)>0){k=0;do{l=k;k=k+1|0;b:while(1){m=lg(e,l)|0;n=c[h>>2]|0;o=c[j>>2]|0;if((k|0)>=(n-o>>2|0)){p=n;q=o;break}o=m+4|0;n=m+12|0;r=k;while(1){s=lg(e,r)|0;if(Md(m,s)|0){t=s+4|0;u=s+12|0;v=(((c[n>>2]|0)+(c[o>>2]|0)|0)/2|0|0)<(((c[u>>2]|0)+(c[t>>2]|0)|0)/2|0|0);w=v?m:s;x=v?s:m;if(Hd(x,w)|0)break;if(Hd(w,x)|0)break;if((c[x+4>>2]|0)>(c[w+12>>2]|0)?(((c[x+8>>2]|0)+(c[x>>2]|0)|0)/2|0|0)<(((c[w+8>>2]|0)+(c[w>>2]|0)|0)/2|0|0):0)break;if((((c[x+20>>2]|0)-(c[x+16>>2]|0)|0)==8?(v=Sf(x,0)|0,y=da((c[v+12>>2]|0)+1-(c[v+4>>2]|0)<<1,(c[v+8>>2]|0)+1-(c[v>>2]|0)|0)|0,v=Sf(x,1)|0,(y|0)<(da((c[v+8>>2]|0)+1-(c[v>>2]|0)|0,(c[v+12>>2]|0)+1-(c[v+4>>2]|0)|0)|0)):0)?Id(Sf(x,0)|0,w)|0:0)break}w=r+1|0;v=c[h>>2]|0;y=c[j>>2]|0;if((w|0)<(v-y>>2|0))r=w;else{p=v;q=y;break b}}y=da((c[n>>2]|0)+1-(c[o>>2]|0)<<6,(c[m+8>>2]|0)+1-(c[m>>2]|0)|0)|0;v=Tf(s)|0;do if((y|0)>=(da((c[v+8>>2]|0)+1-(c[v>>2]|0)|0,(c[v+12>>2]|0)+1-(c[v+4>>2]|0)|0)|0)){w=da((c[u>>2]|0)+1-(c[t>>2]|0)<<6,(c[s+8>>2]|0)+1-(c[s>>2]|0)|0)|0;z=Tf(m)|0;if((w|0)>=(da((c[z+8>>2]|0)+1-(c[z>>2]|0)|0,(c[z+12>>2]|0)+1-(c[z+4>>2]|0)|0)|0))if((x|0)==(s|0)){ag(s,m);A=l;break}else{ag(m,s);A=r;break}else A=r}else A=l;while(0);og(e,A);if((l|0)>=(((c[h>>2]|0)-(c[j>>2]|0)>>2)+ -1|0))break a}}while((k|0)<((p-q>>2)+ -1|0))}while(0);g=g+1|0;f=c[a>>2]|0}while(g>>>0<(c[d>>2]|0)-f>>2>>>0);i=b;return}function ff(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;b=i;d=a+20|0;e=a+16|0;a=c[e>>2]|0;f=(c[d>>2]|0)-a|0;if((f|0)>0){g=a;h=f>>2;while(1){h=h+ -1|0;f=c[g+(h<<2)>>2]|0;if(!f)j=g;else{hg(f);kt(f);j=c[e>>2]|0}if((h|0)<=0){k=j;break}else g=j}}else k=a;if(!k){i=b;return}a=c[d>>2]|0;if((a|0)!=(k|0))c[d>>2]=a+(~((a+ -4+(0-k)|0)>>>2)<<2);kt(k);i=b;return}function gf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0;d=i;i=i+16|0;e=d+12|0;f=d+8|0;g=d+4|0;h=d;j=a+20|0;k=c[j>>2]|0;l=a+16|0;m=c[l>>2]|0;if((k-m|0)>0){n=m;o=0;while(1){yg(c[n+(o<<2)>>2]|0,b);di(c[(c[l>>2]|0)+(o<<2)>>2]|0,b);o=o+1|0;p=c[j>>2]|0;q=c[l>>2]|0;if((o|0)>=(p-q>>2|0)){r=q;s=p;break}else n=q}}else{r=m;s=k}k=b+8|0;m=c[k>>2]|0;n=b+4|0;b=c[n>>2]|0;if((m|0)==(b|0)){t=s;u=r}else{o=b;b=m;m=s;s=r;r=0;while(1){if((m-s|0)>0){q=s;p=o;v=0;while(1){zg(c[q+(v<<2)>>2]|0,c[p+(r<<2)>>2]|0);w=v+1|0;x=c[j>>2]|0;y=c[l>>2]|0;if((w|0)>=(x-y>>2|0))break;q=y;p=c[n>>2]|0;v=w}z=y;A=x;B=c[k>>2]|0;C=c[n>>2]|0}else{z=s;A=m;B=b;C=o}r=r+1|0;if(r>>>0>=B-C>>2>>>0){t=A;u=z;break}else{o=C;b=B;m=A;s=z}}}z=t-u|0;if((z|0)>0){s=u;A=z>>2;while(1){z=A+ -1|0;m=c[s+(z<<2)>>2]|0;B=m+20|0;b=m+16|0;a:do if(((c[B>>2]|0)-(c[b>>2]|0)|0)>0){C=0;do{o=lg(m,C)|0;C=C+1|0;if((c[o+32>>2]|0)!=(c[o+28>>2]|0))break a}while((C|0)<((c[B>>2]|0)-(c[b>>2]|0)>>2|0));C=c[l>>2]|0;D=C;E=c[C+(z<<2)>>2]|0;F=16}else{D=s;E=m;F=16}while(0);if((F|0)==16){F=0;if(!E)G=D;else{hg(E);kt(E);G=c[l>>2]|0}m=z<<2>>2;b=G+(m+1<<2)|0;B=(c[j>>2]|0)-b|0;Uu(G+(m<<2)|0,b|0,B|0)|0;b=G+((B>>2)+m<<2)|0;m=c[j>>2]|0;if((m|0)!=(b|0))c[j>>2]=m+(~((m+ -4+(0-b)|0)>>>2)<<2)}if((z|0)<=0)break;s=c[l>>2]|0;A=z}H=c[j>>2]|0;I=c[l>>2]|0}else{H=t;I=u}if((H-I|0)<=8){i=d;return}I=a+16|0;a=ug(c[H+ -4>>2]|0)|0;H=a-(ug(c[c[I>>2]>>2]|0)|0)|0;a=c[j>>2]|0;u=c[l>>2]|0;t=a-u|0;A=(H|0)/((t>>2)+ -1|0)|0;b:do if((t|0)>4){H=u;s=1;G=0;E=A;while(1){D=H;F=s;b=G;while(1){m=c[D+(b<<2)>>2]|0;B=c[D+(F<<2)>>2]|0;C=m+20|0;o=m+16|0;r=B+20|0;n=B+16|0;if(Fh((c[C>>2]|0)-(c[o>>2]|0)>>2,(c[r>>2]|0)-(c[n>>2]|0)>>2,50,1)|0){k=c[o>>2]|0;o=c[C>>2]|0;if((k|0)==(o|0))J=0;else J=(c[(c[o+ -4>>2]|0)+8>>2]|0)-(c[c[k>>2]>>2]|0)|0;k=c[n>>2]|0;n=c[r>>2]|0;if((k|0)==(n|0))K=0;else K=(c[(c[n+ -4>>2]|0)+8>>2]|0)-(c[c[k>>2]>>2]|0)|0;if(((Fh(J,K,30,1)|0?(k=ug(B)|0,L=k-(ug(m)|0)|0,(L|0)<(E|0)):0)?(M=kg(m)|0,N=kg(B)|0,!((M|0)<10|(N|0)<10)):0)?Fh(M,N,20,1)|0:0)break}B=F+1|0;m=c[j>>2]|0;k=c[l>>2]|0;if((B|0)<(m-k>>2|0)){n=F;D=k;F=B;b=n}else{O=m;P=k;Q=E;break b}}b=(L<<1|0)>(N+M|0)?L:E;s=F+1|0;D=c[j>>2]|0;k=c[l>>2]|0;if((s|0)>=(D-k>>2|0)){O=D;P=k;Q=b;break}else{H=k;G=F;E=b}}}else{O=a;P=u;Q=A}while(0);if((Q|0)<=0){i=d;return}if((O-P|0)<=4){i=d;return}O=P;P=1;A=0;while(1){u=c[O+(A<<2)>>2]|0;a=ug(c[O+(P<<2)>>2]|0)|0;L=a-(ug(u)|0)-Q|0;u=A+1|0;if((L<<1|0)>(Q|0)){a=u;M=L;while(1){c[f>>2]=(c[I>>2]|0)+(a<<2);L=it(28)|0;c[L+0>>2]=0;c[L+4>>2]=0;c[L+8>>2]=0;c[L+12>>2]=0;c[L+16>>2]=0;c[L+20>>2]=0;c[L+24>>2]=0;c[g>>2]=L;c[e+0>>2]=c[f+0>>2];of(h,I,e,g);M=M-Q|0;L=a+1|0;if((M<<1|0)<=(Q|0)){R=L;break}else a=L}}else R=u;P=R+1|0;O=c[l>>2]|0;if((P|0)>=((c[j>>2]|0)-O>>2|0))break;else A=R}i=d;return}function hf(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((b|0)<0)Eh(1688);e=c[a+16>>2]|0;if(((c[a+20>>2]|0)-e>>2|0)>(b|0)){i=d;return c[e+(b<<2)>>2]|0}else Eh(1688);return 0}function jf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;i=i+16|0;g=f;h=b+16|0;j=c[h>>2]|0;k=a+20|0;l=a+16|0;c[g>>2]=(c[k>>2]|0)-(c[l>>2]|0)>>2;Ob(j|0,1720,g|0)|0;j=c[l>>2]|0;a=c[h>>2]|0;if(((c[k>>2]|0)-j|0)>0){m=j;n=a;o=0}else{p=a;Eb(10,p|0)|0;i=f;return}while(1){a=c[m+(o<<2)>>2]|0;j=o;o=o+1|0;c[g>>2]=(c[a+20>>2]|0)-(c[a+16>>2]|0)>>2;c[g+4>>2]=o;Ob(n|0,1736,g|0)|0;vg(c[(c[l>>2]|0)+(j<<2)>>2]|0,b,d,e);m=c[l>>2]|0;j=c[h>>2]|0;if((o|0)>=((c[k>>2]|0)-m>>2|0)){p=j;break}else n=j}Eb(10,p|0)|0;i=f;return}function kf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;d=i;i=i+16|0;e=d;f=b+20|0;g=c[f>>2]|0;h=a+20|0;j=a+16|0;c[e>>2]=(c[h>>2]|0)-(c[j>>2]|0)>>2;Ob(g|0,1768,e|0)|0;g=c[j>>2]|0;if(((c[h>>2]|0)-g|0)>0){k=g;l=0}else{i=d;return}do{g=c[f>>2]|0;a=l;l=l+1|0;m=c[k+(a<<2)>>2]|0;n=(c[m+20>>2]|0)-(c[m+16>>2]|0)>>2;o=kg(m)|0;c[e>>2]=l;c[e+4>>2]=n;c[e+8>>2]=o;Ob(g|0,1784,e|0)|0;wg(c[(c[j>>2]|0)+(a<<2)>>2]|0,b);k=c[j>>2]|0}while((l|0)<((c[h>>2]|0)-k>>2|0));i=d;return}function lf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=a+20|0;f=a+16|0;a=c[f>>2]|0;if(((c[e>>2]|0)-a|0)>0){g=a;h=0}else{i=d;return}do{xg(c[g+(h<<2)>>2]|0,b);h=h+1|0;g=c[f>>2]|0}while((h|0)<((c[e>>2]|0)-g>>2|0));i=d;return}function mf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=a+20|0;f=a+16|0;a=c[f>>2]|0;if(((c[e>>2]|0)-a|0)>0){g=a;h=0}else{i=d;return}do{jd(b,c[g+(h<<2)>>2]|0);h=h+1|0;g=c[f>>2]|0}while((h|0)<((c[e>>2]|0)-g>>2|0));i=d;return}function nf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=a+4|0;f=c[a>>2]|0;g=((c[e>>2]|0)-f>>2)+1|0;if(g>>>0>1073741823)yp(a);h=a+8|0;j=f;k=(c[h>>2]|0)-j|0;if(k>>2>>>0<536870911){l=k>>1;k=l>>>0>>0?g:l;l=(c[e>>2]|0)-j|0;g=l>>2;if(!k){m=0;n=0;o=g;p=l}else{q=k;r=g;s=l;t=6}}else{l=(c[e>>2]|0)-j|0;q=1073741823;r=l>>2;s=l;t=6}if((t|0)==6){m=q;n=it(q<<2)|0;o=r;p=s}s=n+(o<<2)|0;if(s)c[s>>2]=c[b>>2];Tu(n|0,f|0,p|0)|0;c[a>>2]=n;c[e>>2]=n+(o+1<<2);c[h>>2]=n+(m<<2);if(!f){i=d;return}kt(f);i=d;return}function of(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=i;g=c[b>>2]|0;h=g;j=(c[d>>2]|0)-h>>2;d=g+(j<<2)|0;k=b+4|0;l=c[k>>2]|0;m=b+8|0;n=c[m>>2]|0;if(l>>>0>>0){if((d|0)==(l|0)){if(!d)o=0;else{c[d>>2]=c[e>>2];o=c[k>>2]|0}c[k>>2]=o+4;p=d;c[a>>2]=p;i=f;return}o=l-(g+(j+1<<2))|0;q=o>>2;r=g+(q+j<<2)|0;if(r>>>0>>0){j=l;s=r;do{if(!j)t=0;else{c[j>>2]=c[s>>2];t=c[k>>2]|0}s=s+4|0;j=t+4|0;c[k>>2]=j}while(s>>>0>>0)}Uu(l+(0-q<<2)|0,d|0,o|0)|0;if(d>>>0>e>>>0)u=e;else u=(c[k>>2]|0)>>>0>e>>>0?e+4|0:e;c[d>>2]=c[u>>2];p=d;c[a>>2]=p;i=f;return}u=(l-h>>2)+1|0;if(u>>>0>1073741823)yp(b);h=g;g=n-h|0;if(g>>2>>>0<536870911){n=g>>1;g=n>>>0>>0?u:n;n=d;u=n-h>>2;if(!g){v=0;w=0;x=u;y=n}else{z=g;A=u;B=n;C=18}}else{n=d;z=1073741823;A=n-h>>2;B=n;C=18}if((C|0)==18){v=z;w=it(z<<2)|0;x=A;y=B}B=w+(x<<2)|0;A=w+(v<<2)|0;do if((x|0)==(v|0)){if((x|0)>0){D=w+(((x+1|0)/-2|0)+x<<2)|0;E=A;break}z=(x|0)==0?1:x<<1;C=it(z<<2)|0;n=C+(z>>>2<<2)|0;h=C+(z<<2)|0;if(!w){D=n;E=h}else{kt(w);D=n;E=h}}else{D=B;E=A}while(0);if(!D)F=0;else{c[D>>2]=c[e>>2];F=D}e=c[b>>2]|0;A=y-e|0;B=D+(0-(A>>2)<<2)|0;Tu(B|0,e|0,A|0)|0;A=(c[k>>2]|0)-y|0;Tu(F+4|0,d|0,A|0)|0;d=c[b>>2]|0;c[b>>2]=B;c[k>>2]=F+((A>>2)+1<<2);c[m>>2]=E;if(!d){p=D;c[a>>2]=p;i=f;return}kt(d);p=D;c[a>>2]=p;i=f;return}function pf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;f=(c[a+20>>2]|0)-(c[a+16>>2]|0)>>2;if((f|0)==1){g=Sf(a,0)|0;h=(c[g+32>>2]|0)-(c[g+28>>2]|0)>>2;if((h|0)==2){sf(a,d);i=e;return}else if((h|0)==1){rf(a,b,d);i=e;return}else if(!h){qf(a,b,d);i=e;return}else{i=e;return}}else if((f|0)==3){bi(a,b,d);i=e;return}else if((f|0)==2){ai(a,b,d);i=e;return}else{i=e;return}}function qf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;e=i;i=i+480|0;f=e+120|0;g=e+32|0;h=e+88|0;j=e+104|0;k=e+64|0;l=e+80|0;m=e+96|0;n=e+112|0;o=e+40|0;p=e;q=e+56|0;r=e+8|0;s=e+48|0;t=e+16|0;u=e+72|0;v=e+24|0;w=e+136|0;x=e+128|0;y=Sf(a,0)|0;uh(w,y);z=Uh(w,d)|0;if((z|0)==46){if(((c[y+8>>2]|0)+1-(c[y>>2]|0)|0)>((c[y+12>>2]|0)+1-(c[y+4>>2]|0)|0)?Ld(y,((c[d+12>>2]|0)+(c[d+4>>2]|0)|0)/2|0)|0:0){c[f>>2]=46;c[f+4>>2]=1;A=a+32|0;B=c[A>>2]|0;C=a+36|0;if((B|0)==(c[C>>2]|0)){uf(a+28|0,f);D=c[A>>2]|0}else{if(!B)E=0;else{F=f;G=c[F+4>>2]|0;H=B;c[H>>2]=c[F>>2];c[H+4>>2]=G;E=c[A>>2]|0}G=E+8|0;c[A>>2]=G;D=G}c[u>>2]=45;c[u+4>>2]=0;if((D|0)==(c[C>>2]|0)){uf(a+28|0,u);tf(w);i=e;return}if(!D)I=0;else{C=u;u=c[C+4>>2]|0;G=D;c[G>>2]=c[C>>2];c[G+4>>2]=u;I=c[A>>2]|0}c[A>>2]=I+8;tf(w);i=e;return}}else if(!z){I=y+12|0;A=y+4|0;u=(c[I>>2]|0)+1-(c[A>>2]|0)|0;if((u|0)<5){tf(w);i=e;return}G=c[y+8>>2]|0;C=c[y>>2]|0;if((u|0)<8?(G+1-C|0)<6:0){tf(w);i=e;return}D=y+8|0;E=G+1-C|0;if((u|0)>(E*10|0)|(u*5|0)<(E|0)){tf(w);i=e;return}E=Mh(w,b,d)|0;if(E){c[n>>2]=E;c[n+4>>2]=0;E=a+32|0;u=c[E>>2]|0;if((u|0)==(c[a+36>>2]|0)){uf(a+28|0,n);tf(w);i=e;return}if(!u)J=0;else{C=n;n=c[C+4>>2]|0;G=u;c[G>>2]=c[C>>2];c[G+4>>2]=n;J=c[E>>2]|0}c[E>>2]=J+8;tf(w);i=e;return}J=Oh(w,d)|0;if(J){c[m>>2]=J;c[m+4>>2]=0;J=a+32|0;E=c[J>>2]|0;if((E|0)==(c[a+36>>2]|0)){uf(a+28|0,m);tf(w);i=e;return}if(!E)K=0;else{n=m;m=c[n+4>>2]|0;G=E;c[G>>2]=c[n>>2];c[G+4>>2]=m;K=c[J>>2]|0}c[J>>2]=K+8;tf(w);i=e;return}K=Ph(w)|0;if(K){c[l>>2]=K;c[l+4>>2]=0;K=a+32|0;J=c[K>>2]|0;if((J|0)==(c[a+36>>2]|0)){uf(a+28|0,l);tf(w);i=e;return}if(!J)L=0;else{m=l;l=c[m+4>>2]|0;G=J;c[G>>2]=c[m>>2];c[G+4>>2]=l;L=c[K>>2]|0}c[K>>2]=L+8;tf(w);i=e;return}L=Nh(w)|0;if(L){c[k>>2]=L;c[k+4>>2]=0;L=a+32|0;K=c[L>>2]|0;if((K|0)==(c[a+36>>2]|0)){uf(a+28|0,k);tf(w);i=e;return}if(!K)M=0;else{l=k;k=c[l+4>>2]|0;G=K;c[G>>2]=c[l>>2];c[G+4>>2]=k;M=c[L>>2]|0}c[L>>2]=M+8;tf(w);i=e;return}if(Gh(b,2)|0?(M=Sh(w)|0,(M|0)!=0):0){c[j>>2]=M;c[j+4>>2]=0;M=a+32|0;L=c[M>>2]|0;if((L|0)==(c[a+36>>2]|0)){uf(a+28|0,j);tf(w);i=e;return}if(!L)N=0;else{k=j;j=c[k+4>>2]|0;G=L;c[G>>2]=c[k>>2];c[G+4>>2]=j;N=c[M>>2]|0}c[M>>2]=N+8;tf(w);i=e;return}N=Lh(w,b)|0;if(N){c[h>>2]=N;c[h+4>>2]=0;N=a+32|0;b=c[N>>2]|0;if((b|0)==(c[a+36>>2]|0)){uf(a+28|0,h);tf(w);i=e;return}if(!b)O=0;else{M=h;h=c[M+4>>2]|0;j=b;c[j>>2]=c[M>>2];c[j+4>>2]=h;O=c[N>>2]|0}c[N>>2]=O+8;tf(w);i=e;return}O=Qh(w,d)|0;if((O|0)==117)if((ch(w+56|0)|0?(N=Be(y,((c[I>>2]|0)+(c[A>>2]|0)|0)/2|0,c[D>>2]|0,1)|0,h=c[y>>2]|0,(N|0)<(((((c[D>>2]|0)-h|0)*90|0)/100|0)+h|0)):0)?!(Ge(y,((c[I>>2]|0)+(c[A>>2]|0)|0)/2|0,N)|0):0){h=Be(y,((c[I>>2]|0)+(c[A>>2]|0)|0)/2|0,N+ -1|0,0)|0;N=h+ -1|0;j=c[y>>2]|0;M=c[D>>2]|0;a:do if((N|0)>((((M-j|0)*40|0)/100|0)+j|0)){b=w+248|0;G=c[A>>2]|0;k=N;L=h;while(1){l=Ce(y,((c[I>>2]|0)+G|0)/2|0,k,1)|0;K=c[A>>2]|0;if((l|0)<=(K|0)){l=Ug(b,k-(c[y>>2]|0)|0)|0;m=c[A>>2]|0;if((l|0)>(((c[I>>2]|0)+1-m|0)/10|0|0))P=m;else break}else P=K;K=k+ -1|0;m=c[y>>2]|0;l=c[D>>2]|0;if((K|0)>((((l-m|0)*40|0)/100|0)+m|0)){J=k;G=P;k=K;L=J}else{Q=K;R=l;S=m;T=k;break a}}Q=k;R=c[D>>2]|0;S=c[y>>2]|0;T=L}else{Q=N;R=M;S=j;T=h}while(0);if(!((T|0)>(R|0)?1:(Q|0)<=((((R-S|0)*40|0)/100|0)+S|0))?Yf(a,116,Q,114,0)|0:0){tf(w);i=e;return}else U=85}else U=85;else if((O|0)==78){Q=c[A>>2]|0;if(((c[D>>2]|0)+1-(c[y>>2]|0)|0)>((c[I>>2]|0)+1-Q|0)){do if((Q|0)>=(c[d+4>>2]|0)){S=w+104|0;if((c[w+112>>2]|0)<0)Og(S);R=(Ug(S,((((c[w+144>>2]|0)-(c[w+140>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)<<2;if((R|0)<((c[I>>2]|0)+1-(c[A>>2]|0)|0)){R=w+248|0;S=kh(R,0,-1)|0;T=w+256|0;if((c[T>>2]|0)<0)Og(R);h=w+288|0;j=c[h>>2]|0;M=w+284|0;N=c[M>>2]|0;if((S|0)>=((((j-N>>2)*40|0)+ -40|0)/100|0|0)){if((c[T>>2]|0)<0){Og(R);V=c[h>>2]|0;W=c[M>>2]|0}else{V=j;W=N}if((S|0)<((((V-W>>2)*50|0)+ -50|0)/100|0|0)){if(!(Yf(a,114,(c[y>>2]|0)+S|0,118,0)|0))break;tf(w);i=e;return}}}}while(0);if(O)U=85}else U=85}else if(O)U=85;if((U|0)==85){c[f>>2]=O;c[f+4>>2]=0;O=a+32|0;W=c[O>>2]|0;if((W|0)==(c[a+36>>2]|0)){uf(a+28|0,f);tf(w);i=e;return}if(!W)X=0;else{V=f;f=c[V+4>>2]|0;Q=W;c[Q>>2]=c[V>>2];c[Q+4>>2]=f;X=c[O>>2]|0}c[O>>2]=X+8;tf(w);i=e;return}X=(c[I>>2]|0)+1-(c[A>>2]|0)|0;O=(c[D>>2]|0)+1-(c[y>>2]|0)|0;f=w+200|0;b:do if((lh(f,-1)|0)<3){if((lh(f,(((c[I>>2]|0)+1-(c[A>>2]|0)|0)/8|0)+(((((O|0)<(X|0)?O:X)|0)/30|0)+1)|0)|0)!=2){Q=(c[I>>2]|0)+1-(c[A>>2]|0)|0;if((Q|0)<=15)break;if((lh(f,(Q|0)/8|0)|0)!=2)break}Q=Rh(w,d)|0;c:do if((Q|0)==110){V=c[I>>2]|0;if((V|0)<=(((c[d+12>>2]|0)+(c[d+4>>2]|0)|0)/2|0|0)){c[g>>2]=34;c[g+4>>2]=0;W=a+32|0;S=c[W>>2]|0;if((S|0)==(c[a+36>>2]|0)){uf(a+28|0,g);tf(w);i=e;return}if(!S)Y=0;else{N=g;j=c[N+4>>2]|0;M=S;c[M>>2]=c[N>>2];c[M+4>>2]=j;Y=c[W>>2]|0}c[W>>2]=Y+8;tf(w);i=e;return}W=w+56|0;j=w+64|0;do if(((c[D>>2]|0)+1-(c[y>>2]|0)|0)>(V+1-(c[A>>2]|0)|0)){if((c[j>>2]|0)<0)Og(W);M=(Ug(W,((((c[w+96>>2]|0)-(c[w+92>>2]|0)>>2)*10|0)+ -10|0)/100|0)|0)*10|0;if((M|0)<((c[D>>2]|0)+1-(c[y>>2]|0)|0)){M=w+152|0;N=w+160|0;if((c[N>>2]|0)<0)Og(M);S=w+192|0;h=w+188|0;if(Wg(M,((((c[S>>2]|0)-(c[h>>2]|0)>>2)*75|0)+ -75|0)/100|0,2)|0)break;if((c[N>>2]|0)<0)Og(M);N=(Ug(M,((((c[S>>2]|0)-(c[h>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)*10|0;h=c[D>>2]|0;if((N|0)<=(h+1-(c[y>>2]|0)|0))break;if(Ge(y,((c[I>>2]|0)+(c[A>>2]|0)|0)/2|0,h)|0)break;tf(w);i=e;return}}while(0);if((c[j>>2]|0)<0)Og(W);V=(Ug(W,((((c[w+96>>2]|0)-(c[w+92>>2]|0)>>2)*10|0)+ -10|0)/100|0)|0)<<1;h=w+152|0;do if((V|0)>((c[D>>2]|0)+1-(c[y>>2]|0)|0)){if((c[w+160>>2]|0)<0)Og(h);if(Wg(h,((((c[w+192>>2]|0)-(c[w+188>>2]|0)>>2)*75|0)+ -75|0)/100|0,2)|0)break;N=Be(y,((c[I>>2]|0)+(c[A>>2]|0)|0)/2|0,c[D>>2]|0,1)|0;S=c[y>>2]|0;if((N|0)>(((((c[D>>2]|0)-S|0)*95|0)/100|0)+S|0))break;if(Ge(y,((c[I>>2]|0)+(c[A>>2]|0)|0)/2|0,N)|0)break;if(!(Yf(a,114,((c[D>>2]|0)+(c[y>>2]|0)|0)/2|0,116,0)|0))break;tf(w);i=e;return}while(0);if((lh(h,-1)|0)==1){if((c[w+160>>2]|0)<0)Og(h);if(Wg(h,((((c[w+192>>2]|0)-(c[w+188>>2]|0)>>2)*75|0)+ -75|0)/100|0,2)|0){U=162;break}V=c[A>>2]|0;W=(c[I>>2]|0)-V|0;j=((W*60|0)/100|0)+V|0;if((j|0)<=(((W*25|0)/100|0)+V|0)){U=162;break}V=0;W=0;N=j;d:while(1){j=((c[D>>2]|0)+(c[y>>2]|0)|0)/2|0;S=j-(Be(y,N,j,1)|0)|0;if((S|0)>(W|0))if(V){Z=S;U=130}else{_=0;$=S}else if((S<<1|0)<(W|0)&(W|0)>2|V){Z=W;U=130}else{_=0;$=W}do if((U|0)==130){U=0;if(!(Fh(S,Z,25,1)|0)){_=1;$=Z;break}j=De(y,((c[I>>2]|0)+(c[A>>2]|0)|0)/2|0,((c[D>>2]|0)+(c[y>>2]|0)|0)/2|0,1)|0;M=((c[D>>2]|0)+(c[y>>2]|0)|0)/2|0;e:do if((M|0)>(j|0))aa=M;else{R=c[I>>2]|0;T=M;while(1){P=Ee(y,(R+(c[A>>2]|0)|0)/2|0,T,1)|0;R=c[I>>2]|0;G=T+1|0;if((P|0)<(R|0)){aa=T;break e}if((T|0)>=(j|0)){aa=G;break}else T=G}}while(0);if((aa|0)<=(c[y>>2]|0)){_=1;$=Z;break}if((aa|0)>=(c[D>>2]|0)){_=1;$=Z;break}if(Yf(a,102,aa+ -1|0,108,0)|0)break d;else{_=1;$=Z}}while(0);N=N+ -1|0;S=c[A>>2]|0;if((N|0)<=(((((c[I>>2]|0)-S|0)*25|0)/100|0)+S|0)){U=162;break c}else{V=_;W=$}}tf(w);i=e;return}else U=162}else if((Q|0)==104){W=w+56|0;if((c[w+64>>2]|0)<0)Og(W);V=(Ug(W,((((c[w+96>>2]|0)-(c[w+92>>2]|0)>>2)*10|0)+ -10|0)/100|0)|0)<<1;W=w+152|0;if((V|0)<=((c[D>>2]|0)+1-(c[y>>2]|0)|0)){if(!(hh(W,30)|0)){U=162;break}Yf(a,102,((c[D>>2]|0)+(c[y>>2]|0)|0)/2|0,105,0)|0;tf(w);i=e;return}if((c[w+160>>2]|0)<0)Og(W);if((Ug(W,((((c[w+192>>2]|0)-(c[w+188>>2]|0)>>2)*70|0)+ -70|0)/100|0)|0)<=1){tf(w);i=e;return}W=c[A>>2]|0;V=Ce(y,((((c[I>>2]|0)-W|0)*70|0)/100|0)+W|0,c[D>>2]|0,1)|0;if((V|0)<=(c[A>>2]|0)){tf(w);i=e;return}V=w+248|0;W=Qg(V)|0;N=Sg(V)|0;h=c[y>>2]|0;S=c[D>>2]|0;j=S-h|0;M=((j*40|0)/100|0)+h|0;if((M|0)>(((j*60|0)/100|0)+h|0)){ba=h;ca=S;da=0}else{S=h;h=0;j=W+1-N|0;N=M;while(1){if((Ug(V,N-S|0)|0)<(j|0)){ea=N;fa=Ug(V,N-(c[y>>2]|0)|0)|0}else{ea=h;fa=j}M=c[y>>2]|0;W=c[D>>2]|0;if((N|0)<((((W-M|0)*60|0)/100|0)+M|0)){S=M;h=ea;j=fa;N=N+1|0}else{ba=M;ca=W;da=ea;break}}}if(!((da|0)>(ba|0)&(da|0)<(ca|0))){tf(w);i=e;return}Yf(a,114,da+ -1|0,102,0)|0;tf(w);i=e;return}else if((Q|0)==107){N=w+56|0;if((c[w+64>>2]|0)<0)Og(N);j=(Ug(N,((((c[w+96>>2]|0)-(c[w+92>>2]|0)>>2)*10|0)+ -10|0)/100|0)|0)<<1;if((j|0)>((c[D>>2]|0)+1-(c[y>>2]|0)|0)){j=w+152|0;if((c[w+160>>2]|0)<0)Og(j);if(!(Wg(j,((((c[w+192>>2]|0)-(c[w+188>>2]|0)>>2)*75|0)+ -75|0)/100|0,2)|0)?Yf(a,114,((c[D>>2]|0)+(c[y>>2]|0)|0)/2|0,116,0)|0:0){tf(w);i=e;return}else U=162}else U=162}else if(!Q)break b;while(0);if((U|0)==162?(Q|0)==0:0)break;c[o>>2]=Q;c[o+4>>2]=0;L=a+32|0;k=c[L>>2]|0;if((k|0)==(c[a+36>>2]|0)){uf(a+28|0,o);tf(w);i=e;return}if(!k)ga=0;else{j=o;N=c[j+4>>2]|0;h=k;c[h>>2]=c[j>>2];c[h+4>>2]=N;ga=c[L>>2]|0}c[L>>2]=ga+8;tf(w);i=e;return}while(0);if((lh(f,-1)|0)==3){if((((lh(f,((c[I>>2]|0)+1-(c[A>>2]|0)|0)/2|0)|0)==1?(lh(w+104|0,-1)|0)==3:0)?(lh(w+56|0,-1)|0)==2:0)?(lh(w+152|0,-1)|0)==2:0){c[p>>2]=42;c[p+4>>2]=0;ga=a+32|0;o=c[ga>>2]|0;if((o|0)==(c[a+36>>2]|0)){uf(a+28|0,p);tf(w);i=e;return}if(!o)ha=0;else{U=p;p=c[U+4>>2]|0;da=o;c[da>>2]=c[U>>2];c[da+4>>2]=p;ha=c[ga>>2]|0}c[ga>>2]=ha+8;tf(w);i=e;return}do if(((((Xe(y,((c[I>>2]|0)+(c[A>>2]|0)|0)/2|0,((c[D>>2]|0)+(c[y>>2]|0)|0)/2|0)|0)==0?(Xe(y,(((c[I>>2]|0)+(c[A>>2]|0)|0)/2|0)+ -1|0,((c[D>>2]|0)+(c[y>>2]|0)|0)/2|0)|0)==0:0)?(Xe(y,(((c[I>>2]|0)+(c[A>>2]|0)|0)/2|0)+1|0,((c[D>>2]|0)+(c[y>>2]|0)|0)/2|0)|0)==0:0)?(ha=Be(y,((c[I>>2]|0)+(c[A>>2]|0)|0)/2|0,((c[D>>2]|0)+(c[y>>2]|0)|0)/2|0,1)|0,ga=c[y>>2]|0,(ha|0)<=(((((c[D>>2]|0)-ga|0)*25|0)/100|0)+ga|0)):0)?(ha=c[A>>2]|0,p=((((c[I>>2]|0)-ha|0)*95|0)/100|0)+ha|0,ha=De(y,p,(De(y,p,(De(y,p,ga,1)|0)+1|0,0)|0)+1|0,1)|0,(ha|0)>(c[y>>2]|0)):0){if((ha|0)>=(c[D>>2]|0))break;if(!(Yf(a,114,ha,110,0)|0))break;tf(w);i=e;return}while(0);if((lh(w+104|0,((c[I>>2]|0)+1-(c[A>>2]|0)|0)/3|0)|0)!=1){tf(w);i=e;return}c[q>>2]=109;c[q+4>>2]=0;ha=a+32|0;ga=c[ha>>2]|0;if((ga|0)==(c[a+36>>2]|0)){uf(a+28|0,q);tf(w);i=e;return}if(!ga)ia=0;else{p=q;q=c[p+4>>2]|0;da=ga;c[da>>2]=c[p>>2];c[da+4>>2]=q;ia=c[ha>>2]|0}c[ha>>2]=ia+8;tf(w);i=e;return}ia=w+104|0;if(((((lh(f,-1)|0)==4?(lh(ia,((c[I>>2]|0)+1-(c[A>>2]|0)|0)/3|0)|0)==1:0)?(f=c[A>>2]|0,ha=((((c[I>>2]|0)-f|0)*95|0)/100|0)+f|0,f=De(y,ha,(De(y,ha,(De(y,ha,c[y>>2]|0,1)|0)+1|0,0)|0)+1|0,1)|0,(f|0)>(c[y>>2]|0)):0)?(f|0)<(c[D>>2]|0):0)?Yf(a,114,f,109,0)|0:0){tf(w);i=e;return}if((lh(ia,((c[I>>2]|0)+1-(c[A>>2]|0)|0)/4|0)|0)==3){if((xh(w,((c[I>>2]|0)+(c[A>>2]|0)|0)/2|0)|0)==2?(ia=c[A>>2]|0,(xh(w,((((c[I>>2]|0)-ia|0)*80|0)/100|0)+ia|0)|0)==3):0){tf(w);i=e;return}if(Me(y,x)|0){tf(w);i=e;return}if((xh(w,((c[I>>2]|0)+(c[A>>2]|0)|0)/2|0)|0)>=4?Ge(y,((c[I>>2]|0)+(c[A>>2]|0)|0)/2|0,((c[D>>2]|0)+(c[y>>2]|0)|0)/2|0)|0:0){tf(w);i=e;return}c[r>>2]=119;c[r+4>>2]=0;y=a+32|0;D=c[y>>2]|0;if((D|0)==(c[a+36>>2]|0)){uf(a+28|0,r);tf(w);i=e;return}if(!D)ja=0;else{A=r;r=c[A+4>>2]|0;I=D;c[I>>2]=c[A>>2];c[I+4>>2]=r;ja=c[y>>2]|0}c[y>>2]=ja+8;tf(w);i=e;return}ja=Wh(w,d)|0;if(ja){c[s>>2]=ja;c[s+4>>2]=0;ja=a+32|0;y=c[ja>>2]|0;if((y|0)==(c[a+36>>2]|0)){uf(a+28|0,s);tf(w);i=e;return}if(!y)ka=0;else{r=s;s=c[r+4>>2]|0;I=y;c[I>>2]=c[r>>2];c[I+4>>2]=s;ka=c[ja>>2]|0}c[ja>>2]=ka+8;tf(w);i=e;return}ka=Ah(w,d)|0;if(!ka){tf(w);i=e;return}c[v>>2]=ka;c[v+4>>2]=0;ka=a+32|0;d=c[ka>>2]|0;if((d|0)==(c[a+36>>2]|0)){uf(a+28|0,v);tf(w);i=e;return}if(!d)la=0;else{ja=v;v=c[ja+4>>2]|0;s=d;c[s>>2]=c[ja>>2];c[s+4>>2]=v;la=c[ka>>2]|0}c[ka>>2]=la+8;tf(w);i=e;return}c[t>>2]=z;c[t+4>>2]=0;z=a+32|0;la=c[z>>2]|0;if((la|0)==(c[a+36>>2]|0)){uf(a+28|0,t);tf(w);i=e;return}if(!la)ma=0;else{a=t;t=c[a+4>>2]|0;ka=la;c[ka>>2]=c[a>>2];c[ka+4>>2]=t;ma=c[z>>2]|0}c[z>>2]=ma+8;tf(w);i=e;return}function rf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;e=i;i=i+416|0;f=e+16|0;g=e+8|0;h=e;j=e+72|0;k=e+32|0;l=e+24|0;m=Sf(a,0)|0;n=We(m,0)|0;if(!(Pd(n,m)|0)){i=e;return}uh(j,m);o=n+4|0;p=m+4|0;q=(c[o>>2]|0)-(c[p>>2]|0)|0;r=m+12|0;s=n+12|0;n=(c[r>>2]|0)-(c[s>>2]|0)|0;t=S(q-n|0)|0;u=((c[s>>2]|0)+1-(c[o>>2]|0)|0)/4|0;do if((t|0)>(((u|0)>2?u:2)|0)?!(Fh(q,n,40,2)|0):0){if((q|0)<(n|0)){v=Xh(j,d)|0;if(!v)break;c[h>>2]=v;c[h+4>>2]=0;v=a+32|0;w=c[v>>2]|0;if((w|0)==(c[a+36>>2]|0)){uf(a+28|0,h);break}if(!w)x=0;else{y=h;z=c[y+4>>2]|0;A=w;c[A>>2]=c[y>>2];c[A+4>>2]=z;x=c[v>>2]|0}c[v>>2]=x+8;break}if((q|0)>(n|0)?(v=Zh(j,b)|0,(v|0)!=0):0){c[f>>2]=v;c[f+4>>2]=0;z=a+32|0;A=c[z>>2]|0;if((A|0)==(c[a+36>>2]|0))uf(a+28|0,f);else{if(!A)B=0;else{y=f;w=c[y+4>>2]|0;C=A;c[C>>2]=c[y>>2];c[C+4>>2]=w;B=c[z>>2]|0}c[z>>2]=B+8}if((v|0)==243?(v=c[o>>2]|0,z=(c[s>>2]|0)-(c[r>>2]|0)+v|0,w=z+ -1|0,(z|0)<(v|0)?(w|0)>(c[p>>2]|0):0):0){Pe(k,m);Ve(m,w);Te(k,z);z=it(40)|0;Pe(z,k);c[l>>2]=z;w=a+20|0;v=c[w>>2]|0;if((v|0)==(c[a+24>>2]|0))ke(a+16|0,l);else{if(!v)D=0;else{c[v>>2]=z;D=c[w>>2]|0}c[w>>2]=D+4}Qe(k)}}}else E=4;while(0);a:do if((E|0)==4){k=Yh(j,b,d)|0;do if((k|0)==81){if(Fh(q,n,40,2)|0){c[g>>2]=97;c[g+4>>2]=1;D=a+32|0;l=c[D>>2]|0;if((l|0)==(c[a+36>>2]|0)){uf(a+28|0,g);break}if(!l)F=0;else{m=g;p=c[m+4>>2]|0;r=l;c[r>>2]=c[m>>2];c[r+4>>2]=p;F=c[D>>2]|0}c[D>>2]=F+8}}else if(!k)break a;while(0);c[f>>2]=k;c[f+4>>2]=0;D=a+32|0;p=c[D>>2]|0;if((p|0)==(c[a+36>>2]|0)){uf(a+28|0,f);break}if(!p)G=0;else{r=f;m=c[r+4>>2]|0;l=p;c[l>>2]=c[r>>2];c[l+4>>2]=m;G=c[D>>2]|0}c[D>>2]=G+8}while(0);tf(j);i=e;return}function sf(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0;e=i;i=i+432|0;f=e+216|0;g=e+96|0;h=e+88|0;j=e+184|0;k=e+200|0;l=e+32|0;m=e+40|0;n=e+48|0;o=e+56|0;p=e+144|0;q=e+160|0;r=e+176|0;s=e+192|0;t=e+208|0;u=e+104|0;v=e+112|0;w=e+120|0;x=e+128|0;y=e+16|0;z=e+24|0;A=e+136|0;B=e+64|0;C=e+72|0;D=e+152|0;E=e;F=e+8|0;G=e+80|0;H=e+168|0;I=e+376|0;J=e+328|0;K=e+280|0;L=e+232|0;M=e+224|0;N=Sf(b,0)|0;O=We(N,0)|0;P=We(N,1)|0;Ng(I,N,0);Ng(J,N,1);Ng(K,N,2);Ng(L,N,3);Q=P+4|0;R=P+12|0;T=O+4|0;U=O+12|0;V=(S((((c[R>>2]|0)+(c[Q>>2]|0)|0)/2|0)-(((c[U>>2]|0)+(c[T>>2]|0)|0)/2|0)|0)|0)*10|0;W=N+12|0;X=N+4|0;a:do if(((V|0)<=((c[W>>2]|0)+1-(c[X>>2]|0)|0)?Qd(O,N)|0:0)?Qd(P,N)|0:0){Y=c[W>>2]|0;Z=c[U>>2]|0;_=c[X>>2]|0;do if((Y-Z|0)<=((c[T>>2]|0)-_|0)?(Y-(c[R>>2]|0)|0)<=((c[Q>>2]|0)-_|0):0){if(!($g(L)|0)){$=c[W>>2]|0;aa=c[X>>2]|0;ba=c[U>>2]|0;break}c[D>>2]=109;c[D+4>>2]=0;ca=b+32|0;da=c[ca>>2]|0;if((da|0)==(c[b+36>>2]|0)){uf(b+28|0,D);break a}if(!da)ea=0;else{fa=D;ga=c[fa+4>>2]|0;ha=da;c[ha>>2]=c[fa>>2];c[ha+4>>2]=ga;ea=c[ca>>2]|0}c[ca>>2]=ea+8;break a}else{$=Y;aa=_;ba=Z}while(0);Z=(S(ba-(($+aa|0)/2|0)|0)|0)*5|0;_=c[W>>2]|0;Y=c[X>>2]|0;if((((Z|0)<=(_+1-Y|0)?(Z=(S((c[R>>2]|0)-((Y+_|0)/2|0)|0)|0)*5|0,(Z|0)<=((c[W>>2]|0)+1-(c[X>>2]|0)|0)):0)?$g(J)|0:0)?(lh(L,-1)|0)==2:0){c[w>>2]=119;c[w+4>>2]=0;Z=b+32|0;_=c[Z>>2]|0;if((_|0)==(c[b+36>>2]|0)){uf(b+28|0,w);break}if(!_)ia=0;else{Y=w;ca=c[Y+4>>2]|0;ga=_;c[ga>>2]=c[Y>>2];c[ga+4>>2]=ca;ia=c[Z>>2]|0}c[Z>>2]=ia+8}}else ja=22;while(0);b:do if(((ja|0)==22?Pd(O,N)|0:0)?Pd(P,N)|0:0){ia=c[N>>2]|0;w=N+8|0;aa=c[w>>2]|0;$=(aa+ia|0)/2|0;if((c[O>>2]|0)>($|0)?(c[P>>2]|0)>($|0):0)break;$=O+8|0;ba=(((aa-ia|0)*40|0)/100|0)+ia|0;if((c[$>>2]|0)<(ba|0)?(c[P+8>>2]|0)<(ba|0):0)break;ba=((c[W>>2]|0)+(c[X>>2]|0)|0)/2|0;if((c[T>>2]|0)<=(ba|0)?(c[R>>2]|0)>=(ba|0):0){ba=ye(O)|0;ia=ye(P)|0;aa=c[w>>2]|0;ea=((c[N>>2]|0)+aa|0)/2|0;D=((c[$>>2]|0)+(c[O>>2]|0)|0)/2|0;V=P+8|0;Z=((c[V>>2]|0)+(c[P>>2]|0)|0)/2|0;ca=(Z|0)<(D|0)?Z:D;D=aa-((ca|0)<(ea|0)?ca:ea)|0;ea=c[X>>2]|0;ca=ea;aa=(c[U>>2]|0)-ea|0;while(1){ea=aa+1|0;if((ea|0)>=((c[Q>>2]|0)-ca|0))break;if((Ug(K,ea)|0)>(D|0)){ja=34;break}ca=c[X>>2]|0;aa=ea}if((ja|0)==34){c[f>>2]=103;c[f+4>>2]=2;aa=b+32|0;ca=c[aa>>2]|0;if((ca|0)==(c[b+36>>2]|0)){uf(b+28|0,f);break}if(!ca)ka=0;else{D=f;ea=c[D+4>>2]|0;Z=ca;c[Z>>2]=c[D>>2];c[Z+4>>2]=ea;ka=c[aa>>2]|0}c[aa>>2]=ka+8;break}if(Fh(ba,ia,50,1)|0){aa=((c[W>>2]|0)+(c[X>>2]|0)|0)/2|0;if((((c[U>>2]|0)>(aa|0)?(c[Q>>2]|0)<(aa|0):0)?Md(O,P)|0:0)?!(Jd(O,P)|0):0){c[g>>2]=48;c[g+4>>2]=0;aa=b+32|0;ea=c[aa>>2]|0;if((ea|0)==(c[b+36>>2]|0)){uf(b+28|0,g);break}if(!ea)la=0;else{Z=g;D=c[Z+4>>2]|0;ca=ea;c[ca>>2]=c[Z>>2];c[ca+4>>2]=D;la=c[aa>>2]|0}c[aa>>2]=la+8;break}if((c[U>>2]|0)<=(c[Q>>2]|0)){if(((Me(N,M)|0?(c[M>>2]|0)>(((c[W>>2]|0)+1-(c[X>>2]|0)|0)/2|0|0):0)?Le(N,M)|0:0)?(c[M>>2]|0)>(((c[W>>2]|0)+1-(c[X>>2]|0)|0)/2|0|0):0){c[h>>2]=115;c[h+4>>2]=0;aa=b+32|0;D=c[aa>>2]|0;if((D|0)==(c[b+36>>2]|0)){uf(b+28|0,h);break}if(!D)ma=0;else{ca=h;Z=c[ca+4>>2]|0;ea=D;c[ea>>2]=c[ca>>2];c[ea+4>>2]=Z;ma=c[aa>>2]|0}c[aa>>2]=ma+8;break}do if($g(I)|0){if(!(gh(I)|0)){if(!(_g(I)|0))break;if(!(Ye(N)|0))break}c[j>>2]=66;c[j+4>>2]=0;aa=b+32|0;Z=c[aa>>2]|0;if((Z|0)==(c[b+36>>2]|0)){uf(b+28|0,j);break b}if(!Z)na=0;else{ea=j;ca=c[ea+4>>2]|0;D=Z;c[D>>2]=c[ea>>2];c[D+4>>2]=ca;na=c[aa>>2]|0}c[aa>>2]=na+8;break b}while(0);aa=Be(O,c[U>>2]|0,(c[$>>2]|0)+1|0,1)|0;if((aa+ -1|0)<=((De(P,c[Q>>2]|0,(c[P>>2]|0)+ -1|0,1)|0)+1|0)){do if(!(Zg(I)|0)?!(ah(I)|0):0){if(!(hh(K,50)|0)){if((lh(J,-1)|0)!=1)break;c[l>>2]=97;c[l+4>>2]=1;aa=b+32|0;ca=c[aa>>2]|0;if((ca|0)==(c[b+36>>2]|0)){uf(b+28|0,l);break}if(!ca)oa=0;else{D=l;ea=c[D+4>>2]|0;Z=ca;c[Z>>2]=c[D>>2];c[Z+4>>2]=ea;oa=c[aa>>2]|0}c[aa>>2]=oa+8}}else ja=71;while(0);do if((ja|0)==71){c[k>>2]=101;c[k+4>>2]=1;aa=b+32|0;ea=c[aa>>2]|0;if((ea|0)==(c[b+36>>2]|0)){uf(b+28|0,k);break}if(!ea)pa=0;else{Z=k;D=c[Z+4>>2]|0;ca=ea;c[ca>>2]=c[Z>>2];c[ca+4>>2]=D;pa=c[aa>>2]|0}c[aa>>2]=pa+8}while(0);if(ch(L)|0){c[m>>2]=36;c[m+4>>2]=0;aa=b+32|0;D=c[aa>>2]|0;if((D|0)==(c[b+36>>2]|0)){uf(b+28|0,m);break}if(!D)qa=0;else{ca=m;Z=c[ca+4>>2]|0;ea=D;c[ea>>2]=c[ca>>2];c[ea+4>>2]=Z;qa=c[aa>>2]|0}c[aa>>2]=qa+8;break}}aa=c[N>>2]|0;Z=((c[w>>2]|0)+aa|0)/2|0;ea=c[$>>2]|0;if(((Z|0)>((ea+(c[O>>2]|0)|0)/2|0|0)?(ca=c[V>>2]|0,(Z|0)>((ca+(c[P>>2]|0)|0)/2|0|0)):0)?!((Z|0)<(ea|0)&(Z|0)<(ca|0)):0){c[n>>2]=38;c[n+4>>2]=0;ca=b+32|0;Z=c[ca>>2]|0;if((Z|0)==(c[b+36>>2]|0)){uf(b+28|0,n);break}if(!Z)ra=0;else{ea=n;D=c[ea+4>>2]|0;ga=Z;c[ga>>2]=c[ea>>2];c[ga+4>>2]=D;ra=c[ca>>2]|0}c[ca>>2]=ra+8;break}ca=c[Q>>2]|0;D=b+8|0;ga=N+16|0;ea=c[U>>2]|0;while(1){ea=ea+1|0;if((ea|0)>=(ca|0))break;if(!(a[(c[(c[ga>>2]|0)+((ea-(c[X>>2]|0)|0)*12|0)>>2]|0)+((((c[D>>2]|0)+(c[b>>2]|0)|0)/2|0)-aa)>>0]|0)){ja=100;break}}if((ja|0)==100){c[o>>2]=103;c[o+4>>2]=0;aa=b+32|0;D=c[aa>>2]|0;if((D|0)==(c[b+36>>2]|0)){uf(b+28|0,o);break}if(!D)sa=0;else{ea=o;ga=c[ea+4>>2]|0;Z=D;c[Z>>2]=c[ea>>2];c[Z+4>>2]=ga;sa=c[aa>>2]|0}c[aa>>2]=sa+8;break}aa=d+12|0;do if((c[aa>>2]|0)>(((c[R>>2]|0)+ca|0)/2|0|0)){if(!(Zg(L)|0)){if(!(ah(L)|0))break;if(!(ah(J)|0))break}ga=c[X>>2]|0;Z=c[d+4>>2]|0;c:do if((ga|0)>=(Z|0)){if((1-ga+(c[W>>2]|0)|0)>(1-Z+(c[aa>>2]|0)|0))break;if(!(!(ah(I)|0)?!(Zg(I)|0):0))ja=113;do if((ja|0)==113){if(ah(K)|0?(c[V>>2]|0)<=(c[$>>2]|0):0)break;c[p>>2]=101;c[p+4>>2]=1;ea=b+32|0;D=c[ea>>2]|0;if((D|0)==(c[b+36>>2]|0)){uf(b+28|0,p);break c}if(!D)ta=0;else{Y=p;_=c[Y+4>>2]|0;ha=D;c[ha>>2]=c[Y>>2];c[ha+4>>2]=_;ta=c[ea>>2]|0}c[ea>>2]=ta+8;break c}while(0);ea=c[w>>2]|0;if((c[K+8>>2]|0)<0)Og(K);_=ea-(Ug(K,((((c[K+40>>2]|0)-(c[K+36>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)|0;if((_|0)<=(c[$>>2]|0))break;if(hh(K,50)|0)break;c[q>>2]=97;c[q+4>>2]=1;_=b+32|0;ea=c[_>>2]|0;if((ea|0)==(c[b+36>>2]|0)){uf(b+28|0,q);break}if(!ea)ua=0;else{ha=q;Y=c[ha+4>>2]|0;D=ea;c[D>>2]=c[ha>>2];c[D+4>>2]=Y;ua=c[_>>2]|0}c[_>>2]=ua+8}while(0);Z=c[X>>2]|0;ga=c[W>>2]|0;do if((c[U>>2]|0)>((ga+Z|0)/2|0|0)){if((c[T>>2]|0)<=((((ga-Z|0)*30|0)/100|0)+Z|0))break;c[r>>2]=233;c[r+4>>2]=0;_=b+32|0;Y=c[_>>2]|0;if((Y|0)==(c[b+36>>2]|0)){uf(b+28|0,r);break b}if(!Y)va=0;else{D=r;ha=c[D+4>>2]|0;ea=Y;c[ea>>2]=c[D>>2];c[ea+4>>2]=ha;va=c[_>>2]|0}c[_>>2]=va+8;break b}while(0);c[s>>2]=56;c[s+4>>2]=0;Z=b+32|0;ga=c[Z>>2]|0;if((ga|0)==(c[b+36>>2]|0)){uf(b+28|0,s);break b}if(!ga)wa=0;else{_=s;ha=c[_+4>>2]|0;ea=ga;c[ea>>2]=c[_>>2];c[ea+4>>2]=ha;wa=c[Z>>2]|0}c[Z>>2]=wa+8;break b}while(0);if((lh(I,-1)|0)==2?(lh(K,-1)|0)==1:0){ca=c[aa>>2]|0;do if(((ca+(c[d+4>>2]|0)|0)/2|0|0)<(c[U>>2]|0)){if((ca|0)>=(c[R>>2]|0))break;c[t>>2]=103;c[t+4>>2]=0;Z=b+32|0;ha=c[Z>>2]|0;if((ha|0)==(c[b+36>>2]|0)){uf(b+28|0,t);break b}if(!ha)xa=0;else{ea=t;_=c[ea+4>>2]|0;ga=ha;c[ga>>2]=c[ea>>2];c[ga+4>>2]=_;xa=c[Z>>2]|0}c[Z>>2]=xa+8;break b}while(0);c[u>>2]=97;c[u+4>>2]=0;ca=b+32|0;Z=c[ca>>2]|0;if((Z|0)==(c[b+36>>2]|0)){uf(b+28|0,u);break}if(!Z)ya=0;else{_=u;ga=c[_+4>>2]|0;ea=Z;c[ea>>2]=c[_>>2];c[ea+4>>2]=ga;ya=c[ca>>2]|0}c[ca>>2]=ya+8;break}ca=c[aa>>2]|0;ga=(ca+(c[d+4>>2]|0)|0)/2|0;do if((ga|0)>(c[T>>2]|0)){if((ga|0)>=(c[U>>2]|0)?(ca|0)>=(((c[R>>2]|0)+(c[Q>>2]|0)|0)/2|0|0):0)break;c[v>>2]=103;c[v+4>>2]=2;ea=b+32|0;_=c[ea>>2]|0;if((_|0)==(c[b+36>>2]|0)){uf(b+28|0,v);break}if(!_)za=0;else{Z=v;ha=c[Z+4>>2]|0;D=_;c[D>>2]=c[Z>>2];c[D+4>>2]=ha;za=c[ea>>2]|0}c[ea>>2]=za+8}while(0);c[f>>2]=66;c[f+4>>2]=1;ca=b+32|0;ga=c[ca>>2]|0;aa=b+36|0;if((ga|0)==(c[aa>>2]|0)){uf(b+28|0,f);Aa=c[ca>>2]|0}else{if(!ga)Ba=0;else{ea=f;ha=c[ea+4>>2]|0;D=ga;c[D>>2]=c[ea>>2];c[D+4>>2]=ha;Ba=c[ca>>2]|0}ha=Ba+8|0;c[ca>>2]=ha;Aa=ha}c[x>>2]=97;c[x+4>>2]=0;if((Aa|0)==(c[aa>>2]|0)){uf(b+28|0,x);break}if(!Aa)Ca=0;else{aa=x;ha=c[aa+4>>2]|0;D=Aa;c[D>>2]=c[aa>>2];c[D+4>>2]=ha;Ca=c[ca>>2]|0}c[ca>>2]=Ca+8;break}}if((ba|0)>(ia|0)?Md(O,P)|0:0){if(Nd(O,P)|0){if(!(Jd(O,P)|0))break;c[A>>2]=81;c[A+4>>2]=0;ca=b+32|0;ha=c[ca>>2]|0;if((ha|0)==(c[b+36>>2]|0)){uf(b+28|0,A);break}if(!ha)Da=0;else{D=A;aa=c[D+4>>2]|0;ea=ha;c[ea>>2]=c[D>>2];c[ea+4>>2]=aa;Da=c[ca>>2]|0}c[ca>>2]=Da+8;break}if((c[P>>2]|0)>(((c[w>>2]|0)+(c[N>>2]|0)|0)/2|0|0)?(c[R>>2]|0)<((c[W>>2]|0)+ -1-(c[U>>2]|0)+(c[T>>2]|0)|0):0){c[y>>2]=57;c[y+4>>2]=0;ca=b+32|0;aa=c[ca>>2]|0;if((aa|0)==(c[b+36>>2]|0)){uf(b+28|0,y);break}if(!aa)Ea=0;else{ea=y;D=c[ea+4>>2]|0;ha=aa;c[ha>>2]=c[ea>>2];c[ha+4>>2]=D;Ea=c[ca>>2]|0}c[ca>>2]=Ea+8;break}c[z>>2]=103;c[z+4>>2]=0;ca=b+32|0;D=c[ca>>2]|0;if((D|0)==(c[b+36>>2]|0)){uf(b+28|0,z);break}if(!D)Fa=0;else{ha=z;ea=c[ha+4>>2]|0;aa=D;c[aa>>2]=c[ha>>2];c[aa+4>>2]=ea;Fa=c[ca>>2]|0}c[ca>>2]=Fa+8;break}if((ba|0)<(ia|0)?(lh(J,-1)|0)==1:0){do if(Md(O,P)|0){if((lh(K,-1)|0)!=1){if(Nd(O,P)|0)break;if((c[$>>2]|0)>=(((c[w>>2]|0)+(c[N>>2]|0)|0)/2|0|0))break;ca=c[T>>2]|0;if((ca|0)<=(1-ca+(c[X>>2]|0)+(c[U>>2]|0)|0))break;c[G>>2]=54;c[G+4>>2]=0;ca=b+32|0;ea=c[ca>>2]|0;if((ea|0)==(c[b+36>>2]|0)){uf(b+28|0,G);break b}if(!ea)Ga=0;else{aa=G;ha=c[aa+4>>2]|0;D=ea;c[D>>2]=c[aa>>2];c[D+4>>2]=ha;Ga=c[ca>>2]|0}c[ca>>2]=Ga+8;break b}if(((((c[U>>2]|0)+1-(c[T>>2]|0)<<1|0)>((c[R>>2]|0)+1-(c[Q>>2]|0)|0)?(ca=(c[V>>2]|0)+1-(c[P>>2]|0)|0,((c[$>>2]|0)+1-(c[O>>2]|0)<<1|0)>(ca|0)):0)?(ca*3|0)>=((c[w>>2]|0)+1-(c[N>>2]|0)|0):0)?!(hh(I,50)|0):0){do if(ah(I)|0){if(!(Zg(I)|0))break;c[B>>2]=54;c[B+4>>2]=0;ca=b+32|0;ha=c[ca>>2]|0;if((ha|0)==(c[b+36>>2]|0)){uf(b+28|0,B);break b}if(!ha)Ha=0;else{D=B;aa=c[D+4>>2]|0;ea=ha;c[ea>>2]=c[D>>2];c[ea+4>>2]=aa;Ha=c[ca>>2]|0}c[ca>>2]=Ha+8;break b}while(0);c[C>>2]=66;c[C+4>>2]=0;ca=b+32|0;aa=c[ca>>2]|0;if((aa|0)==(c[b+36>>2]|0)){uf(b+28|0,C);break b}if(!aa)Ia=0;else{ea=C;D=c[ea+4>>2]|0;ha=aa;c[ha>>2]=c[ea>>2];c[ha+4>>2]=D;Ia=c[ca>>2]|0}c[ca>>2]=Ia+8;break b}if((c[V>>2]|0)<(((c[w>>2]|0)+(c[N>>2]|0)|0)/2|0|0)){c[E>>2]=38;c[E+4>>2]=0;ca=b+32|0;D=c[ca>>2]|0;if((D|0)==(c[b+36>>2]|0)){uf(b+28|0,E);break b}if(!D)Ja=0;else{ha=E;ea=c[ha+4>>2]|0;aa=D;c[aa>>2]=c[ha>>2];c[aa+4>>2]=ea;Ja=c[ca>>2]|0}c[ca>>2]=Ja+8;break b}else{c[F>>2]=97;c[F+4>>2]=0;ca=b+32|0;ea=c[ca>>2]|0;if((ea|0)==(c[b+36>>2]|0)){uf(b+28|0,F);break b}if(!ea)Ka=0;else{aa=F;ha=c[aa+4>>2]|0;D=ea;c[D>>2]=c[aa>>2];c[D+4>>2]=ha;Ka=c[ca>>2]|0}c[ca>>2]=Ka+8;break b}}while(0);if((c[U>>2]|0)<(c[Q>>2]|0)){c[H>>2]=38;c[H+4>>2]=0;w=b+32|0;V=c[w>>2]|0;if((V|0)==(c[b+36>>2]|0)){uf(b+28|0,H);break}if(!V)La=0;else{$=H;ia=c[$+4>>2]|0;ba=V;c[ba>>2]=c[$>>2];c[ba+4>>2]=ia;La=c[w>>2]|0}c[w>>2]=La+8}}}}while(0);La=c[L+36>>2]|0;if(La){H=L+40|0;L=c[H>>2]|0;if((L|0)!=(La|0))c[H>>2]=L+(~((L+ -4+(0-La)|0)>>>2)<<2);kt(La)}La=c[K+36>>2]|0;if(La){L=K+40|0;K=c[L>>2]|0;if((K|0)!=(La|0))c[L>>2]=K+(~((K+ -4+(0-La)|0)>>>2)<<2);kt(La)}La=c[J+36>>2]|0;if(La){K=J+40|0;J=c[K>>2]|0;if((J|0)!=(La|0))c[K>>2]=J+(~((J+ -4+(0-La)|0)>>>2)<<2);kt(La)}La=c[I+36>>2]|0;if(!La){i=e;return}J=I+40|0;I=c[J>>2]|0;if((I|0)!=(La|0))c[J>>2]=I+(~((I+ -4+(0-La)|0)>>>2)<<2);kt(La);i=e;return}function tf(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;b=i;d=c[a+332>>2]|0;if(d){e=a+336|0;f=c[e>>2]|0;if((f|0)!=(d|0))c[e>>2]=f+(~((f+ -4+(0-d)|0)>>>2)<<2);kt(d)}d=c[a+284>>2]|0;if(d){f=a+288|0;e=c[f>>2]|0;if((e|0)!=(d|0))c[f>>2]=e+(~((e+ -4+(0-d)|0)>>>2)<<2);kt(d)}d=c[a+236>>2]|0;if(d){e=a+240|0;f=c[e>>2]|0;if((f|0)!=(d|0))c[e>>2]=f+(~((f+ -4+(0-d)|0)>>>2)<<2);kt(d)}d=c[a+188>>2]|0;if(d){f=a+192|0;e=c[f>>2]|0;if((e|0)!=(d|0))c[f>>2]=e+(~((e+ -4+(0-d)|0)>>>2)<<2);kt(d)}d=c[a+140>>2]|0;if(d){e=a+144|0;f=c[e>>2]|0;if((f|0)!=(d|0))c[e>>2]=f+(~((f+ -4+(0-d)|0)>>>2)<<2);kt(d)}d=c[a+92>>2]|0;if(d){f=a+96|0;e=c[f>>2]|0;if((e|0)!=(d|0))c[f>>2]=e+(~((e+ -4+(0-d)|0)>>>2)<<2);kt(d)}d=a+44|0;e=c[d>>2]|0;if(e){f=a+48|0;g=c[f>>2]|0;if((g|0)==(e|0))h=e;else{j=g;while(1){g=j+ -12|0;c[f>>2]=g;k=c[g>>2]|0;if(!k)l=g;else{g=j+ -8|0;m=c[g>>2]|0;if((m|0)!=(k|0))c[g>>2]=m+(~((m+ -8+(0-k)|0)>>>3)<<3);kt(k);l=c[f>>2]|0}if((l|0)==(e|0))break;else j=l}h=c[d>>2]|0}kt(h)}h=a+32|0;d=c[h>>2]|0;if(d){l=a+36|0;j=c[l>>2]|0;if((j|0)==(d|0))n=d;else{e=j;while(1){j=e+ -12|0;c[l>>2]=j;f=c[j>>2]|0;if(!f)o=j;else{j=e+ -8|0;k=c[j>>2]|0;if((k|0)!=(f|0))c[j>>2]=k+(~((k+ -8+(0-f)|0)>>>3)<<3);kt(f);o=c[l>>2]|0}if((o|0)==(d|0))break;else e=o}n=c[h>>2]|0}kt(n)}n=c[a+20>>2]|0;if(n){h=a+24|0;o=c[h>>2]|0;if((o|0)!=(n|0))c[h>>2]=o+(~((o+ -16+(0-n)|0)>>>4)<<4);kt(n)}n=c[a+8>>2]|0;if(!n){i=b;return}o=a+12|0;a=c[o>>2]|0;if((a|0)!=(n|0))c[o>>2]=a+(~((a+ -16+(0-n)|0)>>>4)<<4);kt(n);i=b;return}function uf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=a+4|0;f=c[a>>2]|0;g=((c[e>>2]|0)-f>>3)+1|0;if(g>>>0>536870911)yp(a);h=a+8|0;j=f;k=(c[h>>2]|0)-j|0;if(k>>3>>>0<268435455){l=k>>2;k=l>>>0>>0?g:l;l=(c[e>>2]|0)-j|0;g=l>>3;if(!k){m=0;n=0;o=g;p=l}else{q=k;r=g;s=l;t=6}}else{l=(c[e>>2]|0)-j|0;q=536870911;r=l>>3;s=l;t=6}if((t|0)==6){m=q;n=it(q<<3)|0;o=r;p=s}s=n+(o<<3)|0;if(s){r=b;b=c[r+4>>2]|0;q=s;c[q>>2]=c[r>>2];c[q+4>>2]=b}Tu(n|0,f|0,p|0)|0;c[a>>2]=n;c[e>>2]=n+(o+1<<3);c[h>>2]=n+(m<<3);if(!f){i=d;return}kt(f);i=d;return}function vf(a){a=a|0;var b=0,c=0;b=i;do switch(a|0){case 246:case 245:case 244:case 243:case 242:{c=111;break};case 197:case 196:case 195:case 194:case 193:case 192:{c=65;break};case 350:{c=83;break};case 231:{c=99;break};case 351:{c=115;break};case 287:{c=103;break};case 235:case 234:case 233:case 232:{c=101;break};case 199:{c=67;break};case 241:{c=110;break};case 305:case 239:case 238:case 237:case 236:{c=105;break};case 304:case 207:case 206:case 205:case 204:{c=73;break};case 229:case 228:case 227:case 226:case 225:case 224:{c=97;break};case 220:case 219:case 218:case 217:{c=85;break};case 209:{c=78;break};case 214:case 213:case 212:case 211:case 210:{c=79;break};case 252:case 251:case 250:case 249:{c=117;break};case 203:case 202:case 201:case 200:{c=69;break};case 221:{c=89;break};case 286:{c=71;break};case 255:case 253:{c=121;break};default:c=0}while(0);i=b;return c|0}function wf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=i;a:do switch(a|0){case 73:case 91:{if((b|0)==39){d=205;break a}else if((b|0)==58){d=207;break a}else if((b|0)==96){d=204;break a}else if((b|0)==94){d=206;break a}else{e=51;break a}break};case 65:{if((b|0)==39){d=193;break a}else if((b|0)==58){d=196;break a}else if((b|0)==94){d=194;break a}else if((b|0)==96){d=192;break a}else{e=51;break a}break};case 79:{if((b|0)==58){d=214;break a}else if((b|0)==39){d=211;break a}else if((b|0)==96){d=210;break a}else if((b|0)==94){d=212;break a}else{e=51;break a}break};case 71:{d=286;break};case 90:{d=381;break};case 78:{if((b|0)==58)e=51;else d=209;break};case 101:{if((b|0)==39){d=233;break a}else if((b|0)==96){d=232;break a}else if((b|0)==94){d=234;break a}else if((b|0)==58){d=235;break a}else{e=51;break a}break};case 97:{if((b|0)==58){d=228;break a}else if((b|0)==39){d=225;break a}else if((b|0)==96){d=224;break a}else if((b|0)==94){d=226;break a}else{e=51;break a}break};case 110:{if((b|0)==58)e=51;else d=241;break};case 103:case 57:{d=287;break};case 118:case 117:{if((b|0)==39){d=250;break a}else if((b|0)==58){d=252;break a}else if((b|0)==94){d=251;break a}else if((b|0)==96){d=249;break a}else{e=51;break a}break};case 83:{d=352;break};case 86:case 85:{if((b|0)==39){d=218;break a}else if((b|0)==94){d=219;break a}else if((b|0)==58){d=220;break a}else if((b|0)==96){d=217;break a}else{e=51;break a}break};case 122:{d=382;break};case 115:{d=353;break};case 108:case 105:case 93:case 124:{if((b|0)==39){d=237;break a}else if((b|0)==94){d=238;break a}else if((b|0)==58){d=239;break a}else if((b|0)==96){d=236;break a}else{e=51;break a}break};case 69:{if((b|0)==39){d=201;break a}else if((b|0)==94){d=202;break a}else if((b|0)==58){d=203;break a}else if((b|0)==96){d=200;break a}else{e=51;break a}break};case 111:{if((b|0)==39){d=243;break a}else if((b|0)==94){d=244;break a}else if((b|0)==58){d=246;break a}else if((b|0)==96){d=242;break a}else{e=51;break a}break};case 121:{if((b|0)==39){d=253;break a}else if((b|0)!=58){e=51;break a}d=255;break};default:e=51}while(0);if((e|0)==51)d=0;i=c;return d|0}function xf(a){a=a|0;var b=0,c=0,d=0;b=i;if((a|0)<128?(Is(a)|0)!=0:0)c=1;else d=3;a:do if((d|0)==3){switch(a|0){case 255:case 253:case 252:case 251:case 250:case 249:case 351:case 246:case 245:case 244:case 243:case 242:case 241:case 305:case 239:case 238:case 237:case 236:case 287:case 235:case 234:case 233:case 232:case 231:case 229:case 228:case 227:case 226:case 225:case 224:case 221:case 220:case 219:case 218:case 217:case 350:case 214:case 213:case 212:case 211:case 210:case 209:case 304:case 207:case 206:case 205:case 204:case 286:case 203:case 202:case 201:case 200:case 199:case 197:case 196:case 195:case 194:case 193:case 192:{c=1;break a;break};default:{}}c=(a+ -48|0)>>>0<10}while(0);i=b;return c|0}function yf(a){a=a|0;var b=0,c=0,d=0;b=i;if((a|0)<128?(Is(a)|0)!=0:0)c=1;else d=3;a:do if((d|0)==3){switch(a|0){case 255:case 253:case 252:case 251:case 250:case 249:case 351:case 246:case 245:case 244:case 243:case 242:case 241:case 305:case 239:case 238:case 237:case 236:case 287:case 235:case 234:case 233:case 232:case 231:case 229:case 228:case 227:case 226:case 225:case 224:case 221:case 220:case 219:case 218:case 217:case 350:case 214:case 213:case 212:case 211:case 210:case 209:case 304:case 207:case 206:case 205:case 204:case 286:case 203:case 202:case 201:case 200:case 199:case 197:case 196:case 195:case 194:case 193:case 192:{c=1;break a;break};default:{}}c=0}while(0);i=b;return c|0}function zf(a){a=a|0;return(a+ -48|0)>>>0<10|0}function Af(a){a=a|0;var b=0,c=0,d=0,e=0;b=i;if((a|0)<128?(lu(a)|0)!=0:0){c=1;i=b;return c|0}do switch(a|0){case 305:case 239:case 238:case 237:case 236:{d=105;e=23;break};case 209:{d=78;e=23;break};case 229:case 228:case 227:case 226:case 225:case 224:{d=97;e=23;break};case 241:{d=110;e=23;break};case 231:{d=99;e=23;break};case 350:{d=83;e=23;break};case 287:{d=103;e=23;break};case 235:case 234:case 233:case 232:{d=101;e=23;break};case 203:case 202:case 201:case 200:{d=69;e=23;break};case 221:{d=89;e=23;break};case 214:case 213:case 212:case 211:case 210:{d=79;e=23;break};case 286:{d=71;e=23;break};case 304:case 207:case 206:case 205:case 204:{d=73;e=23;break};case 197:case 196:case 195:case 194:case 193:case 192:{d=65;e=23;break};case 255:case 253:{d=121;e=23;break};case 351:{d=115;e=23;break};case 220:case 219:case 218:case 217:{d=85;e=23;break};case 199:{d=67;e=23;break};case 246:case 245:case 244:case 243:case 242:{d=111;e=23;break};case 252:case 251:case 250:case 249:{d=117;e=23;break};default:{}}while(0);if((e|0)==23?(lu(d)|0)!=0:0){c=1;i=b;return c|0}if((a+ -48|0)>>>0<10){c=1;i=b;return c|0}d=a+ -98|0;if(d>>>0<27){i=b;return(75810805>>>(d&134217727)&1|0)!=0|0}else{c=0;i=b;return c|0}return 0}function Bf(a){a=a|0;var b=0,c=0,d=0,e=0;b=i;if((a|0)<128?(lu(a)|0)!=0:0)c=1;else d=3;a:do if((d|0)==3){do switch(a|0){case 221:{e=89;break};case 252:case 251:case 250:case 249:{e=117;break};case 287:{e=103;break};case 235:case 234:case 233:case 232:{e=101;break};case 246:case 245:case 244:case 243:case 242:{e=111;break};case 214:case 213:case 212:case 211:case 210:{e=79;break};case 351:{e=115;break};case 229:case 228:case 227:case 226:case 225:case 224:{e=97;break};case 231:{e=99;break};case 350:{e=83;break};case 286:{e=71;break};case 305:case 239:case 238:case 237:case 236:{e=105;break};case 220:case 219:case 218:case 217:{e=85;break};case 203:case 202:case 201:case 200:{e=69;break};case 199:{e=67;break};case 255:case 253:{e=121;break};case 197:case 196:case 195:case 194:case 193:case 192:{e=65;break};case 209:{e=78;break};case 241:{e=110;break};case 304:case 207:case 206:case 205:case 204:{e=73;break};default:{c=0;break a}}while(0);c=(lu(e)|0)!=0}while(0);i=b;return c|0}function Cf(a){a=a|0;var b=0,c=0,d=0,e=0;b=i;if((a|0)<128?(Js(a)|0)!=0:0)c=1;else d=3;a:do if((d|0)==3){do switch(a|0){case 241:{e=110;break};case 197:case 196:case 195:case 194:case 193:case 192:{e=65;break};case 209:{e=78;break};case 231:{e=99;break};case 235:case 234:case 233:case 232:{e=101;break};case 220:case 219:case 218:case 217:{e=85;break};case 305:case 239:case 238:case 237:case 236:{e=105;break};case 287:{e=103;break};case 203:case 202:case 201:case 200:{e=69;break};case 229:case 228:case 227:case 226:case 225:case 224:{e=97;break};case 246:case 245:case 244:case 243:case 242:{e=111;break};case 214:case 213:case 212:case 211:case 210:{e=79;break};case 286:{e=71;break};case 304:case 207:case 206:case 205:case 204:{e=73;break};case 255:case 253:{e=121;break};case 252:case 251:case 250:case 249:{e=117;break};case 351:{e=115;break};case 221:{e=89;break};case 199:{e=67;break};case 350:{e=83;break};default:{c=0;break a}}while(0);c=(Js(e)|0)!=0}while(0);i=b;return c|0}function Df(a){a=a|0;var b=0,c=0,d=0;b=i;if((((a|0)<=127?(Js(a)|0)!=0:0)?(c=a+ -99|0,c>>>0<24):0)?(12390401>>>(c&16777215)&1|0)!=0:0){d=1;i=b;return d|0}switch(a|0){case 382:case 353:case 351:case 252:case 251:case 250:case 249:case 246:case 245:case 244:case 243:case 242:case 239:case 238:case 237:case 236:case 231:case 112:case 107:{d=1;i=b;return d|0};default:{}}d=0;i=b;return d|0}function Ef(a){a=a|0;var b=0,c=0;b=i;if((a|0)>127){i=b;return 0}if(!(Js(a)|0)){i=b;return 0}c=a+ -99|0;if(c>>>0<24){i=b;return(12390401>>>(c&16777215)&1|0)!=0|0}else{i=b;return 0}return 0}function Ff(a){a=a|0;var b=0,c=0;b=i;if((a|0)>127){i=b;return 0}if(!(Js(a)|0)){i=b;return 0}c=a+ -97|0;if(c>>>0<26){i=b;return(49704981>>>(c&67108863)&1|0)!=0|0}else{i=b;return 0}return 0}function Gf(a){a=a|0;var b=0,c=0;b=i;if((a|0)<128)c=(ku(a)|0)!=0;else c=0;i=b;return c|0}function Hf(a){a=a|0;var b=0,c=0,d=0,e=0;b=i;a:do if((a|0)<=127)if(!a)c=0;else{d=a;e=23}else do switch(a|0){case 229:case 228:case 227:case 226:case 225:case 224:{d=97;e=23;break a;break};case 255:case 253:{d=121;e=23;break a;break};case 214:case 213:case 212:case 211:case 210:{d=79;e=23;break a;break};case 305:case 239:case 238:case 237:case 236:{d=105;e=23;break a;break};case 287:{d=103;e=23;break a;break};case 351:{d=115;e=23;break a;break};case 252:case 251:case 250:case 249:{d=117;e=23;break a;break};case 231:{d=99;e=23;break a;break};case 235:case 234:case 233:case 232:{d=101;e=23;break a;break};case 199:{d=67;e=23;break a;break};case 286:{d=71;e=23;break a;break};case 241:{d=110;e=23;break a;break};case 221:{d=89;e=23;break a;break};case 350:{d=83;e=23;break a;break};case 304:case 207:case 206:case 205:case 204:{d=73;e=23;break a;break};case 209:{d=78;e=23;break a;break};case 197:case 196:case 195:case 194:case 193:case 192:{d=65;e=23;break a;break};case 246:case 245:case 244:case 243:case 242:{d=111;e=23;break a;break};case 203:case 202:case 201:case 200:{d=69;e=23;break a;break};case 220:case 219:case 218:case 217:{d=85;e=23;break a;break};default:{c=0;break a}}while(0);while(0);if((e|0)==23)if(!(Is(d)|0))c=0;else{e=nu(d)|0;c=(e&-5|0)==97|(e|0)==105|(e|0)==111|(e|0)==117}i=b;return c|0}function If(a){a=a|0;var b=0,c=0;b=i;a:do if((a|0)<0)c=0;else{if((a|0)<256){c=a&255;break}do switch(a|0){case 8364:{c=-92;break a;break};case 353:{c=-88;break a;break};case 351:{c=-2;break a;break};case 286:{c=-48;break a;break};case 350:{c=-34;break a;break};case 304:{c=-35;break a;break};case 382:{c=-72;break a;break};case 287:{c=-16;break a;break};case 352:{c=-90;break a;break};case 381:{c=-76;break a;break};case 305:{c=-3;break a;break};default:{c=0;break a}}while(0)}while(0);i=b;return c|0}function Jf(b){b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;c=i;if((b|0)<0){a[1816]=0;i=c;return 1816}if((b|0)<128){a[1816]=b;a[1817]=0;i=c;return 1816}if((b|0)>=2048)if((b|0)>=65536)if((b|0)>=2097152){d=(b|0)<67108864;e=d?5:6;f=d?248:252;a[1816+e>>0]=0;d=e+ -1|0;if((d|0)>0){g=d;h=f;j=10}else{k=b;l=f}}else{m=4;n=240;j=8}else{m=3;n=224;j=8}else{m=2;n=192;j=8}if((j|0)==8){a[1816+m>>0]=0;g=m+ -1|0;h=n;j=10}if((j|0)==10){j=b;n=0;m=g;while(1){a[1816+m>>0]=j&63|128;n=n+6|0;m=m+ -1|0;g=b>>n;if((m|0)<=0){k=g;l=h;break}else j=g}}a[1816]=k|l;i=c;return 1816}function Kf(a){a=a|0;var b=0,c=0;b=i;switch(a|0){case 122:case 90:{c=50;break};case 111:case 81:case 79:{c=48;break};case 103:{c=57;break};case 66:case 38:{c=56;break};case 243:case 98:case 71:{c=54;break};case 305:case 108:case 76:case 73:case 124:{c=49;break};case 115:case 83:{c=53;break};case 113:case 65:{c=52;break};case 84:case 74:{c=55;break};default:c=a}i=b;return c|0}function Lf(a){a=a|0;var b=0,c=0;b=i;switch(a|0){case 56:{c=66;break};case 49:{c=108;break};case 48:{c=79;break};case 50:{c=90;break};case 53:{c=83;break};case 57:{c=103;break};case 54:{c=243;break};case 55:{c=73;break};case 52:{c=113;break};default:c=a}i=b;return c|0}function Mf(a){a=a|0;var b=0,c=0,d=0;b=i;a:do switch(a|0){case 181:{c=85;break};case 38:{c=56;break};case 243:case 98:{c=54;break};case 179:{c=51;break};case 176:{c=79;break};case 178:{c=50;break};case 124:case 108:{c=73;break};case 305:case 185:{c=49;break};case 186:case 103:{c=57;break};case 113:{c=52;break};default:{if(!((((a|0)<=127?(Js(a)|0)!=0:0)?(d=a+ -99|0,d>>>0<24):0)?(12390401>>>(d&16777215)&1|0)!=0:0))switch(a|0){case 382:case 353:case 351:case 252:case 251:case 250:case 249:case 246:case 245:case 244:case 243:case 242:case 239:case 238:case 237:case 236:case 231:case 112:case 107:break;default:{c=a;break a}}if((a|0)<128){c=Ks(a)|0;break a}do switch(a|0){case 231:{c=199;break a;break};case 236:{c=204;break a;break};case 225:{c=193;break a;break};case 228:{c=196;break a;break};case 232:{c=200;break a;break};case 235:{c=203;break a;break};case 252:{c=220;break a;break};case 242:{c=210;break a;break};case 287:{c=286;break a;break};case 238:{c=206;break a;break};case 243:{c=211;break a;break};case 224:{c=192;break a;break};case 244:{c=212;break a;break};case 227:{c=195;break a;break};case 229:{c=197;break a;break};case 246:{c=214;break a;break};case 251:{c=219;break a;break};case 226:{c=194;break a;break};case 250:{c=218;break a;break};case 234:{c=202;break a;break};case 241:{c=209;break a;break};case 237:{c=205;break a;break};case 233:{c=201;break a;break};case 245:{c=213;break a;break};case 351:{c=350;break a;break};case 249:{c=217;break a;break};case 253:{c=221;break a;break};case 239:{c=207;break a;break};default:{c=a;break a}}while(0)}}while(0);i=b;return c|0}function Nf(a){a=a|0;var b=0,c=0;b=i;a:do if((a|0)<128)c=Ks(a)|0;else do switch(a|0){case 236:{c=204;break a;break};case 244:{c=212;break a;break};case 229:{c=197;break a;break};case 237:{c=205;break a;break};case 246:{c=214;break a;break};case 238:{c=206;break a;break};case 234:{c=202;break a;break};case 243:{c=211;break a;break};case 241:{c=209;break a;break};case 233:{c=201;break a;break};case 226:{c=194;break a;break};case 239:{c=207;break a;break};case 287:{c=286;break a;break};case 251:{c=219;break a;break};case 250:{c=218;break a;break};case 231:{c=199;break a;break};case 227:{c=195;break a;break};case 228:{c=196;break a;break};case 351:{c=350;break a;break};case 245:{c=213;break a;break};case 249:{c=217;break a;break};case 252:{c=220;break a;break};case 235:{c=203;break a;break};case 225:{c=193;break a;break};case 224:{c=192;break a;break};case 242:{c=210;break a;break};case 253:{c=221;break a;break};case 232:{c=200;break a;break};default:{c=a;break a}}while(0);while(0);i=b;return c|0}function Of(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;d=i;c[a+0>>2]=c[b+0>>2];c[a+4>>2]=c[b+4>>2];c[a+8>>2]=c[b+8>>2];c[a+12>>2]=c[b+12>>2];e=a+16|0;c[e>>2]=0;f=a+20|0;c[f>>2]=0;g=a+24|0;c[g>>2]=0;h=b+20|0;j=b+16|0;k=(c[h>>2]|0)-(c[j>>2]|0)|0;l=k>>2;if(l){if(l>>>0>1073741823)yp(e);m=it(k)|0;c[f>>2]=m;c[e>>2]=m;c[g>>2]=m+(l<<2);l=c[j>>2]|0;g=c[h>>2]|0;if((l|0)!=(g|0)){h=l;l=m;do{if(!l)n=0;else{c[l>>2]=c[h>>2];n=c[f>>2]|0}l=n+4|0;c[f>>2]=l;h=h+4|0}while((h|0)!=(g|0))}}g=a+28|0;c[g>>2]=0;h=a+32|0;c[h>>2]=0;l=a+36|0;c[l>>2]=0;a=b+32|0;n=b+28|0;b=(c[a>>2]|0)-(c[n>>2]|0)|0;m=b>>3;if(m){if(m>>>0>536870911)yp(g);k=it(b)|0;c[h>>2]=k;c[g>>2]=k;c[l>>2]=k+(m<<3);m=c[n>>2]|0;n=c[a>>2]|0;if((m|0)!=(n|0)){a=m;m=k;do{if(!m)o=0;else{k=a;l=c[k+4>>2]|0;g=m;c[g>>2]=c[k>>2];c[g+4>>2]=l;o=c[h>>2]|0}m=o+8|0;c[h>>2]=m;a=a+8|0}while((a|0)!=(n|0))}}if((c[f>>2]|0)==(c[e>>2]|0)){i=d;return}else p=0;do{n=it(40)|0;Pe(n,c[(c[j>>2]|0)+(p<<2)>>2]|0);c[(c[e>>2]|0)+(p<<2)>>2]=n;p=p+1|0}while(p>>>0<(c[f>>2]|0)-(c[e>>2]|0)>>2>>>0);i=d;return}function Pf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;d=i;if((a|0)==(b|0)){i=d;return a|0}c[a+0>>2]=c[b+0>>2];c[a+4>>2]=c[b+4>>2];c[a+8>>2]=c[b+8>>2];c[a+12>>2]=c[b+12>>2];e=a+16|0;f=a+20|0;g=c[f>>2]|0;h=c[e>>2]|0;if((g|0)!=(h|0)){j=g;g=h;h=0;while(1){k=c[g+(h<<2)>>2]|0;if(!k){l=j;m=g}else{Qe(k);kt(k);l=c[f>>2]|0;m=c[e>>2]|0}h=h+1|0;if(h>>>0>=l-m>>2>>>0)break;else{j=l;g=m}}}m=b+16|0;ge(e,c[m>>2]|0,c[b+20>>2]|0);if((c[f>>2]|0)!=(c[e>>2]|0)){g=0;do{l=it(40)|0;Pe(l,c[(c[m>>2]|0)+(g<<2)>>2]|0);c[(c[e>>2]|0)+(g<<2)>>2]=l;g=g+1|0}while(g>>>0<(c[f>>2]|0)-(c[e>>2]|0)>>2>>>0)}gg(a+28|0,c[b+28>>2]|0,c[b+32>>2]|0);i=d;return a|0}function Qf(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;b=i;d=a+20|0;e=c[d>>2]|0;f=a+16|0;g=c[f>>2]|0;if((e|0)==(g|0))h=e;else{j=e;e=g;g=0;while(1){k=c[e+(g<<2)>>2]|0;if(!k){l=j;m=e}else{Qe(k);kt(k);l=c[d>>2]|0;m=c[f>>2]|0}g=g+1|0;if(g>>>0>=l-m>>2>>>0){h=m;break}else{j=l;e=m}}}m=c[a+28>>2]|0;if(!m)n=h;else{h=a+32|0;a=c[h>>2]|0;if((a|0)!=(m|0))c[h>>2]=a+(~((a+ -8+(0-m)|0)>>>3)<<3);kt(m);n=c[f>>2]|0}if(!n){i=b;return}f=c[d>>2]|0;if((f|0)!=(n|0))c[d>>2]=f+(~((f+ -4+(0-n)|0)>>>2)<<2);kt(n);i=b;return}function Rf(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((b|0)<0)Eh(1824);e=c[a+16>>2]|0;if(((c[a+20>>2]|0)-e>>2|0)>(b|0)){i=d;return c[e+(b<<2)>>2]|0}else Eh(1824);return 0}function Sf(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((b|0)<0)Eh(1856);e=c[a+16>>2]|0;if(((c[a+20>>2]|0)-e>>2|0)>(b|0)){i=d;return c[e+(b<<2)>>2]|0}else Eh(1856);return 0}function Tf(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;b=i;d=c[a+16>>2]|0;e=(c[a+20>>2]|0)-d|0;if((e|0)<=4){f=0;g=d+(f<<2)|0;h=c[g>>2]|0;i=b;return h|0}a=e>>2;e=1;j=0;while(1){k=c[d+(e<<2)>>2]|0;l=da((c[k+8>>2]|0)+1-(c[k>>2]|0)|0,(c[k+12>>2]|0)+1-(c[k+4>>2]|0)|0)|0;k=c[d+(j<<2)>>2]|0;m=(l|0)>(da((c[k+8>>2]|0)+1-(c[k>>2]|0)|0,(c[k+12>>2]|0)+1-(c[k+4>>2]|0)|0)|0);k=m?e:j;e=e+1|0;if((e|0)>=(a|0)){f=k;break}else j=k}g=d+(f<<2)|0;h=c[g>>2]|0;i=b;return h|0}function Uf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;d=i;i=i+16|0;e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[f>>2]=b;Dd(a,b);j=c[a+16>>2]|0;k=(c[a+20>>2]|0)-j|0;l=k>>2;a:do if((k|0)>0){m=((c[b+12>>2]|0)+(c[b+4>>2]|0)|0)/2|0;n=b+8|0;o=l;while(1){p=o+ -1|0;q=c[j+(p<<2)>>2]|0;r=((c[q+12>>2]|0)+(c[q+4>>2]|0)|0)/2|0;if((m|0)>(r|0)){s=o;break a}if((m|0)==(r|0)?(((c[n>>2]|0)+(c[b>>2]|0)|0)/2|0|0)>=(((c[q+8>>2]|0)+(c[q>>2]|0)|0)/2|0|0):0){s=o;break a}if((p|0)>0)o=p;else{s=p;break}}}else s=l;while(0);l=a+16|0;c[g>>2]=j+(s<<2);c[e+0>>2]=c[g+0>>2];Vf(h,l,e,f);i=d;return}function Vf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=i;g=c[b>>2]|0;h=g;j=(c[d>>2]|0)-h>>2;d=g+(j<<2)|0;k=b+4|0;l=c[k>>2]|0;m=b+8|0;n=c[m>>2]|0;if(l>>>0>>0){if((d|0)==(l|0)){if(!d)o=0;else{c[d>>2]=c[e>>2];o=c[k>>2]|0}c[k>>2]=o+4;p=d;c[a>>2]=p;i=f;return}o=l-(g+(j+1<<2))|0;q=o>>2;r=g+(q+j<<2)|0;if(r>>>0>>0){j=l;s=r;do{if(!j)t=0;else{c[j>>2]=c[s>>2];t=c[k>>2]|0}s=s+4|0;j=t+4|0;c[k>>2]=j}while(s>>>0>>0)}Uu(l+(0-q<<2)|0,d|0,o|0)|0;if(d>>>0>e>>>0)u=e;else u=(c[k>>2]|0)>>>0>e>>>0?e+4|0:e;c[d>>2]=c[u>>2];p=d;c[a>>2]=p;i=f;return}u=(l-h>>2)+1|0;if(u>>>0>1073741823)yp(b);h=g;g=n-h|0;if(g>>2>>>0<536870911){n=g>>1;g=n>>>0>>0?u:n;n=d;u=n-h>>2;if(!g){v=0;w=0;x=u;y=n}else{z=g;A=u;B=n;C=18}}else{n=d;z=1073741823;A=n-h>>2;B=n;C=18}if((C|0)==18){v=z;w=it(z<<2)|0;x=A;y=B}B=w+(x<<2)|0;A=w+(v<<2)|0;do if((x|0)==(v|0)){if((x|0)>0){D=w+(((x+1|0)/-2|0)+x<<2)|0;E=A;break}z=(x|0)==0?1:x<<1;C=it(z<<2)|0;n=C+(z>>>2<<2)|0;h=C+(z<<2)|0;if(!w){D=n;E=h}else{kt(w);D=n;E=h}}else{D=B;E=A}while(0);if(!D)F=0;else{c[D>>2]=c[e>>2];F=D}e=c[b>>2]|0;A=y-e|0;B=D+(0-(A>>2)<<2)|0;Tu(B|0,e|0,A|0)|0;A=(c[k>>2]|0)-y|0;Tu(F+4|0,d|0,A|0)|0;d=c[b>>2]|0;c[b>>2]=B;c[k>>2]=F+((A>>2)+1<<2);c[m>>2]=E;if(!d){p=D;c[a>>2]=p;i=f;return}kt(d);p=D;c[a>>2]=p;i=f;return}function Wf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+32|0;g=f+20|0;h=f+16|0;j=f+8|0;if((b|0)<0)Eh(1888);k=c[a+28>>2]|0;if(((c[a+32>>2]|0)-k>>3|0)<(b|0))Eh(1888);else{l=a+28|0;c[h>>2]=k+(b<<3);c[j>>2]=d;c[j+4>>2]=e;c[g+0>>2]=c[h+0>>2];Xf(f,l,g,j);i=f;return}}function Xf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;f=i;g=c[b>>2]|0;h=g;j=(c[d>>2]|0)-h>>3;d=g+(j<<3)|0;k=b+4|0;l=c[k>>2]|0;m=b+8|0;n=c[m>>2]|0;if(l>>>0>>0){if((d|0)==(l|0)){if(!d)o=0;else{p=e;q=c[p+4>>2]|0;r=d;c[r>>2]=c[p>>2];c[r+4>>2]=q;o=c[k>>2]|0}c[k>>2]=o+8;s=d;c[a>>2]=s;i=f;return}o=l-(g+(j+1<<3))|0;q=o>>3;r=g+(q+j<<3)|0;if(r>>>0>>0){j=l;p=r;do{if(!j)t=0;else{r=p;u=c[r+4>>2]|0;v=j;c[v>>2]=c[r>>2];c[v+4>>2]=u;t=c[k>>2]|0}p=p+8|0;j=t+8|0;c[k>>2]=j}while(p>>>0>>0)}Uu(l+(0-q<<3)|0,d|0,o|0)|0;if(d>>>0>e>>>0)w=e;else w=(c[k>>2]|0)>>>0>e>>>0?e+8|0:e;o=w;w=c[o+4>>2]|0;q=d;c[q>>2]=c[o>>2];c[q+4>>2]=w;s=d;c[a>>2]=s;i=f;return}w=(l-h>>3)+1|0;if(w>>>0>536870911)yp(b);h=g;g=n-h|0;if(g>>3>>>0<268435455){n=g>>2;g=n>>>0>>0?w:n;n=d;w=n-h>>3;if(!g){x=0;y=n;z=0;A=w}else{B=g;C=w;D=n;E=18}}else{n=d;B=536870911;C=n-h>>3;D=n;E=18}if((E|0)==18){x=B;y=D;z=it(B<<3)|0;A=C}C=z+(A<<3)|0;B=z+(x<<3)|0;do if((A|0)==(x|0)){if((A|0)>0){F=z+(((A+1|0)/-2|0)+A<<3)|0;G=B;break}D=(A|0)==0?1:A<<1;E=it(D<<3)|0;n=E+(D>>>2<<3)|0;h=E+(D<<3)|0;if(!z){F=n;G=h}else{kt(z);F=n;G=h}}else{F=C;G=B}while(0);if(!F)H=0;else{B=e;e=c[B+4>>2]|0;C=F;c[C>>2]=c[B>>2];c[C+4>>2]=e;H=F}e=c[b>>2]|0;C=y-e|0;B=F+(0-(C>>3)<<3)|0;Tu(B|0,e|0,C|0)|0;C=(c[k>>2]|0)-y|0;Tu(H+8|0,d|0,C|0)|0;d=c[b>>2]|0;c[b>>2]=B;c[k>>2]=H+((C>>3)+1<<3);c[m>>2]=G;if(!d){s=F;c[a>>2]=s;i=f;return}kt(d);s=F;c[a>>2]=s;i=f;return}function Yf(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,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;g=i;i=i+16|0;h=g;if((f|0)<0){j=0;i=g;return j|0}k=c[a+16>>2]|0;if(((c[a+20>>2]|0)-k>>2|0)<=(f|0)){j=0;i=g;return j|0}l=c[k+(f<<2)>>2]|0;if((c[l>>2]|0)>(d|0)){j=0;i=g;return j|0}if((c[l+8>>2]|0)<=(d|0)){j=0;i=g;return j|0}l=c[a>>2]|0;k=a+28|0;m=c[k>>2]|0;n=a+32|0;o=c[n>>2]|0;if((o|0)==(m|0))p=m;else{q=o+(~((o+ -8+(0-m)|0)>>>3)<<3)|0;c[n>>2]=q;p=q}c[h>>2]=~f;c[h+4>>2]=l;l=a+36|0;if((p|0)==(c[l>>2]|0)){uf(k,h);r=c[n>>2]|0}else{if(!p)s=0;else{f=h;q=c[f+4>>2]|0;m=p;c[m>>2]=c[f>>2];c[m+4>>2]=q;s=c[n>>2]|0}q=s+8|0;c[n>>2]=q;r=q}c[h>>2]=b;c[h+4>>2]=d;if((r|0)==(c[l>>2]|0)){uf(k,h);t=c[n>>2]|0}else{if(!r)u=0;else{d=h;b=c[d+4>>2]|0;q=r;c[q>>2]=c[d>>2];c[q+4>>2]=b;u=c[n>>2]|0}b=u+8|0;c[n>>2]=b;t=b}b=c[a+8>>2]|0;c[h>>2]=e;c[h+4>>2]=b;if((t|0)==(c[l>>2]|0)){uf(k,h);j=1;i=g;return j|0}if(!t)v=0;else{k=h;h=c[k+4>>2]|0;l=t;c[l>>2]=c[k>>2];c[l+4>>2]=h;v=c[n>>2]|0}c[n>>2]=v+8;j=1;i=g;return j|0}function Zf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;if((b|0)<0)Eh(1928);f=c[a+28>>2]|0;g=(c[a+32>>2]|0)-f>>3;if((d|0)>-1&(g|0)>(b|0)&(g|0)>(d|0)){g=f+(b<<3)|0;b=c[g>>2]|0;c[g>>2]=c[f+(d<<3)>>2];c[f+(d<<3)>>2]=b;i=e;return}else Eh(1928)}function _f(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((b|0)<0)Eh(1968);e=c[a+28>>2]|0;if(((c[a+32>>2]|0)-e>>3|0)>(b|0)){i=d;return e+(b<<3)|0}else Eh(1968);return 0}function $f(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;e=c[a+28>>2]|0;f=(c[a+32>>2]|0)-e|0;if((f|0)>0)g=0;else{h=0;i=d;return h|0}while(1){if((c[e+(g<<3)>>2]|0)==(b|0)){h=1;j=4;break}g=g+1|0;if((g|0)>=(f>>3|0)){h=0;j=4;break}}if((j|0)==4){i=d;return h|0}return 0}function ag(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;d=i;e=b+20|0;f=c[e>>2]|0;g=b+16|0;b=c[g>>2]|0;if((f-b|0)>0){h=b;j=0;while(1){Uf(a,c[h+(j<<2)>>2]|0);j=j+1|0;k=c[e>>2]|0;l=c[g>>2]|0;if((j|0)>=(k-l>>2|0)){m=l;n=k;break}else h=l}}else{m=b;n=f}if((n|0)==(m|0)){i=d;return}c[e>>2]=n+(~((n+ -4+(0-m)|0)>>>2)<<2);i=d;return}function bg(a){a=a|0;var b=0,d=0,e=0;b=i;d=c[a+28>>2]|0;if((c[a+32>>2]|0)!=(d|0)?(a=If(c[d>>2]|0)|0,a<<24>>24!=0):0){e=a;i=b;return e|0}e=95;i=b;return e|0}function cg(b){b=b|0;var d=0,e=0,f=0;d=i;e=c[b+28>>2]|0;if((c[b+32>>2]|0)!=(e|0)?(b=Jf(c[e>>2]|0)|0,(a[b>>0]|0)!=0):0){f=b;i=d;return f|0}f=2e3;i=d;return f|0} + + + +function di(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0,Yb=0,Zb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,jc=0,kc=0,lc=0,mc=0,nc=0,oc=0,pc=0,qc=0,rc=0,sc=0,tc=0,uc=0,vc=0,wc=0,xc=0,yc=0,zc=0,Ac=0,Bc=0,Cc=0,Dc=0,Ec=0,Fc=0,Gc=0,Hc=0,Ic=0,Jc=0,Kc=0,Lc=0,Mc=0,Nc=0,Oc=0,Pc=0,Qc=0,Rc=0,Sc=0,Tc=0,Uc=0,Vc=0,Wc=0,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,bd=0,cd=0,dd=0,ed=0,fd=0,gd=0,hd=0,id=0,jd=0,kd=0,ld=0,md=0,nd=0,od=0;d=i;i=i+544|0;e=d+80|0;f=d;g=d+120|0;h=d+40|0;j=d+224|0;k=d+192|0;l=d+176|0;m=d+320|0;n=d+256|0;o=d+208|0;p=d+240|0;q=d+160|0;r=d+272|0;s=d+288|0;t=d+304|0;u=d+336|0;v=d+376|0;w=d+416|0;x=d+432|0;y=d+448|0;z=d+464|0;A=d+480|0;B=d+520|0;C=a+12|0;D=c[C>>2]|0;E=a+20|0;F=a+16|0;if((D|0)>=((c[E>>2]|0)-(c[F>>2]|0)>>2|0)){i=d;return}G=e+16|0;H=e+20|0;I=e+24|0;J=e+28|0;K=e+32|0;L=e+36|0;M=e+16|0;N=e+20|0;O=e+24|0;P=e+28|0;Q=e+32|0;R=e+36|0;S=f+20|0;T=f+24|0;U=f+16|0;V=f+28|0;W=f+32|0;X=f+36|0;Y=D;do{D=lg(a,Y)|0;do if((((((((c[D+32>>2]|0)==(c[D+28>>2]|0)?((c[D+20>>2]|0)-(c[D+16>>2]|0)|0)==12:0)?(Z=Sf(D,0)|0,_=Sf(D,1)|0,$=Sf(D,2)|0,aa=_+12|0,ba=_+4|0,ca=$+12|0,ea=$+4|0,Fh((c[aa>>2]|0)+1-(c[ba>>2]|0)|0,(c[ca>>2]|0)+1-(c[ea>>2]|0)|0,20,1)|0):0)?!(Md(_,$)|0):0)?Ld(_,((c[ca>>2]|0)+(c[ea>>2]|0)|0)/2|0)|0:0)?Ld($,((c[aa>>2]|0)+(c[ba>>2]|0)|0)/2|0)|0:0)?(fa=c[Z+12>>2]|0,ga=c[ba>>2]|0,(fa|0)<(ga|0)):0)?(ba=c[ea>>2]|0,(fa|0)<(ba|0)):0){ea=fa+1-(c[Z+4>>2]|0)|0;if((ea|0)>(1-ga+(c[aa>>2]|0)|0)?(ea|0)>(1-ba+(c[ca>>2]|0)|0):0){ca=it(40)|0;Pe(ca,Z);c[e+0>>2]=c[ca+0>>2];c[e+4>>2]=c[ca+4>>2];c[e+8>>2]=c[ca+8>>2];c[e+12>>2]=c[ca+12>>2];ba=it(4)|0;c[H>>2]=ba;c[G>>2]=ba;c[I>>2]=ba+4;if(!ba)ha=0;else{c[ba>>2]=ca;ha=ba}c[H>>2]=ha+4;c[J>>2]=0;c[K>>2]=0;c[L>>2]=0;ng(j,a,e);pf(e,b,j);if((c[K>>2]|0)!=(c[J>>2]|0))Pf(D,e)|0;Qf(e);ia=Y;break}ba=it(40)|0;Pe(ba,_);c[e+0>>2]=c[ba+0>>2];c[e+4>>2]=c[ba+4>>2];c[e+8>>2]=c[ba+8>>2];c[e+12>>2]=c[ba+12>>2];ca=it(4)|0;c[N>>2]=ca;c[M>>2]=ca;c[O>>2]=ca+4;if(!ca)ja=0;else{c[ca>>2]=ba;ja=ca}c[N>>2]=ja+4;c[P>>2]=0;c[Q>>2]=0;c[R>>2]=0;ca=it(40)|0;Pe(ca,$);c[f+0>>2]=c[ca+0>>2];c[f+4>>2]=c[ca+4>>2];c[f+8>>2]=c[ca+8>>2];c[f+12>>2]=c[ca+12>>2];ba=it(4)|0;c[S>>2]=ba;c[U>>2]=ba;c[T>>2]=ba+4;if(!ba)ka=0;else{c[ba>>2]=ca;ka=ba}c[S>>2]=ka+4;c[V>>2]=0;c[W>>2]=0;c[X>>2]=0;ba=Z+8|0;if(!(Kd(_,((c[ba>>2]|0)+(c[Z>>2]|0)|0)/2|0)|0)){if(Kd($,((c[ba>>2]|0)+(c[Z>>2]|0)|0)/2|0)|0){ba=it(40)|0;Pe(ba,Z);Uf(f,ba)}}else{ba=it(40)|0;Pe(ba,Z);Uf(e,ba)}ng(k,a,e);pf(e,b,k);ng(l,a,f);pf(f,b,l);if((c[Q>>2]|0)!=(c[P>>2]|0)?(c[W>>2]|0)!=(c[V>>2]|0):0){Pf(D,e)|0;ba=it(40)|0;Of(ba,f);pg(a,ba,0)|0;la=Y+1|0}else la=Y;Qf(f);Qf(e);ia=la}else ia=Y;while(0);Y=ia+1|0;ma=c[E>>2]|0;na=c[F>>2]|0}while((Y|0)<(ma-na>>2|0));Y=c[C>>2]|0;if((Y|0)<(ma-na>>2|0)){ia=e+16|0;la=e+20|0;V=e+24|0;W=e+28|0;P=e+32|0;Q=e+36|0;l=f+20|0;k=f+24|0;X=f+16|0;ka=f+28|0;S=f+32|0;T=f+36|0;U=e+12|0;R=e+4|0;ja=f+12|0;N=f+4|0;O=Y;do{M=lg(a,O)|0;if(((c[M+32>>2]|0)==(c[M+28>>2]|0)?((c[M+20>>2]|0)-(c[M+16>>2]|0)|0)==8:0)?(J=Sf(M,0)|0,Nd(J,Sf(M,1)|0)|0):0){J=it(40)|0;Pe(J,Sf(M,0)|0);c[e+0>>2]=c[J+0>>2];c[e+4>>2]=c[J+4>>2];c[e+8>>2]=c[J+8>>2];c[e+12>>2]=c[J+12>>2];K=it(4)|0;c[la>>2]=K;c[ia>>2]=K;c[V>>2]=K+4;if(!K)oa=0;else{c[K>>2]=J;oa=K}c[la>>2]=oa+4;c[W>>2]=0;c[P>>2]=0;c[Q>>2]=0;ng(m,a,e);pf(e,b,m);K=it(40)|0;Pe(K,Sf(M,1)|0);c[f+0>>2]=c[K+0>>2];c[f+4>>2]=c[K+4>>2];c[f+8>>2]=c[K+8>>2];c[f+12>>2]=c[K+12>>2];J=it(4)|0;c[l>>2]=J;c[X>>2]=J;c[k>>2]=J+4;if(!J)pa=0;else{c[J>>2]=K;pa=J}c[l>>2]=pa+4;c[ka>>2]=0;c[S>>2]=0;c[T>>2]=0;ng(n,a,f);pf(f,b,n);if((c[P>>2]|0)!=(c[W>>2]|0)?(c[S>>2]|0)!=(c[ka>>2]|0):0)qa=43;else if(Fh((c[U>>2]|0)+1-(c[R>>2]|0)|0,(c[ja>>2]|0)+1-(c[N>>2]|0)|0,20,1)|0)qa=43;else ra=O;do if((qa|0)==43){qa=0;if(((c[U>>2]|0)+1-(c[R>>2]|0)|0)>((c[ja>>2]|0)+1-(c[N>>2]|0)|0))Pf(M,e)|0;else{Pf(M,f)|0;Pf(f,e)|0}if($f(f,46)|0?(c[N>>2]|0)<=(((c[M+12>>2]|0)+(c[M+4>>2]|0)|0)/2|0|0):0){ra=O;break}J=it(40)|0;Of(J,f);pg(a,J,0)|0;ra=O+1|0}while(0);Qf(f);Qf(e);sa=ra}else sa=O;O=sa+1|0;ta=c[E>>2]|0;ua=c[F>>2]|0}while((O|0)<(ta-ua>>2|0));va=ta;wa=ua;xa=c[C>>2]|0}else{va=ma;wa=na;xa=Y}if((xa|0)<(va-wa>>2|0)){Y=o+12|0;na=e+16|0;ma=e+20|0;ua=e+24|0;ta=e+28|0;O=e+32|0;sa=e+36|0;ra=xa;do{N=lg(a,ra)|0;if((((c[N+32>>2]|0)==(c[N+28>>2]|0)?((c[N+20>>2]|0)-(c[N+16>>2]|0)|0)==8:0)?(ja=Sf(N,0)|0,R=da((c[ja+8>>2]|0)+1-(c[ja>>2]|0)|0,(c[ja+12>>2]|0)+1-(c[ja+4>>2]|0)|0)|0,ja=Sf(N,1)|0,(R|0)>(da(((c[ja+12>>2]|0)+1-(c[ja+4>>2]|0)|0)*10|0,(c[ja+8>>2]|0)+1-(c[ja>>2]|0)|0)|0)):0)?(ja=c[(Sf(N,1)|0)+4>>2]|0,ng(o,a,N),(ja|0)>(c[Y>>2]|0)):0){ja=it(40)|0;Pe(ja,Sf(N,0)|0);c[e+0>>2]=c[ja+0>>2];c[e+4>>2]=c[ja+4>>2];c[e+8>>2]=c[ja+8>>2];c[e+12>>2]=c[ja+12>>2];R=it(4)|0;c[ma>>2]=R;c[na>>2]=R;c[ua>>2]=R+4;if(!R)ya=0;else{c[R>>2]=ja;ya=R}c[ma>>2]=ya+4;c[ta>>2]=0;c[O>>2]=0;c[sa>>2]=0;ng(p,a,e);pf(e,b,p);if((c[O>>2]|0)!=(c[ta>>2]|0))Pf(N,e)|0;Qf(e)}ra=ra+1|0;za=c[E>>2]|0;Aa=c[F>>2]|0}while((ra|0)<(za-Aa>>2|0));Ba=za;Ca=Aa;Da=c[C>>2]|0}else{Ba=va;Ca=wa;Da=xa}if((Da|0)<(Ba-Ca>>2|0)){xa=q+4|0;wa=e+16|0;va=e+20|0;Aa=e+24|0;za=e+28|0;ra=e+32|0;ta=e+36|0;O=Da;do{p=lg(a,O)|0;if((((c[p+32>>2]|0)==(c[p+28>>2]|0)?((c[p+20>>2]|0)-(c[p+16>>2]|0)|0)==8:0)?(sa=Sf(p,1)|0,ya=da((c[sa+8>>2]|0)+1-(c[sa>>2]|0)|0,(c[sa+12>>2]|0)+1-(c[sa+4>>2]|0)|0)|0,sa=Sf(p,0)|0,(ya|0)>(da(((c[sa+12>>2]|0)+1-(c[sa+4>>2]|0)|0)*5|0,(c[sa+8>>2]|0)+1-(c[sa>>2]|0)|0)|0)):0)?(sa=c[(Sf(p,0)|0)+12>>2]|0,ya=Sf(p,0)|0,ma=((c[ya+12>>2]|0)+1-(c[ya+4>>2]|0)<<1)+sa|0,ng(q,a,p),(ma|0)<(c[xa>>2]|0)):0){ma=it(40)|0;Pe(ma,Sf(p,1)|0);c[e+0>>2]=c[ma+0>>2];c[e+4>>2]=c[ma+4>>2];c[e+8>>2]=c[ma+8>>2];c[e+12>>2]=c[ma+12>>2];sa=it(4)|0;c[va>>2]=sa;c[wa>>2]=sa;c[Aa>>2]=sa+4;if(!sa)Ea=0;else{c[sa>>2]=ma;Ea=sa}c[va>>2]=Ea+4;c[za>>2]=0;c[ra>>2]=0;c[ta>>2]=0;ng(r,a,e);pf(e,b,r);if((c[ra>>2]|0)!=(c[za>>2]|0))Pf(p,e)|0;Qf(e)}O=O+1|0;Fa=c[E>>2]|0;Ga=c[F>>2]|0}while((O|0)<(Fa-Ga>>2|0));Ha=Fa;Ia=Ga;Ja=c[C>>2]|0}else{Ha=Ba;Ia=Ca;Ja=Da}if((Ja|0)<(Ha-Ia>>2|0)){Da=e+28|0;Ca=e+32|0;Ba=e+36|0;Ga=e+12|0;Fa=e+4|0;O=u+28|0;za=u+32|0;ra=u+36|0;r=u+12|0;ta=u+4|0;Ea=v+20|0;va=v+24|0;Aa=v+16|0;wa=v+28|0;xa=v+32|0;q=v+36|0;p=f+20|0;sa=f+24|0;ma=f+16|0;ya=f+28|0;ua=f+32|0;na=f+36|0;Y=Ja;do{o=lg(a,Y)|0;do if((((c[o+32>>2]|0)==(c[o+28>>2]|0)?(N=o+8|0,R=(c[N>>2]|0)+1-(c[o>>2]|0)|0,(R|0)>20):0)?(ja=o+12|0,U=o+4|0,ka=(c[ja>>2]|0)+1-(c[U>>2]|0)|0,(R*5|0)>=(ka*3|0)):0)?(ka*5|0)>=((kg(a)|0)*3|0):0){ka=o+20|0;R=o+16|0;S=(c[ka>>2]|0)-(c[R>>2]|0)>>2;W=S+ -1|0;P=S+ -2|0;if((P|0)>-1){S=W;n=P;while(1){P=Sf(o,n)|0;T=(c[P+8>>2]|0)+1-(c[P>>2]|0)|0;P=Sf(o,S)|0;pa=(T|0)>((c[P+8>>2]|0)+1-(c[P>>2]|0)|0)?n:S;if((n|0)>0){S=pa;n=n+ -1|0}else{Ka=pa;break}}}else Ka=W;if(((Ka|0)>=0?(n=Sf(o,Ka)|0,(((c[n+8>>2]|0)+1-(c[n>>2]|0)|0)*10|0)>=(((c[N>>2]|0)+1-(c[o>>2]|0)|0)*9|0)):0)?(n=c[(Sf(o,Ka)|0)+12>>2]|0,(n|0)>=(c[ja>>2]|0)):0){n=Sf(o,Ka)|0;S=n+12|0;pa=c[S>>2]|0;P=n+4|0;T=c[P>>2]|0;l=pa+2-T|0;k=c[n>>2]|0;X=n+8|0;m=c[X>>2]|0;Q=m-k|0;oa=((Q*30|0)/100|0)+k|0;if((oa|0)>(((Q*70|0)/100|0)+k|0)){La=Q;Ma=pa;Na=T;Oa=k;Pa=m;Qa=l;Ra=0}else{m=T;T=pa;pa=l;l=oa;oa=0;while(1){if((m|0)>(T|0)){Sa=T;Ta=0}else{k=0;Q=m;while(1){la=((Xe(n,Q,l)|0)!=0&1)+k|0;V=c[S>>2]|0;if((Q|0)<(V|0)){k=la;Q=Q+1|0}else{Sa=V;Ta=la;break}}}do if((Ta|0)>=(pa|0)){if((Ta|0)!=(pa|0)){Ua=pa;Va=oa;break}if((l|0)>(((c[X>>2]|0)+(c[n>>2]|0)|0)/2|0|0)){Ua=pa;Va=oa}else qa=95}else qa=95;while(0);if((qa|0)==95){qa=0;Ua=Ta;Va=l}Wa=c[n>>2]|0;Xa=c[X>>2]|0;Ya=Xa-Wa|0;if((l|0)>=(((Ya*70|0)/100|0)+Wa|0))break;m=c[P>>2]|0;T=Sa;pa=Ua;l=l+1|0;oa=Va}La=Ya;Ma=Sa;Na=c[P>>2]|0;Oa=Wa;Pa=Xa;Qa=Ua;Ra=Va}oa=Ma+1-Na|0;if((Qa<<2|0)<=(oa|0)){if((Qa*5|0)>(oa|0)){if((Ra|0)<=(((La*40|0)/100|0)+Oa|0)){Za=Y;break}if(!(((Ra|0)>(Oa|0)?(Ra|0)<(((La*60|0)/100|0)+Oa|0):0)&(Ra|0)<(Pa|0))){Za=Y;break}}else if(!((Ra|0)>(Oa|0)&(Ra|0)<(Pa|0))){Za=Y;break}wd(s,Oa,Na,Ra+ -1|0,Ma);wd(t,Ra+1|0,c[P>>2]|0,c[X>>2]|0,c[S>>2]|0);me(e,n,s);c[Da>>2]=0;c[Ca>>2]=0;c[Ba>>2]=0;we(e)|0;if(((c[Ga>>2]|0)+1-(c[Fa>>2]|0)<<1|0)<((c[S>>2]|0)+1-(c[P>>2]|0)|0))_a=Y;else{me(u,n,t);c[O>>2]=0;c[za>>2]=0;c[ra>>2]=0;we(u)|0;if(((c[r>>2]|0)+1-(c[ta>>2]|0)<<1|0)<((c[S>>2]|0)+1-(c[P>>2]|0)|0))$a=Y;else{af(e);af(u);oa=it(40)|0;Pe(oa,e);c[v+0>>2]=c[oa+0>>2];c[v+4>>2]=c[oa+4>>2];c[v+8>>2]=c[oa+8>>2];c[v+12>>2]=c[oa+12>>2];l=it(4)|0;c[Ea>>2]=l;c[Aa>>2]=l;c[va>>2]=l+4;if(!l)ab=0;else{c[l>>2]=oa;ab=l}c[Ea>>2]=ab+4;c[wa>>2]=0;c[xa>>2]=0;c[q>>2]=0;l=it(40)|0;Pe(l,u);c[f+0>>2]=c[l+0>>2];c[f+4>>2]=c[l+4>>2];c[f+8>>2]=c[l+8>>2];c[f+12>>2]=c[l+12>>2];oa=it(4)|0;c[p>>2]=oa;c[ma>>2]=oa;c[sa>>2]=oa+4;if(!oa)bb=0;else{c[oa>>2]=l;bb=oa}c[p>>2]=bb+4;c[ya>>2]=0;c[ua>>2]=0;c[na>>2]=0;if(((c[ka>>2]|0)-(c[R>>2]|0)|0)>0){oa=0;do{do if((oa|0)!=(Ka|0)){l=Sf(o,oa)|0;if(Hd(v,l)|0){pa=it(40)|0;Pe(pa,l);Uf(v,pa);break}if(!(Hd(f,l)|0))break;pa=it(40)|0;Pe(pa,l);Uf(f,pa)}while(0);oa=oa+1|0}while((oa|0)<((c[ka>>2]|0)-(c[R>>2]|0)>>2|0))}ng(w,a,v);pf(v,b,w);ng(x,a,f);pf(f,b,x);R=(c[ua>>2]|0)==(c[ya>>2]|0);if((c[xa>>2]|0)==(c[wa>>2]|0))if(R)cb=Y;else qa=120;else if(R)qa=120;else qa=121;if((qa|0)==120){qa=0;if(((c[N>>2]|0)+1-(c[o>>2]|0)|0)>((c[ja>>2]|0)+1-(c[U>>2]|0)|0))qa=121;else cb=Y}do if((qa|0)==121){qa=0;Pf(o,v)|0;R=it(40)|0;Of(R,f);pg(a,R,0)|0;if((c[xa>>2]|0)==(c[wa>>2]|0)){cb=Y+ -1|0;break}else{cb=((c[ua>>2]|0)!=(c[ya>>2]|0)&1)+Y|0;break}}while(0);Qf(f);Qf(v);$a=cb}Qe(u);_a=$a}Qe(e);Za=_a}else Za=Y}else Za=Y}else Za=Y;while(0);Y=Za+1|0;db=c[E>>2]|0;eb=c[F>>2]|0}while((Y|0)<(db-eb>>2|0));fb=db;gb=eb;hb=c[C>>2]|0}else{fb=Ha;gb=Ia;hb=Ja}if((hb|0)<(fb-gb>>2|0)){Ja=e+32|0;Ia=e+28|0;Ha=hb;do{eb=lg(a,Ha)|0;if(((c[eb+32>>2]|0)==(c[eb+28>>2]|0)?((c[eb+20>>2]|0)-(c[eb+16>>2]|0)|0)==4:0)?(db=Sf(eb,0)|0,(c[db+32>>2]|0)!=(c[db+28>>2]|0)):0){Of(e,eb);db=Sf(e,0)|0;Y=db+32|0;Za=c[Y>>2]|0;_a=db+28|0;$a=c[_a>>2]|0;u=Za-$a|0;if((u|0)>0){cb=db+12|0;v=db+4|0;ya=db+8|0;ua=u>>2;do{ua=ua+ -1|0;u=We(db,ua)|0;if(!((da((c[u+12>>2]|0)+1-(c[u+4>>2]|0)<<6,(c[u+8>>2]|0)+1-(c[u>>2]|0)|0)|0)>(da((c[ya>>2]|0)+1-(c[db>>2]|0)|0,(c[cb>>2]|0)+1-(c[v>>2]|0)|0)|0)?(u=We(db,ua)|0,((c[u+12>>2]|0)+1-(c[u+4>>2]|0)<<4|0)>((c[cb>>2]|0)+1-(c[v>>2]|0)|0)):0))$e(db,ua)}while((ua|0)>0);ib=c[_a>>2]|0;jb=c[Y>>2]|0}else{ib=$a;jb=Za}ua=Sf(eb,0)|0;if((jb-ib|0)<((c[ua+32>>2]|0)-(c[ua+28>>2]|0)|0)?(ng(y,a,e),pf(e,b,y),(c[Ja>>2]|0)!=(c[Ia>>2]|0)):0)Pf(eb,e)|0;Qf(e)}Ha=Ha+1|0;kb=c[E>>2]|0;lb=c[F>>2]|0}while((Ha|0)<(kb-lb>>2|0));mb=kb;nb=lb;ob=c[C>>2]|0}else{mb=fb;nb=gb;ob=hb}a:do if((ob|0)<(mb-nb>>2|0)){hb=f+32|0;gb=f+28|0;fb=f+20|0;lb=f+16|0;kb=g+4|0;Ha=g+12|0;Ia=h+28|0;Ja=h+32|0;y=h+36|0;ib=A+20|0;jb=A+24|0;ua=A+16|0;db=A+28|0;v=A+32|0;cb=A+36|0;ya=e+4|0;u=A+28|0;wa=z+8|0;xa=mb;x=nb;w=ob;while(1){Ka=xa;na=x;while(1){bb=c[na+(w<<2)>>2]|0;if((c[bb+32>>2]|0)==(c[bb+28>>2]|0)){pb=Ka;qb=na;break}if((c[(_f(bb,0)|0)>>2]|0)>-1){qa=152;break}Of(f,c[(c[F>>2]|0)+(w<<2)>>2]|0);bb=~c[(_f(f,0)|0)>>2];og(a,w);if((((c[hb>>2]|0)-(c[gb>>2]|0)|0)>16?(p=(c[fb>>2]|0)-(c[lb>>2]|0)|0,(p|0)>0&(p>>2|0)>(bb|0)):0)?(p=_f(f,0)|0,((c[hb>>2]|0)-(c[gb>>2]|0)|0)>8):0){sa=1;ma=c[p+4>>2]|0;do{Pe(g,Rf(f,bb)|0);p=c[kb>>2]|0;q=c[(_f(f,sa)|0)+4>>2]|0;wd(z,ma,p,q,c[Ha>>2]|0);ue(g,z);me(h,g,z);c[Ia>>2]=0;c[Ja>>2]=0;c[y>>2]=0;we(h)|0;xe(h)|0;af(h);q=it(40)|0;Pe(q,h);c[A+0>>2]=c[q+0>>2];c[A+4>>2]=c[q+4>>2];c[A+8>>2]=c[q+8>>2];c[A+12>>2]=c[q+12>>2];p=it(4)|0;c[ib>>2]=p;c[ua>>2]=p;c[jb>>2]=p+4;if(!p)rb=0;else{c[p>>2]=q;rb=p}c[ib>>2]=rb+4;c[db>>2]=0;c[v>>2]=0;c[cb>>2]=0;if(((c[fb>>2]|0)-(c[lb>>2]|0)|0)>0){p=0;do{do if((p|0)!=(bb|0)){if(Ed(Rf(f,p)|0,z)|0)break;if(!(Hd(z,Rf(f,p)|0)|0))break;q=it(40)|0;Pe(q,Rf(f,p)|0);Uf(A,q)}while(0);p=p+1|0}while((p|0)<((c[fb>>2]|0)-(c[lb>>2]|0)>>2|0))}c[e>>2]=c[(_f(f,sa)|0)>>2];c[ya>>2]=0;p=c[v>>2]|0;if((p|0)==(c[cb>>2]|0))uf(u,e);else{if(!p)sb=0;else{q=e;ab=c[q+4>>2]|0;Ea=p;c[Ea>>2]=c[q>>2];c[Ea+4>>2]=ab;sb=c[v>>2]|0}c[v>>2]=sb+8}ab=it(40)|0;Of(ab,A);pg(a,ab,0)|0;ma=(c[wa>>2]|0)+1|0;Qf(A);Qe(h);Qe(g);sa=sa+1|0}while((sa|0)<((c[hb>>2]|0)-(c[gb>>2]|0)>>3|0))}Qf(f);sa=c[E>>2]|0;ma=c[F>>2]|0;if((w|0)<(sa-ma>>2|0)){Ka=sa;na=ma}else{tb=sa;ub=ma;break a}}if((qa|0)==152){qa=0;pb=c[E>>2]|0;qb=c[F>>2]|0}w=w+1|0;if((w|0)>=(pb-qb>>2|0)){tb=pb;ub=qb;break}else{xa=pb;x=qb}}}else{tb=mb;ub=nb}while(0);nb=c[C>>2]|0;if((nb|0)<(tb-ub>>2|0)){mb=nb;qb=nb;while(1){pb=lg(a,qb)|0;b:do if(!($f(pb,32)|0)){A=pb+32|0;sb=pb+28|0;if(((((c[A>>2]|0)!=(c[sb>>2]|0)?(z=c[(_f(pb,0)|0)>>2]|0,(z|0)==66?((c[A>>2]|0)-(c[sb>>2]|0)|0)==16:0):0)?(c[(_f(pb,1)|0)>>2]|0)==97:0)?(sb=pb+12|0,A=pb+4|0,z=(c[sb>>2]|0)+1-(c[A>>2]|0)<<2,(z|0)<=((kg(a)|0)*5|0)):0)?(mb|0)<((c[E>>2]|0)-(c[F>>2]|0)>>2|0):0){z=mb;c:while(1){do if((z|0)!=(qb|0)){rb=lg(a,z)|0;if($f(rb,32)|0){vb=mb;break b}if(((c[rb+32>>2]|0)-(c[rb+28>>2]|0)|0)<=0)break;ob=c[(_f(rb,0)|0)>>2]|0;if((ob|0)>127)break;if((lu(ob)|0)!=0&(ob|0)!=66&(ob|0)!=81?(((c[sb>>2]|0)+1-(c[A>>2]|0)|0)*5|0)<((c[rb+12>>2]|0)+1-(c[rb+4>>2]|0)<<2|0):0)break c;if(!((Ff(ob)|0)&(ob|0)!=114))break;if(Ef(ob)|0)break;ob=(c[sb>>2]|0)+1-(c[A>>2]|0)|0;x=(c[rb+12>>2]|0)+1-(c[rb+4>>2]|0)|0;if((ob|0)<=(x|0))break c;if(Fh(ob,x,10,1)|0)break c}while(0);z=z+1|0;if((z|0)>=((c[E>>2]|0)-(c[F>>2]|0)>>2|0)){vb=mb;break b}}Zf(pb,0,1);vb=mb}else vb=mb}else vb=qb+1|0;while(0);qb=qb+1|0;wb=c[E>>2]|0;xb=c[F>>2]|0;if((qb|0)>=(wb-xb>>2|0))break;else mb=vb}yb=wb;zb=xb;Ab=c[C>>2]|0}else{yb=tb;zb=ub;Ab=nb}if((Ab|0)<(yb-zb>>2|0)){zb=Ab;yb=Ab;while(1){Ab=lg(a,yb)|0;d:do if(!($f(Ab,32)|0))if((((((c[Ab+32>>2]|0)-(c[Ab+28>>2]|0)|0)==16?(c[(_f(Ab,1)|0)>>2]|0)==56:0)?(nb=c[(_f(Ab,0)|0)>>2]|0,(nb|0)==97|(nb|0)==101):0)?(nb=Ab+12|0,ub=Ab+4|0,tb=((c[nb>>2]|0)+1-(c[ub>>2]|0)|0)*5|0,(tb|0)>=((kg(a)|0)<<2|0)):0)?(zb|0)<((c[E>>2]|0)-(c[F>>2]|0)>>2|0):0){tb=zb;e:while(1){do if((tb|0)!=(yb|0)){xb=lg(a,tb)|0;if($f(xb,32)|0){Bb=zb;break d}if(((c[xb+32>>2]|0)-(c[xb+28>>2]|0)|0)<=0)break;wb=c[(_f(xb,0)|0)>>2]|0;if((wb|0)>127)break;if((Is(wb)|0)!=0|(wb|0)==58?((c[nb>>2]|0)+1-(c[ub>>2]|0)<<2|0)>(((c[xb+12>>2]|0)+1-(c[xb+4>>2]|0)|0)*5|0):0)break e;if((wb+ -48|0)>>>0>=10?!((lu(wb)|0)!=0|(wb|0)==108):0)break;wb=(c[nb>>2]|0)+1-(c[ub>>2]|0)|0;vb=(c[xb+12>>2]|0)+1-(c[xb+4>>2]|0)|0;if((wb|0)>=(vb|0))break e;if(Fh(wb,vb,10,1)|0)break e}while(0);tb=tb+1|0;if((tb|0)>=((c[E>>2]|0)-(c[F>>2]|0)>>2|0)){Bb=zb;break d}}Zf(Ab,0,1);Bb=zb}else Bb=zb;else Bb=yb+1|0;while(0);yb=yb+1|0;if((yb|0)>=((c[E>>2]|0)-(c[F>>2]|0)>>2|0))break;else zb=Bb}}ci(a);Bb=c[C>>2]|0;zb=c[E>>2]|0;yb=c[F>>2]|0;if((Bb|0)<(zb-yb>>2|0)){Ab=Bb;do{tb=lg(a,Ab)|0;do if(((c[tb+32>>2]|0)-(c[tb+28>>2]|0)|0)==8?(c[(_f(tb,0)|0)>>2]|0)==105:0){ub=Ab+1|0;if((ub|0)<((c[E>>2]|0)-(c[F>>2]|0)>>2|0)?(nb=lg(a,ub)|0,(c[nb+32>>2]|0)!=(c[nb+28>>2]|0)):0)Cb=ub;else{ub=Ab+ -1|0;if((Ab|0)<=(c[C>>2]|0))break;nb=lg(a,ub)|0;if((c[nb+32>>2]|0)==(c[nb+28>>2]|0))break;else Cb=ub}ub=lg(a,Cb)|0;if(Hf(c[(_f(ub,0)|0)>>2]|0)|0?(nb=c[ub+12>>2]|0,(c[tb+12>>2]|0)>=(((nb+1-(c[ub+4>>2]|0)|0)/4|0)+nb|0)):0)Wf(tb,0,106,1)}while(0);Ab=Ab+1|0;Db=c[E>>2]|0;Eb=c[F>>2]|0}while((Ab|0)<(Db-Eb>>2|0));Fb=Db;Gb=Eb;Hb=c[C>>2]|0}else{Fb=zb;Gb=yb;Hb=Bb}if((Hb|0)<(Fb-Gb>>2|0)){Bb=Hb;yb=Hb;zb=0;while(1){Eb=lg(a,yb)|0;f:do if(((c[Eb+32>>2]|0)-(c[Eb+28>>2]|0)|0)>0){if($f(Eb,32)|0){Db=yb+2|0;if((Db|0)<((c[E>>2]|0)-(c[F>>2]|0)>>2|0)?$f(lg(a,Db)|0,32)|0:0){Ib=c[C>>2]|0;Jb=1;break}Ib=yb+1|0;Jb=0;break}Db=c[(_f(Eb,0)|0)>>2]|0;if((((Db|0)>=128?(Ab=Eb+20|0,Cb=Eb+16|0,((c[Ab>>2]|0)-(c[Cb>>2]|0)|0)>=8):0)?(tb=vf(Db)|0,(tb|0)==111|(tb|0)==117):0)?(tb=Sf(Eb,((c[Ab>>2]|0)-(c[Cb>>2]|0)>>2)+ -1|0)|0,(Bb|0)<((c[E>>2]|0)-(c[F>>2]|0)>>2|0)):0){Cb=Eb+12|0;Ab=Eb+4|0;nb=tb+12|0;ub=tb+4|0;g:do if(zb){tb=Bb;while(1){do if((tb|0)!=(yb|0)){vb=lg(a,tb)|0;if(((c[vb+32>>2]|0)-(c[vb+28>>2]|0)|0)<=0)break;if($f(vb,32)|0)break;wb=c[(_f(vb,0)|0)>>2]|0;xb=vf(wb)|0;if((xb|0)==0&(wb|0)>127)break;if((Is(wb)|0)!=0?((c[nb>>2]|0)+1-(c[ub>>2]|0)<<2|0)>(((c[vb+12>>2]|0)+1-(c[vb+4>>2]|0)|0)*5|0):0)break g;if((lu(wb)|0)!=0?Fh((c[nb>>2]|0)+1-(c[ub>>2]|0)|0,(c[vb+12>>2]|0)+1-(c[vb+4>>2]|0)|0,10,1)|0:0)break g;if((Is(xb)|0)!=0?((c[Cb>>2]|0)+1-(c[Ab>>2]|0)<<2|0)>(((c[vb+12>>2]|0)+1-(c[vb+4>>2]|0)|0)*5|0):0)break g;if(!(lu(xb)|0))break;if(Fh((c[Cb>>2]|0)+1-(c[Ab>>2]|0)|0,(c[vb+12>>2]|0)+1-(c[vb+4>>2]|0)|0,10,1)|0)break g}while(0);tb=tb+1|0;if((tb|0)>=((c[E>>2]|0)-(c[F>>2]|0)>>2|0)){Ib=Bb;Jb=zb;break f}}}else{tb=Bb;while(1){do if((tb|0)!=(yb|0)){vb=lg(a,tb)|0;if(((c[vb+32>>2]|0)-(c[vb+28>>2]|0)|0)<=0)break;if($f(vb,32)|0){Ib=Bb;Jb=0;break f}xb=c[(_f(vb,0)|0)>>2]|0;wb=vf(xb)|0;if((wb|0)==0&(xb|0)>127)break;if((Is(xb)|0)!=0?((c[nb>>2]|0)+1-(c[ub>>2]|0)<<2|0)>(((c[vb+12>>2]|0)+1-(c[vb+4>>2]|0)|0)*5|0):0)break g;if((lu(xb)|0)!=0?Fh((c[nb>>2]|0)+1-(c[ub>>2]|0)|0,(c[vb+12>>2]|0)+1-(c[vb+4>>2]|0)|0,10,1)|0:0)break g;if((Is(wb)|0)!=0?((c[Cb>>2]|0)+1-(c[Ab>>2]|0)<<2|0)>(((c[vb+12>>2]|0)+1-(c[vb+4>>2]|0)|0)*5|0):0)break g;if(!(lu(wb)|0))break;if(Fh((c[Cb>>2]|0)+1-(c[Ab>>2]|0)|0,(c[vb+12>>2]|0)+1-(c[vb+4>>2]|0)|0,10,1)|0)break g}while(0);tb=tb+1|0;if((tb|0)>=((c[E>>2]|0)-(c[F>>2]|0)>>2|0)){Ib=Bb;Jb=zb;break f}}}while(0);Wf(Eb,0,Nf(Db)|0,1);Ib=Bb;Jb=zb}else{Ib=Bb;Jb=zb}}else{Ib=Bb;Jb=zb}while(0);yb=yb+1|0;Kb=c[E>>2]|0;Lb=c[F>>2]|0;if((yb|0)>=(Kb-Lb>>2|0))break;else{Bb=Ib;zb=Jb}}Mb=Kb;Nb=Lb;Ob=c[C>>2]|0}else{Mb=Fb;Nb=Gb;Ob=Hb}Hb=Mb-Nb>>2;if((Ob|0)<(Hb|0)){Gb=Ob;Fb=Ob;while(1){Lb=lg(a,Fb)|0;h:do if(!($f(Lb,32)|0))if((((c[Lb+32>>2]|0)-(c[Lb+28>>2]|0)|0)>0?(Kb=c[(_f(Lb,0)|0)>>2]|0,(Kb|0)==79|(Kb|0)==108|(Kb|0)==111):0)?(Gb|0)<((c[E>>2]|0)-(c[F>>2]|0)>>2|0):0){Jb=Gb;i:while(1){do if((Jb|0)!=(Fb|0)){Pb=lg(a,Jb)|0;if($f(Pb,32)|0){Qb=Gb;break h}if(((c[Pb+32>>2]|0)-(c[Pb+28>>2]|0)|0)<=0)break;zb=c[(_f(Pb,0)|0)>>2]|0;if(zf(zb)|0)break i;if(!(yf(zb)|0))break;if(!((zb|0)==79|(zb|0)==108|(zb|0)==111)){Qb=Gb;break h}}while(0);Jb=Jb+1|0;if((Jb|0)>=((c[E>>2]|0)-(c[F>>2]|0)>>2|0)){Qb=Gb;break h}}if(Fh((c[Lb+12>>2]|0)+1-(c[Lb+4>>2]|0)|0,(c[Pb+12>>2]|0)+1-(c[Pb+4>>2]|0)|0,10,1)|0){Wf(Lb,0,(Kb|0)==108?49:48,(c[(_f(Lb,0)|0)+4>>2]|0)+1|0);Qb=Gb}else Qb=Gb}else Qb=Gb;else Qb=Fb+1|0;while(0);Fb=Fb+1|0;Rb=c[E>>2]|0;Sb=c[F>>2]|0;Tb=Rb-Sb>>2;if((Fb|0)>=(Tb|0))break;else Gb=Qb}Ub=Tb;Vb=c[C>>2]|0;Wb=Sb;Xb=Rb}else{Ub=Hb;Vb=Ob;Wb=Nb;Xb=Mb}if((Ub|0)>(Vb|0)){Mb=B+12|0;Nb=e+4|0;Ob=Ub;do{Ub=Ob;Ob=Ob+ -1|0;Hb=lg(a,Ob)|0;Rb=Hb+32|0;j:do if(((c[Rb>>2]|0)-(c[Hb+28>>2]|0)|0)==8?(c[(_f(Hb,0)|0)>>2]|0)==112:0){Sb=Hb+12|0;Tb=Hb+4|0;Qb=((c[Sb>>2]|0)+1-(c[Tb>>2]|0)|0)/20|0;Gb=(Qb|0)>2?Qb:2;k:do if((Ub|0)<=(((c[E>>2]|0)-(c[F>>2]|0)>>2)+ -1|0)){Qb=lg(a,Ub)|0;if((c[Qb+32>>2]|0)==(c[Qb+28>>2]|0)){qa=299;break}Qb=lg(a,Ub)|0;Fb=c[(_f(Qb,0)|0)>>2]|0;l:do if(!(xf(Fb)|0)){if(!((Fb|0)==124|(Fb|0)==46)){qa=299;break k}}else switch(Fb|0){case 81:{Pb=(c[Tb>>2]|0)-(c[Qb+4>>2]|0)|0;if((((Pb|0)>-1?Pb:0-Pb|0)|0)>(Gb|0))break j;else break k;break};case 121:case 113:case 112:case 106:case 103:{if(((c[Sb>>2]|0)+Gb|0)>(c[Qb+12>>2]|0))break j;else break k;break};default:break l}while(0);Fb=(c[Sb>>2]|0)-(c[Qb+12>>2]|0)|0;if((((Fb|0)>-1?Fb:0-Fb|0)|0)>(Gb|0))break j}else qa=299;while(0);if((qa|0)==299){qa=0;if((Ob|0)<=(c[C>>2]|0))break;if($f(lg(a,Ub+ -2|0)|0,32)|0)break;Tb=c[Sb>>2]|0;ng(B,a,Hb);Kb=Tb-(c[Mb>>2]|0)|0;if((((Kb|0)>-1?Kb:0-Kb|0)|0)>(Gb|0))break}Kb=Hb+28|0;Tb=c[Kb>>2]|0;Fb=c[Rb>>2]|0;if((Fb|0)==(Tb|0))Yb=Tb;else{Pb=Fb+(~((Fb+ -8+(0-Tb)|0)>>>3)<<3)|0;c[Rb>>2]=Pb;Yb=Pb}c[e>>2]=80;c[Nb>>2]=0;if((Yb|0)==(c[Hb+36>>2]|0)){uf(Kb,e);break}if(!Yb)Zb=0;else{Kb=e;Pb=c[Kb+4>>2]|0;Tb=Yb;c[Tb>>2]=c[Kb>>2];c[Tb+4>>2]=Pb;Zb=c[Rb>>2]|0}c[Rb>>2]=Zb+8}while(0);_b=c[C>>2]|0}while((Ob|0)>(_b|0));$b=c[E>>2]|0;ac=c[F>>2]|0;bc=_b}else{$b=Xb;ac=Wb;bc=Vb}Vb=$b-ac>>2;ac=Vb+ -1|0;if((ac|0)>(bc|0)){bc=f+4|0;$b=Vb;Vb=ac;while(1){ac=lg(a,$b+ -2|0)|0;Wb=ac+32|0;m:do if((((c[Wb>>2]|0)-(c[ac+28>>2]|0)|0)==8?(c[(_f(ac,0)|0)>>2]|0)==89:0)?(Xb=lg(a,Vb)|0,(c[Xb+32>>2]|0)!=(c[Xb+28>>2]|0)):0){_b=c[(_f(Xb,0)|0)>>2]|0;n:do if(!(xf(_b)|0))if((_b|0)==124|(_b|0)==46)qa=321;else break m;else switch(_b|0){case 121:case 113:case 112:case 106:case 103:{if((c[ac+12>>2]|0)<((c[Xb+12>>2]|0)+ -2|0))break m;else break n;break};case 81:{if((c[ac+4>>2]|0)<((c[Xb+4>>2]|0)+2|0))break m;else break n;break};default:{qa=321;break n}}while(0);if((qa|0)==321?(qa=0,(c[ac+12>>2]|0)<((c[Xb+12>>2]|0)+2|0)):0)break;_b=ac+28|0;Gb=c[_b>>2]|0;Sb=c[Wb>>2]|0;if((Sb|0)==(Gb|0))cc=Gb;else{Ob=Sb+(~((Sb+ -8+(0-Gb)|0)>>>3)<<3)|0;c[Wb>>2]=Ob;cc=Ob}c[f>>2]=121;c[bc>>2]=0;if((cc|0)==(c[ac+36>>2]|0)){uf(_b,f);break}if(!cc)dc=0;else{_b=f;Ob=c[_b+4>>2]|0;Gb=cc;c[Gb>>2]=c[_b>>2];c[Gb+4>>2]=Ob;dc=c[Wb>>2]|0}c[Wb>>2]=dc+8}while(0);Wb=Vb+ -1|0;if((Wb|0)>(c[C>>2]|0)){ac=Vb;Vb=Wb;$b=ac}else break}}if(Gh(b,2)|0){$b=c[C>>2]|0;Vb=c[E>>2]|0;dc=c[F>>2]|0;if(($b|0)<(Vb-dc>>2|0)){cc=$b;while(1){$b=lg(a,cc)|0;o:do if(((c[$b+32>>2]|0)-(c[$b+28>>2]|0)|0)==8){if((c[(_f($b,0)|0)>>2]|0)!=351)break;do if((cc|0)>(c[C>>2]|0)){f=cc+ -1|0;bc=lg(a,f)|0;if((c[bc+32>>2]|0)==(c[bc+28>>2]|0))break;bc=lg(a,f)|0;f=c[(_f(bc,0)|0)>>2]|0;if(!(Cf(f)|0?(c[$b+4>>2]|0)<((c[bc+4>>2]|0)+ -2|0):0)){if(!((vf(f)|0)!=0&(f|0)!=305))break;if(!(Fh(c[$b+4>>2]|0,c[bc+4>>2]|0,10,1)|0))break}Wf($b,0,350,1);break o}while(0);if((cc|0)>=(((c[E>>2]|0)-(c[F>>2]|0)>>2)+ -1|0))break;Xb=cc+1|0;bc=lg(a,Xb)|0;if((c[bc+32>>2]|0)==(c[bc+28>>2]|0))break;bc=lg(a,Xb)|0;Xb=c[(_f(bc,0)|0)>>2]|0;if(!(Cf(Xb)|0?(c[$b+4>>2]|0)<((c[bc+4>>2]|0)+ -2|0):0)){if(!((vf(Xb)|0)!=0&(Xb|0)!=305))break;if(!(Fh(c[$b+4>>2]|0,c[bc+4>>2]|0,10,1)|0))break}Wf($b,0,350,1)}while(0);cc=cc+1|0;$b=c[E>>2]|0;bc=c[F>>2]|0;if((cc|0)>=($b-bc>>2|0)){ec=$b;fc=bc;break}}}else{ec=Vb;fc=dc}}else{ec=c[E>>2]|0;fc=c[F>>2]|0}dc=c[C>>2]|0;if((dc|0)<(ec-fc>>2|0)){Vb=ec;cc=fc;bc=dc;do{p:do if(Vb-cc>>2>>>0>bc>>>0){$b=bc;Xb=cc;while(1){if($f(c[Xb+($b<<2)>>2]|0,32)|0){gc=$b;break p}f=$b+1|0;if($f(c[(c[F>>2]|0)+($b<<2)>>2]|0,45)|0){gc=$b;break p}Xb=c[F>>2]|0;if(f>>>0>=(c[E>>2]|0)-Xb>>2>>>0){gc=f;break}else $b=f}}else gc=bc;while(0);do if((gc-bc|0)>=2){$b=lg(a,bc)|0;if((c[$b+32>>2]|0)==(c[$b+28>>2]|0))break;Xb=(c[$b+12>>2]|0)+1-(c[$b+4>>2]|0)|0;f=c[(_f($b,0)|0)>>2]|0;if(!(zf(f)|0)?!((f|0)==79|(f|0)==108|(f|0)==111):0)break;else{hc=1;ic=bc}while(1){ic=ic+1|0;if((ic|0)>=(gc|0)){jc=hc;break}f=lg(a,ic)|0;if((c[f+32>>2]|0)==(c[f+28>>2]|0)){jc=hc;break}$b=c[(_f(f,0)|0)>>2]|0;if(!(zf($b)|0)?!(($b|0)==79|($b|0)==108|($b|0)==111):0){kc=hc;lc=0}else{ac=Fh((c[f+12>>2]|0)+1-(c[f+4>>2]|0)|0,Xb,10,1)|0;kc=(ac&1)+hc|0;lc=ac}if(!(($b&-3|0)==44|($b|0)==58|($b|0)==43|($b|0)==45|lc)){jc=kc;break}else hc=kc}if((ic|0)>=(gc|0)&(jc|0)>1&(bc|0)<(gc|0))mc=bc;else break;do{Xb=lg(a,mc)|0;$b=c[(_f(Xb,0)|0)>>2]|0;if(($b|0)!=108){if(($b&-33|0)==79){nc=48;qa=367}}else{nc=49;qa=367}if((qa|0)==367){qa=0;Wf(Xb,0,nc,(c[(_f(Xb,0)|0)+4>>2]|0)+1|0)}mc=mc+1|0}while((mc|0)!=(gc|0))}while(0);bc=gc+1|0;Vb=c[E>>2]|0;cc=c[F>>2]|0}while((bc|0)<(Vb-cc>>2|0));oc=Vb;pc=cc;qc=c[C>>2]|0}else{oc=ec;pc=fc;qc=dc}if((qc|0)<(oc-pc>>2|0)){dc=oc;fc=pc;ec=qc;do{q:do if(dc-fc>>2>>>0>ec>>>0){cc=ec;Vb=fc;while(1){if($f(c[Vb+(cc<<2)>>2]|0,32)|0){rc=cc;break q}bc=cc+1|0;if($f(c[(c[F>>2]|0)+(cc<<2)>>2]|0,45)|0){rc=cc;break q}Vb=c[F>>2]|0;if(bc>>>0>=(c[E>>2]|0)-Vb>>2>>>0){rc=bc;break}else cc=bc}}else rc=ec;while(0);r:do if((-2-ec+rc|0)>>>0<=2){cc=lg(a,ec)|0;Vb=(c[cc+12>>2]|0)+1-(c[cc+4>>2]|0)|0;cc=(ec|0)<(rc|0);if(cc)sc=ec;else break;do{bc=lg(a,sc)|0;if(!($f(bc,124)|0))break r;sc=sc+1|0;if(!(Fh((c[bc+12>>2]|0)+1-(c[bc+4>>2]|0)|0,Vb,10,1)|0))break r}while((sc|0)<(rc|0));if(cc)tc=ec;else break;do{Vb=lg(a,tc)|0;if(!($f(lg(a,tc)|0,73)|0))Wf(Vb,0,73,(c[(_f(Vb,0)|0)+4>>2]|0)+1|0);tc=tc+1|0}while((tc|0)!=(rc|0))}while(0);ec=rc+1|0;dc=c[E>>2]|0;fc=c[F>>2]|0}while((ec|0)<(dc-fc>>2|0));uc=dc;vc=fc;wc=c[C>>2]|0}else{uc=oc;vc=pc;wc=qc}if((wc|0)<(uc-vc>>2|0)){qc=wc;do{pc=lg(a,qc)|0;s:do if(((c[pc+32>>2]|0)-(c[pc+28>>2]|0)|0)==16){if((c[(_f(pc,0)|0)>>2]|0)!=97)break;if((c[(_f(pc,1)|0)>>2]|0)!=81)break;oc=pc+12|0;fc=pc+4|0;dc=(c[oc>>2]|0)+1-(c[fc>>2]|0)<<2;if((dc|0)>((kg(a)|0)*5|0)){Zf(pc,0,1);ci(a);break}do if((qc|0)<(((c[E>>2]|0)-(c[F>>2]|0)>>2)+ -1|0)){dc=qc+1|0;ec=lg(a,dc)|0;if((c[ec+32>>2]|0)==(c[ec+28>>2]|0))break;if(!(Af(c[(_f(lg(a,dc)|0,0)|0)>>2]|0)|0))break;ec=((c[oc>>2]|0)+1-(c[fc>>2]|0)|0)*10|0;rc=lg(a,dc)|0;if((ec|0)<=(((c[rc+12>>2]|0)+1-(c[rc+4>>2]|0)|0)*9|0))break;Zf(pc,0,1);ci(a);break s}while(0);if((qc|0)<=(c[C>>2]|0))break;rc=qc+ -1|0;ec=lg(a,rc)|0;if((c[ec+32>>2]|0)==(c[ec+28>>2]|0))break;if(!(Af(c[(_f(lg(a,rc)|0,0)|0)>>2]|0)|0))break;ec=((c[oc>>2]|0)+1-(c[fc>>2]|0)|0)*10|0;dc=lg(a,rc)|0;if((ec|0)<=(((c[dc+12>>2]|0)+1-(c[dc+4>>2]|0)|0)*9|0))break;Zf(pc,0,1);ci(a)}while(0);qc=qc+1|0;xc=c[E>>2]|0;yc=c[F>>2]|0}while((qc|0)<(xc-yc>>2|0));zc=xc;Ac=yc;Bc=c[C>>2]|0}else{zc=uc;Ac=vc;Bc=wc}if((Bc|0)<(zc-Ac>>2|0)){wc=Bc;do{vc=lg(a,wc)|0;t:do if(((c[vc+32>>2]|0)-(c[vc+28>>2]|0)|0)==8){uc=c[(_f(vc,0)|0)>>2]|0;yc=(uc|0)==108;if((uc&-17|0)!=108)break;do if((wc|0)>0){uc=wc+ -1|0;xc=lg(a,uc)|0;if((c[xc+32>>2]|0)==(c[xc+28>>2]|0)){Cc=0;break}Cc=c[(_f(lg(a,uc)|0,0)|0)>>2]|0}else Cc=0;while(0);do if((wc|0)<(((c[E>>2]|0)-(c[F>>2]|0)>>2)+ -1|0)){fc=wc+1|0;oc=lg(a,fc)|0;if((c[oc+32>>2]|0)==(c[oc+28>>2]|0)){Dc=0;break}Dc=c[(_f(lg(a,fc)|0,0)|0)>>2]|0}else Dc=0;while(0);if(!(!(Bf(Dc)|0)?!(zf(Dc)|0):0))qa=416;u:do if((qa|0)==416){qa=0;do if(Cc){if(Bf(Cc)|0)break;if(xf(Cc)|0)break u}while(0);Wf(vc,0,73,1);break t}while(0);if(yc)break;do if(!(yf(Cc)|0)){if(yf(Dc)|0)break;if((Dc|0)!=124)break t;if((Cc|0)!=0?xf(Cc)|0:0)break t;do if((wc|0)<(((c[E>>2]|0)-(c[F>>2]|0)>>2)+ -2|0)){Qb=wc+2|0;fc=lg(a,Qb)|0;if((c[fc+32>>2]|0)==(c[fc+28>>2]|0))break;if(!(yf(c[(_f(lg(a,Qb)|0,0)|0)>>2]|0)|0))break;Wf(vc,0,108,1);break t}while(0);if((wc|0)<=1)break t;Qb=wc+ -2|0;fc=lg(a,Qb)|0;if((c[fc+32>>2]|0)==(c[fc+28>>2]|0))break t;if(!(yf(c[(_f(lg(a,Qb)|0,0)|0)>>2]|0)|0))break t;Wf(vc,0,108,1);break t}while(0);Wf(vc,0,108,1)}while(0);wc=wc+1|0;Ec=c[E>>2]|0;Fc=c[F>>2]|0}while((wc|0)<(Ec-Fc>>2|0));Gc=Ec;Hc=Fc;Ic=c[C>>2]|0}else{Gc=zc;Hc=Ac;Ic=Bc}if((Ic|0)<(Gc-Hc>>2|0)){Bc=Gc;Gc=Hc;Hc=Ic;do{v:do if(Bc-Gc>>2>>>0>Hc>>>0){Ic=Hc;Ac=Gc;while(1){if($f(c[Ac+(Ic<<2)>>2]|0,32)|0){Jc=Ic;break v}zc=Ic+1|0;if($f(c[(c[F>>2]|0)+(Ic<<2)>>2]|0,45)|0){Jc=Ic;break v}Ac=c[F>>2]|0;if(zc>>>0>=(c[E>>2]|0)-Ac>>2>>>0){Jc=zc;break}else Ic=zc}}else Jc=Hc;while(0);w:do if((Jc-Hc|0)>=3){Ic=Jc+ -1|0;Ac=lg(a,Ic)|0;if(!($f(Ac,124)|0))break;if($f(Ac,73)|0)break;zc=(c[Ac+12>>2]|0)+1-(c[Ac+4>>2]|0)|0;if((Hc|0)<(Ic|0)){Fc=Hc;do{Ec=lg(a,Fc)|0;if((c[Ec+32>>2]|0)==(c[Ec+28>>2]|0))break w;wc=c[(_f(Ec,0)|0)>>2]|0;if(!(Bf(wc)|0)?!(zf(wc)|0):0)break w;Fc=Fc+1|0;if(!(Fh((c[Ec+12>>2]|0)+1-(c[Ec+4>>2]|0)|0,zc,10,1)|0))break w}while((Fc|0)<(Ic|0))}Wf(Ac,0,73,(c[(_f(Ac,0)|0)+4>>2]|0)+1|0)}while(0);Hc=Jc+1|0;Bc=c[E>>2]|0;Gc=c[F>>2]|0}while((Hc|0)<(Bc-Gc>>2|0))}do if(Gh(b,2)|0){Gc=c[C>>2]|0;Bc=c[E>>2]|0;Hc=c[F>>2]|0;if((Gc|0)>=(Bc-Hc>>2|0)){Kc=Bc;Lc=Hc;break}Hc=g+4|0;Bc=Gc;Jc=Gc;while(1){Gc=lg(a,Jc)|0;do if($f(Gc,32)|0)Mc=Jc+1|0;else{Ic=Gc+32|0;if((c[Ic>>2]|0)==(c[Gc+28>>2]|0)){Mc=Bc;break}Fc=c[(_f(Gc,0)|0)>>2]|0;if(!((Fc|0)==108|(Fc|0)==124)){Mc=Bc;break}Fc=Gc+12|0;zc=Gc+4|0;Ec=(c[Fc>>2]|0)+1-(c[zc>>2]|0)<<2;if((Ec|0)>((kg(a)|0)*5|0)){Mc=Bc;break}Ec=((c[Fc>>2]|0)+1-(c[zc>>2]|0)|0)*5|0;if((Ec|0)<((kg(a)|0)<<2|0)){Ec=Gc+28|0;wc=c[Ec>>2]|0;Cc=c[Ic>>2]|0;if((Cc|0)==(wc|0))Nc=wc;else{Dc=Cc+(~((Cc+ -8+(0-wc)|0)>>>3)<<3)|0;c[Ic>>2]=Dc;Nc=Dc}c[g>>2]=305;c[Hc>>2]=0;if((Nc|0)==(c[Gc+36>>2]|0)){uf(Ec,g);Mc=Bc;break}if(!Nc)Oc=0;else{Ec=g;Dc=c[Ec+4>>2]|0;wc=Nc;c[wc>>2]=c[Ec>>2];c[wc+4>>2]=Dc;Oc=c[Ic>>2]|0}c[Ic>>2]=Oc+8;Mc=Bc;break}if((Bc|0)<((c[E>>2]|0)-(c[F>>2]|0)>>2|0)){Pc=0;Qc=Bc;Rc=0}else{Mc=Bc;break}x:while(1){do if((Qc|0)==(Jc|0)){Sc=Pc;Tc=Rc}else{Ic=lg(a,Qc)|0;if($f(Ic,32)|0){Uc=Pc;Vc=Rc;break x}if((c[Ic+32>>2]|0)==(c[Ic+28>>2]|0)){Sc=Pc;Tc=Rc;break}Dc=c[(_f(Ic,0)|0)>>2]|0;if((Dc|0)>127){Sc=Pc;Tc=Rc;break}if(!(Is(Dc)|0)){Sc=Pc;Tc=Rc;break}do if(Pc)Wc=1;else{wc=Ic+12|0;Ec=Ic+4|0;if(((c[Fc>>2]|0)+1-(c[zc>>2]|0)<<2|0)>(((c[wc>>2]|0)+1-(c[Ec>>2]|0)|0)*5|0)){Wc=1;break}if(!((lu(Dc)|0)!=0&(Dc|0)!=66&(Dc|0)!=81)){Wc=0;break}Cc=(c[Fc>>2]|0)+1-(c[zc>>2]|0)|0;qa=(c[wc>>2]|0)+1-(c[Ec>>2]|0)|0;if((Cc|0)<(qa|0)?!(Fh(Cc,qa,10,1)|0):0){Wc=0;break}Wc=1}while(0);if(Rc){Sc=Wc;Tc=1;break}if(!((Js(Dc)|0)!=0&(Dc|0)!=108)){Sc=Wc;Tc=0;break}qa=Ic+12|0;Cc=Ic+4|0;if((((c[Fc>>2]|0)+1-(c[zc>>2]|0)|0)*5|0)<((c[qa>>2]|0)+1-(c[Cc>>2]|0)<<2|0)){Sc=Wc;Tc=1;break}if(!(Ff(Dc)|0)){Sc=Wc;Tc=0;break}if((Qc|0)>=(Jc|0)?Ef(Dc)|0:0){Sc=Wc;Tc=0;break}Sc=Wc;Tc=Fh((c[Fc>>2]|0)+1-(c[zc>>2]|0)|0,(c[qa>>2]|0)+1-(c[Cc>>2]|0)|0,10,1)|0}while(0);Qc=Qc+1|0;if((Qc|0)>=((c[E>>2]|0)-(c[F>>2]|0)>>2|0)){Uc=Sc;Vc=Tc;break}else{Pc=Sc;Rc=Tc}}if(Uc|Vc^1){Mc=Bc;break}Wf(Gc,0,305,1);Mc=Bc}while(0);Jc=Jc+1|0;Gc=c[E>>2]|0;Ac=c[F>>2]|0;if((Jc|0)>=(Gc-Ac>>2|0)){Kc=Gc;Lc=Ac;break}else Bc=Mc}}else{Kc=c[E>>2]|0;Lc=c[F>>2]|0}while(0);Mc=c[C>>2]|0;if((Mc|0)<((Kc-Lc>>2)+ -1|0)){Vc=h+4|0;Uc=Mc;do{Tc=lg(a,Uc)|0;Uc=Uc+1|0;Rc=lg(a,Uc)|0;Sc=Tc+32|0;do if(((c[Sc>>2]|0)-(c[Tc+28>>2]|0)|0)==8){if(((c[Rc+32>>2]|0)-(c[Rc+28>>2]|0)|0)!=8)break;Pc=c[(_f(Tc,0)|0)>>2]|0;Qc=_f(Rc,0)|0;if(!((Pc|0)==39|(Pc|0)==96))break;if((Pc|0)!=(c[Qc>>2]|0))break;Qc=c[Tc+8>>2]|0;if(((c[Rc>>2]|0)-Qc<<1|0)>=((Qc+1-(c[Tc>>2]|0)|0)*3|0))break;ag(Tc,Rc);Qc=Tc+28|0;Pc=c[Qc>>2]|0;Wc=c[Sc>>2]|0;if((Wc|0)==(Pc|0))Xc=Pc;else{Oc=Wc+(~((Wc+ -8+(0-Pc)|0)>>>3)<<3)|0;c[Sc>>2]=Oc;Xc=Oc}c[h>>2]=34;c[Vc>>2]=0;if((Xc|0)==(c[Tc+36>>2]|0))uf(Qc,h);else{if(!Xc)Yc=0;else{Qc=h;Oc=c[Qc+4>>2]|0;Pc=Xc;c[Pc>>2]=c[Qc>>2];c[Pc+4>>2]=Oc;Yc=c[Sc>>2]|0}c[Sc>>2]=Yc+8}og(a,Uc)}while(0);Zc=c[E>>2]|0;_c=c[F>>2]|0}while((Uc|0)<((Zc-_c>>2)+ -1|0));$c=Zc;ad=_c;bd=c[C>>2]|0}else{$c=Kc;ad=Lc;bd=Mc}Mc=$c-ad|0;ad=(Mc>>2)+ -1|0;if((bd|0)<(ad|0)){$c=h+4|0;Lc=bd;do{bd=lg(a,Lc)|0;Lc=Lc+1|0;Kc=lg(a,Lc)|0;_c=bd+32|0;do if(((c[_c>>2]|0)-(c[bd+28>>2]|0)|0)==8){if(((c[Kc+32>>2]|0)-(c[Kc+28>>2]|0)|0)!=8)break;Zc=c[(_f(bd,0)|0)>>2]|0;Uc=_f(Kc,0)|0;if((Zc|0)!=44)break;if((c[Uc>>2]|0)!=46)break;if((c[bd+4>>2]|0)<=(c[Kc+12>>2]|0))break;Uc=c[Kc>>2]|0;if((Uc-(c[bd+8>>2]|0)|0)>=(1-Uc+(c[Kc+8>>2]|0)|0))break;ag(bd,Kc);Uc=bd+28|0;Zc=c[Uc>>2]|0;Yc=c[_c>>2]|0;if((Yc|0)==(Zc|0))cd=Zc;else{Xc=Yc+(~((Yc+ -8+(0-Zc)|0)>>>3)<<3)|0;c[_c>>2]=Xc;cd=Xc}c[h>>2]=59;c[$c>>2]=0;if((cd|0)==(c[bd+36>>2]|0))uf(Uc,h);else{if(!cd)dd=0;else{Uc=h;Xc=c[Uc+4>>2]|0;Zc=cd;c[Zc>>2]=c[Uc>>2];c[Zc+4>>2]=Xc;dd=c[_c>>2]|0}c[_c>>2]=dd+8}og(a,Lc)}while(0);_c=(c[E>>2]|0)-(c[F>>2]|0)|0;bd=(_c>>2)+ -1|0}while((Lc|0)<(bd|0));ed=_c;fd=bd}else{ed=Mc;fd=ad}do if((ed|0)>4){ad=lg(a,fd)|0;if(((c[ad+32>>2]|0)-(c[ad+28>>2]|0)|0)<=8)break;if((c[(_f(ad,0)|0)>>2]|0)!=46)break;if((c[(_f(ad,1)|0)>>2]|0)!=45)break;Mc=lg(a,((c[E>>2]|0)-(c[F>>2]|0)>>2)+ -2|0)|0;if((c[Mc+32>>2]|0)==(c[Mc+28>>2]|0))break;if(!(yf(c[(_f(Mc,0)|0)>>2]|0)|0))break;Zf(ad,0,1)}while(0);fd=c[C>>2]|0;ed=c[E>>2]|0;ad=c[F>>2]|0;if((fd|0)<((ed-ad>>2)+ -1|0)){Mc=h+4|0;Lc=fd;do{dd=lg(a,Lc)|0;Lc=Lc+1|0;cd=lg(a,Lc)|0;$c=dd+32|0;do if(((c[$c>>2]|0)-(c[dd+28>>2]|0)|0)==8){if(((c[cd+32>>2]|0)-(c[cd+28>>2]|0)|0)!=8)break;bd=c[(_f(dd,0)|0)>>2]|0;_c=_f(cd,0)|0;if((bd|0)!=110)break;bd=c[_c>>2]|0;if(!((bd|0)==73|(bd|0)==108))break;if(!(Fh((c[dd+12>>2]|0)+1-(c[dd+4>>2]|0)|0,(c[cd+12>>2]|0)+1-(c[cd+4>>2]|0)|0,10,1)|0))break;bd=c[cd>>2]|0;if((bd-(c[dd+8>>2]|0)|0)>=(1-bd+(c[cd+8>>2]|0)|0))break;ag(dd,cd);bd=dd+28|0;_c=c[bd>>2]|0;Kc=c[$c>>2]|0;if((Kc|0)==(_c|0))gd=_c;else{Xc=Kc+(~((Kc+ -8+(0-_c)|0)>>>3)<<3)|0;c[$c>>2]=Xc;gd=Xc}c[h>>2]=109;c[Mc>>2]=0;if((gd|0)==(c[dd+36>>2]|0))uf(bd,h);else{if(!gd)hd=0;else{bd=h;Xc=c[bd+4>>2]|0;_c=gd;c[_c>>2]=c[bd>>2];c[_c+4>>2]=Xc;hd=c[$c>>2]|0}c[$c>>2]=hd+8}og(a,Lc)}while(0);id=c[E>>2]|0;jd=c[F>>2]|0}while((Lc|0)<((id-jd>>2)+ -1|0));kd=c[C>>2]|0;ld=id;md=jd}else{kd=fd;ld=ed;md=ad}ad=kd+2|0;if((ad|0)>=(ld-md>>2|0)){i=d;return}md=h+4|0;ld=ad;ad=kd;while(1){kd=lg(a,ad)|0;ed=kd+32|0;do if(((c[ed>>2]|0)-(c[kd+28>>2]|0)|0)==8){if((c[(_f(kd,0)|0)>>2]|0)!=176)break;fd=ad+1|0;if(!($f(lg(a,fd)|0,47)|0))break;if(!($f(lg(a,ld)|0,111)|0))break;jd=ad+3|0;if((jd|0)<((c[E>>2]|0)-(c[F>>2]|0)>>2|0)?!($f(lg(a,jd)|0,32)|0):0)break;ag(kd,lg(a,fd)|0);ag(kd,lg(a,ld)|0);og(a,ld);og(a,fd);fd=kd+28|0;jd=c[fd>>2]|0;id=c[ed>>2]|0;if((id|0)==(jd|0))nd=jd;else{C=id+(~((id+ -8+(0-jd)|0)>>>3)<<3)|0;c[ed>>2]=C;nd=C}c[h>>2]=37;c[md>>2]=0;if((nd|0)==(c[kd+36>>2]|0)){uf(fd,h);break}if(!nd)od=0;else{fd=h;C=c[fd+4>>2]|0;jd=nd;c[jd>>2]=c[fd>>2];c[jd+4>>2]=C;od=c[ed>>2]|0}c[ed>>2]=od+8}while(0);ld=ad+3|0;if((ld|0)>=((c[E>>2]|0)-(c[F>>2]|0)>>2|0))break;else ad=ad+1|0}i=d;return}function ei(a){a=a|0;var b=0,d=0,e=0,f=0;a=i;b=c[q>>2]|0;Ci(4152,b,4208);c[860]=5396;c[862]=5416;c[861]=0;Ij(3448|0,4152);c[880]=0;c[881]=-1;d=c[r>>2]|0;vi(4256,d,4216|0);c[882]=5476;c[883]=5496;Ij(3532|0,4256);c[901]=0;c[902]=-1;e=c[p>>2]|0;vi(4304,e,4224|0);c[904]=5476;c[905]=5496;Ij(3620|0,4304);c[923]=0;c[924]=-1;f=c[(c[(c[904]|0)+ -12>>2]|0)+3640>>2]|0;c[926]=5476;c[927]=5496;Ij(3708|0,f);c[945]=0;c[946]=-1;c[(c[(c[860]|0)+ -12>>2]|0)+3512>>2]=3528;f=(c[(c[904]|0)+ -12>>2]|0)+3620|0;c[f>>2]=c[f>>2]|8192;c[(c[(c[904]|0)+ -12>>2]|0)+3688>>2]=3528;ni(4352,b,4232|0);c[948]=5436;c[950]=5456;c[949]=0;Ij(3800|0,4352);c[968]=0;c[969]=-1;gi(4408,d,4240|0);c[970]=5516;c[971]=5536;Ij(3884|0,4408);c[989]=0;c[990]=-1;gi(4456,e,4248|0);c[992]=5516;c[993]=5536;Ij(3972|0,4456);c[1011]=0;c[1012]=-1;e=c[(c[(c[992]|0)+ -12>>2]|0)+3992>>2]|0;c[1014]=5516;c[1015]=5536;Ij(4060|0,e);c[1033]=0;c[1034]=-1;c[(c[(c[948]|0)+ -12>>2]|0)+3864>>2]=3880;e=(c[(c[992]|0)+ -12>>2]|0)+3972|0;c[e>>2]=c[e>>2]|8192;c[(c[(c[992]|0)+ -12>>2]|0)+4040>>2]=3880;i=a;return}function fi(a){a=a|0;a=i;sk(3528)|0;sk(3704)|0;yk(3880)|0;yk(4056)|0;i=a;return}function gi(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;g=f;bk(b);c[b>>2]=4512;c[b+32>>2]=d;lq(g,b+4|0);d=oq(g,8096)|0;mq(g);c[b+36>>2]=d;c[b+40>>2]=e;a[b+44>>0]=(ec[c[(c[d>>2]|0)+28>>2]&63](d)|0)&1;i=f;return}function hi(a){a=a|0;var b=0;b=i;ak(a);i=b;return}function ii(a){a=a|0;var b=0;b=i;ak(a);kt(a);i=b;return}function ji(b,d){b=b|0;d=d|0;var e=0,f=0;e=i;ec[c[(c[b>>2]|0)+24>>2]&63](b)|0;f=oq(d,8096)|0;c[b+36>>2]=f;a[b+44>>0]=(ec[c[(c[f>>2]|0)+28>>2]&63](f)|0)&1;i=e;return}function ki(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;b=i;i=i+16|0;d=b+8|0;e=b;f=a+36|0;g=a+40|0;h=d+8|0;j=d;k=a+32|0;while(1){a=c[f>>2]|0;l=oc[c[(c[a>>2]|0)+20>>2]&15](a,c[g>>2]|0,d,h,e)|0;a=(c[e>>2]|0)-j|0;if((Mb(d|0,1,a|0,c[k>>2]|0)|0)!=(a|0)){m=-1;n=5;break}if((l|0)==2){m=-1;n=5;break}else if((l|0)!=1){n=4;break}}if((n|0)==4){m=((Qa(c[k>>2]|0)|0)!=0)<<31>>31;i=b;return m|0}else if((n|0)==5){i=b;return m|0}return 0}function li(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;if(a[b+44>>0]|0){g=Mb(d|0,4,e|0,c[b+32>>2]|0)|0;i=f;return g|0}if((e|0)>0){h=d;j=0}else{g=0;i=f;return g|0}while(1){if((nc[c[(c[b>>2]|0)+52>>2]&15](b,c[h>>2]|0)|0)==-1){g=j;k=6;break}d=j+1|0;if((d|0)<(e|0)){h=h+4|0;j=d}else{g=d;k=6;break}}if((k|0)==6){i=f;return g|0}return 0}function mi(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;i=i+32|0;f=e+16|0;g=e+8|0;h=e+4|0;j=e;k=(d|0)==-1;a:do if(!k){c[g>>2]=d;if(a[b+44>>0]|0){if((Mb(g|0,4,1,c[b+32>>2]|0)|0)==1)break;else l=-1;i=e;return l|0}c[h>>2]=f;m=g+4|0;n=b+36|0;o=b+40|0;p=f+8|0;q=f;r=b+32|0;s=g;while(1){t=c[n>>2]|0;u=jc[c[(c[t>>2]|0)+12>>2]&15](t,c[o>>2]|0,s,m,j,f,p,h)|0;if((c[j>>2]|0)==(s|0)){l=-1;v=12;break}if((u|0)==3){v=7;break}t=(u|0)==1;if(u>>>0>=2){l=-1;v=12;break}u=(c[h>>2]|0)-q|0;if((Mb(f|0,1,u|0,c[r>>2]|0)|0)!=(u|0)){l=-1;v=12;break}if(t)s=t?c[j>>2]|0:s;else break a}if((v|0)==7){if((Mb(s|0,1,1,c[r>>2]|0)|0)==1)break;else l=-1;i=e;return l|0}else if((v|0)==12){i=e;return l|0}}while(0);l=k?0:d;i=e;return l|0}function ni(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;g=f;bk(b);c[b>>2]=4624;c[b+32>>2]=d;c[b+40>>2]=e;c[b+48>>2]=-1;a[b+52>>0]=0;lq(g,b+4|0);qi(b,g);mq(g);i=f;return}function oi(a){a=a|0;var b=0;b=i;ak(a);i=b;return}function pi(a){a=a|0;var b=0;b=i;ak(a);kt(a);i=b;return}function qi(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;f=oq(d,8096)|0;d=b+36|0;c[d>>2]=f;g=b+44|0;c[g>>2]=ec[c[(c[f>>2]|0)+24>>2]&63](f)|0;f=c[d>>2]|0;a[b+53>>0]=(ec[c[(c[f>>2]|0)+28>>2]&63](f)|0)&1;if((c[g>>2]|0)>8)Oo(4720);else{i=e;return}}function ri(a){a=a|0;var b=0,c=0;b=i;c=ui(a,0)|0;i=b;return c|0}function si(a){a=a|0;var b=0,c=0;b=i;c=ui(a,1)|0;i=b;return c|0}function ti(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;i=i+32|0;f=e+16|0;g=e+8|0;h=e+4|0;j=e;k=b+52|0;l=(a[k>>0]|0)!=0;if((d|0)==-1){if(l){m=-1;i=e;return m|0}n=c[b+48>>2]|0;a[k>>0]=(n|0)!=-1&1;m=n;i=e;return m|0}n=b+48|0;a:do if(l){c[h>>2]=c[n>>2];o=c[b+36>>2]|0;p=jc[c[(c[o>>2]|0)+12>>2]&15](o,c[b+40>>2]|0,h,h+4|0,j,f,f+8|0,g)|0;if((p|0)==1|(p|0)==2){m=-1;i=e;return m|0}else if((p|0)==3){a[f>>0]=c[n>>2];c[g>>2]=f+1}p=b+32|0;while(1){o=c[g>>2]|0;if(o>>>0<=f>>>0)break a;q=o+ -1|0;c[g>>2]=q;if((La(a[q>>0]|0,c[p>>2]|0)|0)==-1){m=-1;break}}i=e;return m|0}while(0);c[n>>2]=d;a[k>>0]=1;m=d;i=e;return m|0}function ui(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;e=i;i=i+32|0;f=e+16|0;g=e+8|0;h=e+4|0;j=e;k=b+52|0;if(a[k>>0]|0){l=b+48|0;m=c[l>>2]|0;if(!d){n=m;i=e;return n|0}c[l>>2]=-1;a[k>>0]=0;n=m;i=e;return n|0}m=c[b+44>>2]|0;k=(m|0)>1?m:1;a:do if((k|0)>0){m=b+32|0;l=0;while(1){o=ub(c[m>>2]|0)|0;if((o|0)==-1){n=-1;break}a[f+l>>0]=o;l=l+1|0;if((l|0)>=(k|0))break a}i=e;return n|0}while(0);b:do if(!(a[b+53>>0]|0)){l=b+40|0;m=b+36|0;o=g+4|0;p=b+32|0;q=k;while(1){r=c[l>>2]|0;s=r;t=c[s>>2]|0;u=c[s+4>>2]|0;s=c[m>>2]|0;v=f+q|0;w=jc[c[(c[s>>2]|0)+16>>2]&15](s,r,f,v,h,g,o,j)|0;if((w|0)==3){x=14;break}else if((w|0)==2){n=-1;x=22;break}else if((w|0)!=1){y=q;break b}w=c[l>>2]|0;c[w>>2]=t;c[w+4>>2]=u;if((q|0)==8){n=-1;x=22;break}u=ub(c[p>>2]|0)|0;if((u|0)==-1){n=-1;x=22;break}a[v>>0]=u;q=q+1|0}if((x|0)==14){c[g>>2]=a[f>>0];y=q;break}else if((x|0)==22){i=e;return n|0}}else{c[g>>2]=a[f>>0];y=k}while(0);if(d){d=c[g>>2]|0;c[b+48>>2]=d;n=d;i=e;return n|0}d=b+32|0;b=y;while(1){if((b|0)<=0)break;b=b+ -1|0;if((La(a[f+b>>0]|0,c[d>>2]|0)|0)==-1){n=-1;x=22;break}}if((x|0)==22){i=e;return n|0}n=c[g>>2]|0;i=e;return n|0}function vi(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;g=f;Nj(b);c[b>>2]=4768;c[b+32>>2]=d;lq(g,b+4|0);d=oq(g,8088)|0;mq(g);c[b+36>>2]=d;c[b+40>>2]=e;a[b+44>>0]=(ec[c[(c[d>>2]|0)+28>>2]&63](d)|0)&1;i=f;return}function wi(a){a=a|0;var b=0;b=i;Mj(a);i=b;return}function xi(a){a=a|0;var b=0;b=i;Mj(a);kt(a);i=b;return}function yi(b,d){b=b|0;d=d|0;var e=0,f=0;e=i;ec[c[(c[b>>2]|0)+24>>2]&63](b)|0;f=oq(d,8088)|0;c[b+36>>2]=f;a[b+44>>0]=(ec[c[(c[f>>2]|0)+28>>2]&63](f)|0)&1;i=e;return}function zi(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;b=i;i=i+16|0;d=b+8|0;e=b;f=a+36|0;g=a+40|0;h=d+8|0;j=d;k=a+32|0;while(1){a=c[f>>2]|0;l=oc[c[(c[a>>2]|0)+20>>2]&15](a,c[g>>2]|0,d,h,e)|0;a=(c[e>>2]|0)-j|0;if((Mb(d|0,1,a|0,c[k>>2]|0)|0)!=(a|0)){m=-1;n=5;break}if((l|0)==2){m=-1;n=5;break}else if((l|0)!=1){n=4;break}}if((n|0)==4){m=((Qa(c[k>>2]|0)|0)!=0)<<31>>31;i=b;return m|0}else if((n|0)==5){i=b;return m|0}return 0}function Ai(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;if(a[b+44>>0]|0){h=Mb(e|0,1,f|0,c[b+32>>2]|0)|0;i=g;return h|0}if((f|0)>0){j=e;k=0}else{h=0;i=g;return h|0}while(1){if((nc[c[(c[b>>2]|0)+52>>2]&15](b,d[j>>0]|0)|0)==-1){h=k;l=6;break}e=k+1|0;if((e|0)<(f|0)){j=j+1|0;k=e}else{h=e;l=6;break}}if((l|0)==6){i=g;return h|0}return 0}function Bi(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;i=i+32|0;f=e+16|0;g=e+8|0;h=e+4|0;j=e;k=(d|0)==-1;a:do if(!k){a[g>>0]=d;if(a[b+44>>0]|0){if((Mb(g|0,1,1,c[b+32>>2]|0)|0)==1)break;else l=-1;i=e;return l|0}c[h>>2]=f;m=g+1|0;n=b+36|0;o=b+40|0;p=f+8|0;q=f;r=b+32|0;s=g;while(1){t=c[n>>2]|0;u=jc[c[(c[t>>2]|0)+12>>2]&15](t,c[o>>2]|0,s,m,j,f,p,h)|0;if((c[j>>2]|0)==(s|0)){l=-1;v=12;break}if((u|0)==3){v=7;break}t=(u|0)==1;if(u>>>0>=2){l=-1;v=12;break}u=(c[h>>2]|0)-q|0;if((Mb(f|0,1,u|0,c[r>>2]|0)|0)!=(u|0)){l=-1;v=12;break}if(t)s=t?c[j>>2]|0:s;else break a}if((v|0)==7){if((Mb(s|0,1,1,c[r>>2]|0)|0)==1)break;else l=-1;i=e;return l|0}else if((v|0)==12){i=e;return l|0}}while(0);l=k?0:d;i=e;return l|0}function Ci(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;g=f;Nj(b);c[b>>2]=4880;c[b+32>>2]=d;c[b+40>>2]=e;c[b+48>>2]=-1;a[b+52>>0]=0;lq(g,b+4|0);Fi(b,g);mq(g);i=f;return}function Di(a){a=a|0;var b=0;b=i;Mj(a);i=b;return}function Ei(a){a=a|0;var b=0;b=i;Mj(a);kt(a);i=b;return}function Fi(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;f=oq(d,8088)|0;d=b+36|0;c[d>>2]=f;g=b+44|0;c[g>>2]=ec[c[(c[f>>2]|0)+24>>2]&63](f)|0;f=c[d>>2]|0;a[b+53>>0]=(ec[c[(c[f>>2]|0)+28>>2]&63](f)|0)&1;if((c[g>>2]|0)>8)Oo(4720);else{i=e;return}}function Gi(a){a=a|0;var b=0,c=0;b=i;c=Ji(a,0)|0;i=b;return c|0}function Hi(a){a=a|0;var b=0,c=0;b=i;c=Ji(a,1)|0;i=b;return c|0}function Ii(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;i=i+32|0;f=e+16|0;g=e+4|0;h=e+8|0;j=e;k=b+52|0;l=(a[k>>0]|0)!=0;if((d|0)==-1){if(l){m=-1;i=e;return m|0}n=c[b+48>>2]|0;a[k>>0]=(n|0)!=-1&1;m=n;i=e;return m|0}n=b+48|0;a:do if(l){a[h>>0]=c[n>>2];o=c[b+36>>2]|0;p=jc[c[(c[o>>2]|0)+12>>2]&15](o,c[b+40>>2]|0,h,h+1|0,j,f,f+8|0,g)|0;if((p|0)==1|(p|0)==2){m=-1;i=e;return m|0}else if((p|0)==3){a[f>>0]=c[n>>2];c[g>>2]=f+1}p=b+32|0;while(1){o=c[g>>2]|0;if(o>>>0<=f>>>0)break a;q=o+ -1|0;c[g>>2]=q;if((La(a[q>>0]|0,c[p>>2]|0)|0)==-1){m=-1;break}}i=e;return m|0}while(0);c[n>>2]=d;a[k>>0]=1;m=d;i=e;return m|0}function Ji(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;f=i;i=i+32|0;g=f+16|0;h=f+8|0;j=f+4|0;k=f;l=b+52|0;if(a[l>>0]|0){m=b+48|0;n=c[m>>2]|0;if(!e){o=n;i=f;return o|0}c[m>>2]=-1;a[l>>0]=0;o=n;i=f;return o|0}n=c[b+44>>2]|0;l=(n|0)>1?n:1;a:do if((l|0)>0){n=b+32|0;m=0;while(1){p=ub(c[n>>2]|0)|0;if((p|0)==-1){o=-1;break}a[g+m>>0]=p;m=m+1|0;if((m|0)>=(l|0))break a}i=f;return o|0}while(0);b:do if(!(a[b+53>>0]|0)){m=b+40|0;n=b+36|0;p=h+1|0;q=b+32|0;r=l;while(1){s=c[m>>2]|0;t=s;u=c[t>>2]|0;v=c[t+4>>2]|0;t=c[n>>2]|0;w=g+r|0;x=jc[c[(c[t>>2]|0)+16>>2]&15](t,s,g,w,j,h,p,k)|0;if((x|0)==2){o=-1;y=23;break}else if((x|0)==3){y=14;break}else if((x|0)!=1){z=r;break b}x=c[m>>2]|0;c[x>>2]=u;c[x+4>>2]=v;if((r|0)==8){o=-1;y=23;break}v=ub(c[q>>2]|0)|0;if((v|0)==-1){o=-1;y=23;break}a[w>>0]=v;r=r+1|0}if((y|0)==14){a[h>>0]=a[g>>0]|0;z=r;break}else if((y|0)==23){i=f;return o|0}}else{a[h>>0]=a[g>>0]|0;z=l}while(0);do if(!e){l=b+32|0;k=z;while(1){if((k|0)<=0){y=21;break}k=k+ -1|0;if((La(d[g+k>>0]|0,c[l>>2]|0)|0)==-1){o=-1;y=23;break}}if((y|0)==21){A=a[h>>0]|0;break}else if((y|0)==23){i=f;return o|0}}else{l=a[h>>0]|0;c[b+48>>2]=l&255;A=l}while(0);o=A&255;i=f;return o|0}function Ki(){var a=0;a=i;ei(0);Qb(111,4144,o|0)|0;i=a;return}function Li(a){a=a|0;return}function Mi(a){a=a|0;var b=0;b=a+4|0;c[b>>2]=(c[b>>2]|0)+1;return}function Ni(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+4|0;e=c[d>>2]|0;c[d>>2]=e+ -1;if(e){f=0;i=b;return f|0}bc[c[(c[a>>2]|0)+8>>2]&127](a);f=1;i=b;return f|0}function Oi(a,b){a=a|0;b=b|0;var d=0;d=i;c[a>>2]=16480;Ri(a+4|0,b);i=d;return}function Pi(b,d){b=b|0;d=d|0;var e=0,f=0;e=i;c[b>>2]=16504;if(!(a[d>>0]&1))f=d+1|0;else f=c[d+8>>2]|0;Ri(b+4|0,f);i=e;return}function Qi(a,b){a=a|0;b=b|0;var d=0;d=i;c[a>>2]=16504;Ri(a+4|0,b);i=d;return}function Ri(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;e=Su(b|0)|0;f=it(e+13|0)|0;c[f>>2]=e;c[f+4>>2]=e;c[f+8>>2]=0;g=f+12|0;Tu(g|0,b|0,e+1|0)|0;c[a>>2]=g;i=d;return}function Si(a){a=a|0;return}function Ti(a,b,d){a=a|0;b=b|0;d=d|0;c[a>>2]=d;c[a+4>>2]=b;return}function Ui(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e;gc[c[(c[a>>2]|0)+12>>2]&3](f,a,b);if((c[f+4>>2]|0)!=(c[d+4>>2]|0)){g=0;i=e;return g|0}g=(c[f>>2]|0)==(c[d>>2]|0);i=e;return g|0}function Vi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;if((c[b+4>>2]|0)!=(a|0)){f=0;i=e;return f|0}f=(c[b>>2]|0)==(d|0);i=e;return f|0}function Wi(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=i;d=Pb(c|0)|0;dj(a,d,Su(d|0)|0);i=b;return}function Xi(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;i=i+16|0;g=f;h=c[d>>2]|0;if(h){j=a[e>>0]|0;if(!(j&1))k=(j&255)>>>1;else k=c[e+4>>2]|0;if(!k)l=h;else{nj(e,5016)|0;l=c[d>>2]|0}h=c[d+4>>2]|0;gc[c[(c[h>>2]|0)+24>>2]&3](g,h,l);l=a[g>>0]|0;if(!(l&1)){m=g+1|0;n=(l&255)>>>1}else{m=c[g+8>>2]|0;n=c[g+4>>2]|0}pj(e,m,n)|0;gj(g)}c[b+0>>2]=c[e+0>>2];c[b+4>>2]=c[e+4>>2];c[b+8>>2]=c[e+8>>2];c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;i=f;return}function Yi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+32|0;f=e+12|0;g=e;dj(g,d,Su(d|0)|0);Xi(f,b,g);Pi(a,f);gj(f);gj(g);c[a>>2]=5032;g=b;b=c[g+4>>2]|0;f=a+8|0;c[f>>2]=c[g>>2];c[f+4>>2]=b;i=e;return}function Zi(a){a=a|0;var b=0;b=i;zt(a);kt(a);i=b;return}function _i(a){a=a|0;var b=0;b=i;zt(a);i=b;return}function $i(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;Wa(5168)|0;if((c[a>>2]|0)==1)do Ba(5192,5168)|0;while((c[a>>2]|0)==1);if(!(c[a>>2]|0)){c[a>>2]=1;nb(5168)|0;bc[d&127](b);Wa(5168)|0;c[a>>2]=-1;nb(5168)|0;Hb(5192)|0;i=e;return}else{nb(5168)|0;i=e;return}}function aj(a){a=a|0;a=Na(8)|0;Oi(a,5240);c[a>>2]=16560;Nb(a|0,16600,98)}function bj(a,b){a=a|0;b=b|0;var c=0;c=i;cj(a,b);i=c;return}function cj(b,d){b=b|0;d=d|0;var e=0;e=i;if(!(a[d>>0]&1)){c[b+0>>2]=c[d+0>>2];c[b+4>>2]=c[d+4>>2];c[b+8>>2]=c[d+8>>2];i=e;return}else{dj(b,c[d+8>>2]|0,c[d+4>>2]|0);i=e;return}}function dj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;if(e>>>0>4294967279)aj(0);if(e>>>0<11){a[b>>0]=e<<1;g=b+1|0}else{h=e+16&-16;j=it(h)|0;c[b+8>>2]=j;c[b>>2]=h|1;c[b+4>>2]=e;g=j}Tu(g|0,d|0,e|0)|0;a[g+e>>0]=0;i=f;return}function ej(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;if(d>>>0>4294967279)aj(0);if(d>>>0<11){a[b>>0]=d<<1;g=b+1|0}else{h=d+16&-16;j=it(h)|0;c[b+8>>2]=j;c[b>>2]=h|1;c[b+4>>2]=d;g=j}Vu(g|0,e|0,d|0)|0;a[g+d>>0]=0;i=f;return}function fj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;g=d;h=e-g|0;if(h>>>0>4294967279)aj(0);if(h>>>0<11){a[b>>0]=h<<1;j=b+1|0}else{k=h+16&-16;l=it(k)|0;c[b+8>>2]=l;c[b>>2]=k|1;c[b+4>>2]=h;j=l}if((d|0)==(e|0)){m=j;a[m>>0]=0;i=f;return}l=e+(0-g)|0;g=d;d=j;while(1){a[d>>0]=a[g>>0]|0;g=g+1|0;if((g|0)==(e|0))break;else d=d+1|0}m=j+l|0;a[m>>0]=0;i=f;return}function gj(a){a=a|0;var b=0;b=i;hj(a);i=b;return}function hj(b){b=b|0;var d=0;d=i;if(!(a[b>>0]&1)){i=d;return}kt(c[b+8>>2]|0);i=d;return}function ij(a,b){a=a|0;b=b|0;var c=0,d=0;c=i;d=jj(a,b,Su(b|0)|0)|0;i=c;return d|0}function jj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;g=a[b>>0]|0;if(!(g&1)){h=10;j=g}else{g=c[b>>2]|0;h=(g&-2)+ -1|0;j=g&255}g=(j&1)==0;if(h>>>0>>0){if(g)k=(j&255)>>>1;else k=c[b+4>>2]|0;qj(b,h,e-h|0,k,0,k,e,d);i=f;return b|0}if(g)l=b+1|0;else l=c[b+8>>2]|0;Uu(l|0,d|0,e|0)|0;a[l+e>>0]=0;if(!(a[b>>0]&1)){a[b>>0]=e<<1;i=f;return b|0}else{c[b+4>>2]=e;i=f;return b|0}return 0}function kj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;g=a[b>>0]|0;h=(g&1)==0;if(h)j=(g&255)>>>1;else j=c[b+4>>2]|0;if(j>>>0>>0){lj(b,d-j|0,e)|0;i=f;return}if(h){a[b+d+1>>0]=0;a[b>>0]=d<<1;i=f;return}else{a[(c[b+8>>2]|0)+d>>0]=0;c[b+4>>2]=d;i=f;return}}function lj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;if(!d){i=f;return b|0}g=a[b>>0]|0;if(!(g&1)){h=10;j=g}else{g=c[b>>2]|0;h=(g&-2)+ -1|0;j=g&255}if(!(j&1))k=(j&255)>>>1;else k=c[b+4>>2]|0;if((h-k|0)>>>0>>0){rj(b,h,d-h+k|0,k,k,0,0);l=a[b>>0]|0}else l=j;if(!(l&1))m=b+1|0;else m=c[b+8>>2]|0;Vu(m+k|0,e|0,d|0)|0;e=k+d|0;if(!(a[b>>0]&1))a[b>>0]=e<<1;else c[b+4>>2]=e;a[m+e>>0]=0;i=f;return b|0}function mj(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;if(d>>>0>4294967279)aj(0);f=a[b>>0]|0;if(!(f&1)){g=10;h=f}else{f=c[b>>2]|0;g=(f&-2)+ -1|0;h=f&255}if(!(h&1))j=(h&255)>>>1;else j=c[b+4>>2]|0;f=j>>>0>d>>>0?j:d;if(f>>>0<11)k=10;else k=(f+16&-16)+ -1|0;if((k|0)==(g|0)){i=e;return}do if((k|0)!=10){f=k+1|0;if(k>>>0>g>>>0)l=it(f)|0;else l=it(f)|0;if(!(h&1)){m=l;n=1;o=b+1|0;p=0;break}else{m=l;n=1;o=c[b+8>>2]|0;p=1;break}}else{m=b+1|0;n=0;o=c[b+8>>2]|0;p=1}while(0);if(!(h&1))q=(h&255)>>>1;else q=c[b+4>>2]|0;Tu(m|0,o|0,q+1|0)|0;if(p)kt(o);if(n){c[b>>2]=k+1|1;c[b+4>>2]=j;c[b+8>>2]=m;i=e;return}else{a[b>>0]=j<<1;i=e;return}}function nj(a,b){a=a|0;b=b|0;var c=0,d=0;c=i;d=pj(a,b,Su(b|0)|0)|0;i=c;return d|0}function oj(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;e=i;f=a[b>>0]|0;g=(f&1)!=0;if(g){h=(c[b>>2]&-2)+ -1|0;j=c[b+4>>2]|0}else{h=10;j=(f&255)>>>1}if((j|0)==(h|0)){rj(b,h,1,h,h,0,0);if(!(a[b>>0]&1))k=7;else k=8}else if(g)k=8;else k=7;if((k|0)==7){a[b>>0]=(j<<1)+2;l=b+1|0;m=j+1|0;n=l+j|0;a[n>>0]=d;o=l+m|0;a[o>>0]=0;i=e;return}else if((k|0)==8){k=c[b+8>>2]|0;g=j+1|0;c[b+4>>2]=g;l=k;m=g;n=l+j|0;a[n>>0]=d;o=l+m|0;a[o>>0]=0;i=e;return}}function pj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;g=a[b>>0]|0;if(!(g&1)){h=10;j=g}else{g=c[b>>2]|0;h=(g&-2)+ -1|0;j=g&255}if(!(j&1))k=(j&255)>>>1;else k=c[b+4>>2]|0;if((h-k|0)>>>0>>0){qj(b,h,e-h+k|0,k,k,0,e,d);i=f;return b|0}if(!e){i=f;return b|0}if(!(j&1))l=b+1|0;else l=c[b+8>>2]|0;Tu(l+k|0,d|0,e|0)|0;d=k+e|0;if(!(a[b>>0]&1))a[b>>0]=d<<1;else c[b+4>>2]=d;a[l+d>>0]=0;i=f;return b|0}function qj(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;l=i;if((-18-d|0)>>>0>>0)aj(0);if(!(a[b>>0]&1))m=b+1|0;else m=c[b+8>>2]|0;if(d>>>0<2147483623){n=e+d|0;e=d<<1;o=n>>>0>>0?e:n;if(o>>>0<11)p=11;else p=o+16&-16}else p=-17;o=it(p)|0;if(g)Tu(o|0,m|0,g|0)|0;if(j)Tu(o+g|0,k|0,j|0)|0;k=f-h|0;if((k|0)!=(g|0))Tu(o+(j+g)|0,m+(h+g)|0,k-g|0)|0;if((d|0)==10){q=b+8|0;c[q>>2]=o;r=p|1;c[b>>2]=r;s=k+j|0;t=b+4|0;c[t>>2]=s;u=o+s|0;a[u>>0]=0;i=l;return}kt(m);q=b+8|0;c[q>>2]=o;r=p|1;c[b>>2]=r;s=k+j|0;t=b+4|0;c[t>>2]=s;u=o+s|0;a[u>>0]=0;i=l;return}function rj(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0;k=i;if((-17-d|0)>>>0>>0)aj(0);if(!(a[b>>0]&1))l=b+1|0;else l=c[b+8>>2]|0;if(d>>>0<2147483623){m=e+d|0;e=d<<1;n=m>>>0>>0?e:m;if(n>>>0<11)o=11;else o=n+16&-16}else o=-17;n=it(o)|0;if(g)Tu(n|0,l|0,g|0)|0;m=f-h|0;if((m|0)!=(g|0))Tu(n+(j+g)|0,l+(h+g)|0,m-g|0)|0;if((d|0)==10){p=b+8|0;c[p>>2]=n;q=o|1;c[b>>2]=q;i=k;return}kt(l);p=b+8|0;c[p>>2]=n;q=o|1;c[b>>2]=q;i=k;return}function sj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;if(e>>>0>1073741807)aj(0);if(e>>>0<2){a[b>>0]=e<<1;g=b+4|0}else{h=e+4&-4;j=it(h<<2)|0;c[b+8>>2]=j;c[b>>2]=h|1;c[b+4>>2]=e;g=j}at(g,d,e)|0;c[g+(e<<2)>>2]=0;i=f;return}function tj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;if(d>>>0>1073741807)aj(0);if(d>>>0<2){a[b>>0]=d<<1;g=b+4|0}else{h=d+4&-4;j=it(h<<2)|0;c[b+8>>2]=j;c[b>>2]=h|1;c[b+4>>2]=d;g=j}ct(g,e,d)|0;c[g+(d<<2)>>2]=0;i=f;return}function uj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;g=d;h=e-g|0;j=h>>2;if(j>>>0>1073741807)aj(0);if(j>>>0<2){a[b>>0]=h>>>1;k=b+4|0}else{h=j+4&-4;l=it(h<<2)|0;c[b+8>>2]=l;c[b>>2]=h|1;c[b+4>>2]=j;k=l}if((d|0)==(e|0)){m=k;c[m>>2]=0;i=f;return}l=((e+ -4+(0-g)|0)>>>2)+1|0;g=d;d=k;while(1){c[d>>2]=c[g>>2];g=g+4|0;if((g|0)==(e|0))break;else d=d+4|0}m=k+(l<<2)|0;c[m>>2]=0;i=f;return}function vj(a){a=a|0;var b=0;b=i;wj(a);i=b;return}function wj(b){b=b|0;var d=0;d=i;if(!(a[b>>0]&1)){i=d;return}kt(c[b+8>>2]|0);i=d;return}function xj(a,b){a=a|0;b=b|0;var c=0,d=0;c=i;d=yj(a,b,$s(b)|0)|0;i=c;return d|0}function yj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;g=a[b>>0]|0;if(!(g&1)){h=1;j=g}else{g=c[b>>2]|0;h=(g&-2)+ -1|0;j=g&255}g=(j&1)==0;if(h>>>0>>0){if(g)k=(j&255)>>>1;else k=c[b+4>>2]|0;Bj(b,h,e-h|0,k,0,k,e,d);i=f;return b|0}if(g)l=b+4|0;else l=c[b+8>>2]|0;bt(l,d,e)|0;c[l+(e<<2)>>2]=0;if(!(a[b>>0]&1)){a[b>>0]=e<<1;i=f;return b|0}else{c[b+4>>2]=e;i=f;return b|0}return 0}function zj(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;if(d>>>0>1073741807)aj(0);f=a[b>>0]|0;if(!(f&1)){g=1;h=f}else{f=c[b>>2]|0;g=(f&-2)+ -1|0;h=f&255}if(!(h&1))j=(h&255)>>>1;else j=c[b+4>>2]|0;f=j>>>0>d>>>0?j:d;if(f>>>0<2)k=1;else k=(f+4&-4)+ -1|0;if((k|0)==(g|0)){i=e;return}do if((k|0)!=1){f=(k<<2)+4|0;if(k>>>0>g>>>0)l=it(f)|0;else l=it(f)|0;if(!(h&1)){m=l;n=1;o=b+4|0;p=0;break}else{m=l;n=1;o=c[b+8>>2]|0;p=1;break}}else{m=b+4|0;n=0;o=c[b+8>>2]|0;p=1}while(0);if(!(h&1))q=(h&255)>>>1;else q=c[b+4>>2]|0;at(m,o,q+1|0)|0;if(p)kt(o);if(n){c[b>>2]=k+1|1;c[b+4>>2]=j;c[b+8>>2]=m;i=e;return}else{a[b>>0]=j<<1;i=e;return}}function Aj(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;e=i;f=a[b>>0]|0;g=(f&1)!=0;if(g){h=(c[b>>2]&-2)+ -1|0;j=c[b+4>>2]|0}else{h=1;j=(f&255)>>>1}if((j|0)==(h|0)){Cj(b,h,1,h,h,0,0);if(!(a[b>>0]&1))k=7;else k=8}else if(g)k=8;else k=7;if((k|0)==7){a[b>>0]=(j<<1)+2;l=b+4|0;m=j+1|0;n=l+(j<<2)|0;c[n>>2]=d;o=l+(m<<2)|0;c[o>>2]=0;i=e;return}else if((k|0)==8){k=c[b+8>>2]|0;g=j+1|0;c[b+4>>2]=g;l=k;m=g;n=l+(j<<2)|0;c[n>>2]=d;o=l+(m<<2)|0;c[o>>2]=0;i=e;return}}function Bj(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;l=i;if((1073741806-d|0)>>>0>>0)aj(0);if(!(a[b>>0]&1))m=b+4|0;else m=c[b+8>>2]|0;if(d>>>0<536870887){n=e+d|0;e=d<<1;o=n>>>0>>0?e:n;if(o>>>0<2)p=2;else p=o+4&-4}else p=1073741807;o=it(p<<2)|0;if(g)at(o,m,g)|0;if(j)at(o+(g<<2)|0,k,j)|0;k=f-h|0;if((k|0)!=(g|0))at(o+(j+g<<2)|0,m+(h+g<<2)|0,k-g|0)|0;if((d|0)==1){q=b+8|0;c[q>>2]=o;r=p|1;c[b>>2]=r;s=k+j|0;t=b+4|0;c[t>>2]=s;u=o+(s<<2)|0;c[u>>2]=0;i=l;return}kt(m);q=b+8|0;c[q>>2]=o;r=p|1;c[b>>2]=r;s=k+j|0;t=b+4|0;c[t>>2]=s;u=o+(s<<2)|0;c[u>>2]=0;i=l;return}function Cj(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0;k=i;if((1073741807-d|0)>>>0>>0)aj(0);if(!(a[b>>0]&1))l=b+4|0;else l=c[b+8>>2]|0;if(d>>>0<536870887){m=e+d|0;e=d<<1;n=m>>>0>>0?e:m;if(n>>>0<2)o=2;else o=n+4&-4}else o=1073741807;n=it(o<<2)|0;if(g)at(n,l,g)|0;m=f-h|0;if((m|0)!=(g|0))at(n+(j+g<<2)|0,l+(h+g<<2)|0,m-g|0)|0;if((d|0)==1){p=b+8|0;c[p>>2]=n;q=o|1;c[b>>2]=q;i=k;return}kt(l);p=b+8|0;c[p>>2]=n;q=o|1;c[b>>2]=q;i=k;return}function Dj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d;f=(c[a+24>>2]|0)==0;if(f)c[a+16>>2]=b|1;else c[a+16>>2]=b;if(!((f&1|b)&c[a+20>>2])){i=d;return}else{d=Na(16)|0;Nk()|0;a=e;c[a>>2]=1;c[a+4>>2]=5600;Pk(d,5656,e);Nb(d|0,5704,31)}}function Ej(a){a=a|0;var b=0;b=i;c[a>>2]=5648;Gj(a,0);mq(a+28|0);gu(c[a+32>>2]|0);gu(c[a+36>>2]|0);gu(c[a+48>>2]|0);gu(c[a+60>>2]|0);i=b;return}function Fj(a){a=a|0;var b=0;b=i;Ej(a);i=b;return}function Gj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=c[a+40>>2]|0;if(!e){i=d;return}f=a+32|0;g=a+36|0;h=e;do{h=h+ -1|0;gc[c[(c[f>>2]|0)+(h<<2)>>2]&3](b,a,c[(c[g>>2]|0)+(h<<2)>>2]|0)}while((h|0)!=0);i=d;return}function Hj(a,b){a=a|0;b=b|0;var c=0;c=i;lq(a,b+28|0);i=c;return}function Ij(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;c[a+24>>2]=b;c[a+16>>2]=(b|0)==0&1;c[a+20>>2]=0;c[a+4>>2]=4098;c[a+12>>2]=0;c[a+8>>2]=6;b=a+28|0;e=a+32|0;a=e+40|0;do{c[e>>2]=0;e=e+4|0}while((e|0)<(a|0));kq(b);i=d;return}function Jj(a){a=a|0;var b=0;b=i;Ej(a);i=b;return}function Kj(a){a=a|0;var b=0;b=i;c[a>>2]=5264;mq(a+4|0);kt(a);i=b;return}function Lj(a){a=a|0;var b=0;b=i;c[a>>2]=5264;mq(a+4|0);i=b;return}function Mj(a){a=a|0;var b=0;b=i;c[a>>2]=5264;mq(a+4|0);i=b;return}function Nj(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=5264;kq(a+4|0);d=a+8|0;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;c[d+16>>2]=0;c[d+20>>2]=0;i=b;return}function Oj(a,b){a=a|0;b=b|0;return}function Pj(a,b,c){a=a|0;b=b|0;c=c|0;return a|0}function Qj(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;g=a;c[g>>2]=0;c[g+4>>2]=0;g=a+8|0;c[g>>2]=-1;c[g+4>>2]=-1;return}function Rj(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;e=a;c[e>>2]=0;c[e+4>>2]=0;e=a+8|0;c[e>>2]=-1;c[e+4>>2]=-1;return}function Sj(a){a=a|0;return 0}function Tj(a){a=a|0;return 0}function Uj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;if((e|0)<=0){g=0;i=f;return g|0}h=b+12|0;j=b+16|0;k=d;d=0;while(1){l=c[h>>2]|0;if(l>>>0<(c[j>>2]|0)>>>0){c[h>>2]=l+1;m=a[l>>0]|0}else{l=ec[c[(c[b>>2]|0)+40>>2]&63](b)|0;if((l|0)==-1){g=d;n=8;break}m=l&255}a[k>>0]=m;l=d+1|0;if((l|0)<(e|0)){k=k+1|0;d=l}else{g=l;n=8;break}}if((n|0)==8){i=f;return g|0}return 0}function Vj(a){a=a|0;return-1}function Wj(a){a=a|0;var b=0,e=0,f=0;b=i;if((ec[c[(c[a>>2]|0)+36>>2]&63](a)|0)==-1){e=-1;i=b;return e|0}f=a+12|0;a=c[f>>2]|0;c[f>>2]=a+1;e=d[a>>0]|0;i=b;return e|0}function Xj(a,b){a=a|0;b=b|0;return-1}function Yj(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;if((f|0)<=0){h=0;i=g;return h|0}j=b+24|0;k=b+28|0;l=e;e=0;while(1){m=c[j>>2]|0;if(m>>>0>=(c[k>>2]|0)>>>0){if((nc[c[(c[b>>2]|0)+52>>2]&15](b,d[l>>0]|0)|0)==-1){h=e;n=7;break}}else{o=a[l>>0]|0;c[j>>2]=m+1;a[m>>0]=o}o=e+1|0;if((o|0)<(f|0)){l=l+1|0;e=o}else{h=o;n=7;break}}if((n|0)==7){i=g;return h|0}return 0}function Zj(a,b){a=a|0;b=b|0;return-1}function _j(a){a=a|0;var b=0;b=i;c[a>>2]=5328;mq(a+4|0);kt(a);i=b;return}function $j(a){a=a|0;var b=0;b=i;c[a>>2]=5328;mq(a+4|0);i=b;return}function ak(a){a=a|0;var b=0;b=i;c[a>>2]=5328;mq(a+4|0);i=b;return}function bk(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=5328;kq(a+4|0);d=a+8|0;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;c[d+16>>2]=0;c[d+20>>2]=0;i=b;return}function ck(a,b){a=a|0;b=b|0;return}function dk(a,b,c){a=a|0;b=b|0;c=c|0;return a|0}function ek(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;g=a;c[g>>2]=0;c[g+4>>2]=0;g=a+8|0;c[g>>2]=-1;c[g+4>>2]=-1;return}function fk(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;e=a;c[e>>2]=0;c[e+4>>2]=0;e=a+8|0;c[e>>2]=-1;c[e+4>>2]=-1;return}function gk(a){a=a|0;return 0}function hk(a){a=a|0;return 0}function ik(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;e=i;if((d|0)<=0){f=0;i=e;return f|0}g=a+12|0;h=a+16|0;j=b;b=0;while(1){k=c[g>>2]|0;if(k>>>0>=(c[h>>2]|0)>>>0){l=ec[c[(c[a>>2]|0)+40>>2]&63](a)|0;if((l|0)==-1){f=b;m=8;break}else n=l}else{c[g>>2]=k+4;n=c[k>>2]|0}c[j>>2]=n;k=b+1|0;if((k|0)>=(d|0)){f=k;m=8;break}j=j+4|0;b=k}if((m|0)==8){i=e;return f|0}return 0}function jk(a){a=a|0;return-1}function kk(a){a=a|0;var b=0,d=0,e=0;b=i;if((ec[c[(c[a>>2]|0)+36>>2]&63](a)|0)==-1){d=-1;i=b;return d|0}e=a+12|0;a=c[e>>2]|0;c[e>>2]=a+4;d=c[a>>2]|0;i=b;return d|0}function lk(a,b){a=a|0;b=b|0;return-1}function mk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;if((d|0)<=0){f=0;i=e;return f|0}g=a+24|0;h=a+28|0;j=b;b=0;while(1){k=c[g>>2]|0;if(k>>>0>=(c[h>>2]|0)>>>0){if((nc[c[(c[a>>2]|0)+52>>2]&15](a,c[j>>2]|0)|0)==-1){f=b;l=8;break}}else{m=c[j>>2]|0;c[g>>2]=k+4;c[k>>2]=m}m=b+1|0;if((m|0)>=(d|0)){f=m;l=8;break}j=j+4|0;b=m}if((l|0)==8){i=e;return f|0}return 0}function nk(a,b){a=a|0;b=b|0;return-1}function ok(a){a=a|0;var b=0;b=i;Ej(a+8|0);kt(a);i=b;return}function pk(a){a=a|0;var b=0;b=i;Ej(a+8|0);i=b;return}function qk(a){a=a|0;var b=0;b=i;ok(a+(c[(c[a>>2]|0)+ -12>>2]|0)|0);i=b;return}function rk(a){a=a|0;var b=0;b=i;Ej(a+((c[(c[a>>2]|0)+ -12>>2]|0)+8)|0);i=b;return}function sk(b){b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d;if(!(c[b+((c[(c[b>>2]|0)+ -12>>2]|0)+24)>>2]|0)){i=d;return b|0}Dk(e,b);if((a[e>>0]|0)!=0?(f=c[b+((c[(c[b>>2]|0)+ -12>>2]|0)+24)>>2]|0,(ec[c[(c[f>>2]|0)+24>>2]&63](f)|0)==-1):0){f=c[(c[b>>2]|0)+ -12>>2]|0;Dj(b+f|0,c[b+(f+16)>>2]|1)}Ek(e);i=d;return b|0}function tk(a){a=a|0;var b=0;b=a+16|0;c[b>>2]=c[b>>2]|1;if(!(c[a+20>>2]&1))return;else Ib()}function uk(a){a=a|0;var b=0;b=i;Ej(a+8|0);kt(a);i=b;return}function vk(a){a=a|0;var b=0;b=i;Ej(a+8|0);i=b;return}function wk(a){a=a|0;var b=0;b=i;uk(a+(c[(c[a>>2]|0)+ -12>>2]|0)|0);i=b;return}function xk(a){a=a|0;var b=0;b=i;Ej(a+((c[(c[a>>2]|0)+ -12>>2]|0)+8)|0);i=b;return}function yk(b){b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d;if(!(c[b+((c[(c[b>>2]|0)+ -12>>2]|0)+24)>>2]|0)){i=d;return b|0}Jk(e,b);if((a[e>>0]|0)!=0?(f=c[b+((c[(c[b>>2]|0)+ -12>>2]|0)+24)>>2]|0,(ec[c[(c[f>>2]|0)+24>>2]&63](f)|0)==-1):0){f=c[(c[b>>2]|0)+ -12>>2]|0;Dj(b+f|0,c[b+(f+16)>>2]|1)}Kk(e);i=d;return b|0}function zk(a){a=a|0;var b=0;b=i;Ej(a+4|0);kt(a);i=b;return}function Ak(a){a=a|0;var b=0;b=i;Ej(a+4|0);i=b;return}function Bk(a){a=a|0;var b=0;b=i;zk(a+(c[(c[a>>2]|0)+ -12>>2]|0)|0);i=b;return}function Ck(a){a=a|0;var b=0;b=i;Ej(a+((c[(c[a>>2]|0)+ -12>>2]|0)+4)|0);i=b;return}function Dk(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;a[b>>0]=0;c[b+4>>2]=d;f=c[(c[d>>2]|0)+ -12>>2]|0;if(c[d+(f+16)>>2]|0){i=e;return}g=c[d+(f+72)>>2]|0;if(g)sk(g)|0;a[b>>0]=1;i=e;return}function Ek(a){a=a|0;var b=0,d=0,e=0;b=i;d=a+4|0;a=c[d>>2]|0;e=c[(c[a>>2]|0)+ -12>>2]|0;if(!(c[a+(e+24)>>2]|0)){i=b;return}if(c[a+(e+16)>>2]|0){i=b;return}if(!(c[a+(e+4)>>2]&8192)){i=b;return}if(Oa()|0){i=b;return}e=c[d>>2]|0;a=c[e+((c[(c[e>>2]|0)+ -12>>2]|0)+24)>>2]|0;if((ec[c[(c[a>>2]|0)+24>>2]&63](a)|0)!=-1){i=b;return}a=c[d>>2]|0;d=c[(c[a>>2]|0)+ -12>>2]|0;Dj(a+d|0,c[a+(d+16)>>2]|1);i=b;return}function Fk(a){a=a|0;var b=0;b=i;Ej(a+4|0);kt(a);i=b;return}function Gk(a){a=a|0;var b=0;b=i;Ej(a+4|0);i=b;return}function Hk(a){a=a|0;var b=0;b=i;Fk(a+(c[(c[a>>2]|0)+ -12>>2]|0)|0);i=b;return}function Ik(a){a=a|0;var b=0;b=i;Ej(a+((c[(c[a>>2]|0)+ -12>>2]|0)+4)|0);i=b;return}function Jk(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;a[b>>0]=0;c[b+4>>2]=d;f=c[(c[d>>2]|0)+ -12>>2]|0;if(c[d+(f+16)>>2]|0){i=e;return}g=c[d+(f+72)>>2]|0;if(g)yk(g)|0;a[b>>0]=1;i=e;return}function Kk(a){a=a|0;var b=0,d=0,e=0;b=i;d=a+4|0;a=c[d>>2]|0;e=c[(c[a>>2]|0)+ -12>>2]|0;if(!(c[a+(e+24)>>2]|0)){i=b;return}if(c[a+(e+16)>>2]|0){i=b;return}if(!(c[a+(e+4)>>2]&8192)){i=b;return}if(Oa()|0){i=b;return}e=c[d>>2]|0;a=c[e+((c[(c[e>>2]|0)+ -12>>2]|0)+24)>>2]|0;if((ec[c[(c[a>>2]|0)+24>>2]&63](a)|0)!=-1){i=b;return}a=c[d>>2]|0;d=c[(c[a>>2]|0)+ -12>>2]|0;Dj(a+d|0,c[a+(d+16)>>2]|1);i=b;return}function Lk(a){a=a|0;return 5544}function Mk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;if((c|0)!=1&(c|0)<257){Wi(a,b,c);i=d;return}else{dj(a,5560,35);i=d;return}}function Nk(){var b=0;b=i;if((a[5608]|0)==0?(Ia(5608)|0)!=0:0){c[1400]=6304;Qb(35,5600,o|0)|0;Ra(5608)}i=b;return 5600}function Ok(a){a=a|0;return}function Pk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e+8|0;g=e;h=d;d=c[h+4>>2]|0;j=g;c[j>>2]=c[h>>2];c[j+4>>2]=d;c[f+0>>2]=c[g+0>>2];c[f+4>>2]=c[g+4>>2];Yi(a,f,b);c[a>>2]=5624;i=e;return}function Qk(a){a=a|0;var b=0;b=i;_i(a);kt(a);i=b;return}function Rk(a){a=a|0;var b=0;b=i;_i(a);i=b;return}function Sk(a){a=a|0;var b=0;b=i;Ej(a);kt(a);i=b;return}function Tk(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function Uk(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function Vk(a){a=a|0;return}function Wk(a){a=a|0;return}function Xk(b,c,d,e,f){b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;b=i;a:do if((e|0)==(f|0)){g=c;h=6}else{j=e;k=c;while(1){if((k|0)==(d|0)){l=-1;break a}m=a[k>>0]|0;n=a[j>>0]|0;if(m<<24>>24>24){l=-1;break a}if(n<<24>>24>24){l=1;break a}m=k+1|0;j=j+1|0;if((j|0)==(f|0)){g=m;h=6;break}else k=m}}while(0);if((h|0)==6)l=(g|0)!=(d|0)&1;i=b;return l|0}function Yk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=i;fj(a,c,d);i=b;return}function Zk(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;b=i;if((c|0)==(d|0)){e=0;i=b;return e|0}else{f=0;g=c}while(1){c=(a[g>>0]|0)+(f<<4)|0;h=c&-268435456;j=(h>>>24|h)^c;g=g+1|0;if((g|0)==(d|0)){e=j;break}else f=j}i=b;return e|0}function _k(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function $k(a){a=a|0;return}function al(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;a=i;a:do if((e|0)==(f|0)){g=b;h=6}else{j=e;k=b;while(1){if((k|0)==(d|0)){l=-1;break a}m=c[k>>2]|0;n=c[j>>2]|0;if((m|0)<(n|0)){l=-1;break a}if((n|0)<(m|0)){l=1;break a}m=k+4|0;j=j+4|0;if((j|0)==(f|0)){g=m;h=6;break}else k=m}}while(0);if((h|0)==6)l=(g|0)!=(d|0)&1;i=a;return l|0}function bl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=i;uj(a,c,d);i=b;return}function cl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;a=i;if((b|0)==(d|0)){e=0;i=a;return e|0}else{f=0;g=b}while(1){b=(c[g>>2]|0)+(f<<4)|0;h=b&-268435456;j=(h>>>24|h)^b;g=g+4|0;if((g|0)==(d|0)){e=j;break}else f=j}i=a;return e|0}function dl(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function el(a){a=a|0;return}function fl(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;k=i;i=i+64|0;l=k;m=k+16|0;n=k+52|0;o=k+4|0;p=k+56|0;q=k+60|0;r=k+12|0;s=k+48|0;t=k+24|0;u=k+8|0;if(c[g+4>>2]&1){Hj(r,g);v=oq(r,8024)|0;Ni(c[r>>2]|0)|0;Hj(s,g);r=oq(s,8168)|0;Ni(c[s>>2]|0)|0;cc[c[(c[r>>2]|0)+24>>2]&63](t,r);cc[c[(c[r>>2]|0)+28>>2]&63](t+12|0,r);c[u>>2]=c[f>>2];r=t+24|0;c[l+0>>2]=c[u+0>>2];a[j>>0]=(gl(e,l,t,r,v,h,1)|0)==(t|0)&1;c[b>>2]=c[e>>2];gj(t+12|0);gj(t);i=k;return}c[n>>2]=-1;t=c[(c[d>>2]|0)+16>>2]|0;c[p>>2]=c[e>>2];c[q>>2]=c[f>>2];c[m+0>>2]=c[p+0>>2];c[l+0>>2]=c[q+0>>2];$b[t&63](o,d,m,l,g,h,n);g=c[o>>2]|0;c[e>>2]=g;e=c[n>>2]|0;if((e|0)==1)a[j>>0]=1;else if(!e)a[j>>0]=0;else{a[j>>0]=1;c[h>>2]=4}c[b>>2]=g;i=k;return}function gl(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;l=i;i=i+112|0;m=l;n=(g-f|0)/12|0;if(n>>>0>100){o=fu(n)|0;if(!o)eu();else{p=o;q=o}}else{p=0;q=m}m=(f|0)==(g|0);if(m){r=0;s=n}else{o=f;t=0;u=n;n=q;while(1){v=a[o>>0]|0;if(!(v&1))w=(v&255)>>>1;else w=c[o+4>>2]|0;if(!w){a[n>>0]=2;x=t+1|0;y=u+ -1|0}else{a[n>>0]=1;x=t;y=u}o=o+12|0;if((o|0)==(g|0)){r=x;s=y;break}else{t=x;u=y;n=n+1|0}}}n=0;y=r;r=s;a:while(1){s=c[b>>2]|0;do if(s)if((c[s+12>>2]|0)==(c[s+16>>2]|0))if((ec[c[(c[s>>2]|0)+36>>2]&63](s)|0)==-1){c[b>>2]=0;z=0;break}else{z=c[b>>2]|0;break}else z=s;else z=0;while(0);s=(z|0)==0;u=c[e>>2]|0;if(u)if((c[u+12>>2]|0)==(c[u+16>>2]|0)?(ec[c[(c[u>>2]|0)+36>>2]&63](u)|0)==-1:0){c[e>>2]=0;A=0}else A=u;else A=0;B=(A|0)==0;C=c[b>>2]|0;if(!((s^B)&(r|0)!=0))break;s=c[C+12>>2]|0;if((s|0)==(c[C+16>>2]|0))D=ec[c[(c[C>>2]|0)+36>>2]&63](C)|0;else D=d[s>>0]|0;s=D&255;if(k)E=s;else E=nc[c[(c[h>>2]|0)+12>>2]&15](h,s)|0;s=n+1|0;if(m){n=s;continue}else{F=0;G=f;H=y;I=r;J=q}while(1){do if((a[J>>0]|0)==1){if(!(a[G>>0]&1))K=G+1|0;else K=c[G+8>>2]|0;u=a[K+n>>0]|0;if(k)L=u;else L=nc[c[(c[h>>2]|0)+12>>2]&15](h,u)|0;if(E<<24>>24!=L<<24>>24){a[J>>0]=0;M=F;N=H;O=I+ -1|0;break}u=a[G>>0]|0;if(!(u&1))P=(u&255)>>>1;else P=c[G+4>>2]|0;if((P|0)==(s|0)){a[J>>0]=2;M=1;N=H+1|0;O=I+ -1|0}else{M=1;N=H;O=I}}else{M=F;N=H;O=I}while(0);u=G+12|0;if((u|0)==(g|0))break;F=M;G=u;H=N;I=O;J=J+1|0}if(!M){n=s;y=N;r=O;continue}u=c[b>>2]|0;x=u+12|0;t=c[x>>2]|0;if((t|0)==(c[u+16>>2]|0))ec[c[(c[u>>2]|0)+40>>2]&63](u)|0;else c[x>>2]=t+1;if((N+O|0)>>>0<2){n=s;y=N;r=O;continue}else{Q=f;R=N;S=q}while(1){if((a[S>>0]|0)==2){t=a[Q>>0]|0;if(!(t&1))T=(t&255)>>>1;else T=c[Q+4>>2]|0;if((T|0)!=(s|0)){a[S>>0]=0;U=R+ -1|0}else U=R}else U=R;t=Q+12|0;if((t|0)==(g|0)){n=s;y=U;r=O;continue a}else{Q=t;R=U;S=S+1|0}}}do if(C)if((c[C+12>>2]|0)==(c[C+16>>2]|0))if((ec[c[(c[C>>2]|0)+36>>2]&63](C)|0)==-1){c[b>>2]=0;V=0;break}else{V=c[b>>2]|0;break}else V=C;else V=0;while(0);C=(V|0)==0;do if(!B){if((c[A+12>>2]|0)!=(c[A+16>>2]|0))if(C)break;else{W=68;break}if((ec[c[(c[A>>2]|0)+36>>2]&63](A)|0)!=-1)if(C)break;else{W=68;break}else{c[e>>2]=0;W=66;break}}else W=66;while(0);if((W|0)==66?C:0)W=68;if((W|0)==68)c[j>>2]=c[j>>2]|2;b:do if(!m)if((a[q>>0]|0)==2)X=f;else{C=f;e=q;while(1){A=C+12|0;e=e+1|0;if((A|0)==(g|0)){W=73;break b}if((a[e>>0]|0)==2){X=A;break}else C=A}}else W=73;while(0);if((W|0)==73){c[j>>2]=c[j>>2]|4;X=g}if(!p){i=l;return X|0}gu(p);i=l;return X|0}function hl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];il(a,0,k,j,f,g,h);i=b;return}function il(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;e=i;i=i+224|0;l=e+198|0;m=e+196|0;n=e+16|0;o=e+4|0;p=e+192|0;q=e+32|0;r=e;s=e+28|0;t=Ur(h)|0;$l(n,h,l,m);c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;kj(o,10,0);if(!(a[o>>0]&1)){h=o+1|0;u=h;v=o+8|0;w=h}else{h=o+8|0;u=o+1|0;v=h;w=c[h>>2]|0}c[p>>2]=w;c[r>>2]=q;c[s>>2]=0;h=o+4|0;x=a[m>>0]|0;m=c[f>>2]|0;y=w;a:while(1){if(m)if((c[m+12>>2]|0)==(c[m+16>>2]|0)?(ec[c[(c[m>>2]|0)+36>>2]&63](m)|0)==-1:0){c[f>>2]=0;z=0}else z=m;else z=0;w=(z|0)==0;A=c[g>>2]|0;do if(A){if((c[A+12>>2]|0)!=(c[A+16>>2]|0))if(w){B=A;break}else{C=A;D=y;break a}if((ec[c[(c[A>>2]|0)+36>>2]&63](A)|0)!=-1)if(w){B=A;break}else{C=A;D=y;break a}else{c[g>>2]=0;E=14;break}}else E=14;while(0);if((E|0)==14){E=0;if(w){C=0;D=y;break}else B=0}A=a[o>>0]|0;F=(A&1)==0;if(F)G=(A&255)>>>1;else G=c[h>>2]|0;if((c[p>>2]|0)==(y+G|0)){if(F){H=(A&255)>>>1;I=(A&255)>>>1}else{A=c[h>>2]|0;H=A;I=A}kj(o,H<<1,0);if(!(a[o>>0]&1))J=10;else J=(c[o>>2]&-2)+ -1|0;kj(o,J,0);if(!(a[o>>0]&1))K=u;else K=c[v>>2]|0;c[p>>2]=K+I;L=K}else L=y;A=z+12|0;F=c[A>>2]|0;M=z+16|0;if((F|0)==(c[M>>2]|0))N=ec[c[(c[z>>2]|0)+36>>2]&63](z)|0;else N=d[F>>0]|0;if(Al(N&255,t,L,p,s,x,n,q,r,l)|0){C=B;D=L;break}F=c[A>>2]|0;if((F|0)==(c[M>>2]|0)){ec[c[(c[z>>2]|0)+40>>2]&63](z)|0;m=z;y=L;continue}else{c[A>>2]=F+1;m=z;y=L;continue}}L=a[n>>0]|0;if(!(L&1))O=(L&255)>>>1;else O=c[n+4>>2]|0;if((O|0)!=0?(O=c[r>>2]|0,(O-q|0)<160):0){L=c[s>>2]|0;c[r>>2]=O+4;c[O>>2]=L}c[k>>2]=ps(D,c[p>>2]|0,j,t)|0;Uo(n,q,c[r>>2]|0,j);if(z)if((c[z+12>>2]|0)==(c[z+16>>2]|0)?(ec[c[(c[z>>2]|0)+36>>2]&63](z)|0)==-1:0){c[f>>2]=0;P=0}else P=z;else P=0;z=(P|0)==0;do if(C){if((c[C+12>>2]|0)!=(c[C+16>>2]|0)){if(!z)break;c[b>>2]=P;gj(o);gj(n);i=e;return}if((ec[c[(c[C>>2]|0)+36>>2]&63](C)|0)==-1){c[g>>2]=0;E=50;break}if(z^(C|0)==0){c[b>>2]=P;gj(o);gj(n);i=e;return}}else E=50;while(0);if((E|0)==50?!z:0){c[b>>2]=P;gj(o);gj(n);i=e;return}c[j>>2]=c[j>>2]|2;c[b>>2]=P;gj(o);gj(n);i=e;return}function jl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];kl(a,0,k,j,f,g,h);i=b;return}function kl(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;e=i;i=i+224|0;l=e+198|0;m=e+196|0;n=e+16|0;o=e+4|0;p=e+192|0;q=e+32|0;r=e;s=e+28|0;t=Ur(h)|0;$l(n,h,l,m);c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;kj(o,10,0);if(!(a[o>>0]&1)){h=o+1|0;u=h;v=o+8|0;w=h}else{h=o+8|0;u=o+1|0;v=h;w=c[h>>2]|0}c[p>>2]=w;c[r>>2]=q;c[s>>2]=0;h=o+4|0;x=a[m>>0]|0;m=c[f>>2]|0;y=w;a:while(1){if(m)if((c[m+12>>2]|0)==(c[m+16>>2]|0)?(ec[c[(c[m>>2]|0)+36>>2]&63](m)|0)==-1:0){c[f>>2]=0;z=0}else z=m;else z=0;w=(z|0)==0;A=c[g>>2]|0;do if(A){if((c[A+12>>2]|0)!=(c[A+16>>2]|0))if(w){B=A;break}else{C=A;D=y;break a}if((ec[c[(c[A>>2]|0)+36>>2]&63](A)|0)!=-1)if(w){B=A;break}else{C=A;D=y;break a}else{c[g>>2]=0;E=14;break}}else E=14;while(0);if((E|0)==14){E=0;if(w){C=0;D=y;break}else B=0}A=a[o>>0]|0;F=(A&1)==0;if(F)G=(A&255)>>>1;else G=c[h>>2]|0;if((c[p>>2]|0)==(y+G|0)){if(F){I=(A&255)>>>1;J=(A&255)>>>1}else{A=c[h>>2]|0;I=A;J=A}kj(o,I<<1,0);if(!(a[o>>0]&1))K=10;else K=(c[o>>2]&-2)+ -1|0;kj(o,K,0);if(!(a[o>>0]&1))L=u;else L=c[v>>2]|0;c[p>>2]=L+J;M=L}else M=y;A=z+12|0;F=c[A>>2]|0;N=z+16|0;if((F|0)==(c[N>>2]|0))O=ec[c[(c[z>>2]|0)+36>>2]&63](z)|0;else O=d[F>>0]|0;if(Al(O&255,t,M,p,s,x,n,q,r,l)|0){C=B;D=M;break}F=c[A>>2]|0;if((F|0)==(c[N>>2]|0)){ec[c[(c[z>>2]|0)+40>>2]&63](z)|0;m=z;y=M;continue}else{c[A>>2]=F+1;m=z;y=M;continue}}M=a[n>>0]|0;if(!(M&1))P=(M&255)>>>1;else P=c[n+4>>2]|0;if((P|0)!=0?(P=c[r>>2]|0,(P-q|0)<160):0){M=c[s>>2]|0;c[r>>2]=P+4;c[P>>2]=M}M=os(D,c[p>>2]|0,j,t)|0;t=k;c[t>>2]=M;c[t+4>>2]=H;Uo(n,q,c[r>>2]|0,j);if(z)if((c[z+12>>2]|0)==(c[z+16>>2]|0)?(ec[c[(c[z>>2]|0)+36>>2]&63](z)|0)==-1:0){c[f>>2]=0;Q=0}else Q=z;else Q=0;z=(Q|0)==0;do if(C){if((c[C+12>>2]|0)!=(c[C+16>>2]|0)){if(!z)break;c[b>>2]=Q;gj(o);gj(n);i=e;return}if((ec[c[(c[C>>2]|0)+36>>2]&63](C)|0)==-1){c[g>>2]=0;E=50;break}if(z^(C|0)==0){c[b>>2]=Q;gj(o);gj(n);i=e;return}}else E=50;while(0);if((E|0)==50?!z:0){c[b>>2]=Q;gj(o);gj(n);i=e;return}c[j>>2]=c[j>>2]|2;c[b>>2]=Q;gj(o);gj(n);i=e;return}function ll(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];ml(a,0,k,j,f,g,h);i=b;return}function ml(e,f,g,h,j,k,l){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;f=i;i=i+224|0;m=f+198|0;n=f+196|0;o=f+16|0;p=f+4|0;q=f+192|0;r=f+32|0;s=f;t=f+28|0;u=Ur(j)|0;$l(o,j,m,n);c[p+0>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;kj(p,10,0);if(!(a[p>>0]&1)){j=p+1|0;v=j;w=p+8|0;x=j}else{j=p+8|0;v=p+1|0;w=j;x=c[j>>2]|0}c[q>>2]=x;c[s>>2]=r;c[t>>2]=0;j=p+4|0;y=a[n>>0]|0;n=c[g>>2]|0;z=x;a:while(1){if(n)if((c[n+12>>2]|0)==(c[n+16>>2]|0)?(ec[c[(c[n>>2]|0)+36>>2]&63](n)|0)==-1:0){c[g>>2]=0;A=0}else A=n;else A=0;x=(A|0)==0;B=c[h>>2]|0;do if(B){if((c[B+12>>2]|0)!=(c[B+16>>2]|0))if(x){C=B;break}else{D=B;E=z;break a}if((ec[c[(c[B>>2]|0)+36>>2]&63](B)|0)!=-1)if(x){C=B;break}else{D=B;E=z;break a}else{c[h>>2]=0;F=14;break}}else F=14;while(0);if((F|0)==14){F=0;if(x){D=0;E=z;break}else C=0}B=a[p>>0]|0;G=(B&1)==0;if(G)H=(B&255)>>>1;else H=c[j>>2]|0;if((c[q>>2]|0)==(z+H|0)){if(G){I=(B&255)>>>1;J=(B&255)>>>1}else{B=c[j>>2]|0;I=B;J=B}kj(p,I<<1,0);if(!(a[p>>0]&1))K=10;else K=(c[p>>2]&-2)+ -1|0;kj(p,K,0);if(!(a[p>>0]&1))L=v;else L=c[w>>2]|0;c[q>>2]=L+J;M=L}else M=z;B=A+12|0;G=c[B>>2]|0;N=A+16|0;if((G|0)==(c[N>>2]|0))O=ec[c[(c[A>>2]|0)+36>>2]&63](A)|0;else O=d[G>>0]|0;if(Al(O&255,u,M,q,t,y,o,r,s,m)|0){D=C;E=M;break}G=c[B>>2]|0;if((G|0)==(c[N>>2]|0)){ec[c[(c[A>>2]|0)+40>>2]&63](A)|0;n=A;z=M;continue}else{c[B>>2]=G+1;n=A;z=M;continue}}M=a[o>>0]|0;if(!(M&1))P=(M&255)>>>1;else P=c[o+4>>2]|0;if((P|0)!=0?(P=c[s>>2]|0,(P-r|0)<160):0){M=c[t>>2]|0;c[s>>2]=P+4;c[P>>2]=M}b[l>>1]=ns(E,c[q>>2]|0,k,u)|0;Uo(o,r,c[s>>2]|0,k);if(A)if((c[A+12>>2]|0)==(c[A+16>>2]|0)?(ec[c[(c[A>>2]|0)+36>>2]&63](A)|0)==-1:0){c[g>>2]=0;Q=0}else Q=A;else Q=0;A=(Q|0)==0;do if(D){if((c[D+12>>2]|0)!=(c[D+16>>2]|0)){if(!A)break;c[e>>2]=Q;gj(p);gj(o);i=f;return}if((ec[c[(c[D>>2]|0)+36>>2]&63](D)|0)==-1){c[h>>2]=0;F=50;break}if(A^(D|0)==0){c[e>>2]=Q;gj(p);gj(o);i=f;return}}else F=50;while(0);if((F|0)==50?!A:0){c[e>>2]=Q;gj(p);gj(o);i=f;return}c[k>>2]=c[k>>2]|2;c[e>>2]=Q;gj(p);gj(o);i=f;return}function nl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];ol(a,0,k,j,f,g,h);i=b;return}function ol(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;e=i;i=i+224|0;l=e+198|0;m=e+196|0;n=e+16|0;o=e+4|0;p=e+192|0;q=e+32|0;r=e;s=e+28|0;t=Ur(h)|0;$l(n,h,l,m);c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;kj(o,10,0);if(!(a[o>>0]&1)){h=o+1|0;u=h;v=o+8|0;w=h}else{h=o+8|0;u=o+1|0;v=h;w=c[h>>2]|0}c[p>>2]=w;c[r>>2]=q;c[s>>2]=0;h=o+4|0;x=a[m>>0]|0;m=c[f>>2]|0;y=w;a:while(1){if(m)if((c[m+12>>2]|0)==(c[m+16>>2]|0)?(ec[c[(c[m>>2]|0)+36>>2]&63](m)|0)==-1:0){c[f>>2]=0;z=0}else z=m;else z=0;w=(z|0)==0;A=c[g>>2]|0;do if(A){if((c[A+12>>2]|0)!=(c[A+16>>2]|0))if(w){B=A;break}else{C=A;D=y;break a}if((ec[c[(c[A>>2]|0)+36>>2]&63](A)|0)!=-1)if(w){B=A;break}else{C=A;D=y;break a}else{c[g>>2]=0;E=14;break}}else E=14;while(0);if((E|0)==14){E=0;if(w){C=0;D=y;break}else B=0}A=a[o>>0]|0;F=(A&1)==0;if(F)G=(A&255)>>>1;else G=c[h>>2]|0;if((c[p>>2]|0)==(y+G|0)){if(F){H=(A&255)>>>1;I=(A&255)>>>1}else{A=c[h>>2]|0;H=A;I=A}kj(o,H<<1,0);if(!(a[o>>0]&1))J=10;else J=(c[o>>2]&-2)+ -1|0;kj(o,J,0);if(!(a[o>>0]&1))K=u;else K=c[v>>2]|0;c[p>>2]=K+I;L=K}else L=y;A=z+12|0;F=c[A>>2]|0;M=z+16|0;if((F|0)==(c[M>>2]|0))N=ec[c[(c[z>>2]|0)+36>>2]&63](z)|0;else N=d[F>>0]|0;if(Al(N&255,t,L,p,s,x,n,q,r,l)|0){C=B;D=L;break}F=c[A>>2]|0;if((F|0)==(c[M>>2]|0)){ec[c[(c[z>>2]|0)+40>>2]&63](z)|0;m=z;y=L;continue}else{c[A>>2]=F+1;m=z;y=L;continue}}L=a[n>>0]|0;if(!(L&1))O=(L&255)>>>1;else O=c[n+4>>2]|0;if((O|0)!=0?(O=c[r>>2]|0,(O-q|0)<160):0){L=c[s>>2]|0;c[r>>2]=O+4;c[O>>2]=L}c[k>>2]=ms(D,c[p>>2]|0,j,t)|0;Uo(n,q,c[r>>2]|0,j);if(z)if((c[z+12>>2]|0)==(c[z+16>>2]|0)?(ec[c[(c[z>>2]|0)+36>>2]&63](z)|0)==-1:0){c[f>>2]=0;P=0}else P=z;else P=0;z=(P|0)==0;do if(C){if((c[C+12>>2]|0)!=(c[C+16>>2]|0)){if(!z)break;c[b>>2]=P;gj(o);gj(n);i=e;return}if((ec[c[(c[C>>2]|0)+36>>2]&63](C)|0)==-1){c[g>>2]=0;E=50;break}if(z^(C|0)==0){c[b>>2]=P;gj(o);gj(n);i=e;return}}else E=50;while(0);if((E|0)==50?!z:0){c[b>>2]=P;gj(o);gj(n);i=e;return}c[j>>2]=c[j>>2]|2;c[b>>2]=P;gj(o);gj(n);i=e;return}function pl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];ql(a,0,k,j,f,g,h);i=b;return}function ql(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;e=i;i=i+224|0;l=e+198|0;m=e+196|0;n=e+16|0;o=e+4|0;p=e+192|0;q=e+32|0;r=e;s=e+28|0;t=Ur(h)|0;$l(n,h,l,m);c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;kj(o,10,0);if(!(a[o>>0]&1)){h=o+1|0;u=h;v=o+8|0;w=h}else{h=o+8|0;u=o+1|0;v=h;w=c[h>>2]|0}c[p>>2]=w;c[r>>2]=q;c[s>>2]=0;h=o+4|0;x=a[m>>0]|0;m=c[f>>2]|0;y=w;a:while(1){if(m)if((c[m+12>>2]|0)==(c[m+16>>2]|0)?(ec[c[(c[m>>2]|0)+36>>2]&63](m)|0)==-1:0){c[f>>2]=0;z=0}else z=m;else z=0;w=(z|0)==0;A=c[g>>2]|0;do if(A){if((c[A+12>>2]|0)!=(c[A+16>>2]|0))if(w){B=A;break}else{C=A;D=y;break a}if((ec[c[(c[A>>2]|0)+36>>2]&63](A)|0)!=-1)if(w){B=A;break}else{C=A;D=y;break a}else{c[g>>2]=0;E=14;break}}else E=14;while(0);if((E|0)==14){E=0;if(w){C=0;D=y;break}else B=0}A=a[o>>0]|0;F=(A&1)==0;if(F)G=(A&255)>>>1;else G=c[h>>2]|0;if((c[p>>2]|0)==(y+G|0)){if(F){H=(A&255)>>>1;I=(A&255)>>>1}else{A=c[h>>2]|0;H=A;I=A}kj(o,H<<1,0);if(!(a[o>>0]&1))J=10;else J=(c[o>>2]&-2)+ -1|0;kj(o,J,0);if(!(a[o>>0]&1))K=u;else K=c[v>>2]|0;c[p>>2]=K+I;L=K}else L=y;A=z+12|0;F=c[A>>2]|0;M=z+16|0;if((F|0)==(c[M>>2]|0))N=ec[c[(c[z>>2]|0)+36>>2]&63](z)|0;else N=d[F>>0]|0;if(Al(N&255,t,L,p,s,x,n,q,r,l)|0){C=B;D=L;break}F=c[A>>2]|0;if((F|0)==(c[M>>2]|0)){ec[c[(c[z>>2]|0)+40>>2]&63](z)|0;m=z;y=L;continue}else{c[A>>2]=F+1;m=z;y=L;continue}}L=a[n>>0]|0;if(!(L&1))O=(L&255)>>>1;else O=c[n+4>>2]|0;if((O|0)!=0?(O=c[r>>2]|0,(O-q|0)<160):0){L=c[s>>2]|0;c[r>>2]=O+4;c[O>>2]=L}c[k>>2]=ls(D,c[p>>2]|0,j,t)|0;Uo(n,q,c[r>>2]|0,j);if(z)if((c[z+12>>2]|0)==(c[z+16>>2]|0)?(ec[c[(c[z>>2]|0)+36>>2]&63](z)|0)==-1:0){c[f>>2]=0;P=0}else P=z;else P=0;z=(P|0)==0;do if(C){if((c[C+12>>2]|0)!=(c[C+16>>2]|0)){if(!z)break;c[b>>2]=P;gj(o);gj(n);i=e;return}if((ec[c[(c[C>>2]|0)+36>>2]&63](C)|0)==-1){c[g>>2]=0;E=50;break}if(z^(C|0)==0){c[b>>2]=P;gj(o);gj(n);i=e;return}}else E=50;while(0);if((E|0)==50?!z:0){c[b>>2]=P;gj(o);gj(n);i=e;return}c[j>>2]=c[j>>2]|2;c[b>>2]=P;gj(o);gj(n);i=e;return}function rl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];sl(a,0,k,j,f,g,h);i=b;return}function sl(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;e=i;i=i+224|0;l=e+198|0;m=e+196|0;n=e+16|0;o=e+4|0;p=e+192|0;q=e+32|0;r=e;s=e+28|0;t=Ur(h)|0;$l(n,h,l,m);c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;kj(o,10,0);if(!(a[o>>0]&1)){h=o+1|0;u=h;v=o+8|0;w=h}else{h=o+8|0;u=o+1|0;v=h;w=c[h>>2]|0}c[p>>2]=w;c[r>>2]=q;c[s>>2]=0;h=o+4|0;x=a[m>>0]|0;m=c[f>>2]|0;y=w;a:while(1){if(m)if((c[m+12>>2]|0)==(c[m+16>>2]|0)?(ec[c[(c[m>>2]|0)+36>>2]&63](m)|0)==-1:0){c[f>>2]=0;z=0}else z=m;else z=0;w=(z|0)==0;A=c[g>>2]|0;do if(A){if((c[A+12>>2]|0)!=(c[A+16>>2]|0))if(w){B=A;break}else{C=A;D=y;break a}if((ec[c[(c[A>>2]|0)+36>>2]&63](A)|0)!=-1)if(w){B=A;break}else{C=A;D=y;break a}else{c[g>>2]=0;E=14;break}}else E=14;while(0);if((E|0)==14){E=0;if(w){C=0;D=y;break}else B=0}A=a[o>>0]|0;F=(A&1)==0;if(F)G=(A&255)>>>1;else G=c[h>>2]|0;if((c[p>>2]|0)==(y+G|0)){if(F){I=(A&255)>>>1;J=(A&255)>>>1}else{A=c[h>>2]|0;I=A;J=A}kj(o,I<<1,0);if(!(a[o>>0]&1))K=10;else K=(c[o>>2]&-2)+ -1|0;kj(o,K,0);if(!(a[o>>0]&1))L=u;else L=c[v>>2]|0;c[p>>2]=L+J;M=L}else M=y;A=z+12|0;F=c[A>>2]|0;N=z+16|0;if((F|0)==(c[N>>2]|0))O=ec[c[(c[z>>2]|0)+36>>2]&63](z)|0;else O=d[F>>0]|0;if(Al(O&255,t,M,p,s,x,n,q,r,l)|0){C=B;D=M;break}F=c[A>>2]|0;if((F|0)==(c[N>>2]|0)){ec[c[(c[z>>2]|0)+40>>2]&63](z)|0;m=z;y=M;continue}else{c[A>>2]=F+1;m=z;y=M;continue}}M=a[n>>0]|0;if(!(M&1))P=(M&255)>>>1;else P=c[n+4>>2]|0;if((P|0)!=0?(P=c[r>>2]|0,(P-q|0)<160):0){M=c[s>>2]|0;c[r>>2]=P+4;c[P>>2]=M}M=ks(D,c[p>>2]|0,j,t)|0;t=k;c[t>>2]=M;c[t+4>>2]=H;Uo(n,q,c[r>>2]|0,j);if(z)if((c[z+12>>2]|0)==(c[z+16>>2]|0)?(ec[c[(c[z>>2]|0)+36>>2]&63](z)|0)==-1:0){c[f>>2]=0;Q=0}else Q=z;else Q=0;z=(Q|0)==0;do if(C){if((c[C+12>>2]|0)!=(c[C+16>>2]|0)){if(!z)break;c[b>>2]=Q;gj(o);gj(n);i=e;return}if((ec[c[(c[C>>2]|0)+36>>2]&63](C)|0)==-1){c[g>>2]=0;E=50;break}if(z^(C|0)==0){c[b>>2]=Q;gj(o);gj(n);i=e;return}}else E=50;while(0);if((E|0)==50?!z:0){c[b>>2]=Q;gj(o);gj(n);i=e;return}c[j>>2]=c[j>>2]|2;c[b>>2]=Q;gj(o);gj(n);i=e;return}function tl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];ul(a,0,k,j,f,g,h);i=b;return}function ul(b,e,f,h,j,k,l){b=b|0;e=e|0;f=f|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;e=i;i=i+256|0;m=e+208|0;n=e+200|0;o=e+240|0;p=e;q=e+188|0;r=e+184|0;s=e+16|0;t=e+176|0;u=e+180|0;v=e+241|0;w=e+242|0;am(p,j,m,n,o);c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;kj(q,10,0);if(!(a[q>>0]&1)){j=q+1|0;x=j;y=q+8|0;z=j}else{j=q+8|0;x=q+1|0;y=j;z=c[j>>2]|0}c[r>>2]=z;c[t>>2]=s;c[u>>2]=0;a[v>>0]=1;a[w>>0]=69;j=q+4|0;A=a[n>>0]|0;n=a[o>>0]|0;o=c[f>>2]|0;B=z;a:while(1){if(o)if((c[o+12>>2]|0)==(c[o+16>>2]|0)?(ec[c[(c[o>>2]|0)+36>>2]&63](o)|0)==-1:0){c[f>>2]=0;C=0}else C=o;else C=0;z=(C|0)==0;D=c[h>>2]|0;do if(D){if((c[D+12>>2]|0)!=(c[D+16>>2]|0))if(z){E=D;break}else{F=D;G=B;break a}if((ec[c[(c[D>>2]|0)+36>>2]&63](D)|0)!=-1)if(z){E=D;break}else{F=D;G=B;break a}else{c[h>>2]=0;H=14;break}}else H=14;while(0);if((H|0)==14){H=0;if(z){F=0;G=B;break}else E=0}D=a[q>>0]|0;I=(D&1)==0;if(I)J=(D&255)>>>1;else J=c[j>>2]|0;if((c[r>>2]|0)==(B+J|0)){if(I){K=(D&255)>>>1;L=(D&255)>>>1}else{D=c[j>>2]|0;K=D;L=D}kj(q,K<<1,0);if(!(a[q>>0]&1))M=10;else M=(c[q>>2]&-2)+ -1|0;kj(q,M,0);if(!(a[q>>0]&1))N=x;else N=c[y>>2]|0;c[r>>2]=N+L;O=N}else O=B;D=C+12|0;I=c[D>>2]|0;P=C+16|0;if((I|0)==(c[P>>2]|0))Q=ec[c[(c[C>>2]|0)+36>>2]&63](C)|0;else Q=d[I>>0]|0;if(bm(Q&255,v,w,O,r,A,n,p,s,t,u,m)|0){F=E;G=O;break}I=c[D>>2]|0;if((I|0)==(c[P>>2]|0)){ec[c[(c[C>>2]|0)+40>>2]&63](C)|0;o=C;B=O;continue}else{c[D>>2]=I+1;o=C;B=O;continue}}O=a[p>>0]|0;if(!(O&1))R=(O&255)>>>1;else R=c[p+4>>2]|0;if(((R|0)!=0?(a[v>>0]|0)!=0:0)?(v=c[t>>2]|0,(v-s|0)<160):0){R=c[u>>2]|0;c[t>>2]=v+4;c[v>>2]=R}g[l>>2]=+js(G,c[r>>2]|0,k);Uo(p,s,c[t>>2]|0,k);if(C)if((c[C+12>>2]|0)==(c[C+16>>2]|0)?(ec[c[(c[C>>2]|0)+36>>2]&63](C)|0)==-1:0){c[f>>2]=0;S=0}else S=C;else S=0;C=(S|0)==0;do if(F){if((c[F+12>>2]|0)!=(c[F+16>>2]|0)){if(!C)break;c[b>>2]=S;gj(q);gj(p);i=e;return}if((ec[c[(c[F>>2]|0)+36>>2]&63](F)|0)==-1){c[h>>2]=0;H=51;break}if(C^(F|0)==0){c[b>>2]=S;gj(q);gj(p);i=e;return}}else H=51;while(0);if((H|0)==51?!C:0){c[b>>2]=S;gj(q);gj(p);i=e;return}c[k>>2]=c[k>>2]|2;c[b>>2]=S;gj(q);gj(p);i=e;return}function vl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];wl(a,0,k,j,f,g,h);i=b;return}function wl(b,e,f,g,j,k,l){b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;e=i;i=i+256|0;m=e+208|0;n=e+200|0;o=e+240|0;p=e;q=e+188|0;r=e+184|0;s=e+16|0;t=e+176|0;u=e+180|0;v=e+241|0;w=e+242|0;am(p,j,m,n,o);c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;kj(q,10,0);if(!(a[q>>0]&1)){j=q+1|0;x=j;y=q+8|0;z=j}else{j=q+8|0;x=q+1|0;y=j;z=c[j>>2]|0}c[r>>2]=z;c[t>>2]=s;c[u>>2]=0;a[v>>0]=1;a[w>>0]=69;j=q+4|0;A=a[n>>0]|0;n=a[o>>0]|0;o=c[f>>2]|0;B=z;a:while(1){if(o)if((c[o+12>>2]|0)==(c[o+16>>2]|0)?(ec[c[(c[o>>2]|0)+36>>2]&63](o)|0)==-1:0){c[f>>2]=0;C=0}else C=o;else C=0;z=(C|0)==0;D=c[g>>2]|0;do if(D){if((c[D+12>>2]|0)!=(c[D+16>>2]|0))if(z){E=D;break}else{F=D;G=B;break a}if((ec[c[(c[D>>2]|0)+36>>2]&63](D)|0)!=-1)if(z){E=D;break}else{F=D;G=B;break a}else{c[g>>2]=0;H=14;break}}else H=14;while(0);if((H|0)==14){H=0;if(z){F=0;G=B;break}else E=0}D=a[q>>0]|0;I=(D&1)==0;if(I)J=(D&255)>>>1;else J=c[j>>2]|0;if((c[r>>2]|0)==(B+J|0)){if(I){K=(D&255)>>>1;L=(D&255)>>>1}else{D=c[j>>2]|0;K=D;L=D}kj(q,K<<1,0);if(!(a[q>>0]&1))M=10;else M=(c[q>>2]&-2)+ -1|0;kj(q,M,0);if(!(a[q>>0]&1))N=x;else N=c[y>>2]|0;c[r>>2]=N+L;O=N}else O=B;D=C+12|0;I=c[D>>2]|0;P=C+16|0;if((I|0)==(c[P>>2]|0))Q=ec[c[(c[C>>2]|0)+36>>2]&63](C)|0;else Q=d[I>>0]|0;if(bm(Q&255,v,w,O,r,A,n,p,s,t,u,m)|0){F=E;G=O;break}I=c[D>>2]|0;if((I|0)==(c[P>>2]|0)){ec[c[(c[C>>2]|0)+40>>2]&63](C)|0;o=C;B=O;continue}else{c[D>>2]=I+1;o=C;B=O;continue}}O=a[p>>0]|0;if(!(O&1))R=(O&255)>>>1;else R=c[p+4>>2]|0;if(((R|0)!=0?(a[v>>0]|0)!=0:0)?(v=c[t>>2]|0,(v-s|0)<160):0){R=c[u>>2]|0;c[t>>2]=v+4;c[v>>2]=R}h[l>>3]=+is(G,c[r>>2]|0,k);Uo(p,s,c[t>>2]|0,k);if(C)if((c[C+12>>2]|0)==(c[C+16>>2]|0)?(ec[c[(c[C>>2]|0)+36>>2]&63](C)|0)==-1:0){c[f>>2]=0;S=0}else S=C;else S=0;C=(S|0)==0;do if(F){if((c[F+12>>2]|0)!=(c[F+16>>2]|0)){if(!C)break;c[b>>2]=S;gj(q);gj(p);i=e;return}if((ec[c[(c[F>>2]|0)+36>>2]&63](F)|0)==-1){c[g>>2]=0;H=51;break}if(C^(F|0)==0){c[b>>2]=S;gj(q);gj(p);i=e;return}}else H=51;while(0);if((H|0)==51?!C:0){c[b>>2]=S;gj(q);gj(p);i=e;return}c[k>>2]=c[k>>2]|2;c[b>>2]=S;gj(q);gj(p);i=e;return}function xl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];yl(a,0,k,j,f,g,h);i=b;return}function yl(b,e,f,g,j,k,l){b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;e=i;i=i+256|0;m=e+208|0;n=e+200|0;o=e+240|0;p=e;q=e+188|0;r=e+184|0;s=e+16|0;t=e+176|0;u=e+180|0;v=e+241|0;w=e+242|0;am(p,j,m,n,o);c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;kj(q,10,0);if(!(a[q>>0]&1)){j=q+1|0;x=j;y=q+8|0;z=j}else{j=q+8|0;x=q+1|0;y=j;z=c[j>>2]|0}c[r>>2]=z;c[t>>2]=s;c[u>>2]=0;a[v>>0]=1;a[w>>0]=69;j=q+4|0;A=a[n>>0]|0;n=a[o>>0]|0;o=c[f>>2]|0;B=z;a:while(1){if(o)if((c[o+12>>2]|0)==(c[o+16>>2]|0)?(ec[c[(c[o>>2]|0)+36>>2]&63](o)|0)==-1:0){c[f>>2]=0;C=0}else C=o;else C=0;z=(C|0)==0;D=c[g>>2]|0;do if(D){if((c[D+12>>2]|0)!=(c[D+16>>2]|0))if(z){E=D;break}else{F=D;G=B;break a}if((ec[c[(c[D>>2]|0)+36>>2]&63](D)|0)!=-1)if(z){E=D;break}else{F=D;G=B;break a}else{c[g>>2]=0;H=14;break}}else H=14;while(0);if((H|0)==14){H=0;if(z){F=0;G=B;break}else E=0}D=a[q>>0]|0;I=(D&1)==0;if(I)J=(D&255)>>>1;else J=c[j>>2]|0;if((c[r>>2]|0)==(B+J|0)){if(I){K=(D&255)>>>1;L=(D&255)>>>1}else{D=c[j>>2]|0;K=D;L=D}kj(q,K<<1,0);if(!(a[q>>0]&1))M=10;else M=(c[q>>2]&-2)+ -1|0;kj(q,M,0);if(!(a[q>>0]&1))N=x;else N=c[y>>2]|0;c[r>>2]=N+L;O=N}else O=B;D=C+12|0;I=c[D>>2]|0;P=C+16|0;if((I|0)==(c[P>>2]|0))Q=ec[c[(c[C>>2]|0)+36>>2]&63](C)|0;else Q=d[I>>0]|0;if(bm(Q&255,v,w,O,r,A,n,p,s,t,u,m)|0){F=E;G=O;break}I=c[D>>2]|0;if((I|0)==(c[P>>2]|0)){ec[c[(c[C>>2]|0)+40>>2]&63](C)|0;o=C;B=O;continue}else{c[D>>2]=I+1;o=C;B=O;continue}}O=a[p>>0]|0;if(!(O&1))R=(O&255)>>>1;else R=c[p+4>>2]|0;if(((R|0)!=0?(a[v>>0]|0)!=0:0)?(v=c[t>>2]|0,(v-s|0)<160):0){R=c[u>>2]|0;c[t>>2]=v+4;c[v>>2]=R}h[l>>3]=+hs(G,c[r>>2]|0,k);Uo(p,s,c[t>>2]|0,k);if(C)if((c[C+12>>2]|0)==(c[C+16>>2]|0)?(ec[c[(c[C>>2]|0)+36>>2]&63](C)|0)==-1:0){c[f>>2]=0;S=0}else S=C;else S=0;C=(S|0)==0;do if(F){if((c[F+12>>2]|0)!=(c[F+16>>2]|0)){if(!C)break;c[b>>2]=S;gj(q);gj(p);i=e;return}if((ec[c[(c[F>>2]|0)+36>>2]&63](F)|0)==-1){c[g>>2]=0;H=51;break}if(C^(F|0)==0){c[b>>2]=S;gj(q);gj(p);i=e;return}}else H=51;while(0);if((H|0)==51?!C:0){c[b>>2]=S;gj(q);gj(p);i=e;return}c[k>>2]=c[k>>2]|2;c[b>>2]=S;gj(q);gj(p);i=e;return}function zl(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;e=i;i=i+240|0;l=e;m=e+208|0;n=e+188|0;o=e+200|0;p=e+8|0;q=e+4|0;r=e+24|0;s=e+184|0;t=e+204|0;c[n+0>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;Hj(o,h);h=oq(o,8024)|0;kc[c[(c[h>>2]|0)+32>>2]&7](h,6536,6562|0,m)|0;Ni(c[o>>2]|0)|0;c[p+0>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;kj(p,10,0);if(!(a[p>>0]&1)){o=p+1|0;u=o;v=p+8|0;w=o}else{o=p+8|0;u=p+1|0;v=o;w=c[o>>2]|0}c[q>>2]=w;c[s>>2]=r;c[t>>2]=0;o=p+4|0;h=c[f>>2]|0;x=w;a:while(1){if(h)if((c[h+12>>2]|0)==(c[h+16>>2]|0)?(ec[c[(c[h>>2]|0)+36>>2]&63](h)|0)==-1:0){c[f>>2]=0;y=0}else y=h;else y=0;w=(y|0)==0;z=c[g>>2]|0;do if(z){if((c[z+12>>2]|0)!=(c[z+16>>2]|0))if(w){A=z;break}else{B=z;C=x;break a}if((ec[c[(c[z>>2]|0)+36>>2]&63](z)|0)!=-1)if(w){A=z;break}else{B=z;C=x;break a}else{c[g>>2]=0;D=14;break}}else D=14;while(0);if((D|0)==14){D=0;if(w){B=0;C=x;break}else A=0}z=a[p>>0]|0;E=(z&1)==0;if(E)F=(z&255)>>>1;else F=c[o>>2]|0;if((c[q>>2]|0)==(x+F|0)){if(E){G=(z&255)>>>1;H=(z&255)>>>1}else{z=c[o>>2]|0;G=z;H=z}kj(p,G<<1,0);if(!(a[p>>0]&1))I=10;else I=(c[p>>2]&-2)+ -1|0;kj(p,I,0);if(!(a[p>>0]&1))J=u;else J=c[v>>2]|0;c[q>>2]=J+H;K=J}else K=x;z=y+12|0;E=c[z>>2]|0;L=y+16|0;if((E|0)==(c[L>>2]|0))M=ec[c[(c[y>>2]|0)+36>>2]&63](y)|0;else M=d[E>>0]|0;if(Al(M&255,16,K,q,t,0,n,r,s,m)|0){B=A;C=K;break}E=c[z>>2]|0;if((E|0)==(c[L>>2]|0)){ec[c[(c[y>>2]|0)+40>>2]&63](y)|0;h=y;x=K;continue}else{c[z>>2]=E+1;h=y;x=K;continue}}kj(p,(c[q>>2]|0)-C|0,0);if(!(a[p>>0]&1))N=u;else N=c[v>>2]|0;v=Cl()|0;c[l>>2]=k;if((Bl(N,v,6576,l)|0)!=1)c[j>>2]=4;if(y)if((c[y+12>>2]|0)==(c[y+16>>2]|0)?(ec[c[(c[y>>2]|0)+36>>2]&63](y)|0)==-1:0){c[f>>2]=0;O=0}else O=y;else O=0;y=(O|0)==0;do if(B){if((c[B+12>>2]|0)!=(c[B+16>>2]|0)){if(!y)break;c[b>>2]=O;gj(p);gj(n);i=e;return}if((ec[c[(c[B>>2]|0)+36>>2]&63](B)|0)==-1){c[g>>2]=0;D=48;break}if(y^(B|0)==0){c[b>>2]=O;gj(p);gj(n);i=e;return}}else D=48;while(0);if((D|0)==48?!y:0){c[b>>2]=O;gj(p);gj(n);i=e;return}c[j>>2]=c[j>>2]|2;c[b>>2]=O;gj(p);gj(n);i=e;return}function Al(b,d,e,f,g,h,j,k,l,m){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0;n=i;o=c[f>>2]|0;p=(o|0)==(e|0);do if(p){q=(a[m+24>>0]|0)==b<<24>>24;if(!q?(a[m+25>>0]|0)!=b<<24>>24:0)break;c[f>>2]=e+1;a[e>>0]=q?43:45;c[g>>2]=0;r=0;i=n;return r|0}while(0);q=a[j>>0]|0;if(!(q&1))s=(q&255)>>>1;else s=c[j+4>>2]|0;if((s|0)!=0?b<<24>>24==h<<24>>24:0){h=c[l>>2]|0;if((h-k|0)>=160){r=0;i=n;return r|0}k=c[g>>2]|0;c[l>>2]=h+4;c[h>>2]=k;c[g>>2]=0;r=0;i=n;return r|0}k=m+26|0;h=m;while(1){if((a[h>>0]|0)==b<<24>>24){t=h;break}h=h+1|0;if((h|0)==(k|0)){t=k;break}}k=t-m|0;if((k|0)>23){r=-1;i=n;return r|0}if((d|0)==10|(d|0)==8){if((k|0)>=(d|0)){r=-1;i=n;return r|0}}else if((d|0)==16?(k|0)>=22:0){if(p){r=-1;i=n;return r|0}if((o-e|0)>=3){r=-1;i=n;return r|0}if((a[o+ -1>>0]|0)!=48){r=-1;i=n;return r|0}c[g>>2]=0;e=a[6536+k>>0]|0;c[f>>2]=o+1;a[o>>0]=e;r=0;i=n;return r|0}e=a[6536+k>>0]|0;c[f>>2]=o+1;a[o>>0]=e;c[g>>2]=(c[g>>2]|0)+1;r=0;i=n;return r|0}function Bl(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;g=f;c[g>>2]=e;e=Za(b|0)|0;b=Zs(a,d,g)|0;if(!e){i=f;return b|0}Za(e|0)|0;i=f;return b|0}function Cl(){var b=0;b=i;if((a[7920]|0)==0?(Ia(7920)|0)!=0:0){c[1978]=$a(2147483647,7928,0)|0;Ra(7920)}i=b;return c[1978]|0}function Dl(a){a=a|0;var b=0;b=i;kt(a);i=b;return}function El(a){a=a|0;return}function Fl(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;k=i;i=i+64|0;l=k;m=k+16|0;n=k+52|0;o=k+4|0;p=k+56|0;q=k+60|0;r=k+12|0;s=k+48|0;t=k+24|0;u=k+8|0;if(c[g+4>>2]&1){Hj(r,g);v=oq(r,8016)|0;Ni(c[r>>2]|0)|0;Hj(s,g);r=oq(s,8176)|0;Ni(c[s>>2]|0)|0;cc[c[(c[r>>2]|0)+24>>2]&63](t,r);cc[c[(c[r>>2]|0)+28>>2]&63](t+12|0,r);c[u>>2]=c[f>>2];r=t+24|0;c[l+0>>2]=c[u+0>>2];a[j>>0]=(Gl(e,l,t,r,v,h,1)|0)==(t|0)&1;c[b>>2]=c[e>>2];vj(t+12|0);vj(t);i=k;return}c[n>>2]=-1;t=c[(c[d>>2]|0)+16>>2]|0;c[p>>2]=c[e>>2];c[q>>2]=c[f>>2];c[m+0>>2]=c[p+0>>2];c[l+0>>2]=c[q+0>>2];$b[t&63](o,d,m,l,g,h,n);g=c[o>>2]|0;c[e>>2]=g;e=c[n>>2]|0;if((e|0)==1)a[j>>0]=1;else if(!e)a[j>>0]=0;else{a[j>>0]=1;c[h>>2]=4}c[b>>2]=g;i=k;return}function Gl(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0;k=i;i=i+112|0;l=k;m=(f-e|0)/12|0;if(m>>>0>100){n=fu(m)|0;if(!n)eu();else{o=n;p=n}}else{o=0;p=l}l=(e|0)==(f|0);if(l){q=0;r=m}else{n=e;s=0;t=m;m=p;while(1){u=a[n>>0]|0;if(!(u&1))v=(u&255)>>>1;else v=c[n+4>>2]|0;if(!v){a[m>>0]=2;w=s+1|0;x=t+ -1|0}else{a[m>>0]=1;w=s;x=t}n=n+12|0;if((n|0)==(f|0)){q=w;r=x;break}else{s=w;t=x;m=m+1|0}}}m=0;x=q;q=r;a:while(1){r=c[b>>2]|0;do if(r){t=c[r+12>>2]|0;if((t|0)==(c[r+16>>2]|0))y=ec[c[(c[r>>2]|0)+36>>2]&63](r)|0;else y=c[t>>2]|0;if((y|0)==-1){c[b>>2]=0;z=1;break}else{z=(c[b>>2]|0)==0;break}}else z=1;while(0);r=c[d>>2]|0;if(r){t=c[r+12>>2]|0;if((t|0)==(c[r+16>>2]|0))A=ec[c[(c[r>>2]|0)+36>>2]&63](r)|0;else A=c[t>>2]|0;if((A|0)==-1){c[d>>2]=0;B=0;C=1}else{B=r;C=0}}else{B=0;C=1}D=c[b>>2]|0;if(!((z^C)&(q|0)!=0))break;r=c[D+12>>2]|0;if((r|0)==(c[D+16>>2]|0))E=ec[c[(c[D>>2]|0)+36>>2]&63](D)|0;else E=c[r>>2]|0;if(j)F=E;else F=nc[c[(c[g>>2]|0)+28>>2]&15](g,E)|0;r=m+1|0;if(l){m=r;continue}else{G=0;H=e;I=x;J=q;K=p}while(1){do if((a[K>>0]|0)==1){if(!(a[H>>0]&1))L=H+4|0;else L=c[H+8>>2]|0;t=c[L+(m<<2)>>2]|0;if(j)M=t;else M=nc[c[(c[g>>2]|0)+28>>2]&15](g,t)|0;if((F|0)!=(M|0)){a[K>>0]=0;N=G;O=I;P=J+ -1|0;break}t=a[H>>0]|0;if(!(t&1))Q=(t&255)>>>1;else Q=c[H+4>>2]|0;if((Q|0)==(r|0)){a[K>>0]=2;N=1;O=I+1|0;P=J+ -1|0}else{N=1;O=I;P=J}}else{N=G;O=I;P=J}while(0);t=H+12|0;if((t|0)==(f|0))break;G=N;H=t;I=O;J=P;K=K+1|0}if(!N){m=r;x=O;q=P;continue}t=c[b>>2]|0;w=t+12|0;s=c[w>>2]|0;if((s|0)==(c[t+16>>2]|0))ec[c[(c[t>>2]|0)+40>>2]&63](t)|0;else c[w>>2]=s+4;if((O+P|0)>>>0<2){m=r;x=O;q=P;continue}else{R=e;S=O;T=p}while(1){if((a[T>>0]|0)==2){s=a[R>>0]|0;if(!(s&1))U=(s&255)>>>1;else U=c[R+4>>2]|0;if((U|0)!=(r|0)){a[T>>0]=0;V=S+ -1|0}else V=S}else V=S;s=R+12|0;if((s|0)==(f|0)){m=r;x=V;q=P;continue a}else{R=s;S=V;T=T+1|0}}}do if(D){T=c[D+12>>2]|0;if((T|0)==(c[D+16>>2]|0))W=ec[c[(c[D>>2]|0)+36>>2]&63](D)|0;else W=c[T>>2]|0;if((W|0)==-1){c[b>>2]=0;X=1;break}else{X=(c[b>>2]|0)==0;break}}else X=1;while(0);do if(B){b=c[B+12>>2]|0;if((b|0)==(c[B+16>>2]|0))Y=ec[c[(c[B>>2]|0)+36>>2]&63](B)|0;else Y=c[b>>2]|0;if((Y|0)!=-1)if(X)break;else{Z=75;break}else{c[d>>2]=0;Z=73;break}}else Z=73;while(0);if((Z|0)==73?X:0)Z=75;if((Z|0)==75)c[h>>2]=c[h>>2]|2;b:do if(!l)if((a[p>>0]|0)==2)_=e;else{X=e;d=p;while(1){Y=X+12|0;d=d+1|0;if((Y|0)==(f|0)){Z=80;break b}if((a[d>>0]|0)==2){_=Y;break}else X=Y}}else Z=80;while(0);if((Z|0)==80){c[h>>2]=c[h>>2]|4;_=f}if(!o){i=k;return _|0}gu(o);i=k;return _|0}function Hl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];Il(a,0,k,j,f,g,h);i=b;return}function Il(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0;d=i;i=i+304|0;k=d+160|0;l=d+280|0;m=d+264|0;n=d+284|0;o=d+300|0;p=d;q=d+276|0;r=d+296|0;s=Ur(g)|0;cm(m,g,k,l);c[n+0>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;kj(n,10,0);if(!(a[n>>0]&1)){g=n+1|0;t=g;u=n+8|0;v=g}else{g=n+8|0;t=n+1|0;u=g;v=c[g>>2]|0}c[o>>2]=v;c[q>>2]=p;c[r>>2]=0;g=n+4|0;w=c[l>>2]|0;l=c[e>>2]|0;x=v;a:while(1){if(l){v=c[l+12>>2]|0;if((v|0)==(c[l+16>>2]|0))y=ec[c[(c[l>>2]|0)+36>>2]&63](l)|0;else y=c[v>>2]|0;if((y|0)==-1){c[e>>2]=0;z=1;A=0}else{z=0;A=l}}else{z=1;A=0}v=c[f>>2]|0;do if(v){B=c[v+12>>2]|0;if((B|0)==(c[v+16>>2]|0))C=ec[c[(c[v>>2]|0)+36>>2]&63](v)|0;else C=c[B>>2]|0;if((C|0)!=-1)if(z){D=v;break}else{E=v;F=x;break a}else{c[f>>2]=0;G=17;break}}else G=17;while(0);if((G|0)==17){G=0;if(z){E=0;F=x;break}else D=0}v=a[n>>0]|0;B=(v&1)==0;if(B)H=(v&255)>>>1;else H=c[g>>2]|0;if((c[o>>2]|0)==(x+H|0)){if(B){I=(v&255)>>>1;J=(v&255)>>>1}else{v=c[g>>2]|0;I=v;J=v}kj(n,I<<1,0);if(!(a[n>>0]&1))K=10;else K=(c[n>>2]&-2)+ -1|0;kj(n,K,0);if(!(a[n>>0]&1))L=t;else L=c[u>>2]|0;c[o>>2]=L+J;M=L}else M=x;v=A+12|0;B=c[v>>2]|0;N=A+16|0;if((B|0)==(c[N>>2]|0))O=ec[c[(c[A>>2]|0)+36>>2]&63](A)|0;else O=c[B>>2]|0;if(_l(O,s,M,o,r,w,m,p,q,k)|0){E=D;F=M;break}B=c[v>>2]|0;if((B|0)==(c[N>>2]|0)){ec[c[(c[A>>2]|0)+40>>2]&63](A)|0;l=A;x=M;continue}else{c[v>>2]=B+4;l=A;x=M;continue}}M=a[m>>0]|0;if(!(M&1))P=(M&255)>>>1;else P=c[m+4>>2]|0;if((P|0)!=0?(P=c[q>>2]|0,(P-p|0)<160):0){M=c[r>>2]|0;c[q>>2]=P+4;c[P>>2]=M}c[j>>2]=ps(F,c[o>>2]|0,h,s)|0;Uo(m,p,c[q>>2]|0,h);if(A){q=c[A+12>>2]|0;if((q|0)==(c[A+16>>2]|0))Q=ec[c[(c[A>>2]|0)+36>>2]&63](A)|0;else Q=c[q>>2]|0;if((Q|0)==-1){c[e>>2]=0;R=0;S=1}else{R=A;S=0}}else{R=0;S=1}do if(E){A=c[E+12>>2]|0;if((A|0)==(c[E+16>>2]|0))T=ec[c[(c[E>>2]|0)+36>>2]&63](E)|0;else T=c[A>>2]|0;if((T|0)==-1){c[f>>2]=0;G=56;break}if(S){c[b>>2]=R;gj(n);gj(m);i=d;return}}else G=56;while(0);if((G|0)==56?!S:0){c[b>>2]=R;gj(n);gj(m);i=d;return}c[h>>2]=c[h>>2]|2;c[b>>2]=R;gj(n);gj(m);i=d;return}function Jl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];Kl(a,0,k,j,f,g,h);i=b;return}function Kl(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=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;d=i;i=i+304|0;k=d+160|0;l=d+280|0;m=d+264|0;n=d+284|0;o=d+300|0;p=d;q=d+276|0;r=d+296|0;s=Ur(g)|0;cm(m,g,k,l);c[n+0>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;kj(n,10,0);if(!(a[n>>0]&1)){g=n+1|0;t=g;u=n+8|0;v=g}else{g=n+8|0;t=n+1|0;u=g;v=c[g>>2]|0}c[o>>2]=v;c[q>>2]=p;c[r>>2]=0;g=n+4|0;w=c[l>>2]|0;l=c[e>>2]|0;x=v;a:while(1){if(l){v=c[l+12>>2]|0;if((v|0)==(c[l+16>>2]|0))y=ec[c[(c[l>>2]|0)+36>>2]&63](l)|0;else y=c[v>>2]|0;if((y|0)==-1){c[e>>2]=0;z=1;A=0}else{z=0;A=l}}else{z=1;A=0}v=c[f>>2]|0;do if(v){B=c[v+12>>2]|0;if((B|0)==(c[v+16>>2]|0))C=ec[c[(c[v>>2]|0)+36>>2]&63](v)|0;else C=c[B>>2]|0;if((C|0)!=-1)if(z){D=v;break}else{E=v;F=x;break a}else{c[f>>2]=0;G=17;break}}else G=17;while(0);if((G|0)==17){G=0;if(z){E=0;F=x;break}else D=0}v=a[n>>0]|0;B=(v&1)==0;if(B)I=(v&255)>>>1;else I=c[g>>2]|0;if((c[o>>2]|0)==(x+I|0)){if(B){J=(v&255)>>>1;K=(v&255)>>>1}else{v=c[g>>2]|0;J=v;K=v}kj(n,J<<1,0);if(!(a[n>>0]&1))L=10;else L=(c[n>>2]&-2)+ -1|0;kj(n,L,0);if(!(a[n>>0]&1))M=t;else M=c[u>>2]|0;c[o>>2]=M+K;N=M}else N=x;v=A+12|0;B=c[v>>2]|0;O=A+16|0;if((B|0)==(c[O>>2]|0))P=ec[c[(c[A>>2]|0)+36>>2]&63](A)|0;else P=c[B>>2]|0;if(_l(P,s,N,o,r,w,m,p,q,k)|0){E=D;F=N;break}B=c[v>>2]|0;if((B|0)==(c[O>>2]|0)){ec[c[(c[A>>2]|0)+40>>2]&63](A)|0;l=A;x=N;continue}else{c[v>>2]=B+4;l=A;x=N;continue}}N=a[m>>0]|0;if(!(N&1))Q=(N&255)>>>1;else Q=c[m+4>>2]|0;if((Q|0)!=0?(Q=c[q>>2]|0,(Q-p|0)<160):0){N=c[r>>2]|0;c[q>>2]=Q+4;c[Q>>2]=N}N=os(F,c[o>>2]|0,h,s)|0;s=j;c[s>>2]=N;c[s+4>>2]=H;Uo(m,p,c[q>>2]|0,h);if(A){q=c[A+12>>2]|0;if((q|0)==(c[A+16>>2]|0))R=ec[c[(c[A>>2]|0)+36>>2]&63](A)|0;else R=c[q>>2]|0;if((R|0)==-1){c[e>>2]=0;S=0;T=1}else{S=A;T=0}}else{S=0;T=1}do if(E){A=c[E+12>>2]|0;if((A|0)==(c[E+16>>2]|0))U=ec[c[(c[E>>2]|0)+36>>2]&63](E)|0;else U=c[A>>2]|0;if((U|0)==-1){c[f>>2]=0;G=56;break}if(T){c[b>>2]=S;gj(n);gj(m);i=d;return}}else G=56;while(0);if((G|0)==56?!T:0){c[b>>2]=S;gj(n);gj(m);i=d;return}c[h>>2]=c[h>>2]|2;c[b>>2]=S;gj(n);gj(m);i=d;return}function Ll(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];Ml(a,0,k,j,f,g,h);i=b;return}function Ml(d,e,f,g,h,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0;e=i;i=i+304|0;l=e+160|0;m=e+280|0;n=e+264|0;o=e+284|0;p=e+300|0;q=e;r=e+276|0;s=e+296|0;t=Ur(h)|0;cm(n,h,l,m);c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;kj(o,10,0);if(!(a[o>>0]&1)){h=o+1|0;u=h;v=o+8|0;w=h}else{h=o+8|0;u=o+1|0;v=h;w=c[h>>2]|0}c[p>>2]=w;c[r>>2]=q;c[s>>2]=0;h=o+4|0;x=c[m>>2]|0;m=c[f>>2]|0;y=w;a:while(1){if(m){w=c[m+12>>2]|0;if((w|0)==(c[m+16>>2]|0))z=ec[c[(c[m>>2]|0)+36>>2]&63](m)|0;else z=c[w>>2]|0;if((z|0)==-1){c[f>>2]=0;A=1;B=0}else{A=0;B=m}}else{A=1;B=0}w=c[g>>2]|0;do if(w){C=c[w+12>>2]|0;if((C|0)==(c[w+16>>2]|0))D=ec[c[(c[w>>2]|0)+36>>2]&63](w)|0;else D=c[C>>2]|0;if((D|0)!=-1)if(A){E=w;break}else{F=w;G=y;break a}else{c[g>>2]=0;H=17;break}}else H=17;while(0);if((H|0)==17){H=0;if(A){F=0;G=y;break}else E=0}w=a[o>>0]|0;C=(w&1)==0;if(C)I=(w&255)>>>1;else I=c[h>>2]|0;if((c[p>>2]|0)==(y+I|0)){if(C){J=(w&255)>>>1;K=(w&255)>>>1}else{w=c[h>>2]|0;J=w;K=w}kj(o,J<<1,0);if(!(a[o>>0]&1))L=10;else L=(c[o>>2]&-2)+ -1|0;kj(o,L,0);if(!(a[o>>0]&1))M=u;else M=c[v>>2]|0;c[p>>2]=M+K;N=M}else N=y;w=B+12|0;C=c[w>>2]|0;O=B+16|0;if((C|0)==(c[O>>2]|0))P=ec[c[(c[B>>2]|0)+36>>2]&63](B)|0;else P=c[C>>2]|0;if(_l(P,t,N,p,s,x,n,q,r,l)|0){F=E;G=N;break}C=c[w>>2]|0;if((C|0)==(c[O>>2]|0)){ec[c[(c[B>>2]|0)+40>>2]&63](B)|0;m=B;y=N;continue}else{c[w>>2]=C+4;m=B;y=N;continue}}N=a[n>>0]|0;if(!(N&1))Q=(N&255)>>>1;else Q=c[n+4>>2]|0;if((Q|0)!=0?(Q=c[r>>2]|0,(Q-q|0)<160):0){N=c[s>>2]|0;c[r>>2]=Q+4;c[Q>>2]=N}b[k>>1]=ns(G,c[p>>2]|0,j,t)|0;Uo(n,q,c[r>>2]|0,j);if(B){r=c[B+12>>2]|0;if((r|0)==(c[B+16>>2]|0))R=ec[c[(c[B>>2]|0)+36>>2]&63](B)|0;else R=c[r>>2]|0;if((R|0)==-1){c[f>>2]=0;S=0;T=1}else{S=B;T=0}}else{S=0;T=1}do if(F){B=c[F+12>>2]|0;if((B|0)==(c[F+16>>2]|0))U=ec[c[(c[F>>2]|0)+36>>2]&63](F)|0;else U=c[B>>2]|0;if((U|0)==-1){c[g>>2]=0;H=56;break}if(T){c[d>>2]=S;gj(o);gj(n);i=e;return}}else H=56;while(0);if((H|0)==56?!T:0){c[d>>2]=S;gj(o);gj(n);i=e;return}c[j>>2]=c[j>>2]|2;c[d>>2]=S;gj(o);gj(n);i=e;return}function Nl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];Ol(a,0,k,j,f,g,h);i=b;return}function Ol(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0;d=i;i=i+304|0;k=d+160|0;l=d+280|0;m=d+264|0;n=d+284|0;o=d+300|0;p=d;q=d+276|0;r=d+296|0;s=Ur(g)|0;cm(m,g,k,l);c[n+0>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;kj(n,10,0);if(!(a[n>>0]&1)){g=n+1|0;t=g;u=n+8|0;v=g}else{g=n+8|0;t=n+1|0;u=g;v=c[g>>2]|0}c[o>>2]=v;c[q>>2]=p;c[r>>2]=0;g=n+4|0;w=c[l>>2]|0;l=c[e>>2]|0;x=v;a:while(1){if(l){v=c[l+12>>2]|0;if((v|0)==(c[l+16>>2]|0))y=ec[c[(c[l>>2]|0)+36>>2]&63](l)|0;else y=c[v>>2]|0;if((y|0)==-1){c[e>>2]=0;z=1;A=0}else{z=0;A=l}}else{z=1;A=0}v=c[f>>2]|0;do if(v){B=c[v+12>>2]|0;if((B|0)==(c[v+16>>2]|0))C=ec[c[(c[v>>2]|0)+36>>2]&63](v)|0;else C=c[B>>2]|0;if((C|0)!=-1)if(z){D=v;break}else{E=v;F=x;break a}else{c[f>>2]=0;G=17;break}}else G=17;while(0);if((G|0)==17){G=0;if(z){E=0;F=x;break}else D=0}v=a[n>>0]|0;B=(v&1)==0;if(B)H=(v&255)>>>1;else H=c[g>>2]|0;if((c[o>>2]|0)==(x+H|0)){if(B){I=(v&255)>>>1;J=(v&255)>>>1}else{v=c[g>>2]|0;I=v;J=v}kj(n,I<<1,0);if(!(a[n>>0]&1))K=10;else K=(c[n>>2]&-2)+ -1|0;kj(n,K,0);if(!(a[n>>0]&1))L=t;else L=c[u>>2]|0;c[o>>2]=L+J;M=L}else M=x;v=A+12|0;B=c[v>>2]|0;N=A+16|0;if((B|0)==(c[N>>2]|0))O=ec[c[(c[A>>2]|0)+36>>2]&63](A)|0;else O=c[B>>2]|0;if(_l(O,s,M,o,r,w,m,p,q,k)|0){E=D;F=M;break}B=c[v>>2]|0;if((B|0)==(c[N>>2]|0)){ec[c[(c[A>>2]|0)+40>>2]&63](A)|0;l=A;x=M;continue}else{c[v>>2]=B+4;l=A;x=M;continue}}M=a[m>>0]|0;if(!(M&1))P=(M&255)>>>1;else P=c[m+4>>2]|0;if((P|0)!=0?(P=c[q>>2]|0,(P-p|0)<160):0){M=c[r>>2]|0;c[q>>2]=P+4;c[P>>2]=M}c[j>>2]=ms(F,c[o>>2]|0,h,s)|0;Uo(m,p,c[q>>2]|0,h);if(A){q=c[A+12>>2]|0;if((q|0)==(c[A+16>>2]|0))Q=ec[c[(c[A>>2]|0)+36>>2]&63](A)|0;else Q=c[q>>2]|0;if((Q|0)==-1){c[e>>2]=0;R=0;S=1}else{R=A;S=0}}else{R=0;S=1}do if(E){A=c[E+12>>2]|0;if((A|0)==(c[E+16>>2]|0))T=ec[c[(c[E>>2]|0)+36>>2]&63](E)|0;else T=c[A>>2]|0;if((T|0)==-1){c[f>>2]=0;G=56;break}if(S){c[b>>2]=R;gj(n);gj(m);i=d;return}}else G=56;while(0);if((G|0)==56?!S:0){c[b>>2]=R;gj(n);gj(m);i=d;return}c[h>>2]=c[h>>2]|2;c[b>>2]=R;gj(n);gj(m);i=d;return}function Pl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];Ql(a,0,k,j,f,g,h);i=b;return}function Ql(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0;d=i;i=i+304|0;k=d+160|0;l=d+280|0;m=d+264|0;n=d+284|0;o=d+300|0;p=d;q=d+276|0;r=d+296|0;s=Ur(g)|0;cm(m,g,k,l);c[n+0>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;kj(n,10,0);if(!(a[n>>0]&1)){g=n+1|0;t=g;u=n+8|0;v=g}else{g=n+8|0;t=n+1|0;u=g;v=c[g>>2]|0}c[o>>2]=v;c[q>>2]=p;c[r>>2]=0;g=n+4|0;w=c[l>>2]|0;l=c[e>>2]|0;x=v;a:while(1){if(l){v=c[l+12>>2]|0;if((v|0)==(c[l+16>>2]|0))y=ec[c[(c[l>>2]|0)+36>>2]&63](l)|0;else y=c[v>>2]|0;if((y|0)==-1){c[e>>2]=0;z=1;A=0}else{z=0;A=l}}else{z=1;A=0}v=c[f>>2]|0;do if(v){B=c[v+12>>2]|0;if((B|0)==(c[v+16>>2]|0))C=ec[c[(c[v>>2]|0)+36>>2]&63](v)|0;else C=c[B>>2]|0;if((C|0)!=-1)if(z){D=v;break}else{E=v;F=x;break a}else{c[f>>2]=0;G=17;break}}else G=17;while(0);if((G|0)==17){G=0;if(z){E=0;F=x;break}else D=0}v=a[n>>0]|0;B=(v&1)==0;if(B)H=(v&255)>>>1;else H=c[g>>2]|0;if((c[o>>2]|0)==(x+H|0)){if(B){I=(v&255)>>>1;J=(v&255)>>>1}else{v=c[g>>2]|0;I=v;J=v}kj(n,I<<1,0);if(!(a[n>>0]&1))K=10;else K=(c[n>>2]&-2)+ -1|0;kj(n,K,0);if(!(a[n>>0]&1))L=t;else L=c[u>>2]|0;c[o>>2]=L+J;M=L}else M=x;v=A+12|0;B=c[v>>2]|0;N=A+16|0;if((B|0)==(c[N>>2]|0))O=ec[c[(c[A>>2]|0)+36>>2]&63](A)|0;else O=c[B>>2]|0;if(_l(O,s,M,o,r,w,m,p,q,k)|0){E=D;F=M;break}B=c[v>>2]|0;if((B|0)==(c[N>>2]|0)){ec[c[(c[A>>2]|0)+40>>2]&63](A)|0;l=A;x=M;continue}else{c[v>>2]=B+4;l=A;x=M;continue}}M=a[m>>0]|0;if(!(M&1))P=(M&255)>>>1;else P=c[m+4>>2]|0;if((P|0)!=0?(P=c[q>>2]|0,(P-p|0)<160):0){M=c[r>>2]|0;c[q>>2]=P+4;c[P>>2]=M}c[j>>2]=ls(F,c[o>>2]|0,h,s)|0;Uo(m,p,c[q>>2]|0,h);if(A){q=c[A+12>>2]|0;if((q|0)==(c[A+16>>2]|0))Q=ec[c[(c[A>>2]|0)+36>>2]&63](A)|0;else Q=c[q>>2]|0;if((Q|0)==-1){c[e>>2]=0;R=0;S=1}else{R=A;S=0}}else{R=0;S=1}do if(E){A=c[E+12>>2]|0;if((A|0)==(c[E+16>>2]|0))T=ec[c[(c[E>>2]|0)+36>>2]&63](E)|0;else T=c[A>>2]|0;if((T|0)==-1){c[f>>2]=0;G=56;break}if(S){c[b>>2]=R;gj(n);gj(m);i=d;return}}else G=56;while(0);if((G|0)==56?!S:0){c[b>>2]=R;gj(n);gj(m);i=d;return}c[h>>2]=c[h>>2]|2;c[b>>2]=R;gj(n);gj(m);i=d;return}function Rl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];Sl(a,0,k,j,f,g,h);i=b;return}function Sl(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=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;d=i;i=i+304|0;k=d+160|0;l=d+280|0;m=d+264|0;n=d+284|0;o=d+300|0;p=d;q=d+276|0;r=d+296|0;s=Ur(g)|0;cm(m,g,k,l);c[n+0>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;kj(n,10,0);if(!(a[n>>0]&1)){g=n+1|0;t=g;u=n+8|0;v=g}else{g=n+8|0;t=n+1|0;u=g;v=c[g>>2]|0}c[o>>2]=v;c[q>>2]=p;c[r>>2]=0;g=n+4|0;w=c[l>>2]|0;l=c[e>>2]|0;x=v;a:while(1){if(l){v=c[l+12>>2]|0;if((v|0)==(c[l+16>>2]|0))y=ec[c[(c[l>>2]|0)+36>>2]&63](l)|0;else y=c[v>>2]|0;if((y|0)==-1){c[e>>2]=0;z=1;A=0}else{z=0;A=l}}else{z=1;A=0}v=c[f>>2]|0;do if(v){B=c[v+12>>2]|0;if((B|0)==(c[v+16>>2]|0))C=ec[c[(c[v>>2]|0)+36>>2]&63](v)|0;else C=c[B>>2]|0;if((C|0)!=-1)if(z){D=v;break}else{E=v;F=x;break a}else{c[f>>2]=0;G=17;break}}else G=17;while(0);if((G|0)==17){G=0;if(z){E=0;F=x;break}else D=0}v=a[n>>0]|0;B=(v&1)==0;if(B)I=(v&255)>>>1;else I=c[g>>2]|0;if((c[o>>2]|0)==(x+I|0)){if(B){J=(v&255)>>>1;K=(v&255)>>>1}else{v=c[g>>2]|0;J=v;K=v}kj(n,J<<1,0);if(!(a[n>>0]&1))L=10;else L=(c[n>>2]&-2)+ -1|0;kj(n,L,0);if(!(a[n>>0]&1))M=t;else M=c[u>>2]|0;c[o>>2]=M+K;N=M}else N=x;v=A+12|0;B=c[v>>2]|0;O=A+16|0;if((B|0)==(c[O>>2]|0))P=ec[c[(c[A>>2]|0)+36>>2]&63](A)|0;else P=c[B>>2]|0;if(_l(P,s,N,o,r,w,m,p,q,k)|0){E=D;F=N;break}B=c[v>>2]|0;if((B|0)==(c[O>>2]|0)){ec[c[(c[A>>2]|0)+40>>2]&63](A)|0;l=A;x=N;continue}else{c[v>>2]=B+4;l=A;x=N;continue}}N=a[m>>0]|0;if(!(N&1))Q=(N&255)>>>1;else Q=c[m+4>>2]|0;if((Q|0)!=0?(Q=c[q>>2]|0,(Q-p|0)<160):0){N=c[r>>2]|0;c[q>>2]=Q+4;c[Q>>2]=N}N=ks(F,c[o>>2]|0,h,s)|0;s=j;c[s>>2]=N;c[s+4>>2]=H;Uo(m,p,c[q>>2]|0,h);if(A){q=c[A+12>>2]|0;if((q|0)==(c[A+16>>2]|0))R=ec[c[(c[A>>2]|0)+36>>2]&63](A)|0;else R=c[q>>2]|0;if((R|0)==-1){c[e>>2]=0;S=0;T=1}else{S=A;T=0}}else{S=0;T=1}do if(E){A=c[E+12>>2]|0;if((A|0)==(c[E+16>>2]|0))U=ec[c[(c[E>>2]|0)+36>>2]&63](E)|0;else U=c[A>>2]|0;if((U|0)==-1){c[f>>2]=0;G=56;break}if(T){c[b>>2]=S;gj(n);gj(m);i=d;return}}else G=56;while(0);if((G|0)==56?!T:0){c[b>>2]=S;gj(n);gj(m);i=d;return}c[h>>2]=c[h>>2]|2;c[b>>2]=S;gj(n);gj(m);i=d;return}function Tl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];Ul(a,0,k,j,f,g,h);i=b;return}function Ul(b,d,e,f,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0;d=i;i=i+352|0;l=d+208|0;m=d+184|0;n=d+4|0;o=d+8|0;p=d+196|0;q=d;r=d+24|0;s=d+192|0;t=d+188|0;u=d+337|0;v=d+336|0;dm(o,h,l,m,n);c[p+0>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;kj(p,10,0);if(!(a[p>>0]&1)){h=p+1|0;w=h;x=p+8|0;y=h}else{h=p+8|0;w=p+1|0;x=h;y=c[h>>2]|0}c[q>>2]=y;c[s>>2]=r;c[t>>2]=0;a[u>>0]=1;a[v>>0]=69;h=p+4|0;z=c[m>>2]|0;m=c[n>>2]|0;n=c[e>>2]|0;A=y;a:while(1){if(n){y=c[n+12>>2]|0;if((y|0)==(c[n+16>>2]|0))B=ec[c[(c[n>>2]|0)+36>>2]&63](n)|0;else B=c[y>>2]|0;if((B|0)==-1){c[e>>2]=0;C=1;D=0}else{C=0;D=n}}else{C=1;D=0}y=c[f>>2]|0;do if(y){E=c[y+12>>2]|0;if((E|0)==(c[y+16>>2]|0))F=ec[c[(c[y>>2]|0)+36>>2]&63](y)|0;else F=c[E>>2]|0;if((F|0)!=-1)if(C){G=y;break}else{H=y;I=A;break a}else{c[f>>2]=0;J=17;break}}else J=17;while(0);if((J|0)==17){J=0;if(C){H=0;I=A;break}else G=0}y=a[p>>0]|0;E=(y&1)==0;if(E)K=(y&255)>>>1;else K=c[h>>2]|0;if((c[q>>2]|0)==(A+K|0)){if(E){L=(y&255)>>>1;M=(y&255)>>>1}else{y=c[h>>2]|0;L=y;M=y}kj(p,L<<1,0);if(!(a[p>>0]&1))N=10;else N=(c[p>>2]&-2)+ -1|0;kj(p,N,0);if(!(a[p>>0]&1))O=w;else O=c[x>>2]|0;c[q>>2]=O+M;P=O}else P=A;y=D+12|0;E=c[y>>2]|0;Q=D+16|0;if((E|0)==(c[Q>>2]|0))R=ec[c[(c[D>>2]|0)+36>>2]&63](D)|0;else R=c[E>>2]|0;if(em(R,u,v,P,q,z,m,o,r,s,t,l)|0){H=G;I=P;break}E=c[y>>2]|0;if((E|0)==(c[Q>>2]|0)){ec[c[(c[D>>2]|0)+40>>2]&63](D)|0;n=D;A=P;continue}else{c[y>>2]=E+4;n=D;A=P;continue}}P=a[o>>0]|0;if(!(P&1))S=(P&255)>>>1;else S=c[o+4>>2]|0;if(((S|0)!=0?(a[u>>0]|0)!=0:0)?(u=c[s>>2]|0,(u-r|0)<160):0){S=c[t>>2]|0;c[s>>2]=u+4;c[u>>2]=S}g[k>>2]=+js(I,c[q>>2]|0,j);Uo(o,r,c[s>>2]|0,j);if(D){s=c[D+12>>2]|0;if((s|0)==(c[D+16>>2]|0))T=ec[c[(c[D>>2]|0)+36>>2]&63](D)|0;else T=c[s>>2]|0;if((T|0)==-1){c[e>>2]=0;U=0;V=1}else{U=D;V=0}}else{U=0;V=1}do if(H){D=c[H+12>>2]|0;if((D|0)==(c[H+16>>2]|0))W=ec[c[(c[H>>2]|0)+36>>2]&63](H)|0;else W=c[D>>2]|0;if((W|0)==-1){c[f>>2]=0;J=57;break}if(V){c[b>>2]=U;gj(p);gj(o);i=d;return}}else J=57;while(0);if((J|0)==57?!V:0){c[b>>2]=U;gj(p);gj(o);i=d;return}c[j>>2]=c[j>>2]|2;c[b>>2]=U;gj(p);gj(o);i=d;return}function Vl(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;b=i;i=i+16|0;j=b+12|0;k=b+8|0;l=b+4|0;m=b;c[l>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k+0>>2]=c[l+0>>2];c[j+0>>2]=c[m+0>>2];Wl(a,0,k,j,f,g,h);i=b;return} + + + +function qc(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;return b|0}function rc(){return i|0}function sc(a){a=a|0;i=a}function tc(a,b){a=a|0;b=b|0;if(!s){s=a;t=b}}function uc(b){b=b|0;a[k>>0]=a[b>>0];a[k+1>>0]=a[b+1>>0];a[k+2>>0]=a[b+2>>0];a[k+3>>0]=a[b+3>>0]}function vc(b){b=b|0;a[k>>0]=a[b>>0];a[k+1>>0]=a[b+1>>0];a[k+2>>0]=a[b+2>>0];a[k+3>>0]=a[b+3>>0];a[k+4>>0]=a[b+4>>0];a[k+5>>0]=a[b+5>>0];a[k+6>>0]=a[b+6>>0];a[k+7>>0]=a[b+7>>0]}function wc(a){a=a|0;H=a}function xc(){return H|0}function yc(){return 40}function zc(){var b=0,d=0,e=0,f=0,g=0;b=i;c[732]=-1;d=jt(56,17208)|0;if(!d){e=0;i=b;return e|0}f=d+28|0;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;c[d+16>>2]=0;c[d+20>>2]=0;c[d+24>>2]=0;c[d+32>>2]=0;c[d+36>>2]=0;a[d+40>>0]=52;a[d+41>>0]=0;g=d+44|0;c[g+0>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[f>>2]=0;e=d;i=b;return e|0}function Ac(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;b=i;if(!a){d=-1;i=b;return d|0}e=c[a+4>>2]|0;if(e){Zd(e);kt(e)}e=c[a>>2]|0;if(e){f=e+16|0;g=c[f>>2]|0;if(g){h=e+20|0;j=c[h>>2]|0;if((j|0)==(g|0))k=g;else{l=j;while(1){j=l+ -12|0;c[h>>2]=j;m=c[j>>2]|0;if(!m)n=j;else{j=l+ -8|0;if((c[j>>2]|0)!=(m|0))c[j>>2]=m;kt(m);n=c[h>>2]|0}if((n|0)==(g|0))break;else l=n}k=c[f>>2]|0}kt(k)}kt(e)}gj(a+44|0);e=c[a+16>>2]|0;if(e){k=a+20|0;f=c[k>>2]|0;if((f|0)!=(e|0))c[k>>2]=f+(~((f+ -4+(0-e)|0)>>>2)<<2);kt(e)}kt(a);d=0;i=b;return d|0}function Bc(a){a=a|0;var b=0;if(!a)b=1;else b=c[a+8>>2]|0;return b|0}function Cc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;e=i;if(!a){f=-1;i=e;return f|0}if(((((b|0)!=0?(g=c[b+4>>2]|0,(g|0)>=3):0)?(h=c[b+8>>2]|0,(h|0)>=3):0)?(2147483647/(h|0)|0|0)>=(g|0):0)?(c[b+12>>2]|0)>>>0<3:0){g=it(32)|0;cd(g,b,d);d=a+4|0;b=c[d>>2]|0;if(b){Zd(b);kt(b);c[d>>2]=0}d=c[a>>2]|0;if(d){b=d+16|0;h=c[b>>2]|0;if(h){j=d+20|0;k=c[j>>2]|0;if((k|0)==(h|0))l=h;else{m=k;while(1){k=m+ -12|0;c[j>>2]=k;n=c[k>>2]|0;if(!n)o=k;else{k=m+ -8|0;if((c[k>>2]|0)!=(n|0))c[k>>2]=n;kt(n);o=c[j>>2]|0}if((o|0)==(h|0))break;else m=o}l=c[b>>2]|0}kt(l)}kt(d)}c[a>>2]=g;f=0;i=e;return f|0}c[a+8>>2]=1;f=-1;i=e;return f|0}function Dc(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0;f=i;if(!b){g=-1;i=f;return g|0}if((d|0)!=0?(a[d>>0]|0)!=0:0){if(!(Mu(d,8)|0))h=c[q>>2]|0;else h=gb(d|0,16)|0;if(h){d=it(32)|0;Zc(d,h,e);e=b+4|0;j=c[e>>2]|0;if(j){Zd(j);kt(j);c[e>>2]=0}e=c[b>>2]|0;if(e){j=e+16|0;k=c[j>>2]|0;if(k){l=e+20|0;m=c[l>>2]|0;if((m|0)==(k|0))n=k;else{o=m;while(1){m=o+ -12|0;c[l>>2]=m;p=c[m>>2]|0;if(!p)r=m;else{m=o+ -8|0;if((c[m>>2]|0)!=(p|0))c[m>>2]=p;kt(p);r=c[l>>2]|0}if((r|0)==(k|0))break;else o=r}n=c[j>>2]|0}kt(n)}kt(e)}c[b>>2]=d;sb(h|0)|0;g=0;i=f;return g|0}}c[b+8>>2]=1;g=-1;i=f;return g|0}function Ec(b,d){b=b|0;d=d|0;var e=0,f=0;e=i;do if(b)if(!(c[b>>2]|0)){c[b+8>>2]=3;f=-1;break}else{a[b+41>>0]=d&1;f=0;break}else f=-1;while(0);i=e;return f|0}function Fc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;do if(a){e=c[a>>2]|0;if(!e){c[a+8>>2]=3;f=-1;break}if((b+1|0)>>>0>256){c[a+8>>2]=1;f=-1;break}else{fd(e,b);f=0;break}}else f=-1;while(0);i=d;return f|0}function Gc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;do if(a){e=c[a>>2]|0;if(!e){c[a+8>>2]=3;f=-1;break}g=kd(e,b)|0;if(g)f=0;else{c[a+8>>2]=1;f=(g^1)<<31>>31}}else f=-1;while(0);i=d;return f|0}function Hc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d;do if(a){if(!(c[a>>2]|0)){c[a+8>>2]=3;f=-1;break}c[e>>2]=0;if(Ih(e,b)|0){ld(c[a>>2]|0,e);f=0}else f=-1}else f=-1;while(0);i=d;return f|0}function Ic(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;if(!b){f=-1;i=e;return f|0}if(!(c[b>>2]|0)){c[b+8>>2]=3;f=-1;i=e;return f|0}if((d|0)!=0?(a[d>>0]|0)!=0:0){if(!(Mu(d,8)|0))g=c[r>>2]|0;else g=gb(d|0,24)|0;if(g){c[b+32>>2]=g;f=0;i=e;return f|0}}c[b+8>>2]=1;f=-1;i=e;return f|0}function Jc(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;do if(a)if(!(c[a>>2]|0)){c[a+8>>2]=3;e=-1;break}else{Jh(a+12|0,32,b)|0;e=0;break}else e=-1;while(0);i=d;return e|0}function Kc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;do if(a){e=c[a>>2]|0;if(!e){c[a+8>>2]=3;f=-1;break}g=jt(40,17208)|0;if(!g){c[a+8>>2]=2;f=-1;break}h=a+12|0;Wd(g,e,32,h,b);e=a+4|0;j=c[e>>2]|0;if(j){Zd(j);kt(j)}c[e>>2]=g;if(!(c[a+32>>2]|0))f=0;else{$d(g,h);f=0}}else f=-1;while(0);i=d;return f|0}function Lc(a){a=a|0;var b=0,d=0,e=0;b=i;if(!a){d=-1;i=b;return d|0}if((c[a>>2]|0)!=0?(e=c[a+4>>2]|0,(e|0)!=0):0){d=(c[e+32>>2]|0)-(c[e+28>>2]|0)>>2;i=b;return d|0}c[a+8>>2]=3;d=-1;i=b;return d|0}function Mc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;if(!a){e=-1;i=d;return e|0}if((c[a>>2]|0)!=0?(f=c[a+4>>2]|0,(f|0)!=0):0){if((b|0)>=0?((c[f+32>>2]|0)-(c[f+28>>2]|0)>>2|0)>(b|0):0){g=_d(f,b)|0;e=(c[g+20>>2]|0)-(c[g+16>>2]|0)>>2;i=d;return e|0}c[a+8>>2]=1;e=-1;i=d;return e|0}c[a+8>>2]=3;e=-1;i=d;return e|0}function Nc(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;b=i;if(!a){d=-1;i=b;return d|0}if((c[a>>2]|0)!=0?(e=a+4|0,f=c[e>>2]|0,(f|0)!=0):0){if(((c[f+32>>2]|0)-(c[f+28>>2]|0)|0)>0){g=f;h=0;j=0}else{d=0;i=b;return d|0}while(1){f=_d(g,h)|0;if(((c[f+20>>2]|0)-(c[f+16>>2]|0)|0)>0){f=j;k=0;while(1){l=hf(_d(c[e>>2]|0,h)|0,k)|0;m=((c[l+20>>2]|0)-(c[l+16>>2]|0)>>2)+f|0;k=k+1|0;l=_d(c[e>>2]|0,h)|0;if((k|0)>=((c[l+20>>2]|0)-(c[l+16>>2]|0)>>2|0)){n=m;break}else f=m}}else n=j;h=h+1|0;g=c[e>>2]|0;if((h|0)>=((c[g+32>>2]|0)-(c[g+28>>2]|0)>>2|0)){d=n;break}else j=n}i=b;return d|0}c[a+8>>2]=3;d=-1;i=b;return d|0}function Oc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;if(!a){e=-1;i=d;return e|0}if((c[a>>2]|0)!=0?(f=a+4|0,g=c[f>>2]|0,(g|0)!=0):0){if((b|0)>=0?((c[g+32>>2]|0)-(c[g+28>>2]|0)>>2|0)>(b|0):0){h=_d(g,b)|0;if(((c[h+20>>2]|0)-(c[h+16>>2]|0)|0)>0){j=0;k=0}else{e=0;i=d;return e|0}while(1){h=hf(_d(c[f>>2]|0,b)|0,k)|0;g=((c[h+20>>2]|0)-(c[h+16>>2]|0)>>2)+j|0;k=k+1|0;h=_d(c[f>>2]|0,b)|0;if((k|0)>=((c[h+20>>2]|0)-(c[h+16>>2]|0)>>2|0)){e=g;break}else j=g}i=d;return e|0}c[a+8>>2]=1;e=-1;i=d;return e|0}c[a+8>>2]=3;e=-1;i=d;return e|0}function Pc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;if(!a){f=-1;i=e;return f|0}if((c[a>>2]|0)!=0?(g=a+4|0,h=c[g>>2]|0,(h|0)!=0):0){if(((b|0)>=0?!((d|0)<0?1:((c[h+32>>2]|0)-(c[h+28>>2]|0)>>2|0)<=(b|0)):0)?(j=_d(h,b)|0,((c[j+20>>2]|0)-(c[j+16>>2]|0)>>2|0)>(d|0)):0){j=hf(_d(c[g>>2]|0,b)|0,d)|0;f=(c[j+20>>2]|0)-(c[j+16>>2]|0)>>2;i=e;return f|0}c[a+8>>2]=1;f=-1;i=e;return f|0}c[a+8>>2]=3;f=-1;i=e;return f|0}function Qc(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;if(!b){g=0;i=f;return g|0}if((c[b>>2]|0)!=0?(h=b+4|0,j=c[h>>2]|0,(j|0)!=0):0){if(((d|0)>=0?!((e|0)<0?1:((c[j+32>>2]|0)-(c[j+28>>2]|0)>>2|0)<=(d|0)):0)?(k=_d(j,d)|0,((c[k+20>>2]|0)-(c[k+16>>2]|0)>>2|0)>(e|0)):0){k=hf(_d(c[h>>2]|0,d)|0,e)|0;e=b+44|0;if(!(a[e>>0]&1)){a[e+1>>0]=0;a[e>>0]=0}else{a[c[b+52>>2]>>0]=0;c[b+48>>2]=0}d=k+20|0;h=k+16|0;j=((c[d>>2]|0)-(c[h>>2]|0)|0)>0;if(!(a[b+41>>0]|0)){if(j){l=0;do{oj(e,bg(lg(k,l)|0)|0);l=l+1|0}while((l|0)<((c[d>>2]|0)-(c[h>>2]|0)>>2|0))}}else if(j){j=0;do{nj(e,cg(lg(k,j)|0)|0)|0;j=j+1|0}while((j|0)<((c[d>>2]|0)-(c[h>>2]|0)>>2|0))}oj(e,10);if(!(a[e>>0]&1)){g=e+1|0;i=f;return g|0}else{g=c[b+52>>2]|0;i=f;return g|0}}c[b+8>>2]=1;g=0;i=f;return g|0}c[b+8>>2]=3;g=0;i=f;return g|0}function Rc(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;if(!b){e=-1;i=d;return e|0}if((c[b>>2]|0)!=0?(f=b+4|0,g=c[f>>2]|0,(g|0)!=0):0){if(((c[g+32>>2]|0)-(c[g+28>>2]|0)|0)<=0){e=0;i=d;return e|0}h=_d(g,0)|0;if(((c[h+20>>2]|0)-(c[h+16>>2]|0)|0)<=0){e=0;i=d;return e|0}h=lg(hf(_d(c[f>>2]|0,0)|0,0)|0,0)|0;if((c[h+32>>2]|0)==(c[h+28>>2]|0)){e=0;i=d;return e|0}f=(a[b+41>>0]|0)==0;g=c[(_f(h,0)|0)>>2]|0;if(!f){e=g;i=d;return e|0}e=(If(g)|0)&255;i=d;return e|0}c[b+8>>2]=3;e=-1;i=d;return e|0}function Sc(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;f=i;i=i+16|0;g=f+1|0;h=f;a[b+28>>0]=1;a[b+29>>0]=0;j=(c[b+12>>2]|0)+1-(c[b+4>>2]|0)|0;k=(c[b+8>>2]|0)+1-(c[b>>2]|0)|0;l=(j|0)>0;if(!e){if(!l){i=f;return}e=(k|0)>0;m=b+16|0;n=0;a:while(1){if(e){o=0;do{p=c[m>>2]|0;q=p+(n*12|0)|0;r=Cb(d|0)|0;if((r|0)==-1){s=22;break a}else{t=r;u=0}while(1){v=t&255;if(!(v<<24>>24==35|u&v<<24>>24!=10))if(!(ku(t&255)|0))break;else w=0;else w=1;t=Cb(d|0)|0;if((t|0)==-1){s=22;break a}else u=w}if(v<<24>>24==49)x=0;else if(v<<24>>24==48)x=1;else{s=28;break a}a[g>>0]=x;r=p+(n*12|0)+4|0;y=c[r>>2]|0;if((y|0)==(c[p+(n*12|0)+8>>2]|0))bd(q,g);else{if(!y)z=0;else{a[y>>0]=x;z=c[r>>2]|0}c[r>>2]=z+1}o=o+1|0}while((o|0)<(k|0))}n=n+1|0;if((n|0)>=(j|0)){s=39;break}}if((s|0)==22){n=Na(4)|0;c[n>>2]=664;Nb(n|0,104,0)}else if((s|0)==28){n=Na(4)|0;c[n>>2]=696;Nb(n|0,104,0)}else if((s|0)==39){i=f;return}}if(!l){i=f;return}l=b+16|0;if((k|0)>0)A=0;else{b=0;do b=b+1|0;while((b|0)<(j|0));i=f;return}b:while(1){b=0;do{n=c[l>>2]|0;z=n+(A*12|0)|0;x=Cb(d|0)|0;if((x|0)==-1){s=36;break b}else{B=x;C=0}while(1){D=B&255;if(!(D<<24>>24==35|C&D<<24>>24!=10))if(!(ku(B&255)|0))break;else E=0;else E=1;B=Cb(d|0)|0;if((B|0)==-1){s=36;break b}else C=E}if(D<<24>>24==49)F=1;else if(D<<24>>24==48)F=0;else{s=37;break b}a[h>>0]=F;q=n+(A*12|0)+4|0;p=c[q>>2]|0;if((p|0)==(c[n+(A*12|0)+8>>2]|0))bd(z,h);else{if(!p)G=0;else{a[p>>0]=F;G=c[q>>2]|0}c[q>>2]=G+1}b=b+1|0}while((b|0)<(k|0));A=A+1|0;if((A|0)>=(j|0)){s=39;break}}if((s|0)==36){j=Na(4)|0;c[j>>2]=664;Nb(j|0,104,0)}else if((s|0)==37){j=Na(4)|0;c[j>>2]=696;Nb(j|0,104,0)}else if((s|0)==39){i=f;return}}function Tc(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;f=i;i=i+16|0;g=f+1|0;h=f;a[b+28>>0]=1;a[b+29>>0]=0;j=(c[b+12>>2]|0)+1-(c[b+4>>2]|0)|0;k=c[b+8>>2]|0;l=c[b>>2]|0;m=k+1-l|0;n=(j|0)>0;if(!e){if(!n){i=f;return}e=(m|0)>0;o=b+16|0;p=l+ -1-k|0;q=0;a:while(1){if(e){r=0;while(1){s=Cb(d|0)|0;if((s|0)==-1){t=24;break a}if((r|0)<(m|0)){u=s&255;s=p+r|0;v=r-(s>>>0>4294967288?s:-8)|0;s=r;w=128;while(1){x=c[o>>2]|0;y=(u&w|0)==0&1;a[g>>0]=y;z=x+(q*12|0)+4|0;A=c[z>>2]|0;if((A|0)==(c[x+(q*12|0)+8>>2]|0))bd(x+(q*12|0)|0,g);else{if(!A)B=0;else{a[A>>0]=y;B=c[z>>2]|0}c[z>>2]=B+1}s=s+1|0;if((s|0)==(v|0)){C=v;break}else w=w>>1}}else C=r;if((C|0)<(m|0))r=C;else break}}q=q+1|0;if((q|0)>=(j|0)){t=34;break}}if((t|0)==24){q=Na(4)|0;c[q>>2]=664;Nb(q|0,104,0)}else if((t|0)==34){i=f;return}}if(!n){i=f;return}n=b+16|0;if((m|0)<=0){b=0;do b=b+1|0;while((b|0)<(j|0));i=f;return}b=l+ -1-k|0;k=0;b:while(1){l=0;while(1){q=Cb(d|0)|0;if((q|0)==-1){t=32;break b}if((l|0)<(m|0)){C=q&255;q=b+l|0;B=l-(q>>>0>4294967288?q:-8)|0;q=l;g=128;while(1){o=c[n>>2]|0;p=(C&g|0)!=0&1;a[h>>0]=p;e=o+(k*12|0)+4|0;r=c[e>>2]|0;if((r|0)==(c[o+(k*12|0)+8>>2]|0))bd(o+(k*12|0)|0,h);else{if(!r)D=0;else{a[r>>0]=p;D=c[e>>2]|0}c[e>>2]=D+1}q=q+1|0;if((q|0)==(B|0)){E=B;break}else g=g>>1}}else E=l;if((E|0)<(m|0))l=E;else break}k=k+1|0;if((k|0)>=(j|0)){t=34;break}}if((t|0)==32){j=Na(4)|0;c[j>>2]=664;Nb(j|0,104,0)}else if((t|0)==34){i=f;return}}function Uc(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;f=i;i=i+16|0;g=f;h=Vc(d)|0;if(!h){j=Na(4)|0;c[j>>2]=48;Nb(j|0,104,0)}j=(h|0)>255;k=j?255:h;a[b+28>>0]=k;a[b+29>>0]=k>>>1&127;k=(c[b+12>>2]|0)+1-(c[b+4>>2]|0)|0;l=(c[b+8>>2]|0)+1-(c[b>>2]|0)|0;if((k|0)<=0){i=f;return}m=(l|0)>0;n=b+16|0;b=0;a:while(1){if(m){o=0;do{p=Vc(d)|0;if((p|0)>(h|0)){q=7;break a}r=e?h-p|0:p;if(j)s=(r*255|0)/(h|0)|0;else s=r;r=c[n>>2]|0;p=s&255;a[g>>0]=p;t=r+(b*12|0)+4|0;u=c[t>>2]|0;if((u|0)==(c[r+(b*12|0)+8>>2]|0))bd(r+(b*12|0)|0,g);else{if(!u)v=0;else{a[u>>0]=p;v=c[t>>2]|0}c[t>>2]=v+1}o=o+1|0}while((o|0)<(l|0))}b=b+1|0;if((b|0)>=(k|0)){q=17;break}}if((q|0)==7){k=Na(4)|0;c[k>>2]=112;Nb(k|0,104,0)}else if((q|0)==17){i=f;return}}function Vc(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;b=i;d=Cb(a|0)|0;if((d|0)==-1){e=Na(4)|0;c[e>>2]=664;Nb(e|0,104,0)}else{f=d;g=0}while(1){d=f&255;if(!(d<<24>>24==35|g&d<<24>>24!=10)){h=f&255;if(!(ku(h)|0))break;else j=0}else j=1;d=Cb(a|0)|0;if((d|0)==-1){k=2;break}else{f=d;g=j}}if((k|0)==2){e=Na(4)|0;c[e>>2]=664;Nb(e|0,104,0)}if((h+ -48|0)>>>0<10){l=f;m=0}else{f=Na(4)|0;c[f>>2]=584;Nb(f|0,104,0)}a:while(1){f=l&255;if(((-2147483601-f|0)/10|0|0)<(m|0)){k=9;break}n=f+ -48+(m*10|0)|0;f=0;while(1){o=Cb(a|0)|0;if((o|0)==-1){k=12;break a}h=o&255;if(h<<24>>24==35|f&h<<24>>24!=10)f=1;else break}if(((o&255)+ -48|0)>>>0<10){l=o;m=n}else{k=15;break}}if((k|0)==9){m=Na(4)|0;c[m>>2]=632;Nb(m|0,104,0)}else if((k|0)==12){m=Na(4)|0;c[m>>2]=664;Nb(m|0,104,0)}else if((k|0)==15){i=b;return n|0}return 0}function Wc(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;f=i;i=i+16|0;g=f;h=Vc(d)|0;if(!h){j=Na(4)|0;c[j>>2]=48;Nb(j|0,104,0)}if((h|0)>255){j=Na(4)|0;c[j>>2]=144;Nb(j|0,104,0)}j=b+28|0;a[j>>0]=h;a[b+29>>0]=h>>>1&127;h=(c[b+12>>2]|0)+1-(c[b+4>>2]|0)|0;k=(c[b+8>>2]|0)+1-(c[b>>2]|0)|0;if((h|0)<=0){i=f;return}l=(k|0)>0;m=b+16|0;b=0;a:while(1){if(l){n=0;do{o=Cb(d|0)|0;if((o|0)==-1){p=9;break a}q=o&255;a[g>>0]=q;r=a[j>>0]|0;if((q&255)>(r&255)){p=11;break a}if(e){s=(r&255)-o&255;a[g>>0]=s;t=s}else t=q;q=c[m>>2]|0;s=q+(b*12|0)+4|0;o=c[s>>2]|0;if((o|0)==(c[q+(b*12|0)+8>>2]|0))bd(q+(b*12|0)|0,g);else{if(!o)u=0;else{a[o>>0]=t;u=c[s>>2]|0}c[s>>2]=u+1}n=n+1|0}while((n|0)<(k|0))}b=b+1|0;if((b|0)>=(h|0)){p=21;break}}if((p|0)==9){h=Na(4)|0;c[h>>2]=664;Nb(h|0,104,0)}else if((p|0)==11){h=Na(4)|0;c[h>>2]=112;Nb(h|0,104,0)}else if((p|0)==21){i=f;return}}function Xc(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;f=i;i=i+16|0;g=f;h=Vc(d)|0;if(!h){j=Na(4)|0;c[j>>2]=176;Nb(j|0,104,0)}j=(h|0)>255;k=j?255:h;a[b+28>>0]=k;a[b+29>>0]=k>>>1&127;k=(c[b+12>>2]|0)+1-(c[b+4>>2]|0)|0;l=(c[b+8>>2]|0)+1-(c[b>>2]|0)|0;if((k|0)<=0){i=f;return}m=(l|0)>0;n=b+16|0;b=0;a:while(1){if(m){o=0;do{p=Vc(d)|0;q=Vc(d)|0;r=Vc(d)|0;if((p|0)>(h|0)){s=8;break a}if((q|0)>(h|0)|(r|0)>(h|0)){s=8;break a}if(e){t=(q|0)<(r|0)?r:q;u=h-((p|0)<(t|0)?t:p)|0}else{t=(r|0)<(q|0)?r:q;u=(t|0)<(p|0)?t:p}if(j)v=(u*255|0)/(h|0)|0;else v=u;p=c[n>>2]|0;t=v&255;a[g>>0]=t;q=p+(b*12|0)+4|0;r=c[q>>2]|0;if((r|0)==(c[p+(b*12|0)+8>>2]|0))bd(p+(b*12|0)|0,g);else{if(!r)w=0;else{a[r>>0]=t;w=c[q>>2]|0}c[q>>2]=w+1}o=o+1|0}while((o|0)<(l|0))}b=b+1|0;if((b|0)>=(k|0)){s=21;break}}if((s|0)==8){k=Na(4)|0;c[k>>2]=208;Nb(k|0,104,0)}else if((s|0)==21){i=f;return}}function Yc(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;f=i;i=i+16|0;g=f;h=Vc(d)|0;if(!h){j=Na(4)|0;c[j>>2]=176;Nb(j|0,104,0)}if((h|0)>255){j=Na(4)|0;c[j>>2]=240;Nb(j|0,104,0)}j=b+28|0;a[j>>0]=h;a[b+29>>0]=h>>>1&127;h=(c[b+12>>2]|0)+1-(c[b+4>>2]|0)|0;k=(c[b+8>>2]|0)+1-(c[b>>2]|0)|0;if((h|0)<=0){i=f;return}l=(k|0)>0;m=b+16|0;b=0;a:while(1){if(l){n=0;do{o=Cb(d|0)|0;if((o|0)==-1){p=9;break a}q=o&255;o=Cb(d|0)|0;if((o|0)==-1){p=11;break a}r=o&255;o=Cb(d|0)|0;if((o|0)==-1){p=13;break a}s=o&255;o=a[j>>0]|0;if((q&255)>(o&255)){p=16;break a}if((r&255)>(o&255)|(s&255)>(o&255)){p=16;break a}if(e){t=(r&255)<(s&255)?s:r;u=(o&255)-(((q&255)<(t&255)?t:q)&255)&255}else{t=(s&255)<(r&255)?s:r;u=(t&255)<(q&255)?t:q}a[g>>0]=u;q=c[m>>2]|0;t=q+(b*12|0)+4|0;r=c[t>>2]|0;if((r|0)==(c[q+(b*12|0)+8>>2]|0))bd(q+(b*12|0)|0,g);else{if(!r)v=0;else{a[r>>0]=u;v=c[t>>2]|0}c[t>>2]=v+1}n=n+1|0}while((n|0)<(k|0))}b=b+1|0;if((b|0)>=(h|0)){p=27;break}}if((p|0)==9){h=Na(4)|0;c[h>>2]=664;Nb(h|0,104,0)}else if((p|0)==11){h=Na(4)|0;c[h>>2]=664;Nb(h|0,104,0)}else if((p|0)==13){h=Na(4)|0;c[h>>2]=664;Nb(h|0,104,0)}else if((p|0)==16){h=Na(4)|0;c[h>>2]=208;Nb(h|0,104,0)}else if((p|0)==27){i=f;return}}function Zc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;e=i;i=i+16|0;f=e;wd(a,0,0,0,0);g=a+16|0;c[g>>2]=0;h=a+20|0;c[h>>2]=0;c[a+24>>2]=0;j=Cb(b|0)|0;if((j|0)==-1){k=Na(4)|0;c[k>>2]=664;Nb(k|0,104,0)}if((j&255)<<24>>24!=80){l=Na(4)|0;c[l>>2]=272;Nb(l|0,104,0)}j=Cb(b|0)|0;if((j|0)==-1){k=Na(4)|0;c[k>>2]=664;Nb(k|0,104,0)}k=j&255;j=(k+ -49<<24>>24&255)<6?k:0;k=j&255;if(!(j<<24>>24)){l=Na(4)|0;c[l>>2]=272;Nb(l|0,104,0)}l=Vc(b)|0;if(!l){j=Na(4)|0;c[j>>2]=320;Nb(j|0,104,0)}Cd(a,l);l=Vc(b)|0;if(!l){j=Na(4)|0;c[j>>2]=344;Nb(j|0,104,0)}Bd(a,l);l=a+8|0;j=(c[l>>2]|0)+1-(c[a>>2]|0)|0;if((j|0)<3){m=Na(4)|0;c[m>>2]=376;Nb(m|0,104,0)}n=a+12|0;o=a+4|0;q=(c[n>>2]|0)+1-(c[o>>2]|0)|0;if((q|0)<3){m=Na(4)|0;c[m>>2]=376;Nb(m|0,104,0)}if((2147483647/(j|0)|0|0)<(q|0)){j=Na(4)|0;c[j>>2]=416;Nb(j|0,104,0)}j=c[h>>2]|0;m=c[g>>2]|0;r=(j-m|0)/12|0;if(r>>>0>=q>>>0)if(r>>>0>q>>>0?(s=m+(q*12|0)|0,(j|0)!=(s|0)):0){m=j;while(1){t=m+ -12|0;c[h>>2]=t;u=c[t>>2]|0;if(!u)v=t;else{t=m+ -8|0;if((c[t>>2]|0)!=(u|0))c[t>>2]=u;kt(u);v=c[h>>2]|0}if((v|0)==(s|0)){w=s;break}else m=v}}else w=j;else{$c(g,q-r|0);w=c[h>>2]|0}r=c[g>>2]|0;if((w|0)!=(r|0)){w=r;r=0;do{q=c[a>>2]|0;j=(c[l>>2]|0)+1|0;v=j-q|0;m=w+(r*12|0)+8|0;s=w+(r*12|0)|0;u=c[s>>2]|0;t=u;if(((c[m>>2]|0)-t|0)>>>0>>0){x=w+(r*12|0)+4|0;y=(c[x>>2]|0)-t|0;if((j|0)==(q|0))z=0;else z=it(v)|0;Tu(z|0,u|0,y|0)|0;c[s>>2]=z;c[x>>2]=z+y;c[m>>2]=z+v;if(u)kt(u)}r=r+1|0;w=c[g>>2]|0}while(r>>>0<(((c[h>>2]|0)-w|0)/12|0)>>>0)}switch(k|0){case 49:{Sc(a,b,d);break};case 52:{Tc(a,b,d);break};case 50:{Uc(a,b,d);break};case 53:{Wc(a,b,d);break};case 51:{Xc(a,b,d);break};case 54:{Yc(a,b,d);break};default:{}}if((c[732]|0)<=0){i=e;return}d=c[p>>2]|0;c[f>>2]=k;Ob(d|0,456,f|0)|0;k=(c[n>>2]|0)+1-(c[o>>2]|0)|0;c[f>>2]=(c[l>>2]|0)+1-(c[a>>2]|0);c[f+4>>2]=k;Ob(d|0,480,f|0)|0;i=e;return}function _c(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;f=i;i=i+16|0;g=f;if((e+ -49<<24>>24&255)>5){h=0;i=f;return h|0}j=a+8|0;k=(c[j>>2]|0)+1-(c[a>>2]|0)|0;l=a+12|0;m=a+4|0;n=(c[l>>2]|0)+1-(c[m>>2]|0)|0;c[g>>2]=e<<24>>24;c[g+4>>2]=k;c[g+8>>2]=n;Ob(b|0,504,g|0)|0;if(e<<24>>24==49){n=c[m>>2]|0;if((n|0)>(c[l>>2]|0)){h=1;i=f;return h|0}k=a+16|0;o=a+29|0;p=n;while(1){n=c[a>>2]|0;a:do if((n|0)<=(c[j>>2]|0)){q=n;r=n;while(1){ib(((d[(c[(c[k>>2]|0)+((p-(c[m>>2]|0)|0)*12|0)>>2]|0)+(r-q)>>0]|0)<=(d[o>>0]|0)?49:48)|0,b|0)|0;if((r|0)>=(c[j>>2]|0))break a;q=c[a>>2]|0;r=r+1|0}}while(0);ib(10,b|0)|0;if((p|0)<(c[l>>2]|0))p=p+1|0;else{h=1;break}}i=f;return h|0}else if(e<<24>>24!=52){c[g>>2]=d[a+28>>0];Ob(b|0,520,g|0)|0;if(e<<24>>24==50){p=c[m>>2]|0;if((p|0)>(c[l>>2]|0)){h=1;i=f;return h|0}o=a+16|0;k=p;while(1){p=c[a>>2]|0;n=c[j>>2]|0;r=c[(c[o>>2]|0)+(k*12|0)>>2]|0;if((p|0)<(n|0)){q=r;s=p;while(1){c[g>>2]=d[q+s>>0];Ob(b|0,528,g|0)|0;s=s+1|0;p=c[j>>2]|0;t=c[(c[o>>2]|0)+(k*12|0)>>2]|0;if((s|0)>=(p|0)){u=p;v=t;break}else q=t}}else{u=n;v=r}c[g>>2]=d[v+u>>0];Ob(b|0,520,g|0)|0;if((k|0)<(c[l>>2]|0))k=k+1|0;else{h=1;break}}i=f;return h|0}else if(e<<24>>24==53){k=c[m>>2]|0;u=c[l>>2]|0;if((k|0)>(u|0)){h=1;i=f;return h|0}v=a+16|0;o=c[j>>2]|0;q=u;u=k;while(1){k=c[a>>2]|0;if((k|0)>(o|0)){w=q;x=o}else{s=k;while(1){Eb(d[(c[(c[v>>2]|0)+(u*12|0)>>2]|0)+s>>0]|0|0,b|0)|0;y=c[j>>2]|0;if((s|0)<(y|0))s=s+1|0;else break}w=c[l>>2]|0;x=y}if((u|0)>=(w|0)){h=1;break}o=x;q=w;u=u+1|0}i=f;return h|0}else if(e<<24>>24==51){u=c[m>>2]|0;if((u|0)>(c[l>>2]|0)){h=1;i=f;return h|0}w=a+16|0;q=u;while(1){u=c[a>>2]|0;x=c[j>>2]|0;o=c[(c[w>>2]|0)+(q*12|0)>>2]|0;if((u|0)<(x|0)){y=o;v=u;while(1){u=d[y+v>>0]|0;c[g>>2]=u;c[g+4>>2]=u;c[g+8>>2]=u;Ob(b|0,536,g|0)|0;v=v+1|0;u=c[j>>2]|0;s=c[(c[w>>2]|0)+(q*12|0)>>2]|0;if((v|0)>=(u|0)){z=u;A=s;break}else y=s}}else{z=x;A=o}y=d[A+z>>0]|0;c[g>>2]=y;c[g+4>>2]=y;c[g+8>>2]=y;Ob(b|0,552,g|0)|0;if((q|0)<(c[l>>2]|0))q=q+1|0;else{h=1;break}}i=f;return h|0}else if(e<<24>>24==54){e=c[m>>2]|0;q=c[l>>2]|0;if((e|0)>(q|0)){h=1;i=f;return h|0}z=a+16|0;A=c[j>>2]|0;w=q;q=e;while(1){e=c[a>>2]|0;if((e|0)>(A|0)){B=w;C=A}else{y=e;while(1){e=d[(c[(c[z>>2]|0)+(q*12|0)>>2]|0)+y>>0]|0;c[g>>2]=e;c[g+4>>2]=e;c[g+8>>2]=e;Ob(b|0,568,g|0)|0;D=c[j>>2]|0;if((y|0)<(D|0))y=y+1|0;else break}B=c[l>>2]|0;C=D}if((q|0)>=(B|0)){h=1;break}A=C;w=B;q=q+1|0}i=f;return h|0}else{h=1;i=f;return h|0}}else{q=c[m>>2]|0;if((q|0)>(c[l>>2]|0)){h=1;i=f;return h|0}B=a+16|0;w=a+29|0;C=q;while(1){q=c[a>>2]|0;A=c[j>>2]|0;if((q|0)<=(A|0)){D=A;A=q;g=0;z=q;q=-128;while(1){y=((d[(c[(c[B>>2]|0)+((C-(c[m>>2]|0)|0)*12|0)>>2]|0)+(z-A)>>0]|0)<=(d[w>>0]|0)?q:0)|g;o=(q&255)>>>1;if(!(o<<24>>24)){ib(y&255|0,b|0)|0;E=c[j>>2]|0;F=0;G=-128}else{E=D;F=y;G=o}if((z|0)>=(E|0))break;D=E;A=c[a>>2]|0;g=F;z=z+1|0;q=G}if(G<<24>>24!=-128)ib(F&255|0,b|0)|0}if((C|0)>=(c[l>>2]|0)){h=1;break}C=C+1|0}i=f;return h|0}return 0}function $c(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;i=i+32|0;e=d;f=c[a+8>>2]|0;g=a+4|0;h=c[g>>2]|0;j=h;if(((f-j|0)/12|0)>>>0>=b>>>0){k=b;l=h;do{if(!l)m=0;else{c[l>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;m=c[g>>2]|0}l=m+12|0;c[g>>2]=l;k=k+ -1|0}while((k|0)!=0);i=d;return}k=c[a>>2]|0;l=((j-k|0)/12|0)+b|0;if(l>>>0>357913941)yp(a);j=k;k=(f-j|0)/12|0;if(k>>>0<178956970){f=k<<1;n=f>>>0>>0?l:f}else n=357913941;f=((c[g>>2]|0)-j|0)/12|0;j=e+12|0;c[j>>2]=0;c[e+16>>2]=a+8;if(!n)o=0;else o=it(n*12|0)|0;c[e>>2]=o;g=o+(f*12|0)|0;f=e+8|0;c[f>>2]=g;l=e+4|0;c[l>>2]=g;c[j>>2]=o+(n*12|0);n=b;b=g;do{if(!b)p=0;else{c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;p=c[f>>2]|0}b=p+12|0;c[f>>2]=b;n=n+ -1|0}while((n|0)!=0);ad(a,e);a=c[l>>2]|0;l=c[f>>2]|0;if((l|0)!=(a|0)){n=l;while(1){l=n+ -12|0;c[f>>2]=l;b=c[l>>2]|0;if(!b)q=l;else{p=n+ -8|0;if((c[p>>2]|0)==(b|0))r=l;else{c[p>>2]=b;r=c[f>>2]|0}kt(b);q=r}if((q|0)==(a|0))break;else n=q}}q=c[e>>2]|0;if(!q){i=d;return}kt(q);i=d;return}function ad(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;e=i;f=c[b>>2]|0;g=b+4|0;h=c[g>>2]|0;j=d+4|0;k=c[j>>2]|0;do if((h|0)!=(f|0)){l=h;m=k;while(1){n=m+ -12|0;c[n>>2]=0;o=m+ -8|0;c[o>>2]=0;p=m+ -4|0;c[p>>2]=0;q=l+ -8|0;l=l+ -12|0;r=c[q>>2]|0;s=c[l>>2]|0;t=r-s|0;if((r|0)!=(s|0)){if((t|0)<0){u=4;break}s=it(t)|0;c[o>>2]=s;c[n>>2]=s;c[p>>2]=s+t;t=c[l>>2]|0;p=c[q>>2]|0;if((t|0)!=(p|0)){q=t;t=s;do{if(!t)v=0;else{a[t>>0]=a[q>>0]|0;v=c[o>>2]|0}t=v+1|0;c[o>>2]=t;q=q+1|0}while((q|0)!=(p|0))}}m=(c[j>>2]|0)+ -12|0;c[j>>2]=m;if((l|0)==(f|0)){u=10;break}}if((u|0)==4)yp(n);else if((u|0)==10){w=m;x=c[b>>2]|0;break}}else{w=k;x=f}while(0);c[b>>2]=w;c[j>>2]=x;x=d+8|0;w=c[g>>2]|0;c[g>>2]=c[x>>2];c[x>>2]=w;w=b+8|0;b=d+12|0;x=c[w>>2]|0;c[w>>2]=c[b>>2];c[b>>2]=x;c[d>>2]=c[j>>2];i=e;return}function bd(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;e=i;f=b+4|0;g=c[b>>2]|0;h=(c[f>>2]|0)-g+1|0;if((h|0)<0)yp(b);j=b+8|0;k=g;l=(c[j>>2]|0)-k|0;if(l>>>0<1073741823){m=l<<1;l=m>>>0>>0?h:m;m=c[f>>2]|0;h=m-k|0;if(!l){n=0;o=0;p=h;q=m}else{r=l;s=m;t=h;u=6}}else{h=c[f>>2]|0;r=2147483647;s=h;t=h-k|0;u=6}if((u|0)==6){n=r;o=it(r)|0;p=t;q=s}s=o+p|0;if(s)a[s>>0]=a[d>>0]|0;d=q-k|0;k=o+(p-d)|0;Tu(k|0,g|0,d|0)|0;c[b>>2]=k;c[f>>2]=o+(p+1);c[j>>2]=o+n;if(!g){i=e;return}kt(g);i=e;return}function cd(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0;g=i;i=i+16|0;h=g+3|0;j=g+2|0;k=g+1|0;l=g;wd(b,0,0,(c[e+8>>2]|0)+ -1|0,(c[e+4>>2]|0)+ -1|0);m=b+16|0;c[m>>2]=0;n=b+20|0;c[n>>2]=0;c[b+24>>2]=0;o=b+12|0;p=b+4|0;q=c[p>>2]|0;r=(c[o>>2]|0)+1|0;if((r|0)==(q|0))s=0;else{$c(m,r-q|0);s=c[n>>2]|0}q=c[m>>2]|0;r=b+8|0;if((s|0)!=(q|0)){s=q;q=0;do{t=c[b>>2]|0;u=(c[r>>2]|0)+1|0;v=u-t|0;w=s+(q*12|0)+8|0;x=s+(q*12|0)|0;y=c[x>>2]|0;z=y;if(((c[w>>2]|0)-z|0)>>>0>>0){A=s+(q*12|0)+4|0;B=(c[A>>2]|0)-z|0;if((u|0)==(t|0))C=0;else C=it(v)|0;Tu(C|0,y|0,B|0)|0;c[x>>2]=C;c[A>>2]=C+B;c[w>>2]=C+v;if(y)kt(y)}q=q+1|0;s=c[m>>2]|0}while(q>>>0<(((c[n>>2]|0)-s|0)/12|0)>>>0)}s=(c[o>>2]|0)+1-(c[p>>2]|0)|0;p=(c[r>>2]|0)+1-(c[b>>2]|0)|0;r=c[e+12>>2]|0;if(!r){a[b+28>>0]=1;a[b+29>>0]=0;o=(s|0)>0;if(f){if(!o){i=g;return}if((p|0)>0){D=0;E=0}else{n=0;do n=n+1|0;while((n|0)<(s|0));i=g;return}while(1){n=1;q=D;while(1){C=c[m>>2]|0;y=(a[(c[e>>2]|0)+q>>0]|0)!=0&1;a[j>>0]=y;v=C+(E*12|0)+4|0;w=c[v>>2]|0;if((w|0)==(c[C+(E*12|0)+8>>2]|0))bd(C+(E*12|0)|0,j);else{if(!w)F=0;else{a[w>>0]=y;F=c[v>>2]|0}c[v>>2]=F+1}G=q+1|0;if((n|0)>=(p|0))break;n=n+1|0;q=G}q=E+1|0;if((q|0)<(s|0)){D=G;E=q}else break}i=g;return}else{if(!o){i=g;return}if((p|0)>0){H=0;I=0}else{o=0;do o=o+1|0;while((o|0)<(s|0));i=g;return}while(1){o=1;E=H;while(1){G=c[m>>2]|0;D=(a[(c[e>>2]|0)+E>>0]|0)==0&1;a[h>>0]=D;F=G+(I*12|0)+4|0;j=c[F>>2]|0;if((j|0)==(c[G+(I*12|0)+8>>2]|0))bd(G+(I*12|0)|0,h);else{if(!j)J=0;else{a[j>>0]=D;J=c[F>>2]|0}c[F>>2]=J+1}K=E+1|0;if((o|0)>=(p|0))break;o=o+1|0;E=K}E=I+1|0;if((E|0)<(s|0)){H=K;I=E}else break}i=g;return}}else if((r|0)==1){I=b+28|0;a[I>>0]=-1;a[b+29>>0]=127;K=(s|0)>0;if(f){if(!K){i=g;return}H=(p|0)>0;J=0;h=0;while(1){a:do if(H){E=1;o=J;while(1){F=c[m>>2]|0;D=(d[I>>0]|0)-(d[(c[e>>2]|0)+o>>0]|0)&255;a[k>>0]=D;j=F+(h*12|0)+4|0;G=c[j>>2]|0;if((G|0)==(c[F+(h*12|0)+8>>2]|0))bd(F+(h*12|0)|0,k);else{if(!G)L=0;else{a[G>>0]=D;L=c[j>>2]|0}c[j>>2]=L+1}j=o+1|0;if((E|0)>=(p|0)){M=j;break a}E=E+1|0;o=j}}else M=J;while(0);h=h+1|0;if((h|0)>=(s|0))break;else J=M}i=g;return}else{if(!K){i=g;return}K=(p|0)>0;M=0;J=0;while(1){b:do if(K){h=1;L=M;while(1){k=c[m>>2]|0;I=(c[e>>2]|0)+L|0;H=k+(J*12|0)+4|0;o=c[H>>2]|0;if((o|0)==(c[k+(J*12|0)+8>>2]|0))bd(k+(J*12|0)|0,I);else{if(!o)N=0;else{a[o>>0]=a[I>>0]|0;N=c[H>>2]|0}c[H>>2]=N+1}H=L+1|0;if((h|0)>=(p|0)){O=H;break b}h=h+1|0;L=H}}else O=M;while(0);J=J+1|0;if((J|0)>=(s|0))break;else M=O}i=g;return}}else if((r|0)==2){r=b+28|0;a[r>>0]=-1;a[b+29>>0]=127;if((s|0)<=0){i=g;return}b=(p|0)>0;O=0;M=0;while(1){if(b){J=0;N=O;while(1){K=c[e>>2]|0;L=a[K+N>>0]|0;h=a[K+(N+1)>>0]|0;H=a[K+(N+2)>>0]|0;if(f){K=(h&255)<(H&255)?H:h;P=(d[r>>0]|0)-(((L&255)<(K&255)?K:L)&255)&255}else{K=(H&255)<(h&255)?H:h;P=(K&255)<(L&255)?K:L}a[l>>0]=P;L=c[m>>2]|0;K=L+(M*12|0)+4|0;h=c[K>>2]|0;if((h|0)==(c[L+(M*12|0)+8>>2]|0))bd(L+(M*12|0)|0,l);else{if(!h)Q=0;else{a[h>>0]=P;Q=c[K>>2]|0}c[K>>2]=Q+1}J=J+1|0;K=N+3|0;if((J|0)>=(p|0)){R=K;break}else N=K}}else R=O;M=M+1|0;if((M|0)>=(s|0))break;else O=R}i=g;return}else{i=g;return}}function dd(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;g=i;i=i+16|0;h=g;c[b+0>>2]=c[e+0>>2];c[b+4>>2]=c[e+4>>2];c[b+8>>2]=c[e+8>>2];c[b+12>>2]=c[e+12>>2];j=b+16|0;c[j>>2]=0;k=b+20|0;c[k>>2]=0;c[b+24>>2]=0;a[b+28>>0]=a[e+28>>0]|0;a[b+29>>0]=a[e+29>>0]|0;if((f|0)<2)Eh(736);if(((c[e+8>>2]|0)+1-(c[e>>2]|0)|0)<(f|0))Eh(736);l=c[e+12>>2]|0;m=c[e+4>>2]|0;if((l+1-m|0)<(f|0))Eh(736);n=da(f,f)|0;Bd(b,(l+1-m|0)/(f|0)|0);Cd(b,((c[e+8>>2]|0)+1-(c[e>>2]|0)|0)/(f|0)|0);m=b+12|0;l=b+4|0;o=(c[m>>2]|0)+1-(c[l>>2]|0)|0;p=c[k>>2]|0;q=c[j>>2]|0;r=(p-q|0)/12|0;if(r>>>0>=o>>>0){if(r>>>0>o>>>0?(s=q+(o*12|0)|0,(p|0)!=(s|0)):0){q=p;while(1){p=q+ -12|0;c[k>>2]=p;t=c[p>>2]|0;if(!t)u=p;else{p=q+ -8|0;if((c[p>>2]|0)!=(t|0))c[p>>2]=t;kt(t);u=c[k>>2]|0}if((u|0)==(s|0))break;else q=u}}}else $c(j,o-r|0);if(((c[m>>2]|0)+1-(c[l>>2]|0)|0)<=0){i=g;return}r=b+8|0;o=e+16|0;e=c[r>>2]|0;u=c[b>>2]|0;q=0;while(1){s=da(q,f)|0;k=s+f|0;t=c[j>>2]|0;p=e+1|0;v=p-u|0;w=t+(q*12|0)+8|0;x=t+(q*12|0)|0;y=c[x>>2]|0;z=y;if(((c[w>>2]|0)-z|0)>>>0>>0){A=t+(q*12|0)+4|0;t=(c[A>>2]|0)-z|0;if((p|0)==(u|0))B=0;else B=it(v)|0;Tu(B|0,y|0,t|0)|0;c[x>>2]=B;c[A>>2]=B+t;c[w>>2]=B+v;if(y){kt(y);C=c[r>>2]|0;D=c[b>>2]|0}else{C=e;D=u}}else{C=e;D=u}y=c[j>>2]|0;v=y+(q*12|0)|0;if((C+1-D|0)>0){w=(f|0)>0;t=y+(q*12|0)+4|0;A=y+(q*12|0)+8|0;y=0;do{x=da(y,f)|0;p=x+f|0;if(w){z=c[o>>2]|0;E=s;F=0;while(1){G=c[z+(E*12|0)>>2]|0;H=x;I=F;do{I=(d[G+H>>0]|0)+I|0;H=H+1|0}while((H|0)<(p|0));E=E+1|0;if((E|0)>=(k|0)){J=I;break}else F=I}}else J=0;F=((J|0)/(n|0)|0)&255;a[h>>0]=F;E=c[t>>2]|0;if((E|0)==(c[A>>2]|0))bd(v,h);else{if(!E)K=0;else{a[E>>0]=F;K=c[t>>2]|0}c[t>>2]=K+1}y=y+1|0;F=c[r>>2]|0;E=c[b>>2]|0}while((y|0)<(F+1-E|0));L=E;M=F}else{L=D;M=C}q=q+1|0;if((q|0)>=((c[m>>2]|0)+1-(c[l>>2]|0)|0))break;else{e=M;u=L}}i=g;return}function ed(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0.0,J=0.0,K=0.0,L=0.0,M=0.0,N=0.0,O=0.0,P=0,Q=0,R=0;f=i;i=i+64|0;g=f+44|0;h=f+32|0;j=f+20|0;k=f+8|0;l=f+16|0;m=f;if((e|0)==1){n=0;i=f;return n|0}o=e+1|0;c[g>>2]=0;p=g+4|0;c[p>>2]=0;q=g+8|0;c[q>>2]=0;if(!o)r=0;else{if(o>>>0>1073741823)yp(g);s=it(o<<2)|0;c[p>>2]=s;c[g>>2]=s;t=s+(o<<2)|0;c[q>>2]=t;q=o;u=s;while(1){if(u)c[u>>2]=0;q=q+ -1|0;if(!q)break;else u=u+4|0}c[p>>2]=t;r=s}s=b+4|0;t=c[s>>2]|0;u=b+12|0;q=c[u>>2]|0;a:do if((t|0)<=(q|0)){v=b+8|0;w=q;x=c[v>>2]|0;y=t;while(1){z=c[b>>2]|0;if((z|0)>(x|0)){A=x;B=w}else{C=c[(c[a>>2]|0)+(y*12|0)>>2]|0;D=z;while(1){z=r+((d[C+D>>0]|0)<<2)|0;c[z>>2]=(c[z>>2]|0)+1;E=c[v>>2]|0;if((D|0)<(E|0))D=D+1|0;else break}A=E;B=c[u>>2]|0}if((y|0)>=(B|0))break a;w=B;x=A;y=y+1|0}}while(0);c[h>>2]=0;A=h+4|0;c[A>>2]=0;B=h+8|0;c[B>>2]=0;E=(o|0)!=0;if(E?(a=it(o<<2)|0,t=a+(o<<2)|0,c[h>>2]=a,c[A>>2]=a,c[B>>2]=t,(a|0)!=(t|0)):0){if(a)c[a>>2]=c[r>>2];c[A>>2]=a+4}else vd(h,r);c[j>>2]=0;r=j+4|0;c[r>>2]=0;a=j+8|0;c[a>>2]=0;if(E){E=it(o<<3)|0;t=E+(o<<3)|0;c[j>>2]=E;c[r>>2]=E;c[a>>2]=t;o=k;c[o>>2]=0;c[o+4>>2]=0;if((E|0)==(t|0))F=30;else{if(E){t=E;c[t>>2]=0;c[t+4>>2]=0}c[r>>2]=E+8}}else{E=k;c[E>>2]=0;c[E+4>>2]=0;F=30}if((F|0)==30)ud(j,k);if((e|0)>=1){k=1;while(1){F=k+ -1|0;E=c[g>>2]|0;t=(c[E+(k<<2)>>2]|0)+(c[(c[h>>2]|0)+(F<<2)>>2]|0)|0;c[l>>2]=t;o=c[A>>2]|0;if((o|0)==(c[B>>2]|0)){vd(h,l);G=c[g>>2]|0}else{if(o)c[o>>2]=t;c[A>>2]=o+4;G=E}E=(c[j>>2]|0)+(F<<3)|0;F=da(c[G+(k<<2)>>2]|0,k)|0;o=Pu(F|0,((F|0)<0)<<31>>31|0,c[E>>2]|0,c[E+4>>2]|0)|0;E=H;F=m;c[F>>2]=o;c[F+4>>2]=E;F=c[r>>2]|0;if((F|0)==(c[a>>2]|0))ud(j,m);else{if(F){t=F;c[t>>2]=o;c[t+4>>2]=E}c[r>>2]=F+8}if((k|0)>=(e|0))break;k=k+1|0}k=c[j>>2]|0;m=k+(e<<3)|0;I=+((c[m>>2]|0)>>>0)+4294967296.0*+(c[m+4>>2]|0);if((e|0)>0){m=c[h>>2]|0;a=b+8|0;J=0.0;G=0;l=0;while(1){B=c[m+(G<<2)>>2]|0;if(((B|0)>0?(F=da((c[a>>2]|0)+1-(c[b>>2]|0)|0,(c[u>>2]|0)+1-(c[s>>2]|0)|0)|0,(B|0)<(F|0)):0)?(E=k+(G<<3)|0,K=+((c[E>>2]|0)>>>0)+4294967296.0*+(c[E+4>>2]|0),L=+(B|0),M=+(F-B|0),N=K/L-(I-K)/M,K=M*L*N*N,K>J):0){O=K;P=G}else{O=J;P=l}G=G+1|0;if((G|0)==(e|0)){Q=k;R=P;break}else{J=O;l=P}}}else{Q=k;R=0}}else{Q=c[j>>2]|0;R=0}if(Q){j=c[r>>2]|0;if((j|0)!=(Q|0))c[r>>2]=j+(~((j+ -8+(0-Q)|0)>>>3)<<3);kt(Q)}Q=c[h>>2]|0;if(Q){h=c[A>>2]|0;if((h|0)!=(Q|0))c[A>>2]=h+(~((h+ -4+(0-Q)|0)>>>2)<<2);kt(Q)}Q=c[g>>2]|0;if(!Q){n=R;i=f;return n|0}g=c[p>>2]|0;if((g|0)!=(Q|0))c[p>>2]=g+(~((g+ -4+(0-Q)|0)>>>2)<<2);kt(Q);n=R;i=f;return n|0}function fd(b,c){b=b|0;c=c|0;var e=0;e=i;if(c>>>0<256){a[b+29>>0]=(da(d[b+28>>0]|0,c)|0)/255|0;i=e;return}else{a[b+29>>0]=ed(b+16|0,b,d[b+28>>0]|0)|0;i=e;return}}function gd(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=i;g=c[b>>2]|0;h=c[d>>2]|0;d=h;j=(d-g|0)/12|0;k=g+(j*12|0)|0;c[a>>2]=k;a=c[e>>2]|0;if((h|0)==(a|0)){i=f;return}h=g+((((a-d|0)/12|0)+j|0)*12|0)|0;d=b+4|0;b=c[d>>2]|0;if((h|0)==(b|0)){l=k;m=h}else{a=b+ -12+(0-h)|0;e=h;h=k;while(1){if((h|0)!=(e|0))nd(h,c[e>>2]|0,c[e+4>>2]|0);e=e+12|0;if((e|0)==(b|0))break;else h=h+12|0}l=g+((j+1+((a>>>0)/12|0)|0)*12|0)|0;m=c[d>>2]|0}if((m|0)==(l|0)){i=f;return}else n=m;while(1){m=n+ -12|0;c[d>>2]=m;a=c[m>>2]|0;if(!a)o=m;else{m=n+ -8|0;if((c[m>>2]|0)!=(a|0))c[m>>2]=a;kt(a);o=c[d>>2]|0}if((o|0)==(l|0))break;else n=o}i=f;return}function hd(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;e=i;f=b+4|0;g=c[f>>2]|0;h=c[d+4>>2]|0;j=(g|0)<(h|0)?h:g;g=c[b+12>>2]|0;k=d+12|0;l=c[k>>2]|0;m=(l|0)<(g|0)?l:g;if((((j|0)==(h|0)?(nh(d,h)|0)>-1:0)?(oh(d,h)|0)>-1:0)?(n=nh(d,h)|0,(n|0)<=(oh(d,h)|0)):0){o=b+16|0;p=n;while(1){a[(c[(c[o>>2]|0)+((h-(c[f>>2]|0)|0)*12|0)>>2]|0)+(p-(c[b>>2]|0))>>0]=0;if((p|0)<(oh(d,h)|0))p=p+1|0;else break}}if((((m|0)==(c[k>>2]|0)?(nh(d,m)|0)>-1:0)?(oh(d,m)|0)>-1:0)?(k=nh(d,m)|0,(k|0)<=(oh(d,m)|0)):0){p=b+16|0;h=k;while(1){a[(c[(c[p>>2]|0)+((m-(c[f>>2]|0)|0)*12|0)>>2]|0)+(h-(c[b>>2]|0))>>0]=0;if((h|0)<(oh(d,m)|0))h=h+1|0;else break}}h=nh(d,j)|0;p=oh(d,j)|0;if((j|0)>=(m|0)){i=e;return}m=b+8|0;k=b+16|0;o=~l;l=~g;g=~((o|0)>(l|0)?o:l);l=h;h=j;j=p;do{h=h+1|0;p=nh(d,h)|0;o=oh(d,h)|0;n=l;l=(p|0)<0?l:p;p=j;j=(o|0)<0?j:o;a:do if((l|n|0)>-1?(o=c[b>>2]|0,q=(l|0)<(n|0)?l:n,r=(o|0)<(q|0)?q:o,q=c[m>>2]|0,s=(n|0)<(l|0)?l:n,t=(s|0)<(q|0)?s:q,(r|0)<=(t|0)):0){q=o;o=r;while(1){a[(c[(c[k>>2]|0)+((h-(c[f>>2]|0)|0)*12|0)>>2]|0)+(o-q)>>0]=0;if((o|0)>=(t|0))break a;q=c[b>>2]|0;o=o+1|0}}while(0);b:do if((j|p|0)>-1?(n=c[b>>2]|0,o=(j|0)<(p|0)?j:p,q=(n|0)<(o|0)?o:n,o=c[m>>2]|0,t=(p|0)<(j|0)?j:p,r=(t|0)<(o|0)?t:o,(q|0)<=(r|0)):0){o=n;n=q;while(1){a[(c[(c[k>>2]|0)+((h-(c[f>>2]|0)|0)*12|0)>>2]|0)+(n-o)>>0]=0;if((n|0)>=(r|0))break b;o=c[b>>2]|0;n=n+1|0}}while(0)}while((h|0)!=(g|0));i=e;return}function id(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;e=i;f=c[b>>2]|0;g=c[d>>2]|0;h=(f|0)<(g|0)?g:f;j=b+4|0;k=c[j>>2]|0;l=d+4|0;m=c[l>>2]|0;n=(k|0)<(m|0)?m:k;o=c[b+8>>2]|0;p=d+8|0;q=c[p>>2]|0;r=(q|0)<(o|0)?q:o;o=c[b+12>>2]|0;q=d+12|0;d=c[q>>2]|0;s=(d|0)<(o|0)?d:o;if((h|0)!=(g|0)|(n|0)>(s|0))t=m;else{m=b+16|0;o=k;k=f;f=n;while(1){a[(c[(c[m>>2]|0)+((f-o|0)*12|0)>>2]|0)+(g-k)>>0]=0;if((f|0)>=(s|0))break;o=c[j>>2]|0;k=c[b>>2]|0;f=f+1|0}t=c[l>>2]|0}a:do if(!((n|0)!=(t|0)|(h|0)>(r|0))){l=b+16|0;f=h;while(1){a[(c[(c[l>>2]|0)+((n-(c[j>>2]|0)|0)*12|0)>>2]|0)+(f-(c[b>>2]|0))>>0]=0;if((f|0)>=(r|0))break a;f=f+1|0}}while(0);b:do if(!((n|0)>(s|0)?1:(r|0)!=(c[p>>2]|0))){t=b+16|0;f=n;while(1){a[(c[(c[t>>2]|0)+((f-(c[j>>2]|0)|0)*12|0)>>2]|0)+(r-(c[b>>2]|0))>>0]=0;if((f|0)>=(s|0))break b;f=f+1|0}}while(0);if((h|0)>(r|0)?1:(s|0)!=(c[q>>2]|0)){i=e;return}q=b+16|0;n=h;while(1){a[(c[(c[q>>2]|0)+((s-(c[j>>2]|0)|0)*12|0)>>2]|0)+(n-(c[b>>2]|0))>>0]=0;if((n|0)>=(r|0))break;n=n+1|0}i=e;return}function jd(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;e=i;f=c[b>>2]|0;g=c[d>>2]|0;h=d+4|0;j=c[h>>2]|0;if((g|0)==(j|0)){k=c[b+8>>2]|0;l=(f|0)<0?0:f;m=0;n=(k|0)>0?0:k}else{k=c[g>>2]|0;o=c[b+8>>2]|0;p=c[j+ -12>>2]|0;l=(f|0)<(k|0)?k:f;m=c[g>>2]|0;n=(p|0)<(o|0)?p:o}if((l|0)==(m|0)){m=Eg(d,l)|0;if((m|0)<=(Dg(d,l)|0)){o=b+4|0;p=b+12|0;f=b+16|0;k=m;while(1){m=c[o>>2]|0;if((k|0)>=(m|0)?(k|0)<=(c[p>>2]|0):0)a[(c[(c[f>>2]|0)+((k-m|0)*12|0)>>2]|0)+(l-(c[b>>2]|0))>>0]=0;if((k|0)<(Dg(d,l)|0))k=k+1|0;else break}}q=c[d>>2]|0;r=c[h>>2]|0}else{q=g;r=j}if((q|0)==(r|0))s=0;else s=c[r+ -12>>2]|0;if((n|0)==(s|0)?(s=Eg(d,n)|0,(s|0)<=(Dg(d,n)|0)):0){r=b+4|0;q=b+12|0;j=b+16|0;g=s;while(1){s=c[r>>2]|0;if((g|0)>=(s|0)?(g|0)<=(c[q>>2]|0):0)a[(c[(c[j>>2]|0)+((g-s|0)*12|0)>>2]|0)+(n-(c[b>>2]|0))>>0]=0;if((g|0)<(Dg(d,n)|0))g=g+1|0;else break}}if((l|0)>(n|0)){i=e;return}g=b+4|0;j=b+12|0;q=b+16|0;r=l;while(1){l=Eg(d,r)|0;s=c[g>>2]|0;if((l|0)>=(s|0)?(l|0)<=(c[j>>2]|0):0)a[(c[(c[q>>2]|0)+((l-s|0)*12|0)>>2]|0)+(r-(c[b>>2]|0))>>0]=0;s=Dg(d,r)|0;l=c[g>>2]|0;if((s|0)>=(l|0)?(s|0)<=(c[j>>2]|0):0)a[(c[(c[q>>2]|0)+((s-l|0)*12|0)>>2]|0)+(r-(c[b>>2]|0))>>0]=0;if((r|0)<(n|0))r=r+1|0;else break}i=e;return}function kd(e,f){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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0;g=i;i=i+80|0;h=g+56|0;j=g+44|0;k=g+69|0;l=g+32|0;m=g+68|0;n=g;if((f|0)<-1){dd(n,e,0-f|0);c[e+0>>2]=c[n+0>>2];c[e+4>>2]=c[n+4>>2];c[e+8>>2]=c[n+8>>2];c[e+12>>2]=c[n+12>>2];if((n|0)==(e|0))o=n+16|0;else{p=n+16|0;td(e+16|0,c[p>>2]|0,c[n+20>>2]|0);o=p}p=e+28|0;q=b[n+28>>1]|0;a[p>>0]=q;a[p+1>>0]=q>>8;q=c[o>>2]|0;if(!q){r=1;i=g;return r|0}p=n+20|0;n=c[p>>2]|0;if((n|0)==(q|0))s=q;else{t=n;while(1){n=t+ -12|0;c[p>>2]=n;u=c[n>>2]|0;if(!u)v=n;else{n=t+ -8|0;if((c[n>>2]|0)!=(u|0))c[n>>2]=u;kt(u);v=c[p>>2]|0}if((v|0)==(q|0))break;else t=v}s=c[o>>2]|0}kt(s);r=1;i=g;return r|0}if((f|0)<=1){r=0;i=g;return r|0}if((2147483647/(f|0)|0|0)<(da((c[e+12>>2]|0)+1-(c[e+4>>2]|0)|0,(c[e+8>>2]|0)+1-(c[e>>2]|0)|0)|0)){s=Na(4)|0;c[s>>2]=784;Nb(s|0,104,0)}s=e+28|0;do if((a[s>>0]|0)==1){o=(f|0)!=0;if(o&(f&1|0)==0){v=e+20|0;t=e+16|0;q=c[t>>2]|0;p=(c[v>>2]|0)-q|0;u=(p|0)/12|0;n=(c[q+4>>2]|0)-(c[q>>2]|0)|0;pd(h,u<<1);q=h+4|0;w=c[q>>2]|0;x=c[h>>2]|0;if((w|0)==(x|0)){y=w;z=w}else{w=n<<1;A=x;x=0;while(1){B=A+(x*12|0)|0;a[j>>0]=1;C=A+(x*12|0)+4|0;D=c[C>>2]|0;E=c[B>>2]|0;F=D-E|0;if(F>>>0>=w>>>0){if(F>>>0>w>>>0?(G=E+w|0,(D|0)!=(G|0)):0)c[C>>2]=G}else sd(B,w-F|0,j);x=x+1|0;F=c[q>>2]|0;B=c[h>>2]|0;if(x>>>0>=((F-B|0)/12|0)>>>0){y=B;z=F;break}else A=B}}A=c[t>>2]|0;if((p|0)>0){x=(n|0)>0;w=n+ -1|0;B=u+ -1|0;F=y;G=A;C=0;while(1){D=C<<1;if(x){E=G+(C*12|0)|0;H=(C|0)>0;I=C+ -1|0;J=(C|0)<(B|0);K=C+1|0;L=H^1;M=J^1;N=F+((D|1)*12|0)|0;O=F+(D*12|0)|0;D=0;do{P=c[E>>2]|0;do if(!(a[P+D>>0]|0)){Q=(D|0)>0;if(Q)R=(a[P+(D+ -1)>>0]|0)==0;else R=0;if(H)S=(a[(c[(c[t>>2]|0)+(I*12|0)>>2]|0)+D>>0]|0)==0;else S=0;T=(D|0)<(w|0);if(T)U=(a[P+(D+1)>>0]|0)==0;else U=0;if(J)V=(a[(c[(c[t>>2]|0)+(K*12|0)>>2]|0)+D>>0]|0)==0;else V=0;W=Q^1;if(L|W)X=0;else X=(a[(c[(c[t>>2]|0)+(I*12|0)>>2]|0)+(D+ -1)>>0]|0)==0;Q=T^1;if(L|Q)Y=0;else Y=(a[(c[(c[t>>2]|0)+(I*12|0)>>2]|0)+(D+1)>>0]|0)==0;if(M|W)Z=0;else Z=(a[(c[(c[t>>2]|0)+(K*12|0)>>2]|0)+(D+ -1)>>0]|0)==0;if(M|Q)_=0;else _=(a[(c[(c[t>>2]|0)+(K*12|0)>>2]|0)+(D+1)>>0]|0)==0;Q=Y|Z;if(!(Q&((R|S|X)^1)))a[(c[O>>2]|0)+(D<<1)>>0]=0;W=X|_;if(!(W&((U|S|Y)^1)))a[(c[O>>2]|0)+(D<<1|1)>>0]=0;if(!(W&((R|V|Z)^1)))a[(c[N>>2]|0)+(D<<1)>>0]=0;if(Q&((U|V|_)^1))break;a[(c[N>>2]|0)+(D<<1|1)>>0]=0}while(0);D=D+1|0}while((D|0)!=(n|0));$=K;aa=c[h>>2]|0;ba=c[t>>2]|0}else{$=C+1|0;aa=F;ba=G}if(($|0)<(u|0)){F=aa;G=ba;C=$}else break}ca=ba;ea=aa;fa=c[q>>2]|0}else{ca=A;ea=y;fa=z}c[t>>2]=ea;c[h>>2]=ca;C=c[v>>2]|0;c[v>>2]=fa;c[q>>2]=C;G=e+24|0;F=h+8|0;u=c[G>>2]|0;c[G>>2]=c[F>>2];c[F>>2]=u;if(ca){if((C|0)==(ca|0))ga=ca;else{u=C;while(1){C=u+ -12|0;c[q>>2]=C;F=c[C>>2]|0;if(!F)ha=C;else{C=u+ -8|0;if((c[C>>2]|0)!=(F|0))c[C>>2]=F;kt(F);ha=c[q>>2]|0}if((ha|0)==(ca|0))break;else u=ha}ga=c[h>>2]|0}kt(ga)}ia=(f|0)/2|0;break}if(o&((f|0)%3|0|0)==0){u=e+20|0;q=e+16|0;v=c[q>>2]|0;t=(c[u>>2]|0)-v|0;A=(t|0)/12|0;F=(c[v+4>>2]|0)-(c[v>>2]|0)|0;pd(h,A*3|0);v=h+4|0;C=c[v>>2]|0;G=c[h>>2]|0;if((C|0)==(G|0)){ja=C;ka=C}else{C=F*3|0;n=G;G=0;while(1){w=n+(G*12|0)|0;a[j>>0]=1;B=n+(G*12|0)+4|0;x=c[B>>2]|0;p=c[w>>2]|0;D=x-p|0;if(D>>>0>=C>>>0){if(D>>>0>C>>>0?(N=p+C|0,(x|0)!=(N|0)):0)c[B>>2]=N}else sd(w,C-D|0,j);G=G+1|0;D=c[v>>2]|0;w=c[h>>2]|0;if(G>>>0>=((D-w|0)/12|0)>>>0){ja=w;ka=D;break}else n=w}}if((t|0)>0){n=(F|0)>0;G=F+ -1|0;C=A+ -1|0;o=ja;w=0;while(1){D=w*3|0;if(n){N=(c[q>>2]|0)+(w*12|0)|0;B=(w|0)>0;x=w+ -1|0;p=(w|0)<(C|0);O=w+1|0;M=B^1;I=p^1;L=o+(D*12|0)|0;J=o+((D+1|0)*12|0)|0;H=o+((D+2|0)*12|0)|0;D=0;do{E=D*3|0;P=(D|0)>0;if(P)la=(a[(c[N>>2]|0)+(D+ -1)>>0]|0)==0;else la=0;if(B)ma=(a[(c[(c[q>>2]|0)+(x*12|0)>>2]|0)+D>>0]|0)==0;else ma=0;Q=(D|0)<(G|0);if(Q)na=(a[(c[N>>2]|0)+(D+1)>>0]|0)==0;else na=0;if(p)oa=(a[(c[(c[q>>2]|0)+(O*12|0)>>2]|0)+D>>0]|0)==0;else oa=0;W=P^1;if(M|W)pa=0;else pa=(a[(c[(c[q>>2]|0)+(x*12|0)>>2]|0)+(D+ -1)>>0]|0)==0;P=Q^1;if(M|P)qa=0;else qa=(a[(c[(c[q>>2]|0)+(x*12|0)>>2]|0)+(D+1)>>0]|0)==0;if(I|W)ra=0;else ra=(a[(c[(c[q>>2]|0)+(O*12|0)>>2]|0)+(D+ -1)>>0]|0)==0;if(I|P)sa=0;else sa=(a[(c[(c[q>>2]|0)+(O*12|0)>>2]|0)+(D+1)>>0]|0)==0;do if(!(a[(c[N>>2]|0)+D>>0]|0)){P=qa|ra;if(!(P&((la|ma|pa)^1)))a[(c[L>>2]|0)+E>>0]=0;W=E+1|0;a[(c[L>>2]|0)+W>>0]=0;Q=pa|sa;T=E+2|0;if(!(Q&((na|ma|qa)^1)))a[(c[L>>2]|0)+T>>0]=0;a[(c[J>>2]|0)+T>>0]=0;a[(c[J>>2]|0)+W>>0]=0;a[(c[J>>2]|0)+E>>0]=0;if(!(Q&((la|oa|ra)^1)))a[(c[H>>2]|0)+E>>0]=0;a[(c[H>>2]|0)+W>>0]=0;if(P&((na|oa|sa)^1))break;a[(c[H>>2]|0)+T>>0]=0}else{T=la^1;P=ma^1;W=pa^1;if(!(T|P|W|qa&ra))a[(c[L>>2]|0)+E>>0]=0;Q=qa^1;do if(!(na^1|P|Q)){if(!(W|sa^1))break;a[(c[L>>2]|0)+(E+2)>>0]=0}while(0);P=ra^1;do if(!(T|oa^1|P)){if(!(W|sa^1))break;a[(c[H>>2]|0)+E>>0]=0}while(0);if(!(sa&(oa&na)&(Q|P)))break;a[(c[H>>2]|0)+(E+2)>>0]=0}while(0);D=D+1|0}while((D|0)!=(F|0));ta=O;ua=c[h>>2]|0}else{ta=w+1|0;ua=o}if((ta|0)<(A|0)){o=ua;w=ta}else break}va=ua;wa=c[v>>2]|0}else{va=ja;wa=ka}w=c[q>>2]|0;c[q>>2]=va;c[h>>2]=w;o=c[u>>2]|0;c[u>>2]=wa;c[v>>2]=o;A=e+24|0;F=h+8|0;G=c[A>>2]|0;c[A>>2]=c[F>>2];c[F>>2]=G;if(w){if((o|0)==(w|0))xa=w;else{G=o;while(1){o=G+ -12|0;c[v>>2]=o;F=c[o>>2]|0;if(!F)ya=o;else{o=G+ -8|0;if((c[o>>2]|0)!=(F|0))c[o>>2]=F;kt(F);ya=c[v>>2]|0}if((ya|0)==(w|0))break;else G=ya}xa=c[h>>2]|0}kt(xa)}ia=(f|0)/3|0}else ia=f}else ia=f;while(0);do if((ia|0)>1){f=e+20|0;xa=e+16|0;ya=c[xa>>2]|0;wa=(c[f>>2]|0)-ya|0;va=(wa|0)/12|0;ka=(c[ya+4>>2]|0)-(c[ya>>2]|0)|0;c[h>>2]=0;ya=h+4|0;c[ya>>2]=0;ja=h+8|0;c[ja>>2]=0;qd(h,da(va,ia)|0);ua=c[xa>>2]|0;a:do if((wa|0)>0){ta=j+4|0;na=j+8|0;oa=(ka|0)>0;sa=(ia|0)>0;ra=ua;qa=0;b:while(1){c[j>>2]=0;c[ta>>2]=0;c[na>>2]=0;pa=c[ya>>2]|0;if((pa|0)==(c[ja>>2]|0)){rd(h,j);ma=c[j>>2]|0;if(ma){if((c[ta>>2]|0)!=(ma|0))c[ta>>2]=ma;kt(ma)}}else{if(!pa)za=0;else{c[pa>>2]=0;c[pa+4>>2]=0;c[pa+8>>2]=0;za=c[ya>>2]|0}c[ya>>2]=za+12}if(oa){pa=ra+(qa*12|0)|0;ma=0;while(1){a[k>>0]=a[(c[pa>>2]|0)+ma>>0]|0;c:do if(sa){la=1;while(1){ga=c[ya>>2]|0;ha=ga+ -8|0;ca=c[ha>>2]|0;if((ca|0)==(c[ga+ -4>>2]|0))bd(ga+ -12|0,k);else{if(!ca)Aa=0;else{a[ca>>0]=a[k>>0]|0;Aa=c[ha>>2]|0}c[ha>>2]=Aa+1}if((la|0)>=(ia|0))break c;la=la+1|0}}while(0);ma=ma+1|0;if((ma|0)>=(ka|0)){Ba=2;break}}}else Ba=2;while(1){Ca=c[ya>>2]|0;ma=Ca+ -12|0;if((Ca|0)==(c[ja>>2]|0))rd(h,ma);else{if((Ca|0)!=0?(c[Ca>>2]=0,pa=Ca+4|0,c[pa>>2]=0,P=Ca+8|0,c[P>>2]=0,Q=Ca+ -8|0,la=c[Q>>2]|0,ha=c[ma>>2]|0,ca=la-ha|0,(la|0)!=(ha|0)):0){if((ca|0)<0)break b;ha=it(ca)|0;c[pa>>2]=ha;c[Ca>>2]=ha;c[P>>2]=ha+ca;ca=c[ma>>2]|0;ma=c[Q>>2]|0;if((ca|0)!=(ma|0)){Q=ca;ca=ha;do{if(!ca)Da=0;else{a[ca>>0]=a[Q>>0]|0;Da=c[pa>>2]|0}ca=Da+1|0;c[pa>>2]=ca;Q=Q+1|0}while((Q|0)!=(ma|0))}}c[ya>>2]=(c[ya>>2]|0)+12}if((Ba|0)>=(ia|0))break;Ba=Ba+1|0}qa=qa+1|0;ma=c[xa>>2]|0;if((qa|0)>=(va|0)){Ea=ma;break a}else ra=ma}yp(Ca)}else Ea=ua;while(0);c[xa>>2]=c[h>>2];c[h>>2]=Ea;ua=c[f>>2]|0;c[f>>2]=c[ya>>2];c[ya>>2]=ua;va=e+24|0;ka=c[va>>2]|0;c[va>>2]=c[ja>>2];c[ja>>2]=ka;if(Ea){if((ua|0)==(Ea|0))Fa=Ea;else{ka=ua;while(1){ua=ka+ -12|0;c[ya>>2]=ua;wa=c[ua>>2]|0;if(!wa)Ga=ua;else{ua=ka+ -8|0;if((c[ua>>2]|0)!=(wa|0))c[ua>>2]=wa;kt(wa);Ga=c[ya>>2]|0}if((Ga|0)==(Ea|0))break;else ka=Ga}Fa=c[h>>2]|0}kt(Fa)}if((d[s>>0]|0)>1){if((ia|0)<4){ka=c[xa>>2]|0;ya=(c[f>>2]|0)-ka|0;ja=(ya|0)/12|0;wa=c[ka+4>>2]|0;ua=c[ka>>2]|0;ka=wa-ua|0;if((ya|0)<36|(ka|0)<3){Ha=f;break}pd(h,ja);ya=c[h>>2]|0;ra=c[xa>>2]|0;if((ya|0)==(ra|0))Ia=ya;else{nd(ya,c[ra>>2]|0,c[ra+4>>2]|0);Ia=c[h>>2]|0}ra=ja+ -1|0;ja=(ra|0)>1;if(ja){ya=(wa|0)==(ua|0);ua=Ia;wa=1;while(1){qa=ua+(wa*12|0)+8|0;sa=ua+(wa*12|0)|0;oa=c[sa>>2]|0;ta=oa;if(((c[qa>>2]|0)-ta|0)>>>0>>0){na=ua+(wa*12|0)+4|0;O=(c[na>>2]|0)-ta|0;if(ya)Ja=0;else Ja=it(ka)|0;Tu(Ja|0,oa|0,O|0)|0;c[sa>>2]=Ja;c[na>>2]=Ja+O;c[qa>>2]=Ja+ka;if(oa)kt(oa)}wa=wa+1|0;oa=c[h>>2]|0;if((wa|0)>=(ra|0)){Ka=oa;break}else ua=oa}}else Ka=Ia;ua=c[xa>>2]|0;if((Ka|0)!=(ua|0))nd(Ka+(ra*12|0)|0,c[ua+(ra*12|0)>>2]|0,c[ua+(ra*12|0)+4>>2]|0);if(ja){ua=(ia|0)<3;wa=ka+ -1|0;ya=(wa|0)>1;oa=1;do{qa=c[xa>>2]|0;O=qa+((oa+ -1|0)*12|0)|0;na=oa;oa=oa+1|0;sa=qa+(oa*12|0)|0;ta=c[h>>2]|0;ma=ta+(na*12|0)|0;Q=qa+(na*12|0)|0;qa=c[Q>>2]|0;ca=ta+(na*12|0)+4|0;pa=c[ca>>2]|0;ha=ta+(na*12|0)+8|0;if((pa|0)==(c[ha>>2]|0))bd(ma,qa);else{if(!pa)La=0;else{a[pa>>0]=a[qa>>0]|0;La=c[ca>>2]|0}c[ca>>2]=La+1}do if(ua){if(!ya)break;qa=1;do{pa=qa+ -1|0;na=c[O>>2]|0;ta=qa;qa=qa+1|0;P=c[Q>>2]|0;la=c[sa>>2]|0;ga=(((d[na+pa>>0]|0)+5+(d[na+ta>>0]|0)+(d[na+qa>>0]|0)+(d[P+pa>>0]|0)+(d[P+ta>>0]<<1)+(d[P+qa>>0]|0)+(d[la+pa>>0]|0)+(d[la+ta>>0]|0)+(d[la+qa>>0]|0)|0)/10|0)&255;a[j>>0]=ga;la=c[ca>>2]|0;if((la|0)==(c[ha>>2]|0))bd(ma,j);else{if(!la)Ma=0;else{a[la>>0]=ga;Ma=c[ca>>2]|0}c[ca>>2]=Ma+1}}while((qa|0)<(wa|0))}else{if(!ya)break;qa=1;do{ga=qa+ -1|0;la=c[O>>2]|0;ta=qa;qa=qa+1|0;pa=c[Q>>2]|0;P=c[sa>>2]|0;na=((((d[la+ta>>0]|0)+(d[la+ga>>0]|0)+(d[la+qa>>0]|0)+(d[pa+ga>>0]|0)+(d[pa+ta>>0]|0)+(d[pa+qa>>0]|0)+(d[P+ga>>0]|0)+(d[P+ta>>0]|0)+(d[P+qa>>0]|0)<<1)+9|0)/18|0)&255;a[k>>0]=na;P=c[ca>>2]|0;if((P|0)==(c[ha>>2]|0))bd(ma,k);else{if(!P)Oa=0;else{a[P>>0]=na;Oa=c[ca>>2]|0}c[ca>>2]=Oa+1}}while((qa|0)<(wa|0))}while(0);sa=(c[Q>>2]|0)+wa|0;O=c[ca>>2]|0;if((O|0)==(c[ha>>2]|0))bd(ma,sa);else{if(!O)Pa=0;else{a[O>>0]=a[sa>>0]|0;Pa=c[ca>>2]|0}c[ca>>2]=Pa+1}}while((oa|0)<(ra|0))}ra=c[xa>>2]|0;c[xa>>2]=c[h>>2];c[h>>2]=ra;oa=h+4|0;wa=c[f>>2]|0;c[f>>2]=c[oa>>2];c[oa>>2]=wa;ya=h+8|0;ua=c[va>>2]|0;c[va>>2]=c[ya>>2];c[ya>>2]=ua;if(!ra){Ha=f;break}if((wa|0)==(ra|0))Qa=ra;else{ua=wa;while(1){wa=ua+ -12|0;c[oa>>2]=wa;ya=c[wa>>2]|0;if(!ya)Ra=wa;else{wa=ua+ -8|0;if((c[wa>>2]|0)!=(ya|0))c[wa>>2]=ya;kt(ya);Ra=c[oa>>2]|0}if((Ra|0)==(ra|0))break;else ua=Ra}Qa=c[h>>2]|0}kt(Qa);Ha=f;break}ua=(ia|0)/2|0;ra=ua<<1|1;oa=da(ra,ra)|0;ya=c[xa>>2]|0;wa=((c[f>>2]|0)-ya|0)/12|0;ka=c[ya+4>>2]|0;ja=c[ya>>2]|0;ya=ka-ja|0;if(!((wa|0)<(ra|0)|(ya|0)<(ra|0))){pd(l,wa);ra=0;do{sa=c[l>>2]|0;O=c[xa>>2]|0;if((sa|0)!=(O|0))nd(sa+(ra*12|0)|0,c[O+(ra*12|0)>>2]|0,c[O+(ra*12|0)+4>>2]|0);ra=ra+1|0}while((ra|0)<(ua|0));ra=wa-ua|0;O=(ua|0)<(ra|0);if(O){sa=(ka|0)==(ja|0);qa=ua;do{na=c[l>>2]|0;P=na+(qa*12|0)+8|0;ta=na+(qa*12|0)|0;ga=c[ta>>2]|0;pa=ga;if(((c[P>>2]|0)-pa|0)>>>0>>0){la=na+(qa*12|0)+4|0;na=(c[la>>2]|0)-pa|0;if(sa)Sa=0;else Sa=it(ya)|0;Tu(Sa|0,ga|0,na|0)|0;c[ta>>2]=Sa;c[la>>2]=Sa+na;c[P>>2]=Sa+ya;if(ga)kt(ga)}qa=qa+1|0}while((qa|0)<(ra|0));Ta=ra}else Ta=ra;do{qa=c[l>>2]|0;sa=c[xa>>2]|0;if((qa|0)!=(sa|0))nd(qa+(Ta*12|0)|0,c[sa+(Ta*12|0)>>2]|0,c[sa+(Ta*12|0)+4>>2]|0);Ta=Ta+1|0}while((Ta|0)<(wa|0));if(O){wa=ya-ua|0;sa=(ua|0)<(wa|0);qa=0-ua|0;ja=(ua|0)>(qa|0);ka=oa<<1;ga=ua;do{P=(c[xa>>2]|0)+(ga*12|0)|0;na=c[l>>2]|0;la=na+(ga*12|0)|0;ta=na+(ga*12|0)+4|0;pa=na+(ga*12|0)+8|0;fa=0;do{ea=(c[P>>2]|0)+fa|0;z=c[ta>>2]|0;if((z|0)==(c[pa>>2]|0))bd(la,ea);else{if(!z)Ua=0;else{a[z>>0]=a[ea>>0]|0;Ua=c[ta>>2]|0}c[ta>>2]=Ua+1}fa=fa+1|0}while((fa|0)<(ua|0));if(sa){fa=na+(ga*12|0)+4|0;ta=na+(ga*12|0)+8|0;pa=ua;do{if(ja){ca=c[xa>>2]|0;ma=qa;ha=0;while(1){Q=c[ca+((ma+ga|0)*12|0)>>2]|0;ea=qa;Va=ha;do{Va=(d[Q+(ea+pa)>>0]|0)+Va|0;ea=ea+1|0}while((ea|0)!=(ua|0));ma=ma+1|0;if((ma|0)==(ua|0))break;else ha=Va}Wa=Va<<1}else Wa=0;ha=((Wa+oa|0)/(ka|0)|0)&255;a[m>>0]=ha;ma=c[fa>>2]|0;if((ma|0)==(c[ta>>2]|0))bd(la,m);else{if(!ma)Xa=0;else{a[ma>>0]=ha;Xa=c[fa>>2]|0}c[fa>>2]=Xa+1}pa=pa+1|0}while((pa|0)<(wa|0))}pa=na+(ga*12|0)+4|0;fa=na+(ga*12|0)+8|0;ta=wa;do{ha=(c[P>>2]|0)+ta|0;ma=c[pa>>2]|0;if((ma|0)==(c[fa>>2]|0))bd(la,ha);else{if(!ma)Ya=0;else{a[ma>>0]=a[ha>>0]|0;Ya=c[pa>>2]|0}c[pa>>2]=Ya+1}ta=ta+1|0}while((ta|0)<(ya|0));ga=ga+1|0}while((ga|0)<(ra|0))}ra=c[xa>>2]|0;c[xa>>2]=c[l>>2];c[l>>2]=ra;ga=l+4|0;ya=c[f>>2]|0;c[f>>2]=c[ga>>2];c[ga>>2]=ya;wa=l+8|0;ka=c[va>>2]|0;c[va>>2]=c[wa>>2];c[wa>>2]=ka;if(ra){if((ya|0)==(ra|0))Za=ra;else{ka=ya;while(1){ya=ka+ -12|0;c[ga>>2]=ya;wa=c[ya>>2]|0;if(!wa)_a=ya;else{ya=ka+ -8|0;if((c[ya>>2]|0)!=(wa|0))c[ya>>2]=wa;kt(wa);_a=c[ga>>2]|0}if((_a|0)==(ra|0))break;else ka=_a}Za=c[l>>2]|0}kt(Za);Ha=f}else Ha=f}else Ha=f}else Ha=f}else Ha=e+20|0;while(0);Za=e+16|0;Bd(e,((c[Ha>>2]|0)-(c[Za>>2]|0)|0)/12|0);Ha=c[Za>>2]|0;Cd(e,(c[Ha+4>>2]|0)-(c[Ha>>2]|0)|0);r=1;i=g;return r|0}function ld(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;e=i;switch(c[d>>2]|0){case 1:{d=b+16|0;md(d,b);f=c[d>>2]|0;g=(((c[b+20>>2]|0)-f|0)/12|0)+ -1|0;if((g|0)>0){h=f;j=g;k=0}else{i=e;return}while(1){g=h+(k*12|0)|0;f=h+(j*12|0)|0;l=c[g>>2]|0;c[g>>2]=c[f>>2];c[f>>2]=l;l=h+(k*12|0)+4|0;f=h+(j*12|0)+4|0;g=c[l>>2]|0;c[l>>2]=c[f>>2];c[f>>2]=g;g=h+(k*12|0)+8|0;f=h+(j*12|0)+8|0;l=c[g>>2]|0;c[g>>2]=c[f>>2];c[f>>2]=l;l=k+1|0;f=j+ -1|0;if((l|0)>=(f|0))break;h=c[d>>2]|0;j=f;k=l}i=e;return};case 2:{k=b+20|0;j=c[k>>2]|0;d=b+16|0;h=c[d>>2]|0;l=j-h|0;f=(l|0)/12|0;if((l|0)>0){l=h;g=0;while(1){m=c[l+(g*12|0)>>2]|0;n=c[l+(g*12|0)+4>>2]|0;if((m|0)!=(n|0)?(o=n+ -1|0,m>>>0>>0):0){n=m;m=o;do{o=a[n>>0]|0;a[n>>0]=a[m>>0]|0;a[m>>0]=o;n=n+1|0;m=m+ -1|0}while(n>>>0>>0)}m=g+1|0;if((m|0)>=(f|0))break;l=c[d>>2]|0;g=m}p=c[k>>2]|0;q=c[d>>2]|0}else{p=j;q=h}h=((p-q|0)/12|0)+ -1|0;if((h|0)>0){r=q;s=h;t=0}else{i=e;return}while(1){h=r+(t*12|0)|0;q=r+(s*12|0)|0;p=c[h>>2]|0;c[h>>2]=c[q>>2];c[q>>2]=p;p=r+(t*12|0)+4|0;q=r+(s*12|0)+4|0;h=c[p>>2]|0;c[p>>2]=c[q>>2];c[q>>2]=h;h=r+(t*12|0)+8|0;q=r+(s*12|0)+8|0;p=c[h>>2]|0;c[h>>2]=c[q>>2];c[q>>2]=p;p=t+1|0;q=s+ -1|0;if((p|0)>=(q|0))break;r=c[d>>2]|0;s=q;t=p}i=e;return};case 4:{t=b+16|0;s=c[t>>2]|0;d=(c[b+20>>2]|0)-s|0;r=(d|0)/12|0;if((d|0)>0){u=s;v=0}else{i=e;return}while(1){s=c[u+(v*12|0)>>2]|0;d=c[u+(v*12|0)+4>>2]|0;if((s|0)!=(d|0)?(p=d+ -1|0,s>>>0

>>0):0){d=s;s=p;do{p=a[d>>0]|0;a[d>>0]=a[s>>0]|0;a[s>>0]=p;d=d+1|0;s=s+ -1|0}while(d>>>0>>0)}s=v+1|0;if((s|0)>=(r|0))break;u=c[t>>2]|0;v=s}i=e;return};case 5:{v=b+16|0;t=c[v>>2]|0;u=(((c[b+20>>2]|0)-t|0)/12|0)+ -1|0;if((u|0)>0){w=t;x=u;y=0}else{i=e;return}while(1){u=w+(y*12|0)|0;t=w+(x*12|0)|0;r=c[u>>2]|0;c[u>>2]=c[t>>2];c[t>>2]=r;r=w+(y*12|0)+4|0;t=w+(x*12|0)+4|0;u=c[r>>2]|0;c[r>>2]=c[t>>2];c[t>>2]=u;u=w+(y*12|0)+8|0;t=w+(x*12|0)+8|0;r=c[u>>2]|0;c[u>>2]=c[t>>2];c[t>>2]=r;r=y+1|0;t=x+ -1|0;if((r|0)>=(t|0))break;w=c[v>>2]|0;x=t;y=r}i=e;return};case 6:{md(b+16|0,b);i=e;return};case 7:{y=b+16|0;md(y,b);x=b+20|0;v=c[x>>2]|0;w=c[y>>2]|0;r=v-w|0;t=(r|0)/12|0;if((r|0)>0){r=w;u=0;while(1){s=c[r+(u*12|0)>>2]|0;d=c[r+(u*12|0)+4>>2]|0;if((s|0)!=(d|0)?(p=d+ -1|0,s>>>0

>>0):0){d=s;s=p;do{p=a[d>>0]|0;a[d>>0]=a[s>>0]|0;a[s>>0]=p;d=d+1|0;s=s+ -1|0}while(d>>>0>>0)}s=u+1|0;if((s|0)>=(t|0))break;r=c[y>>2]|0;u=s}z=c[x>>2]|0;A=c[y>>2]|0}else{z=v;A=w}w=((z-A|0)/12|0)+ -1|0;if((w|0)>0){B=A;C=w;D=0}else{i=e;return}while(1){w=B+(D*12|0)|0;A=B+(C*12|0)|0;z=c[w>>2]|0;c[w>>2]=c[A>>2];c[A>>2]=z;z=B+(D*12|0)+4|0;A=B+(C*12|0)+4|0;w=c[z>>2]|0;c[z>>2]=c[A>>2];c[A>>2]=w;w=B+(D*12|0)+8|0;A=B+(C*12|0)+8|0;z=c[w>>2]|0;c[w>>2]=c[A>>2];c[A>>2]=z;z=D+1|0;A=C+ -1|0;if((z|0)>=(A|0))break;B=c[y>>2]|0;C=A;D=z}i=e;return};case 3:{D=b+16|0;md(D,b);C=c[D>>2]|0;y=(c[b+20>>2]|0)-C|0;b=(y|0)/12|0;if((y|0)>0){E=C;F=0}else{i=e;return}while(1){C=c[E+(F*12|0)>>2]|0;y=c[E+(F*12|0)+4>>2]|0;if((C|0)!=(y|0)?(B=y+ -1|0,C>>>0>>0):0){y=C;C=B;do{B=a[y>>0]|0;a[y>>0]=a[C>>0]|0;a[C>>0]=B;y=y+1|0;C=C+ -1|0}while(y>>>0>>0)}C=F+1|0;if((C|0)>=(b|0))break;E=c[D>>2]|0;F=C}i=e;return};default:{i=e;return}}}function md(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;e=i;f=d+12|0;g=c[f>>2]|0;h=d+4|0;j=c[h>>2]|0;k=g+1-j|0;l=d+8|0;m=(c[l>>2]|0)+1-(c[d>>2]|0)|0;n=(k|0)<(m|0);o=n?m:k;if(n){n=b+4|0;p=c[n>>2]|0;q=c[b>>2]|0;r=(p-q|0)/12|0;if(r>>>0>=o>>>0){if(r>>>0>o>>>0?(s=q+(o*12|0)|0,(p|0)!=(s|0)):0){q=p;while(1){p=q+ -12|0;c[n>>2]=p;t=c[p>>2]|0;if(!t)u=p;else{p=q+ -8|0;if((c[p>>2]|0)!=(t|0))c[p>>2]=t;kt(t);u=c[n>>2]|0}if((u|0)==(s|0))break;else q=u}}}else $c(b,o-r|0);r=(c[f>>2]|0)+1-(c[h>>2]|0)|0;if((r|0)<(o|0)){u=r;do{r=c[b>>2]|0;q=r+(u*12|0)|0;s=r+(u*12|0)+4|0;r=c[s>>2]|0;n=c[q>>2]|0;t=r-n|0;if(t>>>0>=o>>>0){if(t>>>0>o>>>0?(p=n+o|0,(r|0)!=(p|0)):0)c[s>>2]=p}else od(q,o-t|0);u=u+1|0}while((u|0)<(o|0))}}else if((m|0)<(o|0)&(k|0)>0){k=j;j=g;g=0;while(1){m=c[b>>2]|0;u=m+(g*12|0)|0;t=m+(g*12|0)+4|0;m=c[t>>2]|0;q=c[u>>2]|0;p=m-q|0;if(p>>>0>=o>>>0)if(p>>>0>o>>>0?(s=q+o|0,(m|0)!=(s|0)):0){c[t>>2]=s;v=j;w=k}else{v=j;w=k}else{od(u,o-p|0);v=c[f>>2]|0;w=c[h>>2]|0}g=g+1|0;if((g|0)>=(v+1-w|0))break;else{k=w;j=v}}}if((o|0)>0){v=0;do{a:do if((v|0)>0){j=c[b>>2]|0;w=j+(v*12|0)|0;k=j;j=0;while(1){g=(c[w>>2]|0)+j|0;p=a[g>>0]|0;a[g>>0]=a[(c[k+(j*12|0)>>2]|0)+v>>0]|0;a[(c[(c[b>>2]|0)+(j*12|0)>>2]|0)+v>>0]=p;p=j+1|0;if((p|0)==(v|0))break a;k=c[b>>2]|0;j=p}}while(0);v=v+1|0}while((v|0)<(o|0))}v=(c[f>>2]|0)+1-(c[h>>2]|0)|0;Bd(d,(c[l>>2]|0)+1-(c[d>>2]|0)|0);Cd(d,v);v=c[f>>2]|0;j=c[h>>2]|0;k=v+1-j|0;if((k|0)>=(o|0)){w=c[l>>2]|0;p=c[d>>2]|0;if(!((w+1-p|0)<(o|0)&(k|0)>0)){i=e;return}o=w;w=p;p=j;j=v;v=0;while(1){g=c[b>>2]|0;u=g+(v*12|0)|0;s=o+1-w|0;t=g+(v*12|0)+4|0;g=c[t>>2]|0;m=c[u>>2]|0;q=g-m|0;if(q>>>0>=s>>>0)if(q>>>0>s>>>0?(r=m+s|0,(g|0)!=(r|0)):0){c[t>>2]=r;x=j;y=p}else{x=j;y=p}else{od(u,s-q|0);x=c[f>>2]|0;y=c[h>>2]|0}q=v+1|0;if((q|0)>=(x+1-y|0))break;o=c[l>>2]|0;w=c[d>>2]|0;p=y;j=x;v=q}i=e;return}v=b+4|0;x=c[v>>2]|0;j=c[b>>2]|0;y=(x-j|0)/12|0;if(y>>>0>>0){$c(b,k-y|0);i=e;return}if(y>>>0<=k>>>0){i=e;return}y=j+(k*12|0)|0;if((x|0)==(y|0)){i=e;return}else z=x;while(1){x=z+ -12|0;c[v>>2]=x;k=c[x>>2]|0;if(!k)A=x;else{x=z+ -8|0;if((c[x>>2]|0)!=(k|0))c[x>>2]=k;kt(k);A=c[v>>2]|0}if((A|0)==(y|0))break;else z=A}i=e;return}function nd(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;f=i;g=e-d|0;h=b+8|0;j=c[h>>2]|0;k=c[b>>2]|0;l=k;if(g>>>0<=(j-l|0)>>>0){m=b+4|0;n=(c[m>>2]|0)-l|0;if(g>>>0<=n>>>0){Uu(k|0,d|0,g|0)|0;l=k+g|0;if((c[m>>2]|0)==(l|0)){i=f;return}c[m>>2]=l;i=f;return}l=d+n|0;Uu(k|0,d|0,n|0)|0;if((l|0)==(e|0)){i=f;return}n=l;l=c[m>>2]|0;do{if(!l)o=0;else{a[l>>0]=a[n>>0]|0;o=c[m>>2]|0}l=o+1|0;c[m>>2]=l;n=n+1|0}while((n|0)!=(e|0));i=f;return}if(!k)p=j;else{j=b+4|0;if((c[j>>2]|0)!=(k|0))c[j>>2]=k;kt(k);c[h>>2]=0;c[j>>2]=0;c[b>>2]=0;p=0}if((g|0)<0)yp(b);j=p-0|0;if(j>>>0<1073741823){p=j<<1;j=p>>>0>>0?g:p;if((j|0)<0)yp(b);else q=j}else q=2147483647;j=it(q)|0;p=b+4|0;c[p>>2]=j;c[b>>2]=j;c[h>>2]=j+q;if((d|0)==(e|0)){i=f;return}else{r=d;s=j}do{if(!s)t=0;else{a[s>>0]=a[r>>0]|0;t=c[p>>2]|0}s=t+1|0;c[p>>2]=s;r=r+1|0}while((r|0)!=(e|0));i=f;return}function od(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;e=i;f=b+8|0;g=c[f>>2]|0;h=b+4|0;j=c[h>>2]|0;k=j;if((g-k|0)>>>0>=d>>>0){l=d;m=j;do{if(!m)n=0;else{a[m>>0]=0;n=c[h>>2]|0}m=n+1|0;c[h>>2]=m;l=l+ -1|0}while((l|0)!=0);i=e;return}l=c[b>>2]|0;m=k-l+d|0;if((m|0)<0)yp(b);k=l;l=g-k|0;if(l>>>0<1073741823){g=l<<1;l=g>>>0>>0?m:g;g=(c[h>>2]|0)-k|0;if(!l){o=0;p=0;q=g}else{r=l;s=g;t=10}}else{r=2147483647;s=(c[h>>2]|0)-k|0;t=10}if((t|0)==10){o=r;p=it(r)|0;q=s}s=d;d=p+q|0;do{if(!d)u=0;else{a[d>>0]=0;u=d}d=u+1|0;s=s+ -1|0}while((s|0)!=0);s=c[b>>2]|0;u=(c[h>>2]|0)-s|0;r=p+(q-u)|0;Tu(r|0,s|0,u|0)|0;c[b>>2]=r;c[h>>2]=d;c[f>>2]=p+o;if(!s){i=e;return}kt(s);i=e;return}function pd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;c[a>>2]=0;e=a+4|0;c[e>>2]=0;f=a+8|0;c[f>>2]=0;if(!b){i=d;return}if(b>>>0>357913941)yp(a);g=it(b*12|0)|0;c[e>>2]=g;c[a>>2]=g;c[f>>2]=g+(b*12|0);f=b;b=g;do{if(!b)h=0;else{c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;h=c[e>>2]|0}b=h+12|0;c[e>>2]=b;f=f+ -1|0}while((f|0)!=0);i=d;return}function qd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;d=i;i=i+32|0;e=d;f=c[a>>2]|0;if((((c[a+8>>2]|0)-f|0)/12|0)>>>0>=b>>>0){i=d;return}g=((c[a+4>>2]|0)-f|0)/12|0;f=e+12|0;c[f>>2]=0;c[e+16>>2]=a+8;if(!b)h=0;else h=it(b*12|0)|0;c[e>>2]=h;j=h+(g*12|0)|0;g=e+8|0;c[g>>2]=j;k=e+4|0;c[k>>2]=j;c[f>>2]=h+(b*12|0);ad(a,e);a=c[k>>2]|0;k=c[g>>2]|0;if((k|0)!=(a|0)){b=k;while(1){k=b+ -12|0;c[g>>2]=k;h=c[k>>2]|0;if(!h)l=k;else{f=b+ -8|0;if((c[f>>2]|0)==(h|0))m=k;else{c[f>>2]=h;m=c[g>>2]|0}kt(h);l=m}if((l|0)==(a|0))break;else b=l}}l=c[e>>2]|0;if(!l){i=d;return}kt(l);i=d;return}function rd(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;e=i;i=i+32|0;f=e;g=b+4|0;h=c[b>>2]|0;j=(((c[g>>2]|0)-h|0)/12|0)+1|0;if(j>>>0>357913941)yp(b);k=h;h=((c[b+8>>2]|0)-k|0)/12|0;if(h>>>0<178956970){l=h<<1;m=l>>>0>>0?j:l}else m=357913941;l=((c[g>>2]|0)-k|0)/12|0;k=f+12|0;c[k>>2]=0;c[f+16>>2]=b+8;if(!m)n=0;else n=it(m*12|0)|0;c[f>>2]=n;g=n+(l*12|0)|0;j=f+8|0;c[j>>2]=g;h=f+4|0;c[h>>2]=g;c[k>>2]=n+(m*12|0);if((g|0)!=0?(c[g>>2]=0,m=n+(l*12|0)+4|0,c[m>>2]=0,k=n+(l*12|0)+8|0,c[k>>2]=0,o=d+4|0,p=c[o>>2]|0,q=c[d>>2]|0,r=p-q|0,(p|0)!=(q|0)):0){if((r|0)<0)yp(g);q=it(r)|0;c[m>>2]=q;c[g>>2]=q;c[k>>2]=q+r;r=c[d>>2]|0;d=c[o>>2]|0;if((r|0)!=(d|0)){o=r;r=q;do{if(!r)s=0;else{a[r>>0]=a[o>>0]|0;s=c[m>>2]|0}r=s+1|0;c[m>>2]=r;o=o+1|0}while((o|0)!=(d|0))}}c[j>>2]=n+((l+1|0)*12|0);ad(b,f);b=c[h>>2]|0;h=c[j>>2]|0;if((h|0)!=(b|0)){l=h;while(1){h=l+ -12|0;c[j>>2]=h;n=c[h>>2]|0;if(!n)t=h;else{d=l+ -8|0;if((c[d>>2]|0)==(n|0))u=h;else{c[d>>2]=n;u=c[j>>2]|0}kt(n);t=u}if((t|0)==(b|0))break;else l=t}}t=c[f>>2]|0;if(!t){i=e;return}kt(t);i=e;return}function sd(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;f=i;g=b+8|0;h=c[g>>2]|0;j=b+4|0;k=c[j>>2]|0;l=k;if((h-l|0)>>>0>=d>>>0){m=d;n=k;do{if(!n)o=0;else{a[n>>0]=a[e>>0]|0;o=c[j>>2]|0}n=o+1|0;c[j>>2]=n;m=m+ -1|0}while((m|0)!=0);i=f;return}m=c[b>>2]|0;n=l-m+d|0;if((n|0)<0)yp(b);l=m;m=h-l|0;if(m>>>0<1073741823){h=m<<1;m=h>>>0>>0?n:h;h=(c[j>>2]|0)-l|0;if(!m){p=0;q=0;r=h}else{s=m;t=h;u=10}}else{s=2147483647;t=(c[j>>2]|0)-l|0;u=10}if((u|0)==10){p=s;q=it(s)|0;r=t}t=d;d=q+r|0;do{if(!d)v=0;else{a[d>>0]=a[e>>0]|0;v=d}d=v+1|0;t=t+ -1|0}while((t|0)!=0);t=c[b>>2]|0;v=(c[j>>2]|0)-t|0;e=q+(r-v)|0;Tu(e|0,t|0,v|0)|0;c[b>>2]=e;c[j>>2]=d;c[g>>2]=q+p;if(!t){i=f;return}kt(t);i=f;return}function td(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;f=i;g=d;h=(e-g|0)/12|0;j=b+8|0;k=c[j>>2]|0;l=c[b>>2]|0;m=l;if(h>>>0>((k-m|0)/12|0)>>>0){if(!l)n=k;else{k=b+4|0;o=c[k>>2]|0;if((o|0)==(l|0))p=l;else{q=o;while(1){o=q+ -12|0;c[k>>2]=o;r=c[o>>2]|0;if(!r)s=o;else{o=q+ -8|0;if((c[o>>2]|0)!=(r|0))c[o>>2]=r;kt(r);s=c[k>>2]|0}if((s|0)==(l|0))break;else q=s}p=c[b>>2]|0}kt(p);c[j>>2]=0;c[k>>2]=0;c[b>>2]=0;n=0}if(h>>>0>357913941)yp(b);k=(n-0|0)/12|0;if(k>>>0<178956970){n=k<<1;k=n>>>0>>0?h:n;if(k>>>0>357913941)yp(b);else t=k}else t=357913941;k=it(t*12|0)|0;n=b+4|0;c[n>>2]=k;c[b>>2]=k;c[j>>2]=k+(t*12|0);if((d|0)==(e|0)){i=f;return}else{u=d;v=k}while(1){if((v|0)!=0?(c[v>>2]=0,k=v+4|0,c[k>>2]=0,t=v+8|0,c[t>>2]=0,j=u+4|0,p=c[j>>2]|0,s=c[u>>2]|0,q=p-s|0,(p|0)!=(s|0)):0){if((q|0)<0){w=46;break}s=it(q)|0;c[k>>2]=s;c[v>>2]=s;c[t>>2]=s+q;q=c[u>>2]|0;t=c[j>>2]|0;if((q|0)!=(t|0)){j=q;q=s;do{if(!q)x=0;else{a[q>>0]=a[j>>0]|0;x=c[k>>2]|0}q=x+1|0;c[k>>2]=q;j=j+1|0}while((j|0)!=(t|0))}}t=(c[n>>2]|0)+12|0;c[n>>2]=t;u=u+12|0;if((u|0)==(e|0)){w=52;break}else v=t}if((w|0)==46)yp(v);else if((w|0)==52){i=f;return}}v=b+4|0;b=((c[v>>2]|0)-m|0)/12|0;if(h>>>0>b>>>0){y=d+(b*12|0)|0;z=1}else{y=e;z=0}if((y|0)==(d|0))A=l;else{b=y+ -12+(0-g)|0;g=d;d=l;while(1){if((d|0)!=(g|0))nd(d,c[g>>2]|0,c[g+4>>2]|0);g=g+12|0;if((g|0)==(y|0))break;else d=d+12|0}A=l+((((b>>>0)/12|0)+1|0)*12|0)|0}if(!z){z=c[v>>2]|0;if((z|0)==(A|0)){i=f;return}else B=z;while(1){z=B+ -12|0;c[v>>2]=z;b=c[z>>2]|0;if(!b)C=z;else{z=B+ -8|0;if((c[z>>2]|0)!=(b|0))c[z>>2]=b;kt(b);C=c[v>>2]|0}if((C|0)==(A|0))break;else B=C}i=f;return}if((y|0)==(e|0)){i=f;return}C=y;y=c[v>>2]|0;while(1){if((y|0)!=0?(c[y>>2]=0,B=y+4|0,c[B>>2]=0,A=y+8|0,c[A>>2]=0,b=C+4|0,z=c[b>>2]|0,l=c[C>>2]|0,d=z-l|0,(z|0)!=(l|0)):0){if((d|0)<0){w=16;break}l=it(d)|0;c[B>>2]=l;c[y>>2]=l;c[A>>2]=l+d;d=c[C>>2]|0;A=c[b>>2]|0;if((d|0)!=(A|0)){b=d;d=l;do{if(!d)D=0;else{a[d>>0]=a[b>>0]|0;D=c[B>>2]|0}d=D+1|0;c[B>>2]=d;b=b+1|0}while((b|0)!=(A|0))}}A=(c[v>>2]|0)+12|0;c[v>>2]=A;C=C+12|0;if((C|0)==(e|0)){w=52;break}else y=A}if((w|0)==16)yp(y);else if((w|0)==52){i=f;return}}function ud(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=a+4|0;f=c[a>>2]|0;g=((c[e>>2]|0)-f>>3)+1|0;if(g>>>0>536870911)yp(a);h=a+8|0;j=f;k=(c[h>>2]|0)-j|0;if(k>>3>>>0<268435455){l=k>>2;k=l>>>0>>0?g:l;l=(c[e>>2]|0)-j|0;g=l>>3;if(!k){m=0;n=0;o=g;p=l}else{q=k;r=g;s=l;t=6}}else{l=(c[e>>2]|0)-j|0;q=536870911;r=l>>3;s=l;t=6}if((t|0)==6){m=q;n=it(q<<3)|0;o=r;p=s}s=n+(o<<3)|0;if(s){r=b;b=c[r+4>>2]|0;q=s;c[q>>2]=c[r>>2];c[q+4>>2]=b}Tu(n|0,f|0,p|0)|0;c[a>>2]=n;c[e>>2]=n+(o+1<<3);c[h>>2]=n+(m<<3);if(!f){i=d;return}kt(f);i=d;return}function vd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=a+4|0;f=c[a>>2]|0;g=((c[e>>2]|0)-f>>2)+1|0;if(g>>>0>1073741823)yp(a);h=a+8|0;j=f;k=(c[h>>2]|0)-j|0;if(k>>2>>>0<536870911){l=k>>1;k=l>>>0>>0?g:l;l=(c[e>>2]|0)-j|0;g=l>>2;if(!k){m=0;n=0;o=g;p=l}else{q=k;r=g;s=l;t=6}}else{l=(c[e>>2]|0)-j|0;q=1073741823;r=l>>2;s=l;t=6}if((t|0)==6){m=q;n=it(q<<2)|0;o=r;p=s}s=n+(o<<2)|0;if(s)c[s>>2]=c[b>>2];Tu(n|0,f|0,p|0)|0;c[a>>2]=n;c[e>>2]=n+(o+1<<2);c[h>>2]=n+(m<<2);if(!f){i=d;return}kt(f);i=d;return}function wd(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;i=i+16|0;h=g;if(!((e|0)<(b|0)|(f|0)<(d|0))){c[a>>2]=b;c[a+4>>2]=d;c[a+8>>2]=e;c[a+12>>2]=f;i=g;return}if((c[732]|0)<=-1)Eh(864);g=c[p>>2]|0;c[h>>2]=b;c[h+4>>2]=d;c[h+8>>2]=e;c[h+12>>2]=f;Ob(g|0,832,h|0)|0;Eh(864)}function xd(a,b){a=a|0;b=b|0;var d=0;d=i;if((c[a+8>>2]|0)<(b|0))Eh(904);else{c[a>>2]=b;i=d;return}}function yd(a,b){a=a|0;b=b|0;var d=0;d=i;if((c[a+12>>2]|0)<(b|0))Eh(952);else{c[a+4>>2]=b;i=d;return}}function zd(a,b){a=a|0;b=b|0;var d=0;d=i;if((c[a>>2]|0)>(b|0))Eh(1e3);else{c[a+8>>2]=b;i=d;return}}function Ad(a,b){a=a|0;b=b|0;var d=0;d=i;if((c[a+4>>2]|0)>(b|0))Eh(1048);else{c[a+12>>2]=b;i=d;return}}function Bd(a,b){a=a|0;b=b|0;var d=0;d=i;if((b|0)<1)Eh(1096);else{c[a+12>>2]=b+ -1+(c[a+4>>2]|0);i=d;return}}function Cd(a,b){a=a|0;b=b|0;var d=0;d=i;if((b|0)<1)Eh(1144);else{c[a+8>>2]=b+ -1+(c[a>>2]|0);i=d;return}}function Dd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=c[b>>2]|0;if((e|0)<(c[a>>2]|0))c[a>>2]=e;e=c[b+4>>2]|0;f=a+4|0;if((e|0)<(c[f>>2]|0))c[f>>2]=e;e=c[b+8>>2]|0;f=a+8|0;if((e|0)>(c[f>>2]|0))c[f>>2]=e;e=c[b+12>>2]|0;b=a+12|0;if((e|0)<=(c[b>>2]|0)){i=d;return}c[b>>2]=e;i=d;return}function Ed(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if(((c[a>>2]|0)<=(c[b>>2]|0)?(c[a+4>>2]|0)<=(c[b+4>>2]|0):0)?(c[a+8>>2]|0)>=(c[b+8>>2]|0):0)e=(c[a+12>>2]|0)>=(c[b+12>>2]|0);else e=0;i=d;return e|0}function Fd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;if(((c[a>>2]|0)<=(d|0)?(c[a+8>>2]|0)>=(d|0):0)?(c[a+4>>2]|0)<=(b|0):0)f=(c[a+12>>2]|0)>=(b|0);else f=0;i=e;return f|0}function Gd(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if(((c[a>>2]|0)<(c[b>>2]|0)?(c[a+4>>2]|0)<(c[b+4>>2]|0):0)?(c[a+8>>2]|0)>(c[b+8>>2]|0):0)e=(c[a+12>>2]|0)>(c[b+12>>2]|0);else e=0;i=d;return e|0}function Hd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=((c[b+8>>2]|0)+(c[b>>2]|0)|0)/2|0;if((c[a>>2]|0)>(e|0)){f=0;i=d;return f|0}f=(c[a+8>>2]|0)>=(e|0);i=d;return f|0}function Id(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=((c[b+12>>2]|0)+(c[b+4>>2]|0)|0)/2|0;if((c[a+4>>2]|0)>(e|0)){f=0;i=d;return f|0}f=(c[a+12>>2]|0)>=(e|0);i=d;return f|0}function Jd(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((c[a>>2]|0)>(c[b>>2]|0)){e=0;i=d;return e|0}e=(c[a+8>>2]|0)>=(c[b+8>>2]|0);i=d;return e|0}function Kd(a,b){a=a|0;b=b|0;var d=0;if((c[a>>2]|0)>(b|0))d=0;else d=(c[a+8>>2]|0)>=(b|0);return d|0}function Ld(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((c[a+4>>2]|0)>(b|0)){e=0;i=d;return e|0}e=(c[a+12>>2]|0)>=(b|0);i=d;return e|0}function Md(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((c[a>>2]|0)>(c[b+8>>2]|0)){e=0;i=d;return e|0}e=(c[a+8>>2]|0)>=(c[b>>2]|0);i=d;return e|0}function Nd(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((c[a+4>>2]|0)>(c[b+12>>2]|0)){e=0;i=d;return e|0}e=(c[a+12>>2]|0)>=(c[b+4>>2]|0);i=d;return e|0}function Od(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;e=c[b+12>>2]|0;f=c[a+12>>2]|0;g=c[a+4>>2]|0;a=c[b+4>>2]|0;b=((e|0)<(f|0)?e:f)-((g|0)<(a|0)?a:g)|0;if((b|0)<=-1){h=0;i=d;return h|0}j=f+1-g|0;g=e+1-a|0;a=((b*100|0)+100|0)/(((g|0)<(j|0)?g:j)|0)|0;h=(a|0)>1?a:1;i=d;return h|0}function Pd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=c[b>>2]|0;f=c[b+8>>2]|0;g=(f+e|0)/2|0;h=c[a>>2]|0;j=c[a+8>>2]|0;if(!((h|0)>(g|0)|(j|0)<(g|0))){k=1;i=d;return k|0}a=(c[b+12>>2]|0)+1-(c[b+4>>2]|0)|0;b=f+1-e|0;e=(((b|0)<(a|0)?b:a)|0)/2|0;if((j+1-h|0)<(e|0)?(a=(e+1|0)/2|0,e=(h+j|0)/2|0,!((e-a|0)>(g|0)|(e+a|0)<(g|0))):0){k=1;i=d;return k|0}k=0;i=d;return k|0}function Qd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=c[b+4>>2]|0;f=c[b+12>>2]|0;g=(f+e|0)/2|0;h=c[a+4>>2]|0;j=c[a+12>>2]|0;if(!((h|0)>(g|0)|(j|0)<(g|0))){k=1;i=d;return k|0}a=f+1-e|0;e=(c[b+8>>2]|0)+1-(c[b>>2]|0)|0;b=(((e|0)<(a|0)?e:a)|0)/2|0;if((j+1-h|0)<(b|0)?(a=(b+1|0)/2|0,b=(h+j|0)/2|0,!((b-a|0)>(g|0)|(b+a|0)<(g|0))):0){k=1;i=d;return k|0}k=0;i=d;return k|0}function Rd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;e=c[b>>2]|0;do if((c[a+8>>2]|0)<(e|0))f=1;else{g=c[a>>2]|0;if((g|0)<=(c[b+8>>2]|0)){h=c[a+4>>2]|0;j=c[b+4>>2]|0;if((h|0)<(j|0)){f=1;break}if((h|0)==(j|0)&(g|0)<(e|0)){f=1;break}}f=0}while(0);i=d;return f|0}function Sd(a,b){a=a|0;b=b|0;return(((c[a+8>>2]|0)+(c[a>>2]|0)|0)/2|0|0)<(((c[b+8>>2]|0)+(c[b>>2]|0)|0)/2|0|0)|0}function Td(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,l=0,m=0,n=0;c=i;d=((a|0)<0)<<31>>31;e=av(a|0,d|0,a|0,d|0)|0;d=H;f=((b|0)<0)<<31>>31;g=av(b|0,f|0,b|0,f|0)|0;f=Pu(g|0,H|0,e|0,d|0)|0;d=H;e=(a|0)>-1?a:0-a|0;a=(b|0)>-1?b:0-b|0;b=(e|0)<(a|0)?a:e;g=a+e|0;if((g-b|0)>1){e=b;a=g;while(1){h=(a+e|0)/2|0;j=((h|0)<0)<<31>>31;k=av(h|0,j|0,h|0,j|0)|0;j=H;l=(j|0)<(d|0)|(j|0)==(d|0)&k>>>0>>0;k=l?h:e;j=l?a:h;if((j-k|0)>1){e=k;a=j}else{m=k;n=j;break}}}else{m=b;n=g}g=((m|0)<0)<<31>>31;b=av(m|0,g|0,m|0,g|0)|0;g=H;a=Wu(f|0,d|0,1)|0;d=Ou(a|0,H|0,b|0,g|0)|0;g=H;b=((n|0)<0)<<31>>31;a=av(n|0,b|0,n|0,b|0)|0;b=H;i=c;return((g|0)<(b|0)|(g|0)==(b|0)&d>>>0>>0?m:n)|0}function Ud(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;e=c[b+12>>2]|0;f=c[a+4>>2]|0;if((e|0)>(f|0)){g=c[b+4>>2]|0;b=c[a+12>>2]|0;i=d;return((g|0)<(b|0)?0:g-b|0)|0}else{i=d;return f-e|0}return 0}function Vd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=c[a+4>>2]|0;if((e|0)<(b|0)){f=c[a+12>>2]|0;i=d;return((f|0)>(b|0)?0:b-f|0)|0}else{i=d;return e-b|0}return 0}function Wd(e,f,g,h,j){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;k=i;i=i+64|0;l=k;m=k+44|0;n=k+40|0;o=k+8|0;c[e+0>>2]=c[f+0>>2];c[e+4>>2]=c[f+4>>2];c[e+8>>2]=c[f+8>>2];c[e+12>>2]=c[f+12>>2];dj(e+16|0,g,Su(g|0)|0);g=e+28|0;c[g>>2]=0;q=e+32|0;c[q>>2]=0;r=e+36|0;c[r>>2]=0;s=c[h+24>>2]|0;if(s>>>0>100){i=k;return}c[m>>2]=0;t=m+4|0;c[t>>2]=0;c[m+8>>2]=0;Xd(f,m,s,j);if((c[732]|0)>0){j=c[p>>2]|0;c[l>>2]=((c[t>>2]|0)-(c[m>>2]|0)|0)/40|0;Ob(j|0,1192,l|0)|0}a:do if((s|0)>97){j=c[h+16>>2]|0;if(j){c[l>>2]=((c[t>>2]|0)-(c[m>>2]|0)|0)/40|0;Ob(j|0,1344,l|0)|0;u=c[m>>2]|0;v=c[t>>2]|0;if((v|0)==(u|0))w=0;else{x=(v-u|0)/40|0;v=0;y=0;while(1){z=((c[u+(v*40|0)+32>>2]|0)-(c[u+(v*40|0)+28>>2]|0)>>2)+y|0;v=v+1|0;if(v>>>0>=x>>>0){w=z;break}else y=z}}c[l>>2]=w;Ob(j|0,1368,l|0)|0;y=c[m>>2]|0;x=c[t>>2]|0;if((x|0)!=(y|0)){v=(x-y|0)/40|0;x=0;u=y;do{y=x;x=x+1|0;c[l>>2]=x;c[l+4>>2]=v;Ob(j|0,1400,l|0)|0;z=(c[u+(y*40|0)+12>>2]|0)+1-(c[u+(y*40|0)+4>>2]|0)|0;c[l>>2]=(c[u+(y*40|0)+8>>2]|0)+1-(c[u+(y*40|0)>>2]|0);c[l+4>>2]=z;Ob(j|0,1416,l|0)|0;z=c[m>>2]|0;c[l>>2]=(c[z+(y*40|0)+32>>2]|0)-(c[z+(y*40|0)+28>>2]|0)>>2;Ob(j|0,1440,l|0)|0;z=u+(y*40|0)+32|0;A=u+(y*40|0)+28|0;y=c[A>>2]|0;if((c[z>>2]|0)!=(y|0)){B=y;y=0;do{_e(c[B+(y<<2)>>2]|0,j);y=y+1|0;B=c[A>>2]|0}while(y>>>0<(c[z>>2]|0)-B>>2>>>0)}u=c[m>>2]|0;v=((c[t>>2]|0)-u|0)/40|0}while(x>>>0>>0)}}}else if(!((s|0)>95|(s+ -90|0)>>>0<4)){v=c[m>>2]|0;b:do if((c[t>>2]|0)!=(v|0)){if((s|0)<90){C=0;D=v}else{x=0;u=v;while(1){j=it(28)|0;df(j,f,u+(x*40|0)|0,u+(x*40|0)+28|0);c[n>>2]=j;do if((c[j+20>>2]|0)==(c[j+16>>2]|0)){if(j){ff(j);kt(j)}}else{B=c[q>>2]|0;if((B|0)==(c[r>>2]|0)){ae(g,n);break}if(!B)E=0;else{c[B>>2]=j;E=c[q>>2]|0}c[q>>2]=E+4}while(0);x=x+1|0;u=c[m>>2]|0;if(x>>>0>=(((c[t>>2]|0)-u|0)/40|0)>>>0)break b}}do{u=it(28)|0;df(u,f,D+(C*40|0)|0,D+(C*40|0)+28|0);c[n>>2]=u;do if((c[u+20>>2]|0)!=(c[u+16>>2]|0)?(gf(u,h),(c[u+20>>2]|0)!=(c[u+16>>2]|0)):0){x=c[q>>2]|0;if((x|0)==(c[r>>2]|0)){ae(g,n);break}if(!x)F=0;else{c[x>>2]=u;F=c[q>>2]|0}c[q>>2]=F+4}else G=24;while(0);if((G|0)==24?(G=0,(u|0)!=0):0){ff(u);kt(u)}C=C+1|0;D=c[m>>2]|0}while(C>>>0<(((c[t>>2]|0)-D|0)/40|0)>>>0)}while(0);if((s|0)!=0?(v=h+16|0,(c[v>>2]|0)!=0):0){if((s|0)>85){x=(s|0)>87;j=(s&1|0)!=0;B=e+28|0;z=c[B>>2]|0;if(((c[q>>2]|0)-z|0)>0){H=z;I=0}else break;while(1){jf(c[H+(I<<2)>>2]|0,h,x,j);I=I+1|0;H=c[B>>2]|0;if((I|0)>=((c[q>>2]|0)-H>>2|0))break a}}B=s+ -70|0;if(B>>>0<8){c[o+0>>2]=c[f+0>>2];c[o+4>>2]=c[f+4>>2];c[o+8>>2]=c[f+8>>2];c[o+12>>2]=c[f+12>>2];ce(o+16|0,f+16|0);j=f+28|0;b[o+28>>1]=d[j>>0]|d[j+1>>0]<<8;if((B&1|0)!=0?(j=c[m>>2]|0,(c[t>>2]|0)!=(j|0)):0)if((s|0)==71){x=0;z=j;do{hd(o,z+(x*40|0)|0);x=x+1|0;z=c[m>>2]|0}while(x>>>0<(((c[t>>2]|0)-z|0)/40|0)>>>0)}else{z=0;x=j;do{id(o,x+(z*40|0)|0);z=z+1|0;x=c[m>>2]|0}while(z>>>0<(((c[t>>2]|0)-x|0)/40|0)>>>0)}if((B&2|0)!=0?(x=e+28|0,z=c[x>>2]|0,((c[q>>2]|0)-z|0)>0):0){j=z;z=0;do{mf(c[j+(z<<2)>>2]|0,o);z=z+1|0;j=c[x>>2]|0}while((z|0)<((c[q>>2]|0)-j>>2|0))}if((B&4|0)!=0?(j=e+28|0,z=c[j>>2]|0,((c[q>>2]|0)-z|0)>0):0){x=z;z=0;do{lf(c[x+(z<<2)>>2]|0,o);z=z+1|0;x=c[j>>2]|0}while((z|0)<((c[q>>2]|0)-x>>2|0))}_c(o,c[v>>2]|0,a[h+28>>0]|0)|0;x=o+16|0;z=c[x>>2]|0;if(z){j=o+20|0;B=c[j>>2]|0;if((B|0)==(z|0))J=z;else{y=B;while(1){B=y+ -12|0;c[j>>2]=B;A=c[B>>2]|0;if(!A)K=B;else{B=y+ -8|0;if((c[B>>2]|0)!=(A|0))c[B>>2]=A;kt(A);K=c[j>>2]|0}if((K|0)==(z|0))break;else y=K}J=c[x>>2]|0}kt(J)}}}}while(0);be(m);i=k;return}function Xd(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var 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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0,Yb=0,Zb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,jc=0,kc=0,lc=0,mc=0,nc=0,oc=0,pc=0,qc=0,rc=0,sc=0,tc=0,uc=0,vc=0,wc=0,xc=0,yc=0,zc=0,Ac=0,Bc=0,Cc=0,Dc=0,Ec=0,Fc=0,Gc=0,Hc=0,Ic=0,Jc=0,Kc=0,Lc=0,Mc=0,Nc=0,Oc=0,Pc=0,Qc=0,Rc=0,Sc=0,Tc=0,Uc=0,Vc=0;h=i;i=i+288|0;j=h+72|0;k=h+96|0;l=h+52|0;m=h+232|0;n=h+68|0;o=h+48|0;p=h+128|0;q=h+144|0;r=h+192|0;s=h+236|0;t=h+240|0;u=h+92|0;v=h+100|0;w=h+112|0;x=h;y=h+116|0;z=h+132|0;A=h+56|0;B=h+184|0;C=h+8|0;D=a[b+29>>0]|0;c[y>>2]=0;E=y+4|0;c[E>>2]=0;F=y+8|0;c[F>>2]=0;G=b+8|0;H=c[G>>2]|0;I=c[b>>2]|0;J=H+1|0;K=J-I|0;c[z>>2]=0;L=z+4|0;c[L>>2]=0;M=z+8|0;c[M>>2]=0;if((J|0)==(I|0)){N=H;O=I}else{if(K>>>0>1073741823)yp(z);I=it(K<<2)|0;c[L>>2]=I;c[z>>2]=I;c[M>>2]=I+(K<<2);H=K;K=I;do{if(!K)P=0;else{c[K>>2]=0;P=c[L>>2]|0}K=P+4|0;c[L>>2]=K;H=H+ -1|0}while((H|0)!=0);N=c[G>>2]|0;O=c[b>>2]|0}H=N+1|0;N=H-O|0;c[A>>2]=0;K=A+4|0;c[K>>2]=0;P=A+8|0;c[P>>2]=0;if((H|0)==(O|0))Q=0;else{if(N>>>0>1073741823)yp(A);O=it(N<<2)|0;c[K>>2]=O;c[A>>2]=O;c[P>>2]=O+(N<<2);H=N;N=O;while(1){if(!N)R=0;else{c[N>>2]=0;R=c[K>>2]|0}O=R+4|0;c[K>>2]=O;H=H+ -1|0;if(!H){Q=O;break}else N=O}}N=b+4|0;H=c[N>>2]|0;R=b+12|0;O=c[R>>2]|0;a:do if((H|0)<=(O|0)){I=b+16|0;J=O;S=Q;T=c[G>>2]|0;U=H;b:while(1){V=c[z>>2]|0;c[z>>2]=c[A>>2];c[A>>2]=V;V=c[L>>2]|0;c[L>>2]=S;c[K>>2]=V;V=c[M>>2]|0;c[M>>2]=c[P>>2];c[P>>2]=V;V=c[b>>2]|0;if((V|0)>(T|0)){W=T;X=J}else{Y=V;Z=T;_=V;while(1){V=_-Y|0;c:do if((d[(c[(c[I>>2]|0)+((U-(c[N>>2]|0)|0)*12|0)>>2]|0)+V>>0]|0)<=(D&255)){if((V|0)>0){$=V+ -1|0;aa=c[z>>2]|0;ba=aa;ca=c[(c[A>>2]|0)+($<<2)>>2]|0;da=c[aa+($<<2)>>2]|0}else{ba=c[z>>2]|0;ca=0;da=0}$=c[ba+(V<<2)>>2]|0;if((_|0)<(Z|0))ea=c[ba+(V+1<<2)>>2]|0;else ea=0;do if(!ca){if(da){c[B>>2]=da;ve(da,U,_);fa=da;break}if($){c[B>>2]=$;ve($,U,_);fa=$;break}if(ea){c[B>>2]=ea;ve(ea,U,_);c[(c[A>>2]|0)+(V<<2)>>2]=ea;break c}aa=it(40)|0;le(aa,_,U,_,U);c[aa+28>>2]=0;c[aa+32>>2]=0;c[aa+36>>2]=0;c[B>>2]=aa;a[(c[(c[aa+16>>2]|0)+((U-(c[aa+4>>2]|0)|0)*12|0)>>2]|0)+(_-(c[aa>>2]|0))>>0]=1;ga=c[E>>2]|0;if((ga|0)==(c[F>>2]|0)){ke(y,B);fa=c[B>>2]|0;break}if(!ga)ha=0;else{c[ga>>2]=aa;ha=c[E>>2]|0}c[E>>2]=ha+4;fa=aa}else{c[B>>2]=ca;ve(ca,U,_);fa=ca}while(0);c[(c[A>>2]|0)+(V<<2)>>2]=fa;if(!((ea|0)==0|(fa|0)==(ea|0))){$=c[L>>2]|0;aa=c[A>>2]|0;if((c[fa+4>>2]|0)>(c[ea+4>>2]|0)){ga=V+1|0;ia=aa+(ga<<2)|0;if(!ga){ja=fa;ka=ea}else{ga=aa;do{if((c[ga>>2]|0)==(fa|0))c[ga>>2]=ea;ga=ga+4|0}while((ga|0)!=(ia|0));ja=fa;ka=ea}}else{ia=(c[z>>2]|0)+(V<<2)|0;if((ia|0)==($|0)){ja=ea;ka=fa}else{ga=ia;do{if((c[ga>>2]|0)==(ea|0))c[ga>>2]=fa;ga=ga+4|0}while((ga|0)!=($|0));ja=ea;ka=fa}}$=c[E>>2]|0;ga=c[y>>2]|0;ia=$-ga>>2;while(1){la=ia+ -1|0;if((ia|0)<=0){ma=53;break b}if((c[ga+(la<<2)>>2]|0)==(ja|0))break;else ia=la}if((ia|0)<1){ma=53;break b}aa=la<<2>>2;na=ga+(aa+1<<2)|0;oa=$-na|0;Uu(ga+(aa<<2)|0,na|0,oa|0)|0;na=ga+((oa>>2)+aa<<2)|0;aa=c[E>>2]|0;if((aa|0)!=(na|0))c[E>>2]=aa+(~((aa+ -4+(0-na)|0)>>>2)<<2);te(ka,ja);if(ja){Qe(ja);kt(ja)}}}else c[(c[A>>2]|0)+(V<<2)>>2]=0;while(0);pa=c[G>>2]|0;if((_|0)>=(pa|0))break;Y=c[b>>2]|0;Z=pa;_=_+1|0}W=pa;X=c[R>>2]|0}if((U|0)>=(X|0))break a;J=X;S=c[K>>2]|0;T=W;U=U+1|0}if((ma|0)==53)Eh(1472)}while(0);W=(f|0)<100;d:do if(W?(c[E>>2]|0)-(c[y>>2]|0)>>2>>>0>3:0){de(b,y);f=c[y>>2]|0;X=(c[E>>2]|0)-f|0;pa=X>>2;e:do if((X|0)>0){ja=f;ka=0;la=0;while(1){fa=c[ja+(ka<<2)>>2]|0;ea=(c[fa+12>>2]|0)+1-(c[fa+4>>2]|0)|0;if((ea|0)<=4?(ca=(c[fa+8>>2]|0)+1-(c[fa>>2]|0)|0,(ca|0)<=4):0)if((ea|0)>2|(ca|0)>2?(ye(fa)|0)>5:0){qa=c[y>>2]|0;ma=71}else ra=la;else{qa=ja;ma=71}if((ma|0)==71){ma=0;c[qa+(ka<<2)>>2]=c[qa+(la<<2)>>2];c[(c[y>>2]|0)+(la<<2)>>2]=fa;ra=la+1|0}fa=ka+1|0;if((fa|0)>=(pa|0)){sa=ra;break e}ja=c[y>>2]|0;ka=fa;la=ra}}else sa=0;while(0);if((sa|0)<(pa|0)){f=c[y>>2]|0;X=sa;while(1){la=c[f+(X<<2)>>2]|0;if(!la)ta=f;else{Qe(la);kt(la);ta=c[y>>2]|0}X=X+1|0;if((X|0)>=(pa|0))break;else f=ta}f=ta+(sa<<2)|0;pa=c[E>>2]|0;X=sa<<2>>2;if((f|0)!=(pa|0)){la=pa;pa=ta+((la-f>>2)+X<<2)|0;ka=la-pa|0;Uu(ta+(X<<2)|0,pa|0,ka|0)|0;pa=ta+((ka>>2)+X<<2)|0;X=c[E>>2]|0;if((X|0)==(pa|0))ua=pa;else{ka=X+(~((X+ -4+(0-pa)|0)>>>2)<<2)|0;c[E>>2]=ka;ua=ka}}else ua=f}else ua=c[E>>2]|0;f=c[y>>2]|0;ka=ua-f>>2;if(!ka){va=ua;wa=f}else{pa=ua;X=ua;la=f;f=ka;while(1){f=f+ -1|0;ka=c[la+(f<<2)>>2]|0;ja=(c[ka+12>>2]|0)+1-(c[ka+4>>2]|0)|0;fa=(c[ka+8>>2]|0)+1-(c[ka>>2]|0)|0;if((ja|0)>(fa*35|0)|(fa|0)>(ja*25|0)){if(!ka){xa=la;ya=X}else{Qe(ka);kt(ka);xa=c[y>>2]|0;ya=c[E>>2]|0}ka=f<<2>>2;ja=xa+(ka+1<<2)|0;fa=ya-ja|0;Uu(xa+(ka<<2)|0,ja|0,fa|0)|0;ja=xa+((fa>>2)+ka<<2)|0;ka=c[E>>2]|0;if((ka|0)==(ja|0)){za=ja;Aa=ja}else{fa=ka+(~((ka+ -4+(0-ja)|0)>>>2)<<2)|0;c[E>>2]=fa;za=fa;Aa=fa}}else{za=pa;Aa=X}fa=c[y>>2]|0;if(!f){va=za;wa=fa;break}else{pa=za;X=Aa;la=fa}}}la=va-wa|0;X=la>>2;if((la|0)>0){la=wa;pa=0;while(1){f=c[la+(pa<<2)>>2]|0;fa=f+12|0;ja=f+4|0;ka=c[ja>>2]|0;do if(((c[fa>>2]|0)+1-ka|0)>=11){ca=c[f>>2]|0;ea=f+8|0;B=c[ea>>2]|0;if((ca|0)<=(B|0)){ha=c[c[f+16>>2]>>2]|0;da=0;ba=ca;while(1){if(a[ha+(ba-ca)>>0]|0){D=da+1|0;if((da|0)>0){Ba=D;break}else Ca=D}else Ca=da;if((ba|0)<(B|0)){da=Ca;ba=ba+1|0}else{Ba=Ca;break}}if((Ba|0)>=2){Da=ca;Ea=B}else ma=98}else ma=98;if((ma|0)==98){ma=0;Te(f,ka+1|0);Da=c[f>>2]|0;Ea=c[ea>>2]|0}ba=c[fa>>2]|0;if((Da|0)<=(Ea|0)){da=c[(c[f+16>>2]|0)+((ba-(c[ja>>2]|0)|0)*12|0)>>2]|0;ha=0;D=Da;while(1){if(a[da+(D-Da)>>0]|0){P=ha+1|0;if((ha|0)>0){Fa=P;break}else Ga=P}else Ga=ha;if((D|0)<(Ea|0)){ha=Ga;D=D+1|0}else{Fa=Ga;break}}if((Fa|0)>=2)break}Ve(f,ba+ -1|0)}while(0);f=pa+1|0;if((f|0)>=(X|0))break;la=c[y>>2]|0;pa=f}Ha=c[E>>2]|0;Ia=c[y>>2]|0}else{Ha=va;Ia=wa}pa=Ha-Ia|0;la=pa>>2;if((pa|0)>0){pa=Ia;X=0;while(1){f=c[pa+(X<<2)>>2]|0;ja=f+8|0;fa=c[f>>2]|0;do if(((c[ja>>2]|0)+1-fa|0)>=6){ka=f+4|0;D=c[ka>>2]|0;ha=f+12|0;da=c[ha>>2]|0;if((D|0)<=(da|0)){ea=c[f+16>>2]|0;B=0;ca=D;while(1){if(a[c[ea+((ca-D|0)*12|0)>>2]>>0]|0){P=B+1|0;if((B|0)>0){Ja=P;break}else Ka=P}else Ka=B;if((ca|0)<(da|0)){B=Ka;ca=ca+1|0}else{Ja=Ka;break}}if((Ja|0)>=2){La=D;Ma=da}else ma=117}else ma=117;if((ma|0)==117){ma=0;Re(f,fa+1|0);La=c[ka>>2]|0;Ma=c[ha>>2]|0}ca=c[ja>>2]|0;if((La|0)<=(Ma|0)){B=c[f+16>>2]|0;ea=ca-(c[f>>2]|0)|0;ba=0;P=La;while(1){if(a[(c[B+((P-La|0)*12|0)>>2]|0)+ea>>0]|0){M=ba+1|0;if((ba|0)>0){Na=M;break}else Oa=M}else Oa=ba;if((P|0)<(Ma|0)){ba=Oa;P=P+1|0}else{Na=Oa;break}}if((Na|0)>=2)break}Ue(f,ca+ -1|0)}while(0);f=X+1|0;if((f|0)>=(la|0))break d;pa=c[y>>2]|0;X=f}}}while(0);do if(g){Na=c[G>>2]|0;Oa=c[b>>2]|0;if(((Na+1-Oa|0)>200?((c[R>>2]|0)+1-(c[N>>2]|0)|0)>200:0)?(Ma=c[E>>2]|0,La=c[y>>2]|0,Ma-La>>2>>>0>3):0){do if((La|0)!=(Ma|0)){Ja=fe(y)|0;Ka=c[c[y>>2]>>2]|0;c[r+0>>2]=c[Ka+0>>2];c[r+4>>2]=c[Ka+4>>2];c[r+8>>2]=c[Ka+8>>2];c[r+12>>2]=c[Ka+12>>2];Ia=r+16|0;Ha=c[r+4>>2]|0;wa=(c[r+12>>2]|0)+1|0;va=wa-Ha|0;Fa=c[Ka>>2]|0;Ga=c[Ka+8>>2]|0;c[Ia>>2]=0;Ka=r+20|0;c[Ka>>2]=0;Ea=r+24|0;c[Ea>>2]=0;if((wa|0)!=(Ha|0)){if(va>>>0>536870911)yp(Ia);Ha=it(va<<3)|0;c[Ka>>2]=Ha;c[Ia>>2]=Ha;c[Ea>>2]=Ha+(va<<3);Ea=va;va=Ha;do{if(!va)Pa=0;else{Ha=va;c[Ha>>2]=Fa;c[Ha+4>>2]=Ga;Pa=c[Ka>>2]|0}va=Pa+8|0;c[Ka>>2]=va;Ea=Ea+ -1|0}while((Ea|0)!=0)}Ea=r+28|0;c[Ea>>2]=0;va=r+32|0;c[va>>2]=0;c[r+36>>2]=0;Ga=e+4|0;Fa=c[Ga>>2]|0;Ha=e+8|0;if((Fa|0)==(c[Ha>>2]|0)){Ia=c[e>>2]|0;wa=((Fa-Ia|0)/40|0)+1|0;if(wa>>>0>107374182)yp(e);Da=Ia;Ia=(Fa-Da|0)/40|0;if(Ia>>>0<53687091){Ba=Ia<<1;Qa=Ba>>>0>>0?wa:Ba}else Qa=107374182;Ba=((c[Ga>>2]|0)-Da|0)/40|0;Da=j+12|0;c[Da>>2]=0;c[j+16>>2]=e+8;if(!Qa)Ra=0;else Ra=it(Qa*40|0)|0;c[j>>2]=Ra;wa=Ra+(Ba*40|0)|0;Ia=j+8|0;c[Ia>>2]=wa;Ca=j+4|0;c[Ca>>2]=wa;Aa=Ra+(Qa*40|0)|0;c[Da>>2]=Aa;do if(wa){c[wa+0>>2]=c[r+0>>2];c[wa+4>>2]=c[r+4>>2];c[wa+8>>2]=c[r+8>>2];c[wa+12>>2]=c[r+12>>2];za=Ra+(Ba*40|0)+16|0;c[za>>2]=0;xa=Ra+(Ba*40|0)+20|0;c[xa>>2]=0;ya=Ra+(Ba*40|0)+24|0;c[ya>>2]=0;ua=r+16|0;ta=(c[Ka>>2]|0)-(c[ua>>2]|0)|0;sa=ta>>3;do if(sa){if(sa>>>0>536870911)yp(za);ra=it(ta)|0;c[xa>>2]=ra;c[za>>2]=ra;c[ya>>2]=ra+(sa<<3);qa=c[ua>>2]|0;X=c[Ka>>2]|0;if((qa|0)==(X|0))break;else{Sa=qa;Ta=ra}do{if(!Ta)Ua=0;else{ra=Sa;qa=c[ra+4>>2]|0;pa=Ta;c[pa>>2]=c[ra>>2];c[pa+4>>2]=qa;Ua=c[xa>>2]|0}Ta=Ua+8|0;c[xa>>2]=Ta;Sa=Sa+8|0}while((Sa|0)!=(X|0))}while(0);xa=Ra+(Ba*40|0)+28|0;c[xa>>2]=0;ua=Ra+(Ba*40|0)+32|0;c[ua>>2]=0;sa=Ra+(Ba*40|0)+36|0;c[sa>>2]=0;ya=(c[va>>2]|0)-(c[Ea>>2]|0)|0;za=ya>>2;if(!za)break;if(za>>>0>1073741823)yp(xa);ta=it(ya)|0;c[ua>>2]=ta;c[xa>>2]=ta;c[sa>>2]=ta+(za<<2);za=c[Ea>>2]|0;sa=c[va>>2]|0;if((za|0)==(sa|0))break;else{Va=za;Wa=ta}do{if(!Wa)Xa=0;else{c[Wa>>2]=c[Va>>2];Xa=c[ua>>2]|0}Wa=Xa+4|0;c[ua>>2]=Wa;Va=Va+4|0}while((Va|0)!=(sa|0))}while(0);sa=Ra+((Ba+1|0)*40|0)|0;c[Ia>>2]=sa;ua=c[e>>2]|0;ta=c[Ga>>2]|0;do if((ta|0)!=(ua|0)){za=ta;xa=wa;f:while(1){ya=xa+ -40|0;ca=za;za=za+ -40|0;c[ya+0>>2]=c[za+0>>2];c[ya+4>>2]=c[za+4>>2];c[ya+8>>2]=c[za+8>>2];c[ya+12>>2]=c[za+12>>2];Ya=xa+ -24|0;c[Ya>>2]=0;ya=xa+ -20|0;c[ya>>2]=0;X=xa+ -16|0;c[X>>2]=0;ga=ca+ -20|0;$=ca+ -24|0;ia=(c[ga>>2]|0)-(c[$>>2]|0)|0;qa=ia>>3;do if(qa){if(qa>>>0>536870911){ma=181;break f}pa=it(ia)|0;c[ya>>2]=pa;c[Ya>>2]=pa;c[X>>2]=pa+(qa<<3);ra=c[$>>2]|0;la=c[ga>>2]|0;if((ra|0)==(la|0))break;else{Za=ra;_a=pa}do{if(!_a)$a=0;else{pa=Za;ra=c[pa+4>>2]|0;f=_a;c[f>>2]=c[pa>>2];c[f+4>>2]=ra;$a=c[ya>>2]|0}_a=$a+8|0;c[ya>>2]=_a;Za=Za+8|0}while((Za|0)!=(la|0))}while(0);ab=xa+ -12|0;c[ab>>2]=0;ya=xa+ -8|0;c[ya>>2]=0;ga=xa+ -4|0;c[ga>>2]=0;$=ca+ -8|0;qa=ca+ -12|0;X=(c[$>>2]|0)-(c[qa>>2]|0)|0;ia=X>>2;do if(ia){if(ia>>>0>1073741823){ma=188;break f}la=it(X)|0;c[ya>>2]=la;c[ab>>2]=la;c[ga>>2]=la+(ia<<2);ra=c[qa>>2]|0;f=c[$>>2]|0;if((ra|0)==(f|0))break;else{bb=ra;cb=la}do{if(!cb)db=0;else{c[cb>>2]=c[bb>>2];db=c[ya>>2]|0}cb=db+4|0;c[ya>>2]=cb;bb=bb+4|0}while((bb|0)!=(f|0))}while(0);xa=(c[Ca>>2]|0)+ -40|0;c[Ca>>2]=xa;if((za|0)==(ua|0)){ma=194;break}}if((ma|0)==181)yp(Ya);else if((ma|0)==188)yp(ab);else if((ma|0)==194){eb=xa;fb=c[e>>2]|0;gb=c[Ia>>2]|0;hb=c[Ga>>2]|0;ib=c[Da>>2]|0;break}}else{eb=wa;fb=ua;gb=sa;hb=ua;ib=Aa}while(0);c[e>>2]=eb;c[Ca>>2]=fb;c[Ga>>2]=gb;c[Ia>>2]=hb;Aa=c[Ha>>2]|0;c[Ha>>2]=ib;c[Da>>2]=Aa;c[j>>2]=fb;ee(j)}else{if(Fa){c[Fa+0>>2]=c[r+0>>2];c[Fa+4>>2]=c[r+4>>2];c[Fa+8>>2]=c[r+8>>2];c[Fa+12>>2]=c[r+12>>2];Aa=Fa+16|0;c[Aa>>2]=0;ua=Fa+20|0;c[ua>>2]=0;sa=Fa+24|0;c[sa>>2]=0;wa=r+16|0;ta=(c[Ka>>2]|0)-(c[wa>>2]|0)|0;Ba=ta>>3;if(Ba){if(Ba>>>0>536870911)yp(Aa);za=it(ta)|0;c[ua>>2]=za;c[Aa>>2]=za;c[sa>>2]=za+(Ba<<3);Ba=c[wa>>2]|0;wa=c[Ka>>2]|0;if((Ba|0)!=(wa|0)){sa=Ba;Ba=za;do{if(!Ba)jb=0;else{za=sa;Aa=c[za+4>>2]|0;ta=Ba;c[ta>>2]=c[za>>2];c[ta+4>>2]=Aa;jb=c[ua>>2]|0}Ba=jb+8|0;c[ua>>2]=Ba;sa=sa+8|0}while((sa|0)!=(wa|0))}}wa=Fa+28|0;c[wa>>2]=0;sa=Fa+32|0;c[sa>>2]=0;Ba=Fa+36|0;c[Ba>>2]=0;ua=(c[va>>2]|0)-(c[Ea>>2]|0)|0;Da=ua>>2;if(Da){if(Da>>>0>1073741823)yp(wa);Ia=it(ua)|0;c[sa>>2]=Ia;c[wa>>2]=Ia;c[Ba>>2]=Ia+(Da<<2);Da=c[Ea>>2]|0;Ba=c[va>>2]|0;if((Da|0)!=(Ba|0)){wa=Da;Da=Ia;do{if(!Da)kb=0;else{c[Da>>2]=c[wa>>2];kb=c[sa>>2]|0}Da=kb+4|0;c[sa>>2]=Da;wa=wa+4|0}while((wa|0)!=(Ba|0))}}}c[Ga>>2]=(c[Ga>>2]|0)+40}Ba=c[Ea>>2]|0;if(Ba){wa=c[va>>2]|0;if((wa|0)!=(Ba|0))c[va>>2]=wa+(~((wa+ -4+(0-Ba)|0)>>>2)<<2);kt(Ba)}Ba=c[r+16>>2]|0;if(Ba){wa=c[Ka>>2]|0;if((wa|0)!=(Ba|0))c[Ka>>2]=wa+(~((wa+ -8+(0-Ba)|0)>>>3)<<3);kt(Ba)}Ba=c[Ga>>2]|0;wa=c[y>>2]|0;Da=Ba+ -8|0;sa=c[Da>>2]|0;if((sa|0)==(c[Ba+ -4>>2]|0))ke(Ba+ -12|0,wa);else{if(!sa)lb=0;else{c[sa>>2]=c[wa>>2];lb=c[Da>>2]|0}c[Da>>2]=lb+4}Da=c[E>>2]|0;wa=c[y>>2]|0;sa=wa;g:do if(Da-sa>>2>>>0>1){Ba=Ja*10|0;Fa=t+16|0;Ia=t+12|0;ua=t+4|0;Ca=t+20|0;Aa=t+24|0;ta=t+28|0;za=t+32|0;ya=t+36|0;$=e+8|0;qa=j+12|0;ia=j+16|0;ga=j+8|0;X=j+4|0;ca=t+16|0;f=Ja<<1;la=wa;ra=1;h:while(1){pa=c[la+(ra<<2)>>2]|0;i:do if(((c[pa+12>>2]|0)+1-(c[pa+4>>2]|0)|0)>(Ba|0)){if(!pa)break;Qe(pa);kt(pa)}else{ja=c[e>>2]|0;do if((c[Ga>>2]|0)==(ja|0))mb=ja;else{fa=-1;P=0;ba=ja;while(1){do if((sh(ba+(P*40|0)|0,pa)|0)<(f|0)){if((fa|0)<0){nb=P;ob=P;break}ea=c[e>>2]|0;qh(ea+(fa*40|0)|0,ea+(P*40|0)|0);B=ea+(fa*40|0)+28|0;c[m>>2]=c[ea+(fa*40|0)+32>>2];ha=ea+(P*40|0)+28|0;c[n>>2]=c[ha>>2];ka=ea+(P*40|0)+32|0;c[o>>2]=c[ka>>2];c[l+0>>2]=c[m+0>>2];c[k+0>>2]=c[n+0>>2];c[j+0>>2]=c[o+0>>2];ie(p,B,l,k,j);B=c[ha>>2]|0;ha=c[ka>>2]|0;if((ha|0)!=(B|0))c[ka>>2]=ha+(~((ha+ -4+(0-B)|0)>>>2)<<2);B=c[e>>2]|0;ha=(P*40|0)/40|0;ka=B+(ha*40|0)|0;ea=ha+1|0;ha=B+(ea*40|0)|0;da=c[Ga>>2]|0;if((ha|0)==(da|0)){pb=ka;qb=ha}else{D=da+ -40+(0-ha)|0;M=ha;ha=ka;while(1){c[ha+0>>2]=c[M+0>>2];c[ha+4>>2]=c[M+4>>2];c[ha+8>>2]=c[M+8>>2];c[ha+12>>2]=c[M+12>>2];he(ha+16|0,c[M+16>>2]|0,c[M+20>>2]|0);ge(ha+28|0,c[M+28>>2]|0,c[M+32>>2]|0);M=M+40|0;if((M|0)==(da|0))break;else ha=ha+40|0}pb=B+((((D>>>0)/40|0)+ea|0)*40|0)|0;qb=c[Ga>>2]|0}if((qb|0)!=(pb|0)){ha=qb;do{c[Ga>>2]=ha+ -40;da=c[ha+ -12>>2]|0;if(da){M=ha+ -8|0;ka=c[M>>2]|0;if((ka|0)!=(da|0))c[M>>2]=ka+(~((ka+ -4+(0-da)|0)>>>2)<<2);kt(da)}da=c[ha+ -24>>2]|0;if(da){ka=ha+ -20|0;M=c[ka>>2]|0;if((M|0)!=(da|0))c[ka>>2]=M+(~((M+ -8+(0-da)|0)>>>3)<<3);kt(da)}ha=c[Ga>>2]|0}while((ha|0)!=(pb|0))}nb=fa;ob=P+ -1|0}else{nb=fa;ob=P}while(0);P=ob+1|0;ba=c[e>>2]|0;rb=c[Ga>>2]|0;if(P>>>0>=((rb-ba|0)/40|0)>>>0)break;else fa=nb}if((nb|0)<=-1){mb=rb;break}rh(ba+(nb*40|0)|0,pa);fa=c[e>>2]|0;c[s>>2]=pa;P=fa+(nb*40|0)+32|0;ha=c[P>>2]|0;if((ha|0)==(c[fa+(nb*40|0)+36>>2]|0)){ke(fa+(nb*40|0)+28|0,s);break i}if(!ha)sb=0;else{c[ha>>2]=pa;sb=c[P>>2]|0}c[P>>2]=sb+4;break i}while(0);c[t+0>>2]=c[pa+0>>2];c[t+4>>2]=c[pa+4>>2];c[t+8>>2]=c[pa+8>>2];c[t+12>>2]=c[pa+12>>2];ja=c[ua>>2]|0;P=(c[Ia>>2]|0)+1|0;ha=P-ja|0;fa=c[pa>>2]|0;ea=c[pa+8>>2]|0;c[Fa>>2]=0;c[Ca>>2]=0;c[Aa>>2]=0;if((P|0)==(ja|0))tb=mb;else{if(ha>>>0>536870911){ma=243;break h}ja=it(ha<<3)|0;c[Ca>>2]=ja;c[Fa>>2]=ja;c[Aa>>2]=ja+(ha<<3);P=ha;ha=ja;do{if(!ha)ub=0;else{ja=ha;c[ja>>2]=fa;c[ja+4>>2]=ea;ub=c[Ca>>2]|0}ha=ub+8|0;c[Ca>>2]=ha;P=P+ -1|0}while((P|0)!=0);tb=c[Ga>>2]|0}c[ta>>2]=0;c[za>>2]=0;c[ya>>2]=0;if((tb|0)==(c[Ha>>2]|0)){P=c[e>>2]|0;ha=((tb-P|0)/40|0)+1|0;if(ha>>>0>107374182){ma=267;break h}ea=P;P=(tb-ea|0)/40|0;if(P>>>0<53687091){fa=P<<1;vb=fa>>>0>>0?ha:fa}else vb=107374182;fa=((c[Ga>>2]|0)-ea|0)/40|0;c[qa>>2]=0;c[ia>>2]=$;if(!vb)wb=0;else wb=it(vb*40|0)|0;c[j>>2]=wb;ea=wb+(fa*40|0)|0;c[ga>>2]=ea;c[X>>2]=ea;ha=wb+(vb*40|0)|0;c[qa>>2]=ha;do if(ea){c[ea+0>>2]=c[t+0>>2];c[ea+4>>2]=c[t+4>>2];c[ea+8>>2]=c[t+8>>2];c[ea+12>>2]=c[t+12>>2];xb=wb+(fa*40|0)+16|0;c[xb>>2]=0;P=wb+(fa*40|0)+20|0;c[P>>2]=0;ja=wb+(fa*40|0)+24|0;c[ja>>2]=0;D=(c[Ca>>2]|0)-(c[ca>>2]|0)|0;B=D>>3;do if(B){if(B>>>0>536870911){ma=275;break h}da=it(D)|0;c[P>>2]=da;c[xb>>2]=da;c[ja>>2]=da+(B<<3);M=c[ca>>2]|0;ka=c[Ca>>2]|0;if((M|0)==(ka|0))break;else{yb=M;zb=da}do{if(!zb)Ab=0;else{da=yb;M=c[da+4>>2]|0;H=zb;c[H>>2]=c[da>>2];c[H+4>>2]=M;Ab=c[P>>2]|0}zb=Ab+8|0;c[P>>2]=zb;yb=yb+8|0}while((yb|0)!=(ka|0))}while(0);Bb=wb+(fa*40|0)+28|0;c[Bb>>2]=0;P=wb+(fa*40|0)+32|0;c[P>>2]=0;B=wb+(fa*40|0)+36|0;c[B>>2]=0;ja=(c[za>>2]|0)-(c[ta>>2]|0)|0;D=ja>>2;if(!D)break;if(D>>>0>1073741823){ma=282;break h}ba=it(ja)|0;c[P>>2]=ba;c[Bb>>2]=ba;c[B>>2]=ba+(D<<2);D=c[ta>>2]|0;B=c[za>>2]|0;if((D|0)==(B|0))break;else{Cb=D;Db=ba}do{if(!Db)Eb=0;else{c[Db>>2]=c[Cb>>2];Eb=c[P>>2]|0}Db=Eb+4|0;c[P>>2]=Db;Cb=Cb+4|0}while((Cb|0)!=(B|0))}while(0);B=wb+((fa+1|0)*40|0)|0;c[ga>>2]=B;P=c[e>>2]|0;ba=c[Ga>>2]|0;if((ba|0)==(P|0)){Fb=ea;Gb=P;Hb=B;Ib=P;Jb=ha}else{B=ba;ba=ea;do{D=ba+ -40|0;ja=B;B=B+ -40|0;c[D+0>>2]=c[B+0>>2];c[D+4>>2]=c[B+4>>2];c[D+8>>2]=c[B+8>>2];c[D+12>>2]=c[B+12>>2];Kb=ba+ -24|0;c[Kb>>2]=0;D=ba+ -20|0;c[D>>2]=0;ka=ba+ -16|0;c[ka>>2]=0;M=ja+ -20|0;H=ja+ -24|0;da=(c[M>>2]|0)-(c[H>>2]|0)|0;Q=da>>3;do if(Q){if(Q>>>0>536870911){ma=290;break h}O=it(da)|0;c[D>>2]=O;c[Kb>>2]=O;c[ka>>2]=O+(Q<<3);U=c[H>>2]|0;T=c[M>>2]|0;if((U|0)==(T|0))break;else{Lb=U;Mb=O}do{if(!Mb)Nb=0;else{O=Lb;U=c[O+4>>2]|0;S=Mb;c[S>>2]=c[O>>2];c[S+4>>2]=U;Nb=c[D>>2]|0}Mb=Nb+8|0;c[D>>2]=Mb;Lb=Lb+8|0}while((Lb|0)!=(T|0))}while(0);Ob=ba+ -12|0;c[Ob>>2]=0;D=ba+ -8|0;c[D>>2]=0;M=ba+ -4|0;c[M>>2]=0;H=ja+ -8|0;Q=ja+ -12|0;ka=(c[H>>2]|0)-(c[Q>>2]|0)|0;da=ka>>2;do if(da){if(da>>>0>1073741823){ma=297;break h}T=it(ka)|0;c[D>>2]=T;c[Ob>>2]=T;c[M>>2]=T+(da<<2);U=c[Q>>2]|0;S=c[H>>2]|0;if((U|0)==(S|0))break;else{Pb=U;Qb=T}do{if(!Qb)Rb=0;else{c[Qb>>2]=c[Pb>>2];Rb=c[D>>2]|0}Qb=Rb+4|0;c[D>>2]=Qb;Pb=Pb+4|0}while((Pb|0)!=(S|0))}while(0);ba=(c[X>>2]|0)+ -40|0;c[X>>2]=ba}while((B|0)!=(P|0));Fb=ba;Gb=c[e>>2]|0;Hb=c[ga>>2]|0;Ib=c[Ga>>2]|0;Jb=c[qa>>2]|0}c[e>>2]=Fb;c[X>>2]=Gb;c[Ga>>2]=Hb;c[ga>>2]=Ib;P=c[Ha>>2]|0;c[Ha>>2]=Jb;c[qa>>2]=P;c[j>>2]=Gb;ee(j)}else{do if(tb){c[tb+0>>2]=c[t+0>>2];c[tb+4>>2]=c[t+4>>2];c[tb+8>>2]=c[t+8>>2];c[tb+12>>2]=c[t+12>>2];Sb=tb+16|0;c[Sb>>2]=0;P=tb+20|0;c[P>>2]=0;B=tb+24|0;c[B>>2]=0;ea=(c[Ca>>2]|0)-(c[ca>>2]|0)|0;ha=ea>>3;do if(ha){if(ha>>>0>536870911){ma=253;break h}fa=it(ea)|0;c[P>>2]=fa;c[Sb>>2]=fa;c[B>>2]=fa+(ha<<3);D=c[ca>>2]|0;H=c[Ca>>2]|0;if((D|0)==(H|0))break;else{Tb=D;Ub=fa}do{if(!Ub)Vb=0;else{fa=Tb;D=c[fa+4>>2]|0;Q=Ub;c[Q>>2]=c[fa>>2];c[Q+4>>2]=D;Vb=c[P>>2]|0}Ub=Vb+8|0;c[P>>2]=Ub;Tb=Tb+8|0}while((Tb|0)!=(H|0))}while(0);Wb=tb+28|0;c[Wb>>2]=0;P=tb+32|0;c[P>>2]=0;ha=tb+36|0;c[ha>>2]=0;B=(c[za>>2]|0)-(c[ta>>2]|0)|0;ea=B>>2;if(!ea)break;if(ea>>>0>1073741823){ma=260;break h}H=it(B)|0;c[P>>2]=H;c[Wb>>2]=H;c[ha>>2]=H+(ea<<2);ea=c[ta>>2]|0;ha=c[za>>2]|0;if((ea|0)==(ha|0))break;else{Xb=ea;Yb=H}do{if(!Yb)Zb=0;else{c[Yb>>2]=c[Xb>>2];Zb=c[P>>2]|0}Yb=Zb+4|0;c[P>>2]=Yb;Xb=Xb+4|0}while((Xb|0)!=(ha|0))}while(0);c[Ga>>2]=(c[Ga>>2]|0)+40}ba=c[ta>>2]|0;if(ba){ha=c[za>>2]|0;if((ha|0)!=(ba|0))c[za>>2]=ha+(~((ha+ -4+(0-ba)|0)>>>2)<<2);kt(ba)}ba=c[ca>>2]|0;if(ba){ha=c[Ca>>2]|0;if((ha|0)!=(ba|0))c[Ca>>2]=ha+(~((ha+ -8+(0-ba)|0)>>>3)<<3);kt(ba)}ba=c[Ga>>2]|0;c[u>>2]=pa;ha=ba+ -8|0;P=c[ha>>2]|0;if((P|0)==(c[ba+ -4>>2]|0)){ke(ba+ -12|0,u);break}if(!P)_b=0;else{c[P>>2]=pa;_b=c[ha>>2]|0}c[ha>>2]=_b+4}while(0);ra=ra+1|0;pa=c[E>>2]|0;ha=c[y>>2]|0;P=ha;if(ra>>>0>=pa-P>>2>>>0){$b=pa;ac=ha;bc=P;break g}else la=ha}if((ma|0)==243)yp(Fa);else if((ma|0)==253)yp(Sb);else if((ma|0)==260)yp(Wb);else if((ma|0)==267)yp(e);else if((ma|0)==275)yp(xb);else if((ma|0)==282)yp(Bb);else if((ma|0)==290)yp(Kb);else if((ma|0)==297)yp(Ob)}else{$b=Da;ac=wa;bc=sa}while(0);if(($b|0)!=(ac|0))c[E>>2]=$b+(~(($b+ -4+(0-bc)|0)>>>2)<<2);sa=c[e>>2]|0;wa=c[Ga>>2]|0;if((sa|0)==(wa|0))cc=0;else cc=c[sa+12>>2]|0;c[v>>2]=0;Da=v+4|0;c[Da>>2]=0;Ha=v+8|0;c[Ha>>2]=0;Ja=(wa-sa|0)/40|0;do if(Ja>>>0>1){Ka=cc;va=1;Ea=sa;la=wa;while(1){do if((c[Ea+(va*40|0)+4>>2]|0)>(Ka|0)){c[w>>2]=va;ra=c[Da>>2]|0;if((ra|0)==(c[Ha>>2]|0)){vd(v,w);dc=c[Ga>>2]|0;ec=c[e>>2]|0;break}if(ra)c[ra>>2]=va;c[Da>>2]=ra+4;dc=la;ec=Ea}else{dc=la;ec=Ea}while(0);ra=c[ec+(va*40|0)+12>>2]|0;va=va+1|0;fc=(dc-ec|0)/40|0;if(va>>>0>=fc>>>0)break;else{Ka=(Ka|0)<(ra|0)?ra:Ka;Ea=ec;la=dc}}la=c[Da>>2]|0;Ea=c[Ha>>2]|0;c[x>>2]=fc;if((la|0)==(Ea|0)){ma=336;break}if(la)c[la>>2]=fc;Ea=la+4|0;c[Da>>2]=Ea;gc=Ea}else{c[x>>2]=Ja;ma=336}while(0);if((ma|0)==336){vd(v,x);gc=c[Da>>2]|0}Ja=c[v>>2]|0;j:do if((gc|0)!=(Ja|0)){Ha=q+16|0;wa=q+20|0;sa=q+24|0;Ea=q+28|0;la=q+32|0;Ka=q+36|0;va=q+28|0;Fa=q+16|0;ra=Ja;Ca=0;ca=0;k:while(1){za=c[ra+(ca<<2)>>2]|0;ta=Ca+1|0;qa=ta>>>0>>0;if(qa){ga=ta;X=Ca;while(1){$=X;ia=ga;do{ya=c[e>>2]|0;Aa=Rd(ya+(ia*40|0)|0,ya+($*40|0)|0)|0;$=Aa?ia:$;ia=ia+1|0}while(ia>>>0>>0);do if(($|0)!=(X|0)){ia=c[e>>2]|0;Aa=ia+(X*40|0)|0;ya=ia+($*40|0)|0;c[q+0>>2]=c[Aa+0>>2];c[q+4>>2]=c[Aa+4>>2];c[q+8>>2]=c[Aa+8>>2];c[q+12>>2]=c[Aa+12>>2];c[Ha>>2]=0;c[wa>>2]=0;c[sa>>2]=0;Ia=ia+(X*40|0)+20|0;ua=ia+(X*40|0)+16|0;f=(c[Ia>>2]|0)-(c[ua>>2]|0)|0;Ba=f>>3;do if(Ba){if(Ba>>>0>536870911){ma=346;break k}xa=it(f)|0;c[wa>>2]=xa;c[Ha>>2]=xa;c[sa>>2]=xa+(Ba<<3);ha=c[ua>>2]|0;P=c[Ia>>2]|0;if((ha|0)==(P|0))break;else{hc=ha;ic=xa}do{if(!ic)jc=0;else{xa=hc;ha=c[xa+4>>2]|0;pa=ic;c[pa>>2]=c[xa>>2];c[pa+4>>2]=ha;jc=c[wa>>2]|0}ic=jc+8|0;c[wa>>2]=ic;hc=hc+8|0}while((hc|0)!=(P|0))}while(0);Ia=ia+(X*40|0)+28|0;c[Ea>>2]=0;c[la>>2]=0;c[Ka>>2]=0;ua=ia+(X*40|0)+32|0;Ba=(c[ua>>2]|0)-(c[Ia>>2]|0)|0;f=Ba>>2;do if(f){if(f>>>0>1073741823){ma=353;break k}P=it(Ba)|0;c[la>>2]=P;c[Ea>>2]=P;c[Ka>>2]=P+(f<<2);ha=c[Ia>>2]|0;pa=c[ua>>2]|0;if((ha|0)==(pa|0))break;else{kc=ha;lc=P}do{if(!lc)mc=0;else{c[lc>>2]=c[kc>>2];mc=c[la>>2]|0}lc=mc+4|0;c[la>>2]=lc;kc=kc+4|0}while((kc|0)!=(pa|0))}while(0);c[Aa+0>>2]=c[ya+0>>2];c[Aa+4>>2]=c[ya+4>>2];c[Aa+8>>2]=c[ya+8>>2];c[Aa+12>>2]=c[ya+12>>2];he(ia+(X*40|0)+16|0,c[ia+($*40|0)+16>>2]|0,c[ia+($*40|0)+20>>2]|0);ge(Ia,c[ia+($*40|0)+28>>2]|0,c[ia+($*40|0)+32>>2]|0);c[ya+0>>2]=c[q+0>>2];c[ya+4>>2]=c[q+4>>2];c[ya+8>>2]=c[q+8>>2];c[ya+12>>2]=c[q+12>>2];if((q|0)!=(ya|0)){he(ia+($*40|0)+16|0,c[Fa>>2]|0,c[wa>>2]|0);ge(ia+($*40|0)+28|0,c[va>>2]|0,c[la>>2]|0)}ua=c[va>>2]|0;if(ua){f=c[la>>2]|0;if((f|0)!=(ua|0))c[la>>2]=f+(~((f+ -4+(0-ua)|0)>>>2)<<2);kt(ua)}ua=c[Fa>>2]|0;if(!ua)break;f=c[wa>>2]|0;if((f|0)!=(ua|0))c[wa>>2]=f+(~((f+ -8+(0-ua)|0)>>>3)<<3);kt(ua)}while(0);$=ga+1|0;if($>>>0>>0){ua=ga;ga=$;X=ua}else break}}X=za-Ca|0;ga=X>>>0>1;ua=Ca>>>0>>0;l:do if(ga&ua){$=Ca;f=c[e>>2]|0;while(1){if((c[f+($*40|0)+32>>2]|0)-(c[f+($*40|0)+28>>2]|0)>>2>>>0>80){ma=376;break l}Ba=Ud(f+($*40|0)|0,f+(Ca*40|0)|0)|0;f=c[e>>2]|0;if((Ba|0)>((c[f+($*40|0)+12>>2]|0)+2-(c[f+($*40|0)+4>>2]|0)+(c[f+(Ca*40|0)+12>>2]|0)-(c[f+(Ca*40|0)+4>>2]|0)|0)){ma=376;break l}$=$+1|0;if($>>>0>=za>>>0){nc=1;ma=373;break}}}else{nc=ga;ma=373}while(0);do if((ma|0)==373){ma=0;if(nc&ua){ga=Ca;do{$=c[e>>2]|0;f=c[$+(ga*40|0)+12>>2]|0;Ba=c[$+(ga*40|0)+4>>2]|0;pa=(f+1-Ba|0)<=((fe($+(ga*40|0)+28|0)|0)<<2|0);ga=ga+1|0}while(pa&ga>>>0>>0);oc=pa}else oc=nc;if(!oc){ma=376;break}ga=c[e>>2]|0;if(qa){pa=ta;$=ga;while(1){qh($+(Ca*40|0)|0,$+(pa*40|0)|0);Ba=$+(Ca*40|0)+28|0;c[m>>2]=c[$+(Ca*40|0)+32>>2];f=$+(pa*40|0)+28|0;c[n>>2]=c[f>>2];P=$+(pa*40|0)+32|0;c[o>>2]=c[P>>2];c[l+0>>2]=c[m+0>>2];c[k+0>>2]=c[n+0>>2];c[j+0>>2]=c[o+0>>2];ie(p,Ba,l,k,j);Ba=c[f>>2]|0;f=c[P>>2]|0;if((f|0)!=(Ba|0))c[P>>2]=f+(~((f+ -4+(0-Ba)|0)>>>2)<<2);pa=pa+1|0;Ba=c[e>>2]|0;if(pa>>>0>=za>>>0){pc=Ba;break}else $=Ba}}else pc=ga;$=(ta*40|0)/40|0;pa=pc+($*40|0)|0;do if((ta|0)!=(za|0)){Ba=pc+(((((za-ta|0)*40|0)/40|0)+$|0)*40|0)|0;f=c[Ga>>2]|0;if((Ba|0)==(f|0)){qc=pa;rc=Ba}else{P=f+ -40+(0-Ba)|0;ha=Ba;Ba=pa;while(1){c[Ba+0>>2]=c[ha+0>>2];c[Ba+4>>2]=c[ha+4>>2];c[Ba+8>>2]=c[ha+8>>2];c[Ba+12>>2]=c[ha+12>>2];if((Ba|0)!=(ha|0)){he(Ba+16|0,c[ha+16>>2]|0,c[ha+20>>2]|0);ge(Ba+28|0,c[ha+28>>2]|0,c[ha+32>>2]|0)}ha=ha+40|0;if((ha|0)==(f|0))break;else Ba=Ba+40|0}qc=pc+(($+1+((P>>>0)/40|0)|0)*40|0)|0;rc=c[Ga>>2]|0}if((rc|0)==(qc|0))break;else sc=rc;do{c[Ga>>2]=sc+ -40;Ba=c[sc+ -12>>2]|0;if(Ba){f=sc+ -8|0;ha=c[f>>2]|0;if((ha|0)!=(Ba|0))c[f>>2]=ha+(~((ha+ -4+(0-Ba)|0)>>>2)<<2);kt(Ba)}Ba=c[sc+ -24>>2]|0;if(Ba){ha=sc+ -20|0;f=c[ha>>2]|0;if((f|0)!=(Ba|0))c[ha>>2]=f+(~((f+ -8+(0-Ba)|0)>>>3)<<3);kt(Ba)}sc=c[Ga>>2]|0}while((sc|0)!=(qc|0))}while(0);$=c[Da>>2]|0;pa=c[v>>2]|0;ga=$-pa>>2;if(ca>>>0>=ga>>>0){tc=$;uc=pa;vc=ta;break}P=1-X|0;Ba=ca;do{f=pa+(Ba<<2)|0;c[f>>2]=P+(c[f>>2]|0);Ba=Ba+1|0}while((Ba|0)!=(ga|0));tc=$;uc=pa;vc=ta}while(0);if((ma|0)==376){ma=0;tc=c[Da>>2]|0;uc=c[v>>2]|0;vc=za}ca=ca+1|0;ta=uc;if(ca>>>0>=tc-ta>>2>>>0){wc=tc;xc=uc;yc=ta;break j}else{ra=uc;Ca=vc}}if((ma|0)==346)yp(Ha);else if((ma|0)==353)yp(Ea)}else{wc=gc;xc=gc;yc=Ja}while(0);if(!xc)break;if((wc|0)!=(xc|0))c[Da>>2]=wc+(~((wc+ -4+(0-yc)|0)>>>2)<<2);kt(xc)}while(0);if(!W){zc=e+4|0;break}Ma=c[e>>2]|0;La=e+4|0;Ja=c[La>>2]|0;if((Ja|0)==(Ma|0)?1:((Ja-Ma|0)/40|0)>>>0<2)zc=La;else{Ja=0;Ga=Ma;do{de(Ga+(Ja*40|0)|0,Ga+(Ja*40|0)+28|0);Ja=Ja+1|0;Ga=c[e>>2]|0}while(Ja>>>0<(((c[La>>2]|0)-Ga|0)/40|0)>>>0);zc=La}}else{Ac=Oa;Bc=Na;ma=410}}else{Ac=c[b>>2]|0;Bc=c[G>>2]|0;ma=410}while(0);if((ma|0)==410){c[C+0>>2]=c[b+0>>2];c[C+4>>2]=c[b+4>>2];c[C+8>>2]=c[b+8>>2];c[C+12>>2]=c[b+12>>2];b=C+16|0;G=c[C+4>>2]|0;W=(c[C+12>>2]|0)+1|0;xc=W-G|0;c[b>>2]=0;yc=C+20|0;c[yc>>2]=0;wc=C+24|0;c[wc>>2]=0;if((W|0)!=(G|0)){if(xc>>>0>536870911)yp(b);G=it(xc<<3)|0;c[yc>>2]=G;c[b>>2]=G;c[wc>>2]=G+(xc<<3);wc=xc;xc=G;do{if(!xc)Cc=0;else{G=xc;c[G>>2]=Ac;c[G+4>>2]=Bc;Cc=c[yc>>2]|0}xc=Cc+8|0;c[yc>>2]=xc;wc=wc+ -1|0}while((wc|0)!=0)}wc=C+28|0;c[wc>>2]=0;xc=C+32|0;c[xc>>2]=0;c[C+36>>2]=0;Cc=e+4|0;Bc=c[Cc>>2]|0;Ac=e+8|0;if((Bc|0)==(c[Ac>>2]|0)){G=c[e>>2]|0;b=((Bc-G|0)/40|0)+1|0;if(b>>>0>107374182)yp(e);W=G;G=(Bc-W|0)/40|0;if(G>>>0<53687091){gc=G<<1;Dc=gc>>>0>>0?b:gc}else Dc=107374182;gc=((c[Cc>>2]|0)-W|0)/40|0;W=j+12|0;c[W>>2]=0;c[j+16>>2]=e+8;if(!Dc)Ec=0;else Ec=it(Dc*40|0)|0;c[j>>2]=Ec;b=Ec+(gc*40|0)|0;G=j+8|0;c[G>>2]=b;vc=j+4|0;c[vc>>2]=b;uc=Ec+(Dc*40|0)|0;c[W>>2]=uc;if(b){c[b+0>>2]=c[C+0>>2];c[b+4>>2]=c[C+4>>2];c[b+8>>2]=c[C+8>>2];c[b+12>>2]=c[C+12>>2];Dc=Ec+(gc*40|0)+16|0;c[Dc>>2]=0;tc=Ec+(gc*40|0)+20|0;c[tc>>2]=0;v=Ec+(gc*40|0)+24|0;c[v>>2]=0;qc=C+16|0;sc=(c[yc>>2]|0)-(c[qc>>2]|0)|0;rc=sc>>3;if(rc){if(rc>>>0>536870911)yp(Dc);pc=it(sc)|0;c[tc>>2]=pc;c[Dc>>2]=pc;c[v>>2]=pc+(rc<<3);rc=c[qc>>2]|0;qc=c[yc>>2]|0;if((rc|0)!=(qc|0)){v=rc;rc=pc;do{if(!rc)Fc=0;else{pc=v;Dc=c[pc+4>>2]|0;sc=rc;c[sc>>2]=c[pc>>2];c[sc+4>>2]=Dc;Fc=c[tc>>2]|0}rc=Fc+8|0;c[tc>>2]=rc;v=v+8|0}while((v|0)!=(qc|0))}}qc=Ec+(gc*40|0)+28|0;c[qc>>2]=0;v=Ec+(gc*40|0)+32|0;c[v>>2]=0;rc=Ec+(gc*40|0)+36|0;c[rc>>2]=0;tc=(c[xc>>2]|0)-(c[wc>>2]|0)|0;Fc=tc>>2;if(Fc){if(Fc>>>0>1073741823)yp(qc);Dc=it(tc)|0;c[v>>2]=Dc;c[qc>>2]=Dc;c[rc>>2]=Dc+(Fc<<2);Fc=c[wc>>2]|0;rc=c[xc>>2]|0;if((Fc|0)!=(rc|0)){qc=Fc;Fc=Dc;do{if(!Fc)Gc=0;else{c[Fc>>2]=c[qc>>2];Gc=c[v>>2]|0}Fc=Gc+4|0;c[v>>2]=Fc;qc=qc+4|0}while((qc|0)!=(rc|0))}}}rc=Ec+((gc+1|0)*40|0)|0;c[G>>2]=rc;gc=c[e>>2]|0;Ec=c[Cc>>2]|0;do if((Ec|0)!=(gc|0)){qc=Ec;Fc=b;m:while(1){v=Fc+ -40|0;Gc=qc;qc=qc+ -40|0;c[v+0>>2]=c[qc+0>>2];c[v+4>>2]=c[qc+4>>2];c[v+8>>2]=c[qc+8>>2];c[v+12>>2]=c[qc+12>>2];Hc=Fc+ -24|0;c[Hc>>2]=0;v=Fc+ -20|0;c[v>>2]=0;Dc=Fc+ -16|0;c[Dc>>2]=0;tc=Gc+ -20|0;sc=Gc+ -24|0;pc=(c[tc>>2]|0)-(c[sc>>2]|0)|0;k=pc>>3;if(k){if(k>>>0>536870911){ma=458;break}l=it(pc)|0;c[v>>2]=l;c[Hc>>2]=l;c[Dc>>2]=l+(k<<3);k=c[sc>>2]|0;sc=c[tc>>2]|0;if((k|0)!=(sc|0)){tc=k;k=l;do{if(!k)Ic=0;else{l=tc;Dc=c[l+4>>2]|0;pc=k;c[pc>>2]=c[l>>2];c[pc+4>>2]=Dc;Ic=c[v>>2]|0}k=Ic+8|0;c[v>>2]=k;tc=tc+8|0}while((tc|0)!=(sc|0))}}Jc=Fc+ -12|0;c[Jc>>2]=0;sc=Fc+ -8|0;c[sc>>2]=0;tc=Fc+ -4|0;c[tc>>2]=0;k=Gc+ -8|0;v=Gc+ -12|0;Da=(c[k>>2]|0)-(c[v>>2]|0)|0;Dc=Da>>2;do if(Dc){if(Dc>>>0>1073741823){ma=465;break m}pc=it(Da)|0;c[sc>>2]=pc;c[Jc>>2]=pc;c[tc>>2]=pc+(Dc<<2);l=c[v>>2]|0;p=c[k>>2]|0;if((l|0)==(p|0))break;else{Kc=l;Lc=pc}do{if(!Lc)Mc=0;else{c[Lc>>2]=c[Kc>>2];Mc=c[sc>>2]|0}Lc=Mc+4|0;c[sc>>2]=Lc;Kc=Kc+4|0}while((Kc|0)!=(p|0))}while(0);Fc=(c[vc>>2]|0)+ -40|0;c[vc>>2]=Fc;if((qc|0)==(gc|0)){ma=471;break}}if((ma|0)==458)yp(Hc);else if((ma|0)==465)yp(Jc);else if((ma|0)==471){Nc=Fc;Oc=c[e>>2]|0;Pc=c[G>>2]|0;Qc=c[Cc>>2]|0;Rc=c[W>>2]|0;break}}else{Nc=b;Oc=gc;Pc=rc;Qc=gc;Rc=uc}while(0);c[e>>2]=Nc;c[vc>>2]=Oc;c[Cc>>2]=Pc;c[G>>2]=Qc;Qc=c[Ac>>2]|0;c[Ac>>2]=Rc;c[W>>2]=Qc;c[j>>2]=Oc;ee(j)}else{if(Bc){c[Bc+0>>2]=c[C+0>>2];c[Bc+4>>2]=c[C+4>>2];c[Bc+8>>2]=c[C+8>>2];c[Bc+12>>2]=c[C+12>>2];j=Bc+16|0;c[j>>2]=0;Oc=Bc+20|0;c[Oc>>2]=0;Qc=Bc+24|0;c[Qc>>2]=0;W=C+16|0;Rc=(c[yc>>2]|0)-(c[W>>2]|0)|0;Ac=Rc>>3;if(Ac){if(Ac>>>0>536870911)yp(j);G=it(Rc)|0;c[Oc>>2]=G;c[j>>2]=G;c[Qc>>2]=G+(Ac<<3);Ac=c[W>>2]|0;W=c[yc>>2]|0;if((Ac|0)!=(W|0)){Qc=Ac;Ac=G;do{if(!Ac)Sc=0;else{G=Qc;j=c[G+4>>2]|0;Rc=Ac;c[Rc>>2]=c[G>>2];c[Rc+4>>2]=j;Sc=c[Oc>>2]|0}Ac=Sc+8|0;c[Oc>>2]=Ac;Qc=Qc+8|0}while((Qc|0)!=(W|0))}}W=Bc+28|0;c[W>>2]=0;Qc=Bc+32|0;c[Qc>>2]=0;Ac=Bc+36|0;c[Ac>>2]=0;Bc=(c[xc>>2]|0)-(c[wc>>2]|0)|0;Oc=Bc>>2;if(Oc){if(Oc>>>0>1073741823)yp(W);Sc=it(Bc)|0;c[Qc>>2]=Sc;c[W>>2]=Sc;c[Ac>>2]=Sc+(Oc<<2);Oc=c[wc>>2]|0;Ac=c[xc>>2]|0;if((Oc|0)!=(Ac|0)){W=Oc;Oc=Sc;do{if(!Oc)Tc=0;else{c[Oc>>2]=c[W>>2];Tc=c[Qc>>2]|0}Oc=Tc+4|0;c[Qc>>2]=Oc;W=W+4|0}while((W|0)!=(Ac|0))}}}c[Cc>>2]=(c[Cc>>2]|0)+40}Ac=c[wc>>2]|0;if(Ac){wc=c[xc>>2]|0;if((wc|0)!=(Ac|0))c[xc>>2]=wc+(~((wc+ -4+(0-Ac)|0)>>>2)<<2);kt(Ac)}Ac=c[C+16>>2]|0;if(Ac){C=c[yc>>2]|0;if((C|0)!=(Ac|0))c[yc>>2]=C+(~((C+ -8+(0-Ac)|0)>>>3)<<3);kt(Ac)}Ac=c[Cc>>2]|0;C=Ac+ -12|0;yc=c[C>>2]|0;c[C>>2]=c[y>>2];c[y>>2]=yc;yc=Ac+ -8|0;C=c[yc>>2]|0;c[yc>>2]=c[E>>2];c[E>>2]=C;C=Ac+ -4|0;Ac=c[C>>2]|0;c[C>>2]=c[F>>2];c[F>>2]=Ac;zc=Cc}Cc=c[e>>2]|0;Ac=c[zc>>2]|0;if((Ac|0)!=(Cc|0)){F=0;C=Cc;Cc=Ac;while(1){Ac=C+(F*40|0)+32|0;yc=C+(F*40|0)+28|0;wc=c[yc>>2]|0;if((c[Ac>>2]|0)==(wc|0)){Uc=C;Vc=Cc}else{xc=wc;wc=0;do{af(c[xc+(wc<<2)>>2]|0);wc=wc+1|0;xc=c[yc>>2]|0}while(wc>>>0<(c[Ac>>2]|0)-xc>>2>>>0);Uc=c[e>>2]|0;Vc=c[zc>>2]|0}F=F+1|0;if(F>>>0>=((Vc-Uc|0)/40|0)>>>0)break;else{C=Uc;Cc=Vc}}}Vc=c[A>>2]|0;if(Vc){A=c[K>>2]|0;if((A|0)!=(Vc|0))c[K>>2]=A+(~((A+ -4+(0-Vc)|0)>>>2)<<2);kt(Vc)}Vc=c[z>>2]|0;if(Vc){z=c[L>>2]|0;if((z|0)!=(Vc|0))c[L>>2]=z+(~((z+ -4+(0-Vc)|0)>>>2)<<2);kt(Vc)}Vc=c[y>>2]|0;if(!Vc){i=h;return}y=c[E>>2]|0;if((y|0)!=(Vc|0))c[E>>2]=y+(~((y+ -4+(0-Vc)|0)>>>2)<<2);kt(Vc);i=h;return}function Yd(a){a=a|0;ab(a|0)|0;st()}function Zd(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;b=i;d=a+32|0;e=a+28|0;f=c[e>>2]|0;g=(c[d>>2]|0)-f|0;if((g|0)>0){h=f;j=g>>2;while(1){j=j+ -1|0;g=c[h+(j<<2)>>2]|0;if(!g)k=h;else{ff(g);kt(g);k=c[e>>2]|0}if((j|0)<=0){l=k;break}else h=k}}else l=f;if(!l){m=a+16|0;gj(m);i=b;return}f=c[d>>2]|0;if((f|0)!=(l|0))c[d>>2]=f+(~((f+ -4+(0-l)|0)>>>2)<<2);kt(l);m=a+16|0;gj(m);i=b;return}function _d(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((b|0)<0)Eh(1224);e=c[a+28>>2]|0;if(((c[a+32>>2]|0)-e>>2|0)>(b|0)){i=d;return c[e+(b<<2)>>2]|0}else Eh(1224);return 0}function $d(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;i=i+32|0;f=e;g=d+20|0;h=c[g>>2]|0;if(!h){i=e;return}j=b+16|0;if(!(a[j>>0]&1))k=j+1|0;else k=c[b+24>>2]|0;c[f>>2]=k;Ob(h|0,1272,f|0)|0;h=c[g>>2]|0;k=b+32|0;j=b+28|0;c[f>>2]=(c[k>>2]|0)-(c[j>>2]|0)>>2;Ob(h|0,1288,f|0)|0;h=c[j>>2]|0;if(((c[k>>2]|0)-h|0)>0){l=h;m=0}else{i=e;return}do{h=c[l+(m<<2)>>2]|0;b=c[g>>2]|0;m=m+1|0;n=c[h>>2]|0;o=c[h+4>>2]|0;p=1-n+(c[h+8>>2]|0)|0;q=1-o+(c[h+12>>2]|0)|0;c[f>>2]=m;c[f+4>>2]=n;c[f+8>>2]=o;c[f+12>>2]=p;c[f+16>>2]=q;Ob(b|0,1312,f|0)|0;kf(h,d);l=c[j>>2]|0}while((m|0)<((c[k>>2]|0)-l>>2|0));i=e;return}function ae(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=a+4|0;f=c[a>>2]|0;g=((c[e>>2]|0)-f>>2)+1|0;if(g>>>0>1073741823)yp(a);h=a+8|0;j=f;k=(c[h>>2]|0)-j|0;if(k>>2>>>0<536870911){l=k>>1;k=l>>>0>>0?g:l;l=(c[e>>2]|0)-j|0;g=l>>2;if(!k){m=0;n=0;o=g;p=l}else{q=k;r=g;s=l;t=6}}else{l=(c[e>>2]|0)-j|0;q=1073741823;r=l>>2;s=l;t=6}if((t|0)==6){m=q;n=it(q<<2)|0;o=r;p=s}s=n+(o<<2)|0;if(s)c[s>>2]=c[b>>2];Tu(n|0,f|0,p|0)|0;c[a>>2]=n;c[e>>2]=n+(o+1<<2);c[h>>2]=n+(m<<2);if(!f){i=d;return}kt(f);i=d;return}function be(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;b=i;d=c[a>>2]|0;if(!d){i=b;return}e=a+4|0;f=c[e>>2]|0;if((f|0)==(d|0))g=d;else{h=f;do{c[e>>2]=h+ -40;f=c[h+ -12>>2]|0;if(f){j=h+ -8|0;k=c[j>>2]|0;if((k|0)!=(f|0))c[j>>2]=k+(~((k+ -4+(0-f)|0)>>>2)<<2);kt(f)}f=c[h+ -24>>2]|0;if(f){k=h+ -20|0;j=c[k>>2]|0;if((j|0)!=(f|0))c[k>>2]=j+(~((j+ -8+(0-f)|0)>>>3)<<3);kt(f)}h=c[e>>2]|0}while((h|0)!=(d|0));g=c[a>>2]|0}kt(g);i=b;return}function ce(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;c[b>>2]=0;f=b+4|0;c[f>>2]=0;g=b+8|0;c[g>>2]=0;h=d+4|0;j=c[h>>2]|0;k=c[d>>2]|0;l=j-k|0;m=(l|0)/12|0;if((j|0)==(k|0)){i=e;return}if(m>>>0>357913941)yp(b);k=it(l)|0;c[f>>2]=k;c[b>>2]=k;c[g>>2]=k+(m*12|0);m=c[d>>2]|0;d=c[h>>2]|0;if((m|0)==(d|0)){i=e;return}else{n=m;o=k}while(1){if((o|0)!=0?(c[o>>2]=0,k=o+4|0,c[k>>2]=0,m=o+8|0,c[m>>2]=0,h=n+4|0,g=c[h>>2]|0,b=c[n>>2]|0,l=g-b|0,(g|0)!=(b|0)):0){if((l|0)<0){p=8;break}b=it(l)|0;c[k>>2]=b;c[o>>2]=b;c[m>>2]=b+l;l=c[n>>2]|0;m=c[h>>2]|0;if((l|0)!=(m|0)){h=l;l=b;do{if(!l)q=0;else{a[l>>0]=a[h>>0]|0;q=c[k>>2]|0}l=q+1|0;c[k>>2]=l;h=h+1|0}while((h|0)!=(m|0))}}m=(c[f>>2]|0)+12|0;c[f>>2]=m;n=n+12|0;if((n|0)==(d|0)){p=14;break}else o=m}if((p|0)==8)yp(o);else if((p|0)==14){i=e;return}}function de(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0;d=i;e=b+4|0;f=c[e>>2]|0;g=c[b>>2]|0;if((f|0)==(g|0)){i=d;return}h=a+8|0;j=a+12|0;k=a+4|0;l=f;m=f;f=g;g=0;a:while(1){n=g<<2>>2;o=n+1|0;p=f;q=l;r=m;while(1){s=c[p+(g<<2)>>2]|0;t=s+8|0;if(((c[t>>2]|0)+1-(c[s>>2]|0)<<1|0)<((c[h>>2]|0)+1-(c[a>>2]|0)|0))break;u=p+(o<<2)|0;v=r-u|0;Uu(p+(n<<2)|0,u|0,v|0)|0;u=p+((v>>2)+n<<2)|0;v=c[e>>2]|0;if((v|0)!=(u|0))c[e>>2]=v+(~((v+ -4+(0-u)|0)>>>2)<<2);u=(ye(s)|0)<<2;v=s+12|0;w=c[v>>2]|0;x=s+4|0;y=c[x>>2]|0;z=w+1-y|0;A=c[t>>2]|0;B=c[s>>2]|0;C=A+1-B|0;b:do if((u|0)<=(da(z*3|0,C)|0)){D=c[b>>2]|0;E=(c[e>>2]|0)-D>>2;c:do if(g>>>0>>0){F=0;G=g;while(1){H=c[D+(G<<2)>>2]|0;I=c[H+4>>2]|0;if((I|0)>(w|0)){J=F;break c}K=((da((c[H+8>>2]|0)+1-(c[H>>2]|0)|0,1-I+(c[H+12>>2]|0)|0)|0)>15&1)+F|0;G=G+1|0;if(G>>>0>=E>>>0){J=K;break}else F=K}}else J=0;while(0);if((J|0)<=((da(C,z)|0)/400|0|0)){E=(ye(s)|0)<<2;if((E|0)<=(da((c[t>>2]|0)+1-(c[s>>2]|0)|0,(c[v>>2]|0)+1-(c[x>>2]|0)|0)|0)){if(!s)break;Qe(s);kt(s);break}af(s);E=s+32|0;D=s+28|0;F=(c[E>>2]|0)-(c[D>>2]|0)|0;G=c[v>>2]|0;K=c[x>>2]|0;H=G+1-K|0;I=c[t>>2]|0;L=c[s>>2]|0;M=I+1-L|0;if((F|0)>0?(F>>2|0)<(((M|0)<(H|0)?M:H)|0):0){H=0;while(1){M=We(s,H)|0;F=da((c[M+12>>2]|0)+1-(c[M+4>>2]|0)<<2,(c[M+8>>2]|0)+1-(c[M>>2]|0)|0)|0;M=c[v>>2]|0;N=c[x>>2]|0;O=c[t>>2]|0;P=c[s>>2]|0;if((F|0)>=(da(O+1-P|0,M+1-N|0)|0)){F=(ye(We(s,H)|0)|0)<<2;Q=c[v>>2]|0;R=c[x>>2]|0;S=c[t>>2]|0;T=c[s>>2]|0;if((F|0)<(da(S+1-T|0,Q+1-R|0)|0)){U=R;V=Q;W=T;X=S}else break}else{U=N;V=M;W=P;X=O}H=H+1|0;if((H|0)>=((c[E>>2]|0)-(c[D>>2]|0)>>2|0)){Y=X;Z=W;_=V;$=U;aa=23;break b}}if(s){Qe(s);kt(s)}}else{Y=I;Z=L;_=G;$=K;aa=23}}else{Y=A;Z=B;_=w;$=y;aa=23}}else{Y=A;Z=B;_=w;$=y;aa=23}while(0);if((aa|0)==23){aa=0;if(((Y+1-Z|0)*5|0)>((c[h>>2]|0)+1-(c[a>>2]|0)<<2|0)?((_+1-$|0)*5|0)>((c[j>>2]|0)+1-(c[k>>2]|0)<<2|0):0){aa=25;break a}y=c[b>>2]|0;w=(c[e>>2]|0)-y>>2;d:do if(w>>>0>g>>>0){B=y;A=w;while(1){t=A+ -1|0;x=c[B+(t<<2)>>2]|0;if(Ed(s,x)|0){if(x){Qe(x);kt(x)}x=c[b>>2]|0;v=t<<2>>2;z=x+(v+1<<2)|0;C=(c[e>>2]|0)-z|0;Uu(x+(v<<2)|0,z|0,C|0)|0;z=x+((C>>2)+v<<2)|0;v=c[e>>2]|0;if((v|0)!=(z|0))c[e>>2]=v+(~((v+ -4+(0-z)|0)>>>2)<<2)}if(t>>>0<=g>>>0)break d;B=c[b>>2]|0;A=t}}while(0);if(s){Qe(s);kt(s)}}w=c[e>>2]|0;y=c[b>>2]|0;r=w;if(g>>>0>=r-y>>2>>>0){aa=43;break a}else{p=y;q=w}}g=g+1|0;m=q;if(g>>>0>=m-p>>2>>>0){aa=43;break}else{l=q;f=p}}if((aa|0)==25){f=c[e>>2]|0;l=c[b>>2]|0;if((f|0)!=(l|0)){m=l;l=f;f=0;while(1){g=c[m+(f<<2)>>2]|0;if(!g){ba=l;ca=m}else{Qe(g);kt(g);ba=c[e>>2]|0;ca=c[b>>2]|0}f=f+1|0;ea=ca;if(f>>>0>=ba-ea>>2>>>0)break;else{m=ca;l=ba}}if((ba|0)!=(ca|0))c[e>>2]=ba+(~((ba+ -4+(0-ea)|0)>>>2)<<2)}if(!s){i=d;return}Qe(s);kt(s);i=d;return}else if((aa|0)==43){i=d;return}}function ee(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;d=c[a+4>>2]|0;e=a+8|0;f=c[e>>2]|0;if((f|0)!=(d|0)){g=f;do{c[e>>2]=g+ -40;f=c[g+ -12>>2]|0;if(f){h=g+ -8|0;j=c[h>>2]|0;if((j|0)!=(f|0))c[h>>2]=j+(~((j+ -4+(0-f)|0)>>>2)<<2);kt(f)}f=c[g+ -24>>2]|0;if(f){j=g+ -20|0;h=c[j>>2]|0;if((h|0)!=(f|0))c[j>>2]=h+(~((h+ -8+(0-f)|0)>>>3)<<3);kt(f)}g=c[e>>2]|0}while((g|0)!=(d|0))}d=c[a>>2]|0;if(!d){i=b;return}kt(d);i=b;return}function fe(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;b=i;i=i+16|0;d=b;c[d>>2]=0;e=d+4|0;c[e>>2]=0;c[d+8>>2]=0;f=a+4|0;g=c[f>>2]|0;h=c[a>>2]|0;if((g|0)==(h|0)){j=0;i=b;return j|0}else{k=g;l=0;m=h;n=0;o=0}while(1){h=c[m+(n<<2)>>2]|0;g=(c[h+12>>2]|0)+1-(c[h+4>>2]|0)|0;if(g>>>0>9?((c[h+8>>2]|0)+1-(c[h>>2]|0)|0)>>>0<(g*3|0)>>>0:0){h=c[e>>2]|0;p=h-l>>2;do if(g>>>0>=p>>>0){q=g+1|0;if(p>>>0>>0){je(d,q-p|0);r=c[f>>2]|0;s=c[a>>2]|0;t=c[d>>2]|0;break}if(p>>>0>q>>>0?(u=l+(q<<2)|0,(h|0)!=(u|0)):0){c[e>>2]=h+(~((h+ -4+(0-u)|0)>>>2)<<2);r=k;s=m;t=l}else{r=k;s=m;t=l}}else{r=k;s=m;t=l}while(0);h=t+(g<<2)|0;c[h>>2]=(c[h>>2]|0)+1;v=r;w=s;x=t;y=o+1|0}else{v=k;w=m;x=l;y=o}n=n+1|0;if(n>>>0>=v-w>>2>>>0)break;else{k=v;l=x;m=w;o=y}}o=c[e>>2]|0;if((x|0)==(o|0))if((v|0)==(w|0)){z=o;A=o;B=0}else{m=v;v=w;w=o;l=o;k=0;n=y;while(1){t=c[v+(k<<2)>>2]|0;s=(c[t+12>>2]|0)+1-(c[t+4>>2]|0)|0;t=w-l>>2;do if(s>>>0>=t>>>0){r=s+1|0;if(t>>>0>>0){je(d,r-t|0);C=c[d>>2]|0;D=c[f>>2]|0;E=c[a>>2]|0;break}if(t>>>0>r>>>0?(h=l+(r<<2)|0,(w|0)!=(h|0)):0){c[e>>2]=w+(~((w+ -4+(0-h)|0)>>>2)<<2);C=l;D=m;E=v}else{C=l;D=m;E=v}}else{C=l;D=m;E=v}while(0);t=C+(s<<2)|0;c[t>>2]=(c[t>>2]|0)+1;t=n+1|0;k=k+1|0;g=c[e>>2]|0;if(k>>>0>=D-E>>2>>>0){F=g;G=C;H=t;I=20;break}else{m=D;v=E;w=g;l=C;n=t}}}else{F=o;G=x;H=y;I=20}if((I|0)==20)if((F|0)!=(G|0)){I=F-G>>2;y=H*9|0;x=0;o=0;n=0;C=0;while(1){l=c[G+(o<<2)>>2]|0;w=x;x=l+x|0;if((x*10|0)>>>0>=H>>>0&(w*10|0)>>>0>>0){J=(da(l,o)|0)+n|0;K=l+C|0}else{J=n;K=C}o=o+1|0;if(o>>>0>=I>>>0)break;else{n=J;C=K}}if(!K){z=G;A=F;B=J}else{z=G;A=F;B=(J|0)/(K|0)|0}}else{z=G;A=G;B=0}if(!z){j=B;i=b;return j|0}if((A|0)!=(z|0))c[e>>2]=A+(~((A+ -4+(0-z)|0)>>>2)<<2);kt(z);j=B;i=b;return j|0}function ge(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;f=b;g=d-f>>2;h=a+8|0;j=c[h>>2]|0;k=c[a>>2]|0;l=k;if(g>>>0<=j-l>>2>>>0){m=a+4|0;n=(c[m>>2]|0)-l|0;o=n>>2;if(g>>>0<=o>>>0){p=d-f|0;Uu(k|0,b|0,p|0)|0;f=k+(p>>2<<2)|0;p=c[m>>2]|0;if((p|0)==(f|0)){i=e;return}c[m>>2]=p+(~((p+ -4+(0-f)|0)>>>2)<<2);i=e;return}f=b+(o<<2)|0;Uu(k|0,b|0,n|0)|0;if((f|0)==(d|0)){i=e;return}n=f;f=c[m>>2]|0;do{if(!f)q=0;else{c[f>>2]=c[n>>2];q=c[m>>2]|0}f=q+4|0;c[m>>2]=f;n=n+4|0}while((n|0)!=(d|0));i=e;return}if(!k)r=j;else{j=a+4|0;n=c[j>>2]|0;if((n|0)!=(k|0))c[j>>2]=n+(~((n+ -4+(0-l)|0)>>>2)<<2);kt(k);c[h>>2]=0;c[j>>2]=0;c[a>>2]=0;r=0}if(g>>>0>1073741823)yp(a);j=r-0|0;if(j>>2>>>0<536870911){r=j>>1;j=r>>>0>>0?g:r;if(j>>>0>1073741823)yp(a);else s=j}else s=1073741823;j=it(s<<2)|0;r=a+4|0;c[r>>2]=j;c[a>>2]=j;c[h>>2]=j+(s<<2);if((b|0)==(d|0)){i=e;return}else{t=b;u=j}do{if(!u)v=0;else{c[u>>2]=c[t>>2];v=c[r>>2]|0}u=v+4|0;c[r>>2]=u;t=t+4|0}while((t|0)!=(d|0));i=e;return}function he(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=i;f=b;g=d-f>>3;h=a+8|0;j=c[h>>2]|0;k=c[a>>2]|0;l=k;if(g>>>0<=j-l>>3>>>0){m=a+4|0;n=(c[m>>2]|0)-l|0;o=n>>3;if(g>>>0<=o>>>0){p=d-f|0;Uu(k|0,b|0,p|0)|0;f=k+(p>>3<<3)|0;p=c[m>>2]|0;if((p|0)==(f|0)){i=e;return}c[m>>2]=p+(~((p+ -8+(0-f)|0)>>>3)<<3);i=e;return}f=b+(o<<3)|0;Uu(k|0,b|0,n|0)|0;if((f|0)==(d|0)){i=e;return}n=f;f=c[m>>2]|0;do{if(!f)q=0;else{o=n;p=c[o+4>>2]|0;r=f;c[r>>2]=c[o>>2];c[r+4>>2]=p;q=c[m>>2]|0}f=q+8|0;c[m>>2]=f;n=n+8|0}while((n|0)!=(d|0));i=e;return}if(!k)s=j;else{j=a+4|0;n=c[j>>2]|0;if((n|0)!=(k|0))c[j>>2]=n+(~((n+ -8+(0-l)|0)>>>3)<<3);kt(k);c[h>>2]=0;c[j>>2]=0;c[a>>2]=0;s=0}if(g>>>0>536870911)yp(a);j=s-0|0;if(j>>3>>>0<268435455){s=j>>2;j=s>>>0>>0?g:s;if(j>>>0>536870911)yp(a);else t=j}else t=536870911;j=it(t<<3)|0;s=a+4|0;c[s>>2]=j;c[a>>2]=j;c[h>>2]=j+(t<<3);if((b|0)==(d|0)){i=e;return}else{u=b;v=j}do{if(!v)w=0;else{j=u;b=c[j+4>>2]|0;t=v;c[t>>2]=c[j>>2];c[t+4>>2]=b;w=c[s>>2]|0}v=w+8|0;c[s>>2]=v;u=u+8|0}while((u|0)!=(d|0));i=e;return}function ie(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;g=i;h=c[b>>2]|0;j=h;k=(c[d>>2]|0)-j>>2;d=h+(k<<2)|0;l=c[e>>2]|0;m=c[f>>2]|0;f=m-l|0;n=f>>2;if((f|0)<=0){o=d;c[a>>2]=o;i=g;return}f=b+8|0;p=c[f>>2]|0;q=b+4|0;r=c[q>>2]|0;s=r;if((n|0)<=(p-s>>2|0)){t=s-d>>2;if((n|0)>(t|0)){u=l+(t<<2)|0;if((u|0)==(m|0)){v=r;w=m;x=t}else{y=r;z=u;while(1){if(!y)A=0;else{c[y>>2]=c[z>>2];A=c[q>>2]|0}B=A+4|0;c[q>>2]=B;z=z+4|0;if((z|0)==(m|0)){v=B;w=u;x=t;break}else y=B}}}else{v=r;w=m;x=n}if((x|0)<=0){o=d;c[a>>2]=o;i=g;return}x=v-(h+(n+k<<2))|0;y=x>>2;t=h+(y+k<<2)|0;if(t>>>0>>0){k=v;u=t;do{if(!k)C=0;else{c[k>>2]=c[u>>2];C=c[q>>2]|0}u=u+4|0;k=C+4|0;c[q>>2]=k}while(u>>>0>>0);D=c[e>>2]|0}else D=l;Uu(v+(0-y<<2)|0,d|0,x|0)|0;Uu(d|0,D|0,w-D|0)|0;o=d;c[a>>2]=o;i=g;return}D=(s-j>>2)+n|0;if(D>>>0>1073741823)yp(b);n=h;j=p-n|0;if(j>>2>>>0<536870911){p=j>>1;j=p>>>0>>0?D:p;p=d;D=p-n>>2;if(!j){E=0;F=0;G=D;H=p}else{I=j;J=D;K=p;L=20}}else{p=d;I=1073741823;J=p-n>>2;K=p;L=20}if((L|0)==20){E=I;F=it(I<<2)|0;G=J;H=K}K=F+(G<<2)|0;J=F+(E<<2)|0;if((l|0)==(m|0)){M=K;N=h}else{h=K;E=l;do{if(!h)O=0;else{c[h>>2]=c[E>>2];O=h}h=O+4|0;E=E+4|0}while((E|0)!=(m|0));M=h;N=c[b>>2]|0}h=H-N|0;m=F+(G-(h>>2)<<2)|0;Tu(m|0,N|0,h|0)|0;h=(c[q>>2]|0)-H|0;Tu(M|0,d|0,h|0)|0;d=c[b>>2]|0;c[b>>2]=m;c[q>>2]=M+(h>>2<<2);c[f>>2]=J;if(!d){o=K;c[a>>2]=o;i=g;return}kt(d);o=K;c[a>>2]=o;i=g;return}function je(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=a+8|0;f=c[e>>2]|0;g=a+4|0;h=c[g>>2]|0;j=h;if(f-j>>2>>>0>=b>>>0){k=b;l=h;while(1){if(l)c[l>>2]=0;k=k+ -1|0;if(!k)break;else l=l+4|0}c[g>>2]=h+(b<<2);i=d;return}h=c[a>>2]|0;l=(j-h>>2)+b|0;if(l>>>0>1073741823)yp(a);j=h;k=f-j|0;if(k>>2>>>0<536870911){f=k>>1;k=f>>>0>>0?l:f;f=(c[g>>2]|0)-j|0;l=f>>2;if(!k){m=0;n=0;o=l;p=f}else{q=k;r=l;s=f;t=11}}else{f=(c[g>>2]|0)-j|0;q=1073741823;r=f>>2;s=f;t=11}if((t|0)==11){m=q;n=it(q<<2)|0;o=r;p=s}s=b;r=n+(o<<2)|0;while(1){if(r)c[r>>2]=0;s=s+ -1|0;if(!s)break;else r=r+4|0}Tu(n|0,h|0,p|0)|0;c[a>>2]=n;c[g>>2]=n+(o+b<<2);c[e>>2]=n+(m<<2);if(!h){i=d;return}kt(h);i=d;return} + + + +function dg(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var 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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;h=i;i=i+368|0;j=h;k=h+24|0;l=f|g;if(l){g=c[d+16>>2]|0;m=b+32|0;n=b+28|0;c[j>>2]=(c[m>>2]|0)-(c[n>>2]|0)>>3;Ob(g|0,2008,j|0)|0;o=n;p=m}else{o=b+28|0;p=b+32|0}m=c[o>>2]|0;n=d+16|0;do if(((c[p>>2]|0)-m|0)>0){g=d+29|0;if(l){q=m;r=0}else{s=c[m>>2]|0;if((s|0)==9){t=c[n>>2]|0;c[j>>2]=c[m+4>>2];Ob(t|0,2024,j|0)|0;break}if(a[g>>0]|0){t=c[n>>2]|0;u=Jf(s)|0;v=c[(c[o>>2]|0)+4>>2]|0;c[j>>2]=u;c[j+4>>2]=v;Ob(t|0,2088,j|0)|0;break}t=If(s)|0;if(!(t<<24>>24))break;s=c[n>>2]|0;v=c[(c[o>>2]|0)+4>>2]|0;c[j>>2]=t&255;c[j+4>>2]=v;Ob(s|0,2056,j|0)|0;break}do{s=c[q+(r<<3)>>2]|0;do if((s|0)!=9){if(a[g>>0]|0){v=c[n>>2]|0;t=Jf(s)|0;u=c[(c[o>>2]|0)+(r<<3)+4>>2]|0;c[j>>2]=t;c[j+4>>2]=u;Ob(v|0,2088,j|0)|0;break}v=If(s)|0;if(v<<24>>24){u=c[n>>2]|0;t=c[(c[o>>2]|0)+(r<<3)+4>>2]|0;c[j>>2]=v&255;c[j+4>>2]=t;Ob(u|0,2056,j|0)|0}}else{u=c[n>>2]|0;c[j>>2]=c[q+(r<<3)+4>>2];Ob(u|0,2024,j|0)|0}while(0);r=r+1|0;q=c[o>>2]|0}while((r|0)<((c[p>>2]|0)-q>>3|0))}while(0);Eb(10,c[n>>2]|0)|0;if(!f){i=h;return}f=c[n>>2]|0;q=b+4|0;p=c[q>>2]|0;r=b+8|0;o=c[r>>2]|0;m=b+12|0;l=c[m>>2]|0;c[j>>2]=c[b>>2];c[j+4>>2]=p;c[j+8>>2]=o;c[j+12>>2]=l;Ob(f|0,2120,j|0)|0;f=c[n>>2]|0;l=c[r>>2]|0;o=c[b>>2]|0;p=l+1-o|0;d=c[m>>2]|0;g=c[q>>2]|0;s=d+1-g|0;u=(o+l|0)/2|0;t=(g+d|0)/2|0;v=b+20|0;w=b+16|0;x=c[w>>2]|0;if(((c[v>>2]|0)-x|0)>0){y=x;x=0;z=0;do{x=(ye(c[y+(z<<2)>>2]|0)|0)+x|0;z=z+1|0;y=c[w>>2]|0}while((z|0)<((c[v>>2]|0)-y>>2|0));A=c[m>>2]|0;B=c[q>>2]|0;C=c[r>>2]|0;D=c[b>>2]|0;E=x*100|0}else{A=d;B=g;C=l;D=o;E=0}o=(E|0)/(da(C+1-D|0,A+1-B|0)|0)|0;c[j>>2]=p;c[j+4>>2]=s;c[j+8>>2]=u;c[j+12>>2]=t;c[j+16>>2]=o;Ob(f|0,2168,j|0)|0;f=c[w>>2]|0;o=(c[v>>2]|0)-f|0;do if((o+ -1|0)>>>0<15)if((o|0)<4)Eh(1824);else{uh(k,c[f+((o>>2)+ -1<<2)>>2]|0);t=c[n>>2]|0;u=vh(k)|0;s=wh(k)|0;c[j>>2]=u;c[j+4>>2]=s;Ob(t|0,2240,j|0)|0;tf(k);break}while(0);Eb(10,c[n>>2]|0)|0;k=c[q>>2]|0;o=e+4|0;f=c[o>>2]|0;t=(f|0)<(k|0)?f:k;s=c[m>>2]|0;u=e+12|0;e=c[u>>2]|0;p=(s|0)<(e|0)?e:s;a:do if((t|0)<=(p|0)){B=k;A=s;D=f;C=e;E=t;while(1){l=(E|0)==(B|0);g=(E|0)==((A+B|0)/2|0|0);d=(E|0)==(A|0);x=(E|0)==(D|0);y=(E|0)==((C+D|0)/2|0|0);z=(E|0)==(C|0);F=c[w>>2]|0;if(((c[v>>2]|0)-F|0)==4?(G=c[F>>2]|0,F=G+32|0,H=G+28|0,(c[F>>2]|0)!=(c[H>>2]|0)):0){I=(E|0)==(c[(We(G,0)|0)+4>>2]|0);J=(E|0)==(c[(We(G,0)|0)+12>>2]|0);if(((c[F>>2]|0)-(c[H>>2]|0)|0)>4){H=(E|0)==(c[(We(G,1)|0)+4>>2]|0);K=J;L=I;M=(E|0)==(c[(We(G,1)|0)+12>>2]|0);N=H}else{K=J;L=I;M=0;N=0}}else{K=0;L=0;M=0;N=0}I=c[b>>2]|0;J=c[r>>2]|0;b:do if((I|0)<=(J|0)){if(g){O=J;P=I}else{H=I;while(1){G=c[w>>2]|0;c:do if(((c[v>>2]|0)-G|0)>0){F=G;Q=0;while(1){R=Xe(c[F+(Q<<2)>>2]|0,E,H)|0;Q=Q+1|0;if(R)break;F=c[w>>2]|0;if((Q|0)>=((c[v>>2]|0)-F>>2|0)){S=46;break c}}S=(R|0)>0?79:45}else S=46;while(0);G=c[n>>2]|0;c[j>>2]=S;Ob(G|0,2264,j|0)|0;if((H|0)<(c[r>>2]|0))H=H+1|0;else break b}}while(1){H=(P|0)==(((c[b>>2]|0)+O|0)/2|0|0);G=H?43:46;F=c[w>>2]|0;d:do if(((c[v>>2]|0)-F|0)>0){Q=F;T=0;while(1){U=Xe(c[Q+(T<<2)>>2]|0,E,P)|0;T=T+1|0;if(U)break;Q=c[w>>2]|0;if((T|0)>=((c[v>>2]|0)-Q>>2|0)){V=G;break d}}if((U|0)>0){V=H?67:79;break}else{V=H?61:45;break}}else V=G;while(0);G=c[n>>2]|0;c[j>>2]=V;Ob(G|0,2264,j|0)|0;O=c[r>>2]|0;if((P|0)>=(O|0))break;else P=P+1|0}}while(0);if(l){I=c[n>>2]|0;c[j>>2]=B;Ob(I|0,2272,j|0)|0}if(g){I=c[n>>2]|0;c[j>>2]=E;Ob(I|0,2288,j|0)|0}if(d){I=c[n>>2]|0;c[j>>2]=A;Ob(I|0,2304,j|0)|0}if(x){I=c[n>>2]|0;c[j>>2]=D;Ob(I|0,2320,j|0)|0}if(y){I=c[n>>2]|0;c[j>>2]=E;Ob(I|0,2336,j|0)|0}if(z){I=c[n>>2]|0;c[j>>2]=C;Ob(I|0,2360,j|0)|0}if(L){I=c[n>>2]|0;c[j>>2]=E;Ob(I|0,2384,j|0)|0}if(K){I=c[n>>2]|0;c[j>>2]=E;Ob(I|0,2400,j|0)|0}if(N){I=c[n>>2]|0;c[j>>2]=E;Ob(I|0,2416,j|0)|0}if(M){I=c[n>>2]|0;c[j>>2]=E;Ob(I|0,2432,j|0)|0}Eb(10,c[n>>2]|0)|0;if((E|0)>=(p|0))break a;B=c[q>>2]|0;A=c[m>>2]|0;D=c[o>>2]|0;C=c[u>>2]|0;E=E+1|0}}while(0);Mb(2448,2,1,c[n>>2]|0)|0;i=h;return}function eg(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;e=i;i=i+32|0;f=e;g=d+20|0;h=c[g>>2]|0;j=c[b>>2]|0;k=c[b+4>>2]|0;l=1-j+(c[b+8>>2]|0)|0;m=1-k+(c[b+12>>2]|0)|0;n=b+32|0;o=b+28|0;b=(c[n>>2]|0)-(c[o>>2]|0)>>3;c[f>>2]=j;c[f+4>>2]=k;c[f+8>>2]=l;c[f+12>>2]=m;c[f+16>>2]=b;Ob(h|0,2456,f|0)|0;h=c[o>>2]|0;if(((c[n>>2]|0)-h|0)<=0){p=c[g>>2]|0;Eb(10,p|0)|0;i=e;return}b=d+29|0;d=h;h=0;do{if(!(a[b>>0]|0)){m=If(c[d+(h<<3)>>2]|0)|0;l=c[g>>2]|0;k=c[(c[o>>2]|0)+(h<<3)+4>>2]|0;c[f>>2]=m<<24>>24!=0?m&255:95;c[f+4>>2]=k;Ob(l|0,2480,f|0)|0}else{l=c[g>>2]|0;k=Jf(c[d+(h<<3)>>2]|0)|0;m=c[(c[o>>2]|0)+(h<<3)+4>>2]|0;c[f>>2]=k;c[f+4>>2]=m;Ob(l|0,2496,f|0)|0}h=h+1|0;d=c[o>>2]|0}while((h|0)<((c[n>>2]|0)-d>>3|0));p=c[g>>2]|0;Eb(10,p|0)|0;i=e;return}function fg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;d=i;e=a+32|0;f=a+28|0;g=c[f>>2]|0;if((c[e>>2]|0)==(g|0)){i=d;return}h=c[g>>2]|0;switch(b|0){case 1:{j=1;k=4;break};case 0:{j=0;k=4;break};case 2:{l=0;k=22;break};case 6:{m=1;k=37;break};case 5:{m=0;k=37;break};case 3:{l=1;k=22;break};default:{i=d;return}}if((k|0)==4){if(yf(h)|0){i=d;return}if(Gf(h)|0){i=d;return}b=c[f>>2]|0;a:do if(((c[e>>2]|0)-b|0)>8){g=b;n=1;while(1){o=yf(c[g+(n<<3)>>2]|0)|0;p=n+1|0;q=c[f>>2]|0;r=(c[e>>2]|0)-q|0;s=r>>3;if(o)break;if((p|0)<(s|0)){g=q;n=p}else{t=q;break a}}if((n|0)>-1&(r|0)>0&(s|0)>(n|0)){g=c[q>>2]|0;p=q+(n<<3)|0;c[q>>2]=c[p>>2];c[p>>2]=g;t=q;break}else Eh(1928)}else t=b;while(0);b=c[t>>2]|0;if((b|0)==43?((c[a+12>>2]|0)+1-(c[a+4>>2]|0)<<1|0)>(((c[a+8>>2]|0)+1-(c[a>>2]|0)|0)*3|0):0){c[t>>2]=116;i=d;return}if(!(yf(b)|0)){b=Lf(c[c[f>>2]>>2]|0)|0;c[c[f>>2]>>2]=b}if(!j){i=d;return}if(yf(c[c[f>>2]>>2]|0)|0){i=d;return}j=c[f>>2]|0;b=c[e>>2]|0;if((b|0)==(j|0)){i=d;return}c[e>>2]=b+(~((b+ -8+(0-j)|0)>>>3)<<3);i=d;return}else if((k|0)==22){if(zf(h)|0){i=d;return}if(Gf(h)|0){i=d;return}j=c[f>>2]|0;b:do if(((c[e>>2]|0)-j|0)>8){b=j;t=1;while(1){a=zf(c[b+(t<<3)>>2]|0)|0;q=t+1|0;u=c[f>>2]|0;v=(c[e>>2]|0)-u|0;w=v>>3;if(a)break;if((q|0)<(w|0)){b=u;t=q}else{x=u;break b}}if((t|0)>-1&(v|0)>0&(w|0)>(t|0)){b=c[u>>2]|0;n=u+(t<<3)|0;c[u>>2]=c[n>>2];c[n>>2]=b;x=u;break}else Eh(1928)}else x=j;while(0);if(!(zf(c[x>>2]|0)|0)){x=Kf(c[c[f>>2]>>2]|0)|0;c[c[f>>2]>>2]=x}if(!l){i=d;return}if(zf(c[c[f>>2]>>2]|0)|0){i=d;return}l=c[f>>2]|0;x=c[e>>2]|0;if((x|0)==(l|0)){i=d;return}c[e>>2]=x+(~((x+ -8+(0-l)|0)>>>3)<<3);i=d;return}else if((k|0)==37){if(Bf(h)|0){i=d;return}if(zf(h)|0){i=d;return}if(Gf(h)|0){i=d;return}h=c[f>>2]|0;c:do if(((c[e>>2]|0)-h|0)>8){k=h;l=1;while(1){if(Bf(c[k+(l<<3)>>2]|0)|0)break;x=l+1|0;if(zf(c[(c[f>>2]|0)+(l<<3)>>2]|0)|0)break;j=c[f>>2]|0;if((x|0)<((c[e>>2]|0)-j>>3|0)){k=j;l=x}else{y=j;break c}}k=c[f>>2]|0;t=(c[e>>2]|0)-k|0;if((l|0)>-1&(t|0)>0&(t>>3|0)>(l|0)){t=c[k>>2]|0;j=k+(l<<3)|0;c[k>>2]=c[j>>2];c[j>>2]=t;y=k;break}else Eh(1928)}else y=h;while(0);if(!(Bf(c[y>>2]|0)|0)?!(zf(c[c[f>>2]>>2]|0)|0):0){y=Mf(c[c[f>>2]>>2]|0)|0;c[c[f>>2]>>2]=y}if(!m){i=d;return}if(Bf(c[c[f>>2]>>2]|0)|0){i=d;return}if(zf(c[c[f>>2]>>2]|0)|0){i=d;return}m=c[f>>2]|0;f=c[e>>2]|0;if((f|0)==(m|0)){i=d;return}c[e>>2]=f+(~((f+ -8+(0-m)|0)>>>3)<<3);i=d;return}}function gg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=i;f=b;g=d-f>>3;h=a+8|0;j=c[h>>2]|0;k=c[a>>2]|0;l=k;if(g>>>0<=j-l>>3>>>0){m=a+4|0;n=(c[m>>2]|0)-l|0;o=n>>3;if(g>>>0<=o>>>0){p=d-f|0;Uu(k|0,b|0,p|0)|0;f=k+(p>>3<<3)|0;p=c[m>>2]|0;if((p|0)==(f|0)){i=e;return}c[m>>2]=p+(~((p+ -8+(0-f)|0)>>>3)<<3);i=e;return}f=b+(o<<3)|0;Uu(k|0,b|0,n|0)|0;if((f|0)==(d|0)){i=e;return}n=f;f=c[m>>2]|0;do{if(!f)q=0;else{o=n;p=c[o+4>>2]|0;r=f;c[r>>2]=c[o>>2];c[r+4>>2]=p;q=c[m>>2]|0}f=q+8|0;c[m>>2]=f;n=n+8|0}while((n|0)!=(d|0));i=e;return}if(!k)s=j;else{j=a+4|0;n=c[j>>2]|0;if((n|0)!=(k|0))c[j>>2]=n+(~((n+ -8+(0-l)|0)>>>3)<<3);kt(k);c[h>>2]=0;c[j>>2]=0;c[a>>2]=0;s=0}if(g>>>0>536870911)yp(a);j=s-0|0;if(j>>3>>>0<268435455){s=j>>2;j=s>>>0>>0?g:s;if(j>>>0>536870911)yp(a);else t=j}else t=536870911;j=it(t<<3)|0;s=a+4|0;c[s>>2]=j;c[a>>2]=j;c[h>>2]=j+(t<<3);if((b|0)==(d|0)){i=e;return}else{u=b;v=j}do{if(!v)w=0;else{j=u;b=c[j+4>>2]|0;t=v;c[t>>2]=c[j>>2];c[t+4>>2]=b;w=c[s>>2]|0}v=w+8|0;c[s>>2]=v;u=u+8|0}while((u|0)!=(d|0));i=e;return}function hg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;b=i;d=a+20|0;e=c[d>>2]|0;f=a+16|0;g=c[f>>2]|0;if((e|0)==(g|0)){h=e;j=e;k=g}else{l=e;e=g;g=0;while(1){m=c[e+(g<<2)>>2]|0;if(!m){n=l;o=e}else{Qf(m);kt(m);n=c[d>>2]|0;o=c[f>>2]|0}g=g+1|0;m=o;if(g>>>0>=n-m>>2>>>0){h=n;j=o;k=m;break}else{l=n;e=o}}}if(j){if((h|0)!=(j|0))c[d>>2]=h+(~((h+ -4+(0-k)|0)>>>2)<<2);kt(j)}j=c[a>>2]|0;if(!j){i=b;return}k=a+4|0;a=c[k>>2]|0;if((a|0)!=(j|0))c[k>>2]=a+(~(((a+ -20+(0-j)|0)>>>0)/20|0)*20|0);kt(j);i=b;return}function ig(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;b=i;i=i+16|0;d=b;c[d>>2]=0;e=d+4|0;c[e>>2]=0;f=d+8|0;c[f>>2]=0;g=c[a+12>>2]|0;h=a+20|0;j=a+16|0;k=c[j>>2]|0;if(g>>>0<(c[h>>2]|0)-k>>2>>>0){l=k;k=g;do{do if(!($f(c[l+(k<<2)>>2]|0,32)|0)){g=c[(c[j>>2]|0)+(k<<2)>>2]|0;m=c[e>>2]|0;if((m|0)==(c[f>>2]|0)){Ag(d,g);break}if(!m)n=0;else{c[m+0>>2]=c[g+0>>2];c[m+4>>2]=c[g+4>>2];c[m+8>>2]=c[g+8>>2];c[m+12>>2]=c[g+12>>2];n=m}c[e>>2]=n+16}while(0);k=k+1|0;l=c[j>>2]|0}while(k>>>0<(c[h>>2]|0)-l>>2>>>0)}Bg(a,d);a=c[d>>2]|0;if(!a){i=b;return}d=c[e>>2]|0;if((d|0)!=(a|0))c[e>>2]=d+(~((d+ -16+(0-a)|0)>>>4)<<4);kt(a);i=b;return}function jg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;b=i;d=a+12|0;e=c[d>>2]|0;if((e|0)<=0){i=b;return}f=a+16|0;g=a+20|0;a=c[g>>2]|0;h=e;e=c[f>>2]|0;while(1){j=c[e+(h+ -1<<2)>>2]|0;k=(c[j+12>>2]|0)+1-(c[j+4>>2]|0)|0;if((h|0)<(a-e>>2|0)){j=e;l=0;m=h;n=0;while(1){if($f(c[j+(m<<2)>>2]|0,32)|0){o=c[f>>2]|0;p=l;q=n}else{r=c[f>>2]|0;s=c[r+(m<<2)>>2]|0;o=r;p=l+1|0;q=n+1+(c[s+12>>2]|0)-(c[s+4>>2]|0)|0}m=m+1|0;t=c[g>>2]|0;if((m|0)>=(t-o>>2|0))break;else{j=o;l=p;n=q}}if(!p){u=t;v=o;w=q}else{u=t;v=o;w=(q|0)/(p|0)|0}}else{u=a;v=e;w=0}if((k|0)>(w<<1|0)){x=12;break}h=(c[d>>2]|0)+ -1|0;c[d>>2]=h;if((h|0)<=0){x=12;break}else{a=u;e=v}}if((x|0)==12){i=b;return}}function kg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;b=i;d=c[a+12>>2]|0;e=a+20|0;f=a+16|0;a=c[f>>2]|0;if((d|0)<((c[e>>2]|0)-a>>2|0)){g=a;h=0;j=d;k=0}else{l=0;i=b;return l|0}while(1){if($f(c[g+(j<<2)>>2]|0,32)|0){m=c[f>>2]|0;n=h;o=k}else{d=c[f>>2]|0;a=c[d+(j<<2)>>2]|0;m=d;n=h+1|0;o=k+1+(c[a+12>>2]|0)-(c[a+4>>2]|0)|0}j=j+1|0;if((j|0)>=((c[e>>2]|0)-m>>2|0))break;else{g=m;h=n;k=o}}if(!n){l=o;i=b;return l|0}l=(o|0)/(n|0)|0;i=b;return l|0}function lg(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((b|0)<0)Eh(2512);e=c[a+16>>2]|0;if(((c[a+20>>2]|0)-e>>2|0)>(b|0)){i=d;return c[e+(b<<2)>>2]|0}else Eh(2512);return 0}function mg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=a+20|0;f=a+16|0;a=c[f>>2]|0;if(((c[e>>2]|0)-a|0)>0){g=a;h=0}else{j=0;i=d;return j|0}while(1){a=h+1|0;if(Kd(c[g+(h<<2)>>2]|0,b)|0)break;g=c[f>>2]|0;if((a|0)>=((c[e>>2]|0)-g>>2|0)){j=0;k=5;break}else h=a}if((k|0)==5){i=d;return j|0}j=c[(c[f>>2]|0)+(h<<2)>>2]|0;i=d;return j|0}function ng(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;f=c[d>>2]|0;g=d+8|0;h=Eg(b,((c[g>>2]|0)+f|0)/2|0)|0;j=c[g>>2]|0;wd(a,f,h,j,Dg(b,((c[d>>2]|0)+j|0)/2|0)|0);i=e;return}function og(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;if((b|0)<0)Eh(2544);if(((c[a+20>>2]|0)-(c[a+16>>2]|0)>>2|0)<=(b|0))Eh(2544);e=a+12|0;f=c[e>>2]|0;if((f|0)>(b|0))c[e>>2]=f+ -1;f=a+16|0;e=c[f>>2]|0;g=c[e+(b<<2)>>2]|0;if(!g)h=e;else{Qf(g);kt(g);h=c[f>>2]|0}f=b<<2>>2;b=h+(f+1<<2)|0;g=a+20|0;a=(c[g>>2]|0)-b|0;Uu(h+(f<<2)|0,b|0,a|0)|0;b=h+((a>>2)+f<<2)|0;f=c[g>>2]|0;if((f|0)==(b|0)){i=d;return}c[g>>2]=f+(~((f+ -4+(0-b)|0)>>>2)<<2);i=d;return}function pg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+16|0;f=e+12|0;g=e+8|0;h=e+4|0;j=e;c[g>>2]=b;b=a+16|0;k=(c[a+20>>2]|0)-(c[b>>2]|0)>>2;while(1){if((k|0)<=0)break;l=k+ -1|0;if(Sd(c[g>>2]|0,c[(c[b>>2]|0)+(l<<2)>>2]|0)|0)k=l;else break}b=a+16|0;c[h>>2]=(c[b>>2]|0)+(k<<2);c[f+0>>2]=c[h+0>>2];qg(j,b,f,g);g=a+12|0;a=c[g>>2]|0;if((k|0)<(a|0)){c[g>>2]=a+1;i=e;return k|0}if(!d){i=e;return k|0}c[g>>2]=k+1;i=e;return k|0}function qg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=i;g=c[b>>2]|0;h=g;j=(c[d>>2]|0)-h>>2;d=g+(j<<2)|0;k=b+4|0;l=c[k>>2]|0;m=b+8|0;n=c[m>>2]|0;if(l>>>0>>0){if((d|0)==(l|0)){if(!d)o=0;else{c[d>>2]=c[e>>2];o=c[k>>2]|0}c[k>>2]=o+4;p=d;c[a>>2]=p;i=f;return}o=l-(g+(j+1<<2))|0;q=o>>2;r=g+(q+j<<2)|0;if(r>>>0>>0){j=l;s=r;do{if(!j)t=0;else{c[j>>2]=c[s>>2];t=c[k>>2]|0}s=s+4|0;j=t+4|0;c[k>>2]=j}while(s>>>0>>0)}Uu(l+(0-q<<2)|0,d|0,o|0)|0;if(d>>>0>e>>>0)u=e;else u=(c[k>>2]|0)>>>0>e>>>0?e+4|0:e;c[d>>2]=c[u>>2];p=d;c[a>>2]=p;i=f;return}u=(l-h>>2)+1|0;if(u>>>0>1073741823)yp(b);h=g;g=n-h|0;if(g>>2>>>0<536870911){n=g>>1;g=n>>>0>>0?u:n;n=d;u=n-h>>2;if(!g){v=0;w=0;x=u;y=n}else{z=g;A=u;B=n;C=18}}else{n=d;z=1073741823;A=n-h>>2;B=n;C=18}if((C|0)==18){v=z;w=it(z<<2)|0;x=A;y=B}B=w+(x<<2)|0;A=w+(v<<2)|0;do if((x|0)==(v|0)){if((x|0)>0){D=w+(((x+1|0)/-2|0)+x<<2)|0;E=A;break}z=(x|0)==0?1:x<<1;C=it(z<<2)|0;n=C+(z>>>2<<2)|0;h=C+(z<<2)|0;if(!w){D=n;E=h}else{kt(w);D=n;E=h}}else{D=B;E=A}while(0);if(!D)F=0;else{c[D>>2]=c[e>>2];F=D}e=c[b>>2]|0;A=y-e|0;B=D+(0-(A>>2)<<2)|0;Tu(B|0,e|0,A|0)|0;A=(c[k>>2]|0)-y|0;Tu(F+4|0,d|0,A|0)|0;d=c[b>>2]|0;c[b>>2]=B;c[k>>2]=F+((A>>2)+1<<2);c[m>>2]=E;if(!d){p=D;c[a>>2]=p;i=f;return}kt(d);p=D;c[a>>2]=p;i=f;return}function rg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;e=i;i=i+48|0;f=e+40|0;g=e;h=e+24|0;j=e+16|0;k=e+12|0;l=e+8|0;if((b|0)<1)Eh(2584);if(((c[a+20>>2]|0)-(c[a+16>>2]|0)>>2|0)<=(b|0))Eh(2584);m=c[a>>2]|0;if((m|0)==(c[a+4>>2]|0))Eh(2624);if(!(c[m+16>>2]|0))Eh(2624);m=a+16|0;n=c[m>>2]|0;o=c[(c[n+(b+ -1<<2)>>2]|0)+8>>2]|0;p=c[c[n+(b<<2)>>2]>>2]|0;n=p+ -1|0;if((o|0)>=(n|0)){q=0;i=e;return q|0}r=(p+o|0)/2|0;p=Eg(a,r)|0;wd(h,o+1|0,p,n,Dg(a,r)|0);r=it(40)|0;c[r+0>>2]=c[h+0>>2];c[r+4>>2]=c[h+4>>2];c[r+8>>2]=c[h+8>>2];c[r+12>>2]=c[h+12>>2];h=r+16|0;a=r+28|0;n=r+32|0;c[h+0>>2]=0;c[h+4>>2]=0;c[h+8>>2]=0;c[h+12>>2]=0;c[h+16>>2]=0;c[h+20>>2]=0;h=it(8)|0;c[n>>2]=h;c[a>>2]=h;p=h+8|0;c[r+36>>2]=p;if(!h)s=0;else{o=h;c[o>>2]=32;c[o+4>>2]=d&1;s=h}h=s+8|0;c[n>>2]=h;c[j>>2]=r;do if(d){c[g>>2]=9;c[g+4>>2]=0;if((h|0)==(p|0)){uf(a,g);break}else{r=g;s=c[r+4>>2]|0;o=h;c[o>>2]=c[r>>2];c[o+4>>2]=s;c[n>>2]=(c[n>>2]|0)+8;break}}while(0);c[k>>2]=(c[m>>2]|0)+(b<<2);c[f+0>>2]=c[k+0>>2];qg(l,m,f,j);q=1;i=e;return q|0}function sg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0;b=i;i=i+64|0;d=b+8|0;e=b+24|0;f=b+32|0;g=b+40|0;h=b;j=b+16|0;k=b+48|0;l=a+12|0;m=c[l>>2]|0;n=a+20|0;o=a+16|0;p=c[o>>2]|0;if((m|0)<((c[n>>2]|0)-p>>2|0)){q=p;p=0;r=m;m=0;while(1){if($f(c[q+(r<<2)>>2]|0,32)|0){s=c[o>>2]|0;t=p;u=m}else{v=c[o>>2]|0;w=c[v+(r<<2)>>2]|0;s=v;t=p+1|0;u=m+1+(c[w+8>>2]|0)-(c[w>>2]|0)|0}r=r+1|0;if((r|0)>=((c[n>>2]|0)-s>>2|0))break;else{q=s;p=t;m=u}}if(t){c[g>>2]=u;u=g+4|0;c[u>>2]=t;Jg(g);t=c[u>>2]|0;u=c[g>>2]|0;m=g+4|0;if((t|0)>0){x=g;y=u;z=t;A=m;B=10}else{C=u;D=g;E=m}}else{F=g;B=8}}else{F=g;B=8}if((B|0)==8){c[F>>2]=0;c[g+4>>2]=1;x=g;y=0;z=1;A=g+4|0;B=10}if((B|0)==10){F=((y|0)<0)<<31>>31;m=Wu(z|0,((z|0)<0)<<31>>31|0,1)|0;z=H;if((F|0)<(z|0)|(F|0)==(z|0)&y>>>0>>0){i=b;return}m=c[A>>2]|0;if((m|0)>0){C=(y|0)/(m|0)|0;D=x;E=A}else{C=y;D=x;E=A}}A=g;x=c[A+4>>2]|0;y=e;c[y>>2]=c[A>>2];c[y+4>>2]=x;c[d>>2]=3;c[d+4>>2]=1;x=Mg(e,d)|0;y=c[x>>2]|0;A=c[x+4>>2]|0;if((A|0)>0)G=(y|0)/(A|0)|0;else G=y;y=c[l>>2]|0;l=c[n>>2]|0;A=c[o>>2]|0;if((y+1|0)>=(l-A>>2|0)){i=b;return}x=h+4|0;m=d+4|0;z=d+4|0;F=d+4|0;u=d+4|0;t=d+4|0;p=d+4|0;s=j+4|0;q=k+4|0;r=e+4|0;w=l;l=A;A=y;a:while(1){y=w;v=l;I=A;while(1){J=I+1|0;K=y-v>>2;if((J|0)>=(K|0)){L=v;break}if(!((I|0)>-1&(K|0)>(I|0))){B=20;break a}if((J|0)<0){B=23;break a}if(((c[n>>2]|0)-v>>2|0)<=(J|0)){B=23;break a}if(((c[c[v+(J<<2)>>2]>>2]|0)+ -1-(c[(c[v+(I<<2)>>2]|0)+8>>2]|0)|0)>(G|0)){L=v;break}y=c[n>>2]|0;I=J}if((I|0)<0)M=((c[n>>2]|0)-L>>2)+ -1|0;else M=I;if((M|0)>(A|0)){y=c[L+(A<<2)>>2]|0;v=A;J=0;do{v=v+1|0;K=y;y=c[L+(v<<2)>>2]|0;N=(c[y>>2]|0)-(c[K+8>>2]|0)+ -1|0;J=((N|0)>0?N:0)+J|0}while((v|0)!=(M|0));c[h>>2]=J;c[x>>2]=M-A;Jg(h)}else{c[h>>2]=0;c[x>>2]=1}b:do if((A|0)<(I|0)?(v=c[x>>2]|0,(v|0)>0):0){y=c[h>>2]|0;if((y|0)<=0?!((y|0)==0&(v|0)==1):0){O=I;break}else{P=A;Q=I;R=0;S=0;T=0;U=0}while(1){if((P|0)<0){B=39;break a}v=c[o>>2]|0;if(((c[n>>2]|0)-v>>2|0)<=(P|0)){B=39;break a}y=c[v+(P<<2)>>2]|0;N=P+1|0;if((N|0)<0){B=42;break a}if(((c[n>>2]|0)-v>>2|0)<=(N|0)){B=42;break a}K=c[v+(N<<2)>>2]|0;v=y+8|0;V=(c[K>>2]|0)-(c[v>>2]|0)|0;W=V+ -1|0;c:do if((V|0)>(C|0))B=58;else{X=h;Y=c[X+4>>2]|0;Z=e;c[Z>>2]=c[X>>2];c[Z+4>>2]=Y;c[d>>2]=3;c[m>>2]=1;Y=Mg(e,d)|0;Z=c[Y+4>>2]|0;X=(W|0)==-2147483648;_=X^1;if((Z|0)>0&_?($=Qu(0,c[Y>>2]|0,32)|0,Y=H,aa=Ou(0,0,X&1^1|0,0)|0,ba=Y&H,Y=av(Z|0,((Z|0)<0)<<31>>31|0,(X?-2147483647:W)|0,(X?-1:((W|0)<0)<<31>>31)|0)|0,Z=H,(ba|0)<(Z|0)|(ba|0)==(Z|0)&($&aa)>>>0>>0):0){B=58;break}Y=W*5|0;aa=g;$=c[aa+4>>2]|0;Z=e;c[Z>>2]=c[aa>>2];c[Z+4>>2]=$;c[d>>2]=2;c[z>>2]=1;$=Mg(e,d)|0;Z=c[$+4>>2]|0;aa=(Y|0)==-2147483648;ba=aa^1;do if((Z|0)>0&ba){ca=Qu(0,c[$>>2]|0,32)|0;da=H;ea=Ou(0,0,aa&1^1|0,0)|0;fa=da&H;da=av(Z|0,((Z|0)<0)<<31>>31|0,(aa?-2147483647:Y)|0,(aa?-1:((Y|0)<0)<<31>>31)|0)|0;ga=H;if(!((fa|0)<(ga|0)|(fa|0)==(ga|0)&(ca&ea)>>>0>>0))break;da=h;ea=c[da+4>>2]|0;ca=e;c[ca>>2]=c[da>>2];c[ca+4>>2]=ea;c[d>>2]=2;c[F>>2]=1;ea=Mg(e,d)|0;ca=c[ea+4>>2]|0;if(!((ca|0)>0&_))break;da=Qu(0,c[ea>>2]|0,32)|0;ea=H;ga=Ou(0,0,X&1^1|0,0)|0;fa=ea&H;ea=av(ca|0,((ca|0)<0)<<31>>31|0,(X?-2147483647:W)|0,(X?-1:((W|0)<0)<<31>>31)|0)|0;ca=H;if((fa|0)<(ca|0)|(fa|0)==(ca|0)&(da&ga)>>>0>>0){B=58;break c}}while(0);X=((c[v>>2]|0)+1-(c[y>>2]|0)|0)*3|0;_=g;Z=c[_+4>>2]|0;$=e;c[$>>2]=c[_>>2];c[$+4>>2]=Z;c[d>>2]=2;c[u>>2]=1;Z=Mg(e,d)|0;$=c[Z+4>>2]|0;_=(X|0)==-2147483648;do if(($|0)>0&(_^1)){ea=Qu(0,c[Z>>2]|0,32)|0;ga=H;da=Ou(0,0,_&1^1|0,0)|0;ca=ga&H;ga=av($|0,(($|0)<0)<<31>>31|0,(_?-2147483647:X)|0,(_?-1:((X|0)<0)<<31>>31)|0)|0;fa=H;if(!((ca|0)<(fa|0)|(ca|0)==(fa|0)&(ea&da)>>>0>>0))break;ga=((c[K+8>>2]|0)+1-(c[K>>2]|0)|0)*3|0;da=g;ea=c[da+4>>2]|0;fa=e;c[fa>>2]=c[da>>2];c[fa+4>>2]=ea;c[d>>2]=2;c[t>>2]=1;ea=Mg(e,d)|0;fa=c[ea+4>>2]|0;da=(ga|0)==-2147483648;if(!((fa|0)>0&(da^1)))break;ca=Qu(0,c[ea>>2]|0,32)|0;ea=H;ha=Ou(0,0,da&1^1|0,0)|0;ia=ea&H;ea=av(fa|0,((fa|0)<0)<<31>>31|0,(da?-2147483647:ga)|0,(da?-1:((ga|0)<0)<<31>>31)|0)|0;ga=H;if(!((ia|0)<(ga|0)|(ia|0)==(ga|0)&(ca&ha)>>>0>>0))break;ea=W<<1;ha=(ea|0)==-2147483648;ca=c[E>>2]|0;if(!((ca|0)>0&(ha^1)))break;ga=c[D>>2]|0;ia=Ou(0,0,ha&1^1|0,0)|0;da=((ga|0)<0)<<31>>31&H;fa=av(ca|0,((ca|0)<0)<<31>>31|0,(ha?-2147483647:ea)|0,(ha?-1:((ea|0)<0)<<31>>31)|0)|0;ea=H;if(!((da|0)<(ea|0)|(da|0)==(ea|0)&(ga&ia)>>>0>>0))break;fa=h;ia=c[fa+4>>2]|0;ga=e;c[ga>>2]=c[fa>>2];c[ga+4>>2]=ia;c[d>>2]=8;c[p>>2]=1;ia=Mg(e,d)|0;ga=c[ia+4>>2]|0;if(!((ga|0)>0&ba))break;fa=Qu(0,c[ia>>2]|0,32)|0;ia=H;ea=Ou(0,0,aa&1^1|0,0)|0;da=ia&H;ia=av(ga|0,((ga|0)<0)<<31>>31|0,(aa?-2147483647:Y)|0,(aa?-1:((Y|0)<0)<<31>>31)|0)|0;ga=H;if((da|0)<(ga|0)|(da|0)==(ga|0)&(fa&ea)>>>0>>0){B=58;break c}}while(0);ja=P;ka=Q;la=R+1|0;ma=W+S|0;na=T;oa=U}while(0);if((B|0)==58){B=0;K=rg(a,N,0)|0;ja=K?N:P;ka=(K&1)+Q|0;la=R;ma=S;na=T+1|0;oa=W+U|0}P=ja+1|0;if((P|0)>=(ka|0))break;else{Q=ka;R=la;S=ma;T=na;U=oa}}if(!((na|0)==0|(la|0)==0)?(c[j>>2]=oa*3,c[s>>2]=na,Jg(j),c[k>>2]=ma,c[q>>2]=la,Jg(k),K=j,y=c[K+4>>2]|0,v=d,c[v>>2]=c[K>>2],c[v+4>>2]=y,y=Lg(d,k)|0,v=c[y+4>>2]|0,K=f,c[K>>2]=c[y>>2],c[K+4>>2]=v,c[e>>2]=4,c[r>>2]=1,Kg(d,e),v=Mg(f,d)|0,K=c[v+4>>2]|0,(A|0)<(ka|0)):0){y=Qu(0,c[v>>2]|0,32)|0;v=H;V=((K|0)<0)<<31>>31;if((K|0)>0){pa=A;qa=ka}else{Y=A;while(1){if((Y|0)<0){B=76;break a}if(((c[n>>2]|0)-(c[o>>2]|0)>>2|0)<=(Y|0)){B=76;break a}Y=Y+1|0;if((Y|0)<0){B=79;break a}if(((c[n>>2]|0)-(c[o>>2]|0)>>2|0)<=(Y|0)){B=79;break a}if((Y|0)>=(ka|0)){O=ka;break b}}}while(1){if((pa|0)<0){B=66;break a}Y=c[o>>2]|0;if(((c[n>>2]|0)-Y>>2|0)<=(pa|0)){B=66;break a}aa=pa+1|0;if((aa|0)<0){B=69;break a}if(((c[n>>2]|0)-Y>>2|0)<=(aa|0)){B=69;break a}ba=(c[c[Y+(aa<<2)>>2]>>2]|0)-(c[(c[Y+(pa<<2)>>2]|0)+8>>2]|0)+ -1|0;do if((ba|0)==-2147483648){ra=pa;sa=qa}else{Y=av(ba|0,((ba|0)<0)<<31>>31|0,K|0,V|0)|0;X=H;if(!((v|0)<(X|0)|(v|0)==(X|0)&y>>>0>>0)){ra=pa;sa=qa;break}Y=rg(a,aa,0)|0;ra=Y?aa:pa;sa=(Y&1)+qa|0}while(0);pa=ra+1|0;if((pa|0)>=(sa|0)){O=sa;break}else qa=sa}}else O=ka}else O=I;while(0);I=O+1|0;J=c[n>>2]|0;y=c[o>>2]|0;if((I|0)<(J-y>>2|0)){v=rg(a,I,1)|0;ta=c[n>>2]|0;ua=c[o>>2]|0;va=v?O+2|0:I}else{ta=J;ua=y;va=I}if((va+1|0)<(ta-ua>>2|0)){w=ta;l=ua;A=va}else{B=84;break}}if((B|0)==20)Eh(2512);else if((B|0)==23)Eh(2512);else if((B|0)==39)Eh(2512);else if((B|0)==42)Eh(2512);else if((B|0)==66)Eh(2512);else if((B|0)==69)Eh(2512);else if((B|0)==76)Eh(2512);else if((B|0)==79)Eh(2512);else if((B|0)==84){i=b;return}}function tg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;d=i;i=i+16|0;e=d+12|0;f=d+8|0;g=d+4|0;h=d;j=b+20|0;k=c[j>>2]|0;l=b+16|0;m=c[l>>2]|0;n=b+12|0;if((k-m|0)>0){b=a+20|0;o=a+16|0;p=a+16|0;q=a+12|0;a=m;r=0;while(1){s=(r|0)<(c[n>>2]|0);c[f>>2]=c[a+(r<<2)>>2];t=(c[b>>2]|0)-(c[o>>2]|0)>>2;while(1){if((t|0)<=0)break;u=t+ -1|0;if(Sd(c[f>>2]|0,c[(c[o>>2]|0)+(u<<2)>>2]|0)|0)t=u;else break}c[g>>2]=(c[p>>2]|0)+(t<<2);c[e+0>>2]=c[g+0>>2];qg(h,p,e,f);u=c[q>>2]|0;if((t|0)>=(u|0)){if(s)c[q>>2]=t+1}else c[q>>2]=u+1;r=r+1|0;u=c[j>>2]|0;v=c[l>>2]|0;if((r|0)>=(u-v>>2|0)){w=u;x=v;break}else a=v}}else{w=k;x=m}c[n>>2]=0;if((w|0)==(x|0)){i=d;return}c[j>>2]=w+(~((w+ -4+(0-x)|0)>>>2)<<2);i=d;return}function ug(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;b=i;d=c[a+12>>2]|0;e=c[a+16>>2]|0;f=(c[a+20>>2]|0)-e>>2;if((d|0)>=(f|0)){g=0;i=b;return g|0}a=d+1|0;h=(f|0)>(a|0)?f:a;a=d;j=0;do{k=c[e+(a<<2)>>2]|0;j=(((c[k+12>>2]|0)+(c[k+4>>2]|0)|0)/2|0)+j|0;a=a+1|0}while((a|0)<(f|0));if((h|0)==(d|0)){g=j;i=b;return g|0}g=(j|0)/(h-d|0)|0;i=b;return g|0}function vg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0;f=i;i=i+48|0;g=f;h=f+32|0;j=f+16|0;if(d|e){c[h+0>>2]=0;c[h+4>>2]=0;c[h+8>>2]=0;c[h+12>>2]=0;k=a+20|0;l=a+16|0;m=c[l>>2]|0;n=(c[k>>2]|0)-m|0;o=n>>2;a:do if((n|0)>0){p=h+4|0;q=h+8|0;r=m;s=0;while(1){if(!($f(c[r+(s<<2)>>2]|0,32)|0)){t=c[l>>2]|0;if(((c[k>>2]|0)-t>>2|0)<=(s|0))break;u=c[t+(s<<2)>>2]|0;t=(c[u+12>>2]|0)+1-(c[u+4>>2]|0)|0;if(t>>>0<2147483647?(c[h>>2]|0)>>>0<2147483647:0){u=c[q>>2]|0;v=c[p>>2]|0;w=u-v>>2;do if(w>>>0<=t>>>0){x=t+1|0;if(w>>>0>>0){je(p,x-w|0);y=c[p>>2]|0;break}if(w>>>0>x>>>0?(z=v+(x<<2)|0,(u|0)!=(z|0)):0){c[q>>2]=u+(~((u+ -4+(0-z)|0)>>>2)<<2);y=v}else y=v}else y=v;while(0);v=y+(t<<2)|0;c[v>>2]=(c[v>>2]|0)+1;c[h>>2]=(c[h>>2]|0)+1}}s=s+1|0;v=c[l>>2]|0;u=(c[k>>2]|0)-v>>2;if((s|0)>=(u|0)){A=v;B=u;break a}else r=v}Eh(2512)}else{A=m;B=o}while(0);o=c[b+16>>2]|0;m=c[a+12>>2]|0;if((m|0)<(B|0)){B=A;A=0;y=m;m=0;while(1){if($f(c[B+(y<<2)>>2]|0,32)|0){C=c[l>>2]|0;D=A;E=m}else{n=c[l>>2]|0;r=c[n+(y<<2)>>2]|0;C=n;D=A+1|0;E=m+1+(c[r+12>>2]|0)-(c[r+4>>2]|0)|0}y=y+1|0;if((y|0)>=((c[k>>2]|0)-C>>2|0))break;else{B=C;A=D;m=E}}if(!D)F=E;else F=(E|0)/(D|0)|0}else F=0;D=h+8|0;E=c[D>>2]|0;m=h+4|0;A=c[m>>2]|0;C=c[h>>2]|0;b:do if((E|0)==(A|0)){G=E;H=0;I=0}else{h=E-A>>2;B=0;y=0;while(1){r=(c[A+(y<<2)>>2]|0)+B|0;n=y+1|0;if(r<<1>>>0>=C>>>0){G=A;H=r;I=y;break b}if(n>>>0>>0){B=r;y=n}else{G=A;H=r;I=n;break}}}while(0);c:do if(H<<1>>>0>C>>>0)J=I;else{A=E-G>>2;y=H;B=I;while(1){if(B>>>0>=A>>>0){J=B;break c}y=(c[G+(B<<2)>>2]|0)+y|0;h=B+1|0;if(y<<1>>>0>C>>>0){J=h;break}else B=h}}while(0);C=((c[a+4>>2]|0)-(c[a>>2]|0)|0)/20|0;c[g>>2]=F;c[g+4>>2]=(J+I|0)>>>1;c[g+8>>2]=C;Ob(o|0,2664,g|0)|0;g=c[m>>2]|0;if(!g){K=l;L=k}else{m=c[D>>2]|0;if((m|0)!=(g|0))c[D>>2]=m+(~((m+ -4+(0-g)|0)>>>2)<<2);kt(g);K=l;L=k}}else{K=a+16|0;L=a+20|0}k=c[K>>2]|0;if(((c[L>>2]|0)-k|0)<=0){M=b+16|0;N=c[M>>2]|0;Eb(10,N|0)|0;i=f;return}l=a+12|0;g=k;k=0;do{m=c[g+(k<<2)>>2]|0;if((k|0)<(c[l>>2]|0))dg(m,b,m,d,e);else{D=c[m>>2]|0;o=m+8|0;C=Eg(a,((c[o>>2]|0)+D|0)/2|0)|0;I=c[o>>2]|0;wd(j,D,C,I,Dg(a,((c[m>>2]|0)+I|0)/2|0)|0);dg(m,b,j,d,e)}k=k+1|0;g=c[K>>2]|0}while((k|0)<((c[L>>2]|0)-g>>2|0));M=b+16|0;N=c[M>>2]|0;Eb(10,N|0)|0;i=f;return}function wg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=a+20|0;f=a+16|0;a=c[f>>2]|0;if(((c[e>>2]|0)-a|0)>0){g=a;h=0}else{i=d;return}do{eg(c[g+(h<<2)>>2]|0,b);h=h+1|0;g=c[f>>2]|0}while((h|0)<((c[e>>2]|0)-g>>2|0));i=d;return}function xg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=a+20|0;f=a+16|0;a=c[f>>2]|0;if(((c[e>>2]|0)-a|0)>0){g=a;h=0}else{i=d;return}do{id(b,c[g+(h<<2)>>2]|0);h=h+1|0;g=c[f>>2]|0}while((h|0)<((c[e>>2]|0)-g>>2|0));i=d;return}function yg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;d=i;i=i+32|0;e=d;f=d+8|0;g=a+20|0;h=a+16|0;j=c[h>>2]|0;if(((c[g>>2]|0)-j|0)<=0){i=d;return}k=a+12|0;l=e+4|0;m=j;j=0;do{n=c[m+(j<<2)>>2]|0;do if((j|0)<(c[k>>2]|0)){pf(n,b,n);o=n+32|0;if((c[o>>2]|0)!=(c[n+28>>2]|0)?(p=c[(_f(n,0)|0)>>2]|0,Df(p)|0):0){q=Nf(p)|0;p=n+28|0;r=c[p>>2]|0;s=c[o>>2]|0;if((s|0)==(r|0))t=r;else{u=s+(~((s+ -8+(0-r)|0)>>>3)<<3)|0;c[o>>2]=u;t=u}c[e>>2]=q;c[l>>2]=0;if((t|0)==(c[n+36>>2]|0)){uf(p,e);break}if(!t)v=0;else{p=e;q=c[p+4>>2]|0;u=t;c[u>>2]=c[p>>2];c[u+4>>2]=q;v=c[o>>2]|0}c[o>>2]=v+8}}else{o=c[n>>2]|0;q=n+8|0;u=Eg(a,((c[q>>2]|0)+o|0)/2|0)|0;p=c[q>>2]|0;wd(f,o,u,p,Dg(a,((c[n>>2]|0)+p|0)/2|0)|0);pf(n,b,f)}while(0);j=j+1|0;m=c[h>>2]|0}while((j|0)<((c[g>>2]|0)-m>>2|0));i=d;return}function zg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;d=i;i=i+16|0;e=d;f=a+20|0;g=a+16|0;h=(c[f>>2]|0)-(c[g>>2]|0)|0;a:do if((h|0)>0){j=h>>2;k=0;b:while(1){l=j;while(1){m=l;l=l+ -1|0;if((m|0)<1){n=5;break b}m=c[g>>2]|0;if(((c[f>>2]|0)-m>>2|0)<=(l|0)){n=5;break b}o=c[m+(l<<2)>>2]|0;m=o+32|0;p=o+28|0;if((c[m>>2]|0)!=(c[p>>2]|0)?(fg(o,b),(c[m>>2]|0)==(c[p>>2]|0)):0)break;if((l|0)<=0){q=k;break a}}og(a,l);if((l|0)>0){j=l;k=1}else{q=1;break a}}if((n|0)==5)Eh(2512)}else q=0;while(0);do if((b|0)==4){c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;h=c[f>>2]|0;k=c[g>>2]|0;c:do if((h-k|0)>0){j=e+4|0;p=e+8|0;m=k;o=0;do{if(!($f(c[m+(o<<2)>>2]|0,32)|0)){r=c[g>>2]|0;if(((c[f>>2]|0)-r>>2|0)<=(o|0)){n=16;break}s=c[r+(o<<2)>>2]|0;r=(c[s+12>>2]|0)+1-(c[s+4>>2]|0)|0;if(r>>>0<2147483647?(c[e>>2]|0)>>>0<2147483647:0){s=c[p>>2]|0;t=c[j>>2]|0;u=s-t>>2;do if(u>>>0<=r>>>0){v=r+1|0;if(u>>>0>>0){je(j,v-u|0);w=c[j>>2]|0;break}if(u>>>0>v>>>0?(x=t+(v<<2)|0,(s|0)!=(x|0)):0){c[p>>2]=s+(~((s+ -4+(0-x)|0)>>>2)<<2);w=t}else w=t}else w=t;while(0);t=w+(r<<2)|0;c[t>>2]=(c[t>>2]|0)+1;c[e>>2]=(c[e>>2]|0)+1}}o=o+1|0;y=c[f>>2]|0;m=c[g>>2]|0}while((o|0)<(y-m>>2|0));if((n|0)==16)Eh(2512);o=c[p>>2]|0;j=e+4|0;l=c[j>>2]|0;t=c[e>>2]|0;if((o|0)==(l|0)){z=t;A=p;B=j;C=o;D=l;E=y;F=m;G=0;H=0}else{s=o-l>>2;u=0;x=0;while(1){v=(c[l+(x<<2)>>2]|0)+u|0;I=x+1|0;if(v<<1>>>0>=t>>>0){z=t;A=p;B=j;C=o;D=l;E=y;F=m;G=v;H=x;break c}if(I>>>0>>0){u=v;x=I}else{z=t;A=p;B=j;C=o;D=l;E=y;F=m;G=v;H=I;break}}}}else{z=0;A=e+8|0;B=e+4|0;C=0;D=0;E=h;F=k;G=0;H=0}while(0);d:do if(G<<1>>>0>z>>>0)J=H;else{k=C-D>>2;h=G;m=H;while(1){if(m>>>0>=k>>>0){J=m;break d}h=(c[D+(m<<2)>>2]|0)+h|0;l=m+1|0;if(h<<1>>>0>z>>>0){J=l;break}else m=l}}while(0);m=(J+H|0)>>>1;h=E-F>>2;k=q;e:while(1){if((h|0)>0)K=h;else{n=45;break}while(1){K=K+ -1|0;l=c[g>>2]|0;if(((c[f>>2]|0)-l>>2|0)<=(K|0)){n=38;break e}if(!($f(c[l+(K<<2)>>2]|0,32)|0)){l=c[g>>2]|0;if(((c[f>>2]|0)-l>>2|0)<=(K|0)){n=42;break e}o=c[l+(K<<2)>>2]|0;if(!(Fh((c[o+12>>2]|0)+1-(c[o+4>>2]|0)|0,m,13,2)|0))break}if((K|0)<=0){n=45;break e}}og(a,K);h=K;k=1}if((n|0)==38)Eh(2512);else if((n|0)==42)Eh(2512);else if((n|0)==45){h=c[B>>2]|0;if(!h){L=k;n=49;break}m=c[A>>2]|0;if((m|0)!=(h|0))c[A>>2]=m+(~((m+ -4+(0-h)|0)>>>2)<<2);kt(h);if(k)break;i=d;return}}else{L=q;n=49}while(0);if((n|0)==49?!L:0){i=d;return}L=(c[f>>2]|0)-(c[g>>2]|0)|0;if((L|0)<=0){i=d;return}q=L>>2;f:while(1){L=q;q=q+ -1|0;if((L|0)<1){n=54;break}A=c[g>>2]|0;if(((c[f>>2]|0)-A>>2|0)<=(q|0)){n=54;break}do if($f(c[A+(q<<2)>>2]|0,32)|0){if((q|0)!=0?(B=c[g>>2]|0,K=(c[f>>2]|0)-B>>2,(L|0)!=(K|0)):0){F=L+ -2|0;if(!((F|0)>-1&(K|0)>(F|0))){n=60;break f}if(!($f(c[B+(F<<2)>>2]|0,32)|0))break}og(a,q)}while(0);if((q|0)<=0){n=63;break}}if((n|0)==54)Eh(2512);else if((n|0)==60)Eh(2512);else if((n|0)==63){i=d;return}}function Ag(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=a+4|0;f=c[a>>2]|0;g=((c[e>>2]|0)-f>>4)+1|0;if(g>>>0>268435455)yp(a);h=a+8|0;j=f;k=(c[h>>2]|0)-j|0;if(k>>4>>>0<134217727){l=k>>3;k=l>>>0>>0?g:l;l=(c[e>>2]|0)-j|0;g=l>>4;if(!k){m=0;n=0;o=g;p=l}else{q=k;r=g;s=l;t=6}}else{l=(c[e>>2]|0)-j|0;q=268435455;r=l>>4;s=l;t=6}if((t|0)==6){m=q;n=it(q<<4)|0;o=r;p=s}s=n+(o<<4)|0;if(s){c[s+0>>2]=c[b+0>>2];c[s+4>>2]=c[b+4>>2];c[s+8>>2]=c[b+8>>2];c[s+12>>2]=c[b+12>>2]}Tu(n|0,f|0,p|0)|0;c[a>>2]=n;c[e>>2]=n+(o+1<<4);c[h>>2]=n+(m<<4);if(!f){i=d;return}kt(f);i=d;return}function Bg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0;d=i;i=i+80|0;e=d;f=d+68|0;g=d+48|0;h=d+28|0;j=d+24|0;k=d+20|0;l=c[a>>2]|0;m=a+4|0;n=c[m>>2]|0;if((n|0)!=(l|0))c[m>>2]=n+(~(((n+ -20+(0-l)|0)>>>0)/20|0)*20|0);l=c[b>>2]|0;n=b+4|0;o=c[n>>2]|0;if((l|0)==(o|0)){i=d;return}c[f>>2]=0;q=f+4|0;c[q>>2]=0;r=f+8|0;c[r>>2]=0;s=c[l+8>>2]|0;t=s+1-(c[l>>2]|0)|0;u=o-l>>4;if(u>>>0>1){o=t;v=0;w=s;s=1;while(1){x=w;w=c[l+(s<<4)+8>>2]|0;y=c[l+(s<<4)>>2]|0;z=o+1+w-y|0;A=y+v-x|0;s=s+1|0;if(s>>>0>=u>>>0){B=z;C=A;break}else{o=z;v=A}}}else{B=t;C=0}t=((((B|0)<(C|0)?C:B)*5|0)>>>0)/(u>>>0)|0;u=c[p>>2]|0;B=g+4|0;C=g+8|0;v=g+12|0;o=g+16|0;s=a+8|0;w=l;l=0;A=0;z=0;while(1){x=w+(z<<4)|0;if((l|0)==(A|0))Ag(f,x);else{if(!l)D=0;else{c[l+0>>2]=c[x+0>>2];c[l+4>>2]=c[x+4>>2];c[l+8>>2]=c[x+8>>2];c[l+12>>2]=c[x+12>>2];D=l}c[q>>2]=D+16}x=z+1|0;y=c[b>>2]|0;if(!(x>>>0<(c[n>>2]|0)-y>>4>>>0?((c[y+(x<<4)>>2]|0)-(c[w+(z<<4)+8>>2]|0)|0)<(t|0):0)){y=c[q>>2]|0;E=c[f>>2]|0;F=y-E|0;G=F>>4;if((F|0)>0){H=0;I=0;J=0;K=0;while(1){L=c[E+(H<<4)+4>>2]|0;M=c[E+(H<<4)+12>>2]|0;N=((M+L|0)/2|0)+J|0;O=I+1-L+M|0;M=K+1+(c[E+(H<<4)+8>>2]|0)-(c[E+(H<<4)>>2]|0)|0;H=H+1|0;if((H|0)>=(G|0)){P=O;Q=N;R=M;break}else{I=O;J=N;K=M}}}else{P=0;Q=0;R=0}if(G){K=(Q|0)/(G|0)|0;S=(P|0)/(G|0)|0;J=(R|0)/(G|0)|0;if((F|0)>=128){I=(G|0)/4|0;c[e>>2]=3;H=0;M=-1;while(1){N=H;H=H+1|0;O=N+2|0;a:do if((N|0)<(I|0)){L=H;T=M;while(1){U=c[f>>2]|0;V=Hg(U+(N<<4)|0,U+(L<<4)|0,e,S,J)|0;if((V|0)>-1){U=(V|0)==0?N:L;if(!(c[e>>2]|0)){W=U;break a}else X=U}else X=T;if((L|0)>=(I|0)|(L|0)>=(O|0)){W=X;break a}L=L+1|0;T=X}}else W=M;while(0);if((H|0)>=(I|0))break;if((c[e>>2]|0)<=0)break;else M=W}M=c[f>>2]|0;I=(c[q>>2]|0)-M|0;H=I>>4;G=H+ -1|0;F=G-((H|0)/4|0)|0;c[e>>2]=3;if((I|0)>48){I=G;G=-1;while(1){H=I+ -2|0;O=I;N=G;b:while(1){T=O;do{L=T;T=T+ -1|0;if(!((L|0)>(F|0)&(L|0)>(H|0))){Y=N;break b}L=c[f>>2]|0;Z=Hg(L+(I<<4)|0,L+(T<<4)|0,e,S,J)|0}while((Z|0)<=-1);L=(Z|0)==0?I:T;if(!(c[e>>2]|0)){Y=L;break}else{O=T;N=L}}I=I+ -1|0;if((I|0)<=(F|0))break;if((c[e>>2]|0)<=0)break;else G=Y}_=c[f>>2]|0;$=Y}else{_=M;$=-1}if((W|0)>-1){aa=(c[_+(W<<4)+8>>2]|0)+(c[_+(W<<4)>>2]|0)|0;ba=(c[_+(W<<4)+12>>2]|0)-((S|0)/2|0)|0}else{aa=(c[_+8>>2]|0)+(c[_>>2]|0)|0;ba=K}ca=(aa|0)/2|0;if(($|0)>-1){ea=(c[_+($<<4)+8>>2]|0)+(c[_+($<<4)>>2]|0)|0;fa=(c[_+($<<4)+12>>2]|0)-((S|0)/2|0)|0}else{G=c[q>>2]|0;ea=(c[G+ -8>>2]|0)+(c[G+ -16>>2]|0)|0;fa=K}ga=(ea|0)/2|0;if((ga|0)<(ca|0)|(S|0)<1){ha=48;break}G=c[_>>2]|0;if((ga|0)<(G|0)){ha=52;break}if((ga|0)==(ca|0)|(fa|0)==(ba|0))ia=ba;else ia=((da(G-ca|0,fa-ba|0)|0)/(ga-ca|0)|0)+ba|0;F=c[(c[q>>2]|0)+ -8>>2]|0;if((G|0)>(F|0)){ha=56;break}if((ga|0)==(G|0)|(fa|0)==(ia|0)){ja=S;ka=ia;la=F;ma=ia;na=G}else{ja=S;ka=((da(F-G|0,fa-ia|0)|0)/(ga-G|0)|0)+ia|0;la=F;ma=ia;na=G}}else{oa=S;pa=K;ha=20}}else{oa=P;pa=Q;ha=20}if((ha|0)==20){ha=0;qa=c[E>>2]|0;ra=c[y+ -8>>2]|0;if((ra|0)<(qa|0)|(oa|0)<1){ha=21;break}else{ja=oa;ka=pa;la=ra;ma=pa;na=qa}}c[g>>2]=na;c[B>>2]=ma;c[C>>2]=la;c[v>>2]=ka;c[o>>2]=ja;G=c[m>>2]|0;if((G|0)==(c[s>>2]|0))Gg(a,g);else{if(!G)sa=0;else{c[G+0>>2]=c[g+0>>2];c[G+4>>2]=c[g+4>>2];c[G+8>>2]=c[g+8>>2];c[G+12>>2]=c[g+12>>2];c[G+16>>2]=c[g+16>>2];sa=c[m>>2]|0}c[m>>2]=sa+20}G=c[f>>2]|0;F=c[q>>2]|0;if((F|0)!=(G|0))c[q>>2]=F+(~((F+ -16+(0-G)|0)>>>4)<<4)}G=c[b>>2]|0;if(x>>>0>=(c[n>>2]|0)-G>>4>>>0){ha=7;break}w=G;l=c[q>>2]|0;A=c[r>>2]|0;z=x}if((ha|0)==7){z=c[m>>2]|0;r=c[a>>2]|0;c:do if(((z-r|0)/20|0)>>>0>1){A=c[p>>2]|0;l=h+4|0;w=h+8|0;n=h+12|0;b=h+16|0;sa=r;g=1;s=z;ja=0;while(1){ta=(c[sa+(ja*20|0)+8>>2]|0)+1|0;o=c[sa+(g*20|0)>>2]|0;if((ta|0)<(o|0)){ua=c[sa+(ja*20|0)+12>>2]|0;va=o+ -1|0;wa=c[sa+(g*20|0)+4>>2]|0;o=(c[sa+(g*20|0)+16>>2]|0)+(c[sa+(ja*20|0)+16>>2]|0)|0;xa=(o|0)/2|0;if((o|0)<2)break;c[h>>2]=ta;c[l>>2]=ua;c[w>>2]=va;c[n>>2]=wa;c[b>>2]=xa;c[j>>2]=sa+(g*20|0);c[e+0>>2]=c[j+0>>2];Cg(k,a,e,h);ya=c[m>>2]|0;za=c[a>>2]|0;Aa=g}else{ya=s;za=sa;Aa=ja}g=Aa+2|0;if(g>>>0>=((ya-za|0)/20|0)>>>0)break c;else{sa=za;s=ya;ja=Aa+1|0}}if((c[732]|0)<=-1)Eh(2776);c[e>>2]=ta;c[e+4>>2]=ua;c[e+8>>2]=va;c[e+12>>2]=wa;c[e+16>>2]=xa;Ob(A|0,2728,e|0)|0;Eh(2776)}while(0);xa=c[f>>2]|0;if(!xa){i=d;return}f=c[q>>2]|0;if((f|0)!=(xa|0))c[q>>2]=f+(~((f+ -16+(0-xa)|0)>>>4)<<4);kt(xa);i=d;return}else if((ha|0)==21){if((c[732]|0)<=-1)Eh(2776);c[e>>2]=qa;c[e+4>>2]=pa;c[e+8>>2]=ra;c[e+12>>2]=pa;c[e+16>>2]=oa;Ob(u|0,2728,e|0)|0;Eh(2776)}else if((ha|0)==48){if((c[732]|0)<=-1)Eh(2776);c[e>>2]=ca;c[e+4>>2]=ba;c[e+8>>2]=ga;c[e+12>>2]=fa;c[e+16>>2]=S;Ob(u|0,2728,e|0)|0;Eh(2776)}else if((ha|0)==52)Eh(2816);else if((ha|0)==56)Eh(2872)}function Cg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;f=i;g=c[b>>2]|0;h=g;j=((c[d>>2]|0)-h|0)/20|0;d=g+(j*20|0)|0;k=b+4|0;l=c[k>>2]|0;m=b+8|0;n=c[m>>2]|0;if(l>>>0>>0){if((d|0)==(l|0)){if(!d)o=0;else{c[d+0>>2]=c[e+0>>2];c[d+4>>2]=c[e+4>>2];c[d+8>>2]=c[e+8>>2];c[d+12>>2]=c[e+12>>2];c[d+16>>2]=c[e+16>>2];o=c[k>>2]|0}c[k>>2]=o+20;p=d;c[a>>2]=p;i=f;return}o=l-(g+((j+1|0)*20|0))|0;q=g+((((o|0)/20|0)+j|0)*20|0)|0;if(q>>>0>>0){j=l;r=q;do{if(!j)s=0;else{c[j+0>>2]=c[r+0>>2];c[j+4>>2]=c[r+4>>2];c[j+8>>2]=c[r+8>>2];c[j+12>>2]=c[r+12>>2];c[j+16>>2]=c[r+16>>2];s=c[k>>2]|0}r=r+20|0;j=s+20|0;c[k>>2]=j}while(r>>>0>>0)}Uu(l+(((o|0)/-20|0)*20|0)|0,d|0,o|0)|0;if(d>>>0>e>>>0)t=e;else t=(c[k>>2]|0)>>>0>e>>>0?e+20|0:e;c[d+0>>2]=c[t+0>>2];c[d+4>>2]=c[t+4>>2];c[d+8>>2]=c[t+8>>2];c[d+12>>2]=c[t+12>>2];c[d+16>>2]=c[t+16>>2];p=d;c[a>>2]=p;i=f;return}t=((l-h|0)/20|0)+1|0;if(t>>>0>214748364)yp(b);h=g;g=(n-h|0)/20|0;if(g>>>0<107374182){n=g<<1;g=n>>>0>>0?t:n;n=d;t=(n-h|0)/20|0;if(!g){u=0;v=0;w=t;x=n}else{y=g;z=t;A=n;B=18}}else{n=d;y=214748364;z=(n-h|0)/20|0;A=n;B=18}if((B|0)==18){u=y;v=it(y*20|0)|0;w=z;x=A}A=v+(w*20|0)|0;z=v+(u*20|0)|0;do if((w|0)==(u|0)){y=(w*20|0)/20|0;if((w|0)>0){C=v+((((y+1|0)/-2|0)+w|0)*20|0)|0;D=z;break}B=y<<1;y=(B|0)==0?1:B;B=it(y*20|0)|0;n=B+((y>>>2)*20|0)|0;h=B+(y*20|0)|0;if(!v){C=n;D=h}else{kt(v);C=n;D=h}}else{C=A;D=z}while(0);if(!C)E=0;else{c[C+0>>2]=c[e+0>>2];c[C+4>>2]=c[e+4>>2];c[C+8>>2]=c[e+8>>2];c[C+12>>2]=c[e+12>>2];c[C+16>>2]=c[e+16>>2];E=C}e=c[b>>2]|0;z=x-e|0;A=C+(((z|0)/-20|0)*20|0)|0;Tu(A|0,e|0,z|0)|0;z=(c[k>>2]|0)-x|0;Tu(E+20|0,d|0,z|0)|0;d=c[b>>2]|0;c[b>>2]=A;c[k>>2]=E+((((z|0)/20|0)+1|0)*20|0);c[m>>2]=D;if(!d){p=C;c[a>>2]=p;i=f;return}kt(d);p=C;c[a>>2]=p;i=f;return}function Dg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;e=c[a>>2]|0;f=((c[a+4>>2]|0)-e|0)/20|0;a=0;while(1){if(a>>>0>=f>>>0){g=0;h=8;break}j=c[e+(a*20|0)+8>>2]|0;if((j|0)>=(b|0))break;k=a+1|0;if(k>>>0>>0)a=k;else break}if((h|0)==8){i=d;return g|0}h=c[e+(a*20|0)>>2]|0;f=c[e+(a*20|0)+12>>2]|0;k=c[e+(a*20|0)+4>>2]|0;if((j|0)==(h|0)|(f|0)==(k|0))l=k;else l=((da(f-k|0,b-h|0)|0)/(j-h|0)|0)+k|0;g=((c[e+(a*20|0)+16>>2]|0)/2|0)+l|0;i=d;return g|0}function Eg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;e=c[a>>2]|0;f=((c[a+4>>2]|0)-e|0)/20|0;a=0;while(1){if(a>>>0>=f>>>0){g=0;h=8;break}j=c[e+(a*20|0)+8>>2]|0;if((j|0)>=(b|0))break;k=a+1|0;if(k>>>0>>0)a=k;else break}if((h|0)==8){i=d;return g|0}h=c[e+(a*20|0)>>2]|0;f=c[e+(a*20|0)+12>>2]|0;k=c[e+(a*20|0)+4>>2]|0;if((j|0)==(h|0)|(f|0)==(k|0))l=k;else l=((da(f-k|0,b-h|0)|0)/(j-h|0)|0)+k|0;k=c[e+(a*20|0)+16>>2]|0;g=l+1-k+((k|0)/2|0)|0;i=d;return g|0}function Fg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=c[a>>2]|0;f=((c[a+4>>2]|0)-e|0)/20|0;a=0;while(1){if(a>>>0>=f>>>0){g=0;h=7;break}j=c[e+(a*20|0)+8>>2]|0;if((j|0)>=(b|0))break;k=a+1|0;if(k>>>0>>0)a=k;else break}if((h|0)==7){i=d;return g|0}h=c[e+(a*20|0)>>2]|0;f=c[e+(a*20|0)+12>>2]|0;k=c[e+(a*20|0)+4>>2]|0;if((j|0)==(h|0)|(f|0)==(k|0)){g=k;i=d;return g|0}g=((da(f-k|0,b-h|0)|0)/(j-h|0)|0)+k|0;i=d;return g|0}function Gg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=a+4|0;f=c[a>>2]|0;g=(((c[e>>2]|0)-f|0)/20|0)+1|0;if(g>>>0>214748364)yp(a);h=a+8|0;j=f;k=((c[h>>2]|0)-j|0)/20|0;if(k>>>0<107374182){l=k<<1;k=l>>>0>>0?g:l;l=(c[e>>2]|0)-j|0;g=(l|0)/20|0;if(!k){m=0;n=0;o=g;p=l}else{q=k;r=g;s=l;t=6}}else{l=(c[e>>2]|0)-j|0;q=214748364;r=(l|0)/20|0;s=l;t=6}if((t|0)==6){m=q;n=it(q*20|0)|0;o=r;p=s}s=n+(o*20|0)|0;if(s){c[s+0>>2]=c[b+0>>2];c[s+4>>2]=c[b+4>>2];c[s+8>>2]=c[b+8>>2];c[s+12>>2]=c[b+12>>2];c[s+16>>2]=c[b+16>>2]}b=n+((((p|0)/-20|0)+o|0)*20|0)|0;Tu(b|0,f|0,p|0)|0;c[a>>2]=b;c[e>>2]=n+((o+1|0)*20|0);c[h>>2]=n+(m*20|0);if(!f){i=d;return}kt(f);i=d;return}function Hg(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,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;g=i;h=a+12|0;j=c[h>>2]|0;k=a+4|0;l=c[k>>2]|0;m=j+1-l|0;n=m<<2;o=e*3|0;if((n|0)<(o|0)){p=-1;i=g;return p|0}q=b+12|0;r=c[q>>2]|0;s=b+4|0;t=c[s>>2]|0;u=r+1-t|0;v=u<<2;if((v|0)<(o|0)){p=-1;i=g;return p|0}if(((c[a+8>>2]|0)+1-(c[a>>2]|0)|0)<(f|0)?((c[b+8>>2]|0)+1-(c[b>>2]|0)|0)<(f|0):0){p=-1;i=g;return p|0}f=c[d>>2]|0;if((f|0)<=0){p=-1;i=g;return p|0}b=e*5|0;if(!((n|0)>(b|0)|(v|0)>(b|0))){b=e*10|0;if(((m*9|0)<=(b|0)?(u*9|0)<=(b|0):0)?(b=j-r|0,(((b|0)>-1?b:0-b|0)*10|0)<=(e|0)):0){c[d>>2]=0;p=((c[h>>2]|0)+1-(c[k>>2]|0)|0)>((c[q>>2]|0)+1-(c[s>>2]|0)|0)&1;i=g;return p|0}if((f|0)<=1){p=-1;i=g;return p|0}s=((j+l|0)/2|0)-((r+t|0)/2|0)|0;if((((s|0)>-1?s:0-s|0)*10|0)<=(e|0)){c[d>>2]=1;p=(c[h>>2]|0)>(c[q>>2]|0)&1;i=g;return p|0}}if((f|0)<=2){p=-1;i=g;return p|0}f=((j+l|0)/2|0)-((r+t|0)/2|0)|0;if((((f|0)>-1?f:0-f|0)*10|0)>(e|0)){p=-1;i=g;return p|0}c[d>>2]=2;p=(c[h>>2]|0)>(c[q>>2]|0)&1;i=g;return p|0}function Ig(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,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;g=i;if((e|0)==0&(f|0)==0){if((d|0)>0|(d|0)==0&b>>>0>0)h=2147483647;else h=(d|0)<0?-2147483647:0;c[a>>2]=h;c[a+4>>2]=0;i=g;return}if((b|0)==0&(d|0)==0){c[a>>2]=0;c[a+4>>2]=1;i=g;return}if((e|0)==1&(f|0)==0){j=b;k=d;l=1;m=0}else{h=(d|0)<0;n=Ou(0,0,b|0,d|0)|0;o=h?n:b;n=h?H:d;h=(f|0)<0;p=Ou(0,0,e|0,f|0)|0;q=h?p:e;p=h?H:f;a:do if((q|0)==0&(p|0)==0){r=o;s=n}else{h=o;t=n;u=q;v=p;while(1){w=$u(h|0,t|0,u|0,v|0)|0;x=H;if((w|0)==0&(x|0)==0){r=u;s=v;break a}u=$u(u|0,v|0,w|0,x|0)|0;v=H;if((u|0)==0&(v|0)==0){r=w;s=x;break}else{h=w;t=x}}}while(0);p=_u(b|0,d|0,r|0,s|0)|0;d=H;b=_u(e|0,f|0,r|0,s|0)|0;j=p;k=d;l=b;m=H}b=Pu(j|0,k|0,2147483647,0)|0;d=H;if(d>>>0<0|(d|0)==0&b>>>0<4294967295?(b=Pu(l|0,m|0,2147483647,0)|0,d=H,d>>>0<0|(d|0)==0&b>>>0<4294967295):0)if((m|0)>-1|(m|0)==-1&l>>>0>4294967295){c[a>>2]=j;c[a+4>>2]=l;i=g;return}else{b=Ou(0,0,j|0,k|0)|0;c[a>>2]=b;b=Ou(0,0,l|0,m|0)|0;c[a+4>>2]=b;i=g;return}b=(m|0)>-1|(m|0)==-1&l>>>0>4294967295;l=Ou(0,0,j|0,k|0)|0;m=b?k:H;if((m|0)>0|(m|0)==0&(b?j:l)>>>0>0)y=2147483647;else y=(m|0)<0?-2147483647:0;c[a>>2]=y;c[a+4>>2]=0;i=g;return}function Jg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;b=i;d=a+4|0;e=c[d>>2]|0;if(!e){i=b;return}f=c[a>>2]|0;if((f|0)==-2147483648){if((e|0)!=-2147483648)if((e|0)<0)g=2147483647;else g=0-e>>31&-2147483647;else{c[d>>2]=-2147483647;g=2147483647}c[a>>2]=g;c[d>>2]=0;i=b;return}else if(!f){c[d>>2]=1;i=b;return}else{do if((e|0)<0){g=0-f|0;if((e|0)!=-2147483648){c[a>>2]=g;h=0-e|0;c[d>>2]=h;j=h;k=g;break}if((f|0)<0)l=2147483647;else l=g>>31&-2147483647;c[a>>2]=l;c[d>>2]=0;i=b;return}else{j=e;k=f}while(0);if((j|0)==1){i=b;return}f=(k|0)<0?0-k|0:k;e=(j|0)<0?0-j|0:j;a:do if(!e)m=f;else{l=e;g=f;while(1){h=(g|0)%(l|0)|0;if(!h){m=l;break a}l=(l|0)%(h|0)|0;if(!l){m=h;break}else g=h}}while(0);c[a>>2]=(k|0)/(m|0)|0;c[d>>2]=(j|0)/(m|0)|0;i=b;return}}function Kg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=c[b+4>>2]|0;if((e|0)<1){f=b;g=c[f+4>>2]|0;h=a;c[h>>2]=c[f>>2];c[h+4>>2]=g;i=d;return}g=c[b>>2]|0;do if((g|0)<=0){if((g|0)<0){j=0-e|0;k=0-g|0;break}if((e|0)>0){j=2147483647;k=0}else{j=e>>31&-2147483647;k=0}}else{j=e;k=g}while(0);g=a;c[g>>2]=j;c[g+4>>2]=k;i=d;return}function Lg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;d=i;e=a+4|0;f=c[e>>2]|0;if((f|0)<1){i=d;return a|0}g=c[b+4>>2]|0;if((g|0)<1){c[a>>2]=c[b>>2];c[e>>2]=0;i=d;return a|0}else{e=((f|0)<0)<<31>>31;h=((g|0)<0)<<31>>31;j=av(g|0,h|0,f|0,e|0)|0;k=H;l=c[a>>2]|0;m=av(l|0,((l|0)<0)<<31>>31|0,g|0,h|0)|0;h=H;g=c[b>>2]|0;b=av(g|0,((g|0)<0)<<31>>31|0,f|0,e|0)|0;e=Pu(b|0,H|0,m|0,h|0)|0;Ig(a,e,H,j,k);i=d;return a|0}return 0}function Mg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=a+4|0;f=c[e>>2]|0;if((f|0)<1){i=d;return a|0}g=c[b+4>>2]|0;if((g|0)<1){c[a>>2]=c[b>>2];c[e>>2]=0;i=d;return a|0}else{e=c[a>>2]|0;h=c[b>>2]|0;b=av(h|0,((h|0)<0)<<31>>31|0,e|0,((e|0)<0)<<31>>31|0)|0;e=H;h=av(g|0,((g|0)<0)<<31>>31|0,f|0,((f|0)<0)<<31>>31|0)|0;Ig(a,b,e,h,H);i=d;return a|0}return 0}function Ng(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=i;c[b>>2]=d;c[b+4>>2]=e;e=b+8|0;d=b+36|0;c[e+0>>2]=-1;c[e+4>>2]=-1;c[e+8>>2]=-1;c[e+12>>2]=-1;c[e+16>>2]=-1;c[e+20>>2]=-1;a[e+24>>0]=255;c[d>>2]=0;c[b+40>>2]=0;c[b+44>>2]=0;i=f;return}function Og(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;d=i;switch(c[b+4>>2]|0){case 5:{e=b+36|0;f=c[b>>2]|0;g=(c[f+12>>2]|0)+1-(c[f+4>>2]|0)|0;h=b+40|0;j=c[h>>2]|0;k=c[e>>2]|0;l=j-k>>2;if(l>>>0>=g>>>0)if(l>>>0>g>>>0?(m=k+(g<<2)|0,(j|0)!=(m|0)):0){c[h>>2]=j+(~((j+ -4+(0-m)|0)>>>2)<<2);n=f}else n=f;else{je(e,g-l|0);n=c[b>>2]|0}c[b+8>>2]=(c[n+8>>2]|0)+1-(c[n>>2]|0);l=c[n+4>>2]|0;if((l|0)>(c[n+12>>2]|0)){i=d;return}else{o=n;p=l}while(1){l=c[o>>2]|0;n=c[o+8>>2]|0;a:do if((l|0)>(n|0))q=l;else{g=c[(c[o+16>>2]|0)+((p-(c[o+4>>2]|0)|0)*12|0)>>2]|0;f=l;while(1){m=f+1|0;if(a[g+(f-l)>>0]|0){q=f;break a}if((f|0)<(n|0))f=m;else{q=m;break}}}while(0);f=c[o+4>>2]|0;b:do if((q|0)>(n|0))r=n;else{g=c[(c[o+16>>2]|0)+((p-f|0)*12|0)>>2]|0;m=n;while(1){j=m+ -1|0;if(a[g+(m-l)>>0]|0){r=m;break b}if((q|0)>(j|0)){r=j;break}else m=j}}while(0);c[(c[e>>2]|0)+(p-f<<2)>>2]=1-q+r;o=c[b>>2]|0;if((p|0)>=(c[o+12>>2]|0))break;else p=p+1|0}i=d;return};case 1:{p=b+36|0;o=c[b>>2]|0;r=(c[o+8>>2]|0)+1-(c[o>>2]|0)|0;q=b+40|0;e=c[q>>2]|0;l=c[p>>2]|0;n=e-l>>2;if(n>>>0>=r>>>0)if(n>>>0>r>>>0?(m=l+(r<<2)|0,(e|0)!=(m|0)):0){c[q>>2]=e+(~((e+ -4+(0-m)|0)>>>2)<<2);s=o}else s=o;else{je(p,r-n|0);s=c[b>>2]|0}c[b+8>>2]=(c[s+12>>2]|0)+1-(c[s+4>>2]|0);n=c[s>>2]|0;if((n|0)>(c[s+8>>2]|0)){i=d;return}else{t=s;u=n}while(1){n=c[t+4>>2]|0;s=c[t+12>>2]|0;c:do if((n|0)>(s|0)){v=c[t>>2]|0;w=n}else{r=c[t+16>>2]|0;o=c[t>>2]|0;m=n;while(1){e=m+1|0;if(a[(c[r+((m-n|0)*12|0)>>2]|0)+(u-o)>>0]|0){v=o;w=m;break c}if((m|0)<(s|0))m=e;else{v=o;w=e;break}}}while(0);c[(c[p>>2]|0)+(u-v<<2)>>2]=w-n;t=c[b>>2]|0;if((u|0)>=(c[t+8>>2]|0))break;else u=u+1|0}i=d;return};case 4:{u=b+36|0;t=c[b>>2]|0;w=(c[t+8>>2]|0)+1-(c[t>>2]|0)|0;v=b+40|0;p=c[v>>2]|0;s=c[u>>2]|0;f=p-s>>2;if(f>>>0>=w>>>0)if(f>>>0>w>>>0?(o=s+(w<<2)|0,(p|0)!=(o|0)):0){c[v>>2]=p+(~((p+ -4+(0-o)|0)>>>2)<<2);x=t}else x=t;else{je(u,w-f|0);x=c[b>>2]|0}c[b+8>>2]=(c[x+12>>2]|0)+1-(c[x+4>>2]|0);f=c[x>>2]|0;if((f|0)>(c[x+8>>2]|0)){i=d;return}else{y=x;z=f}while(1){f=c[y+4>>2]|0;x=c[y+12>>2]|0;d:do if((f|0)>(x|0))A=f;else{w=c[y+16>>2]|0;t=z-(c[y>>2]|0)|0;o=f;while(1){p=o+1|0;if(a[(c[w+((o-f|0)*12|0)>>2]|0)+t>>0]|0){A=o;break d}if((o|0)<(x|0))o=p;else{A=p;break}}}while(0);e:do if((A|0)>(x|0)){B=c[y>>2]|0;C=x}else{n=c[y+16>>2]|0;o=c[y>>2]|0;t=z-o|0;w=x;while(1){p=w+ -1|0;if(a[(c[n+((w-f|0)*12|0)>>2]|0)+t>>0]|0){B=o;C=w;break e}if((A|0)>(p|0)){B=o;C=p;break}else w=p}}while(0);c[(c[u>>2]|0)+(z-B<<2)>>2]=1-A+C;y=c[b>>2]|0;if((z|0)>=(c[y+8>>2]|0))break;else z=z+1|0}i=d;return};case 3:{z=b+36|0;y=c[b>>2]|0;C=(c[y+8>>2]|0)+1-(c[y>>2]|0)|0;A=b+40|0;B=c[A>>2]|0;u=c[z>>2]|0;f=B-u>>2;if(f>>>0>=C>>>0)if(f>>>0>C>>>0?(x=u+(C<<2)|0,(B|0)!=(x|0)):0){c[A>>2]=B+(~((B+ -4+(0-x)|0)>>>2)<<2);D=y}else D=y;else{je(z,C-f|0);D=c[b>>2]|0}c[b+8>>2]=(c[D+12>>2]|0)+1-(c[D+4>>2]|0);f=c[D>>2]|0;if((f|0)>(c[D+8>>2]|0)){i=d;return}else{E=D;F=f}while(1){f=c[E+12>>2]|0;D=c[E+4>>2]|0;f:do if((f|0)<(D|0)){G=c[E>>2]|0;H=f}else{C=c[E+16>>2]|0;y=c[E>>2]|0;x=f;while(1){B=x+ -1|0;if(a[(c[C+((x-D|0)*12|0)>>2]|0)+(F-y)>>0]|0){G=y;H=x;break f}if((x|0)>(D|0))x=B;else{G=y;H=B;break}}}while(0);c[(c[z>>2]|0)+(F-G<<2)>>2]=f-H;E=c[b>>2]|0;if((F|0)>=(c[E+8>>2]|0))break;else F=F+1|0}i=d;return};case 0:{F=b+36|0;E=c[b>>2]|0;H=(c[E+12>>2]|0)+1-(c[E+4>>2]|0)|0;G=b+40|0;z=c[G>>2]|0;D=c[F>>2]|0;y=z-D>>2;if(y>>>0>=H>>>0)if(y>>>0>H>>>0?(x=D+(H<<2)|0,(z|0)!=(x|0)):0){c[G>>2]=z+(~((z+ -4+(0-x)|0)>>>2)<<2);I=E}else I=E;else{je(F,H-y|0);I=c[b>>2]|0}c[b+8>>2]=(c[I+8>>2]|0)+1-(c[I>>2]|0);y=c[I+4>>2]|0;if((y|0)>(c[I+12>>2]|0)){i=d;return}else{J=I;K=y}while(1){y=c[J>>2]|0;I=c[J+8>>2]|0;H=c[J+4>>2]|0;g:do if((y|0)>(I|0))L=y;else{E=c[J+16>>2]|0;x=y;while(1){z=x+1|0;if(a[(c[E+((K-H|0)*12|0)>>2]|0)+(x-y)>>0]|0){L=x;break g}if((x|0)<(I|0))x=z;else{L=z;break}}}while(0);c[(c[F>>2]|0)+(K-H<<2)>>2]=L-y;J=c[b>>2]|0;if((K|0)>=(c[J+12>>2]|0))break;else K=K+1|0}i=d;return};case 2:{K=b+36|0;J=c[b>>2]|0;L=(c[J+12>>2]|0)+1-(c[J+4>>2]|0)|0;F=b+40|0;I=c[F>>2]|0;f=c[K>>2]|0;x=I-f>>2;if(x>>>0>=L>>>0)if(x>>>0>L>>>0?(E=f+(L<<2)|0,(I|0)!=(E|0)):0){c[F>>2]=I+(~((I+ -4+(0-E)|0)>>>2)<<2);M=J}else M=J;else{je(K,L-x|0);M=c[b>>2]|0}c[b+8>>2]=(c[M+8>>2]|0)+1-(c[M>>2]|0);x=c[M+4>>2]|0;if((x|0)>(c[M+12>>2]|0)){i=d;return}else{N=M;O=x}while(1){x=c[N+8>>2]|0;M=c[N>>2]|0;L=c[N+4>>2]|0;h:do if((x|0)<(M|0))P=x;else{J=c[N+16>>2]|0;E=x;while(1){I=E+ -1|0;if(a[(c[J+((O-L|0)*12|0)>>2]|0)+(E-M)>>0]|0){P=E;break h}if((E|0)>(M|0))E=I;else{P=I;break}}}while(0);c[(c[K>>2]|0)+(O-L<<2)>>2]=x-P;N=c[b>>2]|0;if((O|0)>=(c[N+12>>2]|0))break;else O=O+1|0}i=d;return};default:{i=d;return}}}function Pg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;b=i;d=a+20|0;e=c[d>>2]|0;if((e|0)>=0){f=e;i=b;return f|0}e=a+8|0;if((c[e>>2]|0)<0)Og(a);c[d>>2]=0;g=a+40|0;h=a+36|0;j=0;while(1){if((c[e>>2]|0)<0)Og(a);k=c[g>>2]|0;l=c[h>>2]|0;if((j|0)>=(k-l>>2|0))break;c[d>>2]=(c[d>>2]|0)+(c[l+(j<<2)>>2]|0);j=j+1|0}if((c[e>>2]|0)<0){Og(a);m=c[g>>2]|0;n=c[h>>2]|0}else{m=k;n=l}if((m-n|0)<=4){f=c[d>>2]|0;i=b;return f|0}if((c[e>>2]|0)<0){Og(a);o=c[g>>2]|0;p=c[h>>2]|0}else{o=m;p=n}n=(c[d>>2]|0)/(o-p>>2|0)|0;c[d>>2]=n;f=n;i=b;return f|0}function Qg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;b=i;d=a+12|0;e=c[d>>2]|0;if((e|0)>=0){f=e;i=b;return f|0}e=a+8|0;if((c[e>>2]|0)<0)Og(a);g=a+36|0;h=c[g>>2]|0;c[d>>2]=c[h>>2];j=a+40|0;k=h;h=1;while(1){if((c[e>>2]|0)<0){Og(a);l=c[g>>2]|0}else l=k;if((h|0)>=((c[j>>2]|0)-l>>2|0))break;m=c[l+(h<<2)>>2]|0;if((m|0)>(c[d>>2]|0))c[d>>2]=m;k=l;h=h+1|0}f=c[d>>2]|0;i=b;return f|0}function Rg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;f=a+8|0;if((c[f>>2]|0)<0)Og(a);if((d|0)<0){if((c[f>>2]|0)<0)Og(a);g=((c[a+40>>2]|0)-(c[a+36>>2]|0)>>2)+ -1|0}else g=d;if((g|0)<(b|0)){h=0;i=e;return h|0}d=c[a+36>>2]|0;a=b;b=0;while(1){f=c[d+(a<<2)>>2]|0;j=(f|0)>(b|0)?f:b;if((a|0)<(g|0)){a=a+1|0;b=j}else{h=j;break}}i=e;return h|0}function Sg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;b=i;d=a+16|0;e=c[d>>2]|0;if((e|0)>=0){f=e;i=b;return f|0}e=a+8|0;if((c[e>>2]|0)<0)Og(a);g=a+36|0;h=c[g>>2]|0;c[d>>2]=c[h>>2];j=a+40|0;k=h;h=1;while(1){if((c[e>>2]|0)<0){Og(a);l=c[g>>2]|0}else l=k;if((h|0)>=((c[j>>2]|0)-l>>2|0))break;m=c[l+(h<<2)>>2]|0;if((m|0)<(c[d>>2]|0))c[d>>2]=m;k=l;h=h+1|0}f=c[d>>2]|0;i=b;return f|0}function Tg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;f=a+8|0;if((c[f>>2]|0)<0)Og(a);if((d|0)<0){if((c[f>>2]|0)<0)Og(a);g=((c[a+40>>2]|0)-(c[a+36>>2]|0)>>2)+ -1|0}else g=d;d=c[f>>2]|0;if((g|0)<(b|0)){h=d;i=e;return h|0}f=c[a+36>>2]|0;a=b;b=d;while(1){d=c[f+(a<<2)>>2]|0;j=(d|0)<(b|0)?d:b;if((a|0)<(g|0)){a=a+1|0;b=j}else{h=j;break}}i=e;return h|0}function Ug(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;d=i;e=a+8|0;if((c[e>>2]|0)<0)Og(a);if((b|0)>=0){if((c[e>>2]|0)<0)Og(a);f=a+40|0;g=c[f>>2]|0;h=a+36|0;j=c[h>>2]|0;if((g-j>>2|0)>(b|0)){k=b;l=j}else{if((c[e>>2]|0)<0){Og(a);m=c[f>>2]|0;n=c[h>>2]|0}else{m=g;n=j}k=(m-n>>2)+ -1|0;l=n}}else{k=0;l=c[a+36>>2]|0}i=d;return c[l+(k<<2)>>2]|0}function Vg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;e=i;f=a+8|0;if((c[f>>2]|0)<0)Og(a);if((d|0)>=0){if((c[f>>2]|0)<0)Og(a);g=c[a+36>>2]|0;if(((c[a+40>>2]|0)-g>>2|0)>(d|0)){h=d;j=g}else k=7}else k=7;if((k|0)==7){if((c[f>>2]|0)<0)Og(a);f=c[a+36>>2]|0;h=((c[a+40>>2]|0)-f>>2)+ -1|0;j=f}if((h|0)<(b|0)){l=0;i=e;return l|0}else{m=0;n=b}while(1){b=(c[j+(n<<2)>>2]|0)+m|0;if((n|0)<(h|0)){m=b;n=n+1|0}else{l=b;break}}i=e;return l|0}function Wg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;e=i;f=a+8|0;if((c[f>>2]|0)<0)Og(a);if((b|0)<0){g=0;i=e;return g|0}if((c[f>>2]|0)<0)Og(a);h=a+40|0;j=c[h>>2]|0;k=a+36|0;l=c[k>>2]|0;if(((j-l>>2)+ -2|0)<(b|0)){g=0;i=e;return g|0}if((c[f>>2]|0)<0){Og(a);m=c[h>>2]|0;n=c[k>>2]|0}else{m=j;n=l}if(((c[n+((m-n>>2)+ -1<<2)>>2]|0)-(c[n+(b<<2)>>2]|0)|0)<(d|0)){g=0;i=e;return g|0}else{o=b;p=n;q=m}while(1){m=o;o=o+1|0;if((c[f>>2]|0)<0){Og(a);r=c[h>>2]|0;s=c[k>>2]|0}else{r=q;s=p}if((o|0)>=(r-s>>2|0)){g=1;t=14;break}if((c[s+(o<<2)>>2]|0)<(c[s+(m<<2)>>2]|0)){g=0;t=14;break}else{p=s;q=r}}if((t|0)==14){i=e;return g|0}return 0}function Xg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;e=i;f=a+8|0;g=c[f>>2]|0;if((g|0)<0){Og(a);h=c[f>>2]|0;if((h|0)<0){Og(a);j=c[f>>2]|0}else j=h}else j=g;g=a+40|0;h=c[g>>2]|0;k=a+36|0;l=c[k>>2]|0;m=((h-l>>2|0)/20|0)+1|0;if((j|0)<0){Og(a);n=c[g>>2]|0;o=c[k>>2]|0;p=c[f>>2]|0}else{n=h;o=l;p=j}j=n-o>>2;l=((((p|0)<(j|0)?p:j)|0)/20|0)+1|0;if((d|0)>=0){if((p|0)<0){Og(a);q=c[g>>2]|0;r=c[k>>2]|0}else{q=n;r=o}if(((q-r>>2)-m|0)<(d|0)){s=c[f>>2]|0;t=r;u=q;v=11}else{w=d;x=r}}else{s=p;t=o;u=n;v=11}if((v|0)==11){if((s|0)<0){Og(a);y=c[g>>2]|0;z=c[k>>2]|0}else{y=u;z=t}w=(y-z>>2)-m|0;x=z}if((b|0)<0){A=0;i=e;return A|0}if((w-b|0)<=(l<<1|0)){A=0;i=e;return A|0}z=c[x+(b<<2)>>2]|0;if((z-(c[x+(w+ -1<<2)>>2]|0)|0)>(l|0)){B=b;C=z}else{A=0;i=e;return A|0}while(1){B=B+1|0;if((B|0)>=(w|0)){A=1;v=19;break}z=C;C=c[x+(B<<2)>>2]|0;if((C|0)>(z|0)){A=0;v=19;break}}if((v|0)==19){i=e;return A|0}return 0}function Yg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;d=i;e=b+24|0;a:do if((a[e>>0]|0)<0){a[e>>0]=0;f=b+8|0;if((c[f>>2]|0)<0?(Og(b),(c[f>>2]|0)<0):0)Og(b);g=b+40|0;h=c[g>>2]|0;j=b+36|0;k=c[j>>2]|0;if((h-k|0)>=20){if((c[f>>2]|0)<0){Og(b);l=c[g>>2]|0;m=c[j>>2]|0}else{l=h;m=k}k=m;h=l;n=-1;o=(((l-m>>2)*10|0)+ -10|0)/100|0;p=0;q=0;while(1){if((c[f>>2]|0)<0){Og(b);r=c[g>>2]|0;s=c[j>>2]|0}else{r=h;s=k}if((o|0)>((((r-s>>2)*90|0)+ -90|0)/100|0|0))break;t=c[s+(o<<2)>>2]|0;if((t|0)>(n|0)){u=t;v=o;w=o}else{u=n;v=p;w=(t|0)==(n|0)?o:q}k=s;h=r;n=u;o=o+1|0;p=v;q=w}if((p|0)<=(q|0)){if((c[f>>2]|0)<0){Og(b);x=c[g>>2]|0;y=c[j>>2]|0}else{x=r;y=s}if((p|0)>=((((x-y>>2)*25|0)+ -25|0)/100|0|0)){if((c[f>>2]|0)<0){Og(b);z=c[g>>2]|0;A=c[j>>2]|0}else{z=x;A=y}if((q|0)<=((((z-A>>2)*75|0)+ -75|0)/100|0|0)){if((c[f>>2]|0)<0){Og(b);B=c[g>>2]|0;C=c[j>>2]|0}else{B=z;C=A}if((c[C+(((((B-C>>2)*10|0)+ -10|0)/100|0)<<2)>>2]|0)<(n|0)){if((c[f>>2]|0)<0){Og(b);D=c[g>>2]|0;E=c[j>>2]|0}else{D=B;E=C}if((c[E+(((((D-E>>2)*90|0)+ -90|0)/100|0)<<2)>>2]|0)<(n|0)){o=(q+p|0)/2|0;if((c[f>>2]|0)<0){Og(b);F=c[g>>2]|0;G=c[j>>2]|0}else{F=D;G=E}h=(((F-G>>2)*10|0)+ -10|0)/100|0;while(1){if((h|0)>=(o|0))break;k=h;h=h+1|0;if((c[G+(k<<2)>>2]|0)>(c[G+(h<<2)>>2]|0))break a}if((c[f>>2]|0)<0){Og(b);H=c[g>>2]|0;I=c[j>>2]|0}else{H=F;I=G}h=(((H-I>>2)*90|0)+ -90|0)/100|0;while(1){if((h|0)<=(o|0))break;p=h;h=h+ -1|0;if((c[I+(p<<2)>>2]|0)>(c[I+(h<<2)>>2]|0))break a}a[e>>0]=1}}}}}}}while(0);i=d;return(a[e>>0]|0)!=0|0}function Zg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0;d=i;e=b+25|0;a:do if((a[e>>0]|0)<0){a[e>>0]=0;f=b+8|0;if((c[f>>2]|0)<0?(Og(b),(c[f>>2]|0)<0):0)Og(b);g=b+40|0;h=c[g>>2]|0;j=b+36|0;k=c[j>>2]|0;if((h-k|0)>=36?(l=c[f>>2]|0,(l|0)>=5):0){m=l;n=k;k=h;h=1;o=0;p=l;q=l;r=0;s=0;t=0;u=0-l|0;while(1){if((m|0)<0){Og(b);v=c[g>>2]|0;w=c[j>>2]|0}else{v=k;w=n}if((h|0)>=(v-w>>2|0))break;l=c[w+(h<<2)>>2]|0;x=h+ -1|0;y=l-(c[w+(x<<2)>>2]|0)|0;z=(y|0)<(p|0);A=(y|0)<(u|0);B=A?t:h;if((l|0)>(q|0)){C=q;D=r;E=s}else{F=(l|0)<(q|0);C=F?l:q;D=F?h:r;E=h}m=c[f>>2]|0;n=w;k=v;h=h+1|0;o=z?x:o;p=z?y:p;q=C;r=D;s=E;t=B;u=A?u:y}if((o|0)<(t|0)){if((c[f>>2]|0)<0){Og(b);G=c[g>>2]|0;H=c[j>>2]|0}else{G=v;H=w}if((o|0)<((((G-H>>2)*25|0)+ -25|0)/100|0|0)){if((c[f>>2]|0)<0){Og(b);I=c[g>>2]|0;J=c[j>>2]|0}else{I=G;J=H}if((((t|0)>((((I-J>>2)*75|0)+ -75|0)/100|0|0)?!((p|0)>-1|(u|0)<1):0)?(q=c[J+(o<<2)>>2]|0,(q|0)>=2):0)?(h=c[J+(t<<2)>>2]|0,(h|0)>=2):0){k=c[f>>2]|0;if((k|0)<0){Og(b);K=c[g>>2]|0;L=c[j>>2]|0;M=c[f>>2]|0}else{K=I;L=J;M=k}k=K-L>>2;if(((h+q|0)*3|0)>(((M|0)<(k|0)?M:k)|0)){k=s-r+1|0;if((M|0)<0){Og(b);N=c[g>>2]|0;O=c[j>>2]|0}else{N=K;O=L}if((k*3|0)<=(N-O>>1|0)?(o<<1|0)<(r|0):0){if((c[f>>2]|0)<0){Og(b);P=c[g>>2]|0;Q=c[j>>2]|0}else{P=N;Q=O}if((t<<1|0)>(s+ -1+(P-Q>>2)|0)){if((c[f>>2]|0)<0){Og(b);R=c[g>>2]|0;S=c[j>>2]|0}else{R=P;S=Q}if((r|0)<((((R-S>>2)*10|0)+ -10|0)/100|0|0))break;if((c[f>>2]|0)<0){Og(b);T=c[g>>2]|0;U=c[j>>2]|0}else{T=R;U=S}if((s|0)>((((T-U>>2)*90|0)+ -90|0)/100|0|0))break;q=c[f>>2]|0;if((q|0)<0){Og(b);V=c[g>>2]|0;W=c[j>>2]|0;X=c[f>>2]|0}else{V=T;W=U;X=q}q=V-W>>2;h=((((X|0)<(q|0)?X:q)|0)/30|0)+1|0;q=0-X|0;n=o;b:while(1){m=q-h|0;y=n;c:while(1){A=y;y=y+1|0;B=c[W+(y<<2)>>2]|0;do if((y|0)>=(r|0)&(A|0)<(s|0)){if((B|0)>(h|0))break a}else{z=c[W+(A<<2)>>2]|0;Y=B-z|0;if((B|0)==(z|0))break;if((Y|0)>(q|0))break c;if((Y|0)<(m|0))break a}while(0);if((y|0)>=(t|0))break b}if((y|0)<(t|0)){q=(((Y|0)>-1?Y:0-Y|0)|0)>(h|0)?Y:q+1|0;n=y}else break}if((X|0)<0){Og(b);Z=c[g>>2]|0;_=c[j>>2]|0}else{Z=V;_=W}if((k<<1|0)<(Z-_>>2|0)){n=(da(c[_+(o<<2)>>2]|0,1-o+r|0)|0)/2|0;q=((da(c[_+(t<<2)>>2]|0,t+1-s|0)|0)/2|0)+n|0;n=r+ -1|0;if((c[f>>2]|0)<0)Og(b);if((r|0)>=1){if((c[f>>2]|0)<0)Og(b);h=c[j>>2]|0;if(((c[g>>2]|0)-h>>2|0)>(n|0)){$=n;aa=h}else ba=60}else ba=60;if((ba|0)==60){if((c[f>>2]|0)<0)Og(b);h=c[j>>2]|0;$=((c[g>>2]|0)-h>>2)+ -1|0;aa=h}if(($|0)<(o|0))ca=0;else{h=0;n=o;while(1){u=(c[aa+(n<<2)>>2]|0)+h|0;if((n|0)<($|0)){h=u;n=n+1|0}else{ca=u;break}}}n=s+1|0;if((c[f>>2]|0)<0)Og(b);if((t|0)>=0){if((c[f>>2]|0)<0)Og(b);h=c[j>>2]|0;if(((c[g>>2]|0)-h>>2|0)>(t|0)){ea=t;fa=h}else ba=71}else ba=71;if((ba|0)==71){if((c[f>>2]|0)<0)Og(b);h=c[j>>2]|0;ea=((c[g>>2]|0)-h>>2)+ -1|0;fa=h}if((ea|0)<(n|0))ga=0;else{h=0;o=n;while(1){n=(c[fa+(o<<2)>>2]|0)+h|0;if((o|0)<(ea|0)){h=n;o=o+1|0}else{ga=n;break}}}if((ga+ca|0)>=(q|0))break}a[e>>0]=1}}}}}}}}while(0);i=d;return(a[e>>0]|0)!=0|0}function _g(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;d=i;e=b+26|0;f=a[e>>0]|0;if(f<<24>>24>=0){g=f;h=g<<24>>24!=0;i=d;return h|0}a[e>>0]=0;f=b+8|0;if((c[f>>2]|0)<0?(Og(b),(c[f>>2]|0)<0):0)Og(b);j=b+40|0;k=c[j>>2]|0;l=b+36|0;m=c[l>>2]|0;if((k-m|0)<40){g=a[e>>0]|0;h=g<<24>>24!=0;i=d;return h|0}if((c[f>>2]|0)<0){Og(b);n=c[j>>2]|0;o=c[l>>2]|0}else{n=k;o=m}m=c[o+(((n-o>>2|0)/2|0)<<2)>>2]|0;k=o;o=n;n=1;p=m;q=m;while(1){if((c[f>>2]|0)<0){Og(b);r=c[j>>2]|0;s=c[l>>2]|0}else{r=o;s=k}if((n|0)>=((r-s>>2)+ -1|0))break;m=c[s+(n<<2)>>2]|0;if((m|0)<(p|0)){t=m;u=q}else{t=p;u=(m|0)>(q|0)?m:q}k=s;o=r;n=n+1|0;p=t;q=u}if((c[f>>2]|0)<0){Og(b);v=c[j>>2]|0;w=c[l>>2]|0}else{v=r;w=s}s=(q-p|0)<=(((v-w>>2|0)/30|0)+1|0)&1;a[e>>0]=s;g=s;h=g<<24>>24!=0;i=d;return h|0}function $g(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;d=i;e=b+27|0;if((a[e>>0]|0)>=0){f=a[e>>0]|0;g=f<<24>>24!=0;i=d;return g|0}a[e>>0]=0;h=b+8|0;if((c[h>>2]|0)<0?(Og(b),(c[h>>2]|0)<0):0)Og(b);j=b+40|0;k=c[j>>2]|0;l=b+36|0;m=c[l>>2]|0;if((k-m|0)<48){f=a[e>>0]|0;g=f<<24>>24!=0;i=d;return g|0}n=c[h>>2]|0;if((n|0)<0){Og(b);o=c[j>>2]|0;p=c[l>>2]|0;q=c[h>>2]|0}else{o=k;p=m;q=n}n=(((o-p>>2)*15|0)+ -15|0)/100|0;m=(n|0)<3?3:n;if((q|0)<0){Og(b);r=c[j>>2]|0;s=c[l>>2]|0;t=c[h>>2]|0}else{r=o;s=p;t=q}q=(((r-s>>2)*85|0)+ -85|0)/100|0;if((t|0)<0){Og(b);u=c[j>>2]|0;v=c[l>>2]|0}else{u=r;v=s}s=(u-v>>2)+ -4|0;r=(s|0)<(q|0)?s:q;q=m+2|0;if((q|0)<(r|0))w=q;else{f=a[e>>0]|0;g=f<<24>>24!=0;i=d;return g|0}while(1){x=c[v+(w+ -1<<2)>>2]|0;if((x|0)==(c[v+(w<<2)>>2]|0))break;w=w+1|0;if((w|0)>=(r|0)){y=31;break}}if((y|0)==31){f=a[e>>0]|0;g=f<<24>>24!=0;i=d;return g|0}if((x|0)<0){f=a[e>>0]|0;g=f<<24>>24!=0;i=d;return g|0}if((m|0)<1)z=x;else{y=1;w=x;while(1){q=c[v+(y<<2)>>2]|0;s=(q|0)>(w|0)?q:w;if((y|0)<(m|0)){y=y+1|0;w=s}else{z=s;break}}}w=m+1|0;a:do if((w|0)<(r|0)){m=w;y=x;s=z;while(1){q=m;t=s;while(1){A=c[v+(q<<2)>>2]|0;if((A|0)<(y|0))break;p=(A|0)>(t|0)?A:t;o=q+1|0;if((o|0)<(r|0)){q=o;t=p}else{B=y;C=p;break a}}m=q+1|0;if((m|0)>=(r|0)){B=A;C=t;break}else{y=A;s=t}}}else{B=x;C=z}while(0);z=v;v=u;u=r;r=C;while(1){if((c[h>>2]|0)<0){Og(b);D=c[j>>2]|0;E=c[l>>2]|0}else{D=v;E=z}if((u|0)>=((D-E>>2)+ -1|0))break;C=c[E+(u<<2)>>2]|0;z=E;v=D;u=u+1|0;r=(C|0)>(r|0)?C:r}if((c[h>>2]|0)<0){Og(b);F=c[j>>2]|0;G=c[l>>2]|0}else{F=D;G=E}a[e>>0]=(r-B|0)<=(((F-G>>2|0)/30|0)+1|0)&1;f=a[e>>0]|0;g=f<<24>>24!=0;i=d;return g|0}function ah(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;d=i;e=b+28|0;a:do if((a[e>>0]|0)<0){a[e>>0]=0;f=b+8|0;if((c[f>>2]|0)<0?(Og(b),(c[f>>2]|0)<0):0)Og(b);g=b+40|0;h=c[g>>2]|0;j=b+36|0;k=c[j>>2]|0;if((h-k|0)>=20){l=c[f>>2]|0;if((l|0)<0){Og(b);m=c[g>>2]|0;n=c[j>>2]|0;o=c[f>>2]|0}else{m=h;n=k;o=l}l=m-n>>2;k=(o|0)<(l|0)?o:l;l=((k|0)/25|0)+1|0;if((k|0)>-25){k=m;h=n;p=0;while(1){q=l-p|0;if((c[h+(p<<2)>>2]|0)<=(q|0))break a;if((c[f>>2]|0)<0){Og(b);r=c[g>>2]|0;s=c[j>>2]|0}else{r=k;s=h}if((c[s+((r-s>>2)+~p<<2)>>2]|0)<=(q|0))break a;p=p+1|0;if((p|0)>=(l|0)){t=r;u=s;break}else{k=r;h=s}}}else{t=m;u=n}h=b+16|0;k=c[h>>2]|0;if((k|0)<0){if((c[f>>2]|0)<0){Og(b);v=c[j>>2]|0}else v=u;c[h>>2]=c[v>>2];p=v;q=1;while(1){if((c[f>>2]|0)<0){Og(b);w=c[j>>2]|0}else w=p;x=c[g>>2]|0;if((q|0)>=(x-w>>2|0))break;y=c[w+(q<<2)>>2]|0;if((y|0)<(c[h>>2]|0))c[h>>2]=y;p=w;q=q+1|0}z=w;A=x;B=c[h>>2]|0}else{z=u;A=t;B=k}q=c[f>>2]|0;p=(q|0)/2|0;y=z;C=A;D=q;q=0;E=p;while(1){if((D|0)<0){Og(b);F=c[g>>2]|0;G=c[j>>2]|0}else{F=C;G=y}if((q|0)>=(F-G>>2|0))break a;H=c[G+(q<<2)>>2]|0;if((H|0)==(B|0))break;if((H|0)>=(E|0))if((H|0)>(E+l|0)&(E|0)<(p|0))break a;else I=E;else I=H;y=G;C=F;D=c[f>>2]|0;q=q+1|0;E=I}if((q|0)>=2){if((c[f>>2]|0)<0){Og(b);J=c[g>>2]|0;K=c[j>>2]|0}else{J=F;K=G}if((q|0)<=((J-K>>2)+ -3|0)){if((c[f>>2]|0)<0){Og(b);L=c[g>>2]|0;M=c[j>>2]|0}else{L=J;M=K}E=L-M>>2;D=p;b:while(1){C=D+l|0;if((D|0)<(p|0))N=E;else{y=E;while(1){k=y+ -1|0;if((y|0)<=(q|0)){O=0;break b}h=c[M+(k<<2)>>2]|0;if((h|0)==(B|0)){O=k;break b}if((h|0)<(D|0)){E=k;D=h;continue b}else y=k}}while(1){if((N|0)<=(q|0)){O=0;break b}N=N+ -1|0;y=c[M+(N<<2)>>2]|0;if((y|0)==(B|0)){O=N;break b}if((y|0)<(D|0)){E=N;D=y;continue b}if((y|0)>(C|0))break a}}if((O|0)>=(q|0)){if((c[f>>2]|0)<0){Og(b);P=c[g>>2]|0;Q=c[j>>2]|0}else{P=L;Q=M}if((O|0)<=((P-Q>>2)+ -3|0)){D=B+l|0;E=q;while(1){E=E+1|0;if((E|0)>=(O|0))break;if((c[Q+(E<<2)>>2]|0)>(D|0))break a}a[e>>0]=1}}}}}}while(0);i=d;return(a[e>>0]|0)!=0|0}function bh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;d=i;e=a+8|0;if((c[e>>2]|0)<0?(Og(a),(c[e>>2]|0)<0):0)Og(a);f=a+40|0;g=c[f>>2]|0;h=a+36|0;j=c[h>>2]|0;if((g-j|0)<20){k=0;i=d;return k|0}if((b+ -25|0)>>>0>50){k=0;i=d;return k|0}l=c[e>>2]|0;if((l|0)<0){Og(a);m=c[f>>2]|0;n=c[h>>2]|0;o=c[e>>2]|0}else{m=g;n=j;o=l}l=(da((m-n>>2)+ -1|0,b)|0)/100|0;if((o|0)<0){Og(a);o=c[f>>2]|0;b=c[h>>2]|0;j=(o-b>>2|0)/4|0;if((c[e>>2]|0)<0){Og(a);p=c[f>>2]|0;q=c[h>>2]|0;r=j}else{p=o;q=b;r=j}}else{p=m;q=n;r=(m-n>>2|0)/4|0}n=(p-q>>2)-l|0;q=(n|0)<(l|0)?n:l;n=(q|0)<(r|0)?q:r;if((Pg(a)|0)<2)s=2;else s=Pg(a)|0;if((n|0)<=0){k=0;i=d;return k|0}r=c[h>>2]|0;q=0;while(1){p=q+l|0;if((c[r+(p<<2)>>2]|0)<(s|0)){t=p;break}p=l-q+ -1|0;q=q+1|0;if((c[r+(p<<2)>>2]|0)<(s|0)){t=p;break}if((q|0)>=(n|0)){k=0;u=26;break}}if((u|0)==26){i=d;return k|0}if((t|0)<0){k=0;i=d;return k|0}else{v=r;w=t}while(1){w=w+1|0;if((c[e>>2]|0)<0){Og(a);x=c[h>>2]|0}else x=v;if((w|0)>=((c[f>>2]|0)-x>>2|0)){k=0;u=26;break}if((c[x+(w<<2)>>2]|0)>(s|0)){y=t;break}else v=x}if((u|0)==26){i=d;return k|0}while(1){if((y|0)<=0){k=0;u=26;break}y=y+ -1|0;if((c[x+(y<<2)>>2]|0)>(s|0)){k=1;u=26;break}}if((u|0)==26){i=d;return k|0}return 0}function ch(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;d=i;e=b+29|0;f=a[e>>0]|0;do if(f<<24>>24<0){g=b+8|0;h=c[g>>2]|0;if((h|0)<0){Og(b);j=c[g>>2]|0}else j=h;if(((j|0)>=5?(h=b+40|0,k=b+36|0,((c[h>>2]|0)-(c[k>>2]|0)|0)>=20):0)?ah(b)|0:0){l=c[g>>2]|0;if((l|0)<0){Og(b);m=c[g>>2]|0}else m=l;l=c[h>>2]|0;n=c[k>>2]|0;o=l-n>>2;p=((((m|0)<(o|0)?m:o)|0)/30|0)+1|0;o=m;q=n;n=l;l=0;r=-1;s=0;while(1){if((o|0)<0){Og(b);t=c[h>>2]|0;u=c[k>>2]|0}else{t=n;u=q}if((l|0)>=(t-u>>2|0))break;if((c[u+(l<<2)>>2]|0)>(p|0)){v=r;w=s}else{v=(r|0)<0?l:r;w=l}o=c[g>>2]|0;q=u;n=t;l=l+1|0;r=v;s=w}if((r|0)>0){if((c[g>>2]|0)<0){Og(b);x=c[h>>2]|0;y=c[k>>2]|0}else{x=t;y=u}z=((s-r<<2)+4|0)<(x-y>>2|0)&1}else z=0;a[e>>0]=z;A=z;break}a[e>>0]=0;B=0;i=d;return B|0}else A=f;while(0);B=A<<24>>24!=0;i=d;return B|0}function dh(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;d=i;e=b+30|0;a:do if((a[e>>0]|0)<0){a[e>>0]=0;f=b+8|0;if((c[f>>2]|0)<0?(Og(b),(c[f>>2]|0)<0):0)Og(b);g=b+40|0;h=b+36|0;if(((c[g>>2]|0)-(c[h>>2]|0)|0)>=20){if((Pg(b)|0)<2?(eh(b)|0)>2:0)j=2;else j=Pg(b)|0;k=0;l=0;m=0;n=0;o=0;p=0;while(1){if((c[f>>2]|0)<0)Og(b);q=c[g>>2]|0;r=c[h>>2]|0;if((k|0)>=(q-r>>2|0))break;s=c[r+(k<<2)>>2]|0;do if(!n){if((s|0)>=(j|0)){if((s|0)<=(j|0)){t=l;u=m;v=0;w=o;x=p;break}t=l;u=m;v=0;w=o+1|0;x=s+p|0;break}if((c[f>>2]|0)<0){Og(b);y=c[g>>2]|0;z=c[h>>2]|0}else{y=q;z=r}if((k|0)<((((y-z>>2)*25|0)+ -25|0)/100|0|0))break a;if((c[f>>2]|0)<0){Og(b);A=c[g>>2]|0;B=c[h>>2]|0}else{A=y;B=z}if((k|0)>((((A-B>>2)*70|0)+ -70|0)/100|0|0))break a;else{t=l;u=m;v=1;w=o;x=p}}else if((n|0)==1){if((s|0)<=(j|0)){if((s|0)>=(j|0)){t=l;u=m;v=1;w=o;x=p;break}t=l+1|0;u=s+m|0;v=1;w=o;x=p;break}if((c[f>>2]|0)<0){Og(b);C=c[g>>2]|0;D=c[h>>2]|0}else{C=q;D=r}if((k|0)<((((C-D>>2)*30|0)+ -30|0)/100|0|0))break a;if((c[f>>2]|0)<0){Og(b);E=c[g>>2]|0;F=c[h>>2]|0}else{E=C;F=D}if((k|0)>((((E-F>>2)*75|0)+ -75|0)/100|0|0))break a;else{t=l;u=m;v=2;w=o;x=p}}else if((n|0)==2){if((s|0)<(j|0))break a;if((s|0)>(j|0)){t=l;u=m;v=2;w=o+1|0;x=s+p|0}else{t=l;u=m;v=2;w=o;x=p}}else{t=l;u=m;v=n;w=o;x=p}while(0);k=k+1|0;l=t;m=u;n=v;o=w;p=x}if((o|0)>1)G=(p|0)/(o|0)|0;else G=p;if((l|0)>1)H=(m|0)/(l|0)|0;else H=m;if((n|0)==2)I=(G-H|0)>((eh(b)|0)/2|0|0)&1;else I=0;a[e>>0]=I}}while(0);i=d;return(a[e>>0]|0)!=0|0}function eh(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;b=i;d=a+12|0;e=c[d>>2]|0;if((e|0)<0){f=a+8|0;if((c[f>>2]|0)<0)Og(a);g=a+36|0;h=c[g>>2]|0;c[d>>2]=c[h>>2];j=a+40|0;k=h;h=1;while(1){if((c[f>>2]|0)<0){Og(a);l=c[g>>2]|0}else l=k;if((h|0)>=((c[j>>2]|0)-l>>2|0))break;m=c[l+(h<<2)>>2]|0;if((m|0)>(c[d>>2]|0))c[d>>2]=m;k=l;h=h+1|0}n=c[d>>2]|0}else n=e;e=a+16|0;d=c[e>>2]|0;if((d|0)>=0){o=d;p=n-o|0;i=b;return p|0}d=a+8|0;if((c[d>>2]|0)<0)Og(a);h=a+36|0;l=c[h>>2]|0;c[e>>2]=c[l>>2];k=a+40|0;j=l;l=1;while(1){if((c[d>>2]|0)<0){Og(a);q=c[h>>2]|0}else q=j;if((l|0)>=((c[k>>2]|0)-q>>2|0))break;g=c[q+(l<<2)>>2]|0;if((g|0)<(c[e>>2]|0))c[e>>2]=g;j=q;l=l+1|0}o=c[e>>2]|0;p=n-o|0;i=b;return p|0}function fh(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;d=i;e=b+31|0;f=a[e>>0]|0;do if(f<<24>>24<0){g=b+8|0;h=c[g>>2]|0;if((h|0)<0){Og(b);j=c[g>>2]|0}else j=h;if(((j|0)>=5?(h=b+40|0,k=b+36|0,((c[h>>2]|0)-(c[k>>2]|0)|0)>=20):0)?ah(b)|0:0){l=c[g>>2]|0;m=(l|0)/20|0;n=((l|0)/10|0)+2|0;o=l;l=0;p=-1;q=-1;r=-1;s=-1;while(1){if((o|0)<0)Og(b);t=c[h>>2]|0;u=c[k>>2]|0;if((l|0)>=(t-u>>2|0))break;v=c[u+(l<<2)>>2]|0;if((v|0)<=(n|0)){w=(p|0)<0?l:p;if((v|0)>(m|0)){x=w;y=q;z=l;A=s}else{x=w;y=(q|0)<0?l:q;z=l;A=l}}else{x=p;y=q;z=r;A=s}o=c[g>>2]|0;l=l+1|0;p=x;q=y;r=z;s=A}l=r-p+1|0;if((q|0)>0){if((c[g>>2]|0)<0){Og(b);B=c[h>>2]|0;C=c[k>>2]|0}else{B=t;C=u}if((l<<1|0)<=((B-C>>2)+1|0))D=(q+ -1-s+l|0)<=(n-m<<1|0)&1;else D=0}else D=0;a[e>>0]=D;E=D;break}a[e>>0]=0;F=0;i=d;return F|0}else E=f;while(0);F=E<<24>>24!=0;i=d;return F|0}function gh(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0;d=i;e=b+32|0;if((a[e>>0]|0)>=0){f=a[e>>0]|0;g=f<<24>>24!=0;i=d;return g|0}a[e>>0]=0;h=b+8|0;if((c[h>>2]|0)<0?(Og(b),(c[h>>2]|0)<0):0)Og(b);j=b+40|0;k=b+36|0;if(((c[j>>2]|0)-(c[k>>2]|0)|0)<20){f=a[e>>0]|0;g=f<<24>>24!=0;i=d;return g|0}if((Pg(b)|0)<2?(eh(b)|0)>2:0)l=2;else l=Pg(b)|0;m=((l|0)<2&1)+l|0;l=c[k>>2]|0;n=c[l>>2]|0;o=c[h>>2]|0;if((o|0)<0){Og(b);p=c[k>>2]|0;q=c[h>>2]|0}else{p=l;q=o}o=c[j>>2]|0;l=c[p+((o-p>>2)+ -1<<2)>>2]|0;if((q|0)<0){Og(b);q=c[j>>2]|0;r=c[k>>2]|0;s=(q-r>>2)+ -1|0;if((c[h>>2]|0)<0){Og(b);t=s;u=c[j>>2]|0;v=c[k>>2]|0}else{t=s;u=q;v=r}}else{t=(o-p>>2)+ -1|0;u=o;v=p}p=((u-v>>2)+5|0)/10|0;o=(p|0)>2?p:2;a:do if((o|0)>1){p=u;r=v;q=n;s=l;w=0;x=t;y=-2;z=1;while(1){A=c[r+(z<<2)>>2]|0;B=(A|0)<(q|0);C=B?A:q;A=B?z:w;if((c[h>>2]|0)<0){Og(b);D=c[j>>2]|0;E=c[k>>2]|0}else{D=p;E=r}if((c[E+(y+(D-E>>2)<<2)>>2]|0)<(s|0)){B=c[h>>2]|0;if((B|0)<0){Og(b);F=c[j>>2]|0;G=c[k>>2]|0;H=c[h>>2]|0}else{F=D;G=E;H=B}B=c[G+(y+(F-G>>2)<<2)>>2]|0;if((H|0)<0){Og(b);I=c[j>>2]|0;J=c[k>>2]|0}else{I=F;J=G}K=I;L=J;M=B;N=y+(I-J>>2)|0}else{K=D;L=E;M=s;N=x}B=z+1|0;if((B|0)>=(o|0)){O=C;P=M;Q=A;R=N;break a}p=K;r=L;q=C;s=M;w=A;x=N;y=-2-z|0;z=B}}else{O=n;P=l;Q=0;R=t}while(0);if(!((O|0)<(m|0)&(P|0)<(m|0))){f=a[e>>0]|0;g=f<<24>>24!=0;i=d;return g|0}if((O*3|0)>=((eh(b)|0)<<1|0)){f=a[e>>0]|0;g=f<<24>>24!=0;i=d;return g|0}if((P*3|0)>=((eh(b)|0)<<1|0)){f=a[e>>0]|0;g=f<<24>>24!=0;i=d;return g|0}b=(O|0)<(P|0)?P:O;O=b+1|0;P=Q;Q=0;while(1)if(!Q){m=P+1|0;if((m|0)>=(R|0)){S=0;break}P=m;Q=(c[(c[k>>2]|0)+(m<<2)>>2]|0)>(O|0)?1:Q;continue}else if((Q|0)==1){m=P+1|0;if((m|0)>=(R|0)){S=1;break}P=m;Q=(c[(c[k>>2]|0)+(m<<2)>>2]|0)>(O|0)?2:0;continue}else if((Q|0)==2){m=P+1|0;if((m|0)>=(R|0)){S=2;break}P=m;Q=(c[(c[k>>2]|0)+(m<<2)>>2]|0)>(b|0)?Q:3;continue}else if((Q|0)==3){m=P+1|0;if((m|0)>=(R|0)){S=3;break}if((c[(c[k>>2]|0)+(m<<2)>>2]|0)>(O|0)){T=41;break}else{P=m;Q=3;continue}}else{U=P;T=35;break}if((T|0)==35)while(1){T=0;U=U+1|0;if((U|0)>=(R|0)){S=Q;break}else T=35}else if((T|0)==41){f=a[e>>0]|0;g=f<<24>>24!=0;i=d;return g|0}a[e>>0]=(S|0)>1&1;f=a[e>>0]|0;g=f<<24>>24!=0;i=d;return g|0}function hh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;d=i;e=a+8|0;if((c[e>>2]|0)<0?(Og(a),(c[e>>2]|0)<0):0)Og(a);f=a+40|0;g=c[f>>2]|0;h=a+36|0;j=c[h>>2]|0;if((g-j|0)<20){k=0;i=d;return k|0}if((b+ -25|0)>>>0>50){k=0;i=d;return k|0}l=c[e>>2]|0;if((l|0)<0){Og(a);m=c[f>>2]|0;n=c[h>>2]|0;o=c[e>>2]|0}else{m=g;n=j;o=l}l=(da((m-n>>2)+ -1|0,b)|0)/100|0;if((o|0)<0){Og(a);o=c[f>>2]|0;b=c[h>>2]|0;j=(o-b>>2|0)/4|0;if((c[e>>2]|0)<0){Og(a);p=c[f>>2]|0;q=c[h>>2]|0;r=j}else{p=o;q=b;r=j}}else{p=m;q=n;r=(m-n>>2|0)/4|0}n=(p-q>>2)-l|0;q=(n|0)<(l|0)?n:l;n=(q|0)<(r|0)?q:r;r=Pg(a)|0;q=(c[e>>2]|0)/3|0;p=(q|0)<(r|0)?q:r;r=(p|0)>2?p:2;p=(n|0)>0;a:do if(p){q=c[h>>2]|0;m=0;while(1){j=m+l|0;if((c[q+(j<<2)>>2]|0)>(r|0)){s=j;break}j=l-m+ -1|0;m=m+1|0;if((c[q+(j<<2)>>2]|0)>(r|0)){s=j;break}if((m|0)>=(n|0)){t=-1;u=18;break a}}if((s|0)<0){t=s;u=18}else{v=q;w=r;x=s}}else{t=-1;u=18}while(0);do if((u|0)==18){b:do if(!(Pg(a)|0)){s=r+ -1|0;if(p){m=c[h>>2]|0;j=0;while(1){b=j+l|0;if((c[m+(b<<2)>>2]|0)>(s|0)){y=s;z=b;break b}b=l-j+ -1|0;j=j+1|0;if((c[m+(b<<2)>>2]|0)>(s|0)){y=s;z=b;break b}if((j|0)>=(n|0)){y=s;z=t;break}}}else{y=s;z=t}}else{y=r;z=t}while(0);if((z|0)<0){k=0;i=d;return k|0}else{v=c[h>>2]|0;w=y;x=z;break}}while(0);z=(c[v+(x<<2)>>2]|0)/2|0;y=(w|0)<(z|0)?z:w;w=v;v=x;while(1){v=v+1|0;if((c[e>>2]|0)<0){Og(a);A=c[h>>2]|0}else A=w;if((v|0)>=((c[f>>2]|0)-A>>2|0)){k=0;u=33;break}if((c[A+(v<<2)>>2]|0)<(y|0)){B=x;break}else w=A}if((u|0)==33){i=d;return k|0}while(1){if((B|0)<=0){k=0;u=33;break}B=B+ -1|0;if((c[A+(B<<2)>>2]|0)<(y|0)){k=1;u=33;break}}if((u|0)==33){i=d;return k|0}return 0}function ih(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;b=i;d=a+8|0;if((c[d>>2]|0)<0?(Og(a),(c[d>>2]|0)<0):0)Og(a);e=a+40|0;f=c[e>>2]|0;g=a+36|0;h=c[g>>2]|0;if((f-h|0)<20){i=b;return 0}if((c[d>>2]|0)<0){Og(a);j=c[e>>2]|0;k=c[g>>2]|0}else{j=f;k=h}h=(j-k>>2|0)/30|0;f=c[k>>2]|0;if((f|0)<(h+2|0)){i=b;return 0}l=a+16|0;m=c[l>>2]|0;if((m|0)<0){if((c[d>>2]|0)<0){Og(a);n=c[g>>2]|0;o=c[n>>2]|0;p=n}else{o=f;p=k}c[l>>2]=o;o=p;p=1;while(1){if((c[d>>2]|0)<0){Og(a);q=c[g>>2]|0}else q=o;r=c[e>>2]|0;if((p|0)>=(r-q>>2|0))break;f=c[q+(p<<2)>>2]|0;if((f|0)<(c[l>>2]|0))c[l>>2]=f;o=q;p=p+1|0}s=c[l>>2]|0;t=q;u=r}else{s=m;t=k;u=j}j=c[d>>2]|0;k=~h;h=j;m=t;t=u;u=0;r=j;while(1){if((h|0)<0){Og(a);v=c[e>>2]|0;w=c[g>>2]|0}else{v=t;w=m}if((u|0)>=((v-w>>2)+k|0)){x=31;break}j=c[w+(u<<2)>>2]|0;if((j|0)==(s|0)){x=27;break}if((j|0)>=(r|0))if((j|0)>(r+1|0)){x=31;break}else y=r;else y=j;h=c[d>>2]|0;m=w;t=v;u=u+1|0;r=y}if((x|0)==27){if((u|0)<2){i=b;return 0}y=u<<1;if((c[d>>2]|0)>=0){z=v;A=w;B=z;C=A;D=B-C|0;E=D>>2;F=(y|0)<=(E|0);i=b;return F|0}Og(a);z=c[e>>2]|0;A=c[g>>2]|0;B=z;C=A;D=B-C|0;E=D>>2;F=(y|0)<=(E|0);i=b;return F|0}else if((x|0)==31){i=b;return 0}return 0}function jh(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;b=i;d=a+8|0;if((c[d>>2]|0)<0?(Og(a),(c[d>>2]|0)<0):0)Og(a);e=a+40|0;f=c[e>>2]|0;g=a+36|0;h=c[g>>2]|0;j=((f-h>>2|0)/30|0)+1|0;k=h;h=f;f=j;l=0;m=0;while(1){if((c[d>>2]|0)<0){Og(a);n=c[e>>2]|0;o=c[g>>2]|0}else{n=h;o=k}if((f|0)>=((n-o>>2)-j|0)){p=o;q=n;r=l;break}s=c[o+(f<<2)>>2]|0;t=(s|0)>(m|0);u=t?f:l;k=o;h=n;f=f+1|0;l=u;m=t?s:m}while(1){f=r+1|0;if((c[d>>2]|0)<0){Og(a);v=c[e>>2]|0;w=c[g>>2]|0}else{v=q;w=p}if((f|0)>=(v-w>>2|0)){x=13;break}if((c[w+(f<<2)>>2]|0)<(m|0)){x=13;break}else{p=w;q=v;r=f}}if((x|0)==13){i=b;return(r+l|0)/2|0|0}return 0}function kh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;e=i;f=a+8|0;g=c[f>>2]|0;if((g|0)<0){Og(a);h=c[f>>2]|0;if((h|0)<0){Og(a);j=c[f>>2]|0}else j=h}else j=g;g=a+40|0;h=c[g>>2]|0;k=a+36|0;l=c[k>>2]|0;m=((h-l>>2|0)/30|0)+1|0;if((j|0)<0){Og(a);n=c[g>>2]|0;o=c[k>>2]|0}else{n=h;o=l}if((n-o>>2|0)<(m<<1|0)){p=0;i=e;return p|0}if((d|0)<2)if((Pg(a)|0)<2)q=2;else q=Pg(a)|0;else q=d;d=c[f>>2]|0;o=d+1|0;n=b+1|0;b=d;d=0;l=m;h=0;j=0;while(1){if((b|0)<0)Og(a);r=c[g>>2]|0;s=c[k>>2]|0;if((l|0)>=((r-s>>2)-m|0)){t=l;u=h;break}v=c[s+(l<<2)>>2]|0;if(j)if((v|0)>(q|0))if((h|0)==(n|0)){w=18;break}else{x=d;y=h;z=0}else{x=d;y=h;z=j}else{A=(v|0)<(q|0);x=A?l:d;y=(A&1)+h|0;z=A&1}b=c[f>>2]|0;d=x;l=l+1|0;h=y;j=z}if((w|0)==18){t=l+ -1|0;u=n}if((c[f>>2]|0)<0){Og(a);B=c[g>>2]|0;C=c[k>>2]|0}else{B=r;C=s}s=(((t|0)>=(B-C>>2|0))<<31>>31)+t|0;if((u|0)!=(n|0)){p=0;i=e;return p|0}if((d|0)>(s|0)){D=d;E=o}else{n=d;u=d;d=o;while(1){o=c[C+(u<<2)>>2]|0;t=(o|0)<(d|0);B=t?u:n;r=t?o:d;if((u|0)<(s|0)){n=B;u=u+1|0;d=r}else{D=B;E=r;break}}}a:do if((s|0)<(D|0))F=s;else{d=s;while(1){u=d+ -1|0;if((c[C+(d<<2)>>2]|0)==(E|0)){F=d;break a}if((d|0)>(D|0))d=u;else{F=u;break}}}while(0);p=(F+D|0)/2|0;i=e;return p|0}function lh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;d=i;e=a+8|0;if((c[e>>2]|0)<0?(Og(a),(c[e>>2]|0)<0):0)Og(a);f=a+40|0;g=a+36|0;if((c[f>>2]|0)==(c[g>>2]|0)){h=0;i=d;return h|0}if((b|0)<1)if((Pg(a)|0)<2)j=2;else j=Pg(a)|0;else j=b;b=c[e>>2]|0;k=j-((((b|0)/40|0)+1|0)/2|0)|0;l=((b|0)/80|0)+j|0;if((k|0)<1){h=1;i=d;return h|0}j=c[g>>2]|0;m=(c[j>>2]|0)<(k|0)&1;n=b;b=j;j=1;o=m;p=m;while(1){if((n|0)<0){Og(a);q=c[g>>2]|0}else q=b;if((j|0)>=((c[f>>2]|0)-q>>2|0)){h=o;break}if((p|0)==1){r=o;s=(c[q+(j<<2)>>2]|0)<=(l|0)&1}else if(!p){m=(c[q+(j<<2)>>2]|0)<(k|0);r=(m&1)+o|0;s=m&1}else{r=o;s=p}n=c[e>>2]|0;b=q;j=j+1|0;o=r;p=s}i=d;return h|0}function mh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;d=i;e=a+8|0;if((c[e>>2]|0)<0?(Og(a),(c[e>>2]|0)<0):0)Og(a);f=a+40|0;g=c[f>>2]|0;h=a+36|0;j=c[h>>2]|0;if((g-j|0)<20){k=0;i=d;return k|0}l=c[e>>2]|0;if((l|0)<0){Og(a);m=c[f>>2]|0;n=c[h>>2]|0;o=c[e>>2]|0}else{m=g;n=j;o=l}l=(m-n>>2|0)/30|0;j=l+1|0;g=((c[n+(l+2<<2)>>2]|0)+(c[n+(j<<2)>>2]|0)|0)/2|0;if((o|0)<0){Og(a);p=c[f>>2]|0;q=c[h>>2]|0}else{p=m;q=n}n=(p-q>>2)-j|0;m=n+ -1|0;o=m-j|0;l=(((c[q+(m<<2)>>2]|0)+(c[q+(n+ -2<<2)>>2]|0)|0)/2|0)-g|0;if((o|0)<1){k=0;i=d;return k|0}n=c[e>>2]|0;if((n|0)<0){Og(a);r=c[f>>2]|0;s=c[h>>2]|0;t=c[e>>2]|0}else{r=p;s=q;t=n}n=da(((r-s>>2|0)/20|0)+2|0,o)|0;if((t|0)<0){Og(a);u=c[f>>2]|0;v=c[h>>2]|0}else{u=r;v=s}s=da(o,g)|0;g=v;r=u;t=(u-v>>2|0)/10|0;v=0;a:while(1){if((c[e>>2]|0)<0){Og(a);w=c[f>>2]|0;x=c[h>>2]|0}else{w=r;x=g}if((v|0)>=(w-x>>2|0)){y=25;break}u=(da(v-j|0,l)|0)+s|0;q=da(c[x+(v<<2)>>2]|0,o)|0;p=q-u|0;z=(p|0)>-1?p:0-p|0;do if((z|0)>=(n|0)){if((q|0)>=(u|0)?(v|0)<(j|0)|(v|0)>(m|0):0){A=t;break}if((z|0)>(n|0)){k=0;y=27;break a}if((z|0)==(n|0))if((t|0)<1){k=0;y=27;break a}else A=t+ -1|0;else A=t}else A=t;while(0);g=x;r=w;t=A;v=v+1|0}if((y|0)==25){if(!b){k=1;i=d;return k|0}c[b>>2]=l;k=1;i=d;return k|0}else if((y|0)==27){i=d;return k|0}return 0}function nh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=c[a+4>>2]|0;if((e|0)>(b|0)){i=d;return-1}if((c[a+12>>2]|0)<(b|0)){i=d;return-1}else{f=b-e|0;e=c[a+16>>2]|0;a=c[e+(f<<3)>>2]|0;i=d;return((a|0)<=(c[e+(f<<3)+4>>2]|0)?a:-1)|0}return 0}function oh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=c[a+4>>2]|0;if((e|0)>(b|0)){i=d;return-1}if((c[a+12>>2]|0)<(b|0)){i=d;return-1}else{f=b-e|0;e=c[a+16>>2]|0;a=c[e+(f<<3)+4>>2]|0;i=d;return((c[e+(f<<3)>>2]|0)<=(a|0)?a:-1)|0}return 0}function ph(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;g=i;h=c[b>>2]|0;j=h;k=(c[d>>2]|0)-j>>3;d=h+(k<<3)|0;if(!e){l=d;c[a>>2]=l;i=g;return}m=b+8|0;n=c[m>>2]|0;o=b+4|0;p=c[o>>2]|0;q=p;if(n-q>>3>>>0>>0){r=(q-j>>3)+e|0;if(r>>>0>536870911)yp(b);j=h;s=n-j|0;if(s>>3>>>0<268435455){n=s>>2;s=n>>>0>>0?r:n;n=d;r=n-j>>3;if(!s){t=0;u=0;v=r;w=n}else{x=s;y=r;z=n;A=23}}else{n=d;x=536870911;y=n-j>>3;z=n;A=23}if((A|0)==23){t=x;u=it(x<<3)|0;v=y;w=z}z=u+(v<<3)|0;y=e;x=z;do{if(!x)B=0;else{A=f;n=c[A+4>>2]|0;j=x;c[j>>2]=c[A>>2];c[j+4>>2]=n;B=x}x=B+8|0;y=y+ -1|0}while((y|0)!=0);y=c[b>>2]|0;n=w-y|0;j=u+(v-(n>>3)<<3)|0;Tu(j|0,y|0,n|0)|0;n=(c[o>>2]|0)-w|0;Tu(x|0,d|0,n|0)|0;x=c[b>>2]|0;c[b>>2]=j;c[o>>2]=B+((n>>3)+1<<3);c[m>>2]=u+(t<<3);if(!x){l=z;c[a>>2]=l;i=g;return}kt(x);l=z;c[a>>2]=l;i=g;return}z=q-d>>3;if(z>>>0>>0){q=e-z|0;x=p;while(1){if(!x)C=0;else{t=f;u=c[t+4>>2]|0;m=x;c[m>>2]=c[t>>2];c[m+4>>2]=u;C=c[o>>2]|0}u=C+8|0;c[o>>2]=u;q=q+ -1|0;if(!q){D=z;E=u;break}else x=u}}else{D=e;E=p}if(!D){l=d;c[a>>2]=l;i=g;return}x=E-(h+(k+e<<3))|0;z=x>>3;q=h+(z+k<<3)|0;if(q>>>0

>>0){k=E;h=q;do{if(!k)F=0;else{q=h;C=c[q+4>>2]|0;u=k;c[u>>2]=c[q>>2];c[u+4>>2]=C;F=c[o>>2]|0}h=h+8|0;k=F+8|0;c[o>>2]=k}while(h>>>0

>>0)}Uu(E+(0-z<<3)|0,d|0,x|0)|0;if(d>>>0<=f>>>0?(c[o>>2]|0)>>>0>f>>>0:0)G=f+(e<<3)|0;else G=f;f=D;D=d;while(1){e=G;o=c[e+4>>2]|0;x=D;c[x>>2]=c[e>>2];c[x+4>>2]=o;f=f+ -1|0;if(!f){l=d;break}else D=D+8|0}c[a>>2]=l;i=g;return}function qh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;d=i;i=i+32|0;e=d+20|0;f=d+16|0;g=d+8|0;h=d;j=b+4|0;k=c[j>>2]|0;l=a+4|0;m=c[l>>2]|0;if((k|0)<(m|0)?(m|0)!=(k|0):0){n=a+16|0;c[f>>2]=c[n>>2];o=m-k|0;c[g>>2]=1;c[g+4>>2]=0;c[e+0>>2]=c[f+0>>2];ph(h,n,e,o,g);yd(a,k)}k=b+12|0;g=c[k>>2]|0;o=a+12|0;do if((c[o>>2]|0)<(g|0)){Ad(a,g);e=a+16|0;n=(c[o>>2]|0)+1-(c[l>>2]|0)|0;h=a+20|0;f=c[h>>2]|0;m=c[e>>2]|0;p=f-m>>3;if(p>>>0>>0){th(e,n-p|0);break}if(p>>>0>n>>>0?(p=m+(n<<3)|0,(f|0)!=(p|0)):0)c[h>>2]=f+(~((f+ -8+(0-p)|0)>>>3)<<3)}while(0);o=c[j>>2]|0;if((o|0)>(c[k>>2]|0)){i=d;return}g=a+16|0;p=b+16|0;b=a+8|0;f=o;h=o;while(1){o=h-(c[l>>2]|0)|0;n=c[g>>2]|0;m=n+(o<<3)|0;_h(m,(c[p>>2]|0)+(h-f<<3)|0);e=c[m>>2]|0;if((e|0)<(c[a>>2]|0))xd(a,e);e=c[n+(o<<3)+4>>2]|0;if((e|0)>(c[b>>2]|0))zd(a,e);if((h|0)>=(c[k>>2]|0))break;f=c[j>>2]|0;h=h+1|0}i=d;return}function rh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;i=i+32|0;e=d+28|0;f=d+24|0;g=d+16|0;h=d+8|0;j=d;k=b+4|0;l=c[k>>2]|0;m=a+4|0;n=c[m>>2]|0;if((l|0)<(n|0)?(n|0)!=(l|0):0){o=a+16|0;c[f>>2]=c[o>>2];p=n-l|0;c[g>>2]=1;c[g+4>>2]=0;c[e+0>>2]=c[f+0>>2];ph(h,o,e,p,g);yd(a,l)}l=b+12|0;g=c[l>>2]|0;p=a+12|0;do if((c[p>>2]|0)<(g|0)){Ad(a,g);e=a+16|0;o=(c[p>>2]|0)+1-(c[m>>2]|0)|0;h=a+20|0;f=c[h>>2]|0;n=c[e>>2]|0;q=f-n>>3;if(q>>>0>>0){th(e,o-q|0);break}if(q>>>0>o>>>0?(q=n+(o<<3)|0,(f|0)!=(q|0)):0)c[h>>2]=f+(~((f+ -8+(0-q)|0)>>>3)<<3)}while(0);p=c[b+8>>2]|0;c[j>>2]=c[b>>2];c[j+4>>2]=p;p=c[k>>2]|0;if((p|0)>(c[l>>2]|0)){i=d;return}k=a+16|0;b=a+8|0;g=p;while(1){p=g-(c[m>>2]|0)|0;q=c[k>>2]|0;f=q+(p<<3)|0;_h(f,j);h=c[f>>2]|0;if((h|0)<(c[a>>2]|0))xd(a,h);h=c[q+(p<<3)+4>>2]|0;if((h|0)>(c[b>>2]|0))zd(a,h);if((g|0)>=(c[l>>2]|0))break;g=g+1|0}i=d;return}function sh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;d=i;i=i+16|0;e=d;f=c[b+8>>2]|0;c[e>>2]=c[b>>2];c[e+4>>2]=f;f=c[a+12>>2]|0;g=b+4|0;h=a+4|0;if((f|0)<(c[h>>2]|0)){j=2147483647;i=d;return j|0}k=a+16|0;a=f;f=2147483647;while(1){l=Vd(b,a)|0;if((l|0)<(f|0)){m=$h((c[k>>2]|0)+(a-(c[h>>2]|0)<<3)|0,e)|0;if((m|0)<(f|0)){n=Td(m,l)|0;o=(n|0)<(f|0)?n:f}else o=f}else if((a|0)<(c[g>>2]|0)){j=f;p=8;break}else o=f;if((a|0)>(c[h>>2]|0)){a=a+ -1|0;f=o}else{j=o;p=8;break}}if((p|0)==8){i=d;return j|0}return 0}function th(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=a+8|0;f=c[e>>2]|0;g=a+4|0;h=c[g>>2]|0;j=h;if(f-j>>3>>>0>=b>>>0){k=b;l=h;while(1){if(l){c[l>>2]=1;c[l+4>>2]=0}k=k+ -1|0;if(!k)break;else l=l+8|0}c[g>>2]=h+(b<<3);i=d;return}h=c[a>>2]|0;l=(j-h>>3)+b|0;if(l>>>0>536870911)yp(a);j=h;k=f-j|0;if(k>>3>>>0<268435455){f=k>>2;k=f>>>0>>0?l:f;f=(c[g>>2]|0)-j|0;l=f>>3;if(!k){m=0;n=0;o=l;p=f}else{q=k;r=l;s=f;t=11}}else{f=(c[g>>2]|0)-j|0;q=536870911;r=f>>3;s=f;t=11}if((t|0)==11){m=q;n=it(q<<3)|0;o=r;p=s}s=b;r=n+(o<<3)|0;while(1){if(r){c[r>>2]=1;c[r+4>>2]=0}s=s+ -1|0;if(!s)break;else r=r+8|0}Tu(n|0,h|0,p|0)|0;c[a>>2]=n;c[g>>2]=n+(o+b<<3);c[e>>2]=n+(m<<3);if(!h){i=d;return}kt(h);i=d;return}function uh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;c[b>>2]=d;a[b+4>>0]=0;a[b+5>>0]=0;f=b+56|0;g=b+8|0;h=g+48|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(h|0));Ng(f,d,0);Ng(b+104|0,c[b>>2]|0,1);Ng(b+152|0,c[b>>2]|0,2);Ng(b+200|0,c[b>>2]|0,3);Ng(b+248|0,c[b>>2]|0,4);Ng(b+296|0,c[b>>2]|0,5);i=e;return}function vh(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0;d=i;i=i+32|0;e=d+16|0;f=d;g=b+4|0;if(a[g>>0]|0){h=b+12|0;j=b+8|0;k=c[h>>2]|0;l=c[j>>2]|0;m=k;n=l;o=m-n|0;p=o>>4;i=d;return p|0}a[g>>0]=1;g=((Qg(b+296|0)|0)+1|0)/2|0;q=c[b>>2]|0;r=c[q+12>>2]|0;s=c[q+4>>2]|0;t=r+1|0;u=t-s|0;c[e>>2]=0;v=e+4|0;c[v>>2]=0;w=e+8|0;c[w>>2]=0;if((t|0)==(s|0)){x=0;y=q;z=s;A=r}else{if(u>>>0>1073741823)yp(e);r=it(u<<2)|0;c[v>>2]=r;c[e>>2]=r;s=r+(u<<2)|0;c[w>>2]=s;w=u;u=r;while(1){if(u)c[u>>2]=0;w=w+ -1|0;if(!w)break;else u=u+4|0}c[v>>2]=s;s=c[b>>2]|0;x=r;y=s;z=c[s+4>>2]|0;A=c[s+12>>2]|0}s=b+12|0;a:do if((z|0)<=(A|0)){r=b+16|0;u=b+8|0;w=z;q=x;t=y;B=0;C=0;D=0;E=z;F=0;while(1){G=q+(E-w<<2)|0;H=c[t>>2]|0;I=c[t+8>>2]|0;b:do if((H|0)>(I|0)){J=t;K=0;L=0}else{M=w;N=t;O=H;P=I;Q=0;R=H;S=0;T=0;U=0;while(1){if(a[(c[(c[N+16>>2]|0)+((E-M|0)*12|0)>>2]|0)+(R-O)>>0]|0){V=Q+1|0;if((R|0)<(P|0)){W=N;X=V;Y=S;Z=T;_=R}else{$=V;aa=R;ba=17}}else{$=Q;aa=U;ba=17}if((ba|0)==17){ba=0;if(($|0)>(c[G>>2]|0)){c[G>>2]=$;W=c[b>>2]|0;X=0;Y=1-$+aa|0;Z=aa;_=aa}else{W=N;X=0;Y=S;Z=T;_=aa}}V=c[W+8>>2]|0;if((R|0)>=(V|0)){J=W;K=Y;L=Z;break b}M=c[W+4>>2]|0;N=W;O=c[W>>2]|0;P=V;Q=X;R=R+1|0;S=Y;T=Z;U=_}}while(0);if((F|0)==1){ca=c[G>>2]|0;da=B;ea=C;fa=D;ba=24}else if(!F){H=c[G>>2]|0;if((H|0)>(g|0)){ca=H;da=E;ea=K;fa=L;ba=24}else{ga=B;ha=C;ia=D;ja=0}}else{ga=B;ha=C;ia=D;ja=F}do if((ba|0)==24){ba=0;if((ca|0)>(g|0)){H=(K|0)<(ea|0)?K:ea;I=(L|0)>(fa|0)?L:fa;if((E|0)<(c[J+12>>2]|0)){ga=da;ha=H;ia=I;ja=1;break}else{ka=H;la=I}}else{ka=ea;la=fa}I=(((ca|0)<=(g|0))<<31>>31)+E|0;H=la-ka+1|0;c:do if((da|0)>(I|0))ma=da;else{U=c[J+4>>2]|0;T=H<<1;S=da;while(1){R=S+1|0;if(((c[q+(S-U<<2)>>2]|0)*3|0)>=(T|0)){ma=S;break c}if((S|0)<(I|0))S=R;else{ma=R;break}}}while(0);d:do if((ma|0)>(I|0))na=I;else{S=c[J+4>>2]|0;T=H<<1;U=I;while(1){R=U+ -1|0;if(((c[q+(U-S<<2)>>2]|0)*3|0)>=(T|0)){na=U;break d}if((ma|0)>(R|0)){na=R;break}else U=R}}while(0);I=na-ma|0;if((I|0)>=0?((I<<1)+2|0)<=(H*3|0):0){wd(f,ka,ma,la,na);I=c[s>>2]|0;if((I|0)==(c[r>>2]|0)){Ag(u,f);ga=ma;ha=ka;ia=la;ja=0;break}if(!I)oa=0;else{c[I+0>>2]=c[f+0>>2];c[I+4>>2]=c[f+4>>2];c[I+8>>2]=c[f+8>>2];c[I+12>>2]=c[f+12>>2];oa=c[s>>2]|0}c[s>>2]=oa+16;ga=ma;ha=ka;ia=la;ja=0}else{ga=ma;ha=ka;ia=la;ja=0}}while(0);G=c[b>>2]|0;if((E|0)>=(c[G+12>>2]|0))break a;w=c[G+4>>2]|0;q=c[e>>2]|0;t=G;B=ga;C=ha;D=ia;E=E+1|0;F=ja}}while(0);ja=c[s>>2]|0;ia=b+8|0;b=c[ia>>2]|0;if(ja-b>>4>>>0>3){ha=b;b=ja;ga=ja;while(1){ja=(c[ha+8>>2]|0)+1-(c[ha>>2]|0)|0;la=ha;ka=b-la>>4;if(ka>>>0>1){ma=ga-la>>4;la=1;oa=ja;while(1){f=(c[ha+(la<<4)+8>>2]|0)+1-(c[ha+(la<<4)>>2]|0)|0;na=(f|0)<(oa|0)?f:oa;la=la+1|0;if(la>>>0>=ma>>>0){pa=ma;qa=ga;ra=na;break}else oa=na}}else{pa=ka;qa=b;ra=ja}oa=pa+ -1|0;if((oa|0)>-1){ma=ha;la=qa;na=ga;f=oa;while(1){if(((c[ma+(f<<4)+8>>2]|0)+1-(c[ma+(f<<4)>>2]|0)|0)==(ra|0)){oa=f<<4>>4;J=ma+(oa+1<<4)|0;da=la-J|0;Uu(ma+(oa<<4)|0,J|0,da|0)|0;J=ma+((da>>4)+oa<<4)|0;oa=c[s>>2]|0;if((oa|0)==(J|0)){sa=J;ta=J}else{da=oa+(~((oa+ -16+(0-J)|0)>>>4)<<4)|0;c[s>>2]=da;sa=da;ta=da}}else{sa=na;ta=la}f=f+ -1|0;da=c[ia>>2]|0;if((f|0)<=-1){ua=ta;va=da;wa=sa;break}else{ma=da;la=ta;na=sa}}}else{ua=qa;va=ha;wa=ga}if(ua-va>>4>>>0>3){ha=va;b=ua;ga=wa}else break}}wa=c[e>>2]|0;if(!wa){h=s;j=ia;k=c[h>>2]|0;l=c[j>>2]|0;m=k;n=l;o=m-n|0;p=o>>4;i=d;return p|0}e=c[v>>2]|0;if((e|0)!=(wa|0))c[v>>2]=e+(~((e+ -4+(0-wa)|0)>>>2)<<2);kt(wa);h=s;j=ia;k=c[h>>2]|0;l=c[j>>2]|0;m=k;n=l;o=m-n|0;p=o>>4;i=d;return p|0}function wh(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;d=i;i=i+16|0;e=d;f=b+5|0;if(a[f>>0]|0){g=b+24|0;h=c[g>>2]|0;j=b+20|0;k=c[j>>2]|0;l=h;m=k;n=l-m|0;o=n>>4;i=d;return o|0}a[f>>0]=1;f=c[b>>2]|0;p=c[f+12>>2]|0;q=c[f+4>>2]|0;r=p+1-q|0;if((r|0)<40)s=3;else s=(r|0)/10|0;t=r-s|0;s=c[f>>2]|0;r=c[f+8>>2]|0;if((s|0)>(r|0)){g=b+24|0;h=c[g>>2]|0;j=b+20|0;k=c[j>>2]|0;l=h;m=k;n=l-m|0;o=n>>4;i=d;return o|0}u=t<<1;v=t*3|0;w=b+24|0;x=b+28|0;y=b+20|0;z=f;f=p;p=q;q=r;r=0;A=s;s=0;while(1){B=z+16|0;C=f+ -1|0;D=A+ -1|0;E=A+1|0;F=0;G=0;H=p;a:while(1){I=0;J=F;K=H;b:while(1){L=I;M=K;while(1){M=M+1|0;if((M|0)>=(f|0))break a;N=c[z>>2]|0;O=c[(c[B>>2]|0)+((M-p|0)*12|0)>>2]|0;if(!(a[O+(A-N)>>0]|0))break;P=L+1|0;if((M|0)>=(C|0)){Q=P;R=J;break b}else L=P}if(!((A|0)>(N|0)?(a[O+(D-N)>>0]|0)!=0:0)){if((A|0)>=(q|0)){Q=L;R=J;break}if(!(a[O+(E-N)>>0]|0)){Q=L;R=J;break}}P=L+1|0;S=J+1|0;if((M|0)<(C|0)){I=P;J=S;K=M}else{Q=P;R=S;break}}F=R;G=(Q|0)>(G|0)?Q:G;H=M}H=((G-J|0)*3|0)<(u|0)?0:G;do if((s|0)==1)if((H|0)<(t|0))if((H<<2|0)<(v|0)){F=(H*3|0)<(u|0);T=F?r:A;U=F&1^1}else{T=r;U=2}else{T=r;U=3}else if((s|0)==3){F=(H*3|0)<(u|0);if(F|(A|0)==(q|0)){wd(e,r,p,(F<<31>>31)+A|0,f);F=c[w>>2]|0;if((F|0)==(c[x>>2]|0)){Ag(y,e);T=r;U=0;break}if(!F)V=0;else{c[F+0>>2]=c[e+0>>2];c[F+4>>2]=c[e+4>>2];c[F+8>>2]=c[e+8>>2];c[F+12>>2]=c[e+12>>2];V=c[w>>2]|0}c[w>>2]=V+16;T=r;U=0}else{T=r;U=3}}else if((s|0)==2)if((H|0)<(t|0))if((H*3|0)<(u|0)){T=r;U=0}else{T=r;U=(H<<2|0)<(v|0)?1:2}else{T=r;U=3}else if(!s)if((H|0)<(t|0))if((H<<2|0)<(v|0)){F=(H*3|0)<(u|0);T=F?r:A;U=F&1^1}else{T=A;U=2}else{T=A;U=3}else{T=r;U=s}while(0);H=c[b>>2]|0;G=c[H+8>>2]|0;if((A|0)>=(G|0))break;z=H;f=c[H+12>>2]|0;p=c[H+4>>2]|0;q=G;r=T;A=E;s=U}g=b+24|0;h=c[g>>2]|0;j=b+20|0;k=c[j>>2]|0;l=h;m=k;n=l-m|0;o=n>>4;i=d;return o|0}function xh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0;e=i;i=i+16|0;f=e;g=b+32|0;h=c[g>>2]|0;j=c[b>>2]|0;if((h|0)!=(c[b+36>>2]|0)){k=j;l=h;m=k+4|0;n=c[m>>2]|0;o=d-n|0;p=l+(o*12|0)+4|0;q=c[p>>2]|0;r=l+(o*12|0)|0;s=c[r>>2]|0;t=q;u=s;v=t-u|0;w=v>>3;i=e;return w|0}h=c[j+4>>2]|0;x=(c[j+12>>2]|0)+1|0;if((x|0)!=(h|0))Ch(g,x-h|0);h=c[b>>2]|0;x=c[h+4>>2]|0;if((x|0)>(c[h+12>>2]|0))y=h;else{j=f+4|0;z=h;h=-1;A=x;while(1){x=c[z>>2]|0;B=c[z+8>>2]|0;a:do if((x|0)>(B|0)){C=z;D=h}else{E=z;F=x;G=B;H=x;I=h;while(1){J=A-(c[E+4>>2]|0)|0;K=(a[(c[(c[E+16>>2]|0)+(J*12|0)>>2]|0)+(H-F)>>0]|0)!=0;if((I|0)<0){L=K?H:I;if((L|0)>-1){M=L;N=9}else O=L}else{M=I;N=9}do if((N|0)==9){N=0;if((H|0)==(G|0)|K^1){L=c[g>>2]|0;c[f>>2]=M;c[j>>2]=H-(K&1^1);P=L+(J*12|0)+4|0;Q=c[P>>2]|0;if((Q|0)==(c[L+(J*12|0)+8>>2]|0)){Bh(L+(J*12|0)|0,f);O=-1;break}if(!Q)R=0;else{L=f;S=c[L+4>>2]|0;T=Q;c[T>>2]=c[L>>2];c[T+4>>2]=S;R=c[P>>2]|0}c[P>>2]=R+8;O=-1}else O=M}while(0);J=c[b>>2]|0;K=c[J+8>>2]|0;if((H|0)>=(K|0)){C=J;D=O;break a}E=J;F=c[J>>2]|0;G=K;H=H+1|0;I=O}}while(0);if((A|0)<(c[C+12>>2]|0)){z=C;h=D;A=A+1|0}else{y=C;break}}}k=y;l=c[g>>2]|0;m=k+4|0;n=c[m>>2]|0;o=d-n|0;p=l+(o*12|0)+4|0;q=c[p>>2]|0;r=l+(o*12|0)|0;s=c[r>>2]|0;t=q;u=s;v=t-u|0;w=v>>3;i=e;return w|0}function yh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;e=i;i=i+16|0;f=e;g=b+44|0;h=c[g>>2]|0;j=c[b>>2]|0;if((h|0)!=(c[b+48>>2]|0)){k=j;l=h;m=c[k>>2]|0;n=d-m|0;o=l+(n*12|0)+4|0;p=c[o>>2]|0;q=l+(n*12|0)|0;r=c[q>>2]|0;s=p;t=r;u=s-t|0;v=u>>3;i=e;return v|0}h=c[j>>2]|0;w=(c[j+8>>2]|0)+1|0;if((w|0)!=(h|0))Ch(g,w-h|0);h=c[b>>2]|0;w=c[h>>2]|0;if((w|0)>(c[h+8>>2]|0))x=h;else{j=f+4|0;y=h;h=w;w=-1;while(1){z=c[y+4>>2]|0;A=c[y+12>>2]|0;a:do if((z|0)>(A|0)){B=y;C=w}else{D=z;E=y;F=A;G=z;H=w;while(1){I=h-(c[E>>2]|0)|0;J=(a[(c[(c[E+16>>2]|0)+((G-D|0)*12|0)>>2]|0)+I>>0]|0)!=0;if((H|0)<0){K=J?G:H;if((K|0)>-1){L=K;M=9}else N=K}else{L=H;M=9}do if((M|0)==9){M=0;if((G|0)==(F|0)|J^1){K=c[g>>2]|0;c[f>>2]=L;c[j>>2]=G-(J&1^1);O=K+(I*12|0)+4|0;P=c[O>>2]|0;if((P|0)==(c[K+(I*12|0)+8>>2]|0)){Bh(K+(I*12|0)|0,f);N=-1;break}if(!P)Q=0;else{K=f;R=c[K+4>>2]|0;S=P;c[S>>2]=c[K>>2];c[S+4>>2]=R;Q=c[O>>2]|0}c[O>>2]=Q+8;N=-1}else N=L}while(0);I=c[b>>2]|0;J=c[I+12>>2]|0;if((G|0)>=(J|0)){B=I;C=N;break a}D=c[I+4>>2]|0;E=I;F=J;G=G+1|0;H=N}}while(0);if((h|0)<(c[B+8>>2]|0)){y=B;h=h+1|0;w=C}else{x=B;break}}}k=x;l=c[g>>2]|0;m=c[k>>2]|0;n=d-m|0;o=l+(n*12|0)+4|0;p=c[o>>2]|0;q=l+(n*12|0)|0;r=c[q>>2]|0;s=p;t=r;u=s-t|0;v=u>>3;i=e;return v|0}function zh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;g=yh(b,e)|0;a:do if((g|0)>0){h=c[(c[b+44>>2]|0)+((e-(c[c[b>>2]>>2]|0)|0)*12|0)>>2]|0;j=0;while(1){if((c[h+(j<<3)>>2]|0)<=(d|0)?(c[h+(j<<3)+4>>2]|0)>=(d|0):0)break;k=j+1|0;if((k|0)<(g|0))j=k;else break a}k=h+(j<<3)|0;l=c[k+4>>2]|0;m=a;c[m>>2]=c[k>>2];c[m+4>>2]=l;i=f;return}while(0);c[a>>2]=1;c[a+4>>2]=0;i=f;return}function Ah(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;d=i;e=a+200|0;if((lh(e,-1)|0)==1){if((((((vh(a)|0)==1?(f=a+8|0,g=c[f>>2]|0,h=c[g+4>>2]|0,j=c[a>>2]|0,k=c[j+4>>2]|0,l=1-k+(c[j+12>>2]|0)|0,(h|0)<=(((l|0)/10|0)+k|0)):0)?(m=c[g+12>>2]|0,(1-h+m<<2|0)<=(l|0)):0)?(((c[g+8>>2]|0)+1-(c[g>>2]|0)|0)*5|0)>=((c[j+8>>2]|0)+1-(c[j>>2]|0)<<2|0):0)?(j=a+152|0,g=Ug(j,2-k+m|0)|0,m=g-(Ug(j,(c[(c[f>>2]|0)+12>>2]|0)-(c[(c[a>>2]|0)+4>>2]|0)|0)|0)|0,g=c[a>>2]|0,(m|0)<(((c[g+8>>2]|0)+1-(c[g>>2]|0)|0)/4|0|0)):0)?(m=c[f>>2]|0,Wg(j,(((c[m+12>>2]|0)+(c[m+4>>2]|0)|0)/2|0)+1-(c[g+4>>2]|0)|0,2)|0):0){n=55;i=d;return n|0}else o=a;g=c[o>>2]|0;if(((((c[g+12>>2]|0)+1-(c[g+4>>2]|0)|0)>((c[g+8>>2]|0)+1-(c[g>>2]|0)|0)?Wg(a+152|0,1,2)|0:0)?!(Xg(a+104|0,1,-1)|0):0)?(g=c[o>>2]|0,m=Be(g,((c[g+12>>2]|0)+(c[g+4>>2]|0)|0)/2|0,((c[g+8>>2]|0)+(c[g>>2]|0)|0)/2|0,1)|0,(m|0)<=(c[c[o>>2]>>2]|0)):0){n=55;i=d;return n|0}else p=o}else p=a;o=a+104|0;m=c[p>>2]|0;if((lh(o,((c[m+12>>2]|0)+1-(c[m+4>>2]|0)|0)/4|0)|0)!=1){n=0;i=d;return n|0}m=c[p>>2]|0;if((lh(e,((c[m+12>>2]|0)+1-(c[m+4>>2]|0)|0)/4|0)|0)!=1){n=0;i=d;return n|0}m=c[p>>2]|0;if(((((c[m+12>>2]|0)+1-(c[m+4>>2]|0)|0)>((c[m+8>>2]|0)+1-(c[m>>2]|0)<<1|0)?Wg(a+152|0,1,2)|0:0)?Xg(o,1,-1)|0:0)?bh(a+56|0,25)|0:0){n=49;i=d;return n|0}do if((vh(a)|0)!=1){if((vh(a)|0)!=2){q=c[p>>2]|0;break}m=c[a+8>>2]|0;g=c[p>>2]|0;j=c[g+12>>2]|0;if((c[m+28>>2]|0)>=(j+ -1|0)?(((c[m+8>>2]|0)+1-(c[m>>2]|0)|0)*3|0)>((c[m+24>>2]|0)+1-(c[m+16>>2]|0)<<2|0):0){r=m;s=g;t=j;u=26}else q=g}else{g=c[p>>2]|0;r=c[a+8>>2]|0;s=g;t=c[g+12>>2]|0;u=26}while(0);if((u|0)==26){g=c[r+4>>2]|0;j=c[s+4>>2]|0;if(!((g|0)>(j+1|0)?1:(((c[r+12>>2]|0)+1-g|0)*3|0)>=(t+1-j|0))){j=a+56|0;if((c[a+64>>2]|0)<0)Og(j);t=((((c[a+96>>2]|0)-(c[a+92>>2]|0)>>2)*40|0)+ -40|0)/100|0;g=(Ug(a+296|0,t)|0)*3|0;r=c[p>>2]|0;if((g|0)<((c[r+8>>2]|0)+1-(c[r>>2]|0)|0)){g=(Ug(j,t)|0)*5|0;j=c[p>>2]|0;if((g|0)>((c[j+8>>2]|0)+1-(c[j>>2]|0)|0)){g=(Ug(a+152|0,t)|0)*5|0;t=c[p>>2]|0;if((g|0)>((c[t+8>>2]|0)+1-(c[t>>2]|0)|0)){n=84;i=d;return n|0}else q=t}else q=j}else q=r}else q=s}if((((((((c[q+12>>2]|0)+1-(c[q+4>>2]|0)|0)*3|0)>((c[q+8>>2]|0)+1-(c[q>>2]|0)<<2|0)?(wh(a)|0)==1:0)?(q=c[a+20>>2]|0,s=c[q+8>>2]|0,r=c[q>>2]|0,(s+1-r|0)>1):0)?(q=c[p>>2]|0,j=c[q>>2]|0,t=r-j|0,r=c[q+8>>2]|0,q=r-s|0,s=1-j+r|0,(t<<1|0)<(s|0)):0)?(q<<1|0)<(s|0):0)?Fh(t,q,40,1)|0:0){if((c[a+208>>2]|0)<0)Og(e);q=(Ug(e,((((c[a+240>>2]|0)-(c[a+236>>2]|0)>>2)*25|0)+ -25|0)/100|0)|0)<<2;e=c[p>>2]|0;if((q|0)>(((c[e+12>>2]|0)+1-(c[e+4>>2]|0)|0)*3|0)){if((c[a+112>>2]|0)<0)Og(o);e=(Ug(o,((((c[a+144>>2]|0)-(c[a+140>>2]|0)>>2)*75|0)+ -75|0)/100|0)|0)<<2;o=c[p>>2]|0;if((e|0)>(((c[o+12>>2]|0)+1-(c[o+4>>2]|0)|0)*3|0)){n=108;i=d;return n|0}}}o=c[p>>2]|0;e=(c[o+12>>2]|0)+1-(c[o+4>>2]|0)|0;o=b+12|0;q=b+4|0;if((e*5|0)>=((c[o>>2]|0)+1-(c[q>>2]|0)<<2|0)?(b=a+296|0,(e|0)>(Qg(b)|0)):0){if((c[a+304>>2]|0)<0)Og(b);e=(Ug(b,((((c[a+336>>2]|0)-(c[a+332>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)*3|0;t=c[p>>2]|0;if((e|0)<((c[t+8>>2]|0)+1-(c[t>>2]|0)|0)){if(((vh(a)|0)==1?(t=c[a+8>>2]|0,e=c[p>>2]|0,s=c[e+12>>2]|0,(c[t+12>>2]|0)>=(s+ -1|0)):0)?(r=c[e+4>>2]|0,(c[t+4>>2]|0)>((((s-r|0)*75|0)/100|0)+r|0)):0){r=a+56|0;if((c[a+64>>2]|0)<0)Og(r);s=Ug(r,((((c[a+96>>2]|0)-(c[a+92>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0;r=a+152|0;if((c[a+160>>2]|0)<0)Og(r);if(Fh(s,Ug(r,((((c[a+192>>2]|0)-(c[a+188>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0,20,2)|0){n=108;i=d;return n|0}}if((((vh(a)|0)==2?(r=c[a+8>>2]|0,s=c[p>>2]|0,t=c[s+4>>2]|0,e=c[s+12>>2]|0,s=e-t|0,(c[r+12>>2]|0)<(((s*25|0)/100|0)+t|0)):0)?(c[r+20>>2]|0)>(((s*75|0)/100|0)+t|0):0)?(c[r+28>>2]|0)>=(e+ -1|0):0){s=c[r+8>>2]|0;j=c[r+16>>2]|0;g=c[r+24>>2]|0;if((s|0)<=((g+j|0)/2|0|0)){n=0;i=d;return n|0}if(((s+1-(c[r>>2]|0)|0)*3|0)>(1-j+g<<1|0)){g=(1-t+e|0)<((Qg(b)|0)*3|0);i=d;return(g?73:108)|0}else{n=108;i=d;return n|0}}}}if(!((vh(a)|0)!=2?(vh(a)|0)!=3:0))u=66;if((((u|0)==66?(u=a+8|0,g=c[u>>2]|0,b=c[p>>2]|0,(c[g+4>>2]|0)<=((c[b+4>>2]|0)+1|0)):0)?Id(g+16|0,b)|0:0)?(b=c[u>>2]|0,(((c[b+8>>2]|0)+1-(c[b>>2]|0)|0)*3|0)>((c[b+24>>2]|0)+1-(c[b+16>>2]|0)<<2|0)):0){if((vh(a)|0)==2){n=70;i=d;return n|0}b=c[u>>2]|0;if((c[b+44>>2]|0)>=((c[(c[p>>2]|0)+12>>2]|0)+ -1|0)?(((c[b+8>>2]|0)+1-(c[b>>2]|0)|0)*3|0)>((c[b+40>>2]|0)+1-(c[b+32>>2]|0)<<2|0):0){n=70;i=d;return n|0}}b=c[p>>2]|0;u=(c[b+12>>2]|0)+1-(c[b+4>>2]|0)|0;b=a+296|0;if((u|0)>((Qg(b)|0)*3|0)){u=a+152|0;g=a+56|0;if(gh(u)|0?ah(g)|0:0){e=ch(g)|0;n=e?123:40;i=d;return n|0}if(gh(g)|0?ah(u)|0:0){g=ch(u)|0;n=g?125:41;i=d;return n|0}g=c[p>>2]|0;e=(c[g+8>>2]|0)+1-(c[g>>2]|0)|0;if((e|0)>((Qg(b)|0)<<1|0)?Zg(u)|0:0){n=41;i=d;return n|0}}u=c[p>>2]|0;b=(c[u+12>>2]|0)+1-(c[u+4>>2]|0)|0;if((b|0)<=((c[u+8>>2]|0)+1-(c[u>>2]|0)<<1|0)){n=0;i=d;return n|0}if((b*5|0)<((c[o>>2]|0)+1-(c[q>>2]|0)<<2|0)){n=0;i=d;return n|0}b=Qg(a+56|0)|0;u=a+152|0;e=(Qg(u)|0)+b|0;b=c[p>>2]|0;if((e|0)>=((c[b+8>>2]|0)+1-(c[b>>2]|0)|0)){n=0;i=d;return n|0}if((c[a+160>>2]|0)<0)Og(u);b=(Ug(u,((((c[a+192>>2]|0)-(c[a+188>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)*5|0;a=c[p>>2]|0;u=c[a+8>>2]|0;e=c[a>>2]|0;if((b|0)>(u+1-e<<1|0)){b=c[a+4>>2]|0;g=Ce(a,((((c[a+12>>2]|0)-b|0)*75|0)/100|0)+b|0,(((u-e|0)*75|0)/100|0)+e|0,1)|0;e=c[p>>2]|0;u=c[e+4>>2]|0;if((u|0)<(c[q>>2]|0)){if((g|0)<=(u|0)){n=76;i=d;return n|0}}else{q=c[e+12>>2]|0;if(!((g|0)>(u|0)?1:(q|0)>(((1-u+q|0)/5|0)+(c[o>>2]|0)|0))){n=76;i=d;return n|0}}if((g|0)>(u|0)?(g=c[e>>2]|0,o=Ee(e,((((c[e+12>>2]|0)-u|0)*75|0)/100|0)+u|0,((((c[e+8>>2]|0)-g|0)*75|0)/100|0)+g|0,1)|0,(o|0)<(c[(c[p>>2]|0)+12>>2]|0)):0){n=91;i=d;return n|0}}n=124;i=d;return n|0}function Bh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=a+4|0;f=c[a>>2]|0;g=((c[e>>2]|0)-f>>3)+1|0;if(g>>>0>536870911)yp(a);h=a+8|0;j=f;k=(c[h>>2]|0)-j|0;if(k>>3>>>0<268435455){l=k>>2;k=l>>>0>>0?g:l;l=(c[e>>2]|0)-j|0;g=l>>3;if(!k){m=0;n=0;o=g;p=l}else{q=k;r=g;s=l;t=6}}else{l=(c[e>>2]|0)-j|0;q=536870911;r=l>>3;s=l;t=6}if((t|0)==6){m=q;n=it(q<<3)|0;o=r;p=s}s=n+(o<<3)|0;if(s){r=b;b=c[r+4>>2]|0;q=s;c[q>>2]=c[r>>2];c[q+4>>2]=b}Tu(n|0,f|0,p|0)|0;c[a>>2]=n;c[e>>2]=n+(o+1<<3);c[h>>2]=n+(m<<3);if(!f){i=d;return}kt(f);i=d;return}function Ch(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;i=i+32|0;e=d;f=c[a+8>>2]|0;g=a+4|0;h=c[g>>2]|0;j=h;if(((f-j|0)/12|0)>>>0>=b>>>0){k=b;l=h;do{if(!l)m=0;else{c[l>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;m=c[g>>2]|0}l=m+12|0;c[g>>2]=l;k=k+ -1|0}while((k|0)!=0);i=d;return}k=c[a>>2]|0;l=((j-k|0)/12|0)+b|0;if(l>>>0>357913941)yp(a);j=k;k=(f-j|0)/12|0;if(k>>>0<178956970){f=k<<1;n=f>>>0>>0?l:f}else n=357913941;f=((c[g>>2]|0)-j|0)/12|0;j=e+12|0;c[j>>2]=0;c[e+16>>2]=a+8;if(!n)o=0;else o=it(n*12|0)|0;c[e>>2]=o;g=o+(f*12|0)|0;f=e+8|0;c[f>>2]=g;l=e+4|0;c[l>>2]=g;c[j>>2]=o+(n*12|0);n=b;b=g;do{if(!b)p=0;else{c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;p=c[f>>2]|0}b=p+12|0;c[f>>2]=b;n=n+ -1|0}while((n|0)!=0);Dh(a,e);a=c[l>>2]|0;l=c[f>>2]|0;if((l|0)!=(a|0)){n=l;while(1){l=n+ -12|0;c[f>>2]=l;b=c[l>>2]|0;if(!b)q=l;else{p=n+ -8|0;g=c[p>>2]|0;if((g|0)==(b|0))r=l;else{c[p>>2]=g+(~((g+ -8+(0-b)|0)>>>3)<<3);r=c[f>>2]|0}kt(b);q=r}if((q|0)==(a|0))break;else n=q}}q=c[e>>2]|0;if(!q){i=d;return}kt(q);i=d;return}function Dh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;d=i;e=c[a>>2]|0;f=a+4|0;g=c[f>>2]|0;h=b+4|0;j=c[h>>2]|0;do if((g|0)!=(e|0)){k=g;l=j;while(1){m=l+ -12|0;c[m>>2]=0;n=l+ -8|0;c[n>>2]=0;o=l+ -4|0;c[o>>2]=0;p=k+ -8|0;k=k+ -12|0;q=(c[p>>2]|0)-(c[k>>2]|0)|0;r=q>>3;if(r){if(r>>>0>536870911){s=4;break}t=it(q)|0;c[n>>2]=t;c[m>>2]=t;c[o>>2]=t+(r<<3);r=c[k>>2]|0;o=c[p>>2]|0;if((r|0)!=(o|0)){p=r;r=t;do{if(!r)u=0;else{t=p;q=c[t+4>>2]|0;v=r;c[v>>2]=c[t>>2];c[v+4>>2]=q;u=c[n>>2]|0}r=u+8|0;c[n>>2]=r;p=p+8|0}while((p|0)!=(o|0))}}l=(c[h>>2]|0)+ -12|0;c[h>>2]=l;if((k|0)==(e|0)){s=10;break}}if((s|0)==4)yp(m);else if((s|0)==10){w=l;x=c[a>>2]|0;break}}else{w=j;x=e}while(0);c[a>>2]=w;c[h>>2]=x;x=b+8|0;w=c[f>>2]|0;c[f>>2]=c[x>>2];c[x>>2]=w;w=a+8|0;a=b+12|0;x=c[w>>2]|0;c[w>>2]=c[a>>2];c[a>>2]=x;c[b>>2]=c[h>>2];i=d;return}function Eh(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;b=c[p>>2]|0;c[d>>2]=a;Ob(b|0,2936,d|0)|0;Vb(3)}function Fh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;f=a-b|0;g=(f|0)>-1?f:0-f|0;if(!((c|0)<1|(g|0)>(d|0))){h=1;i=e;return h|0}d=(a|0)>-1?a:0-a|0;a=(b|0)>-1?b:0-b|0;h=(g*100|0)<=(da((d|0)<(a|0)?a:d,c)|0);i=e;return h|0}function Gh(a,b){a=a|0;b=b|0;var d=0,e=0;d=c[a>>2]|0;if(!d)e=(b|0)==4;else e=(d&b|0)!=0;return e|0}function Hh(a,b){a=a|0;b=b|0;var d=0;d=c[a>>2]|0;return((d|0)==0?(b|0)==4:(d|0)==(b|0))|0}function Ih(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=0;while(1){f=e+1|0;if(!(Mu(b,c[2984+(e<<3)>>2]|0)|0))break;if((f|0)==8){g=0;h=5;break}else e=f}if((h|0)==5){i=d;return g|0}c[a>>2]=c[2988+(e<<3)>>2];g=1;i=d;return g|0}function Jh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+16|0;f=e;g=0;while(1){h=g+1|0;if(!(Mu(d,c[3056+(g<<3)>>2]|0)|0)){j=4;break}if((h|0)==7){j=9;break}else g=h}if((j|0)==4){h=3060+(g<<3)|0;g=a+8|0;k=c[g>>2]|0;if((k|0)==(c[a+12>>2]|0)){Kh(a+4|0,h);l=1;i=e;return l|0}if(k)c[k>>2]=c[h>>2];c[g>>2]=k+4;l=1;i=e;return l|0}else if((j|0)==9){if((c[732]|0)<=-1){l=0;i=e;return l|0}if((d|0)!=0?(Mu(d,2968)|0)!=0:0){j=c[p>>2]|0;c[f>>2]=b;c[f+4>>2]=d;Ob(j|0,3120,f|0)|0}j=c[p>>2]|0;Mb(3144,19,1,j|0)|0;c[f>>2]=3168;Ob(j|0,2976,f|0)|0;c[f>>2]=3176;Ob(j|0,2976,f|0)|0;c[f>>2]=3192;Ob(j|0,2976,f|0)|0;c[f>>2]=3200;Ob(j|0,2976,f|0)|0;c[f>>2]=3216;Ob(j|0,2976,f|0)|0;c[f>>2]=3232;Ob(j|0,2976,f|0)|0;c[f>>2]=3248;Ob(j|0,2976,f|0)|0;Eb(10,j|0)|0;l=0;i=e;return l|0}return 0}function Kh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=a+4|0;f=c[a>>2]|0;g=((c[e>>2]|0)-f>>2)+1|0;if(g>>>0>1073741823)yp(a);h=a+8|0;j=f;k=(c[h>>2]|0)-j|0;if(k>>2>>>0<536870911){l=k>>1;k=l>>>0>>0?g:l;l=(c[e>>2]|0)-j|0;g=l>>2;if(!k){m=0;n=0;o=g;p=l}else{q=k;r=g;s=l;t=6}}else{l=(c[e>>2]|0)-j|0;q=1073741823;r=l>>2;s=l;t=6}if((t|0)==6){m=q;n=it(q<<2)|0;o=r;p=s}s=n+(o<<2)|0;if(s)c[s>>2]=c[b>>2];Tu(n|0,f|0,p|0)|0;c[a>>2]=n;c[e>>2]=n+(o+1<<2);c[h>>2]=n+(m<<2);if(!f){i=d;return}kt(f);i=d;return}function Lh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0;e=i;i=i+16|0;f=e;g=c[b>>2]|0;h=(c[g+8>>2]|0)+1-(c[g>>2]|0)|0;if((h|0)<9){j=0;i=e;return j|0}k=(c[g+12>>2]|0)+1-(c[g+4>>2]|0)|0;if((k|0)>(h*3|0)){j=0;i=e;return j|0}h=b+200|0;if((lh(h,(k|0)/2|0)|0)>1){j=0;i=e;return j|0}k=c[b>>2]|0;g=c[k+4>>2]|0;l=(c[k+12>>2]|0)+1-g|0;m=c[k+8>>2]|0;n=c[k>>2]|0;k=m+1-n|0;o=((((k|0)<(l|0)?k:l)|0)/15|0)+1|0;l=b+104|0;k=m;m=n;n=g;g=0;p=0;q=0;r=0;s=0;t=0;u=0;v=0;w=0;a:while(1){x=(da(c[3384+(g<<2)>>2]|0,o)|0)+((k+m|0)/2|0)|0;y=(Ug(l,x-m|0)|0)+n|0;z=c[b>>2]|0;A=c[z+12>>2]|0;B=z+4|0;C=z+16|0;D=y;while(1){E=D+1|0;F=c[B>>2]|0;if((E|0)>=(A|0))break;if(!(a[(c[(c[C>>2]|0)+((E-F|0)*12|0)>>2]|0)+(x-(c[z>>2]|0))>>0]|0))break;else D=E}B=A-F|0;b:do if((D|0)<(((B*30|0)/100|0)+F|0)){y=E;while(1){G=y+1|0;if((G|0)>=(A|0)){H=0;I=x;J=q;K=E;L=s;M=t;N=u;O=v;P=w;break b}if(!(a[(c[(c[C>>2]|0)+((G-F|0)*12|0)>>2]|0)+(x-(c[z>>2]|0))>>0]|0))y=G;else break}Q=g*3|0;R=0;S=0;T=q;U=s;V=u;W=w;while(1){if(R){X=x;Y=T;Z=E;_=U;$=x;aa=V;ba=y;ca=W;break a}ea=c[z>>2]|0;fa=(da(c[3400+(S+Q<<2)>>2]|0,o)|0)+(((c[z+8>>2]|0)+ea|0)/2|0)|0;c:do if((x|0)==(fa|0)){ga=G;ha=17}else{ia=(x|0)>(fa|0)?1:-1;ja=c[(c[C>>2]|0)+((G-F|0)*12|0)>>2]|0;ka=fa;while(1){if(!(a[ja+(ka-ea)>>0]|0)){la=0;ma=T;na=U;oa=V;pa=W;break c}ka=ka+ia|0;if((ka|0)==(x|0)){ga=G;ha=17;break}}}while(0);d:do if((ha|0)==17){while(1){ha=0;qa=ga+1|0;if((qa|0)>=(A|0)){la=0;ma=T;na=U;oa=V;pa=W;break d}if(!(a[(c[(c[C>>2]|0)+((qa-F|0)*12|0)>>2]|0)+(fa-ea)>>0]|0)){ra=qa;break}else{ga=qa;ha=17}}while(1){ka=ra+1|0;if((ra|0)>=(A|0)){la=0;ma=fa;na=qa;oa=V;pa=W;break d}if(!(a[(c[(c[C>>2]|0)+((ka-F|0)*12|0)>>2]|0)+(fa-ea)>>0]|0))ra=ka;else break}ka=(ra|0)<(((B*70|0)/100|0)+F|0);la=ka^1;ma=fa;na=qa;oa=ka?V:fa;pa=ka?W:ra}while(0);S=S+1|0;if((S|0)>=3){H=la;I=x;J=ma;K=E;L=na;M=x;N=oa;O=y;P=pa;break}else{R=la;T=ma;U=na;V=oa;W=pa}}}else{H=0;I=p;J=q;K=r;L=s;M=t;N=u;O=v;P=w}while(0);if((g|0)>1|H){ha=25;break}k=c[z+8>>2]|0;m=c[z>>2]|0;n=F;g=g+1|0;p=I;q=J;r=K;s=L;t=M;u=N;v=O;w=P}if((ha|0)==25)if(H){X=I;Y=J;Z=K;_=L;$=M;aa=N;ba=O;ca=P}else{j=0;i=e;return j|0}P=Ie(z,ca,aa)|0;z=Ge(c[b>>2]|0,Z,X)|0;O=P&z;N=c[b>>2]|0;M=c[N+4>>2]|0;L=c[N>>2]|0;K=(a[(c[(c[N+16>>2]|0)+(((((c[N+12>>2]|0)+M|0)/2|0)-M|0)*12|0)>>2]|0)+((((c[N+8>>2]|0)+L|0)/2|0)-L)>>0]|0)!=0?42:0;L=Fe(N,_,Y)|0;N=c[b>>2]|0;do if(L){if(Fe(N,ba,$)|0){if(O){j=K;i=e;return j|0}if(P|z)break;M=c[b>>2]|0;if(((c[M+12>>2]|0)+1-(c[M+4>>2]|0)|0)>(((c[M+8>>2]|0)+1-(c[M>>2]|0)|0)*3|0))break;M=lh(b+56|0,-1)|0;J=b+152|0;I=lh(J,-1)|0;if((M&-2|0)!=2)break;if((I|0)==2){j=51;i=e;return j|0}else if((I|0)!=1)break;I=kh(J,0,-1)|0;if((c[b+160>>2]|0)<0)Og(J);if((I|0)<(((((c[b+192>>2]|0)-(c[b+188>>2]|0)>>2)*80|0)+ -80|0)/100|0|0))j=51;else break;i=e;return j|0}if(He(c[b>>2]|0,ba,$)|0){if(O){j=K;i=e;return j|0}I=Ug(b+152|0,Z+1-(c[(c[b>>2]|0)+4>>2]|0)|0)|0;J=c[b>>2]|0;do if((I|0)>=(X-(c[J>>2]|0)|0)){M=b+56|0;H=Ug(M,_+1-(c[J+4>>2]|0)|0)|0;w=c[b>>2]|0;if((H|0)>=(Y-(c[w>>2]|0)|0)){H=Ug(M,ca+ -1-(c[w+4>>2]|0)|0)|0;v=c[b>>2]|0;if((H|0)<(aa-(c[v>>2]|0)|0))sa=v;else break}else sa=w;if(Le(sa,f)|0){w=c[b>>2]|0;v=c[w+4>>2]|0;if(((c[f>>2]|0)*5|0)<((c[w+12>>2]|0)+1-v<<2|0)){ta=v;ua=0}else{va=v;ha=44}}else{va=c[(c[b>>2]|0)+4>>2]|0;ha=44}if((ha|0)==44){ta=va;ua=1}v=(Ug(M,_-ta|0)|0)<<1;M=((v|0)<(Y-(c[c[b>>2]>>2]|0)|0)&1)+ua|0;if(Zg(l)|0)if(!(ah(l)|0)?ah(h)|0:0)ha=48;else wa=M;else ha=48;if((ha|0)==48)wa=M+1|0;if((wa|0)>1){j=53;i=e;return j|0}}while(0);if(!(Gh(d,4)|0)?!(Gh(d,2)|0):0){j=115;i=e;return j|0}J=c[b>>2]|0;I=c[J+4>>2]|0;if((ba|0)<=(((((c[J+12>>2]|0)-I|0)*55|0)/100|0)+I|0)){j=115;i=e;return j|0}I=De(J,ba+ -1|0,$,1)|0;J=c[b>>2]|0;if((I|0)>=(c[J+8>>2]|0)){j=115;i=e;return j|0}I=c[J+4>>2]|0;j=(ba|0)>(((((c[J+12>>2]|0)-I|0)*63|0)/100|0)+I|0)?199:231;i=e;return j|0}}else if(He(N,_,Y)|0){if(!(He(c[b>>2]|0,ba,$)|0)){if(!(Fe(c[b>>2]|0,ba,$)|0))break;if(!O){I=b+56|0;if((c[b+64>>2]|0)<0)Og(I);J=((Ug(I,((((c[b+96>>2]|0)-(c[b+92>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)<<1)+2|0;I=c[b>>2]|0;if((J|0)>=((c[I+8>>2]|0)+1-(c[I>>2]|0)|0)){if(Zg(l)|0){j=50;i=e;return j|0}if(ah(l)|0?!(ah(h)|0):0){j=50;i=e;return j|0}}}I=c[b>>2]|0;J=(c[I+12>>2]|0)+1-(c[I+4>>2]|0)<<1;I=b+296|0;if((J|0)>((Qg(I)|0)*5|0))break;if((c[b+208>>2]|0)<0)Og(h);J=Ug(h,((((c[b+240>>2]|0)-(c[b+236>>2]|0)>>2)*75|0)+ -75|0)/100|0)|0;M=c[b>>2]|0;if((J|0)>(((c[M+12>>2]|0)+1-(c[M+4>>2]|0)|0)/10|0|0))break;M=b+304|0;if((c[M>>2]|0)<0)Og(I);J=b+336|0;v=b+332|0;w=Rg(I,0,((((c[J>>2]|0)-(c[v>>2]|0)>>2)*30|0)+ -30|0)/100|0)|0;if((c[M>>2]|0)<0)Og(I);if(Fh(w,Rg(I,((((c[J>>2]|0)-(c[v>>2]|0)>>2)*70|0)+ -70|0)/100|0,-1)|0,20,1)|0)j=122;else break;i=e;return j|0}if(O){j=K;i=e;return j|0}v=c[b>>2]|0;if((lh(h,((c[v+12>>2]|0)+1-(c[v+4>>2]|0)|0)/5|0)|0)==1){v=b+56|0;J=(_+ca|0)/2|0;I=(Ug(v,J-(c[(c[b>>2]|0)+4>>2]|0)|0)|0)<<3;w=c[b>>2]|0;M=c[w>>2]|0;if(((I|0)>=((c[w+8>>2]|0)+1-M|0)?Ge(w,(Z+ba|0)/2|0,M)|0:0)?(M=c[b>>2]|0,!(Ge(M,J,c[M>>2]|0)|0)):0){j=102;i=e;return j|0}M=b+152|0;J=c[b>>2]|0;if((lh(M,((c[J+8>>2]|0)+1-(c[J>>2]|0)|0)/8|0)|0)<3?Ie(c[b>>2]|0,ca,aa)|0:0){if(!(Gh(d,4)|0)?!(Gh(d,2)|0):0){j=70;i=e;return j|0}if((c[b+64>>2]|0)<0)Og(v);J=(Ug(v,((((c[b+96>>2]|0)-(c[b+92>>2]|0)>>2)*95|0)+ -95|0)/100|0)|0)<<1;if((c[b+160>>2]|0)<0)Og(M);if((J|0)<=(Ug(M,((((c[b+192>>2]|0)-(c[b+188>>2]|0)>>2)*95|0)+ -95|0)/100|0)|0)){j=70;i=e;return j|0}M=c[b>>2]|0;J=c[M+4>>2]|0;j=(ba|0)>(((((c[M+12>>2]|0)-J|0)*63|0)/100|0)+J|0)?199:231;i=e;return j|0}if((Z|0)<(ba|0)&(ba+2|0)<(_|0)&(_|0)<(ca|0)?(J=c[b>>2]|0,M=((c[J+12>>2]|0)+(c[J+4>>2]|0)|0)/2|0,!((ba|0)>(M|0)|(_|0)<(M|0))):0){j=69;i=e;return j|0}}}while(0);j=0;i=e;return j|0} + + + +function Mh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;e=i;i=i+16|0;f=e;g=a+104|0;h=c[a>>2]|0;if((lh(g,((c[h+12>>2]|0)+1-(c[h+4>>2]|0)|0)/4|0)|0)!=1){j=0;i=e;return j|0}h=a+200|0;k=c[a>>2]|0;if((lh(h,((c[k+12>>2]|0)+1-(c[k+4>>2]|0)|0)/4|0)|0)!=1){j=0;i=e;return j|0}k=c[a>>2]|0;l=(c[k+12>>2]|0)+1-(c[k+4>>2]|0)|0;m=(c[k+8>>2]|0)+1-(c[k>>2]|0)|0;k=((((m|0)<(l|0)?m:l)|0)/30|0)+1|0;l=a+56|0;m=a+64|0;if((c[m>>2]|0)<0)Og(l);n=a+96|0;o=a+92|0;p=(Ug(l,((((c[n>>2]|0)-(c[o>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)+k<<1;q=c[a>>2]|0;r=c[q+8>>2]|0;s=c[q>>2]|0;t=(p|0)>=(r+1-s|0);p=((da(t?25:75,r-s|0)|0)/100|0)+s|0;s=Ce(q,((c[q+12>>2]|0)+(c[q+4>>2]|0)|0)/2|0,p,1)|0;q=c[a>>2]|0;r=c[q+4>>2]|0;if((s|0)>(r|0)){if((s|0)<(((((c[q+12>>2]|0)-r|0)*25|0)/100|0)+r|0)?Ge(q,s,p)|0:0){u=c[a>>2]|0;v=9}}else{u=q;v=9}do if((v|0)==9?Me(u,f)|0:0){q=c[f>>2]|0;if(t){s=c[a>>2]|0;if((q|0)<=(((c[s+12>>2]|0)+1-(c[s+4>>2]|0)|0)/2|0|0))break;s=a+152|0;if((c[a+160>>2]|0)<0)Og(s);if(!(Wg(s,((((c[a+192>>2]|0)-(c[a+188>>2]|0)>>2)*80|0)+ -80|0)/100|0,1)|0))break;if(Xg(s,1,-1)|0)break;else j=74;i=e;return j|0}s=c[a>>2]|0;if((((c[s+12>>2]|0)+1-(c[s+4>>2]|0)|0)/2|0|0)<(0-q|0)){if((c[m>>2]|0)<0)Og(l);q=(Ug(l,((((c[n>>2]|0)-(c[o>>2]|0)>>2)*80|0)+ -80|0)/100|0)|0)*5|0;s=c[a>>2]|0;r=c[s+8>>2]|0;w=c[s>>2]|0;if((q|0)>=(r+1-w<<1|0)){j=118;i=e;return j|0}if((p|0)>((w+r|0)/2|0|0)){j=76;i=e;return j|0}}}while(0);p=c[a>>2]|0;t=c[p+12>>2]|0;f=c[p+4>>2]|0;p=((t+1-f|0)/30|0)+1|0;u=p+f|0;f=t-p|0;if(((((wh(a)|0)==1?(t=c[a+20>>2]|0,r=c[t+8>>2]|0,w=c[t>>2]|0,t=r+1-w|0,(t|0)>1):0)?(q=c[a>>2]|0,s=c[q+8>>2]|0,x=c[q>>2]|0,(t<<1|0)<=(s+1-x|0)):0)?(t=((w+r|0)/2|0)-((x+s|0)/2|0)|0,(((t|0)>-1?t:0-t|0)|0)<=(k|0)):0)?(t=w-x+(r-s)|0,(((t|0)>-1?t:0-t|0)|0)<=(k<<1|0)):0){if((vh(a)|0)==1?(t=a+8|0,s=c[t>>2]|0,r=c[s+12>>2]|0,x=c[s+4>>2]|0,w=c[a>>2]|0,q=c[w+12>>2]|0,y=c[w+4>>2]|0,(r+1-x<<2|0)<=(q+1-y|0)):0){if((x|0)>(u|0)?(r|0)>=((((q-y|0)*15|0)/100|0)+y|0):0){z=r;A=x;B=q;C=y;D=s;E=w}else v=30;do if((v|0)==30){w=(c[s+8>>2]|0)+1-(c[s>>2]|0)|0;y=a+296|0;q=a+304|0;if((c[q>>2]|0)<0)Og(y);x=a+336|0;r=a+332|0;F=Ug(y,((((c[x>>2]|0)-(c[r>>2]|0)>>2)*75|0)+ -75|0)/100|0)|0;if((c[q>>2]|0)<0)Og(y);if((w|0)<((Ug(y,((((c[x>>2]|0)-(c[r>>2]|0)>>2)*80|0)+ -80|0)/100|0)|0)+F|0)){F=c[t>>2]|0;r=c[a>>2]|0;z=c[F+12>>2]|0;A=c[F+4>>2]|0;B=c[r+12>>2]|0;C=c[r+4>>2]|0;D=F;E=r;break}else{j=84;i=e;return j|0}}while(0);t=((z+A|0)/2|0)-((B+C|0)/2|0)|0;if(((((t|0)>-1?t:0-t|0)|0)<=(p|0)?(t=(c[E+8>>2]|0)+1-(c[E>>2]|0)|0,((c[D+8>>2]|0)+1-(c[D>>2]|0)|0)>=(t|0)):0)?Fh(1-C+B|0,t,50,1)|0:0){j=43;i=e;return j|0}}if((((((vh(a)|0)==2?(t=c[a+8>>2]|0,B=c[t+4>>2]|0,(B|0)<=(u|0)):0)?(C=c[a>>2]|0,D=(c[C+12>>2]|0)+1-(c[C+4>>2]|0)|0,(1-B+(c[t+12>>2]|0)<<2|0)<=(D|0)):0)?(B=c[t+28>>2]|0,(B|0)>=(f|0)):0)?(B+1-(c[t+20>>2]|0)<<2|0)<=(D|0):0)?(((c[t+8>>2]|0)+1-(c[t>>2]|0)|0)*3|0)>((c[t+24>>2]|0)+1-(c[t+16>>2]|0)<<2|0):0){j=84;i=e;return j|0}}if(((wh(a)|0)==1?(t=a+20|0,D=c[t>>2]|0,B=c[D+8>>2]|0,C=B+1-(c[D>>2]|0)|0,(C|0)>1):0)?(D=c[a>>2]|0,E=c[D+8>>2]|0,A=c[D>>2]|0,(C<<1|0)<=(E+1-A|0)):0){do if((B|0)<=((A+E|0)/2|0|0)){if(!((vh(a)|0)!=2?(vh(a)|0)!=3:0))v=51;do if(((((v|0)==51?(C=a+8|0,D=c[C>>2]|0,(c[D+4>>2]|0)<=(u|0)):0)?(z=D+16|0,s=(c[D+24>>2]|0)+1-(c[z>>2]|0)|0,((c[D+8>>2]|0)+2-(c[D>>2]|0)|0)>=(s|0)):0)?(D=c[t>>2]|0,(s<<1|0)>=(((c[D+8>>2]|0)+1-(c[D>>2]|0)|0)*3|0)):0)?Md(D,z)|0:0){do if((vh(a)|0)==3?(z=c[C>>2]|0,Fh((c[z+8>>2]|0)+1-(c[z>>2]|0)|0,(c[z+40>>2]|0)+1-(c[z+32>>2]|0)|0,10,2)|0):0){z=c[C>>2]|0;D=c[z+16>>2]|0;if((((c[z+40>>2]|0)+1-(c[z+32>>2]|0)|0)*10|0)<(((c[z+24>>2]|0)+1-D|0)*9|0))break;if((c[z>>2]|0)>(D+1|0))break;else j=69;i=e;return j|0}while(0);D=(vh(a)|0)==2;z=c[C>>2]|0;if(!D?((c[z+8>>2]|0)+1-(c[z>>2]|0)|0)<=((c[z+40>>2]|0)+1-(c[z+32>>2]|0)|0):0)break;if(Id(z+16|0,c[a>>2]|0)|0){j=70;i=e;return j|0}z=c[C>>2]|0;if((((c[z+24>>2]|0)+1-(c[z+16>>2]|0)|0)*3|0)<=((c[z+8>>2]|0)+1-(c[z>>2]|0)<<1|0))break;z=(Ug(l,p)|0)*10|0;D=c[a>>2]|0;if((z|0)>=((c[D+8>>2]|0)+1-(c[D>>2]|0)|0))break;z=c[C>>2]|0;s=c[D+4>>2]|0;r=(c[D+12>>2]|0)-s|0;if((c[z+20>>2]|0)<=(((r*30|0)/100|0)+s|0))break;if((c[z+28>>2]|0)<(((r*60|0)/100|0)+s|0))j=70;else break;i=e;return j|0}while(0);if(((((vh(a)|0)==2?(s=c[a+8>>2]|0,(c[s+28>>2]|0)>=(f|0)):0)?(r=c[a>>2]|0,((c[r+12>>2]|0)+1-(c[r+4>>2]|0)|0)>((c[r+8>>2]|0)+1-(c[r>>2]|0)|0)):0)?(r=c[s+8>>2]|0,z=c[s>>2]|0,((c[s+24>>2]|0)+1-(c[s+16>>2]|0)|0)>(r+1-z|0)):0)?(s=c[t>>2]|0,D=(((c[s+8>>2]|0)+(c[s>>2]|0)|0)/2|0)-((z+r|0)/2|0)|0,(((D|0)>-1?D:0-D|0)|0)<2):0){D=a+152|0;r=kh(D,0,-1)|0;if((c[a+160>>2]|0)<0)Og(D);if((r|0)>(((((c[a+192>>2]|0)-(c[a+188>>2]|0)>>2)*70|0)+ -70|0)/100|0|0)){j=76;i=e;return j|0}}if(((vh(a)|0)==1?(r=a+8|0,D=c[r>>2]|0,z=c[a>>2]|0,Fh((c[D+8>>2]|0)+1-(c[D>>2]|0)|0,(c[z+8>>2]|0)+1-(c[z>>2]|0)|0,10,1)|0):0)?(z=c[a>>2]|0,D=c[z>>2]|0,s=(c[z+8>>2]|0)-D|0,(c[c[t>>2]>>2]|0)<=(((s*30|0)/100|0)+D|0)):0){F=c[r>>2]|0;do if((c[F+12>>2]|0)>=(f|0))if(Ge(z,((c[z+12>>2]|0)+(c[z+4>>2]|0)|0)/2|0,((s*75|0)/100|0)+D|0)|0){j=76;i=e;return j|0}else{G=c[r>>2]|0;break}else G=F;while(0);if((c[G+4>>2]|0)<=(u|0)){F=a+296|0;r=a+304|0;if((c[r>>2]|0)<0)Og(F);D=a+336|0;s=a+332|0;z=(Ug(F,((((c[D>>2]|0)-(c[s>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)<<1;x=c[a>>2]|0;if((z|0)>=((c[x+8>>2]|0)+1-(c[x>>2]|0)|0)){if((c[r>>2]|0)<0)Og(F);r=(Ug(F,((((c[D>>2]|0)-(c[s>>2]|0)>>2)*75|0)+ -75|0)/100|0)|0)<<2;s=c[a>>2]|0;D=c[s+8>>2]|0;F=c[s>>2]|0;if((r|0)>=(D+1-F|0))break;r=c[s+4>>2]|0;if(He(s,((((c[s+12>>2]|0)-r|0)*25|0)/100|0)+r|0,(F+D|0)/2|0)|0)j=70;else break;i=e;return j|0}}}}while(0);G=c[a>>2]|0;if((c[c[t>>2]>>2]|0)>(((c[G+8>>2]|0)+(c[G>>2]|0)|0)/2|0|0)?(vh(a)|0)==1:0){G=c[a>>2]|0;E=c[G>>2]|0;A=c[G+8>>2]|0;G=a+8|0;if(((((c[(c[t>>2]|0)+8>>2]|0)>=((((A-E|0)*90|0)/100|0)+E|0)?(t=c[G>>2]|0,(c[t+12>>2]|0)>=(f|0)):0)?Fh((c[t+8>>2]|0)+1-(c[t>>2]|0)|0,1-E+A|0,10,1)|0:0)?(A=c[a>>2]|0,E=c[A+12>>2]|0,t=c[d+4>>2]|0,(E|0)>(((((c[d+12>>2]|0)-t|0)*90|0)/100|0)+t|0)):0)?(t=c[A>>2]|0,Ge(A,((c[A+4>>2]|0)+E|0)/2|0,((((c[A+8>>2]|0)-t|0)*25|0)/100|0)+t|0)|0):0){t=c[a>>2]|0;j=((c[t+12>>2]|0)+1-(c[t+4>>2]|0)|0)>((c[t+8>>2]|0)+1-(c[t>>2]|0)|0)?74:0;i=e;return j|0}t=c[G>>2]|0;if((c[t+4>>2]|0)<=(u|0)?(u=c[a>>2]|0,((c[t+8>>2]|0)+2-(c[t>>2]|0)|0)>=((c[u+8>>2]|0)+1-(c[u>>2]|0)|0)):0){if(!(!(Gh(b,4)|0)?!(Gh(b,2)|0):0))v=100;if((v|0)==100?(v=c[a>>2]|0,((c[v+8>>2]|0)+1-(c[v>>2]|0)|0)>((c[v+12>>2]|0)+1-(c[v+4>>2]|0)|0)):0){j=172;i=e;return j|0}j=0;i=e;return j|0}}}do if((((wh(a)|0)==1?(v=a+20|0,b=c[v>>2]|0,((c[b+8>>2]|0)+1-(c[b>>2]|0)|0)>1):0)?(lh(g,-1)|0)==1:0)?(lh(h,-1)|0)==1:0){b=c[a>>2]|0;u=c[b+8>>2]|0;t=c[b>>2]|0;a:do if((((c[b+12>>2]|0)+1-(c[b+4>>2]|0)|0)*3|0)>(u+1-t<<2|0)?(G=c[v>>2]|0,Fh((c[G>>2]|0)-t|0,u-(c[G+8>>2]|0)|0,30,k<<1)|0):0){G=c[a>>2]|0;A=(c[G+12>>2]|0)+1-(c[G+4>>2]|0)|0;G=a+296|0;E=a+152|0;if(((A|0)<=((Qg(G)|0)*3|0)?gh(E)|0:0)?gh(l)|0:0){A=c[a>>2]|0;do if(((c[A+12>>2]|0)+1-(c[A+4>>2]|0)|0)<=(((c[A+8>>2]|0)+1-(c[A>>2]|0)|0)*3|0)){if((c[m>>2]|0)<0)Og(l);d=Ug(l,((((c[n>>2]|0)-(c[o>>2]|0)>>2)*40|0)+ -40|0)/100|0)|0;if((c[m>>2]|0)<0)Og(l);if((d|0)<=((Ug(l,((((c[n>>2]|0)-(c[o>>2]|0)>>2)*60|0)+ -60|0)/100|0)|0)+k|0))break;d=a+160|0;if((c[d>>2]|0)<0)Og(E);f=a+192|0;B=a+188|0;D=Ug(E,((((c[f>>2]|0)-(c[B>>2]|0)>>2)*60|0)+ -60|0)/100|0)|0;if((c[d>>2]|0)<0)Og(E);if((D|0)>((Ug(E,((((c[f>>2]|0)-(c[B>>2]|0)>>2)*40|0)+ -40|0)/100|0)|0)+k|0))j=122;else break;i=e;return j|0}while(0);j=73;i=e;return j|0}do if($g(E)|0){if(gh(l)|0){j=108;i=e;return j|0}if($g(l)|0){j=108;i=e;return j|0}if(hh(l,50)|0){if((lh(l,-1)|0)!=2)break;A=kh(l,0,-1)|0;if((c[m>>2]|0)<0)Og(l);if((A|0)>=(((((c[n>>2]|0)-(c[o>>2]|0)>>2)*30|0)+ -30|0)/100|0|0))break;A=kh(l,1,-1)|0;if((c[m>>2]|0)<0)Og(l);if((A|0)>(((((c[n>>2]|0)-(c[o>>2]|0)>>2)*80|0)+ -80|0)/100|0|0))j=108;else break;i=e;return j|0}}while(0);A=c[a>>2]|0;C=(c[A+12>>2]|0)+1-(c[A+4>>2]|0)|0;do if((C|0)>((Qg(G)|0)*3|0)){do if(gh(E)|0){if(!(ah(l)|0))break;A=kh(l,0,-1)|0;if((c[m>>2]|0)<0)Og(l);if(!(Fh(A,((((c[n>>2]|0)-(c[o>>2]|0)>>2)*50|0)+ -50|0)/100|0,10,1)|0))break;A=ch(l)|0;j=A?123:40;i=e;return j|0}while(0);do if(gh(l)|0){if(!(ah(E)|0))break;A=kh(E,0,-1)|0;if((c[a+160>>2]|0)<0)Og(E);if(!(Fh(A,((((c[a+192>>2]|0)-(c[a+188>>2]|0)>>2)*50|0)+ -50|0)/100|0,10,1)|0))break;A=ch(E)|0;j=A?125:41;i=e;return j|0}while(0);if(!($g(E)|0))break;A=c[v>>2]|0;B=da((c[A+12>>2]|0)+1-(c[A+4>>2]|0)<<1,(c[A+8>>2]|0)+1-(c[A>>2]|0)|0)|0;if((B|0)<(ye(c[a>>2]|0)|0))break;else j=108;i=e;return j|0}while(0);G=c[a>>2]|0;if(((c[G+12>>2]|0)+1-(c[G+4>>2]|0)<<1|0)>(((c[G+8>>2]|0)+1-(c[G>>2]|0)|0)*3|0)?(lh(l,-1)|0)<3:0){if(!($g(E)|0)?(lh(E,-1)|0)!=1:0)break;G=c[v>>2]|0;C=c[G+8>>2]|0;B=c[a>>2]|0;A=c[B>>2]|0;f=c[B+8>>2]|0;if((C|0)<((((f-A|0)*70|0)/100|0)+A|0)){D=c[B+4>>2]|0;d=C+1|0;if(!(Ge(B,((((c[B+12>>2]|0)-D|0)*75|0)/100|0)+D|0,(d|0)<(f|0)?d:f)|0))break;f=c[a>>2]|0;H=f;I=c[v>>2]|0;J=c[f>>2]|0}else{H=B;I=G;J=A}A=(c[I>>2]|0)+ -1|0;if((A|0)>(J|0)){K=H;L=A}else break;while(1){A=c[K+4>>2]|0;G=Ee(K,((((c[K+12>>2]|0)-A|0)*75|0)/100|0)+A|0,L,1)|0;A=c[a>>2]|0;if((G|0)<(c[A+12>>2]|0)){if((Ug(h,L-(c[A>>2]|0)|0)|0)<=(k|0)){j=108;break}M=c[a>>2]|0}else M=A;L=L+ -1|0;if((L|0)<=(c[M>>2]|0))break a;else K=M}i=e;return j|0}}while(0);if((c[(c[v>>2]|0)+8>>2]|0)>=((c[(c[a>>2]|0)+8>>2]|0)+ -1|0)){u=gh(l)|0;t=c[a>>2]|0;b=c[t+12>>2]|0;E=c[t+4>>2]|0;if(u){u=c[t+8>>2]|0;A=c[t>>2]|0;if((b+1-E|0)>(u+1-A<<1|0)){G=c[v>>2]|0;B=(c[G+8>>2]|0)+1-(c[G>>2]|0)<<1;if((B|0)<=(Qg(a+296|0)|0)){if((c[m>>2]|0)<0)Og(l);B=Ug(l,((((c[n>>2]|0)-(c[o>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0;G=c[a>>2]|0;f=c[G+8>>2]|0;d=c[G>>2]|0;if((B|0)<((f+1-d|0)/2|0|0)){N=G;O=f;P=d}else{j=93;i=e;return j|0}}else{d=c[a>>2]|0;N=d;O=c[d+8>>2]|0;P=c[d>>2]|0}d=c[N+12>>2]|0;f=c[N+4>>2]|0;if((d+1-f|0)<((O+1-P|0)*3|0)){Q=d;R=f;S=O;T=P}else{j=108;i=e;return j|0}}else{Q=b;R=E;S=u;T=A}}else{Q=b;R=E;S=c[t+8>>2]|0;T=c[t>>2]|0}if((((Q+1-R<<1|0)>=((S+1-T|0)*3|0)?(t=c[v>>2]|0,((c[t+12>>2]|0)+1-(c[t+4>>2]|0)|0)>=(((c[t+8>>2]|0)+1-(c[t>>2]|0)|0)*3|0)):0)?ch(l)|0:0)?(lh(l,-1)|0)==1:0){t=kh(l,0,-1)|0;if((c[m>>2]|0)<0)Og(l);E=c[n>>2]|0;b=c[o>>2]|0;if((t|0)>((((E-b>>2)*10|0)+ -10|0)/100|0|0)){if((c[m>>2]|0)<0){Og(l);U=c[n>>2]|0;V=c[o>>2]|0}else{U=E;V=b}if((t|0)<((((U-V>>2)*40|0)+ -40|0)/100|0|0))j=49;else break;i=e;return j|0}}}}while(0);if((((((vh(a)|0)==1?(V=c[a+8>>2]|0,U=c[a>>2]|0,a=(c[U+8>>2]|0)+1-(c[U>>2]|0)|0,((c[V+8>>2]|0)+1-(c[V>>2]|0)|0)>=(a|0)):0)?(o=c[U+4>>2]|0,n=c[U+12>>2]|0,U=(((c[V+12>>2]|0)+(c[V+4>>2]|0)|0)/2|0)-((n+o|0)/2|0)|0,(((U|0)>-1?U:0-U|0)|0)<=(p|0)):0)?Fh(1-o+n|0,a,50,1)|0:0)?dh(g)|0:0)?dh(h)|0:0){j=43;i=e;return j|0}j=0;i=e;return j|0}function Nh(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;b=i;d=a+56|0;if(!(Zg(d)|0)?!(ah(d)|0):0)e=a;else f=4;do if((f|0)==4){g=c[a>>2]|0;h=Ce(g,((c[g+12>>2]|0)+(c[g+4>>2]|0)|0)/2|0,((c[g+8>>2]|0)+(c[g>>2]|0)|0)/2|0,1)|0;g=c[a>>2]|0;j=Ee(g,((c[g+12>>2]|0)+(c[g+4>>2]|0)|0)/2|0,((c[g+8>>2]|0)+(c[g>>2]|0)|0)/2|0,1)|0;g=c[a>>2]|0;k=c[g+4>>2]|0;do if(((c[g+12>>2]|0)+1-k|0)>((c[g+8>>2]|0)+1-(c[g>>2]|0)<<1|0)){l=(Qg(a+296|0)|0)*3|0;m=c[a>>2]|0;if((l|0)>((c[m+8>>2]|0)+1-(c[m>>2]|0)<<1|0)){n=c[m+4>>2]|0;o=m;break}m=Zg(d)|0;p=m?40:0;i=b;return p|0}else{n=k;o=g}while(0);if(((h|0)>(n|0)?(j|0)<(c[o+12>>2]|0):0)?hh(a+152|0,50)|0:0){g=a+200|0;if(!(ah(g)|0)?(k=a+104|0,!(ah(k)|0)):0){if(!(ih(g)|0)){e=a;break}if(!(ih(k)|0)){e=a;break}}k=c[a>>2]|0;if(He(k,((c[k+12>>2]|0)+(c[k+4>>2]|0)|0)/2|0,((c[k+8>>2]|0)+(c[k>>2]|0)|0)/2|0)|0){p=99;i=b;return p|0}else e=a}else e=a}while(0);o=c[e>>2]|0;if(((c[o+12>>2]|0)+1-(c[o+4>>2]|0)|0)>((c[o+8>>2]|0)+1-(c[o>>2]|0)<<1|0)?Zg(a+152|0)|0:0){o=c[e>>2]|0;n=Ce(o,((c[o+12>>2]|0)+(c[o+4>>2]|0)|0)/2|0,((c[o+8>>2]|0)+(c[o>>2]|0)|0)/2|0,1)|0;o=c[e>>2]|0;f=Ee(o,((c[o+12>>2]|0)+(c[o+4>>2]|0)|0)/2|0,((c[o+8>>2]|0)+(c[o>>2]|0)|0)/2|0,1)|0;o=(Qg(a+296|0)|0)*3|0;a=c[e>>2]|0;if((o|0)<=((c[a+8>>2]|0)+1-(c[a>>2]|0)<<1|0)){p=41;i=b;return p|0}o=(Ug(d,n-(c[a+4>>2]|0)|0)|0)<<1;a=c[e>>2]|0;if((o|0)>=((c[a+8>>2]|0)+1-(c[a>>2]|0)|0)?(o=(Ug(d,f-(c[a+4>>2]|0)|0)|0)<<1,a=c[e>>2]|0,(o|0)>=((c[a+8>>2]|0)+1-(c[a>>2]|0)|0)):0){p=41;i=b;return p|0}}p=0;i=b;return p|0}function Oh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;d=i;i=i+16|0;e=d+4|0;f=d;g=a+200|0;h=c[a>>2]|0;if((lh(g,((c[h+12>>2]|0)+1-(c[h+4>>2]|0)|0)/4|0)|0)!=1){j=0;i=d;return j|0}h=a+104|0;k=c[a>>2]|0;if((lh(h,((c[k+12>>2]|0)+1-(c[k+4>>2]|0)|0)/2|0)|0)!=1){j=0;i=d;return j|0}k=c[a>>2]|0;if((lh(g,((c[k+12>>2]|0)+1-(c[k+4>>2]|0)|0)/2|0)|0)!=1){j=0;i=d;return j|0}k=c[a>>2]|0;l=(c[k+12>>2]|0)+1-(c[k+4>>2]|0)|0;m=(c[k+8>>2]|0)+1-(c[k>>2]|0)|0;k=((((m|0)<(l|0)?m:l)|0)/30|0)+1|0;m=(lh(h,(l|0)/4|0)|0)!=1;if(!m){c[e>>2]=0;c[f>>2]=0;if(Me(c[a>>2]|0,e)|0?(l=da(c[e>>2]|0,-2)|0,n=c[a>>2]|0,o=(c[n+12>>2]|0)+1-(c[n+4>>2]|0)|0,(l|0)>(o|0)):0){l=a+296|0;if((o|0)>=((Qg(l)|0)*3|0)?!(ah(a+56|0)|0):0){if(!(vh(a)|0)){j=108;i=d;return j|0}o=c[a>>2]|0;n=c[o+4>>2]|0;if((c[(c[a+8>>2]|0)+12>>2]|0)<(((((c[o+12>>2]|0)-n|0)*20|0)/100|0)+n|0)){j=108;i=d;return j|0}}if((c[a+304>>2]|0)<0)Og(l);n=(Ug(l,((((c[a+336>>2]|0)-(c[a+332>>2]|0)>>2)*6|0)+ -6|0)/100|0)|0)<<1;o=c[a>>2]|0;if((((((n|0)<((c[o+8>>2]|0)+1-(c[o>>2]|0)|0)?(vh(a)|0)>0:0)?(vh(a)|0)<3:0)?(o=c[a+8>>2]|0,n=c[a>>2]|0,p=c[n+4>>2]|0,q=c[n+12>>2]|0,(c[o+4>>2]|0)>=((((q-p|0)*15|0)/100|0)+p|0)):0)?(c[o+12>>2]|0)<((q+p|0)/2|0|0):0)?(p=(c[o+8>>2]|0)+1-(c[o>>2]|0)|0,Fh(p,Qg(l)|0,10,1)|0):0){j=116;i=d;return j|0}}if(Le(c[a>>2]|0,f)|0){l=c[a>>2]|0;p=(c[l+12>>2]|0)+1-(c[l+4>>2]|0)|0;if(((c[f>>2]|0)*3|0)>(p<<1|0)?(p|0)>((Qg(a+296|0)|0)<<1|0):0){p=kh(h,0,-1)|0;if((c[a+112>>2]|0)<0)Og(h);if((p|0)>(((((c[a+144>>2]|0)-(c[a+140>>2]|0)>>2)*50|0)+ -50|0)/100|0|0)){p=kh(g,0,-1)|0;if((c[a+208>>2]|0)<0)Og(g);if((p|0)<=(((((c[a+240>>2]|0)-(c[a+236>>2]|0)>>2)*50|0)+ -50|0)/100|0|0)){if(!(c[e>>2]|0)){j=102;i=d;return j|0}p=a+152|0;if((c[a+160>>2]|0)<0)Og(p);if(Wg(p,((((c[a+192>>2]|0)-(c[a+188>>2]|0)>>2)*50|0)+ -50|0)/100|0,2)|0){j=102;i=d;return j|0}}}}p=c[a>>2]|0;l=(c[p+12>>2]|0)+1-(c[p+4>>2]|0)|0;if((c[e>>2]<<1|0)>(l|0)?(c[f>>2]<<1|0)>(l|0):0){j=0;i=d;return j|0}else r=0}else r=1}else r=1;l=a+152|0;f=a+160|0;if((c[f>>2]|0)<0)Og(l);e=a+192|0;p=a+188|0;o=(Ug(l,((((c[e>>2]|0)-(c[p>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)<<1;q=c[a>>2]|0;if((o|0)>((c[q+8>>2]|0)+1-(c[q>>2]|0)|0)){if((c[a+208>>2]|0)<0)Og(g);q=(Ug(g,((((c[a+240>>2]|0)-(c[a+236>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)<<1;o=c[a>>2]|0;if((q|0)>((c[o+12>>2]|0)+1-(c[o+4>>2]|0)|0)){o=hh(h,50)|0;if(o|m){j=o?114:0;i=d;return j|0}}else s=41}else s=41;if((s|0)==41?m:0){j=0;i=d;return j|0}if((wh(a)|0)!=1){j=0;i=d;return j|0}m=a+20|0;o=c[m>>2]|0;q=c[o+8>>2]|0;n=c[o>>2]|0;if((q+1-n|0)<2){j=0;i=d;return j|0}o=c[a>>2]|0;t=c[o+8>>2]|0;if(((n+q|0)/2|0|0)<=((t+(c[o>>2]|0)|0)/2|0|0)){if((c[f>>2]|0)<0)Og(l);o=t-(Ug(l,((((c[e>>2]|0)-(c[p>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)+2|0;t=c[a>>2]|0;if((o|0)<(c[t+8>>2]|0)){q=Ee(t,((c[t+12>>2]|0)+(c[t+4>>2]|0)|0)/2|0,o,1)|0;t=c[a>>2]|0;if(!((q|0)<(c[t+12>>2]|0)?!(Ie(t,q+ -1|0,o)|0):0)){t=(lh(l,-1)|0)==3;n=c[a>>2]|0;if(t){t=(lh(l,((c[n+8>>2]|0)+1-(c[n>>2]|0)|0)/8|0)|0)<3;j=t?102:0;i=d;return j|0}if(Fh((c[n+12>>2]|0)+1-(c[n+4>>2]|0)|0,(c[n+8>>2]|0)+1-(c[n>>2]|0)|0,40,1)|0){n=c[a>>2]|0;if((lh(h,((c[n+12>>2]|0)+1-(c[n+4>>2]|0)|0)/8|0)|0)==2?(n=c[a>>2]|0,(lh(g,((c[n+12>>2]|0)+1-(c[n+4>>2]|0)|0)/8|0)|0)==2):0){j=120;i=d;return j|0}n=c[a>>2]|0;t=c[n+4>>2]|0;u=((((c[n+12>>2]|0)-t|0)*75|0)/100|0)+t|0;t=(De(n,u,((c[n+8>>2]|0)+(c[n>>2]|0)|0)/2|0,0)|0)+1|0;n=De(c[a>>2]|0,u,t,1)|0;if((n|0)>=(c[(c[a>>2]|0)+8>>2]|0)){n=a+56|0;do if(Zg(n)|0){t=c[a>>2]|0;u=c[t>>2]|0;if((o|0)>(((((c[t+8>>2]|0)-u|0)*60|0)/100|0)+u|0)){j=0;i=d;return j|0}if((q|0)<(c[t+12>>2]|0))j=0;else break;i=d;return j|0}while(0);do if((vh(a)|0)!=1){if((vh(a)|0)!=2)break;t=c[a+8>>2]|0;u=c[a>>2]|0;if((c[t+28>>2]|0)<((c[u+12>>2]|0)+ -1|0))break;if(((c[t+8>>2]|0)+1-(c[t>>2]|0)<<1|0)>(((c[t+24>>2]|0)+1-(c[t+16>>2]|0)|0)*3|0)){v=t;w=u;s=64}}else{v=c[a+8>>2]|0;w=c[a>>2]|0;s=64}while(0);do if((s|0)==64){u=c[v+4>>2]|0;t=c[w+4>>2]|0;if((u|0)>(t+1|0))break;if((1-u+(c[v+12>>2]|0)<<2|0)>(1-t+(c[w+12>>2]|0)|0))break;if((c[a+64>>2]|0)<0)Og(n);t=(Ug(n,((((c[a+96>>2]|0)-(c[a+92>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)<<2;u=c[a>>2]|0;if((t|0)<((c[u+8>>2]|0)+1-(c[u>>2]|0)|0))break;else j=84;i=d;return j|0}while(0);j=114;i=d;return j|0}}}n=c[a>>2]|0;if((((Fh((c[n+12>>2]|0)+1-(c[n+4>>2]|0)|0,(c[n+8>>2]|0)+1-(c[n>>2]|0)|0,40,1)|0?(n=c[a>>2]|0,w=c[n+4>>2]|0,(xh(a,((((c[n+12>>2]|0)-w|0)*15|0)/100|0)+w|0)|0)==3):0)?(w=c[a>>2]|0,n=c[w+4>>2]|0,(xh(a,((((c[w+12>>2]|0)-n|0)*85|0)/100|0)+n|0)|0)==3):0)?(n=De(c[a>>2]|0,q+ -1|0,o,1)|0,(n|0)<(c[(c[a>>2]|0)+8>>2]|0)):0)?hh(a+56|0,50)|0:0){j=120;i=d;return j|0}}n=c[a>>2]|0;o=c[n>>2]|0;a:do if(((((c[n+12>>2]|0)+1-(c[n+4>>2]|0)|0)*3|0)>((c[n+8>>2]|0)+1-o<<2|0)?(c[c[m>>2]>>2]|0)>(o|0):0)?(lh(l,-1)|0)<3:0){q=c[(c[a>>2]|0)+8>>2]|0;if((c[f>>2]|0)<0)Og(l);w=(Ug(l,((((c[e>>2]|0)-(c[p>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)+ -1|0;v=c[a>>2]|0;s=a+296|0;if(!(Ie(v,((c[v+12>>2]|0)+(c[v+4>>2]|0)|0)/2|0,q-((w|0)>0?w:0)|0)|0)){if((c[a+304>>2]|0)<0)Og(s);w=(Ug(s,((((c[a+336>>2]|0)-(c[a+332>>2]|0)>>2)*6|0)+ -6|0)/100|0)|0)*3|0;q=c[a>>2]|0;do if((w|0)<((c[q+8>>2]|0)+1-(c[q>>2]|0)<<1|0)){if(!(ah(h)|0))break;v=a+56|0;u=kh(v,0,-1)|0;if((c[a+64>>2]|0)<0)Og(v);if((u|0)<(((((c[a+96>>2]|0)-(c[a+92>>2]|0)>>2)*40|0)+ -40|0)/100|0|0))j=116;else break;i=d;return j|0}while(0);j=0;i=d;return j|0}q=(Qg(s)|0)<<1;w=c[a>>2]|0;if((q|0)>((c[w+8>>2]|0)+1-(c[w>>2]|0)|0)){w=kh(l,0,-1)|0;if((c[f>>2]|0)<0)Og(l);q=c[e>>2]|0;u=c[p>>2]|0;if((w|0)>=((((q-u>>2)*20|0)+ -20|0)/100|0|0)){do if(r){if(Zg(l)|0)break;w=c[a>>2]|0;if((lh(g,((c[w+12>>2]|0)+1-(c[w+4>>2]|0)|0)/3|0)|0)==1)j=116;else break;i=d;return j|0}while(0);j=0;i=d;return j|0}if((c[f>>2]|0)<0){Og(l);x=c[e>>2]|0;y=c[p>>2]|0}else{x=q;y=u}do if(!(Wg(l,(((x-y>>2)*20|0)+ -20|0)/100|0,2)|0)){if(Wg(g,1,2)|0)break;if((lh(h,k)|0)==2)break;if((lh(l,-1)|0)==1){w=c[a>>2]|0;if(((c[w+12>>2]|0)+1-(c[w+4>>2]|0)|0)<((c[b+12>>2]|0)+1-(c[b+4>>2]|0)|0))break;w=kh(h,0,-1)|0;if((c[a+112>>2]|0)<0)Og(h);if((w|0)>(((((c[a+144>>2]|0)-(c[a+140>>2]|0)>>2)*50|0)+ -50|0)/100|0|0))break}w=c[a>>2]|0;if((((c[w+12>>2]|0)+1-(c[w+4>>2]|0)|0)*3|0)<(((c[w+8>>2]|0)+1-(c[w>>2]|0)|0)*5|0))break a;if(gh(l)|0)break a;else j=102;i=d;return j|0}while(0);u=c[a>>2]|0;q=(c[u+12>>2]|0)+1-(c[u+4>>2]|0)|0;u=(q|0)>((Qg(s)|0)*3|0);j=u?0:114;i=d;return j|0}}while(0);h=c[a>>2]|0;b=c[h>>2]|0;k=Ee(h,((c[h+12>>2]|0)+(c[h+4>>2]|0)|0)/2|0,b+1+((((c[h+8>>2]|0)-b|0)*60|0)/100|0)|0,1)|0;b=c[a>>2]|0;if((k|0)>=(c[b+12>>2]|0)){k=(lh(l,-1)|0)==2;j=k?102:114;i=d;return j|0}if((((((c[(c[m>>2]|0)+8>>2]|0)<=(((c[b+8>>2]|0)+(c[b>>2]|0)|0)/2|0|0)?(vh(a)|0)==1:0)?(c[(c[a+8>>2]|0)+12>>2]|0)>=((c[(c[a>>2]|0)+12>>2]|0)+ -1|0):0)?gh(a+56|0)|0:0)?gh(l)|0:0)?(l=c[a>>2]|0,a=c[l>>2]|0,!(Ge(l,((c[l+12>>2]|0)+(c[l+4>>2]|0)|0)/2|0,((((c[l+8>>2]|0)-a|0)*75|0)/100|0)+a|0)|0)):0){j=114;i=d;return j|0}}j=0;i=d;return j|0}function Ph(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;b=i;d=a+56|0;if(!(!(Zg(d)|0)?!(ah(d)|0):0)){d=a+152|0;e=a+160|0;if((c[e>>2]|0)<0)Og(d);f=a+192|0;g=a+188|0;h=0;j=((((c[f>>2]|0)-(c[g>>2]|0)>>2)*60|0)+ -60|0)/100|0;k=0;while(1){if((c[e>>2]|0)<0)Og(d);if((j|0)<(((((c[f>>2]|0)-(c[g>>2]|0)>>2)*30|0)+ -30|0)/100|0|0))break;if((Ug(d,j)|0)>(h|0)){l=Ug(d,j)|0;m=j}else{l=h;m=k}h=l;j=j+ -1|0;k=m}if(!h){n=0;i=b;return n|0}m=c[a>>2]|0;j=c[m+8>>2]|0;l=j-h|0;h=l+1|0;d=c[m>>2]|0;if((l|0)<(d|0)){n=0;i=b;return n|0}l=(d+j|0)/2|0;if((h|0)>=(l|0)){n=0;i=b;return n|0}j=(l+h|0)/2|0;h=Ee(m,(c[m+4>>2]|0)+k|0,j,1)|0;k=c[a>>2]|0;if(((h|0)<(c[k+12>>2]|0)?He(k,h,j)|0:0)?(j=c[a>>2]|0,!(Ie(j,h,((c[j+8>>2]|0)+(c[j>>2]|0)|0)/2|0)|0)):0){j=c[a>>2]|0;k=c[j+4>>2]|0;m=((c[j+12>>2]|0)+1-k|0)/20|0;l=(m|0)>2?m:2;m=k;k=j;j=h;while(1){o=j+ -1|0;if((o|0)<=(m|0)){p=m;q=k;break}d=De(k,o,((c[k+8>>2]|0)+(c[k>>2]|0)|0)/2|0,1)|0;g=c[a>>2]|0;f=c[g+4>>2]|0;if((d|0)<(c[g+8>>2]|0)){m=f;k=g;j=o}else{p=f;q=g;break}}k=j+ -2|0;a:do if((k|0)>(p|0)){j=q;m=c[q+8>>2]|0;g=k;while(1){f=De(j,g,(m+(c[j>>2]|0)|0)/2|0,1)|0;d=c[a>>2]|0;m=c[d+8>>2]|0;e=g+ -1|0;if((f|0)<(m|0)){r=d;s=g;break a}if((e|0)<=(c[d+4>>2]|0)){r=d;s=e;break}else{j=d;g=e}}}else{r=q;s=k}while(0);k=o+l|0;if((k|0)<(h|0)?(h=c[r+4>>2]|0,(s|0)>(h|0)):0){q=(s-h|0)/2|0;h=s-((q|0)<(l|0)?q:l)|0;q=Be(r,h,c[r+8>>2]|0,1)|0;r=c[a>>2]|0;s=De(r,h,((c[r+8>>2]|0)+(c[r>>2]|0)|0)/2|0,1)|0;r=c[a>>2]|0;h=Be(r,k,c[r+8>>2]|0,1)|0;r=c[a>>2]|0;p=De(r,k,((c[r+8>>2]|0)+(c[r>>2]|0)|0)/2|0,1)|0;r=c[a>>2]|0;if((o|0)<=(((c[r+12>>2]|0)+(c[r+4>>2]|0)|0)/2|0|0)){n=71;i=b;return n|0}if((h-p|0)>(q+l-s|0)){n=71;i=b;return n|0}}}}n=0;i=b;return n|0}function Qh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0;d=i;i=i+64|0;e=d+56|0;f=d+48|0;g=d+32|0;h=d+4|0;j=d;k=a+104|0;l=c[a>>2]|0;if((((lh(k,((c[l+12>>2]|0)+1-(c[l+4>>2]|0)|0)/5|0)|0)==2?(l=c[a>>2]|0,(lh(k,((c[l+12>>2]|0)+1-(c[l+4>>2]|0)|0)/4|0)|0)==2):0)?(l=c[a>>2]|0,(lh(k,((c[l+12>>2]|0)+1-(c[l+4>>2]|0)|0)/2|0)|0)<4):0)?hh(k,50)|0:0){l=c[a>>2]|0;m=(c[l+12>>2]|0)+1-(c[l+4>>2]|0)|0;n=(c[l+8>>2]|0)+1-(c[l>>2]|0)|0;l=((((n|0)<(m|0)?n:m)|0)/30|0)+1|0;n=a+200|0;o=lh(n,(m|0)/5|0)|0;m=c[a>>2]|0;p=c[m+12>>2]|0;q=c[m+4>>2]|0;r=p+1-q|0;s=c[m+8>>2]|0;t=c[m>>2]|0;do if((r|0)>9?(r<<1|0)>=(s+1-t|0):0){if((o|0)==2){m=kh(n,0,-1)|0;if((c[a+208>>2]|0)<0)Og(n);if(!(Fh(m,((((c[a+240>>2]|0)-(c[a+236>>2]|0)>>2)*50|0)+ -50|0)/100|0,10,1)|0)){m=c[a>>2]|0;u=c[m+12>>2]|0;v=c[m+4>>2]|0;w=c[m+8>>2]|0;x=c[m>>2]|0;break}}else if((o|0)!=1){u=p;v=q;w=s;x=t;break}m=Qg(k)|0;y=m-(Sg(k)|0)|0;m=c[a>>2]|0;z=(((c[m+12>>2]|0)+1-(c[m+4>>2]|0)|0)/10|0)+y|0;y=a+296|0;m=a+304|0;if((c[m>>2]|0)<0)Og(y);A=a+336|0;B=a+332|0;C=((((c[A>>2]|0)-(c[B>>2]|0)>>2)*90|0)+ -90|0)/100|0;D=(C|0)<(z|0)?C:z;z=Qg(k)|0;C=(z-(Sg(k)|0)|0)*5|0;z=c[a>>2]|0;if((C|0)>(((c[z+12>>2]|0)+1-(c[z+4>>2]|0)|0)*3|0)){if((c[m>>2]|0)<0)Og(y);if((D|0)>(((((c[A>>2]|0)-(c[B>>2]|0)>>2)*75|0)+ -75|0)/100|0|0))E=0;else{z=(Ug(y,D)|0)*5|0;C=c[a>>2]|0;E=(z|0)<=((c[C+8>>2]|0)+1-(c[C>>2]|0)|0)}}else E=1;C=a+56|0;z=a+64|0;if((c[z>>2]|0)<0)Og(C);F=a+96|0;G=a+92|0;H=Tg(C,((((c[F>>2]|0)-(c[G>>2]|0)>>2)*90|0)+ -90|0)/100|0,-1)|0;I=(H|0)>1;if((I?fh(n)|0:0)?(J=c[a>>2]|0,(lh(k,((c[J+12>>2]|0)+1-(c[J+4>>2]|0)|0)/2|0)|0)==2):0){if((c[z>>2]|0)<0)Og(C);if((Ug(C,((((c[F>>2]|0)-(c[G>>2]|0)>>2)*75|0)+ -75|0)/100|0)|0)<=(H|0)){if(!E){K=118;i=d;return K|0}J=(Ug(y,D)|0)*3|0;L=c[a>>2]|0;if((J|0)>((c[L+8>>2]|0)+1-(c[L>>2]|0)|0)){K=118;i=d;return K|0}L=Ug(y,D)|0;if((c[m>>2]|0)<0)Og(y);if((L|0)>((Ug(y,((((c[A>>2]|0)-(c[B>>2]|0)>>2)*90|0)+ -90|0)/100|0)|0)+1|0)){K=118;i=d;return K|0}}}if(Me(c[a>>2]|0,e)|0){L=c[e>>2]|0;D=c[a>>2]|0;J=c[D+12>>2]|0;M=c[D+4>>2]|0;do if((((L|0)>-1?L:0-L|0)|0)>((J+1-M|0)/8|0|0)){N=J;O=M;P=L}else{if((xh(a,(((J-M|0)*30|0)/100|0)+M|0)|0)>2){K=118;i=d;return K|0}if(!(Zg(n)|0)){D=c[a>>2]|0;N=c[D+12>>2]|0;O=c[D+4>>2]|0;P=c[e>>2]|0;break}if((c[m>>2]|0)<0)Og(y);D=(Ug(y,((((c[A>>2]|0)-(c[B>>2]|0)>>2)*30|0)+ -30|0)/100|0)|0)*9|0;if((c[m>>2]|0)<0)Og(y);do if((D|0)>((Ug(y,((((c[A>>2]|0)-(c[B>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)*10|0)){if((c[m>>2]|0)<0)Og(y);Q=(Ug(y,((((c[A>>2]|0)-(c[B>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)*9|0;if((c[m>>2]|0)<0)Og(y);if((Q|0)>((Ug(y,((((c[A>>2]|0)-(c[B>>2]|0)>>2)*70|0)+ -70|0)/100|0)|0)*10|0))K=118;else break;i=d;return K|0}while(0);K=117;i=d;return K|0}while(0);M=(N+1-O|0)/2|0;if((P|0)>(M|0)){J=(lh(n,M)|0)==1;K=J?121:0;i=d;return K|0}}J=a+152|0;M=a+160|0;if((c[M>>2]|0)<0)Og(J);L=a+192|0;D=a+188|0;Q=Tg(J,((((c[L>>2]|0)-(c[D>>2]|0)>>2)*90|0)+ -90|0)/100|0,-1)|0;R=c[z>>2]|0;if((R|0)<0){Og(C);S=c[z>>2]|0}else S=R;R=c[F>>2]|0;T=c[G>>2]|0;if((S|0)<0){Og(C);U=c[F>>2]|0;V=c[G>>2]|0}else{U=R;V=T}W=Rg(C,(((R-T>>2)*70|0)+ -70|0)/100|0,(((U-V>>2)*90|0)+ -90|0)/100|0)|0;T=c[M>>2]|0;if((T|0)<0){Og(J);X=c[M>>2]|0}else X=T;T=c[L>>2]|0;M=c[D>>2]|0;if((X|0)<0){Og(J);Y=c[L>>2]|0;Z=c[D>>2]|0}else{Y=T;Z=M}D=Rg(J,(((T-M>>2)*70|0)+ -70|0)/100|0,(((Y-Z>>2)*90|0)+ -90|0)/100|0)|0;M=c[z>>2]|0;if((M|0)<0){Og(C);T=c[z>>2]|0;L=((T-Q<<1)+H|0)/3|0;if((T|0)<0){Og(C);_=c[z>>2]|0;$=L}else{_=T;$=L}}else{_=M;$=((M-Q<<1)+H|0)/3|0}M=(W-D+_|0)/2|0;do if((ah(n)|0)&E){D=c[a>>2]|0;W=D;L=c[D+4>>2]|0;while(1){aa=c[W+12>>2]|0;if((L|0)>=(aa|0)){ba=66;break}D=(xh(a,L)|0)==2;ca=L+1|0;ea=c[a>>2]|0;if(D){ba=68;break}else{W=ea;L=ca}}if((ba|0)==66){fa=W;ga=aa;ha=L+1|0}else if((ba|0)==68){fa=ea;ga=c[ea+12>>2]|0;ha=ca}a:do if((ha|0)<(ga|0)){D=ha;while(1){T=(xh(a,D)|0)==1;R=D+1|0;ia=c[a>>2]|0;ja=c[ia+12>>2]|0;if(T){ka=ja;la=ia;ma=D;break a}if((R|0)<(ja|0))D=R;else{ka=ja;la=ia;ma=R;break}}}else{ka=ga;la=fa;ma=ha}while(0);if((ma|0)<(ka|0)){W=((Ug(y,ma-(c[la+4>>2]|0)|0)|0)/4|0)+ma|0;D=c[a>>2]|0;na=c[D+12>>2]|0;oa=D;pa=W}else{na=ka;oa=la;pa=ma}if((pa|0)>=(na|0))break;W=Ug(y,pa-(c[oa+4>>2]|0)|0)|0;D=c[a>>2]|0;if((W|0)>=((c[D+8>>2]|0)+1-(c[D>>2]|0)|0))break;W=Ug(y,pa-(c[D+4>>2]|0)|0)|0;D=da(W,pa-L|0)|0;R=c[a>>2]|0;if((((D|0)/(1-W+(c[R+8>>2]|0)-(c[R>>2]|0)|0)|0)+pa|0)>=(c[R+12>>2]|0))break;if((c[m>>2]|0)<0)Og(y);R=(Ug(y,((((c[A>>2]|0)-(c[B>>2]|0)>>2)*70|0)+ -70|0)/100|0)|0)<<1;W=c[a>>2]|0;if((R|0)>=((c[W+8>>2]|0)+1-(c[W>>2]|0)|0))break;if(Fh(H,Q,20,1)|0){K=89;i=d;return K|0}if(($|0)<(M|0)|I&(H|0)<(Q|0)^1)break;if(Wg(J,1,2)|0)break;else K=89;i=d;return K|0}while(0);M=c[a>>2]|0;B=c[M+4>>2]|0;do if(Ge(M,((((c[M+12>>2]|0)-B|0)*60|0)/100|0)+B|0,((c[M+8>>2]|0)+(c[M>>2]|0)|0)/2|0)|0){if(gh(C)|0)break;A=c[a>>2]|0;y=c[A+8>>2]|0;m=c[A>>2]|0;if(((c[A+12>>2]|0)+1-(c[A+4>>2]|0)<<2|0)>=((y+1-m|0)*3|0)){K=117;i=d;return K|0}if((yh(a,(((y-m|0)*75|0)/100|0)+m|0)|0)<3)K=117;else break;i=d;return K|0}while(0);do if((H|0)<(Q+1|0)){if((c[z>>2]|0)<0)Og(C);if(Wg(C,((((c[F>>2]|0)-(c[G>>2]|0)>>2)*50|0)+ -50|0)/100|0,2)|0)break;M=c[a>>2]|0;if((H<<1|0)>=(Q|0)){B=c[M+4>>2]|0;m=c[M+12>>2]|0;if(((((m-B|0)*90|0)/100|0)+B|0)<(c[b+12>>2]|0))break;else{qa=m;ra=B}}else{qa=c[M+12>>2]|0;ra=c[M+4>>2]|0}if((lh(k,(qa+1-ra|0)/2|0)|0)==1){K=121;i=d;return K|0}M=jh(C)|0;B=c[a>>2]|0;if((M|0)>(((c[B+12>>2]|0)+1-(c[B+4>>2]|0)|0)/2|0|0))K=121;else break;i=d;return K|0}while(0);if(I){do if(ah(n)|0){C=c[a>>2]|0;if((lh(k,((c[C+12>>2]|0)+1-(c[C+4>>2]|0)|0)/3|0)|0)==2)K=118;else break;i=d;return K|0}while(0);if((H|0)<2)ba=100}else ba=100;do if((ba|0)==100){I=c[a>>2]|0;C=(c[I+8>>2]|0)+1-(c[I>>2]|0)|0;if((C-(Q+H)<<1|0)>=(C|0))break;if(!(Wg(J,1,2)|0))break;C=c[a>>2]|0;if((lh(k,((c[C+12>>2]|0)+1-(c[C+4>>2]|0)|0)/2|0)|0)==2)K=118;else break;i=d;return K|0}while(0);K=0;i=d;return K|0}else{u=p;v=q;w=s;x=t}while(0);t=u+1-v|0;if((((t|0)>8?(t<<1|0)>=(w+1-x|0):0)?(lh(n,-1)|0)==2:0)?hh(n,50)|0:0){x=c[a>>2]|0;w=((c[x+12>>2]|0)+1-(c[x+4>>2]|0)|0)/4|0;if((c[a+208>>2]|0)<0)Og(n);x=l+(Ug(n,((((c[a+240>>2]|0)-(c[a+236>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)|0;if((lh(n,(w|0)<(x|0)?x:w)|0)==3){K=77;i=d;return K|0}w=a+56|0;if((c[a+64>>2]|0)<0)Og(w);x=Ug(w,((((c[a+96>>2]|0)-(c[a+92>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0;l=a+152|0;t=a+160|0;if((c[t>>2]|0)<0)Og(l);v=a+192|0;u=a+188|0;s=Ug(l,((((c[v>>2]|0)-(c[u>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0;if((Fh(x,s,80,2)|0?(q=c[a>>2]|0,p=(c[q+8>>2]|0)+1-(c[q>>2]|0)|0,(x<<2|0)<(p|0)):0)?(s<<2|0)<(p|0):0){do if((x|0)>1&(s|0)>1){if(!(Wg(w,1,2)|0))break;if(!(Wg(l,1,2)|0))break;if((c[a+112>>2]|0)<0)Og(k);p=(Ug(k,((((c[a+144>>2]|0)-(c[a+140>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)*5|0;q=c[a>>2]|0;if((p|0)>((c[q+12>>2]|0)+1-(c[q+4>>2]|0)|0))K=119;else break;i=d;return K|0}while(0);do if((vh(a)|0)==1){q=a+8|0;p=c[q>>2]|0;ra=c[p+12>>2]|0;qa=c[p+4>>2]|0;b=c[a>>2]|0;$=c[b+12>>2]|0;pa=c[b+4>>2]|0;if((((ra+1-qa|0)*5|0)+ -5|0)>=($+1-pa|0))break;b=$-pa|0;if((qa|0)<(((b*30|0)/100|0)+pa|0))break;if((ra|0)>(((b*60|0)/100|0)+pa|0))break;b=((c[p+8>>2]|0)+1-(c[p>>2]|0)|0)*10|0;p=a+296|0;if((b|0)<=((Ug(p,((qa+ra|0)/2|0)-pa|0)|0)*9|0))break;pa=c[q>>2]|0;zh(f,a,((c[pa+12>>2]|0)+(c[pa+4>>2]|0)|0)/2|0,((c[pa+8>>2]|0)+(c[pa>>2]|0)|0)/2|0);pa=c[f>>2]|0;ra=c[f+4>>2]|0;if((pa|0)>(ra|0))sa=0;else sa=1-pa+ra|0;ra=c[q>>2]|0;if(!(Fh(sa,(c[ra+12>>2]|0)+1-(c[ra+4>>2]|0)|0,30,2)|0))break;ra=c[q>>2]|0;q=((c[ra+8>>2]|0)+1-(c[ra>>2]|0)|0)*9|0;if((c[a+304>>2]|0)<0)Og(p);ra=(q|0)>((Ug(p,((((c[a+336>>2]|0)-(c[a+332>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)*10|0);K=ra?0:72;i=d;return K|0}while(0);sa=c[a>>2]|0;f=c[sa+4>>2]|0;do if((xh(a,((((c[sa+12>>2]|0)-f|0)*60|0)/100|0)+f|0)|0)!=4){ra=c[a>>2]|0;p=c[ra+4>>2]|0;if((xh(a,((((c[ra+12>>2]|0)-p|0)*70|0)/100|0)+p|0)|0)==4)break;do if((wh(a)|0)>=3){if((wh(a)|0)!=3)break;p=c[a>>2]|0;ra=c[p+12>>2]|0;q=c[p+4>>2]|0;if((ra+1-q|0)>=((c[p+8>>2]|0)+1-(c[p>>2]|0)|0)){ta=ra;ua=q;ba=143}}else{q=c[a>>2]|0;ta=c[q+12>>2]|0;ua=c[q+4>>2]|0;ba=143}while(0);do if((ba|0)==143){if((lh(k,(ta+1-ua|0)/2|0)|0)>=3)break;q=c[a>>2]|0;if((lh(k,((c[q+12>>2]|0)+1-(c[q+4>>2]|0)<<1|0)/5|0)|0)>=3)break;if(ch(w)|0)break;if((c[t>>2]|0)<0)Og(l);q=Ug(l,((((c[v>>2]|0)-(c[u>>2]|0)>>2)*20|0)+ -20|0)/100|0)|0;if((c[t>>2]|0)<0)Og(l);ra=q-(Ug(l,((((c[v>>2]|0)-(c[u>>2]|0)>>2)*80|0)+ -80|0)/100|0)|0)|0;q=c[a>>2]|0;if((((ra|0)>-1?ra:0-ra|0)<<2|0)>((c[q+8>>2]|0)+1-(c[q>>2]|0)|0))break;ra=c[q+4>>2]|0;if((c[a+112>>2]|0)<0)Og(k);q=(Ug(k,((((c[a+144>>2]|0)-(c[a+140>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)+ra|0;ra=c[a>>2]|0;p=c[ra+4>>2]|0;pa=c[ra+12>>2]|0;do if((q|0)>((pa+p|0)/2|0|0)){qa=c[ra>>2]|0;wd(g,qa,p,((c[ra+8>>2]|0)+qa|0)/2|0,pa);me(h,c[a>>2]|0,g);do if(Me(h,j)|0){qa=da(c[j>>2]|0,-2)|0;if((qa|0)<=((c[h+12>>2]|0)+1-(c[h+4>>2]|0)|0))break;qa=h+16|0;b=c[qa>>2]|0;if(!b){K=117;i=d;return K|0}$=h+20|0;oa=c[$>>2]|0;if((oa|0)==(b|0))va=b;else{na=oa;while(1){oa=na+ -12|0;c[$>>2]=oa;ma=c[oa>>2]|0;if(!ma)wa=oa;else{oa=na+ -8|0;if((c[oa>>2]|0)!=(ma|0))c[oa>>2]=ma;kt(ma);wa=c[$>>2]|0}if((wa|0)==(b|0))break;else na=wa}va=c[qa>>2]|0}kt(va);K=117;i=d;return K|0}while(0);na=h+16|0;b=c[na>>2]|0;if(!b)break;$=h+20|0;ma=c[$>>2]|0;if((ma|0)==(b|0))xa=b;else{oa=ma;while(1){ma=oa+ -12|0;c[$>>2]=ma;la=c[ma>>2]|0;if(!la)ya=ma;else{ma=oa+ -8|0;if((c[ma>>2]|0)!=(la|0))c[ma>>2]=la;kt(la);ya=c[$>>2]|0}if((ya|0)==(b|0))break;else oa=ya}xa=c[na>>2]|0}kt(xa)}while(0);pa=c[a>>2]|0;ra=c[pa+4>>2]|0;if((q|0)>(((((c[pa+12>>2]|0)-ra|0)*10|0)/100|0)+ra|0)){K=78;i=d;return K|0}if((wh(a)|0)>1)K=78;else break;i=d;return K|0}while(0);K=0;i=d;return K|0}while(0);if((c[a+112>>2]|0)<0)Og(k);xa=(Ug(k,((((c[a+144>>2]|0)-(c[a+140>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)<<1;ya=c[a>>2]|0;K=(xa|0)>((c[ya+12>>2]|0)+1-(c[ya+4>>2]|0)|0)?77:119;i=d;return K|0}if((((x*3|0)<(s<<1|0)?(ya=c[a>>2]|0,xa=((c[ya+8>>2]|0)+1-(c[ya>>2]|0)|0)/4|0,(x|0)<(xa|0)&(s|0)>(xa|0)):0)?hh(l,50)|0:0)?(l=c[a>>2]|0,(lh(k,((c[l+12>>2]|0)+1-(c[l+4>>2]|0)|0)/8|0)|0)==2):0){K=75;i=d;return K|0}K=0;i=d;return K|0}if((lh(n,-1)|0)<3?(l=c[a>>2]|0,((c[l+8>>2]|0)+1-(c[l>>2]|0)<<1|0)>(((c[l+12>>2]|0)+1-(c[l+4>>2]|0)|0)*5|0)):0){K=126;i=d;return K|0}if((lh(n,-1)|0)==3){if(!(vh(a)|0)){K=77;i=d;return K|0}if((vh(a)|0)==1?(n=c[a>>2]|0,l=c[n+4>>2]|0,(c[(c[a+8>>2]|0)+4>>2]|0)>=(((((c[n+12>>2]|0)-l|0)*20|0)/100|0)+l|0)):0){K=77;i=d;return K|0}}}K=0;i=d;return K|0}function Rh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;d=i;e=a+104|0;f=c[a>>2]|0;g=lh(e,((c[f+12>>2]|0)+1-(c[f+4>>2]|0)|0)/8|0)|0;if((g|0)==2?(f=c[a>>2]|0,(lh(a+200|0,((c[f+12>>2]|0)+1-(c[f+4>>2]|0)|0)/2|0)|0)==1):0){f=a+56|0;if(hh(f,50)|0?hh(a+152|0,50)|0:0){h=120;i=d;return h|0}if(Yg(f)|0?Yg(a+152|0)|0:0){h=120;i=d;return h|0}}f=c[a>>2]|0;if(((c[f+8>>2]|0)+1-(c[f>>2]|0)|0)>=((c[f+12>>2]|0)+1-(c[f+4>>2]|0)|0)?ah(e)|0:0){if((c[(c[a>>2]|0)+12>>2]|0)<(((c[b+12>>2]|0)+(c[b+4>>2]|0)|0)/2|0|0)){h=94;i=d;return h|0}if(Xg(a+56|0,1,-1)|0?Xg(a+152|0,1,-1)|0:0){h=94;i=d;return h|0}}b=a+200|0;f=a+208|0;if((c[f>>2]|0)<0)Og(b);j=a+240|0;k=a+236|0;l=0;m=((((c[j>>2]|0)-(c[k>>2]|0)>>2)*40|0)+ -40|0)/100|0;n=0;while(1){if((c[f>>2]|0)<0)Og(b);if((m|0)>(((((c[j>>2]|0)-(c[k>>2]|0)>>2)*60|0)+ -60|0)/100|0|0))break;if((Ug(b,m)|0)>(n|0)){o=m;p=Ug(b,m)|0}else{o=l;p=n}l=o;m=m+1|0;n=p}p=c[a>>2]|0;m=c[p+12>>2]|0;o=m-n|0;n=o+1|0;k=(c[p>>2]|0)+l|0;l=c[p+4>>2]|0;if((o|0)<(l|0)?1:(o|0)>=((((m-l|0)*90|0)/100|0)+l|0)){h=0;i=d;return h|0}l=De(p,n,k,1)|0;p=(((l|0)>(k|0))<<31>>31)+l|0;l=Ce(c[a>>2]|0,n,p,1)|0;n=Ce(c[a>>2]|0,l+ -1|0,p,0)|0;p=c[a>>2]|0;k=c[p+4>>2]|0;m=c[p+12>>2]|0;if((n|0)<=((((m-k|0)*20|0)/100|0)+k|0)){p=a+112|0;if((c[p>>2]|0)<0)Og(e);o=a+144|0;j=a+140|0;f=(Ug(e,((((c[o>>2]|0)-(c[j>>2]|0)>>2)*60|0)+ -60|0)/100|0)|0)*3|0;q=c[a>>2]|0;r=c[q+12>>2]|0;s=c[q+4>>2]|0;t=r+1-s|0;if((f|0)>(t|0)){u=r;v=s}else{if(((Fh(t,(c[q+8>>2]|0)+1-(c[q>>2]|0)|0,40,1)|0?(q=c[a>>2]|0,t=c[q+4>>2]|0,s=c[q+12>>2]|0,q=(s+t|0)/2|0,(l|0)>(q|0)&(n|0)<(q|0)):0)?(lh(e,(1-t+s|0)/5|0)|0)==2:0)?(lh(b,n+1|0)|0)==3:0){h=119;i=d;return h|0}b=c[a>>2]|0;s=c[b+4>>2]|0;t=c[b+12>>2]|0;if(((n|0)<=((((t-s|0)*20|0)/100|0)+s|0)?(lh(e,(1-s+t|0)/4|0)|0)==1:0)?(t=c[a>>2]|0,Fh((c[t+12>>2]|0)+1-(c[t+4>>2]|0)|0,(c[t+8>>2]|0)+1-(c[t>>2]|0)|0,40,1)|0):0){t=a+152|0;if((c[a+160>>2]|0)<0)Og(t);s=((Ug(t,((((c[a+192>>2]|0)-(c[a+188>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)<<3)+ -8|0;t=c[a>>2]|0;if((s|0)<=((c[t+8>>2]|0)+1-(c[t>>2]|0)|0)){h=110;i=d;return h|0}if((c[p>>2]|0)<0)Og(e);p=Ug(e,((((c[o>>2]|0)-(c[j>>2]|0)>>2)*99|0)+ -99|0)/100|0)|0;j=c[a>>2]|0;if((p|0)>(((c[j+12>>2]|0)+1-(c[j+4>>2]|0)|0)/2|0|0)){h=110;i=d;return h|0}}h=0;i=d;return h|0}}else{u=m;v=k}k=lh(e,(u+1-v|0)/5|0)|0;if((k|0)==3){v=c[a>>2]|0;if((xh(a,((c[v+12>>2]|0)+(c[v+4>>2]|0)|0)/2|0)|0)==2){v=c[a>>2]|0;u=c[v+4>>2]|0;if((xh(a,((((c[v+12>>2]|0)-u|0)*80|0)/100|0)+u|0)|0)==3){h=0;i=d;return h|0}else w=29}else w=30}else w=29;if((w|0)==29?(k&-2|0)==2:0)w=30;if((w|0)==30?(lh(e,-1)|0)>1:0){w=a+152|0;if((c[a+160>>2]|0)<0)Og(w);u=Ug(w,((((c[a+192>>2]|0)-(c[a+188>>2]|0)>>2)*25|0)+ -25|0)/100|0)|0;v=c[a>>2]|0;if((u|0)<=(((c[v+8>>2]|0)+1-(c[v>>2]|0)|0)/4|0|0)){if(!(ch(a+56|0)|0)){h=119;i=d;return h|0}if((lh(w,-1)|0)==1){h=119;i=d;return h|0}}}if(!((k|0)==1&(g|0)==1)){h=0;i=d;return h|0}g=a+112|0;k=c[g>>2]|0;if((k|0)<0){Og(e);x=c[g>>2]|0}else x=k;k=a+144|0;g=c[k>>2]|0;w=a+140|0;v=c[w>>2]|0;if((x|0)<0){Og(e);y=c[k>>2]|0;z=c[w>>2]|0}else{y=g;z=v}w=(Rg(e,(((g-v>>2)*40|0)+ -40|0)/100|0,(((y-z>>2)*60|0)+ -60|0)/100|0)|0)<<2;z=c[a>>2]|0;if((w|0)>=(((c[z+12>>2]|0)+1-(c[z+4>>2]|0)|0)*3|0)){h=0;i=d;return h|0}z=hh(a+152|0,66)|0;h=z?107:104;i=d;return h|0}function Sh(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;d=i;e=c[b>>2]|0;f=c[e>>2]|0;g=((c[e+8>>2]|0)+f|0)/2|0;h=g+1|0;j=c[e+12>>2]|0;k=c[e+4>>2]|0;l=g+ -1|0;g=0;m=0;n=0;while(1){if((k|0)<=(j|0)){o=c[e+16>>2]|0;p=0;q=0;r=k;s=g;t=m;u=n;while(1){v=(a[(c[o+((r-k|0)*12|0)>>2]|0)+(l-f)>>0]|0)!=0;do if(v?!q:0){w=p+1|0;if((p|0)==3){x=4;y=s;z=t;A=r+ -1|0;break}else if((p|0)==2){x=3;y=s;z=r+ -1|0;A=u;break}else if((p|0)==1){x=2;y=r+ -1|0;z=t;A=u;break}else{x=w;y=s;z=t;A=u;break}}else{x=p;y=s;z=t;A=u}while(0);if((r|0)>=(j|0))break;p=x;q=v;r=r+1|0;s=y;t=z;u=A}if(((x|0)==4?(u=j-k|0,(y|0)<(((u*50|0)/100|0)+k|0)):0)?(A|0)>=(((u*70|0)/100|0)+k|0):0){B=17;break}else{C=y;D=z;E=A}}else{C=g;D=m;E=n}if((l|0)>=(h|0))break;l=l+1|0;g=C;m=D;n=E}if((((B|0)==17?He(e,y,l)|0:0)?Fe(c[b>>2]|0,z,l)|0:0)?Fe(c[b>>2]|0,A,l)|0:0){F=351;i=d;return F|0}F=0;i=d;return F|0}function Th(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;e=c[b>>2]|0;if((c[e+32>>2]|0)!=(c[e+28>>2]|0)){f=0;i=d;return f|0}b=c[e+12>>2]|0;g=c[e+4>>2]|0;h=b+1-g|0;j=c[e+8>>2]|0;k=c[e>>2]|0;l=j+1-k|0;if((h|0)<=(l|0)|(h|0)>(l*3|0)){f=0;i=d;return f|0}if((l|0)>2&(h|0)>2){h=l+g|0;if((l|0)>0){m=g;n=0;while(1){a:do if((k|0)>(j|0))o=n;else{p=c[e+16>>2]|0;q=k;r=n;while(1){s=((a[(c[p+((m-g|0)*12|0)>>2]|0)+(q-k)>>0]|0)!=0&1)+r|0;if((q|0)>=(j|0)){o=s;break a}q=q+1|0;r=s}}while(0);m=m+1|0;if((m|0)>=(h|0)){t=o;break}else n=o}}else t=0;o=l+ -2|0;if((t|0)<(da(o,o)|0)|(k|0)>(j|0)){f=0;i=d;return f|0}o=c[e+16>>2]|0;e=c[o+12>>2]|0;t=k;l=0;n=0;while(1){h=t-k|0;l=((a[e+h>>0]|0)!=0&1)+l|0;n=((a[(c[o+((b+~g|0)*12|0)>>2]|0)+h>>0]|0)!=0&1)+n|0;if((t|0)>=(j|0))break;else t=t+1|0}if((l|0)<=(n|0)){f=0;i=d;return f|0}}f=1;i=d;return f|0}function Uh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;d=i;e=Vh(a,b)|0;if(e){f=e;i=d;return f|0}e=c[a>>2]|0;g=c[e+4>>2]|0;h=b+4|0;j=b+12|0;b=((c[j>>2]|0)+(c[h>>2]|0)|0)/2|0;if((g|0)>=(b|0)?Th(a)|0:0){f=44;i=d;return f|0}k=c[e+12>>2]|0;do if((k|0)<=(b|0)?(k+1-g|0)>((c[e+8>>2]|0)+1-(c[e>>2]|0)|0):0){l=a+200|0;if((lh(l,-1)|0)!=1){m=c[a>>2]|0;n=c[m+12>>2]|0;o=c[m+4>>2]|0;break}m=a+104|0;p=kh(m,0,-1)|0;if((c[a+112>>2]|0)<0)Og(m);if((p|0)<(((((c[a+144>>2]|0)-(c[a+140>>2]|0)>>2)*50|0)+ -50|0)/100|0|0)){p=kh(l,0,-1)|0;if((c[a+208>>2]|0)<0)Og(l);if((p|0)>(((((c[a+240>>2]|0)-(c[a+236>>2]|0)>>2)*50|0)+ -50|0)/100|0|0)){f=96;i=d;return f|0}}f=39;i=d;return f|0}else{n=k;o=g}while(0);if(((n+1-o<<1|0)>((Qg(a+296|0)|0)*3|0)?(c[(c[a>>2]|0)+4>>2]|0)>=(((c[j>>2]|0)+(c[h>>2]|0)|0)/2|0|0):0)?(lh(a+200|0,-1)|0)==1:0){f=44;i=d;return f|0}f=0;i=d;return f|0}function Vh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;e=i;f=c[b>>2]|0;if((c[f+32>>2]|0)!=(c[f+28>>2]|0)){g=0;i=e;return g|0}h=c[f+12>>2]|0;j=c[f+4>>2]|0;k=h+1-j|0;do if((k|0)>4?(l=c[f+8>>2]|0,m=c[f>>2]|0,n=l+1-m|0,(n|0)>4):0){do if((k<<1|0)>(n|0)){if((lh(b+104|0,-1)|0)!=1){g=0;i=e;return g|0}if((lh(b+200|0,-1)|0)==1){o=c[b>>2]|0;p=o;q=c[o+12>>2]|0;r=c[o+4>>2]|0;s=c[o+8>>2]|0;t=c[o>>2]|0;break}else{g=0;i=e;return g|0}}else{p=f;q=h;r=j;s=l;t=m}while(0);if((q+1-r|0)<(s+1-t<<1|0)){if((lh(b+56|0,-1)|0)!=1){g=0;i=e;return g|0}if((lh(b+152|0,-1)|0)==1){u=c[b>>2]|0;break}else{g=0;i=e;return g|0}}else u=p}else u=f;while(0);f=c[u+8>>2]|0;p=c[u>>2]|0;t=f+1-p|0;if((t|0)>2?(s=c[u+12>>2]|0,r=c[u+4>>2]|0,q=s+1-r|0,(q|0)>2):0){j=((q|0)/100|0)+1|0;h=da(q+ -2|0,t+ -2|0)|0;q=j+r|0;k=s-j|0;if((q|0)>(k|0)){v=0;w=0}else{j=0;m=0;l=q;while(1){q=p+1|0;if((q|0)<(f|0)){n=c[u+16>>2]|0;o=q;q=0;x=j;do{y=(a[(c[n+((l-r|0)*12|0)>>2]|0)+(o-p)>>0]|0)!=0&1;x=y+x|0;q=(y^1)+q|0;o=o+1|0}while((o|0)<(f|0));z=q*5|0;A=x}else{z=0;A=j}if((z|0)<(t|0))B=m;else B=((z|0)/(t|0)|0)+m|0;if((l|0)<(k|0)){j=A;m=B;l=l+1|0}else{v=A;w=B;break}}}if((v*100|0)<(h*70|0)){g=0;i=e;return g|0}else{C=s;D=r;E=v;F=h;G=w}}else{w=ye(u)|0;u=c[b>>2]|0;C=c[u+12>>2]|0;D=c[u+4>>2]|0;E=w;F=0;G=0}if(Fh(C+1-D|0,Qg(b+296|0)|0,20,2)|0){D=c[b>>2]|0;C=c[D+12>>2]|0;w=c[D+4>>2]|0;u=C+1-w|0;h=c[D+8>>2]|0;v=c[D>>2]|0;r=h+1-v|0;s=(r|0)<(u|0)?r:u;if((s|0)>5){B=c[D+16>>2]|0;A=v+ -2-h|0;l=w+ -2-C|0;C=~((A|0)>(l|0)?A:l);l=0;A=0;do{w=c[B+(A*12|0)>>2]|0;l=((a[w+A>>0]|0)!=0&1)+l+(((a[w+(h-(v+A))>>0]|0)!=0)<<31>>31)|0;A=A+1|0}while((A|0)!=(C|0));if((((l|0)>-1?l:0-l|0)<<1|0)>=(s+ -1|0)){g=0;i=e;return g|0}}if((G|0)==0?(E*100|0)>=(F*75|0):0){g=46;i=e;return g|0}if((r|0)>6&(u|0)>6){u=(ze(D)|0)*100|0;if((u|0)>=((Ae(c[b>>2]|0)|0)*95|0)){g=46;i=e;return g|0}u=(ze(c[b>>2]|0)|0)*100|0;if((u|0)>=((ye(c[b>>2]|0)|0)*95|0)){g=46;i=e;return g|0}}g=0;i=e;return g|0}if((G|0)>1){g=0;i=e;return g|0}u=E*100|0;if((u|0)<(F*85|0)){g=0;i=e;return g|0}if((G|0)!=0?(u|0)<(F*95|0):0){g=0;i=e;return g|0}F=c[b>>2]|0;b=(c[F+8>>2]|0)+1-(c[F>>2]|0)|0;u=c[F+12>>2]|0;G=c[F+4>>2]|0;F=u+1-G|0;if((b|0)<=(F|0)){if((F|0)<=(b|0)){g=0;i=e;return g|0}E=((c[d+12>>2]|0)+(c[d+4>>2]|0)|0)/2|0;if((G|0)>(E|0)){g=44;i=e;return g|0}g=(u|0)>(E|0)?124:39;i=e;return g|0}E=c[d+4>>2]|0;D=c[d+12>>2]|0;if((G|0)>((((D-E|0)*90|0)/100|0)+E|0)){g=95;i=e;return g|0}if((D-u|0)<(G-((D+E|0)/2|0)|0)?(b|0)>=(F*5|0):0){g=95;i=e;return g|0}g=45;i=e;return g|0}function Wh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;i=i+16|0;e=d+4|0;f=d;g=c[a>>2]|0;h=c[g+12>>2]|0;j=c[g+4>>2]|0;g=((h+1-j|0)/30|0)+1|0;k=g+j|0;j=h-g|0;if((wh(a)|0)==1?(g=c[a+20>>2]|0,h=c[g>>2]|0,((c[g+8>>2]|0)+1-h|0)>1):0){g=c[a>>2]|0;l=c[g>>2]|0;m=(h|0)<=(l+1+((((c[g+8>>2]|0)-l|0)*10|0)/100|0)|0)}else m=0;l=a+104|0;do if(((lh(l,-1)|0)==1?(lh(a+200|0,-1)|0)==1:0)?(g=a+152|0,gh(g)|0):0){if(m?(h=c[a>>2]|0,((c[h+12>>2]|0)+1-(c[h+4>>2]|0)|0)>((c[h+8>>2]|0)+1-(c[h>>2]|0)<<1|0)):0){if((c[a+160>>2]|0)<0)Og(g);h=(Ug(g,((((c[a+192>>2]|0)-(c[a+188>>2]|0)>>2)*50|0)+ -50|0)/100|0)|0)<<1;g=c[a>>2]|0;n=c[g+8>>2]|0;o=c[g>>2]|0;if(((h|0)>(n+1-o|0)?(h=Ce(g,((c[g+12>>2]|0)+(c[g+4>>2]|0)|0)/2|0,(o+n|0)/2|0,1)|0,n=c[a>>2]|0,o=De(n,h,((c[n+8>>2]|0)+(c[n>>2]|0)|0)/2|0,1)|0,n=c[a>>2]|0,h=c[n+8>>2]|0,(o|0)<(h|0)):0)?(o=Ee(n,((c[n+12>>2]|0)+(c[n+4>>2]|0)|0)/2|0,((c[n>>2]|0)+h|0)/2|0,1)|0,h=c[a>>2]|0,n=De(h,o,((c[h+8>>2]|0)+(c[h>>2]|0)|0)/2|0,1)|0,(n|0)<(c[(c[a>>2]|0)+8>>2]|0)):0){p=67;i=d;return p|0}}if(((((vh(a)|0)==2?(n=c[a+8>>2]|0,h=c[n+4>>2]|0,(h|0)<=(k|0)):0)?(o=c[a>>2]|0,g=(c[o+12>>2]|0)+1-(c[o+4>>2]|0)|0,(1-h+(c[n+12>>2]|0)<<2|0)<=(g|0)):0)?(h=c[n+28>>2]|0,(h|0)>=(j|0)):0)?(h+1-(c[n+20>>2]|0)<<2|0)<=(g|0):0)if(m){p=(g|0)>((c[o+8>>2]|0)+1-(c[o>>2]|0)<<1|0)?91:99;i=d;return p|0}else{if(ah(a+56|0)|0)p=99;else break;i=d;return p|0}}while(0);if((lh(l,-1)|0)!=1){p=0;i=d;return p|0}m=a+56|0;if(((((lh(m,-1)|0)==1?(j=a+152|0,(lh(j,-1)|0)==1):0)?(k=c[a>>2]|0,((c[k+12>>2]|0)+1-(c[k+4>>2]|0)<<1|0)>=((c[k+8>>2]|0)+1-(c[k>>2]|0)|0)):0)?mh(m,e)|0:0)?mh(j,f)|0:0){if(((c[e>>2]|0)<0?(c[f>>2]|0)<0:0)?(lh(a+200|0,-1)|0)==2:0){p=94;i=d;return p|0}if((lh(a+200|0,-1)|0)!=1){p=0;i=d;return p|0}j=c[e>>2]|0;if((j|0)<0){if((c[f>>2]|0)<=0){p=0;i=d;return p|0}k=b+4|0;o=b+12|0;g=Ld(c[a>>2]|0,((c[o>>2]|0)+(c[k>>2]|0)|0)/2|0)|0;n=c[a>>2]|0;if(!g){p=(c[n+4>>2]|0)<(((c[o>>2]|0)+(c[k>>2]|0)|0)/2|0|0)?39:44;i=d;return p|0}k=(ye(n)|0)*10|0;n=c[a>>2]|0;o=(c[n+12>>2]|0)+1-(c[n+4>>2]|0)|0;g=(c[n+8>>2]|0)+1-(c[n>>2]|0)|0;if((k|0)<(da(o*3|0,g)|0)){p=47;i=d;return p|0}p=(o|0)>(g<<1|0)?108:0;i=d;return p|0}if((j|0)<=0){p=0;i=d;return p|0}if((c[f>>2]|0)>=0){p=0;i=d;return p|0}j=c[a>>2]|0;g=c[j+12>>2]|0;o=c[b+4>>2]|0;k=c[b+12>>2]|0;if((g|0)<=((k+o|0)/2|0|0)){p=96;i=d;return p|0}n=(c[j+8>>2]|0)+1-(c[j>>2]|0)|0;h=g+1-(c[j+4>>2]|0)|0;if((n*3|0)<=(h|0)){q=n<<1;r=(q|0)<(h|0);s=r?0:92;i=d;return s|0}if((h|0)>(1-o+k|0)){p=92;i=d;return p|0}else{q=n<<1;r=(q|0)<(h|0);s=r?0:92;i=d;return s|0}}s=a+200|0;do if((((lh(s,-1)|0)==1?(r=c[a>>2]|0,((c[r+8>>2]|0)+1-(c[r>>2]|0)<<1|0)>=((c[r+12>>2]|0)+1-(c[r+4>>2]|0)|0)):0)?mh(l,e)|0:0)?mh(s,f)|0:0){if((lh(m,-1)|0)==1?(lh(a+152|0,-1)|0)==1:0){r=c[e>>2]|0;if((r|0)>=0){if((r|0)<=0)break;if((c[f>>2]|0)>=0)break;p=(c[(c[a>>2]|0)+12>>2]|0)>(((c[b+12>>2]|0)+(c[b+4>>2]|0)|0)/2|0|0)?92:96;i=d;return p|0}if((c[f>>2]|0)<=0)break;r=b+4|0;h=b+12|0;if(Ld(c[a>>2]|0,((c[h>>2]|0)+(c[r>>2]|0)|0)/2|0)|0){p=47;i=d;return p|0}p=(c[(c[a>>2]|0)+4>>2]|0)<(((c[h>>2]|0)+(c[r>>2]|0)|0)/2|0|0)?39:44;i=d;return p|0}r=c[a>>2]|0;if(((c[r+8>>2]|0)+1-(c[r>>2]|0)<<1|0)>=((c[r+12>>2]|0)+1-(c[r+4>>2]|0)|0)){r=c[e>>2]|0;if((r|0)<0){if(((c[f>>2]|0)<0?(lh(m,-1)|0)==1:0)?(lh(a+152|0,-1)|0)==2:0){p=60;i=d;return p|0}t=c[e>>2]|0}else t=r;if((((t|0)>0?(c[f>>2]|0)>0:0)?(lh(m,-1)|0)==2:0)?(lh(a+152|0,-1)|0)==1:0){p=62;i=d;return p|0}}}while(0);p=0;i=d;return p|0}function Xh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;e=i;i=i+160|0;f=e+104|0;g=e+56|0;h=e+8|0;j=e;k=We(c[b>>2]|0,0)|0;l=b+200|0;m=c[b>>2]|0;if(((lh(l,(((c[m+12>>2]|0)+1-(c[m+4>>2]|0)|0)/10|0)+1|0)|0)==2?hh(l,50)|0:0)?(m=b+104|0,(lh(m,-1)|0)==1):0){if(fh(m)|0){n=65;i=e;return n|0}m=b+152|0;if(Xg(m,1,-1)|0){n=65;i=e;return n|0}if((c[b+160>>2]|0)<0)Og(m);if(Xg(m,1,((((c[b+192>>2]|0)-(c[b+188>>2]|0)>>2)*20|0)+ -20|0)/100|0)|0){o=b+56|0;if((c[b+64>>2]|0)<0)Og(o);if(Xg(o,1,((((c[b+96>>2]|0)-(c[b+92>>2]|0)>>2)*20|0)+ -20|0)/100|0)|0){n=65;i=e;return n|0}}if(((vh(b)|0)==2?(o=c[b+8>>2]|0,p=c[b>>2]|0,((c[o+24>>2]|0)+1-(c[o+16>>2]|0)|0)>=((c[p+8>>2]|0)+1-(c[p>>2]|0)|0)):0)?(q=c[p+4>>2]|0,p=(c[o+20>>2]|0)-q|0,r=(c[o+28>>2]|0)-q|0,q=Vg(m,p,r)|0,(q|0)<=(Vg(b+56|0,p,r)|0)):0){n=65;i=e;return n|0}n=82;i=e;return n|0}r=k+8|0;p=((c[r>>2]|0)+(c[k>>2]|0)|0)/2|0;q=k+12|0;m=(Ee(c[b>>2]|0,c[q>>2]|0,p,0)|0)+1|0;o=c[b>>2]|0;s=c[o+4>>2]|0;t=c[o+12>>2]|0;if((m|0)<((((t-s|0)*90|0)/100|0)+s|0)){u=t;v=o;w=p;x=m}else{m=c[k>>2]|0;p=(Ee(o,c[q>>2]|0,m,0)|0)+1|0;o=c[b>>2]|0;u=c[o+12>>2]|0;v=o;w=m;x=p}if((x|0)>=(u|0)){n=0;i=e;return n|0}if(He(v,x,w)|0){v=b+56|0;if(ah(v)|0?(u=Ee(c[b>>2]|0,x,c[r>>2]|0,1)|0,(u|0)<(c[(c[b>>2]|0)+12>>2]|0)):0){n=101;i=e;return n|0}if(Zg(v)|0?(v=Ee(c[b>>2]|0,x,((c[r>>2]|0)+(c[k>>2]|0)|0)/2|0,1)|0,(v|0)<(c[(c[b>>2]|0)+12>>2]|0)):0){n=101;i=e;return n|0}if(ah(l)|0){v=Ee(c[b>>2]|0,x,c[r>>2]|0,1)|0;u=c[b>>2]|0;p=c[u+4>>2]|0;m=c[u+12>>2]|0;if((v|0)<((((m-p|0)*75|0)/100|0)+p|0)){n=103;i=e;return n|0}if((v|0)<(m|0)){n=101;i=e;return n|0}}n=112;i=e;return n|0}if(Fe(c[b>>2]|0,x,w)|0){Ng(f,k,0);Ng(g,k,1);Ng(h,k,5);if((((wh(b)|0)==1?(m=c[b+20>>2]|0,v=c[b>>2]|0,(((c[m+8>>2]|0)+(c[m>>2]|0)|0)/2|0|0)>(((c[v+8>>2]|0)+(c[v>>2]|0)|0)/2|0|0)):0)?Xg(f,1,-1)|0:0)?Xg(g,1,-1)|0:0){v=h+8|0;if((c[v>>2]|0)<0)Og(h);m=h+40|0;p=h+36|0;u=Ug(h,((((c[m>>2]|0)-(c[p>>2]|0)>>2)*30|0)+ -30|0)/100|0)|0;if((c[v>>2]|0)<0)Og(h);if((u|0)<(Ug(h,((((c[m>>2]|0)-(c[p>>2]|0)>>2)*70|0)+ -70|0)/100|0)|0)){y=52;z=1}else A=38}else A=38;do if((A|0)==38){p=b+152|0;if(ah(p)|0?(lh(p,-1)|0)==1:0){m=kh(p,0,-1)|0;if((c[b+160>>2]|0)<0)Og(p);if(((m|0)<(((((c[b+192>>2]|0)-(c[b+188>>2]|0)>>2)*70|0)+ -70|0)/100|0|0)?ah(b+104|0)|0:0)?(m=c[d+12>>2]|0,u=c[b>>2]|0,v=Zg(p)|0,o=c[u+4>>2]|0,(m|0)>(((da((c[u+12>>2]|0)-o|0,v?80:90)|0)/100|0)+o|0)):0){y=57;z=1;break}}o=Me(c[b>>2]|0,j)|0;if(o&(c[j>>2]|0)>0){o=c[q>>2]|0;v=c[b>>2]|0;u=c[v+4>>2]|0;if((o|0)<(((c[v+12>>2]|0)+u|0)/2|0|0)?(m=c[r>>2]|0,t=m+2|0,(t|0)<=(c[v+8>>2]|0)):0){s=c[v>>2]|0;B=c[(c[v+16>>2]|0)+((o+1-u|0)*12|0)>>2]|0;if(!(a[B+(m+1-s)>>0]|0)){y=115;z=1;break}if(!(a[B+(t-s)>>0]|0)){y=115;z=1;break}if(hh(p,50)|0){y=115;z=1;break}}y=103;z=1;break}s=c[b>>2]|0;t=c[s+4>>2]|0;if((x|0)>(((((c[s+12>>2]|0)-t|0)*85|0)/100|0)+t|0)){if(ah(b+104|0)|0){y=81;z=1;break}C=c[b>>2]|0}else C=s;s=Ee(C,x,w,1)|0;t=c[b>>2]|0;if((s|0)<(c[t+12>>2]|0)?Wg(p,(((s<<1)+x|0)/3|0)-(c[t+4>>2]|0)|0,2)|0:0){y=103;z=1;break}if((lh(l,-1)|0)==1){t=c[q>>2]|0;if((t+1-(c[k+4>>2]|0)|0)<((c[d+12>>2]|0)+1-(c[d+4>>2]|0)|0)){s=c[b>>2]|0;if((c[r>>2]|0)<(((c[s+8>>2]|0)+(c[s>>2]|0)|0)/2|0|0)?(t|0)<(((c[s+12>>2]|0)+(c[s+4>>2]|0)|0)/2|0|0):0){y=50;z=1;break}y=113;z=1}else{y=81;z=1}}else{y=0;z=0}}while(0);r=c[h+36>>2]|0;if(r){b=h+40|0;h=c[b>>2]|0;if((h|0)!=(r|0))c[b>>2]=h+(~((h+ -4+(0-r)|0)>>>2)<<2);kt(r)}r=c[g+36>>2]|0;if(r){h=g+40|0;g=c[h>>2]|0;if((g|0)!=(r|0))c[h>>2]=g+(~((g+ -4+(0-r)|0)>>>2)<<2);kt(r)}r=c[f+36>>2]|0;if(r){g=f+40|0;f=c[g>>2]|0;if((f|0)!=(r|0))c[g>>2]=f+(~((f+ -4+(0-r)|0)>>>2)<<2);kt(r)}if((z|0)==1){n=y;i=e;return n|0}}n=0;i=e;return n|0}function Yh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;e=i;f=We(c[a>>2]|0,0)|0;g=c[a>>2]|0;h=(c[f>>2]|0)-(c[g>>2]|0)|0;j=f+8|0;k=(c[g+8>>2]|0)-(c[j>>2]|0)|0;g=a+56|0;if((!(ah(g)|0)?$g(g)|0:0)?ah(a+152|0)|0:0){l=68;i=e;return l|0}m=a+152|0;do if(!(Zg(m)|0)){n=a+104|0;if((Fh(h,k,40,1)|0?(lh(n,-1)|0)==2:0)?(lh(a+200|0,-1)|0)==2:0){l=35;i=e;return l|0}if((lh(n,-1)|0)==1?(o=a+200|0,(lh(o,-1)|0)==1):0){p=f+12|0;q=Ee(c[a>>2]|0,c[p>>2]|0,((c[j>>2]|0)+(c[f>>2]|0)|0)/2|0,0)|0;if(!(!(Gh(b,4)|0)?!(Gh(b,2)|0):0))r=13;if((((r|0)==13?!(Zg(g)|0):0)?Zg(o)|0:0)?(o=Ee(c[a>>2]|0,q,((c[j>>2]|0)+(c[f>>2]|0)|0)/2|0,1)|0,(o|0)<(c[(c[a>>2]|0)+12>>2]|0)):0){l=233;i=e;return l|0}o=((Ee(c[a>>2]|0,q,((c[j>>2]|0)+(c[f>>2]|0)|0)/2|0,1)|0)+q|0)/2|0;if(((o|0)<((c[(c[a>>2]|0)+12>>2]|0)+ -1|0)?!($g(g)|0):0)?(q=Be(c[a>>2]|0,o,((c[j>>2]|0)+(c[f>>2]|0)|0)/2|0,1)|0,o=c[a>>2]|0,(q|0)<=(c[o>>2]|0)):0){q=a+296|0;s=Ug(q,(c[f+4>>2]|0)-(c[o+4>>2]|0)|0)|0;o=(s|0)<(Ug(q,(c[p>>2]|0)-(c[(c[a>>2]|0)+4>>2]|0)|0)|0);l=o?52:81;i=e;return l|0}}o=c[a>>2]|0;if(((c[o+8>>2]|0)+1-(c[o>>2]|0)<<1|0)>(((c[j>>2]|0)+1-(c[f>>2]|0)|0)*5|0)){o=f+4|0;p=f+12|0;q=xh(a,((c[p>>2]|0)+(c[o>>2]|0)|0)/2|0)|0;s=lh(a+200|0,-1)|0;if((q|0)==3){t=c[o>>2]|0;o=c[a>>2]|0;u=c[o+4>>2]|0;v=c[o+12>>2]|0;o=(v+u|0)/2|0;if(((((t|0)<(o|0)?(w=c[p>>2]|0,(w|0)>(o|0)):0)?((1-t+w|0)*3|0)>=(1-u+v|0):0)?(s&-2|0)==2:0)?!(ah(g)|0):0){l=109;i=e;return l|0}if(((h|0)>(k|0)?ah(g)|0:0)?(yh(a,((c[j>>2]|0)+(c[f>>2]|0)|0)/2|0)|0)==4:0){l=64;i=e;return l|0}if((q|0)!=4){x=n;break}}else if((q|0)!=4){x=n;break}if(Fh(h,k,40,1)|0?ah(g)|0:0){l=64;i=e;return l|0}else x=n}else x=n}else x=a+104|0;while(0);if(((lh(x,-1)|0)==1?gh(a+200|0)|0:0)?!(hh(m,66)|0):0){l=65;i=e;return l|0}if(!(Fh(h,k,50,1)|0)){if((((h|0)>(k|0)?ah(m)|0:0)?(lh(x,-1)|0)==1:0)?(lh(a+200|0,-1)|0)==1:0){l=68;i=e;return l|0}if(Fh(h,k,50,1)|0){if((lh(a+200|0,-1)|0)>1){l=97;i=e;return l|0}if((lh(m,-1)|0)>1){l=97;i=e;return l|0}}l=0;i=e;return l|0}k=a+200|0;if(((lh(k,-1)|0)==1?Zg(m)|0:0)?Ye(c[a>>2]|0)|0:0){l=68;i=e;return l|0}if(((lh(k,-1)|0)<=1?(lh(m,-1)|0)<=1:0)?!(Ze(c[a>>2]|0)|0):0){if((c[a+208>>2]|0)<0)Og(k);h=(Ug(k,((c[a+240>>2]|0)-(c[a+236>>2]|0)>>2)+ -1|0)|0)*3|0;k=c[a>>2]|0;if((h|0)<((c[k+12>>2]|0)+1-(c[k+4>>2]|0)|0)){if((c[a+160>>2]|0)<0)Og(m);k=(Ug(m,((((c[a+192>>2]|0)-(c[a+188>>2]|0)>>2)*55|0)+ -55|0)/100|0)|0)*5|0;m=c[a>>2]|0;if((k|0)>=((c[m+8>>2]|0)+1-(c[m>>2]|0)|0)){l=97;i=e;return l|0}}if(gh(g)|0){l=110;i=e;return l|0}m=c[a>>2]|0;k=c[m+4>>2]|0;l=(((((c[m+12>>2]|0)-k|0)*80|0)/100|0)+k|0)<(((c[d+12>>2]|0)+(c[d+4>>2]|0)|0)/2|0|0)?176:111;i=e;return l|0}d=da((c[f+12>>2]|0)+1-(c[f+4>>2]|0)<<2,(c[j>>2]|0)+1-(c[f>>2]|0)|0)|0;f=c[a>>2]|0;if((d|0)>=(da((c[f+8>>2]|0)+1-(c[f>>2]|0)|0,(c[f+12>>2]|0)+1-(c[f+4>>2]|0)|0)|0)){l=81;i=e;return l|0}if(ah(x)|0){l=81;i=e;return l|0}else{l=ah(g)|0;i=e;return(l?81:0)|0}return 0}function Zh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;d=i;i=i+16|0;e=d;f=We(c[a>>2]|0,0)|0;g=f+8|0;h=c[g>>2]|0;j=c[f>>2]|0;k=c[a>>2]|0;do if(((h+1-j|0)*3|0)<((c[k+8>>2]|0)+1-(c[k>>2]|0)|0)){if((lh(a+200|0,((c[k+12>>2]|0)+1-(c[k+4>>2]|0)|0)/4|0)|0)!=1){l=0;i=d;return l|0}m=f+4|0;if((lh(a+104|0,(((c[f+12>>2]|0)+(c[m>>2]|0)|0)/2|0)-(c[(c[a>>2]|0)+4>>2]|0)|0)|0)==1){n=m;o=c[g>>2]|0;p=c[f>>2]|0;q=c[a>>2]|0;break}else{l=0;i=d;return l|0}}else{n=f+4|0;o=h;p=j;q=k}while(0);k=(o+p|0)/2|0;p=(Ce(q,c[n>>2]|0,k,0)|0)+ -1|0;q=c[a>>2]|0;o=c[q+4>>2]|0;if((p|0)>(o|0)){r=o;s=q;t=k;u=p}else{p=c[g>>2]|0;k=(((c[q+8>>2]|0)-p|0)>(p+1-(c[f>>2]|0)|0)&1)+p|0;p=(Ce(q,c[n>>2]|0,k,0)|0)+ -1|0;q=c[a>>2]|0;r=c[q+4>>2]|0;s=q;t=k;u=p}if((u|0)<=(r|0)){l=0;i=d;return l|0}r=c[g>>2]|0;p=(r+(c[s+8>>2]|0)|0)/2|0;k=(c[f+12>>2]|0)-(c[s+12>>2]|0)+(c[n>>2]|0)|0;q=De(s,k+ -1|0,r,1)|0;r=c[a>>2]|0;if((q|0)<(c[r+8>>2]|0)){q=De(r,u,t,1)|0;s=c[a>>2]|0;v=(q|0)>=(c[s+8>>2]|0);w=s}else{v=1;w=r}r=He(w,u,t)|0;w=c[a>>2]|0;if(r){r=(((c[w+8>>2]|0)+1-(c[w>>2]|0)|0)/30|0)+1|0;s=a+56|0;q=Ug(s,k-(c[w+4>>2]|0)|0)|0;if((q|0)>(r+(Ug(s,(c[n>>2]|0)-(c[(c[a>>2]|0)+4>>2]|0)|0)|0)|0)){r=c[a>>2]|0;o=c[r+4>>2]|0;j=q+ -1|0;q=((c[r+8>>2]|0)+1-(c[r>>2]|0)|0)/4|0;r=(k|0)<=((Ug(a+104|0,(q|0)<(j|0)?q:j)|0)+o|0);do if(v&r){if(!(Gh(b,4)|0)?!(Gh(b,2)|0):0)break;o=c[(c[a>>2]|0)+8>>2]|0;j=a+152|0;if((c[a+160>>2]|0)<0)Og(j);q=o-(Ug(j,((((c[a+192>>2]|0)-(c[a+188>>2]|0)>>2)*5|0)+ -5|0)/100|0)|0)|0;if((q|0)>=(c[g>>2]|0)){l=243;i=d;return l|0}q=c[a>>2]|0;j=c[q>>2]|0;o=(Ug(s,(c[n>>2]|0)-(c[q+4>>2]|0)|0)|0)+j|0;j=c[a>>2]|0;q=c[j>>2]|0;if((o|0)<=(((((c[j+8>>2]|0)-q|0)*5|0)/100|0)+q|0)){l=243;i=d;return l|0}}while(0);if(!r)x=21}else x=21;if((((x|0)==21?ah(s)|0:0)?ah(a+200|0)|0:0)?(s=(Ce(c[a>>2]|0,c[n>>2]|0,(c[g>>2]|0)+1|0,0)|0)+ -1|0,r=Ce(c[a>>2]|0,s,(c[g>>2]|0)+1|0,1)|0,(r|0)>(c[(c[a>>2]|0)+4>>2]|0)):0){l=54;i=d;return l|0}r=(Ce(c[a>>2]|0,c[n>>2]|0,p,0)|0)+ -1|0;s=Ce(c[a>>2]|0,r,p,1)|0;p=c[a>>2]|0;r=c[p+4>>2]|0;if((s|0)<=(r|0)){l=98;i=d;return l|0}s=lh(a+104|0,(1-r+(c[p+12>>2]|0)|0)/2|0)|0;if((s|0)==2){l=107;i=d;return l|0}else if((s|0)==1)x=26;if((x|0)==26?(lh(a+200|0,-1)|0)==1:0){l=115;i=d;return l|0}l=0;i=d;return l|0}if(!(Fe(w,u,t)|0)){w=c[a>>2]|0;if(((((c[w+8>>2]|0)+1-(c[w>>2]|0)|0)>(((c[g>>2]|0)+1-(c[f>>2]|0)|0)*3|0)?(s=((c[w+12>>2]|0)+(c[w+4>>2]|0)|0)/2|0,(c[n>>2]|0)<(s|0)):0)?(xh(a,s)|0)==3:0)?!(Zg(a+56|0)|0):0){l=109;i=d;return l|0}s=Le(c[a>>2]|0,e)|0;l=s&(c[e>>2]|0)>0?115:0;i=d;return l|0}e=c[f>>2]|0;f=((((c[g>>2]|0)-e|0)*10|0)/100|0)+e|0;g=(e|0)<(f|0)?f:e;e=(Ce(c[a>>2]|0,c[n>>2]|0,g,0)|0)+ -1|0;n=Ce(c[a>>2]|0,e,g,1)|0;g=(n|0)>(c[(c[a>>2]|0)+4>>2]|0);n=Gh(b,4)|0;if(!g){if(n){if(v){l=243;i=d;return l|0}}else if((Gh(b,2)|0)&v){l=243;i=d;return l|0}l=100;i=d;return l|0}if(!(!n?!(Gh(b,2)|0):0))x=32;do if((x|0)==32){b=Ce(c[a>>2]|0,u,t,1)|0;n=c[a>>2]|0;g=c[n+4>>2]|0;e=c[n+12>>2]|0;if((u|0)>((e+g|0)/2|0|0)){n=(b|0)>((((e-g|0)*20|0)/100|0)+g|0);if(n|v)l=n?225:242;else break;i=d;return l|0}else{if(v)l=242;else break;i=d;return l|0}}while(0);l=97;i=d;return l|0}function _h(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;d=i;e=c[b>>2]|0;f=b+4|0;g=c[f>>2]|0;if((e|0)>(g|0)){i=d;return}h=c[a>>2]|0;j=a+4|0;k=c[j>>2]|0;if((h|0)>(k|0)){l=b;b=c[l+4>>2]|0;m=a;c[m>>2]=c[l>>2];c[m+4>>2]=b;i=d;return}if((e|0)<(h|0)){c[a>>2]=e;n=c[f>>2]|0}else n=g;if((n|0)<=(k|0)){i=d;return}c[j>>2]=n;i=d;return}function $h(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=c[a>>2]|0;f=c[a+4>>2]|0;if((e|0)>(f|0)){g=2147483647;i=d;return g|0}a=c[b>>2]|0;h=c[b+4>>2]|0;if((a|0)>(h|0)){g=2147483647;i=d;return g|0}if((h|0)>=(e|0)){i=d;return((a|0)>(f|0)?a-f|0:0)|0}g=e-h|0;i=d;return g|0}function ai(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0;e=i;i=i+960|0;f=e+176|0;g=e+152|0;h=e;j=e+56|0;k=e+104|0;l=e+16|0;m=e+24|0;n=e+88|0;o=e+128|0;p=e+144|0;q=e+160|0;r=e+168|0;s=e+64|0;t=e+72|0;u=e+80|0;v=e+96|0;w=e+112|0;x=e+32|0;y=e+120|0;z=e+8|0;A=e+40|0;B=e+136|0;C=e+48|0;D=e+608|0;E=e+264|0;F=e+256|0;G=e+216|0;H=Sf(a,0)|0;I=Sf(a,1)|0;J=ye(H)|0;K=ye(I)|0;uh(D,H);uh(E,I);if(Fh(J,K,10,1)|0){if((c[H+32>>2]|0)!=(c[H+28>>2]|0)){tf(E);tf(D);i=e;return}if((c[I+32>>2]|0)!=(c[I+28>>2]|0)){tf(E);tf(D);i=e;return}L=H+12|0;M=H+4|0;N=H+8|0;if((J<<1|0)<=(da((c[N>>2]|0)+1-(c[H>>2]|0)|0,(c[L>>2]|0)+1-(c[M>>2]|0)|0)|0)){tf(E);tf(D);i=e;return}O=I+12|0;P=I+4|0;Q=I+8|0;if((K<<1|0)<=(da((c[Q>>2]|0)+1-(c[I>>2]|0)|0,(c[O>>2]|0)+1-(c[P>>2]|0)|0)|0)){tf(E);tf(D);i=e;return}R=(c[a+8>>2]|0)+1-(c[a>>2]|0)|0;T=(c[a+12>>2]|0)+1-(c[a+4>>2]|0)|0;if((R|0)<=(T|0)?!(Fh(R,T,40,1)|0):0){if(!(Fh((c[N>>2]|0)+1-(c[H>>2]|0)|0,(c[L>>2]|0)+1-(c[M>>2]|0)|0,20,2)|0)){tf(E);tf(D);i=e;return}if(!(Fh((c[Q>>2]|0)+1-(c[I>>2]|0)|0,(c[O>>2]|0)+1-(c[P>>2]|0)|0,20,2)|0)){tf(E);tf(D);i=e;return}c[v>>2]=58;c[v+4>>2]=0;P=a+32|0;O=c[P>>2]|0;if((O|0)==(c[a+36>>2]|0)){uf(a+28|0,v);tf(E);tf(D);i=e;return}if(!O)U=0;else{Q=v;v=c[Q+4>>2]|0;M=O;c[M>>2]=c[Q>>2];c[M+4>>2]=v;U=c[P>>2]|0}c[P>>2]=U+8;tf(E);tf(D);i=e;return}c[z>>2]=61;c[z+4>>2]=0;U=a+32|0;P=c[U>>2]|0;if((P|0)==(c[a+36>>2]|0)){uf(a+28|0,z);tf(E);tf(D);i=e;return}if(!P)V=0;else{v=z;z=c[v+4>>2]|0;M=P;c[M>>2]=c[v>>2];c[M+4>>2]=z;V=c[U>>2]|0}c[U>>2]=V+8;tf(E);tf(D);i=e;return}if(Fh(J,K,60,1)|0){if((Vh(D,d)|0)==46){if((Vh(E,d)|0)==46){c[u>>2]=58;c[u+4>>2]=0;V=a+32|0;U=c[V>>2]|0;if((U|0)==(c[a+36>>2]|0)){uf(a+28|0,u);tf(E);tf(D);i=e;return}if(!U)W=0;else{z=u;u=c[z+4>>2]|0;M=U;c[M>>2]=c[z>>2];c[M+4>>2]=u;W=c[V>>2]|0}c[V>>2]=W+8;tf(E);tf(D);i=e;return}W=c[I+4>>2]|0;if(((c[I+12>>2]|0)+1-W|0)>((c[H+12>>2]|0)+1-(c[H+4>>2]|0)|0)?(W|0)>(((c[d+12>>2]|0)+(c[d+4>>2]|0)|0)/2|0|0):0){c[q>>2]=59;c[q+4>>2]=0;W=a+32|0;V=c[W>>2]|0;if((V|0)==(c[a+36>>2]|0)){uf(a+28|0,q);tf(E);tf(D);i=e;return}if(!V)X=0;else{u=q;q=c[u+4>>2]|0;M=V;c[M>>2]=c[u>>2];c[M+4>>2]=q;X=c[W>>2]|0}c[W>>2]=X+8;tf(E);tf(D);i=e;return}}if(!(!(Gh(b,4)|0)?!(Gh(b,2)|0):0))Y=37;if((Y|0)==37?(X=Vh(E,d)|0,(X|0)==45|(X|0)==95):0){c[p>>2]=177;c[p+4>>2]=0;X=a+32|0;W=c[X>>2]|0;if((W|0)==(c[a+36>>2]|0)){uf(a+28|0,p);tf(E);tf(D);i=e;return}if(!W)Z=0;else{q=p;p=c[q+4>>2]|0;M=W;c[M>>2]=c[q>>2];c[M+4>>2]=p;Z=c[X>>2]|0}c[X>>2]=Z+8;tf(E);tf(D);i=e;return}if(((Hd(H,I)|0?Hd(I,H)|0:0)?(c[H+32>>2]|0)!=(c[H+28>>2]|0):0)?(c[I+32>>2]|0)!=(c[I+28>>2]|0):0){c[m>>2]=103;c[m+4>>2]=0;Z=a+32|0;X=c[Z>>2]|0;if((X|0)==(c[a+36>>2]|0)){uf(a+28|0,m);tf(E);tf(D);i=e;return}if(!X)_=0;else{p=m;m=c[p+4>>2]|0;M=X;c[M>>2]=c[p>>2];c[M+4>>2]=m;_=c[Z>>2]|0}c[Z>>2]=_+8;tf(E);tf(D);i=e;return}_=((c[H+8>>2]|0)+(c[H>>2]|0)|0)/2|0;Z=c[I>>2]|0;m=c[I+8>>2]|0;if(((((_|0)<((m+Z|0)/2|0|0)?(M=I+12|0,p=I+4|0,(_|0)<(Z|0)?((c[M>>2]|0)+1-(c[p>>2]|0)|0)>(1-Z+m|0):0):0)?Hd(H,I)|0:0)?(m=c[H+12>>2]|0,Z=c[H+4>>2]|0,_=c[M>>2]|0,(m+1-Z<<2|0)>((_+1-(c[p>>2]|0)|0)*5|0)):0)?Fh(m-Z|0,_-Z|0,10,1)|0:0){Z=it(40)|0;Pe(Z,I);c[f+0>>2]=c[Z+0>>2];c[f+4>>2]=c[Z+4>>2];c[f+8>>2]=c[Z+8>>2];c[f+12>>2]=c[Z+12>>2];_=f+20|0;m=it(4)|0;c[_>>2]=m;c[f+16>>2]=m;c[f+24>>2]=m+4;if(!m)$=0;else{c[m>>2]=Z;$=m}c[_>>2]=$+4;c[f+28>>2]=0;c[f+32>>2]=0;c[f+36>>2]=0;pf(f,b,d);if(!($f(f,108)|0)?!($f(f,124)|0):0)Y=62;else if(Yf(a,102,(c[I>>2]|0)+ -1|0,105,0)|0)aa=1;else Y=62;if((Y|0)==62)aa=0;Qf(f);if(aa){tf(E);tf(D);i=e;return}}}if((((((J|0)>(K|0)?(aa=c[I>>2]|0,$=c[I+8>>2]|0,(((c[H+8>>2]|0)+(c[H>>2]|0)|0)/2|0|0)<(($+aa|0)/2|0|0)):0)?(_=(c[I+12>>2]|0)+1-(c[I+4>>2]|0)|0,((c[H+12>>2]|0)+1-(c[H+4>>2]|0)<<1|0)>(_*3|0)):0)?((c[H+32>>2]|0)-(c[H+28>>2]|0)|0)==4:0)?((c[I+32>>2]|0)-(c[I+28>>2]|0)|0)==4:0)?Fh(1-aa+$|0,_,50,1)|0:0){c[f>>2]=37;c[f+4>>2]=0;_=a+32|0;$=c[_>>2]|0;if(($|0)==(c[a+36>>2]|0)){uf(a+28|0,f);tf(E);tf(D);i=e;return}if(!$)ba=0;else{aa=f;m=c[aa+4>>2]|0;Z=$;c[Z>>2]=c[aa>>2];c[Z+4>>2]=m;ba=c[_>>2]|0}c[_>>2]=ba+8;tf(E);tf(D);i=e;return}if((J|0)>=(K|0)){ba=H+12|0;_=I+4|0;if((c[ba>>2]|0)>(c[_>>2]|0)){tf(E);tf(D);i=e;return}m=Vh(E,d)|0;Z=H+32|0;aa=H+28|0;do if((c[Z>>2]|0)==(c[aa>>2]|0)){if((m|0)==46){ca=I;ea=I+8|0}else if(m){$=I+8|0;if(Fh((c[I+12>>2]|0)+1-(c[_>>2]|0)|0,(c[$>>2]|0)+1-(c[I>>2]|0)|0,50,1)|0){ca=I;ea=$}else break}else{tf(E);tf(D);i=e;return}if(Fh((c[H+8>>2]|0)+1-(c[H>>2]|0)|0,(c[ea>>2]|0)+1-(c[ca>>2]|0)|0,50,1)|0?!(hh(D+56|0,50)|0):0){c[y>>2]=33;c[y+4>>2]=0;$=a+32|0;p=c[$>>2]|0;if((p|0)==(c[a+36>>2]|0)){uf(a+28|0,y);tf(E);tf(D);i=e;return}if(!p)fa=0;else{M=y;X=c[M+4>>2]|0;q=p;c[q>>2]=c[M>>2];c[q+4>>2]=X;fa=c[$>>2]|0}c[$>>2]=fa+8;tf(E);tf(D);i=e;return}if((lh(D+200|0,-1)|0)!=1){tf(E);tf(D);i=e;return}c[A>>2]=63;c[A+4>>2]=0;$=a+32|0;X=c[$>>2]|0;if((X|0)==(c[a+36>>2]|0)){uf(a+28|0,A);tf(E);tf(D);i=e;return}if(!X)ga=0;else{q=A;M=c[q+4>>2]|0;p=X;c[p>>2]=c[q>>2];c[p+4>>2]=M;ga=c[$>>2]|0}c[$>>2]=ga+8;tf(E);tf(D);i=e;return}while(0);if(!((m|0)==45|(m|0)==95)){tf(E);tf(D);i=e;return}if(!(Gh(b,4)|0)?!(Gh(b,2)|0):0){tf(E);tf(D);i=e;return}if(((c[Z>>2]|0)-(c[aa>>2]|0)|0)!=4){tf(E);tf(D);i=e;return}aa=We(H,0)|0;Z=c[aa+8>>2]|0;m=c[aa>>2]|0;if(((c[I+8>>2]|0)+1-(c[I>>2]|0)|0)<(Z+1-m|0)){tf(E);tf(D);i=e;return}if(((c[_>>2]|0)-(c[ba>>2]|0)|0)>=((c[aa+12>>2]|0)+1-(c[aa+4>>2]|0)|0)){tf(E);tf(D);i=e;return}if(Fh(m-(c[H>>2]|0)|0,(c[H+8>>2]|0)-Z|0,40,1)|0){c[B>>2]=186;c[B+4>>2]=0;Z=a+32|0;m=c[Z>>2]|0;if((m|0)==(c[a+36>>2]|0)){uf(a+28|0,B);tf(E);tf(D);i=e;return}if(!m)ha=0;else{aa=B;B=c[aa+4>>2]|0;ba=m;c[ba>>2]=c[aa>>2];c[ba+4>>2]=B;ha=c[Z>>2]|0}c[Z>>2]=ha+8;tf(E);tf(D);i=e;return}else{c[C>>2]=170;c[C+4>>2]=0;ha=a+32|0;Z=c[ha>>2]|0;if((Z|0)==(c[a+36>>2]|0)){uf(a+28|0,C);tf(E);tf(D);i=e;return}if(!Z)ia=0;else{B=C;C=c[B+4>>2]|0;ba=Z;c[ba>>2]=c[B>>2];c[ba+4>>2]=C;ia=c[ha>>2]|0}c[ha>>2]=ia+8;tf(E);tf(D);i=e;return}}ia=Vh(D,d)|0;if((ia|0)==39|(ia|0)==124)ja=46;else if((ia|0)!=45)if(!ia)if(((c[H+32>>2]|0)==(c[H+28>>2]|0)?(ha=(c[H+12>>2]|0)+1-(c[H+4>>2]|0)|0,(ha<<1|0)<((c[I+12>>2]|0)+1-(c[I+4>>2]|0)|0)):0)?(C=(c[H+8>>2]|0)+1-(c[H>>2]|0)|0,(C|0)<=((c[I+8>>2]|0)+1-(c[I>>2]|0)|0)):0){ba=(J*10|0)<(da(ha*7|0,C)|0);ja=ba?39:46}else ja=0;else ja=ia;else ja=((c[H+12>>2]|0)+1-(c[H+4>>2]|0)<<1|0)>((c[H+8>>2]|0)+1-(c[H>>2]|0)|0)?46:45;if((c[I+32>>2]|0)==(c[I+28>>2]|0)?(ia=(ja|0)==46,(ja|0)==39|(ja|0)==46):0){ja=E+200|0;ba=I+12|0;C=I+4|0;if(((lh(ja,((c[ba>>2]|0)+1-(c[C>>2]|0)|0)/4|0)|0)==2?(c[C>>2]|0)>(c[H+12>>2]|0):0)?(ha=I+8|0,(((c[ha>>2]|0)+(c[I>>2]|0)|0)/2|0|0)<(c[H>>2]|0)):0){B=it(40)|0;Pe(B,I);c[f+0>>2]=c[B+0>>2];c[f+4>>2]=c[B+4>>2];c[f+8>>2]=c[B+8>>2];c[f+12>>2]=c[B+12>>2];Z=f+20|0;aa=it(4)|0;c[Z>>2]=aa;c[f+16>>2]=aa;c[f+24>>2]=aa+4;if(!aa)ka=0;else{c[aa>>2]=B;ka=aa}c[Z>>2]=ka+4;c[f+28>>2]=0;c[f+32>>2]=0;c[f+36>>2]=0;pf(f,b,d);a:do if($f(f,110)|0){do if(ia){ka=c[I>>2]|0;Z=c[ha>>2]|0;if((c[H>>2]|0)>=((Z+ka|0)/2|0|0)?(c[H+8>>2]|0)<=(Z|0):0){la=Z;ma=ka;break}c[g>>2]=110;c[g+4>>2]=0;ka=a+32|0;Z=c[ka>>2]|0;if((Z|0)==(c[a+36>>2]|0)){uf(a+28|0,g);na=1;break a}if(!Z)oa=0;else{aa=g;B=c[aa+4>>2]|0;m=Z;c[m>>2]=c[aa>>2];c[m+4>>2]=B;oa=c[ka>>2]|0}c[ka>>2]=oa+8;na=1;break a}else{la=c[ha>>2]|0;ma=c[I>>2]|0}while(0);ka=De(I,((c[ba>>2]|0)+(c[C>>2]|0)|0)/2|0,(la+ma|0)/2|0,1)|0;B=((c[ha>>2]|0)+(c[I>>2]|0)|0)/2|0;b:do if((B|0)>(ka|0))pa=B;else{m=c[ba>>2]|0;aa=B;while(1){Z=Ee(I,(m+(c[C>>2]|0)|0)/2|0,aa,1)|0;m=c[ba>>2]|0;_=aa+1|0;if((Z|0)<(m|0)){pa=aa;break b}if((aa|0)>=(ka|0)){pa=_;break}else aa=_}}while(0);if((c[I>>2]|0)<(pa|0)?(pa|0)<(c[ha>>2]|0):0){do if(Gh(b,2)|0){if(!(gh(E+152|0)|0))break;Yf(a,84,pa+ -1|0,304,1)|0;na=1;break a}while(0);Yf(a,114,pa+ -1|0,ia?105:237,1)|0;na=1}else na=0}else na=0;while(0);Qf(f);if(na){tf(E);tf(D);i=e;return}}if(((ia?(lh(ja,((c[ba>>2]|0)+1-(c[C>>2]|0)|0)/4|0)|0)==1:0)?(c[H+12>>2]|0)<=(c[C>>2]|0):0)?(ia=E+152|0,na=I+8|0,(lh(ia,((c[na>>2]|0)+1-(c[I>>2]|0)|0)/2|0)|0)<3):0){if(Me(I,F)|0?(f=S(c[F>>2]|0)|0,(f|0)>=(((c[ba>>2]|0)+1-(c[C>>2]|0)|0)/2|0|0)):0){f=c[F>>2]|0;do if((f|0)>0){if((c[E+160>>2]|0)<0)Og(ia);if(!(Wg(ia,((((c[E+192>>2]|0)-(c[E+188>>2]|0)>>2)*80|0)+ -80|0)/100|0,2)|0)){qa=c[F>>2]|0;break}c[h>>2]=106;c[h+4>>2]=0;pa=a+32|0;ha=c[pa>>2]|0;if((ha|0)==(c[a+36>>2]|0)){uf(a+28|0,h);tf(E);tf(D);i=e;return}if(!ha)ra=0;else{ma=h;la=c[ma+4>>2]|0;oa=ha;c[oa>>2]=c[ma>>2];c[oa+4>>2]=la;ra=c[pa>>2]|0}c[pa>>2]=ra+8;tf(E);tf(D);i=e;return}else qa=f;while(0);if((qa|0)<0){if(!(!(Gh(b,4)|0)?!(Gh(b,2)|0):0))Y=130;do if((Y|0)==130?(qa=da(c[F>>2]|0,-4)|0,(qa|0)<=(((c[ba>>2]|0)+1-(c[C>>2]|0)|0)*3|0)):0){qa=Qg(E+296|0)|0;if((qa|0)<=((Qg(D+296|0)|0)<<1|0))break;if((lh(E+56|0,-1)|0)!=1)break;qa=(Ug(ja,0)|0)<<1;if((qa|0)>=((c[ba>>2]|0)+1-(c[C>>2]|0)|0))break;c[j>>2]=191;c[j+4>>2]=0;qa=a+32|0;f=c[qa>>2]|0;if((f|0)==(c[a+36>>2]|0)){uf(a+28|0,j);tf(E);tf(D);i=e;return}if(!f)sa=0;else{ra=j;h=c[ra+4>>2]|0;pa=f;c[pa>>2]=c[ra>>2];c[pa+4>>2]=h;sa=c[qa>>2]|0}c[qa>>2]=sa+8;tf(E);tf(D);i=e;return}while(0);c[k>>2]=105;c[k+4>>2]=0;sa=a+32|0;j=c[sa>>2]|0;if((j|0)==(c[a+36>>2]|0)){uf(a+28|0,k);tf(E);tf(D);i=e;return}if(!j)ta=0;else{ja=k;k=c[ja+4>>2]|0;F=j;c[F>>2]=c[ja>>2];c[F+4>>2]=k;ta=c[sa>>2]|0}c[sa>>2]=ta+8;tf(E);tf(D);i=e;return}}if((lh(E+104|0,-1)|0)==1){ta=c[ba>>2]|0;sa=c[C>>2]|0;k=d+12|0;F=c[k>>2]|0;if((ta+1-sa|0)>(F+1-(c[d+4>>2]|0)|0))ua=((((ta-sa|0)*80|0)/100|0)+sa|0)>(F|0);else ua=0;F=D+296|0;sa=Qg(F)|0;ta=E+296|0;if(Fh(sa,Qg(ta)|0,20,1)|0){if(!(!(Gh(b,4)|0)?!(Gh(b,2)|0):0))Y=150;do if((Y|0)==150?!(hh(E+56|0,50)|0):0){sa=Qg(ta)|0;if((sa|0)<(Qg(F)|0))break;if((c[E+304>>2]|0)<0)Og(ta);sa=Ug(ta,((((c[E+336>>2]|0)-(c[E+332>>2]|0)>>2)*10|0)+ -10|0)/100|0)|0;if((sa*3|0)>=((Qg(F)|0)<<1|0)){if((c[H>>2]|0)>(c[I>>2]|0))break;sa=c[C>>2]|0;if((((((c[ba>>2]|0)-sa|0)*80|0)/100|0)+sa|0)<=(c[k>>2]|0))break}c[l>>2]=161;c[l+4>>2]=0;sa=a+32|0;ja=c[sa>>2]|0;if((ja|0)==(c[a+36>>2]|0)){uf(a+28|0,l);tf(E);tf(D);i=e;return}if(!ja)va=0;else{j=l;qa=c[j+4>>2]|0;h=ja;c[h>>2]=c[j>>2];c[h+4>>2]=qa;va=c[sa>>2]|0}c[sa>>2]=va+8;tf(E);tf(D);i=e;return}while(0);if(ua){c[n>>2]=106;c[n+4>>2]=0;va=a+32|0;l=c[va>>2]|0;if((l|0)==(c[a+36>>2]|0)){uf(a+28|0,n);tf(E);tf(D);i=e;return}if(!l)wa=0;else{k=n;n=c[k+4>>2]|0;sa=l;c[sa>>2]=c[k>>2];c[sa+4>>2]=n;wa=c[va>>2]|0}c[va>>2]=wa+8;tf(E);tf(D);i=e;return}else{c[o>>2]=105;c[o+4>>2]=0;wa=a+32|0;va=c[wa>>2]|0;if((va|0)==(c[a+36>>2]|0)){uf(a+28|0,o);tf(E);tf(D);i=e;return}if(!va)xa=0;else{n=o;o=c[n+4>>2]|0;sa=va;c[sa>>2]=c[n>>2];c[sa+4>>2]=o;xa=c[wa>>2]|0}c[wa>>2]=xa+8;tf(E);tf(D);i=e;return}}xa=Qg(ta)|0;do if((xa*3|0)>((Qg(F)|0)<<2|0)?(ta=c[I>>2]|0,wa=Ee(I,((c[ba>>2]|0)+(c[C>>2]|0)|0)/2|0,((((c[na>>2]|0)-ta|0)*10|0)/100|0)+ta|0,1)|0,(wa|0)<(c[ba>>2]|0)):0){if((c[E+160>>2]|0)<0)Og(ia);if(!(Wg(ia,((((c[E+192>>2]|0)-(c[E+188>>2]|0)>>2)*75|0)+ -75|0)/100|0,2)|0))break;wa=c[I>>2]|0;ta=c[na>>2]|0;if((c[H>>2]|0)<((ta+wa|0)/2|0|0)?(o=Ce(I,((c[ba>>2]|0)+(c[C>>2]|0)|0)/2|0,(((ta-wa|0)*10|0)/100|0)+wa|0,1)|0,(o|0)>(c[C>>2]|0)):0)break;c[r>>2]=106;c[r+4>>2]=0;o=a+32|0;wa=c[o>>2]|0;if((wa|0)==(c[a+36>>2]|0)){uf(a+28|0,r);tf(E);tf(D);i=e;return}if(!wa)ya=0;else{ta=r;sa=c[ta+4>>2]|0;n=wa;c[n>>2]=c[ta>>2];c[n+4>>2]=sa;ya=c[o>>2]|0}c[o>>2]=ya+8;tf(E);tf(D);i=e;return}while(0);if(Gh(b,2)|0?gh(ia)|0:0){c[s>>2]=304;c[s+4>>2]=0;ia=a+32|0;ya=c[ia>>2]|0;if((ya|0)==(c[a+36>>2]|0)){uf(a+28|0,s);tf(E);tf(D);i=e;return}if(!ya)za=0;else{r=s;s=c[r+4>>2]|0;C=ya;c[C>>2]=c[r>>2];c[C+4>>2]=s;za=c[ia>>2]|0}c[ia>>2]=za+8;tf(E);tf(D);i=e;return}if(ua){c[t>>2]=106;c[t+4>>2]=0;ua=a+32|0;za=c[ua>>2]|0;if((za|0)==(c[a+36>>2]|0)){uf(a+28|0,t);tf(E);tf(D);i=e;return}if(!za)Aa=0;else{ia=t;t=c[ia+4>>2]|0;s=za;c[s>>2]=c[ia>>2];c[s+4>>2]=t;Aa=c[ua>>2]|0}c[ua>>2]=Aa+8;tf(E);tf(D);i=e;return}else{c[w>>2]=105;c[w+4>>2]=0;Aa=a+32|0;ua=c[Aa>>2]|0;if((ua|0)==(c[a+36>>2]|0)){uf(a+28|0,w);tf(E);tf(D);i=e;return}if(!ua)Ba=0;else{t=w;w=c[t+4>>2]|0;s=ua;c[s>>2]=c[t>>2];c[s+4>>2]=w;Ba=c[Aa>>2]|0}c[Aa>>2]=Ba+8;tf(E);tf(D);i=e;return}}}}Ba=H+32|0;Aa=c[Ba>>2]|0;w=H+28|0;s=c[w>>2]|0;if((Aa|0)==(s|0)){if((c[H+12>>2]|0)>=(((c[I+12>>2]|0)+(c[I+4>>2]|0)|0)/2|0|0)?(J<<1|0)>=(K|0):0)Y=206}else Y=206;if((Y|0)==206){if((Aa-s|0)!=4){tf(E);tf(D);i=e;return}s=c[H+12>>2]|0;Aa=c[I+4>>2]|0;if((s|0)>=(Aa|0)){tf(E);tf(D);i=e;return}if((Aa-s|0)>=(s+1-(c[H+4>>2]|0)|0)){tf(E);tf(D);i=e;return}}s=it(40)|0;Pe(s,I);c[G+0>>2]=c[s+0>>2];c[G+4>>2]=c[s+4>>2];c[G+8>>2]=c[s+8>>2];c[G+12>>2]=c[s+12>>2];Aa=G+20|0;K=it(4)|0;c[Aa>>2]=K;c[G+16>>2]=K;c[G+24>>2]=K+4;if(!K)Ca=0;else{c[K>>2]=s;Ca=K}c[Aa>>2]=Ca+4;Ca=G+28|0;c[Ca>>2]=0;Aa=G+32|0;c[Aa>>2]=0;c[G+36>>2]=0;pf(G,b,d);c:do if((c[Aa>>2]|0)!=(c[Ca>>2]|0)){d=c[(_f(G,0)|0)>>2]|0;do if(((c[Ba>>2]|0)-(c[w>>2]|0)|0)==4)if((d|0)==65){Da=197;break}else if((d|0)==97){Da=229;break}else{Da=0;break}else{if(((d|0)==117?(K=(c[I+8>>2]|0)+1-(c[I>>2]|0)|0,(((c[H+8>>2]|0)+1-(c[H>>2]|0)|0)*5|0)<=(K|0)):0)?(((c[H+12>>2]|0)+1-(c[H+4>>2]|0)|0)*5|0)<=(K|0):0)break c;K=H+12|0;if((c[K>>2]|0)<(((c[I+12>>2]|0)+(c[I+4>>2]|0)|0)/2|0|0)){if(((Hf(d)|0?((c[H+8>>2]|0)+1-(c[H>>2]|0)<<1|0)>(((c[K>>2]|0)+1-(c[H+4>>2]|0)|0)*3|0):0)?!(bh(D+104|0,50)|0):0)?bh(D+248|0,50)|0:0)Ea=58;else Y=224;do if((Y|0)==224){s=D+200|0;if((lh(s,-1)|0)!=2?!(gh(s)|0):0){J=(c[K>>2]|0)+1-(c[H+4>>2]|0)|0;t=(c[H+8>>2]|0)+1-(c[H>>2]|0)|0;if((((t|0)<(J|0)?t:J)|0)>4){if(!(Xg(D+152|0,1,-1)|0)?!(Wg(D+104|0,1,2)|0):0){Ea=39;break}if(!(Xg(s,1,-1)|0)?!(Wg(D+56|0,1,2)|0):0){Ea=39;break}Ea=96}else Ea=39}else Ea=94}while(0);Da=wf(d,Ea)|0}else Da=d}while(0);if((Da|0)!=(c[(_f(G,0)|0)>>2]|0)?Hh(b,1)|0:0)if((vf(Da)|0)==105)Fa=105;else{Ga=c[(_f(G,0)|0)>>2]|0;Y=237}else{Ga=Da;Y=237}if((Y|0)==237)if(!Ga)break;else Fa=Ga;c[x>>2]=Fa;c[x+4>>2]=0;d=a+32|0;K=c[d>>2]|0;if((K|0)==(c[a+36>>2]|0)){uf(a+28|0,x);break}if(!K)Ha=0;else{s=x;J=c[s+4>>2]|0;t=K;c[t>>2]=c[s>>2];c[t+4>>2]=J;Ha=c[d>>2]|0}c[d>>2]=Ha+8}while(0);Qf(G);tf(E);tf(D);i=e;return}function bi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,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;e=i;i=i+48|0;f=e;g=e+8|0;h=Sf(a,0)|0;j=Sf(a,1)|0;k=Sf(a,2)|0;l=it(40)|0;Pe(l,k);c[g+0>>2]=c[l+0>>2];c[g+4>>2]=c[l+4>>2];c[g+8>>2]=c[l+8>>2];c[g+12>>2]=c[l+12>>2];m=g+20|0;n=it(4)|0;c[m>>2]=n;c[g+16>>2]=n;c[g+24>>2]=n+4;if(!n)o=0;else{c[n>>2]=l;o=n}c[m>>2]=o+4;o=g+28|0;c[o>>2]=0;m=g+32|0;c[m>>2]=0;c[g+36>>2]=0;pf(g,b,d);a:do if((c[m>>2]|0)!=(c[o>>2]|0)){do if(!($f(g,46)|0)){if((((c[g+12>>2]|0)+1-(c[g+4>>2]|0)|0)<((c[g+8>>2]|0)+1-(c[g>>2]|0)<<1|0)?$f(g,44)|0:0)?(d=ye(k)|0,(d<<1|0)>=(da((c[k+8>>2]|0)+1-(c[k>>2]|0)|0,(c[k+12>>2]|0)+1-(c[k+4>>2]|0)|0)|0)):0)break;d=h+8|0;n=(c[d>>2]|0)+1-(c[h>>2]|0)|0;l=j+8|0;p=(c[l>>2]|0)+1-(c[j>>2]|0)|0;if(((((n|0)<(p|0)?p:n)|0)<((c[k+8>>2]|0)+1-(c[k>>2]|0)|0)?(n=h+12|0,p=h+4|0,q=j+12|0,r=j+4|0,Fh((c[n>>2]|0)+1-(c[p>>2]|0)|0,(c[q>>2]|0)+1-(c[r>>2]|0)|0,20,2)|0):0)?(s=(c[n>>2]|0)+1-(c[p>>2]|0)|0,p=(c[q>>2]|0)+1-(c[r>>2]|0)|0,(((s|0)<(p|0)?p:s)<<1|0)<((c[k+12>>2]|0)+1-(c[k+4>>2]|0)|0)):0){t=wf(c[(_f(g,0)|0)>>2]|0,58)|0;break a}if(!($f(g,111)|0)){t=0;break a}s=((c[d>>2]|0)+(c[h>>2]|0)|0)/2|0;d=((c[l>>2]|0)+(c[j>>2]|0)|0)/2|0;if(!(((s|0)<(d|0)?((c[h+32>>2]|0)-(c[h+28>>2]|0)|0)==4:0)?(c[j+32>>2]|0)==(c[j+28>>2]|0):0)){if((d|0)>=(s|0)){t=0;break a}if(((c[j+32>>2]|0)-(c[j+28>>2]|0)|0)!=4){t=0;break a}if((c[h+32>>2]|0)!=(c[h+28>>2]|0)){t=0;break a}}t=37;break a}while(0);s=c[j+4>>2]|0;if((c[h+12>>2]|0)<=(s|0)){d=c[j+12>>2]|0;l=c[k+4>>2]|0;if((d|0)>(l|0))u=l;else{t=((c[j+8>>2]|0)+1-(c[j>>2]|0)|0)<(1-s+d<<1|0)?0:247;break}}else u=c[k+4>>2]|0;if((c[h+4>>2]|0)<(u|0))t=(s|0)<(u|0)?37:0;else t=0}else t=0;while(0);if(Hh(b,1)|0)if((t|0)==247)v=37;else{w=vf(t)|0;x=29}else{w=t;x=29}if((x|0)==29)if(!w){Qf(g);i=e;return}else v=w;c[f>>2]=v;c[f+4>>2]=0;v=a+32|0;w=c[v>>2]|0;if((w|0)==(c[a+36>>2]|0)){uf(a+28|0,f);Qf(g);i=e;return}if(!w)y=0;else{a=f;f=c[a+4>>2]|0;x=w;c[x>>2]=c[a>>2];c[x+4>>2]=f;y=c[v>>2]|0}c[v>>2]=y+8;Qf(g);i=e;return}function ci(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;b=i;d=a+12|0;e=c[d>>2]|0;f=a+20|0;g=a+16|0;if((e|0)<((c[f>>2]|0)-(c[g>>2]|0)>>2|0)){h=e;j=e;k=0}else{i=b;return}while(1){e=lg(a,j)|0;do if(!($f(e,32)|0))if((((c[e+32>>2]|0)-(c[e+28>>2]|0)|0)==8?(l=c[(_f(e,0)|0)>>2]|0,Ef(l)|0):0)?(m=e+12|0,n=e+4|0,o=((c[m>>2]|0)+1-(c[n>>2]|0)|0)*5|0,(o|0)>=((kg(a)|0)<<2|0)):0){o=(c[m>>2]|0)+1-(c[n>>2]|0)<<2;p=(o|0)>((kg(a)|0)*5|0);a:do if((h|0)<((c[f>>2]|0)-(c[g>>2]|0)>>2|0)){o=p;q=h;r=0;while(1){do if((q|0)!=(j|0)?(s=lg(a,q)|0,(c[s+32>>2]|0)!=(c[s+28>>2]|0)):0){if($f(s,32)|0)if(k){t=o;u=r;break}else{v=o;w=r;break a}x=c[(_f(s,0)|0)>>2]|0;if((x|0)<=127?(Is(x)|0)!=0:0){do if(!o?(y=s+12|0,z=s+4|0,((c[m>>2]|0)+1-(c[n>>2]|0)<<2|0)<=(((c[y>>2]|0)+1-(c[z>>2]|0)|0)*5|0)):0){if((lu(x)|0)!=0&(x|0)!=66&(x|0)!=81){A=(c[m>>2]|0)+1-(c[n>>2]|0)|0;B=(c[y>>2]|0)+1-(c[z>>2]|0)|0;if((A|0)>=(B|0)){C=1;break}if(Fh(A,B,10,1)|0){C=1;break}}if((x|0)!=116){C=0;break}C=((c[m>>2]|0)+1-(c[n>>2]|0)|0)>=((c[y>>2]|0)+1-(c[z>>2]|0)|0)}else C=1;while(0);if(!r)if((Js(x)|0)!=0&(x|0)!=108&(x|0)!=106){z=s+12|0;y=s+4|0;if((((c[m>>2]|0)+1-(c[n>>2]|0)|0)*5|0)<((c[z>>2]|0)+1-(c[y>>2]|0)<<2|0)){t=C;u=1}else{if(!((Ff(x)|0)&(x|0)!=114)){t=C;u=0;break}if($f(s,81)|0){t=C;u=0;break}if((q|0)>=(j|0)?Ef(x)|0:0){t=C;u=0;break}t=C;u=Fh((c[m>>2]|0)+1-(c[n>>2]|0)|0,(c[z>>2]|0)+1-(c[y>>2]|0)|0,10,1)|0}}else{t=C;u=0}else{t=C;u=1}}else{t=o;u=r}}else{t=o;u=r}while(0);q=q+1|0;if((q|0)>=((c[f>>2]|0)-(c[g>>2]|0)>>2|0)){v=t;w=u;break}else{o=t;r=u}}}else{v=p;w=0}while(0);if(!(w|v^1)){Wf(e,0,Ks(l)|0,1);D=h;E=k}else{D=h;E=k}}else{D=h;E=k}else{p=j+2|0;if((p|0)<((c[f>>2]|0)-(c[g>>2]|0)>>2|0)?$f(lg(a,p)|0,32)|0:0){D=c[d>>2]|0;E=1;break}D=j+1|0;E=0}while(0);j=j+1|0;if((j|0)>=((c[f>>2]|0)-(c[g>>2]|0)>>2|0))break;else{h=D;k=E}}i=b;return} + + + +function qu(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;e=i;f=a+4|0;g=c[f>>2]|0;h=a+100|0;if(g>>>0<(c[h>>2]|0)>>>0){c[f>>2]=g+1;j=d[g>>0]|0}else j=su(a)|0;if((j|0)==43|(j|0)==45){g=(j|0)==45&1;k=c[f>>2]|0;if(k>>>0<(c[h>>2]|0)>>>0){c[f>>2]=k+1;l=d[k>>0]|0}else l=su(a)|0;if(!((l+ -48|0)>>>0<10|(b|0)==0)?(c[h>>2]|0)!=0:0){c[f>>2]=(c[f>>2]|0)+ -1;m=l;n=g}else{m=l;n=g}}else{m=j;n=0}if((m+ -48|0)>>>0>9){if(!(c[h>>2]|0)){o=-2147483648;p=0;H=o;i=e;return p|0}c[f>>2]=(c[f>>2]|0)+ -1;o=-2147483648;p=0;H=o;i=e;return p|0}else{q=m;r=0}while(1){s=q+ -48+r|0;m=c[f>>2]|0;if(m>>>0<(c[h>>2]|0)>>>0){c[f>>2]=m+1;t=d[m>>0]|0}else t=su(a)|0;if(!((t+ -48|0)>>>0<10&(s|0)<214748364))break;q=t;r=s*10|0}r=((s|0)<0)<<31>>31;if((t+ -48|0)>>>0<10){q=s;m=r;j=t;while(1){g=av(q|0,m|0,10,0)|0;l=H;b=Pu(j|0,((j|0)<0)<<31>>31|0,-48,-1)|0;k=Pu(b|0,H|0,g|0,l|0)|0;l=H;g=c[f>>2]|0;if(g>>>0<(c[h>>2]|0)>>>0){c[f>>2]=g+1;u=d[g>>0]|0}else u=su(a)|0;if((u+ -48|0)>>>0<10&((l|0)<21474836|(l|0)==21474836&k>>>0<2061584302)){q=k;m=l;j=u}else{v=k;w=l;x=u;break}}}else{v=s;w=r;x=t}if((x+ -48|0)>>>0<10)do{x=c[f>>2]|0;if(x>>>0<(c[h>>2]|0)>>>0){c[f>>2]=x+1;y=d[x>>0]|0}else y=su(a)|0}while((y+ -48|0)>>>0<10);if(c[h>>2]|0)c[f>>2]=(c[f>>2]|0)+ -1;f=(n|0)!=0;n=Ou(0,0,v|0,w|0)|0;o=f?H:w;p=f?n:v;H=o;i=e;return p|0}function ru(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;c[a+104>>2]=b;e=c[a+8>>2]|0;f=c[a+4>>2]|0;g=e-f|0;c[a+108>>2]=g;if((b|0)!=0&(g|0)>(b|0)){c[a+100>>2]=f+b;i=d;return}else{c[a+100>>2]=e;i=d;return}}function su(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;f=b+104|0;g=c[f>>2]|0;if(!((g|0)!=0?(c[b+108>>2]|0)>=(g|0):0))h=3;if((h|0)==3?(h=Bu(b)|0,(h|0)>=0):0){g=c[f>>2]|0;f=c[b+8>>2]|0;if((g|0)!=0?(j=c[b+4>>2]|0,k=g-(c[b+108>>2]|0)+ -1|0,(f-j|0)>(k|0)):0)c[b+100>>2]=j+k;else c[b+100>>2]=f;k=c[b+4>>2]|0;if(f){j=b+108|0;c[j>>2]=f+1-k+(c[j>>2]|0)}j=k+ -1|0;if((d[j>>0]|0|0)==(h|0)){l=h;i=e;return l|0}a[j>>0]=h;l=h;i=e;return l|0}c[b+100>>2]=0;l=-1;i=e;return l|0}function tu(a,b){a=+a;b=b|0;var d=0,e=0,f=0,g=0,j=0,l=0.0,m=0.0,n=0,o=0.0;d=i;h[k>>3]=a;e=c[k>>2]|0;f=c[k+4>>2]|0;g=Ru(e|0,f|0,52)|0;j=g&2047;if(!j){if(a!=0.0){l=+tu(a*18446744073709552000.0,b);m=l;n=(c[b>>2]|0)+ -64|0}else{m=a;n=0}c[b>>2]=n;o=m;i=d;return+o}else if((j|0)==2047){o=a;i=d;return+o}else{c[b>>2]=j+ -1022;c[k>>2]=e;c[k+4>>2]=f&-2146435073|1071644672;o=+h[k>>3];i=d;return+o}return 0.0}function uu(a,b){a=+a;b=b|0;var c=0,d=0.0;c=i;d=+tu(a,b);i=c;return+d}function vu(a,b){a=+a;b=b|0;var d=0,e=0.0,f=0,g=0,j=0,l=0.0;d=i;if((b|0)>1023){e=a*8.98846567431158e+307;f=b+ -1023|0;if((f|0)>1023){g=b+ -2046|0;j=(g|0)>1023?1023:g;l=e*8.98846567431158e+307}else{j=f;l=e}}else if((b|0)<-1022){e=a*2.2250738585072014e-308;f=b+1022|0;if((f|0)<-1022){g=b+2044|0;j=(g|0)<-1022?-1022:g;l=e*2.2250738585072014e-308}else{j=f;l=e}}else{j=b;l=a}b=Wu(j+1023|0,0,52)|0;j=H;c[k>>2]=b;c[k+4>>2]=j;a=l*+h[k>>3];i=d;return+a}function wu(a,b){a=+a;b=b|0;var c=0,d=0.0;c=i;d=+vu(a,b);i=c;return+d}function xu(a,b){a=a|0;b=b|0;var c=0,d=0;c=i;if(!a)d=0;else d=yu(a,b,0)|0;i=c;return d|0}function yu(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;e=i;if(!b){f=1;i=e;return f|0}if(d>>>0<128){a[b>>0]=d;f=1;i=e;return f|0}if(d>>>0<2048){a[b>>0]=d>>>6|192;a[b+1>>0]=d&63|128;f=2;i=e;return f|0}if(d>>>0<55296|(d+ -57344|0)>>>0<8192){a[b>>0]=d>>>12|224;a[b+1>>0]=d>>>6&63|128;a[b+2>>0]=d&63|128;f=3;i=e;return f|0}if((d+ -65536|0)>>>0<1048576){a[b>>0]=d>>>18|240;a[b+1>>0]=d>>>12&63|128;a[b+2>>0]=d>>>6&63|128;a[b+3>>0]=d&63|128;f=4;i=e;return f|0}else{c[(zb()|0)>>2]=84;f=-1;i=e;return f|0}return 0}function zu(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=b+74|0;f=a[e>>0]|0;a[e>>0]=f+255|f;f=b+20|0;e=b+44|0;if((c[f>>2]|0)>>>0>(c[e>>2]|0)>>>0)_b[c[b+36>>2]&31](b,0,0)|0;c[b+16>>2]=0;c[b+28>>2]=0;c[f>>2]=0;f=c[b>>2]|0;if(!(f&20)){g=c[e>>2]|0;c[b+8>>2]=g;c[b+4>>2]=g;h=0;i=d;return h|0}if(!(f&4)){h=-1;i=d;return h|0}c[b>>2]=f|32;h=-1;i=d;return h|0}function Au(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;e=b+74|0;f=a[e>>0]|0;a[e>>0]=f+255|f;f=c[b>>2]|0;if(!(f&8)){c[b+8>>2]=0;c[b+4>>2]=0;e=c[b+44>>2]|0;c[b+28>>2]=e;c[b+20>>2]=e;c[b+16>>2]=e+(c[b+48>>2]|0);g=0;i=d;return g|0}else{c[b>>2]=f|32;g=-1;i=d;return g|0}return 0}function Bu(a){a=a|0;var b=0,e=0,f=0;b=i;i=i+16|0;e=b;if((c[a+8>>2]|0)==0?(zu(a)|0)!=0:0)f=-1;else if((_b[c[a+32>>2]&31](a,e,1)|0)==1)f=d[e>>0]|0;else f=-1;i=b;return f|0}function Cu(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;g=e+16|0;h=c[g>>2]|0;do if(!h)if(!(Au(e)|0)){j=c[g>>2]|0;break}else{k=0;i=f;return k|0}else j=h;while(0);h=e+20|0;g=c[h>>2]|0;if((j-g|0)>>>0>>0){k=_b[c[e+36>>2]&31](e,b,d)|0;i=f;return k|0}a:do if((a[e+75>>0]|0)>-1){j=d;while(1){if(!j){l=d;m=b;n=g;o=0;break a}p=j+ -1|0;if((a[b+p>>0]|0)==10)break;else j=p}if((_b[c[e+36>>2]&31](e,b,j)|0)>>>0>>0){k=j;i=f;return k|0}else{l=d-j|0;m=b+j|0;n=c[h>>2]|0;o=j;break}}else{l=d;m=b;n=g;o=0}while(0);Tu(n|0,m|0,l|0)|0;c[h>>2]=(c[h>>2]|0)+l;k=o+l|0;i=f;return k|0}function Du(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;g=f;c[g>>2]=e;e=Gu(a,b,d,g)|0;i=f;return e|0}function Eu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=i;i=i+224|0;f=e+120|0;g=e+80|0;h=e;j=e+136|0;k=g+0|0;l=k+40|0;do{c[k>>2]=0;k=k+4|0}while((k|0)<(l|0));c[f>>2]=c[d>>2];if((Fu(0,b,f,h,g)|0)<0){m=-1;i=e;return m|0}d=a+48|0;if(!(c[d>>2]|0)){k=a+44|0;l=c[k>>2]|0;c[k>>2]=j;n=a+28|0;c[n>>2]=j;o=a+20|0;c[o>>2]=j;c[d>>2]=80;p=a+16|0;c[p>>2]=j+80;j=Fu(a,b,f,h,g)|0;if(!l)q=j;else{_b[c[a+36>>2]&31](a,0,0)|0;r=(c[o>>2]|0)==0?-1:j;c[k>>2]=l;c[d>>2]=0;c[p>>2]=0;c[n>>2]=0;c[o>>2]=0;q=r}}else q=Fu(a,b,f,h,g)|0;m=q;i=e;return m|0}function Fu(e,f,g,j,l){e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0.0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0.0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,Ab=0,Bb=0,Cb=0.0,Db=0.0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0.0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0.0,Yb=0,Zb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,jc=0,kc=0,lc=0,mc=0,nc=0,oc=0,pc=0,qc=0,rc=0,sc=0,tc=0,uc=0,vc=0,wc=0,xc=0,yc=0,zc=0.0,Ac=0.0,Bc=0.0,Cc=0,Dc=0,Ec=0,Fc=0,Gc=0,Hc=0,Ic=0,Jc=0,Kc=0,Lc=0,Mc=0,Nc=0,Oc=0,Pc=0,Qc=0,Rc=0,Sc=0,Tc=0,Uc=0,Vc=0,Wc=0,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,bd=0,cd=0,dd=0,ed=0,fd=0,gd=0,hd=0,id=0,jd=0,kd=0,ld=0,md=0,nd=0,od=0,pd=0,qd=0,rd=0,sd=0,td=0,ud=0,vd=0,wd=0;m=i;i=i+864|0;n=m+16|0;o=m+8|0;p=m+560|0;q=p;r=m+840|0;s=m+584|0;t=m+520|0;u=m;v=m+852|0;w=(e|0)!=0;x=t+40|0;y=x;z=t+39|0;t=u+4|0;A=r+12|0;B=r+11|0;r=A;C=r-q|0;D=-2-q|0;E=r+2|0;F=n+288|0;G=p+9|0;I=G;J=p+8|0;K=0;L=0;M=f;f=0;N=0;O=0;a:while(1){do if((f|0)>-1)if((N|0)>(2147483647-f|0)){c[(zb()|0)>>2]=75;P=-1;break}else{P=N+f|0;break}else P=f;while(0);Q=a[M>>0]|0;if(!(Q<<24>>24)){R=344;break}else{S=Q;T=M}while(1){if(S<<24>>24==37){U=T;V=T;R=9;break}else if(!(S<<24>>24)){W=T;X=T;break}Q=T+1|0;S=a[Q>>0]|0;T=Q}b:do if((R|0)==9)while(1){R=0;if((a[U+1>>0]|0)!=37){W=U;X=V;break b}Q=V+1|0;Y=U+2|0;if((a[Y>>0]|0)==37){U=Y;V=Q;R=9}else{W=Y;X=Q;break}}while(0);Q=X-M|0;if(w)Cu(M,Q,e)|0;if((X|0)!=(M|0)){M=W;f=P;N=Q;continue}Y=W+1|0;Z=a[Y>>0]|0;_=(Z<<24>>24)+ -48|0;if(_>>>0<10?(a[W+2>>0]|0)==36:0){$=W+3|0;aa=a[$>>0]|0;ba=_;ca=1;ea=$}else{aa=Z;ba=-1;ca=O;ea=Y}Y=aa<<24>>24;c:do if((Y+ -32|0)>>>0<32){Z=Y;$=aa;_=0;fa=ea;while(1){if(!(1<>24)+ -32|_;ka=fa+1|0;la=a[ka>>0]|0;Z=la<<24>>24;if((Z+ -32|0)>>>0>=32){ga=la;ha=ja;ia=ka;break}else{$=la;_=ja;fa=ka}}}else{ga=aa;ha=0;ia=ea}while(0);do if(ga<<24>>24==42){Y=ia+1|0;fa=(a[Y>>0]|0)+ -48|0;if(fa>>>0<10?(a[ia+2>>0]|0)==36:0){c[l+(fa<<2)>>2]=10;ma=1;na=ia+3|0;oa=c[j+((a[Y>>0]|0)+ -48<<3)>>2]|0}else{if(ca){pa=-1;R=362;break a}if(!w){qa=Y;ra=ha;sa=0;ta=0;break}fa=c[g>>2]|0;_=c[fa>>2]|0;c[g>>2]=fa+4;ma=0;na=Y;oa=_}if((oa|0)<0){qa=na;ra=ha|8192;sa=ma;ta=0-oa|0}else{qa=na;ra=ha;sa=ma;ta=oa}}else{_=ga<<24>>24;if((_+ -48|0)>>>0<10){Y=_;_=ia;fa=0;do{fa=Y+ -48+(fa*10|0)|0;_=_+1|0;Y=a[_>>0]|0}while((Y+ -48|0)>>>0<10);if((fa|0)<0){pa=-1;R=362;break a}else{qa=_;ra=ha;sa=ca;ta=fa}}else{qa=ia;ra=ha;sa=ca;ta=0}}while(0);d:do if((a[qa>>0]|0)==46){Y=qa+1|0;$=a[Y>>0]|0;if($<<24>>24!=42){Z=$<<24>>24;if((Z+ -48|0)>>>0<10){ua=Z;va=Y;wa=0}else{xa=Y;ya=0;break}while(1){Y=ua+ -48+(wa*10|0)|0;Z=va+1|0;ua=a[Z>>0]|0;if((ua+ -48|0)>>>0>=10){xa=Z;ya=Y;break d}else{va=Z;wa=Y}}}fa=qa+2|0;_=(a[fa>>0]|0)+ -48|0;if(_>>>0<10?(a[qa+3>>0]|0)==36:0){c[l+(_<<2)>>2]=10;xa=qa+4|0;ya=c[j+((a[fa>>0]|0)+ -48<<3)>>2]|0;break}if(sa){pa=-1;R=362;break a}if(w){_=c[g>>2]|0;Y=c[_>>2]|0;c[g>>2]=_+4;xa=fa;ya=Y}else{xa=fa;ya=0}}else{xa=qa;ya=-1}while(0);fa=xa;Y=0;while(1){za=a[fa>>0]|0;_=(za<<24>>24)+ -65|0;if(_>>>0>57){pa=-1;R=362;break a}Aa=fa+1|0;Ba=a[18056+(Y*58|0)+_>>0]|0;Ca=Ba&255;if((Ca+ -1|0)>>>0<8){fa=Aa;Y=Ca}else break}if(!(Ba<<24>>24)){pa=-1;R=362;break}_=(ba|0)>-1;e:do if(Ba<<24>>24==19)if(_){pa=-1;R=362;break a}else{Da=K;Ea=L;R=63}else{if(_){c[l+(ba<<2)>>2]=Ca;Z=j+(ba<<3)|0;Da=c[Z+4>>2]|0;Ea=c[Z>>2]|0;R=63;break}if(!w){pa=0;R=362;break a}if((Ba&255)>20){Fa=za;Ga=L;Ha=K}else do switch(Ca|0){case 12:{Z=c[g>>2]|0;$=Z;ka=c[$>>2]|0;ja=c[$+4>>2]|0;c[g>>2]=Z+8;Ia=ka;Ja=ja;R=64;break e;break};case 18:{ja=c[g>>2]|0;c[k>>2]=c[ja>>2];c[k+4>>2]=c[ja+4>>2];Ka=+h[k>>3];c[g>>2]=ja+8;h[k>>3]=Ka;Da=c[k+4>>2]|0;Ea=c[k>>2]|0;R=63;break e;break};case 9:{ja=c[g>>2]|0;ka=c[ja>>2]|0;c[g>>2]=ja+4;Ia=ka;Ja=K;R=64;break e;break};case 17:{ka=c[g>>2]|0;c[k>>2]=c[ka>>2];c[k+4>>2]=c[ka+4>>2];Ka=+h[k>>3];c[g>>2]=ka+8;h[k>>3]=Ka;Ia=c[k>>2]|0;Ja=c[k+4>>2]|0;R=64;break e;break};case 14:{ka=c[g>>2]|0;ja=c[ka>>2]|0;c[g>>2]=ka+4;Ia=ja&65535;Ja=0;R=64;break e;break};case 16:{ja=c[g>>2]|0;ka=c[ja>>2]|0;c[g>>2]=ja+4;Ia=ka&255;Ja=0;R=64;break e;break};case 13:{ka=c[g>>2]|0;ja=c[ka>>2]|0;c[g>>2]=ka+4;Ia=ja<<16>>16;Ja=(((ja&65535)<<16>>16|0)<0)<<31>>31;R=64;break e;break};case 11:{ja=c[g>>2]|0;ka=c[ja>>2]|0;c[g>>2]=ja+4;Ia=ka;Ja=0;R=64;break e;break};case 10:{ka=c[g>>2]|0;ja=c[ka>>2]|0;c[g>>2]=ka+4;Ia=ja;Ja=((ja|0)<0)<<31>>31;R=64;break e;break};case 15:{ja=c[g>>2]|0;ka=c[ja>>2]|0;c[g>>2]=ja+4;Ia=ka<<24>>24;Ja=(((ka&255)<<24>>24|0)<0)<<31>>31;R=64;break e;break};default:{Ia=L;Ja=K;R=64;break e}}while(0)}while(0);if((R|0)==63){R=0;if(w){Ia=Ea;Ja=Da;R=64}else{K=Da;L=Ea;M=Aa;f=P;N=Q;O=sa;continue}}if((R|0)==64){R=0;Fa=a[fa>>0]|0;Ga=Ia;Ha=Ja}_=Fa<<24>>24;if(!Y)La=_;else La=(_&15|0)==3?_&-33:_;_=ra&-65537;ka=(ra&8192|0)==0?ra:_;f:do switch(La|0){case 110:{switch(Y|0){case 7:{ja=Ga;c[ja>>2]=P;c[ja+4>>2]=((P|0)<0)<<31>>31;K=Ha;L=Ga;M=Aa;f=P;N=Q;O=sa;continue a;break};case 6:{c[Ga>>2]=P;K=Ha;L=Ga;M=Aa;f=P;N=Q;O=sa;continue a;break};case 2:{ja=Ga;c[ja>>2]=P;c[ja+4>>2]=((P|0)<0)<<31>>31;K=Ha;L=Ga;M=Aa;f=P;N=Q;O=sa;continue a;break};case 3:{b[Ga>>1]=P;K=Ha;L=Ga;M=Aa;f=P;N=Q;O=sa;continue a;break};case 4:{a[Ga>>0]=P;K=Ha;L=Ga;M=Aa;f=P;N=Q;O=sa;continue a;break};case 0:{c[Ga>>2]=P;K=Ha;L=Ga;M=Aa;f=P;N=Q;O=sa;continue a;break};case 1:{c[Ga>>2]=P;K=Ha;L=Ga;M=Aa;f=P;N=Q;O=sa;continue a;break};default:{K=Ha;L=Ga;M=Aa;f=P;N=Q;O=sa;continue a}}break};case 111:{ja=Ga;Z=(ja|0)==0&(Ha|0)==0;if(Z)Ma=x;else{$=x;la=ja;ja=Ha;while(1){Na=$+ -1|0;a[Na>>0]=la&7|48;la=Ru(la|0,ja|0,3)|0;ja=H;if((la|0)==0&(ja|0)==0){Ma=Na;break}else $=Na}}if(!(ka&8)){Oa=Ga;Pa=Ha;Qa=Ma;Ra=ka;Sa=ya;Ta=0;Ua=18520;R=94}else{Oa=Ga;Pa=Ha;Qa=Ma;Ra=ka;Sa=ya;Ta=Z&1^1;Ua=Z?18520:18525;R=94}break};case 105:case 100:{if((Ha|0)<0){$=Ou(0,0,Ga|0,Ha|0)|0;Va=$;Wa=H;Xa=1;Ya=18520;R=89;break f}if(!(ka&2048)){$=ka&1;Va=Ga;Wa=Ha;Xa=$;Ya=($|0)==0?18520:18522;R=89}else{Va=Ga;Wa=Ha;Xa=1;Ya=18521;R=89}break};case 88:case 120:{Za=ka;_a=ya;$a=La;R=77;break};case 112:{Za=ka|8;_a=ya>>>0>8?ya:8;$a=120;R=77;break};case 117:{Va=Ga;Wa=Ha;Xa=0;Ya=18520;R=89;break};case 99:{a[z>>0]=Ga;ab=Ha;bb=Ga;cb=z;db=_;eb=1;fb=0;gb=18520;hb=x;break};case 109:{ib=Pb(c[(zb()|0)>>2]|0)|0;R=99;break};case 115:{ib=(Ga|0)==0?18536:Ga;R=99;break};case 67:{c[u>>2]=Ga;c[t>>2]=0;jb=u;kb=u;lb=-1;R=104;break};case 83:{if(!ya){mb=Ga;nb=Ga;ob=0;R=110}else{jb=Ga;kb=Ga;lb=ya;R=104}break};case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{c[k>>2]=Ga;c[k+4>>2]=Ha;Ka=+h[k>>3];c[o>>2]=0;if((Ha|0)>=0)if(!(ka&2048)){$=ka&1;pb=Ka;qb=$;rb=($|0)==0?18545:18550}else{pb=Ka;qb=1;rb=18547}else{pb=-Ka;qb=1;rb=18544}h[k>>3]=pb;$=c[k+4>>2]&2146435072;if(!($>>>0<2146435072|($|0)==2146435072&0<0)){$=(La&32|0)!=0;if(pb!=pb|0.0!=0.0){sb=0;tb=$?18584:18592}else{sb=qb;tb=$?18568:18576}$=sb+3|0;ja=($|0)<(ta|0);if((ka&8192|0)==0&ja){la=ta-$|0;Vu(s|0,32,(la>>>0>256?256:la)|0)|0;if(la>>>0>255){Na=la;while(1){Cu(s,256,e)|0;ub=Na+ -256|0;if(ub>>>0>255)Na=ub;else{vb=ub;break}}}else vb=la;Cu(s,vb,e)|0}Cu(rb,sb,e)|0;Cu(tb,3,e)|0;if((ka&73728|0)==8192&ja){Na=ta-$|0;Vu(s|0,32,(Na>>>0>256?256:Na)|0)|0;if(Na>>>0>255){Z=Na;while(1){Cu(s,256,e)|0;ub=Z+ -256|0;if(ub>>>0>255)Z=ub;else{wb=ub;break}}}else wb=Na;Cu(s,wb,e)|0}K=Ha;L=Ga;M=Aa;f=P;N=ja?ta:$;O=sa;continue a}Ka=+uu(pb,o)*2.0;Z=Ka!=0.0;if(Z)c[o>>2]=(c[o>>2]|0)+ -1;la=La|32;if((la|0)==97){ub=La&32;xb=(ub|0)==0?rb:rb+9|0;yb=qb|2;Ab=ya>>>0>11?0:12-ya|0;do if(Ab){Bb=Ab;Cb=8.0;do{Bb=Bb+ -1|0;Cb=Cb*16.0}while((Bb|0)!=0);if((a[xb>>0]|0)==45){Db=-(Cb+(-Ka-Cb));break}else{Db=Ka+Cb-Cb;break}}else Db=Ka;while(0);Ab=c[o>>2]|0;$=(Ab|0)<0?0-Ab|0:Ab;if(($|0)<0){Ab=A;ja=$;Na=(($|0)<0)<<31>>31;while(1){Bb=cv(ja|0,Na|0,10,0)|0;Ab=Ab+ -1|0;a[Ab>>0]=Bb|48;Bb=ja;ja=bv(ja|0,Na|0,10,0)|0;if(!(Na>>>0>9|(Na|0)==9&Bb>>>0>4294967295))break;else Na=H}Eb=Ab;Fb=ja}else{Eb=A;Fb=$}if(!Fb)Gb=Eb;else{Na=Eb;Bb=Fb;while(1){Hb=Na+ -1|0;a[Hb>>0]=(Bb>>>0)%10|0|48;if(Bb>>>0<10){Gb=Hb;break}else{Na=Hb;Bb=(Bb>>>0)/10|0}}}if((Gb|0)==(A|0)){a[B>>0]=48;Ib=B}else Ib=Gb;a[Ib+ -1>>0]=(c[o>>2]>>31&2)+43;Bb=Ib+ -2|0;a[Bb>>0]=La+15;Na=(ka&8|0)==0;if((ya|0)>0)if(Na){Jb=Db;$=p;while(1){ja=~~Jb;Ab=$+1|0;a[$>>0]=d[18600+ja>>0]|ub;Jb=(Jb- +(ja|0))*16.0;if((Ab-q|0)==1){a[Ab>>0]=46;Kb=$+2|0}else Kb=Ab;if(!(Jb!=0.0)){Lb=Kb;break}else $=Kb}}else{Jb=Db;$=p;while(1){Ab=~~Jb;ja=$+1|0;a[$>>0]=d[18600+Ab>>0]|ub;Jb=(Jb- +(Ab|0))*16.0;if((ja-q|0)==1){a[ja>>0]=46;Mb=$+2|0}else Mb=ja;if(!(Jb!=0.0)){Lb=Mb;break}else $=Mb}}else if(Na){Jb=Db;$=p;while(1){ja=~~Jb;Ab=$+1|0;a[$>>0]=d[18600+ja>>0]|ub;Jb=(Jb- +(ja|0))*16.0;ja=Jb!=0.0;if((Ab-q|0)==1&ja){a[Ab>>0]=46;Nb=$+2|0}else Nb=Ab;if(!ja){Lb=Nb;break}else $=Nb}}else{Jb=Db;$=p;while(1){Na=~~Jb;ja=$+1|0;a[$>>0]=d[18600+Na>>0]|ub;Jb=(Jb- +(Na|0))*16.0;if((ja-q|0)==1){a[ja>>0]=46;Ob=$+2|0}else Ob=ja;if(!(Jb!=0.0)){Lb=Ob;break}else $=Ob}}$=Lb;do if(!ya)R=173;else{if((D+$|0)>=(ya|0)){R=173;break}Qb=E+ya-Bb|0}while(0);if((R|0)==173){R=0;Qb=C-Bb+$|0}ub=Qb+yb|0;ja=ka&73728;Na=(ub|0)<(ta|0);if((ja|0)==0&Na){Ab=ta-ub|0;Vu(s|0,32,(Ab>>>0>256?256:Ab)|0)|0;if(Ab>>>0>255){Hb=Ab;while(1){Cu(s,256,e)|0;Rb=Hb+ -256|0;if(Rb>>>0>255)Hb=Rb;else{Sb=Rb;break}}}else Sb=Ab;Cu(s,Sb,e)|0}Cu(xb,yb,e)|0;if((ja|0)==65536&Na){Hb=ta-ub|0;Vu(s|0,48,(Hb>>>0>256?256:Hb)|0)|0;if(Hb>>>0>255){Rb=Hb;while(1){Cu(s,256,e)|0;Tb=Rb+ -256|0;if(Tb>>>0>255)Rb=Tb;else{Ub=Tb;break}}}else Ub=Hb;Cu(s,Ub,e)|0}Rb=$-q|0;Cu(p,Rb,e)|0;yb=r-Bb|0;xb=Qb-yb-Rb|0;if((xb|0)>0){Vu(s|0,48,(xb>>>0>256?256:xb)|0)|0;if(xb>>>0>255){Rb=xb;while(1){Cu(s,256,e)|0;Ab=Rb+ -256|0;if(Ab>>>0>255)Rb=Ab;else{Vb=Ab;break}}}else Vb=xb;Cu(s,Vb,e)|0}Cu(Bb,yb,e)|0;if((ja|0)==8192&Na){Rb=ta-ub|0;Vu(s|0,32,(Rb>>>0>256?256:Rb)|0)|0;if(Rb>>>0>255){$=Rb;while(1){Cu(s,256,e)|0;Hb=$+ -256|0;if(Hb>>>0>255)$=Hb;else{Wb=Hb;break}}}else Wb=Rb;Cu(s,Wb,e)|0}K=Ha;L=Ga;M=Aa;f=P;N=Na?ta:ub;O=sa;continue a}$=(ya|0)<0?6:ya;if(Z){ja=(c[o>>2]|0)+ -28|0;c[o>>2]=ja;Xb=Ka*268435456.0;Yb=ja}else{Xb=Ka;Yb=c[o>>2]|0}ja=(Yb|0)<0?n:F;Jb=Xb;yb=ja;do{Bb=~~Jb>>>0;c[yb>>2]=Bb;yb=yb+4|0;Jb=(Jb- +(Bb>>>0))*1.0e9}while(Jb!=0.0);Z=c[o>>2]|0;if((Z|0)>0){ub=Z;Na=ja;Rb=yb;while(1){Bb=(ub|0)>29?29:ub;xb=Rb+ -4|0;do if(xb>>>0>>0)Zb=Na;else{Hb=0;Ab=xb;do{Tb=Wu(c[Ab>>2]|0,0,Bb|0)|0;_b=Pu(Tb|0,H|0,Hb|0,0)|0;Tb=H;$b=cv(_b|0,Tb|0,1e9,0)|0;c[Ab>>2]=$b;Hb=bv(_b|0,Tb|0,1e9,0)|0;Ab=Ab+ -4|0}while(Ab>>>0>=Na>>>0);if(!Hb){Zb=Na;break}Ab=Na+ -4|0;c[Ab>>2]=Hb;Zb=Ab}while(0);xb=Rb;while(1){if(xb>>>0<=Zb>>>0)break;Ab=xb+ -4|0;if(!(c[Ab>>2]|0))xb=Ab;else break}Ab=(c[o>>2]|0)-Bb|0;c[o>>2]=Ab;if((Ab|0)>0){ub=Ab;Na=Zb;Rb=xb}else{ac=Ab;bc=Zb;cc=xb;break}}}else{ac=Z;bc=ja;cc=yb}g:do if((ac|0)<0){Rb=(($+25|0)/9|0)+1|0;if((la|0)==102){Na=ja;ub=ja+(Rb<<2)|0;Ab=ac;Tb=bc;_b=cc;while(1){$b=0-Ab|0;dc=($b|0)>9?9:$b;do if(Tb>>>0<_b>>>0){$b=(1<>>dc;fc=0;gc=Tb;do{hc=c[gc>>2]|0;c[gc>>2]=(hc>>>dc)+fc;fc=da(hc&$b,ec)|0;gc=gc+4|0}while(gc>>>0<_b>>>0);gc=(c[Tb>>2]|0)==0?Tb+4|0:Tb;if(!fc){ic=gc;jc=_b;break}c[_b>>2]=fc;ic=gc;jc=_b+4|0}else{ic=(c[Tb>>2]|0)==0?Tb+4|0:Tb;jc=_b}while(0);Hb=(jc-Na>>2|0)>(Rb|0)?ub:jc;Ab=(c[o>>2]|0)+dc|0;c[o>>2]=Ab;if((Ab|0)>=0){kc=ic;lc=Hb;break g}else{Tb=ic;_b=Hb}}}else{mc=ac;nc=bc;oc=cc}while(1){_b=0-mc|0;Tb=(_b|0)>9?9:_b;do if(nc>>>0>>0){_b=(1<>>Tb;ub=0;Na=nc;do{xb=c[Na>>2]|0;c[Na>>2]=(xb>>>Tb)+ub;ub=da(xb&_b,Ab)|0;Na=Na+4|0}while(Na>>>0>>0);Na=(c[nc>>2]|0)==0?nc+4|0:nc;if(!ub){pc=Na;qc=oc;break}c[oc>>2]=ub;pc=Na;qc=oc+4|0}else{pc=(c[nc>>2]|0)==0?nc+4|0:nc;qc=oc}while(0);if((qc-pc>>2|0)>(Rb|0))rc=pc+(Rb<<2)|0;else rc=qc;mc=(c[o>>2]|0)+Tb|0;c[o>>2]=mc;if((mc|0)>=0){kc=pc;lc=rc;break}else{nc=pc;oc=rc}}}else{kc=bc;lc=cc}while(0);yb=ja;do if(kc>>>0>>0){Z=(yb-kc>>2)*9|0;Rb=c[kc>>2]|0;if(Rb>>>0<10){sc=Z;break}else{tc=Z;uc=10}while(1){uc=uc*10|0;Z=tc+1|0;if(Rb>>>0>>0){sc=Z;break}else tc=Z}}else sc=0;while(0);Rb=(la|0)==103;Z=$-((la|0)!=102?sc:0)+((Rb&($|0)!=0)<<31>>31)|0;if((Z|0)<(((lc-yb>>2)*9|0)+ -9|0)){dc=Z+9216|0;Z=(dc|0)/9|0;Na=ja+(Z+ -1023<<2)|0;Ab=((dc|0)%9|0)+1|0;if((Ab|0)<9){dc=10;_b=Ab;while(1){Ab=dc*10|0;_b=_b+1|0;if((_b|0)==9){vc=Ab;break}else dc=Ab}}else vc=10;dc=c[Na>>2]|0;_b=(dc>>>0)%(vc>>>0)|0;if((_b|0)==0?(ja+(Z+ -1022<<2)|0)==(lc|0):0){wc=kc;xc=Na;yc=sc}else R=233;do if((R|0)==233){R=0;Cb=(((dc>>>0)/(vc>>>0)|0)&1|0)==0?9007199254740992.0:9007199254740994.0;la=(vc|0)/2|0;do if(_b>>>0>>0)zc=.5;else{if((_b|0)==(la|0)?(ja+(Z+ -1022<<2)|0)==(lc|0):0){zc=1.0;break}zc=1.5}while(0);do if(!qb){Ac=Cb;Bc=zc}else{if((a[rb>>0]|0)!=45){Ac=Cb;Bc=zc;break}Ac=Cb*-1.0;Bc=zc*-1.0}while(0);la=dc-_b|0;c[Na>>2]=la;if(!(Ac+Bc!=Ac)){wc=kc;xc=Na;yc=sc;break}Ab=la+vc|0;c[Na>>2]=Ab;if(Ab>>>0>999999999){Ab=kc;la=Na;while(1){fc=la+ -4|0;c[la>>2]=0;if(fc>>>0>>0){xb=Ab+ -4|0;c[xb>>2]=0;Cc=xb}else Cc=Ab;xb=(c[fc>>2]|0)+1|0;c[fc>>2]=xb;if(xb>>>0>999999999){Ab=Cc;la=fc}else{Dc=Cc;Ec=fc;break}}}else{Dc=kc;Ec=Na}la=(yb-Dc>>2)*9|0;Ab=c[Dc>>2]|0;if(Ab>>>0<10){wc=Dc;xc=Ec;yc=la;break}else{Fc=la;Gc=10}while(1){Gc=Gc*10|0;la=Fc+1|0;if(Ab>>>0>>0){wc=Dc;xc=Ec;yc=la;break}else Fc=la}}while(0);Na=xc+4|0;Hc=wc;Ic=yc;Jc=lc>>>0>Na>>>0?Na:lc}else{Hc=kc;Ic=sc;Jc=lc}Na=0-Ic|0;_b=Jc;while(1){if(_b>>>0<=Hc>>>0){Kc=0;break}dc=_b+ -4|0;if(!(c[dc>>2]|0))_b=dc;else{Kc=1;break}}do if(Rb){dc=(($|0)==0&1)+$|0;if((dc|0)>(Ic|0)&(Ic|0)>-5){Lc=La+ -1|0;Mc=dc+ -1-Ic|0}else{Lc=La+ -2|0;Mc=dc+ -1|0}if(ka&8){Nc=Lc;Oc=Mc;break}do if(Kc){dc=c[_b+ -4>>2]|0;if(!dc){Pc=9;break}if(!((dc>>>0)%10|0)){Qc=10;Rc=0}else{Pc=0;break}while(1){Qc=Qc*10|0;Z=Rc+1|0;if((dc>>>0)%(Qc>>>0)|0){Pc=Z;break}else Rc=Z}}else Pc=9;while(0);dc=((_b-yb>>2)*9|0)+ -9|0;if((Lc|32|0)==102){Tb=dc-Pc|0;Z=(Tb|0)<0?0:Tb;Nc=Lc;Oc=(Mc|0)<(Z|0)?Mc:Z;break}else{Z=dc+Ic-Pc|0;dc=(Z|0)<0?0:Z;Nc=Lc;Oc=(Mc|0)<(dc|0)?Mc:dc;break}}else{Nc=La;Oc=$}while(0);$=(Oc|0)!=0;if($)Sc=1;else Sc=(ka&8|0)!=0;yb=Sc&1;Rb=(Nc|32|0)==102;if(Rb){Tc=(Ic|0)>0?Ic:0;Uc=0}else{dc=(Ic|0)<0?Na:Ic;if((dc|0)<0){Z=A;Tb=dc;Ab=((dc|0)<0)<<31>>31;while(1){la=cv(Tb|0,Ab|0,10,0)|0;Z=Z+ -1|0;a[Z>>0]=la|48;la=Tb;Tb=bv(Tb|0,Ab|0,10,0)|0;if(!(Ab>>>0>9|(Ab|0)==9&la>>>0>4294967295))break;else Ab=H}Vc=Z;Wc=Tb}else{Vc=A;Wc=dc}if(!Wc)Xc=Vc;else{Ab=Vc;Na=Wc;while(1){la=Ab+ -1|0;a[la>>0]=(Na>>>0)%10|0|48;if(Na>>>0<10){Xc=la;break}else{Ab=la;Na=(Na>>>0)/10|0}}}if((r-Xc|0)<2){Na=Xc;while(1){Ab=Na+ -1|0;a[Ab>>0]=48;if((r-Ab|0)<2)Na=Ab;else{Yc=Ab;break}}}else Yc=Xc;a[Yc+ -1>>0]=(Ic>>31&2)+43;Na=Yc+ -2|0;a[Na>>0]=Nc;Tc=r-Na|0;Uc=Na}Na=qb+1+Oc+yb+Tc|0;Ab=ka&73728;dc=(Na|0)<(ta|0);if((Ab|0)==0&dc){Tb=ta-Na|0;Vu(s|0,32,(Tb>>>0>256?256:Tb)|0)|0;if(Tb>>>0>255){Z=Tb;while(1){Cu(s,256,e)|0;la=Z+ -256|0;if(la>>>0>255)Z=la;else{Zc=la;break}}}else Zc=Tb;Cu(s,Zc,e)|0}Cu(rb,qb,e)|0;if((Ab|0)==65536&dc){Z=ta-Na|0;Vu(s|0,48,(Z>>>0>256?256:Z)|0)|0;if(Z>>>0>255){yb=Z;while(1){Cu(s,256,e)|0;la=yb+ -256|0;if(la>>>0>255)yb=la;else{_c=la;break}}}else _c=Z;Cu(s,_c,e)|0}do if(Rb){yb=Hc>>>0>ja>>>0?ja:Hc;Tb=yb;do{la=c[Tb>>2]|0;if(!la)$c=G;else{fc=G;xb=la;while(1){la=fc+ -1|0;a[la>>0]=(xb>>>0)%10|0|48;if(xb>>>0<10){$c=la;break}else{fc=la;xb=(xb>>>0)/10|0}}}do if((Tb|0)==(yb|0)){if(($c|0)!=(G|0)){ad=$c;break}a[J>>0]=48;ad=J}else{if($c>>>0>p>>>0)bd=$c;else{ad=$c;break}while(1){xb=bd+ -1|0;a[xb>>0]=48;if(xb>>>0>p>>>0)bd=xb;else{ad=xb;break}}}while(0);Cu(ad,I-ad|0,e)|0;Tb=Tb+4|0}while(Tb>>>0<=ja>>>0);if(!$?(ka&8|0)==0:0)break;Cu(18616,1,e)|0;if(Tb>>>0<_b>>>0&(Oc|0)>0){yb=Oc;ub=Tb;while(1){xb=c[ub>>2]|0;if(xb){fc=G;la=xb;while(1){fc=fc+ -1|0;a[fc>>0]=(la>>>0)%10|0|48;if(la>>>0<10)break;else la=(la>>>0)/10|0}if(fc>>>0>p>>>0){cd=fc;R=300}else dd=fc}else{cd=G;R=300}if((R|0)==300)while(1){R=0;la=cd+ -1|0;a[la>>0]=48;if(la>>>0>p>>>0){cd=la;R=300}else{dd=la;break}}Cu(dd,(yb|0)>9?9:yb,e)|0;ub=ub+4|0;fc=yb+ -9|0;if(!(ub>>>0<_b>>>0&(fc|0)>0)){ed=fc;break}else yb=fc}}else ed=Oc;if((ed|0)<=0)break;Vu(s|0,48,(ed>>>0>256?256:ed)|0)|0;if(ed>>>0>255){yb=ed;while(1){Cu(s,256,e)|0;ub=yb+ -256|0;if(ub>>>0>255)yb=ub;else{fd=ub;break}}}else fd=ed;Cu(s,fd,e)|0}else{yb=Kc?_b:Hc+4|0;do if((Oc|0)>-1){ub=(ka&8|0)!=0;Tb=Oc;fc=Hc;do{la=c[fc>>2]|0;if(la){xb=G;Bb=la;while(1){xb=xb+ -1|0;a[xb>>0]=(Bb>>>0)%10|0|48;if(Bb>>>0<10)break;else Bb=(Bb>>>0)/10|0}if((xb|0)!=(G|0))gd=xb;else R=311}else R=311;if((R|0)==311){R=0;a[J>>0]=48;gd=J}do if((fc|0)==(Hc|0)){Bb=gd+1|0;Cu(gd,1,e)|0;if(!((Tb|0)>0|ub)){hd=Bb;break}Cu(18616,1,e)|0;hd=Bb}else{if(gd>>>0>p>>>0)id=gd;else{hd=gd;break}while(1){Bb=id+ -1|0;a[Bb>>0]=48;if(Bb>>>0>p>>>0)id=Bb;else{hd=Bb;break}}}while(0);xb=I-hd|0;Cu(hd,(xb|0)<(Tb|0)?xb:Tb,e)|0;Tb=Tb-xb|0;fc=fc+4|0}while(fc>>>0>>0&(Tb|0)>-1);if((Tb|0)<=0)break;Vu(s|0,48,(Tb>>>0>256?256:Tb)|0)|0;if(Tb>>>0>255){fc=Tb;while(1){Cu(s,256,e)|0;ub=fc+ -256|0;if(ub>>>0>255)fc=ub;else{jd=ub;break}}}else jd=Tb;Cu(s,jd,e)|0}while(0);Cu(Uc,r-Uc|0,e)|0}while(0);if((Ab|0)==8192&dc){_b=ta-Na|0;Vu(s|0,32,(_b>>>0>256?256:_b)|0)|0;if(_b>>>0>255){$=_b;while(1){Cu(s,256,e)|0;ja=$+ -256|0;if(ja>>>0>255)$=ja;else{kd=ja;break}}}else kd=_b;Cu(s,kd,e)|0}K=Ha;L=Ga;M=Aa;f=P;N=dc?ta:Na;O=sa;continue a;break};default:{ab=Ha;bb=Ga;cb=M;db=ka;eb=ya;fb=0;gb=18520;hb=x}}while(0);h:do if((R|0)==77){R=0;Q=Ga;Y=$a&32;if(!((Q|0)==0&(Ha|0)==0)){fa=x;$=Q;Q=Ha;do{fa=fa+ -1|0;a[fa>>0]=d[18600+($&15)>>0]|Y;$=Ru($|0,Q|0,4)|0;Q=H}while(!(($|0)==0&(Q|0)==0));if(!(Za&8)){Oa=Ga;Pa=Ha;Qa=fa;Ra=Za;Sa=_a;Ta=0;Ua=18520;R=94}else{Oa=Ga;Pa=Ha;Qa=fa;Ra=Za;Sa=_a;Ta=2;Ua=18520+($a>>4)|0;R=94}}else{Oa=Ga;Pa=Ha;Qa=x;Ra=Za;Sa=_a;Ta=0;Ua=18520;R=94}}else if((R|0)==89){R=0;Q=Va;if(Wa>>>0>0|(Wa|0)==0&Q>>>0>4294967295){$=x;Y=Q;Na=Wa;while(1){dc=cv(Y|0,Na|0,10,0)|0;$=$+ -1|0;a[$>>0]=dc|48;dc=Y;Y=bv(Y|0,Na|0,10,0)|0;if(!(Na>>>0>9|(Na|0)==9&dc>>>0>4294967295))break;else Na=H}ld=$;md=Y}else{ld=x;md=Q}if(!md){Oa=Va;Pa=Wa;Qa=ld;Ra=ka;Sa=ya;Ta=Xa;Ua=Ya;R=94}else{Na=ld;fa=md;while(1){dc=Na+ -1|0;a[dc>>0]=(fa>>>0)%10|0|48;if(fa>>>0<10){Oa=Va;Pa=Wa;Qa=dc;Ra=ka;Sa=ya;Ta=Xa;Ua=Ya;R=94;break}else{Na=dc;fa=(fa>>>0)/10|0}}}}else if((R|0)==99){R=0;fa=Lu(ib,0,ya)|0;if(!fa){ab=Ha;bb=Ga;cb=ib;db=_;eb=ya;fb=0;gb=18520;hb=ib+ya|0;break}else{ab=Ha;bb=Ga;cb=ib;db=_;eb=fa-ib|0;fb=0;gb=18520;hb=fa;break}}else if((R|0)==104){R=0;fa=0;Na=0;Q=jb;while(1){Y=c[Q>>2]|0;if(!Y){nd=fa;od=Na;break}$=xu(v,Y)|0;if(($|0)<=-1){pa=-1;R=362;break a}Y=$+fa|0;if($>>>0>(lb-fa|0)>>>0){mb=jb;nb=kb;ob=fa;R=110;break h}if(Y>>>0>>0){fa=Y;Na=$;Q=Q+4|0}else{nd=Y;od=$;break}}if((od|0)<0){pa=-1;R=362;break a}else{mb=jb;nb=kb;ob=nd;R=110}}while(0);if((R|0)==94){R=0;_=(Sa|0)>-1?Ra&-65537:Ra;Q=(Oa|0)==0&(Pa|0)==0;if(Q&(Sa|0)==0){ab=Pa;bb=Oa;cb=x;db=_;eb=0;fb=Ta;gb=Ua;hb=x}else{Na=(Q&1)+(y-Qa)|0;ab=Pa;bb=Oa;cb=Qa;db=_;eb=(Sa|0)>(Na|0)?Sa:Na;fb=Ta;gb=Ua;hb=x}}else if((R|0)==110){R=0;Na=ka&73728;_=(ob|0)<(ta|0);if((Na|0)==0&_){Q=ta-ob|0;Vu(s|0,32,(Q>>>0>256?256:Q)|0)|0;if(Q>>>0>255){fa=Q;while(1){Cu(s,256,e)|0;$=fa+ -256|0;if($>>>0>255)fa=$;else{pd=$;break}}}else pd=Q;Cu(s,pd,e)|0}i:do if(ob){fa=0;ka=mb;while(1){$=c[ka>>2]|0;if(!$)break i;Y=xu(v,$)|0;fa=Y+fa|0;if((fa|0)>(ob|0))break i;Cu(v,Y,e)|0;if(fa>>>0>=ob>>>0)break;else ka=ka+4|0}}while(0);if((Na|0)==8192&_){Q=ta-ob|0;Vu(s|0,32,(Q>>>0>256?256:Q)|0)|0;if(Q>>>0>255){ka=Q;while(1){Cu(s,256,e)|0;fa=ka+ -256|0;if(fa>>>0>255)ka=fa;else{qd=fa;break}}}else qd=Q;Cu(s,qd,e)|0}K=Ha;L=nb;M=Aa;f=P;N=_?ta:ob;O=sa;continue}ka=hb-cb|0;Na=(eb|0)<(ka|0)?ka:eb;fa=fb+Na|0;Y=(ta|0)<(fa|0)?fa:ta;$=db&73728;dc=(fa|0)<(Y|0);if(($|0)==0&dc){_b=Y-fa|0;Vu(s|0,32,(_b>>>0>256?256:_b)|0)|0;if(_b>>>0>255){Ab=_b;while(1){Cu(s,256,e)|0;ja=Ab+ -256|0;if(ja>>>0>255)Ab=ja;else{rd=ja;break}}}else rd=_b;Cu(s,rd,e)|0}Cu(gb,fb,e)|0;if(($|0)==65536&dc){Ab=Y-fa|0;Vu(s|0,48,(Ab>>>0>256?256:Ab)|0)|0;if(Ab>>>0>255){_=Ab;while(1){Cu(s,256,e)|0;Q=_+ -256|0;if(Q>>>0>255)_=Q;else{sd=Q;break}}}else sd=Ab;Cu(s,sd,e)|0}if((ka|0)<(Na|0)){_=Na-ka|0;Vu(s|0,48,(_>>>0>256?256:_)|0)|0;if(_>>>0>255){_b=_;while(1){Cu(s,256,e)|0;Q=_b+ -256|0;if(Q>>>0>255)_b=Q;else{td=Q;break}}}else td=_;Cu(s,td,e)|0}Cu(cb,ka,e)|0;if(!(($|0)==8192&dc)){K=ab;L=bb;M=Aa;f=P;N=Y;O=sa;continue}_b=Y-fa|0;Vu(s|0,32,(_b>>>0>256?256:_b)|0)|0;if(_b>>>0>255){Na=_b;while(1){Cu(s,256,e)|0;Ab=Na+ -256|0;if(Ab>>>0>255)Na=Ab;else{ud=Ab;break}}}else ud=_b;Cu(s,ud,e)|0;K=ab;L=bb;M=Aa;f=P;N=Y;O=sa}if((R|0)==344){if(e){pa=P;i=m;return pa|0}if(!O){pa=0;i=m;return pa|0}else vd=1;while(1){O=c[l+(vd<<2)>>2]|0;if(!O){wd=vd;break}P=j+(vd<<3)|0;j:do if(O>>>0<=20)do switch(O|0){case 9:{e=c[g>>2]|0;sa=c[e>>2]|0;c[g>>2]=e+4;c[P>>2]=sa;break j;break};case 10:{sa=c[g>>2]|0;e=c[sa>>2]|0;c[g>>2]=sa+4;sa=P;c[sa>>2]=e;c[sa+4>>2]=((e|0)<0)<<31>>31;break j;break};case 11:{e=c[g>>2]|0;sa=c[e>>2]|0;c[g>>2]=e+4;e=P;c[e>>2]=sa;c[e+4>>2]=0;break j;break};case 12:{e=c[g>>2]|0;sa=e;N=c[sa>>2]|0;f=c[sa+4>>2]|0;c[g>>2]=e+8;e=P;c[e>>2]=N;c[e+4>>2]=f;break j;break};case 13:{f=c[g>>2]|0;e=c[f>>2]|0;c[g>>2]=f+4;f=(e&65535)<<16>>16;e=P;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;break j;break};case 14:{f=c[g>>2]|0;e=c[f>>2]|0;c[g>>2]=f+4;f=P;c[f>>2]=e&65535;c[f+4>>2]=0;break j;break};case 15:{f=c[g>>2]|0;e=c[f>>2]|0;c[g>>2]=f+4;f=(e&255)<<24>>24;e=P;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;break j;break};case 16:{f=c[g>>2]|0;e=c[f>>2]|0;c[g>>2]=f+4;f=P;c[f>>2]=e&255;c[f+4>>2]=0;break j;break};case 17:{f=c[g>>2]|0;c[k>>2]=c[f>>2];c[k+4>>2]=c[f+4>>2];Ac=+h[k>>3];c[g>>2]=f+8;h[P>>3]=Ac;break j;break};case 18:{f=c[g>>2]|0;c[k>>2]=c[f>>2];c[k+4>>2]=c[f+4>>2];Ac=+h[k>>3];c[g>>2]=f+8;h[P>>3]=Ac;break j;break};default:break j}while(0);while(0);vd=vd+1|0;if((vd|0)>=10){pa=1;R=362;break}}if((R|0)==362){i=m;return pa|0}while(1){if(c[l+(wd<<2)>>2]|0){pa=-1;R=362;break}wd=wd+1|0;if((wd|0)>=10){pa=1;R=362;break}}if((R|0)==362){i=m;return pa|0}}else if((R|0)==362){i=m;return pa|0}return 0}function Gu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;i=i+128|0;h=g+112|0;j=g;k=j+0|0;l=18624|0;m=k+112|0;do{c[k>>2]=c[l>>2];k=k+4|0;l=l+4|0}while((k|0)<(m|0));if((d+ -1|0)>>>0>2147483646)if(!d){n=h;o=1}else{c[(zb()|0)>>2]=75;p=-1;i=g;return p|0}else{n=b;o=d}d=-2-n|0;b=o>>>0>d>>>0?d:o;c[j+48>>2]=b;o=j+20|0;c[o>>2]=n;c[j+44>>2]=n;d=n+b|0;n=j+16|0;c[n>>2]=d;c[j+28>>2]=d;d=Eu(j,e,f)|0;if(!b){p=d;i=g;return p|0}b=c[o>>2]|0;a[b+(((b|0)==(c[n>>2]|0))<<31>>31)>>0]=0;p=d;i=g;return p|0}function Hu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;f=a+20|0;g=c[f>>2]|0;h=(c[a+16>>2]|0)-g|0;a=h>>>0>d>>>0?d:h;Tu(g|0,b|0,a|0)|0;c[f>>2]=(c[f>>2]|0)+a;i=e;return d|0}function Iu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0.0,j=0,k=0;d=i;i=i+112|0;e=d;f=e+0|0;g=f+112|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(g|0));f=e+4|0;c[f>>2]=a;g=e+8|0;c[g>>2]=-1;c[e+44>>2]=a;c[e+76>>2]=-1;ru(e,0);h=+pu(e,2,1);j=(c[f>>2]|0)-(c[g>>2]|0)+(c[e+108>>2]|0)|0;if(!b){i=d;return+h}if(!j)k=a;else k=a+j|0;c[b>>2]=k;i=d;return+h}function Ju(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+112|0;f=e;c[f>>2]=0;g=f+4|0;c[g>>2]=a;c[f+44>>2]=a;if((a|0)<0)c[f+8>>2]=-1;else c[f+8>>2]=a+2147483647;c[f+76>>2]=-1;ru(f,0);h=ou(f,d,1,-1,-1)|0;d=H;if(!b){H=d;i=e;return h|0}c[b>>2]=a+((c[g>>2]|0)+(c[f+108>>2]|0)-(c[f+8>>2]|0));H=d;i=e;return h|0}function Ku(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+112|0;f=e;c[f>>2]=0;g=f+4|0;c[g>>2]=a;c[f+44>>2]=a;if((a|0)<0)c[f+8>>2]=-1;else c[f+8>>2]=a+2147483647;c[f+76>>2]=-1;ru(f,0);h=ou(f,d,1,0,-2147483648)|0;d=H;if(!b){H=d;i=e;return h|0}c[b>>2]=a+((c[g>>2]|0)+(c[f+108>>2]|0)-(c[f+8>>2]|0));H=d;i=e;return h|0}function Lu(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;f=i;g=d&255;h=(e|0)==0;a:do if((b&3|0)==0|h){j=e;k=h;l=b;m=5}else{n=d&255;o=e;p=b;while(1){if((a[p>>0]|0)==n<<24>>24){q=o;r=p;m=6;break a}s=p+1|0;t=o+ -1|0;u=(t|0)==0;if((s&3|0)==0|u){j=t;k=u;l=s;m=5;break}else{o=t;p=s}}}while(0);if((m|0)==5)if(k){v=0;w=l}else{q=j;r=l;m=6}b:do if((m|0)==6){l=d&255;if((a[r>>0]|0)!=l<<24>>24){j=da(g,16843009)|0;c:do if(q>>>0>3){k=q;b=r;while(1){e=c[b>>2]^j;if((e&-2139062144^-2139062144)&e+ -16843009){x=k;y=b;break c}e=b+4|0;h=k+ -4|0;if(h>>>0>3){k=h;b=e}else{x=h;y=e;break}}}else{x=q;y=r}while(0);if(!x){v=0;w=y}else{j=x;b=y;while(1){if((a[b>>0]|0)==l<<24>>24){v=j;w=b;break b}k=b+1|0;j=j+ -1|0;if(!j){v=0;w=k;break}else b=k}}}else{v=q;w=r}}while(0);i=f;return((v|0)!=0?w:0)|0}function Mu(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=a[b>>0]|0;f=a[c>>0]|0;if(e<<24>>24==0?1:e<<24>>24!=f<<24>>24){g=e;h=f}else{f=b;b=c;do{f=f+1|0;b=b+1|0;c=a[f>>0]|0;e=a[b>>0]|0}while(!(c<<24>>24==0?1:c<<24>>24!=e<<24>>24));g=c;h=e}i=d;return(g&255)-(h&255)|0}function Nu(){}function Ou(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=b-d>>>0;e=b-d-(c>>>0>a>>>0|0)>>>0;return(H=e,a-c>>>0|0)|0}function Pu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=a+c>>>0;return(H=b+d+(e>>>0>>0|0)>>>0,e|0)|0}function Qu(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){H=b>>c;return a>>>c|(b&(1<>c-32|0}function Ru(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){H=b>>>c;return a>>>c|(b&(1<>>c-32|0}function Su(b){b=b|0;var c=0;c=b;while(a[c>>0]|0)c=c+1|0;return c-b|0}function Tu(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;if((e|0)>=4096)return bb(b|0,d|0,e|0)|0;f=b|0;if((b&3)==(d&3)){while(b&3){if(!e)return f|0;a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}while((e|0)>=4){c[b>>2]=c[d>>2];b=b+4|0;d=d+4|0;e=e-4|0}}while((e|0)>0){a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}return f|0}function Uu(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if((c|0)<(b|0)&(b|0)<(c+d|0)){e=b;c=c+d|0;b=b+d|0;while((d|0)>0){b=b-1|0;c=c-1|0;d=d-1|0;a[b>>0]=a[c>>0]|0}b=e}else Tu(b,c,d)|0;return b|0}function Vu(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=b+e|0;if((e|0)>=20){d=d&255;g=b&3;h=d|d<<8|d<<16|d<<24;i=f&~3;if(g){g=b+4-g|0;while((b|0)<(g|0)){a[b>>0]=d;b=b+1|0}}while((b|0)<(i|0)){c[b>>2]=h;b=b+4|0}}while((b|0)<(f|0)){a[b>>0]=d;b=b+1|0}return b-e|0}function Wu(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){H=b<>>32-c;return a<>>24)>>0]|0;if((c|0)<8)return c|0;c=a[n+(b>>16&255)>>0]|0;if((c|0)<8)return c+8|0;c=a[n+(b>>8&255)>>0]|0;if((c|0)<8)return c+16|0;return(a[n+(b&255)>>0]|0)+24|0}function Yu(b){b=b|0;var c=0;c=a[m+(b&255)>>0]|0;if((c|0)<8)return c|0;c=a[m+(b>>8&255)>>0]|0;if((c|0)<8)return c+8|0;c=a[m+(b>>16&255)>>0]|0;if((c|0)<8)return c+16|0;return(a[m+(b>>>24)>>0]|0)+24|0}function Zu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=a&65535;d=b&65535;e=da(d,c)|0;f=a>>>16;a=(e>>>16)+(da(d,f)|0)|0;d=b>>>16;b=da(d,c)|0;return(H=(a>>>16)+(da(d,f)|0)+(((a&65535)+b|0)>>>16)|0,a+b<<16|e&65535|0)|0}function _u(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e=b>>31|((b|0)<0?-1:0)<<1;f=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;g=d>>31|((d|0)<0?-1:0)<<1;h=((d|0)<0?-1:0)>>31|((d|0)<0?-1:0)<<1;i=Ou(e^a,f^b,e,f)|0;b=H;a=g^e;e=h^f;f=Ou((dv(i,b,Ou(g^c,h^d,g,h)|0,H,0)|0)^a,H^e,a,e)|0;return f|0}function $u(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+8|0;g=f|0;h=b>>31|((b|0)<0?-1:0)<<1;j=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;k=e>>31|((e|0)<0?-1:0)<<1;l=((e|0)<0?-1:0)>>31|((e|0)<0?-1:0)<<1;m=Ou(h^a,j^b,h,j)|0;b=H;dv(m,b,Ou(k^d,l^e,k,l)|0,H,g)|0;l=Ou(c[g>>2]^h,c[g+4>>2]^j,h,j)|0;j=H;i=f;return(H=j,l)|0}function av(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a;a=c;c=Zu(e,a)|0;f=H;return(H=(da(b,a)|0)+(da(d,e)|0)+f|f&0,c|0|0)|0}function bv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=dv(a,b,c,d,0)|0;return e|0}function cv(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+8|0;g=f|0;dv(a,b,d,e,g)|0;i=f;return(H=c[g+4>>2]|0,c[g>>2]|0)|0}function dv(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;g=a;h=b;i=h;j=d;k=e;l=k;if(!i){m=(f|0)!=0;if(!l){if(m){c[f>>2]=(g>>>0)%(j>>>0);c[f+4>>2]=0}n=0;o=(g>>>0)/(j>>>0)>>>0;return(H=n,o)|0}else{if(!m){n=0;o=0;return(H=n,o)|0}c[f>>2]=a|0;c[f+4>>2]=b&0;n=0;o=0;return(H=n,o)|0}}m=(l|0)==0;do if(j){if(!m){p=(Xu(l|0)|0)-(Xu(i|0)|0)|0;if(p>>>0<=31){q=p+1|0;r=31-p|0;s=p-31>>31;t=q;u=g>>>(q>>>0)&s|i<>>(q>>>0)&s;w=0;x=g<>2]=a|0;c[f+4>>2]=h|b&0;n=0;o=0;return(H=n,o)|0}r=j-1|0;if(r&j){s=(Xu(j|0)|0)+33-(Xu(i|0)|0)|0;q=64-s|0;p=32-s|0;y=p>>31;z=s-32|0;A=z>>31;t=s;u=p-1>>31&i>>>(z>>>0)|(i<>>(s>>>0))&A;v=A&i>>>(s>>>0);w=g<>>(z>>>0))&y|g<>31;break}if(f){c[f>>2]=r&g;c[f+4>>2]=0}if((j|0)==1){n=h|b&0;o=a|0|0;return(H=n,o)|0}else{r=Yu(j|0)|0;n=i>>>(r>>>0)|0;o=i<<32-r|g>>>(r>>>0)|0;return(H=n,o)|0}}else{if(m){if(f){c[f>>2]=(i>>>0)%(j>>>0);c[f+4>>2]=0}n=0;o=(i>>>0)/(j>>>0)>>>0;return(H=n,o)|0}if(!g){if(f){c[f>>2]=0;c[f+4>>2]=(i>>>0)%(l>>>0)}n=0;o=(i>>>0)/(l>>>0)>>>0;return(H=n,o)|0}r=l-1|0;if(!(r&l)){if(f){c[f>>2]=a|0;c[f+4>>2]=r&i|b&0}n=0;o=i>>>((Yu(l|0)|0)>>>0);return(H=n,o)|0}r=(Xu(l|0)|0)-(Xu(i|0)|0)|0;if(r>>>0<=30){s=r+1|0;p=31-r|0;t=s;u=i<>>(s>>>0);v=i>>>(s>>>0);w=0;x=g<>2]=a|0;c[f+4>>2]=h|b&0;n=0;o=0;return(H=n,o)|0}while(0);if(!t){B=x;C=w;D=v;E=u;F=0;G=0}else{b=d|0|0;d=k|e&0;e=Pu(b,d,-1,-1)|0;k=H;h=x;x=w;w=v;v=u;u=t;t=0;do{a=h;h=x>>>31|h<<1;x=t|x<<1;g=v<<1|a>>>31|0;a=v>>>31|w<<1|0;Ou(e,k,g,a)|0;i=H;l=i>>31|((i|0)<0?-1:0)<<1;t=l&1;v=Ou(g,a,l&b,(((i|0)<0?-1:0)>>31|((i|0)<0?-1:0)<<1)&d)|0;w=H;u=u-1|0}while((u|0)!=0);B=h;C=x;D=w;E=v;F=0;G=t}t=C;C=0;if(f){c[f>>2]=E;c[f+4>>2]=D}n=(t|0)>>>31|(B|C)<<1|(C<<1|t>>>31)&0|F;o=(t<<1|0>>>31)&-2|G;return(H=n,o)|0}function ev(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return _b[a&31](b|0,c|0,d|0)|0}function fv(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;$b[a&63](b|0,c|0,d|0,e|0,f|0,g|0,h|0)}function gv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ac[a&3](b|0,c|0,d|0,e|0,f|0)}function hv(a,b){a=a|0;b=b|0;bc[a&127](b|0)}function iv(a,b,c){a=a|0;b=b|0;c=c|0;cc[a&63](b|0,c|0)}function jv(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;dc[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function kv(a,b){a=a|0;b=b|0;return ec[a&63](b|0)|0}function lv(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=+h;fc[a&3](b|0,c|0,d|0,e|0,f|0,g|0,+h)}function mv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;gc[a&3](b|0,c|0,d|0)}function nv(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;hc[a&7](b|0,c|0,d|0,e|0,f|0,+g)}function ov(a){a=a|0;ic[a&3]()}function pv(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;return jc[a&15](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)|0}function qv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return kc[a&7](b|0,c|0,d|0,e|0)|0}function rv(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;lc[a&7](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function sv(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;mc[a&15](b|0,c|0,d|0,e|0,f|0,g|0)}function tv(a,b,c){a=a|0;b=b|0;c=c|0;return nc[a&15](b|0,c|0)|0}function uv(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 oc[a&15](b|0,c|0,d|0,e|0,f|0)|0}function vv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;pc[a&7](b|0,c|0,d|0,e|0)}function wv(a,b,c){a=a|0;b=b|0;c=c|0;ea(0);return 0}function xv(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;ea(1)}function yv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ea(2)}function zv(a){a=a|0;ea(3)}function Av(a,b){a=a|0;b=b|0;ea(4)}function Bv(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;ea(5)}function Cv(a){a=a|0;ea(6);return 0}function Dv(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;ea(7)}function Ev(a,b,c){a=a|0;b=b|0;c=c|0;ea(8)}function Fv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;ea(9)}function Gv(){ea(10)}function Hv(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;ea(11);return 0}function Iv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ea(12);return 0}function Jv(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;ea(13)}function Kv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ea(14)}function Lv(a,b){a=a|0;b=b|0;ea(15);return 0}function Mv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ea(16);return 0}function Nv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ea(17)} + + + + +// EMSCRIPTEN_END_FUNCS +var _b=[wv,dk,ik,li,mk,Pj,Uj,Ai,Yj,Ui,Vi,Zk,cl,pp,up,Mq,Oq,Rq,tq,Aq,Dq,Gq,Ot,Hu,_s,wv,wv,wv,wv,wv,wv,wv];var $b=[xv,fl,hl,jl,ll,nl,pl,rl,tl,vl,xl,zl,Fl,Hl,Jl,Ll,Nl,Pl,Rl,Tl,Vl,Xl,Zl,om,qm,Dm,Fm,Om,Pm,Qm,Sm,Um,nn,on,pn,rn,tn,gp,mp,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv,xv];var ac=[yv,_t,Zt,Wt];var bc=[zv,hi,ii,oi,pi,wi,xi,Di,Ei,_i,Zi,Lj,Kj,$j,_j,pk,ok,rk,qk,vk,uk,xk,wk,Ak,zk,Ck,Bk,Gk,Fk,Ik,Hk,Rk,Qk,Ej,Sk,Ok,Tk,Vk,Uk,qq,$k,_k,el,dl,El,Dl,gm,fm,ym,xm,Mm,Lm,ln,kn,Kn,Jn,Pn,On,Tn,Sn,co,bo,oo,no,zo,yo,Ko,Jo,Wo,Vo,cp,bp,ip,hp,op,np,tp,sp,dq,cq,Kq,Jq,xp,ar,Hr,Gr,Jr,Ir,Wk,pq,sq,Tq,ir,tr,Er,Fr,pt,ot,wt,vt,zt,yt,Bt,Gt,Ft,It,Lt,Jt,Kt,Mt,Nt,fi,Mo,gu,rq,qs,Fs,Es,Ds,Cs,Bs,As,gj,vj,ht,zv,zv,zv];var cc=[Av,ji,qi,yi,Fi,Oj,ck,Wn,Xn,Yn,Zn,$n,ao,go,ho,io,jo,lo,mo,ro,so,to,uo,wo,xo,Co,Do,Eo,Fo,Ho,Io,rp,wp,Or,Qr,Sr,Pr,Rr,Tr,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av,Av];var dc=[Bv,Wm,vn,Bv];var ec=[Cv,ki,hk,jk,kk,gk,ri,si,zi,Tj,Vj,Wj,Sj,Gi,Hi,At,Lk,Nm,Vr,Xr,Zr,ds,fs,$r,bs,mn,Wr,Yr,_r,es,gs,as,cs,Un,Vn,_n,eo,fo,ko,po,qo,vo,Ao,Bo,Go,er,fr,hr,Kr,Mr,Lr,Nr,Xq,Yq,_q,or,pr,sr,zr,Ar,Dr,qt,xt,Ht];var fc=[Dv,dp,jp,Dv];var gc=[Ev,Ti,Mk,Ev];var hc=[Fv,rm,vm,Gm,Im,Fv,Fv,Fv];var ic=[Gv,et,gt,Gv];var jc=[Hv,br,cr,Uq,Vq,jr,lr,ur,wr,Hv,Hv,Hv,Hv,Hv,Hv,Hv];var kc=[Iv,Qq,vq,wq,xq,Fq,Iv,Iv];var lc=[Jv,Mn,Qn,Lo,Po,Xo,Zo,Jv];var mc=[Kv,ek,Qj,hm,im,pm,wm,zm,Am,Em,Jm,qp,vp,bu,au,$t];var nc=[Lv,lk,mi,ti,nk,Xj,Bi,Ii,Zj,Lq,Nq,Pq,yq,Bq,Eq,Lv];var oc=[Mv,Xk,al,Sq,dr,gr,Hq,Wq,Zq,nr,qr,yr,Br,Mv,Mv,Mv];var pc=[Nv,fk,Rj,Yk,bl,Qt,Rt,Tt];return{_OCRAD_result_line:Qc,_strlen:Su,_bitshift64Ashr:Qu,_i64Subtract:Ou,_OCRAD_result_first_character:Rc,_OCRAD_scale:Gc,_OCRAD_set_image_from_file:Dc,_bitshift64Lshr:Ru,_OCRAD_result_lines:Mc,_OCRAD_result_blocks:Lc,_OCRAD_version:yc,_bitshift64Shl:Wu,_OCRAD_close:Ac,_OCRAD_set_utf8_format:Ec,___cxa_is_pointer_type:du,_OCRAD_set_exportfile:Ic,_memset:Vu,_OCRAD_set_threshold:Fc,_OCRAD_transform:Hc,_OCRAD_add_filter:Jc,_OCRAD_recognize:Kc,_OCRAD_result_chars_total:Nc,_OCRAD_open:zc,_OCRAD_result_chars_line:Pc,_OCRAD_get_errno:Bc,_realloc:hu,_i64Add:Pu,_OCRAD_set_image:Cc,_OCRAD_result_chars_block:Oc,___cxa_can_catch:cu,_free:gu,_memmove:Uu,_malloc:fu,_memcpy:Tu,__GLOBAL__I_a:Ki,runPostSets:Nu,stackAlloc:qc,stackSave:rc,stackRestore:sc,setThrew:tc,setTempRet0:wc,getTempRet0:xc,dynCall_iiii:ev,dynCall_viiiiiii:fv,dynCall_viiiii:gv,dynCall_vi:hv,dynCall_vii:iv,dynCall_viiiiiiiii:jv,dynCall_ii:kv,dynCall_viiiiiid:lv,dynCall_viii:mv,dynCall_viiiiid:nv,dynCall_v:ov,dynCall_iiiiiiiii:pv,dynCall_iiiii:qv,dynCall_viiiiiiii:rv,dynCall_viiiiii:sv,dynCall_iii:tv,dynCall_iiiiii:uv,dynCall_viiii:vv}}) + + +// EMSCRIPTEN_END_ASM +(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var _OCRAD_result_line=Module["_OCRAD_result_line"]=asm["_OCRAD_result_line"];var _strlen=Module["_strlen"]=asm["_strlen"];var _bitshift64Ashr=Module["_bitshift64Ashr"]=asm["_bitshift64Ashr"];var _i64Subtract=Module["_i64Subtract"]=asm["_i64Subtract"];var _OCRAD_result_first_character=Module["_OCRAD_result_first_character"]=asm["_OCRAD_result_first_character"];var _OCRAD_scale=Module["_OCRAD_scale"]=asm["_OCRAD_scale"];var _OCRAD_set_image_from_file=Module["_OCRAD_set_image_from_file"]=asm["_OCRAD_set_image_from_file"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _OCRAD_result_lines=Module["_OCRAD_result_lines"]=asm["_OCRAD_result_lines"];var _OCRAD_result_blocks=Module["_OCRAD_result_blocks"]=asm["_OCRAD_result_blocks"];var _OCRAD_version=Module["_OCRAD_version"]=asm["_OCRAD_version"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var _OCRAD_close=Module["_OCRAD_close"]=asm["_OCRAD_close"];var _OCRAD_set_utf8_format=Module["_OCRAD_set_utf8_format"]=asm["_OCRAD_set_utf8_format"];var ___cxa_is_pointer_type=Module["___cxa_is_pointer_type"]=asm["___cxa_is_pointer_type"];var _OCRAD_set_exportfile=Module["_OCRAD_set_exportfile"]=asm["_OCRAD_set_exportfile"];var _memset=Module["_memset"]=asm["_memset"];var _OCRAD_set_threshold=Module["_OCRAD_set_threshold"]=asm["_OCRAD_set_threshold"];var _OCRAD_transform=Module["_OCRAD_transform"]=asm["_OCRAD_transform"];var _OCRAD_add_filter=Module["_OCRAD_add_filter"]=asm["_OCRAD_add_filter"];var _OCRAD_recognize=Module["_OCRAD_recognize"]=asm["_OCRAD_recognize"];var _OCRAD_result_chars_total=Module["_OCRAD_result_chars_total"]=asm["_OCRAD_result_chars_total"];var _OCRAD_open=Module["_OCRAD_open"]=asm["_OCRAD_open"];var _OCRAD_result_chars_line=Module["_OCRAD_result_chars_line"]=asm["_OCRAD_result_chars_line"];var _OCRAD_get_errno=Module["_OCRAD_get_errno"]=asm["_OCRAD_get_errno"];var _realloc=Module["_realloc"]=asm["_realloc"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var _OCRAD_set_image=Module["_OCRAD_set_image"]=asm["_OCRAD_set_image"];var _OCRAD_result_chars_block=Module["_OCRAD_result_chars_block"]=asm["_OCRAD_result_chars_block"];var ___cxa_can_catch=Module["___cxa_can_catch"]=asm["___cxa_can_catch"];var _free=Module["_free"]=asm["_free"];var _memmove=Module["_memmove"]=asm["_memmove"];var _malloc=Module["_malloc"]=asm["_malloc"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var __GLOBAL__I_a=Module["__GLOBAL__I_a"]=asm["__GLOBAL__I_a"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_viiiiiii=Module["dynCall_viiiiiii"]=asm["dynCall_viiiiiii"];var dynCall_viiiii=Module["dynCall_viiiii"]=asm["dynCall_viiiii"];var dynCall_vi=Module["dynCall_vi"]=asm["dynCall_vi"];var dynCall_vii=Module["dynCall_vii"]=asm["dynCall_vii"];var dynCall_viiiiiiiii=Module["dynCall_viiiiiiiii"]=asm["dynCall_viiiiiiiii"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_viiiiiid=Module["dynCall_viiiiiid"]=asm["dynCall_viiiiiid"];var dynCall_viii=Module["dynCall_viii"]=asm["dynCall_viii"];var dynCall_viiiiid=Module["dynCall_viiiiid"]=asm["dynCall_viiiiid"];var dynCall_v=Module["dynCall_v"]=asm["dynCall_v"];var dynCall_iiiiiiiii=Module["dynCall_iiiiiiiii"]=asm["dynCall_iiiiiiiii"];var dynCall_iiiii=Module["dynCall_iiiii"]=asm["dynCall_iiiii"];var dynCall_viiiiiiii=Module["dynCall_viiiiiiii"]=asm["dynCall_viiiiiiii"];var dynCall_viiiiii=Module["dynCall_viiiiii"]=asm["dynCall_viiiiii"];var dynCall_iii=Module["dynCall_iii"]=asm["dynCall_iii"];var dynCall_iiiiii=Module["dynCall_iiiiii"]=asm["dynCall_iiiiii"];var dynCall_viiii=Module["dynCall_viiii"]=asm["dynCall_viiii"];Runtime.stackAlloc=asm["stackAlloc"];Runtime.stackSave=asm["stackSave"];Runtime.stackRestore=asm["stackRestore"];Runtime.setTempRet0=asm["setTempRet0"];Runtime.getTempRet0=asm["getTempRet0"];var i64Math=(function(){var goog={math:{}};goog.math.Long=(function(low,high){this.low_=low|0;this.high_=high|0});goog.math.Long.IntCache_={};goog.math.Long.fromInt=(function(value){if(-128<=value&&value<128){var cachedObj=goog.math.Long.IntCache_[value];if(cachedObj){return cachedObj}}var obj=new goog.math.Long(value|0,value<0?-1:0);if(-128<=value&&value<128){goog.math.Long.IntCache_[value]=obj}return obj});goog.math.Long.fromNumber=(function(value){if(isNaN(value)||!isFinite(value)){return goog.math.Long.ZERO}else if(value<=-goog.math.Long.TWO_PWR_63_DBL_){return goog.math.Long.MIN_VALUE}else if(value+1>=goog.math.Long.TWO_PWR_63_DBL_){return goog.math.Long.MAX_VALUE}else if(value<0){return goog.math.Long.fromNumber(-value).negate()}else{return new goog.math.Long(value%goog.math.Long.TWO_PWR_32_DBL_|0,value/goog.math.Long.TWO_PWR_32_DBL_|0)}});goog.math.Long.fromBits=(function(lowBits,highBits){return new goog.math.Long(lowBits,highBits)});goog.math.Long.fromString=(function(str,opt_radix){if(str.length==0){throw Error("number format error: empty string")}var radix=opt_radix||10;if(radix<2||36=0){throw Error('number format error: interior "-" character: '+str)}var radixToPower=goog.math.Long.fromNumber(Math.pow(radix,8));var result=goog.math.Long.ZERO;for(var i=0;i=0?this.low_:goog.math.Long.TWO_PWR_32_DBL_+this.low_});goog.math.Long.prototype.getNumBitsAbs=(function(){if(this.isNegative()){if(this.equals(goog.math.Long.MIN_VALUE)){return 64}else{return this.negate().getNumBitsAbs()}}else{var val=this.high_!=0?this.high_:this.low_;for(var bit=31;bit>0;bit--){if((val&1<0});goog.math.Long.prototype.greaterThanOrEqual=(function(other){return this.compare(other)>=0});goog.math.Long.prototype.compare=(function(other){if(this.equals(other)){return 0}var thisNeg=this.isNegative();var otherNeg=other.isNegative();if(thisNeg&&!otherNeg){return-1}if(!thisNeg&&otherNeg){return 1}if(this.subtract(other).isNegative()){return-1}else{return 1}});goog.math.Long.prototype.negate=(function(){if(this.equals(goog.math.Long.MIN_VALUE)){return goog.math.Long.MIN_VALUE}else{return this.not().add(goog.math.Long.ONE)}});goog.math.Long.prototype.add=(function(other){var a48=this.high_>>>16;var a32=this.high_&65535;var a16=this.low_>>>16;var a00=this.low_&65535;var b48=other.high_>>>16;var b32=other.high_&65535;var b16=other.low_>>>16;var b00=other.low_&65535;var c48=0,c32=0,c16=0,c00=0;c00+=a00+b00;c16+=c00>>>16;c00&=65535;c16+=a16+b16;c32+=c16>>>16;c16&=65535;c32+=a32+b32;c48+=c32>>>16;c32&=65535;c48+=a48+b48;c48&=65535;return goog.math.Long.fromBits(c16<<16|c00,c48<<16|c32)});goog.math.Long.prototype.subtract=(function(other){return this.add(other.negate())});goog.math.Long.prototype.multiply=(function(other){if(this.isZero()){return goog.math.Long.ZERO}else if(other.isZero()){return goog.math.Long.ZERO}if(this.equals(goog.math.Long.MIN_VALUE)){return other.isOdd()?goog.math.Long.MIN_VALUE:goog.math.Long.ZERO}else if(other.equals(goog.math.Long.MIN_VALUE)){return this.isOdd()?goog.math.Long.MIN_VALUE:goog.math.Long.ZERO}if(this.isNegative()){if(other.isNegative()){return this.negate().multiply(other.negate())}else{return this.negate().multiply(other).negate()}}else if(other.isNegative()){return this.multiply(other.negate()).negate()}if(this.lessThan(goog.math.Long.TWO_PWR_24_)&&other.lessThan(goog.math.Long.TWO_PWR_24_)){return goog.math.Long.fromNumber(this.toNumber()*other.toNumber())}var a48=this.high_>>>16;var a32=this.high_&65535;var a16=this.low_>>>16;var a00=this.low_&65535;var b48=other.high_>>>16;var b32=other.high_&65535;var b16=other.low_>>>16;var b00=other.low_&65535;var c48=0,c32=0,c16=0,c00=0;c00+=a00*b00;c16+=c00>>>16;c00&=65535;c16+=a16*b00;c32+=c16>>>16;c16&=65535;c16+=a00*b16;c32+=c16>>>16;c16&=65535;c32+=a32*b00;c48+=c32>>>16;c32&=65535;c32+=a16*b16;c48+=c32>>>16;c32&=65535;c32+=a00*b32;c48+=c32>>>16;c32&=65535;c48+=a48*b00+a32*b16+a16*b32+a00*b48;c48&=65535;return goog.math.Long.fromBits(c16<<16|c00,c48<<16|c32)});goog.math.Long.prototype.div=(function(other){if(other.isZero()){throw Error("division by zero")}else if(this.isZero()){return goog.math.Long.ZERO}if(this.equals(goog.math.Long.MIN_VALUE)){if(other.equals(goog.math.Long.ONE)||other.equals(goog.math.Long.NEG_ONE)){return goog.math.Long.MIN_VALUE}else if(other.equals(goog.math.Long.MIN_VALUE)){return goog.math.Long.ONE}else{var halfThis=this.shiftRight(1);var approx=halfThis.div(other).shiftLeft(1);if(approx.equals(goog.math.Long.ZERO)){return other.isNegative()?goog.math.Long.ONE:goog.math.Long.NEG_ONE}else{var rem=this.subtract(other.multiply(approx));var result=approx.add(rem.div(other));return result}}}else if(other.equals(goog.math.Long.MIN_VALUE)){return goog.math.Long.ZERO}if(this.isNegative()){if(other.isNegative()){return this.negate().div(other.negate())}else{return this.negate().div(other).negate()}}else if(other.isNegative()){return this.div(other.negate()).negate()}var res=goog.math.Long.ZERO;var rem=this;while(rem.greaterThanOrEqual(other)){var approx=Math.max(1,Math.floor(rem.toNumber()/other.toNumber()));var log2=Math.ceil(Math.log(approx)/Math.LN2);var delta=log2<=48?1:Math.pow(2,log2-48);var approxRes=goog.math.Long.fromNumber(approx);var approxRem=approxRes.multiply(other);while(approxRem.isNegative()||approxRem.greaterThan(rem)){approx-=delta;approxRes=goog.math.Long.fromNumber(approx);approxRem=approxRes.multiply(other)}if(approxRes.isZero()){approxRes=goog.math.Long.ONE}res=res.add(approxRes);rem=rem.subtract(approxRem)}return res});goog.math.Long.prototype.modulo=(function(other){return this.subtract(this.div(other).multiply(other))});goog.math.Long.prototype.not=(function(){return goog.math.Long.fromBits(~this.low_,~this.high_)});goog.math.Long.prototype.and=(function(other){return goog.math.Long.fromBits(this.low_&other.low_,this.high_&other.high_)});goog.math.Long.prototype.or=(function(other){return goog.math.Long.fromBits(this.low_|other.low_,this.high_|other.high_)});goog.math.Long.prototype.xor=(function(other){return goog.math.Long.fromBits(this.low_^other.low_,this.high_^other.high_)});goog.math.Long.prototype.shiftLeft=(function(numBits){numBits&=63;if(numBits==0){return this}else{var low=this.low_;if(numBits<32){var high=this.high_;return goog.math.Long.fromBits(low<>>32-numBits)}else{return goog.math.Long.fromBits(0,low<>>numBits|high<<32-numBits,high>>numBits)}else{return goog.math.Long.fromBits(high>>numBits-32,high>=0?0:-1)}}});goog.math.Long.prototype.shiftRightUnsigned=(function(numBits){numBits&=63;if(numBits==0){return this}else{var high=this.high_;if(numBits<32){var low=this.low_;return goog.math.Long.fromBits(low>>>numBits|high<<32-numBits,high>>>numBits)}else if(numBits==32){return goog.math.Long.fromBits(high,0)}else{return goog.math.Long.fromBits(high>>>numBits-32,0)}}});var navigator={appName:"Modern Browser"};var dbits;var canary=0xdeadbeefcafe;var j_lm=(canary&16777215)==15715070;function BigInteger(a,b,c){if(a!=null)if("number"==typeof a)this.fromNumber(a,b,c);else if(b==null&&"string"!=typeof a)this.fromString(a,256);else this.fromString(a,b)}function nbi(){return new BigInteger(null)}function am1(i,x,w,j,c,n){while(--n>=0){var v=x*this[i++]+w[j]+c;c=Math.floor(v/67108864);w[j++]=v&67108863}return c}function am2(i,x,w,j,c,n){var xl=x&32767,xh=x>>15;while(--n>=0){var l=this[i]&32767;var h=this[i++]>>15;var m=xh*l+h*xl;l=xl*l+((m&32767)<<15)+w[j]+(c&1073741823);c=(l>>>30)+(m>>>15)+xh*h+(c>>>30);w[j++]=l&1073741823}return c}function am3(i,x,w,j,c,n){var xl=x&16383,xh=x>>14;while(--n>=0){var l=this[i]&16383;var h=this[i++]>>14;var m=xh*l+h*xl;l=xl*l+((m&16383)<<14)+w[j]+c;c=(l>>28)+(m>>14)+xh*h;w[j++]=l&268435455}return c}if(j_lm&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;dbits=30}else if(j_lm&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;dbits=26}else{BigInteger.prototype.am=am3;dbits=28}BigInteger.prototype.DB=dbits;BigInteger.prototype.DM=(1<=0;--i)r[i]=this[i];r.t=this.t;r.s=this.s}function bnpFromInt(x){this.t=1;this.s=x<0?-1:0;if(x>0)this[0]=x;else if(x<-1)this[0]=x+DV;else this.t=0}function nbv(i){var r=nbi();r.fromInt(i);return r}function bnpFromString(s,b){var k;if(b==16)k=4;else if(b==8)k=3;else if(b==256)k=8;else if(b==2)k=1;else if(b==32)k=5;else if(b==4)k=2;else{this.fromRadix(s,b);return}this.t=0;this.s=0;var i=s.length,mi=false,sh=0;while(--i>=0){var x=k==8?s[i]&255:intAt(s,i);if(x<0){if(s.charAt(i)=="-")mi=true;continue}mi=false;if(sh==0)this[this.t++]=x;else if(sh+k>this.DB){this[this.t-1]|=(x&(1<>this.DB-sh}else this[this.t-1]|=x<=this.DB)sh-=this.DB}if(k==8&&(s[0]&128)!=0){this.s=-1;if(sh>0)this[this.t-1]|=(1<0&&this[this.t-1]==c)--this.t}function bnToString(b){if(this.s<0)return"-"+this.negate().toString(b);var k;if(b==16)k=4;else if(b==8)k=3;else if(b==2)k=1;else if(b==32)k=5;else if(b==4)k=2;else return this.toRadix(b);var km=(1<0){if(p>p)>0){m=true;r=int2char(d)}while(i>=0){if(p>(p+=this.DB-k)}else{d=this[i]>>(p-=k)&km;if(p<=0){p+=this.DB;--i}}if(d>0)m=true;if(m)r+=int2char(d)}}return m?r:"0"}function bnNegate(){var r=nbi();BigInteger.ZERO.subTo(this,r);return r}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(a){var r=this.s-a.s;if(r!=0)return r;var i=this.t;r=i-a.t;if(r!=0)return this.s<0?-r:r;while(--i>=0)if((r=this[i]-a[i])!=0)return r;return 0}function nbits(x){var r=1,t;if((t=x>>>16)!=0){x=t;r+=16}if((t=x>>8)!=0){x=t;r+=8}if((t=x>>4)!=0){x=t;r+=4}if((t=x>>2)!=0){x=t;r+=2}if((t=x>>1)!=0){x=t;r+=1}return r}function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(n,r){var i;for(i=this.t-1;i>=0;--i)r[i+n]=this[i];for(i=n-1;i>=0;--i)r[i]=0;r.t=this.t+n;r.s=this.s}function bnpDRShiftTo(n,r){for(var i=n;i=0;--i){r[i+ds+1]=this[i]>>cbs|c;c=(this[i]&bm)<=0;--i)r[i]=0;r[ds]=c;r.t=this.t+ds+1;r.s=this.s;r.clamp()}function bnpRShiftTo(n,r){r.s=this.s;var ds=Math.floor(n/this.DB);if(ds>=this.t){r.t=0;return}var bs=n%this.DB;var cbs=this.DB-bs;var bm=(1<>bs;for(var i=ds+1;i>bs}if(bs>0)r[this.t-ds-1]|=(this.s&bm)<>=this.DB}if(a.t>=this.DB}c+=this.s}else{c+=this.s;while(i>=this.DB}c-=a.s}r.s=c<0?-1:0;if(c<-1)r[i++]=this.DV+c;else if(c>0)r[i++]=c;r.t=i;r.clamp()}function bnpMultiplyTo(a,r){var x=this.abs(),y=a.abs();var i=x.t;r.t=i+y.t;while(--i>=0)r[i]=0;for(i=0;i=0)r[i]=0;for(i=0;i=x.DV){r[i+x.t]-=x.DV;r[i+x.t+1]=1}}if(r.t>0)r[r.t-1]+=x.am(i,x[i],r,2*i,0,1);r.s=0;r.clamp()}function bnpDivRemTo(m,q,r){var pm=m.abs();if(pm.t<=0)return;var pt=this.abs();if(pt.t0){pm.lShiftTo(nsh,y);pt.lShiftTo(nsh,r)}else{pm.copyTo(y);pt.copyTo(r)}var ys=y.t;var y0=y[ys-1];if(y0==0)return;var yt=y0*(1<1?y[ys-2]>>this.F2:0);var d1=this.FV/yt,d2=(1<=0){r[r.t++]=1;r.subTo(t,r)}BigInteger.ONE.dlShiftTo(ys,t);t.subTo(y,y);while(y.t=0){var qd=r[--i]==y0?this.DM:Math.floor(r[i]*d1+(r[i-1]+e)*d2);if((r[i]+=y.am(0,qd,r,j,0,ys))0)r.rShiftTo(nsh,r);if(ts<0)BigInteger.ZERO.subTo(r,r)}function bnMod(a){var r=nbi();this.abs().divRemTo(a,null,r);if(this.s<0&&r.compareTo(BigInteger.ZERO)>0)a.subTo(r,r);return r}function Classic(m){this.m=m}function cConvert(x){if(x.s<0||x.compareTo(this.m)>=0)return x.mod(this.m);else return x}function cRevert(x){return x}function cReduce(x){x.divRemTo(this.m,null,x)}function cMulTo(x,y,r){x.multiplyTo(y,r);this.reduce(r)}function cSqrTo(x,r){x.squareTo(r);this.reduce(r)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;function bnpInvDigit(){if(this.t<1)return 0;var x=this[0];if((x&1)==0)return 0;var y=x&3;y=y*(2-(x&15)*y)&15;y=y*(2-(x&255)*y)&255;y=y*(2-((x&65535)*y&65535))&65535;y=y*(2-x*y%this.DV)%this.DV;return y>0?this.DV-y:-y}function Montgomery(m){this.m=m;this.mp=m.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<0)this.m.subTo(r,r);return r}function montRevert(x){var r=nbi();x.copyTo(r);this.reduce(r);return r}function montReduce(x){while(x.t<=this.mt2)x[x.t++]=0;for(var i=0;i>15)*this.mpl&this.um)<<15)&x.DM;j=i+this.m.t;x[j]+=this.m.am(0,u0,x,i,0,this.m.t);while(x[j]>=x.DV){x[j]-=x.DV;x[++j]++}}x.clamp();x.drShiftTo(this.m.t,x);if(x.compareTo(this.m)>=0)x.subTo(this.m,x)}function montSqrTo(x,r){x.squareTo(r);this.reduce(r)}function montMulTo(x,y,r){x.multiplyTo(y,r);this.reduce(r)}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return(this.t>0?this[0]&1:this.s)==0}function bnpExp(e,z){if(e>4294967295||e<1)return BigInteger.ONE;var r=nbi(),r2=nbi(),g=z.convert(this),i=nbits(e)-1;g.copyTo(r);while(--i>=0){z.sqrTo(r,r2);if((e&1<0)z.mulTo(r2,g,r);else{var t=r;r=r2;r2=t}}return z.revert(r)}function bnModPowInt(e,m){var z;if(e<256||m.isEven())z=new Classic(m);else z=new Montgomery(m);return this.exp(e,z)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);function bnpFromRadix(s,b){this.fromInt(0);if(b==null)b=10;var cs=this.chunkSize(b);var d=Math.pow(b,cs),mi=false,j=0,w=0;for(var i=0;i=cs){this.dMultiply(d);this.dAddOffset(w,0);j=0;w=0}}if(j>0){this.dMultiply(Math.pow(b,j));this.dAddOffset(w,0)}if(mi)BigInteger.ZERO.subTo(this,this)}function bnpChunkSize(r){return Math.floor(Math.LN2*this.DB/Math.log(r))}function bnSigNum(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this[0]<=0)return 0;else return 1}function bnpDMultiply(n){this[this.t]=this.am(0,n-1,this,0,0,this.t);++this.t;this.clamp()}function bnpDAddOffset(n,w){if(n==0)return;while(this.t<=w)this[this.t++]=0;this[w]+=n;while(this[w]>=this.DV){this[w]-=this.DV;if(++w>=this.t)this[this.t++]=0;++this[w]}}function bnpToRadix(b){if(b==null)b=10;if(this.signum()==0||b<2||b>36)return"0";var cs=this.chunkSize(b);var a=Math.pow(b,cs);var d=nbv(a),y=nbi(),z=nbi(),r="";this.divRemTo(d,y,z);while(y.signum()>0){r=(a+z.intValue()).toString(b).substr(1)+r;y.divRemTo(d,y,z)}return z.intValue().toString(b)+r}function bnIntValue(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this[0];else if(this.t==0)return 0;return(this[1]&(1<<32-this.DB)-1)<>=this.DB}if(a.t>=this.DB}c+=this.s}else{c+=this.s;while(i>=this.DB}c+=a.s}r.s=c<0?-1:0;if(c>0)r[i++]=c;else if(c<-1)r[i++]=this.DV+c;r.t=i;r.clamp()}BigInteger.prototype.fromRadix=bnpFromRadix;BigInteger.prototype.chunkSize=bnpChunkSize;BigInteger.prototype.signum=bnSigNum;BigInteger.prototype.dMultiply=bnpDMultiply;BigInteger.prototype.dAddOffset=bnpDAddOffset;BigInteger.prototype.toRadix=bnpToRadix;BigInteger.prototype.intValue=bnIntValue;BigInteger.prototype.addTo=bnpAddTo;var Wrapper={abs:(function(l,h){var x=new goog.math.Long(l,h);var ret;if(x.isNegative()){ret=x.negate()}else{ret=x}HEAP32[tempDoublePtr>>2]=ret.low_;HEAP32[tempDoublePtr+4>>2]=ret.high_}),ensureTemps:(function(){if(Wrapper.ensuredTemps)return;Wrapper.ensuredTemps=true;Wrapper.two32=new BigInteger;Wrapper.two32.fromString("4294967296",10);Wrapper.two64=new BigInteger;Wrapper.two64.fromString("18446744073709551616",10);Wrapper.temp1=new BigInteger;Wrapper.temp2=new BigInteger}),lh2bignum:(function(l,h){var a=new BigInteger;a.fromString(h.toString(),10);var b=new BigInteger;a.multiplyTo(Wrapper.two32,b);var c=new BigInteger;c.fromString(l.toString(),10);var d=new BigInteger;c.addTo(b,d);return d}),stringify:(function(l,h,unsigned){var ret=(new goog.math.Long(l,h)).toString();if(unsigned&&ret[0]=="-"){Wrapper.ensureTemps();var bignum=new BigInteger;bignum.fromString(ret,10);ret=new BigInteger;Wrapper.two64.addTo(bignum,ret);ret=ret.toString(10)}return ret}),fromString:(function(str,base,min,max,unsigned){Wrapper.ensureTemps();var bignum=new BigInteger;bignum.fromString(str,base);var bigmin=new BigInteger;bigmin.fromString(min,10);var bigmax=new BigInteger;bigmax.fromString(max,10);if(unsigned&&bignum.compareTo(BigInteger.ZERO)<0){var temp=new BigInteger;bignum.addTo(Wrapper.two64,temp);bignum=temp}var error=false;if(bignum.compareTo(bigmin)<0){bignum=bigmin;error=true}else if(bignum.compareTo(bigmax)>0){bignum=bigmax;error=true}var ret=goog.math.Long.fromString(bignum.toString());HEAP32[tempDoublePtr>>2]=ret.low_;HEAP32[tempDoublePtr+4>>2]=ret.high_;if(error)throw"range error"})};return Wrapper})();if(memoryInitializer){if(typeof Module["locateFile"]==="function"){memoryInitializer=Module["locateFile"](memoryInitializer)}else if(Module["memoryInitializerPrefixURL"]){memoryInitializer=Module["memoryInitializerPrefixURL"]+memoryInitializer}if(ENVIRONMENT_IS_NODE||ENVIRONMENT_IS_SHELL){var data=Module["readBinary"](memoryInitializer);HEAPU8.set(data,STATIC_BASE)}else{addRunDependency("memory initializer");Browser.asyncLoad(memoryInitializer,(function(data){HEAPU8.set(data,STATIC_BASE);removeRunDependency("memory initializer")}),(function(data){throw"could not load memory initializer "+memoryInitializer}))}}function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=new Error;ExitStatus.prototype.constructor=ExitStatus;var initialStackTop;var preloadStartTime=null;var calledMain=false;dependenciesFulfilled=function runCaller(){if(!Module["calledRun"]&&shouldRunNow)run();if(!Module["calledRun"])dependenciesFulfilled=runCaller};Module["callMain"]=Module.callMain=function callMain(args){assert(runDependencies==0,"cannot call main when async dependencies remain! (listen on __ATMAIN__)");assert(__ATPRERUN__.length==0,"cannot call main when preRun functions remain to be called");args=args||[];ensureInitRuntime();var argc=args.length+1;function pad(){for(var i=0;i<4-1;i++){argv.push(0)}}var argv=[allocate(intArrayFromString(Module["thisProgram"]),"i8",ALLOC_NORMAL)];pad();for(var i=0;i0){return}preRun();if(runDependencies>0)return;if(Module["calledRun"])return;function doRun(){if(Module["calledRun"])return;Module["calledRun"]=true;if(ABORT)return;ensureInitRuntime();preMain();if(ENVIRONMENT_IS_WEB&&preloadStartTime!==null){Module.printErr("pre-main prep time: "+(Date.now()-preloadStartTime)+" ms")}if(Module["_main"]&&shouldRunNow){Module["callMain"](args)}postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout((function(){setTimeout((function(){Module["setStatus"]("")}),1);doRun()}),1)}else{doRun()}}Module["run"]=Module.run=run;function exit(status){if(Module["noExitRuntime"]){return}ABORT=true;EXITSTATUS=status;STACKTOP=initialStackTop;exitRuntime();if(ENVIRONMENT_IS_NODE){process["stdout"]["once"]("drain",(function(){process["exit"](status)}));console.log(" ");setTimeout((function(){process["exit"](status)}),500)}else if(ENVIRONMENT_IS_SHELL&&typeof quit==="function"){quit(status)}throw new ExitStatus(status)}Module["exit"]=Module.exit=exit;function abort(text){if(text){Module.print(text);Module.printErr(text)}ABORT=true;EXITSTATUS=1;var extra="\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";throw"abort() at "+stackTrace()+extra}Module["abort"]=Module.abort=abort;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}var shouldRunNow=true;if(Module["noInitialRun"]){shouldRunNow=false}run();var API={};function _simple(image,opt){if(image.data){var width=image.width,height=image.height,src=image.data;var header="P5\n"+width+" "+height+"\n255\n";var j=header.length;var dst=new Uint8Array(j+width*height);var srcLength=src.length|0,srcLength_16=srcLength-16|0;for(var i=0;i>14;dst[j+1]=src[i+4]*coeff_r+src[i+5]*coeff_g+src[i+6]*coeff_b+8192>>14;dst[j+2]=src[i+8]*coeff_r+src[i+9]*coeff_g+src[i+10]*coeff_b+8192>>14;dst[j+3]=src[i+12]*coeff_r+src[i+13]*coeff_g+src[i+14]*coeff_b+8192>>14}for(;i>14;image=dst}if(image instanceof ArrayBuffer)image=new Uint8Array(image);API.write_file("/in.pnm",image);var desc=API.open();API.set_image_from_file(desc,"/in.pnm",opt.invert?1:0);if(opt.raw)API.set_exportfile(desc,"/out.txt");if(opt.filters){(opt.filters.forEach?opt.filters:[opt.filters]).forEach((function(filter_name){if(["letters","letters_only","numbers","numbers_only","same_height","upper_num","upper_num_only"].indexOf(filter_name)!=-1){API.add_filter(desc,filter_name)}else throw"Invalid Filter"}))}if(opt.transform){if(["none","rotate90","rotate180","rotate270","mirror_lr","mirror_tb","mirror_d1","mirror_d2"].indexOf(opt.transform)!=-1){API.transform(desc,opt.transform)}else throw"Invalid transformation!"}if(opt.scale){if(API.scale(desc,Math.round(opt.scale))<0)throw"Error scaling image"}API.set_utf8_format(desc,1);API.recognize(desc,0);var ret;if(opt.raw){ret=API.read_text("/out.txt");API.delete_file("/out.txt")}else{var text="";var block_count=API.result_blocks(desc);for(var i=0;i0){var etc=e[6].trim();while(etc[0]==","&&etc[1]==" "){etc=etc.slice(2);var m=etc.match(/^\'(.+?)\'(\d+)/);matches.push({letter:m[1],confidence:parseInt(m[2])});etc=etc.slice(m[0].length)}}letters.push({x:parseInt(e[1]),y:parseInt(e[2]),width:parseInt(e[3]),height:parseInt(e[4]),matches:matches})}all_letters=all_letters.concat(letters);lines.push({height:parseInt(cc[3]),letters:letters})}all_lines=all_lines.concat(lines);blocks.push({x:parseInt(th[2]),y:parseInt(th[3]),width:parseInt(th[4]),height:parseInt(th[5]),lines:lines})}return{blocks:blocks,lines:all_lines,letters:all_letters}}var OCRAD=function OCRAD(image,arg1,arg2){var opt={},async=false,rawfn;if(typeof arg1=="object"){opt=arg1;if(typeof arg2=="function")async=arg2}else if(typeof arg1=="function"){async=arg1}else if(typeof arg1=="boolean"&&typeof arg2=="function"){opt={invert:arg1};rawfn=arg2}if(rawfn||opt.verbose)opt.raw=true;if(opt.numeric)opt.filters=["numbers_only"];if(typeof image=="function")image=image();if(image.getContext){image=image.getContext("2d")}else if(image.tagName=="IMG"||image.tagName=="VIDEO"){var c=document.createElement("canvas");if(image.tagName=="IMG"){c.width=image.naturalWidth;c.height=image.naturalHeight}else if(image.tagName=="VIDEO"){c.width=image.videoWidth;c.height=image.videoHeight}var ctx=c.getContext("2d");ctx.drawImage(image,0,0);image=ctx}if(image.getImageData)image=image.getImageData(0,0,image.canvas.width,image.canvas.height);function postprocess(data){if(rawfn)data.split("\n").forEach(rawfn);if(opt.verbose)return parseOcradResultsFile(data.split("\n"));return data}var worker;if(async){var code="var API = ("+createOcradInstance.toString()+")(); onmessage = function(e){ postMessage(API._simple(e.data.image, e.data.opt)) }";worker=createWebWorkerFromString(code);if(worker){worker.onmessage=(function(e){async(postprocess(e.data));worker.terminate()});worker.postMessage({image:image,opt:opt})}else{async(postprocess(OCRAD._simple(image,opt)))}}else{return postprocess(OCRAD._simple(image,opt))}};var APISingleton;function fwrap(name){return(function(){OCRAD.preinit();return APISingleton[name].apply(APISingleton,arguments)})}OCRAD.preinit=(function(){if(!APISingleton){APISingleton=createOcradInstance()}});OCRAD.set_print=fwrap("set_print");OCRAD.write_file=fwrap("write_file");OCRAD.read_file=fwrap("read_file");OCRAD.read_text=fwrap("read_text");OCRAD.delete_file=fwrap("delete_file");OCRAD.version=fwrap("version");OCRAD.open=fwrap("open");OCRAD.close=fwrap("close");OCRAD.get_errno=fwrap("get_errno");OCRAD.set_image=fwrap("set_image");OCRAD.set_image_from_file=fwrap("set_image_from_file");OCRAD.set_exportfile=fwrap("set_exportfile");OCRAD.add_filter=fwrap("add_filter");OCRAD.set_utf8_format=fwrap("set_utf8_format");OCRAD.set_threshold=fwrap("set_threshold");OCRAD.scale=fwrap("scale");OCRAD.transform=fwrap("transform");OCRAD.recognize=fwrap("recognize");OCRAD.result_blocks=fwrap("result_blocks");OCRAD.result_lines=fwrap("result_lines");OCRAD.result_chars_total=fwrap("result_chars_total");OCRAD.result_chars_block=fwrap("result_chars_block");OCRAD.result_chars_line=fwrap("result_chars_line");OCRAD.result_line=fwrap("result_line");OCRAD.result_first_character=fwrap("result_first_character");OCRAD._simple=fwrap("_simple");return OCRAD})();if(typeof module!=="undefined"&&module.exports){module.exports=OCRAD} + + + +