Lines Matching refs:Da
3 "use asm";var a=global.Int8Array;var b=global.Int16Array;var c=global.Int32Array;var d=global.Uint8Array;var e=global.Uint16Array;var f=global.Uint32Array;var g=global.Float32Array;var h=global.Float64Array;var i=new a(buffer);var j=new b(buffer);var k=new c(buffer);var l=new d(buffer);var m=new e(buffer);var n=new f(buffer);var o=new g(buffer);var p=new h(buffer);var q=global.byteLength;var r=env.STACKTOP|0;var s=env.STACK_MAX|0;var t=env.tempDoublePtr|0;var u=env.ABORT|0;var v=env.cttz_i8|0;var w=0;var x=0;var y=0;var z=0;var A=global.NaN,B=global.Infinity;var C=0,D=0,E=0,F=0,G=0.0,H=0,I=0,J=0,K=0.0;var L=0;var M=0;var N=0;var O=0;var P=0;var Q=0;var R=0;var S=0;var T=0;var U=0;var V=global.Math.floor;var W=global.Math.abs;var X=global.Math.sqrt;var Y=global.Math.pow;var Z=global.Math.cos;var _=global.Math.sin;var $=global.Math.tan;var aa=global.Math.acos;var ba=global.Math.asin;var ca=global.Math.atan;var da=global.Math.atan2;var ea=global.Math.exp;var fa=global.Math.log;var ga=global.Math.ceil;var ha=global.Math.imul;var ia=global.Math.min;var ja=global.Math.clz32;var ka=env.abort;var la=env.assert;var ma=env.nullFunc_iiiiiiii;var na=env.nullFunc_iiii;var oa=env.nullFunc_viiiiii;var pa=env.nullFunc_vi;var qa=env.nullFunc_viiiii;var ra=env.nullFunc_dii;var sa=env.nullFunc_vid;var ta=env.nullFunc_di;var ua=env.nullFunc_i;var va=env.nullFunc_iiiiiiiiii;var wa=env.nullFunc_vii;var xa=env.nullFunc_iiiiiii;var ya=env.nullFunc_ii;var za=env.nullFunc_viii;var Aa=env.nullFunc_v;var Ba=env.nullFunc_iiiiiiiii;var Ca=env.nullFunc_iiiii;var Da=env.nullFunc_viiii;var Ea=env.nullFunc_iii;var Fa=env.nullFunc_iiid;var Ga=env.nullFunc_iiiiii;var Ha=env.invoke_iiiiiiii;var Ia=env.invoke_iiii;var Ja=env.invoke_viiiiii;var Ka=env.invoke_vi;var La=env.invoke_viiiii;var Ma=env.invoke_dii;var Na=env.invoke_vid;var Oa=env.invoke_di;var Pa=env.invoke_i;var Qa=env.invoke_iiiiiiiiii;var Ra=env.invoke_vii;var Sa=env.invoke_iiiiiii;var Ta=env.invoke_ii;var Ua=env.invoke_viii;var Va=env.invoke_v;var Wa=env.invoke_iiiiiiiii;var Xa=env.invoke_iiiii;var Ya=env.invoke_viiii;var Za=env.invoke_iii;var _a=env.invoke_iiid;var $a=env.invoke_iiiiii;var ab=env._dlerror;var bb=env._utimes;var cb=env._getuid;var db=env._send;var eb=env._dlsym;var fb=env._mknod;var gb=env._chown;var hb=env._lseek;var ib=env._emscripten_set_main_loop_timing;var jb=env._access;var kb=env._fstat;var lb=env._chmod;var mb=env._rmdir;var nb=env.___assert_fail;var ob=env._usleep;var pb=env.___buildEnvironment;var qb=env._fflush;var rb=env._pwrite;var sb=env._strerror_r;var tb=env._localtime_r;var ub=env._tzset;var vb=env._open;var wb=env._getpid;var xb=env._sbrk;var yb=env._fcntl;var zb=env._emscripten_memcpy_big;var Ab=env._unlink;var Bb=env._sysconf;var Cb=env._fchmod;var Db=env.___setErrNo;var Eb=env._ftruncate;var Fb=env._mkdir;var Gb=env._pread;var Hb=env._mkport;var Ib=env._dlopen;var Jb=env._dlclose;var Kb=env._write;var Lb=env._fsync;var Mb=env.___errno_location;var Nb=env._stat;var Ob=env._recv;var Pb=env._geteuid;var Qb=env._getenv;var Rb=env._sleep;var Sb=env._emscripten_set_main_loop;var Tb=env._abort;var Ub=env._time;var Vb=env._fchown;var Wb=env._strerror;var Xb=env._gettimeofday;var Yb=env._munmap;var Zb=env._mmap;var _b=env._localtime;var $b=env._getcwd;var ac=env._close;var bc=env._read;var cc=env._truncate;var dc=0.0;function _emscripten_replace_memory(newBuffer){if(q(newBuffer)&16777215||q(newBuffer)<=16777215||q(newBuffer)>2147483648)return false;i=new a(newBuffer);j=new b(newBuffer);k=new c(newBuffer);l=new d(newBuffer);m=new e(newBuffer);n=new f(newBuffer);o=new g(newBuffer);p=new h(newBuffer);buffer=newBuffer;return true}
6 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,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;Ma=r;r=r+64|0;if((r|0)>=(s|0))ka();Ka=Ma;La=Ma+48|0;Ja=Ma+52|0;Y=Ma+28|0;Ha=a+8|0;da=k[Ha>>2]|0;Ia=k[a>>2]|0;k[Y+0>>2]=0;k[Y+4>>2]=0;k[Y+8>>2]=0;k[Y+12>>2]=0;k[Y+16>>2]=0;if(!d)P=0;else P=(k[d>>2]|0)>63?0:d;Z=Y+8|0;k[Z>>2]=P;_=Ia+60|0;if(j[_>>1]&32)f=f&64511;d=k[b>>2]|0;a:do if((d|0)<=64){H=f&65535;K=(H&64|0)!=0;U=K?1:d;u=(U*80|0)+743&-16;h=u+72|0;d=rh(Ia,h,0)|0;Ga=(d|0)==0;if(!Ga)kw(d|0,0,h|0)|0;xa=Ia+65|0;if(i[xa>>0]|0){rg(Ia,d);d=0;break}ba=d+60|0;ca=d+64|0;k[ca>>2]=-1;k[ba>>2]=-1;ya=d+41|0;i[ya>>0]=U;k[d>>2]=a;za=d+4|0;k[za>>2]=b;$=d+8|0;k[$>>2]=P;k[d+12>>2]=e;Ba=Cs(da)|0;Aa=d+48|0;k[Aa>>2]=Ba;o=d+52|0;k[o>>2]=Ba;Ba=d+34|0;j[Ba>>1]=f;Ca=a+424|0;Da=d+56|0;k[Da>>2]=k[Ca>>2];Ea=d+68|0;k[Y>>2]=d;Fa=d+328|0;X=Y+4|0;k[X>>2]=Fa;S=Y+12|0;k[S>>2]=d+u;k[d+(u+48)>>2]=d+(u+56);j[d+(u+40)>>1]=0;j[d+(u+44)>>1]=3;k[d+(u+36)>>2]=0;k[Ea>>2]=0;k[Fa>>2]=d;k[d+332>>2]=0;va=d+340|0;k[va>>2]=0;k[d+344>>2]=8;wa=d+348|0;k[wa>>2]=d+352;Iu(Fa,c,72);y=(U|0)==0;if((k[d+340>>2]|0)>0){x=Ka+20|0;w=Ka+4|0;h=Ka+24|0;c=Fa;n=0;do{if(!y){c=k[(k[c+20>>2]|0)+(n*48|0)>>2]|0;k[Ka+0>>2]=0;k[Ka+4>>2]=0;k[Ka+8>>2]=0;k[Ka+12>>2]=0;k[Ka+16>>2]=0;k[Ka+20>>2]=0;i[x>>0]=2;k[Ka>>2]=78;k[w>>2]=79;k[h>>2]=0;ws(Ka,c)|0;c=k[X>>2]|0;if(i[x>>0]|0)ua=15}else ua=15;if((ua|0)==15){ua=0;lt(a,k[(k[c+20>>2]|0)+(n*48|0)>>2]|0,k[o>>2]|0,16);c=k[X>>2]|0;aa=(k[c+20>>2]|0)+(n*48|0)+20|0;j[aa>>1]=m[aa>>1]|4}n=n+1|0}while((n|0)<(k[c+12>>2]|0))}if(y){if(P)i[d+36>>0]=k[P>>2];if(H&1024)i[d+40>>0]=1}if((k[b>>2]|0)>0){u=0;do{O=k[b+(u*72|0)+48>>2]|0;aa=k[Ea>>2]|0;k[Ea>>2]=aa+1;k[Ea+(aa<<2)+4>>2]=O;u=u+1|0}while((u|0)<(k[b>>2]|0))}p=k[va>>2]|0;if((p|0)>0)do{p=p+-1|0;Ju(Fa,p)}while((p|0)>0);b:do if(!(i[xa>>0]|0)){aa=(H&1024|0)==0;c:do if(!aa){d:do if((k[b>>2]|0)==1){G=k[b+48>>2]|0;n=k[b+24>>2]|0;x=k[e>>2]|0;e:do if((x|0)>0){w=k[e+4>>2]|0;h=0;while(1){c=k[w+(h*20|0)>>2]|0;f:do if(!c)c=0;else while(1){y=k[c+4>>2]|0;if(!(y&4096))break f;if(!(y&262144))c=c+12|0;else c=k[(k[c+20>>2]|0)+4>>2]|0;c=k[c>>2]|0;if(!c){c=0;break}}while(0);do if((i[c>>0]|0)==-102){if((k[c+28>>2]|0)!=(G|0))break;if((j[c+32>>1]|0)<0)break e}while(0);h=h+1|0;if((h|0)>=(x|0)){ua=41;break}}}else ua=41;while(0);g:do if((ua|0)==41){c=k[n+8>>2]|0;if(!c)break d;o=e+4|0;n=n+4|0;while(1){if(i[c+50>>0]|0){C=c+46|0;h:do if(!(j[C>>1]|0))y=0;else{E=c+4|0;D=c+32|0;y=0;do{B=j[(k[E>>2]|0)+(y<<1)>>1]|0;if(!(Ku(Fa,G,B,-1,-1,2,c)|0)){h=k[(k[D>>2]|0)+(y<<2)>>2]|0;if((k[e>>2]|0)>0)x=0;else break h;i:while(1){z=k[(k[o>>2]|0)+(x*20|0)>>2]|0;j:do if(!z)w=0;else{w=z;while(1){A=k[w+4>>2]|0;if(!(A&4096))break j;if(!(A&262144))w=w+12|0;else w=k[(k[w+20>>2]|0)+4>>2]|0;w=k[w>>2]|0;if(!w){w=0;break}}}while(0);do if((i[w>>0]|0)==-102){if((j[w+32>>1]|0)!=(j[(k[E>>2]|0)+(y<<1)>>1]|0))break;if((k[w+28>>2]|0)!=(G|0))break;w=hu(a,z)|0;if(!w)break;if(!(id(k[w>>2]|0,h)|0))break i}while(0);x=x+1|0;if((x|0)>=(k[e>>2]|0))break h}if((x|0)<0)break h;if(!(i[(k[n>>2]|0)+(B*24|0)+20>>0]|0))break h}y=y+1|0}while((y|0)<(m[C>>1]|0))}while(0);if((y|0)==(m[C>>1]|0))break g}c=k[c+20>>2]|0;if(!c)break d}}while(0);i[d+40>>0]=1;break c}while(0);if(!P){j[Ba>>1]=m[Ba>>1]|512;k[$>>2]=e}}while(0);k:do if((((U|0)==1?(W=k[Y>>2]|0,V=W+34|0,(j[V>>1]&32)==0):0)?(R=k[W+4>>2]|0,N=k[R+24>>2]|0,(i[N+44>>0]&16)==0):0)?(k[R+72>>2]|0)==0:0){P=k[R+48>>2]|0;z=W+328|0;O=k[S>>2]|0;G=O+36|0;k[G>>2]=0;j[O+42>>1]=0;v=Ku(z,P,-1,0,0,2,0)|0;l:do if(!v){x=k[N+8>>2]|0;m:do if(x){A=O+48|0;n:while(1){do if(i[x+50>>0]|0){if(k[x+36>>2]|0)break;w=x+46|0;c=j[w>>1]|0;if((c&65535)>3)break;o=x+4|0;o:do if(!(c<<16>>16)){c=0;y=0}else{y=0;while(1){c=Ku(z,P,j[(k[o>>2]|0)+(y<<1)>>1]|0,0,0,2,x)|0;if(!c)break;k[(k[A>>2]|0)+(y<<2)>>2]=c;y=y+1|0;c=j[w>>1]|0;if((y|0)>=(c&65535|0))break o}c=j[w>>1]|0}while(0);if((y|0)==(c&65535|0)){A=y;break n}}while(0);x=k[x+20>>2]|0;if(!x)break m}k[G>>2]=4609;if(!(i[x+51>>0]&32)){n=R+64|0;h=k[n>>2]|0;n=k[n+4>>2]|0;w=0;v=0;c=m[x+48>>1]|0;p:while(1){y=c;while(1){c=y+-1|0;if((y|0)<=0)break p;y=j[(k[o>>2]|0)+(c<<1)>>1]|0;if((y&65535)<63)break;else y=c}Y=nw(1,0,y<<16>>16|0)|0;w=Y|w;v=L|v}if((h&~w|0)==0&(n&~v|0)==0)ua=91}else ua=91;if((ua|0)==91)k[G>>2]=4673;Y=A&65535;j[O+40>>1]=Y;j[O+24>>1]=Y;k[O+28>>2]=x;j[O+20>>1]=39;break l}while(0);if(!(k[G>>2]|0)){ua=103;break k}}else{k[G>>2]=4353;k[k[O+48>>2]>>2]=v;j[O+40>>1]=1;j[O+24>>1]=1;j[O+20>>1]=33}while(0);j[O+22>>1]=1;k[W+800>>2]=O;o=k[W+68>>2]|0;q:do if((o|0)>0){p=0;while(1){if((k[W+(p<<2)+72>>2]|0)==(P|0))break;p=p+1|0;if((p|0)>=(o|0)){p=0;o=0;break q}}p=nw(1,0,p|0)|0;o=L}else{p=0;o=0}while(0);n=O+8|0;k[n>>2]=p;k[n+4>>2]=o;k[W+740>>2]=P;j[W+32>>1]=1;n=k[W+8>>2]|0;if(n)i[W+36>>0]=k[n>>2];if(!(j[V>>1]&1024)){ua=120;break}i[W+40>>0]=1;ua=120}else ua=103;while(0);if((ua|0)==103){C=k[Y>>2]|0;c=k[C+4>>2]|0;D=k[k[C>>2]>>2]|0;W=i[C+41>>0]|0;E=W&255;w=k[S>>2]|0;k[w+48>>2]=w+56;j[w+40>>1]=0;j[w+44>>1]=3;k[w+36>>2]=0;h=D+65|0;r:do if(W<<24>>24){n=w+16|0;o=C+68|0;p=w+8|0;q=0;t=0;u=0;v=0;B=0;A=c+8|0;z=0;while(1){i[n>>0]=B;y=k[A+40>>2]|0;x=k[o>>2]|0;s:do if((x|0)>0){c=0;while(1){if((k[C+(c<<2)+72>>2]|0)==(y|0))break;c=c+1|0;if((c|0)>=(x|0)){c=0;y=0;break s}}c=nw(1,0,c|0)|0;y=L}else{c=0;y=0}while(0);W=p;k[W>>2]=c;k[W+4>>2]=y;W=z;z=i[A+36>>0]|0;W=((z|W)&10)==0;t=W?t:q;v=W?v:u;if(!(i[(k[A+16>>2]|0)+44>>0]&16))c=Mu(Y,t,v)|0;else c=Lu(Y,t,v)|0;if(c)break;W=Nu(Y,t,v)|0;c=p;if(W)break;if(i[h>>0]|0)break r;B=B+1|0;if((B|0)>=(E|0))break r;else{q=k[c>>2]|q;u=k[c+4>>2]|u;A=A+72|0}}Ou(D,w);break b}while(0);Ou(D,w);Pu(d,0);if(i[xa>>0]|0)break;if(k[$>>2]|0){Pu(d,(m[d+32>>1]|0)+1&65535);if(!(i[xa>>0]|0))ua=120;else break}else ua=121}if((ua|0)==120?(k[$>>2]|0)==0:0)ua=121;if((ua|0)==121?(k[Ia+24>>2]&131072|0)!=0:0){$=d+24|0;k[$>>2]=-1;k[$+4>>2]=-1}if((k[a+64>>2]|0)==0?(i[xa>>0]|0)==0:0){u=i[ya>>0]|0;t:do if((u&255)>1&(e|0)!=0?(j[_>>1]&1024)==0:0){n=Qu(Ea,e)|0;o=L;h=k[Z>>2]|0;if(h){$=Qu(Ea,h)|0;n=$|n;o=L|o}y=d+736|0;c=k[za>>2]|0;x=k[X>>2]|0;w=x+20|0;x=x+12|0;v=u;h=U;do{p=k[y+(((v&255)+-1|0)*80|0)+64>>2]|0;if(!(i[c+((l[p+16>>0]|0)*72|0)+44>>0]&8))break t;if(aa?(k[p+36>>2]&4096|0)==0:0)break t;t=p+8|0;q=k[t>>2]|0;t=k[t+4>>2]|0;if(!((q&n|0)==0&(t&o|0)==0))break t;p=k[w>>2]|0;$=k[x>>2]|0;u=p+($*48|0)|0;if(($|0)>0)do{$=p+40|0;if(!((q&k[$>>2]|0)==0?(t&k[$+4>>2]|0)==0:0)?(k[(k[p>>2]|0)+4>>2]&1|0)==0:0)break t;p=p+48|0}while(p>>>0<u>>>0);v=v+-1<<24>>24;i[ya>>0]=v;h=h+-1|0}while((v&255)>1)}else h=U;while(0);aa=(k[d>>2]|0)+424|0;k[aa>>2]=(k[aa>>2]|0)+(j[d+32>>1]|0);do if((H&4|0)!=0?(T=(k[d+800>>2]|0)+36|0,Q=k[T>>2]|0,(Q&4096|0)!=0):0){i[d+38>>0]=1;if(i[(k[b+24>>2]|0)+44>>0]&32)break;k[T>>2]=Q&-65}while(0);ta=d+736|0;P=(h|0)>0;if(P){M=H&16;N=d+38|0;O=da+32|0;I=K^1;K=(g|0)==0|I;J=a+68|0;G=54-(H>>>12&1)|0;F=da+4|0;B=Ia+20|0;z=Ia+16|0;q=0;H=ta;while(1){A=l[H+44>>0]|0;C=b+(A*72|0)+24|0;o=k[C>>2]|0;c=k[o+68>>2]|0;u:do if(!c)w=-1e6;else{y=k[B>>2]|0;if((y|0)<=0){w=0;break}x=k[z>>2]|0;n=0;while(1){w=n+1|0;if((k[x+(n<<4)+12>>2]|0)==(c|0)){w=n;break u}if((w|0)<(y|0))n=w;else break}}while(0);E=k[H+64>>2]|0;D=o+44|0;c=l[D>>0]|0;do if(!(c&2)){if(k[o+12>>2]|0)break;y=k[E+36>>2]|0;if(y&1024){v=k[o+60>>2]|0;v:do if(!v)v=0;else while(1){if((k[v>>2]|0)==(Ia|0))break v;v=k[v+24>>2]|0;if(!v){v=0;break}}while(0);Ch(da,Bh(da,149,k[b+(A*72|0)+48>>2]|0,0,0)|0,v,-10);break}if(c&16)break;if(y&64|M){ls(a,w,k[o+32>>2]|0,0,k[o>>2]|0);break}x=b+(A*72|0)+48|0;if(!(i[N>>0]|0))c=54;else{k[ba>>2]=k[x>>2];c=55}Vq(a,k[x>>2]|0,w,o,c);if(i[N>>0]|0)break;if((j[o+38>>1]|0)>=64)break;if(i[D>>0]&32)break;x=b+(A*72|0)+64|0;v=k[x>>2]|0;x=k[x+4>>2]|0;if((v|0)==0&(x|0)==0)u=0;else{u=0;do{v=rw(v|0,x|0,1)|0;x=L;u=u+1|0}while(!((v|0)==0&(x|0)==0))}Ch(da,(k[O>>2]|0)+-1|0,u,-14)}while(0);y=E+36|0;w:do if(k[y>>2]&512){c=k[E+28>>2]|0;do if(i[D>>0]&32){if((i[c+51>>0]&3)!=2|I)break;k[H+8>>2]=k[H+4>>2];break w}while(0);do if(!(i[N>>0]|0)){if(!K){u=g;t=G;break}u=k[J>>2]|0;k[J>>2]=u+1;t=54}else{t=k[(k[C>>2]|0)+8>>2]|0;if((t|0)==0|(t|0)==(c|0))u=g;else{u=g;do{u=u+1|0;t=k[t+20>>2]|0}while(!((t|0)==0|(t|0)==(c|0)))}k[ca>>2]=u;t=55}while(0);k[H+8>>2]=u;Bh(da,t,u,k[c+40>>2]|0,w)|0;aa=k[Ha>>2]|0;Ch(aa,-1,ms(a,c)|0,-6);aa=k[y>>2]|0;if(!((aa&15|0)!=0&(aa&32770|0)==0))break;if(j[Ba>>1]&1)break;p=k[F>>2]|0;if(!p)break;i[p+(((k[O>>2]|0)+-1|0)*20|0)+3>>0]=2}while(0);if((w|0)>-1)Fr(a,w);q=q+1|0;if((q|0)==(h|0))break;else H=H+80|0}ca=(i[xa>>0]|0)==0;k[d+44>>2]=k[O>>2];if(!ca)break}else{O=da+32|0;k[d+44>>2]=k[O>>2]}if(!P)break a;ga=d+24|0;ha=d+36|0;ia=d+39|0;ja=a+80|0;la=a+68|0;ma=a+100|0;na=a+19|0;oa=a+72|0;pa=Ka+20|0;qa=Ka+4|0;ra=Ka+24|0;o=-1;n=-1;sa=0;while(1){V=ta+(sa*80|0)|0;c=ta+(sa*80|0)+64|0;X=ta+(sa*80|0)+44|0;if(k[(k[c>>2]|0)+36>>2]&16384){G=l[X>>0]|0;R=b+(G*72|0)+8|0;W=k[Ha>>2]|0;v=Tq(a)|0;Y=k[ja>>2]|0;k[ja>>2]=Y+1;Y=Bh(v,44,Y,0,0)|0;v=k[b+(G*72|0)+24>>2]|0;ca=k[va>>2]|0;y=k[wa>>2]|0;Q=y+(ca*48|0)|0;I=k[c>>2]|0;x:do if((ca|0)>0){w=b+(G*72|0)+48|0;q=v+4|0;t=I+48|0;C=0;z=0;x=0;p=0;B=0;while(1){A=k[y>>2]|0;ca=I;do if((k[ca>>2]|0)==0&(k[ca+4>>2]|0)==0){if(j[y+20>>1]&2)break;if(k[A+4>>2]&1)break;ca=k[w>>2]|0;k[Ka+0>>2]=0;k[Ka+4>>2]=0;k[Ka+8>>2]=0;k[Ka+12>>2]=0;k[Ka+16>>2]=0;k[Ka+20>>2]=0;i[pa>>0]=3;k[Ka>>2]=78;k[qa>>2]=79;k[ra>>2]=ca;ws(Ka,A)|0;if(!(i[pa>>0]|0))break;ca=k[a>>2]|0;p=xs(ca,p,Rr(ca,A,0,0)|0)|0}while(0);do if(!(Ru(y,R,o,n)|0)){E=C;A=z;c=x}else{A=k[y+12>>2]|0;if((A|0)>63){E=0;D=-2147483648}else{E=nw(1,0,A|0)|0;D=L}if(!(B<<24>>24)){B=k[(k[q>>2]|0)+(A*24|0)>>2]|0;k[Ka>>2]=k[v>>2];k[Ka+4>>2]=B;gd(284,33960,Ka);B=1}if(!((E&C|0)==0&(D&z|0)==0)){E=C;A=z;c=x;break}c=x+1|0;if(Su(k[a>>2]|0,I,c)|0)break x;k[(k[t>>2]|0)+(x<<2)>>2]=y;E=E|C;A=D|z}while(0);y=y+48|0;if(y>>>0>=Q>>>0){y=E;ua=207;break}else{C=E;z=A;x=c}}}else{A=0;y=0;c=0;p=0;ua=207}while(0);do if((ua|0)==207){ua=0;q=c&65535;j[I+40>>1]=q;j[I+24>>1]=q;q=I+36|0;k[q>>2]=16961;H=b+(G*72|0)+64|0;J=H;D=k[J+4>>2]|0;J=k[J>>2]&~y;M=D&((A|-2147483648)^2147483647);u=v+38|0;N=j[u>>1]|0;E=N<<16>>16;N=N<<16>>16>63?63:E;P=(N|0)>0;if(P){A=0;do{ca=nw(1,0,A|0)|0;c=(((ca&J|0)!=0|(L&M|0)!=0)&1)+c|0;A=A+1|0}while((A|0)!=(N|0))}if((D|0)<0)c=c+-63+E|0;K=c+1|0;F=zs(k[a>>2]|0,K&65535,0,La)|0;if(!F)break;k[I+28>>2]=F;k[F>>2]=33992;k[F+12>>2]=v;A=k[wa>>2]|0;if(A>>>0<Q>>>0){c=F+4|0;y=F+32|0;D=0;E=0;x=0;do{do if(Ru(A,R,o,n)|0){C=k[A+12>>2]|0;if((C|0)>63){B=0;z=-2147483648}else{B=nw(1,0,C|0)|0;z=L}if(!((B&D|0)==0&(z&E|0)==0))break;ca=k[A>>2]|0;j[(k[c>>2]|0)+(x<<1)>>1]=C;C=Tu(a,k[ca+12>>2]|0,k[ca+16>>2]|0)|0;if(!C)C=11152;else C=k[C>>2]|0;k[(k[y>>2]|0)+(x<<2)>>2]=C;D=B|D;E=z|E;x=x+1|0}while(0);A=A+48|0}while(A>>>0<Q>>>0)}else x=0;if(P){A=F+4|0;z=F+32|0;c=0;do{ca=nw(1,0,c|0)|0;if(!((ca&J|0)==0&(L&M|0)==0)){j[(k[A>>2]|0)+(x<<1)>>1]=c;k[(k[z>>2]|0)+(x<<2)>>2]=11152;x=x+1|0}c=c+1|0}while((c|0)!=(N|0))}do if((k[H+4>>2]|0)<0){if((j[u>>1]|0)<=63)break;c=F+4|0;y=F+32|0;w=63;do{j[(k[c>>2]|0)+(x<<1)>>1]=w;k[(k[y>>2]|0)+(x<<2)>>2]=11152;x=x+1|0;w=w+1|0}while((w|0)<(j[u>>1]|0))}while(0);j[(k[F+4>>2]|0)+(x<<1)>>1]=-1;k[(k[F+32>>2]|0)+(x<<2)>>2]=11152;A=k[la>>2]|0;k[la>>2]=A+1;y=ta+(sa*80|0)+8|0;k[y>>2]=A;Bh(W,56,A,K,0)|0;A=k[Ha>>2]|0;Ch(A,-1,ms(a,F)|0,-6);k[ma>>2]=(k[ma>>2]|0)+1;A=ta+(sa*80|0)+4|0;t=Bh(W,108,k[A>>2]|0,0,0)|0;x=(p|0)!=0;if(x){w=Cs(W)|0;lt(a,p,w,16);k[q>>2]=k[q>>2]|131072}else w=0;c=i[na>>0]|0;if(!(c<<24>>24)){q=(k[oa>>2]|0)+1|0;k[oa>>2]=q}else{q=c+-1<<24>>24;i[na>>0]=q;q=k[a+((q&255)<<2)+24>>2]|0}Ut(a,F,k[A>>2]|0,q,0,0,0,0)|0;Bh(W,110,k[y>>2]|0,q,0)|0;z=W+4|0;c=k[z>>2]|0;if(c)i[c+(((k[W+32>>2]|0)+-1|0)*20|0)+3>>0]=16;if(x){y=k[W+24>>2]|0;x=~w;do if((w|0)<0){c=k[y+112>>2]|0;if(!c)break;k[c+(x<<2)>>2]=k[W+32>>2]}while(0);k[y+88>>2]=(k[W+32>>2]|0)+-1}Bh(W,9,k[A>>2]|0,t+1|0,0)|0;c=k[z>>2]|0;y=k[W+32>>2]|0;if(c)i[c+((y+-1|0)*20|0)+3>>0]=3;if(y>>>0>t>>>0)k[c+(t*20|0)+8>>2]=y;c=W+24|0;k[(k[c>>2]|0)+88>>2]=y+-1;ds(a,q);gu(a);u=k[W+32>>2]|0;if(u>>>0>Y>>>0)k[(k[z>>2]|0)+(Y*20|0)+8>>2]=u;k[(k[c>>2]|0)+88>>2]=u+-1}while(0);Lk(k[a>>2]|0,p);if(i[xa>>0]|0)break b}Uu(a,b,V,sa,l[X>>0]|0,f);k[ta+(sa*80|0)+32>>2]=k[O>>2];fa=k[d>>2]|0;K=fa+8|0;ba=k[K>>2]|0;dada,H);k[d+(sa*80|0)+788>>2]=k[ba+32>>2];if(c)Ch(ba,Bh(ba,l[33552+(A|_<<1)>>0]|0,U,J,I)|0,c,-14);Wu(p,P);Wu(p,M);do if(!v){c=k[S+12>>2]|0;if(!(i[c+44>>0]&32)){$=fa+72|0;aa=(k[$>>2]|0)+1|0;k[$>>2]=aa;Bh(ba,112,U,aa,0)|0;Xu(fa,g,-1,aa);Bh(ba,66,g,aa,0)|0;break}if((g|0)==(U|0))break;c=k[c+8>>2]|0;A:do if(!c)A=0;else while(1){if((i[c+51>>0]&3)==2){A=c;break A}c=k[c+20>>2]|0;if(!c){A=0;break}}while(0);E=A+46|0;t=j[E>>1]|0;c=t&65535;y=fa+60|0;x=k[y>>2]|0;w=fa+56|0;q=k[w>>2]|0;if((q|0)<(c|0)){aa=fa+72|0;x=k[aa>>2]|0;k[aa>>2]=x+c;x=x+1|0}else{k[y>>2]=x+c;k[w>>2]=q-c}if(t<<16>>16){q=A+4|0;t=S+48|0;w=S+4|0;B=0;do{A=j[(k[q>>2]|0)+(B<<1)>>1]|0;c=j[t>>1]|0;B:do if(!(c<<16>>16))c=-1;else{z=k[w>>2]|0;y=c&65535;c=0;while(1){if((j[z+(c<<1)>>1]|0)==A<<16>>16)break B;c=c+1|0;if((c|0)>=(y|0)){c=-1;break}}}while(0);Bh(ba,47,U,c<<16>>16,B+x|0)|0;B=B+1|0;c=m[E>>1]|0}while((B|0)<(c|0))}Ch(ba,Bh(ba,68,g,ca,x)|0,c,-14)}while(0);x=k[T>>2]|0;do if(!(x&4096)){w=d+(sa*80|0)+781|0;if(!_){i[w>>0]=9;break}else{i[w>>0]=8;break}}else i[d+(sa*80|0)+781>>0]=-100;while(0);k[d+(sa*80|0)+784>>2]=U;i[d+(sa*80|0)+782>>0]=x>>>16&1;if(x&15){ua=459;break}i[d+(sa*80|0)+783>>0]=1;ua=459;break}if(!(C&8192))if(!(A&8)){i[d+(sa*80|0)+781>>0]=i[33560+_>>0]|0;k[d+(sa*80|0)+784>>2]=g;ua=(Bh(ba,l[33568+_>>0]|0,g,F,0)|0)+1|0;k[d+(sa*80|0)+788>>2]=ua;i[d+(sa*80|0)+783>>0]=1;ua=459;break}else{i[d+(sa*80|0)+781>>0]=-100;ua=459;break}F=fa+68|0;Z=k[F>>2]|0;k[F>>2]=Z+1;X=fa+72|0;Y=(k[X>>2]|0)+1|0;k[X>>2]=Y;_=Cs(ba)|0;W=k[E+(G*72|0)+24>>2]|0;e=k[k[J+48>>2]>>2]|0;P=k[e+12>>2]|0;i[d+(sa*80|0)+781>>0]=18;k[d+(sa*80|0)+784>>2]=Y;A=i[ya>>0]|0;do if((A&255)>1){E=(A&255)-sa|0;C=E+-1|0;B=rh(da,(C*72|0)+80|0,0)|0;if(!B)break z;A=E&255;k[B+4>>2]=A;k[B>>2]=A;A=B+8|0;G=A+0|0;z=N+0|0;c=G+72|0;do{k[G>>2]=k[z>>2];G=G+4|0;z=z+4|0}while((G|0)<(c|0));D=k[za>>2]|0;if((E|0)<2){V=B;break}else E=1;while(1){G=A+(E*72|0)+0|0;z=D+((l[d+((E+sa|0)*80|0)+780>>0]|0)*72|0)+8|0;c=G+72|0;do{k[G>>2]=k[z>>2];G=G+4|0;z=z+4|0}while((G|0)<(c|0));if((E|0)<(C|0))E=E+1|0;else{V=B;break}}}else V=k[za>>2]|0;while(0);if(!(j[Ba>>1]&8)){if(!(i[W+44>>0]&32)){A=(k[X>>2]|0)+1|0;k[X>>2]=A;Bh(ba,28,0,A,0)|0}else{A=k[W+8>>2]|0;C:do if(!A)A=0;else while(1){if((i[A+51>>0]&3)==2)break C;A=k[A+20>>2]|0;if(!A){A=0;break}}while(0);U=k[F>>2]|0;k[F>>2]=U+1;Bh(ba,57,U,m[A+46>>1]|0,0)|0;T=k[K>>2]|0;Ch(T,-1,ms(fa,A)|0,-6);A=U}T=(k[X>>2]|0)+1|0;k[X>>2]=T}else{T=0;A=0}U=Bh(ba,25,0,Y,0)|0;z=k[va>>2]|0;do if((z|0)>1){B=0;E=0;do{D=k[wa>>2]|0;S=D+(B*48|0)|0;C=k[S>>2]|0;do if((S|0)!=(e|0)){if(k[C+4>>2]&1)break;if(j[D+(B*48|0)+20>>1]&2)break;if(!(j[D+(B*48|0)+18>>1]&4095))break;E=xs(da,E,Rr(da,C,0,0)|0)|0;z=k[va>>2]|0}while(0);B=B+1|0}while((B|0)<(z|0));z=E;if(!z){S=0;break}S=cr(fa,72,0,z,0)|0}else S=0;while(0);R=P+12|0;do if((k[R>>2]|0)>0){u=P+20|0;t=(S|0)==0;q=W+44|0;w=ba+32|0;x=ba+4|0;z=ba+24|0;B=W+8|0;C=fa+60|0;D=fa+56|0;E=S+12|0;Q=0;y=0;c=0;v=240;while(1){G=k[u>>2]|0;if((k[G+(Q*48|0)+8>>2]|0)!=(g|0)?(j[G+(Q*48|0)+18>>1]&512)==0:0)G=v;else ua=407;do if((ua|0)==407){ua=0;G=k[G+(Q*48|0)>>2]|0;do if(!t){if(k[G+4>>2]&1)break;k[E>>2]=G;G=S}while(0);H=_s(fa,V,G,0,0,v,Z)|0;if(!H){G=v;break}Uu(fa,V,H+736|0,sa,l[$>>0]|0,0);do if(!(j[Ba>>1]&8)){K=(Q|0)==((k[R>>2]|0)+-1|0)?-1:Q;do if(!(i[q>>0]&32)){F=Bh(ba,130,A,0,ht(fa,W,-1,g,T,0)|0)|0;Ch(ba,F,K,-14)}else{G=k[B>>2]|0;D:do if(!G)G=0;else while(1){if((i[G+51>>0]&3)==2)break D;G=k[G+20>>2]|0;if(!G){G=0;break}}while(0);M=j[G+46>>1]|0;I=M&65535;P=k[C>>2]|0;N=k[D>>2]|0;if((N|0)<(I|0)){J=k[X>>2]|0;k[X>>2]=J+I;J=J+1|0}else{k[C>>2]=P+I;k[D>>2]=N-I;J=P}if(M<<16>>16){N=G+4|0;P=0;do{ht(fa,W,j[(k[N>>2]|0)+(P<<1)>>1]|0,g,P+J|0,0)|0;P=P+1|0}while((P|0)<(I|0))}P=(K|0)!=0;if(P){F=Bh(ba,69,A,0,J)|0;Ch(ba,F,I,-14);if((K|0)>-1)ua=426}else{F=0;ua=426}do if((ua|0)==426){ua=0;Bh(ba,49,J,I,T)|0;Bh(ba,110,A,T,0)|0;if(!P)break;K=k[x>>2]|0;if(!K)break;i[K+(((k[w>>2]|0)+-1|0)*20|0)+3>>0]=16}while(0);it(fa,J,I);if((k[D>>2]|0)>=(I|0))break;k[D>>2]=I;k[C>>2]=J}while(0);Bh(ba,17,Y,_,0)|0;if(!F)break;G=k[w>>2]|0;if(G>>>0>F>>>0)k[(k[x>>2]|0)+(F*20|0)+8>>2]=G;k[(k[z>>2]|0)+88>>2]=G+-1}else Bh(ba,17,Y,_,0)|0;while(0);c=(i[H+39>>0]|0)==0?c:1;G=k[H+800>>2]|0;do if(!(k[G+36>>2]&512)){y=0;G=v}else{if((Q|0)!=0?(k[G+28>>2]|0)!=(y|0):0){y=0;G=v;break}y=k[G+28>>2]|0;if((i[q>>0]&32)!=0?(i[y+51>>0]&3)==2:0){y=0;G=v;break}G=(v&65535|4096)&65535}while(0);at(H)}while(0);Q=Q+1|0;if((Q|0)>=(k[R>>2]|0))break;else v=G}k[d+(sa*80|0)+792>>2]=y;if(!y){q=c;break}k[d+(sa*80|0)+744>>2]=Z;q=c}else{k[d+(sa*80|0)+792>>2]=0;q=0}while(0);if(S){k[S+12>>2]=0;Lk(da,S)}w=ba+32|0;c=k[w>>2]|0;if(c>>>0>U>>>0)k[(k[ba+4>>2]|0)+(U*20|0)+4>>2]=c;Bh(ba,16,0,k[aa>>2]|0,0)|0;y=k[ba+24>>2]|0;x=~_;do if((_|0)<0){c=k[y+112>>2]|0;if(!c)break;k[c+(x<<2)>>2]=k[w>>2]}while(0);k[y+88>>2]=(k[w>>2]|0)+-1;if((l[ya>>0]|0)>1)rg(da,V);if(q){ua=459;break}Wu(p,e);ua=459}else{ua=k[E+(G*72|0)+36>>2]|0;Bh(ba,20,ua,0,k[E+(G*72|0)+32>>2]|0)|0;ua=Bh(ba,22,ua,F,0)|0;k[d+(sa*80|0)+788>>2]=ua;i[d+(sa*80|0)+781>>0]=16;ua=459}while(0);if((ua|0)==459){ua=0;c=k[va>>2]|0;do if((c|0)>0){u=d+(sa*80|0)+772|0;v=ba+32|0;z=ba+4|0;A=ba+24|0;t=k[wa>>2]|0;while(1){q=t+20|0;y=j[q>>1]|0;do if(!(y&6)){aa=t+40|0;$=ea;if(!((k[$>>2]&k[aa>>2]|0)==0?(k[$+4>>2]&k[aa+4>>2]|0)==0:0)){i[ia>>0]=1;break}x=k[t>>2]|0;if((k[p>>2]|0)!=0?(k[x+4>>2]&1|0)==0:0)break;do if(!(y&512))lt(fa,x,ca,16);else{w=Bh(ba,46,k[u>>2]|0,0,0)|0;lt(fa,x,ca,16);if(!w)break;y=k[v>>2]|0;if(y>>>0>w>>>0)k[(k[z>>2]|0)+(w*20|0)+8>>2]=y;k[(k[A>>2]|0)+88>>2]=y+-1}while(0);j[q>>1]=m[q>>1]|4}while(0);c=c+-1|0;if((c|0)<=0)break;else t=t+48|0}u=k[va>>2]|0;if((u|0)<=0){ua=475;break}w=k[wa>>2]|0;while(1){do if(!(j[w+20>>1]&6)){if((j[w+18>>1]|0)!=1026)break;if((k[w+8>>2]|0)!=(g|0))break;if(k[p>>2]|0)break;y=k[w>>2]|0;c=Ku(Fa,g,k[w+12>>2]|0,o,n,3,0)|0;if(!c)break;if(j[c+20>>1]&4)break;x=rh(da,48,0)|0;if(!x)break;G=x+0|0;z=(k[c>>2]|0)+0|0;c=G+48|0;do{k[G>>2]=k[z>>2];G=G+4|0;z=z+4|0}while((G|0)<(c|0));k[x+12>>2]=k[y+12>>2];lt(fa,x,ca,16);rg(da,x)}while(0);u=u+-1|0;if((u|0)<=0)break;else w=w+48|0}}else ua=475;while(0);if((ua|0)==475)ua=0;p=k[p>>2]|0;do if(p){k[d+(sa*80|0)+764>>2]=k[ba+32>>2];Bh(ba,25,1,p,0)|0;ft(fa);p=k[va>>2]|0;if((p|0)<=0)break;u=0;t=k[wa>>2]|0;while(1){o=t+20|0;do if(!(j[o>>1]&6)){ba=t+40|0;aa=ea;if(!((k[aa>>2]&k[ba>>2]|0)==0?(k[aa+4>>2]&k[ba+4>>2]|0)==0:0))break;lt(fa,k[t>>2]|0,ca,16);j[o>>1]=m[o>>1]|4;p=k[va>>2]|0}while(0);u=u+1|0;if((u|0)>=(p|0))break;else t=t+48|0}}while(0);n=ea;o=k[n>>2]|0;n=k[n+4>>2]|0}k[Aa>>2]=k[ta+(sa*80|0)+24>>2];sa=sa+1|0;if((sa|0)>=(h|0))break a}}}while(0);if(Ga)d=0;else{k[Ca>>2]=k[Daf((d|0)<0)d=k[a+68>>2]|0;j=d+1|0;p=(f|0)!=0;if(p)k[f>>2]=d;do if(!(i[r>>0]&32)){if((e|0)!=0?(i[e>>0]|0)==0:0){o=15;break}Vq(a,d,l,b,c)}else o=15;while(0);if((o|0)==15)ls(a,l,k[b+32>>2]|0,(c|0)==55&1,k[b>>2]|0);if(g)k[g>>2]=j;d=k[b+8>>2]|0;if(!d)h=0;else{m=(e|0)==0;b=a+8|0;n=j;h=0;while(1){j=n+1|0;if((i[d+51>>0]&3)==2?(i[r>>0]&32)!=0&p:0)k[f>>2]=n;h=h+1|0;if(!(!m?(i[e+h>>0]|0)==0:0)){Bh(q,c,n,k[d+40>>2]|0,l)|0;o=k[b>>2]|0;Ch(o,-1,ms(a,d)|0,-6)}d=k[d+20>>2]|0;if(!d)break;else n=j}}d=a+68|0;if((j|0)>(k[d>>2]|0))k[d>>2]=j}else h=0;return h|0}function vt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=k[a+408>>2]|0;f=(f|0)==0?a:f;e=f+452|0;a=k[e>>2]|0;c=k[f+520>>2]|0;a:do if((a|0)>0){d=0;while(1){if((k[c+(d<<2)>>2]|0)==(b|0))break a;d=d+1|0;if((d|0)>=(a|0)){g=4;break}}}else g=4;while(0);do if((g|0)==4){a=ad(c,(a<<2)+4|0)|0;if(!a){i[(k[f>>2]|0)+65>>0]=1;break}else{k[f+520>>2]=a;c=k[e>>2]|0;k[e>>2]=c+1;k[a+(c<<2)>>2]=b;break}}while(0);return}function wt(a,b,c,d,e,f,g,h,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;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;w=k[a+8>>2]|0;x=Cs(w)|0;u=(i[b+44>>0]&32)>>>4^70;if(!(m<<24>>24))Ch(w,Bh(w,u,d,x,f)|0,g<<16>>16,-14);if((rt(a,b,0,0)|0)!=0|(c|0)!=0){q=l&255;r=At(a,c,0,0,3,b,q)|0;r=zt(a,b)|0|r;o=a+72|0;n=k[o>>2]|0;m=n+1|0;s=b+38|0;k[o>>2]=m+(j[s>>1]|0);Bh(w,33,f,m,0)|0;o=j[s>>1]|0;if(o<<16>>16>0){t=(r|0)==-1;p=n+2|0;n=0;do{if(!t){if((n|0)<32?(1<<n&r|0)!=0:0)v=9}else v=9;if((v|0)==9){v=0;st(w,b,d,n,p+n|0);o=j[s>>1]|0}n=n+1|0}while((n|0)<(o<<16>>16|0))}t=w+32|0;s=k[t>>2]|0;Ct(a,c,109,0,1,b,m,q,x);if((s|0)<(k[t>>2]|0))Ch(w,Bh(w,u,d,x,f)|0,g<<16>>16,-14);Et(a,b,m,0,0,0)}else m=0;if((k[b+12>>2]|0)==0?(Ft(a,b,d,e,0),Bh(w,95,d,h<<24>>24!=0&1,0)|0,h<<24>>24!=0):0)Ch(w,-1,k[b>>2]|0,0);Ht(a,b,0,m,0,0);Ct(a,c,109,0,2,b,m,l&255,x);n=k[w+24>>2]|0;m=~x;if((x|0)<0?(y=k[n+112>>2]|0,(y|0)!=0):0)k[y+(m<<2)>>2]=k[w+32>>2];k[n+88>>2]=(k[w+32>>2]|0)+-1;return}function xt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0;h=k[a+8>>2]|0;b=k[a+404>>2]|0;if(b){l=(k[a>>2]|0)+16|0;m=a+19|0;n=a+72|0;o=h+32|0;p=h+4|0;j=h+24|0;do{d=k[b+8>>2]|0;e=k[l>>2]|0;g=k[b+12>>2]|0;c=i[m>>0]|0;if(!(c<<24>>24)){f=(k[n>>2]|0)+1|0;k[n>>2]=f}else{f=c+-1<<24>>24;i[m>>0]=f;f=k[a+((f&255)<<2)+24>>2]|0}Vq(a,0,d,k[(k[e+(d<<4)+12>>2]|0)+72>>2]|0,55);e=g+1|0;d=Bh(h,77,e,0,0)|0;Bh(h,74,0,e,0)|0;c=k[o>>2]|0;if(c>>>0>d>>>0)k[(k[p>>2]|0)+(d*20|0)+8>>2]=c;k[(k[j>>2]|0)+88>>2]=c+-1;Bh(h,49,g+-1|0,2,f)|0;Bh(h,75,0,f,e)|0;c=k[p>>2]|0;if(c)i[c+(((k[o>>2]|0)+-1|0)*20|0)+3>>0]=8;Bh(h,61,0,0,0)|0;ds(a,f);b=k[b>>2]|0}while((b|0)!=0)}return}function yt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;k[e>>2]=c;if(!c)d=0;else{d=c;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-c&1073741823}k[e+4>>2]=d;d=sr(a,b,e,0)|0;r=f;return d|0}function zt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,l=0,m=0,n=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();g=m+4|0;l=m;if(k[(k[a>>2]|0)+24>>2]&524288){d=k[b+16>>2]|0;if(!d)c=0;else{c=0;do{e=k[d+20>>2]|0;if((e|0)>0){f=0;do{n=k[d+(f<<3)+36>>2]|0;c=((n|0)>31?-1:1<<n)|c;f=f+1|0}while((f|0)<(e|0))}d=k[d+4>>2]|0}while((d|0)!=0)}d=gn((k[b+68>>2]|0)+56|0,k[b>>2]|0,g)|0;if((d|0)!=0?(h=k[d+8>>2]|0,(h|0)!=0):0)do{k[l>>2]=0;Rt(a,b,h,l,0)|0;d=k[l>>2]|0;if((d|0)!=0?(i=j[d+46>>1]|0,i<<16>>16!=0):0){g=i&65535;f=k[d+4>>2]|0;e=0;do{d=j[f+(e<<1)>>1]|0;if(d<<16>>16>31)d=-1;else d=1<<(d<<16>>16);c=d|c;e=e+1|0}while((e|0)<(g|0))}h=k[h+12>>2]|0}while((h|0)!=0)}else c=0;r=m;return c|0}function At(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,i=0,j=0;i=(c|0)!=0?110:109;if(!b)h=0;else{h=0;do{if((((l[b+8>>0]|0|0)==(i|0)?((l[b+9>>0]|0)&e|0)!=0:0)?(fv(k[b+16>>2]|0,c)|0)!=0:0)?(j=hv(a,b,f,g)|0,(j|0)!=0):0)h=k[j+(d<<2)+16>>2]|h;b=k[b+32>>2]|0}while((b|0)!=0)}return h|0}function Bt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0;l=b+20|0;d=k[l>>2]|0;do if(!d){f=k[a>>2]|0;h=b+38|0;e=(j[h>>1]|0)+1|0;e=vg(e,((e|0)<0)<<31>>31)|0;if(!e){i[f+65>>0]=1;break}if((j[h>>1]|0)>0){f=b+4|0;d=0;do{i[e+d>>0]=i[(k[f>>2]|0)+(d*24|0)+21>>0]|0;d=d+1|0}while((d|0)<(j[h>>1]|0))}else d=0;do{i[e+d>>0]=0;if((d|0)<=0)break;d=d+-1|0}while((i[e+d>>0]|0)==65);k[l>>2]=e;g=10}else{e=d;g=10}while(0);do if((g|0)==10){d=e;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-e&1073741823;if(d)if(!c){Ch(a,-1,e,d);break}else{Ch(a,Bh(a,48,c,d,0)|0,e,d);break}}while(0);return}function Ct(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;if(b)do{if(((l[b+8>>0]|0|0)==(c|0)?(l[b+9>>0]|0|0)==(e|0):0)?(fv(k[b+16>>2]|0,d)|0)!=0:0)iv(a,b,f,g,h,i);b=k[b+32>>2]|0}while((b|0)!=0);return}function Dt(a,b,c,d,e,f,g,h,l,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;n=n|0;o=o|0;var p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0;la=r;r=r+16|0;if((r|0)>=(s|0))ka();I=la;ea=(g|0)!=0;N=k[a>>2]|0;ja=Tq(a)|0;A=j[b+38>>1]|0;ha=b+44|0;if(!(i[ha>>0]&32)){da=1;ca=0}else{u=b+8|0;while(1){u=k[u>>2]|0;if((i[u+51>>0]&3)==2)break;else u=u+20|0}da=m[u+46>>1]|0;ca=u}if(A<<16>>16>0){w=b+36|0;v=b+4|0;u=l<<24>>24==10;t=a+408|0;q=f+1|0;B=ja+4|0;C=ja+32|0;D=ja+24|0;E=l&255;y=A<<16>>16;x=0;do{a:do if((x|0)!=(j[w>>1]|0)?(F=k[v>>2]|0,G=i[F+(x*24|0)+20>>0]|0,H=G&255,G<<24>>24!=0):0){if(u)if(G<<24>>24==10)ia=14;else{A=H;ia=11}else{A=E;ia=11}do if((ia|0)==11){ia=0;if((A|0)==5)A=(k[F+(x*24|0)+4>>2]|0)==0?2:5;if((A|0)==2){ia=14;break}else if((A|0)==3|(A|0)==1)break;else if((A|0)==4){Bh(ja,76,q+x|0,n,0)|0;break a}z=q+x|0;A=Bh(ja,77,z,0,0)|0;Wq(a,k[(k[v>>2]|0)+(x*24|0)+4>>2]|0,z);z=k[C>>2]|0;if(z>>>0>A>>>0)k[(k[B>>2]|0)+(A*20|0)+8>>2]=z;k[(k[D>>2]|0)+88>>2]=z+-1;break a}while(0);if((ia|0)==14){ia=0;A=k[t>>2]|0;i[((A|0)==0?a:A)+21>>0]=1;A=2}ba=k[F+(x*24|0)>>2]|0;k[I>>2]=k[b>>2];k[I+4>>2]=ba;ba=zh(N,27824,I)|0;Ch(ja,Bh(ja,23,1299,A,q+x|0)|0,ba,-1);A=k[B>>2]|0;if(A)i[A+(((k[C>>2]|0)+-1|0)*20|0)+3>>0]=1}while(0);x=x+1|0}while((x|0)!=(y|0))}x=k[b+24>>2]|0;if(((x|0)!=0?(k[N+24>>2]&8192|0)==0:0)?(k[a+92>>2]=f+1,(k[x>>2]|0)>0):0){w=x+4|0;q=ja+24|0;y=ja+32|0;A=0;u=l<<24>>24==10?2:l&255;while(1){z=Cs(ja)|0;cv(a,k[(k[w>>2]|0)+(A*20|0)>>2]|0,z,16);if((u|0)==4){Bh(ja,16,0,n,0)|0;t=4}else{v=k[(k[w>>2]|0)+(A*20|0)+4>>2]|0;if(!v)v=k[b>>2]|0;t=(u|0)==5?2:u;Es(a,275,t,v,0,3)}v=k[q>>2]|0;u=~z;if((z|0)<0?(J=k[v+112>>2]|0,(J|0)!=0):0)k[J+(u<<2)>>2]=k[y>>2];k[v+88>>2]=(k[y>>2]|0)+-1;A=A+1|0;if((A|0)>=(k[x>>2]|0))break;else u=t}}if(h<<24>>24!=0&(ca|0)==0){w=Cs(ja)|0;q=i[b+45>>0]|0;if(l<<24>>24==10)q=q<<24>>24==10?2:q&255;else q=l&255;if(ea?(Bh(ja,79,f,w,g)|0,K=k[ja+4>>2]|0,(K|0)!=0):0)i[K+(((k[ja+32>>2]|0)+-1|0)*20|0)+3>>0]=-112;b:do if(!((q|0)!=5|l<<24>>24==5)?(p=k[b+8>>2]|0,(p|0)!=0):0){while(1){if(((i[p+50>>0]|0)+-3&255)<2)break;p=k[p+20>>2]|0;if(!p){x=0;break b}}x=Bh(ja,16,0,0,0)|0}else x=0;while(0);Bh(ja,70,d,w,f)|0;c:do switch(q|0){case 4:{Bh(ja,16,0,n,0)|0;q=0;break}case 5:{if((k[N+24>>2]&262144|0)!=0?(L=ot(a,b,109,0,0)|0,(L|0)!=0):0)q=L;else if(!(rt(a,b,0,0)|0)){if(!(k[b+8>>2]|0)){q=1;break c}q=k[a+408>>2]|0;i[((q|0)==0?a:q)+20>>0]=1;Ft(a,b,d,e,0);q=1;break c}else q=0;ba=k[a+408>>2]|0;i[((ba|0)==0?a:ba)+20>>0]=1;wt(a,b,q,d,e,f,1,0,5,1);q=1;break}case 3:case 2:case 1:{ia=49;break}default:{q=2;ia=49}}while(0);if((ia|0)==49){Kt(a,q,b);q=0}v=ja+24|0;u=k[v>>2]|0;t=~w;if((w|0)<0?(M=k[u+112>>2]|0,(M|0)!=0):0)k[M+(t<<2)>>2]=k[ja+32>>2];p=ja+32|0;k[u+88>>2]=(k[p>>2]|0)+-1;if(!x){t=0;x=0}else{t=Bh(ja,16,0,0,0)|0;p=k[p>>2]|0;if(p>>>0>x>>>0)k[(k[ja+4>>2]|0)+(x*20|0)+8>>2]=p;k[(k[v>>2]|0)+88>>2]=p+-1}}else{t=0;x=0;q=0}A=k[b+8>>2]|0;if(A){_=f+1|0;$=a+60|0;aa=a+56|0;ba=a+72|0;Q=h<<24>>24==0;R=ja+24|0;S=ja+32|0;T=l<<24>>24==10;U=ja+4|0;V=ca+46|0;W=ca+32|0;X=ca+4|0;Y=g+1|0;Z=a+408|0;O=N+24|0;P=dada|0)){I=k[ba>>2]|0;k[ba>>2]=I+da;I=I+1|0;break}else{k[$>>2]=I+da;k[aa>>2]=H-da;break}}else I=h;while(0);do if(ea|(L|0)==5){if(!(i[ha>>0]&32)){Bh(ja,112,M,I,0)|0;if(!ea)break;Bh(ja,79,I,l,g)|0;D=k[U>>2]|0;if(!D)break;i[D+(((k[S>>2]|0)+-1|0)*20|0)+3>>0]=-112;break}do if(!K){if(!(j[V>>1]|0))break;C=A+4|0;B=0;do{F=j[(k[X>>2]|0)+(B<<1)>>1]|0;H=j[N>>1]|0;d:do if(!(H<<16>>16))H=-1;else{D=k[C>>2]|0;G=H&65535;H=0;while(1){if((j[D+(H<<1)>>1]|0)==F<<16>>16)break d;H=H+1|0;if((H|0)>=(G|0)){H=-1;break}}}while(0);Bh(ja,47,M,H<<16>>16,B+I|0)|0;B=B+1|0}while((B|0)<(m[V>>1]|0))}while(0);if(!ea)break;C=(i[A+51>>0]&3)==2?h:I;H=j[V>>1]|0;if(!(H<<16>>16))break;G=(H&65535)+(k[S>>2]|0)|0;F=0;D=78;do{H=hr(a,k[(k[W>>2]|0)+(F<<2)>>2]|0)|0;z=(F|0)==((m[V>>1]|0)+-1|0);G=z?l:G;D=z?79:D;Ch(ja,Bh(ja,D,Y+(j[(k[X>>2]|0)+(F<<1)>>1]|0)|0,G,F+C|0)|0,H,-4);H=k[U>>2]|0;if(H)i[H+(((k[S>>2]|0)+-1|0)*20|0)+3>>0]=-112;F=F+1|0}while((F|0)<(m[V>>1]|0))}while(0);if((L|0)==3|(L|0)==2|(L|0)==1)su(a,L,A);else if((L|0)==4)Bh(ja,16,0,n,0)|0;else{z=k[Z>>2]|0;i[((z|0)==0?a:z)+20>>0]=1;if(!(k[O>>2]&262144))D=0;else D=ot(a,b,109,0,0)|0;wt(a,b,D,d,e,I,P,0,5,K&1);q=1}H=k[R>>2]|0;G=~l;do if((l|0)<0){D=k[H+112>>2]|0;if(!D)break;k[D+(G<<2)>>2]=k[S>>2]}while(0);k[H+88>>2]=(k[S>>2]|0)+-1;z=m[N>>1]|0;it(a,h,z);if((k[aa>>2]|0)<(z|0)){k[aa>>2]=z;k[$>>2]=h}if((I|0)==(h|0)){z=J;break}it(a,I,da);if((k[aa>>2]|0)>=(da|0)){z=J;break}k[aa>>2]=da
7 48|0)+16|0;j[e+(f*48|0)+16>>1]=j[N>>1]|0;G=e+(b*48|0)+22|0;i[G>>0]=(i[G>>0]|0)+1<<24>>24;k[e+(d*48|0)+4>>2]=b;j[e+(d*48|0)+16>>1]=j[N>>1]|0;i[G>>0]=(i[G>>0]|0)+1<<24>>24;G=217;break k}}while(0);Rh(d);G=217}else G=217}else G=217}}else G=217;while(0);if((G|0)==217)if(((((i[R>>0]|0)==-103?(id(k[R+8>>2]|0,31416)|0)==0:0)?(U=k[R+20>>2]|0,(k[U>>2]|0)==2):0)?(V=k[U+4>>2]|0,W=k[V+20>>2]|0,(i[W>>0]|0)==-102):0)?(X=k[V>>2]|0,Y=Fv(_,X)|0,Z=L,_=Fv(_,W)|0,(_&Y|0)==0&(L&Z|0)==0):0){_=Ev(a,cr(Q,51,0,Rr(S,X,0,0)|0,0)|0,3)|0;c=k[T>>2]|0;X=c+(_*48|0)+32|0;k[X>>2]=Y;k[X+4>>2]=Z;k[c+(_*48|0)+8>>2]=k[W+28>>2];k[c+(_*48|0)+12>>2]=j[W+32>>1];j[c+(_*48|0)+18>>1]=64;k[c+(_*48|0)+4>>2]=b;j[c+(_*48|0)+16>>1]=j[c+(b*48|0)+16>>1]|0;Y=c+(b*48|0)+22|0;i[Y>>0]=(i[Y>>0]|0)+1<<24>>24;Y=c+(b*48|0)+20|0;j[Y>>1]=m[Y>>1]|8;Y=c+(b*48|0)+40|0;Z=k[Y+4>>2]|0;_=c+(_*48|0)+40|0;k[_>>2]=k[Y>>2];k[_+4>>2]=Z;c=c+(b*48|0)|0}b=c+32|0;Z=b;_=k[Z+4>>2]|P;k[b>>2]=k[Z>>2]|O;k[b+4>>2]=_}while(0);return}function Ku(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,i=0;i=r;r=r+112|0;if((r|0)>=(s|0))ka();h=i;f=Iv(h,a,b,c,f,g)|0;a:do if(!f)f=0;else{g=f;f=0;do{b=g+32|0;c=k[b>>2]|0;b=k[b+4>>2]|0;if((c&d|0)==0&(b&e|0)==0){if((c|0)==0&(b|0)==0?(j[g+18>>1]&2)!=0:0){f=g;break a}f=(f|0)==0?g:f}g=Jv(h)|0}while((g|0)!=0)}while(0);r=i;return f|0}function Lu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,q=0,u=0,v=0,w=0.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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ha=0,ja=0,la=0,ma=0;la=r;r=r+16|0;if((r|0)>=(s|0))ka();fa=la;v=k[a>>2]|0;da=k[v>>2]|0;ha=k[da>>2]|0;ca=k[a+4>>2]|0;ea=k[a+12>>2]|0;u=l[ea+16>>0]|0;v=k[v+4>>2]|0;aa=k[v+(u*72|0)+24>>2]|0;x=k[a+8>>2]|0;ba=ca+20|0;ca=ca+12|0;d=k[ca>>2]|0;if((d|0)>0){f=k[v+(u*72|0)+48>>2]|0;g=0;e=0;h=k[ba>>2]|0;while(1){if((k[h+8>>2]|0)==(f|0))e=((j[h+18>>1]&-1153)<<16>>16!=0&1)+e|0;g=g+1|0;if((g|0)==(d|0))break;else h=h+48|0}}else e=0;if(!x)q=0;else{n=k[x>>2]|0;a:do if((n|0)>0){h=k[x+4>>2]|0;g=v+(u*72|0)+48|0;m=0;while(1){f=k[h+(m*20|0)>>2]|0;if((i[f>>0]|0)!=-102){d=m;break a}d=m+1|0;if((k[f+28>>2]|0)!=(k[g>>2]|0)){d=m;break a}if((d|0)<(n|0))m=d;else break}}else d=0;while(0);q=(d|0)==(n|0)?n:0}d=(e*20|0)+56+(q<<3)|0;$=rh(ha,d,0)|0;do if(!$){yh(da,15776,fa);d=7}else{kw($|0,0,d|0)|0;d=$+56|0;o=d+(e*12|0)|0;k[$>>2]=e;Y=$+8|0;k[Y>>2]=q;Z=$+4|0;k[Z>>2]=d;k[$+12>>2]=o;_=$+16|0;k[_>>2]=o+(q<<3);f=k[ca>>2]|0;if((f|0)>0){m=k[v+(u*72|0)+48>>2]|0;h=0;n=0;g=k[ba>>2]|0;while(1){if((k[g+8>>2]|0)==(m|0)?(y=j[g+18>>1]|0,(y&-1153)<<16>>16!=0):0){k[d+(n*12|0)>>2]=k[g+12>>2];k[d+(n*12|0)+8>>2]=h;i[d+(n*12|0)+4>>0]=(y&255)==1?2:y&255;n=n+1|0}h=h+1|0;if((h|0)==(f|0))break;else g=g+48|0}}if((q|0)>0){d=k[x+4>>2]|0;e=0;do{k[o+(e<<3)>>2]=j[(k[d+(e*20|0)>>2]|0)+32>>1];i[o+(e<<3)+4>>0]=i[d+(e*20|0)+12>>0]|0;e=e+1|0}while((e|0)!=(q|0))}A=ea;k[A>>2]=0;k[A+4>>2]=0;A=ea+18|0;j[A>>1]=0;k[ea+36>>2]=1024;B=ea+40|0;j[B>>1]=0;C=ea+28|0;i[C>>0]=0;D=k[_>>2]|0;E=k[$>>2]|0;if(Su(ha,ea,E)|0){rg(ha,$);d=7;break}U=$+28|0;X=$+24|0;F=$+20|0;G=$+32|0;H=$+40|0;I=$+48|0;J=aa+60|0;K=da+64|0;M=(E|0)>0;N=ea+30|0;O=ea+24|0;P=ea+32|0;Q=ea+29|0;R=ea+20|0;S=ea+22|0;T=ea+48|0;v=0;y=0;x=0;b:while(1){if(!((y|0)!=0|(v&1|0)==0))if((v|0)>2){d=0;break}else z=v+1|0;else z=v;if((x|0)==0&(z|0)>1){d=0;break}h=k[$>>2]|0;if((h|0)>0){e=k[ba>>2]|0;f=0;g=k[Z>>2]|0;while(1){v=k[g+8>>2]|0;if((z|0)==2)i[g+5>>0]=j[e+(v*48|0)+18>>1]&1^1;else if((z|0)==1){u=e+(v*48|0)+32|0;i[g+5>>0]=(k[u>>2]|0)==0&(k[u+4>>2]|0)==0&1}else if(!z){d=g+5|0;i[d>>0]=0;u=(j[e+(v*48|0)+18>>1]&1)==0;y=u?y:1;v=e+(v*48|0)+32|0;v=(k[v>>2]|0)!=0|(k[v+4>>2]|0)!=0;if(v|u^1)x=v?1:x;else i[d>>0]=1}else i[g+5>>0]=1;f=f+1|0;if((f|0)>=(h|0)){u=y;break}else g=g+12|0}}else u=y;kw(D|0,0,h<<3|0)|0;if(k[U>>2]|0)$c(k[X>>2]|0);k[F+0>>2]=0;k[F+4>>2]=0;k[F+8>>2]=0;k[F+12>>2]=0;p[H>>3]=5.e+98;d=I;k[d>>2]=25;k[d+4>>2]=0;d=k[da>>2]|0;v=J;while(1){v=k[v>>2]|0;if((k[v>>2]|0)==(d|0))break;else v=v+24|0}y=k[v+8>>2]|0;v=wc[k[(k[y>>2]|0)+12>>2]&127](y,$)|0;do if((v|0)==7)i[(k[da>>2]|0)+65>>0]=1;else if(v){d=k[y+8>>2]|0;if(d){k[fa>>2]=d;yh(da,10344,fa);break}if((v|0)!=516){v=v&255;if(v>>>0>26|(v|0)==2)v=16328;else v=k[15488+(v<<2)>>2]|0}else v=16344;k[fa>>2]=v;yh(da,10344,fa)}while(0);v=y+8|0;$c(k[v>>2]|0);k[v>>2]=0;v=k[$>>2]|0;if((v|0)>0){d=0;do{if((i[(k[Z>>2]|0)+(d*12|0)+5>>0]|0)==0?(k[(k[_>>2]|0)+(d<<3)>>2]|0)>0:0){k[fa>>2]=k[aa>>2];yh(da,34096,fa);v=k[$>>2]|0}d=d+1|0}while((d|0)<(v|0))}d=k[K>>2]|0;if(d)break;y=k[Z>>2]|0;q=ea;k[q>>2]=b;k[q+4>>2]=c;c:do if(M){v=0;do{k[(k[T>>2]|0)+(v<<2)>>2]=0;v=v+1|0}while((v|0)!=(E|0));j[N>>1]=0;if(M){f=b;e=c;d=0;q=0;v=-1;while(1){h=k[D+(q<<3)>>2]|0;m=h+-1|0;do if((h|0)>0){n=k[y+8>>2]|0;if((h|0)>(E|0)|(n|0)<0){ja=65;break b}if((n|0)>=(k[ca>>2]|0)){ja=65;break b}g=(k[T>>2]|0)+(m<<2)|0;if(k[g>>2]|0){ja=65;break b}o=k[ba>>2]|0;ma=o+(n*48|0)+32|0;f=f|k[ma>>2];e=e|k[ma+4>>2];ma=ea;k[ma>>2]=f;k[ma+4>>2]=e;k[g>>2]=o+(n*48|0);v=(m|0)>(v|0)?m:v;do if((h|0)<17){if(!(i[D+(q<<3)+4>>0]|0))break;d=(d&65535|1<<m)&65535;j[N>>1]=d}while(0);if(!(j[o+(n*48|0)+18>>1]&1))break;if(!(i[D+(q<<3)+4>>0]|0))break c;k[G>>2]=0}while(0);q=q+1|0;if((q|0)>=(E|0)){ja=73;break}else y=y+12|0}}else{v=-1;ja=73}}else{j[N>>1]=0;v=-1;ja=73}while(0);if((ja|0)==73){ja=0;j[B>>1]=v+1;k[O>>2]=k[F>>2];i[C>>0]=k[U>>2];k[U>>2]=0;k[P>>2]=k[X>>2];if(!(k[G>>2]|0))v=0;else v=k[Y>>2]&255;i[Q>>0]=v;j[A>>1]=0;w=+p[H>>3];p[t>>3]=w;v=k[t>>2]|0;d=k[t+4>>2]|0;do if(!(w<=1.0))if(!(w<=2.0e9)){v=rw(v|0,d|0,52)|0;v=ow(v|0,L|0,64514,0)|0;v=(v<<16>>16)*10&65535;break}else{v=ks(~~w>>>0,+W(w)>=1.0?(w>0.0?~~+ia(+V(w/4294967296.0),4294967295.0)>>>0:~~+ga((w-+(~~w>>>0))/4294967296.0)>>>0):0)|0;break}else v=0;while(0);j[R>>1]=v;q=I;q=ks(k[q>>2]|0,k[q+4>>2]|0)|0;j[S>>1]=q;Kv(a,ea)|0;if(i[C>>0]|0){$c(k[P>>2]|0);i[C>>0]=0}}v=z+1|0;if((v|0)>=4){d=0;break}else y=u}if((ja|0)==65){k[fa>>2]=k[aa>>2];yh(da,34064,fa);d=1}if(k[U>>2]|0)$c(k[X>>2]|0);rg(ha,$)}while(0);r=la;return d|0}function Mu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0;ca=r;r=r+64|0;if((r|0)>=(s|0))ka();n=ca;h=ca+56|0;g=ca+52|0;j[g>>1]=-1;$=k[a+12>>2]|0;aa=k[a>>2]|0;F=k[aa+4>>2]|0;G=l[$+16>>0]|0;W=F+(G*72|0)+8|0;f=F+(G*72|0)+24|0;H=k[f>>2]|0;X=k[a+4>>2]|0;Y=F+(G*72|0)+76|0;d=k[Y>>2]|0;do if(!d){if(i[H+44>>0]&32){n=k[H+8>>2]|0;break}d=n+0|0;e=d+52|0;do{k[d>>2]=0;d=d+4|0}while((d|0)<(e|0));j[n+46>>1]=1;j[n+48>>1]=1;k[n+4>>2]=g;k[n+8>>2]=h;i[n+50>>0]=5;k[n+12>>2]=H;j[n+44>>1]=j[H+42>>1]|0;j[h>>1]=j[H+28>>1]|0;j[h+2>>1]=0;if(!(i[F+(G*72|0)+45>>0]&1))k[n+20>>2]=k[(k[f>>2]|0)+8>>2]}else n=d;while(0);h=j[H+28>>1]|0;if(h<<16>>16<11)B=0;else{B=h<<16>>16;B=((ks(B,((B|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((k[a+16>>2]|0)==0?(j[aa+34>>1]&128)==0:0)?(k[(k[k[aa>>2]>>2]|0)+24>>2]&1048576|0)!=0:0)?(k[Y>>2]|0)==0:0)?(o=i[F+(G*72|0)+45>>0]|0,(o&5)==0):0)?(E=H+44|0,(o&10|i[E>>0]&32)<<24>>24==0):0)?(C=k[X+20>>2]|0,V=k[X+12>>2]|0,D=C+(V*48|0)|0,(V|0)>0):0){v=$+8|0;w=$+24|0;x=$+42|0;y=$+28|0;z=$+40|0;A=$+48|0;p=(B&65535)+(h&65535)|0;g=p+4&65535;f=$+18|0;e=H+12|0;p=p+28&65535;q=$+22|0;t=$+20|0;u=$+36|0;h=C;do{o=h+32|0;V=o;U=v;if(((k[U>>2]&k[V>>2]|0)==0?(k[U+4>>2]&k[V+4>>2]|0)==0:0)?(Ru(h,W,0,0)|0)!=0:0){j[w>>1]=1;j[x>>1]=0;k[y>>2]=0;j[z>>1]=1;k[k[A>>2]>>2]=h;j[f>>1]=g;if((k[e>>2]|0)==0?(i[E>>0]&2)==0:0)j[f>>1]=p;j[q>>1]=43;U=Lv(B,43)|0;j[t>>1]=U;k[u>>2]=16384;U=o;V=k[U+4>>2]|c;d=$;k[d>>2]=k[U>>2]|b;k[d+4>>2]=V;d=Kv(a,$)|0}else d=0;h=h+48|0}while((d|0)==0&h>>>0<D>>>0)}else d=0;V=$+36|0;a:do if((d|0)==0&(n|0)!=0){M=$+24|0;N=$+42|0;O=$+40|0;P=$+17|0;Q=$+18|0;R=$+22|0;S=$+28|0;T=F+(G*72|0)+48|0;U=$+20|0;J=F+(G*72|0)+64|0;K=H+42|0;t=H+44|0;q=aa+34|0;p=X+12|0;F=X+20|0;I=1;while(1){u=k[n+36>>2]|0;v=k[T>>2]|0;b:do if(u){d=k[p>>2]|0;if((d|0)>0){f=0;g=k[F>>2]|0;while(1){e=k[g>>2]|0;if(Mv(e,u,v)|0){if(!(k[e+4>>2]&1)){ba=32;break b}if((j[e+36>>1]|0)==(v|0)){ba=32;break b}}f=f+1|0;if((f|0)>=(d|0)){d=0;break}else g=g+48|0}}else d=0}else ba=32;while(0);if((ba|0)==32){ba=0;G=j[k[n+8>>2]>>1]|0;j[M>>1]=0;j[N>>1]=0;j[O>>1]=0;i[P>>0]=0;j[Q>>1]=0;H=$;k[H>>2]=b;k[H+4>>2]=c;j[R>>1]=G;k[S>>2]=n;H=n+51|0;w=i[H>>0]|0;c:do if(((w&4)==0?(Z=k[(k[a>>2]|0)+8>>2]|0,(Z|0)!=0):0)?(_=k[Z>>2]|0,(_|0)>0):0){E=k[Z+4>>2]|0;D=n+46|0;y=n+4|0;x=0;while(1){B=k[E+(x*20|0)>>2]|0;d:do if(!B)B=0;else while(1){A=k[B+4>>2]|0;if(!(A&4096))break d;if(!(A&262144))B=B+12|0;else B=k[(k[B+20>>2]|0)+4>>2]|0;B=k[B>>2]|0;if(!B){B=0;break}}while(0);if((i[B>>0]|0)!=-102){x=0;break c}if((k[B+28>>2]|0)==(v|0)){A=j[B+32>>1]|0;if(A<<16>>16<0){x=1;break c}B=j[D>>1]|0;if(B<<16>>16){z=k[y>>2]|0;B=B&65535;C=0;do{if(A<<16>>16==(j[z+(C<<1)>>1]|0)){x=1;break c}C=C+1|0}while((C|0)<(B|0))}}x=x+1|0;if((x|0)>=(_|0)){x=0;break}}}else x=0;while(0);do if((k[n+40>>2]|0)<1){k[V>>2]=256;i[P>>0]=(x|0)!=0?I&255:0;j[U>>1]=(G&65535)+16;Nv(X,$,G);d=Kv(a,$)|0;j[R>>1]=G;if(d)break a}else{if(!(w&32)){D=J;E=k[D>>2]|0;D=k[D+4>>2]|0;C=n+4|0;B=0;A=0;z=m[n+48>>1]|0;e:while(1){y=z;while(1){z=y+-1|0;if((y|0)<=0)break e;y=j[(k[C>>2]|0)+(z<<1)>>1]|0;if((y&65535)<63)break;else y=z}o=nw(1,0,y<<16>>16|0)|0;B=o|B;A=L|A}o=E&~B;u=D&~A;B=o;A=u;u=(o|0)==0&(u|0)==0?576:512}else{B=0;A=0;u=576}k[V>>2]=u;o=(x|0)!=0;if(!o?(i[t>>0]&32)==0:0){if(!((B|0)==0&(A|0)==0))break;if(i[H>>0]&4)break;if((j[n+44>>1]|0)>=(j[K>>1]|0))break;if(!((j[q>>1]&4)==0&(k[2190]|0)!=0))break;if(j[(k[k[aa>>2]>>2]|0)+60>>1]&64)break}i[P>>0]=o?I&255:0;h=G<<16>>16;o=h+1+(((j[n+44>>1]|0)*15|0)/(j[K>>1]|0)|0)&65535;if(!((B|0)==0&(A|0)==0))o=Lv(o,h+16&65535)|0;j[U>>1]=o;Nv(X,$,G);d=Kv(a,$)|0;j[R>>1]=G;if(d)break a}while(0);d=Ov(a,W,n,0)|0;if(k[Y>>2]|0)break a}n=k[n+20>>2]|0;if(!((d|0)==0&(n|0)!=0))break;else I=I+1|0}}while(0);r=ca;return d|0}function Nu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0;$=r;r=r+608|0;if((r|0)>=(s|0))ka();Z=$+168|0;X=$+576|0;Y=$+112|0;V=$+56|0;W=$;d=k[a>>2]|0;S=k[a+4>>2]|0;h=k[S+20>>2]|0;g=k[S+12>>2]|0;U=h+(g*48|0)|0;R=k[a+12>>2]|0;e=Y+0|0;f=e+56|0;do{k[e>>2]=0;e=e+4|0}while((e|0)<(f|0));f=k[d+4>>2]|0;e=l[R+16>>0]|0;Q=k[f+(e*72|0)+48>>2]|0;a:do if((g|0)>0){A=R+8|0;B=X+8|0;C=X+16|0;D=R+40|0;E=R+48|0;F=R+36|0;G=R+18|0;H=R+17|0;I=R+24|0;J=R+20|0;K=R+22|0;L=Z+4|0;M=Z+8|0;N=Z+12|0;O=Z+20|0;P=X+4|0;w=f+(e*72|0)+24|0;x=W+8|0;y=Y+8|0;z=V+8|0;while(1){b:do if((j[h+18>>1]&256)!=0?(T=k[h+12>>2]|0,t=T+408|0,q=A,!((k[q>>2]&k[t>>2]|0)==0?(k[q+4>>2]&k[t+4>>2]|0)==0:0)):0){g=T+20|0;v=(k[g>>2]|0)+((k[T+12>>2]|0)*48|0)|0;k[X+0>>2]=k[a+0>>2];k[X+4>>2]=k[a+4>>2];k[X+8>>2]=k[a+8>>2];k[X+12>>2]=k[a+12>>2];k[B>>2]=0;k[C>>2]=V;g=k[g>>2]|0;c:do if(g>>>0<v>>>0){e=1;d=0;d:while(1){if(!(j[g+18>>1]&512))if((k[g+8>>2]|0)==(Q|0)){k[Z>>2]=k[S>>2];k[L>>2]=S;i[M>>0]=72;k[N>>2]=1;k[O>>2]=g;f=Z;_=10}else f=e;else{f=k[g+12>>2]|0;_=10}do if((_|0)==10){_=0;k[P>>2]=f;j[V>>1]=0;if(!(i[(k[w>>2]|0)+44>>0]&16))d=Mu(X,b,c)|0;else d=Lu(X,b,c)|0;if(!d)d=Nu(X,b,c)|0;f=j[V>>1]|0;if(!(f<<16>>16))break d;if(e){j[Y>>1]=f;pw(y|0,z|0,(f&65535)<<4|0)|0;f=0;break}t=j[Y>>1]|0;j[W>>1]=t;u=t&65535;pw(x|0,y|0,u<<4|0)|0;j[Y>>1]=0;if(!(t<<16>>16))f=0;else{t=0;do{if(!(f<<16>>16))f=0;else{n=W+(t<<4)+8|0;e=k[n>>2]|0;n=k[n+4>>2]|0;o=j[W+(t<<4)+16>>1]|0;p=j[W+(t<<4)+18>>1]|0;q=0;do{aa=V+(q<<4)+8|0;ba=k[aa>>2]|e;aa=k[aa+4>>2]|n;f=Lv(o,j[V+(q<<4)+16>>1]|0)|0;Pv(Y,ba,aa,f,Lv(p,j[V+(q<<4)+18>>1]|0)|0);q=q+1|0;f=j[V>>1]|0}while((q|0)<(f&65535|0))}t=t+1|0}while((t|0)<(u|0));f=0}}while(0);g=g+48|0;if(g>>>0>=v>>>0)break c;else e=f}j[Y>>1]=0}else d=0;while(0);j[D>>1]=1;k[k[E>>2]>>2]=h;k[F>>2]=8192;j[G>>1]=0;i[H>>0]=0;k[I+0>>2]=0;k[I+4>>2]=0;k[I+8>>2]=0;if(d)break a;g=m[Y>>1]|0;f=0;while(1){if((f|0)>=(g|0))break b;j[J>>1]=(m[Y+(f<<4)+16>>1]|0)+1;j[K>>1]=j[Y+(f<<4)+18>>1]|0;q=Y+(f<<4)+8|0;t=k[q+4>>2]|0;d=R;k[d>>2]=k[q>>2];k[d+4>>2]=t;d=Kv(a,R)|0;if(!d)f=f+1|0;else break a}}while(0);h=h+48|0;if(h>>>0>=U>>>0){d=0;break}}}else d=0;while(0);r=$;return d|0}function Ou(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=b+48|0;d=k[c>>2]|0;e=b+56|0;if((d|0)!=(e|0))rg(a,d);Qv(a,b);k[c>>2]=e;j[b+40>>1]=0;j[b+44>>1]=3;k[b+36>>2]=0;return}function Pu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ia=0,ja=0,la=0;la=r;r=r+32|0;if((r|0)>=(s|0))ka();aa=la+24|0;Z=la+16|0;da=la+8|0;ja=la;$=k[a>>2]|0;fa=k[$>>2]|0;l=i[a+41>>0]|0;ga=l&255;if((l&255)<2)V=1;else V=l<<24>>24==2?5:10;ia=a+8|0;f=k[ia>>2]|0;ba=b<<16>>16==0;if((f|0)==0|ba)U=0;else U=k[f>>2]|0;g=U<<1;ea=g+(ha((ga<<3)+64|0,V)|0)|0;ea=rh(fa,ea,((ea|0)<0)<<31>>31)|0;do if(ea){f=ea+(V<<5)|0;k[f+0>>2]=0;k[f+4>>2]=0;k[f+8>>2]=0;k[f+12>>2]=0;k[f+16>>2]=0;k[f+20>>2]=0;k[f+24>>2]=0;k[f+28>>2]=0;c=V<<1;h=ha(V,-2)|0;h=ea+((ha((((h|0)>-1?h:1073741823)+(V<<1)<<2)+4|0,ga)|0)+(V<<6))|0;e=c;d=ea;c=ea+(c<<5)|0;while(1){k[d+24>>2]=c;e=e+-1|0;if((e|0)<=0)break;else{d=d+32|0;c=c+(ga<<2)|0}}e=(U|0)!=0;if(e)kw(h|0,0,g|0)|0;else h=0;T=k[$+424>>2]|0;j[ea+(V<<5)+16>>1]=T>>>0<48?T&65535:48;if(e)i[ea+(V<<5)+22>>0]=l<<24>>24!=0?-1:U&255;T=l<<24>>24==0;if(!T){P=a+16|0;Q=a+34|0;R=b<<16>>16<11;S=(b&65535)+16|0;M=b<<16>>16;N=((M|0)<0)<<31>>31;O=V>>>0>1;c=ea;L=0;g=0;l=0;b=0;d=1;while(1){if((d|0)>0){G=L&65535;H=L<<2;I=c+18|0;J=c+16|0;K=0;e=0;F=f;while(1){n=k[P>>2]|0;if(n){A=F+22|0;B=F+16|0;C=F+20|0;D=F+24|0;E=F+8|0;z=e;while(1){p=i[A>>0]|0;q=Z;k[q>>2]=0;k[q+4>>2]=0;q=n;e=F;o=k[e>>2]|0;e=k[e+4>>2]|0;a:do if(((k[q>>2]&~o|0)==0?(k[q+4>>2]&~e|0)==0:0)?(W=n+8|0,Y=W,X=k[Y>>2]|0,Y=k[Y+4>>2]|0,(X&o|0)==0&(Y&e|0)==0):0){v=m[B>>1]|0;x=Lv(j[n+18>>1]|0,v+(m[n+20>>1]|0)&65535)|0;x=Lv(x,j[C>>1]|0)|0;v=(m[n+22>>1]|0)+v|0;y=v&65535;u=X|o;q=Y|e;if(p<<24>>24<0)w=Rv(a,k[ia>>2]|0,F,j[Q>>1]|0,G,n,Z)|0;else{e=E;o=k[e+4>>2]|0;w=Z;k[w>>2]=k[e>>2];k[w+4>>2]=o;w=p}p=w<<24>>24;if(w<<24>>24>-1&(U|0)>(p|0)){t=h+(p<<1)|0;o=j[t>>1]|0;if(!(o<<16>>16)){p=((U-p|0)*100|0)/(U|0)|0;p=(ks(p,((p|0)<0)<<31>>31)|0)&65535;if(R)e=0;else e=((ks(M,N)|0)&65535)+65503&65535;p=S+(((p<<16)+-4325376|0)>>>16)+e|0;if(j[Q>>1]&1024)p=(p&65535)+16|0;o=p&65535;j[t>>1]=o}t=Lv(x,o)|0}else t=x;b:do if((z|0)>0){p=0;o=c;while(1){e=o;if(((k[e>>2]|0)==(u|0)?(k[e+4>>2]|0)==(q|0):0)?(i[o+22>>0]^w)<<24>>24>-1:0)break;p=p+1|0;if((p|0)>=(z|0)){_=35;break b}else o=o+32|0}e=j[o+18>>1]|0;if(e<<16>>16<t<<16>>16){e=z;break a}if(e<<16>>16!=t<<16>>16){e=z;break}if((j[o+16>>1]|0)>(v<<16>>16|0))e=z;else{e=z;break a}}else _=35;while(0);if((_|0)==35){_=0;o=(z|0)<(V|0);if(!o){if(t<<16>>16>g<<16>>16){e=z;break}if(!(t<<16>>16!=g<<16>>16?1:x<<16>>16<b<<16>>16)){e=z;break}}e=(o&1)+z|0;o=c+((o?z:l)<<5)|0}p=F;v=W;q=k[v+4>>2]|k[p+4>>2];u=o;k[u>>2]=k[v>>2]|k[p>>2];k[u+4>>2]=q;u=Z;q=k[u+4>>2]|0;p=o+8|0;k[p>>2]=k[u>>2];k[p+4>>2]=q;j[o+16>>1]=y;j[o+18>>1]=t;j[o+20>>1]=x;i[o+22>>0]=w;o=o+24|0;pw(k[o>>2]|0,k[D>>2]|0,H|0)|0;k[(k[o>>2]|0)+(L<<2)>>2]=n;if((e|0)<(V|0))break;g=j[I>>1]|0;b=j[J>>1]|0;if(O){q=c;t=1;p=g;l=0;o=b}else{l=0;break}while(1){g=j[q+50>>1]|0;do if(g<<16>>16<=p<<16>>16){if(g<<16>>16!=p<<16>>16){g=p;b=o;break}b=j[q+52>>1]|0;if(b<<16>>16>o<<16>>16)_=48;else{g=p;b=o}}else{b=j[q+52>>1]|0;_=48}while(0);q=q+32|0;if((_|0)==48){_=0;l=t}t=t+1|0;if((t|0)>=(V|0))break;else{p=g;o=b}}}else e=z;while(0);n=k[n+52>>2]|0;if(!n)break;else z=e}}K=K+1|0;if((K|0)==(d|0)){d=e;break}else F=F+32|0}}else d=0;L=L+1|0;if((L|0)>=(ga|0))break;else{K=c;c=f;f=K}}if(!d){yh($,34008,aa);rg(fa,ea);break}if((d|0)>1){e=1;f=c;do{if((j[f+18>>1]|0)>(j[c+(e<<5)+18>>1]|0))f=c+(e<<5)|0;e=e+1|0}while((e|0)!=(d|0))}else f=c;if(!T){d=a+4|0;e=k[f+24>>2]|0;c=0;do{_=k[e+(c<<2)>>2]|0;k[a+(c*80|0)+800>>2]=_;_=i[_+16>>0]|0;i[a+(c*80|0)+780>>0]=_;k[a+(c*80|0)+740>>2]=k[(k[d>>2]|0)+((_&255)*72|0)+48>>2];c=c+1|0}while((c|0)<(ga|0))}}d=a+34|0;if(((j[d>>1]&1536)==1024?(ca=a+40|0,!((i[ca>>0]|0)!=0|ba)):0)?(_=a+12|0,Z=ga+-1|0,Z=(Rv(a,k[_>>2]|0,f,512,Z&65535,k[(k[f+24>>2]|0)+(Z<<2)>>2]|0,da
8 20>>2]|0)>>>0>(k[a+24>>2]|0)>>>0?(Zo(b)|0)!=0:0)?(e=_o(b)|0,(e|0)!=0):0){c=e;break}c=Fl(a,b)|0;h=16}else{if((Zo(b)|0)!=0?(c=_o(b)|0,(c|0)!=0):0)break;c=Bl(a,b,0,0)|0;h=16}while(0);if((h|0)==16)if(!c){Cl(b);c=0;break}d=c&255;if((d|0)==10|(d|0)==13){k[g>>2]=c;i[a+16>>0]=6}}else c=0;while(0);return c|0}function Dp(a){a=a|0;var b=0;b=k[a+8>>2]|0;if((i[b>>0]|0)!=0?(i[b>>0]=0,(j[a+26>>1]|0)>1):0)eq(b)|0;return}function Ep(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();j=m;h=m+8|0;do if(!(k[e>>2]|0)){if(!b){k[j>>2]=53856;k[j+4>>2]=10788;gd(11,13600,j);k[e>>2]=11;break}if(b>>>0<2)f=0;else{f=b+-2|0;f=f-((f>>>0)%(((((k[a+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;f=((f+1|0)==(((k[2514]|0)>>>0)/((k[a+32>>2]|0)>>>0)|0|0)?3:2)+f|0}g=Eg(k[a>>2]|0,f,h,0)|0;if(g){k[e>>2]=g;break}b=(b-f|0)*5|0;g=b+-5|0;do if((g|0)>=0){f=k[h>>2]|0;a=k[f+4>>2]|0;g=a+g|0;if((i[g>>0]|0)==c<<24>>24?(l[a+(b+-3)>>0]<<16|l[a+(b+-4)>>0]<<24|l[a+(b+-2)>>0]<<8|l[a+(b+-1)>>0]|0)==(d|0):0)break;h=Lg(f)|0;k[e>>2]=h;if(!h){i[g>>0]=c;i[a+(b+-4)>>0]=d>>>24;i[a+(b+-3)>>0]=d>>>16;i[a+(b+-2)>>0]=d>>>8;i[a+(b+-1)>>0]=d}}else{k[j>>2]=53867;k[j+4>>2]=10788;gd(11,13600,j);k[e>>2]=11;f=k[h>>2]|0}while(0);if(f)Gg(f)}while(0);r=m;return}function Fp(a,b,c){a=a|0;b=b|0;c=c|0;return Pm(a,b,c,0)|0}function Gp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;f=l[b>>0]&63;d=b+f|0;h=k[c+8>>2]|0;g=k[h>>2]|0;h=k[h+4>>2]|0;switch(l[b+1>>0]|0){case 5:{e=i[d>>0]<<8|l[b+(f+1)>>0];d=l[b+(f+3)>>0]<<16|l[b+(f+2)>>0]<<24|l[b+(f+4)>>0]<<8|l[b+(f+5)>>0];j=11;break}case 6:{e=l[b+(f+1)>>0]<<16|l[d>>0]<<24|l[b+(f+2)>>0]<<8|l[b+(f+3)>>0];d=l[b+(f+5)>>0]<<16|l[b+(f+4)>>0]<<24|l[b+(f+6)>>0]<<8|l[b+(f+7)>>0];j=11;break}case 9:{e=0;d=1;j=11;break}case 2:{d=i[d>>0]<<8|l[b+(f+1)>>0];e=((d|0)<0)<<31>>31;j=11;break}case 7:case 0:{d=Pm(a,b,c,0)|0;break}case 4:{d=l[b+(f+1)>>0]<<16|l[d>>0]<<24|l[b+(f+2)>>0]<<8|l[b+(f+3)>>0];e=((d|0)<0)<<31>>31;j=11;break}case 3:{d=l[b+(f+1)>>0]<<8|i[d>>0]<<16|l[b+(f+2)>>0];e=((d|0)<0)<<31>>31;j=11;break}case 8:{e=0;d=0;j=11;break}case 1:{d=i[d>>0]|0;e=((d|0)<0)<<31>>31;j=11;break}default:d=Pm(a,b,c,0)|0}do if((j|0)==11){if((h|0)>(e|0)|(h|0)==(e|0)&g>>>0>d>>>0){d=k[c+12>>2]|0;break}if((h|0)<(e|0)|(h|0)==(e|0)&g>>>0<d>>>0){d=k[c+16>>2]|0;break}if((m[c+4>>1]|0)>1){d=Pm(a,b,c,1)|0;break}else{d=i[c+6>>0]|0;break}}while(0);return d|0}function Hp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();h=j;f=j+8|0;d=b+1|0;e=i[d>>0]|0;if(e<<24>>24>-1){d=e&255;k[f>>2]=d}else{rm(d,f)|0;d=k[f>>2]|0}do if((d|0)>=12){if(!(d&1)){d=k[c+16>>2]|0;break}f=l[b>>0]|0;g=(d+-12|0)/2|0;if((f+g|0)>(a|0)){k[h>>2]=68550;k[h+4>>2]=10788;gd(11,13600,h);i[c+7>>0]=11;d=0;break}d=k[c+8>>2]|0;e=k[d+12>>2]|0;d=cw(b+f|0,k[d+16>>2]|0,(g|0)>(e|0)?e:g)|0;if(d)if((d|0)>0){d=k[c+16>>2]|0;break}else{d=k[c+12>>2]|0;break}if((g|0)==(e|0))if((m[c+4>>1]|0)>1){d=Pm(a,b,c,1)|0;break}else{d=i[c+6>>0]|0;break}else if((g-e|0)>0){d=k[c+16>>2]|0;break}else{d=k[c+12>>2]|0;break}}else d=k[c+12>>2]|0;while(0);r=j;return d|0}function Ip(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0;h=a+73|0;c=i[h>>0]|0;do if(c<<24>>24!=1){if((c&255)>2){c=Pn(a)|0;if(c)break;c=i[h>>0]|0}if(!(c<<24>>24)){k[b>>2]=1;c=0;break}c=a+68|0;d=k[c>>2]|0;if((d|0)!=0?(i[h>>0]=1,k[c>>2]=0,(d|0)>0):0)c=0;else n=9}else n=9;while(0);do if((n|0)==9){g=a+76|0;c=j[g>>1]|0;d=k[a+(c<<2)+120>>2]|0;c=a+(c<<1)+78|0;e=(j[c>>1]|0)+1<<16>>16;j[c>>1]=e;c=(i[d+5>>0]|0)!=0;if((e&65535)<(m[d+18>>1]|0)){if(c){c=0;break}c=_m(a)|0;break}if(!c){c=l[d+6>>0]|0;d=k[d+56>>2]|0;c=wm(a,l[d+(c+9)>>0]<<16|l[d+(c+8)>>0]<<24|l[d+(c+10)>>0]<<8|l[d+(c+11)>>0])|0;if(c)break;c=_m(a)|0;break}e=a+44|0;f=a+72|0;d=j[g>>1]|0;do{if(!(d<<16>>16)){n=15;break}c=k[a+(d<<16>>16<<2)+120>>2]|0;if(c){Gg(k[c+68>>2]|0);d=j[g>>1]|0}d=d+-1<<16>>16;j[g>>1]=d;j[e>>1]=0;i[f>>0]=l[f>>0]&249;o=d<<16>>16;c=k[a+(o<<2)+120>>2]|0}while((m[a+(o<<1)+78>>1]|0)>=(m[c+18>>1]|0));if((n|0)==15){k[b>>2]=1;i[h>>0]=0;c=0;break}if(!(i[c+2>>0]|0))c=0;else c=Im(a,b)|0}while(0);return c|0}function Jp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0;p=a+73|0;c=i[p>>0]|0;do if(c<<24>>24!=1){if((c&255)>2){c=Pn(a)|0;if(c)break;c=i[p>>0]|0}if(!(c<<24>>24)){k[b>>2]=1;c=0;break}c=a+68|0;d=k[c>>2]|0;if((d|0)!=0?(i[p>>0]=1,k[c>>2]=0,(d|0)<0):0)c=0;else e=9}else e=9;while(0);a:do if((e|0)==9){o=a+76|0;f=j[o>>1]|0;g=f<<16>>16;e=k[a+(g<<2)+120>>2]|0;d=a+(g<<1)+78|0;c=j[d>>1]|0;if(!(i[e+5>>0]|0)){b=k[e+56>>2]|0;c=(c&65535)<<1;p=k[e+64>>2]|0;c=(l[p+c>>0]<<8|l[p+(c|1)>>0])&m[e+20>>1];c=wm(a,l[b+(c+1)>>0]<<16|l[b+c>>0]<<24|l[b+(c+2)>>0]<<8|l[b+(c+3)>>0])|0;if(c)break;c=Kp(a)|0;break}b:do if(!(c<<16>>16)){h=a+44|0;n=a+72|0;e=g;while(1){if(!(f<<16>>16))break;d=k[a+(e<<2)+120>>2]|0;if(!d)d=f;else{Gg(k[d+68>>2]|0);d=j[o>>1]|0}f=d+-1<<16>>16;j[o>>1]=f;j[h>>1]=0;i[n>>0]=l[n>>0]&249;e=f<<16>>16;d=a+(e<<1)+78|0;c=j[d>>1]|0;if(c<<16>>16)break b}i[p>>0]=0;k[b>>2]=1;c=0;break a}while(0);j[d>>1]=c+-1<<16>>16;p=k[a+(j[o>>1]<<2)+120>>2]|0;if((i[p+2>>0]|0)!=0?(i[p+5>>0]|0)==0:0)c=Jm(a,b)|0;else c=0}while(0);return c|0}function Kp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=a+76|0;do{c=j[d>>1]|0;b=k[a+(c<<2)+120>>2]|0;if(i[b+5>>0]|0){e=4;break}f=l[b+6>>0]|0;g=k[b+56>>2]|0;f=l[g+(f+9)>>0]<<16|l[g+(f+8)>>0]<<24|l[g+(f+10)>>0]<<8|l[g+(f+11)>>0];j[a+(c<<1)+78>>1]=j[b+18>>1]|0;b=wm(a,f)|0}while((b|0)==0);if((e|0)==4){j[a+(c<<1)+78>>1]=(m[b+18>>1]|0)+65535;b=0}return b|0}function Lp(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,l=0,m=0;m=r;r=r+224|0;if((r|0)>=(s|0))ka();i=m;g=m+8|0;k[g>>2]=0;do if(b){h=a+16|0;l=Km(k[h>>2]|0,m+16|0,200,g)|0;if(l){Lm(k[h>>2]|0,c,b,l);if(!(j[l+4>>1]|0)){rg(k[(k[h>>2]|0)+12>>2]|0,k[g>>2]|0);k[i>>2]=53713;k[i+4>>2]=10788;gd(11,13600,i);g=11;break}h=k[g>>2]|0;g=Hm(a,l,c,d,e,f)|0;if(h)rg(k[(k[a+16>>2]|0)+12>>2]|0,h)}else g=7}else g=Hm(a,0,c,d,e,f)|0;while(0);r=m;return g|0}function Mp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,n=0,o=0,p=0,q=0;q=r;r=r+48|0;if((r|0)>=(s|0))ka();p=q+24|0;d=q;n=q+36|0;o=q+32|0;h=k[a+52>>2]|0;wp(a,b,d);j[c>>1]=j[d+20>>1]|0;c=j[d+18>>1]|0;a:do if(c<<16>>16){e=c&65535;f=b+(e+3)|0;if(f>>>0>((k[a+56>>2]|0)+(m[a+20>>1]|0)|0)>>>0){k[p>>2]=58720;k[p+4>>2]=10788;gd(11,13600,p);c=11;break}c=(k[h+36>>2]|0)+-4|0;c=(((k[d+12>>2]|0)+-1+c-(m[d+16>>1]|0)|0)>>>0)/(c>>>0)|0;if(c){g=h+44|0;a=c;e=l[b+(e+1)>>0]<<16|l[b+e>>0]<<24|l[b+(e+2)>>0]<<8|l[f>>0];while(1){a=a+-1|0;k[n>>2]=0;k[o>>2]=0;if(e>>>0<2)break;if(e>>>0>(k[g>>2]|0)>>>0)break;b=(a|0)==0;if(!b){c=Rp(h,e,o,n)|0;if(c)break a;c=k[o>>2]|0;if(c)f=13;else f=12}else f=12;if((f|0)==12){c=bq(h,e)|0;k[o>>2]=c;if(!c){c=0;f=15}else f=13}if((f|0)==13){f=0;if((j[(k[c+68>>2]|0)+26>>1]|0)==1)f=15;else{k[p>>2]=58754;k[p+4>>2]=10788;gd(11,13600,p);c=11}}if((f|0)==15)c=bn(h,c,e)|0;d=k[o>>2]|0;if((d|0)!=0?(i=k[d+68>>2]|0,(i|0)!=0):0)Gg(i);if(c)break a;if(b){c=0;break a}else e=k[n>>2]|0}k[p>>2]=58734;k[p+4>>2]=10788;gd(11,13600,p);c=11}else c=0}else c=0;while(0);r=q;return c|0}function Np(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,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0;w=r;r=r+16|0;if((r|0)>=(s|0))ka();f=w;do if(!(k[d>>2]|0)){q=k[a+56>>2]|0;t=b<<1;u=k[a+64>>2]|0;v=u+t|0;e=(l[v>>0]|0)<<8|(l[u+(t|1)>>0]|0);g=a+6|0;h=l[g>>0]|0;n=q+(h+5)|0;o=q+(h+6)|0;if(e>>>0>=((l[n>>0]|0)<<8|(l[o>>0]|0))>>>0?(p=a+52|0,(e+c|0)>>>0<=(k[(k[p>>2]|0)+36>>2]|0)>>>0):0){c=Hq(a,e&65535,c&65535)|0;if(c){k[d>>2]=c;break}c=a+18|0;e=(j[c>>1]|0)+-1<<16>>16;j[c>>1]=e;if(!(e<<16>>16)){d=q+(h+1)|0;i[d>>0]=0;i[d+1>>0]=0;i[d+2>>0]=0;i[d+3>>0]=0;i[q+(h+7)>>0]=0;i[n>>0]=(k[(k[p>>2]|0)+36>>2]|0)>>>8;i[o>>0]=k[(k[p>>2]|0)+36>>2];j[a+16>>1]=(k[(k[p>>2]|0)+36>>2]|0)+65528-(l[g>>0]|0)-(l[a+7>>0]|0);break}else{qw(v|0,u+(t+2)|0,(e&65535)-b<<1|0)|0;i[q+(h+3)>>0]=(m[c>>1]|0)>>>8;i[q+(h+4)>>0]=j[c>>1];q=a+16|0;j[q>>1]=(m[q>>1]|0)+2;break}}k[f>>2]=58991;k[f+4>>2]=10788;gd(11,13600,f);k[d>>2]=11}while(0);r=w;return}function Op(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,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=r;r=r+16|0;if((r|0)>=(s|0))ka();n=D;z=D+12|0;v=D+8|0;a:do if(!(k[g>>2]|0)){h=a+1|0;if((i[h>>0]|0)==0?(B=d+2|0,C=a+16|0,(B|0)<=(m[C>>1]|0)):0){e=Lg(k[a+68>>2]|0)|0;if(e){k[g>>2]=e;break}w=k[a+56>>2]|0;o=m[a+14>>1]|0;x=a+18|0;y=m[x>>1]<<1;q=b<<1;t=o+q|0;u=a+6|0;e=l[u>>0]|0;k[z>>2]=0;b=y+o|0;o=w+(e+5)|0;p=w+(e+6)|0;h=((l[o>>0]<<8|l[p>>0])+65535&65535)+1|0;b:do if((b|0)>(h|0)){k[n>>2]=54326;k[n+4>>2]=10788;gd(11,13600,n);e=11}else{n=b+2|0;do if((n|0)<=(h|0)){if((i[w+(e+1)>>0]|0)==0?(i[w+(e+2)>>0]|0)==0:0){A=20;break}k[v>>2]=0;b=Iq(a,d,z,v)|0;e=k[z>>2]|0;if(e)break b;if(!(k[v>>2]|0))if(!b)A=20;else h=b-w|0;else A=21}else A=20;while(0);if((A|0)==20)if((n+d|0)>(h|0))A=21;else A=23;if((A|0)==21){e=Jq(a)|0;k[z>>2]=e;if(e)break;h=((l[o>>0]<<8|l[p>>0])+65535&65535)+1|0;A=23}if((A|0)==23){h=h-d|0;i[o>>0]=h>>>8;i[p>>0]=h}j[x>>1]=(j[x>>1]|0)+1<<16>>16;j[C>>1]=(m[C>>1]|0)-B;e=w+h|0;pw(e|0,c|0,d|0)|0;if(f){i[e>>0]=f>>>24;i[w+(h+1)>>0]=f>>>16;i[w+(h+2)>>0]=f>>>8;i[w+(h+3)>>0]=f}f=w+t|0;qw(w+(t+2)|0,f|0,y-q|0)|0;i[f>>0]=h>>>8;i[w+(t+1)>>0]=h;i[w+((l[u>>0]|0)+3)>>0]=(m[x>>1]|0)>>>8;i[w+((l[u>>0]|0)+4)>>0]=j[x>>1];if(!(i[(k[a+52>>2]|0)+17>>0]|0))break a;Kq(a,c,g);break a}while(0);k[g>>2]=e;break}if(!e)e=c;else pw(e|0,c|0,d|0)|0;if(f){i[e>>0]=f>>>24;i[e+1>>0]=f>>>16;i[e+2>>0]=f>>>8;i[e+3>>0]=f}g=i[h>>0]|0;i[h>>0]=g+1<<24>>24;g=g&255;k[a+(g<<2)+32>>2]=e;j[a+(g<<1)+22>>1]=b}while(0);r=D;return}function Pp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0;Oa=r;r=r+240|0;if((r|0)>=(s|0))ka();Na=Oa+24|0;Ka=Oa+200|0;Aa=Oa+188|0;za=Oa+168|0;ya=Oa+160|0;Ba=Oa+136|0;Ca=Oa+116|0;Ma=Oa+96|0;Ha=Oa+92|0;xa=Oa+229|0;wa=Oa+72|0;va=Oa+52|0;ua=Oa+206|0;Ga=Oa+48|0;Da=Oa;Fa=Oa+44|0;Ja=Oa+40|0;Ia=Oa+36|0;Ea=Oa+32|0;La=Oa+204|0;ta=Oa+216|0;da=a+4|0;ma=(k[(k[da>>2]|0)+36>>2]<<1>>>0)/3|0;na=a+76|0;qa=a+74|0;ra=ta+4|0;sa=ta;ea=a+124|0;ja=a+78|0;la=a+80|0;e=j[na>>1]|0;ca=0;while(1){f=e<<16>>16;g=k[a+(f<<2)+120>>2]|0;h=g+1|0;c=(i[h>>0]|0)==0;if(!(e<<16>>16)){if(c){c=ca;b=0;break}k[Ka>>2]=0;k[Aa>>2]=0;d=k[g+52>>2]|0;b=Lg(k[g+68>>2]|0)|0;k[Na>>2]=b;do if(!b){c=g+72|0;e=np(d,Ka,Aa,k[c>>2]|0,0)|0;k[Na>>2]=e;e=k[Ka>>2]|0;Lq(g,e,Na);if(i[d+17>>0]|0)Ep(d,k[Aa>>2]|0,5,k[c>>2]|0,Na);b=k[Na>>2]|0;if(!b){pw(e+22|0,g+22|0,l[h>>0]<<1|0)|0;pw(e+32|0,g+32|0,l[h>>0]<<2|0)|0;i[e+1>>0]=i[h>>0]|0;ul(g,l[k[e+56>>2]>>0]&247);b=l[g+6>>0]|0;$=k[g+56>>2]|0;_=k[Aa>>2]|0;i[$+(b+8)>>0]=_>>>24;i[$+(b+9)>>0]=_>>>16;i[$+(b+10)>>0]=_>>>8;i[$+(b+11)>>0]=_;k[ea>>2]=e;b=0;break}k[ea>>2]=0;if(e)Gg(k[e+68>>2]|0)}else k[ea>>2]=0;while(0);if(b){c=ca;break}j[na>>1]=1;j[ja>>1]=0;j[la>>1]=0;e=k[ea>>2]|0;d=e+1|0;if(!(i[d>>0]|0)){c=1;f=1;ba=15}else{n=1;f=1;h=d}}else if(c){c=e;e=g;d=h;ba=15}else{n=e;e=g}if((ba|0)==15){ba=0;if((m[e+16>>1]|0)>>>0>ma>>>0){n=c;h=d}else{c=ca;b=0;break}}d=f+-1|0;aa=k[a+(d<<2)+120>>2]|0;d=j[a+(d<<1)+78>>1]|0;o=d&65535;b=Lg(k[aa+68>>2]|0)|0;do if(!b){if(((((i[e+3>>0]|0)!=0?(i[h>>0]|0)==1:0)?(fa=j[e+22>>1]|0,ga=e+18|0,fa<<16>>16==(j[ga>>1]|0)):0)?(ha=aa+72|0,(k[ha>>2]|0)!=1):0)?(ia=aa+18|0,(j[ia>>1]|0)==d<<16>>16):0){d=k[e+52>>2]|0;if(!(fa<<16>>16)){k[Na>>2]=59423;k[Na+4>>2]=10788;gd(11,13600,Na);c=ca;b=11;break}$=np(d,Fa,Ia,0,0)|0;k[Ja>>2]=$;if(!$){c=k[e+32>>2]|0;k[Ea>>2]=c;b=Qp(e,c)|0;j[La>>1]=b;f=k[Fa>>2]|0;ul(f,13);Mq(f,1,Ea,La);j[f+16>>1]=65534-(b&65535)+(k[d+36>>2]|0)-(m[f+14>>1]|0);if((i[d+17>>0]|0)!=0?(Ep(d,k[Ia>>2]|0,5,k[ha>>2]|0,Ja),(b&65535)>(m[f+12>>1]|0)):0)Kq(f,c,Ja);$=k[e+56>>2]|0;d=m[ga>>1]<<1;c=k[e+64>>2]|0;d=(l[c+(d+-2)>>0]<<8|l[c+(d+-1)>>0])&m[e+20>>1];c=$+d|0;k[Ea>>2]=c;d=$+(d+9)|0;while(1){b=c+1|0;if((i[c>>0]|0)<0&b>>>0<d>>>0)c=b;else break}k[Ea>>2]=b;d=c+10|0;f=ra;while(1){k[Ea>>2]=b+1;$=i[b>>0]|0;c=f+1|0;i[f>>0]=$;b=k[Ea>>2]|0;if(!($<<24>>24<0&b>>>0<d>>>0))break;else f=c}Op(aa,m[ia>>1]|0,ta,c-sa|0,0,k[e+72>>2]|0,Ja);c=l[aa+6>>0]|0;$=k[aa+56>>2]|0;_=k[Ia>>2]|0;i[$+(c+8)>>0]=_>>>24;i[$+(c+9)>>0]=_>>>16;i[$+(c+10)>>0]=_>>>8;i[$+(c+11)>>0]=_;c=k[Fa>>2]|0;if(c)Gg(k[c+68>>2]|0)}c=ca;b=k[Ja>>2]|0;break}c=Lo(k[(k[daDa);o=Dak(k[a>>2]|0,k[c>>2]|0);break}case 239:case 234:{Kk(k[a>>2]|0,k[c>>2]|0);break}case 252:case 197:{Vn(k[a>>2]|0,k[c>>2]|0);break}case 228:case 221:case 220:case 210:case 209:case 208:case 205:case 203:case 200:case 188:case 179:{Sk(k[a>>2]|0,k[c>>2]|0);break}default:{}}return}
11 function rq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0;da=r;r=r+192|0;if((r|0)>=(s|0))ka();_=da+48|0;Y=da+24|0;X=da+160|0;E=da+156|0;P=da+152|0;H=da+148|0;S=da+144|0;K=da+140|0;D=da+16|0;ba=da;v=da+128|0;u=da+116|0;w=da+96|0;e=da:{_=aa+-1|0;$=cr($,l[a+(aa<<4)+14>>0]|0,k[a+(_<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 209:{e=aa+-4|0;_=aa+-3|0;c=Br($,qr($,qr($,qr($,0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(e<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0,a+(_<<4)+16|0)|0;k[ba>>2]=c;if(k[a+(_<<4)+24>>2]|0){c=cr($,19,c,0,0)|0;k[ba>>2]=c}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];if(c){$=c+4|0;k[$>>2]=k[$>>2]|128}break}case 223:{e=a+(aa+-1<<4)+16|0;c=k[e>>2]|0;do if(c){if((k[c>>2]|0)==1){_=k[c+4>>2]|0;c=k[_>>2]|0;k[_>>2]=0;Sk(k[$>>2]|0,k[e>>2]|0);if(c){_=c+4|0;k[_>>2]=k[_>>2]&-769|512}$=cr($,(k[a+(aa+-3<<4)+16>>2]|0)!=0?78:79,k[a+(aa+-4<<4)+16>>2]|0,c,0)|0;k[ba>>2]=$;break}c=cr($,75,k[a+(aa+-4<<4)+16>>2]|0,0,0)|0;k[ba>>2]=c;if(!c){Sk(k[$>>2]|0,k[e>>2]|0);c=0}else{k[c+20>>2]=k[e>>2];c=k[ba>>2]|0;Dr($,c)}if(k[a+(aa+-3<<4)+16>>2]|0){$=cr($,19,c,0,0)|0;k[ba>>2]=$}}else{_=cr($,132,0,0,20616+(k[a+(aa+-3<<4)+16>>2]<<3)|0)|0;k[ba>>2]=_;Lk(k[$>>2]|0,k[a+(aa+-4<<4)+16>>2]|0)}while(0);k[ba+4>>2]=k[a+(aa+-4<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 211:{_=aa+-2|0;$=cr($,77,k[a+(_<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 212:{Y=aa+-2|0;Z=a+(aa<<4)+16|0;_=cr($,73,k[a+(Y<<4)+16>>2]|0,k[Z>>2]|0,0)|0;k[ba>>2]=_;k[ba+4>>2]=k[a+(Y<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];Cr($,k[Z>>2]|0,_,76);break}case 213:{Y=aa+-3|0;Z=a+(aa<<4)+16|0;_=cr($,148,k[a+(Y<<4)+16>>2]|0,k[Z>>2]|0,0)|0;k[ba>>2]=_;k[ba+4>>2]=k[a+(Y<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];Cr($,k[Z>>2]|0,_,77);break}case 215:case 214:{_=aa+-1|0;$=cr($,l[a+(_<<4)+14>>0]|0,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 216:{$=cr($,157,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(aa+-1<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 217:{$=cr($,158,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(aa+-1<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 220:{d=qr($,qr($,0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0;e=aa+-4|0;c=cr($,74,k[a+(e<<4)+16>>2]|0,0,0)|0;k[ba>>2]=c;if(!c)Sk(k[$>>2]|0,d);else k[c+20>>2]=d;if(k[a+(aa+-3<<4)+16>>2]|0){$=cr($,19,k[ba>>2]|0,0,0)|0;k[ba>>2]=$}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 224:{c=cr($,119,0,0,0)|0;k[ba>>2]=c;if(!c)Rk(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,1);else{k[c+20>>2]=k[a+(aa+-1<<4)+16>>2];_=k[ba>>2]|0;Z=_+4|0;k[Z>>2]=k[Z>>2]|2099200;Dr($,_)}k[ba+4>>2]=k[a+(aa+-2<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 118:{$=pr($,k[a+(aa+-6<<4)+16>>2]|0,k[a+(aa+-5<<4)+16>>2]|0,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-3<<4)+16>>2]|0,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,j[a+(aa+-7<<4)+16>>1]|0,k[a+(aa<<4)+16>>2]|0,k[a+(aa<<4)+20>>2]|0)|0;k[ba>>2]=$;break}case 120:{$=pr($,k[a+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;k[ba>>2]=$;break}case 121:{c=pr($,k[a+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!c){k[ba>>2]=k[a+(aa+-4<<4)+16>>2];break a}else{i[c+4>>0]=116;k[c+52>>2]=k[a+(aa+-4<<4)+16>>2];k[ba>>2]=c;break a}}case 122:{j[ba>>1]=1;break}case 124:case 123:{j[ba>>1]=0;break}case 243:case 125:{k[ba>>2]=k[a+(aa+-1<<4)+16>>2];break}case 242:case 236:case 161:case 154:case 126:{k[ba>>2]=0;break}case 127:{e=aa+-1|0;g=qr($,k[a+(aa+-2<<4)+16>>2]|0,k[a+(e<<4)+16>>2]|0)|0;k[ba>>2]=g;if(k[a+(aa<<4)+20>>2]|0)rr($,g,a+(aa<<4)+16|0,1);n=k[$>>2]|0;if(g){h=(k[g+4>>2]|0)+(((k[g>>2]|0)+-1|0)*20|0)+8|0;rg(n,k[h>>2]|0);f=k[a+(e<<4)+20>>2]|0;g=(k[a+(e<<4)+24>>2]|0)-f|0;if((f|0)!=0?(c=ow(g|0,((g|0)<0)<<31>>31|0,1,0)|0,c=rh(n,c,L)|0,(c|0)!=0):0){pw(c|0,f|0,g|0)|0;i[c+g>>0]=0}else c=0;k[h>>2]=c}break}case 133:{e=rh(k[$>>2]|0,80,0)|0;if(e){v=e+0|0;d=v+80|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0))}k[ba>>2]=e;break}case 134:{g=k[a+(aa<<4)+16>>2]|0;k[ba>>2]=g;if(g){e=k[g>>2]|0;d=e+-1|0;if((d|0)>0)while(1){i[g+(d*72|0)+44>>0]=i[g+((e+-2|0)*72|0)+44>>0]|0;e=d+-1|0;if((e|0)>0){$=d;d=e;e=$}else break}i[g+44>>0]=0}break}case 128:{Z=k[$>>2]|0;k[_>>2]=0;k[_+4>>2]=0;_=sr(Z,116,_,0)|0;$=qr($,k[a+(aa+-1<<4)+16>>2]|0,_)|0;k[ba>>2]=$;break}case 132:{k[ba+4>>2]=0;break}case 129:{_=cr($,116,0,0,a+(aa<<4)+16|0)|0;_=cr($,122,cr($,27,0,0,a+(aa+-2<<4)+16|0)|0,_,0)|0;$=qr($,k[a+(aa+-3<<4)+16>>2]|0,_)|0;k[ba>>2]=$;break}case 136:{k[ba>>2]=0;break}case 137:{_=or($,k[a+(aa+-6<<4)+16>>2]|0,a+(aa+-5<<4)+16|0,a+(aa+-4<<4)+16|0,a+(aa+-3<<4)+16|0,0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=_;tr($,_,a+(aa+-2<<4)+16|0);break}case 135:{c=k[a+(aa+-1<<4)+16>>2]|0;k[ba>>2]=c;if((c|0)!=0?(t=k[c>>2]|0,(t|0)>0):0)i[c+((t+-1|0)*72|0)+44>>0]=k[a+(aa<<4)+16>>2];break}case 138:{$=or($,k[a+(aa+-6<<4)+16>>2]|0,0,0,a+(aa+-2<<4)+16|0,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 139:{e=a+(aa+-6<<4)+16|0;g=k[e>>2]|0;if((((g|0)==0?(k[a+(aa+-2<<4)+20>>2]|0)==0:0)?(k[a+(aa+-1<<4)+16>>2]|0)==0:0)?(k[a+(aa<<4)+16>>2]|0)==0:0){k[ba>>2]=k[a+(aa+-4<<4)+16>>2];break a}n=a+(aa+-4<<4)+16|0;d=k[n>>2]|0;h=k[d>>2]|0;if((h|0)==1){e=or($,g,0,0,a+(aa+-2<<4)+16|0,0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=e;if(e){X=(k[e>>2]|0)+-1|0;_=k[n>>2]|0;Z=_+16|0;k[e+(X*72|0)+16>>2]=k[Z>>2];Y=_+12|0;k[e+(X*72|0)+12>>2]=k[Y>>2];_=_+28|0;k[e+(X*72|0)+28>>2]=k[_>>2];k[Y>>2]=0;k[Z>>2]=0;k[_>>2]=0}Io(k[$>>2]|0,k[n>>2]|0);break a}if(d){f=h+-1|0;if((f|0)>0){g=h;while(1){i[d+(f*72|0)+44>>0]=i[d+((g+-2|0)*72|0)+44>>0]|0;g=f+-1|0;if((g|0)>0){_=f;f=g;g=_}else break}}i[d+44>>0]=0}_=pr($,0,d,0,0,0,0,512,0,0)|0;$=or($,k[e>>2]|0,0,0,a+(aa+-2<<4)+16|0,_,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 149:case 140:{k[ba>>2]=0;k[ba+4>>2]=0;break}case 144:{$=vr($,a+(aa+-1<<4)+16|0,0,0)|0;k[ba>>2]=$;break}case 145:{$=vr($,a+(aa+-2<<4)+16|0,a+(aa+-1<<4)+16|0,0)|0;k[ba>>2]=$;break}case 146:{$=vr($,a+(aa+-3<<4)+16|0,a+(aa+-2<<4)+16|0,a+(aa+-1<<4)+16|0)|0;k[ba>>2]=$;break}case 233:case 231:case 171:case 164:case 147:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{k[ba>>2]=0;break}case 151:{k[ba>>2]=0;k[ba+4>>2]=1;break}case 143:{k[ba>>2]=1;break}case 142:{$=ur(k[$>>2]|0,0,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0)|0;k[ba>>2]=$;break}case 235:case 162:case 155:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 156:{c=qr($,k[a+(aa+-3<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0)|0;k[ba>>2]=c;if(c)i[(k[c+4>>2]|0)+(((k[c>>2]|0)+-1|0)*20|0)+12>>0]=k[a+(aa<<4)+16>>2];break}case 157:{c=qr($,0,k[a+(aa+-1<<4)+16>>2]|0)|0;k[ba>>2]=c;if((c|0)!=0?(d=k[c+4>>2]|0,(d|0)!=0):0)i[d+12>>0]=k[a+(aa<<4)+16>>2];break}case 179:case 153:{k[ba>>2]=0;break}case 180:case 152:{k[ba>>2]=k[a+(aa+-1<<4)+16>>2];break}case 160:case 158:{k[ba>>2]=0;break}case 159:{k[ba>>2]=1;break}case 165:{k[ba>>2]=0;k[ba+4>>2]=0;break}case 166:{k[ba>>2]=k[a+(aa<<4)+16>>2];k[ba+4>>2]=0;break}case 167:{k[ba>>2]=k[a+(aa+-2<<4)+16>>2];k[ba+4>>2]=k[a+(aa<<4)+16>>2];break}case 168:{k[ba+4>>2]=k[a+(aa+-2<<4)+16>>2];k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 19:{if((Xq($,22,37120,0,0)|0)==0?(x=Tq($)|0,(x|0)!=0):0)Bh(x,3,1,1,0)|0;break}case 22:{Yq($,0,a+(aa<<4)+16|0);break}case 23:{Yq($,1,a+(aa<<4)+16|0);break}case 24:{Yq($,2,a+(aa<<4)+16|0);break}default:{}}while(0);c=i[20912+(b<<1)>>0]|0;h=c&255;g=i[20913+(b<<1)>>0]|0;f=g&255;n=(k[a>>2]|0)-f|0;k[a>>2]=n;e=j[22184+((j[21568+(m[a+(aa-f<<4)+12>>1]<<1)>>1]|0)+h<<1)>>1]|0;d=e&65535;do if((e&65535)<642)if(!(g<<24>>24)){pq(a,d,h,ba);break}else{k[a>>2]=n+1;aa=1-f+aa|0;j[a+(aa<<4)+12>>1]=e;i[a+(aa<<4)+14>>0]=c;aa=a+(aa<<4)+16|0;k[aa+0>>2]=k[ba+0>>2];k[aa+4>>2]=k[ba+4>>2];k[aa+8>>2]=k[ba+8>>2];break}else{c=k[ca>>2]|0;if((n|0)>-1)do Un(a);while((k[a>>2]|0)>-1);k[ca>>2]=c}while(0);r=da
12 function nr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,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=r;r=r+240|0;if((r|0)>=(s|0))ka();oa=za;pa=za+220|0;ga=za+216|0;ea=za+196|0;fa=za+176|0;ra=za+164|0;sa=za+136|0;va=za+88|0;ca=za+64|0;ia=za+32|0;xa=a+464|0;ya=k[xa>>2]|0;la=a+468|0;ua=k[la>>2]|0;k[la>>2]=ua+1;k[xa>>2]=ua;ua=k[a>>2]|0;a:do if((((b|0)!=0?(ma=ua+65|0,(i[ma>>0]|0)==0):0)?(d=a+64|0,(k[d>>2]|0)==0):0)?(Xq(a,21,0,0,0)|0)==0:0){A=va+0|0;z=A+48|0;do{k[A>>2]=0;A=A+4|0}while((A|0)<(z|0));ha=b+48|0;if((l[c>>0]|0)<9){Sk(ua,k[ha>>2]|0);k[ha>>2]=0;ba=b+6|0;j[ba>>1]=m[ba>>1]&65534}Is(a,b,0);k[sa+0>>2]=0;k[sa+4>>2]=0;k[sa+8>>2]=0;k[sa+12>>2]=0;k[sa+16>>2]=0;k[sa+20>>2]=0;k[sa+24>>2]=0;k[sa>>2]=k[ha>>2];ja=b+32|0;u=k[ja>>2]|0;t=k[b>>2]|0;b:do if(((k[d>>2]|0)==0?(i[ma>>0]|0)==0:0)?(qa=b+6|0,w=(m[qa>>1]|0)>>>2&1,ta=Tq(a)|0,(ta|0)!=0):0){if((k[t>>2]|0)>1?(i[c>>0]&-2)<<24>>24==10:0){yh(a,35368,oa);wa=444;break}na=b+52|0;t=k[na>>2]|0;c:do if(!t){h=a+460|0;g=a+492|0;f=b+36|0;e=a+408|0;d=b+60|0;Q=b+64|0;R=b+4|0;S=ua+60|0;T=ta+32|0;U=a+72|0;V=ca+4|0;W=ca+1|0;X=ca+8|0;Y=ca+12|0;Z=ta+4|0;_=ta+24|0;$=a+19|0;aa=a+56|0;ba=a+80|0;P=0;v=w;while(1){if((P|0)>=(k[u>>2]|0)){D=f;N=0;w=v;R=u;break c}J=k[u+(P*72|0)+28>>2]|0;do if(!J)w=P;else{M=u+(P*72|0)+32|0;x=k[M>>2]|0;if(x){if(i[u+(P*72|0)+45>>0]&4){w=P;break}Bh(ta,17,k[u+(P*72|0)+36>>2]|0,x,0)|0;w=P;break}k[oa>>2]=0;Js(b,oa);k[h>>2]=(k[h>>2]|0)+(k[oa>>2]|0);q=j[J+6>>1]&4;N=k[g>>2]|0;p=k[a>>2]|0;d:do if(!(j[p+60>>1]&1)){H=k[ja>>2]|0;o=k[H+(P*72|0)+48>>2]|0;G=H+(P*72|0)+28|0;K=k[G>>2]|0;n=q<<16>>16!=0;do if(n){if(v){wa=120;break d}if((k[H>>2]|0)>1){wa=120;break d}O=k[f>>2]|0;if((O|0)!=0?(k[O+4>>2]&2097152|0)!=0:0){wa=120;break d}D=k[b>>2]|0;do if(D){B=k[D>>2]|0;if((B|0)<=0)break;E=k[D+4>>2]|0;D=0;C=0;do{C=k[(k[E+(D*20|0)>>2]|0)+4>>2]|C;D=D+1|0}while((D|0)!=(B|0));if(C&2097152){wa=120;break d}}while(0);D=k[ha>>2]|0;if(!D)break;B=k[D>>2]|0;if((B|0)<=0)break;E=k[D+4>>2]|0;D=0;C=0;do{C=k[(k[E+(D*20|0)>>2]|0)+4>>2]|C;D=D+1|0}while((D|0)!=(B|0));if(C&2097152){wa=120;break d}}while(0);E=k[K+32>>2]|0;D=(k[K+60>>2]|0)==0;if(!D?(k[d>>2]|0)!=0:0){wa=120;break}if(k[K+64>>2]|0){wa=120;break}B=j[qa>>1]|0;C=(B&64)==0;if(!(C|D)){wa=120;break}if(!(k[E>>2]|0)){wa=120;break}A=j[K+6>>1]|0;if(A&1){wa=120;break}E=D|C^1;if(!E?(k[H>>2]|0)>1|(v|0)!=0:0){wa=120;break}D=B&1;if(D<<16>>16!=0&n){wa=120;break}y=k[ha>>2]|0;z=(y|0)==0;if(!z?(k[K+48>>2]|0)!=0:0){wa=120;break}F=(v|0)!=0;if(F?(k[K+48>>2]|0)!=0:0){wa=120;break}if(E){if(A&6144){wa=120;break}}else if(!((k[f>>2]|0)==0&D<<16>>16==0&(A&6144)==0)){wa=120;break}if((B&2048)!=0?(k[K+52>>2]|0)!=0:0){wa=120;break}O=H+(P*72|0)+44|0;if(i[O>>0]&32){wa=120;break}B=K+52|0;E=k[B>>2]|0;do if(E){if(!(D<<16>>16==0&(((k[K+48>>2]|0)!=0|F)^1))){wa=120;break d}if((k[H>>2]|0)!=1){wa=120;break d}e:do if(K){if(!(A&5))C=K;else{wa=120;break d}while(1){D=(E|0)==0;if(!D?(i[C+4>>0]|0)!=116:0){wa=120;break d}if((k[k[C+32>>2]>>2]|0)<1){wa=120;break d}if((k[k[K>>2]>>2]|0)!=(k[k[C>>2]>>2]|0)){wa=120;break d}if(D)break e;if(j[E+6>>1]&5){wa=120;break d}C=E;E=k[E+52>>2]|0}}while(0);if(z)break;C=k[y>>2]|0;if((C|0)<=0)break;E=k[y+4>>2]|0;D=0;do{if(!(j[E+(D*20|0)+16>>1]|0)){wa=120;break d}D=D+1|0}while((D|0)<(C|0))}while(0);x=H+(P*72|0)+16|0;k[g>>2]=k[x>>2];Xq(a,21,0,0,0)|0;k[g>>2]=N;E=k[B>>2]|0;f:do if(!E)wa=81;else{y=p+65|0;B=k[ha>>2]|0;A=k[d>>2]|0;z=k[Q>>2]|0;C=k[na>>2]|0;while(1){k[ha>>2]=0;k[ja>>2]=0;k[na>>2]=0;k[d>>2]=0;k[Q>>2]=0;D=lr(p,b,0)|0;k[Q>>2]=z;k[d>>2]=A;k[ha>>2]=B;k[ja>>2]=H;i[R>>0]=116;if(!D)D=C;else{k[D+52>>2]=C;if(C)k[C+56>>2]=D;k[D+56>>2]=b}k[na>>2]=D;if(i[y>>0]|0)break f;E=k[E+52>>2]|0;if(!E){wa=81;break}else C=D}}while(0);if((wa|0)==81){wa=0;I=k[G>>2]|0;B=H+(P*72|0)+12|0;rg(p,k[B>>2]|0);rg(p,k[x>>2]|0);C=H+(P*72|0)+20|0;rg(p,k[C>>2]|0);k[B>>2]=0;k[x>>2]=0;k[C>>2]=0;k[G>>2]=0;C=H+(P*72|0)+24|0;B=k[C>>2]|0;if(B){A=B+40|0;z=j[A>>1]|0;if(z<<16>>16==1){N=k[e>>2]|0;N=((N|0)==0?a:N)+524|0;k[B+72>>2]=k[N>>2];k[N>>2]=B}else j[A>>1]=z+-1<<16>>16;k[C>>2]=0}N=P+1|0;M=p+65|0;K=b;J=I;while(1){y=k[J+32>>2]|0;x=k[y>>2]|0;D=K+32|0;E=k[D>>2]|0;if(!E){E=ur(p,0,0,0)|0;k[D>>2]=E;if(!E)break;else w=0}else w=i[O>>0]|0;if((x|0)>1){E=Ks(p,E,x+-1|0,N)|0;k[D>>2]=E;if(i[M>>0]|0)break}if((x|0)>0){C=0;do{A=C+P|0;Mk(p,k[E+(A*72|0)+56>>2]|0);D=y+(C*72|0)+8|0;A=E+(A*72|0)+8|0;B=D+0|0;z=A+72|0;do{k[A>>2]=k[B>>2];A=A+4|0;B=B+4|0}while((A|0)<(z|0));A=D+0|0;z=A+72|0;do{k[A>>2]=0;A=A+4|0}while((A|0)<(z|0));C=C+1|0}while((C|0)!=(x|0))}i[E+(P*72|0)+44>>0]=w;D=k[K>>2]|0;E=k[D>>2]|0;if((E|0)>0){A=D+4|0;C=k[A>>2]|0;B=0;do{if(!(k[C+(B*20|0)+4>>2]|0)){E=ph(p,k[C+(B*20|0)+8>>2]|0)|0;qo(E);C=k[A>>2]|0;k[C+(B*20|0)+4>>2]=E;E=k[D>>2]|0}B=B+1|0}while((B|0)<(E|0));D=k[K>>2]|0}Ls(p,D,o,k[J>>2]|0);if(F){Ls(p,k[K+40>>2]|0,o,k[J>>2]|0);H=K+44|0;G=Ms(p,k[H>>2]|0,o,k[J>>2]|0)|0;k[H>>2]=G}E=J+48|0;D=k[E>>2]|0;do if(!D){D=k[K+48>>2]|0;if(!D)break;Ls(p,D,o,k[J>>2]|0)}else{C=k[D>>2]|0;if((C|0)>0){B=k[D+4>>2]|0;A=0;do{j[B+(A*20|0)+16>>1]=0;A=A+1|0}while((A|0)!=(C|0))}k[K+48>>2]=D;k[E>>2]=0}while(0);D=k[J+36>>2]|0;if(!D)C=0;else C=Rr(p,D,0,0)|0;E=K+36|0;D=k[E>>2]|0;if(n){H=K+44|0;k[H>>2]=D;k[E>>2]=C;G=Ms(p,D,o,k[J>>2]|0)|0;k[H>>2]=G;G=xs(p,G,Rr(p,k[J+44>>2]|0,0,0)|0)|0;k[H>>2]=G;H=Ur(p,k[J+40>>2]|0,0)|0;k[K+40>>2]=H}else{H=Ms(p,D,o,k[J>>2]|0)|0;k[E>>2]=H;H=xs(p,H,C)|0;k[E>>2]=H}D=K+6|0;j[D>>1]=m[D>>1]|m[J+6>>1]&1;D=J+60|0;C=k[D>>2]|0;if(C){k[K+60>>2]=C;k[D>>2]=0}K=k[K+52>>2]|0;if(!K)break;else J=k[J+52>>2]|0}Rk(p,I,1)}if(!(q<<16>>16)){w=-1;break}j[qa>>1]=m[qa>>1]|4;w=-1;v=1}else wa=120;while(0);g:do if((wa|0)==120){wa=0;do if((k[u>>2]|0)==1){if(j[S>>1]&256)break;A=k[T>>2]|0;O=A+1|0;N=(k[U>>2]|0)+1|0;k[U>>2]=N;w=u+(P*72|0)+36|0;k[w>>2]=N;Bh(ta,20,N,0,O)|0;k[M>>2]=O;O=k[w>>2]|0;i[ca>>0]=13;k[V>>2]=O;i[W>>0]=0;k[X>>2]=0;k[Y>>2]=0;i[u+(P*72|0)+46>>0]=k[la>>2];nr(a,J,ca)|0;O=J+24|0;O=ks(k[O>>2]|0,k[O+4>>2]|0)|0;j[(k[u+(P*72|0)+24>>2]|0)+28>>1]=O;O=u+(P*72|0)+45|0;i[O>>0]=i[O>>0]|4;k[u+(P*72|0)+40>>2]=k[X>>2];Bh(ta,21,k[w>>2]|0,0,0)|0;w=k[T>>2]|0;if(w>>>0>A>>>0)k[(k[Z>>2]|0)+(A*20|0)+8>>2]=w;k[(k[_>>2]|0)+88>>2]=w+-1;i[$>>0]=0;k[aa>>2]=0;w=P;break g}while(0);z=(k[U>>2]|0)+1|0;k[U>>2]=z;B=u+(P*72|0)+36|0;k[B>>2]=z;z=Bh(ta,25,0,z,0)|0;k[M>>2]=z+1;if(!(i[u+(P*72|0)+45>>0]&2)){O=Tq(a)|0;A=k[ba>>2]|0;k[ba>>2]=A+1;A=Bh(O,44,A,0,0)|0}else A=0;O=k[u+(P*72|0)+48>>2]|0;i[ca>>0]=12;k[V>>2]=O;i[W>>0]=0;k[X>>2]=0;k[Y>>2]=0;i[u+(P*72|0)+46>>0]=k[la>>2];nr(a,J,ca)|0;O=J+24|0;O=ks(k[O>>2]|0,k[O+4>>2]|0)|0;j[(k[u+(P*72|0)+24>>2]|0)+28>>1]=O;if(A){x=k[T>>2]|0;if(x>>>0>A>>>0)k[(k[Z>>2]|0)+(A*20|0)+8>>2]=x;k[(k[_>>2]|0)+88>>2]=x+-1}w=Bh(ta,18,k[B>>2]|0,0,0)|0;if((k[T>>2]|0)>>>0>z>>>0)k[(k[Z>>2]|0)+(z*20|0)+4>>2]=w;i[$>>0]=0;k[aa>>2]=0;w=P}while(0);if(i[ma>>0]|0){wa=444;break b}k[oa>>2]=0;Js(b,oa);k[h>>2]=(k[h>>2]|0)-(k[oa>>2]|0);u=k[ja>>2]|0;if((l[c>>0]|0)<9)break;k[sa>>2]=k[ha>>2]}while(0);t=k[na>>2]|0;if(!t)P=w+1|0;else{D=f;N=t;w=v;R=u;break}}}else{D=b+36|0;N=t;R=u}while(0);Q=k[b>>2]|0;y=k[D>>2]|0;e=b+40|0;t=k[e>>2]|0;E=b+44|0;ca=k[E>>2]|0;f=j[qa>>1]|0;i[ra>>0]=f&1;if(N){K=k[a>>2]|0;k[pa+0>>2]=k[c+0>>2];k[pa+4>>2]=k[c+4>>2];k[pa+8>>2]=k[c+8>>2];k[pa+12>>2]=k[c+12>>2];k[pa+16>>2]=k[c+16>>2];h:do if(!(k[N+48>>2]|0)){u=N+60|0;if(k[u>>2]|0){d=l[b+4>>0]|0;if((d|0)==118)d=35336;else if((d|0)==117)d=35352;else if((d|0)==116)d=35320;else d=35360;k[oa>>2]=d;yh(a,35072,oa);f=0;d=1;wa=227;break}O=Tq(a)|0;o=i[pa>>0]|0;if(o<<24>>24==12){Bh(O,57,k[pa+4>>2]|0,k[k[b>>2]>>2]|0,0)|0;o=k[O+4>>2]|0;if(o)i[o+(((k[O+32>>2]|0)+-1|0)*20|0)+3>>0]=8;i[pa>>0]=14;o=14}n=m[qa>>1]|0;if(n&256){f=0;d=Ns(a,b,pa)|0;wa=227;break}if((k[k[b>>2]>>2]|0)!=(k[k[N>>2]>>2]|0)){Os(a,b);f=0;d=1;wa=227;break}do if(!(n&2048)){if(k[ha>>2]|0){d=Qs(a,b,c)|0;break h}M=b+4|0;n=l[M>>0]|0;if((n|0)==116){q=b+8|0;o=N+8|0;k[o>>2]=k[q>>2];p=b+12|0;n=N+12|0;k[n>>2]=k[p>>2];aa=b+60|0;k[u>>2]=k[aa>>2];ba=b+64|0;k[N+64>>2]=k[ba>>2];g=k[la>>2]|0;d=nr(a,N,pa)|0;k[aa>>2]=0;k[ba>>2]=0;if(d){f=0;wa=227;break h}k[na>>2]=0;o=k[o>>2]|0;k[q>>2]=o;k[p>>2]=k[n>>2];if(!o)t=0;else t=Bh(O,46,o,0,0)|0;e=k[la>>2]|0;d=nr(a,b,pa)|0;f=k[na>>2]|0;k[na>>2]=N;ba=N+24|0;h=b+24|0;o=h;ba=ow(k[o>>2]|0,k[o+4>>2]|0,k[ba>>2]|0,k[ba+4>>2]|0)|0;o=h;k[o>>2]=ba;k[o+4>>2]=L;o=k[u>>2]|0;do if(o){ba=(Rs(o,ga)|0)!=0;o=k[ga>>2]|0;if(!(ba&(o|0)>0))break;ba=h;aa=k[ba+4>>2]|0;n=((o|0)<0)<<31>>31;if(!(aa>>>0>n>>>0|((aa|0)==(n|0)?(k[ba>>2]|0)>>>0>o>>>0:0)))break;ba=h;k[ba>>2]=o;k[ba+4>>2]=n}while(0);if(!t){t=M;q=g;o=e;break}h=k[O+32>>2]|0;if(h>>>0>t>>>0)k[(k[O+4>>2]|0)+(t*20|0)+8>>2]=h;k[(k[O+24>>2]|0)+88>>2]=h+-1;t=M;q=g;o=e;break}else if((n|0)==115|(n|0)==117){if(o<<24>>24==1)n=k[pa+4>>2]|0;else{h=a+68|0;n=k[h>>2]|0;k[h>>2]=n+1;h=Bh(O,57,n,0,0)|0;k[b+16>>2]=h;h=b;while(1){o=k[h+56>>2]|0;if(!o)break;else h=o}ba=h+6|0;j[ba>>1]=m[ba>>1]|8}i[ea>>0]=1;k[ea+4>>2]=n;i[ea+1>>0]=0;k[ea+8>>2]=0;k[ea+12>>2]=0;v=k[la>>2]|0;d=nr(a,N,ea)|0;if(d){f=0;wa=227;break h}u=(i[M>>0]|0)==117?2:1;k[na>>2]=0;q=b+60|0;p=k[q>>2]|0;k[q>>2]=0;o=b+64|0;h=k[o>>2]|0;k[o>>2]=0;i[ea>>0]=u;u=k[la>>2]|0;d=nr(a,b,ea)|0;Sk(K,k[ha>>2]|0);f=k[na>>2]|0;k[na>>2]=N;k[ha>>2]=0;if((i[M>>0]|0)==115){aa=N+24|0;ba=b+24|0;$=ba;aa=ow(k[$>>2]|0,k[$+4>>2]|0,k[aa>>2]|0,k[aa+4>>2]|0)|0;k[ba>>2]=aa;k[ba+4>>2]=L}Lk(K,k[q>>2]|0);k[q>>2]=p;k[o>>2]=h;k[b+8>>2]=0;k[b+12>>2]=0;h=i[pa>>0]|0;if(h<<24>>24==9){h=b;while(1){g=k[h+52>>2]|0;if(!g)break;else h=g}Ss(a,0,k[h>>2]|0)}else if(h<<24>>24==1){t=M;q=v;o=u;break}e=Cs(O)|0;ba=Cs(O)|0;Ts(a,b,e);Bh(O,108,n,e,0)|0;t=O+32|0;q=k[t>>2]|0;Us(a,b,k[b>>2]|0,n,0,0,pa,ba,e);p=O+24|0;o=k[p>>2]|0;h=~ba;do if((ba|0)<0){g=k[o+112>>2]|0;if(!g)break;k[g+(h<<2)>>2]=k[t>>2]}while(0);k[o+88>>2]=(k[t>>2]|0)+-1;Bh(O,9,n,q,0)|0;h=k[p>>2]|0;g=~e;do if((e|0)<0){o=k[h+112>>2]|0;if(!o)break;k[o+(g<<2)>>2]=k[t>>2]}while(0);k[h+88>>2]=(k[t>>2]|0)+-1;Bh(O,61,n,0,0)|0;t=M;q=v;o=u;break}else{h=a+68|0;x=k[h>>2]|0;k[h>>2]=x+2;h=Bh(O,57,x,0,0)|0;k[b+16>>2]=h;h=b;while(1){g=k[h+56>>2]|0;if(!g)break;else h=g}v=x+1|0;q=h+6|0;j[q>>1]=m[q>>1]|8;i[fa>>0]=1;q=fa+4|0;k[q>>2]=x;i[fa+1>>0]=0;k[fa+8>>2]=0;k[fa+12>>2]=0;u=k[la>>2]|0;d=nr(a,N,fa)|0;if(d){f=0;wa=227;break h}t=Bh(O,57,v,0,0)|0;k[b+20>>2]=t;k[na>>2]=0;t=b+60|0;e=k[t>>2]|0;k[t>>2]=0;g=b+64|0;h=k[g>>2]|0;k[g>>2]=0;k[q>>2]=v;w=k[la>>2]|0;d=nr(a,b,fa)|0;f=k[na>>2]|0;k[na>>2]=N;o=b+24|0;ba=o;aa=k[ba+4>>2]|0;p=N+24|0;q=k[p>>2]|0;p=k[p+4>>2]|0;if(aa>>>0>p>>>0|((aa|0)==(p|0)?(k[ba>>2]|0)>>>0>q>>>0:0)){ba=o;k[ba>>2]=q;k[ba+4>>2]=p}Lk(K,k[t>>2]|0);k[t>>2]=e;k[g>>2]=h;if((i[pa>>0]|0)==9){o=b;while(1){n=k[o+52>>2]|0;if(!n)break;else o=n}Ss(a,0,k[o>>2]|0)}g=Cs(O)|0;t=Cs(O)|0;Ts(a,b,g);Bh(O,108,x,g,0)|0;o=a+19|0;n=i[o>>0]|0;if(!(n<<24>>24)){ba=a+72|0;o=(k[ba>>2]|0)+1|0;k[ba>>2]=o}else{ba=n+-1<<24>>24;i[o>>0]=ba;o=k[a+((ba&255)<<2)+24>>2]|0}e=Bh(O,101,x,o,0)|0;Ch(O,Bh(O,68,v,t,o)|0,0,-14);ds(a,o);Us(a,b,k[b>>2]|0,x,0,0,pa,t,g);o=O+24|0;n=k[o>>2]|0;p=~t;do if((t|0)<0){q=k[n+112>>2]|0;if(!q)break;k[q+(p<<2)>>2]=k[O+32>>2]}while(0);q=O+32|0;k[n+88>>2]=(k[q>>2]|0)+-1;Bh(O,9,x,e,0)|0;n=k[o>>2]|0;h=~g;do if((g|0)<0){o=k[n+112>>2]|0;if(!o)break;k[o+(h<<2)>>2]=k[q>>2]}while(0);k[n+88>>2]=(k[q>>2]|0)+-1;Bh(O,61,v,0,0)|0;Bh(O,61,x,0,0)|0;t=M;q=u;o=w;break}}else{Ps(a,b,pa);t=b+4|0;q=0;o=0;f=0;d=0}while(0);ba=i[t>>0]|0;Vs(a,ba&255,q,o,ba<<24>>24!=116&1);if(!(j[qa>>1]&8)){wa=227;break}p=k[k[b>>2]>>2]|0;q=Ws(K,p,1)|0;if(!q){d=7;wa=227;break}if((p|0)>0){e=K+8|0;g=q+20|0;h=0;while(1){ba=Xs(a,b,h)|0;k[g>>2]=ba;if(!ba)k[g>>2]=k[e>>2];h=h+1|0;if((h|0)==(p|0))break;else g=g+4|0}}n=O+32|0;o=O+4|0;do{e=0;do{h=b+(e<<2)+16|0;g=k[h>>2]|0;if((g|0)<0)break;if((k[n>>2]|0)>>>0>g>>>0)k[(k[o>>2]|0)+(g*20|0)+8>>2]=p;k[q>>2]=(k[q>>2]|0)+1;Ch(O,g,q,-6);k[h>>2]=-1;e=e+1|0}while((e|0)<2);b=k[b+52>>2]|0}while((b|0)!=0);ba=(k[q>>2]|0)+-1|0;k[q>>2]=ba;if(ba){wa=227;break}$c(q);wa=227}else{d=l[b+4>>0]|0;if((d|0)==118)d=35336;else if((d|0)==117)d=35352;else if((d|0)==116)d=35320;else d=35360;k[oa>>2]=d;yh(a,35024,oa);f=0;d=1;wa=227}while(0);if((wa|0)==227){k[c+8>>2]=k[pa+8>>2];k[c+12>>2]=k[pa+12>>2];Rk(K,f,1)}k[xa>>2]=ya;break a}if((f&5)==1){d=k[sa>>2]|0;if(!(Ys(d,Q,-1)|0)){j[qa>>1]=f&65534;t=Ur(ua,Q,0)|0;k[e>>2]=t;wa=232}}else wa=232;if((wa|0)==232)d=k[sa>>2]|0;if(!d)d=-1;else{ba=Zs(a,d,0,k[Q>>2]|0)|0;aa=a+68|0;d=k[aa>>2]|0;k[aa>>2]=d+1;k[sa+8>>2]=d;d=Bh(ta,57,d,(k[k[sa>>2]>>2]|0)+1+(k[Q>>2]|0)|0,0)|0;Ch(ta,d,ba,-6)}O=sa+20|0;k[O>>2]=d;if((i[c>>0]|0)==12)Bh(ta,57,k[c+4>>2]|0,k[Q>>2]|0,0)|0;na=Cs(ta)|0;v=b+24|0;ba=v;k[ba>>2]=-1;k[ba+4>>2]=2147483647;Ts(a,b,na);if((k[b+8>>2]|0)==0?(da=k[O>>2]|0,(da|0)>-1):0){if(!(i[(k[ta>>2]|0)+65>>0]|0))d=(k[ta+4>>2]|0)+(da);do if((C|0)==59){at(t);if(!m){p=0;g=n;break}g=Cs(I)|0;Bh(I,16,0,g,0)|0;h=k[I+32>>2]|0;if(h>>>0>f>>>0)k[(k[I+4>>2]|0)+(f*20|0)+8>>2]=h;k[(k[I+24>>2]|0)+88>>2]=h+-1;p=g;g=n}while(0);if(!M)ut(a,E,55,z,d,N,O)|0;do if(!m)if(y){f=Bh(I,108,x,0,0)|0;Bh(I,101,x,e,0)|0;break}else{f=Bh(I,129,w,0,e)|0;break}else{h=k[N>>2]|0;if(!(i[d+(h-z)>>0]|0)){f=0;break}Ch(I,Bh(I,68,h,p,e)|0,g<<16>>16,-14);f=0}while(0);if(!(i[B>>0]&16))wt(a,E,D,k[N>>2]|0,k[O>>2]|0,e,g,(i[J>>0]|0)==0&1,10,v);else{h=k[E+60>>2]|0;d:do if(!h)h=0;else while(1){if((k[h>>2]|0)==(P|0))break d;h=k[h+24>>2]|0;if(!h){h=0;break}}while(0);vt(a,E);Ch(I,Bh(I,15,0,1,e)|0,h,-10);h=k[I+4>>2]|0;if(h)i[h+(((k[I+32>>2]|0)+-1|0)*20|0)+3>>0]=2;E=k[A>>2]|0;i[((E|0)==0?a:E)+21>>0]=1}do if(!m)if(y){Bh(I,9,x,f+1|0,0)|0;h=k[I+32>>2]|0;if(h>>>0>f>>>0)k[(k[I+4>>2]|0)+(f*20|0)+8>>2]=h;k[(k[I+24>>2]|0)+88>>2]=h+-1;break}else{Bh(I,16,0,f,0)|0;h=k[I+32>>2]|0;if(h>>>0>f>>>0)k[(k[I+4>>2]|0)+(f*20|0)+8>>2]=h;k[(k[I+24>>2]|0)+88>>2]=h+-1;break}else{g=k[I+24>>2]|0;f=~p;do if((p|0)<0){h=k[g+112>>2]|0;if(!h)break;k[h+(f<<2)>>2]=k[I+32>>2]}while(0);k[g+88>>2]=(k[I+32>>2]|0)+-1}while(0);if(M)break;if(i[B>>0]&16)break;if(!y)Bh(I,61,k[N>>2]|0,0,0)|0;e=k[F>>2]|0;if(!e)break;else f=0;while(1){Bh(I,61,(k[O>>2]|0)+f|0,0,0)|0;e=k[e+20>>2]|0;if(!e)break;else f=f+1|0}}while(0);if((i[J>>0]|0)==0?(k[a+412>>2]|0)==0:0)xt(a);if((k[G>>2]&128|0)!=0?(i[J>>0]|0)==0:0){if(k[a+412>>2]|0)break;Bh(I,35,H,1,0)|0;nq(I,1);if(i[(k[I>>2]|0)+65>>0]|0)break;ah(k[I+16>>2]|0,34568,-1,1,0)|0}}else d=0}else d=0;while(0);if(K)k[K+492>>2]=L}else d=0}else d=0;Io(P,b);Lk(P,c);rg(P,d);r=Q;return}function xr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0;ia=r;r=r+64|0;if((r|0)>=(s|0))ka();Q=ia;V=ia+32|0;ba=ia+24|0;dada>>2]=0;Dt(a,ga,Z,o,ea,L,N,R,e&255,D,da);if(M)Et(a,ga,N,0,f,U);g=(k[da>>2]|U|0)==0;do if(!g)if(!n){h=Bh(S,70,o,0,N)|0;break}else{h=Bh(S,68,o,0,B)|0;Ch(S,h,z,-14);break}else h=0;while(0);Ft(a,ga,o,ea,Z);if(M|(K|(n|0)!=0))Bh(S,95,o,0,0)|0;if(!g){g=k[S+32>>2]|0;if(g>>>0>h>>>0)k[(k[S+4>>2]|0)+(h*20|0)+8>>2]=g;k[(k[S+24>>2]|0)+88>>2]=g+-1}if(M){Et(a,ga,0,L,f,U);Gt(a,ga,o,ea,L,Z,1,0,0);Ht(a,ga,c,N,f,U);break}else{Gt(a,ga,o,ea,L,Z,1,0,0);break}}while(0);do if(k[H>>2]&128){if(k[a+412>>2]|0)break;Bh(S,37,q,1,0)|0}while(0);Ct(a,ca,110,c,2,ga,N,e,D);do if(!E){if(!n){Bh(S,16,0,D,0)|0;break}m=k[S+24>>2]|0;h=~D;do if((D|0)<0){n=k[m+112>>2]|0;if(!n)break;k[n+(h<<2)>>2]=k[S+32>>2]}while(0);k[m+88>>2]=(k[S+32>>2]|0)+-1;Bh(S,9,A,C,0)|0}while(0);m=k[S+24>>2]|0;h=~p;do if((p|0)<0){n=k[m+112>>2]|0;if(!n)break;k[n+(h<<2)>>2]=k[S+32>>2]}while(0);k[m+88>>2]=(k[S+32>>2]|0)+-1;h=k[t>>2]|0;if(h){m=0;do{n=m;m=m+1|0;if(i[aa+m>>0]|0)Bh(S,61,n+ea|0,0,0)|0;h=k[h+20>>2]|0}while((h|0)!=0)}if((o|0)<(ea|0))Bh(S,61,o,0,0)|0;do if(!(i[T>>0]|0)){if(k[a+412>>2]|0)break;xt(a)}while(0);if(!(k[H>>2]&128))break;if(k[a+412>>2]|0)break;if(i[T>>0]|0)break;Bh(S,35,q,1,0)|0;nq(S,1);if(i[(k[S>>2]|0)+65>>0]|0)break;ah(k[S+16>>2]|0,34520,-1,1,0)|0}while(0);if(P)k[P+492>>2]=Q}}}else f=0}else f=0;while(0);rg(ha,f);Io(ha,b);Sk(ha,c);Lk(ha,d);r=ia;return}function yr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0;la=r;r=r+96|0;if((r|0)>=(s|0))ka();$=la;fa=la+92|0;ha=la+88|0;I=la+68|0;V=la+64|0;L=la+32|0;_=la+28|0;k[fa>>2]=0;k[ha>>2]=0;ja=k[a>>2]|0;k[I+0>>2]=0;k[I+4>>2]=0;k[I+8>>2]=0;k[I+12>>2]=0;k[I+16>>2]=0;a:do if((k[a+64>>2]|0)==0?(K=ja+65|0,(i[K>>0]|0)==0):0){if(c)if((j[c+6>>1]&128)!=0?(k[c+52>>2]|0)==0:0){f=k[c>>2]|0;k[c>>2]=0;Rk(ja,c,1);c=0}else f=0;else{c=0;f=0}if((k[b+16>>2]|0)!=0?(ga=Or(a,b)|0,(ga|0)!=0):0){p=k[ga+68>>2]|0;b:do if(p){o=k[ja+20>>2]|0;if((o|0)>0){n=k[ja+16>>2]|0;h=0;while(1){m=h+1|0;if((k[n+(h<<4)+12>>2]|0)==(p|0)){m=h;break b}if((m|0)<(o|0))h=m;else break}}else m=0}else m=-1e6;while(0);if((((Xq(a,18,k[ga>>2]|0,0,k[(k[ja+16>>2]|0)+(m<<4)>>2]|0)|0)==0?(ca=ga+44|0,W=(l[ca>>0]|0)>>>5&1,ba=ot(a,ga,108,0,V)|0,da=(k[ga+12>>2]|0)!=0,(mr(a,ga)|0)==0):0)?(pt(a,ga,k[V>>2]|0)|0)==0:0)?(ia=Tq(a)|0,(ia|0)!=0):0){ea=a+18|0;if(!(i[ea>>0]|0)){aa=ia+88|0;j[aa>>1]=j[aa>>1]|4}aa=(c|0)!=0;Z=a+408|0;Y=k[Z>>2]|0;Y=(Y|0)==0?a:Y;Fr(a,m);U=Y+328|0;k[U>>2]=k[U>>2]|1<<m;Y=Y+20|0;i[Y>>0]=l[Y>>0]|(aa|(ba|0)!=0)&1;Y=(d|0)==0;c:do if((((!((c|0)==0|Y^1)?(k[a+532>>2]|0)==0:0)?(k[c+68>>2]|0)==0:0)?(Fs(a,ga)|0)==0:0)?(i[ca>>0]&16)==0:0){if((e|0)==10){if((j[ga+36>>1]|0)>-1)p=l[ga+45>>0]|0;else p=10;v=(p|0)==10?2:p}else v=e;o=k[c+32>>2]|0;if((k[o>>2]|0)==1){if(k[o+28>>2]|0){X=117;break}if(k[c+36>>2]|0){X=117;break}if(k[c+48>>2]|0){X=117;break}if(k[c+40>>2]|0){X=117;break}if(k[c+60>>2]|0){X=117;break}if(k[c+52>>2]|0){X=117;break}if(j[c+6>>1]&1){X=117;break}p=k[c>>2]|0;if((k[p>>2]|0)!=1){X=117;break}if((i[k[k[p+4>>2]>>2]>>0]|0)!=116){X=117;break}u=Zr(a,0,o+8|0)|0;if((u|0)==0|(u|0)==(ga|0)){X=117;break}y=u+44|0;U=l[y>>0]|0;if(!((U&16|0)==0?(((l[ca>>0]|0)>>>5&1^1)&255|0)==(U>>>5&1^1|0):0)){X=117;break}if(k[u+12>>2]|0){X=117;break}q=j[ga+38>>1]|0;if(q<<16>>16!=(j[u+38>>1]|0)){X=117;break}x=ga+36|0;if((j[x>>1]|0)!=(j[u+36>>1]|0)){X=117;break}if(q<<16>>16>0){h=k[ga+4>>2]|0;g=k[u+4>>2]|0;t=0;do{if((i[h+(t*24|0)+21>>0]|0)!=(i[g+(t*24|0)+21>>0]|0)){X=117;break c}p=k[h+(t*24|0)+16>>2]|0;o=k[g+(t*24|0)+16>>2]|0;n=(o|0)==0;if(!p){if(!n){X=117;break c}}else{if(n){X=117;break c}if(id(p,o)|0){X=117;break c}}if((i[h+(t*24|0)+20>>0]|0)!=0?(i[g+(t*24|0)+20>>0]|0)==0:0){X=117;break c}do if((t|0)>0){p=k[h+(t*24|0)+8>>2]|0;o=(p|0)==0;n=k[g+(t*24|0)+8>>2]|0;if(o^(n|0)==0){X=117;break c}if(o)break;if(dw(p,n)|0){X=117;break c}}while(0);t=t+1|0}while((t|0)<(q<<16>>16|0))}B=ga+8|0;p=k[B>>2]|0;if(!p)o=0;else{q=k[u+8>>2]|0;if(!q){X=117;break}else o=0;do{o=(i[p+50>>0]|0)==0?o:1;n=q;while(1){if(It(p,n)|0)break;n=k[n+20>>2]|0;if(!n){X=117;break c}}if(!n){X=117;break c}p=k[p+20>>2]|0}while((p|0)!=0)}p=k[ga+24>>2]|0;if((p|0)!=0?(Ys(k[u+24>>2]|0,p,-1)|0)!=0:0){X=117;break}n=k[a>>2]|0;p=k[n+24>>2]|0;if(!(p&524288)){if(p&128){X=117;break}}else if(!((k[ga+16>>2]|0)==0&(p&128|0)==0)){X=117;break}g=k[u+68>>2]|0;d:do if(!g)n=-1e6;else{q=k[n+20>>2]|0;if((q|0)<=0){n=0;break}p=k[n+16>>2]|0;h=0;while(1){n=h+1|0;if((k[p+(h<<4)+12>>2]|0)==(g|0)){n=h;break d}if((n|0)<(q|0))h=n;else break}}while(0);A=Tq(a)|0;Fr(a,n);w=a+68|0;C=k[w>>2]|0;z=C+1|0;k[w>>2]=C+2;w=Jt(a,m,ga)|0;q=a+19|0;h=i[q>>0]|0;do if(!(h<<24>>24)){X=a+72|0;p=(k[X>>2]|0)+1|0;k[X>>2]=p;X=78}else{U=h+-1<<24>>24;i[q>>0]=U;p=k[a+((U&255)<<2)+24>>2]|0;if(!(U<<24>>24)){X=78;break}D=h+-2<<24>>24;i[q>>0]=D;E=p;D=k[a+((D&255)<<2)+24>>2]|0}while(0);if((X|0)==78){E=a+72|0;D=(k[E>>2]|0)+1|0;k[E>>2]=D;E=p}Vq(a,z,m,ga,55);if((j[x>>1]|0)<0)if((k[B>>2]|0)!=0|(o|0)!=0|(v+-1|0)>>>0>1)X=83;else F=0;else if((o|0)!=0|(v+-1|0)>>>0>1)X=83;else F=0;if((X|0)==83){t=Bh(A,108,z,0,0)|0;q=Bh(A,16,0,0,0)|0;p=k[A+32>>2]|0;if(p>>>0>t>>>0)k[(k[A+4>>2]|0)+(t*20|0)+8>>2]=p;k[(k[A+24>>2]|0)+88>>2]=p+-1;F=q}if(!(i[y>>0]&32)){Vq(a,C,n,u,54);o=Bh(A,108,C,0,0)|0;do if((j[x>>1]|0)<=-1)if(!(k[B>>2]|0)){p=Bh(A,74,z,D,0)|0;break}else{p=Bh(A,103,C,D,0)|0;break}else{p=Bh(A,103,C,D,0)|0;t=Bh(A,70,z,0,D)|0;Kt(a,v,ga);q=k[A+32>>2]|0;if(q>>>0>t>>>0)k[(k[A+4>>2]|0)+(t*20|0)+8>>2]=q;k[(k[A+24>>2]|0)+88>>2]=q+-1;if((w|0)<=0)break;Bh(k[a+8>>2]|0,136,w,D,0)|0}while(0);Bh(A,102,C,E,0)|0;Bh(A,75,z,E,D)|0;q=k[A+4>>2]|0;if(q)i[q+(((k[A+32>>2]|0)+-1|0)*20|0)+3>>0]=11;Ch(A,-1,k[ga>>2]|0,0);Bh(A,9,C,p,0)|0;Bh(A,61,C,0,0)|0;Bh(A,61,z,0,0)|0}else{ls(a,m,k[ga+32>>2]|0,1,k[ga>>2]|0);ls(a,n,k[u+32>>2]|0,0,k[u>>2]|0);o=0}t=k[B>>2]|0;if(t){h=u+8|0;g=a+8|0;u=A+4|0;v=A+32|0;w=A+24|0;p=t;do{t=h;while(1){t=k[t>>2]|0;if(It(p,t)|0)break;t=t+20|0}Bh(A,54,C,k[t+40>>2]|0,n)|0;U=k[g>>2]|0;Ch(U,-1,ms(a,t)|0,-6);Bh(A,55,z,k[p+40>>2]|0,m)|0;t=k[g>>2]|0;Ch(t,-1,ms(a,p)|0,-6);t=k[u>>2]|0;if(t)i[t+(((k[v>>2]|0)+-1|0)*20|0)+3>>0]=1;t=Bh(A,108,C,0,0)|0;Bh(A,101,C,E,0)|0;Bh(A,110,z,E,1)|0;Bh(A,9,C,t+1|0,0)|0;q=k[v>>2]|0;if(q>>>0>t>>>0)k[(k[u>>2]|0)+(t*20|0)+8>>2]=q;k[(k[w>>2]|0)+88>>2]=q+-1;Bh(A,61,C,0,0)|0;Bh(A,61,z,0,0)|0;p=k[p+20>>2]|0}while((p|0)!=0)}if(o){p=k[A+32>>2]|0;if(p>>>0>o>>>0)k[(k[A+4>>2]|0)+(o*20|0)+8>>2]=p;k[(k[A+24>>2]|0)+88>>2]=p+-1}ds(a,D);ds(a,E);if(!F){g=0;h=0;break}Bh(A,24,0,0,0)|0;p=k[A+32>>2]|0;if(p>>>0>F>>>0)k[(k[A+4>>2]|0)+(F*20|0)+8>>2]=p;k[(k[A+24>>2]|0)+88>>2]=p+-1;Bh(A,61,z,0,0)|0;X=117}else X=117}else X=117;while(0);do if((X|0)==117){P=Jt(a,m,ga)|0;O=a+72|0;o=k[O>>2]|0;T=o+1|0;U=ga+38|0;F=j[U>>1]|0;E=F<<16>>16;p=T+E|0;k[O>>2]=p;if(!(i[ca>>0]&16))S=T;else{p=p+1|0;k[O>>2]=p;S=o+2|0}Q=S+1|0;R=(d|0)!=0;e:do if(R?(M=k[d+4>>2]|0,N=(M|0)>0,N):0){q=k[d>>2]|0;o=0;do{k[q+(o<<3)+4>>2]=-1;o=o+1|0}while((o|0)<(M|0));if(N){A=W<<24>>24!=0;z=ga+4|0;y=ga+36|0;o=1;x=0;q=-1;while(1){f:do if(F<<16>>16>0){w=k[d>>2]|0;n=k[w+(x<<3)>>2]|0;h=k[z>>2]|0;g=0;while(1){t=g+1|0;if(!(id(n,k[h+(g*24|0)>>2]|0)|0)){t=g;break}if((t|0)<(E|0))g=t;else break f}k[w+(x<<3)+4>>2]=t;o=(x|0)==(t|0)?o:0;q=(t|0)==(j[y>>1]|0)?x:q}else t=0;while(0);if((t|0)>=(E|0)){g=k[(k[d>>2]|0)+(x<<3)>>2]|0;if((ei(g)|0)==0|A)break;else{o=0;t=x}}else t=q;x=x+1|0;if((x|0)>=(M|0)){B=t;break e}else q=t}k[$>>2]=b;k[$+4>>2]=0;k[$+8>>2]=g;yh(a,33368,$);i[a+17>>0]=1;g=0;break a}else{o=1;B=-1}}else{o=1;B=-1}while(0);g:do if(!aa){k[L+0>>2]=0;k[L+4>>2]=0;k[L+8>>2]=0;k[L+12>>2]=0;k[L+16>>2]=0;k[L+20>>2]=0;k[L+24>>2]=0;k[L+28>>2]=0;k[L>>2]=a;if(f){n=k[f>>2]|0;if((n|0)>0){p=f+4|0;o=0;while(1){if(qs(L,k[(k[p>>2]|0)+(o*20|0)>>2]|0)|0){c=0;g=0;break a}o=o+1|0;if((o|0)>=(n|0)){p=0;o=-1;m=0;X=169;break}}}else{M=B;L=0;N=-1;w=0}}else{M=B;n=0;L=0;N=-1;w=0}}else{p=p+1|0;k[O>>2]=p;D=ia+32|0;q=k[D>>2]|0;Bh(ia,20,p,0,q+1|0)|0;i[I>>0]=13;E=I+4|0;k[E>>2]=p;i[I+1>>0]=0;C=I+8|0;k[C>>2]=o<<24>>24!=0?Q:0;k[I+12>>2]=j[U>>1];N=nr(a,c,I)|0;C=k[C>>2]|0;if(N){g=0;break a}if(i[K>>0]|0){g=0;break a}Bh(ia,21,p,0,0)|0;p=k[D>>2]|0;if(p>>>0>q>>>0)k[(k[ia+4>>2]|0)+(q*20|0)+8>>2]=p;F=ia+24|0;k[(k[F>>2]|0)+88>>2]=p+-1;n=k[k[c>>2]>>2]|0;h:do if(!ba){t=Tq(a)|0;o=k[t+32>>2]|0;i:do if(!(i[ca>>0]&16))q=0;else{p=k[a>>2]|0;q=k[ga+60>>2]|0;if(!q){q=0;break}while(1){if((k[q>>2]|0)==(p|0))break i;q=k[q+24>>2]|0;if(!q){q=0;break}}}while(0);if((o|0)<=1){p=C;o=0;m=0;X=169;break g}h=(i[(k[t>>2]|0)+65>>0]|0)==0;w=t+4|0;v=ga+32|0;u=ga+8|0;g=1;while(1){if(h)t=(k[w>>2]|0)+(g*20|0)|0;else t=29120;p=i[t>>0]|0;do if(p<<24>>24==54){if((k[t+12>>2]|0)!=(m|0))break;p=k[t+8>>2]|0;if((p|0)==(k[v>>2]|0))break h;t=k[u>>2]|0;if(!t)break;do{if((p|0)==(k[t+40>>2]|0))break h;t=k[t+20>>2]|0}while((t|0)!=0)}else if(p<<24>>24==-107?(k[t+16>>2]|0)==(q|0):0)break h;while(0);g=g+1|0;if((g|0)>=(o|0)){p=C;o=0;m=0;X=169;break g}}}while(0);q=a+68|0;t=k[q>>2]|0;k[q>>2]=t+1;q=a+19|0;o=i[q>>0]|0;do if(!(o<<24>>24)){p=(k[O>>2]|0)+1|0;k[O>>2]=p;X=159}else{N=o+-1<<24>>24;i[q>>0]=N;p=k[a+((N&255)<<2)+24>>2]|0;if(!(N<<24>>24)){X=159;break}N=o+-2<<24>>24;i[q>>0]=N;q=k[a+((N&255)<<2)+24>>2]|0}while(0);if((X|0)==159){q=(k[O>>2]|0)+1|0;k[O>>2]=q}Bh(ia,57,t,n,0)|0;m=Bh(ia,22,k[E>>2]|0,0,0)|0;Bh(ia,49,C,n,p)|0;Bh(ia,74,t,q,0)|0;Bh(ia,75,t,p,q)|0;Bh(ia,16,0,m,0)|0;o=k[D>>2]|0;if(o>>>0>m>>>0)k[(k[ia+4>>2]|0)+(m*20|0)+8>>2]=o;k[(k[F>>2]|0)+88>>2]=o+-1;ds(a,p);ds(a,q);p=C;o=t;m=1;X=169}while(0);if((X|0)==169)if(Y&(n|0)>0){M=j[ga+36>>1]|0;L=p;N=o;w=m}else{M=B;L=p;N=o;w=m}if((i[ca>>0]&16)!=0?(J=j[U>>1]|0,J<<16>>16>0):0){q=k[ga+4>>2]|0;o=J<<16>>16;m=0;p=0;do{p=((l[q+(m*24|0)+23>>0]|0)>>>1&1)+p|0;m=m+1|0}while((m|0)<(o|0))}else p=0;do if(Y&(n|0)!=0){p=(j[U>>1]|0)-p|0;if((n|0)==(p|0))break;k[$>>2]=b;k[$+4>>2]=0;k[$+8>>2]=p;k[$+12>>2]=n;yh(a,33400,$);g=0;break a}while(0);do if(R){p=k[d+4>>2]|0;if((n|0)==(p|0))break;k[$>>2]=n;k[$+4>>2]=p;yh(a,33456,$);g=0;break a}while(0);H=ja+24|0;if(!(k[H>>2]&128))h=0;else{h=(k[O>>2]|0)+1|0;k[O>>2]=h;Bh(ia,25,0,h,0)|0}do if(dada){Bt(ia,ga,F+1|0);q=j[U>>1]|0}Ct(a,ba,108,0,1,ga,F+-1-(q<<16>>16)|0,e,G);q=(j[U>>1]|0)+1|0;it(a,F,q);if((k[D>>2]|0)>=(q|0))break;k[D>>2]=q;k[E>>2]=F}while(0);do if(!da){if(i[ca>>0]&16)Bh(ia,28,0,T,0)|0;k:do if((M|0)<=-1)if(!((i[ca>>0]&16|W)<<24>>24)){Bh(ia,74,k[fa>>2]|0,S,P)|0;F=1;break}else{Bh(ia,28,0,S,0)|0;F=0;break}else{do if(J)Bh(ia,47,N,M,S)|0;else{if(aa){Bh(ia,33,M+L|0,S,0)|0;break}Wq(a,k[(k[f+4>>2]|0)+(M*20|0)>>2]|0,S);if(!(i[(k[ia>>2]|0)+65>>0]|0)){p=(k[ia+4>>2]|0)+(((k[ia+32>>2]|0)+-1|0)*20|0)|0;if(!p)break}else p=29120;if((i[p>>0]|0)!=28)break;if(i[ca>>0]&16)break;i[p>>0]=74;k[p+4>>2]=k[fa>>2];k[p+8>>2]=S;k[p+12>>2]=P;F=1;break k}while(0);if(!(i[ca>>0]&16)){p=Bh(ia,77,S,0,0)|0;Bh(ia,74,k[fa>>2]|0,S,P)|0;o=k[ia+32>>2]|0;if(o>>>0>p>>>0)k[(k[ia+4>>2]|0)+(p*20|0)+8>>2]=o;k[(k[ia+24>>2]|0)+88>>2]=o+-1}else Bh(ia,76,S,(k[ia+32>>2]|0)+2|0,0)|0;Bh(ia,38,S,0,0)|0;F=0}while(0);if((P|0)>0)Bh(k[a+8>>2]|0,136,P,S,0)|0;if((j[U>>1]|0)>0){D=ga+36|0;E=ga+4|0;z=(n|0)==0;y=d+4|0;x=(L|0)==(Q|0);n=f+4|0;o=a+23|0;p=$+20|0;q=$+4|0;B=$+24|0;C=0;t=0;do{A=C+Q|0;l:do if((C|0)==(j[D>>1]|0))Bh(ia,29,A,0,0)|0;else{m:do if(Y)if(!(i[(k[E>>2]|0)+(C*24|0)+23>>0]&2)){w=C-t|0;X=258;break}else{t=t+1|0;break}else{v=k[y>>2]|0;if((v|0)<=0){w=0;X=258;break}u=k[d>>2]|0;m=0;while(1){w=m+1|0;if((k[u+(m<<3)+4>>2]|0)==(C|0)){w=m;X=258;break m}if((w|0)<(v|0))m=w;else{X=258;break}}}while(0);do if((X|0)==258){X=0;if((w|0)<0|z)break;if(R?(w|0)>=(k[y>>2]|0):0)break;if(J){Bh(ia,47,N,w,A)|0;break l}if(!aa){Wq(a,k[(k[n>>2]|0)+(w*20|0)>>2]|0,A);break l}if(x)break l;Bh(ia,34,w+L|0,A,0)|0;break l}while(0);w=k[(k[E>>2]|0)+(C*24|0)+4>>2]|0;do if(i[o>>0]|0){k[$+0>>2]=0;k[$+4>>2]=0;k[$+8>>2]=0;k[$+12>>2]=0;k[$+16>>2]=0;k[$+20>>2]=0;i[p>>0]=1;k[$>>2]=78;k[q>>2]=79;k[B>>2]=0;ws($,w)|0;if(!(i[p>>0]|0))break;Lt(a,w,A,0);break l}while(0);Wq(a,w,A)}while(0);C=C+1|0}while((C|0)<(j[U>>1]|0))}if(!(i[ca>>0]&16)){Dt(a,ga,g,k[fa>>2]|0,k[ha>>2]|0,T,0,M>>>31&255^1,e&255,G,_);Et(a,ga,0,T,0,0);Gt(a,ga,k[fa>>2]|0,k[ha>>2]|0,T,g,0,F,(k[_>>2]|0)==0&1);break}p=k[ga+60>>2]|0;n:do if(!p)p=0;else while(1){if((k[p>>2]|0)==(ja|0))break n;p=k[p+24>>2]|0;if(!p){p=0;break}}while(0);vt(a,ga);Ch(ia,Bh(ia,15,1,(j[U>>1]|0)+2|0,T)|0,p,-10);o=k[ia+4>>2]|0;if(o)i[o+(((k[ia+32>>2]|0)+-1|0)*20|0)+3>>0]=(e|0)==10?2:e&255;$=k[Z>>2]|0;i[(($|0)==0?a:$)+21>>0]=1}while(0);if(k[H>>2]&128)Bh(ia,37,h,1,0)|0;if(ba)Ct(a,ba,108,0,2,ga,S+-1-(j[U>>1]|0)|0,e,G);p=ia+24|0;o=k[p>>2]|0;m=~G;do if((G|0)<0){n=k[o+112>>2]|0;if(!n)break;k[n+(m<<2)>>2]=k[ia+32>>2]}while(0);n=ia+32|0;k[o+88>>2]=(k[n>>2]|0)+-1;do if(J){Bh(ia,9,N,I,0)|0;n=k[n>>2]|0;if(n>>>0>K>>>0)k[(k[ia+4>>2]|0)+(K*20|0)+8>>2]=n;k[(k[p>>2]|0)+88>>2]=n+-1;Bh(ia,61,N,0,0)|0}else{if(!aa)break;Bh(ia,16,0,I,0)|0;n=k[n>>2]|0;if(n>>>0>K>>>0)k[(k[ia+4>>2]|0)+(K*20|0)+8>>2]=n;k[(k[p>>2]|0)+88>>2]=n+-1}while(0);if((i[ca>>0]&16)!=0|dab|0;c=c|0;var d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();e=g;f=k[a>>2]|0;if(!(Ln(a)|0)){do if(!b){b=f+20|0;d=k[b>>2]|0;if((d|0)>0){c=0;do{if((c|0)!=1){$t(a,c);d=k[b>>2]|0}c=c+1|0}while((c|0)<(d|0))}}else{if(k[c+4>>2]|0){d=jr(a,b,c,e)|0;if((d|0)<=-1)break;d=k[(k[f+16>>2]|0)+(d<<4)>>2]|0;b=$q(f,k[e>>2]|0)|0;if(!b)break;c=gq(f,b,d)|0;if(!c){d=xh(a,0,b,d)|0;if(d)au(a,d,0)}else au(a,k[c+12>>2]|0,c);rg(f,b);break}c=$q(f,b)|0;d=_h(f,c)|0;rg(f,c);if((d|0)>-1){$t(a,d);break}c=$q(f,b)|0;if(c){d=gq(f,c,0)|0;if(!d){d=xh(a,0,c,0)|0;if(d)au(a,d,0)}else au(a,k[d+12>>2]|0,d);rg(f,c)}}while(0);d=Tq(a)|0;if(d)Bh(d,144,0,0,0)|0}r=g;return}function Zr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=k[c>>2]|0;if(!e)d=c+4|0;else{h=k[a>>2]|0;f=k[h+20>>2]|0;h=k[h+16>>2]|0;a:do if((f|0)>0){g=0;while(1){d=g+1|0;if((k[h+(g<<4)+12>>2]|0)==(e|0)){d=g;break a}if((d|0)<(f|0))g=d;else break}}else d=0;while(0);d=h+(d<<4)|0}return xh(a,b,k[c+8>>2]|0,k[d>>2]|0)|0}function _r(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();d=e;if(b){c=b;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;if((c-b&1073741823)>>>0>6?(Kc(b,25568,7)|0)==0:0){k[d>>2]=b;yh(a,25576,d);c=1}else c=0}else c=0;r=e;return c|0}function $r(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();d=e;if(!b){k[d>>2]=c;a=zh(a,25992,d)|0}else{k[d>>2]=b;k[d+4>>2]=c;d=zh(a,26e3,d)|0;rg(a,b);a=d}r=e;return a|0}function as(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;d=k[a>>2]|0;e=k[(k[d+16>>2]|0)+28>>2]|0;if((k[b+68>>2]|0)!=(e|0)?(c=Fs(a,b)|0,(c|0)!=0):0){b=c;c=0;do{if((k[b+20>>2]|0)==(e|0))c=$r(d,c,k[b>>2]|0)|0;b=k[b+32>>2]|0}while((b|0)!=0);if(c){b=k[a>>2]|0;k[f>>2]=c;b=zh(b,25968,f)|0;rg(k[a>>2]|0,c);c=b}else c=0}else c=0;r=g;return c|0}function bs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();l=o;m=Tq(a)|0;if(m){d=k[a>>2]|0;g=k[b+68>>2]|0;a:do if(g){h=k[d+20>>2]|0;if((h|0)>0){e=k[d+16>>2]|0;f=0;while(1){d=f+1|0;if((k[e+(f<<4)+12>>2]|0)==(g|0))break a;if((d|0)<(h|0))f=d;else{f=d;break}}}else f=0}else f=-1e6;while(0);d=Fs(a,b)|0;if(d)do{e=k[a>>2]|0;i=k[d+20>>2]|0;b:do if(i){j=k[e+20>>2]|0;if((j|0)>0){h=k[e+16>>2]|0;g=0;while(1){e=g+1|0;if((k[h+(g<<4)+12>>2]|0)==(i|0)){e=g;break b}if((e|0)<(j|0))g=e;else break}}else e=0}else e=-1e6;while(0);j=k[d>>2]|0;Ch(m,Bh(m,126,e,0,0)|0,j,0);d=k[d+32>>2]|0}while((d|0)!=0);d=k[b>>2]|0;Ch(m,Bh(m,124,f,0,0)|0,d,0);d=k[a>>2]|0;k[l>>2]=c;d=zh(d,25952,l)|0;if((d|0)!=0?(Nr(m,f,d),n=as(a,b)|0,(n|0)!=0):0)Nr(m,1,n)}r=o;return}
13 function lh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,q=0,u=0,v=0,w=0,x=0,y=0.0,z=0,A=0.0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=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,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0,Yb=0,Zb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,hc=0,ic=0,jc=0,kc=0,lc=0,mc=0,nc=0,pc=0,sc=0,tc=0,vc=0,xc=0,zc=0,Ac=0,Bc=0,Cc=0,Dc=0,Ec=0,Fc=0,Gc=0,Hc=0,Ic=0,Jc=0,Kc=0,Lc=0,Mc=0,Nc=0,Oc=0,Pc=0,Qc=0,Rc=0,Sc=0,Tc=0,Uc=0,Vc=0,Wc=0,Xc=0,Yc=0,Zc=0,_c=0,ad=0,bd=0,cd=0,dd=0,ed=0,fd=0,jd=0,kd=0,nd=0,od=0,pd=0,qd=0,rd=0,sd=0,td=0,ud=0,vd=0,wd=0,xd=0,yd=0,zd=0,Ad=0,Bd=0,Cd=0,Dd=0,Ed=0,Fd=0,Gd=0,Hd=0,Id=0,Jd=0,Kd=0,Ld=0,Md=0,Nd=0,Od=0,Pd=0,Qd=0,Rd=0,Sd=0,Td=0,Ud=0,Vd=0,Wd=0,Xd=0,Yd=0,Zd=0,_d=0,$d=0,ae=0,be=0,ce=0,de=0,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0;ke=r;r=r+1040|0;if((r|0)>=(s|0))ka();ge=ke+400|0;Qc=ke+792|0;ad=ke+392|0;Yc=ke+788|0;Pd=ke+320|0;ed=ke+784|0;kd=ke+780|0;nd=ke+280|0;Kd=ke+680|0;Xc=ke+240|0;Nd=ke+200|0;Wc=ke+676|0;Tc=ke+672|0;Ld=ke+160|0;Rc=ke+644|0;qd=ke+152|0;Gd=ke+112|0;cd=ke+640|0;Id=ke+636|0;Uc=ke+632|0;rd=ke+628|0;xd=ke+624|0;td=ke+604|0;yd=ke+600|0;jd=ke+596|0;ud=ke+576|0;Pc=ke+840|0;zd=ke+572|0;Md=ke+104|0;Ad=ke+568|0;Zc=ke+564|0;_c=ke+96|0;Od=ke+88|0;Bd=ke+560|0;Cd=ke+556|0;Dd=ke+552|0;vd=ke+532|0;wd=ke+512|0;bd=ke+508|0;sd=ke+504|0;Vc=ke+488|0;Jd=ke+48|0;Sc=ke+456|0;Oc=ke+444|0;Hd=ke+8|0;pd=ke+440|0;Fd=ke+412|0;Ed=ke;tc=a+4|0;f=k[tc>>2]|0;he=k[a>>2]|0;Gc=i[he+62>>0]|0;Kc=a+8|0;v=k[Kc>>2]|0;je=he+32|0;c=je;d=k[c>>2]|0;c=k[c+4>>2]|0;ie=a+80|0;a:do if((k[ie>>2]|0)==7){u=he+65|0;v=a+44|0;e=d;b=0;g=0;d=0;ee=1317}else{k[ie>>2]=0;$d=a+136|0;k[$d>>2]=0;k[$d+4>>2]=0;$d=a+20|0;k[$d>>2]=0;k[he+452>>2]=0;zc=he+240|0;b:do if(!(k[zc>>2]|0)){Zd=he+292|0;if(k[Zd>>2]|0){e=k[a+124>>2]|0;b=he+300|0;u=k[b>>2]|0;if(!e)sc=b;else{sc=b;u=(e>>>0)%(u>>>0)|0}}else{sc=he+300|0;u=0}de=a+76|0;ce=he+65|0;Vd=he+296|0;pb=a+176|0;qb=a+184|0;rb=a+92|0;sb=he+80|0;tb=he+84|0;ub=Gc&255;vb=Gc<<24>>24==1;wb=he+88|0;xb=a+60|0;Wd=a+144|0;be=a+86|0;fe=a+44|0;yb=a+12|0;zb=Rc+4|0;Ab=Rc+16|0;Bb=Rc+12|0;Cb=Rc+25|0;Db=Rc+20|0;Eb=a+200|0;Fb=a+56|0;Xd=a+72|0;Gb=Gd+16|0;Hb=Gd+8|0;Ib=Gd+24|0;Jb=a+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=a+88|0;Tb=a+104|0;Ub=a+152|0;Vb=a+160|0;Wb=he+152|0;Xb=he+64|0;Yb=td+4|0;Zb=td+6|0;_b=td+8|0;$b=ud+4|0;ac=ud+8|0;bc=he+212|0;cc=he+208|0;dc=a+116|0;ec=vd+4|0;hc=vd+6|0;ic=vd+8|0;jc=Xc+8|0;kc=Xc+32|0;lc=Xc+24|0;mc=Xc+16|0;nc=Xc+12|0;pc=wd+4|0;T=wd+6|0;U=wd+8|0;X=nd+8|0;Y=nd+32|0;Z=nd+24|0;_=nd+12|0;$=nd+16|0;aa=he+164|0;ba=Vc+8|0;ca=Vc+4|0;da=he+145|0;ea=Vc+12|0;fa=Pd+4|0;ja=Pd+12|0;la=Pd+16|0;ma=Pd+20|0;na=Pd+24|0;oa=Pd+28|0;pa=Pd+8|0;qa=Pd+40|0;ra=Pd+44|0;sa=Pd+48|0;ta=Pd+52|0;ua=Pd+56|0;va=Pd+60|0;wa=Pd+64|0;xa=Pd+65|0;ya=he+128|0;za=a+28|0;Aa=a+36|0;Ba=a+32|0;Ca=a+196|0;Da]|0,w,k[w+72>>2]|0)|0;if(!w){x=0;break}Gg(k[w+68>>2]|0);x=0;break}F=k[z>>2]|0;k[F+4>>2]=k[J>>2];F=k[(k[F+12>>2]|0)+56>>2]|0;F=l[F+53>>0]<<16|l[F+52>>0]<<24|l[F+54>>0]<<8|l[F+55>>0];z=k[ge>>2]|0;if((F|0)==(E|0)){n=bn(k[z+52>>2]|0,z,k[z+72>>2]|0)|0;if(z)Gg(k[z+68>>2]|0);if(!n)x=0;else{x=0;break}}else{if(z)Gg(k[z+68>>2]|0);n=il(o,F,Pd,0)|0;if(n){x=0;break}z=k[Pd>>2]|0;n=cn(o,z,1,0,E,0)|0;if(z)Gg(k[z+68>>2]|0);if(n){x=0;break}k[Pd>>2]=0;n=il(o,F,Pd,0)|0;z=k[Pd>>2]|0;if(n){if(!z){x=0;break}}else n=bn(k[z+52>>2]|0,z,k[z+72>>2]|0)|0;Gg(k[z+68>>2]|0);if(!n)x=F;else{x=0;break}}D=((k[2514]|0)>>>0)/((k[o+32>>2]|0)>>>0)|0;C=D+1|0;E=o+36|0;while(1){z=F+-1|0;if((z|0)==(C|0)){F=z;continue}if(z>>>0<2)B=0;else{B=F+-3|0;B=B-((B>>>0)%(((((k[E>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;B=((B+1|0)==(D|0)?3:2)+B|0}if((B|0)==(z|0))F=z;else break}n=Ig(J,4,z)|0}else x=0}else{n=262;x=0}while(0);j[M>>1]=4;Q=I;k[Q>>2]=x;k[Q+4>>2]=((x|0)<0)<<31>>31;if((n|0)==0&(x|0)!=0){b=d;J=K;z=N;d=e;n=I;e=g;ee=865;break d}else{z=I;P=g}break}case 118:{k[bd>>2]=0;b=f+(g*20|0)+12|0;n=an(k[(k[Td>>2]|0)+(k[f+(g*20|0)+8>>2]<<4)+4>>2]|0,k[f+(g*20|0)+4>>2]|0,(k[b>>2]|0)!=0?bd:0)|0;b=k[b>>2]|0;if((b|0)!=0?(Fc=k[bd>>2]|0,k[rb>>2]=(k[rb>>2]|0)+Fc,(b|0)>0):0){z=v+(b*40|0)|0;P=z;P=ow(k[P>>2]|0,k[P+4>>2]|0,Fc|0,((Fc|0)<0)<<31>>31|0)|0;k[z>>2]=P;k[z+4>>2]=L;z=I;P=g}else{z=I;P=g}break}case 121:case 120:{k[sd>>2]=0;n=Fm(k[(k[Td>>2]|0)+(k[f+(g*20|0)+4>>2]<<4)+4>>2]|0,sd,F<<24>>24==121?1:2)|0;P=k[sd>>2]|0;z=I;k[z>>2]=P;k[z+4>>2]=((P|0)<0)<<31>>31;z=I;P=g;break}case 119:{b=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;n=k[b+56>>2]|0;if(n){b=d;d=e;F=I;e=g;ee=878;break d}n=k[b>>2]|0;z=I;P=g;n=an(k[n>>2]|0,k[n+60>>2]|0,0)|0;break}case 123:{z=I;P=g;n=fn(he,k[f+(g*20|0)+4>>2]|0)|0;break}case 124:{b=d;d=e;n=I;e=g;ee=886;break d}case 122:{b=d;d=e;F=I;e=g;ee=881;break d}case 126:{b=d;d=e;n=I;e=g;ee=895;break d}case 125:{b=d;d=e;F=I;e=g;ee=887;break d}case 127:{b=d;d=e;n=I;ee=903;break d}case 128:{b=d;d=e;F=I;ee=947;break d}case 129:{o=k[f+(g*20|0)+4>>2]|0;n=v+(o*40|0)|0;o=v+(o*40|0)+8|0;b=j[o>>1]|0;do if(b&32){B=k[n>>2]|0;b=B+26|0;w=j[b>>1]|0;if(!(w&2)){if(!(w&1)){w=B+8|0;Q=pn(k[w>>2]|0)|0;k[w>>2]=Q;w=j[b>>1]|0}j[b>>1]=w&65535|2}z=B+8|0;x=k[z>>2]|0;if(!x){b=j[o>>1]|0;break}o=x;w=k[o>>2]|0;o=k[o+4>>2]|0;Q=k[x+8>>2]|0;k[z>>2]=Q;if(!Q)cl(B);n=k[f+(g*20|0)+12>>2]|0;b=v+(n*40|0)|0;n=v+(n*40|0)+8|0;if(!(j[n>>1]&9312)){ee=b;k[ee>>2]=w;k[ee+4>>2]=o;j[n>>1]=4;n=0;ee=19;break e}else{ch(b,w,o);n=0;ee=19;break e}}while(0);if(!(b&9312))j[o>>1]=1;else Ag(n);g=(k[f+(g*20|0)+8>>2]|0)+-1|0;n=0;ee=19;break}case 130:{b=d;d=e;n=I;ee=966;break d}case 131:{b=d;d=e;n=I;e=g;ee=993;break d}case 132:{b=d;d=e;n=I;e=g;ee=1009;break d}case 134:{b=d;d=e;F=I;e=g;ee=1010;break d}case 135:{b=d;d=e;n=I;e=g;ee=1015;break d}case 136:{b=d;d=e;e=g;ee=1022;break d}case 137:{b=d;d=e;n=I;e=g;ee=1028;break d}case 138:{b=d;d=e;n=I;e=g;ee=1030;break d}case 139:{b=d;d=e;F=I;e=g;ee=1032;break d}case 140:{b=d;d=e;n=I;e=g;ee=1034;break d}case 141:{b=d;d=e;n=I;e=g;ee=1036;break d}case 10:{Q=i[f+(g*20|0)+3>>0]|0;w=Q&255;b=k[yb>>2]|0;if(Q<<24>>24){n=0;o=v+((k[f+(g*20|0)+8>>2]|0)*40|0)|0;while(1){k[b+(n<<2)>>2]=o;n=n+1|0;if((n|0)>=(w|0))break;else o=o+40|0}}Q=k[f+(g*20|0)+16>>2]|0;k[Dada>>0]=1;k[ea>>2]=0;g=Ve(he,n,22,Vc,0)|0;g=(g|0)==0?k[ea>>2]|0:g;rg(he,n);i[da]=f;kd=k[a+168>>2]|0;nd=k[a+44>>2]|0;k[ge>>2]=g;k[ge+4>>2]=kd;k[ge+8>>2]=nd;gd(f,42256,ge);Wl(a)|0;if((f|0)==3082)i[he+65>>0]=1;if(!(d<<24>>24)){d=b;b=1}else{Am(he,(d&255)+-1|0);d=b;b=1}}nd=je;k[nd>>2]=e;k[nd+4>>2]=c;nd=a+124|0;k[nd>>2]=(k[nd>>2]|0)+d;r=ke;return b|0}
14 function Jv(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=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=a+20|0;r=a+14|0;b=i[r>>0]|0;w=a+13|0;c=i[w>>0]|0;a:do if((b&255)>(c&255))b=0;else{y=a+4|0;z=a+16|0;s=a+8|0;t=a+12|0;u=a+24|0;v=a+28|0;e=b&255;f=k[y>>2]|0;d=k[A>>2]|0;b:while(1){q=k[a+(e+-2<<2)+24>>2]|0;p=k[a+(e+-1<<2)+24>>2]|0;if(f){while(1){o=f+12|0;if((d|0)<(k[o>>2]|0)){c=d;b=(k[f+20>>2]|0)+(d*48|0)|0;while(1){do if((k[b+8>>2]|0)==(q|0)?(k[b+12>>2]|0)==(p|0):0){if((l[r>>0]|0)>=3?(k[(k[b>>2]|0)+4>>2]&1|0)!=0:0)break;n=b+18|0;d=j[n>>1]|0;if((d&1024)!=0?(x=i[w>>0]|0,(x&255)<22):0){e=k[(k[b>>2]|0)+16>>2]|0;c:do if(!e)e=0;else while(1){g=k[e+4>>2]|0;if(!(g&4096))break c;if(!(g&262144))e=e+12|0;else e=k[(k[e+20>>2]|0)+4>>2]|0;e=k[e>>2]|0;if(!e){e=0;break}}while(0);d:do if(!(x<<24>>24)){m=0;g=0}else{h=k[e+28>>2]|0;m=e+32|0;g=0;while(1){if((k[a+(g<<2)+24>>2]|0)==(h|0)?(k[a+((g|1)<<2)+24>>2]|0)==(j[m>>1]|0):0){m=x;break d}g=g+2|0;if((g|0)>=(x&255|0)){m=x;break}}}while(0);if((g|0)==(m&255|0)){k[a+(g<<2)+24>>2]=k[e+28>>2];k[a+((g|1)<<2)+24>>2]=j[e+32>>1];i[w>>0]=(l[w>>0]|0)+2}}e=d&65535;if(e&k[z>>2]){if((k[s>>2]|0)!=0&(e&128|0)==0){h=k[k[f>>2]>>2]|0;g=k[b>>2]|0;e=i[t>>0]|0;d=(sv(g)|0)<<24>>24;if((d|0)==66){if(e<<24>>24!=66)break}else if((d|0)!=65?e<<24>>24<=66:0)break;d=Tu(h,k[g+12>>2]|0,k[g+16>>2]|0)|0;if(!d)d=k[(k[h>>2]|0)+8>>2]|0;if(id(k[d>>2]|0,k[s>>2]|0)|0)break;d=j[n>>1]|0}if(!(d&2))break b;d=k[(k[b>>2]|0)+16>>2]|0;if((i[d>>0]|0)!=-102)break b;if((k[d+28>>2]|0)!=(k[u>>2]|0))break b;if((j[d+32>>1]|0)!=(k[v>>2]|0))break b}}while(0);c=c+1|0;if((c|0)>=(k[o>>2]|0))break;else b=b+48|0}c=k[y>>2]|0}else c=f;f=k[c+4>>2]|0;k[y>>2]=f;if(!f)break;else d=0}b=i[r>>0]|0;c=i[w>>0]|0}f=k[a>>2]|0;k[y>>2]=f;d=(b&255)+2|0;b=d&255;i[r>>0]=b;if((b&255)>(c&255)){b=0;break a}else{e=d&255;d=0}}k[A>>2]=c+1}while(0);return b|0}function Kv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0;c=k[a>>2]|0;h=k[k[c>>2]>>2]|0;a=k[a+16>>2]|0;a:do if(!a){c=c+16|0;e=k[c>>2]|0;g=b+36|0;if((k[g>>2]&512|0)!=0&(e|0)!=0){a=b+20|0;f=b+22|0;d=i[b+16>>0]|0;do{do if((i[e+16>>0]|0)==d<<24>>24?(k[e+36>>2]&512|0)!=0:0){if(Yv(e,b)|0){j[a>>1]=j[e+20>>1]|0;j[f>>1]=(m[e+22>>1]|0)+65535;break}if(Yv(b,e)|0){j[a>>1]=j[e+20>>1]|0;j[f>>1]=(m[e+22>>1]|0)+1}}while(0);e=k[e+52>>2]|0}while((e|0)!=0)}a=Zv(c,b)|0;if(a){c=k[a>>2]|0;b:do if(c){a=c+52|0;if(k[a>>2]|0)do{a=Zv(a,b)|0;if(!a)break b;d=k[a>>2]|0;if(!d)break b;k[a>>2]=k[d+52>>2];Ou(h,d);rg(h,d)}while((k[a>>2]|0)!=0)}else{c=rh(h,72,0)|0;k[a>>2]=c;if(!c){a=7;break a}k[c+48>>2]=c+56;j[c+40>>1]=0;j[c+44>>1]=3;k[c+36>>2]=0;k[c+52>>2]=0}while(0);Qv(h,c);do if(!(Su(h,c,m[b+40>>1]|0)|0)){d=c+0|0;a=b+0|0;e=d+44|0;do{k[d>>2]=k[a>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));pw(k[c+48>>2]|0,k[b+48>>2]|0,m[c+40>>1]<<2|0)|0;a=k[g>>2]|0;if(a&1024){i[b+28>>0]=0;break}if(a&16384)k[b+28>>2]=0}else{a=c+24|0;k[a+0>>2]=0;k[a+4>>2]=0;k[a+8>>2]=0}while(0);if(((k[c+36>>2]&1024|0)==0?(l=c+28|0,n=k[l>>2]|0,(n|0)!=0):0)?(k[n+40>>2]|0)==0:0){k[l>>2]=0;a=0}else a=0}else a=0}else{c=b;Pv(a,k[c>>2]|0,k[c+4>>2]|0,j[b+20>>1]|0,j[b+22>>1]|0);a=0}while(0);return a|0}function Lv(a,b){a=a|0;b=b|0;var c=0,d=0;c=a<<16>>16;d=b<<16>>16;do if(a<<16>>16<b<<16>>16)if((d|0)<=(c+49|0))if((d|0)>(c+31|0)){a=d+1&65535;break}else{a=(l[34032+(d-c)>>0]|0)+d&65535;break}else a=b;else if((c|0)<=(d+49|0))if((c|0)>(d+31|0)){a=c+1&65535;break}else{a=(l[34032+(c-d)>>0]|0)+c&65535;break}while(0);return a|0}function Mv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;do if(!(Hu(a,b,c)|0))d=1;else{d=i[b>>0]|0;if(d<<24>>24==71){if(Mv(a,k[b+12>>2]|0,c)|0){d=1;break}if(Mv(a,k[b+16>>2]|0,c)|0){d=1;break}if(d<<24>>24==77)e=6}else if(d<<24>>24==77)e=6;if(((e|0)==6?(Hu(k[a+12>>2]|0,k[b+12>>2]|0,c)|0)==0:0)?(d=i[a>>0]|0,!(d<<24>>24==73|d<<24>>24==76)):0){d=1;break}d=0}while(0);return d|0}function Nv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+16|0;if((r|0)>=(s|0))ka();u=v;q=b;t=b+8|0;d=t;p=~(k[d>>2]|k[q>>2]);q=~(k[d+4>>2]|k[q+4>>2]);d=k[a+12>>2]|0;n=a+20|0;a:do if((d|0)>0){o=b+40|0;a=b+22|0;l=b+48|0;b=0;i=k[n>>2]|0;while(1){if(j[i+20>>1]&2)break a;h=i+40|0;g=k[h>>2]|0;h=k[h+4>>2]|0;f=t;b:do if(((k[f>>2]&g|0)!=0?1:(k[f+4>>2]&h|0)!=0)&((g&p|0)==0&(h&q|0)==0)){e=j[o>>1]|0;c:do if(e<<16>>16){h=k[l>>2]|0;g=e&65535;while(1){e=g;g=g+-1|0;f=k[h+(g<<2)>>2]|0;if(f){if((f|0)==(i|0))break;f=k[f+4>>2]|0;if((f|0)>-1?((k[n>>2]|0)+(f*48|0)|0)==(i|0):0)break}if((g|0)<=0)break c}if((e|0)>=1)break b}while(0);e=j[i+16>>1]|0;if(e<<16>>16<1){j[a>>1]=(m[a>>1]|0)+(e&65535);break}j[a>>1]=(j[a>>1]|0)+-1<<16>>16;if(j[i+18>>1]&2){g=(Rs(k[(k[i>>2]|0)+16>>2]|0,u)|0)!=0;h=k[u>>2]|0;h=g&(h|0)>-2&(h|0)<2?10:20;k[u>>2]=h;b=(b<<16>>16|0)<(h|0)?h&65535:b}}while(0);d=d+-1|0;if((d|0)<=0)break;else i=i+48|0}}else{a=b+22|0;b=0}while(0);b=(c<<16>>16)-(b<<16>>16)|0;if((j[a>>1]|0)>(b|0))j[a>>1]=b;r=v;return}function Ov(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,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0;da=r;r=r+112|0;if((r|0)>=(s|0))ka();O=da;S=k[k[k[a>>2]>>2]>>2]|0;ba=k[a+12>>2]|0;if(!(i[S+65>>0]|0)){ca=ba+36|0;if(!(k[ca>>2]&32))if((k[c+40>>2]|0)<1)e=63;else e=(i[b+36>>0]&8)<<4^191;else e=24;T=c+51|0;$=ba+24|0;f=j[(k[c+4>>2]|0)+(m[$>>1]<<1)>>1]|0;K=f<<16>>16;L=a+4|0;e=Iv(O,k[L>>2]|0,k[b+40>>2]|0,K,(i[T>>0]&4)==0?e:e&131,c)|0;U=j[$>>1]|0;V=ba+42|0;Q=j[V>>1]|0;W=ba+40|0;R=j[W>>1]|0;X=k[ca>>2]|0;N=ba;M=k[N>>2]|0;N=k[N+4>>2]|0;Y=ba+22|0;Z=j[Y>>1]|0;j[ba+18>>1]=0;_=c+8|0;A=j[k[_>>2]>>1]|0;if(A<<16>>16<11)z=0;else{z=A<<16>>16;z=((ks(z,((z|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!e)e=0;else{B=f<<16>>16<0;C=b+16|0;D=ba+8|0;E=(R&65535)+1|0;F=ba+48|0;G=d<<16>>16==0;H=c+46|0;t=f<<16>>16>-1;u=c+50|0;v=c+44|0;w=ba+20|0;x=d<<16>>16;y=c+48|0;l=0;p=e;n=0;while(1){f=j[p+18>>1]|0;o=f&65535;if(f<<16>>16==128)if(!B?(i[(k[(k[C>>2]|0)+4>>2]|0)+(K*24|0)+20>>0]|0)==0:0)P=12;else{g=l;f=n;e=0}else P=12;if((P|0)==12){P=0;g=p+32|0;q=g;h=D;if(((k[h>>2]&k[q>>2]|0)==0?(k[h+4>>2]&k[q+4>>2]|0)==0:0)?(I=p+20|0,!((j[I>>1]&256)!=0&f<<16>>16==16)):0){k[ca>>2]=X;j[$>>1]=U;j[W>>1]=R;if(Su(S,ba,E)|0){e=0;break a}e=j[W>>1]|0;h=e+1<<16>>16;j[W>>1]=h;k[(k[F>>2]|0)+((e&65535)<<2)>>2]=p;e=g;f=D;g=(k[e+4>>2]|N)&~k[f+4>>2];q=ba;k[q>>2]=(k[e>>2]|M)&~k[f>>2];k[q+4>>2]=g;b:do if(!(o&1)){if(o&2){e=k[ca>>2]|0;f=e|1;k[ca>>2]=f;do if(!B){if(!G){q=0;break b}if((m[$>>1]|0)!=((m[H>>1]|0)+-1|0)){q=0;break b}if(!t)break;if(i[u>>0]|0)break;f=e|65537;k[ca>>2]=f;q=0;break b}while(0);f=e|4097;k[ca>>2]=f;q=0;break}if(o&128){f=k[ca>>2]|8;k[ca>>2]=f;q=0;break}e=k[ca>>2]|0;if(!(o&36)){f=e|18;k[ca>>2]=f;if(!(e&32)){q=0;l=0;n=p;break}q=0;l=k[(k[F>>2]|0)+((h&65535)+-2<<2)>>2]|0;n=p;break}f=e|34;k[ca>>2]=f;if(!(j[I>>1]&256)){q=0;l=p;n=0}else{e=p+48|0;if(Su(S,ba,(h&65535)+1|0)|0){e=0;break a}f=j[W>>1]|0;j[W>>1]=f+1<<16>>16;k[(k[F>>2]|0)+((f&65535)<<2)>>2]=e;f=k[ca>>2]|16;k[ca>>2]=f;q=0;l=p;n=e}}else{e=k[p>>2]|0;f=k[ca>>2]|4;k[ca>>2]=f;if(!(k[e+4>>2]&2048)){e=k[e+20>>2]|0;if((e|0)!=0?(J=k[e>>2]|0,(J|0)!=0):0)q=(ks(J,((J|0)<0)<<31>>31)|0)<<16>>16;else q=0}else q=46}while(0);do if(!(f&2)){e=(j[$>>1]|0)+1<<16>>16;j[$>>1]=e;e=e&65535;g=j[p+16>>1]|0;if(g<<16>>16<1&t){h=(g&65535)-q+(m[Y>>1]|0)&65535;j[Y>>1]=h;break}g=k[_>>2]|0;g=(m[Y>>1]|0)+((m[g+(e<<1)>>1]|0)-(m[g+(e+-1<<1)>>1]|0))|0;e=g&65535;j[Y>>1]=e;if(!(o&128))h=e;else{h=g+10&65535;j[Y>>1]=h}}else{e=j[Y>>1]|0;h=e<<16>>16;do if(l){g=j[l+16>>1]|0;if(g<<16>>16<1){e=(g&65535)+(e&65535)&65535;break}else{e=(e&65535)+65516&65535;break}}while(0);do if(n){g=j[n+16>>1]|0;if(g<<16>>16<1){e=(g&65535)+(e&65535)&65535;break}else{e=(e&65535)+65516&65535;break}}while(0);g=(l|0)!=0;do if(g?(j[l+16>>1]|0)>0&(n|0)!=0:0){if((j[n+16>>1]|0)<=0)break;e=(e&65535)+65516&65535}while(0);h=(((n|0)!=0)<<31>>31)+(g<<31>>31)+h|0;p=e<<16>>16<10?10:e<<16>>16;h=((p|0)<(h|0)?p:h)&65535;j[Y>>1]=h}while(0);e=h&65535;g=Lv(z,e+1+(((j[v>>1]|0)*15|0)/(j[(k[C>>2]|0)+42>>1]|0)|0)&65535)|0;if(!(f&320))g=Lv(g,e+16&65535)|0;f=q+x|0;j[w>>1]=(g&65535)+f;j[Y>>1]=e+f;Nv(k[L>>2]|0,ba,A);e=Kv(a,ba)|0;q=k[ca>>2]|0;j[Y>>1]=(q&2|0)==0?h:Z;if((q&16|0)==0?(m[$>>1]|0)<(m[y>>1]|0):0)Ov(a,b,c,f&65535)|0;j[Y>>1]=Z;g=l;f=n}else{g=l;f=n;e=0}}p=Jv(O)|0;if(!((e|0)==0&(p|0)!=0))break;else{l=g;n=f}}}while(0);f=ba;k[f>>2]=M;k[f+4>>2]=N;j[$>>1]=U;j[V>>1]=Q;k[ca>>2]=X;j[Y>>1]=Z;j[W>>1]=R;f=U&65535;if(((U<<16>>16==Q<<16>>16?(aa=f+1|0,aa>>>0<(m[c+46>>1]|0)>>>0):0)?(i[T>>0]&64)==0:0)?(j[(k[_>>2]|0)+(aa<<1)>>1]|0)>41:0){e=Su(S,ba,(R&65535)+1|0)|0;if(!e){j[$>>1]=(j[$>>1]|0)+1<<16>>16;j[V>>1]=(j[V>>1]|0)+1<<16>>16;e=j[W>>1]|0;j[W>>1]=e+1<<16>>16;k[(k[ba+48>>2]|0)+((e&65535)<<2)>>2]=0;k[ca>>2]=k[ca>>2]|32768;e=k[_>>2]|0;e=(m[e+(f<<1)>>1]|0)-(m[e+(aa<<1)>>1]|0)|0;j[Y>>1]=(m[Y>>1]|0)-e;Ov(a,b,c,(((e<<16)+327680|0)>>>16)+(d&65535)&65535)|0;j[Y>>1]=Z;j[$>>1]=U;j[V>>1]=U;k[ca>>2]=X;e=0}}}else e=7;r=da;return e|0}function Pv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,l=0,m=0,n=0,o=0,p=0;l=j[a>>1]|0;f=a+8|0;a:do if(l<<16>>16){h=l;i=f;while(1){g=j[i+8>>1]|0;if(g<<16>>16>=d<<16>>16?(p=i,(k[p>>2]&b|0)==(b|0)?(k[p+4>>2]&c|0)==(c|0):0):0){n=i;o=14;break a}if(g<<16>>16<=d<<16>>16?(g=i,p=k[g>>2]|0,g=k[g+4>>2]|0,(p&b|0)==(p|0)&(g&c|0)==(g|0)):0)break a;h=h+-1<<16>>16;if(!(h<<16>>16))break;else i=i+16|0}if((l&65535)>=3){g=j[a+16>>1]|0;i=1;do{if(g<<16>>16>(j[a+(i<<4)+16>>1]|0))f=a+(i<<4)+8|0;i=i+1|0;g=j[f+8>>1]|0}while((i&65535)<(l&65535));if(g<<16>>16>d<<16>>16){n=f;o=14}}else o=9}else o=9;while(0);if((o|0)==9){n=l&65535;j[a>>1]=l+1<<16>>16;j[a+(n<<4)+18>>1]=e;n=a+(n<<4)+8|0;o=14}if((o|0)==14?(m=n,k[m>>2]=b,k[m+4>>2]=c,j[n+8>>1]=d,m=n+10|0,(j[m>>1]|0)>e<<16>>16):0)j[m>>1]=e;return}function Qv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=k[b+36>>2]|0;do if(c&17408){if((c&1024|0)!=0?(f=b+28|0,(i[f>>0]|0)!=0):0){c=b+32|0;$c(k[c>>2]|0);i[f>>0]=0;k[c>>2]=0;break}if((c&16384|0)!=0?(d=b+28|0,e=k[d>>2]|0,(e|0)!=0):0){rg(a,k[e+16>>2]|0);rg(a,k[d>>2]|0);k[d>>2]=0}}while(0);return}function Rv(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,n=0,o=0,p=0,q=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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0;qa=r;r=r+32|0;if((r|0)>=(s|0))ka();la=qa;n=k[k[a>>2]>>2]|0;ja=e&65535;if(e<<16>>16!=0?(j[n+60>>1]&128)!=0:0)h=0;else ma=3;a:do if((ma|0)==3){pa=k[b>>2]|0;h=pa&65535;if(h>>>0<=63){na=nw(1,0,h|0)|0;na=ow(na|0,L|0,-1,-1)|0;oa=L;b:do if((na|0)==0&(oa|0)==0){b=0;c=0;n=1}else{da=c+24|0;ea=a+4|0;fa=(h|0)==0;ba=b+4|0;ca=(d&768)==0;aa=n+8|0;T=(d&256)==0;U=a+68|0;V=la+20|0;W=la+4|0;Z=la+24|0;_=a+328|0;X=0;Y=0;b=0;c=0;d=0;o=0;$=0;n=1;e=0;while(1){if(($|0)>0){R=e+8|0;S=k[R>>2]|d;o=k[R+4>>2]|o}else S=d;if(($|0)<(ja|0))e=k[(k[daDa(17)}function tx(a,b){a=a|0;b=b|0;Ea(18);return 0}function ux(a,b){a=a|0;b=b|0;return jb(a|0,b|0)|0}function vx(a,b){a=a|0;b=b|0;return $b(a|0,b|0)|0}function wx(a,b){a=a|0;b=b|0;return Nb(a|0,b|0)|0}function xx(a,b){a=a|0;b=b|0;return kb(a|0,b|0)|0}function yx(a,b){a=a|0;b=b|0;return Eb(a|0,b|0)|0}function zx(a,b){a=a|0;b=b|0;return Cb(a|0,b|0)|0}function Ax(a,b){a=a|0;b=b|0;return Fb(a|0,b|0)|0}function Bx(a,b){a=a|0;b=b|0;return Yb(a|0,b|0)|0}function Cx(a,b,c){a=a|0;b=b|0;c=+c;Fa(19);return 0}function Dx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;Ga(20);return 0}