Home | History | Annotate | Download | only in sqlite3

Lines Matching refs:Qa

3 "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=0;var o=0;var p=0;var q=0;var r=global.NaN,s=global.Infinity;var t=0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0,B=0.0;var C=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=global.Math.floor;var N=global.Math.abs;var O=global.Math.sqrt;var P=global.Math.pow;var Q=global.Math.cos;var R=global.Math.sin;var S=global.Math.tan;var T=global.Math.acos;var U=global.Math.asin;var V=global.Math.atan;var W=global.Math.atan2;var X=global.Math.exp;var Y=global.Math.log;var Z=global.Math.ceil;var _=global.Math.imul;var $=global.Math.min;var aa=global.Math.clz32;var ba=env.abort;var ca=env.assert;var da=env.nullFunc_iiiiiiii;var ea=env.nullFunc_iiii;var fa=env.nullFunc_viiiiii;var ga=env.nullFunc_vi;var ha=env.nullFunc_viiiii;var ia=env.nullFunc_dii;var ja=env.nullFunc_vid;var ka=env.nullFunc_di;var la=env.nullFunc_i;var ma=env.nullFunc_iiiiiiiiii;var na=env.nullFunc_vii;var oa=env.nullFunc_iiiiiii;var pa=env.nullFunc_ii;var qa=env.nullFunc_viii;var ra=env.nullFunc_v;var sa=env.nullFunc_iiiiiiiii;var ta=env.nullFunc_iiiii;var ua=env.nullFunc_viiii;var va=env.nullFunc_iii;var wa=env.nullFunc_iiid;var xa=env.nullFunc_iiiiii;var ya=env.invoke_iiiiiiii;var za=env.invoke_iiii;var Aa=env.invoke_viiiiii;var Ba=env.invoke_vi;var Ca=env.invoke_viiiii;var Da=env.invoke_dii;var Ea=env.invoke_vid;var Fa=env.invoke_di;var Ga=env.invoke_i;var Ha=env.invoke_iiiiiiiiii;var Ia=env.invoke_vii;var Ja=env.invoke_iiiiiii;var Ka=env.invoke_ii;var La=env.invoke_viii;var Ma=env.invoke_v;var Na=env.invoke_iiiiiiiii;var Oa=env.invoke_iiiii;var Pa=env.invoke_viiii;var Qa=env.invoke_iii;var Ra=env.invoke_iiid;var Sa=env.invoke_iiiiii;var Ta=env._dlerror;var Ua=env._utimes;var Va=env._getuid;var Wa=env._send;var Xa=env._dlsym;var Ya=env._mknod;var Za=env._chown;var _a=env._lseek;var $a=env._emscripten_set_main_loop_timing;var ab=env._access;var bb=env._fstat;var cb=env._chmod;var db=env._rmdir;var eb=env.___assert_fail;var fb=env._usleep;var gb=env.___buildEnvironment;var hb=env._fflush;var ib=env._pwrite;var jb=env._strerror_r;var kb=env._localtime_r;var lb=env._tzset;var mb=env._open;var nb=env._getpid;var ob=env._sbrk;var pb=env._fcntl;var qb=env._emscripten_memcpy_big;var rb=env._unlink;var sb=env._sysconf;var tb=env._fchmod;var ub=env.___setErrNo;var vb=env._ftruncate;var wb=env._mkdir;var xb=env._pread;var yb=env._mkport;var zb=env._dlopen;var Ab=env._dlclose;var Bb=env._write;var Cb=env._fsync;var Db=env.___errno_location;var Eb=env._stat;var Fb=env._recv;var Gb=env._geteuid;var Hb=env._getenv;var Ib=env._sleep;var Jb=env._emscripten_set_main_loop;var Kb=env._abort;var Lb=env._time;var Mb=env._fchown;var Nb=env._strerror;var Ob=env._gettimeofday;var Pb=env._munmap;var Qb=env._mmap;var Rb=env._localtime;var Sb=env._getcwd;var Tb=env._close;var Ub=env._read;var Vb=env._truncate;var Wb=0.0;
6 ;i=i+32|0;if((i|0)>=(j|0))ba();z=A;y=d+8|0;v=c[y>>2]|0;w=c[d>>2]|0;if(((a[d+450>>0]|0)==0?(k=d+16|0,!((a[k>>0]|0)!=0|(v|0)==0)):0)?(a[w+65>>0]|0)==0:0){a[k>>0]=1;k=c[w+24>>2]|0;u=(k&32|0)==0;eq(v,c[f>>2]|0);h=c[f>>2]|0;if((h|0)>0){t=f+4|0;s=(e|0)==0;p=(k&96|0)==0;q=(e|0)!=0;r=0;do{o=c[t>>2]|0;h=c[o+(r*20|0)>>2]|0;do if(h){k=c[o+(r*20|0)+4>>2]|0;if(k){fq(v,r,0,k,-1);break}k=a[h>>0]|0;if(k<<24>>24==-102){if(s)x=25}else if(!(k<<24>>24==-100&q))x=25;if((x|0)==25){x=0;k=c[o+(r*20|0)+8>>2]|0;if(!k){c[z>>2]=r+1;k=qh(w,34880,z)|0}else k=gh(w,k)|0;fq(v,r,0,k,75);break}n=b[h+32>>1]|0;k=n<<16>>16;m=c[e>>2]|0;a:do if((m|0)>0){g=c[h+28>>2]|0;l=0;while(1){h=l+1|0;if((c[e+(l*72|0)+48>>2]|0)==(g|0)){h=l;break a}if((h|0)<(m|0))l=h;else break}}else h=0;while(0);h=c[e+(h*72|0)+24>>2]|0;if(n<<16>>16<0)k=b[h+36>>1]|0;if((k|0)<0)k=20456;else k=c[(c[h+4>>2]|0)+(k*24|0)>>2]|0;if(p){fq(v,r,0,gh(w,c[o+(r*20|0)+8>>2]|0)|0,75);break}if(u){fq(v,r,0,k,-1);break}else{c[z>>2]=c[h>>2];c[z+4>>2]=k;fq(v,r,0,qh(w,27824,z)|0,75);break}}while(0);r=r+1|0;h=c[f>>2]|0}while((r|0)<(h|0))}k=c[y>>2]|0;c[z+4>>2]=e;c[z>>2]=d;if((h|0)>0){g=f+4|0;h=0;do{fq(k,h,1,uu(z,c[(c[g>>2]|0)+(h*20|0)>>2]|0,0)|0,-1);h=h+1|0}while((h|0)<(c[f>>2]|0))}}i=A;return}function Ks(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();f=o;h=b+8|0;if((c[h>>2]|0)==0?(Ys(a),g=b+60|0,(c[g>>2]|0)!=0):0){l=a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]|0;if(i){p=b+72|0;o=c[p>>2]|0;if((i+B|0)>(o|0)){c[p>>2]=o+B;C=i;x=0}else{C=i;x=0}}else{if(z){o=((a[E+24>>0]&1^1)&255)+(c[c[E>>2]>>2]|0)|0;C=b+72|0;p=o+(c[C>>2]|0)|0;c[C>>2]=p}else{p=c[b+72>>2]|0;o=0}C=p+1|0;c[q>>2]=C;c[b+72>>2]=p+B;x=o}c[k+12>>2]=B;do if((h|0)>-1){if((B|0)>0){p=0;do{sh(F,47,h,p,p+C|0)|0;p=p+1|0}while((p|0)!=(B|0))}}else{if(A<<24>>24==3)break;else if(A<<24>>24==9)o=1;else o=A<<24>>24==13&1;Zs(b,g,C,o)}while(0);if(v){o=d[j+1>>0]|0;if((o|0)==2){o=b+72|0;h=c[o>>2]|0;t=h+1|0;c[o>>2]=h+B;o=j+8|0;vh(F,c[o>>2]|0);o=c[o>>2]|0;if((o|0)<0)o=(c[F+32>>2]|0)+-1|0;if(!(a[(c[F>>2]|0)+65>>0]|0))o=(c[F+4>>2]|0)+(o*20|0)|0;else o=29120;a[o>>0]=28;c[o+4>>2]=1;c[o+8>>2]=t;h=F+32|0;i=(c[h>>2]|0)+B|0;if((B|0)>0){p=g+4|0;o=B+-1|0;q=F+4|0;s=0;do{v=_t(b,c[(c[p>>2]|0)+(s*20|0)>>2]|0)|0;j=s+C|0;n=s+t|0;if((s|0)<(o|0))sh(F,78,j,i,n)|0;else sh(F,79,j,l,n)|0;th(F,-1,v,-4);r=c[q>>2]|0;if(r)a[r+(((c[h>>2]|0)+-1|0)*20|0)+3>>0]=-128;s=s+1|0}while((s|0)!=(B|0))}else o=B+-1|0;sh(F,33,C,t,o)|0}else if((o|0)==1)vh(F,c[j+8>>2]|0);else vu(b,c[j+4>>2]|0,l,B,C);if(!E)et(F,c[f+12>>2]|0,l)}a:do switch(u|0){case 12:case 14:case 6:case 5:{p=x+1|0;o=b+60|0;i=c[o>>2]|0;q=b+56|0;n=c[q>>2]|0;if((n|0)<(p|0)){y=b+72|0;i=c[y>>2]|0;c[y>>2]=i+p;i=i+1|0}else{c[o>>2]=i+p;c[q>>2]=n-p}n=i+x|0;sh(F,49,C,B,n)|0;if(A<<24>>24==6){C=D+1|0;th(F,sh(F,69,C,(c[F+32>>2]|0)+4|0,i)|0,0,-14);sh(F,110,C,i,0)|0}if(z)wu(b,E,f,n,1,x);else{n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){C=b+72|0;j=(c[C>>2]|0)+1|0;c[C>>2]=j}else{j=j+-1<<24>>24;a[n>>0]=j;j=c[b+((j&255)<<2)+24>>2]|0}sh(F,74,D,j,0)|0;sh(F,75,D,i,j)|0;n=c[F+4>>2]|0;if(n)a[n+(((c[F+32>>2]|0)+-1|0)*20|0)+3>>0]=8;Wr(b,j)}$s(b,i,p);if((c[q>>2]|0)<(p|0)){c[q>>2]=p;c[o>>2]=i;y=94}else y=94;break}case 1:{n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){A=b+72|0;j=(c[A>>2]|0)+1|0;c[A>>2]=j}else{j=j+-1<<24>>24;a[n>>0]=j;j=c[b+((j&255)<<2)+24>>2]|0}sh(F,49,C,B,j)|0;sh(F,110,D,j,0)|0;Wr(b,j);y=94;break}case 2:{sh(F,111,D,C,B)|0;y=94;break}case 11:{i=k+1|0;a[i>>0]=xu(c[c[g+4>>2]>>2]|0,a[i>>0]|0)|0;if(z){wu(b,E,f,C,1,x);break a}j=b+19|0;n=a[j>>0]|0;if(!(n<<24>>24)){B=b+72|0;j=(c[B>>2]|0)+1|0;c[B>>2]=j}else{B=n+-1<<24>>24;a[j>>0]=B;j=c[b+((B&255)<<2)+24>>2]|0}th(F,sh(F,49,C,1,j)|0,i,1);$s(b,C,1);sh(F,110,D,j,0)|0;Wr(b,j);y=94;break}case 3:{sh(F,25,1,D,0)|0;y=94;break}case 10:{if(z)wu(b,E,f,C,1,x);else y=95;break}case 9:case 13:{if(z){wu(b,E,f,C,B,x);break a}if(A<<24>>24==13){sh(F,22,c[w>>2]|0,0,0)|0;y=95;break a}else{sh(F,35,C,B,0)|0;$s(b,C,B);y=94;break a}}case 7:case 8:{r=c[k+16>>2]|0;h=c[r>>2]|0;n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){z=b+72|0;s=(c[z>>2]|0)+1|0;c[z>>2]=s}else{s=j+-1<<24>>24;a[n>>0]=s;s=c[b+((s&255)<<2)+24>>2]|0}t=h+2|0;u=b+60|0;i=c[u>>2]|0;v=b+56|0;n=c[v>>2]|0;if((n|0)<(t|0)){z=b+72|0;i=c[z>>2]|0;c[z>>2]=i+t;i=i+1|0}else{c[u>>2]=i+t;c[v>>2]=n-t}q=i+h|0;o=q+1|0;if(A<<24>>24==8){n=D+1|0;j=sh(F,69,n,0,C)|0;th(F,j,B,-14);sh(F,49,C,B,o)|0;sh(F,110,n,o,0)|0;n=c[F+4>>2]|0;if(!n)p=j;else{a[n+(((c[F+32>>2]|0)+-1|0)*20|0)+3>>0]=16;p=j}}else{sh(F,49,C,B,o)|0;p=0}if((h|0)>0){o=r+4|0;n=C+-1|0;j=0;do{sh(F,34,n+(e[(c[o>>2]|0)+(j*20|0)+16>>1]|0)|0,j+i|0,0)|0;j=j+1|0}while((j|0)!=(h|0))}sh(F,73,D,q,0)|0;sh(F,49,i,t,s)|0;sh(F,110,D,s,0)|0;if(p){n=c[F+32>>2]|0;if(n>>>0>p>>>0)c[(c[F+4>>2]|0)+(p*20|0)+8>>2]=n;c[(c[F+24>>2]|0)+88>>2]=n+-1}Wr(b,s);$s(b,i,t);if((c[v>>2]|0)<(t|0)){c[v>>2]=t;c[u>>2]=i;y=94}else y=94;break}default:y=94}while(0);if((y|0)==94?(E|0)==0:0)y=95;if((y|0)==95?(G=c[f+8>>2]|0,(G|0)!=0):0)sh(F,140,G,m,0)|0;return}function Ms(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;if((a[b+450>>0]|0)==2){k=c[b+8>>2]|0;l=c[b>>2]|0;h=(g|0)!=0?35160:10360;if((d|0)==117)g=35352;else if((d|0)==118)g=35336;else if((d|0)==116)g=35320;else g=35360;c[m>>2]=e;c[m+4>>2]=f;c[m+8>>2]=h;c[m+12>>2]=g;g=qh(l,35120,m)|0;th(k,sh(k,157,c[b+464>>2]|0,0,0)|0,g,-1)}i=n;return}function Ns(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=f+e|0;h=(g*5|0)+24|0;i=mg(h,0)|0;if(!i)a[d+65>>0]=1;else{bw(i|0,0,h|0)|0;c[i+16>>2]=i+20+(g<<2);b[i+6>>1]=e;b[i+8>>1]=f;a[i+4>>0]=a[d+62>>0]|0;c[i+12>>2]=d;c[i>>2]=1}return i|0}function Os(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=c[b+52>>2]|0;if(!((f|0)!=0?(e=Os(a,f,d)|0,(e|0)!=0):0)){e=c[b>>2]|0;if((c[e>>2]|0)>(d|0))e=_t(a,c[(c[e+4>>2]|0)+(d*20|0)>>2]|0)|0;else e=0}return e|0}function Ps(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=(b|0)==0;f=(d|0)==0;a:do if(!(g&f))if(!(g|f)?(h=c[b>>2]|0,(h|0)==(c[d>>2]|0)):0)if((h|0)>0){b=c[b+4>>2]|0;f=c[d+4>>2]|0;g=0;while(1){if((a[b+(g*20|0)+12>>0]|0)!=(a[f+(g*20|0)+12>>0]|0)){f=1;break a}if(yu(c[b+(g*20|0)>>2]|0,c[f+(g*20|0)>>2]|0,e)|0){f=1;break a}g=g+1|0;if((g|0)>=(h|0)){f=0;break}}}else f=0;else f=1;else f=0;while(0);return f|0}function Qs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=c[b>>2]|0;l=c[d>>2]|0;k=Ns(g,l-e|0,f+1|0)|0;if((k|0)!=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2]=0;a[pa>>0]=3;c[Ka>>2]=78;c[qa;break}}while(0);if((i|0)==5){f=ih(c[b>>2]|0,16,0)|0;if(!f){f=0;break}c[f>>2]=c[g>>2];c[g>>2]=f;c[f+4>>2]=e;c[f+8>>2]=d;b=h+72|0;g=c[b>>2]|0;c[f+12>>2]=g+2;c[b>>2]=g+3}f=c[f+12>>2]|0}while(0);return f|0}function Bt(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;g=b[e+36>>1]|0;h=c[a>>2]|0;f=c[e>>2]|0;if(g<<16>>16>-1){g=c[(c[e+4>>2]|0)+((g<<16>>16)*24|0)>>2]|0;c[k>>2]=f;c[k+4>>2]=g;g=1555;f=qh(h,27824,k)|0}else{c[k>>2]=f;g=2579;f=qh(h,34408,k)|0}vs(a,g,d,f,-1,2);i=l;return}function Ct(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+316|0;h=c[g>>2]|0;d=hr(b,h,Ir(c[b>>2]|0,d,0,0)|0)|0;if(d){b=(c[d>>2]|0)+-1|0;h=c[d+4>>2]|0;c[h+(b*20|0)+16>>2]=e;b=h+(b*20|0)+13|0;a[b>>0]=a[b>>0]&-5|f<<2&4}c[g>>2]=d;return}function Dt(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=c[e>>2]|0;if(!(g+-1&g)){i=_((g|0)==0?1:g<<1,d)|0;a=no(a,b,i,((i|0)<0)<<31>>31)|0;if(!a){c[f>>2]=-1;a=b}else h=4}else{a=b;h=4}if((h|0)==4){bw(a+(_(g,d)|0)|0,0,d|0)|0;c[f>>2]=g;c[e>>2]=(c[e>>2]|0)+1}return a|0}function Et(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;c[h>>2]=0;b=c[a+12>>2]|0;if((b|0)!=0?(d=c[b+24>>2]|0,(d|0)>0):0){c[h>>2]=d;b=d}else b=0;d=c[a+16>>2]|0;if((d|0)!=0?(e=c[d+24>>2]|0,(e|0)>(b|0)):0)c[h>>2]=e;f=a+4|0;b=a+20|0;if(!(c[f>>2]&2048)){d=c[b>>2]|0;if(d){pu(d,h);b=c[b>>2]|0;if((b|0)!=0?(g=c[b>>2]|0,(g|0)>0):0){e=c[b+4>>2]|0;d=0;b=0;do{b=c[(c[e+(d*20|0)>>2]|0)+4>>2]|b;d=d+1|0}while((d|0)!=(g|0));b=b&2097408}else b=0;c[f>>2]=c[f>>2]|b}}else As(c[b>>2]|0,h);c[a+24>>2]=(c[h>>2]|0)+1;i=k;return}function Ft(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Kq(b)|0;i=b+72|0;h=(c[i>>2]|0)+1|0;c[i>>2]=h;b=ih(c[b>>2]|0,8,0)|0;if(b){i=b;c[i>>2]=e;c[i+4>>2]=f}th(g,sh(g,26,0,h,0)|0,b,-13);eq(g,1);if(!(a[(c[g>>2]|0)+65>>0]|0))Tg(c[g+16>>2]|0,d,-1,1,0)|0;sh(g,35,h,1,0)|0;return}function Gt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;d=c[b>>2]|0;e=d+16|0;f=c[(c[e>>2]|0)+20>>2]|0;do if(!f)d=0;else{if((a[d+63>>0]|0)!=0?(a[f+8>>0]|0)==0:0){Il(f);c[(c[e>>2]|0)+20>>2]=0;Ag(d);d=0;break}ph(b,32128,g);d=1}while(0);i=h;return d|0}function Ht(b){b=b|0;var e=0,f=0,g=0;if((a[b+63>>0]|0)!=0?(e=c[b+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[b+16>>2]|0;while(1){e=e+-1|0;b=c[f+4>>2]|0;if(b)po(b,c[g>>2]&28|d[f+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function It(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,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;z=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;x=c[g+20>>2]|0;m=c[g+40>>2]|0;if((x|0)==1){s=b[f+36>>1]|0;l=s<<16>>16;if(s<<16>>16>-1)if((m|0)!=0?($c(c[(c[f+4>>2]|0)+(l*24|0)>>2]|0,m)|0)!=0:0){v=0;y=8}else k=0;else{v=0;y=8}}else if(k){l=ih(c[d>>2]|0,x<<2,0)|0;if(!l)k=1;else{c[k>>2]=l;v=l;y=8}}else{v=0;y=8}a:do if((y|0)==8){k=c[f+8>>2]|0;b:do if(k){s=(m|0)==0;u=(x|0)>0;r=f+4|0;t=(v|0)==0;c:while(1){do if((e[k+46>>1]|0)==(x|0)?(a[k+50>>0]|0)!=0:0){if(s)if((a[k+51>>0]&3)==2){y=16;break c}else break;d:do if(u){n=c[k+4>>2]|0;o=c[r>>2]|0;p=c[k+32>>2]|0;q=0;while(1){f=b[n+(q<<1)>>1]|0;m=c[o+(f*24|0)+16>>2]|0;if($c(c[p+(q<<2)>>2]|0,(m|0)!=0?m:11152)|0){m=q;break d}m=c[o+(f*24|0)>>2]|0;l=0;while(1){f=l+1|0;if(!($c(c[g+(l<<3)+40>>2]|0,m)|0)){f=l;y=23;break}if((f|0)<(x|0))l=f;else break}if((y|0)==23){y=0;if(!t)c[v+(q<<2)>>2]=c[g+(f<<3)+36>>2]}m=q+1|0;if((f|0)==(x|0)){m=q;break d}if((m|0)<(x|0))q=m;else break}}else m=0;while(0);if((m|0)==(x|0))break c}while(0);k=c[k+20>>2]|0;if(!k)break b}if((y|0)==16)if(!(t|u^1)){l=0;do{c[v+(l<<2)>>2]=c[g+(l<<3)+36>>2];l=l+1|0}while((l|0)!=(x|0))}c[h>>2]=k;k=0;break a}while(0);if(!(a[d+438>>0]|0)){s=c[g+8>>2]|0;c[w>>2]=c[c[g>>2]>>2];c[w+4>>2]=s;ph(d,32008,w)}ig(c[d>>2]|0,v);k=1}while(0);i=z;return k|0}function Jt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if(!(c[d+12>>2]|0)){c[h>>2]=0;l=c[b>>2]|0;g=d+4|0;d=c[g>>2]|0;Vr(l,c[d+(e*24|0)+4>>2]|0,a[l+62>>0]|0,a[d+(e*24|0)+21>>0]|0,h)|0;d=c[h>>2]|0;if(d)th(b,-1,d,-8);if((a[(c[g>>2]|0)+(e*24|0)+21>>0]|0)==69)sh(b,39,f,0,0)|0}i=k;return}function Kt(c,d,f){c=c|0;d=d|0;f=f|0;var g=0;if(!d)g=0;else{g=d;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Oh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[g>>1]=e[g>>1]|f&255}return}function Lt(d,e,f,g,h,i,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=c[d+8>>2]|0;r=c[e+12>>2]|0;do if(i){l=e+36|0;if(!(c[l>>2]|0)){c[i>>2]=0;break}else{c[i>>2]=ts(q)|0;c[d+96>>2]=f;p=d+100|0;c[p>>2]=(c[p>>2]|0)+1;ct(d,c[l>>2]|0,c[i>>2]|0,16);break}}while(0);if((h|0)!=0?(a[e+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[l>>1]|0;n=l&65535;o=d+60|0;h=c[o>>2]|0;p=d+56|0;i=c[p>>2]|0;if((i|0)<(n|0)){h=d+72|0;m=c[h>>2]|0;c[h>>2]=m+n;m=m+1|0}else{c[o>>2]=h+n;c[p>>2]=i-n;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[j+36>>2]|0)==0:0){h=j;break}h=0}while(0);if(l<<16>>16){j=(h|0)==0;k=e+4|0;i=h+4|0;l=0;do{if(!j){h=b[(c[k>>2]|0)+(l<<1)>>1]|0;if((b[(c[i>>2]|0)+(l<<1)>>1]|0)!=h<<16>>16)s=21}else{h=b[(c[k>>2]|0)+(l<<1)>>1]|0;s=21}if((s|0)==21){s=0;jt(q,r,f,h<<16>>16,l+m|0);Lq(q,39)|0}l=l+1|0}while((l|0)<(n|0))}if(g)sh(q,49,m,n,g)|0;$s(d,m,n);if((c[p>>2]|0)<(n|0)){c[p>>2]=n;c[o>>2]=m}return m|0}function Mt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[a+8>>2]|0;e=c[d+24>>2]|0;f=~b;if((b|0)<0?(g=c[e+112>>2]|0,(g|0)!=0):0)c[g+(f<<2)>>2]=c[d+32>>2];c[e+88>>2]=(c[d+32>>2]|0)+-1;Zt(a)}return}function Nt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=c[d+16>>2]|0;a:do if((e|0)!=0?(f=c[d+64>>2]|0,(f|0)!=0):0){e=c[e+8>>2]|0;b:do if(e){while(1){if(!($c(c[e>>2]|0,f)|0))break;e=c[e+20>>2]|0;if(!e)break b}c[d+68>>2]=e;e=0;break a}while(0);c[g>>2]=f;c[g+4>>2]=0;ph(b,28104,g);a[b+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function Ot(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Pt(a,b)|0;if(b&1){e=Ot(c[a+12>>2]|0,b)|0;return e+d+(Ot(c[a+16>>2]|0,b)|0)|0}}else d=0;return d|0}
8 else{if((Qo(e)|0)!=0?(f=Ro(e)|0,(f|0)!=0):0)break;f=sl(d,e,0,0)|0;k=16}while(0);if((k|0)==16)if(!f){tl(e);f=0;break}g=f&255;if((g|0)==10|(g|0)==13){c[j>>2]=f;a[d+16>>0]=6}}else f=0;while(0);return f|0}function up(d){d=d|0;var e=0;e=c[d+8>>2]|0;if((a[e>>0]|0)!=0?(a[e>>0]=0,(b[d+26>>1]|0)>1):0)Xp(e)|0;return}function vp(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;m=o+8|0;do if(!(c[h>>2]|0)){if(!e){c[n>>2]=53856;c[n+4>>2]=10788;Zc(11,13600,n);c[h>>2]=11;break}if(e>>>0<2)k=0;else{k=e+-2|0;k=k-((k>>>0)%(((((c[b+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0|0)?3:2)+k|0}l=vg(c[b>>2]|0,k,m,0)|0;if(l){c[h>>2]=l;break}e=(e-k|0)*5|0;l=e+-5|0;do if((l|0)>=0){k=c[m>>2]|0;b=c[k+4>>2]|0;l=b+l|0;if((a[l>>0]|0)==f<<24>>24?(d[b+(e+-3)>>0]<<16|d[b+(e+-4)>>0]<<24|d[b+(e+-2)>>0]<<8|d[b+(e+-1)>>0]|0)==(g|0):0)break;m=Cg(k)|0;c[h>>2]=m;if(!m){a[l>>0]=f;a[b+(e+-4)>>0]=g>>>24;a[b+(e+-3)>>0]=g>>>16;a[b+(e+-2)>>0]=g>>>8;a[b+(e+-1)>>0]=g}}else{c[n>>2]=53867;c[n+4>>2]=10788;Zc(11,13600,n);c[h>>2]=11;k=c[m>>2]|0}while(0);if(k)xg(k)}while(0);i=o;return}function wp(a,b,c){a=a|0;b=b|0;c=c|0;return Gm(a,b,c,0)|0}function xp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;j=d[f>>0]&63;h=f+j|0;l=c[g+8>>2]|0;k=c[l>>2]|0;l=c[l+4>>2]|0;switch(d[f+1>>0]|0){case 1:{h=a[h>>0]|0;i=((h|0)<0)<<31>>31;m=11;break}case 6:{i=d[f+(j+1)>>0]<<16|d[h>>0]<<24|d[f+(j+2)>>0]<<8|d[f+(j+3)>>0];h=d[f+(j+5)>>0]<<16|d[f+(j+4)>>0]<<24|d[f+(j+6)>>0]<<8|d[f+(j+7)>>0];m=11;break}case 7:case 0:{h=Gm(b,f,g,0)|0;break}case 9:{i=0;h=1;m=11;break}case 3:{h=d[f+(j+1)>>0]<<8|a[h>>0]<<16|d[f+(j+2)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 4:{h=d[f+(j+1)>>0]<<16|d[h>>0]<<24|d[f+(j+2)>>0]<<8|d[f+(j+3)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 8:{i=0;h=0;m=11;break}case 2:{h=a[h>>0]<<8|d[f+(j+1)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 5:{i=a[h>>0]<<8|d[f+(j+1)>>0];h=d[f+(j+3)>>0]<<16|d[f+(j+2)>>0]<<24|d[f+(j+4)>>0]<<8|d[f+(j+5)>>0];m=11;break}default:h=Gm(b,f,g,0)|0}do if((m|0)==11){if((l|0)>(i|0)|(l|0)==(i|0)&k>>>0>h>>>0){h=c[g+12>>2]|0;break}if((l|0)<(i|0)|(l|0)==(i|0)&k>>>0<h>>>0){h=c[g+16>>2]|0;break}if((e[g+4>>1]|0)>1){h=Gm(b,f,g,1)|0;break}else{h=a[g+6>>0]|0;break}}while(0);return h|0}function yp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;l=o+8|0;h=f+1|0;k=a[h>>0]|0;if(k<<24>>24>-1){h=k&255;c[l>>2]=h}else{im(h,l)|0;h=c[l>>2]|0}do if((h|0)>=12){if(!(h&1)){h=c[g+16>>2]|0;break}l=d[f>>0]|0;m=(h+-12|0)/2|0;if((l+m|0)>(b|0)){c[n>>2]=68550;c[n+4>>2]=10788;Zc(11,13600,n);a[g+7>>0]=11;h=0;break}h=c[g+8>>2]|0;k=c[h+12>>2]|0;h=Vv(f+l|0,c[h+16>>2]|0,(m|0)>(k|0)?k:m)|0;if(h)if((h|0)>0){h=c[g+16>>2]|0;break}else{h=c[g+12>>2]|0;break}if((m|0)==(k|0))if((e[g+4>>1]|0)>1){h=Gm(b,f,g,1)|0;break}else{h=a[g+6>>0]|0;break}else if((m-k|0)>0){h=c[g+16>>2]|0;break}else{h=c[g+12>>2]|0;break}}else h=c[g+12>>2]|0;while(0);i=o;return h|0}function zp(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;m=f+73|0;h=a[m>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Gn(f)|0;if(h)break;h=a[m>>0]|0}if(!(h<<24>>24)){c[g>>2]=1;h=0;break}h=f+68|0;i=c[h>>2]|0;if((i|0)!=0?(a[m>>0]=1,c[h>>2]=0,(i|0)>0):0)h=0;else n=9}else n=9;while(0);do if((n|0)==9){l=f+76|0;h=b[l>>1]|0;i=c[f+(h<<2)+120>>2]|0;h=f+(h<<1)+78|0;j=(b[h>>1]|0)+1<<16>>16;b[h>>1]=j;h=(a[i+5>>0]|0)!=0;if((j&65535)<(e[i+18>>1]|0)){if(h){h=0;break}h=Rm(f)|0;break}if(!h){h=d[i+6>>0]|0;i=c[i+56>>2]|0;h=nm(f,d[i+(h+9)>>0]<<16|d[i+(h+8)>>0]<<24|d[i+(h+10)>>0]<<8|d[i+(h+11)>>0])|0;if(h)break;h=Rm(f)|0;break}j=f+44|0;k=f+72|0;i=b[l>>1]|0;do{if(!(i<<16>>16)){n=15;break}h=c[f+(i<<16>>16<<2)+120>>2]|0;if(h){xg(c[h+68>>2]|0);i=b[l>>1]|0}i=i+-1<<16>>16;b[l>>1]=i;b[j>>1]=0;a[k>>0]=d[k>>0]&249;o=i<<16>>16;h=c[f+(o<<2)+120>>2]|0}while((e[f+(o<<1)+78>>1]|0)>=(e[h+18>>1]|0));if((n|0)==15){c[g>>2]=1;a[m>>0]=0;h=0;break}if(!(a[h+2>>0]|0))h=0;else h=zm(f,g)|0}while(0);return h|0}function Ap(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;p=f+73|0;h=a[p>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Gn(f)|0;if(h)break;h=a[p>>0]|0}if(!(h<<24>>24)){c[g>>2]=1;h=0;break}h=f+68|0;i=c[h>>2]|0;if((i|0)!=0?(a[p>>0]=1,c[h>>2]=0,(i|0)<0):0)h=0;else j=9}else j=9;while(0);a:do if((j|0)==9){o=f+76|0;k=b[o>>1]|0;l=k<<16>>16;j=c[f+(l<<2)+120>>2]|0;i=f+(l<<1)+78|0;h=b[i>>1]|0;if(!(a[j+5>>0]|0)){g=c[j+56>>2]|0;h=(h&65535)<<1;p=c[j+64>>2]|0;h=(d[p+h>>0]<<8|d[p+(h|1)>>0])&e[j+20>>1];h=nm(f,d[g+(h+1)>>0]<<16|d[g+h>>0]<<24|d[g+(h+2)>>0]<<8|d[g+(h+3)>>0])|0;if(h)break;h=Bp(f)|0;break}b:do if(!(h<<16>>16)){m=f+44|0;n=f+72|0;j=l;while(1){if(!(k<<16>>16))break;i=c[f+(j<<2)+120>>2]|0;if(!i)i=k;else{xg(c[i+68>>2]|0);i=b[o>>1]|0}k=i+-1<<16>>16;b[o>>1]=k;b[m>>1]=0;a[n>>0]=d[n>>0]&249;j=k<<16>>16;i=f+(j<<1)+78|0;h=b[i>>1]|0;if(h<<16>>16)break b}a[p>>0]=0;c[g>>2]=1;h=0;break a}while(0);b[i>>1]=h+-1<<16>>16;p=c[f+(b[o>>1]<<2)+120>>2]|0;if((a[p+2>>0]|0)!=0?(a[p+5>>0]|0)==0:0)h=Am(f,g)|0;else h=0}while(0);return h|0}function Bp(f){f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;i=f+76|0;do{h=b[i>>1]|0;g=c[f+(h<<2)+120>>2]|0;if(a[g+5>>0]|0){j=4;break}k=d[g+6>>0]|0;l=c[g+56>>2]|0;k=d[l+(k+9)>>0]<<16|d[l+(k+8)>>0]<<24|d[l+(k+10)>>0]<<8|d[l+(k+11)>>0];b[f+(h<<1)+78>>1]=b[g+18>>1]|0;g=nm(f,k)|0}while((g|0)==0);if((j|0)==4){b[f+(h<<1)+78>>1]=(e[g+18>>1]|0)+65535;g=0}return g|0}function Cp(a,d,e,f,g,h){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+224|0;if((i|0)>=(j|0))ba();m=o;k=o+8|0;c[k>>2]=0;do if(d){l=a+16|0;n=Bm(c[l>>2]|0,o+16|0,200,k)|0;if(n){Cm(c[l>>2]|0,e,d,n);if(!(b[n+4>>1]|0)){ig(c[(c[l>>2]|0)+12>>2]|0,c[k>>2]|0);c[m>>2]=53713;c[m+4>>2]=10788;Zc(11,13600,m);k=11;break}l=c[k>>2]|0;k=ym(a,n,e,f,g,h)|0;if(l)ig(c[(c[a+16>>2]|0)+12>>2]|0,l)}else k=7}else k=ym(a,0,e,f,g,h)|0;while(0);i=o;return k|0}function Dp(a,f,g){a=a|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+48|0;if((i|0)>=(j|0))ba();r=s+24|0;h=s;p=s+36|0;q=s+32|0;n=c[a+52>>2]|0;np(a,f,h);b[g>>1]=b[h+20>>1]|0;g=b[h+18>>1]|0;a:do if(g<<16>>16){k=g&65535;l=f+(k+3)|0;if(l>>>0>((c[a+56>>2]|0)+(e[a+20>>1]|0)|0)>>>0){c[r>>2]=58720;c[r+4>>2]=10788;Zc(11,13600,r);g=11;break}g=(c[n+36>>2]|0)+-4|0;g=(((c[h+12>>2]|0)+-1+g-(e[h+16>>1]|0)|0)>>>0)/(g>>>0)|0;if(g){m=n+44|0;a=g;k=d[f+(k+1)>>0]<<16|d[f+k>>0]<<24|d[f+(k+2)>>0]<<8|d[l>>0];while(1){a=a+-1|0;c[p>>2]=0;c[q>>2]=0;if(k>>>0<2)break;if(k>>>0>(c[m>>2]|0)>>>0)break;f=(a|0)==0;if(!f){g=Ip(n,k,q,p)|0;if(g)break a;g=c[q>>2]|0;if(g)l=13;else l=12}else l=12;if((l|0)==12){g=Up(n,k)|0;c[q>>2]=g;if(!g){g=0;l=15}else l=13}if((l|0)==13){l=0;if((b[(c[g+68>>2]|0)+26>>1]|0)==1)l=15;else{c[r>>2]=58754;c[r+4>>2]=10788;Zc(11,13600,r);g=11}}if((l|0)==15)g=Um(n,g,k)|0;h=c[q>>2]|0;if((h|0)!=0?(o=c[h+68>>2]|0,(o|0)!=0):0)xg(o);if(g)break a;if(f){g=0;break a}else k=c[p>>2]|0}c[r>>2]=58734;c[r+4>>2]=10788;Zc(11,13600,r);g=11}else g=0}else g=0;while(0);i=s;return g|0}function Ep(f,g,h,k){f=f|0;g=g|0;h=h|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;w=i;i=i+16|0;if((i|0)>=(j|0))ba();m=w;do if(!(c[k>>2]|0)){s=c[f+56>>2]|0;t=g<<1;u=c[f+64>>2]|0;v=u+t|0;l=(d[v>>0]|0)<<8|(d[u+(t|1)>>0]|0);n=f+6|0;o=d[n>>0]|0;p=s+(o+5)|0;q=s+(o+6)|0;if(l>>>0>=((d[p>>0]|0)<<8|(d[q>>0]|0))>>>0?(r=f+52|0,(l+h|0)>>>0<=(c[(c[r>>2]|0)+36>>2]|0)>>>0):0){h=yq(f,l&65535,h&65535)|0;if(h){c[k>>2]=h;break}h=f+18|0;l=(b[h>>1]|0)+-1<<16>>16;b[h>>1]=l;if(!(l<<16>>16)){k=s+(o+1)|0;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;a[s+(o+7)>>0]=0;a[p>>0]=(c[(c[r>>2]|0)+36>>2]|0)>>>8;a[q>>0]=c[(c[r>>2]|0)+36>>2];b[f+16>>1]=(c[(c[r>>2]|0)+36>>2]|0)+65528-(d[n>>0]|0)-(d[f+7>>0]|0);break}else{hw(v|0,u+(t+2)|0,(l&65535)-g<<1|0)|0;a[s+(o+3)>>0]=(e[h>>1]|0)>>>8;a[s+(o+4)>>0]=b[h>>1];s=f+16|0;b[s>>1]=(e[s>>1]|0)+2;break}}c[m>>2]=58991;c[m+4>>2]=10788;Zc(11,13600,m);c[k>>2]=11}while(0);i=w;return}function Fp(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+16|0;if((i|0)>=(j|0))ba();p=D;z=D+12|0;v=D+8|0;a:do if(!(c[n>>2]|0)){o=f+1|0;if((a[o>>0]|0)==0?(B=k+2|0,C=f+16|0,(B|0)<=(e[C>>1]|0)):0){l=Cg(c[f+68>>2]|0)|0;if(l){c[n>>2]=l;break}w=c[f+56>>2]|0;q=e[f+14>>1]|0;x=f+18|0;y=e[x>>1]<<1;s=g<<1;t=q+s|0;u=f+6|0;l=d[u>>0]|0;c[z>>2]=0;g=y+q|0;q=w+(l+5)|0;r=w+(l+6)|0;o=((d[q>>0]<<8|d[r>>0])+65535&65535)+1|0;b:do if((g|0)>(o|0)){c[p>>2]=54326;c[p+4>>2]=10788;Zc(11,13600,p);l=11}else{p=g+2|0;do if((p|0)<=(o|0)){if((a[w+(l+1)>>0]|0)==0?(a[w+(l+2)>>0]|0)==0:0){A=20;break}c[v>>2]=0;g=zq(f,k,z,v)|0;l=c[z>>2]|0;if(l)break b;if(!(c[v>>2]|0))if(!g)A=20;else o=g-w|0;else A=21}else A=20;while(0);if((A|0)==20)if((p+k|0)>(o|0))A=21;else A=23;if((A|0)==21){l=Aq(f)|0;c[z>>2]=l;if(l)break;o=((d[q>>0]<<8|d[r>>0])+65535&65535)+1|0;A=23}if((A|0)==23){o=o-k|0;a[q>>0]=o>>>8;a[r>>0]=o}b[x>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>>1]|0)>>>0>ma>>>0){p=h;o=k}else{h=da;g=0;break}}k=m+-1|0;aa=c[f+(k<<2)+120>>2]|0;k=b[f+(k<<1)+78>>1]|0;q=k&65535;g=Cg(c[aa+68>>2]|0)|0;do if(!g){if(((((a[l+3>>0]|0)!=0?(a[o>>0]|0)==1:0)?(ga=b[l+22>>1]|0,ha=l+18|0,ga<<16>>16==(b[ha>>1]|0)):0)?(ia=aa+72|0,(c[ia>>2]|0)!=1):0)?(ja=aa+18|0,(b[ja>>1]|0)==k<<16>>16):0){k=c[l+52>>2]|0;if(!(ga<<16>>16)){c[Na>>2]=59423;c[Na+4>>2]=10788;Zc(11,13600,Na);h=da;g=11;break}$=ep(k,Fa,Ia,0,0)|0;c[Ja>>2]=$;if(!$){h=c[l+32>>2]|0;c[Ea>>2]=h;g=Hp(l,h)|0;b[La>>1]=g;m=c[Fa>>2]|0;ll(m,13);Dq(m,1,Ea,La);b[m+16>>1]=65534-(g&65535)+(c[k+36>>2]|0)-(e[m+14>>1]|0);if((a[k+17>>0]|0)!=0?(vp(k,c[Ia>>2]|0,5,c[ia>>2]|0,Ja),(g&65535)>(e[m+12>>1]|0)):0)Bq(m,h,Ja);$=c[l+56>>2]|0;k=e[ha>>1]<<1;h=c[l+64>>2]|0;k=(d[h+(k+-2)>>0]<<8|d[h+(k+-1)>>0])&e[l+20>>1];h=$+k|0;c[Ea>>2]=h;k=$+(k+9)|0;while(1){g=h+1|0;if((a[h>>0]|0)<0&g>>>0<k>>>0)h=g;else break}c[Ea>>2]=g;k=h+10|0;m=ra;while(1){c[Ea>>2]=g+1;$=a[g>>0]|0;h=m+1|0;a[m>>0]=$;g=c[Ea>>2]|0;if(!($<<24>>24<0&g>>>0<k>>>0))break;else m=h}Fp(aa,e[ja>>1]|0,ta,h-sa|0,0,c[l+72>>2]|0,Ja);h=d[aa+6>>0]|0;$=c[aa+56>>2]|0;_=c[Ia>>2]|0;a[$+(h+8)>>0]=_>>>24;a[$+(h+9)>>0]=_>>>16;a[$+(h+10)>>0]=_>>>8;a[$+(h+11)>>0]=_;h=c[Fa>>2]|0;if(h)xg(c[h+68>>2]|0)}h=da;g=c[Ja>>2]|0;break}h=Co(c[(c[ea>>2]|0)+32>>2]|0)|0;X=p<<16>>16==1;n=d[qa
12 function er(f,g,h){f=f|0;g=g|0;h=h|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,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,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;za=i;i=i+240|0;if((i|0)>=(j|0))ba();oa=za;pa=za+220|0;ha=za+216|0;fa=za+196|0;ga=za+176|0;ra=za+164|0;sa=za+136|0;va=za+88|0;da=za+64|0;ja=za+32|0;xa=f+464|0;ya=c[xa>>2]|0;la=f+468|0;ua=c[la>>2]|0;c[la>>2]=ua+1;c[xa>>2]=ua;ua=c[f>>2]|0;a:do if((((g|0)!=0?(ma=ua+65|0,(a[ma>>0]|0)==0):0)?(k=f+64|0,(c[k>>2]|0)==0):0)?(Oq(f,21,0,0,0)|0)==0:0){A=va+0|0;z=A+48|0;do{c[A>>2]=0;A=A+4|0}while((A|0)<(z|0));ia=g+48|0;if((d[h>>0]|0)<9){Jk(ua,c[ia>>2]|0);c[ia>>2]=0;ca=g+6|0;b[ca>>1]=e[ca>>1]&65534}zs(f,g,0);c[sa+0>>2]=0;c[sa+4>>2]=0;c[sa+8>>2]=0;c[sa+12>>2]=0;c[sa+16>>2]=0;c[sa+20>>2]=0;c[sa+24>>2]=0;c[sa>>2]=c[ia>>2];ka=g+32|0;u=c[ka>>2]|0;t=c[g>>2]|0;b:do if(((c[k>>2]|0)==0?(a[ma>>0]|0)==0:0)?(qa=g+6|0,w=(e[qa>>1]|0)>>>2&1,ta=Kq(f)|0,(ta|0)!=0):0){if((c[t>>2]|0)>1?(a[h>>0]&-2)<<24>>24==10:0){ph(f,35368,oa);wa=444;break}na=g+52|0;t=c[na>>2]|0;c:do if(!t){o=f+460|0;n=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;Q=g+64|0;R=g+4|0;S=ua+60|0;T=ta+32|0;U=f+72|0;V=da+4|0;W=da+1|0;X=da+8|0;Y=da+12|0;Z=ta+4|0;_=ta+24|0;$=f+19|0;aa=f+56|0;ca=f+80|0;P=0;v=w;while(1){if((P|0)>=(c[u>>2]|0)){E=m;N=0;w=v;R=u;break c}K=c[u+(P*72|0)+28>>2]|0;do if(!K)w=P;else{M=u+(P*72|0)+32|0;x=c[M>>2]|0;if(x){if(a[u+(P*72|0)+45>>0]&4){w=P;break}sh(ta,17,c[u+(P*72|0)+36>>2]|0,x,0)|0;w=P;break}c[oa>>2]=0;As(g,oa);c[o>>2]=(c[o>>2]|0)+(c[oa>>2]|0);s=b[K+6>>1]&4;N=c[n>>2]|0;r=c[f>>2]|0;d:do if(!(b[r+60>>1]&1)){I=c[ka>>2]|0;q=c[I+(P*72|0)+48>>2]|0;H=I+(P*72|0)+28|0;L=c[H>>2]|0;p=s<<16>>16!=0;do if(p){if(v){wa=120;break d}if((c[I>>2]|0)>1){wa=120;break d}O=c[m>>2]|0;if((O|0)!=0?(c[O+4>>2]&2097152|0)!=0:0){wa=120;break d}E=c[g>>2]|0;do if(E){B=c[E>>2]|0;if((B|0)<=0)break;F=c[E+4>>2]|0;E=0;D=0;do{D=c[(c[F+(E*20|0)>>2]|0)+4>>2]|D;E=E+1|0}while((E|0)!=(B|0));if(D&2097152){wa=120;break d}}while(0);E=c[ia>>2]|0;if(!E)break;B=c[E>>2]|0;if((B|0)<=0)break;F=c[E+4>>2]|0;E=0;D=0;do{D=c[(c[F+(E*20|0)>>2]|0)+4>>2]|D;E=E+1|0}while((E|0)!=(B|0));if(D&2097152){wa=120;break d}}while(0);F=c[L+32>>2]|0;E=(c[L+60>>2]|0)==0;if(!E?(c[k>>2]|0)!=0:0){wa=120;break}if(c[L+64>>2]|0){wa=120;break}B=b[qaqa>>1]=e[qa>>1]|4;w=-1;v=1}else wa=120;while(0);g:do if((wa|0)==120){wa=0;do if((c[u>>2]|0)==1){if(b[S>>1]&256)break;A=c[T>>2]|0;O=A+1|0;N=(c[U>>2]|0)+1|0;c[U>>2]=N;w=u+(P*72|0)+36|0;c[w>>2]=N;sh(ta,20,N,0,O)|0;c[M>>2]=O;O=c[w>>2]|0;a[da>>0]=13;c[V>>2]=O;a[W>>0]=0;c[X>>2]=0;c[Y>>2]=0;a[u+(P*72|0)+46>>0]=c[la>>2];er(f,K,da)|0;O=K+24|0;O=bs(c[O>>2]|0,c[O+4>>2]|0)|0;b[(c[u+(P*72|0)+24>>2]|0)+28>>1]=O;O=u+(P*72|0)+45|0;a[O>>0]=a[O>>0]|4;c[u+(P*72|0)+40>>2]=c[X>>2];sh(ta,21,c[w>>2]|0,0,0)|0;w=c[T>>2]|0;if(w>>>0>A>>>0)c[(c[Z>>2]|0)+(A*20|0)+8>>2]=w;c[(c[_>>2]|0)+88>>2]=w+-1;a[$>>0]=0;c[aa>>2]=0;w=P;break g}while(0);z=(c[U>>2]|0)+1|0;c[U>>2]=z;B=u+(P*72|0)+36|0;c[B>>2]=z;z=sh(ta,25,0,z,0)|0;c[M>>2]=z+1;if(!(a[u+(P*72|0)+45>>0]&2)){O=Kq(f)|0;A=c[ca>>2]|0;c[ca>>2]=A+1;A=sh(O,44,A,0,0)|0}else A=0;O=c[u+(P*72|0)+48>>2]|0;a[da>>0]=12;c[V>>2]=O;a[W>>0]=0;c[X>>2]=0;c[Y>>2]=0;a[u+(P*72|0)+46>>0]=c[la>>2];er(f,K,da)|0;O=K+24|0;O=bs(c[O>>2]|0,c[O+4>>2]|0)|0;b[(c[u+(P*72|0)+24>>2]|0)+28>>1]=O;if(A){x=c[T>>2]|0;if(x>>>0>A>>>0)c[(c[Z>>2]|0)+(A*20|0)+8>>2]=x;c[(c[_>>2]|0)+88>>2]=x+-1}w=sh(ta,18,c[B>>2]|0,0,0)|0;if((c[T>>2]|0)>>>0>z>>>0)c[(c[Z>>2]|0)+(z*20|0)+4>>2]=w;a[$>>0]=0;c[aa>>2]=0;w=P}while(0);if(a[ma>>0]|0){wa=444;break b}c[oa>>2]=0;As(g,oa);c[o>>2]=(c[o>>2]|0)-(c[oa>>2]|0);u=c[ka>>2]|0;if((d[h>>0]|0)<9)break;c[sa>>2]=c[ia>>2]}while(0);t=c[na>>2]|0;if(!t)P=w+1|0;else{E=m;N=t;w=v;R=u;break}}}else{E=g+36|0;N=t;R=u}while(0);Q=c[g>>2]|0;y=c[E>>2]|0;l=g+40|0;t=c[l>>2]|0;F=g+44|0;da=c[F>>2]|0;m=b[qa>>1]|0;a[ra>>0]=m&1;if(N){L=c[f>>2]|0;c[pa+0>>2]=c[h+0>>2];c[pa+4>>2]=c[h+4>>2];c[pa+8>>2]=c[h+8>>2];c[pa+12>>2]=c[h+12>>2];c[pa+16>>2]=c[h+16>>2];h:do if(!(c[N+48>>2]|0)){u=N+60|0;if(c[u>>2]|0){k=d[g+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[oa>>2]=k;ph(f,35072,oa);m=0;k=1;wa=227;break}O=Kq(f)|0;q=a[pa>>0]|0;if(q<<24>>24==12){sh(O,57,c[pa+4>>2]|0,c[c[g>>2]>>2]|0,0)|0;q=c[O+4>>2]|0;if(q)a[q+(((c[O+32>>2]|0)+-1|0)*20|0)+3>>0]=8;a[pa>>0]=14;q=14}p=e[qa>>1]|0;if(p&256){m=0;k=Es(f,g,pa)|0;wa=227;break}if((c[c[g>>2]>>2]|0)!=(c[c[N>>2]>>2]|0)){Fs(f,g);m=0;k=1;wa=227;break}do if(!(p&2048)){if(c[ia>>2]|0){k=Hs(f,g,h)|0;break h}M=g+4|0;p=d[M>>0]|0;if((p|0)==116){s=g+8|0;q=N+8|0;c[q>>2]=c[s>>2];r=g+12|0;p=N+12|0;c[p>>2]=c[r>>2];aa=g+60|0;c[u>>2]=c[aa>>2];ca=g+64|0;c[N+64>>2]=c[ca>>2];n=c[la>>2]|0;k=er(f,N,pa)|0;c[aa>>2]=0;c[ca>>2]=0;if(k){m=0;wa=227;break h}c[na>>2]=0;q=c[q>>2]|0;c[s>>2]=q;c[r>>2]=c[p>>2];if(!q)t=0;else t=sh(O,46,q,0,0)|0;l=c[la>>2]|0;k=er(f,g,pa)|0;m=c[na>>2]|0;c[na>>2]=N;ca=N+24|0;o=g+24|0;q=o;ca=fw(c[q>>2]|0,c[q+4>>2]|0,c[ca>>2]|0,c[ca+4>>2]|0)|0;q=o;c[q>>2]=ca;c[q+4>>2]=C;q=c[u>>2]|0;do if(q){ca=(Is(q,ha)|0)!=0;q=c[ha>>2]|0;if(!(ca&(q|0)>0))break;ca=o;aa=c[ca+4>>2]|0;p=((q|0)<0)<<31>>31;if(!(aa>>>0>p>>>0|((aa|0)==(p|0)?(c[ca>>2]|0)>>>0>q>>>0:0)))break;ca=o;c[ca>>2]=q;c[ca+4>>2]=p}while(0);if(!t){t=M;s=n;q=l;break}o=c[O+32>>2]|0;if(o>>>0>t>>>0)c[(c[O+4>>2]|0)+(t*20|0)+8>>2]=o;c[(c[O+24>>2]|0)+88>>2]=o+-1;t=M;s=n;q=l;break}else if((p|0)==115|(p|0)==117){if(q<<24>>24==1)p=c[pa+4>>2]|0;else{o=f+68|0;p=c[o>>2]|0;c[o>>2]=p+1;c[g+16>>2]=sh(O,57,p,0,0)|0;o=g;while(1){q=c[o+56>>2]|0;if(!q)break;else o=q}ca=o+6|0;b[ca>>1]=e[ca>>1]|8}a[fa>>0]=1;c[fa+4>>2]=p;a[fa+1>>0]=0;c[fa+8>>2]=0;c[fa+12>>2]=0;v=c[la>>2]|0;k=er(f,N,fa)|0;if(k){m=0;wa=227;break h}u=(a[M>>0]|0)==117?2:1;c[na>>2]=0;s=g+60|0;r=c[s>>2]|0;c[s>>2]=0;q=g+64|0;o=c[q>>2]|0;c[q>>2]=0;a[fa>>0]=u;u=c[la>>2]|0;k=er(f,g,fa)|0;Jk(L,c[ia>>2]|0);m=c[na>>2]|0;c[na>>2]=N;c[ia>>2]=0;if((a[M>>0]|0)==115){aa=N+24|0;ca=g+24|0;$=ca;aa=fw(c[$>>2]|0,c[$+4>>2]|0,c[aa>>2]|0,c[aa+4>>2]|0)|0;c[ca>>2]=aa;c[ca+4>>2]=C}Ck(L,c[s>>2]|0);c[s>>2]=r;c[q>>2]=o;c[g+8>>2]=0;c[g+12>>2]=0;o=a[pa>>0]|0;if(o<<24>>24==9){o=g;while(1){n=c[o+52>>2]|0;if(!n)break;else o=n}Js(f,0,c[o>>2]|0)}else if(o<<24>>24==1){t=M;s=v;q=u;break}l=ts(O)|0;ca=ts(O)|0;Ks(f,g,l);sh(O,108,p,l,0)|0;t=O+32|0;s=c[t>>2]|0;Ls(f,g,c[g>>2]|0,p,0,0,pa,ca,l);r=O+24|0;q=c[r>>2]|0;o=~ca;do if((ca|0)<0){n=c[q+112>>2]|0;if(!n)break;c[n+(o<<2)>>2]=c[t>>2]}while(0);c[q+88>>2]=(c[t>>2]|0)+-1;sh(O,9,p,s,0)|0;o=c[r>>2]|0;n=~l;do if((l|0)<0){q=c[o+112>>2]|0;if(!q)break;c[q+(n<<2)>>2]=c[t>>2]}while(0);c[o+88>>2]=(c[t>>2]|0)+-1;sh(O,61,p,0,0)|0;t=M;s=v;q=u;break}else{o=f+68|0;x=c[o>>2]|0;c[o>>2]=x+2;c[g+16>>2]=sh(O,57,x,0,0)|0;o=g;while(1){n=c[o+56>>2]|0;if(!n)break;else o=n}v=x+1|0;s=o+6|0;b[s>>1]=e[s>>1]|8;a[ga>>0]=1;s=ga+4|0;c[s>>2]=x;a[ga+1>>0]=0;c[ga+8>>2]=0;c[ga+12>>2]=0;u=c[la>>2]|0;k=er(f,N,ga)|0;if(k){m=0;wa=227;break h}c[g+20>>2]=sh(O,57,v,0,0)|0;c[na>>2]=0;t=g+60|0;l=c[t>>2]|0;c[t>>2]=0;n=g+64|0;o=c[n>>2]|0;c[n>>2]=0;c[s>>2]=v;w=c[la>>2]|0;k=er(f,g,ga)|0;m=c[na>>2]|0;c[na>>2]=N;q=g+24|0;ca=q;aa=c[ca+4>>2]|0;r=N+24|0;s=c[r>>2]|0;r=c[r+4>>2]|0;if(aa>>>0>r>>>0|((aa|0)==(r|0)?(c[ca>>2]|0)>>>0>s>>>0:0)){ca=q;c[ca>>2]=s;c[ca+4>>2]=r}Ck(L,c[t>>2]|0);c[t>>2]=l;c[n>>2]=o;if((a[pa>>0]|0)==9){q=g;while(1){p=c[q+52>>2]|0;if(!p)break;else q=p}Js(f,0,c[q>>2]|0)}n=ts(O)|0;t=ts(O)|0;Ks(f,g,n);sh(O,108,x,n,0)|0;q=f+19|0;p=a[q>>0]|0;if(!(p<<24>>24)){ca=f+72|0;q=(c[ca>>2]|0)+1|0;c[ca>>2]=q}else{ca=p+-1<<24>>24;a[q>>0]=ca;q=c[f+((ca&255)<<2)+24>>2]|0}l=sh(O,101,x,q,0)|0;th(O,sh(O,68,v,t,q)|0,0,-14);Wr(f,q);Ls(f,g,c[g>>2]|0,x,0,0,pa,t,n);q=O+24|0;p=c[q>>2]|0;r=~t;do if((t|0)<0){s=c[p+112>>2]|0;if(!s)break;c[s+(r<<2)>>2]=c[O+32>>2]}while(0);s=O+32|0;c[p+88>>2]=(c[s>>2]|0)+-1;sh(O,9,x,l,0)|0;p=c[q>>2]|0;o=~n;do if((n|0)<0){q=c[p+112>>2]|0;if(!q)break;c[q+(o<<2)>>2]=c[s>>2]}while(0);c[p+88>>2]=(c[s>>2]|0)+-1;sh(O,61,v,0,0)|0;sh(O,61,x,0,0)|0;t=M;s=u;q=w;break}}else{Gs(f,g,pa);t=g+4|0;s=0;q=0;m=0;k=0}while(0);ca=a[t>>0]|0;Ms(f,ca&255,s,q,ca<<24>>24!=116&1);if(!(b[qa>>1]&8)){wa=227;break}r=c[c[g>>2]>>2]|0;s=Ns(L,r,1)|0;if(!s){k=7;wa=227;break}if((r|0)>0){l=L+8|0;n=s+20|0;o=0;while(1){ca=Os(f,g,o)|0;c[n>>2]=ca;if(!ca)c[n>>2]=c[l>>2];o=o+1|0;if((o|0)==(r|0))break;else n=n+4|0}}p=O+32|0;q=O+4|0;do{l=0;do{o=g+(l<<2)+16|0;n=c[o>>2]|0;if((n|0)<0)break;if((c[p>>2]|0)>>>0>n>>>0)c[(c[q>>2]|0)+(n*20|0)+8>>2]=r;c[s>>2]=(c[s>>2]|0)+1;th(O,n,s,-6);c[o>>2]=-1;l=l+1|0}while((l|0)<2);g=c[g+52>>2]|0}while((g|0)!=0);ca=(c[s>>2]|0)+-1|0;c[s>>2]=ca;if(ca){wa=227;break}Sc(s);wa=227}else{k=d[g+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[oa>>2]=k;ph(f,35024,oa);m=0;k=1;wa=227}while(0);if((wa|0)==227){c[h+8>>2]=c[pa+8>>2];c[h+12>>2]=c[pa+12>>2];Ik(L,m,1)}c[xa>>2]=ya;break a}if((m&5)==1){k=c[sa>>2]|0;if(!(Ps(k,Q,-1)|0)){b[qa>>1]=m&65534;t=Lr(ua,Q,0)|0;c[l>>2]=t;wa=232}}else wa=232;if((wa|0)==232)k=c[sa>>2]|0;if(!k)k=-1;else{ca=Qs(f,k,0,c[Q>>2]|0)|0;aa=f+68|0;k=c[aa>>2]|0;c[aa>>2]=k+1;c[sa+8>>2]=k;k=sh(ta,57,k,(c[c[sa>>2]>>2]|0)+1+(c[Q>>2]|0)|0,0)|0;th(ta,k,ca,-6)}O=sa+20|0;c[O>>2]=k;if((a[h>>0]|0)==12)sh(ta,57,c[h+4>>2]|0,c[Q>>2]|0,0)|0;na=ts(ta)|0;v=g+24|0;ca=v;c[ca>>2]=-1;c[ca+4>>2]=2147483647;Ks(f,g,na);if((c[g+8>>2]|0)==0?(ea=c[O>>2]|0,(ea|0)>-1):0){if(!(a[(c[ta>>2]|0)+65>>0]|0))k=(c[ta+4>>2]|0)+(ea*20|0)|0;else k=29120;a[k>>0]=58;ca=sa+24|0;a[ca>>0]=d[ca>>0]|1}if(!(b[qa>>1]&1))a[ra+1>>0]=0;else{ca=f+68|0;k=c[ca>>2]|0;c[ca>>2]=k+1;c[ra+4>>2]=k;ca=Qs(f,c[g>>2]|0,0,0)|0;k=sh(ta,57,k,0,0)|0;th(ta,k,ca,-6);c[ra+8>>2]=k;k=c[ta+4>>2]|0;if(k)a[k+(((c[ta+32>>2]|0)+-1|0)*20|0)+3>>0]=8;a[ra+1>>0]=3}if((w|0)==0&(t|0)==0){s=Rs(f,R,y,c[sa>>2]|0,c[g>>2]|0,(a[ra>>0]|0)!=0?1024:0,0)|0;if(!s){wa=444;break}q=Ss(b[s+32>>1]|0)|0;p=C;ca=v;aa=c[ca+4>>2]|0;if(p>>>0<aa>>>0|((p|0)==(aa|0)?q>>>0<(c[ca>>2]|0)>>>0:0)){ca=v;c[ca>>2]=q;c[ca+4>>2]=p}do if(a[ra>>0]|0){q=a[s+40>>0]|0;if(!(q<<24>>24))break;a[ra+1>>0]=q}while(0);q=c[sa>>2]|0;do if(!q)wa=257;else{ca=a[s+36>>0]|0;c[sa+4>>2]=ca;if((ca|0)!=(c[q>>2]|0))break;c[sa>>2]=0;wa=257}while(0);do if((wa|0)==257){o=c[O>>2]|0;if((o|0)<=-1)break;vh(ta,o)}while(0);Ls(f,g,Q,-1,sa,ra,h,c[s+48>>2]|0,c[s+52>>2]|0);Ts(s)}else{w=(t|0)!=0;do if(w){l=c[g>>2]|0;k=c[l>>2]|0;if((k|0)>0){l=c[l+4>>2]|0;while(1){b[l+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[t>>2]|0;if((k|0)>0){l=c[t+4>>2]|0;while(1){b[l+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ca=v;aa=c[ca+4>>2]|0;if(!(aa>>>0>0|(aa|0)==0&(c[ca>>2]|0)>>>0>100))break;ca=v;c[ca>>2]=100;c[ca+4>>2]=0}else{ca=v;c[ca>>2]=1;c[ca+4>>2]=0}while(0);M=(Ps(t,c[sa>>2]|0,-1)|0)==0;P=ts(ta)|0;c[ja+0>>2]=0;c[ja+4>>2]=0;c[ja+8>>2]=0;c[ja+12>>2]=0;c[ja+16>>2]=0;c[ja+20>>2]=0;c[ja+24>>2]=0;c[ja+28>>2]=0;c[ja>>2]=f;c[ja+4>>2]=R;c[ja+12>>2]=va;H=f+72|0;c[va+16>>2]=(c[H>>2]|0)+1;if(w)k=c[t>>2]|0;else k=0;v=va+12|0;c[v>>2]=k;c[va+24>>2]=t;Us(ja,Q);Us(ja,c[sa>>2]|0);if(da){c[oa+0>>2]=0;c[oa+4>>2]=0;c[oa+8>>2]=0;c[oa+12>>2]=0;c[oa+16>>2]=0;c[oa+20>>2]=0;c[oa>>2]=80;c[oa+4>>2]=81;c[oa+24>>2]=ja;ns(oa,da)|0}x=va+32|0;c[va+36>>2]=c[x>>2];o=va+44|0;k=c[o>>2]|0;if((k|0)>0){u=ja+28|0;l=va+40|0;m=b[u>>1]|0;n=0;do{b[u>>1]=m&65535|8;Us(ja,c[(c[(c[l>>2]|0)+(n<<4)>>2]|0)+20>>2]|0);m=e[u>>1]&65527;b[u>>1]=m;n=n+1|0;k=c[o>>2]|0}while((n|0)<(k|0))}c[va+20>>2]=c[H>>2];if(a[ma>>0]|0){wa=444;break}if(w){F=f+68|0;E=c[F>>2]|0;c[F>>2]=E+1;s=va+4|0;c[s>>2]=E;E=Qs(f,t,0,c[x>>2]|0)|0;r=sh(ta,58,c[s>>2]|0,c[v>>2]|0,0)|0;th(ta,r,E,-6);K=c[H>>2]|0;J=K+1|0;G=K+2|0;K=K+3|0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;wd=ke+512|0;gd=ke+508|0;sd=ke+504|0;Wc=ke+488|0;Jd=ke+48|0;Tc=ke+456|0;Oc=ke+444|0;Hd=ke+8|0;pd=ke+440|0;Fd=ke+412|0;Ed=ke;wc=f+4|0;o=c[wc>>2]|0;he=c[f>>2]|0;Gc=a[he+62>>0]|0;Kc=f+8|0;v=c[Kc>>2]|0;je=he+32|0;l=je;m=c[l>>2]|0;l=c[l+4>>2]|0;ie=f+80|0;a:do if((c[ie>>2]|0)==7){u=he+65|0;v=f+44|0;n=m;g=0;p=0;m=0;ee=1317}else{c[ie>>2]=0;$d=f+136|0;c[$d>>2]=0;c[$d+4>>2]=0;$d=f+20|0;c[$d>>2]=0;c[he+452>>2]=0;zc=he+240|0;b:do if(!(c[zc>>2]|0)){Zd=he+292|0;if(c[Zd>>2]|0){n=c[f+124>>2]|0;g=he+300|0;u=c[g>>2]|0;if(!n)vc=g;else{vc=g;u=(n>>>0)%(u>>>0)|0}}else{vc=he+300|0;u=0}de=f+76|0;ce=he+65|0;Vd=he+296|0;pb=f+176|0;qb=f+184|0;rb=f+92|0;sb=he+80|0;tb=he+84|0;ub=Gc&255;vb=Gc<<24>>24==1;wb=he+88|0;xb=f+60|0;Wd=f+144|0;be=f+86|0;fe=f+44|0;yb=f+12|0;zb=Rc+4|0;Ab=Rc+16|0;Bb=Rc+12|0;Cb=Rc+25|0;Db=Rc+20|0;Eb=f+200|0;Fb=f+56|0;Xd=f+72|0;Gb=Gd+16|0;Hb=Gd+8|0;Ib=Gd+24|0;Jb=f+87|0;Yd=he+156|0;Kb=he+500|0;Lb=he+496|0;ae=he+63|0;Mb=he+488|0;Nb=he+504|0;Ob=he+512|0;Pb=he+70|0;Qb=he+24|0;Rb=he+20|0;Td=he+16|0;Sb=he+4|0;Ud=f+88|0;Tb=f+104|0;Ub=f+152|0;Vb=f+160|0;Wb=he+152|0;Xb=he+64|0;_b=td+4|0;$b=td+6|0;ac=td+8|0;bc=ud+4|0;cc=ud+8|0;dc=he+212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){z=G+-1|0;if((z|0)==(D|0)){G=z;continue}if(z>>>0<2)B=0;else{B=G+-3|0;B=B-((B>>>0)%(((((c[F>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;B=((B+1|0)==(E|0)?3:2)+B|0}if((B|0)==(z|0))G=z;else break}r=zg(K,4,z)|0}else x=0}else{r=262;x=0}while(0);b[O>>1]=4;S=J;c[S>>2]=x;c[S+4>>2]=((x|0)<0)<<31>>31;if((r|0)==0&(x|0)!=0){g=m;K=L;z=P;m=n;r=J;n=p;ee=865;break d}else{z=J;R=p}break}case 118:{c[gd>>2]=0;g=o+(p*20|0)+12|0;r=Tm(c[(c[Td>>2]|0)+(c[o+(p*20|0)+8>>2]<<4)+4>>2]|0,c[o+(p*20|0)+4>>2]|0,(c[g>>2]|0)!=0?gd:0)|0;g=c[g>>2]|0;if((g|0)!=0?(Fc=c[gd>>2]|0,c[rb>>2]=(c[rb>>2]|0)+Fc,(g|0)>0):0){z=v+(g*40|0)|0;R=z;R=fw(c[R>>2]|0,c[R+4>>2]|0,Fc|0,((Fc|0)<0)<<31>>31|0)|0;c[z>>2]=R;c[z+4>>2]=C;z=J;R=p}else{z=J;R=p}break}case 121:case 120:{c[sd>>2]=0;r=wm(c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)+4>>2]|0,sd,G<<24>>24==121?1:2)|0;R=c[sd>>2]|0;z=J;c[z>>2]=R;c[z+4>>2]=((R|0)<0)<<31>>31;z=J;R=p;break}case 119:{g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;r=c[g+56>>2]|0;if(r){g=m;m=n;G=J;n=p;ee=878;break d}r=c[g>>2]|0;z=J;R=p;r=Tm(c[r>>2]|0,c[r+60>>2]|0,0)|0;break}case 123:{z=J;R=p;r=Ym(he,c[o+(p*20|0)+4>>2]|0)|0;break}case 124:{g=m;m=n;r=J;n=p;ee=886;break d}case 122:{g=m;m=n;G=J;n=p;ee=881;break d}case 126:{g=m;m=n;r=J;n=p;ee=895;break d}case 125:{g=m;m=n;G=J;n=p;ee=887;break d}case 127:{g=m;m=n;r=J;ee=903;break d}case 128:{g=m;m=n;G=J;ee=947;break d}case 129:{s=c[o+(p*20|0)+4>>2]|0;r=v+(s*40|0)|0;s=v+(s*40|0)+8|0;g=b[s>>1]|0;do if(g&32){B=c[r>>2]|0;g=B+26|0;w=b[g>>1]|0;if(!(w&2)){if(!(w&1)){w=B+8|0;c[w>>2]=fn(c[w>>2]|0)|0;w=b[g>>1]|0}b[g>>1]=w&65535|2}z=B+8|0;x=c[z>>2]|0;if(!x){g=b[s>>1]|0;break}s=x;w=c[s>>2]|0;s=c[s+4>>2]|0;S=c[x+8>>2]|0;c[z>>2]=S;if(!S)Vk(B);r=c[o+(p*20|0)+12>>2]|0;g=v+(r*40|0)|0;r=v+(r*40|0)+8|0;if(!(b[r>>1]&9312)){ee=g;c[ee>>2]=w;c[ee+4>>2]=s;b[r>>1]=4;r=0;ee=19;break e}else{Vg(g,w,s);r=0;ee=19;break e}}while(0);if(!(g&9312))b[s>>1]=1;else rg(r);p=(c[o+(p*20|0)+8>>2]|0)+-1|0;r=0;ee=19;break}case 130:{g=m;m=n;r=J;ee=966;break d}case 131:{g=m;m=n;r=J;n=p;ee=993;break d}case 132:{g=m;m=n;r=J;n=p;ee=1009;break d}case 134:{g=m;m=n;G=J;n=p;ee=1010;break d}case 135:{g=m;m=n;r=J;n=p;ee=1015;break d}case 136:{g=m;m=n;n=p;ee=1022;break d}case 137:{g=m;m=n;r=J;n=p;ee=1028;break d}case 138:{g=m;m=n;r=J;n=p;ee=1030;break d}case 139:{g=m;m=n;G=J;n=p;ee=1032;break d}case 140:{g=m;m=n;r=J;n=p;ee=1034;break d}case 141:{g=m;m=n;r=J;n=p;ee=1036;break d}case 10:{S=a[o+(p*20|0)+3>>0]|0;w=S&255;g=c[yb>>2]|0;if(S<<24>>24){r=0;s=v+((c[o+(p*20|0)+8>>2]|0)*40|0)|0;while(1){c[g+(r<<2)>>2]=s;r=r+1|0;if((r|0)>=(w|0))break;else s=s+40|0}}S=c[o+(p*20|0)+16>>2]|0;c[Da>>2]=S;R=c[o+(p*20|0)+12>>2]|0;c[Ea>>2]=v+(R*40|0);R=v+(R*40|0)+12|0;c[R>>2]=(c[R>>2]|0)+1;b[Fa>>1]=1;c[Ga>>2]=he;c[Ha>>2]=0;c[Tc>>2]=Jd;c[Ia>>2]=0;c[Ja>>2]=f;c[Ka>>2]=p;a[La>>0]=0;ic[c[S+16>>2]&63](Tc,w,g);if(!(c[Ia>>2]|0))r=0;else{c[ge>>2]=Og(Jd,1)|0;$g(fe,he,10344,ge);r=c[Ia>>2]|0}do if((a[La>>0]|0)!=0?(Jc=c[o+((p+-1|0)*20|0)+4>>2]|0,(Jc|0)!=0):0){g=v+(Jc*40|0)|0;s=v+(Jc*40|0)+8|0;if(!(b[s>>1]&9312)){S=g;c[S>>2]=1;c[S+4>>2]=0;b[s>>1]=4;break}else{Vg(g,1,0);break}}while(0);if((b[Fa>>1]&9312)==0&(c[Ha>>2]|0)==0){z=J;R=p}else{Mg(Jd);z=J;R=p}break}case 11:{c[Oc>>2]=0;c[Ma>>2]=-1;c[Na>>2]=-1;g=Sh(he,c[o+(p*20|0)+4>>2]|0,c[o+(p*20|0)+8>>2]|0,Na,Ma)|0;if((g|0)==5){c[Oc>>2]=1;g=0}r=0;s=v+((c[o+(p*20|0)+12>>2]|0)*40|0)|0;while(1){z=c[Oc+(r<<2)>>2]|0;x=((z|0)<0)<<31>>31;w=s+8|0;if(!(b[w>>1]&9312)){S=s;c[S>>2]=z;c[S+4>>2]=x;b[w>>1]=4}else Vg(s,z,x);r=r+1|0;if((r|0)==3){z=J;R=p;r=g;break}else s=s+40|0}break}case 142:{z=c[o+(p*20|0)+4>>2]|0;w=v+(z*40|0)|0;r=Uk(w,c[o+(p*20|0)+16>>2]|0)|0;if(r){c[ge>>2]=Og(w,1)|0;$g(fe,he,10344,ge)}Ul(w,ub)|0;s=e[v+(z*40|0)+8>>1]|0;if(s&18){g=c[v+(z*40|0)+12>>2]|0;if(s&16384)g=(c[w>>2]|0)+g|0;if((g|0)>(c[(c[v+(z*40|0)+32>>2]|0)+88>>2]|0)){g=m;m=n;q=t;ee=1316;break c}else{z=J;R=p}}else{z=J;R=p}break}case 12:{g=c[o+(p*20|0)+12>>2]|0;J=c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)+4>>2]|0;I=c[c[J+4>>2]>>2]|0;G=a[I+5>>0]|0;w=G&255;g=(g|0)==-1?w:g;do if((d[I+16>>0]|0)>2)g=w;else if((c[c[I+64>>2]>>2]|0)!=0?(S=I+72|0,R=c[S+4>>2]|0,(R|0)>0|(R|0)==0&(c[S>>2]|0)>>>0>0):0){g=w;break}while(0);if(!(a[I+15>>0]|0))x=c[I+168>>2]|0;else x=10360;s=(g|0)==5;if(s)if(x){z=x;while(1)if(!(a[z>>0]|0))break;else z=z+1|0;if(z-x&1073741823){z=c[c[I+60>>2]>>2]|0;if(!(a[I+4>>0]|0))if((c[z>>2]|0)>1?!((c[z+52>>2]|0)==0|(g|0)==(w|0)):0)ee=1077;else{g=w;r=0}else ee=1076}else{g=w;r=0}}else{g=w;r=0}else ee=1076;if((ee|0)==1076){ee=0;if((g|0)==(w|0)){g=w;r=0}else ee=1077}do if((ee|0)==1077){ee=0;z=G<<24>>24==5;if(z|s){if(!(a[ae>>0]|0)){g=m;o=s;m=n;q=t;ee=1080;break c}if((c[Wb>>2]|0)>1){g=m;o=s;m=n;q=t;ee=1080;break c}if(!z){if(G<<24>>24==4)on(I,2)|0}else{G=I+208|0;if(!(c[G>>2]|0)){c[Xc>>2]=0;r=bl(I,1)|0;if(r)break;r=c[I>>2]|0;r=lc[c[r+32>>2]&31](r,c[I+212>>2]|0,0,Xc)|0;if((r|0)==0&(c[Xc>>2]|0)!=0)r=ln(I)|0;if(r)break;if(c[G>>2]|0)ee=1088}else ee=1088;if((ee|0)==1088){ee=0;r=mn(I)|0;if(r)break;r=nn(c[G>>2]|0,d[I+9>>0]|0,c[I+152>>2]|0,c[I+200>>2]|0)|0;c[G>>2]=0;if(r)break}on(I,g)|0}r=Bg(J,s?2:1)|0}else r=0}while(0);g=on(I,(r|0)==0?g:w)|0;z=c[o+(p*20|0)+8>>2]|0;G=v+(z*40|0)|0;b[v+(z*40|0)+8>>1]=2562;if((g|0)==6){c[v+(z*40|0)+16>>2]=0;g=0}else{g=c[32216+(g<<2)>>2]|0;c[v+(z*40|0)+16>>2]=g;w=g;while(1)if(!(a[w>>0]|0))break;else w=w+1|0;g=w-g&1073741823}c[v+(z*40|0)+12>>2]=g;a[v+(z*40|0)+10>>0]=1;Ul(G,ub)|0;z=G;R=p;break}case 13:{if(!(a[ae>>0]|0)){g=m;m=n;q=t;ee=1101;break c}if((c[Oa>>2]|0)>1){g=m;m=n;q=t;ee=1103;break c}Q=c[Qb>>2]|0;L=c[sb>>2]|0;s=c[tb>>2]|0;g=c[Pa>>2]|0;c[Qb>>2]=Q&-2762753|2107392;c[Pa>>2]=0;I=c[(c[Td>>2]|0)+4>>2]|0;P=I+4|0;F=a[(c[c[P>>2]>>2]|0)+15>>0]|0;S=c[Rb>>2]|0;r=pn(he,fe,(a[Xb>>0]|0)==2?42432:42464)|0;G=c[Rb>>2]|0;if((G|0)>(S|0))w=(c[Td>>2]|0)+(G+-1<<4)|0;else w=0;i:do if(!r){O=c[(c[Td>>2]|0)+(G+-1<<4)+4>>2]|0;qn(O)|0;R=c[P>>2]|0;c[R+4>>2]=c[I>>2];R=(c[R+32>>2]|0)-(c[R+36>>2]|0)|0;r=pn(he,fe,42488)|0;if(!r){r=pn(he,fe,42528)|0;if(!r){r=ug(I,2)|0;if(!r){G=c[P>>2]|0;if((a[(c[G>>2]|0)+5>>0]|0)==5)c[Qa>>2]=0;if(!(tg(O,c[G+32>>2]|0,R,0)|0)){if(F<<24>>24==0?(tg(O,c[Qaqa>>2]=0;c[ta>>2]=0;c[ua>>2]=100;c[va>>2]=1e9;a[xa>>0]=0;a[wa>>0]=2;c[oa>>2]=43592;z=c[(c[O+12>>2]|0)+56>>2]|0;_m(Pd,1,d[z+33>>0]<<16|d[z+32>>0]<<24|d[z+34>>0]<<8|d[z+35>>0],d[z+37>>0]<<16|d[z+36>>0]<<24|d[z+38>>0]<<8|d[z+39>>0]);c[oa>>2]=0;z=c[la>>2]|0;if(!((K|0)<1|(z|0)==0)){D=O+17|0;E=0;do{F=n+(E<<2)|0;G=c[F>>2]|0;if(G){if((a[D>>0]|0)!=0&(G|0)>1){$m(Pd,G,1,0);G=c[F>>2]|0}c[oa>>2]=43608;an(Pd,G,0,0)|0;c[oa>>2]=0;z=c[la>>2]|0}E=E+1|0}while(!((E|0)>=(K|0)|(z|0)==0))}if(!((c[ka>>2]|0)==0|(z|0)==0)){B=O+17|0;z=O+36|0;J=1;do{E=J>>>3;G=a[(c[pa>>2]|0)+E>>0]|0;D=1<<(J&7);do if(!(G&255&D)){if(J>>>0<2)F=0;else{F=J+-2|0;F=F-((F>>>0)%(((((c[z>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;F=((F+1|0)==(((c[2514]|0)>>>0)/((c[L>>2]|0)>>>0)|0|0)?3:2)+F|0}if((F|0)==(J|0)?(a[B>>0]|0)!=0:0)break;c[ge>>2]=J;bn(Pd,43632,ge);G=a[(c[pa>>2]|0)+E>>0]|0}while(0);do if(G&255&D){if(J>>>0<2)G=0;else{G=J+-2|0;G=G-((G>>>0)%(((((c[z>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;G=((G+1|0)==(((c[2514]|0)>>>0)/((c[L>>2]|0)>>>0)|0|0)?3:2)+G|0}if((G|0)!=(J|0))break;if(!(a[B>>0]|0))break;c[ge>>2]=J;bn(Pd,43656,ge)}while(0);J=J+1|0}while(!((c[la>>2]|0)==0?1:J>>>0>(c[ka>>2]|0)>>>0))}z=c[(c[(c[O>>2]|0)+204>>2]|0)+12>>2]|0;if((s|0)!=(z|0)){c[ge>>2]=s;c[ge+4>>2]=z;bn(Pd,43696,ge)}Sc(c[pa>>2]|0);if(c[na>>2]|0){cn(qa);x=0;z=(c[ma>>2]|0)+1|0;break}z=c[ma>>2]|0;if(!z)cn(qa);x=pg(qa
14 function Av(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=e+20|0;r=e+14|0;f=a[r>>0]|0;w=e+13|0;g=a[w>>0]|0;a:do if((f&255)>(g&255))f=0;else{y=e+4|0;z=e+16|0;s=e+8|0;t=e+12|0;u=e+24|0;v=e+28|0;i=f&255;j=c[y>>2]|0;h=c[A>>2]|0;b:while(1){q=c[e+(i+-2<<2)+24>>2]|0;p=c[e+(i+-1<<2)+24>>2]|0;if(j){while(1){o=j+12|0;if((h|0)<(c[o>>2]|0)){g=h;f=(c[j+20>>2]|0)+(h*48|0)|0;while(1){do if((c[f+8>>2]|0)==(q|0)?(c[f+12>>2]|0)==(p|0):0){if((d[r>>0]|0)>=3?(c[(c[f>>2]|0)+4>>2]&1|0)!=0:0)break;n=f+18|0;h=b[n>>1]|0;if((h&1024)!=0?(x=a[w>>0]|0,(x&255)<22):0){i=c[(c[f>>2]|0)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[i+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[(c[i+20>>2]|0)+4>>2]|0;i=c[i>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(x<<24>>24)){m=0;k=0}else{l=c[i+28>>2]|0;m=i+32|0;k=0;while(1){if((c[e+(k<<2)+24>>2]|0)==(l|0)?(c[e+((k|1)<<2)+24>>2]|0)==(b[m>>1]|0):0){m=x;break d}k=k+2|0;if((k|0)>=(x&255|0)){m=x;break}}}while(0);if((k|0)==(m&255|0)){c[e+(k<<2)+24>>2]=c[i+28>>2];c[e+((k|1)<<2)+24>>2]=b[i+32>>1];a[w>>0]=(d[w>>0]|0)+2}}i=h&65535;if(i&c[z>>2]){if((c[s>>2]|0)!=0&(i&128|0)==0){l=c[c[j>>2]>>2]|0;k=c[f>>2]|0;i=a[t>>0]|0;h=(jv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ku(l,c[k+12>>2]|0,c[k+16>>2]|0)|0;if(!h)h=c[(c[l>>2]|0)+8>>2]|0;if($c(c[h>>2]|0,c[s>>2]|0)|0)break;h=b[n>>1]|0}if(!(h&2))break b;h=c[(c[f>>2]|0)+16>>2]|0;if((a[h>>0]|0)!=-102)break b;if((c[h+28>>2]|0)!=(c[u>>2]|0))break b;if((b[h+32>>1]|0)!=(c[v>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[o>>2]|0))break;else f=f+48|0}g=c[y>>2]|0}else g=j;j=c[g+4>>2]|0;c[y>>2]=j;if(!j)break;else h=0}f=a[r>>0]|0;g=a[w>>0]|0}j=c[e>>2]|0;c[y>>2]=j;h=(f&255)+2|0;f=h&255;a[r>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[A>>2]=g+1}while(0);return f|0}function Bv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=c[d>>2]|0;l=c[c[g>>2]>>2]|0;d=c[d+16>>2]|0;a:do if(!d){g=g+16|0;i=c[g>>2]|0;k=f+36|0;if((c[k>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[f+16>>0]|0;do{do if((a[i+16>>0]|0)==h<<24>>24?(c[i+36>>2]&512|0)!=0:0){if(Pv(i,f)|0){b[d>>1]=b[i+20>>1]|0;b[j>>1]=(e[i+22>>1]|0)+65535;break}if(Pv(f,i)|0){b[d>>1]=b[i+20>>1]|0;b[j>>1]=(e[i+22>>1]|0)+1}}while(0);i=c[i+52>>2]|0}while((i|0)!=0)}d=Qv(g,f)|0;if(d){g=c[d>>2]|0;b:do if(g){d=g+52|0;if(c[d>>2]|0)do{d=Qv(d,f)|0;if(!d)break b;h=c[d>>2]|0;if(!h)break b;c[d>>2]=c[h+52>>2];Fu(l,h);ig(l,h)}while((c[d>>2]|0)!=0)}else{g=ih(l,72,0)|0;c[d>>2]=g;if(!g){d=7;break a}c[g+48>>2]=g+56;b[g+40>>1]=0;b[g+44>>1]=3;c[g+36>>2]=0;c[g+52>>2]=0}while(0);Hv(l,g);do if(!(Ju(l,g,e[f+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[h>>2]=c[d>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));gw(c[g+48>>2]|0,c[f+48>>2]|0,e[g+40>>1]<<2|0)|0;d=c[k>>2]|0;if(d&1024){a[f+28>>0]=0;break}if(d&16384)c[f+28>>2]=0}else{d=g+24|0;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0}while(0);if(((c[g+36>>2]&1024|0)==0?(m=g+28|0,n=c[m>>2]|0,(n|0)!=0):0)?(c[n+40>>2]|0)==0:0){c[m>>2]=0;d=0}else d=0}else d=0}else{g=f;Gv(d,c[g>>2]|0,c[g+4>>2]|0,b[f+20>>1]|0,b[f+22>>1]|0);d=0}while(0);return d|0}function Cv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16<b<<16>>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[34032+(e-c)>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[34032+(c-e)>>0]|0)+c&65535;break}while(0);return a|0}function Dv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(yu(b,d,e)|0))f=1;else{f=a[d>>0]|0;if(f<<24>>24==77)g=6;else if(f<<24>>24==71){if(Dv(b,c[d+12>>2]|0,e)|0){f=1;break}if(Dv(b,c[d+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}if(((g|0)==6?(yu(c[b+12>>2]|0,c[d+12>>2]|0,e)|0)==0:0)?(f=a[b>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Ev(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;s=d;t=d+8|0;g=t;r=~(c[g>>2]|c[s>>2]);s=~(c[g+4>>2]|c[s+4>>2]);g=c[a+12>>2]|0;p=a+20|0;a:do if((g|0)>0){q=d+40|0;a=d+22|0;o=d+48|0;d=0;n=c[p>>2]|0;while(1){if(b[n+20>>1]&2)break a;m=n+40|0;l=c[m>>2]|0;m=c[m+4>>2]|0;k=t;b:do if(((c[k>>2]&l|0)!=0?1:(c[k+4>>2]&m|0)!=0)&((l&r|0)==0&(m&s|0)==0)){h=b[q>>1]|0;c:do if(h<<16>>16){m=c[o>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[m+(l<<2)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[k+4>>2]|0;if((k|0)>-1?((c[p>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[n+16>>1]|0;if(h<<16>>16<1){b[a>>1]=(e[a>>1]|0)+(h&65535);break}b[a>>1]=(b[a>>1]|0)+-1<<16>>16;if(b[n+18>>1]&2){l=(Is(c[(c[n>>2]|0)+16>>2]|0,u)|0)!=0;m=c[u>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[u>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[a>>1]|0)>(d|0))b[a>>1]=d;i=v;return}function Fv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0;ea=i;i=i+112|0;if((i|0)>=(j|0))ba();O=ea;S=c[c[c[d>>2]>>2]>>2]|0;ca=c[d+12>>2]|0;if(!(a[S+65>>0]|0)){da=ca+36|0;if(!(c[da>>2]&32))if((c[g+40>>2]|0)<1)k=63;else k=(a[f+36>>0]&8)<<4^191;else k=24;T=g+51|0;$=ca+24|0;l=b[(c[g+4>>2]|0)+(e[$>>1]<<1)>>1]|0;K=l<<16>>16;L=d+4|0;k=zv(O,c[L>>2]|0,c[f+40>>2]|0,K,(a[T>>0]&4)==0?k:k&131,g)|0;U=b[$>>1]|0;V=ca+42|0;Q=b[V>>1]|0;W=ca+40|0;R=b[W>>1]|0;X=c[da>>2]|0;N=ca;M=c[N>>2]|0;N=c[N+4>>2]|0;Y=ca+22|0;Z=b[Y>>1]|0;b[ca+18>>1]=0;_=g+8|0;A=b[c[_>>2]>>1]|0;if(A<<16>>16<11)z=0;else{z=A<<16>>16;z=((bs(z,((z|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{B=l<<16>>16<0;C=f+16|0;D=ca+8|0;E=(R&65535)+1|0;F=ca+48|0;G=h<<16>>16==0;H=g+46|0;t=l<<16>>16>-1;u=g+50|0;v=g+44|0;w=ca+20|0;x=h<<16>>16;y=g+48|0;o=0;r=k;p=0;while(1){l=b[r+18>>1]|0;q=l&65535;if(l<<16>>16==128)if(!B?(a[(c[(c[C>>2]|0)+4>>2]|0)+(K*24|0)+20>>0]|0)==0:0)P=12;else{m=o;l=p;k=0}else P=12;if((P|0)==12){P=0;m=r+32|0;s=m;n=D;if(((c[n>>2]&c[s>>2]|0)==0?(c[n+4>>2]&c[s+4>>2]|0)==0:0)?(I=r+20|0,!((b[I>>1]&256)!=0&l<<16>>16==16)):0){c[da>>2]=X;b[$>>1]=U;b[W>>1]=R;if(Ju(S,ca,E)|0){k=0;break a}k=b[W>>1]|0;n=k+1<<16>>16;b[W>>1]=n;c[(c[F>>2]|0)+((k&65535)<<2)>>2]=r;k=m;l=D;m=(c[k+4>>2]|N)&~c[l+4>>2];s=ca;c[s>>2]=(c[k>>2]|M)&~c[l>>2];c[s+4>>2]=m;b:do if(!(q&1)){if(q&2){k=c[da>>2]|0;l=k|1;c[da>>2]=l;do if(!B){if(!G){s=0;break b}if((e[$>>1]|0)!=((e[H>>1]|0)+-1|0)){s=0;break b}if(!t)break;if(a[u>>0]|0)break;l=k|65537;c[da>>2]=l;s=0;break b}while(0);l=k|4097;c[da>>2]=l;s=0;break}if(q&128){l=c[da>>2]|8;c[da>>2]=l;s=0;break}k=c[da>>2]|0;if(!(q&36)){l=k|18;c[da>>2]=l;if(!(k&32)){s=0;o=0;p=r;break}s=0;o=c[(c[F>>2]|0)+((n&65535)+-2<<2)>>2]|0;p=r;break}l=k|34;c[da>>2]=l;if(!(b[I>>1]&256)){s=0;o=r;p=0}else{k=r+48|0;if(Ju(S,ca,(n&65535)+1|0)|0){k=0;break a}l=b[W>>1]|0;b[W>>1]=l+1<<16>>16;c[(c[F>>2]|0)+((l&65535)<<2)>>2]=k;l=c[da>>2]|16;c[da>>2]=l;s=0;o=r;p=k}}else{k=c[r>>2]|0;l=c[da>>2]|4;c[da>>2]=l;if(!(c[k+4>>2]&2048)){k=c[k+20>>2]|0;if((k|0)!=0?(J=c[k>>2]|0,(J|0)!=0):0)s=(bs(J,((J|0)<0)<<31>>31)|0)<<16>>16;else s=0}else s=46}while(0);do if(!(l&2)){k=(b[$>>1]|0)+1<<16>>16;b[$>>1]=k;k=k&65535;m=b[r+16>>1]|0;if(m<<16>>16<1&t){n=(m&65535)-s+(e[Y>>1]|0)&65535;b[Y>>1]=n;break}m=c[_>>2]|0;m=(e[Y>>1]|0)+((e[m+(k<<1)>>1]|0)-(e[m+(k+-1<<1)>>1]|0))|0;k=m&65535;b[Y>>1]=k;if(!(q&128))n=k;else{n=m+10&65535;b[Y>>1]=n}}else{k=b[Y>>1]|0;n=k<<16>>16;do if(o){m=b[o+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(p){m=b[p+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(o|0)!=0;do if(m?(b[o+16>>1]|0)>0&(p|0)!=0:0){if((b[p+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);n=(((p|0)!=0)<<31>>31)+(m<<31>>31)+n|0;r=k<<16>>16<10?10:k<<16>>16;n=((r|0)<(n|0)?r:n)&65535;b[Y>>1]=n}while(0);k=n&65535;m=Cv(z,k+1+(((b[v>>1]|0)*15|0)/(b[(c[C>>2]|0)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Cv(m,k+16&65535)|0;l=s+x|0;b[w>>1]=(m&65535)+l;b[Y>>1]=k+l;Ev(c[L>>2]|0,ca,A);k=Bv(d,ca)|0;s=c[da>>2]|0;b[Y>>1]=(s&2|0)==0?n:Z;if((s&16|0)==0?(e[$>>1]|0)<(e[y>>1]|0):0)Fv(d,f,g,l&65535)|0;b[Y>>1]=Z;m=o;l=p}else{m=o;l=p;k=0}}r=Av(O)|0;if(!((k|0)==0&(r|0)!=0))break;else{o=m;p=l}}}while(0);l=ca;c[l>>2]=M;c[l+4>>2]=N;b[$>>1]=U;b[V>>1]=Q;c[da>>2]=X;b[Y>>1]=Z;b[W>>1]=R;l=U&65535;if(((U<<16>>16==Q<<16>>16?(aa=l+1|0,aa>>>0<(e[g+46>>1]|0)>>>0):0)?(a[T>>0]&64)==0:0)?(b[(c[_>>2]|0)+(aa<<1)>>1]|0)>41:0){k=Ju(S,ca,(R&65535)+1|0)|0;if(!k){b[$>>1]=(b[$>>1]|0)+1<<16>>16;b[V>>1]=(b[V>>1]|0)+1<<16>>16;k=b[W>>1]|0;b[W>>1]=k+1<<16>>16;c[(c[ca+48>>2]|0)+((k&65535)<<2)>>2]=0;c[da>>2]=c[da>>2]|32768;k=c[_>>2]|0;k=(e[k+(l<<1)>>1]|0)-(e[k+(aa<<1)>>1]|0)|0;b[Y>>1]=(e[Y>>1]|0)-k;Fv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[Y>>1]=Z;b[$>>1]=U;b[V>>1]=U;c[da>>2]=X;k=0}}}else k=7;i=ea;return k|0}function Gv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=b[a>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[k+8>>1]|0;if(i<<16>>16>=f<<16>>16?(p=k,(c[p>>2]&d|0)==(d|0)?(c[p+4>>2]&e|0)==(e|0):0):0){n=k;o=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,p=c[i>>2]|0,i=c[i+4>>2]|0,(p&d|0)==(p|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[a+16>>1]|0;k=1;do{if(i<<16>>16>(b[a+(k<<4)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[h+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;o=14}}else o=9}else o=9;while(0);if((o|0)==9){n=l&65535;b[a>>1]=l+1<<16>>16;b[a+(n<<4)+18>>1]=g;n=a+(n<<4)+8|0;o=14}if((o|0)==14?(m=n,c[m>>2]=d,c[m+4>>2]=e,b[n+8>>1]=f,m=n+10|0,(b[m>>1]|0)>g<<16>>16):0)b[m>>1]=g;return}function Hv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[d+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[h>>0]|0)!=0):0){e=d+32|0;Sc(c[e>>2]|0);a[h>>0]=0;c[e>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[f>>2]|0,(g|0)!=0):0){ig(b,c[g+16>>2]|0);ig(b,c[f>>2]|0);c[f>>2]=0}}while(0);return}function Iv(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,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;qa=i;i=i+32|0;if((i|0)>=(j|0))ba();la=qa;p=c[c[f>>2]>>2]|0;ka=l&65535;if(l<<16>>16!=0?(b[p+60>>1]&128)!=0:0)o=0;else ma=3;a:do if((ma|0)==3){pa=c[g>>2]|0;o=pa&65535;if(o>>>0<=63){na=ew(1,0,o|0)|0;na=fw(na|0,C|0,-1,-1)|0;oa=C;b:do if((na|0)==0&(oa|0)==0){g=0;h=0;p=1}else{ea=h+24|0;fa=f+4|0;ga=(o|0)==0;ca=g+4|0;da=(k&768)==0;aa=p+8|0;T=(k&256)==0;U=f+68|0;V=la+20|0;W=la+4|0;Z=la+24|0;_=f+328|0;X=0;Y=0;g=0;h=0;k=0;q=0;$=0;p=1;l=0;while(1){if(($|0)>0){R=l+8|0;S=c[R>>2]|k;q=c[R+4>>2]|q}else S=k;if(($|0)<(ka|0))l=c[(c[ea>>2]|0)+($<<2)>>2]|0;else l=m;y=l+36|0;k=c[y>>2]|0;if(k&1024)break;R=c[(c[fa>>2]|0)+((d[l+16>>0]|0)*72|0)+48>>2]|0;if(!ga){k=~S;s=~q;v=0;do{x=ew(1,0,v|0)|0;w=C;c:do if((x&g|0)==0&(w&h|0)==0){r=c[(c[ca>>2]|0)+(v*20|0)>>2]|0;u=c[r+4>>2]|0;if(u&4096)do{if(!(u&262144))r=r+12|0;else r=c[(c[r+20>>2]|0)+4>>2]|0;r=c[r>>2]|0;u=c[r+4>>2]|0}while((u&4096|0)!=0);if(((a[r>>0]|0)==-102?(c[r+28>>2]|0)==(R|0):0)?(ha=r+32|0,ia=Bu(_,R,b[ha>>1]|0,k,s,130,0)|0,(ia|0)!=0):0){do if(b[ia+18>>1]&2){if((b[ha>>1]|0)<=-1)break;r=_t(c[f>>2]|0,c[(c[ca>>2]|0)+(v*20|0)>>2]|0)|0;if(!r)r=c[aa>>2]|0;u=c[r>>2]|0;t=_t(c[f>>2]|0,c[ia>>2]|0)|0;if(!t)t=c[aa>>2]|0;if($c(u,c[t>>2]|0)|0)break c}while(0);g=x|g;h=w|h}}while(0);v=v+1|0}while((v|0)<(o|0));k=c[y>>2]|0}do if(!(k&4096)){if(!(k&256)){r=c[l+28>>2]|0;if(!r){o=0;break a}if(a[r+51>>0]&4){o=0;break a}k=b[r+48>>1]|0;p=(a[r+50>>0]|0)!=0&1;if(!(k<<16>>16)){ma=71;break}else{P=k&65535;Q=b[r+46>>1]|0}}else{P=1;Q=0;r=0}G=l+24|0;H=l+42|0;I=l+48|0;J=(r|0)==0;K=r+32|0;L=ew(1,0,$|0)|0;M=C;N=r+4|0;O=r+28|0;F=r+12|0;k=0;r=0;x=0;E=0;d:while(1){w=(r|0)<(e[G>>1]|0);if((w?(b[H>>1]|0)==0:0)?(ja=e[(c[(c[I>>2]|0)+(r<<2)>>2]|0)+18>>1]|0,(ja&130|0)!=0):0){p=(ja&128|0)==0?p:0;w=E}else{if(!J){u=b[(c[N>>2]|0)+(r<<1)>>1]|0;t=a[(c[O>>2]|0)+r>>0]|0;s=c[F>>2]|0;u=u<<16>>16==(b[s+36>>1]|0)?-1:u<<16>>16;v=(u|0)>-1;if(p<<24>>24!=0&v)if(w){v=1;D=u}else{v=1;D=u;p=(a[(c[s+4>>2]|0)+(u*24|0)+20>>0]|0)==0?0:p}else D=u}else{v=0;D=-1;t=0}if(ga){ma=68;break}else{w=1;B=0}e:while(1){z=ew(1,0,B|0)|0;A=C;do if((z&g|0)==0&(A&h|0)==0){s=c[(c[ca>>2]|0)+(B*20|0)>>2]|0;u=c[s+4>>2]|0;if(!(u&4096))y=s;else{y=s;do{if(!(u&262144))u=y+12|0;else u=c[(c[y+20>>2]|0)+4>>2]|0;y=c[u>>2]|0;u=c[y+4>>2]|0}while((u&4096|0)!=0)}w=da?0:w;if((a[y>>0]|0)!=-102)break;if((c[y+28>>2]|0)!=(R|0))break;if((b[y+32>>1]|0)!=(D|0))break;if(!v){y=z;v=A;w=B;break e}u=_t(c[f>>2]|0,s)|0;if(!u)u=c[aa>>2]|0;if(!($c(c[u>>2]|0,c[(c[K>>2]|0)+(r<<2)>>2]|0)|0)){y=z;v=A;w=B;break e}}while(0);B=B+1|0;if(!(w<<24>>24!=0&(B|0)<(o|0))){ma=68;break d}}do if(T){if(E<<24>>24)if((t^x)<<24>>24==(a[(c[ca>>2]|0)+(w*20|0)+12>>0]|0)){w=E;break}else{ma=68;break d}s=a[(c[ca>>2]|0)+(w*20|0)+12>>0]|0;x=s^t;if(t<<24>>24==s<<24>>24){w=1;break}s=n;t=c[s+4>>2]|M;w=n;c[w>>2]=c[s>>2]|L;c[w+4>>2]=t;w=1}else w=E;while(0);g=y|g;h=v|h;k=(D|0)<0?1:k}r=r+1|0;if((r|0)>=(P|0))break;else E=w}if((ma|0)==68){ma=0;p=(r|0)==0|(r|0)<(Q&65535|0)?0:p}if(!(k<<24>>24))ma=71;else p=1}else ma=71;while(0);if((ma|0)==71){ma=0;if(!(p<<24>>24)){p=0;break b}}R=l+8|0;X=c[R>>2]|X;Y=c[R+4>>2]|Y;if(!ga){w=~X;x=~Y;v=0;do{r=ew(1,0,v|0)|0;u=C;do if((r&g|0)==0&(u&h|0)==0){k=c[(c[ca>>2]|0)+(v*20|0)>>2]|0;s=wv(U,k)|0;t=C;if((s|0)==0&(t|0)==0?(c[la+0>>2]=0,c[la+4>>2]=0,c[la+8>>2]=0,c[la+12>>2]=0,c[la+16>>2]=0,c[la+20>>2]=0,a[V>>0]=1,c[la>>2]=78,c[W>>2]=79,c[Z>>2]=0,ns(la,k)|0,(a[V>>0]|0)==0):0)break;R=(s&w|0)==0&(t&x|0)==0;g=(R?r:0)|g;h=(R?u:0)|h}while(0);v=v+1|0}while((v|0)<(o|0))}if(h>>>0>oa>>>0|(h|0)==(oa|0)&g>>>0>=na>>>0|p<<24>>24==0|($|0)>=(ka|0))break b;else{k=S;$=$+1|0}}da=(a[l+29>>0]|0)==0;g=da?g:na;h=da?h:oa}while(0);if((g|0)==(na|0)&(h|0)==(oa|0)){o=pa&255;break}if(!(p<<24>>24)){do{o=o+-1|0;if((o|0)<=0){o=0;break a}ca=ew(1,0,o|0)|0;ca=fw(ca|0,C|0,-1,-1)|0;da=C}while(!((ca&g|0)==(ca|0)&(da&h|0)==(da|0)));o=o&255}else o=-1}else o=0}while(0);i=qaqa(13)}function gx(){ra(14)}function hx(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;sa(15);return 0}function ix(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ta(16);return 0}function jx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ua(17)}function kx(a,b){a=a|0;b=b|0;va(18);return 0}function lx(a,b){a=a|0;b=b|0;return ab(a|0,b|0)|0}function mx(a,b){a=a|0;b=b|0;return Sb(a|0,b|0)|0}function nx(a,b){a=a|0;b=b|0;return Eb(a|0,b|0)|0}function ox(a,b){a=a|0;b=b|0;return bb(a|0,b|0)|0}function px(a,b){a=a|0;b=b|0;return vb(a|0,b|0)|0}function qx(a,b){a=a|0;b=b|0;return tb(a|0,b|0)|0}function rx(a,b){a=a|0;b=b|0;return wb(a|0,b|0)|0}function sx(a,b){a=a|0;b=b|0;return Pb(a|0,b|0)|0}function tx(a,b,c){a=a|0;b=b|0;c=+c;wa(19);return 0}function ux(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;xa(20);return 0}