-
Notifications
You must be signed in to change notification settings - Fork 0
/
bpgdec.js
144 lines (132 loc) · 244 KB
/
bpgdec.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
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
/*
* BPG Javascript decoder
*
* Copyright (c) 2014 Fabrice Bellard
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
function b(a){throw a;}var j=!0,k=null,l=!1,n;n||(n=eval("(function() { try { return Module || {} } catch(e) { return {} } })()"));var p={},v;for(v in n)n.hasOwnProperty(v)&&(p[v]=n[v]);var w="object"===typeof process&&"function"===typeof require,x="object"===typeof window,aa="function"===typeof importScripts,ba=!x&&!w&&!aa;
if(w){n.print||(n.print=function(a){process.stdout.write(a+"\n")});n.printErr||(n.printErr=function(a){process.stderr.write(a+"\n")});var ca=require("fs"),da=require("path");n.read=function(a,d){var a=da.normalize(a),c=ca.readFileSync(a);!c&&a!=da.resolve(a)&&(a=path.join(__dirname,"..","src",a),c=ca.readFileSync(a));c&&!d&&(c=c.toString());return c};n.readBinary=function(a){return n.read(a,j)};n.load=function(a){ea(read(a))};n.thisProgram=process.argv[1].replace(/\\/g,"/");n.arguments=process.argv.slice(2);
"undefined"!==typeof module&&(module.exports=n);process.on("uncaughtException",function(a){a instanceof y||b(a)})}else ba?(n.print||(n.print=print),"undefined"!=typeof printErr&&(n.printErr=printErr),n.read="undefined"!=typeof read?read:function(){b("no read() available (jsc?)")},n.readBinary=function(a){if("function"===typeof readbuffer)return new Uint8Array(readbuffer(a));a=read(a,"binary");z("object"===typeof a);return a},"undefined"!=typeof scriptArgs?n.arguments=scriptArgs:"undefined"!=typeof arguments&&
(n.arguments=arguments),this.Module=n,eval("if (typeof gc === 'function' && gc.toString().indexOf('[native code]') > 0) var gc = undefined")):x||aa?(n.read=function(a){var d=new XMLHttpRequest;d.open("GET",a,l);d.send(k);return d.responseText},"undefined"!=typeof arguments&&(n.arguments=arguments),"undefined"!==typeof console?(n.print||(n.print=function(a){console.log(a)}),n.printErr||(n.printErr=function(a){console.log(a)})):n.print||(n.print=function(){}),x?window.Module=n:n.load=importScripts):
b("Unknown runtime environment. Where are we?");function ea(a){eval.call(k,a)}!n.load&&n.read&&(n.load=function(a){ea(n.read(a))});n.print||(n.print=function(){});n.printErr||(n.printErr=n.print);n.arguments||(n.arguments=[]);n.thisProgram||(n.thisProgram="./this.program");n.print=n.print;n.e=n.printErr;n.preRun=[];n.postRun=[];for(v in p)p.hasOwnProperty(v)&&(n[v]=p[v]);
var B={ca:function(a){fa=a},Z:function(){return fa},D:function(){return A},J:function(a){A=a},H:function(a){switch(a){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:return"*"===a[a.length-1]?B.p:"i"===a[0]?(a=parseInt(a.substr(1)),z(0===a%8),a/8):0}},Y:function(a){return Math.max(B.H(a),B.p)},da:16,oa:function(a,d,c){return!c&&("i64"==a||"double"==a)?8:!a?Math.min(d,8):Math.min(d||(a?B.Y(a):0),B.p)},A:function(a,
d,c){return c&&c.length?(c.splice||(c=Array.prototype.slice.call(c)),c.splice(0,0,d),n["dynCall_"+a].apply(k,c)):n["dynCall_"+a].call(k,d)},n:[],M:function(a){for(var d=0;d<B.n.length;d++)if(!B.n[d])return B.n[d]=a,2*(1+d);b("Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS.")},ba:function(a){B.n[(a-2)/2]=k},pa:function(a,d){B.u||(B.u={});var c=B.u[a];if(c)return c;for(var c=[],e=0;e<d;e++)c.push(String.fromCharCode(36)+e);e=D(a);'"'===e[0]&&(e.indexOf('"',
1)===e.length-1?e=e.substr(1,e.length-2):E("invalid EM_ASM input |"+e+"|. Please use EM_ASM(..code..) (no quotes) or EM_ASM({ ..code($0).. }, input) (to input values)"));try{var f=eval("(function(Module, FS) { return function("+c.join(",")+"){ "+e+" } })")(n,"undefined"!==typeof FS?FS:k)}catch(g){n.e("error in executing inline EM_ASM code: "+g+" on: \n\n"+e+"\n\nwith args |"+c+"| (make sure to use the right one out of EM_ASM, EM_ASM_ARGS, etc.)"),b(g)}return B.u[a]=f},g:function(a){B.g.C||(B.g.C=
{});B.g.C[a]||(B.g.C[a]=1,n.e(a))},B:{},ra:function(a,d){z(d);B.B[d]||(B.B[d]={});var c=B.B[d];c[a]||(c[a]=function(){return B.A(d,a,arguments)});return c[a]},F:function(){var a=[],d=0;this.$=function(c){c&=255;if(0==a.length){if(0==(c&128))return String.fromCharCode(c);a.push(c);d=192==(c&224)?1:224==(c&240)?2:3;return""}if(d&&(a.push(c),d--,0<d))return"";var c=a[0],e=a[1],f=a[2],g=a[3];2==a.length?c=String.fromCharCode((c&31)<<6|e&63):3==a.length?c=String.fromCharCode((c&15)<<12|(e&63)<<6|f&63):
(c=(c&7)<<18|(e&63)<<12|(f&63)<<6|g&63,c=String.fromCharCode(((c-65536)/1024|0)+55296,(c-65536)%1024+56320));a.length=0;return c};this.aa=function(a){for(var a=unescape(encodeURIComponent(a)),d=[],f=0;f<a.length;f++)d.push(a.charCodeAt(f));return d}},qa:function(){b("You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work")},o:function(a){var d=A;A=A+a|0;A=A+15&-16;return d},K:function(a){var d=F;F=F+a|0;F=F+15&-16;return d},k:function(a){var d=
H;H=H+a|0;H=H+15&-16;H>=I&&E("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+I+", (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.");return d},q:function(a,d){return Math.ceil(a/(d?d:16))*(d?d:16)},ua:function(a,d,c){return c?+(a>>>0)+4294967296*+(d>>>0):+(a>>>0)+4294967296*+(d|0)},L:8,p:4,ea:0};n.Runtime=B;B.addFunction=B.M;
B.removeFunction=B.ba;var J=l,K,ga,fa;function z(a,d){a||E("Assertion failed: "+d)}function ha(a){var d=n["_"+a];if(!d)try{d=eval("_"+a)}catch(c){}z(d,"Cannot call unknown function "+a+" (perhaps LLVM optimizations or closure removed it?)");return d}var ia,ja;
(function(){function a(a){a=a.toString().match(f).slice(1);return{arguments:a[0],body:a[1],returnValue:a[2]}}var d=0,c={stackSave:function(){d=B.D()},stackRestore:function(){B.J(d)},arrayToC:function(a){var c=B.o(a.length);ka(a,c);return c},stringToC:function(a){var c=0;a!==k&&(void 0!==a&&0!==a)&&(c=B.o((a.length<<2)+1),la(a,c));return c}},e={string:c.stringToC,array:c.arrayToC};ja=function(a,f,g,h){var a=ha(a),m=[];if(h)for(var u=0;u<h.length;u++){var Q=e[g[u]];Q?(0===d&&(d=B.D()),m[u]=Q(h[u])):
m[u]=h[u]}g=a.apply(k,m);"string"===f&&(g=D(g));0!==d&&c.stackRestore();return g};var f=/^function\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/,g={},h;for(h in c)c.hasOwnProperty(h)&&(g[h]=a(c[h]));ia=function(c,d,e){var e=e||[],f=ha(c),c=e.every(function(a){return"number"===a}),h="string"!==d;if(h&&c)return f;var u=e.map(function(a,c){return"$"+c}),d="(function("+u.join(",")+") {",Q=e.length;if(!c)for(var d=d+(g.stackSave.body+";"),G=0;G<Q;G++){var Ca=u[G],R=e[G];"number"!==R&&
(R=g[R+"ToC"],d+="var "+R.arguments+" = "+Ca+";",d+=R.body+";",d+=Ca+"="+R.returnValue+";")}e=a(function(){return f}).returnValue;d+="var ret = "+e+"("+u.join(",")+");";h||(e=a(function(){return D}).returnValue,d+="ret = "+e+"(ret);");c||(d+=g.stackRestore.body+";");return eval(d+"return ret})")}})();n.cwrap=ia;n.ccall=ja;
function ma(a,d,c){c=c||"i8";"*"===c.charAt(c.length-1)&&(c="i32");switch(c){case "i1":L[a>>0]=d;break;case "i8":L[a>>0]=d;break;case "i16":M[a>>1]=d;break;case "i32":N[a>>2]=d;break;case "i64":ga=[d>>>0,(K=d,1<=+na(K)?0<K?(oa(+pa(K/4294967296),4294967295)|0)>>>0:~~+qa((K-+(~~K>>>0))/4294967296)>>>0:0)];N[a>>2]=ga[0];N[a+4>>2]=ga[1];break;case "float":O[a>>2]=d;break;case "double":ra[a>>3]=d;break;default:E("invalid type for setValue: "+c)}}n.setValue=ma;
function sa(a,d){d=d||"i8";"*"===d.charAt(d.length-1)&&(d="i32");switch(d){case "i1":return L[a>>0];case "i8":return L[a>>0];case "i16":return M[a>>1];case "i32":return N[a>>2];case "i64":return N[a>>2];case "float":return O[a>>2];case "double":return ra[a>>3];default:E("invalid type for setValue: "+d)}return k}n.getValue=sa;var ta=2,ua=4;n.ALLOC_NORMAL=0;n.ALLOC_STACK=1;n.ALLOC_STATIC=ta;n.ALLOC_DYNAMIC=3;n.ALLOC_NONE=ua;
function P(a,d,c,e){var f,g;"number"===typeof a?(f=j,g=a):(f=l,g=a.length);var h="string"===typeof d?d:k,c=c==ua?e:[va,B.o,B.K,B.k][void 0===c?ta:c](Math.max(g,h?1:d.length));if(f){e=c;z(0==(c&3));for(a=c+(g&-4);e<a;e+=4)N[e>>2]=0;for(a=c+g;e<a;)L[e++>>0]=0;return c}if("i8"===h)return a.subarray||a.slice?S.set(a,c):S.set(new Uint8Array(a),c),c;for(var e=0,i,q;e<g;){var s=a[e];"function"===typeof s&&(s=B.sa(s));f=h||d[e];0===f?e++:("i64"==f&&(f="i32"),ma(c+e,s,f),q!==f&&(i=B.H(f),q=f),e+=i)}return c}
n.allocate=P;function D(a,d){if(0===d)return"";for(var c=l,e,f=0;;){e=S[a+f>>0];if(128<=e)c=j;else if(0==e&&!d)break;f++;if(d&&f==d)break}d||(d=f);var g="";if(!c){for(;0<d;)e=String.fromCharCode.apply(String,S.subarray(a,a+Math.min(d,1024))),g=g?g+e:e,a+=1024,d-=1024;return g}c=new B.F;for(f=0;f<d;f++)e=S[a+f>>0],g+=c.$(e);return g}n.Pointer_stringify=D;n.UTF16ToString=function(a){for(var d=0,c="";;){var e=M[a+2*d>>1];if(0==e)return c;++d;c+=String.fromCharCode(e)}};
n.stringToUTF16=function(a,d){for(var c=0;c<a.length;++c)M[d+2*c>>1]=a.charCodeAt(c);M[d+2*a.length>>1]=0};n.UTF32ToString=function(a){for(var d=0,c="";;){var e=N[a+4*d>>2];if(0==e)return c;++d;65536<=e?(e-=65536,c+=String.fromCharCode(55296|e>>10,56320|e&1023)):c+=String.fromCharCode(e)}};n.stringToUTF32=function(a,d){for(var c=0,e=0;e<a.length;++e){var f=a.charCodeAt(e);if(55296<=f&&57343>=f)var g=a.charCodeAt(++e),f=65536+((f&1023)<<10)|g&1023;N[d+4*c>>2]=f;++c}N[d+4*c>>2]=0};
function wa(a){function d(c,e,f){var e=e||Infinity,g="",h=[],t;if("N"===a[i]){i++;"K"===a[i]&&i++;for(t=[];"E"!==a[i];)if("S"===a[i]){i++;var r=a.indexOf("_",i);t.push(s[a.substring(i,r)||0]||"?");i=r+1}else if("C"===a[i])t.push(t[t.length-1]),i+=2;else{var r=parseInt(a.substr(i)),m=r.toString().length;if(!r||!m){i--;break}var Ga=a.substr(i+m,r);t.push(Ga);s.push(Ga);i+=m+r}i++;t=t.join("::");e--;if(0===e)return c?[t]:t}else if(("K"===a[i]||C&&"L"===a[i])&&i++,r=parseInt(a.substr(i)))m=r.toString().length,
t=a.substr(i+m,r),i+=m+r;C=l;"I"===a[i]?(i++,r=d(j),m=d(j,1,j),g+=m[0]+" "+t+"<"+r.join(", ")+">"):g=t;a:for(;i<a.length&&0<e--;)if(t=a[i++],t in q)h.push(q[t]);else switch(t){case "P":h.push(d(j,1,j)[0]+"*");break;case "R":h.push(d(j,1,j)[0]+"&");break;case "L":i++;r=a.indexOf("E",i)-i;h.push(a.substr(i,r));i+=r+2;break;case "A":r=parseInt(a.substr(i));i+=r.toString().length;"_"!==a[i]&&b("?");i++;h.push(d(j,1,j)[0]+" ["+r+"]");break;case "E":break a;default:g+="?"+t;break a}!f&&(1===h.length&&"void"===
h[0])&&(h=[]);return c?(g&&h.push(g+"?"),h):g+("("+h.join(", ")+")")}var c=!!n.___cxa_demangle;if(c)try{var e=va(a.length);la(a.substr(1),e);var f=va(4),g=n.___cxa_demangle(e,0,0,f);if(0===sa(f,"i32")&&g)return D(g)}catch(h){}finally{e&&xa(e),f&&xa(f),g&&xa(g)}var i=3,q={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:"..."},s=[],C=j,
e=a;try{if("Object._main"==a||"_main"==a)return"main()";"number"===typeof a&&(a=D(a));if("_"!==a[0]||"_"!==a[1]||"Z"!==a[2])return a;switch(a[3]){case "n":return"operator new()";case "d":return"operator delete()"}e=d()}catch(m){e+="?"}0<=e.indexOf("?")&&!c&&B.g("warning: a problem occurred in builtin C++ name demangling; build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling");return e}
function ya(){var a;a:{a=Error();if(!a.stack){try{b(Error(0))}catch(d){a=d}if(!a.stack){a="(no stack trace available)";break a}}a=a.stack.toString()}return a.replace(/__Z[\w\d_]+/g,function(a){var d=wa(a);return a===d?a:a+" ["+d+"]"})}n.stackTrace=function(){return ya()};for(var L,S,M,za,N,Aa,O,ra,Ba=0,F=0,Da=0,A=0,Ea=0,Fa=0,H=0,Ha=n.TOTAL_STACK||5242880,I=n.TOTAL_MEMORY||33554432,T=65536;T<I||T<2*Ha;)T=16777216>T?2*T:T+16777216;
T!==I&&(n.e("increasing TOTAL_MEMORY to "+T+" to be compliant with the asm.js spec"),I=T);z("undefined"!==typeof Int32Array&&"undefined"!==typeof Float64Array&&!!(new Int32Array(1)).subarray&&!!(new Int32Array(1)).set,"JS engine does not provide full typed array support");var U=new ArrayBuffer(I);L=new Int8Array(U);M=new Int16Array(U);N=new Int32Array(U);S=new Uint8Array(U);za=new Uint16Array(U);Aa=new Uint32Array(U);O=new Float32Array(U);ra=new Float64Array(U);N[0]=255;z(255===S[0]&&0===S[3],"Typed arrays 2 must be run on a little-endian system");
n.HEAP=void 0;n.buffer=U;n.HEAP8=L;n.HEAP16=M;n.HEAP32=N;n.HEAPU8=S;n.HEAPU16=za;n.HEAPU32=Aa;n.HEAPF32=O;n.HEAPF64=ra;function V(a){for(;0<a.length;){var d=a.shift();if("function"==typeof d)d();else{var c=d.na;"number"===typeof c?void 0===d.r?B.A("v",c):B.A("vi",c,[d.r]):c(void 0===d.r?k:d.r)}}}var Ia=[],Ja=[],Ka=[],La=[],Ma=[],Na=l;function Oa(a){Ia.unshift(a)}n.addOnPreRun=n.ja=Oa;n.addOnInit=n.ga=function(a){Ja.unshift(a)};n.addOnPreMain=n.ia=function(a){Ka.unshift(a)};n.addOnExit=n.fa=function(a){La.unshift(a)};
function Pa(a){Ma.unshift(a)}n.addOnPostRun=n.ha=Pa;function Qa(a,d,c){a=(new B.F).aa(a);c&&(a.length=c);d||a.push(0);return a}n.intArrayFromString=Qa;n.intArrayToString=function(a){for(var d=[],c=0;c<a.length;c++){var e=a[c];255<e&&(e&=255);d.push(String.fromCharCode(e))}return d.join("")};function la(a,d,c){a=Qa(a,c);for(c=0;c<a.length;)L[d+c>>0]=a[c],c+=1}n.writeStringToMemory=la;function ka(a,d){for(var c=0;c<a.length;c++)L[d+c>>0]=a[c]}n.writeArrayToMemory=ka;
n.writeAsciiToMemory=function(a,d,c){for(var e=0;e<a.length;e++)L[d+e>>0]=a.charCodeAt(e);c||(L[d+a.length>>0]=0)};if(!Math.imul||-5!==Math.imul(4294967295,5))Math.imul=function(a,d){var c=a&65535,e=d&65535;return c*e+((a>>>16)*e+c*(d>>>16)<<16)|0};Math.ta=Math.imul;var na=Math.abs,qa=Math.ceil,pa=Math.floor,oa=Math.min,W=0,Ra=k,X=k;function Sa(){W++;n.monitorRunDependencies&&n.monitorRunDependencies(W)}n.addRunDependency=Sa;
function Ta(){W--;n.monitorRunDependencies&&n.monitorRunDependencies(W);if(0==W&&(Ra!==k&&(clearInterval(Ra),Ra=k),X)){var a=X;X=k;a()}}n.removeRunDependency=Ta;n.preloadedImages={};n.preloadedAudios={};var Y=k,Ba=8,F=Ba+8272;Ja.push();
P([1,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,0,0,0,0,0,0,1,0,1,2,0,1,2,3,1,2,3,2,3,3,0,1,0,2,1,0,3,2,1,0,3,2,1,3,2,3,0,0,1,0,1,2,0,1,2,3,0,1,2,3,4,0,1,2,3,4,5,0,1,2,3,4,5,6,0,1,2,3,4,5,6,7,1,2,3,4,5,6,7,2,3,4,5,6,7,3,4,5,6,7,4,5,6,7,5,6,7,6,7,7,0,1,0,2,1,0,3,2,1,0,4,3,2,1,0,5,4,3,2,1,0,6,5,4,3,2,1,0,7,6,5,4,3,2,1,0,7,6,5,4,3,2,1,7,6,5,4,3,2,7,6,5,4,3,7,6,5,4,7,6,5,7,6,7,67,65,66,65,67,95,77,65,88,95,66,73,78,32,58,32,37,100,10,0,0,0,0,0,40,45,51,57,64,72,0,0,29,0,0,0,30,0,0,0,31,0,0,0,32,0,0,0,33,0,
0,0,33,0,0,0,34,0,0,0,34,0,0,0,35,0,0,0,35,0,0,0,36,0,0,0,36,0,0,0,37,0,0,0,37,0,0,0,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,9,9,9,9,9,9,10,10,10,10,10,10,11,11,11,11,11,11,12,12,0,0,0,0,0,0,0,2,5,9,1,4,8,12,3,7,11,14,6,10,13,15,0,0,0,0,0,0,0,0,0,2,1,3,0,0,0,0,0,2,5,9,14,20,
27,35,1,4,8,13,19,26,34,42,3,7,12,18,25,33,41,48,6,11,17,24,32,40,47,53,10,16,23,31,39,46,52,57,15,22,30,38,45,51,56,60,21,29,37,44,50,55,59,62,28,36,43,49,54,58,61,63,0,1,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,0,1,2,3,16,17,18,19,4,5,6,7,20,21,22,23,8,9,10,11,24,25,26,27,12,13,14,15,28,29,30,31,32,33,34,35,48,49,50,51,36,37,38,39,52,53,54,55,40,41,42,43,56,57,58,59,44,45,46,47,60,61,62,63,0,1,4,5,2,3,4,5,6,6,8,8,7,7,8,8,1,1,1,0,1,1,0,0,1,0,0,0,
0,0,0,0,2,2,2,2,1,1,1,1,0,0,0,0,0,0,0,0,2,1,0,0,2,1,0,0,2,1,0,0,2,1,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,153,200,139,141,157,154,154,154,154,154,154,154,154,184,154,154,154,184,63,139,154,154,154,154,154,154,154,154,154,154,154,154,154,154,154,154,154,153,138,138,111,141,94,138,182,154,139,139,139,139,139,139,110,110,124,125,140,153,125,127,140,109,111,143,127,111,79,108,123,63,110,110,124,125,140,153,125,127,140,109,111,143,127,111,79,108,123,63,91,171,134,141,111,111,125,110,110,94,124,108,124,107,
125,141,179,153,125,107,125,141,179,153,125,107,125,141,179,153,125,140,139,182,182,152,136,152,136,153,136,139,111,136,139,111,141,111,140,92,137,138,140,152,138,139,153,74,149,92,139,107,122,152,140,179,166,182,140,227,122,197,138,153,136,167,152,152,154,154,154,154,154,154,154,154,154,154,154,154,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,153,185,107,139,126,154,197,185,201,154,154,154,149,154,139,154,154,154,152,139,110,122,95,79,63,31,31,153,153,153,153,140,198,140,198,168,79,124,138,94,153,111,
149,107,167,154,139,139,139,139,139,139,125,110,94,110,95,79,125,111,110,78,110,111,111,95,94,108,123,108,125,110,94,110,95,79,125,111,110,78,110,111,111,95,94,108,123,108,121,140,61,154,155,154,139,153,139,123,123,63,153,166,183,140,136,153,154,166,183,140,136,153,154,166,183,140,136,153,154,170,153,123,123,107,121,107,121,167,151,183,140,151,183,140,140,140,154,196,196,167,154,152,167,182,182,134,149,136,153,121,136,137,169,194,166,167,154,167,137,182,107,167,91,122,107,167,154,154,154,154,154,
154,154,154,154,154,154,154,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,153,160,107,139,126,154,197,185,201,154,154,154,134,154,139,154,154,183,152,139,154,137,95,79,63,31,31,153,153,153,153,169,198,169,198,168,79,224,167,122,153,111,149,92,167,154,139,139,139,139,139,139,125,110,124,110,95,94,125,111,111,79,125,126,111,111,79,108,123,93,125,110,124,110,95,94,125,111,111,79,125,126,111,111,79,108,123,93,121,140,61,154,170,154,139,153,139,123,123,63,124,166,183,140,136,153,154,166,183,140,136,153,154,
166,183,140,136,153,154,170,153,138,138,122,121,122,121,167,151,183,140,151,183,140,140,140,154,196,167,167,154,152,167,182,182,134,149,136,153,121,136,122,169,208,166,167,154,152,167,182,107,167,91,107,107,167,154,154,154,154,154,154,154,154,154,154,154,154,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,
1,1,2,2,2,2,3,3,3,3,4,4,4,5,5,6,6,7,8,9,10,11,13,14,16,18,20,22,24,0,0,29,0,0,0,30,0,0,0,31,0,0,0,32,0,0,0,33,0,0,0,33,0,0,0,34,0,0,0,34,0,0,0,35,0,0,0,35,0,0,0,36,0,0,0,36,0,0,0,37,0,0,0,37,0,0,0,104,101,118,99,0,0,0,0,216,5,0,0,0,0,0,0,0,0,0,0,53,54,50,72,34,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,120,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,0,0,0,0,68,101,99,111,100,101,100,32,102,114,97,109,101,32,119,105,116,
104,32,80,79,67,32,37,100,46,10,0,0,0,0,0,73,110,118,97,108,105,100,32,78,65,76,32,117,110,105,116,32,115,105,122,101,46,10,0,78,111,32,115,116,97,114,116,32,99,111,100,101,32,105,115,32,102,111,117,110,100,46,10,0,0,0,0,0,0,0,0,69,114,114,111,114,32,112,97,114,115,105,110,103,32,78,65,76,32,117,110,105,116,32,35,37,100,46,10,0,0,0,0,73,110,118,97,108,105,100,32,78,65,76,32,117,110,105,116,32,37,100,44,32,115,107,105,112,112,105,110,103,46,10,0,70,105,114,115,116,32,115,108,105,99,101,32,105,110,
32,97,32,102,114,97,109,101,32,109,105,115,115,105,110,103,46,10,0,0,0,0,0,0,0,0,78,111,110,45,109,97,116,99,104,105,110,103,32,78,65,76,32,116,121,112,101,115,32,111,102,32,116,104,101,32,86,67,76,32,78,65,76,85,115,58,32,37,100,32,37,100,10,0,83,107,105,112,112,105,110,103,32,78,65,76,32,117,110,105,116,32,37,100,10,0,0,0,73,109,112,111,115,115,105,98,108,101,32,105,110,105,116,105,97,108,32,116,105,108,101,46,10,0,0,0,0,0,0,0,80,114,101,118,105,111,117,115,32,115,108,105,99,101,32,115,101,103,
109,101,110,116,32,109,105,115,115,105,110,103,10,0,0,0,0,0,0,0,0,0,84,104,101,32,99,117,95,113,112,95,100,101,108,116,97,32,37,100,32,105,115,32,111,117,116,115,105,100,101,32,116,104,101,32,118,97,108,105,100,32,114,97,110,103,101,32,91,37,100,44,32,37,100,93,46,10,0,0,0,0,0,0,0,0,99,117,95,99,104,114,111,109,97,95,113,112,95,111,102,102,115,101,116,95,105,100,120,32,110,111,116,32,121,101,116,32,116,101,115,116,101,100,46,10,0,0,0,0,0,0,0,0,0,26,10,1,0,0,0,0,0,1,2,2,2,2,3,5,7,8,10,12,13,15,17,
18,19,20,21,22,23,23,24,24,25,25,26,27,27,28,28,29,29,30,31,0,0,0,0,0,80,80,83,32,105,100,32,111,117,116,32,111,102,32,114,97,110,103,101,58,32,37,100,10,0,0,0,0,0,0,0,0,80,80,83,32,99,104,97,110,103,101,100,32,98,101,116,119,101,101,110,32,115,108,105,99,101,115,46,10,0,0,0,0,73,110,118,97,108,105,100,32,115,108,105,99,101,32,115,101,103,109,101,110,116,32,97,100,100,114,101,115,115,58,32,37,117,46,10,0,0,0,0,0,85,110,107,110,111,119,110,32,115,108,105,99,101,32,116,121,112,101,58,32,37,100,46,10,
0,0,0,0,0,0,0,0,73,110,116,101,114,32,115,108,105,99,101,115,32,105,110,32,97,110,32,73,82,65,80,32,102,114,97,109,101,46,10,0,73,110,100,101,112,101,110,100,101,110,116,32,115,108,105,99,101,32,115,101,103,109,101,110,116,32,109,105,115,115,105,110,103,46,10,0,0,0,0,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,109,101,109,111,114,121,10,0,0,0,0,0,0,116,111,111,32,109,97,110,121,32,115,108,105,99,101,95,104,101,97,100,101,114,95,101,120,116,101,110,115,105,111,110,95,100,
97,116,97,95,98,121,116,101,115,10,0,0,0,0,0,84,104,101,32,115,108,105,99,101,95,113,112,32,37,100,32,105,115,32,111,117,116,115,105,100,101,32,116,104,101,32,118,97,108,105,100,32,114,97,110,103,101,32,91,37,100,44,32,53,49,93,46,10,0,0,0,73,109,112,111,115,115,105,98,108,101,32,115,108,105,99,101,32,115,101,103,109,101,110,116,46,10,0,0,0,0,0,0,79,118,101,114,114,101,97,100,32,115,108,105,99,101,32,104,101,97,100,101,114,32,98,121,32,37,100,32,98,105,116,115,10,0,0,0,0,0,0,0,110,97,108,95,117,110,
105,116,95,116,121,112,101,58,32,37,100,44,32,110,117,104,95,108,97,121,101,114,95,105,100,58,32,37,100,44,32,116,101,109,112,111,114,97,108,95,105,100,58,32,37,100,10,0,0,0,32,0,0,0,26,0,0,0,21,0,0,0,17,0,0,0,13,0,0,0,9,0,0,0,5,0,0,0,2,0,0,0,0,0,0,0,254,255,255,255,251,255,255,255,247,255,255,255,243,255,255,255,239,255,255,255,235,255,255,255,230,255,255,255,224,255,255,255,230,255,255,255,235,255,255,255,239,255,255,255,243,255,255,255,247,255,255,255,251,255,255,255,254,255,255,255,0,0,0,0,2,
0,0,0,5,0,0,0,9,0,0,0,13,0,0,0,17,0,0,0,21,0,0,0,26,0,0,0,32,0,0,0,0,0,0,0,0,240,255,255,154,249,255,255,114,252,255,255,138,253,255,255,30,254,255,255,122,254,255,255,197,254,255,255,0,255,255,255,197,254,255,255,122,254,255,255,30,254,255,255,138,253,255,255,114,252,255,255,154,249,255,255,0,240,255,255,0,0,0,0,7,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,68,117,112,108,105,99,97,116,101,32,80,79,67,32,105,110,32,97,32,115,101,113,117,101,110,99,101,58,32,37,100,46,10,0,0,0,0,0,0,0,69,114,114,111,114,32,97,
108,108,111,99,97,116,105,110,103,32,102,114,97,109,101,44,32,68,80,66,32,102,117,108,108,46,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,90,90,90,89,88,87,85,83,82,80,78,75,73,70,67,64,61,57,54,50,46,43,38,36,31,25,22,18,13,9,4,1,2,0,3,4,0,0,0,255,0,1,0,0,255,0,1,255,255,1,1,1,255,255,1,68,101,99,111,100,105,110,103,32,83,80,83,10,0,0,0,73,110,118,97,108,105,100,32,118,97,108,117,101,32,102,111,114,32,108,111,103,50,95,109,105,110,95,116,98,95,115,105,122,101,0,0,0,0,0,0,80,67,77,32,
98,105,116,32,100,101,112,116,104,32,40,37,100,41,32,105,115,32,103,114,101,97,116,101,114,32,116,104,97,110,32,110,111,114,109,97,108,32,98,105,116,32,100,101,112,116,104,32,40,37,100,41,10,0,0,0,0,0,0,0,101,120,116,101,110,100,101,100,95,112,114,101,99,105,115,105,111,110,95,112,114,111,99,101,115,115,105,110,103,95,102,108,97,103,32,110,111,116,32,121,101,116,32,105,109,112,108,101,109,101,110,116,101,100,10,0,104,105,103,104,95,112,114,101,99,105,115,105,111,110,95,111,102,102,115,101,116,115,
95,101,110,97,98,108,101,100,95,102,108,97,103,32,110,111,116,32,121,101,116,32,105,109,112,108,101,109,101,110,116,101,100,10,0,0,0,0,0,0,0,0,99,97,98,97,99,95,98,121,112,97,115,115,95,97,108,105,103,110,109,101,110,116,95,101,110,97,98,108,101,100,95,102,108,97,103,32,110,111,116,32,121,101,116,32,105,109,112,108,101,109,101,110,116,101,100,10,0,0,0,0,0,0,0,0,73,110,118,97,108,105,100,32,99,111,100,101,100,32,102,114,97,109,101,32,100,105,109,101,110,115,105,111,110,115,46,10,0,0,0,0,0,0,0,0,67,
84,66,32,115,105,122,101,32,111,117,116,32,111,102,32,114,97,110,103,101,58,32,50,94,37,100,10,0,0,0,0,109,97,120,95,116,114,97,110,115,102,111,114,109,95,104,105,101,114,97,114,99,104,121,95,100,101,112,116,104,95,105,110,116,101,114,32,111,117,116,32,111,102,32,114,97,110,103,101,58,32,37,100,10,0,0,0,109,97,120,95,116,114,97,110,115,102,111,114,109,95,104,105,101,114,97,114,99,104,121,95,100,101,112,116,104,95,105,110,116,114,97,32,111,117,116,32,111,102,32,114,97,110,103,101,58,32,37,100,10,0,
0,0,109,97,120,32,116,114,97,110,115,102,111,114,109,32,98,108,111,99,107,32,115,105,122,101,32,111,117,116,32,111,102,32,114,97,110,103,101,58,32,37,100,10,0,0,0,0,0,0,79,118,101,114,114,101,97,100,32,83,80,83,32,98,121,32,37,100,32,98,105,116,115,10,0,0,0,0,0,0,0,0,80,97,114,115,101,100,32,83,80,83,58,32,105,100,32,37,100,59,32,99,111,100,101,100,32,119,120,104,58,32,37,100,120,37,100,59,32,99,114,111,112,112,101,100,32,119,120,104,58,32,37,100,120,37,100,59,32,112,105,120,95,102,109,116,58,32,
37,115,46,10,0,0,63,0,0,0,0,0,0,0,68,101,99,111,100,105,110,103,32,80,80,83,10,0,0,0,80,80,83,32,105,100,32,111,117,116,32,111,102,32,114,97,110,103,101,58,32,37,100,10,0,0,0,0,0,0,0,0,83,80,83,32,105,100,32,111,117,116,32,111,102,32,114,97,110,103,101,58,32,37,100,10,0,0,0,0,0,0,0,0,83,80,83,32,37,117,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,10,0,112,112,115,95,99,98,95,113,112,95,111,102,102,115,101,116,32,111,117,116,32,111,102,32,114,97,110,103,101,58,32,37,100,10,0,0,0,0,0,
0,112,112,115,95,99,114,95,113,112,95,111,102,102,115,101,116,32,111,117,116,32,111,102,32,114,97,110,103,101,58,32,37,100,10,0,0,0,0,0,0,110,117,109,95,116,105,108,101,95,99,111,108,117,109,110,115,95,109,105,110,117,115,49,32,111,117,116,32,111,102,32,114,97,110,103,101,58,32,37,100,10,0,0,0,0,0,0,0,110,117,109,95,116,105,108,101,95,114,111,119,115,95,109,105,110,117,115,49,32,111,117,116,32,111,102,32,114,97,110,103,101,58,32,37,100,10,0,0,73,110,118,97,108,105,100,32,116,105,108,101,32,119,105,
100,116,104,115,46,10,0,0,0,73,110,118,97,108,105,100,32,116,105,108,101,32,104,101,105,103,104,116,115,46,10,0,0,112,112,115,95,98,101,116,97,95,111,102,102,115,101,116,95,100,105,118,50,32,111,117,116,32,111,102,32,114,97,110,103,101,58,32,37,100,10,0,0,112,112,115,95,116,99,95,111,102,102,115,101,116,95,100,105,118,50,32,111,117,116,32,111,102,32,114,97,110,103,101,58,32,37,100,10,0,0,0,0,108,111,103,50,95,112,97,114,97,108,108,101,108,95,109,101,114,103,101,95,108,101,118,101,108,95,109,105,110,
117,115,50,32,111,117,116,32,111,102,32,114,97,110,103,101,58,32,37,100,10,0,0,0,0,0,0,79,118,101,114,114,101,97,100,32,80,80,83,32,98,121,32,37,100,32,98,105,116,115,10,0,0,0,0,0,0,0,0,99,104,114,111,109,97,95,113,112,95,111,102,102,115,101,116,95,108,105,115,116,95,108,101,110,95,109,105,110,117,115,49,32,115,104,97,108,108,32,98,101,32,105,110,32,116,104,101,32,114,97,110,103,101,32,91,48,44,32,53,93,46,10,0,99,98,95,113,112,95,111,102,102,115,101,116,95,108,105,115,116,32,110,111,116,32,116,101,
115,116,101,100,32,121,101,116,46,10,0,0,0,0,0,0,73,110,118,97,108,105,100,32,100,101,108,116,97,32,105,110,32,115,99,97,108,105,110,103,32,108,105,115,116,32,100,97,116,97,58,32,37,100,46,10,0,0,0,0,0,0,0,0,16,16,16,16,17,18,21,24,16,16,16,16,17,19,22,25,16,16,17,18,20,22,25,29,16,16,18,21,24,27,31,36,17,17,20,24,30,35,41,47,18,19,22,27,35,44,54,65,21,22,25,31,41,54,70,88,24,25,29,36,47,65,88,115,16,16,16,16,17,18,20,24,16,16,16,17,18,20,24,25,16,16,17,18,20,24,25,28,16,17,18,20,24,25,28,33,17,18,
20,24,25,28,33,41,18,20,24,25,28,33,41,54,20,24,25,28,33,41,54,71,24,25,28,33,41,54,71,91,68,101,99,111,100,105,110,103,32,83,69,73,10,0,0,0,83,107,105,112,112,101,100,32,80,82,69,70,73,88,32,83,69,73,32,37,100,10,0,0,83,107,105,112,112,101,100,32,83,85,70,70,73,88,32,83,69,73,32,37,100,10,0,0,73,110,118,97,108,105,100,32,109,101,100,105,97,32,116,121,112,101,32,102,111,114,32,118,105,100,101,111,10,0,0,0,103,101,116,95,98,117,102,102,101,114,40,41,32,102,97,105,108,101,100,10,0,0,0,0,118,105,100,
101,111,95,103,101,116,95,98,117,102,102,101,114,58,32,105,109,97,103,101,32,112,97,114,97,109,101,116,101,114,115,32,105,110,118,97,108,105,100,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,176,208,240,128,167,197,227,128,158,187,216,123,150,178,205,116,142,169,195,111,135,160,185,105,128,152,175,100,122,144,166,95,116,137,158,90,110,
130,150,85,104,123,142,81,99,117,135,77,94,111,128,73,89,105,122,69,85,100,116,66,80,95,110,62,76,90,104,59,72,86,99,56,69,81,94,53,65,77,89,51,62,73,85,48,59,69,80,46,56,66,76,43,53,63,72,41,50,59,69,39,48,56,65,37,45,54,62,35,43,51,59,33,41,48,56,32,39,46,53,30,37,43,50,29,35,41,48,27,33,39,45,26,31,37,43,24,30,35,41,23,28,33,39,22,27,32,37,21,26,30,35,20,24,29,33,19,23,27,31,18,22,26,30,17,21,25,28,16,20,23,27,15,19,22,25,14,18,21,24,14,17,20,23,13,16,19,22,12,15,18,21,12,14,17,20,11,14,16,19,
11,13,15,18,10,12,15,17,10,12,14,16,9,11,13,15,9,11,12,14,8,10,12,14,8,9,11,13,7,9,11,12,7,9,10,12,7,8,10,11,6,8,9,11,6,7,9,10,6,7,8,9,2,2,2,2,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,62,63,0,0,1,2,2,4,4,5,6,7,8,9,9,11,11,12,13,13,15,15,16,16,18,18,19,19,21,21,22,22,23,24,24,25,26,26,27,27,28,29,29,30,30,30,31,32,32,33,33,33,34,34,35,35,35,36,36,36,37,37,37,38,38,
63,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,0,255,255,255,127,0,0,0,0,80,111,111,108,32,114,97,99,101,32,100,101,99,116,101,99,116,101,100,44,32,115,112,105,110,105,110,103,32,116,111,32,97,118,111,105,100,32,111,118,101,114,97,108,108,111,99,97,116,105,111,110,32,97,110,100,32,101,118,101,110,116,117,97,108,32,79,79,77,10,0,0,0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,
5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,54,0,0,0,0,0,0,0,3,1,1,0,36,120,37,120,38,120,0,0,0,0,0,0,56,0,0,0,0,0,0,0,3,
1,0,16,36,120,37,120,38,120,0,0,0,0,0,0,58,0,0,0,0,0,0,0,3,0,0,16,36,120,37,120,38,120,0,0,0,0,0,0,32,0,0,0,0,0,0,0,1,0,0,0,36,120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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Wa(a){n.exit(a)}n._i64Subtract=Xa;n._i64Add=Ya;n._memset=Za;n._bitshift64Shl=$a;function ab(a){return 0.5!==Math.abs(a%1)?Math.round(a):a+a%2+(0>a?1:-1)}n._memcpy=bb;var cb=0;function db(a){return N[cb>>2]=a}
function Z(a){Z.W||(H=H+4095&-4096,Z.W=j,z(B.k),Z.N=B.k,B.k=function(){E("cannot dynamically allocate, sbrk now has control")});var d=H;0!=a&&Z.N(a);return d}n._strlen=eb;n._llvm_bswap_i32=fb;cb=B.K(4);N[cb>>2]=0;Da=A=B.q(F);Ea=Da+Ha;Fa=H=B.q(Ea);z(Fa<I,"TOTAL_MEMORY not big enough for stack");
var gb=P([8,7,6,6,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0],"i8",3),hb=P([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,
0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",3);n.O={Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};
n.P={abort:E,assert:z,min:oa,invoke_iiii:function(a,d,c,e){try{return n.dynCall_iiii(a,d,c,e)}catch(f){"number"!==typeof f&&"longjmp"!==f&&b(f),$.setThrew(1,0)}},invoke_viiiiiiiiii:function(a,d,c,e,f,g,h,i,q,s,C){try{n.dynCall_viiiiiiiiii(a,d,c,e,f,g,h,i,q,s,C)}catch(m){"number"!==typeof m&&"longjmp"!==m&&b(m),$.setThrew(1,0)}},invoke_viiiiiii:function(a,d,c,e,f,g,h,i){try{n.dynCall_viiiiiii(a,d,c,e,f,g,h,i)}catch(q){"number"!==typeof q&&"longjmp"!==q&&b(q),$.setThrew(1,0)}},invoke_viiiiiiiiiiiii:function(a,
d,c,e,f,g,h,i,q,s,C,m,u,Q){try{n.dynCall_viiiiiiiiiiiii(a,d,c,e,f,g,h,i,q,s,C,m,u,Q)}catch(G){"number"!==typeof G&&"longjmp"!==G&&b(G),$.setThrew(1,0)}},invoke_vi:function(a,d){try{n.dynCall_vi(a,d)}catch(c){"number"!==typeof c&&"longjmp"!==c&&b(c),$.setThrew(1,0)}},invoke_vii:function(a,d,c){try{n.dynCall_vii(a,d,c)}catch(e){"number"!==typeof e&&"longjmp"!==e&&b(e),$.setThrew(1,0)}},invoke_iiiiiii:function(a,d,c,e,f,g,h){try{return n.dynCall_iiiiiii(a,d,c,e,f,g,h)}catch(i){"number"!==typeof i&&"longjmp"!==
i&&b(i),$.setThrew(1,0)}},invoke_ii:function(a,d){try{return n.dynCall_ii(a,d)}catch(c){"number"!==typeof c&&"longjmp"!==c&&b(c),$.setThrew(1,0)}},invoke_viii:function(a,d,c,e){try{n.dynCall_viii(a,d,c,e)}catch(f){"number"!==typeof f&&"longjmp"!==f&&b(f),$.setThrew(1,0)}},invoke_viiiiiiii:function(a,d,c,e,f,g,h,i,q){try{n.dynCall_viiiiiiii(a,d,c,e,f,g,h,i,q)}catch(s){"number"!==typeof s&&"longjmp"!==s&&b(s),$.setThrew(1,0)}},invoke_iiiii:function(a,d,c,e,f){try{return n.dynCall_iiiii(a,d,c,e,f)}catch(g){"number"!==
typeof g&&"longjmp"!==g&&b(g),$.setThrew(1,0)}},invoke_viiiiii:function(a,d,c,e,f,g,h){try{n.dynCall_viiiiii(a,d,c,e,f,g,h)}catch(i){"number"!==typeof i&&"longjmp"!==i&&b(i),$.setThrew(1,0)}},invoke_iii:function(a,d,c){try{return n.dynCall_iii(a,d,c)}catch(e){"number"!==typeof e&&"longjmp"!==e&&b(e),$.setThrew(1,0)}},invoke_iiiiii:function(a,d,c,e,f,g){try{return n.dynCall_iiiiii(a,d,c,e,f,g)}catch(h){"number"!==typeof h&&"longjmp"!==h&&b(h),$.setThrew(1,0)}},invoke_viiii:function(a,d,c,e,f){try{n.dynCall_viiii(a,
d,c,e,f)}catch(g){"number"!==typeof g&&"longjmp"!==g&&b(g),$.setThrew(1,0)}},_lrint:function(){return ab.apply(k,arguments)},__exit:Wa,_abort:function(){n.abort()},___setErrNo:db,_sbrk:Z,_time:function(a){var d=Date.now()/1E3|0;a&&(N[a>>2]=d);return d},_emscripten_memcpy_big:function(a,d,c){S.set(S.subarray(d,d+c),a);return a},_rint:ab,_exit:function(a){Wa(a)},_sysconf:function(a){switch(a){case 30:return 4096;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:return"object"===typeof navigator?navigator.hardwareConcurrency||1:1}db(22);return-1},
___errno_location:function(){return cb},STACKTOP:A,STACK_MAX:Ea,tempDoublePtr:Ua,ABORT:J,cttz_i8:hb,ctlz_i8:gb,NaN:NaN,Infinity:Infinity};// EMSCRIPTEN_START_ASM
var $=(function(global,env,buffer) {
"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.STACKTOP|0;var j=env.STACK_MAX|0;var k=env.tempDoublePtr|0;var l=env.ABORT|0;var m=env.cttz_i8|0;var n=env.ctlz_i8|0;var o=0;var p=0;var q=0;var r=0;var s=+env.NaN,t=+env.Infinity;var u=0,v=0,w=0,x=0,y=0.0,z=0,A=0,B=0,C=0.0;var D=0;var E=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=global.Math.floor;var O=global.Math.abs;var P=global.Math.sqrt;var Q=global.Math.pow;var R=global.Math.cos;var S=global.Math.sin;var T=global.Math.tan;var U=global.Math.acos;var V=global.Math.asin;var W=global.Math.atan;var X=global.Math.atan2;var Y=global.Math.exp;var Z=global.Math.log;var _=global.Math.ceil;var $=global.Math.imul;var aa=env.abort;var ba=env.assert;var ca=env.min;var da=env.invoke_iiii;var ea=env.invoke_viiiiiiiiii;var fa=env.invoke_viiiiiii;var ga=env.invoke_viiiiiiiiiiiii;var ha=env.invoke_vi;var ia=env.invoke_vii;var ja=env.invoke_iiiiiii;var ka=env.invoke_ii;var la=env.invoke_viii;var ma=env.invoke_viiiiiiii;var na=env.invoke_iiiii;var oa=env.invoke_viiiiii;var pa=env.invoke_iii;var qa=env.invoke_iiiiii;var ra=env.invoke_viiii;var sa=env._lrint;var ta=env.__exit;var ua=env._abort;var va=env.___setErrNo;var wa=env._sbrk;var xa=env._time;var ya=env._emscripten_memcpy_big;var za=env._rint;var Aa=env._exit;var Ba=env._sysconf;var Ca=env.___errno_location;var Da=0.0;
// EMSCRIPTEN_START_FUNCS
function oc(e,f,g,h,j,k,l,m,n,o,p,q,r){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;s=i;i=i+32|0;D=s;w=s+24|0;t=s+16|0;z=e+136|0;v=c[z>>2]|0;M=c[q>>2]|0;c[w>>2]=M;O=c[q+4>>2]|0;A=w+4|0;c[A>>2]=O;N=c[r>>2]|0;c[t>>2]=N;q=c[r+4>>2]|0;x=t+4|0;c[x>>2]=q;y=a[v+31254>>0]|0;do if(y<<24>>24){if((o|0)==1){c[v+288>>2]=d[v+p+31268>>0];if((c[(c[e+180>>2]|0)+4>>2]|0)==3){c[v+292>>2]=d[v+p+31277>>0];c[v+296>>2]=d[v+p+31281>>0];break}else{c[v+292>>2]=d[v+31277>>0];c[v+296>>2]=d[v+31281>>0];break}}}else{c[v+288>>2]=d[v+31268>>0];c[v+292>>2]=d[v+31277>>0];c[v+296>>2]=d[v+31281>>0]}while(0);r=e+180|0;G=c[r>>2]|0;B=(c[G+13076>>2]|0)>>>0<n>>>0;if(((!B?(c[G+13072>>2]|0)>>>0<n>>>0:0)?(d[v+31255>>0]|0)>(o|0):0)?!(y<<24>>24!=0&(o|0)==0):0)y=(Qb(e,n)|0)&255;else{if((c[G+13088>>2]|0)==0?(c[v+31244>>2]|0)==0:0)G=(o|0)==0&(c[v+31248>>2]|0)!=0;else G=0;if(B)y=1;else y=(y<<24>>24!=0&(o|0)==0|G)&1}B=(n|0)>2;G=c[(c[r>>2]|0)+4>>2]|0;if(B)if(!G)L=q;else F=20;else if((G|0)==3)F=20;else L=q;do if((F|0)==20){G=(o|0)==0;if(!((M|0)==0&(G^1))){M=Rb(e,o)|0;c[w>>2]=M;if((c[(c[r>>2]|0)+4>>2]|0)==2?y<<24>>24==0|(n|0)==3:0){O=Rb(e,o)|0;c[A>>2]=O}if(!G)F=25}else{M=0;F=25}if((F|0)==25)if(!N){N=0;L=q;break}N=Rb(e,o)|0;c[t>>2]=N;if((c[(c[r>>2]|0)+4>>2]|0)==2?y<<24>>24==0|(n|0)==3:0){L=Rb(e,o)|0;c[x>>2]=L}else L=q}while(0);if(!(y<<24>>24)){A=c[r>>2]|0;x=c[A+13072>>2]|0;q=1<<x;y=c[A+13148>>2]|0;if(((o|0)==0?(c[v+31244>>2]|0)!=1:0)&(M|0)==0&(N|0)==0)if((c[A+4>>2]|0)==2?(O|L|0)!=0:0)F=37;else o=1;else F=37;if((F|0)==37){o=Sb(e,o)|0;A=c[r>>2]|0}G=c[z>>2]|0;A=n-(c[A+13172>>2]|0)|0;z=G+31244|0;if((c[z>>2]|0)==1){K=1<<n;od(e,f,g,K,K);Sa[c[e+(n+ -2<<2)+5832>>2]&15](e,f,g,0)}K=(o|0)!=0;M=(M|N|0)==0;do if(K)if(M)F=46;else{H=0;F=48}else if(M){M=c[r>>2]|0;N=c[M+4>>2]|0;if((N|0)==2){if(O){F=46;break}if(L){O=0;F=46;break}}if(!((c[z>>2]|0)!=1|(N|0)==0)){if(B|(N|0)==3){t=1<<(c[M+13172>>2]|0)+A;h=1<<(c[M+13184>>2]|0)+A;od(e,f,g,t,h);w=e+(A+ -2<<2)+5832|0;Sa[c[w>>2]&15](e,f,g,1);Sa[c[w>>2]&15](e,f,g,2);if((c[(c[r>>2]|0)+4>>2]|0)!=2)break;O=(1<<A)+g|0;od(e,f,O,t,h);Sa[c[w>>2]&15](e,f,O,1);Sa[c[w>>2]&15](e,f,O,2);break}if((p|0)==3?(J=1<<n+1,I=1<<(c[M+13184>>2]|0)+n,od(e,h,j,J,I),H=e+(n+ -2<<2)+5832|0,Sa[c[H>>2]&15](e,h,j,1),Sa[c[H>>2]&15](e,h,j,2),(c[(c[r>>2]|0)+4>>2]|0)==2):0){O=(1<<n)+j|0;od(e,h,O,J,I);Sa[c[H>>2]&15](e,h,O,1);Sa[c[H>>2]&15](e,h,O,2)}}}else{H=0;F=48}while(0);if((F|0)==46)if((c[(c[r>>2]|0)+4>>2]|0)==2){H=(O|L|0)==0;F=48}else{H=1;F=48}a:do if((F|0)==48){F=e+184|0;do if((a[(c[F>>2]|0)+22>>0]|0)!=0?(E=G+300|0,(a[E>>0]|0)==0):0){O=Eb(e)|0;J=G+280|0;c[J>>2]=O;if(O){O=(Fb(e)|0)==1;I=c[J>>2]|0;if(O){I=0-I|0;c[J>>2]=I}}else I=0;a[E>>0]=1;E=(c[(c[r>>2]|0)+13192>>2]|0)/2|0;J=-26-E|0;E=E+25|0;if(!((I|0)<(J|0)|(I|0)>(E|0))){Xb(e,k,l,m);break}O=c[e+4>>2]|0;c[D>>2]=I;c[D+4>>2]=J;c[D+8>>2]=E;$a(O,16,1944,D);O=-1094995529;i=s;return O|0}while(0);if((!((a[e+3048>>0]|0)==0|H)?(a[G+31256>>0]|0)==0:0)?(C=G+301|0,(a[C>>0]|0)==0):0){if(!(Gb(e)|0)){a[G+302>>0]=0;a[G+303>>0]=0}else{m=c[F>>2]|0;if(!(a[m+1633>>0]|0))l=0;else{l=Hb(e)|0;$a(c[e+4>>2]|0,16,2008,D);m=c[F>>2]|0}a[G+302>>0]=a[m+l+1634>>0]|0;a[G+303>>0]=a[(c[F>>2]|0)+l+1639>>0]|0}a[C>>0]=1}if((c[z>>2]|0)==1&(n|0)<4){m=c[G+288>>2]|0;if((m+ -6|0)>>>0<9)k=2;else k=(m+ -22|0)>>>0<9&1;m=c[G+292>>2]|0;if((m+ -6|0)>>>0<9)m=2;else m=(m+ -22|0)>>>0<9&1}else{k=0;m=0}l=G+304|0;a[l>>0]=0;if(K)Vb(e,f,g,n,k,0);k=c[r>>2]|0;C=c[k+4>>2]|0;if(C){if(!(B|(C|0)==3)){if((p|0)!=3)break;A=1<<n+1;p=1<<(c[k+13184>>2]|0)+n;l=e+(n+ -2<<2)+5832|0;k=0;do{if((c[z>>2]|0)==1){O=(k<<n)+j|0;od(e,h,O,A,p);Sa[c[l>>2]&15](e,h,O,1)}if(c[w+(k<<2)>>2]|0)Vb(e,h,(k<<n)+j|0,n,m,1);k=k+1|0}while((k|0)<(((c[(c[r>>2]|0)+4>>2]|0)==2?2:1)|0));w=0;while(1){if((c[z>>2]|0)==1){O=(w<<n)+j|0;od(e,h,O,A,p);Sa[c[l>>2]&15](e,h,O,2)}if(c[t+(w<<2)>>2]|0)Vb(e,h,(w<<n)+j|0,n,m,2);w=w+1|0;if((w|0)>=(((c[(c[r>>2]|0)+4>>2]|0)==2?2:1)|0))break a}}h=1<<(c[k+13172>>2]|0)+A;j=1<<(c[k+13184>>2]|0)+A;do if((a[(c[F>>2]|0)+1630>>0]|0)==0|K^1)a[l>>0]=0;else{if(c[z>>2]|0){O=(c[G+296>>2]|0)==4;a[l>>0]=O&1;if(!O)break}else a[l>>0]=1;pc(e,0)}while(0);B=A+ -2|0;k=e+(B<<2)+5832|0;p=e+160|0;D=G+320|0;F=G+11680|0;C=1<<A<<A;E=(C|0)>0;B=e+(B<<2)+5888|0;G=G+284|0;K=0;do{if((c[z>>2]|0)==1){O=(K<<A)+g|0;od(e,f,O,h,j);Sa[c[k>>2]&15](e,f,O,1)}do if(!(c[w+(K<<2)>>2]|0)){if(!(a[l>>0]|0))break;O=c[p>>2]|0;I=c[O+36>>2]|0;H=c[r>>2]|0;J=$(g>>c[H+13184>>2],I)|0;J=(c[O+4>>2]|0)+(J+(f>>c[H+13172>>2]<<c[H+56>>2]))|0;if(E){K=0;do{b[F+(K<<1)>>1]=($(b[D+(K<<1)>>1]|0,c[G>>2]|0)|0)>>>3;K=K+1|0}while((K|0)!=(C|0));K=C}else K=0;Sa[c[B>>2]&15](J,F,I,c[H+52>>2]|0)}else Vb(e,f,(K<<A)+g|0,A,m,1);while(0);K=K+1|0}while((K|0)<(((c[(c[r>>2]|0)+4>>2]|0)==2?2:1)|0));if(!(a[l>>0]|0))J=0;else{pc(e,1);J=0}do{if((c[z>>2]|0)==1){O=(J<<A)+g|0;od(e,f,O,h,j);Sa[c[k>>2]&15](e,f,O,2)}do if(!(c[t+(J<<2)>>2]|0)){if(!(a[l>>0]|0))break;O=c[p>>2]|0;w=c[O+40>>2]|0;H=c[r>>2]|0;I=$(g>>c[H+13188>>2],w)|0;I=(c[O+8>>2]|0)+(I+(f>>c[H+13176>>2]<<c[H+56>>2]))|0;if(E){J=0;do{b[F+(J<<1)>>1]=($(b[D+(J<<1)>>1]|0,c[G>>2]|0)|0)>>>3;J=J+1|0}while((J|0)!=(C|0));J=C}else J=0;Sa[c[B>>2]&15](I,F,w,c[H+52>>2]|0)}else Vb(e,f,(J<<A)+g|0,A,m,2);while(0);J=J+1|0}while((J|0)<(((c[(c[r>>2]|0)+4>>2]|0)==2?2:1)|0))}}while(0);if((o|0)!=0?(u=1<<n,(u|0)>0):0){t=e+7620|0;r=0;do{w=$(r+g>>x,y)|0;o=0;do{a[(c[t>>2]|0)+((o+f>>x)+w)>>0]=1;o=o+q|0}while((o|0)<(u|0));r=r+q|0}while((r|0)<(u|0))}if(((a[e+3029>>0]|0)==0?(Yb(e,f,g,n),(a[(c[e+184>>2]|0)+40>>0]|0)!=0):0)?(a[v+31256>>0]|0)!=0:0)nc(e,f,g,n)}else{v=n+ -1|0;u=1<<v;n=u+f|0;u=u+g|0;r=o+1|0;q=oc(e,f,g,f,g,k,l,m,v,r,0,w,t)|0;if((q|0)<0){O=q;i=s;return O|0}q=oc(e,n,g,f,g,k,l,m,v,r,1,w,t)|0;if((q|0)<0){O=q;i=s;return O|0}q=oc(e,f,u,f,g,k,l,m,v,r,2,w,t)|0;if((q|0)<0){O=q;i=s;return O|0}f=oc(e,n,u,f,g,k,l,m,v,r,3,w,t)|0;if((f|0)<0){O=f;i=s;return O|0}}O=0;i=s;return O|0}function pc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=c[a+136>>2]|0;f=Tb(a,b)|0;if(!f){c[e+284>>2]=0;i=d;return}else{c[e+284>>2]=1-((Ub(a,b)|0)<<1)<<f+ -1;i=d;return}}function qc(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;b=i;e=c[a>>2]|0;f=a+8|0;g=c[f>>2]|0;a=c[a+16>>2]|0;l=e+(g>>>3)|0;l=(ze(d[l>>0]|d[l+1>>0]<<8|d[l+2>>0]<<16|d[l+3>>0]<<24|0)|0)<<(g&7);h=g+16|0;h=a>>>0>h>>>0?h:a;j=e+(h>>>3)|0;h=(ze(d[j>>0]|d[j+1>>0]<<8|d[j+2>>0]<<16|d[j+3>>0]<<24|0)|0)<<(h&7)>>>16|l&-65536;j=h>>>0>65535;h=j?l>>>16:h;j=j?16:0;if(h&65280){j=j|8;h=h>>>8}h=(d[7416+h>>0]|0)+j|0;j=31-h|0;l=0-g|0;k=a-g|0;if((j|0)>=(l|0))l=(k|0)<(j|0)?k:j;g=l+g|0;c[f>>2]=g;l=j+1|0;if(!l){l=0;l=l+ -1|0;i=b;return l|0}k=e+(g>>>3)|0;k=(ze(d[k>>0]|d[k+1>>0]<<8|d[k+2>>0]<<16|d[k+3>>0]<<24|0)|0)<<(g&7);if((l|0)<26){l=g+l|0;c[f>>2]=a>>>0>l>>>0?l:a;l=k>>>h;l=l+ -1|0;i=b;return l|0}else{h=g+16|0;h=a>>>0>h>>>0?h:a;c[f>>2]=h;l=j+ -15|0;g=e+(h>>>3)|0;j=(ze(d[g>>0]|d[g+1>>0]<<8|d[g+2>>0]<<16|d[g+3>>0]<<24|0)|0)<<(h&7)>>>(47-j|0);h=h+l|0;c[f>>2]=a>>>0>h>>>0?h:a;l=j|k>>>16<<l;l=l+ -1|0;i=b;return l|0}return 0}function rc(a,b){a=a|0;b=b|0;c[a>>2]=1;c[a+4>>2]=2;c[a+8>>2]=3;c[a+12>>2]=4;c[a+16>>2]=5;c[a+20>>2]=6;c[a+24>>2]=7;c[a+28>>2]=8;c[a+32>>2]=1;c[a+36>>2]=1;c[a+40>>2]=2;c[a+44>>2]=3;c[a+48>>2]=4;return}function sc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;Hc(a,b,c,2,d);i=e;return}function tc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;Hc(a,b,c,3,d);i=e;return}function uc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;Hc(a,b,c,4,d);i=e;return}function vc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;Hc(a,b,c,5,d);i=e;return}function wc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;Gc(a,b,c,d,2);i=e;return}function xc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;Gc(a,b,c,d,3);i=e;return}function yc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;Gc(a,b,c,d,4);i=e;return}function zc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;Gc(a,b,c,d,5);i=e;return}function Ac(c,d,f,g,h,j){c=c|0;d=d|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;l=i;k=1<<h;m=(k|0)>0;if(m){n=k;o=0;do{n=(e[f+(o<<1)>>1]|0)+n+(e[d+(o<<1)>>1]|0)|0;o=o+1|0}while((o|0)!=(k|0));n=n>>h+1;h=Ge(n|0,((n|0)<0)<<31>>31|0,65537,65537)|0;o=D;if(m){m=0;do{p=$(m,g)|0;q=0;do{r=c+(q+p<<1)|0;s=r;a[s>>0]=h;a[s+1>>0]=h>>8;a[s+2>>0]=h>>16;a[s+3>>0]=h>>24;r=r+4|0;a[r>>0]=o;a[r+1>>0]=o>>8;a[r+2>>0]=o>>16;a[r+3>>0]=o>>24;q=q+4|0}while((q|0)<(k|0));m=m+1|0}while((m|0)!=(k|0))}}else n=k>>h+1;if(!((j|0)==0&(k|0)<32)){i=l;return}b[c>>1]=((n<<1)+2+(e[f>>1]|0)+(e[d>>1]|0)|0)>>>2;j=(k|0)>1;if(!j){i=l;return}m=(n*3|0)+2|0;h=1;do{b[c+(h<<1)>>1]=(m+(e[d+(h<<1)>>1]|0)|0)>>>2;h=h+1|0}while((h|0)!=(k|0));if(!j){i=l;return}d=(n*3|0)+2|0;j=1;do{b[c+(($(j,g)|0)<<1)>>1]=(d+(e[f+(j<<1)>>1]|0)|0)>>>2;j=j+1|0}while((j|0)!=(k|0));i=l;return}function Bc(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;var j=0;j=i;Fc(a,b,c,d,e,f,4,g,h);i=j;return}function Cc(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;var j=0;j=i;Fc(a,b,c,d,e,f,8,g,h);i=j;return}function Dc(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;var j=0;j=i;Fc(a,b,c,d,e,f,16,g,h);i=j;return}function Ec(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;var j=0;j=i;Fc(a,b,c,d,e,f,32,g,h);i=j;return}function Fc(f,g,h,j,k,l,m,n,o){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;p=i;i=i+208|0;s=p;q=c[2576+(l+ -2<<2)>>2]|0;r=s+(m<<1)|0;t=($(q,m)|0)>>5;if((l|0)>17){v=g+ -2|0;u=l+ -11|0;if(u>>>0<15&(t|0)<-1){if((m|0)>=0){v=0;do{x=g+(v+ -1<<1)|0;z=x;z=d[z>>0]|d[z+1>>0]<<8|d[z+2>>0]<<16|d[z+3>>0]<<24;x=x+4|0;x=d[x>>0]|d[x+1>>0]<<8|d[x+2>>0]<<16|d[x+3>>0]<<24;y=s+(v+m<<1)|0;w=y;b[w>>1]=z;b[w+2>>1]=z>>>16;y=y+4|0;b[y>>1]=x;b[y+2>>1]=x>>>16;v=v+4|0}while((v|0)<=(m|0))}if((t|0)<0){u=c[2712+(u<<2)>>2]|0;do{b[s+(t+m<<1)>>1]=b[h+((($(u,t)|0)+128>>8)+ -1<<1)>>1]|0;t=t+1|0}while((t|0)!=0)}}else r=v;s=(m|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+la|0;ma=0;do{wa=v+(la+ma<<1)|0;va=wa;b[va>>1]=_;b[va+2>>1]=_>>>16;wa=wa+4|0;b[wa>>1]=aa;b[wa+2>>1]=aa>>>16;ma=ma+4|0}while((ma|0)<(ka|0))}_=(U|0)!=0;if(_&(G|0)>0){aa=ia+ -1|0;ka=0;do{wa=ka;ka=ka+1|0;b[t+(ka<<1)>>1]=b[ca+(aa+($(wa,o)|0)<<1)>>1]|0}while((ka|0)!=(G|0))}aa=(na|0)!=0;if(aa){ka=fa+G|0;la=ia+ -1|0;if((fa|0)>0){ia=G;do{wa=ia;ia=ia+1|0;b[t+(ia<<1)>>1]=b[ca+(la+($(wa,o)|0)<<1)>>1]|0}while((ia|0)<(ka|0))}ia=Ge(e[ca+(la+($(ka+ -1|0,o)|0)<<1)>>1]|0,0,65537,65537)|0;ka=D;ca=G-fa|0;if((ca|0)>0){la=G+1+fa|0;ma=0;do{wa=t+(la+ma<<1)|0;va=wa;b[va>>1]=ia;b[va+2>>1]=ia>>>16;wa=wa+4|0;b[wa>>1]=ka;b[wa+2>>1]=ka>>>16;ma=ma+4|0}while((ma|0)<(ca|0))}}do if((a[ja>>0]|0)==1?(wa=na|U,X=(wa|0)!=0,wa=wa|T,ba=(wa|0)==0,(S|oa|wa|0)!=0):0){ia=G<<1;ha=c[ha>>2]|0;if(((ia<<P)+f|0)<(ha|0))ca=ia;else ca=ha-f>>P;ga=c[ga>>2]|0;if(((ia<<Q)+g|0)>=(ga|0))ia=ga-g>>Q;fa=(aa?fa:0)+G|0;if(!R)if((ea|0)<(ha|0))ca=G;else ca=ha-f>>P;if(!aa)if((da|0)<(ga|0))da=G;else da=ga-g>>Q;else da=ia;do if(ba){do if((ca|0)>0){ha=c[q+13084>>2]|0;fa=$((-1<<Q)+g>>ha,O)|0;ga=c[(c[d+3488>>2]|0)+16>>2]|0;ba=0;while(1){ea=ba+1|0;if(!(a[ga+(fa+((ba<<P)+f>>ha))>>0]|0))break;if((ea|0)<(ca|0))ba=ea;else{ba=ea;break}}if((ba|0)>0)if((f|0)>0){if((ba|0)<=-1)break;fa=(-1<<Q)+g|0;ga=c[q+13084>>2]|0;ea=c[(c[d+3488>>2]|0)+16>>2]|0;do{ha=ba;ba=ba+ -1|0;if(a[ea+(($(fa>>ga,O)|0)+((ba<<P)+f>>ga))>>0]|0)b[v+(ha<<1)>>1]=b[v+(ha+1<<1)>>1]|0}while((ha|0)>0)}else{fa=(-1<<Q)+g|0;ga=c[q+13084>>2]|0;ea=c[(c[d+3488>>2]|0)+16>>2]|0;do{ha=ba;ba=ba+ -1|0;if(a[ea+(($(fa>>ga,O)|0)+((ba<<P)+f>>ga))>>0]|0)b[v+(ha<<1)>>1]=b[v+(ha+1<<1)>>1]|0}while((ba|0)>0);b[v>>1]=b[x>>1]|0;break}}while(0);ea=b[v>>1]|0;b[t>>1]=ea;ba=t}else{ga=(-1<<P)+f|0;ia=d+3488|0;do{wa=fa;fa=fa+ -1|0;ba=c[q+13084>>2]|0;if((wa|0)<=0){N=59;break}ha=(fa<<Q)+g|0;wa=($(ha>>ba,O)|0)+(ga>>ba)|0;ea=c[(c[ia>>2]|0)+16>>2]|0}while((a[ea+wa>>0]|0)!=0);if((N|0)==59){ea=c[(c[ia>>2]|0)+16>>2]|0;ha=(fa<<Q)+g|0}if(!(a[ea+(($(ha>>ba,O)|0)+(ga>>ba))>>0]|0)){ea=b[v>>1]|0;ba=t;break}if((ca|0)>0){fa=$((-1<<Q)+g>>ba,O)|0;ha=0;while(1){ga=ha+1|0;if(!(a[ea+(fa+((ha<<P)+f>>ba))>>0]|0))break;if((ga|0)<(ca|0))ha=ga;else{ha=ga;break}}if((ha|0)>-1)N=68}else{ha=0;N=68}if((N|0)==68){fa=(-1<<Q)+g|0;do{ga=ha;ha=ha+ -1|0;if(a[ea+(($(fa>>ba,O)|0)+((ha<<P)+f>>ba))>>0]|0)b[v+(ga<<1)>>1]=b[v+(ga+1<<1)>>1]|0}while((ga|0)>0)}ea=b[v>>1]|0;b[t>>1]=ea;ba=t}while(0);b[ba>>1]=ea;if(X&(da|0)>0){ga=Ge(ea&65535|0,0,65537,65537)|0;X=(-1<<P)+f|0;ea=c[d+3488>>2]|0;ha=D;fa=0;do{wa=c[q+13084>>2]|0;wa=($((fa<<Q)+g>>wa,O)|0)+(X>>wa)|0;if(!(a[(c[ea+16>>2]|0)+wa>>0]|0)){ga=Ge(e[t+((fa|3)+1<<1)>>1]|0,0,65537,65537)|0;ha=D}else{wa=t+((fa|1)<<1)|0;va=wa;b[va>>1]=ga;b[va+2>>1]=ga>>>16;wa=wa+4|0;b[wa>>1]=ha;b[wa+2>>1]=ha>>>16}fa=fa+4|0}while((fa|0)<(da|0))}if(!_?(V=Ge(e[ba>>1]|0,0,65537,65537)|0,W=D,(G|0)>0):0){X=0;do{wa=t+((X|1)<<1)|0;va=wa;b[va>>1]=V;b[va+2>>1]=V>>>16;wa=wa+4|0;b[wa>>1]=W;b[wa+2>>1]=W>>>16;X=X+4|0}while((X|0)<(G|0))}do if(!aa){V=Ge(e[t+(G<<1)>>1]|0,0,65537,65537)|0;W=D;if((G|0)<=0)break;X=G+1|0;ea=0;do{wa=t+(X+ea<<1)|0;va=wa;b[va>>1]=V;b[va+2>>1]=V>>>16;wa=wa+4|0;b[wa>>1]=W;b[wa+2>>1]=W>>>16;ea=ea+4|0}while((ea|0)<(G|0))}while(0);X=(f|0)==0;V=(g|0)==0;W=(da|0)>0;a:do if(X|V){if(X){if(W)W=0;else break;while(1){wa=t+((W|1)<<1)|0;va=wa;b[va>>1]=0;b[va+2>>1]=0>>>16;wa=wa+4|0;b[wa>>1]=0;b[wa+2>>1]=0>>>16;W=W+4|0;if((W|0)>=(da|0))break a}}if(!W)break;fa=Ge(e[t+(da<<1)>>1]|0,0,65537,65537)|0;X=(-1<<P)+f|0;W=c[d+3488>>2]|0;ea=D;da=da+ -1|0;do{wa=c[q+13084>>2]|0;wa=($((da+ -3<<Q)+g>>wa,O)|0)+(X>>wa)|0;ga=t+(da+ -2<<1)|0;if(!(a[(c[W+16>>2]|0)+wa>>0]|0)){fa=Ge(e[ga>>1]|0,0,65537,65537)|0;ea=D}else{wa=ga;va=wa;b[va>>1]=fa;b[va+2>>1]=fa>>>16;wa=wa+4|0;b[wa>>1]=ea;b[wa+2>>1]=ea>>>16}da=da+ -4|0}while((da|0)>-1)}else{X=(-1<<P)+f|0;ea=q+13084|0;ha=c[ea>>2]|0;ia=X>>ha;if(W){ga=Ge(e[t+(da<<1)>>1]|0,0,65537,65537)|0;W=c[d+3488>>2]|0;fa=D;da=da+ -1|0;do{wa=($((da+ -3<<Q)+g>>ha,O)|0)+ia|0;ia=t+(da+ -2<<1)|0;if(!(a[(c[W+16>>2]|0)+wa>>0]|0)){ga=Ge(e[ia>>1]|0,0,65537,65537)|0;fa=D}else{ha=ia;wa=ha;b[wa>>1]=ga;b[wa+2>>1]=ga>>>16;ha=ha+4|0;b[ha>>1]=fa;b[ha+2>>1]=fa>>>16;ha=c[ea>>2]|0}da=da+ -4|0;ia=X>>ha}while((da|0)>-1)}else W=c[d+3488>>2]|0;wa=($((-1<<Q)+g>>ha,O)|0)+ia|0;if(!(a[(c[W+16>>2]|0)+wa>>0]|0))break;b[ba>>1]=b[s>>1]|0}while(0);W=b[ba>>1]|0;b[v>>1]=W;if(!((ca|0)>0&(V^1)))break;W=Ge(W&65535|0,0,65537,65537)|0;Q=(-1<<Q)+g|0;g=c[d+3488>>2]|0;X=D;V=0;do{wa=c[q+13084>>2]|0;wa=($(Q>>wa,O)|0)+((V<<P)+f>>wa)|0;if(!(a[(c[g+16>>2]|0)+wa>>0]|0)){W=Ge(e[v+((V|3)+1<<1)>>1]|0,0,65537,65537)|0;X=D}else{wa=v+((V|1)<<1)|0;va=wa;b[va>>1]=W;b[va+2>>1]=W>>>16;wa=wa+4|0;b[wa>>1]=X;b[wa+2>>1]=X>>>16}V=V+4|0}while((V|0)<(ca|0))}while(0);b:do if(!aa){if(_){O=Ge(e[t+(G<<1)>>1]|0,0,65537,65537)|0;f=D;if((G|0)<=0){N=147;break}N=G+1|0;P=0;while(1){wa=t+(N+P<<1)|0;va=wa;b[va>>1]=O;b[va+2>>1]=O>>>16;wa=wa+4|0;b[wa>>1]=f;b[wa+2>>1]=f>>>16;P=P+4|0;if((P|0)>=(G|0)){N=147;break b}}}if(Z){L=Ge(e[t>>1]|0,0,65537,65537)|0;O=D;N=G<<1;if((G|0)>0)M=0;else{N=150;break}while(1){wa=t+((M|1)<<1)|0;va=wa;b[va>>1]=L;b[va+2>>1]=L>>>16;wa=wa+4|0;b[wa>>1]=O;b[wa+2>>1]=O>>>16;M=M+4|0;if((M|0)>=(N|0)){N=150;break b}}}if(Y){O=b[x>>1]|0;b[t>>1]=O;O=Ge(O&65535|0,0,65537,65537)|0;N=D;M=G<<1;if((G|0)>0)L=0;else{N=152;break}while(1){wa=t+((L|1)<<1)|0;va=wa;b[va>>1]=O;b[va+2>>1]=O>>>16;wa=wa+4|0;b[wa>>1]=N;b[wa+2>>1]=N>>>16;L=L+4|0;if((L|0)>=(M|0)){N=152;break b}}}if(!R){g=1<<m+ -1;b[t>>1]=g;Q=Ge(g&65535|0,0,65537,65537)|0;f=D;N=G<<1;O=(G|0)>0;if(O)P=0;else{N=147;break}do{wa=v+((P|1)<<1)|0;va=wa;b[va>>1]=Q;b[va+2>>1]=Q>>>16;wa=wa+4|0;b[wa>>1]=f;b[wa+2>>1]=f>>>16;P=P+4|0}while((P|0)<(N|0));P=Ge(g&65535|0,0,65537,65537)|0;f=D;if(O)O=0;else{N=147;break}while(1){wa=t+((O|1)<<1)|0;va=wa;b[va>>1]=P;b[va+2>>1]=P>>>16;wa=wa+4|0;b[wa>>1]=f;b[wa+2>>1]=f>>>16;O=O+4|0;if((O|0)>=(N|0)){N=147;break b}}}L=v+(G+1<<1)|0;O=b[L>>1]|0;M=Ge(O&65535|0,0,65537,65537)|0;K=D;J=(G|0)>0;if(J)N=0;else{b[t>>1]=O;break}do{wa=v+((N|1)<<1)|0;va=wa;b[va>>1]=M;b[va+2>>1]=M>>>16;wa=wa+4|0;b[wa>>1]=K;b[wa+2>>1]=K>>>16;N=N+4|0}while((N|0)<(G|0));M=b[L>>1]|0;b[t>>1]=M;M=Ge(M&65535|0,0,65537,65537)|0;K=D;L=G<<1;if(J){J=0;do{wa=t+((J|1)<<1)|0;va=wa;b[va>>1]=M;b[va+2>>1]=M>>>16;wa=wa+4|0;b[wa>>1]=K;b[wa+2>>1]=K>>>16;J=J+4|0}while((J|0)<(L|0));N=155}else N=155}else N=147;while(0);if((N|0)==147)if((U|0)==0?(M=Ge(e[t+(G+1<<1)>>1]|0,0,65537,65537)|0,L=D,(G|0)>0):0){N=0;do{wa=t+((N|1)<<1)|0;va=wa;b[va>>1]=M;b[va+2>>1]=M>>>16;wa=wa+4|0;b[wa>>1]=L;b[wa+2>>1]=L>>>16;N=N+4|0}while((N|0)<(G|0));N=150}else N=150;if((N|0)==150)if(!T){b[t>>1]=b[s>>1]|0;N=152}else N=152;if((N|0)==152)if((S|0)==0?(J=Ge(e[t>>1]|0,0,65537,65537)|0,K=D,(G|0)>0):0){L=0;do{wa=v+((L|1)<<1)|0;va=wa;b[va>>1]=J;b[va+2>>1]=J>>>16;wa=wa+4|0;b[wa>>1]=K;b[wa+2>>1]=K>>>16;L=L+4|0}while((L|0)<(G|0));N=155}else N=155;if(((N|0)==155?!R:0)?(H=Ge(e[v+(G<<1)>>1]|0,0,65537,65537)|0,I=D,(G|0)>0):0){K=G+1|0;J=0;do{wa=v+(K+J<<1)|0;va=wa;b[va>>1]=H;b[va+2>>1]=H>>>16;wa=wa+4|0;b[wa>>1]=I;b[wa+2>>1]=I>>>16;J=J+4|0}while((J|0)<(G|0))}H=b[t>>1]|0;b[v>>1]=H;c:do if(!(c[q+13112>>2]|0)){if(F){if((n|0)==1|(G|0)==4){r=x;break}}else if(((n|0)==1?1:(c[q+4>>2]|0)!=3)|(G|0)==4){r=x;break}wa=n+ -26|0;wa=(wa|0)>-1?wa:26-n|0;va=n+ -10|0;va=(va|0)>-1?va:10-n|0;if((((wa|0)>(va|0)?va:wa)|0)>(c[2776+(h+ -3<<2)>>2]|0)){I=1<<m+ -5;if((F&(a[q+13061>>0]|0)!=0&(h|0)==5?(B=H&65535,E=b[v+128>>1]|0,C=E&65535,wa=C+B-(e[v+64>>1]<<1)|0,(((wa|0)>-1?wa:0-wa|0)|0)<(I|0)):0)?(z=t+128|0,A=b[z>>1]|0,wa=(A&65535)+B-(e[t+64>>1]<<1)|0,(((wa|0)>-1?wa:0-wa|0)|0)<(I|0)):0){b[u>>1]=H;b[u+128>>1]=E;v=0;do{wa=v;v=v+1|0;b[u+(v<<1)>>1]=(($(B,63-wa|0)|0)+32+($(C,v)|0)|0)>>>6}while((v|0)!=63);u=0;while(1){v=u+1|0;b[t+(v<<1)>>1]=(($(H&65535,63-u|0)|0)+32+($(A&65535,v)|0)|0)>>>6;if((v|0)==63)break c;H=b[t>>1]|0;A=b[z>>1]|0;u=v}}z=G<<1;C=b[t+(z<<1)>>1]|0;b[y+(z<<1)>>1]=C;B=b[v+(z<<1)>>1]|0;b[u+(z<<1)>>1]=B;z=z+ -2|0;A=(z|0)>-1;if(A){E=z;while(1){wa=E+1|0;va=C;C=b[t+(wa<<1)>>1]|0;b[y+(wa<<1)>>1]=((va&65535)+2+((C&65535)<<1)+(e[t+(E<<1)>>1]|0)|0)>>>2;if((E|0)<=0)break;else E=E+ -1|0}}wa=((e[s>>1]|0)+2+((H&65535)<<1)+(e[x>>1]|0)|0)>>>2&65535;b[y>>1]=wa;b[u>>1]=wa;if(A)while(1){wa=z+1|0;va=B;B=b[v+(wa<<1)>>1]|0;b[u+(wa<<1)>>1]=((va&65535)+2+((B&65535)<<1)+(e[v+(z<<1)>>1]|0)|0)>>>2;if((z|0)<=0){s=w;break}else z=z+ -1|0}else s=w}else r=x}else r=x;while(0);if(!n){Sa[c[d+(h+ -2<<2)+5848>>2]&15](l,r,s,o);i=k;return}else if((n|0)==1){Pa[c[d+5864>>2]&3](l,r,s,o,h,j);i=k;return}else{if(!(c[q+13104>>2]|0))p=0;else p=(a[p+31256>>0]|0)!=0;Na[c[d+(h+ -2<<2)+5868>>2]&7](l,r,s,o,j,n,p&1,m);i=k;return}}function Ic(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0;g=i;h=c[e>>2]|0;if(!h){i=g;return}if(!(c[h+304>>2]|0)){i=g;return}h=e+70|0;f=(d[h>>0]|0)&(f^255)&255;a[h>>0]=f;if(f<<24>>24){i=g;return}Hd(c[b+4>>2]|0,e+4|0);_d(e+56|0);c[e+16>>2]=0;_d(e+64|0);_d(e+60|0);c[e+24>>2]=0;c[e+20>>2]=0;c[e+36>>2]=0;i=g;return}function Jc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[a+180>>2]|0;f=c[g+13080>>2]|0;e=($(e>>f,c[g+13128>>2]|0)|0)+(d>>f)|0;return c[(c[b+24>>2]|0)+(c[(c[(c[a+184>>2]|0)+1668>>2]|0)+(e<<2)>>2]<<2)>>2]|0}function Kc(a){a=a|0;var b=0,c=0;b=i;c=0;do{Ic(a,a+(c*72|0)+3492|0,6);c=c+1|0}while((c|0)!=32);i=b;return}function Lc(a){a=a|0;var b=0,c=0;b=i;c=0;do{Ic(a,a+(c*72|0)+3492|0,-1);c=c+1|0}while((c|0)!=32);i=b;return}function Mc(d,e,f){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+16|0;o=g;h=d+7640|0;j=0;while(1){if(((c[(c[d+(j*72|0)+3492>>2]|0)+304>>2]|0)!=0?(b[d+(j*72|0)+3560>>1]|0)==(b[h>>1]|0):0)?(c[d+(j*72|0)+3524>>2]|0)==(f|0):0){l=5;break}j=j+1|0;if(j>>>0>=32){j=0;break}}if((l|0)==5){p=c[d+4>>2]|0;c[o>>2]=f;$a(p,16,2792,o);p=-1094995529;i=g;return p|0}while(1){k=d+(j*72|0)+3492|0;p=j+1|0;if(!(c[(c[k>>2]|0)+304>>2]|0))break;if(p>>>0<32)j=p;else{l=17;break}}if((l|0)==17){$a(c[d+4>>2]|0,16,2832,o);p=-12;i=g;return p|0}if((Gd(c[d+4>>2]|0,d+(j*72|0)+3496|0,1)|0)<0){p=-12;i=g;return p|0}p=Yd((c[d+7684>>2]|0)*392|0)|0;l=d+(j*72|0)+3556|0;c[l>>2]=p;if(((p|0)!=0?(n=ce(c[d+1408>>2]|0)|0,c[d+(j*72|0)+3548>>2]=n,(n|0)!=0):0)?(c[d+(j*72|0)+3508>>2]=c[n+4>>2],m=ce(c[d+1412>>2]|0)|0,c[d+(j*72|0)+3552>>2]=m,(m|0)!=0):0){p=c[m+4>>2]|0;o=d+(j*72|0)+3516|0;c[o>>2]=p;m=d+180|0;n=c[m>>2]|0;n=$(c[n+13132>>2]|0,c[n+13128>>2]|0)|0;c[d+(j*72|0)+3520>>2]=n;if((n|0)>0?(c[p>>2]=c[(c[l>>2]|0)+4>>2],(n|0)>1):0){p=1;do{c[(c[o>>2]|0)+(p<<2)>>2]=c[(c[l>>2]|0)+4>>2];p=p+1|0}while((p|0)!=(n|0))}o=d+7796|0;p=c[k>>2]|0;c[p+244>>2]=(c[o>>2]|0)==1&1;c[p+240>>2]=((c[o>>2]|0)+ -1|0)>>>0<2&1;c[e>>2]=p;c[d+3488>>2]=k;a[d+(j*72|0)+3562>>0]=(a[d+2418>>0]|0)==0?2:3;c[d+(j*72|0)+3524>>2]=f;b[d+(j*72|0)+3560>>1]=b[h>>1]|0;p=d+(j*72|0)+3532|0;o=(c[m>>2]|0)+20|0;c[p+0>>2]=c[o+0>>2];c[p+4>>2]=c[o+4>>2];c[p+8>>2]=c[o+8>>2];c[p+12>>2]=c[o+12>>2];p=0;i=g;return p|0}Ic(d,k,-1);p=-12;i=g;return p|0}function Nc(d,e,f){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;k=d+3014|0;j=d+5796|0;h=d+7642|0;f=(f|0)==0;n=d+7640|0;m=d+180|0;o=0;while(1){if((a[k>>0]|0)==1){q=0;do{p=d+(q*72|0)+3492|0;if(((a[d+(q*72|0)+3562>>0]&8)==0?(c[d+(q*72|0)+3524>>2]|0)!=(c[j>>2]|0):0)?(b[d+(q*72|0)+3560>>1]|0)==(b[h>>1]|0):0)Ic(d,p,1);q=q+1|0}while((q|0)!=32);p=0;r=2147483647;q=0}else{p=0;r=2147483647;q=0}do{if((a[d+(p*72|0)+3562>>0]&1)!=0?(b[d+(p*72|0)+3560>>1]|0)==(b[h>>1]|0):0){s=c[d+(p*72|0)+3524>>2]|0;t=(s|0)<(r|0);o=t?p:o;r=t?s:r;q=q+1|0}p=p+1|0}while((p|0)!=32);if(((f?(b[h>>1]|0)==(b[n>>1]|0):0)?(l=c[m>>2]|0,(l|0)!=0):0)?(q|0)<=(c[l+(((c[l+72>>2]|0)+ -1|0)*12|0)+80>>2]|0):0){d=0;h=23;break}if(q){h=17;break}p=b[h>>1]|0;if(p<<16>>16==(b[n>>1]|0)){d=0;h=23;break}b[h>>1]=(p&65535)+1&255}if((h|0)==17){h=d+(o*72|0)+3492|0;e=je(e,c[h>>2]|0)|0;if(!(a[d+(o*72|0)+3562>>0]&8))Ic(d,h,1);else Ic(d,h,9);t=(e|0)<0?e:1;i=g;return t|0}else if((h|0)==23){i=g;return d|0}return 0}function Oc(){var b=0,c=0,d=0,e=0,f=0;b=i;if(!(a[2872]|0))c=0;else{i=b;return}do{d=0;do{f=($(d<<1|1,c)|0)&127;e=f>>>0>63;f=e?f+ -64|0:f;e=e?-1:1;if((f|0)>31){f=64-f|0;e=0-e|0}a[2872+(c<<5)+d>>0]=$(a[3896+f>>0]|0,e)|0;d=d+1|0}while((d|0)!=32);c=c+1|0}while((c|0)!=32);i=b;return}function Pc(a,b){a=a|0;b=b|0;c[a>>2]=4;c[a+4>>2]=9;c[a+8>>2]=10;c[a+12>>2]=11;c[a+16>>2]=12;c[a+20>>2]=1;c[a+24>>2]=2;c[a+28>>2]=1;c[a+32>>2]=3;c[a+36>>2]=4;c[a+40>>2]=5;c[a+44>>2]=6;c[a+48>>2]=2;c[a+52>>2]=3;c[a+56>>2]=4;c[a+60>>2]=5;c[a+64>>2]=1;c[a+68>>2]=1;c[a+72>>2]=2;c[a+1676>>2]=5;c[a+1680>>2]=6;c[a+1684>>2]=2;c[a+1688>>2]=3;c[a+1692>>2]=5;c[a+1696>>2]=6;c[a+1700>>2]=2;c[a+1704>>2]=3;return}function Qc(a,e,f,g,h,j,k){a=a|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;l=i;o=e>>>1;if((g|0)<=0){i=l;return}m=(f|0)>0;e=h+8|0;n=h+16|0;p=32-j|0;k=k-j|0;q=0;while(1){if(m){s=c[n>>2]|0;r=c[h>>2]|0;u=c[e>>2]|0;t=0;do{v=r+(u>>>3)|0;v=(ze(d[v>>0]|d[v+1>>0]<<8|d[v+2>>0]<<16|d[v+3>>0]<<24|0)|0)<<(u&7)>>>p;w=u+j|0;u=s>>>0>w>>>0?w:s;c[e>>2]=u;b[a+(t<<1)>>1]=v<<k;t=t+1|0}while((t|0)!=(f|0))}q=q+1|0;if((q|0)==(g|0))break;else a=a+(o<<1)|0}i=l;return}function Rc(a,c,d,f){a=a|0;c=c|0;d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;d=d>>>1;f=1<<f;h=0-f|0;f=f+ -1|0;j=0;while(1){l=c;m=0;while(1){k=a+(m<<1)|0;n=(b[l>>1]|0)+(e[k>>1]|0)|0;if(n&h)n=0-n>>31&f;b[k>>1]=n;m=m+1|0;if((m|0)==4)break;else l=l+2|0}j=j+1|0;if((j|0)==4)break;else{c=c+8|0;a=a+(d<<1)|0}}i=g;return}function Sc(a,c,d,f){a=a|0;c=c|0;d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;d=d>>>1;f=1<<f;h=0-f|0;f=f+ -1|0;j=0;while(1){l=c;m=0;while(1){k=a+(m<<1)|0;n=(b[l>>1]|0)+(e[k>>1]|0)|0;if(n&h)n=0-n>>31&f;b[k>>1]=n;m=m+1|0;if((m|0)==8)break;else l=l+2|0}j=j+1|0;if((j|0)==8)break;else{c=c+16|0;a=a+(d<<1)|0}}i=g;return}function Tc(a,c,d,f){a=a|0;c=c|0;d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;d=d>>>1;f=1<<f;h=0-f|0;f=f+ -1|0;j=0;while(1){l=c;m=0;while(1){k=a+(m<<1)|0;n=(b[l>>1]|0)+(e[k>>1]|0)|0;if(n&h)n=0-n>>31&f;b[k>>1]=n;m=m+1|0;if((m|0)==16)break;else l=l+2|0}j=j+1|0;if((j|0)==16)break;else{c=c+32|0;a=a+(d<<1)|0}}i=g;return}function Uc(a,c,d,f){a=a|0;c=c|0;d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;d=d>>>1;f=1<<f;h=0-f|0;f=f+ -1|0;j=0;while(1){l=c;m=0;while(1){k=a+(m<<1)|0;n=(b[l>>1]|0)+(e[k>>1]|0)|0;if(n&h)n=0-n>>31&f;b[k>>1]=n;m=m+1|0;if((m|0)==32)break;else l=l+2|0}j=j+1|0;if((j|0)==32)break;else{c=c+64|0;a=a+(d<<1)|0}}i=g;return}function Vc(a,c,d){a=a|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;c=c<<16>>16;d=15-d-c|0;c=1<<c;if((d|0)>0){f=1<<d+ -1;if((c|0)>0){h=a;a=0}else{i=e;return}while(1){j=h;g=0;while(1){b[j>>1]=(b[j>>1]|0)+f>>d;g=g+1|0;if((g|0)==(c|0))break;else j=j+2|0}a=a+1|0;if((a|0)==(c|0))break;else h=h+(c<<1)|0}i=e;return}if((c|0)<=0){i=e;return}d=0-d|0;f=0;while(1){g=a;h=0;while(1){b[g>>1]=b[g>>1]<<d;h=h+1|0;if((h|0)==(c|0))break;else g=g+2|0}f=f+1|0;if((f|0)==(c|0))break;else a=a+(c<<1)|0}i=e;return}function Wc(a,c,d){a=a|0;c=c|0;d=d|0;var f=0,g=0,h=0,j=0,k=0;f=i;c=1<<(c<<16>>16);if(d){d=c+ -1|0;if((d|0)<=0){i=f;return}g=(c|0)>0;h=0;do{if(g){j=0;do{k=a+(j+c<<1)|0;b[k>>1]=(e[k>>1]|0)+(e[a+(j<<1)>>1]|0);j=j+1|0}while((j|0)!=(c|0))}a=a+(c<<1)|0;h=h+1|0}while((h|0)!=(d|0));i=f;return}if((c|0)<=0){i=f;return}d=(c|0)>1;h=0;while(1){if(d){j=b[a>>1]|0;g=1;do{k=a+(g<<1)|0;j=(e[k>>1]|0)+(j&65535)&65535;b[k>>1]=j;g=g+1|0}while((g|0)!=(c|0))}h=h+1|0;if((h|0)==(c|0))break;else a=a+(c<<1)|0}i=f;return}function Xc(a,c){a=a|0;c=c|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=0;g=a;while(1){q=b[g>>1]|0;n=g+16|0;o=b[n>>1]|0;h=o+q|0;f=g+24|0;p=b[f>>1]|0;m=p+o|0;j=q-p|0;l=g+8|0;k=(b[l>>1]|0)*74|0;p=((q-o+p|0)*74|0)+64|0;o=p>>7;if((o+32768|0)>>>0>65535)o=p>>31^32767;b[n>>1]=o;o=(h*29|0)+64+(m*55|0)+k|0;n=o>>7;if((n+32768|0)>>>0>65535)n=o>>31^32767;b[g>>1]=n;m=($(m,-29)|0)+64+(j*55|0)+k|0;n=m>>7;if((n+32768|0)>>>0>65535)n=m>>31^32767;b[l>>1]=n;j=(h*55|0)+64+(j*29|0)-k|0;h=j>>7;if((h+32768|0)>>>0>65535)h=j>>31^32767;b[f>>1]=h;e=e+1|0;if((e|0)==4)break;else g=g+2|0}e=20-c|0;c=1<<e+ -1;g=0;while(1){p=b[a>>1]|0;n=a+4|0;q=b[n>>1]|0;l=q+p|0;f=a+6|0;o=b[f>>1]|0;m=o+q|0;h=p-o|0;k=a+2|0;j=(b[k>>1]|0)*74|0;o=((p-q+o|0)*74|0)+c>>e;if((o+32768|0)>>>0>65535)o=o>>31^32767;b[n>>1]=o;n=(l*29|0)+c+(m*55|0)+j>>e;if((n+32768|0)>>>0>65535)n=n>>31^32767;b[a>>1]=n;m=($(m,-29)|0)+c+(h*55|0)+j>>e;if((m+32768|0)>>>0>65535)m=m>>31^32767;b[k>>1]=m;h=(l*55|0)+c+(h*29|0)-j>>e;if((h+32768|0)>>>0>65535)h=h>>31^32767;b[f>>1]=h;g=g+1|0;if((g|0)==4)break;else a=a+8|0}i=d;return}function Yc(a,c,d){a=a|0;c=c|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;c=i;e=0;g=a;while(1){n=b[g>>1]<<6;k=g+16|0;m=b[k>>1]<<6;j=m+n|0;m=n-m|0;n=g+8|0;l=b[n>>1]|0;f=g+24|0;o=b[f>>1]|0;h=(o*36|0)+(l*83|0)|0;l=($(o,-83)|0)+(l*36|0)|0;o=j+64+h|0;p=o>>7;if((p+32768|0)>>>0>65535)p=o>>31^32767;b[g>>1]=p;p=m+64+l|0;o=p>>7;if((o+32768|0)>>>0>65535)o=p>>31^32767;b[n>>1]=o;l=m-l+64|0;m=l>>7;if((m+32768|0)>>>0>65535)m=l>>31^32767;b[k>>1]=m;j=j-h+64|0;h=j>>7;if((h+32768|0)>>>0>65535)h=j>>31^32767;b[f>>1]=h;e=e+1|0;if((e|0)==4)break;else g=g+2|0}e=20-d|0;d=1<<e+ -1;g=0;while(1){n=b[a>>1]<<6;k=a+4|0;o=b[k>>1]<<6;m=a+2|0;l=b[m>>1]|0;f=a+6|0;j=b[f>>1]|0;h=(j*36|0)+(l*83|0)|0;l=($(j,-83)|0)+(l*36|0)|0;j=o+n+d|0;p=j+h>>e;if((p+32768|0)>>>0>65535)p=p>>31^32767;b[a>>1]=p;n=n-o+d|0;o=n+l>>e;if((o+32768|0)>>>0>65535)o=o>>31^32767;b[m>>1]=o;l=n-l>>e;if((l+32768|0)>>>0>65535)l=l>>31^32767;b[k>>1]=l;h=j-h>>e;if((h+32768|0)>>>0>65535)h=h>>31^32767;b[f>>1]=h;g=g+1|0;if((g|0)==4)break;else a=a+8|0}i=c;return}function Zc(d,e,f){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;j=i;i=i+64|0;r=j+48|0;p=j+32|0;g=j+16|0;h=j;q=(e|0)>8;s=e+4|0;k=r+4|0;l=r+8|0;m=r+12|0;o=0;s=(s|0)>8?8:s;n=d;while(1){c[p+0>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;c[p+12>>2]=0;w=(s|0)>1;t=0;do{if(w){v=p+(t<<2)|0;u=c[v>>2]|0;x=1;do{u=($(b[n+(x<<3<<1)>>1]|0,a[2872+(x<<2<<5)+t>>0]|0)|0)+u|0;x=x+2|0}while((x|0)<(s|0));c[v>>2]=u}t=t+1|0}while((t|0)!=4);w=b[n>>1]<<6;v=b[n+64>>1]<<6;x=v+w|0;v=w-v|0;w=b[n+32>>1]|0;u=b[n+96>>1]|0;t=(u*36|0)+(w*83|0)|0;w=($(u,-83)|0)+(w*36|0)|0;u=t+x|0;c[r>>2]=u;c[k>>2]=w+v;c[l>>2]=v-w;c[m>>2]=x-t;t=0;while(1){v=c[p+(t<<2)>>2]|0;w=u+64+v|0;x=w>>7;if((x+32768|0)>>>0>65535)x=w>>31^32767;b[n+(t<<3<<1)>>1]=x;v=u-v+64|0;u=v>>7;if((u+32768|0)>>>0>65535)u=v>>31^32767;b[n+(7-t<<3<<1)>>1]=u;t=t+1|0;if((t|0)==4)break;u=c[r+(t<<2)>>2]|0}if((s|0)<8)s=(o&3|0)==0&(o|0)!=0?s+ -4|0:s;o=o+1|0;if((o|0)==8)break;else n=n+2|0}k=q?8:e;l=20-f|0;m=1<<l+ -1;f=(k|0)>1;n=g+4|0;o=g+8|0;e=g+12|0;p=0;while(1){c[h+0>>2]=0;c[h+4>>2]=0;c[h+8>>2]=0;c[h+12>>2]=0;t=0;do{if(f){q=h+(t<<2)|0;s=c[q>>2]|0;r=1;do{s=($(b[d+(r<<1)>>1]|0,a[2872+(r<<2<<5)+t>>0]|0)|0)+s|0;r=r+2|0}while((r|0)<(k|0));c[q>>2]=s}t=t+1|0}while((t|0)!=4);w=b[d>>1]<<6;v=b[d+8>>1]<<6;x=v+w|0;v=w-v|0;w=b[d+4>>1]|0;s=b[d+12>>1]|0;q=(s*36|0)+(w*83|0)|0;w=($(s,-83)|0)+(w*36|0)|0;s=q+x|0;c[g>>2]=s;c[n>>2]=w+v;c[o>>2]=v-w;c[e>>2]=x-q;q=0;while(1){r=c[h+(q<<2)>>2]|0;s=s+m|0;t=s+r>>l;if((t+32768|0)>>>0>65535)t=t>>31^32767;b[d+(q<<1)>>1]=t;r=s-r>>l;if((r+32768|0)>>>0>65535)r=r>>31^32767;b[d+(7-q<<1)>>1]=r;q=q+1|0;if((q|0)==4)break;s=c[g+(q<<2)>>2]|0}p=p+1|0;if((p|0)==8)break;else d=d+16|0}i=j;return}function _c(d,e,f){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;g=i;i=i+192|0;t=g+160|0;u=g+128|0;v=g+112|0;s=g+96|0;j=g+64|0;l=g+32|0;h=g+16|0;k=g;m=(e|0)>16;w=e+4|0;n=v+4|0;o=v+8|0;p=v+12|0;r=0;w=(w|0)>16?16:w;q=d;while(1){c[u+0>>2]=0;c[u+4>>2]=0;c[u+8>>2]=0;c[u+12>>2]=0;c[u+16>>2]=0;c[u+20>>2]=0;c[u+24>>2]=0;c[u+28>>2]=0;A=(w|0)>1;B=0;do{if(A){z=u+(B<<2)|0;x=c[z>>2]|0;y=1;do{x=($(b[q+(y<<4<<1)>>1]|0,a[2872+(y<<1<<5)+B>>0]|0)|0)+x|0;y=y+2|0}while((y|0)<(w|0));c[z>>2]=x}B=B+1|0}while((B|0)!=8);c[s+0>>2]=0;c[s+4>>2]=0;c[s+8>>2]=0;c[s+12>>2]=0;y=0;do{x=s+(y<<2)|0;A=c[x>>2]|0;z=1;do{A=($(b[q+(z<<5<<1)>>1]|0,a[2872+(z<<2<<5)+y>>0]|0)|0)+A|0;z=z+2|0}while((z|0)<8);c[x>>2]=A;y=y+1|0}while((y|0)!=4);A=b[q>>1]<<6;z=b[q+256>>1]<<6;B=z+A|0;z=A-z|0;A=b[q+128>>1]|0;x=b[q+384>>1]|0;y=(x*36|0)+(A*83|0)|0;A=($(x,-83)|0)+(A*36|0)|0;x=y+B|0;c[v>>2]=x;c[n>>2]=A+z;c[o>>2]=z-A;c[p>>2]=B-y;y=0;while(1){B=c[s+(y<<2)>>2]|0;c[t+(y<<2)>>2]=B+x;c[t+(7-y<<2)>>2]=x-B;y=y+1|0;if((y|0)==4){x=0;break}x=c[v+(y<<2)>>2]|0}do{z=c[t+(x<<2)>>2]|0;y=c[u+(x<<2)>>2]|0;B=z+64+y|0;A=B>>7;if((A+32768|0)>>>0>65535)A=B>>31^32767;b[q+(x<<4<<1)>>1]=A;y=z-y+64|0;z=y>>7;if((z+32768|0)>>>0>65535)z=y>>31^32767;b[q+(15-x<<4<<1)>>1]=z;x=x+1|0}while((x|0)!=8);if((w|0)<16)w=(r&3|0)==0&(r|0)!=0?w+ -4|0:w;r=r+1|0;if((r|0)==16)break;else q=q+2|0}m=m?16:e;f=20-f|0;n=1<<f+ -1;q=(m|0)>1;o=h+4|0;r=h+8|0;p=h+12|0;s=0;while(1){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[l+28>>2]=0;v=0;do{if(q){e=l+(v<<2)|0;u=c[e>>2]|0;t=1;do{u=($(b[d+(t<<1)>>1]|0,a[2872+(t<<1<<5)+v>>0]|0)|0)+u|0;t=t+2|0}while((t|0)<(m|0));c[e>>2]=u}v=v+1|0}while((v|0)!=8);c[k+0>>2]=0;c[k+4>>2]=0;c[k+8>>2]=0;c[k+12>>2]=0;e=0;do{t=k+(e<<2)|0;v=c[t>>2]|0;u=1;do{v=($(b[d+(u<<1<<1)>>1]|0,a[2872+(u<<2<<5)+e>>0]|0)|0)+v|0;u=u+2|0}while((u|0)<8);c[t>>2]=v;e=e+1|0}while((e|0)!=4);A=b[d>>1]<<6;z=b[d+16>>1]<<6;B=z+A|0;z=A-z|0;A=b[d+8>>1]|0;t=b[d+24>>1]|0;u=(t*36|0)+(A*83|0)|0;A=($(t,-83)|0)+(A*36|0)|0;t=u+B|0;c[h>>2]=t;c[o>>2]=A+z;c[r>>2]=z-A;c[p>>2]=B-u;u=0;while(1){B=c[k+(u<<2)>>2]|0;c[j+(u<<2)>>2]=B+t;c[j+(7-u<<2)>>2]=t-B;u=u+1|0;if((u|0)==4){t=0;break}t=c[h+(u<<2)>>2]|0}do{u=c[l+(t<<2)>>2]|0;v=(c[j+(t<<2)>>2]|0)+n|0;e=v+u>>f;if((e+32768|0)>>>0>65535)e=e>>31^32767;b[d+(t<<1)>>1]=e;u=v-u>>f;if((u+32768|0)>>>0>65535)u=u>>31^32767;b[d+(15-t<<1)>>1]=u;t=t+1|0}while((t|0)!=8);s=s+1|0;if((s|0)==16)break;else d=d+32|0}i=g;return}function $c(d,e,f){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;g=i;i=i+320|0;h=g+256|0;n=g+192|0;o=g+160|0;s=g+128|0;u=g+112|0;t=g+96|0;m=g+64|0;k=g+32|0;j=g+16|0;l=g;q=(e|0)>32;y=e+4|0;v=u+4|0;w=u+8|0;x=u+12|0;p=0;y=(y|0)>32?32:y;r=d;while(1){z=n+0|0;A=z+64|0;do{c[z>>2]=0;z=z+4|0}while((z|0)<(A|0));z=(y|0)>1;C=0;do{if(z){B=n+(C<<2)|0;A=c[B>>2]|0;D=1;do{A=($(b[r+(D<<5<<1)>>1]|0,a[2872+(D<<5)+C>>0]|0)|0)+A|0;D=D+2|0}while((D|0)<(y|0));c[B>>2]=A}C=C+1|0}while((C|0)!=16);c[s+0>>2]=0;c[s+4>>2]=0;c[s+8>>2]=0;c[s+12>>2]=0;c[s+16>>2]=0;c[s+20>>2]=0;c[s+24>>2]=0;c[s+28>>2]=0;z=(y|0)/2|0;A=(y|0)>3;B=0;do{if(A){C=s+(B<<2)|0;D=c[C>>2]|0;E=1;do{D=($(b[r+(E<<6<<1)>>1]|0,a[2872+(E<<1<<5)+B>>0]|0)|0)+D|0;E=E+2|0}while((E|0)<(z|0));c[C>>2]=D}B=B+1|0}while((B|0)!=8);c[t+0>>2]=0;c[t+4>>2]=0;c[t+8>>2]=0;c[t+12>>2]=0;C=0;do{z=t+(C<<2)|0;B=c[z>>2]|0;A=1;do{B=($(b[r+(A<<7<<1)>>1]|0,a[2872+(A<<2<<5)+C>>0]|0)|0)+B|0;A=A+2|0}while((A|0)<8);c[z>>2]=B;C=C+1|0}while((C|0)!=4);D=b[r>>1]<<6;C=b[r+1024>>1]<<6;E=C+D|0;C=D-C|0;D=b[r+512>>1]|0;z=b[r+1536>>1]|0;A=(z*36|0)+(D*83|0)|0;D=($(z,-83)|0)+(D*36|0)|0;z=A+E|0;c[u>>2]=z;c[v>>2]=D+C;c[w>>2]=C-D;c[x>>2]=E-A;A=0;while(1){E=c[t+(A<<2)>>2]|0;c[o+(A<<2)>>2]=E+z;c[o+(7-A<<2)>>2]=z-E;A=A+1|0;if((A|0)==4){z=0;break}z=c[u+(A<<2)>>2]|0}do{D=c[o+(z<<2)>>2]|0;E=c[s+(z<<2)>>2]|0;c[h+(z<<2)>>2]=E+D;c[h+(15-z<<2)>>2]=D-E;z=z+1|0}while((z|0)!=8);z=0;do{A=c[h+(z<<2)>>2]|0;B=c[n+(z<<2)>>2]|0;D=A+64+B|0;C=D>>7;if((C+32768|0)>>>0>65535)C=D>>31^32767;b[r+(z<<5<<1)>>1]=C;A=A-B+64|0;B=A>>7;if((B+32768|0)>>>0>65535)B=A>>31^32767;b[r+(31-z<<5<<1)>>1]=B;z=z+1|0}while((z|0)!=16);if((y|0)<32)y=(p&3|0)==0&(p|0)!=0?y+ -4|0:y;p=p+1|0;if((p|0)==32)break;else r=r+2|0}o=q?32:e;e=20-f|0;s=1<<e+ -1;f=(o|0)>1;r=(o|0)/2|0;q=(o|0)>3;p=j+4|0;t=j+8|0;u=j+12|0;v=0;while(1){z=n+0|0;A=z+64|0;do{c[z>>2]=0;z=z+4|0}while((z|0)<(A|0));z=0;do{if(f){w=n+(z<<2)|0;y=c[w>>2]|0;x=1;do{y=($(b[d+(x<<1)>>1]|0,a[2872+(x<<5)+z>>0]|0)|0)+y|0;x=x+2|0}while((x|0)<(o|0));c[w>>2]=y}z=z+1|0}while((z|0)!=16);c[k+0>>2]=0;c[k+4>>2]=0;c[k+8>>2]=0;c[k+12>>2]=0;c[k+16>>2]=0;c[k+20>>2]=0;c[k+24>>2]=0;c[k+28>>2]=0;z=0;do{if(q){w=k+(z<<2)|0;y=c[w>>2]|0;x=1;do{E=x<<1;y=($(b[d+(E<<1)>>1]|0,a[2872+(E<<5)+z>>0]|0)|0)+y|0;x=x+2|0}while((x|0)<(r|0));c[w>>2]=y}z=z+1|0}while((z|0)!=8);c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;w=0;do{x=l+(w<<2)|0;z=c[x>>2]|0;y=1;do{E=y<<2;z=($(b[d+(E<<1)>>1]|0,a[2872+(E<<5)+w>>0]|0)|0)+z|0;y=y+2|0}while((y|0)<8);c[x>>2]=z;w=w+1|0}while((w|0)!=4);D=b[d>>1]<<6;C=b[d+32>>1]<<6;E=C+D|0;C=D-C|0;D=b[d+16>>1]|0;w=b[d+48>>1]|0;x=(w*36|0)+(D*83|0)|0;D=($(w,-83)|0)+(D*36|0)|0;w=x+E|0;c[j>>2]=w;c[p>>2]=D+C;c[t>>2]=C-D;c[u>>2]=E-x;x=0;while(1){E=c[l+(x<<2)>>2]|0;c[m+(x<<2)>>2]=E+w;c[m+(7-x<<2)>>2]=w-E;x=x+1|0;if((x|0)==4){w=0;break}w=c[j+(x<<2)>>2]|0}do{D=c[m+(w<<2)>>2]|0;E=c[k+(w<<2)>>2]|0;c[h+(w<<2)>>2]=E+D;c[h+(15-w<<2)>>2]=D-E;w=w+1|0}while((w|0)!=8);w=0;do{x=c[n+(w<<2)>>2]|0;y=(c[h+(w<<2)>>2]|0)+s|0;z=y+x>>e;if((z+32768|0)>>>0>65535)z=z>>31^32767;b[d+(w<<1)>>1]=z;x=y-x>>e;if((x+32768|0)>>>0>65535)x=x>>31^32767;b[d+(31-w<<1)>>1]=x;w=w+1|0}while((w|0)!=16);v=v+1|0;if((v|0)==32)break;else d=d+64|0}i=g;return}function ad(a,c){a=a|0;c=c|0;var d=0,e=0,f=0;d=i;c=14-c|0;c=((b[a>>1]|0)+1>>1)+(1<<c+ -1)>>c&65535;e=0;do{f=e<<2;b[a+(f<<1)>>1]=c;b[a+((f|1)<<1)>>1]=c;b[a+((f|2)<<1)>>1]=c;b[a+((f|3)<<1)>>1]=c;e=e+1|0}while((e|0)!=4);i=d;return}function bd(a,c){a=a|0;c=c|0;var d=0,e=0,f=0;d=i;c=14-c|0;c=((b[a>>1]|0)+1>>1)+(1<<c+ -1)>>c&65535;e=0;do{f=e<<3;b[a+(f<<1)>>1]=c;b[a+((f|1)<<1)>>1]=c;b[a+((f|2)<<1)>>1]=c;b[a+((f|3)<<1)>>1]=c;b[a+((f|4)<<1)>>1]=c;b[a+((f|5)<<1)>>1]=c;b[a+((f|6)<<1)>>1]=c;b[a+((f|7)<<1)>>1]=c;e=e+1|0}while((e|0)!=8);i=d;return}function cd(a,c){a=a|0;c=c|0;var d=0,e=0,f=0,g=0;d=i;e=14-c|0;e=((b[a>>1]|0)+1>>1)+(1<<e+ -1)>>e&65535;c=0;do{f=c<<4;g=0;do{b[a+(g+f<<1)>>1]=e;g=g+1|0}while((g|0)!=16);c=c+1|0}while((c|0)!=16);i=d;return}function dd(a,c){a=a|0;c=c|0;var d=0,e=0,f=0,g=0;d=i;e=14-c|0;e=((b[a>>1]|0)+1>>1)+(1<<e+ -1)>>e&65535;c=0;do{f=c<<5;g=0;do{b[a+(g+f<<1)>>1]=e;g=g+1|0}while((g|0)!=32);c=c+1|0}while((c|0)!=32);i=d;return}function ed(a,f,g,h,j,k,l,m,n,o){a=a|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;p=i;i=i+128|0;k=p;r=k+0|0;q=r+128|0;do{c[r>>2]=0;r=r+4|0}while((r|0)<(q|0));t=d[j+n+96>>0]|0;g=g>>>1;c[k+((t&31)<<2)>>2]=b[j+(n*10|0)+114>>1];c[k+((t+1&31)<<2)>>2]=b[j+(n*10|0)+116>>1];c[k+((t+2&31)<<2)>>2]=b[j+(n*10|0)+118>>1];c[k+((t+3&31)<<2)>>2]=b[j+(n*10|0)+120>>1];j=o+ -5|0;h=h>>>1;if((m|0)<=0){i=p;return}n=(l|0)>0;o=1<<o;q=0-o|0;o=o+ -1|0;r=0;while(1){if(n){s=0;do{t=e[f+(s<<1)>>1]|0;t=t+(c[k+(t>>>j<<2)>>2]|0)|0;if(t&q)t=0-t>>31&o;b[a+(s<<1)>>1]=t;s=s+1|0}while((s|0)!=(l|0))}r=r+1|0;if((r|0)==(m|0))break;else{a=a+(g<<1)|0;f=f+(h<<1)|0}}i=p;return}function fd(a,d,f,g,h,j,k,l,m,n,o,p,q){a=a|0;d=d|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;var r=0,s=0,t=0,u=0,v=0,w=0;n=i;o=h+(m*10|0)+112|0;r=c[h+(m<<2)+100>>2]|0;f=f>>>1;g=g>>>1;if((r|0)!=1){if(c[j>>2]|0){u=b[o>>1]|0;if((l|0)>0){p=1<<q;t=0-p|0;p=p+ -1|0;s=0;do{v=(e[d+(($(s,g)|0)<<1)>>1]|0)+u|0;if(v&t)v=0-v>>31&p;b[a+(($(s,f)|0)<<1)>>1]=v;s=s+1|0}while((s|0)!=(l|0));p=1}else p=1}else p=0;if(c[j+8>>2]|0){s=b[o>>1]|0;k=k+ -1|0;if((l|0)>0){v=1<<q;u=0-v|0;v=v+ -1|0;t=0;do{w=(e[d+(($(t,g)|0)+k<<1)>>1]|0)+s|0;if(w&u)w=0-w>>31&v;b[a+(($(t,f)|0)+k<<1)>>1]=w;t=t+1|0}while((t|0)!=(l|0))}}if(!r){u=l;v=p;w=0;t=k;nd(a,d,f,g,h,t,u,m,v,w,q);i=n;return}}else p=0;if(c[j+4>>2]|0){r=b[o>>1]|0;if((p|0)<(k|0)){s=1<<q;t=0-s|0;s=s+ -1|0;u=p;do{v=(e[d+(u<<1)>>1]|0)+r|0;if(v&t)v=0-v>>31&s;b[a+(u<<1)>>1]=v;u=u+1|0}while((u|0)!=(k|0));r=1}else r=1}else r=0;if(!(c[j+12>>2]|0)){u=l;v=p;w=r;t=k;nd(a,d,f,g,h,t,u,m,v,w,q);i=n;return}j=b[o>>1]|0;t=l+ -1|0;o=$(t,f)|0;u=$(t,g)|0;if((p|0)>=(k|0)){u=t;v=p;w=r;t=k;nd(a,d,f,g,h,t,u,m,v,w,q);i=n;return}s=1<<q;l=0-s|0;s=s+ -1|0;v=p;do{w=(e[d+(v+u<<1)>>1]|0)+j|0;if(w&l)w=0-w>>31&s;b[a+(v+o<<1)>>1]=w;v=v+1|0}while((v|0)!=(k|0));nd(a,d,f,g,h,k,t,m,p,r,q);i=n;return}function gd(d,f,g,h,j,k,l,m,n,o,p,q,r){d=d|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;t=i;D=j+(n*10|0)+112|0;C=c[j+(n<<2)+100>>2]|0;g=g>>>1;h=h>>>1;B=(C|0)!=1;if(B){if(c[k>>2]|0){I=b[D>>1]|0;if((m|0)>0){H=1<<r;G=0-H|0;H=H+ -1|0;F=0;do{J=(e[f+(($(F,h)|0)<<1)>>1]|0)+I|0;if(J&G)J=0-J>>31&H;b[d+(($(F,g)|0)<<1)>>1]=J;F=F+1|0}while((F|0)!=(m|0));F=1}else F=1}else F=0;if(c[k+8>>2]|0){G=b[D>>1]|0;l=l+ -1|0;if((m|0)>0){J=1<<r;I=0-J|0;J=J+ -1|0;H=0;do{K=(e[f+(($(H,h)|0)+l<<1)>>1]|0)+G|0;if(K&I)K=0-K>>31&J;b[d+(($(H,g)|0)+l<<1)>>1]=K;H=H+1|0}while((H|0)!=(m|0))}}if(!C){D=1;G=0}else E=15}else{F=0;E=15}if((E|0)==15){if(c[k+4>>2]|0){H=b[D>>1]|0;if((F|0)<(l|0)){I=1<<r;G=0-I|0;I=I+ -1|0;E=F;do{J=(e[f+(E<<1)>>1]|0)+H|0;if(J&G)J=0-J>>31&I;b[d+(E<<1)>>1]=J;E=E+1|0}while((E|0)!=(l|0));G=1}else G=1}else G=0;if(c[k+12>>2]|0){D=b[D>>1]|0;m=m+ -1|0;I=$(m,g)|0;H=$(m,h)|0;if((F|0)<(l|0)){K=1<<r;J=0-K|0;K=K+ -1|0;E=F;do{L=(e[f+(E+H<<1)>>1]|0)+D|0;if(L&J)L=0-L>>31&K;b[d+(E+I<<1)>>1]=L;E=E+1|0}while((E|0)!=(l|0));D=0}else D=0}else D=0}nd(d,f,g,h,j,l,m,n,F,G,r);r=(C|0)==2;if((a[q>>0]|0)==0&r?(c[k>>2]|0)==0:0)j=(c[k+4>>2]|0)==0;else j=0;H=j&1;j=q+1|0;C=(C|0)==3;if((a[j>>0]|0)==0&C?(c[k+4>>2]|0)==0:0)n=(c[k+8>>2]|0)==0;else n=0;I=n&1;n=q+2|0;if((a[n>>0]|0)==0&r?(c[k+8>>2]|0)==0:0)E=(c[k+12>>2]|0)==0;else E=0;J=E&1;E=q+3|0;if((a[E>>0]|0)==0&C?(c[k>>2]|0)==0:0)k=(c[k+12>>2]|0)==0;else k=0;k=k&1;B=B^1;if(!((a[o>>0]|0)==0|B)?(A=H+G|0,z=m-k|0,(A|0)<(z|0)):0)do{b[d+(($(A,g)|0)<<1)>>1]=b[f+(($(A,h)|0)<<1)>>1]|0;A=A+1|0}while((A|0)!=(z|0));if(!((a[o+1>>0]|0)==0|B)?(y=I+G|0,x=m-J|0,(y|0)<(x|0)):0){z=l+ -1|0;do{b[d+(z+($(y,g)|0)<<1)>>1]=b[f+(z+($(y,h)|0)<<1)>>1]|0;y=y+1|0}while((y|0)!=(x|0))}if(!((a[p>>0]|0)==0|D)?(w=H+F|0,v=l-I|0,(w|0)<(v|0)):0)do{b[d+(w<<1)>>1]=b[f+(w<<1)>>1]|0;w=w+1|0}while((w|0)!=(v|0));if(!((a[p+1>>0]|0)==0|D)?(u=k+F|0,s=l-J|0,(u|0)<(s|0)):0){v=m+ -1|0;p=$(v,h)|0;v=$(v,g)|0;do{b[d+(u+v<<1)>>1]=b[f+(u+p<<1)>>1]|0;u=u+1|0}while((u|0)!=(s|0))}if((a[q>>0]|0)!=0&r)b[d>>1]=b[f>>1]|0;if((a[j>>0]|0)!=0&C){L=l+ -1|0;b[d+(L<<1)>>1]=b[f+(L<<1)>>1]|0}if((a[n>>0]|0)!=0&r){L=m+ -1|0;K=l+ -1|0;b[d+(K+($(L,g)|0)<<1)>>1]=b[f+(K+($(L,h)|0)<<1)>>1]|0}if(!((a[E>>0]|0)!=0&C)){i=t;return}L=m+ -1|0;b[d+(($(L,g)|0)<<1)>>1]=b[f+(($(L,h)|0)<<1)>>1]|0;i=t;return}function hd(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;var h=0;h=i;md(a,b,2,c,d,e,f,g);i=h;return}function id(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;var h=0;h=i;md(a,2,b,c,d,e,f,g);i=h;return}function jd(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;g=i;ld(a,b,2,c,d,e,f);i=g;return}function kd(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;g=i;ld(a,2,b,c,d,e,f);i=g;return}function ld(d,f,g,h,j,k,l){d=d|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;m=i;f=f>>>1;p=g>>>1;o=l+ -8|0;g=$(f,-2)|0;n=0-f|0;r=1<<l;q=0-r|0;r=r+ -1|0;l=0;while(1){s=c[h+(l<<2)>>2]<<o;if((s|0)>=1){v=0-s|0;u=(a[j+l>>0]|0)==0;t=(a[k+l>>0]|0)==0;x=0;w=d;while(1){y=w+(n<<1)|0;B=e[y>>1]|0;z=e[w>>1]|0;A=(e[w+(g<<1)>>1]|0)+4-(e[w+(f<<1)>>1]|0)+(z-B<<2)>>3;if((A|0)<(v|0))A=v;else A=(A|0)>(s|0)?s:A;if(u){B=A+B|0;if(B&q)B=0-B>>31&r;b[y>>1]=B}if(t){y=z-A|0;if(y&q)y=0-y>>31&r;b[w>>1]=y}x=x+1|0;if((x|0)==4)break;else w=w+(p<<1)|0}}l=l+1|0;if((l|0)==2)break;else d=d+(p<<2<<1)|0}i=m;return}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,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;t=i;x=c[j+(m<<2)+100>>2]|0;r=a[3936+(x<<2)>>0]|0;q=a[3938+(x<<2)>>0]|0;if((o|0)>=(l|0)){i=t;return}s=(n|0)<(k|0);v=1<<p;u=0-v|0;v=v+ -1|0;w=o;p=$((a[3937+(x<<2)>>0]|0)+o|0,h)|0;y=$((a[3939+(x<<2)>>0]|0)+o|0,h)|0;x=$(o,g)|0;z=$(o,h)|0;while(1){if(s){o=p+r|0;A=y+q|0;B=n;do{C=b[f+(B+z<<1)>>1]|0;D=b[f+(o+B<<1)>>1]|0;if((C&65535)>(D&65535))D=3;else D=((C<<16>>16!=D<<16>>16)<<31>>31)+2|0;E=b[f+(A+B<<1)>>1]|0;if((C&65535)>(E&65535))E=1;else E=(C<<16>>16!=E<<16>>16)<<31>>31;C=(b[j+(m*10|0)+(d[3928+(E+D)>>0]<<1)+112>>1]|0)+(C&65535)|0;if(C&u)C=0-C>>31&v;b[e+(B+x<<1)>>1]=C;B=B+1|0}while((B|0)!=(k|0))}w=w+1|0;if((w|0)==(l|0))break;else{p=p+h|0;y=y+h|0;x=x+g|0;z=z+h|0}}i=t;return}function od(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;j=i;k=c[b+136>>2]|0;l=(c[b+180>>2]|0)+13080|0;r=(1<<c[l>>2])+ -1|0;o=r&e;n=r&f;q=(n|0)!=0|(a[k+309>>0]|0)!=0;m=q&1;c[k+31296>>2]=m;p=(o|0)!=0|(a[k+308>>0]|0)!=0;b=p&1;c[k+31292>>2]=b;if(!(r&(f|e)))p=d[k+311>>0]|0;else p=p&q&1;c[k+31300>>2]=p;if((o+g|0)==(1<<c[l>>2]|0))m=(a[k+310>>0]|0)!=0&(n|0)==0&1;c[k+31308>>2]=m;if(!m){q=0;q=q&1;r=k+31304|0;c[r>>2]=q;r=h+f|0;q=k+316|0;q=c[q>>2]|0;q=(r|0)<(q|0);q=q?b:0;r=k+31288|0;c[r>>2]=q;i=j;return}q=(g+e|0)<(c[k+312>>2]|0);q=q&1;r=k+31304|0;c[r>>2]=q;r=h+f|0;q=k+316|0;q=c[q>>2]|0;q=(r|0)<(q|0);q=q?b:0;r=k+31288|0;c[r>>2]=q;i=j;return}function pd(b){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,z=0,A=0,B=0,C=0,D=0;e=i;i=i+32|0;g=e;f=e+24|0;h=c[b+136>>2]|0;n=h+204|0;j=Yd(13196)|0;c[f>>2]=j;if(!j){B=-12;i=e;return B|0}k=c[j+4>>2]|0;j=b+4|0;$a(c[j>>2]|0,48,3952,g);r=Yd(468)|0;if(!r){B=-12;i=e;return B|0}o=c[r+4>>2]|0;c[o+4>>2]=1;m=o+8|0;c[m>>2]=1;a[o>>0]=0;c[o+348>>2]=1;l=o+352|0;p=o+380|0;q=o+408|0;s=0;do{c[l+(s<<2)>>2]=1;c[p+(s<<2)>>2]=0;c[q+(s<<2)>>2]=-1;s=s+1|0}while((s|0)<(c[m>>2]|0));c[o+436>>2]=0;c[o+440>>2]=1;a[o+444>>0]=0;s=b+188|0;_d(s);c[s>>2]=r;c[k>>2]=0;s=k+72|0;c[s>>2]=1;m=h+212|0;A=c[m>>2]|0;r=h+220|0;u=c[r>>2]|0;B=(c[n>>2]|0)+(A>>>3)|0;B=(ze(d[B>>0]|d[B+1>>0]<<8|d[B+2>>0]<<16|d[B+3>>0]<<24|0)|0)<<(A&7);A=A+8|0;c[m>>2]=u>>>0>A>>>0?A:u;u=k+4|0;c[u>>2]=B>>>24;a:do if(B>>>0<=67108863){a[k+8>>0]=0;l=c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c[m>>2]|0;z=c[n>>2]|0;A=c[r>>2]|0}D=(d[z+(t>>>3)>>0]|0)<<(t&7)>>>7&1;c[m>>2]=((t|0)<(A|0)&1)+t;c[k+13112>>2]=D;D=c[m>>2]|0;C=d[z+(D>>>3)>>0]|0;t=c[r>>2]|0;A=((D|0)<(t|0)&1)+D|0;c[m>>2]=A;if(C&128>>>(D&7)){$a(c[j>>2]|0,24,4128,g);A=c[m>>2]|0;z=c[n>>2]|0;t=c[r>>2]|0}D=(d[z+(A>>>3)>>0]|0)<<(A&7)>>>7&1;c[m>>2]=((A|0)<(t|0)&1)+A;c[k+13116>>2]=D;D=c[m>>2]|0;C=d[z+(D>>>3)>>0]|0;c[m>>2]=((D|0)<(c[r>>2]|0)&1)+D;if(C&128>>>(D&7))$a(c[j>>2]|0,24,4192,g)}n=c[q>>2]|0;c[k+12>>2]=n;p=c[p>>2]|0;c[k+16>>2]=p;D=c[y>>2]|0;q=(c[x>>2]|0)+D|0;c[k+13080>>2]=q;C=D+ -1|0;c[k+13084>>2]=C;B=1<<q;r=n+ -1+B>>q;c[k+13128>>2]=r;B=p+ -1+B>>q;c[k+13132>>2]=B;c[k+13136>>2]=$(B,r)|0;c[k+13140>>2]=n>>D;c[k+13144>>2]=p>>D;r=c[w>>2]|0;c[k+13148>>2]=n>>r;c[k+13152>>2]=p>>r;c[k+13156>>2]=n>>C;c[k+13160>>2]=p>>C;r=q-r|0;c[k+13164>>2]=(1<<r)+ -1;c[k+13192>>2]=((c[o>>2]|0)*6|0)+ -48;D=(1<<D)+ -1|0;if((D&n|0)==0?(p&D|0)==0:0){if(q>>>0>6){D=c[j>>2]|0;c[g>>2]=q;$a(D,16,4296,g);break}k=c[v>>2]|0;if(k>>>0>r>>>0){D=c[j>>2]|0;c[g>>2]=k;$a(D,16,4328,g);break}k=c[u>>2]|0;if(k>>>0>r>>>0){D=c[j>>2]|0;c[g>>2]=k;$a(D,16,4384,g);break}k=c[s>>2]|0;if(k>>>0>(q>>>0>5?5:q)>>>0){D=c[j>>2]|0;c[g>>2]=k;$a(D,16,4440,g);break}h=(c[h+216>>2]|0)-(c[m>>2]|0)|0;j=c[j>>2]|0;if((h|0)<0){c[g>>2]=0-h;$a(j,16,4488,g);break}if(c[j+680>>2]&4){c[g>>2]=0;c[g+4>>2]=n;c[g+8>>2]=p;c[g+12>>2]=n;c[g+16>>2]=p;c[g+20>>2]=4592;$a(j,48,4520,g)}g=b+252|0;h=c[g>>2]|0;do if(!h)h=0;else{D=c[f>>2]|0;if(qe(c[h+4>>2]|0,c[D+4>>2]|0,c[D+8>>2]|0)|0){h=0;break}_d(f);D=0;i=e;return D|0}while(0);do{j=b+(h<<2)+380|0;k=c[j>>2]|0;do if(k){if(c[c[k+4>>2]>>2]|0)break;_d(j)}while(0);h=h+1|0}while((h|0)!=256);h=c[g>>2]|0;do if(h){j=b+180|0;if((c[j>>2]|0)!=(c[h+4>>2]|0))break;C=b+1404|0;_d(C);D=Zd(c[g>>2]|0)|0;c[C>>2]=D;if(D)break;c[j>>2]=0}while(0);_d(g);c[g>>2]=c[f>>2];D=0;i=e;return D|0}$a(c[j>>2]|0,16,4256,g)}}}else l=-1094995529;while(0);_d(f);D=l;i=e;return D|0}function qd(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;b=i;e=c[a>>2]|0;f=a+8|0;g=c[f>>2]|0;a=c[a+16>>2]|0;l=e+(g>>>3)|0;l=(ze(d[l>>0]|d[l+1>>0]<<8|d[l+2>>0]<<16|d[l+3>>0]<<24|0)|0)<<(g&7);h=g+16|0;h=a>>>0>h>>>0?h:a;j=e+(h>>>3)|0;h=(ze(d[j>>0]|d[j+1>>0]<<8|d[j+2>>0]<<16|d[j+3>>0]<<24|0)|0)<<(h&7)>>>16|l&-65536;j=h>>>0>65535;h=j?l>>>16:h;j=j?16:0;if(h&65280){j=j|8;h=h>>>8}h=(d[7416+h>>0]|0)+j|0;j=31-h|0;l=0-g|0;k=a-g|0;if((j|0)>=(l|0))l=(k|0)<(j|0)?k:j;g=l+g|0;c[f>>2]=g;l=j+1|0;if(!l){l=0;l=l+ -1|0;i=b;return l|0}k=e+(g>>>3)|0;k=(ze(d[k>>0]|d[k+1>>0]<<8|d[k+2>>0]<<16|d[k+3>>0]<<24|0)|0)<<(g&7);if((l|0)<26){l=g+l|0;c[f>>2]=a>>>0>l>>>0?l:a;l=k>>>h;l=l+ -1|0;i=b;return l|0}else{h=g+16|0;h=a>>>0>h>>>0?h:a;c[f>>2]=h;l=j+ -15|0;g=e+(h>>>3)|0;j=(ze(d[g>>0]|d[g+1>>0]<<8|d[g+2>>0]<<16|d[g+3>>0]<<24|0)|0)<<(h&7)>>>(47-j|0);h=h+l|0;c[f>>2]=a>>>0>h>>>0?h:a;l=j|k>>>16<<l;l=l+ -1|0;i=b;return l|0}return 0}function rd(b){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,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;e=i;i=i+16|0;g=e;f=e+8|0;m=e+4|0;p=b+136|0;h=c[p>>2]|0;r=h+204|0;j=Td(1692)|0;c[m>>2]=j;if(!j){M=-12;i=e;return M|0}M=Vd(j,1692,6,0,0)|0;c[f>>2]=M;if(!M){Qd(m);M=-12;i=e;return M|0}k=b+4|0;$a(c[k>>2]|0,48,4600,g);a[(c[m>>2]|0)+53>>0]=1;j=c[m>>2]|0;c[j+44>>2]=1;c[j+48>>2]=1;a[j+52>>0]=1;a[(c[m>>2]|0)+57>>0]=0;j=c[m>>2]|0;c[j+60>>2]=0;c[j+64>>2]=0;a[j+1629>>0]=2;j=qd(r)|0;a:do if(j>>>0>255){M=c[k>>2]|0;c[g>>2]=j;$a(M,16,4616,g);g=-1094995529}else{l=qd(r)|0;q=c[m>>2]|0;c[q>>2]=l;if(l>>>0>31){M=c[k>>2]|0;c[g>>2]=l;$a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[l>>2]=((M|0)<(c[s>>2]|0)&1)+M;a[(c[m>>2]|0)+43>>0]=q;q=c[m>>2]|0;do if(a[q+42>>0]|0){t=(qd(r)|0)+1|0;c[(c[m>>2]|0)+44>>2]=t;t=qd(r)|0;u=t+1|0;v=c[m>>2]|0;c[v+48>>2]=u;q=c[v+44>>2]|0;if((q|0)!=0?(q|0)<(c[n+13120>>2]|0):0){if((u|0)!=0?(u|0)<(c[n+13124>>2]|0):0){if(q>>>0>536870910)q=0;else{q=Nd(q<<2)|0;v=c[m>>2]|0}c[v+1648>>2]=q;q=c[m>>2]|0;t=c[q+48>>2]|0;if(t>>>0>536870910)t=0;else{t=Nd(t<<2)|0;q=c[m>>2]|0}c[q+1652>>2]=t;q=c[m>>2]|0;if(!(c[q+1648>>2]|0)){g=-12;break a}if(!(c[q+1652>>2]|0)){g=-12;break a}M=c[l>>2]|0;t=d[(c[r>>2]|0)+(M>>>3)>>0]<<(M&7)>>>7&1;c[l>>2]=((M|0)<(c[s>>2]|0)&1)+M;a[q+52>>0]=t;t=c[m>>2]|0;do if(!(a[t+52>>0]|0)){v=(c[t+44>>2]|0)+ -1|0;if((v|0)>0){u=0;q=0;w=0;do{v=(qd(r)|0)+1|0;t=c[m>>2]|0;c[(c[t+1648>>2]|0)+(w<<2)>>2]=v;u=ue(v|0,0,u|0,q|0)|0;q=D;w=w+1|0;v=(c[t+44>>2]|0)+ -1|0}while((w|0)<(v|0))}else{q=0;u=0}w=c[n+13128>>2]|0;x=((w|0)<0)<<31>>31;if(!(q>>>0<x>>>0|(q|0)==(x|0)&u>>>0<w>>>0)){$a(c[k>>2]|0,16,4872,g);g=-1094995529;break a}M=te(w|0,x|0,u|0,q|0)|0;c[(c[t+1648>>2]|0)+(v<<2)>>2]=M;v=(c[t+48>>2]|0)+ -1|0;if((v|0)>0){u=0;q=0;w=0;do{v=(qd(r)|0)+1|0;t=c[m>>2]|0;c[(c[t+1652>>2]|0)+(w<<2)>>2]=v;u=ue(v|0,0,u|0,q|0)|0;q=D;w=w+1|0;v=(c[t+48>>2]|0)+ -1|0}while((w|0)<(v|0))}else{q=0;u=0}w=c[n+13132>>2]|0;x=((w|0)<0)<<31>>31;if(q>>>0<x>>>0|(q|0)==(x|0)&u>>>0<w>>>0){M=te(w|0,x|0,u|0,q|0)|0;c[(c[t+1652>>2]|0)+(v<<2)>>2]=M;break}else{$a(c[k>>2]|0,16,4896,g);g=-1094995529;break a}}while(0);M=c[l>>2]|0;q=d[(c[r>>2]|0)+(M>>>3)>>0]<<(M&7)>>>7&1;c[l>>2]=((M|0)<(c[s>>2]|0)&1)+M;a[t+53>>0]=q;q=c[m>>2]|0;break}M=c[k>>2]|0;c[g>>2]=t;$a(M,16,4832,g);g=-1094995529;break a}M=c[k>>2]|0;c[g>>2]=q+ -1;$a(M,16,4784,g);g=-1094995529;break a}while(0);t=c[l>>2]|0;M=d[(c[r>>2]|0)+(t>>>3)>>0]<<(t&7)>>>7&1;c[l>>2]=((t|0)<(c[s>>2]|0)&1)+t;a[q+54>>0]=M;M=c[l>>2]|0;t=d[(c[r>>2]|0)+(M>>>3)>>0]<<(M&7)>>>7&1;c[l>>2]=((M|0)<(c[s>>2]|0)&1)+M;a[(c[m>>2]|0)+55>>0]=t;t=c[m>>2]|0;if(a[t+55>>0]|0){L=c[l>>2]|0;M=d[(c[r>>2]|0)+(L>>>3)>>0]<<(L&7)>>>7&1;c[l>>2]=((L|0)<(c[s>>2]|0)&1)+L;a[t+56>>0]=M;M=c[l>>2]|0;t=d[(c[r>>2]|0)+(M>>>3)>>0]<<(M&7)>>>7&1;c[l>>2]=((M|0)<(c[s>>2]|0)&1)+M;a[(c[m>>2]|0)+57>>0]=t;t=c[m>>2]|0;if(!(a[t+57>>0]|0)){q=qd(r)|0;if(!(q&1))q=0-(q>>>1)|0;else q=(q+1|0)>>>1;c[(c[m>>2]|0)+60>>2]=q<<1;q=qd(r)|0;if(!(q&1))q=0-(q>>>1)|0;else q=(q+1|0)>>>1;q=q<<1;t=c[m>>2]|0;c[t+64>>2]=q;u=c[t+60>>2]|0;if((u+13|0)>>>0>26){M=c[k>>2]|0;c[g>>2]=(u|0)/2|0;$a(M,16,4920,g);g=-1094995529;break}if((q+13|0)>>>0>26){M=c[k>>2]|0;c[g>>2]=(q|0)/2|0;$a(M,16,4960,g);g=-1094995529;break}}}M=c[l>>2]|0;u=d[(c[r>>2]|0)+(M>>>3)>>0]<<(M&7)>>>7&1;c[l>>2]=((M|0)<(c[s>>2]|0)&1)+M;a[t+68>>0]=u;u=c[m>>2]|0;if(a[u+68>>0]|0){v=0;do{q=u+(v<<6)+69|0;t=q+16|0;do{a[q>>0]=16;q=q+1|0}while((q|0)<(t|0));a[u+v+1605>>0]=16;a[u+v+1611>>0]=16;v=v+1|0}while((v|0)!=6);q=u+453|0;v=5240;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+517|0;v=5240;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+581|0;v=5240;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+645|0;v=5304;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+709|0;v=5304;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+773|0;v=5304;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+837|0;v=5240;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+901|0;v=5240;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+965|0;v=5240;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+1029|0;v=5304;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+1093|0;v=5304;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+1157|0;v=5304;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+1221|0;v=5240;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+1285|0;v=5240;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+1349|0;v=5240;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+1413|0;v=5304;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+1477|0;v=5304;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=u+1541|0;v=5304;t=q+64|0;do{a[q>>0]=a[v>>0]|0;q=q+1|0;v=v+1|0}while((q|0)<(t|0));q=c[m>>2]|0;F=c[p>>2]|0;C=F+204|0;E=F+212|0;F=F+220|0;B=0;b:do{u=(B|0)>0?64:16;A=(B|0)>1;z=B+ -2|0;t=(B|0)==3?3:1;w=1<<(B<<1)+4;x=(w|0)>0;y=(B|0)==0;w=(w|0)<64?w:64;v=0;do{M=c[E>>2]|0;L=d[(c[C>>2]|0)+(M>>>3)>>0]|0;c[E>>2]=((M|0)<(c[F>>2]|0)&1)+M;do if(!(L&128>>>(M&7))){G=qd(C)|0;if(!G)break;if(v>>>0<G>>>0){o=88;break b}G=v-G|0;xe(q+(B*384|0)+(v<<6)+69|0,q+(B*384|0)+(G<<6)+69|0,u|0)|0;if(!A)break;a[q+(z*6|0)+v+1605>>0]=a[q+(z*6|0)+G+1605>>0]|0}else{if(A){G=qd(C)|0;if(!(G&1))G=0-(G>>>1)|0;else G=(G+1|0)>>>1;I=G+8|0;a[q+(z*6|0)+v+1605>>0]=I}else I=8;if(x)G=0;else break;do{if(y)H=(d[48+G>>0]<<2)+(d[32+G>>0]|0)|0;else H=(d[128+G>>0]<<3)+(d[64+G>>0]|0)|0;J=qd(C)|0;if(!(J&1))J=0-(J>>>1)|0;else J=(J+1|0)>>>1;I=(I+256+J|0)%256|0;a[q+(B*384|0)+(v<<6)+H+69>>0]=I;G=G+1|0}while((G|0)!=(w|0))}while(0);v=v+t|0}while((v|0)<6);B=B+1|0}while((B|0)<4);if((o|0)==88){M=c[k>>2]|0;c[g>>2]=G;$a(M,16,5192,g);g=-1094995529;break}if((c[n+4>>2]|0)==3){t=0;do{a[q+t+1285>>0]=a[q+t+901>>0]|0;a[q+t+1349>>0]=a[q+t+965>>0]|0;a[q+t+1477>>0]=a[q+t+1093>>0]|0;a[q+t+1541>>0]=a[q+t+1157>>0]|0;t=t+1|0}while((t|0)!=64);a[q+1612>>0]=a[q+1606>>0]|0;a[q+1613>>0]=a[q+1607>>0]|0;a[q+1615>>0]=a[q+1609>>0]|0;a[q+1616>>0]=a[q+1610>>0]|0}}M=c[l>>2]|0;t=d[(c[r>>2]|0)+(M>>>3)>>0]<<(M&7)>>>7&1;c[l>>2]=((M|0)<(c[s>>2]|0)&1)+M;a[(c[m>>2]|0)+1617>>0]=t;t=qd(r)|0;M=t+2|0;u=c[m>>2]|0;c[u+1620>>2]=M;q=n+13080|0;if(M>>>0>(c[q>>2]|0)>>>0){M=c[k>>2]|0;c[g>>2]=t;$a(M,16,5e3,g);g=-1094995529;break}L=c[l>>2]|0;M=d[(c[r>>2]|0)+(L>>>3)>>0]<<(L&7)>>>7&1;c[l>>2]=((L|0)<(c[s>>2]|0)&1)+L;a[u+1628>>0]=M;M=c[l>>2]|0;r=c[r>>2]|0;L=d[r+(M>>>3)>>0]|0;t=c[s>>2]|0;s=((M|0)<(t|0)&1)+M|0;c[l>>2]=s;do if((L&128>>>(M&7)|0)!=0?(M=d[r+(s>>>3)>>0]|0,L=((s|0)<(t|0)&1)+s+7|0,c[l>>2]=t>>>0>L>>>0?L:t,(M&128>>>(s&7)|0)!=0):0){r=c[m>>2]|0;s=c[p>>2]|0;p=s+204|0;if(a[r+21>>0]|0)a[r+1629>>0]=(qd(p)|0)+2;L=s+212|0;M=c[L>>2]|0;K=d[(c[p>>2]|0)+(M>>>3)>>0]<<(M&7)>>>7&1;J=s+220|0;c[L>>2]=((M|0)<(c[J>>2]|0)&1)+M;a[r+1630>>0]=K;K=c[L>>2]|0;M=d[(c[p>>2]|0)+(K>>>3)>>0]<<(K&7)>>>7&1;c[L>>2]=((K|0)<(c[J>>2]|0)&1)+K;M=M&255;a[r+1631>>0]=M;if(M<<24>>24){a[r+1632>>0]=qd(p)|0;M=qd(p)|0;t=r+1633|0;a[t>>0]=M;if((M&255)>>>0<5)s=0;else{$a(c[k>>2]|0,16,5088,g);break}while(1){u=qd(p)|0;if(!(u&1))u=0-(u>>>1)|0;else u=(u+1|0)>>>1;M=u&255;a[r+s+1634>>0]=M;if(M<<24>>24)$a(c[k>>2]|0,24,5152,g);u=qd(p)|0;if(!(u&1))u=0-(u>>>1)|0;else u=(u+1|0)>>>1;M=u&255;a[r+s+1639>>0]=M;if(M<<24>>24)$a(c[k>>2]|0,24,5152,g);if((s|0)<(d[t>>0]|0))s=s+1|0;else break}}a[r+1644>>0]=qd(p)|0;a[r+1645>>0]=qd(p)|0}while(0);p=c[m>>2]|0;r=(c[p+44>>2]|0)+1|0;if(r>>>0>536870910)r=0;else{r=Nd(r<<2)|0;p=c[m>>2]|0}c[p+1656>>2]=r;p=c[m>>2]|0;r=(c[p+48>>2]|0)+1|0;if(r>>>0>536870910)r=0;else{r=Nd(r<<2)|0;p=c[m>>2]|0}c[p+1660>>2]=r;p=n+13128|0;r=c[p>>2]|0;if(r>>>0>536870910)r=0;else r=Nd(r<<2)|0;c[(c[m>>2]|0)+1664>>2]=r;s=c[m>>2]|0;r=c[s+1656>>2]|0;if(!r){g=-12;break}if(!(c[s+1660>>2]|0)){g=-12;break}if(!(c[s+1664>>2]|0)){g=-12;break}if(a[s+52>>0]|0){u=c[s+1648>>2]|0;if(!u){r=c[s+44>>2]|0;if(r>>>0>536870910)r=0;else{r=Nd(r<<2)|0;s=c[m>>2]|0}c[s+1648>>2]=r;r=c[m>>2]|0;s=c[r+48>>2]|0;if(s>>>0>536870910)s=0;else{s=Nd(s<<2)|0;r=c[m>>2]|0}c[r+1652>>2]=s;s=c[m>>2]|0;u=c[s+1648>>2]|0;if(!u){g=-12;break}}r=c[s+1652>>2]|0;if(!r){g=-12;break}t=s+44|0;w=c[t>>2]|0;if((w|0)>0){v=0;do{M=v;v=v+1|0;L=c[p>>2]|0;c[u+(M<<2)>>2]=(($(L,v)|0)/(w|0)|0)-(($(L,M)|0)/(w|0)|0);w=c[t>>2]|0}while((v|0)<(w|0))}t=s+48|0;v=c[t>>2]|0;if((v|0)>0){u=n+13132|0;w=0;do{M=w;w=w+1|0;L=c[u>>2]|0;c[r+(M<<2)>>2]=(($(L,w)|0)/(v|0)|0)-(($(L,M)|0)/(v|0)|0);v=c[t>>2]|0}while((w|0)<(v|0))}r=c[s+1656>>2]|0}c[r>>2]=0;w=s+44|0;if((c[w>>2]|0)>0){v=c[s+1648>>2]|0;u=0;t=0;do{u=(c[v+(t<<2)>>2]|0)+u|0;t=t+1|0;c[r+(t<<2)>>2]=u}while((t|0)<(c[w>>2]|0))}w=c[s+1660>>2]|0;c[w>>2]=0;t=s+48|0;if((c[t>>2]|0)>0){u=c[s+1652>>2]|0;x=0;v=0;do{x=(c[u+(v<<2)>>2]|0)+x|0;v=v+1|0;c[w+(v<<2)>>2]=x}while((v|0)<(c[t>>2]|0))}t=c[p>>2]|0;if((t|0)>0){u=c[s+1664>>2]|0;v=0;w=0;do{w=(v>>>0>(c[r+(w<<2)>>2]|0)>>>0&1)+w|0;c[u+(v<<2)>>2]=w;v=v+1|0;t=c[p>>2]|0}while((v|0)<(t|0))}v=$(c[n+13132>>2]|0,t)|0;if(v>>>0>536870910){c[s+1668>>2]=0;c[(c[m>>2]|0)+1672>>2]=0;r=0}else{r=v<<2;M=Nd(r)|0;c[(c[m>>2]|0)+1668>>2]=M;M=Nd(r)|0;c[(c[m>>2]|0)+1672>>2]=M;r=Nd(r)|0}c[(c[m>>2]|0)+1676>>2]=r;r=n+13164|0;s=(c[r>>2]|0)+2|0;s=$(s,s)|0;if(s>>>0>536870910)s=0;else s=Nd(s<<2)|0;c[(c[m>>2]|0)+1688>>2]=s;s=c[m>>2]|0;t=c[s+1668>>2]|0;if(!t){g=-12;break}F=c[s+1672>>2]|0;if(!F){g=-12;break}u=c[s+1676>>2]|0;if(!u){g=-12;break}if(!(c[s+1688>>2]|0)){g=-12;break}if((v|0)>0){G=s+44|0;y=s+48|0;A=c[s+1660>>2]|0;z=c[s+1648>>2]|0;B=c[s+1656>>2]|0;x=s+1652|0;E=0;do{H=c[p>>2]|0;w=(E|0)%(H|0)|0;C=(E|0)/(H|0)|0;K=c[G>>2]|0;I=0;while(1){if((I|0)>=(K|0)){I=0;break}J=I+1|0;if(w>>>0<(c[B+(J<<2)>>2]|0)>>>0)break;else I=J}L=c[y>>2]|0;J=0;while(1){if((J|0)>=(L|0)){J=0;break}K=J+1|0;if(C>>>0<(c[A+(K<<2)>>2]|0)>>>0)break;else J=K}if((I|0)>0){L=c[(c[x>>2]|0)+(J<<2)>>2]|0;K=0;M=0;do{M=($(c[z+(K<<2)>>2]|0,L)|0)+M|0;K=K+1|0}while((K|0)!=(I|0))}else M=0;if((J|0)>0){K=c[x>>2]|0;L=0;do{M=($(c[K+(L<<2)>>2]|0,H)|0)+M|0;L=L+1|0}while((L|0)!=(J|0))}L=$(c[z+(I<<2)>>2]|0,C-(c[A+(J<<2)>>2]|0)|0)|0;M=M+w+L-(c[B+(I<<2)>>2]|0)|0;c[t+(E<<2)>>2]=M;c[F+(M<<2)>>2]=E;E=E+1|0}while((E|0)!=(v|0))}else y=s+48|0;B=c[y>>2]|0;if((B|0)>0){w=s+44|0;v=s+1660|0;x=s+1656|0;F=c[w>>2]|0;z=0;C=0;while(1){A=z;z=z+1|0;if((F|0)>0){B=c[v>>2]|0;E=B+(z<<2)|0;L=c[E>>2]|0;H=F;F=0;while(1){J=c[B+(A<<2)>>2]|0;G=F;F=F+1|0;if(J>>>0<L>>>0){H=c[x>>2]|0;I=H+(F<<2)|0;K=c[I>>2]|0;do{M=c[H+(G<<2)>>2]|0;if(M>>>0<K>>>0){do{c[u+(c[t+(($(c[p>>2]|0,J)|0)+M<<2)>>2]<<2)>>2]=C;M=M+1|0;K=c[I>>2]|0}while(M>>>0<K>>>0);L=c[E>>2]|0}J=J+1|0}while(J>>>0<L>>>0);G=c[w>>2]|0}else G=H;C=C+1|0;if((F|0)>=(G|0))break;else H=G}A=c[y>>2]|0;F=G}else A=B;if((z|0)>=(A|0))break;else B=A}if(C>>>0>536870910)t=0;else o=182}else{C=0;o=182}if((o|0)==182){t=Nd(C<<2)|0;s=c[m>>2]|0}c[s+1680>>2]=t;o=c[m>>2]|0;u=c[o+1680>>2]|0;if(!u){g=-12;break}t=o+48|0;x=c[t>>2]|0;if((x|0)>0){s=o+44|0;w=c[s>>2]|0;v=0;do{if((w|0)>0){x=c[o+1660>>2]|0;y=c[o+1656>>2]|0;z=0;do{M=$(c[p>>2]|0,c[x+(v<<2)>>2]|0)|0;c[u+(($(w,v)|0)+z<<2)>>2]=(c[y+(z<<2)>>2]|0)+M;z=z+1|0;w=c[s>>2]|0}while((z|0)<(w|0));x=c[t>>2]|0}v=v+1|0}while((v|0)<(x|0))}n=(c[q>>2]|0)-(c[n+13072>>2]|0)|0;y=c[r>>2]|0;c[o+1684>>2]=(c[o+1688>>2]|0)+(y+3<<2);s=y+2|0;if((s|0)>0){o=c[(c[m>>2]|0)+1688>>2]|0;q=0;do{c[o+(($(s,q)|0)<<2)>>2]=-1;c[o+(q<<2)>>2]=-1;q=q+1|0;y=c[r>>2]|0;s=y+2|0}while((q|0)<(s|0))}if((y|0)>-1){o=c[m>>2]|0;m=o+1668|0;q=n<<1;s=(n|0)>0;o=o+1684|0;t=0;while(1){c:do if((y|0)>-1){w=t>>n;v=c[m>>2]|0;u=c[o>>2]|0;x=0;while(1){C=c[v+(($(c[p>>2]|0,w)|0)+(x>>n)<<2)>>2]<<q;if(s){z=0;do{A=1<<z;if(!(A&t))B=0;else B=A<<1<<z;C=((A&x|0)==0?0:A<<z)+C+B|0;z=z+1|0}while((z|0)!=(n|0))}c[u+(($(y+2|0,t)|0)+x<<2)>>2]=C;y=c[r>>2]|0;if((x|0)>=(y|0))break c;x=x+1|0}}while(0);if((t|0)<(y|0))t=t+1|0;else break}}h=(c[h+216>>2]|0)-(c[l>>2]|0)|0;if((h|0)<0){M=c[k>>2]|0;c[g>>2]=0-h;$a(M,16,5056,g);g=0;break}M=b+(j<<2)+380|0;_d(M);c[M>>2]=c[f>>2];M=0;i=e;return M|0}while(0);_d(f);M=g;i=e;return M|0}function sd(a,b){a=a|0;b=b|0;var d=0;a=i;i=i+16|0;d=a;c[d>>2]=b;Qd(b+1648|0);Qd(b+1652|0);Qd(b+1656|0);Qd(b+1660|0);Qd(b+1664|0);Qd(b+1668|0);Qd(b+1672|0);Qd(b+1680|0);Qd(b+1676|0);Qd(b+1688|0);Qd(d);i=a;return}function td(a){a=a|0;var b=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;b=i;i=i+16|0;f=b;h=a+136|0;e=a+4|0;g=a+3480|0;m=c[h>>2]|0;while(1){$a(c[e>>2]|0,48,5368,f);k=m+212|0;j=m+220|0;l=c[j>>2]|0;m=c[m+204>>2]|0;o=c[k>>2]|0;n=0;do{p=m+(o>>>3)|0;p=(ze(d[p>>0]|d[p+1>>0]<<8|d[p+2>>0]<<16|d[p+3>>0]<<24|0)|0)<<(o&7)>>>24;o=o+8|0;o=l>>>0>o>>>0?o:l;c[k>>2]=o;n=p+n|0}while((p|0)==255);p=0;do{q=m+(o>>>3)|0;q=(ze(d[q>>0]|d[q+1>>0]<<8|d[q+2>>0]<<16|d[q+3>>0]<<24|0)|0)<<(o&7)>>>24;r=o+8|0;o=l>>>0>r>>>0?r:l;c[k>>2]=o;p=q+p|0}while((q|0)==255);do if((c[g>>2]|0)==39)if((n|0)==256){ud(a);break}else{r=c[e>>2]|0;c[f>>2]=n;$a(r,48,5384,f);r=c[j>>2]|0;q=(c[k>>2]|0)+(p<<3)|0;c[k>>2]=r>>>0>q>>>0?q:r;break}else if((n|0)==132){ud(a);break}else{r=c[e>>2]|0;c[f>>2]=n;$a(r,48,5408,f);r=c[j>>2]|0;q=(c[k>>2]|0)+(p<<3)|0;c[k>>2]=r>>>0>q>>>0?q:r;break}while(0);m=c[h>>2]|0;j=c[m+212>>2]|0;if(((c[m+216>>2]|0)-j|0)<=0){a=14;break}r=(c[m+204>>2]|0)+(j>>>3)|0;if(((ze(d[r>>0]|d[r+1>>0]<<8|d[r+2>>0]<<16|d[r+3>>0]<<24|0)|0)<<(j&7)&-16777216|0)==-2147483648){a=14;break}}if((a|0)==14){i=b;return 1}return 0}function ud(b){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;e=i;h=c[b+136>>2]|0;f=h+212|0;l=c[f>>2]|0;g=h+220|0;j=c[g>>2]|0;h=h+204|0;k=(c[h>>2]|0)+(l>>>3)|0;k=(ze(d[k>>0]|d[k+1>>0]<<8|d[k+2>>0]<<16|d[k+3>>0]<<24|0)|0)<<(l&7)>>>24;l=l+8|0;c[f>>2]=j>>>0>l>>>0?l:j;j=b+7744|0;l=0;do{if(!k){a[j>>0]=1;m=0;do{p=c[f>>2]|0;o=c[g>>2]|0;n=(c[h>>2]|0)+(p>>>3)|0;n=(ze(d[n>>0]|d[n+1>>0]<<8|d[n+2>>0]<<16|d[n+3>>0]<<24|0)|0)<<(p&7)>>>24;p=p+8|0;c[f>>2]=o>>>0>p>>>0?p:o;a[b+(l<<4)+m+7696>>0]=n;m=m+1|0}while((m|0)!=16)}else if((k|0)==1){p=c[g>>2]|0;o=(c[f>>2]|0)+16|0;c[f>>2]=p>>>0>o>>>0?o:p}else if((k|0)==2){p=c[g>>2]|0;o=(c[f>>2]|0)+32|0;c[f>>2]=p>>>0>o>>>0?o:p}l=l+1|0}while((l|0)!=3);i=e;return}function vd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;d=i;f=c[b+52>>2]|0;e=a+60|0;if((f|0)>0){if((c[e>>2]|0)==0?(f=Td(f)|0,c[e>>2]=f,(f|0)==0):0){f=-12;i=d;return f|0}}else c[e>>2]=0;f=a+12|0;c[f>>2]=b;c[a+424>>2]=0;c[a+800>>2]=1;h=a+912|0;g=a+936|0;c[h+0>>2]=0;c[h+4>>2]=0;c[h+8>>2]=0;c[h+12>>2]=0;c[g>>2]=0;c[g+4>>2]=-2147483648;g=a+928|0;c[g>>2]=0;c[g+4>>2]=-2147483648;a=La[c[b+76>>2]&7](a)|0;if((a|0)>=0){h=0;i=d;return h|0}Qd(e);c[f>>2]=0;h=a;i=d;return h|0}function wd(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;if(!a){i=b;return 0}e=a+12|0;f=c[e>>2]|0;if((f|0)!=0?(d=c[f+92>>2]|0,(d|0)!=0):0)La[d&7](a)|0;c[a+796>>2]=0;Qd(a+60|0);c[e>>2]=0;c[a+808>>2]=0;i=b;return 0}function xd(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;if((f|0)<=0){i=h;return 0}j=(e|0)==0;k=0;do{l=d+($(k,g)|0)|0;l=Qa[b&1](a,l)|0;if(!j)c[e+(k<<2)>>2]=l;k=k+1|0}while((k|0)!=(f|0));i=h;return 0}function yd(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;if((f|0)<=0){i=g;return 0}h=(e|0)==0;j=0;do{k=Oa[b&1](a,d,j,0)|0;if(!h)c[e+(j<<2)>>2]=k;j=j+1|0}while((j|0)!=(f|0));i=g;return 0}function zd(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;h=ke(c[f+76>>2]|0)|0;b=h+4|0;if(!(a[b>>0]|0)){p=0;i=g;return p|0}k=f+64|0;l=h+5|0;m=f+68|0;n=h+6|0;j=0;while(1){p=($((((e[h+(j<<1)+8>>1]|0)>>>11&15)+8|0)>>>3,c[k>>2]|0)|0)+31&-32;if((j+ -1|0)>>>0<2){p=0-(0-p>>d[l>>0])|0;c[f+(j<<2)+32>>2]=p;o=0-(0-((c[m>>2]|0)+31&-32)>>d[n>>0])|0}else{c[f+(j<<2)+32>>2]=p;o=(c[m>>2]|0)+31&-32}o=Xd(($(p,o)|0)+32|0)|0;c[f+(j<<2)+304>>2]=o;if(!o){b=-1;f=8;break}c[f+(j<<2)>>2]=c[o+4>>2];j=j+1|0;if((j|0)>=(d[b>>0]|0)){b=0;f=8;break}}if((f|0)==8){i=g;return b|0}return 0}function Ad(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;ve(a|0,0,976)|0;e=(b|0)!=0;if(e){c[a+8>>2]=c[b+8>>2];c[a+48>>2]=c[b+12>>2]}else c[a+8>>2]=-1;c[a+100>>2]=0;c[a+104>>2]=1;c[a+888>>2]=0;c[a+892>>2]=1;c[a+896>>2]=0;c[a+900>>2]=1;c[a+476>>2]=1;c[a+816>>2]=1;c[a+820>>2]=1;c[a+220>>2]=0;c[a+224>>2]=1;c[a+136>>2]=-1;c[a+416>>2]=-1;g=a+696|0;c[g>>2]=0;c[g+4>>2]=-2147483648;if((e?(f=c[b+52>>2]|0,(f|0)!=0):0)?(g=Td(f)|0,c[a+60>>2]=g,(g|0)==0):0){g=-12;i=d;return g|0}g=0;i=d;return g|0}function Bd(a){a=a|0;var b=0,c=0;b=i;c=Nd(976)|0;if(c){if((Ad(c,a)|0)<0){Pd(c);c=0}}else c=0;i=b;return c|0}function Cd(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+96|0;h=f+80|0;g=f;k=g+0|0;j=e+0|0;l=k+80|0;do{c[k>>2]=c[j>>2];k=k+4|0;j=j+4|0}while((k|0)<(l|0));j=a+12|0;k=c[j>>2]|0;if(!k){l=-22;i=f;return l|0}if(c[k+8>>2]|0){$a(a,16,5432,h);l=-22;i=f;return l|0}c[d>>2]=0;he(b);h=c[j>>2]|0;if(((c[h+16>>2]&32|0)==0?(c[e+28>>2]|0)==0:0)?(c[a+808>>2]&1|0)==0:0){l=0;i=f;return l|0}g=Oa[c[h+88>>2]&1](a,b,d,g)|0;if(!(c[d>>2]|0)){he(b);l=g;i=f;return l|0}else{l=a+424|0;c[l>>2]=(c[l>>2]|0)+1;l=g;i=f;return l|0}return 0}function Dd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return 0}function Ed(a,b){a=a|0;b=b|0;return 0}function Fd(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;i=i+16|0;f=e;g=a+8|0;do if(!(c[g>>2]|0)){j=c[a+136>>2]|0;if((j|0)<0){$a(a,16,5488,f);d=-22;break}k=b+64|0;h=b+68|0;if((c[k>>2]|0)>=1?(c[h>>2]|0)>=1:0)h=1;else{n=c[a+116>>2]|0;m=a+792|0;l=0-(0-(c[a+124>>2]|0)>>c[m>>2])|0;c[k>>2]=(n|0)>(l|0)?n:l;l=c[a+120>>2]|0;k=0-(0-(c[a+128>>2]|0)>>c[m>>2])|0;c[h>>2]=(l|0)>(k|0)?l:k;h=0}c[b+76>>2]=j;j=h;h=8}else{j=1;h=8}while(0);do if((h|0)==8){d=Ea[c[a+476>>2]&1](a,b,d)|0;if(!(c[g>>2]|j)){c[b+64>>2]=c[a+116>>2];c[b+68>>2]=c[a+120>>2]}if((d|0)<0)break;else{n=d;i=e;return n|0}}while(0);$a(a,16,5464,f);n=d;i=e;return n|0}function Gd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;c[b+4>>2]=a;a=Fd(a,c[b>>2]|0,d)|0;i=e;return a|0}function Hd(a,b){a=a|0;b=b|0;a=i;b=c[b>>2]|0;if(b)he(b);i=a;return}function Id(a){a=a|0;return}function Jd(a,b,c){a=a|0;b=b|0;c=c|0;return}function Kd(a){a=a|0;var b=0,d=0;b=i;d=a+8|0;c[d>>2]=0;c[d+4>>2]=-2147483648;d=a+16|0;c[d>>2]=0;c[d+4>>2]=-2147483648;d=a+64|0;c[d>>2]=-1;c[d+4>>2]=-1;d=a+72|0;c[d>>2]=0;c[d+4>>2]=0;d=a+32|0;c[a>>2]=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;i=b;return}function Ld(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0;g=a+16|0;c[a+12>>2]=b;c[a+20>>2]=b+e;h=b+1|0;c[g>>2]=h;e=(d[b>>0]|0)<<18;c[a>>2]=e;f=b+2|0;c[g>>2]=f;e=(d[h>>0]|0)<<10|e;c[a>>2]=e;c[g>>2]=b+3;c[a>>2]=(d[f>>0]|0)<<2|e|2;c[a+4>>2]=510;return}function Md(){var b=0,e=0,f=0,g=0,h=0,j=0;b=i;if(!(c[1384]|0))e=0;else{i=b;return}while(1)if(e){g=(e&65280|0)==0;a[5544+e>>0]=(g?8:0)-(d[7416+(g?e:e>>>8)>>0]|0);e=e+1|0;if((e|0)==512){e=0;break}else continue}else{a[5544]=9;e=1;continue}while(1){f=e<<1;g=0;do{j=a[6888+(e<<2)+g>>0]|0;h=(g<<7)+f|0;a[(h|1)+6056>>0]=j;a[h+6056>>0]=j;g=g+1|0}while((g|0)!=4);j=(d[7144+e>>0]|0)<<1;a[f+6696>>0]=j;a[f+6697>>0]=j|1;if(e){h=(d[7208+e>>0]|0)<<1;j=128-f|0;a[j+6567>>0]=h;a[j+6566>>0]=h|1;e=e+1|0;if((e|0)==64)break;else continue}else{e=128-f|0;a[e+6567>>0]=1;a[e+6566>>0]=0;e=1;continue}}g=6824|0;f=7272|0;e=g+63|0;do{a[g>>0]=a[f>>0]|0;g=g+1|0;f=f+1|0}while((g|0)<(e|0));c[1384]=1;i=b;return}function Nd(a){a=a|0;var b=0,d=0,e=0;b=i;d=c[1834]|0;if((d+ -32|0)>>>0>=a>>>0){e=le(a)|0;if((e|0)==0&(a|0)==0)if((d|0)==32)e=0;else e=le(1)|0}else e=0;i=b;return e|0}function Od(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;f=$(d,b)|0;if((d|b)>>>0>65535&(d|0)!=0?((f>>>0)/(d>>>0)|0|0)!=(b|0):0){me(a);d=0;i=e;return d|0}if(((c[1834]|0)+ -32|0)>>>0<f>>>0)b=0;else b=ne(a,((f|0)==0&1)+f|0)|0;if((b|0)!=0|(f|0)==0){d=b;i=e;return d|0}me(a);d=0;i=e;return d|0}function Pd(a){a=a|0;var b=0;b=i;me(a);i=b;return}function Qd(a){a=a|0;var b=0;b=i;me(c[a>>2]|0);c[a>>2]=0;i=b;return}function Rd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;if(((d|0)!=0?(2147483647/(d>>>0)|0)>>>0>b>>>0:0)?(f=$(d,b)|0,((c[1834]|0)+ -32|0)>>>0>=f>>>0):0)a=ne(a,((f|0)==0&1)+f|0)|0;else a=0;i=e;return a|0}function Sd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;e=Od(c[a>>2]|0,b,d)|0;c[a>>2]=e;i=f;return((e|0)!=0|(b|0)==0|(d|0)==0?0:-12)|0}function Td(a){a=a|0;var b=0,c=0;c=i;b=Nd(a)|0;if(b)ve(b|0,0,a|0)|0;i=c;return b|0}function Ud(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;if((c[b>>2]|0)>>>0>d>>>0){i=e;return}f=((d*17|0)>>>4)+32|0;d=f>>>0>d>>>0?f:d;me(c[a>>2]|0);f=Nd(d)|0;c[a>>2]=f;c[b>>2]=(f|0)==0?0:d;i=e;return}function Vd(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;g=i;i=i+16|0;h=g;j=Td(24)|0;c[h>>2]=j;if(!j){f=0;i=g;return f|0}c[j>>2]=a;c[j+4>>2]=b;c[j+12>>2]=(d|0)!=0?d:7;c[j+16>>2]=e;c[j+8>>2]=1;if(f&1){f=(c[h>>2]|0)+20|0;c[f>>2]=c[f>>2]|1}j=Td(12)|0;if(!j){Qd(h);f=0;i=g;return f|0}else{c[j>>2]=c[h>>2];c[j+4>>2]=a;c[j+8>>2]=b;f=j;i=g;return f|0}return 0}function Wd(a,b){a=a|0;b=b|0;a=i;Pd(b);i=a;return}function Xd(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b;e=Nd(a)|0;c[d>>2]=e;if(e){a=Vd(e,a,7,0,0)|0;if(!a){Qd(d);a=0}}else a=0;i=b;return a|0}function Yd(a){a=a|0;var b=0,d=0;b=i;d=Xd(a)|0;if(!d){d=0;i=b;return d|0}ve(c[d+4>>2]|0,0,a|0)|0;i=b;return d|0}function Zd(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;e=b;d=Td(12)|0;if(!d){e=0;i=b;return e|0}c[d+0>>2]=c[a+0>>2];c[d+4>>2]=c[a+4>>2];c[d+8>>2]=c[a+8>>2];f=(c[a>>2]|0)+8|0;a=c[f>>2]|0;c[f>>2]=a+1;c[e>>2]=a+1;e=d;i=b;return e|0}function _d(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;e=b+4|0;d=b;if(!a){i=b;return}f=c[a>>2]|0;if(!f){i=b;return}f=c[f>>2]|0;c[d>>2]=f;Qd(a);a=f+8|0;f=c[a>>2]|0;c[a>>2]=f+ -1;c[e>>2]=f+ -1;if(c[e>>2]|0){i=b;return}f=c[d>>2]|0;Ja[c[f+12>>2]&15](c[f+16>>2]|0,c[f>>2]|0);Qd(d);i=b;return}function $d(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=Td(20)|0;if(!e){b=0;i=d;return b|0}c[e+12>>2]=a;c[e+16>>2]=(b|0)!=0?b:4;c[e+4>>2]=1;b=e;i=d;return b|0}function ae(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b;if(!a){i=b;return}e=c[a>>2]|0;if(!e){i=b;return}c[a>>2]=0;f=e+4|0;a=c[f>>2]|0;c[f>>2]=a+ -1;c[d>>2]=a+ -1;if(c[d>>2]|0){i=b;return}be(e);i=b;return}function be(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b+4|0;e=b;c[d>>2]=a;if(!(c[a>>2]|0)){Qd(d);i=b;return}do{f=c[a>>2]|0;c[e>>2]=f;c[c[d>>2]>>2]=c[f+16>>2];f=c[e>>2]|0;Ja[c[f+8>>2]&15](c[f+4>>2]|0,c[f>>2]|0);Qd(e);a=c[d>>2]|0}while((c[a>>2]|0)!=0);Qd(d);i=b;return}function ce(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;i=i+16|0;b=d;e=d+4|0;f=c[a>>2]|0;j=0;while(1){if((f|0)==(j|0)){f=4;break}g=c[a>>2]|0;if((g|0)==(f|0))c[a>>2]=0;if(!g){f=5;break}else{j=f;f=g}}if((f|0)==4)if(!j)f=5;a:do if((f|0)==5){g=a+4|0;f=a+8|0;b:do if((c[g>>2]|0)<=(c[f>>2]|0)){$a(0,48,7344,b);c:while(1){c[b>>2]=c[g>>2];j=c[b>>2]|0;c[b>>2]=c[f>>2];if((j|0)>(c[b>>2]|0))break b;h=c[a>>2]|0;j=0;while(1){if((h|0)==(j|0))break;j=c[a>>2]|0;if((j|0)==(h|0))c[a>>2]=0;if(!j)continue c;else{k=h;h=j;j=k}}if(j)break a}}while(0);j=La[c[a+16>>2]&7](c[a+12>>2]|0)|0;c[e>>2]=j;if(!j){k=0;i=d;return k|0}h=Td(20)|0;if(!h){_d(e);k=0;i=d;return k|0}else{c[h>>2]=c[c[j>>2]>>2];c[h+4>>2]=c[(c[j>>2]|0)+16>>2];c[h+8>>2]=c[(c[j>>2]|0)+12>>2];c[h+12>>2]=a;c[(c[j>>2]|0)+16>>2]=h;c[(c[c[e>>2]>>2]|0)+12>>2]=8;k=c[g>>2]|0;c[g>>2]=k+1;c[b>>2]=k+1;k=c[f>>2]|0;c[f>>2]=k+1;c[b>>2]=k+1;k=c[e>>2]|0;i=d;return k|0}}while(0);e=j+16|0;de(c[e>>2]|0);c[e>>2]=0;e=Vd(c[j>>2]|0,c[a+12>>2]|0,8,j,0)|0;if(!e){de(j);k=0;i=d;return k|0}else{j=a+4|0;k=c[j>>2]|0;c[j>>2]=k+1;c[b>>2]=k+1;k=e;i=d;return k|0}return 0}function de(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;d=i;if(!a){i=d;return}b=c[a+12>>2]|0;f=a+16|0;if(!(c[f>>2]|0))e=a;else do{e=c[f>>2]|0;f=e+16|0}while((c[f>>2]|0)!=0);f=c[b>>2]|0;if(!f)c[b>>2]=a;if(!f){i=d;return}do{f=c[b>>2]|0;g=0;while(1){if((f|0)==(g|0))break;g=c[b>>2]|0;if((g|0)==(f|0))c[b>>2]=0;if(!g){g=0;break}else{h=f;f=g;g=h}}f=e+16|0;c[f>>2]=g;if(c[f>>2]|0)do{e=c[f>>2]|0;f=e+16|0}while((c[f>>2]|0)!=0);f=c[b>>2]|0;if(!f)c[b>>2]=a}while((f|0)!=0);i=d;return}function ee(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;b=i;i=i+16|0;e=b;d=c[a+12>>2]|0;de(a);f=d+4|0;a=c[f>>2]|0;c[f>>2]=a+ -1;c[e>>2]=a+ -1;if(c[e>>2]|0){i=b;return}be(d);i=b;return}function fe(){var a=0,b=0,d=0;a=i;b=Td(400)|0;if(!b){b=0;i=a;return b|0}ve(b|0,0,400)|0;d=b+136|0;c[d>>2]=0;c[d+4>>2]=-2147483648;d=b+144|0;c[d>>2]=0;c[d+4>>2]=-2147483648;d=b+128|0;c[d>>2]=0;c[d+4>>2]=-2147483648;d=b+360|0;c[d>>2]=0;c[d+4>>2]=-2147483648;d=b+376|0;c[d>>2]=0;c[d+4>>2]=0;d=b+368|0;c[d>>2]=-1;c[d+4>>2]=-1;c[b+392>>2]=-1;c[b+80>>2]=1;c[b+120>>2]=0;c[b+124>>2]=1;c[b+76>>2]=-1;c[b+344>>2]=2;c[b+348>>2]=2;c[b+352>>2]=2;c[b+340>>2]=0;c[b+356>>2]=0;i=a;return b|0}function ge(a){a=a|0;var b=0,d=0;b=i;if((a|0)!=0?(d=c[a>>2]|0,(d|0)!=0):0){he(d);Qd(a)}i=b;return}function he(a){a=a|0;var b=0,d=0;b=i;_d(a+304|0);_d(a+308|0);_d(a+312|0);_d(a+316|0);_d(a+320|0);_d(a+324|0);_d(a+328|0);_d(a+332|0);ve(a|0,0,400)|0;d=a+136|0;c[d>>2]=0;c[d+4>>2]=-2147483648;d=a+144|0;c[d>>2]=0;c[d+4>>2]=-2147483648;d=a+128|0;c[d>>2]=0;c[d+4>>2]=-2147483648;d=a+360|0;c[d>>2]=0;c[d+4>>2]=-2147483648;d=a+376|0;c[d>>2]=0;c[d+4>>2]=0;d=a+368|0;c[d>>2]=-1;c[d+4>>2]=-1;c[a+392>>2]=-1;c[a+80>>2]=1;c[a+120>>2]=0;c[a+124>>2]=1;c[a+76>>2]=-1;c[a+344>>2]=2;c[a+348>>2]=2;c[a+352>>2]=2;c[a+340>>2]=0;c[a+356>>2]=0;i=b;return}function ie(a,b){a=a|0;b=b|0;var d=0;d=i;xe(a|0,b|0,400)|0;ve(b|0,0,400)|0;a=b+136|0;c[a>>2]=0;c[a+4>>2]=-2147483648;a=b+144|0;c[a>>2]=0;c[a+4>>2]=-2147483648;a=b+128|0;c[a>>2]=0;c[a+4>>2]=-2147483648;a=b+360|0;c[a>>2]=0;c[a+4>>2]=-2147483648;a=b+376|0;c[a>>2]=0;c[a+4>>2]=0;a=b+368|0;c[a>>2]=-1;c[a+4>>2]=-1;c[b+392>>2]=-1;c[b+80>>2]=1;c[b+120>>2]=0;c[b+124>>2]=1;c[b+76>>2]=-1;c[b+344>>2]=2;c[b+348>>2]=2;c[b+352>>2]=2;c[b+340>>2]=0;c[b+356>>2]=0;i=d;return}function je(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;c[a+76>>2]=c[b+76>>2];c[a+64>>2]=c[b+64>>2];c[a+68>>2]=c[b+68>>2];c[a+388>>2]=c[b+388>>2];j=b+296|0;h=c[j+4>>2]|0;f=a+296|0;c[f>>2]=c[j>>2];c[f+4>>2]=h;c[a+72>>2]=c[b+72>>2];f=c[b+304>>2]|0;if(!f)ua();else{e=f;g=0}while(1){if((e|0)!=0?(j=Zd(e)|0,c[a+(g<<2)+304>>2]=j,(j|0)==0):0){e=5;break}g=g+1|0;if(g>>>0>=8){e=8;break}e=c[b+(g<<2)+304>>2]|0}if((e|0)==5){he(a);j=-12;i=d;return j|0}else if((e|0)==8){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];c[a+16>>2]=c[b+16>>2];c[a+20>>2]=c[b+20>>2];c[a+24>>2]=c[b+24>>2];c[a+28>>2]=c[b+28>>2];j=a+32|0;h=b+32|0;c[j+0>>2]=c[h+0>>2];c[j+4>>2]=c[h+4>>2];c[j+8>>2]=c[h+8>>2];c[j+12>>2]=c[h+12>>2];c[j+16>>2]=c[h+16>>2];c[j+20>>2]=c[h+20>>2];c[j+24>>2]=c[h+24>>2];c[j+28>>2]=c[h+28>>2];j=0;i=d;return j|0}return 0}function ke(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;e=0;while(1){f=e+1|0;if((c[7672+(e*24|0)>>2]|0)==(a|0))break;if(f>>>0<4)e=f;else{e=0;b=5;break}}if((b|0)==5){i=d;return e|0}f=7676+(e*24|0)|0;i=d;return f|0}
function Ta(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;return b|0}function Ua(){return i|0}function Va(a){a=a|0;i=a}function Wa(a,b){a=a|0;b=b|0;if(!o){o=a;p=b}}function Xa(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 Ya(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 Za(a){a=a|0;D=a}function _a(){return D|0}function $a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return}function ab(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;g=(c[b+16>>2]|0)==0?1:3;if((g|0)>(e|0)){b=c[b>>2]|0;c[d>>2]=c[b+(e<<2)+32>>2];b=c[b+(e<<2)>>2]|0;i=f;return b|0}if((a[b+20>>0]|0)!=0&(g|0)==(e|0)){b=c[b+4>>2]|0;c[d>>2]=c[b+32>>2];b=c[b>>2]|0;i=f;return b|0}else{c[d>>2]=0;b=0;i=f;return b|0}return 0}function bb(a,b){a=a|0;b=b|0;var e=0,f=0;e=i;if(!(c[a>>2]|0)){f=-1;i=e;return f|0}c[b>>2]=c[a+8>>2];c[b+4>>2]=c[a+12>>2];c[b+8>>2]=c[a+16>>2];f=a+24|0;if(((c[f>>2]|0)+ -3|0)>>>0<2)c[b+12>>2]=0;else c[b+12>>2]=d[a+20>>0];c[b+16>>2]=c[f>>2];c[b+20>>2]=d[a+21>>0];f=0;i=e;return f|0}function cb(f,g){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;k=i;h=c[f+8>>2]|0;j=f+40|0;n=c[j>>2]|0;if(n>>>0>=(c[f+12>>2]|0)>>>0){x=-1;i=k;return x|0}o=(c[f+52>>2]|0)+($(c[f+68>>2]|0,n)|0)|0;l=f+36|0;m=(d[l>>0]|0)+3|0;p=c[f+16>>2]|0;do if(!p)if((c[f+192>>2]|0)==8){if((h|0)>0){q=g;p=0}else break;while(1){x=b[o+(p<<1)>>1]&255;a[q>>0]=x;a[q+1>>0]=x;a[q+2>>0]=x;p=p+1|0;if((p|0)==(h|0))break;else q=q+m|0}}else{t=c[f+168>>2]|0;s=c[f+164>>2]|0;r=c[f+160>>2]|0;if((h|0)>0){q=g;p=0}else break;while(1){x=($(e[o+(p<<1)>>1]|0,t)|0)+s>>r&255;a[q>>0]=x;a[q+1>>0]=x;a[q+2>>0]=x;p=p+1|0;if((p|0)==(h|0))break;else q=q+m|0}}else if((p|0)==1){p=n>>1;u=(p|0)%8|0;x=f+84|0;q=c[x>>2]|0;r=f+92|0;v=f+156|0;s=c[v>>2]|0;w=f+21|0;t=d[w>>0]|0;if(!(n&1)){db(q,r,h,u,s,t,0);db(c[f+88>>2]|0,f+124|0,h,u,c[v>>2]|0,d[w>>0]|0,0)}else{db(q,r,h,u,s,t,1);db(c[f+88>>2]|0,f+124|0,h,u,c[v>>2]|0,d[w>>0]|0,1);u=(u+5|0)%8|0;t=p+5|0;v=c[f+48>>2]|0;v=(t|0)<(v|0)?t:v+ -1|0;t=(c[f+56>>2]|0)+($(v,c[f+72>>2]|0)|0)|0;v=(c[f+60>>2]|0)+($(c[f+76>>2]|0,v)|0)|0;w=f+44|0;xe(c[f+(u<<2)+92>>2]|0,t|0,c[w>>2]<<1|0)|0;xe(c[f+(u<<2)+124>>2]|0,v|0,c[w>>2]<<1|0)|0}Ga[c[f+196>>2]&7](f+160|0,g,o,c[x>>2]|0,c[f+88>>2]|0,h,m)}else if((p|0)==2){x=(c[f+56>>2]|0)+($(c[f+72>>2]|0,n)|0)|0;u=(c[f+60>>2]|0)+($(c[f+76>>2]|0,n)|0)|0;w=f+84|0;v=f+21|0;eb(c[w>>2]|0,x,h,d[v>>0]|0);x=f+88|0;eb(c[x>>2]|0,u,h,d[v>>0]|0);Ga[c[f+196>>2]&7](f+160|0,g,o,c[w>>2]|0,c[x>>2]|0,h,m)}else if((p|0)==3){w=(c[f+56>>2]|0)+($(c[f+72>>2]|0,n)|0)|0;x=(c[f+60>>2]|0)+($(c[f+76>>2]|0,n)|0)|0;Ga[c[f+196>>2]&7](f+160|0,g,o,w,x,h,m)}else{x=-1;i=k;return x|0}while(0);a:do if(((c[f+24>>2]|0)+ -3|0)>>>0<2){n=(c[f+64>>2]|0)+($(c[f+80>>2]|0,n)|0)|0;r=c[f+192>>2]|0;q=1<<r+ -1;o=(h|0)>0;if(o){f=g;p=0;while(1){w=e[n+(p<<1)>>1]|0;a[f>>0]=($(d[f>>0]|0,w)|0)+q>>r;x=f+1|0;a[x>>0]=($(d[x>>0]|0,w)|0)+q>>r;x=f+2|0;a[x>>0]=($(d[x>>0]|0,w)|0)+q>>r;p=p+1|0;if((p|0)==(h|0))break;else f=f+m|0}}if(!((a[l>>0]|0)==0|o^1)){l=g+3|0;g=0;while(1){a[l>>0]=-1;g=g+1|0;if((g|0)==(h|0))break;else l=l+4|0}}}else if(a[l>>0]|0){if(!(a[f+20>>0]|0)){if((h|0)<=0)break;g=g+3|0;l=0;while(1){a[g>>0]=-1;l=l+1|0;if((l|0)==(h|0))break a;else g=g+4|0}}l=(c[f+64>>2]|0)+($(c[f+80>>2]|0,n)|0)|0;o=g+3|0;if((c[f+192>>2]|0)==8){if((h|0)>0)g=0;else break;while(1){a[o>>0]=b[l+(g<<1)>>1];g=g+1|0;if((g|0)==(h|0))break;else o=o+4|0}}else{m=c[f+168>>2]|0;g=c[f+164>>2]|0;f=c[f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<1)>>1]=c;c=(1<<f)+ -1|0;s=e[h>>1]|0;o=e[h+2>>1]|0;q=e[h+4>>1]|0;p=e[j>>1]|0;n=e[h+8>>1]|0;m=e[h+10>>1]|0;if((d|0)>1){k=d+ -2|0;l=k>>>1;f=l+1|0;r=p;p=n;n=m;t=a;u=j;while(1){m=e[u+6>>1]|0;v=r*57|0;w=(n<<2)+32+($(p,-10)|0)+v+(q*18|0)+($(o,-6)|0)+(s<<1)-m>>6;if((w|0)<0)w=0;else w=((w|0)>(c|0)?c:w)&65535;b[t>>1]=w;s=($(n,-6)|0)+32+(p*18|0)+v+($(q,-10)|0)-s+(o<<2)+(m<<1)>>6;if((s|0)<0)s=0;else s=((s|0)>(c|0)?c:s)&65535;b[t+2>>1]=s;d=d+ -2|0;if((d|0)<=1)break;else{y=n;x=p;v=r;w=q;s=o;n=m;t=t+4|0;u=u+2|0;p=y;r=x;q=v;o=w}}d=l<<1;l=o;o=q;q=r;a=a+(d+2<<1)|0;d=k-d|0;j=j+(f<<1)|0}else l=s;if(!d){Pd(h);i=g;return}j=(m<<2)+32+($(n,-10)|0)+(p*57|0)+(q*18|0)+($(o,-6)|0)+(l<<1)-(e[j+6>>1]|0)>>6;if((j|0)<0)j=0;else j=((j|0)>(c|0)?c:j)&65535;b[a>>1]=j;Pd(h);i=g;return}function fb(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.0;j=i;if(!(c[b>>2]|0)){q=-1;i=j;return q|0}g=b+40|0;if((c[g>>2]|0)>-1|e>>>0>1){q=-1;i=j;return q|0}a[b+36>>0]=(e|0)==1&1;e=b+37|0;a[e>>0]=0;c[b+52>>2]=ab(b,b+68|0,0)|0;k=b+16|0;if(!(c[k>>2]|0))l=1;else{c[b+56>>2]=ab(b,b+72|0,1)|0;c[b+60>>2]=ab(b,b+76|0,2)|0;l=3}if(!(a[b+20>>0]|0))c[b+64>>2]=0;else c[b+64>>2]=ab(b,b+80|0,l)|0;if(((c[k>>2]|0)+ -1|0)>>>0<2?(q=b+8|0,p=c[q>>2]|0,f=b+44|0,c[f>>2]=(p+1|0)/2|0,h=b+48|0,c[h>>2]=((c[b+12>>2]|0)+1|0)/2|0,c[b+84>>2]=Nd(p<<1)|0,c[b+88>>2]=Nd(c[q>>2]<<1)|0,(c[k>>2]|0)==1):0){m=0;l=c[f>>2]<<1;do{c[b+(m<<2)+92>>2]=Nd(l)|0;c[b+(m<<2)+124>>2]=Nd(c[f>>2]<<1)|0;m=m+1|0;l=c[f>>2]<<1}while((m|0)!=8);c[b+156>>2]=Nd(l+14|0)|0;n=b+56|0;o=b+72|0;l=b+60|0;m=b+76|0;p=0;do{q=(p|0)>4?p+ -8|0:p;if((q|0)<0)q=0;else{r=c[h>>2]|0;q=(q|0)<(r|0)?q:r+ -1|0}s=(c[n>>2]|0)+($(c[o>>2]|0,q)|0)|0;r=(c[l>>2]|0)+($(c[m>>2]|0,q)|0)|0;xe(c[b+(p<<2)+92>>2]|0,s|0,c[f>>2]<<1|0)|0;xe(c[b+(p<<2)+124>>2]|0,r|0,c[f>>2]<<1|0)|0;p=p+1|0}while((p|0)!=8)}s=d[b+21>>0]|0;q=(a[e>>0]|0)!=0?16:8;r=30-q|0;t=+((1<<q)+ -1|0)*+(1<<r|0)/+((1<<s)+ -1|0);c[b+172>>2]=sa(+(t*1.402))|0;c[b+176>>2]=sa(+(t*.3441362862))|0;c[b+180>>2]=sa(+(t*.7141362862))|0;c[b+184>>2]=sa(+(t*1.772))|0;c[b+168>>2]=sa(+t)|0;c[b+160>>2]=r;c[b+164>>2]=1<<r+ -1;c[b+188>>2]=1<<s+ -1;c[b+192>>2]=s;if(!(c[k>>2]|0))c[b+196>>2]=0;else c[b+196>>2]=c[8+(c[b+24>>2]<<2)>>2];c[g>>2]=0;s=0;i=j;return s|0}function gb(){var a=0,b=0;a=i;b=Td(200)|0;if(!b)b=0;i=a;return b|0}function hb(d,e,f){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;i=i+48|0;o=g+32|0;m=g;if((f|0)<6){t=-1;i=g;return t|0}if((a[e>>0]|0)!=66){t=-1;i=g;return t|0}if((a[e+1>>0]|0)!=80){t=-1;i=g;return t|0}if((a[e+2>>0]|0)!=71){t=-1;i=g;return t|0}if((a[e+3>>0]|0)!=-5){t=-1;i=g;return t|0}t=a[e+4>>0]|0;h=t&255;p=h>>>5;k=m+8|0;c[k>>2]=p;if(t<<24>>24<0){t=-1;i=g;return t|0}l=h>>>4&1;j=m+12|0;a[j>>0]=l;t=(h&15)+8|0;a[m+13>>0]=t;if((t&255)>>>0>14){t=-1;i=g;return t|0}t=a[e+5>>0]|0;n=t&255;q=n>>>4;h=m+16|0;c[h>>2]=q;if((t&255)>79){t=-1;i=g;return t|0}if(!((p|0)!=0|(q|0)==0)){t=-1;i=g;return t|0}if((q+ -3|0)>>>0<2&l<<24>>24==0){t=-1;i=g;return t|0}l=kb(m,e+6|0,f+ -6|0)|0;if((l|0)<0){t=-1;i=g;return t|0}l=l+6|0;p=m+4|0;q=kb(p,e+l|0,f-l|0)|0;if((q|0)<0){t=-1;i=g;return t|0}r=q+l|0;if(!(c[m>>2]|0)){t=-1;i=g;return t|0}if(!(c[p>>2]|0)){t=-1;i=g;return t|0}l=m+20|0;q=kb(l,e+r|0,f-r|0)|0;if((q|0)<0){t=-1;i=g;return t|0}r=q+r|0;c[o>>2]=0;q=(n&8|0)!=0;do if(q){n=kb(o,e+r|0,f-r|0)|0;if((n|0)<0){t=-1;i=g;return t|0}else{r=n+r|0;break}}while(0);n=m+24|0;c[n>>2]=0;do if(a[j>>0]|0){s=kb(n,e+r|0,f-r|0)|0;if((s|0)<0){t=-1;i=g;return t|0}else{r=s+r|0;break}}while(0);c[m+28>>2]=0;if(q){o=(c[o>>2]|0)+r|0;if((o|0)>(f|0)){t=-1;i=g;return t|0}}else o=r;if((o|0)<0){t=o;i=g;return t|0}m=c[m>>2]|0;p=c[p>>2]|0;k=c[k>>2]|0;j=b[j>>1]|0;q=j&255;t=c[h>>2]|0;h=(j&65535)>>>8;j=h&65535;s=d+8|0;c[s>>2]=m;r=d+12|0;c[r>>2]=p;c[d+16>>2]=k;a[d+20>>0]=q;c[d+24>>2]=t;a[d+21>>0]=h;h=d+32|0;c[h>>2]=0;t=c[l>>2]|0;l=t+o|0;a:do if(l>>>0>f>>>0)e=d;else{o=ib(e+o|0,t,m,p,k,j)|0;c[d>>2]=o;if(!o){e=d;break}if((c[o+64>>2]|0)<(c[s>>2]|0)){e=d;break}if((c[o+68>>2]|0)<(c[r>>2]|0)){e=d;break}switch(c[o+76>>2]|0){case 0:case 54:{if((k|0)!=1){e=d;break a}break};case 4:case 56:{if((k|0)!=2){e=d;break a}break};case 5:case 58:{if((k|0)!=3){e=d;break a}break};case 8:case 32:{if(k){e=d;break a}break};default:{e=d;break a}}if(q<<24>>24){k=c[n>>2]|0;if((k+l|0)>>>0>f>>>0){e=d;break}t=ib(e+l|0,k,m,p,0,j)|0;c[d+4>>2]=t;if(!t){e=d;break}}c[d+40>>2]=-1;t=0;i=g;return t|0}while(0);if(c[e>>2]|0)ge(e);d=d+4|0;if(c[d>>2]|0)ge(d);c[h>>2]=0;t=-1;i=g;return t|0}function ib(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;k=i;i=i+96|0;n=k+88|0;o=k;l=k+84|0;q=k+80|0;p=kb(q,b,d)|0;if((p|0)<0){b=0;i=k;return b|0}r=d-p|0;s=c[q>>2]|0;if(s>>>0>r>>>0){b=0;i=k;return b|0}d=s+10|0;q=Nd(d)|0;a[q>>0]=g;a[q+1>>0]=e>>>24;a[q+2>>0]=e>>>16;a[q+3>>0]=e>>>8;a[q+4>>0]=e;a[q+5>>0]=f>>>24;a[q+6>>0]=f>>>16;a[q+7>>0]=f>>>8;a[q+8>>0]=f;a[q+9>>0]=h+248;xe(q+10|0,b+p|0,s|0)|0;g=b+(s+p)|0;r=r-s|0;p=Nd((d<<1)+10-s+r|0)|0;a[p>>0]=0;a[p+1>>0]=0;a[p+2>>0]=0;a[p+3>>0]=1;a[p+4>>0]=96;a[p+5>>0]=1;if((d|0)>0){f=0;s=6;while(1){e=f+1|0;h=a[q+f>>0]|0;if((e|0)<(d|0)&h<<24>>24==0)if(!(a[q+e>>0]|0)){a[p+s>>0]=0;a[p+(s+1)>>0]=0;a[p+(s+2)>>0]=3;e=f+2|0;s=s+3|0}else{h=0;j=7}else j=7;if((j|0)==7){j=0;a[p+s>>0]=h;s=s+1|0}if((e|0)<(d|0))f=e;else break}if(!s){s=0;j=11}else j=10}else{s=6;j=10}if((j|0)==10)if(!(a[p+(s+ -1)>>0]|0))j=11;if((j|0)==11){a[p+s>>0]=-128;s=s+1|0}Pd(q);a[p+s>>0]=0;a[p+(s+1)>>0]=0;a[p+(s+2)>>0]=0;b=s+4|0;a[p+(s+3)>>0]=1;xe(p+b|0,g|0,r|0)|0;r=b+r|0;Kd(o);g=Bd(1504)|0;if(!g)Aa(1);if(c[380]&8){b=g+84|0;c[b>>2]=c[b>>2]|65536}b=g+688|0;c[b>>2]=c[b>>2]|1;if((vd(g,1504,0)|0)<0)Aa(1);s=fe()|0;c[l>>2]=s;if(!s){b=0;i=k;return b|0}q=o+28|0;c[q>>2]=r;d=o+24|0;c[d>>2]=p;if((r|0)>0){r=s;s=0;while(1){r=Cd(g,r,n,o)|0;if((r|0)<0){j=26;break}m=((c[n>>2]|0)!=0&1)+s|0;s=c[d>>2]|0;e=c[q>>2]|0;if(s){e=e-r|0;c[q>>2]=e;c[d>>2]=s+r}if((e|0)<=0)break;r=c[l>>2]|0;s=m}if((j|0)==26)Aa(1);wd(g)|0;Pd(g);Pd(p);if(m){b=c[l>>2]|0;i=k;return b|0}}else{wd(g)|0;Pd(g);Pd(p)}ge(l);b=0;i=k;return b|0}function jb(a){a=a|0;var b=0,d=0;b=i;Pd(c[a+84>>2]|0);Pd(c[a+88>>2]|0);d=0;do{Pd(c[a+(d<<2)+92>>2]|0);Pd(c[a+(d<<2)+124>>2]|0);d=d+1|0}while((d|0)!=8);Pd(c[a+156>>2]|0);if(c[a>>2]|0)ge(a);d=a+4|0;if(!(c[d>>2]|0)){Pd(a);i=b;return}ge(d);Pd(a);i=b;return}function kb(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;a:do if((f|0)>=1){j=a[e>>0]|0;h=j&255;if(j<<24>>24>-1){c[b>>2]=h;b=1;break}if(j<<24>>24!=-128){j=e+1|0;h=h&127;while(1){if((f|0)<2){b=-1;break a}k=j;j=j+1|0;k=d[k>>0]|0;h=k&127|h<<7;if(!(k&128))break;else f=f+ -1|0}c[b>>2]=h;b=j-e|0}else b=-1}else b=-1;while(0);i=g;return b|0}function lb(b,d,f,g,h,j,k){b=b|0;d=d|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;q=i;s=c[b+12>>2]|0;n=c[b+16>>2]|0;o=c[b+20>>2]|0;l=c[b+24>>2]|0;p=c[b+8>>2]|0;r=c[b+4>>2]|0;m=c[b>>2]|0;b=c[b+28>>2]|0;if((j|0)>0)t=0;else{i=q;return}while(1){v=$(e[f+(t<<1)>>1]|0,p)|0;u=(e[g+(t<<1)>>1]|0)-b|0;w=(e[h+(t<<1)>>1]|0)-b|0;v=v+r|0;x=v+($(w,s)|0)>>m;if((x|0)<0)x=0;else x=(x|0)>255?-1:x&255;a[d>>0]=x;w=v-($(u,n)|0)-($(w,o)|0)>>m;if((w|0)<0)w=0;else w=(w|0)>255?-1:w&255;a[d+1>>0]=w;u=v+($(u,l)|0)>>m;if((u|0)<0)u=0;else u=(u|0)>255?-1:u&255;a[d+2>>0]=u;t=t+1|0;if((t|0)==(j|0))break;else d=d+k|0}i=q;return}function mb(d,f,g,h,j,k,l){d=d|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;m=i;if((c[d+32>>2]|0)==8){if((k|0)>0)n=0;else{i=m;return}while(1){a[f>>0]=b[j+(n<<1)>>1];a[f+1>>0]=b[g+(n<<1)>>1];a[f+2>>0]=b[h+(n<<1)>>1];n=n+1|0;if((n|0)==(k|0))break;else f=f+l|0}i=m;return}else{n=c[d+8>>2]|0;o=c[d+4>>2]|0;d=c[d>>2]|0;if((k|0)>0){p=f;f=0}else{i=m;return}while(1){a[p>>0]=($(e[j+(f<<1)>>1]|0,n)|0)+o>>d;a[p+1>>0]=($(e[g+(f<<1)>>1]|0,n)|0)+o>>d;a[p+2>>0]=($(e[h+(f<<1)>>1]|0,n)|0)+o>>d;f=f+1|0;if((f|0)==(k|0))break;else p=p+l|0}i=m;return}}function nb(b,d,f,g,h,j,k){b=b|0;d=d|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;o=i;l=c[b+8>>2]|0;m=c[b+4>>2]|0;n=c[b>>2]|0;b=c[b+28>>2]|0;if((j|0)>0)p=0;else{i=o;return}while(1){t=e[f+(p<<1)>>1]|0;s=(e[g+(p<<1)>>1]|0)-b|0;r=(e[h+(p<<1)>>1]|0)-b|0;q=t-s|0;u=($(q+r|0,l)|0)+m>>n;if((u|0)<0)u=0;else u=(u|0)>255?-1:u&255;a[d>>0]=u;s=($(s+t|0,l)|0)+m>>n;if((s|0)<0)s=0;else s=(s|0)>255?-1:s&255;a[d+1>>0]=s;q=($(q-r|0,l)|0)+m>>n;if((q|0)<0)q=0;else q=(q|0)>255?-1:q&255;a[d+2>>0]=q;p=p+1|0;if((p|0)==(j|0))break;else d=d+k|0}i=o;return}function ob(b,d){b=b|0;d=d|0;var e=0,f=0;e=i;if(!(a[(c[b+184>>2]|0)+43>>0]|0)){i=e;return}f=c[(c[b+180>>2]|0)+13128>>2]|0;d=(d|0)%(f|0)|0;if((d|0)!=2?!((f|0)==2&(d|0)==0):0){i=e;return}xe(c[b+152>>2]|0,c[b+136>>2]|0,199)|0;i=e;return}function pb(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;g=b+184|0;f=c[g>>2]|0;if((c[(c[f+1668>>2]|0)+(c[b+3468>>2]<<2)>>2]|0)==(d|0)){qb(b);f=b+2417|0;if(a[f>>0]|0){j=c[g>>2]|0;if((a[j+42>>0]|0)!=0?(j=c[j+1676>>2]|0,(c[j+(d<<2)>>2]|0)!=(c[j+(d+ -1<<2)>>2]|0)):0)h=5}else h=5;if((h|0)==5)rb(b);if(a[b+2416>>0]|0){i=e;return}if(!(a[(c[g>>2]|0)+43>>0]|0)){i=e;return}g=c[(c[b+180>>2]|0)+13128>>2]|0;if((d|0)%(g|0)|0){i=e;return}if((g|0)==1){rb(b);i=e;return}if((a[f>>0]|0)!=1){i=e;return}xe(c[b+136>>2]|0,c[b+152>>2]|0,199)|0;i=e;return}if((a[f+42>>0]|0)!=0?(j=c[f+1676>>2]|0,(c[j+(d<<2)>>2]|0)!=(c[j+(d+ -1<<2)>>2]|0)):0){if((a[b+141>>0]|0)==1)sb(c[b+136>>2]|0);else qb(b);rb(b);f=c[g>>2]|0}if(!(a[f+43>>0]|0)){i=e;return}f=b+180|0;if((d|0)%(c[(c[f>>2]|0)+13128>>2]|0)|0){i=e;return}d=b+136|0;tb((c[d>>2]|0)+224|0)|0;if((a[b+141>>0]|0)==1)sb(c[d>>2]|0);else qb(b);if((c[(c[f>>2]|0)+13128>>2]|0)==1){rb(b);i=e;return}else{xe(c[d>>2]|0,c[b+152>>2]|0,199)|0;i=e;return}}function qb(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;a=c[a+136>>2]|0;d=a+212|0;f=c[a+220>>2]|0;e=(c[d>>2]|0)+1|0;e=f>>>0>e>>>0?e:f;g=0-e&7;if(g){e=g+e|0;e=f>>>0>e>>>0?e:f}c[d>>2]=e;Ld(a+224|0,(c[a+204>>2]|0)+((e|0)/8|0)|0,(7-e+(c[a+216>>2]|0)|0)/8|0);i=b;return}function rb(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;g=i;f=c[b+2408>>2]|0;e=2-f|0;e=(a[b+3028>>0]|0)==0|(f|0)==2?e:e^3;f=b+3080|0;b=b+136|0;h=0;do{j=d[728+(e*199|0)+h>>0]|0;l=a[f>>0]|0;k=l<<24>>24;if(l<<24>>24<0)k=0;else k=(k|0)>51?51:k;j=((j<<3&120)+ -16+(($(k,((j>>>4)*5|0)+ -45|0)|0)>>4)<<1)+ -127|0;j=j>>31^j;if((j|0)>124)j=j&1|124;a[(c[b>>2]|0)+h>>0]=j;h=h+1|0}while((h|0)!=199);a[(c[b>>2]|0)+199>>0]=0;a[(c[b>>2]|0)+200>>0]=0;a[(c[b>>2]|0)+201>>0]=0;a[(c[b>>2]|0)+202>>0]=0;i=g;return}function sb(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+224|0;e=c[a+240>>2]|0;f=c[d>>2]|0;e=(f&1|0)==0?e:e+ -1|0;e=(f&511|0)==0?e:e+ -1|0;a=(c[a+244>>2]|0)-e|0;if((a|0)<0){i=b;return}Ld(d,e,a);i=b;return}function tb(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;f=a+4|0;d=c[f>>2]|0;e=d+ -2|0;c[f>>2]=e;g=c[a>>2]|0;if((g|0)>=(e<<17|0)){g=(c[a+16>>2]|0)-(c[a+12>>2]|0)|0;i=b;return g|0}d=(d+ -258|0)>>>31;c[f>>2]=e<<d;g=g<<d;c[a>>2]=g;if(g&65535){g=0;i=b;return g|0}Wb(a);g=0;i=b;return g|0}function ub(a){a=a|0;var b=0;b=i;a=c[a+136>>2]|0;a=vb(a+224|0,a)|0;i=b;return a|0}function vb(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;f=i;h=d[e>>0]|0;j=b+4|0;k=c[j>>2]|0;l=d[5544+((k<<1&384)+(h|512))>>0]|0;k=k-l|0;m=k<<17;n=c[b>>2]|0;g=m-n>>31;c[b>>2]=n-(g&m);c[j>>2]=(g&l-k)+k;h=g^h;a[e>>0]=a[h+6696>>0]|0;e=h&1;h=c[j>>2]|0;g=d[5544+h>>0]|0;c[j>>2]=h<<g;g=c[b>>2]<<g;c[b>>2]=g;if(g&65535){i=f;return e|0}j=b+16|0;h=c[j>>2]|0;c[b>>2]=(((d[h+1>>0]|0)<<1|(d[h>>0]|0)<<9)+ -65535<<7-(d[5544+((g+ -1^g)>>15)>>0]|0))+g;if(h>>>0>=(c[b+20>>2]|0)>>>0){i=f;return e|0}c[j>>2]=h+2;i=f;return e|0}function wb(a){a=a|0;var b=0,d=0;b=i;a=a+136|0;d=c[a>>2]|0;if(!(vb(d+224|0,d+1|0)|0)){d=0;i=b;return d|0}d=(xb((c[a>>2]|0)+224|0)|0)==0;d=d?1:2;i=b;return d|0}function xb(a){a=a|0;var b=0,d=0,e=0;b=i;d=c[a>>2]<<1;c[a>>2]=d;if(!(d&65534)){Wb(a);d=c[a>>2]|0}e=c[a+4>>2]<<17;if((d|0)<(e|0)){e=0;i=b;return e|0}c[a>>2]=d-e;e=1;i=b;return e|0}function yb(a){a=a|0;var b=0,d=0;b=i;d=a+136|0;a=(xb((c[d>>2]|0)+224|0)|0)<<1;a=(xb((c[d>>2]|0)+224|0)|0|a)<<1;a=(xb((c[d>>2]|0)+224|0)|0|a)<<1;a=(xb((c[d>>2]|0)+224|0)|0|a)<<1;a=xb((c[d>>2]|0)+224|0)|0|a;i=b;return a|0}function zb(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=c[(c[a+180>>2]|0)+52>>2]|0;d=(d|0)>10?31:(1<<d+ -5)+ -1|0;e=a+136|0;if((d|0)>0)a=0;else{f=0;i=b;return f|0}while(1){f=a+1|0;if(!(xb((c[e>>2]|0)+224|0)|0)){d=4;break}if((f|0)<(d|0))a=f;else{a=f;d=4;break}}if((d|0)==4){i=b;return a|0}return 0}function Ab(a){a=a|0;var b=0;b=i;a=xb((c[a+136>>2]|0)+224|0)|0;i=b;return a|0}function Bb(a){a=a|0;var b=0,d=0;b=i;d=a+136|0;a=(xb((c[d>>2]|0)+224|0)|0)<<1;a=xb((c[d>>2]|0)+224|0)|0|a;i=b;return a|0}function Cb(a){a=a|0;var b=0;b=i;a=tb((c[a+136>>2]|0)+224|0)|0;i=b;return a|0}function Db(a){a=a|0;var b=0;b=i;a=c[a+136>>2]|0;a=vb(a+224|0,a+5|0)|0;i=b;return a|0}function Eb(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;b=i;i=i+16|0;g=b;e=a+136|0;j=9;f=0;while(1){k=c[e>>2]|0;h=f;f=f+1|0;if(!(vb(k+224|0,k+j|0)|0)){f=h;h=0;d=10;break}if((f|0)>=5){j=0;h=0;break}else j=10}if((d|0)==10){k=h+f|0;i=b;return k|0}while(1){if(!(xb((c[e>>2]|0)+224|0)|0)){d=8;break}h=(1<<j)+h|0;j=j+1|0;if((j|0)>=31){d=6;break}}if((d|0)==6)if((j|0)==31){a=c[a+4>>2]|0;c[g>>2]=31;$a(a,16,192,g);a=31}else a=j;else if((d|0)==8)if(!j){k=f;j=h;k=j+k|0;i=b;return k|0}else a=j;do{a=a+ -1|0;h=((xb((c[e>>2]|0)+224|0)|0)<<a)+h|0}while((a|0)!=0);k=h+f|0;i=b;return k|0}function Fb(a){a=a|0;var b=0;b=i;a=xb((c[a+136>>2]|0)+224|0)|0;i=b;return a|0}function Gb(a){a=a|0;var b=0;b=i;a=c[a+136>>2]|0;a=vb(a+224|0,a+176|0)|0;i=b;return a|0}function Hb(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=a[(c[b+184>>2]|0)+1633>>0]|0;e=(e&255)<5?5:e&255;f=b+136|0;if(!e){g=0;i=d;return g|0}else b=0;while(1){h=c[f>>2]|0;g=b+1|0;if(!(vb(h+224|0,h+177|0)|0)){e=4;break}if((g|0)<(e|0))b=g;else{b=g;e=4;break}}if((e|0)==4){i=d;return b|0}return 0}function Ib(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;j=i;k=c[b+180>>2]|0;n=(1<<c[k+13080>>2])+ -1|0;l=n&g;m=c[k+13064>>2]|0;h=f>>m;m=g>>m;g=c[b+136>>2]|0;if((a[g+308>>0]|0)==0?(n&f|0)==0:0)f=0;else{f=h+ -1+($(c[k+13140>>2]|0,m)|0)|0;f=d[(c[b+7612>>2]|0)+f>>0]|0}if((a[g+309>>0]|0)==0&(l|0)==0){n=0;m=(f|0)>(e|0);m=m&1;n=(n|0)>(e|0);n=n&1;f=g+224|0;m=m|2;n=m+n|0;n=g+n|0;n=vb(f,n)|0;i=j;return n|0}n=($(c[k+13140>>2]|0,m+ -1|0)|0)+h|0;n=d[(c[b+7612>>2]|0)+n>>0]|0;m=(f|0)>(e|0);m=m&1;n=(n|0)>(e|0);n=n&1;f=g+224|0;m=m|2;n=m+n|0;n=g+n|0;n=vb(f,n)|0;i=j;return n|0}function Jb(a,b){a=a|0;b=b|0;var d=0;d=i;b=c[a+136>>2]|0;b=(vb(b+224|0,b+13|0)|0)==0;i=d;return(b?3:0)|0}function Kb(a){a=a|0;var b=0;b=i;a=tb((c[a+136>>2]|0)+224|0)|0;i=b;return a|0}function Lb(a){a=a|0;var b=0;b=i;a=c[a+136>>2]|0;a=vb(a+224|0,a+17|0)|0;i=b;return a|0}function Mb(a){a=a|0;var b=0,d=0,e=0;b=i;e=a+136|0;d=0;while(1){a=d+1|0;if(!(xb((c[e>>2]|0)+224|0)|0)){a=d;d=4;break}if((a|0)<2)d=a;else{d=4;break}}if((d|0)==4){i=b;return a|0}return 0}function Nb(a){a=a|0;var b=0,d=0;b=i;d=a+136|0;a=(xb((c[d>>2]|0)+224|0)|0)<<1;a=(xb((c[d>>2]|0)+224|0)|0|a)<<1;a=(xb((c[d>>2]|0)+224|0)|0|a)<<1;a=(xb((c[d>>2]|0)+224|0)|0|a)<<1;a=xb((c[d>>2]|0)+224|0)|0|a;i=b;return a|0}function Ob(a){a=a|0;var b=0,d=0;b=i;a=a+136|0;d=c[a>>2]|0;if(!(vb(d+224|0,d+18|0)|0)){d=4;i=b;return d|0}d=(xb((c[a>>2]|0)+224|0)|0)<<1;d=xb((c[a>>2]|0)+224|0)|0|d;i=b;return d|0}function Pb(a){a=a|0;var b=0;b=i;a=c[a+136>>2]|0;a=vb(a+224|0,a+36|0)|0;i=b;return a|0}function Qb(a,b){a=a|0;b=b|0;var d=0;d=i;a=c[a+136>>2]|0;a=vb(a+224|0,a+(42-b)|0)|0;i=d;return a|0}function Rb(a,b){a=a|0;b=b|0;var d=0;d=i;a=c[a+136>>2]|0;a=vb(a+224|0,a+(b+42)|0)|0;i=d;return a|0}function Sb(a,b){a=a|0;b=b|0;var d=0;d=i;a=c[a+136>>2]|0;a=vb(a+224|0,a+((b|0)==0|40)|0)|0;i=d;return a|0}function Tb(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;a=a+136|0;f=(b<<2)+166|0;e=0;while(1){g=c[a>>2]|0;b=e+1|0;if(!(vb(g+224|0,g+(f+e)|0)|0)){b=e;a=4;break}if((b|0)<4)e=b;else{a=4;break}}if((a|0)==4){i=d;return b|0}return 0}function Ub(a,b){a=a|0;b=b|0;var d=0;d=i;a=c[a+136>>2]|0;a=vb(a+224|0,a+(b+174)|0)|0;i=d;return a|0}function Vb(f,g,h,j,k,l){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,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,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,Ka=0,La=0,Na=0,Oa=0;o=i;i=i+96|0;w=o;t=o+32|0;u=o+16|0;s=o+8|0;x=f+136|0;p=c[x>>2]|0;y=c[f+160>>2]|0;n=c[y+(l<<2)+32>>2]|0;m=f+180|0;q=c[m>>2]|0;U=$(h>>c[q+(l<<2)+13180>>2],n)|0;q=(c[y+(l<<2)>>2]|0)+(U+(g>>c[q+(l<<2)+13168>>2]<<c[q+56>>2]))|0;U=(l|0)!=0;h=p+320|0;g=U?p+11680|0:h;y=t+0|0;r=y+64|0;do{a[y>>0]=0;y=y+1|0}while((y|0)<(r|0));T=1<<j;A=(l|0)==0;y=c[(A?p+288|0:p+292|0)>>2]|0;r=T<<j;ve(g|0,0,r<<1|0)|0;z=p+31256|0;if(!(a[z>>0]|0)){B=a[p+272>>0]|0;E=f+184|0;Na=c[E>>2]|0;if((a[Na+21>>0]|0)!=0?(d[Na+1629>>0]|0)>=(j|0):0){G=c[x>>2]|0;G=vb(G+224|0,G+(U&1|46)|0)|0}else G=0;if(A){C=c[m>>2]|0;H=C;C=(c[C+13192>>2]|0)+B|0}else{C=c[E>>2]|0;if((l|0)==1)C=(c[f+3040>>2]|0)+(c[C+28>>2]|0)+(a[p+302>>0]|0)|0;else C=(c[f+3044>>2]|0)+(c[C+32>>2]|0)+(a[p+303>>0]|0)|0;F=C+B|0;H=c[m>>2]|0;B=c[H+13192>>2]|0;C=0-B|0;if((F|0)>=(C|0))C=(F|0)>57?57:F;do if((c[H+4>>2]|0)==1){if((C|0)>=30)if((C|0)>43){C=C+ -6|0;break}else{C=c[224+(C+ -30<<2)>>2]|0;break}}else C=(C|0)>51?51:C;while(0);C=B+C|0}B=(c[H+52>>2]|0)+j|0;F=B+ -5|0;B=1<<B+ -6;C=d[216+(d[280+C>>0]|0)>>0]<<d[360+C>>0];if((a[H+634>>0]|0)!=0?!((G|0)!=0&(j|0)>2):0){I=c[E>>2]|0;I=(a[I+68>>0]|0)==0?H+635|0:I+69|0;H=((c[p+31244>>2]|0)!=1?3:0)+l|0;E=I+((j+ -2|0)*384|0)+(H<<6)|0;if((j|0)>3)ka=a[I+((j+ -4|0)*6|0)+H+1536>>0]|0;else ka=16}else{ka=16;E=0}}else{B=0;ka=0;C=0;E=0;F=0;G=0}K=(j<<1)+ -1|0;if(A){H=(j*3|0)+ -6+(j+ -1>>2)|0;J=j+1>>2}else{H=15;J=j+ -2|0}if((K|0)>0){L=H+52|0;I=0;while(1){Na=c[x>>2]|0;M=I+1|0;if(!(vb(Na+224|0,Na+(L+(I>>J))|0)|0))break;if((M|0)<(K|0))I=M;else{I=M;break}}M=H+70|0;H=0;while(1){Na=c[x>>2]|0;L=H+1|0;if(!(vb(Na+224|0,Na+(M+(H>>J))|0)|0))break;if((L|0)<(K|0))H=L;else{H=L;break}}if((I|0)>3){J=(I>>1)+ -1|0;L=xb((c[x>>2]|0)+224|0)|0;if((J|0)>1){K=1;do{L=xb((c[x>>2]|0)+224|0)|0|L<<1;K=K+1|0}while((K|0)!=(J|0))}I=L+((I&1|2)<<J)|0}if((H|0)>3){K=(H>>1)+ -1|0;L=xb((c[x>>2]|0)+224|0)|0;if((K|0)>1){J=1;do{L=xb((c[x>>2]|0)+224|0)|0|L<<1;J=J+1|0}while((J|0)!=(K|0))}J=I;M=L+((H&1|2)<<K)|0}else{J=I;M=H}}else{J=0;M=0}do if((k|0)!=2){N=J>>2;P=M>>2;if((k|0)==1){I=J;H=M;Q=d[584+(M<<3)+J>>0]|0;L=536;K=552;M=544;J=568;break}else if(k){K=J;L=M;v=49;break}Q=d[(J&3)+(440+((M&3)<<2))>>0]|0;if((T|0)==8){I=J;H=M;Q=(d[464+(P<<1)+N>>0]<<4)+Q|0;L=544;K=32;M=536;J=48;break}else if((T|0)==16){I=J;H=M;Q=(d[440+(P<<2)+N>>0]<<4)+Q|0;L=32;K=32;M=48;J=48;break}else if((T|0)==4){I=J;H=M;L=456;K=32;M=456;J=48;break}else{I=J;H=M;Q=(d[472+(P<<3)+N>>0]<<4)+Q|0;L=64;K=32;M=128;J=48;break}}else{K=M;L=J;N=M>>2;P=J>>2;v=49}while(0);if((v|0)==49){I=K;H=L;Q=d[584+(K<<3)+L>>0]|0;L=544;K=568;M=536;J=552}O=Q+1|0;Q=Q>>4;if((Q|0)>-1){R=(1<<j+ -2)+ -1|0;S=(l|0)>0;l=S?90:88;T=T+ -1>>2;V=U?27:0;W=(j|0)==2;U=V+3|0;X=(j|0)==3;ja=(k|0)==0?9:15;Y=A?0:27;ca=(G|0)==0;fa=A?42:43;aa=A?40:41;ga=A?2:0;k=p+31244|0;ia=y&-17;Z=f+184|0;ba=f+4|0;ea=((C|0)<0)<<31>>31;da=((B|0)<0)<<31>>31;_=(G|0)!=0&(j|0)>2;ha=(j|0)<4;oa=ka&255;la=(A&1)<<1;ka=la|1;sa=1;ma=Q;qa=0;za=16;while(1){pa=ma<<4;ya=a[L+ma>>0]|0;va=ya&255;ua=a[M+ma>>0]|0;wa=ua&255;na=(ma|0)>0;if((ma|0)<(Q|0)&na){if((va|0)<(R|0))ra=d[t+(va+1<<3)+wa>>0]|0;else ra=0;if((wa|0)<(R|0))ra=(d[wa+1+(t+(va<<3))>>0]|0)+ra|0;Aa=c[x>>2]|0;Aa=(vb(Aa+224|0,Aa+(((ra|0)>1?1:ra)+l)|0)|0)&255;a[t+(va<<3)+wa>>0]=Aa;ta=1}else{if(!((va|0)==(N|0)&(wa|0)==(P|0)))if(!(ya<<24>>24))Aa=ua<<24>>24==0&1;else Aa=0;else Aa=1;a[t+(va<<3)+wa>>0]=Aa;ta=0}pa=O-pa|0;ra=(ma|0)==(Q|0);if(ra){a[u>>0]=pa+255;xa=pa+ -2|0;pa=1}else{xa=15;pa=0}if((va|0)<(T|0))Ba=(a[t+(va+1<<3)+wa>>0]|0)!=0&1;else Ba=0;if((wa|0)<(T|0))Ba=((a[wa+1+(t+(va<<3))>>0]|0)!=0&1)<<1|Ba;do if(Aa<<24>>24!=0&(xa|0)>-1){if(!(c[(c[m>>2]|0)+13100>>2]|0))if(W){ua=648;ya=V}else v=73;else if(ca){Aa=(a[z>>0]|0)!=0;if(Aa|W){ua=Aa?712:648;ya=Aa?aa:V}else v=73}else{ua=712;ya=aa}do if((v|0)==73){v=0;Aa=(Ba<<4)+664|0;if(!A){ua=Aa;ya=V+(X?9:12)|0;break}ya=(ua|ya)<<24>>24==0?V:U;if(X){ua=Aa;ya=ya+ja|0;break}else{ua=Aa;ya=ya+21|0;break}}while(0);if((xa|0)>0){Aa=ya+92|0;do{Na=c[x>>2]|0;if(vb(Na+224|0,Na+(Aa+(d[ua+((d[J+xa>>0]<<2)+(d[K+xa>>0]|0))>>0]|0))|0)|0){a[u+(pa&255)>>0]=xa;ta=0;pa=pa+1<<24>>24}xa=xa+ -1|0}while((xa|0)>0)}if(ta){a[u+(pa&255)>>0]=0;ta=pa+1<<24>>24;break}if(c[(c[m>>2]|0)+13100>>2]|0)if(ca?(a[z>>0]|0)==0:0)v=87;else ta=fa;else v=87;if((v|0)==87){v=0;ta=(ma|0)==0?Y:ya+2|0}Na=c[x>>2]|0;if((vb(Na+224|0,Na+(ta+92)|0)|0)==1){a[u+(pa&255)>>0]=0;ta=pa+1<<24>>24}else ta=pa}else ta=pa;while(0);pa=ta&255;a:do if(ta<<24>>24){ta=na?ga:0;if(!(c[(c[m>>2]|0)+13116>>2]|0))Fa=0;else{if(ca?(a[z>>0]|0)==0:0)qa=la;else qa=ka;Fa=(d[p+qa+199>>0]|0)>>>2}ua=ta|(sa|0)==0&(ra^1)&1;Da=a[u>>0]|0;xa=Da&255;ta=pa>>>0>8?8:pa;if(!ta){ra=-1;sa=1}else{Aa=ua<<2;ra=-1;sa=1;ya=0;do{Na=sa+Aa|0;La=c[x>>2]|0;Na=(vb(La+224|0,La+((S?Na+16|0:Na)+136)|0)|0)&255;a[s+ya>>0]=Na;if(!(Na<<24>>24))sa=((sa+ -1|0)>>>0<2&1)+sa|0;else{ra=(ra|0)==-1?ya:ra;sa=0}ya=ya+1|0}while((ya|0)<(ta|0))}ya=pa+ -1|0;ta=a[u+ya>>0]|0;Aa=ta&255;do if(!(a[z>>0]|0)){if((c[k>>2]|0)==1?!((c[(c[m>>2]|0)+13104>>2]|0)==0|ca|(ia|0)!=10):0){xa=0;break}xa=(xa-Aa|0)>3&1}else xa=0;while(0);if((ra|0)!=-1){La=c[x>>2]|0;La=vb(La+224|0,La+((S?ua|4:ua)|160)|0)|0;Na=s+ra|0;a[Na>>0]=(d[Na>>0]|0)+La}ua=(xa|0)==0;if((a[(c[Z>>2]|0)+4>>0]|0)==0|ua){ya=0;xa=0;do{xa=xb((c[x>>2]|0)+224|0)|0|xa<<1;ya=ya+1|0}while((ya|0)<(pa|0));Ba=xa<<16-pa}else{xa=ya&255;if(!((ya&255)<<24>>24))Aa=0;else{ya=0;Aa=0;do{Aa=xb((c[x>>2]|0)+224|0)|0|Aa<<1;ya=ya+1|0}while((ya|0)<(xa|0))}Ba=Aa<<17-pa}va=va<<2;xa=wa<<2;wa=p+qa+199|0;ya=0;Ga=0;Ca=za;Ea=0;while(1){za=Da&255;Aa=(d[K+za>>0]|0)+va|0;za=(d[J+za>>0]|0)+xa|0;b:do if((ya|0)<8){Ha=(d[s+ya>>0]|0)+1|0;Na=(ya|0)==(ra|0);if((Ha|0)==((Na?3:2)|0)&0==((Na?0:0)|0))Ia=0;else{Ia=0;break}while(1){Ka=Ia+1|0;if(!(xb((c[x>>2]|0)+224|0)|0)){v=122;break}if((Ka|0)<31)Ia=Ka;else{v=120;break}}do if((v|0)==120){if((Ka|0)!=31){v=126;break}Ka=c[ba>>2]|0;c[w>>2]=31;$a(Ka,16,192,w);Ka=31;v=126}else if((v|0)==122){v=0;if((Ia|0)>=3){Ka=Ia;v=126;break}if((Fa|0)>0){Ka=0;La=0;do{La=xb((c[x>>2]|0)+224|0)|0|La<<1;Ka=Ka+1|0}while((Ka|0)!=(Fa|0))}else La=0;Ka=La+(Ia<<Fa)|0}while(0);if((v|0)==126){v=0;Ia=Ka+ -3|0;if((Ia+Fa|0)>0){La=Fa+ -3+Ka|0;Ka=0;Na=0;do{Na=xb((c[x>>2]|0)+224|0)|0|Na<<1;Ka=Ka+1|0}while((Ka|0)!=(La|0))}else Na=0;Ka=Na+((1<<Ia)+2<<Fa)|0}Ha=ue(Ka|0,((Ka|0)<0)<<31>>31|0,Ha|0,0)|0;Ia=D;La=3<<Fa;Oa=((La|0)<0)<<31>>31;Na=c[(c[m>>2]|0)+13116>>2]|0;do if((Ia|0)>(Oa|0)|(Ia|0)==(Oa|0)&Ha>>>0>La>>>0){La=Fa+1|0;if(Na){Fa=La;break}Fa=(Fa|0)>3?4:La;break b}while(0);if(!((Na|0)!=0&(Ga|0)==0))break;Ga=a[wa>>0]|0;La=(Ga&255)>>>2;if((Ka|0)>=(3<<La|0)){a[wa>>0]=Ga+1<<24>>24;Ga=1;break}if((Ka<<1|0)>=(1<<La|0)|Ga<<24>>24==0){Ga=1;break}a[wa>>0]=Ga+ -1<<24>>24;Ga=1}else{Ha=0;while(1){Ia=Ha+1|0;if(!(xb((c[x>>2]|0)+224|0)|0)){v=142;break}if((Ia|0)<31)Ha=Ia;else{v=140;break}}do if((v|0)==140){if((Ia|0)!=31){v=146;break}Ia=c[ba>>2]|0;c[w>>2]=31;$a(Ia,16,192,w);Ia=31;v=146}else if((v|0)==142){v=0;if((Ha|0)>=3){Ia=Ha;v=146;break}if((Fa|0)>0){Ia=0;Ka=0;do{Ka=xb((c[x>>2]|0)+224|0)|0|Ka<<1;Ia=Ia+1|0}while((Ia|0)!=(Fa|0))}else Ka=0;Ka=Ka+(Ha<<Fa)|0}while(0);if((v|0)==146){v=0;Ha=Ia+ -3|0;if((Ha+Fa|0)>0){Ia=Fa+ -3+Ia|0;Ka=0;La=0;do{La=xb((c[x>>2]|0)+224|0)|0|La<<1;Ka=Ka+1|0}while((Ka|0)!=(Ia|0))}else La=0;Ka=La+((1<<Ha)+2<<Fa)|0}Ha=Ka+1|0;Ia=((Ha|0)<0)<<31>>31;Na=c[(c[m>>2]|0)+13116>>2]|0;do if((Ka|0)>=(3<<Fa|0)){La=Fa+1|0;if(Na){Fa=La;break}Fa=(Fa|0)>3?4:La;break b}while(0);if(!((Na|0)!=0&(Ga|0)==0))break;La=a[wa>>0]|0;Ga=(La&255)>>>2;if((Ka|0)>=(3<<Ga|0)){a[wa>>0]=La+1<<24>>24;Ga=1;break}if((Ka<<1|0)>=(1<<Ga|0)|La<<24>>24==0){Ga=1;break}a[wa>>0]=La+ -1<<24>>24;Ga=1}while(0);do if(!((a[(c[Z>>2]|0)+4>>0]|0)==0|ua)){Ea=ue(Ha|0,Ia|0,Ea|0,0)|0;if(Da<<24>>24!=ta<<24>>24)break;Oa=(Ea&1|0)==0;Na=te(0,0,Ha|0,Ia|0)|0;Ha=Oa?Ha:Na;Ia=Oa?Ia:D}while(0);Oa=(Ba&32768|0)==0;Da=te(0,0,Ha|0,Ia|0)|0;Da=Oa?Ha:Da;Ha=Oa?Ia:D;Ba=Ba<<1&131070;Ia=Da&65535;do if(!(a[z>>0]|0)){do if(!((a[(c[m>>2]|0)+634>>0]|0)==0|_)){if(!((za|Aa|0)!=0|ha)){Ca=oa;break}if((j|0)==3)Ca=(za<<3)+Aa|0;else if((j|0)==4)Ca=(za>>>1<<3)+(Aa>>>1)|0;else if((j|0)==5)Ca=(za>>>2<<3)+(Aa>>>2)|0;else Ca=(za<<2)+Aa|0;Ca=d[E+Ca>>0]|0}while(0);Ha=Ge(Da|0,Ha|0,C|0,ea|0)|0;Ha=Ge(Ha|0,D|0,Ca|0,((Ca|0)<0)<<31>>31|0)|0;Ha=ue(Ha|0,D|0,B|0,da|0)|0;Ha=se(Ha|0,D|0,F|0)|0;Da=D;if((Da|0)<0){Ia=(Ha&-32768|0)==-32768&(Da&268435455|0)==268435455?Ha&65535:-32768;break}else{Ia=Da>>>0>0|(Da|0)==0&Ha>>>0>32767?32767:Ha&65535;break}}while(0);b[g+((za<<j)+Aa<<1)>>1]=Ia;ya=ya+1|0;if((ya|0)>=(pa|0)){za=Ca;break a}Da=a[u+ya>>0]|0}}while(0);if(na)ma=ma+ -1|0;else break}}do if(a[z>>0]|0){if((c[(c[m>>2]|0)+13104>>2]|0)!=0?(y&-17|0)==10:0)Ma[c[f+5908>>2]&7](g,j&65535,(y|0)==26&1)}else{if(G){s=c[m>>2]|0;if((c[s+13096>>2]|0)!=0&(j|0)==2?(c[p+31244>>2]|0)==1:0){t=0;do{La=g+(15-t<<1)|0;Na=b[La>>1]|0;Oa=g+(t<<1)|0;b[La>>1]=b[Oa>>1]|0;b[Oa>>1]=Na;t=t+1|0}while((t|0)!=8)}t=j&65535;Ma[c[f+5904>>2]&7](g,t,c[s+52>>2]|0);if(!(c[(c[m>>2]|0)+13104>>2]|0))break;if((c[p+31244>>2]|0)!=1)break;if((y&-17|0)!=10)break;Ma[c[f+5908>>2]&7](g,t,(y|0)==26&1);break}if(A&(c[p+31244>>2]|0)==1&(j|0)==2){Ja[c[f+5912>>2]&15](g,c[(c[m>>2]|0)+52>>2]|0);break}s=(I|0)>(H|0)?I:H;if(!s){Ja[c[f+(j+ -2<<2)+5932>>2]&15](g,c[(c[m>>2]|0)+52>>2]|0);break}t=H+4+I|0;do if((s|0)>=4){if((s|0)<8){t=(t|0)<8?t:8;break}if((s|0)<12)t=(t|0)<24?t:24}else t=(t|0)<4?t:4;while(0);Ma[c[f+(j+ -2<<2)+5916>>2]&7](g,t,c[(c[m>>2]|0)+52>>2]|0)}while(0);if(!(a[p+304>>0]|0)){Na=j+ -2|0;Na=f+(Na<<2)+5888|0;Na=c[Na>>2]|0;Oa=c[m>>2]|0;Oa=Oa+52|0;Oa=c[Oa>>2]|0;Sa[Na&15](q,g,n,Oa);i=o;return}if((r|0)<=0){Na=j+ -2|0;Na=f+(Na<<2)+5888|0;Na=c[Na>>2]|0;Oa=c[m>>2]|0;Oa=Oa+52|0;Oa=c[Oa>>2]|0;Sa[Na&15](q,g,n,Oa);i=o;return}p=c[p+284>>2]|0;s=0;do{Oa=g+(s<<1)|0;b[Oa>>1]=(($(b[h+(s<<1)>>1]|0,p)|0)>>>3)+(e[Oa>>1]|0);s=s+1|0}while((s|0)!=(r|0));Na=j+ -2|0;Na=f+(Na<<2)+5888|0;Na=c[Na>>2]|0;Oa=c[m>>2]|0;Oa=Oa+52|0;Oa=c[Oa>>2]|0;Sa[Na&15](q,g,n,Oa);i=o;return}function Wb(a){a=a|0;var b=0,e=0,f=0;b=i;f=a+16|0;e=c[f>>2]|0;c[a>>2]=(c[a>>2]|0)+ -65535+((d[e+1>>0]|0)<<1|(d[e>>0]|0)<<9);if(e>>>0>=(c[a+20>>2]|0)>>>0){i=b;return}c[f>>2]=e+2;i=b;return}function Xb(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;f=i;h=b+136|0;n=c[h>>2]|0;g=b+180|0;j=c[g>>2]|0;m=c[j+13080>>2]|0;q=(1<<m)+ -1|0;m=-1<<m-(c[(c[b+184>>2]|0)+24>>2]|0);o=m&d;p=m&e;k=c[j+13140>>2]|0;j=c[j+13064>>2]|0;l=o>>j;j=p>>j;if(!(q&d))o=0;else o=(o&q|0)!=0;if(!(q&e))p=0;else p=(p&q|0)!=0;q=n+203|0;if((a[q>>0]|0)==0?(m&(e|d)|0)!=0:0)d=c[n+276>>2]|0;else{a[q>>0]=(a[n+300>>0]|0)==0&1;d=a[b+3080>>0]|0}if(o){e=l+ -1+($(j,k)|0)|0;e=a[(c[b+7592>>2]|0)+e>>0]|0}else e=d;if(p){d=($(j+ -1|0,k)|0)+l|0;d=a[(c[b+7592>>2]|0)+d>>0]|0}b=e+1+d>>1;h=c[h>>2]|0;j=c[h+280>>2]|0;if(!j){a[h+272>>0]=b;i=f;return}g=c[(c[g>>2]|0)+13192>>2]|0;b=j+52+b+(g<<1)|0;if((b|0)>0)j=b;else j=-52-g+1+b|0;a[h+272>>0]=b-g-j+((j|0)%(g+52|0)|0);i=f;return}function Yb(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;g=i;s=c[b+136>>2]|0;q=b+3488|0;v=c[q>>2]|0;n=c[v+16>>2]|0;u=b+180|0;w=c[u>>2]|0;p=c[w+13084>>2]|0;l=c[w+13072>>2]|0;k=c[w+13156>>2]|0;m=c[w+13148>>2]|0;r=$(k,e>>p)|0;o=d>>p;j=(a[n+(r+o)>>0]|0)==0;a:do if((e|0)>0&(e&7|0)==0){if(((a[b+3030>>0]|0)==0?(c[s+31312>>2]&4|0)!=0:0)?((e|0)%(1<<c[w+13080>>2]|0)|0|0)==0:0)break;if((a[(c[b+184>>2]|0)+53>>0]|0)==0?(x=c[s+31312>>2]|0,(x&8|0)!=0):0)if(!((e|0)%(1<<c[w+13080>>2]|0)|0))break;else w=x;else w=c[s+31312>>2]|0;B=e+ -1|0;if(w&4)Jc(b,v,d,B)|0;A=1<<f;if((A|0)>0){y=$(m,B>>l)|0;x=b+7620|0;w=$(m,e>>l)|0;z=b+5820|0;v=b+7596|0;B=$(k,B>>p)|0;C=0;while(1){D=C+d|0;G=D>>p;F=D>>l;H=c[x>>2]|0;E=a[H+(F+y)>>0]|0;F=a[H+(F+w)>>0]|0;if((a[n+(G+r)>>0]|0)!=0?(a[n+(G+B)>>0]|0)!=0:0)if(!((F|E)<<24>>24))break;else E=1;else E=2;H=($(c[z>>2]|0,e)|0)+D>>2;a[(c[v>>2]|0)+H>>0]=E;C=C+4|0;if((C|0)>=(A|0))break a}Zb()}}while(0);b:do if((d|0)>0&(d&7|0)==0){if(((a[b+3030>>0]|0)==0?(c[s+31312>>2]&1|0)!=0:0)?((d|0)%(1<<c[(c[u>>2]|0)+13080>>2]|0)|0|0)==0:0)break;if((a[(c[b+184>>2]|0)+53>>0]|0)==0?(t=c[s+31312>>2]|0,(t&2|0)!=0):0){if(!((d|0)%(1<<c[(c[u>>2]|0)+13080>>2]|0)|0))break}else t=c[s+31312>>2]|0;if(!(t&1))r=d+ -1|0;else{r=d+ -1|0;Jc(b,c[q>>2]|0,r,e)|0}q=r>>p;v=r>>l;u=d>>l;t=1<<f;if((t|0)>0){r=b+7620|0;s=b+5820|0;w=b+7600|0;b=0;while(1){x=b+e|0;H=$(x>>p,k)|0;y=$(x>>l,m)|0;G=c[r>>2]|0;z=a[G+(y+v)>>0]|0;y=a[G+(y+u)>>0]|0;if((a[n+(H+o)>>0]|0)!=0?(a[n+(H+q)>>0]|0)!=0:0)if(!((y|z)<<24>>24))break;else y=1;else y=2;H=($(c[s>>2]|0,x)|0)+d>>2;a[(c[w>>2]|0)+H>>0]=y;b=b+4|0;if((b|0)>=(t|0))break b}Zb()}}while(0);if((p|0)>=(f|0)|j){i=g;return}j=1<<f;k=(j|0)>8;if(k)Zb();if((j|0)<=0){i=g;return}if(k)Zb();else h=0;do h=h+4|0;while((h|0)<(j|0));i=g;return}function Zb(){ua()}function _b(e,f,g,h){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,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,aa=0,ba=0,ca=0,da=0,ea=0;j=i;i=i+32|0;o=j+8|0;x=j;n=j+18|0;s=j+16|0;l=e+180|0;K=c[l>>2]|0;v=c[K+13120>>2]|0;k=(v-h|0)<=(f|0);b[n>>1]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S)|0;a[s>>0]=cc(e,U,R)|0;a[B>>0]=cc(e,U,S)|0;Pa[c[A>>2]&3](W,X,o,n,s,r);break}else{Pa[c[z>>2]&3](W,X,o,n,s,r);break}}while(0);U=U+O|0}while((U|0)<(t|0))}if(R){V=t-((t|0)==(c[(c[l>>2]|0)+13120>>2]|0)?0:O)|0;if((N|0)<(V|0)){U=R+ -1|0;T=N;do{X=$(c[G>>2]|0,R)|0;ea=c[F>>2]|0;S=T+P|0;Y=(a[ea+(X+T>>2)>>0]|0)==2;X=(a[ea+(X+S>>2)>>0]|0)==2;do if(Y|X){if(Y){ea=c[l>>2]|0;da=c[ea+13064>>2]|0;Z=T>>da;ea=c[ea+13140>>2]|0;ba=($(U>>da,ea)|0)+Z|0;ca=c[w>>2]|0;Z=(a[ca+ba>>0]|0)+1+(a[ca+(($(R>>da,ea)|0)+Z)>>0]|0)>>1}else Z=0;if(X){ea=c[l>>2]|0;da=c[ea+13064>>2]|0;W=S>>da;ea=c[ea+13140>>2]|0;ba=($(U>>da,ea)|0)+W|0;ca=c[w>>2]|0;W=(a[ca+ba>>0]|0)+1+(a[ca+(($(R>>da,ea)|0)+W)>>0]|0)>>1}else W=0;if(Y)Y=dc(e,Z,J,D)|0;else Y=0;c[o>>2]=Y;if(X)W=dc(e,W,J,m)|0;else W=0;c[y>>2]=W;ea=c[l>>2]|0;da=c[x>>2]|0;X=c[da+(J<<2)+32>>2]|0;W=$(X,R>>c[ea+13184>>2])|0;W=(c[da+(J<<2)>>2]|0)+((T>>c[ea+13172>>2]<<c[ea+56>>2])+W)|0;if(p){a[n>>0]=cc(e,T,U)|0;a[C>>0]=cc(e,S,U)|0;a[s>>0]=cc(e,T,R)|0;a[B>>0]=cc(e,S,R)|0;Pa[c[E>>2]&3](W,X,o,n,s,r);break}else{Pa[c[H>>2]&3](W,X,o,n,s,r);break}}while(0);T=T+O|0}while((T|0)<(V|0));T=D}else T=D}R=R+K|0}while((R|0)<(u|0))}J=J+1|0;K=c[l>>2]|0}while((J|0)!=3)}if(!(a[K+12941>>0]|0)){if((a[e+140>>0]&1)==0|k^1){i=j;return}i=j;return}n=(c[K+13124>>2]|0)-h|0;l=(g|0)==0;m=(f|0)==0;if(!(l|m))$b(e,f-h|0,g-h|0);n=(n|0)>(g|0);if(!(m|n))$b(e,f-h|0,g);k=k^1;!(l|k)?($b(e,f,g-h|0),(a[e+140>>0]&1)!=0):0;if(n|k){i=j;return}$b(e,f,g);if(!(a[e+140>>0]&1)){i=j;return}i=j;return}function $b(e,f,g){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;t=i;i=i+32|0;h=t+8|0;s=t+26|0;r=t+24|0;p=t;q=e+180|0;G=c[q>>2]|0;j=c[G+13080>>2]|0;o=f>>j;j=g>>j;z=G+13128|0;m=($(j,c[z>>2]|0)|0)+o|0;J=c[e+184>>2]|0;I=J+1668|0;K=c[(c[I>>2]|0)+(m<<2)>>2]|0;k=e+3472|0;l=c[k>>2]|0;n=l+(m*148|0)|0;b[s>>1]=0;b[r>>1]=0;c[p>>2]=0;y=($(c[z>>2]|0,j)|0)+o|0;y=a[(c[e+7628>>2]|0)+y>>0]|0;if((a[J+42>>0]|0)!=0?(a[J+53>>0]|0)==0:0){L=1;F=1}else{L=0;F=y<<24>>24==0&1}A=(o|0)==0;c[h>>2]=A&1;E=(j|0)==0;w=h+4|0;c[w>>2]=E&1;C=(o|0)==((c[z>>2]|0)+ -1|0);u=h+8|0;c[u>>2]=C&1;B=(j|0)==((c[G+13132>>2]|0)+ -1|0);v=h+12|0;c[v>>2]=B&1;if(F<<24>>24){if(A)D=0;else{if(L){D=c[J+1676>>2]|0;D=(c[D+(K<<2)>>2]|0)!=(c[D+(c[(c[I>>2]|0)+(m+ -1<<2)>>2]<<2)>>2]|0)&1}else D=0;if(y<<24>>24==0?(W=$(c[z>>2]|0,j)|0,V=c[e+7604>>2]|0,(c[V+(W+o<<2)>>2]|0)!=(c[V+(o+ -1+W<<2)>>2]|0)):0)H=1;else H=D;a[s>>0]=H}if(C)H=0;else{if(L){H=c[J+1676>>2]|0;H=(c[H+(K<<2)>>2]|0)!=(c[H+(c[(c[I>>2]|0)+(m+1<<2)>>2]<<2)>>2]|0)&1}else H=0;if(y<<24>>24==0?(W=$(c[z>>2]|0,j)|0,V=c[e+7604>>2]|0,(c[V+(W+o<<2)>>2]|0)!=(c[V+(o+1+W<<2)>>2]|0)):0)M=1;else M=H;a[s+1>>0]=M}if(E)M=0;else{if(L){M=c[J+1676>>2]|0;M=(c[M+(K<<2)>>2]|0)!=(c[M+(c[(c[I>>2]|0)+(m-(c[z>>2]|0)<<2)>>2]<<2)>>2]|0)&1}else M=0;if(y<<24>>24==0?(W=c[z>>2]|0,U=($(W,j)|0)+o|0,V=c[e+7604>>2]|0,(c[V+(U<<2)>>2]|0)!=(c[V+(($(W,j+ -1|0)|0)+o<<2)>>2]|0)):0)N=1;else N=M;a[r>>0]=N}if(B)I=0;else{if(L){W=c[J+1676>>2]|0;I=(c[W+(K<<2)>>2]|0)!=(c[W+(c[(c[I>>2]|0)+((c[z>>2]|0)+m<<2)>>2]<<2)>>2]|0)&1}else I=0;if(y<<24>>24==0?(W=c[z>>2]|0,U=($(W,j)|0)+o|0,V=c[e+7604>>2]|0,(c[V+(U<<2)>>2]|0)!=(c[V+(($(W,j+1|0)|0)+o<<2)>>2]|0)):0)J=1;else J=I;a[r+1>>0]=J}if(!A)if(E)x=47;else{if(!(y<<24>>24)){W=c[z>>2]|0;U=($(W,j)|0)+o|0;V=c[e+7604>>2]|0;if(D<<24>>24==0?(c[V+(U<<2)>>2]|0)==(c[V+(o+ -1+($(W,j+ -1|0)|0)<<2)>>2]|0):0)x=38;else J=1}else if(!(D<<24>>24))x=38;else J=1;if((x|0)==38)J=M<<24>>24!=0&1;a[p>>0]=J;x=40}else x=40;if((x|0)==40)if(!E){if(!C){if(!(y<<24>>24)){W=c[z>>2]|0;U=($(W,j)|0)+o|0;V=c[e+7604>>2]|0;if(H<<24>>24==0?(c[V+(U<<2)>>2]|0)==(c[V+(o+1+($(W,j+ -1|0)|0)<<2)>>2]|0):0)x=45;else E=1}else if(!(H<<24>>24))x=45;else E=1;if((x|0)==45)E=M<<24>>24!=0&1;a[p+1>>0]=E;x=47}}else x=47;if((x|0)==47?!(C|B):0){if(!(y<<24>>24)){W=c[z>>2]|0;U=($(W,j)|0)+o|0;V=c[e+7604>>2]|0;if(H<<24>>24==0?(c[V+(U<<2)>>2]|0)==(c[V+(o+1+($(W,j+1|0)|0)<<2)>>2]|0):0)x=51;else C=1}else if(!(H<<24>>24))x=51;else C=1;if((x|0)==51)C=I<<24>>24!=0&1;a[p+2>>0]=C}if(!(A|B)){if(!(y<<24>>24)){W=c[z>>2]|0;U=($(W,j)|0)+o|0;V=c[e+7604>>2]|0;if(D<<24>>24==0?(c[V+(U<<2)>>2]|0)==(c[V+(o+ -1+($(W,j+1|0)|0)<<2)>>2]|0):0)x=57;else y=1}else if(!(D<<24>>24))x=57;else y=1;if((x|0)==57)y=I<<24>>24!=0&1;a[p+3>>0]=y}}B=(c[G+4>>2]|0)!=0?3:1;D=e+160|0;E=e+164|0;A=e+5948|0;z=o+ -1|0;y=j+ -1|0;x=o+1|0;C=j+1|0;F=e+((F&255)<<2)+5952|0;U=G;M=0;while(1){T=c[U+(M<<2)+13168>>2]|0;I=f>>T;O=c[U+(M<<2)+13180>>2]|0;R=g>>O;P=c[D>>2]|0;L=c[P+(M<<2)+32>>2]|0;Q=c[E>>2]|0;N=c[Q+(M<<2)+32>>2]|0;J=1<<c[U+13080>>2];H=J>>T;J=J>>O;T=(c[U+13120>>2]>>T)-I|0;H=(H|0)>(T|0)?T:H;O=(c[U+13124>>2]>>O)-R|0;J=(J|0)>(O|0)?O:J;O=$(L,R)|0;T=c[U+56>>2]|0;I=I<<T;O=I+O|0;P=c[P+(M<<2)>>2]|0;G=P+O|0;R=I+($(N,R)|0)|0;Q=c[Q+(M<<2)>>2]|0;I=Q+R|0;K=l+(m*148|0)+M+142|0;S=d[K>>0]|0;if((S|0)==1){O=H<<T;if((J|0)>0){P=I;R=0;Q=G;while(1){xe(P|0,Q|0,O|0)|0;R=R+1|0;if((R|0)==(J|0))break;else{P=P+N|0;Q=Q+L|0}}U=c[q>>2]|0}Fa[c[A>>2]&1](G,I,L,N,n,h,H,J,M,c[U+52>>2]|0);bc(e,f,g,H,J,M);a[K>>0]=3}else if((S|0)==2){V=(c[h>>2]|0)==0;if(V){S=z+($(c[U+13128>>2]|0,j)|0)|0;S=(a[(c[k>>2]|0)+(S*148|0)+M+142>>0]|0)!=3&1}else S=0;do if(!(c[w>>2]|0)){if(V){V=z+($(c[U+13128>>2]|0,y)|0)|0;V=(a[(c[k>>2]|0)+(V*148|0)+M+142>>0]|0)!=3&1}else V=0;U=c[U+13128>>2]|0;if(!(c[u>>2]|0)){W=x+($(U,y)|0)|0;W=(a[(c[k>>2]|0)+(W*148|0)+M+142>>0]|0)!=3&1}else W=0;U=($(U,y)|0)+o|0;if(!(a[(c[k>>2]|0)+(U*148|0)+M+142>>0]|0)){V=V&255;U=V<<T;xe(Q+(R-N-U)|0,P+(O-L-U)|0,V+H+(W&255)<<T|0)|0;break}if(V<<24>>24){V=1<<T;xe(Q+(R-N-V)|0,P+(O-L-V)|0,V|0)|0}if(W<<24>>24){W=c[(c[q>>2]|0)+56>>2]|0;V=H<<W;xe(Q+(R-N+V)|0,P+(O-L+V)|0,1<<W|0)|0}}while(0);if(!(c[v>>2]|0)){T=c[q>>2]|0;if(!(c[h>>2]|0)){U=z+($(c[T+13128>>2]|0,C)|0)|0;U=(a[(c[k>>2]|0)+(U*148|0)+M+142>>0]|0)!=3&1}else U=0;X=($(J,N)|0)+R|0;W=c[T+56>>2]|0;T=U<<W;V=H+1|0;xe(Q+(X-T)|0,P+(($(J,L)|0)+O-T)|0,V+U<<W|0)|0}else V=H+1|0;U=c[q>>2]|0;X=c[U+56>>2]|0;T=S<<X;S=V+S<<X;if((J|0)>0){Q=Q+(R-T)|0;R=0;O=P+(O-T)|0;while(1){xe(Q|0,O|0,S|0)|0;R=R+1|0;if((R|0)==(J|0))break;else{Q=Q+N|0;O=O+L|0}}U=c[q>>2]|0}Ha[c[F>>2]&3](G,I,L,N,n,h,H,J,M,s,r,p,c[U+52>>2]|0);bc(e,f,g,H,J,M);a[K>>0]=3}M=M+1|0;if((M|0)>=(B|0))break;U=c[q>>2]|0}i=t;return}function ac(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;h=c[a+180>>2]|0;k=((c[h+13120>>2]|0)-e|0)>(b|0);h=((c[h+13124>>2]|0)-e|0)>(d|0);j=(d|0)==0;g=(b|0)==0;if(!(j|g))_b(a,b-e|0,d-e|0,e);if(!(j|k))_b(a,b,d-e|0,e);if(g|h){i=f;return}_b(a,b-e|0,d,e);i=f;return}function bc(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,A=0;o=i;s=c[b+180>>2]|0;if(!(a[(c[b+184>>2]|0)+40>>0]|0)){if(!(a[s+13056>>0]|0)){i=o;return}if(!(c[s+68>>2]|0)){i=o;return}}p=b+164|0;j=c[(c[p>>2]|0)+(h<<2)+32>>2]|0;k=b+160|0;q=c[(c[k>>2]|0)+(h<<2)+32>>2]|0;l=b+180|0;A=c[s+13084>>2]|0;v=1<<A;r=c[s+(h<<2)+13168>>2]|0;t=c[s+(h<<2)+13180>>2]|0;s=d>>A;u=e>>A;f=f+d>>A;g=g+e>>A;d=v>>r;if((u|0)>=(g|0)){i=o;return}e=(s|0)<(f|0);b=b+7624|0;v=v>>t;w=(v|0)>0;do{if(e){x=s;do{y=c[l>>2]|0;A=($(c[y+13156>>2]|0,u)|0)+x|0;if((a[(c[b>>2]|0)+A>>0]|0)!=0?(n=c[y+13084>>2]|0,m=u<<n>>t,n=x<<n>>r<<c[y+56>>2],w):0){z=$(m,j)|0;y=$(m,q)|0;z=(c[(c[p>>2]|0)+(h<<2)>>2]|0)+(z+n)|0;A=0;y=(c[(c[k>>2]|0)+(h<<2)>>2]|0)+(y+n)|0;while(1){xe(y|0,z|0,d|0)|0;A=A+1|0;if((A|0)==(v|0))break;else{z=z+j|0;y=y+q|0}}}x=x+1|0}while((x|0)!=(f|0))}u=u+1|0}while((u|0)!=(g|0));i=o;return}function cc(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0;f=i;g=c[a+180>>2]|0;h=c[g+13084>>2]|0;if((e|b|0)<0){e=2;i=f;return e|0}b=b>>h;e=e>>h;h=c[g+13156>>2]|0;if((b|0)>=(h|0)){e=2;i=f;return e|0}if((e|0)>=(c[g+13160>>2]|0)){e=2;i=f;return e|0}e=($(h,e)|0)+b|0;e=d[(c[a+7624>>2]|0)+e>>0]|0;i=f;return e|0}function dc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;h=c[b+184>>2]|0;d=(c[((e|0)==1?h+28|0:h+32|0)>>2]|0)+d|0;if((d|0)<0)d=0;else d=(d|0)>57?57:d;do if((c[(c[b+180>>2]|0)+4>>2]|0)==1){if((d|0)>=30)if((d|0)>43){d=d+ -6|0;break}else{d=c[1440+(d+ -30<<2)>>2]|0;break}}else if((d|0)<0)d=0;else d=(d|0)>51?51:d;while(0);f=f+2+d|0;if((f|0)<0){h=0;h=1384+h|0;h=a[h>>0]|0;h=h&255;i=g;return h|0}h=(f|0)>53?53:f;h=1384+h|0;h=a[h>>0]|0;h=h&255;i=g;return h|0}function ec(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;g=i;k=b+7652|0;c[k>>2]=0;a:do if((e|0)>1){m=0;while(1){if(!(a[d+m>>0]|0)){if((m|0)>0){l=m+ -1|0;l=(a[d+l>>0]|0)==0?l:m}else l=m;m=l+2|0;if(((m|0)<(e|0)?(a[d+(l+1)>>0]|0)==0:0)?(j=a[d+m>>0]|0,(j&255)<4):0)break}else l=m;m=l+2|0;if((l+3|0)>=(e|0))break a}m=l;e=j<<24>>24==3?e:l}else m=0;while(0);if((m|0)>=(e+ -1|0)){c[f+12>>2]=d;c[f+8>>2]=e;q=e;i=g;return q|0}Ud(f,f+4|0,e+32|0);j=c[f>>2]|0;if(!j){q=-12;i=g;return q|0}xe(j|0,d|0,m|0)|0;o=m+2|0;b:do if((o|0)<(e|0)){l=b+7660|0;b=b+7656|0;n=m;c:while(1){p=d+o|0;q=a[p>>0]|0;do if((q&255)<=3){p=a[d+m>>0]|0;if(!(p<<24>>24))if(!(a[d+(m+1)>>0]|0)){if(q<<24>>24!=3){e=m;break b}o=n+1|0;a[j+n>>0]=0;n=n+2|0;a[j+o>>0]=0;m=m+3|0;q=(c[k>>2]|0)+1|0;c[k>>2]=q;p=c[l>>2]|0;if((p|0)<(q|0)){p=p<<1;c[l>>2]=p;Sd(b,p,4)|0;p=c[b>>2]|0;if(!p){f=-12;break c}}else{p=c[b>>2]|0;if(!p)break}c[p+((c[k>>2]|0)+ -1<<2)>>2]=o}else{p=0;h=26}else h=26}else{a[j+n>>0]=a[d+m>>0]|0;a[j+(n+1)>>0]=a[d+(m+1)>>0]|0;p=a[p>>0]|0;n=n+2|0;m=o;h=26}while(0);if((h|0)==26){h=0;a[j+n>>0]=p;n=n+1|0;m=m+1|0}o=m+2|0;if((o|0)>=(e|0)){h=15;break b}}i=g;return f|0}else{n=m;h=15}while(0);if((h|0)==15)if((m|0)<(e|0)){h=e+n|0;k=m;while(1){a[j+n>>0]=a[d+k>>0]|0;k=k+1|0;if((k|0)==(e|0))break;else n=n+1|0}n=h-m|0}else e=m;h=j+n+0|0;d=h+32|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(d|0));c[f+12>>2]=j;c[f+8>>2]=n;q=e;i=g;return q|0}function fc(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;f=b+60|0;e=c[f>>2]|0;Md();Oc();f=c[f>>2]|0;c[f+4>>2]=b;g=Td(31328)|0;c[f+136>>2]=g;a:do if((((g|0)!=0?(c[f+72>>2]=g,c[f+8>>2]=f,j=Nd(199)|0,c[f+152>>2]=j,(j|0)!=0):0)?(j=fe()|0,c[f+168>>2]=j,(j|0)!=0):0)?(j=fe()|0,c[f+172>>2]=j,(j|0)!=0):0){g=f+3492|0;h=0;do{j=fe()|0;c[g+(h*72|0)>>2]=j;if(!j)break a;c[g+(h*72|0)+4>>2]=j;h=h+1|0}while(h>>>0<32);c[f+5816>>2]=2147483647;a[f+7745>>0]=1;c[f+5808>>2]=0;c[e+7644>>2]=0;c[e+7796>>2]=0;f=b+808|0;if(!(c[f>>2]&2))a[e+141>>0]=1;else a[e+141>>0]=c[b+800>>2];if((c[f>>2]&1|0)!=0?(c[b+800>>2]|0)>1:0){a[e+140>>0]=1;j=0;i=d;return j|0}a[e+140>>0]=2;j=0;i=d;return j|0}while(0);hc(b)|0;j=-12;i=d;return j|0}function gc(f,g,h,j){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,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,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,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,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,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0;k=i;i=i+16|0;m=k;p=k+8|0;n=c[f+60>>2]|0;l=j+28|0;I=c[l>>2]|0;if(!I){l=Nc(n,g,1)|0;if((l|0)<0){ib=l;i=k;return ib|0}c[h>>2]=l;ib=0;i=k;return ib|0}o=n+3488|0;c[o>>2]=0;H=c[j+24>>2]|0;c[o>>2]=0;A=n+5808|0;q=n+5812|0;c[q>>2]=c[A>>2];c[A>>2]=0;j=n+7684|0;c[j>>2]=0;a:do if((I|0)>3){B=n+7746|0;F=n+7688|0;u=n+7680|0;w=n+7664|0;E=n+7672|0;s=n+7668|0;G=n+7660|0;t=n+7656|0;v=n+7652|0;y=n+136|0;x=n+3480|0;C=n+7756|0;b:while(1){z=(a[B>>0]|0)==0;if(z){while(1){J=H+1|0;if(((a[H>>0]|0)==0?(a[J>>0]|0)==0:0)?(a[H+2>>0]|0)==1:0)break;if((I|0)<5){A=19;break b}H=J;I=I+ -1|0}H=H+3|0;K=0;I=I+ -3|0}else{J=c[C>>2]|0;if((J|0)>0){L=0;K=0;do{L=d[H+K>>0]|L<<8;K=K+1|0}while((K|0)!=(J|0));K=L}else K=0;I=I-J|0;if((K|0)>(I|0)){A=13;break}H=H+J|0}z=z?I:K;J=c[F>>2]|0;L=c[j>>2]|0;if((J|0)<(L+1|0)){J=J+1|0;K=Rd(c[u>>2]|0,J,16)|0;if(!K){z=-12;break a}c[u>>2]=K;L=c[F>>2]|0;ve(K+(L<<4)|0,0,J-L<<4|0)|0;Sd(w,J,4)|0;Sd(E,J,4)|0;Sd(s,J,4)|0;K=c[E>>2]|0;c[K+(c[F>>2]<<2)>>2]=1024;L=c[F>>2]|0;K=c[K+(L<<2)>>2]|0;if(K>>>0<536870911){K=Nd(K<<2)|0;L=c[F>>2]|0}else K=0;c[(c[s>>2]|0)+(L<<2)>>2]=K;c[F>>2]=J;L=c[j>>2]|0}c[G>>2]=c[(c[E>>2]|0)+(L<<2)>>2];c[t>>2]=c[(c[s>>2]|0)+(L<<2)>>2];K=c[u>>2]|0;J=ec(n,H,z,K+(L<<4)|0)|0;c[(c[w>>2]|0)+(c[j>>2]<<2)>>2]=c[v>>2];c[(c[E>>2]|0)+(c[j>>2]<<2)>>2]=c[G>>2];hb=c[t>>2]|0;ib=c[j>>2]|0;c[j>>2]=ib+1;c[(c[s>>2]|0)+(ib<<2)>>2]=hb;if((J|0)<0){z=J;break a}hb=c[y>>2]|0;fb=c[K+(L<<4)+12>>2]|0;gb=c[K+(L<<4)+8>>2]|0;gb=gb>>>0>268435455?-8:gb<<3;ib=gb>>>0>2147483639|(fb|0)==0;gb=ib?0:gb;fb=ib?0:fb;z=ib?-1094995529:0;c[hb+204>>2]=fb;c[hb+216>>2]=gb;c[hb+220>>2]=gb+8;c[hb+208>>2]=fb+(gb>>3);c[hb+212>>2]=0;if(ib)break a;kc(n)|0;if(((c[x>>2]|0)+ -36|0)>>>0<2)c[A>>2]=1;I=I-J|0;if((I|0)<=3){A=6;break}else H=H+J|0}if((A|0)==6){if((c[j>>2]|0)<=0)break;B=n+4|0;Fa=n+2416|0;Y=n+3014|0;X=n+2396|0;Ea=n+184|0;wa=n+180|0;La=n+2417|0;Ma=n+2400|0;Qa=n+2404|0;Ra=n+5804|0;Ia=n+156|0;ra=n+2408|0;N=n+2418|0;I=n+2588|0;va=n+5796|0;G=n+3484|0;J=n+5800|0;H=n+3024|0;U=n+3025|0;K=n+3026|0;M=n+3020|0;L=n+3016|0;Oa=n+3036|0;P=n+3040|0;O=n+3044|0;Q=n+3048|0;V=n+3029|0;S=n+3052|0;R=n+3056|0;W=n+3030|0;T=n+2419|0;Pa=n+3076|0;Ja=n+3080|0;Na=n+3468|0;Ga=n+5816|0;oa=n+5828|0;qa=n+7692|0;Ha=m+4|0;xa=n+7596|0;za=n+5820|0;ya=n+5824|0;Aa=n+7600|0;Ba=n+7620|0;Ca=n+7624|0;Da=n+7604|0;sa=n+160|0;pa=n+140|0;ta=n+172|0;la=n+3064|0;ma=n+3068|0;na=n+3072|0;E=n+141|0;F=n+7644|0;Z=n+3472|0;_=n+3476|0;aa=n+7608|0;ba=n+7612|0;ca=n+7616|0;ea=n+7628|0;da=n+7592|0;ga=n+1408|0;fa=n+1412|0;ia=n+5832|0;ha=n+5884|0;Sa=n+176|0;Ta=n+7640|0;ka=n+168|0;ja=n+164|0;C=0;c:while(1){c[v>>2]=c[(c[w>>2]|0)+(C<<2)>>2];c[t>>2]=c[(c[s>>2]|0)+(C<<2)>>2];hb=c[u>>2]|0;gb=c[hb+(C<<4)+12>>2]|0;hb=c[hb+(C<<4)+8>>2]|0;ib=c[y>>2]|0;hb=hb>>>0>268435455?-8:hb<<3;Ua=hb>>>0>2147483639|(gb|0)==0;hb=Ua?0:hb;gb=Ua?0:gb;c[ib+204>>2]=gb;c[ib+216>>2]=hb;c[ib+220>>2]=hb+8;c[ib+208>>2]=gb+(hb>>3);c[ib+212>>2]=0;d:do if(Ua){r=Ua?-1094995529:0;A=247}else{Ua=kc(n)|0;e:do if((Ua|0)<0){ib=c[B>>2]|0;c[m>>2]=c[x>>2];$a(ib,16,1728,m)}else{if(!Ua)break d;Ya=c[x>>2]|0;switch(Ya|0){case 48:{Ua=pd(n)|0;if((Ua|0)<0)break e;else break d};case 9:case 8:case 7:case 6:case 21:case 20:case 19:case 18:case 17:case 16:case 5:case 4:case 3:case 2:case 0:case 1:{Va=c[y>>2]|0;Xa=Va+204|0;Ua=Va+212|0;hb=c[Ua>>2]|0;ib=d[(c[Xa>>2]|0)+(hb>>>3)>>0]<<(hb&7)>>>7&1;Wa=Va+220|0;c[Ua>>2]=((hb|0)<(c[Wa>>2]|0)&1)+hb;ib=ib&255;a[Fa>>0]=ib;if(!((Ya+ -16|0)>>>0>4|ib<<24>>24==0)?(b[Ta>>1]=(e[Ta>>1]|0)+1&255,c[Ga>>2]=2147483647,(Ya+ -19|0)>>>0<2):0){Kc(n);Ya=c[x>>2]|0}a[Y>>0]=0;if((Ya+ -16|0)>>>0<8){hb=c[Ua>>2]|0;ib=d[(c[Xa>>2]|0)+(hb>>>3)>>0]<<(hb&7)>>>7&1;c[Ua>>2]=((hb|0)<(c[Wa>>2]|0)&1)+hb;a[Y>>0]=ib}Za=qc(Xa)|0;c[X>>2]=Za;if(Za>>>0>255){A=46;break c}Ya=c[n+(Za<<2)+380>>2]|0;if(!Ya){A=46;break c}if(!(a[Fa>>0]|0)){ab=c[Ya+4>>2]|0;if((c[Ea>>2]|0)!=(ab|0)){A=50;break c}}else ab=c[Ya+4>>2]|0;c[Ea>>2]=ab;_a=c[x>>2]|0;Za=(_a|0)==21;if(Za?(c[q>>2]|0)==1:0)a[Y>>0]=1;Ya=c[wa>>2]|0;ab=c[(c[n+(c[ab>>2]<<2)+252>>2]|0)+4>>2]|0;if((Ya|0)!=(ab|0)){c[wa>>2]=ab;f:do if(Ya){if((_a+ -16|0)>>>0>7|Za)break;do if((c[ab+13120>>2]|0)==(c[Ya+13120>>2]|0)){if((c[ab+13124>>2]|0)!=(c[Ya+13124>>2]|0))break;if((c[ab+76+(((c[ab+72>>2]|0)+ -1|0)*12|0)>>2]|0)==(c[Ya+(((c[Ya+72>>2]|0)+ -1|0)*12|0)+76>>2]|0))break f}while(0);a[Y>>0]=0}while(0);Kc(n);Ya=c[wa>>2]|0;jc(n);cb=c[Ya+13064>>2]|0;_a=Ya+13120|0;hb=c[_a>>2]|0;ab=Ya+13124|0;ib=c[ab>>2]|0;cb=$((ib>>cb)+1|0,(hb>>cb)+1|0)|0;Za=$(c[Ya+13132>>2]|0,c[Ya+13128>>2]|0)|0;eb=Ya+13156|0;db=Ya+13160|0;bb=$(c[db>>2]|0,c[eb>>2]|0)|0;c[za>>2]=(hb>>2)+1;c[ya>>2]=(ib>>2)+1;if(Za>>>0>=14510024){c[Z>>2]=0;if(Za>>>0>=268435455){A=64;break c}}else c[Z>>2]=Td(Za*148|0)|0;ib=Td(Za<<3)|0;c[_>>2]=ib;if((c[Z>>2]|0)==0|(ib|0)==0){A=104;break c}fb=Ya+13144|0;gb=Ya+13140|0;c[aa>>2]=Nd($(c[gb>>2]|0,c[fb>>2]|0)|0)|0;fb=c[fb>>2]|0;gb=c[gb>>2]|0;if(!gb){A=68;break c}if((2147483647/(gb>>>0)|0)>>>0<=fb>>>0){A=68;break c}ib=Nd($(gb,fb)|0)|0;c[ba>>2]=ib;if((c[aa>>2]|0)==0|(ib|0)==0){A=104;break c}gb=c[Ya+13148>>2]|0;fb=c[Ya+13152>>2]|0;do if(!fb)fb=0;else{if((2147483647/(fb>>>0)|0)>>>0<=gb>>>0){fb=0;break}fb=Nd($(fb,gb)|0)|0}while(0);c[Ba>>2]=fb;c[ca>>2]=Td(bb)|0;db=Nd($((c[db>>2]|0)+1|0,(c[eb>>2]|0)+1|0)|0)|0;c[Ca>>2]=db;if(!(c[ca>>2]|0)){A=104;break c}if((c[Ba>>2]|0)==0|(db|0)==0){A=104;break c}c[ea>>2]=Nd(Za)|0;if(cb>>>0>=536870911){c[Da>>2]=0;if(cb>>>0>=2147483647){A=78;break c}}else c[Da>>2]=Nd(cb<<2)|0;ib=Nd(cb)|0;c[da>>2]=ib;if(!ib){A=104;break c}if(!(c[ea>>2]|0)){A=104;break c}if(!(c[Da>>2]|0)){A=104;break c}db=c[za>>2]|0;cb=c[ya>>2]|0;if(!cb){A=83;break c}if((2147483647/(cb>>>0)|0)>>>0>db>>>0){ib=Td($(cb,db)|0)|0;db=c[za>>2]|0;cb=c[ya>>2]|0;c[xa>>2]=ib;if(!cb){A=88;break c}}else c[xa>>2]=0;if((2147483647/(cb>>>0)|0)>>>0<=db>>>0){A=88;break c}ib=Td($(cb,db)|0)|0;c[Aa>>2]=ib;if((c[xa>>2]|0)==0|(ib|0)==0){A=104;break c}c[ga>>2]=$d(bb,3)|0;ib=$d(Za*392|0,3)|0;c[fa>>2]=ib;if((c[ga>>2]|0)==0|(ib|0)==0){A=104;break c}ib=c[B>>2]|0;c[ib+124>>2]=c[_a>>2];c[ib+128>>2]=c[ab>>2];c[ib+116>>2]=c[Ya+12>>2];c[ib+120>>2]=c[Ya+16>>2];c[ib+136>>2]=c[Ya+60>>2];c[ib+172>>2]=c[Ya+(((c[Ya+72>>2]|0)+ -1|0)*12|0)+80>>2];ib=Ya+160|0;c[m+0>>2]=c[ib+0>>2];c[m+4>>2]=c[ib+4>>2];if(!(c[Ya+176>>2]|0)){Za=c[B>>2]|0;c[Za+392>>2]=1}else{Za=c[B>>2]|0;c[Za+392>>2]=(c[Ya+184>>2]|0)!=0?2:1}if(!(c[Ya+188>>2]|0)){c[Za+380>>2]=2;c[Za+384>>2]=2;c[Za+388>>2]=2}else{c[Za+380>>2]=d[Ya+192>>0];c[Za+384>>2]=d[Ya+193>>0];c[Za+388>>2]=d[Ya+194>>0]}ib=Ya+52|0;rc(ia,c[ib>>2]|0);Pc(ha,c[ib>>2]|0);if(a[Ya+12941>>0]|0){he(c[ka>>2]|0);ab=c[ka>>2]|0;ib=c[B>>2]|0;Za=ab+64|0;c[Za>>2]=(c[ib+124>>2]|0)+2;bb=ab+68|0;c[bb>>2]=(c[ib+128>>2]|0)+2;if((Fd(ib,ab,1)|0)>=0){eb=c[ab>>2]|0;if(eb){_a=1<<c[Ya+56>>2];cb=ab;db=0;do{c[cb>>2]=eb+((c[ab+(db<<2)+32>>2]|0)+_a);db=db+1|0;cb=ab+(db<<2)|0;eb=c[cb>>2]|0}while((eb|0)!=0)}ib=c[B>>2]|0;c[Za>>2]=c[ib+124>>2];c[bb>>2]=c[ib+128>>2]}c[ja>>2]=c[ka>>2]}c[wa>>2]=Ya;c[Sa>>2]=c[(c[n+(c[Ya>>2]<<2)+188>>2]|0)+4>>2];b[Ta>>1]=(e[Ta>>1]|0)+1&255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[W>>0]=Ya}while(0);c[Pa>>2]=0;if(!((a[_a+42>>0]|0)==0?(a[_a+43>>0]|0)==0:0))A=174;k:do if((A|0)==174){A=0;ib=qc(Xa)|0;c[Pa>>2]=ib;if((ib|0)<=0){c[F>>2]=0;break}Ya=(qc(Xa)|0)+1|0;Za=Ya>>4;Ya=Ya&15;Qd(la);Qd(ma);Qd(na);_a=c[Pa>>2]|0;do if(_a>>>0<536870911){ib=Nd(_a<<2)|0;_a=c[Pa>>2]|0;c[la>>2]=ib;if(_a>>>0>=536870911){A=178;break}ib=Nd(_a<<2)|0;_a=c[Pa>>2]|0;c[ma>>2]=ib;if(_a>>>0>=536870911){ab=0;break}ab=Nd(_a<<2)|0}else{c[la>>2]=0;A=178}while(0);if((A|0)==178){A=0;c[ma>>2]=0;ab=0}c[na>>2]=ab;_a=c[la>>2]|0;if(!_a){A=185;break c}if((c[ma>>2]|0)==0|(ab|0)==0){A=185;break c}if((c[Pa>>2]|0)>0){cb=(Za|0)>0;bb=(Ya|0)==0;ab=32-Ya|0;db=0;do{if(cb){eb=c[Wa>>2]|0;fb=c[Xa>>2]|0;gb=c[Ua>>2]|0;hb=0;ib=0;do{jb=fb+(gb>>>3)|0;jb=(ze(d[jb>>0]|d[jb+1>>0]<<8|d[jb+2>>0]<<16|d[jb+3>>0]<<24|0)|0)<<(gb&7)>>>16;kb=gb+16|0;gb=eb>>>0>kb>>>0?kb:eb;c[Ua>>2]=gb;ib=jb|ib<<16;hb=hb+1|0}while((hb|0)!=(Za|0))}else ib=0;if(!bb){hb=c[Ua>>2]|0;jb=c[Wa>>2]|0;kb=(c[Xa>>2]|0)+(hb>>>3)|0;kb=(ze(d[kb>>0]|d[kb+1>>0]<<8|d[kb+2>>0]<<16|d[kb+3>>0]<<24|0)|0)<<(hb&7)>>>ab;hb=hb+Ya|0;c[Ua>>2]=jb>>>0>hb>>>0?hb:jb;ib=kb+(ib<<Ya)|0}c[_a+(db<<2)>>2]=ib+1;db=db+1|0}while((db|0)<(c[Pa>>2]|0))}do if((d[E>>0]|0)>1){kb=c[Ea>>2]|0;if((c[kb+48>>2]|0)<=1?(c[kb+44>>2]|0)<=1:0)break;c[F>>2]=0;a[E>>0]=1;break k}while(0);c[F>>2]=0}while(0);Ya=c[Ea>>2]|0;if(a[Ya+1628>>0]|0){Xa=qc(Xa)|0;jb=we(Xa|0,0,3)|0;hb=D;Za=c[Ua>>2]|0;kb=(c[Va+216>>2]|0)-Za|0;ib=((kb|0)<0)<<31>>31;if((hb|0)>(ib|0)|(hb|0)==(ib|0)&jb>>>0>kb>>>0){A=202;break c}if(Xa){Wa=c[Wa>>2]|0;Ya=0;do{kb=Za+8|0;Za=Wa>>>0>kb>>>0?kb:Wa;Ya=Ya+1|0}while((Ya|0)!=(Xa|0));c[Ua>>2]=Za}Ya=c[Ea>>2]|0}Wa=(c[Ya+16>>2]|0)+26+(c[Oa>>2]|0)|0;a[Ja>>0]=Wa;Wa=Wa<<24;if((Wa|0)>855638016){A=207;break c}Wa=Wa>>24;Xa=c[(c[wa>>2]|0)+13192>>2]|0;if((Wa|0)<(0-Xa|0)){A=209;break c}kb=c[Ma>>2]|0;c[Na>>2]=kb;if((kb|0)==0?(a[La>>0]|0)!=0:0){A=212;break c}Ua=(c[Va+216>>2]|0)-(c[Ua>>2]|0)|0;if((Ua|0)<0){A=214;break c}a[(c[y>>2]|0)+203>>0]=(a[La>>0]|0)==0&1;if(!(a[(c[Ea>>2]|0)+22>>0]|0))a[(c[y>>2]|0)+272>>0]=a[Ja>>0]|0;a[Ia>>0]=1;a[(c[y>>2]|0)+302>>0]=0;a[(c[y>>2]|0)+303>>0]=0;Va=c[Ga>>2]|0;Ua=c[x>>2]|0;l:do if((Va|0)==2147483647)switch(Ua|0){case 18:case 16:case 17:case 21:{Va=c[va>>2]|0;c[Ga>>2]=Va;break l};case 20:case 19:{c[Ga>>2]=-2147483648;Va=-2147483648;break l};default:{Va=2147483647;break l}}while(0);do if((Ua+ -8|0)>>>0<2){if((c[va>>2]|0)<=(Va|0)){c[oa>>2]=0;break d}if((Ua|0)!=9)break;c[Ga>>2]=-2147483648}while(0);m:do if(a[Fa>>0]|0){Ua=c[y>>2]|0;jb=c[wa>>2]|0;Va=c[jb+13064>>2]|0;kb=c[jb+13120>>2]>>Va;Va=(c[jb+13124>>2]>>Va)+1|0;ve(c[xa>>2]|0,0,$(c[ya>>2]|0,c[za>>2]|0)|0)|0;ve(c[Aa>>2]|0,0,$(c[ya>>2]|0,c[za>>2]|0)|0)|0;jb=c[wa>>2]|0;ve(c[Ba>>2]|0,0,$(c[jb+13152>>2]|0,c[jb+13148>>2]|0)|0)|0;jb=c[wa>>2]|0;ve(c[Ca>>2]|0,0,$((c[jb+13160>>2]|0)+1|0,(c[jb+13156>>2]|0)+1|0)|0)|0;ve(c[Da>>2]|0,-1,$((kb<<2)+4|0,Va)|0)|0;c[oa>>2]=0;c[qa>>2]=c[x>>2];Va=c[Ea>>2]|0;if(a[Va+42>>0]|0)c[Ua+312>>2]=c[c[Va+1648>>2]>>2]<<c[(c[wa>>2]|0)+13080>>2];Ua=Mc(n,sa,c[va>>2]|0)|0;do if((Ua|0)>=0){c[(c[c[o>>2]>>2]|0)+80>>2]=((c[x>>2]|0)+ -16|0)>>>0<8&1;c[(c[sa>>2]|0)+84>>2]=3-(c[ra>>2]|0);he(c[ta>>2]|0);Ua=Nc(n,c[ta>>2]|0,0)|0;if((Ua|0)<0)break;break m}while(0);if(!(c[o>>2]|0)){A=233;break c}c[o>>2]=0;if((Ua|0)<0)break c}else{if(c[o>>2]|0)break;$a(c[B>>2]|0,16,1760,m);Ua=0;break e}while(0);Va=c[x>>2]|0;Ua=c[qa>>2]|0;if((Va|0)!=(Ua|0)){A=240;break c}c[m>>2]=0;c[Ha>>2]=1;Ua=c[B>>2]|0;Ka[c[Ua+816>>2]&1](Ua,1,m,p,1,4)|0;Ua=c[p>>2]|0;kb=c[wa>>2]|0;if((Ua|0)>=($(c[kb+13132>>2]|0,c[kb+13128>>2]|0)|0))c[oa>>2]=1;if((Ua|0)<0)break e;else break d};case 34:{Ua=rd(n)|0;if((Ua|0)<0)break e;else break d};case 40:case 39:{Ua=td(n)|0;if((Ua|0)<0)break e;else break d};case 37:case 36:{b[Ta>>1]=(e[Ta>>1]|0)+1&255;c[Ga>>2]=2147483647;break d};case 38:case 35:break d;default:{kb=c[B>>2]|0;c[m>>2]=Ya;$a(kb,32,1848,m);break d}}}while(0);r=(c[(c[B>>2]|0)+688>>2]&8|0)==0?0:Ua;A=247}while(0);if((A|0)==247?(A=0,(r|0)<0):0)break;C=C+1|0;if((C|0)>=(c[j>>2]|0))break a}switch(A|0){case 46:{kb=c[B>>2]|0;c[m>>2]=Za;$a(kb,16,2104,m);break};case 50:{$a(c[B>>2]|0,16,2136,m);break};case 64:{c[_>>2]=0;A=104;break};case 68:{c[ba>>2]=0;A=104;break};case 78:{c[da>>2]=0;A=104;break};case 83:{c[xa>>2]=0;A=88;break};case 112:{c[m>>2]=bb;$a(ab,16,2168,m);break};case 120:{kb=c[B>>2]|0;c[m>>2]=Za;$a(kb,16,2208,m);break};case 122:{$a(c[B>>2]|0,16,2240,m);break};case 128:{ua();break};case 171:{$a(ab,16,2272,m);break};case 185:{c[Pa>>2]=0;$a(c[B>>2]|0,16,2312,m);break};case 202:{$a(c[B>>2]|0,16,2344,m);break};case 207:{Xa=c[(c[wa>>2]|0)+13192>>2]|0;Wa=Wa>>24;A=209;break};case 212:{$a(c[B>>2]|0,16,2448,m);break};case 214:{kb=c[B>>2]|0;c[m>>2]=0-Ua;$a(kb,16,2480,m);break};case 233:{c[o>>2]=0;break};case 240:{kb=c[B>>2]|0;c[m>>2]=Ua;c[m+4>>2]=Va;$a(kb,16,1800,m);break}}if((A|0)==88){c[Aa>>2]=0;A=104}else if((A|0)==209){kb=c[B>>2]|0;c[m>>2]=Wa;c[m+4>>2]=0-Xa;$a(kb,16,2392,m)}if((A|0)==104){jc(n);jc(n);c[wa>>2]=0}kb=c[B>>2]|0;c[m>>2]=C;$a(kb,24,1696,m);break}else if((A|0)==13){$a(c[n+4>>2]|0,16,1640,m);z=-1094995529;break}else if((A|0)==19){$a(c[n+4>>2]|0,16,1664,m);z=-1094995529;break}}else z=0;while(0);if((z|0)<0){kb=z;i=k;return kb|0}o=n+5828|0;if(c[o>>2]|0){c[m>>2]=c[n+5796>>2];$a(f,48,1608,m);c[o>>2]=0}f=c[n+172>>2]|0;if(c[f+304>>2]|0){ie(g,f);c[h>>2]=1}kb=c[l>>2]|0;i=k;return kb|0}function hc(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;e=c[b+60>>2]|0;jc(e);b=e+7688|0;f=e+7668|0;if((c[b>>2]|0)>0){g=0;do{Qd((c[f>>2]|0)+(g<<2)|0);g=g+1|0}while((g|0)<(c[b>>2]|0))}Qd(e+7672|0);Qd(e+7664|0);Qd(f);Qd(e+152|0);ge(e+168|0);ge(e+172|0);g=e+3492|0;f=0;do{l=g+(f*72|0)|0;Ic(e,l,-1);ge(l);f=f+1|0}while((f|0)!=32);g=e+188|0;f=0;do{_d(g+(f<<2)|0);f=f+1|0}while((f|0)!=16);g=e+252|0;f=0;do{_d(g+(f<<2)|0);f=f+1|0}while((f|0)!=32);g=e+380|0;f=0;do{_d(g+(f<<2)|0);f=f+1|0}while((f|0)!=256);c[e+180>>2]=0;c[e+184>>2]=0;c[e+176>>2]=0;_d(e+1404|0);Qd(e+3064|0);Qd(e+3068|0);Qd(e+3072|0);h=e+141|0;l=a[h>>0]|0;f=e+72|0;if((l&255)>1){g=e+8|0;j=1;do{k=f+(j<<2)|0;if(c[k>>2]|0){Qd(k);Qd(g+(j<<2)|0);l=a[h>>0]|0}j=j+1|0}while((j|0)<(l&255|0))}g=e+136|0;if((c[g>>2]|0)==(c[f>>2]|0))c[g>>2]=0;Qd(f);f=e+7680|0;if((c[b>>2]|0)<=0){Qd(f);c[b>>2]=0;i=d;return 0}e=0;do{Qd((c[f>>2]|0)+(e<<4)|0);e=e+1|0}while((e|0)<(c[b>>2]|0));Qd(f);c[b>>2]=0;i=d;return 0}function ic(a){a=a|0;var b=0;b=i;a=c[a+60>>2]|0;Lc(a);c[a+5816>>2]=2147483647;i=b;return}function jc(a){a=a|0;var b=0;b=i;Qd(a+3472|0);Qd(a+3476|0);Qd(a+7608|0);Qd(a+7612|0);Qd(a+7616|0);Qd(a+7620|0);Qd(a+7624|0);Qd(a+7592|0);Qd(a+7604|0);Qd(a+7628|0);Qd(a+7596|0);Qd(a+7600|0);Qd(a+3064|0);Qd(a+3072|0);Qd(a+3068|0);ae(a+1408|0);ae(a+1412|0);i=b;return}function kc(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;b=i;i=i+16|0;e=b;h=c[a+136>>2]|0;j=h+212|0;f=c[j>>2]|0;g=c[h+204>>2]|0;l=d[g+(f>>>3)>>0]|0;h=c[h+220>>2]|0;k=((f|0)<(h|0)&1)+f|0;c[j>>2]=k;if(l&128>>>(f&7)){l=-1094995529;i=b;return l|0}f=g+(k>>>3)|0;f=(ze(d[f>>0]|d[f+1>>0]<<8|d[f+2>>0]<<16|d[f+3>>0]<<24|0)|0)<<(k&7)>>>26;l=k+6|0;l=h>>>0>l>>>0?l:h;c[j>>2]=l;c[a+3480>>2]=f;k=g+(l>>>3)|0;k=(ze(d[k>>0]|d[k+1>>0]<<8|d[k+2>>0]<<16|d[k+3>>0]<<24|0)|0)<<(l&7)>>>26;l=l+6|0;l=h>>>0>l>>>0?l:h;c[j>>2]=l;g=g+(l>>>3)|0;g=(ze(d[g>>0]|d[g+1>>0]<<8|d[g+2>>0]<<16|d[g+3>>0]<<24|0)|0)<<(l&7)>>>29;l=l+3|0;c[j>>2]=h>>>0>l>>>0?l:h;g=g+ -1|0;c[a+3484>>2]=g;if((g|0)<0){l=-1094995529;i=b;return l|0}l=c[a+4>>2]|0;c[e>>2]=f;c[e+4>>2]=k;c[e+8>>2]=g;$a(l,48,2520,e);l=(k|0)==0&1;i=b;return l|0}function lc(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;f=i;i=i+16|0;n=f;e=c[e+60>>2]|0;k=e+180|0;E=c[k>>2]|0;h=1<<c[E+13080>>2];l=e+184|0;o=c[l>>2]|0;A=c[(c[o+1668>>2]|0)+(c[e+3468>>2]<<2)>>2]|0;m=(a[e+2417>>0]|0)==0;if(!A)if(m)g=5;else{$a(c[e+4>>2]|0,16,1872,n);W=-1094995529;i=f;return W|0}else if(!m){m=e+7604|0;t=e+2404|0;if((c[(c[m>>2]|0)+(c[(c[o+1672>>2]|0)+(A+ -1<<2)>>2]<<2)>>2]|0)!=(c[t>>2]|0)){$a(c[e+4>>2]|0,16,1904,n);W=-1094995529;i=f;return W|0}}else g=5;if((g|0)==5){m=e+7604|0;t=e+2404|0}s=h+ -1|0;p=e+136|0;y=e+3472|0;o=e+3024|0;n=e+3025|0;w=e+3052|0;x=e+3476|0;v=e+3056|0;u=e+3030|0;r=e+7628|0;z=0;q=0;do{if((A|0)>=(c[E+13136>>2]|0))break;J=c[l>>2]|0;B=c[(c[J+1672>>2]|0)+(A<<2)>>2]|0;H=E+13120|0;I=E+13080|0;G=c[I>>2]|0;q=s+(c[H>>2]|0)>>G;z=((B|0)%(q|0)|0)<<G;q=((B|0)/(q|0)|0)<<G;C=c[p>>2]|0;G=1<<G;F=c[t>>2]|0;D=B-F|0;c[(c[m>>2]|0)+(B<<2)>>2]=F;do if(!(a[J+43>>0]|0)){if(!(a[J+42>>0]|0)){c[C+312>>2]=c[H>>2];H=E;break}if((A|0)!=0?(W=c[J+1676>>2]|0,(c[W+(A<<2)>>2]|0)!=(c[W+(A+ -1<<2)>>2]|0)):0){H=c[I>>2]|0;c[C+312>>2]=(c[(c[J+1648>>2]|0)+(c[(c[J+1664>>2]|0)+(z>>H<<2)>>2]<<2)>>2]<<H)+z;a[C+203>>0]=1;H=c[k>>2]|0}else H=E}else{if((z|0)==0?(G+ -1&q|0)==0:0){a[C+203>>0]=1;E=c[k>>2]|0}c[C+312>>2]=c[E+13120>>2];H=E}while(0);E=G+q|0;G=c[H+13124>>2]|0;c[C+316>>2]=(E|0)>(G|0)?G:E;E=C+31312|0;c[E>>2]=0;G=c[l>>2]|0;if(!(a[G+42>>0]|0)){if((B|0)==(F|0)){c[E>>2]=1;F=1}else F=0;if((D|0)<(c[H+13128>>2]|0)){F=F|4;c[E>>2]=F}}else{if((z|0)>0){W=c[G+1676>>2]|0;I=B+ -1|0;if((c[W+(A<<2)>>2]|0)==(c[W+(c[(c[G+1668>>2]|0)+(I<<2)>>2]<<2)>>2]|0))F=0;else{c[E>>2]=2;F=2}W=c[m>>2]|0;if((c[W+(B<<2)>>2]|0)!=(c[W+(I<<2)>>2]|0)){F=F|1;c[E>>2]=F}}else F=0;if((q|0)>0){W=c[G+1676>>2]|0;H=H+13128|0;I=c[H>>2]|0;if((c[W+(A<<2)>>2]|0)!=(c[W+(c[(c[G+1668>>2]|0)+(B-I<<2)>>2]<<2)>>2]|0)){F=F|8;c[E>>2]=F;I=c[H>>2]|0}W=c[m>>2]|0;if((c[W+(B<<2)>>2]|0)!=(c[W+(B-I<<2)>>2]|0)){F=F|4;c[E>>2]=F}}}E=(z|0)>0;if(E&(D|0)>0)G=(F>>>1&1^1)&255;else G=0;a[C+308>>0]=G;if((q|0)>0){if((D|0)<(c[(c[k>>2]|0)+13128>>2]|0))F=0;else F=(F>>>3&1^1)&255;a[C+309>>0]=F;F=c[(c[k>>2]|0)+13128>>2]|0;if((D+1|0)<(F|0))F=0;else{W=c[l>>2]|0;V=c[W+1676>>2]|0;F=(c[V+(A<<2)>>2]|0)==(c[V+(c[(c[W+1668>>2]|0)+(B+1-F<<2)>>2]<<2)>>2]|0)&1}a[C+310>>0]=F;if(E?(j=c[(c[k>>2]|0)+13128>>2]|0,(D|0)>(j|0)):0){D=c[l>>2]|0;W=c[D+1676>>2]|0;D=(c[W+(A<<2)>>2]|0)==(c[W+(c[(c[D+1668>>2]|0)+(B+ -1-j<<2)>>2]<<2)>>2]|0)&1}else D=0}else{a[C+309>>0]=0;a[C+310>>0]=0;D=0}a[C+311>>0]=D;pb(e,A);D=c[k>>2]|0;E=c[D+13080>>2]|0;F=z>>E;E=q>>E;G=c[p>>2]|0;D=($(c[D+13128>>2]|0,E)|0)+F|0;C=c[y>>2]|0;if((a[o>>0]|0)==0?(a[n>>0]|0)==0:0){M=0;G=0}else{if((F|0)>0?(a[G+308>>0]|0)!=0:0)M=ub(e)|0;else M=0;if((E|0)>0&(M|0)==0)if(!(a[G+309>>0]|0)){M=0;G=0}else{M=0;G=(ub(e)|0)!=0}else G=0}K=(c[(c[k>>2]|0)+4>>2]|0)!=0?3:1;L=C+(D*148|0)+143|0;J=C+(D*148|0)+144|0;I=C+(D*148|0)+104|0;H=C+(D*148|0)+108|0;R=(M|0)==0;Q=R&(G^1);P=E+ -1|0;N=F+ -1|0;S=0;do{M=c[l>>2]|0;M=d[((S|0)==0?M+1644|0:M+1645|0)>>0]|0;a:do if(a[e+S+3024>>0]|0){T=(S|0)==2;do if(!T){if(Q){U=(wb(e)|0)&255;O=C+(D*148|0)+S+142|0;a[O>>0]=U;break}if(!R){U=($(c[(c[k>>2]|0)+13128>>2]|0,E)|0)+N|0;U=a[(c[y>>2]|0)+(U*148|0)+S+142>>0]|0;O=C+(D*148|0)+S+142|0;a[O>>0]=U;break}if(G){U=($(c[(c[k>>2]|0)+13128>>2]|0,P)|0)+F|0;U=a[(c[y>>2]|0)+(U*148|0)+S+142>>0]|0;O=C+(D*148|0)+S+142|0;a[O>>0]=U;break}else{a[C+(D*148|0)+S+142>>0]=0;break a}}else{U=a[L>>0]|0;a[J>>0]=U;c[H>>2]=c[I>>2];O=J}while(0);if(U<<24>>24){U=0;do{do if(!Q){if(!R){W=($(c[(c[k>>2]|0)+13128>>2]|0,E)|0)+N|0;c[C+(D*148|0)+(S<<4)+(U<<2)>>2]=c[(c[y>>2]|0)+(W*148|0)+(S<<4)+(U<<2)>>2];break}if(G){W=($(c[(c[k>>2]|0)+13128>>2]|0,P)|0)+F|0;c[C+(D*148|0)+(S<<4)+(U<<2)>>2]=c[(c[y>>2]|0)+(W*148|0)+(S<<4)+(U<<2)>>2];break}else{c[C+(D*148|0)+(S<<4)+(U<<2)>>2]=0;break}}else c[C+(D*148|0)+(S<<4)+(U<<2)>>2]=zb(e)|0;while(0);U=U+1|0}while((U|0)!=4);do if((a[O>>0]|0)==1){T=0;do{do if(c[C+(D*148|0)+(S<<4)+(T<<2)>>2]|0){if(Q){c[C+(D*148|0)+(S<<4)+(T<<2)+48>>2]=Ab(e)|0;break}if(!R){W=($(c[(c[k>>2]|0)+13128>>2]|0,E)|0)+N|0;c[C+(D*148|0)+(S<<4)+(T<<2)+48>>2]=c[(c[y>>2]|0)+(W*148|0)+(S<<4)+(T<<2)+48>>2];break}if(G){W=($(c[(c[k>>2]|0)+13128>>2]|0,P)|0)+F|0;c[C+(D*148|0)+(S<<4)+(T<<2)+48>>2]=c[(c[y>>2]|0)+(W*148|0)+(S<<4)+(T<<2)+48>>2];break}else{c[C+(D*148|0)+(S<<4)+(T<<2)+48>>2]=0;break}}else c[C+(D*148|0)+(S<<4)+(T<<2)+48>>2]=0;while(0);T=T+1|0}while((T|0)!=4);if(Q){a[C+(D*148|0)+S+96>>0]=yb(e)|0;break}if(!R){W=($(c[(c[k>>2]|0)+13128>>2]|0,E)|0)+N|0;a[C+(D*148|0)+S+96>>0]=a[(c[y>>2]|0)+(W*148|0)+S+96>>0]|0;break}if(G){W=($(c[(c[k>>2]|0)+13128>>2]|0,P)|0)+F|0;a[C+(D*148|0)+S+96>>0]=a[(c[y>>2]|0)+(W*148|0)+S+96>>0]|0;break}else{a[C+(D*148|0)+S+96>>0]=0;break}}else if(!T){if(Q){c[C+(D*148|0)+(S<<2)+100>>2]=Bb(e)|0;break}if(!R){W=($(c[(c[k>>2]|0)+13128>>2]|0,E)|0)+N|0;c[C+(D*148|0)+(S<<2)+100>>2]=c[(c[y>>2]|0)+(W*148|0)+(S<<2)+100>>2];break}if(G){W=($(c[(c[k>>2]|0)+13128>>2]|0,P)|0)+F|0;c[C+(D*148|0)+(S<<2)+100>>2]=c[(c[y>>2]|0)+(W*148|0)+(S<<2)+100>>2];break}else{c[C+(D*148|0)+(S<<2)+100>>2]=0;break}}while(0);b[C+(D*148|0)+(S*10|0)+112>>1]=0;U=0;do{V=c[C+(D*148|0)+(S<<4)+(U<<2)>>2]|0;W=U;U=U+1|0;T=C+(D*148|0)+(S*10|0)+(U<<1)+112|0;b[T>>1]=V;if((a[O>>0]|0)==2){if((W|0)>1){V=0-V|0;b[T>>1]=V}}else if(c[C+(D*148|0)+(S<<4)+(W<<2)+48>>2]|0){V=0-V|0;b[T>>1]=V}b[T>>1]=V<<16>>16<<M}while((U|0)!=4)}}else a[C+(D*148|0)+S+142>>0]=0;while(0);S=S+1|0}while((S|0)<(K|0));C=c[x>>2]|0;c[C+(B<<3)>>2]=c[w>>2];c[C+(B<<3)+4>>2]=c[v>>2];a[(c[r>>2]|0)+B>>0]=a[u>>0]|0;C=mc(e,z,q,c[(c[k>>2]|0)+13080>>2]|0,0)|0;if((C|0)<0){g=110;break}A=A+1|0;ob(e,A);ac(e,z,q,h);E=c[k>>2]|0}while((C|0)!=0);if((g|0)==110){c[(c[m>>2]|0)+(B<<2)>>2]=-1;W=C;i=f;return W|0}if((z+h|0)<(c[E+13120>>2]|0)){W=A;i=f;return W|0}if((q+h|0)<(c[E+13124>>2]|0)){W=A;i=f;return W|0}_b(e,z,q,h);W=A;i=f;return W|0}function mc(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,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,aa=0;j=i;i=i+32|0;B=j;D=j+20|0;C=b+136|0;p=c[C>>2]|0;l=1<<g;m=b+180|0;u=c[m>>2]|0;q=b+184|0;t=c[q>>2]|0;s=(1<<(c[u+13080>>2]|0)-(c[t+24>>2]|0))+ -1|0;c[p+31232>>2]=h;k=l+e|0;if(((k|0)<=(c[u+13120>>2]|0)?(l+f|0)<=(c[u+13124>>2]|0):0)?(c[u+13064>>2]|0)>>>0<g>>>0:0){u=Ib(b,h,e,f)|0;t=c[q>>2]|0}else u=(c[u+13064>>2]|0)>>>0<g>>>0&1;if((a[t+22>>0]|0)!=0?((c[(c[m>>2]|0)+13080>>2]|0)-(c[t+24>>2]|0)|0)>>>0<=g>>>0:0){a[p+300>>0]=0;c[p+280>>2]=0}if((a[b+3048>>0]|0)!=0?((c[(c[m>>2]|0)+13080>>2]|0)-(d[(c[q>>2]|0)+1632>>0]|0)|0)>>>0<=g>>>0:0)a[p+301>>0]=0;if(u){o=l>>1;q=o+e|0;n=o+f|0;g=g+ -1|0;r=h+1|0;h=mc(b,e,f,g,r)|0;if((h|0)<0){aa=h;i=j;return aa|0}if(h){if((q|0)<(c[(c[m>>2]|0)+13120>>2]|0)){h=mc(b,q,f,g,r)|0;if((h|0)<0){aa=h;i=j;return aa|0}}if(h){if((n|0)<(c[(c[m>>2]|0)+13124>>2]|0)){h=mc(b,e,n,g,r)|0;if((h|0)<0){aa=h;i=j;return aa|0}}if(h){aa=c[m>>2]|0;if((q|0)<(c[aa+13120>>2]|0)?(n|0)<(c[aa+13124>>2]|0):0){h=mc(b,q,n,g,r)|0;if((h|0)<0){aa=h;i=j;return aa|0}}}else h=0}else h=0}else h=0;if((s&k|0)==0?(s&l+f|0)==0:0)c[p+276>>2]=a[p+272>>0];if(!h){aa=0;i=j;return aa|0}k=c[m>>2]|0;if((q+o|0)<(c[k+13120>>2]|0))k=1;else k=(n+o|0)<(c[k+13124>>2]|0);aa=k&1;i=j;return aa|0}p=c[C>>2]|0;h=c[m>>2]|0;s=c[h+13064>>2]|0;t=c[h+13140>>2]|0;h=1<<(c[h+13080>>2]|0)-(c[(c[q>>2]|0)+24>>2]|0);c[p+31236>>2]=e;c[p+31240>>2]=f;y=p+31252|0;a[y>>0]=1;w=p+31244|0;c[w>>2]=1;z=p+31248|0;c[z>>2]=0;x=p+31254|0;a[x>>0]=0;A=p+31253|0;a[A>>0]=0;u=($(f>>s,t)|0)+(e>>s)|0;G=b+7608|0;a[(c[G>>2]|0)+u>>0]=0;aa=p+31268|0;a[aa>>0]=1;a[aa+1>>0]=1;a[aa+2>>0]=1;a[aa+3>>0]=1;s=l>>s;h=h+ -1|0;if(a[(c[q>>2]|0)+40>>0]|0){aa=(Db(b)|0)&255;a[p+31256>>0]=aa;if(aa<<24>>24)nc(b,e,f,g)}else a[p+31256>>0]=0;v=(s|0)>0;J=c[G>>2]|0;if(v){H=u;I=0;while(1){ve(J+H|0,0,s|0)|0;I=I+1|0;J=c[G>>2]|0;if((I|0)==(s|0))break;else H=H+t|0}}if(a[J+u>>0]|0)ua();if((c[w>>2]|0)==1?(c[(c[m>>2]|0)+13064>>2]|0)!=(g|0):0)E=c[z>>2]|0;else{G=Jb(b,g)|0;c[z>>2]=G;H=c[w>>2]|0;if((G|0)==3)I=(H|0)==1&1;else I=0;a[x>>0]=I;if((H|0)==1)E=G;else ua()}if((((E|0)==0?(F=c[m>>2]|0,(c[F+68>>2]|0)!=0):0)?(c[F+13048>>2]|0)>>>0<=g>>>0:0)?(c[F+13052>>2]|0)>>>0>=g>>>0:0){E=(Kb(b)|0)&255;a[A>>0]=E}else E=a[A>>0]|0;do if(!(E<<24>>24)){E=c[C>>2]|0;J=(c[E+31248>>2]|0)==3;F=J?2:1;H=0;do{I=H<<1;G=0;do{a[D+(G+I)>>0]=Lb(b)|0;G=G+1|0}while((G|0)<(F|0));H=H+1|0}while((H|0)<(F|0));S=l>>(J&1);R=E+31264|0;T=b+3488|0;U=B+4|0;G=B+8|0;H=b+7616|0;Q=E+31260|0;I=0;do{L=I<<1;M=($(I,S)|0)+f|0;J=0;do{N=J+L|0;Y=(a[D+N>>0]|0)==0;if(Y)c[R>>2]=Nb(b)|0;else c[Q>>2]=Mb(b)|0;V=($(J,S)|0)+e|0;X=c[C>>2]|0;aa=c[m>>2]|0;W=c[aa+13084>>2]|0;O=V>>W;K=M>>W;P=c[aa+13156>>2]|0;W=S>>W;aa=c[aa+13080>>2]|0;_=(1<<aa)+ -1|0;V=_&V;if((a[X+309>>0]|0)==0?(_&M|0)==0:0)Z=1;else{Z=($(K+ -1|0,P)|0)+O|0;Z=d[(c[H>>2]|0)+Z>>0]|0}if((a[X+308>>0]|0)==0&(V|0)==0)_=1;else{_=O+ -1+($(K,P)|0)|0;_=d[(c[H>>2]|0)+_>>0]|0}V=c[(c[T>>2]|0)+16>>2]|0;aa=(M>>aa<<aa|0)<(M|0)?Z:1;do if((_|0)==(aa|0))if(_>>>0<2){c[B>>2]=0;c[U>>2]=1;c[G>>2]=26;_=0;aa=1;Z=26;break}else{c[B>>2]=_;aa=(_+29&31)+2|0;c[U>>2]=aa;Z=(_+31&31)+2|0;c[G>>2]=Z;break}else{c[B>>2]=_;c[U>>2]=aa;if(!((_|0)==0|(aa|0)==0)){c[G>>2]=0;Z=0;break}if((_|0)==1|(aa|0)==1){c[G>>2]=26;Z=26;break}else{c[G>>2]=1;Z=1;break}}while(0);if(Y){if((_|0)>(aa|0)){c[U>>2]=_;Y=aa&255;c[B>>2]=Y}else{Y=_;_=aa}if((Y|0)>(Z|0)){c[G>>2]=Y;aa=Z&255;c[B>>2]=aa;Z=Y;Y=aa}if((_|0)>(Z|0)){c[G>>2]=_;aa=Z&255;c[U>>2]=aa;Z=_}else aa=_;X=c[X+31264>>2]|0;X=((X|0)>=(Y|0)&1)+X|0;X=((X|0)>=(aa|0)&1)+X|0;X=((X|0)>=(Z|0)&1)+X|0}else X=c[B+(c[X+31260>>2]<<2)>>2]|0;W=(W|0)==0?1:W;_=X&255;if((W|0)>0){Y=0;do{Z=($(Y+K|0,P)|0)+O|0;ve((c[H>>2]|0)+Z|0,_|0,W|0)|0;Z=Y+O|0;X=0;do{a[V+(Z+($(X+K|0,P)|0))>>0]=0;X=X+1|0}while((X|0)<(W|0));Y=Y+1|0}while((Y|0)<(W|0))}a[E+N+31268>>0]=_;J=J+1|0}while((J|0)<(F|0));I=I+1|0}while((I|0)<(F|0));B=c[(c[m>>2]|0)+4>>2]|0;if((B|0)==3){G=0;do{D=G<<1;C=0;do{H=Ob(b)|0;I=C+D|0;a[E+I+31281>>0]=H;B=a[E+I+31268>>0]|0;do if((H|0)!=4){H=a[2056+H>>0]|0;I=E+I+31277|0;if(B<<24>>24==H<<24>>24){a[I>>0]=34;break}else{a[I>>0]=H;break}}else a[E+I+31277>>0]=B;while(0);C=C+1|0}while((C|0)<(F|0));G=G+1|0}while((G|0)<(F|0))}else if((B|0)==2){C=Ob(b)|0;a[E+31281>>0]=C;B=a[E+31268>>0]|0;if((C|0)==4)B=B&255;else{aa=a[2056+C>>0]|0;B=B<<24>>24==aa<<24>>24?34:aa&255}a[E+31277>>0]=a[2064+B>>0]|0;break}else if(B){C=Ob(b)|0;B=a[E+31268>>0]|0;if((C|0)==4){a[E+31277>>0]=B;break}C=a[2056+C>>0]|0;D=E+31277|0;if(B<<24>>24==C<<24>>24){a[D>>0]=34;break}else{a[D>>0]=C;break}}else break}else{K=c[C>>2]|0;D=c[m>>2]|0;E=c[D+13084>>2]|0;I=l>>E;D=c[D+13156>>2]|0;H=c[(c[b+3488>>2]|0)+16>>2]|0;F=e>>E;E=f>>E;G=(I|0)==0?1:I;if((G|0)>0){L=b+7616|0;J=0;do{aa=($(J+E|0,D)|0)+F|0;ve((c[L>>2]|0)+aa|0,1,G|0)|0;J=J+1|0}while((J|0)<(G|0));if((c[K+31244>>2]|0)==1){J=I>>>0>1?I:1;I=0;do{ve(H+(($(I+E|0,D)|0)+F)|0,0,J|0)|0;I=I+1|0}while((I|0)<(G|0))}}K=c[C>>2]|0;Z=c[b+160>>2]|0;H=c[Z+32>>2]|0;I=$(H,f)|0;M=c[m>>2]|0;D=c[M+56>>2]|0;I=(c[Z>>2]|0)+((e<<D)+I)|0;G=c[Z+36>>2]|0;J=c[M+13184>>2]|0;C=$(f>>J,G)|0;L=c[M+13172>>2]|0;C=(c[Z+4>>2]|0)+((e>>L<<D)+C)|0;E=c[Z+40>>2]|0;aa=c[M+13188>>2]|0;F=$(f>>aa,E)|0;_=c[M+13176>>2]|0;F=(c[Z+8>>2]|0)+((e>>_<<D)+F)|0;D=$(d[M+13044>>0]|0,l<<g)|0;J=($(l>>_,l>>aa)|0)+($(l>>L,l>>J)|0)|0;D=($(d[M+13045>>0]|0,J)|0)+D|0;J=K+224|0;M=D+7>>3;L=c[K+240>>2]|0;aa=c[J>>2]|0;L=(aa&1|0)==0?L:L+ -1|0;L=(aa&511|0)==0?L:L+ -1|0;K=(c[K+244>>2]|0)-L|0;if((K|0)<(M|0))L=0;else Ld(J,L+M|0,K-M|0);if(!(a[b+3029>>0]|0))Yb(b,e,f,g);aa=D>>>0>2147483639|(L|0)==0;_=aa?0:D;Z=aa?0:L;c[B>>2]=Z;c[B+12>>2]=_;c[B+16>>2]=_+8;c[B+4>>2]=Z+(_+7>>3);c[B+8>>2]=0;if(aa)B=-1094995529;else{_=b+5884|0;aa=c[m>>2]|0;Ga[c[_>>2]&7](I,H,l,l,B,d[aa+13044>>0]|0,c[aa+52>>2]|0);aa=c[m>>2]|0;Ga[c[_>>2]&7](C,G,l>>c[aa+13172>>2],l>>c[aa+13184>>2],B,d[aa+13045>>0]|0,c[aa+52>>2]|0);aa=c[m>>2]|0;Ga[c[_>>2]&7](F,E,l>>c[aa+13176>>2],l>>c[aa+13188>>2],B,d[aa+13045>>0]|0,c[aa+52>>2]|0);B=0}if(a[(c[m>>2]|0)+13056>>0]|0)nc(b,e,f,g);if((B|0)<0){aa=B;i=j;return aa|0}}while(0);do if(!(a[A>>0]|0)){do if((c[w>>2]|0)==1)r=129;else{if((c[z>>2]|0)==0?(a[p+31276>>0]|0)!=0:0){r=129;break}aa=(Pb(b)|0)&255;a[y>>0]=aa;y=aa}while(0);if((r|0)==129)y=a[y>>0]|0;if(!(y<<24>>24)){if(a[b+3029>>0]|0)break;Yb(b,e,f,g);break}r=c[m>>2]|0;if((c[w>>2]|0)==1)r=(d[x>>0]|0)+(c[r+13092>>2]|0)|0;else r=c[r+13088>>2]|0;a[p+31255>>0]=r;r=oc(b,e,f,e,f,e,f,g,g,0,0,1936,1936)|0;if((r|0)<0){aa=r;i=j;return aa|0}}while(0);if((a[(c[q>>2]|0)+22>>0]|0)!=0?(a[p+300>>0]|0)==0:0)Xb(b,e,f,g);if(v){q=b+7592|0;g=p+272|0;r=0;while(1){ve((c[q>>2]|0)+u|0,a[g>>0]|0,s|0)|0;r=r+1|0;if((r|0)==(s|0))break;else u=u+t|0}}if((h&k|0)==0?(h&l+f|0)==0:0)c[p+276>>2]=a[p+272>>0];q=c[m>>2]|0;r=c[q+13064>>2]|0;g=l>>r;e=e>>r;r=f>>r;if((g|0)>0?(n=b+7612|0,o=c[p+31232>>2]&255,aa=($(c[q+13140>>2]|0,r)|0)+e|0,ve((c[n>>2]|0)+aa|0,o|0,g|0)|0,(g|0)!=1):0){p=1;do{aa=($(c[(c[m>>2]|0)+13140>>2]|0,p+r|0)|0)+e|0;ve((c[n>>2]|0)+aa|0,o|0,g|0)|0;p=p+1|0}while((p|0)!=(g|0))}e=c[m>>2]|0;m=1<<c[e+13080>>2];if(((k|0)%(m|0)|0|0)!=0?(k|0)<(c[e+13120>>2]|0):0){aa=1;i=j;return aa|0}aa=l+f|0;if(((aa|0)%(m|0)|0|0)!=0?(aa|0)<(c[e+13124>>2]|0):0){aa=1;i=j;return aa|0}aa=(Cb(b)|0)==0&1;i=j;return aa|0}function nc(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;g=i;m=1<<f;n=c[b+180>>2]|0;l=c[n+13084>>2]|0;f=c[n+13156>>2]|0;k=m+d|0;j=c[n+13120>>2]|0;m=m+e|0;n=c[n+13124>>2]|0;h=e>>l;e=((m|0)>(n|0)?n:m)>>l;if((h|0)>=(e|0)){i=g;return}d=d>>l;j=((k|0)>(j|0)?j:k)>>l;k=(d|0)<(j|0);b=b+7624|0;do{if(k){m=$(h,f)|0;l=d;do{a[(c[b>>2]|0)+(l+m)>>0]=2;l=l+1|0}while((l|0)!=(j|0))}h=h+1|0}while((h|0)!=(e|0));i=g;return}
function le(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;b=i;do if(a>>>0<245){if(a>>>0<11)a=16;else a=a+11&-8;v=a>>>3;p=c[1942]|0;w=p>>>v;if(w&3){h=(w&1^1)+v|0;g=h<<1;e=7808+(g<<2)|0;g=7808+(g+2<<2)|0;j=c[g>>2]|0;d=j+8|0;f=c[d>>2]|0;do if((e|0)!=(f|0)){if(f>>>0<(c[1946]|0)>>>0)ua();k=f+12|0;if((c[k>>2]|0)==(j|0)){c[k>>2]=e;c[g>>2]=f;break}else ua()}else c[1942]=p&~(1<<h);while(0);H=h<<3;c[j+4>>2]=H|3;H=j+(H|4)|0;c[H>>2]=c[H>>2]|1;H=d;i=b;return H|0}if(a>>>0>(c[1944]|0)>>>0){if(w){h=2<<v;h=w<<v&(h|0-h);h=(h&0-h)+ -1|0;d=h>>>12&16;h=h>>>d;f=h>>>5&8;h=h>>>f;g=h>>>2&4;h=h>>>g;e=h>>>1&2;h=h>>>e;j=h>>>1&1;j=(f|d|g|e|j)+(h>>>j)|0;h=j<<1;e=7808+(h<<2)|0;h=7808+(h+2<<2)|0;g=c[h>>2]|0;d=g+8|0;f=c[d>>2]|0;do if((e|0)!=(f|0)){if(f>>>0<(c[1946]|0)>>>0)ua();k=f+12|0;if((c[k>>2]|0)==(g|0)){c[k>>2]=e;c[h>>2]=f;break}else ua()}else c[1942]=p&~(1<<j);while(0);h=j<<3;f=h-a|0;c[g+4>>2]=a|3;e=g+a|0;c[g+(a|4)>>2]=f|1;c[g+h>>2]=f;h=c[1944]|0;if(h){g=c[1947]|0;k=h>>>3;j=k<<1;h=7808+(j<<2)|0;l=c[1942]|0;k=1<<k;if(l&k){j=7808+(j+2<<2)|0;k=c[j>>2]|0;if(k>>>0<(c[1946]|0)>>>0)ua();else{D=j;C=k}}else{c[1942]=l|k;D=7808+(j+2<<2)|0;C=h}c[D>>2]=g;c[C+12>>2]=g;c[g+8>>2]=C;c[g+12>>2]=h}c[1944]=f;c[1947]=e;H=d;i=b;return H|0}p=c[1943]|0;if(p){e=(p&0-p)+ -1|0;G=e>>>12&16;e=e>>>G;F=e>>>5&8;e=e>>>F;H=e>>>2&4;e=e>>>H;f=e>>>1&2;e=e>>>f;d=e>>>1&1;d=c[8072+((F|G|H|f|d)+(e>>>d)<<2)>>2]|0;e=(c[d+4>>2]&-8)-a|0;f=d;while(1){g=c[f+16>>2]|0;if(!g){g=c[f+20>>2]|0;if(!g)break}f=(c[g+4>>2]&-8)-a|0;H=f>>>0<e>>>0;e=H?f:e;f=g;d=H?g:d}h=c[1946]|0;if(d>>>0<h>>>0)ua();f=d+a|0;if(d>>>0>=f>>>0)ua();g=c[d+24>>2]|0;k=c[d+12>>2]|0;do if((k|0)==(d|0)){k=d+20|0;j=c[k>>2]|0;if(!j){k=d+16|0;j=c[k>>2]|0;if(!j){B=0;break}}while(1){l=j+20|0;m=c[l>>2]|0;if(m){j=m;k=l;continue}m=j+16|0;l=c[m>>2]|0;if(!l)break;else{j=l;k=m}}if(k>>>0<h>>>0)ua();else{c[k>>2]=0;B=j;break}}else{j=c[d+8>>2]|0;if(j>>>0<h>>>0)ua();h=j+12|0;if((c[h>>2]|0)!=(d|0))ua();l=k+8|0;if((c[l>>2]|0)==(d|0)){c[h>>2]=k;c[l>>2]=j;B=k;break}else ua()}while(0);do if(g){h=c[d+28>>2]|0;j=8072+(h<<2)|0;if((d|0)==(c[j>>2]|0)){c[j>>2]=B;if(!B){c[1943]=c[1943]&~(1<<h);break}}else{if(g>>>0<(c[1946]|0)>>>0)ua();h=g+16|0;if((c[h>>2]|0)==(d|0))c[h>>2]=B;else c[g+20>>2]=B;if(!B)break}if(B>>>0<(c[1946]|0)>>>0)ua();c[B+24>>2]=g;g=c[d+16>>2]|0;do if(g)if(g>>>0<(c[1946]|0)>>>0)ua();else{c[B+16>>2]=g;c[g+24>>2]=B;break}while(0);g=c[d+20>>2]|0;if(g)if(g>>>0<(c[1946]|0)>>>0)ua();else{c[B+20>>2]=g;c[g+24>>2]=B;break}}while(0);if(e>>>0<16){H=e+a|0;c[d+4>>2]=H|3;H=d+(H+4)|0;c[H>>2]=c[H>>2]|1}else{c[d+4>>2]=a|3;c[d+(a|4)>>2]=e|1;c[d+(e+a)>>2]=e;h=c[1944]|0;if(h){g=c[1947]|0;l=h>>>3;j=l<<1;h=7808+(j<<2)|0;k=c[1942]|0;l=1<<l;if(k&l){j=7808+(j+2<<2)|0;k=c[j>>2]|0;if(k>>>0<(c[1946]|0)>>>0)ua();else{A=j;z=k}}else{c[1942]=k|l;A=7808+(j+2<<2)|0;z=h}c[A>>2]=g;c[z+12>>2]=g;c[g+8>>2]=z;c[g+12>>2]=h}c[1944]=e;c[1947]=f}H=d+8|0;i=b;return H|0}}}else if(a>>>0<=4294967231){z=a+11|0;a=z&-8;B=c[1943]|0;if(B){A=0-a|0;z=z>>>8;if(z)if(a>>>0>16777215)C=31;else{G=(z+1048320|0)>>>16&8;H=z<<G;F=(H+520192|0)>>>16&4;H=H<<F;C=(H+245760|0)>>>16&2;C=14-(F|G|C)+(H<<C>>>15)|0;C=a>>>(C+7|0)&1|C<<1}else C=0;D=c[8072+(C<<2)>>2]|0;a:do if(!D){F=0;z=0}else{if((C|0)==31)z=0;else z=25-(C>>>1)|0;F=0;E=a<<z;z=0;while(1){H=c[D+4>>2]&-8;G=H-a|0;if(G>>>0<A>>>0)if((H|0)==(a|0)){A=G;F=D;z=D;break a}else{A=G;z=D}H=c[D+20>>2]|0;D=c[D+(E>>>31<<2)+16>>2]|0;F=(H|0)==0|(H|0)==(D|0)?F:H;if(!D)break;else E=E<<1}}while(0);if((F|0)==0&(z|0)==0){H=2<<C;B=B&(H|0-H);if(!B)break;H=(B&0-B)+ -1|0;D=H>>>12&16;H=H>>>D;C=H>>>5&8;H=H>>>C;E=H>>>2&4;H=H>>>E;G=H>>>1&2;H=H>>>G;F=H>>>1&1;F=c[8072+((C|D|E|G|F)+(H>>>F)<<2)>>2]|0}if(F)while(1){H=(c[F+4>>2]&-8)-a|0;B=H>>>0<A>>>0;A=B?H:A;z=B?F:z;B=c[F+16>>2]|0;if(B){F=B;continue}F=c[F+20>>2]|0;if(!F)break}if((z|0)!=0?A>>>0<((c[1944]|0)-a|0)>>>0:0){f=c[1946]|0;if(z>>>0<f>>>0)ua();d=z+a|0;if(z>>>0>=d>>>0)ua();e=c[z+24>>2]|0;h=c[z+12>>2]|0;do if((h|0)==(z|0)){h=z+20|0;g=c[h>>2]|0;if(!g){h=z+16|0;g=c[h>>2]|0;if(!g){x=0;break}}while(1){j=g+20|0;k=c[j>>2]|0;if(k){g=k;h=j;continue}j=g+16|0;k=c[j>>2]|0;if(!k)break;else{g=k;h=j}}if(h>>>0<f>>>0)ua();else{c[h>>2]=0;x=g;break}}else{g=c[z+8>>2]|0;if(g>>>0<f>>>0)ua();f=g+12|0;if((c[f>>2]|0)!=(z|0))ua();j=h+8|0;if((c[j>>2]|0)==(z|0)){c[f>>2]=h;c[j>>2]=g;x=h;break}else ua()}while(0);do if(e){g=c[z+28>>2]|0;f=8072+(g<<2)|0;if((z|0)==(c[f>>2]|0)){c[f>>2]=x;if(!x){c[1943]=c[1943]&~(1<<g);break}}else{if(e>>>0<(c[1946]|0)>>>0)ua();f=e+16|0;if((c[f>>2]|0)==(z|0))c[f>>2]=x;else c[e+20>>2]=x;if(!x)break}if(x>>>0<(c[1946]|0)>>>0)ua();c[x+24>>2]=e;e=c[z+16>>2]|0;do if(e)if(e>>>0<(c[1946]|0)>>>0)ua();else{c[x+16>>2]=e;c[e+24>>2]=x;break}while(0);e=c[z+20>>2]|0;if(e)if(e>>>0<(c[1946]|0)>>>0)ua();else{c[x+20>>2]=e;c[e+24>>2]=x;break}}while(0);b:do if(A>>>0>=16){c[z+4>>2]=a|3;c[z+(a|4)>>2]=A|1;c[z+(A+a)>>2]=A;f=A>>>3;if(A>>>0<256){h=f<<1;e=7808+(h<<2)|0;g=c[1942]|0;f=1<<f;do if(!(g&f)){c[1942]=g|f;w=7808+(h+2<<2)|0;v=e}else{f=7808+(h+2<<2)|0;g=c[f>>2]|0;if(g>>>0>=(c[1946]|0)>>>0){w=f;v=g;break}ua()}while(0);c[w>>2]=d;c[v+12>>2]=d;c[z+(a+8)>>2]=v;c[z+(a+12)>>2]=e;break}e=A>>>8;if(e)if(A>>>0>16777215)e=31;else{G=(e+1048320|0)>>>16&8;H=e<<G;F=(H+520192|0)>>>16&4;H=H<<F;e=(H+245760|0)>>>16&2;e=14-(F|G|e)+(H<<e>>>15)|0;e=A>>>(e+7|0)&1|e<<1}else e=0;f=8072+(e<<2)|0;c[z+(a+28)>>2]=e;c[z+(a+20)>>2]=0;c[z+(a+16)>>2]=0;h=c[1943]|0;g=1<<e;if(!(h&g)){c[1943]=h|g;c[f>>2]=d;c[z+(a+24)>>2]=f;c[z+(a+12)>>2]=d;c[z+(a+8)>>2]=d;break}f=c[f>>2]|0;if((e|0)==31)e=0;else e=25-(e>>>1)|0;c:do if((c[f+4>>2]&-8|0)!=(A|0)){e=A<<e;while(1){g=f+(e>>>31<<2)+16|0;h=c[g>>2]|0;if(!h)break;if((c[h+4>>2]&-8|0)==(A|0)){p=h;break c}else{e=e<<1;f=h}}if(g>>>0<(c[1946]|0)>>>0)ua();else{c[g>>2]=d;c[z+(a+24)>>2]=f;c[z+(a+12)>>2]=d;c[z+(a+8)>>2]=d;break b}}else p=f;while(0);f=p+8|0;e=c[f>>2]|0;g=c[1946]|0;if(p>>>0<g>>>0)ua();if(e>>>0<g>>>0)ua();else{c[e+12>>2]=d;c[f>>2]=d;c[z+(a+8)>>2]=e;c[z+(a+12)>>2]=p;c[z+(a+24)>>2]=0;break}}else{H=A+a|0;c[z+4>>2]=H|3;H=z+(H+4)|0;c[H>>2]=c[H>>2]|1}while(0);H=z+8|0;i=b;return H|0}}}else a=-1;while(0);p=c[1944]|0;if(a>>>0<=p>>>0){e=p-a|0;d=c[1947]|0;if(e>>>0>15){c[1947]=d+a;c[1944]=e;c[d+(a+4)>>2]=e|1;c[d+p>>2]=e;c[d+4>>2]=a|3}else{c[1944]=0;c[1947]=0;c[d+4>>2]=p|3;H=d+(p+4)|0;c[H>>2]=c[H>>2]|1}H=d+8|0;i=b;return H|0}p=c[1945]|0;if(a>>>0<p>>>0){G=p-a|0;c[1945]=G;H=c[1948]|0;c[1948]=H+a;c[H+(a+4)>>2]=G|1;c[H+4>>2]=a|3;H=H+8|0;i=b;return H|0}do if(!(c[2060]|0)){p=Ba(30)|0;if(!(p+ -1&p)){c[2062]=p;c[2061]=p;c[2063]=-1;c[2064]=-1;c[2065]=0;c[2053]=0;c[2060]=(xa(0)|0)&-16^1431655768;break}else ua()}while(0);w=a+48|0;p=c[2062]|0;x=a+47|0;z=p+x|0;p=0-p|0;v=z&p;if(v>>>0<=a>>>0){H=0;i=b;return H|0}A=c[2052]|0;if((A|0)!=0?(G=c[2050]|0,H=G+v|0,H>>>0<=G>>>0|H>>>0>A>>>0):0){H=0;i=b;return H|0}d:do if(!(c[2053]&4)){B=c[1948]|0;e:do if(B){A=8216|0;while(1){C=c[A>>2]|0;if(C>>>0<=B>>>0?(y=A+4|0,(C+(c[y>>2]|0)|0)>>>0>B>>>0):0)break;A=c[A+8>>2]|0;if(!A){o=182;break e}}if(A){B=z-(c[1945]|0)&p;if(B>>>0<2147483647){p=wa(B|0)|0;A=(p|0)==((c[A>>2]|0)+(c[y>>2]|0)|0);y=p;z=B;p=A?p:-1;A=A?B:0;o=191}else A=0}else o=182}else o=182;while(0);do if((o|0)==182){p=wa(0)|0;if((p|0)!=(-1|0)){z=p;A=c[2061]|0;y=A+ -1|0;if(!(y&z))A=v;else A=v-z+(y+z&0-A)|0;y=c[2050]|0;z=y+A|0;if(A>>>0>a>>>0&A>>>0<2147483647){H=c[2052]|0;if((H|0)!=0?z>>>0<=y>>>0|z>>>0>H>>>0:0){A=0;break}y=wa(A|0)|0;o=(y|0)==(p|0);z=A;p=o?p:-1;A=o?A:0;o=191}else A=0}else A=0}while(0);f:do if((o|0)==191){o=0-z|0;if((p|0)!=(-1|0)){q=A;o=202;break d}do if((y|0)!=(-1|0)&z>>>0<2147483647&z>>>0<w>>>0?(u=c[2062]|0,u=x-z+u&0-u,u>>>0<2147483647):0)if((wa(u|0)|0)==(-1|0)){wa(o|0)|0;break f}else{z=u+z|0;break}while(0);if((y|0)!=(-1|0)){p=y;q=z;o=202;break d}}while(0);c[2053]=c[2053]|4;o=199}else{A=0;o=199}while(0);if((((o|0)==199?v>>>0<2147483647:0)?(t=wa(v|0)|0,s=wa(0)|0,(s|0)!=(-1|0)&(t|0)!=(-1|0)&t>>>0<s>>>0):0)?(r=s-t|0,q=r>>>0>(a+40|0)>>>0,q):0){p=t;q=q?r:A;o=202}if((o|0)==202){r=(c[2050]|0)+q|0;c[2050]=r;if(r>>>0>(c[2051]|0)>>>0)c[2051]=r;r=c[1948]|0;g:do if(r){v=8216|0;while(1){t=c[v>>2]|0;u=v+4|0;s=c[u>>2]|0;if((p|0)==(t+s|0)){o=214;break}w=c[v+8>>2]|0;if(!w)break;else v=w}if(((o|0)==214?(c[v+12>>2]&8|0)==0:0)?r>>>0>=t>>>0&r>>>0<p>>>0:0){c[u>>2]=s+q;d=(c[1945]|0)+q|0;e=r+8|0;if(!(e&7))e=0;else e=0-e&7;H=d-e|0;c[1948]=r+e;c[1945]=H;c[r+(e+4)>>2]=H|1;c[r+(d+4)>>2]=40;c[1949]=c[2064];break}if(p>>>0<(c[1946]|0)>>>0)c[1946]=p;t=p+q|0;s=8216|0;while(1){if((c[s>>2]|0)==(t|0)){o=224;break}u=c[s+8>>2]|0;if(!u)break;else s=u}if((o|0)==224?(c[s+12>>2]&8|0)==0:0){c[s>>2]=p;h=s+4|0;c[h>>2]=(c[h>>2]|0)+q;h=p+8|0;if(!(h&7))h=0;else h=0-h&7;j=p+(q+8)|0;if(!(j&7))n=0;else n=0-j&7;o=p+(n+q)|0;j=h+a|0;k=p+j|0;m=o-(p+h)-a|0;c[p+(h+4)>>2]=a|3;h:do if((o|0)!=(c[1948]|0)){if((o|0)==(c[1947]|0)){H=(c[1944]|0)+m|0;c[1944]=H;c[1947]=k;c[p+(j+4)>>2]=H|1;c[p+(H+j)>>2]=H;break}r=q+4|0;t=c[p+(r+n)>>2]|0;if((t&3|0)==1){a=t&-8;s=t>>>3;i:do if(t>>>0>=256){l=c[p+((n|24)+q)>>2]|0;u=c[p+(q+12+n)>>2]|0;do if((u|0)==(o|0)){u=n|16;t=p+(r+u)|0;s=c[t>>2]|0;if(!s){t=p+(u+q)|0;s=c[t>>2]|0;if(!s){g=0;break}}while(1){u=s+20|0;v=c[u>>2]|0;if(v){s=v;t=u;continue}u=s+16|0;v=c[u>>2]|0;if(!v)break;else{s=v;t=u}}if(t>>>0<(c[1946]|0)>>>0)ua();else{c[t>>2]=0;g=s;break}}else{t=c[p+((n|8)+q)>>2]|0;if(t>>>0<(c[1946]|0)>>>0)ua();v=t+12|0;if((c[v>>2]|0)!=(o|0))ua();s=u+8|0;if((c[s>>2]|0)==(o|0)){c[v>>2]=u;c[s>>2]=t;g=u;break}else ua()}while(0);if(!l)break;t=c[p+(q+28+n)>>2]|0;s=8072+(t<<2)|0;do if((o|0)!=(c[s>>2]|0)){if(l>>>0<(c[1946]|0)>>>0)ua();s=l+16|0;if((c[s>>2]|0)==(o|0))c[s>>2]=g;else c[l+20>>2]=g;if(!g)break i}else{c[s>>2]=g;if(g)break;c[1943]=c[1943]&~(1<<t);break i}while(0);if(g>>>0<(c[1946]|0)>>>0)ua();c[g+24>>2]=l;l=n|16;o=c[p+(l+q)>>2]|0;do if(o)if(o>>>0<(c[1946]|0)>>>0)ua();else{c[g+16>>2]=o;c[o+24>>2]=g;break}while(0);l=c[p+(r+l)>>2]|0;if(!l)break;if(l>>>0<(c[1946]|0)>>>0)ua();else{c[g+20>>2]=l;c[l+24>>2]=g;break}}else{r=c[p+((n|8)+q)>>2]|0;g=c[p+(q+12+n)>>2]|0;t=7808+(s<<1<<2)|0;do if((r|0)!=(t|0)){if(r>>>0<(c[1946]|0)>>>0)ua();if((c[r+12>>2]|0)==(o|0))break;ua()}while(0);if((g|0)==(r|0)){c[1942]=c[1942]&~(1<<s);break}do if((g|0)==(t|0))l=g+8|0;else{if(g>>>0<(c[1946]|0)>>>0)ua();s=g+8|0;if((c[s>>2]|0)==(o|0)){l=s;break}ua()}while(0);c[r+12>>2]=g;c[l>>2]=r}while(0);o=p+((a|n)+q)|0;m=a+m|0}g=o+4|0;c[g>>2]=c[g>>2]&-2;c[p+(j+4)>>2]=m|1;c[p+(m+j)>>2]=m;g=m>>>3;if(m>>>0<256){m=g<<1;d=7808+(m<<2)|0;l=c[1942]|0;g=1<<g;do if(!(l&g)){c[1942]=l|g;f=7808+(m+2<<2)|0;e=d}else{l=7808+(m+2<<2)|0;g=c[l>>2]|0;if(g>>>0>=(c[1946]|0)>>>0){f=l;e=g;break}ua()}while(0);c[f>>2]=k;c[e+12>>2]=k;c[p+(j+8)>>2]=e;c[p+(j+12)>>2]=d;break}e=m>>>8;do if(!e)e=0;else{if(m>>>0>16777215){e=31;break}G=(e+1048320|0)>>>16&8;H=e<<G;F=(H+520192|0)>>>16&4;H=H<<F;e=(H+245760|0)>>>16&2;e=14-(F|G|e)+(H<<e>>>15)|0;e=m>>>(e+7|0)&1|e<<1}while(0);l=8072+(e<<2)|0;c[p+(j+28)>>2]=e;c[p+(j+20)>>2]=0;c[p+(j+16)>>2]=0;f=c[1943]|0;g=1<<e;if(!(f&g)){c[1943]=f|g;c[l>>2]=k;c[p+(j+24)>>2]=l;c[p+(j+12)>>2]=k;c[p+(j+8)>>2]=k;break}l=c[l>>2]|0;if((e|0)==31)e=0;else e=25-(e>>>1)|0;j:do if((c[l+4>>2]&-8|0)!=(m|0)){e=m<<e;while(1){g=l+(e>>>31<<2)+16|0;f=c[g>>2]|0;if(!f)break;if((c[f+4>>2]&-8|0)==(m|0)){d=f;break j}else{e=e<<1;l=f}}if(g>>>0<(c[1946]|0)>>>0)ua();else{c[g>>2]=k;c[p+(j+24)>>2]=l;c[p+(j+12)>>2]=k;c[p+(j+8)>>2]=k;break h}}else d=l;while(0);f=d+8|0;e=c[f>>2]|0;g=c[1946]|0;if(d>>>0<g>>>0)ua();if(e>>>0<g>>>0)ua();else{c[e+12>>2]=k;c[f>>2]=k;c[p+(j+8)>>2]=e;c[p+(j+12)>>2]=d;c[p+(j+24)>>2]=0;break}}else{H=(c[1945]|0)+m|0;c[1945]=H;c[1948]=k;c[p+(j+4)>>2]=H|1}while(0);H=p+(h|8)|0;i=b;return H|0}e=8216|0;while(1){d=c[e>>2]|0;if(d>>>0<=r>>>0?(n=c[e+4>>2]|0,m=d+n|0,m>>>0>r>>>0):0)break;e=c[e+8>>2]|0}e=d+(n+ -39)|0;if(!(e&7))e=0;else e=0-e&7;d=d+(n+ -47+e)|0;d=d>>>0<(r+16|0)>>>0?r:d;e=d+8|0;f=p+8|0;if(!(f&7))f=0;else f=0-f&7;H=q+ -40-f|0;c[1948]=p+f;c[1945]=H;c[p+(f+4)>>2]=H|1;c[p+(q+ -36)>>2]=40;c[1949]=c[2064];c[d+4>>2]=27;c[e+0>>2]=c[2054];c[e+4>>2]=c[2055];c[e+8>>2]=c[2056];c[e+12>>2]=c[2057];c[2054]=p;c[2055]=q;c[2057]=0;c[2056]=e;e=d+28|0;c[e>>2]=7;if((d+32|0)>>>0<m>>>0)do{H=e;e=e+4|0;c[e>>2]=7}while((H+8|0)>>>0<m>>>0);if((d|0)!=(r|0)){d=d-r|0;e=r+(d+4)|0;c[e>>2]=c[e>>2]&-2;c[r+4>>2]=d|1;c[r+d>>2]=d;e=d>>>3;if(d>>>0<256){g=e<<1;d=7808+(g<<2)|0;f=c[1942]|0;e=1<<e;do if(!(f&e)){c[1942]=f|e;k=7808+(g+2<<2)|0;j=d}else{f=7808+(g+2<<2)|0;e=c[f>>2]|0;if(e>>>0>=(c[1946]|0)>>>0){k=f;j=e;break}ua()}while(0);c[k>>2]=r;c[j+12>>2]=r;c[r+8>>2]=j;c[r+12>>2]=d;break}e=d>>>8;if(e)if(d>>>0>16777215)e=31;else{G=(e+1048320|0)>>>16&8;H=e<<G;F=(H+520192|0)>>>16&4;H=H<<F;e=(H+245760|0)>>>16&2;e=14-(F|G|e)+(H<<e>>>15)|0;e=d>>>(e+7|0)&1|e<<1}else e=0;j=8072+(e<<2)|0;c[r+28>>2]=e;c[r+20>>2]=0;c[r+16>>2]=0;f=c[1943]|0;g=1<<e;if(!(f&g)){c[1943]=f|g;c[j>>2]=r;c[r+24>>2]=j;c[r+12>>2]=r;c[r+8>>2]=r;break}f=c[j>>2]|0;if((e|0)==31)e=0;else e=25-(e>>>1)|0;k:do if((c[f+4>>2]&-8|0)!=(d|0)){e=d<<e;while(1){j=f+(e>>>31<<2)+16|0;g=c[j>>2]|0;if(!g)break;if((c[g+4>>2]&-8|0)==(d|0)){h=g;break k}else{e=e<<1;f=g}}if(j>>>0<(c[1946]|0)>>>0)ua();else{c[j>>2]=r;c[r+24>>2]=f;c[r+12>>2]=r;c[r+8>>2]=r;break g}}else h=f;while(0);f=h+8|0;e=c[f>>2]|0;d=c[1946]|0;if(h>>>0<d>>>0)ua();if(e>>>0<d>>>0)ua();else{c[e+12>>2]=r;c[f>>2]=r;c[r+8>>2]=e;c[r+12>>2]=h;c[r+24>>2]=0;break}}}else{H=c[1946]|0;if((H|0)==0|p>>>0<H>>>0)c[1946]=p;c[2054]=p;c[2055]=q;c[2057]=0;c[1951]=c[2060];c[1950]=-1;d=0;do{H=d<<1;G=7808+(H<<2)|0;c[7808+(H+3<<2)>>2]=G;c[7808+(H+2<<2)>>2]=G;d=d+1|0}while((d|0)!=32);d=p+8|0;if(!(d&7))d=0;else d=0-d&7;H=q+ -40-d|0;c[1948]=p+d;c[1945]=H;c[p+(d+4)>>2]=H|1;c[p+(q+ -36)>>2]=40;c[1949]=c[2064]}while(0);d=c[1945]|0;if(d>>>0>a>>>0){G=d-a|0;c[1945]=G;H=c[1948]|0;c[1948]=H+a;c[H+(a+4)>>2]=G|1;c[H+4>>2]=a|3;H=H+8|0;i=b;return H|0}}c[(Ca()|0)>>2]=12;H=0;i=b;return H|0}function me(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;b=i;if(!a){i=b;return}q=a+ -8|0;r=c[1946]|0;if(q>>>0<r>>>0)ua();o=c[a+ -4>>2]|0;n=o&3;if((n|0)==1)ua();j=o&-8;h=a+(j+ -8)|0;do if(!(o&1)){u=c[q>>2]|0;if(!n){i=b;return}q=-8-u|0;o=a+q|0;n=u+j|0;if(o>>>0<r>>>0)ua();if((o|0)==(c[1947]|0)){d=a+(j+ -4)|0;if((c[d>>2]&3|0)!=3){d=o;m=n;break}c[1944]=n;c[d>>2]=c[d>>2]&-2;c[a+(q+4)>>2]=n|1;c[h>>2]=n;i=b;return}t=u>>>3;if(u>>>0<256){d=c[a+(q+8)>>2]|0;m=c[a+(q+12)>>2]|0;p=7808+(t<<1<<2)|0;if((d|0)!=(p|0)){if(d>>>0<r>>>0)ua();if((c[d+12>>2]|0)!=(o|0))ua()}if((m|0)==(d|0)){c[1942]=c[1942]&~(1<<t);d=o;m=n;break}if((m|0)!=(p|0)){if(m>>>0<r>>>0)ua();p=m+8|0;if((c[p>>2]|0)==(o|0))s=p;else ua()}else s=m+8|0;c[d+12>>2]=m;c[s>>2]=d;d=o;m=n;break}s=c[a+(q+24)>>2]|0;t=c[a+(q+12)>>2]|0;do if((t|0)==(o|0)){u=a+(q+20)|0;t=c[u>>2]|0;if(!t){u=a+(q+16)|0;t=c[u>>2]|0;if(!t){p=0;break}}while(1){w=t+20|0;v=c[w>>2]|0;if(v){t=v;u=w;continue}v=t+16|0;w=c[v>>2]|0;if(!w)break;else{t=w;u=v}}if(u>>>0<r>>>0)ua();else{c[u>>2]=0;p=t;break}}else{u=c[a+(q+8)>>2]|0;if(u>>>0<r>>>0)ua();r=u+12|0;if((c[r>>2]|0)!=(o|0))ua();v=t+8|0;if((c[v>>2]|0)==(o|0)){c[r>>2]=t;c[v>>2]=u;p=t;break}else ua()}while(0);if(s){t=c[a+(q+28)>>2]|0;r=8072+(t<<2)|0;if((o|0)==(c[r>>2]|0)){c[r>>2]=p;if(!p){c[1943]=c[1943]&~(1<<t);d=o;m=n;break}}else{if(s>>>0<(c[1946]|0)>>>0)ua();r=s+16|0;if((c[r>>2]|0)==(o|0))c[r>>2]=p;else c[s+20>>2]=p;if(!p){d=o;m=n;break}}if(p>>>0<(c[1946]|0)>>>0)ua();c[p+24>>2]=s;r=c[a+(q+16)>>2]|0;do if(r)if(r>>>0<(c[1946]|0)>>>0)ua();else{c[p+16>>2]=r;c[r+24>>2]=p;break}while(0);q=c[a+(q+20)>>2]|0;if(q)if(q>>>0<(c[1946]|0)>>>0)ua();else{c[p+20>>2]=q;c[q+24>>2]=p;d=o;m=n;break}else{d=o;m=n}}else{d=o;m=n}}else{d=q;m=j}while(0);if(d>>>0>=h>>>0)ua();n=a+(j+ -4)|0;o=c[n>>2]|0;if(!(o&1))ua();if(!(o&2)){if((h|0)==(c[1948]|0)){w=(c[1945]|0)+m|0;c[1945]=w;c[1948]=d;c[d+4>>2]=w|1;if((d|0)!=(c[1947]|0)){i=b;return}c[1947]=0;c[1944]=0;i=b;return}if((h|0)==(c[1947]|0)){w=(c[1944]|0)+m|0;c[1944]=w;c[1947]=d;c[d+4>>2]=w|1;c[d+w>>2]=w;i=b;return}m=(o&-8)+m|0;n=o>>>3;do if(o>>>0>=256){l=c[a+(j+16)>>2]|0;q=c[a+(j|4)>>2]|0;do if((q|0)==(h|0)){o=a+(j+12)|0;n=c[o>>2]|0;if(!n){o=a+(j+8)|0;n=c[o>>2]|0;if(!n){k=0;break}}while(1){p=n+20|0;q=c[p>>2]|0;if(q){n=q;o=p;continue}p=n+16|0;q=c[p>>2]|0;if(!q)break;else{n=q;o=p}}if(o>>>0<(c[1946]|0)>>>0)ua();else{c[o>>2]=0;k=n;break}}else{o=c[a+j>>2]|0;if(o>>>0<(c[1946]|0)>>>0)ua();p=o+12|0;if((c[p>>2]|0)!=(h|0))ua();n=q+8|0;if((c[n>>2]|0)==(h|0)){c[p>>2]=q;c[n>>2]=o;k=q;break}else ua()}while(0);if(l){n=c[a+(j+20)>>2]|0;o=8072+(n<<2)|0;if((h|0)==(c[o>>2]|0)){c[o>>2]=k;if(!k){c[1943]=c[1943]&~(1<<n);break}}else{if(l>>>0<(c[1946]|0)>>>0)ua();n=l+16|0;if((c[n>>2]|0)==(h|0))c[n>>2]=k;else c[l+20>>2]=k;if(!k)break}if(k>>>0<(c[1946]|0)>>>0)ua();c[k+24>>2]=l;h=c[a+(j+8)>>2]|0;do if(h)if(h>>>0<(c[1946]|0)>>>0)ua();else{c[k+16>>2]=h;c[h+24>>2]=k;break}while(0);h=c[a+(j+12)>>2]|0;if(h)if(h>>>0<(c[1946]|0)>>>0)ua();else{c[k+20>>2]=h;c[h+24>>2]=k;break}}}else{k=c[a+j>>2]|0;a=c[a+(j|4)>>2]|0;j=7808+(n<<1<<2)|0;if((k|0)!=(j|0)){if(k>>>0<(c[1946]|0)>>>0)ua();if((c[k+12>>2]|0)!=(h|0))ua()}if((a|0)==(k|0)){c[1942]=c[1942]&~(1<<n);break}if((a|0)!=(j|0)){if(a>>>0<(c[1946]|0)>>>0)ua();j=a+8|0;if((c[j>>2]|0)==(h|0))l=j;else ua()}else l=a+8|0;c[k+12>>2]=a;c[l>>2]=k}while(0);c[d+4>>2]=m|1;c[d+m>>2]=m;if((d|0)==(c[1947]|0)){c[1944]=m;i=b;return}}else{c[n>>2]=o&-2;c[d+4>>2]=m|1;c[d+m>>2]=m}h=m>>>3;if(m>>>0<256){a=h<<1;e=7808+(a<<2)|0;j=c[1942]|0;h=1<<h;if(j&h){h=7808+(a+2<<2)|0;a=c[h>>2]|0;if(a>>>0<(c[1946]|0)>>>0)ua();else{f=h;g=a}}else{c[1942]=j|h;f=7808+(a+2<<2)|0;g=e}c[f>>2]=d;c[g+12>>2]=d;c[d+8>>2]=g;c[d+12>>2]=e;i=b;return}f=m>>>8;if(f)if(m>>>0>16777215)f=31;else{v=(f+1048320|0)>>>16&8;w=f<<v;u=(w+520192|0)>>>16&4;w=w<<u;f=(w+245760|0)>>>16&2;f=14-(u|v|f)+(w<<f>>>15)|0;f=m>>>(f+7|0)&1|f<<1}else f=0;g=8072+(f<<2)|0;c[d+28>>2]=f;c[d+20>>2]=0;c[d+16>>2]=0;a=c[1943]|0;h=1<<f;a:do if(a&h){g=c[g>>2]|0;if((f|0)==31)f=0;else f=25-(f>>>1)|0;b:do if((c[g+4>>2]&-8|0)!=(m|0)){f=m<<f;a=g;while(1){h=a+(f>>>31<<2)+16|0;g=c[h>>2]|0;if(!g)break;if((c[g+4>>2]&-8|0)==(m|0)){e=g;break b}else{f=f<<1;a=g}}if(h>>>0<(c[1946]|0)>>>0)ua();else{c[h>>2]=d;c[d+24>>2]=a;c[d+12>>2]=d;c[d+8>>2]=d;break a}}else e=g;while(0);g=e+8|0;f=c[g>>2]|0;h=c[1946]|0;if(e>>>0<h>>>0)ua();if(f>>>0<h>>>0)ua();else{c[f+12>>2]=d;c[g>>2]=d;c[d+8>>2]=f;c[d+12>>2]=e;c[d+24>>2]=0;break}}else{c[1943]=a|h;c[g>>2]=d;c[d+24>>2]=g;c[d+12>>2]=d;c[d+8>>2]=d}while(0);w=(c[1950]|0)+ -1|0;c[1950]=w;if(!w)d=8224|0;else{i=b;return}while(1){d=c[d>>2]|0;if(!d)break;else d=d+8|0}c[1950]=-1;i=b;return}function ne(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;if(!a){e=le(b)|0;i=d;return e|0}if(b>>>0>4294967231){c[(Ca()|0)>>2]=12;e=0;i=d;return e|0}if(b>>>0<11)e=16;else e=b+11&-8;e=oe(a+ -8|0,e)|0;if(e){e=e+8|0;i=d;return e|0}e=le(b)|0;if(!e){e=0;i=d;return e|0}f=c[a+ -4>>2]|0;f=(f&-8)-((f&3|0)==0?8:4)|0;xe(e|0,a|0,(f>>>0<b>>>0?f:b)|0)|0;me(a);i=d;return e|0}function oe(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+4|0;g=c[e>>2]|0;j=g&-8;f=a+j|0;l=c[1946]|0;if(a>>>0<l>>>0)ua();n=g&3;if(!((n|0)!=1&a>>>0<f>>>0))ua();h=a+(j|4)|0;o=c[h>>2]|0;if(!(o&1))ua();if(!n){if(b>>>0<256){q=0;i=d;return q|0}if(j>>>0>=(b+4|0)>>>0?(j-b|0)>>>0<=c[2062]<<1>>>0:0){q=a;i=d;return q|0}q=0;i=d;return q|0}if(j>>>0>=b>>>0){f=j-b|0;if(f>>>0<=15){q=a;i=d;return q|0}c[e>>2]=g&1|b|2;c[a+(b+4)>>2]=f|3;c[h>>2]=c[h>>2]|1;pe(a+b|0,f);q=a;i=d;return q|0}if((f|0)==(c[1948]|0)){f=(c[1945]|0)+j|0;if(f>>>0<=b>>>0){q=0;i=d;return q|0}q=f-b|0;c[e>>2]=g&1|b|2;c[a+(b+4)>>2]=q|1;c[1948]=a+b;c[1945]=q;q=a;i=d;return q|0}if((f|0)==(c[1947]|0)){h=(c[1944]|0)+j|0;if(h>>>0<b>>>0){q=0;i=d;return q|0}f=h-b|0;if(f>>>0>15){c[e>>2]=g&1|b|2;c[a+(b+4)>>2]=f|1;c[a+h>>2]=f;q=a+(h+4)|0;c[q>>2]=c[q>>2]&-2;b=a+b|0}else{c[e>>2]=g&1|h|2;b=a+(h+4)|0;c[b>>2]=c[b>>2]|1;b=0;f=0}c[1944]=f;c[1947]=b;q=a;i=d;return q|0}if(o&2){q=0;i=d;return q|0}h=(o&-8)+j|0;if(h>>>0<b>>>0){q=0;i=d;return q|0}g=h-b|0;n=o>>>3;do if(o>>>0>=256){m=c[a+(j+24)>>2]|0;o=c[a+(j+12)>>2]|0;do if((o|0)==(f|0)){o=a+(j+20)|0;n=c[o>>2]|0;if(!n){o=a+(j+16)|0;n=c[o>>2]|0;if(!n){k=0;break}}while(1){q=n+20|0;p=c[q>>2]|0;if(p){n=p;o=q;continue}q=n+16|0;p=c[q>>2]|0;if(!p)break;else{n=p;o=q}}if(o>>>0<l>>>0)ua();else{c[o>>2]=0;k=n;break}}else{n=c[a+(j+8)>>2]|0;if(n>>>0<l>>>0)ua();p=n+12|0;if((c[p>>2]|0)!=(f|0))ua();l=o+8|0;if((c[l>>2]|0)==(f|0)){c[p>>2]=o;c[l>>2]=n;k=o;break}else ua()}while(0);if(m){l=c[a+(j+28)>>2]|0;n=8072+(l<<2)|0;if((f|0)==(c[n>>2]|0)){c[n>>2]=k;if(!k){c[1943]=c[1943]&~(1<<l);break}}else{if(m>>>0<(c[1946]|0)>>>0)ua();l=m+16|0;if((c[l>>2]|0)==(f|0))c[l>>2]=k;else c[m+20>>2]=k;if(!k)break}if(k>>>0<(c[1946]|0)>>>0)ua();c[k+24>>2]=m;f=c[a+(j+16)>>2]|0;do if(f)if(f>>>0<(c[1946]|0)>>>0)ua();else{c[k+16>>2]=f;c[f+24>>2]=k;break}while(0);f=c[a+(j+20)>>2]|0;if(f)if(f>>>0<(c[1946]|0)>>>0)ua();else{c[k+20>>2]=f;c[f+24>>2]=k;break}}}else{k=c[a+(j+8)>>2]|0;j=c[a+(j+12)>>2]|0;o=7808+(n<<1<<2)|0;if((k|0)!=(o|0)){if(k>>>0<l>>>0)ua();if((c[k+12>>2]|0)!=(f|0))ua()}if((j|0)==(k|0)){c[1942]=c[1942]&~(1<<n);break}if((j|0)!=(o|0)){if(j>>>0<l>>>0)ua();l=j+8|0;if((c[l>>2]|0)==(f|0))m=l;else ua()}else m=j+8|0;c[k+12>>2]=j;c[m>>2]=k}while(0);if(g>>>0<16){c[e>>2]=h|c[e>>2]&1|2;q=a+(h|4)|0;c[q>>2]=c[q>>2]|1;q=a;i=d;return q|0}else{c[e>>2]=c[e>>2]&1|b|2;c[a+(b+4)>>2]=g|3;q=a+(h|4)|0;c[q>>2]=c[q>>2]|1;pe(a+b|0,g);q=a;i=d;return q|0}return 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,p=0,q=0,r=0,s=0,t=0,u=0,v=0;d=i;h=a+b|0;l=c[a+4>>2]|0;do if(!(l&1)){p=c[a>>2]|0;if(!(l&3)){i=d;return}l=a+(0-p)|0;m=p+b|0;q=c[1946]|0;if(l>>>0<q>>>0)ua();if((l|0)==(c[1947]|0)){e=a+(b+4)|0;if((c[e>>2]&3|0)!=3){e=l;n=m;break}c[1944]=m;c[e>>2]=c[e>>2]&-2;c[a+(4-p)>>2]=m|1;c[h>>2]=m;i=d;return}s=p>>>3;if(p>>>0<256){e=c[a+(8-p)>>2]|0;n=c[a+(12-p)>>2]|0;o=7808+(s<<1<<2)|0;if((e|0)!=(o|0)){if(e>>>0<q>>>0)ua();if((c[e+12>>2]|0)!=(l|0))ua()}if((n|0)==(e|0)){c[1942]=c[1942]&~(1<<s);e=l;n=m;break}if((n|0)!=(o|0)){if(n>>>0<q>>>0)ua();o=n+8|0;if((c[o>>2]|0)==(l|0))r=o;else ua()}else r=n+8|0;c[e+12>>2]=n;c[r>>2]=e;e=l;n=m;break}r=c[a+(24-p)>>2]|0;t=c[a+(12-p)>>2]|0;do if((t|0)==(l|0)){u=16-p|0;t=a+(u+4)|0;s=c[t>>2]|0;if(!s){t=a+u|0;s=c[t>>2]|0;if(!s){o=0;break}}while(1){u=s+20|0;v=c[u>>2]|0;if(v){s=v;t=u;continue}v=s+16|0;u=c[v>>2]|0;if(!u)break;else{s=u;t=v}}if(t>>>0<q>>>0)ua();else{c[t>>2]=0;o=s;break}}else{s=c[a+(8-p)>>2]|0;if(s>>>0<q>>>0)ua();u=s+12|0;if((c[u>>2]|0)!=(l|0))ua();q=t+8|0;if((c[q>>2]|0)==(l|0)){c[u>>2]=t;c[q>>2]=s;o=t;break}else ua()}while(0);if(r){q=c[a+(28-p)>>2]|0;s=8072+(q<<2)|0;if((l|0)==(c[s>>2]|0)){c[s>>2]=o;if(!o){c[1943]=c[1943]&~(1<<q);e=l;n=m;break}}else{if(r>>>0<(c[1946]|0)>>>0)ua();q=r+16|0;if((c[q>>2]|0)==(l|0))c[q>>2]=o;else c[r+20>>2]=o;if(!o){e=l;n=m;break}}if(o>>>0<(c[1946]|0)>>>0)ua();c[o+24>>2]=r;p=16-p|0;q=c[a+p>>2]|0;do if(q)if(q>>>0<(c[1946]|0)>>>0)ua();else{c[o+16>>2]=q;c[q+24>>2]=o;break}while(0);p=c[a+(p+4)>>2]|0;if(p)if(p>>>0<(c[1946]|0)>>>0)ua();else{c[o+20>>2]=p;c[p+24>>2]=o;e=l;n=m;break}else{e=l;n=m}}else{e=l;n=m}}else{e=a;n=b}while(0);l=c[1946]|0;if(h>>>0<l>>>0)ua();m=a+(b+4)|0;o=c[m>>2]|0;if(!(o&2)){if((h|0)==(c[1948]|0)){v=(c[1945]|0)+n|0;c[1945]=v;c[1948]=e;c[e+4>>2]=v|1;if((e|0)!=(c[1947]|0)){i=d;return}c[1947]=0;c[1944]=0;i=d;return}if((h|0)==(c[1947]|0)){v=(c[1944]|0)+n|0;c[1944]=v;c[1947]=e;c[e+4>>2]=v|1;c[e+v>>2]=v;i=d;return}n=(o&-8)+n|0;m=o>>>3;do if(o>>>0>=256){k=c[a+(b+24)>>2]|0;m=c[a+(b+12)>>2]|0;do if((m|0)==(h|0)){o=a+(b+20)|0;m=c[o>>2]|0;if(!m){o=a+(b+16)|0;m=c[o>>2]|0;if(!m){j=0;break}}while(1){q=m+20|0;p=c[q>>2]|0;if(p){m=p;o=q;continue}p=m+16|0;q=c[p>>2]|0;if(!q)break;else{m=q;o=p}}if(o>>>0<l>>>0)ua();else{c[o>>2]=0;j=m;break}}else{o=c[a+(b+8)>>2]|0;if(o>>>0<l>>>0)ua();l=o+12|0;if((c[l>>2]|0)!=(h|0))ua();p=m+8|0;if((c[p>>2]|0)==(h|0)){c[l>>2]=m;c[p>>2]=o;j=m;break}else ua()}while(0);if(k){l=c[a+(b+28)>>2]|0;m=8072+(l<<2)|0;if((h|0)==(c[m>>2]|0)){c[m>>2]=j;if(!j){c[1943]=c[1943]&~(1<<l);break}}else{if(k>>>0<(c[1946]|0)>>>0)ua();l=k+16|0;if((c[l>>2]|0)==(h|0))c[l>>2]=j;else c[k+20>>2]=j;if(!j)break}if(j>>>0<(c[1946]|0)>>>0)ua();c[j+24>>2]=k;h=c[a+(b+16)>>2]|0;do if(h)if(h>>>0<(c[1946]|0)>>>0)ua();else{c[j+16>>2]=h;c[h+24>>2]=j;break}while(0);h=c[a+(b+20)>>2]|0;if(h)if(h>>>0<(c[1946]|0)>>>0)ua();else{c[j+20>>2]=h;c[h+24>>2]=j;break}}}else{j=c[a+(b+8)>>2]|0;a=c[a+(b+12)>>2]|0;b=7808+(m<<1<<2)|0;if((j|0)!=(b|0)){if(j>>>0<l>>>0)ua();if((c[j+12>>2]|0)!=(h|0))ua()}if((a|0)==(j|0)){c[1942]=c[1942]&~(1<<m);break}if((a|0)!=(b|0)){if(a>>>0<l>>>0)ua();b=a+8|0;if((c[b>>2]|0)==(h|0))k=b;else ua()}else k=a+8|0;c[j+12>>2]=a;c[k>>2]=j}while(0);c[e+4>>2]=n|1;c[e+n>>2]=n;if((e|0)==(c[1947]|0)){c[1944]=n;i=d;return}}else{c[m>>2]=o&-2;c[e+4>>2]=n|1;c[e+n>>2]=n}a=n>>>3;if(n>>>0<256){b=a<<1;h=7808+(b<<2)|0;j=c[1942]|0;a=1<<a;if(j&a){b=7808+(b+2<<2)|0;a=c[b>>2]|0;if(a>>>0<(c[1946]|0)>>>0)ua();else{g=b;f=a}}else{c[1942]=j|a;g=7808+(b+2<<2)|0;f=h}c[g>>2]=e;c[f+12>>2]=e;c[e+8>>2]=f;c[e+12>>2]=h;i=d;return}f=n>>>8;if(f)if(n>>>0>16777215)f=31;else{u=(f+1048320|0)>>>16&8;v=f<<u;t=(v+520192|0)>>>16&4;v=v<<t;f=(v+245760|0)>>>16&2;f=14-(t|u|f)+(v<<f>>>15)|0;f=n>>>(f+7|0)&1|f<<1}else f=0;a=8072+(f<<2)|0;c[e+28>>2]=f;c[e+20>>2]=0;c[e+16>>2]=0;h=c[1943]|0;g=1<<f;if(!(h&g)){c[1943]=h|g;c[a>>2]=e;c[e+24>>2]=a;c[e+12>>2]=e;c[e+8>>2]=e;i=d;return}g=c[a>>2]|0;if((f|0)==31)f=0;else f=25-(f>>>1)|0;a:do if((c[g+4>>2]&-8|0)!=(n|0)){f=n<<f;a=g;while(1){h=a+(f>>>31<<2)+16|0;g=c[h>>2]|0;if(!g)break;if((c[g+4>>2]&-8|0)==(n|0))break a;else{f=f<<1;a=g}}if(h>>>0<(c[1946]|0)>>>0)ua();c[h>>2]=e;c[e+24>>2]=a;c[e+12>>2]=e;c[e+8>>2]=e;i=d;return}while(0);f=g+8|0;a=c[f>>2]|0;h=c[1946]|0;if(g>>>0<h>>>0)ua();if(a>>>0<h>>>0)ua();c[a+12>>2]=e;c[f>>2]=e;c[e+8>>2]=a;c[e+12>>2]=g;c[e+24>>2]=0;i=d;return}function qe(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;if(!d){h=0;i=f;return h|0}while(1){g=a[b>>0]|0;h=a[c>>0]|0;if(g<<24>>24!=h<<24>>24)break;d=d+ -1|0;if(!d){b=0;e=5;break}else{b=b+1|0;c=c+1|0}}if((e|0)==5){i=f;return b|0}h=(g&255)-(h&255)|0;i=f;return h|0}function re(){}function se(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b>>c;return a>>>c|(b&(1<<c)-1)<<32-c}D=(b|0)<0?-1:0;return b>>c-32|0}function te(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=b-d-(c>>>0>a>>>0|0)>>>0;return(D=b,a-c>>>0|0)|0}function ue(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=a+c>>>0;return(D=b+d+(c>>>0<a>>>0|0)>>>0,c|0)|0}function ve(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;i=b&3;h=d|d<<8|d<<16|d<<24;g=f&~3;if(i){i=b+4-i|0;while((b|0)<(i|0)){a[b>>0]=d;b=b+1|0}}while((b|0)<(g|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 we(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b<<c|(a&(1<<c)-1<<32-c)>>>32-c;return a<<c}D=a<<c-32;return 0}function xe(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;if((e|0)>=4096)return ya(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 ye(b){b=b|0;var c=0;c=b;while(a[c>>0]|0)c=c+1|0;return c-b|0}function ze(a){a=a|0;return(a&255)<<24|(a>>8&255)<<16|(a>>16&255)<<8|a>>>24|0}function Ae(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b>>>c;return a>>>c|(b&(1<<c)-1)<<32-c}D=0;return b>>>c-32|0}function Be(b){b=b|0;var c=0;c=a[n+(b>>>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 Ce(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 De(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=a&65535;d=b&65535;c=$(d,f)|0;e=a>>>16;d=(c>>>16)+($(d,e)|0)|0;b=b>>>16;a=$(b,f)|0;return(D=(d>>>16)+($(b,e)|0)+(((d&65535)+a|0)>>>16)|0,d+a<<16|c&65535|0)|0}function Ee(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;j=b>>31|((b|0)<0?-1:0)<<1;i=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;f=d>>31|((d|0)<0?-1:0)<<1;e=((d|0)<0?-1:0)>>31|((d|0)<0?-1:0)<<1;h=te(j^a,i^b,j,i)|0;g=D;b=f^j;a=e^i;a=te((Je(h,g,te(f^c,e^d,f,e)|0,D,0)|0)^b,D^a,b,a)|0;return a|0}function Fe(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+8|0;j=f|0;h=b>>31|((b|0)<0?-1:0)<<1;g=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;l=e>>31|((e|0)<0?-1:0)<<1;k=((e|0)<0?-1:0)>>31|((e|0)<0?-1:0)<<1;b=te(h^a,g^b,h,g)|0;a=D;Je(b,a,te(l^d,k^e,l,k)|0,D,j)|0;a=te(c[j>>2]^h,c[j+4>>2]^g,h,g)|0;b=D;i=f;return(D=b,a)|0}function Ge(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a;f=c;a=De(e,f)|0;c=D;return(D=($(b,f)|0)+($(d,e)|0)+c|c&0,a|0|0)|0}function He(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=Je(a,b,c,d,0)|0;return a|0}function Ie(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+8|0;f=g|0;Je(a,b,d,e,f)|0;i=g;return(D=c[f+4>>2]|0,c[f>>2]|0)|0}function Je(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;h=a;j=b;i=j;l=d;g=e;k=g;if(!i){g=(f|0)!=0;if(!k){if(g){c[f>>2]=(h>>>0)%(l>>>0);c[f+4>>2]=0}k=0;m=(h>>>0)/(l>>>0)>>>0;return(D=k,m)|0}else{if(!g){l=0;m=0;return(D=l,m)|0}c[f>>2]=a|0;c[f+4>>2]=b&0;l=0;m=0;return(D=l,m)|0}}m=(k|0)==0;do if(l){if(!m){k=(Be(k|0)|0)-(Be(i|0)|0)|0;if(k>>>0<=31){m=k+1|0;l=31-k|0;a=k-31>>31;j=m;b=h>>>(m>>>0)&a|i<<l;a=i>>>(m>>>0)&a;k=0;l=h<<l;break}if(!f){l=0;m=0;return(D=l,m)|0}c[f>>2]=a|0;c[f+4>>2]=j|b&0;l=0;m=0;return(D=l,m)|0}k=l-1|0;if(k&l){l=(Be(l|0)|0)+33-(Be(i|0)|0)|0;p=64-l|0;m=32-l|0;n=m>>31;o=l-32|0;a=o>>31;j=l;b=m-1>>31&i>>>(o>>>0)|(i<<m|h>>>(l>>>0))&a;a=a&i>>>(l>>>0);k=h<<p&n;l=(i<<p|h>>>(o>>>0))&n|h<<m&l-33>>31;break}if(f){c[f>>2]=k&h;c[f+4>>2]=0}if((l|0)==1){o=j|b&0;p=a|0|0;return(D=o,p)|0}else{p=Ce(l|0)|0;o=i>>>(p>>>0)|0;p=i<<32-p|h>>>(p>>>0)|0;return(D=o,p)|0}}else{if(m){if(f){c[f>>2]=(i>>>0)%(l>>>0);c[f+4>>2]=0}o=0;p=(i>>>0)/(l>>>0)>>>0;return(D=o,p)|0}if(!h){if(f){c[f>>2]=0;c[f+4>>2]=(i>>>0)%(k>>>0)}o=0;p=(i>>>0)/(k>>>0)>>>0;return(D=o,p)|0}l=k-1|0;if(!(l&k)){if(f){c[f>>2]=a|0;c[f+4>>2]=l&i|b&0}o=0;p=i>>>((Ce(k|0)|0)>>>0);return(D=o,p)|0}k=(Be(k|0)|0)-(Be(i|0)|0)|0;if(k>>>0<=30){a=k+1|0;l=31-k|0;j=a;b=i<<l|h>>>(a>>>0);a=i>>>(a>>>0);k=0;l=h<<l;break}if(!f){o=0;p=0;return(D=o,p)|0}c[f>>2]=a|0;c[f+4>>2]=j|b&0;o=0;p=0;return(D=o,p)|0}while(0);if(!j){g=l;e=0;i=0}else{h=d|0|0;g=g|e&0;e=ue(h,g,-1,-1)|0;d=D;i=0;do{m=l;l=k>>>31|l<<1;k=i|k<<1;m=b<<1|m>>>31|0;n=b>>>31|a<<1|0;te(e,d,m,n)|0;p=D;o=p>>31|((p|0)<0?-1:0)<<1;i=o&1;b=te(m,n,o&h,(((p|0)<0?-1:0)>>31|((p|0)<0?-1:0)<<1)&g)|0;a=D;j=j-1|0}while((j|0)!=0);g=l;e=0}h=0;if(f){c[f>>2]=b;c[f+4>>2]=a}o=(k|0)>>>31|(g|h)<<1|(h<<1|k>>>31)&0|e;p=(k<<1|0>>>31)&-2|i;return(D=o,p)|0}function Ke(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ea[a&1](b|0,c|0,d|0)|0}function Le(a,b,c,d,e,f,g,h,i,j,k){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;k=k|0;Fa[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)}function Me(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;Ga[a&7](b|0,c|0,d|0,e|0,f|0,g|0,h|0)}function Ne(a,b,c,d,e,f,g,h,i,j,k,l,m,n){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;k=k|0;l=l|0;m=m|0;n=n|0;Ha[a&3](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)}function Oe(a,b){a=a|0;b=b|0;Ia[a&1](b|0)}function Pe(a,b,c){a=a|0;b=b|0;c=c|0;Ja[a&15](b|0,c|0)}function Qe(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return Ka[a&1](b|0,c|0,d|0,e|0,f|0,g|0)|0}function Re(a,b){a=a|0;b=b|0;return La[a&7](b|0)|0}function Se(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Ma[a&7](b|0,c|0,d|0)}function Te(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;Na[a&7](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function Ue(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Oa[a&1](b|0,c|0,d|0,e|0)|0}function Ve(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;Pa[a&3](b|0,c|0,d|0,e|0,f|0,g|0)}function We(a,b,c){a=a|0;b=b|0;c=c|0;return Qa[a&1](b|0,c|0)|0}function Xe(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 Ra[a&1](b|0,c|0,d|0,e|0,f|0)|0}function Ye(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;Sa[a&15](b|0,c|0,d|0,e|0)}function Ze(a,b,c){a=a|0;b=b|0;c=c|0;aa(0);return 0}function _e(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;aa(1)}function $e(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;aa(2)}function af(a,b,c,d,e,f,g,h,i,j,k,l,m){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;k=k|0;l=l|0;m=m|0;aa(3)}function bf(a){a=a|0;aa(4)}function cf(a,b){a=a|0;b=b|0;aa(5)}function df(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;aa(6);return 0}function ef(a){a=a|0;aa(7);return 0}function ff(a,b,c){a=a|0;b=b|0;c=c|0;aa(8)}function gf(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;aa(9)}function hf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;aa(10);return 0}function jf(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;aa(11)}function kf(a,b){a=a|0;b=b|0;aa(12);return 0}function lf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;aa(13);return 0}function mf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;aa(14)}
// EMSCRIPTEN_END_FUNCS
var Ea=[Ze,zd];var Fa=[_e,ed];var Ga=[$e,lb,mb,nb,Qc,hd,id,$e];var Ha=[af,fd,gd,af];var Ia=[bf,ic];var Ja=[cf,Xc,ad,bd,cd,dd,sd,Wd,ee,cf,cf,cf,cf,cf,cf,cf];var Ka=[df,xd];var La=[ef,fc,hc,Yd,Xd,ef,ef,ef];var Ma=[ff,Vc,Wc,Yc,Zc,_c,$c,ff];var Na=[gf,Bc,Cc,Dc,Ec,gf,gf,gf];var Oa=[hf,gc];var Pa=[jf,Ac,jd,kd];var Qa=[kf,lc];var Ra=[lf,yd];var Sa=[mf,sc,tc,uc,vc,wc,xc,yc,zc,Rc,Sc,Tc,Uc,mf,mf,mf];return{_i64Subtract:te,_free:me,_bpg_decoder_decode:hb,_bpg_decoder_start:fb,_realloc:ne,_i64Add:ue,_bpg_decoder_open:gb,_bitshift64Ashr:se,_memset:ve,_bpg_decoder_close:jb,_strlen:ye,_malloc:le,_memcpy:xe,_bpg_decoder_get_line:cb,_bpg_decoder_get_info:bb,_llvm_bswap_i32:ze,_bitshift64Shl:we,runPostSets:re,stackAlloc:Ta,stackSave:Ua,stackRestore:Va,setThrew:Wa,setTempRet0:Za,getTempRet0:_a,dynCall_iiii:Ke,dynCall_viiiiiiiiii:Le,dynCall_viiiiiii:Me,dynCall_viiiiiiiiiiiii:Ne,dynCall_vi:Oe,dynCall_vii:Pe,dynCall_iiiiiii:Qe,dynCall_ii:Re,dynCall_viii:Se,dynCall_viiiiiiii:Te,dynCall_iiiii:Ue,dynCall_viiiiii:Ve,dynCall_iii:We,dynCall_iiiiii:Xe,dynCall_viiii:Ye}})
// EMSCRIPTEN_END_ASM
(n.O,n.P,U),Xa=n._i64Subtract=$._i64Subtract,xa=n._free=$._free;n._bpg_decoder_decode=$._bpg_decoder_decode;n._bpg_decoder_start=$._bpg_decoder_start;n._realloc=$._realloc;var Ya=n._i64Add=$._i64Add;n._bpg_decoder_open=$._bpg_decoder_open;var Va=n._bitshift64Ashr=$._bitshift64Ashr,Za=n._memset=$._memset;
n._bpg_decoder_close=$._bpg_decoder_close;var eb=n._strlen=$._strlen,va=n._malloc=$._malloc,bb=n._memcpy=$._memcpy;n._bpg_decoder_get_line=$._bpg_decoder_get_line;n._bpg_decoder_get_info=$._bpg_decoder_get_info;var fb=n._llvm_bswap_i32=$._llvm_bswap_i32,$a=n._bitshift64Shl=$._bitshift64Shl;n.runPostSets=$.runPostSets;n.dynCall_iiii=$.dynCall_iiii;n.dynCall_viiiiiiiiii=$.dynCall_viiiiiiiiii;n.dynCall_viiiiiii=$.dynCall_viiiiiii;n.dynCall_viiiiiiiiiiiii=$.dynCall_viiiiiiiiiiiii;n.dynCall_vi=$.dynCall_vi;
n.dynCall_vii=$.dynCall_vii;n.dynCall_iiiiiii=$.dynCall_iiiiiii;n.dynCall_ii=$.dynCall_ii;n.dynCall_viii=$.dynCall_viii;n.dynCall_viiiiiiii=$.dynCall_viiiiiiii;n.dynCall_iiiii=$.dynCall_iiiii;n.dynCall_viiiiii=$.dynCall_viiiiii;n.dynCall_iii=$.dynCall_iii;n.dynCall_iiiiii=$.dynCall_iiiiii;n.dynCall_viiii=$.dynCall_viiii;B.o=$.stackAlloc;B.D=$.stackSave;B.J=$.stackRestore;B.ca=$.setTempRet0;B.Z=$.getTempRet0;
if(Y)if("function"===typeof n.locateFile?Y=n.locateFile(Y):n.memoryInitializerPrefixURL&&(Y=n.memoryInitializerPrefixURL+Y),w||ba){var ib=n.readBinary(Y);S.set(ib,Ba)}else Sa(),Browser.ka(Y,function(a){S.set(a,Ba);Ta()},function(){b("could not load memory initializer "+Y)});function y(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}y.prototype=Error();var jb,kb=k,X=function lb(){!n.calledRun&&mb&&nb();n.calledRun||(X=lb)};
n.callMain=n.la=function(a){function d(){for(var a=0;3>a;a++)e.push(0)}z(0==W,"cannot call main when async dependencies remain! (listen on __ATMAIN__)");z(0==Ia.length,"cannot call main when preRun functions remain to be called");a=a||[];Na||(Na=j,V(Ja));var c=a.length+1,e=[P(Qa(n.thisProgram),"i8",0)];d();for(var f=0;f<c-1;f+=1)e.push(P(Qa(a[f]),"i8",0)),d();e.push(0);e=P(e,"i32",0);jb=A;try{var g=n._main(c,e,0);ob(g)}catch(h){h instanceof y||("SimulateInfiniteLoop"==h?n.noExitRuntime=j:(h&&("object"===
typeof h&&h.stack)&&n.e("exception thrown: "+[h,h.stack]),b(h)))}finally{}};
function nb(a){function d(){if(!n.calledRun&&(n.calledRun=j,!J)){Na||(Na=j,V(Ja));V(Ka);x&&kb!==k&&n.e("pre-main prep time: "+(Date.now()-kb)+" ms");n._main&&mb&&n.callMain(a);if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)Pa(n.postRun.shift());V(Ma)}}a=a||n.arguments;kb===k&&(kb=Date.now());if(!(0<W)){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)Oa(n.preRun.shift());V(Ia);!(0<W)&&!n.calledRun&&(n.setStatus?(n.setStatus("Running..."),
setTimeout(function(){setTimeout(function(){n.setStatus("")},1);d()},1)):d())}}n.run=n.va=nb;function ob(a){n.noExitRuntime||(J=j,A=jb,V(La),w?(process.stdout.once("drain",function(){process.exit(a)}),console.log(" "),setTimeout(function(){process.exit(a)},500)):ba&&"function"===typeof quit&&quit(a),b(new y(a)))}n.exit=n.ma=ob;function E(a){a&&(n.print(a),n.e(a));J=j;b("abort() at "+ya()+"\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.")}
n.abort=n.abort=E;if(n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);0<n.preInit.length;)n.preInit.pop()();var mb=j;n.noInitialRun&&(mb=l);nb();window.BPGDecoder=function(a){this.X=a;this.onload=this.imageData=k};
window.BPGDecoder.prototype={I:n.cwrap("malloc","number",["number"]),G:n.cwrap("free","void",["number"]),U:n.cwrap("bpg_decoder_open","number",[]),R:n.cwrap("bpg_decoder_decode","number",["number","array","number"]),S:n.cwrap("bpg_decoder_get_info","number",["number","number"]),V:n.cwrap("bpg_decoder_start","number",["number","number"]),T:n.cwrap("bpg_decoder_get_line","number",["number","number"]),Q:n.cwrap("bpg_decoder_close","void",["number"]),load:function(a){var d=new XMLHttpRequest,c=this;d.open("get",
a,j);d.responseType="arraybuffer";d.onload=function(){var a=new Uint8Array(d.response),f,g,h,i,q,s,C,m,u;f=c.U();if(0>c.R(f,a,a.length))console.log("could not decode image");else{h=c.I(24);c.S(f,h);a=n.HEAPU32;g=a[h>>2];a=a[h+4>>2];c.G(h);c.V(f,1);q=c.I(4*g);h=c.X.createImageData(g,a);C=h.data;i=0;s=n.HEAPU8;g*=4;for(u=0;u<a;u++){c.T(f,q);for(m=0;m<g;m++)C[i++]=s[q+m]}c.G(q);c.Q(f);c.imageData=h;if(c.onload)c.onload()}};d.send()}};
window.onload=function(){var a,d,c,e,f,g,h;e=document.images;d=e.length;f=[];for(a=0;a<d;a++)c=e[a],g=c.src,".bpg"==g.substr(-4,4).toLowerCase()&&(f[f.length]=c);d=f.length;for(a=0;a<d;a++)c=f[a],g=c.src,e=document.createElement("canvas"),e.id=c.id,e.className=c.className,c.parentNode.replaceChild(e,c),h=e.getContext("2d"),c=new BPGDecoder(h),c.onload=function(a,c){var d=this.imageData;""===a.style.width&&(a.width=d.width);""===a.style.height&&(a.height=d.height);c.putImageData(d,0,0)}.bind(c,e,h),
c.load(g)};