Home | History | Annotate | Download | only in poppler

Lines Matching refs:FW

7313 function Kd(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+7&-8;return b|0}function Ld(){return i|0}function Md(a){a=a|0;i=a}function Nd(a,b){a=a|0;b=b|0;if((s|0)==0){s=a;t=b}}function Od(b){b=b|0;a[k]=a[b];a[k+1|0]=a[b+1|0];a[k+2|0]=a[b+2|0];a[k+3|0]=a[b+3|0]}function Pd(b){b=b|0;a[k]=a[b];a[k+1|0]=a[b+1|0];a[k+2|0]=a[b+2|0];a[k+3|0]=a[b+3|0];a[k+4|0]=a[b+4|0];a[k+5|0]=a[b+5|0];a[k+6|0]=a[b+6|0];a[k+7|0]=a[b+7|0]}function Qd(a){a=a|0;H=a}function Rd(a){a=a|0;I=a}function Sd(a){a=a|0;J=a}function Td(a){a=a|0;K=a}function Ud(a){a=a|0;L=a}function Vd(a){a=a|0;M=a}function Wd(a){a=a|0;N=a}function Xd(a){a=a|0;O=a}function Yd(a){a=a|0;P=a}function Zd(a){a=a|0;Q=a}function _d(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0.0,y=0.0;e=i;j=i;i=i+24|0;g=j;v=i;i=i+8|0;u=v;r=i;i=i+8|0;q=r;t=i;i=i+8|0;s=t;l=i;i=i+8|0;f=i;i=i+512|0;m=i;i=i+8|0;n=m;o=i;i=i+8|0;c[l>>2]=b;b=ae(8,l,d)|0;if((a[608]&1)!=0){b=(a[616]&1)==0&b}w=+h[78];do{if(w!=0.0){if(!(+h[79]==150.0|+h[80]==150.0)){break}h[79]=w;h[80]=w}}while(0);do{if(b){b=c[l>>2]|0;if((b|0)>3){break}if((a[648]&1)!=0){break}if((a[656]&1)!=0){break}do{if((b|0)>1){q=FW(32)|0;fe(q,c[d+4>>2]|0);if((c[l>>2]|0)!=3){l=q;d=0;break}l=q;d=c[d+8>>2]|0}else{l=0;d=0}}while(0);q=FW(232)|0;Ue(q,0);c[834]=q;do{if((a[872]|0)!=0){if(Af(q,872)|0){break}Rb(888,38,1,c[p>>2]|0)|0}}while(0);do{if((a[928]|0)!=0){if(Bf(c[834]|0,928)|0){break}Rb(944,32,1,c[p>>2]|0)|0}}while(0);do{if((a[984]|0)!=0){if(Cf(c[834]|0,984)|0){break}Rb(1e3,38,1,c[p>>2]|0)|0}}while(0);if((a[1040]&1)!=0){Df(c[834]|0,1)}if((a[1048]|0)==0){q=0}else{q=FW(32)|0;fe(q,1048)}if((a[1088]|0)==0){r=0}else{r=FW(32)|0;fe(r,1088)}if((l|0)==0){l=FW(32)|0;fe(l,1128)}if((te(l,1136)|0)==0){if((l|0)!=0){ke(l);HW(l)}s=FW(32)|0;fe(s,1128)}else{s=l}eg(o,0);l=gg(o,s,q,r,0)|0;fg(o);if((s|0)!=0){ke(s);HW(s)}if((r|0)!=0){ke(r);HW(r)}if((q|0)!=0){ke(q);HW(q)}do{if((a[l+52|0]&1)==0){f=1}else{if((c[286]|0)<1){c[286]=1}o=c[288]|0;if((o|0)<1){k=50}else{if((o|0)>(_f(l)|0)){k=50}}if((k|0)==50){c[288]=_f(l)|0}a[m]=-1;a[n+1|0]=-1;a[n+2|0]=-1;m=FWFW(12)|0;Ef(d);c[b>>2]=d;d=255;while(1){f=c[134928+(d<<2)>>2]|0;if((f|0)!=0){Gf(c[b>>2]|0,f,d)}if((d|0)>0){d=d+ -1|0}else{break}}c[b+4>>2]=Co(Bo()|0,3360)|0;j=FW(12)|0;Ef(j);f=b+8|0;c[f>>2]=j;j=FW(16)|0;jo(j,1);c[b+12>>2]=j;j=FW(16)|0;jo(j,1);c[b+16>>2]=j;j=FW(16)|0;jo(j,0);d=b+20|0;c[d>>2]=j;j=FW(16)|0;jo(j,1);c[b+24>>2]=j;j=FW(16)|0;jo(j,1);c[b+28>>2]=j;j=FW(16)|0;wo(j);c[b+32>>2]=j;j=FW(16)|0;jo(j,0);c[b+36>>2]=j;a[b+40|0]=0;a[b+41|0]=1;a[b+42|0]=1;c[b+44>>2]=2;j=FW(16)|0;jo(j,0);c[b+48>>2]=j;j=FW(16)|0;wo(j);c[b+52>>2]=j;j=FW(16)|0;wo(j);c[b+56>>2]=j;bX(b+60|0,1,5)|0;a[b+65|0]=0;a[b+66|0]=0;a[b+67|0]=0;j=FW(32)|0;fe(j,3368);c[b+68>>2]=j;c[b+72>>2]=0;a[b+76|0]=1;a[b+77|0]=0;j=FW(16)|0;wo(j);c[b+80>>2]=j;j=b+84|0;a[j]=16843009;a[j+1|0]=65793;a[j+2|0]=257;a[j+3|0]=1;c[b+88>>2]=0;c[b+92>>2]=-1;c[b+96>>2]=-1;h[b+104>>3]=1.0;h[b+112>>3]=0.0;h[b+120>>3]=1.0;a[b+128|0]=1;j=b+129|0;a[j]=0;a[j+1|0]=0;a[j+2|0]=0;a[j+3|0]=0;j=FW(8)|0;yu(j,4);c[b+136>>2]=j;j=FW(8)|0;yu(j,4);c[b+140>>2]=j;j=FW(16)|0;Xm(j);c[b+144>>2]=j;j=FW(16)|0;Lt(j);c[b+148>>2]=j;j=18144;g=0;do{Gf(c[f>>2]|0,j,c[3376+(g<<3)>>2]|0);g=g+1|0;j=c[3380+(g<<3)>>2]|0;}while((j|0)!=0);j=FW(56)|0;Tm(j,12048,0,12056,58);lo(c[d>>2]|0,c[j>>2]|0,j);j=FW(56)|0;Tm(j,12984,0,12992,129);lo(c[d>>2]|0,c[j>>2]|0,j);j=FW(56)|0;Tm(j,15056,0,15064,121);lo(c[d>>2]|0,c[j>>2]|0,j);j=FW(56)|0;Tm(j,17e3,0,17016,30);lo(c[d>>2]|0,c[j>>2]|0,j);j=FW(56)|0;Um(j,3368,1,72);lo(c[d>>2]|0,c[j>>2]|0,j);j=FW(56)|0;Um(j,17496,1,73);lo(c[d>>2]|0,c[j>>2]|0,j);Xe(b);i=e;return}function Ve(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;e=i;if(b>>>0<128){if((d|0)<1){d=0;i=e;return d|0}a[c]=b;d=1;i=e;return d|0}if(b>>>0<2048){if((d|0)<2){d=0;i=e;return d|0}a[c]=(b>>>6)+192;a[c+1|0]=b&63|128;d=2;i=e;return d|0}if(b>>>0<65536){if((d|0)<3){d=0;i=e;return d|0}a[c]=(b>>>12)+224;a[c+1|0]=b>>>6&63|128;a[c+2|0]=b&63|128;d=3;i=e;return d|0}else{if(b>>>0>1114111|(d|0)<4){d=0;i=e;return d|0}a[c]=(b>>>18)+240;a[c+1|0]=b>>>12&63|128;a[c+2|0]=b>>>6&63|128;a[c+3|0]=b&63|128;d=4;i=e;return d|0}return 0}function We(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;e=i;if(b>>>0<65536){if((d|0)<2){d=0;i=e;return d|0}a[c]=b>>>8;a[c+1|0]=b;d=2;i=e;return d|0}else{if(b>>>0>1114111|(d|0)<4){d=0;i=e;return d|0}d=((b+ -65536|0)>>>10)+55296|0;a[c]=d>>>8;a[c+1|0]=d;a[c+2|0]=b>>>8&3|220;a[c+3|0]=b;d=4;i=e;return d|0}return 0}function Xe(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;d=i;g=i;i=i+8|0;f=g;l=i;i=i+8|0;k=l;m=i;i=i+8|0;n=m;o=i;i=i+8|0;e=c[b+224>>2]|0;j=(e|0)==0?17504:e;h=(ZW(j|0)|0)+15|0;e=GW(h)|0;c[o>>2]=j;hc(e|0,h|0,17536,o|0)|0;o=FW(12)|0;Go(o,e,1);p=Io(o)|0;if((p|0)!=0){do{if((a[p+8|0]&1)==0){Ye(b,c[p+4>>2]|0)}Fo(p);HW(p);p=Io(o)|0;}while((p|0)!=0)}if((o|0)!=0){Ho(o);HW(o)}c[m>>2]=j;hc(e|0,h|0,17560,n|0)|0;m=FW(12)|0;Go(m,e,0);n=Io(m)|0;if((n|0)!=0){do{Ze(b,c[n>>2]|0,c[n+4>>2]|0);Fo(n);HW(n);n=Io(m)|0;}while((n|0)!=0)}if((m|0)!=0){Ho(m);HW(m)}c[l>>2]=j;hc(e|0,h|0,17576,k|0)|0;k=FW(12)|0;Go(k,e,0);l=Io(k)|0;if((l|0)!=0){do{_e(b,c[l>>2]|0,c[l+4>>2]|0);Fo(l);HW(l);l=Io(k)|0;}while((l|0)!=0)}if((k|0)!=0){Ho(k);HW(k)}c[g>>2]=j;hc(e|0,h|0,17592,f|0)|0;f=FW(12)|0;Go(f,e,0);h=Io(f)|0;if((h|0)!=0){g=b+32|0;do{n=h+4|0;$e(b,c[h>>2]|0,c[n>>2]|0);o=c[g>>2]|0;n=c[n>>2]|0;p=FW(32)|0;ie(p,n);yo(o,p);Fo(h);HW(h);h=Io(f)|0;}while((h|0)!=0)}if((f|0)!=0){Ho(f);HW(f)}if((e|0)==0){i=d;return}IW(e);i=d;return}function Ye(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;l=i;h=i;i=i+8|0;d=h;e=i;i=i+8|0;j=e;o=i;i=i+8|0;f=i;i=i+256|0;g=i;i=i+8|0;k=g;m=i;i=i+8|0;b=b+28|0;n=yc(c[b>>2]|0,17600)|0;if((n|0)==0){c[o>>2]=c[b>>2];Qe(-1,17608,o);i=l;return}if((Do(f,256,n)|0)!=0){q=a+8|0;p=1;while(1){o=Mb(f|0,17648,m|0)|0;a=Mb(0,17648,m|0)|0;if((o|0)==0|(a|0)==0){c[h>>2]=c[b>>2];c[d+4>>2]=p;Qe(-1,17664,d)}else{c[e>>2]=k;Hc(o|0,17656,j|0)|0;Gf(c[q>>2]|0,a,c[g>>2]|0)}if((Do(f,256,n)|0)==0){break}else{p=p+1|0}}}mc(n|0)|0;i=l;return}function Ze(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;a=a+12|0;f=qo(c[a>>2]|0,b)|0;if((f|0)!=0){ke(f);HW(f)}g=c[a>>2]|0;a=FW(32)|0;ie(a,b);f=FW(32)|0;ie(f,d);lo(g,a,f);i=e;return}function _e(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;a=a+24|0;f=qo(c[a>>2]|0,b)|0;if((f|0)!=0){ke(f);HW(f)}g=c[a>>2]|0;a=FW(32)|0;ie(a,b);f=FW(32)|0;ie(f,d);lo(g,a,f);i=e;return}function $e(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;a=a+28|0;f=oo(c[a>>2]|0,b)|0;if((f|0)==0){f=FW(16)|0;wo(f);g=c[a>>2]|0;a=FW(32)|0;ie(a,b);lo(g,a,f)}g=FW(32)|0;ie(g,d);yo(f,g);i=e;return}function af(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;b=i;E=i;i=i+8|0;F=i;i=i+8|0;D=i;i=i+8|0;C=D;A=i;i=i+8|0;z=i;i=i+8|0;y=i;i=i+8|0;B=y;x=i;i=i+8|0;w=i;i=i+8|0;u=i;i=i+8|0;v=u;r=i;i=i+8|0;s=i;i=i+8|0;q=i;i=i+8|0;t=q;n=i;i=i+8|0;m=i;i=i+8|0;o=i;i=i+8|0;p=o;h=i;i=i+8|0;j=i;i=i+8|0;l=i;i=i+8|0;k=l;g=i;i=i+8|0;f=i;i=i+8|0;d=i;i=i+8|0;e=d;xt();G=c[a>>2]|0;if((G|0)!=0){Ff(G);HW(G)}G=c[a+4>>2]|0;if((G|0)!=0){ke(G);HW(G)}G=c[a+8>>2]|0;if((G|0)!=0){Ff(G);HW(G)}G=c[a+12>>2]|0;to(G,E);if(uo(G,E,F,C)|0){do{H=c[D>>2]|0;if((H|0)!=0){ke(H);HW(H)}}while(uo(G,E,F,C)|0)}if((G|0)!=0){ko(G);HW(G)}C=c[a+16>>2]|0;to(C,A);if(uo(C,A,z,B)|0){do{D=c[y>>2]|0;if((D|0)!=0){ke(D);HW(D)}}while(uo(C,A,z,B)|0)}if((C|0)!=0){ko(C);HW(C)}y=c[a+20>>2]|0;to(y,x);if(uo(y,x,w,v)|0){do{z=c[u>>2]|0;if((z|0)!=0){Vm(z);HW(z)}}while(uo(y,x,w,v)|0)}if((y|0)!=0){ko(y);HW(y)}v=c[a+24>>2]|0;to(v,r);if(uo(v,r,s,t)|0){do{u=c[q>>2]|0;if((u|0)!=0){ke(u);HW(u)}}while(uo(v,r,s,t)|0)}if((v|0)!=0){ko(v);HW(v)}q=c[a+32>>2]|0;r=q+8|0;t=c[r>>2]|0;if((t|0)>0){s=0;do{u=c[(c[q>>2]|0)+(s<<2)>>2]|0;if((u|0)!=0){ke(u);HW(u);t=c[r>>2]|0}s=s+1|0;}while((s|0)<(t|0))}if((q|0)!=0){xo(q);HW(q)}q=c[a+36>>2]|0;to(q,n);if(uo(q,n,m,p)|0){do{r=c[o>>2]|0;if((r|0)!=0){fd[c[(c[r>>2]|0)+4>>2]&511](r)}}while(uo(q,n,m,p)|0)}if((q|0)!=0){ko(q);HW(q)}m=c[a+48>>2]|0;to(m,h);if(uo(m,h,j,k)|0){do{n=c[l>>2]|0;if((n|0)!=0){o=c[n>>2]|0;if((o|0)!=0){ke(o);HW(o)}o=c[n+8>>2]|0;if((o|0)!=0){ke(o);HW(o)}o=c[n+12>>2]|0;if((o|0)!=0){ke(o);HW(o)}HW(n)}}while(uo(m,h,j,k)|0)}if((m|0)!=0){ko(m);HW(m)}h=c[a+52>>2]|0;j=h+8|0;m=c[j>>2]|0;if((m|0)>0){k=0;do{l=c[(c[h>>2]|0)+(k<<2)>>2]|0;if((l|0)!=0){m=c[l>>2]|0;if((m|0)!=0){ke(m);HW(m)}m=c[l+8>>2]|0;if((m|0)!=0){ke(m);HW(m)}m=c[l+12>>2]|0;if((m|0)!=0){ke(m);HW(m)}HW(l);m=c[j>>2]|0}k=k+1|0;}while((k|0)<(m|0))}if((h|0)!=0){xo(h);HW(h)}h=c[a+56>>2]|0;j=h+8|0;m=c[j>>2]|0;if((m|0)>0){k=0;do{l=c[(c[h>>2]|0)+(k<<2)>>2]|0;if((l|0)!=0){m=c[l>>2]|0;if((m|0)!=0){ke(m);HW(m)}m=c[l+8>>2]|0;if((m|0)!=0){ke(m);HW(m)}m=c[l+12>>2]|0;if((m|0)!=0){ke(m);HW(m)}HW(l);m=c[j>>2]|0}k=k+1|0;}while((k|0)<(m|0))}if((h|0)!=0){xo(h);HW(h)}h=c[a+68>>2]|0;if((h|0)!=0){ke(h);HW(h)}h=c[a+80>>2]|0;j=h+8|0;k=c[j>>2]|0;if((k|0)>0){l=0;do{m=c[(c[h>>2]|0)+(l<<2)>>2]|0;if((m|0)!=0){ke(m);HW(m);k=c[j>>2]|0}l=l+1|0;}while((l|0)<(k|0))}if((h|0)!=0){xo(h);HW(h)}k=a+28|0;to(c[k>>2]|0,g);if(uo(c[k>>2]|0,g,f,e)|0){do{h=c[d>>2]|0;j=h+8|0;l=c[j>>2]|0;if((l|0)>0){m=0;do{n=c[(c[h>>2]|0)+(m<<2)>>2]|0;if((n|0)!=0){ke(n);HW(n);l=c[j>>2]|0}m=m+1|0;}while((m|0)<(l|0))}if((h|0)!=0){xo(h);HW(h)}}while(uo(c[k>>2]|0,g,f,e)|0)}d=c[k>>2]|0;if((d|0)!=0){ko(d);HW(d)}d=c[a+136>>2]|0;if((d|0)!=0){zu(d);HW(d)}d=c[a+140>>2]|0;if((d|0)!=0){zu(d);HW(d)}d=c[a+144>>2]|0;if((d|0)!=0){Ym(d);HW(d)}d=c[a+148>>2]|0;if((d|0)==0){H=a+152|0;kc(H|0)|0;H=a+176|0;kc(H|0)|0;H=a+200|0;kc(H|0)|0;i=b;return}Mt(d);HW(d);H=a+152|0;kc(H|0)|0;H=a+176|0;kc(H|0)|0;H=a+200|0;kc(H|0)|0;i=b;return}function bf(a,b){a=a|0;b=b|0;var d=0;d=i;a=Hf(c[a>>2]|0,b)|0;i=d;return a|0}function cf(a,b){a=a|0;b=b|0;var d=0;d=i;a=Hf(c[a+8>>2]|0,b)|0;i=d;return a|0}function df(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;e=a+152|0;Ub(e|0)|0;b=oo(c[a+28>>2]|0,b)|0;if((b|0)==0){Mc(e|0)|0;j=0;i=f;return j|0}a=b+8|0;a:do{if((c[a>>2]|0)>0){h=d+28|0;j=0;while(1){g=c[(c[b>>2]|0)+(j<<2)>>2]|0;d=FW(32)|0;ie(d,g);d=Co(d,c[h>>2]|0)|0;g=yc(c[d+28>>2]|0,17600)|0;if((d|0)!=0){ke(d);HW(d)}j=j+1|0;if((g|0)!=0){break}if((j|0)>=(c[a>>2]|0)){break a}}Mc(e|0)|0;j=g;i=f;return j|0}}while(0);Mc(e|0)|0;j=0;i=f;return j|0}function ef(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=a+152|0;Ub(e|0)|0;a=a+32|0;g=c[a>>2]|0;a:do{if((c[g+8>>2]|0)>0){b=b+28|0;f=0;while(1){h=c[(c[g>>2]|0)+(f<<2)>>2]|0;g=FWFW(20)|0;x=FW(32)|0;ie(x,k);c[r>>2]=3352;c[r+4>>2]=x;c[r+8>>2]=1;x=r+12|0;c[x>>2]=0;w=FW(32)|0;fe(w,c[j>>2]|0);c[x>>2]=w;rb(c[(c[n>>2]|0)+(o<<2)>>2]|0,17752,0,r+16|0)|0}else if((p|0)==78){r=FW(20)|0;x=FW(32)|0;ie(x,k);c[r>>2]=3352;c[r+4>>2]=x;c[r+8>>2]=0;x=r+12|0;c[x>>2]=0;w=FW(32)|0;fe(w,c[j>>2]|0);c[x>>2]=w}c[h>>2]=r}else{r=0}}while(0);Vc(l|0)}ob(m|0)}}while(0);Mc(b|0)|0;x=r;i=e;return x|0}function gf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;f=a+152|0;Ub(f|0)|0;a=a+80|0;j=c[a>>2]|0;a:do{if((c[j+8>>2]|0)>0){b=b+28|0;g=0;b:while(1){h=c[(c[j>>2]|0)+(g<<2)>>2]|0;if((c[d>>2]|0)!=0){l=d;do{j=FW(32)|0;ie(j,h);j=Co(j,c[b>>2]|0)|0;ne(j,c[l>>2]|0,-1)|0;k=yc(c[j+28>>2]|0,17776)|0;if((k|0)!=0){break b}if((j|0)!=0){ke(j);HW(j)}l=l+4|0;}while((c[l>>2]|0)!=0);j=c[a>>2]|0}g=g+1|0;if((g|0)>=(c[j+8>>2]|0)){break a}}mc(k|0)|0;Mc(f|0)|0;l=j;i=e;return l|0}}while(0);Mc(f|0)|0;l=0;i=e;return l|0}function hf(b){b=b|0;var c=0,d=0;c=i;d=b+152|0;Ub(d|0)|0;b=(a[b+84|0]&1)!=0;Mc(d|0)|0;i=c;return b|0}function jf(b){b=b|0;var c=0,d=0;c=i;d=b+152|0;Ub(d|0)|0;b=(a[b+85|0]&1)!=0;Mc(d|0)|0;i=c;return b|0}function kf(b){b=b|0;var c=0,d=0;c=i;d=b+152|0;Ub(d|0)|0;b=(a[b+86|0]&1)!=0;Mc(d|0)|0;i=c;return b|0}function lf(b){b=b|0;var c=0,d=0;c=i;d=b+152|0;Ub(d|0)|0;b=(a[b+87|0]&1)!=0;Mc(d|0)|0;i=c;return b|0}function mf(a){a=a|0;var b=0,d=0;b=i;d=a+152|0;Ub(d|0)|0;a=c[a+88>>2]|0;Mc(d|0)|0;i=b;return a|0}function nf(a){a=a|0;var b=0,d=0;b=i;d=a+152|0;Ub(d|0)|0;a=c[a+92>>2]|0;Mc(d|0)|0;i=b;return a|0}function of(a){a=a|0;var b=0,d=0;b=i;d=a+152|0;Ub(d|0)|0;a=c[a+96>>2]|0;Mc(d|0)|0;i=b;return a|0}function pf(a){a=a|0;var b=0.0,c=0,d=0;c=i;d=a+152|0;Ub(d|0)|0;b=+h[a+104>>3];Mc(d|0)|0;i=c;return+b}function qf(a){a=a|0;var b=0.0,c=0,d=0;c=i;d=a+152|0;Ub(d|0)|0;b=+h[a+112>>3];Mc(d|0)|0;i=c;return+b}function rf(a){a=a|0;var b=0.0,c=0,d=0;c=i;d=a+152|0;Ub(d|0)|0;b=+h[a+120>>3];Mc(d|0)|0;i=c;return+b}function sf(b){b=b|0;var c=0,d=0;c=i;d=b+152|0;Ub(d|0)|0;b=(a[b+128|0]&1)!=0;Mc(d|0)|0;i=c;return b|0}function tf(b){b=b|0;var c=0,d=0;c=i;d=b+152|0;Ub(d|0)|0;b=(a[b+129|0]&1)!=0;Mc(d|0)|0;i=c;return b|0}function uf(b){b=b|0;var c=0,d=0;c=i;d=b+152|0;Ub(d|0)|0;b=(a[b+130|0]&1)!=0;Mc(d|0)|0;i=c;return b|0}function vf(b){b=b|0;var c=0,d=0;c=i;d=b+152|0;Ub(d|0)|0;b=(a[b+131|0]&1)!=0;Mc(d|0)|0;i=c;return b|0}function wf(b){b=b|0;i=i;return(a[b+132|0]&1)!=0|0}function xf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;d=a+152|0;Ub(d|0)|0;f=a+136|0;g=Au(c[f>>2]|0,b)|0;do{if((g|0)==0){g=oo(c[a+12>>2]|0,b)|0;if((g|0)==0){g=0;break}g=iu(g,b)|0;if((g|0)==0){g=0;break}Bu(c[f>>2]|0,g)}}while(0);Mc(d|0)|0;i=e;return g|0}function yf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;d=i;j=i;i=i+8|0;g=i;i=i+8|0;k=g;m=i;i=i+8|0;l=m;e=a+152|0;Ub(e|0)|0;h=a+16|0;to(c[h>>2]|0,j);n=b+28|0;while(1){if(!(uo(c[h>>2]|0,j,k,l)|0)){b=0;f=8;break}if((nb(c[n>>2]|0,c[(c[g>>2]|0)+28>>2]|0)|0)==0){continue}vo(c[h>>2]|0,j);b=c[m>>2]|0;if((b|0)!=0){break}}if((f|0)==8){Mc(e|0)|0;i=d;return b|0}f=a+140|0;g=Au(c[f>>2]|0,b)|0;if((g|0)!=0){n=g;Mc(e|0)|0;i=d;return n|0}b=ju(b)|0;if((b|0)==0){n=0;Mc(e|0)|0;i=d;return n|0}Bu(c[f>>2]|0,b);n=b;Mc(e|0)|0;i=d;return n|0}function zf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;g=a+200|0;Ub(g|0)|0;a=Et(c[a+148>>2]|0,b,d,e)|0;Mc(g|0)|0;i=f;return a|0}function Af(b,c){b=b|0;c=c|0;var d=0,e=0;e=i;d=b+152|0;Ub(d|0)|0;b=b+84|0;do{if((Qc(c|0,17712)|0)==0){c=1}else{if((Qc(c|0,17720)|0)==0){c=0;break}else{c=0}Mc(d|0)|0;i=e;return c|0}}while(0);a[b]=c;b=1;Mc(d|0)|0;i=e;return b|0}function Bf(b,c){b=b|0;c=c|0;var d=0,e=0;e=i;d=b+152|0;Ub(d|0)|0;b=b+85|0;do{if((Qc(c|0,17712)|0)==0){c=1}else{if((Qc(c|0,17720)|0)==0){c=0;break}else{c=0}Mc(d|0)|0;i=e;return c|0}}while(0);a[b]=c;b=1;Mc(d|0)|0;i=e;return b|0}function Cf(b,c){b=b|0;c=c|0;var d=0,e=0;e=i;d=b+152|0;Ub(d|0)|0;b=b+86|0;do{if((Qc(c|0,17712)|0)==0){c=1}else{if((Qc(c|0,17720)|0)==0){c=0;break}else{c=0}Mc(d|0)|0;i=e;return c|0}}while(0);a[b]=c;b=1;Mc(d|0)|0;i=e;return b|0}function Df(b,c){b=b|0;c=c|0;var d=0,e=0;d=i;e=b+152|0;Ub(e|0)|0;a[b+132|0]=c&1;Mc(e|0)|0;i=d;return}function Ef(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+4|0;c[d>>2]=31;c[a+8>>2]=0;e=ye(31,8)|0;c[a>>2]=e;if((c[d>>2]|0)>0){f=0}else{i=b;return}while(1){c[e+(f<<3)>>2]=0;f=f+1|0;if((f|0)>=(c[d>>2]|0)){break}e=c[a>>2]|0}i=b;return}function Ff(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;d=a+4|0;e=c[d>>2]|0;g=c[a>>2]|0;if((e|0)>0){f=0}else{h=g;Fe(h);i=b;return}do{h=c[g+(f<<3)>>2]|0;if((h|0)!=0){Fe(h);g=c[a>>2]|0;e=c[d>>2]|0}f=f+1|0;}while((f|0)<(e|0));Fe(g);i=b;return}function Gf(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;g=i;f=b+8|0;h=b+4|0;k=c[h>>2]|0;if((c[f>>2]|0)>=((k|0)/2|0|0)){j=c[b>>2]|0;l=k<<1|1;c[h>>2]=l;l=ye(l,8)|0;c[b>>2]=l;a:do{if((c[h>>2]|0)>0){m=0;while(1){c[l+(m<<3)>>2]=0;m=m+1|0;if((m|0)>=(c[h>>2]|0)){break a}l=c[b>>2]|0}}}while(0);if((k|0)>0){m=0;do{l=j+(m<<3)|0;n=c[l>>2]|0;if((n|0)!=0){p=a[n]|0;if(p<<24>>24==0){o=0}else{o=0;while(1){o=(o*17|0)+(p&255)|0;n=n+1|0;p=a[n]|0;if(p<<24>>24==0){break}else{}}}n=c[h>>2]|0;q=(o>>>0)%(n>>>0)|0;o=c[b>>2]|0;p=o+(q<<3)|0;if((c[p>>2]|0)!=0){while(1){p=q+1|0;q=(p|0)==(n|0)?0:p;p=o+(q<<3)|0;if((c[p>>2]|0)==0){break}else{}}}n=l;o=c[n+4>>2]|0;q=p;c[q>>2]=c[n>>2];c[q+4>>2]=o}m=m+1|0;}while((m|0)<(k|0))}Fe(j)}k=a[d]|0;if(k<<24>>24==0){l=0}else{l=0;j=d;while(1){l=(l*17|0)+(k&255)|0;j=j+1|0;k=a[j]|0;if(k<<24>>24==0){break}else{}}}h=c[h>>2]|0;l=(l>>>0)%(h>>>0)|0;j=c[b>>2]|0;k=c[j+(l<<3)>>2]|0;b:do{if((k|0)!=0){while(1){if((Qc(k|0,d|0)|0)==0){break}k=l+1|0;l=(k|0)==(h|0)?0:k;k=c[j+(l<<3)>>2]|0;if((k|0)==0){break b}}p=l<<3;p=j+p|0;p=p+4|0;c[p>>2]=e;p=f;p=c[p>>2]|0;p=p+1|0;q=f;c[q>>2]=p;i=g;return}}while(0);q=Ge(d)|0;c[(c[b>>2]|0)+(l<<3)>>2]=q;q=c[b>>2]|0;p=l;p=p<<3;p=q+p|0;p=p+4|0;c[p>>2]=e;p=f;p=c[p>>2]|0;p=p+1|0;q=f;c[q>>2]=p;i=g;return}function Hf(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;h=a[d]|0;if(h<<24>>24==0){j=0}else{j=0;g=d;while(1){j=(j*17|0)+(h&255)|0;g=g+1|0;h=a[g]|0;if(h<<24>>24==0){break}else{}}}g=c[b+4>>2]|0;h=(j>>>0)%(g>>>0)|0;b=c[b>>2]|0;j=c[b+(h<<3)>>2]|0;if((j|0)==0){j=0;i=f;return j|0}while(1){if((Qc(j|0,d|0)|0)==0){break}h=h+1|0;h=(h|0)==(g|0)?0:h;j=c[b+(h<<3)>>2]|0;if((j|0)==0){d=0;e=7;break}}if((e|0)==7){i=f;return d|0}j=c[b+(h<<3)+4>>2]|0;i=f;return j|0}function If(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=a+8|0;c[e>>2]=0;c[e+4>>2]=0;c[a>>2]=6;f=FW(20)|0;rt(f,b);c[e>>2]=f;i=d;return a|0}function Jf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=a+8|0;c[e>>2]=0;c[e+4>>2]=0;c[a>>2]=7;f=FW(24)|0;Qu(f,b);c[e>>2]=f;i=d;return a|0}function Kf(a,b){a=a|0;b=b|0;var d=0;d=a+8|0;c[d+4>>2]=0;c[a>>2]=7;c[d>>2]=b;b=b+20|0;c[b>>2]=(c[b>>2]|0)+1;i=i;return a|0}function Lf(a,b){a=a|0;b=b|0;var d=0;d=a+8|0;c[d+4>>2]=0;c[a>>2]=8;c[d>>2]=b;i=i;return a|0}function Mf(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;$W(b|0,a|0,16)|0;switch(c[a>>2]|0){case 3:{e=c[a+8>>2]|0;a=FW(32)|0;ie(a,e);c[b+8>>2]=a;i=d;return b|0};case 10:{c[b+8>>2]=Ge(c[a+8>>2]|0)|0;i=d;return b|0};case 4:{c[b+8>>2]=Ge(c[a+8>>2]|0)|0;i=d;return b|0};case 6:{e=(c[a+8>>2]|0)+16|0;c[e>>2]=(c[e>>2]|0)+1;i=d;return b|0};case 8:{e=(c[a+8>>2]|0)+4|0;c[e>>2]=(c[e>>2]|0)+1;i=d;return b|0};case 7:{e=(c[a+8>>2]|0)+20|0;c[e>>2]=(c[e>>2]|0)+1;i=d;return b|0};default:{i=d;return b|0}}return 0}function Nf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;if(!((c[a>>2]|0)!=9|(b|0)==0)){a=a+8|0;a=_m(b,c[a>>2]|0,c[a+4>>2]|0,d,e)|0;i=f;return a|0}$W(d|0,a|0,16)|0;switch(c[a>>2]|0){case 10:{c[d+8>>2]=Ge(c[a+8>>2]|0)|0;a=d;i=f;return a|0};case 3:{b=c[a+8>>2]|0;a=FW(32)|0;ie(a,b);c[d+8>>2]=a;a=d;i=f;return a|0};case 6:{a=(c[a+8>>2]|0)+16|0;c[a>>2]=(c[a>>2]|0)+1;a=d;i=f;return a|0};case 4:{c[d+8>>2]=Ge(c[a+8>>2]|0)|0;a=d;i=f;return a|0};case 7:{a=(c[a+8>>2]|0)+20|0;c[a>>2]=(c[a>>2]|0)+1;a=d;i=f;return a|0};case 8:{a=(c[a+8>>2]|0)+4|0;c[a>>2]=(c[a>>2]|0)+1;a=d;i=f;return a|0};default:{a=d;i=f;return a|0}}return 0}function Of(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;a:do{switch(c[a>>2]|0){case 6:{d=a+8|0;f=(c[d>>2]|0)+16|0;e=(c[f>>2]|0)+ -1|0;c[f>>2]=e;if((e|0)!=0){break a}d=c[d>>2]|0;if((d|0)==0){break a}st(d);HW(d);break};case 3:{d=c[a+8>>2]|0;if((d|0)==0){break a}ke(d);HW(d);break};case 7:{d=a+8|0;e=(c[d>>2]|0)+20|0;f=(c[e>>2]|0)+ -1|0;c[e>>2]=f;if((f|0)!=0){break a}d=c[d>>2]|0;if((d|0)==0){break a}Su(d);HW(d);break};case 10:{Fe(c[a+8>>2]|0);break};case 8:{d=a+8|0;e=(c[d>>2]|0)+4|0;f=(c[e>>2]|0)+ -1|0;c[e>>2]=f;if((f|0)!=0){break a}d=c[d>>2]|0;if((d|0)==0){break a}fd[c[(c[d>>2]|0)+4>>2]&511](d);break};case 4:{Fe(c[a+8>>2]|0);break};default:{}}}while(0);c[a>>2]=13;i=b;return}function Pf(a){a=a|0;i=i;return c[32256+(c[a>>2]<<2)>>2]|0}function Qf(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;e=i;z=i;i=i+8|0;y=z;x=i;i=i+8|0;w=x;n=i;i=i+8|0;o=n;q=i;i=i+8|0;r=q;g=i;i=i+8|0;j=g;p=i;i=i+8|0;s=p;l=i;i=i+8|0;m=l;u=i;i=i+8|0;t=u;A=i;i=i+8|0;v=i;i=i+8|0;B=i;i=i+16|0;f=B;c[B>>2]=13;B=f+8|0;c[B>>2]=0;c[B+4>>2]=0;switch(c[b>>2]|0){case 0:{_c(((a[b+8|0]&1)!=0?32320:32328)|0,d|0)|0;i=e;return};case 2:{B=A;h[k>>3]=+h[b+8>>3];c[B>>2]=c[k>>2];c[B+4>>2]=c[k+4>>2];Gc(d|0,32344,A|0)|0;i=e;return};case 3:{sc(40,d|0)|0;B=c[b+8>>2]|0;Rb(c[B+28>>2]|0,1,c[B+24>>2]|0,d|0)|0;sc(41,d|0)|0;i=e;return};case 1:{c[v>>2]=c[b+8>>2];Gc(d|0,32336,v|0)|0;i=e;return};case 6:{sc(91,d|0)|0;g=c[b>>2]|0;if((g|0)!=6){A=g;B=l;c[B>>2]=A;B=m+4|0;c[B>>2]=6;B=32448;Qe(0,B,m);tc()}n=b+8|0;g=0;while(1){if((g|0)>=(c[(c[n>>2]|0)+12>>2]|0)){b=16;break}if((g|0)>0){sc(32,d|0)|0;j=c[b>>2]|0;if((j|0)!=6){b=14;break}}vt(c[n>>2]|0,g,f)|0;Qf(f,d);Of(f);j=c[b>>2]|0;if((j|0)==6){g=g+1|0}else{b=10;break}}if((b|0)==10){B=l;c[B>>2]=j;B=m+4|0;c[B>>2]=6;B=32448;Qe(0,B,m);tc()}else if((b|0)==14){c[p>>2]=j;c[s+4>>2]=6;Qe(0,32448,s);tc()}else if((b|0)==16){sc(93,d|0)|0;i=e;return}break};case 5:{Rb(32360,4,1,d|0)|0;i=e;return};case 4:{c[u>>2]=c[b+8>>2];Gc(d|0,32352,t|0)|0;i=e;return};case 7:{Rb(32368,2,1,d|0)|0;l=c[b>>2]|0;if((l|0)!=7){A=l;B=g;c[B>>2]=A;B=j+4|0;c[B>>2]=7;B=32448;Qe(0,B,j);tc()}l=b+8|0;m=0;while(1){p=c[l>>2]|0;if((m|0)>=(c[p+16>>2]|0)){b=24;break}c[q>>2]=$u(p,m)|0;Gc(d|0,32376,r|0)|0;p=c[b>>2]|0;if((p|0)!=7){b=22;break}bv(c[l>>2]|0,m,f)|0;Qf(f,d);Of(f);p=c[b>>2]|0;if((p|0)==7){m=m+1|0}else{b=19;break}}if((b|0)==19){B=g;c[B>>2]=p;B=j+4|0;c[B>>2]=7;B=32448;Qe(0,B,j);tc()}else if((b|0)==22){c[n>>2]=p;c[o+4>>2]=7;Qe(0,32448,o);tc()}else if((b|0)==24){Rb(32384,3,1,d|0)|0;i=e;return}break};case 8:{Rb(32392,8,1,d|0)|0;i=e;return};case 11:{Rb(32416,7,1,d|0)|0;i=e;return};case 10:{_c(c[b+8>>2]|0,d|0)|0;i=e;return};case 12:{Rb(32424,5,1,d|0)|0;i=e;return};case 13:{Rb(32432,6,1,d|0)|0;i=e;return};case 9:{A=b+8|0;B=c[A+4>>2]|0;c[x>>2]=c[A>>2];c[w+4>>2]=B;Gc(d|0,32408,w|0)|0;i=e;return};case 14:{c[z>>2]=c[b+8>>2];Gc(d|0,32440,y|0)|0;i=e;return};default:{i=e;return}}}function Rf(a){a=a|0;i=i;return}function Sf(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;l=i;q=i;i=i+8|0;j=q;o=i;i=i+16|0;p=o;t=i;i=i+80|0;c[o>>2]=13;m=p+8|0;c[m>>2]=0;n=m+4|0;c[n>>2]=0;r=b+52|0;a[r]=0;k=b+56|0;c[k>>2]=0;s=b+4|0;c[s>>2]=0;h=b+8|0;c[h>>2]=0;c[b+28>>2]=0;c[b+24>>2]=0;c[b+36>>2]=0;c[b+40>>2]=0;c[b+44>>2]=0;c[b+64>>2]=-1;c[b+32>>2]=0;c[b+48>>2]=0;c[b>>2]=d;c[b+12>>2]=g;if((Nb(c[d+28>>2]|0,t|0)|0)==0){t=c[t+36>>2]|0}else{t=0}d=yc(c[(c[b>>2]|0)+28>>2]|0,32632)|0;c[s>>2]=d;if((d|0)==0){g=Pc()|0;c[b+60>>2]=c[g>>2];d=c[(c[b>>2]|0)+28>>2]|0;g=Xc(c[g>>2]|0)|0;c[q>>2]=d;c[j+4>>2]=g;Qe(-1,32640,j);c[k>>2]=1;i=l;return}else{c[m>>2]=0;c[n>>2]=0;c[o>>2]=5;g=FW(320)|0;Dj(g,d,0,0,t,p);c[h>>2]=g;a[r]=(Tf(b,e,f)|0)&1;i=l;return}}function Tf(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;f=i;i=i+8|0;l=i;i=i+8|0;j=i;i=i+8|0;k=i;i=i+8|0;h=b+8|0;m=c[h>>2]|0;Gd[c[(c[m>>2]|0)+52>>2]&255](m,0,-1);m=c[h>>2]|0;if((jd[c[(c[m>>2]|0)+48>>2]&511](m)|0)<0){Qe(-1,32672,j);m=0;i=g;return m|0}m=c[h>>2]|0;fd[c[(c[m>>2]|0)+12>>2]&511](m);Vf(b);a[k]=0;m=FW(128)|0;n=c[h>>2]|0;j=Wf(b)|0;an(m,n,j,Xf(b)|0,k,0);j=b+28|0;c[j>>2]=m;if((a[m+28|0]&1)==0){Qe(-1,32712,l);c[b+56>>2]=c[(c[j>>2]|0)+32>>2];n=0;i=g;return n|0}if(!(Yf(b,d,e)|0)){c[b+56>>2]=4;n=0;i=g;return n|0}l=FW(184)|0;Zt(l,c[j>>2]|0);d=b+36|0;c[d>>2]=l;if((l|0)==0){n=1;i=g;return n|0}if((a[l+164|0]&1)!=0){n=1;i=g;return n|0}if((a[k]&1)==0){$t(l);HW(l);k=c[j>>2]|0;if((k|0)!=0){en(k);HW(k)}n=FW(128)|0;an(n,c[h>>2]|0,0,0,0,1);c[j>>2]=n;l=FW(184)|0;Zt(l,n);c[d>>2]=l}if((l|0)==0){n=1;i=g;return n|0}if((a[l+164|0]&1)!=0){n=1;i=g;return n|0}Qe(-1,32744,f);c[b+56>>2]=2;n=0;i=g;return n|0}function Uf(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0;h=i;j=b+52|0;a[j]=0;c[b+56>>2]=0;c[b>>2]=0;c[b+4>>2]=0;k=b+8|0;c[k>>2]=0;c[b+28>>2]=0;c[b+24>>2]=0;c[b+36>>2]=0;c[b+40>>2]=0;c[b+44>>2]=0;c[b+64>>2]=-1;c[b+32>>2]=0;c[b+48>>2]=0;c[b+12>>2]=g;if((jd[c[(c[d>>2]|0)+100>>2]&511](d)|0)==0){l=0;g=b;c[g>>2]=l;g=k;c[g>>2]=d;d=Tf(b,e,f)|0;d=d&1;g=j;a[g]=d;i=h;return}g=jd[c[(c[d>>2]|0)+100>>2]&511](d)|0;l=FWFW(16)|0;iE(b,c[j>>2]|0);c[k>>2]=b}b=kE(b)|0;k=c[j>>2]|0;if((b|0)!=(jd[c[(c[k>>2]|0)+104>>2]&511](k)|0)){break}g=c[j>>2]|0;Gd[c[(c[g>>2]|0)+52>>2]&255](g,0,0);g=0;while(1){f=c[j>>2]|0;f=jd[c[(c[f>>2]|0)+20>>2]&511](f)|0;if((f|0)==-1){f=10;break}a[h+g|0]=f;g=g+1|0;if((g|0)>=1024){f=9;break}}do{if((f|0)==9){a[h+g|0]=0;c[e>>2]=0}else if((f|0)==10){a[h+g|0]=0;c[e>>2]=0;if((g|0)>0){break}else{e=0}i=d;return e|0}}while(0);j=0;while(1){b=j+1|0;if((vc(32856,h+j|0,6)|0)==0){break}if((b|0)<(g|0)){j=b}else{e=0;f=29;break}}if((f|0)==29){i=d;return e|0}k=j+6|0;c[e>>2]=k;i=d;return k|0}}while(0);h=c[j>>2]|0;Gd[c[(c[h>>2]|0)+52>>2]&255](h,1024,-1);h=0;do{b=c[j>>2]|0;b=jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;if((b|0)==-1){break}a[g+h|0]=b;h=h+1|0;}while((h|0)<1024);a[g+h|0]=0;h=h+ -9|0;a:do{if((h|0)>-1){j=h;while(1){h=j+ -1|0;if((vc(g+j|0,32864,9)|0)==0){break}if((j|0)>0){j=h}else{f=22;break a}}if((j|0)<0){h=j;f=22}else{h=j}}else{f=22}}while(0);if((f|0)==22){c[e>>2]=0}j=g+(h+9)|0;while(1){if((xc(a[j]|0)|0)==0){break}else{j=j+1|0}}g=a[j]|0;b:do{if(g<<24>>24==0){h=0}else{f=0;h=0;while(1){g=(g<<24>>24)+ -48|0;if(!(g>>>0<10&(f|0)<10)){break b}h=g+(h*10|0)|0;j=j+1|0;g=a[j]|0;if(g<<24>>24==0){break}else{f=f+1|0}}}}while(0);c[e>>2]=h;k=h;i=d;return k|0}function Xf(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+8|0;e=c[d>>2]|0;if((jd[c[(c[e>>2]|0)+104>>2]&511](e)|0)==0){e=0;i=b;return e|0}a=a+24|0;e=c[a>>2]|0;if((e|0)==0){e=FW(16)|0;iE(e,c[d>>2]|0);c[a>>2]=e}f=kE(e)|0;e=c[d>>2]|0;if((f|0)!=(jd[c[(c[e>>2]|0)+104>>2]&511](e)|0)){f=0;i=b;return f|0}e=c[a>>2]|0;if((e|0)==0){e=FW(16)|0;iE(e,c[d>>2]|0);c[a>>2]=e}f=sE(e)|0;i=b;return f|0}function Yf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;j=i;i=i+8|0;h=j;m=i;i=i+16|0;g=m;c[m>>2]=13;f=g+8|0;c[f>>2]=0;c[f+4>>2]=0;f=a+28|0;l=c[f>>2]|0;k=c[l+40>>2]|0;if((k|0)!=7){c[j>>2]=k;c[h+4>>2]=7;Qe(0,33064,h);tc()}Yu(c[l+48>>2]|0,32848,g,0)|0;if((c[m>>2]|0)!=7){m=1;Of(g);i=e;return m|0}h=pg(a,g)|0;a=a+32|0;c[a>>2]=h;if((h|0)==0){m=0;Of(g);i=e;return m|0}if(!(qg(h,b,d)|0)){m=0;Of(g);i=e;return m|0}b=c[f>>2]|0;f=c[a>>2]|0;f=jd[c[(c[f>>2]|0)+24>>2]&511](f)|0;d=c[a>>2]|0;d=jd[c[(c[d>>2]|0)+28>>2]&511](d)|0;h=c[a>>2]|0;h=jd[c[(c[h>>2]|0)+32>>2]&511](h)|0;j=c[a>>2]|0;j=jd[c[(c[j>>2]|0)+36>>2]&511](j)|0;k=c[a>>2]|0;k=jd[c[(c[k>>2]|0)+40>>2]&511](k)|0;l=c[a>>2]|0;l=jd[c[(c[l>>2]|0)+44>>2]&511](l)|0;m=c[a>>2]|0;jn(b,f,d,h,j,k,l,jd[c[(c[m>>2]|0)+48>>2]&511](m)|0);m=1;Of(g);i=e;return m|0}function Zf(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=a+48|0;if((c[d>>2]|0)!=0){e=(_f(a)|0)>0;f=c[d>>2]|0;if(e){e=0;do{f=c[f+(e<<2)>>2]|0;if((f|0)!=0){lg(f);HW(f)}e=e+1|0;g=(e|0)<(_f(a)|0);f=c[d>>2]|0}while(g)}Fe(f)}d=c[a+32>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+44>>2]|0;if((d|0)!=0){LF(d);HW(d)}d=c[a+36>>2]|0;if((d|0)!=0){$t(d);HW(d)}d=c[a+28>>2]|0;if((d|0)!=0){en(d);HW(d)}d=c[a+40>>2]|0;if((d|0)!=0){IC(d);HW(d)}d=c[a+24>>2]|0;if((d|0)!=0){jE(d);HW(d)}d=c[a+8>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+4>>2]|0;if((d|0)!=0){mc(d|0)|0}a=c[a>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}function _f(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=a+8|0;f=c[d>>2]|0;do{if((jd[c[(c[f>>2]|0)+104>>2]&511](f)|0)!=0){e=a+24|0;f=c[e>>2]|0;if((f|0)==0){f=FW(16)|0;iE(f,c[d>>2]|0);c[e>>2]=f}g=kE(f)|0;f=c[d>>2]|0;if((g|0)!=(jd[c[(c[f>>2]|0)+104>>2]&511](f)|0)){break}f=c[e>>2]|0;if((f|0)==0){f=FW(16)|0;iE(f,c[d>>2]|0);c[e>>2]=f}d=rE(f)|0;if((d|0)==0){break}i=b;return d|0}}while(0);g=cu(c[a+36>>2]|0)|0;i=b;return g|0}function $f(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;f=i;e=i;i=i+8|0;d=e;if((b|0)<1){j=0;i=f;return j|0}if((_f(a)|0)<(b|0)){j=0;i=f;return j|0}g=a+8|0;j=c[g>>2]|0;do{if((jd[c[(c[j>>2]|0)+104>>2]&511](j)|0)!=0){h=a+24|0;j=c[h>>2]|0;if((j|0)==0){j=FW(16)|0;iE(j,c[g>>2]|0);c[h>>2]=j}h=kE(j)|0;j=c[g>>2]|0;if((h|0)!=(jd[c[(c[j>>2]|0)+104>>2]&511](j)|0)){break}g=a+48|0;j=c[g>>2]|0;if((j|0)==0){c[g>>2]=ye(_f(a)|0,4)|0;if((_f(a)|0)>0){h=0;do{c[(c[g>>2]|0)+(h<<2)>>2]=0;h=h+1|0;}while((h|0)<(_f(a)|0))}j=c[g>>2]|0}h=b+ -1|0;j=c[j+(h<<2)>>2]|0;if((j|0)!=0){i=f;return j|0}j=dg(a,b)|0;c[(c[g>>2]|0)+(h<<2)>>2]=j;g=c[(c[g>>2]|0)+(h<<2)>>2]|0;if((g|0)==0){c[e>>2]=b;Qe(-1,33016,d);break}else{j=g;i=f;return j|0}}}while(0);j=au(c[a+36>>2]|0,b)|0;i=f;return j|0}function ag(a,b,d,e,f,g,h,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;d=d|0;e=+e;f=+f;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;s=s|0;var t=0;t=i;if(($f(a,d)|0)==0){i=t;return}d=$f(a,d)|0;mg(d,b,e,f,g,h,j,l,m,n,o,k,c[a+36>>2]|0,p,q,r,s);i=t;return}function bg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;d=i;b=a+40|0;if((c[b>>2]|0)!=0){h=b;h=c[h>>2]|0;i=d;return h|0}g=a+8|0;h=c[g>>2]|0;if((jd[c[(c[h>>2]|0)+104>>2]&511](h)|0)==0){h=b;h=c[h>>2]|0;i=d;return h|0}e=a+24|0;f=c[e>>2]|0;if((f|0)==0){f=FW(16)|0;iE(f,c[g>>2]|0);c[e>>2]=f}f=kE(f)|0;h=c[g>>2]|0;if((f|0)!=(jd[c[(c[h>>2]|0)+104>>2]&511](h)|0)){h=b;h=c[h>>2]|0;i=d;return h|0}f=FW(156)|0;g=c[g>>2]|0;h=c[e>>2]|0;if((h|0)==0){h=FW(16)|0;iE(h,g);c[e>>2]=h}GC(f,g,h,c[a+28>>2]|0,c[a+32>>2]|0);c[b>>2]=f;h=b;h=c[h>>2]|0;i=d;return h|0}function cg(b,d){b=b|0;d=d|0;var e=0,f=0;f=i;e=FW(68)|0;a[e+52|0]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+28>>2]=0;c[e+24>>2]=0;c[e+36>>2]=0;c[e+40>>2]=0;c[e+44>>2]=0;c[e+64>>2]=-1;c[e+32>>2]=0;c[e+48>>2]=0;c[e+56>>2]=b;c[e>>2]=d;i=f;return e|0}function dg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;l=i;d=i;i=i+8|0;m=d;o=i;i=i+8|0;g=o;q=i;i=i+8|0;p=q;r=i;i=i+8|0;f=i;i=i+16|0;n=f;j=i;i=i+8|0;k=j;c[f>>2]=13;h=n+8|0;c[h>>2]=0;c[h+4>>2]=0;e=MC(bg(a)|0,b)|0;if((e|0)==0){c[r>>2]=b;Qe(-1,32880,r);s=0;i=l;return s|0}do{if((e|0)>=0){r=a+28|0;s=c[r>>2]|0;if((e|0)>=(c[s+16>>2]|0)){break}p=c[(kn(s,e)|0)+4>>2]|0;_m(c[r>>2]|0,e,p,n,0)|0;if((c[f>>2]|0)==7){o=c[h>>2]|0;s=FW(144)|0;h=c[r>>2]|0;c[j>>2]=e;c[k+4>>2]=p;q=FW(288)|0;hg(q,0,o);r=_t(c[a+36>>2]|0)|0;$W(d|0,j|0,8)|0;kg(s,h,b,o,m,q,r);Of(n);i=l;return s|0}else{Of(n);c[o>>2]=e;c[g+4>>2]=p;Qe(-1,32976,g);s=0;i=l;return s|0}}}while(0);c[q>>2]=e;c[p+4>>2]=b;Qe(-1,32936,p);s=0;i=l;return s|0}function eg(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((b|0)==0){b=FW(16)|0;wo(b);c[a>>2]=b}else{c[a>>2]=b}e=FW(4)|0;c[e>>2]=36008;zo(b,0,e);a=c[a>>2]|0;b=FW(4)|0;c[b>>2]=188624;zo(a,0,b);i=d;return}function fg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;a=c[a>>2]|0;if((a|0)==0){i=b;return}d=a+8|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[(c[a>>2]|0)+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}xo(a);HW(a);i=b;return}function gg(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;h=i;j=i;i=i+8|0;g=j;l=c[(c[a>>2]|0)+8>>2]|0;while(1){k=l+ -1|0;if((l|0)<=0){a=5;break}l=c[(c[c[a>>2]>>2]|0)+(k<<2)>>2]|0;if(Bd[c[(c[l>>2]|0)+12>>2]&255](l,b)|0){a=4;break}else{l=k}}if((a|0)==4){l=Cd[c[(c[l>>2]|0)+8>>2]&63](l,b,d,e,f)|0;i=h;return l|0}else if((a|0)==5){c[j>>2]=c[b+28>>2];Qe(-1,33136,g);l=FW(32)|0;ie(l,b);l=cg(1,l)|0;i=h;return l|0}return 0}function hg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0.0,w=0.0,x=0,y=0,z=0,A=0,B=0,C=0,D=0.0,E=0.0;p=i;f=i;i=i+16|0;n=f;B=i;i=i+32|0;z=b+32|0;y=b+72|0;x=b+104|0;s=b+136|0;o=b+176|0;bX(b|0,0,64)|0;bX(y|0,0,96)|0;c[o>>2]=13;m=b+184|0;c[m>>2]=0;c[m+4>>2]=0;m=b+192|0;c[m>>2]=13;l=b+200|0;c[l>>2]=0;c[l+4>>2]=0;l=b+208|0;c[l>>2]=13;g=b+216|0;c[g>>2]=0;c[g+4>>2]=0;g=b+224|0;c[g>>2]=13;j=b+232|0;c[j>>2]=0;c[j+4>>2]=0;j=b+240|0;c[j>>2]=13;k=b+248|0;c[k>>2]=0;c[k+4>>2]=0;k=b+256|0;c[k>>2]=13;q=b+264|0;c[q>>2]=0;c[q+4>>2]=0;q=b+272|0;c[q>>2]=13;u=b+280|0;c[u>>2]=0;A=u+4|0;c[A>>2]=0;c[f>>2]=13;r=n+8|0;c[r>>2]=0;c[r+4>>2]=0;bX(B|0,0,32)|0;t=Xu(e,33160)|0;if((d|0)==0){bX(b|0,0,16)|0;h[b+16>>3]=612.0;h[b+24>>3]=792.0;c[b+168>>2]=0;c[u>>2]=0;bX(z|0,0,33)|0;c[A>>2]=0;c[q>>2]=5}else{$W(b|0,d|0,32)|0;$W(z|0,d+32|0,32)|0;a[b+64|0]=a[d+64|0]&1;c[b+168>>2]=c[d+168>>2];Mf(d+272|0,q)|0}if(ig(0,e,33168,B)|0){$W(b|0,B|0,32)|0}u=b+64|0;do{if(ig(0,e,33184,z)|0){a[u]=1}else{if((a[u]&1)!=0){break}$W(z|0,b|0,32)|0}}while(0);do{if(t){d=b+48|0;u=b+16|0;w=+h[u>>3];v=+h[b>>3];if(+h[d>>3]- +h[z>>3]>w-v){h[z>>3]=v;h[d>>3]=w}A=b+56|0;B=b+40|0;t=b+24|0;w=+h[t>>3];C=b+8|0;v=+h[C>>3];if(+h[A>>3]- +h[B>>3]>w-v){h[B>>3]=v;h[A>>3]=w}$W(y|0,z|0,32)|0;ig(0,e,33192,y)|0;$W(x|0,z|0,32)|0;ig(0,e,33208,x)|0;$W(s|0,z|0,32)|0;ig(0,e,33216,s)|0;w=+h[z>>3];v=+h[b>>3];do{if(w<v){h[z>>3]=v}else{D=+h[u>>3];if(w<=D){break}h[z>>3]=D}}while(0);D=+h[d>>3];do{if(D<v){h[d>>3]=v}else{w=+h[u>>3];if(D<=w){break}h[d>>3]=w}}while(0);D=+h[B>>3];w=+h[C>>3];do{if(D<w){h[B>>3]=w}else{E=+h[t>>3];if(D<=E){break}h[B>>3]=E}}while(0);D=+h[A>>3];do{if(D<w){h[A>>3]=w}else{E=+h[t>>3];if(D<=E){break}h[A>>3]=E}}while(0);D=+h[y>>3];do{if(D<v){h[y>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[y>>3]=E}}while(0);y=b+88|0;D=+h[y>>3];do{if(D<v){h[y>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[y>>3]=E}}while(0);y=b+80|0;D=+h[y>>3];do{if(D<w){h[y>>3]=w}else{E=+h[t>>3];if(D<=E){break}h[y>>3]=E}}while(0);y=b+96|0;E=+h[y>>3];do{if(E<w){h[y>>3]=w}else{D=+h[t>>3];if(E<=D){break}h[y>>3]=D}}while(0);D=+h[x>>3];do{if(D<v){h[x>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[x>>3]=E}}while(0);x=b+120|0;D=+h[x>>3];do{if(D<v){h[x>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[x>>3]=E}}while(0);x=b+112|0;D=+h[x>>3];do{if(D<w){h[x>>3]=w}else{E=+h[t>>3];if(D<=E){break}h[x>>3]=E}}while(0);x=b+128|0;E=+h[x>>3];do{if(E<w){h[x>>3]=w}else{D=+h[t>>3];if(E<=D){break}h[x>>3]=D}}while(0);D=+h[s>>3];do{if(D<v){h[s>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[s>>3]=E}}while(0);s=b+152|0;D=+h[s>>3];do{if(D<v){h[s>>3]=v}else{v=+h[u>>3];if(D<=v){break}h[s>>3]=v}}while(0);s=b+144|0;v=+h[s>>3];do{if(v<w){h[s>>3]=w}else{D=+h[t>>3];if(v<=D){break}h[s>>3]=D}}while(0);s=b+160|0;v=+h[s>>3];if(v<w){h[s>>3]=w;break}w=+h[t>>3];if(v<=w){break}h[s>>3]=w}else{$W(y|0,z|0,32)|0;ig(0,e,33192,y)|0;$W(x|0,z|0,32)|0;ig(0,e,33208,x)|0;$W(s|0,z|0,32)|0;ig(0,e,33216,s)|0}}while(0);Yu(e,33224,n,0)|0;if((c[f>>2]|0)==1){C=b+168|0;c[C>>2]=c[r>>2];r=C}else{r=b+168|0}Of(n);b=c[r>>2]|0;if((b|0)<0){C=~b;b=b+(C-((C>>>0)%360|0))+360|0;c[r>>2]=b}if((b|0)>359){c[r>>2]=((b+ -360|0)>>>0)%360|0}Yu(e,33232,o,0)|0;Yu(e,33248,m,0)|0;Yu(e,33264,l,0)|0;Yu(e,33272,g,0)|0;Yu(e,33288,j,0)|0;Yu(e,33304,k,0)|0;Yu(e,33320,n,0)|0;if((c[f>>2]|0)!=7){Of(n);i=p;return}Of(q);Mf(n,q)|0;Of(n);i=p;return}function ig(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0.0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0,s=0,t=0.0,u=0,v=0,w=0.0;a=i;n=i;i=i+8|0;o=n;s=i;i=i+8|0;r=s;u=i;i=i+8|0;v=u;p=i;i=i+16|0;f=p;l=i;i=i+16|0;g=l;c[p>>2]=13;m=f+8|0;c[m>>2]=0;c[m+4>>2]=0;c[l>>2]=13;k=g+8|0;c[k>>2]=0;c[k+4>>2]=0;Yu(b,d,f,0)|0;if((c[p>>2]|0)!=6){d=0;Of(f);i=a;return d|0}b=c[m>>2]|0;if((c[b+12>>2]|0)!=4){d=0;Of(f);i=a;return d|0}ut(b,0,g)|0;b=c[l>>2]|0;do{if((b+ -1|0)>>>0<2){if((b|0)==1){j=+(c[k>>2]|0);b=1;break}else{j=+h[k>>3];b=1;break}}else{j=0.0;b=0}}while(0);Of(g);d=c[p>>2]|0;if((d|0)!=6){c[u>>2]=d;c[v+4>>2]=6;Qe(0,33832,v);tc()}ut(c[m>>2]|0,1,g)|0;u=c[l>>2]|0;do{if((u+ -1|0)>>>0<2){if((u|0)==1){q=+(c[k>>2]|0);break}else{q=+h[k>>3];break}}else{q=0.0;b=0}}while(0);Of(g);u=c[p>>2]|0;if((u|0)!=6){c[s>>2]=u;c[r+4>>2]=6;Qe(0,33832,r);tc()}ut(c[m>>2]|0,2,g)|0;r=c[l>>2]|0;do{if((r+ -1|0)>>>0<2){if((r|0)==1){t=+(c[k>>2]|0);break}else{t=+h[k>>3];break}}else{t=0.0;b=0}}while(0);Of(g);p=c[p>>2]|0;if((p|0)!=6){c[n>>2]=p;c[o+4>>2]=6;Qe(0,33832,o);tc()}ut(c[m>>2]|0,3,g)|0;l=c[l>>2]|0;do{if((l+ -1|0)>>>0<2){if((l|0)==1){w=+(c[k>>2]|0);break}else{w=+h[k>>3];break}}else{w=0.0;b=0}}while(0);Of(g);if(j==0.0&t==0.0&q==0.0&w==0.0){d=0;Of(f);i=a;return d|0}g=b&1;if(g<<24>>24==0){d=g<<24>>24!=0;Of(f);i=a;return d|0}k=j>t;g=q>w;h[e>>3]=k?t:j;h[e+8>>3]=g?w:q;h[e+16>>3]=k?j:t;h[e+24>>3]=g?q:w;d=1;Of(f);i=a;return d|0}function jg(a){a=a|0;var b=0;b=i;Of(a+176|0);Of(a+192|0);Of(a+208|0);Of(a+224|0);Of(a+240|0);Of(a+256|0);Of(a+272|0);i=b;return}function kg(b,d,e,f,g,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0.0,S=0,T=0;o=i;t=i;i=i+8|0;u=t;l=i;i=i+8|0;z=l;q=i;i=i+8|0;r=q;F=i;i=i+8|0;G=F;J=i;i=i+8|0;K=J;N=i;i=i+8|0;O=N;Q=i;i=i+16|0;D=Q;T=b+8|0;c[T>>2]=13;C=b+16|0;c[C>>2]=0;c[C+4>>2]=0;C=b+40|0;c[C>>2]=13;H=b+48|0;c[H>>2]=0;I=H+4|0;c[I>>2]=0;m=b+56|0;c[m>>2]=13;E=b+64|0;c[E>>2]=0;y=E+4|0;c[y>>2]=0;x=b+80|0;c[x>>2]=13;A=b+88|0;c[A>>2]=0;B=A+4|0;c[B>>2]=0;P=b+96|0;c[P>>2]=13;s=b+104|0;c[s>>2]=0;c[s+4>>2]=0;s=b+112|0;c[s>>2]=13;v=b+120|0;c[v>>2]=0;w=v+4|0;c[w>>2]=0;c[Q>>2]=13;M=D+8|0;c[M>>2]=0;c[M+4>>2]=0;n=b+136|0;a[n]=1;c[b>>2]=d;p=b+32|0;c[p>>2]=e;L=b+128|0;h[L>>3]=-1.0;e=b+72|0;c[e>>2]=0;Kf(T,f)|0;T=g;S=c[T+4>>2]|0;g=b+24|0;c[g>>2]=c[T>>2];c[g+4>>2]=S;c[b+36>>2]=j;Zu(f,33336,P)|0;g=c[P>>2]|0;if(!((g|0)==5|(g|0)==7|(g|0)==9)){S=c[p>>2]|0;T=Pf(P)|0;c[N>>2]=S;c[O+4>>2]=T;Qe(-1,33344,O);Of(P)}Zu(f,33400,D)|0;N=c[Q>>2]|0;do{if((N+ -1|0)>>>0<2){if((N|0)==1){R=+(c[M>>2]|0)}else{R=+h[M>>3]}h[L>>3]=R}else{if((N|0)==5){break}S=c[p>>2]|0;T=Pf(D)|0;c[J>>2]=S;c[K+4>>2]=T;Qe(-1,33408,K)}}while(0);Of(D);Zu(f,33464,C)|0;T=c[C>>2]|0;do{if((T|0)==5|(T|0)==6|(T|0)==9){T=FW(20)|0;S=Nf(C,c[b>>2]|0,D,0)|0;Qv(T,d,S,c[p>>2]|0,k);c[e>>2]=T;Of(D);Zu(f,33528,m)|0;T=c[m>>2]|0;if(!((T|0)==5|(T|0)==6|(T|0)==9)){S=c[p>>2]|0;T=Pf(m)|0;c[q>>2]=S;c[r+4>>2]=T;Qe(-1,33544,r);Of(m);break}Zu(f,33600,x)|0;T=c[x>>2]|0;if(!((T|0)==9|(T|0)==5|(T|0)==8)){S=c[p>>2]|0;T=Pf(x)|0;c[l>>2]=S;c[z+4>>2]=T;Qe(-1,33608,z);c[A>>2]=0;c[B>>2]=0;c[x>>2]=5}Zu(f,33656,s)|0;T=c[s>>2]|0;if((T|0)==5|(T|0)==7){i=o;return}S=c[p>>2]|0;T=Pf(s)|0;c[t>>2]=S;c[u+4>>2]=T;Qe(-1,33664,u);c[v>>2]=0;c[w>>2]=0;c[s>>2]=5;i=o;return}else{S=c[p>>2]|0;T=Pf(C)|0;c[F>>2]=S;c[G+4>>2]=T;Qe(-1,33472,G);Of(C);c[H>>2]=0;c[I>>2]=0;c[C>>2]=5}}while(0);c[E>>2]=0;c[y>>2]=0;c[m>>2]=5;a[n]=0;i=o;return}function lg(a){a=a|0;var b=0,d=0;b=i;d=c[a+72>>2]|0;if((d|0)!=0){Rv(d);HW(d)}d=c[a+36>>2]|0;if((d|0)!=0){Of(d+176|0);Of(d+192|0);Of(d+208|0);Of(d+224|0);Of(d+240|0);Of(d+256|0);Of(d+272|0);HW(d)}Of(a+8|0);Of(a+40|0);Of(a+56|0);Of(a+96|0);Of(a+80|0);Of(a+112|0);i=b;return}function mg(a,b,d,e,f,g,h,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;d=+d;e=+e;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;s=s|0;var t=0,u=0,v=0,w=0;t=i;v=i;i=i+16|0;u=v;c[v>>2]=13;w=u+8|0;c[w>>2]=0;c[w+4>>2]=0;if(!(td[c[(c[b>>2]|0)+56>>2]&1](b,a,d,e,f,g,h,j,k,l,m,n,o,p,q)|0)){i=t;return}f=ng(a,b,d,e,f,g,h,j,k,l,m,0,o,p,q,0,0)|0;Nf(a+56|0,c[a>>2]|0,u,0)|0;if((c[v>>2]|0)!=5){yx(f);vx(f,u,1);tx(f)}Of(u);v=FW(8)|0;w=c[a>>2]|0;bt(v,w,o,Nf(a+40|0,w,u,0)|0);Of(u);u=v+4|0;if((c[u>>2]|0)>0){if(uf(c[834]|0)|0){fb(33904)|0}a:do{if((c[u>>2]|0)>0){if((r|0)==0){r=0;while(1){w=c[(c[v>>2]|0)+(r<<2)>>2]|0;Gd[c[(c[w>>2]|0)+8>>2]&255](w,f,n);r=r+1|0;if((r|0)>=(c[u>>2]|0)){break a}}}else{a=0}do{if(Bd[r&255](c[(c[v>>2]|0)+(a<<2)>>2]|0,s)|0){w=c[(c[v>>2]|0)+(a<<2)>>2]|0;Gd[c[(c[w>>2]|0)+8>>2]&255](w,f,n)}a=a+1|0;}while((a|0)<(c[u>>2]|0))}}while(0);fd[c[(c[b>>2]|0)+68>>2]&511](b)}if((v|0)!=0){dt(v);HW(v)}if((f|0)==0){i=t;return}sx(f);HW(f);i=t;return}function ng(b,d,e,f,g,j,l,m,n,o,p,q,r,s,t,u,v){b=b|0;d=d|0;e=+e;f=+f;g=g|0;j=j|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;s=s|0;t=t|0;u=u|0;v=v|0;var w=0,x=0,y=0,z=0,A=0,B=0,C=0.0,D=0.0,E=0.0;v=i;w=i;i=i+8|0;x=i;i=i+32|0;z=x;A=i;i=i+32|0;y=A;u=i;i=i+8|0;B=i;i=i+32|0;q=B;a[u]=l&1;bX(B|0,0,32)|0;l=b+36|0;g=(c[(c[l>>2]|0)+168>>2]|0)+g|0;if((g|0)>359){g=g+ -360|0}else{g=(g|0)<0?g+360|0:g}og(b,e,f,g,j,jd[c[(c[d>>2]|0)+8>>2]&511](d)|0,+(m|0),+(n|0),+(o|0),+(p|0),q,u);n=c[l>>2]|0;o=n+32|0;if(uf(c[834]|0)|0){C=+h[n+8>>3];D=+h[n+16>>3];E=+h[n+24>>3];B=A;h[k>>3]=+h[n>>3];c[B>>2]=c[k>>2];c[B+4>>2]=c[k+4>>2];B=y+8|0;h[k>>3]=C;c[B>>2]=c[k>>2];c[B+4>>2]=c[k+4>>2];B=y+16|0;h[k>>3]=D;c[B>>2]=c[k>>2];c[B+4>>2]=c[k+4>>2];B=y+24|0;h[k>>3]=E;c[B>>2]=c[k>>2];c[B+4>>2]=c[k+4>>2];Kb(33728,y|0)|0;E=+h[n+40>>3];D=+h[n+48>>3];C=+h[n+56>>3];B=x;h[k>>3]=+h[o>>3];c[B>>2]=c[k>>2];c[B+4>>2]=c[k+4>>2];B=z+8|0;h[k>>3]=E;c[B>>2]=c[k>>2];c[B+4>>2]=c[k+4>>2];B=z+16|0;h[k>>3]=D;c[B>>2]=c[k>>2];c[B+4>>2]=c[k+4>>2];B=z+24|0;h[k>>3]=C;c[B>>2]=c[k>>2];c[B+4>>2]=c[k+4>>2];Kb(33768,z|0)|0;c[w>>2]=c[(c[l>>2]|0)+168>>2];Kb(33808,w|0)|0}n=FWFW(68)|0;rg(m,a,b);Of(d);i=e;return m|0}else{c[f>>2]=g;Qe(-1,33952,f);m=0;Of(d);i=e;return m|0}return 0}function qg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;f=i;e=i;i=i+8|0;if((b|0)==0&(d|0)==0){b=0}else{b=sd[c[(c[a>>2]|0)+8>>2]&127](a,b,d)|0}d=Bd[c[(c[a>>2]|0)+20>>2]&255](a,b)|0;if((b|0)!=0){hd[c[(c[a>>2]|0)+16>>2]&127](a,b)}if(d){g=1;i=f;return g|0}b=0;g=0;do{d=jd[c[(c[a>>2]|0)+12>>2]&511](a)|0;if((d|0)==0){break}g=Bd[c[(c[a>>2]|0)+20>>2]&255](a,d)|0;hd[c[(c[a>>2]|0)+16>>2]&127](a,d);b=b+1|0;}while((b|0)<3&(g^1));if(g){g=1;i=f;return g|0}Qe(-1,34056,e);g=0;i=f;return g|0}function rg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0;g=i;Ia=i;i=i+8|0;x=i;i=i+8|0;t=x;r=i;i=i+8|0;s=r;A=i;i=i+8|0;B=A;F=i;i=i+8|0;E=F;I=i;i=i+8|0;H=I;Q=i;i=i+8|0;N=Q;S=i;i=i+8|0;T=S;da=i;i=i+8|0;ca=da;ka=i;i=i+8|0;ja=ka;ba=i;i=i+8|0;aa=ba;ha=i;i=i+8|0;ia=ha;oa=i;i=i+8|0;ma=oa;qa=i;i=i+8|0;va=qa;za=i;i=i+8|0;ya=za;Ba=i;i=i+8|0;Aa=Ba;Ga=i;i=i+8|0;Ja=Ga;Ma=i;i=i+8|0;Na=Ma;Qa=i;i=i+8|0;Oa=Qa;Sa=i;i=i+8|0;Ra=Sa;Ua=i;i=i+8|0;Ta=Ua;Wa=i;i=i+8|0;Va=Wa;fa=i;i=i+8|0;Xa=fa;Fa=i;i=i+16|0;h=Fa;Ha=i;i=i+16|0;j=Ha;Ca=i;i=i+16|0;k=Ca;J=i;i=i+16|0;l=J;G=i;i=i+16|0;m=G;M=i;i=i+16|0;f=M;w=i;i=i+16|0;n=w;v=i;i=i+16|0;q=v;ra=i;i=i+16|0;_=ra;sa=i;i=i+16|0;Y=sa;ta=i;i=i+16|0;W=ta;la=i;i=i+16|0;Z=la;na=i;i=i+16|0;V=na;ea=i;i=i+16|0;X=ea;R=i;i=i+16|0;P=R;La=b+4|0;c[La>>2]=d;c[b>>2]=34088;c[Fa>>2]=13;Ka=h+8|0;c[Ka>>2]=0;c[Ka+4>>2]=0;c[Ha>>2]=13;Ea=j+8|0;c[Ea>>2]=0;c[Ea+4>>2]=0;c[Ca>>2]=13;Da=k+8|0;c[Da>>2]=0;c[Da+4>>2]=0;c[J>>2]=13;K=l+8|0;c[K>>2]=0;c[K+4>>2]=0;c[G>>2]=13;D=m+8|0;c[D>>2]=0;c[D+4>>2]=0;c[M>>2]=13;O=f+8|0;c[O>>2]=0;Pa=O+4|0;c[Pa>>2]=0;c[w>>2]=13;z=n+8|0;c[z>>2]=0;c[z+4>>2]=0;c[v>>2]=13;u=q+8|0;c[u>>2]=0;c[u+4>>2]=0;c[ra>>2]=13;wa=_+8|0;c[wa>>2]=0;c[wa+4>>2]=0;c[sa>>2]=13;xa=Y+8|0;c[xa>>2]=0;c[xa+4>>2]=0;c[ta>>2]=13;ua=W+8|0;c[ua>>2]=0;c[ua+4>>2]=0;c[la>>2]=13;ga=Z+8|0;c[ga>>2]=0;c[ga+4>>2]=0;c[na>>2]=13;pa=V+8|0;c[pa>>2]=0;c[pa+4>>2]=0;c[ea>>2]=13;$=X+8|0;c[$>>2]=0;c[$+4>>2]=0;c[R>>2]=13;U=P+8|0;c[U>>2]=0;c[U+4>>2]=0;y=b+64|0;d=b+60|0;L=b+52|0;C=b+56|0;bX(L|0,0,13)|0;Ya=c[e>>2]|0;if((Ya|0)!=7){c[fa>>2]=Ya;c[Xa+4>>2]=7;Qe(0,34440,Xa);tc()}fa=e+8|0;Yu(c[fa>>2]|0,34144,h,0)|0;Xa=c[e>>2]|0;if((Xa|0)!=7){c[Wa>>2]=Xa;c[Va+4>>2]=7;Qe(0,34440,Va);tc()}Yu(c[fa>>2]|0,34152,j,0)|0;Va=c[e>>2]|0;if((Va|0)!=7){c[Ua>>2]=Va;c[Ta+4>>2]=7;Qe(0,34440,Ta);tc()}Yu(c[fa>>2]|0,34160,k,0)|0;Ta=c[e>>2]|0;if((Ta|0)!=7){c[Sa>>2]=Ta;c[Ra+4>>2]=7;Qe(0,34440,Ra);tc()}Yu(c[fa>>2]|0,34168,l,0)|0;Ra=c[e>>2]|0;if((Ra|0)!=7){c[Qa>>2]=Ra;c[Oa+4>>2]=7;Qe(0,34440,Oa);tc()}Yu(c[fa>>2]|0,34176,m,0)|0;Oa=c[e>>2]|0;if((Oa|0)!=7){c[Ma>>2]=Oa;c[Na+4>>2]=7;Qe(0,34440,Na);tc()}Yu(c[fa>>2]|0,34184,f,0)|0;if((c[M>>2]|0)==14){Ya=c[O>>2]|0;Of(f);c[Pa>>2]=0;c[M>>2]=1;c[O>>2]=Ya}Ma=c[(c[La>>2]|0)+28>>2]|0;La=c[Ma+40>>2]|0;if((La|0)!=7){c[Ga>>2]=La;c[Ja+4>>2]=7;Qe(0,34440,Ja);tc()}Yu(c[Ma+48>>2]|0,34192,n,0)|0;a:do{if((c[Fa>>2]|0)==1){if((c[Ha>>2]|0)!=1){o=85;break}if((c[J>>2]|0)!=3){o=85;break}if((c[(c[K>>2]|0)+24>>2]|0)!=32){o=85;break}if((c[G>>2]|0)!=3){o=85;break}if((c[(c[D>>2]|0)+24>>2]|0)!=32){o=85;break}if((c[M>>2]|0)!=1){o=85;break}Ha=c[Ka>>2]|0;Fa=b+36|0;c[Fa>>2]=Ha;Ia=c[Ea>>2]|0;Ea=b+40|0;c[Ea>>2]=Ia;Ga=b+48|0;c[Ga>>2]=0;do{if((Ia|0)==2){o=26}else{if((c[Ca>>2]|0)!=1){o=26;break}c[b+32>>2]=(c[Da>>2]|0)/8|0}}while(0);if((o|0)==26){c[b+32>>2]=5}Ca=b+44|0;a[Ca]=1;do{if((Ha|0)==4&(Ia|0)==4){Da=c[e>>2]|0;if((Da|0)!=7){c[Ba>>2]=Da;c[Aa+4>>2]=7;Qe(0,34440,Aa);tc()}Yu(c[fa>>2]|0,34200,_,0)|0;Aa=c[e>>2]|0;if((Aa|0)!=7){c[za>>2]=Aa;c[ya+4>>2]=7;Qe(0,34440,ya);tc()}Yu(c[fa>>2]|0,34208,Y,0)|0;ya=c[e>>2]|0;if((ya|0)!=7){c[qa>>2]=ya;c[va+4>>2]=7;Qe(0,34440,va);tc()}Yu(c[fa>>2]|0,34216,W,0)|0;do{if((c[ra>>2]|0)==7){if((c[sa>>2]|0)!=4){break}if((c[ta>>2]|0)!=4){break}qa=c[xa>>2]|0;if((Qc(qa|0,c[ua>>2]|0)|0)!=0){break}if((c[(Yu(c[wa>>2]|0,qa,Z,0)|0)>>2]|0)==7){qa=c[la>>2]|0;if((qa|0)!=7){c[oa>>2]=qa;c[ma+4>>2]=7;Qe(0,34440,ma);tc()}Yu(c[ga>>2]|0,34224,V,0)|0;do{if((c[na>>2]|0)==4){ma=c[pa>>2]|0;if((Qc(ma|0,34232)|0)==0){c[Fa>>2]=2;c[Ea>>2]=3;ca=c[la>>2]|0;if((ca|0)!=7){c[ha>>2]=ca;c[ia+4>>2]=7;Qe(0,34440,ia);tc()}do{if((c[(Yu(c[ga>>2]|0,34160,X,0)|0)>>2]|0)==1){ca=c[ea>>2]|0;if((ca|0)==1){c[b+32>>2]=c[$>>2];break}else{c[ba>>2]=ca;c[aa+4>>2]=1;Qe(0,34440,aa);tc()}}}while(0);Of(X);break}if((Qc(ma|0,34240)|0)!=0){break}c[Fa>>2]=2;c[Ea>>2]=3;c[Ga>>2]=1;aa=c[la>>2]|0;if((aa|0)!=7){c[ka>>2]=aa;c[ja+4>>2]=7;Qe(0,34440,ja);tc()}do{if((c[(Yu(c[ga>>2]|0,34160,X,0)|0)>>2]|0)==1){aa=c[ea>>2]|0;if((aa|0)==1){c[b+32>>2]=c[$>>2];break}else{c[da>>2]=aa;c[ca+4>>2]=1;Qe(0,34440,ca);tc()}}}while(0);Of(X)}}while(0);Of(V)}Of(Z)}}while(0);Of(W);Of(Y);Of(_);V=c[e>>2]|0;if((V|0)!=7){c[S>>2]=V;c[T+4>>2]=7;Qe(0,34440,T);tc()}do{if((c[(Yu(c[fa>>2]|0,34248,P,0)|0)>>2]|0)==0){R=c[R>>2]|0;if((R|0)==0){a[Ca]=a[U]&1;break}else{c[Q>>2]=R;c[N+4>>2]=0;Qe(0,34440,N);tc()}}}while(0);Of(P);M=c[M>>2]|0;if((M|0)==1){break}c[I>>2]=M;c[H+4>>2]=1;Qe(0,34440,H);tc()}}while(0);c[b+8>>2]=c[O>>2];H=c[J>>2]|0;if((H|0)!=3){c[F>>2]=H;c[E+4>>2]=3;Qe(0,34440,E);tc()}Ya=c[K>>2]|0;E=FW(32)|0;ie(E,Ya);c[L>>2]=E;E=c[G>>2]|0;if((E|0)!=3){c[A>>2]=E;c[B+4>>2]=3;Qe(0,34440,B);tc()}B=c[D>>2]|0;A=FW(32)|0;ie(A,B);c[C>>2]=A;A=c[Fa>>2]|0;B=c[Ea>>2]|0;do{if((A+ -1|0)>>>0<2){if((B+ -2|0)>>>0>=2){break}if((c[w>>2]|0)==6){do{if((c[(ut(c[z>>2]|0,0,q)|0)>>2]|0)==3){t=c[v>>2]|0;if((t|0)==3){Ya=c[u>>2]|0;p=FW(32)|0;ie(p,Ya);break}else{c[r>>2]=t;c[s+4>>2]=3;Qe(0,34440,s);tc()}}else{p=FW(32)|0;ee(p)}}while(0);c[d>>2]=p;Of(q)}else{Ya=FW(32)|0;ee(Ya);c[d>>2]=Ya}a[y]=1;break a}}while(0);c[x>>2]=A;c[t+4>>2]=B;Qe(-1,34264,t)}else{o=85}}while(0);if((o|0)==85){Qe(-1,34336,Ia)}o=b+32|0;if((c[o>>2]|0)<=16){Of(n);Of(f);Of(m);Of(l);Of(k);Of(j);Of(h);i=g;return}c[o>>2]=16;Of(n);Of(f);Of(m);Of(l);Of(k);Of(j);Of(h);i=g;return}function sg(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=34088;d=c[a+60>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+52>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+56>>2]|0;if((d|0)==0){HW(a);i=b;return}ke(d);HW(d);HW(a);i=b;return}function tg(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=34088;d=c[a+60>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+52>>2]|0;if((d|0)!=0){ke(d);HW(d)}a=c[a+56>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}function ug(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;a=FW(8)|0;if((b|0)==0){b=0}else{f=FW(32)|0;ie(f,b);b=f}if((d|0)==0){d=0}else{f=FW(32)|0;ie(f,d);d=f}c[a>>2]=b;c[a+4>>2]=d;i=e;return a|0}function vg(a){a=a|0;i=i;return 0}function wg(a,b){a=a|0;b=b|0;var d=0;a=i;if((b|0)==0){i=a;return}d=c[b>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[b+4>>2]|0;if((d|0)!=0){ke(d);HW(d)}HW(b);i=a;return}function xg(b,d){b=b|0;d=d|0;var e=0,f=0;e=i;if((a[b+64|0]&1)==0){d=0;i=e;return d|0}if((d|0)==0){f=0;d=0}else{f=c[d>>2]|0;d=c[d+4>>2]|0}d=Cu(c[b+36>>2]|0,c[b+40>>2]|0,c[b+32>>2]|0,c[b+52>>2]|0,c[b+56>>2]|0,c[b+8>>2]|0,c[b+60>>2]|0,f,d,b+13|0,(a[b+44|0]&1)!=0,b+12|0)|0;i=e;return d|0}function yg(a){a=a|0;i=i;return c[a+8>>2]|0}function zg(b){b=b|0;i=i;return(a[b+12|0]&1)!=0|0}function Ag(a){a=a|0;i=i;return a+13|0}function Bg(a){a=a|0;i=i;return c[a+32>>2]|0}function Cg(a){a=a|0;i=i;return c[a+36>>2]|0}function Dg(a){a=a|0;i=i;return c[a+40>>2]|0}function Eg(a){a=a|0;i=i;return c[a+48>>2]|0}function Fg(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function Gg(a){a=a|0;i=i;return}function Hg(b,d,e,f){b=b|0;d=+d;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;j=i;i=i+8|0;h=i;i=i+16|0;k=h;m=i;i=i+128|0;n=m;o=c[b+4>>2]|0;l=c[o+8>>2]|0;fB(o,d,n);if((a[b+12|0]&1)!=0){a[f]=(((c[m>>2]|0)*255|0)+32768|0)>>>16;a[f+1|0]=(((c[n+4>>2]|0)*255|0)+32768|0)>>>16;a[f+2|0]=(((c[n+8>>2]|0)*255|0)+32768|0)>>>16;i=g;return}switch(e|0){case 1:case 0:{Gd[c[(c[l>>2]|0)+16>>2]&255](l,n,j);l=0;k=0;h=(((c[j>>2]|0)*255|0)+32768|0)>>>16&255;break};case 2:case 3:case 4:{Gd[c[(c[l>>2]|0)+20>>2]&255](l,n,k);l=(((c[k+8>>2]|0)*255|0)+32768|0)>>>16&255;k=(((c[k+4>>2]|0)*255|0)+32768|0)>>>16&255;h=(((c[h>>2]|0)*255|0)+32768|0)>>>16&255;break};default:{l=0;k=0;h=0}}a[f]=h;a[f+1|0]=k;a[f+2|0]=l;i=g;return}function Ig(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function Jg(a){a=a|0;i=i;return}function Kg(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0,s=0,t=0.0;g=i;k=i;i=i+8|0;m=k;j=i;i=i+16|0;l=j;o=i;i=i+128|0;n=o;s=i;i=i+8|0;r=i;i=i+8|0;Hy(b+8|0,+(d|0),+(e|0),s,r);q=+h[b+104>>3]*((+h[s>>3]- +h[b+56>>3])*+h[b+88>>3]+(+h[r>>3]- +h[b+64>>3])*+h[b+96>>3]);do{if(q<0.0){d=c[b+128>>2]|0;if((a[d+364|0]&1)==0){p=4;break}q=+h[b+112>>3]}else{p=4}}while(0);a:do{if((p|0)==4){do{if(q>1.0){d=c[b+128>>2]|0;if((a[d+365|0]&1)==0){break}q=+h[b+120>>3];break a}}while(0);if(q>=0.0&q<=1.0){t=+h[b+112>>3];d=c[b+128>>2]|0;q=t+q*(+h[b+120>>3]-t);break}else{s=0;i=g;return s|0}}}while(0);WA(d,q,n);n=b+132|0;$W((c[n>>2]|0)+124|0,o|0,128)|0;n=c[n>>2]|0;o=c[n+116>>2]|0;n=n+124|0;switch(c[b+136>>2]|0){case 2:case 3:case 4:{Gd[c[(c[o>>2]|0)+20>>2]&255](o,n,l);m=(((c[l+8>>2]|0)*255|0)+32768|0)>>>16&255;l=(((c[l+4>>2]|0)*255|0)+32768|0)>>>16&255;j=(((c[j>>2]|0)*255|0)+32768|0)>>>16&255;break};case 1:case 0:{Gd[c[(c[o>>2]|0)+16>>2]&255](o,n,m);m=0;l=0;j=(((c[k>>2]|0)*255|0)+32768|0)>>>16&255;break};default:{m=0;l=0;j=0}}a[f]=j;a[f+1|0]=l;a[f+2|0]=m;s=1;i=g;return s|0}function Lg(d,e,f,g,j,k,l,m,n,o,p,q){d=d|0;e=e|0;f=+f;g=+g;j=+j;k=+k;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var r=0,s=0,t=0,u=0;r=i;s=i;i=i+8|0;u=e;t=c[u+4>>2]|0;e=d;c[e>>2]=c[u>>2];c[e+4>>2]=t;h[d+8>>3]=f;h[d+16>>3]=g;h[d+24>>3]=j;h[d+32>>3]=k;c[d+40>>2]=l;c[d+44>>2]=m;c[d+48>>2]=n;c[d+52>>2]=o;a[d+56|0]=p&1;if(q){m=da(o,n)|0;c[d+60>>2]=m}else{m=da(n+7>>3,o)|0;c[d+60>>2]=m}p=d+68|0;c[p>>2]=8;do{if((m|0)<257){c[d+64>>2]=8;e=8;l=8}else{if((m|0)<513){c[d+64>>2]=4;e=4;l=8;break}if((m|0)<1025){c[d+64>>2]=2;e=2;l=8;break}if((m|0)<2049){c[d+64>>2]=1;c[p>>2]=4;e=1;l=4;break}c[d+64>>2]=1;if((m|0)<4097){c[p>>2]=2;e=1;l=2;break}else{c[p>>2]=1;e=1;l=1;break}}}while(0);q=d+64|0;do{if((m|0)<(((10485760/(l>>>0)|0)>>>0)/(e>>>0)|0|0)){u=ze(da(e,l)|0,m)|0;c[d+72>>2]=u;if((u|0)==0){break}s=ye(da(c[p>>2]|0,c[q>>2]|0)|0,4)|0;d=d+76|0;c[d>>2]=s;m=c[p>>2]|0;if((da(m,c[q>>2]|0)|0)>0){l=0}else{i=r;return}while(1){b[s+(l<<2)+2>>1]=m+65535&l;l=l+1|0;m=c[p>>2]|0;if((l|0)>=(da(m,c[q>>2]|0)|0)){break}s=c[d>>2]|0}i=r;return}else{Qe(-1,34592,s);c[d+72>>2]=0}}while(0);c[d+76>>2]=0;i=r;return}function Mg(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0;k=i;c[b+104>>2]=0;c[b>>2]=34864;l=b+112|0;c[l>>2]=d;d=b+116|0;c[d>>2]=e;e=b+120|0;a[e]=h&1;a[b+121|0]=j&1;do{if(j){if(!(kf(c[834]|0)|0)){h=0;break}h=(c[l>>2]|0)!=0|0}else{h=0}}while(0);j=b+122|0;a[j]=h;a[b+123|0]=0;Ng(b,72.0,72.0);a[b+124|0]=f&1;h=(g|0)==0;f=b+125|0;if(h){a[f]=0;a[b+126|0]=0;a[b+127|0]=0}else{a[f]=a[g]|0;a[b+126|0]=a[g+1|0]|0;a[b+127|0]=a[g+2|0]|0}a[b+109|0]=h&1;c[b+176>>2]=0;g=FW(28)|0;h=c[l>>2]|0;Ke(g,1,1,c[d>>2]|0,h,(h|0)!=0,(a[e]&1)!=0);c[b+180>>2]=g;h=FW(192)|0;Jo(h,g,(a[j]&1)!=0,b+136|0);c[b+184>>2]=h;ep(h,f,0);c[b+188>>2]=0;c[b+240>>2]=0;a[b+108|0]=0;c[b+244>>2]=0;bX(b+224|0,0,13)|0;i=k;return}function Ng(a,b,d){a=a|0;b=+b;d=+d;var e=0,f=0,g=0,j=0;e=i;g=a+136|0;f=a+140|0;c[f>>2]=nf(c[834]|0)|0;j=a+144|0;c[j>>2]=of(c[834]|0)|0;h[a+152>>3]=+pf(c[834]|0);h[a+160>>3]=+qf(c[834]|0);h[a+168>>3]=+rf(c[834]|0);a=mf(c[834]|0)|0;if((a|0)==2){c[g>>2]=1;if((c[f>>2]|0)>=0){i=e;return}c[f>>2]=10;i=e;return}else if((a|0)==1){c[g>>2]=0;if((c[f>>2]|0)>=0){i=e;return}c[f>>2]=4;i=e;return}else if((a|0)==3){c[g>>2]=2;if((c[f>>2]|0)<0){c[f>>2]=100}if((c[j>>2]|0)>=0){i=e;return}c[j>>2]=2;i=e;return}else{if(!(b>299.9&d>299.9)){c[g>>2]=0;if((c[f>>2]|0)>=0){i=e;return}c[f>>2]=4;i=e;return}c[g>>2]=2;if((c[f>>2]|0)<0){c[f>>2]=100}if((c[j>>2]|0)>=0){i=e;return}c[j>>2]=2;i=e;return}}function Og(a){a=a|0;var b=0;b=i;Pg(a);HW(a);i=b;return}function Pg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=34864;d=a+224|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+192+(e<<2)>>2]|0;if((g|0)!=0){Fe(c[g+72>>2]|0);Fe(c[g+76>>2]|0);HW(g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}d=c[a+188>>2]|0;if((d|0)!=0){Np(d);HW(d)}d=c[a+184>>2]|0;if((d|0)!=0){Lo(d);HW(d)}a=c[a+180>>2]|0;if((a|0)==0){i=b;return}Le(a);HW(a);i=b;return}function Qg(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;c[b+176>>2]=d;d=b+188|0;f=c[d>>2]|0;if((f|0)!=0){Np(f);HW(f)}f=FW(68)|0;g=hf(c[834]|0)|0;h=(a[b+123|0]&1)!=0;do{if((a[b+121|0]&1)==0){j=0}else{if(!(jf(c[834]|0)|0)){j=0;break}j=(c[b+112>>2]|0)!=0}}while(0);Mp(f,g,h,j);c[d>>2]=f;d=b+224|0;g=c[d>>2]|0;if((g|0)>0){f=0}else{j=d;c[j>>2]=0;i=e;return}do{h=c[b+192+(f<<2)>>2]|0;if((h|0)!=0){Fe(c[h+72>>2]|0);Fe(c[h+76>>2]|0);HW(h);g=c[d>>2]|0}f=f+1|0;}while((f|0)<(g|0));j=d;c[j>>2]=0;i=e;return}function Rg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;d=i;j=i;i=i+48|0;g=j;k=i;i=i+8|0;l=k;m=(e|0)!=0;if(m){Ng(b,+h[e>>3],+h[e+8>>3]);n=~~(+h[e+96>>3]+.5);o=~~(+h[e+104>>3]+.5);o=(o|0)<1?1:o;p=(n|0)<1?1:n}else{o=1;p=1}n=b+184|0;q=c[n>>2]|0;if((q|0)!=0){Lo(q);HW(q)}q=b+180|0;r=c[q>>2]|0;do{if((r|0)==0){f=9}else{if((p|0)==(c[r>>2]|0)){if((o|0)==(c[r+4>>2]|0)){break}}Le(r);HW(r);f=9}}while(0);if((f|0)==9){r=FW(28)|0;s=c[b+112>>2]|0;Ke(r,p,o,c[b+116>>2]|0,s,(s|0)!=0,(a[b+120|0]&1)!=0);c[q>>2]=r}o=FW(192)|0;Jo(o,r,(a[b+122|0]&1)!=0,b+136|0);c[n>>2]=o;if(m){h[j>>3]=+h[e+16>>3];h[g+8>>3]=+h[e+24>>3];h[g+16>>3]=+h[e+32>>3];h[g+24>>3]=+h[e+40>>3];h[g+32>>3]=+h[e+48>>3];h[g+40>>3]=+h[e+56>>3];Po(o,g)}switch(c[b+112>>2]|0){case 1:case 0:{a[k]=0;break};case 4:{a[l+3|0]=-1;f=16;break};case 3:case 2:{f=16;break};default:{}}if((f|0)==16){a[l+2|0]=0;a[l+1|0]=0;a[k]=0}s=c[n>>2]|0;r=FW(8)|0;tq(r,l);Qo(s,r);r=c[n>>2]|0;s=FWFW(8)|0;tq(d,g);i=h;return d|0};case 3:case 2:{break};default:{d=0;i=h;return d|0}}a[f]=((e*255|0)+32768|0)>>>16;a[g+1|0]=((j*255|0)+32768|0)>>>16;a[g+2|0]=((k*255|0)+32768|0)>>>16;d=FW(8)|0;tq(d,g);i=h;return d|0}function eh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;f=i;i=i+8|0;e=i;i=i+16|0;g=b+120|0;h=c[g>>2]|0;b=b+252|0;Gd[c[(c[h>>2]|0)+16>>2]&255](h,b,f);g=c[g>>2]|0;Gd[c[(c[g>>2]|0)+20>>2]&255](g,b,e);b=c[a+184>>2]|0;Qo(b,dh(a,c[f>>2]|0,e)|0);i=d;return}function fh(a,b){a=a|0;b=b|0;var d=0;d=i;So(c[a+184>>2]|0,c[35280+(c[b+388>>2]<<2)>>2]|0);i=d;return}function gh(a,b){a=a|0;b=b|0;var d=0;d=i;Uo(c[a+184>>2]|0,+h[b+392>>3]);i=d;return}function hh(a,b){a=a|0;b=b|0;var d=0;d=i;To(c[a+184>>2]|0,+h[b+400>>3]);i=d;return}function ih(b,c){b=b|0;c=c|0;a[b+236|0]=1;i=i;return}function jh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,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.0,O=0.0,P=0.0,Q=0.0,R=0.0,S=0.0;e=i;q=i;i=i+8|0;p=q;u=i;i=i+8|0;v=u;E=i;i=i+8|0;D=E;y=i;i=i+8|0;F=y;s=i;i=i+8|0;r=s;z=i;i=i+8|0;A=z;C=i;i=i+8|0;x=C;B=i;i=i+8|0;w=B;J=i;i=i+8|0;o=J;H=i;i=i+8|0;L=H;g=i;i=i+32|0;j=g;t=i;i=i+8|0;G=t;a[b+236|0]=0;k=b+232|0;c[k>>2]=0;m=c[d+484>>2]|0;if((m|0)==0){i=e;return}n=c[m+40>>2]|0;if((n|0)==4){i=e;return}f=FW(12)|0;dq(f);c[f>>2]=35936;M=m+12|0;K=c[M+4>>2]|0;l=f+4|0;c[l>>2]=c[M>>2];c[l+4>>2]=K;l=b+188|0;K=Op(c[l>>2]|0,f)|0;a:do{if((K|0)==0){b:do{if((c[m+52>>2]|0)>-1){M=$x(m,c[b+176>>2]|0,L)|0;if((M|0)==0){n=0}else{o=0;J=0;K=0;L=n;I=17}}else{K=c[m+60>>2]|0;if((K|0)!=0){o=0;J=0;L=n;M=0;I=17;break}L=m+20|0;do{if((c[L>>2]|0)==0){g=35376}else{K=ff(c[834]|0,m)|0;if((K|0)==0){g=c[L>>2]|0;if((g|0)==0){g=35376;break}g=c[g+28>>2]|0;break}o=c[K+8>>2]|0;if((o|0)==0){K=c[K+12>>2]|0;M=jd[c[c[m>>2]>>2]&511](m)|0;o=1;J=0;L=M?7:1;M=0;I=17;break b}else if((o|0)==1){L=c[K+12>>2]|0;M=jd[c[c[m>>2]>>2]&511](m)|0;o=1;J=c[K+16>>2]|0;K=L;L=M?10:5;M=0;I=17;break b}else{o=1;J=0;K=0;L=n;M=0;I=17;break b}}}while(0);c[J>>2]=g;Qe(-1,35344,o);n=0}}while(0);c:do{if((I|0)==17){n=FW(24)|0;aq(n);I=(K|0)!=0;if(I){bq(n,K,0)}else{cq(n,M,c[H>>2]|0,1)}d:do{switch(L|0){case 8:case 7:{K=Sp(c[l>>2]|0,f,n)|0;if((K|0)!=0){break d}g=c[m+20>>2]|0;if((g|0)==0){g=35376}else{g=c[g+28>>2]|0}c[y>>2]=g;Qe(-1,35392,F);break c};case 9:{K=Tp(c[l>>2]|0,f,n)|0;if((K|0)!=0){break d}g=c[m+20>>2]|0;if((g|0)==0){g=35376}else{g=c[g+28>>2]|0}c[E>>2]=g;Qe(-1,35392,D);break c};case 11:case 10:{c[t>>2]=0;r=m+224|0;do{if((c[r>>2]|0)==0){if(I){r=Dn(c[K+28>>2]|0,0)|0}else{r=Cn(M,c[H>>2]|0,0)|0}if((r|0)!=0){M=ty(m,r,G)|0;fd[c[(c[r>>2]|0)+4>>2]&511](r);r=M;break}g=c[m+20>>2]|0;if((g|0)==0){g=35376}else{g=c[g+28>>2]|0}c[u>>2]=g;Qe(-1,35392,v);break c}else{s=c[m+228>>2]|0;c[t>>2]=s;if((s|0)==0){r=0;break}M=ye(s,2)|0;$W(M|0,c[r>>2]|0,c[t>>2]<<1|0)|0;r=M}}while(0);K=Up(c[l>>2]|0,f,n,r,c[t>>2]|0,J)|0;if((K|0)!=0){break d}g=c[m+20>>2]|0;if((g|0)==0){g=35376}else{g=c[g+28>>2]|0}c[q>>2]=g;Qe(-1,35392,p);break c};case 6:case 5:{if(I){p=Dn(c[K+28>>2]|0,0)|0}else{p=Cn(M,c[H>>2]|0,0)|0}if((p|0)==0){c[t>>2]=0;p=0;q=0}else{q=hy(m,p)|0;c[t>>2]=256;fd[c[(c[p>>2]|0)+4>>2]&511](p);p=c[t>>2]|0}K=Up(c[l>>2]|0,f,n,q,p,0)|0;if((K|0)!=0){break d}g=c[m+20>>2]|0;if((g|0)==0){g=35376}else{g=c[g+28>>2]|0}c[s>>2]=g;Qe(-1,35392,r);break c};case 2:{K=Qp(c[l>>2]|0,f,n,m+176|0)|0;if((K|0)!=0){break d}g=c[m+20>>2]|0;if((g|0)==0){g=35376}else{g=c[g+28>>2]|0}c[C>>2]=g;Qe(-1,35392,x);break c};case 3:{K=Rp(c[l>>2]|0,f,n,m+176|0)|0;if((K|0)!=0){break d}g=c[m+20>>2]|0;if((g|0)==0){g=35376}else{g=c[g+28>>2]|0}c[z>>2]=g;Qe(-1,35392,A);break c};case 1:{K=Pp(c[l>>2]|0,f,n,m+176|0)|0;if((K|0)!=0){break d}g=c[m+20>>2]|0;if((g|0)==0){g=35376}else{g=c[g+28>>2]|0}c[B>>2]=g;Qe(-1,35392,w);break c};default:{break c}}}while(0);a[K+4|0]=o;break a}}while(0);if((f|0)!=0){fd[c[(c[f>>2]|0)+4>>2]&511](f)}if((n|0)==0){i=e;return}if((a[n]&1)!=0){i=e;return}Zp(n);i=e;return}else{if((f|0)==0){n=0;break}fd[c[(c[f>>2]|0)+4>>2]&511](f);n=0}}while(0);Q=+h[d+488>>3];P=+h[d+560>>3];O=Q*+h[d+496>>3]*P;P=P*Q*+h[d+504>>3];N=Q*+h[d+512>>3];Q=Q*+h[d+520>>3];h[g>>3]=O;o=j+8|0;h[o>>3]=P;d=j+16|0;h[d>>3]=N;f=j+24|0;h[f>>3]=Q;M=c[l>>2]|0;b=b+184|0;c[k>>2]=Vp(M,K,j,No(c[b>>2]|0)|0)|0;e:do{if((a[K+4|0]&1)!=0){if(jd[c[c[m>>2]>>2]&511](m)|0){break}p=0;f:while(1){q=c[m+176+(p<<2)>>2]|0;do{if((q|0)!=0){if((a[q]|0)!=109){break}if((a[q+1|0]|0)==0){break f}}}while(0);p=p+1|0;if(p>>>0>=256){break e}}R=+h[m+1464+((p&255)<<3)>>3];M=c[k>>2]|0;S=+Dd[c[(c[M>>2]|0)+20>>2]&3](M,p);if(!((c[m+44>>2]&4|0)==0&S>0.0&R>.01&R<S*.9)){break}S=R/S;h[g>>3]=O*S;h[o>>3]=P;h[d>>3]=N*S;h[f>>3]=Q;M=c[l>>2]|0;c[k>>2]=Vp(M,K,j,No(c[b>>2]|0)|0)|0}}while(0);if((n|0)==0){i=e;return}if((a[n]&1)!=0){i=e;return}Zp(n);i=e;return}function kh(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[b+120>>2]|0;if(jd[c[(c[e>>2]|0)+56>>2]&511](e)|0){i=d;return}b=lh(0,0,c[b+588>>2]|0)|0;fp(c[a+184>>2]|0,b)|0;if((b|0)==0){i=d;return}hq(b);HW(b);i=d;return}function lh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0,t=0;b=i;f=FW(32)|0;gq(f);d=e+28|0;if((c[d>>2]|0)<=0){i=b;return f|0}k=e+24|0;j=0;do{l=c[(c[k>>2]|0)+(j<<2)>>2]|0;e=l+12|0;do{if((c[e>>2]|0)>0){g=l+4|0;jq(f,+h[c[l>>2]>>3],+h[c[g>>2]>>3])|0;if((c[e>>2]|0)>1){m=l+8|0;p=1;do{o=c[l>>2]|0;r=+h[o+(p<<3)>>3];n=c[g>>2]|0;q=+h[n+(p<<3)>>3];if((a[(c[m>>2]|0)+p|0]&1)==0){kq(f,r,q)|0;p=p+1|0}else{t=p+1|0;s=p+2|0;lq(f,r,q,+h[o+(t<<3)>>3],+h[n+(t<<3)>>3],+h[o+(s<<3)>>3],+h[n+(s<<3)>>3])|0;p=p+3|0}}while((p|0)<(c[e>>2]|0))}if((a[l+20|0]&1)==0){break}mq(f)|0}}while(0);j=j+1|0;}while((j|0)<(c[d>>2]|0));i=b;return f|0}function mh(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[b+116>>2]|0;if(jd[c[(c[e>>2]|0)+56>>2]&511](e)|0){i=d;return}b=lh(0,0,c[b+588>>2]|0)|0;op(c[a+184>>2]|0,b,0)|0;if((b|0)==0){i=d;return}hq(b);HW(b);i=d;return}function nh(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[b+116>>2]|0;if(jd[c[(c[e>>2]|0)+56>>2]&511](e)|0){i=d;return}b=lh(0,0,c[b+588>>2]|0)|0;op(c[a+184>>2]|0,b,1)|0;if((b|0)==0){i=d;return}hq(b);HW(b);i=d;return}function oh(a,b){a=a|0;b=b|0;var d=0;d=i;b=lh(0,0,c[b+588>>2]|0)|0;ap(c[a+184>>2]|0,b,0)|0;if((b|0)==0){i=d;return}hq(b);HW(b);i=d;return}function ph(a,b){a=a|0;b=b|0;var d=0;d=i;b=lh(0,0,c[b+588>>2]|0)|0;ap(c[a+184>>2]|0,b,1)|0;if((b|0)==0){i=d;return}hq(b);HW(b);i=d;return}function qh(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;b=lh(0,0,c[b+588>>2]|0)|0;e=a+184|0;a=lp(c[e>>2]|0,b,1)|0;if((b|0)!=0){hq(b);HW(b)}ap(c[e>>2]|0,a,0)|0;if((a|0)==0){i=d;return}hq(a);HW(a);i=d;return}function rh(b,d,e,f,g,h,j,k,l,m,n,o){b=b|0;d=d|0;e=+e;f=+f;g=+g;h=+h;j=+j;k=+k;l=l|0;m=m|0;n=n|0;o=o|0;var p=0;m=i;n=c[d+584>>2]|0;if((n|0)==3){i=m;return}if((a[b+236|0]&1)!=0){jh(b,d)}o=b+232|0;if((c[o>>2]|0)==0){i=m;return}e=e-j;f=f-k;do{if((n&1|0)==0){if((a[b+108|0]&1)!=0){break}p=c[d+116>>2]|0;if(jd[c[(c[p>>2]|0)+56>>2]&511](p)|0){break}qp(c[b+184>>2]|0,e,f,l,c[o>>2]|0)|0}}while(0);do{if(((n&3)+ -1|0)>>>0<2){p=c[d+120>>2]|0;if(jd[c[(c[p>>2]|0)+56>>2]&511](p)|0){break}d=c[o>>2]|0;d=Bd[c[(c[d>>2]|0)+16>>2]&255](d,l)|0;if((d|0)==0){break}oq(d,e,f);fp(c[b+184>>2]|0,d)|0;hq(d);HW(d)}}while(0);do{if((a[b+108|0]&1)==0){if((n&4|0)!=0){break}i=m;return}}while(0);p=c[o>>2]|0;l=Bd[c[(c[p>>2]|0)+16>>2]&255](p,l)|0;if((l|0)==0){i=m;return}oq(l,e,f);b=b+240|0;d=c[b>>2]|0;if((d|0)==0){c[b>>2]=l;i=m;return}else{iq(d,l);hq(l);HW(l);i=m;return}}function sh(d,f,g,j,k,l,m,n,o){d=d|0;f=f|0;g=+g;j=+j;k=+k;l=+l;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0,y=0,z=0.0,A=0.0,B=0,C=0.0,D=0.0,E=0.0,F=0.0,G=0.0,H=0.0,I=0.0,J=0.0,K=0.0,L=0.0,M=0.0,N=0,O=0,P=0.0,Q=0,S=0;n=i;p=i;i=i+32|0;o=p;r=c[f+484>>2]|0;if((r|0)==0){S=0;i=n;return S|0}q=r+12|0;x=f+16|0;z=+h[x>>3];y=f+32|0;k=+h[y>>3];v=f+48|0;l=+h[v>>3]+(z*0.0+k*0.0);t=f+24|0;g=+h[t>>3];u=f+40|0;w=+h[u>>3];f=f+56|0;j=+h[f>>3]+(g*0.0+w*0.0);B=d+224|0;N=c[B>>2]|0;a:do{if((N|0)>0){O=c[d+192>>2]|0;do{if((c[O>>2]|0)==(c[q>>2]|0)){if((c[O+4>>2]|0)!=(c[r+16>>2]|0)){break}if(+h[O+8>>3]!=z){break}if(+h[O+16>>3]!=g){break}if(+h[O+24>>3]!=k){break}if(+h[O+32>>3]==w){break a}}}while(0);if((N|0)<=1){O=1;s=22;break}S=c[q>>2]|0;Q=r+16|0;s=1;b:while(1){O=c[d+192+(s<<2)>>2]|0;do{if((c[O>>2]|0)==(S|0)){if((c[O+4>>2]|0)!=(c[Q>>2]|0)){break}if(+h[O+8>>3]!=z){break}if(+h[O+16>>3]!=g){break}if(+h[O+24>>3]!=k){break}if(+h[O+32>>3]==w){break b}}}while(0);s=s+1|0;if((s|0)>=(N|0)){O=s;s=22;break a}}if((s|0)>0){Q=s;while(1){N=Q+ -1|0;c[d+192+(Q<<2)>>2]=c[d+192+(N<<2)>>2];if((N|0)>0){Q=N}else{break}}N=c[B>>2]|0}c[d+192>>2]=O;O=s;s=22}else{O=1;s=22}}while(0);do{if((s|0)==22){if((O|0)<(N|0)){O=c[d+192>>2]|0;break}if((N|0)==8){O=c[d+220>>2]|0;if((O|0)!=0){Fe(c[O+72>>2]|0);Fe(c[O+76>>2]|0);HW(O);N=c[B>>2]|0}N=N+ -1|0;c[B>>2]=N}if((N|0)>0){while(1){O=N+ -1|0;c[d+192+(N<<2)>>2]=c[d+192+(O<<2)>>2];if((O|0)>0){N=O}else{break}}N=c[B>>2]|0}c[B>>2]=N+1;z=+h[r+112>>3];C=+h[r+120>>3];do{if(z==0.0&C==0.0){if(+h[r+128>>3]!=0.0){s=35;break}if(+h[r+136>>3]!=0.0){s=35;break}J=l+-5.0;G=j+15.0;z=+h[u>>3];k=+h[y>>3];w=+h[t>>3];g=+h[x>>3];r=0;H=J+30.0;F=G;G=G+-45.0}else{s=35}}while(0);do{if((s|0)==35){g=+h[x>>3];J=z*g;k=+h[y>>3];G=C*k;A=+h[v>>3];F=A+(J+G);w=+h[t>>3];M=z*w;z=+h[u>>3];I=C*z;D=+h[f>>3];K=D+(M+I);C=+h[r+136>>3];E=k*C;J=A+(J+E);C=z*C;M=D+(M+C);do{if(J<F){H=F}else{if(J<=F){H=F;J=F;break}H=J;J=F}}while(0);do{if(M<K){F=K}else{if(M<=K){F=K;M=K;break}F=M;M=K}}while(0);K=+h[r+128>>3];L=K*g;P=A+(L+G);K=K*w;G=D+(K+I);do{if(P<J){J=P}else{if(P<=H){break}H=P}}while(0);do{if(G>=M){if(G<=F){G=M;break}F=G;G=M}}while(0);E=A+(L+E);A=D+(K+C);do{if(E<J){J=E}else{if(E<=H){break}H=E}}while(0);if(A<G){r=1;G=A;break}if(A<=F){r=1;break}r=1;F=A}}while(0);O=FW(80)|0;B=~~+R(+(J-l));N=~~+R(+(G-j));Q=~~+ca(+H)+3-~~+R(+J)|0;S=~~+ca(+F)+3-~~+R(+G)|0;Lg(O,q,g,w,k,z,B,N,Q,S,r,(c[d+112>>2]|0)!=0);c[d+192>>2]=O}}while(0);q=c[O+68>>2]|0;r=da((c[O+64>>2]|0)+ -1&m,q)|0;c:do{if((q|0)>0){t=c[O+76>>2]|0;if((t|0)==0){o=0;while(1){o=o+1|0;if((o|0)>=(q|0)){break c}}}else{s=0}while(1){f=s+r|0;if((b[t+(f<<2)+2>>1]|0)<0){if((e[t+(f<<2)>>1]|0)==(m|0)){break}}s=s+1|0;if((s|0)>=(q|0)){break c}}S=(c[O+72>>2]|0)+(da(c[O+60>>2]|0,f)|0)|0;c[p>>2]=0-(c[O+40>>2]|0);c[o+4>>2]=0-(c[O+44>>2]|0);c[o+8>>2]=c[O+48>>2];c[o+12>>2]=c[O+52>>2];a[o+16|0]=(c[d+112>>2]|0)!=0|0;c[o+20>>2]=S;a[o+24|0]=0;sp(c[d+184>>2]|0,0.0,0.0,o);S=1;i=n;return S|0}}while(0);S=FW(48)|0;bX(S|0,0,48)|0;Q=d+228|0;c[S+40>>2]=c[Q>>2];c[Q>>2]=S;b[S>>1]=m;c[S+4>>2]=O;c[S+8>>2]=0;c[S+12>>2]=0;S=0;i=n;return S|0}function th(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0;f=i;j=i;i=i+32|0;k=j;e=b+228|0;l=c[e>>2]|0;if((c[l+8>>2]|0)!=0){g=b+180|0;$W(c[l+12>>2]|0,c[(c[g>>2]|0)+20>>2]|0,c[(c[l+4>>2]|0)+60>>2]|0)|0;l=c[g>>2]|0;if((l|0)!=0){Le(l);HW(l)}l=b+184|0;m=c[l>>2]|0;if((m|0)!=0){Lo(m);HW(m)}m=c[e>>2]|0;c[g>>2]=c[m+16>>2];c[l>>2]=c[m+20>>2];IB(d,+h[d+16>>3],+h[d+24>>3],+h[d+32>>3],+h[d+40>>3],+h[m+24>>3],+h[m+32>>3]);Ed[c[(c[b>>2]|0)+92>>2]&3](b,d,0.0,0.0,0.0,0.0,0.0,0.0);m=c[e>>2]|0;d=c[m+4>>2]|0;m=c[m+12>>2]|0;c[j>>2]=0-(c[d+40>>2]|0);c[k+4>>2]=0-(c[d+44>>2]|0);c[k+8>>2]=c[d+48>>2];c[k+12>>2]=c[d+52>>2];a[k+16|0]=(c[b+112>>2]|0)!=0|0;c[k+20>>2]=m;a[k+24|0]=0;sp(c[l>>2]|0,0.0,0.0,k);l=c[e>>2]|0}c[e>>2]=c[l+40>>2];if((l|0)==0){i=f;return}HW(l);i=f;return}function uh(a,b,c,d){a=a|0;b=b|0;c=+c;d=+d;i=i;return}function vh(d,f,g,j,k,l,m,n){d=d|0;f=f|0;g=+g;j=+j;k=+k;l=+l;m=+m;n=+n;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0.0,E=0.0,F=0,G=0,H=0.0,I=0.0,J=0.0,K=0.0,L=0.0,M=0.0,N=0.0,O=0.0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0.0;r=i;A=i;i=i+8|0;t=i;i=i+8|0;u=i;i=i+8|0;s=i;i=i+8|0;p=i;i=i+8|0;q=p;o=d+228|0;y=c[o>>2]|0;if((y|0)==0){Qe(-1,35424,s);i=r;return}if((c[y+16>>2]|0)!=0){Qe(-1,35480,u);i=r;return}if((c[y+20>>2]|0)!=0){Qe(-1,35552,t);i=r;return}z=c[y+4>>2]|0;v=f+16|0;L=+h[v>>3];t=f+32|0;W=+h[t>>3];w=f+48|0;E=+h[w>>3];j=E+(L*0.0+W*0.0);u=f+24|0;H=+h[u>>3];s=f+40|0;J=+h[s>>3];x=f+56|0;D=+h[x>>3];g=D+(H*0.0+J*0.0);M=L*k;K=W*l;I=E+(M+K);N=H*k;k=J*l;O=D+(N+k);l=W*n;M=E+(M+l);n=J*n;N=D+(N+n);do{if(M<I){J=I}else{if(M<=I){J=I;M=I;break}J=M;M=I}}while(0);do{if(N<O){I=O}else{if(N<=O){I=O;N=O;break}I=N;N=O}}while(0);L=L*m;K=E+(L+K);m=H*m;H=D+(m+k);do{if(K<M){M=K}else{if(K<=J){break}J=K}}while(0);do{if(H<N){N=H}else{if(H<=I){break}I=H}}while(0);E=E+(L+l);D=D+(m+n);do{if(E<M){M=E}else{if(E<=J){break}J=E}}while(0);do{if(D<N){N=D}else{if(D<=I){break}I=D}}while(0);B=z+40|0;G=c[B>>2]|0;do{if(M-j>=+(G|0)){C=z+44|0;P=c[C>>2]|0;if(N-g<+(P|0)){break}F=z+48|0;if(J-j>+((c[F>>2]|0)+G|0)){break}G=z+52|0;if(I-g>+((c[G>>2]|0)+P|0)){break}Q=z+76|0;R=c[Q>>2]|0;if((R|0)==0){i=r;return}P=z+68|0;S=c[P>>2]|0;A=da((c[z+64>>2]|0)+65535&(e[y>>1]|0),S)|0;if((S|0)>0){y=z+72|0;z=z+60|0;U=0;while(1){T=U+A|0;R=R+(T<<2)+2|0;V=b[R>>1]|0;if((V&32767|0)==(S+ -1|0)){b[R>>1]=-32768;b[(c[Q>>2]|0)+(T<<2)>>1]=b[c[o>>2]>>1]|0;c[(c[o>>2]|0)+8>>2]=(c[Q>>2]|0)+(T<<2);V=(c[y>>2]|0)+(da(c[z>>2]|0,T)|0)|0;c[(c[o>>2]|0)+12>>2]=V}else{b[R>>1]=V+1<<16>>16}U=U+1|0;S=c[P>>2]|0;if((U|0)>=(S|0)){break}R=c[Q>>2]|0}y=c[o>>2]|0}z=d+180|0;c[y+16>>2]=c[z>>2];y=d+184|0;c[(c[o>>2]|0)+20>>2]=c[y>>2];h[(c[o>>2]|0)+24>>3]=+h[w>>3];h[(c[o>>2]|0)+32>>3]=+h[x>>3];V=(c[d+112>>2]|0)==0;w=FW(28)|0;x=c[F>>2]|0;A=c[G>>2]|0;if(V){Ke(w,x,A,1,0,0,1);c[z>>2]=w;V=FW(192)|0;Ko(V,w,0,Oo(c[(c[o>>2]|0)+20>>2]|0)|0);c[y>>2]=V;a[p]=0;ep(V,q,0);a[p]=1}else{Ke(w,x,A,1,1,0,1);c[z>>2]=w;V=FW(192)|0;U=(a[d+122|0]&1)!=0;Ko(V,w,U,Oo(c[(c[o>>2]|0)+20>>2]|0)|0);c[y>>2]=V;a[p]=0;ep(V,q,0);a[p]=-1}V=c[y>>2]|0;U=FW(8)|0;tq(U,q);Ro(V,U);U=c[y>>2]|0;V=FWFW(28)|0;yj(d,f,g,1,1);c[p>>2]=d;Aj(d);a[s+4|0]=l&1^1;c[s+8>>2]=g;c[s+12>>2]=j;d=s+16|0;c[d>>2]=0;x=c[t>>2]|0;do{if((jd[c[(c[x>>2]|0)+12>>2]&511](x)|0)==10){w=FW(32)|0;bX(w|0,0,24)|0;c[w>>2]=0;c[w+4>>2]=0;c[w+12>>2]=0;a[w+16|0]=0;n=b+244|0;c[w+28>>2]=c[n>>2];c[n>>2]=w;n=b+180|0;l=c[n>>2]|0;v=w+20|0;c[v>>2]=l;u=b+184|0;t=w+24|0;c[t>>2]=c[u>>2];d=FW(28)|0;Ke(d,c[l>>2]|0,c[l+4>>2]|0,c[b+116>>2]|0,c[b+112>>2]|0,1,(a[b+120|0]&1)!=0);c[n>>2]=d;l=FW(192)|0;x=b+122|0;o=(a[x]&1)!=0;Ko(l,d,o,Oo(c[t>>2]|0)|0);c[u>>2]=l;t=c[n>>2]|0;Cp(l,c[v>>2]|0,0,0,0,0,c[t>>2]|0,c[t+4>>2]|0)|0;cp(c[u>>2]|0,c[v>>2]|0,0,0);n=c[n>>2]|0;c[w+8>>2]=n;w=FW(28)|0;Ke(w,c[n>>2]|0,c[n+4>>2]|0,1,1,0,1);c[b+248>>2]=w;n=FW(192)|0;Jo(n,w,(a[x]&1)!=0,0);a[m]=0;ep(n,q,0);a[m]=-1;x=FW(8)|0;tq(x,q);Ro(n,x);wp(n,182,s,g,j,r,(c[b+228>>2]|0)!=0)|0;if((n|0)==0){break}Lo(n);HW(n)}else{wp(c[b+184>>2]|0,182,s,g,j,r,(c[b+228>>2]|0)!=0)|0;if(!n){break}if((c[d>>2]|0)>=(j|0)){break}do{Bj(c[p>>2]|0)|0;x=(c[d>>2]|0)+1|0;c[d>>2]=x;}while((x|0)<(j|0))}}while(0);b=c[p>>2]|0;if((b|0)!=0){zj(b);HW(b)}fd[c[(c[f>>2]|0)+16>>2]&511](f);i=e;return}function Bh(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;f=i;p=i;i=i+8|0;o=p;n=i;i=i+16|0;m=n;g=b+28|0;if((c[g>>2]|0)==(c[b+24>>2]|0)){r=0;i=f;return r|0}h=b+4|0;q=c[h>>2]|0;k=c[q+8>>2]|0;l=b+8|0;j=b+16|0;r=c[j>>2]|0;a:do{if((c[l>>2]|0)==0){switch(r|0){case 3:case 2:case 4:{break};case 1:case 0:{l=Bj(c[b>>2]|0)|0;j=b+20|0;if((c[j>>2]|0)>0){m=0}else{break a}while(1){oB(c[h>>2]|0,l,o);a[e]=(((c[p>>2]|0)*255|0)+32768|0)>>>16;m=m+1|0;if((m|0)<(c[j>>2]|0)){e=e+1|0;l=l+k|0}else{break a}}break};default:{break a}}o=q+12|0;l=c[o>>2]|0;do{if((l|0)==0){l=18}else{if(jd[c[(c[l>>2]|0)+36>>2]&511](l)|0){p=Bj(c[b>>2]|0)|0;l=24;break}if((c[o>>2]|0)==0){l=18;break}p=Bj(c[b>>2]|0)|0;l=19}}while(0);if((l|0)==18){r=c[q>>2]|0;r=jd[c[(c[r>>2]|0)+36>>2]&511](r)|0;p=Bj(c[b>>2]|0)|0;if(r){l=24}else{l=19}}if((l|0)==19){o=b+20|0;if((c[o>>2]|0)<=0){break}b=m+4|0;l=m+8|0;q=0;while(1){pB(c[h>>2]|0,p,m);a[e]=(((c[n>>2]|0)*255|0)+32768|0)>>>16;a[e+1|0]=(((c[b>>2]|0)*255|0)+32768|0)>>>16;r=e+3|0;a[e+2|0]=(((c[l>>2]|0)*255|0)+32768|0)>>>16;if((c[j>>2]|0)==4){a[r]=-1;e=e+4|0}else{e=r}q=q+1|0;if((q|0)<(c[o>>2]|0)){p=p+k|0}else{break}}}else if((l|0)==24){k=b+20|0;l=ye(c[k>>2]|0,4)|0;qB(c[h>>2]|0,p,l,c[k>>2]|0);if((c[k>>2]|0)>0){h=0;do{r=l+(h<<2)|0;a[e]=(c[r>>2]|0)>>>16;a[e+1|0]=(c[r>>2]|0)>>>8;m=e+3|0;a[e+2|0]=c[r>>2];if((c[j>>2]|0)==4){a[m]=-1;e=e+4|0}else{e=m}h=h+1|0;}while((h|0)<(c[k>>2]|0))}Fe(l);break}}else{switch(r|0){case 1:case 0:{j=Bj(c[b>>2]|0)|0;h=b+20|0;if((c[h>>2]|0)>0){k=0}else{break a}while(1){a[e]=a[(c[l>>2]|0)+(d[j]|0)|0]|0;k=k+1|0;if((k|0)<(c[h>>2]|0)){e=e+1|0;j=j+1|0}else{break}}break};case 4:{j=Bj(c[b>>2]|0)|0;h=b+20|0;if((c[h>>2]|0)>0){k=0}else{break a}while(1){r=(d[j]|0)<<2;q=c[l>>2]|0;a[e]=a[q+r|0]|0;a[e+1|0]=a[q+(r|1)|0]|0;a[e+2|0]=a[q+(r|2)|0]|0;a[e+3|0]=a[q+(r|3)|0]|0;k=k+1|0;if((k|0)<(c[h>>2]|0)){e=e+4|0;j=j+1|0}else{break}}break};case 3:case 2:{j=Bj(c[b>>2]|0)|0;h=b+20|0;if((c[h>>2]|0)>0){k=0}else{break a}while(1){r=(d[j]|0)*3|0;q=c[l>>2]|0;a[e]=a[q+r|0]|0;a[e+1|0]=a[q+(r+1)|0]|0;a[e+2|0]=a[q+(r+2)|0]|0;k=k+1|0;if((k|0)<(c[h>>2]|0)){e=e+3|0;j=j+1|0}else{break}}break};default:{break a}}}}while(0);c[g>>2]=(c[g>>2]|0)+1;r=1;i=f;return r|0}function Ch(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;g=i;l=i;i=i+16|0;k=l;j=i;i=i+8|0;s=j;m=b+28|0;if((c[m>>2]|0)==(c[b+24>>2]|0)){A=0;i=g;return A|0}p=b+4|0;n=c[(c[p>>2]|0)+8>>2]|0;v=Bj(c[b>>2]|0)|0;o=b+20|0;if((c[o>>2]|0)>0){h=(n|0)>0;q=b+8|0;r=b+16|0;t=k+4|0;u=k+8|0;b=b+12|0;w=0;while(1){a:do{if(h){z=c[b>>2]|0;A=0;while(1){y=d[v+A|0]|0;x=A<<1;if((y|0)<(c[z+(x<<2)>>2]|0)){x=-1;break a}A=A+1|0;if((y|0)>(c[z+((x|1)<<2)>>2]|0)){x=-1;break a}if((A|0)>=(n|0)){x=0;break}}}else{x=0}}while(0);y=c[q>>2]|0;z=c[r>>2]|0;b:do{if((y|0)==0){switch(z|0){case 1:case 0:{oB(c[p>>2]|0,v,s);a[e]=(((c[j>>2]|0)*255|0)+32768|0)>>>16;a[f]=x;f=f+1|0;e=e+1|0;break b};case 3:case 2:case 4:{break};default:{break b}}pB(c[p>>2]|0,v,k);a[e]=(((c[l>>2]|0)*255|0)+32768|0)>>>16;a[e+1|0]=(((c[t>>2]|0)*255|0)+32768|0)>>>16;y=e+3|0;a[e+2|0]=(((c[u>>2]|0)*255|0)+32768|0)>>>16;if((c[r>>2]|0)==4){a[y]=-1;e=e+4|0}else{e=y}a[f]=x;f=f+1|0}else{switch(z|0){case 3:case 2:{A=(d[v]|0)*3|0;a[e]=a[y+A|0]|0;a[e+1|0]=a[y+(A+1)|0]|0;a[e+2|0]=a[y+(A+2)|0]|0;a[f]=x;f=f+1|0;e=e+3|0;break b};case 4:{A=(d[v]|0)<<2;a[e]=a[y+A|0]|0;a[e+1|0]=a[y+(A|1)|0]|0;a[e+2|0]=a[y+(A|2)|0]|0;a[e+3|0]=-1;a[f]=x;f=f+1|0;e=e+4|0;break b};case 1:case 0:{a[e]=a[y+(d[v]|0)|0]|0;a[f]=x;f=f+1|0;e=e+1|0;break b};default:{break b}}}}while(0);w=w+1|0;if((w|0)<(c[o>>2]|0)){v=v+n|0}else{break}}}c[m>>2]=(c[m>>2]|0)+1;A=1;i=g;return A|0}function Dh(b,d,e,f,g,j,l,m,n,o){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0.0,D=0.0;e=i;w=i;i=i+48|0;m=w;p=i;i=i+32|0;q=p;x=i;i=i+8|0;y=x;u=i;i=i+16|0;t=u;s=i;i=i+8|0;r=s;z=d+16|0;A=0;do{h[k>>3]=+h[d+16+(A<<3)>>3];B=c[k+4>>2]&2146435072;A=A+1|0;if(!(B>>>0<2146435072|(B|0)==2146435072&(c[k>>2]&0)>>>0<0)){v=20;break}}while((A|0)<6);if((v|0)==20){i=e;return}h[w>>3]=+h[z>>3];h[m+8>>3]=+h[d+24>>3];D=+h[d+32>>3];h[m+16>>3]=-0.0-D;C=+h[d+40>>3];h[m+24>>3]=-0.0-C;h[m+32>>3]=D+ +h[d+48>>3];h[m+40>>3]=C+ +h[d+56>>3];w=FW(28)|0;B=l+8|0;z=l+4|0;yj(w,f,g,c[B>>2]|0,c[z>>2]|0);c[p>>2]=w;Aj(w);c[q+4>>2]=l;c[q+12>>2]=n;w=b+112|0;A=c[w>>2]|0;c[q+16>>2]=A;c[q+20>>2]=g;c[q+24>>2]=j;d=q+28|0;c[d>>2]=0;v=q+8|0;c[v>>2]=0;a:do{if((c[B>>2]|0)==1){z=1<<c[z>>2];switch(A|0){case 4:{c[v>>2]=ye(z,4)|0;if((z|0)<=0){break a}x=t+4|0;y=t+8|0;A=0;do{a[s]=A;pB(l,r,t);B=A<<2;a[(c[v>>2]|0)+B|0]=(((c[u>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B|1)|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B|2)|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B|3)|0]=-1;A=A+1|0;}while((A|0)<(z|0));break};case 1:case 0:{c[v>>2]=we(z)|0;if((z|0)>0){t=0}else{break a}do{a[s]=t;oB(l,r,y);a[(c[v>>2]|0)+t|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;t=t+1|0;}while((t|0)<(z|0));break};case 3:case 2:{c[v>>2]=ye(z,3)|0;if((z|0)<=0){break a}y=t+4|0;x=t+8|0;A=0;do{a[s]=A;pB(l,r,t);B=A*3|0;a[(c[v>>2]|0)+B|0]=(((c[u>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B+1)|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B+2)|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;A=A+1|0;}while((A|0)<(z|0));break};default:{break a}}}}while(0);l=c[w>>2]|0;n=(n|0)!=0;yp(c[b+184>>2]|0,n?74:75,q,(l|0)==0?1:l,n,g,j,m)|0;do{if(o){if((c[d>>2]|0)>=(j|0)){break}do{Bj(c[p>>2]|0)|0;B=(c[d>>2]|0)+1|0;c[d>>2]=B;}while((B|0)<(j|0))}}while(0);Fe(c[v>>2]|0);j=c[p>>2]|0;if((j|0)!=0){zj(j);HW(j)}fd[c[(c[f>>2]|0)+16>>2]&511](f);i=e;return}function Eh(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;h=i;g=i;i=i+8|0;m=g;k=i;i=i+16|0;j=k;n=i;i=i+8|0;r=n;l=b+28|0;if((c[l>>2]|0)==(c[b+24>>2]|0)){A=0;i=h;return A|0}p=b+4|0;q=c[(c[p>>2]|0)+8>>2]|0;w=Bj(c[b>>2]|0)|0;o=b+20|0;if((c[o>>2]|0)>0){s=b+8|0;t=b+12|0;b=b+16|0;u=j+4|0;v=j+8|0;x=0;while(1){Oe(c[s>>2]|0,x,c[l>>2]|0,m);y=((a[g]|0)!=0)<<31>>31;A=c[t>>2]|0;z=c[b>>2]|0;a:do{if((A|0)==0){switch(z|0){case 1:case 0:{oB(c[p>>2]|0,w,r);a[e]=(((c[n>>2]|0)*255|0)+32768|0)>>>16;a[f]=y;f=f+1|0;e=e+1|0;break a};case 3:case 2:case 4:{break};default:{break a}}pB(c[p>>2]|0,w,j);a[e]=(((c[k>>2]|0)*255|0)+32768|0)>>>16;a[e+1|0]=(((c[u>>2]|0)*255|0)+32768|0)>>>16;z=e+3|0;a[e+2|0]=(((c[v>>2]|0)*255|0)+32768|0)>>>16;if((c[b>>2]|0)==4){a[z]=-1;e=e+4|0}else{e=z}a[f]=y;f=f+1|0}else{switch(z|0){case 3:case 2:{z=(d[w]|0)*3|0;a[e]=a[A+z|0]|0;a[e+1|0]=a[A+(z+1)|0]|0;a[e+2|0]=a[A+(z+2)|0]|0;a[f]=y;f=f+1|0;e=e+3|0;break a};case 4:{z=d[w]<<2;a[e]=a[A+z|0]|0;a[e+1|0]=a[A+(z|1)|0]|0;a[e+2|0]=a[A+(z|2)|0]|0;a[e+3|0]=-1;a[f]=y;f=f+1|0;e=e+4|0;break a};case 1:case 0:{a[e]=a[A+(d[w]|0)|0]|0;a[f]=y;f=f+1|0;e=e+1|0;break a};default:{break a}}}}while(0);x=x+1|0;if((x|0)<(c[o>>2]|0)){w=w+q|0}else{break}}}c[l>>2]=(c[l>>2]|0)+1;A=1;i=h;return A|0}function Fh(b,d,e,f,g,j,l,m,n,o,p,q,r){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0.0,Y=0.0;s=i;K=i;i=i+8|0;L=K;P=i;i=i+8|0;O=P;N=i;i=i+16|0;I=N;V=i;i=i+16|0;Q=V;W=i;i=i+16|0;M=W;C=i;i=i+48|0;u=C;v=i;i=i+32|0;t=v;E=i;i=i+24|0;F=E;G=i;i=i+8|0;H=G;B=i;i=i+8|0;A=B;y=i;i=i+16|0;z=y;x=i;i=i+8|0;w=x;c[N>>2]=13;J=I+8|0;c[J>>2]=0;c[J+4>>2]=0;c[V>>2]=13;U=Q+8|0;c[U>>2]=0;S=U+4|0;c[S>>2]=0;c[W>>2]=13;R=M+8|0;c[R>>2]=0;T=R+4|0;c[T>>2]=0;if((o|0)>(g|0)|(p|0)>(j|0)){t=q&1;c[S>>2]=0;c[V>>2]=1;c[U>>2]=t^1;c[T>>2]=0;c[W>>2]=1;c[R>>2]=t;If(I,c[b+176>>2]|0)|0;t=c[N>>2]|0;if((t|0)!=6){c[P>>2]=t;c[O+4>>2]=6;Qe(0,35856,O);tc()}tt(c[J>>2]|0,Q);t=c[N>>2]|0;if((t|0)!=6){c[K>>2]=t;c[L+4>>2]=6;Qe(0,35856,L);tc()}tt(c[J>>2]|0,M);t=FW(672)|0;W=FW(4)|0;Ty(W);mB(t,1,I,W);Of(I);vd[c[(c[b>>2]|0)+324>>2]&3](b,d,e,f,g,j,l,m,n,o,p,t,r);if((t|0)==0){i=s;return}nB(t);HW(t);i=s;return}h[C>>3]=+(g|0);e=u+8|0;I=u+16|0;J=u+24|0;bX(e|0,0,16)|0;h[J>>3]=+(j|0);r=u+32|0;m=u+40|0;bX(r|0,0,16)|0;K=FW(28)|0;yj(K,n,o,1,1);c[E>>2]=K;Aj(K);a[F+4|0]=q&1^1;c[F+8>>2]=o;c[F+12>>2]=p;c[F+16>>2]=0;q=FW(28)|0;Ke(q,g,j,1,0,0,1);K=FW(192)|0;Jo(K,q,0,0);a[G]=0;ep(K,H,0);a[G]=-1;W=FW(8)|0;tq(W,H);Ro(K,W);wp(K,182,F,o,p,u,0)|0;o=c[E>>2]|0;if((o|0)!=0){zj(o);HW(o)}fd[c[(c[n>>2]|0)+16>>2]&511](n);if((K|0)!=0){Lo(K);HW(K)}n=d+16|0;o=0;do{h[k>>3]=+h[d+16+(o<<3)>>3];W=c[k+4>>2]&2146435072;o=o+1|0;if(!(W>>>0<2146435072|(W|0)==2146435072&(c[k>>2]&0)>>>0<0)){D=15;break}}while((o|0)<6);if((D|0)==15){if((q|0)==0){i=s;return}Le(q);HW(q);i=s;return}h[C>>3]=+h[n>>3];h[e>>3]=+h[d+24>>3];Y=+h[d+32>>3];h[I>>3]=-0.0-Y;X=+h[d+40>>3];h[J>>3]=-0.0-X;h[r>>3]=Y+ +h[d+48>>3];h[m>>3]=X+ +h[d+56>>3];n=FW(28)|0;W=l+8|0;o=l+4|0;yj(n,f,g,c[W>>2]|0,c[o>>2]|0);c[v>>2]=n;Aj(n);c[t+4>>2]=l;c[t+8>>2]=q;n=b+112|0;p=c[n>>2]|0;c[t+16>>2]=p;c[t+20>>2]=g;c[t+24>>2]=j;c[t+28>>2]=0;d=t+12|0;c[d>>2]=0;a:do{if((c[W>>2]|0)==1){o=1<<c[o>>2];switch(p|0){case 4:{c[d>>2]=ye(o,4)|0;if((o|0)<=0){break a}A=z+4|0;B=z+8|0;p=0;do{a[x]=p;pB(l,w,z);W=p<<2;a[(c[d>>2]|0)+W|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W|1)|0]=(((c[A>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W|2)|0]=(((c[B>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W|3)|0]=-1;p=p+1|0;}while((p|0)<(o|0));break};case 1:case 0:{c[d>>2]=we(o)|0;if((o|0)>0){y=0}else{break a}do{a[x]=y;oB(l,w,A);a[(c[d>>2]|0)+y|0]=(((c[B>>2]|0)*255|0)+32768|0)>>>16;y=y+1|0;}while((y|0)<(o|0));break};case 3:case 2:{c[d>>2]=ye(o,3)|0;if((o|0)<=0){break a}p=z+4|0;B=z+8|0;A=0;do{a[x]=A;pB(l,w,z);W=A*3|0;a[(c[d>>2]|0)+W|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W+1)|0]=(((c[p>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W+2)|0]=(((c[B>>2]|0)*255|0)+32768|0)>>>16;A=A+1|0;}while((A|0)<(o|0));break};default:{break a}}}}while(0);l=c[n>>2]|0;yp(c[b+184>>2]|0,76,t,(l|0)==0?1:l,1,g,j,u)|0;if((q|0)!=0){Le(q);HW(q)}Fe(c[d>>2]|0);j=c[v>>2]|0;if((j|0)!=0){zj(j);HW(j)}fd[c[(c[f>>2]|0)+16>>2]&511](f);i=s;return}function Gh(b,d,e,f,g,j,l,m,n,o,p,q,r){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0.0,J=0.0;e=i;E=i;i=i+48|0;r=E;s=i;i=i+32|0;m=s;C=i;i=i+32|0;z=C;B=i;i=i+8|0;A=B;x=i;i=i+8|0;y=x;v=i;i=i+16|0;w=v;u=i;i=i+8|0;t=u;G=d+16|0;F=0;do{h[k>>3]=+h[d+16+(F<<3)>>3];H=c[k+4>>2]&2146435072;F=F+1|0;if(!(H>>>0<2146435072|(H|0)==2146435072&(c[k>>2]&0)>>>0<0)){D=23;break}}while((F|0)<6);if((D|0)==23){i=e;return}h[E>>3]=+h[G>>3];h[r+8>>3]=+h[d+24>>3];J=+h[d+32>>3];h[r+16>>3]=-0.0-J;I=+h[d+40>>3];h[r+24>>3]=-0.0-I;h[r+32>>3]=J+ +h[d+48>>3];h[r+40>>3]=I+ +h[d+56>>3];D=FW(28)|0;d=q+4|0;yj(D,n,o,c[q+8>>2]|0,c[d>>2]|0);c[C>>2]=D;Aj(D);c[z+4>>2]=q;c[z+12>>2]=0;c[z+16>>2]=1;c[z+20>>2]=o;c[z+24>>2]=p;c[z+28>>2]=0;d=1<<c[d>>2];D=z+8|0;c[D>>2]=we(d)|0;if((d|0)>0){E=0;do{a[u]=E;oB(q,t,y);a[(c[D>>2]|0)+E|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;E=E+1|0;}while((E|0)<(d|0))}q=FW(28)|0;d=c[b+180>>2]|0;Ke(q,c[d>>2]|0,c[d+4>>2]|0,1,1,0,1);d=FW(192)|0;Jo(d,q,(a[b+122|0]&1)!=0,0);a[B]=0;ep(d,A,0);yp(d,75,z,1,0,o,p,r)|0;p=c[C>>2]|0;if((p|0)!=0){zj(p);HW(p)}fd[c[(c[n>>2]|0)+16>>2]&511](n);Fe(c[D>>2]|0);if((d|0)!=0){Lo(d);HW(d)}n=b+184|0;bp(c[n>>2]|0,q);p=FW(28)|0;H=l+8|0;o=l+4|0;yj(p,f,g,c[H>>2]|0,c[o>>2]|0);c[s>>2]=p;Aj(p);c[m+4>>2]=l;c[m+12>>2]=0;p=b+112|0;q=c[p>>2]|0;c[m+16>>2]=q;c[m+20>>2]=g;c[m+24>>2]=j;c[m+28>>2]=0;b=m+8|0;c[b>>2]=0;a:do{if((c[H>>2]|0)==1){o=1<<c[o>>2];switch(q|0){case 3:case 2:{c[b>>2]=ye(o,3)|0;if((o|0)<=0){break a}x=w+4|0;y=w+8|0;q=0;do{a[u]=q;pB(l,t,w);H=q*3|0;a[(c[b>>2]|0)+H|0]=(((c[v>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H+1)|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H+2)|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;q=q+1|0;}while((q|0)<(o|0));break};case 4:{c[b>>2]=ye(o,4)|0;if((o|0)<=0){break a}y=w+4|0;q=w+8|0;x=0;do{a[u]=x;pB(l,t,w);H=x<<2;a[(c[b>>2]|0)+H|0]=(((c[v>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H|1)|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H|2)|0]=(((c[q>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H|3)|0]=-1;x=x+1|0;}while((x|0)<(o|0));break};case 1:case 0:{c[b>>2]=we(o)|0;if((o|0)>0){v=0}else{break a}do{a[u]=v;oB(l,t,y);a[(c[b>>2]|0)+v|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;v=v+1|0;}while((v|0)<(o|0));break};default:{break a}}}}while(0);l=c[p>>2]|0;yp(c[n>>2]|0,75,m,(l|0)==0?1:l,0,g,j,r)|0;bp(c[n>>2]|0,0);Fe(c[b>>2]|0);g=c[s>>2]|0;if((g|0)!=0){zj(g);HW(g)}fd[c[(c[f>>2]|0)+16>>2]&511](f);i=e;return}function Hh(b,d,e,f,g,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;var l=0,m=0,n=0.0,o=0.0,p=0.0,q=0.0,r=0,s=0,t=0.0,u=0,v=0,w=0.0,x=0.0,y=0.0,z=0.0,A=0.0,B=0,C=0.0,D=0.0,E=0,F=0.0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;j=i;m=i;i=i+8|0;k=m;z=+h[e>>3];y=+h[e+8>>3];C=+h[d+16>>3];x=z*C;q=+h[d+32>>3];D=y*q;p=+h[d+48>>3];t=p+(x+D);A=+h[d+24>>3];z=z*A;w=+h[d+40>>3];y=y*w;n=+h[d+56>>3];F=n+(z+y);o=+h[e+24>>3];q=q*o;x=p+(x+q);o=w*o;z=n+(z+o);do{if(x<t){w=t}else{if(x<=t){w=t;x=t;break}w=x;x=t}}while(0);do{if(z<F){t=F}else{if(z<=F){t=F;z=F;break}t=z;z=F}}while(0);F=+h[e+16>>3];C=F*C;D=p+(C+D);A=F*A;y=n+(A+y);do{if(D<x){x=D}else{if(D<=w){break}w=D}}while(0);do{if(y<z){z=y}else{if(y<=t){break}t=y}}while(0);p=p+(C+q);n=n+(A+o);do{if(p<x){x=p}else{if(p<=w){break}w=p}}while(0);do{if(n<z){z=n}else{if(n<=t){break}t=n}}while(0);e=~~+R(+x);if((e|0)<0){r=0}else{r=c[c[b+180>>2]>>2]|0;r=(e|0)<(r|0)?e:r+ -1|0}e=0-r|0;s=~~+R(+z);B=c[b+180>>2]|0;G=c[B+4>>2]|0;if((s|0)<0){v=0}else{v=(s|0)<(G|0)?s:G+ -1|0}s=0-v|0;H=~~+ca(+w);u=b+180|0;E=c[B>>2]|0;E=(H+1|0)>(E|0)?E-r|0:1-r+H|0;E=(E|0)<1?1:E;H=~~+ca(+t);G=(H+1|0)>(G|0)?G-v|0:1-v+H|0;H=(G|0)<1?1:G;G=FW(32)|0;bX(G|0,0,24)|0;c[G>>2]=r;c[G+4>>2]=v;c[G+12>>2]=f;a[G+16|0]=g&1;I=b+244|0;c[G+28>>2]=c[I>>2];c[I>>2]=G;I=G+20|0;c[I>>2]=B;B=b+184|0;K=G+24|0;c[K>>2]=c[B>>2];M=FW(28)|0;J=b+112|0;Ke(M,E,H,c[b+116>>2]|0,c[J>>2]|0,1,(a[b+120|0]&1)!=0);c[u>>2]=M;f=FWFW(192)|0;D=(a[b+122|0]&1)!=0;Ko(x,f,D,Oo(c[B+24>>2]|0)|0);A=c[A>>2]|0;if((A|0)==1){D=c[(c[e>>2]|0)+12>>2]|0;Gd[c[(c[D>>2]|0)+16>>2]&255](D,k,v);a[o]=(((c[w>>2]|0)*255|0)+32768|0)>>>16;Ap(x,m)}else if((A|0)==2|(A|0)==3){s=7}else if((A|0)==4){a[m+3|0]=-1;s=7}if((s|0)==7){D=c[(c[e>>2]|0)+12>>2]|0;Gd[c[(c[D>>2]|0)+20>>2]&255](D,k,z);a[o]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[m+1|0]=(((c[z+4>>2]|0)*255|0)+32768|0)>>>16;a[m+2|0]=(((c[z+8>>2]|0)*255|0)+32768|0)>>>16;Ap(x,m)}if((x|0)==0){break}Lo(x);HW(x)}}while(0);s=FW(28)|0;y=b+180|0;x=c[y>>2]|0;Ke(s,c[x>>2]|0,c[x+4>>2]|0,1,1,0,1);x=c[(c[e>>2]|0)+12>>2]|0;if((x|0)==0){v=0}else{Gd[c[(c[x>>2]|0)+16>>2]&255](x,k,v);v=(((c[w>>2]|0)*255|0)+32768|0)>>>16&255}x=s+20|0;k=s+12|0;bX(c[x>>2]|0,v|0,da(c[s+4>>2]|0,c[k>>2]|0)|0)|0;v=c[f>>2]|0;w=c[f+4>>2]|0;y=c[y>>2]|0;z=c[y>>2]|0;v=(v+t|0)>(z|0)?z-t|0:v;y=c[y+4>>2]|0;w=(w+u|0)>(y|0)?y-u|0:w;if((w|0)>0){C=c[k>>2]|0;B=(da(C,u)|0)+t|0;z=(v|0)>0;t=b+112|0;A=(j|0)==0;y=m+1|0;u=m+2|0;x=(c[x>>2]|0)+B|0;B=0;while(1){if(z){a:do{if(g){C=0;do{a[x+C|0]=Pe(f,C,B)|0;C=C+1|0;}while((C|0)<(v|0))}else{C=0;while(1){Oe(f,C,B,m);switch(c[t>>2]|0){case 3:case 2:case 4:{h[n>>3]=+(d[o]|0|0)*.001176470588235294+ +(d[y]|0|0)*.002313725490196078+ +(d[u]|0|0)*.00043137254901960784;break};case 1:case 0:{h[n>>3]=+(d[o]|0|0)/255.0;break};default:{}}if(A){E=+h[n>>3];h[p>>3]=E}else{Gd[c[(c[j>>2]|0)+16>>2]&255](j,r,q);E=+h[p>>3]}a[x+C|0]=~~(E*255.0+.5);C=C+1|0;if((C|0)>=(v|0)){break a}}}}while(0);D=c[k>>2]|0}else{D=C}B=B+1|0;if((B|0)<(w|0)){C=D;x=x+D|0}else{break}}}bp(c[b+184>>2]|0,s);j=c[e>>2]|0;c[e>>2]=c[j+28>>2];if((j|0)!=0){HW(j)}if((f|0)==0){i=l;return}Le(f);HW(f);i=l;return}function Lh(a,b){a=a|0;b=b|0;b=i;bp(c[a+184>>2]|0,0);i=b;return}function Mh(b){b=b|0;i=i;return(a[(c[b+184>>2]|0)+188|0]&1)!=0|0}function Nh(b,d){b=b|0;d=d|0;a[(c[b+184>>2]|0)+188|0]=d&1;i=i;return}function Oh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=i;h=c[e+8>>2]|0;h=jd[c[(c[h>>2]|0)+12>>2]&511](h)|0;h=(c[b+112>>2]|0)==2&(h|0)==2;g=FW(16)|0;qq(g);c[g>>2]=34520;c[g+8>>2]=d;c[g+4>>2]=e;a[g+12|0]=h&1;if((c[e+324>>2]|0)<=0){h=0;i=f;return h|0}d=jd[c[(c[b>>2]|0)+404>>2]&511](b)|0;hd[c[(c[b>>2]|0)+408>>2]&127](b,1);h=Bp(c[b+184>>2]|0,g)|0;hd[c[(c[b>>2]|0)+408>>2]&127](b,d);i=f;return h|0}function Ph(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=+f;g=+g;var j=0,k=0,l=0,m=0,n=0,o=0.0,p=0.0,q=0,r=0,s=0,t=0,u=0,v=0;j=i;q=i;i=i+48|0;n=i;i=i+8|0;u=i;i=i+8|0;t=i;i=i+8|0;r=i;i=i+8|0;m=jd[c[(c[b>>2]|0)+404>>2]&511](b)|0;hd[c[(c[b>>2]|0)+408>>2]&127](b,1);HB(d,n,u,t,r);f=+h[n>>3];g=+h[u>>3];k=d+588|0;v=c[k>>2]|0;s=d+592|0;h[s>>3]=f;l=d+600|0;h[l>>3]=g;uB(v,f,g);g=+h[t>>3];f=+h[u>>3];u=c[k>>2]|0;h[s>>3]=g;h[l>>3]=f;vB(u,g,f);f=+h[t>>3];g=+h[r>>3];t=c[k>>2]|0;h[s>>3]=f;h[l>>3]=g;vB(t,f,g);g=+h[n>>3];f=+h[r>>3];r=c[k>>2]|0;h[s>>3]=g;h[l>>3]=f;vB(r,g,f);xB(c[k>>2]|0);k=c[k>>2]|0;r=k+28|0;n=k+24|0;t=c[(c[n>>2]|0)+((c[r>>2]|0)+ -1<<2)>>2]|0;h[s>>3]=+h[(c[t>>2]|0)+((c[t+12>>2]|0)+ -1<<3)>>3];r=c[(c[n>>2]|0)+((c[r>>2]|0)+ -1<<2)>>2]|0;h[l>>3]=+h[(c[r+4>>2]|0)+((c[r+12>>2]|0)+ -1<<3)>>3];k=lh(0,0,k)|0;l=FW(144)|0;r=c[b+112>>2]|0;qq(l);c[l>>2]=34568;n=l+128|0;c[n>>2]=e;c[l+132>>2]=d;c[l+136>>2]=r;$W(q|0,d+16|0,48)|0;Gy(q,l+8|0)|0;n=c[n>>2]|0;f=+h[n+184>>3];h[l+56>>3]=f;g=+h[n+192>>3];h[l+64>>3]=g;p=+h[n+200>>3];h[l+72>>3]=p;o=+h[n+208>>3];h[l+80>>3]=o;f=p-f;h[l+88>>3]=f;g=o-g;h[l+96>>3]=g;h[l+104>>3]=1.0/(f*f+g*g);h[l+112>>3]=+h[n+216>>3];h[l+120>>3]=+h[n+224>>3];e=(Dp(c[b+184>>2]|0,k,(a[e+176|0]&1)!=0,l)|0)==0;hd[c[(c[b>>2]|0)+408>>2]&127](b,m);SB(d);if((l|0)!=0){fd[c[(c[l>>2]|0)+8>>2]&511](l)}if((k|0)==0){i=j;return e|0}hq(k);HW(k);i=j;return e|0}function Qh(a){a=a|0;var b=0,d=0,e=0.0,f=0.0,g=0.0,j=0.0,k=0,l=0,m=0,n=0;d=i;k=i;i=i+48|0;b=FW(144)|0;m=c[a+136>>2]|0;l=c[a+132>>2]|0;n=c[a+128>>2]|0;qq(b);c[b>>2]=34568;a=b+128|0;c[a>>2]=n;c[b+132>>2]=l;c[b+136>>2]=m;$W(k|0,l+16|0,48)|0;Gy(k,b+8|0)|0;a=c[a>>2]|0;f=+h[a+184>>3];h[b+56>>3]=f;e=+h[a+192>>3];h[b+64>>3]=e;j=+h[a+200>>3];h[b+72>>3]=j;g=+h[a+208>>3];h[b+80>>3]=g;f=j-f;h[b+88>>3]=f;e=g-e;h[b+96>>3]=e;h[b+104>>3]=1.0/(f*f+e*e);h[b+112>>3]=+h[a+216>>3];h[b+120>>3]=+h[a+224>>3];i=d;return b|0}function Rh(a){a=a|0;i=i;return 0}function Sh(b){b=b|0;var d=0,e=0,f=0,g=0;e=i;d=FW(16)|0;f=a[b+12|0]&1;g=c[b+8>>2]|0;b=c[b+4>>2]|0;qq(d);c[d>>2]=34520;c[d+8>>2]=g;c[d+4>>2]=b;a[d+12|0]=f;i=e;return d|0}function Th(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;i=i;return 0}function Uh(a){a=a|0;i=i;return 0}function Vh(a){a=a|0;i=i;return(c[(c[a+4>>2]|0)+324>>2]|0)>0|0}function Wh(a){a=a|0;i=i;return c[(c[a+4>>2]|0)+192>>2]|0}function Xh(a,b,d,e,f,g,h,j,k,l,m){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0;n=i;gB(c[a+4>>2]|0,b,d,e,f,g,h,j,k,l,m);i=n;return}function Yh(a){a=a|0;i=i;return-1}function Zh(a){a=a|0;i=i;return-1}function _h(a){a=a|0;i=i;return 0}function $h(a,b){a=a|0;b=b|0;if((b|0)==5|(b|0)==2|(b|0)==4){b=1}else{b=0}i=i;return b|0}function ai(a){a=a|0;i=i;return 0}function bi(a){a=a|0;i=i;return 0}function ci(a){a=a|0;i=i;return-1}function di(a){a=a|0;i=i;return-1}function ei(a,b){a=a|0;b=b|0;var d=0;d=i;a=c[b+116>>2]|0;a=(jd[c[(c[a>>2]|0)+12>>2]&511](a)|0)==10;i=d;return a|0}function fi(a,b){a=a|0;b=b|0;var d=0;d=i;a=c[b+116>>2]|0;a=(jd[c[(c[a>>2]|0)+12>>2]&511](a)|0)==10;i=d;return a|0}function gi(a,b,c,d,e,f,g,h,j,k,l,m,n,o,p){a=a|0;b=b|0;c=+c;d=+d;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;i=i;return-1}function hi(a){a=a|0;i=i;return}function ii(a,b){a=a|0;b=b|0;i=i;return}function ji(a,b){a=a|0;b=b|0;i=i;return}function ki(a,b){a=a|0;b=b|0;i=i;return}function li(a,b){a=a|0;b=b|0;i=i;return}function mi(a,b){a=a|0;b=b|0;i=i;return}function ni(a,b){a=a|0;b=b|0;i=i;return}function oi(a,b){a=a|0;b=b|0;i=i;return}function pi(a,b,c){a=a|0;b=b|0;c=+c;i=i;return}function qi(a,b){a=a|0;b=b|0;i=i;return}function ri(a,b){a=a|0;b=b|0;i=i;return}function si(a,b){a=a|0;b=b|0;i=i;return}function ti(a,b){a=a|0;b=b|0;i=i;return}function ui(a,b){a=a|0;b=b|0;i=i;return}function vi(a,b){a=a|0;b=b|0;i=i;return}function wi(a,b){a=a|0;b=b|0;i=i;return}function xi(a,b,c){a=a|0;b=b|0;c=+c;i=i;return}function yi(a,b,c,d,e,f,g,h,j,k,l,m,n){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=+m;n=+n;i=i;return 0}function zi(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return 0}function Ai(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return 0}function Bi(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=+d;e=+e;i=i;return 0}function Ci(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return 0}function Di(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return 0}function Ei(a,b){a=a|0;b=b|0;i=i;return}function Fi(a,b){a=a|0;b=b|0;i=i;return}function Gi(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return}function Hi(a,b){a=a|0;b=b|0;i=i;return}function Ii(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return}function Ji(b,d){b=b|0;d=d|0;d=i;if((c[b+240>>2]|0)==0){b=0;i=d;return b|0}b=(a[b+108|0]&1)!=0;i=d;return b|0}function Ki(a,b){a=a|0;b=b|0;i=i;return}function Li(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return}function Mi(a){a=a|0;i=i;return c[a+104>>2]|0}function Ni(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return}function Oi(a){a=a|0;i=i;return}function Pi(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function Qi(a,b){a=a|0;b=b|0;var d=0;d=i;if((c[b+4>>2]|0)!=(c[a+4>>2]|0)){a=0;i=d;return a|0}a=(c[b+8>>2]|0)==(c[a+8>>2]|0);i=d;return a|0}function Ri(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;g=55024+(g<<2)|0;if((c[g>>2]|0)>0){j=0}else{i=h;return}do{a[f+j|0]=((da(d[b+j|0]|0,d[e+j|0]|0)|0)>>>0)/255|0;j=j+1|0;}while((j|0)<(c[g>>2]|0));i=h;return}function Si(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0;h=i;g=55024+(g<<2)|0;if((c[g>>2]|0)>0){j=0}else{i=h;return}do{k=d[e+j|0]|0;l=d[b+j|0]|0;a[f+j|0]=l+k-(((da(l,k)|0)>>>0)/255|0);j=j+1|0;}while((j|0)<(c[g>>2]|0));i=h;return}function Ti(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;g=55024+(g<<2)|0;if((c[g>>2]|0)>0){j=0}else{i=h;return}do{m=a[e+j|0]|0;l=m&255;k=d[b+j|0]|0;if(m<<24>>24>-1){k=((da(l<<1,k)|0)>>>0)/255|0}else{k=255-(((da(l<<1^510,k^255)|0)>>>0)/255|0)|0}a[f+j|0]=k;j=j+1|0;}while((j|0)<(c[g>>2]|0));i=h;return}function Ui(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;f=55024+(f<<2)|0;if((c[f>>2]|0)>0){h=0}else{i=g;return}do{j=a[d+h|0]|0;k=a[b+h|0]|0;a[e+h|0]=(j&255)<(k&255)?j:k;h=h+1|0;}while((h|0)<(c[f>>2]|0));i=g;return}function Vi(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;f=55024+(f<<2)|0;if((c[f>>2]|0)>0){h=0}else{i=g;return}do{j=a[d+h|0]|0;k=a[b+h|0]|0;a[e+h|0]=(j&255)>(k&255)?j:k;h=h+1|0;}while((h|0)<(c[f>>2]|0));i=g;return}function Wi(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0;h=i;g=55024+(g<<2)|0;if((c[g>>2]|0)>0){j=0}else{i=h;return}do{k=a[b+j|0]|0;if(k<<24>>24==-1){a[f+j|0]=-1}else{k=(((d[e+j|0]|0)*255|0)>>>0)/((k&255^255)>>>0)|0;a[f+j|0]=k>>>0>255?-1:k&255}j=j+1|0;}while((j|0)<(c[g>>2]|0));i=h;return}function Xi(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0;h=i;g=55024+(g<<2)|0;if((c[g>>2]|0)>0){j=0}else{i=h;return}do{k=a[b+j|0]|0;if(k<<24>>24==0){a[f+j|0]=0}else{k=((((d[e+j|0]|0)^255)*255|0)>>>0)/((k&255)>>>0)|0;if(k>>>0<256){k=255-k&255}else{k=0}a[f+j|0]=k}j=j+1|0;}while((j|0)<(c[g>>2]|0));i=h;return}function Yi(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;g=55024+(g<<2)|0;if((c[g>>2]|0)>0){j=0}else{i=h;return}do{m=a[b+j|0]|0;l=m&255;k=d[e+j|0]|0;if(m<<24>>24>-1){k=((da(l<<1,k)|0)>>>0)/255|0}else{k=255-(((da(l<<1^510,k^255)|0)>>>0)/255|0)|0}a[f+j|0]=k;j=j+1|0;}while((j|0)<(c[g>>2]|0));i=h;return}function Zi(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;f=55024+(f<<2)|0;if((c[f>>2]|0)>0){h=0}else{i=g;return}do{k=a[b+h|0]|0;l=a[d+h|0]|0;j=l&255;if(k<<24>>24>-1){a[e+h|0]=j-((da(da(255-((k&255)<<1)|0,j)|0,j^255)|0)/65025|0)}else{if((l&255)<64){l=(da(((da((j<<4)+ -3060|0,j)|0)/255|0)+1020|0,j)|0)/255|0}else{l=~~+T(+(+(j|0)*255.0))}a[e+h|0]=((da(((k&255)<<1)+ -255|0,l-j|0)|0)/255|0)+j}h=h+1|0;}while((h|0)<(c[f>>2]|0));i=g;return}function _i(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;f=55024+(f<<2)|0;if((c[f>>2]|0)>0){h=0}else{i=g;return}do{j=a[d+h|0]|0;k=a[b+h|0]|0;a[e+h|0]=(j&255)<(k&255)?k-j<<24>>24:j-k<<24>>24;h=h+1|0;}while((h|0)<(c[f>>2]|0));i=g;return}function $i(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0;h=i;g=55024+(g<<2)|0;if((c[g>>2]|0)>0){j=0}else{i=h;return}do{l=d[e+j|0]|0;k=d[b+j|0]|0;a[f+j|0]=k+l-(((da(l<<1,k)|0)>>>0)/255|0);j=j+1|0;}while((j|0)<(c[g>>2]|0));i=h;return}function aj(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;switch(e|0){case 1:case 0:{a[d]=a[c]|0;i=f;return};case 3:case 2:{break};case 4:{a[b+3|0]=-1;break};default:{i=f;return}}j=a[b]|0;h=a[b+1|0]|0;k=a[b+2|0]|0;e=j&255;g=h&255;b=k&255;do{if((j&255)<(h&255)){if((j&255)>=(k&255)){h=g;j=e;e=1;break}k=(h&255)<(k&255);h=k?b:g;j=k?g:b;b=e;e=k?3:2}else{if((h&255)>=(k&255)){h=e;j=g;e=0;break}k=(k&255)<(j&255);h=k?e:b;j=k?b:e;b=g;e=k?5:4}}while(0);if((h|0)==(b|0)){b=0}else{if((e&1|0)==0){b=((j-b|0)*60|0)/(h-b|0)|0}else{b=((h-j|0)*60|0)/(h-b|0)|0}b=b+(e*60|0)|0}e=a[c]|0;j=a[c+1|0]|0;k=a[c+2|0]|0;h=e&255;g=j&255;c=k&255;do{if((e&255)<(j&255)){if((e&255)>=(k&255)){e=g;break}e=(j&255)<(k&255)?c:g;c=h}else{if((j&255)>=(k&255)){e=h;break}e=(k&255)<(e&255)?h:c;c=g}}while(0);if((e|0)==(c|0)){c=0}else{c=((e-c|0)*255|0)/(e|0)|0}ej(b,c,e,d,d+1|0,d+2|0);i=f;return}function bj(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;switch(e|0){case 3:case 2:{break};case 4:{a[b+3|0]=-1;break};case 1:case 0:{a[d]=a[c]|0;i=f;return};default:{i=f;return}}e=a[b]|0;j=a[b+1|0]|0;k=a[b+2|0]|0;h=e&255;g=j&255;b=k&255;do{if((e&255)<(j&255)){if((e&255)>=(k&255)){e=g;break}e=(j&255)<(k&255)?b:g;b=h}else{if((j&255)>=(k&255)){e=h;break}e=(k&255)<(e&255)?h:b;b=g}}while(0);if((e|0)==(b|0)){e=0}else{e=((e-b|0)*255|0)/(e|0)|0}k=a[c]|0;j=a[c+1|0]|0;c=a[c+2|0]|0;g=k&255;h=j&255;b=c&255;do{if((k&255)<(j&255)){if((k&255)>=(c&255)){c=h;j=g;g=1;break}k=(j&255)<(c&255);c=k?b:h;j=k?h:b;b=g;g=k?3:2}else{if((j&255)>=(c&255)){c=g;j=h;g=0;break}k=(c&255)<(k&255);c=k?g:b;j=k?b:g;b=h;g=k?5:4}}while(0);if((c|0)==(b|0)){b=0}else{if((g&1|0)==0){b=((j-b|0)*60|0)/(c-b|0)|0}else{b=((c-j|0)*60|0)/(c-b|0)|0}b=b+(g*60|0)|0}ej(b,e,c,d,d+1|0,d+2|0);i=f;return}function cj(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;switch(e|0){case 4:{a[b+3|0]=-1;break};case 1:case 0:{a[d]=a[c]|0;i=f;return};case 3:case 2:{break};default:{i=f;return}}e=a[b]|0;j=a[b+1|0]|0;k=a[b+2|0]|0;g=e&255;h=j&255;b=k&255;do{if((e&255)<(j&255)){if((e&255)>=(k&255)){e=h;j=g;g=b;b=1;break}k=(j&255)<(k&255);e=k?b:h;j=k?h:b;b=k?3:2}else{if((j&255)>=(k&255)){e=g;j=h;g=b;b=0;break}k=(k&255)<(e&255);e=k?g:b;j=k?b:g;g=h;b=k?5:4}}while(0);if((e|0)==(g|0)){b=0;e=0}else{if((b&1|0)==0){h=((j-g|0)*60|0)/(e-g|0)|0}else{h=((e-j|0)*60|0)/(e-g|0)|0}b=h+(b*60|0)|0;e=((e-g|0)*255|0)/(e|0)|0}h=a[c]|0;g=a[c+1|0]|0;k=a[c+2|0]|0;l=h&255;c=g&255;j=k&255;do{if((h&255)<(g&255)){if((h&255)>=(k&255)){break}c=(g&255)<(k&255)?j:c}else{if((g&255)>=(k&255)){c=l;break}c=(k&255)<(h&255)?l:j}}while(0);ej(b,e,c,d,d+1|0,d+2|0);i=f;return}function dj(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;switch(e|0){case 1:case 0:{a[d]=a[c]|0;i=f;return};case 4:{a[b+3|0]=-1;break};case 3:case 2:{break};default:{i=f;return}}g=a[b]|0;e=a[b+1|0]|0;k=a[b+2|0]|0;j=g&255;b=e&255;h=k&255;do{if((g&255)<(e&255)){if((g&255)>=(k&255)){break}b=(e&255)<(k&255)?h:b}else{if((e&255)>=(k&255)){b=j;break}b=(k&255)<(g&255)?j:h}}while(0);j=a[c]|0;k=a[c+1|0]|0;c=a[c+2|0]|0;e=j&255;h=k&255;g=c&255;do{if((j&255)<(k&255)){if((j&255)>=(c&255)){c=h;j=e;e=g;g=1;break}k=(k&255)<(c&255);c=k?g:h;j=k?h:g;g=k?3:2}else{if((k&255)>=(c&255)){c=e;j=h;e=g;g=0;break}k=(c&255)<(j&255);c=k?e:g;j=k?g:e;e=h;g=k?5:4}}while(0);if((c|0)==(e|0)){g=0;c=0}else{if((g&1|0)==0){h=((j-e|0)*60|0)/(c-e|0)|0}else{h=((c-j|0)*60|0)/(c-e|0)|0}g=h+(g*60|0)|0;c=((c-e|0)*255|0)/(c|0)|0}ej(g,c,b,d,d+1|0,d+2|0);i=f;return}function ej(b,c,d,e,f,g){b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;if((c|0)==0){b=d&255;a[g]=b;a[f]=b;a[e]=b;i=h;return}j=(b|0)/60|0;b=(b|0)%60|0;if((j&1|0)==0){b=da(255-((da(60-b|0,c)|0)/60|0)|0,d)|0;b=b+128+(b>>>8)|0}else{b=(d*255|0)-((da(b,c)|0)/60|0)|0;b=b+128+(b>>>8)|0}b=b>>>8&255;c=da(255-c|0,d)|0;c=(c+128+(c>>>8)|0)>>>8&255;switch(j|0){case 1:{a[f]=d;a[e]=b;a[g]=c;i=h;return};case 3:{a[g]=d;a[f]=b;a[e]=c;i=h;return};case 0:{a[e]=d;a[f]=b;a[g]=c;i=h;return};case 5:{a[e]=d;a[g]=b;a[f]=c;i=h;return};case 4:{a[g]=d;a[e]=b;a[f]=c;i=h;return};case 2:{a[f]=d;a[g]=b;a[e]=c;i=h;return};default:{i=h;return}}}function fj(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;b=i;h=i;i=i+16|0;g=h;f=g+8|0;c[f>>2]=0;c[f+4>>2]=0;c[h>>2]=5;h=FW(24)|0;f=FW(4)|0;c[f>>2]=192008;Nt(h,f,0);f=FW(68)|0;a=FW(1088)|0;Lj(a,h,0,0,c[h+8>>2]|0,g);Uf(f,a,d,e,0);i=b;return f|0}function gj(a,b){a=a|0;b=b|0;var c=0;c=i;a=(ue(b,35992,6)|0)==0;i=c;return a|0}function hj(a){a=a|0;i=i;return}function ij(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function jj(a){a=a|0;i=i;return}function kj(a){a=a|0;i=i;return}function lj(a){a=a|0;var b=0;a=i;b=i;i=i+8|0;Qe(-1,36088,b);i=a;return-1}function mj(a,b,c){a=a|0;b=b|0;c=c|0;c=i;b=i;i=i+8|0;Qe(-1,36144,b);i=c;return 0}function nj(a,b,c){a=a|0;b=b|0;c=c|0;c=i;b=i;i=i+8|0;Qe(-1,36200,b);i=c;return}function oj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=i;if((jd[c[(c[b>>2]|0)+24>>2]&511](b)|0)==-1){h=0;i=f;return h|0}e=e+ -1|0;a:do{if((e|0)>0){g=0;while(1){h=jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;if((h|0)==13){break}else if((h|0)==10|(h|0)==-1){break a}a[d+g|0]=h;g=g+1|0;if((g|0)>=(e|0)){break a}}if((jd[c[(c[b>>2]|0)+24>>2]&511](b)|0)!=10){break}jd[c[(c[b>>2]|0)+20>>2]&511](b)|0}else{g=0}}while(0);a[d+g|0]=0;h=d;i=f;return h|0}function pj(a,b,c){a=a|0;b=b|0;c=c|0;b=i;c=FWFW(12)|0;c[x+4>>2]=1;c[x+8>>2]=w;c[x>>2]=48040}Of(p);Of(j);w=c[r>>2]|0;if((w|0)==6){v=v+1|0;w=x}else{j=16;break}}if((j|0)==16){c[g>>2]=w;c[h+4>>2]=6;Qe(0,48632,h);tc()}else if((j|0)==26){Of(d);Of(f);i=e;return w|0}}else if((w|0)==5){E=a;Of(d);Of(f);i=e;return E|0}else{Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,36312,v);E=a;Of(d);Of(f);i=e;return E|0}return 0}function rj(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;g=i;Q=i;i=i+8|0;O=Q;x=i;i=i+8|0;t=x;A=i;i=i+8|0;B=A;K=i;i=i+8|0;J=K;L=i;i=i+8|0;M=L;m=i;i=i+8|0;l=m;n=i;i=i+8|0;o=n;r=i;i=i+8|0;s=r;u=i;i=i+8|0;v=u;E=i;i=i+8|0;C=E;I=i;i=i+8|0;F=I;q=i;i=i+8|0;p=q;w=i;i=i+8|0;y=w;D=i;i=i+8|0;z=D;H=i;i=i+8|0;G=H;j=i;i=i+16|0;P=j;k=i;i=i+16|0;h=k;c[j>>2]=13;j=P+8|0;c[j>>2]=0;c[j+4>>2]=0;c[k>>2]=13;j=h+8|0;c[j>>2]=0;c[j+4>>2]=0;do{if((Qc(d|0,36352)|0)!=0){if((Qc(d|0,36368)|0)==0){break}do{if((Qc(d|0,36376)|0)!=0){if((Qc(d|0,36392)|0)==0){break}do{if((Qc(d|0,36400)|0)!=0){if((Qc(d|0,36416)|0)==0){break}do{if((Qc(d|0,36496)|0)!=0){if((Qc(d|0,36512)|0)==0){break}do{if((Qc(d|0,36520)|0)!=0){if((Qc(d|0,36536)|0)==0){break}do{if((Qc(d|0,36632)|0)!=0){if((Qc(d|0,36648)|0)==0){break}do{if((Qc(d|0,36672)|0)!=0){if((Qc(d|0,36688)|0)==0){break}if((Qc(d|0,36696)|0)==0){if((c[f>>2]|0)==7){Yu(c[f+8>>2]|0,36712,P,0)|0}b=FW(152)|0;bD(b,e,P);Of(P);i=g;return b|0}if((Qc(d|0,36728)|0)==0){b=FW(220)|0;FD(b,e);i=g;return b|0}else{b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[Q>>2]=d;Qe(b,36744,O);b=FW(12)|0;c[b+4>>2]=1;c[b+8>>2]=e;c[b>>2]=48040;i=g;return b|0}}}while(0);if((c[f>>2]|0)==7){n=f+8|0;Yu(c[n>>2]|0,36424,h,0)|0;if((c[k>>2]|0)==1){l=c[j>>2]|0}else{l=1}Of(h);m=c[f>>2]|0;if((m|0)!=7){c[K>>2]=m;c[J+4>>2]=7;Qe(0,48632,J);tc()}Yu(c[n>>2]|0,36440,h,0)|0;if((c[k>>2]|0)==1){m=c[j>>2]|0}else{m=1}Of(h);o=c[f>>2]|0;if((o|0)!=7){c[A>>2]=o;c[B+4>>2]=7;Qe(0,48632,B);tc()}Yu(c[n>>2]|0,36448,h,0)|0;if((c[k>>2]|0)==1){o=c[j>>2]|0}else{o=1}Of(h);f=c[f>>2]|0;if((f|0)!=7){c[x>>2]=f;c[t+4>>2]=7;Qe(0,48632,t);tc()}Yu(c[n>>2]|0,36456,h,0)|0;if((c[k>>2]|0)==1){j=c[j>>2]|0}else{j=8}Of(h);h=j}else{h=8;o=1;m=1;l=1}b=FW(34100)|0;ql(b,e,l,m,o,h);i=g;return b|0}}while(0);if((c[f>>2]|0)==7){do{if((c[(Yu(c[f+8>>2]|0,36656,h,0)|0)>>2]|0)==1){k=c[k>>2]|0;if((k|0)==1){N=c[j>>2]|0;break}else{c[L>>2]=k;c[M+4>>2]=1;Qe(0,48632,M);tc()}}else{N=-1}}while(0);Of(h)}else{N=-1}h=FW(4016)|0;c[h+4>>2]=1;c[h+8>>2]=e;c[h>>2]=43144;c[h+180>>2]=N;a[h+13|0]=0;a[h+12|0]=0;c[h+176>>2]=0;bX(h+16|0,0,16)|0;bX(h+3452|0,0,544)|0;if(a[43240]&1){b=h;i=g;return b|0}bX(43248,0,256)|0;e=0;do{a[e+43504|0]=e;e=e+1|0;}while((e|0)<256);bX(43760|0,-1,256)|0;a[43240]=1;b=h;i=g;return b|0}}while(0);if((c[f>>2]|0)==7){t=f+8|0;Yu(c[t>>2]|0,36544,h,0)|0;if((c[k>>2]|0)==1){q=c[j>>2]|0}else{q=0}Of(h);p=c[f>>2]|0;if((p|0)!=7){c[I>>2]=p;c[F+4>>2]=7;Qe(0,48632,F);tc()}Yu(c[t>>2]|0,36552,h,0)|0;if((c[k>>2]|0)==0){p=(a[j]&1)!=0}else{p=0}Of(h);w=c[f>>2]|0;if((w|0)!=7){c[E>>2]=w;c[C+4>>2]=7;Qe(0,48632,C);tc()}Yu(c[t>>2]|0,36568,h,0)|0;if((c[k>>2]|0)==0){w=(a[j]&1)!=0}else{w=0}Of(h);x=c[f>>2]|0;if((x|0)!=7){c[u>>2]=x;c[v+4>>2]=7;Qe(0,48632,v);tc()}Yu(c[t>>2]|0,36440,h,0)|0;if((c[k>>2]|0)==1){u=c[j>>2]|0}else{u=1728}Of(h);v=c[f>>2]|0;if((v|0)!=7){c[r>>2]=v;c[s+4>>2]=7;Qe(0,48632,s);tc()}Yu(c[t>>2]|0,36592,h,0)|0;if((c[k>>2]|0)==1){r=c[j>>2]|0}else{r=0}Of(h);s=c[f>>2]|0;if((s|0)!=7){c[n>>2]=s;c[o+4>>2]=7;Qe(0,48632,o);tc()}Yu(c[t>>2]|0,36600,h,0)|0;if((c[k>>2]|0)==0){n=(a[j]&1)!=0}else{n=1}Of(h);f=c[f>>2]|0;if((f|0)!=7){c[m>>2]=f;c[l+4>>2]=7;Qe(0,48632,l);tc()}Yu(c[t>>2]|0,36616,h,0)|0;if((c[k>>2]|0)==0){j=(a[j]&1)!=0}else{j=0}Of(h);h=j}else{q=0;h=0;w=0;u=1728;n=1;p=0;r=0}j=FW(68)|0;c[j+4>>2]=1;c[j+8>>2]=e;c[j>>2]=38440;c[j+12>>2]=q;a[j+16|0]=p&1;a[j+17|0]=w&1;e=j+20|0;c[e>>2]=u;do{if((u|0)<1){c[e>>2]=1;u=1}else{if((u|0)<=2147483645){break}c[e>>2]=2147483645;u=2147483645}}while(0);c[j+24>>2]=r;a[j+28|0]=n&1;a[j+29|0]=h&1;e=ze(u+1|0,4)|0;c[j+44>>2]=e;b=ze(u+2|0,4)|0;c[j+48>>2]=b;h=j+30|0;if((e|0)==0|(b|0)==0){a[h]=1}else{a[h]=0;c[e>>2]=u}c[j+32>>2]=0;a[j+31|0]=q>>>31;c[j+40>>2]=0;c[j+52>>2]=0;c[j+60>>2]=0;c[j+64>>2]=-1;b=j;i=g;return b|0}}while(0);b=FW(152)|0;c[b+4>>2]=1;c[b+8>>2]=e;c[b>>2]=38304;Q=b+12|0;c[b+144>>2]=Q;c[b+140>>2]=Q;a[b+148|0]=0;i=g;return b|0}}while(0);if((c[f>>2]|0)==7){m=f+8|0;Yu(c[m>>2]|0,36424,h,0)|0;if((c[k>>2]|0)==1){l=c[j>>2]|0}else{l=1}Of(h);n=c[f>>2]|0;if((n|0)!=7){c[H>>2]=n;c[G+4>>2]=7;Qe(0,48632,G);tc()}Yu(c[m>>2]|0,36440,h,0)|0;if((c[k>>2]|0)==1){n=c[j>>2]|0}else{n=1}Of(h);o=c[f>>2]|0;if((o|0)!=7){c[D>>2]=o;c[z+4>>2]=7;Qe(0,48632,z);tc()}Yu(c[m>>2]|0,36448,h,0)|0;if((c[k>>2]|0)==1){o=c[j>>2]|0}else{o=1}Of(h);r=c[f>>2]|0;if((r|0)!=7){c[w>>2]=r;c[y+4>>2]=7;Qe(0,48632,y);tc()}Yu(c[m>>2]|0,36456,h,0)|0;if((c[k>>2]|0)==1){r=c[j>>2]|0}else{r=8}Of(h);f=c[f>>2]|0;if((f|0)!=7){c[q>>2]=f;c[p+4>>2]=7;Qe(0,48632,p);tc()}Yu(c[m>>2]|0,36480,h,0)|0;if((c[k>>2]|0)==1){j=c[j>>2]|0}else{j=1}Of(h)}else{r=8;o=1;n=1;j=1;l=1}b=FW(53324)|0;tk(b,e,l,n,o,r,j);i=g;return b|0}}while(0);b=FW(60)|0;c[b+4>>2]=1;c[b+8>>2]=e;c[b>>2]=37936;c[b+52>>2]=0;c[b+48>>2]=0;a[b+56|0]=0;i=g;return b|0}}while(0);b=FW(20)|0;c[b+4>>2]=1;c[b+8>>2]=e;c[b>>2]=37760;c[b+12>>2]=-1;a[b+16|0]=0;i=g;return b|0}function sj(a){a=a|0;var b=0;b=i;c[a>>2]=36776;Of(a+16|0);HW(a);i=b;return}function tj(a){a=a|0;var b=0;b=i;c[a>>2]=36776;Of(a+16|0);i=b;return}function uj(a,b){a=a|0;b=b|0;c[a+4>>2]=1;c[a>>2]=36904;c[a+8>>2]=b;i=i;return}function vj(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function wj(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;fd[c[(c[a>>2]|0)+16>>2]&511](a);i=b;return}function xj(a,b,c){a=a|0;b=b|0;c=c|0;c=i;b=i;i=i+8|0;Qe(-1,37e3,b);i=c;return}function yj(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;c[a>>2]=b;c[a+4>>2]=d;c[a+8>>2]=e;c[a+12>>2]=f;h=da(e,d)|0;b=a+16|0;c[b>>2]=h;if((f|0)==1){h=h+7&-8}c[a+20>>2]=ye((2147483647/(e|0)|0|0)<(d|0)?-1:h,1)|0;c[a+24>>2]=c[b>>2];i=g;return}function zj(a){a=a|0;var b=0;b=i;Fe(c[a+20>>2]|0);i=b;return}function Aj(a){a=a|0;var b=0;b=i;a=c[a>>2]|0;fd[c[(c[a>>2]|0)+12>>2]&511](a);i=b;return}function Bj(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;d=i;e=b+12|0;k=c[e>>2]|0;if((k|0)==8){f=c[b+20>>2]|0;g=c[b>>2]|0;e=b+16|0;h=c[e>>2]|0;a:do{if(jd[c[(c[g>>2]|0)+88>>2]&511](g)|0){h=sd[c[(c[g>>2]|0)+92>>2]&127](g,h,f)|0}else{if((h|0)>0){j=0}else{break}do{k=jd[c[(c[g>>2]|0)+20>>2]&511](g)|0;if((k|0)==-1){h=j;break a}a[f+j|0]=k;j=j+1|0;}while((j|0)<(h|0))}}while(0);if((h|0)>=(c[e>>2]|0)){n=b+20|0;n=c[n>>2]|0;i=d;return n|0}do{a[f+h|0]=-1;h=h+1|0;}while((h|0)<(c[e>>2]|0));n=b+20|0;n=c[n>>2]|0;i=d;return n|0}else if((k|0)==16){f=b+16|0;if((c[f>>2]|0)<=0){n=b+20|0;n=c[n>>2]|0;i=d;return n|0}e=b+20|0;g=0;do{n=c[b>>2]|0;n=(jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)&255;a[(c[e>>2]|0)+g|0]=n;n=c[b>>2]|0;jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;g=g+1|0;}while((g|0)<(c[f>>2]|0));n=b+20|0;n=c[n>>2]|0;i=d;return n|0}else if((k|0)==1){e=b+16|0;if((c[e>>2]|0)<=0){n=b+20|0;n=c[n>>2]|0;i=d;return n|0}f=b+20|0;g=0;do{n=c[b>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;a[(c[f>>2]|0)+g|0]=n>>>7&1;a[(c[f>>2]|0)+(g|1)|0]=n>>>6&1;a[(c[f>>2]|0)+(g|2)|0]=n>>>5&1;a[(c[f>>2]|0)+(g|3)|0]=n>>>4&1;a[(c[f>>2]|0)+(g|4)|0]=n>>>3&1;a[(c[f>>2]|0)+(g|5)|0]=n>>>2&1;a[(c[f>>2]|0)+(g|6)|0]=n>>>1&1;a[(c[f>>2]|0)+(g|7)|0]=n&1;g=g+8|0;}while((g|0)<(c[e>>2]|0));n=b+20|0;n=c[n>>2]|0;i=d;return n|0}else{h=(1<<k)+255|0;g=b+16|0;if((c[g>>2]|0)<=0){n=b+20|0;n=c[n>>2]|0;i=d;return n|0}f=b+20|0;j=0;l=0;m=0;while(1){if((j|0)<(k|0)){k=c[b>>2]|0;l=(jd[c[(c[k>>2]|0)+20>>2]&511](k)|0)&255|l<<8;k=c[e>>2]|0;j=j+8|0}a[(c[f>>2]|0)+m|0]=l>>>(j-k|0)&h;n=c[e>>2]|0;m=m+1|0;if((m|0)<(c[g>>2]|0)){k=n;j=j-n|0}else{break}}n=b+20|0;n=c[n>>2]|0;i=d;return n|0}return 0}function Cj(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;e=i;k=i;i=i+72|0;g=k;j=b+4|0;n=c[j>>2]|0;do{if((n|0)>9){f=c[b>>2]|0;f=jd[c[(c[f>>2]|0)+28>>2]&511](f)|0;if((f|0)==-1){w=0;i=e;return w|0}else{n=f+10|0;break}}}while(0);h=b+28|0;f=b+24|0;m=(c[h>>2]|0)-(c[f>>2]|0)|0;l=GW(m>>>0>1073741823?-1:m<<2)|0;o=c[b>>2]|0;Gd[c[(c[o>>2]|0)+32>>2]&255](o,m,l);o=c[f>>2]|0;bX(k|0,0,o+1|0)|0;a:do{if((o|0)<(c[h>>2]|0)){m=b+32|0;b:do{if((n|0)==11){t=o;while(1){if((t|0)>0){n=t;while(1){p=n+ -1|0;a[g+n|0]=a[g+p|0]|0;if((p|0)>0){n=p}else{break}}}r=c[m>>2]|0;n=r+o|0;a[k]=a[n]|0;q=o-t|0;p=c[l+(q<<2)>>2]|0;if((p|0)==-1){break b}a[n]=(d[r+q|0]|0)+p;o=o+1|0;if((o|0)>=(c[h>>2]|0)){break a}t=c[f>>2]|0}}else{t=o;while(1){if((t|0)>0){q=t;while(1){p=q+ -1|0;a[g+q|0]=a[g+p|0]|0;if((p|0)>0){q=p}else{break}}}r=c[m>>2]|0;p=r+o|0;s=a[p]|0;a[k]=s;u=o-t|0;q=c[l+(u<<2)>>2]|0;if((q|0)==-1){break b}do{if((n|0)==12){a[p]=(s&255)+q}else if((n|0)==14){r=d[r+u|0]|0;s=s&255;t=d[g+t|0]|0;w=s+r-t|0;u=w-r|0;u=(u|0)<0?0-u|0:u;v=w-s|0;v=(v|0)<0?0-v|0:v;w=w-t|0;w=(w|0)<0?0-w|0:w;if(!((u|0)>(v|0)|(u|0)>(w|0))){a[p]=r+q;break}if((v|0)>(w|0)){a[p]=t+q;break}else{a[p]=s+q;break}}else if((n|0)==13){a[p]=(((s&255)+(d[r+u|0]|0)|0)>>>1)+q}else{a[p]=q}}while(0);o=o+1|0;if((o|0)>=(c[h>>2]|0)){break a}t=c[f>>2]|0}}}while(0);if((o|0)>(t|0)){break}if((l|0)==0){w=0;i=e;return w|0}IW(l);w=0;i=e;return w|0}}while(0);if((l|0)!=0){IW(l)}c:do{if((c[j>>2]|0)==2){j=b+16|0;l=c[j>>2]|0;if((l|0)==1){m=c[f>>2]|0;g=b+32|0;if((m|0)>=(c[h>>2]|0)){break}w=c[g>>2]|0;k=b+12|0;j=w;l=m;m=d[w+(m+ -1)|0]|0;while(1){w=j+l|0;v=d[w]|0;m=v|m<<8;a[w]=m>>>(c[k>>2]|0)^v;l=l+8|0;if((l|0)>=(c[h>>2]|0)){break c}j=c[g>>2]|0}}else if((l|0)==8){k=c[f>>2]|0;if((k|0)>=(c[h>>2]|0)){break}g=b+12|0;j=b+32|0;do{v=c[j>>2]|0;w=v+k|0;a[w]=(a[w]|0)+(a[v+(k-(c[g>>2]|0))|0]|0)<<24>>24;k=k+1|0;}while((k|0)<(c[h>>2]|0))}else{h=b+12|0;o=c[h>>2]|0;bX(k|0,0,o+1|0)|0;m=(1<<l)+255|0;p=c[f>>2]|0;k=b+8|0;q=c[k>>2]|0;if((q|0)<=0){break}l=b+32|0;n=0;t=0;u=0;r=p;v=p;s=0;p=0;do{if((o|0)>0){q=0;do{w=c[j>>2]|0;if((t|0)<(w|0)){t=t+8|0;u=d[(c[l>>2]|0)+r|0]|0|u<<8;r=r+1|0}y=g+q|0;t=t-w|0;x=(u>>>t)+(d[y]|0)&m;a[y]=x;p=x&255|p<<w;s=w+s|0;if((s|0)>7){s=s+ -8|0;a[(c[l>>2]|0)+v|0]=p>>>s;o=c[h>>2]|0;v=v+1|0}q=q+1|0;}while((q|0)<(o|0));q=c[k>>2]|0}n=n+1|0;}while((n|0)<(q|0));if((s|0)<=0){break}y=8-s|0;a[(c[b+32>>2]|0)+v|0]=((1<<y)+255&u)+(p<<y);break}}}while(0);c[b+36>>2]=c[f>>2];y=1;i=e;return y|0}function Dj(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0;j=i;c[b+4>>2]=1;c[b>>2]=36776;k=b+16|0;c[k>>2]=13;l=b+24|0;c[l>>2]=0;c[l+4>>2]=0;$W(k|0,h|0,16)|0;c[b>>2]=37056;c[b+32>>2]=d;c[b+36>>2]=e;a[b+40|0]=f&1;c[b+8>>2]=g;h=b+41|0;c[b+304>>2]=h;c[b+300>>2]=h;c[b+308>>2]=e;c[b+312>>2]=0;a[b+316|0]=0;i=j;return}function Ej(b){b=b|0;var d=0,e=0;d=i;c[b>>2]=37056;e=b+316|0;if((a[e]&1)!=0){jc(c[b+32>>2]|0,c[b+312>>2]|0,0)|0;a[e]=0}c[b>>2]=36776;Of(b+16|0);HW(b);i=d;return}function Fj(b){b=b|0;var d=0,e=0;d=i;c[b>>2]=37056;e=b+316|0;if((a[e]&1)!=0){jc(c[b+32>>2]|0,c[b+312>>2]|0,0)|0;a[e]=0}c[b>>2]=36776;Of(b+16|0);i=d;return}function Gj(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;j=i;h=FW(320)|0;b=c[b+32>>2]|0;c[h+4>>2]=1;$W(h+16|0,g|0,16)|0;c[h>>2]=37056;c[h+32>>2]=b;c[h+36>>2]=d;a[h+40|0]=e&1;c[h+8>>2]=f;b=h+41|0;c[h+304>>2]=b;c[h+300>>2]=b;c[h+308>>2]=d;c[h+312>>2]=0;a[h+316|0]=0;i=j;return h|0}function Hj(b){b=b|0;var d=0,e=0,f=0;d=i;f=b+32|0;c[b+312>>2]=jb(c[f>>2]|0)|0;e=b+36|0;jc(c[f>>2]|0,c[e>>2]|0,0)|0;a[b+316|0]=1;f=b+41|0;c[b+304>>2]=f;c[b+300>>2]=f;c[b+308>>2]=c[e>>2];i=d;return}function Ij(b){b=b|0;var d=0,e=0;d=i;e=b+316|0;if((a[e]&1)==0){i=d;return}jc(c[b+32>>2]|0,c[b+312>>2]|0,0)|0;a[e]=0;i=d;return}function Jj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;f=a+32|0;g=c[f>>2]|0;if((d|0)>-1){jc(g|0,b|0,0)|0;c[a+308>>2]=b}else{jc(g|0,0,2)|0;g=jb(c[f>>2]|0)|0;jc(c[f>>2]|0,0-(g>>>0<b>>>0?g:b)|0,2)|0;c[a+308>>2]=jb(c[f>>2]|0)|0}d=a+41|0;c[a+304>>2]=d;c[a+300>>2]=d;i=e;return}function Kj(a,b){a=a|0;b=b|0;var d=0;d=a+36|0;b=(c[d>>2]|0)+b|0;c[d>>2]=b;d=a+41|0;c[a+304>>2]=d;c[a+300>>2]=d;c[a+308>>2]=b;i=i;return}function Lj(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0;j=i;c[b+4>>2]=1;c[b>>2]=36776;k=b+16|0;c[k>>2]=13;l=b+24|0;c[l>>2]=0;c[l+4>>2]=0;$W(k|0,h|0,16)|0;c[b>>2]=37184;c[b+32>>2]=d;c[b+36>>2]=e;a[b+40|0]=f&1;c[b+8>>2]=g;h=b+41|0;c[b+1072>>2]=h;c[b+1068>>2]=h;c[b+1076>>2]=e;c[b+1080>>2]=0;a[b+1084|0]=0;i=j;return}function Mj(b){b=b|0;var d=0,e=0,f=0;d=i;c[b>>2]=37184;f=b+1084|0;e=b+32|0;if((a[f]&1)!=0){St(c[e>>2]|0,c[b+1080>>2]|0,0)|0;a[f]=0}Qt(c[e>>2]|0);c[b>>2]=36776;Of(b+16|0);HW(b);i=d;return}function Nj(b){b=b|0;var d=0,e=0,f=0;d=i;c[b>>2]=37184;f=b+1084|0;e=b+32|0;if((a[f]&1)!=0){St(c[e>>2]|0,c[b+1080>>2]|0,0)|0;a[f]=0}Qt(c[e>>2]|0);c[b>>2]=36776;Of(b+16|0);i=d;return}function Oj(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;j=b+32|0;Pt(c[j>>2]|0);b=FW(1088)|0;j=c[j>>2]|0;c[b+4>>2]=1;$W(b+16|0,g|0,16)|0;c[b>>2]=37184;c[b+32>>2]=j;c[b+36>>2]=d;a[b+40|0]=e&1;c[b+8>>2]=f;g=b+41|0;c[b+1072>>2]=g;c[b+1068>>2]=g;c[b+1076>>2]=d;c[b+1080>>2]=0;a[b+1084|0]=0;i=h;return b|0}function Pj(b){b=b|0;var d=0,e=0,f=0;d=i;f=b+32|0;c[b+1080>>2]=Rt(c[f>>2]|0)|0;e=b+36|0;St(c[f>>2]|0,c[e>>2]|0,0)|0;a[b+1084|0]=1;f=b+41|0;c[b+1072>>2]=f;c[b+1068>>2]=f;c[b+1076>>2]=c[e>>2];i=d;return}function Qj(b){b=b|0;var d=0,e=0;d=i;e=b+1084|0;if((a[e]&1)==0){i=d;return}St(c[b+32>>2]|0,c[b+1080>>2]|0,0)|0;a[e]=0;i=d;return}function Rj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;f=a+32|0;g=c[f>>2]|0;if((d|0)>-1){St(g,b,0)|0;c[a+1076>>2]=b}else{St(g,0,2)|0;g=Rt(c[f>>2]|0)|0;St(c[f>>2]|0,0-(g>>>0<b>>>0?g:b)|0,2)|0;c[a+1076>>2]=Rt(c[f>>2]|0)|0}d=a+41|0;c[a+1072>>2]=d;c[a+1068>>2]=d;i=e;return}function Sj(a,b){a=a|0;b=b|0;var d=0;d=a+36|0;b=(c[d>>2]|0)+b|0;c[d>>2]=b;d=a+41|0;c[a+1072>>2]=d;c[a+1068>>2]=d;c[a+1076>>2]=b;i=i;return}function Tj(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0;h=i;c[b+4>>2]=1;c[b>>2]=36776;j=b+16|0;c[j>>2]=13;k=b+24|0;c[k>>2]=0;c[k+4>>2]=0;$W(j|0,g|0,16)|0;c[b>>2]=37312;c[b+32>>2]=d;c[b+36>>2]=e;c[b+8>>2]=f;c[b+40>>2]=d+(e+f);c[b+44>>2]=d+e;a[b+48|0]=0;i=h;return}function Uj(b){b=b|0;var d=0;d=i;c[b>>2]=37312;if((a[b+48|0]&1)!=0){Fe(c[b+32>>2]|0)}c[b>>2]=36776;Of(b+16|0);HW(b);i=d;return}function Vj(b){b=b|0;var d=0;d=i;c[b>>2]=37312;if((a[b+48|0]&1)!=0){Fe(c[b+32>>2]|0)}c[b>>2]=36776;Of(b+16|0);i=d;return}function Wj(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0;j=i;if(e){e=c[b+36>>2]|0;k=c[b+8>>2]|0;if((f+d|0)>>>0>(k+e|0)>>>0){h=4}}else{k=c[b+8>>2]|0;e=c[b+36>>2]|0;h=4}if((h|0)==4){f=e-d+k|0}k=FWFWFW>>2]|0;do{if(j>>>0>=k>>>0){j=b+41|0;l=b+1076|0;k=(c[l>>2]|0)+(k-j)|0;c[l>>2]=k;c[f>>2]=j;c[g>>2]=j;do{if((a[b+40|0]&1)==0){h=6}else{l=(c[b+8>>2]|0)+(c[b+36>>2]|0)|0;if(k>>>0>=l>>>0){l=-1;i=e;return l|0}if((k+1024|0)>>>0<=l>>>0){h=6;break}k=l-k|0}}while(0);if((h|0)==6){k=1024-(k&1023)|0}Ut(c[b+32>>2]|0,j,1,k)|0;l=b+41+k|0;c[f>>2]=l;j=c[g>>2]|0;if(j>>>0<l>>>0){break}else{b=-1}i=e;return b|0}}while(0);l=d[j]|0;i=e;return l|0}function cm(a){a=a|0;var b=0;b=i;a=jd[c[(c[a>>2]|0)+20>>2]&511](a)|0;i=b;return a|0}function dm(a){a=a|0;var b=0;b=i;fd[c[(c[a>>2]|0)+12>>2]&511](a);i=b;return}function em(a){a=a|0;i=i;return(c[a+1076>>2]|0)-(a+41)+(c[a+1068>>2]|0)|0}function fm(a){a=a|0;i=i;return c[a+36>>2]|0}function gm(a){a=a|0;i=i;return 11}function hm(a){a=a|0;var b=0,e=0,f=0;b=i;f=a+44|0;e=c[f>>2]|0;if(e>>>0>=(c[a+40>>2]|0)>>>0){f=-1;i=b;return f|0}c[f>>2]=e+1;f=d[e]|0;i=b;return f|0}function im(a){a=a|0;var b=0,e=0;b=i;e=c[a+44>>2]|0;if(e>>>0>=(c[a+40>>2]|0)>>>0){e=-1;i=b;return e|0}e=d[e]|0;i=b;return e|0}function jm(a){a=a|0;var b=0;b=i;a=jd[c[(c[a>>2]|0)+20>>2]&511](a)|0;i=b;return a|0}function km(a){a=a|0;var b=0;b=i;fd[c[(c[a>>2]|0)+12>>2]&511](a);i=b;return}function lm(a){a=a|0;i=i;return(c[a+44>>2]|0)-(c[a+32>>2]|0)|0}function mm(a){a=a|0;i=i;return c[a+36>>2]|0}function nm(b,c){b=b|0;c=c|0;a[b+48|0]=c&1;i=i;return}function om(a){a=a|0;i=i;return 2}function pm(a){a=a|0;var b=0,d=0;d=i;b=jd[c[(c[a>>2]|0)+24>>2]&511](a)|0;c[a+12>>2]=-1;i=d;return b|0}function qm(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;a=jd[c[(c[a>>2]|0)+36>>2]&511](a)|0;i=b;return a|0}function rm(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;fd[c[(c[a>>2]|0)+40>>2]&511](a);i=b;return}function sm(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;a=jd[c[(c[a>>2]|0)+48>>2]&511](a)|0;i=b;return a|0}function tm(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;a=jd[c[(c[a>>2]|0)+64>>2]&511](a)|0;i=b;return a|0}function um(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;a=jd[c[(c[a>>2]|0)+68>>2]&511](a)|0;i=b;return a|0}function vm(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;a=jd[c[(c[a>>2]|0)+72>>2]&511](a)|0;i=b;return a|0}function wm(a){a=a|0;i=i;return c[a+8>>2]|0}function xm(a){a=a|0;i=i;return 3}function ym(a){a=a|0;var b=0,d=0;d=i;b=jd[c[(c[a>>2]|0)+24>>2]&511](a)|0;a=a+48|0;c[a>>2]=(c[a>>2]|0)+1;i=d;return b|0}function zm(a){a=a|0;i=i;return 6}function Am(a){a=a|0;var b=0,d=0;d=i;b=jd[c[(c[a>>2]|0)+24>>2]&511](a)|0;c[a+64>>2]=-1;i=d;return b|0}function Bm(a){a=a|0;i=i;return 11}function Cm(a){a=a|0;i=i;return}function Dm(a){a=a|0;i=i;return-1}function Em(a){a=a|0;i=i;return-1}function Fm(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return 0}function Gm(a,b){a=a|0;b=b|0;i=i;return 0}function Hm(a){a=a|0;i=i;return 4}function Im(a){a=a|0;i=i;return 5}function Jm(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;f=i;e=b+140|0;h=c[e>>2]|0;g=b+144|0;if(h>>>0>=(c[g>>2]|0)>>>0){j=b+148|0;if((a[j]&1)!=0){k=-1;i=f;return k|0}h=b+8|0;k=c[h>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==128|(k|0)==-1){a[j]=1;k=-1;i=f;return k|0}do{if((k|0)<128){j=k+1|0;if((k|0)>-1){k=0}else{break}while(1){l=c[h>>2]|0;a[b+12+k|0]=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;k=k+1|0;if((k|0)<(j|0)){}else{break}}}else{j=257-k|0;h=c[h>>2]|0;h=jd[c[(c[h>>2]|0)+20>>2]&511](h)|0;if((j|0)<=0){break}bX(b+12|0,h&255|0,j|0)|0}}while(0);h=b+12|0;c[e>>2]=h;c[g>>2]=b+12+j}c[e>>2]=h+1;l=d[h]|0;i=f;return l|0}function Km(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;f=b+140|0;h=c[f>>2]|0;g=b+144|0;if(h>>>0>=(c[g>>2]|0)>>>0){j=b+148|0;if((a[j]&1)!=0){k=-1;i=e;return k|0}h=b+8|0;k=c[h>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==128|(k|0)==-1){a[j]=1;k=-1;i=e;return k|0}do{if((k|0)<128){j=k+1|0;if((k|0)>-1){k=0}else{break}while(1){l=c[h>>2]|0;a[b+12+k|0]=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;k=k+1|0;if((k|0)<(j|0)){}else{break}}}else{j=257-k|0;h=c[h>>2]|0;h=jd[c[(c[h>>2]|0)+20>>2]&511](h)|0;if((j|0)<=0){break}bX(b+12|0,h&255|0,j|0)|0}}while(0);h=b+12|0;c[f>>2]=h;c[g>>2]=b+12+j}l=d[h]|0;i=e;return l|0}function Lm(a){a=a|0;i=i;return 7}function Mm(a){a=a|0;i=i;return 8}function Nm(a){a=a|0;i=i;return-1}function Om(a){a=a|0;var b=0;b=i;a=c[a+32>>2]|0;a=jd[c[(c[a>>2]|0)+8>>2]&511](a)|0;i=b;return a|0}function Pm(a){a=a|0;i=i;return}function Qm(a){a=a|0;var b=0;b=i;a=c[a+32>>2]|0;a=jd[c[(c[a>>2]|0)+36>>2]&511](a)|0;i=b;return a|0}function Rm(a){a=a|0;var b=0;b=i;a=c[a+32>>2]|0;fd[c[(c[a>>2]|0)+40>>2]&511](a);i=b;return}function Sm(a){a=a|0;var b=0;b=i;a=c[a+32>>2]|0;a=jd[c[(c[a>>2]|0)+48>>2]&511](a)|0;i=b;return a|0}function Tm(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;j=FW(32)|0;fe(j,d);c[b>>2]=j;a[b+8|0]=e&1;c[b+4>>2]=1;c[b+12>>2]=f;c[b+16>>2]=g;c[b+20>>2]=0;c[b+24>>2]=0;c[b+28>>2]=1;ad(b+32|0,0)|0;i=h;return}function Um(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;h=FW(32)|0;fe(h,d);c[b>>2]=h;a[b+8|0]=e&1;c[b+4>>2]=2;c[b+12>>2]=f;c[b+20>>2]=0;c[b+24>>2]=0;c[b+28>>2]=1;ad(b+32|0,0)|0;i=g;return}function Vm(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)!=0){ke(d);HW(d)}do{if((c[a+4>>2]|0)==0){d=c[a+12>>2]|0;if((d|0)==0){break}Fe(d)}}while(0);d=c[a+20>>2]|0;if((d|0)==0){d=a+32|0;kc(d|0)|0;i=b;return}Fe(d);d=a+32|0;kc(d|0)|0;i=b;return}function Wm(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+32|0;Ub(d|0)|0;f=a+28|0;e=(c[f>>2]|0)+ -1|0;c[f>>2]=e;Mc(d|0)|0;if((e|0)!=0|(a|0)==0){i=b;return}e=c[a>>2]|0;if((e|0)!=0){ke(e);HW(e)}do{if((c[a+4>>2]|0)==0){e=c[a+12>>2]|0;if((e|0)==0){break}Fe(e)}}while(0);e=c[a+20>>2]|0;if((e|0)!=0){Fe(e)}kc(d|0)|0;HW(a);i=b;return}function Xm(a){a=a|0;var b=0;b=i;bX(a|0,0,16)|0;i=b;return}function Ym(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)!=0){Wm(d)}d=c[a+4>>2]|0;if((d|0)!=0){Wm(d)}d=c[a+8>>2]|0;if((d|0)!=0){Wm(d)}a=c[a+12>>2]|0;if((a|0)==0){i=b;return}Wm(a);i=b;return}function Zm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;g=i;h=i;i=i+8|0;j=h;s=i;i=i+8|0;t=s;v=i;i=i+8|0;w=v;A=i;i=i+8|0;B=A;C=i;i=i+8|0;D=C;E=i;i=i+8|0;F=i;i=i+8|0;G=F;I=i;i=i+8|0;H=I;J=i;i=i+8|0;K=J;L=i;i=i+8|0;M=L;p=i;i=i+16|0;r=p;o=i;i=i+16|0;n=o;y=i;i=i+16|0;u=y;c[p>>2]=13;l=r+8|0;c[l>>2]=0;c[l+4>>2]=0;c[o>>2]=13;m=n+8|0;c[m>>2]=0;f=m+4|0;c[f>>2]=0;c[y>>2]=13;x=u+8|0;c[x>>2]=0;c[x+4>>2]=0;c[b>>2]=e;q=b+4|0;k=b+8|0;z=b+12|0;b=b+16|0;bX(q|0,0,13)|0;if((c[(_m(d,e,0,r,0)|0)>>2]|0)!=8){Of(r);i=g;return}e=c[p>>2]|0;if((e|0)!=8){c[L>>2]=e;c[M+4>>2]=8;Qe(0,49608,M);tc()}e=c[l>>2]|0;if((c[(Yu(jd[c[(c[e>>2]|0)+72>>2]&511](e)|0,48768,n,0)|0)>>2]|0)!=1){Of(n);Of(r);i=g;return}L=c[o>>2]|0;if((L|0)!=1){c[J>>2]=L;c[K+4>>2]=1;Qe(0,49608,K);tc()}c[q>>2]=c[m>>2];Of(n);if((c[q>>2]|0)<1){Of(r);i=g;return}J=c[p>>2]|0;if((J|0)!=8){c[I>>2]=J;c[H+4>>2]=8;Qe(0,49608,H);tc()}e=c[l>>2]|0;if((c[(Yu(jd[c[(c[e>>2]|0)+72>>2]&511](e)|0,48776,n,0)|0)>>2]|0)!=1){Of(n);Of(r);i=g;return}H=c[o>>2]|0;if((H|0)!=1){c[F>>2]=H;c[G+4>>2]=1;Qe(0,49608,G);tc()}F=c[m>>2]|0;Of(n);if((F|0)<0){Of(r);i=g;return}G=c[q>>2]|0;if((G|0)>1e6){Qe(-1,48784,E);Of(r);i=g;return}E=GW(G>>>0>268435455?-1:G<<4)|0;if((G|0)==0){G=0}else{G=E+(G<<4)|0;H=E;do{c[H>>2]=13;e=H+8|0;c[e>>2]=0;c[e+4>>2]=0;H=H+16|0;}while((H|0)!=(G|0));G=c[q>>2]|0}c[k>>2]=E;c[z>>2]=ye(G,4)|0;E=ye(c[q>>2]|0,4)|0;G=c[p>>2]|0;if((G|0)!=8){c[C>>2]=G;c[D+4>>2]=8;Qe(0,49608,D);tc()}C=c[l>>2]|0;fd[c[(c[C>>2]|0)+12>>2]&511](C);c[m>>2]=0;c[f>>2]=0;c[o>>2]=5;C=FW(40)|0;D=c[p>>2]|0;if((D|0)!=8){c[A>>2]=D;c[B+4>>2]=8;Qe(0,49608,B);tc()}$j(C,c[l>>2]|0,n,1,F);A=FW(56)|0;e=FW(168)|0;bE(e,d,C);aG(A,d,e,0);a:do{if((c[q>>2]|0)>0){B=0;while(1){cG(A,n,0,0,0,0,0)|0;cG(A,u,0,0,0,0,0)|0;if((c[o>>2]|0)!=1){x=31;break}if((c[y>>2]|0)!=1){x=31;break}c[(c[z>>2]|0)+(B<<2)>>2]=c[m>>2];D=c[y>>2]|0;if((D|0)!=1){x=35;break}D=E+(B<<2)|0;c[D>>2]=c[x>>2];Of(n);Of(u);if((c[(c[z>>2]|0)+(B<<2)>>2]|0)<0){x=40;break}D=c[D>>2]|0;if((D|0)<0){x=40;break}if((B|0)>0){if((D|0)<(c[E+(B+ -1<<2)>>2]|0)){x=40;break}}B=B+1|0;if((B|0)>=(c[q>>2]|0)){break a}}if((x|0)==31){Of(n);Of(u);if((A|0)!=0){bG(A);HW(A)}Fe(E);Of(r);i=g;return}else if((x|0)==35){c[v>>2]=D;c[w+4>>2]=1;Qe(0,49608,w);tc()}else if((x|0)==40){if((A|0)!=0){bG(A);HW(A)}Fe(E);Of(r);i=g;return}}}while(0);do{}while((jd[c[(c[C>>2]|0)+20>>2]&511](C)|0)!=-1);if((A|0)!=0){bG(A);HW(A)}b:do{if((F|0)<(c[E>>2]|0)){while(1){u=c[p>>2]|0;if((u|0)!=8){break}e=c[l>>2]|0;jd[c[(c[e>>2]|0)+20>>2]&511](e)|0;F=F+1|0;if((F|0)>=(c[E>>2]|0)){break b}}c[s>>2]=u;c[t+4>>2]=8;Qe(0,49608,t);tc()}}while(0);u=c[q>>2]|0;c:do{if((u|0)>0){s=0;while(1){c[m>>2]=0;c[f>>2]=0;c[o>>2]=5;t=FW(40)|0;v=c[p>>2]|0;if((v|0)!=8){break}v=c[l>>2]|0;if((s|0)==(u+ -1|0)){$j(t,v,n,0,0)}else{$j(t,v,n,1,(c[E+(s+1<<2)>>2]|0)-(c[E+(s<<2)>>2]|0)|0)}u=FW(56)|0;e=FW(168)|0;bE(e,d,t);aG(u,d,e,0);cG(u,(c[k>>2]|0)+(s<<4)|0,0,0,0,0,0)|0;do{}while((jd[c[(c[t>>2]|0)+20>>2]&511](t)|0)!=-1);if((u|0)!=0){bG(u);HW(u)}s=s+1|0;u=c[q>>2]|0;if((s|0)>=(u|0)){break c}}c[h>>2]=v;c[j+4>>2]=8;Qe(0,49608,j);tc()}}while(0);Fe(E);a[b]=1;Of(r);i=g;return}function _m(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;h=i;p=i;i=i+8|0;n=p;D=i;i=i+8|0;E=D;l=i;i=i+8|0;j=l;y=i;i=i+16|0;r=y;u=i;i=i+16|0;s=u;w=i;i=i+16|0;o=w;q=i;i=i+8|0;t=q;B=i;i=i+8|0;z=B;c[l>>2]=d;c[y>>2]=13;A=r+8|0;c[A>>2]=0;C=A+4|0;c[C>>2]=0;c[u>>2]=13;v=s+8|0;c[v>>2]=0;c[v+4>>2]=0;c[w>>2]=13;x=o+8|0;c[x>>2]=0;c[x+4>>2]=0;a:do{if((d|0)>=0){if((c[b+16>>2]|0)<=(d|0)){break}m=(g|0)==0;do{if(!m){F=g+4|0;I=c[F>>2]|0;if((I|0)==0){break}else{G=F}b:while(1){H=I;while(1){if((c[H+16>>2]|0)>=(d|0)){break}H=c[H+4>>2]|0;if((H|0)==0){break b}}I=c[H>>2]|0;if((I|0)==0){G=H;break}else{G=H}}if((G|0)==(F|0)){break}if((c[G+16>>2]|0)<=(d|0)){break a}}}while(0);F=kn(b,d)|0;d=F+16|0;if((c[d>>2]|0)!=5){I=Mf(d,f)|0;i=h;return I|0}if(m){g=FW(12)|0;m=g+4|0;c[m>>2]=0;c[g+8>>2]=0;c[g>>2]=m;m=1}else{m=0}tn(E,g,j);j=c[D>>2]|0;D=c[F+8>>2]|0;c:do{if((D|0)==2){if((e|0)!=0){k=66;break}o=c[F>>2]|0;c[B>>2]=49744;c[z+4>>2]=o;o=b+64|0;n=lG(c[o>>2]|0,z)|0;if((n|0)==0){k=41}else{n=c[n+4>>2]|0;if((n|0)==0){k=41}}do{if((k|0)==41){n=FW(20)|0;Zm(n,b,c[F>>2]|0);if((a[n+16|0]&1)!=0){H=FW(8)|0;I=c[F>>2]|0;c[H>>2]=49744;c[H+4>>2]=I;I=FW(8)|0;c[I>>2]=49688;c[I+4>>2]=n;mG(c[o>>2]|0,H,I);break}if((n|0)!=0){k=n+8|0;o=c[k>>2]|0;do{if((o|0)!=0){l=n+4|0;if((c[l>>2]|0)>0){b=0;do{Of(o+(b<<4)|0);b=b+1|0;o=c[k>>2]|0;}while((b|0)<(c[l>>2]|0));if((o|0)==0){break}}IW(o)}}while(0);Fe(c[n+12>>2]|0);HW(n)}k=66;break c}}while(0);b=c[F+4>>2]|0;l=c[l>>2]|0;do{if((b|0)<0){k=53}else{if((c[n+4>>2]|0)<=(b|0)){k=53;break}if((c[(c[n+12>>2]|0)+(b<<2)>>2]|0)!=(l|0)){k=53;break}Mf((c[n+8>>2]|0)+(b<<4)|0,f)|0}}while(0);if((k|0)==53){I=f+8|0;c[I>>2]=0;c[I+4>>2]=0;c[f>>2]=5}}else if((D|0)==1){if((c[F+4>>2]|0)!=(e|0)){k=66;break}c[A>>2]=0;c[C>>2]=0;c[y>>2]=5;z=FW(56)|0;I=FW(168)|0;H=c[b>>2]|0;bE(I,b,Cd[c[(c[H>>2]|0)+96>>2]&63](H,(c[F>>2]|0)+(c[b+4>>2]|0)|0,0,0,r)|0);aG(z,b,I,1);eG(z,r,g)|0;eG(z,s,g)|0;eG(z,o,g)|0;do{if((c[y>>2]|0)==1){y=c[A>>2]|0;l=(y|0)==(c[l>>2]|0);if(!l){break}if((c[u>>2]|0)!=1){break}if((c[v>>2]|0)==(e|0)){do{if((c[w>>2]|0)==10){if((Qc(c[x>>2]|0,48880)|0)!=0){break}dG(z,f,(a[b+68|0]&1)==0?0:b+92|0,c[b+80>>2]|0,c[b+84>>2]|0,y,e,g)|0;Of(r);Of(s);Of(o);if((z|0)==0){break c}bG(z);HW(z);break c}}while(0);if(!l){break}}if((c[u>>2]|0)!=1){break}if((c[v>>2]|0)!=(e|0)){break}if((c[w>>2]|0)!=10){break}l=c[x>>2]|0;if((ZW(l|0)|0)>>>0<=3){break}if((a[l]|0)!=111){break}if((a[l+1|0]|0)!=98){break}if((a[l+2|0]|0)!=106){break}b=Bb(l+3|0,t|0,0)|0;if((a[c[q>>2]|0]|0)!=0){break}c[p>>2]=l;c[n+4>>2]=b;Qe(-1,49264,n);I=f+8|0;c[I+4>>2]=0;c[f>>2]=1;c[I>>2]=b;Of(r);Of(s);Of(o);if((z|0)==0){break c}bG(z);HW(z);break c}}while(0);Of(r);Of(s);Of(o);if((z|0)==0){k=66;break}bG(z);HW(z);k=66}else{k=66}}while(0);if((k|0)==66){if(m){if((g|0)==0){break}xn(g,c[g+4>>2]|0);HW(g);break}k=c[j+4>>2]|0;if((k|0)==0){k=j;while(1){l=c[k+8>>2]|0;if((k|0)==(c[l>>2]|0)){k=l;break}else{k=l}}}else{while(1){l=c[k>>2]|0;if((l|0)==0){break}else{k=l}}}if((c[g>>2]|0)==(j|0)){c[g>>2]=k}I=g+8|0;c[I>>2]=(c[I>>2]|0)+ -1;sn(c[g+4>>2]|0,j);HW(j);break}if(m){if((g|0)==0){I=f;i=h;return I|0}xn(g,c[g+4>>2]|0);HW(g);I=f;i=h;return I|0}l=c[j+4>>2]|0;if((l|0)==0){l=j;while(1){k=c[l+8>>2]|0;if((l|0)==(c[k>>2]|0)){break}else{l=k}}}else{while(1){k=c[l>>2]|0;if((k|0)==0){k=l;break}else{l=k}}}if((c[g>>2]|0)==(j|0)){c[g>>2]=k}I=g+8|0;c[I>>2]=(c[I>>2]|0)+ -1;sn(c[g+4>>2]|0,j);HW(j);I=f;i=h;return I|0}}while(0);I=f+8|0;c[I>>2]=0;c[I+4>>2]=0;c[f>>2]=5;I=f;i=h;return I|0}function $m(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=a+8|0;g=c[d>>2]|0;do{if((g|0)!=0){e=a+4|0;if((c[e>>2]|0)>0){f=0;do{Of(g+(f<<4)|0);f=f+1|0;g=c[d>>2]|0;}while((f|0)<(c[e>>2]|0));if((g|0)==0){break}}IW(g)}}while(0);Fe(c[a+12>>2]|0);i=b;return}function an(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;j=i;m=i;i=i+8|0;k=m;t=i;i=i+8|0;n=t;x=i;i=i+8|0;w=x;B=i;i=i+8|0;z=i;i=i+8|0;A=z;s=i;i=i+16|0;r=s;D=i;i=i+16|0;C=D;o=b+40|0;c[o>>2]=13;l=b+48|0;c[l>>2]=0;c[l+4>>2]=0;c[s>>2]=13;q=r+8|0;c[q>>2]=0;u=q+4|0;c[u>>2]=0;p=b+28|0;a[p]=1;v=b+32|0;c[v>>2]=0;c[b+8>>2]=0;c[b+12>>2]=0;y=b+16|0;c[y>>2]=0;c[b+56>>2]=0;c[b+60>>2]=0;E=FWFW(56)|0;L=FW(168)|0;K=c[b>>2]|0;bE(L,0,Cd[c[(c[K>>2]|0)+96>>2]&63](K,C,0,0,s)|0);aG(J,0,L,0);cG(J,r,0,0,0,0,0)|0;if((c[m>>2]|0)==7){Zu(c[k>>2]|0,48864,s)|0;if((c[l>>2]|0)==9){c[w>>2]=c[t>>2];c[x>>2]=c[u>>2];if((c[d>>2]|0)!=13){Of(d)}Mf(r,d)|0;D=1}Of(s)}Of(r);if((J|0)==0){break}bG(J);HW(J)}else{if(((a[I]|0)+ -48|0)>>>0>=10){if((vc(I|0,49176,9)|0)!=0){break}K=c[n>>2]|0;if((K|0)==(G|0)){G=G+64|0;if((G|0)>536870910){k=49;break a}J=Ce(c[y>>2]|0,G,4)|0;c[y>>2]=J;K=c[n>>2]|0}else{J=c[y>>2]|0}c[n>>2]=K+1;c[J+(K<<2)>>2]=B;break}J=ec(I|0)|0;if((J|0)<=0){break}do{I=I+1|0;L=a[I]|0;K=L<<24>>24;if(L<<24>>24==0){break}}while((K+ -48|0)>>>0<10);if((xc(K|0)|0)==0){break}do{I=I+1|0;K=a[I]|0;if(K<<24>>24==0){break d}}while((xc(K<<24>>24|0)|0)!=0);if(((a[I]|0)+ -48|0)>>>0>=10){break}K=ec(I|0)|0;do{I=I+1|0;M=a[I]|0;L=M<<24>>24;if(M<<24>>24==0){break}}while((L+ -48|0)>>>0<10);if((xc(L|0)|0)==0){break}do{I=I+1|0;L=a[I]|0;if(L<<24>>24==0){break}}while((xc(L<<24>>24|0)|0)!=0);if((vc(I|0,48880,3)|0)!=0){break}if((J|0)>=(c[p>>2]|0)){L=J+256&-256;if((L|0)<0){k=39;break a}if((dn(b,L)|0)!=(L|0)){k=41;break a}}L=c[o>>2]|0;if((c[L+(J<<5)+8>>2]|0)!=0){if((K|0)<(c[L+(J<<5)+4>>2]|0)){break}}c[L+(J<<5)>>2]=B-(c[z>>2]|0);c[(c[o>>2]|0)+(J<<5)+4>>2]=K;c[(c[o>>2]|0)+(J<<5)+8>>2]=1}}while(0);H=H<<24>>24!=0}while(!F);I=E+6|0;B=B+6+A|0;C=a[I]|0;if(C<<24>>24==0){continue}while(1){if(!(hE(C&255)|0)){continue c}I=I+1|0;B=B+1|0;C=a[I]|0;if(C<<24>>24==0){continue c}}}B=c[b>>2]|0;B=jd[c[(c[B>>2]|0)+48>>2]&511](B)|0;M=c[b>>2]|0;if((sd[c[(c[M>>2]|0)+44>>2]&127](M,v,256)|0)==0){k=56;break}}if((k|0)==39){Qe(-1,49120,f);M=0;i=e;return M|0}else if((k|0)==41){Qe(-1,49144,g);M=0;i=e;return M|0}else if((k|0)==49){Qe(-1,49192,h);M=0;i=e;return M|0}else if((k|0)==56){if(D){f=1}else{break}i=e;return f|0}}}while(0);Qe(-1,49224,j);M=0;i=e;return M|0}function cn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;l=i;i=i+8|0;m=l;n=i;i=i+16|0;j=n;k=j+8|0;c[k>>2]=0;c[k+4>>2]=0;c[n>>2]=5;f=FW(56)|0;o=FW(168)|0;p=c[b>>2]|0;bE(o,0,Cd[c[(c[p>>2]|0)+96>>2]&63](p,(c[d>>2]|0)+(c[b+4>>2]|0)|0,0,0,j)|0);aG(f,0,o,1);cG(f,j,0,0,0,0,0)|0;o=c[n>>2]|0;do{if((o|0)==1){Of(j);if((c[(cG(f,j,0,0,0,0,0)|0)>>2]|0)!=1){h=15;break}Of(j);o=cG(f,j,0,0,0,0,0)|0;if((c[o>>2]|0)!=10){h=15;break}if((Qc(c[o+8>>2]|0,48880)|0)!=0){h=15;break}Of(j);if((c[(cG(f,j,0,0,0,0,0)|0)>>2]|0)!=8){h=15;break}if((c[b+40>>2]|0)==13){a[b+120|0]=1}n=c[n>>2]|0;if((n|0)==8){b=gn(b,c[k>>2]|0,d)|0;Of(j);h=13;break}else{c[l>>2]=n;c[m+4>>2]=8;Qe(0,49608,m);tc()}}else if((o|0)==10){if((Qc(c[k>>2]|0,48872)|0)!=0){h=15;break}Of(j);b=fn(b,f,d,e)|0;h=13}else{h=15}}while(0);if((h|0)==13){if((f|0)==0){p=b;i=g;return p|0}bG(f);HW(f);p=b;i=g;return p|0}else if((h|0)==15){Of(j);if((f|0)!=0){bG(f);HW(f)}a[b+28|0]=0;p=0;i=g;return p|0}return 0}function dn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;f=b+16|0;g=c[f>>2]|0;do{if((g|0)<(d|0)){g=b+12|0;h=c[g>>2]|0;do{if((h|0)<(d|0)){h=(h|0)==0?1024:h<<1;while(1){if((h|0)<(d|0)&(h|0)>0){h=h<<1}else{break}}if(h>>>0>67108862){h=0;break}k=b+8|0;j=Ee(c[k>>2]|0,h,32)|0;if((j|0)==0){h=0;break}c[k>>2]=j;c[g>>2]=h}}while(0);g=c[f>>2]|0;if((h|0)<(d|0)){k=g;i=e;return k|0}if((g|0)>=(d|0)){break}b=b+8|0;do{c[(c[b>>2]|0)+(g<<5)>>2]=-1;c[(c[b>>2]|0)+(g<<5)+8>>2]=3;k=c[b>>2]|0;j=k+(g<<5)+24|0;c[j>>2]=0;c[j+4>>2]=0;c[k+(g<<5)+16>>2]=5;a[(c[b>>2]|0)+(g<<5)+12|0]=0;c[(c[b>>2]|0)+(g<<5)+4>>2]=0;g=g+1|0;}while((g|0)<(d|0))}else{if((g|0)<=(d|0)){break}b=b+8|0;g=d;do{Of((c[b>>2]|0)+(g<<5)+16|0);g=g+1|0;}while((g|0)<(c[f>>2]|0))}}while(0);c[f>>2]=d;k=d;i=e;return k|0}function en(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=a+16|0;e=a+8|0;g=c[e>>2]|0;if((c[d>>2]|0)>0){f=0;while(1){Of(g+(f<<5)+16|0);f=f+1|0;g=c[e>>2]|0;if((f|0)<(c[d>>2]|0)){}else{break}}}Fe(g);Of(a+40|0);d=c[a+56>>2]|0;if((d|0)!=0){Fe(d)}a=c[a+64>>2]|0;if((a|0)==0){i=b;return}kG(a);HW(a);i=b;return}function fn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;j=i;p=i;i=i+8|0;n=p;s=i;i=i+8|0;t=s;w=i;i=i+8|0;v=w;y=i;i=i+8|0;z=y;G=i;i=i+8|0;x=G;F=i;i=i+8|0;D=i;i=i+8|0;E=D;C=i;i=i+8|0;u=i;i=i+16|0;h=u;q=i;i=i+16|0;g=q;m=i;i=i+8|0;k=m;c[u>>2]=13;r=h+8|0;c[r>>2]=0;c[r+4>>2]=0;c[q>>2]=13;o=g+8|0;c[o>>2]=0;c[o+4>>2]=0;B=b+16|0;A=b+8|0;a:while(1){cG(d,h,0,0,0,0,0)|0;H=c[u>>2]|0;if((H|0)==10){l=3;break}else if((H|0)!=1){l=59;break}J=c[r>>2]|0;Of(h);if((c[(cG(d,h,0,0,0,0,0)|0)>>2]|0)!=1){l=59;break}H=c[u>>2]|0;if((H|0)!=1){l=7;break}H=c[r>>2]|0;Of(h);if((H|J|0)<0){break}I=H+J|0;if((I|0)<0){break}if((I|0)>(c[B>>2]|0)){if((dn(b,I)|0)!=(I|0)){l=13;break}}if((H|0)>0){I=J}else{continue}while(1){if((c[(cG(d,h,0,0,0,0,0)|0)>>2]|0)!=1){l=59;break a}K=c[u>>2]|0;if((K|0)!=1){l=16;break a}K=c[r>>2]|0;Of(h);if((c[(cG(d,h,0,0,0,0,0)|0)>>2]|0)!=1){l=59;break a}L=c[u>>2]|0;if((L|0)!=1){l=19;break a}L=c[r>>2]|0;Of(h);cG(d,h,0,0,0,0,0)|0;if((c[u>>2]|0)!=10){l=59;break a}M=c[r>>2]|0;if((Qc(M|0,48928)|0)==0){O=1}else{if((Qc(M|0,48936)|0)==0){O=0}else{l=59;break a}}Of(h);M=c[A>>2]|0;N=M+(J<<5)|0;do{if((c[N>>2]|0)==-1){c[N>>2]=K;c[M+(J<<5)+4>>2]=L;c[M+(J<<5)+8>>2]=O;a[M+(J<<5)+12|0]=0;$W(N+13|0,C|0,3)|0;c[M+(J<<5)+16>>2]=5;c[M+(J<<5)+24>>2]=0;c[N+28>>2]=0;if(!((J|0)==1&(I|0)==1)){break}J=c[A>>2]|0;I=J+32|0;if((c[I>>2]|0)!=0){I=1;J=1;break}if((c[J+36>>2]|0)!=65535){I=1;J=1;break}if((c[J+40>>2]|0)!=0){I=1;J=1;break}$W(J|0,I|0,32)|0;c[(c[A>>2]|0)+32>>2]=-1;I=0;J=0}}while(0);J=J+1|0;if((J|0)>=(I+H|0)){continue a}}}b:do{if((l|0)==3){if((Qc(c[r>>2]|0,48888)|0)!=0){l=59;break}Of(h);if((c[(cG(d,h,0,0,0,0,0)|0)>>2]|0)!=7){l=59;break}x=c[u>>2]|0;if((x|0)!=7){c[w>>2]=x;c[v+4>>2]=7;Qe(0,49608,v);tc()}Zu(c[r>>2]|0,48944,g)|0;v=c[q>>2]|0;if((v|0)==9){c[e>>2]=c[o>>2];e=1}else if((v|0)==1){c[e>>2]=c[o>>2];e=1}else{e=0}Of(g);v=b+40|0;if((c[v>>2]|0)==13){Mf(h,v)|0}u=c[u>>2]|0;if((u|0)!=7){c[s>>2]=u;c[t+4>>2]=7;Qe(0,49608,t);tc()}do{if((c[(Yu(c[r>>2]|0,48952,g,0)|0)>>2]|0)==1){q=c[q>>2]|0;if((q|0)!=1){c[p>>2]=q;c[n+4>>2]=1;Qe(0,49608,n);tc()}n=c[o>>2]|0;c[m>>2]=n;m=f+4|0;o=b+28|0;p=a[o]|0;c:do{if((p&1)==0){l=49}else{q=0;while(1){r=c[f>>2]|0;if(q>>>0>=(c[m>>2]|0)-r>>2>>>0){l=49;break c}if((c[r+(q<<2)>>2]|0)==(n|0)){break}if((p&1)==0){l=49;break c}q=q+1|0}a[o]=0}}while(0);if((l|0)==49){if((p&1)!=0){l=c[m>>2]|0;if((l|0)==(c[f+8>>2]|0)){vn(f,k)}else{if((l|0)==0){l=0}else{c[l>>2]=n;l=c[m>>2]|0}c[m>>2]=l+4}cn(b,k,f)|0;p=a[o]|0}if((p&1)!=0){break}}Of(g);l=59;break b}}while(0);Of(g);Of(h);O=e;i=j;return O|0}else if((l|0)==7){c[D>>2]=H;c[E+4>>2]=1;Qe(0,49608,E);tc()}else if((l|0)==13){Qe(-1,48896,F)}else if((l|0)==16){c[G>>2]=K;c[x+4>>2]=1;Qe(0,49608,x);tc()}else if((l|0)==19){c[y>>2]=L;c[z+4>>2]=1;Qe(0,49608,z);tc()}}while(0);if((l|0)==59){Of(h)}a[b+28|0]=0;O=0;i=j;return O|0}function gn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;f=i;k=i;i=i+8|0;j=k;r=i;i=i+8|0;s=r;p=i;i=i+8|0;q=p;w=i;i=i+8|0;l=w;C=i;i=i+8|0;y=C;A=i;i=i+8|0;B=A;H=i;i=i+8|0;G=H;I=i;i=i+8|0;K=i;i=i+8|0;F=K;t=i;i=i+16|0;o=i;i=i+16|0;h=o;E=i;i=i+16|0;D=E;v=i;i=i+16|0;n=v;c[o>>2]=13;m=h+8|0;c[m>>2]=0;c[m+4>>2]=0;c[E>>2]=13;z=D+8|0;c[z>>2]=0;c[z+4>>2]=0;c[v>>2]=13;u=n+8|0;c[u>>2]=0;c[u+4>>2]=0;g=jd[c[(c[d>>2]|0)+72>>2]&511](d)|0;a:do{if((c[(Zu(g,48824,h)|0)>>2]|0)==1){J=c[o>>2]|0;if((J|0)!=1){c[K>>2]=J;c[F+4>>2]=1;Qe(0,49608,F);tc()}F=c[m>>2]|0;Of(h);if((F|0)<0){x=46;break}do{if((F|0)>(c[b+16>>2]|0)){if((dn(b,F)|0)==(F|0)){break}Qe(-1,48960,I);break a}}while(0);if((c[(Zu(g,48992,h)|0)>>2]|0)!=6){x=46;break}x=c[o>>2]|0;if((x|0)!=6){c[H>>2]=x;c[G+4>>2]=6;Qe(0,49608,G);tc()}if((c[(c[m>>2]|0)+12>>2]|0)<3){x=46;break}G=6;x=0;while(1){if((G|0)!=6){x=16;break}if((c[(ut(c[m>>2]|0,x,D)|0)>>2]|0)!=1){x=18;break}G=c[E>>2]|0;if((G|0)!=1){x=20;break}K=c[z>>2]|0;c[t+(x<<2)>>2]=K;Of(D);x=x+1|0;if(K>>>0>4){x=46;break a}if((x|0)>=3){x=22;break}G=c[o>>2]|0}if((x|0)==16){c[A>>2]=G;c[B+4>>2]=6;Qe(0,49608,B);tc()}else if((x|0)==18){Of(D);x=46;break}else if((x|0)==20){c[C>>2]=G;c[y+4>>2]=1;Qe(0,49608,y);tc()}else if((x|0)==22){Of(h);fd[c[(c[d>>2]|0)+12>>2]&511](d);Zu(g,49e3,n)|0;b:do{if((c[v>>2]|0)==6){y=1;x=0;while(1){z=c[u>>2]|0;if((y|0)>=(c[z+12>>2]|0)){break b}if((c[(ut(z,x,h)|0)>>2]|0)!=1){x=27;break}z=c[o>>2]|0;if((z|0)!=1){x=29;break}z=c[m>>2]|0;Of(h);A=c[v>>2]|0;if((A|0)!=6){x=31;break}if((c[(ut(c[u>>2]|0,y,h)|0)>>2]|0)!=1){x=33;break}y=c[o>>2]|0;if((y|0)!=1){x=35;break}y=c[m>>2]|0;Of(h);if((y|z|0)<0){x=38;break}if(!(hn(b,d,t,z,y)|0)){x=38;break}x=x+2|0;y=c[v>>2]|0;if((y|0)==6){y=x|1}else{x=24;break}}if((x|0)==24){c[w>>2]=y;c[l+4>>2]=6;Qe(0,49608,l);tc()}else if((x|0)==27){Of(n);x=46;break a}else if((x|0)==29){c[p>>2]=z;c[q+4>>2]=1;Qe(0,49608,q);tc()}else if((x|0)==31){c[r>>2]=A;c[s+4>>2]=6;Qe(0,49608,s);tc()}else if((x|0)==33){Of(n);x=46;break a}else if((x|0)==35){c[k>>2]=y;c[j+4>>2]=1;Qe(0,49608,j);tc()}else if((x|0)==38){Of(n);break a}}else{if(hn(b,d,t,0,F)|0){break}Of(n);break a}}while(0);Of(n);Zu(g,48944,h)|0;if((c[o>>2]|0)==1){c[e>>2]=c[m>>2];j=1}else{j=0}Of(h);b=b+40|0;if((c[b>>2]|0)!=13){K=j;i=f;return K|0}Kf(b,g)|0;K=j;i=f;return K|0}}else{x=46}}while(0);if((x|0)==46){Of(h)}a[b+28|0]=0;K=0;i=f;return K|0}function hn(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;k=i;i=i+8|0;h=f+e|0;if((h|0)<0){o=0;i=g;return o|0}j=a+16|0;do{if((h|0)>(c[j>>2]|0)){o=dn(a,h)|0;if((o|0)==(c[j>>2]|0)){break}Qe(-1,49008,k);o=0;i=g;return o|0}}while(0);if((f|0)<=0){o=1;i=g;return o|0}j=d+4|0;f=d+8|0;a=a+8|0;a:while(1){k=c[d>>2]|0;do{if((k|0)==0){k=1}else{if((k|0)>0){l=0;k=0}else{k=0;break}do{m=jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;if((m|0)==-1){d=0;h=23;break a}k=m+(k<<8)|0;l=l+1|0;}while((l|0)<(c[d>>2]|0))}}while(0);if((c[j>>2]|0)>0){m=0;l=0;do{n=jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;if((n|0)==-1){d=0;h=23;break a}l=n+(l<<8)|0;m=m+1|0;}while((m|0)<(c[j>>2]|0))}else{l=0}if((c[f>>2]|0)>0){m=0;n=0;do{o=jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;if((o|0)==-1){d=0;h=23;break a}m=o+(m<<8)|0;n=n+1|0;}while((n|0)<(c[f>>2]|0))}else{m=0}n=(c[a>>2]|0)+(e<<5)|0;do{if((c[n>>2]|0)==-1){if((k|0)==0){c[n>>2]=l;c[(c[a>>2]|0)+(e<<5)+4>>2]=m;c[(c[a>>2]|0)+(e<<5)+8>>2]=0;break}else if((k|0)==1){c[n>>2]=l;c[(c[a>>2]|0)+(e<<5)+4>>2]=m;c[(c[a>>2]|0)+(e<<5)+8>>2]=1;break}else if((k|0)==2){c[n>>2]=l;c[(c[a>>2]|0)+(e<<5)+4>>2]=m;c[(c[a>>2]|0)+(e<<5)+8>>2]=2;break}else{d=0;h=23;break a}}}while(0);e=e+1|0;if((e|0)>=(h|0)){d=1;h=23;break}}if((h|0)==23){i=g;return d|0}return 0}function jn(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0;l=i;a[b+68|0]=1;c[b+88>>2]=d;a[b+108|0]=e&1;e=b+84|0;if((g|0)<17){c[e>>2]=g;if((g|0)>0){g=0;m=4}}else{c[e>>2]=16;g=0;m=4}if((m|0)==4){while(1){a[b+92+g|0]=a[f+g|0]|0;g=g+1|0;if((g|0)<(c[e>>2]|0)){m=4}else{break}}}c[b+76>>2]=h;c[b+72>>2]=j;c[b+80>>2]=k;i=l;return}function kn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;e=i;f=i;i=i+8|0;k=i;i=i+8|0;q=i;i=i+8|0;r=q;h=i;i=i+16|0;j=h;m=i;i=i+8|0;n=m;g=b+8|0;A=c[g>>2]|0;s=A+(d<<5)|0;if((c[A+(d<<5)+8>>2]|0)!=3){z=g;z=c[z>>2]|0;A=d<<5;A=z+A|0;i=e;return A|0}do{if((a[b+120|0]&1)==0){l=c[b+116>>2]|0;if((l|0)==0){break}if(rn(b,l+(d*20|0)|0,s)|0){z=g;z=c[z>>2]|0;A=d<<5;A=z+A|0;i=e;return A|0}c[q>>2]=d;Qe(-1,49376,r);z=g;z=c[z>>2]|0;A=d<<5;A=z+A|0;i=e;return A|0}}while(0);s=b+112|0;u=c[s>>2]|0;a:do{if((u|0)==0){p=0}else{l=j+4|0;r=j+8|0;q=b+28|0;w=1;t=0;y=0;x=0;b:while(1){if(!w){p=t;break a}v=x-t|0;w=v>>2;if((w|0)!=0){z=0;while(1){A=z+1|0;if((c[t+(z<<2)>>2]|0)==(u|0)){o=12;break b}if(A>>>0<w>>>0){z=A}else{break}}}do{if((x|0)==(y|0)){x=w+1|0;if(x>>>0>1073741823){o=19;break b}if(w>>>0>536870910){z=1073741823;o=22}else{y=v>>1;z=y>>>0<x>>>0?x:y;if((z|0)==0){y=0;z=0}else{o=22}}if((o|0)==22){o=0;y=FWFW(168)|0;b=c[b>>2]|0;bE(t,0,Cd[c[(c[b>>2]|0)+96>>2]&63](b,d,0,20,u)|0);aG(f,0,t,1);c[r>>2]=13;t=j+8|0;c[t>>2]=0;c[t+4>>2]=0;c[q>>2]=13;d=h+8|0;c[d>>2]=0;c[d+4>>2]=0;c[l>>2]=13;b=g+8|0;c[b>>2]=0;c[b+4>>2]=0;if((c[(cG(f,j,0,0,0,0,0)|0)>>2]|0)!=1){v=0;Of(j);Of(h);Of(g);bG(f);i=k;return v|0}if((c[(cG(f,h,0,0,0,0,0)|0)>>2]|0)!=1){v=0;Of(j);Of(h);Of(g);bG(f);i=k;return v|0}u=cG(f,g,0,0,0,0,0)|0;if((c[u>>2]|0)==10){if((Qc(c[u+8>>2]|0,48928)|0)!=0){s=5}}else{s=5}do{if((s|0)==5){if((c[l>>2]|0)!=10){v=0;Of(j);Of(h);Of(g);bG(f);i=k;return v|0}if((Qc(c[b>>2]|0,48936)|0)==0){break}else{e=0}Of(j);Of(h);Of(g);bG(f);i=k;return e|0}}while(0);r=c[r>>2]|0;if((r|0)!=1){c[p>>2]=r;c[o+4>>2]=1;Qe(0,49608,o);tc()}c[e>>2]=c[t>>2];o=c[q>>2]|0;if((o|0)!=1){c[m>>2]=o;c[n+4>>2]=1;Qe(0,49608,n);tc()}c[e+4>>2]=c[d>>2];if((c[l>>2]|0)==10){l=(Qc(c[b>>2]|0,48928)|0)==0|0}else{l=0}c[e+8>>2]=l;v=e+24|0;c[v>>2]=0;c[v+4>>2]=0;c[e+16>>2]=5;a[e+12|0]=0;v=1;Of(j);Of(h);Of(g);bG(f);i=k;return v|0}function sn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;e=i;h=c[d>>2]|0;do{if((h|0)==0){l=d;f=5}else{l=c[d+4>>2]|0;if((l|0)==0){j=d;k=d;f=7;break}else{while(1){f=c[l>>2]|0;if((f|0)==0){f=5;break}else{l=f}}}}}while(0);do{if((f|0)==5){h=c[l+4>>2]|0;if((h|0)!=0){j=l;k=l;f=7;break}k=l;j=l;g=0;h=0;l=l+8|0}}while(0);if((f|0)==7){l=j+8|0;c[h+8>>2]=c[l>>2];g=1}f=c[l>>2]|0;do{if((j|0)==(c[f>>2]|0)){c[f>>2]=h;if((j|0)==(b|0)){b=h;f=0;break}f=c[(c[l>>2]|0)+4>>2]|0}else{c[f+4>>2]=h;f=c[c[l>>2]>>2]|0}}while(0);n=j+12|0;m=(a[n]&1)==0;if((j|0)==(d|0)){d=b}else{p=d+8|0;o=c[p>>2]|0;c[l>>2]=o;if((c[c[p>>2]>>2]|0)==(d|0)){c[o>>2]=j}else{c[o+4>>2]=j}p=c[d>>2]|0;c[k>>2]=p;c[p+8>>2]=j;k=c[d+4>>2]|0;c[j+4>>2]=k;if((k|0)!=0){c[k+8>>2]=j}a[n]=a[d+12|0]&1;d=(b|0)==(d|0)?j:b}if(m|(d|0)==0){i=e;return}if(g){a[h+12|0]=1;i=e;return}while(1){g=f+8|0;b=c[g>>2]|0;j=f+12|0;h=(a[j]&1)!=0;if((f|0)==(c[b>>2]|0)){if(h){b=f}else{a[j]=1;a[b+12|0]=0;h=c[g>>2]|0;b=c[h>>2]|0;g=b+4|0;j=c[g>>2]|0;c[h>>2]=j;if((j|0)!=0){c[j+8>>2]=h}j=h+8|0;c[b+8>>2]=c[j>>2];k=c[j>>2]|0;if((c[k>>2]|0)==(h|0)){c[k>>2]=b}else{c[k+4>>2]=b}c[g>>2]=h;c[j>>2]=b;b=c[f+4>>2]|0;d=(d|0)==(b|0)?f:d;b=c[b>>2]|0}g=c[b>>2]|0;h=(g|0)==0;if(!h){if((a[g+12|0]&1)==0){f=69;break}}f=c[b+4>>2]|0;if((f|0)!=0){if((a[f+12|0]&1)==0){f=68;break}}a[b+12|0]=0;b=c[b+8>>2]|0;g=b+12|0;if((a[g]&1)==0|(b|0)==(d|0)){f=65;break}g=c[b+8>>2]|0;f=c[g>>2]|0;if((b|0)!=(f|0)){continue}f=c[g+4>>2]|0;continue}if(h){b=f}else{a[j]=1;a[b+12|0]=0;b=c[g>>2]|0;p=b+4|0;g=c[p>>2]|0;h=c[g>>2]|0;c[p>>2]=h;if((h|0)!=0){c[h+8>>2]=b}h=b+8|0;c[g+8>>2]=c[h>>2];j=c[h>>2]|0;if((c[j>>2]|0)==(b|0)){c[j>>2]=g}else{c[j+4>>2]=g}c[g>>2]=b;c[h>>2]=g;b=c[f>>2]|0;d=(d|0)==(b|0)?f:d;b=c[b+4>>2]|0}g=c[b>>2]|0;if((g|0)!=0){if((a[g+12|0]&1)==0){f=39;break}}f=c[b+4>>2]|0;if((f|0)!=0){if((a[f+12|0]&1)==0){d=f;f=40;break}}a[b+12|0]=0;g=c[b+8>>2]|0;if((g|0)==(d|0)){f=36;break}if((a[g+12|0]&1)==0){d=g;f=36;break}b=c[g+8>>2]|0;f=c[b>>2]|0;if((g|0)!=(f|0)){continue}f=c[b+4>>2]|0}if((f|0)==36){a[d+12|0]=1;i=e;return}else if((f|0)==39){d=c[b+4>>2]|0;if((d|0)==0){f=41}else{f=40}}else if((f|0)==65){a[g]=1;i=e;return}else if((f|0)==68){if(h){f=70}else{f=69}}if((f|0)==40){if((a[d+12|0]&1)==0){f=47}else{f=41}}else if((f|0)==69){if((a[g+12|0]&1)==0){f=76}else{f=70}}if((f|0)==41){a[g+12|0]=1;a[b+12|0]=0;f=c[b>>2]|0;d=f+4|0;g=c[d>>2]|0;c[b>>2]=g;if((g|0)!=0){c[g+8>>2]=b}h=b+8|0;c[f+8>>2]=c[h>>2];g=c[h>>2]|0;if((c[g>>2]|0)==(b|0)){c[g>>2]=f}else{c[g+4>>2]=f}c[d>>2]=b;c[h>>2]=f;b=f;f=47}else if((f|0)==70){p=b+4|0;a[(c[p>>2]|0)+12|0]=1;a[b+12|0]=0;d=c[p>>2]|0;f=c[d>>2]|0;c[p>>2]=f;if((f|0)!=0){c[f+8>>2]=b}f=b+8|0;c[d+8>>2]=c[f>>2];g=c[f>>2]|0;if((c[g>>2]|0)==(b|0)){c[g>>2]=d}else{c[g+4>>2]=d}c[d>>2]=b;c[f>>2]=d;b=d;f=76}if((f|0)==47){f=b+8|0;p=(c[f>>2]|0)+12|0;a[b+12|0]=a[p]&1;a[p]=1;a[(c[b+4>>2]|0)+12|0]=1;f=c[f>>2]|0;p=f+4|0;d=c[p>>2]|0;b=c[d>>2]|0;c[p>>2]=b;if((b|0)!=0){c[b+8>>2]=f}b=f+8|0;c[d+8>>2]=c[b>>2];g=c[b>>2]|0;if((c[g>>2]|0)==(f|0)){c[g>>2]=d}else{c[g+4>>2]=d}c[d>>2]=f;c[b>>2]=d;i=e;return}else if((f|0)==76){d=b+8|0;f=(c[d>>2]|0)+12|0;a[b+12|0]=a[f]&1;a[f]=1;a[(c[b>>2]|0)+12|0]=1;d=c[d>>2]|0;f=c[d>>2]|0;b=f+4|0;g=c[b>>2]|0;c[d>>2]=g;if((g|0)!=0){c[g+8>>2]=d}h=d+8|0;c[f+8>>2]=c[h>>2];g=c[h>>2]|0;if((c[g>>2]|0)==(d|0)){c[g>>2]=f}else{c[g+4>>2]=f}c[b>>2]=d;c[h>>2]=f;i=e;return}}function tn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;g=i;i=i+8|0;h=g;k=d+4|0;j=c[k>>2]|0;do{if((j|0)==0){c[g>>2]=k;h=k}else{k=c[e>>2]|0;while(1){l=c[j+16>>2]|0;if((k|0)<(l|0)){l=c[j>>2]|0;if((l|0)==0){k=5;break}else{j=l;continue}}if((l|0)>=(k|0)){k=9;break}l=j+4|0;m=c[l>>2]|0;if((m|0)==0){k=8;break}else{j=m}}if((k|0)==5){c[g>>2]=j;h=j;break}else if((k|0)==8){c[g>>2]=j;h=l;break}else if((k|0)==9){c[g>>2]=j;break}}}while(0);j=c[h>>2]|0;if((j|0)!=0){l=0;k=j;m=b;c[m>>2]=k;m=b+4|0;a[m]=l;i=f;return}j=FW(20)|0;c[j+16>>2]=c[e>>2];g=c[g>>2]|0;c[j>>2]=0;c[j+4>>2]=0;c[j+8>>2]=g;c[h>>2]=j;g=c[c[d>>2]>>2]|0;if((g|0)==0){g=j}else{c[d>>2]=g;g=c[h>>2]|0}un(c[d+4>>2]|0,g);l=d+8|0;c[l>>2]=(c[l>>2]|0)+1;l=1;k=j;m=b;c[m>>2]=k;m=b+4|0;a[m]=l;i=f;return}function un(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;l=(d|0)==(b|0);a[d+12|0]=l&1;if(l){i=e;return}while(1){j=d+8|0;f=c[j>>2]|0;k=f+12|0;if((a[k]&1)!=0){b=37;break}g=f+8|0;h=c[g>>2]|0;l=c[h>>2]|0;if((f|0)==(l|0)){j=c[h+4>>2]|0;if((j|0)==0){b=7;break}j=j+12|0;if((a[j]&1)!=0){b=7;break}a[k]=1;a[h+12|0]=(h|0)==(b|0)|0;a[j]=1}else{if((l|0)==0){b=24;break}l=l+12|0;if((a[l]&1)!=0){b=24;break}a[k]=1;a[h+12|0]=(h|0)==(b|0)|0;a[l]=1}if((h|0)==(b|0)){b=37;break}else{d=h}}if((b|0)==7){if((d|0)!=(c[f>>2]|0)){l=f+4|0;d=c[l>>2]|0;j=c[d>>2]|0;c[l>>2]=j;if((j|0)!=0){c[j+8>>2]=f;h=c[g>>2]|0}j=d+8|0;c[j>>2]=h;h=c[g>>2]|0;if((c[h>>2]|0)==(f|0)){c[h>>2]=d}else{c[h+4>>2]=d}c[d>>2]=f;c[g>>2]=d;h=c[j>>2]|0;f=d}a[f+12|0]=1;a[h+12|0]=0;g=c[h>>2]|0;f=g+4|0;d=c[f>>2]|0;c[h>>2]=d;if((d|0)!=0){c[d+8>>2]=h}j=h+8|0;c[g+8>>2]=c[j>>2];d=c[j>>2]|0;if((c[d>>2]|0)==(h|0)){c[d>>2]=g}else{c[d+4>>2]=g}c[f>>2]=h;c[j>>2]=g;i=e;return}else if((b|0)==24){if((d|0)==(c[f>>2]|0)){b=d+4|0;k=c[b>>2]|0;c[f>>2]=k;if((k|0)!=0){c[k+8>>2]=f;h=c[g>>2]|0}c[j>>2]=h;h=c[g>>2]|0;if((c[h>>2]|0)==(f|0)){c[h>>2]=d}else{c[h+4>>2]=d}c[b>>2]=f;c[g>>2]=d;h=c[j>>2]|0;f=d}a[f+12|0]=1;a[h+12|0]=0;l=h+4|0;f=c[l>>2]|0;g=c[f>>2]|0;c[l>>2]=g;if((g|0)!=0){c[g+8>>2]=h}g=h+8|0;c[f+8>>2]=c[g>>2];d=c[g>>2]|0;if((c[d>>2]|0)==(h|0)){c[d>>2]=f}else{c[d+4>>2]=f}c[f>>2]=h;c[g>>2]=f;i=e;return}else if((b|0)==37){i=e;return}}function vn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;h=i;g=a+4|0;d=c[a>>2]|0;e=(c[g>>2]|0)-d|0;k=e>>2;f=k+1|0;if(f>>>0>1073741823){wn(0)}j=a+8|0;m=(c[j>>2]|0)-d|0;if(m>>2>>>0>536870910){n=1073741823;l=5}else{m=m>>1;n=m>>>0<f>>>0?f:m;if((n|0)==0){m=0;n=0}else{l=5}}if((l|0)==5){m=FW(n<<2)|0}k=m+(k<<2)|0;if((k|0)!=0){c[k>>2]=c[b>>2]}$W(m|0,d|0,e|0)|0;c[a>>2]=m;c[g>>2]=m+(f<<2);c[j>>2]=m+(n<<2);if((d|0)==0){i=h;return}HW(d);i=h;return}function wn(a){a=a|0;Ya(49456,49480,307,49584)}function xn(a,b){a=a|0;b=b|0;var d=0;d=i;if((b|0)==0){i=d;return}else{xn(a,c[b>>2]|0);xn(a,c[b+4>>2]|0);HW(b);i=d;return}}function yn(a){a=a|0;var b=0;b=i;c[a>>2]=49688;a=c[a+4>>2]|0;if((a|0)==0){i=b;return}$m(a);HW(a);i=b;return}function zn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;c[a>>2]=49688;d=c[a+4>>2]|0;if((d|0)==0){HW(a);i=b;return}e=d+8|0;h=c[e>>2]|0;do{if((h|0)!=0){f=d+4|0;if((c[f>>2]|0)>0){g=0;do{Of(h+(g<<4)|0);g=g+1|0;h=c[e>>2]|0;}while((g|0)<(c[f>>2]|0));if((h|0)==0){break}}IW(h)}}while(0);Fe(c[d+12>>2]|0);HW(d);HW(a);i=b;return}function An(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function Bn(a,b){a=a|0;b=b|0;i=i;return(c[a+4>>2]|0)==(c[b+4>>2]|0)|0}function Cn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;g=FW(80)|0;OG(g,b,d,0);c[g>>2]=49808;c[g+60>>2]=0;b=g+65|0;a[b]=0;bX(g+20|0,0,16)|0;c[g+68>>2]=e;c[g+72>>2]=0;c[g+76>>2]=0;En(g);if((a[b]&1)!=0){b=g;i=f;return b|0}if((g|0)==0){b=0;i=f;return b|0}fd[c[(c[g>>2]|0)+4>>2]&511](g);b=0;i=f;return b|0}function Dn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;f=i;i=i+8|0;b=RG(b,f)|0;if((b|0)==0){g=0;i=e;return g|0}g=FW(80)|0;OG(g,b,c[f>>2]|0,1);c[g>>2]=49808;c[g+60>>2]=0;b=g+65|0;a[b]=0;bX(g+20|0,0,16)|0;c[g+68>>2]=d;c[g+72>>2]=0;c[g+76>>2]=0;En(g);if((a[b]&1)!=0){i=e;return g|0}if((g|0)==0){g=0;i=e;return g|0}fd[c[(c[g>>2]|0)+4>>2]&511](g);g=0;i=e;return g|0}function En(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;k=i;i=i+8|0;e=b+65|0;a[e]=1;g=VG(b,0,e)|0;if((a[e]&1)==0){i=d;return}do{if((g|0)==1953784678){j=VG(b,8,e)|0;if((a[e]&1)==0){i=d;return}if((j|0)==0){a[e]=0;i=d;return}g=b+68|0;h=c[g>>2]|0;if((h|0)>=(j|0)){c[g>>2]=0;h=0}m=VG(b,(h<<2)+12|0,e)|0;if((a[e]&1)!=0){break}i=d;return}else{m=0}}while(0);g=VG(b,m,e)|0;if((a[e]&1)==0){i=d;return}h=b+64|0;a[h]=(g|0)==1330926671|0;g=UG(b,m+4|0,e)|0;j=b+24|0;c[j>>2]=g;if((a[e]&1)==0){i=d;return}l=ye(g,20)|0;g=b+20|0;c[g>>2]=l;p=c[j>>2]|0;if((p|0)>0){l=b+12|0;o=0;m=m+12|0;n=0;while(1){q=VG(b,m,e)|0;c[(c[g>>2]|0)+(o*20|0)>>2]=q;q=VG(b,m+4|0,e)|0;c[(c[g>>2]|0)+(o*20|0)+4>>2]=q;q=VG(b,m+8|0,e)|0;c[(c[g>>2]|0)+(o*20|0)+8>>2]=q;q=VG(b,m+12|0,e)|0;c[(c[g>>2]|0)+(o*20|0)+16>>2]=q;q=c[g>>2]|0;p=c[q+(o*20|0)+16>>2]|0;if((p|0)<0){f=15}else{if(((c[q+(o*20|0)+8>>2]|0)+p|0)>(c[l>>2]|0)){f=15}}if((f|0)==15){f=0;Qe(-1,49824,k);o=o+ -1|0;n=n+1|0}o=o+1|0;p=c[j>>2]|0;if((o|0)<(p|0)){m=m+16|0}else{break}}k=c[g>>2]|0}else{k=l;n=0}l=p-n|0;c[j>>2]=l;l=Ee(k,l,20)|0;c[g>>2]=l;if((a[e]&1)==0|(l|0)==0){i=d;return}k=c[j>>2]|0;a:do{if((k|0)>0){n=0;while(1){m=n+1|0;if((c[l+(n*20|0)>>2]|0)==1751474532){break}if((m|0)<(k|0)){n=m}else{break a}}if((n|0)<0){break}else{n=0}while(1){m=n+1|0;if((c[l+(n*20|0)>>2]|0)==1751672161){break}if((m|0)<(k|0)){n=m}else{break a}}if((n|0)<0){break}else{n=0}while(1){m=n+1|0;if((c[l+(n*20|0)>>2]|0)==1835104368){break}if((m|0)<(k|0)){n=m}else{break a}}if((n|0)<0){break}else{n=0}while(1){m=n+1|0;if((c[l+(n*20|0)>>2]|0)==1752003704){break}if((m|0)<(k|0)){n=m}else{break a}}if((n|0)<0){break}m=(a[h]&1)==0;do{if(m){n=0;while(1){o=n+1|0;if((c[l+(n*20|0)>>2]|0)==1819239265){break}if((o|0)<(k|0)){n=o}else{break a}}if((n|0)<0){break a}if(m){n=0}else{m=0;f=42;break}while(1){o=n+1|0;if((c[l+(n*20|0)>>2]|0)==1735162214){break}if((o|0)<(k|0)){n=o}else{break a}}if((n|0)<0){break a}if(m){m=0}else{m=0;f=42}}else{m=0;f=42}}while(0);if((f|0)==42){while(1){f=m+1|0;if((c[l+(m*20|0)>>2]|0)==1128678944){break}if((f|0)<(k|0)){m=f;f=42}else{break a}}if((m|0)<0){break}else{m=0}}while(1){f=m+1|0;if((c[l+(m*20|0)>>2]|0)==1668112752){f=47;break}if((f|0)<(k|0)){m=f}else{f=54;break}}do{if((f|0)==47){if((m|0)<=-1){f=54;break}n=c[l+(m*20|0)+8>>2]|0;o=UG(b,n+2|0,e)|0;k=b+32|0;c[k>>2]=o;if((a[e]&1)==0){i=d;return}l=b+28|0;c[l>>2]=ye(o,20)|0;if((c[k>>2]|0)>0){o=0;n=n+4|0;while(1){q=UG(b,n,e)|0;c[(c[l>>2]|0)+(o*20|0)>>2]=q;q=UG(b,n+2|0,e)|0;c[(c[l>>2]|0)+(o*20|0)+4>>2]=q;q=c[(c[g>>2]|0)+(m*20|0)+8>>2]|0;q=(VG(b,n+4|0,e)|0)+q|0;c[(c[l>>2]|0)+(o*20|0)+8>>2]=q;q=UG(b,c[(c[l>>2]|0)+(o*20|0)+8>>2]|0,e)|0;c[(c[l>>2]|0)+(o*20|0)+16>>2]=q;q=UG(b,(c[(c[l>>2]|0)+(o*20|0)+8>>2]|0)+2|0,e)|0;c[(c[l>>2]|0)+(o*20|0)+12>>2]=q;o=o+1|0;if((o|0)<(c[k>>2]|0)){n=n+8|0}else{break}}}if((a[e]&1)==0){i=d;return}else{k=c[j>>2]|0;break}}}while(0);if((f|0)==54){c[b+32>>2]=0}l=c[g>>2]|0;b:do{if((k|0)>0){m=0;while(1){n=m+1|0;if((c[l+(m*20|0)>>2]|0)==1835104368){break b}if((n|0)<(k|0)){m=n}else{m=-1;break}}}else{m=-1}}while(0);k=b+36|0;c[k>>2]=UG(b,(c[l+(m*20|0)+8>>2]|0)+4|0,e)|0;if((a[e]&1)==0){i=d;return}o=c[j>>2]|0;l=c[g>>2]|0;c:do{if((o|0)>0){n=0;while(1){m=n+1|0;if((c[l+(n*20|0)>>2]|0)==1751474532){break c}if((m|0)<(o|0)){n=m}else{n=-1;break}}}else{n=-1}}while(0);c[b+44>>2]=TG(b,(c[l+(n*20|0)+8>>2]|0)+36|0,e)|0;c[b+48>>2]=TG(b,(c[(c[g>>2]|0)+(n*20|0)+8>>2]|0)+38|0,e)|0;c[b+52>>2]=TG(b,(c[(c[g>>2]|0)+(n*20|0)+8>>2]|0)+40|0,e)|0;c[b+56>>2]=TG(b,(c[(c[g>>2]|0)+(n*20|0)+8>>2]|0)+42|0,e)|0;m=TG(b,(c[(c[g>>2]|0)+(n*20|0)+8>>2]|0)+50|0,e)|0;l=b+40|0;c[l>>2]=m;n=a[e]|0;if((n&1)==0){i=d;return}do{if((a[h]&1)==0){p=c[j>>2]|0;j=c[g>>2]|0;d:do{if((p|0)>0){h=0;while(1){o=h+1|0;if((c[j+(h*20|0)>>2]|0)==1819239265){break d}if((o|0)<(p|0)){h=o}else{h=-1;break}}}else{h=-1}}while(0);q=c[j+(h*20|0)+16>>2]|0;if((q|0)<0){a[e]=0;i=d;return}o=c[k>>2]|0;p=(m|0)!=0?4:2;if((q|0)<(da(p,o+1|0)|0)){o=((q|0)/(p|0)|0)+ -1|0;c[k>>2]=o}if((o|0)>=0){n=b+12|0;o=0;while(1){j=c[j+(h*20|0)+8>>2]|0;if((m|0)==0){j=UG(b,j+(o<<1)|0,e)|0}else{j=VG(b,j+(o<<2)|0,e)|0}if((j|0)<0){f=78}else{if((j|0)>(c[n>>2]|0)){f=78}}if((f|0)==78){f=0;a[e]=0}if((o|0)>=(c[k>>2]|0)){break}j=c[g>>2]|0;m=c[l>>2]|0;o=o+1|0}n=a[e]|0}if((n&1)!=0){break}i=d;return}}while(0);Nn(b);i=d;return}}while(0);a[e]=0;i=d;return}function Fn(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=49808;Fe(c[a+20>>2]|0);Fe(c[a+28>>2]|0);d=c[a+60>>2]|0;if((d|0)==0){QG(a);HW(a);i=b;return}ko(d);HW(d);QG(a);HW(a);i=b;return}function Gn(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=49808;Fe(c[a+20>>2]|0);Fe(c[a+28>>2]|0);d=c[a+60>>2]|0;if((d|0)==0){QG(a);i=b;return}ko(d);HW(d);QG(a);i=b;return}function Hn(a){a=a|0;i=i;return c[a+32>>2]|0}function In(a,b){a=a|0;b=b|0;i=i;return c[(c[a+28>>2]|0)+(b*20|0)>>2]|0}function Jn(a,b){a=a|0;b=b|0;i=i;return c[(c[a+28>>2]|0)+(b*20|0)+4>>2]|0}function Kn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=i;g=i;i=i+8|0;h=g;if((d|0)<0){o=0;i=f;return o|0}if((c[b+32>>2]|0)<=(d|0)){o=0;i=f;return o|0}a[g]=1;k=c[b+28>>2]|0;j=c[k+(d*20|0)+8>>2]|0;l=c[k+(d*20|0)+16>>2]|0;do{if((l|0)==0){e=e+6|0;if(e>>>0<(c[k+(d*20|0)+12>>2]|0)>>>0){b=(SG(b,e+j|0,h)|0)&65535;break}else{o=0;i=f;return o|0}}else if((l|0)==12){k=VG(b,j+12|0,h)|0;n=k+ -1|0;d=j+16|0;j=j+20|0;if((VG(b,j+(n*12|0)|0,h)|0)>>>0<e>>>0){o=0;i=f;return o|0}a:do{if((k|0)>1){k=-1;do{if((a[g]&1)==0){break a}m=(n+k|0)/2|0;l=(VG(b,j+(m*12|0)|0,h)|0)>>>0<e>>>0;k=l?m:k;n=l?n:m;}while((n-k|0)>1)}}while(0);o=(n*12|0)+d|0;j=VG(b,o,h)|0;b=VG(b,o+8|0,h)|0;if(j>>>0>e>>>0){o=0;i=f;return o|0}else{b=e-j+b&65535;break}}else if((l|0)==4){l=UG(b,j+6|0,h)|0;d=(l|0)/2|0;m=d+ -1|0;k=j+14|0;if((UG(b,(m<<1)+k|0,h)|0)>>>0<e>>>0){o=0;i=f;return o|0}b:do{if((l|0)>3){l=-1;do{if((a[g]&1)==0){break b}n=(m+l|0)/2|0;o=(UG(b,(n<<1)+k|0,h)|0)>>>0<e>>>0;l=o?n:l;m=o?m:n;}while((m-l|0)>1)}}while(0);o=j+16|0;l=m<<1;k=UG(b,(d<<1)+o+l|0,h)|0;j=UG(b,(d<<2)+o+l|0,h)|0;d=(d*6|0)+o+l|0;l=UG(b,d,h)|0;if(k>>>0>e>>>0){o=0;i=f;return o|0}if((l|0)==0){b=j+e&65535;break}b=UG(b,l+d+(e-k<<1)|0,h)|0;if((b&65535|0)==0){b=b&65535;break}b=b+j&65535}else if((l|0)==6){d=UG(b,j+6|0,h)|0;k=UG(b,j+8|0,h)|0;if(d>>>0>e>>>0){o=0;i=f;return o|0}if((k+d|0)>>>0>e>>>0){b=(UG(b,j+10+(e-d<<1)|0,h)|0)&65535;break}else{o=0;i=f;return o|0}}else{o=0;i=f;return o|0}}while(0);o=(a[g]&1)==0?0:b;i=f;return o|0}function Ln(a,b){a=a|0;b=b|0;var d=0;d=i;a=c[a+60>>2]|0;if((a|0)==0){a=0;i=d;return a|0}a=po(a,b)|0;i=d;return a|0}function Mn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;c[d>>2]=0;if((a[b+64|0]&1)==0){j=0;i=e;return j|0}g=c[b+24>>2]|0;f=c[b+20>>2]|0;a:do{if((g|0)>0){h=0;while(1){j=h+1|0;if((c[f+(h*20|0)>>2]|0)==1128678944){break a}if((j|0)<(g|0)){h=j}else{h=-1;break}}}else{h=-1}}while(0);if(!(XG(b,c[f+(h*20|0)+8>>2]|0,c[f+(h*20|0)+16>>2]|0)|0)){j=0;i=e;return j|0}j=c[b+20>>2]|0;b=Tn((c[b+8>>2]|0)+(c[j+(h*20|0)+8>>2]|0)|0,c[j+(h*20|0)+16>>2]|0)|0;if((b|0)==0){j=0;i=e;return j|0}j=_n(b,d)|0;fd[c[(c[b>>2]|0)+4>>2]&511](b);i=e;return j|0}function Nn(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;e=i;i=i+8|0;f=e;a[e]=1;k=c[b+24>>2]|0;if((k|0)<=0){i=d;return}j=c[b+20>>2]|0;l=0;while(1){h=l+1|0;if((c[j+(l*20|0)>>2]|0)==1886352244){break}if((h|0)<(k|0)){l=h}else{g=33;break}}if((g|0)==33){i=d;return}if((l|0)<0){i=d;return}j=c[j+(l*20|0)+8>>2]|0;g=VG(b,j,f)|0;a:do{if((a[e]&1)==0){g=b+60|0}else{if((g|0)==131072){h=FW(16)|0;jo(h,1);g=b+60|0;c[g>>2]=h;h=UG(b,j+32|0,f)|0;if((a[e]&1)==0){break}k=c[b+36>>2]|0;h=(h|0)>(k|0)?k:h;k=j+34|0;l=(h<<1)+k|0;if((h|0)<=0){i=d;return}j=b+8|0;m=0;p=0;o=l;while(1){n=UG(b,(m<<1)+k|0,f)|0;if((n|0)<258){r=c[49904+(n<<2)>>2]|0;so(c[g>>2]|0,r)|0;q=c[g>>2]|0;n=FW(32)|0;fe(n,r);no(q,n,m);n=p}else{n=n+ -258|0;if((n|0)==(p|0)){n=p}else{if((n|0)>0){p=0;o=l;while(1){p=p+1|0;o=o+1+(SG(b,o,f)|0)|0;if((p|0)<(n|0)){}else{break}}}else{n=0;o=l}if((a[e]&1)==0){break a}}p=SG(b,o,f)|0;if((a[e]&1)==0){break a}o=o+1|0;if(!(XG(b,o,p)|0)){break a}r=FWFW(16)|0;jo(h,1);g=b+60|0;c[g>>2]=h;h=b+36|0;if((c[h>>2]|0)<=0){i=d;return}l=j+32|0;k=0;do{j=SG(b,l+k|0,f)|0;if((a[e]&1)==0){break a}if((j|0)<258){p=c[49904+(j<<2)>>2]|0;so(c[g>>2]|0,p)|0;q=c[g>>2]|0;r=FW(32)|0;fe(r,p);no(q,r,k)}k=k+1|0;}while((k|0)<(c[h>>2]|0));i=d;return}else if((g|0)==65536){e=FW(16)|0;jo(e,1);b=b+60|0;c[b>>2]=e;f=0;while(1){r=FW(32)|0;fe(r,c[49904+(f<<2)>>2]|0);no(e,r,f);f=f+1|0;if((f|0)>=258){break}e=c[b>>2]|0}i=d;return}else{i=d;return}}}while(0);b=c[g>>2]|0;if((b|0)==0){i=d;return}ko(b);HW(b);c[g>>2]=0;i=d;return}function On(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;e=i;if((b|0)==0){c[a+72>>2]=0;i=e;return 0}n=ZW(b|0)|0;h=(n|0)>4?4:n;if((h|0)>0){m=0;l=0;do{l=d[b+m|0]|0|l<<8;m=m+1|0;}while((m|0)<(h|0));if((n|0)<4){g=n;f=l;j=6}else{k=l}}else{g=0;f=0;j=6}if((j|0)==6){while(1){j=0;k=f<<8|32;g=g+1|0;if((g|0)<4){f=k}else{break}}}l=c[a+24>>2]|0;if((l|0)<=0){i=e;return 0}f=c[a+20>>2]|0;g=0;while(1){h=g+1|0;if((c[f+(g*20|0)>>2]|0)==1196643650){break}if((h|0)<(l|0)){g=h}else{j=29;break}}if((j|0)==29){i=e;return 0}if((g|0)<0){i=e;return 0}g=c[f+(g*20|0)+8>>2]|0;h=a+65|0;b=UG(a,g+4|0,h)|0;f=UG(a,g+6|0,h)|0;c[a+76>>2]=(UG(a,g+8|0,h)|0)+g;b=b+g|0;l=UG(a,b,h)|0;if((l|0)==0){i=e;return 0}else{o=0;m=b}while(1){p=VG(a,m+2|0,h)|0;m=m+6|0;n=UG(a,m,h)|0;o=o+1|0;if((p|0)==(k|0)){break}if(o>>>0<l>>>0){}else{j=29;break}}if((j|0)==29){i=e;return 0}k=n+b|0;j=UG(a,k,h)|0;if((j|0)==0){i=e;return 0}k=j+k|0;b=UG(a,k+2|0,h)|0;j=k+4|0;do{if((b|0)==65535){b=0}else{l=f+g|0;UG(a,l,h)|0;m=l+2+(b*6|0)|0;b=VG(a,m,h)|0;m=m+4|0;if((b|0)==1986359924){b=UG(a,m,h)|0;break}else if((b|0)!=1987212338){b=0;break}c[a+72>>2]=l+(UG(a,m,h)|0);i=e;return 0}}while(0);j=UG(a,j,h)|0;a:do{if((j|0)!=0){l=g+2+f|0;m=0;k=k+6|0;while(1){o=l+((UG(a,k,h)|0)*6|0)|0;n=VG(a,o,h)|0;o=o+4|0;if((n|0)==1987212338){break}if((b|0)==0&(n|0)==1986359924){b=UG(a,o,h)|0}m=m+1|0;if(m>>>0<j>>>0){k=k+2|0}else{break a}}b=UG(a,o,h)|0}}while(0);if((b|0)==0){i=e;return 0}c[a+72>>2]=f+g+b;i=e;return 0}function Pn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;f=a+76|0;h=c[f>>2]|0;if((h|0)==0){l=0;i=e;return l|0}g=a+65|0;b=UG(a,(b<<1)+2+h|0,g)|0;j=(c[f>>2]|0)+b|0;h=UG(a,j+4|0,g)|0;if((h|0)==0){l=0;i=e;return l|0}k=0;j=j+6|0;while(1){l=UG(a,j,g)|0;l=Rn(a,l+b+(c[f>>2]|0)|0,d)|0;if((l|0)!=0){a=6;break}k=k+1|0;if(k>>>0<h>>>0){j=j+2|0}else{l=0;a=6;break}}if((a|0)==6){i=e;return l|0}return 0}function Qn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;g=c[a+72>>2]|0;if((g|0)==0){j=b;i=d;return j|0}e=a+65|0;f=UG(a,g+2|0,e)|0;a:do{if((f|0)==0){j=0}else{h=0;g=g+4|0;while(1){j=Pn(a,UG(a,g,e)|0,b)|0;if((j|0)!=0){break a}h=h+1|0;if(h>>>0<f>>>0){g=g+2|0}else{j=0;break}}}}while(0);j=(j|0)==0?b:j;i=d;return j|0}function Rn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=i;f=a+65|0;h=UG(a,b,f)|0;e=b+4|0;g=Sn(a,(UG(a,b+2|0,f)|0)+b|0,c)|0;do{if((g|0)>-1){if((h|0)==1){a=(TG(a,e,f)|0)+c|0;break}else if((h|0)!=2){a=0;break}if((TG(a,e,f)|0)<=(g|0)){a=0;break}a=UG(a,b+6+(g<<1)|0,f)|0}else{a=0}}while(0);i=d;return a|0}function Sn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=a+65|0;f=UG(a,b,e)|0;g=b+2|0;a:do{if((f|0)==1){f=UG(a,g,e)|0;if((f|0)==0){g=-1;break}g=0;b=b+4|0;while(1){h=UG(a,b,e)|0;if((h|0)==(c|0)){break a}g=g+1|0;if(h>>>0>c>>>0){g=-1;break a}if(g>>>0<f>>>0){b=b+2|0}else{g=-1;break}}}else if((f|0)==2){f=UG(a,g,e)|0;if((f|0)==0){g=-1;break}g=0;b=b+4|0;while(1){k=UG(a,b,e)|0;h=UG(a,b+2|0,e)|0;j=UG(a,b+4|0,e)|0;h=h>>>0<c>>>0;if(!(k>>>0>c>>>0|h)){break}g=g+1|0;if(!h){g=-1;break a}if(g>>>0<f>>>0){b=b+6|0}else{g=-1;break a}}g=c-k+j|0}else{g=-1}}while(0);i=d;return g|0}function Tn(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=FW(1160)|0;OG(e,a,b,0);c[e>>2]=53784;c[e+20>>2]=0;c[e+24>>2]=0;c[e+328>>2]=0;c[e+340>>2]=0;c[e+344>>2]=0;if(Un(e)|0){a=e;i=d;return a|0}if((e|0)==0){a=0;i=d;return a|0}fd[c[(c[e>>2]|0)+4>>2]&511](e);a=0;i=d;return a|0}function Un(b){b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;g=i;i=i+24|0;f=g;e=b+352|0;a[e]=1;m=b+12|0;j=c[m>>2]|0;do{if((j|0)>0){l=b+8|0;k=c[l>>2]|0;if((a[k]|0)==1){break}c[l>>2]=k+1;c[m>>2]=j+ -1}}while(0);l=b+28|0;$n(b,SG(b,2,e)|0,l,e);j=b+44|0;$n(b,c[j>>2]|0,b+48|0,e);$n(b,c[b+64>>2]|0,b+68|0,e);$n(b,c[b+84>>2]|0,b+88|0,e);if((a[e]&1)==0){r=0;i=d;return r|0}k=c[b+92>>2]|0;if((k|0)<1240){k=107}else{k=(k|0)<33900?1131:32768}c[b+348>>2]=k;if((c[b+32>>2]|0)<=0){a[e]=0;r=0;i=d;return r|0}m=b+40|0;k=c[m>>2]|0;q=b+36|0;k=(WG(b,(c[l>>2]|0)+3|0,c[q>>2]|0,e)|0)+k|0;r=c[m>>2]|0;q=c[q>>2]|0;l=(WG(b,(c[l>>2]|0)+3+q|0,q,e)|0)+r|0;m=c[m>>2]|0;do{if((k|0)>=(m|0)){r=c[j>>2]|0;if((l|0)<=(m|0)|(k|0)>(r|0)|(l|0)>(r|0)|(l|0)<(k|0)){break}if((a[e]&1)==0){r=0;i=d;return r|0}j=FW(32)|0;ge(j,(c[b+8>>2]|0)+k|0,l-k|0);c[b+20>>2]=j;co(b);j=b+128|0;a:do{if((c[j>>2]|0)==3102){k=c[b+320>>2]|0;if((k|0)==0){c[b+336>>2]=1;r=we(584)|0;c[b+328>>2]=r;a[r+48|0]=0;c[r+108>>2]=0;c[r+152>>2]=0;c[r+212>>2]=0;c[r+256>>2]=0;h[r+264>>3]=.039625;c[r+272>>2]=7;c[r+276>>2]=1;a[r+288|0]=0;a[r+304|0]=0;c[r+408>>2]=0;c[r+512>>2]=0;a[r+517|0]=0;h[r+520>>3]=0.0;c[r+528>>2]=0;h[r+536>>3]=.06;h[r+568>>3]=0.0;a[r+576|0]=0;bX(r+544|0,0,17)|0;break}$n(b,k,f,e);if((a[e]&1)==0){r=0;i=d;return r|0}l=c[f+4>>2]|0;m=b+336|0;c[m>>2]=l;n=b+328|0;c[n>>2]=ye(l,584)|0;if((c[m>>2]|0)<=0){break}k=c[f+12>>2]|0;o=(c[g>>2]|0)+3|0;g=c[f+8>>2]|0;q=c[f+16>>2]|0;r=0;while(1){if((l|0)<=(r|0)){f=20;break}f=(WG(b,o+(da(g,r)|0)|0,g,e)|0)+k|0;p=(WG(b,o+(da(g,r+1|0)|0)|0,g,e)|0)+k|0;if((f|0)<(k|0)){f=23;break}if((p|0)<=(k|0)|(f|0)>(q|0)|(p|0)>(q|0)|(p|0)<(f|0)){f=23;break}if((a[e]&1)==0){b=0;f=38;break}fo(b,f,p-f|0,(c[n>>2]|0)+(r*584|0)|0);r=r+1|0;if((r|0)>=(c[m>>2]|0)){break a}}if((f|0)==20){a[e]=0;r=0;i=d;return r|0}else if((f|0)==23){a[e]=0;r=0;i=d;return r|0}else if((f|0)==38){i=d;return b|0}}else{r=we(584)|0;c[b+328>>2]=r;eo(b,c[b+304>>2]|0,c[b+300>>2]|0,r)}}while(0);if((a[e]&1)==0){r=0;i=d;return r|0}f=c[b+296>>2]|0;if((f|0)<1){a[e]=0;r=0;i=d;return r|0}$n(b,f,b+108|0,e);if((a[e]&1)==0){r=0;i=d;return r|0}c[b+332>>2]=c[b+112>>2];do{if((c[j>>2]|0)==3102){go(b);if((a[e]&1)==0){b=0}else{break}i=d;return b|0}}while(0);if(!(ho(b)|0)){a[e]=0;r=0;i=d;return r|0}r=c[j>>2]|0;do{if(!((r|0)==3102|(r|0)==3092)){io(b);if((a[e]&1)==0){b=0}else{break}i=d;return b|0}}while(0);r=(a[e]&1)!=0;i=d;return r|0}}while(0);a[e]=0;r=0;i=d;return r|0}function Vn(a){a=a|0;var b=0,d=0,e=0;b=i;d=i;i=i+8|0;a=RG(a,d)|0;if((a|0)==0){e=0;i=b;return e|0}e=FWFW(12)|0;c[f>>2]=b;c[f+4>>2]=e;e=c[b+24>>2]|0;if((e|0)>0){l=0;k=0;b=c[b+28>>2]|0;while(1){l=(d[b]|0)+(l*17|0)|0;k=k+1|0;if((k|0)<(e|0)){b=b+1|0}else{break}}}else{l=0}l=(c[a+12>>2]|0)+(((l>>>0)%((c[j>>2]|0)>>>0)|0)<<2)|0;c[f+8>>2]=c[l>>2];c[l>>2]=f;c[g>>2]=(c[g>>2]|0)+1;i=h;return}function mo(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;e=i;b=a+4|0;f=c[b>>2]|0;a=a+12|0;g=c[a>>2]|0;h=f<<1|1;c[b>>2]=h;h=ye(h,4)|0;c[a>>2]=h;a:do{if((c[b>>2]|0)>0){j=0;while(1){c[h+(j<<2)>>2]=0;j=j+1|0;if((j|0)>=(c[b>>2]|0)){break a}h=c[a>>2]|0}}}while(0);if((f|0)>0){j=0}else{Fe(g);i=e;return}do{h=g+(j<<2)|0;k=c[h>>2]|0;if((k|0)!=0){do{l=k+8|0;c[h>>2]=c[l>>2];n=c[k>>2]|0;m=c[n+24>>2]|0;if((m|0)>0){p=0;o=0;n=c[n+28>>2]|0;while(1){p=(d[n]|0)+(p*17|0)|0;o=o+1|0;if((o|0)<(m|0)){n=n+1|0}else{break}}}else{p=0}p=(p>>>0)%((c[b>>2]|0)>>>0)|0;c[l>>2]=c[(c[a>>2]|0)+(p<<2)>>2];c[(c[a>>2]|0)+(p<<2)>>2]=k;k=c[h>>2]|0;}while((k|0)!=0)}j=j+1|0;}while((j|0)<(f|0));Fe(g);i=e;return}function no(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;h=i;g=a+8|0;j=a+4|0;if((c[g>>2]|0)>=(c[j>>2]|0)){mo(a)}f=FW(12)|0;c[f>>2]=b;c[f+4>>2]=e;e=c[b+24>>2]|0;if((e|0)>0){l=0;k=0;b=c[b+28>>2]|0;while(1){l=(d[b]|0)+(l*17|0)|0;k=k+1|0;if((k|0)<(e|0)){b=b+1|0}else{break}}}else{l=0}l=(c[a+12>>2]|0)+(((l>>>0)%((c[j>>2]|0)>>>0)|0)<<2)|0;c[f+8>>2]=c[l>>2];c[l>>2]=f;c[g>>2]=(c[g>>2]|0)+1;i=h;return}function oo(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;h=c[b+24>>2]|0;if((h|0)>0){k=0;j=0;g=c[b+28>>2]|0;while(1){k=(d[g]|0)+(k*17|0)|0;j=j+1|0;if((j|0)<(h|0)){g=g+1|0}else{break}}}else{k=0}a=c[(c[a+12>>2]|0)+(((k>>>0)%((c[a+4>>2]|0)>>>0)|0)<<2)>>2]|0;if((a|0)==0){k=0;i=e;return k|0}while(1){if((se(c[a>>2]|0,b)|0)==0){break}a=c[a+8>>2]|0;if((a|0)==0){b=0;f=8;break}}if((f|0)==8){i=e;return b|0}k=c[a+4>>2]|0;i=e;return k|0}function po(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;g=a[d]|0;if(g<<24>>24==0){j=0}else{j=0;h=d;while(1){j=(j*17|0)+(g&255)|0;h=h+1|0;g=a[h]|0;if(g<<24>>24==0){break}else{}}}b=c[(c[b+12>>2]|0)+(((j>>>0)%((c[b+4>>2]|0)>>>0)|0)<<2)>>2]|0;if((b|0)==0){j=0;i=f;return j|0}while(1){if((te(c[b>>2]|0,d)|0)==0){break}b=c[b+8>>2]|0;if((b|0)==0){d=0;e=7;break}}if((e|0)==7){i=f;return d|0}j=c[b+4>>2]|0;i=f;return j|0}function qo(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;j=c[e+24>>2]|0;if((j|0)>0){k=0;l=0;h=c[e+28>>2]|0;while(1){k=(d[h]|0)+(k*17|0)|0;l=l+1|0;if((l|0)<(j|0)){h=h+1|0}else{break}}}else{k=0}j=(k>>>0)%((c[b+4>>2]|0)>>>0)|0;k=b+12|0;h=c[(c[k>>2]|0)+(j<<2)>>2]|0;if((h|0)==0){l=0;i=f;return l|0}while(1){if((se(c[h>>2]|0,e)|0)==0){break}h=c[h+8>>2]|0;if((h|0)==0){b=0;g=13;break}}if((g|0)==13){i=f;return b|0}g=(c[k>>2]|0)+(j<<2)|0;while(1){e=c[g>>2]|0;if((e|0)==(h|0)){break}else{g=e+8|0}}c[g>>2]=c[h+8>>2];do{if((a[b]&1)!=0){g=c[h>>2]|0;if((g|0)==0){break}ke(g);HW(g)}}while(0);l=c[h+4>>2]|0;HW(h);k=b+8|0;c[k>>2]=(c[k>>2]|0)+ -1;i=f;return l|0}function ro(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;j=c[e+24>>2]|0;if((j|0)>0){k=0;l=0;h=c[e+28>>2]|0;while(1){k=(d[h]|0)+(k*17|0)|0;l=l+1|0;if((l|0)<(j|0)){h=h+1|0}else{break}}}else{k=0}j=(k>>>0)%((c[b+4>>2]|0)>>>0)|0;k=b+12|0;h=c[(c[k>>2]|0)+(j<<2)>>2]|0;if((h|0)==0){l=0;i=f;return l|0}while(1){if((se(c[h>>2]|0,e)|0)==0){break}h=c[h+8>>2]|0;if((h|0)==0){b=0;g=13;break}}if((g|0)==13){i=f;return b|0}g=(c[k>>2]|0)+(j<<2)|0;while(1){e=c[g>>2]|0;if((e|0)==(h|0)){break}else{g=e+8|0}}c[g>>2]=c[h+8>>2];do{if((a[b]&1)!=0){g=c[h>>2]|0;if((g|0)==0){break}ke(g);HW(g)}}while(0);l=c[h+4>>2]|0;HW(h);k=b+8|0;c[k>>2]=(c[k>>2]|0)+ -1;i=f;return l|0}function so(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;g=a[d]|0;if(g<<24>>24==0){j=0}else{j=0;h=d;while(1){j=(j*17|0)+(g&255)|0;h=h+1|0;g=a[h]|0;if(g<<24>>24==0){break}else{}}}h=(j>>>0)%((c[b+4>>2]|0)>>>0)|0;j=b+12|0;g=c[(c[j>>2]|0)+(h<<2)>>2]|0;if((g|0)==0){j=0;i=e;return j|0}while(1){if((te(c[g>>2]|0,d)|0)==0){break}g=c[g+8>>2]|0;if((g|0)==0){b=0;f=12;break}}if((f|0)==12){i=e;return b|0}d=(c[j>>2]|0)+(h<<2)|0;while(1){f=c[d>>2]|0;if((f|0)==(g|0)){break}else{d=f+8|0}}c[d>>2]=c[g+8>>2];do{if((a[b]&1)!=0){f=c[g>>2]|0;if((f|0)==0){break}ke(f);HW(f)}}while(0);j=c[g+4>>2]|0;HW(g);h=b+8|0;c[h>>2]=(c[h>>2]|0)+ -1;i=e;return j|0}function to(a,b){a=a|0;b=b|0;var d=0;a=i;d=FW(8)|0;c[b>>2]=d;c[d>>2]=-1;c[d+4>>2]=0;i=a;return}function uo(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;j=c[b>>2]|0;if((j|0)==0){k=0;i=f;return k|0}k=j+4|0;h=c[k>>2]|0;if((h|0)==0){h=j;g=4}else{c[k>>2]=c[h+8>>2];h=c[b>>2]|0;j=c[h+4>>2]|0;if((j|0)==0){g=4}}a:do{if((g|0)==4){g=a+4|0;a=a+12|0;while(1){k=(c[h>>2]|0)+1|0;c[h>>2]=k;h=c[b>>2]|0;if((k|0)==(c[g>>2]|0)){break}c[h+4>>2]=c[(c[a>>2]|0)+(c[h>>2]<<2)>>2];h=c[b>>2]|0;j=c[h+4>>2]|0;if((j|0)!=0){break a}}if((h|0)!=0){HW(h)}c[b>>2]=0;k=0;i=f;return k|0}}while(0);c[d>>2]=c[j>>2];c[e>>2]=c[(c[(c[b>>2]|0)+4>>2]|0)+4>>2];k=1;i=f;return k|0}function vo(a,b){a=a|0;b=b|0;var d=0;a=i;d=c[b>>2]|0;if((d|0)!=0){HW(d)}c[b>>2]=0;i=a;return}function wo(a){a=a|0;var b=0;b=i;c[a+4>>2]=8;c[a>>2]=ye(8,4)|0;c[a+8>>2]=0;c[a+12>>2]=0;i=b;return}function xo(a){a=a|0;var b=0;b=i;Fe(c[a>>2]|0);i=b;return}function yo(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=a+8|0;h=c[e>>2]|0;g=a+4|0;f=c[g>>2]|0;if((h|0)<(f|0)){a=c[a>>2]|0}else{h=c[a+12>>2]|0;h=((h|0)>0?h:f)+f|0;c[g>>2]=h;g=Ce(c[a>>2]|0,h,4)|0;c[a>>2]=g;h=c[e>>2]|0;a=g}c[e>>2]=h+1;c[a+(h<<2)>>2]=b;i=d;return}function zo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;e=a+8|0;j=c[e>>2]|0;h=a+4|0;g=c[h>>2]|0;if((j|0)>=(g|0)){j=c[a+12>>2]|0;j=((j|0)>0?j:g)+g|0;c[h>>2]=j;c[a>>2]=Ce(c[a>>2]|0,j,4)|0;j=c[e>>2]|0}if((j|0)>(b|0)){h=c[a>>2]|0;aX(h+(b+1<<2)|0,h+(b<<2)|0,j-b<<2|0)|0}c[(c[a>>2]|0)+(b<<2)>>2]=d;c[e>>2]=(c[e>>2]|0)+1;i=f;return}function Ao(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;g=c[a>>2]|0;h=g+(b<<2)|0;e=c[h>>2]|0;f=a+8|0;j=c[f>>2]|0;if((j+ -1|0)>(b|0)){aX(h|0,g+(b+1<<2)|0,(j-b<<2)+ -4|0)|0;j=c[f>>2]|0}g=j+ -1|0;c[f>>2]=g;b=a+4|0;f=c[b>>2]|0;j=c[a+12>>2]|0;k=(j|0)>0;if(k){h=j}else{h=(f|0)/2|0}if((f-g|0)<(h|0)){i=d;return e|0}if(!k){j=(f|0)/2|0}k=f-j|0;c[b>>2]=k;c[a>>2]=Ce(c[a>>2]|0,k,4)|0;i=d;return e|0}function Bo(){var a=0,b=0,d=0;a=i;b=Tc(53840)|0;if((b|0)!=0){d=FW(32)|0;fe(d,b);i=a;return d|0}b=Tc(53848)|0;if((b|0)==0){b=Rc(Ac()|0)|0}else{b=Pb(b|0)|0}d=FW(32)|0;if((b|0)==0){fe(d,53856);i=a;return d|0}else{fe(d,c[b+20>>2]|0);i=a;return d|0}return 0}function Co(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;if((Qc(d|0,53856)|0)==0){i=e;return b|0}g=(Qc(d|0,53864)|0)==0;f=c[b+24>>2]|0;if(!g){do{if((f|0)>0){if((a[(c[b+28>>2]|0)+(f+ -1)|0]|0)==47){break}me(b,47)|0}}while(0);ne(b,d,-1)|0;i=e;return b|0}g=f+ -2|0;d=c[b+28>>2]|0;a:do{if((g|0)>-1){while(1){if((a[d+g|0]|0)==47){break}if((g|0)>0){g=g+ -1|0}else{break a}}if((g|0)<1){break}re(b,g,f-g|0)|0;i=e;return b|0}}while(0);if((a[d]|0)==47){re(b,1,f+ -1|0)|0;i=e;return b|0}else{le(b)|0;ne(b,53864,-1)|0;i=e;return b|0}return 0}function Do(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;c=c+ -1|0;g=0;while(1){if((g|0)>=(c|0)){break}j=qc(d|0)|0;if((j|0)==-1){break}h=g+1|0;a[b+g|0]=j;if((j|0)==13){f=5;break}else if((j|0)==10){g=h;break}else{g=h}}do{if((f|0)==5){f=qc(d|0)|0;if((f|0)==10&(h|0)<(c|0)){a[b+h|0]=10;g=g+2|0;break}if((f|0)==-1){g=h;break}Ec(f|0,d|0)|0;g=h}}while(0);a[b+g|0]=0;i=e;return((g|0)==0?0:b)|0}function Eo(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;h=i;i=i+80|0;j=FW(32)|0;fe(j,e);c[b>>2]=j;j=b+8|0;a[j]=0;k=FW(32)|0;fe(k,d);b=b+4|0;c[b>>2]=k;Co(k,e)|0;if(!f){i=g;return}if((Nb(c[(c[b>>2]|0)+28>>2]|0,h|0)|0)!=0){i=g;return}a[j]=(c[h+12>>2]&61440|0)==16384|0;i=g;return}function Fo(a){a=a|0;var b=0,d=0;b=i;d=c[a+4>>2]|0;if((d|0)!=0){ke(d);HW(d)}a=c[a>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}function Go(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;g=FW(32)|0;fe(g,d);c[b>>2]=g;a[b+4|0]=e&1;c[b+8>>2]=zb(d|0)|0;i=f;return}function Ho(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)!=0){ke(d);HW(d)}a=c[a+8>>2]|0;if((a|0)==0){i=b;return}qb(a|0)|0;i=b;return}function Io(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;f=b+8|0;g=c[f>>2]|0;if((g|0)==0){g=0;i=d;return g|0}g=eb(g|0)|0;if((g|0)==0){g=0;i=d;return g|0}while(1){g=g+11|0;if((Qc(g|0,53856)|0)!=0){if((Qc(g|0,53864)|0)!=0){break}}g=eb(c[f>>2]|0)|0;if((g|0)==0){b=0;e=7;break}}if((e|0)==7){i=d;return b|0}f=FW(12)|0;Eo(f,c[(c[b>>2]|0)+28>>2]|0,g,(a[b+4|0]&1)!=0);g=f;i=d;return g|0}function Jo(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0;g=i;c[b>>2]=d;j=b+188|0;a[j]=e&1;k=FW(152)|0;Hq(k,c[d>>2]|0,c[d+4>>2]|0,e,f);c[b+4>>2]=k;if((a[j]&1)==0){c[b+8>>2]=0;j=b;j=c[j>>2]|0;d=j;d=c[d>>2]|0;k=b+168|0;c[k>>2]=d;j=j+4|0;j=c[j>>2]|0;k=b+172|0;c[k>>2]=j;k=b+176|0;c[k>>2]=-1;k=b+180|0;c[k>>2]=-1;k=b+189|0;a[k]=0;i=g;return}else{j=FW(28)|0;Ke(j,c[c[b>>2]>>2]<<2,4,1,0,0,1);c[b+8>>2]=j;h[b+32>>3]=0.0;h[b+40>>3]=.015625;h[b+48>>3]=.04419417382415922;h[b+56>>3]=.08118988160479113;h[b+64>>3]=.125;h[b+72>>3]=.17469281074217108;h[b+80>>3]=.22963966338592295;h[b+88>>3]=.2893790496476896;h[b+96>>3]=.3535533905932738;h[b+104>>3]=.421875;h[b+112>>3]=.49410588440130926;h[b+120>>3]=.5700448858423344;h[b+128>>3]=.649519052838329;h[b+136>>3]=.7323776028286229;h[b+144>>3]=.8184875533567997;h[b+152>>3]=.9077304717673633;h[b+160>>3]=1.0;j=b;j=c[j>>2]|0;d=j;d=c[d>>2]|0;k=b+168|0;c[k>>2]=d;j=j+4|0;j=c[j>>2]|0;k=b+172|0;c[k>>2]=j;k=b+176|0;c[k>>2]=-1;k=b+180|0;c[k>>2]=-1;k=b+189|0;a[k]=0;i=g;return}}function Ko(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0;g=i;c[b>>2]=d;j=b+188|0;a[j]=e&1;k=FW(152)|0;Iq(k,c[d>>2]|0,c[d+4>>2]|0,e,f);c[b+4>>2]=k;if((a[j]&1)==0){c[b+8>>2]=0;j=b;j=c[j>>2]|0;d=j;d=c[d>>2]|0;k=b+168|0;c[k>>2]=d;j=j+4|0;j=c[j>>2]|0;k=b+172|0;c[k>>2]=j;k=b+176|0;c[k>>2]=-1;k=b+180|0;c[k>>2]=-1;k=b+189|0;a[k]=0;i=g;return}else{j=FWFW(152)|0;Jq(d,e);c[d+144>>2]=c[a>>2];c[a>>2]=d;i=b;return}function ep(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;g=c[b>>2]|0;a:do{switch(c[g+16>>2]|0){case 3:{j=a[d]|0;h=d+1|0;do{if(j<<24>>24==(a[h]|0)){if(j<<24>>24!=(a[d+2|0]|0)){break}d=c[g+12>>2]|0;h=c[g+20>>2]|0;g=c[g+4>>2]|0;if((d|0)<0){bX(h+(da(g+ -1|0,d)|0)|0,j|0,da(g,0-d|0)|0)|0;break a}else{bX(h|0,j|0,da(g,d)|0)|0;break a}}}while(0);if((c[g+4>>2]|0)<=0){break a}j=d+2|0;l=g;g=c[g+20>>2]|0;k=0;while(1){b:do{if((c[l>>2]|0)>0){l=g;n=1;while(1){a[l]=a[d]|0;a[l+1|0]=a[h]|0;a[l+2|0]=a[j]|0;m=c[b>>2]|0;if((n|0)>=(c[m>>2]|0)){break b}l=l+3|0;n=n+1|0}}else{m=l}}while(0);k=k+1|0;if((k|0)<(c[m+4>>2]|0)){l=m;g=g+(c[m+12>>2]|0)|0}else{break}}break};case 4:{j=a[d]|0;h=d+1|0;do{if(j<<24>>24==(a[h]|0)){if(j<<24>>24!=(a[d+2|0]|0)){break}d=c[g+12>>2]|0;h=c[g+20>>2]|0;g=c[g+4>>2]|0;if((d|0)<0){bX(h+(da(g+ -1|0,d)|0)|0,j|0,da(g,0-d|0)|0)|0;break a}else{bX(h|0,j|0,da(g,d)|0)|0;break a}}}while(0);if((c[g+4>>2]|0)<=0){break a}j=d+2|0;l=g;g=c[g+20>>2]|0;k=0;while(1){c:do{if((c[l>>2]|0)>0){l=g;n=1;while(1){a[l]=a[d]|0;a[l+1|0]=a[h]|0;a[l+2|0]=a[j]|0;a[l+3|0]=-1;m=c[b>>2]|0;if((n|0)>=(c[m>>2]|0)){break c}l=l+4|0;n=n+1|0}}else{m=l}}while(0);k=k+1|0;if((k|0)<(c[m+4>>2]|0)){l=m;g=g+(c[m+12>>2]|0)|0}else{break}}break};case 0:{h=a[d]>>7;j=c[g+12>>2]|0;d=c[g+20>>2]|0;g=c[g+4>>2]|0;if((j|0)<0){bX(d+(da(g+ -1|0,j)|0)|0,h|0,da(g,0-j|0)|0)|0;break a}else{bX(d|0,h|0,da(g,j)|0)|0;break a}break};case 2:{j=a[d]|0;h=d+1|0;do{if(j<<24>>24==(a[h]|0)){if(j<<24>>24!=(a[d+2|0]|0)){break}h=c[g+12>>2]|0;d=c[g+20>>2]|0;g=c[g+4>>2]|0;if((h|0)<0){bX(d+(da(g+ -1|0,h)|0)|0,j|0,da(g,0-h|0)|0)|0;break a}else{bX(d|0,j|0,da(g,h)|0)|0;break a}}}while(0);if((c[g+4>>2]|0)<=0){break a}j=d+2|0;l=g;g=c[g+20>>2]|0;k=0;while(1){d:do{if((c[l>>2]|0)>0){l=g;n=1;while(1){a[l]=a[j]|0;a[l+1|0]=a[h]|0;a[l+2|0]=a[d]|0;m=c[b>>2]|0;if((n|0)>=(c[m>>2]|0)){break d}l=l+3|0;n=n+1|0}}else{m=l}}while(0);k=k+1|0;if((k|0)<(c[m+4>>2]|0)){l=m;g=g+(c[m+12>>2]|0)|0}else{break}}break};case 1:{j=c[g+12>>2]|0;h=c[g+20>>2]|0;if((j|0)<0){n=c[g+4>>2]|0;m=h+(da(n+ -1|0,j)|0)|0;bX(m|0,a[d]|0,da(n,0-j|0)|0)|0;break a}else{bX(h|0,a[d]|0,da(c[g+4>>2]|0,j)|0)|0;break a}break};default:{}}}while(0);g=c[b>>2]|0;d=c[g+24>>2]|0;if((d|0)!=0){bX(d|0,e|0,da(c[g+4>>2]|0,c[g>>2]|0)|0)|0}e=b+168|0;g=c[e>>2]|0;if((g|0)>0){c[e>>2]=0;g=0}h=b+176|0;j=c[h>>2]|0;if((j|0)<0){c[h>>2]=0;j=0}d=b+172|0;l=c[d>>2]|0;if((l|0)>0){c[d>>2]=0;l=0}k=b+180|0;m=c[k>>2]|0;if((m|0)<0){c[k>>2]=0;m=0}b=c[b>>2]|0;n=(c[b>>2]|0)+ -1|0;if((g|0)>(n|0)){c[e>>2]=n}if((j|0)<(n|0)){c[h>>2]=n}b=(c[b+4>>2]|0)+ -1|0;if((l|0)>(b|0)){c[d>>2]=b}if((m|0)>=(b|0)){i=f;return}c[k>>2]=b;i=f;return}function fp(b,e){b=b|0;e=e|0;var f=0,g=0,j=0,l=0,m=0,n=0,o=0,p=0.0,q=0,r=0.0;f=i;j=i;i=i+40|0;g=j;m=i;i=i+16|0;l=m;do{if((a[b+189|0]&1)==0){l=e+8|0}else{o=c[b+4>>2]|0;p=+h[o+80>>3];c[m>>2]=c[o+116>>2];o=l+4|0;h[k>>3]=p;c[o>>2]=c[k>>2];c[o+4>>2]=c[k+4>>2];Kb(53944,l|0)|0;l=e+8|0;if((c[l>>2]|0)<=0){break}m=e+4|0;n=0;while(1){o=c[e>>2]|0;r=+h[o+(n<<4)>>3];p=+h[o+(n<<4)+8>>3];o=d[(c[m>>2]|0)+n|0]|0;c[j>>2]=n;q=g+4|0;h[k>>3]=r;c[q>>2]=c[k>>2];c[q+4>>2]=c[k+4>>2];q=g+12|0;h[k>>3]=p;c[q>>2]=c[k>>2];c[q+4>>2]=c[k+4>>2];c[g+20>>2]=(o&1|0)!=0?54576:54584;c[g+24>>2]=(o&2|0)!=0?54592:54584;c[g+28>>2]=(o&4|0)!=0?54600:54584;c[g+32>>2]=(o&8|0)!=0?54608:54584;Kb(54544,g|0)|0;n=n+1|0;if((n|0)<(c[l>>2]|0)){}else{break}}}}while(0);c[b+184>>2]=1;if((c[l>>2]|0)==0){q=2;i=f;return q|0}g=b+4|0;q=c[g>>2]|0;e=gp(b,e,q,+h[q+104>>3])|0;do{if((c[(c[g>>2]|0)+116>>2]|0)>0){j=hp(b,e)|0;if((e|0)==0){break}hq(e);HW(e)}else{j=e}}while(0);do{if(+h[(c[g>>2]|0)+80>>3]==0.0){ip(b,j)}else{e=lp(b,j,0)|0;q=c[g>>2]|0;mp(b,e,0,c[q+48>>2]|0,+h[q+64>>3])|0;if((e|0)==0){break}hq(e);HW(e)}}while(0);if((j|0)==0){q=0;i=f;return q|0}hq(j);HW(j);q=0;i=f;return q|0}function gp(b,e,f,g){b=b|0;e=e|0;f=f|0;g=+g;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;j=i;k=FW(32)|0;gq(k);g=g*g;l=e+8|0;if((c[l>>2]|0)<=0){i=j;return k|0}m=e+4|0;n=0;do{o=d[(c[m>>2]|0)+n|0]|0;do{if((o&1|0)==0){if((o&8|0)==0){o=c[e>>2]|0;kq(k,+h[o+(n<<4)>>3],+h[o+(n<<4)+8>>3])|0;n=n+1|0}else{r=n+ -1|0;p=c[e>>2]|0;q=n+1|0;o=n+2|0;np(b,+h[p+(r<<4)>>3],+h[p+(r<<4)+8>>3],+h[p+(n<<4)>>3],+h[p+(n<<4)+8>>3],+h[p+(q<<4)>>3],+h[p+(q<<4)+8>>3],+h[p+(o<<4)>>3],+h[p+(o<<4)+8>>3],f,g,k);n=n+3|0}if((a[(c[m>>2]|0)+(n+ -1)|0]&4)==0){break}mq(k)|0}else{r=c[e>>2]|0;jq(k,+h[r+(n<<4)>>3],+h[r+(n<<4)+8>>3])|0;n=n+1|0}}while(0);}while((n|0)<(c[l>>2]|0));i=j;return k|0}function hp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0.0,m=0,n=0,o=0,p=0,q=0,r=0.0,s=0.0,t=0,u=0.0,v=0.0,w=0,x=0.0,y=0.0,z=0.0,A=0.0,B=0;f=i;b=b+4|0;g=c[b>>2]|0;j=c[g+116>>2]|0;if((j|0)>0){k=c[g+112>>2]|0;m=0;l=0.0;while(1){l=l+ +h[k+(m<<3)>>3];m=m+1|0;if((m|0)<(j|0)){}else{break}}}else{l=0.0}r=+h[g+120>>3];s=r/l;if(s<=0.0){s=+R(+s)}l=r-l*+(~~s|0);k=c[g+112>>2]|0;r=+h[k>>3];if(l<r){g=0;j=1}else{g=0;j=1;while(1){j=j^1;l=l-r;g=g+1|0;r=+h[k+(g<<3)>>3];if(l<r){break}else{}}}n=FW(32)|0;gq(n);k=d+8|0;q=c[k>>2]|0;if((q|0)<=0){i=f;return n|0}m=d+4|0;p=0;do{t=q+ -1|0;a:do{if((p|0)<(t|0)){w=c[m>>2]|0;o=p;while(1){B=o+1|0;if((a[w+o|0]&2)!=0){break a}if((B|0)<(t|0)){o=B}else{o=B;break}}}else{o=p}}while(0);if((p|0)<(o|0)){x=+h[(c[(c[b>>2]|0)+112>>2]|0)+(g<<3)>>3]-l;q=g;t=j;w=1;do{B=c[d>>2]|0;u=+h[B+(p<<4)>>3];v=+h[B+(p<<4)+8>>3];p=p+1|0;s=+h[B+(p<<4)>>3];r=+h[B+(p<<4)+8>>3];A=s-u;y=r-v;y=+T(+(A*A+y*y));b:while(1){c:do{if(t){while(1){if(y<=0.0){t=1;break b}if(x<y){e=26;break c}if(w){jq(n,u,v)|0}kq(n,s,r)|0;x=x-y;if(x>0.0){w=0;y=0.0}else{y=0.0;break}}}else{while(1){if(y<=0.0){t=0;break b}if(x<y){e=26;break c}x=x-y;if(x>0.0){y=0.0}else{y=0.0;break}}}}while(0);if((e|0)==26){e=0;z=x/y;A=u+(s-u)*z;z=v+(r-v)*z;if(t){if(w){jq(n,u,v)|0}kq(n,A,z)|0}y=y-x;u=A;v=z}w=q+1|0;q=c[b>>2]|0;w=(w|0)==(c[q+116>>2]|0)?0:w;x=+h[(c[q+112>>2]|0)+(w<<3)>>3];q=w;t=t^1;w=1}}while((p|0)<(o|0));q=c[k>>2]|0}p=o+1|0;}while((p|0)<(q|0));i=f;return n|0}function ip(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0.0,v=0,w=0,x=0,y=0,z=0,A=0,B=0.0,C=0,D=0.0,E=0;d=i;m=i;i=i+80|0;g=i;i=i+16|0;l=g;k=l+8|0;c[k>>2]=0;f=l+4|0;c[f>>2]=0;c[g>>2]=0;e=FW(12)|0;j=a+4|0;r=c[j>>2]|0;Pq(e,b,r,+h[r+104>>3],0);r=c[j>>2]|0;jp(a,m,0,0,c[r+48>>2]|0,0,+h[r+64>>3],0,0);r=e+4|0;if((c[r>>2]|0)>0){p=a+168|0;o=a+176|0;n=a+172|0;b=a+180|0;s=0;q=c[e>>2]|0;while(1){B=+h[q>>3];if(B>0.0){u=B}else{u=+R(+B)}v=~~u;D=+h[q+16>>3];if(D>0.0){u=D}else{u=+R(+D)}x=~~u;t=q+8|0;u=+h[t>>3];if(u<=0.0){u=+R(+u)}w=~~u;u=+h[q+24>>3];if(u<=0.0){u=+R(+u)}A=~~u;do{if((w|0)==(A|0)){y=(v|0)>(x|0);t=y?x:v;v=y?v:x;x=Kp(c[(c[j>>2]|0)+132>>2]|0,t,v,w)|0;if((x|0)==1){x=1;break}kp(a,m,t,v,w,(x|0)==0)}else{u=+h[q+32>>3];if(+S(+u)>1.0){B=D-B;if((w|0)>(A|0)){B=-0.0-B;z=x;y=A}else{z=v;v=x;y=w;w=A}x=(z|0)<=(v|0);x=Jp(c[(c[j>>2]|0)+132>>2]|0,x?z:v,y,x?v:z,w)|0;if((x|0)==1){x=1;break}D=+h[q>>3]+u*(+(y|0)+1.0- +h[t>>3]);if(D<=0.0){D=+R(+D)}C=~~D;if(B>0.0){E=C+ -1|0;A=(x|0)==0;kp(a,m,z,(z|0)>(E|0)?z:E,y,A);z=w+ -1|0;if((y|0)<(z|0)){while(1){y=y+1|0;B=+h[q>>3]+u*(+(y|0)+1.0- +h[t>>3]);if(B<=0.0){B=+R(+B)}E=~~B;kp(a,m,C,E+ -1|0,y,A);if((y|0)<(z|0)){C=E}else{C=E;break}}}kp(a,m,C,(C|0)<=(v|0)?v:C,w,A);break}else{A=(x|0)==0;kp(a,m,(C|0)<(z|0)?C+1|0:z,z,y,A);z=w+ -1|0;if((y|0)<(z|0)){while(1){y=y+1|0;B=+h[q>>3]+u*(+(y|0)+1.0- +h[t>>3]);if(B<=0.0){B=+R(+B)}E=~~B;kp(a,m,E+1|0,C,y,A);if((y|0)<(z|0)){C=E}else{C=E;break}}}kp(a,m,v,(v|0)<=(C|0)?C:v,w,A);break}}y=(w|0)>(A|0);z=y?x:v;v=y?v:x;C=y?A:w;w=y?w:A;x=(z|0)<=(v|0);x=Jp(c[(c[j>>2]|0)+132>>2]|0,x?z:v,C,x?v:z,w)|0;if((x|0)==1){x=1;break}y=(x|0)==0;do{if((C|0)>=0){if(!y){if(!(vp(c[(c[j>>2]|0)+132>>2]|0,z,C)|0)){break}}tp(a,m,z,C);up(a,m);if((c[p>>2]|0)>(z|0)){c[p>>2]=z}if((c[o>>2]|0)<(z|0)){c[o>>2]=z}if((c[n>>2]|0)>(C|0)){c[n>>2]=C}if((c[b>>2]|0)>=(C|0)){break}c[b>>2]=C}}while(0);A=C+1|0;z=w+ -1|0;a:do{if((C|0)<(z|0)){if(y){while(1){B=+h[q>>3]+u*(+(A|0)- +h[t>>3]);if(B<=0.0){B=+R(+B)}C=~~B;do{if((A|0)>=0){tp(a,m,C,A);up(a,m);if((c[p>>2]|0)>(C|0)){c[p>>2]=C}if((c[o>>2]|0)<(C|0)){c[o>>2]=C}if((c[n>>2]|0)>(A|0)){c[n>>2]=A}if((c[b>>2]|0)>=(A|0)){break}c[b>>2]=A}}while(0);if((A|0)>=(z|0)){break a}A=A+1|0}}while(1){B=+h[q>>3]+u*(+(A|0)- +h[t>>3]);if(B<=0.0){B=+R(+B)}C=~~B;do{if((A|0)>=0){if(!(vp(c[(c[j>>2]|0)+132>>2]|0,C,A)|0)){break}tp(a,m,C,A);up(a,m);if((c[p>>2]|0)>(C|0)){c[p>>2]=C}if((c[o>>2]|0)<(C|0)){c[o>>2]=C}if((c[n>>2]|0)>(A|0)){c[n>>2]=A}if((c[b>>2]|0)>=(A|0)){break}c[b>>2]=A}}while(0);if((A|0)>=(z|0)){break a}A=A+1|0}}}while(0);if((w|0)<0){break}if(!y){if(!(vp(c[(c[j>>2]|0)+132>>2]|0,v,w)|0)){break}}tp(a,m,v,w);up(a,m);if((c[p>>2]|0)>(v|0)){c[p>>2]=v}if((c[o>>2]|0)<(v|0)){c[o>>2]=v}if((c[n>>2]|0)>(w|0)){c[n>>2]=w}if((c[b>>2]|0)>=(w|0)){break}c[b>>2]=w}}while(0);E=l+(x<<2)|0;c[E>>2]=(c[E>>2]|0)+1;s=s+1|0;if((s|0)<(c[r>>2]|0)){q=q+56|0}else{break}}if((c[k>>2]|0)==0){j=85}else{j=87}}else{j=85}do{if((j|0)==85){if((c[g>>2]|0)==0){c[a+184>>2]=1;break}if((c[f>>2]|0)!=0){j=87;break}c[a+184>>2]=0}}while(0);if((j|0)==87){c[a+184>>2]=2}if((e|0)==0){i=d;return}Uq(e);HW(e);i=d;return}function jp(b,d,e,f,g,j,k,l,m){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=+k;l=l|0;m=m|0;var n=0,o=0,p=0,q=0.0;n=i;tp(b,d,e,f);p=d+8|0;c[p>>2]=0;if((g|0)==0){c[d+28>>2]=j}else{if(jd[c[(c[g>>2]|0)+16>>2]&511](g)|0){j=d+32|0;pd[c[(c[g>>2]|0)+12>>2]&63](g,e,f,j)|0}else{c[p>>2]=g;j=d+32|0}c[d+28>>2]=j}g=d+16|0;h[g>>3]=k;j=b+4|0;do{if((c[(c[j>>2]|0)+136>>2]|0)==0){q=k*255.0;if(l){h[g>>3]=q;break}q=q+.5;if(q<=0.0){q=+R(+q)}a[d+25|0]=~~q}}while(0);a[d+24|0]=l&1;do{if(k==1.0){g=c[j>>2]|0;if((c[g+136>>2]|0)!=0|l){o=17;break}if((a[g+141|0]&1)!=0){o=17;break}a[d+64|0]=1;c[d+68>>2]=c[53872+(c[(c[b>>2]|0)+16>>2]<<2)>>2]}else{o=17}}while(0);do{if((o|0)==17){a[d+64|0]=0;o=c[(c[b>>2]|0)+16>>2]|0;if((c[(c[j>>2]|0)+60>>2]|0)==0){c[d+68>>2]=c[53896+(o<<2)>>2];break}else{c[d+68>>2]=c[53920+(o<<2)>>2];break}}}while(0);if(m){c[d+72>>2]=c[55024+(c[(c[b>>2]|0)+16>>2]<<2)>>2];i=n;return}else{c[d+72>>2]=0;i=n;return}}function kp(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;h=i;tp(a,b,d,f);j=(d|0)>(e|0);if(g){if(!j){g=d;while(1){up(a,b);if((g|0)<(e|0)){g=g+1|0}else{break}}}b=a+168|0;j=c[b>>2]|0;if((j|0)>(d|0)){c[b>>2]=d;j=d}g=a+176|0;k=c[g>>2]|0;if((k|0)<(d|0)){c[g>>2]=d}else{d=k}if((j|0)>(e|0)){c[b>>2]=e}if((d|0)<(e|0)){c[g>>2]=e}e=a+172|0;if((c[e>>2]|0)>(f|0)){c[e>>2]=f}a=a+180|0;if((c[a>>2]|0)>=(f|0)){i=h;return}c[a>>2]=f;i=h;return}if(j){i=h;return}g=a+4|0;o=a+168|0;q=a+176|0;k=a+172|0;p=a+180|0;m=b+52|0;n=b+36|0;r=b+48|0;l=b+44|0;j=b+40|0;while(1){do{if(vp(c[(c[g>>2]|0)+132>>2]|0,d,f)|0){up(a,b);if((c[o>>2]|0)>(d|0)){c[o>>2]=d}if((c[q>>2]|0)<(d|0)){c[q>>2]=d}if((c[k>>2]|0)>(f|0)){c[k>>2]=f}if((c[p>>2]|0)>=(f|0)){break}c[p>>2]=f}else{c[b>>2]=(c[b>>2]|0)+1;if((c[(c[g>>2]|0)+136>>2]|0)!=0){c[j>>2]=(c[j>>2]|0)+1}a:do{switch(c[(c[a>>2]|0)+16>>2]|0){case 1:{c[l>>2]=(c[l>>2]|0)+1;break};case 4:{c[l>>2]=(c[l>>2]|0)+4;break};case 3:case 2:{c[l>>2]=(c[l>>2]|0)+3;break};case 0:{s=c[r>>2]>>1;c[r>>2]=s;if((s|0)!=0){break a}c[r>>2]=128;c[l>>2]=(c[l>>2]|0)+1;break};default:{}}}while(0);s=c[m>>2]|0;if((s|0)!=0){c[m>>2]=s+1}s=c[n>>2]|0;if((s|0)==0){break}c[n>>2]=s+1}}while(0);if((d|0)>=(e|0)){break}d=d+1|0}i=h;return}function lp(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0.0,o=0.0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0.0,D=0.0,E=0,F=0.0,G=0,H=0.0,I=0,J=0,K=0,L=0.0,M=0,N=0.0,O=0.0,P=0.0,Q=0,R=0,S=0.0,U=0.0,V=0.0,W=0,X=0,Y=0.0,Z=0.0,_=0.0;j=i;g=b+4|0;do{if(f){f=c[g>>2]|0;f=gp(b,e,f,+h[f+104>>3])|0;if((c[(c[g>>2]|0)+116>>2]|0)<=0){break}b=hp(b,f)|0;if((f|0)==0){f=b;break}hq(f);HW(f);f=b}else{f=e}}while(0);k=FWFW(12)|0;p=b+4|0;t=c[p>>2]|0;Pq(n,d,t,+h[t+104>>3],1);t=b+188|0;if((a[t]&1)!=0){Vq(n)}Wq(n);d=FWla+1|0;if((la|0)<(t|0)){ja=ja+v|0;ka=oa+ka|0;ma=w+ma}else{break}}break};case 4:{if(!N){break b}ha=(ga|0)>0;ia=(ia|0)==0;ka=0;la=0;na=0;while(1){Ga=na+H|0;oa=(Ga|0)<(t|0);na=Ga-(oa?0:t)|0;oa=oa?J:V;pa=~~ma;qa=q?pa:ja;pa=q?0-ja|0:pa;ra=(oa|0)<1?1:oa;if(ha){ua=(ra|0)>0;va=l-ra|0;wa=va<<2;ta=(oa|0)>1?oa:1;sa=ta<<2;Ea=0;xa=0;ya=m+(ka<<2)|0;Ga=0;Fa=0;Da=0;Ba=F+ka|0;while(1){if(ua){za=Ba+ta|0;Ca=0;Aa=ya;while(1){Ga=(d[Aa]|0)+Ga|0;Fa=(d[Aa+1|0]|0)+Fa|0;Da=(d[Aa+2|0]|0)+Da|0;Ea=(d[Ba]|0)+Ea|0;Ca=Ca+1|0;if((Ca|0)<(ra|0)){Ba=Ba+1|0;Aa=Aa+4|0}else{break}}ya=ya+sa|0;Ca=Ga;Aa=Fa}else{Ca=Ga;Aa=Fa;za=Ba}xa=xa+1|0;if((xa|0)<(ga|0)){ya=ya+wa|0;Ga=Ca;Fa=Aa;Ba=za+va|0}else{break}}}else{Ea=0;Ca=0;Aa=0;Da=0}Ha=1.0/+(da(ra,ga)|0);Ia=+(Ea|0)*Ha*.00392156862745098;do{if(Ia>0.0){a[G]=~~(+(Ca|0)*Ha);a[P]=~~(+(Aa|0)*Ha);a[Q]=~~(+(Da|0)*Ha);a[W]=-1;h[X>>3]=Ia;qa=qa+s|0;pa=pa+n|0;if(!((a[L]&1)==0|T)){xp(b,p,qa,pa);break}if((pa|0)<0){break}if(!ia){if(!(vp(c[(c[C>>2]|0)+132>>2]|0,qa,pa)|0)){break}}tp(b,p,qa,pa);up(b,p);if((c[_>>2]|0)>(qa|0)){c[_>>2]=qa}if((c[$>>2]|0)<(qa|0)){c[$>>2]=qa}if((c[Y>>2]|0)>(pa|0)){c[Y>>2]=pa}if((c[U>>2]|0)>=(pa|0)){break}c[U>>2]=pa}}while(0);la=la+1|0;if((la|0)<(t|0)){ja=ja+v|0;ka=oa+ka|0;ma=w+ma}else{break}}break};case 1:case 0:{if(!N){break b}ha=(ga|0)>0;ia=(ia|0)==0;ka=0;la=0;na=0;while(1){Ga=na+H|0;oa=(Ga|0)<(t|0);na=Ga-(oa?0:t)|0;oa=oa?J:V;qa=~~ma;pa=q?qa:ja;qa=q?0-ja|0:qa;ra=(oa|0)<1?1:oa;if(ha){sa=(ra|0)>0;ta=l-ra|0;ua=(oa|0)>1?oa:1;ya=0;va=0;wa=m+ka|0;Ba=0;za=F+ka|0;while(1){if(sa){xa=za+ua|0;Ca=ya;Aa=0;ya=wa;while(1){Ba=(d[ya]|0)+Ba|0;Ca=(d[za]|0)+Ca|0;Aa=Aa+1|0;if((Aa|0)<(ra|0)){za=za+1|0;ya=ya+1|0}else{break}}ya=Ca;wa=wa+ua|0}else{xa=za}va=va+1|0;if((va|0)<(ga|0)){wa=wa+ta|0;za=xa+ta|0}else{break}}}else{ya=0;Ba=0}Ha=1.0/+(da(ra,ga)|0);Ia=+(ya|0)*Ha*.00392156862745098;do{if(Ia>0.0){a[G]=~~(+(Ba|0)*Ha);h[X>>3]=Ia;pa=pa+s|0;qa=qa+n|0;if(!((a[L]&1)==0|T)){xp(b,p,pa,qa);break}if((qa|0)<0){break}if(!ia){if(!(vp(c[(c[C>>2]|0)+132>>2]|0,pa,qa)|0)){break}}tp(b,p,pa,qa);up(b,p);if((c[_>>2]|0)>(pa|0)){c[_>>2]=pa}if((c[$>>2]|0)<(pa|0)){c[$>>2]=pa}if((c[Y>>2]|0)>(qa|0)){c[Y>>2]=qa}if((c[U>>2]|0)>=(qa|0)){break}c[U>>2]=qa}}while(0);la=la+1|0;if((la|0)<(t|0)){ja=ja+v|0;ka=oa+ka|0;ma=w+ma}else{break}}break};default:{break b}}}}while(0);ca=ca+1|0;if((ca|0)<(u|0)){ga=fa}else{break}}}else{if(!M){break}Q=(E|0)>0;O=(D|0)==0;P=O|q;j=w<0.0;T=(aa|0)>-1;M=U+1|0;N=U+2|0;W=U+3|0;X=b+168|0;Y=b+176|0;V=b+172|0;$=b+180|0;Z=p+56|0;_=J+1|0;U=ca?aa:0;aa=ca?0:aa;ba=da(ba,l)|0;ga=1;fa=0;ca=0;while(1){Ga=ca+K|0;ea=(Ga|0)<(u|0);ca=Ga-(ea?0:u)|0;ea=ea?E:I;ga=Q?ea:ga;if((ga|0)>0){ia=0;ha=m;while(1){sd[e&127](f,ha,0)|0;ia=ia+1|0;if((ia|0)<(ga|0)){ha=ha+ba|0}else{break}}}ma=+(fa|0);Ha=A*ma+.5;if(Ha<=0.0){Ha=+R(+Ha)}ka=~~Ha;Ha=r*+(ka|0);do{if(P){ia=D;B=190}else{ga=~~Ha;if((ga|0)!=(~~(r*+(ka+x|0))|0)){ia=D;B=190;break}Ga=ka+s|0;ia=(da(fa,y)|0)+n+ga|0;ia=Kp(c[(c[C>>2]|0)+132>>2]|0,Ga-U|0,Ga+aa|0,ia)|0;if((ia|0)!=1){B=190}}}while(0);c:do{if((B|0)==190){B=0;ma=z*ma+Ha;if(j){ma=ma+.999}ga=(ea|0)<1?1:ea;switch(g|0){case 1:case 0:{if(!T){break c}ha=(ga|0)>0;ia=(ia|0)==0;ja=0;la=0;na=0;while(1){Ga=na+H|0;oa=(Ga|0)<(t|0);na=Ga-(oa?0:t)|0;oa=oa?J:_;pa=~~ma;qa=q?pa:ka;pa=q?0-ka|0:pa;ra=(oa|0)<1?1:oa;if(ha){ua=(ra|0)>0;sa=l-ra|0;ta=(oa|0)>1?oa:1;va=0;wa=m+ja|0;ya=0;while(1){if(ua){za=0;xa=wa;while(1){ya=(d[xa]|0)+ya|0;za=za+1|0;if((za|0)<(ra|0)){xa=xa+1|0}else{break}}wa=wa+ta|0}va=va+1|0;if((va|0)<(ga|0)){wa=wa+sa|0}else{break}}}else{ya=0}a[G]=~~(+(ya|0)*(1.0/+(da(ra,ga)|0)));do{if((a[L]&1)==0|O){qa=qa+s|0;pa=pa+n|0;if((pa|0)<0){break}if(!ia){if(!(vp(c[(c[C>>2]|0)+132>>2]|0,qa,pa)|0)){break}}tp(b,p,qa,pa);up(b,p);if((c[X>>2]|0)>(qa|0)){c[X>>2]=qa}if((c[Y>>2]|0)<(qa|0)){c[Y>>2]=qa}if((c[V>>2]|0)>(pa|0)){c[V>>2]=pa}if((c[$>>2]|0)>=(pa|0)){break}c[$>>2]=pa}else{h[Z>>3]=1.0;xp(b,p,qa+s|0,pa+n|0)}}while(0);la=la+1|0;if((la|0)<(t|0)){ka=ka+v|0;ja=oa+ja|0;ma=w+ma}else{break}}break};case 3:case 2:{if(!T){break c}ha=(ga|0)>0;ia=(ia|0)==0;ja=0;la=0;na=0;while(1){Ga=na+H|0;oa=(Ga|0)<(t|0);na=Ga-(oa?0:t)|0;oa=oa?J:_;qa=~~ma;pa=q?qa:ka;qa=q?0-ka|0:qa;ra=(oa|0)<1?1:oa;if(ha){sa=(ra|0)>0;ta=(l-ra|0)*3|0;ua=(oa|0)>1?oa*3|0:3;va=0;wa=m+(ja*3|0)|0;Ba=0;Aa=0;za=0;while(1){if(sa){ya=0;xa=wa;while(1){Ba=(d[xa]|0)+Ba|0;Aa=(d[xa+1|0]|0)+Aa|0;za=(d[xa+2|0]|0)+za|0;ya=ya+1|0;if((ya|0)<(ra|0)){xa=xa+3|0}else{break}}wa=wa+ua|0}va=va+1|0;if((va|0)<(ga|0)){wa=wa+ta|0}else{break}}}else{Ba=0;Aa=0;za=0}Ia=1.0/+(da(ra,ga)|0);a[G]=~~(+(Ba|0)*Ia);a[M]=~~(+(Aa|0)*Ia);a[N]=~~(+(za|0)*Ia);do{if((a[L]&1)==0|O){pa=pa+s|0;qa=qa+n|0;if((qa|0)<0){break}if(!ia){if(!(vp(c[(c[C>>2]|0)+132>>2]|0,pa,qa)|0)){break}}tp(b,p,pa,qa);up(b,p);if((c[X>>2]|0)>(pa|0)){c[X>>2]=pa}if((c[Y>>2]|0)<(pa|0)){c[Y>>2]=pa}if((c[V>>2]|0)>(qa|0)){c[V>>2]=qa}if((c[$>>2]|0)>=(qa|0)){break}c[$>>2]=qa}else{h[Z>>3]=1.0;xp(b,p,pa+s|0,qa+n|0)}}while(0);la=la+1|0;if((la|0)<(t|0)){ka=ka+v|0;ja=oa+ja|0;ma=w+ma}else{break}}break};case 4:{if(!T){break c}ha=(ga|0)>0;ia=(ia|0)==0;ja=0;la=0;na=0;while(1){Ga=na+H|0;oa=(Ga|0)<(t|0);na=Ga-(oa?0:t)|0;oa=oa?J:_;qa=~~ma;pa=q?qa:ka;qa=q?0-ka|0:qa;ra=(oa|0)<1?1:oa;if(ha){ua=(ra|0)>0;sa=l-ra<<2;ta=(oa|0)>1?oa<<2:4;va=0;wa=m+(ja<<2)|0;Ba=0;Aa=0;za=0;while(1){if(ua){ya=0;xa=wa;while(1){Ba=(d[xa]|0)+Ba|0;Aa=(d[xa+1|0]|0)+Aa|0;za=(d[xa+2|0]|0)+za|0;ya=ya+1|0;if((ya|0)<(ra|0)){xa=xa+4|0}else{break}}wa=wa+ta|0}va=va+1|0;if((va|0)<(ga|0)){wa=wa+sa|0}else{break}}}else{Ba=0;Aa=0;za=0}Ia=1.0/+(da(ra,ga)|0);a[G]=~~(+(Ba|0)*Ia);a[M]=~~(+(Aa|0)*Ia);a[N]=~~(+(za|0)*Ia);a[W]=-1;do{if((a[L]&1)==0|O){pa=pa+s|0;qa=qa+n|0;if((qa|0)<0){break}if(!ia){if(!(vp(c[(c[C>>2]|0)+132>>2]|0,pa,qa)|0)){break}}tp(b,p,pa,qa);up(b,p);if((c[X>>2]|0)>(pa|0)){c[X>>2]=pa}if((c[Y>>2]|0)<(pa|0)){c[Y>>2]=pa}if((c[V>>2]|0)>(qa|0)){c[V>>2]=qa}if((c[$>>2]|0)>=(qa|0)){break}c[$>>2]=qa}else{h[Z>>3]=1.0;xp(b,p,pa+s|0,qa+n|0)}}while(0);la=la+1|0;if((la|0)<(t|0)){ka=ka+v|0;ja=oa+ja|0;ma=w+ma}else{break}}break};default:{break c}}}}while(0);fa=fa+1|0;if((fa|0)<(u|0)){ga=ea}else{break}}}}while(0);Fe(m);Fe(F);Ga=0;i=o;return Ga|0}function zp(b,d,e,f,g,j,k,l,m,n){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0.0,N=0.0;o=i;t=i;i=i+80|0;q=t;r=i;i=i+8|0;if((c[d+16>>2]|0)!=(c[(c[b>>2]|0)+16>>2]|0)){L=7;i=o;return L|0}u=d+24|0;L=(c[u>>2]|0)==0;p=b+4|0;M=+h[(c[p>>2]|0)+72>>3];tp(b,q,g,j);c[q+8>>2]=0;c[q+28>>2]=r;x=q+16|0;h[x>>3]=M;v=c[p>>2]|0;w=v+136|0;y=(c[w>>2]|0)==0;if(!L){if(y){h[x>>3]=M*255.0}a[q+24|0]=1;a[q+64|0]=0;x=(c[b>>2]|0)+16|0;w=c[x>>2]|0;if((c[v+60>>2]|0)==0){c[q+68>>2]=c[53896+(w<<2)>>2]}else{c[q+68>>2]=c[53920+(w<<2)>>2]}if(n){c[q+72>>2]=c[55024+(c[x>>2]<<2)>>2]}else{c[q+72>>2]=0}if((l|0)<=0){L=0;i=o;return L|0}n=(k|0)>0;z=q+56|0;v=b+168|0;w=b+176|0;x=b+172|0;y=b+180|0;A=q+52|0;E=q+36|0;C=q+48|0;B=q+44|0;D=q+40|0;H=0;while(1){F=H+j|0;tp(b,q,g,F);I=H+f|0;if(n){K=(da(c[d>>2]|0,I)|0)+e|0;K=(c[u>>2]|0)+K|0;J=0;while(1){G=K+1|0;K=a[K]|0;do{if(m){L=J+g|0;s=18}else{L=J+g|0;if(vp(c[(c[p>>2]|0)+132>>2]|0,L,F)|0){s=18;break}c[t>>2]=(c[t>>2]|0)+1;if((c[(c[p>>2]|0)+136>>2]|0)!=0){c[D>>2]=(c[D>>2]|0)+1}a:do{switch(c[(c[b>>2]|0)+16>>2]|0){case 4:{c[B>>2]=(c[B>>2]|0)+4;break};case 1:{c[B>>2]=(c[B>>2]|0)+1;break};case 3:case 2:{c[B>>2]=(c[B>>2]|0)+3;break};case 0:{L=c[C>>2]>>1;c[C>>2]=L;if((L|0)!=0){break a}c[C>>2]=128;c[B>>2]=(c[B>>2]|0)+1;break};default:{}}}while(0);K=c[A>>2]|0;if((K|0)!=0){c[A>>2]=K+1}K=c[E>>2]|0;if((K|0)==0){break}c[E>>2]=K+1}}while(0);do{if((s|0)==18){s=0;Oe(d,J+e|0,I,r);h[z>>3]=+(K&255|0)/255.0;up(b,q);if((c[v>>2]|0)>(L|0)){c[v>>2]=L}if((c[w>>2]|0)<(L|0)){c[w>>2]=L}if((c[x>>2]|0)>(F|0)){c[x>>2]=F}if((c[y>>2]|0)>=(F|0)){break}c[y>>2]=F}}while(0);J=J+1|0;if((J|0)<(k|0)){K=G}else{break}}}H=H+1|0;if((H|0)>=(l|0)){p=0;break}}i=o;return p|0}if(y){N=M*255.0+.5;if(N<=0.0){N=+R(+N)}a[q+25|0]=~~N}a[q+24|0]=0;do{if(M==1.0){if((c[w>>2]|0)!=0){s=48;break}if((a[v+141|0]&1)!=0){s=48;break}a[q+64|0]=1;w=c[b>>2]|0;c[q+68>>2]=c[53872+(c[w+16>>2]<<2)>>2]}else{s=48}}while(0);do{if((s|0)==48){a[q+64|0]=0;w=c[b>>2]|0;u=c[w+16>>2]|0;if((c[v+60>>2]|0)==0){c[q+68>>2]=c[53896+(u<<2)>>2];break}else{c[q+68>>2]=c[53920+(u<<2)>>2];break}}}while(0);if(n){c[q+72>>2]=c[55024+(c[w+16>>2]<<2)>>2]}else{c[q+72>>2]=0}if((l|0)<=0){L=0;i=o;return L|0}u=(k|0)>0;w=b+168|0;n=b+176|0;x=b+172|0;y=b+180|0;A=q+52|0;z=q+36|0;C=q+48|0;B=q+44|0;v=q+40|0;G=0;while(1){F=G+j|0;tp(b,q,g,F);if(u){E=G+f|0;D=0;do{do{if(m){H=D+g|0;s=61}else{H=D+g|0;if(vp(c[(c[p>>2]|0)+132>>2]|0,H,F)|0){s=61;break}c[t>>2]=(c[t>>2]|0)+1;if((c[(c[p>>2]|0)+136>>2]|0)!=0){c[v>>2]=(c[v>>2]|0)+1}b:do{switch(c[(c[b>>2]|0)+16>>2]|0){case 1:{c[B>>2]=(c[B>>2]|0)+1;break};case 3:case 2:{c[B>>2]=(c[B>>2]|0)+3;break};case 0:{L=c[C>>2]>>1;c[C>>2]=L;if((L|0)!=0){break b}c[C>>2]=128;c[B>>2]=(c[B>>2]|0)+1;break};case 4:{c[B>>2]=(c[B>>2]|0)+4;break};default:{}}}while(0);H=c[A>>2]|0;if((H|0)!=0){c[A>>2]=H+1}H=c[z>>2]|0;if((H|0)==0){break}c[z>>2]=H+1}}while(0);do{if((s|0)==61){s=0;Oe(d,D+e|0,E,r);up(b,q);if((c[w>>2]|0)>(H|0)){c[w>>2]=H}if((c[n>>2]|0)<(H|0)){c[n>>2]=H}if((c[x>>2]|0)>(F|0)){c[x>>2]=F}if((c[y>>2]|0)>=(F|0)){break}c[y>>2]=F}}while(0);D=D+1|0;}while((D|0)<(k|0))}G=G+1|0;if((G|0)>=(l|0)){p=0;break}}i=o;return p|0}function Ap(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;f=i;g=i;i=i+8|0;m=c[b>>2]|0;if((c[m+24>>2]|0)==0){Qe(-1,54192,g);i=f;return}a:do{switch(c[m+16>>2]|0){case 3:case 2:{g=a[e]|0;h=a[e+1|0]|0;l=a[e+2|0]|0;if((c[m+4>>2]|0)<=0){break a}e=g&255;j=h&255;k=l&255;o=m;m=0;while(1){n=c[o>>2]|0;if((n|0)>0){q=da(n,m)|0;n=(c[o+20>>2]|0)+(da(c[o+12>>2]|0,m)|0)|0;q=(c[o+24>>2]|0)+q|0;p=0;while(1){o=q+1|0;r=a[q]|0;q=r&255;if(r<<24>>24==0){a[n]=g;a[n+1|0]=h;a[n+2|0]=l}else if(r<<24>>24!=-1){s=~r&255;t=da(s,e)|0;t=(da(d[n]|0,q)|0)+t|0;a[n]=(t+128+(t>>>8)|0)>>>8;t=da(s,j)|0;r=n+1|0;t=(da(d[r]|0,q)|0)+t|0;a[r]=(t+128+(t>>>8)|0)>>>8;s=da(s,k)|0;r=n+2|0;q=(da(d[r]|0,q)|0)+s|0;a[r]=(q+128+(q>>>8)|0)>>>8}p=p+1|0;q=c[b>>2]|0;if((p|0)<(c[q>>2]|0)){n=n+3|0;q=o}else{o=q;break}}}m=m+1|0;if((m|0)>=(c[o+4>>2]|0)){m=o;break}}break};case 1:{if((c[m+4>>2]|0)<=0){break a}g=d[e]|0;h=0;do{e=c[m>>2]|0;if((e|0)>0){j=da(e,h)|0;e=(c[m+20>>2]|0)+(da(c[m+12>>2]|0,h)|0)|0;j=(c[m+24>>2]|0)+j|0;k=0;while(1){t=a[j]|0;m=da(~t&255,g)|0;m=(da(d[e]|0,t&255)|0)+m|0;a[e]=(m+128+(m>>>8)|0)>>>8;k=k+1|0;m=c[b>>2]|0;if((k|0)<(c[m>>2]|0)){j=j+1|0;e=e+1|0}else{break}}}h=h+1|0;}while((h|0)<(c[m+4>>2]|0));break};case 0:{if((c[m+4>>2]|0)<=0){break a}g=d[e]|0;h=0;do{e=c[m>>2]|0;if((e|0)>0){j=da(e,h)|0;k=128;e=(c[m+20>>2]|0)+(da(c[m+12>>2]|0,h)|0)|0;j=(c[m+24>>2]|0)+j|0;l=0;while(1){t=a[j]|0;m=d[e]|0;t=(da(((m&k|0)!=0)<<31>>31&255,t&255)|0)+(da(~t&255,g)|0)|0;if(((t+128+(t>>>8)|0)>>>8&255)<<24>>24<0){m=m|k}else{m=m&(k^255)}a[e]=m;k=k>>1;n=(k|0)==0;l=l+1|0;m=c[b>>2]|0;if((l|0)<(c[m>>2]|0)){k=n?128:k;e=n?e+1|0:e;j=j+1|0}else{break}}}h=h+1|0;}while((h|0)<(c[m+4>>2]|0));break};case 4:{g=a[e]|0;h=a[e+1|0]|0;k=a[e+2|0]|0;if((c[m+4>>2]|0)<=0){break a}l=g&255;e=h&255;j=k&255;o=m;m=0;while(1){n=c[o>>2]|0;if((n|0)>0){q=da(n,m)|0;n=(c[o+20>>2]|0)+(da(c[o+12>>2]|0,m)|0)|0;q=(c[o+24>>2]|0)+q|0;p=0;while(1){o=q+1|0;q=a[q]|0;r=q&255;if(q<<24>>24==0){a[n]=g;a[n+1|0]=h;a[n+2|0]=k}else if(q<<24>>24!=-1){s=~q&255;q=da(s,l)|0;q=(da(d[n]|0,r)|0)+q|0;a[n]=(q+128+(q>>>8)|0)>>>8;q=da(s,e)|0;t=n+1|0;q=(da(d[t]|0,r)|0)+q|0;a[t]=(q+128+(q>>>8)|0)>>>8;s=da(s,j)|0;t=n+2|0;s=(da(d[t]|0,r)|0)+s|0;a[t]=(s+128+(s>>>8)|0)>>>8}a[n+3|0]=-1;p=p+1|0;q=c[b>>2]|0;if((p|0)<(c[q>>2]|0)){n=n+4|0;q=o}else{o=q;break}}}m=m+1|0;if((m|0)>=(c[o+4>>2]|0)){m=o;break}}break};default:{}}}while(0);bX(c[m+24>>2]|0,-1,da(c[m+4>>2]|0,c[m>>2]|0)|0)|0;i=f;return}function Bp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,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,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0.0,_=0.0,$=0.0,aa=0,ba=0,ca=0.0,ea=0.0,fa=0.0,ga=0,ha=0.0,ia=0,ja=0.0,ka=0,la=0,ma=0.0,na=0.0,oa=0,pa=0.0,qa=0,ra=0,sa=0.0,ta=0.0,ua=0.0,va=0,wa=0;j=i;r=i;i=i+24|0;p=r;n=i;i=i+24|0;q=n;w=i;i=i+16|0;u=w;y=i;i=i+16|0;x=y;m=i;i=i+80|0;f=m;g=i;i=i+8|0;v=i;i=i+24|0;t=v;bX(r|0,0,24)|0;bX(n|0,0,24)|0;bX(w|0,0,12)|0;bX(y|0,0,12)|0;C=c[b>>2]|0;l=c[C>>2]|0;o=c[b+4>>2]|0;s=c[o+132>>2]|0;H=C+20|0;B=c[H>>2]|0;I=C+24|0;A=c[I>>2]|0;D=C+16|0;z=c[D>>2]|0;E=(A|0)!=0;G=C+12|0;e=c[G>>2]|0;if((z|0)==1){k=z}else if((z|0)==4){k=z}else if((z|0)==2){k=3}else if((z|0)==3){k=z}else{k=0}Z=+h[o+64>>3];c[m>>2]=0;c[f+4>>2]=0;m=o+136|0;J=c[m>>2]|0;if((J|0)!=0){c[f+40>>2]=c[J+20>>2]}switch(c[D>>2]|0){case 3:case 2:{c[f+44>>2]=c[H>>2];break};case 4:{c[f+44>>2]=c[H>>2];break};case 1:{c[f+44>>2]=c[H>>2];break};case 0:{c[f+44>>2]=c[H>>2];c[f+48>>2]=128;break};default:{}}c[f+52>>2]=c[I>>2];H=o+141|0;do{if((a[H]&1)==0){F=16}else{I=c[b+16>>2]|0;J=c[I+24>>2]|0;if((J|0)==0){F=16;break}wa=da(c[I>>2]|0,c[b+24>>2]|0)|0;c[f+36>>2]=J+((c[b+20>>2]|0)+wa)}}while(0);if((F|0)==16){c[f+36>>2]=0}c[f+8>>2]=0;c[f+28>>2]=g;h[f+16>>3]=Z;if((c[m>>2]|0)==0){_=Z*255.0+.5;if(_<=0.0){_=+R(+_)}a[f+25|0]=~~_}a[f+24|0]=0;do{if(Z==1.0){if((c[m>>2]|0)!=0){F=25;break}if((a[H]&1)!=0){F=25;break}a[f+64|0]=1;c[f+68>>2]=c[53872+(c[D>>2]<<2)>>2];H=1}else{F=25}}while(0);do{if((F|0)==25){a[f+64|0]=0;m=c[D>>2]|0;if((c[o+60>>2]|0)==0){c[f+68>>2]=c[53896+(m<<2)>>2];H=0;break}else{c[f+68>>2]=c[53920+(m<<2)>>2];H=0;break}}}while(0);c[f+72>>2]=0;m=b+188|0;do{if((a[m]&1)==0){if(H<<24>>24==0){F=33;break}if((c[o+60>>2]|0)==0){D=1}else{F=33}}else{if((c[b+8>>2]|0)==0){wa=0;i=j;return wa|0}else{c[b+12>>2]=-1;F=33;break}}}while(0);do{if((F|0)==33){E=FWFW(12)|0;q=b+4|0;y=c[q>>2]|0;Pq(g,d,y,+h[y+104>>3],1);Vq(g);Wq(g);d=FW(52)|0;$q(d,g,0);br(d,u,t,s,m);s=Jp(c[(c[q>>2]|0)+132>>2]|0,c[u>>2]|0,c[t>>2]|0,c[s>>2]|0,c[m>>2]|0)|0;do{if((s|0)!=1){y=c[t>>2]|0;u=c[q>>2]|0;w=u+132|0;x=c[w>>2]|0;v=c[x+44>>2]|0;if((y|0)<(v|0)){c[t>>2]=v;x=c[w>>2]|0}else{v=y}w=c[x+52>>2]|0;if((c[m>>2]|0)>(w|0)){c[m>>2]=w}jp(b,j,0,v,f,0,+h[u+72>>3],(a[b+188|0]&1)!=0&(e^1),0);e=c[t>>2]|0;if((e|0)>(c[m>>2]|0)){break}t=(s|0)==0;while(1){hr(d,c[n>>2]|0,o,p,e);if(!t){Lp(c[(c[q>>2]|0)+132>>2]|0,c[n>>2]|0,o,p,e)}pp(b,j,c[k>>2]|0,c[l>>2]|0,e);if((e|0)<(c[m>>2]|0)){e=e+1|0}else{break}}}}while(0);c[b+184>>2]=s;if((d|0)!=0){ar(d);HW(d)}if((g|0)==0){y=0;i=r;return y|0}Uq(g);HW(g);y=0;i=r;return y|0}function Ep(b,d,e,f,g,j){b=b|0;d=+d;e=+e;f=+f;g=+g;j=j|0;var k=0,l=0.0,m=0;k=i;a[b]=j&1;j=b+8|0;if(d<f){h[j>>3]=d;h[b+24>>3]=f;l=f}else{h[j>>3]=f;h[b+24>>3]=d;l=d;d=f}j=b+16|0;if(e<g){h[j>>3]=e;h[b+32>>3]=g;f=g}else{h[j>>3]=g;h[b+32>>3]=e;f=e;e=g}if(d<=0.0){d=+R(+d)}c[b+40>>2]=~~d;if(e<=0.0){e=+R(+e)}c[b+44>>2]=~~e;if(l<=0.0){l=+R(+l)}c[b+48>>2]=~~l;if(f>0.0){d=f;m=~~d;j=b+52|0;c[j>>2]=m;j=b+56|0;bX(j|0,0,20)|0;i=k;return}d=+R(+f);j=~~d;m=b+52|0;c[m>>2]=j;m=b+56|0;bX(m|0,0,20)|0;i=k;return}function Fp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0;e=i;a[b]=a[d]&1;h[b+8>>3]=+h[d+8>>3];h[b+16>>3]=+h[d+16>>3];h[b+24>>3]=+h[d+24>>3];h[b+32>>3]=+h[d+32>>3];c[b+40>>2]=c[d+40>>2];c[b+44>>2]=c[d+44>>2];c[b+48>>2]=c[d+48>>2];c[b+52>>2]=c[d+52>>2];j=b+68|0;c[j>>2]=c[d+68>>2];g=c[d+72>>2]|0;l=b+72|0;c[l>>2]=g;f=b+56|0;c[f>>2]=ye(g,4)|0;g=b+60|0;c[g>>2]=ye(c[l>>2]|0,1)|0;b=b+64|0;c[b>>2]=ye(c[l>>2]|0,4)|0;if((c[j>>2]|0)<=0){i=e;return}k=d+56|0;d=d+60|0;l=0;do{n=c[(c[k>>2]|0)+(l<<2)>>2]|0;m=FW(12)|0;Tq(m,n);c[(c[f>>2]|0)+(l<<2)>>2]=m;a[(c[g>>2]|0)+l|0]=a[(c[d>>2]|0)+l|0]|0;m=FW(52)|0;$q(m,c[(c[f>>2]|0)+(l<<2)>>2]|0,(a[(c[g>>2]|0)+l|0]&1)!=0);c[(c[b>>2]|0)+(l<<2)>>2]=m;l=l+1|0;}while((l|0)<(c[j>>2]|0));i=e;return}function Gp(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;d=i;e=a+68|0;f=a+56|0;h=c[f>>2]|0;b=a+64|0;if((c[e>>2]|0)>0){g=0;do{h=c[h+(g<<2)>>2]|0;if((h|0)!=0){Uq(h);HW(h)}h=c[(c[b>>2]|0)+(g<<2)>>2]|0;if((h|0)!=0){ar(h);HW(h)}g=g+1|0;h=c[f>>2]|0}while((g|0)<(c[e>>2]|0))}Fe(h);Fe(c[a+60>>2]|0);Fe(c[b>>2]|0);i=d;return}function Hp(a,b,d,e,f){a=a|0;b=+b;d=+d;e=+e;f=+f;var g=0,j=0,k=0.0;g=i;j=a+8|0;k=+h[j>>3];do{if(b<e){if(k<b){h[j>>3]=b;if(b<=0.0){b=+R(+b)}c[a+40>>2]=~~b}j=a+24|0;if(+h[j>>3]<=e){break}h[j>>3]=e;if(e<=0.0){e=+R(+e)}c[a+48>>2]=~~e}else{if(k<e){h[j>>3]=e;if(e<=0.0){e=+R(+e)}c[a+40>>2]=~~e}j=a+24|0;if(+h[j>>3]<=b){break}h[j>>3]=b;if(b<=0.0){b=+R(+b)}c[a+48>>2]=~~b}}while(0);j=a+16|0;e=+h[j>>3];if(d<f){if(e<d){h[j>>3]=d;if(d<=0.0){d=+R(+d)}c[a+44>>2]=~~d}j=a+32|0;if(+h[j>>3]<=f){i=g;return 0}h[j>>3]=f;if(f<=0.0){f=+R(+f)}c[a+52>>2]=~~f;i=g;return 0}else{if(e<f){h[j>>3]=f;if(f<=0.0){f=+R(+f)}c[a+44>>2]=~~f}j=a+32|0;if(+h[j>>3]<=d){i=g;return 0}h[j>>3]=d;if(d<=0.0){d=+R(+d)}c[a+52>>2]=~~d;i=g;return 0}return 0}
7317 function Ip(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=+f;g=g|0;var j=0,k=0,l=0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0,s=0;j=i;k=FW(12)|0;Pq(k,d,e,f,1);e=c[k+4>>2]|0;if((e|0)==4){l=8}else if((e|0)==0){m=+h[b+8>>3]+-1.0;h[b+24>>3]=m;f=+h[b+16>>3]+-1.0;h[b+32>>3]=f;if(m<=0.0){m=+R(+m)}c[b+48>>2]=~~m;if(f<=0.0){f=+R(+f)}c[b+52>>2]=~~f;if((k|0)==0){i=j;return 0}Uq(k);HW(k);i=j;return 0}do{if((l|0)==8){e=c[k>>2]|0;f=+h[e>>3];m=+h[e+16>>3];do{if(f==m){if(f!=+h[e+56>>3]){l=20;break}if(f!=+h[e+184>>3]){l=20;break}o=+h[e+112>>3];if(o!=+h[e+128>>3]){l=20;break}if(o!=+h[e+72>>3]){l=20;break}if(o!=+h[e+168>>3]){l=20;break}n=+h[e+64>>3];if(n!=+h[e+80>>3]){l=20;break}if(n!=+h[e+24>>3]){l=20;break}p=+h[e+120>>3];if(n!=p){l=20;break}q=+h[e+176>>3];if(q!=+h[e+192>>3]){l=20;break}n=+h[e+8>>3];if(q!=n){l=20;break}if(q!=+h[e+136>>3]){l=20}}else{l=20}}while(0);if((l|0)==20){n=+h[e+8>>3];if(n!=+h[e+24>>3]){break}if(n!=+h[e+64>>3]){break}if(n!=+h[e+192>>3]){break}p=+h[e+120>>3];if(p!=+h[e+136>>3]){break}if(p!=+h[e+80>>3]){break}if(p!=+h[e+176>>3]){break}q=+h[e+56>>3];if(!(q==+h[e+72>>3]&q==m)){break}o=+h[e+112>>3];if(q!=o){break}m=+h[e+168>>3];if(!(m==+h[e+184>>3]&m==f)){break}if(m!=+h[e+128>>3]){break}}Hp(b,f,n,o,p)|0;if((k|0)==0){i=j;return 0}Uq(k);HW(k);i=j;return 0}}while(0);l=b+68|0;s=c[l>>2]|0;d=s+1|0;e=b+72|0;r=c[e>>2]|0;if((s|0)>=(r|0)){if((r|0)==0){c[e>>2]=32;r=32}if((r|0)<(d|0)){do{r=r<<1;}while((r|0)<(d|0));c[e>>2]=r}s=b+56|0;c[s>>2]=Ce(c[s>>2]|0,r,4)|0;s=b+60|0;c[s>>2]=Ce(c[s>>2]|0,c[e>>2]|0,1)|0;s=b+64|0;c[s>>2]=Ce(c[s>>2]|0,c[e>>2]|0,4)|0}if((a[b]&1)!=0){Vq(k)}Wq(k);c[(c[b+56>>2]|0)+(c[l>>2]<<2)>>2]=k;a[(c[b+60>>2]|0)+(c[l>>2]|0)|0]=g&1;s=FWFW(32)|0;ie(g,d);c[b+4>>2]=g;a[b+20|0]=e&1;i=f;return}function cq(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;a[b]=0;c[b+8>>2]=d;c[b+12>>2]=e;a[b+20|0]=f&1;i=i;return}function dq(a){a=a|0;c[a>>2]=54808;i=i;return}function eq(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function fq(a){a=a|0;i=i;return}function gq(a){a=a|0;var b=0;b=i;bX(a|0,0,32)|0;i=b;return}function hq(a){a=a|0;var b=0;b=i;Fe(c[a>>2]|0);Fe(c[a+4>>2]|0);Fe(c[a+20>>2]|0);i=b;return}function iq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;g=b+8|0;j=c[g>>2]|0;c[b+16>>2]=(c[d+16>>2]|0)+j;f=d+8|0;k=c[f>>2]|0;j=j+k|0;h=b+12|0;l=c[h>>2]|0;if((j|0)>(l|0)){if((l|0)==0){c[h>>2]=32;l=32}if((l|0)<(j|0)){do{l=l<<1;}while((l|0)<(j|0));c[h>>2]=l}c[b>>2]=Ce(c[b>>2]|0,l,16)|0;k=b+4|0;c[k>>2]=Ce(c[k>>2]|0,c[h>>2]|0,1)|0;k=c[f>>2]|0}if((k|0)<=0){i=e;return}l=d+4|0;k=b+4|0;h=c[g>>2]|0;j=0;do{$W((c[b>>2]|0)+(h<<4)|0,(c[d>>2]|0)+(j<<4)|0,16)|0;a[(c[k>>2]|0)+(c[g>>2]|0)|0]=a[(c[l>>2]|0)+j|0]|0;h=(c[g>>2]|0)+1|0;c[g>>2]=h;j=j+1|0;}while((j|0)<(c[f>>2]|0));i=e;return}function jq(b,d,e){b=b|0;d=+d;e=+e;var f=0,g=0,j=0,k=0,l=0,m=0,n=0;j=i;g=b+16|0;f=b+8|0;m=c[f>>2]|0;if((c[g>>2]|0)==(m+ -1|0)){n=3;i=j;return n|0}l=m+1|0;k=b+12|0;n=c[k>>2]|0;if((m|0)<(n|0)){k=b;b=b+4|0}else{if((n|0)==0){c[k>>2]=32;n=32}if((n|0)<(l|0)){do{n=n<<1;}while((n|0)<(l|0));c[k>>2]=n}c[b>>2]=Ce(c[b>>2]|0,n,16)|0;n=b+4|0;c[n>>2]=Ce(c[n>>2]|0,c[k>>2]|0,1)|0;m=c[f>>2]|0;k=b;b=n}h[(c[k>>2]|0)+(m<<4)>>3]=d;h[(c[k>>2]|0)+(c[f>>2]<<4)+8>>3]=e;a[(c[b>>2]|0)+(c[f>>2]|0)|0]=3;n=c[f>>2]|0;c[f>>2]=n+1;c[g>>2]=n;n=0;i=j;return n|0}function kq(b,d,e){b=b|0;d=+d;e=+e;var f=0,g=0,j=0,k=0,l=0,m=0,n=0;g=i;f=b+8|0;k=c[f>>2]|0;if((c[b+16>>2]|0)==(k|0)){n=1;i=g;return n|0}j=b+4|0;m=(c[j>>2]|0)+(k+ -1)|0;a[m]=a[m]&-3;m=c[f>>2]|0;l=m+1|0;k=b+12|0;n=c[k>>2]|0;if((m|0)>=(n|0)){if((n|0)==0){c[k>>2]=32;n=32}if((n|0)<(l|0)){do{n=n<<1;}while((n|0)<(l|0));c[k>>2]=n}c[b>>2]=Ce(c[b>>2]|0,n,16)|0;c[j>>2]=Ce(c[j>>2]|0,c[k>>2]|0,1)|0;m=c[f>>2]|0}h[(c[b>>2]|0)+(m<<4)>>3]=d;h[(c[b>>2]|0)+(c[f>>2]<<4)+8>>3]=e;a[(c[j>>2]|0)+(c[f>>2]|0)|0]=2;c[f>>2]=(c[f>>2]|0)+1;n=0;i=g;return n|0}function lq(b,d,e,f,g,j,k){b=b|0;d=+d;e=+e;f=+f;g=+g;j=+j;k=+k;var l=0,m=0,n=0,o=0,p=0,q=0,r=0;n=i;m=b+8|0;o=c[m>>2]|0;if((c[b+16>>2]|0)==(o|0)){r=1;i=n;return r|0}l=b+4|0;r=(c[l>>2]|0)+(o+ -1)|0;a[r]=a[r]&-3;r=c[m>>2]|0;p=r+3|0;o=b+12|0;q=c[o>>2]|0;if((p|0)>(q|0)){if((q|0)==0){c[o>>2]=32;q=32}if((q|0)<(p|0)){do{q=q<<1;}while((q|0)<(p|0));c[o>>2]=q}c[b>>2]=Ce(c[b>>2]|0,q,16)|0;c[l>>2]=Ce(c[l>>2]|0,c[o>>2]|0,1)|0;r=c[m>>2]|0}h[(c[b>>2]|0)+(r<<4)>>3]=d;h[(c[b>>2]|0)+(c[m>>2]<<4)+8>>3]=e;a[(c[l>>2]|0)+(c[m>>2]|0)|0]=8;r=(c[m>>2]|0)+1|0;c[m>>2]=r;h[(c[b>>2]|0)+(r<<4)>>3]=f;h[(c[b>>2]|0)+(c[m>>2]<<4)+8>>3]=g;a[(c[l>>2]|0)+(c[m>>2]|0)|0]=8;r=(c[m>>2]|0)+1|0;c[m>>2]=r;h[(c[b>>2]|0)+(r<<4)>>3]=j;h[(c[b>>2]|0)+(c[m>>2]<<4)+8>>3]=k;a[(c[l>>2]|0)+(c[m>>2]|0)|0]=2;c[m>>2]=(c[m>>2]|0)+1;r=0;i=n;return r|0}function mq(b){b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0.0;e=i;g=b+16|0;j=c[g>>2]|0;f=b+8|0;k=c[f>>2]|0;if((j|0)==(k|0)){l=1;i=e;return l|0}l=k+ -1|0;k=c[b>>2]|0;do{if((j|0)==(l|0)){m=+h[k+(j<<4)>>3];d=6}else{m=+h[k+(j<<4)>>3];if(+h[k+(l<<4)>>3]!=m){d=6;break}if(+h[k+(l<<4)+8>>3]!=+h[k+(j<<4)+8>>3]){d=6}}}while(0);if((d|0)==6){kq(b,m,+h[k+(j<<4)+8>>3])|0;j=c[g>>2]|0}l=b+4|0;k=(c[l>>2]|0)+j|0;a[k]=a[k]|4;l=(c[l>>2]|0)+((c[f>>2]|0)+ -1)|0;a[l]=a[l]|4;c[g>>2]=c[f>>2];l=0;i=e;return l|0}function nq(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;h=a+24|0;j=c[h>>2]|0;k=a+28|0;if((j|0)==(c[k>>2]|0)){l=(j|0)==0?8:j<<1;c[k>>2]=l;j=a+20|0;k=Ce(c[j>>2]|0,l,16)|0;c[j>>2]=k;j=c[h>>2]|0}else{k=c[a+20>>2]|0}l=a+20|0;c[k+(j<<4)>>2]=b;c[(c[l>>2]|0)+(c[h>>2]<<4)+4>>2]=d;c[(c[l>>2]|0)+(c[h>>2]<<4)+8>>2]=e;c[(c[l>>2]|0)+(c[h>>2]<<4)+12>>2]=f;c[h>>2]=(c[h>>2]|0)+1;i=g;return}function oq(a,b,d){a=a|0;b=+b;d=+d;var e=0,f=0,g=0,j=0;e=i;f=a+8|0;if((c[f>>2]|0)<=0){i=e;return}g=0;do{j=(c[a>>2]|0)+(g<<4)|0;h[j>>3]=+h[j>>3]+b;j=(c[a>>2]|0)+(g<<4)+8|0;h[j>>3]=+h[j>>3]+d;g=g+1|0;}while((g|0)<(c[f>>2]|0));i=e;return}function pq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=a+8|0;f=c[g>>2]|0;if((c[a+16>>2]|0)==(f|0)){d=0;i=e;return d|0}h[b>>3]=+h[(c[a>>2]|0)+(f+ -1<<4)>>3];h[d>>3]=+h[(c[a>>2]|0)+((c[g>>2]|0)+ -1<<4)+8>>3];d=1;i=e;return d|0}function qq(a){a=a|0;c[a>>2]=54864;i=i;return}function rq(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function sq(a){a=a|0;i=i;return}function tq(b,d){b=b|0;d=d|0;c[b>>2]=54896;a[b+4|0]=a[d]|0;a[b+5|0]=a[d+1|0]|0;a[b+6|0]=a[d+2|0]|0;i=i;return}function uq(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function vq(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;a[e]=a[b+4|0]|0;a[e+1|0]=a[b+5|0]|0;a[e+2|0]=a[b+6|0]|0;i=i;return-1}function wq(b){b=b|0;var d=0,e=0;e=i;d=FW(8)|0;c[d>>2]=54896;a[d+4|0]=a[b+4|0]|0;a[d+5|0]=a[b+5|0]|0;a[d+6|0]=a[b+6|0]|0;i=e;return d|0}function xq(a){a=a|0;i=i;return-1}function yq(a,b){a=a|0;b=b|0;var d=0;d=i;c[a>>2]=(b|0)!=0?b:54984;bX(a+4|0,0,10)|0;i=d;return}function zq(b){b=b|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0.0;e=i;j=c[b>>2]|0;f=c[j>>2]|0;if((f|0)==0){g=b+8|0;f=j+4|0;k=1;while(1){c[g>>2]=k;if((k|0)<(c[f>>2]|0)){k=k<<1}else{break}}c[b+4>>2]=ye(da(k,k)|0,1)|0;s=(c[g>>2]|0)/2|0;Aq(b,s,s,1,s,1)}else if((f|0)==2){f=c[j+4>>2]|0;k=j+8|0;g=c[k>>2]<<1;s=(f|0)<(g|0)?g:f;c[b+8>>2]=s;c[b+4>>2]=ye(da(s,s)|0,1)|0;Cq(b,c[k>>2]|0)}else if((f|0)==1){f=c[j+4>>2]&-2;s=(f|0)<2?2:f;c[b+8>>2]=s;c[b+4>>2]=ye(da(s,s)|0,1)|0;Bq(b)}g=b+12|0;a[g]=-1;f=b+13|0;a[f]=0;t=+h[j+24>>3]*255.0+.5;if(t<=0.0){t=+R(+t)}k=~~t;k=(k&255|0)==0?1:k&255;t=+h[j+32>>3]*255.0+.5;if(t<=0.0){t=+R(+t)}l=~~t;l=(l|0)>255?-1:l&255;m=b+8|0;s=c[m>>2]|0;if((da(s,s)|0)==0){i=e;return}b=b+4|0;q=j+16|0;n=k&255;j=l&255;p=0;do{o=(c[b>>2]|0)+p|0;t=+U(+(+(d[o]|0)/255.0),+(+h[q>>3]))*255.0+.5;if(t<=0.0){t=+R(+t)}s=~~t;r=s&255;if(r>>>0<n>>>0){r=k}else{r=r>>>0<j>>>0?s&255:l}a[o]=r;do{if((r&255)<(d[g]|0)){a[g]=r}else{if((r&255)<=(d[f]|0)){break}a[f]=r}}while(0);p=p+1|0;s=c[m>>2]|0;}while((p|0)<(da(s,s)|0));i=e;return}function Aq(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=i;k=b+8|0;if((g|0)==0){n=c[k>>2]|0}else{while(1){m=(g|0)/2|0;l=h<<2;Aq(b,d,e,f,m,l);n=g+d|0;p=c[k>>2]|0;o=g+e|0;Aq(b,(n|0)%(p|0)|0,(o|0)%(p|0)|0,h+f|0,m,l);Aq(b,(n|0)%(c[k>>2]|0)|0,e,(h<<1)+f|0,m,l);n=c[k>>2]|0;d=((g<<1)+d|0)%(n|0)|0;e=(o|0)%(n|0)|0;f=(h*3|0)+f|0;if((g+1|0)>>>0<3){break}else{h=l;g=m}}}o=(((f*254|0)+ -254|0)/((da(n,n)|0)+ -1|0)|0)+1&255;p=(da(n,d)|0)+e|0;a[(c[b+4>>2]|0)+p|0]=o;i=j;return}function Bq(b){b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0.0,t=0,u=0,v=0.0,w=0.0,x=0.0,y=0.0;f=i;d=b+8|0;l=c[d>>2]|0;e=l>>1;if((l|0)>0){g=b+4|0;j=0;do{if((l|0)>0){k=0;while(1){l=(da(l,j)|0)+k|0;a[(c[g>>2]|0)+l|0]=0;k=k+1|0;l=c[d>>2]|0;if((k|0)<(l|0)){}else{break}}}j=j+1|0;}while((j|0)<(l|0))}g=ye(da(l,e)|0,8)|0;j=(e|0)>0;do{if(j){n=e+ -1|0;w=+(e|0);m=0;do{v=+(m|0)+.5;l=da(m,e)|0;s=v-w;k=0;do{x=+(k|0)+.5;if((k+m|0)<(n|0)){y=v}else{x=x-w;y=s}h[g+(k+l<<3)>>3]=y*y+x*x;k=k+1|0;}while((k|0)<(e|0));m=m+1|0;}while((m|0)<(e|0));if(!j){break}s=+(e|0);k=0;do{w=+(k|0)+.5;v=w-s;l=da(k+e|0,e)|0;m=0;do{x=+(m|0)+.5;if((m|0)<(k|0)){y=v}else{x=x-s;y=w}h[g+(m+l<<3)>>3]=y*y+x*x;m=m+1|0;}while((m|0)<(e|0));k=k+1|0;}while((k|0)<(e|0))}}while(0);a[b+12|0]=1;a[b+13|0]=0;m=c[d>>2]|0;if((da(m,e)|0)<=0){Fe(g);i=f;return}k=b+4|0;b=e<<1;l=0;u=0;r=0;do{if(!((m|0)<1|j^1)){s=-1.0;q=0;do{n=da(m,q)|0;p=c[k>>2]|0;o=da(q,e)|0;t=0;do{do{if((a[p+(n+t)|0]|0)==0){v=+h[g+(t+o<<3)>>3];if(v<=s){break}s=v;u=t;r=q}}while(0);t=t+1|0;}while((t|0)<(e|0));q=q+1|0;}while((q|0)<(m|0))}t=((l*508|0)/((da(b,m)|0)+ -1|0)|0)+1&255;n=(da(m,r)|0)+u|0;a[(c[k>>2]|0)+n|0]=t;n=c[d>>2]|0;m=(((l<<1|1)*254|0)/((da(b,n)|0)+ -1|0)|0)+1&255;if((r|0)<(e|0)){t=u+e+(da(n,r+e|0)|0)|0;a[(c[k>>2]|0)+t|0]=m}else{t=u+e+(da(n,r-e|0)|0)|0;a[(c[k>>2]|0)+t|0]=m}l=l+1|0;m=c[d>>2]|0;}while((l|0)<(da(m,e)|0));Fe(g);i=f;return}function Cq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;f=i;Eb(123);g=b+8|0;e=c[g>>2]|0;e=ye(da(e,e)|0,12)|0;k=c[g>>2]|0;if((k|0)>0){j=0;h=0;do{if((k|0)>0){k=0;while(1){c[e+(j*12|0)>>2]=k;c[e+(j*12|0)+4>>2]=h;j=j+1|0;l=k+1|0;k=c[g>>2]|0;if((l|0)<(k|0)){k=l}else{break}}}h=h+1|0;}while((h|0)<(k|0))}j=da(k,k)|0;if((j|0)!=0){h=0;do{w=~~(+(j-h|0)*+(kb()|0)*4.656612873077393e-10)+h|0;r=e+(h*12|0)|0;t=c[r>>2]|0;s=e+(h*12|0)+4|0;v=c[s>>2]|0;u=e+(w*12|0)|0;c[r>>2]=c[u>>2];w=e+(w*12|0)+4|0;c[s>>2]=c[w>>2];c[u>>2]=t;c[w>>2]=v;h=h+1|0;w=c[g>>2]|0;j=da(w,w)|0;}while((h|0)<(j|0))}m=d+1|0;k=ye(da(m,m)|0,1)|0;l=(d|0)<0;if(!l){n=da(d,d)|0;o=0;while(1){j=da(o,m)|0;h=0;while(1){a[k+(h+j)|0]=(da(h,o)|0)<=(n|0)|0;if((h|0)<(d|0)){h=h+1|0}else{break}}if((o|0)<(d|0)){o=o+1|0}else{break}}}n=c[g>>2]|0;n=ye(da(n,n)|0,1)|0;o=c[g>>2]|0;if((o|0)>0){h=0;do{if((o|0)>0){j=0;while(1){a[n+((da(o,h)|0)+j)|0]=0;j=j+1|0;o=c[g>>2]|0;if((j|0)<(o|0)){}else{break}}}h=h+1|0;}while((h|0)<(o|0))}j=ye(32,12)|0;s=c[g>>2]|0;if((da(s,s)|0)==0){h=0}else{h=0;p=32;o=0;while(1){t=e+(o*12|0)|0;r=c[t>>2]|0;q=c[e+(o*12|0)+4>>2]|0;if((a[n+((da(q,s)|0)+r)|0]|0)==0){if((h|0)==(p|0)){w=h<<1;p=w;j=Ce(j,w,12)|0}s=h+1|0;$W(j+(h*12|0)|0,t|0,12)|0;a:do{if(!l){h=0;while(1){t=c[g>>2]|0;u=(h+q|0)%(t|0)|0;t=(q-h+t|0)%(t|0)|0;w=da(h,m)|0;v=0;while(1){if((a[k+(v+w)|0]|0)!=0){z=c[g>>2]|0;y=(v+r|0)%(z|0)|0;x=(r-v+z|0)%(z|0)|0;a[n+((da(z,u)|0)+y)|0]=1;a[n+((da(c[g>>2]|0,u)|0)+x)|0]=1;a[n+((da(c[g>>2]|0,t)|0)+y)|0]=1;a[n+((da(c[g>>2]|0,t)|0)+x)|0]=1}if((v|0)<(d|0)){v=v+1|0}else{break}}if((h|0)>=(d|0)){break a}h=h+1|0}}}while(0);q=c[g>>2]|0;h=s}else{q=s}o=o+1|0;if((o|0)<(da(q,q)|0)){s=q}else{break}}}Fe(k);Fe(n);k=c[g>>2]|0;k=ye(da(k,k)|0,4)|0;d=c[g>>2]|0;d=ye(da(d,d)|0,4)|0;o=c[g>>2]|0;if((o|0)>0){l=j+4|0;m=(h|0)>1;n=0;do{if((o|0)>0){p=0;do{q=(c[j>>2]|0)-p|0;q=(q|0)>-1?q:0-q|0;r=o-q|0;q=(q|0)<(r|0)?q:r;r=(c[l>>2]|0)-n|0;s=(r|0)>-1?r:0-r|0;r=o-s|0;r=(s|0)<(r|0)?s:r;r=(da(r,r)|0)+(da(q,q)|0)|0;if(m){s=0;q=1;while(1){t=(c[j+(q*12|0)>>2]|0)-p|0;u=(t|0)>-1?t:0-t|0;t=o-u|0;t=(u|0)<(t|0)?u:t;u=(c[j+(q*12|0)+4>>2]|0)-n|0;u=(u|0)>-1?u:0-u|0;v=o-u|0;u=(u|0)<(v|0)?u:v;t=(da(u,u)|0)+(da(t,t)|0)|0;u=(t|0)<(r|0);s=u?q:s;r=u?t:r;q=q+1|0;if((q|0)<(h|0)){}else{break}}}else{s=0}c[k+((da(o,n)|0)+p<<2)>>2]=s;c[d+((da(c[g>>2]|0,n)|0)+p<<2)>>2]=r;p=p+1|0;o=c[g>>2]|0;}while((p|0)<(o|0))}n=n+1|0;}while((n|0)<(o|0))}if((h|0)<=0){Fe(e);Fe(k);Fe(d);Fe(j);i=f;return}b=b+4|0;l=0;while(1){do{if((o|0)>0){m=j+(l*12|0)|0;n=j+(l*12|0)+4|0;r=0;p=0;do{if((o|0)>0){q=0;do{if((c[k+((da(o,p)|0)+q<<2)>>2]|0)==(l|0)){c[e+(r*12|0)>>2]=q;c[e+(r*12|0)+4>>2]=p;o=(c[m>>2]|0)-q|0;s=(o|0)>-1?o:0-o|0;o=c[g>>2]|0;t=o-s|0;s=(s|0)<(t|0)?s:t;t=(c[n>>2]|0)-p|0;t=(t|0)>-1?t:0-t|0;o=o-t|0;o=(t|0)<(o|0)?t:o;c[e+(r*12|0)+8>>2]=(da(o,o)|0)+(da(s,s)|0);o=c[g>>2]|0;r=r+1|0}q=q+1|0;}while((q|0)<(o|0))}p=p+1|0;}while((p|0)<(o|0));pb(e|0,r|0,12,183);if((r|0)<=0){break}m=r+ -1|0;n=0;do{z=da(c[g>>2]|0,c[e+(n*12|0)+4>>2]|0)|0;a[(c[b>>2]|0)+(z+(c[e+(n*12|0)>>2]|0))|0]=255-((n*254|0)/(m|0)|0);n=n+1|0;}while((n|0)<(r|0))}else{pb(e|0,0,12,183)}}while(0);l=l+1|0;if((l|0)>=(h|0)){break}o=c[g>>2]|0}Fe(e);Fe(k);Fe(d);Fe(j);i=f;return}function Dq(a,b){a=a|0;b=b|0;i=i;return(c[a+8>>2]|0)-(c[b+8>>2]|0)|0}function Eq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;c[b>>2]=c[d>>2];g=c[d+8>>2]|0;f=b+8|0;c[f>>2]=g;g=ye(da(g,g)|0,1)|0;c[b+4>>2]=g;f=c[f>>2]|0;$W(g|0,c[d+4>>2]|0,da(f,f)|0)|0;a[b+12|0]=a[d+12|0]|0;a[b+13|0]=a[d+13|0]|0;i=e;return}function Fq(a){a=a|0;var b=0;b=i;Fe(c[a+4>>2]|0);i=b;return}function Gq(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0;g=i;h=a+4|0;if((c[h>>2]|0)==0){zq(a)}if((d[a+12|0]|0)>(f&255)){b=0;i=g;return b|0}if((d[a+13|0]|0)<=(f&255)){b=1;i=g;return b|0}a=c[a+8>>2]|0;b=(b|0)%(a|0)|0;e=(e|0)%(a|0)|0;b=(da((e|0)<0?0-e|0:e,a)|0)+((b|0)<0?0-b|0:b)|0;b=(d[(c[h>>2]|0)+b|0]|0)<=(f&255)|0;i=g;return b|0}function Hq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var j=0,k=0,l=0;j=i;k=i;i=i+8|0;l=k;h[b>>3]=1.0;bX(b+8|0,0,16)|0;h[b+24>>3]=1.0;bX(b+32|0,0,16)|0;c[k>>2]=0;k=FW(8)|0;tq(k,l);c[b+48>>2]=k;k=FW(8)|0;tq(k,l);c[b+52>>2]=k;k=FW(16)|0;yq(k,g);c[b+56>>2]=k;c[b+60>>2]=0;h[b+64>>3]=1.0;h[b+72>>3]=1.0;bX(b+80|0,0,16)|0;h[b+96>>3]=10.0;h[b+104>>3]=1.0;bX(b+112|0,0,17)|0;g=FW(80)|0;Ep(g,0.0,0.0,+(d|0)+-.001,+(e|0)+-.001,f);c[b+132>>2]=g;c[b+136>>2]=0;a[b+140|0]=0;a[b+141|0]=0;c[b+144>>2]=0;i=j;return}function Iq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var j=0,k=0,l=0;j=i;k=i;i=i+8|0;l=k;h[b>>3]=1.0;bX(b+8|0,0,16)|0;h[b+24>>3]=1.0;bX(b+32|0,0,16)|0;c[k>>2]=0;k=FW(8)|0;tq(k,l);c[b+48>>2]=k;k=FW(8)|0;tq(k,l);c[b+52>>2]=k;k=FW(16)|0;Eq(k,g);c[b+56>>2]=k;c[b+60>>2]=0;h[b+64>>3]=1.0;h[b+72>>3]=1.0;bX(b+80|0,0,16)|0;h[b+96>>3]=10.0;h[b+104>>3]=1.0;bX(b+112|0,0,17)|0;g=FW(80)|0;Ep(g,0.0,0.0,+(d|0)+-.001,+(e|0)+-.001,f);c[b+132>>2]=g;c[b+136>>2]=0;a[b+140|0]=0;a[b+141|0]=0;c[b+144>>2]=0;i=j;return}function Jq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;$W(b|0,d|0,48)|0;g=c[d+48>>2]|0;c[b+48>>2]=jd[c[c[g>>2]>>2]&511](g)|0;g=c[d+52>>2]|0;c[b+52>>2]=jd[c[c[g>>2]>>2]&511](g)|0;g=c[d+56>>2]|0;f=FW(16)|0;Eq(f,g);c[b+56>>2]=f;c[b+60>>2]=c[d+60>>2];h[b+64>>3]=+h[d+64>>3];h[b+72>>3]=+h[d+72>>3];h[b+80>>3]=+h[d+80>>3];c[b+88>>2]=c[d+88>>2];c[b+92>>2]=c[d+92>>2];h[b+96>>3]=+h[d+96>>3];h[b+104>>3]=+h[d+104>>3];f=d+112|0;if((c[f>>2]|0)==0){c[b+112>>2]=0;c[b+116>>2]=0}else{j=c[d+116>>2]|0;g=b+116|0;c[g>>2]=j;j=ye(j,8)|0;c[b+112>>2]=j;$W(j|0,c[f>>2]|0,c[g>>2]<<3|0)|0}h[b+120>>3]=+h[d+120>>3];a[b+128|0]=a[d+128|0]&1;g=c[d+132>>2]|0;j=FW(k+12|0)==(b|0);i=e;return x|0}}return 0}function mr(a){a=a|0;var b=0;b=i;do{if((a|0)==0){a=5}else{if((te(a,55048)|0)==0){a=0;break}if((te(a,55056)|0)==0){a=1;break}if((te(a,55064)|0)==0){a=2;break}if((te(a,55072)|0)==0){a=3;break}if((te(a,55088)|0)==0){a=4;break}if((te(a,55104)|0)==0){a=6;break}if((te(a,55112)|0)==0){a=7;break}if((te(a,55128)|0)==0){a=8;break}a=(te(a,55144)|0)==0;a=a?9:5}}while(0);i=b;return a|0}function nr(a,b){a=a|0;b=b|0;var d=0,e=0.0,f=0,g=0,j=0,k=0,l=0,m=0.0,n=0,o=0,p=0.0,q=0,r=0,s=0,t=0,u=0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0;d=i;j=i;i=i+16|0;k=j;o=i;i=i+16|0;n=o;r=i;i=i+16|0;q=r;t=i;i=i+16|0;u=t;l=i;i=i+16|0;f=l;if((c[a+12>>2]|0)!=4){u=0;i=d;return u|0}c[l>>2]=13;g=f+8|0;c[g>>2]=0;c[g+4>>2]=0;do{if(((c[(ut(a,0,f)|0)>>2]|0)+ -1|0)>>>0<2){s=c[l>>2]|0;if((s+ -1|0)>>>0>=2){c[t>>2]=s;c[u+4>>2]=1;c[u+8>>2]=2;Qe(0,72608,u);tc()}if((s|0)==1){e=+(c[g>>2]|0);break}else{e=+h[g>>3];break}}else{e=0.0}}while(0);Of(f);do{if(((c[(ut(a,1,f)|0)>>2]|0)+ -1|0)>>>0<2){s=c[l>>2]|0;if((s+ -1|0)>>>0>=2){c[r>>2]=s;c[q+4>>2]=1;c[q+8>>2]=2;Qe(0,72608,q);tc()}if((s|0)==1){m=+(c[g>>2]|0);break}else{m=+h[g>>3];break}}else{m=0.0}}while(0);Of(f);do{if(((c[(ut(a,2,f)|0)>>2]|0)+ -1|0)>>>0<2){q=c[l>>2]|0;if((q+ -1|0)>>>0>=2){c[o>>2]=q;c[n+4>>2]=1;c[n+8>>2]=2;Qe(0,72608,n);tc()}if((q|0)==1){p=+(c[g>>2]|0);break}else{p=+h[g>>3];break}}else{p=0.0}}while(0);Of(f);do{if(((c[(ut(a,3,f)|0)>>2]|0)+ -1|0)>>>0<2){l=c[l>>2]|0;if((l+ -1|0)>>>0>=2){c[j>>2]=l;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,72608,k);tc()}if((l|0)==1){v=+(c[g>>2]|0);break}else{v=+h[g>>3];break}}else{v=0.0}}while(0);Of(f);if(!(v!=0.0&((e<0.0|m<0.0|p<0.0)^1))){u=0;i=d;return u|0}x=+h[b+16>>3];w=+h[b>>3];if(x-w-e-p<0.0){u=0;i=d;return u|0}y=+h[b+24>>3];z=+h[b+8>>3];if(y-z-m-v<0.0){u=0;i=d;return u|0}u=FW(32)|0;bX(u|0,0,24)|0;h[u>>3]=e+w;h[u+8>>3]=m+z;h[u+16>>3]=x-p;h[u+24>>3]=y-v;i=d;return u|0}function or(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0.0;d=i;g=i;i=i+16|0;j=g;m=i;i=i+8|0;l=m;k=i;i=i+16|0;e=k;c[k>>2]=13;f=e+8|0;c[f>>2]=0;c[f+4>>2]=0;do{if((c[(Yu(b,55152,e,0)|0)>>2]|0)==4){n=FWFW(16)|0;h[u>>3]=s;h[u+8>>3]=v;c[e+(r<<2)>>2]=u;r=r+1|0;if((r|0)>=(o|0)){break a}}if((m|0)==7){c[f>>2]=t;c[g+4>>2]=1;c[g+8>>2]=2;Qe(0,72608,g);tc()}else if((m|0)==12){Of(j)}else if((m|0)==14){c[l>>2]=u;c[n+4>>2]=1;c[n+8>>2]=2;Qe(0,72608,n);tc()}if((r|0)>0){do{r=r+ -1|0;f=c[e+(r<<2)>>2]|0;if((f|0)!=0){HW(f)}}while((r|0)>0)}Fe(e);i=d;return}}while(0);c[a>>2]=e;c[a+4>>2]=o;i=d;return}function qr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0.0,M=0.0,N=0.0,O=0.0,P=0.0,Q=0.0,R=0.0;e=i;g=i;i=i+8|0;j=i;i=i+16|0;l=j;n=i;i=i+64|0;o=n;t=i;i=i+16|0;p=t;s=c[b+12>>2]|0;c[a>>2]=0;m=a+4|0;c[m>>2]=0;if((s&7|0)!=0){i=e;return}r=(s|0)/8|0;f=ye(r,4)|0;bX(f|0,0,r<<2|0)|0;a:do{if((s|0)>7){C=p+8|0;u=C+4|0;E=d+24|0;D=d+8|0;F=d+16|0;v=o+8|0;w=o+16|0;x=o+24|0;y=o+32|0;z=o+40|0;A=o+48|0;B=o+56|0;s=0;b:while(1){H=s<<3;G=0;do{c[t>>2]=13;c[C>>2]=0;c[u>>2]=0;if(((c[(ut(b,G+H|0,p)|0)>>2]|0)+ -1|0)>>>0>=2){break b}I=c[t>>2]|0;if((I+ -1|0)>>>0>=2){q=7;break b}I=(I|0)==1;if(I){K=c[C>>2]|0;J=K;L=+(K|0)}else{L=+h[C>>3];h[k>>3]=L;J=c[k>>2]|0}if(((G|0)%2|0|0)==1){M=+h[E>>3];do{if(L<=M){if(I){K=J;L=+(J|0)}else{L=+h[C>>3];h[k>>3]=L;K=c[k>>2]|0}M=+h[D>>3];if(L<M){break}if(I){M=+(K|0);break}else{M=+h[C>>3];break}}}while(0);h[o+(G<<3)>>3]=M}else{M=+h[F>>3];do{if(L<=M){if(I){K=J;L=+(J|0)}else{L=+h[C>>3];h[k>>3]=L;K=c[k>>2]|0}M=+h[d>>3];if(L<M){break}if(I){M=+(K|0);break}else{M=+h[C>>3];break}}}while(0);h[o+(G<<3)>>3]=M}Of(p);G=G+1|0;}while((G|0)<8);K=FW(64)|0;R=+h[v>>3];Q=+h[w>>3];P=+h[x>>3];O=+h[y>>3];N=+h[z>>3];L=+h[A>>3];M=+h[B>>3];h[K>>3]=+h[n>>3];h[K+8>>3]=R;h[K+16>>3]=Q;h[K+24>>3]=P;h[K+32>>3]=O;h[K+40>>3]=N;h[K+48>>3]=L;h[K+56>>3]=M;c[f+(s<<2)>>2]=K;s=s+1|0;if((s|0)>=(r|0)){break a}}if((q|0)==7){c[j>>2]=I;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,72608,l);tc()}Of(p);Qe(-1,55224,g);if((s|0)>0){g=0;do{j=c[f+(g<<2)>>2]|0;if((j|0)!=0){HW(j)}g=g+1|0;}while((g|0)<(s|0))}Fe(f);i=e;return}}while(0);c[m>>2]=r;c[a>>2]=f;i=e;return}function rr(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=55264;d=c[a+20>>2]|0;if((d|0)==0){HW(a);i=b;return}Fe(d);HW(a);i=b;return}function sr(a){a=a|0;var b=0;b=i;c[a>>2]=55264;a=c[a+20>>2]|0;if((a|0)==0){i=b;return}Fe(a);i=b;return}function tr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0.0;l=i;g=i;i=i+16|0;j=g;r=i;i=i+8|0;q=r;t=i;i=i+16|0;u=t;w=i;i=i+16|0;v=w;x=i;i=i+16|0;y=x;k=i;i=i+16|0;f=k;c[a+4>>2]=0;o=a+8|0;h[o>>3]=1.0;p=a+16|0;c[p>>2]=0;m=a+20|0;c[m>>2]=0;n=a+24|0;c[n>>2]=0;c[a>>2]=55304;c[k>>2]=13;d=f+8|0;c[d>>2]=0;c[d+4>>2]=0;z=c[b+12>>2]|0;s=(z|0)==4;do{if((z+ -3|0)>>>0<2){if(((c[(ut(b,0,f)|0)>>2]|0)+ -1|0)>>>0<2){z=c[k>>2]|0;if((z+ -1|0)>>>0>=2){c[x>>2]=z;c[y+4>>2]=1;c[y+8>>2]=2;Qe(0,72608,y);tc()}if((z|0)==1){A=+(c[d>>2]|0)}else{A=+h[d>>3]}h[a+32>>3]=A;x=1}else{x=0}Of(f);if(((c[(ut(b,1,f)|0)>>2]|0)+ -1|0)>>>0<2){y=c[k>>2]|0;if((y+ -1|0)>>>0>=2){c[w>>2]=y;c[v+4>>2]=1;c[v+8>>2]=2;Qe(0,72608,v);tc()}if((y|0)==1){A=+(c[d>>2]|0)}else{A=+h[d>>3]}h[a+40>>3]=A}else{x=0}Of(f);if(((c[(ut(b,2,f)|0)>>2]|0)+ -1|0)>>>0<2){a=c[k>>2]|0;if((a+ -1|0)>>>0>=2){c[t>>2]=a;c[u+4>>2]=1;c[u+8>>2]=2;Qe(0,72608,u);tc()}if((a|0)==1){A=+(c[d>>2]|0)}else{A=+h[d>>3]}h[o>>3]=A}else{x=0}Of(f);if(!s){if((x&1)==0){break}i=l;return}if((c[(ut(b,3,f)|0)>>2]|0)!=6){Of(f);break}b=c[k>>2]|0;if((b|0)!=6){c[r>>2]=b;c[q+4>>2]=6;Qe(0,72520,q);tc()}b=c[d>>2]|0;q=c[b+12>>2]|0;r=ye(q,8)|0;a:do{if((q|0)>0){s=0;b:while(1){if((x&1)==0){e=x;break a}do{if(((c[(ut(b,s,f)|0)>>2]|0)+ -1|0)>>>0<2){t=c[k>>2]|0;if((t+ -1|0)>>>0>=2){break b}if((t|0)==1){A=+(c[d>>2]|0)}else{A=+h[d>>3]}h[r+(s<<3)>>3]=A;if(A>=0.0){break}x=0}else{x=0}}while(0);Of(f);s=s+1|0;if(!((s|0)<(q|0)&(s|0)<10)){e=x;break a}}c[g>>2]=t;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,72608,j);tc()}else{e=x}}while(0);if((e&1)==0){Fe(r);Of(f);break}c[p>>2]=q;c[m>>2]=r;c[n>>2]=1;Of(f);i=l;return}}while(0);h[o>>3]=0.0;i=l;return}function ur(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0.0;n=i;d=i;i=i+16|0;m=d;j=i;i=i+8|0;k=j;t=i;i=i+8|0;s=t;x=i;i=i+16|0;w=x;p=i;i=i+16|0;q=p;y=i;i=i+16|0;u=y;o=i;i=i+16|0;e=o;c[a+4>>2]=0;v=a+8|0;h[v>>3]=1.0;f=a+16|0;c[f>>2]=0;l=a+20|0;c[l>>2]=0;g=a+24|0;c[g>>2]=0;c[a>>2]=55344;c[p>>2]=13;a=q+8|0;c[a>>2]=0;c[a+4>>2]=0;c[y>>2]=13;z=u+8|0;c[z>>2]=0;c[z+4>>2]=0;Yu(b,55376,q,0)|0;Yu(b,55152,u,0)|0;do{if(((c[p>>2]|0)+ -1|0)>>>0<2){if((c[y>>2]|0)!=4){r=21;break}y=FW(32)|0;fe(y,c[z>>2]|0);z=c[p>>2]|0;if((z+ -1|0)>>>0>=2){c[x>>2]=z;c[w+4>>2]=1;c[w+8>>2]=2;Qe(0,72608,w);tc()}if((z|0)==1){A=+(c[a>>2]|0)}else{A=+h[a>>3]}h[v>>3]=A;do{if((te(y,55152)|0)==0){c[g>>2]=0}else{if((te(y,55384)|0)==0){c[g>>2]=1;break}if((te(y,55392)|0)==0){c[g>>2]=2;break}if((te(y,55168)|0)==0){c[g>>2]=3;break}if((te(y,55400)|0)==0){c[g>>2]=4;break}else{c[g>>2]=0;break}}}while(0);if((y|0)==0){break}ke(y);HW(y)}else{r=21}}while(0);if((r|0)==21){h[v>>3]=0.0}Of(u);Of(q);a:do{if((c[(Yu(b,55384,q,0)|0)>>2]|0)==6){r=c[p>>2]|0;if((r|0)!=6){c[t>>2]=r;c[s+4>>2]=6;Qe(0,72520,s);tc()}t=c[(c[a>>2]|0)+12>>2]|0;s=ye(t,8)|0;do{if((t|0)>=1){r=e+8|0;u=r+4|0;v=1;b=0;b:while(1){c[o>>2]=13;c[r>>2]=0;c[u>>2]=0;w=c[p>>2]|0;if((w|0)!=6){r=28;break}do{if(((c[(ut(c[a>>2]|0,b,e)|0)>>2]|0)+ -1|0)>>>0<2){w=c[o>>2]|0;if((w+ -1|0)>>>0>=2){r=31;break b}if((w|0)==1){A=+(c[r>>2]|0)}else{A=+h[r>>3]}h[s+(b<<3)>>3]=A;if(A>=0.0){break}v=0}else{v=0}}while(0);Of(e);b=b+1|0;if((b|0)>=(t|0)|v^1){r=38;break}}if((r|0)==28){c[j>>2]=w;c[k+4>>2]=6;Qe(0,72520,k);tc()}else if((r|0)==31){c[d>>2]=w;c[m+4>>2]=1;c[m+8>>2]=2;Qe(0,72608,m);tc()}else if((r|0)==38){if(v){break}Fe(s);break a}}}while(0);c[f>>2]=t;c[l>>2]=s;c[g>>2]=1}}while(0);if((c[l>>2]|0)!=0){Of(q);i=n;return}c[f>>2]=1;z=ye(1,8)|0;c[l>>2]=z;h[z>>3]=3.0;Of(q);i=n;return}function vr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0.0;f=i;m=i;i=i+16|0;l=m;j=i;i=i+16|0;k=j;n=c[b+12>>2]|0;e=a+32|0;n=(n|0)>4?4:n;c[e>>2]=n;a:do{if((n|0)>0){n=k+8|0;o=n+4|0;p=0;while(1){c[j>>2]=13;c[n>>2]=0;c[o>>2]=0;if(((c[(ut(b,p,k)|0)>>2]|0)+ -1|0)>>>0<2){q=c[j>>2]|0;if((q+ -1|0)>>>0>=2){break}if((q|0)==1){r=+(c[n>>2]|0)}else{r=+h[n>>3]}h[a+(p<<3)>>3]=r<0.0|r>1.0?0.0:r}else{h[a+(p<<3)>>3]=0.0}Of(k);p=p+1|0;q=c[e>>2]|0;if((p|0)>=(q|0)){g=q;break a}}c[m>>2]=q;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,72608,l);tc()}else{g=n}}while(0);b=(g|0)==4?0-d|0:d;if((b|0)>0){if((g|0)>0){g=0}else{i=f;return}do{q=a+(g<<3)|0;h[q>>3]=+h[q>>3]*.5+.5;g=g+1|0;}while((g|0)<(c[e>>2]|0));i=f;return}else{if((b|0)<0&(g|0)>0){g=0}else{i=f;return}do{q=a+(g<<3)|0;h[q>>3]=+h[q>>3]*.5;g=g+1|0;}while((g|0)<(c[e>>2]|0));i=f;return}}function wr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0.0;k=i;j=i;i=i+8|0;e=j;p=i;i=i+16|0;o=p;s=i;i=i+8|0;q=s;t=i;i=i+16|0;u=t;w=i;i=i+8|0;v=w;x=i;i=i+8|0;y=x;A=i;i=i+8|0;z=A;m=i;i=i+16|0;f=m;r=i;i=i+16|0;n=r;c[m>>2]=13;g=f+8|0;c[g>>2]=0;c[g+4>>2]=0;do{if((c[(Yu(d,55408,f,0)|0)>>2]|0)==4){B=FW(32)|0;C=c[m>>2]|0;if((C|0)!=4){c[A>>2]=C;c[z+4>>2]=4;Qe(0,72520,z);tc()}fe(B,c[g>>2]|0);do{if((te(B,55392)|0)==0){c[b>>2]=1}else{if((te(B,55152)|0)==0){c[b>>2]=2;break}if((te(B,55416)|0)==0){c[b>>2]=3;break}else{c[b>>2]=0;break}}}while(0);if((B|0)==0){break}ke(B);HW(B)}else{c[b>>2]=0}}while(0);Of(f);do{if((c[(Yu(d,55152,f,0)|0)>>2]|0)==4){z=FW(32)|0;A=c[m>>2]|0;if((A|0)!=4){c[x>>2]=A;c[y+4>>2]=4;Qe(0,72520,y);tc()}fe(z,c[g>>2]|0);c[b+4>>2]=(te(z,55424)|0)!=0;if((z|0)==0){break}ke(z);HW(z)}else{c[b+4>>2]=1}}while(0);Of(f);do{if((c[(Yu(d,55424,f,0)|0)>>2]|0)==6){x=c[m>>2]|0;if((x|0)!=6){c[w>>2]=x;c[v+4>>2]=6;Qe(0,72520,v);tc()}w=c[g>>2]|0;if((c[w+12>>2]|0)!=2){l=46;break}c[r>>2]=13;v=n+8|0;c[v>>2]=0;c[v+4>>2]=0;if(((c[(ut(w,0,n)|0)>>2]|0)+ -1|0)>>>0<2){w=c[r>>2]|0;if((w+ -1|0)>>>0>=2){c[t>>2]=w;c[u+4>>2]=1;c[u+8>>2]=2;Qe(0,72608,u);tc()}if((w|0)==1){D=+(c[v>>2]|0)}else{D=+h[v>>3]}h[b+8>>3]=D}else{h[b+8>>3]=0.0}Of(n);t=c[m>>2]|0;if((t|0)!=6){c[s>>2]=t;c[q+4>>2]=6;Qe(0,72520,q);tc()}if(((c[(ut(c[g>>2]|0,1,n)|0)>>2]|0)+ -1|0)>>>0<2){q=c[r>>2]|0;if((q+ -1|0)>>>0>=2){c[p>>2]=q;c[o+4>>2]=1;c[o+8>>2]=2;Qe(0,72608,o);tc()}if((q|0)==1){D=+(c[v>>2]|0)}else{D=+h[v>>3]}h[b+16>>3]=D}else{h[b+16>>3]=0.0}Of(n);n=b+8|0;D=+h[n>>3];if(D<0.0|D>1.0){h[n>>3]=.5}n=b+16|0;D=+h[n>>3];if(!(D<0.0|D>1.0)){break}h[n>>3]=.5}else{l=46}}while(0);if((l|0)==46){h[b+16>>3]=.5;h[b+8>>3]=.5}Of(f);if((c[(Yu(d,55432,f,0)|0)>>2]|0)!=0){a[b+24|0]=0;Of(f);i=k;return}l=c[m>>2]|0;if((l|0)!=0){c[j>>2]=l;c[e+4>>2]=0;Qe(0,72520,e);tc()}a[b+24|0]=a[g]&1;Of(f);i=k;return}function xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;h=i;g=i;i=i+8|0;d=g;k=i;i=i+8|0;l=k;n=i;i=i+8|0;m=n;p=i;i=i+8|0;o=p;r=i;i=i+8|0;q=r;s=i;i=i+8|0;t=s;v=i;i=i+8|0;u=v;x=i;i=i+8|0;w=x;j=i;i=i+16|0;e=j;c[j>>2]=13;f=e+8|0;c[f>>2]=0;c[f+4>>2]=0;do{if((c[(Yu(b,55440,e,0)|0)>>2]|0)==1){y=c[j>>2]|0;if((y|0)==1){c[a>>2]=c[f>>2];break}else{c[x>>2]=y;c[w+4>>2]=1;Qe(0,72520,w);tc()}}else{c[a>>2]=0}}while(0);Of(e);do{if((c[(Yu(b,55448,e,0)|0)>>2]|0)==6){w=FW(40)|0;x=c[j>>2]|0;if((x|0)==6){vr(w,c[f>>2]|0,0);c[a+4>>2]=w;break}else{c[v>>2]=x;c[u+4>>2]=6;Qe(0,72520,u);tc()}}else{c[a+4>>2]=0}}while(0);Of(e);do{if((c[(Yu(b,55456,e,0)|0)>>2]|0)==6){u=FW(40)|0;v=c[j>>2]|0;if((v|0)==6){vr(u,c[f>>2]|0,0);c[a+8>>2]=u;break}else{c[s>>2]=v;c[t+4>>2]=6;Qe(0,72520,t);tc()}}else{c[a+8>>2]=0}}while(0);Of(e);do{if((c[(Yu(b,55464,e,0)|0)>>2]|0)==4){s=FW(32)|0;t=c[j>>2]|0;if((t|0)==4){fe(s,c[f>>2]|0);c[a+12>>2]=s;break}else{c[r>>2]=t;c[q+4>>2]=4;Qe(0,72520,q);tc()}}else{c[a+12>>2]=0}}while(0);Of(e);do{if((c[(Yu(b,55472,e,0)|0)>>2]|0)==4){q=FW(32)|0;r=c[j>>2]|0;if((r|0)==4){fe(q,c[f>>2]|0);c[a+16>>2]=q;break}else{c[p>>2]=r;c[o+4>>2]=4;Qe(0,72520,o);tc()}}else{c[a+16>>2]=0}}while(0);Of(e);do{if((c[(Yu(b,55480,e,0)|0)>>2]|0)==4){o=FW(32)|0;p=c[j>>2]|0;if((p|0)==4){fe(o,c[f>>2]|0);c[a+20>>2]=o;break}else{c[n>>2]=p;c[m+4>>2]=4;Qe(0,72520,m);tc()}}else{c[a+20>>2]=0}}while(0);Of(e);do{if((c[(Yu(b,55488,e,0)|0)>>2]|0)==7){m=FW(32)|0;n=c[j>>2]|0;if((n|0)==7){wr(m,c[f>>2]|0);c[a+24>>2]=m;break}else{c[k>>2]=n;c[l+4>>2]=7;Qe(0,72520,l);tc()}}else{c[a+24>>2]=0}}while(0);Of(e);if((c[(Yu(b,55496,e,0)|0)>>2]|0)!=1){c[a+28>>2]=0;Of(e);i=h;return}b=c[j>>2]|0;if((b|0)!=1){c[g>>2]=b;c[d+4>>2]=1;Qe(0,72520,d);tc()}c[a+28>>2]=c[f>>2];Of(e);i=h;return}function yr(a){a=a|0;var b=0,d=0;b=i;d=c[a+4>>2]|0;if((d|0)!=0){HW(d)}d=c[a+8>>2]|0;if((d|0)!=0){HW(d)}d=c[a+12>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+16>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+20>>2]|0;if((d|0)!=0){ke(d);HW(d)}a=c[a+24>>2]|0;if((a|0)==0){i=b;return}HW(a);i=b;return}function zr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0.0,sa=0.0;k=i;j=i;i=i+8|0;g=j;o=i;i=i+8|0;l=o;q=i;i=i+8|0;r=q;v=i;i=i+8|0;s=v;t=i;i=i+8|0;u=t;L=i;i=i+8|0;K=L;A=i;i=i+8|0;y=A;B=i;i=i+8|0;C=B;E=i;i=i+8|0;G=E;I=i;i=i+8|0;H=I;M=i;i=i+8|0;N=M;O=i;i=i+8|0;P=O;Q=i;i=i+8|0;R=Q;T=i;i=i+8|0;S=T;U=i;i=i+8|0;V=U;ga=i;i=i+8|0;Z=i;i=i+16|0;_=Z;aa=i;i=i+8|0;ba=aa;da=i;i=i+16|0;ca=da;fa=i;i=i+8|0;ea=fa;ia=i;i=i+16|0;ha=ia;ja=i;i=i+8|0;ka=ja;la=i;i=i+16|0;ma=la;pa=i;i=i+8|0;oa=pa;p=i;i=i+16|0;m=p;$=i;i=i+16|0;Y=$;J=i;i=i+16|0;w=J;D=i;i=i+16|0;x=D;F=i;i=i+16|0;z=F;c[p>>2]=13;n=m+8|0;c[n>>2]=0;c[n+4>>2]=0;c[b+52>>2]=0;c[b+56>>2]=65535;na=b+144|0;a[na]=1;c[b+112>>2]=d;c[b+124>>2]=0;h[b+136>>3]=0.0;d=b+64|0;qa=b+72|0;c[qa>>2]=0;c[qa+4>>2]=0;c[d>>2]=5;qa=FW(32)|0;bX(qa|0,0,32)|0;X=b+28|0;c[X>>2]=qa;do{if((c[(Yu(e,55528,m,0)|0)>>2]|0)==6){qa=c[p>>2]|0;if((qa|0)!=6){c[pa>>2]=qa;c[oa+4>>2]=6;Qe(0,72520,oa);tc()}oa=c[n>>2]|0;if((c[oa+12>>2]|0)!=4){W=47;break}c[$>>2]=13;ga=Y+8|0;c[ga>>2]=0;c[ga+4>>2]=0;if(((c[(ut(oa,0,Y)|0)>>2]|0)+ -1|0)>>>0<2){na=c[$>>2]|0;if((na+ -1|0)>>>0>=2){c[la>>2]=na;c[ma+4>>2]=1;c[ma+8>>2]=2;Qe(0,72608,ma);tc()}if((na|0)==1){ra=+(c[ga>>2]|0)}else{ra=+h[ga>>3]}h[c[X>>2]>>3]=ra}else{h[c[X>>2]>>3]=0.0}Of(Y);la=c[p>>2]|0;if((la|0)!=6){c[ja>>2]=la;c[ka+4>>2]=6;Qe(0,72520,ka);tc()}if(((c[(ut(c[n>>2]|0,1,Y)|0)>>2]|0)+ -1|0)>>>0<2){ja=c[$>>2]|0;if((ja+ -1|0)>>>0>=2){c[ia>>2]=ja;c[ha+4>>2]=1;c[ha+8>>2]=2;Qe(0,72608,ha);tc()}if((ja|0)==1){ra=+(c[ga>>2]|0)}else{ra=+h[ga>>3]}h[(c[X>>2]|0)+8>>3]=ra}else{h[(c[X>>2]|0)+8>>3]=0.0}Of(Y);ha=c[p>>2]|0;if((ha|0)!=6){c[fa>>2]=ha;c[ea+4>>2]=6;Qe(0,72520,ea);tc()}if(((c[(ut(c[n>>2]|0,2,Y)|0)>>2]|0)+ -1|0)>>>0<2){ea=c[$>>2]|0;if((ea+ -1|0)>>>0>=2){c[da>>2]=ea;c[ca+4>>2]=1;c[ca+8>>2]=2;Qe(0,72608,ca);tc()}if((ea|0)==1){ra=+(c[ga>>2]|0)}else{ra=+h[ga>>3]}h[(c[X>>2]|0)+16>>3]=ra}else{h[(c[X>>2]|0)+16>>3]=1.0}Of(Y);ca=c[p>>2]|0;if((ca|0)!=6){c[aa>>2]=ca;c[ba+4>>2]=6;Qe(0,72520,ba);tc()}if(((c[(ut(c[n>>2]|0,3,Y)|0)>>2]|0)+ -1|0)>>>0<2){$=c[$>>2]|0;if(($+ -1|0)>>>0>=2){c[Z>>2]=$;c[_+4>>2]=1;c[_+8>>2]=2;Qe(0,72608,_);tc()}if(($|0)==1){ra=+(c[ga>>2]|0)}else{ra=+h[ga>>3]}h[(c[X>>2]|0)+24>>3]=ra}else{h[(c[X>>2]|0)+24>>3]=1.0}Of(Y);Y=c[X>>2]|0;sa=+h[Y>>3];ra=+h[Y+16>>3];if(sa>ra){h[Y>>3]=ra;h[(c[X>>2]|0)+16>>3]=sa;Z=c[X>>2]|0}else{Z=Y}Y=Z+8|0;ra=+h[Y>>3];sa=+h[Z+24>>3];if(ra<=sa){break}h[Y>>3]=sa;h[(c[X>>2]|0)+24>>3]=ra}else{W=47}}while(0);if((W|0)==47){h[(c[X>>2]|0)+8>>3]=0.0;h[c[X>>2]>>3]=0.0;h[(c[X>>2]|0)+24>>3]=1.0;h[(c[X>>2]|0)+16>>3]=1.0;Qe(-1,55536,ga);a[na]=0}Of(m);do{if((c[(Yu(e,55568,m,0)|0)>>2]|0)==3){W=c[p>>2]|0;if((W|0)==3){pa=c[n>>2]|0;qa=FW(32)|0;ie(qa,pa);c[b+32>>2]=qa;break}else{c[U>>2]=W;c[V+4>>2]=3;Qe(0,72520,V);tc()}}else{c[b+32>>2]=0}}while(0);Of(m);if((c[(Zu(e,55584,m)|0)>>2]|0)==9){U=c[p>>2]|0;if((U|0)!=9){c[T>>2]=U;c[S+4>>2]=9;Qe(0,72520,S);tc()}S=n;if((f|0)==0){S=-1}else{S=du(f,c[S>>2]|0,c[S+4>>2]|0)|0}c[b+36>>2]=S}else{c[b+36>>2]=0}Of(m);do{if((c[(Yu(e,55592,m,0)|0)>>2]|0)==3){S=c[p>>2]|0;if((S|0)==3){pa=c[n>>2]|0;qa=FW(32)|0;ie(qa,pa);c[b+40>>2]=qa;break}else{c[Q>>2]=S;c[R+4>>2]=3;Qe(0,72520,R);tc()}}else{c[b+40>>2]=0}}while(0);Of(m);do{if((c[(Yu(e,55600,m,0)|0)>>2]|0)==3){Q=c[p>>2]|0;if((Q|0)==3){pa=c[n>>2]|0;qa=FW(32)|0;ie(qa,pa);c[b+44>>2]=qa;break}else{c[O>>2]=Q;c[P+4>>2]=3;Qe(0,72520,P);tc()}}else{c[b+44>>2]=0}}while(0);Of(m);do{if((c[(Yu(e,55608,m,0)|0)>>2]|0)==1){O=c[p>>2]|0;if((O|0)==1){qa=b+48|0;c[qa>>2]=c[qa>>2]|c[n>>2];break}else{c[M>>2]=O;c[N+4>>2]=1;Qe(0,72520,N);tc()}}else{c[b+48>>2]=0}}while(0);Of(m);if((c[(Yu(e,55616,m,0)|0)>>2]|0)==7){c[J>>2]=13;M=w+8|0;c[M>>2]=0;c[M+4>>2]=0;do{if((c[(Yu(e,55624,w,0)|0)>>2]|0)==4){c[D>>2]=13;K=x+8|0;c[K>>2]=0;c[K+4>>2]=0;L=FW(32)|0;J=c[J>>2]|0;if((J|0)!=4){c[I>>2]=J;c[H+4>>2]=4;Qe(0,72520,H);tc()}fe(L,c[M>>2]|0);H=b+80|0;c[H>>2]=L;I=c[p>>2]|0;if((I|0)!=7){c[E>>2]=I;c[G+4>>2]=7;Qe(0,72520,G);tc()}if((c[(Yu(c[n>>2]|0,55416,x,0)|0)>>2]|0)==7){c[F>>2]=13;E=z+8|0;c[E>>2]=0;c[E+4>>2]=0;E=c[D>>2]|0;if((E|0)!=7){c[B>>2]=E;c[C+4>>2]=7;Qe(0,72520,C);tc()}do{if((c[(Zu(c[K>>2]|0,c[(c[H>>2]|0)+28>>2]|0,z)|0)>>2]|0)==9){Mf(z,d)|0}else{Of(z);B=c[D>>2]|0;if((B|0)!=7){c[A>>2]=B;c[y+4>>2]=7;Qe(0,72520,y);tc()}if((c[(Zu(c[K>>2]|0,55632,z)|0)>>2]|0)!=9){break}Mf(z,d)|0}}while(0);Of(z)}Of(x)}else{Of(w);c[b+80>>2]=0;x=c[p>>2]|0;if((x|0)!=7){c[L>>2]=x;c[K+4>>2]=7;Qe(0,72520,K);tc()}if((c[(Zu(c[n>>2]|0,55416,w)|0)>>2]|0)!=9){break}Mf(w,d)|0}}while(0);Of(w)}else{c[b+80>>2]=0}Of(m);do{if((c[(Yu(e,55640,m,0)|0)>>2]|0)==7){s=FWFW(48)|0;u=c[p>>2]|0;if((u|0)==6){tr(t,c[n>>2]|0);c[b+128>>2]=t;break}else{c[v>>2]=u;c[s+4>>2]=6;Qe(0,72520,s);tc()}}}while(0);Of(m);do{if((c[(Yu(e,55160,m,0)|0)>>2]|0)==6){s=FW(40)|0;t=c[p>>2]|0;if((t|0)==6){vr(s,c[n>>2]|0,0);c[b+132>>2]=s;break}else{c[q>>2]=t;c[r+4>>2]=6;Qe(0,72520,r);tc()}}else{c[b+132>>2]=0}}while(0);Of(m);do{if((c[(Yu(e,55656,m,0)|0)>>2]|0)==1){p=c[p>>2]|0;if((p|0)==1){c[b+84>>2]=c[n>>2];break}else{c[o>>2]=p;c[l+4>>2]=1;Qe(0,72520,l);tc()}}else{c[b+84>>2]=0}}while(0);Of(m);if((f|0)==0){l=0}else{l=c[f+160>>2]|0}c[b+88>>2]=l;qa=b+96|0;Zu(e,55672,qa)|0;e=c[qa>>2]|0;if((e|0)==5|(e|0)==9){i=k;return}c[j>>2]=e;Qe(-1,55680,g);i=k;return}function Ar(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0;g=i;c[b>>2]=55512;h=b+8|0;c[h>>2]=13;j=b+16|0;c[j>>2]=0;c[j+4>>2]=0;c[b+64>>2]=13;j=b+72|0;c[j>>2]=0;c[j+4>>2]=0;c[b+96>>2]=13;j=b+104|0;c[j>>2]=0;c[j+4>>2]=0;a[b+145|0]=0;c[b+48>>2]=0;c[b+24>>2]=0;Kf(h,e)|0;zr(b,d,e,f);i=g;return}function Br(a){a=a|0;var b=0;b=i;Cr(a);HW(a);i=b;return}function Cr(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=55512;Of(a+8|0);d=c[a+28>>2]|0;if((d|0)!=0){HW(d)}d=c[a+32>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+40>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+44>>2]|0;if((d|0)!=0){ke(d);HW(d)}Of(a+64|0);d=c[a+80>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+128>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+132>>2]|0;if((d|0)==0){d=a+96|0;Of(d);i=b;return}HW(d);d=a+96|0;Of(d);i=b;return}function Dr(a,b,d,e,f){a=a|0;b=+b;d=+d;e=+e;f=f|0;var g=0,j=0,l=0,m=0,n=0.0,o=0.0,p=0.0,q=0,r=0,s=0.0,t=0.0,u=0,v=0,w=0.0,x=0.0,y=0,z=0,A=0,B=0;g=i;m=i;i=i+48|0;j=m;r=i;i=i+48|0;l=r;v=i;i=i+48|0;q=v;z=i;i=i+48|0;u=z;B=i;i=i+16|0;y=B;a=a+124|0;A=c[a>>2]|0;n=b+e;h[k>>3]=n;c[B>>2]=c[k>>2];c[B+4>>2]=c[k+4>>2];B=y+8|0;h[k>>3]=d;c[B>>2]=c[k>>2];c[B+4>>2]=c[k+4>>2];pe(A,55832,y)|0;y=c[a>>2]|0;o=e*.55228475;w=o+d;p=o+b;x=d+e;h[k>>3]=n;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+8|0;h[k>>3]=w;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+16|0;h[k>>3]=p;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+24|0;h[k>>3]=x;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+32|0;h[k>>3]=b;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+40|0;h[k>>3]=x;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];pe(y,55856,u)|0;u=c[a>>2]|0;s=b-o;t=b-e;h[k>>3]=s;c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];v=q+8|0;h[k>>3]=x;c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];v=q+16|0;h[k>>3]=t;c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];v=q+24|0;h[k>>3]=w;c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];v=q+32|0;h[k>>3]=t;c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];v=q+40|0;h[k>>3]=d;c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];pe(u,55856,q)|0;q=c[a>>2]|0;o=d-o;e=d-e;h[k>>3]=t;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=l+8|0;h[k>>3]=o;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=l+16|0;h[k>>3]=s;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=l+24|0;h[k>>3]=e;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=l+32|0;h[k>>3]=b;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=l+40|0;h[k>>3]=e;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];pe(q,55856,l)|0;l=c[a>>2]|0;h[k>>3]=p;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];m=j+8|0;h[k>>3]=e;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];m=j+16|0;h[k>>3]=n;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];m=j+24|0;h[k>>3]=o;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];m=j+32|0;h[k>>3]=n;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];m=j+40|0;h[k>>3]=d;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];pe(l,55856,j)|0;ne(c[a>>2]|0,f?55912:55920,-1)|0;i=g;return}function Er(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,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.0;g=i;l=i;i=i+8|0;k=l;n=i;i=i+8|0;p=n;r=i;i=i+8|0;s=r;A=i;i=i+8|0;z=A;B=i;i=i+8|0;C=B;G=i;i=i+8|0;E=G;H=i;i=i+8|0;I=H;J=i;i=i+8|0;K=J;M=i;i=i+8|0;L=M;N=i;i=i+8|0;O=N;u=i;i=i+16|0;t=u;F=i;i=i+16|0;D=F;q=i;i=i+16|0;m=q;x=i;i=i+16|0;o=x;c[u>>2]=13;v=t+8|0;c[v>>2]=0;y=v+4|0;c[y>>2]=0;c[F>>2]=13;j=D+8|0;c[j>>2]=0;c[j+4>>2]=0;c[q>>2]=13;j=m+8|0;c[j>>2]=0;c[j+4>>2]=0;w=a+112|0;Jf(m,c[w>>2]|0)|0;a=a+124|0;P=c[(c[a>>2]|0)+24>>2]|0;c[y>>2]=0;c[u>>2]=1;c[v>>2]=P;P=c[q>>2]|0;if((P|0)!=7){c[N>>2]=P;c[O+4>>2]=7;Qe(0,72520,O);tc()}Wu(c[j>>2]|0,55936,t);c[v>>2]=0;c[y>>2]=0;c[u>>2]=4;c[v>>2]=Ge(55952)|0;N=c[q>>2]|0;if((N|0)!=7){c[M>>2]=N;c[L+4>>2]=7;Qe(0,72520,L);tc()}Wu(c[j>>2]|0,55944,t);If(t,c[w>>2]|0)|0;Q=+h[b>>3];c[F>>2]=2;L=D+8|0;h[L>>3]=Q;M=c[u>>2]|0;if((M|0)!=6){c[J>>2]=M;c[K+4>>2]=6;Qe(0,72520,K);tc()}tt(c[v>>2]|0,D);Q=+h[b+8>>3];c[F>>2]=2;h[L>>3]=Q;J=c[u>>2]|0;if((J|0)!=6){c[H>>2]=J;c[I+4>>2]=6;Qe(0,72520,I);tc()}tt(c[v>>2]|0,D);Q=+h[b+16>>3];c[F>>2]=2;h[L>>3]=Q;H=c[u>>2]|0;if((H|0)!=6){c[G>>2]=H;c[E+4>>2]=6;Qe(0,72520,E);tc()}tt(c[v>>2]|0,D);Q=+h[b+24>>3];c[F>>2]=2;h[L>>3]=Q;E=c[u>>2]|0;if((E|0)!=6){c[B>>2]=E;c[C+4>>2]=6;Qe(0,72520,C);tc()}tt(c[v>>2]|0,D);B=c[q>>2]|0;if((B|0)!=7){c[A>>2]=B;c[z+4>>2]=7;Qe(0,72520,z);tc()}Wu(c[j>>2]|0,55960,t);do{if(d){c[x>>2]=13;z=o+8|0;c[z>>2]=0;c[z+4>>2]=0;Jf(o,c[w>>2]|0)|0;c[v>>2]=0;c[y>>2]=0;c[u>>2]=4;c[v>>2]=Ge(55968)|0;u=c[x>>2]|0;if((u|0)!=7){c[r>>2]=u;c[s+4>>2]=7;Qe(0,72520,s);tc()}Wu(c[z>>2]|0,55152,t);r=c[q>>2]|0;if((r|0)==7){Wu(c[j>>2]|0,55984,o);break}else{c[n>>2]=r;c[p+4>>2]=7;Qe(0,72520,p);tc()}}}while(0);if((e|0)==0){P=FW(56)|0;N=a;N=c[N>>2]|0;N=N+28|0;N=c[N>>2]|0;N=Ge(N)|0;O=a;O=c[O>>2]|0;O=O+24|0;O=c[O>>2]|0;Tj(P,N,0,O,m);O=P;O=c[O>>2]|0;O=O+116|0;O=c[O>>2]|0;hd[O&127](P,1);Lf(f,P)|0;i=g;return}n=c[q>>2]|0;if((n|0)!=7){c[l>>2]=n;c[k+4>>2]=7;Qe(0,72520,k);tc()}Wu(c[j>>2]|0,55992,e);P=FW(56)|0;N=a;N=c[N>>2]|0;N=N+28|0;N=c[N>>2]|0;N=Ge(N)|0;O=a;O=c[O>>2]|0;O=O+24|0;O=c[O>>2]|0;Tj(P,N,0,O,m);O=P;O=c[O>>2]|0;O=O+116|0;O=c[O>>2]|0;hd[O&127](P,1);Lf(f,P)|0;i=g;return}function Fr(a,b,d,e,f,g,j){a=a|0;b=b|0;d=d|0;e=e|0;f=+f;g=g|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0;m=i;l=i;i=i+8|0;k=l;q=i;i=i+8|0;p=q;t=i;i=i+8|0;r=t;w=i;i=i+8|0;x=w;A=i;i=i+8|0;z=A;F=i;i=i+8|0;G=F;L=i;i=i+8|0;K=L;H=i;i=i+16|0;v=H;C=i;i=i+16|0;o=C;u=i;i=i+16|0;n=u;E=i;i=i+16|0;D=E;c[H>>2]=13;B=v+8|0;c[B>>2]=0;c[B+4>>2]=0;c[C>>2]=13;y=o+8|0;c[y>>2]=0;c[y+4>>2]=0;c[u>>2]=13;s=n+8|0;c[s>>2]=0;c[s+4>>2]=0;c[E>>2]=13;I=D+8|0;c[I>>2]=0;J=I+4|0;c[J>>2]=0;a=a+112|0;Jf(v,c[a>>2]|0)|0;do{if(f!=1.0){c[E>>2]=2;M=D+8|0;h[M>>3]=f;N=c[H>>2]|0;if((N|0)!=7){c[L>>2]=N;c[K+4>>2]=7;Qe(0,72520,K);tc()}Wu(c[B>>2]|0,55464,D);c[E>>2]=2;h[M>>3]=f;K=c[H>>2]|0;if((K|0)==7){Wu(c[B>>2]|0,56008,D);break}else{c[F>>2]=K;c[G+4>>2]=7;Qe(0,72520,G);tc()}}}while(0);do{if((g|0)!=0){c[I>>2]=0;c[J>>2]=0;c[E>>2]=4;c[I>>2]=Ge(g)|0;E=c[H>>2]|0;if((E|0)==7){Wu(c[B>>2]|0,56016,D);break}else{c[A>>2]=E;c[z+4>>2]=7;Qe(0,72520,z);tc()}}}while(0);Jf(o,c[a>>2]|0)|0;z=c[C>>2]|0;if((z|0)!=7){c[w>>2]=z;c[x+4>>2]=7;Qe(0,72520,x);tc()}Wu(c[y>>2]|0,e,v);Jf(n,c[a>>2]|0)|0;u=c[u>>2]|0;if((u|0)!=7){c[t>>2]=u;c[r+4>>2]=7;Qe(0,72520,r);tc()}Wu(c[s>>2]|0,b,d);Jf(j,c[a>>2]|0)|0;b=c[j>>2]|0;if((b|0)!=7){c[q>>2]=b;c[p+4>>2]=7;Qe(0,72520,p);tc()}p=j+8|0;Wu(c[p>>2]|0,56024,o);o=c[j>>2]|0;if((o|0)==7){Wu(c[p>>2]|0,56040,n);i=m;return}else{c[l>>2]=o;c[k+4>>2]=7;Qe(0,72520,k);tc()}}function Gr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;c[g>>2]=13;g=f+8|0;c[g>>2]=0;c[g+4>>2]=0;g=c[a+48>>2]|0;if((g&2|0)!=0){i=e;return}do{if(d){if((g&4|0)!=0){break}i=e;return}else{if((g&32|0)==0){break}i=e;return}}while(0);g=c[a+88>>2]|0;do{if((g|0)!=0){d=a+96|0;if((c[d>>2]|0)!=9){break}if(GF(g,d)|0){break}i=e;return}}while(0);Nf(a+64|0,c[a+112>>2]|0,f,0)|0;d=c[a+28>>2]|0;Tx(b,f,0,c[a+132>>2]|0,+h[d>>3],+h[d+8>>3],+h[d+16>>3],+h[d+24>>3]);Of(f);i=e;return}function Hr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;d=i;g=i;i=i+8|0;h=g;l=i;i=i+16|0;j=l;c[l>>2]=13;f=j+8|0;c[f>>2]=0;c[f+4>>2]=0;k=b+152|0;if((c[(Zu(e,56080,k)|0)>>2]|0)!=9){m=b+160|0;c[m>>2]=0;c[m+4>>2]=0;c[k>>2]=5}if((c[(Yu(e,56088,j,0)|0)>>2]|0)!=0){a[b+168|0]=0;Of(j);i=d;return}e=c[l>>2]|0;if((e|0)!=0){c[g>>2]=e;c[h+4>>2]=0;Qe(0,72520,h);tc()}a[b+168|0]=a[f]&1;Of(j);i=d;return}function Ir(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;l=i;k=i;i=i+8|0;j=k;c[b>>2]=55512;h=b+8|0;c[h>>2]=13;m=b+16|0;c[m>>2]=0;c[m+4>>2]=0;c[b+64>>2]=13;m=b+72|0;c[m>>2]=0;c[m+4>>2]=0;c[b+96>>2]=13;m=b+104|0;c[m>>2]=0;c[m+4>>2]=0;m=b+145|0;do{if((c[g>>2]|0)==9){a[m]=1;m=c[g>>2]|0;if((m|0)==9){k=g+8|0;g=c[k+4>>2]|0;m=b+116|0;c[m>>2]=c[k>>2];c[m+4>>2]=g;break}else{c[k>>2]=m;c[j+4>>2]=9;Qe(0,72520,j);tc()}}else{a[m]=0}}while(0);c[b+48>>2]=0;m=b+24|0;c[m>>2]=0;Kf(h,e)|0;zr(b,d,e,f);c[b>>2]=56056;c[b+152>>2]=13;g=b+160|0;c[g>>2]=0;c[g+4>>2]=0;c[m>>2]=16;Hr(b,0,e,0);i=l;return}function Jr(a){a=a|0;var b=0;b=i;c[a>>2]=56056;Of(a+152|0);Cr(a);HW(a);i=b;return}function Kr(a){a=a|0;var b=0;b=i;c[a>>2]=56056;Of(a+152|0);Cr(a);i=b;return}function Lr(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0.0;k=i;m=i;i=i+8|0;l=m;p=i;i=i+8|0;o=p;s=i;i=i+8|0;t=s;v=i;i=i+8|0;u=v;x=i;i=i+8|0;w=x;z=i;i=i+8|0;y=z;B=i;i=i+16|0;A=B;D=i;i=i+8|0;C=D;F=i;i=i+8|0;E=F;n=i;i=i+16|0;g=n;r=i;i=i+16|0;j=r;c[r>>2]=13;q=j+8|0;c[q>>2]=0;c[q+4>>2]=0;do{if((c[(Yu(d,56120,j,0)|0)>>2]|0)==3){G=c[r>>2]|0;if((G|0)==3){F=c[q>>2]|0;G=FW(32)|0;ie(G,F);c[a+148>>2]=G;break}else{c[F>>2]=G;c[E+4>>2]=3;Qe(0,72520,E);tc()}}else{c[a+148>>2]=0}}while(0);Of(j);do{if((c[(Yu(d,56072,j,0)|0)>>2]|0)==7){E=FW(176)|0;F=c[r>>2]|0;if((F|0)==7){Ir(E,b,c[q>>2]|0,e,f);c[a+152>>2]=E;break}else{c[D>>2]=F;c[C+4>>2]=7;Qe(0,72520,C);tc()}}else{c[a+152>>2]=0}}while(0);Of(j);if(((c[(Yu(d,55464,j,0)|0)>>2]|0)+ -1|0)>>>0<2){f=c[r>>2]|0;if((f+ -1|0)>>>0>=2){c[B>>2]=f;c[A+4>>2]=1;c[A+8>>2]=2;Qe(0,72608,A);tc()}if((f|0)==1){H=+(c[q>>2]|0)}else{H=+h[q>>3]}h[a+160>>3]=H}else{h[a+160>>3]=1.0}Of(j);do{if((c[(Yu(d,56128,j,0)|0)>>2]|0)==3){A=c[r>>2]|0;if((A|0)==3){F=c[q>>2]|0;G=FW(32)|0;ie(G,F);c[a+168>>2]=G;break}else{c[z>>2]=A;c[y+4>>2]=3;Qe(0,72520,y);tc()}}else{c[a+168>>2]=0}}while(0);Of(j);y=a+172|0;do{if((c[(Zu(d,56144,j)|0)>>2]|0)==9){z=c[r>>2]|0;if((z|0)==9){E=q;F=c[E+4>>2]|0;G=y;c[G>>2]=c[E>>2];c[G+4>>2]=F;break}else{c[x>>2]=z;c[w+4>>2]=9;Qe(0,72520,w);tc()}}else{c[y>>2]=0;c[a+176>>2]=0}}while(0);Of(j);do{if((c[(Yu(d,56152,j,0)|0)>>2]|0)==3){w=c[r>>2]|0;if((w|0)==3){F=c[q>>2]|0;G=FW(32)|0;ie(G,F);c[a+180>>2]=G;break}else{c[v>>2]=w;c[u+4>>2]=3;Qe(0,72520,u);tc()}}else{c[a+180>>2]=0}}while(0);Of(j);do{if((c[(Yu(d,56160,j,0)|0)>>2]|0)==4){u=FW(32)|0;v=c[r>>2]|0;if((v|0)!=4){c[s>>2]=v;c[t+4>>2]=4;Qe(0,72520,t);tc()}fe(u,c[q>>2]|0);do{if((te(u,55440)|0)==0){c[a+184>>2]=0}else{s=a+184|0;if((te(u,55984)|0)==0){c[s>>2]=1;break}else{c[s>>2]=0;break}}}while(0);if((u|0)==0){break}ke(u);HW(u)}else{c[a+184>>2]=0}}while(0);Of(j);if((c[(Yu(d,56168,j,0)|0)>>2]|0)!=7){c[a+188>>2]=0;Of(j);i=k;return}d=c[r>>2]|0;if((d|0)!=7){c[p>>2]=d;c[o+4>>2]=7;Qe(0,72520,o);tc()}G=c[q>>2]|0;c[n>>2]=13;p=g+8|0;c[p>>2]=0;c[p+4>>2]=0;do{if((c[(Yu(G,55944,g,0)|0)>>2]|0)==4){o=FW(32)|0;n=c[n>>2]|0;if((n|0)!=4){c[m>>2]=n;c[l+4>>2]=4;Qe(0,72520,l);tc()}fe(o,c[p>>2]|0);l=(te(o,72592)|0)==0|0;if((o|0)==0){break}ke(o);HW(o)}else{l=0}}while(0);Of(g);c[a+188>>2]=l;Of(j);i=k;return}function Mr(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;l=i;k=i;i=i+8|0;j=k;c[b>>2]=55512;h=b+8|0;c[h>>2]=13;c[b+16>>2]=0;c[b+20>>2]=0;c[b+64>>2]=13;c[b+72>>2]=0;c[b+76>>2]=0;c[b+96>>2]=13;c[b+104>>2]=0;c[b+108>>2]=0;m=b+145|0;do{if((c[g>>2]|0)==9){a[m]=1;m=c[g>>2]|0;if((m|0)==9){j=g+8|0;k=c[j+4>>2]|0;m=b+116|0;c[m>>2]=c[j>>2];c[m+4>>2]=k;break}else{c[k>>2]=m;c[j+4>>2]=9;Qe(0,72520,j);tc()}}else{a[m]=0}}while(0);c[b+48>>2]=0;c[b+24>>2]=0;Kf(h,e)|0;zr(b,d,e,f);c[b>>2]=56104;Lr(b,d,e,f,g);i=l;return}function Nr(a){a=a|0;var b=0;b=i;Or(a);HW(a);i=b;return}function Or(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=56104;d=c[a+148>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+152>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+168>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+180>>2]|0;if((d|0)==0){Cr(a);i=b;return}ke(d);HW(d);Cr(a);i=b;return}function Pr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;j=i;i=i+8|0;h=j;m=i;i=i+8|0;l=m;q=i;i=i+8|0;p=q;r=i;i=i+8|0;t=r;o=i;i=i+16|0;e=o;k=i;i=i+16|0;g=k;c[o>>2]=13;n=e+8|0;c[n>>2]=0;c[n+4>>2]=0;do{if((c[(Yu(f,56088,e,0)|0)>>2]|0)==0){s=c[o>>2]|0;if((s|0)==0){a[b+192|0]=a[n]&1;break}else{c[r>>2]=s;c[t+4>>2]=0;Qe(0,72520,t);tc()}}else{a[b+192|0]=0}}while(0);Of(e);t=(c[(Yu(f,56208,e,0)|0)>>2]|0)==4;s=FW(32)|0;do{if(t){r=c[o>>2]|0;if((r|0)==4){fe(s,c[n>>2]|0);c[b+196>>2]=s;break}else{c[q>>2]=r;c[p+4>>2]=4;Qe(0,72520,p);tc()}}else{fe(s,56216);c[b+196>>2]=s}}while(0);Of(e);if((c[(Yu(f,56224,e,0)|0)>>2]|0)!=3){c[b+200>>2]=0;Of(e);i=d;return}c[k>>2]=13;p=g+8|0;c[p>>2]=0;c[p+4>>2]=0;o=c[o>>2]|0;if((o|0)!=3){c[m>>2]=o;c[l+4>>2]=3;Qe(0,72520,l);tc()}l=c[n>>2]|0;do{if((c[(Yu(f,56240,g,0)|0)>>2]|0)==3){f=c[k>>2]|0;if((f|0)!=3){c[j>>2]=f;c[h+4>>2]=3;Qe(0,72520,h);tc()}f=c[p>>2]|0;if((te(f,56248)|0)==0){c[b+200>>2]=1;break}if((te(f,56256)|0)==0){c[b+200>>2]=2;break}if((te(f,56272)|0)==0){c[b+200>>2]=3;break}if((te(f,56288)|0)==0){c[b+200>>2]=4;break}if((te(f,56304)|0)==0){c[b+200>>2]=5;break}if((te(f,56320)|0)==0){c[b+200>>2]=6;break}h=b+200|0;if((te(f,56336)|0)==0){c[h>>2]=7;break}else{c[h>>2]=0;break}}else{c[b+200>>2]=0}}while(0);Of(g);if((te(l,56248)|0)==0){b=b+200|0;switch(c[b>>2]|0){case 7:case 6:case 5:case 4:case 3:{c[b>>2]=0;Of(e);i=d;return};case 0:{c[b>>2]=1;Of(e);i=d;return};default:{Of(e);i=d;return}}}b=b+200|0;if((te(l,56344)|0)!=0){c[b>>2]=0;Of(e);i=d;return}g=c[b>>2]|0;if((g|0)==2|(g|0)==1){c[b>>2]=0;Of(e);i=d;return}else if((g|0)==0){c[b>>2]=7;Of(e);i=d;return}else{Of(e);i=d;return}}function Qr(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=56184;d=c[a+196>>2]|0;if((d|0)!=0){ke(d);HW(d)}Or(a);HW(a);i=b;return}function Rr(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=56184;d=c[a+196>>2]|0;if((d|0)==0){Or(a);i=b;return}ke(d);HW(d);Or(a);i=b;return}function Sr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0.0,z=0,A=0,B=0.0,C=0.0,D=0.0;e=i;r=i;i=i+16|0;u=r;v=i;i=i+32|0;q=v;t=i;i=i+40|0;s=t;l=i;i=i+16|0;f=l;p=i;i=i+32|0;j=p;n=i;i=i+16|0;m=n;o=i;i=i+16|0;g=o;c[l>>2]=13;l=f+8|0;c[l>>2]=0;c[l+4>>2]=0;l=c[a+48>>2]|0;if((l&2|0)!=0){i=e;return}do{if(d){if((l&4|0)!=0){break}i=e;return}else{if((l&32|0)==0){break}i=e;return}}while(0);d=c[a+88>>2]|0;do{if((d|0)!=0){l=a+96|0;if((c[l>>2]|0)!=9){break}if(GF(d,l)|0){break}i=e;return}}while(0);l=a+28|0;x=c[l>>2]|0;d=a+64|0;if((c[d>>2]|0)==5){y=+h[a+160>>3];w=FW(32)|0;ee(w);x=a+124|0;c[x>>2]=w;ne(w,56352,-1)|0;w=a+132|0;z=c[w>>2]|0;do{if((z|0)==0){ne(c[x>>2]|0,56360,-1)|0}else{A=c[z+32>>2]|0;if((A|0)==3){A=c[x>>2]|0;C=+h[z+8>>3];B=+h[z+16>>3];h[k>>3]=+h[z>>3];c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];z=q+8|0;h[k>>3]=C;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=q+16|0;h[k>>3]=B;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];c[q+24>>2]=55800;pe(A,55768,q)|0;break}else if((A|0)==4){A=c[x>>2]|0;D=+h[z+8>>3];B=+h[z+16>>3];C=+h[z+24>>3];v=t;h[k>>3]=+h[z>>3];c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];z=s+8|0;h[k>>3]=D;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=s+16|0;h[k>>3]=B;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=s+24|0;h[k>>3]=C;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];c[s+32>>2]=107;pe(A,55728,s)|0;break}else if((A|0)==1){A=c[x>>2]|0;v=r;h[k>>3]=+h[z>>3];c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];c[u+8>>2]=103;pe(A,55816,u)|0;break}else{break}}}while(0);q=a+196|0;do{if((te(c[q>>2]|0,56216)|0)==0){ne(c[x>>2]|0,56376,-1)|0}else{if((te(c[q>>2]|0,57440)|0)==0){ne(c[x>>2]|0,57448,-1)|0;break}if((te(c[q>>2]|0,58064)|0)==0){ne(c[x>>2]|0,58072,-1)|0;break}if((te(c[q>>2]|0,59480)|0)==0){ne(c[x>>2]|0,59488,-1)|0;break}if((te(c[q>>2]|0,60600)|0)==0){ne(c[x>>2]|0,60616,-1)|0;break}if((te(c[q>>2]|0,61776)|0)==0){ne(c[x>>2]|0,61792,-1)|0;break}if((te(c[q>>2]|0,62360)|0)==0){ne(c[x>>2]|0,62368,-1)|0;break}if((te(c[q>>2]|0,62888)|0)==0){ne(c[x>>2]|0,62896,-1)|0;break}if((te(c[q>>2]|0,55056)|0)!=0){break}ne(c[x>>2]|0,63240,-1)|0}}while(0);ne(c[x>>2]|0,63808,-1)|0;bX(p|0,0,16)|0;h[j+24>>3]=24.0;h[j+16>>3]=24.0;if(y==1.0){Er(a,j,0,0,d)}else{c[n>>2]=13;n=m+8|0;c[n>>2]=0;c[n+4>>2]=0;c[o>>2]=13;n=g+8|0;c[n>>2]=0;c[n+4>>2]=0;Er(a,j,1,0,m);n=c[x>>2]|0;if((n|0)!=0){ke(n);HW(n)}A=FWFW(32)|0;m=c[j>>2]|0;if((m|0)!=4){c[n>>2]=m;c[l+4>>2]=4;Qe(0,72520,l);tc()}fe(k,c[b>>2]|0);do{if((te(k,55416)|0)==0){c[a+168>>2]=0}else{if((te(k,55168)|0)==0){c[a+168>>2]=1;break}if((te(k,63896)|0)==0){c[a+168>>2]=2;break}l=a+168|0;if((te(k,55584)|0)==0){c[l>>2]=3;break}else{c[l>>2]=1;break}}}while(0);if((k|0)==0){break}ke(k);HW(k)}else{c[a+168>>2]=1}}while(0);Of(h);if((c[(Yu(e,63904,h,0)|0)>>2]|0)!=6){c[a+176>>2]=0;Of(h);i=d;return}e=FW(8)|0;j=c[j>>2]|0;if((j|0)!=6){c[f>>2]=j;c[g+4>>2]=6;Qe(0,72520,g);tc()}qr(e,c[b>>2]|0,c[a+28>>2]|0);c[a+176>>2]=e;Of(h);i=d;return}function Ur(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;l=i;k=i;i=i+8|0;j=k;c[b>>2]=55512;h=b+8|0;c[h>>2]=13;c[b+16>>2]=0;c[b+20>>2]=0;c[b+64>>2]=13;c[b+72>>2]=0;c[b+76>>2]=0;c[b+96>>2]=13;c[b+104>>2]=0;c[b+108>>2]=0;m=b+145|0;do{if((c[g>>2]|0)==9){a[m]=1;m=c[g>>2]|0;if((m|0)==9){k=g+8|0;g=c[k+4>>2]|0;m=b+116|0;c[m>>2]=c[k>>2];c[m+4>>2]=g;break}else{c[k>>2]=m;c[j+4>>2]=9;Qe(0,72520,j);tc()}}else{a[m]=0}}while(0);c[b+48>>2]=0;m=b+24|0;c[m>>2]=0;Kf(h,e)|0;zr(b,d,e,f);c[b>>2]=63856;c[b+152>>2]=13;g=b+160|0;c[g>>2]=0;c[g+4>>2]=0;c[m>>2]=2;Tr(b,0,0,e);i=l;return}function Vr(a){a=a|0;var b=0;b=i;Wr(a);HW(a);i=b;return}function Wr(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i;c[a>>2]=63856;Of(a+152|0);b=c[a+176>>2]|0;if((b|0)==0){Cr(a);i=d;return}h=c[b>>2]|0;if((h|0)!=0){e=b+4|0;f=c[e>>2]|0;if((f|0)>0){g=0;do{j=c[h+(g<<2)>>2]|0;if((j|0)!=0){HW(j);h=c[b>>2]|0;f=c[e>>2]|0}g=g+1|0;}while((g|0)<(f|0))}Fe(h)}HW(b);Cr(a);i=d;return}function Xr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;c[g>>2]=13;g=f+8|0;c[g>>2]=0;c[g+4>>2]=0;g=c[a+48>>2]|0;if((g&2|0)!=0){i=e;return}do{if(d){if((g&4|0)!=0){break}i=e;return}else{if((g&32|0)==0){break}i=e;return}}while(0);g=c[a+88>>2]|0;do{if((g|0)!=0){d=a+96|0;if((c[d>>2]|0)!=9){break}if(GF(g,d)|0){break}i=e;return}}while(0);Nf(a+64|0,c[a+112>>2]|0,f,0)|0;d=c[a+28>>2]|0;Tx(b,f,c[a+128>>2]|0,c[a+132>>2]|0,+h[d>>3],+h[d+8>>3],+h[d+16>>3],+h[d+24>>3]);Of(f);i=e;return}function Yr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0.0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0.0,_=0,$=0,aa=0.0,ba=0.0,ca=0.0,da=0.0;e=i;d=i;i=i+8|0;g=d;n=i;i=i+8|0;m=n;p=i;i=i+8|0;o=p;r=i;i=i+8|0;q=r;u=i;i=i+16|0;v=u;x=i;i=i+8|0;y=x;z=i;i=i+16|0;A=z;C=i;i=i+8|0;B=C;D=i;i=i+16|0;E=D;G=i;i=i+8|0;F=G;H=i;i=i+16|0;I=H;J=i;i=i+8|0;K=J;N=i;i=i+16|0;M=N;P=i;i=i+8|0;O=P;Q=i;i=i+16|0;S=Q;L=i;i=i+8|0;T=L;V=i;i=i+8|0;U=V;X=i;i=i+8|0;W=X;$=i;i=i+8|0;_=i;i=i+8|0;Y=_;l=i;i=i+16|0;k=l;w=i;i=i+16|0;t=w;c[l>>2]=13;j=k+8|0;c[j>>2]=0;c[j+4>>2]=0;do{if((c[(Yu(f,63960,k,0)|0)>>2]|0)==3){$=c[l>>2]|0;if(($|0)==3){_=c[j>>2]|0;$=FW(32)|0;ie($,_);c[b+192>>2]=$;break}else{c[_>>2]=$;c[Y+4>>2]=3;Qe(0,72520,Y);tc()}}else{_=FW(32)|0;ee(_);c[b+192>>2]=_;Qe(-1,63968,$);a[b+144|0]=0}}while(0);Of(k);do{if((c[(Yu(f,64e3,k,0)|0)>>2]|0)==1){Y=c[l>>2]|0;if((Y|0)==1){c[b+196>>2]=c[j>>2];break}else{c[X>>2]=Y;c[W+4>>2]=1;Qe(0,72520,W);tc()}}else{c[b+196>>2]=0}}while(0);Of(k);do{if((c[(Yu(f,64008,k,0)|0)>>2]|0)==3){W=c[l>>2]|0;if((W|0)==3){_=c[j>>2]|0;$=FW(32)|0;ie($,_);c[b+200>>2]=$;break}else{c[V>>2]=W;c[U+4>>2]=3;Qe(0,72520,U);tc()}}else{c[b+200>>2]=0}}while(0);Of(k);do{if((c[(Yu(f,64016,k,0)|0)>>2]|0)==6){U=c[l>>2]|0;if((U|0)!=6){c[L>>2]=U;c[T+4>>2]=6;Qe(0,72520,T);tc()}T=c[j>>2]|0;if((c[T+12>>2]|0)<=3){s=69;break}c[w>>2]=13;L=t+8|0;c[L>>2]=0;c[L+4>>2]=0;do{if(((c[(ut(T,0,t)|0)>>2]|0)+ -1|0)>>>0<2){T=c[w>>2]|0;if((T+ -1|0)>>>0>=2){c[Q>>2]=T;c[S+4>>2]=1;c[S+8>>2]=2;Qe(0,72608,S);tc()}if((T|0)==1){R=+(c[L>>2]|0);break}else{R=+h[L>>3];break}}else{R=0.0}}while(0);Of(t);Q=c[l>>2]|0;if((Q|0)!=6){c[P>>2]=Q;c[O+4>>2]=6;Qe(0,72520,O);tc()}do{if(((c[(ut(c[j>>2]|0,1,t)|0)>>2]|0)+ -1|0)>>>0<2){O=c[w>>2]|0;if((O+ -1|0)>>>0>=2){c[N>>2]=O;c[M+4>>2]=1;c[M+8>>2]=2;Qe(0,72608,M);tc()}if((O|0)==1){Z=+(c[L>>2]|0);break}else{Z=+h[L>>3];break}}else{Z=0.0}}while(0);Of(t);M=c[l>>2]|0;if((M|0)!=6){c[J>>2]=M;c[K+4>>2]=6;Qe(0,72520,K);tc()}do{if(((c[(ut(c[j>>2]|0,2,t)|0)>>2]|0)+ -1|0)>>>0<2){J=c[w>>2]|0;if((J+ -1|0)>>>0>=2){c[H>>2]=J;c[I+4>>2]=1;c[I+8>>2]=2;Qe(0,72608,I);tc()}if((J|0)==1){aa=+(c[L>>2]|0);break}else{aa=+h[L>>3];break}}else{aa=0.0}}while(0);Of(t);H=c[l>>2]|0;if((H|0)!=6){c[G>>2]=H;c[F+4>>2]=6;Qe(0,72520,F);tc()}do{if(((c[(ut(c[j>>2]|0,3,t)|0)>>2]|0)+ -1|0)>>>0<2){F=c[w>>2]|0;if((F+ -1|0)>>>0>=2){c[D>>2]=F;c[E+4>>2]=1;c[E+8>>2]=2;Qe(0,72608,E);tc()}if((F|0)==1){ba=+(c[L>>2]|0);break}else{ba=+h[L>>3];break}}else{ba=0.0}}while(0);Of(t);D=c[l>>2]|0;if((D|0)!=6){c[C>>2]=D;c[B+4>>2]=6;Qe(0,72520,B);tc()}B=c[j>>2]|0;if((c[B+12>>2]|0)!=6){$=FW(40)|0;c[$>>2]=55200;h[$+8>>3]=R;h[$+16>>3]=Z;h[$+24>>3]=aa;h[$+32>>3]=ba;c[b+204>>2]=$;break}do{if(((c[(ut(B,4,t)|0)>>2]|0)+ -1|0)>>>0<2){B=c[w>>2]|0;if((B+ -1|0)>>>0>=2){c[z>>2]=B;c[A+4>>2]=1;c[A+8>>2]=2;Qe(0,72608,A);tc()}if((B|0)==1){ca=+(c[L>>2]|0);break}else{ca=+h[L>>3];break}}else{ca=0.0}}while(0);Of(t);z=c[l>>2]|0;if((z|0)!=6){c[x>>2]=z;c[y+4>>2]=6;Qe(0,72520,y);tc()}do{if(((c[(ut(c[j>>2]|0,5,t)|0)>>2]|0)+ -1|0)>>>0<2){w=c[w>>2]|0;if((w+ -1|0)>>>0>=2){c[u>>2]=w;c[v+4>>2]=1;c[v+8>>2]=2;Qe(0,72608,v);tc()}if((w|0)==1){da=+(c[L>>2]|0);break}else{da=+h[L>>3];break}}else{da=0.0}}while(0);Of(t);$=FW(56)|0;h[$+8>>3]=R;h[$+16>>3]=Z;h[$+24>>3]=aa;h[$+32>>3]=ba;c[$>>2]=55216;h[$+40>>3]=ca;h[$+48>>3]=da;c[b+204>>2]=$}else{s=69}}while(0);if((s|0)==69){c[b+204>>2]=0}Of(k);do{if((c[(Yu(f,64024,k,0)|0)>>2]|0)==4){s=FW(32)|0;t=c[l>>2]|0;if((t|0)!=4){c[r>>2]=t;c[q+4>>2]=4;Qe(0,72520,q);tc()}fe(s,c[j>>2]|0);do{if((te(s,63944)|0)==0){c[b+208>>2]=0}else{if((te(s,64032)|0)==0){c[b+208>>2]=1;break}q=b+208|0;if((te(s,64048)|0)==0){c[q>>2]=2;break}else{c[q>>2]=0;break}}}while(0);if((s|0)==0){break}ke(s);HW(s)}else{c[b+208>>2]=0}}while(0);Of(k);do{if((c[(Yu(f,64072,k,0)|0)>>2]|0)==7){q=FW(16)|0;r=c[l>>2]|0;if((r|0)==7){or(q,c[j>>2]|0);c[b+212>>2]=q;break}else{c[p>>2]=r;c[o+4>>2]=7;Qe(0,72520,o);tc()}}else{c[b+212>>2]=0}}while(0);Of(k);do{if((c[(Yu(f,64080,k,0)|0)>>2]|0)==6){o=c[l>>2]|0;if((o|0)==6){c[b+216>>2]=nr(c[j>>2]|0,c[b+28>>2]|0)|0;break}else{c[n>>2]=o;c[m+4>>2]=6;Qe(0,72520,m);tc()}}else{c[b+216>>2]=0}}while(0);Of(k);if((c[(Yu(f,64088,k,0)|0)>>2]|0)!=4){c[b+220>>2]=5;Of(k);i=e;return}f=FW(32)|0;l=c[l>>2]|0;if((l|0)!=4){c[d>>2]=l;c[g+4>>2]=4;Qe(0,72520,g);tc()}fe(f,c[j>>2]|0);c[b+220>>2]=mr(f)|0;if((f|0)==0){Of(k);i=e;return}ke(f);HW(f);Of(k);i=e;return}function Zr(a){a=a|0;var b=0;b=i;_r(a);HW(a);i=b;return}function _r(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=63928;d=c[a+192>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+200>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+204>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+212>>2]|0;if((d|0)!=0){HW(d)}d=c[a+216>>2]|0;if((d|0)==0){Or(a);i=b;return}HW(d);Or(a);i=b;return}function $r(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,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.0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0.0,ma=0.0,na=0.0;d=i;j=i;i=i+16|0;k=j;m=i;i=i+8|0;o=m;r=i;i=i+16|0;q=r;s=i;i=i+8|0;t=s;u=i;i=i+8|0;v=u;w=i;i=i+16|0;x=w;y=i;i=i+8|0;z=y;A=i;i=i+8|0;B=A;D=i;i=i+16|0;C=D;E=i;i=i+16|0;F=E;H=i;i=i+8|0;G=H;J=i;i=i+8|0;K=J;M=i;i=i+8|0;O=M;Q=i;i=i+8|0;P=Q;R=i;i=i+8|0;S=R;V=i;i=i+16|0;U=V;Y=i;i=i+8|0;X=Y;_=i;i=i+16|0;Z=_;aa=i;i=i+8|0;ba=aa;da=i;i=i+16|0;ea=da;fa=i;i=i+8|0;ga=fa;ia=i;i=i+16|0;ha=ia;ka=i;i=i+8|0;$=ka;p=i;i=i+16|0;g=p;W=i;i=i+16|0;T=W;N=i;i=i+16|0;L=N;n=i;i=i+16|0;e=n;c[p>>2]=13;l=g+8|0;c[l>>2]=0;c[l+4>>2]=0;do{if((c[(Yu(f,64128,g,0)|0)>>2]|0)==6){ja=c[p>>2]|0;if((ja|0)!=6){c[ka>>2]=ja;c[$+4>>2]=6;Qe(0,72520,$);tc()}ja=c[l>>2]|0;if((c[ja+12>>2]|0)!=4){I=36;break}c[W>>2]=13;$=T+8|0;c[$>>2]=0;c[$+4>>2]=0;do{if(((c[(ut(ja,0,T)|0)>>2]|0)+ -1|0)>>>0<2){ja=c[W>>2]|0;if((ja+ -1|0)>>>0>=2){c[ia>>2]=ja;c[ha+4>>2]=1;c[ha+8>>2]=2;Qe(0,72608,ha);tc()}if((ja|0)==1){ca=+(c[$>>2]|0);break}else{ca=+h[$>>3];break}}else{ca=0.0}}while(0);Of(T);ha=c[p>>2]|0;if((ha|0)!=6){c[fa>>2]=ha;c[ga+4>>2]=6;Qe(0,72520,ga);tc()}do{if(((c[(ut(c[l>>2]|0,1,T)|0)>>2]|0)+ -1|0)>>>0<2){fa=c[W>>2]|0;if((fa+ -1|0)>>>0>=2){c[da>>2]=fa;c[ea+4>>2]=1;c[ea+8>>2]=2;Qe(0,72608,ea);tc()}if((fa|0)==1){la=+(c[$>>2]|0);break}else{la=+h[$>>3];break}}else{la=0.0}}while(0);Of(T);da=c[p>>2]|0;if((da|0)!=6){c[aa>>2]=da;c[ba+4>>2]=6;Qe(0,72520,ba);tc()}do{if(((c[(ut(c[l>>2]|0,2,T)|0)>>2]|0)+ -1|0)>>>0<2){aa=c[W>>2]|0;if((aa+ -1|0)>>>0>=2){c[_>>2]=aa;c[Z+4>>2]=1;c[Z+8>>2]=2;Qe(0,72608,Z);tc()}if((aa|0)==1){ma=+(c[$>>2]|0);break}else{ma=+h[$>>3];break}}else{ma=0.0}}while(0);Of(T);Z=c[p>>2]|0;if((Z|0)!=6){c[Y>>2]=Z;c[X+4>>2]=6;Qe(0,72520,X);tc()}do{if(((c[(ut(c[l>>2]|0,3,T)|0)>>2]|0)+ -1|0)>>>0<2){W=c[W>>2]|0;if((W+ -1|0)>>>0>=2){c[V>>2]=W;c[U+4>>2]=1;c[U+8>>2]=2;Qe(0,72608,U);tc()}if((W|0)==1){na=+(c[$>>2]|0);break}else{na=+h[$>>3];break}}else{na=0.0}}while(0);Of(T);ka=FW(16)|0;h[ka>>3]=ca;h[ka+8>>3]=la;c[b+192>>2]=ka;ka=FW(16)|0;h[ka>>3]=ma;h[ka+8>>3]=na;c[b+196>>2]=ka}else{I=36}}while(0);if((I|0)==36){ka=FW(16)|0;bX(ka|0,0,16)|0;c[b+192>>2]=ka;ka=FW(16)|0;bX(ka|0,0,16)|0;c[b+196>>2]=ka}Of(g);do{if((c[(Yu(f,64088,g,0)|0)>>2]|0)==6){T=c[p>>2]|0;if((T|0)!=6){c[R>>2]=T;c[S+4>>2]=6;Qe(0,72520,S);tc()}S=c[l>>2]|0;if((c[S+12>>2]|0)!=2){I=54;break}c[N>>2]=13;R=L+8|0;c[R>>2]=0;c[R+4>>2]=0;do{if((c[(ut(S,0,L)|0)>>2]|0)==3){S=c[N>>2]|0;if((S|0)==3){c[b+200>>2]=mr(c[R>>2]|0)|0;break}else{c[Q>>2]=S;c[P+4>>2]=3;Qe(0,72520,P);tc()}}else{c[b+200>>2]=5}}while(0);Of(L);P=c[p>>2]|0;if((P|0)!=6){c[M>>2]=P;c[O+4>>2]=6;Qe(0,72520,O);tc()}do{if((c[(ut(c[l>>2]|0,1,L)|0)>>2]|0)==3){M=c[N>>2]|0;if((M|0)==3){c[b+204>>2]=mr(c[R>>2]|0)|0;break}else{c[J>>2]=M;c[K+4>>2]=3;Qe(0,72520,K);tc()}}else{c[b+204>>2]=5}}while(0);Of(L)}else{I=54}}while(0);if((I|0)==54){c[b+204>>2]=5;c[b+200>>2]=5}Of(g);do{if((c[(Yu(f,64136,g,0)|0)>>2]|0)==6){I=FW(40)|0;J=c[p>>2]|0;if((J|0)==6){vr(I,c[l>>2]|0,0);c[b+208>>2]=I;break}else{c[H>>2]=J;c[G+4>>2]=6;Qe(0,72520,G);tc()}}else{c[b+208>>2]=0}}while(0);Of(g);if(((c[(Yu(f,64144,g,0)|0)>>2]|0)+ -1|0)>>>0<2){G=c[p>>2]|0;if((G+ -1|0)>>>0>=2){c[E>>2]=G;c[F+4>>2]=1;c[F+8>>2]=2;Qe(0,72608,F);tc()}if((G|0)==1){ca=+(c[l>>2]|0)}else{ca=+h[l>>3]}h[b+216>>3]=ca}else{h[b+216>>3]=0.0}Of(g);do{if(((c[(Yu(f,64152,g,0)|0)>>2]|0)+ -1|0)>>>0<2){E=c[p>>2]|0;if((E+ -1|0)>>>0>=2){c[D>>2]=E;c[C+4>>2]=1;c[C+8>>2]=2;Qe(0,72608,C);tc()}if((E|0)==1){ca=+(c[l>>2]|0)}else{ca=+h[l>>3]}C=b+224|0;h[C>>3]=ca;if(ca>=0.0){break}h[C>>3]=0.0}else{h[b+224>>3]=0.0}}while(0);Of(g);do{if((c[(Yu(f,64160,g,0)|0)>>2]|0)==0){C=c[p>>2]|0;if((C|0)==0){a[b+232|0]=a[l]&1;break}else{c[A>>2]=C;c[B+4>>2]=0;Qe(0,72520,B);tc()}}else{a[b+232|0]=0}}while(0);Of(g);do{if((c[(Yu(f,64024,g,0)|0)>>2]|0)==4){A=FW(32)|0;B=c[p>>2]|0;if((B|0)!=4){c[y>>2]=B;c[z+4>>2]=4;Qe(0,72520,z);tc()}fe(A,c[l>>2]|0);do{if((te(A,64168)|0)==0){c[b+236>>2]=0}else{y=b+236|0;if((te(A,64184)|0)==0){c[y>>2]=1;break}else{c[y>>2]=0;break}}}while(0);if((A|0)==0){break}ke(A);HW(A)}else{c[b+236>>2]=0}}while(0);Of(g);do{if(((c[(Yu(f,64200,g,0)|0)>>2]|0)+ -1|0)>>>0<2){y=c[p>>2]|0;if((y+ -1|0)>>>0>=2){c[w>>2]=y;c[x+4>>2]=1;c[x+8>>2]=2;Qe(0,72608,x);tc()}if((y|0)==1){ca=+(c[l>>2]|0)}else{ca=+h[l>>3]}w=b+240|0;h[w>>3]=ca;if(ca>=0.0){break}h[w>>3]=0.0}else{h[b+240>>3]=0.0}}while(0);Of(g);do{if((c[(Yu(f,64208,g,0)|0)>>2]|0)==4){w=FW(32)|0;x=c[p>>2]|0;if((x|0)!=4){c[u>>2]=x;c[v+4>>2]=4;Qe(0,72520,v);tc()}fe(w,c[l>>2]|0);do{if((te(w,64216)|0)==0){c[b+248>>2]=0}else{u=b+248|0;if((te(w,64224)|0)==0){c[u>>2]=1;break}else{c[u>>2]=0;break}}}while(0);if((w|0)==0){break}ke(w);HW(w)}else{c[b+248>>2]=0}}while(0);Of(g);Yu(f,64232,g,0)|0;c[b+252>>2]=0;Of(g);do{if((c[(Yu(f,64240,g,0)|0)>>2]|0)==6){f=c[p>>2]|0;if((f|0)!=6){c[s>>2]=f;c[t+4>>2]=6;Qe(0,72520,t);tc()}s=c[l>>2]|0;if((c[s+12>>2]|0)!=2){break}c[n>>2]=13;f=e+8|0;c[f>>2]=0;c[f+4>>2]=0;if(((c[(ut(s,0,e)|0)>>2]|0)+ -1|0)>>>0<2){s=c[n>>2]|0;if((s+ -1|0)>>>0>=2){c[r>>2]=s;c[q+4>>2]=1;c[q+8>>2]=2;Qe(0,72608,q);tc()}if((s|0)==1){ca=+(c[f>>2]|0)}else{ca=+h[f>>3]}h[b+256>>3]=ca}else{h[b+256>>3]=0.0}Of(e);p=c[p>>2]|0;if((p|0)!=6){c[m>>2]=p;c[o+4>>2]=6;Qe(0,72520,o);tc()}if(((c[(ut(c[l>>2]|0,1,e)|0)>>2]|0)+ -1|0)>>>0<2){l=c[n>>2]|0;if((l+ -1|0)>>>0>=2){c[j>>2]=l;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,72608,k);tc()}if((l|0)==1){ca=+(c[f>>2]|0)}else{ca=+h[f>>3]}h[b+264>>3]=ca}else{h[b+264>>3]=0.0}Of(e);Of(g);i=d;return}}while(0);bX(b+256|0,0,16)|0;Of(g);i=d;return}function as(a){a=a|0;var b=0;b=i;bs(a);HW(a);i=b;return}function bs(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=64104;d=c[a+192>>2]|0;if((d|0)!=0){HW(d)}d=c[a+196>>2]|0;if((d|0)!=0){HW(d)}d=c[a+208>>2]|0;if((d|0)!=0){HW(d)}d=c[a+252>>2]|0;if((d|0)==0){Or(a);i=b;return}Su(d);HW(d);Or(a);i=b;return}function cs(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0.0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0.0,K=0.0,L=0.0;f=i;q=i;i=i+16|0;r=q;o=i;i=i+16|0;p=o;m=i;i=i+8|0;u=m;w=i;i=i+8|0;x=w;B=i;i=i+16|0;D=B;F=i;i=i+32|0;C=F;E=i;i=i+40|0;G=E;v=i;i=i+16|0;e=v;s=i;i=i+32|0;l=s;t=i;i=i+16|0;j=t;n=i;i=i+16|0;g=n;c[v>>2]=13;v=e+8|0;c[v>>2]=0;c[v+4>>2]=0;v=c[a+48>>2]|0;if((v&2|0)!=0){i=f;return}do{if(d){if((v&4|0)!=0){break}i=f;return}else{if((v&32|0)==0){break}i=f;return}}while(0);d=c[a+88>>2]|0;do{if((d|0)!=0){v=a+96|0;if((c[v>>2]|0)!=9){break}if(GF(d,v)|0){break}i=f;return}}while(0);v=a+28|0;d=c[v>>2]|0;A=+h[d+24>>3];if(+h[d+8>>3]==A){y=c[a+128>>2]|0;if((y|0)==0){J=1.0}else{J=+wd[c[(c[y>>2]|0)+12>>2]&1](y);d=c[v>>2]|0;A=+h[d+24>>3]}h[d+24>>3]=J+A}d=a+64|0;do{if((c[d>>2]|0)==5){A=+h[a+160>>3];y=FW(32)|0;ee(y);z=a+124|0;c[z>>2]=y;ne(y,56352,-1)|0;y=a+132|0;H=c[y>>2]|0;do{if((H|0)!=0){I=c[H+32>>2]|0;if((I|0)==3){I=c[z>>2]|0;K=+h[H+8>>3];J=+h[H+16>>3];G=F;h[k>>3]=+h[H>>3];c[G>>2]=c[k>>2];c[G+4>>2]=c[k+4>>2];H=C+8|0;h[k>>3]=K;c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];H=C+16|0;h[k>>3]=J;c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];c[C+24>>2]=55808;pe(I,55768,C)|0;break}else if((I|0)==1){I=c[z>>2]|0;G=B;h[k>>3]=+h[H>>3];c[G>>2]=c[k>>2];c[G+4>>2]=c[k+4>>2];c[D+8>>2]=71;pe(I,55816,D)|0;break}else if((I|0)==4){I=c[z>>2]|0;L=+h[H+8>>3];J=+h[H+16>>3];K=+h[H+24>>3];F=E;h[k>>3]=+h[H>>3];c[F>>2]=c[k>>2];c[F+4>>2]=c[k+4>>2];H=G+8|0;h[k>>3]=L;c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];H=G+16|0;h[k>>3]=J;c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];H=G+24|0;h[k>>3]=K;c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];c[G+32>>2]=75;pe(I,55728,G)|0;break}else{break}}}while(0);B=a+128|0;C=c[B>>2]|0;if((C|0)!=0){I=(jd[c[(c[C>>2]|0)+24>>2]&511](C)|0)==1;C=c[z>>2]|0;if(I){ne(C,64248,-1)|0;C=c[B>>2]|0;C=jd[c[(c[C>>2]|0)+16>>2]&511](C)|0;D=c[B>>2]|0;D=jd[c[(c[D>>2]|0)+20>>2]&511](D)|0;F=c[z>>2]|0;if((C|0)>0){E=0;while(1){I=w;h[k>>3]=+h[D+(E<<3)>>3];c[I>>2]=c[k>>2];c[I+4>>2]=c[k+4>>2];pe(F,64256,x)|0;E=E+1|0;F=c[z>>2]|0;if((E|0)<(C|0)){}else{break}}}ne(F,64272,-1)|0}else{ne(C,64280,-1)|0}I=c[z>>2]|0;H=c[B>>2]|0;L=+wd[c[(c[H>>2]|0)+12>>2]&1](H);H=m;h[k>>3]=L;c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];pe(I,64288,u)|0}I=c[z>>2]|0;H=c[a+192>>2]|0;G=c[v>>2]|0;L=+h[H+8>>3]- +h[G+8>>3];F=o;h[k>>3]=+h[H>>3]- +h[G>>3];c[F>>2]=c[k>>2];c[F+4>>2]=c[k+4>>2];F=p+8|0;h[k>>3]=L;c[F>>2]=c[k>>2];c[F+4>>2]=c[k+4>>2];pe(I,55832,p)|0;I=c[z>>2]|0;F=c[a+196>>2]|0;G=c[v>>2]|0;L=+h[F+8>>3]- +h[G+8>>3];H=q;h[k>>3]=+h[F>>3]- +h[G>>3];c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];H=r+8|0;h[k>>3]=L;c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];pe(I,64304,r)|0;ne(c[z>>2]|0,55928,-1)|0;ne(c[z>>2]|0,63808,-1)|0;bX(s|0,0,16)|0;I=c[v>>2]|0;h[l+16>>3]=+h[I+16>>3]- +h[I>>3];h[l+24>>3]=+h[I+24>>3]- +h[I+8>>3];if(A==1.0){Er(a,l,0,0,d)}else{c[t>>2]=13;m=j+8|0;c[m>>2]=0;c[m+4>>2]=0;c[n>>2]=13;m=g+8|0;c[m>>2]=0;c[m+4>>2]=0;Er(a,l,1,0,j);m=c[z>>2]|0;if((m|0)!=0){ke(m);HW(m)}I=FWFW(8)|0;k=c[k>>2]|0;if((k|0)!=6){c[h>>2]=k;c[j+4>>2]=6;Qe(0,72520,j);tc()}qr(f,c[d>>2]|0,c[b+28>>2]|0);c[b+192>>2]=f;Of(e);i=g;return}function es(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i;c[a>>2]=64336;b=c[a+192>>2]|0;if((b|0)==0){Or(a);HW(a);i=d;return}h=c[b>>2]|0;if((h|0)!=0){e=b+4|0;f=c[e>>2]|0;if((f|0)>0){g=0;do{j=c[h+(g<<2)>>2]|0;if((j|0)!=0){HW(j);h=c[b>>2]|0;f=c[e>>2]|0}g=g+1|0;}while((g|0)<(f|0))}Fe(h)}HW(b);Or(a);HW(a);i=d;return}function fs(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i;c[a>>2]=64336;b=c[a+192>>2]|0;if((b|0)==0){Or(a);i=d;return}h=c[b>>2]|0;if((h|0)!=0){e=b+4|0;f=c[e>>2]|0;if((f|0)>0){g=0;do{j=c[h+(g<<2)>>2]|0;if((j|0)!=0){HW(j);h=c[b>>2]|0;f=c[e>>2]|0}g=g+1|0;}while((g|0)<(f|0))}Fe(h)}HW(b);Or(a);i=d;return}function gs(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0.0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0.0,ma=0.0,na=0.0,oa=0.0,pa=0.0,qa=0.0,ra=0.0,sa=0.0,ta=0.0;f=i;y=i;i=i+48|0;w=y;E=i;i=i+16|0;u=E;C=i;i=i+48|0;D=C;A=i;i=i+16|0;B=A;da=i;i=i+16|0;ea=da;ba=i;i=i+32|0;ca=ba;$=i;i=i+40|0;aa=$;o=i;i=i+16|0;n=o;q=i;i=i+16|0;p=q;P=i;i=i+16|0;O=P;R=i;i=i+32|0;Q=R;H=i;i=i+40|0;M=H;ha=i;i=i+16|0;ia=ha;Y=i;i=i+32|0;Z=Y;_=i;i=i+40|0;fa=_;r=i;i=i+16|0;F=r;x=i;i=i+16|0;z=x;L=i;i=i+16|0;K=L;S=i;i=i+32|0;I=S;J=i;i=i+40|0;N=J;T=i;i=i+16|0;U=T;X=i;i=i+32|0;ga=X;V=i;i=i+40|0;W=V;ja=i;i=i+16|0;e=ja;v=i;i=i+16|0;m=v;t=i;i=i+16|0;l=t;s=i;i=i+32|0;j=s;c[ja>>2]=13;ja=e+8|0;c[ja>>2]=0;c[ja+4>>2]=0;ja=c[a+48>>2]|0;if((ja&2|0)!=0){i=f;return}do{if(d){if((ja&4|0)!=0){break}i=f;return}else{if((ja&32|0)==0){break}i=f;return}}while(0);d=c[a+88>>2]|0;do{if((d|0)!=0){ja=a+96|0;if((c[ja>>2]|0)!=9){break}if(GF(d,ja)|0){break}i=f;return}}while(0);d=a+64|0;ka=a+24|0;do{if((c[d>>2]|0)==5){g=11}else{if((c[ka>>2]|0)==9){g=11;break}n=a+132|0}}while(0);do{if((g|0)==11){G=+h[a+160>>3];ja=FW(32)|0;ee(ja);g=a+124|0;c[g>>2]=ja;ka=c[ka>>2]|0;if((ka|0)==12){j=a+132|0;m=c[j>>2]|0;do{if((m|0)!=0){l=c[m+32>>2]|0;if((l|0)==1){ka=ha;h[k>>3]=+h[m>>3];c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];c[ia+8>>2]=71;pe(ja,55816,ia)|0}else if((l|0)==3){ra=+h[m+8>>3];sa=+h[m+16>>3];ka=Y;h[k>>3]=+h[m>>3];c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];ka=Z+8|0;h[k>>3]=ra;c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];ka=Z+16|0;h[k>>3]=sa;c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];c[Z+24>>2]=55808;pe(ja,55768,Z)|0}else if((l|0)==4){qa=+h[m+8>>3];ra=+h[m+16>>3];sa=+h[m+24>>3];ka=_;h[k>>3]=+h[m>>3];c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];ka=fa+8|0;h[k>>3]=qa;c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];ka=fa+16|0;h[k>>3]=ra;c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];ka=fa+24|0;h[k>>3]=sa;c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];c[fa+32>>2]=75;pe(ja,55728,fa)|0}m=c[j>>2]|0;l=c[m+32>>2]|0;if((l|0)==3){ka=c[g>>2]|0;ra=+h[m+8>>3];sa=+h[m+16>>3];ja=R;h[k>>3]=+h[m>>3];c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=Q+8|0;h[k>>3]=ra;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=Q+16|0;h[k>>3]=sa;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];c[Q+24>>2]=55800;pe(ka,55768,Q)|0;break}else if((l|0)==1){ka=c[g>>2]|0;ja=P;h[k>>3]=+h[m>>3];c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];c[O+8>>2]=103;pe(ka,55816,O)|0;break}else if((l|0)==4){ka=c[g>>2]|0;qa=+h[m+8>>3];ra=+h[m+16>>3];sa=+h[m+24>>3];ja=H;h[k>>3]=+h[m>>3];c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=M+8|0;h[k>>3]=qa;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=M+16|0;h[k>>3]=ra;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=M+24|0;h[k>>3]=sa;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];c[M+32>>2]=107;pe(ka,55728,M)|0;break}else{break}}}while(0);m=a+192|0;t=c[m>>2]|0;r=c[t+4>>2]|0;if((r|0)<=0){n=j;break}l=a+28|0;s=0;while(1){t=c[(c[t>>2]|0)+(s<<2)>>2]|0;G=+h[t>>3];if((r|0)>(s|0)){ma=+h[t+8>>3];la=+h[t+16>>3];na=+h[t+40>>3]}else{ma=0.0;la=0.0;na=0.0}t=c[l>>2]|0;ra=G- +h[t>>3];sa=(ma-na)*.5+(na- +h[t+8>>3]);ne(c[g>>2]|0,64456,-1)|0;t=c[g>>2]|0;r=q;h[k>>3]=ra;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=p+8|0;h[k>>3]=sa;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];pe(t,55832,p)|0;t=c[g>>2]|0;r=o;h[k>>3]=la-G+ra;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=n+8|0;h[k>>3]=sa;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];pe(t,64304,n)|0;ne(c[g>>2]|0,55928,-1)|0;s=s+1|0;t=c[m>>2]|0;r=c[t+4>>2]|0;if((s|0)>=(r|0)){n=j;break}}}else if((ka|0)==10){n=a+132|0;j=c[n>>2]|0;do{if((j|0)!=0){l=c[j+32>>2]|0;if((l|0)==1){ka=T;h[k>>3]=+h[j>>3];c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];c[U+8>>2]=71;pe(ja,55816,U)|0}else if((l|0)==4){qa=+h[j+8>>3];ra=+h[j+16>>3];sa=+h[j+24>>3];ka=V;h[k>>3]=+h[j>>3];c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];ka=W+8|0;h[k>>3]=qa;c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];ka=W+16|0;h[k>>3]=ra;c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];ka=W+24|0;h[k>>3]=sa;c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];c[W+32>>2]=75;pe(ja,55728,W)|0}else if((l|0)==3){ra=+h[j+8>>3];sa=+h[j+16>>3];ka=X;h[k>>3]=+h[j>>3];c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];ka=ga+8|0;h[k>>3]=ra;c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];ka=ga+16|0;h[k>>3]=sa;c[ka>>2]=c[k>>2];c[ka+4>>2]=c[k+4>>2];c[ga+24>>2]=55808;pe(ja,55768,ga)|0}l=c[n>>2]|0;j=c[l+32>>2]|0;if((j|0)==1){ka=c[g>>2]|0;ja=L;h[k>>3]=+h[l>>3];c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];c[K+8>>2]=103;pe(ka,55816,K)|0;break}else if((j|0)==4){ka=c[g>>2]|0;qa=+h[l+8>>3];ra=+h[l+16>>3];sa=+h[l+24>>3];ja=J;h[k>>3]=+h[l>>3];c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=N+8|0;h[k>>3]=qa;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=N+16|0;h[k>>3]=ra;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=N+24|0;h[k>>3]=sa;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];c[N+32>>2]=107;pe(ka,55728,N)|0;break}else if((j|0)==3){ka=c[g>>2]|0;ra=+h[l+8>>3];sa=+h[l+16>>3];ja=S;h[k>>3]=+h[l>>3];c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=I+8|0;h[k>>3]=ra;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=I+16|0;h[k>>3]=sa;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];c[I+24>>2]=55800;pe(ka,55768,I)|0;break}else{break}}}while(0);j=a+192|0;p=c[j>>2]|0;m=c[p+4>>2]|0;if((m|0)<=0){break}l=a+28|0;o=0;do{p=c[(c[p>>2]|0)+(o<<2)>>2]|0;G=+h[p>>3];if((m|0)>(o|0)){la=+h[p+16>>3];ma=+h[p+40>>3]}else{la=0.0;ma=0.0}p=c[l>>2]|0;ra=G- +h[p>>3];sa=ma- +h[p+8>>3];ne(c[g>>2]|0,64456,-1)|0;p=c[g>>2]|0;m=x;h[k>>3]=ra;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];m=z+8|0;h[k>>3]=sa;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];pe(p,55832,z)|0;p=c[g>>2]|0;m=r;h[k>>3]=la-G+ra;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];m=F+8|0;h[k>>3]=sa;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];pe(p,64304,F)|0;ne(c[g>>2]|0,55928,-1)|0;o=o+1|0;p=c[j>>2]|0;m=c[p+4>>2]|0;}while((o|0)<(m|0))}else{Of(d);n=a+132|0;p=c[n>>2]|0;do{if((p|0)!=0){o=c[p+32>>2]|0;if((o|0)==4){ka=c[g>>2]|0;qa=+h[p+8>>3];ra=+h[p+16>>3];sa=+h[p+24>>3];ja=$;h[k>>3]=+h[p>>3];c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=aa+8|0;h[k>>3]=qa;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=aa+16|0;h[k>>3]=ra;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=aa+24|0;h[k>>3]=sa;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];c[aa+32>>2]=107;pe(ka,55728,aa)|0;break}else if((o|0)==3){ka=c[g>>2]|0;ra=+h[p+8>>3];sa=+h[p+16>>3];ja=ba;h[k>>3]=+h[p>>3];c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=ca+8|0;h[k>>3]=ra;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];ja=ca+16|0;h[k>>3]=sa;c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];c[ca+24>>2]=55800;pe(ka,55768,ca)|0;break}else if((o|0)==1){ka=c[g>>2]|0;ja=da;h[k>>3]=+h[p>>3];c[ja>>2]=c[k>>2];c[ja+4>>2]=c[k+4>>2];c[ea+8>>2]=103;pe(ka,55816,ea)|0;break}else{break}}}while(0);o=a+192|0;q=c[o>>2]|0;r=c[q+4>>2]|0;if((r|0)>0){p=0;do{q=c[(c[q>>2]|0)+(p<<2)>>2]|0;la=+h[q>>3];if((r|0)>(p|0)){qa=+h[q+24>>3];ma=+h[q+16>>3];na=+h[q+8>>3];pa=+h[q+56>>3];oa=+h[q+48>>3];ra=+h[q+40>>3];sa=+h[q+32>>3]}else{qa=0.0;ma=0.0;na=0.0;pa=0.0;oa=0.0;ra=0.0;sa=0.0}q=~~(na-ra);ta=+(((q|0)>-1?q:0-q|0)|0)*.25;q=c[g>>2]|0;r=A;h[k>>3]=sa;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=B+8|0;h[k>>3]=ra;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];pe(q,55832,B)|0;q=c[g>>2]|0;r=C;h[k>>3]=sa-ta;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=D+8|0;h[k>>3]=ra+ta;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=D+16|0;h[k>>3]=la-ta;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=D+24|0;h[k>>3]=na-ta;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=D+32|0;h[k>>3]=la;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=D+40|0;h[k>>3]=na;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];pe(q,55856,D)|0;q=c[g>>2]|0;r=E;h[k>>3]=ma;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=u+8|0;h[k>>3]=qa;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];pe(q,64304,u)|0;q=c[g>>2]|0;r=y;h[k>>3]=ma+ta;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=w+8|0;h[k>>3]=qa-ta;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=w+16|0;h[k>>3]=oa+ta;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=w+24|0;h[k>>3]=pa+ta;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=w+32|0;h[k>>3]=oa;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=w+40|0;h[k>>3]=pa;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];pe(q,55856,w)|0;ne(c[g>>2]|0,55912,-1)|0;p=p+1|0;q=c[o>>2]|0;r=c[q+4>>2]|0;}while((p|0)<(r|0))}c[v>>2]=13;o=m+8|0;c[o>>2]=0;c[o+4>>2]=0;c[t>>2]=13;o=l+8|0;c[o>>2]=0;c[o+4>>2]=0;o=c[a+28>>2]|0;h[s>>3]=+h[o>>3];h[j+8>>3]=+h[o+8>>3];h[j+16>>3]=+h[o+16>>3];h[j+24>>3]=+h[o+24>>3];Er(a,j,1,0,m);o=c[g>>2]|0;if((o|0)!=0){ke(o);HW(o)}ka=FW(32)|0;fe(ka,63816);c[g>>2]=ka;Fr(a,63832,m,63840,1.0,64472,l);if(G==1.0){Er(a,j,0,l,d)}else{Er(a,j,1,l,m);o=c[g>>2]|0;if((o|0)!=0){ke(o);HW(o)}ka=FW(32)|0;fe(ka,63816);c[g>>2]=ka;Fr(a,63832,m,63840,G,0,l);Er(a,j,0,l,d)}g=c[g>>2]|0;if((g|0)==0){break}ke(g);HW(g);break}}}while(0);Nf(d,c[a+112>>2]|0,e,0)|0;ka=c[a+28>>2]|0;Tx(b,e,0,c[n>>2]|0,+h[ka>>3],+h[ka+8>>3],+h[ka+16>>3],+h[ka+24>>3]);Of(e);i=f;return}function hs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;l=i;k=i;i=i+8|0;j=k;c[b>>2]=55512;h=b+8|0;c[h>>2]=13;c[b+16>>2]=0;c[b+20>>2]=0;c[b+64>>2]=13;c[b+72>>2]=0;c[b+76>>2]=0;c[b+96>>2]=13;c[b+104>>2]=0;c[b+108>>2]=0;m=b+145|0;do{if((c[g>>2]|0)==9){a[m]=1;m=c[g>>2]|0;if((m|0)==9){k=g+8|0;g=c[k+4>>2]|0;m=b+116|0;c[m>>2]=c[k>>2];c[m+4>>2]=g;break}else{c[k>>2]=m;c[j+4>>2]=9;Qe(0,72520,j);tc()}}else{a[m]=0}}while(0);c[b+48>>2]=0;m=b+24|0;c[m>>2]=0;Kf(h,e)|0;zr(b,d,e,f);c[b>>2]=64496;c[m>>2]=20;c[b+152>>2]=0;is(b,0,f,e);i=l;return}function is(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;k=i;o=i;i=i+8|0;g=i;i=i+8|0;d=g;n=i;i=i+8|0;m=n;l=i;i=i+16|0;h=l;p=i;i=i+8|0;c[l>>2]=13;j=h+8|0;c[j>>2]=0;c[j+4>>2]=0;q=_t(e)|0;e=b+148|0;c[e>>2]=q;do{if((q|0)!=0){t=b+116|0;s=c[t+4>>2]|0;r=p;c[r>>2]=c[t>>2];c[r+4>>2]=s;$W(o|0,p|0,8)|0;p=Pv(q,o)|0;c[b+152>>2]=p;o=b+176|0;a[o]=0;if((p|0)==0){break}if(((c[p+8>>2]|0)+ -1|0)>>>0>=2){break}a[o]=a[(c[e>>2]|0)+20|0]&1}}while(0);t=c[b+64>>2]|0;if((t|0)==5|(t|0)==13){a[b+176|0]=1}do{if((c[(Yu(f,63888,h,0)|0)>>2]|0)==4){e=FW(32)|0;o=c[l>>2]|0;if((o|0)!=4){c[n>>2]=o;c[m+4>>2]=4;Qe(0,72520,m);tc()}fe(e,c[j>>2]|0);a:do{if((te(e,55416)|0)==0){c[b+156>>2]=0}else{if((te(e,63896)|0)==0){c[b+156>>2]=2;break}do{if((te(e,55584)|0)!=0){if((te(e,56120)|0)==0){break}c[b+156>>2]=1;break a}}while(0);c[b+156>>2]=3}}while(0);if((e|0)==0){break}ke(e);HW(e)}else{c[b+156>>2]=1}}while(0);Of(h);if((c[(Yu(f,64512,h,0)|0)>>2]|0)!=7){c[b+160>>2]=0;Of(h);t=55424;Yu(f,t,h,0)|0;t=b+164|0;c[t>>2]=0;Of(h);t=64520;Yu(f,t,h,0)|0;t=b+168|0;c[t>>2]=0;Of(h);t=56080;Yu(f,t,h,0)|0;t=b+172|0;c[t>>2]=0;Of(h);i=k;return}m=FWFW(16)|0;wo(q);c[r>>2]=0;t=e+24|0;ra=c[t>>2]|0;if((ra|0)>0){P=e+28|0;qa=0;do{a:do{if((qa|0)<(ra|0)){while(1){ra=hE(a[(c[P>>2]|0)+qa|0]|0)|0;qa=c[r>>2]|0;if(!ra){break}qa=qa+1|0;c[r>>2]=qa;ra=c[t>>2]|0;if((qa|0)>=(ra|0)){break a}}ra=c[t>>2]|0}}while(0);if((qa|0)<(ra|0)){while(1){qa=qa+1|0;if((qa|0)>=(ra|0)){break}if(hE(a[(c[P>>2]|0)+qa|0]|0)|0){break}ra=c[t>>2]|0}ra=FW(32)|0;xa=c[r>>2]|0;he(ra,e,xa,qa-xa|0);yo(q,ra);c[r>>2]=qa;ra=c[t>>2]|0}}while((qa|0)<(ra|0))}c[r>>2]=2;t=q+8|0;if((c[t>>2]|0)<=2){T=37;break}qa=2;e=-1;P=-1;do{do{if((qa|0)>1){xa=(te(c[(c[q>>2]|0)+(qa<<2)>>2]|0,64640)|0)==0;ra=c[r>>2]|0;if(xa){qa=ra;e=ra+ -2|0;break}if((ra|0)<=5){qa=ra;break}xa=(te(c[(c[q>>2]|0)+(ra<<2)>>2]|0,64648)|0)==0;ra=c[r>>2]|0;qa=ra;P=xa?ra+ -6|0:P}}while(0);qa=qa+1|0;c[r>>2]=qa;}while((qa|0)<(c[t>>2]|0));ra=(e|0)>-1;do{if(ra&n){qa=c[(c[q>>2]|0)+(e<<2)>>2]|0;if((te(qa,64656)|0)==0){T=25;break}le(qa)|0;ne(qa,64656,-1)|0;u=q}else{T=25}}while(0);if((T|0)==25){if(!ra){T=37;break}u=q}qa=c[(c[u>>2]|0)+(e<<2)>>2]|0;do{if((c[qa+24>>2]|0)>0){qa=c[qa+28>>2]|0;if((a[qa]|0)!=47){T=36;break}if((f|0)!=0){z=wy(f,qa+1|0)|0;if((z|0)!=0){A=0;break}}if(!n){Qe(-1,64688,oa);z=0;A=0;break}oa=FW(24)|0;ra=b+112|0;Qu(oa,c[ra>>2]|0);z=FW(3544)|0;ra=c[ra>>2]|0;c[na>>2]=0;c[ma+4>>2]=0;xa=FW(32)|0;fe(xa,64672);$W(A|0,na|0,8)|0;by(z,ra,64664,aa,xa,1,oa);if((oa|0)!=0){Su(oa);HW(oa)}a[b+177|0]=1;A=1}else{T=36}}while(0);if((T|0)==36){Qe(-1,64728,z);z=0;A=0}ma=e+1|0;pa=+Ie(c[(c[(c[u>>2]|0)+(ma<<2)>>2]|0)+28>>2]|0);if((z|0)==0){break}T=c[b+128>>2]|0;if((T|0)==0){la=0.0}else{la=+wd[c[(c[T>>2]|0)+12>>2]&1](T)}do{if(o){xa=ve(d)|0;o=c[d+24>>2]|0;if(xa){o=(o+ -2|0)/2|0}d=FW(32)|0;ee(d);c[r>>2]=0;if((o|0)<=0){o=0;break}while(1){me(d,42)|0;xa=(c[r>>2]|0)+1|0;c[r>>2]=xa;if((xa|0)>=(o|0)){o=0;break}}}else{o=1}}while(0);T=FW(32)|0;ee(T);aa=b+124|0;if(m){ne(c[aa>>2]|0,64832,-1)|0}ne(c[aa>>2]|0,56352,-1)|0;ne(c[aa>>2]|0,64848,-1)|0;do{if(g){B=b+28|0;E=c[B>>2]|0;sa=+h[E+16>>3]- +h[E>>3]-la*2.0+-4.0;if(pa==0.0){j=d+24|0;D=c[j>>2]|0;pa=20.0;while(1){ua=+h[E+24>>3]- +h[E+8>>3];c[r>>2]=0;if((D|0)>0){ta=sa/pa;while(1){ls(0,d,T,v,z,y,ta,0,n);ua=ua-pa;D=c[j>>2]|0;if((c[r>>2]|0)<(D|0)){}else{break}}}if(ua>=pa*.33){break}pa=pa+-1.0;if(pa<=1.0){break}E=c[B>>2]|0}E=c[(c[u>>2]|0)+(ma<<2)>>2]|0;le(E)|0;xa=S;h[k>>3]=pa;c[xa>>2]=c[k>>2];c[xa+4>>2]=c[k+4>>2];pe(E,64856,Q)|0;E=c[B>>2]|0}ta=+h[E+24>>3]- +h[E+8>>3];if((P|0)>-1){xa=c[(c[u>>2]|0)+(P+4<<2)>>2]|0;le(xa)|0;me(xa,48)|0;xa=c[(c[u>>2]|0)+(P+5<<2)>>2]|0;le(xa)|0;ra=N;h[k>>3]=ta;c[ra>>2]=c[k>>2];c[ra+4>>2]=c[k+4>>2];pe(xa,64856,O)|0}do{if((q|0)!=0){c[r>>2]=0;if((c[t>>2]|0)>0){j=0}else{break}do{me(oe(c[aa>>2]|0,c[(c[u>>2]|0)+(j<<2)>>2]|0)|0,32)|0;j=(c[r>>2]|0)+1|0;c[r>>2]=j;}while((j|0)<(c[t>>2]|0))}}while(0);if((P|0)<0){xa=c[aa>>2]|0;ra=C;h[k>>3]=ta;c[ra>>2]=c[k>>2];c[ra+4>>2]=c[k+4>>2];pe(xa,64864,M)|0}c[r>>2]=0;j=d+24|0;if((c[j>>2]|0)<=0){break}sa=sa/pa;ua=la+2.0;ta=-0.0-pa;va=0.0;while(1){ls(0,d,T,v,z,y,sa,0,n);wa=pa*+h[s>>3];h[s>>3]=wa;if((l|0)==2){xa=c[B>>2]|0;wa=+h[xa+16>>3]- +h[xa>>3]-la+-2.0-wa}else if((l|0)==1){xa=c[B>>2]|0;wa=(+h[xa+16>>3]- +h[xa>>3]-wa)*.5}else{wa=ua}xa=c[aa>>2]|0;ra=w;h[k>>3]=wa-va;c[ra>>2]=c[k>>2];c[ra+4>>2]=c[k+4>>2];ra=x+8|0;h[k>>3]=ta;c[ra>>2]=c[k>>2];c[ra+4>>2]=c[k+4>>2];pe(xa,64888,x)|0;ms(0,T,c[aa>>2]|0);ne(c[aa>>2]|0,64912,-1)|0;if((c[r>>2]|0)<(c[j>>2]|0)){va=wa}else{break}}}else{if((j|0)<=0){c[r>>2]=0;ls(0,d,T,v,z,y,0.0,0,n);if(pa==0.0){xa=c[b+28>>2]|0;sa=la*2.0;pa=+h[xa+24>>3]- +h[xa+8>>3]-sa;sa=(+h[xa+16>>3]- +h[xa>>3]+-4.0-sa)/+h[s>>3];pa=+R(+(sa<pa?sa:pa));xa=c[(c[u>>2]|0)+(ma<<2)>>2]|0;le(xa)|0;ra=ja;h[k>>3]=pa;c[ra>>2]=c[k>>2];c[ra+4>>2]=c[k+4>>2];pe(xa,64856,ka)|0}sa=pa*+h[s>>3];h[s>>3]=sa;if((l|0)==1){xa=c[b+28>>2]|0;s=xa;la=(+h[xa+16>>3]- +h[xa>>3]-sa)*.5}else if((l|0)==2){xa=c[b+28>>2]|0;s=xa;la=+h[xa+16>>3]- +h[xa>>3]-la+-2.0-sa}else{s=c[b+28>>2]|0;la=la+2.0}pa=(+h[s+24>>3]- +h[s+8>>3])*.5-pa*.4;if((P|0)>-1){xa=c[(c[u>>2]|0)+(P+4<<2)>>2]|0;le(xa)|0;ra=ba;h[k>>3]=la;c[ra>>2]=c[k>>2];c[ra+4>>2]=c[k+4>>2];pe(xa,64856,ca)|0;xa=c[(c[u>>2]|0)+(P+5<<2)>>2]|0;le(xa)|0;ra=da;h[k>>3]=pa;c[ra>>2]=c[k>>2];c[ra+4>>2]=c[k+4>>2];pe(xa,64856,ea)|0}do{if((q|0)!=0){c[r>>2]=0;if((c[t>>2]|0)>0){s=0}else{break}do{me(oe(c[aa>>2]|0,c[(c[u>>2]|0)+(s<<2)>>2]|0)|0,32)|0;s=(c[r>>2]|0)+1|0;c[r>>2]=s;}while((s|0)<(c[t>>2]|0))}}while(0);if((P|0)<0){xa=c[aa>>2]|0;ra=$;h[k>>3]=la;c[ra>>2]=c[k>>2];c[ra+4>>2]=c[k+4>>2];ra=_+8|0;h[k>>3]=pa;c[ra>>2]=c[k>>2];c[ra+4>>2]=c[k+4>>2];pe(xa,64920,_)|0}ms(0,T,c[aa>>2]|0);ne(c[aa>>2]|0,64912,-1)|0;break}w=b+28|0;x=c[w>>2]|0;ta=la*2.0;sa=(+h[x+16>>3]- +h[x>>3]-ta)/+(j|0);h[s>>3]=sa;if(pa==0.0){pa=+h[x+24>>3]- +h[x+8>>3]-ta;pa=+R(+(sa<pa?sa:pa));xa=c[(c[u>>2]|0)+(ma<<2)>>2]|0;le(xa)|0;ra=ha;h[k>>3]=pa;c[ra>>2]=c[k>>2];c[ra+4>>2]=c[k+4>>2];pe(xa,64856,ia)|0}c[r>>2]=0;ls(0,d,T,v,z,0,0.0,ga,n);v=c[fa>>2]|0;if((v|0)>(j|0)){c[fa>>2]=j;v=j}if((l|0)==1){la=la+ +((j-v|0)/2|0|0)*+h[s>>3]}else if((l|0)==2){la=la+ +h[s>>3]*+(j-v|0)}xa=c[w>>2]|0;sa=(+h[xa+24>>3]- +h[xa+8>>3])*.5-pa*.4;if((P|0)>-1){xa=c[(c[u>>2]|0)+(P+4<<2)>>2]|0;le(xa)|0;ra=X;h[k>>3]=la;c[ra>>2]=c[k>>2];c[ra+4>>2]=c[k+4>>2];pe(xa,64856,W)|0;xa=c[(c[u>>2]|0)+(P+5<<2)>>2]|0;le(xa)|0;ra=Y;h[k>>3]=sa;c[ra>>2]=c[k>>2];c[ra+4>>2]=c[k+4>>2];pe(xa,64856,Z)|0}do{if((q|0)!=0){c[r>>2]=0;if((c[t>>2]|0)>0){l=0}else{break}do{me(oe(c[aa>>2]|0,c[(c[u>>2]|0)+(l<<2)>>2]|0)|0,32)|0;l=(c[r>>2]|0)+1|0;c[r>>2]=l;}while((l|0)<(c[t>>2]|0))}}while(0);if((P|0)<0){xa=c[aa>>2]|0;ra=V;h[k>>3]=la;c[ra>>2]=c[k>>2];c[ra+4>>2]=c[k+4>>2];ra=U+8|0;h[k>>3]=sa;c[ra>>2]=c[k>>2];c[ra+4>>2]=c[k+4>>2];pe(xa,64920,U)|0}v=c[T+28>>2]|0;l=c[T+24>>2]|0;c[r>>2]=0;if((l|0)<=0){break}sa=+h[s>>3];while(1){h[L>>3]=0.0;n=xd[c[(c[z>>2]|0)+12>>2]&3](z,v,l,K,J,I,B,H,G,F)|0;la=pa*+h[L>>3];h[L>>3]=la;wa=+h[s>>3];la=(wa-la)*.5;w=c[aa>>2]|0;xa=E;h[k>>3]=wa+(la-sa);c[xa>>2]=c[k>>2];c[xa+4>>2]=c[k+4>>2];pe(w,64952,D)|0;w=FW(32)|0;ge(w,v,n);ms(0,w,c[aa>>2]|0);ne(c[aa>>2]|0,64912,-1)|0;if((w|0)!=0){ke(w);HW(w)}xa=(c[r>>2]|0)+1|0;c[r>>2]=xa;l=l-n|0;if((xa|0)<(j|0)&(l|0)>0){v=v+n|0;sa=la}else{break}}}}while(0);ne(c[aa>>2]|0,64968,-1)|0;ne(c[aa>>2]|0,63808,-1)|0;if(m){ne(c[aa>>2]|0,64976,-1)|0}if((q|0)!=0){m=c[t>>2]|0;if((m|0)>0){r=0;do{s=c[(c[u>>2]|0)+(r<<2)>>2]|0;if((s|0)!=0){ke(s);HW(s);m=c[t>>2]|0}r=r+1|0;}while((r|0)<(m|0))}xo(q);HW(q)}if(!(o|(d|0)==0)){ke(d);HW(d)}if((T|0)!=0){ke(T);HW(T)}if(!A){i=p;return}Yx(z);i=p;return}}while(0);if((T|0)==37){Qe(-1,64784,u)}if((q|0)==0){i=p;return}r=q+8|0;s=c[r>>2]|0;if((s|0)>0){m=0;do{t=c[(c[q>>2]|0)+(m<<2)>>2]|0;if((t|0)!=0){ke(t);HW(t);s=c[r>>2]|0}m=m+1|0;}while((m|0)<(s|0))}xo(q);HW(q);i=p;return}function os(b,d,e,f,g,j,l,m){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0.0,G=0,H=0,I=0,J=0,K=0.0,L=0.0,M=0.0,N=0.0,O=0.0,P=0.0,Q=0.0,S=0,T=0,U=0,V=0;n=i;x=i;i=i+16|0;y=x;v=i;i=i+8|0;w=v;A=i;i=i+8|0;u=A;s=i;i=i+32|0;t=s;C=i;i=i+8|0;D=C;I=i;i=i+8|0;H=i;i=i+8|0;G=i;i=i+8|0;r=i;i=i+8|0;q=r;z=i;i=i+8|0;p=z;do{if((j|0)==0){o=0;E=28}else{o=FW(16)|0;wo(o);B=j+24|0;T=c[B>>2]|0;if((T|0)>0){J=j+28|0;S=0;do{a:do{if((S|0)<(T|0)){while(1){V=hE(a[(c[J>>2]|0)+S|0]|0)|0;U=S+1|0;T=c[B>>2]|0;if(!V){break a}if((U|0)<(T|0)){S=U}else{S=U;break}}}}while(0);if((S|0)<(T|0)){U=S+1|0;c[z>>2]=U;b:do{if((U|0)<(T|0)){do{V=hE(a[(c[J>>2]|0)+U|0]|0)|0;U=c[z>>2]|0;if(V){break b}U=U+1|0;c[z>>2]=U;}while((U|0)<(c[B>>2]|0))}}while(0);T=FW(32)|0;he(T,j,S,U-S|0);yo(o,T);T=c[B>>2]|0;S=c[z>>2]|0}}while((S|0)<(T|0))}B=o+8|0;if((c[B>>2]|0)<=2){E=28;break}S=2;J=-1;j=-1;do{do{if((S|0)>1){if((te(c[(c[o>>2]|0)+(S<<2)>>2]|0,64640)|0)==0){J=S+ -2|0;break}if((S|0)<=5){break}V=(te(c[(c[o>>2]|0)+(S<<2)>>2]|0,64648)|0)==0;j=V?S+ -6|0:j}}while(0);S=S+1|0;}while((S|0)<(c[B>>2]|0));if((J|0)<=-1){E=28;break}I=c[(c[o>>2]|0)+(J<<2)>>2]|0;do{if((c[I+24>>2]|0)>0){I=c[I+28>>2]|0;if((a[I]|0)!=47){E=27;break}if((l|0)!=0){l=wy(l,I+1|0)|0;if((l|0)!=0){break}}Qe(-1,64688,G);l=0}else{E=27}}while(0);if((E|0)==27){Qe(-1,64728,H);l=0}G=J+1|0;L=+Ie(c[(c[(c[o>>2]|0)+(G<<2)>>2]|0)+28>>2]|0);if((l|0)==0){break}E=FW(32)|0;ee(E);H=c[b+128>>2]|0;if((H|0)==0){F=0.0}else{F=+wd[c[(c[H>>2]|0)+12>>2]&1](H)}if(L==0.0){if((f|0)>0){H=0;K=0.0;while(1){c[z>>2]=0;ls(0,c[d+(H<<2)>>2]|0,E,p,l,q,0.0,0,0);L=+h[r>>3];K=L>K?L:K;H=H+1|0;if((H|0)<(f|0)){}else{break}}}else{K=0.0}H=b+28|0;V=c[H>>2]|0;Q=F*2.0;L=+h[V+24>>3]- +h[V+8>>3]-Q;K=(+h[V+16>>3]- +h[V>>3]+-4.0-Q)/K;L=+R(+(K<L?K:L));V=c[(c[o>>2]|0)+(G<<2)>>2]|0;le(V)|0;h[k>>3]=L;c[C>>2]=c[k>>2];c[C+4>>2]=c[k+4>>2];pe(V,64856,D)|0;C=H}else{C=b+28|0}J=c[C>>2]|0;K=L*1.1;if((g|0)<(f|0)){I=b+124|0;M=F+2.0;b=(j|0)>-1;G=j+4|0;D=j+5|0;H=(o|0)==0;j=(j|0)<0;N=L*.2;O=F*2.0;P=+h[J+24>>3]- +h[J+8>>3];do{P=P-K;ne(c[I>>2]|0,56352,-1)|0;J=e+g|0;if((a[J]&1)!=0){ne(c[I>>2]|0,64984,-1)|0;V=c[I>>2]|0;U=c[C>>2]|0;Q=+h[U+16>>3]- +h[U>>3]-O;U=s;h[k>>3]=F;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];U=t+8|0;h[k>>3]=P-N;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];U=t+16|0;h[k>>3]=Q;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];U=t+24|0;h[k>>3]=K;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];pe(V,64992,t)|0}ne(c[I>>2]|0,64848,-1)|0;c[z>>2]=0;ls(0,c[d+(g<<2)>>2]|0,E,p,l,q,0.0,0,0);Q=L*+h[r>>3];h[r>>3]=Q;if((m|0)==1){V=c[C>>2]|0;Q=(+h[V+16>>3]- +h[V>>3]-Q)*.5}else if((m|0)==2){V=c[C>>2]|0;Q=+h[V+16>>3]- +h[V>>3]-F+-2.0-Q}else{Q=M}if(b){V=c[(c[o>>2]|0)+(G<<2)>>2]|0;le(V)|0;U=A;h[k>>3]=Q;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];pe(V,64856,u)|0;V=c[(c[o>>2]|0)+(D<<2)>>2]|0;le(V)|0;U=v;h[k>>3]=P;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];pe(V,64856,w)|0}do{if(!H){c[z>>2]=0;if((c[B>>2]|0)>0){S=0}else{break}do{me(oe(c[I>>2]|0,c[(c[o>>2]|0)+(S<<2)>>2]|0)|0,32)|0;S=(c[z>>2]|0)+1|0;c[z>>2]=S;}while((S|0)<(c[B>>2]|0))}}while(0);if(j){V=c[I>>2]|0;U=x;h[k>>3]=Q;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];U=y+8|0;h[k>>3]=P;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];pe(V,64920,y)|0}if((a[J]&1)!=0){ne(c[I>>2]|0,65032,-1)|0}ms(0,E,c[I>>2]|0);ne(c[I>>2]|0,64912,-1)|0;ne(c[I>>2]|0,64968,-1)|0;ne(c[I>>2]|0,63808,-1)|0;g=g+1|0;}while((g|0)<(f|0))}if((o|0)!=0){q=c[B>>2]|0;if((q|0)>0){p=0;do{r=c[(c[o>>2]|0)+(p<<2)>>2]|0;if((r|0)!=0){ke(r);HW(r);q=c[B>>2]|0}p=p+1|0;}while((p|0)<(q|0))}xo(o);HW(o)}if((E|0)==0){i=n;return}ke(E);HW(E);i=n;return}}while(0);if((E|0)==28){Qe(-1,64784,I)}if((o|0)==0){i=n;return}p=o+8|0;r=c[p>>2]|0;if((r|0)>0){q=0;do{m=c[(c[o>>2]|0)+(q<<2)>>2]|0;if((m|0)!=0){ke(m);HW(m);r=c[p>>2]|0}q=q+1|0;}while((q|0)<(r|0))}xo(o);HW(o);i=n;return}function ps(b){b=b|0;var d=0,e=0,f=0,g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0.0,Gb=0,Hb=0,Ib=0.0,Jb=0.0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0,Yb=0,Zb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,jc=0,kc=0,lc=0,mc=0,nc=0,oc=0,pc=0,qc=0,rc=0,sc=0,uc=0,vc=0,wc=0,xc=0,yc=0,zc=0,Ac=0,Bc=0,Cc=0,Dc=0,Ec=0,Fc=0,Gc=0,Hc=0,Jc=0,Kc=0,Lc=0,Mc=0,Nc=0,Oc=0,Pc=0,Rc=0,Sc=0,Tc=0,Uc=0,Vc=0,Wc=0,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,bd=0,cd=0,dd=0,ed=0,fd=0,gd=0,id=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,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,ge=0,he=0,je=0,le=0.0,me=0.0,oe=0.0,qe=0.0,re=0.0,te=0.0,ue=0.0,ve=0.0,we=0.0,xe=0.0,ze=0.0,Ae=0.0;f=i;d=i;i=i+8|0;m=d;z=i;i=i+8|0;v=z;l=i;i=i+8|0;j=l;C=i;i=i+8|0;B=C;H=i;i=i+8|0;G=H;Q=i;i=i+8|0;O=Q;S=i;i=i+8|0;U=S;W=i;i=i+8|0;V=W;Y=i;i=i+8|0;X=Y;_=i;i=i+8|0;$=_;aa=i;i=i+8|0;ba=aa;ca=i;i=i+8|0;da=ca;ga=i;i=i+8|0;fa=ga;cb=i;i=i+8|0;oa=i;i=i+8|0;pa=oa;sa=i;i=i+8|0;ta=sa;ra=i;i=i+8|0;qa=ra;Da=i;i=i+8|0;Ea=Da;Ba=i;i=i+8|0;Ca=Ba;Sa=i;i=i+8|0;Ra=Sa;Ta=i;i=i+8|0;Wa=Ta;Za=i;i=i+8|0;ab=Za;Ja=i;i=i+8|0;Ma=Ja;Va=i;i=i+8|0;Ua=Va;Xa=i;i=i+8|0;Ya=Xa;Pa=i;i=i+8|0;Oa=Pa;wa=i;i=i+16|0;va=wa;za=i;i=i+32|0;ua=za;Aa=i;i=i+40|0;ya=Aa;Ia=i;i=i+8|0;Ha=Ia;Ka=i;i=i+8|0;Na=Ka;$a=i;i=i+8|0;bb=$a;fb=i;i=i+8|0;gb=fb;mb=i;i=i+24|0;lb=mb;od=i;i=i+8|0;nd=od;qd=i;i=i+16|0;kd=qd;ud=i;i=i+32|0;rd=ud;md=i;i=i+40|0;vd=md;Nd=i;i=i+8|0;Id=Nd;Pd=i;i=i+8|0;Qd=Pd;pc=i;i=i+8|0;qc=pc;nc=i;i=i+16|0;oc=nc;lc=i;i=i+16|0;mc=lc;jc=i;i=i+16|0;kc=jc;hc=i;i=i+8|0;ic=hc;xc=i;i=i+16|0;yc=xc;vc=i;i=i+32|0;wc=vc;sc=i;i=i+40|0;uc=sc;Oc=i;i=i+8|0;Nc=Oc;Xc=i;i=i+8|0;Wc=Xc;Zc=i;i=i+16|0;Yc=Zc;Uc=i;i=i+16|0;_c=Uc;td=i;i=i+16|0;gd=td;id=i;i=i+8|0;sd=id;xd=i;i=i+16|0;pd=xd;Cd=i;i=i+32|0;yd=Cd;Ad=i;i=i+40|0;Bd=Ad;Hd=i;i=i+8|0;Gd=Hd;ac=i;i=i+24|0;$b=ac;Vb=i;i=i+16|0;Ub=Vb;Xb=i;i=i+32|0;Wb=Xb;Zb=i;i=i+40|0;Yb=Zb;Kc=i;i=i+8|0;Jc=Kc;Lc=i;i=i+8|0;Mc=Lc;Vc=i;i=i+8|0;Tc=Vc;ob=i;i=i+48|0;vb=ob;sb=i;i=i+48|0;tb=sb;wb=i;i=i+16|0;ub=wb;qb=i;i=i+16|0;rb=qb;zb=i;i=i+32|0;pb=zb;yb=i;i=i+40|0;nb=yb;Bb=i;i=i+8|0;Cb=Bb;Eb=i;i=i+48|0;Db=Eb;Hb=i;i=i+48|0;Gb=Hb;Kb=i;i=i+16|0;Lb=Kb;fc=i;i=i+16|0;Tb=fc;cc=i;i=i+32|0;gc=cc;bc=i;i=i+40|0;dc=bc;Ec=i;i=i+8|0;Gc=Ec;cd=i;i=i+16|0;bd=cd;ed=i;i=i+32|0;dd=ed;ad=i;i=i+40|0;$c=ad;Ed=i;i=i+8|0;Dd=Ed;Jd=i;i=i+8|0;Ld=Jd;Qb=i;i=i+16|0;Sb=Qb;Ob=i;i=i+32|0;Pb=Ob;Mb=i;i=i+40|0;Nb=Mb;Ac=i;i=i+8|0;Bc=Ac;Dc=i;i=i+8|0;Cc=Dc;Rc=i;i=i+8|0;Sc=Rc;Rd=i;i=i+8|0;Od=Rd;Xd=i;i=i+16|0;Vd=Xd;_d=i;i=i+16|0;Yd=_d;Zd=i;i=i+32|0;Sd=Zd;Td=i;i=i+40|0;Wd=Td;$d=i;i=i+8|0;ae=$d;be=i;i=i+8|0;ce=be;ge=i;i=i+8|0;ib=ge;A=i;i=i+8|0;he=A;de=i;i=i+16|0;e=de;db=i;i=i+16|0;n=db;R=i;i=i+16|0;M=R;T=i;i=i+16|0;P=T;K=i;i=i+16|0;E=K;I=i;i=i+16|0;F=I;ja=i;i=i+16|0;ha=ja;jb=i;i=i+40|0;Ud=jb;zc=i;i=i+40|0;Rb=zc;Fd=i;i=i+40|0;fd=Fd;Fc=i;i=i+40|0;ec=Fc;Ab=i;i=i+40|0;xb=Ab;Hc=i;i=i+40|0;_b=Hc;Md=i;i=i+40|0;zd=Md;Pc=i;i=i+40|0;rc=Pc;Kd=i;i=i+40|0;ld=Kd;Fa=i;i=i+40|0;xa=Fa;w=i;i=i+8|0;y=w;x=i;i=i+8|0;u=i;i=i+16|0;p=u;t=i;i=i+16|0;q=t;s=i;i=i+16|0;o=s;r=i;i=i+8|0;c[de>>2]=13;kb=e+8|0;c[kb>>2]=0;c[kb+4>>2]=0;c[db>>2]=13;eb=n+8|0;c[eb>>2]=0;c[eb+4>>2]=0;c[R>>2]=13;N=M+8|0;c[N>>2]=0;c[N+4>>2]=0;c[T>>2]=13;hb=P+8|0;c[hb>>2]=0;c[hb+4>>2]=0;c[K>>2]=13;J=E+8|0;c[J>>2]=0;ea=J+4|0;c[ea>>2]=0;c[I>>2]=13;D=F+8|0;c[D>>2]=0;c[D+4>>2]=0;c[ja>>2]=13;ia=ha+8|0;c[ia>>2]=0;c[ia+4>>2]=0;L=b+152|0;Z=c[L>>2]|0;if((Z|0)==0){i=f;return}ma=c[Z+4>>2]|0;if((ma|0)==0){i=f;return}if((c[ma+24>>2]|0)!=7){i=f;return}ma=c[ma+32>>2]|0;je=c[Z+16>>2]|0;if((je|0)!=7){c[A>>2]=je;c[he+4>>2]=7;Qe(0,72520,he);tc()}A=c[Z+24>>2]|0;je=c[(c[b+148>>2]|0)+16>>2]|0;he=c[je>>2]|0;if((he|0)!=7){c[ge>>2]=he;c[ib+4>>2]=7;Qe(0,72520,ib);tc()}ib=c[je+8>>2]|0;if(((a[b+176|0]|a[Z+45|0])&1)==0){i=f;return}je=FWFW(8)|0;hb=c[K>>2]|0;if((hb|0)==7){uy(lb,c[b+112>>2]|0,0,c[J>>2]|0);g=lb;break}else{c[fb>>2]=hb;c[gb+4>>2]=7;Qe(0,72520,gb);tc()}}else{g=0}}while(0);Of(E);if((c[(pv(ma,63960,E)|0)>>2]|0)==5){Of(E);Yu(ib,63960,E,0)|0}if((c[K>>2]|0)==3){je=c[J>>2]|0;fb=FW(32)|0;ie(fb,je)}else{fb=0}Of(E);b:do{if((c[db>>2]|0)==4){db=c[eb>>2]|0;if((Qc(db|0,65088)|0)==0){if(jb){do{if((c[(Yu(kb,55464,E,0)|0)>>2]|0)==3){la=c[K>>2]|0;if((la|0)==3){je=c[J>>2]|0;_a=FW(32)|0;ie(_a,je);break}else{c[$a>>2]=la;c[bb+4>>2]=3;Qe(0,72520,bb);tc()}}else{_a=0}}while(0);Of(E)}else{_a=0}do{if((Ga&32768|0)==0){if((Ga&65536|0)!=0){if((_a|0)==0){break b}ns(b,_a,fb,g,0,0,1,0,0,0);break}do{if((c[(Yu(A,55624,E,0)|0)>>2]|0)==4){ha=c[K>>2]|0;if((ha|0)!=4){c[Pa>>2]=ha;c[Oa+4>>2]=4;Qe(0,72520,Oa);tc()}if((Qc(c[J>>2]|0,55632)|0)==0){break}if((_a|0)==0){_a=FWFW(32)|0;ie(je,he);c[xa>>2]=je}else if((za|0)==6){za=c[D>>2]|0;if((c[za+12>>2]|0)!=2){break}if((c[(ut(za,1,ha)|0)>>2]|0)==3){za=c[ja>>2]|0;if((za|0)!=3){ka=191;break d}he=c[ia>>2]|0;je=FW(32)|0;ie(je,he);c[xa>>2]=je}Of(ha)}}while(0);Of(F);if((c[xa>>2]|0)==0){je=FW(32)|0;ee(je);c[xa>>2]=je}ya=ya+1|0;if((ya|0)>=(va|0)){break c}}if((ka|0)==185){c[Ba>>2]=za;c[Ca+4>>2]=6;Qe(0,72520,Ca);tc()}else if((ka|0)==191){c[Da>>2]=za;c[Ea+4>>2]=3;Qe(0,72520,Ea);tc()}}}while(0);xa=ye(va,1)|0;pv(ma,65288,F)|0;e:do{if(wa){za=0;f:while(1){ya=xa+za|0;a[ya]=0;Aa=c[I>>2]|0;g:do{if((Aa|0)==6){Aa=ua+(za<<2)|0;Ba=0;while(1){Ca=c[D>>2]|0;if((Ba|0)>=(c[Ca+12>>2]|0)){break g}do{if((c[(ut(Ca,Ba,ha)|0)>>2]|0)==3){Ca=c[ja>>2]|0;if((Ca|0)!=3){ka=207;break f}if((se(c[ia>>2]|0,c[Aa>>2]|0)|0)!=0){break}a[ya]=1}}while(0);Of(ha);Ca=c[I>>2]|0;if((Ca|0)==6){Ba=Ba+1|0}else{ka=203;break f}}}else if((Aa|0)==3){if((se(c[D>>2]|0,c[ua+(za<<2)>>2]|0)|0)!=0){break}a[ya]=1}}while(0);za=za+1|0;if((za|0)>=(va|0)){break e}}if((ka|0)==203){c[ra>>2]=Ca;c[qa+4>>2]=6;Qe(0,72520,qa);tc()}else if((ka|0)==207){c[sa>>2]=Ca;c[ta+4>>2]=3;Qe(0,72520,ta);tc()}}}while(0);Of(F);do{if((c[(Yu(ma,65336,F,0)|0)>>2]|0)==1){ha=c[I>>2]|0;if((ha|0)==1){na=c[D>>2]|0;break}else{c[oa>>2]=ha;c[pa+4>>2]=1;Qe(0,72520,pa);tc()}}else{na=0}}while(0);Of(F);os(b,ua,xa,va,na,fb,g,la);if(wa){ia=0;do{ha=c[ua+(ia<<2)>>2]|0;if((ha|0)!=0){ke(ha);HW(ha)}ia=ia+1|0;}while((ia|0)<(va|0))}Fe(ua);Fe(xa)}Of(E)}else{ka=223}}while(0);if((ka|0)==223){Qe(-1,65352,cb)}if((fb|0)!=0){ke(fb);HW(fb)}ha=b+112|0;Jf(M,c[ha>>2]|0)|0;ia=Ge(55936)|0;ja=c[(c[Z>>2]|0)+24>>2]|0;c[ea>>2]=0;c[K>>2]=1;c[J>>2]=ja;ja=c[R>>2]|0;if((ja|0)!=7){c[ga>>2]=ja;c[fa+4>>2]=7;Qe(0,72520,fa);tc()}Tu(c[N>>2]|0,ia,E);fa=Ge(55944)|0;c[J>>2]=0;c[ea>>2]=0;c[K>>2]=4;c[J>>2]=Ge(55952)|0;ea=c[R>>2]|0;if((ea|0)!=7){c[ca>>2]=ea;c[da+4>>2]=7;Qe(0,72520,da);tc()}Tu(c[N>>2]|0,fa,E);If(E,c[ha>>2]|0)|0;c[I>>2]=2;ca=F+8|0;h[ca>>3]=0.0;da=c[K>>2]|0;if((da|0)!=6){c[aa>>2]=da;c[ba+4>>2]=6;Qe(0,72520,ba);tc()}tt(c[J>>2]|0,F);c[I>>2]=2;h[ca>>3]=0.0;aa=c[K>>2]|0;if((aa|0)!=6){c[_>>2]=aa;c[$+4>>2]=6;Qe(0,72520,$);tc()}tt(c[J>>2]|0,F);_=b+28|0;$=c[_>>2]|0;Ae=+h[$+16>>3]- +h[$>>3];c[I>>2]=2;h[ca>>3]=Ae;$=c[K>>2]|0;if(($|0)!=6){c[Y>>2]=$;c[X+4>>2]=6;Qe(0,72520,X);tc()}tt(c[J>>2]|0,F);X=c[_>>2]|0;Ae=+h[X+24>>3]- +h[X+8>>3];c[I>>2]=2;h[ca>>3]=Ae;X=c[K>>2]|0;if((X|0)!=6){c[W>>2]=X;c[V+4>>2]=6;Qe(0,72520,V);tc()}tt(c[J>>2]|0,F);V=Ge(55960)|0;W=c[R>>2]|0;if((W|0)!=7){c[S>>2]=W;c[U+4>>2]=7;Qe(0,72520,U);tc()}Tu(c[N>>2]|0,V,E);do{if((c[T>>2]|0)==7){S=Ge(55992)|0;T=Mf(P,E)|0;R=c[R>>2]|0;if((R|0)==7){Tu(c[N>>2]|0,S,T);break}else{c[Q>>2]=R;c[O+4>>2]=7;Qe(0,72520,O);tc()}}}while(0);Of(P);N=FW(56)|0;O=Ic(c[(c[Z>>2]|0)+28>>2]|0)|0;Tj(N,O,0,c[(c[Z>>2]|0)+24>>2]|0,M);M=b+64|0;Of(M);Lf(M,N)|0;O=c[Z>>2]|0;if((O|0)!=0){ke(O);HW(O)}hd[c[(c[N>>2]|0)+116>>2]&127](N,1);do{if((a[(c[L>>2]|0)+45|0]&1)!=0){do{if((c[(Yu(A,55616,E,0)|0)>>2]|0)==7){K=c[K>>2]|0;if((K|0)!=7){c[H>>2]=K;c[G+4>>2]=7;Qe(0,72520,G);tc()}if((c[(Zu(c[J>>2]|0,55416,F)|0)>>2]|0)!=9){break}G=c[I>>2]|0;if((G|0)==9){ge=D;he=c[ge+4>>2]|0;je=b+52|0;c[je>>2]=c[ge>>2];c[je+4>>2]=he;break}else{c[C>>2]=G;c[B+4>>2]=9;Qe(0,72520,B);tc()}}}while(0);Of(F);Of(E);B=b+52|0;C=c[ha>>2]|0;if((c[B>>2]|0)==0){qn(y,C,M);ge=w;he=c[ge+4>>2]|0;je=B;c[je>>2]=c[ge>>2];c[je+4>>2]=he}else{ge=B;he=c[ge+4>>2]|0;je=x;c[je>>2]=c[ge>>2];c[je+4>>2]=he;$W(z|0,x|0,8)|0;pn(C,M,v)}c[u>>2]=13;v=p+8|0;c[v>>2]=0;c[v+4>>2]=0;Jf(p,c[ha>>2]|0)|0;je=q+8|0;ge=c[B>>2]|0;he=c[b+56>>2]|0;c[t>>2]=9;c[je>>2]=ge;c[je+4>>2]=he;t=c[u>>2]|0;if((t|0)==7){Wu(c[v>>2]|0,55416,q);Wu(A,55616,p);je=FW(24)|0;Ru(je,A);de=je+20|0;c[de>>2]=(c[de>>2]|0)+ -1;c[s>>2]=13;de=o+8|0;c[de>>2]=0;c[de+4>>2]=0;Kf(o,je)|0;je=c[ha>>2]|0;de=b+116|0;ge=c[de+4>>2]|0;he=r;c[he>>2]=c[de>>2];c[he+4>>2]=ge;$W(d|0,r|0,8)|0;pn(je,o,m);Of(o);break}else{c[l>>2]=t;c[j+4>>2]=7;Qe(0,72520,j);tc()}}}while(0);if((g|0)!=0){vy(g);HW(g)}Of(n);Of(e);i=f;return}function qs(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;g=i;r=i;i=i+16|0;f=r;m=i;i=i+16|0;q=m;k=i;i=i+16|0;l=k;n=i;i=i+16|0;o=n;p=i;i=i+16|0;j=p;c[r>>2]=13;r=f+8|0;c[r>>2]=0;c[r+4>>2]=0;r=c[b+48>>2]|0;if((r&2|0)!=0){i=g;return}do{if(e){if((r&4|0)!=0){break}i=g;return}else{if((r&32|0)==0){break}i=g;return}}while(0);r=c[b+88>>2]|0;do{if((r|0)!=0){e=b+96|0;if((c[e>>2]|0)!=9){break}if(GF(r,e)|0){break}i=g;return}}while(0);r=b+177|0;a[r]=0;ps(b);e=b+112|0;Nf(b+64|0,c[e>>2]|0,f,0)|0;do{if((a[r]&1)!=0){u=q+8|0;c[k>>2]=13;s=l+8|0;c[s>>2]=0;t=s+4|0;c[t>>2]=0;c[u>>2]=0;c[u+4>>2]=0;c[m>>2]=4;c[u>>2]=Ge(64672)|0;c[s>>2]=0;c[t>>2]=0;c[k>>2]=4;c[s>>2]=Ge(65376)|0;c[n>>2]=13;k=o+8|0;c[k>>2]=0;c[k+4>>2]=0;k=FW(24)|0;Qu(k,c[e>>2]|0);n=k+20|0;c[n>>2]=(c[n>>2]|0)+ -1;Tu(k,Ge(65384)|0,q);Tu(k,Ge(55944)|0,l);Kf(o,k)|0;c[p>>2]=13;k=j+8|0;c[k>>2]=0;c[k+4>>2]=0;k=FW(24)|0;Qu(k,c[e>>2]|0);q=k+20|0;c[q>>2]=(c[q>>2]|0)+ -1;Tu(k,Ge(64664)|0,o);Kf(j,k)|0;k=FW(24)|0;Qu(k,c[e>>2]|0);Tu(k,Ge(65280)|0,j);Px(d,k);if((k|0)==0){break}Su(k);HW(k)}}while(0);u=c[b+28>>2]|0;Tx(d,f,0,c[b+132>>2]|0,+h[u>>3],+h[u+8>>3],+h[u+16>>3],+h[u+24>>3]);if((a[r]&1)!=0){ux(d)}Of(f);i=g;return}function rs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;e=i;m=i;i=i+8|0;n=i;i=i+8|0;h=n;p=i;i=i+16|0;j=p;k=i;i=i+16|0;d=k;o=i;i=i+16|0;g=o;c[p>>2]=13;l=j+8|0;c[l>>2]=0;c[l+4>>2]=0;do{if((c[(Yu(f,56120,j,0)|0)>>2]|0)==3){p=c[p>>2]|0;if((p|0)==3){n=c[l>>2]|0;p=FW(32)|0;ie(p,n);c[b+148>>2]=p;break}else{c[n>>2]=p;c[h+4>>2]=3;Qe(0,72520,h);tc()}}else{c[b+148>>2]=0}}while(0);Of(j);c[k>>2]=13;p=d+8|0;c[p>>2]=0;c[p+4>>2]=0;if((c[(Yu(f,65424,d,0)|0)>>2]|0)!=7){Qe(-1,65432,m);c[b+152>>2]=0;a[b+144|0]=0;Of(d);i=e;return}c[o>>2]=13;p=g+8|0;c[p>>2]=0;c[p+4>>2]=0;Yu(f,55424,g,0)|0;p=(c[o>>2]|0)==7;f=FW(104)|0;if(p){DF(f,d,g);c[b+152>>2]=f}else{CF(f,d);c[b+152>>2]=f}h=b+152|0;if((a[f]&1)==0){if((f|0)!=0){BF(f);HW(f)}c[h>>2]=0;a[b+144|0]=0}Of(g);Of(d);i=e;return}function ss(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;l=i;k=i;i=i+8|0;j=k;c[b>>2]=55512;h=b+8|0;c[h>>2]=13;c[b+16>>2]=0;c[b+20>>2]=0;c[b+64>>2]=13;c[b+72>>2]=0;c[b+76>>2]=0;c[b+96>>2]=13;c[b+104>>2]=0;c[b+108>>2]=0;m=b+145|0;do{if((c[g>>2]|0)==9){a[m]=1;m=c[g>>2]|0;if((m|0)==9){k=g+8|0;g=c[k+4>>2]|0;m=b+116|0;c[m>>2]=c[k>>2];c[m+4>>2]=g;break}else{c[k>>2]=m;c[j+4>>2]=9;Qe(0,72520,j);tc()}}else{a[m]=0}}while(0);c[b+48>>2]=0;m=b+24|0;c[m>>2]=0;Kf(h,e)|0;zr(b,d,e,f);c[b>>2]=65408;c[m>>2]=19;rs(b,0,0,e);i=l;return}function ts(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=65408;d=c[a+148>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+152>>2]|0;if((d|0)==0){Cr(a);HW(a);i=b;return}BF(d);HW(d);Cr(a);HW(a);i=b;return}function us(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=65408;d=c[a+148>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+152>>2]|0;if((d|0)==0){Cr(a);i=b;return}BF(d);HW(d);Cr(a);i=b;return}function vs(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0;g=i;s=i;i=i+8|0;t=s;q=i;i=i+8|0;r=q;o=i;i=i+8|0;p=o;m=i;i=i+8|0;n=m;y=i;i=i+8|0;w=y;C=i;i=i+8|0;B=C;H=i;i=i+8|0;I=H;L=i;i=i+8|0;M=L;R=i;i=i+8|0;O=R;T=i;i=i+8|0;U=T;V=i;i=i+8|0;W=V;Z=i;i=i+8|0;Y=Z;$=i;i=i+8|0;_=$;ba=i;i=i+8|0;aa=ba;ca=i;i=i+8|0;da=ca;ga=i;i=i+8|0;fa=ga;ia=i;i=i+8|0;ha=ia;ja=i;i=i+8|0;ka=ja;la=i;i=i+8|0;ma=la;oa=i;i=i+8|0;na=oa;qa=i;i=i+8|0;pa=qa;ta=i;i=i+8|0;sa=ta;ea=i;i=i+8|0;ua=ea;X=i;i=i+8|0;wa=X;J=i;i=i+16|0;f=J;P=i;i=i+16|0;j=P;va=i;i=i+16|0;ra=va;x=i;i=i+16|0;v=x;G=i;i=i+16|0;D=G;Q=i;i=i+16|0;F=Q;S=i;i=i+16|0;K=S;E=i;i=i+16|0;z=E;A=i;i=i+16|0;l=A;u=i;i=i+32|0;k=u;c[J>>2]=13;J=f+8|0;c[J>>2]=0;c[J+4>>2]=0;J=c[b+48>>2]|0;if((J&2|0)!=0){i=g;return}do{if(e){if((J&4|0)!=0){break}i=g;return}else{if((J&32|0)==0){break}i=g;return}}while(0);e=c[b+88>>2]|0;do{if((e|0)!=0){J=b+96|0;if((c[J>>2]|0)!=9){break}if(GF(e,J)|0){break}i=g;return}}while(0);e=b+64|0;do{if((c[e>>2]|0)==5){J=b+152|0;N=c[J>>2]|0;if((a[N+32|0]&1)==0){break}c[P>>2]=13;xa=j+8|0;c[xa>>2]=0;c[xa+4>>2]=0;Mf(N+16|0,j)|0;J=c[J>>2]|0;N=c[J+4>>2]|0;J=c[J+8>>2]|0;do{if(!((N|0)==-1|(J|0)==-1)){if((c[P>>2]|0)==13){break}xa=FW(32)|0;ee(xa);P=b+124|0;c[P>>2]=xa;ne(xa,56352,-1)|0;xa=c[P>>2]|0;c[X>>2]=N;c[wa+4>>2]=J;pe(xa,65448,wa)|0;ne(c[P>>2]|0,65472,-1)|0;ne(c[P>>2]|0,63808,-1)|0;c[va>>2]=13;wa=ra+8|0;c[wa>>2]=0;c[wa+4>>2]=0;X=b+112|0;Jf(ra,c[X>>2]|0)|0;va=c[va>>2]|0;if((va|0)!=7){c[ea>>2]=va;c[ua+4>>2]=7;Qe(0,72520,ua);tc()}Wu(c[wa>>2]|0,65488,j);c[x>>2]=13;ea=v+8|0;c[ea>>2]=0;c[ea+4>>2]=0;Jf(v,c[X>>2]|0)|0;ua=c[x>>2]|0;if((ua|0)!=7){c[ta>>2]=ua;c[sa+4>>2]=7;Qe(0,72520,sa);tc()}Wu(c[ea>>2]|0,56040,ra);c[G>>2]=13;ra=D+8|0;c[ra>>2]=0;c[ra+4>>2]=0;c[Q>>2]=13;sa=F+8|0;c[sa>>2]=0;va=sa+4|0;c[va>>2]=0;c[S>>2]=13;ua=K+8|0;c[ua>>2]=0;ta=ua+4|0;c[ta>>2]=0;Jf(D,c[X>>2]|0)|0;wa=c[(c[P>>2]|0)+24>>2]|0;c[va>>2]=0;c[Q>>2]=1;c[sa>>2]=wa;wa=c[G>>2]|0;if((wa|0)!=7){c[qa>>2]=wa;c[pa+4>>2]=7;Qe(0,72520,pa);tc()}Wu(c[ra>>2]|0,55936,F);c[sa>>2]=0;c[va>>2]=0;c[Q>>2]=4;c[sa>>2]=Ge(55952)|0;pa=c[G>>2]|0;if((pa|0)!=7){c[oa>>2]=pa;c[na+4>>2]=7;Qe(0,72520,na);tc()}Wu(c[ra>>2]|0,55944,F);c[sa>>2]=0;c[va>>2]=0;c[Q>>2]=4;c[sa>>2]=Ge(65496)|0;na=c[G>>2]|0;if((na|0)!=7){c[la>>2]=na;c[ma+4>>2]=7;Qe(0,72520,ma);tc()}Wu(c[ra>>2]|0,56208,F);If(F,c[X>>2]|0)|0;c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=0;la=c[Q>>2]|0;if((la|0)!=6){c[ja>>2]=la;c[ka+4>>2]=6;Qe(0,72520,ka);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=0;ja=c[Q>>2]|0;if((ja|0)!=6){c[ia>>2]=ja;c[ha+4>>2]=6;Qe(0,72520,ha);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=N;ha=c[Q>>2]|0;if((ha|0)!=6){c[ga>>2]=ha;c[fa+4>>2]=6;Qe(0,72520,fa);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=J;fa=c[Q>>2]|0;if((fa|0)!=6){c[ca>>2]=fa;c[da+4>>2]=6;Qe(0,72520,da);tc()}tt(c[sa>>2]|0,K);ca=c[G>>2]|0;if((ca|0)!=7){c[ba>>2]=ca;c[aa+4>>2]=7;Qe(0,72520,aa);tc()}Wu(c[ra>>2]|0,55960,F);If(F,c[X>>2]|0)|0;c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=1;aa=c[Q>>2]|0;if((aa|0)!=6){c[$>>2]=aa;c[_+4>>2]=6;Qe(0,72520,_);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=0;_=c[Q>>2]|0;if((_|0)!=6){c[Z>>2]=_;c[Y+4>>2]=6;Qe(0,72520,Y);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=0;Y=c[Q>>2]|0;if((Y|0)!=6){c[V>>2]=Y;c[W+4>>2]=6;Qe(0,72520,W);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=1;V=c[Q>>2]|0;if((V|0)!=6){c[T>>2]=V;c[U+4>>2]=6;Qe(0,72520,U);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=(N|0)/-2|0;T=c[Q>>2]|0;if((T|0)!=6){c[R>>2]=T;c[O+4>>2]=6;Qe(0,72520,O);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=(J|0)/-2|0;O=c[Q>>2]|0;if((O|0)!=6){c[L>>2]=O;c[M+4>>2]=6;Qe(0,72520,M);tc()}tt(c[sa>>2]|0,K);K=c[G>>2]|0;if((K|0)!=7){c[H>>2]=K;c[I+4>>2]=7;Qe(0,72520,I);tc()}Wu(c[ra>>2]|0,65504,F);F=c[G>>2]|0;if((F|0)!=7){c[C>>2]=F;c[B+4>>2]=7;Qe(0,72520,B);tc()}Wu(c[ra>>2]|0,55992,v);c[E>>2]=13;B=z+8|0;c[B>>2]=0;c[B+4>>2]=0;B=FW(56)|0;xa=Ge(c[(c[P>>2]|0)+28>>2]|0)|0;Tj(B,xa,0,c[(c[P>>2]|0)+24>>2]|0,D);hd[c[(c[B>>2]|0)+116>>2]&127](B,1);Lf(z,B)|0;B=c[P>>2]|0;if((B|0)!=0){ke(B);HW(B)}c[A>>2]=13;B=l+8|0;c[B>>2]=0;c[B+4>>2]=0;Jf(l,c[X>>2]|0)|0;A=c[A>>2]|0;if((A|0)!=7){c[y>>2]=A;c[w+4>>2]=7;Qe(0,72520,w);tc()}Wu(c[B>>2]|0,65496,z);Jf(v,c[X>>2]|0)|0;w=c[x>>2]|0;if((w|0)!=7){c[m>>2]=w;c[n+4>>2]=7;Qe(0,72520,n);tc()}Wu(c[ea>>2]|0,56040,l);xa=FW(32)|0;ee(xa);c[P>>2]=xa;ne(xa,56352,-1)|0;xa=c[P>>2]|0;c[o>>2]=N;c[p+4>>2]=J;pe(xa,65512,p)|0;ne(c[P>>2]|0,56352,-1)|0;xa=c[P>>2]|0;c[q>>2]=N;c[r+4>>2]=J;pe(xa,65512,r)|0;xa=c[P>>2]|0;c[s>>2]=(N|0)/2|0;c[t+4>>2]=(J|0)/2|0;pe(xa,65536,t)|0;ne(c[P>>2]|0,65560,-1)|0;ne(c[P>>2]|0,63808,-1)|0;ne(c[P>>2]|0,63808,-1)|0;bX(u|0,0,16)|0;h[k+16>>3]=+(N|0);h[k+24>>3]=+(J|0);Er(b,k,0,v,e);k=c[P>>2]|0;if((k|0)==0){break}ke(k);HW(k)}}while(0);Of(j)}}while(0);Nf(e,c[b+112>>2]|0,f,0)|0;xa=c[b+28>>2]|0;Tx(d,f,0,c[b+132>>2]|0,+h[xa>>3],+h[xa+8>>3],+h[xa+16>>3],+h[xa+24>>3]);Of(f);i=g;return}function ws(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;g=i;i=i+8|0;h=g;m=i;i=i+8|0;p=i;i=i+8|0;n=p;l=i;i=i+16|0;k=l;c[l>>2]=13;j=k+8|0;c[j>>2]=0;c[j+4>>2]=0;o=b+148|0;c[o>>2]=0;do{if((c[(Yu(f,56120,k,0)|0)>>2]|0)==3){q=c[l>>2]|0;if((q|0)==3){p=c[j>>2]|0;q=FW(32)|0;ie(q,p);c[o>>2]=q;break}else{c[p>>2]=q;c[n+4>>2]=3;Qe(0,72520,n);tc()}}}while(0);Of(k);n=b+156|0;c[n>>2]=0;do{if((c[(Yu(f,55424,k,0)|0)>>2]|0)==7){q=uE(k,c[e+92>>2]|0)|0;c[n>>2]=q;if((jd[c[(c[q>>2]|0)+12>>2]&511](q)|0)!=6){break}if((c[b+36>>2]|0)!=0){break}Qe(-1,65608,m);e=c[n>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[n>>2]=0;a[b+144|0]=0}}while(0);Yu(f,64520,b+160|0,0)|0;b=b+152|0;c[b>>2]=0;if((c[(Yu(f,64512,k,0)|0)>>2]|0)!=7){Of(k);i=d;return}f=FW(32)|0;l=c[l>>2]|0;if((l|0)!=7){c[g>>2]=l;c[h+4>>2]=7;Qe(0,72520,h);tc()}xr(f,c[j>>2]|0);c[b>>2]=f;Of(k);i=d;return}function xs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;l=i;k=i;i=i+8|0;j=k;c[b>>2]=55512;h=b+8|0;c[h>>2]=13;c[b+16>>2]=0;c[b+20>>2]=0;c[b+64>>2]=13;c[b+72>>2]=0;c[b+76>>2]=0;c[b+96>>2]=13;c[b+104>>2]=0;c[b+108>>2]=0;m=b+145|0;do{if((c[g>>2]|0)==9){a[m]=1;m=c[g>>2]|0;if((m|0)==9){k=g+8|0;g=c[k+4>>2]|0;m=b+116|0;c[m>>2]=c[k>>2];c[m+4>>2]=g;break}else{c[k>>2]=m;c[j+4>>2]=9;Qe(0,72520,j);tc()}}else{a[m]=0}}while(0);c[b+48>>2]=0;m=b+24|0;c[m>>2]=0;Kf(h,e)|0;zr(b,d,e,f);c[b>>2]=65584;c[b+160>>2]=13;g=b+168|0;c[g>>2]=0;c[g+4>>2]=0;c[m>>2]=21;ws(b,0,f,e);i=l;return}function ys(a){a=a|0;var b=0;b=i;zs(a);HW(a);i=b;return}function zs(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=65584;d=c[a+148>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+152>>2]|0;if((d|0)!=0){yr(d);HW(d)}d=c[a+156>>2]|0;if((d|0)==0){d=a+160|0;Of(d);Cr(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);d=a+160|0;Of(d);Cr(a);i=b;return}function As(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;h=i;g=i;i=i+8|0;b=g;j=i;i=i+16|0;d=j;c[j>>2]=13;f=d+8|0;c[f>>2]=0;c[f+4>>2]=0;k=(c[(Yu(e,56208,d,0)|0)>>2]|0)==4;e=FW(32)|0;if(!k){fe(e,65712);c[a+192>>2]=e;Of(d);i=h;return}j=c[j>>2]|0;if((j|0)!=4){c[g>>2]=j;c[b+4>>2]=4;Qe(0,72520,b);tc()}fe(e,c[f>>2]|0);c[a+192>>2]=e;Of(d);i=h;return}function Bs(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=65688;d=c[a+192>>2]|0;if((d|0)!=0){ke(d);HW(d)}Or(a);HW(a);i=b;return}function Cs(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=65688;d=c[a+192>>2]|0;if((d|0)==0){Or(a);i=b;return}ke(d);HW(d);Or(a);i=b;return}function Ds(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;f=i;i=i+8|0;g=f;k=i;i=i+8|0;l=k;n=i;i=i+8|0;m=n;o=i;i=i+8|0;p=o;j=i;i=i+16|0;h=j;q=i;i=i+32|0;c[j>>2]=13;b=h+8|0;c[b>>2]=0;c[b+4>>2]=0;if((c[(Yu(e,55944,h,0)|0)>>2]|0)==4){r=c[j>>2]|0;if((r|0)!=4){c[o>>2]=r;c[p+4>>2]=4;Qe(0,72520,p);tc()}fe(q,c[b>>2]|0);do{if((te(q,55048)|0)==0){c[a+24>>2]=5}else{if((te(q,55056)|0)!=0){break}c[a+24>>2]=6}}while(0);ke(q)}Of(h);do{if((c[(Yu(e,64136,h,0)|0)>>2]|0)==6){o=FW(40)|0;p=c[j>>2]|0;if((p|0)==6){vr(o,c[b>>2]|0,0);c[a+192>>2]=o;break}else{c[n>>2]=p;c[m+4>>2]=6;Qe(0,72520,m);tc()}}else{c[a+192>>2]=0}}while(0);Of(h);do{if((c[(Yu(e,64072,h,0)|0)>>2]|0)==7){m=FWFW(32)|0;ee(D);I=a+124|0;c[I>>2]=D;ne(D,56352,-1)|0;D=a+132|0;V=c[D>>2]|0;do{if((V|0)!=0){W=c[V+32>>2]|0;if((W|0)==3){W=c[I>>2]|0;X=+h[V+8>>3];O=+h[V+16>>3];T=P;h[k>>3]=+h[V>>3];c[T>>2]=c[k>>2];c[T+4>>2]=c[k+4>>2];V=U+8|0;h[k>>3]=X;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=U+16|0;h[k>>3]=O;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];c[U+24>>2]=55808;pe(W,55768,U)|0;break}else if((W|0)==1){W=c[I>>2]|0;U=T;h[k>>3]=+h[V>>3];c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];c[Q+8>>2]=71;pe(W,55816,Q)|0;break}else if((W|0)==4){W=c[I>>2]|0;Y=+h[V+8>>3];O=+h[V+16>>3];X=+h[V+24>>3];U=S;h[k>>3]=+h[V>>3];c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];V=R+8|0;h[k>>3]=Y;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=R+16|0;h[k>>3]=O;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=R+24|0;h[k>>3]=X;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];c[R+32>>2]=75;pe(W,55728,R)|0;break}else{break}}}while(0);Q=a+128|0;P=c[Q>>2]|0;do{if((P|0)!=0){O=+wd[c[(c[P>>2]|0)+12>>2]&1](P);W=c[Q>>2]|0;W=(jd[c[(c[W>>2]|0)+24>>2]&511](W)|0)==1;P=c[I>>2]|0;if(W){ne(P,64248,-1)|0;P=c[Q>>2]|0;P=jd[c[(c[P>>2]|0)+16>>2]&511](P)|0;Q=c[Q>>2]|0;Q=jd[c[(c[Q>>2]|0)+20>>2]&511](Q)|0;S=c[I>>2]|0;if((P|0)>0){R=0;while(1){W=M;h[k>>3]=+h[Q+(R<<3)>>3];c[W>>2]=c[k>>2];c[W+4>>2]=c[k+4>>2];pe(S,64256,N)|0;R=R+1|0;S=c[I>>2]|0;if((R|0)<(P|0)){}else{break}}}ne(S,64272,-1)|0}else{ne(P,64280,-1)|0}W=c[I>>2]|0;h[k>>3]=O;c[L>>2]=c[k>>2];c[L+4>>2]=c[k+4>>2];pe(W,64288,K)|0;K=a+192|0;L=c[K>>2]|0;do{if((L|0)!=0){M=c[L+32>>2]|0;if((M|0)==1){W=c[I>>2]|0;V=E;h[k>>3]=+h[L>>3];c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];c[C+8>>2]=103;pe(W,55816,C)|0;break}else if((M|0)==4){W=c[I>>2]|0;Z=+h[L+8>>3];X=+h[L+16>>3];Y=+h[L+24>>3];V=B;h[k>>3]=+h[L>>3];c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=H+8|0;h[k>>3]=Z;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=H+16|0;h[k>>3]=X;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=H+24|0;h[k>>3]=Y;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];c[H+32>>2]=107;pe(W,55728,H)|0;break}else if((M|0)==3){W=c[I>>2]|0;Y=+h[L+8>>3];Z=+h[L+16>>3];V=z;h[k>>3]=+h[L>>3];c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=F+8|0;h[k>>3]=Y;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=F+16|0;h[k>>3]=Z;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];c[F+24>>2]=55800;pe(W,55768,F)|0;break}else{break}}}while(0);if((c[a+24>>2]|0)==5){W=c[I>>2]|0;X=O*.5;V=c[a+28>>2]|0;Y=+h[V+16>>3]- +h[V>>3]-O;Z=+h[V+24>>3]- +h[V+8>>3]-O;V=G;h[k>>3]=X;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=q+8|0;h[k>>3]=X;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=q+16|0;h[k>>3]=Y;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=q+24|0;h[k>>3]=Z;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];pe(W,65744,q)|0}else{W=c[a+28>>2]|0;aa=+h[W+16>>3]- +h[W>>3];ca=+h[W+24>>3]- +h[W+8>>3];Y=O*.5;Z=ca*.5;W=c[I>>2]|0;V=r;h[k>>3]=Y;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=s+8|0;h[k>>3]=Z;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];pe(W,55832,s)|0;X=ca*.25;ba=Z+X;O=aa*.25;ca=ca-Y;_=aa*.5;W=c[I>>2]|0;V=t;h[k>>3]=Y;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=u+8|0;h[k>>3]=ba;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=u+16|0;h[k>>3]=O;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=u+24|0;h[k>>3]=ca;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=u+32|0;h[k>>3]=_;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=u+40|0;h[k>>3]=ca;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];pe(W,55856,u)|0;aa=aa-Y;$=_+O;W=c[I>>2]|0;V=v;h[k>>3]=$;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=w+8|0;h[k>>3]=ca;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=w+16|0;h[k>>3]=aa;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=w+24|0;h[k>>3]=ba;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=w+32|0;h[k>>3]=aa;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=w+40|0;h[k>>3]=Z;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];pe(W,55856,w)|0;W=c[I>>2]|0;V=x;h[k>>3]=aa;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=y+8|0;h[k>>3]=X;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=y+16|0;h[k>>3]=$;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=y+24|0;h[k>>3]=Y;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=y+32|0;h[k>>3]=_;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=y+40|0;h[k>>3]=Y;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];pe(W,55856,y)|0;W=c[I>>2]|0;V=p;h[k>>3]=O;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=A+8|0;h[k>>3]=Y;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=A+16|0;h[k>>3]=Y;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=A+24|0;h[k>>3]=X;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=A+32|0;h[k>>3]=Y;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];V=A+40|0;h[k>>3]=Z;c[V>>2]=c[k>>2];c[V+4>>2]=c[k+4>>2];pe(W,55856,A)|0}p=c[I>>2]|0;if((c[K>>2]|0)==0){ne(p,55928,-1)|0;break}else{ne(p,65784,-1)|0;break}}}while(0);ne(c[I>>2]|0,63808,-1)|0;p=a+28|0;bX(n|0,0,16)|0;W=c[p>>2]|0;h[m+16>>3]=+h[W+16>>3]- +h[W>>3];h[m+24>>3]=+h[W+24>>3]- +h[W+8>>3];if(J==1.0){Er(a,m,0,0,d)}else{c[o>>2]=13;n=l+8|0;c[n>>2]=0;c[n+4>>2]=0;Er(a,m,1,0,l);n=c[I>>2]|0;if((n|0)!=0){ke(n);HW(n)}c[j>>2]=13;W=g+8|0;c[W>>2]=0;c[W+4>>2]=0;W=FW(32)|0;fe(W,63816);c[I>>2]=W;Fr(a,63832,l,63840,J,0,g);Er(a,m,0,g,d)}g=c[I>>2]|0;if((g|0)==0){break}ke(g);HW(g)}else{D=a+132|0;p=a+28|0}}while(0);Nf(d,c[a+112>>2]|0,e,0)|0;W=c[p>>2]|0;Tx(b,e,0,c[D>>2]|0,+h[W>>3],+h[W+8>>3],+h[W+16>>3],+h[W+24>>3]);Of(e);i=f;return}function Hs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;e=i;h=i;i=i+8|0;g=h;l=i;i=i+8|0;m=l;o=i;i=i+8|0;p=o;r=i;i=i+8|0;q=r;v=i;i=i+8|0;u=v;x=i;i=i+8|0;w=x;z=i;i=i+8|0;y=z;C=i;i=i+8|0;B=i;i=i+8|0;A=B;F=i;i=i+8|0;D=F;k=i;i=i+16|0;d=k;E=i;i=i+32|0;t=i;i=i+16|0;s=t;c[k>>2]=13;j=d+8|0;c[j>>2]=0;c[j+4>>2]=0;if((c[(Yu(f,55944,d,0)|0)>>2]|0)==4){G=c[k>>2]|0;if((G|0)!=4){c[F>>2]=G;c[D+4>>2]=4;Qe(0,72520,D);tc()}fe(E,c[j>>2]|0);do{if((te(E,65816)|0)==0){c[b+24>>2]=7}else{if((te(E,65824)|0)!=0){break}c[b+24>>2]=8}}while(0);ke(E)}Of(d);G=(c[(Yu(f,65840,d,0)|0)>>2]|0)==6;D=FW(8)|0;do{if(G){C=c[k>>2]|0;if((C|0)==6){G=c[j>>2]|0;c[D>>2]=0;c[D+4>>2]=0;pr(D,G);c[b+192>>2]=D;break}else{c[B>>2]=C;c[A+4>>2]=6;Qe(0,72520,A);tc()}}else{c[D>>2]=0;c[D+4>>2]=0;c[b+192>>2]=D;Qe(-1,65856,C);a[b+144|0]=0}}while(0);Of(d);do{if((c[(Yu(f,64088,d,0)|0)>>2]|0)==6){A=c[k>>2]|0;if((A|0)!=6){c[z>>2]=A;c[y+4>>2]=6;Qe(0,72520,y);tc()}z=c[j>>2]|0;if((c[z+12>>2]|0)!=2){n=31;break}c[t>>2]=13;y=s+8|0;c[y>>2]=0;c[y+4>>2]=0;do{if((c[(ut(z,0,s)|0)>>2]|0)==3){z=c[t>>2]|0;if((z|0)==3){c[b+196>>2]=mr(c[y>>2]|0)|0;break}else{c[x>>2]=z;c[w+4>>2]=3;Qe(0,72520,w);tc()}}else{c[b+196>>2]=5}}while(0);Of(s);w=c[k>>2]|0;if((w|0)!=6){c[v>>2]=w;c[u+4>>2]=6;Qe(0,72520,u);tc()}do{if((c[(ut(c[j>>2]|0,1,s)|0)>>2]|0)==3){t=c[t>>2]|0;if((t|0)==3){c[b+200>>2]=mr(c[y>>2]|0)|0;break}else{c[r>>2]=t;c[q+4>>2]=3;Qe(0,72520,q);tc()}}else{c[b+200>>2]=5}}while(0);Of(s)}else{n=31}}while(0);if((n|0)==31){c[b+200>>2]=5;c[b+196>>2]=5}Of(d);do{if((c[(Yu(f,64136,d,0)|0)>>2]|0)==6){n=FW(40)|0;q=c[k>>2]|0;if((q|0)==6){vr(n,c[j>>2]|0,0);c[b+204>>2]=n;break}else{c[o>>2]=q;c[p+4>>2]=6;Qe(0,72520,p);tc()}}else{c[b+204>>2]=0}}while(0);Of(d);do{if((c[(Yu(f,64072,d,0)|0)>>2]|0)==7){n=FW(16)|0;o=c[k>>2]|0;if((o|0)==7){or(n,c[j>>2]|0);c[b+208>>2]=n;break}else{c[l>>2]=o;c[m+4>>2]=7;Qe(0,72520,m);tc()}}else{c[b+208>>2]=0}}while(0);Of(d);if((c[(Yu(f,64024,d,0)|0)>>2]|0)!=4){c[b+212>>2]=0;Of(d);i=e;return}f=FW(32)|0;k=c[k>>2]|0;if((k|0)!=4){c[h>>2]=k;c[g+4>>2]=4;Qe(0,72520,g);tc()}fe(f,c[j>>2]|0);do{if((te(f,65888)|0)==0){c[b+212>>2]=0}else{b=b+212|0;if((te(f,65904)|0)==0){c[b>>2]=1;break}else{c[b>>2]=2;break}}}while(0);if((f|0)==0){Of(d);i=e;return}ke(f);HW(f);Of(d);i=e;return}function Is(a){a=a|0;var b=0;b=i;Js(a);HW(a);i=b;return}function Js(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;c[a>>2]=65800;d=c[a+192>>2]|0;if((d|0)!=0){h=c[d>>2]|0;if((h|0)!=0){e=d+4|0;f=c[e>>2]|0;if((f|0)>0){g=0;do{j=c[h+(g<<2)>>2]|0;if((j|0)!=0){HW(j);h=c[d>>2]|0;f=c[e>>2]|0}g=g+1|0;}while((g|0)<(f|0))}Fe(h)}HW(d)}d=c[a+204>>2]|0;if((d|0)!=0){HW(d)}d=c[a+208>>2]|0;if((d|0)==0){Or(a);i=b;return}HW(d);Or(a);i=b;return}function Ks(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;b=i;d=i;i=i+8|0;f=d;l=i;i=i+8|0;m=l;n=i;i=i+16|0;h=n;k=i;i=i+32|0;c[n>>2]=13;g=h+8|0;c[g>>2]=0;c[g+4>>2]=0;j=a+192|0;c[j>>2]=0;if((c[(Yu(e,65960,h,0)|0)>>2]|0)==4){o=c[n>>2]|0;if((o|0)!=4){c[l>>2]=o;c[m+4>>2]=4;Qe(0,72520,m);tc()}fe(k,c[g>>2]|0);do{if((te(k,55584)|0)==0){c[j>>2]=1}else{if((te(k,56336)|0)!=0){break}c[j>>2]=0}}while(0);ke(k)}Of(h);if((c[(Yu(e,64080,h,0)|0)>>2]|0)!=6){c[a+196>>2]=0;Of(h);i=b;return}e=c[n>>2]|0;if((e|0)!=6){c[d>>2]=e;c[f+4>>2]=6;Qe(0,72520,f);tc()}c[a+196>>2]=nr(c[g>>2]|0,c[a+28>>2]|0)|0;Of(h);i=b;return}function Ls(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=65936;d=c[a+196>>2]|0;if((d|0)!=0){HW(d)}Or(a);HW(a);i=b;return}function Ms(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=65936;d=c[a+196>>2]|0;if((d|0)==0){Or(a);i=b;return}HW(d);Or(a);i=b;return}function Ns(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;h=i;o=i;i=i+8|0;e=i;i=i+8|0;d=e;n=i;i=i+8|0;l=n;p=i;i=i+16|0;g=p;j=i;i=i+16|0;k=j;c[p>>2]=13;m=g+8|0;c[m>>2]=0;c[m+4>>2]=0;if((c[(Yu(f,66e3,g,0)|0)>>2]|0)!=6){c[b+196>>2]=0;c[b+192>>2]=0;Qe(-1,66008,o);a[b+144|0]=0;Of(g);i=h;return}f=c[p>>2]|0;if((f|0)!=6){c[n>>2]=f;c[l+4>>2]=6;Qe(0,72520,l);tc()}l=c[m>>2]|0;q=c[l+12>>2]|0;f=b+196|0;c[f>>2]=q;q=ye(q,4)|0;m=b+192|0;c[m>>2]=q;bX(q|0,0,c[f>>2]<<2|0)|0;if((c[f>>2]|0)<=0){Of(g);i=h;return}o=k+8|0;n=o+4|0;p=0;while(1){c[j>>2]=13;c[o>>2]=0;c[n>>2]=0;if((c[(ut(l,p,k)|0)>>2]|0)==6){q=FW(8)|0;b=c[j>>2]|0;if((b|0)!=6){j=8;break}b=c[o>>2]|0;c[q>>2]=0;c[q+4>>2]=0;pr(q,b);c[(c[m>>2]|0)+(p<<2)>>2]=q}Of(k);p=p+1|0;if((p|0)>=(c[f>>2]|0)){j=12;break}}if((j|0)==8){c[e>>2]=b;c[d+4>>2]=6;Qe(0,72520,d);tc()}else if((j|0)==12){Of(g);i=h;return}}function Os(a){a=a|0;var b=0;b=i;Ps(a);HW(a);i=b;return}function Ps(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;b=i;c[a>>2]=65976;d=a+192|0;j=c[d>>2]|0;if((j|0)==0){Or(a);i=b;return}e=a+196|0;h=c[e>>2]|0;if((h|0)>0){f=0;do{g=c[j+(f<<2)>>2]|0;if((g|0)!=0){l=c[g>>2]|0;if((l|0)!=0){h=g+4|0;j=c[h>>2]|0;if((j|0)>0){k=0;do{m=c[l+(k<<2)>>2]|0;if((m|0)!=0){HW(m);l=c[g>>2]|0;j=c[h>>2]|0}k=k+1|0;}while((k|0)<(j|0))}Fe(l)}HW(g);j=c[d>>2]|0;h=c[e>>2]|0}f=f+1|0;}while((f|0)<(h|0))}Fe(j);Or(a);i=b;return}function Qs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;d=i;g=i;i=i+8|0;h=g;m=i;i=i+8|0;l=i;i=i+16|0;j=l;c[l>>2]=13;e=j+8|0;c[e>>2]=0;c[e+4>>2]=0;do{if((c[(Yu(f,66072,j,0)|0)>>2]|0)==7){k=3}else{if((c[(Yu(f,66072,j,0)|0)>>2]|0)==3){k=3;break}Qe(-1,66080,m);a[b+144|0]=0}}while(0);if((k|0)==3){Mf(j,b+192|0)|0}Of(j);m=(c[(Yu(f,56208,j,0)|0)>>2]|0)==4;f=FW(32)|0;if(!m){fe(f,66112);c[b+208>>2]=f;Of(j);i=d;return}k=c[l>>2]|0;if((k|0)!=4){c[g>>2]=k;c[h+4>>2]=4;Qe(0,72520,h);tc()}fe(f,c[e>>2]|0);c[b+208>>2]=f;Of(j);i=d;return}function Rs(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=66040;Of(a+192|0);d=c[a+208>>2]|0;if((d|0)==0){Or(a);HW(a);i=b;return}ke(d);HW(d);Or(a);HW(a);i=b;return}function Ss(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=66040;Of(a+192|0);d=c[a+208>>2]|0;if((d|0)==0){Or(a);i=b;return}ke(d);HW(d);Or(a);i=b;return}function Ts(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0.0,B=0.0,C=0.0;f=i;t=i;i=i+16|0;r=t;s=i;i=i+32|0;u=s;v=i;i=i+40|0;q=v;p=i;i=i+16|0;e=p;n=i;i=i+32|0;j=n;o=i;i=i+16|0;g=o;m=i;i=i+16|0;l=m;c[p>>2]=13;p=e+8|0;c[p>>2]=0;c[p+4>>2]=0;p=c[a+48>>2]|0;if((p&2|0)!=0){i=f;return}do{if(d){if((p&4|0)!=0){break}i=f;return}else{if((p&32|0)==0){break}i=f;return}}while(0);p=c[a+88>>2]|0;do{if((p|0)!=0){d=a+96|0;if((c[d>>2]|0)!=9){break}if(GF(p,d)|0){break}i=f;return}}while(0);p=a+64|0;do{if((c[p>>2]|0)==5){x=+h[a+160>>3];d=FW(32)|0;ee(d);w=a+124|0;c[w>>2]=d;ne(d,56352,-1)|0;d=a+132|0;z=c[d>>2]|0;do{if((z|0)==0){ne(c[w>>2]|0,56360,-1)|0}else{y=c[z+32>>2]|0;if((y|0)==3){y=c[w>>2]|0;B=+h[z+8>>3];A=+h[z+16>>3];v=s;h[k>>3]=+h[z>>3];c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];z=u+8|0;h[k>>3]=B;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+16|0;h[k>>3]=A;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];c[u+24>>2]=55800;pe(y,55768,u)|0;break}else if((y|0)==1){y=c[w>>2]|0;v=t;h[k>>3]=+h[z>>3];c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];c[r+8>>2]=103;pe(y,55816,r)|0;break}else if((y|0)==4){y=c[w>>2]|0;C=+h[z+8>>3];A=+h[z+16>>3];B=+h[z+24>>3];h[k>>3]=+h[z>>3];c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];z=q+8|0;h[k>>3]=C;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=q+16|0;h[k>>3]=A;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=q+24|0;h[k>>3]=B;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];c[q+32>>2]=107;pe(y,55728,q)|0;break}else{break}}}while(0);q=a+208|0;do{if((te(c[q>>2]|0,66112)|0)==0){ne(c[w>>2]|0,66120,-1)|0}else{if((te(c[q>>2]|0,66664)|0)==0){ne(c[w>>2]|0,66680,-1)|0;break}if((te(c[q>>2]|0,67536)|0)==0){ne(c[w>>2]|0,67544,-1)|0;break}if((te(c[q>>2]|0,68128)|0)!=0){break}ne(c[w>>2]|0,68136,-1)|0}}while(0);ne(c[w>>2]|0,63808,-1)|0;bX(n|0,0,16)|0;h[j+24>>3]=24.0;h[j+16>>3]=24.0;if(x==1.0){Er(a,j,0,0,p)}else{c[o>>2]=13;n=g+8|0;c[n>>2]=0;c[n+4>>2]=0;Er(a,j,1,0,g);n=c[w>>2]|0;if((n|0)!=0){ke(n);HW(n)}c[m>>2]=13;z=l+8|0;c[z>>2]=0;c[z+4>>2]=0;z=FW(32)|0;fe(z,63816);c[w>>2]=z;Fr(a,63832,g,63840,x,0,l);Er(a,j,0,l,p)}g=c[w>>2]|0;if((g|0)==0){break}ke(g);HW(g)}else{d=a+132|0}}while(0);Nf(p,c[a+112>>2]|0,e,0)|0;z=c[a+28>>2]|0;Tx(b,e,c[a+128>>2]|0,c[d>>2]|0,+h[z>>3],+h[z+8>>3],+h[z+16>>3],+h[z+24>>3]);Of(e);i=f;return}function Us(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;d=i;g=i;i=i+8|0;h=g;l=i;i=i+8|0;k=i;i=i+16|0;j=k;c[k>>2]=13;e=j+8|0;c[e>>2]=0;c[e+4>>2]=0;m=HG(Yu(f,69904,j,0)|0)|0;c[b+192>>2]=m;if((m|0)==0){Qe(-1,69912,l);a[b+144|0]=0}Of(j);m=(c[(Yu(f,56208,j,0)|0)>>2]|0)==4;f=FW(32)|0;if(!m){fe(f,69928);c[b+196>>2]=f;Of(j);i=d;return}k=c[k>>2]|0;if((k|0)!=4){c[g>>2]=k;c[h+4>>2]=4;Qe(0,72520,h);tc()}fe(f,c[e>>2]|0);c[b+196>>2]=f;Of(j);i=d;return}function Vs(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=69888;d=c[a+192>>2]|0;if((d|0)!=0){JG(d);HW(d)}d=c[a+196>>2]|0;if((d|0)==0){Or(a);HW(a);i=b;return}ke(d);HW(d);Or(a);HW(a);i=b;return}function Ws(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=69888;d=c[a+192>>2]|0;if((d|0)!=0){JG(d);HW(d)}d=c[a+196>>2]|0;if((d|0)==0){Or(a);i=b;return}ke(d);HW(d);Or(a);i=b;return}function Xs(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0.0,B=0.0,C=0.0;f=i;s=i;i=i+16|0;p=s;q=i;i=i+32|0;r=q;t=i;i=i+40|0;u=t;v=i;i=i+16|0;e=v;o=i;i=i+32|0;g=o;m=i;i=i+16|0;j=m;n=i;i=i+16|0;l=n;c[v>>2]=13;v=e+8|0;c[v>>2]=0;c[v+4>>2]=0;v=c[a+48>>2]|0;if((v&2|0)!=0){i=f;return}do{if(d){if((v&4|0)!=0){break}i=f;return}else{if((v&32|0)==0){break}i=f;return}}while(0);v=c[a+88>>2]|0;do{if((v|0)!=0){d=a+96|0;if((c[d>>2]|0)!=9){break}if(GF(v,d)|0){break}i=f;return}}while(0);v=a+64|0;do{if((c[v>>2]|0)==5){x=+h[a+160>>3];d=FW(32)|0;ee(d);w=a+124|0;c[w>>2]=d;ne(d,56352,-1)|0;d=a+132|0;z=c[d>>2]|0;do{if((z|0)==0){ne(c[w>>2]|0,56360,-1)|0}else{y=c[z+32>>2]|0;if((y|0)==4){y=c[w>>2]|0;C=+h[z+8>>3];B=+h[z+16>>3];A=+h[z+24>>3];h[k>>3]=+h[z>>3];c[t>>2]=c[k>>2];c[t+4>>2]=c[k+4>>2];z=u+8|0;h[k>>3]=C;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+16|0;h[k>>3]=B;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+24|0;h[k>>3]=A;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];c[u+32>>2]=107;pe(y,55728,u)|0;break}else if((y|0)==1){y=c[w>>2]|0;u=s;h[k>>3]=+h[z>>3];c[u>>2]=c[k>>2];c[u+4>>2]=c[k+4>>2];c[p+8>>2]=103;pe(y,55816,p)|0;break}else if((y|0)==3){y=c[w>>2]|0;B=+h[z+8>>3];C=+h[z+16>>3];u=q;h[k>>3]=+h[z>>3];c[u>>2]=c[k>>2];c[u+4>>2]=c[k+4>>2];z=r+8|0;h[k>>3]=B;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=r+16|0;h[k>>3]=C;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];c[r+24>>2]=55800;pe(y,55768,r)|0;break}else{break}}}while(0);p=a+196|0;do{if((te(c[p>>2]|0,69928)|0)==0){ne(c[w>>2]|0,69936,-1)|0}else{if((te(c[p>>2]|0,70664)|0)!=0){break}ne(c[w>>2]|0,70672,-1)|0}}while(0);ne(c[w>>2]|0,63808,-1)|0;bX(o|0,0,16)|0;h[g+24>>3]=24.0;h[g+16>>3]=24.0;if(x==1.0){Er(a,g,0,0,v)}else{c[m>>2]=13;m=j+8|0;c[m>>2]=0;c[m+4>>2]=0;c[n>>2]=13;m=l+8|0;c[m>>2]=0;c[m+4>>2]=0;Er(a,g,1,0,j);m=c[w>>2]|0;if((m|0)!=0){ke(m);HW(m)}z=FWFW(20)|0;j=c[j>>2]|0;if((j|0)!=7){c[f>>2]=j;c[g+4>>2]=7;Qe(0,72520,g);tc()}at(e,c[b>>2]|0);c[a+148>>2]=e;Of(d);i=h;return}function Zs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;l=i;k=i;i=i+8|0;j=k;c[b>>2]=55512;h=b+8|0;c[h>>2]=13;c[b+16>>2]=0;c[b+20>>2]=0;c[b+64>>2]=13;c[b+72>>2]=0;c[b+76>>2]=0;c[b+96>>2]=13;c[b+104>>2]=0;c[b+108>>2]=0;m=b+145|0;do{if((c[g>>2]|0)==9){a[m]=1;m=c[g>>2]|0;if((m|0)==9){k=g+8|0;g=c[k+4>>2]|0;m=b+116|0;c[m>>2]=c[k>>2];c[m+4>>2]=g;break}else{c[k>>2]=m;c[j+4>>2]=9;Qe(0,72520,j);tc()}}else{a[m]=0}}while(0);c[b+48>>2]=0;m=b+24|0;c[m>>2]=0;Kf(h,e)|0;zr(b,d,e,f);c[b>>2]=71584;c[m>>2]=25;Ys(b,0,0,e);i=l;return}function _s(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=71584;d=c[a+148>>2]|0;if((d|0)!=0){HW(d)}Cr(a);HW(a);i=b;return}function $s(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=71584;d=c[a+148>>2]|0;if((d|0)==0){Cr(a);i=b;return}HW(d);Cr(a);i=b;return}function at(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;j=i;g=i;i=i+8|0;f=g;m=i;i=i+8|0;k=m;o=i;i=i+8|0;n=o;p=i;i=i+8|0;q=p;r=i;i=i+8|0;s=r;t=i;i=i+8|0;u=t;l=i;i=i+16|0;h=l;c[l>>2]=13;e=h+8|0;c[e>>2]=0;c[e+4>>2]=0;do{if((c[(Yu(d,55424,h,0)|0)>>2]|0)==4){v=FW(32)|0;w=c[l>>2]|0;if((w|0)!=4){c[t>>2]=w;c[u+4>>2]=4;Qe(0,72520,u);tc()}fe(v,c[e>>2]|0);do{if((te(v,71616)|0)==0){c[b>>2]=1}else{if((te(v,71624)|0)==0){c[b>>2]=2;break}if((te(v,71632)|0)==0){c[b>>2]=3;break}else{c[b>>2]=0;break}}}while(0);if((v|0)==0){break}ke(v);HW(v)}else{c[b>>2]=0}}while(0);Of(h);do{if((c[(Yu(d,71640,h,0)|0)>>2]|0)==4){t=FW(32)|0;u=c[l>>2]|0;if((u|0)!=4){c[r>>2]=u;c[s+4>>2]=4;Qe(0,72520,s);tc()}fe(t,c[e>>2]|0);do{if((te(t,55168)|0)==0){c[b+4>>2]=1}else{r=b+4|0;if((te(t,64128)|0)==0){c[r>>2]=2;break}else{c[r>>2]=0;break}}}while(0);if((t|0)==0){break}ke(t);HW(t)}else{c[b+4>>2]=0}}while(0);Of(h);do{if((c[(Yu(d,55384,h,0)|0)>>2]|0)==4){r=FW(32)|0;s=c[l>>2]|0;if((s|0)!=4){c[p>>2]=s;c[q+4>>2]=4;Qe(0,72520,q);tc()}fe(r,c[e>>2]|0);do{if((te(r,71648)|0)==0){c[b+8>>2]=1}else{if((te(r,71656)|0)==0){c[b+8>>2]=2;break}p=b+8|0;if((te(r,71664)|0)==0){c[p>>2]=3;break}else{c[p>>2]=0;break}}}while(0);if((r|0)==0){break}ke(r);HW(r)}else{c[b+8>>2]=0}}while(0);Of(h);do{if((c[(Yu(d,71672,h,0)|0)>>2]|0)==4){p=FW(32)|0;q=c[l>>2]|0;if((q|0)!=4){c[o>>2]=q;c[n+4>>2]=4;Qe(0,72520,n);tc()}fe(p,c[e>>2]|0);do{if((te(p,55400)|0)==0){c[b+12>>2]=1}else{if((te(p,55168)|0)==0){c[b+12>>2]=2;break}n=b+12|0;if((te(p,64128)|0)==0){c[n>>2]=3;break}else{c[n>>2]=0;break}}}while(0);if((p|0)==0){break}ke(p);HW(p)}else{c[b+12>>2]=0}}while(0);Of(h);do{if((c[(Yu(d,71680,h,0)|0)>>2]|0)==0){n=c[l>>2]|0;if((n|0)==0){a[b+16|0]=a[e]&1;break}else{c[m>>2]=n;c[k+4>>2]=0;Qe(0,72520,k);tc()}}else{a[b+16|0]=1}}while(0);Of(h);if((c[(Yu(d,71688,h,0)|0)>>2]|0)!=0){a[b+17|0]=0;Of(h);i=j;return}k=c[l>>2]|0;if((k|0)!=0){c[g>>2]=k;c[f+4>>2]=0;Qe(0,72520,f);tc()}a[b+17|0]=a[e]&1;Of(h);i=j;return}function bt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;n=i;j=i;i=i+8|0;k=j;g=i;i=i+8|0;h=g;l=i;i=i+8|0;m=l;q=i;i=i+16|0;t=q;r=i;i=i+16|0;s=r;c[q>>2]=13;p=t+8|0;c[p>>2]=0;c[p+4>>2]=0;c[b>>2]=0;o=b+4|0;c[o>>2]=0;if((c[f>>2]|0)!=6){i=n;return}u=f+8|0;v=s+8|0;w=v+4|0;x=0;y=0;a:while(1){z=c[u>>2]|0;if((x|0)>=(c[z+12>>2]|0)){e=18;break}c[r>>2]=13;c[v>>2]=0;c[w>>2]=0;do{if((c[(ut(z,x,t)|0)>>2]|0)==7){z=c[f>>2]|0;if((z|0)!=6){e=7;break a}vt(c[u>>2]|0,x,s)|0;z=c[q>>2]|0;if((z|0)!=7){e=9;break a}A=ct(0,d,c[p>>2]|0,e,s)|0;if((A|0)==0){break}if((a[A+144|0]&1)==0){fd[c[(c[A>>2]|0)+4>>2]&511](A);break}B=c[o>>2]|0;if((B|0)<(y|0)){z=c[b>>2]|0}else{y=y+16|0;z=Ce(c[b>>2]|0,y,4)|0;c[b>>2]=z;B=c[o>>2]|0}c[o>>2]=B+1;c[z+(B<<2)>>2]=A}}while(0);Of(s);Of(t);z=c[f>>2]|0;if((z|0)==6){x=x+1|0}else{e=3;break}}if((e|0)==3){c[l>>2]=z;c[m+4>>2]=6;Qe(0,72520,m);tc()}else if((e|0)==7){c[g>>2]=z;c[h+4>>2]=6;Qe(0,72520,h);tc()}else if((e|0)==9){c[j>>2]=z;c[k+4>>2]=7;Qe(0,72520,k);tc()}else if((e|0)==18){i=n;return}}function ct(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=i;l=i;i=i+8|0;o=l;p=i;i=i+16|0;j=p;n=i;i=i+16|0;k=n;c[p>>2]=13;m=j+8|0;c[m>>2]=0;c[m+4>>2]=0;if((c[(Yu(e,55944,j,0)|0)>>2]|0)!=4){p=0;Of(j);i=h;return p|0}b=FW(32)|0;p=c[p>>2]|0;if((p|0)!=4){c[l>>2]=p;c[o+4>>2]=4;Qe(0,72520,o);tc()}fe(b,c[m>>2]|0);do{if((te(b,56200)|0)==0){k=FW(208)|0;Mr(k,d,e,f,g);c[k>>2]=56184;c[k+24>>2]=1;p=k+48|0;c[p>>2]=c[p>>2]|24;Pr(k,0,0,e)}else{if((te(b,63872)|0)==0){k=FW(184)|0;Ur(k,d,e,f,g);break}if((te(b,63944)|0)==0){k=FW(224)|0;Mr(k,d,e,f,g);c[k>>2]=63928;c[k+24>>2]=3;Yr(k,0,0,e);break}if((te(b,64120)|0)==0){k=FW(272)|0;Mr(k,d,e,f,g);c[k>>2]=64104;c[k+24>>2]=4;$r(k,0,0,e);break}if((te(b,55048)|0)==0){k=FW(208)|0;Mr(k,d,e,f,g);c[k>>2]=65728;c[k+24>>2]=5;Ds(k,0,0,e);break}if((te(b,55056)|0)==0){k=FW(208)|0;Mr(k,d,e,f,g);c[k>>2]=65728;c[k+24>>2]=5;Ds(k,0,0,e);break}if((te(b,65816)|0)==0){k=FW(216)|0;Mr(k,d,e,f,g);c[k>>2]=65800;c[k+24>>2]=7;Hs(k,0,0,e);break}if((te(b,65824)|0)==0){k=FW(216)|0;Mr(k,d,e,f,g);c[k>>2]=65800;c[k+24>>2]=7;Hs(k,0,0,e);break}if((te(b,64352)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=64336;c[k+24>>2]=9;ds(k,0,0,e);break}if((te(b,64368)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=64336;c[k+24>>2]=9;ds(k,0,0,e);break}if((te(b,64384)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=64336;c[k+24>>2]=9;ds(k,0,0,e);break}if((te(b,64400)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=64336;c[k+24>>2]=9;ds(k,0,0,e);break}if((te(b,65704)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=65688;c[k+24>>2]=13;As(k,0,0,e);break}if((te(b,65952)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=65936;c[k+24>>2]=14;Ks(k,0,0,e);break}if((te(b,65992)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=65976;c[k+24>>2]=15;Ns(k,0,0,e);break}if((te(b,66056)|0)==0){k=FW(216)|0;Mr(k,d,e,f,g);c[k>>2]=66040;c[k+192>>2]=13;c[k+200>>2]=0;c[k+204>>2]=0;c[k+24>>2]=17;Qs(k,0,0,e);break}if((te(b,69904)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=69888;c[k+24>>2]=18;Us(k,0,0,e);break}if((te(b,65424)|0)==0){k=FW(160)|0;ss(k,d,e,f,g);break}if((te(b,71696)|0)==0){k=FW(184)|0;hs(k,d,e,f,g);break}if((te(b,65600)|0)==0){k=FW(176)|0;xs(k,d,e,f,g);break}if((te(b,71704)|0)==0){k=FW(152)|0;c[k>>2]=55512;l=k+8|0;c[l>>2]=13;c[k+16>>2]=0;c[k+20>>2]=0;c[k+64>>2]=13;c[k+72>>2]=0;c[k+76>>2]=0;c[k+96>>2]=13;c[k+104>>2]=0;c[k+108>>2]=0;m=k+145|0;if((c[g>>2]|0)==9){a[m]=1;n=g+8|0;o=c[n+4>>2]|0;p=k+116|0;c[p>>2]=c[n>>2];c[p+4>>2]=o}else{a[m]=0}c[k+48>>2]=0;c[k+24>>2]=0;Kf(l,e)|0;zr(k,d,e,f);break}if((te(b,71720)|0)==0){l=FW(152)|0;c[l>>2]=55512;m=l+8|0;c[m>>2]=13;c[l+16>>2]=0;c[l+20>>2]=0;c[l+64>>2]=13;c[l+72>>2]=0;c[l+76>>2]=0;c[l+96>>2]=13;c[l+104>>2]=0;c[l+108>>2]=0;k=l+145|0;if((c[g>>2]|0)==9){a[k]=1;n=g+8|0;o=c[n+4>>2]|0;p=l+116|0;c[p>>2]=c[n>>2];c[p+4>>2]=o}else{a[k]=0}c[l+48>>2]=0;c[l+24>>2]=0;Kf(m,e)|0;zr(l,d,e,f);k=l;break}if((te(b,71728)|0)==0){k=FW(152)|0;c[k>>2]=55512;l=k+8|0;c[l>>2]=13;c[k+16>>2]=0;c[k+20>>2]=0;c[k+64>>2]=13;c[k+72>>2]=0;c[k+76>>2]=0;c[k+96>>2]=13;c[k+104>>2]=0;c[k+108>>2]=0;m=k+145|0;if((c[g>>2]|0)==9){a[m]=1;n=g+8|0;o=c[n+4>>2]|0;p=k+116|0;c[p>>2]=c[n>>2];c[p+4>>2]=o}else{a[m]=0}c[k+48>>2]=0;c[k+24>>2]=0;Kf(l,e)|0;zr(k,d,e,f);break}if((te(b,71600)|0)==0){k=FW(152)|0;Zs(k,d,e,f,g);break}if((te(b,56072)|0)==0){c[n>>2]=13;p=k+8|0;c[p>>2]=0;c[p+4>>2]=0;if((c[(Yu(e,56080,k,0)|0)>>2]|0)==5){p=FW(176)|0;Ir(p,d,e,f,g);g=p}else{g=0}Of(k);k=g;break}m=FW(152)|0;c[m>>2]=55512;l=m+8|0;c[l>>2]=13;c[m+16>>2]=0;c[m+20>>2]=0;c[m+64>>2]=13;c[m+72>>2]=0;c[m+76>>2]=0;c[m+96>>2]=13;c[m+104>>2]=0;c[m+108>>2]=0;k=m+145|0;if((c[g>>2]|0)==9){a[k]=1;n=g+8|0;o=c[n+4>>2]|0;p=m+116|0;c[p>>2]=c[n>>2];c[p+4>>2]=o}else{a[k]=0}c[m+48>>2]=0;c[m+24>>2]=0;Kf(l,e)|0;zr(m,d,e,f);k=m}}while(0);if((b|0)==0){p=k;Of(j);i=h;return p|0}ke(b);HW(b);p=k;Of(j);i=h;return p|0}function dt(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;d=a+4|0;e=c[d>>2]|0;g=c[a>>2]|0;if((e|0)>0){f=0}else{h=g;Fe(h);i=b;return}do{h=c[g+(f<<2)>>2]|0;if((h|0)!=0){fd[c[(c[h>>2]|0)+4>>2]&511](h);g=c[a>>2]|0;e=c[d>>2]|0}f=f+1|0;}while((f|0)<(e|0));Fe(g);i=b;return}function et(a){a=a|0;i=i;return c[a+4>>2]|0}function ft(a){a=a|0;i=i;return+(+h[a+8>>3])}function gt(a){a=a|0;i=i;return c[a+16>>2]|0}function ht(a){a=a|0;i=i;return c[a+20>>2]|0}function it(a){a=a|0;i=i;return c[a+24>>2]|0}function jt(a){a=a|0;i=i;return}function kt(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function lt(a){a=a|0;i=i;return}function mt(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function nt(a){a=a|0;var b=0;b=i;c[a>>2]=55264;a=c[a+20>>2]|0;if((a|0)==0){i=b;return}Fe(a);i=b;return}function ot(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=55264;d=c[a+20>>2]|0;if((d|0)==0){HW(a);i=b;return}Fe(d);HW(a);i=b;return}function pt(a){a=a|0;var b=0;b=i;c[a>>2]=55264;a=c[a+20>>2]|0;if((a|0)==0){i=b;return}Fe(a);i=b;return}function qt(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=55264;d=c[a+20>>2]|0;if((d|0)==0){HW(a);i=b;return}Fe(d);HW(a);i=b;return}function rt(a,b){a=a|0;b=b|0;c[a>>2]=b;c[a+4>>2]=0;c[a+12>>2]=0;c[a+8>>2]=0;c[a+16>>2]=1;i=i;return}function st(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+12|0;a=a+4|0;f=c[a>>2]|0;if((c[d>>2]|0)>0){e=0}else{Fe(f);i=b;return}while(1){Of(f+(e<<4)|0);e=e+1|0;f=c[a>>2]|0;if((e|0)<(c[d>>2]|0)){}else{break}}Fe(f);i=b;return}function tt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=i;d=a+12|0;h=c[d>>2]|0;f=a+8|0;do{if((h|0)==(c[f>>2]|0)){g=(h|0)==0?8:h<<1;c[f>>2]=g;a=a+4|0;g=Ce(c[a>>2]|0,g,16)|0;c[a>>2]=g;h=c[d>>2]|0;if((h|0)>=(c[f>>2]|0)){break}while(1){g=g+(h<<4)+8|0;c[g>>2]=0;c[g+4>>2]=0;h=h+1|0;if((h|0)>=(c[f>>2]|0)){break}g=c[a>>2]|0}h=c[d>>2]|0}else{a=a+4|0}}while(0);$W((c[a>>2]|0)+(h<<4)|0,b|0,16)|0;c[d>>2]=(c[d>>2]|0)+1;i=e;return}function ut(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;do{if((b|0)>=0){if((c[a+12>>2]|0)<=(b|0)){break}b=Nf((c[a+4>>2]|0)+(b<<4)|0,c[a>>2]|0,d,0)|0;i=e;return b|0}}while(0);b=d+8|0;c[b>>2]=0;c[b+4>>2]=0;c[d>>2]=5;b=d;i=e;return b|0}function vt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;do{if((b|0)>=0){if((c[a+12>>2]|0)<=(b|0)){break}b=Mf((c[a+4>>2]|0)+(b<<4)|0,d)|0;i=e;return b|0}}while(0);b=d+8|0;c[b>>2]=0;c[b+4>>2]=0;c[d>>2]=5;b=d;i=e;return b|0}function wt(){var a=0,b=0;a=i;b=FW(8)|0;zH(b,73312,315);c[72948>>2]=b;b=FW(8)|0;zH(b,77096,315);c[72972>>2]=b;b=FW(8)|0;zH(b,80880,315);c[72996>>2]=b;b=FW(8)|0;zH(b,84664,315);c[73020>>2]=b;b=FW(8)|0;zH(b,88448,315);c[73044>>2]=b;b=FW(8)|0;zH(b,92232,316);c[73068>>2]=b;b=FW(8)|0;zH(b,96024,315);c[73092>>2]=b;b=FW(8)|0;zH(b,99808,315);c[73116>>2]=b;b=FW(8)|0;zH(b,103592,190);c[73140>>2]=b;b=FW(8)|0;zH(b,105872,315);c[73164>>2]=b;b=FW(8)|0;zH(b,109656,315);c[73188>>2]=b;b=FW(8)|0;zH(b,113440,315);c[73212>>2]=b;b=FW(8)|0;zH(b,117224,315);c[73236>>2]=b;b=FW(8)|0;zH(b,121008,202);c[73260>>2]=b;i=a;return}function xt(){var a=0,b=0,d=0;a=i;d=0;do{b=c[72948+(d*24|0)>>2]|0;if((b|0)!=0){AH(b);HW(b)}d=d+1|0;}while((d|0)<14);i=a;return}function yt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,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;F=i;I=i;i=i+8|0;J=I;G=i;i=i+8|0;H=G;g=i;i=i+8|0;B=i;i=i+8|0;D=i;i=i+8|0;E=D;M=i;i=i+8|0;z=i;i=i+8|0;s=i;i=i+8|0;t=s;p=i;i=i+8|0;q=p;n=i;i=i+8|0;O=i;i=i+8|0;P=O;m=i;i=i+256|0;k=m;y=i;i=i+256|0;h=y;K=i;i=i+256|0;u=i;i=i+8|0;l=u;x=i;i=i+8|0;j=x;L=i;i=i+8|0;v=i;i=i+8|0;o=v;w=i;i=i+8|0;r=w;A=i;i=i+8|0;C=A;do{if((f|0)==0){f=df(c[834]|0,d,e)|0;if((f|0)!=0){O=FW(12)|0;YF(O,251,f);break}do{if((te(e,130136)|0)!=0){if((te(e,130152)|0)==0){break}if((te(e,130168)|0)==0){S=FW(44)|0;Q=FW(32)|0;ie(Q,d);R=FW(32)|0;ie(R,e);c[S>>2]=Q;c[S+4>>2]=R;c[S+8>>2]=1;c[S+12>>2]=0;c[S+16>>2]=1;ad(S+20|0,0)|0;i=F;return S|0}else{S=c[d+28>>2]|0;c[O>>2]=c[e+28>>2];c[P+4>>2]=S;Qe(-1,130184,P);S=0;i=F;return S|0}}}while(0);S=FW(44)|0;Q=FW(32)|0;ie(Q,d);R=FW(32)|0;ie(R,e);c[S>>2]=Q;c[S+4>>2]=R;c[S+8>>2]=0;c[S+12>>2]=0;c[S+16>>2]=1;ad(S+20|0,0)|0;i=F;return S|0}else{fd[c[(c[f>>2]|0)+12>>2]&511](f);O=FW(12)|0;YF(O,250,f);f=0}}while(0);P=FW(44)|0;S=FW(32)|0;ie(S,d);Q=FW(32)|0;ie(Q,e);c[P>>2]=S;c[P+4>>2]=Q;e=P+8|0;c[e>>2]=0;Q=ye(256,8)|0;d=P+12|0;c[d>>2]=Q;a[Q]=0;c[(c[d>>2]|0)+4>>2]=0;Q=1;do{a[(c[d>>2]|0)+(Q<<3)|0]=0;c[(c[d>>2]|0)+(Q<<3)+4>>2]=0;Q=Q+1|0;}while((Q|0)<256);c[P+16>>2]=1;ad(P+20|0,0)|0;_F(O,k,256,l)|0;if(_F(O,h,256,j)|0){R=k+1|0;Q=h+1|0;do{do{if((Qc(h|0,130240)|0)==0){if((a[m]|0)==47){Bt(P,b,R)}_F(O,k,256,l)|0}else{if((Qc(k|0,130248)|0)==0){c[e>>2]=ec(h|0)|0;_F(O,k,256,l)|0;break}if((Qc(h|0,130256)|0)==0){a:do{if(_F(O,k,256,l)|0){while(1){if((Qc(k|0,130280)|0)==0){break a}if(!(_F(O,h,256,j)|0)){break}if((Qc(h|0,130280)|0)==0){break}do{if((a[m]|0)==60){if((a[y]|0)!=60){break}S=c[u>>2]|0;if(!((S|0)==(c[x>>2]|0)&(S|0)>3&(S&1|0)==0)){break}S=S+ -1|0;a[h+S|0]=0;a[k+S|0]=0;c[p>>2]=o;Hc(R|0,130352,q|0)|0;c[s>>2]=r;Hc(Q|0,130352,t|0)|0;S=((c[u>>2]|0)+ -2|0)/2|0;c[u>>2]=S;Ct(P,c[d>>2]|0,c[v>>2]|0,c[w>>2]|0,S)}}while(0);if(!(_F(O,k,256,l)|0)){break a}}Qe(-1,130304,n)}}while(0);_F(O,k,256,l)|0;break}if((Qc(h|0,130360)|0)==0){b:do{if(_F(O,k,256,l)|0){while(1){if((Qc(k|0,130376)|0)==0){break b}if(!(_F(O,h,256,j)|0)){break}if((Qc(h|0,130376)|0)==0){break}do{if((a[m]|0)==60){T=c[u>>2]|0;S=k+(T+ -1)|0;if(!((a[S]|0)==62&(T|0)>3&(T&1|0)==0)){N=42;break}a[S]=0;c[D>>2]=C;if((Hc(R|0,130352,E|0)|0)==1){T=((c[u>>2]|0)+ -2|0)/2|0;c[u>>2]=T;S=c[A>>2]|0;Dt(P,S,S,T,ec(h|0)|0);break}else{Qe(-1,130392,B);break}}else{N=42}}while(0);if((N|0)==42){N=0;Qe(-1,130392,M)}if(!(_F(O,k,256,l)|0)){break b}}Qe(-1,130392,z)}}while(0);_F(O,k,256,l)|0;break}if((Qc(h|0,130432)|0)!=0){eX(k|0,h|0)|0;break}c:do{if(_F(O,k,256,l)|0){while(1){if((Qc(k|0,130448)|0)==0){break c}if(!(_F(O,h,256,j)|0)){break}if((Qc(h|0,130448)|0)==0){break}if(!(_F(O,K,256,L)|0)){break}if((Qc(K|0,130448)|0)==0){break}do{if((a[m]|0)==60){if((a[y]|0)!=60){break}S=c[u>>2]|0;if(!((S|0)==(c[x>>2]|0)&(S|0)>3&(S&1|0)==0)){break}T=S+ -1|0;a[h+T|0]=0;a[k+T|0]=0;c[G>>2]=o;Hc(R|0,130352,H|0)|0;c[I>>2]=r;Hc(Q|0,130352,J|0)|0;T=((c[u>>2]|0)+ -2|0)/2|0;c[u>>2]=T;U=c[v>>2]|0;S=c[w>>2]|0;Dt(P,U,S,T,ec(K|0)|0)}}while(0);if(!(_F(O,k,256,l)|0)){break c}}Qe(-1,130464,g)}}while(0);_F(O,k,256,l)|0}}while(0);}while(_F(O,h,256,j)|0)}if((O|0)!=0){HW(O)}if((f|0)==0){U=P;i=F;return U|0}mc(f|0)|0;U=P;i=F;return U|0}function zt(a){a=a|0;var b=0;b=i;a=jd[c[(c[a>>2]|0)+20>>2]&511](a)|0;i=b;return a|0}function At(a){a=a|0;var b=0;b=i;a=qc(a|0)|0;i=b;return a|0}function Bt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;f=FWFW(12)|0;c[h>>2]=0;c[h+4>>2]=0;c[h+8>>2]=0;g=a+16|0;c[g>>2]=h;h=a+8|0;c[h>>2]=0;b=sd[c[(c[b>>2]|0)+8>>2]&127](b,d,a)|0;c[h>>2]=b;c[a+20>>2]=1;g=c[g>>2]|0;b=(b>>>13)+1|0;d=g+4|0;a=c[d>>2]|0;h=c[g>>2]|0;f=(a-h|0)/8196|0;if(f>>>0<b>>>0){Yt(g,b-f|0);i=e;return}if(f>>>0<=b>>>0){i=e;return}b=h+(b*8196|0)|0;if((b|0)==(a|0)){i=e;return}c[d>>2]=a+(~(((a+ -8196+(0-b)|0)>>>0)/8196|0)*8196|0);i=e;return}function Ot(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=c[a+4>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}a=c[a+16>>2]|0;if((a|0)==0){i=b;return}d=c[a>>2]|0;if((d|0)!=0){e=a+4|0;f=c[e>>2]|0;if((d|0)!=(f|0)){c[e>>2]=f+(~(((f+ -8196+(0-d)|0)>>>0)/8196|0)*8196|0)}HW(d)}HW(a);i=b;return}function Pt(a){a=a|0;a=a+20|0;c[a>>2]=(c[a>>2]|0)+1;i=i;return}function Qt(a){a=a|0;var b=0,d=0,e=0;b=i;e=a+20|0;d=(c[e>>2]|0)+ -1|0;c[e>>2]=d;if((d|0)!=0|(a|0)==0){i=b;return}Ot(a);HW(a);i=b;return}function Rt(a){a=a|0;i=i;return c[a+12>>2]|0}function St(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((d|0)==0){c[a+12>>2]=b}else if((d|0)==1){d=a+12|0;b=(c[d>>2]|0)+b|0;c[d>>2]=b}else{b=(c[a+8>>2]|0)+b|0;c[a+12>>2]=b}if(b>>>0<=(c[a+8>>2]|0)>>>0){d=0;i=e;return d|0}c[a+12>>2]=0;d=1;i=e;return d|0}function Tt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;e=i;f=i;i=i+16|0;o=f;h=i;i=i+16|0;q=h;k=i;i=i+16|0;x=k;n=i;i=i+16|0;p=n;c[f>>2]=0;d=o+4|0;c[d>>2]=0;m=o+8|0;c[m>>2]=0;v=a+8|0;u=c[v>>2]|0;t=u>>>13;r=t+1|0;g=FW((u>>>18<<2)+4|0)|0;s=r>>>5;bX(g|0,0,s<<2|0)|0;j=s<<5;if((j|0)!=(r|0)){C=g+(s<<2)|0;c[C>>2]=c[C>>2]&~(-1>>>(31-t+j|0))}c[h>>2]=0;j=q+4|0;c[j>>2]=0;t=q+8|0;c[t>>2]=0;c[k>>2]=0;s=x+4|0;c[s>>2]=0;y=x+8|0;c[y>>2]=0;w=c[b+4>>2]|0;if((c[b>>2]|0)==(w|0)){w=FW(8)|0;if((w|0)!=0){C=w;c[C>>2]=0;c[C+4>>2]=u}C=w+8|0;c[k>>2]=w;c[s>>2]=C;c[y>>2]=w+8;u=C;w=C}else{u=0;x=b}b=0;do{C=g+(b>>>5<<2)|0;c[C>>2]=c[C>>2]&~(1<<(b&31));b=b+1|0;}while((b|0)<(r|0));b=c[x>>2]|0;if((w|0)==(b|0)){v=0}else{x=a+16|0;y=0;while(1){B=c[b+(y<<3)+4>>2]|0;a:do{if((B|0)!=0){z=c[b+(y<<3)>>2]|0;A=c[v>>2]|0;if(z>>>0>=A>>>0){break}B=B+ -1+z|0;z=z>>>13;A=(B>>>0<A>>>0?B:A+ -1|0)>>>13;if(z>>>0>A>>>0){break}B=c[x>>2]|0;while(1){if((c[(c[B>>2]|0)+(z*8196|0)>>2]|0)==0){C=g+(z>>>5<<2)|0;c[C>>2]=c[C>>2]|1<<(z&31)}if((z|0)>=(A|0)){break a}z=z+1|0}}}while(0);y=y+1|0;if(y>>>0>=w-b>>3>>>0){v=0;break}}}b:while(1){if((1<<(v&31)&c[g+(v>>>5<<2)>>2]|0)==0){v=v+1|0;if((v|0)==(r|0)){l=66;break}else{continue}}if((v|0)==(r|0)){l=66;break}x=c[d>>2]|0;do{if((x|0)==(c[m>>2]|0)){w=c[f>>2]|0;b=x-w|0;y=b>>2;x=y+1|0;if(x>>>0>1073741823){l=28;break b}if(y>>>0>536870910){A=1073741823;l=31}else{z=b>>1;A=z>>>0<x>>>0?x:z;if((A|0)==0){z=0;A=0}else{l=31}}if((l|0)==31){l=0;z=FW(A<<2)|0}y=z+(y<<2)|0;if((y|0)!=0){c[y>>2]=v}$W(z|0,w|0,b|0)|0;c[f>>2]=z;c[d>>2]=z+(x<<2);c[m>>2]=z+(A<<2);if((w|0)==0){break}HW(w)}else{if((x|0)==0){w=0}else{c[x>>2]=v;w=c[d>>2]|0}c[d>>2]=w+4}}while(0);w=v+1|0;c:do{if((w|0)==(r|0)){b=v;w=r}else{b=v;while(1){if((c[g+(w>>>5<<2)>>2]&1<<(w&31)|0)==0){break c}b=c[d>>2]|0;do{if((b|0)==(c[m>>2]|0)){x=c[f>>2]|0;b=b-x|0;z=b>>2;y=z+1|0;if(y>>>0>1073741823){l=44;break b}if(z>>>0>536870910){B=1073741823;l=47}else{A=b>>1;B=A>>>0<y>>>0?y:A;if((B|0)==0){A=0;B=0}else{l=47}}if((l|0)==47){l=0;A=FW(B<<2)|0}z=A+(z<<2)|0;if((z|0)!=0){c[z>>2]=w}$W(A|0,x|0,b|0)|0;c[f>>2]=A;c[d>>2]=A+(y<<2);c[m>>2]=A+(B<<2);if((x|0)==0){break}HW(x)}else{if((b|0)==0){x=0}else{c[b>>2]=w;x=c[d>>2]|0}c[d>>2]=x+4}}while(0);x=w+1|0;if((x|0)==(r|0)){b=w;w=r;break}else{b=w;w=x}}}}while(0);x=v<<13;v=(b-v<<13)+8192|0;y=c[j>>2]|0;do{if((y|0)==(c[t>>2]|0)){b=c[h>>2]|0;z=y-b|0;A=z>>3;y=A+1|0;if(y>>>0>536870911){l=58;break b}if(A>>>0>268435454){C=536870911;l=61}else{B=z>>2;C=B>>>0<y>>>0?y:B;if((C|0)==0){B=0;C=0}else{l=61}}if((l|0)==61){l=0;B=FW(C<<3)|0}A=B+(A<<3)|0;if((A|0)!=0){c[A>>2]=x;c[A+4>>2]=v}$W(B|0,b|0,z|0)|0;c[h>>2]=B;c[j>>2]=B+(y<<3);c[t>>2]=B+(C<<3);if((b|0)==0){break}HW(b)}else{if((y|0)==0){v=0}else{C=y;c[C>>2]=x;c[C+4>>2]=v;v=c[j>>2]|0}c[j>>2]=v+8}}while(0);if((w|0)<(r|0)){v=w}else{l=66;break}}if((l|0)==28){wn(0)}else if((l|0)==44){wn(0)}else if((l|0)==58){wn(0)}else if((l|0)==66){if((c[j>>2]|0)==(c[h>>2]|0)){a=0}else{c[n>>2]=a;c[p+4>>2]=o;c[p+12>>2]=0;c[p+8>>2]=c[f>>2];a=c[a>>2]|0;a=sd[c[(c[a>>2]|0)+12>>2]&127](a,q,p)|0}k=c[k>>2]|0;if((k|0)!=0){if((k|0)!=(u|0)){c[s>>2]=u+(~((u+ -8+(0-k)|0)>>>3)<<3)}HW(k)}h=c[h>>2]|0;if((h|0)!=0){k=c[j>>2]|0;if((h|0)!=(k|0)){c[j>>2]=k+(~((k+ -8+(0-h)|0)>>>3)<<3)}HW(h)}if((g|0)!=0){HW(g)}f=c[f>>2]|0;if((f|0)==0){i=e;return a|0}g=c[d>>2]|0;if((f|0)!=(g|0)){c[d>>2]=g+(~((g+ -4+(0-f)|0)>>>2)<<2)}HW(f);i=e;return a|0}return 0}function Ut(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=i;g=i;i=i+16|0;h=g;j=da(e,d)|0;e=c[a+8>>2]|0;d=a+12|0;k=c[d>>2]|0;e=e>>>0<(k+j|0)>>>0?e-k|0:j;if((e|0)==0){n=0;i=f;return n|0}c[g>>2]=0;j=h+4|0;c[j>>2]=0;m=h+8|0;c[m>>2]=0;l=FW(8)|0;n=l+8|0;if((l|0)!=0){o=l;c[o>>2]=k;c[o+4>>2]=e}c[g>>2]=l;c[j>>2]=n;c[m>>2]=n;h=Tt(a,h)|0;k=c[g>>2]|0;if((k|0)!=0){g=c[j>>2]|0;if((k|0)!=(g|0)){c[j>>2]=g+(~((g+ -8+(0-k)|0)>>>3)<<3)}HW(k)}if((h|0)!=0){o=0;i=f;return o|0}a=a+16|0;g=c[d>>2]|0;h=e;while(1){k=g&8191;j=8192-k|0;j=j>>>0>h>>>0?h:j;$W(b|0,(c[c[a>>2]>>2]|0)+((g>>>13)*8196|0)+4+k|0,j|0)|0;g=(c[d>>2]|0)+j|0;c[d>>2]=g;if((h|0)==(j|0)){break}else{h=h-j|0;b=b+j|0}}i=f;return e|0}function Vt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;c[a>>2]=b;c[a+4>>2]=d;if((d|0)==0){i=e;return}c[a+12>>2]=0;c[a+8>>2]=c[d>>2];i=e;return}function Wt(a){a=a|0;i=i;return}function Xt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=i;if((d|0)==0){r=0;i=e;return r|0}h=a+4|0;g=a+12|0;j=a+8|0;k=0;while(1){l=c[h>>2]|0;if((l|0)==0){m=c[a>>2]|0;l=m+8|0;c[g>>2]=c[l>>2]&8191;l=(c[l>>2]|0)>>>13}else{m=c[j>>2]|0;if((c[g>>2]|0)==8192){m=m+4|0;c[j>>2]=m;if((m|0)==(c[l+4>>2]|0)){f=23;break}c[g>>2]=0;l=m}else{l=m}m=c[a>>2]|0;l=c[l>>2]|0}q=c[m+16>>2]|0;m=q+4|0;n=c[m>>2]|0;p=c[q>>2]|0;r=(n-p|0)/8196|0;do{if(l>>>0>=r>>>0){o=l+1|0;if(r>>>0<o>>>0){Yt(q,o-r|0);break}if(r>>>0<=o>>>0){break}o=p+(o*8196|0)|0;if((o|0)==(n|0)){break}c[m>>2]=n+(~(((n+ -8196+(0-o)|0)>>>0)/8196|0)*8196|0)}}while(0);n=c[g>>2]|0;m=8192-n|0;m=d>>>0>=m>>>0?m:d;$W((c[c[(c[a>>2]|0)+16>>2]>>2]|0)+(l*8196|0)+4+n|0,b|0,m|0)|0;n=(c[g>>2]|0)+m|0;c[g>>2]=n;k=m+k|0;if((c[h>>2]|0)==0){n=(c[a>>2]|0)+8|0;c[n>>2]=(c[n>>2]|0)+m;n=c[g>>2]|0}if((n|0)==8192){c[(c[c[(c[a>>2]|0)+16>>2]>>2]|0)+(l*8196|0)>>2]=1}if((d|0)==(m|0)){break}else{b=b+m|0;d=d-m|0}}if((f|0)==23){i=e;return k|0}f=c[a>>2]|0;g=c[f+8>>2]|0;if((l|0)!=(g>>>13|0)){r=k;i=e;return r|0}if((c[a+12>>2]|0)!=(g&8191|0)){r=k;i=e;return r|0}c[(c[c[f+16>>2]>>2]|0)+(l*8196|0)>>2]=1;r=k;i=e;return r|0}function Yt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;f=a+8|0;k=c[f>>2]|0;d=a+4|0;g=c[d>>2]|0;if(((k-g|0)/8196|0)>>>0>=b>>>0){do{if((g|0)==0){f=0}else{bX(g|0,0,8196)|0;f=c[d>>2]|0}g=f+8196|0;c[d>>2]=g;b=b+ -1|0;}while((b|0)!=0);i=e;return}l=c[a>>2]|0;g=(g-l|0)/8196|0;j=g+b|0;if(j>>>0>524032){wn(0)}k=(k-l|0)/8196|0;if(k>>>0>262015){k=524032;h=9}else{k=k<<1;k=k>>>0<j>>>0?j:k;if((k|0)==0){j=0;k=0}else{h=9}}if((h|0)==9){j=FW(k*8196|0)|0}h=j+(g*8196|0)|0;do{if((h|0)==0){h=0}else{bX(h|0,0,8196)|0}h=h+8196|0;b=b+ -1|0;}while((b|0)!=0);b=c[a>>2]|0;m=(c[d>>2]|0)-b|0;l=j+((((m|0)/-8196|0)+g|0)*8196|0)|0;$W(l|0,b|0,m|0)|0;c[a>>2]=l;c[d>>2]=h;c[f>>2]=j+(k*8196|0);if((b|0)==0){i=e;return}HW(b);i=e;return}function Zt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;f=i;n=i;i=i+8|0;o=n;v=i;i=i+8|0;p=v;x=i;i=i+8|0;y=x;B=i;i=i+8|0;C=B;E=i;i=i+8|0;r=i;i=i+16|0;e=r;A=i;i=i+16|0;q=A;z=i;i=i+16|0;s=z;D=i;i=i+16|0;l=D;c[b+48>>2]=13;j=b+56|0;c[j>>2]=0;c[j+4>>2]=0;c[b+64>>2]=13;j=b+72|0;c[j>>2]=0;c[j+4>>2]=0;c[b+96>>2]=13;j=b+104|0;c[j>>2]=0;c[j+4>>2]=0;c[b+112>>2]=13;j=b+120|0;c[j>>2]=0;c[j+4>>2]=0;c[b+128>>2]=13;j=b+136|0;c[j>>2]=0;c[j+4>>2]=0;j=b+144|0;c[j>>2]=13;m=b+152|0;c[m>>2]=0;c[m+4>>2]=0;c[r>>2]=13;m=e+8|0;c[m>>2]=0;c[m+4>>2]=0;c[A>>2]=13;w=q+8|0;c[w>>2]=0;c[w+4>>2]=0;c[z>>2]=13;t=s+8|0;c[t>>2]=0;c[t+4>>2]=0;c[D>>2]=13;D=l+8|0;c[D>>2]=0;c[D+4>>2]=0;D=b+164|0;a[D]=1;c[b>>2]=d;c[b+4>>2]=0;c[b+8>>2]=0;c[b+36>>2]=-1;c[b+40>>2]=0;u=b+92|0;c[u>>2]=0;c[b+168>>2]=0;h=b+32|0;c[h>>2]=0;k=b+160|0;c[k>>2]=0;c[b+172>>2]=6;c[b+176>>2]=7;c[b+80>>2]=0;c[b+84>>2]=0;c[b+88>>2]=0;bX(b+12|0,0,20)|0;_m(d,c[d+20>>2]|0,c[d+24>>2]|0,e,0)|0;if((c[r>>2]|0)!=7){c[E>>2]=Pf(e)|0;Qe(-1,130568,E);Of(e);a[D]=0;i=f;return}Yu(c[m>>2]|0,130608,j,0)|0;d=c[r>>2]|0;if((d|0)!=7){c[B>>2]=d;c[C+4>>2]=7;Qe(0,131112,C);tc()}if((c[(Yu(c[m>>2]|0,130624,q,0)|0)>>2]|0)==7){A=c[A>>2]|0;if((A|0)!=7){c[x>>2]=A;c[y+4>>2]=7;Qe(0,131112,y);tc()}do{if((c[(Yu(c[w>>2]|0,130632,s,0)|0)>>2]|0)==3){w=c[z>>2]|0;if((w|0)==3){D=c[t>>2]|0;E=FW(32)|0;ie(E,D);c[u>>2]=E;break}else{c[v>>2]=w;c[p+4>>2]=3;Qe(0,131112,p);tc()}}}while(0);Of(s)}Of(q);p=c[r>>2]|0;if((p|0)!=7){c[n>>2]=p;c[o+4>>2]=7;Qe(0,131112,o);tc()}do{if((c[(Yu(c[m>>2]|0,130640,l,0)|0)>>2]|0)==7){m=FW(48)|0;EF(m,l,c[b>>2]|0);c[k>>2]=m;if((a[m]&1)!=0){break}if((m|0)!=0){FF(m);HW(m)}c[k>>2]=0}}while(0);Of(l);k=c[h>>2]|0;do{if((k|0)==0){if((c[j>>2]|0)!=7){break}k=FW(24)|0;Lv(k,c[b>>2]|0,j);c[h>>2]=k;if((k|0)!=0){g=23}}else{g=23}}while(0);if((g|0)==23){Ov(k)}Of(e);i=f;return}function _t(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+32|0;e=c[d>>2]|0;if((e|0)!=0){i=b;return e|0}e=a+144|0;if((c[e>>2]|0)!=7){e=0;i=b;return e|0}f=FWFW(12)|0;c[ga>>2]=0;c[ga+4>>2]=0;c[ga+8>>2]=0;c[y>>2]=ga;hu(ga,ea);ga=FW(12)|0;c[ga>>2]=0;c[ga+4>>2]=0;c[ga+8>>2]=0;c[b+20>>2]=ga;gu(ga,fa);ga=FW(12)|0;c[ga>>2]=0;ea=ga+4|0;c[ea>>2]=0;Aa=ga+8|0;c[Aa>>2]=0;c[b+24>>2]=ga;fa=FW(288)|0;hg(fa,0,c[G>>2]|0);c[da>>2]=fa;da=c[ea>>2]|0;if((da|0)==(c[Aa>>2]|0)){fu(ga,ca)}else{if((da|0)==0){ca=0}else{c[da>>2]=fa;ca=c[ea>>2]|0}c[ea>>2]=ca+4}Aa=FW(12)|0;c[Aa>>2]=0;c[Aa+4>>2]=0;c[Aa+8>>2]=0;c[b+28>>2]=Aa;c[ba>>2]=0;eu(Aa,aa);c[b+12>>2]=0;ba=0;break a}}while(0);Qe(-1,130664,ra);Of(ta);Aa=0;i=f;return Aa|0}else{ba=c[b+12>>2]|0}}while(0);aa=b+12|0;if((ba|0)>=(d|0)){Aa=1;i=f;return Aa|0}fa=j+8|0;na=fa+4|0;ja=b+28|0;ea=m+8|0;ba=ea+4|0;ha=b+20|0;ca=s+8|0;da=ca+4|0;ga=b+24|0;ia=b+32|0;ka=b+36|0;la=b+4|0;ma=b+8|0;b:while(1){Aa=c[y>>2]|0;oa=c[Aa+4>>2]|0;if((c[Aa>>2]|0)==(oa|0)){g=0;e=98;break}Aa=c[oa+ -4>>2]|0;c[G>>2]=Aa;c[r>>2]=13;c[fa>>2]=0;c[na>>2]=0;Yu(Aa,130776,j,0)|0;if((c[r>>2]|0)!=6){e=29;break}oa=c[(c[(c[ja>>2]|0)+4>>2]|0)+ -4>>2]|0;pa=c[fa>>2]|0;c:do{if((oa|0)<(c[pa+12>>2]|0)){c[v>>2]=13;c[ea>>2]=0;c[ba>>2]=0;vt(pa,oa,m)|0;if((c[v>>2]|0)!=9){e=44;break b}qa=c[ha>>2]|0;pa=c[qa+4>>2]|0;qa=c[qa>>2]|0;d:do{if((pa|0)!=(qa|0)){ra=0;while(1){sa=ra+1|0;if((c[qa+(ra<<3)>>2]|0)==(c[ea>>2]|0)){break}if(sa>>>0<pa-qa>>3>>>0){ra=sa}else{break d}}Qe(-1,130888,p);Of(m);Of(j);Aa=(c[(c[ja>>2]|0)+4>>2]|0)+ -4|0;c[Aa>>2]=(c[Aa>>2]|0)+1;break c}}while(0);c[q>>2]=13;c[ca>>2]=0;c[da>>2]=0;pa=c[r>>2]|0;if((pa|0)!=6){e=47;break b}ut(c[fa>>2]|0,oa,s)|0;Of(j);e:do{if((c[q>>2]|0)==7){do{if(!(Xu(c[ca>>2]|0,130912)|0)){if((c[q>>2]|0)!=7){e=96;break e}if(!(Uu(c[ca>>2]|0,130776)|0)){break}if((c[q>>2]|0)!=7){e=96;break e}pa=c[ga>>2]|0;ra=FW(288)|0;oa=pa+4|0;hg(ra,c[(c[oa>>2]|0)+ -4>>2]|0,c[ca>>2]|0);c[t>>2]=ra;qa=c[oa>>2]|0;if((qa|0)==(c[pa+8>>2]|0)){fu(pa,u)}else{if((qa|0)==0){pa=0}else{c[qa>>2]=ra;pa=c[oa>>2]|0}c[oa>>2]=pa+4}pa=c[ha>>2]|0;oa=c[v>>2]|0;if((oa|0)!=9){e=76;break b}sa=ea;ra=c[sa>>2]|0;sa=c[sa+4>>2]|0;oa=w;c[oa>>2]=ra;c[oa+4>>2]=sa;oa=pa+4|0;qa=c[oa>>2]|0;if((qa|0)==(c[pa+8>>2]|0)){gu(pa,x)}else{if((qa|0)==0){pa=0}else{pa=qa;c[pa>>2]=ra;c[pa+4>>2]=sa;pa=c[oa>>2]|0}c[oa>>2]=pa+8}oa=c[q>>2]|0;if((oa|0)!=7){e=83;break b}oa=(c[ca>>2]|0)+20|0;c[oa>>2]=(c[oa>>2]|0)+1;oa=c[y>>2]|0;pa=c[q>>2]|0;if((pa|0)!=7){e=85;break b}ra=c[ca>>2]|0;c[z>>2]=ra;pa=oa+4|0;qa=c[pa>>2]|0;if((qa|0)==(c[oa+8>>2]|0)){hu(oa,A)}else{if((qa|0)==0){oa=0}else{c[qa>>2]=ra;oa=c[pa>>2]|0}c[pa>>2]=oa+4}pa=c[ja>>2]|0;c[B>>2]=0;oa=pa+4|0;qa=c[oa>>2]|0;if((qa|0)==(c[pa+8>>2]|0)){eu(pa,C);break e}if((qa|0)==0){pa=0}else{c[qa>>2]=0;pa=c[oa>>2]|0}c[oa>>2]=pa+4;break e}}while(0);pa=FW(288)|0;oa=c[q>>2]|0;if((oa|0)!=7){e=53;break b}hg(pa,c[(c[(c[ga>>2]|0)+4>>2]|0)+ -4>>2]|0,c[ca>>2]|0);oa=FW(144)|0;qa=c[b>>2]|0;ra=(c[aa>>2]|0)+1|0;sa=c[q>>2]|0;if((sa|0)!=7){e=55;break b}sa=c[v>>2]|0;if((sa|0)!=9){e=57;break b}za=c[ca>>2]|0;xa=ea;ya=c[xa+4>>2]|0;Aa=D;c[Aa>>2]=c[xa>>2];c[Aa+4>>2]=ya;Aa=c[ia>>2]|0;$W(E|0,D|0,8)|0;kg(oa,qa,ra,za,F,pa,Aa);pa=c[aa>>2]|0;if((a[oa+136|0]&1)==0){e=59;break b}if((pa|0)>=(c[ka>>2]|0)){e=63;break b}c[(c[la>>2]|0)+(pa<<2)>>2]=oa;oa=c[v>>2]|0;if((oa|0)!=9){e=65;break b}c[(c[ma>>2]|0)+(c[aa>>2]<<3)>>2]=c[ea>>2];oa=c[v>>2]|0;if((oa|0)!=9){e=67;break b}c[(c[ma>>2]|0)+(c[aa>>2]<<3)+4>>2]=c[ba>>2];c[aa>>2]=(c[aa>>2]|0)+1;Aa=(c[(c[ja>>2]|0)+4>>2]|0)+ -4|0;c[Aa>>2]=(c[Aa>>2]|0)+1}else{e=96}}while(0);if((e|0)==96){e=0;za=(c[aa>>2]|0)+1|0;Aa=Pf(s)|0;c[$>>2]=za;c[h+4>>2]=Aa;Qe(-1,131008,h);Aa=(c[(c[ja>>2]|0)+4>>2]|0)+ -4|0;c[Aa>>2]=(c[Aa>>2]|0)+1}Of(m);Of(s)}else{za=(c[(c[(c[y>>2]|0)+4>>2]|0)+ -4>>2]|0)+20|0;Aa=(c[za>>2]|0)+ -1|0;c[za>>2]=Aa;do{if((Aa|0)==0){oa=c[(c[(c[y>>2]|0)+4>>2]|0)+ -4>>2]|0;if((oa|0)==0){break}Su(oa);HW(oa)}}while(0);oa=(c[y>>2]|0)+4|0;c[oa>>2]=(c[oa>>2]|0)+ -4;oa=(c[ha>>2]|0)+4|0;c[oa>>2]=(c[oa>>2]|0)+ -8;oa=c[ga>>2]|0;pa=c[oa+4>>2]|0;qa=c[pa+ -4>>2]|0;if((qa|0)!=0){jg(qa);HW(qa);oa=c[ga>>2]|0;pa=c[oa+4>>2]|0}c[oa+4>>2]=pa+ -4;Aa=(c[ja>>2]|0)+4|0;c[Aa>>2]=(c[Aa>>2]|0)+ -4;Aa=c[ja>>2]|0;oa=c[Aa+4>>2]|0;if((c[Aa>>2]|0)!=(oa|0)){Aa=oa+ -4|0;c[Aa>>2]=(c[Aa>>2]|0)+1}Of(j)}}while(0);if((c[aa>>2]|0)>=(d|0)){g=1;e=98;break}}if((e|0)==29){za=(c[aa>>2]|0)+1|0;Aa=Pf(j)|0;c[k>>2]=za;c[l+4>>2]=Aa;Qe(-1,130784,l);Of(j);Aa=0;i=f;return Aa|0}else if((e|0)==44){za=(c[aa>>2]|0)+1|0;Aa=Pf(m)|0;c[n>>2]=za;c[o+4>>2]=Aa;Qe(-1,130832,o);Of(m);Of(j);Aa=0;i=f;return Aa|0}else if((e|0)==47){c[H>>2]=pa;c[I+4>>2]=6;Qe(0,131112,I);tc()}else if((e|0)==53){c[J>>2]=oa;c[K+4>>2]=7;Qe(0,131112,K);tc()}else if((e|0)==55){c[L>>2]=sa;c[M+4>>2]=7;Qe(0,131112,M);tc()}else if((e|0)==57){c[N>>2]=sa;c[O+4>>2]=9;Qe(0,131112,O);tc()}else if((e|0)==59){c[P>>2]=pa+1;Qe(-1,130920,Q);if((oa|0)!=0){lg(oa);HW(oa)}Of(m);Of(s);Aa=0;i=f;return Aa|0}else if((e|0)==63){Qe(-1,130952,R);Of(m);Of(s);Aa=0;i=f;return Aa|0}else if((e|0)==65){c[S>>2]=oa;c[g+4>>2]=9;Qe(0,131112,g);tc()}else if((e|0)==67){c[T>>2]=oa;c[U+4>>2]=9;Qe(0,131112,U);tc()}else if((e|0)==76){c[V>>2]=oa;c[W+4>>2]=9;Qe(0,131112,W);tc()}else if((e|0)==83){c[X>>2]=oa;c[Y+4>>2]=7;Qe(0,131112,Y);tc()}else if((e|0)==85){c[Z>>2]=pa;c[_+4>>2]=7;Qe(0,131112,_);tc()}else if((e|0)==98){i=f;return g|0}return 0}function cu(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0.0;f=i;j=i;i=i+8|0;g=j;k=i;i=i+8|0;o=i;i=i+8|0;p=o;r=i;i=i+16|0;m=r;n=i;i=i+16|0;e=n;l=i;i=i+16|0;d=l;b=a+36|0;q=c[b>>2]|0;if((q|0)!=-1){t=q;i=f;return t|0}c[r>>2]=13;s=m+8|0;c[s>>2]=0;c[s+4>>2]=0;c[n>>2]=13;t=e+8|0;c[t>>2]=0;c[t+4>>2]=0;c[l>>2]=13;q=d+8|0;c[q>>2]=0;c[q+4>>2]=0;a=c[a>>2]|0;_m(a,c[a+20>>2]|0,c[a+24>>2]|0,m,0)|0;a=c[r>>2]|0;if((a|0)!=7){c[o>>2]=a;c[p+4>>2]=7;Qe(0,131112,p);tc()}Yu(c[s>>2]|0,130656,e,0)|0;Of(m);if((c[n>>2]|0)!=7){c[k>>2]=Pf(e)|0;Qe(-1,130728,k);Of(e);t=0;i=f;return t|0}Yu(c[t>>2]|0,131048,d,0)|0;k=c[l>>2]|0;if((k+ -1|0)>>>0<2){if((k|0)==1){u=+(c[q>>2]|0)}else{u=+h[q>>3]}g=~~u}else{c[j>>2]=Pf(d)|0;Qe(-1,131056,g);g=0}c[b>>2]=g;Of(d);Of(e);t=c[b>>2]|0;i=f;return t|0}function du(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;if((cu(a)|0)<=0){m=0;i=f;return m|0}g=a+12|0;h=a+8|0;j=0;a:while(1){k=j+1|0;if((c[g>>2]|0)<(k|0)){if(bu(a,k)|0){e=5}}else{e=5}do{if((e|0)==5){e=0;l=c[h>>2]|0;m=l+(j<<3)|0;if((m|0)==0){break}if((c[m>>2]|0)!=(b|0)){break}if((c[l+(j<<3)+4>>2]|0)==(d|0)){e=9;break a}}}while(0);if((k|0)<(cu(a)|0)){j=k}else{k=0;e=9;break}}if((e|0)==9){i=f;return k|0}return 0}function eu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;h=i;g=a+4|0;d=c[a>>2]|0;e=(c[g>>2]|0)-d|0;k=e>>2;f=k+1|0;if(f>>>0>1073741823){wn(0)}j=a+8|0;m=(c[j>>2]|0)-d|0;if(m>>2>>>0>536870910){n=1073741823;l=5}else{m=m>>1;n=m>>>0<f>>>0?f:m;if((n|0)==0){m=0;n=0}else{l=5}}if((l|0)==5){m=FW(n<<2)|0}k=m+(k<<2)|0;if((k|0)!=0){c[k>>2]=c[b>>2]}$W(m|0,d|0,e|0)|0;c[a>>2]=m;c[g>>2]=m+(f<<2);c[j>>2]=m+(n<<2);if((d|0)==0){i=h;return}HW(d);i=h;return}function fu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;h=i;g=a+4|0;d=c[a>>2]|0;e=(c[g>>2]|0)-d|0;k=e>>2;f=k+1|0;if(f>>>0>1073741823){wn(0)}j=a+8|0;m=(c[j>>2]|0)-d|0;if(m>>2>>>0>536870910){n=1073741823;l=5}else{m=m>>1;n=m>>>0<f>>>0?f:m;if((n|0)==0){m=0;n=0}else{l=5}}if((l|0)==5){m=FW(n<<2)|0}k=m+(k<<2)|0;if((k|0)!=0){c[k>>2]=c[b>>2]}$W(m|0,d|0,e|0)|0;c[a>>2]=m;c[g>>2]=m+(f<<2);c[j>>2]=m+(n<<2);if((d|0)==0){i=h;return}HW(d);i=h;return}function gu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;h=i;g=a+4|0;d=c[a>>2]|0;e=(c[g>>2]|0)-d|0;k=e>>3;f=k+1|0;if(f>>>0>536870911){wn(0)}j=a+8|0;m=(c[j>>2]|0)-d|0;if(m>>3>>>0>268435454){n=536870911;l=5}else{m=m>>2;n=m>>>0<f>>>0?f:m;if((n|0)==0){m=0;n=0}else{l=5}}if((l|0)==5){m=FW(n<<3)|0}k=m+(k<<3)|0;if((k|0)!=0){o=b;b=c[o+4>>2]|0;l=k;c[l>>2]=c[o>>2];c[l+4>>2]=b}$W(m|0,d|0,e|0)|0;c[a>>2]=m;c[g>>2]=m+(f<<3);c[j>>2]=m+(n<<3);if((d|0)==0){i=h;return}HW(d);i=h;return}function hu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;h=i;g=a+4|0;d=c[a>>2]|0;e=(c[g>>2]|0)-d|0;k=e>>2;f=k+1|0;if(f>>>0>1073741823){wn(0)}j=a+8|0;m=(c[j>>2]|0)-d|0;if(m>>2>>>0>536870910){n=1073741823;l=5}else{m=m>>1;n=m>>>0<f>>>0?f:m;if((n|0)==0){m=0;n=0}else{l=5}}if((l|0)==5){m=FW(n<<2)|0}k=m+(k<<2)|0;if((k|0)!=0){c[k>>2]=c[b>>2]}$W(m|0,d|0,e|0)|0;c[a>>2]=m;c[g>>2]=m+(f<<2);c[j>>2]=m+(n<<2);if((d|0)==0){i=h;return}HW(d);i=h;return}function iu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;h=i;i=i+8|0;j=h;l=i;i=i+8|0;f=l;n=i;i=i+8|0;e=i;i=i+64|0;g=i;i=i+8|0;k=g;m=a+28|0;a=yc(c[m>>2]|0,131184)|0;if((a|0)==0){c[n>>2]=c[m>>2];Qe(-1,131192,n);p=0;i=d;return p|0}p=ye(32768,4)|0;if((Do(e,64,a)|0)==0){n=0}else{n=0;o=32768;do{if((n|0)==(o|0)){o=n<<1;p=Ce(p,o,4)|0}c[l>>2]=k;if((Hc(e|0,131232,f|0)|0)==1){c[p+(n<<2)>>2]=c[g>>2];n=n+1|0}else{q=n+1|0;r=c[m>>2]|0;c[h>>2]=q;c[j+4>>2]=r;Qe(-1,131240,j);c[p+(n<<2)>>2]=0;n=q}}while((Do(e,64,a)|0)!=0)}mc(a|0)|0;r=FW(52)|0;q=FW(32)|0;ie(q,b);c[r>>2]=q;q=r+8|0;c[q>>2]=n;o=ye(n,4)|0;c[r+4>>2]=o;$W(o|0,p|0,c[q>>2]<<2|0)|0;c[r+12>>2]=0;c[r+16>>2]=0;c[r+20>>2]=0;c[r+24>>2]=1;ad(r+28|0,0)|0;Fe(p);i=d;return r|0}function ju(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;b=i;f=i;i=i+8|0;g=f;s=i;i=i+8|0;t=s;l=i;i=i+8|0;m=l;n=i;i=i+8|0;o=n;e=i;i=i+8|0;r=e;v=i;i=i+8|0;h=i;i=i+256|0;j=i;i=i+8|0;p=j;k=i;i=i+8|0;x=ye(8,4)|0;q=a+28|0;d=yc(c[q>>2]|0,131184)|0;if((d|0)==0){Fe(x);c[v>>2]=c[q>>2];Qe(-1,131280,v);H=0;i=b;return H|0}B=ye(4096,4)|0;bX(B|0,0,16384)|0;a:do{if((Do(h,256,d)|0)==0){w=0;A=0;v=0;y=0}else{w=0;z=0;A=0;v=0;y=0;D=4096;C=8;do{while(1){while(1){z=z+1|0;E=Mb(h|0,131328,k|0)|0;if((E|0)!=0){c[e>>2]=p;if((Hc(E|0,131232,r|0)|0)==1){break}}H=c[q>>2]|0;c[n>>2]=z;c[o+4>>2]=H;Qe(-1,131336,o);if((Do(h,256,d)|0)==0){break a}else{}}G=Mb(0,131328,k|0)|0;if((G|0)!=0){F=0;while(1){if((F|0)>=(C|0)){H=C+8|0;C=H;x=Ce(x,H,4)|0}c[l>>2]=x+(F<<2);E=F+1|0;if((Hc(G|0,131232,m|0)|0)!=1){u=14;break}G=Mb(0,131328,k|0)|0;if((G|0)==0){break}else{F=E}}if((u|0)==14){u=0;E=c[q>>2]|0;c[s>>2]=z;c[t+4>>2]=E;Qe(-1,131336,t);E=F}if((E|0)>=1){break}}H=c[q>>2]|0;c[f>>2]=z;c[g+4>>2]=H;Qe(-1,131336,g);if((Do(h,256,d)|0)==0){break a}}G=c[j>>2]|0;if(G>>>0>=D>>>0){F=D;while(1){if(G>>>0<F>>>0){break}else{F=F<<1}}B=Ce(B,F,4)|0;bX(B+(D<<2)|0,0,F-D<<2|0)|0;D=F}if((E|0)==1){c[B+(c[j>>2]<<2)>>2]=c[x>>2]}else{c[B+(c[j>>2]<<2)>>2]=0;if((v|0)==(y|0)){y=v+16|0;A=Ce(A,y,12)|0}c[A+(v*12|0)>>2]=c[j>>2];G=ye(E,4)|0;F=A+(v*12|0)+4|0;c[F>>2]=G;b:do{if((E|0)>0){H=0;while(1){c[G+(H<<2)>>2]=c[x+(H<<2)>>2];H=H+1|0;if((H|0)>=(E|0)){break b}G=c[F>>2]|0}}}while(0);c[A+(v*12|0)+8>>2]=E;v=v+1|0}E=c[j>>2]|0;w=E>>>0<w>>>0?w:E+1|0;}while((Do(h,256,d)|0)!=0)}}while(0);mc(d|0)|0;H=FW(52)|0;G=FW(32)|0;ie(G,a);c[H>>2]=G;G=H+8|0;c[G>>2]=w;F=ye(w,4)|0;c[H+4>>2]=F;$W(F|0,B|0,c[G>>2]<<2|0)|0;c[H+12>>2]=A;c[H+16>>2]=v;c[H+20>>2]=y;c[H+24>>2]=1;ad(H+28|0,0)|0;Fe(B);Fe(x);i=b;return H|0}function ku(a){a=a|0;var b=0,d=0,e=0;d=i;b=FW(52)|0;c[b>>2]=0;c[b+8>>2]=256;e=ye(256,4)|0;c[b+4>>2]=e;$W(e|0,a|0,1024)|0;c[b+12>>2]=0;c[b+16>>2]=0;c[b+20>>2]=0;c[b+24>>2]=1;ad(b+28|0,0)|0;i=d;return b|0}function lu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;g=i;e=i;i=i+8|0;f=e;d=FW(52)|0;c[d>>2]=0;j=d+8|0;c[j>>2]=256;k=ye(256,4)|0;h=d+4|0;c[h>>2]=k;c[k>>2]=0;if((c[j>>2]|0)>>>0>1){k=1;do{c[(c[h>>2]|0)+(k<<2)>>2]=0;k=k+1|0;}while(k>>>0<(c[j>>2]|0)>>>0)}c[d+12>>2]=0;c[d+20>>2]=0;c[d+16>>2]=0;c[d+24>>2]=1;ad(d+28|0,0)|0;c[e>>2]=c[a+28>>2];mu(d,252,f,b);i=g;return d|0}function mu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;O=i;F=i;i=i+8|0;P=i;i=i+8|0;E=i;i=i+8|0;K=i;i=i+8|0;L=K;M=i;i=i+8|0;N=M;g=i;i=i+8|0;v=i;i=i+8|0;A=i;i=i+8|0;C=i;i=i+8|0;D=C;y=i;i=i+8|0;q=i;i=i+8|0;n=i;i=i+8|0;o=n;p=i;i=i+256|0;l=p;s=i;i=i+256|0;j=s;I=i;i=i+256|0;w=I;u=i;i=i+8|0;m=u;r=i;i=i+8|0;k=r;H=i;i=i+8|0;x=H;z=i;i=i+8|0;B=z;G=i;i=i+8|0;J=G;t=(f|0)/4|0;h=FW(12)|0;YF(h,d,e);_F(h,l,256,m)|0;if(_F(h,j,256,k)|0){T=l+1|0;d=t+2|0;R=j+1|0;S=w+1|0;e=t+4|0;Q=l+2|0;do{do{if((Qc(j|0,131432)|0)==0){do{if((a[p]|0)==47){V=FW(32)|0;fe(V,T);U=ef(c[834]|0,V)|0;if((U|0)==0){c[n>>2]=c[V+28>>2];Qe(-1,131384,o)}else{mu(b,253,U,f);mc(U|0)|0}if((V|0)==0){break}ke(V);HW(V)}}while(0);_F(h,l,256,m)|0}else{if((Qc(j|0,131440)|0)==0){a:do{if(_F(h,l,256,m)|0){while(1){if((Qc(l|0,131456)|0)==0){break a}if(!(_F(h,j,256,k)|0)){break}if((Qc(j|0,131456)|0)==0){break}V=c[u>>2]|0;do{if((V|0)==(d|0)){if((a[p]|0)!=60){U=22;break}if((a[l+(t+1)|0]|0)!=62){U=22;break}if((a[s]|0)!=60){U=22;break}W=c[r>>2]|0;if((a[j+(W+ -1)|0]|0)==62){V=d;U=31}else{U=22}}else{U=22}}while(0);b:do{if((U|0)==22){U=0;do{if((V|0)==(e|0)){if((a[p]|0)!=60){break}if((a[l+(t+3)|0]|0)!=62){break}if((a[T]|0)!=48){break}if((a[Q]|0)!=48){break}if((a[s]|0)!=60){break}W=c[r>>2]|0;if((a[j+(W+ -1)|0]|0)==62){V=e;U=31;break b}}}while(0);Qe(-1,131472,y)}}while(0);do{if((U|0)==31){a[j+(W+ -1)|0]=0;a[l+(V+ -1)|0]=0;c[C>>2]=B;if((Hc(T|0,131232,D|0)|0)==1){ru(b,c[z>>2]|0,R,(c[r>>2]|0)+ -2|0,0);break}else{Qe(-1,131472,A);break}}}while(0);if(!(_F(h,l,256,m)|0)){break a}}Qe(-1,131472,q)}}while(0);_F(h,l,256,m)|0;break}if((Qc(j|0,131520)|0)!=0){eX(l|0,j|0)|0;break}c:do{if(_F(h,l,256,m)|0){while(1){if((Qc(l|0,131536)|0)==0){break c}if(!(_F(h,j,256,k)|0)){break}if((Qc(j|0,131536)|0)==0){break}if(!(_F(h,w,256,x)|0)){break}if((Qc(w|0,131536)|0)==0){break}V=c[u>>2]|0;do{if((V|0)==(d|0)){if((a[p]|0)!=60){U=47;break}if((a[l+(t+1)|0]|0)==62){V=d;U=52}else{U=47}}else{U=47}}while(0);do{if((U|0)==47){if((V|0)!=(e|0)){U=60;break}if((a[p]|0)!=60){U=60;break}if((a[l+(t+3)|0]|0)!=62){U=60;break}if((a[T]|0)!=48){U=60;break}if((a[Q]|0)==48){V=e;U=52}else{U=60}}}while(0);d:do{if((U|0)==52){U=0;W=c[r>>2]|0;do{if((W|0)==(d|0)){if((a[s]|0)!=60){U=55;break}if((a[j+(t+1)|0]|0)==62){W=d}else{U=55}}else{U=55}}while(0);if((U|0)==55){U=0;if((W|0)!=(e|0)){U=60;break}if((a[s]|0)!=60){U=60;break}if((a[j+(t+3)|0]|0)!=62){U=60;break}if((a[T]|0)!=48){U=60;break}if((a[Q]|0)==48){W=e}else{U=60;break}}a[j+(W+ -1)|0]=0;a[l+(V+ -1)|0]=0;c[M>>2]=B;do{if((Hc(T|0,131232,N|0)|0)==1){c[K>>2]=J;if((Hc(R|0,131232,L|0)|0)!=1){break}if((Qc(w|0,131608)|0)!=0){do{if((a[I]|0)==60){V=c[H>>2]|0;W=w+(V+ -1)|0;if((a[W]|0)!=62){break}a[W]=0;W=c[z>>2]|0;if(W>>>0>(c[G>>2]|0)>>>0){break d}else{X=W;W=0}while(1){ru(b,X,S,V+ -2|0,W);X=(c[z>>2]|0)+1|0;c[z>>2]=X;if(X>>>0>(c[G>>2]|0)>>>0){break d}V=c[H>>2]|0;W=W+1|0}}}while(0);Qe(-1,131552,F);break d}if(_F(h,l,256,m)|0){X=0}else{break d}while(1){V=(c[z>>2]|0)+X|0;if(V>>>0>(c[G>>2]|0)>>>0){break d}if((Qc(l|0,131616)|0)==0){break d}do{if((a[p]|0)==60){W=c[u>>2]|0;Y=l+(W+ -1)|0;if((a[Y]|0)!=62){U=72;break}a[Y]=0;ru(b,V,T,W+ -2|0,0)}else{U=72}}while(0);if((U|0)==72){U=0;Qe(-1,131552,P)}if(_F(h,l,256,m)|0){X=X+1|0}else{break d}}}}while(0);Qe(-1,131552,E)}}while(0);if((U|0)==60){Qe(-1,131552,g)}if(!(_F(h,l,256,m)|0)){break c}}Qe(-1,131552,v)}}while(0);_F(h,l,256,m)|0}}while(0);}while(_F(h,j,256,k)|0)}if((h|0)==0){i=O;return}HW(h);i=O;return}function nu(b){b=b|0;var d=0,e=0,f=0;d=i;e=c[b>>2]|0;f=a[e]|0;if(f<<24>>24==0){f=-1;i=d;return f|0}c[b>>2]=e+1;f=f<<24>>24;i=d;return f|0}function ou(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=i;g=i;i=i+8|0;d=g;f=FWFWFW(32)|0;ie(X,W);c[b+48>>2]=X;break}else{c[O>>2]=R;c[P+4>>2]=3;Qe(0,148232,P);tc()}}else{c[b+48>>2]=0}}while(0);Of(k);do{if((c[(Yu(Q,146656,k,0)|0)>>2]|0)==3){O=c[v>>2]|0;if((O|0)==3){W=c[t>>2]|0;X=FW(32)|0;ie(X,W);c[b+52>>2]=X;break}else{c[L>>2]=O;c[M+4>>2]=3;Qe(0,148232,M);tc()}}else{c[b+52>>2]=0}}while(0);Of(k);if((c[(Yu(Q,146664,k,0)|0)>>2]|0)!=6){Qe(-1,146672,N);Of(k);i=l;return}L=c[v>>2]|0;if((L|0)!=6){c[J>>2]=L;c[K+4>>2]=6;Qe(0,148232,K);tc()}do{if(((c[(ut(c[t>>2]|0,0,m)|0)>>2]|0)+ -1|0)>>>0<2){I=c[u>>2]|0;if((I+ -1|0)>>>0>=2){c[H>>2]=I;c[G+4>>2]=1;c[G+8>>2]=2;Qe(0,148304,G);tc()}if((I|0)==1){T=+(c[p>>2]|0)}else{T=+h[p>>3]}G=b+72|0;h[G>>3]=T;Of(m);H=c[v>>2]|0;if((H|0)!=6){c[D>>2]=H;c[F+4>>2]=6;Qe(0,148232,F);tc()}if(((c[(ut(c[t>>2]|0,1,m)|0)>>2]|0)+ -1|0)>>>0>=2){Qe(-1,146712,E);break}D=c[u>>2]|0;if((D+ -1|0)>>>0>=2){c[C>>2]=D;c[B+4>>2]=1;c[B+8>>2]=2;Qe(0,148304,B);tc()}if((D|0)==1){T=+(c[p>>2]|0)}else{T=+h[p>>3]}B=b+80|0;h[B>>3]=T;Of(m);C=c[v>>2]|0;if((C|0)!=6){c[A>>2]=C;c[y+4>>2]=6;Qe(0,148232,y);tc()}if(((c[(ut(c[t>>2]|0,2,m)|0)>>2]|0)+ -1|0)>>>0>=2){Qe(-1,146712,z);break}y=c[u>>2]|0;if((y+ -1|0)>>>0>=2){c[x>>2]=y;c[w+4>>2]=1;c[w+8>>2]=2;Qe(0,148304,w);tc()}if((y|0)==1){T=+(c[p>>2]|0)}else{T=+h[p>>3]}w=b+88|0;h[w>>3]=T;Of(m);v=c[v>>2]|0;if((v|0)!=6){c[q>>2]=v;c[s+4>>2]=6;Qe(0,148232,s);tc()}if(((c[(ut(c[t>>2]|0,3,m)|0)>>2]|0)+ -1|0)>>>0>=2){Qe(-1,146712,r);break}q=c[u>>2]|0;if((q+ -1|0)>>>0>=2){c[o>>2]=q;c[n+4>>2]=1;c[n+8>>2]=2;Qe(0,148304,n);tc()}if((q|0)==1){T=+(c[p>>2]|0)}else{T=+h[p>>3]}b=b+96|0;h[b>>3]=T;Of(m);Of(k);T=+h[G>>3];U=+h[w>>3];if(T>U){h[G>>3]=U;h[w>>3]=T}U=+h[B>>3];T=+h[b>>3];if(U<=T){break}h[B>>3]=T;h[b>>3]=U}else{Qe(-1,146712,I)}}while(0);Of(m);Of(k);i=l;return}function hv(a){a=a|0;var b=0;b=i;iv(a);HW(a);i=b;return}function iv(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=146632;d=c[a+48>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+52>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+56>>2]|0;if((d|0)==0){d=a+16|0;Of(d);i=b;return}ke(d);HW(d);d=a+16|0;Of(d);i=b;return}function jv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;e=i;h=i;i=i+8|0;f=i;i=i+8|0;g=f;n=i;i=i+8|0;m=n;l=i;i=i+16|0;k=l;j=i;i=i+8|0;c[l>>2]=13;l=k+8|0;c[l>>2]=0;c[l+4>>2]=0;l=a+16|0;o=c[l>>2]|0;if((o|0)!=7){c[n>>2]=o;c[m+4>>2]=7;Qe(0,148232,m);tc()}if((c[(Yu(c[a+24>>2]|0,146744,k,0)|0)>>2]|0)==4){m=a+32|0}else{l=c[a+4>>2]|0;m=l+8|0;l=l+24|0}n=m;m=c[n>>2]|0;n=c[n+4>>2]|0;Of(k);k=c[l>>2]|0;if((k|0)==7){Wu(c[l+8>>2]|0,b,d);o=c[a+40>>2]|0;k=j;c[k>>2]=m;c[k+4>>2]=n;$W(h|0,j|0,8)|0;pn(o,l,h);i=e;return}else{c[f>>2]=k;c[g+4>>2]=7;Qe(0,148232,g);tc()}}function kv(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=146768;d=c[a+112>>2]|0;if((d|0)!=0){Fe(d)}d=c[a+120>>2]|0;if((d|0)==0){iv(a);HW(a);i=b;return}ke(d);HW(d);iv(a);HW(a);i=b;return}function lv(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=146768;d=c[a+112>>2]|0;if((d|0)!=0){Fe(d)}d=c[a+120>>2]|0;if((d|0)==0){iv(a);i=b;return}ke(d);HW(d);iv(a);i=b;return}function mv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=i;l=i;i=i+8|0;f=l;g=i;i=i+8|0;h=g;n=i;i=i+16|0;k=n;m=i;i=i+8|0;o=c[b+124>>2]|0;if((c[o+60>>2]|0)==1){i=j;return}do{if(!e){a[b+45|0]=1;if(nv(o,c[b+60>>2]|0,d)|0){break}i=j;return}}while(0);p=b+128|0;a[p]=d&1;c[n>>2]=13;e=k+8|0;c[e>>2]=0;o=e+4|0;c[o>>2]=0;if(d){d=c[(c[b+120>>2]|0)+28>>2]|0}else{d=146784}c[e>>2]=0;c[o>>2]=0;c[n>>2]=4;c[e>>2]=Ge(d)|0;jv(b,146792,k);if((a[p]&1)==0){d=146784}else{d=c[(c[b+120>>2]|0)+28>>2]|0}c[e>>2]=0;c[o>>2]=0;c[n>>2]=4;c[e>>2]=Ge(d)|0;n=b+16|0;o=c[n>>2]|0;if((o|0)!=7){c[g>>2]=o;c[h+4>>2]=7;Qe(0,148232,h);tc()}Wu(c[b+24>>2]|0,146800,k);p=c[b+40>>2]|0;o=b+32|0;d=c[o+4>>2]|0;e=m;c[e>>2]=c[o>>2];c[e+4>>2]=d;$W(l|0,m|0,8)|0;pn(p,n,f);i=j;return}function nv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;f=i;q=i;i=i+8|0;p=q;h=i;i=i+8|0;g=h;o=i;i=i+8|0;t=o;l=i;i=i+8|0;k=l;v=i;i=i+8|0;n=i;i=i+16|0;m=n;j=i;i=i+8|0;u=i;i=i+16|0;s=u;r=i;i=i+8|0;if((a[b+56|0]&1)!=0){Qe(-1,147560,v);e=0;i=f;return e|0}v=c[b+60>>2]|0;if(!((v|0)==0|(v|0)==2)){e=1;i=f;return e|0}if(!e){if((a[b+72|0]&1)!=0){e=0;i=f;return e|0}c[b+68>>2]=-1;g=s+8|0;c[g+4>>2]=0;c[u>>2]=4;c[g>>2]=Ge(146784)|0;g=b+24|0;h=c[g>>2]|0;if((h|0)!=7){c[o>>2]=h;c[t+4>>2]=7;Qe(0,148232,t);tc()}Wu(c[b+32>>2]|0,146792,s);e=c[b+40>>2]|0;t=b+8|0;u=c[t+4>>2]|0;v=r;c[v>>2]=c[t>>2];c[v+4>>2]=u;$W(q|0,r|0,8)|0;pn(e,g,p);e=1;i=f;return e|0}o=b+68|0;c[o>>2]=d;q=b+48|0;r=c[q>>2]|0;if((r|0)>0){p=b+52|0;s=0;do{if((s|0)==(d|0)){d=s}else{mv(c[(c[p>>2]|0)+(s<<2)>>2]|0,0,1);r=c[q>>2]|0;d=c[o>>2]|0}s=s+1|0;}while((s|0)<(r|0))}if((d|0)<=-1){e=1;i=f;return e|0}d=(c[(c[b+52>>2]|0)+(d<<2)>>2]|0)+120|0;if((c[(c[d>>2]|0)+28>>2]|0)==0){e=1;i=f;return e|0}c[n>>2]=13;e=m+8|0;c[e>>2]=0;v=e+4|0;c[v>>2]=0;d=c[(c[d>>2]|0)+28>>2]|0;c[v>>2]=0;c[n>>2]=4;c[e>>2]=Ge(d)|0;n=b+24|0;d=c[n>>2]|0;if((d|0)!=7){c[l>>2]=d;c[k+4>>2]=7;Qe(0,148232,k);tc()}Wu(c[b+32>>2]|0,146792,m);e=c[b+40>>2]|0;t=b+8|0;u=c[t+4>>2]|0;v=j;c[v>>2]=c[t>>2];c[v+4>>2]=u;$W(h|0,j|0,8)|0;pn(e,n,g);e=1;i=f;return e|0}function ov(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;d=i;n=i;i=i+8|0;g=i;i=i+8|0;h=g;l=i;i=i+8|0;y=i;i=i+8|0;x=y;w=i;i=i+8|0;v=w;k=i;i=i+16|0;o=k;j=i;i=i+16|0;f=j;q=i;i=i+16|0;t=q;r=i;i=i+16|0;s=r;p=i;i=i+16|0;u=p;m=i;i=i+16|0;e=m;z=b+44|0;if((a[z]&1)!=0){i=d;return}a[z]=1;z=c[b+16>>2]|0;if((z|0)!=7){c[w>>2]=z;c[v+4>>2]=7;Qe(0,148232,v);tc()}w=c[b+24>>2]|0;c[j>>2]=13;v=f+8|0;c[v>>2]=0;c[v+4>>2]=0;do{if((c[(c[b+124>>2]|0)+60>>2]|0)!=1){do{if((c[(Yu(w,146808,f,0)|0)>>2]|0)==7){z=c[j>>2]|0;if((z|0)!=7){c[y>>2]=z;c[x+4>>2]=7;Qe(0,148232,x);tc()}z=c[v>>2]|0;G=c[z+16>>2]|0;if((G|0)<=0){break}D=t+8|0;x=D+4|0;A=b+120|0;B=s+8|0;C=B+4|0;E=u+8|0;F=E+4|0;y=0;do{c[q>>2]=13;c[D>>2]=0;c[x>>2]=0;av(z,y,t)|0;H=c[q>>2]|0;do{if((H|0)==7){H=c[D>>2]|0;I=c[H+16>>2]|0;if((I|0)>0){K=0}else{break}do{c[r>>2]=13;c[B>>2]=0;c[C>>2]=0;av(H,K,s)|0;J=$u(H,K)|0;if((Qc(J|0,146784)|0)!=0){L=FW(32)|0;fe(L,J);c[A>>2]=L}Of(s);K=K+1|0;}while((c[A>>2]|0)==0&(K|0)<(I|0))}else if((H|0)==8){L=c[D>>2]|0;L=jd[c[(c[L>>2]|0)+72>>2]&511](L)|0;c[p>>2]=13;c[E>>2]=0;c[F>>2]=0;Yu(L,146816,u,0)|0;L=FW(32)|0;fe(L,146824);c[A>>2]=L;Of(u)}}while(0);Of(t);y=y+1|0;}while((c[A>>2]|0)==0&(y|0)<(G|0))}}while(0);Of(f);p=b+120|0;if((c[p>>2]|0)!=0){break}Qe(-1,146832,l);L=FW(32)|0;fe(L,146896);c[p>>2]=L}}while(0);L=o+4|0;c[L>>2]=0;c[o+8>>2]=0;c[k>>2]=L;L=Nv(w,146792,f,o)|0;xn(o,c[o+4>>2]|0);do{if((c[L>>2]|0)==4){c[m>>2]=13;k=e+8|0;c[k>>2]=0;c[k+4>>2]=0;k=Yu(w,146800,e,0)|0;j=c[j>>2]|0;if((j|0)!=4){c[g>>2]=j;c[h+4>>2]=4;Qe(0,148232,h);tc()}do{if((c[k>>2]|0)==4){g=c[v>>2]|0;if((Qc(c[k+8>>2]|0,g|0)|0)!=0){break}if((Qc(g|0,146784)|0)==0){break}mv(b,1,0)}}while(0);Of(e)}else{if((c[j>>2]|0)!=6){break}Qe(-1,146904,n)}}while(0);Of(f);i=d;return}function pv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;g=i;i=i+16|0;f=g;h=f+4|0;c[h>>2]=0;c[f+8>>2]=0;c[g>>2]=h;a=Nv(a,b,d,f)|0;xn(f,c[f+4>>2]|0);i=e;return a|0}function qv(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;g=i;i=i+8|0;h=g;k=i;i=i+8|0;l=k;p=i;i=i+8|0;o=p;n=i;i=i+16|0;m=n;j=i;i=i+16|0;e=j;q=b+44|0;if((a[q]&1)!=0){i=f;return}a[q]=1;q=c[b+16>>2]|0;if((q|0)!=7){c[p>>2]=q;c[o+4>>2]=7;Qe(0,148232,o);tc()}q=c[b+24>>2]|0;c[j>>2]=13;o=e+8|0;c[o>>2]=0;c[o+4>>2]=0;p=m+4|0;c[p>>2]=0;c[m+8>>2]=0;c[n>>2]=p;q=Nv(q,146792,e,m)|0;xn(m,c[m+4>>2]|0);do{if((c[q>>2]|0)==3){m=c[j>>2]|0;if((m|0)!=3){c[k>>2]=m;c[l+4>>2]=3;Qe(0,148232,l);tc()}k=ve(c[o>>2]|0)|0;j=c[j>>2]|0;if((j|0)!=3){c[g>>2]=j;c[h+4>>2]=3;Qe(0,148232,h);tc()}j=c[o>>2]|0;g=c[j+24>>2]|0;if(k){if((g|0)<3){break}g=(c[b+112>>2]|0)+60|0;b=c[g>>2]|0;if((b|0)!=0){ke(b);HW(b)}q=FW(32)|0;ie(q,j);c[g>>2]=q;break}if((g|0)<=0){break}h=(g<<1)+2|0;g=GW((h|0)>-1?h:-1)|0;k=c[j+28>>2]|0;a[g]=-2;a[g+1|0]=-1;l=2;j=0;while(1){q=c[189696+((d[k+j|0]|0)<<2)>>2]|0;a[g+l|0]=q>>>8;a[g+(l|1)|0]=q;l=l+2|0;if((l|0)<(h|0)){j=j+1|0}else{break}}j=FW(32)|0;ge(j,g,h);h=(c[b+112>>2]|0)+60|0;b=c[h>>2]|0;if((b|0)!=0){ke(b);HW(b)}q=FW(32)|0;ie(q,j);c[h>>2]=q;if((j|0)!=0){ke(j);HW(j)}if((g|0)==0){break}IW(g)}}while(0);Of(e);i=f;return}function rv(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0;f=i;p=i;i=i+8|0;m=p;k=i;i=i+8|0;o=k;q=i;i=i+8|0;r=q;x=i;i=i+8|0;y=x;E=i;i=i+8|0;F=E;N=i;i=i+8|0;D=N;A=i;i=i+8|0;B=A;K=i;i=i+8|0;H=i;i=i+8|0;I=H;C=i;i=i+8|0;G=C;Q=i;i=i+8|0;R=Q;j=i;i=i+8|0;O=j;t=i;i=i+16|0;u=t;g=i;i=i+16|0;h=g;J=i;i=i+16|0;z=J;w=i;i=i+16|0;L=w;v=i;i=i+16|0;M=v;l=i;i=i+16|0;n=l;P=b+44|0;if((a[P]&1)!=0){i=f;return}a[P]=1;P=c[b+16>>2]|0;if((P|0)!=7){c[j>>2]=P;c[O+4>>2]=7;Qe(0,148232,O);tc()}O=c[b+24>>2]|0;c[g>>2]=13;j=h+8|0;c[j>>2]=0;c[j+4>>2]=0;a:do{if((c[(Yu(O,147008,h,0)|0)>>2]|0)==6){c[J>>2]=13;P=z+8|0;c[P>>2]=0;c[P+4>>2]=0;b=b+112|0;S=c[g>>2]|0;if((S|0)!=6){c[Q>>2]=S;c[R+4>>2]=6;Qe(0,148232,R);tc()}c[(c[b>>2]|0)+64>>2]=c[(c[j>>2]|0)+12>>2];S=c[b>>2]|0;Q=S+64|0;T=c[Q>>2]|0;R=GW(T>>>0>357913941?-1:T*12|0)|0;S=S+68|0;c[S>>2]=R;do{if((T|0)>0){a[R+8|0]=0;if((c[Q>>2]|0)>1){R=1}else{break}do{a[(c[S>>2]|0)+(R*12|0)+8|0]=0;R=R+1|0;}while((R|0)<(c[Q>>2]|0))}}while(0);if((c[(c[b>>2]|0)+64>>2]|0)<=0){e=b;break}S=L+8|0;R=S+4|0;T=M+8|0;Q=T+4|0;U=0;b:while(1){V=c[g>>2]|0;if((V|0)!=6){s=14;break}ut(c[j>>2]|0,U,z)|0;V=c[J>>2]|0;do{if((V|0)==3){V=c[b>>2]|0;W=c[P>>2]|0;s=FW(32)|0;ie(s,W);c[(c[V+68>>2]|0)+(U*12|0)>>2]=s;V=c[J>>2]|0;if((V|0)!=3){s=17;break b}s=c[b>>2]|0;V=c[P>>2]|0;W=FW(32)|0;ie(W,V);c[(c[s+68>>2]|0)+(U*12|0)+4>>2]=W;s=29}else if((V|0)==6){c[w>>2]=13;c[S>>2]=0;c[R>>2]=0;c[v>>2]=13;c[T>>2]=0;c[Q>>2]=0;V=c[P>>2]|0;if((c[V+12>>2]|0)<2){Qe(-1,147016,K);W=c[b>>2]|0;V=FW(32)|0;fe(V,146896);c[(c[W+68>>2]|0)+(U*12|0)>>2]=V;W=c[b>>2]|0;V=FW(32)|0;fe(V,146896);c[(c[W+68>>2]|0)+(U*12|0)+4>>2]=V;break}ut(V,0,L)|0;V=c[J>>2]|0;if((V|0)!=6){s=22;break b}ut(c[P>>2]|0,1,M)|0;V=c[w>>2]|0;if((V|0)!=3){s=24;break b}V=c[b>>2]|0;s=c[S>>2]|0;W=FW(32)|0;ie(W,s);c[(c[V+68>>2]|0)+(U*12|0)>>2]=W;V=c[v>>2]|0;if((V|0)!=3){s=26;break b}s=c[b>>2]|0;V=c[T>>2]|0;W=FW(32)|0;ie(W,V);c[(c[s+68>>2]|0)+(U*12|0)+4>>2]=W;Of(L);Of(M);s=29}else{c[x>>2]=U;Qe(-1,147080,y);s=c[b>>2]|0;W=FW(32)|0;fe(W,146896);c[(c[s+68>>2]|0)+(U*12|0)>>2]=W;s=c[b>>2]|0;W=FWFW(20)|0;c[Fa+16>>2]=c[Ga>>2];Ga=c[G>>2]|0;c[Fa>>2]=0;c[Fa+4>>2]=0;c[Fa+8>>2]=Ga;c[Ea>>2]=Fa;Ga=c[c[F>>2]>>2]|0;if((Ga|0)!=0){c[F>>2]=Ga;Fa=c[Ea>>2]|0}un(c[ya>>2]|0,Fa);c[za>>2]=(c[za>>2]|0)+1}Ea=c[Da+4>>2]|0;if((Ea|0)==0){while(1){Ea=c[Da+8>>2]|0;if((Da|0)==(c[Ea>>2]|0)){Da=Ea;break}else{Da=Ea}}}else{Da=Ea;while(1){Ea=c[Da>>2]|0;if((Ea|0)==0){break}else{Da=Ea}}}}while((Da|0)!=(oa|0));Ea=c[wa>>2]|0;if((Ea|0)==0){Da=50;break}while(1){Da=c[Ea+16>>2]|0;if((Ca|0)<(Da|0)){Da=c[Ea>>2]|0;if((Da|0)==0){Da=45;break}else{Ea=Da;continue}}if((Da|0)>=(Ca|0)){Da=49;break}Fa=Ea+4|0;Da=c[Fa>>2]|0;if((Da|0)==0){Da=48;break}else{Ea=Da}}if((Da|0)==45){Da=0;c[$>>2]=Ea;break}else if((Da|0)==48){Da=0;c[$>>2]=Ea;Ea=Fa;break}else if((Da|0)==49){Da=0;c[$>>2]=Ea;Ea=aa;break}}}while(0);if((Da|0)==50){c[$>>2]=wa;Ea=wa}if((c[Ea>>2]|0)==0){Da=FW(20)|0;c[Da+16>>2]=Ca;Ca=c[$>>2]|0;c[Da>>2]=0;c[Da+4>>2]=0;c[Da+8>>2]=Ca;c[Ea>>2]=Da;Ca=c[c[F>>2]>>2]|0;if((Ca|0)!=0){c[F>>2]=Ca;Da=c[Ea>>2]|0}un(c[ya>>2]|0,Da);c[za>>2]=(c[za>>2]|0)+1}if((a[ma]&1)!=0){Qe(-1,147240,_)}Ca=(c[la>>2]|0)+1|0;c[la>>2]=Ca;c[ka>>2]=Ce(c[ka>>2]|0,Ca,4)|0;Of(x);Ca=c[C>>2]|0;if((Ca|0)!=9){Da=58;break b}Ea=sa;Fa=c[Ea+4>>2]|0;Ga=Y;c[Ga>>2]=c[Ea>>2];c[Ga+4>>2]=Fa;Ga=vv(w,d,Z,J)|0;c[(c[ka>>2]|0)+((c[la>>2]|0)+ -1<<2)>>2]=Ga;xn(J,c[ya>>2]|0)}}while(0);Of(x)}else{Qe(-1,147328,Q)}}while(0);Of(w)}else{Qe(-1,147184,S);Of(w)}ra=ra+1|0;if((ra|0)>=(qa|0)){break a}}if((Da|0)==20){c[s>>2]=Ca;c[t+4>>2]=7;Qe(0,148232,t);tc()}else if((Da|0)==23){c[u>>2]=Ca;c[v+4>>2]=9;Qe(0,148232,v);tc()}else if((Da|0)==27){c[U>>2]=Ea;c[V+4>>2]=7;Qe(0,148232,V);tc()}else if((Da|0)==30){c[W>>2]=Ea;c[X+4>>2]=7;Qe(0,148232,X);tc()}else if((Da|0)==58){c[ba>>2]=Ca;c[ca+4>>2]=9;Qe(0,148232,ca);tc()}else if((Da|0)==61){c[da>>2]=Ca;c[ea+4>>2]=7;Qe(0,148232,ea);tc()}else if((Da|0)==64){c[fa>>2]=Ca;c[ga+4>>2]=9;Qe(0,148232,ga);tc()}}}while(0);Of(l);if((c[(Yu(ia,147232,l,0)|0)>>2]|0)==4){Ea=ja;Fa=c[Ea+4>>2]|0;Ga=p;c[Ga>>2]=c[Ea>>2];c[Ga+4>>2]=Fa;$W(q|0,p|0,8)|0;uv(b,e,r)}Of(l);Ga=n+4|0;c[Ga>>2]=0;c[n+8>>2]=0;c[o>>2]=Ga;Ga=Nv(ia,147376,l,n)|0;xn(n,c[n+4>>2]|0);if((c[Ga>>2]|0)!=1){Of(l);i=m;return}g=c[ha>>2]|0;if((g|0)!=1){c[j>>2]=g;c[k+4>>2]=1;Qe(0,148232,k);tc()}if((c[f>>2]&1|0)==0){Of(l);i=m;return}a[h]=1;Of(l);i=m;return}function uv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;p=i;f=i;i=i+8|0;q=f;m=i;i=i+8|0;n=m;j=i;i=i+8|0;s=i;i=i+8|0;t=s;u=i;i=i+8|0;o=i;i=i+8|0;l=i;i=i+8|0;k=i;i=i+8|0;r=i;i=i+8|0;v=b+16|0;a[v]=1;g=b+48|0;w=(c[g>>2]|0)+1|0;c[g>>2]=w;h=b+52|0;c[h>>2]=Ce(c[h>>2]|0,w,4)|0;w=c[b+4>>2]|0;if((w|0)==1){w=FW(120)|0;u=c[b+40>>2]|0;v=(c[g>>2]|0)+ -1|0;s=e;t=c[s+4>>2]|0;e=k;c[e>>2]=c[s>>2];c[e+4>>2]=t;$W(j|0,k|0,8)|0;gv(w,u,d,v,j,b);c[w>>2]=146968;c[w+8>>2]=1;c[w+112>>2]=c[w+4>>2];c[(c[h>>2]|0)+((c[g>>2]|0)+ -1<<2)>>2]=w;i=p;return}else if((w|0)==2){w=FW(120)|0;u=c[b+40>>2]|0;v=(c[g>>2]|0)+ -1|0;s=e;t=c[s+4>>2]|0;e=l;c[e>>2]=c[s>>2];c[e+4>>2]=t;$W(m|0,l|0,8)|0;gv(w,u,d,v,n,b);c[w>>2]=146992;c[w+8>>2]=2;c[w+112>>2]=c[w+4>>2];c[(c[h>>2]|0)+((c[g>>2]|0)+ -1<<2)>>2]=w;i=p;return}else if((w|0)==3){w=FW(120)|0;u=c[b+40>>2]|0;v=(c[g>>2]|0)+ -1|0;s=e;t=c[s+4>>2]|0;e=o;c[e>>2]=c[s>>2];c[e+4>>2]=t;$W(f|0,o|0,8)|0;gv(w,u,d,v,q,b);c[w>>2]=147136;c[w+8>>2]=3;c[w+112>>2]=c[w+4>>2];c[(c[h>>2]|0)+((c[g>>2]|0)+ -1<<2)>>2]=w;i=p;return}else if((w|0)==0){w=FW(136)|0;u=c[b+40>>2]|0;v=(c[g>>2]|0)+ -1|0;o=e;q=c[o+4>>2]|0;e=r;c[e>>2]=c[o>>2];c[e+4>>2]=q;$W(s|0,r|0,8)|0;gv(w,u,d,v,t,b);c[w>>2]=146768;c[w+8>>2]=0;c[w+124>>2]=c[w+4>>2];c[w+120>>2]=0;a[w+128|0]=0;c[w+112>>2]=0;c[w+116>>2]=0;c[(c[h>>2]|0)+((c[g>>2]|0)+ -1<<2)>>2]=w;i=p;return}else{Qe(-1,147384,u);c[g>>2]=(c[g>>2]|0)+ -1;a[v]=0;i=p;return}}function vv(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;o=i;i=i+8|0;n=o;m=i;i=i+16|0;j=m;k=i;i=i+16|0;f=k;c[k>>2]=13;h=f+8|0;c[h>>2]=0;c[h+4>>2]=0;l=c[a>>2]|0;if((l|0)!=7){c[o>>2]=l;c[n+4>>2]=7;Qe(0,148232,n);tc()}l=c[a+8>>2]|0;o=j+4|0;c[o>>2]=0;c[j+8>>2]=0;c[m>>2]=o;l=Nv(l,146744,f,j)|0;xn(j,c[j+4>>2]|0);do{if((c[l>>2]|0)==4){if((Qc(c[l+8>>2]|0,147840)|0)!=0){break}o=FW(80)|0;Bv(o,b,a,d,e);Of(f);yv(o);i=g;return o|0}}while(0);do{if((c[k>>2]|0)==4){h=c[h>>2]|0;if((Qc(h|0,147848)|0)==0){o=FW(80)|0;Ev(o,b,a,d,e);Of(f);yv(o);i=g;return o|0}if((Qc(h|0,147856)|0)==0){o=FW(80)|0;Hv(o,b,a,d,e);Of(f);yv(o);i=g;return o|0}o=(Qc(h|0,147864)|0)==0;h=FW(64)|0;if(!o){break}tv(h,b,a,d,e,3);c[h>>2]=147680;o=h;Of(f);yv(o);i=g;return o|0}else{h=FWFW(152)|0;H=c[s>>2]|0;if((H|0)!=7){d=20;break a}Ar(I,c[r>>2]|0,c[D>>2]|0,0);h[G+104>>3]=+h[I+136>>3];if((I|0)==0){break}fd[c[(c[I>>2]|0)+4>>2]&511](I)}}while(0);Of(t)}}while(0);Of(v)}else{Of(v)}F=F+1|0;if((F|0)>=(c[C>>2]|0)){d=26;break}}if((d|0)==7){c[g>>2]=G;c[j+4>>2]=6;Qe(0,148232,j);tc()}else if((d|0)==11){c[k>>2]=G;c[l+4>>2]=9;Qe(0,148232,l);tc()}else if((d|0)==17){c[m>>2]=H;c[n+4>>2]=6;Qe(0,148232,n);tc()}else if((d|0)==20){c[o>>2]=H;c[p+4>>2]=7;Qe(0,148232,p);tc()}else if((d|0)==26){i=q;return}}function Rv(a){a=a|0;var b=0;b=i;Fe(c[a>>2]|0);i=b;return}function Sv(a){a=a|0;i=i;return}function Tv(a){a=a|0;var b=0;b=i;iv(a);i=b;return}function Uv(a){a=a|0;var b=0;b=i;iv(a);HW(a);i=b;return}function Vv(a){a=a|0;var b=0;b=i;iv(a);i=b;return}function Wv(a){a=a|0;var b=0;b=i;iv(a);HW(a);i=b;return}function Xv(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;g=a+4|0;b=c[b>>2]|0;do{if((b|0)!=(g|0)){h=c[e>>2]|0;j=c[b+16>>2]|0;if((h|0)<(j|0)){break}if((j|0)>=(h|0)){c[d>>2]=b;k=d;i=f;return k|0}a=b+4|0;j=c[a>>2]|0;e=(j|0)==0;if(e){j=b;while(1){k=c[j+8>>2]|0;if((j|0)==(c[k>>2]|0)){j=k;break}else{j=k}}}else{while(1){k=c[j>>2]|0;if((k|0)==0){break}else{j=k}}}do{if((j|0)!=(g|0)){if((h|0)<(c[j+16>>2]|0)){break}b=c[g>>2]|0;if((b|0)==0){c[d>>2]=g;k=g;i=f;return k|0}while(1){g=c[b+16>>2]|0;if((h|0)<(g|0)){g=c[b>>2]|0;if((g|0)==0){g=34;break}else{b=g;continue}}if((g|0)>=(h|0)){g=38;break}e=b+4|0;g=c[e>>2]|0;if((g|0)==0){g=37;break}else{b=g}}if((g|0)==34){c[d>>2]=b;k=b;i=f;return k|0}else if((g|0)==37){c[d>>2]=b;k=e;i=f;return k|0}else if((g|0)==38){c[d>>2]=b;k=d;i=f;return k|0}}}while(0);if(e){c[d>>2]=b;k=a;i=f;return k|0}else{c[d>>2]=j;k=j;i=f;return k|0}}}while(0);h=c[b>>2]|0;do{if((b|0)==(c[a>>2]|0)){a=b}else{if((h|0)==0){j=b;while(1){a=c[j+8>>2]|0;if((j|0)==(c[a>>2]|0)){j=a}else{break}}}else{a=h;while(1){j=c[a+4>>2]|0;if((j|0)==0){break}else{a=j}}}e=c[e>>2]|0;if((c[a+16>>2]|0)<(e|0)){break}b=c[g>>2]|0;if((b|0)==0){c[d>>2]=g;k=g;i=f;return k|0}while(1){g=c[b+16>>2]|0;if((e|0)<(g|0)){g=c[b>>2]|0;if((g|0)==0){g=15;break}else{b=g;continue}}if((g|0)>=(e|0)){g=19;break}h=b+4|0;g=c[h>>2]|0;if((g|0)==0){g=18;break}else{b=g}}if((g|0)==15){c[d>>2]=b;k=b;i=f;return k|0}else if((g|0)==18){c[d>>2]=b;k=h;i=f;return k|0}else if((g|0)==19){c[d>>2]=b;k=d;i=f;return k|0}}}while(0);if((h|0)==0){c[d>>2]=b;k=b;i=f;return k|0}else{c[d>>2]=a;k=a+4|0;i=f;return k|0}return 0}function Yv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0,s=0.0;e=i;f=i;i=i+8|0;g=f;k=i;i=i+16|0;l=k;o=i;i=i+16|0;m=o;n=i;i=i+8|0;j=b+28|0;p=c[j>>2]|0;if((c[p+484>>2]|0)==0){d=c[b+120>>2]|0;do{if((d|0)==0){d=-1}else{d=c[d+4>>2]|0;if((c[d+16>>2]|0)!=8){d=-1;break}d=c[d+24>>2]|0;d=jd[c[(c[d>>2]|0)+48>>2]&511](d)|0}}while(0);Qe(d,161136,n);i=e;return}n=b+48|0;if((a[n]&1)==0){n=p}else{r=c[b+8>>2]|0;hd[c[(c[r>>2]|0)+176>>2]&127](r,p);a[n]=0;n=c[j>>2]|0}p=c[d>>2]|0;if((p+ -1|0)>>>0>=2){c[o>>2]=p;c[m+4>>2]=1;c[m+8>>2]=2;Qe(0,162328,m);tc()}m=d+8|0;if((p|0)==1){q=+(c[m>>2]|0)}else{q=+h[m>>3]}h[n+552>>3]=q;m=c[j>>2]|0;n=c[d+16>>2]|0;if((n+ -1|0)>>>0>=2){c[k>>2]=n;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,162328,l);tc()}k=d+24|0;if((n|0)==1){q=+(c[k>>2]|0)}else{q=+h[k>>3]}h[m+544>>3]=q;k=c[j>>2]|0;s=+h[k+608>>3];l=k+616|0;q=+h[l>>3]- +h[k+568>>3];h[l>>3]=q;h[k+592>>3]=+h[k+528>>3]+(s*+h[k+496>>3]+q*+h[k+512>>3]);h[k+600>>3]=+h[k+536>>3]+(s*+h[k+504>>3]+q*+h[k+520>>3]);k=b+8|0;l=c[k>>2]|0;hd[c[(c[l>>2]|0)+196>>2]&127](l,c[j>>2]|0);l=c[k>>2]|0;hd[c[(c[l>>2]|0)+184>>2]&127](l,c[j>>2]|0);l=c[k>>2]|0;hd[c[(c[l>>2]|0)+204>>2]&127](l,c[j>>2]|0);l=c[k>>2]|0;hd[c[(c[l>>2]|0)+268>>2]&127](l,c[j>>2]|0);l=c[d+32>>2]|0;if((l|0)!=3){c[f>>2]=l;c[g+4>>2]=3;Qe(0,162256,g);tc()}Ox(b,c[d+40>>2]|0);r=c[k>>2]|0;hd[c[(c[r>>2]|0)+272>>2]&127](r,c[j>>2]|0);i=e;return}function Zv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0.0,p=0.0;e=i;g=i;i=i+8|0;j=g;k=i;i=i+8|0;f=b+28|0;l=c[f>>2]|0;if((c[l+484>>2]|0)==0){b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,161112,k);i=e;return}m=b+48|0;k=b+8|0;if((a[m]&1)!=0){n=c[k>>2]|0;hd[c[(c[n>>2]|0)+176>>2]&127](n,l);a[m]=0;l=c[f>>2]|0}p=+h[l+608>>3];n=l+616|0;o=+h[n>>3]- +h[l+568>>3];h[n>>3]=o;h[l+592>>3]=+h[l+528>>3]+(p*+h[l+496>>3]+o*+h[l+512>>3]);h[l+600>>3]=+h[l+536>>3]+(p*+h[l+504>>3]+o*+h[l+520>>3]);l=c[k>>2]|0;hd[c[(c[l>>2]|0)+204>>2]&127](l,c[f>>2]|0);l=c[k>>2]|0;hd[c[(c[l>>2]|0)+268>>2]&127](l,c[f>>2]|0);l=c[d>>2]|0;if((l|0)!=3){c[g>>2]=l;c[j+4>>2]=3;Qe(0,162256,j);tc()}Ox(b,c[d+8>>2]|0);n=c[k>>2]|0;hd[c[(c[n>>2]|0)+272>>2]&127](n,c[f>>2]|0);i=e;return}function _v(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=i;d=b+28|0;g=c[d>>2]|0;h=c[g+588>>2]|0;a:do{if((c[h+28>>2]|0)>0){h=c[b+116>>2]|0;b:do{if((h|0)!=0){if((a[h]&1)!=0){break a}while(1){h=c[h+4>>2]|0;if((h|0)==0){break b}if((a[h]&1)!=0){break a}}}}while(0);h=c[g+116>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Bx(b,0)}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+216>>2]&127](h,c[d>>2]|0)}h=c[(c[d>>2]|0)+120>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Cx(b);break}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+212>>2]&127](h,c[d>>2]|0);break}}else{if((a[h]&1)!=0){break}i=e;return}}while(0);g=c[d>>2]|0;h=c[g+588>>2]|0;do{if((c[h+28>>2]|0)>0){f=16}else{if((a[h]&1)!=0){f=16;break}b=b+52|0}}while(0);do{if((f|0)==16){f=b+52|0;if((c[f>>2]|0)==0){b=f;break}TB(g);b=c[b+8>>2]|0;g=c[b>>2]|0;if((c[f>>2]|0)==1){hd[c[g+256>>2]&127](b,c[d>>2]|0);b=f;break}else{hd[c[g+260>>2]&127](b,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function $v(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=i;d=b+28|0;g=c[d>>2]|0;h=c[g+588>>2]|0;a:do{if((c[h+28>>2]|0)>0){h=c[b+116>>2]|0;b:do{if((h|0)!=0){if((a[h]&1)!=0){break a}while(1){h=c[h+4>>2]|0;if((h|0)==0){break b}if((a[h]&1)!=0){break a}}}}while(0);h=c[g+116>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Bx(b,1)}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+220>>2]&127](h,c[d>>2]|0)}h=c[(c[d>>2]|0)+120>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Cx(b);break}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+212>>2]&127](h,c[d>>2]|0);break}}else{if((a[h]&1)!=0){break}i=e;return}}while(0);g=c[d>>2]|0;h=c[g+588>>2]|0;do{if((c[h+28>>2]|0)>0){f=16}else{if((a[h]&1)!=0){f=16;break}b=b+52|0}}while(0);do{if((f|0)==16){f=b+52|0;if((c[f>>2]|0)==0){b=f;break}TB(g);b=c[b+8>>2]|0;g=c[b>>2]|0;if((c[f>>2]|0)==1){hd[c[g+256>>2]&127](b,c[d>>2]|0);b=f;break}else{hd[c[g+260>>2]&127](b,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function aw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=i;j=i;i=i+8|0;k=j;g=i;i=i+8|0;h=g;m=i;i=i+8|0;p=m;o=i;i=i+8|0;n=o;D=i;i=i+8|0;s=i;i=i+8|0;q=s;w=i;i=i+8|0;t=w;A=i;i=i+8|0;z=A;C=i;i=i+8|0;B=C;F=i;i=i+8|0;E=F;v=i;i=i+16|0;y=v;x=FW(8)|0;u=x;c[u>>2]=0;c[u+4>>2]=0;a[x]=0;u=b+116|0;c[x+4>>2]=c[u>>2];c[u>>2]=x;x=c[(c[b+4>>2]|0)+160>>2]|0;l=c[d>>2]|0;if((l|0)!=4){c[F>>2]=l;c[E+4>>2]=4;Qe(0,162256,E);tc()}l=d+8|0;a:do{if(!((vc(c[l>>2]|0,161320,2)|0)!=0|(x|0)==0)){if((e|0)<=1){q=c[b+120>>2]|0;do{if((q|0)==0){q=-1}else{q=c[q+4>>2]|0;if((c[q+16>>2]|0)!=8){q=-1;break}q=c[q+24>>2]|0;q=jd[c[(c[q>>2]|0)+48>>2]&511](q)|0}}while(0);Qe(q,162112,D);break}D=d+16|0;E=c[D>>2]|0;do{if((E|0)!=4){F=c[b+120>>2]|0;do{if((F|0)==0){F=-1}else{F=c[F+4>>2]|0;if((c[F+16>>2]|0)!=8){F=-1;break}F=c[F+24>>2]|0;F=jd[c[(c[F>>2]|0)+48>>2]&511](F)|0;E=c[D>>2]|0}}while(0);c[C>>2]=E;Qe(F,162072,B);B=c[D>>2]|0;if((B|0)==4){break}c[A>>2]=B;c[z+4>>2]=4;Qe(0,162256,z);tc()}}while(0);z=c[d+24>>2]|0;c[v>>2]=13;A=y+8|0;c[A>>2]=0;c[A+4>>2]=0;A=c[b+20>>2]|0;b:do{if((A|0)!=0){while(1){if((c[A+96>>2]|0)==7){if((c[(Zu(c[A+104>>2]|0,z,y)|0)>>2]|0)!=5){break}Of(y)}A=c[A+112>>2]|0;if((A|0)==0){break b}}if((c[v>>2]|0)!=9){break a}F=GF(x,y)|0;a[c[u>>2]|0]=F&1^1;break a}}while(0);c[w>>2]=z;Qe(-1,159320,t);t=c[b+120>>2]|0;do{if((t|0)==0){t=-1}else{t=c[t+4>>2]|0;if((c[t+16>>2]|0)!=8){t=-1;break}t=c[t+24>>2]|0;t=jd[c[(c[t>>2]|0)+48>>2]&511](t)|0}}while(0);c[s>>2]=z;Qe(t,162096,q)}}while(0);if((a[b+13|0]&1)!=0){q=c[d>>2]|0;if((q|0)!=4){c[o>>2]=q;c[n+4>>2]=4;Qe(0,162256,n);tc()}c[m>>2]=c[l>>2];Kb(162160,p|0)|0;if((e|0)==2){m=c[r>>2]|0;Qf(d+16|0,m)}else{m=c[r>>2]|0}Hb(10)|0;Fc(m|0)|0}if((e|0)==1){g=c[b+8>>2]|0;d=c[d>>2]|0;if((d|0)!=4){c[j>>2]=d;c[k+4>>2]=4;Qe(0,162256,k);tc()}Gd[c[(c[g>>2]|0)+332>>2]&255](g,c[l>>2]|0,0);i=f;return}else if((e|0)==2){if((c[d+16>>2]|0)!=7){i=f;return}j=c[b+8>>2]|0;k=c[d>>2]|0;if((k|0)!=4){c[g>>2]=k;c[h+4>>2]=4;Qe(0,162256,h);tc()}Gd[c[(c[j>>2]|0)+332>>2]&255](j,c[l>>2]|0,c[d+24>>2]|0);i=f;return}else{i=f;return}}function bw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;b=i;d=Sx(a)|0;if((d|0)==0){i=b;return}Qx(a,0,d,1);e=jd[c[(c[d>>2]|0)+68>>2]&511](d)|0;e=jd[c[(c[e>>2]|0)+20>>2]&511](e)|0;a=jd[c[(c[d>>2]|0)+68>>2]&511](d)|0;a=jd[c[(c[a>>2]|0)+20>>2]&511](a)|0;while(1){if((e|0)==69){if((a|0)==73|(a|0)==-1){break}}else{if((a|0)==-1){break}}f=jd[c[(c[d>>2]|0)+68>>2]&511](d)|0;e=a;a=jd[c[(c[f>>2]|0)+20>>2]&511](f)|0}fd[c[(c[d>>2]|0)+4>>2]&511](d);i=b;return}function cw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;d=i;e=b+8|0;g=c[e>>2]|0;f=b+28|0;hd[c[(c[g>>2]|0)+300>>2]&127](g,c[f>>2]|0);a[b+16|0]=1;g=c[f>>2]|0;h[g+496>>3]=1.0;bX(g+504|0,0,16)|0;h[g+520>>3]=1.0;bX(g+528|0,0,16)|0;g=c[f>>2]|0;bX(g+608|0,0,16)|0;h[g+592>>3]=+h[g+528>>3]+(+h[g+496>>3]*0.0+ +h[g+512>>3]*0.0);h[g+600>>3]=+h[g+536>>3]+(+h[g+504>>3]*0.0+ +h[g+520>>3]*0.0);g=c[e>>2]|0;hd[c[(c[g>>2]|0)+180>>2]&127](g,c[f>>2]|0);g=c[e>>2]|0;hd[c[(c[g>>2]|0)+204>>2]&127](g,c[f>>2]|0);a[b+48|0]=1;f=c[f>>2]|0;if((c[f+584>>2]&4|0)!=0){i=d;return}g=c[e>>2]|0;if(!(Bd[c[(c[g>>2]|0)+40>>2]&255](g,f)|0)){i=d;return}a[b+15|0]=1;i=d;return}function dw(a,b,d){a=a|0;b=b|0;d=d|0;d=a+56|0;c[d>>2]=(c[d>>2]|0)+1;i=i;return}function ew(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;e=i;i=i+8|0;r=i;i=i+8|0;q=r;l=i;i=i+16|0;h=l;g=i;i=i+128|0;j=g;c[l>>2]=13;n=h+8|0;c[n>>2]=0;m=n+4|0;c[m>>2]=0;k=a+28|0;OB(c[k>>2]|0,0);o=c[a+20>>2]|0;p=c[b>>2]|0;if((p|0)!=4){c[r>>2]=p;c[q+4>>2]=4;Qe(0,162256,q);tc()}p=c[b+8>>2]|0;a:do{if((o|0)==0){f=8}else{while(1){if((c[o+24>>2]|0)==7){if((c[(Yu(c[o+32>>2]|0,p,h,0)|0)>>2]|0)!=5){break}Of(h)}o=c[o+112>>2]|0;if((o|0)==0){f=8;break a}}if((c[l>>2]|0)==5){f=10;break}b=Jy(h,a)|0}}while(0);if((f|0)==8){c[n>>2]=0;c[m>>2]=0;c[l>>2]=5;f=10}if((f|0)==10){b=Jy(b,a)|0}Of(h);if((b|0)!=0){MB(c[k>>2]|0,b);r=a+8|0;q=c[r>>2]|0;hd[c[(c[q>>2]|0)+136>>2]&127](q,c[k>>2]|0);hd[c[(c[b>>2]|0)+48>>2]&127](b,j);$W((c[k>>2]|0)+252|0,g|0,128)|0;r=c[r>>2]|0;hd[c[(c[r>>2]|0)+144>>2]&127](r,c[k>>2]|0);i=d;return}a=c[a+120>>2]|0;do{if((a|0)==0){a=-1}else{a=c[a+4>>2]|0;if((c[a+16>>2]|0)!=8){a=-1;break}a=c[a+24>>2]|0;a=jd[c[(c[a>>2]|0)+48>>2]&511](a)|0}}while(0);Qe(a,160520,e);i=d;return}function fwFW(4)|0;Ty(g);MB(m,g);a=a+8|0;g=c[a>>2]|0;hd[c[(c[g>>2]|0)+136>>2]&127](g,c[f>>2]|0);g=c[b>>2]|0;if((g+ -1|0)>>>0>=2){c[k>>2]=g;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,162328,j);tc()}b=b+8|0;if((g|0)==1){l=+(c[b>>2]|0)}else{l=+h[b>>3]}m=c[f>>2]|0;c[m+252>>2]=~~(l*65536.0);$W(m+256|0,d|0,124)|0;m=c[a>>2]|0;hd[c[(c[m>>2]|0)+144>>2]&127](m,c[f>>2]|0);i=e;return}function nw(a,b,d){a=a|0;b=b|0;d=d|0;d=i;b=i;i=i+8|0;a=c[a+120>>2]|0;do{if((a|0)==0){a=-1}else{a=c[a+4>>2]|0;if((c[a+16>>2]|0)!=8){a=-1;break}a=c[a+24>>2]|0;a=jd[c[(c[a>>2]|0)+48>>2]&511](a)|0}}while(0);Qe(a,162008,b);i=d;return}function ow(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;d=i;g=i;i=i+8|0;f=g;e=a+28|0;h=c[b>>2]|0;if((h|0)==1){c[(c[e>>2]|0)+464>>2]=c[b+8>>2];h=c[a+8>>2]|0;hd[c[(c[h>>2]|0)+108>>2]&127](h,c[e>>2]|0);i=d;return}else{c[g>>2]=h;c[f+4>>2]=1;Qe(0,162256,f);tc()}}function pw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0.0;g=i;j=i;i=i+16|0;d=j;f=i;i=i+128|0;k=f;e=a+28|0;OB(c[e>>2]|0,0);n=c[e>>2]|0;l=FW(4)|0;vz(l);MB(n,l);a=a+8|0;l=c[a>>2]|0;hd[c[(c[l>>2]|0)+136>>2]&127](l,c[e>>2]|0);l=0;while(1){m=c[b+(l<<4)>>2]|0;if((m+ -1|0)>>>0>=2){b=3;break}n=b+(l<<4)+8|0;if((m|0)==1){o=+(c[n>>2]|0)}else{o=+h[n>>3]}c[k+(l<<2)>>2]=~~(o*65536.0);l=l+1|0;if((l|0)>=4){b=8;break}}if((b|0)==3){c[j>>2]=m;c[d+4>>2]=1;c[d+8>>2]=2;Qe(0,162328,d);tc()}else if((b|0)==8){$W((c[e>>2]|0)+252|0,f|0,128)|0;n=c[a>>2]|0;hd[c[(c[n>>2]|0)+144>>2]&127](n,c[e>>2]|0);i=g;return}}function qw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0.0;e=i;j=i;i=i+16|0;k=j;d=a+28|0;f=c[d>>2]|0;g=c[b>>2]|0;if((g+ -1|0)>>>0>=2){c[j>>2]=g;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}b=b+8|0;if((g|0)==1){l=+(c[b>>2]|0)}else{l=+h[b>>3]}h[f+472>>3]=l;k=c[a+8>>2]|0;hd[c[(c[k>>2]|0)+112>>2]&127](k,c[d>>2]|0);i=e;return}function rw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=i;d=i;i=i+8|0;f=b+32|0;h=c[b+36>>2]|0;do{if((c[f>>2]|0)>(c[h+(((c[b+40>>2]|0)-h>>2)+ -1<<2)>>2]|0)){h=b+28|0;g=c[h>>2]|0;if((c[g+656>>2]|0)==0){break}g=YB(g)|0;c[h>>2]=g;h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+84>>2]&127](h,g);c[f>>2]=(c[f>>2]|0)+ -1;i=e;return}}while(0);Qe(-1,162208,d);a[b+18|0]=1;i=e;return}function sw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0.0;g=i;j=i;i=i+16|0;d=j;f=i;i=i+128|0;k=f;e=a+28|0;OB(c[e>>2]|0,0);n=c[e>>2]|0;l=FW(4)|0;gz(l);MB(n,l);a=a+8|0;l=c[a>>2]|0;hd[c[(c[l>>2]|0)+136>>2]&127](l,c[e>>2]|0);l=0;while(1){m=c[b+(l<<4)>>2]|0;if((m+ -1|0)>>>0>=2){b=3;break}n=b+(l<<4)+8|0;if((m|0)==1){o=+(c[n>>2]|0)}else{o=+h[n>>3]}c[k+(l<<2)>>2]=~~(o*65536.0);l=l+1|0;if((l|0)>=3){b=8;break}}if((b|0)==3){c[j>>2]=m;c[d+4>>2]=1;c[d+8>>2]=2;Qe(0,162328,d);tc()}else if((b|0)==8){$W((c[e>>2]|0)+252|0,f|0,128)|0;n=c[a>>2]|0;hd[c[(c[n>>2]|0)+144>>2]&127](n,c[e>>2]|0);i=g;return}}function tw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=i;d=b+28|0;g=c[d>>2]|0;h=c[g+588>>2]|0;a:do{if((c[h+28>>2]|0)>0){h=c[b+116>>2]|0;b:do{if((h|0)!=0){if((a[h]&1)!=0){break a}while(1){h=c[h+4>>2]|0;if((h|0)==0){break b}if((a[h]&1)!=0){break a}}}}while(0);h=c[g+120>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Cx(b);break}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+212>>2]&127](h,c[d>>2]|0);break}}else{if((a[h]&1)!=0){break}i=e;return}}while(0);g=c[d>>2]|0;h=c[g+588>>2]|0;do{if((c[h+28>>2]|0)>0){f=13}else{if((a[h]&1)!=0){f=13;break}b=b+52|0}}while(0);do{if((f|0)==13){f=b+52|0;if((c[f>>2]|0)==0){b=f;break}TB(g);b=c[b+8>>2]|0;g=c[b>>2]|0;if((c[f>>2]|0)==1){hd[c[g+256>>2]&127](b,c[d>>2]|0);b=f;break}else{hd[c[g+260>>2]&127](b,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function uw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0.0;e=i;f=i;i=i+16|0;g=f;m=i;i=i+8|0;k=i;i=i+128|0;l=k;j=a+28|0;o=c[(c[j>>2]|0)+120>>2]|0;if((jd[c[(c[o>>2]|0)+44>>2]&511](o)|0)!=(d|0)){d=c[a+120>>2]|0;do{if((d|0)==0){d=-1}else{d=c[d+4>>2]|0;if((c[d+16>>2]|0)!=8){d=-1;break}d=c[d+24>>2]|0;d=jd[c[(c[d>>2]|0)+48>>2]&511](d)|0}}while(0);Qe(d,160600,m);i=e;return}OB(c[j>>2]|0,0);a:do{if((d|0)>0){m=0;while(1){n=c[b+(m<<4)>>2]|0;if((n+ -1|0)>>>0>=2){break}o=b+(m<<4)+8|0;if((n|0)==1){p=+(c[o>>2]|0)}else{p=+h[o>>3]}c[l+(m<<2)>>2]=~~(p*65536.0);m=m+1|0;if((m|0)>=(d|0)){break a}}c[f>>2]=n;c[g+4>>2]=1;c[g+8>>2]=2;Qe(0,162328,g);tc()}}while(0);$W((c[j>>2]|0)+252|0,k|0,128)|0;o=c[a+8>>2]|0;hd[c[(c[o>>2]|0)+144>>2]&127](o,c[j>>2]|0);i=e;return}function vw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0.0;e=i;l=i;i=i+8|0;k=i;i=i+8|0;g=i;i=i+128|0;j=g;f=a+28|0;m=c[(c[f>>2]|0)+120>>2]|0;if((jd[c[(c[m>>2]|0)+12>>2]&511](m)|0)!=10){m=c[(c[f>>2]|0)+120>>2]|0;if((jd[c[(c[m>>2]|0)+44>>2]&511](m)|0)!=(d|0)){f=c[a+120>>2]|0;do{if((f|0)==0){f=-1}else{f=c[f+4>>2]|0;if((c[f+16>>2]|0)!=8){f=-1;break}f=c[f+24>>2]|0;f=jd[c[(c[f>>2]|0)+48>>2]&511](f)|0}}while(0);Qe(f,160696,l);i=e;return}OB(c[f>>2]|0,0);if((d|0)>0){k=0;do{m=c[b+(k<<4)>>2]|0;if((m+ -1|0)>>>0<2){l=b+(k<<4)+8|0;if((m|0)==1){n=+(c[l>>2]|0)}else{n=+h[l>>3]}c[j+(k<<2)>>2]=~~(n*65536.0)}else{c[j+(k<<2)>>2]=0}k=k+1|0;}while((k|0)<(d|0)&(k|0)<32)}$W((c[f>>2]|0)+252|0,g|0,128)|0;m=c[a+8>>2]|0;hd[c[(c[m>>2]|0)+144>>2]&127](m,c[f>>2]|0);i=e;return}a:do{if((d|0)>1){l=c[(c[(c[f>>2]|0)+120>>2]|0)+4>>2]|0;do{if((l|0)!=0){d=d+ -1|0;if((d|0)!=(jd[c[(c[l>>2]|0)+44>>2]&511](l)|0)){break}if((d|0)>0){k=0;do{m=c[b+(k<<4)>>2]|0;if((m+ -1|0)>>>0<2){l=b+(k<<4)+8|0;if((m|0)==1){n=+(c[l>>2]|0)}else{n=+h[l>>3]}c[j+(k<<2)>>2]=~~(n*65536.0)}else{c[j+(k<<2)>>2]=0}k=k+1|0;}while((k|0)<(d|0)&(k|0)<32)}$W((c[f>>2]|0)+252|0,g|0,128)|0;m=c[a+8>>2]|0;hd[c[(c[m>>2]|0)+144>>2]&127](m,c[f>>2]|0);break a}}while(0);f=c[a+120>>2]|0;do{if((f|0)==0){f=-1}else{f=c[f+4>>2]|0;if((c[f+16>>2]|0)!=8){f=-1;break}f=c[f+24>>2]|0;f=jd[c[(c[f>>2]|0)+48>>2]&511](f)|0}}while(0);Qe(f,160696,k);i=e;return}else{d=d+ -1|0}}while(0);if((c[b+(d<<4)>>2]|0)!=4){i=e;return}b=ox(c[a+20>>2]|0,c[b+(d<<4)+8>>2]|0,a)|0;if((b|0)==0){i=e;return}OB(c[f>>2]|0,b);i=e;return}function ww(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0.0,g=0.0,j=0;d=i;b=a+28|0;e=c[b>>2]|0;g=+h[e+608>>3];j=e+616|0;f=+h[j>>3]- +h[e+568>>3];h[j>>3]=f;h[e+592>>3]=+h[e+528>>3]+(g*+h[e+496>>3]+f*+h[e+512>>3]);h[e+600>>3]=+h[e+536>>3]+(g*+h[e+504>>3]+f*+h[e+520>>3]);a=c[a+8>>2]|0;hd[c[(c[a>>2]|0)+204>>2]&127](a,c[b>>2]|0);i=d;return}function xw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0.0,l=0,m=0,n=0,o=0.0;e=i;g=i;i=i+16|0;j=g;m=i;i=i+16|0;n=m;d=a+28|0;f=c[d>>2]|0;k=+h[f+608>>3];l=c[b>>2]|0;if((l+ -1|0)>>>0>=2){c[m>>2]=l;c[n+4>>2]=1;c[n+8>>2]=2;Qe(0,162328,n);tc()}m=b+8|0;if((l|0)==1){o=+(c[m>>2]|0)}else{o=+h[m>>3]}k=k+o;l=c[b+16>>2]|0;if((l+ -1|0)>>>0>=2){c[g>>2]=l;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,162328,j);tc()}b=b+24|0;if((l|0)==1){o=+(c[b>>2]|0)}else{o=+h[b>>3]}h[f+568>>3]=-0.0-o;n=c[d>>2]|0;m=n+616|0;o=o+ +h[m>>3];h[n+608>>3]=k;h[m>>3]=o;h[n+592>>3]=+h[n+528>>3]+(k*+h[n+496>>3]+o*+h[n+512>>3]);h[n+600>>3]=+h[n+536>>3]+(k*+h[n+504>>3]+o*+h[n+520>>3]);n=c[a+8>>2]|0;hd[c[(c[n>>2]|0)+204>>2]&127](n,c[d>>2]|0);i=e;return}function yw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0.0,v=0;e=i;m=i;i=i+8|0;n=i;i=i+16|0;f=n;q=i;i=i+8|0;p=q;o=i;i=i+8|0;l=i;i=i+16|0;j=l;c[l>>2]=13;k=j+8|0;c[k>>2]=0;c[k+4>>2]=0;g=b+28|0;r=c[g>>2]|0;if((c[r+484>>2]|0)==0){b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,161168,o);i=e;return}s=b+48|0;o=b+8|0;if((a[s]&1)!=0){v=c[o>>2]|0;hd[c[(c[v>>2]|0)+176>>2]&127](v,r);a[s]=0;r=c[g>>2]|0}s=c[o>>2]|0;hd[c[(c[s>>2]|0)+268>>2]&127](s,r);r=c[(c[g>>2]|0)+484>>2]|0;r=jd[c[(c[r>>2]|0)+8>>2]&511](r)|0;s=c[d>>2]|0;if((s|0)!=6){c[q>>2]=s;c[p+4>>2]=6;Qe(0,162256,p);tc()}p=c[d+8>>2]|0;d=p+12|0;a:do{if((c[d>>2]|0)>0){r=(r|0)==0;q=b+120|0;s=0;b:while(1){ut(p,s,j)|0;v=c[l>>2]|0;do{if((v+ -1|0)>>>0<2){t=c[g>>2]|0;if((v|0)==1){u=+(c[k>>2]|0)}else{u=+h[k>>3]}u=u*-.001*+S(+(+h[t+488>>3]));if(r){VB(t,u,0.0)}else{VB(t,0.0,u)}t=c[o>>2]|0;v=c[l>>2]|0;if((v+ -1|0)>>>0>=2){break b}if((v|0)==1){u=+(c[k>>2]|0)}else{u=+h[k>>3]}Id[c[(c[t>>2]|0)+208>>2]&3](t,c[g>>2]|0,u)}else{if((v|0)==3){Ox(b,c[k>>2]|0);break}t=c[q>>2]|0;do{if((t|0)==0){t=-1}else{t=c[t+4>>2]|0;if((c[t+16>>2]|0)!=8){t=-1;break}t=c[t+24>>2]|0;t=jd[c[(c[t>>2]|0)+48>>2]&511](t)|0}}while(0);Qe(t,161192,m)}}while(0);Of(j);s=s+1|0;if((s|0)>=(c[d>>2]|0)){break a}}c[n>>2]=v;c[f+4>>2]=1;c[f+8>>2]=2;Qe(0,162328,f);tc()}}while(0);v=c[o>>2]|0;hd[c[(c[v>>2]|0)+272>>2]&127](v,c[g>>2]|0);i=e;return}function zw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0.0;d=i;g=i;i=i+16|0;f=g;a=c[a+28>>2]|0;e=c[b>>2]|0;if((e+ -1|0)>>>0>=2){c[g>>2]=e;c[f+4>>2]=1;c[f+8>>2]=2;Qe(0,162328,f);tc()}b=b+8|0;if((e|0)==1){j=+(c[b>>2]|0);g=a+568|0;h[g>>3]=j;i=d;return}else{j=+h[b>>3];g=a+568|0;h[g>>3]=j;i=d;return}}function Aw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0.0;e=i;j=i;i=i+16|0;k=j;d=a+28|0;f=c[d>>2]|0;g=c[b>>2]|0;if((g+ -1|0)>>>0>=2){c[j>>2]=g;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}b=b+8|0;if((g|0)==1){l=+(c[b>>2]|0)}else{l=+h[b>>3]}h[f+544>>3]=l;k=c[a+8>>2]|0;hd[c[(c[k>>2]|0)+184>>2]&127](k,c[d>>2]|0);i=e;return}function Bw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0.0,m=0.0,n=0,o=0,p=0,q=0.0;e=i;j=i;i=i+16|0;k=j;o=i;i=i+16|0;p=o;d=a+28|0;f=c[d>>2]|0;g=f+608|0;l=+h[g>>3];n=c[b>>2]|0;if((n+ -1|0)>>>0>=2){c[o>>2]=n;c[p+4>>2]=1;c[p+8>>2]=2;Qe(0,162328,p);tc()}o=b+8|0;if((n|0)==1){m=+(c[o>>2]|0)}else{m=+h[o>>3]}m=l+m;n=f+616|0;l=+h[n>>3];o=c[b+16>>2]|0;if((o+ -1|0)>>>0>=2){c[j>>2]=o;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}b=b+24|0;if((o|0)==1){q=+(c[b>>2]|0)}else{q=+h[b>>3]}q=l+q;h[g>>3]=m;h[n>>3]=q;h[f+592>>3]=+h[f+528>>3]+(m*+h[f+496>>3]+q*+h[f+512>>3]);h[f+600>>3]=+h[f+536>>3]+(m*+h[f+504>>3]+q*+h[f+520>>3]);p=c[a+8>>2]|0;hd[c[(c[p>>2]|0)+204>>2]&127](p,c[d>>2]|0);i=e;return}function Cw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0.0;e=i;f=i;i=i+16|0;g=f;j=i;i=i+16|0;l=j;o=i;i=i+16|0;n=o;p=i;i=i+16|0;q=p;t=i;i=i+8|0;s=t;u=i;i=i+8|0;w=u;m=c[b+20>>2]|0;v=c[d>>2]|0;if((v|0)!=4){c[u>>2]=v;c[w+4>>2]=4;Qe(0,162256,w);tc()}u=c[d+8>>2]|0;a:do{if((m|0)!=0){v=m;while(1){m=c[v>>2]|0;if((m|0)!=0){m=wy(m,u)|0;if((m|0)!=0){break}}v=c[v+112>>2]|0;if((v|0)==0){break a}}if((a[b+13|0]&1)==0){s=d+16|0}else{p=c[(c[m+8>>2]|0)+28>>2]|0;q=c[m+20>>2]|0;if((q|0)==0){q=161088}else{q=c[q+28>>2]|0}s=d+16|0;t=c[s>>2]|0;if((t+ -1|0)>>>0>=2){c[o>>2]=t;c[n+4>>2]=1;c[n+8>>2]=2;Qe(0,162328,n);tc()}n=d+24|0;if((t|0)==1){x=+(c[n>>2]|0)}else{x=+h[n>>3]}c[j>>2]=p;c[l+4>>2]=q;w=l+8|0;h[k>>3]=x;c[w>>2]=c[k>>2];c[w+4>>2]=c[k+4>>2];Kb(161056,l|0)|0;Fc(c[r>>2]|0)|0}Xx(m);j=c[b+28>>2]|0;l=c[s>>2]|0;if((l+ -1|0)>>>0>=2){c[f>>2]=l;c[g+4>>2]=1;c[g+8>>2]=2;Qe(0,162328,g);tc()}d=d+24|0;if((l|0)==1){x=+(c[d>>2]|0)}else{x=+h[d>>3]}PB(j,m,x);a[b+48|0]=1;i=e;return}}while(0);c[t>>2]=u;Qe(-1,159272,s);f=c[b+28>>2]|0;g=c[d+16>>2]|0;if((g+ -1|0)>>>0>=2){c[p>>2]=g;c[q+4>>2]=1;c[q+8>>2]=2;Qe(0,162328,q);tc()}d=d+24|0;if((g|0)==1){x=+(c[d>>2]|0)}else{x=+h[d>>3]}PB(f,0,x);a[b+48|0]=1;i=e;return}function Dw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;g=i;i=i+8|0;h=g;j=i;i=i+8|0;f=b+28|0;k=c[f>>2]|0;if((c[k+484>>2]|0)==0){b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,161096,j);i=e;return}l=b+48|0;j=b+8|0;if((a[l]&1)!=0){m=c[j>>2]|0;hd[c[(c[m>>2]|0)+176>>2]&127](m,k);a[l]=0;k=c[f>>2]|0}m=c[j>>2]|0;hd[c[(c[m>>2]|0)+268>>2]&127](m,k);k=c[d>>2]|0;if((k|0)!=3){c[g>>2]=k;c[h+4>>2]=3;Qe(0,162256,h);tc()}Ox(b,c[d+8>>2]|0);m=c[j>>2]|0;hd[c[(c[m>>2]|0)+272>>2]&127](m,c[f>>2]|0);i=e;return}function Ew(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0.0,m=0,n=0,o=0.0,p=0,q=0,r=0,s=0,t=0.0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0.0,B=0.0;f=i;k=i;i=i+16|0;j=k;n=i;i=i+16|0;m=n;q=i;i=i+16|0;p=q;s=i;i=i+16|0;r=s;v=i;i=i+16|0;u=v;z=i;i=i+16|0;y=z;g=b+28|0;e=c[g>>2]|0;w=c[d>>2]|0;if((w+ -1|0)>>>0>=2){c[z>>2]=w;c[y+4>>2]=1;c[y+8>>2]=2;Qe(0,162328,y);tc()}y=d+8|0;if((w|0)==1){l=+(c[y>>2]|0)}else{l=+h[y>>3]}w=c[d+16>>2]|0;if((w+ -1|0)>>>0>=2){c[v>>2]=w;c[u+4>>2]=1;c[u+8>>2]=2;Qe(0,162328,u);tc()}u=d+24|0;if((w|0)==1){o=+(c[u>>2]|0)}else{o=+h[u>>3]}u=c[d+32>>2]|0;if((u+ -1|0)>>>0>=2){c[s>>2]=u;c[r+4>>2]=1;c[r+8>>2]=2;Qe(0,162328,r);tc()}r=d+40|0;if((u|0)==1){t=+(c[r>>2]|0)}else{t=+h[r>>3]}r=c[d+48>>2]|0;if((r+ -1|0)>>>0>=2){c[q>>2]=r;c[p+4>>2]=1;c[p+8>>2]=2;Qe(0,162328,p);tc()}p=d+56|0;if((r|0)==1){x=+(c[p>>2]|0)}else{x=+h[p>>3]}p=c[d+64>>2]|0;if((p+ -1|0)>>>0>=2){c[n>>2]=p;c[m+4>>2]=1;c[m+8>>2]=2;Qe(0,162328,m);tc()}m=d+72|0;if((p|0)==1){A=+(c[m>>2]|0)}else{A=+h[m>>3]}m=c[d+80>>2]|0;if((m+ -1|0)>>>0>=2){c[k>>2]=m;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,162328,j);tc()}d=d+88|0;if((m|0)==1){B=+(c[d>>2]|0)}else{B=+h[d>>3]}h[e+496>>3]=l;h[e+504>>3]=o;h[e+512>>3]=t;h[e+520>>3]=x;h[e+528>>3]=A;h[e+536>>3]=B;z=c[g>>2]|0;bX(z+608|0,0,16)|0;h[z+592>>3]=+h[z+528>>3]+(+h[z+496>>3]*0.0+ +h[z+512>>3]*0.0);h[z+600>>3]=+h[z+536>>3]+(+h[z+504>>3]*0.0+ +h[z+520>>3]*0.0);z=b+8|0;y=c[z>>2]|0;hd[c[(c[y>>2]|0)+180>>2]&127](y,c[g>>2]|0);z=c[z>>2]|0;hd[c[(c[z>>2]|0)+204>>2]&127](z,c[g>>2]|0);a[b+48|0]=1;i=f;return}function FwFWp>>2]|0)+308>>2]&127](p,c[n>>2]|0);if(q){Bx(b,1)}q=c[o>>2]|0;hd[c[(c[q>>2]|0)+84>>2]&127](q,c[n>>2]|0)}}while(0);n=b+28|0;NB(c[n>>2]|0,0);q=c[n>>2]|0;o=FWFW(4)|0;gz(o);LB(q,o);b=b+8|0;o=c[b>>2]|0;hd[c[(c[o>>2]|0)+132>>2]&127](o,c[n>>2]|0);o=0;do{p=c[d+(o<<4)>>2]|0;if((p+ -1|0)>>>0>=2){f=8;break}q=d+(o<<4)+8|0;if((p|0)==1){r=+(c[q>>2]|0)}else{r=+h[q>>3]}c[j+(o<<2)>>2]=~~(r*65536.0);o=o+1|0;}while((o|0)<3);if((f|0)==8){c[e>>2]=p;c[g+4>>2]=1;c[g+8>>2]=2;Qe(0,162328,g);tc()}$W((c[n>>2]|0)+124|0,k|0,128)|0;q=c[b>>2]|0;hd[c[(c[q>>2]|0)+140>>2]&127](q,c[n>>2]|0);if((a[l]&1)==0){i=m;return}q=c[b>>2]|0;hd[c[(c[q>>2]|0)+300>>2]&127](q,c[n>>2]|0);q=c[b>>2]|0;hd[c[(c[q>>2]|0)+188>>2]&127](q,c[n>>2]|0);q=c[b>>2]|0;hd[c[(c[q>>2]|0)+180>>2]&127](q,c[n>>2]|0);q=c[b>>2]|0;hd[c[(c[q>>2]|0)+204>>2]&127](q,c[n>>2]|0);a[l]=0;i=m;return}function ex(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return}function fx(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0;e=i;d=b+28|0;j=c[d>>2]|0;g=j+588|0;k=c[g>>2]|0;do{if((c[k+28>>2]|0)<=0){if((a[k]&1)!=0){break}i=e;return}}while(0);xB(k);k=c[g>>2]|0;g=k+28|0;k=k+24|0;l=c[(c[k>>2]|0)+((c[g>>2]|0)+ -1<<2)>>2]|0;h[j+592>>3]=+h[(c[l>>2]|0)+((c[l+12>>2]|0)+ -1<<3)>>3];g=c[(c[k>>2]|0)+((c[g>>2]|0)+ -1<<2)>>2]|0;h[j+600>>3]=+h[(c[g+4>>2]|0)+((c[g+12>>2]|0)+ -1<<3)>>3];g=c[d>>2]|0;a:do{if((c[(c[g+588>>2]|0)+28>>2]|0)>0){j=c[b+116>>2]|0;b:do{if((j|0)!=0){if((a[j]&1)!=0){break a}while(1){j=c[j+4>>2]|0;if((j|0)==0){break b}if((a[j]&1)!=0){break a}}}}while(0);l=c[g+120>>2]|0;if((jd[c[(c[l>>2]|0)+12>>2]&511](l)|0)==10){Cx(b);break}else{l=c[b+8>>2]|0;hd[c[(c[l>>2]|0)+212>>2]&127](l,c[d>>2]|0);break}}}while(0);g=c[d>>2]|0;j=c[g+588>>2]|0;do{if((c[j+28>>2]|0)>0){f=14}else{if((a[j]&1)!=0){f=14;break}b=b+52|0}}while(0);do{if((f|0)==14){f=b+52|0;if((c[f>>2]|0)==0){b=f;break}TB(g);b=c[b+8>>2]|0;g=c[b>>2]|0;if((c[f>>2]|0)==1){hd[c[g+256>>2]&127](b,c[d>>2]|0);b=f;break}else{hd[c[g+260>>2]&127](b,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function gx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0.0;e=i;f=i;i=i+16|0;g=f;m=i;i=i+8|0;k=i;i=i+128|0;l=k;j=a+28|0;o=c[(c[j>>2]|0)+116>>2]|0;if((jd[c[(c[o>>2]|0)+44>>2]&511](o)|0)!=(d|0)){d=c[a+120>>2]|0;do{if((d|0)==0){d=-1}else{d=c[d+4>>2]|0;if((c[d+16>>2]|0)!=8){d=-1;break}d=c[d+24>>2]|0;d=jd[c[(c[d>>2]|0)+48>>2]&511](d)|0}}while(0);Qe(d,160552,m);i=e;return}NB(c[j>>2]|0,0);a:do{if((d|0)>0){m=0;while(1){n=c[b+(m<<4)>>2]|0;if((n+ -1|0)>>>0>=2){break}o=b+(m<<4)+8|0;if((n|0)==1){p=+(c[o>>2]|0)}else{p=+h[o>>3]}c[l+(m<<2)>>2]=~~(p*65536.0);m=m+1|0;if((m|0)>=(d|0)){break a}}c[f>>2]=n;c[g+4>>2]=1;c[g+8>>2]=2;Qe(0,162328,g);tc()}}while(0);$W((c[j>>2]|0)+124|0,k|0,128)|0;o=c[a+8>>2]|0;hd[c[(c[o>>2]|0)+140>>2]&127](o,c[j>>2]|0);i=e;return}function hx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0.0;e=i;l=i;i=i+8|0;k=i;i=i+8|0;g=i;i=i+128|0;j=g;f=a+28|0;m=c[(c[f>>2]|0)+116>>2]|0;if((jd[c[(c[m>>2]|0)+12>>2]&511](m)|0)!=10){m=c[(c[f>>2]|0)+116>>2]|0;if((jd[c[(c[m>>2]|0)+44>>2]&511](m)|0)!=(d|0)){f=c[a+120>>2]|0;do{if((f|0)==0){f=-1}else{f=c[f+4>>2]|0;if((c[f+16>>2]|0)!=8){f=-1;break}f=c[f+24>>2]|0;f=jd[c[(c[f>>2]|0)+48>>2]&511](f)|0}}while(0);Qe(f,160648,l);i=e;return}NB(c[f>>2]|0,0);if((d|0)>0){k=0;do{m=c[b+(k<<4)>>2]|0;if((m+ -1|0)>>>0<2){l=b+(k<<4)+8|0;if((m|0)==1){n=+(c[l>>2]|0)}else{n=+h[l>>3]}c[j+(k<<2)>>2]=~~(n*65536.0)}else{c[j+(k<<2)>>2]=0}k=k+1|0;}while((k|0)<(d|0)&(k|0)<32)}$W((c[f>>2]|0)+124|0,g|0,128)|0;m=c[a+8>>2]|0;hd[c[(c[m>>2]|0)+140>>2]&127](m,c[f>>2]|0);i=e;return}a:do{if((d|0)>1){l=c[(c[(c[f>>2]|0)+116>>2]|0)+4>>2]|0;do{if((l|0)!=0){d=d+ -1|0;if((d|0)!=(jd[c[(c[l>>2]|0)+44>>2]&511](l)|0)){break}if((d|0)>0){k=0;do{m=c[b+(k<<4)>>2]|0;if((m+ -1|0)>>>0<2){l=b+(k<<4)+8|0;if((m|0)==1){n=+(c[l>>2]|0)}else{n=+h[l>>3]}c[j+(k<<2)>>2]=~~(n*65536.0)}else{c[j+(k<<2)>>2]=0}k=k+1|0;}while((k|0)<(d|0)&(k|0)<32)}$W((c[f>>2]|0)+124|0,g|0,128)|0;m=c[a+8>>2]|0;hd[c[(c[m>>2]|0)+140>>2]&127](m,c[f>>2]|0);break a}}while(0);f=c[a+120>>2]|0;do{if((f|0)==0){f=-1}else{f=c[f+4>>2]|0;if((c[f+16>>2]|0)!=8){f=-1;break}f=c[f+24>>2]|0;f=jd[c[(c[f>>2]|0)+48>>2]&511](f)|0}}while(0);Qe(f,160648,k);i=e;return}else{d=d+ -1|0}}while(0);if((c[b+(d<<4)>>2]|0)!=4){i=e;return}b=ox(c[a+20>>2]|0,c[b+(d<<4)+8>>2]|0,a)|0;if((b|0)==0){i=e;return}NB(c[f>>2]|0,b);i=e;return}function ix(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0.0,u=0,v=0.0,w=0.0,x=0.0;e=i;g=i;i=i+8|0;k=i;i=i+8|0;l=k;j=c[d>>2]|0;if((j|0)!=4){c[k>>2]=j;c[l+4>>2]=4;Qe(0,162256,l);tc()}m=px(c[b+20>>2]|0,c[d+8>>2]|0,b)|0;if((m|0)==0){i=e;return}l=b+28|0;d=c[(c[l>>2]|0)+588>>2]|0;j=FW(40)|0;tB(j,(a[d]&1)!=0,+h[d+8>>3],+h[d+16>>3],c[d+24>>2]|0,c[d+28>>2]|0,c[d+32>>2]|0);d=b+8|0;n=c[d>>2]|0;hd[c[(c[n>>2]|0)+80>>2]&127](n,c[l>>2]|0);n=XB(c[l>>2]|0)|0;c[l>>2]=n;k=b+32|0;c[k>>2]=(c[k>>2]|0)+1;if((a[m+176|0]&1)!=0){v=+h[m+144>>3];x=+h[m+152>>3];w=+h[m+160>>3];t=+h[m+168>>3];s=c[n+588>>2]|0;h[n+592>>3]=v;h[n+600>>3]=x;uB(s,v,x);s=c[l>>2]|0;n=c[s+588>>2]|0;h[s+592>>3]=w;h[s+600>>3]=x;vB(n,w,x);n=c[l>>2]|0;s=c[n+588>>2]|0;h[n+592>>3]=w;h[n+600>>3]=t;vB(s,w,t);s=c[l>>2]|0;n=c[s+588>>2]|0;h[s+592>>3]=v;h[s+600>>3]=t;vB(n,v,t);n=c[l>>2]|0;s=n+588|0;xB(c[s>>2]|0);s=c[s>>2]|0;u=s+28|0;s=s+24|0;r=c[(c[s>>2]|0)+((c[u>>2]|0)+ -1<<2)>>2]|0;h[n+592>>3]=+h[(c[r>>2]|0)+((c[r+12>>2]|0)+ -1<<3)>>3];u=c[(c[s>>2]|0)+((c[u>>2]|0)+ -1<<2)>>2]|0;h[n+600>>3]=+h[(c[u+4>>2]|0)+((c[u+12>>2]|0)+ -1<<3)>>3];TB(c[l>>2]|0);n=c[d>>2]|0;hd[c[(c[n>>2]|0)+256>>2]&127](n,c[l>>2]|0);SB(c[l>>2]|0);n=c[l>>2]|0}q=m+8|0;u=c[q>>2]|0;LB(n,jd[c[(c[u>>2]|0)+8>>2]&511](u)|0);n=c[d>>2]|0;hd[c[(c[n>>2]|0)+132>>2]&127](n,c[l>>2]|0);n=c[d>>2]|0;n=jd[c[(c[n>>2]|0)+404>>2]&511](n)|0;if(n){u=c[d>>2]|0;hd[c[(c[u>>2]|0)+408>>2]&127](u,0)}a:do{switch(c[m+4>>2]|0){case 1:{Fx(b,m);break};case 2:{Gx(b,m);break};case 3:{Hx(b,m);break};case 7:case 6:{o=m+184|0;p=c[o>>2]|0;do{if((p|0)>128){p=3}else{if((p|0)>64){p=2;break}p=(p|0)>16|0}}while(0);r=c[q>>2]|0;r=jd[c[(c[r>>2]|0)+44>>2]&511](r)|0;s=m+316|0;u=(c[s>>2]|0)>0;if(u){q=c[m+188>>2]|0;t=(+h[q+24>>3]- +h[q+16>>3])*.005}else{t=768.0}if((c[o>>2]|0)<=0){break a}q=m+180|0;Nx(b,c[q>>2]|0,r,u?1:r,t,p,m);if((c[o>>2]|0)>1){u=1}else{break a}do{Nx(b,(c[q>>2]|0)+(u*1280|0)|0,r,(c[s>>2]|0)>0?1:r,t,p,m);u=u+1|0;}while((u|0)<(c[o>>2]|0));break};case 5:case 4:{Ix(b,m);break};default:{}}}while(0);if(n){u=c[d>>2]|0;hd[c[(c[u>>2]|0)+408>>2]&127](u,1)}u=c[b+36>>2]|0;do{if((c[k>>2]|0)>(c[u+(((c[b+40>>2]|0)-u>>2)+ -1<<2)>>2]|0)){n=c[l>>2]|0;if((c[n+656>>2]|0)==0){f=25;break}u=YB(n)|0;c[l>>2]=u;s=c[d>>2]|0;hd[c[(c[s>>2]|0)+84>>2]&127](s,u);c[k>>2]=(c[k>>2]|0)+ -1}else{f=25}}while(0);if((f|0)==25){Qe(-1,162208,g);a[b+18|0]=1}GB(c[l>>2]|0,j);fd[c[(c[m>>2]|0)+4>>2]&511](m);i=e;return}function jx(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0.0,l=0,m=0,n=0.0,o=0,p=0,q=0.0,r=0,s=0,t=0,u=0.0,v=0,w=0.0,x=0.0;e=i;g=i;i=i+16|0;j=g;p=i;i=i+16|0;o=p;r=i;i=i+16|0;s=r;v=i;i=i+16|0;t=v;l=i;i=i+8|0;m=c[b+28>>2]|0;f=c[m+588>>2]|0;do{if((c[f+28>>2]|0)<=0){if((a[f]&1)!=0){break}f=c[b+120>>2]|0;do{if((f|0)==0){f=-1}else{f=c[f+4>>2]|0;if((c[f+16>>2]|0)!=8){f=-1;break}f=c[f+24>>2]|0;f=jd[c[(c[f>>2]|0)+48>>2]&511](f)|0}}while(0);Qe(f,160808,l);i=e;return}}while(0);l=m+592|0;k=+h[l>>3];m=m+600|0;n=+h[m>>3];b=c[d>>2]|0;if((b+ -1|0)>>>0>=2){c[v>>2]=b;c[t+4>>2]=1;c[t+8>>2]=2;Qe(0,162328,t);tc()}t=d+8|0;if((b|0)==1){q=+(c[t>>2]|0)}else{q=+h[t>>3]}t=c[d+16>>2]|0;if((t+ -1|0)>>>0>=2){c[r>>2]=t;c[s+4>>2]=1;c[s+8>>2]=2;Qe(0,162328,s);tc()}r=d+24|0;if((t|0)==1){u=+(c[r>>2]|0)}else{u=+h[r>>3]}r=c[d+32>>2]|0;if((r+ -1|0)>>>0>=2){c[p>>2]=r;c[o+4>>2]=1;c[o+8>>2]=2;Qe(0,162328,o);tc()}o=d+40|0;if((r|0)==1){w=+(c[o>>2]|0)}else{w=+h[o>>3]}o=c[d+48>>2]|0;if((o+ -1|0)>>>0>=2){c[g>>2]=o;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,162328,j);tc()}d=d+56|0;if((o|0)==1){x=+(c[d>>2]|0)}else{x=+h[d>>3]}h[l>>3]=w;h[m>>3]=x;wB(f,k,n,q,u,w,x);i=e;return}function kx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0.0;e=i;j=i;i=i+16|0;k=j;d=a+28|0;f=c[d>>2]|0;g=c[b>>2]|0;if((g+ -1|0)>>>0>=2){c[j>>2]=g;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}b=b+8|0;if((g|0)==1){l=+(c[b>>2]|0)}else{l=+h[b>>3]}h[f+432>>3]=l;k=c[a+8>>2]|0;hd[c[(c[k>>2]|0)+116>>2]&127](k,c[d>>2]|0);i=e;return}function lx(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0.0,o=0,p=0,q=0,r=0.0,s=0,t=0,u=0.0,v=0.0;e=i;j=i;i=i+16|0;k=j;l=i;i=i+16|0;m=l;o=i;i=i+16|0;p=o;s=i;i=i+16|0;t=s;q=i;i=i+8|0;f=c[b+28>>2]|0;g=c[f+588>>2]|0;do{if((c[g+28>>2]|0)<=0){if((a[g]&1)!=0){break}f=c[b+120>>2]|0;do{if((f|0)==0){f=-1}else{f=c[f+4>>2]|0;if((c[f+16>>2]|0)!=8){f=-1;break}f=c[f+24>>2]|0;f=jd[c[(c[f>>2]|0)+48>>2]&511](f)|0}}while(0);Qe(f,160840,q);i=e;return}}while(0);q=c[d>>2]|0;if((q+ -1|0)>>>0>=2){c[s>>2]=q;c[t+4>>2]=1;c[t+8>>2]=2;Qe(0,162328,t);tc()}s=d+8|0;if((q|0)==1){n=+(c[s>>2]|0)}else{n=+h[s>>3]}q=c[d+16>>2]|0;if((q+ -1|0)>>>0>=2){c[o>>2]=q;c[p+4>>2]=1;c[p+8>>2]=2;Qe(0,162328,p);tc()}o=d+24|0;if((q|0)==1){r=+(c[o>>2]|0)}else{r=+h[o>>3]}o=c[d+32>>2]|0;if((o+ -1|0)>>>0>=2){c[l>>2]=o;c[m+4>>2]=1;c[m+8>>2]=2;Qe(0,162328,m);tc()}l=d+40|0;if((o|0)==1){u=+(c[l>>2]|0)}else{u=+h[l>>3]}l=c[d+48>>2]|0;if((l+ -1|0)>>>0>=2){c[j>>2]=l;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}d=d+56|0;if((l|0)==1){v=+(c[d>>2]|0)}else{v=+h[d>>3]}h[f+592>>3]=u;h[f+600>>3]=v;wB(g,n,r,u,v,u,v);i=e;return}function mx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;t=i;m=i;i=i+8|0;l=m;v=i;i=i+16|0;j=v;w=i;i=i+16|0;u=w;r=i;i=i+8|0;p=r;f=a+8|0;c[f>>2]=13;F=a+16|0;c[F>>2]=0;D=F+4|0;c[D>>2]=0;q=a+24|0;c[q>>2]=13;x=a+32|0;c[x>>2]=0;y=x+4|0;c[y>>2]=0;n=a+40|0;c[n>>2]=13;z=a+48|0;c[z>>2]=0;A=z+4|0;c[A>>2]=0;k=a+56|0;c[k>>2]=13;B=a+64|0;c[B>>2]=0;C=B+4|0;c[C>>2]=0;h=a+72|0;c[h>>2]=13;E=a+80|0;c[E>>2]=0;G=E+4|0;c[G>>2]=0;rG(a+88|0,2,b);g=a+96|0;c[g>>2]=13;H=a+104|0;c[H>>2]=0;I=H+4|0;c[I>>2]=0;c[v>>2]=13;s=j+8|0;c[s>>2]=0;c[s+4>>2]=0;c[w>>2]=13;o=u+8|0;c[o>>2]=0;c[o+4>>2]=0;c[a>>2]=0;if((d|0)==0){c[F>>2]=0;c[D>>2]=0;c[f>>2]=5;c[x>>2]=0;c[y>>2]=0;c[q>>2]=5;c[z>>2]=0;c[A>>2]=0;c[n>>2]=5;c[B>>2]=0;c[C>>2]=0;c[k>>2]=5;c[E>>2]=0;c[G>>2]=0;c[h>>2]=5;c[H>>2]=0;c[I>>2]=0;c[g>>2]=5;I=a+112|0;c[I>>2]=e;i=t;return}Zu(d,159192,j)|0;x=c[v>>2]|0;if((x|0)==9){Nf(j,b,u,0)|0;do{if((c[w>>2]|0)==7){v=c[v>>2]|0;if((v|0)==9){G=s;H=c[G+4>>2]|0;I=r;c[I>>2]=c[G>>2];c[I+4>>2]=H;I=FW(8)|0;uy(I,b,p,c[o>>2]|0);c[a>>2]=I;break}else{c[m>>2]=v;c[l+4>>2]=9;Qe(0,162256,l);tc()}}}while(0);Of(u)}else if((x|0)==7){I=FW(8)|0;uy(I,b,0,c[s>>2]|0);c[a>>2]=I}Of(j);Yu(d,159200,f,0)|0;Yu(d,159208,q,0)|0;Yu(d,159224,n,0)|0;Yu(d,159232,k,0)|0;Yu(d,159240,h,0)|0;Yu(d,159256,g,0)|0;I=a+112|0;c[I>>2]=e;i=t;return}function nx(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)!=0){vy(d);HW(d)}Of(a+8|0);Of(a+24|0);Of(a+40|0);Of(a+56|0);Of(a+72|0);Of(a+96|0);sG(a+88|0);i=b;return}function ox(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;g=i;i=i+8|0;h=g;j=i;i=i+16|0;e=j;c[j>>2]=13;j=e+8|0;c[j>>2]=0;c[j+4>>2]=0;a:do{if((a|0)!=0){while(1){if((c[a+40>>2]|0)==7){if((c[(Yu(c[a+48>>2]|0,b,e,0)|0)>>2]|0)!=5){break}Of(e)}a=c[a+112>>2]|0;if((a|0)==0){break a}}j=vA(e,d)|0;Of(e);i=f;return j|0}}while(0);c[g>>2]=b;Qe(-1,159352,h);j=0;i=f;return j|0}function px(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;g=i;i=i+8|0;h=g;j=i;i=i+16|0;e=j;c[j>>2]=13;j=e+8|0;c[j>>2]=0;c[j+4>>2]=0;a:do{if((a|0)!=0){while(1){if((c[a+56>>2]|0)==7){if((c[(Yu(c[a+64>>2]|0,b,e,0)|0)>>2]|0)!=5){break}Of(e)}a=c[a+112>>2]|0;if((a|0)==0){break a}}j=BA(e,d)|0;Of(e);i=f;return j|0}}while(0);c[g>>2]=b;Qe(-1,159376,h);j=0;i=f;return j|0}function qx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;h=i;i=i+8|0;j=h;g=i;i=i+8|0;f=g;a:do{if((a|0)!=0){k=a;while(1){if((c[k+72>>2]|0)==7){if((c[(Zu(c[k+80>>2]|0,b,d)|0)>>2]|0)!=5){break}Of(d)}k=c[k+112>>2]|0;if((k|0)==0){break a}}if((c[d>>2]|0)!=9){k=1;i=e;return k|0}b=d+8|0;k=c[b+4>>2]|0;c[g>>2]=c[b>>2];c[g+4>>2]=k;g=a+88|0;if((c[(uG(g,f,d)|0)>>2]|0)!=5){k=1;i=e;return k|0}Of(d);Mf(tG(g,f)|0,d)|0;k=1;i=e;return k|0}}while(0);c[h>>2]=b;Qe(-1,159400,j);k=0;i=e;return k|0}function rx(b,d,e,f,g,j,k,l,m,n,o,p,q){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=+k;l=+l;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var r=0,s=0,t=0;r=i;c[b+36>>2]=0;s=b+40|0;c[s>>2]=0;t=b+44|0;c[t>>2]=0;c[b>>2]=d;c[b+4>>2]=j;a[b+12|0]=0;a[b+13|0]=(uf(c[834]|0)|0)&1;a[b+14|0]=(vf(c[834]|0)|0)&1;a[b+15|0]=0;a[b+16|0]=0;a[b+17|0]=0;c[b+116>>2]=0;c[b+120>>2]=0;d=FW(120)|0;mx(d,c[b>>2]|0,g,0);c[b+20>>2]=d;g=b+8|0;c[g>>2]=e;d=FWFW(56)|0;n=c[a>>2]|0;f=FW(168)|0;cE(f,n,b);aG(o,n,f,0);f=a+120|0;c[f>>2]=o;wx(a,d);a=c[f>>2]|0;if((a|0)!=0){bG(a);HW(a)}c[f>>2]=0;i=e;return}
7325 function zD(b,e,f,g,h,j,k,l,m,n,o){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0;p=i;w=i;i=i+8|0;E=i;i=i+8|0;K=i;i=i+8|0;I=i;i=i+8|0;J=I;R=i;i=i+8|0;P=i;i=i+8|0;S=P;O=i;i=i+8|0;U=i;i=i+8|0;x=U;y=i;i=i+8|0;T=y;M=i;i=i+8|0;N=M;G=i;i=i+8|0;H=G;C=i;i=i+8|0;B=C;F=i;i=i+8|0;D=F;Q=i;i=i+8|0;L=Q;A=i;i=i+8|0;z=A;V=i;i=i+8|0;W=i;i=i+8|0;q=FW;if(W>>>0>=1<<(c[u>>2]|0)+(c[w>>2]|0)>>>0){break}U=c[V>>2]|0}c[R+48>>2]=0;c[R+52>>2]=0;R=R+56|0;T=T+1|0;U=c[H>>2]|0;}while(T>>>0<U>>>0);S=c[M>>2]|0;T=U}Q=Q+1|0;}while(Q>>>0<S>>>0)}N=N+1|0;if(N>>>0>=F>>>0){break}O=c[G>>2]|0}C=C+1|0;P=c[s>>2]|0;}while(C>>>0<=P>>>0);t=t+1|0;if(t>>>0>=(c[j>>2]|0)>>>0){break c}u=c[q>>2]|0}}}while(0);Y=YD(d,g,k,h)|0;i=f;return Y|0}}}while(0);Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,184016,j);Y=0;i=f;return Y|0}function WD(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0.0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;f=i;g=d+84|0;k=c[(c[(c[g>>2]|0)+72>>2]|0)+16>>2]|0;h=c[d+40>>2]|0;l=h>>>5&7;h=(h&31|0)==0;if(h){j=0.0;m=l+ -1+((c[c[d+44>>2]>>2]|0)>>>3&31)|0}else{j=+((c[c[d+44>>2]>>2]&2047|2048)>>>0)*.00048828125;m=l+ -1+(c[d+4>>2]|0)|0}l=d+36|0;n=(c[l>>2]|0)==0?m+16|0:m;o=k+20|0;v=c[o>>2]|0;if((v|0)!=0){q=k+16|0;m=k+4|0;r=d+60|0;s=d+52|0;p=d+76|0;t=d+68|0;x=c[q>>2]|0;y=x;u=0;w=c[k+36>>2]|0;do{if((x|0)==0){x=0}else{v=0;while(1){B=c[w+4>>2]|0;x=w+12|0;C=c[x>>2]|0;if(B>>>0<C>>>0){y=w+8|0;z=w+28|0;F=c[y>>2]|0;A=c[w+44>>2]|0;while(1){D=da((c[r>>2]|0)-(c[s>>2]|0)|0,B-(c[m>>2]|0)|0)|0;E=c[w>>2]|0;D=(c[p>>2]|0)+(E-(c[k>>2]|0)+D<<2)|0;if(E>>>0<F>>>0){if(h){C=A;while(1){G=c[C+4>>2]|0;if((G|0)==0){F=0}else{F=n-(c[z>>2]|0)-(e[C+2>>1]|0)|0;if((F|0)>0){F=(1<<F+ -1)+(G<<F)|0}else{F=G>>0-F}F=(c[l>>2]|0)==0?F&-65536:F;F=(b[C>>1]&128)==0?F:0-F|0}c[D>>2]=F;E=E+1|0;F=c[y>>2]|0;if(E>>>0<F>>>0){C=C+8|0;D=D+4|0}else{break}}}else{C=A;while(1){G=c[C+4>>2]|0;if((G|0)==0){F=0}else{F=n-(c[z>>2]|0)-(e[C+2>>1]|0)|0;if((F|0)>0){F=(1<<F+ -1)+(G<<F)|0}else{F=G>>0-F}F=~~(j*+(F|0));F=(b[C>>1]&128)==0?F:0-F|0}c[D>>2]=F;E=E+1|0;F=c[y>>2]|0;if(E>>>0<F>>>0){C=C+8|0;D=D+4|0}else{break}}}C=c[x>>2]|0}B=B+1|0;if(B>>>0>=C>>>0){break}A=A+(c[t>>2]<<3)|0}x=c[q>>2]|0}else{x=y}w=w+56|0;v=v+1|0;if(v>>>0<x>>>0){y=x}else{break}}y=x;v=c[o>>2]|0}u=u+1|0;}while(u>>>0<v>>>0)}l=d+20|0;r=c[l>>2]|0;if((r|0)==0){i=f;return}n=d+52|0;k=d+56|0;m=d+60|0;h=d+64|0;p=1;while(1){q=c[g>>2]|0;o=p+1|0;if((p|0)==(r|0)){s=n;u=m;r=k;t=h}else{s=q+(o*76|0)+8|0;u=q+(o*76|0)+16|0;r=q+(o*76|0)+12|0;t=q+(o*76|0)+20|0}_D(a,d,p,q+(p*76|0)|0,c[s>>2]|0,c[r>>2]|0,c[u>>2]|0,c[t>>2]|0);r=c[l>>2]|0;if(o>>>0>r>>>0){break}else{p=o}}i=f;return}function XD(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0.0,w=0.0,x=0.0;e=i;b=b+168|0;do{if((c[d+8>>2]|0)==1){if((c[b>>2]|0)>>>0<3){u=0;i=e;return u|0}f=d+48|0;h=c[f>>2]|0;j=c[h+8>>2]|0;if((j|0)!=(c[h+96>>2]|0)){u=0;i=e;return u|0}g=c[h+12>>2]|0;if((g|0)!=(c[h+100>>2]|0)){u=0;i=e;return u|0}if((j|0)!=(c[h+184>>2]|0)){u=0;i=e;return u|0}if((g|0)!=(c[h+188>>2]|0)){u=0;i=e;return u|0}g=(c[h+64>>2]|0)==(c[h+56>>2]|0);if((c[h+36>>2]|0)==0){if(g){break}else{j=0;g=0}do{if((c[h+60>>2]|0)!=(c[h+52>>2]|0)){k=h;h=0;while(1){t=(c[k+76>>2]|0)+(j<<2)|0;u=c[(c[k+164>>2]|0)+(j<<2)>>2]|0;w=+(c[t>>2]|0);x=+(c[(c[k+252>>2]|0)+(j<<2)>>2]|0);c[t>>2]=~~(w+x*1.402+.5);v=+(u|0);c[(c[(c[f>>2]|0)+164>>2]|0)+(j<<2)>>2]=~~(w-v*.34413-x*.71414+.5);c[(c[(c[f>>2]|0)+252>>2]|0)+(j<<2)>>2]=~~(w+v*1.772+.5);j=j+1|0;h=h+1|0;k=c[f>>2]|0;if(h>>>0<((c[k+60>>2]|0)-(c[k+52>>2]|0)|0)>>>0){}else{h=k;break}}}g=g+1|0;}while(g>>>0<((c[h+64>>2]|0)-(c[h+56>>2]|0)|0)>>>0)}else{if(g){break}else{j=0;g=0}do{if((c[h+60>>2]|0)!=(c[h+52>>2]|0)){k=0;while(1){s=(c[h+164>>2]|0)+(j<<2)|0;u=c[s>>2]|0;t=c[(c[h+252>>2]|0)+(j<<2)>>2]|0;h=(c[(c[h+76>>2]|0)+(j<<2)>>2]|0)-(t+u>>2)|0;c[s>>2]=h;c[(c[(c[f>>2]|0)+76>>2]|0)+(j<<2)>>2]=h+t;c[(c[(c[f>>2]|0)+252>>2]|0)+(j<<2)>>2]=h+u;j=j+1|0;k=k+1|0;h=c[f>>2]|0;if(k>>>0<((c[h+60>>2]|0)-(c[h+52>>2]|0)|0)>>>0){}else{break}}}g=g+1|0;}while(g>>>0<((c[h+64>>2]|0)-(c[h+56>>2]|0)|0)>>>0)}}}while(0);if((c[b>>2]|0)==0){u=1;i=e;return u|0}d=d+48|0;f=0;while(1){o=c[d>>2]|0;h=c[o+(f*88|0)+4>>2]|0;do{if((a[o+(f*88|0)|0]&1)==0){g=(1<<h)+ -1|0;l=1<<h+ -1;k=o+(f*88|0)+64|0;r=c[k>>2]|0;j=o+(f*88|0)+56|0;p=c[j>>2]|0;if((r|0)==(p|0)){break}h=o+(f*88|0)+60|0;n=o+(f*88|0)+52|0;m=o+(f*88|0)+36|0;s=c[n>>2]|0;t=c[h>>2]|0;u=c[o+(f*88|0)+76>>2]|0;o=0;while(1){if((t|0)==(s|0)){q=s;t=s}else{p=0;while(1){q=c[u>>2]|0;q=((c[m>>2]|0)==0?q>>16:q)+l|0;if((q|0)<0){q=0}else{q=(q|0)>(g|0)?g:q}s=u+4|0;c[u>>2]=q;p=p+1|0;t=c[h>>2]|0;q=c[n>>2]|0;if(p>>>0<(t-q|0)>>>0){u=s}else{break}}p=c[j>>2]|0;r=c[k>>2]|0;u=s}o=o+1|0;if(o>>>0<(r-p|0)>>>0){s=q}else{break}}}else{h=1<<h+ -1;l=0-h|0;h=h+ -1|0;k=o+(f*88|0)+64|0;p=c[k>>2]|0;j=o+(f*88|0)+56|0;r=c[j>>2]|0;if((p|0)==(r|0)){break}m=o+(f*88|0)+60|0;n=o+(f*88|0)+52|0;g=o+(f*88|0)+36|0;s=c[n>>2]|0;t=c[m>>2]|0;u=c[o+(f*88|0)+76>>2]|0;o=0;while(1){if((t|0)==(s|0)){q=s;t=s}else{p=0;while(1){q=c[u>>2]|0;q=(c[g>>2]|0)==0?q>>16:q;if((q|0)<(l|0)){q=l}else{q=(q|0)>(h|0)?h:q}s=u+4|0;c[u>>2]=q;p=p+1|0;t=c[m>>2]|0;q=c[n>>2]|0;if(p>>>0<(t-q|0)>>>0){u=s}else{break}}r=c[j>>2]|0;p=c[k>>2]|0;u=s}o=o+1|0;if(o>>>0<(p-r|0)>>>0){s=q}else{break}}}}while(0);f=f+1|0;if(f>>>0>=(c[b>>2]|0)>>>0){b=1;break}}i=e;return b|0}function YD(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,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;g=i;j=i;i=i+8|0;x=c[b+180>>2]|0;o=f^1;if((e|0)==0&o){V=1;i=g;return V|0}l=x+(d*52|0)+32|0;s=x+(d*52|0)+48|0;q=x+(d*52|0)+36|0;t=x+(d*52|0)+40|0;r=b+188|0;u=b+192|0;v=b+196|0;f=b+8|0;w=b+184|0;k=x+(d*52|0)|0;m=b+168|0;p=x+(d*52|0)+28|0;n=x+(d*52|0)+44|0;x=x+(d*52|0)+4|0;A=c[q>>2]|0;a:while(1){z=c[l>>2]|0;V=c[s>>2]|0;d=V+(z*88|0)|0;y=c[t>>2]|0;z=c[(c[V+(z*88|0)+84>>2]|0)+(A*76|0)+72>>2]|0;c[r>>2]=0;a[u]=0;c[v>>2]=e;do{if((e|0)==0){break a}A=c[f>>2]|0;A=jd[c[(c[A>>2]|0)+20>>2]&511](A)|0;if((A|0)==-1){break a}e=(c[v>>2]|0)+ -1|0;c[v>>2]=e;B=c[w>>2]|0;if((a[u]&1)==0){B=B<<8|A&255;c[w>>2]=B;C=(c[r>>2]|0)+8|0}else{B=B<<7|A&127;c[w>>2]=B;C=(c[r>>2]|0)+7|0}c[r>>2]=C;a[u]=(A|0)==255|0;}while((C|0)<1);V=C+ -1|0;c[r>>2]=V;A=z+(y*20|0)+16|0;if((1<<V&B|0)==0){D=0;do{E=c[A>>2]|0;B=E+(D*40|0)+20|0;F=c[B>>2]|0;if((F|0)!=0){C=E+(D*40|0)+16|0;E=E+(D*40|0)+36|0;G=c[C>>2]|0;e=0;do{if((G|0)==0){G=0}else{F=0;do{V=(da(G,e)|0)+F|0;c[(c[E>>2]|0)+(V*56|0)+32>>2]=0;F=F+1|0;G=c[C>>2]|0;}while(F>>>0<G>>>0);F=c[B>>2]|0}e=e+1|0;}while(e>>>0<F>>>0)}D=D+1|0;}while(D>>>0<((c[q>>2]|0)==0?1:3)>>>0)}else{e=0;do{G=c[A>>2]|0;B=G+(e*40|0)+20|0;I=c[B>>2]|0;if((I|0)!=0){D=G+(e*40|0)+16|0;F=G+(e*40|0)+36|0;E=G+(e*40|0)+24|0;C=G+(e*40|0)+28|0;G=G+(e*40|0)+32|0;J=c[D>>2]|0;O=J;H=0;do{if((J|0)==0){J=0}else{I=0;while(1){K=(da(J,H)|0)+I|0;J=c[F>>2]|0;do{if((c[J+(K*56|0)>>2]|0)>>>0<(c[J+(K*56|0)+8>>2]|0)>>>0){if((c[J+(K*56|0)+4>>2]|0)>>>0>=(c[J+(K*56|0)+12>>2]|0)>>>0){h=23;break}L=J+(K*56|0)+16|0;if((a[L]&1)==0){N=c[E>>2]|0;b:do{if((N|0)>-1){M=0;R=0;while(1){Q=(1<<N)+ -1|0;P=(Q+O|0)>>>N;O=(Q+(c[B>>2]|0)|0)>>>N;Q=(I>>>N)+M+(da(P,H>>>N)|0)|0;U=c[C>>2]|0;T=a[U+(Q<<3)|0]|0;V=U+(Q<<3)+4|0;S=c[V>>2]|0;if((T&1)==0&(S|0)==0){c[V>>2]=R;U=c[C>>2]|0;T=a[U+(Q<<3)|0]|0}else{R=S}c:do{if((T&1)==0){do{while(1){if(R>>>0>(c[n>>2]|0)>>>0){break c}U=c[r>>2]|0;if((U|0)<1){S=c[v>>2]|0;while(1){if((S|0)==0){break a}T=c[f>>2]|0;T=jd[c[(c[T>>2]|0)+20>>2]&511](T)|0;if((T|0)==-1){break a}S=(c[v>>2]|0)+ -1|0;c[v>>2]=S;U=c[w>>2]|0;if((a[u]&1)==0){V=U<<8|T&255;c[w>>2]=V;U=(c[r>>2]|0)+8|0}else{V=U<<7|T&127;c[w>>2]=V;U=(c[r>>2]|0)+7|0}c[r>>2]=U;a[u]=(T|0)==255|0;if((U|0)>=1){S=V;break}}}else{S=c[w>>2]|0}V=U+ -1|0;c[r>>2]=V;if((1<<V&S|0)==0){break}a[(c[C>>2]|0)+(Q<<3)|0]=1;U=c[C>>2]|0;if((a[U+(Q<<3)|0]&1)!=0){break c}}R=R+1|0;U=c[C>>2]|0;}while((a[U+(Q<<3)|0]&1)==0)}}while(0);c[U+(Q<<3)+4>>2]=R;if(R>>>0>(c[n>>2]|0)>>>0){break b}Q=N+ -1|0;if((N|0)<=0){N=Q;break b}N=(da(O,P)|0)+M|0;O=c[D>>2]|0;M=N;N=Q}}}while(0);M=N>>>31;c[J+(K*56|0)+32>>2]=M}else{M=J+(K*56|0)+32|0;P=c[r>>2]|0;if((P|0)<1){O=c[v>>2]|0;do{if((O|0)==0){break a}N=c[f>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){break a}O=(c[v>>2]|0)+ -1|0;c[v>>2]=O;P=c[w>>2]|0;if((a[u]&1)==0){Q=P<<8|N&255;c[w>>2]=Q;P=(c[r>>2]|0)+8|0}else{Q=P<<7|N&127;c[w>>2]=Q;P=(c[r>>2]|0)+7|0}c[r>>2]=P;a[u]=(N|0)==255|0;}while((P|0)<1)}else{Q=c[w>>2]|0}c[M>>2]=Q>>>(P+ -1|0)&1;c[r>>2]=(c[r>>2]|0)+ -1;M=c[M>>2]|0}if((M|0)==0){break}if((a[L]&1)==0){L=c[E>>2]|0;if((L|0)>-1){M=0;Q=0;while(1){O=(1<<L)+ -1|0;N=(O+(c[D>>2]|0)|0)>>>L;O=(O+(c[B>>2]|0)|0)>>>L;P=(I>>>L)+M+(da(N,H>>>L)|0)|0;S=c[G>>2]|0;T=a[S+(P<<3)|0]|0;U=S+(P<<3)+4|0;R=c[U>>2]|0;if((T&1)==0&(R|0)==0){c[U>>2]=Q;S=c[G>>2]|0;T=a[S+(P<<3)|0]|0}else{Q=R}d:do{if((T&1)==0){do{while(1){R=c[r>>2]|0;if((R|0)<1){S=c[v>>2]|0;while(1){if((S|0)==0){break a}T=c[f>>2]|0;T=jd[c[(c[T>>2]|0)+20>>2]&511](T)|0;if((T|0)==-1){break a}S=(c[v>>2]|0)+ -1|0;c[v>>2]=S;R=c[w>>2]|0;if((a[u]&1)==0){U=R<<8|T&255;c[w>>2]=U;R=(c[r>>2]|0)+8|0}else{U=R<<7|T&127;c[w>>2]=U;R=(c[r>>2]|0)+7|0}c[r>>2]=R;a[u]=(T|0)==255|0;if((R|0)>=1){S=U;break}}}else{S=c[w>>2]|0}V=R+ -1|0;c[r>>2]=V;if((1<<V&S|0)==0){break}a[(c[G>>2]|0)+(P<<3)|0]=1;S=c[G>>2]|0;if((a[S+(P<<3)|0]&1)!=0){break d}}Q=Q+1|0;S=c[G>>2]|0;}while((a[S+(P<<3)|0]&1)==0)}}while(0);c[S+(P<<3)+4>>2]=Q;M=(da(O,N)|0)+M|0;if((L|0)>0){L=L+ -1|0}else{break}}}else{Q=0}c[J+(K*56|0)+28>>2]=Q}N=c[r>>2]|0;if((N|0)<1){N=c[v>>2]|0;while(1){if((N|0)==0){break a}M=c[f>>2]|0;M=jd[c[(c[M>>2]|0)+20>>2]&511](M)|0;if((M|0)==-1){break a}N=(c[v>>2]|0)+ -1|0;c[v>>2]=N;L=c[w>>2]|0;if((a[u]&1)==0){L=L<<8|M&255;c[w>>2]=L;O=(c[r>>2]|0)+8|0}else{L=L<<7|M&127;c[w>>2]=L;O=(c[r>>2]|0)+7|0}c[r>>2]=O;a[u]=(M|0)==255|0;if((O|0)>=1){N=O;break}}}else{L=c[w>>2]|0}M=N+ -1|0;c[r>>2]=M;do{if((1<<M&L|0)==0){c[J+(K*56|0)+36>>2]=1}else{if((N|0)<2){M=c[v>>2]|0;while(1){if((M|0)==0){break a}N=c[f>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){break a}M=(c[v>>2]|0)+ -1|0;c[v>>2]=M;L=c[w>>2]|0;if((a[u]&1)==0){L=L<<8|N&255;c[w>>2]=L;O=(c[r>>2]|0)+8|0}else{L=L<<7|N&127;c[w>>2]=L;O=(c[r>>2]|0)+7|0}c[r>>2]=O;a[u]=(N|0)==255|0;if((O|0)>=1){M=O;break}}}N=M+ -1|0;c[r>>2]=N;if((1<<N&L|0)==0){c[J+(K*56|0)+36>>2]=2;break}if((M|0)<3){M=c[v>>2]|0;while(1){if((M|0)==0){break a}N=c[f>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){break a}M=(c[v>>2]|0)+ -1|0;c[v>>2]=M;L=c[w>>2]|0;if((a[u]&1)==0){L=L<<8|N&255;c[w>>2]=L;O=(c[r>>2]|0)+8|0}else{L=L<<7|N&127;c[w>>2]=L;O=(c[r>>2]|0)+7|0}c[r>>2]=O;a[u]=(N|0)==255|0;if((O|0)>=2){M=O;break}}}else{M=N}O=M+ -2|0;M=L>>>O&3;c[r>>2]=O;if((M|0)!=3){c[J+(K*56|0)+36>>2]=M+3;break}if((O|0)<5){M=c[v>>2]|0;do{if((M|0)==0){break a}L=c[f>>2]|0;L=jd[c[(c[L>>2]|0)+20>>2]&511](L)|0;if((L|0)==-1){break a}M=(c[v>>2]|0)+ -1|0;c[v>>2]=M;N=c[w>>2]|0;if((a[u]&1)==0){N=N<<8|L&255;c[w>>2]=N;O=(c[r>>2]|0)+8|0}else{N=N<<7|L&127;c[w>>2]=N;O=(c[r>>2]|0)+7|0}c[r>>2]=O;a[u]=(L|0)==255|0;}while((O|0)<5)}else{N=L}L=O+ -5|0;M=N>>>L&31;c[r>>2]=L;if((M|0)!=31){c[J+(K*56|0)+36>>2]=M+6;break}if((L|0)<7){M=c[v>>2]|0;while(1){if((M|0)==0){break a}N=c[f>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){break a}M=(c[v>>2]|0)+ -1|0;c[v>>2]=M;L=c[w>>2]|0;if((a[u]&1)==0){O=L<<8|N&255;c[w>>2]=O;L=(c[r>>2]|0)+8|0}else{O=L<<7|N&127;c[w>>2]=O;L=(c[r>>2]|0)+7|0}c[r>>2]=L;a[u]=(N|0)==255|0;if((L|0)>=7){N=O;break}}}V=L+ -7|0;c[r>>2]=V;c[J+(K*56|0)+36>>2]=(N>>>V&127)+37}}while(0);M=J+(K*56|0)+20|0;while(1){O=c[r>>2]|0;if((O|0)<1){L=c[v>>2]|0;do{if((L|0)==0){break a}N=c[f>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){break a}L=(c[v>>2]|0)+ -1|0;c[v>>2]=L;O=c[w>>2]|0;if((a[u]&1)==0){P=O<<8|N&255;c[w>>2]=P;O=(c[r>>2]|0)+8|0}else{P=O<<7|N&127;c[w>>2]=P;O=(c[r>>2]|0)+7|0}c[r>>2]=O;a[u]=(N|0)==255|0;}while((O|0)<1)}else{P=c[w>>2]|0}N=O+ -1|0;c[r>>2]=N;L=c[M>>2]|0;if((1<<N&P|0)==0){break}c[M>>2]=L+1}M=c[J+(K*56|0)+36>>2]|0;while(1){M=M>>>1;if((M|0)==0){break}else{L=L+1|0}}J=J+(K*56|0)+40|0;if((O|0)<=(L|0)){K=c[v>>2]|0;do{if((K|0)==0){break a}M=c[f>>2]|0;M=jd[c[(c[M>>2]|0)+20>>2]&511](M)|0;if((M|0)==-1){break a}K=(c[v>>2]|0)+ -1|0;c[v>>2]=K;N=c[w>>2]|0;if((a[u]&1)==0){P=N<<8|M&255;c[w>>2]=P;N=(c[r>>2]|0)+8|0}else{P=N<<7|M&127;c[w>>2]=P;N=(c[r>>2]|0)+7|0}c[r>>2]=N;a[u]=(M|0)==255|0;}while((N|0)<(L|0))}c[J>>2]=P>>>(N-L|0)&(1<<L)+ -1;c[r>>2]=(c[r>>2]|0)-L}else{h=23}}while(0);if((h|0)==23){h=0;c[J+(K*56|0)+32>>2]=0}I=I+1|0;J=c[D>>2]|0;if(I>>>0<J>>>0){O=J}else{break}}O=J;I=c[B>>2]|0}H=H+1|0;}while(H>>>0<I>>>0)}e=e+1|0;}while(e>>>0<((c[q>>2]|0)==0?1:3)>>>0)}if((a[u]&1)==0){e=c[v>>2]|0}else{e=c[f>>2]|0;jd[c[(c[e>>2]|0)+20>>2]&511](e)|0;e=(c[v>>2]|0)+ -1|0;c[v>>2]=e}y=z+(y*20|0)+16|0;z=0;do{C=c[y>>2]|0;B=C+(z*40|0)+20|0;F=c[B>>2]|0;if((F|0)!=0){A=C+(z*40|0)+16|0;C=C+(z*40|0)+36|0;G=c[A>>2]|0;E=G;D=0;do{if((G|0)==0){G=0}else{F=0;while(1){H=(da(G,D)|0)+F|0;G=c[C>>2]|0;if((c[G+(H*56|0)+32>>2]|0)==0){G=E}else{ZD(b,d,0,0,0,c[q>>2]|0,z,G+(H*56|0)|0)|0;e=e-(c[G+(H*56|0)+40>>2]|0)|0;a[G+(H*56|0)+16|0]=1;G=c[A>>2]|0}F=F+1|0;if(F>>>0<G>>>0){E=G}else{break}}E=G;F=c[B>>2]|0}D=D+1|0;}while(D>>>0<F>>>0)}z=z+1|0;A=c[q>>2]|0;}while(z>>>0<((A|0)==0?1:3)>>>0);e:do{switch(c[k>>2]|0){case 0:{V=(c[l>>2]|0)+1|0;c[l>>2]=V;if((V|0)!=(c[m>>2]|0)){break e}c[l>>2]=0;d=A+1|0;c[q>>2]=d;if((A|0)!=(c[p>>2]|0)){A=d;break e}c[q>>2]=0;d=(c[n>>2]|0)+1|0;c[n>>2]=(d|0)==(c[x>>2]|0)?0:d;A=0;break};case 1:{V=(c[l>>2]|0)+1|0;c[l>>2]=V;if((V|0)!=(c[m>>2]|0)){break e}c[l>>2]=0;V=(c[n>>2]|0)+1|0;c[n>>2]=V;if((V|0)!=(c[x>>2]|0)){break e}c[n>>2]=0;A=(A|0)==(c[p>>2]|0)?0:A+1|0;c[q>>2]=A;break};case 2:{V=(c[n>>2]|0)+1|0;c[n>>2]=V;if((V|0)!=(c[x>>2]|0)){break e}c[n>>2]=0;V=(c[l>>2]|0)+1|0;c[l>>2]=V;if((V|0)!=(c[m>>2]|0)){break e}c[l>>2]=0;A=(A|0)==(c[p>>2]|0)?0:A+1|0;c[q>>2]=A;break};case 3:{V=(c[n>>2]|0)+1|0;c[n>>2]=V;if((V|0)!=(c[x>>2]|0)){break e}c[n>>2]=0;d=A+1|0;c[q>>2]=d;if((A|0)!=(c[p>>2]|0)){A=d;break e}c[q>>2]=0;d=(c[l>>2]|0)+1|0;c[l>>2]=d;c[l>>2]=(d|0)==(c[m>>2]|0)?0:d;A=0;break};case 4:{V=(c[n>>2]|0)+1|0;c[n>>2]=V;if((V|0)!=(c[x>>2]|0)){break e}c[n>>2]=0;d=A+1|0;c[q>>2]=d;if((A|0)!=(c[p>>2]|0)){A=d;break e}c[q>>2]=0;d=(c[l>>2]|0)+1|0;c[l>>2]=d;c[l>>2]=(d|0)==(c[m>>2]|0)?0:d;A=0;break};default:{}}}while(0);if((e|0)==0&o){b=1;h=186;break}}if((h|0)==186){i=g;return b|0}Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,184248,j);V=0;i=g;return V|0}function ZD(d,f,g,h,j,k,l,m){d=d|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,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;g=i;h=m+48|0;j=c[h>>2]|0;if((j|0)==0){H=FW(36)|0;CI(H);c[h>>2]=H;I=c[m+40>>2]|0;c[H+24>>2]=c[d+8>>2];c[H+28>>2]=I;a[H+32|0]=1;FI(H);H=FWFW(20)|0;rt(d,c[m>>2]|0);c[b+4>>2]=d;tt(d,Mf(k,l)|0);c[b+8>>2]=0;a[b+32|0]=1;b=c[k>>2]|0;if((b|0)==8){m=c[g>>2]|0;fd[c[(c[m>>2]|0)+12>>2]&511](m);i=f;return}else{c[j>>2]=b;c[h+4>>2]=8;Qe(0,185712,h);tc()}}function cE(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=i;g=i;i=i+8|0;h=g;n=i;i=i+8|0;o=n;k=i;i=i+16|0;m=k;l=b+16|0;c[l>>2]=13;f=b+24|0;c[f>>2]=0;c[f+4>>2]=0;c[k>>2]=13;k=m+8|0;c[k>>2]=0;c[k+4>>2]=0;c[b>>2]=-3;c[b+164>>2]=d;k=c[e>>2]|0;if((k|0)==6){p=c[e+8>>2]|0;c[b+4>>2]=p;a[b+32|0]=0}else if((k|0)==8){o=FW(20)|0;rt(o,d);p=b+4|0;c[p>>2]=o;a[b+32|0]=1;tt(o,Mf(e,m)|0);p=c[p>>2]|0}else{c[n>>2]=k;c[o+4>>2]=6;Qe(0,185712,o);tc()}c[b+8>>2]=0;if((c[p+12>>2]|0)<=0){i=j;return}ut(p,0,l)|0;k=c[l>>2]|0;if((k|0)!=8){c[g>>2]=k;c[h+4>>2]=8;Qe(0,185712,h);tc()}p=c[f>>2]|0;fd[c[(c[p>>2]|0)+12>>2]&511](p);i=j;return}function dE(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;g=i;i=i+8|0;h=g;e=b+16|0;f=c[e>>2]|0;if((f|0)==8){h=c[b+24>>2]|0;fd[c[(c[h>>2]|0)+16>>2]&511](h);Of(e)}else if((f|0)!=13){c[g>>2]=f;c[h+4>>2]=8;Qe(0,185712,h);tc()}if((a[b+32|0]&1)==0){i=d;return}b=c[b+4>>2]|0;if((b|0)==0){i=d;return}st(b);HW(b);i=d;return}function eE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=i;k=i;i=i+8|0;g=k;h=i;i=i+8|0;j=h;e=i;i=i+8|0;d=e;l=c[a>>2]|0;if((l|0)!=-3){c[a>>2]=-3;o=l;i=f;return o|0}n=a+16|0;m=a+24|0;l=a+8|0;a=a+4|0;if(b){b=c[n>>2]|0;if((b|0)==8){o=c[m>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;i=f;return o|0}else if((b|0)==13){o=-1;i=f;return o|0}else{o=e;c[o>>2]=b;o=d+4|0;c[o>>2]=8;o=185712;Qe(0,o,d);tc()}}while(1){b=c[n>>2]|0;if((b|0)==13){b=-1;l=15;break}else if((b|0)!=8){l=7;break}b=c[m>>2]|0;b=jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;if((b|0)!=-1){l=15;break}b=c[n>>2]|0;if((b|0)!=8){l=10;break}b=c[m>>2]|0;fd[c[(c[b>>2]|0)+16>>2]&511](b);Of(n);b=(c[l>>2]|0)+1|0;c[l>>2]=b;o=c[a>>2]|0;if((b|0)>=(c[o+12>>2]|0)){continue}ut(o,b,n)|0;b=c[n>>2]|0;if((b|0)!=8){l=13;break}o=c[m>>2]|0;fd[c[(c[o>>2]|0)+12>>2]&511](o)}if((l|0)==7){o=e;c[o>>2]=b;o=d+4|0;c[o>>2]=8;o=185712;Qe(0,o,d);tc()}else if((l|0)==10){c[h>>2]=b;c[j+4>>2]=8;Qe(0,185712,j);tc()}else if((l|0)==13){c[k>>2]=b;c[g+4>>2]=8;Qe(0,185712,g);tc()}else if((l|0)==15){i=f;return b|0}return 0}function fE(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0.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.0,ba=0.0,ca=0.0,da=0.0,ea=0.0;f=i;P=i;i=i+8|0;R=i;i=i+8|0;Q=R;_=i;i=i+8|0;$=_;S=i;i=i+8|0;T=i;i=i+8|0;Z=T;O=i;i=i+8|0;N=O;M=i;i=i+8|0;W=i;i=i+8|0;V=W;J=i;i=i+8|0;H=i;i=i+8|0;L=i;i=i+8|0;K=i;i=i+8|0;E=K;F=i;i=i+8|0;G=F;j=i;i=i+8|0;o=i;i=i+8|0;m=o;k=i;i=i+8|0;w=i;i=i+8|0;t=w;u=i;i=i+8|0;v=u;s=i;i=i+8|0;r=s;l=i;i=i+8|0;n=i;i=i+8|0;p=i;i=i+8|0;q=p;D=i;i=i+8|0;C=D;a:while(1){Y=eE(b,0)|0;if((Y|0)==37){while(1){Y=eE(b,0)|0;if((Y|0)==10|(Y|0)==13){continue a}else if((Y|0)==-1){g=4;break a}}}else if((Y|0)==-1){g=4;break}else{if((a[185104+Y|0]|0)==1){continue}else{break}}}if((g|0)==4){$=d+8|0;c[$>>2]=0;c[$+4>>2]=0;c[d>>2]=12;i=f;return d|0}switch(Y|0){case 40:{n=b+33|0;y=b+16|0;x=b+24|0;q=(e|0)>0;p=b+164|0;A=0;D=1;C=n;z=0;b:while(1){c:while(1){d:while(1){F=eE(b,0)|0;E=F&255;if((F|0)==40){g=64;break c}else if((F|0)==-1){g=61;break b}else if((F|0)==41){g=65;break}else if((F|0)!=92){F=0;g=96;break c}E=eE(b,0)|0;switch(E|0){case 102:{g=69;break c};case 110:{E=10;F=0;g=96;break c};case 13:{break};case 116:{g=67;break c};case 98:{g=68;break c};case 10:{continue d};case 114:{E=13;F=0;break c};case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{g=71;break d};case 41:case 40:case 92:{g=70;break c};case-1:{g=91;break b};default:{F=0;break d}}E=c[b>>2]|0;if((E|0)==-3){E=c[y>>2]|0;if((E|0)==8){E=c[x>>2]|0;E=jd[c[(c[E>>2]|0)+20>>2]&511](E)|0}else if((E|0)==13){E=-1}else{g=87;break b}c[b>>2]=(E|0)==-1?-3:E}if((E|0)!=10){continue}eE(b,0)|0}do{if((g|0)==65){g=0;D=D+ -1|0;F=(D|0)==0;E=F?-1:41}else if((g|0)==71){g=0;E=E+ -48|0;F=c[b>>2]|0;if((F|0)==-3){F=c[y>>2]|0;if((F|0)==13){F=-1}else if((F|0)==8){F=c[x>>2]|0;F=jd[c[(c[F>>2]|0)+20>>2]&511](F)|0}else{g=74;break b}c[b>>2]=(F|0)==-1?-3:F}if((F+ -48|0)>>>0>=8){F=0;break}eE(b,0)|0;E=(E<<3)+ -48+F|0;F=c[b>>2]|0;if((F|0)==-3){F=c[y>>2]|0;if((F|0)==8){F=c[x>>2]|0;F=jd[c[(c[F>>2]|0)+20>>2]&511](F)|0}else if((F|0)==13){F=-1}else{g=80;break b}c[b>>2]=(F|0)==-1?-3:F}if((F+ -48|0)>>>0>=8){F=0;break}eE(b,0)|0;E=(E<<3)+ -48+F|0;F=0}}while(0);if((E|0)!=-1){g=95;break}if(F){g=113;break b}}if((g|0)==64){g=0;E=40;F=0;D=D+1|0}else if((g|0)==67){g=0;E=9;F=0}else if((g|0)==68){g=0;E=8;F=0}else if((g|0)==69){g=0;E=12;F=0}else if((g|0)==70){g=0;E=E&255;F=0}else if((g|0)==95){E=E&255;g=96}if((g|0)==96){g=0}do{if((A|0)==128){if((z|0)==0){z=FW(32)|0;ge(z,n,128)}else{ne(z,n,128)|0}if(!q){A=0;C=n;break}A=c[p>>2]|0;if((A|0)==0){A=0;C=n;break}C=c[y>>2]|0;if((C|0)!=8){g=104;break b}$=c[x>>2]|0;if((nn(A,jd[c[(c[$>>2]|0)+48>>2]&511]($)|0)|0)==(e|0)){A=0;C=n}else{g=106;break b}}}while(0);a[C]=E;A=A+1|0;if(F){g=113;break}else{C=C+1|0}}if((g|0)==61){if((c[y>>2]|0)==8){b=c[x>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}else{b=-1}Qe(b,185384,l);g=113}else if((g|0)==74){c[s>>2]=F;c[r+4>>2]=8;Qe(0,185712,r);tc()}else if((g|0)==80){c[u>>2]=F;c[v+4>>2]=8;Qe(0,185712,v);tc()}else if((g|0)==87){c[w>>2]=E;c[t+4>>2]=8;Qe(0,185712,t);tc()}else if((g|0)==91){if((c[y>>2]|0)==8){b=c[x>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}else{b=-1}Qe(b,185384,k);g=113}else if((g|0)==104){c[o>>2]=C;c[m+4>>2]=8;Qe(0,185712,m);tc()}else if((g|0)==106){if((c[y>>2]|0)==8){b=c[x>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}else{b=-1}Qe(b,185384,j);if((z|0)!=0){ke(z);HW(z)}a[n]=E}do{if((g|0)==113){if((A|0)<=-1){break}if((z|0)==0){z=FWFW(32)|0;ge(k,j,128);n=0;l=j}a[l]=o;n=n+1|0;l=l+1|0}do{if((g|0)==123){c[F>>2]=o;c[G+4>>2]=8;Qe(0,185712,G);tc()}else if((g|0)==131){c[K>>2]=e;c[E+4>>2]=8;Qe(0,185712,E);tc()}else if((g|0)==152){Qe(n,185528,J);a[l]=0;I=128}else if((g|0)==154){a[l]=0;if((k|0)!=0){I=n;break}$=d+8|0;c[$>>2]=0;c[$+4>>2]=0;c[d>>2]=4;c[$>>2]=Ge(j)|0;i=f;return d|0}}while(0);ne(k,j,I)|0;_=c[k+28>>2]|0;$=d+8|0;c[$>>2]=0;c[$+4>>2]=0;c[d>>2]=4;c[$>>2]=Ge(_)|0;ke(k);HW(k);i=f;return d|0};case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:case 43:{j=0;e=(Y|0)==43?0:Y+ -48|0;g=9;break};case 62:{g=c[b>>2]|0;if((g|0)==-3){g=c[b+16>>2]|0;if((g|0)==8){U=c[b+24>>2]|0;U=jd[c[(c[U>>2]|0)+20>>2]&511](U)|0}else if((g|0)==13){U=-1}else{c[T>>2]=g;c[Z+4>>2]=8;Qe(0,185712,Z);tc()}c[b>>2]=(U|0)==-1?-3:U}else{U=g}if((U|0)==62){eE(b,0)|0;a[b+34|0]=62;_=b+33|0;a[_]=62;a[b+35|0]=0;$=d+8|0;c[$>>2]=0;c[$+4>>2]=0;c[d>>2]=10;c[$>>2]=Ge(_)|0;i=f;return d|0}if((c[b+16>>2]|0)==8){b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}else{b=-1}Qe(b,185616,S);$=d+8|0;c[$>>2]=0;c[$+4>>2]=0;c[d>>2]=11;i=f;return d|0};case 46:{y=b+16|0;z=b+24|0;x=b;A=0;e=0;g=39;break};case 41:case 123:case 125:{if((c[b+16>>2]|0)==8){b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}else{b=-1}c[_>>2]=Y;Qe(b,185640,$);$=d+8|0;c[$>>2]=0;c[$+4>>2]=0;c[d>>2]=11;i=f;return d|0};case 60:{j=c[b>>2]|0;if((j|0)==-3){j=c[b+16>>2]|0;if((j|0)==8){X=c[b+24>>2]|0;X=jd[c[(c[X>>2]|0)+20>>2]&511](X)|0}else if((j|0)==13){X=-1}else{c[W>>2]=j;c[V+4>>2]=8;Qe(0,185712,V);tc()}c[b>>2]=(X|0)==-1?-3:X}else{X=j}if((X|0)==60){eE(b,0)|0;a[b+34|0]=60;_=b+33|0;a[_]=60;a[b+35|0]=0;$=d+8|0;c[$>>2]=0;c[$+4>>2]=0;c[d>>2]=10;c[$>>2]=Ge(_)|0;i=f;return d|0}j=b+33|0;l=b+16|0;k=b+24|0;m=0;o=j;n=0;g:while(1){p=0;e=0;do{do{q=eE(b,0)|0;if((q|0)==62){break g}else if((q|0)==-1){g=169;break g}}while((a[185104+q|0]|0)==1);p=p<<4;do{if((q+ -48|0)>>>0<10){p=p+ -48+q|0}else{if((q+ -65|0)>>>0<6){p=p+ -55+q|0;break}if((q+ -97|0)>>>0<6){p=p+ -87+q|0;break}if((c[l>>2]|0)==8){r=c[k>>2]|0;r=jd[c[(c[r>>2]|0)+48>>2]&511](r)|0}else{r=-1}c[O>>2]=q;Qe(r,185576,N)}}while(0);e=e+1|0;}while((e|0)!=2);do{if((m|0)==128){if((n|0)==0){n=FW(32)|0;ge(n,j,128);m=0;o=j;break}else{ne(n,j,128)|0;m=0;o=j;break}}}while(0);a[o]=p;m=m+1|0;o=o+1|0}if((g|0)==169){if((c[l>>2]|0)==8){b=c[k>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}else{b=-1}Qe(b,185552,M)}if((n|0)==0){n=FW(32)|0;ge(n,j,m)}else{ne(n,j,m)|0}if((e|0)==1){me(n,p<<4&255)|0}$=d+8|0;c[$+4>>2]=0;c[d>>2]=3;c[$>>2]=n;i=f;return d|0};case 91:case 93:{_=b+33|0;a[_]=Y;a[b+34|0]=0;$=d+8|0;c[$>>2]=0;c[$+4>>2]=0;c[d>>2]=10;c[$>>2]=Ge(_)|0;i=f;return d|0};case 45:{j=1;e=0;g=9;break};default:{j=b+33|0;a[j]=Y;m=b+16|0;n=b+24|0;l=2;k=b+34|0;while(1){o=c[b>>2]|0;if((o|0)==-3){o=c[m>>2]|0;if((o|0)==13){o=-1}else if((o|0)==8){o=c[n>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0}else{g=211;break}c[b>>2]=(o|0)==-1?-3:o}if((o|0)==-1){break}if((a[185104+o|0]|0)!=0){break}eE(b,0)|0;if((l|0)==128){g=216;break}a[k]=o;l=l+1|0;k=k+1|0}if((g|0)==211){c[R>>2]=o;c[Q+4>>2]=8;Qe(0,185712,Q);tc()}if((g|0)==216){if((c[m>>2]|0)==8){b=c[n>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}else{b=-1}Qe(b,185664,P)}a[k]=0;b=a[j]|0;do{if(b<<24>>24==110){if((Qc(j|0,185704)|0)!=0){break}$=d+8|0;c[$>>2]=0;c[$+4>>2]=0;c[d>>2]=5;i=f;return d|0}else if(b<<24>>24==102){if((Qc(j|0,185696)|0)!=0){break}$=d+8|0;c[$>>2]=0;c[$+4>>2]=0;c[d>>2]=0;a[$]=0;i=f;return d|0}else if(b<<24>>24==116){if((Qc(j|0,185688)|0)!=0){break}$=d+8|0;c[$>>2]=0;c[$+4>>2]=0;c[d>>2]=0;a[$]=1;i=f;return d|0}}while(0);$=d+8|0;c[$>>2]=0;c[$+4>>2]=0;c[d>>2]=10;c[$>>2]=Ge(j)|0;i=f;return d|0}}do{if((g|0)==9){l=b+16|0;k=b+24|0;r=0;o=0;ca=0.0;m=0;h:while(1){aa=+(m>>>0);ba=aa*10.0;while(1){while(1){if(!r){break}s=c[b>>2]|0;if((s|0)==-3){s=c[l>>2]|0;if((s|0)==13){s=-1}else if((s|0)==8){s=c[k>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0}else{g=21;break h}c[b>>2]=(s|0)==-1?-3:s}if((s+ -48|0)>>>0>=10){r=1;g=32;break h}eE(b,0)|0;if(o){g=25;break}o=1;ca=ba+ +(s+ -48|0)}if((g|0)==25){g=0;r=1;o=1;ca=ca*10.0+ +(s+ -48|0);continue}while(1){s=c[b>>2]|0;if((s|0)==-3){s=c[l>>2]|0;if((s|0)==13){s=-1}else if((s|0)==8){s=c[k>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0}else{g=21;break h}c[b>>2]=(s|0)==-1?-3:s}if((s+ -48|0)>>>0>=10){r=0;g=32;break h}eE(b,0)|0;if((e|0)>214748363){ea=+(e|0);if(ea>+(-2147483601-s|0)/10.0){break}}e=(e*10|0)+ -48+s|0}da=ea*10.0+ +(s+ -48|0);if(ea>+((47-s|0)>>>0)/10.0){r=1;o=1;ca=da}else{break}}r=1;m=~~da>>>0}if((g|0)==21){c[D>>2]=s;c[C+4>>2]=8;Qe(0,185712,C);tc()}else if((g|0)==32){if((s|0)==46){eE(b,0)|0;if(!r){y=l;z=k;x=b;A=j;g=39;break}x=b;y=l;z=k;A=j;B=o?ca:aa;break}b=d+8|0;if(!r){c[b+4>>2]=0;c[d>>2]=1;c[b>>2]=j?0-e|0:e;i=f;return d|0}if(o){c[b>>2]=0;c[b+4>>2]=0;c[d>>2]=11;i=f;return d|0}else{c[b+4>>2]=0;c[d>>2]=14;c[b>>2]=m;i=f;return d|0}}}}while(0);if((g|0)==39){B=+(e|0)}aa=.1;i:while(1){while(1){j=c[x>>2]|0;if((j|0)==-3){j=c[y>>2]|0;if((j|0)==13){j=-1}else if((j|0)==8){j=c[z>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0}else{g=46;break i}c[x>>2]=(j|0)==-1?-3:j}if((j|0)!=45){break}if((c[y>>2]|0)==8){j=c[z>>2]|0;j=jd[c[(c[j>>2]|0)+48>>2]&511](j)|0}else{j=-1}Qe(j,185360,n);eE(b,0)|0}j=j+ -48|0;if(j>>>0>=10){break}eE(b,0)|0;ea=B+aa*+(j|0);aa=aa*.1;B=ea}if((g|0)==46){c[p>>2]=j;c[q+4>>2]=8;Qe(0,185712,q);tc()}if(A){B=-0.0-B}c[d>>2]=2;h[d+8>>3]=B;i=f;return d|0}function gE(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;d=i;i=i+8|0;e=d;while(1){h=eE(a,0)|0;if((h|0)==13){break}else if((h|0)==10|(h|0)==-1){g=10;break}}if((g|0)==10){i=b;return}g=c[a>>2]|0;if((g|0)==-3){g=c[a+16>>2]|0;if((g|0)==8){f=c[a+24>>2]|0;f=jd[c[(c[f>>2]|0)+20>>2]&511](f)|0}else if((g|0)==13){f=-1}else{c[d>>2]=g;c[e+4>>2]=8;Qe(0,185712,e);tc()}c[a>>2]=(f|0)==-1?-3:f}else{f=g}if((f|0)!=10){i=b;return}eE(a,0)|0;i=b;return}function hE(b){b=b|0;var c=0;c=i;if(b>>>0>=256){b=0;i=c;return b|0}b=(a[185104+b|0]|0)==1;i=c;return b|0}function iE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0.0,u=0,v=0,w=0,x=0;n=i;u=i;i=i+16|0;k=u;s=i;i=i+16|0;j=s;r=i;i=i+16|0;g=r;p=i;i=i+16|0;l=p;m=a+8|0;d=m+4|0;c[u>>2]=13;v=k+8|0;c[v>>2]=0;f=v+4|0;c[f>>2]=0;c[s>>2]=13;q=j+8|0;c[q>>2]=0;c[q+4>>2]=0;c[r>>2]=13;q=g+8|0;c[q>>2]=0;c[q+4>>2]=0;c[p>>2]=13;o=l+8|0;c[o>>2]=0;c[o+4>>2]=0;c[m>>2]=0;c[d>>2]=0;c[a>>2]=5;fd[c[(c[b>>2]|0)+12>>2]&511](b);c[v>>2]=0;c[f>>2]=0;c[u>>2]=5;f=FW(56)|0;v=FW(168)|0;w=c[b>>2]|0;x=c[w+96>>2]|0;w=jd[c[w+108>>2]&511](b)|0;bE(v,0,Cd[x&63](b,w,0,0,k)|0);aG(f,0,v,0);cG(f,k,0,0,0,0,0)|0;cG(f,j,0,0,0,0,0)|0;cG(f,g,0,0,0,0,0)|0;cG(f,a,0,0,0,0,0)|0;do{if((c[u>>2]|0)==1){if((c[s>>2]|0)!=1){break}if((c[r>>2]|0)!=10){break}if((Qc(c[q>>2]|0,185784)|0)!=0){break}if((c[a>>2]|0)!=7){break}Yu(c[m>>2]|0,185792,l,0)|0;p=c[p>>2]|0;if((p+ -1|0)>>>0<2){if((p|0)==1){t=+(c[o>>2]|0)}else{t=+h[o>>3]}if(t<=0.0){e=11}}else{e=11}if((e|0)==11){Of(a);c[m>>2]=0;c[d>>2]=0;c[a>>2]=5}Of(l)}}while(0);Of(g);Of(j);Of(k);if((f|0)==0){i=n;return}bG(f);HW(f);i=n;return}function jE(a){a=a|0;var b=0;b=i;Of(a);i=b;return}function kE(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=i;i=i+8|0;e=i;i=i+8|0;if((c[a>>2]|0)!=7){e=0;i=b;return e|0}f=_u(c[a+8>>2]|0,185808,0,e)|0;a=c[e>>2]|0;if(f&(a|0)>0){f=a;i=b;return f|0}Qe(-1,185816,d);f=0;i=b;return f|0}function lE(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;d=i;f=i;i=i+8|0;g=i;i=i+8|0;j=g;m=i;i=i+8|0;n=m;o=i;i=i+16|0;b=o;k=i;i=i+16|0;e=k;c[o>>2]=13;l=b+8|0;c[l>>2]=0;c[l+4>>2]=0;c[k>>2]=13;h=e+8|0;c[h>>2]=0;c[h+4>>2]=0;do{if((c[a>>2]|0)==7){if((c[(Yu(c[a+8>>2]|0,185864,b,0)|0)>>2]|0)!=6){break}a=c[o>>2]|0;if((a|0)!=6){c[m>>2]=a;c[n+4>>2]=6;Qe(0,186424,n);tc()}l=c[l>>2]|0;if((c[l+12>>2]|0)<=1){break}if((c[(ut(l,0,e)|0)>>2]|0)!=1){break}k=c[k>>2]|0;if((k|0)!=1){c[g>>2]=k;c[j+4>>2]=1;Qe(0,186424,j);tc()}g=c[h>>2]|0;if((g|0)<=0){break}Of(e);Of(b);i=d;return g|0}}while(0);Qe(-1,185872,f);o=0;Of(e);Of(b);i=d;return o|0}function mE(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;d=i;f=i;i=i+8|0;g=i;i=i+8|0;j=g;m=i;i=i+8|0;n=m;o=i;i=i+16|0;b=o;k=i;i=i+16|0;e=k;c[o>>2]=13;l=b+8|0;c[l>>2]=0;c[l+4>>2]=0;c[k>>2]=13;h=e+8|0;c[h>>2]=0;c[h+4>>2]=0;do{if((c[a>>2]|0)==7){if((c[(Yu(c[a+8>>2]|0,185864,b,0)|0)>>2]|0)!=6){break}a=c[o>>2]|0;if((a|0)!=6){c[m>>2]=a;c[n+4>>2]=6;Qe(0,186424,n);tc()}l=c[l>>2]|0;if((c[l+12>>2]|0)<=1){break}if((c[(ut(l,1,e)|0)>>2]|0)!=1){break}k=c[k>>2]|0;if((k|0)!=1){c[g>>2]=k;c[j+4>>2]=1;Qe(0,186424,j);tc()}g=c[h>>2]|0;if((g|0)<=0){break}Of(e);Of(b);i=d;return g|0}}while(0);Qe(-1,185928,f);o=0;Of(e);Of(b);i=d;return o|0}function nE(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;e=i;f=i;i=i+8|0;g=i;i=i+8|0;j=g;m=i;i=i+8|0;n=m;o=i;i=i+16|0;d=o;k=i;i=i+16|0;b=k;c[o>>2]=13;l=d+8|0;c[l>>2]=0;c[l+4>>2]=0;c[k>>2]=13;h=b+8|0;c[h>>2]=0;c[h+4>>2]=0;if((c[a>>2]|0)!=7){o=0;Of(b);Of(d);i=e;return o|0}if((c[(Yu(c[a+8>>2]|0,185864,d,0)|0)>>2]|0)!=6){o=0;Of(b);Of(d);i=e;return o|0}a=c[o>>2]|0;if((a|0)!=6){c[m>>2]=a;c[n+4>>2]=6;Qe(0,186424,n);tc()}l=c[l>>2]|0;if((c[l+12>>2]|0)<=3){o=0;Of(b);Of(d);i=e;return o|0}do{if((c[(ut(l,2,b)|0)>>2]|0)==1){k=c[k>>2]|0;if((k|0)!=1){c[g>>2]=k;c[j+4>>2]=1;Qe(0,186424,j);tc()}g=c[h>>2]|0;if((g|0)<=0){break}Of(b);Of(d);i=e;return g|0}}while(0);Qe(-1,185984,f);o=0;Of(b);Of(d);i=e;return o|0}function oE(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;e=i;f=i;i=i+8|0;g=i;i=i+8|0;j=g;m=i;i=i+8|0;n=m;o=i;i=i+16|0;d=o;k=i;i=i+16|0;b=k;c[o>>2]=13;l=d+8|0;c[l>>2]=0;c[l+4>>2]=0;c[k>>2]=13;h=b+8|0;c[h>>2]=0;c[h+4>>2]=0;if((c[a>>2]|0)!=7){o=0;Of(b);Of(d);i=e;return o|0}if((c[(Yu(c[a+8>>2]|0,185864,d,0)|0)>>2]|0)!=6){o=0;Of(b);Of(d);i=e;return o|0}a=c[o>>2]|0;if((a|0)!=6){c[m>>2]=a;c[n+4>>2]=6;Qe(0,186424,n);tc()}l=c[l>>2]|0;if((c[l+12>>2]|0)<=3){o=0;Of(b);Of(d);i=e;return o|0}do{if((c[(ut(l,3,b)|0)>>2]|0)==1){k=c[k>>2]|0;if((k|0)!=1){c[g>>2]=k;c[j+4>>2]=1;Qe(0,186424,j);tc()}g=c[h>>2]|0;if((g|0)<=0){break}Of(b);Of(d);i=e;return g|0}}while(0);Qe(-1,186048,f);o=0;Of(b);Of(d);i=e;return o|0}function pE(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=i;i=i+8|0;e=i;i=i+8|0;c[e>>2]=0;do{if((c[a>>2]|0)==7){f=_u(c[a+8>>2]|0,186112,0,e)|0;a=c[e>>2]|0;if(!(f&(a|0)>0)){break}i=b;return a|0}}while(0);Qe(-1,186120,d);f=0;i=b;return f|0}function qE(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=i;i=i+8|0;e=i;i=i+8|0;c[e>>2]=0;do{if((c[a>>2]|0)==7){f=_u(c[a+8>>2]|0,186184,0,e)|0;a=c[e>>2]|0;if(!(f&(a|0)>0)){break}i=b;return a|0}}while(0);Qe(-1,186192,d);f=0;i=b;return f|0}function rE(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=i;i=i+8|0;e=i;i=i+8|0;c[e>>2]=0;do{if((c[a>>2]|0)==7){f=_u(c[a+8>>2]|0,186248,0,e)|0;a=c[e>>2]|0;if(!(f&(a|0)>0)){break}i=b;return a|0}}while(0);Qe(-1,186256,d);f=0;i=b;return f|0}function sE(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=i;i=i+8|0;e=i;i=i+8|0;c[e>>2]=0;do{if((c[a>>2]|0)==7){f=_u(c[a+8>>2]|0,186304,0,e)|0;a=c[e>>2]|0;if(!(f&(a|0)>0)){break}i=b;return a|0}}while(0);Qe(-1,186312,d);f=0;i=b;return f|0}function tE(a){a=a|0;var b=0,d=0,e=0;b=i;d=i;i=i+8|0;e=i;i=i+8|0;c[e>>2]=0;if((c[a>>2]|0)!=7){e=0;i=b;return e|0}_u(c[a+8>>2]|0,186368,0,e)|0;a=c[e>>2]|0;if((a|0)>=0){e=a;i=b;return e|0}Qe(-1,186376,d);e=0;i=b;return e|0}function uE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;d=i;z=i;i=i+8|0;y=z;m=i;i=i+8|0;l=m;k=i;i=i+8|0;o=k;p=i;i=i+8|0;q=p;s=i;i=i+8|0;t=s;v=i;i=i+8|0;w=v;x=i;i=i+8|0;u=x;n=i;i=i+8|0;C=n;A=i;i=i+16|0;e=A;h=i;i=i+16|0;f=h;D=i;i=i+16|0;r=D;c[A>>2]=13;B=e+8|0;c[B>>2]=0;c[B+4>>2]=0;c[h>>2]=13;g=f+8|0;c[g>>2]=0;c[g+4>>2]=0;c[D>>2]=13;D=r+8|0;c[D>>2]=0;c[D+4>>2]=0;if((c[a>>2]|0)!=7){if((b|0)==0){e=186544}else{e=c[b+28>>2]|0}c[n>>2]=e;Qe(-1,186496,C);D=0;i=d;return D|0}n=a+8|0;Yu(c[n>>2]|0,186552,e,0)|0;if((c[A>>2]|0)!=4){if((b|0)==0){f=186544}else{f=c[b+28>>2]|0}c[z>>2]=f;Qe(-1,186696,y);Of(e);D=0;i=d;return D|0}y=c[B>>2]|0;do{if((Qc(y|0,186560)|0)==0){g=c[a>>2]|0;if((g|0)==7){Yu(c[n>>2]|0,186568,f,0)|0;j=FW(12)|0;wE(j,f);Of(f);break}else{c[x>>2]=g;c[u+4>>2]=7;Qe(0,188448,u);tc()}}else{if((Qc(y|0,186576)|0)==0){u=c[a>>2]|0;if((u|0)!=7){c[v>>2]=u;c[w+4>>2]=7;Qe(0,188448,w);tc()}Yu(c[n>>2]|0,186584,f,0)|0;u=c[a>>2]|0;if((u|0)==7){Yu(c[n>>2]|0,186568,r,0)|0;j=FW(16)|0;zE(j,f,r);Of(f);Of(r);break}else{c[s>>2]=u;c[t+4>>2]=7;Qe(0,188448,t);tc()}}if((Qc(y|0,186592)|0)==0){j=FW(12)|0;CE(j,a);break}if((Qc(y|0,186600)|0)==0){r=c[a>>2]|0;if((r|0)==7){Yu(c[n>>2]|0,186600,f,0)|0;j=FW(8)|0;FE(j,f,b);Of(f);break}else{c[p>>2]=r;c[q+4>>2]=7;Qe(0,188448,q);tc()}}if((Qc(y|0,186608)|0)==0){j=c[a>>2]|0;if((j|0)!=7){c[k>>2]=j;c[o+4>>2]=7;Qe(0,188448,o);tc()}Yu(c[n>>2]|0,186616,f,0)|0;j=FW(8)|0;c[j>>2]=187200;k=j+4|0;c[k>>2]=0;if((c[h>>2]|0)==4){D=FW(32)|0;fe(D,c[g>>2]|0);c[k>>2]=D}Of(f);break}if((Qc(y|0,186624)|0)==0){j=FW(20)|0;KE(j,a);break}if((Qc(y|0,186632)|0)==0){j=FW(56)|0;QE(j,a);break}if((Qc(y|0,186648)|0)==0){j=FW(24)|0;NE(j,a);break}if((Qc(y|0,186656)|0)==0){g=c[a>>2]|0;if((g|0)==7){Yu(c[n>>2]|0,186672,f,0)|0;j=FW(8)|0;TE(j,f);Of(f);break}else{c[m>>2]=g;c[l+4>>2]=7;Qe(0,188448,l);tc()}}else{if((Qc(y|0,186680)|0)==0){j=FW(12)|0;WE(j,a);break}else{j=FW(8)|0;c[j>>2]=188048;D=FWFW(32)|0;fe(h,c[d+8>>2]|0);c[b>>2]=h;i=e;return}else if((h|0)==3){g=c[d+8>>2]|0;h=FW(32)|0;ie(h,g);c[b>>2]=h;i=e;return}else if((h|0)==6){g=FW(64)|0;vE(g,c[d+8>>2]|0);c[f>>2]=g;if((a[g+59|0]&1)!=0){i=e;return}if((g|0)!=0){HW(g)}c[f>>2]=0;i=e;return}else{Qe(-1,187008,g);i=e;return}}function xE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=186992;d=c[a+4>>2]|0;if((d|0)!=0){HW(d)}d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}ke(d);HW(d);HW(a);i=b;return}function yE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=186992;d=c[a+4>>2]|0;if((d|0)!=0){HW(d)}a=c[a+8>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}function zE(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=i;h=i;i=i+8|0;j=i;i=i+8|0;k=j;o=i;i=i+16|0;m=o;c[b>>2]=187048;l=b+4|0;c[l>>2]=0;g=b+8|0;c[g>>2]=0;b=b+12|0;c[b>>2]=0;c[o>>2]=13;n=m+8|0;c[n>>2]=0;c[n+4>>2]=0;do{if(CH(d,m)|0){o=c[o>>2]|0;if((o|0)==3){o=c[n>>2]|0;d=FW(32)|0;ie(d,o);c[l>>2]=d;Of(m);break}else{c[j>>2]=o;c[k+4>>2]=3;Qe(0,188448,k);tc()}}}while(0);j=c[e>>2]|0;if((j|0)==3){o=c[e+8>>2]|0;d=FW(32)|0;ie(d,o);c[b>>2]=d;i=f;return}else if((j|0)==4){d=FW(32)|0;fe(d,c[e+8>>2]|0);c[b>>2]=d;i=f;return}else if((j|0)==6){h=FW(64)|0;vE(h,c[e+8>>2]|0);c[g>>2]=h;if((a[h+59|0]&1)!=0){i=f;return}if((h|0)!=0){HW(h)}c[g>>2]=0;i=f;return}else{Qe(-1,187008,h);i=f;return}}function AE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=187048;d=c[a+4>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+8>>2]|0;if((d|0)!=0){HW(d)}d=c[a+12>>2]|0;if((d|0)==0){HW(a);i=b;return}ke(d);HW(d);HW(a);i=b;return}function BE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=187048;d=c[a+4>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+8>>2]|0;if((d|0)!=0){HW(d)}a=c[a+12>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}function CE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;d=i;x=i;i=i+8|0;h=i;i=i+8|0;g=h;p=i;i=i+8|0;k=p;r=i;i=i+8|0;t=r;v=i;i=i+8|0;w=v;y=i;i=i+8|0;z=y;A=i;i=i+8|0;B=A;s=i;i=i+16|0;e=s;l=i;i=i+16|0;f=l;u=i;i=i+16|0;n=u;c[a>>2]=187072;c[s>>2]=13;o=e+8|0;c[o>>2]=0;c[o+4>>2]=0;c[l>>2]=13;j=f+8|0;c[j>>2]=0;c[j+4>>2]=0;c[u>>2]=13;q=n+8|0;c[q>>2]=0;c[q+4>>2]=0;m=a+4|0;c[m>>2]=0;a=a+8|0;c[a>>2]=0;if((c[b>>2]|0)!=7){i=d;return}C=b+8|0;do{if((c[(Yu(c[C>>2]|0,186584,e,0)|0)>>2]|0)==5){Of(e);A=c[b>>2]|0;if((A|0)!=7){c[y>>2]=A;c[z+4>>2]=7;Qe(0,188448,z);tc()}if((c[(Yu(c[C>>2]|0,187088,e,0)|0)>>2]|0)!=7){Qe(-1,187104,x);break}x=c[s>>2]|0;if((x|0)!=7){c[v>>2]=x;c[w+4>>2]=7;Qe(0,188448,w);tc()}Yu(c[o>>2]|0,186584,f,0)|0;do{if(CH(f,n)|0){u=c[u>>2]|0;if((u|0)==3){b=c[q>>2]|0;C=FW(32)|0;ie(C,b);c[m>>2]=C;Of(n);break}else{c[r>>2]=u;c[t+4>>2]=3;Qe(0,188448,t);tc()}}}while(0);Of(f);m=c[s>>2]|0;if((m|0)!=7){c[p>>2]=m;c[k+4>>2]=7;Qe(0,188448,k);tc()}do{if((c[(Yu(c[o>>2]|0,187096,f,0)|0)>>2]|0)==3){k=c[l>>2]|0;if((k|0)==3){b=c[j>>2]|0;C=FW(32)|0;ie(C,b);c[a>>2]=C;break}else{c[h>>2]=k;c[g+4>>2]=3;Qe(0,188448,g);tc()}}}while(0);Of(f)}else{if(!(CH(e,n)|0)){break}f=c[u>>2]|0;if((f|0)==3){b=c[q>>2]|0;C=FW(32)|0;ie(C,b);c[m>>2]=C;Of(n);break}else{c[A>>2]=f;c[B+4>>2]=3;Qe(0,188448,B);tc()}}}while(0);Of(e);i=d;return}function DE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=187072;d=c[a+4>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}ke(d);HW(d);HW(a);i=b;return}function EE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=187072;d=c[a+4>>2]|0;if((d|0)!=0){ke(d);HW(d)}a=c[a+8>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}function FE(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;g=i;i=i+8|0;c[b>>2]=187144;b=b+4|0;c[b>>2]=0;if((c[d>>2]|0)!=3){Qe(-1,187168,g);i=f;return}j=c[d+8>>2]|0;d=FW(32)|0;ie(d,j);do{if((e|0)!=0){if((c[e+24>>2]|0)<=0){break}g=d+28|0;j=c[g>>2]|0;h=Kc(j|0,187160)|0;do{if((h|0)!=(c[d+24>>2]|0)){if((a[j+h|0]|0)==47){break}c[b>>2]=d;i=f;return}}while(0);h=FW(32)|0;ie(h,e);c[b>>2]=h;j=a[(c[h+28>>2]|0)+((c[h+24>>2]|0)+ -1)|0]|0;do{if(j<<24>>24==63|j<<24>>24==47){if((a[c[g>>2]|0]|0)==47){re(d,0,1)|0;h=c[b>>2]|0}oe(h,d)|0}else{if((a[c[g>>2]|0]|0)!=47){me(h,47)|0;h=c[b>>2]|0}oe(h,d)|0;if((d|0)!=0){break}i=f;return}}while(0);ke(d);HW(d);i=f;return}}while(0);c[b>>2]=d;i=f;return}function GE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=187144;d=c[a+4>>2]|0;if((d|0)==0){HW(a);i=b;return}ke(d);HW(d);HW(a);i=b;return}function HE(a){a=a|0;var b=0;b=i;c[a>>2]=187144;a=c[a+4>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}function IE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=187200;d=c[a+4>>2]|0;if((d|0)==0){HW(a);i=b;return}ke(d);HW(d);HW(a);i=b;return}function JE(a){a=a|0;var b=0;b=i;c[a>>2]=187200;a=c[a+4>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}function KE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;d=i;g=i;i=i+8|0;h=g;j=i;i=i+8|0;k=j;o=i;i=i+8|0;m=i;i=i+8|0;n=m;s=i;i=i+8|0;r=s;u=i;i=i+8|0;t=u;v=i;i=i+8|0;x=v;l=i;i=i+16|0;e=l;c[a>>2]=187224;p=a+4|0;c[p>>2]=-1;q=a+12|0;c[q>>2]=0;c[l>>2]=13;f=e+8|0;c[f>>2]=0;c[f+4>>2]=0;w=c[b>>2]|0;if((w|0)!=7){c[v>>2]=w;c[x+4>>2]=7;Qe(0,188448,x);tc()}v=b+8|0;do{if((c[(Zu(c[v>>2]|0,187240,e)|0)>>2]|0)==9){w=c[l>>2]|0;if((w|0)==9){u=f;w=c[u+4>>2]|0;x=p;c[x>>2]=c[u>>2];c[x+4>>2]=w;break}else{c[u>>2]=w;c[t+4>>2]=9;Qe(0,188448,t);tc()}}}while(0);Of(e);t=c[b>>2]|0;if((t|0)!=7){c[s>>2]=t;c[r+4>>2]=7;Qe(0,188448,r);tc()}do{if((c[(Yu(c[v>>2]|0,187256,e,0)|0)>>2]|0)==3){r=c[l>>2]|0;if((r|0)==3){w=c[f>>2]|0;x=FW(32)|0;ie(x,w);c[q>>2]=x;break}else{c[m>>2]=r;c[n+4>>2]=3;Qe(0,188448,n);tc()}}}while(0);Of(e);do{if((c[q>>2]|0)==0){if((c[p>>2]|0)!=-1){break}Qe(-1,187264,o)}}while(0);m=c[b>>2]|0;if((m|0)!=7){c[j>>2]=m;c[k+4>>2]=7;Qe(0,188448,k);tc()}if((c[(Yu(c[v>>2]|0,187320,e,0)|0)>>2]|0)!=4){Of(e);i=d;return}j=c[l>>2]|0;if((j|0)!=4){c[g>>2]=j;c[h+4>>2]=4;Qe(0,188448,h);tc()}f=c[f>>2]|0;if((Qc(f|0,187336)|0)==0){c[a+16>>2]=0;Of(e);i=d;return}if((Qc(f|0,187344)|0)==0){c[a+16>>2]=3;Of(e);i=d;return}if((Qc(f|0,187352)|0)==0){c[a+16>>2]=1;Of(e);i=d;return}if((Qc(f|0,187360)|0)!=0){Of(e);i=d;return}c[a+16>>2]=2;Of(e);i=d;return}function LE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=187224;d=c[a+12>>2]|0;if((d|0)==0){HW(a);i=b;return}ke(d);HW(d);HW(a);i=b;return}function ME(a){a=a|0;var b=0;b=i;c[a>>2]=187224;a=c[a+12>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}function NE(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0.0;j=i;g=i;i=i+8|0;e=g;m=i;i=i+8|0;k=m;q=i;i=i+8|0;p=q;u=i;i=i+8|0;v=u;l=i;i=i+16|0;f=l;c[b>>2]=187376;w=b+8|0;h[w>>3]=1.0;t=b+16|0;a[t]=0;s=b+17|0;a[s]=0;n=b+18|0;a[n]=0;b=b+20|0;c[b>>2]=0;if((c[d>>2]|0)!=7){i=j;return}c[l>>2]=13;r=f+8|0;c[r>>2]=0;c[r+4>>2]=0;o=d+8|0;Yu(c[o>>2]|0,187392,f,0)|0;x=c[l>>2]|0;if((x+ -1|0)>>>0<2){if((x|0)==1){y=+(c[r>>2]|0)}else{y=+h[r>>3]}h[w>>3]=y}Of(f);w=c[d>>2]|0;if((w|0)!=7){c[u>>2]=w;c[v+4>>2]=7;Qe(0,188448,v);tc()}Yu(c[o>>2]|0,187400,f,0)|0;if((c[l>>2]|0)==0){a[t]=a[r]&1}Of(f);t=c[d>>2]|0;if((t|0)!=7){c[q>>2]=t;c[p+4>>2]=7;Qe(0,188448,p);tc()}Yu(c[o>>2]|0,187416,f,0)|0;if((c[l>>2]|0)==0){a[s]=a[r]&1}Of(f);p=c[d>>2]|0;if((p|0)!=7){c[m>>2]=p;c[k+4>>2]=7;Qe(0,188448,k);tc()}Yu(c[o>>2]|0,187424,f,0)|0;if((c[l>>2]|0)==0){a[n]=a[r]&1}Of(f);k=c[d>>2]|0;if((k|0)!=7){c[g>>2]=k;c[e+4>>2]=7;Qe(0,188448,e);tc()}Yu(c[o>>2]|0,186648,f,0)|0;c[b>>2]=HG(f)|0;Of(f);i=j;return}function OE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=187376;d=c[a+20>>2]|0;if((d|0)==0){HW(a);i=b;return}JG(d);HW(d);HW(a);i=b;return}function PE(a){a=a|0;var b=0;b=i;c[a>>2]=187376;a=c[a+20>>2]|0;if((a|0)==0){i=b;return}JG(a);HW(a);i=b;return}function QE(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;f=i;A=i;i=i+8|0;g=i;i=i+8|0;h=g;l=i;i=i+8|0;m=l;n=i;i=i+8|0;p=n;q=i;i=i+8|0;r=q;u=i;i=i+8|0;t=u;w=i;i=i+8|0;x=w;B=i;i=i+8|0;y=B;F=i;i=i+8|0;D=i;i=i+4096|0;C=i;i=i+16|0;e=C;c[b>>2]=187440;j=b+8|0;c[j>>2]=13;o=b+16|0;c[o>>2]=0;c[o+4>>2]=0;o=b+24|0;c[o>>2]=13;k=b+32|0;c[k>>2]=0;c[k+4>>2]=0;k=b+40|0;c[k>>2]=-1;s=b+44|0;c[s>>2]=0;v=b+48|0;c[v>>2]=0;if((c[d>>2]|0)!=7){i=f;return}c[C>>2]=13;z=e+8|0;c[z>>2]=0;c[z+4>>2]=0;b=d+8|0;a:do{if((c[(Yu(c[b>>2]|0,186672,e,0)|0)>>2]|0)!=5){G=c[C>>2]|0;if((G|0)==8){F=c[z>>2]|0;G=FW(32)|0;ee(G);c[v>>2]=G;fd[c[(c[F>>2]|0)+12>>2]&511](F);while(1){b:do{if(jd[c[(c[F>>2]|0)+88>>2]&511](F)|0){H=sd[c[(c[F>>2]|0)+92>>2]&127](F,4096,D)|0;E=10}else{H=0;while(1){I=jd[c[(c[F>>2]|0)+20>>2]&511](F)|0;if((I|0)==-1){E=10;break b}a[D+H|0]=I;H=H+1|0;if((H|0)>=4096){H=4096;break}}}}while(0);if((E|0)==10){E=0;if((H|0)==0){break a}}ne(G,D,H)|0}}else if((G|0)==3){I=FW(32)|0;ie(I,c[z>>2]|0);c[v>>2]=I;break}else{Qe(-1,187456,F);break}}}while(0);Of(e);D=c[d>>2]|0;if((D|0)!=7){c[B>>2]=D;c[y+4>>2]=7;Qe(0,188448,y);tc()}do{if((c[(Yu(c[b>>2]|0,187512,e,0)|0)>>2]|0)==1){y=c[C>>2]|0;if((y|0)!=1){c[w>>2]=y;c[x+4>>2]=1;Qe(0,188448,x);tc()}w=c[z>>2]|0;c[k>>2]=w;if((c[v>>2]|0)==0&w>>>0>4){c[u>>2]=w;Qe(-1,187520,t);break}t=c[d>>2]|0;if((t|0)!=7){c[q>>2]=t;c[r+4>>2]=7;Qe(0,188448,r);tc()}do{if((c[(Yu(c[b>>2]|0,187584,o,0)|0)>>2]|0)==7){I=FW(232)|0;GG(I,o);c[s>>2]=I}else{q=c[k>>2]|0;if(!((q|0)==4|(q|0)==0)){break}c[n>>2]=q;Qe(-1,187592,p);Of(o)}}while(0);n=c[d>>2]|0;if((n|0)!=7){c[l>>2]=n;c[m+4>>2]=7;Qe(0,188448,m);tc()}if((c[(Zu(c[b>>2]|0,187648,j)|0)>>2]|0)==9){break}k=c[k>>2]|0;if(k>>>0>=5){break}c[g>>2]=k;Qe(-1,187656,h);Of(j)}else{if((c[v>>2]|0)!=0){break}Qe(-1,187712,A)}}while(0);Of(e);i=f;return}function RE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=187440;Of(a+24|0);Of(a+8|0);d=c[a+48>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+44>>2]|0;if((d|0)==0){HW(a);i=b;return}FG(d);HW(d);HW(a);i=b;return}function SE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=187440;Of(a+24|0);Of(a+8|0);d=c[a+48>>2]|0;if((d|0)!=0){ke(d);HW(d)}a=c[a+44>>2]|0;if((a|0)==0){i=b;return}FG(a);HW(a);i=b;return}function TE(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;g=i;f=i;i=i+4096|0;c[b>>2]=187776;h=b+4|0;c[h>>2]=0;b=c[d>>2]|0;if((b|0)==8){b=c[d+8>>2]|0;d=FW(32)|0;ee(d);c[h>>2]=d;fd[c[(c[b>>2]|0)+12>>2]&511](b);while(1){a:do{if(jd[c[(c[b>>2]|0)+88>>2]&511](b)|0){h=sd[c[(c[b>>2]|0)+92>>2]&127](b,4096,f)|0;e=8}else{h=0;while(1){j=jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;if((j|0)==-1){e=8;break a}a[f+h|0]=j;h=h+1|0;if((h|0)>=4096){h=4096;break}}}}while(0);if((e|0)==8){e=0;if((h|0)==0){break}}ne(d,f,h)|0}i=g;return}else if((b|0)==3){j=FW(32)|0;ie(j,c[d+8>>2]|0);c[h>>2]=j;i=g;return}else{i=g;return}}function UE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=187776;d=c[a+4>>2]|0;if((d|0)==0){HW(a);i=b;return}ke(d);HW(d);HW(a);i=b;return}function VE(a){a=a|0;var b=0;b=i;c[a>>2]=187776;a=c[a+4>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}function WE(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;h=i;e=i;i=i+8|0;j=e;m=i;i=i+8|0;k=m;z=i;i=i+8|0;x=i;i=i+8|0;s=i;i=i+8|0;v=i;i=i+8|0;w=v;q=i;i=i+8|0;r=q;o=i;i=i+8|0;p=o;t=i;i=i+8|0;A=t;l=i;i=i+16|0;g=l;u=i;i=i+16|0;y=u;c[b>>2]=187800;c[l>>2]=13;f=g+8|0;c[f>>2]=0;c[f+4>>2]=0;B=FW(16)|0;wo(B);n=b+4|0;c[n>>2]=B;b=b+8|0;a[b]=1;B=c[d>>2]|0;if((B|0)!=7){c[t>>2]=B;c[A+4>>2]=7;Qe(0,188448,A);tc()}t=d+8|0;do{if((c[(Yu(c[t>>2]|0,187816,g,0)|0)>>2]|0)==6){z=c[l>>2]|0;if((z|0)!=6){G=z;H=o;c[H>>2]=G;H=p+4|0;c[H>>2]=6;H=188448;Qe(0,H,p);tc()}B=y+8|0;A=B+4|0;z=0;C=0;a:while(1){D=c[f>>2]|0;if((z|0)>=(c[D+12>>2]|0)){s=32;break}c[u>>2]=13;c[B>>2]=0;c[A>>2]=0;vt(D,z,y)|0;D=c[u>>2]|0;do{if((D|0)==9){if((C|0)==0){Qe(-1,187896,s);C=0;break}else{G=B;F=c[G>>2]|0;G=c[G+4>>2]|0;H=FW(8)|0;E=H;c[E>>2]=0;c[E+4>>2]=0;c[H>>2]=F;c[H+4>>2]=G;yo(c[C+4>>2]|0,H);break}}else if((D|0)==4){if((C|0)!=0){yo(c[n>>2]|0,C);C=c[u>>2]|0;if((C|0)!=4){s=11;break a}}E=c[B>>2]|0;C=FW(8)|0;D=C+4|0;c[D>>2]=0;H=FW(16)|0;wo(H);c[D>>2]=H;if((Qc(E|0,187824)|0)==0){c[C>>2]=0;break}if((Qc(E|0,187832)|0)==0){c[C>>2]=1;break}if((Qc(E|0,187840)|0)==0){c[C>>2]=2;break}c[v>>2]=E;Qe(-1,187848,w);if((C|0)==0){C=0;break}D=c[D>>2]|0;if((D|0)!=0){E=D+8|0;G=c[E>>2]|0;if((G|0)>0){F=0;do{H=c[(c[D>>2]|0)+(F<<2)>>2]|0;if((H|0)!=0){HW(H);G=c[E>>2]|0}F=F+1|0;}while((F|0)<(G|0))}xo(D);HW(D)}HW(C);C=0}else{Qe(-1,187960,x)}}while(0);Of(y);D=c[l>>2]|0;if((D|0)==6){z=z+1|0}else{s=6;break}}if((s|0)==6){H=o;c[H>>2]=D;H=p+4|0;c[H>>2]=6;H=188448;Qe(0,H,p);tc()}else if((s|0)==11){c[q>>2]=C;c[r+4>>2]=4;Qe(0,188448,r);tc()}else if((s|0)==32){if((C|0)==0){break}yo(c[n>>2]|0,C);break}}else{Qe(-1,188e3,z);o=c[n>>2]|0;if((o|0)!=0){xo(o);HW(o)}c[n>>2]=0}}while(0);Of(g);d=c[d>>2]|0;if((d|0)!=7){c[m>>2]=d;c[k+4>>2]=7;Qe(0,188448,k);tc()}if((c[(Yu(c[t>>2]|0,188024,g,0)|0)>>2]|0)!=0){Of(g);i=h;return}k=c[l>>2]|0;if((k|0)!=0){c[e>>2]=k;c[j+4>>2]=0;Qe(0,188448,j);tc()}a[b]=a[f]&1;Of(g);i=h;return}function XE(a){a=a|0;var b=0;b=i;YE(a);HW(a);i=b;return}function YE(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;b=i;c[a>>2]=187800;a=c[a+4>>2]|0;if((a|0)==0){i=b;return}d=a+8|0;g=c[d>>2]|0;if((g|0)>0){e=0;do{f=c[(c[a>>2]|0)+(e<<2)>>2]|0;if((f|0)!=0){g=c[f+4>>2]|0;if((g|0)!=0){h=g+8|0;j=c[h>>2]|0;if((j|0)>0){k=0;do{l=c[(c[g>>2]|0)+(k<<2)>>2]|0;if((l|0)!=0){HW(l);j=c[h>>2]|0}k=k+1|0;}while((k|0)<(j|0))}xo(g);HW(g)}HW(f);g=c[d>>2]|0}e=e+1|0;}while((e|0)<(g|0))}xo(a);HW(a);i=b;return}function ZE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=188048;d=c[a+4>>2]|0;if((d|0)==0){HW(a);i=b;return}ke(d);HW(d);HW(a);i=b;return}function _E(a){a=a|0;var b=0;b=i;c[a>>2]=188048;a=c[a+4>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}function $E(a){a=a|0;var b=0;b=i;if((c[a+4>>2]|0)!=0){a=1;i=b;return a|0}a=(c[a+8>>2]|0)!=0;i=b;return a|0}function aF(a){a=a|0;i=i;return 0}function bF(a){a=a|0;var b=0;b=i;if((c[a+4>>2]|0)==0){a=0;i=b;return a|0}if((c[a+8>>2]|0)!=0){a=1;i=b;return a|0}a=(c[a+12>>2]|0)!=0;i=b;return a|0}function cF(a){a=a|0;i=i;return 1}function dF(a){a=a|0;i=i;return(c[a+4>>2]|0)!=0|0}function eF(a){a=a|0;i=i;return 2}function fF(a){a=a|0;i=i;return(c[a+4>>2]|0)!=0|0}function gF(a){a=a|0;i=i;return 3}function hF(a){a=a|0;i=i;return(c[a+4>>2]|0)!=0|0}function iF(a){a=a|0;i=i;return 4}function jF(a){a=a|0;var b=0;b=i;if((c[a+4>>2]|0)>-1){a=1;i=b;return a|0}a=(c[a+12>>2]|0)!=0;i=b;return a|0}function kF(a){a=a|0;i=i;return 5}function lF(a){a=a|0;i=i;return-1}function mF(a){a=a|0;i=i;return 6}function nF(a){a=a|0;i=i;return(c[a+20>>2]|0)!=0|0}function oF(a){a=a|0;i=i;return 7}function pF(a){a=a|0;i=i;return(c[a+4>>2]|0)!=0|0}function qF(a){a=a|0;i=i;return 8}function rF(a){a=a|0;i=i;return(c[a+4>>2]|0)!=0|0}function sF(a){a=a|0;i=i;return 9}function tF(a){a=a|0;i=i;return(c[a+4>>2]|0)!=0|0}function uF(a){a=a|0;i=i;return 10}function vF(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;a=i;g=(ue(b,188600,7)|0)==0;f=FW(32)|0;ie(f,b);if(g){re(f,0,7)|0;g=FW(68)|0;Sf(g,f,c,d,e);i=a;return g|0}else{g=FWFW(32)|0;ie(O,N);c[G>>2]=O;Of(H);Of(n);G=c[e>>2]|0;if((G|0)!=7){c[E>>2]=G;c[F+4>>2]=7;Qe(0,188872,F);tc()}do{if((c[(Yu(c[t>>2]|0,188848,n,0)|0)>>2]|0)==6){E=c[q>>2]|0;if((E|0)!=6){c[C>>2]=E;c[D+4>>2]=6;Qe(0,188872,D);tc()}C=c[o>>2]|0;if((c[C+12>>2]|0)<=1){break}c[B>>2]=13;O=v+8|0;c[O>>2]=0;c[O+4>>2]=0;if(((c[(ut(C,0,v)|0)>>2]|0)+ -1|0)>>>0<2){D=ut(C,0,v)|0;B=c[D>>2]|0;if((B+ -1|0)>>>0>=2){c[z>>2]=B;c[A+4>>2]=1;c[A+8>>2]=2;Qe(0,188944,A);tc()}z=D+8|0;if((B|0)==1){P=+(c[z>>2]|0)}else{P=+h[z>>3]}c[y>>2]=~~+R(+(P+.5))}Of(v);if(((c[(ut(C,1,v)|0)>>2]|0)+ -1|0)>>>0<2){z=ut(C,1,v)|0;y=c[z>>2]|0;if((y+ -1|0)>>>0>=2){c[x>>2]=y;c[w+4>>2]=1;c[w+8>>2]=2;Qe(0,188944,w);tc()}w=z+8|0;if((y|0)==1){P=+(c[w>>2]|0)}else{P=+h[w>>3]}c[u>>2]=~~+R(+(P+.5))}Of(v)}}while(0);Of(n);u=c[e>>2]|0;if((u|0)!=7){c[r>>2]=u;c[s+4>>2]=7;Qe(0,188872,s);tc()}do{if((c[(Yu(c[t>>2]|0,188856,n,0)|0)>>2]|0)==1){q=c[q>>2]|0;if((q|0)==1){b[l>>1]=((((c[o>>2]|0)+360|0)%360|0|0)%90|0)*90;break}else{c[p>>2]=q;c[m+4>>2]=1;Qe(0,188872,m);tc()}}}while(0);Of(n);l=d+16|0;e=c[e>>2]|0;if((e|0)!=7){c[j>>2]=e;c[k+4>>2]=7;Qe(0,188872,k);tc()}if((c[(Zu(c[t>>2]|0,188864,l)|0)>>2]|0)==5){i=f;return}j=c[l>>2]|0;if((j|0)==8|(j|0)==9){a[g]=1;i=f;return}else if((j|0)==0){a[g]=a[d+24|0]&1;Of(l);i=f;return}else{Of(l);i=f;return}}function BF(a){a=a|0;var b=0,d=0;b=i;d=c[a+36>>2]|0;if((d|0)!=0){ke(d);HW(d)}Of(a+16|0);i=b;return}function CF(b,d){b=b|0;d=d|0;var e=0,f=0;e=i;c[b+16>>2]=13;f=b+24|0;c[f>>2]=0;c[f+4>>2]=0;c[b+44>>2]=0;c[b+52>>2]=0;a[b+76|0]=0;h[b+80>>3]=.5;h[b+88>>3]=.5;h[b+56>>3]=1.0;c[b+64>>2]=100;a[b+68|0]=0;a[b+69|0]=0;c[b+72>>2]=0;c[b+40>>2]=0;c[b+48>>2]=0;c[b+96>>2]=1;c[b+100>>2]=1;a[b]=1;if((c[d>>2]|0)==7){AF(b,d);i=e;return}else{a[b]=0;i=e;return}}function DF(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;c[b+16>>2]=13;g=b+24|0;c[g>>2]=0;c[g+4>>2]=0;g=b+40|0;c[b+44>>2]=0;c[b+52>>2]=0;a[b+76|0]=0;h[b+80>>3]=.5;h[b+88>>3]=.5;h[b+56>>3]=1.0;c[b+64>>2]=100;a[b+68|0]=0;a[b+69|0]=0;c[b+72>>2]=0;c[g>>2]=0;c[b+48>>2]=0;c[b+96>>2]=1;c[b+100>>2]=1;a[b]=1;if((c[d>>2]|0)!=7){a[b]=0;i=f;return}AF(b,d);if((c[e>>2]|0)!=7){i=f;return}zF(g,e);i=f;return}function EF(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;f=i;g=i;i=i+8|0;h=g;m=i;i=i+8|0;n=m;y=i;i=i+8|0;w=i;i=i+8|0;q=w;z=i;i=i+8|0;x=z;B=i;i=i+8|0;A=B;I=i;i=i+8|0;H=i;i=i+8|0;J=H;E=i;i=i+8|0;F=E;N=i;i=i+8|0;M=N;S=i;i=i+8|0;Q=i;i=i+8|0;R=Q;ba=i;i=i+8|0;T=ba;L=i;i=i+8|0;aa=L;Y=i;i=i+8|0;_=i;i=i+8|0;$=_;ea=i;i=i+8|0;da=i;i=i+8|0;fa=da;Z=i;i=i+16|0;X=Z;U=i;i=i+16|0;k=U;W=i;i=i+16|0;V=W;p=i;i=i+16|0;j=p;P=i;i=i+16|0;O=P;C=i;i=i+16|0;K=C;D=i;i=i+16|0;G=D;r=i;i=i+16|0;v=r;u=i;i=i+16|0;s=u;o=b+8|0;c[o>>2]=13;l=b+16|0;c[l>>2]=0;c[l+4>>2]=0;l=b+24|0;c[l>>2]=13;ca=b+32|0;c[ca>>2]=0;c[ca+4>>2]=0;c[b+40>>2]=e;a[b]=1;ca=FW(16)|0;wo(ca);e=b+4|0;c[e>>2]=ca;c[U>>2]=13;ca=k+8|0;c[ca>>2]=0;c[ca+4>>2]=0;ga=c[d>>2]|0;if((ga|0)!=7){c[da>>2]=ga;c[fa+4>>2]=7;Qe(0,189600,fa);tc()}da=d+8|0;Yu(c[da>>2]|0,189024,k,0)|0;if((c[U>>2]|0)!=6){Qe(-1,189032,ea);Of(k);a[b]=0;i=f;return}ga=V+8|0;fa=ga+4|0;ea=X+8|0;ia=ea+4|0;ha=0;while(1){ja=c[ca>>2]|0;if((ha|0)>=(c[ja+12>>2]|0)){break}c[W>>2]=13;c[ga>>2]=0;c[fa>>2]=0;ut(ja,ha,V)|0;if((c[W>>2]|0)!=7){t=9;break}ja=FW(20)|0;la=c[ga>>2]|0;ka=ja+4|0;c[ka>>2]=0;c[Z>>2]=13;c[ea>>2]=0;c[ia>>2]=0;Yu(la,189512,X,0)|0;if((c[Z>>2]|0)==3){la=FWFW(16)|0;jo(d,1);c[a>>2]=d;i=b;return}function XF(a){a=a|0;var b=0;b=a+104|0;a=c[b>>2]|0;c[b>>2]=0;i=i;return a|0}function YF(a,b,d){a=a|0;b=b|0;d=d|0;c[a>>2]=b;c[a+4>>2]=d;c[a+8>>2]=-1;i=i;return}function ZF(a){a=a|0;i=i;return}function _F(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;j=b+8|0;h=b+4|0;a:while(1){l=c[j>>2]|0;if((l|0)<0){l=jd[c[b>>2]&511](c[h>>2]|0)|0}else{c[j>>2]=-1}if((l|0)==-1){k=10;break}else if((l|0)!=37){if((a[190720+l|0]|0)==1){continue}else{break}}while(1){l=c[j>>2]|0;if((l|0)<0){l=jd[c[b>>2]&511](c[h>>2]|0)|0}else{c[j>>2]=-1}if((l|0)==10|(l|0)==13){continue a}else if((l|0)==-1){k=10;break a}}}if((k|0)==10){a[d]=0;m=0;k=0;l=f;c[l>>2]=k;i=g;return m|0}e=e+ -1|0;a[d]=l;b:do{if((l|0)==40){l=1;k=1;while(1){m=c[j>>2]|0;if((m|0)<0){m=jd[c[b>>2]&511](c[h>>2]|0)|0;c[j>>2]=m;if((m|0)==-1){break b}}c[j>>2]=-1;if((k|0)<(e|0)){a[d+k|0]=m;k=k+1|0}if((m|0)==92){l=0;continue}if(l&(m|0)==41){break}else{l=1}}}else if((l|0)==60){k=1;do{l=c[j>>2]|0;if((l|0)<0){l=jd[c[b>>2]&511](c[h>>2]|0)|0;c[j>>2]=l;if((l|0)==-1){break b}}c[j>>2]=-1;do{if((k|0)<(e|0)){if((a[190720+l|0]|0)==1){break}a[d+k|0]=l;k=k+1|0}}while(0);}while((l|0)!=62)}else if((l|0)==91|(l|0)==93){k=1}else{k=1;while(1){l=c[j>>2]|0;if((k|0)>=(e|0)){break}if((l|0)<0){l=jd[c[b>>2]&511](c[h>>2]|0)|0;c[j>>2]=l;if((l|0)==-1){break b}}if((a[190720+l|0]|0)!=0){break b}c[j>>2]=-1;a[d+k|0]=l;k=k+1|0}while(1){if((l|0)<0){l=jd[c[b>>2]&511](c[h>>2]|0)|0;c[j>>2]=l;if((l|0)==-1){break b}}if((a[190720+l|0]|0)!=0){break b}c[j>>2]=-1;l=-1}}}while(0);a[d+k|0]=0;m=1;l=f;c[l>>2]=k;i=g;return m|0}function $F(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=a+8|0;f=c[d>>2]|0;if((f|0)<=0){xo(a);i=b;return}e=0;do{g=c[(c[a>>2]|0)+(e<<2)>>2]|0;if((g|0)!=0){f=c[g>>2]|0;if((f|0)!=0){ke(f);HW(f)}HW(g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0));xo(a);i=b;return}function aG(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;j=b+16|0;c[j>>2]=13;h=b+24|0;c[h>>2]=0;c[h+4>>2]=0;h=b+32|0;c[h>>2]=13;k=b+40|0;c[k>>2]=0;c[k+4>>2]=0;c[b>>2]=d;d=b+4|0;c[d>>2]=e;c[b+48>>2]=0;a[b+8|0]=f&1;fE(e,j,-1)|0;fE(c[d>>2]|0,h,-1)|0;i=g;return}function bG(a){a=a|0;var b=0;b=i;Of(a+16|0);Of(a+32|0);a=c[a+4>>2]|0;if((a|0)==0){i=b;return}dE(a);HW(a);i=b;return}function cG(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;j=i;l=i;i=i+16|0;k=l;m=k+4|0;c[m>>2]=0;c[k+8>>2]=0;c[l>>2]=m;a=dG(a,b,d,e,f,g,h,k)|0;xn(k,c[k+4>>2]|0);i=j;return a|0}function dG(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;l=i;A=i;i=i+8|0;B=A;q=i;i=i+8|0;r=i;i=i+8|0;s=r;t=i;i=i+8|0;u=i;i=i+8|0;w=i;i=i+8|0;v=w;x=i;i=i+16|0;m=x;c[x>>2]=13;z=m+8|0;c[z>>2]=0;y=z+4|0;c[y>>2]=0;p=b+48|0;n=b+16|0;if((c[p>>2]|0)==2){Of(n);D=b+32|0;Of(D);C=b+4|0;fE(c[C>>2]|0,n,-1)|0;fE(c[C>>2]|0,D,-1)|0;c[p>>2]=0}C=c[n>>2]|0;do{if((C|0)==10){p=b+24|0;D=c[p>>2]|0;if((Qc(D|0,190976)|0)==0){fG(b,-1);If(d,c[b>>2]|0)|0;q=d+8|0;while(1){r=c[n>>2]|0;if((r|0)==10){if((Qc(c[p>>2]|0,190984)|0)==0){break}}else if((r|0)==12){o=11;break}s=dG(b,m,e,f,g,h,j,k)|0;r=c[d>>2]|0;if((r|0)!=6){o=9;break}tt(c[q>>2]|0,s)}if((o|0)==9){c[w>>2]=r;c[v+4>>2]=6;Qe(0,191224,v);tc()}if((o|0)==11){j=c[b+4>>2]|0;if((c[j+16>>2]|0)==8){j=c[j+24>>2]|0;j=jd[c[(c[j>>2]|0)+48>>2]&511](j)|0}else{j=-1}Qe(j,190992,u)}fG(b,-1);i=l;return d|0}if((Qc(D|0,191024)|0)!=0){if((C|0)==1){o=38;break}else{break}}fG(b,h);Jf(d,c[b>>2]|0)|0;v=b+4|0;u=d+8|0;while(1){w=c[n>>2]|0;if((w|0)==10){if((Qc(c[p>>2]|0,191032)|0)==0){break}}else if((w|0)==4){w=Ge(c[p>>2]|0)|0;fG(b,-1);if(((c[n>>2]|0)+ -11|0)>>>0<2){o=26;break}y=dG(b,m,e,f,g,h,j,k)|0;x=c[d>>2]|0;if((x|0)!=7){o=24;break}Tu(c[u>>2]|0,w,y);continue}else if((w|0)==12){o=27;break}w=c[v>>2]|0;if((c[w+16>>2]|0)==8){w=c[w+24>>2]|0;w=jd[c[(c[w>>2]|0)+48>>2]&511](w)|0}else{w=-1}Qe(w,191040,t);fG(b,-1)}if((o|0)==24){c[r>>2]=x;c[s+4>>2]=7;Qe(0,191224,s);tc()}else if((o|0)==26){Fe(w);if((c[n>>2]|0)==12){o=27}}if((o|0)==27){m=c[v>>2]|0;if((c[m+16>>2]|0)==8){m=c[m+24>>2]|0;m=jd[c[(c[m>>2]|0)+48>>2]&511](m)|0}else{m=-1}Qe(m,191080,q)}do{if((a[b+8|0]&1)!=0){if((c[b+32>>2]|0)!=10){break}if((Qc(c[b+40>>2]|0,191112)|0)!=0){break}b=gG(b,d,e,f,g,h,j,k)|0;if((b|0)==0){Of(d);c[u>>2]=0;c[u+4>>2]=0;c[d>>2]=11;i=l;return d|0}else{Lf(d,b)|0;i=l;return d|0}}}while(0);fG(b,-1);i=l;return d|0}else if((C|0)==1){o=38}}while(0);if((o|0)==38){g=b+24|0;j=c[g>>2]|0;fG(b,-1);do{if((c[n>>2]|0)==1){if((c[b+32>>2]|0)!=10){break}if((Qc(c[b+40>>2]|0,191120)|0)!=0){break}C=c[g>>2]|0;D=d+8|0;c[d>>2]=9;c[D>>2]=j;c[D+4>>2]=C;fG(b,-1);fG(b,-1);i=l;return d|0}}while(0);D=d+8|0;c[D+4>>2]=0;c[d>>2]=1;c[D>>2]=j;i=l;return d|0}k=(C|0)==3;if((e|0)==0|k^1){$W(d|0,n|0,16)|0;D=b+24|0;c[D>>2]=0;c[D+4>>2]=0;c[n>>2]=5;fG(b,-1);i=l;return d|0}if(!k){c[A>>2]=C;c[B+4>>2]=3;Qe(0,191224,B);tc()}C=c[b+24>>2]|0;n=FW(32)|0;ee(n);c[z>>2]=0;c[y>>2]=0;c[x>>2]=5;k=FW(316)|0;D=FW(56)|0;Tj(D,c[C+28>>2]|0,0,c[C+24>>2]|0,m);Fu(k,D,e,f,g,h,j);fd[c[(c[k>>2]|0)+12>>2]&511](k);j=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((j|0)!=-1){j=j&255;while(1){me(n,j)|0;j=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((j|0)==-1){break}else{j=j&255}}}if((k|0)!=0){fd[c[(c[k>>2]|0)+4>>2]&511](k)}D=d+8|0;c[D+4>>2]=0;c[d>>2]=3;c[D>>2]=n;fG(b,-1);i=l;return d|0}function eG(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;a=dG(a,b,0,0,0,0,0,c)|0;i=d;return a|0}function fG(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;e=a+48|0;f=c[e>>2]|0;do{if((f|0)>0){if((f|0)<2){c[e>>2]=f+1;break}else{c[e>>2]=0;break}}else{if((c[a+32>>2]|0)!=10){break}if((Qc(c[a+40>>2]|0,191216)|0)!=0){break}eE(c[a+4>>2]|0,0)|0;c[e>>2]=1}}while(0);g=a+16|0;Of(g);f=a+32|0;$W(g|0,f|0,16)|0;if((c[e>>2]|0)>0){g=a+40|0;c[g>>2]=0;c[g+4>>2]=0;c[f>>2]=5;i=d;return}else{fE(c[a+4>>2]|0,f,b)|0;i=d;return}}function gG(a,b,d,e,f,g,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;k=i;m=i;i=i+8|0;l=m;u=i;i=i+8|0;z=i;i=i+8|0;A=i;i=i+8|0;s=A;q=i;i=i+16|0;o=q;y=i;i=i+8|0;x=y;c[q>>2]=13;r=o+8|0;c[r>>2]=0;p=r+4|0;c[p>>2]=0;t=a+4|0;gE(c[t>>2]|0);w=c[t>>2]|0;if((c[w+16>>2]|0)==8){w=c[w+24>>2]|0;w=jd[c[(c[w>>2]|0)+48>>2]&511](w)|0}else{w=-1}B=c[b>>2]|0;if((B|0)!=7){c[A>>2]=B;c[s+4>>2]=7;Qe(0,191224,s);tc()}s=b+8|0;Yu(c[s>>2]|0,191128,o,j)|0;if((c[q>>2]|0)==1){z=c[r>>2]|0;Of(o)}else{j=c[t>>2]|0;if((c[j+16>>2]|0)==8){j=c[j+24>>2]|0;j=jd[c[(c[j>>2]|0)+48>>2]&511](j)|0}else{j=-1}Qe(j,191136,z);Of(o);z=0}j=c[a>>2]|0;do{if((j|0)!=0){if(!(mn(j,w,x)|0)){break}z=(c[y>>2]|0)-w|0}}while(0);x=c[t>>2]|0;if((c[x+16>>2]|0)!=8){B=0;i=k;return B|0}x=c[x+24>>2]|0;if((x|0)==0){B=0;i=k;return B|0}x=jd[c[(c[x>>2]|0)+64>>2]&511](x)|0;y=c[t>>2]|0;if((c[y>>2]|0)!=-3){c[y>>2]=-3;y=c[t>>2]|0;w=w+ -1|0}if((c[y+16>>2]|0)==8){B=c[y+24>>2]|0;Gd[c[(c[B>>2]|0)+52>>2]&255](B,w+z|0,0)}fG(a,-1);fG(a,-1);y=a+16|0;do{if((c[y>>2]|0)==10){if((Qc(c[a+24>>2]|0,191176)|0)!=0){v=22;break}fG(a,-1);n=z}else{v=22}}while(0);do{if((v|0)==22){v=c[t>>2]|0;if((c[v+16>>2]|0)==8){v=c[v+24>>2]|0;v=jd[c[(c[v>>2]|0)+48>>2]&511](v)|0}else{v=-1}Qe(v,191192,u);if((c[a>>2]|0)==0){n=z+5e3|0;break}u=a+24|0;while(1){if((c[y>>2]|0)==10){if((Qc(c[u>>2]|0,191176)|0)==0){break}}v=c[a>>2]|0;z=c[t>>2]|0;if((c[z+16>>2]|0)==8){z=c[z+24>>2]|0;z=jd[c[(c[z>>2]|0)+48>>2]&511](z)|0}else{z=-1}if((nn(v,z)|0)!=(g|0)){break}if((c[y>>2]|0)==12){break}fG(a,-1)}a=c[t>>2]|0;if((c[a+16>>2]|0)==8){a=c[a+24>>2]|0;a=jd[c[(c[a>>2]|0)+48>>2]&511](a)|0}else{a=-1}a=a-w|0;if((c[y>>2]|0)!=10){n=a;break}if((Qc(c[u>>2]|0,191176)|0)!=0){n=a;break}c[p>>2]=0;c[q>>2]=1;c[r>>2]=a;p=c[b>>2]|0;if((p|0)==7){Wu(c[s>>2]|0,191128,o);Of(o);n=a;break}else{c[m>>2]=p;c[l+4>>2]=7;Qe(0,191224,l);tc()}}}while(0);l=Cd[c[(c[x>>2]|0)+96>>2]&63](x,w,1,n,b)|0;if((d|0)!=0){B=FW(316)|0;Fu(B,l,d,e,f,g,h);l=B}B=qj(l,b)|0;i=k;return B|0}function hG(a){a=a|0;i=i;return}function iG(a){a=a|0;i=i;return}function jG(a,b){a=a|0;b=b|0;var d=0;d=i;c[a+12>>2]=b;b=b>>>0>1073741823?-1:b<<2;c[a>>2]=GW(b)|0;c[a+4>>2]=GW(b)|0;c[a+8>>2]=-1;i=d;return}function kG(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=a+8|0;g=c[a>>2]|0;if((c[d>>2]|0)>=0){e=a+4|0;f=0;while(1){g=c[g+(f<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g)}g=c[(c[e>>2]|0)+(f<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g)}g=c[a>>2]|0;if((f|0)<(c[d>>2]|0)){f=f+1|0}else{break}}}if((g|0)!=0){IW(g)}a=c[a+4>>2]|0;if((a|0)==0){i=b;return}IW(a);i=b;return}function lG(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;f=a+8|0;if((c[f>>2]|0)<0){j=0;i=d;return j|0}j=c[c[a>>2]>>2]|0;if(Bd[c[(c[j>>2]|0)+8>>2]&255](j,b)|0){j=c[c[a+4>>2]>>2]|0;i=d;return j|0}if((c[f>>2]|0)<1){j=0;i=d;return j|0}else{g=1}while(1){j=c[(c[a>>2]|0)+(g<<2)>>2]|0;if(Bd[c[(c[j>>2]|0)+8>>2]&255](j,b)|0){break}if((g|0)<(c[f>>2]|0)){g=g+1|0}else{a=0;e=10;break}}if((e|0)==10){i=d;return a|0}j=c[a>>2]|0;f=c[j+(g<<2)>>2]|0;b=a+4|0;e=c[(c[b>>2]|0)+(g<<2)>>2]|0;if((g|0)>0){while(1){h=g+ -1|0;c[j+(g<<2)>>2]=c[j+(h<<2)>>2];j=c[b>>2]|0;c[j+(g<<2)>>2]=c[j+(h<<2)>>2];j=c[a>>2]|0;if((h|0)>0){g=h}else{break}}}c[j>>2]=f;c[c[b>>2]>>2]=e;j=e;i=d;return j|0}function mG(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;g=a+8|0;h=c[g>>2]|0;j=h+1|0;f=a+12|0;if((h|0)==((c[f>>2]|0)+ -1|0)){j=c[(c[a>>2]|0)+(h<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[g>>2]|0}g=c[(c[a+4>>2]|0)+(h<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g)}j=(c[f>>2]|0)+ -1|0}else{c[g>>2]=j}f=a+4|0;if((j|0)<=0){j=a;j=c[j>>2]|0;c[j>>2]=b;j=f;j=c[j>>2]|0;c[j>>2]=d;i=e;return}while(1){g=j+ -1|0;h=c[a>>2]|0;c[h+(j<<2)>>2]=c[h+(g<<2)>>2];h=c[f>>2]|0;c[h+(j<<2)>>2]=c[h+(g<<2)>>2];if((g|0)>0){j=g}else{break}}j=a;j=c[j>>2]|0;c[j>>2]=b;j=f;j=c[j>>2]|0;c[j>>2]=d;i=e;return}function nG(a){a=a|0;i=i;return c[a+12>>2]|0}function oG(a){a=a|0;i=i;return(c[a+8>>2]|0)+1|0}function pG(a,b){a=a|0;b=b|0;i=i;return c[(c[a+4>>2]|0)+(b<<2)>>2]|0}function qG(a,b){a=a|0;b=b|0;i=i;return c[(c[a>>2]|0)+(b<<2)>>2]|0}function rG(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;f=FW(16)|0;c[f+12>>2]=b;b=b>>>0>1073741823?-1:b<<2;c[f>>2]=GW(b)|0;c[f+4>>2]=GW(b)|0;c[f+8>>2]=-1;c[a+4>>2]=f;c[a>>2]=d;i=e;return}function sG(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;a=c[a+4>>2]|0;if((a|0)==0){i=b;return}e=a+8|0;g=c[a>>2]|0;if((c[e>>2]|0)>=0){d=a+4|0;f=0;while(1){g=c[g+(f<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g)}g=c[(c[d>>2]|0)+(f<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g)}g=c[a>>2]|0;if((f|0)<(c[e>>2]|0)){f=f+1|0}else{break}}}if((g|0)!=0){IW(g)}d=c[a+4>>2]|0;if((d|0)!=0){IW(d)}HW(a);i=b;return}function tG(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;g=i;i=i+16|0;f=g;c[g>>2]=13;g=f+8|0;c[g>>2]=0;c[g+4>>2]=0;g=b+4|0;_m(c[a>>2]|0,c[b>>2]|0,c[g>>2]|0,f,0)|0;d=FW(12)|0;b=c[b>>2]|0;g=c[g>>2]|0;c[d>>2]=191416;c[d+4>>2]=b;c[d+8>>2]=g;g=FWFW(32)|0;ie(ma,la);c[Y>>2]=ma;break}else{c[Z>>2]=$;c[_+4>>2]=3;Qe(0,191704,_);tc()}}}while(0);Of(Q);Y=c[J>>2]|0;if((Y|0)!=7){c[W>>2]=Y;c[X+4>>2]=7;Qe(0,191704,X);tc()}if((c[(Yu(c[ea>>2]|0,191592,Q,0)|0)>>2]|0)==7){c[T>>2]=13;W=P+8|0;c[W>>2]=0;c[W+4>>2]=0;V=c[V>>2]|0;if((V|0)!=7){c[U>>2]=V;c[R+4>>2]=7;Qe(0,191704,R);tc()}do{if((c[(Yu(c[fa>>2]|0,191528,P,0)|0)>>2]|0)==8){a[S]=1;R=c[T>>2]|0;if((R|0)==8){ma=c[W>>2]|0;c[O>>2]=ma;ma=ma+4|0;c[ma>>2]=(c[ma>>2]|0)+1;break}else{c[N>>2]=R;c[M+4>>2]=8;Qe(0,191704,M);tc()}}}while(0);Of(P)}Of(Q)}else{Qe(-1,191600,da);a[b]=0}Of(G);M=c[q>>2]|0;if((M|0)!=7){c[K>>2]=M;c[L+4>>2]=7;Qe(0,191704,L);tc()}do{if((c[(Yu(c[e>>2]|0,191624,G,0)|0)>>2]|0)==3){J=c[J>>2]|0;if((J|0)==3){la=c[ea>>2]|0;ma=FW(32)|0;ie(ma,la);c[H>>2]=ma;break}else{c[E>>2]=J;c[F+4>>2]=3;Qe(0,191704,F);tc()}}}while(0);Of(G)}else{Qe(-1,191632,ha);a[b]=0}}while(0);Of(I);E=1}else{E=0}Of(f);if((a[b]&1)==0){i=g;return}F=c[d>>2]|0;if((F|0)!=7){c[A>>2]=F;c[z+4>>2]=7;Qe(0,191704,z);tc()}do{if((c[(Yu(c[C>>2]|0,191480,f,0)|0)>>2]|0)==7){c[B>>2]=13;z=w+8|0;c[z>>2]=0;c[z+4>>2]=0;z=c[q>>2]|0;if((z|0)!=7){c[x>>2]=z;c[y+4>>2]=7;Qe(0,191704,y);tc()}if((c[(Yu(c[e>>2]|0,191656,w,0)|0)>>2]|0)==7){DG(o,w)}Of(w);x=c[q>>2]|0;if((x|0)!=7){c[u>>2]=x;c[v+4>>2]=7;Qe(0,191704,v);tc()}if((c[(Yu(c[e>>2]|0,191664,w,0)|0)>>2]|0)==7){DG(k,w)}Of(w)}else{if(!E){break}Qe(-1,191672,D);a[b]=0}}while(0);Of(f);u=c[d>>2]|0;if((u|0)!=7){c[s>>2]=u;c[r+4>>2]=7;Qe(0,191704,r);tc()}if((c[(Yu(c[C>>2]|0,191696,f,0)|0)>>2]|0)==7){c[t>>2]=13;r=l+8|0;c[r>>2]=0;c[r+4>>2]=0;r=c[q>>2]|0;if((r|0)!=7){c[n>>2]=r;c[p+4>>2]=7;Qe(0,191704,p);tc()}if((c[(Yu(c[e>>2]|0,191656,l,0)|0)>>2]|0)==7){EG(o,l)}Of(l);n=c[q>>2]|0;if((n|0)!=7){c[m>>2]=n;c[j+4>>2]=7;Qe(0,191704,j);tc()}if((c[(Yu(c[e>>2]|0,191664,l,0)|0)>>2]|0)==7){EG(k,l)}Of(l)}Of(f);i=g;return}function HG(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=i;i=i+16|0;e=d;if((c[a>>2]|0)!=8){f=0;i=b;return f|0}f=c[a+8>>2]|0;f=jd[c[(c[f>>2]|0)+72>>2]&511](f)|0;if((f|0)==0){f=0;i=b;return f|0}c[d>>2]=13;g=e+8|0;c[g>>2]=0;c[g+4>>2]=0;Yu(f,191856,e,0)|0;if(((c[d>>2]|0)+ -1|0)>>>0>=2){g=0;i=b;return g|0}g=FW(40)|0;IG(g,a,1);i=b;return g|0}function IG(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0.0;e=i;n=i;i=i+8|0;o=n;s=i;i=i+8|0;r=s;g=i;i=i+16|0;f=g;p=i;i=i+16|0;m=p;q=FW(16)|0;c[a>>2]=q;c[q+8>>2]=0;c[q+12>>2]=0;c[q>>2]=5;Mf(b,q)|0;q=a+8|0;c[q>>2]=0;j=a+16|0;h[j>>3]=0.0;k=a+24|0;c[k>>2]=1;l=a+28|0;c[l>>2]=8;b=a+32|0;c[b>>2]=0;if(!d){i=e;return}c[g>>2]=13;d=f+8|0;c[d>>2]=0;c[d+4>>2]=0;t=c[a>>2]|0;u=c[t>>2]|0;if((u|0)!=8){c[s>>2]=u;c[r+4>>2]=8;Qe(0,191928,r);tc()}r=c[t+8>>2]|0;r=jd[c[(c[r>>2]|0)+72>>2]&511](r)|0;Yu(r,191864,f,0)|0;do{if((c[g>>2]|0)==5){c[a+4>>2]=0}else{c[p>>2]=13;s=m+8|0;c[s>>2]=0;c[s+4>>2]=0;c[a+4>>2]=1;if(!(CH(f,m)|0)){break}p=c[p>>2]|0;if((p|0)==3){t=c[s>>2]|0;u=FW(32)|0;ie(u,t);c[q>>2]=u;Of(m);break}else{c[n>>2]=p;c[o+4>>2]=3;Qe(0,191928,o);tc()}}}while(0);Of(f);Yu(r,191856,f,0)|0;m=c[g>>2]|0;if((m+ -1|0)>>>0<2){if((m|0)==1){v=+(c[d>>2]|0)}else{v=+h[d>>3]}h[j>>3]=v}Of(f);Yu(r,191872,f,0)|0;if((c[g>>2]|0)==1){c[k>>2]=c[d>>2]}Of(f);Yu(r,191880,f,0)|0;if((c[g>>2]|0)==1){c[l>>2]=c[d>>2]}Of(f);Yu(r,191888,f,0)|0;do{if((c[g>>2]|0)==4){g=c[d>>2]|0;if((Qc(191896,g|0)|0)==0){c[b>>2]=0;break}if((Qc(191904,g|0)|0)==0){c[b>>2]=1;break}if((Qc(191912,g|0)|0)==0){c[b>>2]=2;break}if((Qc(191920,g|0)|0)!=0){break}c[b>>2]=3}}while(0);Of(f);i=e;return}function JG(a){a=a|0;var b=0,d=0;b=i;d=c[a+8>>2]|0;if((d|0)!=0){ke(d);HW(d)}Of(c[a>>2]|0);a=c[a>>2]|0;if((a|0)==0){i=b;return}HW(a);i=b;return}function KG(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;a=i;b=i;i=i+8192|0;e=i;i=i+16|0;Vt(e,d,0);d=c[q>>2]|0;f=0;do{g=Ta(b|0,1,8192,d|0)|0;Xt(e,b,8192)|0;f=g+f|0;}while((g|0)==8192);i=a;return f|0}function LG(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return 0}function MG(a){a=a|0;i=i;return}function NG(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function OG(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;c[b>>2]=192104;c[b+8>>2]=d;c[b+4>>2]=d;c[b+12>>2]=e;a[b+16|0]=f&1;i=i;return}function PG(b){b=b|0;var d=0;d=i;c[b>>2]=192104;if((a[b+16|0]&1)==0){HW(b);i=d;return}Fe(c[b+4>>2]|0);HW(b);i=d;return}function QG(b){b=b|0;var d=0;d=i;c[b>>2]=192104;if((a[b+16|0]&1)==0){i=d;return}Fe(c[b+4>>2]|0);i=d;return}function RG(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;f=i;i=i+8|0;h=i;i=i+8|0;g=i;i=i+8|0;e=yc(a|0,192112)|0;if((e|0)==0){c[g>>2]=a;Qe(-1,192120,g);h=0;i=d;return h|0}if((jc(e|0,0,2)|0)!=0){c[h>>2]=a;Qe(-1,192144,h);mc(e|0)|0;h=0;i=d;return h|0}g=jb(e|0)|0;if((jc(e|0,0,0)|0)!=0){c[f>>2]=a;Qe(-1,192176,f);mc(e|0)|0;h=0;i=d;return h|0}a=we(g)|0;if((Ta(a|0,1,g|0,e|0)|0)==(g|0)){mc(e|0)|0;c[b>>2]=g;h=a;i=d;return h|0}else{Fe(a);mc(e|0)|0;h=0;i=d;return h|0}return 0}function SG(b,e,f){b=b|0;e=e|0;f=f|0;var g=0;g=i;do{if((e|0)>=0){if((c[b+12>>2]|0)<=(e|0)){break}e=d[(c[b+8>>2]|0)+e|0]|0;i=g;return e|0}}while(0);a[f]=0;e=0;i=g;return e|0}function TG(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0;g=i;do{if((e|0)>=0){h=e+1|0;if((h|0)>=(c[b+12>>2]|0)){break}f=c[b+8>>2]|0;b=(d[f+e|0]|0)<<8;f=b|(d[f+h|0]|0);h=(b&32768|0)==0?f:f|-65536;i=g;return h|0}}while(0);a[f]=0;h=0;i=g;return h|0}function UG(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0;g=i;do{if((e|0)>=0){h=e+1|0;if((h|0)>=(c[b+12>>2]|0)){break}b=c[b+8>>2]|0;h=(d[b+e|0]|0)<<8|(d[b+h|0]|0);i=g;return h|0}}while(0);a[f]=0;h=0;i=g;return h|0}function VG(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0;g=i;do{if((e|0)>=0){h=e+3|0;if((h|0)>=(c[b+12>>2]|0)){break}b=c[b+8>>2]|0;h=(((d[b+e|0]|0)<<8|(d[b+(e+1)|0]|0))<<8|(d[b+(e+2)|0]|0))<<8|(d[b+h|0]|0);i=g;return h|0}}while(0);a[f]=0;h=0;i=g;return h|0}function WG(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;do{if((e|0)>=0){if((f+e|0)>(c[b+12>>2]|0)){break}if((f|0)<=0){j=0;i=h;return j|0}b=c[b+8>>2]|0;g=0;j=0;while(1){j=d[b+(g+e)|0]|0|j<<8;g=g+1|0;if((g|0)<(f|0)){}else{break}}i=h;return j|0}}while(0);a[g]=0;j=0;i=h;return j|0}function XG(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((d|b|0)<=-1){a=0;i=e;return a|0}a=(d+b|0)<=(c[a+12>>2]|0);i=e;return a|0}function YG(b,d){b=b|0;d=d|0;var e=0,f=0;f=i;e=FW(32)|0;OG(e,b,d,0);c[e>>2]=201656;c[e+20>>2]=0;c[e+24>>2]=0;a[e+28|0]=0;i=f;return e|0}function ZG(b){b=b|0;var d=0,e=0,f=0;d=i;e=i;i=i+8|0;b=RG(b,e)|0;if((b|0)==0){b=0;i=d;return b|0}f=FWFW(12)|0;j=c[j>>2]|0;a[f]=b&1;a[f+1|0]=d&1;c[f+4>>2]=j;qK(j,k,h,g);b=c[k>>2]|0;do{if((b|0)>2){g=1}else{if((b|0)!=2){g=0;break}h=c[h>>2]|0;if((h|0)>1){g=1;break}if((h|0)!=1){g=0;break}g=(c[g>>2]|0)>7|0}}while(0);a[f+8|0]=g;k=f;i=e;return k|0}function gH(a){a=a|0;var b=0;b=i;GL(c[a+4>>2]|0)|0;i=b;return}function hH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;a=nH(a,b,c,d)|0;i=e;return a|0}function iH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;a=nH(a,b,c,d)|0;i=e;return a|0}function jH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;a=nH(a,b,c,d)|0;i=e;return a|0}function kH(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;g=i;i=i+8|0;h=g;do{if((a[b+8|0]&1)==0){if((a[e]&1)==0){j=Tn(c[e+8>>2]|0,c[e+12>>2]|0)|0}else{j=Vn(c[(c[e+4>>2]|0)+28>>2]|0)|0}if((j|0)==0){c[g>>2]=0;h=0;g=0;break}else{k=_n(j,h)|0;fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[g>>2]|0;g=k;break}}else{c[g>>2]=0;h=0;g=0}}while(0);b=oH(b,d,e,g,h)|0;if((b|0)!=0){i=f;return b|0}Fe(g);i=f;return b|0}function lH(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;g=i;i=i+8|0;j=g;c[g>>2]=0;do{if((a[b+8|0]&1)==0){if((a[e]&1)==0){h=Cn(c[e+8>>2]|0,c[e+12>>2]|0,0)|0}else{h=Dn(c[(c[e+4>>2]|0)+28>>2]|0,0)|0}if((h|0)==0){h=0;break}if((a[h+64|0]&1)==0){j=0}else{j=Mn(h,j)|0}fd[c[(c[h>>2]|0)+4>>2]&511](h);h=j}else{h=0}}while(0);b=oH(b,d,e,h,c[g>>2]|0)|0;if((b|0)!=0){i=f;return b|0}Fe(h);i=f;return b|0}function mH(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;a=pH(a,b,c,d,e,f)|0;i=g;return a|0}function nH(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;j=i;i=i+8|0;l=j;k=c[d+4>>2]|0;do{if((a[f]&1)==0){if((NJ(k,c[f+8>>2]|0,c[f+12>>2]|0,0,l)|0)==0){break}else{d=0}i=h;return d|0}else{if((LJ(k,c[(c[f+4>>2]|0)+28>>2]|0,0,l)|0)==0){break}else{d=0}i=h;return d|0}}while(0);k=ye(256,4)|0;l=0;do{m=k+(l<<1)|0;b[m>>1]=0;n=c[g+(l<<2)>>2]|0;if((n|0)!=0){b[m>>1]=gK(c[j>>2]|0,n)|0}l=l+1|0;}while((l|0)<256);n=FW(40)|0;m=c[j>>2]|0;Wp(n,e,f);c[n>>2]=201936;c[n+20>>2]=d;c[n+24>>2]=m;c[n+28>>2]=k;c[n+32>>2]=256;a[n+36|0]=0;i=h;return n|0}function oH(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0;h=i;j=i;i=i+8|0;k=j;l=c[b+4>>2]|0;do{if((a[e]&1)==0){if((NJ(l,c[e+8>>2]|0,c[e+12>>2]|0,0,k)|0)==0){break}else{d=0}i=h;return d|0}else{if((LJ(l,c[(c[e+4>>2]|0)+28>>2]|0,0,k)|0)==0){break}else{d=0}i=h;return d|0}}while(0);l=FW(40)|0;k=c[j>>2]|0;Wp(l,d,e);c[l>>2]=201936;c[l+20>>2]=b;c[l+24>>2]=k;c[l+28>>2]=f;c[l+32>>2]=g;a[l+36|0]=0;g=l;i=h;return g|0}function pH(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;j=i;m=i;i=i+8|0;k=m;l=c[b+4>>2]|0;do{if((a[e]&1)==0){if((NJ(l,c[e+8>>2]|0,c[e+12>>2]|0,h,k)|0)==0){break}else{e=0}i=j;return e|0}else{if((LJ(l,c[(c[e+4>>2]|0)+28>>2]|0,h,k)|0)==0){break}else{e=0}i=j;return e|0}}while(0);h=FW(40)|0;m=c[m>>2]|0;Wp(h,d,e);c[h>>2]=201936;c[h+20>>2]=b;c[h+24>>2]=m;c[h+28>>2]=f;c[h+32>>2]=g;a[h+36|0]=1;i=j;return h|0}function qH(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=201936;d=c[a+24>>2]|0;if((d|0)!=0){SJ(d)|0}d=c[a+28>>2]|0;if((d|0)==0){Yp(a);HW(a);i=b;return}Fe(d);Yp(a);HW(a);i=b;return}function rH(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=201936;d=c[a+24>>2]|0;if((d|0)!=0){SJ(d)|0}d=c[a+28>>2]|0;if((d|0)==0){Yp(a);i=b;return}Fe(d);Yp(a);i=b;return}function sH(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=i;d=FW(184)|0;LI(d,a,b,c);uH(d);i=e;return d|0}function tH(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var j=0;j=i;c[b>>2]=202e3;c[b+4>>2]=d;_p(d);h[b+8>>3]=+h[e>>3];h[b+16>>3]=+h[e+8>>3];h[b+24>>3]=+h[e+16>>3];h[b+32>>3]=+h[e+24>>3];h[b+40>>3]=+h[f>>3];h[b+48>>3]=+h[f+8>>3];h[b+56>>3]=+h[f+16>>3];h[b+64>>3]=+h[f+24>>3];a[b+72|0]=g&1;bX(b+76|0,0,24)|0;i=j;return}function uH(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;e=(c[b+84>>2]|0)+3-(c[b+76>>2]|0)|0;c[b+100>>2]=e;f=(c[b+88>>2]|0)-(c[b+80>>2]|0)+3|0;c[b+104>>2]=f;if((a[b+72|0]&1)==0){g=da(e+7>>3,f)|0;c[b+108>>2]=g}else{g=da(e,f)|0;c[b+108>>2]=g}e=b+116|0;c[e>>2]=8;do{if((g|0)<65){c[b+112>>2]=32;h=256}else{if((g|0)<129){c[b+112>>2]=16;h=128;break}if((g|0)<257){c[b+112>>2]=8;h=64;break}if((g|0)<513){c[b+112>>2]=4;h=32;break}f=b+112|0;if((g|0)<1025){c[f>>2]=2;h=16;break}else{c[f>>2]=1;h=8;break}}}while(0);f=b+112|0;j=ze(h,g)|0;c[b+92>>2]=j;if((j|0)==0){c[e>>2]=0;i=d;return}g=ye(da(c[e>>2]|0,c[f>>2]|0)|0,28)|0;b=b+96|0;c[b>>2]=g;h=c[e>>2]|0;if((da(h,c[f>>2]|0)|0)>0){j=0}else{i=d;return}while(1){c[g+(j*28|0)+8>>2]=h+ -1&j;j=j+1|0;h=c[e>>2]|0;if((j|0)>=(da(h,c[f>>2]|0)|0)){break}g=c[b>>2]|0}i=d;return}function vH(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=202e3;$p(c[a+4>>2]|0);d=c[a+92>>2]|0;if((d|0)!=0){Fe(d)}d=c[a+96>>2]|0;if((d|0)==0){HW(a);i=b;return}Fe(d);HW(a);i=b;return}function wH(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=202e3;$p(c[a+4>>2]|0);d=c[a+92>>2]|0;if((d|0)!=0){Fe(d)}a=c[a+96>>2]|0;if((a|0)==0){i=b;return}Fe(a);i=b;return}function xH(d,e,f,g,h,j,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;n=i;q=i;i=i+32|0;r=q;s=d+72|0;if((a[s]&1)==0){o=3}else{if((c[d+104>>2]|0)>50){o=3}}if((o|0)==3){f=0;g=0}o=d+116|0;w=c[o>>2]|0;p=da((c[d+112>>2]|0)+ -1&e,w)|0;a:do{if((w|0)>0){t=d+96|0;x=c[t>>2]|0;u=0;b:while(1){v=u+p|0;do{if((c[x+(v*28|0)+8>>2]|0)<0){if((c[x+(v*28|0)>>2]|0)!=(e|0)){break}if((b[x+(v*28|0)+4>>1]|0)!=(f|0)){break}if((b[x+(v*28|0)+6>>1]|0)==(g|0)){break b}}}while(0);u=u+1|0;if((u|0)>=(w|0)){break a}}c[h>>2]=c[x+(v*28|0)+12>>2];e=h+4|0;c[e>>2]=c[(c[t>>2]|0)+(v*28|0)+16>>2];r=h+8|0;c[r>>2]=c[(c[t>>2]|0)+(v*28|0)+20>>2];q=h+12|0;c[q>>2]=c[(c[t>>2]|0)+(v*28|0)+24>>2];g=c[o>>2]|0;if((g|0)>0){f=0;do{do{if((f|0)!=(u|0)){A=c[t>>2]|0;w=A+((f+p|0)*28|0)+8|0;x=c[w>>2]|0;if((x&2147483647)>>>0>=(c[A+(v*28|0)+8>>2]&2147483647)>>>0){break}c[w>>2]=x+1;g=c[o>>2]|0}}while(0);f=f+1|0;}while((f|0)<(g|0))}c[(c[t>>2]|0)+(v*28|0)+8>>2]=-2147483648;a[h+16|0]=a[s]&1;c[h+20>>2]=(c[d+92>>2]|0)+(da(c[d+108>>2]|0,v)|0);a[h+24|0]=0;z=j-(c[h>>2]|0)|0;A=k-(c[e>>2]|0)|0;c[m>>2]=Jp(l,z,A,z+ -1+(c[r>>2]|0)|0,A+ -1+(c[q>>2]|0)|0)|0;A=1;i=n;return A|0}}while(0);if(!(Fd[c[(c[d>>2]|0)+12>>2]&7](d,e,f,g,r,j,k,l,m)|0)){A=0;i=n;return A|0}if((c[m>>2]|0)==1){a[h+24|0]=0;if((a[r+24|0]&1)==0){A=1;i=n;return A|0}Fe(c[r+20>>2]|0);A=1;i=n;return A|0}j=r+8|0;m=c[j>>2]|0;do{if((m|0)<=(c[d+100>>2]|0)){k=r+12|0;l=c[k>>2]|0;if((l|0)>(c[d+104>>2]|0)){break}if((a[s]&1)==0){m=m+7>>3}s=da(m,l)|0;v=c[o>>2]|0;if((v|0)==0){$W(h|0,q|0,28)|0;A=1;i=n;return A|0}if((v|0)>0){l=d+96|0;m=f&65535;t=g&65535;f=r+4|0;g=d+92|0;u=d+108|0;d=r+20|0;w=0;z=0;do{y=w+p|0;x=(c[l>>2]|0)+(y*28|0)+8|0;A=c[x>>2]|0;if((A&2147483647|0)==(v+ -1|0)){c[x>>2]=-2147483648;c[(c[l>>2]|0)+(y*28|0)>>2]=e;b[(c[l>>2]|0)+(y*28|0)+4>>1]=m;b[(c[l>>2]|0)+(y*28|0)+6>>1]=t;c[(c[l>>2]|0)+(y*28|0)+12>>2]=c[q>>2];c[(c[l>>2]|0)+(y*28|0)+16>>2]=c[f>>2];c[(c[l>>2]|0)+(y*28|0)+20>>2]=c[j>>2];c[(c[l>>2]|0)+(y*28|0)+24>>2]=c[k>>2];z=(c[g>>2]|0)+(da(c[u>>2]|0,y)|0)|0;$W(z|0,c[d>>2]|0,s|0)|0}else{c[x>>2]=A+1}w=w+1|0;v=c[o>>2]|0;}while((w|0)<(v|0))}else{z=0}$W(h|0,q|0,28)|0;c[h+20>>2]=z;a[h+24|0]=0;if((a[r+24|0]&1)==0){A=1;i=n;return A|0}Fe(c[r+20>>2]|0);A=1;i=n;return A|0}}while(0);$W(h|0,q|0,28)|0;A=1;i=n;return A|0}function yH(a,b){a=a|0;b=b|0;i=i;return -1.0}function zH(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;g=i;f=b+4|0;c[f>>2]=e;h=ye(e,4)|0;c[b>>2]=h;a:do{if((c[f>>2]|0)>0){j=0;while(1){c[h+(j<<2)>>2]=0;j=j+1|0;if((j|0)>=(c[f>>2]|0)){break a}h=c[b>>2]|0}}}while(0);if((e|0)>0){j=0}else{i=g;return}do{h=d+(j*12|0)|0;m=c[h>>2]|0;k=a[m]|0;if(k<<24>>24==0){l=0}else{l=0;while(1){l=(l*17|0)+(k&255)|0;m=m+1|0;k=a[m]|0;if(k<<24>>24==0){break}else{}}}m=(l>>>0)%((c[f>>2]|0)>>>0)|0;c[d+(j*12|0)+8>>2]=c[(c[b>>2]|0)+(m<<2)>>2];c[(c[b>>2]|0)+(m<<2)>>2]=h;j=j+1|0;}while((j|0)<(e|0));i=g;return}function AH(a){a=a|0;var b=0;b=i;Fe(c[a>>2]|0);i=b;return}function BH(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;h=i;j=a[e]|0;if(j<<24>>24==0){l=0}else{l=0;k=e;while(1){l=(l*17|0)+(j&255)|0;k=k+1|0;j=a[k]|0;if(j<<24>>24==0){break}else{}}}d=c[(c[d>>2]|0)+(((l>>>0)%((c[d+4>>2]|0)>>>0)|0)<<2)>>2]|0;if((d|0)==0){l=0;i=h;return l|0}while(1){if((Qc(c[d>>2]|0,e|0)|0)==0){break}d=c[d+8>>2]|0;if((d|0)==0){f=0;g=7;break}}if((g|0)==7){i=h;return f|0}b[f>>1]=b[d+4>>1]|0;l=1;i=h;return l|0}function CH(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;g=i;l=i;i=i+8|0;d=i;i=i+8|0;e=i;i=i+8|0;f=e;j=i;i=i+8|0;h=j;k=c[a>>2]|0;if((k|0)==3){Mf(a,b)|0;l=1;i=g;return l|0}else if((k|0)==7){k=a+8|0;if((c[(Yu(c[k>>2]|0,202048,b,0)|0)>>2]|0)==3){l=1;i=g;return l|0}Of(b);l=c[a>>2]|0;if((l|0)!=7){c[j>>2]=l;c[h+4>>2]=7;Qe(0,202096,h);tc()}if((c[(Yu(c[k>>2]|0,202056,b,0)|0)>>2]|0)==3){l=1;i=g;return l|0}Of(b);h=c[a>>2]|0;if((h|0)!=7){c[e>>2]=h;c[f+4>>2]=7;Qe(0,202096,f);tc()}if((c[(Yu(c[k>>2]|0,202064,b,0)|0)>>2]|0)==3){l=1;i=g;return l|0}Of(b);Qe(-1,202072,d);l=0;i=g;return l|0}else{Qe(-1,202072,l);l=0;i=g;return l|0}return 0}function DH(a){a=a|0;i=i;return}function EH(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;e=i;i=i+16|0;d=e;f=d+4|0;c[f>>2]=0;c[d+8>>2]=0;c[e>>2]=f;a=FH(a,d)|0;xn(d,c[d+4>>2]|0);i=b;return a|0}function FH(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=i;f=i;i=i+8|0;g=f;k=i;i=i+8|0;l=k;n=i;i=i+8|0;r=i;i=i+8|0;o=i;i=i+16|0;j=o;c[o>>2]=13;m=j+8|0;c[m>>2]=0;c[m+4>>2]=0;q=c[b>>2]|0;do{if((q|0)==8){q=c[b+8>>2]|0;q=jd[c[(c[q>>2]|0)+72>>2]&511](q)|0}else if((q|0)==7){q=c[b+8>>2]|0}else if((q|0)==4){if((Qc(c[b+8>>2]|0,202168)|0)!=0){p=8;break}b=FW(1048)|0;c[b>>2]=202568;c[b+4>>2]=32;c[b+8>>2]=32;f=0;do{h[b+16+(f<<4)>>3]=0.0;h[b+16+(f<<4)+8>>3]=1.0;f=f+1|0;}while((f|0)<32);a[b+1040|0]=0;r=b;i=e;return r|0}else{p=8}}while(0);if((p|0)==8){Qe(-1,202184,r);r=0;i=e;return r|0}if((c[(Yu(q,202224,j,0)|0)>>2]|0)!=1){Qe(-1,202240,n);Of(j);r=0;i=e;return r|0}n=c[o>>2]|0;if((n|0)!=1){c[k>>2]=n;c[l+4>>2]=1;Qe(0,205232,l);tc()}k=c[m>>2]|0;Of(j);if((k|0)==4){r=FW(1072)|0;WH(r,b,q);b=r}else if((k|0)==3){b=FW(1072)|0;QH(b,0,q,d)}else if((k|0)==2){b=FW(1576)|0;NH(b,0,q)}else if((k|0)==0){r=FWFW(20)|0;c[fa+16>>2]=c[ha>>2];ha=c[O>>2]|0;c[fa>>2]=0;c[fa+4>>2]=0;c[fa+8>>2]=ha;c[ga>>2]=fa;ha=c[c[S>>2]>>2]|0;if((ha|0)!=0){c[S>>2]=ha;fa=c[ga>>2]|0}un(c[aa>>2]|0,fa);c[ba>>2]=(c[ba>>2]|0)+1}fa=c[ea+4>>2]|0;if((fa|0)==0){while(1){fa=c[ea+8>>2]|0;if((ea|0)==(c[fa>>2]|0)){ea=fa;break}else{ea=fa}}}else{ea=fa;while(1){fa=c[ea>>2]|0;if((fa|0)==0){break}else{ea=fa}}}}while((ea|0)!=($|0))}ea=c[m>>2]|0;if((ea|0)!=6){H=23;break}vt(c[p>>2]|0,da,s)|0;if((c[o>>2]|0)==9){ea=c[n>>2]|0;ga=c[ca>>2]|0;fa=(ga|0)==0;do{if(fa){H=40}else{ja=ga;ia=ca;d:while(1){ha=ja;while(1){if((c[ha+16>>2]|0)>=(ea|0)){break}ha=c[ha+4>>2]|0;if((ha|0)==0){ha=ia;break d}}ja=c[ha>>2]|0;if((ja|0)==0){break}else{ia=ha}}if((ha|0)!=(ca|0)){if((ea|0)>=(c[ha+16>>2]|0)){J=ga;break c}}if(fa){H=40;break}while(1){H=c[ga+16>>2]|0;if((ea|0)<(H|0)){H=c[ga>>2]|0;if((H|0)==0){H=35;break}else{ga=H;continue}}if((H|0)>=(ea|0)){H=39;break}fa=ga+4|0;H=c[fa>>2]|0;if((H|0)==0){H=38;break}else{ga=H}}if((H|0)==35){H=0;c[Q>>2]=ga;break}else if((H|0)==38){H=0;c[Q>>2]=ga;ga=fa;break}else if((H|0)==39){H=0;c[Q>>2]=ga;ga=R;break}}}while(0);if((H|0)==40){H=0;c[Q>>2]=ca;ga=ca}if((c[ga>>2]|0)==0){fa=FWFW(16)|0;jG(n,5);c[b+1064>>2]=n;if(!(GH(b,e)|0)){i=g;return}if((a[b+1040|0]&1)==0){Qe(-1,203816,m);i=g;return}if((c[d>>2]|0)!=8){Qe(-1,203856,l);i=g;return}l=c[d+8>>2]|0;n=FW(32)|0;ee(n);c[k>>2]=n;fd[c[(c[l>>2]|0)+12>>2]&511](l);k=XH(b,l)|0;if((k|0)==0){Qe(-1,203896,j);i=g;return}if((te(k,203888)|0)!=0){Qe(-1,203896,h);ke(k);HW(k);i=g;return}ke(k);HW(k);c[f>>2]=0;if(YH(b,l,f)|0){fd[c[(c[l>>2]|0)+16>>2]&511](l);a[b+1060|0]=1;n=FW(1608)|0;c[n+1600>>2]=100;c[b+1052>>2]=n}fd[c[(c[l>>2]|0)+16>>2]&511](l);i=g;return}function XH(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=FW(32)|0;ee(e);a=a+1044|0;j=0;a:while(1){while(1){k=jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;if((k|0)==-1){f=-1;break a}g=k&255;me(c[a>>2]|0,g)|0;if(j){break}if((k|0)==37){j=1;continue a}if((xc(k|0)|0)==0){h=9;break a}}if(!((k|0)==10|(k|0)==13)){j=1;continue}j=0}do{if((h|0)==9){if(!((k|0)==123|(k|0)==125)){f=k;break}me(e,g)|0;i=d;return e|0}}while(0);me(e,f&255)|0;g=jd[c[(c[b>>2]|0)+24>>2]&511](b)|0;h=(g|0)==-1;if((f+ -48|0)>>>0<10|(f+ -45|0)>>>0<2){if(h){i=d;return e|0}while(1){if(!((g+ -48|0)>>>0<10|(g+ -45|0)>>>0<2)){h=18;break}jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;g=g&255;me(c[a>>2]|0,g)|0;me(e,g)|0;g=jd[c[(c[b>>2]|0)+24>>2]&511](b)|0;if((g|0)==-1){h=18;break}}if((h|0)==18){i=d;return e|0}}else{if(h){i=d;return e|0}while(1){if((Qa(g|0)|0)==0){h=18;break}jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;g=g&255;me(c[a>>2]|0,g)|0;me(e,g)|0;g=jd[c[(c[b>>2]|0)+24>>2]&511](b)|0;if((g|0)==-1){h=18;break}}if((h|0)==18){i=d;return e|0}}return 0}function YH(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0.0;f=i;n=i;i=i+8|0;o=n;m=i;i=i+8|0;l=i;i=i+8|0;r=i;i=i+8|0;q=i;i=i+8|0;p=i;i=i+8|0;s=i;i=i+8|0;u=XH(b,d)|0;a:do{if((u|0)!=0){j=b+1056|0;g=b+1048|0;b:while(1){t=u+28|0;v=c[t>>2]|0;y=a[v]|0;do{if(((y<<24>>24)+ -48|0)>>>0<10|(y+ -45<<24>>24&255)<2){while(1){v=v+1|0;w=a[v]|0;if(w<<24>>24==46){v=1;break}else if(w<<24>>24==0){k=6;break}else{}}if((k|0)==6){k=0;v=0}x=c[e>>2]|0;w=c[j>>2]|0;if((w|0)>(x|0)){w=c[g>>2]|0}else{w=w+64|0;c[j>>2]=w;w=Ce(c[g>>2]|0,w,16)|0;c[g>>2]=w;x=c[e>>2]|0}w=w+(x<<4)|0;if(v){c[w>>2]=2;z=+Ie(c[t>>2]|0);h[(c[g>>2]|0)+(c[e>>2]<<4)+8>>3]=z}else{c[w>>2]=1;y=ec(c[t>>2]|0)|0;c[(c[g>>2]|0)+(c[e>>2]<<4)+8>>2]=y}c[e>>2]=(c[e>>2]|0)+1;ke(u);HW(u)}else{if((te(u,203888)|0)!=0){if((te(u,204192)|0)==0){k=38;break b}else{v=-1;w=40;x=0}c:while(1){while(1){if((w-v|0)<=1){break c}y=(w+v|0)/2|0;x=te(u,c[204200+(y<<2)>>2]|0)|0;if((x|0)>0){v=y}else{break}}v=(x|0)<0?v:y;w=y}if((x|0)!=0){k=47;break b}ke(u);HW(u);u=c[e>>2]|0;t=c[j>>2]|0;if((t|0)>(u|0)){t=c[g>>2]|0}else{t=t+64|0;c[j>>2]=t;t=Ce(c[g>>2]|0,t,16)|0;c[g>>2]=t;u=c[e>>2]|0}c[t+(u<<4)>>2]=3;c[(c[g>>2]|0)+(c[e>>2]<<4)+8>>2]=v;c[e>>2]=(c[e>>2]|0)+1;u=XH(b,d)|0;if((u|0)==0){break a}else{continue b}}ke(u);HW(u);u=c[e>>2]|0;c[e>>2]=u+3;t=u+2|0;v=c[j>>2]|0;if((v|0)<=(t|0)){y=v+64|0;c[j>>2]=y;c[g>>2]=Ce(c[g>>2]|0,y,16)|0}if(!(YH(b,d,e)|0)){g=0;k=52;break b}w=XH(b,d)|0;if((w|0)==0){k=19;break b}if((te(w,203888)|0)==0){v=c[e>>2]|0;if(!(YH(b,d,e)|0)){g=0;k=52;break b}ke(w);HW(w);w=XH(b,d)|0;if((w|0)==0){k=23;break b}}else{v=-1}if((te(w,203992)|0)==0){if((v|0)>-1){k=26;break b}c[(c[g>>2]|0)+(u<<4)>>2]=3;c[(c[g>>2]|0)+(u<<4)+8>>2]=40;c[(c[g>>2]|0)+(t<<4)>>2]=4;c[(c[g>>2]|0)+(t<<4)+8>>2]=c[e>>2]}else{if((te(w,204064)|0)!=0){k=32;break b}if((v|0)<0){k=30;break b}c[(c[g>>2]|0)+(u<<4)>>2]=3;c[(c[g>>2]|0)+(u<<4)+8>>2]=41;y=u+1|0;c[(c[g>>2]|0)+(y<<4)>>2]=4;c[(c[g>>2]|0)+(y<<4)+8>>2]=v;c[(c[g>>2]|0)+(t<<4)>>2]=4;c[(c[g>>2]|0)+(t<<4)+8>>2]=c[e>>2]}if((w|0)==0){break}ke(w);HW(w)}}while(0);u=XH(b,d)|0;if((u|0)==0){break a}}if((k|0)==19){Qe(-1,203944,p);y=0;i=f;return y|0}else if((k|0)==23){Qe(-1,203944,q);y=0;i=f;return y|0}else if((k|0)==26){Qe(-1,204e3,r);y=0;i=f;return y|0}else if((k|0)==30){Qe(-1,204072,l);y=0;i=f;return y|0}else if((k|0)==32){Qe(-1,204136,m);if((w|0)==0){y=0;i=f;return y|0}ke(w);HW(w);y=0;i=f;return y|0}else if((k|0)==38){ke(u);HW(u);k=c[e>>2]|0;l=c[j>>2]|0;if((l|0)>(k|0)){j=c[g>>2]|0}else{k=l+64|0;c[j>>2]=k;j=Ce(c[g>>2]|0,k,16)|0;c[g>>2]=j;k=c[e>>2]|0}c[j+(k<<4)>>2]=3;c[(c[g>>2]|0)+(c[e>>2]<<4)+8>>2]=42;c[e>>2]=(c[e>>2]|0)+1;y=1;i=f;return y|0}else if((k|0)==47){c[n>>2]=c[t>>2];Qe(-1,204360,o);ke(u);HW(u);y=0;i=f;return y|0}else if((k|0)==52){i=f;return g|0}}}while(0);Qe(-1,203944,s);y=0;i=f;return y|0}function ZH(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0;e=i;c[b>>2]=203792;$W(b|0,d|0,1072)|0;n=b+1056|0;o=ye(c[n>>2]|0,16)|0;c[b+1048>>2]=o;$W(o|0,c[d+1048>>2]|0,c[n>>2]<<4|0)|0;n=c[d+1044>>2]|0;o=FW(32)|0;ie(o,n);c[b+1044>>2]=o;o=FW(1608)|0;c[o+1600>>2]=100;c[b+1052>>2]=o;$W(o|0,c[d+1052>>2]|0,1608)|0;o=FW(16)|0;d=d+1064|0;jG(o,nG(c[d>>2]|0)|0);b=b+1064|0;c[b>>2]=o;if((oG(c[d>>2]|0)|0)>0){f=0}else{i=e;return}do{g=FW(16)|0;o=qG(c[d>>2]|0,f)|0;c[g>>2]=205072;n=c[o+8>>2]|0;j=c[o+12>>2]|0;o=a[o+4|0]&1;a[g+4|0]=o;l=g+8|0;c[l>>2]=n;a:do{if(o<<24>>24==0){c[g+12>>2]=j}else{m=GW(n>>>0>536870911?-1:n<<3)|0;k=g+12|0;c[k>>2]=m;if((n|0)<=0){break}h[m>>3]=+h[j>>3];if((n|0)<=1){break}h[m+8>>3]=+h[j+8>>3];if((n|0)<=2){break}h[m+16>>3]=+h[j+16>>3];if((n|0)>3){n=3}else{break}while(1){h[m+(n<<3)>>3]=+h[j+(n<<3)>>3];n=n+1|0;if((n|0)>=(c[l>>2]|0)){break a}m=c[k>>2]|0}}}while(0);m=FW(12)|0;k=pG(c[d>>2]|0,f)|0;c[m>>2]=205136;n=c[k+4>>2]|0;k=c[k+8>>2]|0;j=m+4|0;c[j>>2]=n;o=GW(n>>>0>536870911?-1:n<<3)|0;l=m+8|0;c[l>>2]=o;b:do{if((n|0)>0){h[o>>3]=+h[k>>3];if((n|0)<=1){break}h[o+8>>3]=+h[k+8>>3];if((n|0)<=2){break}h[o+16>>3]=+h[k+16>>3];if((n|0)>3){n=3}else{break}while(1){h[o+(n<<3)>>3]=+h[k+(n<<3)>>3];n=n+1|0;if((n|0)>=(c[j>>2]|0)){break b}o=c[l>>2]|0}}}while(0);mG(c[b>>2]|0,g,m);f=f+1|0;}while((f|0)<(oG(c[d>>2]|0)|0));i=e;return}function _H(a){a=a|0;var b=0;b=i;$H(a);HW(a);i=b;return}function $H(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=203792;Fe(c[a+1048>>2]|0);d=c[a+1044>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+1052>>2]|0;if((d|0)!=0){HW(d)}a=c[a+1064>>2]|0;if((a|0)==0){i=b;return}kG(a);HW(a);i=b;return}function aI(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0.0,w=0,x=0.0;f=i;n=i;i=i+8|0;o=i;i=i+8|0;q=i;i=i+8|0;j=i;i=i+16|0;p=j;m=b+4|0;g=c[m>>2]|0;c[j>>2]=205072;k=p+4|0;a[k]=0;c[p+8>>2]=g;g=p+12|0;c[g>>2]=d;l=b+1064|0;p=lG(c[l>>2]|0,p)|0;do{if((p|0)==0){p=b+1052|0;c[(c[p>>2]|0)+1600>>2]=100;r=c[p>>2]|0;if((c[m>>2]|0)>0){s=0;do{u=r+1600|0;t=c[u>>2]|0;if((t|0)<1){Qe(-1,205192,q)}else{x=+h[d+(s<<3)>>3];w=t+ -1|0;c[u>>2]=w;c[r+(w<<4)>>2]=2;h[r+(c[u>>2]<<4)+8>>3]=x}s=s+1|0;r=c[p>>2]|0}while((s|0)<(c[m>>2]|0))}bI(b,r,0);q=b+8|0;r=c[q>>2]|0;if((r|0)>0){b=b+528|0;do{r=r+ -1|0;w=c[p>>2]|0;t=w+1600|0;s=c[t>>2]|0;do{if((s|0)==100){Qe(-1,203744,o);v=0.0}else{u=c[w+(s<<4)>>2]|0;if((u+ -1|0)>>>0>=2){Qe(-1,204688,n);v=0.0;break}w=w+(s<<4)+8|0;if((u|0)==1){v=+(c[w>>2]|0)}else{v=+h[w>>3]}c[t>>2]=s+1}}while(0);s=e+(r<<3)|0;h[s>>3]=v;x=+h[b+(r<<4)>>3];do{if(v<x){h[s>>3]=x}else{x=+h[b+(r<<4)+8>>3];if(v<=x){break}h[s>>3]=x}}while(0);}while((r|0)>0)}n=FW(16)|0;p=c[m>>2]|0;c[n>>2]=205072;a[n+4|0]=1;m=n+8|0;c[m>>2]=p;b=GW(p>>>0>536870911?-1:p<<3)|0;o=n+12|0;c[o>>2]=b;a:do{if((p|0)>0){h[b>>3]=+h[d>>3];if((p|0)<=1){break}h[b+8>>3]=+h[d+8>>3];if((p|0)<=2){break}h[b+16>>3]=+h[d+16>>3];if((p|0)>3){p=3}else{break}while(1){h[b+(p<<3)>>3]=+h[d+(p<<3)>>3];p=p+1|0;if((p|0)>=(c[m>>2]|0)){break a}b=c[o>>2]|0}}}while(0);d=FWd=763;break}Qe(-1,203744,Nb);yd=0.0;wd=769}}while(0);do{if((wd|0)==763){wd=0;Ad=c[d+(e<<4)>>2]|0;if((Ad+ -1|0)>>>0>=2){Qe(-1,204688,od);yd=0.0;wd=769;break}zd=d+(e<<4)+8|0;if((Ad|0)==1){yd=+(c[zd>>2]|0)}else{yd=+h[zd>>3]}e=e+1|0;c[vd>>2]=e;if(yd>=0.0){wd=769;break}yd=+ca(+yd)}}while(0);if((wd|0)==769){wd=0;yd=+R(+yd);e=c[vd>>2]|0}if((e|0)<1){Qe(-1,205192,pd);e=xd;continue a}else{e=e+ -1|0;c[vd>>2]=e;c[d+(e<<4)>>2]=2;h[d+(c[vd>>2]<<4)+8>>3]=yd;e=xd;continue a}break};case 39:{e=c[vd>>2]|0;do{if((e|0)<99){if((c[d+(e<<4)>>2]|0)!=1){wd=791;break}zd=e+1|0;if((c[d+(zd<<4)>>2]|0)!=1){wd=789;break}if((e|0)==100){Qe(-1,203744,Ob);zd=c[vd>>2]|0;Ad=0}else{c[vd>>2]=zd;Ad=c[d+(e<<4)+8>>2]|0}do{if((zd|0)==100){Qe(-1,203744,Pb);wd=785}else{if((c[d+(zd<<4)>>2]|0)==1){e=zd+1|0;c[vd>>2]=e;zd=c[d+(zd<<4)+8>>2]|0;break}else{Qe(-1,204688,Qb);wd=785;break}}}while(0);if((wd|0)==785){wd=0;e=c[vd>>2]|0;zd=0}if((e|0)<1){Qe(-1,205192,Rb);e=xd;continue a}else{e=e+ -1|0;c[vd>>2]=e;c[d+(e<<4)>>2]=1;c[d+(c[vd>>2]<<4)+8>>2]=zd^Ad;e=xd;continue a}}else{wd=789}}while(0);do{if((wd|0)==789){wd=0;if((e|0)!=100){wd=791;break}Qe(-1,203744,td);e=0}}while(0);do{if((wd|0)==791){wd=0;if((c[d+(e<<4)>>2]|0)==0){c[vd>>2]=e+1;e=(a[d+(e<<4)+8|0]&1)!=0;break}else{Qe(-1,204688,ud);e=0;break}}}while(0);zd=c[vd>>2]|0;do{if((zd|0)==100){Qe(-1,203744,rd);Ad=0}else{if((c[d+(zd<<4)>>2]|0)==0){c[vd>>2]=zd+1;Ad=(a[d+(zd<<4)+8|0]&1)!=0;break}else{Qe(-1,204688,sd);Ad=0;break}}}while(0);zd=c[vd>>2]|0;if((zd|0)<1){Qe(-1,205192,qd);e=xd;continue a}else{Cd=zd+ -1|0;c[vd>>2]=Cd;c[d+(Cd<<4)>>2]=0;a[d+(c[vd>>2]<<4)+8|0]=(Ad^e)&1;e=xd;continue a}break};case 41:{zd=c[vd>>2]|0;do{if((zd|0)==100){Qe(-1,203744,Sb);wd=815}else{if((c[d+(zd<<4)>>2]|0)!=0){Qe(-1,204688,Tb);wd=815;break}c[vd>>2]=zd+1;if((a[d+(zd<<4)+8|0]&1)==0){wd=815;break}bI(b,d,e+3|0)}}while(0);if((wd|0)==815){wd=0;bI(b,d,c[(c[j>>2]|0)+(xd<<4)+8>>2]|0)}e=c[(c[j>>2]|0)+(e+2<<4)+8>>2]|0;continue a};case 40:{xd=c[vd>>2]|0;do{if((xd|0)==100){Qe(-1,203744,Ub)}else{if((c[d+(xd<<4)>>2]|0)!=0){Qe(-1,204688,Vb);break}c[vd>>2]=xd+1;if((a[d+(xd<<4)+8|0]&1)==0){break}bI(b,d,e+3|0)}}while(0);e=c[(c[j>>2]|0)+(e+2<<4)+8>>2]|0;continue a};case 42:{break a};default:{e=xd;continue a}}}else if((xd|0)==2){Ad=e+1|0;xd=c[vd>>2]|0;if((xd|0)<1){Qe(-1,205192,Wb);e=Ad;continue}else{Bd=+h[zd+(e<<4)+8>>3];Cd=xd+ -1|0;c[vd>>2]=Cd;c[d+(Cd<<4)>>2]=2;h[d+(c[vd>>2]<<4)+8>>3]=Bd;e=Ad;continue}}else if((xd|0)==1){Ad=e+1|0;xd=c[vd>>2]|0;if((xd|0)<1){Qe(-1,205192,Yb);e=Ad;continue}else{Cd=c[zd+(e<<4)+8>>2]|0;zd=xd+ -1|0;c[vd>>2]=zd;c[d+(zd<<4)>>2]=1;c[d+(c[vd>>2]<<4)+8>>2]=Cd;e=Ad;continue}}else{Qe(-1,204408,Xb);continue}}i=g;return}function cI(b){b=b|0;var d=0;d=i;c[b>>2]=205072;if((a[b+4|0]&1)==0){i=d;return}b=c[b+12>>2]|0;if((b|0)==0){i=d;return}IW(b);i=d;return}function dI(b){b=b|0;var d=0,e=0;d=i;b=FW(1048)|0;c[b>>2]=202568;c[b+4>>2]=32;c[b+8>>2]=32;e=0;do{h[b+16+(e<<4)>>3]=0.0;h[b+16+(e<<4)+8>>3]=1.0;e=e+1|0;}while((e|0)<32);a[b+1040|0]=0;i=d;return b|0}function eI(a){a=a|0;i=i;return-1}function fI(a){a=a|0;i=i;return-1}function gI(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;b=FW(2600)|0;$W(b|0,a|0,2600)|0;e=c[b+2588>>2]|0;f=ye(e,8)|0;c[b+2584>>2]=f;$W(f|0,c[a+2584>>2]|0,e<<3|0)|0;c[b+2592>>2]=ye(1<<c[b+4>>2],8)|0;i=d;return b|0}function hI(a){a=a|0;i=i;return 0}function iI(b){b=b|0;i=i;return(a[b+2596|0]&1)!=0|0}function jI(a){a=a|0;var b=0,c=0;c=i;b=FW(1576)|0;$W(b|0,a|0,1576)|0;i=c;return b|0}function kI(a){a=a|0;i=i;return 2}function lI(b){b=b|0;i=i;return(a[b+1569|0]&1)!=0|0}function mI(a){a=a|0;var b=0,c=0;c=i;b=FW(1072)|0;RH(b,a);i=c;return b|0}function nI(a){a=a|0;i=i;return 3}function oI(b){b=b|0;i=i;return(a[b+1064|0]&1)!=0|0}function pI(a){a=a|0;var b=0,c=0;c=i;b=FW(1072)|0;ZH(b,a);i=c;return b|0}function qI(a){a=a|0;i=i;return 4}function rI(b){b=b|0;i=i;return(a[b+1060|0]&1)!=0|0}function sI(b){b=b|0;var d=0,e=0;d=i;c[b>>2]=205072;do{if((a[b+4|0]&1)!=0){e=c[b+12>>2]|0;if((e|0)==0){break}IW(e)}}while(0);HW(b);i=d;return}function tI(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=c[a+8>>2]|0;if((e|0)!=(c[b+8>>2]|0)){f=0;i=d;return f|0}a=a+12|0;b=b+12|0;f=0;while(1){if((f|0)>=(e|0)){a=1;e=5;break}if(+h[(c[a>>2]|0)+(f<<3)>>3]==+h[(c[b>>2]|0)+(f<<3)>>3]){f=f+1|0}else{a=0;e=5;break}}if((e|0)==5){i=d;return a|0}return 0}function uI(a){a=a|0;var b=0;b=i;c[a>>2]=205136;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}IW(a);i=b;return}function vI(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=205136;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}IW(d);HW(a);i=b;return}function wI(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=a+4|0;c[e>>2]=b;b=ye(b,1)|0;c[a>>2]=b;bX(b|0,0,c[e>>2]|0)|0;i=d;return}function xI(a){a=a|0;var b=0;b=i;bX(c[a>>2]|0,0,c[a+4>>2]|0)|0;i=b;return}function yI(a){a=a|0;var b=0;b=i;Fe(c[a>>2]|0);i=b;return}function zI(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;d=i;b=FWFW>2]|0;e=b+8|0;g=c[e>>2]|0;do{if((k|0)==0){if(g>>>0>=(c[b+4>>2]|0)>>>0){h=7;break}d=a[(c[b>>2]|0)+g|0]|0;a[h]=d;h=6}else{if((pd[k&63](b,g,j,1)|0)!=1){h=7;break}d=a[h]|0;g=c[e>>2]|0;h=6}}while(0);if((h|0)==6){c[e>>2]=g+1;b=d;i=f;return b|0}else if((h|0)==7){c[d>>2]=85;b=0;i=f;return b|0}return 0}function WK(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;j=i;i=i+8|0;c[b>>2]=0;g=a+8|0;h=c[g>>2]|0;do{if((h+1|0)>>>0<(c[a+4>>2]|0)>>>0){k=c[a+20>>2]|0;if((k|0)==0){j=(c[a>>2]|0)+h|0;if((j|0)==0){j=0}else{e=6}}else{if((pd[k&63](a,h,j,2)|0)!=2){break}h=c[g>>2]|0;e=6}if((e|0)==6){j=(d[j+1|0]|0)<<8&65535|(d[j]|0)}c[g>>2]=h+2;k=j;i=f;return k|0}}while(0);c[b>>2]=85;k=0;i=f;return k|0}function XK(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;g=i;k=i;i=i+8|0;c[e>>2]=0;h=b+8|0;j=c[h>>2]|0;do{if((j+2|0)>>>0<(c[b+4>>2]|0)>>>0){l=c[b+20>>2]|0;if((l|0)==0){k=(c[b>>2]|0)+j|0;if((k|0)==0){k=0}else{f=6}}else{if((pd[l&63](b,j,k,3)|0)!=3){break}j=c[h>>2]|0;f=6}if((f|0)==6){k=d[k+1|0]<<8|a[k]<<16|d[k+2|0]}c[h>>2]=j+3;l=k;i=g;return l|0}}while(0);c[e>>2]=85;l=0;i=g;return l|0}function YK(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;j=i;i=i+8|0;c[b>>2]=0;g=a+8|0;h=c[g>>2]|0;do{if((h+3|0)>>>0<(c[a+4>>2]|0)>>>0){k=c[a+20>>2]|0;if((k|0)==0){j=(c[a>>2]|0)+h|0;if((j|0)==0){j=0}else{e=6}}else{if((pd[k&63](a,h,j,4)|0)!=4){break}h=c[g>>2]|0;e=6}if((e|0)==6){j=(d[j+2|0]|0)<<16|(d[j+3|0]|0)<<24|(d[j+1|0]|0)<<8|(d[j]|0)}c[g>>2]=h+4;k=j;i=f;return k|0}}while(0);c[b>>2]=85;k=0;i=f;return k|0}function ZK(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;l=i;if((g|0)==0|(f|0)==0){r=6;i=l;return r|0}k=f+32|0;j=f+36|0;n=0;a:while(1){q=c[k>>2]|0;b:while(1){p=a[g]|0;c:do{switch(p&255|0){case 9:case 8:{o=q+1|0;r=24;q=d[q]|0;m=18;break};case 18:case 19:{o=q+4|0;r=0;q=(d[q+2|0]|0)<<16|(d[q+3|0]|0)<<24|(d[q+1|0]|0)<<8|(d[q]|0);m=18;break};case 25:case 24:{r=d[g+1|0]|0;o=q+r|0;if(o>>>0>(c[j>>2]|0)>>>0){h=85;break a}if(p<<24>>24!=24){break c}$W(h+(e[g+2>>1]|0)|0,q|0,r|0)|0;break};case 22:case 23:{o=q+3|0;r=8;q=(d[q+1|0]|0)<<8|(d[q+2|0]|0)<<16|(d[q]|0);m=18;break};case 12:case 13:{o=q+2|0;r=16;q=((d[q]|0)<<8&65535|(d[q+1|0]|0))&65535;m=18;break};case 16:case 17:{o=q+4|0;r=0;q=(d[q+1|0]|0)<<16|(d[q]|0)<<24|(d[q+2|0]|0)<<8|(d[q+3|0]|0);m=18;break};case 14:case 15:{o=q+2|0;r=16;q=((d[q+1|0]|0)<<8&65535|(d[q]|0))&65535;m=18;break};case 20:case 21:{o=q+3|0;r=8;q=(d[q+1|0]|0)<<8|(d[q]|0)<<16|(d[q+2|0]|0);m=18;break};case 4:{break b};default:{m=17;break a}}}while(0);do{if((m|0)==18){m=0;if((p&1)!=0){q=q<<r>>r}r=h+(e[g+2>>1]|0)|0;p=d[g+1|0]|0;if((p|0)==1){a[r]=q;break}else if((p|0)==2){b[r>>1]=q;break}else if((p|0)==4){c[r>>2]=q;break}else{c[r>>2]=q;break}}}while(0);g=g+4|0;q=o}o=MK(f,e[g+2>>1]|0)|0;if((o|0)!=0){h=o;break}g=g+4|0;n=1}if((m|0)==17){c[k>>2]=q;h=0}if(n<<24>>24==0){r=h;i=l;return r|0}if((c[f+20>>2]|0)!=0){n=c[f+28>>2]|0;m=c[f>>2]|0;if((m|0)!=0){hd[c[n+8>>2]&127](n,m)}c[f>>2]=0}c[k>>2]=0;c[j>>2]=0;r=h;i=l;return r|0}function _K(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;d=a;a=c[d>>2]|0;d=c[d+4>>2]|0;if((a|0)==0){g=(d|0)>-1?d:0-d|0;i=b;return g|0}e=(a|0)>-1?a:0-a|0;if((d|0)==0){g=e;i=b;return g|0}e=((d|0)>-1?d:0-d|0)|e;f=(e|0)>65535;e=f?e>>16:e;f=f?16:0;if((e|0)>255){f=f|8;e=e>>8}if((e|0)>15){f=f+4|0;e=e>>4}if((e|0)>3){f=f+2|0;e=e>>2}f=((e|0)>1)+f|0;if((f|0)<28){g=27-f|0;d=d<<g;e=a<<g;a=g}else{e=f+ -27|0;d=d>>e;e=a>>e;a=27-f|0}if((e|0)<0){e=0-e|0;g=0-d|0}else{g=d}f=e<<1;if((g|0)<0){d=0;e=e-(g<<1)|0;f=g+f|0}else{d=0;e=(g<<1)+e|0;f=g-f|0}do{g=e>>d;if((f|0)<0){e=e-(f>>d)|0;f=f+g|0}else{e=(f>>d)+e|0;f=f-g|0}d=d+1|0;}while((d|0)<23);d=(e|0)>-1;e=d?e:0-e|0;f=e>>>16;e=e&65535;g=(e*17797|0)+(f*47593|0)|0;e=(e*47593|0)>>>16;h=g+e|0;f=(h>>>16)+(f*17797|0)|0;e=h>>>0<(g>>>0>=e>>>0?g:e)>>>0?f+65536|0:f;d=d?e:0-e|0;if((a|0)>0){h=d+(1<<a+ -1)>>a;i=b;return h|0}else{h=d<<0-a;i=b;return h|0}return 0}
7329 function wx(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;e=i;l=i;i=i+8|0;m=l;k=i;i=i+8|0;n=i;i=i+8|0;p=i;i=i+8|0;o=i;i=i+8|0;w=o;u=i;i=i+16|0;v=u;j=i;i=i+528|0;t=i;i=i+24|0;c[u>>2]=13;q=v+8|0;c[q>>2]=0;c[q+4>>2]=0;f=j+528|0;g=j;do{c[g>>2]=13;J=g+8|0;c[J>>2]=0;c[J+4>>2]=0;g=g+16|0;}while((g|0)!=(f|0));g=b+32|0;f=b+40|0;h=c[f>>2]|0;if((h|0)==(c[b+44>>2]|0)){eu(b+36|0,g)}else{if((h|0)==0){h=0}else{c[h>>2]=c[g>>2];h=c[f>>2]|0}c[f>>2]=h+4}h=b+24|0;c[h>>2]=0;A=b+120|0;cG(c[A>>2]|0,v,0,0,0,0,0)|0;H=c[u>>2]|0;a:do{if((H|0)==12){Of(v)}else{C=b+18|0;y=b+13|0;x=b+14|0;B=b+8|0;D=b+124|0;E=b+128|0;z=c[r>>2]|0;F=0;G=0;b:while(1){a[C]=0;do{if((H|0)==10){if((a[y]&1)!=0){Qf(v,z);if((G|0)>0){H=0;do{Hb(32)|0;Qf(j+(H<<4)|0,z);H=H+1|0;}while((H|0)<(G|0))}Hb(10)|0;Fc(z|0)|0}dH(t);xx(b,v,j,G);do{if((a[x]&1)!=0){I=c[B>>2]|0;I=jd[c[(c[I>>2]|0)+372>>2]&511](I)|0;if((I|0)==0){break}H=FW(32)|0;J=c[u>>2]|0;if((J|0)!=10){s=19;break b}fe(H,c[q>>2]|0);J=oo(I,H)|0;if((J|0)==0){J=FWFW(120)|0;s=b+20|0;mx(A,c[b>>2]|0,e,c[s>>2]|0);c[s>>2]=A;e=b+8|0;A=c[e>>2]|0;t=b+28|0;hd[c[(c[A>>2]|0)+80>>2]&127](A,c[t>>2]|0);A=XB(c[t>>2]|0)|0;c[t>>2]=A;y=b+32|0;c[y>>2]=(c[y>>2]|0)+1;SB(A);A=b+120|0;z=c[A>>2]|0;K=f+8|0;J=f+16|0;G=f+24|0;E=f+32|0;F=f+40|0;JB(c[t>>2]|0,+h[f>>3],+h[K>>3],+h[J>>3],+h[G>>3],+h[E>>3],+h[F>>3]);L=c[e>>2]|0;Ed[c[(c[L>>2]|0)+92>>2]&3](L,c[t>>2]|0,+h[f>>3],+h[K>>3],+h[J>>3],+h[G>>3],+h[E>>3],+h[F>>3]);f=c[t>>2]|0;H=+h[g>>3];F=g+8|0;I=+h[F>>3];E=c[f+588>>2]|0;h[f+592>>3]=H;h[f+600>>3]=I;uB(E,H,I);E=c[t>>2]|0;f=g+16|0;I=+h[f>>3];H=+h[F>>3];F=c[E+588>>2]|0;h[E+592>>3]=I;h[E+600>>3]=H;vB(F,I,H);F=c[t>>2]|0;H=+h[f>>3];f=g+24|0;I=+h[f>>3];E=c[F+588>>2]|0;h[F+592>>3]=H;h[F+600>>3]=I;vB(E,H,I);E=c[t>>2]|0;I=+h[g>>3];H=+h[f>>3];f=c[E+588>>2]|0;h[E+592>>3]=I;h[E+600>>3]=H;vB(f,I,H);f=c[t>>2]|0;E=f+588|0;xB(c[E>>2]|0);E=c[E>>2]|0;F=E+28|0;E=E+24|0;G=c[(c[E>>2]|0)+((c[F>>2]|0)+ -1<<2)>>2]|0;h[f+592>>3]=+h[(c[G>>2]|0)+((c[G+12>>2]|0)+ -1<<3)>>3];F=c[(c[E>>2]|0)+((c[F>>2]|0)+ -1<<2)>>2]|0;h[f+600>>3]=+h[(c[F+4>>2]|0)+((c[F+12>>2]|0)+ -1<<3)>>3];TB(c[t>>2]|0);f=c[e>>2]|0;hd[c[(c[f>>2]|0)+256>>2]&127](f,c[t>>2]|0);SB(c[t>>2]|0);f=k|j;if(f){F=c[t>>2]|0;E=F+388|0;if((c[E>>2]|0)==0){E=F}else{c[E>>2]=0;E=c[e>>2]|0;hd[c[(c[E>>2]|0)+148>>2]&127](E,c[t>>2]|0);E=c[t>>2]|0}F=E+392|0;if(+h[F>>3]!=1.0){h[F>>3]=1.0;E=c[e>>2]|0;hd[c[(c[E>>2]|0)+152>>2]&127](E,c[t>>2]|0);E=c[t>>2]|0}F=E+400|0;if(+h[F>>3]!=1.0){h[F>>3]=1.0;E=c[e>>2]|0;hd[c[(c[E>>2]|0)+156>>2]&127](E,c[t>>2]|0);E=c[t>>2]|0}L=c[e>>2]|0;hd[c[(c[L>>2]|0)+396>>2]&127](L,E);L=c[e>>2]|0;yd[c[(c[L>>2]|0)+380>>2]&1](L,c[t>>2]|0,g,l,m,n,k)}l=b+64|0;h[x>>3]=+h[l>>3];m=c[t>>2]|0;h[l>>3]=+h[m+16>>3];L=b+72|0;h[D+8>>3]=+h[L>>3];h[L>>3]=+h[m+24>>3];L=b+80|0;h[D+16>>3]=+h[L>>3];h[L>>3]=+h[m+32>>3];L=b+88|0;h[D+24>>3]=+h[L>>3];h[L>>3]=+h[m+40>>3];L=b+96|0;h[D+32>>3]=+h[L>>3];h[L>>3]=+h[m+48>>3];L=b+104|0;h[D+40>>3]=+h[L>>3];h[L>>3]=+h[m+56>>3];vx(b,d,0);D=c[t>>2]|0;do{if((m|0)!=(D|0)){while(1){D=c[D+656>>2]|0;if((D|0)==(m|0)){break}if((D|0)==0){v=19;break}else{}}if((v|0)==19){Qe(-1,161872,C);break}Qe(-1,161816,B);d=c[t>>2]|0;if((m|0)==(d|0)){break}C=b+40|0;B=b+36|0;D=b+18|0;do{L=c[B>>2]|0;do{if((c[y>>2]|0)>(c[L+(((c[C>>2]|0)-L>>2)+ -1<<2)>>2]|0)){if((c[d+656>>2]|0)==0){v=16;break}L=YB(d)|0;c[t>>2]=L;K=c[e>>2]|0;hd[c[(c[K>>2]|0)+84>>2]&127](K,L);c[y>>2]=(c[y>>2]|0)+ -1}else{v=16}}while(0);if((v|0)==16){v=0;Qe(-1,162208,w);a[D]=1}d=c[t>>2]|0;}while((m|0)!=(d|0))}}while(0);if(f){L=c[e>>2]|0;hd[c[(c[L>>2]|0)+384>>2]&127](L,c[t>>2]|0)}$W(l|0,x|0,48)|0;c[A>>2]=z;L=c[b+36>>2]|0;do{if((c[y>>2]|0)>(c[L+(((c[b+40>>2]|0)-L>>2)+ -1<<2)>>2]|0)){w=c[t>>2]|0;if((c[w+656>>2]|0)==0){v=24;break}L=YB(w)|0;c[t>>2]=L;K=c[e>>2]|0;hd[c[(c[K>>2]|0)+84>>2]&127](K,L);c[y>>2]=(c[y>>2]|0)+ -1}else{v=24}}while(0);if((v|0)==24){Qe(-1,162208,u);a[b+18|0]=1}b=c[s>>2]|0;u=c[b+112>>2]|0;if((b|0)!=0){nx(b);HW(b)}c[s>>2]=u;if(k){L=c[e>>2]|0;ud[c[(c[L>>2]|0)+392>>2]&7](L,c[t>>2]|0,g,o,p,q);i=r;return}if(!j){i=r;return}L=c[e>>2]|0;Gd[c[(c[L>>2]|0)+388>>2]&255](L,c[t>>2]|0,g);i=r;return}function Bx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;f=i;d=i;i=i+8|0;e=d;j=c[a+8>>2]|0;if(!(jd[c[(c[j>>2]|0)+36>>2]&511](j)|0)){i=f;return}j=c[(c[a+28>>2]|0)+380>>2]|0;if((j|0)==0){i=f;return}h=j+4|0;g=c[h>>2]|0;if((g|0)==1){Dx(a,j,0,b);i=f;return}else if((g|0)==2){Ex(a,j,0,b);i=f;return}else{j=c[a+120>>2]|0;do{if((j|0)==0){h=-1}else{j=c[j+4>>2]|0;if((c[j+16>>2]|0)!=8){h=-1;break}b=c[j+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;g=c[h>>2]|0;h=b}}while(0);c[d>>2]=g;Qe(h,160904,e);i=f;return}}function Cx(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;e=i;b=i;i=i+8|0;d=b;h=c[a+8>>2]|0;if(!(jd[c[(c[h>>2]|0)+36>>2]&511](h)|0)){i=e;return}h=c[(c[a+28>>2]|0)+384>>2]|0;if((h|0)==0){i=e;return}g=h+4|0;f=c[g>>2]|0;if((f|0)==2){Ex(a,h,1,0);i=e;return}else if((f|0)==1){Dx(a,h,1,0);i=e;return}else{a=c[a+120>>2]|0;do{if((a|0)==0){g=-1}else{a=c[a+4>>2]|0;if((c[a+16>>2]|0)!=8){g=-1;break}h=c[a+24>>2]|0;h=jd[c[(c[h>>2]|0)+48>>2]&511](h)|0;f=c[g>>2]|0;g=h}}while(0);c[b>>2]=f;Qe(g,160944,d);i=e;return}}function Dx(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0.0,o=0,p=0.0,q=0,r=0.0,s=0.0,t=0.0,u=0,v=0.0,w=0,x=0,y=0,z=0,A=0.0,B=0.0,C=0.0,D=0.0,E=0.0,F=0.0,G=0.0,H=0.0,I=0.0,J=0.0,K=0.0,L=0.0,M=0.0,N=0.0,O=0,P=0,Q=0,T=0,U=0,V=0.0;j=i;g=i;i=i+8|0;Q=i;i=i+128|0;P=Q;z=i;i=i+48|0;m=z;y=i;i=i+48|0;l=y;k=b+28|0;o=c[k>>2]|0;T=c[(e?o+120|0:o+116|0)>>2]|0;C=+h[o+16>>3];G=+h[o+40>>3];F=+h[o+24>>3];V=+h[o+32>>3];I=1.0/(C*G-F*V);H=G*I;K=-0.0-F*I;s=-0.0-V*I;p=C*I;D=+h[o+56>>3];E=+h[o+48>>3];v=+h[d+80>>3];t=+h[b+64>>3];L=+h[d+88>>3];M=+h[b+80>>3];N=v*t+L*M;h[y>>3]=N;r=+h[b+72>>3];A=+h[b+88>>3];L=v*r+L*A;h[l+8>>3]=L;v=+h[d+96>>3];B=+h[d+104>>3];J=v*t+B*M;h[l+16>>3]=J;B=v*r+B*A;h[l+24>>3]=B;v=+h[d+112>>3];n=+h[d+120>>3];M=+h[b+96>>3]+(v*t+n*M);q=l+32|0;h[q>>3]=M;A=+h[b+104>>3]+(v*r+n*A);o=l+40|0;h[o>>3]=A;n=H*N+L*s;h[z>>3]=n;r=N*K+p*L;h[m+8>>3]=r;v=H*J+B*s;h[m+16>>3]=v;t=J*K+p*B;h[m+24>>3]=t;s=I*(V*D-G*E)+(H*M+A*s);h[m+32>>3]=s;p=I*(F*E-C*D)+(M*K+p*A);h[m+40>>3]=p;K=1.0/(N*B-L*J);D=B*K;C=-0.0-L*K;E=-0.0-J*K;F=N*K;B=K*(J*A-B*M);A=K*(L*M-N*A);w=c[(c[k>>2]|0)+588>>2]|0;m=FW(40)|0;tB(m,(a[w]&1)!=0,+h[w+8>>3],+h[w+16>>3],c[w+24>>2]|0,c[w+28>>2]|0,c[w+32>>2]|0);w=b+8|0;U=c[w>>2]|0;hd[c[(c[U>>2]|0)+80>>2]&127](U,c[k>>2]|0);U=XB(c[k>>2]|0)|0;c[k>>2]=U;u=b+32|0;c[u>>2]=(c[u>>2]|0)+1;x=d+8|0;do{if((c[x>>2]|0)==2){T=c[T+4>>2]|0;if((T|0)==0){O=6;break}LB(U,jd[c[(c[T>>2]|0)+8>>2]&511](T)|0);P=c[w>>2]|0;hd[c[(c[P>>2]|0)+132>>2]&127](P,c[k>>2]|0);P=c[k>>2]|0;MB(P,jd[c[(c[T>>2]|0)+8>>2]&511](T)|0);P=c[w>>2]|0;hd[c[(c[P>>2]|0)+136>>2]&127](P,c[k>>2]|0);P=c[k>>2]|0;if(e){$W(P+124|0,P+252|0,128)|0;break}else{$W(P+252|0,P+124|0,128)|0;break}}else{O=6}}while(0);if((O|0)==6){T=FW(4)|0;Ty(T);LB(c[k>>2]|0,T);hd[c[(c[T>>2]|0)+48>>2]&127](T,P);$W((c[k>>2]|0)+124|0,Q|0,128)|0;T=c[w>>2]|0;hd[c[(c[T>>2]|0)+132>>2]&127](T,c[k>>2]|0);T=c[k>>2]|0;U=FW(4)|0;Ty(U);MB(T,U);$W((c[k>>2]|0)+252|0,Q|0,128)|0;U=c[w>>2]|0;hd[c[(c[U>>2]|0)+136>>2]&127](U,c[k>>2]|0)}NB(c[k>>2]|0,0);U=c[w>>2]|0;hd[c[(c[U>>2]|0)+140>>2]&127](U,c[k>>2]|0);OB(c[k>>2]|0,0);U=c[w>>2]|0;hd[c[(c[U>>2]|0)+144>>2]&127](U,c[k>>2]|0);do{if(e){UB(c[k>>2]|0);U=c[w>>2]|0;hd[c[(c[U>>2]|0)+264>>2]&127](U,c[k>>2]|0)}else{if((a[b+15|0]&1)!=0){break}if((a[b+17|0]&1)!=0){break}TB(c[k>>2]|0);e=c[w>>2]|0;O=c[e>>2]|0;if(f){hd[c[O+260>>2]&127](e,c[k>>2]|0);break}else{hd[c[O+256>>2]&127](e,c[k>>2]|0);break}}}while(0);SB(c[k>>2]|0);h[(c[k>>2]|0)+432>>3]=0.0;U=c[w>>2]|0;hd[c[(c[U>>2]|0)+116>>2]&127](U,c[k>>2]|0);U=c[k>>2]|0;H=+h[U+624>>3];L=+h[U+632>>3];G=+h[U+640>>3];J=+h[U+648>>3];a:do{if(!(H>G|L>J)){M=D*H;I=L*E;K=B+(M+I);V=H*C;H=F*L;N=A+(V+H);E=J*E;M=B+(M+E);F=F*J;L=A+(V+F);do{if(M<K){J=K}else{if(M<=K){J=K;M=K;break}J=M;M=K}}while(0);do{if(L<N){K=N}else{if(L<=N){K=N;L=N;break}K=L;L=N}}while(0);D=D*G;I=B+(I+D);C=G*C;G=A+(H+C);do{if(I<M){M=I}else{if(I<=J){break}J=I}}while(0);do{if(G<L){L=G}else{if(G<=K){break}K=G}}while(0);B=B+(D+E);A=A+(C+F);do{if(B<M){M=B}else{if(B<=J){break}J=B}}while(0);do{if(A<L){L=A}else{if(A<=K){break}K=A}}while(0);B=+S(+(+h[d+48>>3]));A=+S(+(+h[d+56>>3]));f=d+16|0;N=+ca(+((M- +h[d+32>>3])/B));Q=~~+R(+((J- +h[f>>3])/B));V=+ca(+((L- +h[d+40>>3])/A));e=~~+R(+((K- +h[d+24>>3])/A));$W(y|0,z|0,32)|0;O=~~N;z=Q+1|0;Q=~~V;y=e+1|0;e=c[b+116>>2]|0;b:do{if((e|0)!=0){if((a[e]&1)!=0){break a}while(1){e=c[e+4>>2]|0;if((e|0)==0){break b}if((a[e]&1)!=0){break a}}}}while(0);h[q>>3]=s;h[o>>3]=p;U=c[w>>2]|0;if(jd[c[(c[U>>2]|0)+16>>2]&511](U)|0){e=c[w>>2]|0;if((c[d+64>>2]|0)==7){P=c[d+72>>2]|0}else{P=0}if(!((Q|0)<(y|0)&((nd[c[(c[e>>2]|0)+224>>2]&1](e,c[k>>2]|0,d+128|0,c[x>>2]|0,P,l,f,O,Q,z,y,B,A)|0)^1))){break}}else{if((Q|0)>=(y|0)){break}}P=(O|0)<(z|0);x=d+128|0;e=d+64|0;d=d+72|0;do{if(P){D=A*+(Q|0);C=D*v;D=D*t;T=O;do{V=B*+(T|0);h[q>>3]=s+(V*n+C);h[o>>3]=p+(V*r+D);if((c[e>>2]|0)==7){U=c[d>>2]|0}else{U=0}Ax(b,x,U,l,f,0,0,0,0,0,0,0,0);T=T+1|0;}while((T|0)<(z|0))}Q=Q+1|0;}while((Q|0)<(y|0))}}while(0);U=c[b+36>>2]|0;do{if((c[u>>2]|0)>(c[U+(((c[b+40>>2]|0)-U>>2)+ -1<<2)>>2]|0)){l=c[k>>2]|0;if((c[l+656>>2]|0)==0){break}U=YB(l)|0;c[k>>2]=U;T=c[w>>2]|0;hd[c[(c[T>>2]|0)+84>>2]&127](T,U);c[u>>2]=(c[u>>2]|0)+ -1;U=k;U=c[U>>2]|0;GB(U,m);i=j;return}}while(0);Qe(-1,162208,g);a[b+18|0]=1;U=k;U=c[U>>2]|0;GB(U,m);i=j;return}function Ex(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0.0,t=0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0.0,E=0.0,F=0.0,G=0.0,H=0.0,I=0.0,J=0.0,K=0.0,L=0.0,M=0.0,N=0.0;n=i;l=i;i=i+8|0;o=c[d+8>>2]|0;k=b+28|0;j=c[(c[k>>2]|0)+588>>2]|0;m=FW(40)|0;tB(m,(a[j]&1)!=0,+h[j+8>>3],+h[j+16>>3],c[j+24>>2]|0,c[j+28>>2]|0,c[j+32>>2]|0);j=b+8|0;p=c[j>>2]|0;hd[c[(c[p>>2]|0)+80>>2]&127](p,c[k>>2]|0);p=XB(c[k>>2]|0)|0;c[k>>2]=p;g=b+32|0;c[g>>2]=(c[g>>2]|0)+1;if((a[o+176|0]&1)!=0){u=+h[o+144>>3];w=+h[o+152>>3];v=+h[o+160>>3];s=+h[o+168>>3];q=c[p+588>>2]|0;h[p+592>>3]=u;h[p+600>>3]=w;uB(q,u,w);q=c[k>>2]|0;t=c[q+588>>2]|0;h[q+592>>3]=v;h[q+600>>3]=w;vB(t,v,w);t=c[k>>2]|0;q=c[t+588>>2]|0;h[t+592>>3]=v;h[t+600>>3]=s;vB(q,v,s);q=c[k>>2]|0;t=c[q+588>>2]|0;h[q+592>>3]=u;h[q+600>>3]=s;vB(t,u,s);t=c[k>>2]|0;q=t+588|0;xB(c[q>>2]|0);q=c[q>>2]|0;r=q+28|0;q=q+24|0;p=c[(c[q>>2]|0)+((c[r>>2]|0)+ -1<<2)>>2]|0;h[t+592>>3]=+h[(c[p>>2]|0)+((c[p+12>>2]|0)+ -1<<3)>>3];r=c[(c[q>>2]|0)+((c[r>>2]|0)+ -1<<2)>>2]|0;h[t+600>>3]=+h[(c[r+4>>2]|0)+((c[r+12>>2]|0)+ -1<<3)>>3];TB(c[k>>2]|0);do{if((a[b+15|0]&1)==0){if((a[b+17|0]&1)!=0){break}t=c[j>>2]|0;hd[c[(c[t>>2]|0)+256>>2]&127](t,c[k>>2]|0)}}while(0);r=c[k>>2]|0;t=FW]|0;ra=qa+28|0;qa=qa+24|0;pa=c[(c[qa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[w+592>>3]=+h[(c[pa>>2]|0)+((c[pa+12>>2]|0)+ -1<<3)>>3];ra=c[(c[qa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[w+600>>3]=+h[(c[ra+4>>2]|0)+((c[ra+12>>2]|0)+ -1<<3)>>3];w=c[b>>2]|0;f:do{if((w|0)==0){e=83}else{if((a[w]&1)!=0){break}do{w=c[w+4>>2]|0;if((w|0)==0){e=83;break f}}while((a[w]&1)==0)}}while(0);if((e|0)==83){ra=c[B>>2]|0;hd[c[(c[ra>>2]|0)+216>>2]&127](ra,c[A>>2]|0)}SB(c[A>>2]|0)}if(K|G^1){i=f;return}x=d+380|0;z=a[x]|0;w=u>v;if((z&1)==0|w){y=D^1;if(!((a[d+381|0]&1)==0|y)){e=88}}else{e=88}if((e|0)==88){I=w?v:u;u=w?s:t;v=w?r:q;$A(d,w?m:l,g);$W((c[A>>2]|0)+124|0,j|0,128)|0;qa=c[B>>2]|0;hd[c[(c[qa>>2]|0)+140>>2]&127](qa,c[A>>2]|0);qa=c[A>>2]|0;ta=u+I;ra=c[qa+588>>2]|0;h[qa+592>>3]=ta;h[qa+600>>3]=v;uB(ra,ta,v);if(H){y=1;do{ta=+(y|0)/F*2.0*3.141592653589793;qa=c[A>>2]|0;sa=u+I*+V(+ta);ta=v+I*+W(+ta);ra=c[qa+588>>2]|0;h[qa+592>>3]=sa;h[qa+600>>3]=ta;vB(ra,sa,ta);y=y+1|0;}while((y|0)<(E|0))}y=c[A>>2]|0;qa=y+588|0;xB(c[qa>>2]|0);qa=c[qa>>2]|0;ra=qa+28|0;qa=qa+24|0;pa=c[(c[qa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[y+592>>3]=+h[(c[pa>>2]|0)+((c[pa+12>>2]|0)+ -1<<3)>>3];ra=c[(c[qa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[y+600>>3]=+h[(c[ra+4>>2]|0)+((c[ra+12>>2]|0)+ -1<<3)>>3];y=c[b>>2]|0;g:do{if((y|0)==0){e=94}else{if((a[y]&1)!=0){break}do{y=c[y+4>>2]|0;if((y|0)==0){e=94;break g}}while((a[y]&1)==0)}}while(0);if((e|0)==94){ra=c[B>>2]|0;hd[c[(c[ra>>2]|0)+216>>2]&127](ra,c[A>>2]|0)}SB(c[A>>2]|0);z=a[x]|0;y=D^1}do{if((z&1)==0|y){if(!((a[d+381|0]&1)==0|w)){break}i=f;return}}while(0);s=D?t:s;q=D?q:r;$A(d,D?l:m,g);$W((c[A>>2]|0)+124|0,j|0,128)|0;qa=c[B>>2]|0;hd[c[(c[qa>>2]|0)+140>>2]&127](qa,c[A>>2]|0);qa=c[A>>2]|0;ta=+h[p>>3];sa=+h[o>>3];pa=c[qa+588>>2]|0;h[qa+592>>3]=ta;h[qa+600>>3]=sa;uB(pa,ta,sa);pa=c[A>>2]|0;sa=+h[p>>3];ta=+h[n>>3];qa=c[pa+588>>2]|0;h[pa+592>>3]=sa;h[pa+600>>3]=ta;vB(qa,sa,ta);qa=c[A>>2]|0;ta=+h[k>>3];sa=+h[n>>3];pa=c[qa+588>>2]|0;h[qa+592>>3]=ta;h[qa+600>>3]=sa;vB(pa,ta,sa);pa=c[A>>2]|0;sa=+h[k>>3];ta=+h[o>>3];qa=c[pa+588>>2]|0;h[pa+592>>3]=sa;h[pa+600>>3]=ta;vB(qa,sa,ta);qa=c[A>>2]|0;pa=qa+588|0;xB(c[pa>>2]|0);pa=c[pa>>2]|0;ra=pa+28|0;pa=pa+24|0;na=c[(c[pa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[qa+592>>3]=+h[(c[na>>2]|0)+((c[na+12>>2]|0)+ -1<<3)>>3];ra=c[(c[pa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[qa+600>>3]=+h[(c[ra+4>>2]|0)+((c[ra+12>>2]|0)+ -1<<3)>>3];qa=c[A>>2]|0;ta=s+C;ra=c[qa+588>>2]|0;h[qa+592>>3]=ta;h[qa+600>>3]=q;uB(ra,ta,q);if(H){g=1;do{ta=+(g|0)/F*2.0*3.141592653589793;qa=c[A>>2]|0;sa=s+C*+V(+ta);ta=q+C*+W(+ta);ra=c[qa+588>>2]|0;h[qa+592>>3]=sa;h[qa+600>>3]=ta;vB(ra,sa,ta);g=g+1|0;}while((g|0)<(E|0))}g=c[A>>2]|0;qa=g+588|0;xB(c[qa>>2]|0);qa=c[qa>>2]|0;ra=qa+28|0;qa=qa+24|0;pa=c[(c[qa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[g+592>>3]=+h[(c[pa>>2]|0)+((c[pa+12>>2]|0)+ -1<<3)>>3];ra=c[(c[qa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[g+600>>3]=+h[(c[ra+4>>2]|0)+((c[ra+12>>2]|0)+ -1<<3)>>3];g=c[b>>2]|0;h:do{if((g|0)==0){e=104}else{if((a[g]&1)!=0){break}do{g=c[g+4>>2]|0;if((g|0)==0){e=104;break h}}while((a[g]&1)==0)}}while(0);if((e|0)==104){ra=c[B>>2]|0;hd[c[(c[ra>>2]|0)+216>>2]&127](ra,c[A>>2]|0)}SB(c[A>>2]|0);i=f;return}function Ix(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0.0,D=0,E=0,F=0,G=0,H=0.0,I=0.0,J=0.0,K=0.0,L=0.0;j=i;n=i;i=i+8|0;m=n;o=i;i=i+8|0;e=o;q=i;i=i+8|0;f=q;r=i;i=i+8|0;g=r;p=i;i=i+8|0;k=p;d=i;i=i+8|0;l=d;B=i;i=i+8|0;s=B;t=i;i=i+8|0;w=t;v=i;i=i+8|0;u=v;x=i;i=i+128|0;y=i;i=i+128|0;z=i;i=i+128|0;A=a+8|0;D=c[A>>2]|0;do{if(Bd[c[(c[D>>2]|0)+20>>2]&255](D,c[b+4>>2]|0)|0){D=c[A>>2]|0;A=a+28|0;if(!(sd[c[(c[D>>2]|0)+248>>2]&127](D,c[A>>2]|0,b)|0)){break}i=j;return}else{A=a+28|0}}while(0);F=c[A>>2]|0;D=c[F+588>>2]|0;bX(F+592|0,0,16)|0;uB(D,0.0,0.0);D=c[A>>2]|0;F=c[D+588>>2]|0;h[D+592>>3]=1.0;h[D+600>>3]=0.0;vB(F,1.0,0.0);F=c[A>>2]|0;D=c[F+588>>2]|0;h[F+592>>3]=0.0;h[F+600>>3]=1.0;vB(D,0.0,1.0);D=c[A>>2]|0;F=D+588|0;xB(c[F>>2]|0);F=c[F>>2]|0;E=F+28|0;F=F+24|0;G=c[(c[F>>2]|0)+((c[E>>2]|0)+ -1<<2)>>2]|0;h[D+592>>3]=+h[(c[G>>2]|0)+((c[G+12>>2]|0)+ -1<<3)>>3];E=c[(c[F>>2]|0)+((c[E>>2]|0)+ -1<<2)>>2]|0;h[D+600>>3]=+h[(c[E+4>>2]|0)+((c[E+12>>2]|0)+ -1<<3)>>3];D=c[A>>2]|0;A=FWFW(120)|0;mx(ba,c[b>>2]|0,Y,c[B>>2]|0);c[B>>2]=ba}if((c[y>>2]|0)==8){vx(b,A,0)}else{Y=c[F>>2]|0;do{if((Y|0)==0){Y=-1}else{Y=c[Y+4>>2]|0;if((c[Y+16>>2]|0)!=8){Y=-1;break}Y=c[Y+24>>2]|0;Y=jd[c[(c[Y>>2]|0)+48>>2]&511](Y)|0}}while(0);Qe(Y,161248,z)}ba=c[e>>2]|0;hd[c[(c[ba>>2]|0)+296>>2]&127](ba,c[j>>2]|0);if(X){Y=c[B>>2]|0;X=c[Y+112>>2]|0;if((Y|0)!=0){nx(Y);HW(Y)}c[B>>2]=X}Of(A)}ba=c[G>>2]|0;do{if((c[E>>2]|0)>(c[ba+(((c[D>>2]|0)-ba>>2)+ -1<<2)>>2]|0)){X=c[j>>2]|0;if((c[X+656>>2]|0)==0){f=26;break}ba=YB(X)|0;c[j>>2]=ba;Y=c[e>>2]|0;hd[c[(c[Y>>2]|0)+84>>2]&127](Y,ba);c[E>>2]=(c[E>>2]|0)+ -1}else{f=26}}while(0);if((f|0)==26){f=0;Qe(-1,162208,x);a[C]=1}Q=Q+W;R=R+V;Y=c[j>>2]|0;ba=c[Y+588>>2]|0;h[Y+592>>3]=Q;h[Y+600>>3]=R;uB(ba,Q,R);ba=c[j>>2]|0;h[ba+608>>3]=N;h[ba+616>>3]=O;U=U-T|0;if((U|0)>0){S=S+T|0}else{break}}}c[F>>2]=P}else{f=30}}while(0);do{if((f|0)==30){ba=c[e>>2]|0;if(!(jd[c[(c[ba>>2]|0)+12>>2]&511](ba)|0)){h[k>>3]=0.0;h[l>>3]=0.0;w=c[d+24>>2]|0;if((w|0)>0){v=0;s=0;t=c[d+28>>2]|0;while(1){u=xd[c[(c[m>>2]|0)+12>>2]&3](m,t,w,o,p,q,G,F,r,n)|0;H=+h[P>>3]+ +h[l>>3];h[l>>3]=H;I=+h[E>>3]+ +h[k>>3];h[k>>3]=I;if((u|0)==1){s=((a[t]|0)==32)+s|0}v=v+1|0;w=w-u|0;if((w|0)>0){t=t+u|0}else{break}}J=+(v|0)}else{I=0.0;H=0.0;J=0.0;s=0}m=c[j>>2]|0;n=m+488|0;K=+h[n>>3];if((D|0)==0){H=H*K+J*+h[m+544>>3]+ +(s|0)*+h[m+552>>3];h[l>>3]=H;H=H*+h[m+560>>3];h[l>>3]=H;J=+h[n>>3]*I}else{H=K*H;h[l>>3]=H;J=I*+h[n>>3]+J*+h[m+544>>3]+ +(s|0)*+h[m+552>>3]}h[k>>3]=J;I=H*+h[m+496>>3]+J*+h[m+512>>3];H=H*+h[m+504>>3]+J*+h[m+520>>3];k=c[b+116>>2]|0;a:do{if((k|0)==0){f=64}else{if((a[k]&1)!=0){break}while(1){k=c[k+4>>2]|0;if((k|0)==0){f=64;break a}if((a[k]&1)==0){}else{break}}}}while(0);if((f|0)==64){ba=c[e>>2]|0;Gd[c[(c[ba>>2]|0)+288>>2]&255](ba,m,d);m=c[j>>2]|0}WB(m,I,H);break}z=c[j>>2]|0;I=+h[z+576>>3];H=+h[z+496>>3]*0.0+I*+h[z+512>>3];I=+h[z+504>>3]*0.0+I*+h[z+520>>3];z=c[d+28>>2]|0;y=c[d+24>>2]|0;if((y|0)<=0){break}x=b+116|0;if((D|0)==0){while(1){A=xd[c[(c[m>>2]|0)+12>>2]&3](m,z,y,o,p,q,s,w,r,n)|0;D=c[j>>2]|0;E=D+488|0;J=+h[l>>3]*+h[E>>3]+ +h[D+544>>3];h[l>>3]=J;do{if((A|0)==1){if((a[z]|0)!=32){break}J=J+ +h[D+552>>3];h[l>>3]=J}}while(0);aa=+h[D+560>>3]*J;h[l>>3]=aa;J=+h[E>>3]*+h[k>>3];h[k>>3]=J;D=c[j>>2]|0;X=D+496|0;Y=D+512|0;K=aa*+h[X>>3]+J*+h[Y>>3];ba=D+504|0;E=D+520|0;J=aa*+h[ba>>3]+J*+h[E>>3];U=D+488|0;aa=+h[U>>3]*+h[B>>3];h[B>>3]=aa;M=+h[U>>3]*+h[C>>3];h[C>>3]=M;L=aa*+h[X>>3]+M*+h[Y>>3];M=aa*+h[ba>>3]+M*+h[E>>3];E=c[x>>2]|0;b:do{if((E|0)==0){f=40}else{if((a[E]&1)!=0){break}while(1){E=c[E+4>>2]|0;if((E|0)==0){f=40;break b}if((a[E]&1)==0){}else{break}}}}while(0);if((f|0)==40){f=0;ba=c[e>>2]|0;md[c[(c[ba>>2]|0)+284>>2]&1](ba,D,H+ +h[D+592>>3],I+ +h[D+600>>3],K,J,L,M,c[t>>2]|0,A,c[v>>2]|0,c[u>>2]|0);D=c[j>>2]|0}WB(D,K,J);y=y-A|0;if((y|0)>0){z=z+A|0}else{break}}}else{while(1){A=xd[c[(c[m>>2]|0)+12>>2]&3](m,z,y,o,p,q,s,w,r,n)|0;D=c[j>>2]|0;ba=D+488|0;K=+h[ba>>3]*+h[l>>3];h[l>>3]=K;L=+h[k>>3]*+h[ba>>3]+ +h[D+544>>3];h[k>>3]=L;do{if((A|0)==1){if((a[z]|0)!=32){break}L=L+ +h[D+552>>3];h[k>>3]=L}}while(0);X=D+496|0;Y=D+512|0;J=K*+h[X>>3]+L*+h[Y>>3];ba=D+504|0;E=D+520|0;K=K*+h[ba>>3]+L*+h[E>>3];U=D+488|0;aa=+h[U>>3]*+h[B>>3];h[B>>3]=aa;L=+h[U>>3]*+h[C>>3];h[C>>3]=L;M=aa*+h[X>>3]+L*+h[Y>>3];L=aa*+h[ba>>3]+L*+h[E>>3];E=c[x>>2]|0;c:do{if((E|0)==0){f=49}else{if((a[E]&1)!=0){break}while(1){E=c[E+4>>2]|0;if((E|0)==0){f=49;break c}if((a[E]&1)==0){}else{break}}}}while(0);if((f|0)==49){f=0;ba=c[e>>2]|0;md[c[(c[ba>>2]|0)+284>>2]&1](ba,D,H+ +h[D+592>>3],I+ +h[D+600>>3],J,K,M,L,c[t>>2]|0,A,c[v>>2]|0,c[u>>2]|0);D=c[j>>2]|0}WB(D,J,K);y=y-A|0;if((y|0)>0){z=z+A|0}else{break}}}}}while(0);ba=c[e>>2]|0;if(!(jd[c[(c[ba>>2]|0)+12>>2]&511](ba)|0)){Y=d+24|0;Y=c[Y>>2]|0;Y=Y*10|0;ba=b+24|0;X=ba;X=c[X>>2]|0;Y=X+Y|0;c[ba>>2]=Y;i=g;return}Y=c[e>>2]|0;hd[c[(c[Y>>2]|0)+280>>2]&127](Y,c[j>>2]|0);Y=d+24|0;Y=c[Y>>2]|0;Y=Y*10|0;ba=b+24|0;X=ba;X=c[X>>2]|0;Y=X+Y|0;c[ba>>2]=Y;i=g;return}function Px(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;f=FWFW(4)|0;vz(N);break}else if((v|0)==2){N=FW(4)|0;gz(N);break}else if((v|0)==1){N=FW(4)|0;Ty(N);break}else{Of(o);break a}}else{N=Jy(o,b)|0}}while(0);Of(o);if((N|0)==0){break a}Yu(J,161600,o,0)|0;if((c[r>>2]|0)==5){Of(o);Yu(J,160288,o,0)|0}v=FW(672)|0;mB(v,c[M>>2]|0,o,N);Of(o);if((a[v+664|0]&1)==0){if((v|0)==0){break a}nB(v);HW(v);break a}Yu(J,161608,n,0)|0;Yu(J,159992,m,0)|0;f:do{if((c[L>>2]|0)==8){if(f){break a}f=c[K>>2]|0;z=jd[c[(c[f>>2]|0)+72>>2]&511](f)|0;Yu(z,161496,o,0)|0;w=c[r>>2]|0;if((w|0)==5){Of(o);Yu(z,161504,o,0)|0;w=c[r>>2]|0}if((w|0)!=1){x=161;break a}w=c[s>>2]|0;Of(o);Yu(z,161512,o,0)|0;A=c[r>>2]|0;if((A|0)==5){Of(o);Yu(z,161520,o,0)|0;A=c[r>>2]|0}if((A|0)!=1){x=161;break a}A=c[s>>2]|0;Of(o);Yu(z,161528,o,0)|0;B=c[r>>2]|0;if((B|0)==5){Of(o);Yu(z,160112,o,0)|0;B=c[r>>2]|0}if((B|0)==0){B=(a[s]&1)!=0}else{B=0}Of(o);Yu(z,161568,o,0)|0;C=c[r>>2]|0;if((C|0)==5){Of(o);Yu(z,161592,o,0)|0;C=c[r>>2]|0}if((C|0)!=1){x=161;break a}C=c[s>>2]|0;Of(o);Yu(z,159208,o,0)|0;D=c[r>>2]|0;if((D|0)==5){Of(o);Yu(z,160104,o,0)|0;D=c[r>>2]|0}g:do{if((D|0)==4){D=c[b+20>>2]|0;s=c[s>>2]|0;h:do{if((D|0)==0){x=93}else{while(1){if((c[D+24>>2]|0)==7){if((c[(Yu(c[D+32>>2]|0,s,q,0)|0)>>2]|0)!=5){break}Of(q)}D=c[D+112>>2]|0;if((D|0)==0){x=93;break h}}if((c[u>>2]|0)==5){break}Of(o);$W(r|0,u|0,16)|0;break g}}while(0);if((x|0)==93){c[t>>2]=0;c[y>>2]=0;c[u>>2]=5}Of(q)}}while(0);s=Jy(o,b)|0;Of(o);if((s|0)==0){break a}if((jd[c[(c[s>>2]|0)+12>>2]&511](s)|0)!=0){break a}Yu(z,161600,o,0)|0;if((c[r>>2]|0)==5){Of(o);Yu(z,160288,o,0)|0}q=FW(672)|0;mB(q,C,o,s);Of(o);if((a[q+664|0]&1)==0){if((q|0)==0){break a}nB(q);HW(q);break a}o=c[b+116>>2]|0;i:do{if((o|0)==0){x=144}else{if((a[o]&1)!=0){break}do{o=c[o+4>>2]|0;if((o|0)==0){x=144;break i}}while((a[o]&1)==0)}}while(0);if((x|0)==144){O=c[b+8>>2]|0;vd[c[(c[O>>2]|0)+324>>2]&3](O,c[b+28>>2]|0,d,e,j,k,v,l,f,w,A,q,B)}if((q|0)==0){break}nB(q);HW(q)}else{y=c[G>>2]|0;j:do{if((y|0)==6){t=o+8|0;q=0;while(1){u=c[E>>2]|0;if(!((q|0)<(c[u+12>>2]|0)&(q|0)<64)){z=1;break j}ut(u,q,o)|0;u=c[r>>2]|0;if((u|0)==2){Qe(-1,161616,A);u=c[r>>2]|0;if((u|0)!=2){x=111;break}c[w+(q<<2)>>2]=~~+h[t>>3]}else if((u|0)==1){c[w+(q<<2)>>2]=c[s>>2]}else{x=113;break}Of(o);u=c[G>>2]|0;if((u|0)==6){q=q+1|0}else{x=106;break}}if((x|0)==106){c[H>>2]=u;c[I+4>>2]=6;Qe(0,162256,I);tc()}else if((x|0)==111){c[F>>2]=u;c[B+4>>2]=2;Qe(0,162256,B);tc()}else if((x|0)==113){c[C>>2]=u;Qe(-1,161688,D);Of(o);break a}}else if((y|0)==8){if(f){break a}x=c[E>>2]|0;B=jd[c[(c[x>>2]|0)+72>>2]&511](x)|0;Yu(B,161496,o,0)|0;y=c[r>>2]|0;if((y|0)==5){Of(o);Yu(B,161504,o,0)|0;y=c[r>>2]|0}if((y|0)!=1){x=161;break a}y=c[s>>2]|0;Of(o);Yu(B,161512,o,0)|0;z=c[r>>2]|0;if((z|0)==5){Of(o);Yu(B,161520,o,0)|0;z=c[r>>2]|0}if((z|0)!=1){x=161;break a}z=c[s>>2]|0;Of(o);Yu(B,161528,o,0)|0;A=c[r>>2]|0;if((A|0)==5){Of(o);Yu(B,160112,o,0)|0;A=c[r>>2]|0}if((A|0)==0){A=(a[s]&1)!=0}else{A=0}Of(o);Yu(B,161544,o,0)|0;C=c[r>>2]|0;if((C|0)==5){Of(o);Yu(B,161560,o,0)|0;C=c[r>>2]|0}if((C|0)!=0){x=161;break a}if((a[s]&1)==0){x=161;break a}Of(o);Yu(B,161600,o,0)|0;C=c[r>>2]|0;if((C|0)==5){Of(o);Yu(B,160288,o,0)|0;C=c[r>>2]|0}if((C|0)==6){ut(c[s>>2]|0,0,q)|0;p=c[u>>2]|0;do{if((p+ -1|0)>>>0<2){if((p|0)==1){P=+(c[t>>2]|0)}else{P=+h[t>>3]}if(P<.9){p=0;break}p=1}else{p=0}}while(0);Of(q)}else if((C|0)==5){p=0}else{x=161;break a}Of(o);o=c[b+116>>2]|0;k:do{if((o|0)!=0){if((a[o]&1)!=0){z=0;break j}while(1){o=c[o+4>>2]|0;if((o|0)==0){break k}if((a[o]&1)==0){}else{z=0;break j}}}}while(0);O=c[b+8>>2]|0;vd[c[(c[O>>2]|0)+320>>2]&3](O,c[b+28>>2]|0,d,e,j,k,v,l,x,y,z,p,A);break f}else{z=0}}while(0);o=c[b+116>>2]|0;l:do{if((o|0)!=0){if((a[o]&1)!=0){break f}while(1){o=c[o+4>>2]|0;if((o|0)==0){break l}if((a[o]&1)!=0){break f}}}}while(0);O=c[b+8>>2]|0;Ad[c[(c[O>>2]|0)+316>>2]&1](O,c[b+28>>2]|0,d,e,j,k,v,l,z?w:0,f)}}while(0);if((v|0)!=0){nB(v);HW(v)}Of(n);Of(m)}}while(0);e=da(k,j)|0;b=b+24|0;c[b>>2]=(c[b>>2]|0)+((e|0)>1e3?1e3:e);i=g;return}}while(0);if((x|0)==161){Of(o)}b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,161744,p);i=g;return}function Rx(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,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;e=i;r=i;i=i+8|0;s=r;v=i;i=i+8|0;w=v;z=i;i=i+8|0;y=z;B=i;i=i+8|0;A=B;C=i;i=i+8|0;D=C;E=i;i=i+8|0;F=E;K=i;i=i+8|0;L=K;N=i;i=i+8|0;U=i;i=i+8|0;T=U;V=i;i=i+8|0;W=i;i=i+8|0;Z=i;i=i+8|0;O=Z;I=i;i=i+16|0;H=I;Q=i;i=i+16|0;P=Q;R=i;i=i+48|0;k=R;j=i;i=i+32|0;J=i;i=i+16|0;f=J;x=i;i=i+16|0;g=x;q=i;i=i+16|0;m=q;u=i;i=i+16|0;p=u;c[I>>2]=13;M=H+8|0;c[M>>2]=0;c[M+4>>2]=0;c[Q>>2]=13;S=P+8|0;c[S>>2]=0;c[S+4>>2]=0;c[J>>2]=13;G=f+8|0;c[G>>2]=0;c[G+4>>2]=0;c[x>>2]=13;t=g+8|0;c[t>>2]=0;c[t+4>>2]=0;c[q>>2]=13;q=m+8|0;c[q>>2]=0;c[q+4>>2]=0;c[u>>2]=13;q=p+8|0;c[q>>2]=0;c[q+4>>2]=0;l=b+112|0;if((c[l>>2]|0)>20){i=e;return}Y=c[d>>2]|0;if((Y|0)!=8){c[Z>>2]=Y;c[O+4>>2]=8;Qe(0,162256,O);tc()}O=c[d+8>>2]|0;O=jd[c[(c[O>>2]|0)+72>>2]&511](O)|0;Yu(O,160360,g,0)|0;Y=c[x>>2]|0;if((Y|0)==1){if((c[t>>2]|0)!=1){X=6}}else if((Y|0)!=5){X=6}if((X|0)==6){X=c[b+120>>2]|0;do{if((X|0)==0){X=-1}else{X=c[X+4>>2]|0;if((c[X+16>>2]|0)!=8){X=-1;break}X=c[X+24>>2]|0;X=jd[c[(c[X>>2]|0)+48>>2]&511](X)|0}}while(0);Qe(X,160376,W)}Of(g);Yu(O,160400,P,0)|0;if((c[Q>>2]|0)!=6){Of(P);b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,160408,V);i=e;return}V=6;W=0;while(1){if((V|0)!=6){X=17;break}ut(c[S>>2]|0,W,g)|0;V=c[x>>2]|0;if((V+ -1|0)>>>0>=2){X=24;break}if((V|0)==1){_=+(c[t>>2]|0)}else{_=+h[t>>3]}h[j+(W<<3)>>3]=_;Of(g);W=W+1|0;if((W|0)>=4){X=28;break}V=c[Q>>2]|0}if((X|0)==17){c[U>>2]=V;c[T+4>>2]=6;Qe(0,162256,T);tc()}else if((X|0)==24){Of(g);b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,161768,N);i=e;return}else if((X|0)==28){Of(P);Yu(O,160472,H,0)|0;a:do{if((c[I>>2]|0)==6){P=6;N=0;while(1){if((P|0)!=6){break}ut(c[M>>2]|0,N,g)|0;P=c[x>>2]|0;if((P+ -1|0)>>>0<2){if((P|0)==1){_=+(c[t>>2]|0)}else{_=+h[t>>3]}h[k+(N<<3)>>3]=_}else{h[k+(N<<3)>>3]=0.0}Of(g);N=N+1|0;if((N|0)>=6){break a}P=c[I>>2]|0}c[K>>2]=P;c[L+4>>2]=6;Qe(0,162256,L);tc()}else{h[R>>3]=1.0;bX(k+8|0,0,16)|0;h[k+24>>3]=1.0;bX(k+32|0,0,16)|0}}while(0);Of(H);Yu(O,160480,f,0)|0;if((c[J>>2]|0)==7){G=c[G>>2]|0}else{G=0}if((c[(Yu(O,160096,g,0)|0)>>2]|0)==7){H=c[x>>2]|0;if((H|0)!=7){c[E>>2]=H;c[F+4>>2]=7;Qe(0,162256,F);tc()}E=Yu(c[t>>2]|0,160008,m,0)|0;do{if((c[E>>2]|0)==4){if((Qc(c[E+8>>2]|0,161800)|0)!=0){C=0;o=0;n=0;p=0;break}E=c[x>>2]|0;if((E|0)!=7){c[C>>2]=E;c[D+4>>2]=7;Qe(0,162256,D);tc()}if((c[(Yu(c[t>>2]|0,160104,p,0)|0)>>2]|0)==5){C=0}else{C=Jy(p,b)|0}Of(p);D=c[x>>2]|0;if((D|0)!=7){c[B>>2]=D;c[A+4>>2]=7;Qe(0,162256,A);tc()}do{if((c[(Yu(c[t>>2]|0,160112,p,0)|0)>>2]|0)==0){A=c[u>>2]|0;if((A|0)==0){o=(a[q]&1)!=0;break}else{c[z>>2]=A;c[y+4>>2]=0;Qe(0,162256,y);tc()}}else{o=0}}while(0);Of(p);x=c[x>>2]|0;if((x|0)!=7){c[v>>2]=x;c[w+4>>2]=7;Qe(0,162256,w);tc()}do{if((c[(Yu(c[t>>2]|0,160120,p,0)|0)>>2]|0)==0){t=c[u>>2]|0;if((t|0)==0){n=(a[q]&1)!=0;break}else{c[r>>2]=t;c[s+4>>2]=0;Qe(0,162256,s);tc()}}else{n=0}}while(0);Of(p);p=1}else{C=0;o=0;n=0;p=0}}while(0);Of(m)}else{C=0;o=0;n=0;p=0}Of(g);c[l>>2]=(c[l>>2]|0)+1;Ax(b,d,G,k,j,p,0,C,o,n,0,0,0);c[l>>2]=(c[l>>2]|0)+ -1;if((C|0)!=0){fd[c[(c[C>>2]|0)+4>>2]&511](C)}Of(f);i=e;return}}function Sx(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;e=i;i=i+8|0;j=i;i=i+8|0;g=j;o=i;i=i+8|0;m=i;i=i+16|0;b=m;h=i;i=i+16|0;f=h;c[m>>2]=13;l=b+8|0;c[l>>2]=0;c[l+4>>2]=0;c[h>>2]=13;n=f+8|0;c[n>>2]=0;c[n+4>>2]=0;Jf(b,c[a>>2]|0)|0;a=a+120|0;cG(c[a>>2]|0,f,0,0,0,0,0)|0;while(1){p=c[h>>2]|0;if((p|0)==4){p=Ge(c[n>>2]|0)|0;Of(f);cG(c[a>>2]|0,f,0,0,0,0,0)|0;if(((c[h>>2]|0)+ -11|0)>>>0<2){k=13;break}q=c[m>>2]|0;if((q|0)!=7){k=10;break}Tu(c[l>>2]|0,p,f)}else if((p|0)==10){if((Qc(c[n>>2]|0,161912)|0)==0){break}else{k=4}}else if((p|0)==12){k=14;break}else{k=4}if((k|0)==4){k=0;p=c[a>>2]|0;do{if((p|0)==0){p=-1}else{p=c[p+4>>2]|0;if((c[p+16>>2]|0)!=8){p=-1;break}p=c[p+24>>2]|0;p=jd[c[(c[p>>2]|0)+48>>2]&511](p)|0}}while(0);Qe(p,161920,o);Of(f)}cG(c[a>>2]|0,f,0,0,0,0,0)|0}if((k|0)==10){c[j>>2]=q;c[g+4>>2]=7;Qe(0,162256,g);tc()}else if((k|0)==13){Fe(p);if((c[h>>2]|0)==12){k=14}}if((k|0)==14){g=c[a>>2]|0;do{if((g|0)==0){g=-1}else{g=c[g+4>>2]|0;if((c[g+16>>2]|0)!=8){g=-1;break}g=c[g+24>>2]|0;g=jd[c[(c[g>>2]|0)+48>>2]&511](g)|0}}while(0);Qe(g,161976,e);Of(f);Of(b);q=0;i=d;return q|0}Of(f);f=(c[a>>2]|0)+4|0;e=c[f>>2]|0;do{if((c[e+16>>2]|0)==8){if((c[e+24>>2]|0)==0){break}e=FW(40)|0;f=c[f>>2]|0;if((c[f+16>>2]|0)==8){f=c[f+24>>2]|0}else{f=0}$j(e,f,b,0,0);q=qj(e,b)|0;i=d;return q|0}}while(0);Of(b);q=0;i=d;return q|0}function Tx(a,b,d,e,f,g,j,k){a=a|0;b=b|0;d=d|0;e=e|0;f=+f;g=+g;j=+j;k=+k;var l=0,m=0,n=0,o=0,p=0,q=0,r=0.0,s=0.0,t=0.0,u=0.0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0.0,D=0.0,E=0.0,F=0,G=0.0,H=0.0,I=0.0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0.0,ba=0,ca=0.0,da=0.0,ea=0.0,fa=0.0,ga=0.0,ha=0.0,ia=0.0,ja=0.0;l=i;L=i;i=i+16|0;K=L;N=i;i=i+8|0;J=N;V=i;i=i+8|0;Y=i;i=i+8|0;X=Y;$=i;i=i+8|0;M=i;i=i+16|0;S=M;Z=i;i=i+16|0;W=Z;z=i;i=i+16|0;x=z;R=i;i=i+16|0;U=R;B=i;i=i+48|0;w=B;O=i;i=i+32|0;y=O;v=i;i=i+120|0;c[M>>2]=13;P=S+8|0;c[P>>2]=0;c[P+4>>2]=0;c[Z>>2]=13;_=W+8|0;c[_>>2]=0;c[_+4>>2]=0;c[z>>2]=13;A=x+8|0;c[A>>2]=0;c[A+4>>2]=0;c[R>>2]=13;Q=U+8|0;c[Q>>2]=0;c[Q+4>>2]=0;m=a+28|0;q=c[m>>2]|0;ha=+h[q+16>>3];ea=+h[q+40>>3];ia=+h[q+24>>3];fa=+h[q+32>>3];ja=1.0/(ha*ea-ia*fa);u=ea*ja;s=-0.0-ia*ja;r=-0.0-fa*ja;t=ha*ja;da=+h[q+56>>3];ca=+h[q+48>>3];ea=ja*(fa*da-ea*ca);da=ja*(ia*ca-ha*da);q=a+64|0;ha=+h[q>>3];n=a+80|0;ca=+h[n>>3];ia=+h[a+96>>3];ja=ia+(ha*f+ca*g);o=a+72|0;fa=+h[o>>3];p=a+88|0;aa=+h[p>>3];ga=+h[a+104>>3];g=ga+(fa*f+aa*g);f=ea+(u*ja+g*r);g=da+(ja*s+t*g);ca=ia+(ha*j+ca*k);aa=ga+(fa*j+aa*k);j=ea+(u*ca+aa*r);aa=da+(ca*s+t*aa);F=f>j;k=F?f:j;j=F?j:f;F=g>aa;f=F?aa:g;g=F?g:aa;do{if((c[b>>2]|0)==8){F=c[b+8>>2]|0;F=jd[c[(c[F>>2]|0)+72>>2]&511](F)|0;Yu(F,160400,W,0)|0;if((c[Z>>2]|0)!=6){Of(W);m=c[a+120>>2]|0;do{if((m|0)==0){m=-1}else{m=c[m+4>>2]|0;if((c[m+16>>2]|0)!=8){m=-1;break}m=c[m+24>>2]|0;m=jd[c[(c[m>>2]|0)+48>>2]&511](m)|0}}while(0);Qe(m,160408,$);i=l;return}$=6;ba=0;while(1){if(($|0)!=6){Z=9;break}ut(c[_>>2]|0,ba,U)|0;$=c[R>>2]|0;if(($+ -1|0)>>>0>=2){Z=16;break}if(($|0)==1){aa=+(c[Q>>2]|0)}else{aa=+h[Q>>3]}h[y+(ba<<3)>>3]=aa;Of(U);ba=ba+1|0;if((ba|0)>=4){Z=20;break}$=c[Z>>2]|0}if((Z|0)==9){c[Y>>2]=$;c[X+4>>2]=6;Qe(0,162256,X);tc()}else if((Z|0)==16){Of(U);m=c[a+120>>2]|0;do{if((m|0)==0){m=-1}else{m=c[m+4>>2]|0;if((c[m+16>>2]|0)!=8){m=-1;break}m=c[m+24>>2]|0;m=jd[c[(c[m>>2]|0)+48>>2]&511](m)|0}}while(0);Qe(m,161768,V);i=l;return}else if((Z|0)==20){Of(W);Yu(F,160472,S,0)|0;do{if((c[M>>2]|0)==6){if((c[(c[P>>2]|0)+12>>2]|0)>5){W=6;V=0}else{Z=31;break}while(1){if((W|0)!=6){Z=23;break}ut(c[P>>2]|0,V,U)|0;W=c[R>>2]|0;if((W+ -1|0)>>>0>=2){Z=25;break}if((W|0)==1){aa=+(c[Q>>2]|0)}else{aa=+h[Q>>3]}h[w+(V<<3)>>3]=aa;Of(U);V=V+1|0;if((V|0)>=6){Z=32;break}W=c[M>>2]|0}if((Z|0)==23){c[N>>2]=W;c[J+4>>2]=6;Qe(0,162256,J);tc()}else if((Z|0)==25){c[L>>2]=W;c[K+4>>2]=1;c[K+8>>2]=2;Qe(0,162328,K);tc()}else if((Z|0)==32){C=+h[w+40>>3];E=+h[w+24>>3];D=+h[w+8>>3];G=+h[w+32>>3];I=+h[w+16>>3];H=+h[B>>3];break}}else{Z=31}}while(0);if((Z|0)==31){h[B>>3]=1.0;bX(w+8|0,0,16)|0;h[w+24>>3]=1.0;bX(w+32|0,0,16)|0;C=0.0;E=1.0;D=0.0;G=0.0;I=0.0;H=1.0}Of(S);ia=+h[O>>3];aa=+h[y+8>>3];N=w+16|0;J=w+32|0;ca=G+(ia*H+aa*I);M=w+8|0;K=w+24|0;L=w+40|0;aa=C+(ia*D+aa*E);ia=+h[y+16>>3];ja=+h[y+24>>3];G=G+(H*ia+I*ja);D=C+(D*ia+E*ja);O=ca>G;C=O?ca:G;E=O?G:ca;O=aa>D;G=O?aa:D;D=O?D:aa;if(C==E){C=1.0}else{C=(k-j)/(C-E)}if(G==D){G=1.0}else{G=(g-f)/(G-D)}h[B>>3]=C*+h[B>>3];h[N>>3]=C*+h[N>>3];h[J>>3]=j+C*(+h[J>>3]-E);h[M>>3]=G*+h[M>>3];h[K>>3]=G*+h[K>>3];h[L>>3]=f+G*(+h[L>>3]-D);Yu(F,160480,x,0)|0;if((c[z>>2]|0)==7){z=c[A>>2]|0}else{z=0}Ax(a,b,z,w,y,0,0,0,0,0,0,0,0);Of(x);break}}}while(0);if((d|0)==0){i=l;return}if(+wd[c[(c[d>>2]|0)+12>>2]&1](d)<=0.0){i=l;return}ba=c[(c[m>>2]|0)+120>>2]|0;if((jd[c[(c[ba>>2]|0)+12>>2]&511](ba)|0)!=2){OB(c[m>>2]|0,0);$=c[m>>2]|0;ba=FWFW(32)|0;fe(g,c[E>>2]|0)}else{g=0}Of(h);Yu(e,162424,h,0)|0;F=162512;a:do{if((c[D>>2]|0)==4){F=c[E>>2]|0;do{if((Qc(F|0,162432)|0)!=0){if((Qc(F|0,162440)|0)==0){break}if((Qc(F|0,162448)|0)==0){F=FW(3544)|0;A=d;D=c[A+4>>2]|0;E=C;c[E>>2]=c[A>>2];c[E+4>>2]=D;$W(B|0,C|0,8)|0;by(F,a,b,v,g,2,e);Of(h);i=j;return F|0}if((Qc(F|0,162456)|0)==0){F=FW(3544)|0;C=d;D=c[C+4>>2]|0;E=u;c[E>>2]=c[C>>2];c[E+4>>2]=D;$W(t|0,u|0,8)|0;by(F,a,b,r,g,4,e);Of(h);i=j;return F|0}if((Qc(F|0,162464)|0)==0){F=FW(3544)|0;C=d;D=c[C+4>>2]|0;E=p;c[E>>2]=c[C>>2];c[E+4>>2]=D;$W(y|0,p|0,8)|0;by(F,a,b,q,g,5,e);Of(h);i=j;return F|0}if((Qc(F|0,162480)|0)!=0){break a}F=FW(232)|0;C=d;D=c[C+4>>2]|0;E=w;c[E>>2]=c[C>>2];c[E+4>>2]=D;$W(x|0,w|0,8)|0;ky(F,a,b,o,g,e);Of(h);i=j;return F|0}}while(0);F=FW(3544)|0;C=d;D=c[C+4>>2]|0;E=s;c[E>>2]=c[C>>2];c[E+4>>2]=D;$W(z|0,s|0,8)|0;by(F,a,b,A,g,1,e);Of(h);i=j;return F|0}}while(0);c[n>>2]=F;Qe(-1,162488,f);F=FW(3544)|0;C=d;D=c[C+4>>2]|0;E=m;c[E>>2]=c[C>>2];c[E+4>>2]=D;$W(l|0,m|0,8)|0;by(F,a,b,k,g,0,e);Of(h);i=j;return F|0}function Vx(a){a=a|0;var b=0;b=i;Wx(a);HW(a);i=b;return}function Wx(a){a=a|0;var b=0,d=0,e=0;b=i;c[a>>2]=162528;d=c[a+8>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+24>>2]|0;if((d|0)!=0){ke(d);HW(d)}e=c[a+36>>2]|0;d=a+20|0;do{if((e|0)!=0){if((e|0)==(c[d>>2]|0)){break}ke(e);HW(e)}}while(0);d=c[d>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+48>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+60>>2]|0;if((d|0)!=0){ke(d);HW(d)}a=c[a+4>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function Xx(a){a=a|0;a=a+168|0;c[a>>2]=(c[a>>2]|0)+1;i=i;return}function Yx(a){a=a|0;var b=0,d=0,e=0;b=i;e=a+168|0;d=(c[e>>2]|0)+ -1|0;c[e>>2]=d;if((d|0)!=0|(a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+20>>2]&511](a);i=b;return}function Zx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0.0;q=i;n=i;i=i+16|0;m=n;r=i;i=i+8|0;e=r;u=i;i=i+8|0;t=u;y=i;i=i+8|0;x=y;A=i;i=i+8|0;z=A;D=i;i=i+8|0;E=D;X=i;i=i+8|0;_=X;H=i;i=i+8|0;T=i;i=i+8|0;U=T;I=i;i=i+8|0;J=i;i=i+8|0;W=i;i=i+8|0;Q=W;M=i;i=i+8|0;L=i;i=i+8|0;R=i;i=i+8|0;Y=R;O=i;i=i+8|0;P=i;i=i+8|0;S=i;i=i+8|0;$=S;N=i;i=i+8|0;K=i;i=i+8|0;V=i;i=i+8|0;Z=V;da=i;i=i+8|0;ca=da;ea=i;i=i+8|0;fa=ea;ga=i;i=i+8|0;ha=i;i=i+8|0;ia=ha;ja=i;i=i+8|0;ka=ja;ma=i;i=i+8|0;la=i;i=i+8|0;na=i;i=i+8|0;oa=na;pa=i;i=i+8|0;qa=pa;ra=i;i=i+8|0;ta=i;i=i+8|0;sa=ta;ua=i;i=i+8|0;wa=i;i=i+8|0;va=wa;ya=i;i=i+8|0;xa=ya;Ba=i;i=i+8|0;za=i;i=i+8|0;Aa=za;Da=i;i=i+8|0;Ca=Da;Ea=i;i=i+8|0;Fa=Ea;Ia=i;i=i+8|0;Ha=Ia;w=i;i=i+16|0;o=w;l=i;i=i+16|0;j=l;g=i;i=i+16|0;p=g;aa=i;i=i+16|0;F=aa;c[w>>2]=13;v=o+8|0;c[v>>2]=0;c[v+4>>2]=0;c[l>>2]=13;f=j+8|0;c[f>>2]=0;c[f+4>>2]=0;c[g>>2]=13;s=p+8|0;c[s>>2]=0;c[s+4>>2]=0;c[aa>>2]=13;ba=F+8|0;c[ba>>2]=0;c[ba+4>>2]=0;Ga=a+44|0;c[Ga>>2]=2;G=a+52|0;c[G>>2]=-1;c[a+56>>2]=-1;B=a+144|0;h[B>>3]=0.0;if((c[(Yu(d,162552,o,0)|0)>>2]|0)!=7){Of(o);i=q;return}d=c[w>>2]|0;if((d|0)!=7){c[Ia>>2]=d;c[Ha+4>>2]=7;Qe(0,166192,Ha);tc()}do{if((c[(Yu(c[v>>2]|0,162568,j,0)|0)>>2]|0)==1){Ha=c[l>>2]|0;if((Ha|0)==1){c[Ga>>2]=c[f>>2];break}else{c[Ea>>2]=Ha;c[Fa+4>>2]=1;Qe(0,166192,Fa);tc()}}}while(0);Of(j);Ea=c[w>>2]|0;if((Ea|0)!=7){c[Da>>2]=Ea;c[Ca+4>>2]=7;Qe(0,166192,Ca);tc()}Yu(c[v>>2]|0,162576,j,0)|0;if((c[l>>2]|0)==4){d=FW(32)|0;fe(d,c[f>>2]|0);Ca=a+48|0;c[Ca>>2]=d}else{Ca=a+48|0}Of(j);if((c[Ca>>2]|0)==0){Da=c[w>>2]|0;if((Da|0)!=7){c[za>>2]=Da;c[Aa+4>>2]=7;Qe(0,166192,Aa);tc()}Yu(c[v>>2]|0,162592,j,0)|0;if((c[l>>2]|0)==4){d=FW(32)|0;fe(d,c[f>>2]|0);c[Ca>>2]=d;Qe(-1,162608,Ba)}Of(j)}za=c[w>>2]|0;if((za|0)!=7){c[ya>>2]=za;c[xa+4>>2]=7;Qe(0,166192,xa);tc()}Yu(c[v>>2]|0,162704,j,0)|0;if((c[l>>2]|0)==3){d=FW(32)|0;ie(d,c[f>>2]|0);c[a+24>>2]=d}Of(j);xa=c[w>>2]|0;if((xa|0)!=7){c[wa>>2]=xa;c[va+4>>2]=7;Qe(0,166192,va);tc()}Yu(c[v>>2]|0,162720,j,0)|0;do{if((c[l>>2]|0)==4){va=c[f>>2]|0;if((Qc(va|0,162736)|0)==0){c[a+28>>2]=1;break}if((Qc(va|0,162752)|0)==0){c[a+28>>2]=2;break}if((Qc(va|0,162768)|0)==0){c[a+28>>2]=3;break}if((Qc(va|0,162784)|0)==0){c[a+28>>2]=4;break}if((Qc(va|0,162800)|0)==0){c[a+28>>2]=5;break}if((Qc(va|0,162808)|0)==0){c[a+28>>2]=6;break}if((Qc(va|0,162824)|0)==0){c[a+28>>2]=7;break}if((Qc(va|0,162840)|0)==0){c[a+28>>2]=8;break}if((Qc(va|0,162856)|0)==0){c[a+28>>2]=9;break}else{Qe(-1,162872,ua);break}}}while(0);Of(j);ua=c[w>>2]|0;if((ua|0)!=7){c[ta>>2]=ua;c[sa+4>>2]=7;Qe(0,166192,sa);tc()}Yu(c[v>>2]|0,162896,j,0)|0;sa=c[l>>2]|0;do{if((sa+ -1|0)>>>0<2){sa=(sa|0)==1;if(sa){d=c[f>>2]|0;ta=d;Ja=+(d|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ta=c[k>>2]|0}if(Ja==100.0){c[a+32>>2]=1;break}if(sa){ua=ta;Ja=+(ta|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ua=c[k>>2]|0}if(Ja==200.0){c[a+32>>2]=2;break}if(sa){ta=ua;Ja=+(ua|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ta=c[k>>2]|0}if(Ja==300.0){c[a+32>>2]=3;break}if(sa){ua=ta;Ja=+(ta|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ua=c[k>>2]|0}if(Ja==400.0){c[a+32>>2]=4;break}if(sa){ta=ua;Ja=+(ua|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ta=c[k>>2]|0}if(Ja==500.0){c[a+32>>2]=5;break}if(sa){ua=ta;Ja=+(ta|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ua=c[k>>2]|0}if(Ja==600.0){c[a+32>>2]=6;break}if(sa){ta=ua;Ja=+(ua|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ta=c[k>>2]|0}if(Ja==700.0){c[a+32>>2]=7;break}if(sa){ua=ta;Ja=+(ta|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ua=c[k>>2]|0}if(Ja==800.0){c[a+32>>2]=8;break}if(sa){Ja=+(ua|0)}else{Ja=+h[f>>3]}if(Ja==900.0){c[a+32>>2]=9;break}else{Qe(-1,162912,ra);break}}}while(0);Of(j);ra=c[w>>2]|0;if((ra|0)!=7){c[pa>>2]=ra;c[qa+4>>2]=7;Qe(0,166192,qa);tc()}do{if((c[(Zu(c[v>>2]|0,162936,j)|0)>>2]|0)==9){pa=c[l>>2]|0;if((pa|0)!=9){c[na>>2]=pa;c[oa+4>>2]=9;Qe(0,166192,oa);tc()}Ia=f;d=c[Ia+4>>2]|0;na=G;c[na>>2]=c[Ia>>2];c[na+4>>2]=d;na=a+40|0;if((c[na>>2]|0)==1){break}Qe(-1,162952,la);if(jd[c[c[a>>2]>>2]&511](a)|0){Qe(-1,163008,ma);c[na>>2]=7;break}else{c[na>>2]=1;break}}}while(0);Of(j);do{if((c[G>>2]|0)==-1){la=c[w>>2]|0;if((la|0)!=7){c[ja>>2]=la;c[ka+4>>2]=7;Qe(0,166192,ka);tc()}if((c[(Zu(c[v>>2]|0,163064,j)|0)>>2]|0)!=9){break}ja=c[l>>2]|0;if((ja|0)!=9){c[ha>>2]=ja;c[ia+4>>2]=9;Qe(0,166192,ia);tc()}Ia=f;d=c[Ia+4>>2]|0;ha=G;c[ha>>2]=c[Ia>>2];c[ha+4>>2]=d;ha=a+40|0;d=c[ha>>2]|0;if((d|0)==10|(d|0)==5){break}Qe(-1,162952,ga);d=jd[c[c[a>>2]>>2]&511](a)|0;c[ha>>2]=d?10:5}}while(0);Of(j);do{if((c[G>>2]|0)==-1){ga=c[w>>2]|0;if((ga|0)!=7){c[ea>>2]=ga;c[fa+4>>2]=7;Qe(0,166192,fa);tc()}if((c[(Zu(c[v>>2]|0,163080,j)|0)>>2]|0)!=9){break}if((c[(Nf(j,b,p,0)|0)>>2]|0)==8){ea=c[g>>2]|0;if((ea|0)!=8){c[da>>2]=ea;c[ca+4>>2]=8;Qe(0,166192,ca);tc()}ca=c[s>>2]|0;Yu(jd[c[(c[ca>>2]|0)+72>>2]&511](ca)|0,162424,F,0)|0;ca=162512;do{if((c[aa>>2]|0)==4){ca=c[ba>>2]|0;if((Qc(ca|0,162432)|0)==0){H=c[l>>2]|0;if((H|0)!=9){c[V>>2]=H;c[Z+4>>2]=9;Qe(0,166192,Z);tc()}Ia=f;d=c[Ia+4>>2]|0;c[G>>2]=c[Ia>>2];c[G+4>>2]=d;G=a+40|0;if((c[G>>2]|0)==1){break}Qe(-1,162952,K);if(jd[c[c[a>>2]>>2]&511](a)|0){Qe(-1,163096,N);c[G>>2]=7;break}else{c[G>>2]=1;break}}if((Qc(ca|0,162448)|0)==0){H=c[l>>2]|0;if((H|0)!=9){c[S>>2]=H;c[$+4>>2]=9;Qe(0,166192,$);tc()}Ia=f;d=c[Ia+4>>2]|0;c[G>>2]=c[Ia>>2];c[G+4>>2]=d;G=a+40|0;if(((c[G>>2]|0)+ -1|0)>>>0>=2){Qe(-1,162952,P)}if(jd[c[c[a>>2]>>2]&511](a)|0){Qe(-1,163152,O);c[G>>2]=8;break}else{c[G>>2]=2;break}}if((Qc(ca|0,162464)|0)==0){H=c[l>>2]|0;if((H|0)!=9){c[R>>2]=H;c[Y+4>>2]=9;Qe(0,166192,Y);tc()}Ia=f;d=c[Ia+4>>2]|0;c[G>>2]=c[Ia>>2];c[G+4>>2]=d;G=a+40|0;if((c[G>>2]|0)==5){break}Qe(-1,162952,L);if(jd[c[c[a>>2]>>2]&511](a)|0){Qe(-1,163208,M);c[G>>2]=10;break}else{c[G>>2]=5;break}}if((Qc(ca|0,163264)|0)==0){H=c[l>>2]|0;if((H|0)!=9){c[W>>2]=H;c[Q+4>>2]=9;Qe(0,166192,Q);tc()}Ia=f;d=c[Ia+4>>2]|0;c[G>>2]=c[Ia>>2];c[G+4>>2]=d;G=a+40|0;if((c[G>>2]|0)!=7){Qe(-1,162952,J)}if(jd[c[c[a>>2]>>2]&511](a)|0){c[G>>2]=8;break}else{Qe(-1,163280,I);c[G>>2]=2;break}}if((Qc(ca|0,163344)|0)!=0){C=158;break}I=c[l>>2]|0;if((I|0)!=9){c[T>>2]=I;c[U+4>>2]=9;Qe(0,166192,U);tc()}d=f;I=c[d+4>>2]|0;c[G>>2]=c[d>>2];c[G+4>>2]=I;G=a+40|0;I=c[G>>2]|0;if((I|0)==1){c[G>>2]=3;break}else if((I|0)==7){c[G>>2]=9;break}else if((I|0)==10){c[G>>2]=11;break}else if((I|0)==5){c[G>>2]=6;break}else{Qe(-1,162952,H);break}}else{C=158}}while(0);if((C|0)==158){c[X>>2]=ca;Qe(-1,163360,_)}Of(F)}Of(p)}}while(0);Of(j);C=c[w>>2]|0;if((C|0)!=7){c[D>>2]=C;c[E+4>>2]=7;Qe(0,166192,E);tc()}Yu(c[v>>2]|0,163392,j,0)|0;C=c[l>>2]|0;if((C+ -1|0)>>>0<2){if((C|0)==1){Ja=+(c[f>>2]|0)}else{Ja=+h[f>>3]}h[B>>3]=Ja}Of(j);B=c[w>>2]|0;if((B|0)!=7){c[A>>2]=B;c[z+4>>2]=7;Qe(0,166192,z);tc()}Yu(c[v>>2]|0,163408,j,0)|0;z=c[l>>2]|0;do{if((z+ -1|0)>>>0<2){if((z|0)==1){Ja=+(c[f>>2]|0)}else{Ja=+h[f>>3]}Ja=Ja*.001;if(Ja==0.0){break}h[a+152>>3]=Ja}}while(0);Of(j);z=c[w>>2]|0;if((z|0)!=7){c[y>>2]=z;c[x+4>>2]=7;Qe(0,166192,x);tc()}Yu(c[v>>2]|0,163416,j,0)|0;x=c[l>>2]|0;do{if((x+ -1|0)>>>0<2){if((x|0)==1){Ja=+(c[f>>2]|0)}else{Ja=+h[f>>3]}Ja=Ja*.001;x=a+160|0;if(Ja!=0.0){h[x>>3]=Ja}else{Ja=+h[x>>3]}if(Ja<=0.0){break}h[a+160>>3]=-0.0-Ja}}while(0);Of(j);w=c[w>>2]|0;if((w|0)!=7){c[u>>2]=w;c[t+4>>2]=7;Qe(0,166192,t);tc()}a:do{if((c[(Yu(c[v>>2]|0,163424,j,0)|0)>>2]|0)==6){t=0;while(1){u=c[l>>2]|0;if((u|0)!=6){C=192;break}u=c[f>>2]|0;if((t|0)>=(c[u+12>>2]|0)){break a}if(((c[(ut(u,t,p)|0)>>2]|0)+ -1|0)>>>0<2){u=c[g>>2]|0;if((u+ -1|0)>>>0>=2){C=196;break}if((u|0)==1){Ja=+(c[s>>2]|0)}else{Ja=+h[s>>3]}h[a+112+(t<<3)>>3]=Ja*.001}Of(p);t=t+1|0;if((t|0)>=4){break a}}if((C|0)==192){c[r>>2]=u;c[e+4>>2]=6;Qe(0,166192,e);tc()}else if((C|0)==196){c[n>>2]=u;c[m+4>>2]=1;c[m+8>>2]=2;Qe(0,167792,m);tc()}}}while(0);Of(j);Of(o);i=q;return}function _x(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;g=i;k=i;i=i+8|0;l=k;q=i;i=i+8|0;p=q;n=i;i=i+4096|0;m=i;i=i+16|0;h=m;c[m>>2]=13;j=h+8|0;c[j>>2]=0;c[j+4>>2]=0;if((c[(Yu(d,163440,h,0)|0)>>2]|0)!=8){Of(h);r=0;i=g;return r|0}d=FW(32)|0;ee(d);r=c[m>>2]|0;if((r|0)!=8){c[q>>2]=r;c[p+4>>2]=8;Qe(0,166192,p);tc()}p=c[j>>2]|0;fd[c[(c[p>>2]|0)+12>>2]&511](p);while(1){a:do{if(jd[c[(c[p>>2]|0)+88>>2]&511](p)|0){q=sd[c[(c[p>>2]|0)+92>>2]&127](p,4096,n)|0;o=10}else{q=0;while(1){r=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((r|0)==-1){o=10;break a}a[n+q|0]=r;q=q+1|0;if((q|0)>=4096){q=4096;break}}}}while(0);if((o|0)==10){o=0;if((q|0)==0){break}}ne(d,n,q)|0}m=c[m>>2]|0;if((m|0)!=8){c[k>>2]=m;c[l+4>>2]=8;Qe(0,166192,l);tc()}r=c[j>>2]|0;fd[c[(c[r>>2]|0)+16>>2]&511](r);Of(h);if((f|0)==0){f=lu(d,e)|0}else{qu(f,d,e)}a[b+173|0]=1;if((d|0)==0){r=f;i=g;return r|0}ke(d);HW(d);r=f;i=g;return r|0}function $x(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;e=i;k=i;i=i+8|0;o=i;i=i+16|0;f=o;l=i;i=i+16|0;g=l;m=f+8|0;c[l>>2]=13;h=g+8|0;c[h>>2]=0;c[h+4>>2]=0;j=a+52|0;n=c[j>>2]|0;a=c[a+56>>2]|0;c[o>>2]=9;c[m>>2]=n;c[m+4>>2]=a;Nf(f,b,g,0)|0;if((c[l>>2]|0)==8){n=c[h>>2]|0;o=ay(n,d,4096,4096)|0;fd[c[(c[n>>2]|0)+16>>2]&511](n);Of(g);Of(f);i=e;return o|0}else{Qe(-1,163544,k);Of(g);Of(f);c[j>>2]=-1;c[d>>2]=0;o=0;i=e;return o|0}return 0}function ay(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;h=i;g=we(e)|0;c[d>>2]=0;fd[c[(c[b>>2]|0)+12>>2]&511](b);j=e;while(1){k=c[d>>2]|0;l=jd[c[(c[b>>2]|0)+88>>2]&511](b)|0;if((j|0)>0){a:do{if(l){l=sd[c[(c[b>>2]|0)+92>>2]&127](b,j,g+k|0)|0}else{l=0;while(1){m=jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;if((m|0)==-1){break a}a[g+(l+k)|0]=m;l=l+1|0;if((l|0)>=(j|0)){l=j;break}}}}while(0);if((l|0)==0){d=16;break}c[d>>2]=(c[d>>2]|0)+l;if((l|0)!=(j|0)){d=16;break}if((jd[c[(c[b>>2]|0)+24>>2]&511](b)|0)==-1){d=16;break}}else{if(l){k=sd[c[(c[b>>2]|0)+92>>2]&127](b,j,g+k|0)|0}else{k=j}if((k|0)==0){d=16;break}c[d>>2]=(c[d>>2]|0)+k;if((k|0)!=(j|0)){d=16;break}if((jd[c[(c[b>>2]|0)+24>>2]&511](b)|0)==-1){d=16;break}}m=e+f|0;g=xe(g,m)|0;j=f;e=m}if((d|0)==16){i=h;return g|0}return 0}function by(d,f,g,j,k,l,m){d=d|0;f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0.0,pa=0.0;p=i;u=i;i=i+8|0;t=u;M=i;i=i+8|0;L=M;H=i;i=i+8|0;I=H;N=i;i=i+8|0;O=N;Y=i;i=i+8|0;X=i;i=i+16|0;W=X;Z=i;i=i+8|0;V=Z;ca=i;i=i+16|0;da=ca;aa=i;i=i+8|0;ba=aa;T=i;i=i+8|0;U=T;A=i;i=i+1024|0;B=A;C=i;i=i+32|0;D=C;o=i;i=i+8|0;n=o;r=i;i=i+16|0;q=r;s=i;i=i+16|0;v=s;J=i;i=i+16|0;K=J;z=i;i=i+8|0;y=z;S=j;R=c[S>>2]|0;S=c[S+4>>2]|0;c[d>>2]=162528;j=d+172|0;a[j]=0;E=FW(32)|0;fe(E,g);c[d+8>>2]=E;E=d+12|0;c[E>>2]=R;c[E+4>>2]=S;E=d+20|0;c[E>>2]=k;c[d+36>>2]=k;S=d+48|0;c[S>>2]=0;R=d+60|0;c[R>>2]=0;c[d+24>>2]=0;c[d+28>>2]=0;c[d+32>>2]=0;c[d+4>>2]=0;a[d+173|0]=0;c[d>>2]=163592;_=d+3512|0;c[_>>2]=13;$=d+3520|0;c[$>>2]=0;c[$+4>>2]=0;$=d+3528|0;c[$>>2]=13;g=d+3536|0;c[g>>2]=0;c[g+4>>2]=0;c[r>>2]=13;g=q+8|0;c[g>>2]=0;c[g+4>>2]=0;c[s>>2]=13;w=v+8|0;c[w>>2]=0;c[w+4>>2]=0;c[J>>2]=13;P=K+8|0;c[P>>2]=0;c[P+4>>2]=0;c[d+168>>2]=1;x=d+40|0;c[x>>2]=l;l=d+1456|0;c[l>>2]=0;a:do{if((k|0)==0){G=19}else{F=FW(32)|0;ie(F,k);k=F+24|0;fa=c[k>>2]|0;b:do{if((fa|0)>0){Q=F+28|0;ea=0;while(1){while(1){if((a[(c[Q>>2]|0)+ea|0]|0)!=32){break}re(F,ea,1)|0;fa=c[k>>2]|0;if((ea|0)>=(fa|0)){Q=0;ea=51;break b}}ea=ea+1|0;if((ea|0)>=(fa|0)){Q=0;ea=51;break}}}else{Q=0;ea=51}}while(0);do{k=(ea+Q|0)/2|0;fa=(te(F,c[163616+(k<<3)>>2]|0)|0)>-1;Q=fa?k:Q;ea=fa?ea:k;}while((ea-Q|0)>1);if((te(F,c[163616+(Q<<3)>>2]|0)|0)==0){na=FWFW(32)|0;fe(na,aH(T)|0);c[S>>2]=na}if((W|0)!=0){f=0;U=G;S=0;G=95;break}f=1;W=cH(T)|0;U=G;S=0;G=95}else{f=0;S=0;T=0}}while(0);do{if((G|0)==84){X=c[R>>2]|0;if((X|0)==0){if((c[d+52>>2]|0)<=-1){f=0;S=0;T=0;break}na=$x(d,f,U)|0;G=na;T=Tn(na,c[T>>2]|0)|0}else{G=0;T=Vn(c[X+28>>2]|0)|0}if((T|0)==0){f=0;U=G;S=0;T=0;G=95;break}if((Yn(T)|0)!=0){f=c[S>>2]|0;if((f|0)!=0){ke(f);HW(f)}na=FW(32)|0;fe(na,Yn(T)|0);c[S>>2]=na}if((W|0)!=0){f=0;U=G;S=T;T=0;G=95;break}f=1;W=Zn(T)|0;U=G;S=T;T=0;G=95}}while(0);do{if((G|0)==95){if((U|0)==0){break}Fe(U)}}while(0);f:do{if((W|0)==0){do{if(F){if((c[d+52>>2]|0)>=0){break}W=c[k+4>>2]|0;a[V]=1;break f}}while(0);W=(c[x>>2]|0)==5?139424:140464}}while(0);U=f&1;if(f){X=0;do{Z=W+(X<<2)|0;Y=d+176+(X<<2)|0;c[Y>>2]=c[Z>>2];a[d+1200+X|0]=U;if((c[Y>>2]|0)!=0){c[Y>>2]=Ge(c[Z>>2]|0)|0}X=X+1|0;}while((X|0)<256)}else{X=0;do{c[d+176+(X<<2)>>2]=c[W+(X<<2)>>2];a[d+1200+X|0]=U;X=X+1|0;}while((X|0)<256)}do{if((c[x>>2]|0)==2){if((c[R>>2]|0)==0){if((c[d+52>>2]|0)<0|f^1){break}else{U=0}}else{if(f){U=0}else{break}}do{R=d+176+(U<<2)|0;do{if((c[R>>2]|0)==0){f=c[140464+(U<<2)>>2]|0;if((f|0)==0){break}c[R>>2]=f;a[d+1200+U|0]=0}}while(0);U=U+1|0;}while((U|0)<256)}}while(0);if((c[r>>2]|0)==7){Yu(c[g>>2]|0,164224,v,0)|0;g:do{if((c[s>>2]|0)==6){a[V]=1;f=0;R=0;while(1){U=c[w>>2]|0;if((R|0)>=(c[U+12>>2]|0)){break g}ut(U,R,K)|0;U=c[J>>2]|0;if((U|0)==1){f=c[P>>2]|0}else if((U|0)==4){if(f>>>0<256){U=d+1200+f|0;if((a[U]|0)!=0){Fe(c[d+176+(f<<2)>>2]|0);V=c[J>>2]|0;if((V|0)!=4){G=125;break}}c[d+176+(f<<2)>>2]=Ge(c[P>>2]|0)|0;a[U]=1}f=f+1|0}else{c[M>>2]=Pf(K)|0;Qe(-1,164240,L)}Of(K);U=c[s>>2]|0;if((U|0)==6){R=R+1|0}else{G=118;break}}if((G|0)==118){c[N>>2]=U;c[O+4>>2]=6;Qe(0,166192,O);tc()}else if((G|0)==125){c[H>>2]=V;c[I+4>>2]=4;Qe(0,166192,I);tc()}}}while(0);Of(v)}Of(q);if((T|0)!=0){fd[c[(c[T>>2]|0)+4>>2]&511](T)}if((S|0)==0){I=0;H=0;K=0}else{fd[c[(c[S>>2]|0)+4>>2]&511](S);I=0;H=0;K=0}while(1){J=c[d+176+(I<<2)>>2]|0;h:do{if((J|0)==0){c[B+(I<<2)>>2]=0;J=K}else{na=cf(c[834]|0,J)|0;c[B+(I<<2)>>2]=na;if((na|0)!=0){J=K;break}if((Qc(J|0,164296)|0)==0){J=K;break}do{if((ZW(J|0)|0)==3){if((Ab(a[J]|0)|0)==0){G=144;break}K=J+1|0;if((lc(a[K]|0)|0)==0){G=144;break}L=J+2|0;if((lc(a[L]|0)|0)==0){G=144;break}na=a[K]|0;if((na+ -97<<24>>24&255)<6|(na+ -65<<24>>24&255)<6){break}na=a[L]|0;if(!((na+ -97<<24>>24&255)<6|(na+ -65<<24>>24&255)<6)){G=144}}else{G=144}}while(0);do{if((G|0)==144){G=0;if((ZW(J|0)|0)!=2){J=1;break h}if((lc(a[J]|0)|0)==0){J=1;break h}K=J+1|0;if((lc(a[K]|0)|0)==0){J=1;break h}na=a[J]|0;if((na+ -97<<24>>24&255)<6|(na+ -65<<24>>24&255)<6){break}na=a[K]|0;if(!((na+ -97<<24>>24&255)<6|(na+ -65<<24>>24&255)<6)){J=1;break h}}}while(0);H=1;J=1}}while(0);I=I+1|0;if((I|0)<256){K=J}else{break}}G=ku(B)|0;c[l>>2]=G;if(J){G=0;do{i:do{if((c[B+(G<<2)>>2]|0)==0){I=c[d+176+(G<<2)>>2]|0;K=(I|0)!=0;do{if(K){if((Qc(I|0,164296)|0)==0){break}J=cy(I,D,8,0,1,sf(c[834]|0)|0,H,1)|0;if((J|0)==0){break}vu(c[l>>2]|0,G,D,J);break i}}while(0);if(!(tf(c[834]|0)|0)){break}do{if(K){J=a[I]|0;if(J<<24>>24==0){break}else{L=0}while(1){c[D+(L<<2)>>2]=J<<24>>24;K=L+1|0;if(J<<24>>24==0){K=L;break}if((K|0)>=8){break}J=a[I+K|0]|0;L=K}vu(c[l>>2]|0,G,D,K);break i}}while(0);c[C>>2]=G;vu(c[l>>2]|0,G,D,1)}}while(0);G=G+1|0;}while((G|0)<256);G=c[l>>2]|0}_x(d,m,8,G)|0;C=c[E>>2]|0;do{if((C|0)!=0){C=yf(c[834]|0,C)|0;if((C|0)==0){break}bX(A|0,0,1024)|0;A=ku(B)|0;D=0;do{do{if((wu(c[l>>2]|0,D,y)|0)>0){B=wu(C,c[c[z>>2]>>2]|0,y)|0;if((B|0)<=0){break}vu(A,D,c[z>>2]|0,B)}}while(0);D=D+1|0;}while((D|0)<256);uu(C);y=c[l>>2]|0;if((y|0)!=0){su(y);HW(y)}c[l>>2]=A}}while(0);y=d+144|0;z=0;do{h[d+1464+(z<<3)>>3]=+h[y>>3]*.001;z=z+1|0;}while((z|0)<256);Yu(m,164304,q,0)|0;if((c[r>>2]|0)==1){y=c[g>>2]|0}else{y=0}Of(q);y=y>>>0>255?0:y;Yu(m,164320,q,0)|0;if((c[r>>2]|0)==1){z=c[g>>2]|0}else{z=255}Of(q);z=z>>>0>255?255:z;if((c[x>>2]|0)==4){oa=+h[Q>>3]}else{oa=.001}Yu(m,164336,q,0)|0;if((c[r>>2]|0)==6){m=d+44|0;c[m>>2]=c[m>>2]|1;x=c[(c[g>>2]|0)+12>>2]|0;if((x|0)<(1-y+z|0)){x=y+ -1+x|0}else{x=z}if((y|0)>(x|0)){Of(q);na=j;a[na]=1;i=p;return}z=d+1464+(y<<3)|0;A=6;l=y;while(1){if((A|0)!=6){G=193;break}ut(c[g>>2]|0,l-y|0,v)|0;A=c[s>>2]|0;do{if((A+ -1|0)>>>0<2){if((A|0)==1){pa=+(c[w>>2]|0)}else{pa=+h[w>>3]}pa=oa*pa;h[d+1464+(l<<3)>>3]=pa;if(pa==+h[z>>3]){break}c[m>>2]=c[m>>2]&-2}}while(0);Of(v);if((l|0)>=(x|0)){G=217;break}A=c[r>>2]|0;l=l+1|0}if((G|0)==193){c[u>>2]=A;c[t+4>>2]=6;Qe(0,166192,t);tc()}else if((G|0)==217){Of(q);na=j;a[na]=1;i=p;return}}if(F){r=k+20|0;if(BH(c[r>>2]|0,164344,n)|0){h[d+1720>>3]=+(e[o>>1]|0)*.001;s=0}else{s=0}do{t=c[d+176+(s<<2)>>2]|0;do{if((t|0)!=0){if(!(BH(c[r>>2]|0,t,n)|0)){break}h[d+1464+(s<<3)>>3]=+(e[o>>1]|0)*.001}}while(0);s=s+1|0;}while((s|0)<256);Of(q);na=j;a[na]=1;i=p;return}r=c[d+44>>2]|0;if((r&1|0)==0){s=(r<<1&4)+4|0}else{s=0}r=(c[73264+((r>>>17&2|s)+(r>>>6&1)<<2)>>2]|0)+20|0;if(BH(c[r>>2]|0,164344,n)|0){h[d+1720>>3]=+(e[o>>1]|0)*.001;s=0}else{s=0}do{t=c[d+176+(s<<2)>>2]|0;do{if((t|0)!=0){if(!(BH(c[r>>2]|0,t,n)|0)){break}h[d+1464+(s<<3)>>3]=+(e[o>>1]|0)*.001}}while(0);s=s+1|0;}while((s|0)<256);Of(q);na=j;a[na]=1;i=p;return}function cy(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;l=i;u=i;i=i+8|0;v=u;t=i;i=i+8|0;s=t;y=i;i=i+8|0;z=y;m=i;i=i+8|0;n=m;q=i;i=i+8|0;r=q;B=i;i=i+8|0;o=i;i=i+8|0;p=o;A=i;i=i+8|0;x=A;if((e|0)<1){c[B>>2]=b;Qe(-1,166264,B);B=0;i=l;return B|0}do{if(k){B=Fb(b|0,46)|0;if((B|0)==(b|0)){B=0;i=l;return B|0}if((B|0)==0){break}f=He(b,B-b|0)|0;B=cy(f,d,e,1,g,h,j,0)|0;Fe(f);i=l;return B|0}}while(0);do{if(g){if((Fb(b|0,95)|0)==0){break}m=Ge(b)|0;n=m;t=0;while(1){o=Fb(n|0,95)|0;p=(o|0)!=0;if(p){a[o]=0}do{if((a[n]|0)!=0){s=cy(n,d+(t<<2)|0,e-t|0,1,0,h,j,k)|0;if((s|0)==0){c[q>>2]=n;c[r+4>>2]=b;Qe(-1,166352,r);break}else{t=s+t|0;break}}}while(0);if(!p){break}if((t|0)<(e|0)){n=o+1|0}else{break}}Fe(m);B=t;i=l;return B|0}}while(0);do{if(f){k=cf(c[834]|0,b)|0;c[d>>2]=k;k=(k|0)!=0;if(k|h^1){k=k&1}else{break}i=l;return k|0}else{if(h){break}else{k=0}i=l;return k|0}}while(0);h=ZW(b|0)|0;do{if(h>>>0>6&(h&3|0)==3){if((vc(b|0,166424,3)|0)!=0){break}if((e|0)>0&h>>>0>3){k=0;j=3}else{B=0;i=l;return B|0}do{q=b+j|0;do{if((lc(a[q]|0)|0)!=0){if((lc(a[b+(j+1)|0]|0)|0)==0){break}if((lc(a[b+(j+2)|0]|0)|0)==0){break}if((lc(a[b+(j+3)|0]|0)|0)==0){break}c[m>>2]=p;Hc(q|0,166432,n|0)|0;q=c[o>>2]|0;if(!(q>>>0<55296|(q+ -57344|0)>>>0<8192)){break}c[d+(k<<2)>>2]=q;k=k+1|0}}while(0);j=j+4|0;}while((k|0)<(e|0)&j>>>0<h>>>0);i=l;return k|0}}while(0);a:do{if((h+ -5|0)>>>0<3){if((a[b]|0)!=117){w=44;break}e=b+1|0;if((lc(a[e]|0)|0)==0){w=44;break}if((lc(a[b+2|0]|0)|0)==0){w=44;break}if((lc(a[b+3|0]|0)|0)==0){w=44;break}if((lc(a[b+4|0]|0)|0)==0){w=44;break}do{if(h>>>0>=6){if((lc(a[b+5|0]|0)|0)==0){w=44;break a}if(h>>>0<7){break}if((lc(a[b+6|0]|0)|0)==0){break a}}}while(0);c[y>>2]=x;Hc(e|0,166440,z|0)|0;e=c[A>>2]|0;if(!(e>>>0<55296|(e+ -57344|0)>>>0<1056768)){w=44;break}c[d>>2]=e;B=1;i=l;return B|0}else{w=44}}while(0);do{if((w|0)==44){do{if((h|0)==3&j){if((Ab(a[b]|0)|0)==0){break}e=b+1|0;if((lc(a[e]|0)|0)==0){break}if((lc(a[b+2|0]|0)|0)==0){break}c[t>>2]=d;Hc(e|0,166440,s|0)|0;B=1;i=l;return B|0}}while(0);if(!((h|0)==2&j)){break}if((lc(a[b]|0)|0)==0){break}if((lc(a[b+1|0]|0)|0)==0){break}c[u>>2]=d;Hc(b|0,166440,v|0)|0;B=1;i=l;return B|0}}while(0);do{if(!j){if((h+ -2|0)>>>0>=3){break}if(((a[b]|0)+ -48|0)>>>0>=10){break}if(((a[b+1|0]|0)+ -48|0)>>>0>=10){break}c[d>>2]=ec(b|0)|0;B=1;i=l;return B|0}}while(0);do{if((h+ -3|0)>>>0<3){e=b+1|0;if(((a[e]|0)+ -48|0)>>>0>=10){break}if(((a[b+2|0]|0)+ -48|0)>>>0>=10){break}c[d>>2]=ec(e|0)|0;B=1;i=l;return B|0}}while(0);if((h+ -4|0)>>>0>=3){B=0;i=l;return B|0}e=b+2|0;if(((a[e]|0)+ -48|0)>>>0>=10){B=0;i=l;return B|0}if(((a[b+3|0]|0)+ -48|0)>>>0>=10){B=0;i=l;return B|0}c[d>>2]=ec(e|0)|0;B=1;i=l;return B|0}function dy(a){a=a|0;var b=0;b=i;ey(a);HW(a);i=b;return}function ey(b){b=b|0;var d=0,e=0,f=0;d=i;c[b>>2]=163592;e=0;do{do{if((a[b+1200+e|0]|0)!=0){f=c[b+176+(e<<2)>>2]|0;if((f|0)==0){break}Fe(f)}}while(0);e=e+1|0;}while((e|0)<256);uu(c[b+1456>>2]|0);e=b+3512|0;if((c[e>>2]|0)==7){Of(e)}e=b+3528|0;if((c[e>>2]|0)!=7){Wx(b);i=d;return}Of(e);Wx(b);i=d;return}function fy(a,b,e,f,g,j,k,l,m,n){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;e=i;b=d[b]|0;c[f>>2]=b;c[j>>2]=wu(c[a+1456>>2]|0,b,g)|0;h[k>>3]=+h[a+1464+(b<<3)>>3];h[n>>3]=0.0;h[m>>3]=0.0;h[l>>3]=0.0;i=e;return 1}function gy(a){a=a|0;var b=0;b=i;a=a+1456|0;tu(c[a>>2]|0);i=b;return c[a>>2]|0}function hy(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;h=i;i=i+8|0;j=h;g=ye(256,2)|0;bX(g|0,0,512)|0;if((Hn(e)|0)>0){k=0;m=-1;n=-1;l=-1;do{q=In(e,k)|0;o=Jn(e,k)|0;p=(q|0)==3;do{if(p&(o|0)==1|(q|0)==0){l=k}else{o=(o|0)==0;q=(q|0)==1&o;if(q|p^1){m=q?k:m;break}n=o?k:n}}while(0);k=k+1|0;}while((k|0)<(Hn(e)|0))}else{m=-1;n=-1;l=-1}do{if((a[d+1460|0]&1)==0){if((c[d+40>>2]|0)==1){k=8;break}if((n|0)>-1){m=n;k=15;break}m=(m|0)<0?0:m;k=15}else{k=8}}while(0);a:do{if((k|0)==8){o=(m|0)>-1;do{if(!((a[d+1461|0]&1)!=0&o)){if((l|0)<=-1){h=(c[d+44>>2]&4|0)!=0;if(h&(n|0)>-1){m=n;k=15;break a}if(h&o){k=15;break a}m=o?m:0;if(o){break}else{k=15;break a}}m=d+1456|0;n=0;while(1){o=c[d+176+(n<<2)>>2]|0;do{if((o|0)==0){k=25}else{o=cf(c[834]|0,o)|0;if((o|0)==0){k=25;break}b[g+(n<<1)>>1]=Kn(e,l,o)|0}}while(0);do{if((k|0)==25){k=0;if((wu(c[m>>2]|0,n,j)|0)<=0){break}b[g+(n<<1)>>1]=Kn(e,l,c[c[h>>2]>>2]|0)|0}}while(0);n=n+1|0;if((n|0)>=256){h=0;break a}}}}while(0);h=0;while(1){j=c[d+176+(h<<2)>>2]|0;do{if((j|0)!=0){j=bf(c[834]|0,j)|0;if((j|0)==0){break}b[g+(h<<1)>>1]=Kn(e,m,j)|0}}while(0);h=h+1|0;if((h|0)>=256){h=0;break}}}}while(0);if((k|0)==15){j=0;while(1){q=Kn(e,m,j)|0;h=g+(j<<1)|0;b[h>>1]=q;if(q<<16>>16==0){b[h>>1]=Kn(e,m,j+61440|0)|0}j=j+1|0;if((j|0)>=256){h=0;break}}}do{k=g+(h<<1)|0;do{if((b[k>>1]|0)==0){j=c[d+176+(h<<2)>>2]|0;if((j|0)==0){break}b[k>>1]=Ln(e,j)|0}}while(0);h=h+1|0;}while((h|0)<256);i=f;return g|0}function iy(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;b=c[a+176+(b<<2)>>2]|0;do{if((b|0)!=0){if((c[a+3512>>2]|0)!=7){break}Yu(c[a+3520>>2]|0,b,d,0)|0;i=e;return d|0}}while(0);b=d+8|0;c[b>>2]=0;c[b+4>>2]=0;c[d>>2]=5;i=e;return d|0}function jy(a){a=a|0;var b=0;b=i;if((c[a+3528>>2]|0)!=7){a=0;i=b;return a|0}a=c[a+3536>>2]|0;i=b;return a|0}function ky(d,e,f,g,j,k){d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0.0;m=i;u=i;i=i+8|0;ia=i;i=i+8|0;ha=i;i=i+16|0;ja=ha;I=i;i=i+16|0;L=I;E=i;i=i+16|0;G=E;B=i;i=i+8|0;C=B;z=i;i=i+8|0;A=z;s=i;i=i+8|0;r=s;fa=i;i=i+8|0;ga=fa;ea=i;i=i+8|0;ca=i;i=i+16|0;da=ca;aa=i;i=i+16|0;ba=aa;_=i;i=i+16|0;$=_;Y=i;i=i+8|0;Z=Y;t=i;i=i+8|0;X=t;ka=i;i=i+8|0;V=ka;S=i;i=i+8|0;T=S;x=i;i=i+8|0;y=x;v=i;i=i+8|0;w=v;p=i;i=i+8|0;q=p;ra=i;i=i+16|0;sa=ra;ua=i;i=i+8|0;ta=ua;xa=i;i=i+16|0;wa=xa;za=i;i=i+8|0;ya=za;Fa=i;i=i+8|0;Qa=i;i=i+8|0;Na=i;i=i+16|0;Oa=Na;Ea=i;i=i+8|0;Ba=Ea;La=i;i=i+8|0;Ma=La;Ga=i;i=i+8|0;Ja=i;i=i+16|0;Ka=Ja;Ha=i;i=i+8|0;Ia=Ha;Ua=i;i=i+8|0;Pa=Ua;Sa=i;i=i+8|0;Ra=Sa;Wa=i;i=i+8|0;Ta=Wa;Ca=i;i=i+8|0;Da=Ca;ab=i;i=i+8|0;$a=ab;lb=i;i=i+8|0;eb=i;i=i+8|0;db=eb;bb=i;i=i+8|0;cb=bb;kb=i;i=i+8|0;jb=kb;nb=i;i=i+8|0;mb=nb;ub=i;i=i+8|0;rb=ub;ob=i;i=i+8|0;Ab=i;i=i+8|0;Bb=Ab;zb=i;i=i+8|0;Cb=zb;Eb=i;i=i+8|0;Fb=Eb;Gb=i;i=i+8|0;Ib=i;i=i+8|0;Hb=Ib;Jb=i;i=i+8|0;Kb=Jb;Lb=i;i=i+8|0;Mb=i;i=i+8|0;Nb=Mb;Pb=i;i=i+8|0;Qb=i;i=i+8|0;_a=Qb;Rb=i;i=i+8|0;Sb=i;i=i+8|0;Tb=Sb;Vb=i;i=i+8|0;R=i;i=i+8|0;U=R;Xa=i;i=i+8|0;Va=Xa;Ub=i;i=i+16|0;n=Ub;N=i;i=i+16|0;l=N;K=i;i=i+16|0;Q=K;J=i;i=i+16|0;W=J;H=i;i=i+16|0;P=H;F=i;i=i+16|0;O=F;D=i;i=i+16|0;M=D;wb=i;i=i+8|0;xb=wb;pb=i;i=i+16|0;sb=pb;Ob=g;Wb=c[Ob>>2]|0;Ob=c[Ob+4>>2]|0;c[d>>2]=162528;g=d+172|0;a[g]=0;Db=FW(32)|0;fe(Db,f);c[d+8>>2]=Db;Db=d+12|0;c[Db>>2]=Wb;c[Db+4>>2]=Ob;Db=d+20|0;c[Db>>2]=j;c[d+36>>2]=j;c[d+48>>2]=0;Ob=d+60|0;c[Ob>>2]=0;c[d+24>>2]=0;c[d+28>>2]=0;c[d+32>>2]=0;c[d+4>>2]=0;a[d+173|0]=0;c[d>>2]=164360;c[Ub>>2]=13;Wb=n+8|0;c[Wb>>2]=0;c[Wb+4>>2]=0;c[N>>2]=13;pa=l+8|0;c[pa>>2]=0;c[pa+4>>2]=0;c[K>>2]=13;oa=Q+8|0;c[oa>>2]=0;c[oa+4>>2]=0;c[J>>2]=13;na=W+8|0;c[na>>2]=0;c[na+4>>2]=0;c[H>>2]=13;j=P+8|0;c[j>>2]=0;c[j+4>>2]=0;c[F>>2]=13;qa=O+8|0;c[qa>>2]=0;c[qa+4>>2]=0;c[D>>2]=13;ma=M+8|0;c[ma>>2]=0;c[ma+4>>2]=0;c[d+168>>2]=1;h[d+152>>3]=.95;h[d+160>>3]=-.35;vb=d+176|0;c[vb>>2]=0;yb=d+180|0;c[yb>>2]=0;fb=d+184|0;bX(d+112|0,0,32)|0;h[fb>>3]=1.0;va=d+192|0;h[va>>3]=-1.0;Aa=d+200|0;h[Aa>>3]=.88;Za=d+208|0;Ya=d+212|0;la=d+216|0;f=d+220|0;hb=d+224|0;ib=d+228|0;bX(Za|0,0,24)|0;if((c[(Yu(k,164384,l,0)|0)>>2]|0)!=6){Qe(-1,164400,Vb);Of(l);i=m;return}Vb=c[N>>2]|0;if((Vb|0)!=6){c[Sb>>2]=Vb;c[Tb+4>>2]=6;Qe(0,166192,Tb);tc()}a:do{if((c[(ut(c[pa>>2]|0,0,n)|0)>>2]|0)==7){Of(l);Rb=c[Ub>>2]|0;if((Rb|0)!=7){c[Qb>>2]=Rb;c[_a+4>>2]=7;Qe(0,166192,_a);tc()}_a=c[Wb>>2]|0;if((Yu(_a,162424,l,0)|0)==0){Qe(-1,164488,Pb);o=243;break}Pb=162512;do{if((c[N>>2]|0)==4){Pb=c[pa>>2]|0;if((Qc(Pb|0,164536)|0)==0){c[d+40>>2]=7}else{if((Qc(Pb|0,164552)|0)!=0){break}c[d+40>>2]=10}Of(l);Zx(d,e,_a);Mb=c[Db>>2]|0;do{if((Mb|0)!=0){Nb=c[d+40>>2]|0;if((Nb|0)==1){c[Ob>>2]=gf(c[834]|0,Mb,163456)|0;break}else if((Nb|0)==5){c[Ob>>2]=gf(c[834]|0,Mb,163512)|0;break}else{break}}}while(0);if((c[(Yu(_a,164616,l,0)|0)>>2]|0)!=7){Qe(-1,164632,Lb);o=243;break a}Lb=c[N>>2]|0;if((Lb|0)!=7){c[Jb>>2]=Lb;c[Kb+4>>2]=7;Qe(0,166192,Kb);tc()}Yu(c[pa>>2]|0,164696,Q,0)|0;Jb=c[N>>2]|0;if((Jb|0)!=7){c[Ib>>2]=Jb;c[Hb+4>>2]=7;Qe(0,166192,Hb);tc()}Yu(c[pa>>2]|0,164712,W,0)|0;do{if((c[K>>2]|0)==3){if((c[J>>2]|0)!=3){break}Hb=c[oa>>2]|0;Gb=FW(32)|0;ie(Gb,Hb);Gb=me(Gb,45)|0;Hb=c[J>>2]|0;if((Hb|0)!=3){c[Eb>>2]=Hb;c[Fb+4>>2]=3;Qe(0,166192,Fb);tc()}Eb=oe(Gb,c[na>>2]|0)|0;Of(W);Of(Q);Of(l);Wb=_x(d,k,16,0)|0;c[yb>>2]=Wb;do{if((Wb|0)==0){if((te(Eb,164792)|0)==0){break}if((te(Eb,164808)|0)==0){break}Wb=xf(c[834]|0,Eb)|0;c[yb>>2]=Wb;if((Wb|0)==0){Fb=0}else{break}while(1){Gb=Fb+1|0;if((te(Eb,c[164824+(Fb<<2)>>2]|0)|0)==0){break}if(Gb>>>0<5){Fb=Gb}else{o=40;break}}if((o|0)==40){c[Ab>>2]=c[Eb+28>>2];Qe(-1,164968,Bb);break}c[zb>>2]=c[Eb+28>>2];Qe(-1,164928,Cb);if((Eb|0)==0){break a}ke(Eb);HW(Eb);break a}}while(0);zb=c[Db>>2]|0;do{if((zb|0)!=0){zb=yf(c[834]|0,zb)|0;if((zb|0)==0){break}Bb=c[yb>>2]|0;if((Bb|0)==0){c[yb>>2]=zb;break}if((c[Bb+8>>2]|0)!=0){Ab=0;do{do{if((wu(Bb,Ab,xb)|0)>0){Bb=wu(zb,c[c[wb>>2]>>2]|0,xb)|0;if((Bb|0)<=0){break}vu(c[yb>>2]|0,Ab,c[wb>>2]|0,Bb)}}while(0);Ab=Ab+1|0;Bb=c[yb>>2]|0;}while(Ab>>>0<(c[Bb+8>>2]|0)>>>0)}uu(zb)}}while(0);b:do{if((c[(Yu(k,164128,l,0)|0)>>2]|0)==4){ob=FW(32)|0;pb=c[N>>2]|0;if((pb|0)==4){fe(ob,c[pa>>2]|0);tb=zf(c[834]|0,Eb,ob,0)|0;c[vb>>2]=tb;qb=ob;break}else{c[ub>>2]=pb;c[rb+4>>2]=4;Qe(0,166192,rb);tc()}}else{do{if((c[N>>2]|0)==8){c[pb>>2]=13;rb=sb+8|0;c[rb>>2]=0;c[rb+4>>2]=0;qb=c[pa>>2]|0;Yu(jd[c[(c[qb>>2]|0)+72>>2]&511](qb)|0,165008,sb,0)|0;if((c[pb>>2]|0)==4){Wb=FWFW(8)|0;c[D>>2]=169832;c[D+4>>2]=0;i=d;return D|0}else{c[A>>2]=e;Qe(-1,167952,s);D=0;i=d;return D|0}}}while(0);D=FW(4)|0;c[D>>2]=168512;i=d;return D|0}}while(0);D=FW(4)|0;c[D>>2]=168336;i=d;return D|0}}while(0);D=FW(4)|0;c[D>>2]=168128;i=d;return D|0}else if((D|0)==6){s=a+8|0;ut(c[s>>2]|0,0,f)|0;a:do{if((c[B>>2]|0)==4){z=c[z>>2]|0;do{if((Qc(z|0,167872)|0)!=0){if((Qc(z|0,167888)|0)==0){break}do{if((Qc(z|0,167896)|0)!=0){if((Qc(z|0,167912)|0)==0){break}do{if((Qc(z|0,167920)|0)!=0){if((Qc(z|0,167936)|0)==0){break}if((Qc(z|0,167976)|0)==0){A=c[a>>2]|0;if((A|0)==6){g=Ky(c[s>>2]|0)|0;break a}else{c[y>>2]=A;c[x+4>>2]=6;Qe(0,172720,x);tc()}}if((Qc(z|0,167984)|0)==0){x=c[a>>2]|0;if((x|0)==6){g=Ly(c[s>>2]|0)|0;break a}else{c[w>>2]=x;c[v+4>>2]=6;Qe(0,172720,v);tc()}}if((Qc(z|0,167992)|0)==0){v=c[a>>2]|0;if((v|0)==6){g=My(c[s>>2]|0)|0;break a}else{c[t>>2]=v;c[u+4>>2]=6;Qe(0,172720,u);tc()}}if((Qc(z|0,168e3)|0)==0){t=c[a>>2]|0;if((t|0)==6){g=Ny(c[s>>2]|0,b)|0;break a}else{c[r>>2]=t;c[q+4>>2]=6;Qe(0,172720,q);tc()}}do{if((Qc(z|0,168016)|0)!=0){if((Qc(z|0,168024)|0)==0){break}if((Qc(z|0,168032)|0)==0){q=c[a>>2]|0;if((q|0)==6){g=Py(c[s>>2]|0,b)|0;break a}else{c[p>>2]=q;c[o+4>>2]=6;Qe(0,172720,o);tc()}}if((Qc(z|0,168048)|0)==0){o=c[a>>2]|0;if((o|0)==6){g=Qy(c[s>>2]|0,b)|0;break a}else{c[n>>2]=o;c[l+4>>2]=6;Qe(0,172720,l);tc()}}if((Qc(z|0,167944)|0)!=0){e=57;break a}l=c[a>>2]|0;if((l|0)==6){g=Ry(c[s>>2]|0,b)|0;break a}else{c[k>>2]=l;c[j+4>>2]=6;Qe(0,172720,j);tc()}}}while(0);a=c[a>>2]|0;if((a|0)==6){g=Oy(c[s>>2]|0,b)|0;break a}else{c[h>>2]=a;c[g+4>>2]=6;Qe(0,172720,g);tc()}}}while(0);g=FW(4)|0;c[g>>2]=168512;break a}}while(0);g=FW(4)|0;c[g>>2]=168336;break a}}while(0);g=FW(4)|0;c[g>>2]=168128}else{e=57}}while(0);if((e|0)==57){Qe(-1,168056,m);g=0}Of(f);D=g;i=d;return D|0}else{Qe(-1,168072,C);D=0;i=d;return D|0}return 0}function Ky(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0.0,G=0.0,H=0,I=0,J=0,K=0.0,L=0,M=0,N=0,O=0,P=0.0;e=i;j=i;i=i+16|0;f=j;o=i;i=i+8|0;k=o;t=i;i=i+8|0;u=t;w=i;i=i+8|0;v=w;z=i;i=i+8|0;y=z;A=i;i=i+8|0;B=A;D=i;i=i+8|0;C=D;I=i;i=i+8|0;H=I;N=i;i=i+8|0;M=N;n=i;i=i+8|0;q=i;i=i+16|0;b=q;l=i;i=i+16|0;d=l;s=i;i=i+16|0;p=s;c[q>>2]=13;m=b+8|0;c[m>>2]=0;c[m+4>>2]=0;c[l>>2]=13;g=d+8|0;c[g>>2]=0;c[g+4>>2]=0;c[s>>2]=13;r=p+8|0;c[r>>2]=0;c[r+4>>2]=0;ut(a,1,b)|0;if((c[q>>2]|0)!=7){Qe(-1,168264,n);Of(b);O=0;i=e;return O|0}n=FW(88)|0;c[n>>2]=168200;E=n+24|0;h[E>>3]=1.0;J=n+16|0;h[J>>3]=1.0;L=n+8|0;h[L>>3]=1.0;x=n+32|0;a=n+56|0;bX(x|0,0,24)|0;h[a>>3]=1.0;do{if((c[(Yu(c[m>>2]|0,168288,d,0)|0)>>2]|0)==6){O=c[l>>2]|0;if((O|0)!=6){c[N>>2]=O;c[M+4>>2]=6;Qe(0,172720,M);tc()}M=c[g>>2]|0;if((c[M+12>>2]|0)!=3){F=1.0;G=1.0;K=1.0;break}ut(M,0,p)|0;M=c[s>>2]|0;if((M+ -1|0)>>>0<2){if((M|0)==1){K=+(c[r>>2]|0)}else{K=+h[r>>3]}h[L>>3]=K}else{K=1.0}Of(p);L=c[l>>2]|0;if((L|0)!=6){c[I>>2]=L;c[H+4>>2]=6;Qe(0,172720,H);tc()}ut(c[g>>2]|0,1,p)|0;H=c[s>>2]|0;if((H+ -1|0)>>>0<2){if((H|0)==1){G=+(c[r>>2]|0)}else{G=+h[r>>3]}h[J>>3]=G}else{G=1.0}Of(p);H=c[l>>2]|0;if((H|0)!=6){c[D>>2]=H;c[C+4>>2]=6;Qe(0,172720,C);tc()}ut(c[g>>2]|0,2,p)|0;C=c[s>>2]|0;if((C+ -1|0)>>>0<2){if((C|0)==1){F=+(c[r>>2]|0)}else{F=+h[r>>3]}h[E>>3]=F}else{F=1.0}Of(p)}else{F=1.0;G=1.0;K=1.0}}while(0);Of(d);C=c[q>>2]|0;if((C|0)!=7){c[A>>2]=C;c[B+4>>2]=7;Qe(0,172720,B);tc()}do{if((c[(Yu(c[m>>2]|0,168304,d,0)|0)>>2]|0)==6){A=c[l>>2]|0;if((A|0)!=6){c[z>>2]=A;c[y+4>>2]=6;Qe(0,172720,y);tc()}y=c[g>>2]|0;if((c[y+12>>2]|0)!=3){break}ut(y,0,p)|0;y=c[s>>2]|0;if((y+ -1|0)>>>0<2){if((y|0)==1){P=+(c[r>>2]|0)}else{P=+h[r>>3]}h[x>>3]=P}Of(p);x=c[l>>2]|0;if((x|0)!=6){c[w>>2]=x;c[v+4>>2]=6;Qe(0,172720,v);tc()}ut(c[g>>2]|0,1,p)|0;v=c[s>>2]|0;if((v+ -1|0)>>>0<2){if((v|0)==1){P=+(c[r>>2]|0)}else{P=+h[r>>3]}h[n+40>>3]=P}Of(p);v=c[l>>2]|0;if((v|0)!=6){c[t>>2]=v;c[u+4>>2]=6;Qe(0,172720,u);tc()}ut(c[g>>2]|0,2,p)|0;s=c[s>>2]|0;if((s+ -1|0)>>>0<2){if((s|0)==1){P=+(c[r>>2]|0)}else{P=+h[r>>3]}h[n+48>>3]=P}Of(p)}}while(0);Of(d);p=c[q>>2]|0;if((p|0)!=7){c[o>>2]=p;c[k+4>>2]=7;Qe(0,172720,k);tc()}if(((c[(Yu(c[m>>2]|0,168320,d,0)|0)>>2]|0)+ -1|0)>>>0<2){k=c[l>>2]|0;if((k+ -1|0)>>>0>=2){c[j>>2]=k;c[f+4>>2]=1;c[f+8>>2]=2;Qe(0,172792,f);tc()}if((k|0)==1){P=+(c[g>>2]|0)}else{P=+h[g>>3]}h[a>>3]=P}Of(d);Of(b);h[n+64>>3]=1.0/(K*3.240449+G*-1.537136+F*-.498531);h[n+72>>3]=1.0/(K*-.969265+G*1.876011+F*.041556);h[n+80>>3]=1.0/(K*.055643+G*-.204026+F*1.057229);O=n;i=e;return O|0}function Ly(a){a=a|0;var b=0.0,d=0,e=0,f=0.0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,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.0,Q=0.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.0;g=i;d=i;i=i+8|0;e=d;u=i;i=i+8|0;v=u;x=i;i=i+8|0;y=x;C=i;i=i+8|0;A=C;D=i;i=i+8|0;F=D;H=i;i=i+8|0;I=H;J=i;i=i+8|0;K=J;M=i;i=i+8|0;L=M;O=i;i=i+8|0;N=O;T=i;i=i+8|0;S=T;V=i;i=i+8|0;U=V;X=i;i=i+8|0;W=X;Z=i;i=i+8|0;Y=Z;$=i;i=i+8|0;_=$;q=i;i=i+8|0;z=i;i=i+16|0;j=z;l=i;i=i+16|0;k=l;p=i;i=i+16|0;m=p;c[z>>2]=13;w=j+8|0;c[w>>2]=0;c[w+4>>2]=0;c[l>>2]=13;o=k+8|0;c[o>>2]=0;c[o+4>>2]=0;c[p>>2]=13;n=m+8|0;c[n>>2]=0;c[n+4>>2]=0;ut(a,1,j)|0;if((c[z>>2]|0)!=7){Qe(-1,168472,q);Of(j);aa=0;i=g;return aa|0}a=FW(176)|0;c[a>>2]=168408;q=a+24|0;h[q>>3]=1.0;r=a+16|0;h[r>>3]=1.0;s=a+8|0;h[s>>3]=1.0;R=a+32|0;B=a+72|0;bX(R|0,0,24)|0;h[B>>3]=1.0;E=a+64|0;h[E>>3]=1.0;G=a+56|0;h[G>>3]=1.0;t=a+80|0;h[t>>3]=1.0;bX(a+88|0,0,24)|0;h[a+112>>3]=1.0;bX(a+120|0,0,24)|0;h[a+144>>3]=1.0;do{if((c[(Yu(c[w>>2]|0,168288,k,0)|0)>>2]|0)==6){aa=c[l>>2]|0;if((aa|0)!=6){c[$>>2]=aa;c[_+4>>2]=6;Qe(0,172720,_);tc()}_=c[o>>2]|0;if((c[_+12>>2]|0)!=3){P=1.0;Q=1.0;break}ut(_,0,m)|0;_=c[p>>2]|0;if((_+ -1|0)>>>0<2){if((_|0)==1){P=+(c[n>>2]|0)}else{P=+h[n>>3]}h[s>>3]=P}Of(m);_=c[l>>2]|0;if((_|0)!=6){c[Z>>2]=_;c[Y+4>>2]=6;Qe(0,172720,Y);tc()}ut(c[o>>2]|0,1,m)|0;Y=c[p>>2]|0;if((Y+ -1|0)>>>0<2){if((Y|0)==1){Q=+(c[n>>2]|0)}else{Q=+h[n>>3]}h[r>>3]=Q}else{Q=1.0}Of(m);Y=c[l>>2]|0;if((Y|0)!=6){c[X>>2]=Y;c[W+4>>2]=6;Qe(0,172720,W);tc()}ut(c[o>>2]|0,2,m)|0;W=c[p>>2]|0;if((W+ -1|0)>>>0<2){if((W|0)==1){P=+(c[n>>2]|0)}else{P=+h[n>>3]}h[q>>3]=P}else{P=1.0}Of(m)}else{P=1.0;Q=1.0}}while(0);Of(k);W=c[z>>2]|0;if((W|0)!=7){c[V>>2]=W;c[U+4>>2]=7;Qe(0,172720,U);tc()}do{if((c[(Yu(c[w>>2]|0,168304,k,0)|0)>>2]|0)==6){U=c[l>>2]|0;if((U|0)!=6){c[T>>2]=U;c[S+4>>2]=6;Qe(0,172720,S);tc()}S=c[o>>2]|0;if((c[S+12>>2]|0)!=3){break}ut(S,0,m)|0;S=c[p>>2]|0;if((S+ -1|0)>>>0<2){if((S|0)==1){ba=+(c[n>>2]|0)}else{ba=+h[n>>3]}h[R>>3]=ba}Of(m);R=c[l>>2]|0;if((R|0)!=6){c[O>>2]=R;c[N+4>>2]=6;Qe(0,172720,N);tc()}ut(c[o>>2]|0,1,m)|0;N=c[p>>2]|0;if((N+ -1|0)>>>0<2){if((N|0)==1){ba=+(c[n>>2]|0)}else{ba=+h[n>>3]}h[a+40>>3]=ba}Of(m);N=c[l>>2]|0;if((N|0)!=6){c[M>>2]=N;c[L+4>>2]=6;Qe(0,172720,L);tc()}ut(c[o>>2]|0,2,m)|0;L=c[p>>2]|0;if((L+ -1|0)>>>0<2){if((L|0)==1){ba=+(c[n>>2]|0)}else{ba=+h[n>>3]}h[a+48>>3]=ba}Of(m)}}while(0);Of(k);L=c[z>>2]|0;if((L|0)!=7){c[J>>2]=L;c[K+4>>2]=7;Qe(0,172720,K);tc()}do{if((c[(Yu(c[w>>2]|0,168320,k,0)|0)>>2]|0)==6){J=c[l>>2]|0;if((J|0)!=6){c[H>>2]=J;c[I+4>>2]=6;Qe(0,172720,I);tc()}H=c[o>>2]|0;if((c[H+12>>2]|0)!=3){break}ut(H,0,m)|0;H=c[p>>2]|0;if((H+ -1|0)>>>0<2){if((H|0)==1){ba=+(c[n>>2]|0)}else{ba=+h[n>>3]}h[G>>3]=ba}Of(m);G=c[l>>2]|0;if((G|0)!=6){c[D>>2]=G;c[F+4>>2]=6;Qe(0,172720,F);tc()}ut(c[o>>2]|0,1,m)|0;D=c[p>>2]|0;if((D+ -1|0)>>>0<2){if((D|0)==1){ba=+(c[n>>2]|0)}else{ba=+h[n>>3]}h[E>>3]=ba}Of(m);D=c[l>>2]|0;if((D|0)!=6){c[C>>2]=D;c[A+4>>2]=6;Qe(0,172720,A);tc()}ut(c[o>>2]|0,2,m)|0;A=c[p>>2]|0;if((A+ -1|0)>>>0<2){if((A|0)==1){ba=+(c[n>>2]|0)}else{ba=+h[n>>3]}h[B>>3]=ba}Of(m)}}while(0);Of(k);z=c[z>>2]|0;if((z|0)!=7){c[x>>2]=z;c[y+4>>2]=7;Qe(0,172720,y);tc()}do{if((c[(Yu(c[w>>2]|0,168496,k,0)|0)>>2]|0)==6){w=c[l>>2]|0;if((w|0)!=6){c[u>>2]=w;c[v+4>>2]=6;Qe(0,172720,v);tc()}if((c[(c[o>>2]|0)+12>>2]|0)!=9){f=P;b=Q;break}u=6;v=0;while(1){if((u|0)!=6){l=87;break}ut(c[o>>2]|0,v,m)|0;u=c[p>>2]|0;if((u+ -1|0)>>>0<2){if((u|0)==1){P=+(c[n>>2]|0)}else{P=+h[n>>3]}h[t+(v<<3)>>3]=P}Of(m);v=v+1|0;if((v|0)>=9){l=95;break}u=c[l>>2]|0}if((l|0)==87){c[d>>2]=u;c[e+4>>2]=6;Qe(0,172720,e);tc()}else if((l|0)==95){f=+h[q>>3];b=+h[r>>3];break}}else{f=P;b=Q}}while(0);Of(k);Of(j);ba=+h[s>>3];h[a+152>>3]=1.0/(ba*3.240449+b*-1.537136+f*-.498531);h[a+160>>3]=1.0/(ba*-.969265+b*1.876011+f*.041556);h[a+168>>3]=1.0/(ba*.055643+b*-.204026+f*1.057229);aa=a;i=g;return aa|0}function My(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,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.0,$=0.0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0.0;b=i;k=i;i=i+16|0;j=k;m=i;i=i+8|0;p=m;s=i;i=i+16|0;r=s;u=i;i=i+8|0;t=u;x=i;i=i+16|0;w=x;y=i;i=i+8|0;A=y;B=i;i=i+16|0;C=B;F=i;i=i+8|0;E=F;H=i;i=i+8|0;I=H;L=i;i=i+16|0;K=L;N=i;i=i+8|0;M=N;O=i;i=i+16|0;P=O;R=i;i=i+8|0;Q=R;S=i;i=i+16|0;T=S;W=i;i=i+8|0;V=W;X=i;i=i+8|0;Y=X;ba=i;i=i+16|0;aa=ba;ca=i;i=i+8|0;ea=ca;fa=i;i=i+16|0;ga=fa;ha=i;i=i+8|0;ja=ha;la=i;i=i+16|0;ka=la;oa=i;i=i+8|0;na=oa;n=i;i=i+8|0;J=i;i=i+16|0;d=J;q=i;i=i+16|0;f=q;l=i;i=i+16|0;e=l;c[J>>2]=13;G=d+8|0;c[G>>2]=0;c[G+4>>2]=0;c[q>>2]=13;o=f+8|0;c[o>>2]=0;c[o+4>>2]=0;c[l>>2]=13;g=e+8|0;c[g>>2]=0;c[g+4>>2]=0;ut(a,1,d)|0;if((c[J>>2]|0)!=7){Qe(-1,168648,n);Of(d);pa=0;i=b;return pa|0}a=FW(112)|0;c[a>>2]=168584;da=a+24|0;h[da>>3]=1.0;ia=a+16|0;h[ia>>3]=1.0;ma=a+8|0;h[ma>>3]=1.0;U=a+32|0;v=a+72|0;bX(U|0,0,24)|0;h[v>>3]=-100.0;D=a+56|0;h[D>>3]=-100.0;n=a+80|0;h[n>>3]=100.0;z=a+64|0;h[z>>3]=100.0;do{if((c[(Yu(c[G>>2]|0,168288,f,0)|0)>>2]|0)==6){pa=c[q>>2]|0;if((pa|0)!=6){c[oa>>2]=pa;c[na+4>>2]=6;Qe(0,172720,na);tc()}na=c[o>>2]|0;if((c[na+12>>2]|0)!=3){Z=1.0;_=1.0;$=1.0;break}ut(na,0,e)|0;na=c[l>>2]|0;if((na+ -1|0)>>>0>=2){c[la>>2]=na;c[ka+4>>2]=1;c[ka+8>>2]=2;Qe(0,172792,ka);tc()}if((na|0)==1){$=+(c[g>>2]|0)}else{$=+h[g>>3]}h[ma>>3]=$;Of(e);ka=c[q>>2]|0;if((ka|0)!=6){c[ha>>2]=ka;c[ja+4>>2]=6;Qe(0,172720,ja);tc()}ut(c[o>>2]|0,1,e)|0;ha=c[l>>2]|0;if((ha+ -1|0)>>>0>=2){c[fa>>2]=ha;c[ga+4>>2]=1;c[ga+8>>2]=2;Qe(0,172792,ga);tc()}if((ha|0)==1){_=+(c[g>>2]|0)}else{_=+h[g>>3]}h[ia>>3]=_;Of(e);fa=c[q>>2]|0;if((fa|0)!=6){c[ca>>2]=fa;c[ea+4>>2]=6;Qe(0,172720,ea);tc()}ut(c[o>>2]|0,2,e)|0;ca=c[l>>2]|0;if((ca+ -1|0)>>>0>=2){c[ba>>2]=ca;c[aa+4>>2]=1;c[aa+8>>2]=2;Qe(0,172792,aa);tc()}if((ca|0)==1){Z=+(c[g>>2]|0)}else{Z=+h[g>>3]}h[da>>3]=Z;Of(e)}else{Z=1.0;_=1.0;$=1.0}}while(0);Of(f);aa=c[J>>2]|0;if((aa|0)!=7){c[X>>2]=aa;c[Y+4>>2]=7;Qe(0,172720,Y);tc()}do{if((c[(Yu(c[G>>2]|0,168304,f,0)|0)>>2]|0)==6){X=c[q>>2]|0;if((X|0)!=6){c[W>>2]=X;c[V+4>>2]=6;Qe(0,172720,V);tc()}V=c[o>>2]|0;if((c[V+12>>2]|0)!=3){break}ut(V,0,e)|0;V=c[l>>2]|0;if((V+ -1|0)>>>0>=2){c[S>>2]=V;c[T+4>>2]=1;c[T+8>>2]=2;Qe(0,172792,T);tc()}if((V|0)==1){qa=+(c[g>>2]|0)}else{qa=+h[g>>3]}h[U>>3]=qa;Of(e);S=c[q>>2]|0;if((S|0)!=6){c[R>>2]=S;c[Q+4>>2]=6;Qe(0,172720,Q);tc()}ut(c[o>>2]|0,1,e)|0;Q=c[l>>2]|0;if((Q+ -1|0)>>>0>=2){c[O>>2]=Q;c[P+4>>2]=1;c[P+8>>2]=2;Qe(0,172792,P);tc()}if((Q|0)==1){qa=+(c[g>>2]|0)}else{qa=+h[g>>3]}h[a+40>>3]=qa;Of(e);O=c[q>>2]|0;if((O|0)!=6){c[N>>2]=O;c[M+4>>2]=6;Qe(0,172720,M);tc()}ut(c[o>>2]|0,2,e)|0;M=c[l>>2]|0;if((M+ -1|0)>>>0>=2){c[L>>2]=M;c[K+4>>2]=1;c[K+8>>2]=2;Qe(0,172792,K);tc()}if((M|0)==1){qa=+(c[g>>2]|0)}else{qa=+h[g>>3]}h[a+48>>3]=qa;Of(e)}}while(0);Of(f);J=c[J>>2]|0;if((J|0)!=7){c[H>>2]=J;c[I+4>>2]=7;Qe(0,172720,I);tc()}do{if((c[(Yu(c[G>>2]|0,168672,f,0)|0)>>2]|0)==6){G=c[q>>2]|0;if((G|0)!=6){c[F>>2]=G;c[E+4>>2]=6;Qe(0,172720,E);tc()}E=c[o>>2]|0;if((c[E+12>>2]|0)!=4){break}ut(E,0,e)|0;E=c[l>>2]|0;if((E+ -1|0)>>>0>=2){c[B>>2]=E;c[C+4>>2]=1;c[C+8>>2]=2;Qe(0,172792,C);tc()}if((E|0)==1){qa=+(c[g>>2]|0)}else{qa=+h[g>>3]}h[D>>3]=qa;Of(e);B=c[q>>2]|0;if((B|0)!=6){c[y>>2]=B;c[A+4>>2]=6;Qe(0,172720,A);tc()}ut(c[o>>2]|0,1,e)|0;y=c[l>>2]|0;if((y+ -1|0)>>>0>=2){c[x>>2]=y;c[w+4>>2]=1;c[w+8>>2]=2;Qe(0,172792,w);tc()}if((y|0)==1){qa=+(c[g>>2]|0)}else{qa=+h[g>>3]}h[z>>3]=qa;Of(e);w=c[q>>2]|0;if((w|0)!=6){c[u>>2]=w;c[t+4>>2]=6;Qe(0,172720,t);tc()}ut(c[o>>2]|0,2,e)|0;t=c[l>>2]|0;if((t+ -1|0)>>>0>=2){c[s>>2]=t;c[r+4>>2]=1;c[r+8>>2]=2;Qe(0,172792,r);tc()}if((t|0)==1){qa=+(c[g>>2]|0)}else{qa=+h[g>>3]}h[v>>3]=qa;Of(e);q=c[q>>2]|0;if((q|0)!=6){c[m>>2]=q;c[p+4>>2]=6;Qe(0,172720,p);tc()}ut(c[o>>2]|0,3,e)|0;l=c[l>>2]|0;if((l+ -1|0)>>>0>=2){c[k>>2]=l;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,172792,j);tc()}if((l|0)==1){qa=+(c[g>>2]|0)}else{qa=+h[g>>3]}h[n>>3]=qa;Of(e)}}while(0);Of(f);Of(d);h[a+88>>3]=1.0/($*3.240449+_*-1.537136+Z*-.498531);h[a+96>>3]=1.0/($*-.969265+_*1.876011+Z*.041556);h[a+104>>3]=1.0/($*.055643+_*-.204026+Z*1.057229);pa=a;i=b;return pa|0}function Ny(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,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.0;n=i;s=i;i=i+8|0;r=s;g=i;i=i+8|0;j=g;u=i;i=i+8|0;t=u;B=i;i=i+8|0;E=i;i=i+8|0;D=E;F=i;i=i+8|0;w=F;G=i;i=i+8|0;H=i;i=i+8|0;I=i;i=i+16|0;p=I;q=i;i=i+16|0;f=q;e=i;i=i+16|0;k=e;d=i;i=i+16|0;l=d;c[I>>2]=13;C=p+8|0;c[C>>2]=0;c[C+4>>2]=0;c[q>>2]=13;o=f+8|0;c[o>>2]=0;c[o+4>>2]=0;c[e>>2]=13;m=k+8|0;c[m>>2]=0;c[m+4>>2]=0;vt(a,1,p)|0;if((c[I>>2]|0)==9){y=C;A=c[y>>2]|0;y=c[y+4>>2]|0;z=A&0;x=y|0;A=A|0;y=y&0}else{z=0;x=0;A=0;y=0}Of(p);ut(a,1,p)|0;if((c[I>>2]|0)!=8){Qe(-1,168752,H);Of(p);I=0;i=n;return I|0}C=c[C>>2]|0;C=jd[c[(c[C>>2]|0)+72>>2]&511](C)|0;if((c[(Yu(C,168792,f,0)|0)>>2]|0)!=1){Qe(-1,168800,G);Of(f);Of(p);I=0;i=n;return I|0}G=c[q>>2]|0;if((G|0)!=1){c[F>>2]=G;c[w+4>>2]=1;Qe(0,172720,w);tc()}w=c[o>>2]|0;Of(f);if((w|0)>32){c[E>>2]=w;c[D+4>>2]=32;Qe(-1,168832,D);w=32}if((c[(Yu(C,168888,f,0)|0)>>2]|0)==5){v=13}else{b=Jy(f,b)|0;if((b|0)==0){v=13}}do{if((v|0)==13){if((w|0)==1){b=FW(4)|0;c[b>>2]=168128;break}else if((w|0)==4){b=FW(4)|0;c[b>>2]=168512;break}else if((w|0)==3){b=FW(4)|0;c[b>>2]=168336;break}else{Qe(-1,168904,B);Of(f);Of(p);I=0;i=n;return I|0}}}while(0);Of(f);B=FW(88)|0;c[B>>2]=168688;c[B+4>>2]=w;c[B+8>>2]=b;v=B+80|0;c[v>>2]=A|z;c[v+4>>2]=y|x;x=B+16|0;bX(x|0,0,32)|0;h[B+72>>3]=1.0;h[B+64>>3]=1.0;h[B+56>>3]=1.0;v=B+48|0;h[v>>3]=1.0;a:do{if((c[(Yu(C,168672,f,0)|0)>>2]|0)==6){y=c[q>>2]|0;if((y|0)!=6){c[u>>2]=y;c[t+4>>2]=6;Qe(0,172720,t);tc()}if((c[(c[o>>2]|0)+12>>2]|0)!=(w<<1|0)){break}c[d>>2]=13;t=l+8|0;c[t>>2]=0;c[t+4>>2]=0;if((w|0)<=0){break}y=6;u=0;while(1){z=u<<1;if((y|0)!=6){v=25;break}ut(c[o>>2]|0,z,k)|0;y=c[q>>2]|0;if((y|0)!=6){v=27;break}ut(c[o>>2]|0,z|1,l)|0;z=c[e>>2]|0;do{if((z+ -1|0)>>>0<2){y=c[d>>2]|0;if((y+ -1|0)>>>0>=2){break}if((z|0)==1){J=+(c[m>>2]|0)}else{J=+h[m>>3]}h[x+(u<<3)>>3]=J;if((y|0)==1){J=+(c[t>>2]|0)}else{J=+h[t>>3]}h[v+(u<<3)>>3]=J}}while(0);Of(k);Of(l);u=u+1|0;if((u|0)>=(w|0)){break a}y=c[q>>2]|0}if((v|0)==25){c[g>>2]=y;c[j+4>>2]=6;Qe(0,172720,j);tc()}else if((v|0)==27){c[s>>2]=y;c[r+4>>2]=6;Qe(0,172720,r);tc()}}}while(0);Of(f);Of(p);I=B;i=n;return I|0}function Oy(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;f=i;v=i;i=i+8|0;u=i;i=i+8|0;g=i;i=i+8|0;j=g;t=i;i=i+8|0;m=i;i=i+8|0;n=m;o=i;i=i+8|0;q=i;i=i+8|0;s=q;x=i;i=i+8|0;r=x;y=i;i=i+8|0;z=i;i=i+8|0;w=i;i=i+8|0;l=i;i=i+16|0;e=l;c[l>>2]=13;k=e+8|0;c[k>>2]=0;c[k+4>>2]=0;if((c[b+12>>2]|0)!=4){Qe(-1,169016,w);d=0;i=f;return d|0}ut(b,1,e)|0;w=Jy(e,d)|0;do{if((w|0)==0){Qe(-1,169040,z)}else{Of(e);if((c[(ut(b,2,e)|0)>>2]|0)!=1){Qe(-1,169088,y);fd[c[(c[w>>2]|0)+4>>2]&511](w);break}y=c[l>>2]|0;if((y|0)!=1){c[x>>2]=y;c[r+4>>2]=1;Qe(0,172720,r);tc()}r=c[k>>2]|0;if(r>>>0>255){d=(r>>31&-255)+255|0;c[q>>2]=r;c[s+4>>2]=d;Qe(-1,169120,s);r=d}Of(e);q=FWFW(32)|0;m=c[m>>2]|0;if((m|0)!=4){c[k>>2]=m;c[l+4>>2]=4;Qe(0,172720,l);tc()}fe(h,c[j>>2]|0);Of(e);ut(b,2,e)|0;j=Jy(e,d)|0;do{if((j|0)==0){Qe(-1,169536,g)}else{Of(e);ut(b,3,e)|0;b=EH(e)|0;if((b|0)==0){fd[c[(c[j>>2]|0)+4>>2]&511](j);break}Of(e);n=FW(20)|0;c[n>>2]=169392;c[n+4>>2]=h;c[n+8>>2]=j;c[n+12>>2]=b;a[n+16|0]=(te(h,169456)|0)==0|0;i=f;return n|0}}while(0);if((h|0)==0){break}ke(h);HW(h)}else{Qe(-1,169496,h)}}while(0);Of(e);n=0;i=f;return n|0}function Qy(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;g=i;k=i;i=i+8|0;m=i;i=i+8|0;n=m;u=i;i=i+8|0;s=i;i=i+8|0;t=s;x=i;i=i+8|0;w=x;z=i;i=i+8|0;y=z;A=i;i=i+8|0;B=i;i=i+8|0;e=i;i=i+128|0;r=i;i=i+16|0;j=r;p=i;i=i+16|0;l=p;c[r>>2]=13;q=j+8|0;c[q>>2]=0;c[q+4>>2]=0;c[p>>2]=13;o=l+8|0;c[o>>2]=0;c[o+4>>2]=0;if(((c[b+12>>2]|0)+ -4|0)>>>0>=2){Qe(-1,169664,B);B=0;i=g;return B|0}a:do{if((c[(ut(b,1,j)|0)>>2]|0)==6){A=c[r>>2]|0;if((A|0)!=6){c[z>>2]=A;c[y+4>>2]=6;Qe(0,172720,y);tc()}y=c[(c[q>>2]|0)+12>>2]|0;if((y|0)>32){c[x>>2]=y;c[w+4>>2]=32;Qe(-1,169720,w);w=32;v=10}else{if((y|0)>0){w=y;v=10}else{h=0;f=y}}b:do{if((v|0)==10){v=0;while(1){x=c[r>>2]|0;if((x|0)!=6){v=12;break}if((c[(ut(c[q>>2]|0,v,l)|0)>>2]|0)!=4){v=14;break}y=FW(32)|0;x=c[p>>2]|0;if((x|0)!=4){v=16;break}fe(y,c[o>>2]|0);c[e+(v<<2)>>2]=y;Of(l);v=v+1|0;if((v|0)>=(w|0)){h=1;f=w;break b}}if((v|0)==12){c[s>>2]=x;c[t+4>>2]=6;Qe(0,172720,t);tc()}else if((v|0)==14){Qe(-1,169688,u);Of(l);break a}else if((v|0)==16){c[m>>2]=x;c[n+4>>2]=4;Qe(0,172720,n);tc()}}}while(0);Of(j);ut(b,2,j)|0;l=Jy(j,d)|0;do{if((l|0)==0){Qe(-1,169776,k)}else{Of(j);ut(b,3,j)|0;k=EH(j)|0;if((k|0)==0){fd[c[(c[l>>2]|0)+4>>2]&511](l);break}Of(j);j=FW(148)|0;c[j>>2]=169600;c[j+4>>2]=f;c[j+136>>2]=l;c[j+140>>2]=k;k=j+144|0;a[k]=1;if(h){h=j+8|0;b=0;do{B=c[e+(b<<2)>>2]|0;c[h+(b<<2)>>2]=B;if((te(B,169456)|0)!=0){a[k]=0}b=b+1|0;}while((b|0)<(f|0))}B=j;i=g;return B|0}}while(0);if(h){h=0}else{break}do{k=c[e+(h<<2)>>2]|0;if((k|0)!=0){ke(k);HW(k)}h=h+1|0;}while((h|0)<(f|0))}else{Qe(-1,169688,A)}}while(0);Of(j);B=0;i=g;return B|0}function Ry(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;f=i;i=i+8|0;h=i;i=i+8|0;j=i;i=i+16|0;e=j;c[j>>2]=13;j=e+8|0;c[j>>2]=0;c[j+4>>2]=0;j=c[a+12>>2]|0;if((j|0)==2){g=3}else if((j|0)==1){e=0}else{Qe(-1,169896,h);b=0;i=d;return b|0}do{if((g|0)==3){ut(a,1,e)|0;g=Jy(e,b)|0;if((g|0)!=0){Of(e);e=g;break}Qe(-1,169920,f);Of(e);b=0;i=d;return b|0}}while(0);b=FW(8)|0;c[b>>2]=169832;c[b+4>>2]=e;i=d;return b|0}function Sy(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;e=i;if((jd[c[(c[a>>2]|0)+44>>2]&511](a)|0)>0){f=0}else{i=e;return}do{h[b+(f<<3)>>3]=0.0;h[d+(f<<3)>>3]=1.0;f=f+1|0;}while((f|0)<(jd[c[(c[a>>2]|0)+44>>2]&511](a)|0));i=e;return}function Ty(a){a=a|0;c[a>>2]=168128;i=i;return}function Uy(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function Vy(a){a=a|0;var b=0;b=i;a=FW(4)|0;c[a>>2]=168128;i=b;return a|0}function Wy(a,b,d){a=a|0;b=b|0;d=d|0;b=c[b>>2]|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}c[d>>2]=b;i=i;return}function Xy(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=i;$W(c|0,b|0,d|0)|0;i=a;return}function Yy(a,b,d){a=a|0;b=b|0;d=d|0;b=c[b>>2]|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}c[d+8>>2]=b;c[d+4>>2]=b;c[d>>2]=b;i=i;return}function Zy(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0;a=i;if((f|0)>0){g=0}else{i=a;return}do{h=d[b+g|0]|0;c[e+(g<<2)>>2]=h<<8|h|h<<16;g=g+1|0;}while((g|0)<(f|0));i=a;return}function _y(a,b,d){a=a|0;b=b|0;d=d|0;c[d+8>>2]=0;c[d+4>>2]=0;c[d>>2]=0;b=65536-(c[b>>2]|0)|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}c[d+12>>2]=b;i=i;return}function $y(a,b){a=a|0;b=b|0;c[b>>2]=0;i=i;return}function az(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function bz(a){a=a|0;var b=0,d=0,e=0;d=i;b=FW(88)|0;c[b>>2]=168200;e=b+32|0;bX(e|0,0,16)|0;h[b+8>>3]=+h[a+8>>3];h[b+16>>3]=+h[a+16>>3];h[b+24>>3]=+h[a+24>>3];h[e>>3]=+h[a+32>>3];h[b+40>>3]=+h[a+40>>3];h[b+48>>3]=+h[a+48>>3];h[b+56>>3]=+h[a+56>>3];i=d;return b|0}function cz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=~~(+(c[g>>2]|0)*.299+ +(c[f+4>>2]|0)*.587+ +(c[f+8>>2]|0)*.114+.5);if((b|0)<0){f=0;g=d;c[g>>2]=f;i=e;return}f=(b|0)>65536?65536:b;g=d;c[g>>2]=f;i=e;return}function dz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0.0,g=0.0,j=0.0,k=0.0;e=i;g=+U(+(+(c[b>>2]|0)*152587890625.0e-16),+(+h[a+56>>3]));j=g*+h[a+8>>3];f=g*+h[a+16>>3];g=g*+h[a+24>>3];k=+h[a+64>>3]*(j*3.240449+f*-1.537136+g*-.498531);if(k<0.0){k=0.0}else{k=k>1.0?1.0:k}c[d>>2]=~~(+T(+k)*65536.0);k=(j*-.969265+f*1.876011+g*.041556)*+h[a+72>>3];if(k<0.0){k=0.0}else{k=k>1.0?1.0:k}c[d+4>>2]=~~(+T(+k)*65536.0);f=(j*.055643+f*-.204026+g*1.057229)*+h[a+80>>3];if(f<0.0){k=0.0;k=+T(+k);k=k*65536.0;a=~~k;b=d+8|0;c[b>>2]=a;i=e;return}k=f>1.0?1.0:f;k=+T(+k);k=k*65536.0;a=~~k;b=d+8|0;c[b>>2]=a;i=e;return}function ez(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=65536-(c[g>>2]|0)|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}a=65536-(c[f+4>>2]|0)|0;if((a|0)<0){a=0}else{a=(a|0)>65536?65536:a}f=65536-(c[f+8>>2]|0)|0;if((f|0)<0){f=0}else{f=(f|0)>65536?65536:f}g=(a|0)<(b|0)?a:b;g=(f|0)<(g|0)?f:g;c[d>>2]=b-g;c[d+4>>2]=a-g;c[d+8>>2]=f-g;c[d+12>>2]=g;i=e;return}function fz(a,b){a=a|0;b=b|0;c[b>>2]=0;i=i;return}function gz(a){a=a|0;c[a>>2]=168336;i=i;return}function hz(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function iz(a){a=a|0;var b=0;b=i;a=FW(4)|0;c[a>>2]=168336;i=b;return a|0}function jz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=i;b=~~(+(c[b>>2]|0)*.3+ +(c[b+4>>2]|0)*.59+ +(c[b+8>>2]|0)*.11+.5);if((b|0)<0){e=0;b=d;c[b>>2]=e;i=a;return}b=(b|0)>65536?65536:b;e=d;c[e>>2]=b;i=a;return}function kz(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;var g=0,h=0;b=i;if((f|0)>0){g=0}else{i=b;return}do{h=g*3|0;a[e+g|0]=(((d[c+(h+1)|0]|0)*38469|0)+((d[c+h|0]|0)*19595|0)+((d[c+(h+2)|0]|0)*7472|0)|0)>>>16;g=g+1|0;}while((g|0)<(f|0));i=b;return}function lz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=i;e=c[b>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d>>2]=e;e=c[b+4>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d+4>>2]=e;b=c[b+8>>2]|0;if((b|0)<0){b=0;e=d+8|0;c[e>>2]=b;i=a;return}b=(b|0)>65536?65536:b;e=d+8|0;c[e>>2]=b;i=a;return}function mz(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0;a=i;if((f|0)>0){g=0}else{i=a;return}while(1){c[e+(g<<2)>>2]=(d[b+1|0]|0)<<8|(d[b]|0)<<16|(d[b+2|0]|0);g=g+1|0;if((g|0)<(f|0)){b=b+3|0}else{break}}i=a;return}function nz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;a=65536-(c[b>>2]|0)|0;if((a|0)<0){a=0}else{a=(a|0)>65536?65536:a}e=65536-(c[b+4>>2]|0)|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}b=65536-(c[b+8>>2]|0)|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}f=(e|0)<(a|0)?e:a;f=(b|0)<(f|0)?b:f;c[d>>2]=a-f;c[d+4>>2]=e-f;c[d+8>>2]=b-f;c[d+12>>2]=f;i=i;return}function oz(a,b){a=a|0;b=b|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;i=i;return}function pz(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function qz(a){a=a|0;var b=0,d=0,e=0;d=i;b=FW(176)|0;c[b>>2]=168408;e=b+32|0;bX(e|0,0,16)|0;h[b+8>>3]=+h[a+8>>3];h[b+16>>3]=+h[a+16>>3];h[b+24>>3]=+h[a+24>>3];h[e>>3]=+h[a+32>>3];h[b+40>>3]=+h[a+40>>3];h[b+48>>3]=+h[a+48>>3];h[b+56>>3]=+h[a+56>>3];h[b+64>>3]=+h[a+64>>3];h[b+72>>3]=+h[a+72>>3];$W(b+80|0,a+80|0,72)|0;i=d;return b|0}function rz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=~~(+(c[g>>2]|0)*.299+ +(c[f+4>>2]|0)*.587+ +(c[f+8>>2]|0)*.114+.5);if((b|0)<0){f=0;g=d;c[g>>2]=f;i=e;return}f=(b|0)>65536?65536:b;g=d;c[g>>2]=f;i=e;return}function sz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0.0,g=0.0,j=0.0,k=0.0,l=0.0;e=i;g=+U(+(+(c[b>>2]|0)*152587890625.0e-16),+(+h[a+56>>3]));j=+U(+(+(c[b+4>>2]|0)*152587890625.0e-16),+(+h[a+64>>3]));f=+U(+(+(c[b+8>>2]|0)*152587890625.0e-16),+(+h[a+72>>3]));l=g*+h[a+80>>3]+j*+h[a+104>>3]+f*+h[a+128>>3];k=g*+h[a+88>>3]+j*+h[a+112>>3]+f*+h[a+136>>3];f=g*+h[a+96>>3]+j*+h[a+120>>3]+f*+h[a+144>>3];j=l*3.240449+k*-1.537136+f*-.498531;g=l*-.969265+k*1.876011+f*.041556;f=l*.055643+k*-.204026+f*1.057229;if(j<0.0){j=0.0}else{j=j>1.0?1.0:j}c[d>>2]=~~(+T(+j)*65536.0);if(g<0.0){g=0.0}else{g=g>1.0?1.0:g}c[d+4>>2]=~~(+T(+g)*65536.0);if(f<0.0){l=0.0;l=+T(+l);l=l*65536.0;a=~~l;b=d+8|0;c[b>>2]=a;i=e;return}l=f>1.0?1.0:f;l=+T(+l);l=l*65536.0;a=~~l;b=d+8|0;c[b>>2]=a;i=e;return}function tz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=65536-(c[g>>2]|0)|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}a=65536-(c[f+4>>2]|0)|0;if((a|0)<0){a=0}else{a=(a|0)>65536?65536:a}f=65536-(c[f+8>>2]|0)|0;if((f|0)<0){f=0}else{f=(f|0)>65536?65536:f}g=(a|0)<(b|0)?a:b;g=(f|0)<(g|0)?f:g;c[d>>2]=b-g;c[d+4>>2]=a-g;c[d+8>>2]=f-g;c[d+12>>2]=g;i=e;return}function uz(a,b){a=a|0;b=b|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;i=i;return}function vz(a){a=a|0;c[a>>2]=168512;i=i;return}function wz(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function xz(a){a=a|0;var b=0;b=i;a=FW(4)|0;c[a>>2]=168512;i=b;return a|0}function yz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=i;b=~~(+(65536-(c[b+12>>2]|0)|0)- +(c[b>>2]|0)*.3- +(c[b+4>>2]|0)*.59- +(c[b+8>>2]|0)*.11+.5);if((b|0)<0){e=0;b=d;c[b>>2]=e;i=a;return}b=(b|0)>65536?65536:b;e=d;c[e>>2]=b;i=a;return}function zz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0.0,f=0.0,g=0.0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0;a=i;h=+(c[b>>2]|0)*152587890625.0e-16;w=+(c[b+4>>2]|0)*152587890625.0e-16;v=+(c[b+8>>2]|0)*152587890625.0e-16;f=+(c[b+12>>2]|0)*152587890625.0e-16;u=1.0-h;q=1.0-w;g=1.0-v;e=1.0-f;r=u*q;p=r*g;o=p*e;p=f*p;r=v*r;s=r*e;r=f*r;u=u*w;t=u*g;n=t*e;u=u*v;m=u*e;q=h*q;k=q*g;l=k*e;k=f*k;q=v*q;j=q*e;w=h*w;g=w*g;h=g*e;e=w*v*e;b=~~((e*.2118+(h*.1804+(u*f*.1333+(m*.9294+(f*t*.1412+(n*.9255+(r*.1098+(s+(o+p*.1373)))))))))*65536.0);if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}c[d>>2]=b;b=~~((e*.2119+(h*.1922+(f*q*.0745+(j*.651+(k*.0588+(l*.6784+(m*.1098+(r*.102+(s*.949+(o+p*.1216))))))))))*65536.0);if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}c[d+4>>2]=b;b=~~((e*.2235+(f*g*.0078+(h*.5725+(j*.3137+(k*.1412+(l*.9373+(m*.1412+(n*.549+(o+p*.1255)))))))))*65536.0);if((b|0)<0){x=0;b=d+8|0;c[b>>2]=x;i=a;return}b=(b|0)>65536?65536:b;x=d+8|0;c[x>>2]=b;i=a;return}function Az(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=i;e=c[b>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d>>2]=e;e=c[b+4>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d+4>>2]=e;e=c[b+8>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d+8>>2]=e;b=c[b+12>>2]|0;if((b|0)<0){b=0;e=d+12|0;c[e>>2]=b;i=a;return}b=(b|0)>65536?65536:b;e=d+12|0;c[e>>2]=b;i=a;return}function Bz(a,b){a=a|0;b=b|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=65536;i=i;return}function Cz(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function Dz(a){a=a|0;var b=0,d=0,e=0;d=i;b=FW(112)|0;c[b>>2]=168584;e=b+32|0;bX(e|0,0,16)|0;h[b+8>>3]=+h[a+8>>3];h[b+16>>3]=+h[a+16>>3];h[b+24>>3]=+h[a+24>>3];h[e>>3]=+h[a+32>>3];h[b+40>>3]=+h[a+40>>3];h[b+48>>3]=+h[a+48>>3];h[b+56>>3]=+h[a+56>>3];h[b+64>>3]=+h[a+64>>3];h[b+72>>3]=+h[a+72>>3];h[b+80>>3]=+h[a+80>>3];h[b+88>>3]=+h[a+88>>3];h[b+96>>3]=+h[a+96>>3];h[b+104>>3]=+h[a+104>>3];i=d;return b|0}function Ez(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=~~(+(c[g>>2]|0)*.299+ +(c[f+4>>2]|0)*.587+ +(c[f+8>>2]|0)*.114+.5);if((b|0)<0){f=0;g=d;c[g>>2]=f;i=e;return}f=(b|0)>65536?65536:b;g=d;c[g>>2]=f;i=e;return}function Fz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0.0,g=0.0,j=0.0,k=0.0;e=i;j=(+(c[b>>2]|0)*152587890625.0e-16+16.0)/116.0;f=j+ +(c[b+4>>2]|0)*152587890625.0e-16/500.0;if(f<.20689655172413793){f=(f+-.13793103448275862)*.12841854934601665}else{f=f*f*f}if(j<.20689655172413793){g=(j+-.13793103448275862)*.12841854934601665}else{g=j*j*j}j=j- +(c[b+8>>2]|0)*152587890625.0e-16/200.0;if(j<.20689655172413793){j=(j+-.13793103448275862)*.12841854934601665}else{j=j*j*j}f=f*+h[a+8>>3];g=g*+h[a+16>>3];j=j*+h[a+24>>3];k=+h[a+88>>3]*(f*3.240449+g*-1.537136+j*-.498531);if(k<0.0){k=0.0}else{k=k>1.0?1.0:k}c[d>>2]=~~(+T(+k)*65536.0);k=(f*-.969265+g*1.876011+j*.041556)*+h[a+96>>3];if(k<0.0){k=0.0}else{k=k>1.0?1.0:k}c[d+4>>2]=~~(+T(+k)*65536.0);f=(f*.055643+g*-.204026+j*1.057229)*+h[a+104>>3];if(f<0.0){k=0.0;k=+T(+k);k=k*65536.0;a=~~k;b=d+8|0;c[b>>2]=a;i=e;return}k=f>1.0?1.0:f;k=+T(+k);k=k*65536.0;a=~~k;b=d+8|0;c[b>>2]=a;i=e;return}function Gz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=65536-(c[g>>2]|0)|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}a=65536-(c[f+4>>2]|0)|0;if((a|0)<0){a=0}else{a=(a|0)>65536?65536:a}f=65536-(c[f+8>>2]|0)|0;if((f|0)<0){f=0}else{f=(f|0)>65536?65536:f}g=(a|0)<(b|0)?a:b;g=(f|0)<(g|0)?f:g;c[d>>2]=b-g;c[d+4>>2]=a-g;c[d+8>>2]=f-g;c[d+12>>2]=g;i=e;return}function Hz(a,b){a=a|0;b=b|0;var d=0,e=0.0;d=i;c[b>>2]=0;e=+h[a+56>>3];do{if(e>0.0){c[b+4>>2]=~~(e*65536.0)}else{e=+h[a+64>>3];if(e<0.0){c[b+4>>2]=~~(e*65536.0);break}else{c[b+4>>2]=0;break}}}while(0);e=+h[a+72>>3];if(e>0.0){c[b+8>>2]=~~(e*65536.0);i=d;return}e=+h[a+80>>3];if(e<0.0){c[b+8>>2]=~~(e*65536.0);i=d;return}else{c[b+8>>2]=0;i=d;return}}function Iz(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;h[b>>3]=0.0;h[c>>3]=100.0;d=a+56|0;h[b+8>>3]=+h[d>>3];h[c+8>>3]=+h[a+64>>3]- +h[d>>3];d=a+72|0;h[b+16>>3]=+h[d>>3];h[c+16>>3]=+h[a+80>>3]- +h[d>>3];i=i;return}function Jz(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=168688;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function Kz(a){a=a|0;var b=0;b=i;c[a>>2]=168688;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function Lz(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;d=i;b=FWFW(16)|0;e=a+4|0;f=c[e>>2]|0;f=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;h=a+8|0;g=c[h>>2]|0;c[b>>2]=168952;c[b+4>>2]=f;c[b+8>>2]=g;g=ye(da(jd[c[(c[f>>2]|0)+44>>2]&511](f)|0,g+1|0)|0,1)|0;c[b+12>>2]=g;f=c[a+12>>2]|0;a=(c[h>>2]|0)+1|0;e=c[e>>2]|0;$W(g|0,f|0,da(jd[c[(c[e>>2]|0)+44>>2]&511](e)|0,a)|0)|0;i=d;return b|0}function Wz(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0;j=i;k=i;i=i+256|0;m=i;i=i+256|0;g=i;i=i+128|0;o=a+4|0;f=c[o>>2]|0;n=c[f>>2]|0;l=c[n+16>>2]|0;n=jd[c[n+44>>2]&511](f)|0;o=c[o>>2]|0;Jd[c[(c[o>>2]|0)+52>>2]&63](o,k,m,c[a+8>>2]|0);b=da(~~(+(c[b>>2]|0)*152587890625.0e-16+.5),n)|0;o=c[a+12>>2]|0;if((n|0)>0){a=0}else{o=l;Gd[o&255](f,g,e);i=j;return}do{c[g+(a<<2)>>2]=~~((+h[k+(a<<3)>>3]+ +(d[o+(a+b)|0]|0|0)/255.0*+h[m+(a<<3)>>3])*65536.0);a=a+1|0;}while((a|0)<(n|0));o=l;Gd[o&255](f,g,e);i=j;return}function Xz(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0;j=i;k=i;i=i+256|0;m=i;i=i+256|0;g=i;i=i+128|0;o=a+4|0;f=c[o>>2]|0;n=c[f>>2]|0;l=c[n+20>>2]|0;n=jd[c[n+44>>2]&511](f)|0;o=c[o>>2]|0;Jd[c[(c[o>>2]|0)+52>>2]&63](o,k,m,c[a+8>>2]|0);b=da(~~(+(c[b>>2]|0)*152587890625.0e-16+.5),n)|0;o=c[a+12>>2]|0;if((n|0)>0){a=0}else{o=l;Gd[o&255](f,g,e);i=j;return}do{c[g+(a<<2)>>2]=~~((+h[k+(a<<3)>>3]+ +(d[o+(a+b)|0]|0|0)/255.0*+h[m+(a<<3)>>3])*65536.0);a=a+1|0;}while((a|0)<(n|0));o=l;Gd[o&255](f,g,e);i=j;return}function Yz(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=i;l=b+4|0;k=c[l>>2]|0;k=jd[c[(c[k>>2]|0)+44>>2]&511](k)|0;h=ye(g,k)|0;do{if((g|0)>0){b=b+12|0;if((k|0)>0){m=0}else{break}do{n=e+m|0;o=da(m,k)|0;p=0;do{q=(da(d[n]|0,k)|0)+p|0;a[h+(p+o)|0]=a[(c[b>>2]|0)+q|0]|0;p=p+1|0;}while((p|0)<(k|0));m=m+1|0;}while((m|0)<(g|0))}}while(0);q=c[l>>2]|0;Jd[c[(c[q>>2]|0)+32>>2]&63](q,h,f,g);Fe(h);i=j;return}function Zz(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0;j=i;k=i;i=i+256|0;m=i;i=i+256|0;g=i;i=i+128|0;o=a+4|0;f=c[o>>2]|0;n=c[f>>2]|0;l=c[n+24>>2]|0;n=jd[c[n+44>>2]&511](f)|0;o=c[o>>2]|0;Jd[c[(c[o>>2]|0)+52>>2]&63](o,k,m,c[a+8>>2]|0);b=da(~~(+(c[b>>2]|0)*152587890625.0e-16+.5),n)|0;o=c[a+12>>2]|0;if((n|0)>0){a=0}else{o=l;Gd[o&255](f,g,e);i=j;return}do{c[g+(a<<2)>>2]=~~((+h[k+(a<<3)>>3]+ +(d[o+(a+b)|0]|0|0)/255.0*+h[m+(a<<3)>>3])*65536.0);a=a+1|0;}while((a|0)<(n|0));o=l;Gd[o&255](f,g,e);i=j;return}function _z(a,b){a=a|0;b=b|0;c[b>>2]=0;i=i;return}function $z(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;h[b>>3]=0.0;h[c>>3]=+(d|0);i=i;return}function aA(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=169392;d=c[a+4>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+8>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+12>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function bA(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=169392;d=c[a+4>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+8>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}a=c[a+12>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function cA(b){b=b|0;var d=0,e=0,f=0,g=0;e=i;d=FW(20)|0;g=c[b+4>>2]|0;f=FW(32)|0;ie(f,g);g=c[b+8>>2]|0;g=jd[c[(c[g>>2]|0)+8>>2]&511](g)|0;b=c[b+12>>2]|0;b=jd[c[(c[b>>2]|0)+8>>2]&511](b)|0;c[d>>2]=169392;c[d+4>>2]=f;c[d+8>>2]=g;c[d+12>>2]=b;a[d+16|0]=(te(f,169456)|0)==0|0;i=e;return d|0}function dA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0;f=i;j=i;i=i+8|0;g=i;i=i+256|0;e=i;i=i+128|0;h[j>>3]=+(c[b>>2]|0)*152587890625.0e-16;b=c[a+12>>2]|0;Gd[c[(c[b>>2]|0)+16>>2]&255](b,j,g);a=a+8|0;b=c[a>>2]|0;if((jd[c[(c[b>>2]|0)+44>>2]&511](b)|0)>0){b=0}else{j=a;j=c[j>>2]|0;b=j;b=c[b>>2]|0;b=b+16|0;b=c[b>>2]|0;Gd[b&255](j,e,d);i=f;return}do{c[e+(b<<2)>>2]=~~(+h[g+(b<<3)>>3]*65536.0);b=b+1|0;j=c[a>>2]|0;}while((b|0)<(jd[c[(c[j>>2]|0)+44>>2]&511](j)|0));j=a;j=c[j>>2]|0;b=j;b=c[b>>2]|0;b=b+16|0;b=c[b>>2]|0;Gd[b&255](j,e,d);i=f;return}function eA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0;f=i;j=i;i=i+8|0;g=i;i=i+256|0;e=i;i=i+128|0;h[j>>3]=+(c[b>>2]|0)*152587890625.0e-16;b=c[a+12>>2]|0;Gd[c[(c[b>>2]|0)+16>>2]&255](b,j,g);a=a+8|0;b=c[a>>2]|0;if((jd[c[(c[b>>2]|0)+44>>2]&511](b)|0)>0){b=0}else{j=a;j=c[j>>2]|0;b=j;b=c[b>>2]|0;b=b+20|0;b=c[b>>2]|0;Gd[b&255](j,e,d);i=f;return}do{c[e+(b<<2)>>2]=~~(+h[g+(b<<3)>>3]*65536.0);b=b+1|0;j=c[a>>2]|0;}while((b|0)<(jd[c[(c[j>>2]|0)+44>>2]&511](j)|0));j=a;j=c[j>>2]|0;b=j;b=c[b>>2]|0;b=b+20|0;b=c[b>>2]|0;Gd[b&255](j,e,d);i=f;return}function fA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0;f=i;j=i;i=i+8|0;g=i;i=i+256|0;e=i;i=i+128|0;h[j>>3]=+(c[b>>2]|0)*152587890625.0e-16;b=c[a+12>>2]|0;Gd[c[(c[b>>2]|0)+16>>2]&255](b,j,g);a=a+8|0;b=c[a>>2]|0;if((jd[c[(c[b>>2]|0)+44>>2]&511](b)|0)>0){b=0}else{j=a;j=c[j>>2]|0;b=j;b=c[b>>2]|0;b=b+24|0;b=c[b>>2]|0;Gd[b&255](j,e,d);i=f;return}do{c[e+(b<<2)>>2]=~~(+h[g+(b<<3)>>3]*65536.0);b=b+1|0;j=c[a>>2]|0;}while((b|0)<(jd[c[(c[j>>2]|0)+44>>2]&511](j)|0));j=a;j=c[j>>2]|0;b=j;b=c[b>>2]|0;b=b+24|0;b=c[b>>2]|0;Gd[b&255](j,e,d);i=f;return}function gA(a,b){a=a|0;b=b|0;c[b>>2]=65536;i=i;return}function hA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=169600;d=a+4|0;e=c[d>>2]|0;if((e|0)>0){f=0;do{g=c[a+8+(f<<2)>>2]|0;if((g|0)!=0){ke(g);HW(g);e=c[d>>2]|0}f=f+1|0;}while((f|0)<(e|0))}d=c[a+136>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+140>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function iA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=169600;d=a+4|0;e=c[d>>2]|0;if((e|0)>0){f=0;do{g=c[a+8+(f<<2)>>2]|0;if((g|0)!=0){ke(g);HW(g);e=c[d>>2]|0}f=f+1|0;}while((f|0)<(e|0))}d=c[a+136>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}a=c[a+140>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function jA(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;d=FW(148)|0;g=b+4|0;h=c[g>>2]|0;j=c[b+136>>2]|0;j=jd[c[(c[j>>2]|0)+8>>2]&511](j)|0;f=c[b+140>>2]|0;f=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;c[d>>2]=169600;c[d+4>>2]=h;c[d+136>>2]=j;c[d+140>>2]=f;f=d+144|0;a[f]=0;if((c[g>>2]|0)<=0){h=b+144|0;h=a[h]|0;h=h&1;j=f;a[j]=h;i=e;return d|0}h=d+8|0;j=0;do{l=c[b+8+(j<<2)>>2]|0;k=FW(32)|0;ie(k,l);c[h+(j<<2)>>2]=k;j=j+1|0;}while((j|0)<(c[g>>2]|0));k=b+144|0;k=a[k]|0;k=k&1;l=f;a[l]=k;i=e;return d|0}function kA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;e=i;k=i;i=i+256|0;f=i;i=i+256|0;g=i;i=i+128|0;j=c[a+4>>2]|0;if((j|0)>0){l=0;do{h[k+(l<<3)>>3]=+(c[b+(l<<2)>>2]|0)*152587890625.0e-16;l=l+1|0;}while((l|0)<(j|0))}j=c[a+140>>2]|0;Gd[c[(c[j>>2]|0)+16>>2]&255](j,k,f);j=a+136|0;l=c[j>>2]|0;if((jd[c[(c[l>>2]|0)+44>>2]&511](l)|0)>0){k=0}else{l=j;l=c[l>>2]|0;b=l;b=c[b>>2]|0;b=b+16|0;b=c[b>>2]|0;Gd[b&255](l,g,d);i=e;return}do{c[g+(k<<2)>>2]=~~(+h[f+(k<<3)>>3]*65536.0);k=k+1|0;l=c[j>>2]|0;}while((k|0)<(jd[c[(c[l>>2]|0)+44>>2]&511](l)|0));l=j;l=c[l>>2]|0;b=l;b=c[b>>2]|0;b=b+16|0;b=c[b>>2]|0;Gd[b&255](l,g,d);i=e;return}function lA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;e=i;k=i;i=i+256|0;f=i;i=i+256|0;g=i;i=i+128|0;j=c[a+4>>2]|0;if((j|0)>0){l=0;do{h[k+(l<<3)>>3]=+(c[b+(l<<2)>>2]|0)*152587890625.0e-16;l=l+1|0;}while((l|0)<(j|0))}j=c[a+140>>2]|0;Gd[c[(c[j>>2]|0)+16>>2]&255](j,k,f);j=a+136|0;l=c[j>>2]|0;if((jd[c[(c[l>>2]|0)+44>>2]&511](l)|0)>0){k=0}else{l=j;l=c[l>>2]|0;b=l;b=c[b>>2]|0;b=b+20|0;b=c[b>>2]|0;Gd[b&255](l,g,d);i=e;return}do{c[g+(k<<2)>>2]=~~(+h[f+(k<<3)>>3]*65536.0);k=k+1|0;l=c[j>>2]|0;}while((k|0)<(jd[c[(c[l>>2]|0)+44>>2]&511](l)|0));l=j;l=c[l>>2]|0;b=l;b=c[b>>2]|0;b=b+20|0;b=c[b>>2]|0;Gd[b&255](l,g,d);i=e;return}function mA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;e=i;k=i;i=i+256|0;f=i;i=i+256|0;g=i;i=i+128|0;j=c[a+4>>2]|0;if((j|0)>0){l=0;do{h[k+(l<<3)>>3]=+(c[b+(l<<2)>>2]|0)*152587890625.0e-16;l=l+1|0;}while((l|0)<(j|0))}j=c[a+140>>2]|0;Gd[c[(c[j>>2]|0)+16>>2]&255](j,k,f);j=a+136|0;l=c[j>>2]|0;if((jd[c[(c[l>>2]|0)+44>>2]&511](l)|0)>0){k=0}else{l=j;l=c[l>>2]|0;b=l;b=c[b>>2]|0;b=b+24|0;b=c[b>>2]|0;Gd[b&255](l,g,d);i=e;return}do{c[g+(k<<2)>>2]=~~(+h[f+(k<<3)>>3]*65536.0);k=k+1|0;l=c[j>>2]|0;}while((k|0)<(jd[c[(c[l>>2]|0)+44>>2]&511](l)|0));l=j;l=c[l>>2]|0;b=l;b=c[b>>2]|0;b=b+24|0;b=c[b>>2]|0;Gd[b&255](l,g,d);i=e;return}function nA(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+4|0;if((c[a>>2]|0)>0){e=0}else{i=d;return}do{c[b+(e<<2)>>2]=65536;e=e+1|0;}while((e|0)<(c[a>>2]|0));i=d;return}function oA(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=169832;d=c[a+4>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function pA(a){a=a|0;var b=0;b=i;c[a>>2]=169832;a=c[a+4>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function qA(a){a=a|0;var b=0,d=0;d=i;b=FW(8)|0;a=c[a+4>>2]|0;if((a|0)==0){a=0}else{a=jd[c[(c[a>>2]|0)+8>>2]&511](a)|0}c[b>>2]=169832;c[b+4>>2]=a;i=d;return b|0}function rA(a,b,d){a=a|0;b=b|0;d=d|0;c[d>>2]=0;i=i;return}function sA(a,b,d){a=a|0;b=b|0;d=d|0;c[d+8>>2]=0;c[d+4>>2]=0;c[d>>2]=0;i=i;return}function tA(a,b,d){a=a|0;b=b|0;d=d|0;c[d+8>>2]=0;c[d+4>>2]=0;c[d>>2]=0;c[d+12>>2]=1;i=i;return}function uA(a,b){a=a|0;b=b|0;c[b>>2]=0;i=i;return}function vA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=i;g=i;i=i+16|0;d=g;c[g>>2]=13;f=d+8|0;c[f>>2]=0;c[f+4>>2]=0;h=c[a>>2]|0;if((h|0)==8){h=c[a+8>>2]|0;Yu(jd[c[(c[h>>2]|0)+72>>2]&511](h)|0,169976,d,0)|0}else if((h|0)==7){Yu(c[a+8>>2]|0,169976,d,0)|0}else{h=0;i=e;return h|0}do{if((c[g>>2]|0)==1){f=c[f>>2]|0;if((f|0)==2){a=xA(a,b)|0;break}else if((f|0)==1){a=wA(a)|0;break}else{a=0;break}}else{a=0}}while(0);Of(d);h=a;i=e;return h|0}function wA(a){a=a|0;var b=0.0,d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0.0,q=0,r=0.0,s=0,t=0.0,u=0.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.0,aa=0,ba=0.0,ca=0.0;j=i;n=i;i=i+16|0;y=n;z=i;i=i+8|0;g=z;B=i;i=i+8|0;A=B;K=i;i=i+8|0;N=i;i=i+8|0;M=i;i=i+16|0;L=M;Q=i;i=i+8|0;P=i;i=i+16|0;O=P;Y=i;i=i+8|0;R=i;i=i+16|0;T=R;V=i;i=i+8|0;U=V;W=i;i=i+8|0;X=W;Z=i;i=i+8|0;E=i;i=i+8|0;F=E;aa=i;i=i+8|0;_=i;i=i+8|0;G=_;q=i;i=i+32|0;S=q;l=i;i=i+48|0;m=l;J=i;i=i+16|0;d=J;k=i;i=i+16|0;x=k;s=i;i=i+16|0;f=s;c[J>>2]=13;H=d+8|0;c[H>>2]=0;I=H+4|0;c[I>>2]=0;c[k>>2]=13;e=x+8|0;c[e>>2]=0;c[e+4>>2]=0;c[s>>2]=13;w=f+8|0;c[w>>2]=0;c[w+4>>2]=0;if((c[a>>2]|0)!=8){aa=0;i=j;return aa|0}D=c[a+8>>2]|0;D=jd[c[(c[D>>2]|0)+72>>2]&511](D)|0;do{if((c[(Yu(D,169992,x,0)|0)>>2]|0)==1){aa=c[k>>2]|0;if((aa|0)==1){o=c[e>>2]|0;break}else{c[_>>2]=aa;c[G+4>>2]=1;Qe(0,172720,G);tc()}}else{Qe(-1,170008,aa);o=1}}while(0);Of(x);do{if((c[(Yu(D,170048,x,0)|0)>>2]|0)==1){G=c[k>>2]|0;if((G|0)==1){v=c[e>>2]|0;break}else{c[E>>2]=G;c[F+4>>2]=1;Qe(0,172720,F);tc()}}else{Qe(-1,170064,Z);v=1}}while(0);Of(x);F=S+8|0;G=S+24|0;bX(q|0,0,16)|0;h[G>>3]=1.0;E=S+16|0;h[E>>3]=1.0;a:do{if((c[(Yu(D,170112,x,0)|0)>>2]|0)==6){Z=c[k>>2]|0;if((Z|0)!=6){c[W>>2]=Z;c[X+4>>2]=6;Qe(0,172720,X);tc()}if((c[(c[e>>2]|0)+12>>2]|0)!=4){C=28;break}X=6;W=0;while(1){if((X|0)!=6){C=18;break}if(((c[(ut(c[e>>2]|0,W,f)|0)>>2]|0)+ -1|0)>>>0<2){X=c[s>>2]|0;if((X+ -1|0)>>>0>=2){C=21;break}if((X|0)==1){$=+(c[w>>2]|0)}else{$=+h[w>>3]}h[S+(W<<3)>>3]=$}Of(f);W=W+1|0;if((W|0)>=4){break a}X=c[k>>2]|0}if((C|0)==18){c[V>>2]=X;c[U+4>>2]=6;Qe(0,172720,U);tc()}else if((C|0)==21){c[R>>2]=X;c[T+4>>2]=1;c[T+8>>2]=2;Qe(0,172792,T);tc()}}else{C=28}}while(0);if((C|0)==28){Qe(-1,170120,Y)}Of(x);do{if(((c[(Yu(D,170160,x,0)|0)>>2]|0)+ -1|0)>>>0<2){C=c[k>>2]|0;if((C+ -1|0)>>>0>=2){c[P>>2]=C;c[O+4>>2]=1;c[O+8>>2]=2;Qe(0,172792,O);tc()}if((C|0)==1){$=+(c[e>>2]|0);break}else{$=+h[e>>3];break}}else{Qe(-1,170168,Q);$=1.0}}while(0);Of(x);do{if(((c[(Yu(D,170208,x,0)|0)>>2]|0)+ -1|0)>>>0<2){C=c[k>>2]|0;if((C+ -1|0)>>>0>=2){c[M>>2]=C;c[L+4>>2]=1;c[L+8>>2]=2;Qe(0,172792,L);tc()}if((C|0)==1){ba=+(c[e>>2]|0);break}else{ba=+h[e>>3];break}}else{Qe(-1,170216,N);ba=1.0}}while(0);Of(x);if((c[(Yu(D,170256,d,0)|0)>>2]|0)!=7){Of(d);c[H>>2]=0;c[I>>2]=0;c[J>>2]=5;Qe(-1,170272,K)}h[l>>3]=1.0;L=m+8|0;K=m+16|0;J=m+24|0;bX(L|0,0,16)|0;h[J>>3]=1.0;I=m+32|0;H=m+40|0;bX(I|0,0,16)|0;do{if((c[(Yu(D,168496,x,0)|0)>>2]|0)==6){C=c[k>>2]|0;if((C|0)!=6){c[B>>2]=C;c[A+4>>2]=6;Qe(0,172720,A);tc()}if((c[(c[e>>2]|0)+12>>2]|0)!=6){p=0.0;b=1.0;r=0.0;t=0.0;u=1.0;break}B=6;A=0;while(1){if((B|0)!=6){C=51;break}if(((c[(ut(c[e>>2]|0,A,f)|0)>>2]|0)+ -1|0)>>>0<2){B=c[s>>2]|0;if((B+ -1|0)>>>0>=2){C=54;break}if((B|0)==1){ca=+(c[w>>2]|0)}else{ca=+h[w>>3]}h[m+(A<<3)>>3]=ca}Of(f);A=A+1|0;if((A|0)>=6){C=61;break}B=c[k>>2]|0}if((C|0)==51){c[z>>2]=B;c[g+4>>2]=6;Qe(0,172720,g);tc()}else if((C|0)==54){c[n>>2]=B;c[y+4>>2]=1;c[y+8>>2]=2;Qe(0,172792,y);tc()}else if((C|0)==61){p=+h[I>>3];b=+h[J>>3];r=+h[K>>3];t=+h[L>>3];u=+h[l>>3];break}}else{p=0.0;b=1.0;r=0.0;t=0.0;u=1.0}}while(0);Of(x);aa=FW(144)|0;c[aa+4>>2]=1;c[aa>>2]=170320;Z=aa+64|0;c[Z>>2]=13;c[aa+72>>2]=0;c[aa+76>>2]=0;_=aa+128|0;c[_>>2]=13;c[aa+136>>2]=0;c[aa+140>>2]=0;c[aa+8>>2]=o;c[aa+12>>2]=v;h[aa+16>>3]=+h[q>>3];h[aa+24>>3]=+h[F>>3];h[aa+32>>3]=+h[E>>3];h[aa+40>>3]=+h[G>>3];h[aa+48>>3]=$;h[aa+56>>3]=ba;Mf(d,Z)|0;h[aa+80>>3]=u;h[aa+88>>3]=t;h[aa+96>>3]=r;h[aa+104>>3]=b;h[aa+112>>3]=p;h[aa+120>>3]=+h[H>>3];Mf(a,_)|0;Of(d);i=j;return aa|0}function xA(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0,g=0,j=0,k=0,l=0,m=0.0,n=0.0,o=0,p=0.0,q=0.0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0.0;o=i;k=i;i=i+16|0;l=k;g=i;i=i+8|0;j=g;D=i;i=i+8|0;C=D;r=i;i=i+48|0;w=r;x=i;i=i+16|0;f=x;u=i;i=i+16|0;s=u;c[x>>2]=13;t=f+8|0;c[t>>2]=0;c[t+4>>2]=0;c[u>>2]=13;v=s+8|0;c[v>>2]=0;c[v+4>>2]=0;if((c[a>>2]|0)!=7){E=0;i=o;return E|0}E=c[a+8>>2]|0;Yu(E,170336,f,0)|0;z=BA(f,b)|0;Of(f);if((z|0)==0){E=0;i=o;return E|0}h[r>>3]=1.0;a=w+8|0;y=w+16|0;A=w+24|0;bX(a|0,0,16)|0;h[A>>3]=1.0;B=w+32|0;b=w+40|0;bX(B|0,0,16)|0;do{if((c[(Yu(E,168496,f,0)|0)>>2]|0)==6){E=c[x>>2]|0;if((E|0)!=6){c[D>>2]=E;c[C+4>>2]=6;Qe(0,172720,C);tc()}if((c[(c[t>>2]|0)+12>>2]|0)!=6){m=0.0;n=0.0;d=1.0;p=0.0;q=0.0;e=1.0;break}C=6;D=0;while(1){if((C|0)!=6){s=9;break}if(((c[(ut(c[t>>2]|0,D,s)|0)>>2]|0)+ -1|0)>>>0<2){C=c[u>>2]|0;if((C+ -1|0)>>>0>=2){s=12;break}if((C|0)==1){F=+(c[v>>2]|0)}else{F=+h[v>>3]}h[w+(D<<3)>>3]=F}Of(s);D=D+1|0;if((D|0)>=6){s=19;break}C=c[x>>2]|0}if((s|0)==9){c[g>>2]=C;c[j+4>>2]=6;Qe(0,172720,j);tc()}else if((s|0)==12){c[k>>2]=C;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,172792,l);tc()}else if((s|0)==19){m=+h[b>>3];n=+h[B>>3];d=+h[A>>3];p=+h[y>>3];q=+h[a>>3];e=+h[r>>3];break}}else{m=0.0;n=0.0;d=1.0;p=0.0;q=0.0;e=1.0}}while(0);Of(f);E=FW(64)|0;c[E+4>>2]=2;c[E>>2]=170352;c[E+8>>2]=z;h[E+16>>3]=e;h[E+24>>3]=q;h[E+32>>3]=p;h[E+40>>3]=d;h[E+48>>3]=n;h[E+56>>3]=m;i=o;return E|0}function yA(a){a=a|0;var b=0;b=i;c[a>>2]=170320;Of(a+64|0);Of(a+128|0);HW(a);i=b;return}function zA(a){a=a|0;var b=0;b=i;c[a>>2]=170320;Of(a+64|0);Of(a+128|0);i=b;return}function AA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0.0,j=0.0,k=0,l=0;d=i;b=FWFW(64)|0;e=c[a+8>>2]|0;e=jd[c[(c[e>>2]|0)+8>>2]&511](e)|0;c[b+4>>2]=2;c[b>>2]=170352;c[b+8>>2]=e;h[b+16>>3]=+h[a+16>>3];h[b+24>>3]=+h[a+24>>3];h[b+32>>3]=+h[a+32>>3];h[b+40>>3]=+h[a+40>>3];h[b+48>>3]=+h[a+48>>3];h[b+56>>3]=+h[a+56>>3];i=d;return b|0}function FA(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=170376;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function GA(a){a=a|0;var b=0;b=i;c[a>>2]=170376;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function HA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,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.0,K=0,L=0,M=0.0,N=0.0,O=0.0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0.0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0.0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0.0,la=0.0,ma=0.0,na=0.0;e=i;o=i;i=i+8|0;k=o;p=i;i=i+8|0;s=i;i=i+16|0;r=s;t=i;i=i+8|0;u=t;v=i;i=i+16|0;w=v;x=i;i=i+8|0;y=x;A=i;i=i+16|0;z=A;B=i;i=i+8|0;C=B;D=i;i=i+16|0;E=D;G=i;i=i+8|0;F=G;I=i;i=i+16|0;H=I;K=i;i=i+8|0;L=K;Q=i;i=i+16|0;P=Q;R=i;i=i+8|0;S=R;T=i;i=i+16|0;U=T;W=i;i=i+8|0;V=W;Z=i;i=i+16|0;Y=Z;_=i;i=i+8|0;$=_;ba=i;i=i+16|0;aa=ba;da=i;i=i+8|0;ca=da;ga=i;i=i+16|0;fa=ga;ja=i;i=i+8|0;ha=ja;q=i;i=i+128|0;d=q;j=i;i=i+16|0;n=j;ia=i;i=i+16|0;m=ia;c[j>>2]=13;l=n+8|0;c[l>>2]=0;c[l+4>>2]=0;c[ia>>2]=13;ia=m+8|0;c[ia>>2]=0;c[ia+4>>2]=0;do{if((c[(Yu(a,170840,n,0)|0)>>2]|0)==6){ia=c[j>>2]|0;if((ia|0)!=6){c[ja>>2]=ia;c[ha+4>>2]=6;Qe(0,172720,ha);tc()}ha=c[l>>2]|0;if((c[ha+12>>2]|0)!=4){J=0.0;M=1.0;N=0.0;O=1.0;break}ia=ut(ha,0,m)|0;ha=c[ia>>2]|0;if((ha+ -1|0)>>>0>=2){c[ga>>2]=ha;c[fa+4>>2]=1;c[fa+8>>2]=2;Qe(0,172792,fa);tc()}fa=ia+8|0;if((ha|0)==1){J=+(c[fa>>2]|0)}else{J=+h[fa>>3]}Of(m);fa=c[j>>2]|0;if((fa|0)!=6){c[da>>2]=fa;c[ca+4>>2]=6;Qe(0,172720,ca);tc()}da=ut(c[l>>2]|0,1,m)|0;ca=c[da>>2]|0;if((ca+ -1|0)>>>0>=2){c[ba>>2]=ca;c[aa+4>>2]=1;c[aa+8>>2]=2;Qe(0,172792,aa);tc()}aa=da+8|0;if((ca|0)==1){M=+(c[aa>>2]|0)}else{M=+h[aa>>3]}Of(m);aa=c[j>>2]|0;if((aa|0)!=6){c[_>>2]=aa;c[$+4>>2]=6;Qe(0,172720,$);tc()}$=ut(c[l>>2]|0,2,m)|0;_=c[$>>2]|0;if((_+ -1|0)>>>0>=2){c[Z>>2]=_;c[Y+4>>2]=1;c[Y+8>>2]=2;Qe(0,172792,Y);tc()}Y=$+8|0;if((_|0)==1){N=+(c[Y>>2]|0)}else{N=+h[Y>>3]}Of(m);Y=c[j>>2]|0;if((Y|0)!=6){c[W>>2]=Y;c[V+4>>2]=6;Qe(0,172720,V);tc()}W=ut(c[l>>2]|0,3,m)|0;V=c[W>>2]|0;if((V+ -1|0)>>>0>=2){c[T>>2]=V;c[U+4>>2]=1;c[U+8>>2]=2;Qe(0,172792,U);tc()}T=W+8|0;if((V|0)==1){O=+(c[T>>2]|0)}else{O=+h[T>>3]}Of(m)}else{J=0.0;M=1.0;N=0.0;O=1.0}}while(0);Of(n);do{if((c[(Yu(a,168496,n,0)|0)>>2]|0)==6){T=c[j>>2]|0;if((T|0)!=6){c[R>>2]=T;c[S+4>>2]=6;Qe(0,172720,S);tc()}R=c[l>>2]|0;if((c[R+12>>2]|0)!=6){ma=0.0;na=0.0;la=1.0;ka=0.0;ea=0.0;X=1.0;break}S=ut(R,0,m)|0;R=c[S>>2]|0;if((R+ -1|0)>>>0>=2){c[Q>>2]=R;c[P+4>>2]=1;c[P+8>>2]=2;Qe(0,172792,P);tc()}P=S+8|0;if((R|0)==1){X=+(c[P>>2]|0)}else{X=+h[P>>3]}Of(m);P=c[j>>2]|0;if((P|0)!=6){c[K>>2]=P;c[L+4>>2]=6;Qe(0,172720,L);tc()}L=ut(c[l>>2]|0,1,m)|0;K=c[L>>2]|0;if((K+ -1|0)>>>0>=2){c[I>>2]=K;c[H+4>>2]=1;c[H+8>>2]=2;Qe(0,172792,H);tc()}H=L+8|0;if((K|0)==1){ea=+(c[H>>2]|0)}else{ea=+h[H>>3]}Of(m);H=c[j>>2]|0;if((H|0)!=6){c[G>>2]=H;c[F+4>>2]=6;Qe(0,172720,F);tc()}G=ut(c[l>>2]|0,2,m)|0;F=c[G>>2]|0;if((F+ -1|0)>>>0>=2){c[D>>2]=F;c[E+4>>2]=1;c[E+8>>2]=2;Qe(0,172792,E);tc()}D=G+8|0;if((F|0)==1){ka=+(c[D>>2]|0)}else{ka=+h[D>>3]}Of(m);D=c[j>>2]|0;if((D|0)!=6){c[B>>2]=D;c[C+4>>2]=6;Qe(0,172720,C);tc()}C=ut(c[l>>2]|0,3,m)|0;B=c[C>>2]|0;if((B+ -1|0)>>>0>=2){c[A>>2]=B;c[z+4>>2]=1;c[z+8>>2]=2;Qe(0,172792,z);tc()}z=C+8|0;if((B|0)==1){la=+(c[z>>2]|0)}else{la=+h[z>>3]}Of(m);z=c[j>>2]|0;if((z|0)!=6){c[x>>2]=z;c[y+4>>2]=6;Qe(0,172720,y);tc()}y=ut(c[l>>2]|0,4,m)|0;x=c[y>>2]|0;if((x+ -1|0)>>>0>=2){c[v>>2]=x;c[w+4>>2]=1;c[w+8>>2]=2;Qe(0,172792,w);tc()}v=y+8|0;if((x|0)==1){na=+(c[v>>2]|0)}else{na=+h[v>>3]}Of(m);v=c[j>>2]|0;if((v|0)!=6){c[t>>2]=v;c[u+4>>2]=6;Qe(0,172720,u);tc()}u=ut(c[l>>2]|0,5,m)|0;t=c[u>>2]|0;if((t+ -1|0)>>>0>=2){c[s>>2]=t;c[r+4>>2]=1;c[r+8>>2]=2;Qe(0,172792,r);tc()}r=u+8|0;if((t|0)==1){ma=+(c[r>>2]|0)}else{ma=+h[r>>3]}Of(m)}else{ma=0.0;na=0.0;la=1.0;ka=0.0;ea=0.0;X=1.0}}while(0);Of(n);Yu(a,170848,n,0)|0;a:do{if((c[j>>2]|0)==6){q=c[(c[l>>2]|0)+12>>2]|0;if((q|0)>32){Qe(-1,170864,p);g=92;break}if((q|0)>0){p=6;r=0}else{f=q;break}while(1){if((p|0)!=6){break}ut(c[l>>2]|0,r,m)|0;ja=EH(m)|0;c[d+(r<<2)>>2]=ja;Of(m);r=r+1|0;if((ja|0)==0){g=92;break a}if((r|0)>=(q|0)){f=q;break a}p=c[j>>2]|0}c[o>>2]=p;c[k+4>>2]=6;Qe(0,172720,k);tc()}else{ja=EH(n)|0;c[q>>2]=ja;if((ja|0)==0){g=92}else{f=1}}}while(0);if((g|0)==92){Of(n);ja=0;i=e;return ja|0}Of(n);g=FW(400)|0;c[g+4>>2]=1;c[g+8>>2]=0;c[g>>2]=170824;h[g+184>>3]=J;h[g+192>>3]=N;h[g+200>>3]=M;h[g+208>>3]=O;h[g+216>>3]=X;h[g+224>>3]=ea;h[g+232>>3]=ka;h[g+240>>3]=la;h[g+248>>3]=na;h[g+256>>3]=ma;j=g+392|0;c[j>>2]=f;if((f|0)>0){f=0;do{c[g+264+(f<<2)>>2]=c[d+(f<<2)>>2];f=f+1|0;}while((f|0)<(c[j>>2]|0))}if(MA(g,a,b)|0){ja=g;i=e;return ja|0}if((g|0)==0){ja=0;i=e;return ja|0}fd[c[(c[g>>2]|0)+4>>2]&511](g);ja=0;i=e;return ja|0}function IA(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,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.0,K=0,L=0,M=0.0,N=0,O=0.0,P=0.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.0,ca=0.0;g=i;n=i;i=i+8|0;m=n;o=i;i=i+8|0;p=o;t=i;i=i+8|0;s=t;u=i;i=i+8|0;v=u;y=i;i=i+8|0;w=y;z=i;i=i+8|0;E=i;i=i+8|0;F=E;H=i;i=i+8|0;I=H;Q=i;i=i+8|0;W=i;i=i+8|0;X=W;Z=i;i=i+8|0;Y=Z;_=i;i=i+8|0;$=_;V=i;i=i+8|0;aa=V;A=i;i=i+128|0;e=A;r=i;i=i+16|0;k=r;G=i;i=i+16|0;l=G;U=i;i=i+16|0;K=U;S=i;i=i+16|0;L=S;R=i;i=i+16|0;N=R;D=i;i=i+16|0;B=D;c[r>>2]=13;q=k+8|0;c[q>>2]=0;c[q+4>>2]=0;c[G>>2]=13;C=l+8|0;c[C>>2]=0;c[C+4>>2]=0;do{if((c[(Yu(b,170936,k,0)|0)>>2]|0)==6){T=c[r>>2]|0;if((T|0)!=6){c[V>>2]=T;c[aa+4>>2]=6;Qe(0,172720,aa);tc()}aa=c[q>>2]|0;if((c[aa+12>>2]|0)!=4){break}c[U>>2]=13;V=K+8|0;c[V>>2]=0;c[V+4>>2]=0;c[S>>2]=13;T=L+8|0;c[T>>2]=0;c[T+4>>2]=0;c[R>>2]=13;Q=N+8|0;c[Q>>2]=0;c[Q+4>>2]=0;ut(aa,0,l)|0;aa=c[r>>2]|0;if((aa|0)!=6){c[_>>2]=aa;c[$+4>>2]=6;Qe(0,172720,$);tc()}ut(c[q>>2]|0,1,K)|0;_=c[r>>2]|0;if((_|0)!=6){c[Z>>2]=_;c[Y+4>>2]=6;Qe(0,172720,Y);tc()}ut(c[q>>2]|0,2,L)|0;Y=c[r>>2]|0;if((Y|0)!=6){c[W>>2]=Y;c[X+4>>2]=6;Qe(0,172720,X);tc()}ut(c[q>>2]|0,3,N)|0;W=c[G>>2]|0;do{if((W+ -1|0)>>>0<2){U=c[U>>2]|0;if((U+ -1|0)>>>0>=2){J=0.0;M=0.0;O=0.0;P=0.0;break}S=c[S>>2]|0;if((S+ -1|0)>>>0>=2){J=0.0;M=0.0;O=0.0;P=0.0;break}R=c[R>>2]|0;if((R+ -1|0)>>>0>=2){J=0.0;M=0.0;O=0.0;P=0.0;break}if((W|0)==1){J=+(c[C>>2]|0)}else{J=+h[C>>3]}if((U|0)==1){O=+(c[V>>2]|0)}else{O=+h[V>>3]}if((S|0)==1){M=+(c[T>>2]|0)}else{M=+h[T>>3]}if((R|0)==1){P=+(c[Q>>2]|0);break}else{P=+h[Q>>3];break}}else{J=0.0;M=0.0;O=0.0;P=0.0}}while(0);Of(l);Of(K);Of(L);Of(N);Of(k);do{if((c[(Yu(b,170840,k,0)|0)>>2]|0)==6){K=c[r>>2]|0;if((K|0)!=6){c[H>>2]=K;c[I+4>>2]=6;Qe(0,172720,I);tc()}I=c[q>>2]|0;if((c[I+12>>2]|0)!=2){ba=0.0;ca=1.0;break}c[D>>2]=13;H=B+8|0;c[H>>2]=0;c[H+4>>2]=0;ut(I,0,l)|0;I=c[r>>2]|0;if((I|0)!=6){c[E>>2]=I;c[F+4>>2]=6;Qe(0,172720,F);tc()}ut(c[q>>2]|0,1,B)|0;E=c[G>>2]|0;do{if((E+ -1|0)>>>0<2){D=c[D>>2]|0;if((D+ -1|0)>>>0>=2){ba=0.0;ca=1.0;break}if((E|0)==1){ba=+(c[C>>2]|0)}else{ba=+h[C>>3]}if((D|0)==1){ca=+(c[H>>2]|0);break}else{ca=+h[H>>3];break}}else{ba=0.0;ca=1.0}}while(0);Of(l);Of(B)}else{ba=0.0;ca=1.0}}while(0);Of(k);Yu(b,170848,k,0)|0;a:do{if((c[r>>2]|0)==6){A=c[(c[q>>2]|0)+12>>2]|0;if((A|0)>32){Qe(-1,170864,z);aa=0;i=g;return aa|0}if((A|0)>0){z=6;B=0}else{w=A;break}while(1){if((z|0)!=6){x=48;break}ut(c[q>>2]|0,B,l)|0;aa=EH(l)|0;c[e+(B<<2)>>2]=aa;if((aa|0)==0){break}Of(l);B=B+1|0;if((B|0)>=(A|0)){w=A;break a}z=c[r>>2]|0}if((x|0)==48){c[y>>2]=z;c[w+4>>2]=6;Qe(0,172720,w);tc()}Of(k);Of(l);aa=0;i=g;return aa|0}else{aa=EH(k)|0;c[A>>2]=aa;if((aa|0)!=0){w=1;break}Of(k);aa=0;i=g;return aa|0}}while(0);Of(k);do{if((c[(Yu(b,170992,k,0)|0)>>2]|0)==6){x=c[r>>2]|0;if((x|0)!=6){c[u>>2]=x;c[v+4>>2]=6;Qe(0,172720,v);tc()}u=c[q>>2]|0;if((c[u+12>>2]|0)!=2){j=0;f=0;break}u=ut(u,0,l)|0;v=c[u>>2]|0;if((v|0)!=0){c[t>>2]=v;c[s+4>>2]=0;Qe(0,172720,s);tc()}s=a[u+8|0]&1;Of(l);r=c[r>>2]|0;if((r|0)!=6){c[o>>2]=r;c[p+4>>2]=6;Qe(0,172720,p);tc()}o=ut(c[q>>2]|0,1,l)|0;p=c[o>>2]|0;if((p|0)==0){f=a[o+8|0]&1;Of(l);j=s;break}else{c[n>>2]=p;c[m+4>>2]=0;Qe(0,172720,m);tc()}}else{j=0;f=0}}while(0);Of(k);k=FW(368)|0;c[k+4>>2]=2;c[k+8>>2]=0;c[k>>2]=170920;h[k+184>>3]=J;h[k+192>>3]=O;h[k+200>>3]=M;h[k+208>>3]=P;h[k+216>>3]=ba;h[k+224>>3]=ca;l=k+360|0;c[l>>2]=w;if((w|0)>0){m=0;do{c[k+232+(m<<2)>>2]=c[e+(m<<2)>>2];m=m+1|0;}while((m|0)<(c[l>>2]|0))}a[k+364|0]=j;a[k+365|0]=f;if(MA(k,b,d)|0){aa=k;i=g;return aa|0}if((k|0)==0){aa=0;i=g;return aa|0}fd[c[(c[k>>2]|0)+4>>2]&511](k);aa=0;i=g;return aa|0}}while(0);Qe(-1,170944,Q);aa=0;i=g;return aa|0}function JA(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0,B=0,C=0,D=0.0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0.0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0.0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0.0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0.0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0.0,oa=0.0;e=i;n=i;i=i+8|0;m=n;q=i;i=i+8|0;o=q;s=i;i=i+8|0;t=s;v=i;i=i+8|0;u=v;y=i;i=i+8|0;z=y;A=i;i=i+8|0;E=i;i=i+16|0;C=E;F=i;i=i+8|0;G=F;I=i;i=i+16|0;H=I;J=i;i=i+8|0;K=J;ja=i;i=i+8|0;M=i;i=i+16|0;N=M;O=i;i=i+8|0;P=O;R=i;i=i+16|0;Q=R;T=i;i=i+8|0;U=T;V=i;i=i+16|0;W=V;Y=i;i=i+8|0;X=Y;$=i;i=i+16|0;_=$;ba=i;i=i+8|0;aa=ba;ca=i;i=i+16|0;da=ca;fa=i;i=i+8|0;ga=fa;ha=i;i=i+16|0;ia=ha;ka=i;i=i+8|0;ma=ka;B=i;i=i+128|0;f=B;r=i;i=i+16|0;l=r;la=i;i=i+16|0;k=la;c[r>>2]=13;p=l+8|0;c[p>>2]=0;c[p+4>>2]=0;c[la>>2]=13;la=k+8|0;c[la>>2]=0;c[la+4>>2]=0;do{if((c[(Yu(b,170936,l,0)|0)>>2]|0)==6){la=c[r>>2]|0;if((la|0)!=6){c[ka>>2]=la;c[ma+4>>2]=6;Qe(0,172720,ma);tc()}ka=c[p>>2]|0;if((c[ka+12>>2]|0)!=6){break}ka=ut(ka,0,k)|0;ja=c[ka>>2]|0;if((ja+ -1|0)>>>0>=2){c[ha>>2]=ja;c[ia+4>>2]=1;c[ia+8>>2]=2;Qe(0,172792,ia);tc()}ha=ka+8|0;if((ja|0)==1){x=+(c[ha>>2]|0)}else{x=+h[ha>>3]}Of(k);ha=c[r>>2]|0;if((ha|0)!=6){c[fa>>2]=ha;c[ga+4>>2]=6;Qe(0,172720,ga);tc()}ga=ut(c[p>>2]|0,1,k)|0;fa=c[ga>>2]|0;if((fa+ -1|0)>>>0>=2){c[ca>>2]=fa;c[da+4>>2]=1;c[da+8>>2]=2;Qe(0,172792,da);tc()}ca=ga+8|0;if((fa|0)==1){D=+(c[ca>>2]|0)}else{D=+h[ca>>3]}Of(k);ca=c[r>>2]|0;if((ca|0)!=6){c[ba>>2]=ca;c[aa+4>>2]=6;Qe(0,172720,aa);tc()}ba=ut(c[p>>2]|0,2,k)|0;aa=c[ba>>2]|0;if((aa+ -1|0)>>>0>=2){c[$>>2]=aa;c[_+4>>2]=1;c[_+8>>2]=2;Qe(0,172792,_);tc()}_=ba+8|0;if((aa|0)==1){L=+(c[_>>2]|0)}else{L=+h[_>>3]}Of(k);_=c[r>>2]|0;if((_|0)!=6){c[Y>>2]=_;c[X+4>>2]=6;Qe(0,172720,X);tc()}Y=ut(c[p>>2]|0,3,k)|0;X=c[Y>>2]|0;if((X+ -1|0)>>>0>=2){c[V>>2]=X;c[W+4>>2]=1;c[W+8>>2]=2;Qe(0,172792,W);tc()}V=Y+8|0;if((X|0)==1){S=+(c[V>>2]|0)}else{S=+h[V>>3]}Of(k);V=c[r>>2]|0;if((V|0)!=6){c[T>>2]=V;c[U+4>>2]=6;Qe(0,172720,U);tc()}U=ut(c[p>>2]|0,4,k)|0;T=c[U>>2]|0;if((T+ -1|0)>>>0>=2){c[R>>2]=T;c[Q+4>>2]=1;c[Q+8>>2]=2;Qe(0,172792,Q);tc()}Q=U+8|0;if((T|0)==1){Z=+(c[Q>>2]|0)}else{Z=+h[Q>>3]}Of(k);Q=c[r>>2]|0;if((Q|0)!=6){c[O>>2]=Q;c[P+4>>2]=6;Qe(0,172720,P);tc()}P=ut(c[p>>2]|0,5,k)|0;O=c[P>>2]|0;if((O+ -1|0)>>>0>=2){c[M>>2]=O;c[N+4>>2]=1;c[N+8>>2]=2;Qe(0,172792,N);tc()}M=P+8|0;if((O|0)==1){ea=+(c[M>>2]|0)}else{ea=+h[M>>3]}Of(k);Of(l);do{if((c[(Yu(b,170840,l,0)|0)>>2]|0)==6){M=c[r>>2]|0;if((M|0)!=6){c[J>>2]=M;c[K+4>>2]=6;Qe(0,172720,K);tc()}J=c[p>>2]|0;if((c[J+12>>2]|0)!=2){na=0.0;oa=1.0;break}K=ut(J,0,k)|0;J=c[K>>2]|0;if((J+ -1|0)>>>0>=2){c[I>>2]=J;c[H+4>>2]=1;c[H+8>>2]=2;Qe(0,172792,H);tc()}H=K+8|0;if((J|0)==1){na=+(c[H>>2]|0)}else{na=+h[H>>3]}Of(k);H=c[r>>2]|0;if((H|0)!=6){c[F>>2]=H;c[G+4>>2]=6;Qe(0,172720,G);tc()}G=ut(c[p>>2]|0,1,k)|0;F=c[G>>2]|0;if((F+ -1|0)>>>0>=2){c[E>>2]=F;c[C+4>>2]=1;c[C+8>>2]=2;Qe(0,172792,C);tc()}C=G+8|0;if((F|0)==1){oa=+(c[C>>2]|0)}else{oa=+h[C>>3]}Of(k)}else{na=0.0;oa=1.0}}while(0);Of(l);Yu(b,170848,l,0)|0;a:do{if((c[r>>2]|0)==6){B=c[(c[p>>2]|0)+12>>2]|0;if((B|0)>32){Qe(-1,170864,A);ma=0;i=e;return ma|0}if((B|0)>0){A=6;C=0}else{w=B;break}while(1){if((A|0)!=6){w=68;break}ut(c[p>>2]|0,C,k)|0;ma=EH(k)|0;c[f+(C<<2)>>2]=ma;if((ma|0)==0){break}Of(k);C=C+1|0;if((C|0)>=(B|0)){w=B;break a}A=c[r>>2]|0}if((w|0)==68){c[y>>2]=A;c[z+4>>2]=6;Qe(0,172720,z);tc()}Of(l);Of(k);ma=0;i=e;return ma|0}else{ma=EH(l)|0;c[B>>2]=ma;if((ma|0)!=0){w=1;break}Of(l);ma=0;i=e;return ma|0}}while(0);Of(l);do{if((c[(Yu(b,170992,l,0)|0)>>2]|0)==6){y=c[r>>2]|0;if((y|0)!=6){c[v>>2]=y;c[u+4>>2]=6;Qe(0,172720,u);tc()}u=c[p>>2]|0;if((c[u+12>>2]|0)!=2){j=0;g=0;break}u=ut(u,0,k)|0;v=c[u>>2]|0;if((v|0)!=0){c[s>>2]=v;c[t+4>>2]=0;Qe(0,172720,t);tc()}s=a[u+8|0]&1;Of(k);r=c[r>>2]|0;if((r|0)!=6){c[q>>2]=r;c[o+4>>2]=6;Qe(0,172720,o);tc()}p=ut(c[p>>2]|0,1,k)|0;o=c[p>>2]|0;if((o|0)==0){g=a[p+8|0]&1;Of(k);j=s;break}else{c[n>>2]=o;c[m+4>>2]=0;Qe(0,172720,m);tc()}}else{j=0;g=0}}while(0);Of(l);k=FWFW(12)|0;c[A>>2]=d;fd[c[(c[d>>2]|0)+12>>2]&511](d);G=A+4|0;c[G>>2]=0;B=A+8|0;c[B>>2]=0;D=(1<<n)+ -1|0;C=(w|0)>0;F=(1<<o)+ -1|0;E=0;d=0;I=0;J=0;H=0;L=0;z=0;K=0;c:while(1){while(1){while(1){d:do{if(q){K=c[B>>2]|0;if((K|0)>=(n|0)){N=K-n|0;K=c[G>>2]>>N&D;c[B>>2]=N;break}if((K|0)>0){na=c[G>>2]&(1<<K)+ -1;c[B>>2]=0;M=n-K|0;K=na}else{M=n;K=0}if((M|0)<=0){x=95;break}while(1){O=c[A>>2]|0;O=jd[c[(c[O>>2]|0)+20>>2]&511](O)|0;c[G>>2]=O;if((O|0)==-1){x=94;break c}if((M|0)<=7){break}K=O|K<<8;M=M+ -8|0;if((M|0)<=0){x=95;break d}}na=8-M|0;c[B>>2]=na;N=na;K=O>>na|K<<M}else{x=95}}while(0);if((x|0)==95){x=0;N=c[B>>2]|0}do{if((N|0)<(o|0)){if((N|0)>0){M=c[G>>2]&(1<<N)+ -1;c[B>>2]=0;O=o-N|0;N=0}else{O=o;M=0}if((O|0)<=0){break}while(1){P=c[A>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;c[G>>2]=P;if((P|0)==-1){x=105;break c}if((O|0)<=7){x=103;break}M=P|M<<8;O=O+ -8|0;if((O|0)<=0){x=106;break}}if((x|0)==103){x=0;na=8-O|0;c[B>>2]=na;N=na;M=P>>na|M<<O;break}else if((x|0)==106){x=0;N=c[B>>2]|0;break}}else{N=N-o|0;M=c[G>>2]>>N&F;c[B>>2]=N}}while(0);e:do{if((N|0)<(o|0)){if((N|0)>0){na=c[G>>2]&(1<<N)+ -1;c[B>>2]=0;O=o-N|0;N=na}else{O=o;N=0}if((O|0)<=0){break}while(1){P=c[A>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;c[G>>2]=P;if((P|0)==-1){x=117;break c}if((O|0)<=7){break}N=P|N<<8;O=O+ -8|0;if((O|0)<=0){break e}}na=8-O|0;c[B>>2]=na;N=P>>na|N<<O}else{na=N-o|0;N=c[G>>2]>>na&F;c[B>>2]=na}}while(0);if(C){O=0;do{P=k+(O<<2)|0;Q=c[B>>2]|0;f:do{if((Q|0)<(p|0)){if((Q|0)>0){R=c[G>>2]&(1<<Q)+ -1;c[B>>2]=0;Q=p-Q|0}else{Q=p;R=0}if((Q|0)>0){S=R}else{break}while(1){R=c[A>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;c[G>>2]=R;if((R|0)==-1){x=144;break c}if((Q|0)<=7){break}R=R|S<<8;Q=Q+ -8|0;if((Q|0)>0){S=R}else{break f}}na=8-Q|0;c[B>>2]=na;R=R>>na|S<<Q}else{na=Q-p|0;R=c[G>>2]>>na&v;c[B>>2]=na}}while(0);c[P>>2]=R;O=O+1|0;}while((O|0)<(w|0))}if((d|0)==(L|0)){L=(d|0)==0?16:d<<1;z=Ce(z,L,144)|0;bX(z+(d*144|0)|0,0,(L-d|0)*144|0)|0}h[z+(d*144|0)>>3]=r+s*+(M>>>0);h[z+(d*144|0)+8>>3]=t+u*+(N>>>0);if(C){M=0;do{c[z+(d*144|0)+16+(M<<2)>>2]=~~((+h[m+(M<<3)>>3]+ +h[l+(M<<3)>>3]*+((c[k+(M<<2)>>2]|0)>>>0))*65536.0);M=M+1|0;}while((M|0)<(w|0))}M=d+1|0;c[G>>2]=0;c[B>>2]=0;if(q){break}else{d=M}}if(I>>>0<2){d=M;I=I+1|0;continue}else{N=(I|0)==2;if((K|0)==0&(N^1)){d=M;I=1;K=0;continue}else{break}}}if((E|0)==(J|0)){na=(E|0)==0?16:E<<1;J=na;H=Ce(H,na*3|0,4)|0}do{if(N){c[H+(E*12|0)>>2]=d+ -2;c[H+(E*12|0)+4>>2]=d+ -1;c[H+(E*12|0)+8>>2]=d;I=3}else{N=E+ -1|0;if((K|0)==1){c[H+(E*12|0)>>2]=c[H+(N*12|0)+4>>2];c[H+(E*12|0)+4>>2]=c[H+(N*12|0)+8>>2];c[H+(E*12|0)+8>>2]=d;break}else{c[H+(E*12|0)>>2]=c[H+(N*12|0)>>2];c[H+(E*12|0)+4>>2]=c[H+(N*12|0)+8>>2];c[H+(E*12|0)+8>>2]=d;break}}}while(0);E=E+1|0;d=M}if((x|0)==94){c[B>>2]=0;x=145}else if((x|0)==105){c[B>>2]=0;x=145}else if((x|0)==117){c[B>>2]=0;x=145}else if((x|0)==144){c[B>>2]=0;if((A|0)!=0){x=145}}if((x|0)==145){na=c[A>>2]|0;fd[c[(c[na>>2]|0)+16>>2]&511](na);HW(A)}do{if((a|0)==5){l=((d|0)/(j|0)|0)+ -1|0;k=j+ -1|0;E=da(l<<1,k)|0;H=ye(E*3|0,4)|0;if((l|0)<=0){break}n=(k|0)>0;m=(j<<1)+ -2|0;w=0;o=0;do{if(n){p=da(w,j)|0;w=w+1|0;v=da(w,j)|0;x=0;q=o;while(1){ia=x+p|0;c[H+(q*12|0)>>2]=ia;ia=ia+1|0;c[H+(q*12|0)+4>>2]=ia;ja=x+v|0;c[H+(q*12|0)+8>>2]=ja;na=q+1|0;c[H+(na*12|0)>>2]=ia;c[H+(na*12|0)+4>>2]=ja;c[H+(na*12|0)+8>>2]=ja+1;x=x+1|0;if((x|0)<(k|0)){q=q+2|0}else{break}}o=m+o|0}else{w=w+1|0}}while((w|0)<(l|0))}}while(0);j=FW(328)|0;c[j+4>>2]=a;c[j+8>>2]=0;c[j>>2]=171032;c[j+180>>2]=z;c[j+184>>2]=d;c[j+188>>2]=H;c[j+192>>2]=E;a=j+324|0;c[a>>2]=y;if((y|0)>0){k=0;do{c[j+196+(k<<2)>>2]=c[g+(k<<2)>>2];k=k+1|0;}while((k|0)<(c[a>>2]|0))}if(MA(j,b,e)|0){na=j;i=f;return na|0}if((j|0)==0){na=0;i=f;return na|0}fd[c[(c[j>>2]|0)+4>>2]&511](j);na=0;i=f;return na|0}}}while(0);Qe(-1,171376,H)}else{Qe(-1,171072,ja)}}while(0);Of(z);na=0;i=f;return na|0}function LA(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0.0,u=0.0,v=0.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,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0.0,ya=0.0,za=0.0,Aa=0.0,Ba=0.0,Ca=0.0,Da=0.0,Ea=0.0,Fa=0.0,Ga=0.0,Ha=0.0,Ia=0.0,Ja=0.0;f=i;C=i;i=i+8|0;D=C;H=i;i=i+8|0;I=i;i=i+8|0;O=i;i=i+16|0;L=O;M=i;i=i+8|0;N=M;K=i;i=i+16|0;P=K;z=i;i=i+8|0;G=z;x=i;i=i+16|0;y=x;Q=i;i=i+8|0;R=Q;S=i;i=i+16|0;T=S;U=i;i=i+8|0;V=U;X=i;i=i+16|0;W=X;Z=i;i=i+8|0;Y=Z;$=i;i=i+16|0;_=$;aa=i;i=i+8|0;ba=aa;da=i;i=i+8|0;ca=i;i=i+8|0;s=ca;fa=i;i=i+8|0;ea=i;i=i+8|0;r=ea;ha=i;i=i+8|0;ga=i;i=i+8|0;q=ga;J=i;i=i+128|0;g=J;m=i;i=i+256|0;j=i;i=i+256|0;p=i;i=i+128|0;o=p;l=i;i=i+128|0;n=l;k=i;i=i+1024|0;F=i;i=i+16|0;A=F;wa=i;i=i+16|0;B=wa;c[F>>2]=13;E=A+8|0;c[E>>2]=0;c[E+4>>2]=0;c[wa>>2]=13;wa=B+8|0;c[wa>>2]=0;c[wa+4>>2]=0;do{if((c[(Yu(b,171048,A,0)|0)>>2]|0)==1){ha=c[F>>2]|0;if((ha|0)!=1){c[ga>>2]=ha;c[q+4>>2]=1;Qe(0,172720,q);tc()}q=c[E>>2]|0;Of(A);if((c[(Yu(b,171136,A,0)|0)>>2]|0)!=1){Qe(-1,171160,fa);break}fa=c[F>>2]|0;if((fa|0)!=1){c[ea>>2]=fa;c[r+4>>2]=1;Qe(0,172720,r);tc()}r=c[E>>2]|0;Of(A);if((c[(Yu(b,171224,A,0)|0)>>2]|0)!=1){Qe(-1,171240,da);break}da=c[F>>2]|0;if((da|0)!=1){c[ca>>2]=da;c[s+4>>2]=1;Qe(0,172720,s);tc()}s=c[E>>2]|0;Of(A);do{if((c[(Yu(b,171368,A,0)|0)>>2]|0)==6){ca=c[F>>2]|0;if((ca|0)!=6){c[aa>>2]=ca;c[ba+4>>2]=6;Qe(0,172720,ba);tc()}aa=c[E>>2]|0;if((c[aa+12>>2]|0)<=5){break}ba=ut(aa,0,B)|0;aa=c[ba>>2]|0;if((aa+ -1|0)>>>0>=2){c[$>>2]=aa;c[_+4>>2]=1;c[_+8>>2]=2;Qe(0,172792,_);tc()}_=ba+8|0;if((aa|0)==1){t=+(c[_>>2]|0)}else{t=+h[_>>3]}Of(B);_=c[F>>2]|0;if((_|0)!=6){c[Z>>2]=_;c[Y+4>>2]=6;Qe(0,172720,Y);tc()}Z=ut(c[E>>2]|0,1,B)|0;Y=c[Z>>2]|0;if((Y+ -1|0)>>>0>=2){c[X>>2]=Y;c[W+4>>2]=1;c[W+8>>2]=2;Qe(0,172792,W);tc()}W=Z+8|0;if((Y|0)==1){u=+(c[W>>2]|0)}else{u=+h[W>>3]}Of(B);w=+lW(1.0,q)+-1.0;u=(u-t)/w;W=c[F>>2]|0;if((W|0)!=6){c[U>>2]=W;c[V+4>>2]=6;Qe(0,172720,V);tc()}V=ut(c[E>>2]|0,2,B)|0;U=c[V>>2]|0;if((U+ -1|0)>>>0>=2){c[S>>2]=U;c[T+4>>2]=1;c[T+8>>2]=2;Qe(0,172792,T);tc()}S=V+8|0;if((U|0)==1){v=+(c[S>>2]|0)}else{v=+h[S>>3]}Of(B);S=c[F>>2]|0;if((S|0)!=6){c[Q>>2]=S;c[R+4>>2]=6;Qe(0,172720,R);tc()}R=ut(c[E>>2]|0,3,B)|0;Q=c[R>>2]|0;if((Q+ -1|0)>>>0>=2){c[x>>2]=Q;c[y+4>>2]=1;c[y+8>>2]=2;Qe(0,172792,y);tc()}x=R+8|0;if((Q|0)==1){xa=+(c[x>>2]|0)}else{xa=+h[x>>3]}Of(B);w=(xa-v)/w;x=c[F>>2]|0;if((x|0)!=6){va=x;wa=z;c[wa>>2]=va;wa=G+4|0;c[wa>>2]=6;wa=172720;Qe(0,wa,G);tc()}x=(1<<r)+ -1|0;xa=+(x|0);Q=5;R=0;y=0;while(1){S=c[E>>2]|0;if(!((Q|0)<(c[S+12>>2]|0)&(y|0)<32)){pa=60;break}S=ut(S,R+4|0,B)|0;R=c[S>>2]|0;if((R+ -1|0)>>>0>=2){pa=48;break}S=S+8|0;if((R|0)==1){ya=+(c[S>>2]|0)}else{ya=+h[S>>3]}h[m+(y<<3)>>3]=ya;Of(B);R=c[F>>2]|0;if((R|0)!=6){pa=53;break}R=ut(c[E>>2]|0,Q,B)|0;Q=c[R>>2]|0;if((Q+ -1|0)>>>0>=2){pa=55;break}R=R+8|0;if((Q|0)==1){za=+(c[R>>2]|0)}else{za=+h[R>>3]}Of(B);h[j+(y<<3)>>3]=(za-ya)/xa;y=y+1|0;R=y<<1;Q=c[F>>2]|0;if((Q|0)==6){Q=R+5|0}else{pa=45;break}}if((pa|0)==45){wa=z;c[wa>>2]=Q;wa=G+4|0;c[wa>>2]=6;wa=172720;Qe(0,wa,G);tc()}else if((pa|0)==48){c[K>>2]=R;c[P+4>>2]=1;c[P+8>>2]=2;Qe(0,172792,P);tc()}else if((pa|0)==53){c[M>>2]=R;c[N+4>>2]=6;Qe(0,172720,N);tc()}else if((pa|0)==55){c[O>>2]=Q;c[L+4>>2]=1;c[L+8>>2]=2;Qe(0,172792,L);tc()}else if((pa|0)==60){Of(A);a:do{if((c[(Yu(b,170848,A,0)|0)>>2]|0)==5){z=0}else{if((c[F>>2]|0)!=6){wa=EH(A)|0;c[J>>2]=wa;if((wa|0)!=0){z=1;break}Of(A);wa=0;i=f;return wa|0}z=c[(c[E>>2]|0)+12>>2]|0;if((z|0)>32){Qe(-1,170864,H);wa=0;i=f;return wa|0}if((z|0)>0){G=6;H=0}else{break}while(1){if((G|0)!=6){pa=67;break}ut(c[E>>2]|0,H,B)|0;wa=EH(B)|0;c[g+(H<<2)>>2]=wa;if((wa|0)==0){break}Of(B);H=H+1|0;if((H|0)>=(z|0)){break a}G=c[F>>2]|0}if((pa|0)==67){c[C>>2]=G;c[D+4>>2]=6;Qe(0,172720,D);tc()}Of(A);Of(B);wa=0;i=f;return wa|0}}while(0);Of(A);A=FWFW(320)|0;c[j+4>>2]=a;c[j+8>>2]=0;c[j>>2]=171520;c[j+180>>2]=la;c[j+184>>2]=d;a=j+316|0;c[a>>2]=z;if((z|0)>0){k=0;do{c[j+188+(k<<2)>>2]=c[g+(k<<2)>>2];k=k+1|0;}while((k|0)<(c[a>>2]|0))}if(MA(j,b,e)|0){wa=j;i=f;return wa|0}if((j|0)==0){wa=0;i=f;return wa|0}fd[c[(c[j>>2]|0)+4>>2]&511](j);wa=0;i=f;return wa|0}}}while(0);Qe(-1,171376,I)}else{Qe(-1,171072,ha)}}while(0);Of(A);wa=0;i=f;return wa|0}function MA(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,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.0;j=i;C=i;i=i+8|0;p=i;i=i+8|0;v=i;i=i+8|0;t=v;y=i;i=i+8|0;x=y;A=i;i=i+8|0;B=A;D=i;i=i+8|0;E=D;J=i;i=i+8|0;G=i;i=i+16|0;F=G;I=i;i=i+8|0;H=I;L=i;i=i+8|0;K=L;M=i;i=i+8|0;z=i;i=i+16|0;g=z;w=i;i=i+16|0;k=w;s=i;i=i+16|0;l=s;r=i;i=i+16|0;m=r;q=i;i=i+16|0;n=q;c[z>>2]=13;u=g+8|0;c[u>>2]=0;c[u+4>>2]=0;c[w>>2]=13;o=k+8|0;c[o>>2]=0;c[o+4>>2]=0;Yu(d,170616,g,0)|0;N=Jy(g,e)|0;e=b+8|0;c[e>>2]=N;if((N|0)==0){Qe(-1,170632,M);Of(g);N=0;i=j;return N|0}Of(g);M=b+140|0;bX(b+12|0,0,129)|0;a:do{if((c[(Yu(d,170672,g,0)|0)>>2]|0)==6){N=c[z>>2]|0;if((N|0)!=6){c[L>>2]=N;c[K+4>>2]=6;Qe(0,172720,K);tc()}L=c[(c[u>>2]|0)+12>>2]|0;N=c[e>>2]|0;if((L|0)!=(jd[c[(c[N>>2]|0)+44>>2]&511](N)|0)){Qe(-1,170688,J);break}a[M]=1;N=c[e>>2]|0;if((jd[c[(c[N>>2]|0)+44>>2]&511](N)|0)>0){J=0}else{break}while(1){K=c[z>>2]|0;if((K|0)!=6){f=9;break}L=ut(c[u>>2]|0,J,k)|0;K=c[L>>2]|0;if((K+ -1|0)>>>0>=2){f=11;break}L=L+8|0;if((K|0)==1){O=+(c[L>>2]|0)}else{O=+h[L>>3]}c[b+12+(J<<2)>>2]=~~(O*65536.0);Of(k);J=J+1|0;N=c[e>>2]|0;if((J|0)>=(jd[c[(c[N>>2]|0)+44>>2]&511](N)|0)){break a}}if((f|0)==9){c[I>>2]=K;c[H+4>>2]=6;Qe(0,172720,H);tc()}else if((f|0)==11){c[G>>2]=K;c[F+4>>2]=1;c[F+8>>2]=2;Qe(0,172792,F);tc()}}}while(0);Of(g);F=b+168|0;G=b+160|0;H=b+152|0;I=b+144|0;b=b+176|0;bX(I|0,0,33)|0;do{if((c[(Yu(d,170112,g,0)|0)>>2]|0)==6){d=c[z>>2]|0;if((d|0)!=6){c[D>>2]=d;c[E+4>>2]=6;Qe(0,172720,E);tc()}d=c[u>>2]|0;if((c[d+12>>2]|0)!=4){Qe(-1,170784,C);break}c[s>>2]=13;E=l+8|0;c[E>>2]=0;c[E+4>>2]=0;c[r>>2]=13;D=m+8|0;c[D>>2]=0;c[D+4>>2]=0;c[q>>2]=13;C=n+8|0;c[C>>2]=0;c[C+4>>2]=0;ut(d,0,k)|0;d=c[z>>2]|0;if((d|0)!=6){c[A>>2]=d;c[B+4>>2]=6;Qe(0,172720,B);tc()}ut(c[u>>2]|0,1,l)|0;A=c[z>>2]|0;if((A|0)!=6){c[y>>2]=A;c[x+4>>2]=6;Qe(0,172720,x);tc()}ut(c[u>>2]|0,2,m)|0;x=c[z>>2]|0;if((x|0)!=6){c[v>>2]=x;c[t+4>>2]=6;Qe(0,172720,t);tc()}ut(c[u>>2]|0,3,n)|0;t=c[w>>2]|0;do{if((t+ -1|0)>>>0<2){s=c[s>>2]|0;if((s+ -1|0)>>>0>=2){f=44;break}r=c[r>>2]|0;if((r+ -1|0)>>>0>=2){f=44;break}q=c[q>>2]|0;if((q+ -1|0)>>>0>=2){f=44;break}a[b]=1;if((t|0)==1){O=+(c[o>>2]|0)}else{O=+h[o>>3]}h[I>>3]=O;if((s|0)==1){O=+(c[E>>2]|0)}else{O=+h[E>>3]}h[H>>3]=O;if((r|0)==1){O=+(c[D>>2]|0)}else{O=+h[D>>3]}h[G>>3]=O;if((q|0)==1){O=+(c[C>>2]|0)}else{O=+h[C>>3]}h[F>>3]=O}else{f=44}}while(0);if((f|0)==44){Qe(-1,170728,p)}Of(k);Of(l);Of(m);Of(n)}}while(0);Of(g);N=1;i=j;return N|0}function NA(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;c[b>>2]=170376;c[b+4>>2]=c[d+4>>2];f=c[d+8>>2]|0;c[b+8>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;f=0;do{c[b+12+(f<<2)>>2]=c[d+12+(f<<2)>>2];f=f+1|0;}while((f|0)<32);a[b+140|0]=a[d+140|0]&1;h[b+144>>3]=+h[d+144>>3];h[b+152>>3]=+h[d+152>>3];h[b+160>>3]=+h[d+160>>3];h[b+168>>3]=+h[d+168>>3];a[b+176|0]=a[d+176|0]&1;c[b>>2]=170824;h[b+184>>3]=+h[d+184>>3];h[b+192>>3]=+h[d+192>>3];h[b+200>>3]=+h[d+200>>3];h[b+208>>3]=+h[d+208>>3];h[b+216>>3]=+h[d+216>>3];h[b+224>>3]=+h[d+224>>3];h[b+232>>3]=+h[d+232>>3];h[b+240>>3]=+h[d+240>>3];h[b+248>>3]=+h[d+248>>3];h[b+256>>3]=+h[d+256>>3];g=c[d+392>>2]|0;f=b+392|0;c[f>>2]=g;if((g|0)>0){g=0}else{i=e;return}do{j=c[d+264+(g<<2)>>2]|0;c[b+264+(g<<2)>>2]=jd[c[(c[j>>2]|0)+8>>2]&511](j)|0;g=g+1|0;}while((g|0)<(c[f>>2]|0));i=e;return}function OA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=170824;d=a+392|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+264+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function PA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=170824;d=a+392|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+264+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function QA(a){a=a|0;var b=0,c=0;c=i;b=FW(400)|0;NA(b,a);i=c;return b|0}function RA(a,b,d,e){a=a|0;b=+b;d=+d;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0;g=i;k=i;i=i+16|0;j=k;l=i;i=i+256|0;f=l;bX(l|0,0,256)|0;h[k>>3]=b;h[j+8>>3]=d;k=a+392|0;if((c[k>>2]|0)>0){l=0;while(1){m=c[a+264+(l<<2)>>2]|0;Gd[c[(c[m>>2]|0)+16>>2]&255](m,j,f+(l<<3)|0);l=l+1|0;if((l|0)<(c[k>>2]|0)){}else{j=0;break}}}else{j=0}do{c[e+(j<<2)>>2]=~~(+h[f+(j<<3)>>3]*65536.0);j=j+1|0;}while((j|0)<32);i=g;return}function SA(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;c[b>>2]=170376;c[b+4>>2]=c[d+4>>2];f=c[d+8>>2]|0;c[b+8>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;f=0;do{c[b+12+(f<<2)>>2]=c[d+12+(f<<2)>>2];f=f+1|0;}while((f|0)<32);a[b+140|0]=a[d+140|0]&1;h[b+144>>3]=+h[d+144>>3];h[b+152>>3]=+h[d+152>>3];h[b+160>>3]=+h[d+160>>3];h[b+168>>3]=+h[d+168>>3];a[b+176|0]=a[d+176|0]&1;c[b>>2]=170920;h[b+184>>3]=+h[d+184>>3];h[b+192>>3]=+h[d+192>>3];h[b+200>>3]=+h[d+200>>3];h[b+208>>3]=+h[d+208>>3];h[b+216>>3]=+h[d+216>>3];h[b+224>>3]=+h[d+224>>3];g=c[d+360>>2]|0;f=b+360|0;c[f>>2]=g;if((g|0)>0){g=0}else{g=d+364|0;g=a[g]|0;g=g&1;f=b+364|0;a[f]=g;f=d+365|0;f=a[f]|0;f=f&1;g=b+365|0;a[g]=f;i=e;return}do{j=c[d+232+(g<<2)>>2]|0;c[b+232+(g<<2)>>2]=jd[c[(c[j>>2]|0)+8>>2]&511](j)|0;g=g+1|0;}while((g|0)<(c[f>>2]|0));j=d+364|0;j=a[j]|0;j=j&1;g=b+364|0;a[g]=j;g=d+365|0;g=a[g]|0;g=g&1;j=b+365|0;a[j]=g;i=e;return}function TA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=170920;d=a+360|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+232+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function UA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=170920;d=a+360|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+232+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function VA(a){a=a|0;var b=0,c=0;c=i;b=FW(368)|0;SA(b,a);i=c;return b|0}function WA(a,b,d){a=a|0;b=+b;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;f=i;k=i;i=i+8|0;g=k;j=i;i=i+256|0;e=j;h[k>>3]=b;bX(j|0,0,256)|0;j=a+360|0;if((c[j>>2]|0)>0){k=0;while(1){l=c[a+232+(k<<2)>>2]|0;Gd[c[(c[l>>2]|0)+16>>2]&255](l,g,e+(k<<3)|0);k=k+1|0;if((k|0)<(c[j>>2]|0)){}else{a=0;break}}}else{a=0}do{c[d+(a<<2)>>2]=~~(+h[e+(a<<3)>>3]*65536.0);a=a+1|0;}while((a|0)<32);i=f;return}function XA(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;c[b>>2]=170376;c[b+4>>2]=c[d+4>>2];f=c[d+8>>2]|0;c[b+8>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;f=0;do{c[b+12+(f<<2)>>2]=c[d+12+(f<<2)>>2];f=f+1|0;}while((f|0)<32);a[b+140|0]=a[d+140|0]&1;h[b+144>>3]=+h[d+144>>3];h[b+152>>3]=+h[d+152>>3];h[b+160>>3]=+h[d+160>>3];h[b+168>>3]=+h[d+168>>3];a[b+176|0]=a[d+176|0]&1;c[b>>2]=171008;h[b+184>>3]=+h[d+184>>3];h[b+192>>3]=+h[d+192>>3];h[b+200>>3]=+h[d+200>>3];h[b+208>>3]=+h[d+208>>3];h[b+216>>3]=+h[d+216>>3];h[b+224>>3]=+h[d+224>>3];h[b+232>>3]=+h[d+232>>3];h[b+240>>3]=+h[d+240>>3];g=c[d+376>>2]|0;f=b+376|0;c[f>>2]=g;if((g|0)>0){g=0}else{g=d+380|0;g=a[g]|0;g=g&1;f=b+380|0;a[f]=g;f=d+381|0;f=a[f]|0;f=f&1;g=b+381|0;a[g]=f;i=e;return}do{j=c[d+248+(g<<2)>>2]|0;c[b+248+(g<<2)>>2]=jd[c[(c[j>>2]|0)+8>>2]&511](j)|0;g=g+1|0;}while((g|0)<(c[f>>2]|0));j=d+380|0;j=a[j]|0;j=j&1;g=b+380|0;a[g]=j;g=d+381|0;g=a[g]|0;g=g&1;j=b+381|0;a[j]=g;i=e;return}function YA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=171008;d=a+376|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+248+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function ZA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=171008;d=a+376|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+248+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function _A(a){a=a|0;var b=0,c=0;c=i;b=FWFW(328)|0;aB(b,a);i=c;return b|0}function eB(a,b,d,e,f,g,j,k,l,m,n){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;p=i;s=i;i=i+8|0;r=s;o=i;i=i+256|0;q=a+324|0;if((c[q>>2]|0)>0){Ya(171432,171456,3392,171472)}u=a+188|0;v=c[(c[u>>2]|0)+(b*12|0)>>2]|0;t=a+180|0;h[d>>3]=+h[(c[t>>2]|0)+(v*144|0)>>3];h[e>>3]=+h[(c[t>>2]|0)+(v*144|0)+8>>3];e=c[t>>2]|0;if((c[q>>2]|0)>0){h[s>>3]=+(c[e+(v*144|0)+16>>2]|0)*152587890625.0e-16;v=0;while(1){d=c[a+196+(v<<2)>>2]|0;Gd[c[(c[d>>2]|0)+16>>2]&255](d,r,o+(v<<3)|0);v=v+1|0;if((v|0)<(c[q>>2]|0)){}else{v=0;break}}do{c[f+(v<<2)>>2]=~~(+h[o+(v<<3)>>3]*65536.0);v=v+1|0;}while((v|0)<32)}else{$W(f|0,e+(v*144|0)+16|0,128)|0}f=c[(c[u>>2]|0)+(b*12|0)+4>>2]|0;h[g>>3]=+h[(c[t>>2]|0)+(f*144|0)>>3];h[j>>3]=+h[(c[t>>2]|0)+(f*144|0)+8>>3];j=c[t>>2]|0;if((c[q>>2]|0)>0){h[s>>3]=+(c[j+(f*144|0)+16>>2]|0)*152587890625.0e-16;j=0;while(1){d=c[a+196+(j<<2)>>2]|0;Gd[c[(c[d>>2]|0)+16>>2]&255](d,r,o+(j<<3)|0);j=j+1|0;if((j|0)<(c[q>>2]|0)){}else{j=0;break}}do{c[k+(j<<2)>>2]=~~(+h[o+(j<<3)>>3]*65536.0);j=j+1|0;}while((j|0)<32)}else{$W(k|0,j+(f*144|0)+16|0,128)|0}k=c[(c[u>>2]|0)+(b*12|0)+8>>2]|0;h[l>>3]=+h[(c[t>>2]|0)+(k*144|0)>>3];h[m>>3]=+h[(c[t>>2]|0)+(k*144|0)+8>>3];t=c[t>>2]|0;if((c[q>>2]|0)<=0){$W(n|0,t+(k*144|0)+16|0,128)|0;i=p;return}h[s>>3]=+(c[t+(k*144|0)+16>>2]|0)*152587890625.0e-16;s=0;while(1){d=c[a+196+(s<<2)>>2]|0;Gd[c[(c[d>>2]|0)+16>>2]&255](d,r,o+(s<<3)|0);s=s+1|0;if((s|0)<(c[q>>2]|0)){}else{a=0;break}}do{c[n+(a<<2)>>2]=~~(+h[o+(a<<3)>>3]*65536.0);a=a+1|0;}while((a|0)<32);i=p;return}function fB(a,b,d){a=a|0;b=+b;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;f=i;j=i;i=i+8|0;g=j;e=i;i=i+256|0;h[j>>3]=b;j=a+324|0;if((c[j>>2]|0)>0){k=0;while(1){l=c[a+196+(k<<2)>>2]|0;Gd[c[(c[l>>2]|0)+16>>2]&255](l,g,e+(k<<3)|0);k=k+1|0;if((k|0)<(c[j>>2]|0)){}else{a=0;break}}}else{a=0}do{c[d+(a<<2)>>2]=~~(+h[e+(a<<3)>>3]*65536.0);a=a+1|0;}while((a|0)<32);i=f;return}function gB(a,b,d,e,f,g,j,k,l,m,n){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0;if((c[a+324>>2]|0)>0){p=a+188|0;q=c[(c[p>>2]|0)+(b*12|0)>>2]|0;o=a+180|0;h[d>>3]=+h[(c[o>>2]|0)+(q*144|0)>>3];h[e>>3]=+h[(c[o>>2]|0)+(q*144|0)+8>>3];h[f>>3]=+(c[(c[o>>2]|0)+(q*144|0)+16>>2]|0)*152587890625.0e-16;a=c[(c[p>>2]|0)+(b*12|0)+4>>2]|0;h[g>>3]=+h[(c[o>>2]|0)+(a*144|0)>>3];h[j>>3]=+h[(c[o>>2]|0)+(a*144|0)+8>>3];h[k>>3]=+(c[(c[o>>2]|0)+(a*144|0)+16>>2]|0)*152587890625.0e-16;a=c[(c[p>>2]|0)+(b*12|0)+8>>2]|0;h[l>>3]=+h[(c[o>>2]|0)+(a*144|0)>>3];h[m>>3]=+h[(c[o>>2]|0)+(a*144|0)+8>>3];h[n>>3]=+(c[(c[o>>2]|0)+(a*144|0)+16>>2]|0)*152587890625.0e-16;i=i;return}else{Ya(171488,171456,3455,171472)}}function hB(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;c[b>>2]=170376;c[b+4>>2]=c[d+4>>2];f=c[d+8>>2]|0;c[b+8>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;f=0;do{c[b+12+(f<<2)>>2]=c[d+12+(f<<2)>>2];f=f+1|0;}while((f|0)<32);a[b+140|0]=a[d+140|0]&1;h[b+144>>3]=+h[d+144>>3];h[b+152>>3]=+h[d+152>>3];h[b+160>>3]=+h[d+160>>3];h[b+168>>3]=+h[d+168>>3];a[b+176|0]=a[d+176|0]&1;c[b>>2]=171520;f=c[d+184>>2]|0;g=b+184|0;c[g>>2]=f;f=ye(f,1280)|0;c[b+180>>2]=f;$W(f|0,c[d+180>>2]|0,(c[g>>2]|0)*1280|0)|0;g=c[d+316>>2]|0;f=b+316|0;c[f>>2]=g;if((g|0)>0){g=0}else{i=e;return}do{j=c[d+188+(g<<2)>>2]|0;c[b+188+(g<<2)>>2]=jd[c[(c[j>>2]|0)+8>>2]&511](j)|0;g=g+1|0;}while((g|0)<(c[f>>2]|0));i=e;return}function iB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=171520;Fe(c[a+180>>2]|0);d=a+316|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+188+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function jB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=171520;Fe(c[a+180>>2]|0);d=a+316|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+188+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function kB(a,b,d){a=a|0;b=+b;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;f=i;j=i;i=i+8|0;g=j;e=i;i=i+256|0;h[j>>3]=b;j=a+316|0;if((c[j>>2]|0)>0){k=0;while(1){l=c[a+188+(k<<2)>>2]|0;Gd[c[(c[l>>2]|0)+16>>2]&255](l,g,e+(k<<3)|0);k=k+1|0;if((k|0)<(c[j>>2]|0)){}else{a=0;break}}}else{a=0}do{c[d+(a<<2)>>2]=~~(+h[e+(a<<3)>>3]*65536.0);a=a+1|0;}while((a|0)<32);i=f;return}function lB(a){a=a|0;var b=0,c=0;c=i;b=FW(320)|0;hB(b,a);i=c;return b|0}function mB(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0.0,C=0,D=0.0;j=i;p=i;i=i+8|0;v=p;u=i;i=i+8|0;s=u;q=i;i=i+16|0;t=q;n=i;i=i+256|0;m=n;l=i;i=i+256|0;c[q>>2]=13;w=t+8|0;c[w>>2]=0;c[w+4>>2]=0;r=b+664|0;a[r]=1;c[b+4>>2]=e;e=(1<<e)+ -1|0;c[b>>2]=g;k=(e|0)>255?255:e;e=b+148|0;bX(b+20|0,0,132)|0;x=c[f>>2]|0;a:do{if((x|0)==5){c[b+8>>2]=jd[c[(c[g>>2]|0)+44>>2]&511](g)|0;C=c[b>>2]|0;Jd[c[(c[C>>2]|0)+52>>2]&63](C,b+152|0,b+408|0,k)}else if((x|0)==6){x=f+8|0;C=(c[(c[x>>2]|0)+12>>2]|0)/2|0;y=b+8|0;c[y>>2]=C;if((C|0)!=(jd[c[(c[g>>2]|0)+44>>2]&511](g)|0)){o=60;break}if((c[y>>2]|0)<=0){break}g=0;while(1){z=g<<1;A=c[f>>2]|0;if((A|0)!=6){o=7;break}ut(c[x>>2]|0,z,t)|0;A=c[q>>2]|0;if((A+ -1|0)>>>0>=2){o=59;break}if((A|0)==1){B=+(c[w>>2]|0)}else{B=+h[w>>3]}A=b+152+(g<<3)|0;h[A>>3]=B;Of(t);C=c[f>>2]|0;if((C|0)!=6){o=13;break}ut(c[x>>2]|0,z|1,t)|0;z=c[q>>2]|0;if((z+ -1|0)>>>0>=2){o=59;break}if((z|0)==1){B=+(c[w>>2]|0)}else{B=+h[w>>3]}h[b+408+(g<<3)>>3]=B- +h[A>>3];Of(t);g=g+1|0;if((g|0)>=(c[y>>2]|0)){break a}}if((o|0)==7){c[u>>2]=A;c[s+4>>2]=6;Qe(0,172720,s);tc()}else if((o|0)==13){c[p>>2]=C;c[v+4>>2]=6;Qe(0,172720,v);tc()}else if((o|0)==59){Of(t);o=60;break}}else{o=60}}while(0);if((o|0)==60){a[r]=0;i=j;return}r=b+12|0;c[r>>2]=0;p=b+16|0;c[p>>2]=0;q=c[b>>2]|0;q=jd[c[(c[q>>2]|0)+12>>2]&511](q)|0;if((q|0)==7){n=c[b>>2]|0;C=c[n+4>>2]|0;c[r>>2]=C;q=c[n+8>>2]|0;c[p>>2]=jd[c[(c[C>>2]|0)+44>>2]&511](C)|0;n=c[n+12>>2]|0;C=c[r>>2]|0;Jd[c[(c[C>>2]|0)+52>>2]&63](C,m,l,q);C=c[r>>2]|0;if(jd[c[(c[C>>2]|0)+40>>2]&511](C)|0){o=22}else{C=c[r>>2]|0;if(jd[c[(c[C>>2]|0)+36>>2]&511](C)|0){o=22}else{r=0}}if((o|0)==22){c[e>>2]=ye(k+1|0,c[p>>2]|0)|0;r=1}if((c[p>>2]|0)<=0){i=j;return}s=k+1|0;o=(k|0)<0;v=b+152|0;u=b+408|0;B=+(k|0);x=0;do{y=b+20+(x<<2)|0;c[y>>2]=ye(s,4)|0;if(!o){f=m+(x<<3)|0;w=l+(x<<3)|0;t=0;while(1){g=~~(+h[v>>3]+ +(t|0)*+h[u>>3]/B+.5);if((g|0)<0){g=0}else{g=(g|0)>(q|0)?q:g}D=+(d[n+((da(c[p>>2]|0,g)|0)+x)|0]|0|0)/255.0;D=+h[f>>3]+D*+h[w>>3];c[(c[y>>2]|0)+(t<<2)>>2]=~~(D*65536.0);if(r){C=(da(c[p>>2]|0,t)|0)+x|0;a[(c[e>>2]|0)+C|0]=~~(D*255.0)}if((t|0)<(k|0)){t=t+1|0}else{break}}}x=x+1|0;}while((x|0)<(c[p>>2]|0));i=j;return}else if((q|0)==8){q=c[b>>2]|0;C=c[q+8>>2]|0;c[r>>2]=C;c[p>>2]=jd[c[(c[C>>2]|0)+44>>2]&511](C)|0;q=c[q+12>>2]|0;C=c[r>>2]|0;if(jd[c[(c[C>>2]|0)+40>>2]&511](C)|0){o=35}else{C=c[r>>2]|0;if(jd[c[(c[C>>2]|0)+36>>2]&511](C)|0){o=35}else{r=0}}if((o|0)==35){c[e>>2]=ye(k+1|0,c[p>>2]|0)|0;r=1}if((c[p>>2]|0)<=0){i=j;return}u=k+1|0;o=(k|0)<0;s=b+152|0;t=b+408|0;B=+(k|0);f=0;do{v=b+20+(f<<2)|0;c[v>>2]=ye(u,4)|0;if(!o){w=l+(f<<3)|0;x=0;while(1){h[n>>3]=+h[s>>3]+ +(x|0)*+h[t>>3]/B;Gd[c[(c[q>>2]|0)+16>>2]&255](q,m,l);c[(c[v>>2]|0)+(x<<2)>>2]=~~(+h[w>>3]*65536.0);if(r){C=(da(c[p>>2]|0,x)|0)+f|0;a[(c[e>>2]|0)+C|0]=~~(+h[w>>3]*255.0)}if((x|0)<(k|0)){x=x+1|0}else{break}}}f=f+1|0;}while((f|0)<(c[p>>2]|0));i=j;return}else{C=c[b>>2]|0;do{if(jd[c[(c[C>>2]|0)+40>>2]&511](C)|0){o=47}else{C=c[b>>2]|0;if(jd[c[(c[C>>2]|0)+36>>2]&511](C)|0){o=47;break}m=b+8|0;l=0}}while(0);if((o|0)==47){m=b+8|0;c[e>>2]=ye(k+1|0,c[m>>2]|0)|0;l=1}if((c[m>>2]|0)<=0){i=j;return}q=k+1|0;r=(k|0)<0;B=+(k|0);p=0;do{t=ye(q,4)|0;f=b+20+(p<<2)|0;c[f>>2]=t;b:do{if(!r){o=b+152+(p<<3)|0;n=b+408+(p<<3)|0;s=0;while(1){D=+h[o>>3]+ +(s|0)*+h[n>>3]/B;c[t+(s<<2)>>2]=~~(D*65536.0);if(l){t=~~(D*255.0+.5);if((t|0)<0){t=0}else{t=(t|0)>255?-1:t&255}C=(da(c[m>>2]|0,s)|0)+p|0;a[(c[e>>2]|0)+C|0]=t}if((s|0)>=(k|0)){break b}t=c[f>>2]|0;s=s+1|0}}}while(0);p=p+1|0;}while((p|0)<(c[m>>2]|0));i=j;return}}function nB(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)==0){d=0}else{fd[c[(c[d>>2]|0)+4>>2]&511](d);d=0}do{Fe(c[a+20+(d<<2)>>2]|0);d=d+1|0;}while((d|0)<32);Fe(c[a+148>>2]|0);i=b;return}function oB(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;h=i;i=i+128|0;j=c[b+12>>2]|0;if((j|0)==0){k=c[b+8>>2]|0;if((k|0)>0){j=0;do{c[h+(j<<2)>>2]=c[(c[b+20+(j<<2)>>2]|0)+((d[e+j|0]|0)<<2)>>2];j=j+1|0;}while((j|0)<(k|0))}l=c[b>>2]|0;Gd[c[(c[l>>2]|0)+16>>2]&255](l,h,f);i=g;return}k=c[b+16>>2]|0;if((k|0)>0){e=a[e]|0;l=0;do{c[h+(l<<2)>>2]=c[(c[b+20+(l<<2)>>2]|0)+((e&255)<<2)>>2];l=l+1|0;}while((l|0)<(k|0))}Gd[c[(c[j>>2]|0)+16>>2]&255](j,h,f);i=g;return}function pB(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;h=i;i=i+128|0;j=c[b+12>>2]|0;if((j|0)==0){k=c[b+8>>2]|0;if((k|0)>0){j=0;do{c[h+(j<<2)>>2]=c[(c[b+20+(j<<2)>>2]|0)+((d[e+j|0]|0)<<2)>>2];j=j+1|0;}while((j|0)<(k|0))}l=c[b>>2]|0;Gd[c[(c[l>>2]|0)+20>>2]&255](l,h,f);i=g;return}k=c[b+16>>2]|0;if((k|0)>0){e=a[e]|0;l=0;do{c[h+(l<<2)>>2]=c[(c[b+20+(l<<2)>>2]|0)+((e&255)<<2)>>2];l=l+1|0;}while((l|0)<(k|0))}Gd[c[(c[j>>2]|0)+20>>2]&255](j,h,f);i=g;return}function qB(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;h=i;k=i;i=i+128|0;l=i;i=i+16|0;m=l;j=b+12|0;o=c[j>>2]|0;do{if((o|0)==0){n=5}else{if(jd[c[(c[o>>2]|0)+36>>2]&511](o)|0){k=b;break}else{if((c[j>>2]|0)==0){n=5;break}else{n=6;break}}}}while(0);if((n|0)==5){v=c[b>>2]|0;if(jd[c[(c[v>>2]|0)+36>>2]&511](v)|0){k=b}else{n=6}}if((n|0)==6){if((g|0)<=0){i=h;return}q=b+8|0;n=m+4|0;p=m+8|0;o=b+16|0;r=0;while(1){s=c[j>>2]|0;if((s|0)==0){t=c[q>>2]|0;if((t|0)>0){s=0;do{c[k+(s<<2)>>2]=c[(c[b+20+(s<<2)>>2]|0)+((d[e+s|0]|0)<<2)>>2];s=s+1|0;}while((s|0)<(t|0))}v=c[b>>2]|0;Gd[c[(c[v>>2]|0)+20>>2]&255](v,k,m)}else{v=c[o>>2]|0;if((v|0)>0){t=d[e]|0;u=0;do{c[k+(u<<2)>>2]=c[(c[b+20+(u<<2)>>2]|0)+(t<<2)>>2];u=u+1|0;}while((u|0)<(v|0))}Gd[c[(c[s>>2]|0)+20>>2]&255](s,k,m)}c[f+(r<<2)>>2]=(((c[n>>2]|0)*255|0)+32768|0)>>>8&65280|((c[l>>2]|0)*255|0)+32768&16711680|(((c[p>>2]|0)*255|0)+32768|0)>>>16&255;r=r+1|0;if((r|0)>=(g|0)){break}e=e+(c[q>>2]|0)|0}i=h;return}v=c[k>>2]|0;if(((jd[c[(c[v>>2]|0)+12>>2]&511](v)|0)+ -7|0)>>>0>=2){if((g|0)>0){j=b+8|0;b=b+148|0;o=c[j>>2]|0;m=e;l=0;do{if((o|0)>0){n=0;while(1){o=(da(d[m]|0,o)|0)+n|0;a[m]=a[(c[b>>2]|0)+o|0]|0;m=m+1|0;n=n+1|0;o=c[j>>2]|0;if((n|0)<(o|0)){}else{break}}}l=l+1|0;}while((l|0)<(g|0))}v=c[k>>2]|0;Jd[c[(c[v>>2]|0)+32>>2]&63](v,e,f,g);i=h;return}k=b+16|0;l=ye(g,c[k>>2]|0)|0;if((g|0)>0){b=b+148|0;o=c[k>>2]|0;m=0;do{if((o|0)>0){n=e+m|0;p=0;while(1){v=(da(d[n]|0,o)|0)+p|0;a[l+((da(o,m)|0)+p)|0]=a[(c[b>>2]|0)+v|0]|0;p=p+1|0;o=c[k>>2]|0;if((p|0)<(o|0)){}else{break}}}m=m+1|0;}while((m|0)<(g|0))}v=c[j>>2]|0;Jd[c[(c[v>>2]|0)+32>>2]&63](v,l,f,g);Fe(l);i=h;return}function rB(b,d,e){b=b|0;d=+d;e=+e;var f=0,g=0,j=0,k=0,l=0,m=0,n=0;g=i;f=b+12|0;k=c[f>>2]|0;j=b+16|0;l=c[j>>2]|0;if((k|0)<(l|0)){l=b;j=b+4|0;b=b+8|0}else{n=l+16|0;c[j>>2]=n;c[b>>2]=Ce(c[b>>2]|0,n,8)|0;n=b+4|0;c[n>>2]=Ce(c[n>>2]|0,c[j>>2]|0,8)|0;m=b+8|0;c[m>>2]=Ce(c[m>>2]|0,c[j>>2]|0,1)|0;k=c[f>>2]|0;l=b;j=n;b=m}h[(c[l>>2]|0)+(k<<3)>>3]=d;h[(c[j>>2]|0)+(c[f>>2]<<3)>>3]=e;a[(c[b>>2]|0)+(c[f>>2]|0)|0]=0;c[f>>2]=(c[f>>2]|0)+1;i=g;return}function sB(b,d,e,f,g,j,k){b=b|0;d=+d;e=+e;f=+f;g=+g;j=+j;k=+k;var l=0,m=0,n=0,o=0,p=0,q=0;m=i;l=b+12|0;p=c[l>>2]|0;o=b+16|0;n=c[o>>2]|0;if((p+3|0)>(n|0)){n=n+16|0;c[o>>2]=n;c[b>>2]=Ce(c[b>>2]|0,n,8)|0;n=b+4|0;c[n>>2]=Ce(c[n>>2]|0,c[o>>2]|0,8)|0;q=b+8|0;c[q>>2]=Ce(c[q>>2]|0,c[o>>2]|0,1)|0;p=c[l>>2]|0;o=b;b=q}else{o=b;n=b+4|0;b=b+8|0}h[(c[o>>2]|0)+(p<<3)>>3]=d;h[(c[n>>2]|0)+(c[l>>2]<<3)>>3]=e;h[(c[o>>2]|0)+((c[l>>2]|0)+1<<3)>>3]=f;h[(c[n>>2]|0)+((c[l>>2]|0)+1<<3)>>3]=g;h[(c[o>>2]|0)+((c[l>>2]|0)+2<<3)>>3]=j;h[(c[n>>2]|0)+((c[l>>2]|0)+2<<3)>>3]=k;a[(c[b>>2]|0)+((c[l>>2]|0)+1)|0]=1;a[(c[b>>2]|0)+(c[l>>2]|0)|0]=1;a[(c[b>>2]|0)+((c[l>>2]|0)+2)|0]=0;c[l>>2]=(c[l>>2]|0)+3;i=m;return}function tB(b,d,e,f,g,j,k){b=b|0;d=d|0;e=+e;f=+f;g=g|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0;l=i;a[b]=d&1;h[b+8>>3]=e;h[b+16>>3]=f;c[b+32>>2]=k;d=b+28|0;c[d>>2]=j;b=b+24|0;c[b>>2]=ye(k,4)|0;if((c[d>>2]|0)>0){k=0}else{i=l;return}do{m=c[g+(k<<2)>>2]|0;j=FW(24)|0;o=c[m+16>>2]|0;c[j+16>>2]=o;n=c[m+12>>2]|0;c[j+12>>2]=n;r=ye(o,8)|0;c[j>>2]=r;q=ye(o,8)|0;c[j+4>>2]=q;o=ye(o,1)|0;c[j+8>>2]=o;p=n<<3;$W(r|0,c[m>>2]|0,p|0)|0;$W(q|0,c[m+4>>2]|0,p|0)|0;$W(o|0,c[m+8>>2]|0,n|0)|0;a[j+20|0]=a[m+20|0]&1;c[(c[b>>2]|0)+(k<<2)>>2]=j;k=k+1|0;}while((k|0)<(c[d>>2]|0));i=l;return}function uB(b,c,d){b=b|0;c=+c;d=+d;a[b]=1;h[b+8>>3]=c;h[b+16>>3]=d;i=i;return}function vB(b,d,e){b=b|0;d=+d;e=+e;var f=0,g=0,j=0,k=0,l=0,m=0,n=0.0,o=0,p=0.0;f=i;g=b+28|0;j=c[g>>2]|0;if((a[b]&1)==0){l=j;k=b+24|0;l=l+ -1|0;k=c[k>>2]|0;l=l<<2;l=k+l|0;l=c[l>>2]|0;rB(l,d,e);i=f;return}k=b+32|0;l=c[k>>2]|0;if((j|0)<(l|0)){j=b+24|0}else{l=l+16|0;c[k>>2]=l;j=b+24|0;c[j>>2]=Ce(c[j>>2]|0,l,4)|0}l=FW(24)|0;p=+h[b+8>>3];n=+h[b+16>>3];c[l+16>>2]=16;o=ye(16,8)|0;c[l>>2]=o;m=l+4|0;c[m>>2]=ye(16,8)|0;k=l+8|0;c[k>>2]=ye(16,1)|0;c[l+12>>2]=1;h[o>>3]=p;h[c[m>>2]>>3]=n;a[c[k>>2]|0]=0;a[l+20|0]=0;c[(c[j>>2]|0)+(c[g>>2]<<2)>>2]=l;l=(c[g>>2]|0)+1|0;c[g>>2]=l;a[b]=0;k=j;l=l+ -1|0;k=c[k>>2]|0;l=l<<2;l=k+l|0;l=c[l>>2]|0;rB(l,d,e);i=f;return}function wB(b,d,e,f,g,j,k){b=b|0;d=+d;e=+e;f=+f;g=+g;j=+j;k=+k;var l=0,m=0,n=0,o=0,p=0,q=0,r=0.0,s=0,t=0.0;m=i;l=b+28|0;n=c[l>>2]|0;if((a[b]&1)==0){p=n;o=b+24|0;p=p+ -1|0;o=c[o>>2]|0;p=p<<2;p=o+p|0;p=c[p>>2]|0;sB(p,d,e,f,g,j,k);i=m;return}o=b+32|0;p=c[o>>2]|0;if((n|0)<(p|0)){n=b+24|0}else{p=p+16|0;c[o>>2]=p;n=b+24|0;c[n>>2]=Ce(c[n>>2]|0,p,4)|0}p=FW(24)|0;t=+h[b+8>>3];r=+h[b+16>>3];c[p+16>>2]=16;s=ye(16,8)|0;c[p>>2]=s;q=p+4|0;c[q>>2]=ye(16,8)|0;o=p+8|0;c[o>>2]=ye(16,1)|0;c[p+12>>2]=1;h[s>>3]=t;h[c[q>>2]>>3]=r;a[c[o>>2]|0]=0;a[p+20|0]=0;c[(c[n>>2]|0)+(c[l>>2]<<2)>>2]=p;p=(c[l>>2]|0)+1|0;c[l>>2]=p;a[b]=0;o=n;p=p+ -1|0;o=c[o>>2]|0;p=p<<2;p=o+p|0;p=c[p>>2]|0;sB(p,d,e,f,g,j,k);i=m;return}function xB(b){b=b|0;var d=0,e=0,f=0.0,g=0,j=0,k=0.0,l=0,m=0,n=0;d=i;e=b+28|0;j=c[e>>2]|0;if((a[b]&1)==0){g=b+24|0}else{g=b+32|0;l=c[g>>2]|0;if((j|0)<(l|0)){g=b+24|0}else{l=l+16|0;c[g>>2]=l;g=b+24|0;c[g>>2]=Ce(c[g>>2]|0,l,4)|0}j=FWFW(4)|0;c[f>>2]=168128;c[b+116>>2]=f;f=FW(4)|0;c[f>>2]=168128;c[b+120>>2]=f;c[b+124>>2]=0;c[b+252>>2]=0;c[b+380>>2]=0;c[b+384>>2]=0;c[b+388>>2]=0;h[b+392>>3]=1.0;h[b+400>>3]=1.0;a[b+408|0]=0;a[b+409|0]=0;bX(b+412|0,0,16)|0;h[b+432>>3]=1.0;bX(b+440|0,0,16)|0;c[b+456>>2]=1;c[b+460>>2]=0;c[b+464>>2]=0;h[b+472>>3]=10.0;a[b+480|0]=0;c[b+484>>2]=0;h[b+488>>3]=0.0;h[b+496>>3]=1.0;bX(b+504|0,0,16)|0;h[b+520>>3]=1.0;bX(b+528|0,0,32)|0;h[b+560>>3]=1.0;bX(b+568|0,0,20)|0;f=FW(40)|0;a[f]=0;c[f+32>>2]=16;c[f+28>>2]=0;bX(f+8|0,0,16)|0;c[f+24>>2]=ye(16,4)|0;c[b+588>>2]=f;bX(b+592|0,0,48)|0;h[b+640>>3]=+h[b+96>>3];h[b+648>>3]=+h[b+104>>3];c[b+656>>2]=0;i=n;return}function EB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;b=i;d=c[a+116>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+120>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+380>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+384>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+412>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+416>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+420>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+424>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}Fe(c[a+440>>2]|0);d=c[a+588>>2]|0;if((d|0)!=0){f=d+28|0;g=c[f>>2]|0;e=d+24|0;j=c[e>>2]|0;if((g|0)>0){h=0;do{k=c[j+(h<<2)>>2]|0;if((k|0)!=0){Fe(c[k>>2]|0);Fe(c[k+4>>2]|0);Fe(c[k+8>>2]|0);HW(k);j=c[e>>2]|0;g=c[f>>2]|0}h=h+1|0;}while((h|0)<(g|0))}Fe(j);HW(d)}d=c[a+656>>2]|0;if((d|0)!=0){EB(d);HW(d)}a=c[a+484>>2]|0;if((a|0)==0){i=b;return}Yx(a);i=b;return}function FB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;$W(a|0,b|0,664)|0;e=a+116|0;if((c[e>>2]|0)!=0){f=c[b+116>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+120|0;if((c[e>>2]|0)!=0){f=c[b+120>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+380|0;if((c[e>>2]|0)!=0){f=c[b+380>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+384|0;if((c[e>>2]|0)!=0){f=c[b+384>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+412|0;if((c[e>>2]|0)!=0){f=c[b+412>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+416|0;if((c[e>>2]|0)!=0){f=c[b+416>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+420|0;if((c[e>>2]|0)!=0){f=c[b+420>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+424|0;if((c[e>>2]|0)!=0){f=c[b+424>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+444|0;f=c[e>>2]|0;if((f|0)>0){f=ye(f,8)|0;c[a+440>>2]=f;$W(f|0,c[b+440>>2]|0,c[e>>2]<<3|0)|0}b=c[a+484>>2]|0;if((b|0)==0){f=a+656|0;c[f>>2]=0;i=d;return}Xx(b);f=a+656|0;c[f>>2]=0;i=d;return}function GB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;a=a+588|0;e=c[a>>2]|0;if((e|0)==0){l=a;c[l>>2]=b;i=d;return}g=e+28|0;h=c[g>>2]|0;f=e+24|0;k=c[f>>2]|0;if((h|0)>0){j=0;do{l=c[k+(j<<2)>>2]|0;if((l|0)!=0){Fe(c[l>>2]|0);Fe(c[l+4>>2]|0);Fe(c[l+8>>2]|0);HW(l);k=c[f>>2]|0;h=c[g>>2]|0}j=j+1|0;}while((j|0)<(h|0))}Fe(k);HW(e);l=a;c[l>>2]=b;i=d;return}function HB(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.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0;f=i;q=+h[a+16>>3];k=+h[a+40>>3];o=+h[a+24>>3];n=+h[a+32>>3];t=1.0/(q*k-o*n);r=k*t;s=-0.0-o*t;l=-0.0-n*t;m=q*t;g=+h[a+56>>3];p=+h[a+48>>3];k=t*(n*g-k*p);g=t*(o*p-q*g);q=+h[a+624>>3];p=r*q;o=+h[a+632>>3];t=o*l;n=k+(p+t);q=q*s;o=m*o;u=g+(q+o);j=+h[a+648>>3];l=j*l;p=k+(p+l);j=m*j;q=g+(q+j);do{if(p<n){m=n}else{if(p<=n){m=n;p=n;break}m=p;p=n}}while(0);do{if(q<u){n=u}else{if(q<=u){n=u;q=u;break}n=q;q=u}}while(0);u=+h[a+640>>3];r=r*u;t=k+(r+t);s=u*s;o=g+(s+o);do{if(t<p){p=t}else{if(t<=m){break}m=t}}while(0);do{if(o<q){q=o}else{if(o<=n){break}n=o}}while(0);k=k+(r+l);g=g+(s+j);do{if(k<p){p=k}else{if(k<=m){break}m=k}}while(0);do{if(g<q){q=g}else{if(g<=n){break}n=g}}while(0);h[b>>3]=p;h[c>>3]=q;h[d>>3]=m;h[e>>3]=n;i=f;return}function IB(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h[a+16>>3]=b;h[a+24>>3]=c;h[a+32>>3]=d;h[a+40>>3]=e;h[a+48>>3]=f;h[a+56>>3]=g;i=i;return}function JB(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var j=0.0,k=0.0,l=0,m=0.0,n=0.0,o=0,p=0,q=0;q=a+16|0;n=+h[q>>3];p=a+24|0;k=+h[p>>3];o=a+32|0;m=+h[o>>3];l=a+40|0;j=+h[l>>3];h[q>>3]=n*b+m*c;h[p>>3]=k*b+j*c;h[o>>3]=n*d+m*e;h[l>>3]=k*d+j*e;l=a+48|0;h[l>>3]=n*f+m*g+ +h[l>>3];a=a+56|0;h[a>>3]=k*f+j*g+ +h[a>>3];i=i;return}function KB(a,b,c){a=a|0;b=+b;c=+c;var d=0;d=a+48|0;h[d>>3]=+h[d>>3]+b;d=a+56|0;h[d>>3]=+h[d>>3]+c;d=a+624|0;h[d>>3]=+h[d>>3]+b;d=a+632|0;h[d>>3]=+h[d>>3]+c;d=a+640|0;h[d>>3]=+h[d>>3]+b;a=a+648|0;h[a>>3]=+h[a>>3]+c;i=i;return}function LB(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+116|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[a>>2]=b;i=d;return}function MB(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+120|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[a>>2]=b;i=d;return}function NB(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+380|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[a>>2]=b;i=d;return}function OB(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+384|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[a>>2]=b;i=d;return}function PB(a,b,d){a=a|0;b=b|0;d=+d;var e=0,f=0,g=0;e=i;f=a+484|0;g=c[f>>2]|0;if((g|0)!=0){Yx(g)}c[f>>2]=b;h[a+488>>3]=d;i=e;return}function QB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;f=a+412|0;e=c[f>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[f>>2]=c[b>>2];e=a+416|0;f=c[e>>2]|0;if((f|0)!=0){fd[c[(c[f>>2]|0)+4>>2]&511](f)}c[e>>2]=c[b+4>>2];e=a+420|0;f=c[e>>2]|0;if((f|0)!=0){fd[c[(c[f>>2]|0)+4>>2]&511](f)}c[e>>2]=c[b+8>>2];a=a+424|0;e=c[a>>2]|0;if((e|0)==0){e=b+12|0;e=c[e>>2]|0;f=a;c[f>>2]=e;i=d;return}fd[c[(c[e>>2]|0)+4>>2]&511](e);e=b+12|0;e=c[e>>2]|0;f=a;c[f>>2]=e;i=d;return}function RB(a,b,d,e){a=a|0;b=b|0;d=d|0;e=+e;var f=0,g=0,j=0;f=i;g=a+440|0;j=c[g>>2]|0;if((j|0)!=0){Fe(j)}c[g>>2]=b;c[a+444>>2]=d;h[a+448>>3]=e;i=f;return}function SB(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;e=b+588|0;b=c[e>>2]|0;if((b|0)!=0){g=b+28|0;h=c[g>>2]|0;f=b+24|0;k=c[f>>2]|0;if((h|0)>0){j=0;do{l=c[k+(j<<2)>>2]|0;if((l|0)!=0){Fe(c[l>>2]|0);Fe(c[l+4>>2]|0);Fe(c[l+8>>2]|0);HW(l);k=c[f>>2]|0;h=c[g>>2]|0}j=j+1|0;}while((j|0)<(h|0))}Fe(k);HW(b)}l=FW(40)|0;a[l]=0;c[l+32>>2]=16;c[l+28>>2]=0;bX(l+8|0,0,16)|0;c[l+24>>2]=ye(16,4)|0;c[e>>2]=l;i=d;return}function TB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0.0,t=0.0,u=0,v=0.0,w=0.0,x=0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0.0,E=0.0;b=i;m=c[a+588>>2]|0;d=c[m+28>>2]|0;if((d|0)>0){e=a+16|0;f=a+32|0;g=a+48|0;j=a+24|0;k=a+40|0;l=a+56|0;m=c[m+24>>2]|0;n=0;y=0.0;A=0.0;z=0.0;B=0.0;do{u=c[m+(n<<2)>>2]|0;p=c[u+12>>2]|0;if((p|0)>0){o=c[u>>2]|0;u=c[u+4>>2]|0;s=+h[e>>3];r=+h[f>>3];t=+h[g>>3];w=+h[j>>3];v=+h[k>>3];q=+h[l>>3];x=0;C=B;while(1){E=+h[o+(x<<3)>>3];B=+h[u+(x<<3)>>3];D=t+(E*s+B*r);B=q+(E*w+B*v);do{if((x|n|0)==0){y=D;A=D;z=B}else{do{if(D<A){A=D}else{if(D<=y){break}y=D}}while(0);if(B<C){break}if(B<=z){B=C;break}z=B;B=C}}while(0);x=x+1|0;if((x|0)<(p|0)){C=B}else{break}}}n=n+1|0;}while((n|0)<(d|0))}else{y=0.0;A=0.0;z=0.0;B=0.0}d=a+624|0;if(A>+h[d>>3]){h[d>>3]=A}d=a+632|0;if(B>+h[d>>3]){h[d>>3]=B}d=a+640|0;if(y<+h[d>>3]){h[d>>3]=y}a=a+648|0;if(z>=+h[a>>3]){i=b;return}h[a>>3]=z;i=b;return}function UB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0,x=0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0.0,E=0.0;b=i;m=c[a+588>>2]|0;f=c[m+28>>2]|0;e=a+16|0;d=a+32|0;if((f|0)>0){j=a+48|0;k=a+24|0;g=a+40|0;l=a+56|0;m=c[m+24>>2]|0;n=0;z=0.0;B=0.0;y=0.0;A=0.0;do{w=c[m+(n<<2)>>2]|0;p=c[w+12>>2]|0;if((p|0)>0){o=c[w>>2]|0;w=c[w+4>>2]|0;u=+h[e>>3];t=+h[d>>3];v=+h[j>>3];r=+h[k>>3];q=+h[g>>3];s=+h[l>>3];x=0;C=A;while(1){E=+h[o+(x<<3)>>3];A=+h[w+(x<<3)>>3];D=v+(E*u+A*t);A=s+(E*r+A*q);do{if((x|n|0)==0){z=D;B=D;y=A}else{do{if(D<B){B=D}else{if(D<=z){break}z=D}}while(0);if(A<C){break}if(A<=y){A=C;break}y=A;A=C}}while(0);x=x+1|0;if((x|0)<(p|0)){C=A}else{break}}}n=n+1|0;}while((n|0)<(f|0))}else{g=a+40|0;z=0.0;B=0.0;y=0.0;A=0.0}r=+S(+(+h[e>>3]));q=+S(+(+h[d>>3]));t=+h[a+432>>3]*.5;q=t*(r>q?r:q);s=B-q;q=z+q;u=+S(+(+h[g>>3]));t=t*(r>u?r:u);r=y+t;t=A-t;d=a+624|0;if(s>+h[d>>3]){h[d>>3]=s}d=a+632|0;if(t>+h[d>>3]){h[d>>3]=t}d=a+640|0;if(q<+h[d>>3]){h[d>>3]=q}a=a+648|0;if(r>=+h[a>>3]){i=b;return}h[a>>3]=r;i=b;return}function VB(a,b,c){a=a|0;b=+b;c=+c;var d=0.0,e=0;d=+h[a+504>>3]*b+ +h[a+520>>3]*c;e=a+592|0;h[e>>3]=+h[a+496>>3]*b+ +h[a+512>>3]*c+ +h[e>>3];a=a+600|0;h[a>>3]=+h[a>>3]+d;i=i;return}function WB(a,b,c){a=a|0;b=+b;c=+c;var d=0;d=a+592|0;h[d>>3]=+h[d>>3]+b;a=a+600|0;h[a>>3]=+h[a>>3]+c;i=i;return}function XB(a){a=a|0;var b=0,d=0;d=i;b=FW(664)|0;FB(b,a);c[b+656>>2]=a;i=d;return b|0}function YB(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;e=a+656|0;d=c[e>>2]|0;if((d|0)==0){e=a;i=b;return e|0}f=a+588|0;c[d+588>>2]=c[f>>2];h[d+592>>3]=+h[a+592>>3];h[d+600>>3]=+h[a+600>>3];h[d+608>>3]=+h[a+608>>3];h[d+616>>3]=+h[a+616>>3];c[f>>2]=0;c[e>>2]=0;EB(a);HW(a);e=d;i=b;return e|0}function ZB(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;a=i;f=i;i=i+8|0;g=f;j=i;i=i+16|0;h=j;c[j>>2]=13;k=h+8|0;c[k>>2]=0;c[k+4>>2]=0;l=c[b>>2]|0;if((l|0)==4){f=b+8|0;g=0;while(1){b=g+1|0;if((Qc(c[f>>2]|0,c[171536+(g<<3)>>2]|0)|0)==0){break}if((b|0)<17){g=b}else{d=0;e=16;break}}if((e|0)==16){i=a;return d|0}c[d>>2]=c[171540+(g<<3)>>2];n=1;i=a;return n|0}else if((l|0)==6){e=b+8|0;l=0;a:while(1){m=c[e>>2]|0;if((l|0)>=(c[m+12>>2]|0)){e=15;break}ut(m,l,h)|0;if((c[j>>2]|0)==4){m=0}else{e=10;break}while(1){n=m+1|0;if((Qc(c[k>>2]|0,c[171536+(m<<3)>>2]|0)|0)==0){e=13;break a}if((n|0)<17){m=n}else{break}}Of(h);m=c[b>>2]|0;if((m|0)==6){l=l+1|0}else{e=7;break}}if((e|0)==7){c[f>>2]=m;c[g+4>>2]=6;Qe(0,172720,g);tc()}else if((e|0)==10){Of(h);n=0;i=a;return n|0}else if((e|0)==13){Of(h);c[d>>2]=c[171540+(m<<3)>>2];n=1;i=a;return n|0}else if((e|0)==15){c[d>>2]=0;n=1;i=a;return n|0}}else{n=0;i=a;return n|0}return 0}function _B(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;i=i;return}function $B(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;i=i;return}function aC(a){a=a|0;i=i;return 0}function bC(a){a=a|0;i=i;return 0}function cC(a){a=a|0;i=i;return 0}function dC(a){a=a|0;i=i;return 0}function eC(a){a=a|0;i=i;return-1}function fC(a){a=a|0;i=i;return-1}function gC(a){a=a|0;i=i;return 1}function hC(a){a=a|0;i=i;return 2}function iC(a){a=a|0;i=i;return-1}function jC(a){a=a|0;i=i;return-1}function kC(a){a=a|0;i=i;return 3}function lC(a){a=a|0;i=i;return 4}function mC(a){a=a|0;i=i;return 4}function nC(a){a=a|0;i=i;return 10}function oC(a){a=a|0;i=i;return 0}function pC(a){a=a|0;i=i;return 1}function qC(a){a=a|0;i=i;return 1}function rC(a){a=a|0;i=i;return 3}function sC(a){a=a|0;i=i;return 3}function tC(a){a=a|0;i=i;return 5}function uC(a){a=a|0;i=i;return 3}function vC(a){a=a|0;i=i;return 6}function wC(a){a=a|0;i=i;return c[a+4>>2]|0}function xC(a){a=a|0;i=i;return 7}function yC(a){a=a|0;i=i;return-1}function zC(a){a=a|0;i=i;return 1}function AC(a){a=a|0;i=i;return 8}function BC(a){a=a|0;i=i;return 1}function CC(b){b=b|0;i=i;return(a[b+16|0]&1)!=0|0}function DC(a){a=a|0;i=i;return 9}function EC(a){a=a|0;i=i;return c[a+4>>2]|0}function FC(b){b=b|0;i=i;return(a[b+144|0]&1)!=0|0}function GC(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;h=i;j=i;i=i+8|0;l=i;i=i+8|0;k=l;q=i;i=i+8|0;p=q;c[a+16>>2]=sE(d)|0;g=a+20|0;c[g>>2]=rE(d)|0;c[a+24>>2]=tE(d)|0;c[a+36>>2]=qE(d)|0;o=pE(d)|0;n=a+28|0;c[n>>2]=o;if((o|0)<0){m=3}else{if((o|0)>=(c[e+16>>2]|0)){m=3}}if((m|0)==3){c[q>>2]=o;Qe(-1,172872,p);c[n>>2]=0;o=0}c[a+32>>2]=c[(kn(e,o)|0)>>2];m=c[g>>2]|0;if((m|0)>536870910){c[l>>2]=m;Qe(-1,172944,k);c[g>>2]=0;m=0}q=a+96|0;c[q>>2]=ze(m,4)|0;m=a+100|0;c[m>>2]=ze(c[g>>2]|0,4)|0;p=a+104|0;c[p>>2]=ze(c[g>>2]|0,4)|0;o=a+108|0;c[o>>2]=ze(c[g>>2]|0,4)|0;n=a+112|0;c[n>>2]=ze(c[g>>2]|0,4)|0;l=a+116|0;c[l>>2]=ze(c[g>>2]|0,4)|0;k=ze(c[g>>2]|0,4)|0;c[a+120>>2]=k;do{if((c[q>>2]|0)!=0){if((c[m>>2]|0)==0){break}if((c[p>>2]|0)==0){break}if((c[o>>2]|0)==0){break}if((c[n>>2]|0)==0){break}m=c[l>>2]|0;if((m|0)==0|(k|0)==0){break}q=c[g>>2]<<2;p=m;bX(p|0,0,q|0)|0;q=a+124|0;bX(q|0,0,24)|0;HC(a,b,d,e,f);i=h;return}}while(0);Qe(-1,172992,j);c[g>>2]=0;q=0;p=c[l>>2]|0;bX(p|0,0,q|0)|0;q=a+124|0;bX(q|0,0,24)|0;HC(a,b,d,e,f);i=h;return}function HC(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;l=i;r=i;i=i+8|0;n=i;i=i+8|0;o=i;i=i+8|0;p=o;t=i;i=i+8|0;u=t;v=i;i=i+8|0;w=v;q=i;i=i+16|0;k=q;j=i;i=i+8|0;m=j;c[b>>2]=lE(e)|0;B=b+4|0;c[B>>2]=mE(e)|0;A=b+8|0;c[A>>2]=nE(e)|0;z=oE(e)|0;x=b+12|0;c[x>>2]=z;c[q>>2]=13;e=k+8|0;c[e>>2]=0;y=e+4|0;c[y>>2]=0;C=c[B>>2]|0;z=z+C|0;if((z|0)==0){s=0}else{if((z|0)<0){wn(0)}s=FW(z)|0;D=s;C=z;while(1){if((D|0)==0){D=0}else{a[D]=0}C=C+ -1|0;if((C|0)==0){break}else{D=D+1|0}}C=c[B>>2]|0}c[e>>2]=0;c[y>>2]=0;c[q>>2]=5;C=Cd[c[(c[d>>2]|0)+96>>2]&63](d,c[b>>2]|0,0,C,k)|0;fd[c[(c[C>>2]|0)+12>>2]&511](C);if((c[B>>2]|0)==0){D=s}else{F=0;E=s;while(1){D=E+1|0;a[E]=jd[c[(c[C>>2]|0)+20>>2]&511](C)|0;F=F+1|0;if(F>>>0<(c[B>>2]|0)>>>0){E=D}else{break}}}if((C|0)!=0){fd[c[(c[C>>2]|0)+4>>2]&511](C)}A=c[A>>2]|0;do{if((A|0)!=0){B=c[x>>2]|0;if((B|0)==0){break}c[e>>2]=0;c[y>>2]=0;c[q>>2]=5;d=Cd[c[(c[d>>2]|0)+96>>2]&63](d,A,0,B,k)|0;fd[c[(c[d>>2]|0)+12>>2]&511](d);if((c[x>>2]|0)!=0){A=0;while(1){a[D]=jd[c[(c[d>>2]|0)+20>>2]&511](d)|0;A=A+1|0;if(A>>>0<(c[x>>2]|0)>>>0){D=D+1|0}else{break}}}if((d|0)==0){break}fd[c[(c[d>>2]|0)+4>>2]&511](d)}}while(0);c[e>>2]=0;c[y>>2]=0;c[q>>2]=5;E=FW(56)|0;Tj(E,s,0,z,k);c[e>>2]=0;c[y>>2]=0;c[q>>2]=5;x=FW(56)|0;F=FWFW(24)|0;c[l+4>>2]=0;c[l>>2]=177856;c[l+8>>2]=g;n=l+12|0;c[n>>2]=h;m=g+7>>3;k=l+16|0;c[k>>2]=m;do{if((g|0)<1){o=16}else{if((h|0)<1|(m|0)<1){o=16;break}if((2147483646/(m|0)|0|0)<=(h|0)){o=16;break}m=we((da(m,h)|0)+1|0)|0;p=l+20|0;c[p>>2]=m;a[m+(da(c[k>>2]|0,c[n>>2]|0)|0)|0]=0;p=c[p>>2]|0;m=l+20|0;if((p|0)==0){break}bX(p|0,0,da(c[k>>2]|0,c[n>>2]|0)|0)|0;if((h|0)==0){u=l;i=j;return u|0}o=(g|0)==0;n=b+8|0;q=b+12|0;p=b+16|0;b=b+20|0;r=0;do{do{if(!o){u=r+f|0;if((u|0)<0){break}else{s=0}do{t=s+e|0;do{if((t|0)>=0){if((c[n>>2]|0)<=(t|0)){break}if((c[q>>2]|0)<=(u|0)){break}v=(da(c[p>>2]|0,u)|0)+(t>>3)|0;if(((d[(c[b>>2]|0)+v|0]|0)&1<<(t&7^7)|0)==0){break}v=(da(c[k>>2]|0,r)|0)+(s>>3)|0;v=(c[m>>2]|0)+v|0;a[v]=d[v]|0|1<<(s&7^7)}}while(0);s=s+1|0;}while(s>>>0<g>>>0)}}while(0);r=r+1|0;}while(r>>>0<h>>>0);i=j;return l|0}}while(0);do{if((o|0)==16){Qe(-1,177872,p);c[l+20>>2]=0;if((l|0)==0){l=0}else{break}i=j;return l|0}}while(0);fd[c[(c[l>>2]|0)+4>>2]&511](l);v=0;i=j;return v|0}function VC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;k=i;i=i+8|0;g=b+12|0;do{if((c[g>>2]|0)<(d|0)){h=b+16|0;j=c[h>>2]|0;if((j|0)<1){break}if((2147483646/(j|0)|0|0)<=(d|0)){break}k=b+20|0;b=xe(c[k>>2]|0,(da(j,d)|0)+1|0)|0;c[k>>2]=b;l=c[g>>2]|0;j=c[h>>2]|0;b=b+(da(j,l)|0)|0;j=da(d-l|0,j)|0;if((e|0)==0){bX(b|0,0,j|0)|0}else{bX(b|0,-1,j|0)|0}c[g>>2]=d;l=da(c[h>>2]|0,d)|0;a[(c[k>>2]|0)+l|0]=0;i=f;return}}while(0);Qe(-1,177872,k);l=b+20|0;Fe(c[l>>2]|0);c[l>>2]=0;i=f;return}function WC(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;j=i;if((g|0)==-2147483648){i=j;return}z=(g|0)<0?0-g|0:0;l=c[e+12>>2]|0;k=c[b+12>>2]|0;m=(l+g|0)>(k|0)?k-g|0:l;if((z|0)>=(m|0)){i=j;return}l=(f|0)>-1;k=l?f&-8:0;o=(c[e+8>>2]|0)+f|0;n=c[b+8>>2]|0;y=(o|0)>(n|0)?n:o;if((k|0)>=(y|0)){i=j;return}o=f&7;p=y&7;n=255>>>p;p=(p|0)==0?255:255<<8-p;s=p&255>>>o;r=(k|0)==(y+ -1&-8|0);q=b+20|0;u=b+16|0;b=f>>3;t=e+20|0;e=e+16|0;v=s^255;f=0-f>>3;x=k+8|0;w=255<<8-o;y=y+ -8|0;do{D=c[q>>2]|0;B=da(c[u>>2]|0,z+g|0)|0;A=D+B|0;do{if(r){if(l){A=D+(B+b)|0;B=(c[t>>2]|0)+(da(c[e>>2]|0,z)|0)|0;D=a[A]|0;C=D&255;B=d[B]|0;switch(h|0){case 4:{D=(B>>>o&s|C&v)&255;break};case 2:{D=(B>>>o&p^C)&255;break};case 3:{D=((B^255)>>>o&p^C)&255;break};case 0:{D=(B>>>o&p|C)&255;break};case 1:{D=((B|65280)>>>o|n)&C&255;break};default:{}}a[A]=D;break}else{D=(c[t>>2]|0)+((da(c[e>>2]|0,z)|0)+f)|0;C=a[A]|0;B=C&255;D=d[D]|0;switch(h|0){case 0:{C=(D&p|B)&255;break};case 2:{C=(D&p^B)&255;break};case 3:{C=((D^255)&p^B)&255;break};case 1:{C=(D|n)&B&255;break};case 4:{C=(D&p|B&n)&255;break};default:{}}a[A]=C;break}}else{if(l){A=B+b|0;F=D+A|0;C=c[t>>2]|0;B=da(c[e>>2]|0,z)|0;E=d[C+B|0]|0;G=a[F]|0;H=G&255;switch(h|0){case 4:{G=(H&w|E>>>o)&255;break};case 1:{G=(E|65280)>>>o&H&255;break};case 2:{G=(H^E>>>o)&255;break};case 0:{G=(H|E>>>o)&255;break};case 3:{G=((E^255)>>>o^H)&255;break};default:{}}a[F]=G;A=D+(A+1)|0;D=E;E=C+(B+1)|0;B=x}else{B=c[t>>2]|0;E=(da(c[e>>2]|0,z)|0)+f|0;D=d[B+E|0]|0;E=B+(E+1)|0;B=k}G=a[A]|0;C=G&255;F=E+1|0;E=d[E]|0;D=(E|D<<8)>>>o;if((B|0)<(y|0)){if((h|0)==1){H=A;while(1){A=H+1|0;a[H]=D&C;B=B+8|0;H=a[A]|0;C=H&255;G=d[F]|0;D=(G|E<<8)>>>o;if((B|0)<(y|0)){H=A;F=F+1|0;E=G}else{B=H;break}}}else if((h|0)==0){H=A;while(1){A=H+1|0;a[H]=D|C;B=B+8|0;H=a[A]|0;C=H&255;G=d[F]|0;D=(G|E<<8)>>>o;if((B|0)<(y|0)){H=A;F=F+1|0;E=G}else{B=H;break}}}else{H=A;while(1){if((h|0)==4){G=D&255}else if((h|0)==3){G=(C^255^D)&255}else if((h|0)==2){G=(D^C)&255}A=H+1|0;a[H]=G;B=B+8|0;G=a[A]|0;C=G&255;H=d[F]|0;D=(H|E<<8)>>>o;if((B|0)<(y|0)){E=H;F=F+1|0;H=A}else{B=G;break}}}}else{B=G}switch(h|0){case 0:{B=(D&p|C)&255;break};case 1:{B=(D|n)&C&255;break};case 4:{B=(D&p|C&n)&255;break};case 3:{B=((D^255)&p^C)&255;break};case 2:{B=(D&p^C)&255;break};default:{}}a[A]=B}}while(0);z=z+1|0;}while((z|0)<(m|0));i=j;return}function XC(a){a=a|0;var b=0;b=i;YC(a);HW(a);i=b;return}function YC(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;c[a>>2]=177904;e=a+8|0;f=c[e>>2]|0;d=a+12|0;h=c[d>>2]|0;if((f|0)!=0){g=0;do{j=c[h+(g<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[d>>2]|0;f=c[e>>2]|0}g=g+1|0;}while(g>>>0<f>>>0)}Fe(h);d=c[a+16>>2]|0;if((d|0)!=0){yI(d);HW(d)}a=c[a+20>>2]|0;if((a|0)==0){i=b;return}yI(a);HW(a);i=b;return}function ZC(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;c[a>>2]=177928;e=a+8|0;f=c[e>>2]|0;d=a+12|0;h=c[d>>2]|0;if((f|0)==0){j=h;Fe(j);HW(a);i=b;return}else{g=0}do{j=c[h+(g<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[d>>2]|0;f=c[e>>2]|0}g=g+1|0;}while(g>>>0<f>>>0);Fe(h);HW(a);i=b;return}function _C(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;c[a>>2]=177928;d=a+8|0;e=c[d>>2]|0;a=a+12|0;g=c[a>>2]|0;if((e|0)==0){h=g;Fe(h);i=b;return}else{f=0}do{h=c[g+(f<<2)>>2]|0;if((h|0)!=0){fd[c[(c[h>>2]|0)+4>>2]&511](h);g=c[a>>2]|0;e=c[d>>2]|0}f=f+1|0;}while(f>>>0<e>>>0);Fe(g);i=b;return}function $C(a){a=a|0;var b=0;b=i;c[a>>2]=177952;Fe(c[a+8>>2]|0);HW(a);i=b;return}function aD(a){a=a|0;var b=0;b=i;c[a>>2]=177952;Fe(c[a+8>>2]|0);i=b;return}function bD(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;uj(a,b);c[a>>2]=177976;b=a+16|0;c[b>>2]=13;f=a+24|0;c[f>>2]=0;c[f+4>>2]=0;c[a+48>>2]=0;f=FW(36)|0;CI(f);c[a+76>>2]=f;f=FW(8)|0;wI(f,2);c[a+80>>2]=f;f=FW(8)|0;wI(f,2);c[a+84>>2]=f;f=FW(8)|0;wI(f,512);c[a+88>>2]=f;f=FW(8)|0;wI(f,512);c[a+92>>2]=f;f=FW(8)|0;wI(f,512);c[a+96>>2]=f;f=FW(8)|0;wI(f,512);c[a+100>>2]=f;f=FW(8)|0;wI(f,512);c[a+104>>2]=f;f=FW(8)|0;wI(f,512);c[a+108>>2]=f;f=FW(8)|0;wI(f,512);c[a+112>>2]=f;f=FW(8)|0;wI(f,512);c[a+116>>2]=f;f=FW(8)|0;wI(f,512);c[a+120>>2]=f;f=FW(8)|0;wI(f,512);c[a+124>>2]=f;f=FW(8)|0;wI(f,512);c[a+128>>2]=f;f=FW(8)|0;wI(f,512);c[a+132>>2]=f;f=FW(8)|0;wI(f,512);c[a+136>>2]=f;f=FW(8)|0;wI(f,2);c[a+140>>2]=f;f=FW(12)|0;c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[a+144>>2]=f;f=FWFW(16)|0;wo(f);c[b+60>>2]=f;e=b+56|0;if((c[b+16>>2]|0)==8){c[e>>2]=f;j=c[b+24>>2]|0;g=b+64|0;c[g>>2]=j;fd[c[(c[j>>2]|0)+12>>2]&511](j);j=b+76|0;h=c[j>>2]|0;c[h+24>>2]=c[g>>2];c[h+28>>2]=0;a[h+32|0]=0;h=b+144|0;c[c[h>>2]>>2]=c[g>>2];f=b+148|0;c[c[f>>2]>>2]=c[g>>2];fD(b);k=c[g>>2]|0;fd[c[(c[k>>2]|0)+16>>2]&511](k)}else{g=b+64|0;j=b+76|0;h=b+144|0;f=b+148|0}k=FW(16)|0;wo(k);c[e>>2]=k;e=c[b+8>>2]|0;c[g>>2]=e;fd[c[(c[e>>2]|0)+12>>2]&511](e);e=c[j>>2]|0;c[e+24>>2]=c[g>>2];c[e+28>>2]=0;a[e+32|0]=0;c[c[h>>2]>>2]=c[g>>2];c[c[f>>2]>>2]=c[g>>2];fD(b);e=c[b+48>>2]|0;if((e|0)==0){c[b+72>>2]=0;c[b+68>>2]=0;i=d;return}else{k=c[e+20>>2]|0;c[b+68>>2]=k;c[b+72>>2]=k+(da(c[e+16>>2]|0,c[e+12>>2]|0)|0);i=d;return}}function fD(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;l=i;k=i;i=i+8|0;h=i;i=i+8|0;g=i;i=i+8|0;f=g;e=i;i=i+8|0;d=i;i=i+8|0;j=a+64|0;o=c[j>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){i=l;return}b=a+48|0;a:while(1){n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){n=78;break}m=c[j>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){n=78;break}p=c[j>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){n=78;break}n=n<<16|o<<24|m<<8|p;p=c[j>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){n=77;break}o=p&63;m=c[j>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){n=77;break}q=m>>>5;do{if((q|0)==7){r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){n=77;break a}s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){n=77;break a}q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){n=77;break a}q=(r<<16|m<<24|s<<8|q)&536870911;m=(q+9|0)>>>3;if((m|0)==0){break}else{r=0}while(1){v=c[j>>2]|0;jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;r=r+1|0;if(r>>>0<m>>>0){}else{break}}}}while(0);m=ye(q,4)|0;b:do{if(n>>>0<257){if((q|0)==0){break}else{r=0}do{s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){n=76;break a}c[m+(r<<2)>>2]=s;r=r+1|0;}while(r>>>0<q>>>0)}else{r=(q|0)==0;if(n>>>0<65537){if(r){break}else{r=0}while(1){s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){n=76;break a}t=c[j>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){n=76;break a}c[m+(r<<2)>>2]=t|s<<8;r=r+1|0;if(r>>>0>=q>>>0){break b}}}if(r){break}else{r=0}do{v=c[j>>2]|0;v=jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;if((v|0)==-1){n=76;break a}u=c[j>>2]|0;u=jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;if((u|0)==-1){n=76;break a}s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){n=76;break a}t=c[j>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){n=76;break a}c[m+(r<<2)>>2]=u<<16|v<<24|s<<8|t;r=r+1|0;}while(r>>>0<q>>>0)}}while(0);r=c[j>>2]|0;r=(jd[c[(c[r>>2]|0)+20>>2]&511](r)|0)==-1;if((p&64|0)==0){if(r){n=76;break}}else{if(r){n=76;break}v=c[j>>2]|0;if((jd[c[(c[v>>2]|0)+20>>2]&511](v)|0)==-1){n=76;break}v=c[j>>2]|0;if((jd[c[(c[v>>2]|0)+20>>2]&511](v)|0)==-1){n=76;break}v=c[j>>2]|0;if((jd[c[(c[v>>2]|0)+20>>2]&511](v)|0)==-1){n=76;break}}p=c[j>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){n=76;break}r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){n=76;break}s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){n=76;break}t=c[j>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){n=76;break}r=r<<16|p<<24|s<<8|t;p=c[j>>2]|0;p=jd[c[(c[p>>2]|0)+48>>2]&511](p)|0;if((c[b>>2]|0)==0){if((o+ -4|0)>>>0<4|(o+ -20|0)>>>0<24){n=41;break}}c:do{switch(o|0){case 20:{pD(a,n,0,0,0,m,q);n=68;break};case 36:{qD(a,n,0,0,r);n=68;break};case 38:{qD(a,n,1,0,r);n=68;break};case 48:{sD(a,0);n=68;break};case 50:{if((r|0)==0){n=69;break c}else{n=0}while(1){v=c[j>>2]|0;jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;n=n+1|0;if(n>>>0<r>>>0){}else{n=68;break}}break};case 40:{rD(a,n,0,0,0,m,q);n=68;break};case 42:{rD(a,n,1,0,0,m,q);n=68;break};case 22:{pD(a,n,1,0,0,m,q);n=68;break};case 6:{nD(a,n,1,0,0,m,q);n=68;break};case 7:{nD(a,n,1,0,0,m,q);n=68;break};case 0:{if(mD(a,n,0,m,q)|0){n=68}else{n=75;break a}break};case 39:{qD(a,n,1,0,r);n=68;break};case 52:{if((r|0)==0){n=69;break c}else{n=0}while(1){v=c[j>>2]|0;jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;n=n+1|0;if(n>>>0<r>>>0){}else{n=68;break}}break};case 23:{pD(a,n,1,0,0,m,q);n=68;break};case 53:{tD(a,n,0);n=68;break};case 62:{if((r|0)==0){n=69;break c}else{n=0}while(1){v=c[j>>2]|0;jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;n=n+1|0;if(n>>>0<r>>>0){}else{n=68;break}}break};case 16:{oD(a,n,r);n=68;break};case 43:{rD(a,n,1,0,0,m,q);n=68;break};case 4:{nD(a,n,0,0,0,m,q);n=68;break};default:{v=c[j>>2]|0;Qe(jd[c[(c[v>>2]|0)+48>>2]&511](v)|0,178152,e);if((r|0)==0){n=69;break c}else{n=0}while(1){v=c[j>>2]|0;n=n+1|0;if((jd[c[(c[v>>2]|0)+20>>2]&511](v)|0)==-1){n=76;break a}if(n>>>0<r>>>0){}else{n=68;break}}}}}while(0);if((n|0)==68){n=0;if((r|0)!=-1){n=69}}do{if((n|0)==69){o=c[j>>2]|0;o=p+r-(jd[c[(c[o>>2]|0)+48>>2]&511](o)|0)|0;if((o|0)>0){n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+48>>2]&511](n)|0;c[g>>2]=o;c[f+4>>2]=(o|0)>1?178232:178240;Qe(n,178192,f);do{v=c[j>>2]|0;jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;o=o+ -1|0;}while((o|0)>0)}else{if((o|0)>=0){break}v=c[j>>2]|0;Qe(jd[c[(c[v>>2]|0)+48>>2]&511](v)|0,178248,h);break}}}while(0);Fe(m);o=c[j>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){n=78;break}}if((n|0)==41){v=c[j>>2]|0;Qe(jd[c[(c[v>>2]|0)+48>>2]&511](v)|0,178072,d);n=75}else if((n|0)==76){Fe(m);n=77}else if((n|0)==78){i=l;return}if((n|0)==75){Fe(m);i=l;return}else if((n|0)==77){v=c[j>>2]|0;Qe(jd[c[(c[v>>2]|0)+48>>2]&511](v)|0,178296,k);i=l;return}}function gD(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;e=a+48|0;d=c[e>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d);c[e>>2]=0}d=a+56|0;f=c[d>>2]|0;if((f|0)!=0){e=f+8|0;h=c[e>>2]|0;if((h|0)>0){g=0;do{j=c[(c[f>>2]|0)+(g<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[e>>2]|0}g=g+1|0;}while((g|0)<(h|0))}xo(f);HW(f);c[d>>2]=0}e=a+60|0;d=c[e>>2]|0;if((d|0)==0){j=a+72|0;c[j>>2]=0;j=a+68|0;c[j>>2]=0;wj(a);i=b;return}f=d+8|0;h=c[f>>2]|0;if((h|0)>0){g=0;do{j=c[(c[d>>2]|0)+(g<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[f>>2]|0}g=g+1|0;}while((g|0)<(h|0))}xo(d);HW(d);c[e>>2]=0;j=a+72|0;c[j>>2]=0;j=a+68|0;c[j>>2]=0;wj(a);i=b;return}function hD(a){a=a|0;var b=0,e=0,f=0;b=i;f=a+68|0;e=c[f>>2]|0;if((e|0)==0){f=-1;i=b;return f|0}if(e>>>0>=(c[a+72>>2]|0)>>>0){f=-1;i=b;return f|0}c[f>>2]=e+1;f=(d[e]|0)^255;i=b;return f|0}function iD(a){a=a|0;var b=0,e=0;b=i;e=c[a+68>>2]|0;if((e|0)==0){e=-1;i=b;return e|0}if(e>>>0>=(c[a+72>>2]|0)>>>0){e=-1;i=b;return e|0}e=(d[e]|0)^255;i=b;return e|0}function jD(a){a=a|0;var b=0,d=0;b=i;d=c[a+48>>2]|0;if((d|0)==0){d=0;i=b;return d|0}d=(c[a+68>>2]|0)-(c[d+20>>2]|0)|0;i=b;return d|0}function kD(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return 0}function lD(a,b){a=a|0;b=b|0;var d=0;d=i;b=c[a+8>>2]|0;b=Bd[c[(c[b>>2]|0)+60>>2]&255](b,1)|0;i=d;return b|0}function mD(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0;e=i;S=i;i=i+8|0;Y=i;i=i+8|0;l=i;i=i+8|0;p=i;i=i+8|0;o=i;i=i+8|0;L=i;i=i+8|0;J=i;i=i+8|0;E=i;i=i+8|0;C=i;i=i+8|0;G=i;i=i+8|0;T=i;i=i+8|0;U=i;i=i+8|0;V=i;i=i+16|0;I=V;R=i;i=i+16|0;K=R;t=i;i=i+8|0;A=t;s=i;i=i+8|0;z=s;w=i;i=i+8|0;x=w;F=i;i=i+8|0;H=F;B=i;i=i+8|0;u=B;M=i;i=i+8|0;y=M;N=i;i=i+8|0;v=N;D=i;i=i+8|0;O=D;n=i;i=i+8|0;m=n;j=b+64|0;h=c[j>>2]|0;h=jd[c[(c[h>>2]|0)+20>>2]&511](h)|0;a:do{if((h|0)!=-1){k=c[j>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}h=k|h<<8;Q=h>>>10&3;P=h>>>12&1;r=k&2;aa=k>>>2&3;$=k>>>4&3;_=k&64;Z=k&128;X=h>>>8&1;h=h&512;k=(k&1|0)!=0;do{if(!k){W=c[j>>2]|0;W=jd[c[(c[W>>2]|0)+20>>2]&511](W)|0;if((W|0)==-1){V=0}else{c[V>>2]=(W&128|0)==0?W:W|-256;V=1}if((Q|0)!=0){if(!V){break a}V=c[j>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){break a}c[R>>2]=(V&128|0)==0?V:V|-256;break}if(!V){break a}V=c[j>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){break a}c[R>>2]=(V&128|0)==0?V:V|-256;R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break a}c[I+4>>2]=(R&128|0)==0?R:R|-256;R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break a}c[K+4>>2]=(R&128|0)==0?R:R|-256;R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break a}c[I+8>>2]=(R&128|0)==0?R:R|-256;R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break a}c[K+8>>2]=(R&128|0)==0?R:R|-256;R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break a}c[I+12>>2]=(R&128|0)==0?R:R|-256;R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break a}c[K+12>>2]=(R&128|0)==0?R:R|-256}}while(0);r=(r|0)!=0;if(r&(P|0)==0){R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break}c[t>>2]=(R&128|0)==0?R:R|-256;t=c[j>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}c[s>>2]=(t&128|0)==0?t:t|-256;s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}c[A+4>>2]=(s&128|0)==0?s:s|-256;s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}c[z+4>>2]=(s&128|0)==0?s:s|-256}R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break}t=c[j>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}V=c[j>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){break}t=t<<16|R<<24|s<<8|V;W=c[j>>2]|0;W=jd[c[(c[W>>2]|0)+20>>2]&511](W)|0;if((W|0)==-1){break}V=c[j>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){break}R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break}s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}s=V<<16|W<<24|R<<8|s;ba=FW(16)|0;wo(ba);ca=(g|0)==0;do{if(ca){R=0}else{W=b+60|0;V=b+56|0;ea=0;R=0;b:while(1){fa=c[f+(ea<<2)>>2]|0;ha=c[W>>2]|0;ga=c[ha+8>>2]|0;c:do{if((ga|0)>0){ia=c[ha>>2]|0;ja=0;while(1){ha=c[ia+(ja<<2)>>2]|0;ja=ja+1|0;if((c[ha+4>>2]|0)==(fa|0)){break c}if((ja|0)<(ga|0)){}else{q=38;break}}}else{q=38}}while(0);d:do{if((q|0)==38){q=0;ha=c[V>>2]|0;ga=c[ha+8>>2]|0;if((ga|0)<=0){q=51;break b}ia=c[ha>>2]|0;ja=0;while(1){ha=c[ia+(ja<<2)>>2]|0;ja=ja+1|0;if((c[ha+4>>2]|0)==(fa|0)){break d}if((ja|0)<(ga|0)){}else{q=51;break b}}}}while(0);if((ha|0)==0){q=51;break}do{if((jd[c[(c[ha>>2]|0)+8>>2]&511](ha)|0)==1){fa=c[ha+8>>2]|0;if(R>>>0>~fa>>>0){q=46;break b}R=fa+R|0}else{if((jd[c[(c[ha>>2]|0)+8>>2]&511](ha)|0)!=3){break}yo(ba,ha)}}while(0);ea=ea+1|0;if(ea>>>0>=g>>>0){q=54;break}}if((q|0)==46){ua=c[j>>2]|0;Qe(jd[c[(c[ua>>2]|0)+48>>2]&511](ua)|0,178328,U);if((ba|0)==0){break a}xo(ba);HW(ba);break a}else if((q|0)==51){if((ba|0)==0){ua=0;i=e;return ua|0}xo(ba);HW(ba);ua=0;i=e;return ua|0}else if((q|0)==54){if(R>>>0<=~s>>>0){break}ua=c[j>>2]|0;Qe(jd[c[(c[ua>>2]|0)+48>>2]&511](ua)|0,178328,T);if((ba|0)==0){break a}xo(ba);HW(ba);break a}}}while(0);U=R+s|0;V=(U|0)==0;do{if(V){T=ye(U,4)|0;S=T;W=1}else{S=U+ -1|0;W=1;while(1){S=S>>>1;if((S|0)==0){break}else{W=W+1|0}}T=ye(U,4)|0;if(V){S=T;break}bX(T|0,0,U<<2|0)|0;S=T}}while(0);if(ca){ha=0}else{ca=b+60|0;ea=b+56|0;fa=0;ha=0;ga=0;do{ia=c[f+(fa<<2)>>2]|0;ja=c[ca>>2]|0;q=c[ja+8>>2]|0;e:do{if((q|0)>0){ja=c[ja>>2]|0;la=0;while(1){ka=c[ja+(la<<2)>>2]|0;la=la+1|0;if((c[ka+4>>2]|0)==(ia|0)){ia=ka;q=73;break e}if((la|0)<(q|0)){}else{q=68;break}}}else{q=68}}while(0);f:do{if((q|0)==68){q=0;ka=c[ea>>2]|0;ja=c[ka+8>>2]|0;if((ja|0)<=0){break}la=c[ka>>2]|0;ma=0;while(1){ka=c[la+(ma<<2)>>2]|0;ma=ma+1|0;if((c[ka+4>>2]|0)==(ia|0)){ia=ka;q=73;break f}if((ma|0)<(ja|0)){}else{break}}}}while(0);do{if((q|0)==73){q=0;if((ia|0)==0){break}if((jd[c[(c[ia>>2]|0)+8>>2]&511](ia)|0)!=1){break}ha=ia+8|0;if((c[ha>>2]|0)==0){ha=ia;break}ja=ia+12|0;la=0;ka=ga;while(1){ga=ka+1|0;c[S+(ka<<2)>>2]=c[(c[ja>>2]|0)+(la<<2)>>2];la=la+1|0;if(la>>>0<(c[ha>>2]|0)>>>0){ka=ga}else{ha=ia;break}}}}while(0);fa=fa+1|0;}while(fa>>>0<g>>>0)}g:do{if(k){g=178384;do{if((aa|0)==1){aa=178496;f=0;q=84}else if((aa|0)==0){aa=g;f=0;q=84}else{if((c[ba+8>>2]|0)==0){break}aa=c[(c[c[ba>>2]>>2]|0)+8>>2]|0;f=1;q=84}}while(0);do{if((q|0)==84){if(($|0)==0){g=178640}else if(($|0)==1){g=178768}else{if(f>>>0>=(c[ba+8>>2]|0)>>>0){break}g=c[(c[(c[ba>>2]|0)+(f<<2)>>2]|0)+8>>2]|0;f=f+1|0}if((_|0)==0){_=178928}else{if(f>>>0>=(c[ba+8>>2]|0)>>>0){break}_=c[(c[(c[ba>>2]|0)+(f<<2)>>2]|0)+8>>2]|0;f=f+1|0}if((Z|0)==0){Z=178928;$=aa;q=94;break g}if(f>>>0>=(c[ba+8>>2]|0)>>>0){break}Z=c[(c[(c[ba>>2]|0)+(f<<2)>>2]|0)+8>>2]|0;$=aa;q=94;break g}}while(0);ua=c[j>>2]|0;Qe(jd[c[(c[ua>>2]|0)+48>>2]&511](ua)|0,180304,Y);if((ba|0)==0){X=0;break}xo(ba);HW(ba);X=0}else{Z=0;_=0;$=0;g=0;q=94}}while(0);h:do{if((q|0)==94){if((ba|0)!=0){xo(ba);HW(ba)}if(k){ua=c[b+144>>2]|0;c[ua+4>>2]=0;c[ua+8>>2]=0}else{do{if((X|0)==0|(ha|0)==0){aa=c[182448+(Q<<2)>>2]|0;Y=b+80|0;f=c[Y>>2]|0;if((c[f+4>>2]|0)==(aa|0)){xI(f);break}if((f|0)!=0){yI(f);HW(f)}ua=FW(8)|0;wI(ua,1<<aa);c[Y>>2]=ua}else{uD(b,Q,c[ha+16>>2]|0)}}while(0);vD(b,W);FI(c[b+76>>2]|0)}do{if(r){if(!((X|0)==0|(ha|0)==0)){wD(b,P,c[ha+20>>2]|0);ha=1;X=0;break}Y=c[182464+(P<<2)>>2]|0;X=b+84|0;q=c[X>>2]|0;if((c[q+4>>2]|0)==(Y|0)){xI(q);q=114;break}if((q|0)!=0){yI(q);HW(q)}q=FW(8)|0;wI(q,1<<Y);c[X>>2]=q;q=114}else{q=114}}while(0);do{if((q|0)==114){if(r|k^1){ha=1;X=0;break}ha=0;X=ye(s,4)|0}}while(0);Y=(s|0)==0;i:do{if(!Y){ea=b+144|0;ca=(W|0)==32;ga=b+76|0;ba=(1<<W)+ -1|0;ia=b+140|0;fa=b+120|0;aa=b+124|0;ja=b+100|0;ka=b+92|0;f=b+88|0;na=0;la=0;j:while(1){if(k){NC(c[ea>>2]|0,x,$)|0}else{JI(c[ga>>2]|0,x,c[f>>2]|0)|0}ma=c[w>>2]|0;if(!((ma|0)>-1|la>>>0>(0-ma|0)>>>0)){q=122;break}la=ma+la|0;ma=na;pa=0;oa=0;k:while(1){if(k){if(!(NC(c[ea>>2]|0,H,g)|0)){break}}else{if(!(JI(c[ga>>2]|0,H,c[ka>>2]|0)|0)){break}}qa=c[F>>2]|0;if(!((qa|0)>-1|pa>>>0>(0-qa|0)>>>0)){q=128;break j}pa=qa+pa|0;if(ma>>>0>=s>>>0){q=130;break j}do{if(ha){if(!r){c[S+(ma+R<<2)>>2]=zD(b,0,pa,la,Q,0,0,0,I,K,0)|0;break}if(k){if(!(NC(c[ea>>2]|0,u,Z)|0)){break k}}else{if(!(JI(c[ga>>2]|0,u,c[ja>>2]|0)|0)){break k}}qa=c[B>>2]|0;if((qa|0)!=1){ua=ma+R|0;ta=179112;c[S+(ua<<2)>>2]=yD(b,k,1,pa,la,qa,0,ua,0,W,S,0,0,0,1,0,179384,179624,179976,ta,ta,ta,ta,178928,P,A,z)|0;break}if(k){ra=c[ea>>2]|0;sa=ra+8|0;ua=c[sa>>2]|0;qa=ra+4|0;ta=c[qa>>2]|0;do{if(ua>>>0<W>>>0){ta=(1<<ua)+ -1&ta;ua=W-ua|0;c[sa>>2]=0;if(ua>>>0>7){while(1){va=c[ra>>2]|0;ta=(jd[c[(c[va>>2]|0)+20>>2]&511](va)|0)&255|ta<<8;ua=ua+ -8|0;if(ua>>>0>7){}else{break}}}if((ua|0)==0){break}ra=c[ra>>2]|0;ra=jd[c[(c[ra>>2]|0)+20>>2]&511](ra)|0;c[qa>>2]=ra;va=8-ua|0;c[sa>>2]=va;ta=ra>>>va&(1<<ua)+ -1|ta<<ua}else{va=ua-W|0;c[sa>>2]=va;ta=ta>>>va&(ca?-1:ba)}}while(0);NC(c[ea>>2]|0,y,179112)|0;NC(c[ea>>2]|0,v,179112)|0;NC(c[ea>>2]|0,O,178928)|0;va=c[ea>>2]|0;c[va+4>>2]=0;c[va+8>>2]=0;FI(c[ga>>2]|0)}else{ta=KI(c[ga>>2]|0,W,c[ia>>2]|0)|0;JI(c[ga>>2]|0,y,c[fa>>2]|0)|0;JI(c[ga>>2]|0,v,c[aa>>2]|0)|0}qa=ma+R|0;if(ta>>>0>=qa>>>0){q=149;break j}c[S+(qa<<2)>>2]=xD(b,pa,la,P,0,c[S+(ta<<2)>>2]|0,c[M>>2]|0,c[N>>2]|0,A,z)|0}else{c[X+(ma<<2)>>2]=pa;oa=pa+oa|0}}while(0);ma=ma+1|0}do{if(!ha){NC(c[ea>>2]|0,O,_)|0;pa=c[ea>>2]|0;c[pa+4>>2]=0;c[pa+8>>2]=0;pa=c[D>>2]|0;do{if((pa|0)==0){pa=FWFW(24)|0;c[u+4>>2]=d;c[u>>2]=177904;v=u+8|0;c[v>>2]=t;va=ze(t,4)|0;d=u+12|0;c[d>>2]=va;if((va|0)==0){c[v>>2]=0;c[u+16>>2]=0;c[u+20>>2]=0;if((u|0)==0){break}fd[c[(c[u>>2]|0)+4>>2]&511](u);break}v=u+16|0;c[v>>2]=0;w=u+20|0;c[w>>2]=0;l:do{if(V){B=0}else{x=b+144|0;z=b+76|0;y=b+96|0;A=0;E=0;B=0;m:while(1){if(k){NC(c[x>>2]|0,m,178928)|0}else{JI(c[z>>2]|0,m,c[y>>2]|0)|0}C=c[n>>2]|0;D=C+E|0;if(D>>>0>U>>>0){break}do{if(A){if((C+B|0)>>>0>t>>>0){break m}if((C|0)>0){C=0;F=E;E=B}else{D=E;break}while(1){B=E+1|0;D=F+1|0;H=c[S+(F<<2)>>2]|0;G=FW(24)|0;c[G+4>>2]=0;c[G>>2]=177856;va=c[H+8>>2]|0;c[G+8>>2]=va;I=c[H+12>>2]|0;c[G+12>>2]=I;F=c[H+16>>2]|0;c[G+16>>2]=F;do{if((va|0)<1){q=189}else{if((I|0)<1|(F|0)<1){q=189;break}if((I|0)>=(2147483646/(F|0)|0|0)){q=189;break}va=da(F,I)|0;ua=we(va+1|0)|0;c[G+20>>2]=ua;$W(ua|0,c[H+20>>2]|0,va|0)|0;a[ua+va|0]=0}}while(0);if((q|0)==189){q=0;Qe(-1,177872,p);c[G+20>>2]=0}c[(c[d>>2]|0)+(E<<2)>>2]=G;C=C+1|0;if((C|0)<(c[n>>2]|0)){E=B;F=D}else{break}}}}while(0);if(D>>>0<U>>>0){A=A^1;E=D}else{break l}}va=c[j>>2]|0;Qe(jd[c[(c[va>>2]|0)+48>>2]&511](va)|0,180200,o);if(B>>>0<t>>>0){do{c[(c[d>>2]|0)+(B<<2)>>2]=0;B=B+1|0;}while(B>>>0<t>>>0)}if((u|0)==0){break h}fd[c[(c[u>>2]|0)+4>>2]&511](u);break h}}while(0);if((B|0)!=(t|0)){va=c[j>>2]|0;Qe(jd[c[(c[va>>2]|0)+48>>2]&511](va)|0,180256,l);if(B>>>0<t>>>0){do{c[(c[d>>2]|0)+(B<<2)>>2]=0;B=B+1|0;}while(B>>>0<t>>>0)}if((u|0)==0){break}fd[c[(c[u>>2]|0)+4>>2]&511](u);break}if(!Y){l=0;do{j=c[S+(l+R<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j)}l=l+1|0;}while(l>>>0<s>>>0)}Fe(T);if((X|0)!=0){Fe(X)}do{if(!(k|(h|0)==0)){c[v>>2]=zI(c[b+80>>2]|0)|0;if(!r){break}c[w>>2]=zI(c[b+84>>2]|0)|0}}while(0);yo(c[b+56>>2]|0,u);va=1;i=e;return va|0}}while(0);if((s|0)!=0){b=0;do{h=c[S+(b+R<<2)>>2]|0;if((h|0)!=0){fd[c[(c[h>>2]|0)+4>>2]&511](h)}b=b+1|0;}while(b>>>0<s>>>0)}Fe(T);if((X|0)==0){va=0;i=e;return va|0}Fe(X);va=0;i=e;return va|0}}while(0);va=c[j>>2]|0;Qe(jd[c[(c[va>>2]|0)+48>>2]&511](va)|0,178296,S);va=0;i=e;return va|0}function nD(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,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;e=i;B=i;i=i+8|0;E=i;i=i+8|0;C=i;i=i+8|0;n=i;i=i+576|0;N=i;i=i+8|0;f=N;F=i;i=i+8|0;j=F;m=i;i=i+8|0;l=m;D=a+64|0;q=c[D>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;do{if((q|0)!=-1){k=c[D>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}o=c[D>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}p=c[D>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}k=k<<16|q<<24|o<<8|p;r=c[D>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[D>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}p=c[D>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}o=c[D>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}o=q<<16|r<<24|p<<8|o;p=c[D>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}q=c[D>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}r=c[D>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=c[D>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}p=q<<16|p<<24|r<<8|s;t=c[D>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}s=c[D>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}r=c[D>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[D>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}q=s<<16|t<<24|r<<8|q;r=c[D>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}r=r&7;s=c[D>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}x=c[D>>2]|0;x=jd[c[(c[x>>2]|0)+20>>2]&511](x)|0;if((x|0)==-1){break}z=x|s<<8;A=x&2;u=x>>>2&3;v=x>>>4&3;t=x>>>6&1;s=z>>>7&3;w=z>>>9&1;y=z>>>10;y=(y&16|0)==0?y&31:y|-16;z=z>>>15&1;x=(x&1|0)!=0;if(x){H=c[D>>2]|0;H=jd[c[(c[H>>2]|0)+20>>2]&511](H)|0;if((H|0)==-1){break}I=c[D>>2]|0;I=jd[c[(c[I>>2]|0)+20>>2]&511](I)|0;if((I|0)==-1){break}L=I|H<<8;O=I>>>2&3;K=I>>>4&3;P=I&3;H=L>>>8&3;I=I>>>6&3;J=L>>>10&3;M=L>>>12&3;L=L>>>14&1}else{O=0;K=0;P=0;H=0;I=0;J=0;M=0;L=0}A=(A|0)!=0;if(A&(z|0)==0){Q=c[D>>2]|0;Q=jd[c[(c[Q>>2]|0)+20>>2]&511](Q)|0;if((Q|0)==-1){break}c[N>>2]=(Q&128|0)==0?Q:Q|-256;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){break}c[F>>2]=(N&128|0)==0?N:N|-256;F=c[D>>2]|0;F=jd[c[(c[F>>2]|0)+20>>2]&511](F)|0;if((F|0)==-1){break}c[f+4>>2]=(F&128|0)==0?F:F|-256;F=c[D>>2]|0;F=jd[c[(c[F>>2]|0)+20>>2]&511](F)|0;if((F|0)==-1){break}c[j+4>>2]=(F&128|0)==0?F:F|-256}R=c[D>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break}F=c[D>>2]|0;F=jd[c[(c[F>>2]|0)+20>>2]&511](F)|0;if((F|0)==-1){break}Q=c[D>>2]|0;Q=jd[c[(c[Q>>2]|0)+20>>2]&511](Q)|0;if((Q|0)==-1){break}N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){break}B=F<<16|R<<24|Q<<8|N;N=FW(16)|0;wo(N);R=(h|0)==0;do{if(R){h=ye(0,4)|0;g=h;F=0;C=0}else{Q=a+60|0;S=a+56|0;T=0;F=0;a:do{U=c[g+(T<<2)>>2]|0;W=c[Q>>2]|0;V=c[W+8>>2]|0;b:do{if((V|0)>0){W=c[W>>2]|0;Y=0;while(1){X=c[W+(Y<<2)>>2]|0;Y=Y+1|0;if((c[X+4>>2]|0)==(U|0)){break b}if((Y|0)<(V|0)){}else{G=41;break}}}else{G=41}}while(0);c:do{if((G|0)==41){G=0;W=c[S>>2]|0;V=c[W+8>>2]|0;if((V|0)<=0){G=51;break a}W=c[W>>2]|0;Y=0;while(1){X=c[W+(Y<<2)>>2]|0;Y=Y+1|0;if((c[X+4>>2]|0)==(U|0)){break c}if((Y|0)<(V|0)){}else{G=51;break a}}}}while(0);if((X|0)==0){G=51;break}do{if((jd[c[(c[X>>2]|0)+8>>2]&511](X)|0)==1){F=(c[X+8>>2]|0)+F|0}else{if((jd[c[(c[X>>2]|0)+8>>2]&511](X)|0)!=3){break}yo(N,X)}}while(0);T=T+1|0;}while(T>>>0<h>>>0);if((G|0)==51){Z=c[D>>2]|0;Qe(jd[c[(c[Z>>2]|0)+48>>2]&511](Z)|0,180352,C);if((N|0)==0){i=e;return}xo(N);HW(N);i=e;return}if(F>>>0>1){Q=1;C=0;while(1){C=C+1|0;Q=Q<<1;if(Q>>>0<F>>>0){}else{break}}}else{C=0}Q=ye(F,4)|0;if(R){g=Q;h=Q;break}S=a+60|0;R=a+56|0;T=0;U=0;while(1){V=c[g+(T<<2)>>2]|0;W=c[S>>2]|0;G=c[W+8>>2]|0;d:do{if((G|0)>0){W=c[W>>2]|0;Y=0;while(1){X=c[W+(Y<<2)>>2]|0;Y=Y+1|0;if((c[X+4>>2]|0)==(V|0)){G=65;break d}if((Y|0)<(G|0)){}else{G=60;break}}}else{G=60}}while(0);e:do{if((G|0)==60){G=0;X=c[R>>2]|0;W=c[X+8>>2]|0;if((W|0)<=0){break}Y=c[X>>2]|0;Z=0;while(1){X=c[Y+(Z<<2)>>2]|0;Z=Z+1|0;if((c[X+4>>2]|0)==(V|0)){G=65;break e}if((Z|0)<(W|0)){}else{break}}}}while(0);do{if((G|0)==65){G=0;if((X|0)==0){break}if((jd[c[(c[X>>2]|0)+8>>2]&511](X)|0)!=1){break}V=X+8|0;if((c[V>>2]|0)==0){break}W=X+12|0;X=0;Y=U;while(1){U=Y+1|0;c[Q+(Y<<2)>>2]=c[(c[W>>2]|0)+(X<<2)>>2];X=X+1|0;if(X>>>0<(c[V>>2]|0)>>>0){Y=U}else{break}}}}while(0);T=T+1|0;if(T>>>0>=h>>>0){g=Q;h=Q;break}}}}while(0);f:do{if(x){Q=179384;do{if((P|0)==1){P=180400;Q=0;G=76}else if((P|0)==0){P=Q;Q=0;G=76}else{if((c[N+8>>2]|0)==0){break}P=c[(c[c[N>>2]>>2]|0)+8>>2]|0;Q=1;G=76}}while(0);do{if((G|0)==76){if((O|0)==0){G=179624}else if((O|0)==1){G=180656}else if((O|0)==2){G=181024}else{if(Q>>>0>=(c[N+8>>2]|0)>>>0){break}G=c[(c[(c[N>>2]|0)+(Q<<2)>>2]|0)+8>>2]|0;Q=Q+1|0}if((K|0)==0){O=179976}else if((K|0)==2){O=181600}else if((K|0)==1){O=181376}else{if(Q>>>0>=(c[N+8>>2]|0)>>>0){break}O=c[(c[(c[N>>2]|0)+(Q<<2)>>2]|0)+8>>2]|0;Q=Q+1|0}if((I|0)==0){I=181824}else if((I|0)==1){I=179112}else{if(Q>>>0>=(c[N+8>>2]|0)>>>0){break}I=c[(c[(c[N>>2]|0)+(Q<<2)>>2]|0)+8>>2]|0;Q=Q+1|0}if((H|0)==0){H=181824}else if((H|0)==1){H=179112}else{if(Q>>>0>=(c[N+8>>2]|0)>>>0){break}H=c[(c[(c[N>>2]|0)+(Q<<2)>>2]|0)+8>>2]|0;Q=Q+1|0}if((J|0)==0){J=181824}else if((J|0)==1){J=179112}else{if(Q>>>0>=(c[N+8>>2]|0)>>>0){break}J=c[(c[(c[N>>2]|0)+(Q<<2)>>2]|0)+8>>2]|0;Q=Q+1|0}K=181824;if((M|0)==1){K=179112;M=Q}else if((M|0)==0){M=Q}else{if(Q>>>0>=(c[N+8>>2]|0)>>>0){break}K=c[(c[(c[N>>2]|0)+(Q<<2)>>2]|0)+8>>2]|0;M=Q+1|0}if((L|0)==0){D=G;E=O;G=P;L=178928;break f}if(M>>>0>=(c[N+8>>2]|0)>>>0){break}D=G;E=O;G=P;L=c[(c[(c[N>>2]|0)+(M<<2)>>2]|0)+8>>2]|0;break f}}while(0);Z=c[D>>2]|0;Qe(jd[c[(c[Z>>2]|0)+48>>2]&511](Z)|0,181920,E);Fe(N);if((h|0)==0){i=e;return}HW(h);i=e;return}else{D=0;E=0;G=0;H=0;I=0;J=0;K=0;L=0}}while(0);if((N|0)!=0){xo(N);HW(N)}if(x){M=a+144|0;N=c[M>>2]|0;c[N+4>>2]=0;c[N+8>>2]=0;N=0;do{c[n+(N<<4)>>2]=N;P=c[M>>2]|0;Q=P+8|0;S=c[Q>>2]|0;O=P+4|0;R=c[O>>2]|0;do{if(S>>>0<4){R=(1<<S)+ -1&R;S=4-S|0;c[Q>>2]=0;if(S>>>0>7){while(1){Z=c[P>>2]|0;R=(jd[c[(c[Z>>2]|0)+20>>2]&511](Z)|0)&255|R<<8;S=S+ -8|0;if(S>>>0>7){}else{break}}}if((S|0)==0){break}Y=c[P>>2]|0;Y=jd[c[(c[Y>>2]|0)+20>>2]&511](Y)|0;c[O>>2]=Y;Z=8-S|0;c[Q>>2]=Z;R=Y>>>Z&(1<<S)+ -1|R<<S}else{Z=S+ -4|0;c[Q>>2]=Z;R=R>>>Z&15}}while(0);c[n+(N<<4)+4>>2]=R;c[n+(N<<4)+8>>2]=0;N=N+1|0;}while(N>>>0<32);c[n+512>>2]=259;O=c[M>>2]|0;N=O+8|0;R=c[N>>2]|0;P=O+4|0;Q=c[P>>2]|0;do{if(R>>>0<4){Q=(1<<R)+ -1&Q;R=4-R|0;c[N>>2]=0;if(R>>>0>7){while(1){Z=c[O>>2]|0;Q=(jd[c[(c[Z>>2]|0)+20>>2]&511](Z)|0)&255|Q<<8;R=R+ -8|0;if(R>>>0>7){}else{break}}}if((R|0)==0){break}Y=c[O>>2]|0;Y=jd[c[(c[Y>>2]|0)+20>>2]&511](Y)|0;c[P>>2]=Y;Z=8-R|0;c[N>>2]=Z;Q=Y>>>Z&(1<<R)+ -1|Q<<R}else{Z=R+ -4|0;c[N>>2]=Z;Q=Q>>>Z&15}}while(0);c[n+516>>2]=Q;c[n+520>>2]=2;c[n+528>>2]=515;P=c[M>>2]|0;N=P+8|0;R=c[N>>2]|0;O=P+4|0;Q=c[O>>2]|0;do{if(R>>>0<4){Q=(1<<R)+ -1&Q;R=4-R|0;c[N>>2]=0;if(R>>>0>7){while(1){Z=c[P>>2]|0;Q=(jd[c[(c[Z>>2]|0)+20>>2]&511](Z)|0)&255|Q<<8;R=R+ -8|0;if(R>>>0>7){}else{break}}}if((R|0)==0){break}Y=c[P>>2]|0;Y=jd[c[(c[Y>>2]|0)+20>>2]&511](Y)|0;c[O>>2]=Y;Z=8-R|0;c[N>>2]=Z;Q=Y>>>Z&(1<<R)+ -1|Q<<R}else{Z=R+ -4|0;c[N>>2]=Z;Q=Q>>>Z&15}}while(0);c[n+532>>2]=Q;c[n+536>>2]=3;c[n+544>>2]=523;O=c[M>>2]|0;P=O+8|0;R=c[P>>2]|0;N=O+4|0;Q=c[N>>2]|0;do{if(R>>>0<4){Q=(1<<R)+ -1&Q;R=4-R|0;c[P>>2]=0;if(R>>>0>7){while(1){Z=c[O>>2]|0;Q=(jd[c[(c[Z>>2]|0)+20>>2]&511](Z)|0)&255|Q<<8;R=R+ -8|0;if(R>>>0>7){}else{break}}}if((R|0)==0){break}Y=c[O>>2]|0;Y=jd[c[(c[Y>>2]|0)+20>>2]&511](Y)|0;c[N>>2]=Y;Z=8-R|0;c[P>>2]=Z;Q=Y>>>Z&(1<<R)+ -1|Q<<R}else{Z=R+ -4|0;c[P>>2]=Z;Q=Q>>>Z&15}}while(0);c[n+548>>2]=Q;c[n+552>>2]=7;c[n+564>>2]=0;c[n+568>>2]=-1;OC(0,n,35);N=ye(F+1|0,16)|0;P=(F|0)==0;do{if(P){l=0}else{O=0;do{c[N+(O<<4)>>2]=O;c[N+(O<<4)+8>>2]=0;O=O+1|0;}while(O>>>0<F>>>0);if(P){l=0;break}else{O=0}while(1){NC(c[M>>2]|0,l,n)|0;Q=c[m>>2]|0;do{if((Q|0)>512){R=Q+ -512|0;c[m>>2]=R;if(!((R|0)!=0&O>>>0<F>>>0)){break}Q=512-Q|0;P=O-F|0;P=Q>>>0>P>>>0?Q:P;Q=R+P|0;T=R;S=O;while(1){R=S+1|0;c[N+(S<<4)+4>>2]=0;T=T+ -1|0;if((T|0)!=0&R>>>0<F>>>0){S=R}else{break}}c[m>>2]=Q;O=O-P|0}else{if((Q|0)<=256){c[N+(O<<4)+4>>2]=Q;O=O+1|0;break}P=Q+ -256|0;c[m>>2]=P;if(!((P|0)!=0&O>>>0<F>>>0)){break}R=256-Q|0;Q=O-F|0;Q=R>>>0>Q>>>0?R:Q;R=P+Q|0;S=O;do{c[N+(S<<4)+4>>2]=c[N+(S+ -1<<4)+4>>2];S=S+1|0;P=P+ -1|0;}while((P|0)!=0&S>>>0<F>>>0);c[m>>2]=R;O=O-Q|0}}while(0);if(O>>>0>=F>>>0){l=F;break}}}}while(0);c[N+(l<<4)+4>>2]=0;c[N+(F<<4)+8>>2]=-1;OC(0,N,l);F=c[M>>2]|0;c[F+4>>2]=0;c[F+8>>2]=0;F=l}else{vD(a,C);FI(c[a+76>>2]|0);N=0}do{if(A){m=c[182464+(z<<2)>>2]|0;l=a+84|0;n=c[l>>2]|0;if((c[n+4>>2]|0)==(m|0)){xI(n);break}if((n|0)!=0){yI(n);HW(n)}Z=FW(8)|0;wI(Z,1<<m);c[l>>2]=Z}}while(0);f=yD(a,x,A,k,o,B,u,F,N,C,g,w,s,t,v,y,G,D,E,I,H,J,K,L,z,f,j)|0;Fe(h);do{if((f|0)!=0){if(!d){c[f+4>>2]=b;yo(c[a+56>>2]|0,f);break}do{if((c[a+36>>2]|0)==-1){d=q+o|0;if(d>>>0<=(c[a+40>>2]|0)>>>0){break}VC(c[a+48>>2]|0,d,c[a+44>>2]|0)}}while(0);WC(c[a+48>>2]|0,f,p,q,r);fd[c[(c[f>>2]|0)+4>>2]&511](f)}}while(0);if(!x){i=e;return}Fe(N);i=e;return}}while(0);Z=c[D>>2]|0;Qe(jd[c[(c[Z>>2]|0)+48>>2]&511](Z)|0,178296,B);i=e;return}function oD(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;e=i;s=i;i=i+8|0;l=i;i=i+16|0;j=l;m=i;i=i+16|0;h=m;p=a+64|0;n=c[p>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;do{if((n|0)!=-1){g=c[p>>2]|0;g=jd[c[(c[g>>2]|0)+20>>2]&511](g)|0;if((g|0)==-1){break}f=c[p>>2]|0;f=jd[c[(c[f>>2]|0)+20>>2]&511](f)|0;if((f|0)==-1){break}k=c[p>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}o=c[p>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}r=c[p>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[p>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}k=o<<16|k<<24|r<<8|q;o=n>>>1&3;n=(n&1|0)!=0;if(!n){q=c[182448+(o<<2)>>2]|0;r=a+80|0;p=c[r>>2]|0;if((c[p+4>>2]|0)==(q|0)){xI(p)}else{if((p|0)!=0){yI(p);HW(p)}s=FW(8)|0;wI(s,1<<q);c[r>>2]=s}FI(c[a+76>>2]|0)}c[l>>2]=0-g;c[m>>2]=0;c[j+4>>2]=-3;c[h+4>>2]=-1;c[j+8>>2]=2;c[h+8>>2]=-2;c[j+12>>2]=-2;c[h+12>>2]=-2;l=k+1|0;h=zD(a,n,da(l,g)|0,f,o,0,0,0,j,h,d+ -7|0)|0;if((h|0)==0){i=e;return}d=FWFW(8)|0;wI(O,1<<K);c[L>>2]=O}FI(c[b+76>>2]|0)}G=FW(24)|0;c[G+4>>2]=e;c[G>>2]=177856;c[G+8>>2]=z;K=G+12|0;c[K>>2]=h;L=z+7>>3;e=G+16|0;c[e>>2]=L;do{if((z|0)<1){k=70}else{if((h|0)<1|(L|0)<1){k=70;break}if((2147483646/(L|0)|0|0)<=(h|0)){k=70;break}O=we((da(h,L)|0)+1|0)|0;C=G+20|0;c[C>>2]=O;a[O+(da(c[e>>2]|0,c[K>>2]|0)|0)|0]=0;C=c[C>>2]|0}}while(0);if((k|0)==70){Qe(-1,177872,C);c[G+20>>2]=0;C=0}e=da(c[e>>2]|0,c[K>>2]|0)|0;if((E&128|0)==0){bX(C|0,0,e|0)|0}else{bX(C|0,-1,e|0)|0}C=(F|0)!=0;if(C){e=FW(24)|0;c[e+4>>2]=0;c[e>>2]=177856;c[e+8>>2]=r;F=e+12|0;c[F>>2]=s;K=r+7>>3;E=e+16|0;c[E>>2]=K;do{if((r|0)<1){k=79}else{if((s|0)<1|(K|0)<1){k=79;break}if((2147483646/(K|0)|0|0)<=(s|0)){k=79;break}O=we((da(s,K)|0)+1|0)|0;K=e+20|0;c[K>>2]=O;a[O+(da(c[E>>2]|0,c[F>>2]|0)|0)|0]=0;K=c[K>>2]|0}}while(0);if((k|0)==79){Qe(-1,177872,B);c[e+20>>2]=0;K=0}B=e+20|0;bX(K|0,0,da(c[E>>2]|0,c[F>>2]|0)|0)|0;F=(r|0)==0;K=0;while(1){if(!F){L=(da(K,A)|0)+t|0;O=(da(K,y)|0)+x|0;M=0;do{P=L+(da(M,y)|0)|0;N=O-(da(M,A)|0)|0;if((P+I>>8|0)>0&(P>>8|0)<(z|0)){if(!((N+J>>8|0)>0&(N>>8|0)<(h|0))){k=86}}else{k=86}if((k|0)==86){k=0;P=(da(c[E>>2]|0,K)|0)+(M>>3)|0;P=(c[B>>2]|0)+P|0;a[P]=d[P]|0|1<<(M&7^7)}M=M+1|0;}while(M>>>0<r>>>0)}K=K+1|0;if(K>>>0>=s>>>0){B=e;break}}}else{B=0}P=da(s,r)|0;z=ye(P,4)|0;bX(z|0,0,P<<2|0)|0;c[u>>2]=w>>>0<2?3:2;c[v>>2]=-1;c[o+4>>2]=-3;c[n+4>>2]=-1;c[o+8>>2]=2;c[n+8>>2]=-2;c[o+12>>2]=-2;c[n+12>>2]=-2;if((j|0)>-1){u=(r|0)==0;do{F=zD(b,H,r,s,w,0,C,B,o,n,-1)|0;I=F+8|0;v=F+12|0;E=F+16|0;e=F+20|0;K=0;J=0;do{if(!u){L=(J|0)<0;M=K;N=0;while(1){do{if((N|0)<0){O=0}else{if((c[I>>2]|0)<=(N|0)|L){O=0;break}if((c[v>>2]|0)<=(J|0)){O=0;break}O=(da(c[E>>2]|0,J)|0)+(N>>3)|0;O=(d[(c[e>>2]|0)+O|0]|0)>>>(N&7^7)&1}}while(0);P=z+(M<<2)|0;Q=c[P>>2]|0;c[P>>2]=Q&1^O|Q<<1;N=N+1|0;if(N>>>0<r>>>0){M=M+1|0}else{break}}K=r+K|0}J=J+1|0;}while(J>>>0<s>>>0);if((F|0)!=0){fd[c[(c[F>>2]|0)+4>>2]&511](F)}j=j+ -1|0;}while((j|0)>-1)}n=(r|0)==0;C=C^1;w=B+8|0;v=B+12|0;o=B+16|0;u=B+20|0;E=0;e=0;do{if(!n){F=(e|0)<0;H=E;J=0;j=(da(e,A)|0)+t|0;I=(da(e,y)|0)+x|0;while(1){do{if((J|0)<0|C){k=111}else{if((c[w>>2]|0)<=(J|0)|F){k=111;break}if((c[v>>2]|0)<=(e|0)){k=111;break}Q=(da(c[o>>2]|0,e)|0)+(J>>3)|0;if(((d[(c[u>>2]|0)+Q|0]|0)&1<<(J&7^7)|0)==0){k=111}}}while(0);if((k|0)==111){k=0;WC(G,c[(c[D>>2]|0)+(c[z+(H<<2)>>2]<<2)>>2]|0,j>>8,I>>8,q)}J=J+1|0;if(J>>>0<r>>>0){H=H+1|0;j=j+y|0;I=I-A|0}else{break}}E=r+E|0}e=e+1|0;}while(e>>>0<s>>>0);Fe(z);if((B|0)!=0){fd[c[(c[B>>2]|0)+4>>2]&511](B)}if(!f){yo(c[b+56>>2]|0,G);i=g;return}do{if((c[b+36>>2]|0)==-1){f=m+h|0;if(f>>>0<=(c[b+40>>2]|0)>>>0){break}VC(c[b+48>>2]|0,f,c[b+44>>2]|0)}}while(0);WC(c[b+48>>2]|0,G,l,m,p);if((G|0)==0){i=g;return}fd[c[(c[G>>2]|0)+4>>2]&511](G);i=g;return}}while(0);Q=c[D>>2]|0;Qe(jd[c[(c[Q>>2]|0)+48>>2]&511](Q)|0,182096,G);i=g;return}}while(0);Q=c[D>>2]|0;Qe(jd[c[(c[Q>>2]|0)+48>>2]&511](Q)|0,182056,J);i=g;return}}while(0);Q=c[D>>2]|0;Qe(jd[c[(c[Q>>2]|0)+48>>2]&511](Q)|0,182008,K);i=g;return}}while(0);Q=c[D>>2]|0;Qe(jd[c[(c[Q>>2]|0)+48>>2]&511](Q)|0,178296,A);i=g;return}function qD(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;k=i;i=i+8|0;p=i;i=i+16|0;g=p;n=i;i=i+16|0;h=n;j=a+64|0;l=c[j>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;do{if((l|0)!=-1){o=c[j>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}m=c[j>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}l=o<<16|l<<24|q<<8|m;r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}o=c[j>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}m=c[j>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}m=q<<16|r<<24|o<<8|m;s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}o=c[j>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}o=r<<16|s<<24|q<<8|o;q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}t=c[j>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}q=r<<16|q<<24|s<<8|t;r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}r=r&7;u=c[j>>2]|0;u=jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;if((u|0)==-1){break}t=u>>>1&3;s=u&8;u=(u&1|0)!=0;if(!u){v=c[j>>2]|0;v=jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;if((v|0)==-1){p=0}else{c[p>>2]=(v&128|0)==0?v:v|-256;p=1}if((t|0)==0){if(!p){break}p=c[j>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}c[n>>2]=(p&128|0)==0?p:p|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[g+4>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[h+4>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[g+8>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[h+8>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[g+12>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[h+12>>2]=(n&128|0)==0?n:n|-256}else{if(!p){break}p=c[j>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}c[n>>2]=(p&128|0)==0?p:p|-256}j=c[182448+(t<<2)>>2]|0;n=a+80|0;k=c[n>>2]|0;if((c[k+4>>2]|0)==(j|0)){xI(k)}else{if((k|0)!=0){yI(k);HW(k)}v=FW(8)|0;wI(v,1<<j);c[n>>2]=v}FI(c[a+76>>2]|0)}f=zD(a,u,l,m,t,(s|0)!=0,0,0,g,h,u?f+ -18|0:0)|0;if((f|0)==0){i=e;return}if(!d){c[f+4>>2]=b;yo(c[a+56>>2]|0,f);i=e;return}do{if((c[a+36>>2]|0)==-1){b=q+m|0;if(b>>>0<=(c[a+40>>2]|0)>>>0){break}VC(c[a+48>>2]|0,b,c[a+44>>2]|0)}}while(0);WC(c[a+48>>2]|0,f,o,q,r);fd[c[(c[f>>2]|0)+4>>2]&511](f);i=e;return}}while(0);v=c[j>>2]|0;Qe(jd[c[(c[v>>2]|0)+48>>2]&511](v)|0,178296,k);i=e;return}function rD(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;e=i;w=i;i=i+8|0;k=i;i=i+8|0;n=i;i=i+8|0;v=i;i=i+8|0;y=i;i=i+8|0;m=y;x=i;i=i+8|0;l=x;f=a+64|0;o=c[f>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;do{if((o|0)!=-1){r=c[f>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[f>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}p=c[f>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}o=r<<16|o<<24|q<<8|p;r=c[f>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=c[f>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}p=c[f>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}q=c[f>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}p=s<<16|r<<24|p<<8|q;t=c[f>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}q=c[f>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}r=c[f>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=c[f>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}q=q<<16|t<<24|r<<8|s;t=c[f>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}r=c[f>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=c[f>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}u=c[f>>2]|0;u=jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;if((u|0)==-1){break}r=r<<16|t<<24|s<<8|u;s=c[f>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}s=s&7;u=c[f>>2]|0;u=jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;if((u|0)==-1){break}t=u&1;u=u&2;if((t|0)==0){z=c[f>>2]|0;z=jd[c[(c[z>>2]|0)+20>>2]&511](z)|0;if((z|0)==-1){break}c[y>>2]=(z&128|0)==0?z:z|-256;y=c[f>>2]|0;y=jd[c[(c[y>>2]|0)+20>>2]&511](y)|0;if((y|0)==-1){break}c[x>>2]=(y&128|0)==0?y:y|-256;x=c[f>>2]|0;x=jd[c[(c[x>>2]|0)+20>>2]&511](x)|0;if((x|0)==-1){break}c[m+4>>2]=(x&128|0)==0?x:x|-256;x=c[f>>2]|0;x=jd[c[(c[x>>2]|0)+20>>2]&511](x)|0;if((x|0)==-1){break}c[l+4>>2]=(x&128|0)==0?x:x|-256}do{if((h|0)==0|d){if((c[a+36>>2]|0)!=-1){break}w=r+p|0;if(w>>>0<=(c[a+40>>2]|0)>>>0){break}VC(c[a+48>>2]|0,w,c[a+44>>2]|0)}}while(0);if(h>>>0>1){z=c[f>>2]|0;Qe(jd[c[(c[z>>2]|0)+48>>2]&511](z)|0,182280,v);i=e;return}h=(h|0)==1;a:do{if(h){v=c[g>>2]|0;w=c[a+60>>2]|0;j=c[w+8>>2]|0;b:do{if((j|0)>0){w=c[w>>2]|0;y=0;while(1){x=c[w+(y<<2)>>2]|0;y=y+1|0;if((c[x+4>>2]|0)==(v|0)){j=40;break b}if((y|0)<(j|0)){}else{j=35;break}}}else{j=35}}while(0);c:do{if((j|0)==35){x=c[a+56>>2]|0;w=c[x+8>>2]|0;if((w|0)<=0){break}y=c[x>>2]|0;z=0;do{x=c[y+(z<<2)>>2]|0;z=z+1|0;if((c[x+4>>2]|0)==(v|0)){j=40;break c}}while((z|0)<(w|0))}}while(0);do{if((j|0)==40){if((x|0)==0){break}if((jd[c[(c[x>>2]|0)+8>>2]&511](x)|0)!=0){break}break a}}while(0);z=c[f>>2]|0;Qe(jd[c[(c[z>>2]|0)+48>>2]&511](z)|0,182336,n);i=e;return}else{x=UC(c[a+48>>2]|0,q,r,o,p)|0}}while(0);n=c[182464+(t<<2)>>2]|0;v=a+84|0;w=c[v>>2]|0;if((c[w+4>>2]|0)==(n|0)){xI(w)}else{if((w|0)!=0){yI(w);HW(w)}z=FW(8)|0;wI(z,1<<n);c[v>>2]=z}FI(c[a+76>>2]|0);l=xD(a,o,p,t,(u|0)!=0,x,0,0,m,l)|0;do{if(d){WC(c[a+48>>2]|0,l,q,r,s);if((l|0)==0){break}fd[c[(c[l>>2]|0)+4>>2]&511](l)}else{if((l|0)==0){z=c[f>>2]|0;Qe(jd[c[(c[z>>2]|0)+48>>2]&511](z)|0,182400,k);break}else{c[l+4>>2]=b;yo(c[a+56>>2]|0,l);break}}}while(0);if(!h){if((x|0)==0){i=e;return}fd[c[(c[x>>2]|0)+4>>2]&511](x);i=e;return}d=c[g>>2]|0;l=c[a+60>>2]|0;b=c[l+8>>2]|0;d:do{if((b|0)>0){k=c[l>>2]|0;f=0;while(1){g=f+1|0;if((c[(c[k+(f<<2)>>2]|0)+4>>2]|0)==(d|0)){break}if((g|0)<(b|0)){f=g}else{break d}}Ao(l,f)|0;i=e;return}}while(0);b=c[a+56>>2]|0;a=c[b+8>>2]|0;if((a|0)<=0){i=e;return}f=c[b>>2]|0;g=0;while(1){k=g+1|0;if((c[(c[f+(g<<2)>>2]|0)+4>>2]|0)==(d|0)){break}if((k|0)<(a|0)){g=k}else{j=70;break}}if((j|0)==70){i=e;return}Ao(b,g)|0;i=e;return}}while(0);z=c[f>>2]|0;Qe(jd[c[(c[z>>2]|0)+48>>2]&511](z)|0,178296,w);i=e;return}function sD(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;d=i;g=i;i=i+8|0;e=i;i=i+8|0;f=b+32|0;h=b+64|0;m=c[h>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;do{if((m|0)!=-1){k=c[h>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}l=c[h>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){break}j=c[h>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){break}c[f>>2]=k<<16|m<<24|l<<8|j;j=b+36|0;k=c[h>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}l=c[h>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){break}m=c[h>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}n=c[h>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[j>>2]=l<<16|k<<24|m<<8|n;n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}m=c[h>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}l=c[h>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){break}k=c[h>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}g=b+44|0;c[g>>2]=m>>>2&1;c[b+52>>2]=m>>>3&3;h=c[j>>2]|0;if((h|0)==-1){k=(k|l<<8)&32767;c[b+40>>2]=k}else{c[b+40>>2]=h;k=h}h=FW(24)|0;n=c[f>>2]|0;c[h+4>>2]=0;c[h>>2]=177856;c[h+8>>2]=n;f=h+12|0;c[f>>2]=k;l=n+7>>3;j=h+16|0;c[j>>2]=l;do{if((n|0)<1){f=27}else{if((k|0)<1|(l|0)<1){f=27;break}if((2147483646/(l|0)|0|0)<=(k|0)){f=27;break}n=we((da(l,k)|0)+1|0)|0;e=h+20|0;c[e>>2]=n;a[n+(da(c[j>>2]|0,c[f>>2]|0)|0)|0]=0;e=c[e>>2]|0;b=b+48|0;c[b>>2]=h;if((e|0)==0){f=28;break}b=da(c[j>>2]|0,c[f>>2]|0)|0;if((c[g>>2]|0)==0){bX(e|0,0,b|0)|0;i=d;return}else{bX(e|0,-1,b|0)|0;i=d;return}}}while(0);if((f|0)==27){Qe(-1,177872,e);c[h+20>>2]=0;b=b+48|0;c[b>>2]=h;if((h|0)!=0){f=28}}if((f|0)==28){fd[c[(c[h>>2]|0)+4>>2]&511](h)}c[b>>2]=0;i=d;return}}while(0);n=c[h>>2]|0;Qe(jd[c[(c[n>>2]|0)+48>>2]&511](n)|0,178296,g);i=d;return}function tD(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;d=i;e=i;i=i+8|0;f=a+64|0;g=c[f>>2]|0;g=jd[c[(c[g>>2]|0)+20>>2]&511](g)|0;do{if((g|0)!=-1){j=c[f>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){break}k=c[f>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}l=c[f>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){break}h=c[f>>2]|0;h=jd[c[(c[h>>2]|0)+20>>2]&511](h)|0;if((h|0)==-1){break}j=k<<16|j<<24|l<<8|h;l=c[f>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){break}m=c[f>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}h=c[f>>2]|0;h=jd[c[(c[h>>2]|0)+20>>2]&511](h)|0;if((h|0)==-1){break}k=c[f>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}h=m<<16|l<<24|h<<8|k;f=g&1;e=(g>>>1&7)+1|0;o=(g>>>4&7)+1|0;g=a+144|0;l=c[g>>2]|0;c[l+4>>2]=0;c[l+8>>2]=0;l=ye(8,16)|0;if((j|0)<(h|0)){m=(1<<e)+ -1|0;n=(1<<o)+ -1|0;p=8;k=0;q=j;do{if((k|0)==(p|0)){v=k<<1;p=v;l=Ce(l,v,16)|0}c[l+(k<<4)>>2]=q;s=c[g>>2]|0;t=s+8|0;v=c[t>>2]|0;r=s+4|0;u=c[r>>2]|0;do{if(v>>>0<e>>>0){u=(1<<v)+ -1&u;v=e-v|0;c[t>>2]=0;if(v>>>0>7){while(1){w=c[s>>2]|0;u=(jd[c[(c[w>>2]|0)+20>>2]&511](w)|0)&255|u<<8;v=v+ -8|0;if(v>>>0>7){}else{break}}}if((v|0)==0){break}s=c[s>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;c[r>>2]=s;w=8-v|0;c[t>>2]=w;u=s>>>w&(1<<v)+ -1|u<<v}else{w=v-e|0;c[t>>2]=w;u=u>>>w&m}}while(0);c[l+(k<<4)+4>>2]=u;t=c[g>>2]|0;r=t+8|0;v=c[r>>2]|0;s=t+4|0;u=c[s>>2]|0;do{if(v>>>0<o>>>0){u=(1<<v)+ -1&u;v=o-v|0;c[r>>2]=0;if(v>>>0>7){while(1){w=c[t>>2]|0;u=(jd[c[(c[w>>2]|0)+20>>2]&511](w)|0)&255|u<<8;v=v+ -8|0;if(v>>>0>7){}else{break}}}if((v|0)==0){break}t=c[t>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;c[s>>2]=t;w=8-v|0;c[r>>2]=w;u=t>>>w&(1<<v)+ -1|u<<v}else{w=v-o|0;c[r>>2]=w;u=u>>>w&n}}while(0);c[l+(k<<4)+8>>2]=u;q=(1<<u)+q|0;k=k+1|0;}while((q|0)<(h|0))}else{p=8;k=0}m=f+3+k|0;if(m>>>0>p>>>0){l=Ce(l,m,16)|0}c[l+(k<<4)>>2]=j+ -1;n=c[g>>2]|0;j=n+8|0;p=c[j>>2]|0;m=n+4|0;o=c[m>>2]|0;do{if(p>>>0<e>>>0){o=(1<<p)+ -1&o;p=e-p|0;c[j>>2]=0;if(p>>>0>7){while(1){w=c[n>>2]|0;o=(jd[c[(c[w>>2]|0)+20>>2]&511](w)|0)&255|o<<8;p=p+ -8|0;if(p>>>0>7){}else{break}}}if((p|0)==0){break}v=c[n>>2]|0;v=jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;c[m>>2]=v;w=8-p|0;c[j>>2]=w;o=v>>>w&(1<<p)+ -1|o<<p}else{w=p-e|0;c[j>>2]=w;o=o>>>w&(1<<e)+ -1}}while(0);c[l+(k<<4)+4>>2]=o;c[l+(k<<4)+8>>2]=-3;j=k+1|0;c[l+(j<<4)>>2]=h;n=c[g>>2]|0;h=n+8|0;p=c[h>>2]|0;m=n+4|0;o=c[m>>2]|0;do{if(p>>>0<e>>>0){o=(1<<p)+ -1&o;p=e-p|0;c[h>>2]=0;if(p>>>0>7){while(1){w=c[n>>2]|0;o=(jd[c[(c[w>>2]|0)+20>>2]&511](w)|0)&255|o<<8;p=p+ -8|0;if(p>>>0>7){}else{break}}}if((p|0)==0){break}v=c[n>>2]|0;v=jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;c[m>>2]=v;w=8-p|0;c[h>>2]=w;o=v>>>w&(1<<p)+ -1|o<<p}else{w=p-e|0;c[h>>2]=w;o=o>>>w&(1<<e)+ -1}}while(0);c[l+(j<<4)+4>>2]=o;c[l+(j<<4)+8>>2]=32;h=k+2|0;if((f|0)!=0){c[l+(h<<4)>>2]=0;j=c[g>>2]|0;g=j+8|0;n=c[g>>2]|0;f=j+4|0;m=c[f>>2]|0;do{if(n>>>0<e>>>0){m=(1<<n)+ -1&m;e=e-n|0;c[g>>2]=0;if(e>>>0>7){while(1){w=c[j>>2]|0;m=(jd[c[(c[w>>2]|0)+20>>2]&511](w)|0)&255|m<<8;e=e+ -8|0;if(e>>>0>7){}else{break}}}if((e|0)==0){break}v=c[j>>2]|0;v=jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;c[f>>2]=v;w=8-e|0;c[g>>2]=w;m=v>>>w&(1<<e)+ -1|m<<e}else{w=n-e|0;c[g>>2]=w;m=m>>>w&(1<<e)+ -1}}while(0);c[l+(h<<4)+4>>2]=m;c[l+(h<<4)+8>>2]=-2;h=k+3|0}c[l+(h<<4)>>2]=0;c[l+(h<<4)+4>>2]=0;c[l+(h<<4)+8>>2]=-1;OC(0,l,h);v=c[a+56>>2]|0;w=FWFW(8)|0;wI(f,1<<b);c[a>>2]=f;i=e;return}function vD(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;xI(c[a+88>>2]|0);xI(c[a+92>>2]|0);xI(c[a+96>>2]|0);xI(c[a+100>>2]|0);xI(c[a+104>>2]|0);xI(c[a+108>>2]|0);xI(c[a+112>>2]|0);xI(c[a+116>>2]|0);xI(c[a+120>>2]|0);xI(c[a+124>>2]|0);xI(c[a+128>>2]|0);xI(c[a+132>>2]|0);xI(c[a+136>>2]|0);e=a+140|0;a=c[e>>2]|0;b=1<<b+1;if((c[a+4>>2]|0)==(b|0)){xI(a);i=d;return}if((a|0)!=0){yI(a);HW(a)}a=FW(8)|0;wI(a,b);c[e>>2]=a;i=d;return}function wD(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;b=c[182464+(b<<2)>>2]|0;do{if((d|0)!=0){if((c[d+4>>2]|0)!=(b|0)){break}f=a+84|0;a=c[f>>2]|0;if((c[a+4>>2]|0)==(b|0)){AI(a,d);i=e;return}if((a|0)!=0){yI(a);HW(a)}c[f>>2]=zI(d)|0;i=e;return}}while(0);a=a+84|0;d=c[a>>2]|0;if((c[d+4>>2]|0)==(b|0)){xI(d);i=e;return}if((d|0)!=0){yI(d);HW(d)}f=FW(8)|0;wI(f,1<<b);c[a>>2]=f;i=e;return}function xD(b,e,f,g,h,j,k,l,m,n){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0;o=i;v=i;i=i+8|0;t=FWFW(24)|0;c[Y+4>>2]=0;c[Y>>2]=177856;c[Y+8>>2]=f;$=Y+12|0;c[$>>2]=g;aa=f+7>>3;_=Y+16|0;c[_>>2]=aa;do{if((f|0)<1){qa=5}else{if((g|0)<1|(aa|0)<1){qa=5;break}if((2147483646/(aa|0)|0|0)<=(g|0)){qa=5;break}wa=we((da(aa,g)|0)+1|0)|0;f=Y+20|0;c[f>>2]=wa;a[wa+(da(c[_>>2]|0,c[$>>2]|0)|0)|0]=0;f=c[f>>2]|0;if((f|0)==0){break}_=da(c[_>>2]|0,c[$>>2]|0)|0;if((o|0)==0){bX(f|0,0,_|0)|0}else{bX(f|0,-1,_|0)|0}if(d){NC(c[b+144>>2]|0,Z,v)|0}else{JI(c[b+76>>2]|0,Z,c[b+104>>2]|0)|0}c[J>>2]=da(c[J>>2]|0,0-ja|0)|0;if((h|0)==0){wa=Y;i=E;return wa|0}ca=b+144|0;fa=(ja|0)==1;Z=(l|0)==0;ba=(m|0)==32;g=(1<<m)+ -1|0;ea=b+76|0;aa=b+128|0;_=b+132|0;$=b+120|0;f=b+124|0;o=b+136|0;ha=(q|0)==0;q=b+116|0;ga=b+64|0;ia=b+140|0;ma=(j|0)==32?-1:ja+ -1|0;ka=b+108|0;ja=b+104|0;la=b+112|0;oa=0;na=0;a:while(1){if(d){NC(c[ca>>2]|0,H,v)|0;c[J>>2]=(c[J>>2]|0)+(c[I>>2]<<j);NC(c[ca>>2]|0,G,t)|0}else{JI(c[ea>>2]|0,H,c[ja>>2]|0)|0;c[J>>2]=(c[J>>2]|0)+(c[I>>2]<<j);JI(c[ea>>2]|0,G,c[la>>2]|0)|0}na=(c[F>>2]|0)+na|0;b:do{if(oa>>>0<h>>>0){pa=na;while(1){do{if(fa){ta=0;qa=30}else{if(!d){JI(c[ea>>2]|0,H,c[ka>>2]|0)|0;ra=(c[I>>2]|0)+(c[J>>2]|0)|0;qa=40;break}ra=c[ca>>2]|0;sa=ra+8|0;ua=c[sa>>2]|0;qa=ra+4|0;ta=c[qa>>2]|0;if(ua>>>0>=j>>>0){qa=ua-j|0;ra=ta>>>qa&ma;c[sa>>2]=qa;c[I>>2]=ra;ra=(c[J>>2]|0)+ra|0;qa=31;break}ta=(1<<ua)+ -1&ta;ua=j-ua|0;c[sa>>2]=0;if(ua>>>0>7){while(1){wa=c[ra>>2]|0;ta=(jd[c[(c[wa>>2]|0)+20>>2]&511](wa)|0)&255|ta<<8;ua=ua+ -8|0;if(ua>>>0>7){}else{break}}}if((ua|0)==0){qa=30;break}wa=c[ra>>2]|0;wa=jd[c[(c[wa>>2]|0)+20>>2]&511](wa)|0;c[qa>>2]=wa;qa=8-ua|0;c[sa>>2]=qa;ta=wa>>>qa&(1<<ua)+ -1|ta<<ua;qa=30}}while(0);if((qa|0)==30){c[I>>2]=ta;ra=(c[J>>2]|0)+ta|0;if(d){qa=31}else{qa=40}}do{if((qa|0)==31){qa=0;ta=c[ca>>2]|0;if(!Z){NC(ta,W,l)|0;sa=c[X>>2]|0;break}sa=ta+8|0;va=c[sa>>2]|0;ua=ta+4|0;wa=c[ua>>2]|0;if(va>>>0>=m>>>0){va=va-m|0;c[sa>>2]=va;sa=wa>>>va&(ba?-1:g);break}wa=(1<<va)+ -1&wa;va=m-va|0;c[sa>>2]=0;if(va>>>0>7){while(1){xa=c[ta>>2]|0;wa=(jd[c[(c[xa>>2]|0)+20>>2]&511](xa)|0)&255|wa<<8;va=va+ -8|0;if(va>>>0>7){}else{break}}}if((va|0)==0){sa=wa;break}ta=c[ta>>2]|0;ta=jd[c[(c[ta>>2]|0)+20>>2]&511](ta)|0;c[ua>>2]=ta;xa=8-va|0;c[sa>>2]=xa;sa=ta>>>xa&(1<<va)+ -1|wa<<va}else if((qa|0)==40){qa=0;sa=KI(c[ea>>2]|0,m,c[ia>>2]|0)|0}}while(0);do{if(sa>>>0<k>>>0){do{if(e){if(d){ua=c[ca>>2]|0;ta=ua+8|0;va=c[ta>>2]|0;if((va|0)==0){va=c[ua>>2]|0;va=jd[c[(c[va>>2]|0)+20>>2]&511](va)|0;c[ua+4>>2]=va;c[ta>>2]=8;ua=va;va=7}else{ua=c[ua+4>>2]|0;va=va+ -1|0}c[ta>>2]=va;ta=ua>>>va&1;c[K>>2]=ta}else{JI(c[ea>>2]|0,U,c[o>>2]|0)|0;ta=c[K>>2]|0}if((ta|0)==0){qa=64;break}if(d){xa=NC(c[ca>>2]|0,T,w)|0;ta=c[ca>>2]|0;if(!xa){qa=82;break a}xa=NC(ta,S,x)|0;ta=c[ca>>2]|0;if(!xa){qa=81;break a}xa=NC(ta,R,y)|0;ta=c[ca>>2]|0;if(!xa){qa=80;break a}xa=NC(ta,Q,z)|0;ta=c[ca>>2]|0;if(!xa){qa=79;break a}xa=NC(ta,P,A)|0;wa=c[ca>>2]|0;c[wa+4>>2]=0;c[wa+8>>2]=0;FI(c[ea>>2]|0);if(!xa){break a}}else{if(!(JI(c[ea>>2]|0,T,c[aa>>2]|0)|0)){break a}if(!(JI(c[ea>>2]|0,S,c[_>>2]|0)|0)){break a}if(!(JI(c[ea>>2]|0,R,c[$>>2]|0)|0)){break a}if(!(JI(c[ea>>2]|0,Q,c[f>>2]|0)|0)){break a}}sa=c[n+(sa<<2)>>2]|0;if((sa|0)==0){break a}wa=c[L>>2]|0;xa=c[M>>2]|0;sa=xD(b,(c[sa+8>>2]|0)+wa|0,(c[sa+12>>2]|0)+xa|0,B,0,sa,(c[N>>2]|0)+(((wa>>31)+wa|0)/2|0)|0,(c[O>>2]|0)+(((xa>>31)+xa|0)/2|0)|0,C,D)|0}else{c[K>>2]=0;qa=64}}while(0);if((qa|0)==64){qa=0;sa=c[n+(sa<<2)>>2]|0}if((sa|0)==0){break a}ta=(c[sa+8>>2]|0)+ -1|0;qa=(c[sa+12>>2]|0)+ -1|0;do{if(ha){if((r|0)==1){WC(Y,sa,pa,ra,p);qa=ta;break}else if((r|0)==0){WC(Y,sa,pa,ra-qa|0,p);qa=ta;break}else if((r|0)==3){WC(Y,sa,pa,ra,p);qa=ta;break}else if((r|0)==2){WC(Y,sa,pa,ra-qa|0,p);qa=ta;break}else{qa=ta;break}}else{if((r|0)==3){WC(Y,sa,ra-ta|0,pa,p);break}else if((r|0)==2){WC(Y,sa,ra-ta|0,pa,p);break}else if((r|0)==1){WC(Y,sa,ra,pa,p);break}else if((r|0)==0){WC(Y,sa,ra,pa,p);break}else{break}}}while(0);pa=qa+pa|0;if((c[K>>2]|0)==0){break}fd[c[(c[sa>>2]|0)+4>>2]&511](sa)}else{xa=c[ga>>2]|0;Qe(jd[c[(c[xa>>2]|0)+48>>2]&511](xa)|0,181960,V)}}while(0);oa=oa+1|0;if(d){if(!(NC(c[ca>>2]|0,G,u)|0)){break b}}else{if(!(JI(c[ea>>2]|0,G,c[q>>2]|0)|0)){break b}}if(oa>>>0<h>>>0){pa=pa+s+(c[F>>2]|0)|0}else{break}}}}while(0);if(oa>>>0>=h>>>0){qa=89;break}}if((qa|0)==79){c[ta+4>>2]=0;c[ta+8>>2]=0;FI(c[ea>>2]|0)}else if((qa|0)==80){c[ta+4>>2]=0;c[ta+8>>2]=0;FI(c[ea>>2]|0)}else if((qa|0)==81){c[ta+4>>2]=0;c[ta+8>>2]=0;FI(c[ea>>2]|0)}else if((qa|0)==82){c[ta+4>>2]=0;c[ta+8>>2]=0;FI(c[ea>>2]|0)}else if((qa|0)==89){i=E;return Y|0}if((Y|0)==0){xa=0;i=E;return xa|0}fd[c[(c[Y>>2]|0)+4>>2]&511](Y);xa=0;i=E;return xa|0}}while(0);do{if((qa|0)==5){Qe(-1,177872,ba);c[Y+20>>2]=0;if((Y|0)==0){Y=0}else{break}i=E;return Y|0}}while(0);fd[c[(c[Y>>2]|0)+4>>2]&511](Y);xa=0;i=E;return xa|0}
7333 fWturn q|0}if((f|0)==(c[291312>>2]|0)){f=(c[291300>>2]|0)+k|0;if(f>>>0<=b>>>0){q=0;i=d;return q|0}q=f-b|0;c[e>>2]=g&1|b|2;c[a+(b+4)>>2]=q|1;c[291312>>2]=a+b;c[291300>>2]=q;q=a;i=d;return q|0}if((f|0)==(c[291308>>2]|0)){h=(c[291296>>2]|0)+k|0;if(h>>>0<b>>>0){q=0;i=d;return q|0}f=h-b|0;if(f>>>0>15){c[e>>2]=g&1|b|2;c[a+(b+4)>>2]=f|1;c[a+h>>2]=f;e=a+(h+4)|0;c[e>>2]=c[e>>2]&-2;e=a+b|0}else{c[e>>2]=g&1|h|2;e=a+(h+4)|0;c[e>>2]=c[e>>2]|1;e=0;f=0}c[291296>>2]=f;c[291308>>2]=e;q=a;i=d;return q|0}if((o&2|0)!=0){q=0;i=d;return q|0}h=(o&-8)+k|0;if(h>>>0<b>>>0){q=0;i=d;return q|0}g=h-b|0;n=o>>>3;a:do{if(o>>>0<256){j=c[a+(k+8)>>2]|0;k=c[a+(k+12)>>2]|0;o=291328+(n<<1<<2)|0;do{if((j|0)!=(o|0)){if(j>>>0<l>>>0){tc()}if((c[j+12>>2]|0)==(f|0)){break}tc()}}while(0);if((k|0)==(j|0)){c[72822]=c[72822]&~(1<<n);break}do{if((k|0)==(o|0)){m=k+8|0}else{if(k>>>0<l>>>0){tc()}l=k+8|0;if((c[l>>2]|0)==(f|0)){m=l;break}tc()}}while(0);c[j+12>>2]=k;c[m>>2]=j}else{m=c[a+(k+24)>>2]|0;o=c[a+(k+12)>>2]|0;do{if((o|0)==(f|0)){n=a+(k+20)|0;o=c[n>>2]|0;if((o|0)==0){n=a+(k+16)|0;o=c[n>>2]|0;if((o|0)==0){j=0;break}}while(1){p=o+20|0;q=c[p>>2]|0;if((q|0)!=0){o=q;n=p;continue}p=o+16|0;q=c[p>>2]|0;if((q|0)==0){break}else{n=p;o=q}}if(n>>>0<l>>>0){tc()}else{c[n>>2]=0;j=o;break}}else{n=c[a+(k+8)>>2]|0;if(n>>>0<l>>>0){tc()}l=n+12|0;if((c[l>>2]|0)!=(f|0)){tc()}p=o+8|0;if((c[p>>2]|0)==(f|0)){c[l>>2]=o;c[p>>2]=n;j=o;break}else{tc()}}}while(0);if((m|0)==0){break}n=a+(k+28)|0;l=291592+(c[n>>2]<<2)|0;do{if((f|0)==(c[l>>2]|0)){c[l>>2]=j;if((j|0)!=0){break}c[291292>>2]=c[291292>>2]&~(1<<c[n>>2]);break a}else{if(m>>>0<(c[291304>>2]|0)>>>0){tc()}l=m+16|0;if((c[l>>2]|0)==(f|0)){c[l>>2]=j}else{c[m+20>>2]=j}if((j|0)==0){break a}}}while(0);if(j>>>0<(c[291304>>2]|0)>>>0){tc()}c[j+24>>2]=m;f=c[a+(k+16)>>2]|0;do{if((f|0)!=0){if(f>>>0<(c[291304>>2]|0)>>>0){tc()}else{c[j+16>>2]=f;c[f+24>>2]=j;break}}}while(0);f=c[a+(k+20)>>2]|0;if((f|0)==0){break}if(f>>>0<(c[291304>>2]|0)>>>0){tc()}else{c[j+20>>2]=f;c[f+24>>2]=j;break}}}while(0);if(g>>>0<16){c[e>>2]=h|c[e>>2]&1|2;q=a+(h|4)|0;c[q>>2]=c[q>>2]|1;q=a;i=d;return q|0}else{c[e>>2]=c[e>>2]&1|b|2;c[a+(b+4)>>2]=g|3;q=a+(h|4)|0;c[q>>2]=c[q>>2]|1;EW(a+b|0,g);q=a;i=d;return q|0}return 0}function EW(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;d=i;h=a+b|0;l=c[a+4>>2]|0;a:do{if((l&1|0)==0){p=c[a>>2]|0;if((l&3|0)==0){i=d;return}l=a+(0-p)|0;m=p+b|0;q=c[291304>>2]|0;if(l>>>0<q>>>0){tc()}if((l|0)==(c[291308>>2]|0)){e=a+(b+4)|0;if((c[e>>2]&3|0)!=3){e=l;n=m;break}c[291296>>2]=m;c[e>>2]=c[e>>2]&-2;c[a+(4-p)>>2]=m|1;c[h>>2]=m;i=d;return}s=p>>>3;if(p>>>0<256){e=c[a+(8-p)>>2]|0;n=c[a+(12-p)>>2]|0;o=291328+(s<<1<<2)|0;do{if((e|0)!=(o|0)){if(e>>>0<q>>>0){tc()}if((c[e+12>>2]|0)==(l|0)){break}tc()}}while(0);if((n|0)==(e|0)){c[72822]=c[72822]&~(1<<s);e=l;n=m;break}do{if((n|0)==(o|0)){r=n+8|0}else{if(n>>>0<q>>>0){tc()}o=n+8|0;if((c[o>>2]|0)==(l|0)){r=o;break}tc()}}while(0);c[e+12>>2]=n;c[r>>2]=e;e=l;n=m;break}r=c[a+(24-p)>>2]|0;t=c[a+(12-p)>>2]|0;do{if((t|0)==(l|0)){u=16-p|0;s=a+(u+4)|0;t=c[s>>2]|0;if((t|0)==0){s=a+u|0;t=c[s>>2]|0;if((t|0)==0){o=0;break}}while(1){u=t+20|0;v=c[u>>2]|0;if((v|0)!=0){t=v;s=u;continue}u=t+16|0;v=c[u>>2]|0;if((v|0)==0){break}else{s=u;t=v}}if(s>>>0<q>>>0){tc()}else{c[s>>2]=0;o=t;break}}else{s=c[a+(8-p)>>2]|0;if(s>>>0<q>>>0){tc()}u=s+12|0;if((c[u>>2]|0)!=(l|0)){tc()}q=t+8|0;if((c[q>>2]|0)==(l|0)){c[u>>2]=t;c[q>>2]=s;o=t;break}else{tc()}}}while(0);if((r|0)==0){e=l;n=m;break}q=a+(28-p)|0;s=291592+(c[q>>2]<<2)|0;do{if((l|0)==(c[s>>2]|0)){c[s>>2]=o;if((o|0)!=0){break}c[291292>>2]=c[291292>>2]&~(1<<c[q>>2]);e=l;n=m;break a}else{if(r>>>0<(c[291304>>2]|0)>>>0){tc()}q=r+16|0;if((c[q>>2]|0)==(l|0)){c[q>>2]=o}else{c[r+20>>2]=o}if((o|0)==0){e=l;n=m;break a}}}while(0);if(o>>>0<(c[291304>>2]|0)>>>0){tc()}c[o+24>>2]=r;p=16-p|0;q=c[a+p>>2]|0;do{if((q|0)!=0){if(q>>>0<(c[291304>>2]|0)>>>0){tc()}else{c[o+16>>2]=q;c[q+24>>2]=o;break}}}while(0);p=c[a+(p+4)>>2]|0;if((p|0)==0){e=l;n=m;break}if(p>>>0<(c[291304>>2]|0)>>>0){tc()}else{c[o+20>>2]=p;c[p+24>>2]=o;e=l;n=m;break}}else{e=a;n=b}}while(0);l=c[291304>>2]|0;if(h>>>0<l>>>0){tc()}m=a+(b+4)|0;o=c[m>>2]|0;do{if((o&2|0)==0){if((h|0)==(c[291312>>2]|0)){v=(c[291300>>2]|0)+n|0;c[291300>>2]=v;c[291312>>2]=e;c[e+4>>2]=v|1;if((e|0)!=(c[291308>>2]|0)){i=d;return}c[291308>>2]=0;c[291296>>2]=0;i=d;return}if((h|0)==(c[291308>>2]|0)){v=(c[291296>>2]|0)+n|0;c[291296>>2]=v;c[291308>>2]=e;c[e+4>>2]=v|1;c[e+v>>2]=v;i=d;return}n=(o&-8)+n|0;m=o>>>3;b:do{if(o>>>0<256){j=c[a+(b+8)>>2]|0;a=c[a+(b+12)>>2]|0;b=291328+(m<<1<<2)|0;do{if((j|0)!=(b|0)){if(j>>>0<l>>>0){tc()}if((c[j+12>>2]|0)==(h|0)){break}tc()}}while(0);if((a|0)==(j|0)){c[72822]=c[72822]&~(1<<m);break}do{if((a|0)==(b|0)){k=a+8|0}else{if(a>>>0<l>>>0){tc()}b=a+8|0;if((c[b>>2]|0)==(h|0)){k=b;break}tc()}}while(0);c[j+12>>2]=a;c[k>>2]=j}else{k=c[a+(b+24)>>2]|0;m=c[a+(b+12)>>2]|0;do{if((m|0)==(h|0)){o=a+(b+20)|0;m=c[o>>2]|0;if((m|0)==0){o=a+(b+16)|0;m=c[o>>2]|0;if((m|0)==0){j=0;break}}while(1){p=m+20|0;q=c[p>>2]|0;if((q|0)!=0){o=p;m=q;continue}p=m+16|0;q=c[p>>2]|0;if((q|0)==0){break}else{m=q;o=p}}if(o>>>0<l>>>0){tc()}else{c[o>>2]=0;j=m;break}}else{o=c[a+(b+8)>>2]|0;if(o>>>0<l>>>0){tc()}p=o+12|0;if((c[p>>2]|0)!=(h|0)){tc()}l=m+8|0;if((c[l>>2]|0)==(h|0)){c[p>>2]=m;c[l>>2]=o;j=m;break}else{tc()}}}while(0);if((k|0)==0){break}m=a+(b+28)|0;l=291592+(c[m>>2]<<2)|0;do{if((h|0)==(c[l>>2]|0)){c[l>>2]=j;if((j|0)!=0){break}c[291292>>2]=c[291292>>2]&~(1<<c[m>>2]);break b}else{if(k>>>0<(c[291304>>2]|0)>>>0){tc()}l=k+16|0;if((c[l>>2]|0)==(h|0)){c[l>>2]=j}else{c[k+20>>2]=j}if((j|0)==0){break b}}}while(0);if(j>>>0<(c[291304>>2]|0)>>>0){tc()}c[j+24>>2]=k;h=c[a+(b+16)>>2]|0;do{if((h|0)!=0){if(h>>>0<(c[291304>>2]|0)>>>0){tc()}else{c[j+16>>2]=h;c[h+24>>2]=j;break}}}while(0);h=c[a+(b+20)>>2]|0;if((h|0)==0){break}if(h>>>0<(c[291304>>2]|0)>>>0){tc()}else{c[j+20>>2]=h;c[h+24>>2]=j;break}}}while(0);c[e+4>>2]=n|1;c[e+n>>2]=n;if((e|0)!=(c[291308>>2]|0)){break}c[291296>>2]=n;i=d;return}else{c[m>>2]=o&-2;c[e+4>>2]=n|1;c[e+n>>2]=n}}while(0);a=n>>>3;if(n>>>0<256){b=a<<1;h=291328+(b<<2)|0;j=c[72822]|0;a=1<<a;do{if((j&a|0)==0){c[72822]=j|a;g=h;f=291328+(b+2<<2)|0}else{a=291328+(b+2<<2)|0;j=c[a>>2]|0;if(j>>>0>=(c[291304>>2]|0)>>>0){g=j;f=a;break}tc()}}while(0);c[f>>2]=e;c[g+12>>2]=e;c[e+8>>2]=g;c[e+12>>2]=h;i=d;return}f=n>>>8;do{if((f|0)==0){f=0}else{if(n>>>0>16777215){f=31;break}u=(f+1048320|0)>>>16&8;v=f<<u;t=(v+520192|0)>>>16&4;v=v<<t;f=(v+245760|0)>>>16&2;f=14-(t|u|f)+(v<<f>>>15)|0;f=n>>>(f+7|0)&1|f<<1}}while(0);g=291592+(f<<2)|0;c[e+28>>2]=f;c[e+20>>2]=0;c[e+16>>2]=0;j=c[291292>>2]|0;h=1<<f;if((j&h|0)==0){c[291292>>2]=j|h;c[g>>2]=e;c[e+24>>2]=g;c[e+12>>2]=e;c[e+8>>2]=e;i=d;return}h=c[g>>2]|0;if((f|0)==31){f=0}else{f=25-(f>>>1)|0}c:do{if((c[h+4>>2]&-8|0)!=(n|0)){f=n<<f;j=h;while(1){g=j+16+(f>>>31<<2)|0;h=c[g>>2]|0;if((h|0)==0){break}if((c[h+4>>2]&-8|0)==(n|0)){break c}else{f=f<<1;j=h}}if(g>>>0<(c[291304>>2]|0)>>>0){tc()}c[g>>2]=e;c[e+24>>2]=j;c[e+12>>2]=e;c[e+8>>2]=e;i=d;return}}while(0);f=h+8|0;j=c[f>>2]|0;g=c[291304>>2]|0;if(h>>>0<g>>>0){tc()}if(j>>>0<g>>>0){tc()}c[j+12>>2]=e;c[f>>2]=e;c[e+8>>2]=j;c[e+12>>2]=h;c[e+24>>2]=0;i=d;return}function FW(a){a=a|0;var b=0,d=0,e=0;b=i;a=(a|0)==0?1:a;while(1){d=AW(a)|0;if((d|0)!=0){a=6;break}e=291784;d=c[e>>2]|0;c[e>>2]=0+d;if((d|0)==0){a=5;break}Hd[d&1]()}if((a|0)==5){e=cc(4)|0;c[e>>2]=291800;uc(e|0,291848,327)}else if((a|0)==6){i=b;return d|0}return 0}function GW(a){a=a|0;var b=0;b=i;a=FW(a)|0;i=b;return a|0}function HW(a){a=a|0;var b=0;b=i;if((a|0)!=0){BW(a)}i=b;return}function IW(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function JW(a){a=a|0;var b=0;b=i;lb(a|0);HW(a);i=b;return}function KW(a){a=a|0;var b=0;b=i;lb(a|0);i=b;return}function LW(a){a=a|0;i=i;return 291816}
7343 var dd=[$X,bQ];var ed=[aY,LM,xW,wW];var fd=[bY,Te,Se,tg,sg,Gg,Fg,Jg,Ig,Pg,Og,Sg,hi,WF,Oi,Pi,hj,ij,tj,sj,kj,jj,vj,wj,rm,Fj,Ej,Hj,Ij,Ql,Nj,Mj,Pj,Qj,dm,Vj,Uj,Xj,Yj,km,ak,Pm,Rm,ik,hk,jk,ok,nk,pk,vk,uk,Bk,Fk,Ek,Gk,Kk,Jk,Mk,Lk,Vk,Uk,Xk,$k,Wk,sl,rl,ul,tl,Hl,Gl,Cm,yn,zn,ln,An,Gn,Fn,Xn,Wn,Yp,Xp,fq,eq,sq,rq,uq,jt,kt,lt,mt,sr,rr,nt,ot,pt,qt,Cr,Br,Kr,Jr,Or,Nr,Rr,Qr,Wr,Vr,_r,Zr,bs,as,fs,es,ks,js,us,ts,zs,ys,Cs,Bs,Fs,Es,Js,Is,Ms,Ls,Ps,Os,Ss,Rs,Ws,Vs,$s,_s,Hu,Gu,Iu,iv,hv,Sv,lv,kv,ov,Tv,Uv,qv,sv,rv,Vv,Wv,xv,wv,zv,Dv,Cv,Gv,Fv,Jv,Iv,Kv,Wx,Vx,ey,dy,oy,ny,Iy,Uy,az,hz,pz,wz,Cz,Kz,Jz,Uz,Tz,bA,aA,iA,hA,pA,oA,zA,yA,DA,CA,GA,FA,PA,OA,UA,TA,ZA,YA,cB,bB,jB,iB,TC,SC,YC,XC,_C,ZC,aD,$C,dD,cD,eD,gD,HD,GD,ID,KD,yE,xE,BE,AE,EE,DE,HE,GE,JE,IE,ME,LE,PE,OE,SE,RE,VE,UE,YE,XE,_E,ZE,xF,yF,wG,xG,vG,yG,MG,NG,QG,PG,$G,_G,rH,qH,wH,vH,DH,HH,LH,KH,OH,TH,SH,$H,_H,cI,sI,uI,vI,NI,MI,tL,xL,QL,VL,cM,kM,mM,vM,xM,zM,AM,BM,MM,SM,UM,XM,_M,dN,hN,tN,dO,jP,IP,SP,UP,cQ,dQ,kQ,IQ,aR,dR,fR,mS,pS,rS,tS,dT,gT,iT,kT,yT,BT,DT,FT,WT,tU,MU,RU,eV,hV,jV,lV,sV,wV,nW,qW,oW,pW,rW,KW,JW,rL,IL,KL,IN,DN,vN,mO,rO,yO,vO,UQ,YR,wU,cW,iW,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY];var gd=[cY,Ph,Bi,cY];var hd=[dY,wg,zh,NF,Tg,Ug,Vg,Xg,Yg,Zg,_g,$g,ah,bh,ii,ji,ki,li,ch,eh,fh,gh,hh,mi,ni,oi,ih,qi,ri,si,ti,ui,vi,wi,kh,mh,nh,oh,ph,qh,Ei,Fi,Hi,th,wh,xh,QF,SF,Ki,Ih,Lh,Nh,Kj,Sj,_j,nm,gk,$y,fz,oz,uz,Bz,Hz,Rz,_z,gA,nA,uA,vL,AL,HM,FS,GS,HS,IS,JS,KS,LS,MS,NS,OS,oT,pT,qT,JT,KT,LT,MT,gU,kU,oU,LL,GN,fW,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY];var id=[eY,UN,$P,eY];var jd=[fY,vg,yg,zg,Ag,Bg,Cg,Dg,Eg,Sh,Uh,Vh,Wh,Qh,Rh,Yh,Zh,_h,ai,bi,ci,di,Mi,XF,Mh,lj,Tl,Ul,Vl,Il,Kl,Ll,Yl,Zl,qm,sm,tm,um,vm,wm,Ml,Nl,Ol,Pl,Rl,Wl,_l,$l,am,bm,cm,em,fm,gm,hm,im,jm,lm,mm,Om,ck,dk,Qm,Sm,fk,om,pm,kk,xm,ym,qk,Hm,wk,yk,Ak,Im,Jm,Km,zm,Am,Nk,Lm,al,cl,Mm,vl,xl,Al,Nm,Bm,Dm,Em,wq,xq,et,gt,ht,it,Ou,Ku,Mu,Ju,Pu,xy,yy,gy,zy,ry,qy,Vy,dC,eC,fC,gC,cC,bz,pC,aC,bC,qC,iz,hC,iC,jC,kC,qz,rC,sC,xz,lC,mC,Dz,tC,uC,Lz,vC,Qz,wC,Vz,xC,yC,zC,cA,AC,BC,CC,jA,DC,EC,FC,qA,nC,oC,AA,EA,QA,VA,_A,dB,lB,AD,BD,CD,DD,ED,hD,iD,jD,aE,LD,ND,$E,aF,bF,cF,dF,eF,fF,gF,hF,iF,jF,kF,nF,oF,lF,mF,pF,qF,rF,sF,tF,uF,dI,eI,fI,gI,hI,iI,jI,kI,lI,mI,nI,oI,pI,qI,rI,lM,CM,QM,YM,LN,MN,NN,sN,TN,XN,YN,eO,CP,JQ,$Q,eR,gR,lS,qS,sS,bT,ZS,cT,hT,jT,wT,xT,CT,ET,RT,PT,sU,dV,iV,kV,GV,HV,IV,JV,XV,VV,LW,zt,At,nu,pu,VR,WR,XR,nR,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY];var kd=[gY,uh];var ld=[hY,OF,PF,hY];var md=[iY,rh];var nd=[jY,yi];var od=[kY,Hg];var pd=[lY,Th,Kg,vq,VI,WL,gM,nM,oM,wM,GM,WM,fO,gO,mP,xP,JP,ZP,yP,KQ,LQ,OQ,PQ,YQ,hR,iR,uS,vS,$S,WS,lT,rT,GT,ST,XT,SU,mV,nV,TV,PV,NL,qN,eK,UR,dW,hW,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY];var qd=[mY,sh];var rd=[nY,Xh];var sd=[oY,ug,zi,Ai,Ci,Oh,Di,oj,pj,mj,Xl,lk,rk,Ck,Hk,Sk,ol,Bl,wl,Fm,kD,OD,KG,LG,sH,UI,tK,$L,aM,hM,qM,rM,sM,tM,uM,FM,PM,RM,VM,bO,iO,nP,pP,qP,KP,MP,aQ,AP,eQ,gQ,iQ,lQ,mQ,vP,wP,NQ,XQ,iS,kS,dS,SS,TS,VS,tT,eU,iU,mU,qU,bV,cV,RV,sW,Ve,We,Ch,Bh,Eh,HN,uK,BR,wR,ER,FR,xR,yR,CR,DR,IR,JR,KR,LR,zS,eW,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY];var td=[pY,gi];var ud=[qY,Kh,zW,yW,kO,lO,pO,qO];var vd=[rY,Fh,Gh,rY];var wd=[sY,ft];var xd=[tY,fy,py,tY];var yd=[uY,Hh];var zd=[vY,Ah];var Ad=[wY,Dh];var Bd=[xY,xg,$h,ei,fi,Ji,Qi,gj,Sl,mk,sk,Dk,Ik,Tk,pl,Cl,Gm,Bn,Nu,lD,PD,wF,zG,tI,RI,SI,TI,sL,uL,wL,yL,BL,PL,RL,SL,TL,XL,YL,bM,dM,eM,iM,DM,NM,ZM,$M,aN,bN,cN,eN,fN,gN,iN,jN,VN,WN,SN,$N,cO,AO,BO,CO,DO,EO,FO,GO,HO,IO,JO,KO,LO,MO,NO,OO,PO,QO,RO,SO,TO,UO,VO,WO,XO,YO,ZO,_O,$O,aP,bP,cP,dP,eP,fP,gP,hP,iP,kP,lP,oP,rP,sP,tP,LP,NP,OP,PP,QP,RP,TP,VP,WP,XP,YP,_P,fQ,hQ,jQ,EP,zP,uP,FQ,HQ,VQ,WQ,bR,kR,lR,jS,nS,wS,yS,aT,XS,YS,_S,RS,US,eT,mT,uT,vT,sT,zT,HT,IT,TT,NT,OT,QT,UT,YT,ZT,$T,aU,bU,cU,dU,fU,hU,jU,lU,nU,pU,LU,NU,OU,PU,TU,UU,fV,pV,qV,rV,tV,uV,vV,xV,yV,WV,UV,SV,QV,yh,Dq,Xq,gr,cv,ly,my,HK,JL,lN,oN,wN,ZN,tQ,uQ,oR,rR,BS,AS,nT,aV,zV,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY];var Cd=[yY,fj,Gj,Oj,Wj,bk,vF,dL,eL,fL,gL,hL,iL,jL,kL,lL,UL,sK,fM,jM,EM,JM,KM,GP,HP,DP,nQ,FP,cR,jR,oS,xS,fT,AT,VT,rU,QU,gV,oV,rN,WU,ZU,$U,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY];var Dd=[zY,yH,QI,zY];var Ed=[AY,Wg,vh,AY];var Fd=[BY,xH,OI,PI,TM,BY,BY,BY];var Gd=[CY,Re,Rg,Gi,Ii,RF,TF,UF,VF,Li,Jh,Ni,nj,Jl,xj,Jj,Rj,Zj,ek,zk,zl,Gr,Sr,Xr,cs,gs,qs,vs,Gs,Ts,Xs,Yv,Zv,_v,$v,aw,bw,cw,dw,ew,fw,gw,hw,iw,jw,kw,lw,mw,nw,ow,pw,qw,rw,sw,tw,uw,vw,ww,xw,yw,zw,Aw,Bw,Cw,Dw,Ew,Fw,Gw,Hw,Iw,Jw,Kw,Lw,Mw,Nw,Ow,Pw,Qw,Rw,Sw,Tw,Uw,Vw,Ww,Xw,Yw,Zw,_w,$w,ax,bx,cx,dx,ex,fx,gx,hx,ix,jx,kx,lx,Wy,Yy,_y,cz,dz,ez,jz,lz,nz,rz,sz,tz,yz,zz,Az,Ez,Fz,Gz,Mz,Nz,Pz,Wz,Xz,Zz,dA,eA,fA,kA,lA,mA,rA,sA,tA,QD,IH,MH,PH,UH,aI,zL,pN,aO,hO,GQ,MQ,EN,FN,zN,jO,oO,pR,qR,sR,tR,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY];var Hd=[DY,EY];var Id=[FY,pi,xi,FY];var Jd=[GY,Ri,Si,Ti,Ui,Vi,Wi,Xi,Yi,Zi,_i,$i,aj,bj,cj,dj,Xy,Zy,Sy,_B,$B,kz,mz,Iz,Oz,Sz,Yz,$z,yM,IM,OM,tW,uW,xN,yN,vJ,RQ,MR,NR,OR,PR,QR,RR,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY];return{_saveSetjmp:YW,_memcmp:iX,_strncasecmp:XW,_strcat:cX,_free:BW,_main:_d,_realloc:CW,_i64Add:gX,_memmove:aX,_tolower:WW,_strlen:ZW,_memset:bX,_malloc:AW,_bitshift64Ashr:_W,_memcpy:$W,_strncpy:hX,_bitshift64Lshr:jX,_bitshift64Shl:dX,_i64Subtract:fX,_strcpy:eX,_testSetjmp:kX,runPostSets:VW,stackAlloc:Kd,stackSave:Ld,stackRestore:Md,setThrew:Nd,setTempRet0:Qd,setTempRet1:Rd,setTempRet2:Sd,setTempRet3:Td,setTempRet4:Ud,setTempRet5:Vd,setTempRet6:Wd,setTempRet7:Xd,setTempRet8:Yd,setTempRet9:Zd,dynCall_iiiiiiii:uX,dynCall_viiiii:vX,dynCall_vi:wX,dynCall_iiiidd:xX,dynCall_vii:yX,dynCall_iiiiiii:zX,dynCall_ii:AX,dynCall_viidd:BX,dynCall_viddii:CX,dynCall_viiddddddiiii:DX,dynCall_iiiiiiiiiiiidd:EX,dynCall_vidii:FX,dynCall_iiiii:GX,dynCall_iiiddddiii:HX,dynCall_viiiiiiiiiii:IX,dynCall_iiii:JX,dynCall_iiiddiiiiiiiiiii:KX,dynCall_viiiiii:LX,dynCall_viiiiiiiiiiiii:MX,dynCall_di:NX,dynCall_iiiiiiiiiii:OX,dynCall_viiiiiii:PX,dynCall_viiiiiiiii:QX,dynCall_viiiiiiiiii:RX,dynCall_iii:SX,dynCall_iiiiii:TX,dynCall_dii:UX,dynCall_viidddddd:VX,dynCall_iiiiiiiiii:WX,dynCall_viii:XX,dynCall_v:YX,dynCall_viid:ZX,dynCall_viiii:_X}})