Lines Matching refs:Sd

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=FW(256)|0;if((a[608]&1)==0){o=(a[616]&1)!=0?1:2}else{o=0}Mg(m,o,4,0,n,1,1);Qg(m,c[l+28>>2]|0);n=c[290]|0;if((n|0)!=0){c[292]=n;c[294]=n}n=_f(l)|0;if(n>>>0>9){o=1;while(1){o=o+1|0;if(n>>>0>99){n=(n>>>0)/10|0}else{break}}}else{o=1}q=c[286]|0;a:do{if((q|0)<=(c[288]|0)){n=(d|0)==0;while(1){if((a[1184]&1)==0){k=61}else{if((q&1|0)!=0){k=61}}do{if((k|0)==61){k=0;if((a[1192]&1)!=0){if(((q|0)%2|0|0)==1){break}}b=(a[1200]&1)==0;k=($f(l,q)|0)==0;do{if(b){if(k){x=0.0}else{b=c[($f(l,q)|0)+36>>2]|0;x=+h[b+16>>3]- +h[b>>3]}if(($f(l,q)|0)==0){w=0.0;break}b=c[($f(l,q)|0)+36>>2]|0;w=+h[b+24>>3]- +h[b+8>>3]}else{if(k){x=0.0}else{b=c[($f(l,q)|0)+36>>2]|0;x=+h[b+48>>3]- +h[b+32>>3]}if(($f(l,q)|0)==0){w=0.0;break}b=c[($f(l,q)|0)+36>>2]|0;w=+h[b+56>>3]- +h[b+40>>3]}}while(0);k=c[302]|0;do{if((k|0)==0){k=c[304]|0;if((k|0)!=0){h[79]=+(k|0)*72.0/x}k=c[306]|0;if((k|0)==0){y=+h[80];break}else{y=+(k|0)*72.0/w;h[80]=y;break}}else{y=+(k|0)*72.0/(x>w?x:w);h[78]=y;h[80]=y;h[79]=y}}while(0);x=x*(+h[79]/72.0);y=w*(y/72.0);if(($f(l,q)|0)==0){k=81}else{if((c[(c[($f(l,q)|0)+36>>2]|0)+168>>2]|0)==90){k=83}else{k=81}}do{if((k|0)==81){k=0;if(($f(l,q)|0)==0){w=y;break}if((c[(c[($f(l,q)|0)+36>>2]|0)+168>>2]|0)==270){k=83}else{w=y}}}while(0);if((k|0)==83){k=0;w=x;x=y}if(n){$d(l,m,q,c[318]|0,c[320]|0,c[294]|0,c[292]|0,x,w,0);break}if((a[608]&1)==0){r=(a[616]&1)!=0?1256:1264}else{r=1248}c[j>>2]=480;c[g+4>>2]=d;c[g+8>>2]=o;c[g+12>>2]=q;c[g+16>>2]=r;hc(f|0,512,1232,g|0)|0;$d(l,m,q,c[318]|0,c[320]|0,c[294]|0,c[292]|0,x,w,f)}}while(0);if((q|0)>=(c[288]|0)){break a}q=q+1|0}}}while(0);if((m|0)==0){f=0;break}fd[c[(c[m>>2]|0)+4>>2]&511](m);f=0}}while(0);if((l|0)!=0){Zf(l);HW(l)}g=c[834]|0;if((g|0)==0){b=f;i=e;return b|0}af(g);HW(g);b=f;i=e;return b|0}}while(0);f=c[p>>2]|0;c[t>>2]=688;Gc(f|0,664,s|0)|0;c[r>>2]=704;Gc(f|0,696,q|0)|0;c[v>>2]=784;Gc(f|0,696,u|0)|0;f=a[648]|0;if((f&1)==0){be(824,840,8);f=a[648]|0}do{if((f&1)==0){if((a[656]&1)==0){f=99}else{break}i=e;return f|0}}while(0);b=0;i=e;return b|0}function $d(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;m=+m;n=n|0;var o=0;o=i;if((j|0)==0){j=~~+ca(+l)}if((k|0)==0){k=~~+ca(+m)}if(+(j+f|0)>l){j=~~+ca(+(l- +(f|0)))}if(+(k+g|0)>m){k=~~+ca(+(m- +(g|0)))}ag(b,d,e,+h[79],+h[80],0,(a[1200]&1)==0,0,0,f,g,j,k,0,0,0,0);if((n|0)==0){fb(2624)|0;i=o;return}else{Me(c[d+180>>2]|0,n)|0;i=o;return}}function ae(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,q=0,r=0,s=0,t=0,u=0.0;f=i;q=c[d>>2]|0;if((q|0)<=1){t=1;i=f;return t|0}j=c[p>>2]|0;g=1;k=1;a:while(1){n=e+(g<<2)|0;l=g+1|0;m=e+(l<<2)|0;b:while(1){r=c[n>>2]|0;if((Qc(r|0,2656)|0)==0){j=5;break a}s=c[b>>2]|0;if((s|0)==0){break}else{o=b}while(1){t=c[o+4>>2]|0;if((t|0)<4){if((Qc(s|0,r|0)|0)==0){break}}o=o+20|0;s=c[o>>2]|0;if((s|0)==0){break b}}if((o|0)==0){break}c:do{if((t|0)==3){if((l|0)>=(q|0)){r=1;o=0;break}t=o+8|0;r=o+12|0;hX(c[t>>2]|0,c[m>>2]|0,(c[r>>2]|0)+ -1|0)|0;a[(c[t>>2]|0)+((c[r>>2]|0)+ -1)|0]=0;r=2;o=1}else if((t|0)==1){if((l|0)>=(q|0)){r=1;o=0;break}q=c[m>>2]|0;t=a[q]|0;if(t<<24>>24==43|t<<24>>24==45){r=q+1|0}else{r=q}while(1){s=a[r]|0;if(((s<<24>>24)+ -48|0)>>>0>=10){break}r=r+1|0}if(s<<24>>24!=0){r=1;o=0;break}r=ec(q|0)|0;c[c[o+8>>2]>>2]=r;r=2;o=1}else if((t|0)==0){a[c[o+8>>2]|0]=1;r=1;o=1}else if((t|0)==2){if((l|0)>=(q|0)){r=1;o=0;break}q=c[m>>2]|0;t=a[q]|0;if(t<<24>>24==43|t<<24>>24==45){s=q+1|0;t=a[s]|0}else{s=q}if(((t<<24>>24)+ -48|0)>>>0<10){r=0;while(1){s=s+1|0;r=r+1|0;t=a[s]|0;if(((t<<24>>24)+ -48|0)>>>0<10){}else{break}}}else{r=0}t=t<<24>>24==46?s+1|0:s;s=a[t]|0;if(((s<<24>>24)+ -48|0)>>>0<10){while(1){t=t+1|0;r=r+1|0;s=a[t]|0;if(((s<<24>>24)+ -48|0)>>>0<10){}else{break}}}do{if((r|0)>0){if(!(s<<24>>24==69|s<<24>>24==101)){break}r=t+1|0;s=a[r]|0;if(s<<24>>24==43|s<<24>>24==45){r=t+2|0;s=a[r]|0}if(((s<<24>>24)+ -48|0)>>>0>=10){r=1;o=0;break c}while(1){r=r+1|0;s=a[r]|0;if(((s<<24>>24)+ -48|0)>>>0<10){}else{break}}}}while(0);if(s<<24>>24!=0){r=1;o=0;break}u=+Ie(q);h[c[o+8>>2]>>3]=u;r=2;o=1}else{Rb(2760,28,1,j|0)|0;r=1;o=1}}while(0);q=(c[d>>2]|0)-r|0;c[d>>2]=q;if((q|0)>(g|0)){s=g;while(1){c[e+(s<<2)>>2]=c[e+(s+r<<2)>>2];s=s+1|0;q=c[d>>2]|0;if((s|0)<(q|0)){}else{break}}}k=o&k;if((g|0)>=(q|0)){j=43;break a}}if((l|0)<(q|0)){g=l}else{j=43;break}}if((j|0)==5){t=q+ -1|0;c[d>>2]=t;if((g|0)>=(t|0)){t=k;i=f;return t|0}while(1){j=g+1|0;c[e+(g<<2)>>2]=c[e+(j<<2)>>2];if((j|0)<(c[d>>2]|0)){g=j}else{break}}i=f;return k|0}else if((j|0)==43){i=f;return k|0}return 0}function be(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0;l=i;e=i;i=i+8|0;f=e;g=i;i=i+8|0;h=g;j=i;i=i+8|0;k=j;r=i;i=i+8|0;s=r;o=i;i=i+8|0;q=o;t=c[d>>2]|0;if((t|0)==0){n=9}else{m=d;n=0;do{t=ZW(t|0)|0;n=(t|0)>(n|0)?t:n;m=m+20|0;t=c[m>>2]|0;}while((t|0)!=0);n=n+9|0}m=c[p>>2]|0;c[o>>2]=a;Gc(m|0,2664,q|0)|0;if((b|0)!=0){c[r>>2]=b;Gc(m|0,2688,s|0)|0}sc(10,m|0)|0;o=c[d>>2]|0;if((o|0)==0){i=l;return}do{c[j>>2]=o;Gc(m|0,2696,k|0)|0;o=n-(ZW(c[d>>2]|0)|0)|0;switch(c[d+4>>2]|0){case 7:case 3:{q=2720;break};case 5:case 1:{q=2704;break};case 6:case 2:{q=2712;break};default:{q=2736}}c[g>>2]=o;c[h+4>>2]=q;Gc(m|0,2744,h|0)|0;o=c[d+16>>2]|0;if((o|0)!=0){c[e>>2]=o;Gc(m|0,2752,f|0)|0}sc(10,m|0)|0;d=d+20|0;o=c[d>>2]|0;}while((o|0)!=0);i=l;return}function ce(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;j=(b|0)!=0;do{if(j){if((d|0)==-1){k=ZW(b|0)|0;h=k;break}if((d|0)>-1){h=d;k=d;break}Ya(2792,2808,150,2824)}else{h=d;k=0}}while(0);d=(e|0)!=0;if(d){do{if((f|0)==-1){l=ZW(e|0)|0}else{if((f|0)>-1){l=f;break}Ya(2832,2808,158,2824)}}while(0);f=l;k=l+k|0}de(a,k);k=c[a+28>>2]|0;if(j){$W(k|0,b|0,h|0)|0;k=k+h|0}if(!d){i=g;return a|0}$W(k|0,e|0,f|0)|0;i=g;return a|0}function de(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;f=b+28|0;g=c[f>>2]|0;if((g|0)==0){h=7}else{j=b+24|0;k=c[j>>2]|0;if((k|0)<24){k=24}else{l=(k|0)<256?7:255;k=k+1+l&~l}if((d|0)<24){l=24}else{l=(d|0)<256?7:255;l=d+1+l&~l}if((k|0)!=(l|0)){h=7}}a:do{if((h|0)==7){do{if((d|0)<24){h=g;g=b}else{h=(d|0)<256?7:255;h=d+1+h&~h;if((g|0)==(b|0)){g=we(h)|0}else{g=xe(g,h)|0}h=c[f>>2]|0;if((h|0)==(b|0)|(g|0)==(b|0)){break}j=b+24|0;break a}}while(0);j=b+24|0;b=c[j>>2]|0;if((b|0)>(d|0)){$W(g|0,h|0,d|0)|0;break}else{$W(g|0,h|0,b|0)|0;break}}}while(0);c[f>>2]=g;c[j>>2]=d;a[g+d|0]=0;i=e;return}function ee(b){b=b|0;c[b+28>>2]=b;c[b+24>>2]=0;a[b]=0;i=i;return}function fe(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=a+28|0;c[e>>2]=0;c[a+24>>2]=0;if((b|0)==0){de(a,0);i=d;return}else{f=ZW(b|0)|0;de(a,f);$W(c[e>>2]|0,b|0,f|0)|0;i=d;return}}function ge(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;f=a+28|0;c[f>>2]=0;c[a+24>>2]=0;if((b|0)==0){de(a,0);i=e;return}do{if((d|0)==-1){g=ZW(b|0)|0;de(a,g)}else{if((d|0)>-1){de(a,d);g=d;break}else{Ya(2792,2808,150,2824)}}}while(0);$W(c[f>>2]|0,b|0,g|0)|0;i=e;return}function he(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=i;g=a+28|0;c[g>>2]=0;c[a+24>>2]=0;if((e+d|0)>(c[b+24>>2]|0)){Ya(2848,2808,196,2880)}b=(c[b+28>>2]|0)+d|0;if((b|0)==0){de(a,0);i=f;return}do{if((e|0)==-1){h=ZW(b|0)|0;de(a,h)}else{if((e|0)>-1){de(a,e);h=e;break}else{Ya(2792,2808,150,2824)}}}while(0);$W(c[g>>2]|0,b|0,h|0)|0;i=f;return}function ie(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;e=a+28|0;c[e>>2]=0;c[a+24>>2]=0;f=c[b+28>>2]|0;b=c[b+24>>2]|0;if((f|0)==0){de(a,0);i=d;return}do{if((b|0)==-1){g=ZW(f|0)|0;de(a,g)}else{if((b|0)>-1){de(a,b);g=b;break}else{Ya(2792,2808,150,2824)}}}while(0);$W(c[e>>2]|0,f|0,g|0)|0;i=d;return}function je(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,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;q=i;g=i;i=i+72|0;r=g;l=i;i=i+8|0;f=l;j=i;i=i+8|0;p=j;n=b+24|0;o=b+28|0;m=r+64|0;u=0;v=8;w=ye(8,8)|0;a:while(1){while(1){t=a[d]|0;if(t<<24>>24==123){s=a[d+1|0]|0;t=s<<24>>24;if(s<<24>>24!=123){break}G=c[n>>2]|0;de(b,G+1|0);a[(c[o>>2]|0)+G|0]=123;d=d+2|0;continue}else if(t<<24>>24==0){t=226;break a}s=d+1|0;if(t<<24>>24==125){d=(a[s]|0)==125?d+2|0:s;G=c[n>>2]|0;de(b,G+1|0);a[(c[o>>2]|0)+G|0]=125;continue}while(1){G=a[s]|0;if(G<<24>>24==125|G<<24>>24==123|G<<24>>24==0){break}s=s+1|0}x=s-d|0;t=c[n>>2]|0;if((x|0)==-1){x=ZW(d|0)|0}de(b,x+t|0);$W((c[o>>2]|0)+t|0,d|0,x|0)|0;d=s}if((s+ -48<<24>>24&255)>=10){t=226;break}z=t+ -48|0;s=d+2|0;t=a[s]|0;if((t+ -48<<24>>24&255)<10){while(1){z=(z*10|0)+ -48+(t<<24>>24)|0;s=s+1|0;t=a[s]|0;if((t+ -48<<24>>24&255)<10){}else{break}}}if(t<<24>>24!=58){t=226;break}d=s+1|0;t=(a[d]|0)==45;d=t?s+2|0:d;A=a[d]|0;x=A<<24>>24==48;if((A+ -48<<24>>24&255)<10){y=0;do{y=(y*10|0)+ -48+(A<<24>>24)|0;d=d+1|0;A=a[d]|0;}while((A+ -48<<24>>24&255)<10);s=y;y=65-y|0}else{s=0;y=65}do{if(A<<24>>24==46){d=d+1|0;B=a[d]|0;if((B+ -48<<24>>24&255)<10){A=0}else{A=0;break}while(1){A=(A*10|0)+ -48+(B<<24>>24)|0;d=d+1|0;B=a[d]|0;if((B+ -48<<24>>24&255)<10){}else{break}}}else{A=0}}while(0);F=3016;B=0;while(1){E=ZW(F|0)|0;D=B+1|0;if((vc(d|0,F|0,E|0)|0)==0){break}if((D|0)==23){t=226;break a}else{F=c[2896+(D<<2)>>2]|0;B=D}}if((a[d+E|0]|0)!=125){t=226;break}d=d+(E+1)|0;if((z|0)>(u|0)){t=226;break}if((z|0)==(u|0)){if((u|0)==(v|0)){G=u<<1;v=G;w=Ce(w,G,8)|0}switch(B|0){case 22:case 3:case 2:case 1:case 0:{F=c[e>>2]|0;G=c[F>>2]|0;c[e>>2]=F+4;c[w+(u<<3)>>2]=G;break};case 7:case 6:case 5:case 4:{F=c[e>>2]|0;G=c[F>>2]|0;c[e>>2]=F+4;c[w+(u<<3)>>2]=G;break};case 11:case 10:case 9:case 8:{F=c[e>>2]|0;G=c[F>>2]|0;c[e>>2]=F+4;c[w+(u<<3)>>2]=G;break};case 15:case 14:case 13:case 12:{F=c[e>>2]|0;G=c[F>>2]|0;c[e>>2]=F+4;c[w+(u<<3)>>2]=G;break};case 17:case 18:case 16:{G=c[e>>2]|0;H=+h[G>>3];c[e>>2]=G+8;h[w+(u<<3)>>3]=H;break};case 19:{F=c[e>>2]|0;G=c[F>>2]|0;c[e>>2]=F+4;a[w+(u<<3)|0]=G;break};case 20:{F=c[e>>2]|0;G=c[F>>2]|0;c[e>>2]=F+4;c[w+(u<<3)>>2]=G;break};case 21:{F=c[e>>2]|0;G=c[F>>2]|0;c[e>>2]=F+4;c[w+(u<<3)>>2]=G;break};default:{}}u=u+1|0}C=+h[w+(z<<3)>>3];h[k>>3]=C;z=c[k>>2]|0;b:do{switch(B|0){case 1:{A=(z|0)<0;D=A?0-z|0:z;z=z>>>31;if((D|0)==0){a[m]=48;B=64}else{B=65;while(1){B=B+ -1|0;a[r+B|0]=a[2992+((D|0)%16|0)|0]|0;if((B|0)<=(z|0)|(D+15|0)>>>0<31){break}else{D=(D|0)/16|0}}}do{if(x){E=65-B|0;x=s-z|0;if(!((B|0)>(z|0)&(E|0)<(x|0))){break}D=z-B|0;F=y+z-B|0;y=D>>>0>F>>>0;G=B;do{G=G+ -1|0;a[r+G|0]=48;E=E+1|0;}while((G|0)>(z|0)&(E|0)<(x|0));B=(y?D:F)+B|0}}while(0);if(A){B=B+ -1|0;a[r+B|0]=45}z=r+B|0;c[j>>2]=z;A=65-B|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 2:{A=(z|0)<0;D=A?0-z|0:z;z=z>>>31;if((D|0)==0){a[m]=48;B=64}else{B=65;while(1){B=B+ -1|0;a[r+B|0]=a[2992+((D|0)%8|0)|0]|0;if((B|0)<=(z|0)|(D+7|0)>>>0<15){break}else{D=(D|0)/8|0}}}do{if(x){E=65-B|0;x=s-z|0;if(!((B|0)>(z|0)&(E|0)<(x|0))){break}D=z-B|0;y=y+z-B|0;F=D>>>0>y>>>0;G=B;do{G=G+ -1|0;a[r+G|0]=48;E=E+1|0;}while((G|0)>(z|0)&(E|0)<(x|0));B=(F?D:y)+B|0}}while(0);if(A){B=B+ -1|0;a[r+B|0]=45}z=r+B|0;c[j>>2]=z;A=65-B|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 5:{if((z|0)==0){a[m]=48;y=64}else{A=65;while(1){y=A+ -1|0;a[r+y|0]=a[2992+(z&15)|0]|0;z=z>>>4;if((A|0)<2|(z|0)==0){break}else{A=y}}}do{if(x){D=65-y|0;if(!((y|0)>0&(D|0)<(s|0))){break}x=0-y|0;z=D-s|0;A=z>>>0<x>>>0;B=y;do{B=B+ -1|0;a[r+B|0]=48;D=D+1|0;}while((B|0)>0&(D|0)<(s|0));y=(A?x:z)+y|0}}while(0);z=r+y|0;c[j>>2]=z;A=65-y|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 3:{A=(z|0)<0;D=A?0-z|0:z;z=z>>>31;if((D|0)==0){a[m]=48;B=64}else{B=65;while(1){B=B+ -1|0;a[r+B|0]=a[2992+((D|0)%2|0)|0]|0;if((B|0)<=(z|0)|(D+1|0)>>>0<3){break}else{D=(D|0)/2|0}}}do{if(x){E=65-B|0;D=s-z|0;if(!((B|0)>(z|0)&(E|0)<(D|0))){break}x=z-B|0;y=y+z-B|0;F=x>>>0>y>>>0;G=B;do{G=G+ -1|0;a[r+G|0]=48;E=E+1|0;}while((G|0)>(z|0)&(E|0)<(D|0));B=(F?x:y)+B|0}}while(0);if(A){B=B+ -1|0;a[r+B|0]=45}z=r+B|0;c[j>>2]=z;A=65-B|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 7:{if((z|0)==0){a[m]=48;y=64}else{A=65;while(1){y=A+ -1|0;a[r+y|0]=a[2992+(z&1)|0]|0;z=z>>>1;if((A|0)<2|(z|0)==0){break}else{A=y}}}do{if(x){D=65-y|0;if(!((y|0)>0&(D|0)<(s|0))){break}x=0-y|0;z=D-s|0;A=z>>>0<x>>>0;B=y;do{B=B+ -1|0;a[r+B|0]=48;D=D+1|0;}while((B|0)>0&(D|0)<(s|0));y=(A?x:z)+y|0}}while(0);z=r+y|0;c[j>>2]=z;A=65-y|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 4:{if((z|0)==0){a[m]=48;y=64}else{A=65;while(1){y=A+ -1|0;a[r+y|0]=a[2992+((z>>>0)%10|0)|0]|0;if((A|0)<2|z>>>0<10){break}else{A=y;z=(z>>>0)/10|0}}}do{if(x){D=65-y|0;if(!((y|0)>0&(D|0)<(s|0))){break}x=0-y|0;z=D-s|0;A=z>>>0<x>>>0;B=y;do{B=B+ -1|0;a[r+B|0]=48;D=D+1|0;}while((B|0)>0&(D|0)<(s|0));y=(A?x:z)+y|0}}while(0);z=r+y|0;c[j>>2]=z;A=65-y|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 0:{A=(z|0)<0;D=A?0-z|0:z;z=z>>>31;if((D|0)==0){a[m]=48;B=64}else{B=65;while(1){B=B+ -1|0;a[r+B|0]=a[2992+((D|0)%10|0)|0]|0;if((B|0)<=(z|0)|(D+9|0)>>>0<19){break}else{D=(D|0)/10|0}}}do{if(x){E=65-B|0;x=s-z|0;if(!((B|0)>(z|0)&(E|0)<(x|0))){break}D=z-B|0;F=y+z-B|0;G=D>>>0>F>>>0;y=B;do{y=y+ -1|0;a[r+y|0]=48;E=E+1|0;}while((y|0)>(z|0)&(E|0)<(x|0));B=(G?D:F)+B|0}}while(0);if(A){B=B+ -1|0;a[r+B|0]=45}z=r+B|0;c[j>>2]=z;A=65-B|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 6:{if((z|0)==0){a[m]=48;y=64}else{A=65;while(1){y=A+ -1|0;a[r+y|0]=a[2992+(z&7)|0]|0;z=z>>>3;if((A|0)<2|(z|0)==0){break}else{A=y}}}do{if(x){D=65-y|0;if(!((y|0)>0&(D|0)<(s|0))){break}B=0-y|0;A=D-s|0;z=A>>>0<B>>>0;x=y;do{x=x+ -1|0;a[r+x|0]=48;D=D+1|0;}while((x|0)>0&(D|0)<(s|0));y=(z?B:A)+y|0}}while(0);z=r+y|0;c[j>>2]=z;A=65-y|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 8:{A=(z|0)<0;D=A?0-z|0:z;z=z>>>31;if((D|0)==0){a[m]=48;B=64}else{B=65;while(1){B=B+ -1|0;a[r+B|0]=a[2992+((D|0)%10|0)|0]|0;if((B|0)<=(z|0)|(D+9|0)>>>0<19){break}else{D=(D|0)/10|0}}}do{if(x){E=65-B|0;x=s-z|0;if(!((B|0)>(z|0)&(E|0)<(x|0))){break}D=z-B|0;y=y+z-B|0;F=D>>>0>y>>>0;G=B;do{G=G+ -1|0;a[r+G|0]=48;E=E+1|0;}while((G|0)>(z|0)&(E|0)<(x|0));B=(F?D:y)+B|0}}while(0);if(A){B=B+ -1|0;a[r+B|0]=45}z=r+B|0;c[j>>2]=z;A=65-B|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 12:{if((z|0)==0){a[m]=48;y=64}else{A=65;while(1){y=A+ -1|0;a[r+y|0]=a[2992+((z>>>0)%10|0)|0]|0;if((A|0)<2|z>>>0<10){break}else{A=y;z=(z>>>0)/10|0}}}do{if(x){D=65-y|0;if(!((y|0)>0&(D|0)<(s|0))){break}A=0-y|0;z=D-s|0;x=z>>>0<A>>>0;B=y;do{B=B+ -1|0;a[r+B|0]=48;D=D+1|0;}while((B|0)>0&(D|0)<(s|0));y=(x?A:z)+y|0}}while(0);z=r+y|0;c[j>>2]=z;A=65-y|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 9:{A=(z|0)<0;D=A?0-z|0:z;z=z>>>31;if((D|0)==0){a[m]=48;B=64}else{B=65;while(1){B=B+ -1|0;a[r+B|0]=a[2992+((D|0)%16|0)|0]|0;if((B|0)<=(z|0)|(D+15|0)>>>0<31){break}else{D=(D|0)/16|0}}}do{if(x){G=65-B|0;D=s-z|0;if(!((B|0)>(z|0)&(G|0)<(D|0))){break}x=z-B|0;F=y+z-B|0;E=x>>>0>F>>>0;y=B;do{y=y+ -1|0;a[r+y|0]=48;G=G+1|0;}while((y|0)>(z|0)&(G|0)<(D|0));B=(E?x:F)+B|0}}while(0);if(A){B=B+ -1|0;a[r+B|0]=45}z=r+B|0;c[j>>2]=z;A=65-B|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 10:{A=(z|0)<0;D=A?0-z|0:z;z=z>>>31;if((D|0)==0){a[m]=48;B=64}else{B=65;while(1){B=B+ -1|0;a[r+B|0]=a[2992+((D|0)%8|0)|0]|0;if((B|0)<=(z|0)|(D+7|0)>>>0<15){break}else{D=(D|0)/8|0}}}do{if(x){G=65-B|0;x=s-z|0;if(!((B|0)>(z|0)&(G|0)<(x|0))){break}D=z-B|0;F=y+z-B|0;E=D>>>0>F>>>0;y=B;do{y=y+ -1|0;a[r+y|0]=48;G=G+1|0;}while((y|0)>(z|0)&(G|0)<(x|0));B=(E?D:F)+B|0}}while(0);if(A){B=B+ -1|0;a[r+B|0]=45}z=r+B|0;c[j>>2]=z;A=65-B|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 11:{A=(z|0)<0;D=A?0-z|0:z;z=z>>>31;if((D|0)==0){a[m]=48;B=64}else{B=65;while(1){B=B+ -1|0;a[r+B|0]=a[2992+((D|0)%2|0)|0]|0;if((B|0)<=(z|0)|(D+1|0)>>>0<3){break}else{D=(D|0)/2|0}}}do{if(x){G=65-B|0;x=s-z|0;if(!((B|0)>(z|0)&(G|0)<(x|0))){break}D=z-B|0;F=y+z-B|0;E=D>>>0>F>>>0;y=B;do{y=y+ -1|0;a[r+y|0]=48;G=G+1|0;}while((y|0)>(z|0)&(G|0)<(x|0));B=(E?D:F)+B|0}}while(0);if(A){B=B+ -1|0;a[r+B|0]=45}z=r+B|0;c[j>>2]=z;A=65-B|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 13:{if((z|0)==0){a[m]=48;y=64}else{A=65;while(1){y=A+ -1|0;a[r+y|0]=a[2992+(z&15)|0]|0;z=z>>>4;if((A|0)<2|(z|0)==0){break}else{A=y}}}do{if(x){D=65-y|0;if(!((y|0)>0&(D|0)<(s|0))){break}B=0-y|0;A=D-s|0;z=A>>>0<B>>>0;x=y;do{x=x+ -1|0;a[r+x|0]=48;D=D+1|0;}while((x|0)>0&(D|0)<(s|0));y=(z?B:A)+y|0}}while(0);z=r+y|0;c[j>>2]=z;A=65-y|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 15:{if((z|0)==0){a[m]=48;y=64}else{A=65;while(1){y=A+ -1|0;a[r+y|0]=a[2992+(z&1)|0]|0;z=z>>>1;if((A|0)<2|(z|0)==0){break}else{A=y}}}do{if(x){D=65-y|0;if(!((y|0)>0&(D|0)<(s|0))){break}B=0-y|0;A=D-s|0;z=A>>>0<B>>>0;x=y;do{x=x+ -1|0;a[r+x|0]=48;D=D+1|0;}while((x|0)>0&(D|0)<(s|0));y=(z?B:A)+y|0}}while(0);z=r+y|0;c[j>>2]=z;A=65-y|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 14:{if((z|0)==0){a[m]=48;y=64}else{A=65;while(1){y=A+ -1|0;a[r+y|0]=a[2992+(z&7)|0]|0;z=z>>>3;if((A|0)<2|(z|0)==0){break}else{A=y}}}do{if(x){D=65-y|0;if(!((y|0)>0&(D|0)<(s|0))){break}B=0-y|0;A=D-s|0;z=A>>>0<B>>>0;x=y;do{x=x+ -1|0;a[r+x|0]=48;D=D+1|0;}while((x|0)>0&(D|0)<(s|0));y=(z?B:A)+y|0}}while(0);z=r+y|0;c[j>>2]=z;A=65-y|0;c[l>>2]=A;if(t){t=215}else{t=207}break};case 16:{qe(C,r,65,A,0,p,f);if(t){t=213}else{t=207}break};case 18:{qe(C,r,65,A,1,p,f);if(t){t=213}else{t=207}break};case 17:{H=+S(+C);if(H>=.1){qe(C,r,65,A,1,p,f);if(t){t=213;break b}else{t=207;break b}}if(H<.1&(A|0)<16){while(1){H=H*10.0;A=A+1|0;if(H<.1&(A|0)<16){}else{break}}}qe(C,r,65,A,1,p,f);if(t){t=213}else{t=207}break};case 19:{a[g]=z;c[j>>2]=r;c[l>>2]=1;if(t){t=207}else{A=1;t=214}break};case 20:{c[j>>2]=z;A=ZW(z|0)|0;c[l>>2]=A;if(t){t=207}else{t=215}break};case 21:{x=c[z+28>>2]|0;c[j>>2]=x;A=c[z+24>>2]|0;c[l>>2]=A;if(t){t=207}else{z=x;t=215}break};case 22:{c[j>>2]=r;c[l>>2]=0;if(t){A=0;s=z;t=214}else{s=z;t=207}break};default:{if(t){t=213}else{t=207}}}}while(0);if((t|0)==207){x=c[l>>2]|0;if((x|0)<(s|0)){do{G=c[n>>2]|0;de(b,G+1|0);a[(c[o>>2]|0)+G|0]=32;x=x+1|0;}while((x|0)<(s|0));x=c[l>>2]|0}s=c[j>>2]|0;t=c[n>>2]|0;if((x|0)==-1){x=ZW(s|0)|0}de(b,x+t|0);$W((c[o>>2]|0)+t|0,s|0,x|0)|0;continue}else if((t|0)==213){z=c[j>>2]|0;A=c[l>>2]|0;t=215}else if((t|0)==214){t=0;y=c[n>>2]|0;x=r}do{if((t|0)==215){y=c[n>>2]|0;if((A|0)!=-1){x=z;break}x=z;A=ZW(z|0)|0}}while(0);de(b,A+y|0);$W((c[o>>2]|0)+y|0,x|0,A|0)|0;t=c[l>>2]|0;if((t|0)>=(s|0)){continue}while(1){G=c[n>>2]|0;de(b,G+1|0);a[(c[o>>2]|0)+G|0]=32;t=t+1|0;if((t|0)<(s|0)){}else{continue a}}}if((t|0)==226){Fe(w);i=q;return b|0}return 0}function ke(a){a=a|0;var b=0,d=0;b=i;d=c[a+28>>2]|0;if((d|0)==(a|0)){i=b;return}Fe(d);i=b;return}function le(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;e=b+28|0;f=c[e>>2]|0;h=b+24|0;g=c[h>>2]|0;do{if((f|0)==0){h=b+24|0;if((g|0)>0){f=b;break}$W(b|0,f|0,g|0)|0;f=b}else{if((g|0)<24){break}j=(g|0)<256?7:255;if((g+1+j&~j|0)==24){break}h=b+24|0;f=b}}while(0);c[e>>2]=f;c[h>>2]=0;a[f]=0;i=d;return b|0}function me(b,d){b=b|0;d=d|0;var e=0,f=0;e=i;f=c[b+24>>2]|0;de(b,f+1|0);a[(c[b+28>>2]|0)+f|0]=d;i=e;return b|0}function ne(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;f=c[a+24>>2]|0;if((d|0)==-1){d=ZW(b|0)|0}de(a,f+d|0);$W((c[a+28>>2]|0)+f|0,b|0,d|0)|0;i=e;return a|0}function oe(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=c[b+28>>2]|0;f=c[b+24>>2]|0;b=c[a+24>>2]|0;if((f|0)==-1){f=ZW(e|0)|0}de(a,f+b|0);$W((c[a+28>>2]|0)+b|0,e|0,f|0)|0;i=d;return a|0}function pe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;f=i;i=i+16|0;c[f>>2]=d;je(a,b,f)|0;i=e;return a|0}function qe(b,d,e,f,g,h,j){b=+b;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.0,p=0;k=i;l=b<0.0;if(l){b=-0.0-b}b=+R(+(b*+U(10.0,+(+(f|0)))+.5));g=g^1;p=(e|0)>1;if((f|0)>0&p){o=b;n=e;m=0;while(1){b=+R(+((o+.5)*.1));p=~~+R(+(o-b*10.0+.5));if(!((p|0)==0&(g^1))){n=n+ -1|0;a[d+n|0]=p+48;g=1}m=m+1|0;p=(n|0)>1;if((m|0)<(f|0)&p){o=b}else{break}}}else{n=e}if(p&g){n=n+ -1|0;a[d+n|0]=46}if((n|0)>1){while(1){o=+R(+((b+.5)*.1));n=n+ -1|0;a[d+n|0]=~~+R(+(b-o*10.0+.5))+48;if((n|0)>1&o!=0.0){b=o}else{break}}}if(!l){m=d+n|0;p=h;c[p>>2]=m;n=e-n|0;p=j;c[p>>2]=n;i=k;return}n=n+ -1|0;a[d+n|0]=45;m=d+n|0;p=h;c[p>>2]=m;n=e-n|0;p=j;c[p>>2]=n;i=k;return}function re(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;if((e|0)<=0){i=f;return b|0}g=b+24|0;h=c[g>>2]|0;e=(e+d|0)>(h|0)?h-d|0:e;j=h-e|0;if((j|0)>=(d|0)){h=b+28|0;while(1){j=c[h>>2]|0;a[j+d|0]=a[j+(d+e)|0]|0;j=(c[g>>2]|0)-e|0;if((d|0)<(j|0)){d=d+1|0}else{break}}}de(b,j);i=f;return b|0}function se(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;g=i;e=c[b+24>>2]|0;f=c[d+24>>2]|0;a:do{if((e|0)>0&(f|0)>0){h=0;b=c[b+28>>2]|0;d=c[d+28>>2]|0;while(1){j=a[b]|0;k=a[d]|0;if(j<<24>>24!=k<<24>>24){break}h=h+1|0;if((h|0)<(e|0)&(h|0)<(f|0)){b=b+1|0;d=d+1|0}else{break a}}k=(j<<24>>24)-(k<<24>>24)|0;i=g;return k|0}}while(0);k=e-f|0;i=g;return k|0}function te(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;g=c[b+24>>2]|0;j=a[d]|0;h=j<<24>>24==0;a:do{if((g|0)>0){k=0;b=c[b+28>>2]|0;while(1){if(h){g=1;f=8;break}h=a[b]|0;if(h<<24>>24!=j<<24>>24){break}k=k+1|0;d=d+1|0;j=a[d]|0;h=j<<24>>24==0;if((k|0)<(g|0)){b=b+1|0}else{break a}}if((f|0)==8){i=e;return g|0}d=(h<<24>>24)-(j<<24>>24)|0;i=e;return d|0}}while(0);d=(h^1)<<31>>31;i=e;return d|0}function ue(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;h=c[b+24>>2]|0;a:do{if((h|0)>0){g=0;b=c[b+28>>2]|0;while(1){k=a[d]|0;if(!(k<<24>>24!=0&(g|0)<(e|0))){h=4;break}j=a[b]|0;if(j<<24>>24!=k<<24>>24){h=6;break}g=g+1|0;d=d+1|0;if((g|0)<(h|0)){b=b+1|0}else{break a}}if((h|0)==4){k=(g|0)!=(e|0)|0;i=f;return k|0}else if((h|0)==6){k=(j<<24>>24)-(k<<24>>24)|0;i=f;return k|0}}else{g=0}}while(0);e=(g|0)==(e|0);if(e){k=e&1^1;i=f;return k|0}k=((a[d]|0)!=0)<<31>>31;i=f;return k|0}function ve(b){b=b|0;var d=0;d=i;b=c[b+28>>2]|0;if((a[b]|0)!=-2){b=0;i=d;return b|0}b=(a[b+1|0]|0)==-1;i=d;return b|0}function we(a){a=a|0;var b=0;b=i;if((a|0)==0){a=0;i=b;return a|0}a=AW(a)|0;if((a|0)==0){Rb(3232,14,1,c[p>>2]|0)|0;Yb(1)}else{i=b;return a|0}return 0}function xe(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;f=(a|0)!=0;do{if((b|0)==0){if(!f){e=0;break}BW(a);e=0}else{if(f){a=CW(a,b)|0}else{a=AW(b)|0}if((a|0)!=0){e=a;break}Rb(3232,14,1,c[p>>2]|0)|0;Yb(1)}}while(0);i=d;return e|0}function ye(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((a|0)==0){e=0;i=d;return e|0}e=da(b,a)|0;do{if(!((b|0)<1|(a|0)<0)){if((2147483647/(b|0)|0|0)<=(a|0)){break}if((e|0)==0){e=0;i=d;return e|0}b=AW(e)|0;if((b|0)==0){Rb(3232,14,1,c[p>>2]|0)|0;Yb(1)}else{e=b;i=d;return e|0}}}while(0);Rb(3200,29,1,c[p>>2]|0)|0;Yb(1);return 0}function ze(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a:do{if((a|0)==0){b=0}else{e=da(b,a)|0;do{if(!((b|0)<1|(a|0)<0)){if((2147483647/(b|0)|0|0)<=(a|0)){break}if((e|0)==0){b=0;break a}b=AW(e)|0;if((b|0)!=0){break a}Rb(3232,14,1,c[p>>2]|0)|0;b=0;break a}}while(0);Rb(3200,29,1,c[p>>2]|0)|0;b=0}}while(0);i=d;return b|0}function Ae(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;a=Be(a,b,c,0)|0;i=d;return a|0}function Be(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;g=da(b,a)|0;do{if(!((b|0)<1|(a|0)<0)){if((2147483647/(b|0)|0|0)<=(a|0)){break}if((g|0)==0){a=0;i=f;return a|0}b=da(g,d)|0;do{if(!((d|0)<1|(g|0)<0)){if((2147483647/(d|0)|0|0)<=(g|0)){break}if((b|0)==0){a=0;i=f;return a|0}g=AW(b)|0;if((g|0)!=0){a=g;i=f;return a|0}Rb(3232,14,1,c[p>>2]|0)|0;if(e){a=0;i=f;return a|0}else{Yb(1)}}}while(0);Rb(3200,29,1,c[p>>2]|0)|0;if(e){a=0;i=f;return a|0}else{Yb(1)}}}while(0);Rb(3200,29,1,c[p>>2]|0)|0;if(e){a=0;i=f;return a|0}else{Yb(1)}return 0}function Ce(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;a=De(a,b,c,0)|0;i=d;return a|0}function De(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;a:do{if((b|0)==0){if((a|0)==0){g=0;break}BW(a);g=0}else{g=da(d,b)|0;do{if(!((d|0)<1|(b|0)<0)){if((2147483647/(d|0)|0|0)<=(b|0)){break}d=(a|0)!=0;if((g|0)==0){if(!d){g=0;break a}BW(a);g=0;break a}if(d){g=CW(a,g)|0}else{g=AW(g)|0}if((g|0)!=0){break a}Rb(3232,14,1,c[p>>2]|0)|0;if(e){g=0;break a}Yb(1)}}while(0);Rb(3200,29,1,c[p>>2]|0)|0;if(!e){Yb(1)}if((a|0)==0){g=0;break}BW(a);g=0}}while(0);i=f;return g|0}function Ee(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;a=De(a,b,c,1)|0;i=d;return a|0}function Fe(a){a=a|0;var b=0;b=i;if((a|0)!=0){BW(a)}i=b;return}function Ge(a){a=a|0;var b=0,d=0,e=0;b=i;e=(ZW(a|0)|0)+1|0;do{if((e|0)==0){d=0}else{e=AW(e)|0;if((e|0)!=0){d=e;break}Rb(3232,14,1,c[p>>2]|0)|0;Yb(1)}}while(0);eX(d|0,a|0)|0;i=b;return d|0}function He(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=d+1|0;do{if((g|0)==0){f=0}else{g=AW(g)|0;if((g|0)!=0){f=g;break}Rb(3232,14,1,c[p>>2]|0)|0;Yb(1)}}while(0);a[f+d|0]=0;$W(f|0,b|0,d|0)|0;i=e;return f|0}function Ie(a){a=a|0;var b=0.0,c=0;c=i;b=+Je(a,0);i=c;return+b}function Je(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.0;f=i;g=i;i=i+8|0;j=g;c[g>>2]=0;k=c[(Jb()|0)>>2]|0;h=ZW(k|0)|0;if((a[k]|0)==46){if((a[k+1|0]|0)==0){e=27}else{l=b;e=3}}else{l=b;e=3}do{if((e|0)==3){a:while(1){e=0;n=a[l]|0;switch(n<<24>>24){case 11:case 9:case 13:case 10:case 12:case 32:{break};case 45:case 43:{e=5;break a};default:{break a}}l=l+1|0;e=3}if((e|0)==5){l=l+1|0;n=a[l]|0}if(!((n+ -48<<24>>24&255)<10|n<<24>>24==46)){e=27;break}while(1){m=l+1|0;if((n+ -48<<24>>24&255)>=10){break}n=a[m]|0;l=m}o=n<<24>>24==46;n=o?m:l;while(1){p=a[n]|0;m=n+1|0;if((p+ -48<<24>>24&255)<10){n=m}else{break}}l=o?l:0;if(p<<24>>24==69|p<<24>>24==101){p=a[m]|0}else{m=n}if(p<<24>>24==45|p<<24>>24==43){o=m+1|0}else{o=m}while(1){if(((a[o]|0)+ -48<<24>>24&255)>=10){break}o=o+1|0}if((l|0)==0){if((o|0)==0){e=27;break}k=o-b|0;h=AW(k+1|0)|0;$W(h|0,b|0,k|0)|0;a[h+k|0]=0;k=Pc()|0;c[k>>2]=0;q=+UW(h,j);j=c[k>>2]|0;k=c[g>>2]|0;if((k|0)!=0){c[g>>2]=b+(k-h)}BW(h);break}n=AW(1-b+h+o|0)|0;m=l-b|0;$W(n|0,b|0,m|0)|0;$W(n+m|0,k|0,h|0)|0;k=m+h|0;l=l+1|0;p=o-l|0;$W(n+k|0,l|0,p|0)|0;a[n+(p+k)|0]=0;k=Pc()|0;c[k>>2]=0;q=+UW(n,j);j=c[k>>2]|0;k=c[g>>2]|0;do{if((k|0)!=0){k=k-n|0;if((k|0)>(m|0)){c[g>>2]=b+(1-h+k);break}else{c[g>>2]=b+k;break}}}while(0);BW(n)}}while(0);if((e|0)==27){p=Pc()|0;c[p>>2]=0;q=+UW(b,j);j=c[p>>2]|0}if((d|0)==0){p=Pc()|0;c[p>>2]=j;i=f;return+q}c[d>>2]=c[g>>2];p=Pc()|0;c[p>>2]=j;i=f;return+q}function Ke(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;j=i;c[a>>2]=b;k=a+4|0;c[k>>2]=d;c[a+16>>2]=f;c[a+8>>2]=e;a:do{switch(f|0){case 4:{if((b+ -1|0)>>>0<536870911){b=b<<2;c[a+12>>2]=b;f=16;break a}else{c[a+12>>2]=-1;f=15;break a}break};case 0:{if((b|0)>0){b=b+7>>3;c[a+12>>2]=b;f=16;break a}else{c[a+12>>2]=-1;f=15;break a}break};case 3:case 2:{if((b+ -1|0)>>>0<715827882){b=b*3|0;c[a+12>>2]=b;f=16;break a}else{c[a+12>>2]=-1;f=15;break a}break};case 1:{f=a+12|0;if((b|0)>0){c[f>>2]=b;f=16;break a}else{c[f>>2]=-1;f=15;break a}break};default:{b=c[a+12>>2]|0;f=16}}}while(0);do{if((f|0)==15){e=a+12|0;b=-1}else if((f|0)==16){f=a+12|0;if((b|0)<=0){e=f;break}b=b+ -1+e|0;b=b-((b|0)%(e|0)|0)|0;c[f>>2]=b;e=f}}while(0);f=ye(b,d)|0;d=a+20|0;c[d>>2]=f;if(!h){b=c[e>>2]|0;c[d>>2]=f+(da((c[k>>2]|0)+ -1|0,b)|0);c[e>>2]=0-b}if(g){c[a+24>>2]=ye(c[a>>2]|0,c[k>>2]|0)|0;i=j;return}else{c[a+24>>2]=0;i=j;return}}function Le(a){a=a|0;var b=0,d=0,e=0;b=i;d=c[a+12>>2]|0;e=c[a+20>>2]|0;if((d|0)<0){Fe(e+(da((c[a+4>>2]|0)+ -1|0,d)|0)|0)}else{Fe(e)}Fe(c[a+24>>2]|0);i=b;return}function Me(a,b){a=a|0;b=b|0;var c=0;c=i;b=yc(b|0,3248)|0;if((b|0)==0){b=5;i=c;return b|0}Ne(a,b)|0;mc(b|0)|0;b=0;i=c;return b|0}function Ne(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;p=i;i=i+8|0;n=p;j=i;i=i+8|0;k=j;q=i;i=i+8|0;h=q;l=i;i=i+8|0;m=l;g=i;i=i+8|0;o=g;switch(c[a+16>>2]|0){case 1:{f=a+4|0;k=c[f>>2]|0;c[l>>2]=c[a>>2];c[m+4>>2]=k;Gc(b|0,3272,m|0)|0;k=c[f>>2]|0;if((k|0)<=0){i=e;return 0}g=a+12|0;l=c[a>>2]|0;h=c[a+20>>2]|0;j=0;while(1){if((l|0)>0){k=h;m=0;while(1){sc(d[k]|0|0,b|0)|0;m=m+1|0;l=c[a>>2]|0;if((m|0)<(l|0)){k=k+1|0}else{break}}k=c[f>>2]|0}j=j+1|0;if((j|0)<(k|0)){h=h+(c[g>>2]|0)|0}else{break}}i=e;return 0};case 3:{f=a+4|0;k=c[f>>2]|0;c[p>>2]=c[a>>2];c[n+4>>2]=k;Gc(b|0,3288,n|0)|0;k=c[f>>2]|0;if((k|0)<=0){i=e;return 0}g=a+12|0;l=c[a>>2]|0;h=c[a+20>>2]|0;j=0;while(1){if((l|0)>0){k=h;m=0;while(1){sc(d[k+2|0]|0|0,b|0)|0;sc(d[k+1|0]|0|0,b|0)|0;sc(d[k]|0|0,b|0)|0;m=m+1|0;l=c[a>>2]|0;if((m|0)<(l|0)){k=k+3|0}else{break}}k=c[f>>2]|0}j=j+1|0;if((j|0)<(k|0)){h=h+(c[g>>2]|0)|0}else{break}}i=e;return 0};case 0:{f=a+4|0;k=c[f>>2]|0;c[g>>2]=c[a>>2];c[o+4>>2]=k;Gc(b|0,3256,o|0)|0;k=c[f>>2]|0;if((k|0)<=0){i=e;return 0}g=a+12|0;l=c[a>>2]|0;h=c[a+20>>2]|0;j=0;while(1){if((l|0)>0){k=h;m=0;while(1){sc((d[k]|0)^255|0,b|0)|0;m=m+8|0;l=c[a>>2]|0;if((m|0)<(l|0)){k=k+1|0}else{break}}k=c[f>>2]|0}j=j+1|0;if((j|0)<(k|0)){h=h+(c[g>>2]|0)|0}else{break}}i=e;return 0};case 4:{f=a+4|0;q=c[f>>2]|0;c[j>>2]=c[a>>2];c[k+4>>2]=q;Gc(b|0,3288,k|0)|0;k=c[f>>2]|0;if((k|0)<=0){i=e;return 0}g=a+12|0;l=c[a>>2]|0;h=c[a+20>>2]|0;j=0;while(1){if((l|0)>0){k=h;m=0;while(1){sc(d[k+2|0]|0|0,b|0)|0;sc(d[k+1|0]|0|0,b|0)|0;sc(d[k]|0|0,b|0)|0;m=m+1|0;l=c[a>>2]|0;if((m|0)<(l|0)){k=k+4|0}else{break}}k=c[f>>2]|0}j=j+1|0;if((j|0)<(k|0)){h=h+(c[g>>2]|0)|0}else{break}}i=e;return 0};case 2:{f=a+4|0;k=c[f>>2]|0;c[q>>2]=c[a>>2];c[h+4>>2]=k;Gc(b|0,3288,h|0)|0;k=c[f>>2]|0;if((k|0)<=0){i=e;return 0}g=a+12|0;l=c[a>>2]|0;h=c[a+20>>2]|0;j=0;while(1){if((l|0)>0){k=h;m=0;while(1){sc(d[k]|0|0,b|0)|0;sc(d[k+1|0]|0|0,b|0)|0;sc(d[k+2|0]|0|0,b|0)|0;m=m+1|0;l=c[a>>2]|0;if((m|0)<(l|0)){k=k+3|0}else{break}}k=c[f>>2]|0}j=j+1|0;if((j|0)<(k|0)){h=h+(c[g>>2]|0)|0}else{break}}i=e;return 0};default:{i=e;return 0}}return 0}function Oe(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0;h=i;if((f|0)<0){i=h;return}if((c[b+4>>2]|0)<=(f|0)|(e|0)<0){i=h;return}if((c[b>>2]|0)<=(e|0)){i=h;return}switch(c[b+16>>2]|0){case 1:{a[g]=a[(da(c[b+12>>2]|0,f)|0)+e+(c[b+20>>2]|0)|0]|0;i=h;return};case 2:{e=(da(c[b+12>>2]|0,f)|0)+(e*3|0)|0;f=c[b+20>>2]|0;a[g]=a[f+e|0]|0;a[g+1|0]=a[f+(e+1)|0]|0;a[g+2|0]=a[f+(e+2)|0]|0;i=h;return};case 4:{e=(da(c[b+12>>2]|0,f)|0)+(e<<2)|0;f=c[b+20>>2]|0;a[g]=a[f+(e+2)|0]|0;a[g+1|0]=a[f+(e+1)|0]|0;a[g+2|0]=a[f+e|0]|0;a[g+3|0]=a[f+(e+3)|0]|0;i=h;return};case 3:{e=(da(c[b+12>>2]|0,f)|0)+(e*3|0)|0;f=c[b+20>>2]|0;a[g]=a[f+(e+2)|0]|0;a[g+1|0]=a[f+(e+1)|0]|0;a[g+2|0]=a[f+e|0]|0;i=h;return};case 0:{a[g]=(((d[(da(c[b+12>>2]|0,f)|0)+(e>>3)+(c[b+20>>2]|0)|0]|0)&128>>>(e&7)|0)!=0)<<31>>31;i=h;return};default:{i=h;return}}}function Pe(b,d,e){b=b|0;d=d|0;e=e|0;e=(da(c[b>>2]|0,e)|0)+d|0;i=i;return a[(c[b+24>>2]|0)+e|0]|0}function Qe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;e=i;i=i+16|0;f=e;h=c[834]|0;do{if((h|0)!=0){if(!(wf(h)|0)){break}i=g;return}}while(0);c[e>>2]=d;Gd[c[826]&255](a,b,f);i=g;return}function Re(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+8|0;f=c[p>>2]|0;if((a|0)>-1){c[g>>2]=a;Gc(f|0,3312,g|0)|0}else{Rb(3328,7,1,f|0)|0}bc(f|0,b|0,d|0)|0;sc(10,f|0)|0;Fc(f|0)|0;i=e;return}function Se(a){a=a|0;var b=0;b=i;Te(a);HW(a);i=b;return}function Te(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=3352;d=c[a+4>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+8>>2]|0;if((d|0)==0){a=c[a+12>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}else if((d|0)==1){a=c[a+12>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}else{i=b;return}}function Ue(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;c[b+224>>2]=d;ad(b+152|0,0)|0;ad(b+176|0,0)|0;ad(b+200|0,0)|0;wt();d=FW(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=FW(32)|0;ie(g,h);g=Co(g,c[b>>2]|0)|0;h=yc(c[g+28>>2]|0,17600)|0;if((g|0)!=0){ke(g);HW(g)}f=f+1|0;if((h|0)!=0){break}g=c[a>>2]|0;if((f|0)>=(c[g+8>>2]|0)){break a}}Mc(e|0)|0;i=d;return h|0}}while(0);Mc(e|0)|0;h=0;i=d;return h|0}function ff(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;e=i;m=i;i=i+32|0;n=m;o=i;i=i+8|0;j=i;i=i+8|0;f=j;g=i;i=i+8|0;l=g;q=d+20|0;k=c[q>>2]|0;if((k|0)==0){x=0;i=e;return x|0}b=b+152|0;Ub(b|0)|0;h=d+4|0;r=c[h>>2]|0;do{if((r|0)==0){q=c[(c[q>>2]|0)+28>>2]|0;r=Fb(q|0,44)|0;if((r|0)==0){r=Fb(q|0,45)|0}s=ZW(q|0)|0;if((s|0)>0){t=0;do{v=q+t|0;u=a[v]|0;a[v]=u<<24>>24==45?32:u;t=t+1|0;}while((t|0)<(s|0))}do{if((r|0)==0){s=-1;v=0;t=-1;u=-1}else{v=nb(r|0,17816)|0;t=nb(r|0,17824)|0;if((t|0)!=0){v=(v|0)==0|t>>>0<v>>>0?t:v}u=nb(r|0,17832)|0;if((u|0)==0){t=-1}else{t=110;v=(v|0)==0|u>>>0<v>>>0?u:v}u=nb(r|0,17840)|0;if((u|0)!=0){t=100;v=(v|0)==0|u>>>0<v>>>0?u:v}w=nb(r|0,17848)|0;if((w|0)==0){u=-1}else{u=200;v=(v|0)==0|w>>>0<v>>>0?w:v}w=nb(r|0,17856)|0;if((w|0)!=0){u=50;v=(v|0)==0|w>>>0<v>>>0?w:v}w=nb(r|0,17864)|0;if((w|0)==0){w=-1;p=20}else{if((v|0)==0|w>>>0<v>>>0){v=75}else{w=75;p=20}}if((p|0)==20){if((v|0)==0){s=w;v=0;break}else{v=w}}p=s+1|0;x=GW((p|0)>-1?p:-1)|0;eX(x|0,q|0)|0;a[x+(r-q)|0]=0;s=v;v=1;q=x}}while(0);x=c[d+44>>2]|0;r=(x&1|0)!=0;p=r?100:-1;w=(x&262144|0)!=0?200:u;t=(x&64|0)!=0?100:t;u=d+24|0;x=c[u>>2]|0;if((x|0)==0){u=v}else{if(!((q|0)==0|v^1)){IW(q);x=c[u>>2]|0}u=0;q=c[x+28>>2]|0}switch(c[d+32>>2]|0){case 2:{w=50;break};case 3:{w=75;break};case 4:{w=80;break};case 5:{w=100;break};case 6:{w=180;break};case 7:{w=200;break};case 8:{w=205;break};case 9:{w=210;break};case 1:{w=40;break};default:{}}switch(c[d+28>>2]|0){case 1:{s=50;break};case 2:{s=63;break};case 3:{s=75;break};case 4:{s=87;break};case 5:{s=100;break};case 6:{s=113;break};case 7:{s=125;break};case 8:{s=150;break};case 9:{s=200;break};default:{}}v=18008;do{if(jd[c[c[d>>2]>>2]&511](d)|0){d=sy(d)|0;if((d|0)==0){v=18008;break}d=c[d+28>>2]|0;if((Qc(d|0,17880)|0)==0){v=17896;break}if((Qc(d|0,17904)|0)==0){v=17920;break}if((Qc(d|0,17928)|0)==0){v=17944;break}if((Qc(d|0,17952)|0)==0){v=17944;break}if((Qc(d|0,17968)|0)==0){v=17984;break}if((Qc(d|0,17992)|0)==0){v=18008;break}if((Qc(d|0,18016)|0)==0){v=18008;break}Qe(-1,18032,o);v=18008}}while(0);c[m>>2]=18096;c[n+4>>2]=3;c[n+8>>2]=q;c[n+12>>2]=18104;c[n+16>>2]=3;c[n+20>>2]=v;c[n+24>>2]=0;m=gb(0,n|0)|0;if((t|0)!=-1){Ob(m|0,18112,t|0)|0}if((w|0)!=-1){Ob(m|0,18120,w|0)|0}if((s|0)!=-1){Ob(m|0,18128,s|0)|0}if(r){Ob(m|0,18136,p|0)|0}if(!((q|0)==0|u^1)){IW(q)}if((m|0)==0){r=0;break}wb(0,m|0,0)|0;Oc(m|0);l=ic(0,m|0,0,0,l|0)|0;if((l|0)==0){r=0}else{a:do{if((c[l>>2]|0)>0){n=l+8|0;o=0;b:while(1){x=Sb(c[(c[n>>2]|0)+(o<<2)>>2]|0,17728,0,f|0)|0;c[g>>2]=x;do{if((x|0)==0){d=c[j>>2]|0;if((d|0)==0){break}d=Sa(d|0,46)|0;if((d|0)==0){break}if((XW(d|0,17736,4)|0)==0){p=75;break b}if((XW(d|0,17744,4)|0)==0){p=75;break b}if((XW(d|0,17760,4)|0)==0){p=78;break b}if((XW(d|0,17768,4)|0)==0){p=78;break b}}}while(0);o=o+1|0;if((o|0)>=(c[l>>2]|0)){r=0;break a}}if((p|0)==75){r=FW(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=FW(32)|0;ie(l,g);g=b;c[g>>2]=l;g=k;c[g>>2]=d;g=Tf(b,e,f)|0;g=g&1;l=j;a[l]=g;i=h;return}function Vf(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;j=g;e=i;i=i+8|0;l=i;i=i+8|0;m=i;i=i+1032|0;n=i;i=i+8|0;f=b+16|0;c[f>>2]=0;h=b+20|0;c[h>>2]=0;b=b+8|0;o=0;do{p=c[b>>2]|0;a[m+o|0]=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;o=o+1|0;}while((o|0)<1024);a[m+1024|0]=0;o=0;while(1){p=o+1|0;if((vc(m+o|0,32776,5)|0)==0){k=6;break}if((p|0)<1019){o=p}else{break}}do{if((k|0)==6){if((o|0)>1018){break}k=c[b>>2]|0;hd[c[(c[k>>2]|0)+112>>2]&127](k,o);k=Mb(m+(o+5)|0,32832,n|0)|0;if((k|0)==0){Qe(-1,32784,e);i=d;return}else{c[g>>2]=f;c[j+4>>2]=h;Hc(k|0,32840,j|0)|0;i=d;return}}}while(0);Qe(-1,32784,l);i=d;return}function Wf(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;h=i;i=i+1032|0;g=i;i=i+1032|0;e=b+64|0;j=c[e>>2]|0;if((j|0)!=-1){k=j;i=d;return k|0}j=b+8|0;k=c[j>>2]|0;do{if((jd[c[(c[k>>2]|0)+104>>2]&511](k)|0)!=0){k=b+24|0;b=c[k>>2]|0;if((b|0)==0){b=FW(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=FW(136)|0;m=c[b>>2]|0;b=c[b+32>>2]|0;l=c[l>>2]|0;if((c[l+272>>2]|0)!=7){l=0;B=a[u]|0;B=B&1;B=B<<24>>24!=0;B=B?o:0;rx(n,m,d,b,l,r,e,f,q,B,g,s,t);i=v;return n|0}l=c[l+280>>2]|0;B=a[u]|0;B=B&1;B=B<<24>>24!=0;B=B?o:0;rx(n,m,d,b,l,r,e,f,q,B,g,s,t);i=v;return n|0}function og(b,d,e,f,g,j,k,l,m,n,o,p){b=b|0;d=+d;e=+e;f=f|0;g=g|0;j=j|0;k=+k;l=+l;m=+m;n=+n;o=o|0;p=p|0;var q=0,r=0;q=i;r=c[b+36>>2]|0;b=r+32|0;if(m<0.0|n<0.0){if(g){$W(o|0,r|0,32)|0;i=q;return}else{$W(o|0,b|0,32)|0;a[p]=0;i=q;return}}g=g?r:b;d=72.0/d;e=72.0/e;if((f|0)==180){r=g+16|0;h[o>>3]=+h[r>>3]-(k+m)*d;h[o+16>>3]=+h[r>>3]-d*k;if(j){r=g+8|0;h[o+8>>3]=e*l+ +h[r>>3];h[o+24>>3]=(l+n)*e+ +h[r>>3];i=q;return}else{r=g+24|0;h[o+8>>3]=+h[r>>3]-(l+n)*e;h[o+24>>3]=+h[r>>3]-e*l;i=q;return}}else if((f|0)==270){if(j){r=g+16|0;h[o>>3]=+h[r>>3]-(l+n)*e;h[o+16>>3]=+h[r>>3]-e*l}else{h[o>>3]=e*l+ +h[g>>3];h[o+16>>3]=(l+n)*e+ +h[g>>3]}r=g+24|0;h[o+8>>3]=+h[r>>3]-(k+m)*d;h[o+24>>3]=+h[r>>3]-d*k;i=q;return}else if((f|0)==90){if(j){h[o>>3]=e*l+ +h[g>>3];h[o+16>>3]=(l+n)*e+ +h[g>>3]}else{r=g+16|0;h[o>>3]=+h[r>>3]-(l+n)*e;h[o+16>>3]=+h[r>>3]-e*l}r=g+8|0;h[o+8>>3]=d*k+ +h[r>>3];h[o+24>>3]=(k+m)*d+ +h[r>>3];i=q;return}else{h[o>>3]=d*k+ +h[g>>3];h[o+16>>3]=(k+m)*d+ +h[g>>3];if(j){r=g+24|0;h[o+8>>3]=+h[r>>3]-(l+n)*e;h[o+24>>3]=+h[r>>3]-e*l;i=q;return}else{r=g+8|0;h[o+8>>3]=e*l+ +h[r>>3];h[o+24>>3]=(l+n)*e+ +h[r>>3];i=q;return}}}function pg(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;h=i;i=i+8|0;f=i;i=i+8|0;k=i;i=i+8|0;j=k;m=i;i=i+16|0;d=m;c[m>>2]=13;g=d+8|0;c[g>>2]=0;c[g+4>>2]=0;l=c[b>>2]|0;if((l|0)!=7){c[k>>2]=l;c[j+4>>2]=7;Qe(0,34440,j);tc()}Yu(c[b+8>>2]|0,33928,d,0)|0;if((c[m>>2]|0)!=4){Qe(-1,33992,h);m=0;Of(d);i=e;return m|0}g=c[g>>2]|0;if((Qc(g|0,33936)|0)==0){m=FW(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=FW(8)|0;tq(s,l);Ro(r,s);Wo(c[n>>2]|0,0);Xo(c[n>>2]|0,0);_o(c[n>>2]|0,0,0,0.0);Yo(c[n>>2]|0,10.0);Zo(c[n>>2]|0,1.0);s=c[n>>2]|0;$o(s,lf(c[834]|0)|0);ep(c[n>>2]|0,b+125|0,0);i=d;return}function Sg(b){b=b|0;var d=0;d=i;if((c[b+112>>2]|0)==0){i=d;return}if((a[b+109|0]&1)!=0){i=d;return}Ap(c[b+184>>2]|0,b+125|0);i=d;return}function Tg(a,b){a=a|0;b=b|0;b=i;dp(c[a+184>>2]|0);i=b;return}function Ug(b,d){b=b|0;d=d|0;d=i;Mo(c[b+184>>2]|0)|0;a[b+236|0]=1;i=d;return}function Vg(b,d){b=b|0;d=d|0;var e=0;e=i;hd[c[(c[b>>2]|0)+96>>2]&127](b,d);hd[c[(c[b>>2]|0)+104>>2]&127](b,d);hd[c[(c[b>>2]|0)+108>>2]&127](b,d);hd[c[(c[b>>2]|0)+116>>2]&127](b,d);hd[c[(c[b>>2]|0)+100>>2]&127](b,d);hd[c[(c[b>>2]|0)+112>>2]&127](b,d);hd[c[(c[b>>2]|0)+120>>2]&127](b,d);hd[c[(c[b>>2]|0)+140>>2]&127](b,d);hd[c[(c[b>>2]|0)+144>>2]&127](b,d);a[b+236|0]=1;i=e;return}function Wg(a,b,d,e,f,g,j,k){a=a|0;b=b|0;d=+d;e=+e;f=+f;g=+g;j=+j;k=+k;var l=0,m=0,n=0;l=i;n=i;i=i+48|0;m=n;h[n>>3]=+h[b+16>>3];h[m+8>>3]=+h[b+24>>3];h[m+16>>3]=+h[b+32>>3];h[m+24>>3]=+h[b+40>>3];h[m+32>>3]=+h[b+48>>3];h[m+40>>3]=+h[b+56>>3];Po(c[a+184>>2]|0,m);i=l;return}function Xg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0.0,j=0,k=0.0;f=i;e=i;i=i+160|0;d=c[b+440>>2]|0;j=c[b+444>>2]|0;g=+h[b+448>>3];j=(j|0)>20?20:j;if((j|0)>0){b=0}else{b=a+184|0;b=c[b>>2]|0;_o(b,e,j,g);i=f;return}do{k=+h[d+(b<<3)>>3];h[e+(b<<3)>>3]=k<0.0?0.0:k;b=b+1|0;}while((b|0)<(j|0));b=a+184|0;b=c[b>>2]|0;_o(b,e,j,g);i=f;return}function Yg(a,b){a=a|0;b=b|0;var d=0;d=i;Zo(c[a+184>>2]|0,+(c[b+456>>2]|0));i=d;return}function Zg(a,b){a=a|0;b=b|0;var d=0;d=i;Xo(c[a+184>>2]|0,c[b+460>>2]|0);i=d;return}function _g(a,b){a=a|0;b=b|0;var d=0;d=i;Wo(c[a+184>>2]|0,c[b+464>>2]|0);i=d;return}function $g(a,b){a=a|0;b=b|0;var d=0;d=i;Yo(c[a+184>>2]|0,+h[b+472>>3]);i=d;return}function ah(a,b){a=a|0;b=b|0;var d=0;d=i;Vo(c[a+184>>2]|0,+h[b+432>>3]);i=d;return}function bh(a,b){a=a|0;b=b|0;i=i;return}function ch(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+116|0;h=c[g>>2]|0;b=b+124|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;Ro(b,dh(a,c[f>>2]|0,e)|0);i=d;return}function dh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;h=i;f=i;i=i+8|0;g=f;if((a[b+124|0]&1)==0){k=c[e+8>>2]|0;j=c[e+4>>2]|0;e=c[e>>2]|0}else{d=65536-d|0;k=65536-(c[e+8>>2]|0)|0;j=65536-(c[e+4>>2]|0)|0;e=65536-(c[e>>2]|0)|0}switch(c[b+112>>2]|0){case 4:{a[g+3|0]=-1;break};case 1:case 0:{a[f]=((d*255|0)+32768|0)>>>16;d=FW(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=FW(8)|0;tq(V,q);Qo(U,V);IB(f,+h[v>>3],+h[u>>3],+h[t>>3],+h[s>>3],+(0-(c[B>>2]|0)|0),+(0-(c[C>>2]|0)|0));Ed[c[(c[d>>2]|0)+92>>2]&3](d,f,0.0,0.0,0.0,0.0,0.0,0.0);i=r;return}}while(0);if((a[z+56|0]&1)==0){i=r;return}Qe(-1,35624,A);i=r;return}function wh(b,d){b=b|0;d=d|0;var e=0,f=0;e=i;if((c[d+584>>2]&4|0)!=0){i=e;return}f=c[d+116>>2]|0;if((jd[c[(c[f>>2]|0)+12>>2]&511](f)|0)!=10){i=e;return}a[b+108|0]=1;hd[c[(c[b>>2]|0)+80>>2]&127](b,d);i=e;return}function xh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;f=b+108|0;do{if((a[f]&1)!=0){a[f]=0;g=c[d+116>>2]|0;if((jd[c[(c[g>>2]|0)+12>>2]&511](g)|0)==10){break}f=b+240|0;g=c[f>>2]|0;if((g|0)!=0){op(c[b+184>>2]|0,g,1)|0;g=c[f>>2]|0;if((g|0)!=0){hq(g);HW(g)}c[f>>2]=0}hd[c[(c[b>>2]|0)+84>>2]&127](b,d);hd[c[(c[b>>2]|0)+140>>2]&127](b,d)}}while(0);d=b+240|0;f=c[d>>2]|0;if((f|0)==0){i=e;return}ap(c[b+184>>2]|0,f,0)|0;b=c[d>>2]|0;if((b|0)!=0){hq(b);HW(b)}c[d>>2]=0;i=e;return}function yh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;g=i;e=b+16|0;if((c[e>>2]|0)==(c[b+12>>2]|0)){j=0;i=g;return j|0}h=Bj(c[b>>2]|0)|0;f=b+8|0;if((c[f>>2]|0)>0){b=b+4|0;j=0;while(1){a[d]=a[b]&1^a[h];j=j+1|0;if((j|0)<(c[f>>2]|0)){d=d+1|0;h=h+1|0}else{break}}}c[e>>2]=(c[e>>2]|0)+1;j=1;i=g;return j|0}function zh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;g=i;h=i;i=i+32|0;f=h;$W(h|0,35664,32)|0;h=c[(c[b+180>>2]|0)+24>>2]|0;e=b+248|0;k=c[e>>2]|0;j=c[k+20>>2]|0;if((da(c[k+4>>2]|0,c[k+12>>2]|0)|0)>0){l=0;while(1){a[h+l|0]=a[j+l|0]|0;l=l+1|0;k=c[e>>2]|0;if((l|0)<(da(c[k+4>>2]|0,c[k+12>>2]|0)|0)){}else{break}}}if((k|0)!=0){Le(k);HW(k)}c[e>>2]=0;hd[c[(c[b>>2]|0)+384>>2]&127](b,d);Gd[c[(c[b>>2]|0)+388>>2]&255](b,d,f);i=g;return}function Ah(b,d,e,f,g,j,l,m,n){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;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0.0,z=0.0;e=i;u=i;i=i+48|0;r=u;p=i;i=i+24|0;s=p;m=i;i=i+8|0;q=m;t=d+116|0;w=c[t>>2]|0;if(jd[c[(c[w>>2]|0)+56>>2]&511](w)|0){i=e;return}v=d+16|0;w=0;do{h[k>>3]=+h[d+16+(w<<3)>>3];x=c[k+4>>2]&2146435072;w=w+1|0;if(!(x>>>0<2146435072|(x|0)==2146435072&(c[k>>2]&0)>>>0<0)){o=14;break}}while((w|0)<6);if((o|0)==14){i=e;return}h[u>>3]=+h[v>>3];h[r+8>>3]=+h[d+24>>3];z=+h[d+32>>3];h[r+16>>3]=-0.0-z;y=+h[d+40>>3];h[r+24>>3]=-0.0-y;h[r+32>>3]=z+ +h[d+48>>3];h[r+40>>3]=y+ +h[d+56>>3];d=FW(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=FW(192)|0;L=(a[b+122|0]&1)!=0;Ko(f,M,L,Oo(c[K>>2]|0)|0);c[B>>2]=f;if(!g){Cp(f,c[I>>2]|0,r,v,0,0,E,H)|0;cp(c[B>>2]|0,c[I>>2]|0,r,v);L=u;L=c[L>>2]|0;M=G+8|0;c[M>>2]=L;D=+(e|0);F=+(s|0);KB(d,D,F);M=b;M=c[M>>2]|0;M=M+92|0;M=c[M>>2]|0;Ed[M&3](b,d,0.0,0.0,0.0,0.0,0.0,0.0);i=j;return}switch(c[J>>2]|0){case 4:{a[k+3|0]=-1;l=28;break};case 1:case 0:{a[m]=0;break};case 3:case 2:{l=28;break};default:{}}if((l|0)==28){a[k+2|0]=0;a[k+1|0]=0;a[m]=0}ep(f,k,0);L=u;L=c[L>>2]|0;M=G+8|0;c[M>>2]=L;D=+(e|0);F=+(s|0);KB(d,D,F);M=b;M=c[M>>2]|0;M=M+92|0;M=c[M>>2]|0;Ed[M&3](b,d,0.0,0.0,0.0,0.0,0.0,0.0);i=j;return}function Ih(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=a+184|0;f=c[e>>2]|0;if((f|0)!=0){Lo(f);HW(f)}f=c[a+244>>2]|0;c[a+180>>2]=c[f+20>>2];c[e>>2]=c[f+24>>2];KB(b,+(c[f>>2]|0),+(c[f+4>>2]|0));Ed[c[(c[a>>2]|0)+92>>2]&3](a,b,0.0,0.0,0.0,0.0,0.0,0.0);i=d;return}function Jh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;d=i;f=b+244|0;g=c[f>>2]|0;e=c[g+8>>2]|0;zp(c[b+184>>2]|0,e,0,0,c[g>>2]|0,c[g+4>>2]|0,c[e>>2]|0,c[e+4>>2]|0,0,(a[g+16|0]&1)==0)|0;b=c[f>>2]|0;c[f>>2]=c[b+28>>2];if((b|0)!=0){HW(b)}if((e|0)==0){i=d;return}Le(e);HW(e);i=d;return}function Kh(b,e,f,g,j,k){b=b|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.0;l=i;o=i;i=i+8|0;m=o;w=i;i=i+8|0;v=w;y=i;i=i+16|0;z=y;n=i;i=i+8|0;r=n;p=i;i=i+8|0;q=p;e=b+244|0;B=c[e>>2]|0;t=c[B>>2]|0;u=c[B+4>>2]|0;f=c[B+8>>2]|0;do{if(!g){A=b+112|0;if((c[A>>2]|0)==0){break}if((c[B+12>>2]|0)==0){break}x=FW(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=FW(32)|0;ee(c);i=b;return c|0}function qj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;e=i;v=i;i=i+8|0;k=i;i=i+8|0;g=i;i=i+8|0;h=g;x=i;i=i+8|0;w=x;y=i;i=i+8|0;z=y;B=i;i=i+8|0;A=B;C=i;i=i+8|0;E=C;r=i;i=i+16|0;d=r;l=i;i=i+16|0;p=l;q=i;i=i+16|0;f=q;o=i;i=i+16|0;j=o;c[r>>2]=13;t=d+8|0;c[t>>2]=0;c[t+4>>2]=0;c[l>>2]=13;s=p+8|0;c[s>>2]=0;c[s+4>>2]=0;c[q>>2]=13;m=f+8|0;c[m>>2]=0;c[m+4>>2]=0;c[o>>2]=13;n=j+8|0;c[n>>2]=0;u=n+4|0;c[u>>2]=0;D=c[b>>2]|0;if((D|0)!=7){c[C>>2]=D;c[E+4>>2]=7;Qe(0,48632,E);tc()}C=b+8|0;Yu(c[C>>2]|0,36256,d,0)|0;do{if((c[r>>2]|0)==5){Of(d);D=c[b>>2]|0;if((D|0)==7){Yu(c[C>>2]|0,36264,d,0)|0;break}else{c[B>>2]=D;c[A+4>>2]=7;Qe(0,48632,A);tc()}}}while(0);A=c[b>>2]|0;if((A|0)!=7){c[y>>2]=A;c[z+4>>2]=7;Qe(0,48632,z);tc()}Yu(c[C>>2]|0,36272,f,0)|0;do{if((c[q>>2]|0)==5){Of(f);b=c[b>>2]|0;if((b|0)==7){Yu(c[C>>2]|0,36288,f,0)|0;break}else{c[x>>2]=b;c[w+4>>2]=7;Qe(0,48632,w);tc()}}}while(0);w=c[r>>2]|0;if((w|0)==4){E=rj(a,c[t>>2]|0,a,f)|0;Of(d);Of(f);i=e;return E|0}else if((w|0)==6){v=0;w=a;while(1){x=c[t>>2]|0;if((v|0)>=(c[x+12>>2]|0)){j=26;break}ut(x,v,p)|0;if((c[q>>2]|0)==6){ut(c[m>>2]|0,v,j)|0}else{c[n>>2]=0;c[u>>2]=0;c[o>>2]=5}if((c[l>>2]|0)==4){x=rj(a,c[s>>2]|0,w,j)|0}else{Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,36296,k);x=FW(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=FW(56)|0;e=c[b+32>>2]|0;c[k+4>>2]=1;$W(k+16|0,g|0,16)|0;c[k>>2]=37312;c[k+32>>2]=e;c[k+36>>2]=d;c[k+8>>2]=f;c[k+40>>2]=e+(f+d);c[k+44>>2]=e+d;a[k+48|0]=0;i=j;return k|0}function Xj(a){a=a|0;c[a+44>>2]=(c[a+32>>2]|0)+(c[a+36>>2]|0);i=i;return}function Yj(a){a=a|0;i=i;return}function Zj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[a+36>>2]|0;if((d|0)<=-1){b=e-b+(c[a+8>>2]|0)|0}if(b>>>0>=e>>>0){e=(c[a+8>>2]|0)+e|0;e=b>>>0>e>>>0?e:b}c[a+44>>2]=(c[a+32>>2]|0)+e;i=i;return}function _j(a,b){a=a|0;b=b|0;var d=0,e=0;e=a+36|0;d=(c[e>>2]|0)+b|0;c[e>>2]=d;e=a+8|0;c[e>>2]=(c[e>>2]|0)-b;c[a+44>>2]=(c[a+32>>2]|0)+d;i=i;return}function $j(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,e|0,16)|0;c[b>>2]=37440;c[b+32>>2]=d;a[b+36|0]=f&1;c[b+8>>2]=g;i=h;return}function ak(a){a=a|0;var b=0;b=i;c[a>>2]=36776;Of(a+16|0);HW(a);i=b;return}function bk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;e=i;d=i;i=i+8|0;Qe(-1,37560,d);i=e;return 0}function ck(b){b=b|0;var d=0,e=0;d=i;e=c[b+8>>2]|0;if((a[b+36|0]&1)!=0&(e|0)==0){e=-1;i=d;return e|0}c[b+8>>2]=e+ -1;e=c[b+32>>2]|0;e=jd[c[(c[e>>2]|0)+20>>2]&511](e)|0;i=d;return e|0}function dk(b){b=b|0;var d=0;d=i;do{if((a[b+36|0]&1)!=0){if((c[b+8>>2]|0)==0){b=-1}else{break}i=d;return b|0}}while(0);b=c[b+32>>2]|0;b=jd[c[(c[b>>2]|0)+24>>2]&511](b)|0;i=d;return b|0}function ek(a,b,c){a=a|0;b=b|0;c=c|0;c=i;b=i;i=i+8|0;Qe(-1,37608,b);i=c;return}function fk(a){a=a|0;var b=0;a=i;b=i;i=i+8|0;Qe(-1,37656,b);i=a;return 0}function gk(a,b){a=a|0;b=b|0;b=i;a=i;i=i+8|0;Qe(-1,37704,a);i=b;return}function hk(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=37760;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 ik(a){a=a|0;var b=0;b=i;c[a>>2]=37760;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 jk(b){b=b|0;var d=0,e=0;d=i;e=c[b+8>>2]|0;fd[c[(c[e>>2]|0)+12>>2]&511](e);c[b+12>>2]=-1;a[b+16|0]=0;i=d;return}function kk(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;f=i;i=i+8|0;g=f;j=i;i=i+8|0;k=j;e=b+12|0;h=c[e>>2]|0;if((h|0)!=-1){n=h;i=d;return n|0}h=b+16|0;if((a[h]&1)!=0){c[e>>2]=-1;n=-1;i=d;return n|0}n=b+8|0;do{l=c[n>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;}while((xc(l|0)|0)!=0);if((l|0)==62){a[h]=1;c[e>>2]=-1;n=-1;i=d;return n|0}do{m=c[n>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;}while((xc(m|0)|0)!=0);if((m|0)==62){a[h]=1;m=48}do{if((l+ -48|0)>>>0<10){k=(l<<4)+ -768|0}else{if((l+ -65|0)>>>0<6){k=(l<<4)+ -880|0;break}if((l+ -97|0)>>>0<6){k=(l<<4)+ -1392|0;break}if((l|0)==-1){a[h]=1;k=0;break}else{n=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[j>>2]=l;Qe(n,37856,k);k=0;break}}}while(0);j=m+ -48|0;do{if(j>>>0<10){k=j+k|0}else{if((m+ -65|0)>>>0<6){k=m+ -55+k|0;break}if((m+ -97|0)>>>0<6){k=m+ -87+k|0;break}if((m|0)==-1){a[h]=1;k=0;break}else{n=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[f>>2]=m;Qe(n,37856,g);break}}}while(0);n=k&255;c[e>>2]=n;i=d;return n|0}function lk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)<2){b=0;i=e;return b|0}a=c[a+8>>2]|0;a=sd[c[(c[a>>2]|0)+56>>2]&127](a,b,d)|0;if((a|0)==0){b=0;i=e;return b|0}ne(ne(a,d,-1)|0,37904,-1)|0;b=a;i=e;return b|0}function mk(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,0)|0;i=d;return b|0}function nk(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=37936;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 ok(a){a=a|0;var b=0;b=i;c[a>>2]=37936;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 pk(b){b=b|0;var d=0,e=0;d=i;e=c[b+8>>2]|0;fd[c[(c[e>>2]|0)+12>>2]&511](e);c[b+52>>2]=0;c[b+48>>2]=0;a[b+56|0]=0;i=d;return}function qk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;g=i;e=b+48|0;h=b+52|0;do{if((c[e>>2]|0)>=(c[h>>2]|0)){f=b+56|0;if((a[f]&1)!=0){l=-1;i=g;return l|0}c[e>>2]=0;j=b+8|0;d=b+12|0;do{l=c[j>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;c[d>>2]=l;}while(hE(l)|0);k=c[d>>2]|0;if((k|0)==-1|(k|0)==126){a[f]=1;c[h>>2]=0;l=-1;i=g;return l|0}else if((k|0)==122){bX(b+32|0,0,16)|0;c[h>>2]=4;break}else{k=1;while(1){l=b+12+(k<<2)|0;do{m=c[j>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;c[l>>2]=m;}while(hE(m)|0);m=c[l>>2]|0;if((m|0)==-1|(m|0)==126){j=12;break}l=k+1|0;if((l|0)<5){k=l}else{j=16;break}}do{if((j|0)==12){c[h>>2]=k+ -1;m=c[l>>2]|0;if(!((m|0)==-1|(m|0)==126)){break}h=k+1|0;if((h|0)<5){do{c[b+12+(h<<2)>>2]=117;h=h+1|0;}while((h|0)<5)}a[f]=1}else if((j|0)==16){c[h>>2]=k}}while(0);m=((((((((c[d>>2]|0)*85|0)+ -2838+(c[b+16>>2]|0)|0)*85|0)+ -33+(c[b+20>>2]|0)|0)*85|0)+ -33+(c[b+24>>2]|0)|0)*85|0)+ -33+(c[b+28>>2]|0)|0;c[b+44>>2]=m&255;c[b+40>>2]=m>>>8&255;c[b+36>>2]=m>>>16&255;c[b+32>>2]=m>>>24;break}}}while(0);m=c[b+32+(c[e>>2]<<2)>>2]|0;i=g;return m|0}function rk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)<2){b=0;i=e;return b|0}a=c[a+8>>2]|0;a=sd[c[(c[a>>2]|0)+56>>2]&127](a,b,d)|0;if((a|0)==0){b=0;i=e;return b|0}ne(ne(a,d,-1)|0,38032,-1)|0;b=a;i=e;return b|0}function sk(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,0)|0;i=d;return b|0}function tk(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0;k=i;c[b+4>>2]=1;c[b+8>>2]=d;c[b>>2]=38064;a:do{if((e|0)==1){c[b+12>>2]=0}else{d=FW(44)|0;c[d>>2]=b;c[d+4>>2]=e;c[d+8>>2]=f;c[d+12>>2]=g;c[d+16>>2]=h;e=d+32|0;c[e>>2]=0;n=d+40|0;a[n]=0;o=da(g,f)|0;c[d+20>>2]=o;l=(da(h,g)|0)+7>>3;c[d+24>>2]=l;l=((da(o,h)|0)+7>>3)+l|0;m=d+28|0;c[m>>2]=l;do{if(!((f|0)<1|(g|0)<1)){if((h|0)<1|(g|0)>32|(h|0)>16){break}if((2147483647/(g|0)|0|0)<=(f|0)){break}if((o|0)>=(2147483640/(h|0)|0|0)){break}o=we(l)|0;c[e>>2]=o;bX(o|0,0,c[m>>2]|0)|0;c[d+36>>2]=c[m>>2];a[n]=1;c[b+12>>2]=d;break a}}while(0);g=b+12|0;c[g>>2]=d;if((d|0)!=0){Fe(c[e>>2]|0);HW(d)}c[g>>2]=0}}while(0);c[b+16>>2]=j;a[b+20|0]=0;c[b+28>>2]=0;c[b+49196>>2]=258;c[b+49200>>2]=9;c[b+53312>>2]=0;c[b+53316>>2]=0;a[b+53320|0]=1;i=k;return}function uk(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=38064;d=c[a+12>>2]|0;if((d|0)!=0){Fe(c[d+32>>2]|0);HW(d)}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 vk(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=38064;d=c[a+12>>2]|0;if((d|0)!=0){Fe(c[d+32>>2]|0);HW(d)}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 wk(b){b=b|0;var e=0,f=0,g=0;e=i;f=c[b+12>>2]|0;if((f|0)!=0){b=f+36|0;g=c[b>>2]|0;do{if((g|0)>=(c[f+28>>2]|0)){if(Cj(f)|0){g=c[b>>2]|0;break}else{g=-1;i=e;return g|0}}}while(0);c[b>>2]=g+1;g=d[(c[f+32>>2]|0)+g|0]|0;i=e;return g|0}if((a[b+20|0]&1)!=0){g=-1;i=e;return g|0}f=b+53316|0;g=c[f>>2]|0;do{if((g|0)>=(c[b+53312>>2]|0)){if(xk(b)|0){g=c[f>>2]|0;break}else{g=-1;i=e;return g|0}}}while(0);c[f>>2]=g+1;g=d[b+49212+g|0]|0;i=e;return g|0}function xk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;m=i;i=i+8|0;n=i;i=i+8|0;k=b+20|0;if((a[k]&1)!=0){t=0;i=d;return t|0}p=b+28|0;f=b+49200|0;q=b+8|0;r=b+24|0;g=b+49196|0;l=b+53312|0;e=b+53316|0;h=b+53320|0;t=c[f>>2]|0;s=c[p>>2]|0;a:while(1){if((s|0)<(t|0)){do{j=c[q>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){o=8;break a}j=c[r>>2]<<8|j&255;c[r>>2]=j;s=(c[p>>2]|0)+8|0;c[p>>2]=s;t=c[f>>2]|0;}while((s|0)<(t|0))}else{j=c[r>>2]|0}s=s-t|0;j=j>>s&(1<<t)+ -1;c[p>>2]=s;if((j|0)==257|(j|0)==-1){o=8;break}else if((j|0)!=256){break}c[g>>2]=258;c[f>>2]=9;c[l>>2]=0;c[e>>2]=0;a[h]=1;t=9}if((o|0)==8){a[k]=1;t=0;i=d;return t|0}p=c[g>>2]|0;if((p|0)>4096){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,38160,n);c[g>>2]=258;c[f>>2]=9;c[l>>2]=0;c[e>>2]=0;a[h]=1;o=0;p=258}else{o=c[l>>2]|0}n=o+1|0;do{if((j|0)<256){t=j&255;a[b+49212|0]=t;c[l>>2]=1;l=t}else{if((j|0)<(p|0)){k=c[b+32+(j*12|0)>>2]|0;c[l>>2]=k;k=k+ -1|0;l=j&255;if((k|0)>0){l=j;do{a[b+49212+k|0]=a[b+32+(l*12|0)+8|0]|0;l=c[b+32+(l*12|0)+4>>2]|0;k=k+ -1|0;}while((k|0)>0);l=l&255}a[b+49212|0]=l;break}else{if((j|0)==(p|0)){a[b+49212+o|0]=c[b+49208>>2];c[l>>2]=(c[l>>2]|0)+1;l=a[b+49212|0]|0;break}Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,38208,m);a[k]=1;t=0;i=d;return t|0}}}while(0);k=b+49208|0;c[k>>2]=l&255;do{if((a[h]&1)==0){c[b+32+((c[g>>2]|0)*12|0)>>2]=n;h=b+49204|0;c[b+32+((c[g>>2]|0)*12|0)+4>>2]=c[h>>2];a[b+32+((c[g>>2]|0)*12|0)+8|0]=c[k>>2];t=(c[g>>2]|0)+1|0;c[g>>2]=t;b=t+(c[b+16>>2]|0)|0;if((b|0)==512){c[f>>2]=10;break}else if((b|0)==1024){c[f>>2]=11;break}else if((b|0)==2048){c[f>>2]=12;break}else{break}}else{a[h]=0;h=b+49204|0}}while(0);c[h>>2]=j;c[e>>2]=0;t=1;i=d;return t|0}function yk(b){b=b|0;var e=0,f=0,g=0;e=i;f=c[b+12>>2]|0;if((f|0)!=0){g=f+36|0;b=c[g>>2]|0;do{if((b|0)>=(c[f+28>>2]|0)){if(Cj(f)|0){b=c[g>>2]|0;break}else{g=-1;i=e;return g|0}}}while(0);g=d[(c[f+32>>2]|0)+b|0]|0;i=e;return g|0}if((a[b+20|0]&1)!=0){g=-1;i=e;return g|0}g=b+53316|0;f=c[g>>2]|0;do{if((f|0)>=(c[b+53312>>2]|0)){if(xk(b)|0){f=c[g>>2]|0;break}else{g=-1;i=e;return g|0}}}while(0);g=d[b+49212+f|0]|0;i=e;return g|0}function zk(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;j=i;if((e|0)<=0){i=j;return}k=b+20|0;h=b+53316|0;g=b+53312|0;l=0;do{do{if((a[k]&1)==0){m=c[h>>2]|0;if((m|0)>=(c[g>>2]|0)){if(!(xk(b)|0)){m=-1;break}m=c[h>>2]|0}c[h>>2]=m+1;m=d[b+49212+m|0]|0}else{m=-1}}while(0);c[f+(l<<2)>>2]=m;l=l+1|0;}while((l|0)<(e|0));i=j;return}function Ak(b){b=b|0;var e=0,f=0,g=0;e=i;if((a[b+20|0]&1)!=0){g=-1;i=e;return g|0}f=b+53316|0;g=c[f>>2]|0;do{if((g|0)>=(c[b+53312>>2]|0)){if(xk(b)|0){g=c[f>>2]|0;break}else{g=-1;i=e;return g|0}}}while(0);c[f>>2]=g+1;g=d[b+49212+g|0]|0;i=e;return g|0}function Bk(b){b=b|0;var d=0,e=0;d=i;e=c[b+8>>2]|0;fd[c[(c[e>>2]|0)+12>>2]&511](e);a[b+20|0]=0;c[b+28>>2]=0;c[b+49196>>2]=258;c[b+49200>>2]=9;c[b+53312>>2]=0;c[b+53316>>2]=0;a[b+53320|0]=1;i=d;return}function Ck(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;if((b|0)<2){b=0;i=e;return b|0}if((c[a+12>>2]|0)!=0){b=0;i=e;return b|0}f=c[a+8>>2]|0;b=sd[c[(c[f>>2]|0)+56>>2]&127](f,b,d)|0;if((b|0)==0){f=0;i=e;return f|0}ne(ne(b,d,-1)|0,38248,-1)|0;if((c[a+16>>2]|0)==0){ne(b,38256,-1)|0}ne(b,38272,-1)|0;f=b;i=e;return f|0}function Dk(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 Ek(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=38304;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 Fk(a){a=a|0;var b=0;b=i;c[a>>2]=38304;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 Gk(b){b=b|0;var d=0,e=0;d=i;e=c[b+8>>2]|0;fd[c[(c[e>>2]|0)+12>>2]&511](e);e=b+12|0;c[b+144>>2]=e;c[b+140>>2]=e;a[b+148|0]=0;i=d;return}function Hk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)<2){b=0;i=e;return b|0}a=c[a+8>>2]|0;a=sd[c[(c[a>>2]|0)+56>>2]&127](a,b,d)|0;if((a|0)==0){b=0;i=e;return b|0}ne(ne(a,d,-1)|0,38400,-1)|0;b=a;i=e;return b|0}function Ik(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 Jk(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=38440;d=c[a+8>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}Fe(c[a+48>>2]|0);Fe(c[a+44>>2]|0);HW(a);i=b;return}function Kk(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=38440;d=c[a+8>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}Fe(c[a+48>>2]|0);Fe(c[a+44>>2]|0);i=b;return}function Lk(b){b=b|0;var d=0,e=0;d=i;e=c[b+8>>2]|0;fd[c[(c[e>>2]|0)+12>>2]&511](e);c[b+32>>2]=0;a[b+31|0]=(c[b+12>>2]|0)>>>31;c[b+40>>2]=0;c[b+52>>2]=0;c[b+60>>2]=0;c[b+64>>2]=-1;i=d;return}function Mk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;fd[c[(c[b>>2]|0)+40>>2]&511](b);e=c[b+44>>2]|0;do{if((e|0)==0){f=4}else{if((c[b+48>>2]|0)==0){f=4;break}a[b+30|0]=0;c[e>>2]=c[b+20>>2]}}while(0);if((f|0)==4){a[b+30|0]=1}e=b+40|0;h=b+8|0;g=b+36|0;l=c[e>>2]|0;a:while(1){b:do{if((l|0)<12){while(1){j=c[h>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){break}k=(c[g>>2]<<8)+j|0;c[g>>2]=k;j=(c[e>>2]|0)+8|0;c[e>>2]=j;if((j|0)>=12){l=j;f=12;break b}}k=c[e>>2]|0;if((k|0)==0){j=0;break a}j=k;k=c[g>>2]<<12-k}else{k=c[g>>2]|0;f=12}}while(0);if((f|0)==12){f=0;j=l;k=k>>l+ -12}k=k&4095;if(k<<16>>16==1){f=15;break}else if(k<<16>>16!=0){break}j=j+ -1|0;l=(j|0)<0?0:j;c[e>>2]=l}if((f|0)==15){j=j+ -12|0;j=(j|0)<0?0:j;c[e>>2]=j}if((c[b+12>>2]|0)<=0){i=d;return}c:do{if((j|0)<1){while(1){j=c[h>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){break}k=(c[g>>2]<<8)+j|0;c[g>>2]=k;j=(c[e>>2]|0)+8|0;c[e>>2]=j;if((j|0)>=1){g=k;f=23;break c}}j=c[e>>2]|0;if((j|0)==0){h=0;g=-1;break}h=j;g=c[g>>2]<<1-j&1}else{g=c[g>>2]|0;f=23}}while(0);if((f|0)==23){h=j;g=g>>>(j+ -1|0)&1}a[b+31|0]=g<<16>>16==0|0;b=h+ -1|0;c[e>>2]=(b|0)<0?0:b;i=d;return}function Nk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;d=i;j=i;i=i+8|0;E=i;i=i+8|0;D=E;A=i;i=i+8|0;w=A;B=i;i=i+8|0;C=B;p=i;i=i+8|0;q=p;n=i;i=i+8|0;o=n;r=i;i=i+8|0;s=r;y=i;i=i+8|0;z=y;t=i;i=i+8|0;x=t;v=i;i=i+8|0;u=v;e=b+64|0;f=c[e>>2]|0;if((f|0)!=-1){M=f;i=d;return M|0}f=b+60|0;h=c[f>>2]|0;if((h|0)==0){h=b+30|0;if((a[h]&1)!=0){M=-1;i=d;return M|0}l=b+56|0;a[l]=0;k=b+31|0;m=b+44|0;F=c[m>>2]|0;a:do{if((a[k]&1)==0){c[F>>2]=0;p=b+52|0;c[p>>2]=0;o=b+20|0;if((c[c[m>>2]>>2]|0)>=(c[o>>2]|0)){break}n=0;while(1){if((n|0)==0){r=0;while(1){M=Qk(b)|0;r=M+r<<16>>16;if(M<<16>>16>63){}else{break}}}else{r=0;while(1){M=Pk(b)|0;r=M+r<<16>>16;if(M<<16>>16>63){}else{break}}}t=c[p>>2]|0;s=c[(c[m>>2]|0)+(t<<2)>>2]|0;q=s+(r<<16>>16)|0;if(r<<16>>16>0){if((c[o>>2]|0)<(q|0)){t=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[E>>2]=q;Qe(t,48704,D);a[l]=1;t=c[p>>2]|0;q=c[o>>2]|0}if((t&1|0)!=(n|0)){t=t+1|0;c[p>>2]=t}c[(c[m>>2]|0)+(t<<2)>>2]=q;s=c[(c[m>>2]|0)+(c[p>>2]<<2)>>2]|0}if((s|0)<(c[o>>2]|0)){n=n^1}else{break}}}else{G=c[F>>2]|0;D=b+20|0;F=c[D>>2]|0;E=b+48|0;if((G|0)<(F|0)){F=0;while(1){c[(c[E>>2]|0)+(F<<2)>>2]=G;F=F+1|0;G=c[(c[m>>2]|0)+(F<<2)>>2]|0;H=c[D>>2]|0;if((G|0)<(H|0)){}else{G=H;break}}}else{G=F;F=0}c[(c[E>>2]|0)+(F<<2)>>2]=G;c[(c[E>>2]|0)+(F+1<<2)>>2]=c[D>>2];c[c[m>>2]>>2]=0;F=b+52|0;c[F>>2]=0;if((c[c[m>>2]>>2]|0)>=(c[D>>2]|0)){break}G=0;H=0;while(1){I=(Ok(b)|0)<<16>>16;b:do{switch(I|0){case 1:{if((H|0)==0){J=0;while(1){M=Qk(b)|0;J=M+J<<16>>16;if(M<<16>>16>63){}else{I=0;break}}while(1){M=Pk(b)|0;I=M+I<<16>>16;if(M<<16>>16>63){}else{break}}}else{J=0;while(1){M=Pk(b)|0;J=M+J<<16>>16;if(M<<16>>16>63){}else{I=0;break}}while(1){M=Qk(b)|0;I=M+I<<16>>16;if(M<<16>>16>63){}else{break}}}M=c[F>>2]|0;K=c[(c[m>>2]|0)+(M<<2)>>2]|0;L=K+(J<<16>>16)|0;if(J<<16>>16>0){if((c[D>>2]|0)<(L|0)){M=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[t>>2]=L;Qe(M,48704,x);a[l]=1;M=c[F>>2]|0;L=c[D>>2]|0}if((M&1|0)!=(H|0)){M=M+1|0;c[F>>2]=M}c[(c[m>>2]|0)+(M<<2)>>2]=L;M=c[F>>2]|0;K=c[(c[m>>2]|0)+(M<<2)>>2]|0}L=c[D>>2]|0;do{if((K|0)<(L|0)){J=K+(I<<16>>16)|0;if(I<<16>>16<=0){break}if((L|0)<(J|0)){M=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[y>>2]=J;Qe(M,48704,z);a[l]=1;M=c[F>>2]|0;J=c[D>>2]|0}if((M&1|0)!=(H^1|0)){M=M+1|0;c[F>>2]=M}c[(c[m>>2]|0)+(M<<2)>>2]=J;K=c[(c[m>>2]|0)+(c[F>>2]<<2)>>2]|0}}while(0);J=c[E>>2]|0;M=c[J+(G<<2)>>2]|0;if((M|0)>(K|0)){break b}I=c[D>>2]|0;while(1){L=G+2|0;if((M|0)>=(I|0)){break b}M=c[J+(L<<2)>>2]|0;if((M|0)>(K|0)){G=L;break}else{G=L}}break};case 2:{J=c[(c[E>>2]|0)+(G<<2)>>2]|0;K=c[F>>2]|0;I=c[(c[m>>2]|0)+(K<<2)>>2]|0;if((I|0)<(J|0)){if((c[D>>2]|0)<(J|0)){K=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[B>>2]=J;Qe(K,48704,C);a[l]=1;K=c[F>>2]|0;J=c[D>>2]|0}if((K&1|0)!=(H|0)){K=K+1|0;c[F>>2]=K}c[(c[m>>2]|0)+(K<<2)>>2]=J;I=c[(c[m>>2]|0)+(c[F>>2]<<2)>>2]|0}H=H^1;J=c[D>>2]|0;if((I|0)>=(J|0)){break b}G=G+1|0;K=c[E>>2]|0;L=c[K+(G<<2)>>2]|0;if((L|0)>(I|0)){break b}while(1){M=G+2|0;if((L|0)>=(J|0)){break b}L=c[K+(M<<2)>>2]|0;if((L|0)>(I|0)){G=M;break}else{G=M}}break};case 5:{J=(c[(c[E>>2]|0)+(G<<2)>>2]|0)+2|0;K=c[F>>2]|0;I=c[(c[m>>2]|0)+(K<<2)>>2]|0;if((I|0)<(J|0)){if((c[D>>2]|0)<(J|0)){I=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[n>>2]=J;Qe(I,48704,o);a[l]=1;I=c[F>>2]|0;J=c[D>>2]|0}else{I=K}if((I&1|0)!=(H|0)){I=I+1|0;c[F>>2]=I}c[(c[m>>2]|0)+(I<<2)>>2]=J;I=c[(c[m>>2]|0)+(c[F>>2]<<2)>>2]|0}H=H^1;J=c[D>>2]|0;if((I|0)>=(J|0)){break b}G=G+1|0;K=c[E>>2]|0;L=c[K+(G<<2)>>2]|0;if((L|0)>(I|0)){break b}while(1){M=G+2|0;if((L|0)>=(J|0)){break b}L=c[K+(M<<2)>>2]|0;if((L|0)>(I|0)){G=M;break}else{G=M}}break};case 8:{Rk(b,(c[(c[E>>2]|0)+(G<<2)>>2]|0)+ -3|0,H);H=H^1;J=c[(c[m>>2]|0)+(c[F>>2]<<2)>>2]|0;I=c[D>>2]|0;if((J|0)>=(I|0)){break b}G=G+((G|0)>0?-1:1)|0;K=c[E>>2]|0;L=c[K+(G<<2)>>2]|0;if((L|0)>(J|0)){break b}while(1){M=G+2|0;if((L|0)>=(I|0)){break b}L=c[K+(M<<2)>>2]|0;if((L|0)>(J|0)){G=M;break}else{G=M}}break};case 6:{Rk(b,(c[(c[E>>2]|0)+(G<<2)>>2]|0)+ -2|0,H);H=H^1;J=c[(c[m>>2]|0)+(c[F>>2]<<2)>>2]|0;I=c[D>>2]|0;if((J|0)>=(I|0)){break b}G=G+((G|0)>0?-1:1)|0;K=c[E>>2]|0;L=c[K+(G<<2)>>2]|0;if((L|0)>(J|0)){break b}while(1){M=G+2|0;if((L|0)>=(I|0)){break b}L=c[K+(M<<2)>>2]|0;if((L|0)>(J|0)){G=M;break}else{G=M}}break};case 3:{J=(c[(c[E>>2]|0)+(G<<2)>>2]|0)+1|0;K=c[F>>2]|0;I=c[(c[m>>2]|0)+(K<<2)>>2]|0;if((I|0)<(J|0)){if((c[D>>2]|0)<(J|0)){K=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[p>>2]=J;Qe(K,48704,q);a[l]=1;K=c[F>>2]|0;J=c[D>>2]|0}if((K&1|0)!=(H|0)){K=K+1|0;c[F>>2]=K}c[(c[m>>2]|0)+(K<<2)>>2]=J;I=c[(c[m>>2]|0)+(c[F>>2]<<2)>>2]|0}H=H^1;J=c[D>>2]|0;if((I|0)>=(J|0)){break b}G=G+1|0;K=c[E>>2]|0;L=c[K+(G<<2)>>2]|0;if((L|0)>(I|0)){break b}while(1){M=G+2|0;if((L|0)>=(J|0)){break b}L=c[K+(M<<2)>>2]|0;if((L|0)>(I|0)){G=M;break}else{G=M}}break};case 7:{J=(c[(c[E>>2]|0)+(G<<2)>>2]|0)+3|0;K=c[F>>2]|0;I=c[(c[m>>2]|0)+(K<<2)>>2]|0;if((I|0)<(J|0)){if((c[D>>2]|0)<(J|0)){K=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[r>>2]=J;Qe(K,48704,s);a[l]=1;K=c[F>>2]|0;J=c[D>>2]|0}if((K&1|0)!=(H|0)){K=K+1|0;c[F>>2]=K}c[(c[m>>2]|0)+(K<<2)>>2]=J;I=c[(c[m>>2]|0)+(c[F>>2]<<2)>>2]|0}H=H^1;J=c[D>>2]|0;if((I|0)>=(J|0)){break b}G=G+1|0;K=c[E>>2]|0;M=c[K+(G<<2)>>2]|0;if((M|0)>(I|0)){break b}while(1){L=G+2|0;if((M|0)>=(J|0)){break b}M=c[K+(L<<2)>>2]|0;if((M|0)>(I|0)){G=L;break}else{G=L}}break};case 0:{I=G+1|0;J=c[(c[E>>2]|0)+(I<<2)>>2]|0;K=c[F>>2]|0;if((c[(c[m>>2]|0)+(K<<2)>>2]|0)<(J|0)){if((c[D>>2]|0)<(J|0)){K=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[v>>2]=J;Qe(K,48704,u);a[l]=1;K=c[F>>2]|0;J=c[D>>2]|0}if((K&1|0)!=(H|0)){K=K+1|0;c[F>>2]=K}c[(c[m>>2]|0)+(K<<2)>>2]=J;J=c[(c[E>>2]|0)+(I<<2)>>2]|0}G=(J|0)<(c[D>>2]|0)?G+2|0:G;break};case 4:{Rk(b,(c[(c[E>>2]|0)+(G<<2)>>2]|0)+ -1|0,H);H=H^1;J=c[(c[m>>2]|0)+(c[F>>2]<<2)>>2]|0;I=c[D>>2]|0;if((J|0)>=(I|0)){break b}G=G+((G|0)>0?-1:1)|0;K=c[E>>2]|0;L=c[K+(G<<2)>>2]|0;if((L|0)>(J|0)){break b}while(1){M=G+2|0;if((L|0)>=(I|0)){break b}L=c[K+(M<<2)>>2]|0;if((L|0)>(J|0)){G=M;break}else{G=M}}break};case-1:{I=c[D>>2]|0;K=c[F>>2]|0;J=c[m>>2]|0;if((c[J+(K<<2)>>2]|0)<(I|0)){if((K&1|0)!=0){K=K+1|0;c[F>>2]=K}c[J+(K<<2)>>2]=I}a[h]=1;break};default:{J=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[A>>2]=I;Qe(J,38536,w);J=c[D>>2]|0;K=c[F>>2]|0;I=c[m>>2]|0;if((c[I+(K<<2)>>2]|0)<(J|0)){if((K&1|0)!=0){K=K+1|0;c[F>>2]=K}c[I+(K<<2)>>2]=J}a[l]=1}}}while(0);if((c[(c[m>>2]|0)+(c[F>>2]<<2)>>2]|0)>=(c[D>>2]|0)){break a}}}}while(0);if((a[b+17|0]&1)!=0){M=b+40|0;c[M>>2]=c[M>>2]&-8}m=b+28|0;do{if((a[m]&1)==0){if((c[b+32>>2]|0)!=((c[b+24>>2]|0)+ -1|0)){g=119;break}a[h]=1;o=1}else{g=119}}while(0);c:do{if((g|0)==119){n=b+40|0;s=c[n>>2]|0;d:do{if((s|0)<12){o=b+8|0;r=b+36|0;while(1){p=c[o>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}p=(c[r>>2]<<8)+p|0;c[r>>2]=p;s=(c[n>>2]|0)+8|0;c[n>>2]=s;if((s|0)>=12){r=p;g=126;break d}}s=c[n>>2]|0;if((s|0)==0){q=0;p=r;r=-1;break}q=s;p=r;r=c[r>>2]<<12-s&4095}else{r=c[b+36>>2]|0;o=b+8|0;g=126}}while(0);if((g|0)==126){q=s;p=b+36|0;r=r>>s+ -12&4095}e:while(1){if(r<<16>>16==1){g=136;break}else if(r<<16>>16==-1){g=137;break}else if(r<<16>>16!=0){o=1;break c}q=q+ -1|0;r=(q|0)<0?0:q;c[n>>2]=r;f:do{if((r|0)<12){while(1){q=c[o>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}s=(c[p>>2]<<8)+q|0;c[p>>2]=s;r=(c[n>>2]|0)+8|0;c[n>>2]=r;if((r|0)>=12){break f}}r=c[n>>2]|0;if((r|0)==0){q=0;r=-1;continue e}q=r;r=c[p>>2]<<12-r&4095;continue e}else{s=c[p>>2]|0}}while(0);q=r;r=s>>r+ -12&4095}if((g|0)==136){o=q+ -12|0;c[n>>2]=(o|0)<0?0:o;o=0;break}else if((g|0)==137){a[h]=1;o=1;break}}}while(0);do{if((a[h]&1)==0){if((c[b+12>>2]|0)<=0){break}n=b+40|0;r=c[n>>2]|0;g:do{if((r|0)<1){q=b+8|0;p=b+36|0;while(1){r=c[q>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=(c[p>>2]<<8)+r|0;c[p>>2]=s;r=(c[n>>2]|0)+8|0;c[n>>2]=r;if((r|0)>=1){p=s;g=147;break g}}r=c[n>>2]|0;if((r|0)==0){q=0;p=-1;break}q=r;p=c[p>>2]<<1-r&1}else{p=c[b+36>>2]|0;g=147}}while(0);if((g|0)==147){q=r;p=p>>>(r+ -1|0)&1}a[k]=p<<16>>16==0|0;p=q+ -1|0;c[n>>2]=(p|0)<0?0:p}}while(0);h:do{if((a[m]&1)==0|o){if((a[l]&1)==0){break}if((a[b+16|0]&1)==0){break}j=b+40|0;l=b+8|0;m=b+36|0;p=c[j>>2]|0;i:while(1){j:do{if((p|0)<13){while(1){n=c[l>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}o=(c[m>>2]<<8)+n|0;c[m>>2]=o;p=(c[j>>2]|0)+8|0;c[j>>2]=p;if((p|0)>=13){g=195;break j}}o=c[j>>2]|0;if((o|0)==0){g=197;break i}n=o;o=c[m>>2]<<13-o}else{o=c[m>>2]|0;g=195}}while(0);if((g|0)==195){g=0;n=p;o=o>>p+ -13}o=o&65535&8191;if((o&8190|0)==2){g=199;break}n=n+ -1|0;p=(n|0)<0?0:n;c[j>>2]=p}if((g|0)==197){a[h]=1;M=-1;i=d;return M|0}else if((g|0)==199){h=n+ -12|0;h=(h|0)<0?0:h;c[j>>2]=h;if((c[b+12>>2]|0)<=0){break}h=h+ -1|0;c[j>>2]=(h|0)<0?0:h;a[k]=o&1^1;break}}else{k=b+40|0;n=c[k>>2]|0;k:do{if((n|0)<12){m=b+8|0;l=b+36|0;while(1){n=c[m>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}o=(c[l>>2]<<8)+n|0;c[l>>2]=o;n=(c[k>>2]|0)+8|0;c[k>>2]=n;if((n|0)>=12){l=o;g=157;break k}}n=c[k>>2]|0;if((n|0)==0){break h}m=n;l=c[l>>2]<<12-n}else{l=c[b+36>>2]|0;g=157}}while(0);if((g|0)==157){m=n;l=l>>n+ -12}if((l&4095)!=1){break}l=m+ -12|0;o=(l|0)<0?0:l;c[k>>2]=o;l=b+12|0;m=c[l>>2]|0;if((m|0)>0){if((o|0)<1){n=b+8|0;m=b+36|0;do{o=c[n>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){g=163;break}c[m>>2]=(c[m>>2]<<8)+o;o=(c[k>>2]|0)+8|0;c[k>>2]=o;}while((o|0)<1);if((g|0)==163){o=c[k>>2]|0}m=c[l>>2]|0}n=o+ -1|0;o=(n|0)<0?0:n;c[k>>2]=o}if((m|0)>-1){n=b+8|0;m=b+36|0;r=o;o=0;do{l:do{if((r|0)<12){while(1){g=c[n>>2]|0;g=jd[c[(c[g>>2]|0)+20>>2]&511](g)|0;if((g|0)==-1){break}q=(c[m>>2]<<8)+g|0;c[m>>2]=q;r=(c[k>>2]|0)+8|0;c[k>>2]=r;if((r|0)>=12){g=175;break l}}g=c[k>>2]|0;if((g|0)==0){g=177;break}p=g;q=c[m>>2]<<12-g;g=176}else{q=c[m>>2]|0;g=175}}while(0);if((g|0)==175){p=r;q=q>>r+ -12;g=176}if((g|0)==176){g=0;if((q&4095)!=1){g=177}}if((g|0)==177){g=0;Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,38576,j);p=c[k>>2]|0}p=p+ -12|0;r=(p|0)<0?0:p;c[k>>2]=r;if((c[l>>2]|0)>0){m:do{if((r|0)<1){while(1){p=c[n>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}c[m>>2]=(c[m>>2]<<8)+p;r=(c[k>>2]|0)+8|0;c[k>>2]=r;if((r|0)>=1){break m}}r=c[k>>2]|0}}while(0);p=r+ -1|0;r=(p|0)<0?0:p;c[k>>2]=r}o=o+1|0;}while((o|0)<4)}a[h]=1}}while(0);j=c[b+44>>2]|0;h=b+52|0;if((c[j>>2]|0)>0){c[h>>2]=0}else{c[h>>2]=1;j=j+4|0}h=c[j>>2]|0;c[f>>2]=h;M=b+32|0;c[M>>2]=(c[M>>2]|0)+1}n:do{if((h|0)>7){g=b+52|0;j=c[g>>2]|0;p=(j&1|0)!=0?0:255;c[e>>2]=p;M=h+ -8|0;c[f>>2]=M;if((M|0)!=0){break}k=c[b+44>>2]|0;h=k+(j<<2)|0;if((c[h>>2]|0)>=(c[b+20>>2]|0)){break}M=j+1|0;c[g>>2]=M;c[f>>2]=(c[k+(M<<2)>>2]|0)-(c[h>>2]|0)}else{c[e>>2]=0;j=b+52|0;l=b+44|0;m=b+20|0;p=0;k=8;while(1){if((h|0)>(k|0)){break}p=p<<h;c[e>>2]=p;o=c[j>>2]|0;if((o&1|0)==0){p=255>>>(8-h|0)|p;c[e>>2]=p}n=k-h|0;c[f>>2]=0;q=c[l>>2]|0;r=q+(o<<2)|0;if((c[r>>2]|0)<(c[m>>2]|0)){o=o+1|0;c[j>>2]=o;o=(c[q+(o<<2)>>2]|0)-(c[r>>2]|0)|0;c[f>>2]=o}else{if((n|0)>0){g=219;break}else{o=0}}if((k|0)==(h|0)){break n}else{h=o;k=n}}if((g|0)==219){p=p<<n;c[e>>2]=p;break}p=p<<k;c[e>>2]=p;if((c[j>>2]&1|0)==0){p=p|255>>>(8-k|0);c[e>>2]=p}c[f>>2]=h-k}}while(0);if((a[b+29|0]&1)==0){M=p;i=d;return M|0}M=p^255;c[e>>2]=M;i=d;return M|0}function Ok(d){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;h=i;i=i+8|0;j=h;f=d+40|0;a:do{if((a[d+28|0]&1)==0){m=d+8|0;l=d+36|0;n=c[f>>2]|0;o=n;k=1;while(1){b:do{if((n|0)<(k|0)){while(1){n=c[m>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}q=(c[l>>2]<<8)+n|0;c[l>>2]=q;n=(c[f>>2]|0)+8|0;c[f>>2]=n;if((n|0)>=(k|0)){o=n;p=n;g=20;break b}}p=c[f>>2]|0;if((p|0)==0){o=0;n=0;r=-1;break}o=p;n=p;r=c[l>>2]<<k-p&65535>>>(16-k|0)&65535}else{p=n;q=c[l>>2]|0;g=20}}while(0);if((g|0)==20){g=0;n=p;r=q>>p-k&65535>>>(16-k|0)&65535}if((k|0)<7){r=r<<16>>16<<7-k&65535}q=r<<16>>16;p=k+1|0;if((b[38608+(q<<2)>>1]|0)==(k|0)){break}if((p|0)<8){k=p}else{break a}}d=o-k|0;c[f>>2]=(d|0)<0?0:d;r=b[38610+(q<<2)>>1]|0;i=e;return r|0}else{m=c[f>>2]|0;c:do{if((m|0)<7){l=d+8|0;k=d+36|0;while(1){m=c[l>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}n=(c[k>>2]<<8)+m|0;c[k>>2]=n;m=(c[f>>2]|0)+8|0;c[f>>2]=m;if((m|0)>=7){k=n;g=10;break c}}m=c[f>>2]|0;if((m|0)==0){l=0;d=-1;break}l=m;k=c[k>>2]<<7-m;g=11}else{k=c[d+36>>2]|0;g=10}}while(0);if((g|0)==10){l=m;k=k>>m+ -7;g=11}if((g|0)==11){r=k&127;if((r&65535)>1){d=r&65535}else{break}}g=l-(b[38608+(d<<2)>>1]|0)|0;c[f>>2]=(g|0)<0?0:g;r=b[38610+(d<<2)>>1]|0;i=e;return r|0}}while(0);q=jd[c[(c[d>>2]|0)+48>>2]&511](d)|0;c[h>>2]=r<<16>>16;Qe(q,39120,j);r=-1;i=e;return r|0}function Pk(d){d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;e=i;h=i;i=i+8|0;g=h;f=d+40|0;a:do{if((a[d+28|0]&1)==0){t=d+8|0;u=d+36|0;N=c[f>>2]|0;M=2;b:while(1){c:do{if((N|0)<(M|0)){while(1){N=c[t>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){break}O=(c[u>>2]<<8)+N|0;c[u>>2]=O;N=(c[f>>2]|0)+8|0;c[f>>2]=N;if((N|0)>=(M|0)){G=N;I=O;j=25;break c}}L=c[f>>2]|0;if((L|0)==0){m=1;j=57;break b}O=c[u>>2]|0;J=L;H=O;L=O<<M-L&65535>>>(16-M|0)}else{G=N;I=c[u>>2]|0;j=25}}while(0);if((j|0)==25){j=0;J=G;H=I;L=I>>G-M&65535>>>(16-M|0)}N=L&65535;if(N<<16>>16==-1){m=1;j=57;break}if((M|0)<6){N=N<<16>>16<<6-M&65535}K=N<<16>>16;O=M+1|0;if((b[42672+(K<<2)>>1]|0)==(M|0)){j=30;break}if((O|0)<7){N=J;M=O}else{F=J;E=H;z=7;j=31;break}}if((j|0)==30){g=J-M|0;c[f>>2]=(g|0)<0?0:g;O=b[42674+(K<<2)>>1]|0;i=e;return O|0}else if((j|0)==31){d:while(1){j=0;e:do{if((F|0)<(z|0)){while(1){E=c[t>>2]|0;E=jd[c[(c[E>>2]|0)+20>>2]&511](E)|0;if((E|0)==-1){break}F=(c[u>>2]<<8)+E|0;c[u>>2]=F;E=(c[f>>2]|0)+8|0;c[f>>2]=E;if((E|0)>=(z|0)){A=E;B=F;j=36;break e}}D=c[f>>2]|0;if((D|0)==0){m=1;j=57;break d}O=c[u>>2]|0;y=D;C=O;D=O<<z-D&65535>>>(16-z|0)}else{A=F;B=E;j=36}}while(0);if((j|0)==36){y=A;C=B;D=B>>A-z&65535>>>(16-z|0)}j=D&65535;if(j<<16>>16==-1){m=1;j=57;break}if((z|0)<12){j=j<<16>>16<<12-z&65535}if(j<<16>>16>63){x=(j<<16>>16)+ -64|0;if((b[41904+(x<<2)>>1]|0)==(z|0)){j=42;break}}j=z+1|0;if((j|0)<13){F=y;E=C;z=j}else{w=y;v=C;p=10;j=45;break}}if((j|0)==42){g=y-z|0;c[f>>2]=(g|0)<0?0:g;O=b[41906+(x<<2)>>1]|0;i=e;return O|0}else if((j|0)==45){f:while(1){j=0;g:do{if((w|0)<(p|0)){while(1){v=c[t>>2]|0;v=jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;if((v|0)==-1){break}v=(c[u>>2]<<8)+v|0;c[u>>2]=v;w=(c[f>>2]|0)+8|0;c[f>>2]=w;if((w|0)>=(p|0)){n=w;o=v;j=50;break g}}s=c[f>>2]|0;if((s|0)==0){m=1;j=57;break f}O=c[u>>2]|0;q=s;r=O;s=O<<p-s&65535>>>(16-p|0)}else{n=w;o=v;j=50}}while(0);if((j|0)==50){q=n;r=o;s=o>>n-p&65535>>>(16-p|0)}v=s&65535;if(v<<16>>16==-1){m=1;j=57;break}if((p|0)<13){v=v<<16>>16<<13-p&65535}k=v<<16>>16;j=p+1|0;if((b[41392+(k<<2)>>1]|0)==(p|0)){j=55;break}if((j|0)<14){w=q;v=r;p=j}else{l=v;break a}}if((j|0)==55){g=q-p|0;c[f>>2]=(g|0)<0?0:g;O=b[41394+(k<<2)>>1]|0;i=e;return O|0}else if((j|0)==57){i=e;return m|0}}else if((j|0)==57){i=e;return m|0}}else if((j|0)==57){i=e;return m|0}}else{k=c[f>>2]|0;h:do{if((k|0)<13){l=d+8|0;k=d+36|0;while(1){m=c[l>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}m=(c[k>>2]<<8)+m|0;c[k>>2]=m;n=(c[f>>2]|0)+8|0;c[f>>2]=n;if((n|0)>=13){M=m;u=n;j=10;break h}}l=c[f>>2]|0;if((l|0)==0){O=1;i=e;return O|0}else{t=l;N=c[k>>2]<<13-l;break}}else{M=c[d+36>>2]|0;u=k;j=10}}while(0);if((j|0)==10){t=u;N=M>>u+ -13}l=N&8191;k=l&65535;j=k>>>7;do{if((j|0)==0){j=41392+(k<<2)|0}else{if((l&65535)>511){j=42672+(j<<2)|0;break}else{j=41904+((k>>>1)+ -64<<2)|0;break}}}while(0);k=b[j>>1]|0;if(k<<16>>16<=0){break}g=t-(k<<16>>16)|0;c[f>>2]=(g|0)<0?0:g;O=b[j+2>>1]|0;i=e;return O|0}}while(0);f=jd[c[(c[d>>2]|0)+48>>2]&511](d)|0;c[h>>2]=l<<16>>16;Qe(f,42928,g);f=d+40|0;g=(c[f>>2]|0)+ -1|0;c[f>>2]=(g|0)<0?0:g;O=1;i=e;return O|0}function Qk(d){d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;e=i;g=i;i=i+8|0;h=g;f=d+40|0;a:do{if((a[d+28|0]&1)==0){t=d+8|0;u=d+36|0;E=c[f>>2]|0;D=1;b:while(1){c:do{if((E|0)<(D|0)){while(1){E=c[t>>2]|0;E=jd[c[(c[E>>2]|0)+20>>2]&511](E)|0;if((E|0)==-1){break}E=(c[u>>2]<<8)+E|0;c[u>>2]=E;F=(c[f>>2]|0)+8|0;c[f>>2]=F;if((F|0)>=(D|0)){y=F;A=E;j=23;break c}}C=c[f>>2]|0;if((C|0)==0){q=1;j=42;break b}F=c[u>>2]|0;x=C;z=F;C=F<<D-C&65535>>>(16-D|0)}else{y=E;A=c[u>>2]|0;j=23}}while(0);if((j|0)==23){j=0;x=y;z=A;C=A>>y-D&65535>>>(16-D|0)}E=C&65535;if(E<<16>>16==-1){q=1;j=42;break}if((D|0)<9){E=E<<16>>16<<9-D&65535}B=E<<16>>16;F=D+1|0;if((b[39296+(B<<2)>>1]|0)==(D|0)){j=28;break}if((F|0)<10){E=x;D=F}else{w=x;v=z;p=11;j=30;break}}if((j|0)==28){g=x-D|0;c[f>>2]=(g|0)<0?0:g;F=b[39298+(B<<2)>>1]|0;i=e;return F|0}else if((j|0)==30){d:while(1){j=0;e:do{if((w|0)<(p|0)){while(1){v=c[t>>2]|0;v=jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;if((v|0)==-1){break}w=(c[u>>2]<<8)+v|0;c[u>>2]=w;v=(c[f>>2]|0)+8|0;c[f>>2]=v;if((v|0)>=(p|0)){r=v;l=w;j=35;break e}}s=c[f>>2]|0;if((s|0)==0){q=1;j=42;break d}F=c[u>>2]|0;m=s;n=F;s=F<<p-s&65535>>>(16-p|0)}else{r=w;l=v;j=35}}while(0);if((j|0)==35){m=r;n=l;s=l>>r-p&65535>>>(16-p|0)}v=s&65535;if(v<<16>>16==-1){q=1;j=42;break}if((p|0)<12){v=v<<16>>16<<12-p&65535}k=v<<16>>16;j=p+1|0;if((b[39168+(k<<2)>>1]|0)==(p|0)){j=40;break}if((j|0)<13){w=m;v=n;p=j}else{o=v;break a}}if((j|0)==40){g=m-p|0;c[f>>2]=(g|0)<0?0:g;F=b[39170+(k<<2)>>1]|0;i=e;return F|0}else if((j|0)==42){i=e;return q|0}}else if((j|0)==42){i=e;return q|0}}else{k=c[f>>2]|0;f:do{if((k|0)<12){l=d+8|0;k=d+36|0;while(1){m=c[l>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}m=(c[k>>2]<<8)+m|0;c[k>>2]=m;n=(c[f>>2]|0)+8|0;c[f>>2]=n;if((n|0)>=12){u=m;D=n;j=10;break f}}l=c[f>>2]|0;if((l|0)==0){F=1;i=e;return F|0}else{t=l;E=c[k>>2]<<12-l;break}}else{u=c[d+36>>2]|0;D=k;j=10}}while(0);if((j|0)==10){t=D;E=u>>D+ -12}o=E&4095;j=o&65535;if((o&65535)<32){j=39168+(j<<2)|0}else{j=39296+(j>>>3<<2)|0}k=b[j>>1]|0;if(k<<16>>16<=0){break}g=t-(k<<16>>16)|0;c[f>>2]=(g|0)<0?0:g;F=b[j+2>>1]|0;i=e;return F|0}}while(0);f=jd[c[(c[d>>2]|0)+48>>2]&511](d)|0;c[g>>2]=o<<16>>16;Qe(f,41344,h);f=d+40|0;g=(c[f>>2]|0)+ -1|0;c[f>>2]=(g|0)<0?0:g;F=1;i=e;return F|0}function Rk(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;n=i;i=i+8|0;l=i;i=i+8|0;k=l;g=b+52|0;j=c[g>>2]|0;h=b+44|0;m=c[(c[h>>2]|0)+(j<<2)>>2]|0;if((m|0)<(d|0)){m=b+20|0;if((c[m>>2]|0)<(d|0)){j=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[l>>2]=d;Qe(j,48704,k);a[b+56|0]=1;j=c[g>>2]|0;d=c[m>>2]|0}if((j&1|0)!=(e|0)){j=j+1|0;c[g>>2]=j}c[(c[h>>2]|0)+(j<<2)>>2]=d;i=f;return}if((m|0)<=(d|0)){i=f;return}if((d|0)<0){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,48744,n);a[b+56|0]=1;d=0;j=c[g>>2]|0}h=c[h>>2]|0;a:do{if((j|0)>0){while(1){e=j+ -1|0;if((d|0)>(c[h+(e<<2)>>2]|0)){break a}c[g>>2]=e;if((e|0)>0){j=e}else{j=e;break}}}}while(0);c[h+(j<<2)>>2]=d;i=f;return}function Sk(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;h=i;f=i;i=i+8|0;j=i;i=i+8|0;k=i;i=i+8|0;g=i;i=i+56|0;if((d|0)<2){e=0;i=h;return e|0}l=c[b+8>>2]|0;d=sd[c[(c[l>>2]|0)+56>>2]&127](l,d,e)|0;if((d|0)==0){l=0;i=h;return l|0}ne(ne(d,e,-1)|0,38248,-1)|0;e=c[b+12>>2]|0;if((e|0)!=0){c[k>>2]=e;Lb(g|0,42976,k|0)|0;ne(d,g,-1)|0}if((a[b+16|0]&1)!=0){ne(d,42984,-1)|0}if((a[b+17|0]&1)!=0){ne(d,43008,-1)|0}c[j>>2]=c[b+20>>2];Lb(g|0,43032,j|0)|0;ne(d,g,-1)|0;j=c[b+24>>2]|0;if((j|0)!=0){c[f>>2]=j;Lb(g|0,43048,f|0)|0;ne(d,g,-1)|0}if((a[b+28|0]&1)==0){ne(d,43064,-1)|0}if((a[b+29|0]&1)!=0){ne(d,43088,-1)|0}ne(d,43104,-1)|0;l=d;i=h;return l|0}function Tk(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 Uk(a){a=a|0;var b=0;b=i;Vk(a);HW(a);i=b;return}function Vk(a){a=a|0;var b=0,d=0,e=0;b=i;c[a>>2]=43144;d=0;do{e=a+3452+(d<<2)|0;Fe(c[e>>2]|0);c[e>>2]=0;d=d+1|0;}while((d|0)<32);d=a+3964|0;Fe(c[d>>2]|0);c[d>>2]=0;d=0;do{e=a+3580+(d<<2)|0;Fe(c[e>>2]|0);c[e>>2]=0;d=d+1|0;}while((d|0)<32);d=a+3968|0;Fe(c[d>>2]|0);c[d>>2]=0;d=0;do{e=a+3708+(d<<2)|0;Fe(c[e>>2]|0);c[e>>2]=0;d=d+1|0;}while((d|0)<32);d=a+3972|0;Fe(c[d>>2]|0);c[d>>2]=0;d=0;do{e=a+3836+(d<<2)|0;Fe(c[e>>2]|0);c[e>>2]=0;d=d+1|0;}while((d|0)<32);e=a+3976|0;Fe(c[e>>2]|0);c[e>>2]=0;a=a+8|0;e=c[a>>2]|0;fd[c[(c[e>>2]|0)+16>>2]&511](e);a=c[a>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function Wk(b){b=b|0;var d=0,e=0;d=i;e=c[b+8>>2]|0;fd[c[(c[e>>2]|0)+12>>2]&511](e);a[b+13|0]=0;a[b+12|0]=0;c[b+20>>2]=0;c[b+16>>2]=0;c[b+176>>2]=0;c[b+704>>2]=0;c[b+3444>>2]=0;c[b+3448>>2]=0;a[b+184|0]=0;a[b+185|0]=0;c[b+188>>2]=0;i=d;return}function Xk(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;e=i;g=i;i=i+8|0;fd[c[(c[b>>2]|0)+40>>2]&511](b);if(!(Yk(b)|0)){c[b+3988>>2]=c[b+20>>2];i=e;return}d=b+176|0;f=c[d>>2]|0;do{if((f|0)==1){c[b+48>>2]=1;c[b+44>>2]=1;j=b+24|0;c[j>>2]=1;h=b+28|0;c[h>>2]=1;l=1;k=1}else{k=c[b+44>>2]|0;l=c[b+48>>2]|0;j=b+24|0;c[j>>2]=k;h=b+28|0;c[h>>2]=l;if((f|0)>1){n=k;m=1}else{break}while(1){k=c[b+40+(m*20|0)+4>>2]|0;if((k|0)>(n|0)){c[j>>2]=k}else{k=n}n=c[b+40+(m*20|0)+8>>2]|0;if((n|0)>(l|0)){c[h>>2]=n;l=n}m=m+1|0;if((m|0)<(f|0)){n=k}else{break}}}}while(0);k=k<<3;c[j>>2]=k;j=l<<3;c[h>>2]=j;l=b+180|0;a:do{if((c[l>>2]|0)==-1){if((f|0)!=3){c[l>>2]=0;break}if((a[b+184|0]&1)!=0){c[l>>2]=1;break}do{if((c[b+40>>2]|0)==82){if((c[b+60>>2]|0)!=71){break}if((c[b+80>>2]|0)!=66){break}c[l>>2]=0;break a}}while(0);c[l>>2]=1}}while(0);do{if((a[b+12|0]&1)==0){if((a[b+13|0]&1)==0){break}n=(c[b+16>>2]|0)+ -1+k|0;g=b+32|0;c[g>>2]=n-((n|0)%(k|0)|0);if((f|0)>0){k=0;do{if((j|0)>0){f=0;do{c[b+3452+(k<<7)+(f<<2)>>2]=ye(c[g>>2]|0,1)|0;f=f+1|0;j=c[h>>2]|0;}while((f|0)<(j|0));f=c[d>>2]|0}k=k+1|0;}while((k|0)<(f|0))}c[b+3980>>2]=0;c[b+3984>>2]=0;c[b+3988>>2]=0;c[b+3992>>2]=j;c[b+4e3>>2]=208;c[b+4012>>2]=0;c[b+3996>>2]=c[b+188>>2];if((f|0)>0){f=0;do{c[b+40+(f*20|0)+16>>2]=0;f=f+1|0;}while((f|0)<(c[d>>2]|0))}c[b+4004>>2]=0;i=e;return}}while(0);h=(c[b+16>>2]|0)+ -1+k|0;k=h-((h|0)%(k|0)|0)|0;h=b+32|0;c[h>>2]=k;l=b+20|0;m=(c[l>>2]|0)+ -1+j|0;m=m-((m|0)%(j|0)|0)|0;j=b+36|0;c[j>>2]=m;do{if(!((k|0)<1|(m|0)<1)){if((k|0)>((2147483647/(k|0)|0|0)/4|0|0)){break}b:do{if((f|0)>0){g=0;while(1){f=ye(da(m,k)|0,4)|0;c[b+3964+(g<<2)>>2]=f;bX(f|0,0,da(c[h>>2]<<2,c[j>>2]|0)|0)|0;g=g+1|0;f=c[d>>2]|0;if((g|0)>=(f|0)){break b}m=c[j>>2]|0;k=c[h>>2]|0}}}while(0);l=b+4e3|0;k=b+4012|0;j=b+188|0;g=b+3996|0;h=b+4004|0;while(1){c[l>>2]=208;c[k>>2]=0;c[g>>2]=c[j>>2];if((f|0)>0){f=0;do{c[b+40+(f*20|0)+16>>2]=0;f=f+1|0;}while((f|0)<(c[d>>2]|0))}c[h>>2]=0;Zk(b);if(!(Yk(b)|0)){break}f=c[d>>2]|0}_k(b);c[b+3980>>2]=0;c[b+3984>>2]=0;c[b+3988>>2]=0;i=e;return}}while(0);Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44016,g);c[b+3988>>2]=c[l>>2];i=e;return}function Yk(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;j=i;g=i;i=i+8|0;h=g;f=i;i=i+8|0;b=i;i=i+8|0;d=a+8|0;e=a+188|0;a:while(1){l=c[d>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if(!((l|0)==255|(l|0)==-1)){continue}b:while(1){switch(l|0){case 218:{k=8;break a};case 221:{k=10;break b};case 216:case 0:{continue a};case 238:{k=19;break b};case 193:case 192:{k=5;break b};case 196:{k=7;break b};case 194:{k=6;break b};case 224:{k=18;break b};case-1:{k=20;break a};case 219:{k=9;break b};case 217:{k=27;break a};case 255:{break};default:{k=21;break b}}l=c[d>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0}if((k|0)==5){if(hl(a)|0){continue}else{k=27;break}}else if((k|0)==6){if(il(a)|0){continue}else{k=27;break}}else if((k|0)==7){if(jl(a)|0){continue}else{k=27;break}}else if((k|0)==9){if(ll(a)|0){continue}else{k=27;break}}else if((k|0)==10){k=c[d>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){k=17;break}l=c[d>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){k=17;break}if((l+(k<<8)|0)!=4){k=17;break}k=c[d>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;do{if((k|0)==-1){k=-1}else{l=c[d>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){k=-1;break}k=l+(k<<8)|0}}while(0);c[e>>2]=k;continue}else if((k|0)==18){if(ml(a)|0){continue}else{k=27;break}}else if((k|0)==19){if(nl(a)|0){continue}else{k=27;break}}else if((k|0)==21){if((l|0)<=223){k=26;break}k=c[d>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){continue}l=c[d>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){continue}k=(k<<8)+ -2+l|0;if((k|0)>0){l=0}else{continue}while(1){m=c[d>>2]|0;jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;l=l+1|0;if((l|0)<(k|0)){}else{continue a}}}}if((k|0)==8){m=kl(a)|0;i=j;return m|0}else if((k|0)==17){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44704,b);i=j;return 0}else if((k|0)==20){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44424,f);i=j;return 0}else if((k|0)==26){m=jd[c[(c[a>>2]|0)+48>>2]&511](a)|0;c[g>>2]=l;Qe(m,44440,h);i=j;return 0}else if((k|0)==27){i=j;return 0}return 0}function Zk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;d=i;e=i;i=i+8|0;f=i;i=i+256|0;if((c[b+124>>2]|0)==1){j=c[b+176>>2]|0;a:do{if((j|0)>0){h=0;while(1){g=h+1|0;if((a[b+120+h|0]&1)!=0){break a}if((g|0)<(j|0)){h=g}else{h=g;break}}}else{h=0}}while(0);g=(c[b+24>>2]|0)/(c[b+40+(h*20|0)+4>>2]|0)|0;x=(c[b+28>>2]|0)/(c[b+40+(h*20|0)+8>>2]|0)|0}else{g=c[b+24>>2]|0;x=c[b+28>>2]|0}k=b+20|0;z=c[k>>2]|0;if((z|0)<=0){i=d;return}v=b+16|0;l=b+188|0;u=b+3996|0;w=b+8|0;h=b+4e3|0;o=b+4012|0;p=b+176|0;j=b+4004|0;r=b+24|0;s=b+28|0;t=(x|0)>0;q=(g|0)>0;n=b+32|0;m=b+12|0;A=c[v>>2]|0;y=0;b:while(1){if((A|0)>0){z=0;while(1){do{if((c[l>>2]|0)>0){if((c[u>>2]|0)!=0){break}c:while(1){A=c[w>>2]|0;A=jd[c[(c[A>>2]|0)+20>>2]&511](A)|0;if(!((A|0)==255|(A|0)==-1)){continue}while(1){if((A|0)==0){continue c}else if((A|0)!=255){break c}A=c[w>>2]|0;A=jd[c[(c[A>>2]|0)+20>>2]&511](A)|0}}if((A|0)!=(c[h>>2]|0)){f=16;break b}A=A+1|0;c[h>>2]=(A|0)==216?208:A;c[o>>2]=0;c[u>>2]=c[l>>2];if((c[p>>2]|0)>0){A=0;do{c[b+40+(A*20|0)+16>>2]=0;A=A+1|0;}while((A|0)<(c[p>>2]|0))}c[j>>2]=0}}while(0);E=c[p>>2]|0;if((E|0)>0){A=0;do{do{if((a[b+120+A|0]&1)!=0){C=(c[r>>2]|0)/(c[b+40+(A*20|0)+4>>2]|0)|0;B=(c[s>>2]|0)/(c[b+40+(A*20|0)+8>>2]|0)|0;D=(B|0)/8|0;if(!t){break}H=b+3964+(A<<2)|0;J=b+128+(A<<2)|0;G=b+144+(A<<2)|0;E=b+40+(A*20|0)+16|0;I=0;do{if(q){F=I+y|0;M=c[n>>2]|0;K=0;do{L=K+z|0;P=(da(M,F)|0)+L|0;N=0;P=(c[H>>2]|0)+(P<<2)|0;O=0;while(1){c[f+(N<<2)>>2]=c[P>>2];c[f+((N|1)<<2)>>2]=c[P+4>>2];c[f+((N|2)<<2)>>2]=c[P+8>>2];c[f+((N|3)<<2)>>2]=c[P+12>>2];c[f+((N|4)<<2)>>2]=c[P+16>>2];c[f+((N|5)<<2)>>2]=c[P+20>>2];c[f+((N|6)<<2)>>2]=c[P+24>>2];c[f+((N|7)<<2)>>2]=c[P+28>>2];P=P+((da(M,D)|0)<<2)|0;O=O+1|0;if((O|0)<8){N=N+8|0}else{break}}N=b+708+((c[J>>2]|0)*342|0)|0;M=b+2076+((c[G>>2]|0)*342|0)|0;if((a[m]&1)==0){if(!(dl(b,N,M,E,f)|0)){f=40;break b}}else{if(!(fl(b,N,M,E,f)|0)){f=40;break b}}N=(da(c[n>>2]|0,F)|0)+L|0;L=0;N=(c[H>>2]|0)+(N<<2)|0;O=0;while(1){c[N>>2]=c[f+(L<<2)>>2];c[N+4>>2]=c[f+((L|1)<<2)>>2];c[N+8>>2]=c[f+((L|2)<<2)>>2];c[N+12>>2]=c[f+((L|3)<<2)>>2];c[N+16>>2]=c[f+((L|4)<<2)>>2];c[N+20>>2]=c[f+((L|5)<<2)>>2];c[N+24>>2]=c[f+((L|6)<<2)>>2];c[N+28>>2]=c[f+((L|7)<<2)>>2];M=c[n>>2]|0;N=N+((da(M,D)|0)<<2)|0;O=O+1|0;if((O|0)<8){L=L+8|0}else{break}}K=K+C|0;}while((K|0)<(g|0))}I=I+B|0;}while((I|0)<(x|0));E=c[p>>2]|0}}while(0);A=A+1|0;}while((A|0)<(E|0))}c[u>>2]=(c[u>>2]|0)+ -1;z=z+g|0;A=c[v>>2]|0;if((z|0)>=(A|0)){break}}z=c[k>>2]|0}y=y+x|0;if((y|0)>=(z|0)){f=40;break}}if((f|0)==16){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44056,e);i=d;return}else if((f|0)==40){i=d;return}}function _k(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,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;f=i;l=i;i=i+256|0;n=i;i=i+64|0;e=a+36|0;r=c[e>>2]|0;if((r|0)<=0){i=f;return}g=a+32|0;j=a+28|0;k=a+176|0;m=a+180|0;h=a+24|0;b=a+3964|0;o=a+3968|0;p=a+3972|0;R=c[g>>2]|0;q=0;do{if((R|0)>0){r=0;do{y=c[k>>2]|0;if((y|0)>0){G=c[j>>2]|0;F=c[h>>2]|0;s=0;do{w=a+192+(c[a+40+(s*20|0)+12>>2]<<7)|0;v=(F|0)/(c[a+40+(s*20|0)+4>>2]|0)|0;t=(G|0)/(c[a+40+(s*20|0)+8>>2]|0)|0;u=(v|0)/8|0;x=(t|0)/8|0;if((G|0)>0){A=a+3964+(s<<2)|0;E=v+ -8|0;D=t+ -8|0;C=(v+ -16|0)>>>0<8;B=(t+ -16|0)>>>0<8;z=(t|0)>7;y=(v|0)>7;H=F;F=0;do{if((H|0)>0){G=F+q|0;H=0;do{I=H+r|0;L=(da(R,G)|0)+I|0;J=0;L=(c[A>>2]|0)+(L<<2)|0;K=0;while(1){c[l+(J<<2)>>2]=c[L>>2];c[l+((J|1)<<2)>>2]=c[L+4>>2];c[l+((J|2)<<2)>>2]=c[L+8>>2];c[l+((J|3)<<2)>>2]=c[L+12>>2];c[l+((J|4)<<2)>>2]=c[L+16>>2];c[l+((J|5)<<2)>>2]=c[L+20>>2];c[l+((J|6)<<2)>>2]=c[L+24>>2];c[l+((J|7)<<2)>>2]=c[L+28>>2];L=L+((da(R,x)|0)<<2)|0;K=K+1|0;if((K|0)<8){J=J+8|0}else{break}}el(0,w,l,n);R=c[g>>2]|0;L=(da(R,G)|0)+I|0;K=c[A>>2]|0;J=K+(L<<2)|0;a:do{if(E>>>0>7|D>>>0>7){do{if(C){if(!B){I=0;K=0;break}I=0;K=K+(R+L<<2)|0;M=0;while(1){R=d[n+I|0]|0;c[K+4>>2]=R;c[K>>2]=R;c[J+4>>2]=R;c[J>>2]=R;R=d[n+(I|1)|0]|0;c[K+12>>2]=R;c[K+8>>2]=R;c[J+12>>2]=R;c[J+8>>2]=R;R=d[n+(I|2)|0]|0;c[K+20>>2]=R;c[K+16>>2]=R;c[J+20>>2]=R;c[J+16>>2]=R;R=d[n+(I|3)|0]|0;c[K+28>>2]=R;c[K+24>>2]=R;c[J+28>>2]=R;c[J+24>>2]=R;R=d[n+(I|4)|0]|0;c[K+36>>2]=R;c[K+32>>2]=R;c[J+36>>2]=R;c[J+32>>2]=R;R=d[n+(I|5)|0]|0;c[K+44>>2]=R;c[K+40>>2]=R;c[J+44>>2]=R;c[J+40>>2]=R;R=d[n+(I|6)|0]|0;c[K+52>>2]=R;c[K+48>>2]=R;c[J+52>>2]=R;c[J+48>>2]=R;R=d[n+(I|7)|0]|0;c[K+60>>2]=R;c[K+56>>2]=R;c[J+60>>2]=R;c[J+56>>2]=R;R=c[g>>2]|0;L=R<<1;M=M+2|0;if((M|0)<16){K=K+(L<<2)|0;J=J+(L<<2)|0;I=I+8|0}else{break a}}}else{I=0;K=0}}while(0);while(1){M=I;N=0;L=0;while(1){do{if(z){O=n+M|0;if(y){P=J+(L<<2)|0;Q=0}else{break}while(1){R=0;do{c[P+(R<<2)>>2]=d[O]|0;R=R+1|0;}while((R|0)<(u|0));R=c[g>>2]|0;Q=Q+1|0;if((Q|0)<(x|0)){P=P+(R<<2)|0}else{break}}}}while(0);N=N+1|0;if((N|0)<8){M=M+1|0;L=L+u|0}else{break}}J=J+((da(R,x)|0)<<2)|0;K=K+1|0;if((K|0)<8){I=I+8|0}else{break}}}else{I=0;K=0;while(1){c[J>>2]=d[n+I|0]|0;c[J+4>>2]=d[n+(I|1)|0]|0;c[J+8>>2]=d[n+(I|2)|0]|0;c[J+12>>2]=d[n+(I|3)|0]|0;c[J+16>>2]=d[n+(I|4)|0]|0;c[J+20>>2]=d[n+(I|5)|0]|0;c[J+24>>2]=d[n+(I|6)|0]|0;c[J+28>>2]=d[n+(I|7)|0]|0;R=c[g>>2]|0;K=K+1|0;if((K|0)<8){J=J+(R<<2)|0;I=I+8|0}else{break}}}}while(0);H=H+v|0;I=c[h>>2]|0;}while((H|0)<(I|0));G=c[j>>2]|0;H=I}F=F+t|0;}while((F|0)<(G|0));y=c[k>>2]|0;F=H}s=s+1|0;}while((s|0)<(y|0))}b:do{if((c[m>>2]|0)!=0){if((y|0)==3){t=c[j>>2]|0;if((t|0)<=0){break}u=c[h>>2]|0;s=0;while(1){v=(da(R,s+q|0)|0)+r|0;if((u|0)>0){u=(c[b>>2]|0)+(v<<2)|0;t=(c[o>>2]|0)+(v<<2)|0;v=(c[p>>2]|0)+(v<<2)|0;x=0;while(1){w=(c[t>>2]|0)+ -128|0;Q=(c[v>>2]|0)+ -128|0;R=c[u>>2]<<16|32768;c[u>>2]=d[(R+(Q*91881|0)>>16)+43504|0]|0;c[t>>2]=d[(R+(da(w,-22553)|0)+(da(Q,-46802)|0)>>16)+43504|0]|0;c[v>>2]=d[(R+(w*116130|0)>>16)+43504|0]|0;x=x+1|0;w=c[h>>2]|0;if((x|0)<(w|0)){v=v+4|0;t=t+4|0;u=u+4|0}else{break}}t=c[j>>2]|0;u=w}s=s+1|0;if((s|0)>=(t|0)){break b}R=c[g>>2]|0}}else if((y|0)==4){t=c[j>>2]|0;if((t|0)<=0){break}v=c[h>>2]|0;s=0;while(1){w=(da(R,s+q|0)|0)+r|0;if((v|0)>0){t=(c[b>>2]|0)+(w<<2)|0;u=(c[o>>2]|0)+(w<<2)|0;w=(c[p>>2]|0)+(w<<2)|0;x=0;while(1){v=(c[u>>2]|0)+ -128|0;Q=(c[w>>2]|0)+ -128|0;R=c[t>>2]<<16|32768;c[t>>2]=(d[(R+(Q*91881|0)>>16)+43504|0]|0)^255;c[u>>2]=(d[(R+(da(v,-22553)|0)+(da(Q,-46802)|0)>>16)+43504|0]|0)^255;c[w>>2]=(d[(R+(v*116130|0)>>16)+43504|0]|0)^255;x=x+1|0;v=c[h>>2]|0;if((x|0)<(v|0)){w=w+4|0;u=u+4|0;t=t+4|0}else{break}}t=c[j>>2]|0}s=s+1|0;if((s|0)>=(t|0)){break b}R=c[g>>2]|0}}else{break}}}while(0);r=(c[h>>2]|0)+r|0;R=c[g>>2]|0;}while((r|0)<(R|0));r=c[e>>2]|0}q=(c[j>>2]|0)+q|0;}while((q|0)<(r|0));i=f;return}function $k(a){a=a|0;var b=0,d=0,e=0;b=i;d=0;do{e=a+3452+(d<<2)|0;Fe(c[e>>2]|0);c[e>>2]=0;d=d+1|0;}while((d|0)<32);d=a+3964|0;Fe(c[d>>2]|0);c[d>>2]=0;d=0;do{e=a+3580+(d<<2)|0;Fe(c[e>>2]|0);c[e>>2]=0;d=d+1|0;}while((d|0)<32);d=a+3968|0;Fe(c[d>>2]|0);c[d>>2]=0;d=0;do{e=a+3708+(d<<2)|0;Fe(c[e>>2]|0);c[e>>2]=0;d=d+1|0;}while((d|0)<32);d=a+3972|0;Fe(c[d>>2]|0);c[d>>2]=0;d=0;do{e=a+3836+(d<<2)|0;Fe(c[e>>2]|0);c[e>>2]=0;d=d+1|0;}while((d|0)<32);e=a+3976|0;Fe(c[e>>2]|0);c[e>>2]=0;e=c[a+8>>2]|0;fd[c[(c[e>>2]|0)+16>>2]&511](e);i=b;return}function al(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;e=i;h=i;i=i+8|0;f=b+3988|0;j=c[f>>2]|0;k=b+20|0;if((j|0)>=(c[k>>2]|0)){q=-1;i=e;return q|0}do{if((a[b+12|0]&1)==0){if((a[b+13|0]&1)==0){break}m=b+3992|0;o=c[m>>2]|0;do{if((o|0)<(c[b+28>>2]|0)){n=c[b+3980>>2]|0;l=c[b+3984>>2]|0}else{if(bl(b)|0){c[b+3980>>2]=0;c[b+3984>>2]=0;c[m>>2]=0;n=0;l=0;o=0;break}c[f>>2]=c[k>>2];q=-1;i=e;return q|0}}while(0);p=b+3984|0;q=b+3980|0;j=d[(c[b+3452+(n<<7)+(o<<2)>>2]|0)+l|0]|0;n=n+1|0;c[q>>2]=n;if((n|0)!=(c[b+176>>2]|0)){q=j;i=e;return q|0}c[q>>2]=0;q=l+1|0;c[p>>2]=q;if((q|0)!=(c[b+16>>2]|0)){q=j;i=e;return q|0}c[p>>2]=0;q=(c[f>>2]|0)+1|0;c[f>>2]=q;c[m>>2]=o+1;if((q|0)!=(c[k>>2]|0)){q=j;i=e;return q|0}f=b+8|0;a:while(1){k=c[f>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if(!((k|0)==255|(k|0)==-1)){continue}while(1){if((k|0)==0){continue a}else if((k|0)==217){g=20;break a}else if((k|0)!=255){break a}k=c[f>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0}}if((g|0)==20){i=e;return j|0}Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44808,h);q=j;i=e;return q|0}}while(0);k=da(c[b+32>>2]|0,j)|0;g=b+3984|0;l=c[g>>2]|0;h=b+3980|0;q=c[h>>2]|0;k=c[(c[b+3964+(q<<2)>>2]|0)+(k+l<<2)>>2]|0;q=q+1|0;c[h>>2]=q;if((q|0)!=(c[b+176>>2]|0)){q=k;i=e;return q|0}c[h>>2]=0;q=l+1|0;c[g>>2]=q;if((q|0)!=(c[b+16>>2]|0)){q=k;i=e;return q|0}c[g>>2]=0;c[f>>2]=j+1;q=k;i=e;return q|0}function bl(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,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0;e=i;f=i;i=i+8|0;t=i;i=i+256|0;j=i;i=i+64|0;p=b+16|0;if((c[p>>2]|0)<=0){ba=1;i=e;return ba|0}q=b+188|0;l=b+3996|0;n=b+8|0;o=b+4e3|0;s=b+4012|0;k=b+176|0;r=b+4004|0;m=b+180|0;g=b+24|0;h=b+28|0;u=0;a:while(1){do{if((c[q>>2]|0)>0){if((c[l>>2]|0)!=0){break}b:while(1){v=c[n>>2]|0;v=jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;if(!((v|0)==255|(v|0)==-1)){continue}while(1){if((v|0)==0){continue b}else if((v|0)!=255){break b}v=c[n>>2]|0;v=jd[c[(c[v>>2]|0)+20>>2]&511](v)|0}}if((v|0)!=(c[o>>2]|0)){g=9;break a}v=v+1|0;c[o>>2]=(v|0)==216?208:v;c[s>>2]=0;c[l>>2]=c[q>>2];if((c[k>>2]|0)>0){v=0;do{c[b+40+(v*20|0)+16>>2]=0;v=v+1|0;}while((v|0)<(c[k>>2]|0))}c[r>>2]=0}}while(0);A=c[k>>2]|0;if((A|0)>0){M=c[h>>2]|0;L=c[g>>2]|0;v=0;do{y=(L|0)/(c[b+40+(v*20|0)+4>>2]|0)|0;z=(M|0)/(c[b+40+(v*20|0)+8>>2]|0)|0;w=(y|0)/8|0;x=(z|0)/8|0;if((M|0)>0){E=b+128+(v<<2)|0;D=b+144+(v<<2)|0;J=b+40+(v*20|0)+16|0;A=b+40+(v*20|0)+12|0;G=y+ -8|0;F=z+ -8|0;C=y+ -16|0;B=z+ -16|0;H=(z|0)>7;I=(y|0)>7;K=0;do{if((L|0)>0){L=0;do{if(!(dl(b,b+708+((c[E>>2]|0)*342|0)|0,b+2076+((c[D>>2]|0)*342|0)|0,J,t)|0)){b=0;g=56;break a}el(0,b+192+(c[A>>2]<<7)|0,t,j);c:do{if(G>>>0>7|F>>>0>7){M=L+u|0;if(C>>>0>7|B>>>0>7){N=0;S=0;O=0}else{T=M+1|0;S=M+3|0;R=M+2|0;Q=M+5|0;P=M+4|0;O=M+7|0;N=M+6|0;V=M+9|0;U=M+8|0;$=M+11|0;aa=M+10|0;_=M+13|0;Z=M+12|0;Y=M+15|0;X=M+14|0;W=0;ba=0;while(1){fa=ba+K|0;ca=c[b+3452+(v<<7)+(fa<<2)>>2]|0;fa=c[b+3452+(v<<7)+(fa+1<<2)>>2]|0;ea=a[j+W|0]|0;a[fa+T|0]=ea;a[fa+M|0]=ea;a[ca+T|0]=ea;a[ca+M|0]=ea;ea=a[j+(W|1)|0]|0;a[fa+S|0]=ea;a[fa+R|0]=ea;a[ca+S|0]=ea;a[ca+R|0]=ea;ea=a[j+(W|2)|0]|0;a[fa+Q|0]=ea;a[fa+P|0]=ea;a[ca+Q|0]=ea;a[ca+P|0]=ea;ea=a[j+(W|3)|0]|0;a[fa+O|0]=ea;a[fa+N|0]=ea;a[ca+O|0]=ea;a[ca+N|0]=ea;ea=a[j+(W|4)|0]|0;a[fa+V|0]=ea;a[fa+U|0]=ea;a[ca+V|0]=ea;a[ca+U|0]=ea;ea=a[j+(W|5)|0]|0;a[fa+$|0]=ea;a[fa+aa|0]=ea;a[ca+$|0]=ea;a[ca+aa|0]=ea;ea=a[j+(W|6)|0]|0;a[fa+_|0]=ea;a[fa+Z|0]=ea;a[ca+_|0]=ea;a[ca+Z|0]=ea;ea=a[j+(W|7)|0]|0;a[fa+Y|0]=ea;a[fa+X|0]=ea;a[ca+Y|0]=ea;a[ca+X|0]=ea;ba=ba+2|0;if((ba|0)<16){W=W+8|0}else{break c}}}while(1){R=O+K|0;P=N;X=0;Q=0;while(1){if(H){V=j+P|0;W=M+Q|0;U=0;do{if(I){T=a[V]|0;Z=b+3452+(v<<7)+(R+U<<2)|0;Y=0;do{a[(c[Z>>2]|0)+(W+Y)|0]=T;Y=Y+1|0;}while((Y|0)<(w|0))}U=U+1|0;}while((U|0)<(x|0))}X=X+1|0;if((X|0)<8){P=P+1|0;Q=Q+w|0}else{break}}S=S+1|0;if((S|0)<8){N=N+8|0;O=O+x|0}else{break}}}else{S=L+u|0;T=S+1|0;U=S+2|0;M=S+3|0;N=S+4|0;O=S+5|0;P=S+6|0;Q=S+7|0;R=0;V=0;while(1){fa=c[b+3452+(v<<7)+(V+K<<2)>>2]|0;a[fa+S|0]=a[j+R|0]|0;a[fa+T|0]=a[j+(R|1)|0]|0;a[fa+U|0]=a[j+(R|2)|0]|0;a[fa+M|0]=a[j+(R|3)|0]|0;a[fa+N|0]=a[j+(R|4)|0]|0;a[fa+O|0]=a[j+(R|5)|0]|0;a[fa+P|0]=a[j+(R|6)|0]|0;a[fa+Q|0]=a[j+(R|7)|0]|0;V=V+1|0;if((V|0)<8){R=R+8|0}else{break}}}}while(0);L=L+y|0;N=c[g>>2]|0;}while((L|0)<(N|0));M=c[h>>2]|0;L=N}K=K+z|0;}while((K|0)<(M|0));A=c[k>>2]|0}v=v+1|0;}while((v|0)<(A|0))}c[l>>2]=(c[l>>2]|0)+ -1;do{if((c[m>>2]|0)!=0){if((A|0)==3){x=c[h>>2]|0;if((x|0)<=0){break}w=c[g>>2]|0;v=0;do{if((w|0)>0){x=b+3452+(v<<2)|0;y=b+3580+(v<<2)|0;z=b+3708+(v<<2)|0;A=0;do{w=A+u|0;ba=(c[x>>2]|0)+w|0;fa=(d[(c[y>>2]|0)+w|0]|0)+ -128|0;ca=(d[(c[z>>2]|0)+w|0]|0)+ -128|0;ea=(d[ba]|0)<<16|32768;a[ba]=a[(ea+(ca*91881|0)>>16)+43504|0]|0;ca=a[(ea+(da(fa,-22553)|0)+(da(ca,-46802)|0)>>16)+43504|0]|0;a[(c[y>>2]|0)+w|0]=ca;a[(c[z>>2]|0)+w|0]=a[(ea+(fa*116130|0)>>16)+43504|0]|0;A=A+1|0;w=c[g>>2]|0;}while((A|0)<(w|0));x=c[h>>2]|0}v=v+1|0;}while((v|0)<(x|0))}else if((A|0)==4){x=c[h>>2]|0;if((x|0)<=0){break}w=c[g>>2]|0;v=0;do{if((w|0)>0){x=b+3452+(v<<2)|0;z=b+3580+(v<<2)|0;y=b+3708+(v<<2)|0;A=0;do{w=A+u|0;ba=(c[x>>2]|0)+w|0;fa=(d[(c[z>>2]|0)+w|0]|0)+ -128|0;ca=(d[(c[y>>2]|0)+w|0]|0)+ -128|0;ea=(d[ba]|0)<<16|32768;a[ba]=~a[(ea+(ca*91881|0)>>16)+43504|0];ca=~a[(ea+(da(fa,-22553)|0)+(da(ca,-46802)|0)>>16)+43504|0];a[(c[z>>2]|0)+w|0]=ca;a[(c[y>>2]|0)+w|0]=~a[(ea+(fa*116130|0)>>16)+43504|0];A=A+1|0;w=c[g>>2]|0;}while((A|0)<(w|0));x=c[h>>2]|0}v=v+1|0;}while((v|0)<(x|0))}else{break}}}while(0);u=(c[g>>2]|0)+u|0;if((u|0)>=(c[p>>2]|0)){b=1;g=56;break}}if((g|0)==9){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44056,f);fa=0;i=e;return fa|0}else if((g|0)==56){i=e;return b|0}return 0}function cl(b){b=b|0;var e=0,f=0,g=0,h=0,j=0;e=i;h=b+3988|0;f=c[h>>2]|0;g=b+20|0;if((f|0)>=(c[g>>2]|0)){j=-1;i=e;return j|0}do{if((a[b+12|0]&1)==0){if((a[b+13|0]&1)==0){break}j=b+3992|0;f=c[j>>2]|0;do{if((f|0)<(c[b+28>>2]|0)){h=c[b+3980>>2]|0;g=c[b+3984>>2]|0}else{if(bl(b)|0){c[b+3980>>2]=0;c[b+3984>>2]=0;c[j>>2]=0;h=0;g=0;f=0;break}c[h>>2]=c[g>>2];j=-1;i=e;return j|0}}while(0);j=d[(c[b+3452+(h<<7)+(f<<2)>>2]|0)+g|0]|0;i=e;return j|0}}while(0);j=da(c[b+32>>2]|0,f)|0;j=c[(c[b+3964+(c[b+3980>>2]<<2)>>2]|0)+(j+(c[b+3984>>2]|0)<<2)>>2]|0;i=e;return j|0}function dl(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;g=i;h=i;i=i+8|0;n=i;i=i+8|0;p=gl(a,b)|0;if((p|0)==9999){t=0;i=g;return t|0}b=a+4012|0;l=a+8|0;k=a+4008|0;do{if((p|0)>0){s=c[b>>2]|0;q=0;r=0;a:while(1){if((s|0)==0){t=c[l>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){j=0;q=33;break}else if((t|0)==255){while(1){s=c[l>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==0){break}else if((s|0)!=255){q=8;break a}}}c[k>>2]=t;c[b>>2]=8;o=t;s=7}else{o=c[k>>2]|0;s=s+ -1|0}c[b>>2]=s;o=o>>>s&1|q<<1;r=r+1|0;if((r|0)<(p|0)){q=o}else{q=11;break}}if((q|0)==8){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44384,n);t=0;i=g;return t|0}else if((q|0)==11){if((o|0)<(1<<p+ -1|0)){m=(-1<<p)+1+o|0}else{m=o}if((m|0)==9999){j=0}else{break}i=g;return j|0}else if((q|0)==33){i=g;return j|0}}else{m=0}}while(0);m=(c[e>>2]|0)+m|0;c[e>>2]=m;c[f>>2]=m;bX(f+4|0,0,252)|0;m=1;b:while(1){e=0;while(1){n=gl(a,d)|0;if((n|0)==240&(e|0)<48){e=e+16|0}else{break}}if((n|0)==0){j=1;q=33;break}else if((n|0)==9999){q=32;break}o=n&15;if((o|0)==0){q=0}else{r=c[b>>2]|0;q=0;p=0;do{if((r|0)==0){s=c[l>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==255){while(1){r=c[l>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==0){break}else if((r|0)!=255){q=24;break b}}}else if((s|0)==-1){j=0;q=33;break b}c[k>>2]=s;c[b>>2]=8;r=7}else{s=c[k>>2]|0;r=r+ -1|0}c[b>>2]=r;q=s>>>r&1|q<<1;p=p+1|0;}while((p|0)<(o|0))}if((q|0)<(1<<o+ -1|0)){q=(-1<<o)+1+q|0}if((q|0)==9999){q=32;break}e=(n>>>4&15|e)+m|0;if((e|0)>=64){j=1;q=33;break}m=e+1|0;c[f+(c[44096+(e<<2)>>2]<<2)>>2]=q;if((m|0)>=64){j=1;q=33;break}}if((q|0)==24){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44384,h);t=0;i=g;return t|0}else if((q|0)==32){t=0;i=g;return t|0}else if((q|0)==33){i=g;return j|0}return 0}function el(b,d,f,g){b=b|0;d=d|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;b=i;j=0;while(1){r=f+(j<<2)|0;c[r>>2]=da(c[r>>2]|0,e[d+(j<<1)>>1]|0)|0;j=j+1|0;if((j|0)<64){}else{j=0;break}}while(1){m=f+(j<<2)|0;n=f+((j|1)<<2)|0;l=c[n>>2]|0;k=f+((j|2)<<2)|0;do{if((l|0)==0){if((c[k>>2]|0)!=0){h=11;break}o=f+((j|3)<<2)|0;if((c[o>>2]|0)!=0){h=11;break}d=f+((j|4)<<2)|0;if((c[d>>2]|0)!=0){h=11;break}p=f+((j|5)<<2)|0;if((c[p>>2]|0)!=0){h=11;break}q=f+((j|6)<<2)|0;if((c[q>>2]|0)!=0){h=11;break}r=f+((j|7)<<2)|0;if((c[r>>2]|0)!=0){h=11;break}l=((c[m>>2]|0)*5793|0)+512>>10;c[m>>2]=l;c[n>>2]=l;c[k>>2]=l;c[o>>2]=l;c[d>>2]=l;c[p>>2]=l;c[q>>2]=l;c[r>>2]=l}else{h=11}}while(0);if((h|0)==11){h=0;r=f+((j|4)<<2)|0;y=((c[r>>2]|0)*5793|0)+128>>8;z=c[k>>2]|0;t=f+((j|6)<<2)|0;x=c[t>>2]|0;w=f+((j|7)<<2)|0;d=c[w>>2]|0;q=((l-d|0)*2896|0)+128>>8;d=((d+l|0)*2896|0)+128>>8;o=f+((j|3)<<2)|0;p=c[o>>2]<<4;l=f+((j|5)<<2)|0;u=c[l>>2]<<4;s=(((c[m>>2]|0)*5793|0)+128>>8)+1|0;v=s-y>>1;y=s+y>>1;s=(z*3784|0)+128+(x*1567|0)>>8;x=(z*1567|0)+128+(da(x,-3784)|0)>>8;z=(0-u|1)+q>>1;q=(u|1)+q>>1;u=(p|1)+d>>1;d=(0-p|1)+d>>1;p=1-s+y>>1;y=s+1+y>>1;s=1-x+v>>1;v=x+1+v>>1;x=(u*3406|0)+2048+(q*2276|0)>>12;q=(da(u,-2276)|0)+2048+(q*3406|0)>>12;u=(z*4017|0)+2048+(d*799|0)>>12;d=(da(z,-799)|0)+2048+(d*4017|0)>>12;c[m>>2]=x+y;c[w>>2]=y-x;c[n>>2]=u+v;c[t>>2]=v-u;c[k>>2]=d+s;c[l>>2]=s-d;c[o>>2]=q+p;c[r>>2]=p-q}j=j+8|0;if((j|0)>=64){l=0;break}}while(1){q=f+(l<<2)|0;r=f+(l+8<<2)|0;p=c[r>>2]|0;o=f+(l+16<<2)|0;do{if((p|0)==0){if((c[o>>2]|0)!=0){h=21;break}n=f+(l+24<<2)|0;if((c[n>>2]|0)!=0){h=21;break}k=f+(l+32<<2)|0;if((c[k>>2]|0)!=0){h=21;break}j=f+(l+40<<2)|0;if((c[j>>2]|0)!=0){h=21;break}m=f+(l+48<<2)|0;if((c[m>>2]|0)!=0){h=21;break}d=f+(l+56<<2)|0;if((c[d>>2]|0)!=0){h=21;break}z=((c[q>>2]|0)*5793|0)+8192>>14;c[q>>2]=z;c[r>>2]=z;c[o>>2]=z;c[n>>2]=z;c[k>>2]=z;c[j>>2]=z;c[m>>2]=z;c[d>>2]=z}else{h=21}}while(0);if((h|0)==21){h=0;z=f+(l+32<<2)|0;j=((c[z>>2]|0)*5793|0)+2048>>12;d=c[o>>2]|0;s=f+(l+48<<2)|0;k=c[s>>2]|0;m=f+(l+56<<2)|0;u=c[m>>2]|0;y=((p-u|0)*2896|0)+2048>>12;u=((u+p|0)*2896|0)+2048>>12;w=f+(l+24<<2)|0;x=c[w>>2]|0;v=f+(l+40<<2)|0;p=c[v>>2]|0;t=(((c[q>>2]|0)*5793|0)+2048>>12)+1|0;n=t-j>>1;j=t+j>>1;t=(d*3784|0)+2048+(k*1567|0)>>12;k=(d*1567|0)+2048+(da(k,-3784)|0)>>12;d=1-p+y>>1;y=p+1+y>>1;p=x+1+u>>1;u=1-x+u>>1;x=1-t+j>>1;j=t+1+j>>1;t=1-k+n>>1;n=k+1+n>>1;k=(p*3406|0)+2048+(y*2276|0)>>12;y=(da(p,-2276)|0)+2048+(y*3406|0)>>12;p=(d*4017|0)+2048+(u*799|0)>>12;u=(da(d,-799)|0)+2048+(u*4017|0)>>12;c[q>>2]=k+j;c[m>>2]=j-k;c[r>>2]=p+n;c[s>>2]=n-p;c[o>>2]=u+t;c[v>>2]=t-u;c[w>>2]=y+x;c[z>>2]=x-y}l=l+1|0;if((l|0)>=8){h=0;break}}do{a[g+h|0]=a[((c[f+(h<<2)>>2]|0)+8>>4)+43632|0]|0;h=h+1|0;}while((h|0)<64);i=b;return}function fl(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;h=i;p=i;i=i+8|0;q=i;i=i+8|0;k=i;i=i+8|0;m=i;i=i+8|0;o=i;i=i+8|0;r=i;i=i+8|0;z=i;i=i+8|0;t=i;i=i+8|0;v=c[a+160>>2]|0;if((v|0)==0){if((c[a+168>>2]|0)==0){v=gl(a,b)|0;if((v|0)==9999){B=0;i=h;return B|0}do{if((v|0)>0){x=a+4012|0;z=a+8|0;w=a+4008|0;b=c[x>>2]|0;y=0;A=0;a:while(1){if((b|0)==0){b=c[z>>2]|0;b=jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;if((b|0)==255){while(1){B=c[z>>2]|0;B=jd[c[(c[B>>2]|0)+20>>2]&511](B)|0;if((B|0)==0){break}else if((B|0)!=255){w=10;break a}}}else if((b|0)==-1){g=0;w=103;break}c[w>>2]=b;c[x>>2]=8;u=b;b=7}else{u=c[w>>2]|0;b=b+ -1|0}c[x>>2]=b;u=u>>>b&1|y<<1;A=A+1|0;if((A|0)<(v|0)){y=u}else{w=13;break}}if((w|0)==10){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44384,t);B=0;i=h;return B|0}else if((w|0)==13){if((u|0)<(1<<v+ -1|0)){n=(-1<<v)+1+u|0}else{n=u}if((n|0)==9999){g=0}else{break}i=h;return g|0}else if((w|0)==103){i=h;return g|0}}else{n=0}}while(0);B=(c[e>>2]|0)+n|0;c[e>>2]=B;e=(c[f>>2]|0)+(B<<c[a+172>>2])|0}else{e=a+4012|0;n=c[e>>2]|0;b:do{if((n|0)==0){t=a+8|0;n=c[t>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;c:do{if((n|0)==255){while(1){u=c[t>>2]|0;u=jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;if((u|0)==0){break c}else if((u|0)!=255){break}}Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44384,z);A=-1;break b}else if((n|0)==-1){A=-1;break b}}while(0);c[a+4008>>2]=n;c[e>>2]=8;x=n;y=7;w=23}else{x=c[a+4008>>2]|0;y=n+ -1|0;w=23}}while(0);if((w|0)==23){c[e>>2]=y;A=x>>>y&1}e=(c[f>>2]|0)+(A<<c[a+172>>2])|0}c[f>>2]=e;v=1}e=a+164|0;u=c[e>>2]|0;if((u|0)==0){B=1;i=h;return B|0}n=a+4004|0;t=c[n>>2]|0;u=(v|0)>(u|0);if((t|0)>0){do{if(u){s=t}else{l=a+4012|0;j=a+8|0;k=a+4008|0;m=a+172|0;d:while(1){p=v+1|0;o=f+(c[44096+(v<<2)>>2]<<2)|0;do{if((c[o>>2]|0)!=0){d=c[l>>2]|0;if((d|0)==0){q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==255){while(1){d=c[j>>2]|0;d=jd[c[(c[d>>2]|0)+20>>2]&511](d)|0;if((d|0)==0){break}else if((d|0)!=255){w=37;break d}}}else if((q|0)==-1){g=0;w=103;break d}c[k>>2]=q;c[l>>2]=8;d=7}else{q=c[k>>2]|0;d=d+ -1|0}c[l>>2]=d;if((1<<d&q|0)==0){break}c[o>>2]=(c[o>>2]|0)+(1<<c[m>>2])}}while(0);if((v|0)<(c[e>>2]|0)){v=p}else{w=42;break}}if((w|0)==37){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44384,r);B=0;i=h;return B|0}else if((w|0)==42){s=c[n>>2]|0;break}else if((w|0)==103){i=h;return g|0}}}while(0);c[n>>2]=s+ -1;B=1;i=h;return B|0}if(u){B=1;i=h;return B|0}u=a+4012|0;r=a+8|0;s=a+4008|0;t=a+172|0;e:while(1){w=gl(a,d)|0;if((w|0)==240){A=v;w=0;do{x=A;while(1){A=x+1|0;x=f+(c[44096+(x<<2)>>2]<<2)|0;if((c[x>>2]|0)==0){break}z=c[u>>2]|0;if((z|0)==0){y=c[r>>2]|0;y=jd[c[(c[y>>2]|0)+20>>2]&511](y)|0;if((y|0)==255){while(1){z=c[r>>2]|0;z=jd[c[(c[z>>2]|0)+20>>2]&511](z)|0;if((z|0)==0){break}else if((z|0)!=255){w=52;break e}}}else if((y|0)==-1){g=0;w=103;break e}c[s>>2]=y;c[u>>2]=8;z=7}else{y=c[s>>2]|0;z=z+ -1|0}c[u>>2]=z;if((1<<z&y|0)==0){x=A;continue}c[x>>2]=(c[x>>2]|0)+(1<<c[t>>2]);x=A}w=w+1|0;}while((w|0)<16)}else if((w|0)==9999){g=0;w=103;break}else{x=w&15;l=w>>4;if((x|0)==0){w=57;break}w=l&15;A=c[u>>2]|0;y=0;z=0;do{if((A|0)==0){b=c[r>>2]|0;b=jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;if((b|0)==255){while(1){A=c[r>>2]|0;A=jd[c[(c[A>>2]|0)+20>>2]&511](A)|0;if((A|0)==0){break}else if((A|0)!=255){w=84;break e}}}else if((b|0)==-1){g=0;w=103;break e}c[s>>2]=b;c[u>>2]=8;A=7}else{b=c[s>>2]|0;A=A+ -1|0}c[u>>2]=A;y=b>>>A&1|y<<1;z=z+1|0;}while((z|0)<(x|0));if((y|0)<(1<<x+ -1|0)){y=(-1<<x)+1+y|0}if((y|0)==9999){g=0;w=103;break}else{z=v;x=0}while(1){A=z+1|0;z=f+(c[44096+(z<<2)>>2]<<2)|0;if((c[z>>2]|0)!=0){while(1){B=c[u>>2]|0;if((B|0)==0){b=c[r>>2]|0;b=jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;if((b|0)==255){while(1){B=c[r>>2]|0;B=jd[c[(c[B>>2]|0)+20>>2]&511](B)|0;if((B|0)==0){break}else if((B|0)!=255){w=95;break e}}}else if((b|0)==-1){g=0;w=103;break e}c[s>>2]=b;c[u>>2]=8;B=7}else{b=c[s>>2]|0;B=B+ -1|0}c[u>>2]=B;if((1<<B&b|0)!=0){c[z>>2]=(c[z>>2]|0)+(1<<c[t>>2])}b=A+1|0;z=f+(c[44096+(A<<2)>>2]<<2)|0;if((c[z>>2]|0)==0){A=b;break}else{A=b}}}if((x|0)<(w|0)){z=A;x=x+1|0}else{break}}c[z>>2]=y<<c[t>>2]}if((A|0)>(c[e>>2]|0)){g=1;w=103;break}else{v=A}}if((w|0)==52){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44384,o);B=0;i=h;return B|0}else if((w|0)==57){c[n>>2]=0;f:do{if((l|0)>0){q=0;p=c[u>>2]|0;o=0;g:while(1){if((p|0)==0){d=c[r>>2]|0;d=jd[c[(c[d>>2]|0)+20>>2]&511](d)|0;if((d|0)==255){while(1){p=c[r>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==0){break}else if((p|0)!=255){break g}}}else if((d|0)==-1){g=0;w=103;break}c[s>>2]=d;c[u>>2]=8;q=c[n>>2]|0;p=7}else{d=c[s>>2]|0;p=p+ -1|0}c[u>>2]=p;q=q<<1|d>>>p&1;c[n>>2]=q;o=o+1|0;if((o|0)>=(l|0)){break f}}if((w|0)==103){i=h;return g|0}Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44384,m);B=0;i=h;return B|0}else{q=0}}while(0);l=q+(1<<l)|0;c[n>>2]=l;do{if((v|0)>(c[e>>2]|0)){j=l}else{h:while(1){l=v+1|0;m=f+(c[44096+(v<<2)>>2]<<2)|0;do{if((c[m>>2]|0)!=0){p=c[u>>2]|0;if((p|0)==0){o=c[r>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==255){while(1){p=c[r>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==0){break}else if((p|0)!=255){w=72;break h}}}else if((o|0)==-1){g=0;w=103;break h}c[s>>2]=o;c[u>>2]=8;p=7}else{o=c[s>>2]|0;p=p+ -1|0}c[u>>2]=p;if((1<<p&o|0)==0){break}c[m>>2]=(c[m>>2]|0)+(1<<c[t>>2])}}while(0);if((v|0)<(c[e>>2]|0)){v=l}else{w=77;break}}if((w|0)==72){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44384,k);B=0;i=h;return B|0}else if((w|0)==77){j=c[n>>2]|0;break}else if((w|0)==103){i=h;return g|0}}}while(0);c[n>>2]=j+ -1;B=1;i=h;return B|0}else if((w|0)==84){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44384,q);B=0;i=h;return B|0}else if((w|0)==95){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44384,p);B=0;i=h;return B|0}else if((w|0)==103){i=h;return g|0}return 0}function gl(a,b){a=a|0;b=b|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;g=i;i=i+8|0;h=i;i=i+8|0;j=a+4012|0;l=a+8|0;k=a+4008|0;o=c[j>>2]|0;m=0;n=0;a:while(1){if((o|0)==0){p=c[l>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){a=9999;j=12;break}else if((p|0)==255){while(1){o=c[l>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==0){break}else if((o|0)!=255){j=6;break a}}}c[k>>2]=p;c[j>>2]=8;o=7}else{p=c[k>>2]|0;o=o+ -1|0}c[j>>2]=o;n=p>>>o&1|(n&65535)<<1;m=m+1|0;p=e[b+18+(m<<1)>>1]|0;if(((n&65535)-p|0)<(e[b+52+(m<<1)>>1]|0|0)){j=9;break}if((m|0)<16){n=n&65535}else{j=11;break}}if((j|0)==6){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44384,h);p=9999;i=f;return p|0}else if((j|0)==9){p=d[b+86+((d[b+m|0]|0)+(n-p&65535))|0]|0;i=f;return p|0}else if((j|0)==11){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44352,g);p=9999;i=f;return p|0}else if((j|0)==12){i=f;return a|0}return 0}function hl(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;f=i;i=i+8|0;g=f;j=i;i=i+8|0;e=b+8|0;l=c[e>>2]|0;if((jd[c[(c[l>>2]|0)+20>>2]&511](l)|0)!=-1){l=c[e>>2]|0;jd[c[(c[l>>2]|0)+20>>2]&511](l)|0}h=c[e>>2]|0;h=jd[c[(c[h>>2]|0)+20>>2]&511](h)|0;l=c[e>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;do{if((l|0)==-1){k=-1}else{k=c[e>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){k=-1;break}k=k+(l<<8)|0}}while(0);c[b+20>>2]=k;k=c[e>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;do{if((k|0)==-1){k=-1}else{l=c[e>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){k=-1;break}k=l+(k<<8)|0}}while(0);c[b+16>>2]=k;l=c[e>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;k=b+176|0;c[k>>2]=l;if((l+ -1|0)>>>0>3){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44472,j);c[k>>2]=0;l=0;i=d;return l|0}if((h|0)!=8){l=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[f>>2]=h;Qe(l,44512,g);l=0;i=d;return l|0}if((l|0)>0){f=0;do{l=c[e>>2]|0;c[b+40+(f*20|0)>>2]=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;l=c[e>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;c[b+40+(f*20|0)+4>>2]=l>>>4&15;c[b+40+(f*20|0)+8>>2]=l&15;l=c[e>>2]|0;c[b+40+(f*20|0)+12>>2]=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;f=f+1|0;}while((f|0)<(c[k>>2]|0))}a[b+12|0]=0;l=1;i=d;return l|0}function il(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;h=i;i=i+8|0;f=h;e=b+8|0;k=c[e>>2]|0;if((jd[c[(c[k>>2]|0)+20>>2]&511](k)|0)!=-1){k=c[e>>2]|0;jd[c[(c[k>>2]|0)+20>>2]&511](k)|0}g=c[e>>2]|0;g=jd[c[(c[g>>2]|0)+20>>2]&511](g)|0;k=c[e>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;do{if((k|0)==-1){j=-1}else{j=c[e>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){j=-1;break}j=j+(k<<8)|0}}while(0);c[b+20>>2]=j;j=c[e>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;do{if((j|0)==-1){j=-1}else{k=c[e>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){j=-1;break}j=k+(j<<8)|0}}while(0);c[b+16>>2]=j;k=c[e>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;j=b+176|0;c[j>>2]=k;if((g|0)!=8){k=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[h>>2]=g;Qe(k,44512,f);k=0;i=d;return k|0}if((k|0)>0){f=0;do{k=c[e>>2]|0;c[b+40+(f*20|0)>>2]=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;k=c[e>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;c[b+40+(f*20|0)+4>>2]=k>>>4&15;c[b+40+(f*20|0)+8>>2]=k&15;k=c[e>>2]|0;c[b+40+(f*20|0)+12>>2]=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;f=f+1|0;}while((f|0)<(c[j>>2]|0))}a[b+12|0]=1;k=1;i=d;return k|0}function jl(d){d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;h=i;i=i+8|0;g=d+8|0;k=c[g>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){q=1;i=e;return q|0}j=c[g>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){q=1;i=e;return q|0}m=(k<<8)+ -2+j|0;if((m|0)<=0){q=1;i=e;return q|0}k=d+3444|0;j=d+3448|0;while(1){l=c[g>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;n=l&15;if(n>>>0>3){break}if((l&16|0)==0){if((n|0)>=(c[k>>2]|0)){c[k>>2]=n+1}l=d+708+(n*342|0)|0}else{if((n|0)>=(c[j>>2]|0)){c[j>>2]=n+1}l=d+2076+(n*342|0)|0}p=0;q=1;o=0;while(1){n=c[g>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;a[l+q|0]=o;b[l+18+(q<<1)>>1]=p;b[l+52+(q<<1)>>1]=n;o=n+(o&255)|0;q=q+1|0;if((q|0)<17){o=o&255;p=n+(p&65535)<<1&65535}else{break}}m=m+ -17|0;o=o&255;if((o|0)!=0){n=0;do{q=c[g>>2]|0;a[l+86+n|0]=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;n=n+1|0;}while((n|0)<(o|0))}m=m-o|0;if((m|0)<=0){d=1;f=19;break}}if((f|0)==19){i=e;return d|0}Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,44680,h);q=0;i=e;return q|0}function kl(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;d=i;f=i;i=i+8|0;g=i;i=i+8|0;j=i;i=i+8|0;k=i;i=i+8|0;e=b+8|0;h=c[e>>2]|0;h=jd[c[(c[h>>2]|0)+20>>2]&511](h)|0;do{if((h|0)==-1){m=-4}else{l=c[e>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){m=-4;break}m=(h<<8)+ -3+l|0}}while(0);l=c[e>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;h=b+124|0;c[h>>2]=l;if((l+ -1|0)>>>0>3){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44472,k);c[h>>2]=0;o=0;i=d;return o|0}if((m|0)!=((l<<1)+3|0)){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44536,j);o=0;i=d;return o|0}j=b+176|0;o=c[j>>2]|0;a[b+13|0]=(l|0)==(o|0)|0;if((o|0)>0){k=0;do{a[b+120+k|0]=0;c[b+128+(k<<2)>>2]=0;c[b+144+(k<<2)>>2]=0;k=k+1|0;}while((k|0)<(c[j>>2]|0));l=c[h>>2]|0}m=c[e>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;a:do{if((l|0)>0){k=0;while(1){if((m|0)==(c[b+40+(k*20|0)>>2]|0)){n=k}else{l=c[j>>2]|0;b:do{if((l|0)>0){n=0;while(1){o=n+1|0;if((m|0)==(c[b+40+(n*20|0)>>2]|0)){break b}if((o|0)<(l|0)){n=o}else{n=o;break}}}else{n=0}}while(0);if((n|0)==(l|0)){break}}a[b+120+n|0]=1;o=c[e>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;c[b+128+(n<<2)>>2]=o>>>4&15;c[b+144+(n<<2)>>2]=o&15;k=k+1|0;o=(k|0)<(c[h>>2]|0);m=c[e>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if(!o){break a}}Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44560,g);o=0;i=d;return o|0}}while(0);n=b+160|0;c[n>>2]=m;o=c[e>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;c[b+164>>2]=o;n=c[n>>2]|0;if((n|0)<0|(o|0)>63|(n|0)>(o|0)){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44600,f);o=0;i=d;return o|0}else{o=c[e>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;c[b+168>>2]=o>>>4&15;c[b+172>>2]=o&15;o=1;i=d;return o|0}return 0}function ll(a){a=a|0;var 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=a+8|0;h=c[g>>2]|0;h=jd[c[(c[h>>2]|0)+20>>2]&511](h)|0;if((h|0)==-1){o=1;i=e;return o|0}j=c[g>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){o=1;i=e;return o|0}k=(h<<8)+ -2+j|0;if((k|0)<=0){o=1;i=e;return o|0}h=a+704|0;while(1){j=c[g>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;l=j>>>4&15;j=j&15;if(l>>>0>1|j>>>0>3){break}if((j|0)==(c[h>>2]|0)){c[h>>2]=j+1}m=(l|0)!=0;l=0;do{n=c[g>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if(m){do{if((n|0)==-1){n=-1}else{o=c[g>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){n=-1;break}n=o+(n<<8)&65535}}while(0);b[a+192+(j<<7)+(c[44096+(l<<2)>>2]<<1)>>1]=n}else{b[a+192+(j<<7)+(c[44096+(l<<2)>>2]<<1)>>1]=n}l=l+1|0;}while((l|0)<64);k=k+(m?-129:-65)|0;if((k|0)<=0){a=1;d=18;break}}if((d|0)==18){i=e;return a|0}Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44648,f);o=0;i=e;return o|0}function ml(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;f=i;i=i+8|0;j=i;i=i+8|0;h=i;i=i+8|0;e=b+8|0;l=c[e>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){l=1;i=d;return l|0}k=c[e>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){l=1;i=d;return l|0}k=k+(l<<8)|0;l=k+ -2|0;do{if((l|0)>4){l=0;while(1){g=c[e>>2]|0;g=jd[c[(c[g>>2]|0)+20>>2]&511](g)|0;if((g|0)==-1){g=5;break}a[h+l|0]=g;l=l+1|0;if((l|0)>=5){g=7;break}}if((g|0)==5){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44736,j);l=0;i=d;return l|0}else if((g|0)==7){l=k+ -7|0;if((iX(h|0,44760,5)|0)!=0){break}a[b+184|0]=1;break}}}while(0);if((l|0)<=0){l=1;i=d;return l|0}while(1){k=c[e>>2]|0;l=l+ -1|0;if((jd[c[(c[k>>2]|0)+20>>2]&511](k)|0)==-1){break}if((l|0)>0){}else{b=1;g=13;break}}if((g|0)==13){i=d;return b|0}Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44736,f);l=0;i=d;return l|0}function nl(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;f=i;i=i+8|0;g=i;i=i+16|0;e=b+8|0;j=c[e>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;a:do{if((j|0)!=-1){h=c[e>>2]|0;h=jd[c[(c[h>>2]|0)+20>>2]&511](h)|0;if((h|0)==-1){break}h=h+(j<<8)|0;if((h|0)<14){break}else{j=0}do{k=c[e>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break a}a[g+j|0]=k;j=j+1|0;}while((j|0)<12);if((vc(g|0,44768,5)|0)!=0){break}c[b+180>>2]=a[g+11|0]|0;a[b+185|0]=1;if((h|0)>14){g=14}else{k=1;i=d;return k|0}while(1){k=c[e>>2]|0;g=g+1|0;if((jd[c[(c[k>>2]|0)+20>>2]&511](k)|0)==-1){break a}if((g|0)<(h|0)){}else{b=1;break}}i=d;return b|0}}while(0);Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44776,f);k=0;i=d;return k|0}function ol(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)<2){b=0;i=e;return b|0}a=c[a+8>>2]|0;a=sd[c[(c[a>>2]|0)+56>>2]&127](a,b,d)|0;if((a|0)==0){b=0;i=e;return b|0}ne(ne(a,d,-1)|0,44824,-1)|0;b=a;i=e;return b|0}function pl(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 ql(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;j=i;c[b+4>>2]=1;c[b+8>>2]=d;c[b>>2]=47624;a:do{if((e|0)==1){c[b+12>>2]=0}else{d=FW(44)|0;c[d>>2]=b;c[d+4>>2]=e;c[d+8>>2]=f;c[d+12>>2]=g;c[d+16>>2]=h;e=d+32|0;c[e>>2]=0;m=d+40|0;a[m]=0;n=da(g,f)|0;c[d+20>>2]=n;k=(da(h,g)|0)+7>>3;c[d+24>>2]=k;k=((da(n,h)|0)+7>>3)+k|0;l=d+28|0;c[l>>2]=k;do{if(!((f|0)<1|(g|0)<1)){if((h|0)<1|(g|0)>32|(h|0)>16){break}if((2147483647/(g|0)|0|0)<=(f|0)){break}if((n|0)>=(2147483640/(h|0)|0|0)){break}n=we(k)|0;c[e>>2]=n;bX(n|0,0,c[l>>2]|0)|0;c[d+36>>2]=c[l>>2];a[m]=1;c[b+12>>2]=d;break a}}while(0);h=b+12|0;c[h>>2]=d;if((d|0)!=0){Fe(c[e>>2]|0);HW(d)}c[h>>2]=0}}while(0);c[b+34072>>2]=0;c[b+34080>>2]=0;bX(b+16|0,0,32768)|0;i=j;return}function rl(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=47624;d=c[a+34072>>2]|0;if((d|0)!=(c[11868]|0)){Fe(d)}d=c[a+34080>>2]|0;if((d|0)!=(c[11902]|0)){Fe(d)}d=c[a+12>>2]|0;if((d|0)!=0){Fe(c[d+32>>2]|0);HW(d)}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 sl(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=47624;d=c[a+34072>>2]|0;if((d|0)!=(c[11868]|0)){Fe(d)}d=c[a+34080>>2]|0;if((d|0)!=(c[11902]|0)){Fe(d)}d=c[a+12>>2]|0;if((d|0)!=0){Fe(c[d+32>>2]|0);HW(d)}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 tl(b){b=b|0;var d=0;d=i;a[b+34088|0]=0;bX(b+32784|0,0,16)|0;a[b+34096|0]=1;a[b+34097|0]=1;b=c[b+8>>2]|0;fd[c[(c[b>>2]|0)+12>>2]&511](b);i=d;return}function ul(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;h=i;i=i+8|0;f=i;i=i+8|0;e=i;i=i+8|0;fd[c[(c[b>>2]|0)+40>>2]&511](b);g=b+34097|0;a[g]=1;a[b+34096|0]=1;j=b+8|0;k=c[j>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;j=c[j>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((k|0)==-1|(j|0)==-1){i=d;return}if((k&15|0)!=8){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47720,e);i=d;return}if(((j+(k<<8)|0)%31|0|0)!=0){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47768,f);i=d;return}if((j&32|0)==0){a[g]=0;i=d;return}else{Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47800,h);i=d;return}}function vl(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;f=c[b+12>>2]|0;if((f|0)!=0){b=f+36|0;g=c[b>>2]|0;do{if((g|0)>=(c[f+28>>2]|0)){if(Cj(f)|0){g=c[b>>2]|0;break}else{j=-1;i=e;return j|0}}}while(0);c[b>>2]=g+1;j=d[(c[f+32>>2]|0)+g|0]|0;i=e;return j|0}f=b+32788|0;j=c[f>>2]|0;a:do{if((j|0)==0){h=b+34096|0;g=b+34097|0;while(1){if((a[h]&1)!=0){if((a[g]&1)!=0){b=-1;break}}yl(b);j=c[f>>2]|0;if((j|0)!=0){break a}}i=e;return b|0}}while(0);g=b+32784|0;k=c[g>>2]|0;h=d[b+16+k|0]|0;c[g>>2]=k+1&32767;c[f>>2]=j+ -1;j=h;i=e;return j|0}function wl(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;f=b+12|0;j=c[f>>2]|0;h=(d|0)>0;if((j|0)!=0){if(!h){p=d;i=g;return p|0}l=j+36|0;n=j+28|0;k=j+32|0;m=0;while(1){o=c[l>>2]|0;if((o|0)>=(c[n>>2]|0)){if(!(Cj(j)|0)){j=22;break}o=c[l>>2]|0}c[l>>2]=o+1;a[e+m|0]=a[(c[k>>2]|0)+o|0]|0;m=m+1|0;if((m|0)>=(d|0)){m=d;j=22;break}}if((j|0)==22){i=g;return m|0}}if(!h){p=d;i=g;return p|0}k=b+32788|0;l=b+34096|0;h=b+34097|0;j=b+32784|0;n=0;m=0;a:while(1){if((n|0)==0){n=c[k>>2]|0;if((n|0)==0){do{if((a[l]&1)!=0){if((a[h]&1)!=0){j=22;break a}}yl(b);n=c[k>>2]|0;}while((n|0)==0)}o=c[j>>2]|0;p=a[b+16+o|0]|0;c[j>>2]=o+1&32767;c[k>>2]=n+ -1;n=p}else{o=n+36|0;p=c[o>>2]|0;if((p|0)>=(c[n+28>>2]|0)){if(!(Cj(n)|0)){j=22;break}p=c[o>>2]|0}c[o>>2]=p+1;n=a[(c[n+32>>2]|0)+p|0]|0}a[e+m|0]=n;m=m+1|0;if((m|0)>=(d|0)){m=d;j=22;break}n=c[f>>2]|0}if((j|0)==22){i=g;return m|0}return 0}function xl(b){b=b|0;var e=0,f=0,g=0,h=0;e=i;f=c[b+12>>2]|0;if((f|0)!=0){g=f+36|0;b=c[g>>2]|0;do{if((b|0)>=(c[f+28>>2]|0)){if(Cj(f)|0){b=c[g>>2]|0;break}else{h=-1;i=e;return h|0}}}while(0);h=d[(c[f+32>>2]|0)+b|0]|0;i=e;return h|0}f=b+32788|0;a:do{if((c[f>>2]|0)==0){h=b+34096|0;g=b+34097|0;while(1){if((a[h]&1)!=0){if((a[g]&1)!=0){b=-1;break}}yl(b);if((c[f>>2]|0)!=0){break a}}i=e;return b|0}}while(0);h=d[b+16+(c[b+32784>>2]|0)|0]|0;i=e;return h|0}function yl(d){d=d|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;k=i;i=i+8|0;g=d+34096|0;do{if((a[g]&1)!=0){if(Dl(d)|0){break}i=f;return}}while(0);if((a[d+34088|0]&1)==0){h=d+34092|0;j=c[h>>2]|0;j=(j|0)<32768?j:32768;a:do{if((j|0)>0){k=d+8|0;n=0;l=c[d+32784>>2]|0;while(1){m=c[k>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}a[d+16+l|0]=m;n=n+1|0;if((n|0)<(j|0)){l=l+1&32767}else{break a}}a[d+34097|0]=1;a[g]=1}else{n=0}}while(0);c[d+32788>>2]=n;s=c[h>>2]|0;c[h>>2]=s-j;if((s|0)!=(j|0)){i=f;return}a[g]=1;i=f;return}l=d+8|0;h=d+32796|0;m=c[h>>2]|0;n=d+34076|0;o=c[n>>2]|0;j=d+32792|0;b:do{if((m|0)<(o|0)){while(1){m=c[l>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}o=c[h>>2]|0;c[j>>2]=c[j>>2]|(m&255)<<o;m=o+8|0;c[h>>2]=m;o=c[n>>2]|0;if((m|0)>=(o|0)){break b}}m=c[h>>2]|0;o=c[n>>2]|0}}while(0);n=c[j>>2]|0;o=(1<<o)+ -1&n;p=c[d+34072>>2]|0;c:do{if((m|0)!=0){q=p+(o<<2)|0;s=b[q>>1]|0;r=s&65535;if((m|0)<(r|0)|s<<16>>16==0){break}n=n>>r;c[j>>2]=n;q=m-(e[q>>1]|0)|0;c[h>>2]=q;m=b[p+(o<<2)+2>>1]|0;if((m&65535)<256){a[d+16+(c[d+32784>>2]|0)|0]=m;c[d+32788>>2]=1;i=f;return}if(m<<16>>16==256){a[g]=1;c[d+32788>>2]=0;i=f;return}m=(m&65535)+ -257|0;o=c[44936+(m<<3)>>2]|0;if((o|0)>0){if((q|0)<(o|0)){do{n=c[l>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break c}q=c[h>>2]|0;n=c[j>>2]|(n&255)<<q;c[j>>2]=n;q=q+8|0;c[h>>2]=q;}while((q|0)<(o|0))}p=n&(1<<o)+ -1;n=n>>o;c[j>>2]=n;q=q-o|0;c[h>>2]=q;if((p|0)==-1){break}else{o=p}}m=(c[44940+(m<<3)>>2]|0)+o|0;p=d+34084|0;r=c[p>>2]|0;d:do{if((q|0)<(r|0)){while(1){n=c[l>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}o=c[h>>2]|0;n=c[j>>2]|(n&255)<<o;c[j>>2]=n;o=o+8|0;c[h>>2]=o;q=c[p>>2]|0;if((o|0)>=(q|0)){break d}}n=c[j>>2]|0;o=c[h>>2]|0;q=c[p>>2]|0}else{o=q;q=r}}while(0);q=(1<<q)+ -1&n;p=c[d+34080>>2]|0;if((o|0)==0){break}s=p+(q<<2)|0;t=b[s>>1]|0;r=t&65535;if((o|0)<(r|0)|t<<16>>16==0){break}r=n>>r;c[j>>2]=r;s=o-(e[s>>1]|0)|0;c[h>>2]=s;n=e[p+(q<<2)+2>>1]|0;o=c[45184+(n<<3)>>2]|0;if((o|0)>0){if((s|0)<(o|0)){do{p=c[l>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break c}s=c[h>>2]|0;r=c[j>>2]|(p&255)<<s;c[j>>2]=r;s=s+8|0;c[h>>2]=s;}while((s|0)<(o|0))}l=r&(1<<o)+ -1;c[j>>2]=r>>o;c[h>>2]=s-o;if((l|0)==-1){break}else{o=l}}h=c[d+32784>>2]|0;if((m|0)>0){g=h;j=h-((c[45188+(n<<3)>>2]|0)+o)|0;h=0;while(1){j=j&32767;a[d+16+g|0]=a[d+16+j|0]|0;h=h+1|0;if((h|0)<(m|0)){j=j+1|0;g=g+1&32767}else{break}}}c[d+32788>>2]=m;i=f;return}}while(0);Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,47864,k);a[d+34097|0]=1;a[g]=1;c[d+32788>>2]=0;i=f;return}function zl(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;l=i;if((e|0)<=0){i=l;return}k=b+32788|0;g=b+34096|0;j=b+34097|0;m=b+32784|0;n=0;do{o=c[k>>2]|0;a:do{if((o|0)==0){while(1){if((a[g]&1)!=0){if((a[j]&1)!=0){o=-1;break a}}yl(b);o=c[k>>2]|0;if((o|0)!=0){h=7;break}}}else{h=7}}while(0);if((h|0)==7){h=0;q=c[m>>2]|0;p=d[b+16+q|0]|0;c[m>>2]=q+1&32767;c[k>>2]=o+ -1;o=p}c[f+(n<<2)>>2]=o;n=n+1|0;}while((n|0)<(e|0));i=l;return}function Al(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;f=b+32788|0;j=c[f>>2]|0;a:do{if((j|0)==0){h=b+34096|0;g=b+34097|0;while(1){if((a[h]&1)!=0){if((a[g]&1)!=0){b=-1;break}}yl(b);j=c[f>>2]|0;if((j|0)!=0){break a}}i=e;return b|0}}while(0);g=b+32784|0;k=c[g>>2]|0;h=d[b+16+k|0]|0;c[g>>2]=k+1&32767;c[f>>2]=j+ -1;j=h;i=e;return j|0}function Bl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)<3){b=0;i=e;return b|0}if((c[a+12>>2]|0)!=0){b=0;i=e;return b|0}a=c[a+8>>2]|0;a=sd[c[(c[a>>2]|0)+56>>2]&127](a,b,d)|0;if((a|0)==0){b=0;i=e;return b|0}ne(ne(a,d,-1)|0,47832,-1)|0;b=a;i=e;return b|0}function Cl(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 Dl(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;d=i;e=i;i=i+8|0;f=i;i=i+8|0;h=b+34072|0;g=c[h>>2]|0;if((g|0)!=(c[11868]|0)){Fe(g)}c[h>>2]=0;j=b+34080|0;g=c[j>>2]|0;if((g|0)!=(c[11902]|0)){Fe(g)}c[j>>2]=0;g=b+32796|0;m=c[g>>2]|0;a:do{if((m|0)<3){n=b+8|0;m=b+32792|0;while(1){k=c[n>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){n=-1;k=11;break a}o=c[g>>2]|0;l=c[m>>2]|(k&255)<<o;c[m>>2]=l;k=o+8|0;c[g>>2]=k;if((k|0)>=3){m=k;k=10;break}}}else{l=c[b+32792>>2]|0;k=10}}while(0);if((k|0)==10){n=l&7;c[b+32792>>2]=l>>3;c[g>>2]=m+ -3;if((l&1|0)!=0){k=11}}if((k|0)==11){a[b+34097|0]=1}k=n>>1;do{if((k|0)==0){a[b+34088|0]=0;j=b+8|0;k=c[j>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){k=23;break}h=b+34092|0;c[h>>2]=k&255;k=c[j>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){k=23;break}c[h>>2]=c[h>>2]|k<<8&65280;k=c[j>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){k=23;break}j=c[j>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){k=23;break}if((j<<8&65280|k&255|0)!=(c[h>>2]&65535^65535|0)){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47904,f)}c[b+32792>>2]=0;c[g>>2]=0;k=22}else if((k|0)==1){a[b+34088|0]=1;c[h>>2]=c[11868];c[b+34076>>2]=c[47476>>2];c[j>>2]=c[11902];c[b+34084>>2]=c[47612>>2];k=22}else if((k|0)==2){a[b+34088|0]=1;if(El(b)|0){k=22}else{k=23}}else{k=23}}while(0);if((k|0)==22){a[b+34096|0]=0;o=1;i=d;return o|0}else if((k|0)==23){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47952,e);a[b+34097|0]=1;a[b+34096|0]=1;o=0;i=d;return o|0}return 0}function El(a){a=a|0;var d=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;f=i;d=i;i=i+8|0;l=i;i=i+80|0;n=l;p=i;i=i+8|0;o=p;c[p>>2]=0;g=a+32796|0;q=c[g>>2]|0;a:do{if((q|0)<5){k=a+8|0;h=a+32792|0;while(1){j=c[k>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){p=0;break a}q=c[g>>2]|0;j=c[h>>2]|(j&255)<<q;c[h>>2]=j;q=q+8|0;c[g>>2]=q;if((q|0)>=5){m=6;break}}}else{j=c[a+32792>>2]|0;m=6}}while(0);b:do{if((m|0)==6){h=a+32792|0;k=j>>5;c[h>>2]=k;q=q+ -5|0;c[g>>2]=q;j=(j&31)+257|0;if((q|0)<5){q=a+8|0;while(1){k=c[q>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){p=0;break b}r=c[g>>2]|0;k=c[h>>2]|(k&255)<<r;c[h>>2]=k;r=r+8|0;c[g>>2]=r;if((r|0)>=5){s=r;break}}}else{s=q}r=k&31;q=k>>5;c[h>>2]=q;t=s+ -5|0;c[g>>2]=t;k=r+1|0;if((t|0)<4){s=a+8|0;do{q=c[s>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){p=0;break b}t=c[g>>2]|0;q=c[h>>2]|(q&255)<<t;c[h>>2]=q;t=t+8|0;c[g>>2]=t;}while((t|0)<4)}s=q>>4;c[h>>2]=s;t=t+ -4|0;c[g>>2]=t;q=(q&15)+4|0;if(j>>>0>288|r>>>0>29|q>>>0>19){p=0;break}bX(l|0,0,76)|0;l=a+8|0;r=0;c:while(1){if((t|0)<3){do{s=c[l>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){m=18;break c}t=c[g>>2]|0;s=c[h>>2]|(s&255)<<t;c[h>>2]=s;t=t+8|0;c[g>>2]=t;}while((t|0)<3)}u=s>>3;c[h>>2]=u;t=t+ -3|0;c[g>>2]=t;c[n+(c[44856+(r<<2)>>2]<<2)>>2]=s&7;r=r+1|0;if((r|0)<(q|0)){s=u}else{break}}if((m|0)==18){c[n+(c[44856+(r<<2)>>2]<<2)>>2]=-1;p=0;break}Fl(0,n,19,o);n=k+j|0;o=c[o+4>>2]|0;p=c[p>>2]|0;q=a+32800|0;r=0;m=0;d:while(1){while(1){s=c[g>>2]|0;e:do{if((s|0)<(o|0)){while(1){s=c[l>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}w=c[g>>2]|0;c[h>>2]=c[h>>2]|(s&255)<<w;s=w+8|0;c[g>>2]=s;if((s|0)>=(o|0)){break e}}s=c[g>>2]|0}}while(0);w=c[h>>2]|0;t=(1<<o)+ -1&w;if((s|0)==0){break b}v=p+(t<<2)|0;x=b[v>>1]|0;u=x&65535;if((s|0)<(u|0)|x<<16>>16==0){break b}u=w>>u;c[h>>2]=u;s=s-(e[v>>1]|0)|0;c[g>>2]=s;t=e[p+(t<<2)+2>>1]|0;if((t|0)==17){m=37;break}else if((t|0)==18){m=42;break}else if((t|0)!=16){m=47;break}if((s|0)<2){do{s=c[l>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break b}x=c[g>>2]|0;u=c[h>>2]|(s&255)<<x;c[h>>2]=u;s=x+8|0;c[g>>2]=s;}while((s|0)<2)}c[h>>2]=u>>2;c[g>>2]=s+ -2;t=(u&3)+3|0;if((t+r|0)>(n|0)){break b}s=u&3;u=-3-s|0;u=r+4+((u|0)>-1?u:-1)|0;while(1){c[a+32800+(r<<2)>>2]=m;t=t+ -1|0;if((t|0)>0){r=r+1|0}else{break}}r=u+s|0;if((r|0)>=(n|0)){break d}}if((m|0)==37){if((s|0)<3){do{m=c[l>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break b}s=c[g>>2]|0;u=c[h>>2]|(m&255)<<s;c[h>>2]=u;s=s+8|0;c[g>>2]=s;}while((s|0)<3)}c[h>>2]=u>>3;c[g>>2]=s+ -3;if(((u&7)+3+r|0)>(n|0)){break b}s=u&7;m=-3-s|0;t=(m|0)>-1?m:-1;bX(a+32800+(r<<2)|0,0,t+4+s<<2|0)|0;r=r+4+t+s|0;t=0}else if((m|0)==42){if((s|0)<7){do{m=c[l>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break b}s=c[g>>2]|0;u=c[h>>2]|(m&255)<<s;c[h>>2]=u;s=s+8|0;c[g>>2]=s;}while((s|0)<7)}c[h>>2]=u>>7;c[g>>2]=s+ -7;if(((u&127)+11+r|0)>(n|0)){break b}m=u&127;s=-11-m|0;t=(s|0)>-1?s:-1;bX(a+32800+(r<<2)|0,0,t+12+m<<2|0)|0;r=r+12+t+m|0;t=0}else if((m|0)==47){c[a+32800+(r<<2)>>2]=t;r=r+1|0}if((r|0)<(n|0)){m=t}else{break}}Fl(0,q,j,a+34072|0);Fl(0,a+32800+(j<<2)|0,k,a+34080|0);Fe(p);x=1;i=f;return x|0}}while(0);Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,47992,d);Fe(p);x=0;i=f;return x|0}function Fl(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;a=i;h=f+4|0;c[h>>2]=0;g=(e|0)>0;if(g){k=0;j=0;do{l=c[d+(j<<2)>>2]|0;if((l|0)>(k|0)){c[h>>2]=l;k=l}j=j+1|0;}while((j|0)<(e|0))}else{k=0}j=1<<k;k=ye(j,4)|0;c[f>>2]=k;a:do{if((j|0)>0){l=0;while(1){b[k+(l<<2)>>1]=0;b[(c[f>>2]|0)+(l<<2)+2>>1]=0;l=l+1|0;if((l|0)>=(j|0)){break a}k=c[f>>2]|0}}}while(0);m=c[h>>2]|0;if((m|0)<1){i=a;return}else{o=0;k=1;l=2}while(1){if(g){n=(k|0)>0;m=k&65535;p=0;do{if((c[d+(p<<2)>>2]|0)==(k|0)){if(n){r=0;s=0;q=o;while(1){r=q&1|r<<1;s=s+1|0;if((s|0)<(k|0)){q=q>>1}else{break}}}else{r=0}if((r|0)<(j|0)){q=p&65535;do{b[(c[f>>2]|0)+(r<<2)>>1]=m;b[(c[f>>2]|0)+(r<<2)+2>>1]=q;r=r+l|0;}while((r|0)<(j|0))}o=o+1|0}p=p+1|0;}while((p|0)<(e|0));m=c[h>>2]|0}if((k|0)<(m|0)){o=o<<1;k=k+1|0;l=l<<1}else{break}}i=a;return}function Gl(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=48040;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 Hl(a){a=a|0;var b=0;b=i;c[a>>2]=48040;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 Il(a){a=a|0;i=i;return 0}function Jl(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return}function Kl(a){a=a|0;i=i;return 0}function Ll(a){a=a|0;i=i;return 0}function Ml(a){a=a|0;i=i;return 0}function Nl(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;f=b+300|0;h=c[f>>2]|0;g=b+304|0;j=c[g>>2]|0;do{if(h>>>0>=j>>>0){h=b+41|0;k=b+308|0;j=(c[k>>2]|0)+(j-h)|0;c[k>>2]=j;c[g>>2]=h;c[f>>2]=h;do{if((a[b+40|0]&1)==0){j=256}else{k=(c[b+8>>2]|0)+(c[b+36>>2]|0)|0;if(j>>>0<k>>>0){j=(j+256|0)>>>0>k>>>0?k-j|0:256;break}else{k=-1;i=e;return k|0}}}while(0);k=b+41+(Ta(h|0,1,j|0,c[b+32>>2]|0)|0)|0;c[g>>2]=k;h=c[f>>2]|0;if(h>>>0<k>>>0){break}else{f=-1}i=e;return f|0}}while(0);c[f>>2]=h+1;k=d[h]|0;i=e;return k|0}function Ol(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;g=b+300|0;h=c[g>>2]|0;f=b+304|0;j=c[f>>2]|0;do{if(h>>>0>=j>>>0){h=b+41|0;k=b+308|0;j=(c[k>>2]|0)+(j-h)|0;c[k>>2]=j;c[f>>2]=h;c[g>>2]=h;do{if((a[b+40|0]&1)==0){j=256}else{k=(c[b+8>>2]|0)+(c[b+36>>2]|0)|0;if(j>>>0<k>>>0){j=(j+256|0)>>>0>k>>>0?k-j|0:256;break}else{k=-1;i=e;return k|0}}}while(0);k=b+41+(Ta(h|0,1,j|0,c[b+32>>2]|0)|0)|0;c[f>>2]=k;h=c[g>>2]|0;if(h>>>0<k>>>0){break}else{b=-1}i=e;return b|0}}while(0);k=d[h]|0;i=e;return k|0}function Pl(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 Ql(a){a=a|0;var b=0;b=i;fd[c[(c[a>>2]|0)+12>>2]&511](a);i=b;return}function Rl(a){a=a|0;i=i;return(c[a+308>>2]|0)-(a+41)+(c[a+300>>2]|0)|0}function Sl(a,b){a=a|0;b=b|0;i=i;return b|0}function Tl(a){a=a|0;i=i;return a|0}function Ul(a){a=a|0;i=i;return a|0}function Vl(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;e=i;i=i+8|0;d=e;f=c[a+16>>2]|0;if((f|0)==7){i=b;return c[a+24>>2]|0}else{c[e>>2]=f;c[d+4>>2]=7;Qe(0,48632,d);tc()}return 0}function Wl(a){a=a|0;i=i;return-1}function Xl(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;f=i;h=b+36|0;if((d|0)<=0){r=d;i=f;return r|0}j=b+300|0;m=b+304|0;k=b+41|0;o=b+308|0;g=b+40|0;l=b+32|0;n=b+8|0;p=0;while(1){r=c[j>>2]|0;q=c[m>>2]|0;if(r>>>0>=q>>>0){q=(c[o>>2]|0)+(q-k)|0;c[o>>2]=q;c[m>>2]=k;c[j>>2]=k;if((a[g]&1)==0){q=256}else{r=(c[n>>2]|0)+(c[h>>2]|0)|0;if(q>>>0>=r>>>0){d=p;g=9;break}q=(q+256|0)>>>0>r>>>0?r-q|0:256}q=b+41+(Ta(k|0,1,q|0,c[l>>2]|0)|0)|0;c[m>>2]=q;r=c[j>>2]|0;if(r>>>0>=q>>>0){d=p;g=9;break}}c[j>>2]=r+1;a[e+p|0]=a[r]|0;p=p+1|0;if((p|0)>=(d|0)){g=9;break}}if((g|0)==9){i=f;return d|0}return 0}function Yl(a){a=a|0;i=i;return 0}function Zl(a){a=a|0;i=i;return c[a+8>>2]|0}function _l(a){a=a|0;i=i;return c[a+36>>2]|0}function $l(a){a=a|0;i=i;return 1}function am(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;f=b+1068|0;j=c[f>>2]|0;g=b+1072|0;k=c[g>>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[g>>2]=j;c[f>>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[g>>2]=l;j=c[f>>2]|0;if(j>>>0<l>>>0){break}else{f=-1}i=e;return f|0}}while(0);c[f>>2]=j+1;l=d[j]|0;i=e;return l|0}function bm(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;g=b+1068|0;j=c[g>>2]|0;f=b+1072|0;k=c[f>>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=FW(16)|0;jG(E,5);c[b+64>>2]=E;a[b+120|0]=0;c[b+116>>2]=f;a[b+68|0]=0;c[b+88>>2]=65532;a[b+108|0]=0;c[b>>2]=d;c[b+4>>2]=jd[c[(c[d>>2]|0)+108>>2]&511](d)|0;f=b+112|0;c[f>>2]=e;do{if(h){E=bn(b,g)|0;a[p]=E&1;if(E){e=c[f>>2]|0;break}c[v>>2]=3;i=j;return}}while(0);do{if((e|0)==0){E=bn(b,g)|0;a[p]=E&1;if(E){break}c[v>>2]=3;i=j;return}else{c[D>>2]=0;e=C+4|0;c[e>>2]=0;c[C+8>>2]=0;cn(b,f,C)|0;do{if((a[p]&1)==0){E=bn(b,g)|0;a[p]=E&1;if(E){break}c[v>>2]=3;k=c[D>>2]|0;if((k|0)==0){i=j;return}l=c[e>>2]|0;if((k|0)!=(l|0)){c[e>>2]=l+(~((l+ -4+(0-k)|0)>>>2)<<2)}HW(k);i=j;return}}while(0);C=c[D>>2]|0;if((C|0)==0){break}D=c[e>>2]|0;if((C|0)!=(D|0)){c[e>>2]=D+(~((D+ -4+(0-C)|0)>>>2)<<2)}HW(C)}}while(0);C=c[o>>2]|0;if((C|0)!=7){c[z>>2]=C;c[A+4>>2]=7;Qe(0,49608,A);tc()}Zu(c[l>>2]|0,48824,r)|0;do{if((c[s>>2]|0)==1){z=c[q>>2]|0;if((z|0)<=(c[y>>2]|0)){break}z=dn(b,z)|0;y=c[s>>2]|0;if((y|0)!=1){c[x>>2]=y;c[w+4>>2]=1;Qe(0,49608,w);tc()}if((z|0)==(c[q>>2]|0)){break}E=bn(b,g)|0;a[p]=E&1;if(E){break}Of(r);c[v>>2]=3;i=j;return}else{Qe(-1,48832,B)}}while(0);Of(r);w=c[o>>2]|0;if((w|0)!=7){c[t>>2]=w;c[n+4>>2]=7;Qe(0,49608,n);tc()}Zu(c[l>>2]|0,48864,r)|0;do{if((c[s>>2]|0)==9){c[b+20>>2]=c[q>>2];c[b+24>>2]=c[u>>2];Of(r)}else{Of(r);E=bn(b,g)|0;a[p]=E&1;if(E){break}c[v>>2]=3;i=j;return}}while(0);n=c[o>>2]|0;if((n|0)!=7){c[m>>2]=n;c[k+4>>2]=7;Qe(0,49608,k);tc()}c[(c[l>>2]|0)+4>>2]=b;i=j;return}function bn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;e=i;j=i;i=i+8|0;h=i;i=i+8|0;g=i;i=i+8|0;f=i;i=i+8|0;n=i;i=i+8|0;m=i;i=i+16|0;r=m;l=i;i=i+16|0;s=l;q=i;i=i+256|0;v=q;c[m>>2]=13;k=r+8|0;c[k>>2]=0;c[k+4>>2]=0;c[l>>2]=13;t=s+8|0;c[t>>2]=0;u=t+4|0;c[u>>2]=0;o=b+8|0;Fe(c[o>>2]|0);c[b+12>>2]=0;p=b+16|0;c[p>>2]=0;c[o>>2]=0;Qe(-1,49048,n);n=b+60|0;c[n>>2]=0;if((d|0)!=0){a[d]=1}B=c[b>>2]|0;fd[c[(c[B>>2]|0)+12>>2]&511](B);B=c[b>>2]|0;B=jd[c[(c[B>>2]|0)+48>>2]&511](B)|0;L=c[b>>2]|0;do{if((sd[c[(c[L>>2]|0)+44>>2]&127](L,v,256)|0)!=0){w=b+20|0;x=b+24|0;d=b+40|0;z=b+4|0;y=b+56|0;D=0;G=0;a:while(1){A=a[q]|0;b:do{if(A<<24>>24==0){A=0;H=1;I=v}else{I=v;while(1){C=I+1|0;if(!(hE(A&255)|0)){A=0;H=1;break b}A=a[C]|0;if(A<<24>>24==0){A=0;H=1;I=C;break}else{I=C}}}}while(0);c:while(1){C=B+7|0;do{E=nb(I|0,49112)|0;F=(E|0)!=0;if(!(F|H)){break c}if(F){a[E]=0;A=E-I|0;H=1}else{H=0}d:do{if((vc(I|0,48888,7)|0)==0){c[t>>2]=0;c[u>>2]=0;c[l>>2]=5;J=FW(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=FW(z<<2)|0}w=y+(w<<2)|0;z=y+(z<<2)|0;if((w|0)!=0){c[w>>2]=u}x=y+(x<<2)|0;$W(y|0,t|0,v|0)|0;if((t|0)==0){v=z;t=y;break}HW(t);v=z;t=y}else{if((x|0)!=0){c[x>>2]=u}v=y;x=x+4|0}}while(0);c[h>>2]=0;c[l>>2]=0;c[r>>2]=0;if(!(cn(b,s,j)|0)){c[s>>2]=0}if((a[q]&1)==0){o=30;break}u=c[h>>2]|0;if((u|0)!=0){w=c[l>>2]|0;if((u|0)!=(w|0)){c[l>>2]=w+(~((w+ -4+(0-u)|0)>>>2)<<2)}HW(u)}u=c[s>>2]|0;if((u|0)==0){p=t;break a}w=(c[(c[g>>2]|0)+(d<<5)+8>>2]|0)==3;y=v}if((o|0)==12){Qe(-1,49416,k);A=bn(b,0)|0;a[q]=A&1;if(A){p=t;break}c[b+32>>2]=3;p=t;break}else if((o|0)==19){wn(0)}else if((o|0)==30){a[m]=0;A=bn(b,n)|0;a[q]=A&1;if(A){h=c[h>>2]|0;if((h|0)==0){p=t;break}j=c[l>>2]|0;if((h|0)!=(j|0)){c[l>>2]=j+(~((j+ -4+(0-h)|0)>>>2)<<2)}HW(h);p=t;break}else{c[b+32>>2]=3;h=c[h>>2]|0;if((h|0)==0){p=t;break}j=c[l>>2]|0;if((h|0)!=(j|0)){c[l>>2]=j+(~((j+ -4+(0-h)|0)>>>2)<<2)}HW(h);p=t;break}}}}while(0);if((c[(c[g>>2]|0)+(d<<5)+8>>2]|0)==3){Qe(-1,49432,f);c[(c[g>>2]|0)+(d<<5)+8>>2]=0}if((p|0)==0){z=g;z=c[z>>2]|0;A=d<<5;A=z+A|0;i=e;return A|0}HW(p);z=g;z=c[z>>2]|0;A=d<<5;A=z+A|0;i=e;return A|0}function ln(a){a=a|0;i=i;return}function mn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;f=c[a+60>>2]|0;if((f|0)==0){j=0;i=e;return j|0}g=f+ -1|0;a=c[a+56>>2]|0;h=c[a+(g<<2)>>2]|0;if(h>>>0<b>>>0){j=0;i=e;return j|0}if((f|0)>1){f=-1;do{h=(g+f|0)/2|0;j=(c[a+(h<<2)>>2]|0)>>>0<b>>>0;f=j?h:f;g=j?g:h;}while((g-f|0)>1);h=c[a+(g<<2)>>2]|0}c[d>>2]=h;j=1;i=e;return j|0}function nn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=a+16|0;if((c[e>>2]|0)<=0){k=-1;i=d;return k|0}f=kn(a,0)|0;if((c[e>>2]|0)<=1){k=0;i=d;return k|0}h=1;g=c[f>>2]|0;k=0;while(1){j=c[(kn(a,h)|0)>>2]|0;f=j>>>0>=b>>>0|j>>>0<g>>>0;k=f?k:h;h=h+1|0;if((h|0)<(c[e>>2]|0)){g=f?g:j}else{break}}i=d;return k|0}function on(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;h=i;j=b+16|0;m=c[j>>2]|0;if((m|0)<=(d|0)){k=b+12|0;if((c[k>>2]|0)>(d|0)){k=d+1|0}else{m=b+8|0;l=d+1|0;c[m>>2]=Ce(c[m>>2]|0,l,32)|0;c[k>>2]=l;m=c[j>>2]|0;k=l}if((m|0)<(k|0)){l=b+8|0;do{c[(c[l>>2]|0)+(m<<5)>>2]=-1;c[(c[l>>2]|0)+(m<<5)+8>>2]=0;n=c[l>>2]|0;o=n+(m<<5)+24|0;c[o>>2]=0;c[o+4>>2]=0;c[n+(m<<5)+16>>2]=5;a[(c[l>>2]|0)+(m<<5)+12|0]=0;c[(c[l>>2]|0)+(m<<5)+4>>2]=0;m=m+1|0;}while((m|0)<(k|0))}c[j>>2]=k}d=kn(b,d)|0;c[d+4>>2]=e;e=d+24|0;c[e>>2]=0;c[e+4>>2]=0;c[d+16>>2]=5;a[d+12|0]=0;e=d+8|0;if(g){c[e>>2]=1;c[d>>2]=f;i=h;return}else{c[e>>2]=0;c[d>>2]=0;i=h;return}}function pn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;j=i;g=i;i=i+8|0;h=g;f=c[e>>2]|0;do{if((f|0)>=0){if((f|0)>=(c[b+16>>2]|0)){break}b=kn(b,f)|0;h=b+16|0;Of(h);Mf(d,h)|0;a[b+12|0]=1;i=j;return}}while(0);d=c[e+4>>2]|0;c[g>>2]=f;c[h+4>>2]=d;Qe(-1,49328,h);i=j;return}function qn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;g=d+16|0;h=1;while(1){j=c[g>>2]|0;if((h|0)>=(j|0)){g=4;break}j=(c[(kn(d,h)|0)+8>>2]|0)==0;j=j?h:-1;if((j|0)==-1){h=h+1|0}else{g=5;break}}if((g|0)==4){on(d,j,0,0,0);d=kn(d,j)|0;h=j}else if((g|0)==5){d=kn(d,j)|0}c[d+8>>2]=1;Mf(e,d+16|0)|0;a[d+12|0]=1;c[b>>2]=h;c[b+4>>2]=c[d+4>>2];i=f;return}function rn(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;k=i;m=i;i=i+8|0;n=m;p=i;i=i+8|0;o=p;t=i;i=i+16|0;u=t;f=i;i=i+56|0;r=i;i=i+16|0;j=r;q=i;i=i+16|0;h=q;l=i;i=i+16|0;g=l;v=u+8|0;c[v>>2]=0;c[v+4>>2]=0;c[t>>2]=5;t=FW(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=FW(32)|0;ge(r,(c[j>>2]|0)+o|0,p);ro(c[g>>2]|0,r)|0;no(c[g>>2]|0,r,m);n=n+1|0;o=o+p|0}m=m+1|0;if((m|0)<(h|0)){p=n}else{break}}i=d;return}else if((g|0)==163840){h=FW(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=FW(1160)|0;OG(e,a,c[d>>2]|0,1);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){i=b;return e|0}if((e|0)==0){e=0;i=b;return e|0}fd[c[(c[e>>2]|0)+4>>2]&511](e);e=0;i=b;return e|0}function Wn(a){a=a|0;var b=0;b=i;Xn(a);HW(a);i=b;return}function Xn(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;c[a>>2]=53784;d=c[a+20>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=a+24|0;f=c[d>>2]|0;if(!((f|0)==0|(f|0)==193784|(f|0)==197136)){e=0;do{Fe(c[f+(e<<2)>>2]|0);e=e+1|0;f=c[d>>2]|0}while((e|0)<256);Fe(f)}d=c[a+328>>2]|0;if((d|0)!=0){Fe(d)}d=c[a+340>>2]|0;if((d|0)!=0){Fe(d)}d=c[a+344>>2]|0;if((d|0)==0|(d|0)==200672|(d|0)==201136|(d|0)==201472){QG(a);i=b;return}Fe(d);QG(a);i=b;return}function Yn(a){a=a|0;var b=0;b=i;a=c[a+20>>2]|0;if((a|0)==0){a=0;i=b;return a|0}a=c[a+28>>2]|0;i=b;return a|0}function Zn(a){a=a|0;i=i;return c[a+24>>2]|0}function _n(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;if((c[a+128>>2]|0)!=3102){m=0;k=0;l=d;c[l>>2]=k;i=f;return m|0}g=a+332|0;k=c[g>>2]|0;if((k|0)>0){h=c[a+344>>2]|0;m=0;j=0;do{l=e[h+(m<<1)>>1]|0;j=(l|0)>(j|0)?l:j;m=m+1|0;}while((m|0)<(k|0));h=j+1|0}else{h=1}j=ye(h,2)|0;bX(j|0,0,h<<1|0)|0;if((c[g>>2]|0)<=0){m=j;k=h;l=d;c[l>>2]=k;i=f;return m|0}a=a+344|0;k=0;while(1){b[j+((e[(c[a>>2]|0)+(k<<1)>>1]|0)<<1)>>1]=k;k=k+1|0;if((k|0)<(c[g>>2]|0)){}else{break}}m=d;c[m>>2]=h;i=f;return j|0}function $n(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;c[e>>2]=d;p=UG(b,d,f)|0;j=e+4|0;c[j>>2]=p;if((p|0)==0){c[e+8>>2]=0;p=d+2|0;c[e+16>>2]=p;c[e+12>>2]=p;i=g;return}o=SG(b,d+2|0,f)|0;m=e+8|0;c[m>>2]=o;if((o+ -1|0)>>>0>3){a[f]=0;o=c[m>>2]|0}k=d+3|0;n=c[j>>2]|0;p=(da(n+1|0,o)|0)+k|0;l=p+ -1|0;d=e+12|0;c[d>>2]=l;if((p|0)<1){h=7}else{if((p|0)>(c[b+12>>2]|0)){h=7}}if((h|0)==7){a[f]=0;o=c[m>>2]|0;n=c[j>>2]|0;l=c[d>>2]|0}h=(WG(b,(da(o,n)|0)+k|0,o,f)|0)+l|0;c[e+16>>2]=h;do{if((h|0)>=(c[d>>2]|0)){if((h|0)>(c[b+12>>2]|0)){break}i=g;return}}while(0);a[f]=0;i=g;return}function ao(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;do{if((e|0)>=0){if((c[d+4>>2]|0)<=(e|0)){break}l=d+12|0;k=c[l>>2]|0;n=d+8|0;m=c[n>>2]|0;k=(WG(b,(c[d>>2]|0)+3+(da(m,e)|0)|0,m,g)|0)+k|0;m=c[l>>2]|0;n=c[n>>2]|0;b=(WG(b,(c[d>>2]|0)+3+(da(n,e+1|0)|0)|0,n,g)|0)+m|0;e=c[l>>2]|0;if((k|0)<(e|0)){j=6}else{n=c[d+16>>2]|0;if((b|0)<=(e|0)|(k|0)>(n|0)|(b|0)>(n|0)|(b|0)<(k|0)){j=6}}if((j|0)==6){a[g]=0}c[f>>2]=k;c[f+4>>2]=b-k;i=h;return}}while(0);a[g]=0;i=h;return}function bo(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0.0;j=i;g=i;i=i+8|0;l=i;i=i+72|0;p=d+1|0;o=SG(b,d,f)|0;do{if((o|0)==28){l=(SG(b,p,f)|0)<<8;l=l|(SG(b,d+2|0,f)|0);e=d+3|0;n=1;m=0;q=+(((l&32768|0)==0?l:l|-65536)|0)}else{m=e^1;if((o|0)==29&m){p=(SG(b,p,f)|0)<<8;p=(p|(SG(b,d+2|0,f)|0))<<8;p=(p|(SG(b,d+3|0,f)|0))<<8;e=d+5|0;n=1;m=0;q=+(p|(SG(b,d+4|0,f)|0)|0);break}if((o|0)==30&m){n=0;while(1){e=p+1|0;m=SG(b,p,f)|0;d=m>>4;m=m&15;if((d|0)==15){break}o=n+1|0;a[l+n|0]=a[53792+d|0]|0;if((o|0)==64){n=64;break}if((d|0)==12){a[l+o|0]=45;n=n+2|0}else{n=o}if((n|0)==64|(m|0)==15){break}d=n+1|0;a[l+n|0]=a[53792+m|0]|0;if((d|0)==64){n=64;break}if((m|0)==12){a[l+d|0]=45;n=n+2|0}else{n=d}if((n|0)<64){p=e}else{break}}a[l+n|0]=0;n=1;m=1;q=+Ie(l);break}if((o+ -32|0)>>>0<215){e=p;n=1;m=0;q=+(o+ -139|0);break}if((o+ -247|0)>>>0<4){e=d+2|0;n=1;m=0;q=+((o<<8)+ -63124+(SG(b,p,f)|0)|0);break}if((o+ -251|0)>>>0<4){e=d+2|0;n=1;m=0;q=+(64148-(o<<8)-(SG(b,p,f)|0)|0);break}if((o|0)==255&e){p=(SG(b,p,f)|0)<<8;p=(p|(SG(b,d+2|0,f)|0))<<8;p=(p|(SG(b,d+3|0,f)|0))<<8;e=d+5|0;n=1;m=1;q=+(p|(SG(b,d+4|0,f)|0)|0)*152587890625.0e-16;break}if((o|0)==12){e=(SG(b,p,f)|0)+3072|0;c[k>>2]=e;c[k+4>>2]=0;e=d+2|0;n=0;m=0;q=+h[k>>3];break}else{c[k>>2]=o;c[k+4>>2]=0;e=p;n=0;m=0;q=+h[k>>3];break}}}while(0);l=b+1144|0;f=c[l>>2]|0;if((f|0)>=49){i=j;return e|0}c[l>>2]=f+1;p=b+360+(f<<4)|0;a[p]=n;a[b+360+(f<<4)+1|0]=m;$W(p+2|0,g|0,6)|0;h[b+360+(f<<4)+8>>3]=q;i=j;return e|0}function co(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,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;F=i;Q=b+128|0;c[Q>>2]=-1;d=b+132|0;B=b+136|0;A=b+140|0;u=b+144|0;C=b+148|0;L=b+152|0;f=b+156|0;v=b+160|0;y=b+168|0;bX(d|0,0,36)|0;h[y>>3]=-100.0;D=b+176|0;h[D>>3]=50.0;x=b+184|0;c[x>>2]=0;M=b+188|0;c[M>>2]=2;m=b+192|0;h[m>>3]=.001;n=b+200|0;o=b+208|0;p=b+216|0;bX(n|0,0,16)|0;h[p>>3]=.001;q=b+224|0;r=b+232|0;s=b+240|0;K=b+244|0;G=b+248|0;H=b+256|0;I=b+264|0;J=b+272|0;g=b+280|0;w=b+288|0;P=b+292|0;E=b+296|0;N=b+300|0;O=b+304|0;j=b+308|0;k=b+312|0;l=b+316|0;z=b+320|0;t=b+324|0;e=b+352|0;bX(q|0,0,17)|0;bX(K|0,0,84)|0;if((c[b+52>>2]|0)<=0){a[e]=0;c[b+1144>>2]=0;i=F;return}S=b+60|0;Z=c[S>>2]|0;Y=b+48|0;_=b+56|0;Z=(WG(b,(c[Y>>2]|0)+3|0,c[_>>2]|0,e)|0)+Z|0;R=c[S>>2]|0;_=c[_>>2]|0;R=(WG(b,(c[Y>>2]|0)+3+_|0,_,e)|0)+R|0;S=c[S>>2]|0;if((Z|0)<(S|0)){T=5}else{_=c[b+64>>2]|0;if((R|0)<=(S|0)|(Z|0)>(_|0)|(R|0)>(_|0)|(R|0)<(Z|0)){T=5}}if((T|0)==5){a[e]=0}T=b+1144|0;c[T>>2]=0;if((R-Z|0)<=0){i=F;return}U=b+368|0;V=b+384|0;W=b+400|0;S=b+416|0;X=b+432|0;Y=b+448|0;while(1){Z=bo(b,Z,0,e)|0;if((a[e]&1)==0){T=38;break}_=(c[T>>2]|0)+ -1|0;if((a[b+360+(_<<4)|0]&1)==0){c[T>>2]=_;_=b+360+(_<<4)+8|0;if((c[Q>>2]|0)<0){c[Q>>2]=c[_>>2]}switch(c[_>>2]|0){case 3073:{c[f>>2]=~~+h[U>>3];break};case 3080:{h[g>>3]=+h[U>>3];break};case 3102:{c[j>>2]=~~+h[U>>3];c[k>>2]=~~+h[V>>3];c[l>>2]=~~+h[W>>3];break};case 3079:{h[m>>3]=+h[U>>3];h[n>>3]=+h[V>>3];h[o>>3]=+h[W>>3];h[p>>3]=+h[S>>3];h[q>>3]=+h[X>>3];h[r>>3]=+h[Y>>3];a[s]=1;break};case 3109:{c[t>>2]=~~+h[U>>3];break};case 2:{c[u>>2]=~~+h[U>>3];break};case 3074:{h[v>>3]=+h[U>>3];break};case 15:{c[w>>2]=~~+h[U>>3];break};case 3077:{c[x>>2]=~~+h[U>>3];break};case 3075:{h[y>>3]=+h[U>>3];break};case 3108:{c[z>>2]=~~+h[U>>3];break};case 3072:{c[A>>2]=~~+h[U>>3];break};case 1:{c[B>>2]=~~+h[U>>3];break};case 3:{c[C>>2]=~~+h[U>>3];break};case 3076:{h[D>>3]=+h[U>>3];break};case 17:{c[E>>2]=~~+h[U>>3];break};case 0:{c[d>>2]=~~+h[U>>3];break};case 5:{h[G>>3]=+h[U>>3];h[H>>3]=+h[V>>3];h[I>>3]=+h[W>>3];h[J>>3]=+h[S>>3];break};case 13:{c[K>>2]=~~+h[U>>3];break};case 4:{c[L>>2]=~~+h[U>>3];break};case 3078:{c[M>>2]=~~+h[U>>3];break};case 18:{c[N>>2]=~~+h[U>>3];c[O>>2]=~~+h[V>>3];break};case 16:{c[P>>2]=~~+h[U>>3];break};default:{}}c[T>>2]=0}if((Z|0)<(R|0)){}else{T=38;break}}if((T|0)==38){i=F;return}}function eo(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.0,O=0,P=0;g=i;a[f+48|0]=0;n=f+108|0;c[n>>2]=0;B=f+152|0;c[B>>2]=0;u=f+212|0;c[u>>2]=0;t=f+256|0;c[t>>2]=0;p=f+264|0;h[p>>3]=.039625;q=f+272|0;c[q>>2]=7;v=f+276|0;c[v>>2]=1;o=f+288|0;a[o]=0;s=f+304|0;a[s]=0;E=f+408|0;c[E>>2]=0;C=f+512|0;c[C>>2]=0;A=f+517|0;a[A]=0;z=f+520|0;h[z>>3]=0.0;r=f+528|0;c[r>>2]=0;m=f+536|0;h[m>>3]=.06;D=f+544|0;y=f+548|0;k=f+552|0;l=f+560|0;w=f+568|0;h[w>>3]=0.0;x=f+576|0;a[x]=0;bX(D|0,0,17)|0;if((d|0)==0|(e|0)==0){i=g;return}F=b+1144|0;c[F>>2]=0;j=b+352|0;G=e+d|0;if((e|0)<=0){i=g;return}K=b+368|0;H=f+280|0;I=f+296|0;J=f+516|0;e=b+361|0;L=d;while(1){L=bo(b,L,0,j)|0;if((a[j]&1)==0){j=40;break}M=(c[F>>2]|0)+ -1|0;if((a[b+360+(M<<4)|0]&1)==0){c[F>>2]=M;switch(c[b+360+(M<<4)+8>>2]|0){case 20:{h[k>>3]=+h[K>>3];a[l]=a[e]&1;break};case 3090:{h[m>>3]=+h[K>>3];break};case 6:{M=(M|0)>14?14:M;if((M|0)>0){O=0;P=0;do{P=~~+h[b+360+(O<<4)+8>>3]+P|0;c[f+52+(O<<2)>>2]=P;O=O+1|0;}while((O|0)<(M|0))}c[n>>2]=M;break};case 10:{h[H>>3]=+h[K>>3];a[o]=1;break};case 3081:{h[p>>3]=+h[K>>3];break};case 3082:{c[q>>2]=~~+h[K>>3];break};case 3089:{c[r>>2]=~~+h[K>>3];break};case 11:{h[I>>3]=+h[K>>3];a[s]=1;break};case 9:{O=(M|0)>10?10:M;if((O|0)>0){M=0;P=0;do{P=~~+h[b+360+(M<<4)+8>>3]+P|0;c[f+216+(M<<2)>>2]=P;M=M+1|0;}while((M|0)<(O|0))}c[t>>2]=O;break};case 8:{M=(M|0)>14?14:M;if((M|0)>0){O=0;P=0;do{P=~~+h[b+360+(O<<4)+8>>3]+P|0;c[f+156+(O<<2)>>2]=P;O=O+1|0;}while((O|0)<(M|0))}c[u>>2]=M;break};case 3083:{c[v>>2]=~~+h[K>>3];break};case 21:{h[w>>3]=+h[K>>3];a[x]=a[e]&1;break};case 19:{c[y>>2]=~~+h[K>>3]+d;break};case 3087:{h[z>>3]=+h[K>>3];break};case 3086:{a[J]=+h[K>>3]!=0.0|0;a[A]=1;break};case 7:{M=(M|0)>10?10:M;if((M|0)>0){O=0;P=0;do{P=~~+h[b+360+(O<<4)+8>>3]+P|0;c[f+112+(O<<2)>>2]=P;O=O+1|0;}while((O|0)<(M|0))}c[B>>2]=M;break};case 3085:{M=(M|0)>12?12:M;if((M|0)>0){O=0;N=0.0;do{N=N+ +h[b+360+(O<<4)+8>>3];h[f+416+(O<<3)>>3]=N;O=O+1|0;}while((O|0)<(M|0))}c[C>>2]=M;break};case 3091:{c[D>>2]=~~+h[K>>3];break};case 3084:{M=(M|0)>12?12:M;if((M|0)>0){O=0;N=0.0;do{N=N+ +h[b+360+(O<<4)+8>>3];h[f+312+(O<<3)>>3]=N;O=O+1|0;}while((O|0)<(M|0))}c[E>>2]=M;break};default:{}}c[F>>2]=0}if((L|0)<(G|0)){}else{j=40;break}}if((j|0)==40){i=g;return}}function fo(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0,q=0,r=0.0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;j=i;q=b+1144|0;c[q>>2]=0;u=e+d|0;v=b+352|0;e=b+368|0;w=b+384|0;x=b+400|0;y=b+416|0;s=b+432|0;t=b+448|0;k=0.0;l=0.0;r=0.0;m=0.0;n=0.0;o=0.0;p=0;a:while(1){do{if((d|0)>=(u|0)){q=0;e=0;break a}d=bo(b,d,0,v)|0;if((a[v]&1)==0){g=14;break a}z=c[q>>2]|0;A=z+ -1|0;}while((a[b+360+(A<<4)|0]&1)!=0);A=c[b+360+(A<<4)+8>>2]|0;if((A|0)==18){g=7;break}else if((A|0)==3079){k=+h[e>>3];l=+h[w>>3];r=+h[x>>3];m=+h[y>>3];n=+h[s>>3];o=+h[t>>3];p=1}c[q>>2]=0}if((g|0)==14){i=j;return}do{if((g|0)==7){if((z|0)>=3){q=~~+h[w>>3];e=~~+h[e>>3];break}a[v]=0;i=j;return}}while(0);eo(b,q,e,f);if(!p){i=j;return}h[f>>3]=k;h[f+8>>3]=l;h[f+16>>3]=r;h[f+24>>3]=m;h[f+32>>3]=n;h[f+40>>3]=o;a[f+48|0]=1;i=j;return}function go(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+332|0;g=we(c[e>>2]|0)|0;f=b+340|0;c[f>>2]=g;l=c[b+324>>2]|0;if((l|0)==0){if((c[e>>2]|0)>0){b=0}else{i=d;return}while(1){a[g+b|0]=0;b=b+1|0;if((b|0)>=(c[e>>2]|0)){break}g=c[f>>2]|0}i=d;return}j=l+1|0;g=b+352|0;h=SG(b,l,g)|0;if((a[g]&1)==0){i=d;return}if((h|0)==0){if(XG(b,j,c[e>>2]|0)|0){$W(c[f>>2]|0,(c[b+8>>2]|0)+j|0,c[e>>2]|0)|0;i=d;return}else{a[g]=0;i=d;return}}else if((h|0)==3){h=UG(b,j,g)|0;k=UG(b,l+3|0,g)|0;if((h|0)<1){i=d;return}j=1;m=l+5|0;while(1){n=SG(b,m,g)|0;l=UG(b,m+1|0,g)|0;if((a[g]&1)==0){e=22;break}m=m+3|0;if((k|0)>(l|0)){e=18;break}if((l|0)>(c[e>>2]|0)){e=18;break}if((k|0)<(l|0)){n=n&255;do{a[(c[f>>2]|0)+k|0]=n;k=k+1|0;}while((k|0)<(l|0))}if((j|0)<(h|0)){j=j+1|0;k=l}else{e=22;break}}if((e|0)==18){a[g]=0;i=d;return}else if((e|0)==22){i=d;return}}else{if((c[e>>2]|0)>0){b=0}else{i=d;return}do{a[(c[f>>2]|0)+b|0]=0;b=b+1|0;}while((b|0)<(c[e>>2]|0));i=d;return}}function ho(d){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=d+288|0;f=c[h>>2]|0;if((f|0)==2){c[d+344>>2]=201472;o=1;i=e;return o|0}else if((f|0)==0){c[d+344>>2]=200672;o=1;i=e;return o|0}else if((f|0)==1){c[d+344>>2]=201136;o=1;i=e;return o|0}else{f=d+332|0;j=ye(c[f>>2]|0,2)|0;g=d+344|0;c[g>>2]=j;a:do{if((c[f>>2]|0)>0){k=0;while(1){b[j+(k<<1)>>1]=0;k=k+1|0;if((k|0)>=(c[f>>2]|0)){break a}j=c[g>>2]|0}}}while(0);j=c[h>>2]|0;k=j+1|0;h=d+352|0;j=SG(d,j,h)|0;b:do{if((j|0)==0){if((c[f>>2]|0)>1){j=1}else{break}while(1){o=(UG(d,k,h)|0)&65535;b[(c[g>>2]|0)+(j<<1)>>1]=o;if((a[h]&1)==0){break b}j=j+1|0;if((j|0)<(c[f>>2]|0)){k=k+2|0}else{break}}}else if((j|0)==1){if((c[f>>2]|0)>1){l=1}else{break}while(1){m=UG(d,k,h)|0;j=k+3|0;k=SG(d,k+2|0,h)|0;if((a[h]&1)==0){break b}c:do{if((k|0)>=0){o=0;while(1){if((l|0)>=(c[f>>2]|0)){break c}n=l+1|0;b[(c[g>>2]|0)+(l<<1)>>1]=m;if((o|0)<(k|0)){m=m+1|0;l=n;o=o+1|0}else{l=n;break}}}}while(0);if((l|0)<(c[f>>2]|0)){k=j}else{break}}}else if((j|0)==2){if((c[f>>2]|0)>1){m=1}else{break}do{l=UG(d,k,h)|0;j=UG(d,k+2|0,h)|0;k=k+4|0;if((a[h]&1)==0){break b}d:do{if((j|0)>=0){o=0;while(1){if((m|0)>=(c[f>>2]|0)){break d}n=m+1|0;b[(c[g>>2]|0)+(m<<1)>>1]=l;if((o|0)<(j|0)){l=l+1|0;m=n;o=o+1|0}else{m=n;break}}}}while(0);}while((m|0)<(c[f>>2]|0))}}while(0);if((a[h]&1)!=0){o=1;i=e;return o|0}Fe(c[g>>2]|0);c[g>>2]=0;o=0;i=e;return o|0}return 0}function io(d){d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;e=i;h=i;i=i+8|0;g=h;o=i;i=i+8|0;n=o;p=i;i=i+8|0;q=p;f=i;i=i+256|0;j=f;l=d+292|0;k=c[l>>2]|0;if((k|0)==1){c[d+24>>2]=197136;i=e;return}else if((k|0)==0){c[d+24>>2]=193784;i=e;return}else{m=ye(256,4)|0;k=d+24|0;c[k>>2]=m;r=0;while(1){c[m+(r<<2)>>2]=0;r=r+1|0;if((r|0)>=256){break}m=c[k>>2]|0}x=c[l>>2]|0;v=x+1|0;l=d+352|0;m=SG(d,x,l)|0;if((a[l]&1)==0){i=e;return}r=m&127;a:do{if((r|0)==1){q=SG(d,v,l)|0;if((a[l]&1)==0){i=e;return}v=x+2|0;if((q|0)<=0){break}r=d+332|0;u=d+344|0;p=d+68|0;s=n+4|0;t=d+8|0;w=0;y=1;while(1){A=SG(d,v,l)|0;x=SG(d,x+3|0,l)|0;if((a[l]&1)==0){break}b:do{if((x|0)>=0){z=0;while(1){if((y|0)>=(c[r>>2]|0)){break b}if((A|0)<256){B=c[(c[k>>2]|0)+(A<<2)>>2]|0;if((B|0)!=0){Fe(B)}C=b[(c[u>>2]|0)+(y<<1)>>1]|0;B=C&65535;do{if((C&65535)<391){eX(j|0,c[199104+(B<<2)>>2]|0)|0}else{ao(d,p,B+ -391|0,n,l);if((a[l]&1)==0){a[f]=0;break}else{B=c[s>>2]|0;C=(B|0)>255?255:B;hX(j|0,(c[t>>2]|0)+(c[o>>2]|0)|0,C|0)|0;a[j+C|0]=0;break}}}while(0);C=Ge(j)|0;c[(c[k>>2]|0)+(A<<2)>>2]=C}y=y+1|0;if((z|0)>=(x|0)){break b}A=A+1|0;z=z+1|0}}}while(0);w=w+1|0;x=v+2|0;if((w|0)<(q|0)){C=v;v=x;x=C}else{v=x;break a}}i=e;return}else if((r|0)==0){n=SG(d,v,l)|0;if((a[l]&1)==0){i=e;return}v=x+2|0;o=c[d+332>>2]|0;n=(n|0)<(o|0)?n+1|0:o;if((n|0)<=1){break}s=d+344|0;o=d+68|0;t=q+4|0;r=d+8|0;w=1;while(1){u=v+1|0;v=SG(d,v,l)|0;if((a[l]&1)==0){break}x=c[(c[k>>2]|0)+(v<<2)>>2]|0;if((x|0)!=0){Fe(x)}C=b[(c[s>>2]|0)+(w<<1)>>1]|0;x=C&65535;do{if((C&65535)<391){eX(j|0,c[199104+(x<<2)>>2]|0)|0}else{ao(d,o,x+ -391|0,q,l);if((a[l]&1)==0){a[f]=0;break}else{x=c[t>>2]|0;C=(x|0)>255?255:x;hX(j|0,(c[r>>2]|0)+(c[p>>2]|0)|0,C|0)|0;a[j+C|0]=0;break}}}while(0);C=Ge(j)|0;c[(c[k>>2]|0)+(v<<2)>>2]=C;w=w+1|0;if((w|0)<(n|0)){v=u}else{v=u;break a}}i=e;return}}while(0);if((m&128|0)==0){i=e;return}p=SG(d,v,l)|0;if(!((a[l]&1)!=0&(p|0)>0)){i=e;return}m=d+68|0;n=g+4|0;o=d+8|0;q=0;r=v+1|0;while(1){s=SG(d,r,l)|0;if((a[l]&1)==0){d=52;break}t=UG(d,r+1|0,l)|0;r=r+3|0;if((a[l]&1)==0){d=52;break}u=c[(c[k>>2]|0)+(s<<2)>>2]|0;if((u|0)!=0){Fe(u)}do{if((t|0)<391){eX(j|0,c[199104+(t<<2)>>2]|0)|0}else{ao(d,m,t+ -391|0,g,l);if((a[l]&1)==0){a[f]=0;break}else{t=c[n>>2]|0;C=(t|0)>255?255:t;hX(j|0,(c[o>>2]|0)+(c[h>>2]|0)|0,C|0)|0;a[j+C|0]=0;break}}}while(0);C=Ge(j)|0;c[(c[k>>2]|0)+(s<<2)>>2]=C;q=q+1|0;if((q|0)>=(p|0)){d=52;break}}if((d|0)==52){i=e;return}}}function jo(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;a[b]=d&1;d=b+4|0;c[d>>2]=7;g=ye(7,4)|0;f=b+12|0;c[f>>2]=g;if((c[d>>2]|0)>0){h=0}else{h=b+8|0;c[h>>2]=0;i=e;return}while(1){c[g+(h<<2)>>2]=0;h=h+1|0;if((h|0)>=(c[d>>2]|0)){break}g=c[f>>2]|0}h=b+8|0;c[h>>2]=0;i=e;return}function ko(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;f=b+4|0;h=c[f>>2]|0;e=b+12|0;if((h|0)<=0){l=c[e>>2]|0;Fe(l);i=d;return}j=c[e>>2]|0;g=0;do{k=j+(g<<2)|0;l=c[k>>2]|0;if((l|0)!=0){h=l;do{c[k>>2]=c[h+8>>2];do{if((a[b]&1)!=0){j=c[h>>2]|0;if((j|0)==0){break}ke(j);HW(j)}}while(0);HW(h);j=c[e>>2]|0;k=j+(g<<2)|0;h=c[k>>2]|0;}while((h|0)!=0);h=c[f>>2]|0}g=g+1|0;}while((g|0)<(h|0));Fe(j);i=d;return}function lo(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 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=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 Lo(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;e=b+4|0;g=c[e>>2]|0;f=c[g+144>>2]|0;if((f|0)!=0){do{c[e>>2]=f;if((g|0)==0){g=f}else{Kq(g);HW(g);g=c[e>>2]|0}f=c[g+144>>2]|0;}while((f|0)!=0)}if((g|0)!=0){Kq(g);HW(g)}if((a[b+188|0]&1)==0){i=d;return}b=c[b+8>>2]|0;if((b|0)==0){i=d;return}Le(b);HW(b);i=d;return}function Mo(a){a=a|0;var b=0,d=0,e=0;b=i;d=a+4|0;e=c[d>>2]|0;a=c[e+144>>2]|0;if((a|0)==0){e=4;i=b;return e|0}c[d>>2]=a;if((e|0)==0){e=0;i=b;return e|0}Kq(e);HW(e);e=0;i=b;return e|0}function No(a){a=a|0;i=i;return c[a+4>>2]|0}function Oo(a){a=a|0;i=i;return c[(c[a+4>>2]|0)+56>>2]|0}function Po(a,b){a=a|0;b=b|0;var d=0;d=i;$W(c[a+4>>2]|0,b|0,48)|0;i=d;return}function Qo(a,b){a=a|0;b=b|0;var d=0;d=i;Lq(c[a+4>>2]|0,b);i=d;return}function Ro(a,b){a=a|0;b=b|0;var d=0;d=i;Mq(c[a+4>>2]|0,b);i=d;return}function So(a,b){a=a|0;b=b|0;c[(c[a+4>>2]|0)+60>>2]=b;i=i;return}function To(a,b){a=a|0;b=+b;h[(c[a+4>>2]|0)+64>>3]=b;i=i;return}function Uo(a,b){a=a|0;b=+b;h[(c[a+4>>2]|0)+72>>3]=b;i=i;return}function Vo(a,b){a=a|0;b=+b;h[(c[a+4>>2]|0)+80>>3]=b;i=i;return}function Wo(a,b){a=a|0;b=b|0;c[(c[a+4>>2]|0)+88>>2]=b;i=i;return}function Xo(a,b){a=a|0;b=b|0;c[(c[a+4>>2]|0)+92>>2]=b;i=i;return}function Yo(a,b){a=a|0;b=+b;h[(c[a+4>>2]|0)+96>>3]=b;i=i;return}function Zo(a,b){a=a|0;b=+b;h[(c[a+4>>2]|0)+104>>3]=b<1.0?1.0:b;i=i;return}function _o(a,b,d,e){a=a|0;b=b|0;d=d|0;e=+e;var f=0;f=i;Nq(c[a+4>>2]|0,b,d,e);i=f;return}function $o(b,d){b=b|0;d=d|0;a[(c[b+4>>2]|0)+128|0]=d&1;i=i;return}function ap(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;a=c[a+4>>2]|0;a=Ip(c[a+132>>2]|0,b,a,+h[a+104>>3],d)|0;i=e;return a|0}function bp(a,b){a=a|0;b=b|0;var d=0;d=i;Oq(c[a+4>>2]|0,b);i=d;return}function cp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;c[b+16>>2]=d;c[b+20>>2]=e;c[b+24>>2]=f;a[(c[b+4>>2]|0)+141|0]=1;i=i;return}function dp(a){a=a|0;var b=0,d=0,e=0;b=i;a=a+4|0;e=c[a>>2]|0;d=FW(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=FW(32)|0;gq(k);o=+h[(c[g>>2]|0)+80>>3];l=f+8|0;if(((c[l>>2]|0)+ -1|0)>0){b=f+4|0;n=o*.5;m=k+8|0;o=o*.276142375;z=0;G=0;u=0;t=0;p=0;v=0;r=0;w=0;x=0;q=0;s=0;y=0;while(1){B=c[b>>2]|0;A=d[B+u|0]|0;do{if((A&2|0)==0){I=(A&1|0)!=0;if(I){z=(A&4|0)!=0;y=u}A=u+1|0;B=(a[B+A|0]&2)!=0;J=c[f>>2]|0;S=+h[J+(u<<4)>>3];U=+h[J+(u<<4)+8>>3];N=+h[J+(A<<4)>>3];L=+h[J+(A<<4)+8>>3];D=N-S;C=L-U;F=+T(+(D*D+C*C));if(F==0.0){F=0.0;H=1.0}else{H=1.0/F;F=D*H;H=C*H}C=n*F;D=n*H;E=y+1|0;X=B?E:u+2|0;N=+h[J+(X<<4)>>3]-N;L=+h[J+(X<<4)+8>>3]-L;O=+T(+(N*N+L*L));if(O==0.0){N=0.0;P=1.0}else{P=1.0/O;N=N*P;P=L*P}O=n*N;L=n*P;jq(k,S-D,C+U)|0;M=(u|0)==(y|0);if(M){J=(c[m>>2]|0)+ -1|0}else{J=G}do{if(z|I^1){X=c[f>>2]|0;kq(k,D+ +h[X+(u<<4)>>3],+h[X+(u<<4)+8>>3]-C)|0}else{G=c[(c[g>>2]|0)+88>>2]|0;if((G|0)==2){X=c[f>>2]|0;kq(k,+h[X+(u<<4)>>3]-C-D,C+ +h[X+(u<<4)+8>>3]-D)|0;X=c[f>>2]|0;kq(k,D+(+h[X+(u<<4)>>3]-C),+h[X+(u<<4)+8>>3]-C-D)|0;X=c[f>>2]|0;kq(k,D+ +h[X+(u<<4)>>3],+h[X+(u<<4)+8>>3]-C)|0;break}else if((G|0)==0){X=c[f>>2]|0;kq(k,D+ +h[X+(u<<4)>>3],+h[X+(u<<4)+8>>3]-C)|0;break}else if((G|0)==1){X=c[f>>2]|0;V=+h[X+(u<<4)>>3];Y=C*.55228475;U=+h[X+(u<<4)+8>>3];S=D*.55228475;Z=V-C;_=U-D;lq(k,V-D-Y,C+U-S,Z-S,Y+_,Z,_)|0;X=c[f>>2]|0;_=+h[X+(u<<4)>>3];Z=+h[X+(u<<4)+8>>3];U=D+_;V=Z-C;lq(k,S+(_-C),Z-D-Y,U-Y,V-S,U,V)|0;break}else{break}}}while(0);Q=c[m>>2]|0;I=Q+ -1|0;W=c[f>>2]|0;kq(k,D+ +h[W+(A<<4)>>3],+h[W+(A<<4)+8>>3]-C)|0;W=z|B^1;do{if(W){X=c[f>>2]|0;kq(k,+h[X+(A<<4)>>3]-D,C+ +h[X+(A<<4)+8>>3])|0}else{G=c[(c[g>>2]|0)+88>>2]|0;if((G|0)==2){X=c[f>>2]|0;kq(k,C+(D+ +h[X+(A<<4)>>3]),D+(+h[X+(A<<4)+8>>3]-C))|0;X=c[f>>2]|0;kq(k,C+(+h[X+(A<<4)>>3]-D),D+(C+ +h[X+(A<<4)+8>>3]))|0;X=c[f>>2]|0;kq(k,+h[X+(A<<4)>>3]-D,C+ +h[X+(A<<4)+8>>3])|0;break}else if((G|0)==0){X=c[f>>2]|0;kq(k,+h[X+(A<<4)>>3]-D,C+ +h[X+(A<<4)+8>>3])|0;break}else if((G|0)==1){X=c[f>>2]|0;_=+h[X+(A<<4)>>3];V=C*.55228475;Z=+h[X+(A<<4)+8>>3];Y=D*.55228475;U=C+_;S=D+Z;lq(k,V+(D+_),Y+(Z-C),Y+U,S-V,U,S)|0;X=c[f>>2]|0;S=+h[X+(A<<4)>>3];U=+h[X+(A<<4)+8>>3];Z=S-D;_=C+U;lq(k,C+S-Y,V+(D+U),V+Z,Y+_,Z,_)|0;break}else{break}}}while(0);R=c[m>>2]|0;G=R+ -1|0;mq(k)|0;K=c[m>>2]|0;if(W){S=H*P+F*N;if(S<-.99999){W=c[g>>2]|0;U=+h[W+96>>3]+1.0;S=0.0;U=U*U}else{S=2.0/(S+1.0);U=S<1.0?1.0:S;S=+T(+(U+-1.0));W=c[g>>2]|0}X=c[f>>2]|0;V=+h[X+(A<<4)>>3];a:do{if((c[W+92>>2]|0)==1){jq(k,n+V,+h[X+(A<<4)+8>>3])|0;X=c[f>>2]|0;_=+h[X+(A<<4)>>3];Z=+h[X+(A<<4)+8>>3];Y=n+Z;lq(k,n+_,o+Z,o+_,Y,_,Y)|0;X=c[f>>2]|0;Y=+h[X+(A<<4)>>3];_=+h[X+(A<<4)+8>>3];Z=Y-n;lq(k,Y-o,n+_,Z,o+_,Z,_)|0;X=c[f>>2]|0;_=+h[X+(A<<4)>>3];Z=+h[X+(A<<4)+8>>3];Y=Z-n;lq(k,_-n,Z-o,_-o,Y,_,Y)|0;X=c[f>>2]|0;Y=+h[X+(A<<4)>>3];_=+h[X+(A<<4)+8>>3];Z=n+Y;lq(k,o+Y,_-n,Z,_-o,Z,_)|0}else{jq(k,V,+h[X+(A<<4)+8>>3])|0;W=c[f>>2]|0;V=+h[W+(A<<4)>>3];if(F*P-H*N<0.0){kq(k,V-L,O+ +h[W+(A<<4)+8>>3])|0;W=c[g>>2]|0;do{if((c[W+92>>2]|0)==0){_=+T(+U);if(_>+h[W+96>>3]){break}X=c[f>>2]|0;kq(k,C*S+(+h[X+(A<<4)>>3]-D),D*S+(C+ +h[X+(A<<4)+8>>3]))|0;X=c[f>>2]|0;kq(k,+h[X+(A<<4)>>3]-D,C+ +h[X+(A<<4)+8>>3])|0;break a}}while(0);X=c[f>>2]|0;kq(k,+h[X+(A<<4)>>3]-D,C+ +h[X+(A<<4)+8>>3])|0;break}else{kq(k,D+V,+h[W+(A<<4)+8>>3]-C)|0;W=c[g>>2]|0;do{if((c[W+92>>2]|0)==0){_=+T(+U);if(_>+h[W+96>>3]){break}X=c[f>>2]|0;kq(k,C*S+(D+ +h[X+(A<<4)>>3]),D*S+(+h[X+(A<<4)+8>>3]-C))|0;X=c[f>>2]|0;kq(k,L+ +h[X+(A<<4)>>3],+h[X+(A<<4)+8>>3]-O)|0;break a}}while(0);X=c[f>>2]|0;kq(k,L+ +h[X+(A<<4)>>3],+h[X+(A<<4)+8>>3]-O)|0;break}}}while(0);mq(k)|0}if((a[(c[g>>2]|0)+128|0]&1)==0){u=A;break}if((u|0)>=(E|0)){if((u|0)<(y+2|0)){nq(k,r,q,J,I)}else{nq(k,r,q,v+1|0,x);nq(k,r,q,t,I)}nq(k,r,q,R,R)}w=M?I:w;s=M?G:s;if(!B){u=A;t=p;p=K;v=r;r=I;x=q;q=G;break}if((u|0)<(y+2|0)){nq(k,I,G,J,(c[m>>2]|0)+ -1|0)}else{nq(k,I,G,r+1|0,q);nq(k,I,G,p,(c[m>>2]|0)+ -1|0)}if(!z){u=A;z=0;t=p;p=K;v=r;r=I;x=q;q=G;break}nq(k,I,G,J,w);u=s+1|0;nq(k,I,G,u,u);nq(k,w,s,Q,G);nq(k,w,s,K,(c[m>>2]|0)+ -1|0);u=A;z=1;t=p;p=K;v=r;r=I;x=q;q=G}else{u=u+1|0;J=G}}while(0);if((u|0)<((c[l>>2]|0)+ -1|0)){G=J}else{break}}}if((f|0)==(e|0)|(f|0)==0){i=j;return k|0}hq(f);HW(f);i=j;return k|0}function mp(b,d,e,f,g){b=b|0;d=d|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,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;o=i;j=i;i=i+80|0;s=i;i=i+8|0;u=i;i=i+8|0;v=i;i=i+8|0;k=i;i=i+8|0;r=i;i=i+8|0;l=r;q=i;i=i+8|0;m=q;if((c[d+8>>2]|0)==0){B=2;i=o;return B|0}n=FW(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=FW(52)|0;$q(d,n,e);if((a[t]&1)==0){B=c[d+8>>2]|0;c[s>>2]=B;w=c[d+12>>2]|0;c[u>>2]=w;s=c[d+16>>2]|0;c[v>>2]=s;e=c[d+20>>2]|0;c[k>>2]=e;v=s;s=B}else{br(d,s,u,v,k);e=c[k>>2]|0;v=c[v>>2]|0;w=c[u>>2]|0;s=c[s>>2]|0}s=Jp(c[(c[p>>2]|0)+132>>2]|0,s,w,v,e)|0;a:do{if((s|0)!=1){x=c[u>>2]|0;v=(c[p>>2]|0)+132|0;w=c[v>>2]|0;e=c[w+44>>2]|0;if((x|0)<(e|0)){c[u>>2]=e;w=c[v>>2]|0}else{e=x}v=c[w+52>>2]|0;if((c[k>>2]|0)>(v|0)){c[k>>2]=v}jp(b,j,0,e,f,0,g,(a[t]&1)!=0,0);w=c[u>>2]|0;f=(w|0)>(c[k>>2]|0);if((a[t]&1)!=0){if(f){break}f=b+8|0;t=(s|0)==0;while(1){hr(d,c[f>>2]|0,l,m,w);if(!t){Lp(c[(c[p>>2]|0)+132>>2]|0,c[f>>2]|0,l,m,w)}pp(b,j,c[r>>2]|0,c[q>>2]|0,w);if((w|0)<(c[k>>2]|0)){w=w+1|0}else{break a}}}if(f){break}u=(s|0)==0;e=b+168|0;v=b+176|0;f=b+172|0;t=b+180|0;while(1){if(fr(d,w,l,m)|0){do{x=c[r>>2]|0;do{if(u){y=c[q>>2]|0;tp(b,j,x,w);if((x|0)<=(y|0)){z=x;while(1){up(b,j);if((z|0)<(y|0)){z=z+1|0}else{break}}}z=c[e>>2]|0;if((z|0)>(x|0)){c[e>>2]=x;z=x}A=c[v>>2]|0;if((A|0)<(x|0)){c[v>>2]=x}else{x=A}if((z|0)>(y|0)){c[e>>2]=y}if((x|0)<(y|0)){c[v>>2]=y}if((c[f>>2]|0)>(w|0)){c[f>>2]=w}if((c[t>>2]|0)>=(w|0)){break}c[t>>2]=w}else{y=(c[p>>2]|0)+132|0;z=c[y>>2]|0;A=c[z+40>>2]|0;if((x|0)<(A|0)){c[r>>2]=A;x=A;z=c[y>>2]|0}B=c[q>>2]|0;A=c[z+48>>2]|0;if((B|0)>(A|0)){c[q>>2]=A;z=c[y>>2]|0}else{A=B}B=Kp(z,x,A,w)|0;kp(b,j,c[r>>2]|0,c[q>>2]|0,w,(B|0)==0)}}while(0);}while(fr(d,w,l,m)|0)}if((w|0)<(c[k>>2]|0)){w=w+1|0}else{break}}}}while(0);c[b+184>>2]=s;if((d|0)!=0){ar(d);HW(d)}if((n|0)==0){B=0;i=o;return B|0}Uq(n);HW(n);B=0;i=o;return B|0}function np(a,b,d,e,f,g,j,k,l,m,n,o){a=a|0;b=+b;d=+d;e=+e;f=+f;g=+g;j=+j;k=+k;l=+l;m=m|0;n=+n;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0.0,y=0.0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0.0,H=0.0,I=0.0,J=0.0,K=0.0,L=0.0,M=0,N=0.0,O=0.0,P=0,Q=0;r=i;s=i;i=i+24600|0;a=s;B=i;i=i+24600|0;p=B;w=i;i=i+4104|0;q=w;h[s>>3]=b;h[B>>3]=d;h[a+8>>3]=e;h[p+8>>3]=f;h[a+16>>3]=g;h[p+16>>3]=j;h[a+24576>>3]=k;h[p+24576>>3]=l;c[w>>2]=1024;w=m+16|0;B=m+32|0;s=m+8|0;t=m+24|0;u=m+40|0;v=0;while(1){z=a+(v*24|0)|0;A=p+(v*24|0)|0;P=a+(v*24|0)+8|0;C=p+(v*24|0)+8|0;D=a+(v*24|0)+16|0;E=p+(v*24|0)+16|0;F=q+(v<<2)|0;H=+h[m>>3];I=+h[w>>3];G=+h[B>>3];K=+h[s>>3];L=+h[t>>3];J=+h[u>>3];while(1){y=+h[z>>3];l=+h[A>>3];x=+h[P>>3];k=+h[C>>3];j=+h[D>>3];g=+h[E>>3];M=c[F>>2]|0;N=+h[a+(M*24|0)>>3];O=+h[p+(M*24|0)>>3];f=(y+N)*.5;b=(l+O)*.5;d=G+(H*f+I*b);b=J+(f*K+b*L);f=G+(x*H+k*I)-d;e=J+(x*K+k*L)-b;d=G+(j*H+g*I)-d;b=J+(j*K+g*L)-b;if((M-v|0)==1){break}if(!(f*f+e*e>n|d*d+b*b>n)){break}e=(y+x)*.5;f=(l+k)*.5;x=(x+j)*.5;y=(k+g)*.5;k=(e+x)*.5;l=(f+y)*.5;N=(j+N)*.5;O=(g+O)*.5;x=(x+N)*.5;y=(y+O)*.5;Q=(M+v|0)/2|0;h[P>>3]=e;h[C>>3]=f;h[D>>3]=k;h[E>>3]=l;c[F>>2]=Q;h[a+(Q*24|0)>>3]=(k+x)*.5;h[p+(Q*24|0)>>3]=(l+y)*.5;h[a+(Q*24|0)+8>>3]=x;h[p+(Q*24|0)+8>>3]=y;h[a+(Q*24|0)+16>>3]=N;h[p+(Q*24|0)+16>>3]=O;c[q+(Q<<2)>>2]=M}kq(o,N,O)|0;if((M|0)<1024){v=M}else{break}}i=r;return}function op(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0.0,s=0.0;l=i;j=i;i=i+40|0;g=j;m=i;i=i+8|0;do{if((a[b+189|0]&1)!=0){c[m>>2]=f&1;Kb(53976,m|0)|0;m=e+8|0;if((c[m>>2]|0)<=0){break}n=e+4|0;o=0;do{p=c[e>>2]|0;s=+h[p+(o<<4)>>3];r=+h[p+(o<<4)+8>>3];p=d[(c[n>>2]|0)+o|0]|0;c[j>>2]=o;q=g+4|0;h[k>>3]=s;c[q>>2]=c[k>>2];c[q+4>>2]=c[k+4>>2];q=g+12|0;h[k>>3]=r;c[q>>2]=c[k>>2];c[q+4>>2]=c[k+4>>2];c[g+20>>2]=(p&1|0)!=0?54576:54584;c[g+24>>2]=(p&2|0)!=0?54592:54584;c[g+28>>2]=(p&4|0)!=0?54600:54584;c[g+32>>2]=(p&8|0)!=0?54608:54584;Kb(54544,g|0)|0;o=o+1|0;}while((o|0)<(c[m>>2]|0))}}while(0);q=c[b+4>>2]|0;q=mp(b,e,f,c[q+52>>2]|0,+h[q+72>>3])|0;i=l;return q|0}function pp(b,e,f,g,j){b=b|0;e=e|0;f=f|0;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;q=i;A=c[b+8>>2]|0;z=c[A+20>>2]|0;x=f>>1;A=c[A+12>>2]|0;w=A+x|0;B=w+A|0;tp(b,e,f,j);if((f|0)>(g|0)){i=q;return}k=b+4|0;t=e+52|0;s=e+36|0;v=e+48|0;u=e+44|0;r=e+40|0;l=e+56|0;m=b+168|0;n=b+176|0;o=b+172|0;p=b+180|0;y=z+x|0;x=z+w|0;w=z+B|0;C=z+(B+A)|0;while(1){D=d[y]|0;if((f&1|0)==0){A=x;z=w;B=C;w=(c[54680+((d[x]|0)>>>4<<2)>>2]|0)+(c[54680+(D>>>4<<2)>>2]|0)+(c[54680+((d[w]|0)>>>4<<2)>>2]|0)+(c[54680+((d[C]|0)>>>4<<2)>>2]|0)|0}else{y=y+1|0;A=x+1|0;z=w+1|0;B=C+1|0;w=(c[54680+((a[x]&15)<<2)>>2]|0)+(c[54680+((D&15)<<2)>>2]|0)+(c[54680+((a[w]&15)<<2)>>2]|0)+(c[54680+((a[C]&15)<<2)>>2]|0)|0}do{if((w|0)==0){c[e>>2]=(c[e>>2]|0)+1;if((c[(c[k>>2]|0)+136>>2]|0)!=0){c[r>>2]=(c[r>>2]|0)+1}a:do{switch(c[(c[b>>2]|0)+16>>2]|0){case 3:case 2:{c[u>>2]=(c[u>>2]|0)+3;break};case 1:{c[u>>2]=(c[u>>2]|0)+1;break};case 4:{c[u>>2]=(c[u>>2]|0)+4;break};case 0:{D=c[v>>2]>>1;c[v>>2]=D;if((D|0)!=0){break a}c[v>>2]=128;c[u>>2]=(c[u>>2]|0)+1;break};default:{}}}while(0);w=c[t>>2]|0;if((w|0)!=0){c[t>>2]=w+1}w=c[s>>2]|0;if((w|0)==0){break}c[s>>2]=w+1}else{h[l>>3]=+h[b+32+(w<<3)>>3];up(b,e);if((c[m>>2]|0)>(f|0)){c[m>>2]=f}if((c[n>>2]|0)<(f|0)){c[n>>2]=f}if((c[o>>2]|0)>(j|0)){c[o>>2]=j}if((c[p>>2]|0)>=(j|0)){break}c[p>>2]=j}}while(0);if((f|0)<(g|0)){x=A;w=z;C=B;f=f+1|0}else{break}}i=q;return}function qp(b,d,e,f,g){b=b|0;d=+d;e=+e;f=f|0;g=g|0;var j=0,l=0,m=0,n=0,o=0,p=0.0,q=0;l=i;o=i;i=i+32|0;n=o;j=i;i=i+32|0;m=i;i=i+8|0;if((a[b+189|0]&1)!=0){q=o;h[k>>3]=d;c[q>>2]=c[k>>2];c[q+4>>2]=c[k+4>>2];q=n+8|0;h[k>>3]=e;c[q>>2]=c[k>>2];c[q+4>>2]=c[k+4>>2];c[n+16>>2]=f;c[n+20>>2]=f;c[n+24>>2]=f;Kb(53992,n|0)|0}n=c[b+4>>2]|0;p=+h[n+32>>3]+(+h[n>>3]*d+ +h[n+16>>3]*e);e=+h[n+40>>3]+(+h[n+8>>3]*d+ +h[n+24>>3]*e);if(p>0.0){d=p}else{d=+R(+p)}o=~~d;p=(p- +(o|0))*4.0;if(p<=0.0){p=+R(+p)}if(e>0.0){d=e}else{d=+R(+e)}q=~~d;e=(e- +(q|0))*4.0;if(e<=0.0){e=+R(+e)}if(!(Fd[c[(c[g>>2]|0)+8>>2]&7](g,f,~~p,~~e,j,o,q,c[n+132>>2]|0,m)|0)){q=6;i=l;return q|0}g=c[m>>2]|0;if((g|0)==1){m=1}else{rp(b,o,q,j,(g|0)==0);m=c[m>>2]|0}c[b+184>>2]=m;if((a[j+24|0]&1)==0){q=0;i=l;return q|0}Fe(c[j+20>>2]|0);q=0;i=l;return q|0}function rp(b,e,f,g,j){b=b|0;e=e|0;f=f|0;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.0;k=i;m=i;i=i+80|0;l=m;q=c[g+20>>2]|0;e=e-(c[g>>2]|0)|0;f=f-(c[g+4>>2]|0)|0;p=g+8|0;r=c[p>>2]|0;n=c[g+12>>2]|0;if((f|0)<0){q=q+(da(r,0-f|0)|0)|0;o=0;n=n+f|0}else{o=f}if((e|0)<0){q=q+(0-e)|0;f=0;e=r+e|0}else{f=e;e=r}s=c[b>>2]|0;t=c[s>>2]|0;e=(e+f|0)<(t|0)?e:t-f|0;s=c[s+4>>2]|0;n=(n+o|0)<(s|0)?n:s-o|0;g=(a[g+16|0]&1)!=0;if(j){if(!g){p=~~+ca(+(+(r|0)*.125));u=b+4|0;F=c[u>>2]|0;jp(b,l,f,o,c[F+52>>2]|0,0,+h[F+72>>3],0,0);if((n|0)<=0){i=k;return}y=(e|0)>0;g=l+52|0;j=l+36|0;s=l+48|0;r=l+44|0;z=l+40|0;x=b+168|0;w=b+176|0;v=b+172|0;t=b+180|0;A=0;while(1){tp(b,l,f,o);if(y){D=f;B=0;do{C=d[q+((B|0)/8|0)|0]|0;E=0;while(1){if((E+B|0)>=(e|0)){break}do{if((C&128|0)==0){c[m>>2]=(c[m>>2]|0)+1;if((c[(c[u>>2]|0)+136>>2]|0)!=0){c[z>>2]=(c[z>>2]|0)+1}a:do{switch(c[(c[b>>2]|0)+16>>2]|0){case 4:{c[r>>2]=(c[r>>2]|0)+4;break};case 0:{F=c[s>>2]>>1;c[s>>2]=F;if((F|0)!=0){break a}c[s>>2]=128;c[r>>2]=(c[r>>2]|0)+1;break};case 1:{c[r>>2]=(c[r>>2]|0)+1;break};case 3:case 2:{c[r>>2]=(c[r>>2]|0)+3;break};default:{}}}while(0);F=c[g>>2]|0;if((F|0)!=0){c[g>>2]=F+1}F=c[j>>2]|0;if((F|0)==0){break}c[j>>2]=F+1}else{up(b,l);if((c[x>>2]|0)>(D|0)){c[x>>2]=D}if((c[w>>2]|0)<(D|0)){c[w>>2]=D}if((c[v>>2]|0)>(o|0)){c[v>>2]=o}if((c[t>>2]|0)>=(o|0)){break}c[t>>2]=o}}while(0);E=E+1|0;D=D+1|0;if((E|0)<8){C=C<<1}else{break}}B=B+8|0;}while((B|0)<(e|0))}A=A+1|0;if((A|0)<(n|0)){q=q+p|0;o=o+1|0}else{break}}i=k;return}j=b+4|0;g=c[j>>2]|0;r=c[g+52>>2]|0;G=+h[g+72>>3];tp(b,l,f,o);g=l+8|0;c[g>>2]=0;if((r|0)==0){c[l+28>>2]=0}else{if(jd[c[(c[r>>2]|0)+16>>2]&511](r)|0){g=l+32|0;pd[c[(c[r>>2]|0)+12>>2]&63](r,f,o,g)|0}else{c[g>>2]=r;g=l+32|0}c[l+28>>2]=g}r=l+16|0;h[r>>3]=G;g=c[j>>2]|0;if((c[g+136>>2]|0)==0){h[r>>3]=G*255.0}a[l+24|0]=1;a[l+64|0]=0;r=c[(c[b>>2]|0)+16>>2]|0;if((c[g+60>>2]|0)==0){c[l+68>>2]=c[53896+(r<<2)>>2]}else{c[l+68>>2]=c[53920+(r<<2)>>2]}c[l+72>>2]=0;if((n|0)<=0){i=k;return}g=(e|0)>0;u=l+52|0;t=l+36|0;w=l+48|0;v=l+44|0;x=l+40|0;r=l+56|0;s=b+168|0;z=b+176|0;A=b+172|0;y=b+180|0;C=0;while(1){tp(b,l,f,o);if(g){B=f;D=0;while(1){E=a[q+D|0]|0;do{if(E<<24>>24==0){c[m>>2]=(c[m>>2]|0)+1;if((c[(c[j>>2]|0)+136>>2]|0)!=0){c[x>>2]=(c[x>>2]|0)+1}b:do{switch(c[(c[b>>2]|0)+16>>2]|0){case 1:{c[v>>2]=(c[v>>2]|0)+1;break};case 4:{c[v>>2]=(c[v>>2]|0)+4;break};case 0:{F=c[w>>2]>>1;c[w>>2]=F;if((F|0)!=0){break b}c[w>>2]=128;c[v>>2]=(c[v>>2]|0)+1;break};case 3:case 2:{c[v>>2]=(c[v>>2]|0)+3;break};default:{}}}while(0);E=c[u>>2]|0;if((E|0)!=0){c[u>>2]=E+1}E=c[t>>2]|0;if((E|0)==0){break}c[t>>2]=E+1}else{h[r>>3]=+(E&255|0)/255.0;up(b,l);if((c[s>>2]|0)>(B|0)){c[s>>2]=B}if((c[z>>2]|0)<(B|0)){c[z>>2]=B}if((c[A>>2]|0)>(o|0)){c[A>>2]=o}if((c[y>>2]|0)>=(o|0)){break}c[y>>2]=o}}while(0);D=D+1|0;if((D|0)<(e|0)){B=B+1|0}else{break}}}C=C+1|0;if((C|0)<(n|0)){q=q+(c[p>>2]|0)|0;o=o+1|0}else{break}}i=k;return}if(!g){w=~~+ca(+(+(r|0)*.125));g=b+4|0;F=c[g>>2]|0;jp(b,l,f,o,c[F+52>>2]|0,0,+h[F+72>>3],0,0);if((n|0)<=0){i=k;return}z=(e|0)>0;j=l+52|0;x=l+36|0;s=l+48|0;v=l+44|0;y=l+40|0;p=b+168|0;t=b+176|0;r=b+172|0;u=b+180|0;A=0;while(1){tp(b,l,f,o);if(z){D=f;B=0;do{C=d[q+((B|0)/8|0)|0]|0;E=0;while(1){if((E+B|0)>=(e|0)){break}do{if(vp(c[(c[g>>2]|0)+132>>2]|0,D,o)|0){if((C&128|0)!=0){up(b,l);if((c[p>>2]|0)>(D|0)){c[p>>2]=D}if((c[t>>2]|0)<(D|0)){c[t>>2]=D}if((c[r>>2]|0)>(o|0)){c[r>>2]=o}if((c[u>>2]|0)>=(o|0)){break}c[u>>2]=o;break}c[m>>2]=(c[m>>2]|0)+1;if((c[(c[g>>2]|0)+136>>2]|0)!=0){c[y>>2]=(c[y>>2]|0)+1}c:do{switch(c[(c[b>>2]|0)+16>>2]|0){case 0:{F=c[s>>2]>>1;c[s>>2]=F;if((F|0)!=0){break c}c[s>>2]=128;c[v>>2]=(c[v>>2]|0)+1;break};case 1:{c[v>>2]=(c[v>>2]|0)+1;break};case 3:case 2:{c[v>>2]=(c[v>>2]|0)+3;break};case 4:{c[v>>2]=(c[v>>2]|0)+4;break};default:{}}}while(0);F=c[j>>2]|0;if((F|0)!=0){c[j>>2]=F+1}F=c[x>>2]|0;if((F|0)==0){break}c[x>>2]=F+1}else{c[m>>2]=(c[m>>2]|0)+1;if((c[(c[g>>2]|0)+136>>2]|0)!=0){c[y>>2]=(c[y>>2]|0)+1}d:do{switch(c[(c[b>>2]|0)+16>>2]|0){case 0:{F=c[s>>2]>>1;c[s>>2]=F;if((F|0)!=0){break d}c[s>>2]=128;c[v>>2]=(c[v>>2]|0)+1;break};case 1:{c[v>>2]=(c[v>>2]|0)+1;break};case 3:case 2:{c[v>>2]=(c[v>>2]|0)+3;break};case 4:{c[v>>2]=(c[v>>2]|0)+4;break};default:{}}}while(0);F=c[j>>2]|0;if((F|0)!=0){c[j>>2]=F+1}F=c[x>>2]|0;if((F|0)==0){break}c[x>>2]=F+1}}while(0);E=E+1|0;D=D+1|0;if((E|0)<8){C=C<<1}else{break}}B=B+8|0;}while((B|0)<(e|0))}A=A+1|0;if((A|0)<(n|0)){q=q+w|0;o=o+1|0}else{break}}i=k;return}j=b+4|0;r=c[j>>2]|0;g=c[r+52>>2]|0;G=+h[r+72>>3];tp(b,l,f,o);r=l+8|0;c[r>>2]=0;if((g|0)==0){c[l+28>>2]=0}else{if(jd[c[(c[g>>2]|0)+16>>2]&511](g)|0){F=l+32|0;pd[c[(c[g>>2]|0)+12>>2]&63](g,f,o,F)|0;g=F}else{c[r>>2]=g;g=l+32|0}c[l+28>>2]=g}r=l+16|0;h[r>>3]=G;g=c[j>>2]|0;if((c[g+136>>2]|0)==0){h[r>>3]=G*255.0}a[l+24|0]=1;a[l+64|0]=0;r=c[(c[b>>2]|0)+16>>2]|0;if((c[g+60>>2]|0)==0){c[l+68>>2]=c[53896+(r<<2)>>2]}else{c[l+68>>2]=c[53920+(r<<2)>>2]}c[l+72>>2]=0;if((n|0)<=0){i=k;return}s=(e|0)>0;A=l+52|0;z=l+36|0;u=l+48|0;t=l+44|0;r=l+40|0;y=l+56|0;x=b+168|0;w=b+176|0;v=b+172|0;g=b+180|0;C=0;while(1){tp(b,l,f,o);e:do{if(s){B=f;D=0;while(1){do{if(vp(c[(c[j>>2]|0)+132>>2]|0,B,o)|0){E=a[q+D|0]|0;if(E<<24>>24!=0){h[y>>3]=+(E&255|0)/255.0;up(b,l);if((c[x>>2]|0)>(B|0)){c[x>>2]=B}if((c[w>>2]|0)<(B|0)){c[w>>2]=B}if((c[v>>2]|0)>(o|0)){c[v>>2]=o}if((c[g>>2]|0)>=(o|0)){break}c[g>>2]=o;break}c[m>>2]=(c[m>>2]|0)+1;if((c[(c[j>>2]|0)+136>>2]|0)!=0){c[r>>2]=(c[r>>2]|0)+1}f:do{switch(c[(c[b>>2]|0)+16>>2]|0){case 0:{F=c[u>>2]>>1;c[u>>2]=F;if((F|0)!=0){break f}c[u>>2]=128;c[t>>2]=(c[t>>2]|0)+1;break};case 1:{c[t>>2]=(c[t>>2]|0)+1;break};case 3:case 2:{c[t>>2]=(c[t>>2]|0)+3;break};case 4:{c[t>>2]=(c[t>>2]|0)+4;break};default:{}}}while(0);E=c[A>>2]|0;if((E|0)!=0){c[A>>2]=E+1}E=c[z>>2]|0;if((E|0)==0){break}c[z>>2]=E+1}else{c[m>>2]=(c[m>>2]|0)+1;if((c[(c[j>>2]|0)+136>>2]|0)!=0){c[r>>2]=(c[r>>2]|0)+1}g:do{switch(c[(c[b>>2]|0)+16>>2]|0){case 4:{c[t>>2]=(c[t>>2]|0)+4;break};case 0:{F=c[u>>2]>>1;c[u>>2]=F;if((F|0)!=0){break g}c[u>>2]=128;c[t>>2]=(c[t>>2]|0)+1;break};case 1:{c[t>>2]=(c[t>>2]|0)+1;break};case 3:case 2:{c[t>>2]=(c[t>>2]|0)+3;break};default:{}}}while(0);E=c[A>>2]|0;if((E|0)!=0){c[A>>2]=E+1}E=c[z>>2]|0;if((E|0)==0){break}c[z>>2]=E+1}}while(0);D=D+1|0;if((D|0)>=(e|0)){break e}B=B+1|0}}}while(0);C=C+1|0;if((C|0)<(n|0)){q=q+(c[p>>2]|0)|0;o=o+1|0}else{break}}i=k;return}function sp(a,b,d,e){a=a|0;b=+b;d=+d;e=e|0;var f=0,g=0,j=0,k=0.0,l=0,m=0,n=0;f=i;g=c[a+4>>2]|0;k=+h[g+32>>3]+(+h[g>>3]*b+ +h[g+16>>3]*d);b=+h[g+40>>3]+(+h[g+8>>3]*b+ +h[g+24>>3]*d);if(k<=0.0){k=+R(+k)}j=~~k;if(b<=0.0){b=+R(+b)}l=~~b;n=j-(c[e>>2]|0)|0;m=l-(c[e+4>>2]|0)|0;g=Jp(c[g+132>>2]|0,n,m,n+ -1+(c[e+8>>2]|0)|0,m+ -1+(c[e+12>>2]|0)|0)|0;if((g|0)==1){n=a+184|0;c[n>>2]=g;i=f;return}rp(a,j,l,e,(g|0)==0);n=a+184|0;c[n>>2]=g;i=f;return}function tp(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;c[d>>2]=e;c[d+4>>2]=f;h=b+4|0;j=c[(c[h>>2]|0)+136>>2]|0;if((j|0)!=0){k=(da(c[j+12>>2]|0,f)|0)+e|0;c[d+40>>2]=(c[j+20>>2]|0)+k}j=c[b>>2]|0;switch(c[j+16>>2]|0){case 3:case 2:{c[d+44>>2]=(da(c[j+12>>2]|0,f)|0)+(e*3|0)+(c[j+20>>2]|0);break};case 1:{c[d+44>>2]=(da(c[j+12>>2]|0,f)|0)+e+(c[j+20>>2]|0);break};case 0:{c[d+44>>2]=(da(c[j+12>>2]|0,f)|0)+(e>>3)+(c[j+20>>2]|0);c[d+48>>2]=128>>>(e&7);break};case 4:{c[d+44>>2]=(da(c[j+12>>2]|0,f)|0)+(e<<2)+(c[j+20>>2]|0);break};default:{}}j=c[b>>2]|0;k=c[j+24>>2]|0;if((k|0)==0){c[d+52>>2]=0}else{c[d+52>>2]=k+((da(c[j>>2]|0,f)|0)+e)}do{if((a[(c[h>>2]|0)+141|0]&1)!=0){h=c[b+16>>2]|0;j=c[h+24>>2]|0;if((j|0)==0){break}k=da((c[b+24>>2]|0)+f|0,c[h>>2]|0)|0;c[d+36>>2]=j+((c[b+20>>2]|0)+e+k);i=g;return}}while(0);c[d+36>>2]=0;i=g;return}function up(b,e){b=b|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;f=i;j=i;i=i+8|0;m=j;o=i;i=i+8|0;q=o;g=c[e+8>>2]|0;do{if((g|0)!=0){if(pd[c[(c[g>>2]|0)+12>>2]&63](g,c[e>>2]|0,c[e+4>>2]|0,e+32|0)|0){break}a:do{switch(c[(c[b>>2]|0)+16>>2]|0){case 4:{u=e+44|0;c[u>>2]=(c[u>>2]|0)+4;break};case 0:{t=e+48|0;u=c[t>>2]>>1;c[t>>2]=u;if((u|0)!=0){break a}u=e+44|0;c[u>>2]=(c[u>>2]|0)+1;break};case 1:{u=e+44|0;c[u>>2]=(c[u>>2]|0)+1;break};case 2:case 3:{u=e+44|0;c[u>>2]=(c[u>>2]|0)+3;break};default:{}}}while(0);g=e+52|0;b=c[g>>2]|0;if((b|0)!=0){c[g>>2]=b+1}c[e>>2]=(c[e>>2]|0)+1;i=f;return}}while(0);p=e+64|0;do{if((a[p]&1)==0){l=26}else{g=c[b+4>>2]|0;if((c[g+60>>2]|0)!=0){l=26;break}b:do{switch(c[(c[b>>2]|0)+16>>2]|0){case 2:{t=e+28|0;u=a[c[t>>2]|0]|0;s=e+44|0;r=c[s>>2]|0;c[s>>2]=r+1;a[r]=u;r=a[(c[t>>2]|0)+1|0]|0;u=c[s>>2]|0;c[s>>2]=u+1;a[u]=r;t=a[(c[t>>2]|0)+2|0]|0;u=c[s>>2]|0;c[s>>2]=u+1;a[u]=t;break};case 4:{s=e+28|0;u=a[(c[s>>2]|0)+2|0]|0;t=e+44|0;r=c[t>>2]|0;c[t>>2]=r+1;a[r]=u;r=a[(c[s>>2]|0)+1|0]|0;u=c[t>>2]|0;c[t>>2]=u+1;a[u]=r;s=a[c[s>>2]|0]|0;u=c[t>>2]|0;c[t>>2]=u+1;a[u]=s;u=c[t>>2]|0;c[t>>2]=u+1;a[u]=-1;break};case 0:{u=(Gq(c[g+56>>2]|0,c[e>>2]|0,c[e+4>>2]|0,a[c[e+28>>2]|0]|0)|0)==0;b=e+48|0;g=c[b>>2]|0;if(u){u=c[e+44>>2]|0;a[u]=(d[u]|0)&(g^255)}else{u=c[e+44>>2]|0;a[u]=d[u]|0|g}u=c[b>>2]>>1;c[b>>2]=u;if((u|0)!=0){break b}c[b>>2]=128;u=e+44|0;c[u>>2]=(c[u>>2]|0)+1;break};case 3:{t=e+28|0;u=a[(c[t>>2]|0)+2|0]|0;s=e+44|0;r=c[s>>2]|0;c[s>>2]=r+1;a[r]=u;r=a[(c[t>>2]|0)+1|0]|0;u=c[s>>2]|0;c[s>>2]=u+1;a[u]=r;t=a[c[t>>2]|0]|0;u=c[s>>2]|0;c[s>>2]=u+1;a[u]=t;break};case 1:{t=a[c[e+28>>2]|0]|0;s=e+44|0;u=c[s>>2]|0;c[s>>2]=u+1;a[u]=t;break};default:{}}}while(0);b=e+52|0;g=c[b>>2]|0;if((g|0)==0){break}c[b>>2]=g+1;a[g]=-1}}while(0);do{if((l|0)==26){r=(c[b>>2]|0)+16|0;switch(c[r>>2]|0){case 0:{a[j]=(((d[c[e+44>>2]|0]|0)&c[e+48>>2]|0)!=0)<<31>>31;break};case 3:{u=c[e+44>>2]|0;a[j]=a[u+2|0]|0;a[m+1|0]=a[u+1|0]|0;a[m+2|0]=a[u]|0;break};case 2:{u=c[e+44>>2]|0;a[j]=a[u]|0;a[m+1|0]=a[u+1|0]|0;a[m+2|0]=a[u+2|0]|0;break};case 4:{u=c[e+44>>2]|0;a[j]=a[u+2|0]|0;a[m+1|0]=a[u+1|0]|0;a[m+2|0]=a[u]|0;a[m+3|0]=-1;break};case 1:{a[j]=a[c[e+44>>2]|0]|0;break};default:{}}g=e+52|0;k=c[g>>2]|0;if((k|0)==0){n=255}else{n=d[k]|0}k=b+4|0;t=c[k>>2]|0;s=c[t+60>>2]|0;if((s|0)!=0){Jd[s&63](c[e+28>>2]|0,m,q,c[r>>2]|0);t=c[k>>2]|0}r=(a[e+24|0]&1)!=0;do{if((c[t+136>>2]|0)==0){if(!r){r=a[e+25|0]|0;break}v=+h[e+16>>3]*+h[e+56>>3]+.5;if(v<=0.0){v=+R(+v)}r=~~v&255}else{v=+h[e+16>>3];t=e+40|0;u=c[t>>2]|0;c[t>>2]=u+1;v=v*+(d[u]|0|0);if(r){v=v*+h[e+56>>3]+.5;if(v<=0.0){v=+R(+v)}r=~~v&255;break}else{v=v+.5;if(v<=0.0){v=+R(+v)}r=~~v&255;break}}}while(0);do{if((a[p]&1)==0){s=r&255;t=da(s,n)|0;t=s+n-((t+128+(t>>>8)|0)>>>8&255)|0;s=t&255;u=e+36|0;p=c[u>>2]|0;if((p|0)==0){p=s;break}c[u>>2]=p+1;w=d[p]|0;u=da(w,t&255)|0;p=s;s=w+t-((u+128+(u>>>8)|0)>>>8)&255}else{p=-1;s=-1}}while(0);c:do{switch(c[e+68>>2]|0){case 1:{s=c[e+28>>2]|0;t=n^255;r=0;q=0;l=55;break};case 0:{t=n^255;s=c[e+28>>2]|0;l=(da(d[s+2|0]|0,t)|0)+(da(d[q+2|0]|0,n)|0)|0;r=(da(d[s+1|0]|0,t)|0)+(da(d[q+1|0]|0,n)|0)|0;r=(r+128+(r>>>8)|0)>>>8&255;q=(l+128+(l>>>8)|0)>>>8&255;l=55;break};case 2:{o=s&255;if(s<<24>>24==0){o=0;r=0;q=0;break c}r=r&255;o=(((da(d[j]|0,o-r|0)|0)+(da(d[c[e+28>>2]|0]|0,r)|0)|0)/(o|0)|0)&255;r=0;q=0;break};case 3:{q=s&255;if(s<<24>>24==0){o=0;r=0;q=0;break c}w=r&255;t=q-w|0;o=da(d[j]|0,t)|0;u=c[e+28>>2]|0;o=(((da(d[u]|0,w)|0)+o|0)/(q|0)|0)&255;r=(((da(d[m+1|0]|0,t)|0)+(da(d[u+1|0]|0,w)|0)|0)/(q|0)|0)&255;q=(((da(d[m+2|0]|0,t)|0)+(da(d[u+2|0]|0,w)|0)|0)/(q|0)|0)&255;break};case 5:{t=s&255;if(s<<24>>24==0){o=0;r=0;q=0;break c}w=r&255;x=t-w|0;r=da(d[j]|0,x)|0;u=n^255;s=c[e+28>>2]|0;o=(((((da((da(d[s]|0,u)|0)+(da(d[o]|0,n)|0)|0,w)|0)>>>0)/255|0)+r|0)/(t|0)|0)&255;r=(((da(d[m+1|0]|0,x)|0)+(((da((da(d[s+1|0]|0,u)|0)+(da(d[q+1|0]|0,n)|0)|0,w)|0)>>>0)/255|0)|0)/(t|0)|0)&255;q=(((da(d[m+2|0]|0,x)|0)+(((da((da(d[s+2|0]|0,u)|0)+(da(d[q+2|0]|0,n)|0)|0,w)|0)>>>0)/255|0)|0)/(t|0)|0)&255;break};case 4:{q=s&255;if(s<<24>>24==0){o=0;r=0;q=0;break c}r=r&255;o=(((da(d[j]|0,q-r|0)|0)+(((da((da(d[c[e+28>>2]|0]|0,n^255)|0)+(da(d[o]|0,n)|0)|0,r)|0)>>>0)/255|0)|0)/(q|0)|0)&255;r=0;q=0;break};default:{o=0;r=0;q=0}}}while(0);if((l|0)==55){x=da(d[s]|0,t)|0;o=(da(d[o]|0,n)|0)+x|0;o=(o+128+(o>>>8)|0)>>>8&255}s=p&255;do{if(p<<24>>24!=0){l=c[e+72>>2]|0;if((l|0)==1){l=da(s^255,n)|0;n=s*255|0}else if((l|0)==3){q=q&255;w=da(s^255,n)|0;x=s*255|0;q=((da(w,q-(d[m+2|0]|0)|0)|0)/(x|0)|0)+q&255;r=r&255;l=w;n=x;r=((da(w,r-(d[m+1|0]|0)|0)|0)/(x|0)|0)+r&255}else{break}o=o&255;o=((da(l,o-(d[j]|0)|0)|0)/(n|0)|0)+o&255}}while(0);d:do{switch(c[(c[b>>2]|0)+16>>2]|0){case 4:{w=e+44|0;x=c[w>>2]|0;c[w>>2]=x+1;a[x]=q;x=c[w>>2]|0;c[w>>2]=x+1;a[x]=r;x=c[w>>2]|0;c[w>>2]=x+1;a[x]=o;x=c[w>>2]|0;c[w>>2]=x+1;a[x]=-1;break};case 3:{w=e+44|0;x=c[w>>2]|0;c[w>>2]=x+1;a[x]=q;x=c[w>>2]|0;c[w>>2]=x+1;a[x]=r;x=c[w>>2]|0;c[w>>2]=x+1;a[x]=o;break};case 1:{w=e+44|0;x=c[w>>2]|0;c[w>>2]=x+1;a[x]=o;break};case 2:{w=e+44|0;x=c[w>>2]|0;c[w>>2]=x+1;a[x]=o;x=c[w>>2]|0;c[w>>2]=x+1;a[x]=r;x=c[w>>2]|0;c[w>>2]=x+1;a[x]=q;break};case 0:{x=(Gq(c[(c[k>>2]|0)+56>>2]|0,c[e>>2]|0,c[e+4>>2]|0,o)|0)==0;b=e+48|0;j=c[b>>2]|0;if(x){x=c[e+44>>2]|0;a[x]=(d[x]|0)&(j^255)}else{x=c[e+44>>2]|0;a[x]=d[x]|0|j}x=c[b>>2]>>1;c[b>>2]=x;if((x|0)!=0){break d}c[b>>2]=128;x=e+44|0;c[x>>2]=(c[x>>2]|0)+1;break};default:{}}}while(0);b=c[g>>2]|0;if((b|0)==0){break}c[g>>2]=b+1;a[b]=p}}while(0);c[e>>2]=(c[e>>2]|0)+1;i=f;return}function vp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;if((c[b+40>>2]|0)>(d|0)){j=0;i=f;return j|0}if((c[b+48>>2]|0)<(d|0)){j=0;i=f;return j|0}if((c[b+44>>2]|0)>(e|0)){j=0;i=f;return j|0}if((c[b+52>>2]|0)<(e|0)){j=0;i=f;return j|0}g=b+68|0;h=(c[g>>2]|0)>0;if((a[b]&1)==0){if(!h){j=1;i=f;return j|0}j=b+64|0;b=0;while(1){h=b+1|0;if(!(dr(c[(c[j>>2]|0)+(b<<2)>>2]|0,d,e)|0)){e=0;g=14;break}if((h|0)<(c[g>>2]|0)){b=h}else{e=1;g=14;break}}if((g|0)==14){i=f;return e|0}}else{if(!h){j=1;i=f;return j|0}h=b+64|0;d=d<<2;b=e<<2;j=0;while(1){e=j+1|0;if(!(dr(c[(c[h>>2]|0)+(j<<2)>>2]|0,d,b)|0)){e=0;g=14;break}if((e|0)<(c[g>>2]|0)){j=e}else{e=1;g=14;break}}if((g|0)==14){i=f;return e|0}}return 0}function wp(b,e,f,g,j,l,m){b=b|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.0,r=0,s=0,t=0,u=0.0,v=0.0,w=0,x=0,y=0.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,aa=0,ba=0.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.0;n=i;r=i;i=i+56|0;p=r;B=i;i=i+80|0;o=B;if((a[b+189|0]&1)!=0){q=+h[l>>3];u=+h[l+8>>3];v=+h[l+16>>3];y=+h[l+24>>3];ba=+h[l+32>>3];qa=+h[l+40>>3];c[r>>2]=g;c[p+4>>2]=j;pa=p+8|0;h[k>>3]=q;c[pa>>2]=c[k>>2];c[pa+4>>2]=c[k+4>>2];pa=p+16|0;h[k>>3]=u;c[pa>>2]=c[k>>2];c[pa+4>>2]=c[k+4>>2];pa=p+24|0;h[k>>3]=v;c[pa>>2]=c[k>>2];c[pa+4>>2]=c[k+4>>2];pa=p+32|0;h[k>>3]=y;c[pa>>2]=c[k>>2];c[pa+4>>2]=c[k+4>>2];pa=p+40|0;h[k>>3]=ba;c[pa>>2]=c[k>>2];c[pa+4>>2]=c[k+4>>2];pa=p+48|0;h[k>>3]=qa;c[pa>>2]=c[k>>2];c[pa+4>>2]=c[k+4>>2];Kb(54040,p|0)|0}if((j|g|0)==0){pa=254;i=n;return pa|0}q=+h[l>>3];v=+h[l+24>>3];qa=q*v;ba=+h[l+8>>3];y=+h[l+16>>3];u=ba*y;if(+S(+(qa-u))<1.0e-6){pa=8;i=n;return pa|0}p=+S(+ba)>+S(+q);if(p){qa=y-qa/ba;u=-0.0-ba;y=(-0.0-v)/qa;v=qa;q=(-0.0-q)/ba}else{v=v-u/q;u=q;y=y/v;q=ba/q}s=u>=0.0;ba=+h[l+32>>3];do{if(m){qa=ba+.5;if(qa<=0.0){qa=+R(+qa)}r=~~qa;if(s){ba=u+ba+.5;if(ba<=0.0){ba=+R(+ba)}s=~~ba+ -1|0;break}else{ba=u+ba+.5;if(ba<=0.0){ba=+R(+ba)}s=~~ba;r=r+ -1|0;break}}else{if(s){qa=ba+-.01;if(qa<=0.0){qa=+R(+qa)}ba=u+ba+.01;if(ba<=0.0){ba=+R(+ba)}s=~~ba;r=~~qa;break}else{qa=ba+.01;if(qa<=0.0){qa=+R(+qa)}ba=u+ba+-.01;if(ba<=0.0){ba=+R(+ba)}s=~~ba;r=~~qa;break}}}while(0);s=s-r|0;I=(s|0)>-1?s:0-s|0;s=I+1|0;t=v>=0.0;ba=+h[l+40>>3];do{if(m){qa=ba+.5;if(qa<=0.0){qa=+R(+qa)}m=~~qa;if(t){ba=v+ba+.5;if(ba<=0.0){ba=+R(+ba)}l=~~ba+ -1|0;break}else{ba=v+ba+.5;if(ba<=0.0){ba=+R(+ba)}l=~~ba;m=m+ -1|0;break}}else{if(t){qa=ba+-.01;if(qa<=0.0){qa=+R(+qa)}ba=v+ba+.01;if(ba<=0.0){ba=+R(+ba)}l=~~ba;m=~~qa;break}else{qa=ba+.01;if(qa<=0.0){qa=+R(+qa)}ba=v+ba+-.01;if(ba<=0.0){ba=+R(+ba)}l=~~ba;m=~~qa;break}}}while(0);l=l-m|0;J=(l|0)>-1?l:0-l|0;l=J+1|0;V=u<0.0;t=V?-1:1;x=v<0.0?-1:1;u=q*+(t|0);w=da(I,t)|0;z=~~(q*+(w|0));v=+(x|0);y=y*v;ba=y*+(J|0)+.5;if(ba>0.0){A=~~ba;C=da(J,x)|0;D=~~(q*+(A|0))+C|0}else{ba=+R(+ba);A=~~ba;C=da(J,x)|0;D=~~(q*+(A|0))+C|0}F=~~ba+w|0;H=~~(q*+(F|0))+C|0;if(p){G=H;E=z;C=D;A=m-A|0;D=m-F|0;F=m-w|0}else{G=F;E=w;C=A;A=D+m|0;D=H+m|0;F=m+z|0}K=C+r|0;H=E+r|0;G=G+r|0;do{if((E|0)>0){if((C|0)>0){L=(r|0)<(G|0)?r:G;z=63;break}else{C=(K|0)<(G|0)?K:G;z=67;break}}else{if((H|0)<(K|0)){L=(H|0)<(G|0)?H:G;z=63;break}else{L=(K|0)<(G|0)?K:G;z=63;break}}}while(0);do{if((z|0)==63){if((E|0)>=0){C=L;z=67;break}if((C|0)<0){C=L;E=(r|0)>(G|0)?r:G;break}else{C=L;E=(K|0)>(G|0)?K:G;break}}}while(0);do{if((z|0)==67){if((H|0)>(K|0)){E=(H|0)>(G|0)?H:G;break}else{E=(K|0)>(G|0)?K:G;break}}}while(0);do{if((m|0)<(F|0)){if((m|0)<(A|0)){G=(m|0)<(D|0)?m:D;break}else{G=(A|0)<(D|0)?A:D;break}}else{if((F|0)<(A|0)){G=(F|0)<(D|0)?F:D;break}else{G=(A|0)<(D|0)?A:D;break}}}while(0);do{if((m|0)>(F|0)){if((m|0)>(A|0)){D=(m|0)>(D|0)?m:D;break}else{D=(A|0)>(D|0)?A:D;break}}else{if((F|0)>(A|0)){D=(F|0)>(D|0)?F:D;break}else{D=(A|0)>(D|0)?A:D;break}}}while(0);A=b+4|0;C=Jp(c[(c[A>>2]|0)+132>>2]|0,C,G,E,D)|0;c[b+184>>2]=C;D=(j|0)/(l|0)|0;E=(j|0)%(l|0)|0;j=(g|0)/(s|0)|0;F=(g|0)%(s|0)|0;if((D|0)<0|(D|0)==2147483647){pa=9;i=n;return pa|0}H=D+1|0;G=ye(H,g)|0;K=c[A>>2]|0;L=c[K+52>>2]|0;ba=+h[K+72>>3];c[B>>2]=0;c[o+4>>2]=0;B=c[K+136>>2]|0;if((B|0)!=0){c[o+40>>2]=c[B+20>>2]}B=c[b>>2]|0;switch(c[B+16>>2]|0){case 3:case 2:{c[o+44>>2]=c[B+20>>2];break};case 0:{c[o+44>>2]=c[B+20>>2];c[o+48>>2]=128;break};case 1:{c[o+44>>2]=c[B+20>>2];break};case 4:{c[o+44>>2]=c[B+20>>2];break};default:{}}c[o+52>>2]=c[B+24>>2];do{if((a[K+141|0]&1)==0){z=95}else{M=c[b+16>>2]|0;B=c[M+24>>2]|0;if((B|0)==0){z=95;break}pa=da(c[M>>2]|0,c[b+24>>2]|0)|0;c[o+36>>2]=B+((c[b+20>>2]|0)+pa)}}while(0);if((z|0)==95){c[o+36>>2]=0}B=o+8|0;c[B>>2]=0;if((L|0)==0){c[o+28>>2]=0}else{if(jd[c[(c[L>>2]|0)+16>>2]&511](L)|0){B=o+32|0;pd[c[(c[L>>2]|0)+12>>2]&63](L,0,0,B)|0}else{c[B>>2]=L;B=o+32|0}c[o+28>>2]=B;K=c[A>>2]|0}B=o+16|0;h[B>>3]=ba;if((c[K+136>>2]|0)==0){h[B>>3]=ba*255.0}a[o+24|0]=1;a[o+64|0]=0;B=c[(c[b>>2]|0)+16>>2]|0;if((c[K+60>>2]|0)==0){c[o+68>>2]=c[53896+(B<<2)>>2]}else{c[o+68>>2]=c[53920+(B<<2)>>2]}c[o+72>>2]=0;B=b+188|0;if((a[B]&1)!=0){c[b+12>>2]=-1}if((J|0)>-1){J=(D|0)>0;K=(C|0)==0|p;T=u<0.0;U=(I|0)>-1;M=o+56|0;O=b+168|0;Q=b+176|0;N=b+172|0;L=b+180|0;P=V?I:0;I=V?0:I;Y=1;X=0;V=0;while(1){pa=V+E|0;W=(pa|0)<(l|0);V=pa-(W?0:l)|0;W=W?D:H;Z=J?W:Y;if((Z|0)>0){_=0;Y=G;while(1){Bd[e&255](f,Y)|0;_=_+1|0;if((_|0)<(Z|0)){Y=Y+g|0}else{break}}}ba=+(X|0);qa=y*ba+.5;if(qa<=0.0){qa=+R(+qa)}$=~~qa;qa=q*+($|0);do{if(K){_=C;z=118}else{Y=~~qa;if((Y|0)!=(~~(q*+($+w|0))|0)){_=C;z=118;break}pa=$+r|0;_=(da(X,x)|0)+m+Y|0;_=Kp(c[(c[A>>2]|0)+132>>2]|0,pa-P|0,pa+I|0,_)|0;if((_|0)!=1){z=118}}}while(0);do{if((z|0)==118){z=0;ba=v*ba+qa;if(T){ba=ba+.999}Y=(W|0)<1?1:W;if(!U){break}Z=(Y|0)>0;_=(_|0)==0;aa=0;ca=0;ea=0;while(1){pa=ea+F|0;fa=(pa|0)<(s|0);ea=pa-(fa?0:s)|0;fa=j+(fa&1^1)|0;ga=~~ba;ha=p?ga:$;ga=p?0-$|0:ga;ia=(fa|0)<1?1:fa;la=G+aa|0;do{if(Z){ja=g-ia|0;if((ia|0)<=0){break}ka=(fa|0)>1?fa:1;ma=0;oa=0;while(1){pa=0;na=la;while(1){oa=(d[na]|0)+oa|0;pa=pa+1|0;if((pa|0)<(ia|0)){na=na+1|0}else{break}}ma=ma+1|0;if((ma|0)<(Y|0)){la=la+(ka+ja)|0}else{break}}if((oa|0)==0){break}ia=da(ia,Y)|0;if((oa|0)==(ia|0)){qa=1.0}else{qa=+(oa|0)/+(ia|0)}h[M>>3]=qa;ha=ha+r|0;ga=ga+m|0;if(!((a[B]&1)==0|_)){xp(b,o,ha,ga);break}if((ga|0)<0){break}if(!_){if(!(vp(c[(c[A>>2]|0)+132>>2]|0,ha,ga)|0)){break}}tp(b,o,ha,ga);up(b,o);if((c[O>>2]|0)>(ha|0)){c[O>>2]=ha}if((c[Q>>2]|0)<(ha|0)){c[Q>>2]=ha}if((c[N>>2]|0)>(ga|0)){c[N>>2]=ga}if((c[L>>2]|0)>=(ga|0)){break}c[L>>2]=ga}}while(0);ca=ca+1|0;if((ca|0)<(s|0)){$=$+t|0;aa=fa+aa|0;ba=u+ba}else{break}}}}while(0);X=X+1|0;if((X|0)<(l|0)){Y=W}else{break}}}Fe(G);pa=0;i=n;return pa|0}function xp(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;j=i;k=i;i=i+8|0;l=i;i=i+8|0;if((f|0)<0){i=j;return}if((c[c[b>>2]>>2]|0)<=(f|0)){i=j;return}m=b+4|0;n=c[(c[m>>2]|0)+132>>2]|0;if((c[n+44>>2]|0)>(g|0)){i=j;return}if((c[n+52>>2]|0)<(g|0)){i=j;return}n=b+12|0;o=b+8|0;if((c[n>>2]|0)!=(g|0)){p=c[o>>2]|0;bX(c[p+20>>2]|0,-1,da(c[p+4>>2]|0,c[p+12>>2]|0)|0)|0;c[k>>2]=0;c[l>>2]=(c[c[b>>2]>>2]|0)+ -1;Lp(c[(c[m>>2]|0)+132>>2]|0,c[o>>2]|0,k,l,g);c[n>>2]=g}l=c[o>>2]|0;m=c[l+20>>2]|0;k=f>>1;l=c[l+12>>2]|0;n=d[m+k|0]|0;if((f&1|0)==0){k=(c[54616+((d[m+(l+k)|0]|0)>>>4<<2)>>2]|0)+(c[54616+(n>>>4<<2)>>2]|0)+(c[54616+((d[m+((l<<1)+k)|0]|0)>>>4<<2)>>2]|0)+(c[54616+((d[m+((l*3|0)+k)|0]|0)>>>4<<2)>>2]|0)|0}else{k=(c[54616+((a[m+(l+k)|0]&15)<<2)>>2]|0)+(c[54616+((n&15)<<2)>>2]|0)+(c[54616+((a[m+((l<<1)+k)|0]&15)<<2)>>2]|0)+(c[54616+((a[m+((l*3|0)+k)|0]&15)<<2)>>2]|0)|0}if((k|0)==0){i=j;return}tp(b,e,f,g);p=e+56|0;h[p>>3]=+h[b+32+(k<<3)>>3]*+h[p>>3];up(b,e);e=b+168|0;if((c[e>>2]|0)>(f|0)){c[e>>2]=f}e=b+176|0;if((c[e>>2]|0)<(f|0)){c[e>>2]=f}f=b+172|0;if((c[f>>2]|0)>(g|0)){c[f>>2]=g}b=b+180|0;if((c[b>>2]|0)>=(g|0)){i=j;return}c[b>>2]=g;i=j;return}function yp(b,e,f,g,j,l,m,n){b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0.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,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,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0.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.0,Ia=0.0;o=i;s=i;i=i+64|0;q=s;L=i;i=i+80|0;p=L;U=i;i=i+8|0;if((a[b+189|0]&1)!=0){w=+h[n>>3];z=+h[n+8>>3];A=+h[n+16>>3];ma=+h[n+24>>3];Ha=+h[n+32>>3];Ia=+h[n+40>>3];c[s>>2]=g;c[q+4>>2]=j&1;c[q+8>>2]=l;c[q+12>>2]=m;Ga=q+16|0;h[k>>3]=w;c[Ga>>2]=c[k>>2];c[Ga+4>>2]=c[k+4>>2];Ga=q+24|0;h[k>>3]=z;c[Ga>>2]=c[k>>2];c[Ga+4>>2]=c[k+4>>2];Ga=q+32|0;h[k>>3]=A;c[Ga>>2]=c[k>>2];c[Ga+4>>2]=c[k+4>>2];Ga=q+40|0;h[k>>3]=ma;c[Ga>>2]=c[k>>2];c[Ga+4>>2]=c[k+4>>2];Ga=q+48|0;h[k>>3]=Ha;c[Ga>>2]=c[k>>2];c[Ga+4>>2]=c[k+4>>2];Ga=q+56|0;h[k>>3]=Ia;c[Ga>>2]=c[k>>2];c[Ga+4>>2]=c[k+4>>2];Kb(54104,q|0)|0}a:do{switch(c[(c[b>>2]|0)+16>>2]|0){case 2:{if((g|0)==2){ba=3;break a}else{f=7}i=o;return f|0};case 3:{if((g|0)==3){ba=3;break a}else{f=7}i=o;return f|0};case 1:case 0:{if((g|0)==1){ba=1;break a}else{f=7}i=o;return f|0};case 4:{if((g|0)==4){ba=4;break a}else{f=7}i=o;return f|0};default:{Ga=7;i=o;return Ga|0}}}while(0);ma=+h[n>>3];z=+h[n+24>>3];w=ma*z;r=+h[n+8>>3];A=+h[n+16>>3];Ha=r*A;if(+S(+(w-Ha))<1.0e-6){Ga=8;i=o;return Ga|0}q=+S(+r)>+S(+ma);if(q){Ia=A-w/r;w=-0.0-r;A=(-0.0-z)/Ia;z=Ia;r=(-0.0-ma)/r}else{z=z-Ha/ma;w=ma;A=A/z;r=r/ma}ma=+h[n+32>>3];do{if(w<0.0){Ha=ma+.01;if(Ha<=0.0){Ha=+R(+Ha)}s=~~Ha;ma=w+ma+-.01;if(ma>0.0){break}ma=+R(+ma)}else{Ha=ma+-.01;if(Ha<=0.0){Ha=+R(+Ha)}s=~~Ha;ma=w+ma+.01;if(ma>0.0){break}ma=+R(+ma)}}while(0);t=~~ma-s|0;aa=(t|0)>-1?t:0-t|0;t=aa+1|0;ma=+h[n+40>>3];do{if(z<0.0){Ha=ma+.01;if(Ha<=0.0){Ha=+R(+Ha)}n=~~Ha;ma=z+ma+-.01;if(ma>0.0){break}ma=+R(+ma)}else{Ha=ma+-.01;if(Ha<=0.0){Ha=+R(+Ha)}n=~~Ha;ma=z+ma+.01;if(ma>0.0){break}ma=+R(+ma)}}while(0);u=~~ma-n|0;M=(u|0)>-1?u:0-u|0;u=M+1|0;ca=w<0.0;v=ca?-1:1;y=z<0.0?-1:1;w=r*+(v|0);x=da(aa,v)|0;B=~~(r*+(x|0));z=+(y|0);A=A*z;ma=A*+(M|0)+.5;if(ma>0.0){F=~~ma;D=da(M,y)|0;C=~~(r*+(F|0))+D|0}else{ma=+R(+ma);F=~~ma;D=da(M,y)|0;C=~~(r*+(F|0))+D|0}G=~~ma+x|0;H=~~(r*+(G|0))+D|0;if(q){J=H;D=B;E=C;C=n-F|0;F=n-G|0;G=n-x|0}else{J=G;D=x;E=F;C=C+n|0;F=H+n|0;G=n+B|0}H=E+s|0;I=D+s|0;J=J+s|0;do{if((D|0)>0){if((E|0)>0){K=(s|0)<(J|0)?s:J;B=43;break}else{D=(H|0)<(J|0)?H:J;B=47;break}}else{if((I|0)<(H|0)){K=(I|0)<(J|0)?I:J;B=43;break}else{K=(H|0)<(J|0)?H:J;B=43;break}}}while(0);do{if((B|0)==43){if((D|0)>=0){D=K;B=47;break}if((E|0)<0){D=K;H=(s|0)>(J|0)?s:J;break}else{D=K;H=(H|0)>(J|0)?H:J;break}}}while(0);do{if((B|0)==47){if((I|0)>(H|0)){H=(I|0)>(J|0)?I:J;break}else{H=(H|0)>(J|0)?H:J;break}}}while(0);do{if((n|0)<(G|0)){if((n|0)<(C|0)){E=(n|0)<(F|0)?n:F;break}else{E=(C|0)<(F|0)?C:F;break}}else{if((G|0)<(C|0)){E=(G|0)<(F|0)?G:F;break}else{E=(C|0)<(F|0)?C:F;break}}}while(0);do{if((n|0)>(G|0)){if((n|0)>(C|0)){F=(n|0)>(F|0)?n:F;break}else{F=(C|0)>(F|0)?C:F;break}}else{if((G|0)>(C|0)){F=(G|0)>(F|0)?G:F;break}else{F=(C|0)>(F|0)?C:F;break}}}while(0);C=b+4|0;D=Jp(c[(c[C>>2]|0)+132>>2]|0,D,E,H,F)|0;c[b+184>>2]=D;if((D|0)==1){Ga=0;i=o;return Ga|0}E=(m|0)/(u|0)|0;K=(m|0)%(u|0)|0;J=(l|0)/(t|0)|0;H=(l|0)%(t|0)|0;if((E|0)<0|(E|0)==2147483647){Ga=9;i=o;return Ga|0}I=E+1|0;m=Ae(I,l,ba)|0;if(j){G=U;O=1;F=ye(I,l)|0}else{G=U;O=(D|0)!=0&(a[b+188|0]&1)!=0;F=0}N=c[C>>2]|0;ma=+h[N+72>>3];c[L>>2]=0;c[p+4>>2]=0;L=N+136|0;P=c[L>>2]|0;if((P|0)!=0){c[p+40>>2]=c[P+20>>2]}Q=c[b>>2]|0;P=Q+16|0;switch(c[P>>2]|0){case 1:{c[p+44>>2]=c[Q+20>>2];break};case 3:case 2:{c[p+44>>2]=c[Q+20>>2];break};case 4:{c[p+44>>2]=c[Q+20>>2];break};case 0:{c[p+44>>2]=c[Q+20>>2];c[p+48>>2]=128;break};default:{}}c[p+52>>2]=c[Q+24>>2];Q=N+141|0;do{if((a[Q]&1)==0){B=79}else{V=c[b+16>>2]|0;T=c[V+24>>2]|0;if((T|0)==0){B=79;break}Ga=da(c[V>>2]|0,c[b+24>>2]|0)|0;c[p+36>>2]=T+((c[b+20>>2]|0)+Ga)}}while(0);if((B|0)==79){c[p+36>>2]=0}c[p+8>>2]=0;c[p+28>>2]=G;T=p+16|0;h[T>>3]=ma;do{if((c[L>>2]|0)==0){Ha=ma*255.0;if(O){h[T>>3]=Ha;break}Ha=Ha+.5;if(Ha<=0.0){Ha=+R(+Ha)}a[p+25|0]=~~Ha}}while(0);a[p+24|0]=O&1;do{if(ma==1.0){if((c[L>>2]|0)!=0|O){B=90;break}if((a[Q]&1)!=0){B=90;break}a[p+64|0]=1;c[p+68>>2]=c[53872+(c[P>>2]<<2)>>2]}else{B=90}}while(0);do{if((B|0)==90){a[p+64|0]=0;L=c[P>>2]|0;if((c[N+60>>2]|0)==0){c[p+68>>2]=c[53896+(L<<2)>>2];break}else{c[p+68>>2]=c[53920+(L<<2)>>2];break}}}while(0);c[p+72>>2]=0;L=b+188|0;if((a[L]&1)!=0){c[b+12>>2]=-1}M=(M|0)>-1;do{if(j){if(!M){break}O=(E|0)>0;T=(D|0)==0;M=T|q;j=w<0.0;N=(aa|0)>-1;P=U+1|0;Q=U+2|0;W=U+3|0;X=p+56|0;_=b+168|0;$=b+176|0;Y=b+172|0;U=b+180|0;V=J+1|0;Z=ca?aa:0;aa=ca?0:aa;ba=da(ba,l)|0;ga=1;ca=0;ea=0;while(1){Ga=ea+K|0;fa=(Ga|0)<(u|0);ea=Ga-(fa?0:u)|0;fa=fa?E:I;ia=O?fa:ga;if((ia|0)>0){ja=0;ga=m;ha=F;while(1){sd[e&127](f,ga,ha)|0;ja=ja+1|0;if((ja|0)<(ia|0)){ha=ha+l|0;ga=ga+ba|0}else{break}}}ma=+(ca|0);Ha=A*ma+.5;if(Ha<=0.0){Ha=+R(+Ha)}ja=~~Ha;Ha=r*+(ja|0);do{if(M){ia=D;B=107}else{ga=~~Ha;if((ga|0)!=(~~(r*+(ja+x|0))|0)){ia=D;B=107;break}Ga=ja+s|0;ia=(da(ca,y)|0)+n+ga|0;ia=Kp(c[(c[C>>2]|0)+132>>2]|0,Ga-Z|0,Ga+aa|0,ia)|0;if((ia|0)!=1){B=107}}}while(0);b:do{if((B|0)==107){B=0;ma=z*ma+Ha;if(j){ma=ma+.999}ga=(fa|0)<1?1:fa;switch(g|0){case 3:case 2:{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;sa=va*3|0;wa=(oa|0)>1?oa:1;ta=wa*3|0;Fa=0;xa=0;ya=m+(ka*3|0)|0;Ga=0;Ea=0;Ca=0;Ba=F+ka|0;while(1){if(ua){za=Ba+wa|0;Da=0;Aa=ya;while(1){Ga=(d[Aa]|0)+Ga|0;Ea=(d[Aa+1|0]|0)+Ea|0;Ca=(d[Aa+2|0]|0)+Ca|0;Fa=(d[Ba]|0)+Fa|0;Da=Da+1|0;if((Da|0)<(ra|0)){Ba=Ba+1|0;Aa=Aa+3|0}else{break}}ya=ya+ta|0;Da=Ga;Aa=Ea}else{Da=Ga;Aa=Ea;za=Ba}xa=xa+1|0;if((xa|0)<(ga|0)){ya=ya+sa|0;Ga=Da;Ea=Aa;Ba=za+va|0}else{break}}}else{Fa=0;Da=0;Aa=0;Ca=0}Ha=1.0/+(da(ra,ga)|0);Ia=+(Fa|0)*Ha*.00392156862745098;do{if(Ia>0.0){a[G]=~~(+(Da|0)*Ha);a[P]=~~(+(Aa|0)*Ha);a[Q]=~~(+(Ca|0)*Ha);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 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=FW(28)|0;Ke(E,c[C>>2]|0,c[C+4>>2]|0,c[C+8>>2]|0,c[D>>2]|0,1,(c[G>>2]|0)>-1);B=c[E+20>>2]|0;A=c[E+24>>2]|0;C=c[b>>2]|0;C=da(c[C+4>>2]|0,c[C>>2]|0)|0;if((C|0)<=0){D=0;C=E;E=1;break}bX(A|0,0,C|0)|0;D=0;C=E;E=1}}while(0);if(!(jd[c[(c[d>>2]|0)+20>>2]&511](d)|0)){wa=0;i=j;return wa|0}a:do{if((jd[c[(c[d>>2]|0)+24>>2]&511](d)|0)>0){L=p+8|0;M=q+8|0;J=t+8|0;O=p+16|0;G=q+16|0;H=t+16|0;U=o+16|0;W=o+32|0;I=o+8|0;K=o+24|0;P=o+40|0;V=x+4|0;F=u+4|0;Q=x+8|0;T=u+8|0;N=0;b:while(1){rd[c[(c[d>>2]|0)+28>>2]&1](d,N,p,q,t,L,M,J,O,G,H);ua=+h[r>>3];Z=+h[n>>3];_=+h[W>>3]+(ua*+h[o>>3]+Z*+h[U>>3]);Z=+h[P>>3]+(ua*+h[I>>3]+Z*+h[K>>3]);h[r>>3]=_;h[n>>3]=Z;_=_+.5;if(_<=0.0){_=+R(+_)}ia=~~_;c[w>>2]=ia;Z=Z+.5;if(Z<=0.0){Z=+R(+Z)}X=~~Z;c[y>>2]=X;ua=+h[L>>3];Z=+h[M>>3];_=+h[W>>3]+(ua*+h[o>>3]+Z*+h[U>>3]);Z=+h[P>>3]+(ua*+h[I>>3]+Z*+h[K>>3]);h[L>>3]=_;h[M>>3]=Z;_=_+.5;if(_<=0.0){_=+R(+_)}Y=~~_;c[F>>2]=Y;Z=Z+.5;if(Z<=0.0){Z=+R(+Z)}ba=~~Z;c[V>>2]=ba;ua=+h[O>>3];Z=+h[G>>3];_=+h[W>>3]+(ua*+h[o>>3]+Z*+h[U>>3]);Z=+h[P>>3]+(ua*+h[I>>3]+Z*+h[K>>3]);h[O>>3]=_;h[G>>3]=Z;_=_+.5;if(_<=0.0){_=+R(+_)}la=~~_;c[T>>2]=la;Z=Z+.5;if(Z<=0.0){Z=+R(+Z)}ga=~~Z;c[Q>>2]=ga;if((X|0)>(ba|0)){c[w>>2]=Y;c[F>>2]=ia;c[y>>2]=ba;c[V>>2]=X;ua=+h[v>>3];h[v>>3]=+h[J>>3];h[J>>3]=ua;ka=Y;Y=X}else{ka=ia;ia=Y;Y=ba;ba=X}if((ba|0)>(Y|0)){F=45;break}do{if((Y|0)>(ga|0)){Z=+h[H>>3];c[T>>2]=ia;c[Q>>2]=Y;h[H>>3]=+h[J>>3];if((ba|0)>(ga|0)){c[F>>2]=ka;c[V>>2]=ba;h[J>>3]=+h[v>>3];c[w>>2]=la;c[y>>2]=ga;h[v>>3]=Z;aa=ka;ka=la;X=ba;ba=ga;break}else{c[F>>2]=la;c[V>>2]=ga;h[J>>3]=Z;aa=la;X=ga;break}}else{aa=ia;ia=la;X=Y;Y=ga}}while(0);if((ba|0)>(X|0)){F=51;break}if((X|0)>(Y|0)){F=53;break}do{if((da(ka-ia|0,X-Y|0)|0)!=(da(aa-ia|0,ba-Y|0)|0)){ga=(ba|0)==(X|0);la=ga?2:1;ga=ga&1;ra=c[x+(ga<<2)>>2]|0;wa=c[x+(la<<2)>>2]|0;if((ra|0)>=(wa|0)){F=56;break b}if((ba|0)>=(Y|0)){F=58;break b}va=c[u+(ga<<2)>>2]|0;ha=+((c[u+(la<<2)>>2]|0)-va|0)/+(wa-ra|0);fa=+(va|0)- +(ra|0)*ha;_=+(ia-ka|0)/+(Y-ba|0);$=+(ka|0)- +(ba|0)*_;Z=+(X|0);if(fa+ha*Z>$+_*Z){qa=ra;va=wa;ra=ba;wa=Y;ca=$;ea=_;ka=2;oa=0}else{qa=ba;va=Y;ca=fa;ea=ha;fa=$;ha=_;ka=la;oa=ga;la=2;ga=0}ma=+h[t+(oa<<3)>>3];na=(+h[t+(ka<<3)>>3]-ma)/+(wa-ra|0);pa=+h[t+(ga<<3)>>3];sa=(+h[t+(la<<3)>>3]-pa)/+(va-qa|0);if((ba|0)>(Y|0)){break}_=+(ia-aa|0);$=+(aa|0);aa=ba;ia=(X|0)<(Y|0);ja=na;ma=ma- +(ra|0)*na;na=sa;pa=pa- +(qa|0)*sa;ba=da(ba,e)|0;while(1){if(ia&(aa|0)==(X|0)){do{if((ka|0)==1){ma=+(Y-X|0);ea=_/ma;ua=+h[J>>3];ma=(+h[H>>3]-ua)/ma;ca=$-Z*ea;ka=2;oa=1;ja=ma;ma=ua-Z*ma}else{if((la|0)!=1){break}pa=+(Y-X|0);ha=_/pa;ua=+h[J>>3];pa=(+h[H>>3]-ua)/pa;fa=$-Z*ha;la=2;ga=1;na=pa;pa=ua-Z*pa}}while(0);if((c[x+(oa<<2)>>2]|0)>=(c[x+(ka<<2)>>2]|0)){F=69;break b}if((c[x+(ga<<2)>>2]|0)<(c[x+(la<<2)>>2]|0)){ia=0}else{F=71;break b}}ta=+(aa|0);sa=ta*ja+ma;ua=ca+ta*ea+.5;if(ua<=0.0){ua=+R(+ua)}ra=~~ua;ua=fa+ta*ha+.5;if(ua<=0.0){ua=+R(+ua)}qa=~~ua;if((qa|0)==(ra|0)){ta=0.0}else{ta=(ta*na+pa-sa)/+(qa-ra|0)}ua=+(ra|0)*ta;sa=sa-ua;if((ra|0)>(qa|0)){qa=ra-qa|0;if((((qa|0)>-1?qa:0-qa|0)|0)>=3){F=80;break b}}else{wa=da(aa,l)|0;va=ra;ra=(da(ra,k)|0)+ba|0;ua=ua+sa;while(1){do{if(vp(s,va,aa)|0){if(+S(+(ua-(sa+ta*+(va|0))))>=1.0e-10){F=84;break b}od[c[(c[d>>2]|0)+32>>2]&1](d,ua,z,B+ra|0);if(!E){break}a[A+(va+wa)|0]=-1}}while(0);if((va|0)<(qa|0)){va=va+1|0;ra=ra+k|0;ua=ta+ua}else{break}}}if((aa|0)<(Y|0)){aa=aa+1|0;ba=ba+e|0}else{break}}}}while(0);N=N+1|0;if((N|0)>=(jd[c[(c[d>>2]|0)+24>>2]&511](d)|0)){break a}}if((F|0)==45){Ya(54248,54264,3348,54280)}else if((F|0)==51){Ya(54248,54264,3363,54280)}else if((F|0)==53){Ya(54312,54264,3364,54280)}else if((F|0)==56){Ya(54328,54264,3392,54280)}else if((F|0)==58){Ya(54368,54264,3393,54280)}else if((F|0)==69){Ya(54328,54264,3451,54280)}else if((F|0)==71){Ya(54368,54264,3452,54280)}else if((F|0)==80){Ya(54408,54264,3474,54280)}else if((F|0)==84){Ya(54472,54264,3487,54280)}}}while(0);if(D){wa=1;i=j;return wa|0}o=c[C>>2]|0;n=c[C+4>>2]|0;if((o|0)>0){t=(n|0)>0;d=(k|0)==0;s=b+168|0;r=b+176|0;q=b+172|0;y=b+180|0;u=0;do{if(t){v=da(u,k)|0;w=0;do{do{if((a[A+((da(w,l)|0)+u)|0]|0)!=0){x=(da(w,e)|0)+v|0;if(!d){p=0;do{a[g+p|0]=a[B+(x+p)|0]|0;p=p+1|0;}while((p|0)<(k|0))}if((a[m]&1)!=0){xp(b,f,u,w);break}tp(b,f,u,w);up(b,f);if((c[s>>2]|0)>(u|0)){c[s>>2]=u}if((c[r>>2]|0)<(u|0)){c[r>>2]=u}if((c[q>>2]|0)>(w|0)){c[q>>2]=w}if((c[y>>2]|0)>=(w|0)){break}c[y>>2]=w}}while(0);w=w+1|0;}while((w|0)<(n|0))}u=u+1|0;}while((u|0)<(o|0))}if((C|0)==0){wa=1;i=j;return wa|0}Le(C);HW(C);wa=1;i=j;return wa|0}function Cp(b,e,f,g,h,j,k,l){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;m=i;n=i;i=i+8|0;o=n;q=c[e+16>>2]|0;p=c[b>>2]|0;if((q|0)!=(c[p+16>>2]|0)){x=7;i=m;return x|0}a:do{switch(q|0){case 0:{if((l|0)<=0){break a}r=h>>3;q=128>>>(h&7);s=(k|0)>0;t=0;while(1){if(s){w=da(c[p+12>>2]|0,t+j|0)|0;u=t+g|0;v=q;p=(c[p+20>>2]|0)+(w+r)|0;w=0;while(1){Oe(e,w+f|0,u,o);if((a[n]|0)==0){x=d[p]&(v^255)}else{x=d[p]|v}a[p]=x;v=v>>1;x=(v|0)==0;w=w+1|0;if((w|0)<(k|0)){v=x?128:v;p=x?p+1|0:p}else{break}}}t=t+1|0;if((t|0)>=(l|0)){break a}p=c[b>>2]|0}break};case 3:case 2:{if((l|0)<=0){break a}o=h*3|0;n=e+12|0;f=f*3|0;e=e+20|0;q=(k|0)>0;r=0;while(1){if(q){s=da(c[n>>2]|0,r+g|0)|0;t=da(c[p+12>>2]|0,r+j|0)|0;p=(c[p+20>>2]|0)+(t+o)|0;s=(c[e>>2]|0)+(s+f)|0;t=0;while(1){a[p]=a[s]|0;a[p+1|0]=a[s+1|0]|0;a[p+2|0]=a[s+2|0]|0;t=t+1|0;if((t|0)<(k|0)){s=s+3|0;p=p+3|0}else{break}}}r=r+1|0;if((r|0)>=(l|0)){break a}p=c[b>>2]|0}break};case 1:{if((l|0)<=0){break a}q=(k|0)>0;r=0;while(1){if(q){t=da(c[p+12>>2]|0,r+j|0)|0;s=r+g|0;p=(c[p+20>>2]|0)+(t+h)|0;t=0;while(1){Oe(e,t+f|0,s,o);a[p]=a[n]|0;t=t+1|0;if((t|0)<(k|0)){p=p+1|0}else{break}}}r=r+1|0;if((r|0)>=(l|0)){break a}p=c[b>>2]|0}break};case 4:{if((l|0)<=0){break a}n=h<<2;o=e+12|0;f=f<<2;e=e+20|0;q=(k|0)>0;r=0;while(1){if(q){s=da(c[o>>2]|0,r+g|0)|0;t=da(c[p+12>>2]|0,r+j|0)|0;p=(c[p+20>>2]|0)+(t+n)|0;s=(c[e>>2]|0)+(s+f)|0;t=0;while(1){a[p]=a[s]|0;a[p+1|0]=a[s+1|0]|0;a[p+2|0]=a[s+2|0]|0;a[p+3|0]=-1;t=t+1|0;if((t|0)<(k|0)){s=s+4|0;p=p+4|0}else{break}}}r=r+1|0;if((r|0)>=(l|0)){break a}p=c[b>>2]|0}break};default:{}}}while(0);e=c[b>>2]|0;g=c[e+24>>2]|0;if((g|0)!=0&(l|0)>0){f=0}else{x=0;i=m;return x|0}while(1){bX(g+((da(c[e>>2]|0,f+j|0)|0)+h)|0,0,k|0)|0;f=f+1|0;if((f|0)>=(l|0)){h=0;break}e=c[b>>2]|0;g=c[e+24>>2]|0}i=m;return h|0}function Dp(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;r=i;j=i;i=i+80|0;u=i;i=i+8|0;t=i;i=i+8|0;s=i;i=i+8|0;m=i;i=i+8|0;k=i;i=i+8|0;o=k;l=i;i=i+8|0;p=l;n=b+8|0;if((c[n>>2]|0)==0){y=255;i=r;return y|0}if((c[d+8>>2]|0)==0){y=2;i=r;return y|0}g=FW(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=FW(52)|0;$q(s,k,g);c[(c[b+64>>2]|0)+(c[l>>2]<<2)>>2]=s;c[l>>2]=(c[l>>2]|0)+1;i=j;return 0}function Jp(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.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0;g=i;j=+(e+1|0);k=+h[a+8>>3];if(j<=k){e=1;i=g;return e|0}m=+(b|0);l=+h[a+24>>3];if(m>l){e=1;i=g;return e|0}o=+(f+1|0);n=+h[a+16>>3];if(o<=n){e=1;i=g;return e|0}p=+(d|0);q=+h[a+32>>3];if(p>q){e=1;i=g;return e|0}do{if(!(m<k|j>l|p<n|o>q)){if((c[a+68>>2]|0)==0){a=0}else{break}i=g;return a|0}}while(0);e=2;i=g;return e|0}function Kp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=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,t=0;g=i;r=+(e+1|0);q=+h[b+8>>3];if(r<=q){t=1;i=g;return t|0}p=+(d|0);l=+h[b+24>>3];if(p>l){t=1;i=g;return t|0}n=+(f+1|0);m=+h[b+16>>3];if(n<=m){t=1;i=g;return t|0}o=+(f|0);k=+h[b+32>>3];if(o>k){t=1;i=g;return t|0}if(p<q|r>l|o<m|n>k){t=2;i=g;return t|0}j=b+68|0;s=(c[j>>2]|0)>0;if((a[b]&1)==0){if(!s){t=0;i=g;return t|0}t=b+64|0;s=0;while(1){b=s+1|0;if(!(er(c[(c[t>>2]|0)+(s<<2)>>2]|0,d,e,f)|0)){e=2;f=15;break}if((b|0)<(c[j>>2]|0)){s=b}else{e=0;f=15;break}}if((f|0)==15){i=g;return e|0}}else{if(!s){t=0;i=g;return t|0}b=b+64|0;d=d<<2;e=e<<2|3;f=f<<2;s=0;while(1){t=s+1|0;if(!(er(c[(c[b>>2]|0)+(s<<2)>>2]|0,d,e,f)|0)){e=2;f=15;break}if((t|0)<(c[j>>2]|0)){s=t}else{e=0;f=15;break}}if((f|0)==15){i=g;return e|0}}return 0}function Lp(b,e,f,g,j){b=b|0;e=e|0;f=f|0;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.0,w=0;k=i;n=c[f>>2]|0;s=n<<2;l=b+8|0;v=+h[l>>3]*4.0;if(v<=0.0){v=+R(+v)}m=~~v;o=c[e>>2]|0;m=(m|0)>(o|0)?o:m;if((s|0)<(m|0)){o=s&-8;q=e+20|0;p=e+12|0;r=n>>1;n=255>>>(m&7);u=(c[q>>2]|0)+r|0;do{if((s|7|0)<(m|0)){t=o;while(1){s=u+1|0;a[u]=0;u=t+8|0;if((t+15|0)<(m|0)){t=u;u=s}else{break}}if((u|0)<(m|0)){a[s]=(d[s]|0)&n}u=(c[q>>2]|0)+((c[p>>2]|0)+r)|0;t=o;while(1){s=u+1|0;a[u]=0;u=t+8|0;if((t+15|0)<(m|0)){t=u;u=s}else{break}}if((u|0)<(m|0)){a[s]=(d[s]|0)&n}u=(c[q>>2]|0)+((c[p>>2]<<1)+r)|0;s=o;while(1){t=u+1|0;a[u]=0;u=s+8|0;if((s+15|0)<(m|0)){s=u;u=t}else{break}}if((u|0)<(m|0)){a[t]=(d[t]|0)&n}p=(c[q>>2]|0)+(((c[p>>2]|0)*3|0)+r)|0;while(1){q=p+1|0;a[p]=0;p=o+8|0;if((o+15|0)<(m|0)){o=p;p=q}else{break}}if((p|0)>=(m|0)){break}a[q]=(d[q]|0)&n}else{if((o|0)>=(m|0)){break}a[u]=(d[u]|0)&n;u=(c[q>>2]|0)+((c[p>>2]|0)+r)|0;a[u]=(d[u]|0)&n;u=(c[q>>2]|0)+((c[p>>2]<<1)+r)|0;a[u]=(d[u]|0)&n;u=(c[q>>2]|0)+(((c[p>>2]|0)*3|0)+r)|0;a[u]=(d[u]|0)&n}}while(0);v=+h[l>>3];if(v<=0.0){v=+R(+v)}c[f>>2]=~~v}l=b+24|0;v=+h[l>>3]*4.0;if(v<=0.0){v=+R(+v)}m=~~v+1|0;r=(m|0)<0?0:m;m=(c[g>>2]<<2)+4|0;if((r|0)<(m|0)){p=e+20|0;o=e+12|0;n=r>>3;w=r&7;s=65280>>>w;q=r+8&-8;t=c[p>>2]|0;u=t+n|0;do{if((w|0)==0){if((r|0)<(m|0)){q=r;while(1){a[u]=0;q=q+8|0;if((q|0)<(m|0)){u=u+1|0}else{break}}t=c[p>>2]|0}q=c[o>>2]|0;if((r|0)<(m|0)){q=t+(q+n)|0;s=r;while(1){a[q]=0;s=s+8|0;if((s|0)<(m|0)){q=q+1|0}else{break}}q=c[o>>2]|0;t=c[p>>2]|0}if((r|0)<(m|0)){q=t+((q<<1)+n)|0;s=r;while(1){a[q]=0;s=s+8|0;if((s|0)<(m|0)){q=q+1|0}else{break}}q=c[o>>2]|0;t=c[p>>2]|0}if((r|0)<(m|0)){n=t+((q*3|0)+n)|0}else{break}while(1){a[n]=0;r=r+8|0;if((r|0)<(m|0)){n=n+1|0}else{break}}}else{a[u]=(d[u]|0)&s;if((q|0)<(m|0)){r=t+(n+1)|0;t=q;while(1){a[r]=0;t=t+8|0;if((t|0)<(m|0)){r=r+1|0}else{break}}}r=c[p>>2]|0;t=(c[o>>2]|0)+n|0;w=r+t|0;a[w]=(d[w]|0)&s;if((q|0)<(m|0)){r=r+(t+1)|0;t=q;while(1){a[r]=0;t=t+8|0;if((t|0)<(m|0)){r=r+1|0}else{break}}}r=c[p>>2]|0;t=(c[o>>2]<<1)+n|0;w=r+t|0;a[w]=(d[w]|0)&s;if((q|0)<(m|0)){r=r+(t+1)|0;t=q;while(1){a[r]=0;t=t+8|0;if((t|0)<(m|0)){r=r+1|0}else{break}}}p=c[p>>2]|0;n=((c[o>>2]|0)*3|0)+n|0;w=p+n|0;a[w]=(d[w]|0)&s;if((q|0)<(m|0)){n=p+(n+1)|0}else{break}while(1){a[n]=0;q=q+8|0;if((q|0)<(m|0)){n=n+1|0}else{break}}}}while(0);v=+h[l>>3];if(v<=0.0){v=+R(+v)}c[g>>2]=~~v}l=b+68|0;if((c[l>>2]|0)<=0){i=k;return}b=b+64|0;m=0;do{ir(c[(c[b>>2]|0)+(m<<2)>>2]|0,e,f,g,j);m=m+1|0;}while((m|0)<(c[l>>2]|0));i=k;return}function Mp(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;bX(a|0,0,64)|0;if(b){c[a+64>>2]=fH(e,d)|0;i=f;return}else{c[a+64>>2]=0;i=f;return}}function Np(a){a=a|0;var b=0,d=0,e=0;b=i;d=0;do{e=c[a+(d<<2)>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}d=d+1|0;}while((d|0)<16);a=c[a+64>>2]|0;if((a|0)==0){i=b;return}gH(a);HW(a);i=b;return}function Op(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;e=0;a:while(1){f=c[a+(e<<2)>>2]|0;do{if((f|0)!=0){f=c[f+4>>2]|0;if((f|0)==0){break}g=c[f+8>>2]|0;if(Bd[c[(c[g>>2]|0)+8>>2]&255](g,b)|0){b=6;break a}}}while(0);e=e+1|0;if((e|0)>=16){f=0;b=6;break}}if((b|0)==6){i=d;return f|0}return 0}function Pp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=hH(b,d,e,f)|0}if((a[e]&1)==0){i=g;return d|0}Zp(e);i=g;return d|0}function Qp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=iH(b,d,e,f)|0}if((a[e]&1)==0){i=g;return d|0}Zp(e);i=g;return d|0}function Rp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=jH(b,d,e,f)|0}if((a[e]&1)==0){i=g;return d|0}Zp(e);i=g;return d|0}function Sp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=kH(b,d,e)|0}if((a[e]&1)==0){i=f;return d|0}Zp(e);i=f;return d|0}function Tp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=lH(b,d,e)|0}if((a[e]&1)==0){i=f;return d|0}Zp(e);i=f;return d|0}function Up(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;j=i;b=c[b+64>>2]|0;if((b|0)==0){k=3}else{d=mH(b,d,e,f,g,h)|0;if((d|0)==0){k=3}}if((k|0)==3){Fe(f);d=0}if((a[e]&1)==0){i=j;return d|0}Zp(e);i=j;return d|0}function Vp(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.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0,r=0.0,s=0,t=0.0,u=0.0;f=i;q=i;i=i+32|0;g=q;k=+h[d>>3];u=+h[e>>3];j=+h[d+8>>3];p=+h[e+16>>3];n=k*u+j*p;h[q>>3]=n;t=+h[e+8>>3];o=+h[e+24>>3];r=-0.0-(k*t+j*o);e=g+8|0;h[e>>3]=r;m=+h[d+16>>3];l=+h[d+24>>3];p=m*u+l*p;h[g+16>>3]=p;o=-0.0-(m*t+l*o);s=g+24|0;h[s>>3]=o;if(+S(+(n*o-p*r))<.01){h[q>>3]=.01;bX(e|0,0,16)|0;h[s>>3]=.01;o=.01;p=0.0;r=0.0;n=.01}q=c[a>>2]|0;do{if((q|0)==0){e=1}else{if((c[q+4>>2]|0)!=(b|0)){e=1;break}if(n!=+h[q+8>>3]){e=1;break}if(r!=+h[q+16>>3]){e=1;break}if(p!=+h[q+24>>3]){e=1;break}if(o!=+h[q+32>>3]){e=1;break}if(k!=+h[q+40>>3]){e=1;break}if(j!=+h[q+48>>3]){e=1;break}if(m!=+h[q+56>>3]){e=1;break}if(l!=+h[q+64>>3]){e=1;break}i=f;return q|0}}while(0);a:while(1){q=c[a+(e<<2)>>2]|0;do{if((q|0)!=0){if((c[q+4>>2]|0)!=(b|0)){break}if(n!=+h[q+8>>3]){break}if(r!=+h[q+16>>3]){break}if(p!=+h[q+24>>3]){break}if(o!=+h[q+32>>3]){break}if(k!=+h[q+40>>3]){break}if(j!=+h[q+48>>3]){break}if(m!=+h[q+56>>3]){break}if(l==+h[q+64>>3]){s=23;break a}}}while(0);e=e+1|0;if((e|0)>=16){s=27;break}}if((s|0)==23){if((e|0)>0){while(1){b=e+ -1|0;c[a+(e<<2)>>2]=c[a+(b<<2)>>2];if((b|0)>0){e=b}else{break}}}c[a>>2]=q;s=q;i=f;return s|0}else if((s|0)==27){b=sd[c[(c[b>>2]|0)+8>>2]&127](b,g,d)|0;d=a+60|0;g=c[d>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g)}e=a+56|0;c[d>>2]=c[e>>2];s=a+52|0;c[e>>2]=c[s>>2];e=a+48|0;c[s>>2]=c[e>>2];s=a+44|0;c[e>>2]=c[s>>2];e=a+40|0;c[s>>2]=c[e>>2];s=a+36|0;c[e>>2]=c[s>>2];e=a+32|0;c[s>>2]=c[e>>2];s=a+28|0;c[e>>2]=c[s>>2];e=a+24|0;c[s>>2]=c[e>>2];s=a+20|0;c[e>>2]=c[s>>2];e=a+16|0;c[s>>2]=c[e>>2];s=a+12|0;c[e>>2]=c[s>>2];e=a+8|0;c[s>>2]=c[e>>2];s=a+4|0;c[e>>2]=c[s>>2];c[s>>2]=c[a>>2];c[a>>2]=b;s=b;i=f;return s|0}return 0}function Wp(b,d,e){b=b|0;d=d|0;e=e|0;c[b>>2]=54752;c[b+8>>2]=d;c[b+12>>2]=e;d=e+16|0;c[d>>2]=(c[d>>2]|0)+1;c[b+16>>2]=0;a[b+4|0]=0;i=i;return}function Xp(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=54752;Zp(c[a+12>>2]|0);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 Yp(a){a=a|0;var b=0;b=i;c[a>>2]=54752;Zp(c[a+12>>2]|0);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 Zp(b){b=b|0;var d=0,e=0,f=0;d=i;f=b+16|0;e=(c[f>>2]|0)+ -1|0;c[f>>2]=e;if((e|0)!=0|(b|0)==0){i=d;return}do{if((a[b+20|0]&1)!=0){if((a[b]&1)==0){e=c[b+8>>2]|0;if((e|0)==0){break}Fe(e);break}else{e=c[b+4>>2]|0;if((e|0)==0){break}hb(c[e+28>>2]|0)|0;break}}}while(0);do{if((a[b]&1)!=0){e=c[b+4>>2]|0;if((e|0)==0){break}ke(e);HW(e)}}while(0);HW(b);i=d;return}function _p(a){a=a|0;a=a+16|0;c[a>>2]=(c[a>>2]|0)+1;i=i;return}function $p(a){a=a|0;var b=0,d=0,e=0;b=i;e=a+16|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)+4>>2]&511](a);i=b;return}function aq(b){b=b|0;a[b]=0;a[b+20|0]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+16>>2]=1;i=i;return}function bq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;a[b]=1;g=FW(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(80)|0;Fp(j,g);c[b+132>>2]=j;c[b+136>>2]=c[d+136>>2];a[b+140|0]=0;a[b+141|0]=a[d+141|0]&1;c[b+144>>2]=0;i=e;return}function Kq(b){b=b|0;var d=0,e=0;d=i;e=c[b+48>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+8>>2]&511](e)}e=c[b+52>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+8>>2]&511](e)}e=c[b+56>>2]|0;if((e|0)!=0){Fq(e);HW(e)}Fe(c[b+112>>2]|0);e=c[b+132>>2]|0;if((e|0)!=0){Gp(e);HW(e)}if((a[b+140|0]&1)==0){i=d;return}b=c[b+136>>2]|0;if((b|0)==0){i=d;return}Le(b);HW(b);i=d;return}function Lq(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+48|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+8>>2]&511](e)}c[a>>2]=b;i=d;return}function Mq(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+52|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+8>>2]&511](e)}c[a>>2]=b;i=d;return}function Nq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=+e;var f=0,g=0,j=0;f=i;j=a+112|0;Fe(c[j>>2]|0);g=a+116|0;c[g>>2]=d;if((d|0)>0){d=ye(d,8)|0;c[j>>2]=d;$W(d|0,b|0,c[g>>2]<<3|0)|0;d=a+120|0;h[d>>3]=e;i=f;return}else{c[j>>2]=0;d=a+120|0;h[d>>3]=e;i=f;return}}function Oq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;e=b+140|0;b=b+136|0;do{if((a[e]&1)!=0){g=c[b>>2]|0;if((g|0)==0){break}Le(g);HW(g)}}while(0);c[b>>2]=d;a[e]=1;i=f;return}function Pq(b,e,f,g,j){b=b|0;e=e|0;f=f|0;g=+g;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0,t=0.0,u=0.0,v=0.0,w=0,x=0.0,y=0.0,z=0.0,A=0.0,B=0.0,C=0,D=0,E=0,F=0,G=0;l=i;m=e+8|0;k=ye(c[m>>2]|0,16)|0;if((c[m>>2]|0)>0){C=f+16|0;w=f+32|0;n=f+8|0;o=f+24|0;D=f+40|0;s=0;do{G=c[e>>2]|0;A=+h[G+(s<<4)>>3];B=+h[G+(s<<4)+8>>3];h[k+(s<<4)>>3]=+h[w>>3]+(A*+h[f>>3]+B*+h[C>>3]);h[k+(s<<4)+8>>3]=+h[D>>3]+(A*+h[n>>3]+B*+h[o>>3]);s=s+1|0;}while((s|0)<(c[m>>2]|0))}s=e+20|0;a:do{if((c[s>>2]|0)!=0){o=e+24|0;n=ye(c[o>>2]|0,88)|0;f=c[o>>2]|0;b:do{if((f|0)>0){w=0;while(1){f=c[s>>2]|0;F=c[f+(w<<4)>>2]|0;C=F+1|0;G=c[m>>2]|0;if((C|0)>=(G|0)){p=8;break}E=c[f+(w<<4)+4>>2]|0;D=E+1|0;if((D|0)>=(G|0)){p=8;break}q=+h[k+(F<<4)>>3];t=+h[k+(F<<4)+8>>3];v=+h[k+(C<<4)+8>>3];r=+h[k+(E<<4)>>3];u=+h[k+(E<<4)+8>>3];x=+h[k+(D<<4)+8>>3];do{if(q==+h[k+(C<<4)>>3]){if(r!=+h[k+(D<<4)>>3]){p=12;break}a[n+(w*88|0)+8|0]=1}else{p=12}}while(0);if((p|0)==12){p=0;if(!(t==v&u==x)){p=14;break}a[n+(w*88|0)+8|0]=0;q=t;r=u}C=q>r;t=C?r:q;q=C?q:r;r=q-t+.5;if(r<=0.0){r=+R(+r)}C=~~r;h[n+(w*88|0)+16>>3]=t+-.01;h[n+(w*88|0)+24>>3]=t+.01;B=(t+q)*.5;h[n+(w*88|0)+32>>3]=B+-.01;h[n+(w*88|0)+40>>3]=B+.01;h[n+(w*88|0)+48>>3]=q+-.01;h[n+(w*88|0)+56>>3]=q+.01;q=t+.5;if(q<=0.0){q=+R(+q)}q=+(~~q|0);h[n+(w*88|0)+64>>3]=q;B=((C|0)==0?1.0:+(C|0))+q+-.01;h[n+(w*88|0)+72>>3]=B;h[n+(w*88|0)+80>>3]=(q+B)*.5;c[n+(w*88|0)>>2]=c[f+(w<<4)+8>>2];c[n+(w*88|0)+4>>2]=c[f+(w<<4)+12>>2];w=w+1|0;f=c[o>>2]|0;if((w|0)>=(f|0)){break b}}if((p|0)==8){Fe(n);break a}else if((p|0)==14){Fe(n);break a}}}while(0);if((n|0)==0){break}if((f|0)>0){p=n;s=0;while(1){C=c[p>>2]|0;w=p+4|0;if((C|0)<=(c[w>>2]|0)){while(1){Qq(0,p,k+(C<<4)|0,k+(C<<4)+8|0);if((C|0)<(c[w>>2]|0)){C=C+1|0}else{break}}f=c[o>>2]|0}s=s+1|0;if((s|0)<(f|0)){p=p+88|0}else{break}}}Fe(n)}}while(0);c[b>>2]=0;c[b+8>>2]=0;c[b+4>>2]=0;w=c[m>>2]|0;if((w|0)<=0){Fe(k);i=l;return}e=e+4|0;o=0;s=0;q=0.0;r=0.0;c:while(1){n=k+(o<<4)|0;o=k+(o<<4)+8|0;p=s;t=q;x=r;while(1){f=c[e>>2]|0;s=d[f+p|0]|0;if((s&1|0)!=0){break}v=+h[k+(p<<4)>>3];u=+h[k+(p<<4)+8>>3];if((s&8|0)==0){C=d[f+(p+ -1)|0]|0;w=(C&1|0)!=0;f=s&2;if(j|w^1){C=0}else{C=(C&4|0)==0}if((f|0)==0|j){s=0}else{s=(s&4|0)==0}Sq(b,t,x,v,u,w,(f|0)!=0,C,s);p=p+1|0;t=v}else{C=p+1|0;A=+h[k+(C<<4)>>3];B=+h[k+(C<<4)+8>>3];C=p+2|0;z=+h[k+(C<<4)>>3];y=+h[k+(C<<4)+8>>3];w=d[f+(p+ -1)|0]|0;s=(w&1|0)!=0;C=a[f+C|0]|0;f=(C&2)!=0;if(j|s^1){w=0}else{w=(w&4|0)==0}do{if(j){C=0}else{C=C&255;if((C&2|0)==0){C=0;break}C=(C&4|0)==0}}while(0);Rq(b,t,x,v,u,A,B,z,y,g,s,f,w,C);p=p+3|0;t=z;u=y}do{if(j){s=p+ -1|0;if((a[(c[e>>2]|0)+s|0]&2)==0){break}if(+h[k+(s<<4)>>3]==+h[n>>3]){if(+h[k+(s<<4)+8>>3]==+h[o>>3]){break}}Sq(b,t,u,q,r,0,1,0,0)}}while(0);w=c[m>>2]|0;if((p|0)<(w|0)){x=u}else{p=50;break c}}s=p+1|0;if((s|0)<(w|0)){o=p;q=+h[k+(p<<4)>>3];r=+h[k+(p<<4)+8>>3]}else{p=50;break}}if((p|0)==50){Fe(k);i=l;return}}function Qq(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0.0;b=i;if((a[c+8|0]&1)==0){f=+h[e>>3];do{if(f>+h[c+16>>3]){if(f>=+h[c+24>>3]){break}h[e>>3]=+h[c+64>>3];i=b;return}}while(0);do{if(f>+h[c+32>>3]){if(f>=+h[c+40>>3]){break}h[e>>3]=+h[c+80>>3];i=b;return}}while(0);if(f<=+h[c+48>>3]){i=b;return}if(f>=+h[c+56>>3]){i=b;return}h[e>>3]=+h[c+72>>3];i=b;return}else{f=+h[d>>3];do{if(f>+h[c+16>>3]){if(f>=+h[c+24>>3]){break}h[d>>3]=+h[c+64>>3];i=b;return}}while(0);do{if(f>+h[c+32>>3]){if(f>=+h[c+40>>3]){break}h[d>>3]=+h[c+80>>3];i=b;return}}while(0);if(f<=+h[c+48>>3]){i=b;return}if(f>=+h[c+56>>3]){i=b;return}h[d>>3]=+h[c+72>>3];i=b;return}}function Rq(a,b,d,e,f,g,j,k,l,m,n,o,p,q){a=a|0;b=+b;d=+d;e=+e;f=+f;g=+g;j=+j;k=+k;l=+l;m=+m;n=n|0;o=o|0;p=p|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0.0,x=0.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;u=i;E=i;i=i+24600|0;r=E;H=i;i=i+24600|0;s=H;v=i;i=i+4104|0;t=v;m=m*m;h[E>>3]=b;h[H>>3]=d;h[r+8>>3]=e;h[s+8>>3]=f;h[r+16>>3]=g;h[s+16>>3]=j;h[r+24576>>3]=k;h[s+24576>>3]=l;c[v>>2]=1024;v=0;while(1){H=r+(v*24|0)|0;y=s+(v*24|0)|0;z=r+(v*24|0)+8|0;A=s+(v*24|0)+8|0;B=r+(v*24|0)+16|0;C=s+(v*24|0)+16|0;D=t+(v<<2)|0;while(1){F=+h[H>>3];G=+h[y>>3];k=+h[z>>3];j=+h[A>>3];g=+h[B>>3];f=+h[C>>3];E=c[D>>2]|0;w=+h[r+(E*24|0)>>3];l=+h[s+(E*24|0)>>3];b=(F+w)*.5;x=(G+l)*.5;e=k-b;d=j-x;b=g-b;x=f-x;if((E-v|0)==1){break}if(!(e*e+d*d>m|b*b+x*x>m)){break}d=(F+k)*.5;e=(G+j)*.5;b=(k+g)*.5;x=(j+f)*.5;j=(d+b)*.5;k=(e+x)*.5;F=(g+w)*.5;G=(f+l)*.5;w=(b+F)*.5;x=(x+G)*.5;I=(E+v|0)/2|0;h[z>>3]=d;h[A>>3]=e;h[B>>3]=j;h[C>>3]=k;c[D>>2]=I;h[r+(I*24|0)>>3]=(j+w)*.5;h[s+(I*24|0)>>3]=(k+x)*.5;h[r+(I*24|0)+8>>3]=w;h[s+(I*24|0)+8>>3]=x;h[r+(I*24|0)+16>>3]=F;h[s+(I*24|0)+16>>3]=G;c[t+(I<<2)>>2]=E}H=(v|0)==0;I=(E|0)==1024;Sq(a,F,G,w,l,H&n,I&o,H&p,I&q);if((E|0)<1024){v=E}else{break}}i=u;return}function Sq(a,b,d,e,f,g,j,k,l){a=a|0;b=+b;d=+d;e=+e;f=+f;g=g|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0;m=i;n=a+4|0;q=c[n>>2]|0;o=q+1|0;p=a+8|0;r=c[p>>2]|0;if((q|0)<(r|0)){o=c[a>>2]|0}else{if((r|0)==0){c[p>>2]=32;r=32}if((r|0)<(o|0)){do{r=r<<1;}while((r|0)<(o|0));c[p>>2]=r}o=Ce(c[a>>2]|0,r,56)|0;c[a>>2]=o;q=c[n>>2]|0}h[o+(q*56|0)>>3]=b;h[(c[a>>2]|0)+((c[n>>2]|0)*56|0)+8>>3]=d;h[(c[a>>2]|0)+((c[n>>2]|0)*56|0)+16>>3]=e;h[(c[a>>2]|0)+((c[n>>2]|0)*56|0)+24>>3]=f;c[(c[a>>2]|0)+((c[n>>2]|0)*56|0)+48>>2]=0;if(g){r=(c[a>>2]|0)+((c[n>>2]|0)*56|0)+48|0;c[r>>2]=c[r>>2]|1}if(j){r=(c[a>>2]|0)+((c[n>>2]|0)*56|0)+48|0;c[r>>2]=c[r>>2]|2}if(k){r=(c[a>>2]|0)+((c[n>>2]|0)*56|0)+48|0;c[r>>2]=c[r>>2]|4}if(l){r=(c[a>>2]|0)+((c[n>>2]|0)*56|0)+48|0;c[r>>2]=c[r>>2]|8}do{if(f==d){h[(c[a>>2]|0)+((c[n>>2]|0)*56|0)+40>>3]=0.0;h[(c[a>>2]|0)+((c[n>>2]|0)*56|0)+32>>3]=0.0;r=(c[a>>2]|0)+((c[n>>2]|0)*56|0)+48|0;c[r>>2]=c[r>>2]|16;if(e!=b){break}r=(c[a>>2]|0)+((c[n>>2]|0)*56|0)+48|0;c[r>>2]=c[r>>2]|32}else{if(e==b){h[(c[a>>2]|0)+((c[n>>2]|0)*56|0)+40>>3]=0.0;h[(c[a>>2]|0)+((c[n>>2]|0)*56|0)+32>>3]=0.0;r=(c[a>>2]|0)+((c[n>>2]|0)*56|0)+48|0;c[r>>2]=c[r>>2]|32;break}else{h[(c[a>>2]|0)+((c[n>>2]|0)*56|0)+32>>3]=(e-b)/(f-d);r=c[n>>2]|0;q=c[a>>2]|0;h[q+(r*56|0)+40>>3]=1.0/+h[q+(r*56|0)+32>>3];break}}}while(0);if(d<=f){q=n;q=c[q>>2]|0;q=q+1|0;r=n;c[r>>2]=q;i=m;return}q=(c[a>>2]|0)+((c[n>>2]|0)*56|0)+48|0;c[q>>2]=c[q>>2]|64;q=n;q=c[q>>2]|0;q=q+1|0;r=n;c[r>>2]=q;i=m;return}function Tq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=a+4|0;c[e>>2]=c[b+4>>2];f=c[b+8>>2]|0;c[a+8>>2]=f;f=ye(f,56)|0;c[a>>2]=f;$W(f|0,c[b>>2]|0,(c[e>>2]|0)*56|0)|0;i=d;return}function Uq(a){a=a|0;var b=0;b=i;Fe(c[a>>2]|0);i=b;return}function Vq(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+4|0;if((c[d>>2]|0)<=0){i=b;return}e=0;a=c[a>>2]|0;while(1){h[a>>3]=+h[a>>3]*4.0;f=a+8|0;h[f>>3]=+h[f>>3]*4.0;f=a+16|0;h[f>>3]=+h[f>>3]*4.0;f=a+24|0;h[f>>3]=+h[f>>3]*4.0;e=e+1|0;if((e|0)<(c[d>>2]|0)){a=a+56|0}else{break}}i=b;return}function Wq(a){a=a|0;var b=0,d=0,e=0;b=i;d=i;i=i+8|0;e=c[a>>2]|0;a=e+((c[a+4>>2]|0)*56|0)|0;c[d>>2]=184;Yq(e,a,d);i=b;return}function Xq(a,b){a=a|0;b=b|0;var d=0,e=0.0,f=0.0,g=0,j=0.0,k=0.0;d=i;if((c[a+48>>2]&64|0)==0){g=a;a=a+8|0}else{g=a+16|0;a=a+24|0}e=+h[a>>3];f=+h[g>>3];if((c[b+48>>2]&64|0)==0){g=b;b=b+8|0}else{g=b+16|0;b=b+24|0}j=+h[b>>3];k=+h[g>>3];if(e!=j){a=e<j;i=d;return a|0}else{a=f!=k&f<k;i=d;return a|0}return 0}function Yq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;e=i;h=i;i=i+56|0;r=i;i=i+56|0;o=i;i=i+56|0;q=i;i=i+56|0;n=i;i=i+56|0;E=i;i=i+56|0;G=i;i=i+56|0;C=i;i=i+56|0;F=i;i=i+56|0;D=i;i=i+56|0;z=i;i=i+56|0;J=i;i=i+56|0;y=i;i=i+56|0;B=i;i=i+56|0;f=i;i=i+56|0;g=f;p=i;i=i+56|0;k=i;i=i+56|0;j=i;i=i+56|0;l=i;i=i+56|0;w=i;i=i+56|0;t=i;i=i+56|0;v=i;i=i+56|0;s=i;i=i+56|0;u=i;i=i+56|0;M=i;i=i+56|0;L=i;i=i+56|0;I=i;i=i+56|0;H=i;i=i+56|0;x=i;i=i+56|0;A=i;i=i+56|0;a:while(1){m=b+ -56|0;b:while(1){O=b-a|0;switch((O|0)/56|0|0){case 2:{K=4;break a};case 3:{K=6;break a};case 5:{K=15;break a};case 4:{K=14;break a};case 1:case 0:{K=81;break a};default:{}}if((O|0)<1736){K=21;break a}P=(O|0)/112|0;N=a+(P*56|0)|0;do{if((O|0)>55944){Q=(O|0)/224|0;O=a+(Q*56|0)|0;Q=a+((Q+P|0)*56|0)|0;P=Zq(a,O,N,Q,d)|0;if(!(Bd[c[d>>2]&255](m,Q)|0)){break}$W(B|0,Q|0,56)|0;$W(Q|0,m|0,56)|0;$W(m|0,B|0,56)|0;if(!(Bd[c[d>>2]&255](Q,N)|0)){P=P+1|0;break}$W(J|0,N|0,56)|0;$W(N|0,Q|0,56)|0;$W(Q|0,J|0,56)|0;if(!(Bd[c[d>>2]&255](N,O)|0)){P=P+2|0;break}$W(z|0,O|0,56)|0;$W(O|0,N|0,56)|0;$W(N|0,z|0,56)|0;if(!(Bd[c[d>>2]&255](O,a)|0)){P=P+3|0;break}$W(y|0,a|0,56)|0;$W(a|0,O|0,56)|0;$W(O|0,y|0,56)|0;P=P+4|0}else{S=Bd[c[d>>2]&255](N,a)|0;O=Bd[c[d>>2]&255](m,N)|0;if(!S){if(!O){P=0;break}$W(D|0,N|0,56)|0;$W(N|0,m|0,56)|0;$W(m|0,D|0,56)|0;if(!(Bd[c[d>>2]&255](N,a)|0)){P=1;break}$W(C|0,a|0,56)|0;$W(a|0,N|0,56)|0;$W(N|0,C|0,56)|0;P=2;break}if(O){$W(E|0,a|0,56)|0;$W(a|0,m|0,56)|0;$W(m|0,E|0,56)|0;P=1;break}$W(G|0,a|0,56)|0;$W(a|0,N|0,56)|0;$W(N|0,G|0,56)|0;if(!(Bd[c[d>>2]&255](m,N)|0)){P=1;break}$W(F|0,N|0,56)|0;$W(N|0,m|0,56)|0;$W(m|0,F|0,56)|0;P=2}}while(0);do{if(Bd[c[d>>2]&255](a,N)|0){Q=m}else{Q=m;while(1){Q=Q+ -56|0;if((a|0)==(Q|0)){break}if(Bd[c[d>>2]&255](Q,N)|0){K=64;break}else{}}if((K|0)==64){K=0;$W(I|0,a|0,56)|0;$W(a|0,Q|0,56)|0;$W(Q|0,I|0,56)|0;P=P+1|0;break}O=a+56|0;if(!(Bd[c[d>>2]&255](a,m)|0)){if((O|0)==(m|0)){K=81;break a}while(1){N=O+56|0;if(Bd[c[d>>2]&255](a,O)|0){break}if((N|0)==(m|0)){K=81;break a}else{O=N}}$W(x|0,O|0,56)|0;$W(O|0,m|0,56)|0;$W(m|0,x|0,56)|0;O=N}if((O|0)==(m|0)){K=81;break a}else{N=m}while(1){while(1){P=O+56|0;if(Bd[c[d>>2]&255](a,O)|0){break}else{O=P}}do{N=N+ -56|0;}while(Bd[c[d>>2]&255](a,N)|0);if(O>>>0>=N>>>0){a=O;continue b}$W(H|0,O|0,56)|0;$W(O|0,N|0,56)|0;$W(N|0,H|0,56)|0;O=P}}}while(0);O=a+56|0;c:do{if(O>>>0<Q>>>0){while(1){S=O;while(1){O=S+56|0;if(Bd[c[d>>2]&255](S,N)|0){S=O}else{R=Q;break}}do{R=R+ -56|0;}while(!(Bd[c[d>>2]&255](R,N)|0));if(S>>>0>R>>>0){O=S;break c}$W(L|0,S|0,56)|0;$W(S|0,R|0,56)|0;$W(R|0,L|0,56)|0;Q=R;N=(N|0)==(S|0)?R:N;P=P+1|0}}}while(0);do{if((O|0)!=(N|0)){if(!(Bd[c[d>>2]&255](N,O)|0)){break}$W(M|0,O|0,56)|0;$W(O|0,N|0,56)|0;$W(N|0,M|0,56)|0;P=P+1|0}}while(0);if((P|0)==0){P=_q(a,O,d)|0;N=O+56|0;if(_q(N,b,d)|0){K=76;break}if(P){a=N;continue}}if((O-a|0)>=(b-O|0)){K=80;break}Yq(a,O,d);a=O+56|0}if((K|0)==76){K=0;if(P){K=81;break}else{b=O;continue}}else if((K|0)==80){K=0;Yq(O+56|0,b,d);b=O;continue}}if((K|0)==4){if(!(Bd[c[d>>2]&255](m,a)|0)){i=e;return}$W(A|0,a|0,56)|0;$W(a|0,m|0,56)|0;$W(m|0,A|0,56)|0;i=e;return}else if((K|0)==6){f=a+56|0;S=Bd[c[d>>2]&255](f,a)|0;g=Bd[c[d>>2]&255](m,f)|0;if(!S){if(!g){i=e;return}$W(u|0,f|0,56)|0;$W(f|0,m|0,56)|0;$W(m|0,u|0,56)|0;if(!(Bd[c[d>>2]&255](f,a)|0)){i=e;return}$W(v|0,a|0,56)|0;$W(a|0,f|0,56)|0;$W(f|0,v|0,56)|0;i=e;return}if(g){$W(w|0,a|0,56)|0;$W(a|0,m|0,56)|0;$W(m|0,w|0,56)|0;i=e;return}$W(t|0,a|0,56)|0;$W(a|0,f|0,56)|0;$W(f|0,t|0,56)|0;if(!(Bd[c[d>>2]&255](m,f)|0)){i=e;return}$W(s|0,f|0,56)|0;$W(f|0,m|0,56)|0;$W(m|0,s|0,56)|0;i=e;return}else if((K|0)==14){Zq(a,a+56|0,a+112|0,m,d)|0;i=e;return}else if((K|0)==15){b=a+56|0;f=a+112|0;g=a+168|0;Zq(a,b,f,g,d)|0;if(!(Bd[c[d>>2]&255](m,g)|0)){i=e;return}$W(l|0,g|0,56)|0;$W(g|0,m|0,56)|0;$W(m|0,l|0,56)|0;if(!(Bd[c[d>>2]&255](g,f)|0)){i=e;return}$W(k|0,f|0,56)|0;$W(f|0,g|0,56)|0;$W(g|0,k|0,56)|0;if(!(Bd[c[d>>2]&255](f,b)|0)){i=e;return}$W(p|0,b|0,56)|0;$W(b|0,f|0,56)|0;$W(f|0,p|0,56)|0;if(!(Bd[c[d>>2]&255](b,a)|0)){i=e;return}$W(j|0,a|0,56)|0;$W(a|0,b|0,56)|0;$W(b|0,j|0,56)|0;i=e;return}else if((K|0)==21){j=a+112|0;l=a+56|0;S=Bd[c[d>>2]&255](l,a)|0;k=Bd[c[d>>2]&255](j,l)|0;do{if(S){if(k){$W(h|0,a|0,56)|0;$W(a|0,j|0,56)|0;$W(j|0,h|0,56)|0;break}$W(r|0,a|0,56)|0;$W(a|0,l|0,56)|0;$W(l|0,r|0,56)|0;if(!(Bd[c[d>>2]&255](j,l)|0)){break}$W(q|0,l|0,56)|0;$W(l|0,j|0,56)|0;$W(j|0,q|0,56)|0}else{if(!k){break}$W(n|0,l|0,56)|0;$W(l|0,j|0,56)|0;$W(j|0,n|0,56)|0;if(!(Bd[c[d>>2]&255](l,a)|0)){break}$W(o|0,a|0,56)|0;$W(a|0,l|0,56)|0;$W(l|0,o|0,56)|0}}while(0);h=a+168|0;if((h|0)==(b|0)){i=e;return}while(1){if(Bd[c[d>>2]&255](h,j)|0){$W(f|0,h|0,56)|0;k=h;while(1){$W(k|0,j|0,56)|0;if((j|0)==(a|0)){break}k=j+ -56|0;if(Bd[c[d>>2]&255](g,k)|0){S=j;j=k;k=S}else{break}}$W(j|0,f|0,56)|0}j=h+56|0;if((j|0)==(b|0)){break}else{S=h;h=j;j=S}}i=e;return}else if((K|0)==81){i=e;return}}function Zq(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;k=i;n=i;i=i+56|0;p=i;i=i+56|0;l=i;i=i+56|0;o=i;i=i+56|0;m=i;i=i+56|0;h=i;i=i+56|0;g=i;i=i+56|0;j=i;i=i+56|0;r=Bd[c[f>>2]&255](b,a)|0;q=Bd[c[f>>2]&255](d,b)|0;do{if(r){if(q){$W(n|0,a|0,56)|0;$W(a|0,d|0,56)|0;$W(d|0,n|0,56)|0;l=1;break}$W(p|0,a|0,56)|0;$W(a|0,b|0,56)|0;$W(b|0,p|0,56)|0;if(!(Bd[c[f>>2]&255](d,b)|0)){l=1;break}$W(o|0,b|0,56)|0;$W(b|0,d|0,56)|0;$W(d|0,o|0,56)|0;l=2}else{if(!q){l=0;break}$W(m|0,b|0,56)|0;$W(b|0,d|0,56)|0;$W(d|0,m|0,56)|0;if(!(Bd[c[f>>2]&255](b,a)|0)){l=1;break}$W(l|0,a|0,56)|0;$W(a|0,b|0,56)|0;$W(b|0,l|0,56)|0;l=2}}while(0);if(!(Bd[c[f>>2]&255](e,d)|0)){r=l;i=k;return r|0}$W(j|0,d|0,56)|0;$W(d|0,e|0,56)|0;$W(e|0,j|0,56)|0;if(!(Bd[c[f>>2]&255](d,b)|0)){r=l+1|0;i=k;return r|0}$W(h|0,b|0,56)|0;$W(b|0,d|0,56)|0;$W(d|0,h|0,56)|0;if(!(Bd[c[f>>2]&255](b,a)|0)){r=l+2|0;i=k;return r|0}$W(g|0,a|0,56)|0;$W(a|0,b|0,56)|0;$W(b|0,g|0,56)|0;r=l+3|0;i=k;return r|0}function _q(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;e=i;n=i;i=i+56|0;r=i;i=i+56|0;s=i;i=i+56|0;q=i;i=i+56|0;t=i;i=i+56|0;m=i;i=i+56|0;j=i;i=i+56|0;l=i;i=i+56|0;k=i;i=i+56|0;u=i;i=i+56|0;w=i;i=i+56|0;p=i;i=i+56|0;v=i;i=i+56|0;o=i;i=i+56|0;x=i;i=i+56|0;g=i;i=i+56|0;h=g;switch((b-a|0)/56|0|0){case 3:{f=a+56|0;b=b+ -56|0;x=Bd[c[d>>2]&255](f,a)|0;g=Bd[c[d>>2]&255](b,f)|0;if(!x){if(!g){x=1;i=e;return x|0}$W(o|0,f|0,56)|0;$W(f|0,b|0,56)|0;$W(b|0,o|0,56)|0;if(!(Bd[c[d>>2]&255](f,a)|0)){x=1;i=e;return x|0}$W(p|0,a|0,56)|0;$W(a|0,f|0,56)|0;$W(f|0,p|0,56)|0;x=1;i=e;return x|0}if(g){$W(u|0,a|0,56)|0;$W(a|0,b|0,56)|0;$W(b|0,u|0,56)|0;x=1;i=e;return x|0}$W(w|0,a|0,56)|0;$W(a|0,f|0,56)|0;$W(f|0,w|0,56)|0;if(!(Bd[c[d>>2]&255](b,f)|0)){x=1;i=e;return x|0}$W(v|0,f|0,56)|0;$W(f|0,b|0,56)|0;$W(b|0,v|0,56)|0;x=1;i=e;return x|0};case 5:{g=a+56|0;h=a+112|0;f=a+168|0;b=b+ -56|0;Zq(a,g,h,f,d)|0;if(!(Bd[c[d>>2]&255](b,f)|0)){x=1;i=e;return x|0}$W(k|0,f|0,56)|0;$W(f|0,b|0,56)|0;$W(b|0,k|0,56)|0;if(!(Bd[c[d>>2]&255](f,h)|0)){x=1;i=e;return x|0}$W(j|0,h|0,56)|0;$W(h|0,f|0,56)|0;$W(f|0,j|0,56)|0;if(!(Bd[c[d>>2]&255](h,g)|0)){x=1;i=e;return x|0}$W(m|0,g|0,56)|0;$W(g|0,h|0,56)|0;$W(h|0,m|0,56)|0;if(!(Bd[c[d>>2]&255](g,a)|0)){x=1;i=e;return x|0}$W(l|0,a|0,56)|0;$W(a|0,g|0,56)|0;$W(g|0,l|0,56)|0;x=1;i=e;return x|0};case 1:case 0:{x=1;i=e;return x|0};case 4:{Zq(a,a+56|0,a+112|0,b+ -56|0,d)|0;x=1;i=e;return x|0};case 2:{b=b+ -56|0;if(!(Bd[c[d>>2]&255](b,a)|0)){x=1;i=e;return x|0}$W(x|0,a|0,56)|0;$W(a|0,b|0,56)|0;$W(b|0,x|0,56)|0;x=1;i=e;return x|0};default:{j=a+112|0;k=a+56|0;x=Bd[c[d>>2]&255](k,a)|0;l=Bd[c[d>>2]&255](j,k)|0;do{if(x){if(l){$W(n|0,a|0,56)|0;$W(a|0,j|0,56)|0;$W(j|0,n|0,56)|0;break}$W(r|0,a|0,56)|0;$W(a|0,k|0,56)|0;$W(k|0,r|0,56)|0;if(!(Bd[c[d>>2]&255](j,k)|0)){break}$W(q|0,k|0,56)|0;$W(k|0,j|0,56)|0;$W(j|0,q|0,56)|0}else{if(!l){break}$W(t|0,k|0,56)|0;$W(k|0,j|0,56)|0;$W(j|0,t|0,56)|0;if(!(Bd[c[d>>2]&255](k,a)|0)){break}$W(s|0,a|0,56)|0;$W(a|0,k|0,56)|0;$W(k|0,s|0,56)|0}}while(0);k=a+168|0;if((k|0)==(b|0)){x=1;i=e;return x|0}l=0;while(1){if(Bd[c[d>>2]&255](k,j)|0){$W(g|0,k|0,56)|0;m=k;while(1){$W(m|0,j|0,56)|0;if((j|0)==(a|0)){break}m=j+ -56|0;if(Bd[c[d>>2]&255](h,m)|0){x=j;j=m;m=x}else{break}}$W(j|0,g|0,56)|0;l=l+1|0;if((l|0)==8){break}}j=k+56|0;if((j|0)==(b|0)){a=1;f=35;break}else{x=k;k=j;j=x}}if((f|0)==35){i=e;return a|0}x=(k+56|0)==(b|0);i=e;return x|0}}return 0}function $q(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0.0,j=0,k=0.0,l=0.0,m=0.0,n=0.0,o=0;f=i;c[b>>2]=d;a[b+4|0]=e&1;e=c[d+4>>2]|0;if((e|0)==0){c[b+12>>2]=1;c[b+8>>2]=1;c[b+20>>2]=0;c[b+16>>2]=0;j=0;o=b+24|0;c[o>>2]=j;o=b+36|0;bX(o|0,0,16)|0;i=f;return}d=c[d>>2]|0;g=+h[d>>3];k=+h[d+16>>3];j=g>k;l=j?k:g;m=j?g:k;if((c[d+48>>2]&64|0)==0){o=d+24|0;j=d+8|0}else{o=d+8|0;j=d+24|0}k=+h[o>>3];g=+h[j>>3];if((e|0)>1){j=1;do{n=+h[d+(j*56|0)>>3];do{if(n<l){l=n}else{if(n<=m){break}m=n}}while(0);n=+h[d+(j*56|0)+16>>3];do{if(n<l){l=n}else{if(n<=m){break}m=n}}while(0);do{if((c[d+(j*56|0)+48>>2]&64|0)==0){n=+h[d+(j*56|0)+24>>3];if(n<=k){break}k=n}else{n=+h[d+(j*56|0)+8>>3];if(n<=k){break}k=n}}while(0);j=j+1|0;}while((j|0)<(e|0))}if(l<=0.0){l=+R(+l)}c[b+8>>2]=~~l;if(m<=0.0){m=+R(+m)}c[b+16>>2]=~~m;if(g<=0.0){g=+R(+g)}e=~~g;c[b+12>>2]=e;if(k<=0.0){k=+R(+k)}c[b+20>>2]=~~k;j=e+ -1|0;o=b+24|0;c[o>>2]=j;o=b+36|0;bX(o|0,0,16)|0;i=f;return}function ar(a){a=a|0;var b=0;b=i;Fe(c[a+40>>2]|0);i=b;return}function br(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;c[b>>2]=(c[a+8>>2]|0)/4|0;c[d>>2]=(c[a+12>>2]|0)/4|0;c[e>>2]=(c[a+16>>2]|0)/4|0;c[f>>2]=(c[a+20>>2]|0)/4|0;i=i;return}function cr(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.0,o=0.0,p=0.0,q=0,r=0,s=0,t=0.0,u=0.0,v=0,w=0,x=0.0,y=0,z=0.0,A=0,B=0.0,C=0,D=0,E=0.0,F=0,G=0.0,H=0.0;f=i;j=i;i=i+8|0;g=j;e=b+24|0;if((c[e>>2]|0)>(d|0)){r=0}else{r=c[b+36>>2]|0}y=c[b>>2]|0;l=y+4|0;m=c[l>>2]|0;a:do{if((r|0)<(m|0)){n=+(d|0);k=c[y>>2]|0;while(1){if(+h[k+(r*56|0)+8>>3]>=n){break a}q=r+1|0;if(+h[k+(r*56|0)+24>>3]>=n){break a}if((q|0)<(m|0)){r=q}else{r=q;break}}}}while(0);c[b+36>>2]=r;k=b+44|0;c[k>>2]=0;if((r|0)>=(c[l>>2]|0)){F=0;D=b+40|0;D=c[D>>2]|0;F=F*12|0;F=D+F|0;C=j;A=185;c[C>>2]=A;jr(D,F,g);F=e;c[F>>2]=d;F=b+28|0;c[F>>2]=0;F=b+32|0;c[F>>2]=0;i=f;return}n=+(d+1|0);p=+(d|0);q=b+48|0;l=b+40|0;o=p+1.0;m=b+4|0;w=0;while(1){v=c[y>>2]|0;A=v+(r*56|0)|0;s=v+(r*56|0)+48|0;C=c[s>>2]|0;if((C&64|0)==0){F=v+(r*56|0)+24|0;D=v+(r*56|0)+8|0}else{F=v+(r*56|0)+8|0;D=v+(r*56|0)+24|0}t=+h[F>>3];u=+h[D>>3];if(u>=n){v=46;break}if(t>=p){if((w|0)==(c[q>>2]|0)){C=(w|0)==0?16:w<<1;c[q>>2]=C;c[l>>2]=Ce(c[l>>2]|0,C,12)|0;C=c[s>>2]|0}do{if((C&16|0)==0){z=+h[A>>3];if((C&32|0)!=0){B=z;x=z;v=33;break}B=+h[v+(r*56|0)+16>>3];w=z<B;x=w?B:z;B=w?z:B;H=+h[v+(r*56|0)+8>>3];E=+h[v+(r*56|0)+32>>3];G=z+(p-H)*E;E=z+(o-H)*E;do{if(G<B){z=B}else{if(G<=x){z=G;break}z=x}}while(0);if(E<B){x=B;v=27;break}if(E<=x){x=E;v=27;break}v=27}else{z=+h[A>>3];x=+h[v+(r*56|0)+16>>3];v=27}}while(0);do{if((v|0)==27){v=0;if(z>=x){B=z;v=33;break}if(z<=0.0){z=+R(+z)}c[(c[l>>2]|0)+((c[k>>2]|0)*12|0)>>2]=~~z;if(x<=0.0){x=+R(+x)}c[(c[l>>2]|0)+((c[k>>2]|0)*12|0)+4>>2]=~~x}}while(0);if((v|0)==33){v=0;if(x<=0.0){x=+R(+x)}c[(c[l>>2]|0)+((c[k>>2]|0)*12|0)>>2]=~~x;if(B<=0.0){B=+R(+B)}c[(c[l>>2]|0)+((c[k>>2]|0)*12|0)+4>>2]=~~B}do{if(u<=p&p<t){s=c[s>>2]|0;if((s&16|0)!=0){v=43;break}if((a[m]&1)==0){s=(s>>>5&2)+ -1|0}else{s=1}c[(c[l>>2]|0)+((c[k>>2]|0)*12|0)+8>>2]=s}else{v=43}}while(0);if((v|0)==43){c[(c[l>>2]|0)+((c[k>>2]|0)*12|0)+8>>2]=0}w=(c[k>>2]|0)+1|0;c[k>>2]=w;y=c[b>>2]|0}r=r+1|0;if((r|0)>=(c[y+4>>2]|0)){v=46;break}}if((v|0)==46){D=l;D=c[D>>2]|0;F=w*12|0;F=D+F|0;C=j;A=185;c[C>>2]=A;jr(D,F,g);F=e;c[F>>2]=d;F=b+28|0;c[F>>2]=0;F=b+32|0;c[F>>2]=0;i=f;return}}function dr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;if((c[b+24>>2]|0)!=(e|0)){cr(b,e)}e=c[b+44>>2]|0;a:do{if((e|0)>0){g=c[b+40>>2]|0;j=0;h=0;while(1){if((c[g+(h*12|0)>>2]|0)>(d|0)){break a}if((c[g+(h*12|0)+4>>2]|0)>=(d|0)){b=1;break}j=(c[g+(h*12|0)+8>>2]|0)+j|0;h=h+1|0;if((h|0)>=(e|0)){break a}}i=f;return b|0}else{j=0}}while(0);if((a[b+4|0]&1)==0){b=(j|0)!=0|0}else{b=j&1}j=(b|0)!=0;i=f;return j|0}function er(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;if((c[b+24>>2]|0)!=(f|0)){cr(b,f)}f=c[b+44>>2]|0;a:do{if((f|0)>0){h=c[b+40>>2]|0;j=0;k=0;do{if((c[h+(k*12|0)+4>>2]|0)>=(d|0)){break a}j=(c[h+(k*12|0)+8>>2]|0)+j|0;k=k+1|0;}while((k|0)<(f|0))}else{j=0;k=0}}while(0);if((d|0)>(e|0)){m=1;i=g;return m|0}h=b+40|0;b=b+4|0;l=d+ -1|0;while(1){if((k|0)>=(f|0)){e=0;f=16;break}d=c[h>>2]|0;if((c[d+(k*12|0)>>2]|0)>(l+1|0)){if((a[b]&1)==0){m=(j|0)!=0|0}else{m=j&1}if((m|0)==0){e=0;f=16;break}}m=c[d+(k*12|0)+4>>2]|0;l=(m|0)>(l|0)?m:l;if((l|0)<(e|0)){j=(c[d+(k*12|0)+8>>2]|0)+j|0;k=k+1|0}else{e=1;f=16;break}}if((f|0)==16){i=g;return e|0}return 0}function fr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;if((c[b+24>>2]|0)!=(d|0)){cr(b,d)}k=b+28|0;n=c[k>>2]|0;h=c[b+44>>2]|0;if((n|0)>=(h|0)){p=0;i=g;return p|0}j=c[b+40>>2]|0;d=c[j+(n*12|0)>>2]|0;o=c[j+(n*12|0)+4>>2]|0;l=b+32|0;m=(c[l>>2]|0)+(c[j+(n*12|0)+8>>2]|0)|0;c[l>>2]=m;n=n+1|0;c[k>>2]=n;a:do{if((n|0)<(h|0)){b=b+4|0;do{if((c[j+(n*12|0)>>2]|0)>(o|0)){if((a[b]&1)==0){p=(m|0)!=0|0}else{p=m&1}if((p|0)==0){break a}}p=c[j+(n*12|0)+4>>2]|0;o=(p|0)>(o|0)?p:o;m=m+(c[j+(n*12|0)+8>>2]|0)|0;c[l>>2]=m;n=n+1|0;c[k>>2]=n;}while((n|0)<(h|0))}}while(0);c[e>>2]=d;c[f>>2]=o;p=1;i=g;return p|0}function gr(a,b){a=a|0;b=b|0;i=i;return(c[a>>2]|0)<(c[b>>2]|0)|0}function hr(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;l=i;j=e+20|0;k=e+12|0;bX(c[j>>2]|0,0,da(c[e+4>>2]|0,c[k>>2]|0)|0)|0;n=h<<2;m=b+28|0;p=b+44|0;h=b+40|0;o=b+32|0;q=b+4|0;s=-1;t=c[e>>2]|0;r=0;do{cr(b,r+n|0);y=c[m>>2]|0;u=c[p>>2]|0;if((y|0)<(u|0)){do{w=c[h>>2]|0;v=c[w+(y*12|0)>>2]|0;z=c[w+(y*12|0)+4>>2]|0;x=(c[o>>2]|0)+(c[w+(y*12|0)+8>>2]|0)|0;c[o>>2]=x;y=y+1|0;c[m>>2]=y;a:do{if((y|0)<(u|0)){do{if((c[w+(y*12|0)>>2]|0)>(z|0)){if((a[q]&1)==0){A=(x|0)!=0|0}else{A=x&1}if((A|0)==0){break a}}A=c[w+(y*12|0)+4>>2]|0;z=(A|0)>(z|0)?A:z;x=x+(c[w+(y*12|0)+8>>2]|0)|0;c[o>>2]=x;y=y+1|0;c[m>>2]=y;}while((y|0)<(u|0))}}while(0);u=(v|0)<0?0:v;v=c[e>>2]|0;v=(z|0)<(v|0)?z+1|0:v;do{if((u|0)<(v|0)){x=c[j>>2]|0;y=(da(c[k>>2]|0,r)|0)+(u>>3)|0;w=x+y|0;z=u&7;if((z|0)==0){x=u}else{A=255>>>z;z=u&-8;if((z|0)==(v&-8|0)){A=65280>>>(v&7)&A&255}else{A=A&255}a[w]=a[w]|A;w=x+(y+1)|0;x=z+8|0}if((x+7|0)<(v|0)){z=x;while(1){x=w+1|0;a[w]=-1;y=z+8|0;if((z+15|0)<(v|0)){z=y;w=x}else{w=x;x=y;break}}}if((x|0)>=(v|0)){break}a[w]=d[w]|0|65280>>>(v&7)}}while(0);t=(u|0)<(t|0)?u:t;s=(v|0)>(s|0)?v:s;y=c[m>>2]|0;u=c[p>>2]|0;}while((y|0)<(u|0))}r=r+1|0;}while((r|0)<4);c[f>>2]=(t|0)/4|0;c[g>>2]=(s+ -1|0)/4|0;i=l;return}function ir(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;j=i;m=h<<2;k=b+28|0;r=b+44|0;p=e+20|0;q=e+12|0;l=b+40|0;n=b+32|0;o=b+4|0;h=0;do{s=c[f>>2]<<2;cr(b,h+m|0);y=c[k>>2]|0;u=c[r>>2]|0;a:do{if((y|0)<(u|0)){do{if((s|0)>=((c[g>>2]<<2)+4|0)){break a}w=c[l>>2]|0;v=c[w+(y*12|0)>>2]|0;t=c[w+(y*12|0)+4>>2]|0;x=(c[n>>2]|0)+(c[w+(y*12|0)+8>>2]|0)|0;c[n>>2]=x;y=y+1|0;c[k>>2]=y;b:do{if((y|0)<(u|0)){do{if((c[w+(y*12|0)>>2]|0)>(t|0)){if((a[o]&1)==0){z=(x|0)!=0|0}else{z=x&1}if((z|0)==0){break b}}z=c[w+(y*12|0)+4>>2]|0;t=(z|0)>(t|0)?z:t;x=x+(c[w+(y*12|0)+8>>2]|0)|0;c[n>>2]=x;y=y+1|0;c[k>>2]=y;}while((y|0)<(u|0))}}while(0);u=c[e>>2]|0;u=(v|0)>(u|0)?u:v;do{if((s|0)<(u|0)){w=c[p>>2]|0;v=(da(c[q>>2]|0,h)|0)+(s>>3)|0;x=w+v|0;y=s&7;if((y|0)!=0){y=65280>>>y;s=s&-8;if((s|0)==(u&-8|0)){y=(255>>>(u&7)|y)&255}else{y=y&255}a[x]=a[x]&y;x=w+(v+1)|0;s=s+8|0}if((s+7|0)<=(u|0)){v=x;while(1){x=v+1|0;a[v]=0;v=s+8|0;if((s+15|0)>(u|0)){s=v;break}else{s=v;v=x}}}if((s|0)>=(u|0)){break}a[x]=(d[x]|0)&255>>>(u&7)}}while(0);s=(t|0)<(s|0)?s:t+1|0;y=c[k>>2]|0;u=c[r>>2]|0;}while((y|0)<(u|0))}}while(0);u=(c[g>>2]<<2)+4|0;t=c[e>>2]|0;t=(u|0)>(t|0)?t:u;do{if((s|0)<(t|0)){v=c[p>>2]|0;w=(da(c[q>>2]|0,h)|0)+(s>>3)|0;u=v+w|0;x=s&7;if((x|0)!=0){x=65280>>>x;s=s&-8;if((s|0)==(t&-8|0)){x=255>>>(t&7)&x&255}else{x=x&255}a[u]=a[u]&x;u=v+(w+1)|0;s=s+8|0}if((s+7|0)<=(t|0)){w=u;v=s;while(1){u=w+1|0;a[w]=0;s=v+8|0;if((v+15|0)>(t|0)){break}else{v=s;w=u}}}if((s|0)>=(t|0)){break}a[u]=(d[u]|0)&255>>>(t&7)}}while(0);h=h+1|0;}while((h|0)<4);i=j;return}function jr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;e=i;l=i;i=i+16|0;q=i;i=i+16|0;r=i;i=i+16|0;p=i;i=i+16|0;o=i;i=i+16|0;E=i;i=i+16|0;G=i;i=i+16|0;C=i;i=i+16|0;F=i;i=i+16|0;D=i;i=i+16|0;z=i;i=i+16|0;A=i;i=i+16|0;y=i;i=i+16|0;B=i;i=i+16|0;g=i;i=i+16|0;f=g;h=i;i=i+16|0;j=i;i=i+16|0;n=i;i=i+16|0;k=i;i=i+16|0;u=i;i=i+16|0;s=i;i=i+16|0;t=i;i=i+16|0;w=i;i=i+16|0;v=i;i=i+16|0;M=i;i=i+16|0;L=i;i=i+16|0;I=i;i=i+16|0;H=i;i=i+16|0;x=i;i=i+16|0;J=i;i=i+16|0;a:while(1){m=b+ -12|0;b:while(1){O=b-a|0;switch((O|0)/12|0|0){case 4:{K=14;break a};case 3:{K=6;break a};case 5:{K=15;break a};case 1:case 0:{K=81;break a};case 2:{K=4;break a};default:{}}if((O|0)<372){K=21;break a}P=(O|0)/24|0;N=a+(P*12|0)|0;do{if((O|0)>11988){Q=(O|0)/48|0;O=a+(Q*12|0)|0;Q=a+((Q+P|0)*12|0)|0;P=kr(a,O,N,Q,d)|0;if(!(Bd[c[d>>2]&255](m,Q)|0)){break}$W(B|0,Q|0,12)|0;$W(Q|0,m|0,12)|0;$W(m|0,B|0,12)|0;if(!(Bd[c[d>>2]&255](Q,N)|0)){P=P+1|0;break}$W(A|0,N|0,12)|0;$W(N|0,Q|0,12)|0;$W(Q|0,A|0,12)|0;if(!(Bd[c[d>>2]&255](N,O)|0)){P=P+2|0;break}$W(z|0,O|0,12)|0;$W(O|0,N|0,12)|0;$W(N|0,z|0,12)|0;if(!(Bd[c[d>>2]&255](O,a)|0)){P=P+3|0;break}$W(y|0,a|0,12)|0;$W(a|0,O|0,12)|0;$W(O|0,y|0,12)|0;P=P+4|0}else{S=Bd[c[d>>2]&255](N,a)|0;O=Bd[c[d>>2]&255](m,N)|0;if(!S){if(!O){P=0;break}$W(D|0,N|0,12)|0;$W(N|0,m|0,12)|0;$W(m|0,D|0,12)|0;if(!(Bd[c[d>>2]&255](N,a)|0)){P=1;break}$W(C|0,a|0,12)|0;$W(a|0,N|0,12)|0;$W(N|0,C|0,12)|0;P=2;break}if(O){$W(E|0,a|0,12)|0;$W(a|0,m|0,12)|0;$W(m|0,E|0,12)|0;P=1;break}$W(G|0,a|0,12)|0;$W(a|0,N|0,12)|0;$W(N|0,G|0,12)|0;if(!(Bd[c[d>>2]&255](m,N)|0)){P=1;break}$W(F|0,N|0,12)|0;$W(N|0,m|0,12)|0;$W(m|0,F|0,12)|0;P=2}}while(0);do{if(Bd[c[d>>2]&255](a,N)|0){Q=m}else{Q=m;while(1){Q=Q+ -12|0;if((a|0)==(Q|0)){break}if(Bd[c[d>>2]&255](Q,N)|0){K=64;break}else{}}if((K|0)==64){K=0;$W(I|0,a|0,12)|0;$W(a|0,Q|0,12)|0;$W(Q|0,I|0,12)|0;P=P+1|0;break}O=a+12|0;if(!(Bd[c[d>>2]&255](a,m)|0)){if((O|0)==(m|0)){K=81;break a}while(1){N=O+12|0;if(Bd[c[d>>2]&255](a,O)|0){break}if((N|0)==(m|0)){K=81;break a}else{O=N}}$W(x|0,O|0,12)|0;$W(O|0,m|0,12)|0;$W(m|0,x|0,12)|0;O=N}if((O|0)==(m|0)){K=81;break a}else{N=m}while(1){while(1){P=O+12|0;if(Bd[c[d>>2]&255](a,O)|0){break}else{O=P}}do{N=N+ -12|0;}while(Bd[c[d>>2]&255](a,N)|0);if(O>>>0>=N>>>0){a=O;continue b}$W(H|0,O|0,12)|0;$W(O|0,N|0,12)|0;$W(N|0,H|0,12)|0;O=P}}}while(0);O=a+12|0;c:do{if(O>>>0<Q>>>0){while(1){S=O;while(1){O=S+12|0;if(Bd[c[d>>2]&255](S,N)|0){S=O}else{R=Q;break}}do{R=R+ -12|0;}while(!(Bd[c[d>>2]&255](R,N)|0));if(S>>>0>R>>>0){O=S;break c}$W(L|0,S|0,12)|0;$W(S|0,R|0,12)|0;$W(R|0,L|0,12)|0;Q=R;N=(N|0)==(S|0)?R:N;P=P+1|0}}}while(0);do{if((O|0)!=(N|0)){if(!(Bd[c[d>>2]&255](N,O)|0)){break}$W(M|0,O|0,12)|0;$W(O|0,N|0,12)|0;$W(N|0,M|0,12)|0;P=P+1|0}}while(0);if((P|0)==0){P=lr(a,O,d)|0;N=O+12|0;if(lr(N,b,d)|0){K=76;break}if(P){a=N;continue}}if((O-a|0)>=(b-O|0)){K=80;break}jr(a,O,d);a=O+12|0}if((K|0)==76){K=0;if(P){K=81;break}else{b=O;continue}}else if((K|0)==80){K=0;jr(O+12|0,b,d);b=O;continue}}if((K|0)==4){if(!(Bd[c[d>>2]&255](m,a)|0)){i=e;return}$W(J|0,a|0,12)|0;$W(a|0,m|0,12)|0;$W(m|0,J|0,12)|0;i=e;return}else if((K|0)==6){f=a+12|0;S=Bd[c[d>>2]&255](f,a)|0;g=Bd[c[d>>2]&255](m,f)|0;if(!S){if(!g){i=e;return}$W(v|0,f|0,12)|0;$W(f|0,m|0,12)|0;$W(m|0,v|0,12)|0;if(!(Bd[c[d>>2]&255](f,a)|0)){i=e;return}$W(t|0,a|0,12)|0;$W(a|0,f|0,12)|0;$W(f|0,t|0,12)|0;i=e;return}if(g){$W(u|0,a|0,12)|0;$W(a|0,m|0,12)|0;$W(m|0,u|0,12)|0;i=e;return}$W(s|0,a|0,12)|0;$W(a|0,f|0,12)|0;$W(f|0,s|0,12)|0;if(!(Bd[c[d>>2]&255](m,f)|0)){i=e;return}$W(w|0,f|0,12)|0;$W(f|0,m|0,12)|0;$W(m|0,w|0,12)|0;i=e;return}else if((K|0)==14){kr(a,a+12|0,a+24|0,m,d)|0;i=e;return}else if((K|0)==15){b=a+12|0;f=a+24|0;g=a+36|0;kr(a,b,f,g,d)|0;if(!(Bd[c[d>>2]&255](m,g)|0)){i=e;return}$W(k|0,g|0,12)|0;$W(g|0,m|0,12)|0;$W(m|0,k|0,12)|0;if(!(Bd[c[d>>2]&255](g,f)|0)){i=e;return}$W(j|0,f|0,12)|0;$W(f|0,g|0,12)|0;$W(g|0,j|0,12)|0;if(!(Bd[c[d>>2]&255](f,b)|0)){i=e;return}$W(h|0,b|0,12)|0;$W(b|0,f|0,12)|0;$W(f|0,h|0,12)|0;if(!(Bd[c[d>>2]&255](b,a)|0)){i=e;return}$W(n|0,a|0,12)|0;$W(a|0,b|0,12)|0;$W(b|0,n|0,12)|0;i=e;return}else if((K|0)==21){h=a+24|0;k=a+12|0;S=Bd[c[d>>2]&255](k,a)|0;j=Bd[c[d>>2]&255](h,k)|0;do{if(S){if(j){$W(l|0,a|0,12)|0;$W(a|0,h|0,12)|0;$W(h|0,l|0,12)|0;break}$W(q|0,a|0,12)|0;$W(a|0,k|0,12)|0;$W(k|0,q|0,12)|0;if(!(Bd[c[d>>2]&255](h,k)|0)){break}$W(p|0,k|0,12)|0;$W(k|0,h|0,12)|0;$W(h|0,p|0,12)|0}else{if(!j){break}$W(o|0,k|0,12)|0;$W(k|0,h|0,12)|0;$W(h|0,o|0,12)|0;if(!(Bd[c[d>>2]&255](k,a)|0)){break}$W(r|0,a|0,12)|0;$W(a|0,k|0,12)|0;$W(k|0,r|0,12)|0}}while(0);j=a+36|0;if((j|0)==(b|0)){i=e;return}while(1){if(Bd[c[d>>2]&255](j,h)|0){$W(g|0,j|0,12)|0;k=j;while(1){$W(k|0,h|0,12)|0;if((h|0)==(a|0)){break}k=h+ -12|0;if(Bd[c[d>>2]&255](f,k)|0){S=h;h=k;k=S}else{break}}$W(h|0,g|0,12)|0}h=j+12|0;if((h|0)==(b|0)){break}else{S=j;j=h;h=S}}i=e;return}else if((K|0)==81){i=e;return}}function kr(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;k=i;n=i;i=i+16|0;p=i;i=i+16|0;l=i;i=i+16|0;o=i;i=i+16|0;m=i;i=i+16|0;h=i;i=i+16|0;g=i;i=i+16|0;j=i;i=i+16|0;r=Bd[c[f>>2]&255](b,a)|0;q=Bd[c[f>>2]&255](d,b)|0;do{if(r){if(q){$W(n|0,a|0,12)|0;$W(a|0,d|0,12)|0;$W(d|0,n|0,12)|0;l=1;break}$W(p|0,a|0,12)|0;$W(a|0,b|0,12)|0;$W(b|0,p|0,12)|0;if(!(Bd[c[f>>2]&255](d,b)|0)){l=1;break}$W(o|0,b|0,12)|0;$W(b|0,d|0,12)|0;$W(d|0,o|0,12)|0;l=2}else{if(!q){l=0;break}$W(m|0,b|0,12)|0;$W(b|0,d|0,12)|0;$W(d|0,m|0,12)|0;if(!(Bd[c[f>>2]&255](b,a)|0)){l=1;break}$W(l|0,a|0,12)|0;$W(a|0,b|0,12)|0;$W(b|0,l|0,12)|0;l=2}}while(0);if(!(Bd[c[f>>2]&255](e,d)|0)){r=l;i=k;return r|0}$W(j|0,d|0,12)|0;$W(d|0,e|0,12)|0;$W(e|0,j|0,12)|0;if(!(Bd[c[f>>2]&255](d,b)|0)){r=l+1|0;i=k;return r|0}$W(h|0,b|0,12)|0;$W(b|0,d|0,12)|0;$W(d|0,h|0,12)|0;if(!(Bd[c[f>>2]&255](b,a)|0)){r=l+2|0;i=k;return r|0}$W(g|0,a|0,12)|0;$W(a|0,b|0,12)|0;$W(b|0,g|0,12)|0;r=l+3|0;i=k;return r|0}function lr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;e=i;n=i;i=i+16|0;r=i;i=i+16|0;s=i;i=i+16|0;q=i;i=i+16|0;t=i;i=i+16|0;k=i;i=i+16|0;j=i;i=i+16|0;l=i;i=i+16|0;m=i;i=i+16|0;u=i;i=i+16|0;w=i;i=i+16|0;p=i;i=i+16|0;v=i;i=i+16|0;o=i;i=i+16|0;x=i;i=i+16|0;g=i;i=i+16|0;h=g;switch((b-a|0)/12|0|0){case 3:{f=a+12|0;b=b+ -12|0;x=Bd[c[d>>2]&255](f,a)|0;g=Bd[c[d>>2]&255](b,f)|0;if(!x){if(!g){x=1;i=e;return x|0}$W(o|0,f|0,12)|0;$W(f|0,b|0,12)|0;$W(b|0,o|0,12)|0;if(!(Bd[c[d>>2]&255](f,a)|0)){x=1;i=e;return x|0}$W(p|0,a|0,12)|0;$W(a|0,f|0,12)|0;$W(f|0,p|0,12)|0;x=1;i=e;return x|0}if(g){$W(u|0,a|0,12)|0;$W(a|0,b|0,12)|0;$W(b|0,u|0,12)|0;x=1;i=e;return x|0}$W(w|0,a|0,12)|0;$W(a|0,f|0,12)|0;$W(f|0,w|0,12)|0;if(!(Bd[c[d>>2]&255](b,f)|0)){x=1;i=e;return x|0}$W(v|0,f|0,12)|0;$W(f|0,b|0,12)|0;$W(b|0,v|0,12)|0;x=1;i=e;return x|0};case 4:{kr(a,a+12|0,a+24|0,b+ -12|0,d)|0;x=1;i=e;return x|0};case 2:{b=b+ -12|0;if(!(Bd[c[d>>2]&255](b,a)|0)){x=1;i=e;return x|0}$W(x|0,a|0,12)|0;$W(a|0,b|0,12)|0;$W(b|0,x|0,12)|0;x=1;i=e;return x|0};case 5:{h=a+12|0;f=a+24|0;g=a+36|0;b=b+ -12|0;kr(a,h,f,g,d)|0;if(!(Bd[c[d>>2]&255](b,g)|0)){x=1;i=e;return x|0}$W(m|0,g|0,12)|0;$W(g|0,b|0,12)|0;$W(b|0,m|0,12)|0;if(!(Bd[c[d>>2]&255](g,f)|0)){x=1;i=e;return x|0}$W(j|0,f|0,12)|0;$W(f|0,g|0,12)|0;$W(g|0,j|0,12)|0;if(!(Bd[c[d>>2]&255](f,h)|0)){x=1;i=e;return x|0}$W(k|0,h|0,12)|0;$W(h|0,f|0,12)|0;$W(f|0,k|0,12)|0;if(!(Bd[c[d>>2]&255](h,a)|0)){x=1;i=e;return x|0}$W(l|0,a|0,12)|0;$W(a|0,h|0,12)|0;$W(h|0,l|0,12)|0;x=1;i=e;return x|0};case 1:case 0:{x=1;i=e;return x|0};default:{j=a+24|0;k=a+12|0;x=Bd[c[d>>2]&255](k,a)|0;l=Bd[c[d>>2]&255](j,k)|0;do{if(x){if(l){$W(n|0,a|0,12)|0;$W(a|0,j|0,12)|0;$W(j|0,n|0,12)|0;break}$W(r|0,a|0,12)|0;$W(a|0,k|0,12)|0;$W(k|0,r|0,12)|0;if(!(Bd[c[d>>2]&255](j,k)|0)){break}$W(q|0,k|0,12)|0;$W(k|0,j|0,12)|0;$W(j|0,q|0,12)|0}else{if(!l){break}$W(t|0,k|0,12)|0;$W(k|0,j|0,12)|0;$W(j|0,t|0,12)|0;if(!(Bd[c[d>>2]&255](k,a)|0)){break}$W(s|0,a|0,12)|0;$W(a|0,k|0,12)|0;$W(k|0,s|0,12)|0}}while(0);k=a+36|0;if((k|0)==(b|0)){x=1;i=e;return x|0}l=0;while(1){if(Bd[c[d>>2]&255](k,j)|0){$W(g|0,k|0,12)|0;m=k;while(1){$W(m|0,j|0,12)|0;if((j|0)==(a|0)){break}m=j+ -12|0;if(Bd[c[d>>2]&255](h,m)|0){x=j;j=m;m=x}else{break}}$W(j|0,g|0,12)|0;l=l+1|0;if((l|0)==8){break}}j=k+12|0;if((j|0)==(b|0)){a=1;f=35;break}else{x=k;k=j;j=x}}if((f|0)==35){i=e;return a|0}x=(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=FW(32)|0;o=c[k>>2]|0;if((o|0)!=4){c[m>>2]=o;c[l+4>>2]=4;Qe(0,72520,l);tc()}fe(n,c[f>>2]|0);c[a>>2]=(te(n,55160)|0)==0;if((n|0)==0){break}ke(n);HW(n)}else{c[a>>2]=0}}while(0);Of(e);do{if(((c[(Yu(b,55168,e,0)|0)>>2]|0)+ -1|0)>>>0<2){if((c[a>>2]|0)!=1){break}k=c[k>>2]|0;if((k+ -1|0)>>>0>=2){c[g>>2]=k;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,72608,j);tc()}if((k|0)==1){p=+(c[f>>2]|0)}else{p=+h[f>>3]}h[a+8>>3]=p;Of(e);i=d;return}}while(0);h[a+8>>3]=0.0;Of(e);i=d;return}function pr(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.0,t=0,u=0,v=0.0;d=i;l=i;i=i+16|0;n=l;f=i;i=i+16|0;g=f;e=i;i=i+8|0;k=i;i=i+16|0;j=k;p=c[b+12>>2]|0;if((p&1|0)!=0){Qe(-1,55176,e);i=d;return}o=(p|0)/2|0;e=ye(o,4)|0;bX(e|0,0,o<<2|0)|0;a:do{if((p|0)>1){p=j+8|0;q=p+4|0;r=0;b:while(1){c[k>>2]=13;c[p>>2]=0;c[q>>2]=0;u=r<<1;do{if(((c[(ut(b,u,j)|0)>>2]|0)+ -1|0)>>>0<2){t=c[k>>2]|0;if((t+ -1|0)>>>0>=2){m=7;break b}if((t|0)==1){t=1;s=+(c[p>>2]|0);break}else{t=1;s=+h[p>>3];break}}else{t=0;s=0.0}}while(0);Of(j);if(((c[(ut(b,u|1,j)|0)>>2]|0)+ -1|0)>>>0>=2){m=12;break}u=c[k>>2]|0;if((u+ -1|0)>>>0>=2){m=14;break}if((u|0)==1){v=+(c[p>>2]|0);Of(j);if(!t){break}}else{v=+h[p>>3];Of(j);if(!t){break}}u=FW(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=FW(32)|0;v=c[p>>2]|0;if((v|0)==7){ur(s,c[n>>2]|0);c[b+128>>2]=s;break}else{c[t>>2]=v;c[u+4>>2]=7;Qe(0,72520,u);tc()}}else{Of(m);if((c[(Yu(e,55648,m,0)|0)>>2]|0)!=6){c[b+128>>2]=0;break}t=FW(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=FW(32)|0;fe(A,63816);c[x>>2]=A;Fr(a,63832,m,63840,y,0,g);Er(a,j,0,g,d)}g=c[x>>2]|0;if((g|0)!=0){ke(g);HW(g)}A=c[l>>2]|0;y=+h[A>>3]+24.0;B=+h[A+8>>3]+24.0}else{w=a+132|0;y=+h[x+16>>3];B=+h[x+24>>3]}Nf(d,c[a+112>>2]|0,f,0)|0;A=c[l>>2]|0;Tx(b,f,c[a+128>>2]|0,c[w>>2]|0,+h[A>>3],+h[A+8>>3],y,B);Of(f);i=e;return}function Tr(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;d=i;f=i;i=i+8|0;g=f;n=i;i=i+8|0;l=n;j=i;i=i+16|0;h=j;c[j>>2]=13;b=h+8|0;c[b>>2]=0;c[b+4>>2]=0;Yu(e,63880,a+152|0,0)|0;do{if((c[(Yu(e,63888,h,0)|0)>>2]|0)==4){k=FW(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=FW(32)|0;fe(I,63816);c[z>>2]=I;Fr(a,63832,j,63840,A,0,g);Er(a,l,0,g,d)}g=c[z>>2]|0;if((g|0)==0){break}ke(g);HW(g)}else{y=a+132|0}}while(0);Nf(d,c[a+112>>2]|0,e,0)|0;I=c[v>>2]|0;Tx(b,e,0,c[y>>2]|0,+h[I>>3],+h[I+8>>3],+h[I+16>>3],+h[I+24>>3]);Of(e);i=f;return}function ds(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;m=i;i=i+8|0;h=i;i=i+8|0;j=h;n=i;i=i+8|0;o=n;k=i;i=i+16|0;e=k;l=i;i=i+32|0;c[k>>2]=13;d=e+8|0;c[d>>2]=0;c[d+4>>2]=0;if((c[(Yu(f,55944,e,0)|0)>>2]|0)==4){p=c[k>>2]|0;if((p|0)!=4){c[n>>2]=p;c[o+4>>2]=4;Qe(0,72520,o);tc()}fe(l,c[d>>2]|0);do{if((te(l,64352)|0)==0){c[b+24>>2]=9}else{if((te(l,64368)|0)==0){c[b+24>>2]=10;break}if((te(l,64384)|0)==0){c[b+24>>2]=11;break}if((te(l,64400)|0)!=0){break}c[b+24>>2]=12}}while(0);ke(l)}Of(e);if((c[(Yu(f,63904,e,0)|0)>>2]|0)!=6){Qe(-1,64416,m);c[b+192>>2]=0;a[b+144|0]=0;Of(e);i=g;return}f=FW(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=FW(32)|0;l=c[l>>2]|0;if((l|0)!=7){c[g>>2]=l;c[d+4>>2]=7;Qe(0,72520,d);tc()}xr(m,c[j>>2]|0);c[b+160>>2]=m;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}function js(a){a=a|0;var b=0;b=i;ks(a);HW(a);i=b;return}function ks(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=64496;d=c[a+160>>2]|0;if((d|0)!=0){yr(d);HW(d)}d=c[a+164>>2]|0;if((d|0)!=0){Su(d);HW(d)}d=c[a+168>>2]|0;if((d|0)!=0){Su(d);HW(d)}d=c[a+172>>2]|0;if((d|0)==0){Cr(a);i=b;return}Su(d);HW(d);Cr(a);i=b;return}function ls(b,e,f,g,j,k,l,m,n){b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;l=+l;m=m|0;n=n|0;var o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0.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,Q=0,R=0,S=0,T=0,U=0;w=i;J=i;i=i+8|0;I=J;x=i;i=i+8|0;H=i;i=i+8|0;t=H;F=i;i=i+8|0;G=F;o=i;i=i+8|0;q=i;i=i+8|0;v=i;i=i+8|0;r=v;s=i;i=i+8|0;b=i;i=i+8|0;u=i;i=i+8|0;A=ve(e)|0;do{if(A){z=e+24|0;if((c[z>>2]&1|0)==0){S=c[g>>2]|0;if((S|0)!=0){break}c[g>>2]=2;S=2;break}else{Qe(-1,64528,x);i=w;return}}else{S=c[g>>2]|0;z=e+24|0}}while(0);le(f)|0;x=f+24|0;y=e+28|0;e=f+28|0;M=l>0.0;P=c[p>>2]|0;R=0;T=0;O=0.0;while(1){Q=c[g>>2]|0;if((Q|0)>=(c[z>>2]|0)){D=O;break}C=c[x>>2]|0;E=c[y>>2]|0;U=d[E+Q|0]|0;if(A){U=U<<8;c[F>>2]=U;U=d[E+(Q+1)|0]|U;c[F>>2]=U;E=Q+2|0}else{if(!n){U=c[189696+(U<<2)>>2]|0}c[F>>2]=U;E=Q+1|0}c[g>>2]=E;if((U|0)==10){D=O;break}else if((U|0)==13){B=15;break}do{if(n){me(f,U&255)|0}else{K=jd[c[(c[j>>2]|0)+4>>2]&511](j)|0;if((K|0)==0){me(f,(c[F>>2]|0)>>>8&255)|0;me(f,c[F>>2]&255)|0;break}U=(xu(K,G,t,1)|0)==0;uu(K);if(U){c[J>>2]=c[F>>2];Gc(P|0,64576,I|0)|0;break}U=jd[c[c[j>>2]>>2]&511](j)|0;K=c[H>>2]|0;if(U){me(f,K>>>8&255)|0;me(f,c[H>>2]&255)|0;break}else{me(f,K&255)|0;break}}}while(0);if((c[F>>2]|0)==32){K=c[g>>2]|0;L=T?R:C;T=1}else{K=S;L=R;T=0}R=c[x>>2]|0;if((R|0)>(C|0)){h[v>>3]=0.0;xd[c[(c[j>>2]|0)+12>>2]&3](j,(c[e>>2]|0)+C|0,R-C|0,t,o,q,r,s,b,u)|0;N=O+ +h[v>>3]}else{N=O}if(M&N>l){B=37;break}S=K;R=L;T=T<<24>>24!=0;O=N}do{if((B|0)==15){if((E|0)>=(c[z>>2]|0)){D=O;break}B=c[y>>2]|0;f=a[B+E|0]|0;if(!A){if(f<<24>>24!=10){D=O;break}c[g>>2]=E+1;D=O;break}if(f<<24>>24!=0){D=O;break}if((a[B+(E+1)|0]|0)!=10){D=O;break}c[g>>2]=E+2;D=O}else if((B|0)==37){if((L|0)>0){c[g>>2]=K;re(f,L,(c[x>>2]|0)-L|0)|0;D=N;break}if((C|0)<=0){D=N;break}c[g>>2]=Q;re(f,C,(c[x>>2]|0)-C|0)|0;D=N}}while(0);do{if(M&D>l){f=c[g>>2]|0;C=c[z>>2]|0;B=(f|0)<(C|0);if(!A){a:do{if(B){A=C;do{if((a[(c[y>>2]|0)+f|0]|0)!=32){break a}f=f+1|0;c[g>>2]=f;A=c[z>>2]|0;}while((f|0)<(A|0))}else{A=C}}while(0);do{if((f|0)<(A|0)){if((a[(c[y>>2]|0)+f|0]|0)!=13){break}f=f+1|0;c[g>>2]=f;A=c[z>>2]|0}}while(0);if((f|0)>=(A|0)){break}if((a[(c[y>>2]|0)+f|0]|0)!=10){break}c[g>>2]=f+1;break}b:do{if(B){A=C;do{B=c[y>>2]|0;if((a[B+f|0]|0)!=0){break b}if((a[B+(f+1)|0]|0)!=32){break b}f=f+2|0;c[g>>2]=f;A=c[z>>2]|0;}while((f|0)<(A|0))}else{A=C}}while(0);do{if((f|0)<(A|0)){B=c[y>>2]|0;if((a[B+f|0]|0)!=0){break}if((a[B+(f+1)|0]|0)!=13){break}f=f+2|0;c[g>>2]=f;A=c[z>>2]|0}}while(0);if((f|0)>=(A|0)){break}y=c[y>>2]|0;if((a[y+f|0]|0)!=0){break}if((a[y+(f+1)|0]|0)!=10){break}c[g>>2]=f+2}}while(0);y=(k|0)!=0;if((m|0)==0&(y^1)){i=w;return}g=c[e>>2]|0;x=c[x>>2]|0;if(y){h[k>>3]=0.0}e=(m|0)!=0;if(e){c[m>>2]=0}if((x|0)<=0){i=w;return}if(y){if(e){while(1){h[v>>3]=0.0;e=xd[c[(c[j>>2]|0)+12>>2]&3](j,g,x,t,o,q,r,s,b,u)|0;if((e|0)==0){B=81;break}h[k>>3]=+h[v>>3]+ +h[k>>3];c[m>>2]=(c[m>>2]|0)+1;x=x-e|0;if((x|0)>0){g=g+e|0}else{B=81;break}}if((B|0)==81){i=w;return}}else{while(1){h[v>>3]=0.0;m=xd[c[(c[j>>2]|0)+12>>2]&3](j,g,x,t,o,q,r,s,b,u)|0;if((m|0)==0){B=81;break}h[k>>3]=+h[v>>3]+ +h[k>>3];x=x-m|0;if((x|0)>0){g=g+m|0}else{B=81;break}}if((B|0)==81){i=w;return}}}else{if(e){while(1){h[v>>3]=0.0;k=xd[c[(c[j>>2]|0)+12>>2]&3](j,g,x,t,o,q,r,s,b,u)|0;if((k|0)==0){B=81;break}c[m>>2]=(c[m>>2]|0)+1;x=x-k|0;if((x|0)>0){g=g+k|0}else{B=81;break}}if((B|0)==81){i=w;return}}else{while(1){h[v>>3]=0.0;m=xd[c[(c[j>>2]|0)+12>>2]&3](j,g,x,t,o,q,r,s,b,u)|0;if((m|0)==0){B=81;break}x=x-m|0;if((x|0)>0){g=g+m|0}else{B=81;break}}if((B|0)==81){i=w;return}}}}function ms(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;b=i;g=i;i=i+8|0;h=g;me(e,40)|0;f=d+24|0;if((c[f>>2]|0)<=0){me(e,41)|0;i=b;return}d=d+28|0;j=0;do{k=a[(c[d>>2]|0)+j|0]|0;do{if(k<<24>>24==92|k<<24>>24==41|k<<24>>24==40){me(e,92)|0;me(e,k)|0}else{if(k<<24>>24<32){c[g>>2]=k&255;pe(e,64624,h)|0;break}else{me(e,k)|0;break}}}while(0);j=j+1|0;}while((j|0)<(c[f>>2]|0));me(e,41)|0;i=b;return}function ns(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,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,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,na=0,oa=0,pa=0.0,qa=0,ra=0,sa=0.0,ta=0.0,ua=0.0,va=0.0,wa=0.0,xa=0;p=i;A=i;i=i+8|0;aa=A;$=i;i=i+16|0;_=$;da=i;i=i+8|0;ea=da;ba=i;i=i+8|0;ca=ba;ja=i;i=i+8|0;ka=ja;E=i;i=i+8|0;D=E;V=i;i=i+16|0;U=V;Y=i;i=i+8|0;Z=Y;X=i;i=i+8|0;W=X;ha=i;i=i+8|0;ia=ha;w=i;i=i+16|0;x=w;C=i;i=i+8|0;M=C;N=i;i=i+8|0;O=N;S=i;i=i+8|0;Q=S;u=i;i=i+8|0;z=i;i=i+8|0;oa=i;i=i+8|0;s=i;i=i+8|0;y=s;r=i;i=i+8|0;v=r;na=i;i=i+8|0;ma=na;fa=i;i=i+8|0;ga=fa;K=i;i=i+8|0;J=i;i=i+8|0;I=i;i=i+8|0;L=i;i=i+8|0;B=L;H=i;i=i+8|0;G=i;i=i+8|0;F=i;i=i+8|0;do{if((e|0)==0){q=0;T=37}else{q=FW(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=FW(32)|0;ee(je);Z=b+124|0;c[Z>>2]=je;do{if((c[(Yu(A,64512,e,0)|0)>>2]|0)==7){de=c[de>>2]|0;if((de|0)!=7){c[be>>2]=de;c[ce+4>>2]=7;Qe(0,72520,ce);tc()}kb=c[kb>>2]|0;if((kb|0)==0){jb=0;kb=0;break}do{if((c[(Yu(kb,55456,E,0)|0)>>2]|0)==6){be=c[K>>2]|0;if((be|0)!=6){c[$d>>2]=be;c[ae+4>>2]=6;Qe(0,72520,ae);tc()}$d=c[J>>2]|0;if((c[$d+12>>2]|0)<=0){break}vr(Ud,$d,0);$d=c[Ud+32>>2]|0;if(($d|0)==3){je=c[Z>>2]|0;xe=+h[Ud+8>>3];ze=+h[Ud+16>>3];he=Zd;h[k>>3]=+h[jb>>3];c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Sd+8|0;h[k>>3]=xe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Sd+16|0;h[k>>3]=ze;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[Sd+24>>2]=55800;pe(je,55768,Sd)|0}else if(($d|0)==4){je=c[Z>>2]|0;we=+h[Ud+8>>3];xe=+h[Ud+16>>3];ze=+h[Ud+24>>3];he=Td;h[k>>3]=+h[jb>>3];c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Wd+8|0;h[k>>3]=we;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Wd+16|0;h[k>>3]=xe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Wd+24|0;h[k>>3]=ze;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[Wd+32>>2]=107;pe(je,55728,Wd)|0}else if(($d|0)==1){je=c[Z>>2]|0;he=_d;h[k>>3]=+h[jb>>3];c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[Yd+8>>2]=103;pe(je,55816,Yd)|0}je=c[Z>>2]|0;ge=c[b+28>>2]|0;ze=+h[ge+24>>3]- +h[ge+8>>3];he=Xd;h[k>>3]=+h[ge+16>>3]- +h[ge>>3];c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Vd+8|0;h[k>>3]=ze;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];pe(je,65040,Vd)|0}}while(0);Of(E);jb=1}else{jb=0;kb=0}}while(0);pv(ma,65072,n)|0;do{if((c[(pv(ma,65080,E)|0)>>2]|0)==1){Sd=c[K>>2]|0;if((Sd|0)==1){Ga=c[J>>2]|0;break}else{c[Rd>>2]=Sd;c[Od+4>>2]=1;Qe(0,72520,Od);tc()}}else{Ga=0}}while(0);Of(E);do{if(jb){Od=b+128|0;Rd=c[Od>>2]|0;if((Rd|0)==0){break}Fb=+wd[c[(c[Rd>>2]|0)+12>>2]&1](Rd);if(Fb<=0.0){break}Yu(kb,55448,E,0)|0;if((c[K>>2]|0)==6){if((c[(c[J>>2]|0)+12>>2]|0)>0){ka=33}else{ka=32}}else{ka=32}if((ka|0)==32){Yu(kb,55456,E,0)|0;if((c[K>>2]|0)==6){ka=33}}a:do{if((ka|0)==33){if((c[(c[J>>2]|0)+12>>2]|0)<=0){break}Rd=c[b+28>>2]|0;Jb=+h[Rd+16>>3]- +h[Rd>>3];Ib=+h[Rd+24>>3]- +h[Rd+8>>3];Rd=(c[(Yu(kb,55464,F,0)|0)>>2]|0)==3;Of(F);do{if((c[db>>2]|0)==4){if((Qc(c[eb>>2]|0,65088)|0)!=0){break}if((Ga&32768|0)==0|Rd){break}le=(Jb<Ib?Jb:Ib)*.5;je=c[Od>>2]|0;switch(jd[c[(c[je>>2]|0)+24>>2]&511](je)|0){case 1:{ne(c[Z>>2]|0,64248,-1)|0;lb=c[Od>>2]|0;lb=jd[c[(c[lb>>2]|0)+16>>2]&511](lb)|0;mb=c[Od>>2]|0;mb=jd[c[(c[mb>>2]|0)+20>>2]&511](mb)|0;nb=c[Z>>2]|0;if((lb|0)>0){ob=0;while(1){je=Rc;h[k>>3]=+h[mb+(ob<<3)>>3];c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];pe(nb,64256,Sc)|0;ob=ob+1|0;nb=c[Z>>2]|0;if((ob|0)<(lb|0)){}else{break}}}ne(nb,65096,-1)|0;break};case 4:case 0:{break};case 3:case 2:{lb=c[Z>>2]|0;je=Jd;h[k>>3]=Fb*.5;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];pe(lb,64288,Ld)|0;lb=c[K>>2]|0;if((lb|0)!=6){c[Ed>>2]=lb;c[Dd+4>>2]=6;Qe(0,72520,Dd);tc()}vr(fd,c[J>>2]|0,0);qe=+h[Fd>>3];oe=+h[fd+8>>3];me=+h[fd+16>>3];lb=c[fd+32>>2]|0;if((lb|0)==4){ze=+h[fd+24>>3];je=c[Z>>2]|0;he=ad;h[k>>3]=qe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=$c+8|0;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=$c+16|0;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=$c+24|0;h[k>>3]=ze;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[$c+32>>2]=75;pe(je,55728,$c)|0}else if((lb|0)==3){je=c[Z>>2]|0;he=ed;h[k>>3]=qe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=dd+8|0;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=dd+16|0;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[dd+24>>2]=55808;pe(je,55768,dd)|0}else if((lb|0)==1){je=c[Z>>2]|0;he=cd;h[k>>3]=qe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[bd+8>>2]=71;pe(je,55816,bd)|0}Jb=Jb*.5;Ib=Ib*.5;Dr(b,Jb,Ib,le-Fb*.25,0);lb=c[K>>2]|0;if((lb|0)!=6){c[Ec>>2]=lb;c[Gc+4>>2]=6;Qe(0,72520,Gc);tc()}he=c[J>>2]|0;je=c[Od>>2]|0;je=(jd[c[(c[je>>2]|0)+24>>2]&511](je)|0)==2;vr(ec,he,je?1:-1);oe=+h[Fc>>3];me=+h[ec+8>>3];qe=+h[ec+16>>3];lb=c[ec+32>>2]|0;if((lb|0)==4){ze=+h[ec+24>>3];je=c[Z>>2]|0;he=bc;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=dc+8|0;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=dc+16|0;h[k>>3]=qe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=dc+24|0;h[k>>3]=ze;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[dc+32>>2]=75;pe(je,55728,dc)|0}else if((lb|0)==3){je=c[Z>>2]|0;he=cc;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=gc+8|0;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=gc+16|0;h[k>>3]=qe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[gc+24>>2]=55808;pe(je,55768,gc)|0}else if((lb|0)==1){je=c[Z>>2]|0;he=fc;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[Tb+8>>2]=71;pe(je,55816,Tb)|0}ue=(le-Fb*.75)/1.4142135623730951;lb=c[Z>>2]|0;Fb=Jb+ue;le=Ib+ue;je=Kb;h[k>>3]=Fb;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];je=Lb+8|0;h[k>>3]=le;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];pe(lb,55832,Lb)|0;lb=c[Z>>2]|0;te=ue*.44771525;re=Jb+te;oe=ue*1.55228475;ze=Ib+oe;qe=Jb-te;me=Jb-ue;je=Hb;h[k>>3]=re;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];je=Gb+8|0;h[k>>3]=ze;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];je=Gb+16|0;h[k>>3]=qe;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];je=Gb+24|0;h[k>>3]=ze;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];je=Gb+32|0;h[k>>3]=me;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];je=Gb+40|0;h[k>>3]=le;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];pe(lb,55856,Gb)|0;lb=c[Z>>2]|0;ze=Jb-oe;ve=Ib+te;te=Ib-te;ue=Ib-ue;je=Eb;h[k>>3]=ze;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];je=Db+8|0;h[k>>3]=ve;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];je=Db+16|0;h[k>>3]=ze;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];je=Db+24|0;h[k>>3]=te;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];je=Db+32|0;h[k>>3]=me;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];je=Db+40|0;h[k>>3]=ue;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];pe(lb,55856,Db)|0;ne(c[Z>>2]|0,55928,-1)|0;lb=c[K>>2]|0;if((lb|0)!=6){c[Bb>>2]=lb;c[Cb+4>>2]=6;Qe(0,72520,Cb);tc()}he=c[J>>2]|0;je=c[Od>>2]|0;je=(jd[c[(c[je>>2]|0)+24>>2]&511](je)|0)==2;vr(xb,he,je?-1:1);ze=+h[Ab>>3];xe=+h[xb+8>>3];we=+h[xb+16>>3];lb=c[xb+32>>2]|0;if((lb|0)==4){Ae=+h[xb+24>>3];je=c[Z>>2]|0;he=yb;h[k>>3]=ze;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=nb+8|0;h[k>>3]=xe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=nb+16|0;h[k>>3]=we;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=nb+24|0;h[k>>3]=Ae;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[nb+32>>2]=75;pe(je,55728,nb)|0}else if((lb|0)==3){je=c[Z>>2]|0;he=zb;h[k>>3]=ze;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=pb+8|0;h[k>>3]=xe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=pb+16|0;h[k>>3]=we;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[pb+24>>2]=55808;pe(je,55768,pb)|0}else if((lb|0)==1){je=c[Z>>2]|0;he=qb;h[k>>3]=ze;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[rb+8>>2]=71;pe(je,55816,rb)|0}je=c[Z>>2]|0;he=wb;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=ub+8|0;h[k>>3]=ue;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];pe(je,55832,ub)|0;je=c[Z>>2]|0;Ae=Ib-oe;he=sb;h[k>>3]=qe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=tb+8|0;h[k>>3]=Ae;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=tb+16|0;h[k>>3]=re;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=tb+24|0;h[k>>3]=Ae;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=tb+32|0;h[k>>3]=Fb;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=tb+40|0;h[k>>3]=ue;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];pe(je,55856,tb)|0;je=c[Z>>2]|0;Ae=Jb+oe;he=ob;h[k>>3]=Ae;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=vb+8|0;h[k>>3]=te;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=vb+16|0;h[k>>3]=Ae;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=vb+24|0;h[k>>3]=ve;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=vb+32|0;h[k>>3]=Fb;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=vb+40|0;h[k>>3]=le;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];pe(je,55856,vb)|0;ne(c[Z>>2]|0,55928,-1)|0;break a};default:{break a}}lb=c[Z>>2]|0;je=Dc;h[k>>3]=Fb;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];pe(lb,64288,Cc)|0;lb=c[K>>2]|0;if((lb|0)!=6){c[Ac>>2]=lb;c[Bc+4>>2]=6;Qe(0,72520,Bc);tc()}vr(Rb,c[J>>2]|0,0);me=+h[zc>>3];oe=+h[Rb+8>>3];qe=+h[Rb+16>>3];lb=c[Rb+32>>2]|0;if((lb|0)==1){je=c[Z>>2]|0;he=Qb;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[Sb+8>>2]=71;pe(je,55816,Sb)|0}else if((lb|0)==4){Ae=+h[Rb+24>>3];je=c[Z>>2]|0;he=Mb;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Nb+8|0;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Nb+16|0;h[k>>3]=qe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Nb+24|0;h[k>>3]=Ae;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[Nb+32>>2]=75;pe(je,55728,Nb)|0}else if((lb|0)==3){je=c[Z>>2]|0;he=Ob;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Pb+8|0;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Pb+16|0;h[k>>3]=qe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[Pb+24>>2]=55808;pe(je,55768,Pb)|0}Dr(b,Jb*.5,Ib*.5,le-Fb*.5,0);break a}}while(0);je=c[Od>>2]|0;switch(jd[c[(c[je>>2]|0)+24>>2]&511](je)|0){case 3:case 2:{nb=c[K>>2]|0;if((nb|0)!=6){c[Hd>>2]=nb;c[Gd+4>>2]=6;Qe(0,72520,Gd);tc()}he=c[J>>2]|0;je=c[Od>>2]|0;je=(jd[c[(c[je>>2]|0)+24>>2]&511](je)|0)==2;vr(zd,he,je?1:-1);oe=+h[Md>>3];me=+h[zd+8>>3];le=+h[zd+16>>3];nb=c[zd+32>>2]|0;if((nb|0)==4){Ae=+h[zd+24>>3];je=c[Z>>2]|0;he=Ad;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Bd+8|0;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Bd+16|0;h[k>>3]=le;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Bd+24|0;h[k>>3]=Ae;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[Bd+32>>2]=107;pe(je,55728,Bd)|0}else if((nb|0)==3){je=c[Z>>2]|0;he=Cd;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=yd+8|0;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=yd+16|0;h[k>>3]=le;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[yd+24>>2]=55800;pe(je,55768,yd)|0}else if((nb|0)==1){je=c[Z>>2]|0;he=xd;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[pd+8>>2]=103;pe(je,55816,pd)|0}ne(c[Z>>2]|0,65144,-1)|0;nb=c[Z>>2]|0;je=id;h[k>>3]=Ib;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];pe(nb,65152,sd)|0;nb=c[Z>>2]|0;je=td;h[k>>3]=Jb;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];je=gd+8|0;h[k>>3]=Ib;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];pe(nb,64304,gd)|0;nb=c[Z>>2]|0;le=Jb-Fb;me=Ib-Fb;je=Uc;h[k>>3]=le;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];je=_c+8|0;h[k>>3]=me;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];pe(nb,64304,_c)|0;nb=c[Z>>2]|0;je=Zc;h[k>>3]=Fb;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];je=Yc+8|0;h[k>>3]=me;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];pe(nb,64304,Yc)|0;nb=c[Z>>2]|0;je=Xc;h[k>>3]=Fb;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];pe(nb,65168,Wc)|0;ne(c[Z>>2]|0,55912,-1)|0;nb=c[K>>2]|0;if((nb|0)!=6){c[Oc>>2]=nb;c[Nc+4>>2]=6;Qe(0,72520,Nc);tc()}he=c[J>>2]|0;je=c[Od>>2]|0;je=(jd[c[(c[je>>2]|0)+24>>2]&511](je)|0)==2;vr(rc,he,je?-1:1);re=+h[Pc>>3];oe=+h[rc+8>>3];qe=+h[rc+16>>3];nb=c[rc+32>>2]|0;if((nb|0)==4){Ae=+h[rc+24>>3];je=c[Z>>2]|0;he=sc;h[k>>3]=re;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=uc+8|0;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=uc+16|0;h[k>>3]=qe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=uc+24|0;h[k>>3]=Ae;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[uc+32>>2]=107;pe(je,55728,uc)|0}else if((nb|0)==3){je=c[Z>>2]|0;he=vc;h[k>>3]=re;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=wc+8|0;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=wc+16|0;h[k>>3]=qe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[wc+24>>2]=55800;pe(je,55768,wc)|0}else if((nb|0)==1){je=c[Z>>2]|0;he=xc;h[k>>3]=re;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[yc+8>>2]=103;pe(je,55816,yc)|0}ne(c[Z>>2]|0,65144,-1)|0;je=c[Z>>2]|0;he=hc;h[k>>3]=Jb;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];pe(je,65192,ic)|0;je=c[Z>>2]|0;he=jc;h[k>>3]=Jb;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=kc+8|0;h[k>>3]=Ib;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];pe(je,64304,kc)|0;je=c[Z>>2]|0;he=lc;h[k>>3]=le;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=mc+8|0;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];pe(je,64304,mc)|0;je=c[Z>>2]|0;he=nc;h[k>>3]=le;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=oc+8|0;h[k>>3]=Fb;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];pe(je,64304,oc)|0;je=c[Z>>2]|0;he=pc;h[k>>3]=Fb;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];pe(je,65168,qc)|0;ne(c[Z>>2]|0,55912,-1)|0;break};case 1:{ne(c[Z>>2]|0,64248,-1)|0;ka=c[Od>>2]|0;ka=jd[c[(c[ka>>2]|0)+16>>2]&511](ka)|0;nb=c[Od>>2]|0;nb=jd[c[(c[nb>>2]|0)+20>>2]&511](nb)|0;pb=c[Z>>2]|0;if((ka|0)>0){ob=0;while(1){je=Vc;h[k>>3]=+h[nb+(ob<<3)>>3];c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];pe(pb,64256,Tc)|0;ob=ob+1|0;pb=c[Z>>2]|0;if((ob|0)<(ka|0)){}else{break}}}ne(pb,65096,-1)|0;ka=71;break};case 0:{ka=71;break};case 4:{nb=c[Z>>2]|0;je=Pd;h[k>>3]=Fb;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];pe(nb,64288,Qd)|0;nb=c[K>>2]|0;if((nb|0)!=6){c[Nd>>2]=nb;c[Id+4>>2]=6;Qe(0,72520,Id);tc()}vr(ld,c[J>>2]|0,0);le=+h[Kd>>3];oe=+h[ld+8>>3];me=+h[ld+16>>3];nb=c[ld+32>>2]|0;if((nb|0)==4){Ae=+h[ld+24>>3];je=c[Z>>2]|0;he=md;h[k>>3]=le;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=vd+8|0;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=vd+16|0;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=vd+24|0;h[k>>3]=Ae;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[vd+32>>2]=75;pe(je,55728,vd)|0}else if((nb|0)==3){je=c[Z>>2]|0;he=ud;h[k>>3]=le;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=rd+8|0;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=rd+16|0;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[rd+24>>2]=55808;pe(je,55768,rd)|0}else if((nb|0)==1){je=c[Z>>2]|0;he=qd;h[k>>3]=le;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[kd+8>>2]=71;pe(je,55816,kd)|0}je=c[Z>>2]|0;he=od;h[k>>3]=Jb;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];pe(je,65208,nd)|0;break};default:{}}if((ka|0)==71){nb=c[Z>>2]|0;je=Lc;h[k>>3]=Fb;c[je>>2]=c[k>>2];c[je+4>>2]=c[k+4>>2];pe(nb,64288,Mc)|0;nb=c[K>>2]|0;if((nb|0)!=6){c[Kc>>2]=nb;c[Jc+4>>2]=6;Qe(0,72520,Jc);tc()}vr(_b,c[J>>2]|0,0);oe=+h[Hc>>3];me=+h[_b+8>>3];le=+h[_b+16>>3];nb=c[_b+32>>2]|0;if((nb|0)==4){Ae=+h[_b+24>>3];je=c[Z>>2]|0;he=Zb;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Yb+8|0;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Yb+16|0;h[k>>3]=le;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Yb+24|0;h[k>>3]=Ae;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[Yb+32>>2]=75;pe(je,55728,Yb)|0}else if((nb|0)==3){je=c[Z>>2]|0;he=Xb;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Wb+8|0;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=Wb+16|0;h[k>>3]=le;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[Wb+24>>2]=55808;pe(je,55768,Wb)|0}else if((nb|0)==1){je=c[Z>>2]|0;he=Vb;h[k>>3]=oe;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[Ub+8>>2]=71;pe(je,55816,Ub)|0}je=c[Z>>2]|0;he=ac;h[k>>3]=Fb*.5;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=$b+8|0;h[k>>3]=Jb-Fb;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=$b+16|0;h[k>>3]=Ib-Fb;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];pe(je,65104,$b)|0}je=c[Z>>2]|0;Ae=Fb*2.0;he=mb;h[k>>3]=Fb;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=lb+8|0;h[k>>3]=Jb-Ae;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=lb+16|0;h[k>>3]=Ib-Ae;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];pe(je,65232,lb)|0}}while(0);Of(E)}}while(0);Yu(ib,65272,P,0)|0;do{if((c[T>>2]|0)==7){if((c[(Yu(c[hb>>2]|0,65280,E,0)|0)>>2]|0)!=7){g=0;break}lb=FW(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=FW(32)|0;fe(_a,65296)}ns(b,_a,fb,g,0,0,1,0,1,0)}}while(0);Of(E);ka=150}else{if((c[(pv(ma,65288,E)|0)>>2]|0)==4){ka=Yu(A,55624,F,0)|0;la=c[K>>2]|0;if((la|0)!=4){c[Ka>>2]=la;c[Na+4>>2]=4;Qe(0,72520,Na);tc()}do{if((c[ka>>2]|0)==4){la=c[J>>2]|0;if((Qc(c[ka+8>>2]|0,la|0)|0)!=0){break}if((Qc(la|0,55632)|0)==0){break}if((_a|0)!=0){ns(b,_a,fb,g,0,0,1,0,1,0);break}if(!jb){break}do{if((c[(Yu(kb,55448,ha,0)|0)>>2]|0)==6){ja=c[ja>>2]|0;if((ja|0)!=6){c[Ia>>2]=ja;c[Ha+4>>2]=6;Qe(0,72520,Ha);tc()}ia=c[ia>>2]|0;if((c[ia+12>>2]|0)<=0){break}je=c[b+28>>2]|0;Fb=+h[je+16>>3]- +h[je>>3];Ib=+h[je+24>>3]- +h[je+8>>3];vr(xa,ia,0);me=+h[Fa>>3];le=+h[xa+8>>3];Jb=+h[xa+16>>3];ia=c[xa+32>>2]|0;if((ia|0)==4){Ae=+h[xa+24>>3];je=c[Z>>2]|0;he=Aa;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=ya+8|0;h[k>>3]=le;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=ya+16|0;h[k>>3]=Jb;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=ya+24|0;h[k>>3]=Ae;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[ya+32>>2]=107;pe(je,55728,ya)|0}else if((ia|0)==3){je=c[Z>>2]|0;he=za;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=ua+8|0;h[k>>3]=le;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];he=ua+16|0;h[k>>3]=Jb;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[ua+24>>2]=55800;pe(je,55768,ua)|0}else if((ia|0)==1){je=c[Z>>2]|0;he=wa;h[k>>3]=me;c[he>>2]=c[k>>2];c[he+4>>2]=c[k+4>>2];c[va+8>>2]=103;pe(je,55816,va)|0}Dr(b,Fb*.5,Ib*.5,(Fb<Ib?Fb:Ib)*.2,1)}}while(0);Of(ha)}}while(0);Of(F)}Of(E);ka=150}}while(0);if((ka|0)==150){if((_a|0)==0){break}}ke(_a);HW(_a);break}if((Qc(db|0,65304)|0)==0){do{if((c[(pv(ma,65288,E)|0)>>2]|0)==3){do{if((c[(pv(ma,64e3,F)|0)>>2]|0)==1){ha=c[I>>2]|0;if((ha|0)==1){La=c[D>>2]|0;break}else{c[Xa>>2]=ha;c[Ya+4>>2]=1;Qe(0,72520,Ya);tc()}}else{La=0}}while(0);Of(F);if((Ga&16777216|0)==0){Qa=0}else{do{if((c[(pv(ma,65312,F)|0)>>2]|0)==1){ha=c[I>>2]|0;if((ha|0)==1){Qa=c[D>>2]|0;break}else{c[Va>>2]=ha;c[Ua+4>>2]=1;Qe(0,72520,Ua);tc()}}else{Qa=0}}while(0);Of(F)}ha=c[K>>2]|0;if((ha|0)==3){ns(b,c[J>>2]|0,fb,g,(Ga&4096|0)!=0,Qa,La,1,0,(Ga&8192|0)!=0);break}else{c[Ja>>2]=ha;c[Ma+4>>2]=3;Qe(0,72520,Ma);tc()}}}while(0);Of(E);break}if((Qc(db|0,65320)|0)!=0){if((Qc(db|0,65344)|0)==0){break}else{ka=223;break}}do{if((c[(pv(ma,64e3,E)|0)>>2]|0)==1){ua=c[K>>2]|0;if((ua|0)==1){la=c[J>>2]|0;break}else{c[Za>>2]=ua;c[ab+4>>2]=1;Qe(0,72520,ab);tc()}}else{la=0}}while(0);Of(E);if((Ga&131072|0)!=0){do{if((c[(pv(ma,65288,E)|0)>>2]|0)==3){ha=c[K>>2]|0;if((ha|0)==3){ns(b,c[J>>2]|0,fb,g,0,0,la,1,0,0);break}else{c[Ta>>2]=ha;c[Wa+4>>2]=3;Qe(0,72520,Wa);tc()}}}while(0);Of(E);break}if((c[(Yu(ma,65328,E,0)|0)>>2]|0)==6){ua=c[K>>2]|0;if((ua|0)!=6){c[Sa>>2]=ua;c[Ra+4>>2]=6;Qe(0,72520,Ra);tc()}va=c[(c[J>>2]|0)+12>>2]|0;ua=ye(va,4)|0;wa=(va|0)>0;c:do{if(wa){ya=0;d:while(1){xa=ua+(ya<<2)|0;c[xa>>2]=0;za=c[K>>2]|0;if((za|0)!=6){ka=185;break}ut(c[J>>2]|0,ya,F)|0;za=c[I>>2]|0;do{if((za|0)==3){he=c[D>>2]|0;je=FW(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=FW(16)|0;n=c[j>>2]|0;if((n|0)==7){or(m,c[b>>2]|0);c[a+196>>2]=m;break}else{c[k>>2]=n;c[l+4>>2]=7;Qe(0,72520,l);tc()}}else{c[a+196>>2]=0}}while(0);Of(h);k=a+200|0;c[k>>2]=0;if((c[(Yu(e,64080,h,0)|0)>>2]|0)!=6){Of(h);i=d;return}e=c[j>>2]|0;if((e|0)!=6){c[f>>2]=e;c[g+4>>2]=6;Qe(0,72520,g);tc()}c[k>>2]=nr(c[b>>2]|0,c[a+28>>2]|0)|0;Of(h);i=d;return}function Es(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=65728;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+200>>2]|0;if((d|0)==0){Or(a);HW(a);i=b;return}HW(d);Or(a);HW(a);i=b;return}function Fs(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=65728;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+200>>2]|0;if((d|0)==0){Or(a);i=b;return}HW(d);Or(a);i=b;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,H=0,I=0,J=0.0,K=0,L=0,M=0,N=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.0,Z=0.0,_=0.0,$=0.0,aa=0.0,ba=0.0,ca=0.0;f=i;p=i;i=i+48|0;A=p;x=i;i=i+48|0;y=x;v=i;i=i+48|0;w=v;t=i;i=i+48|0;u=t;r=i;i=i+16|0;s=r;G=i;i=i+32|0;q=G;E=i;i=i+16|0;C=E;z=i;i=i+32|0;F=z;B=i;i=i+40|0;H=B;L=i;i=i+8|0;K=L;M=i;i=i+8|0;N=M;T=i;i=i+16|0;Q=T;P=i;i=i+32|0;U=P;S=i;i=i+40|0;R=S;D=i;i=i+16|0;e=D;n=i;i=i+32|0;m=n;o=i;i=i+16|0;l=o;j=i;i=i+16|0;g=j;c[D>>2]=13;D=e+8|0;c[D>>2]=0;c[D+4>>2]=0;D=c[a+48>>2]|0;if((D&2|0)!=0){i=f;return}do{if(d){if((D&4|0)!=0){break}i=f;return}else{if((D&32|0)==0){break}i=f;return}}while(0);D=c[a+88>>2]|0;do{if((D|0)!=0){d=a+96|0;if((c[d>>2]|0)!=9){break}if(GF(D,d)|0){break}i=f;return}}while(0);d=a+64|0;do{if((c[d>>2]|0)==5){J=+h[a+160>>3];D=FW(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=FW(32)|0;fe(z,63816);c[w>>2]=z;Fr(a,63832,j,63840,x,0,l);Er(a,g,0,l,v)}g=c[w>>2]|0;if((g|0)==0){break}ke(g);HW(g)}else{d=a+132|0}}while(0);Nf(v,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 Ys(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;h=i;f=i;i=i+8|0;g=f;j=i;i=i+16|0;d=j;c[j>>2]=13;b=d+8|0;c[b>>2]=0;c[b+4>>2]=0;if((c[(Yu(e,71608,d,0)|0)>>2]|0)!=7){c[a+148>>2]=0;Of(d);i=h;return}e=FW(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=FW(32)|0;fe(f,d);b=Et(b,c[a>>2]|0,f,0)|0;if((f|0)!=0){ke(f);HW(f)}if((b|0)==0){i=e;return}Ft(a,c[a+12>>2]|0,c[b+12>>2]|0);Gt(b);i=e;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;h=i;if(g>>>0<=1){i=h;return}j=g+ -1|0;n=j<<3;k=e>>>n&255;g=f>>>n&255;n=(1<<n)+ -1|0;e=n&e;f=n&f;if(k>>>0>g>>>0){i=h;return}while(1){l=d+(k<<3)|0;a:do{if((a[l]&1)==0){a[l]=1;l=ye(256,8)|0;m=d+(k<<3)+4|0;c[m>>2]=l;n=0;while(1){a[l+(n<<3)|0]=0;c[(c[m>>2]|0)+(n<<3)+4>>2]=0;n=n+1|0;if((n|0)>=256){break a}l=c[m>>2]|0}}else{m=d+(k<<3)+4|0}}while(0);Ct(b,c[m>>2]|0,e,f,j);if((k|0)<(g|0)){k=k+1|0}else{break}}i=h;return}function Dt(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;j=i;k=i;i=i+16|0;h=k;l=i;i=i+16|0;m=l;n=f+ -1|0;b=c[b+12>>2]|0;a:do{if((n|0)==0){l=b}else{while(1){o=d>>>(n<<3)&255;if((a[b+(o<<3)|0]&1)==0){break}n=n+ -1|0;b=c[b+(o<<3)+4>>2]|0;if((n|0)==0){l=b;break a}}o=f<<1;c[l>>2]=o;c[m+4>>2]=d;c[m+8>>2]=o;c[m+12>>2]=e;Qe(-1,130528,m);i=j;return}}while(0);n=d&255;m=e&255;if(n>>>0>m>>>0){i=j;return}f=f<<1;while(1){if((a[l+(n<<3)|0]&1)==0){c[l+(n<<3)+4>>2]=g}else{c[k>>2]=f;c[h+4>>2]=d;c[h+8>>2]=f;c[h+12>>2]=e;Qe(-1,130528,h)}if((n|0)<(m|0)){n=n+1|0;g=g+1|0}else{break}}i=j;return}function Et(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;h=c[a>>2]|0;do{if((h|0)==0){h=1}else{if((se(c[h>>2]|0,b)|0)!=0){h=1;break}if((se(c[h+4>>2]|0,d)|0)!=0){h=1;break}j=c[a>>2]|0;k=j+20|0;Ub(k|0)|0;j=j+16|0;c[j>>2]=(c[j>>2]|0)+1;Mc(k|0)|0;k=c[a>>2]|0;i=f;return k|0}}while(0);a:do{j=a+(h<<2)|0;k=c[j>>2]|0;do{if((k|0)!=0){if((se(c[k>>2]|0,b)|0)!=0){break}if((se(c[k+4>>2]|0,d)|0)==0){g=8;break a}}}while(0);h=h+1|0;}while((h|0)<4);if((g|0)==8){d=c[j>>2]|0;if((h|0)>0){while(1){b=h+ -1|0;c[a+(h<<2)>>2]=c[a+(b<<2)>>2];if((b|0)>0){h=b}else{break}}}c[a>>2]=d;k=d+20|0;Ub(k|0)|0;j=d+16|0;c[j>>2]=(c[j>>2]|0)+1;Mc(k|0)|0;k=d;i=f;return k|0}d=yt(a,b,d,e)|0;if((d|0)==0){k=0;i=f;return k|0}b=a+12|0;g=c[b>>2]|0;if((g|0)!=0){Gt(g)}j=a+8|0;c[b>>2]=c[j>>2];k=a+4|0;c[j>>2]=c[k>>2];c[k>>2]=c[a>>2];c[a>>2]=d;k=d+20|0;Ub(k|0)|0;j=d+16|0;c[j>>2]=(c[j>>2]|0)+1;Mc(k|0)|0;k=d;i=f;return k|0}function Ft(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;h=i;f=i;i=i+8|0;g=0;do{j=d+(g<<3)|0;k=(a[j]&1)!=0;do{if((a[e+(g<<3)|0]&1)==0){if(k){Qe(-1,130504,f);break}else{c[d+(g<<3)+4>>2]=c[e+(g<<3)+4>>2];break}}else{a:do{if(k){k=d+(g<<3)+4|0}else{a[j]=1;j=ye(256,8)|0;k=d+(g<<3)+4|0;c[k>>2]=j;l=0;while(1){a[j+(l<<3)|0]=0;c[(c[k>>2]|0)+(l<<3)+4>>2]=0;l=l+1|0;if((l|0)>=256){break a}j=c[k>>2]|0}}}while(0);Ft(b,c[k>>2]|0,c[e+(g<<3)+4>>2]|0)}}while(0);g=g+1|0;}while((g|0)<256);i=h;return}function Gt(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+20|0;Ub(d|0)|0;f=a+16|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)}e=c[a+4>>2]|0;if((e|0)!=0){ke(e);HW(e)}e=c[a+12>>2]|0;if((e|0)!=0){Ht(a,e)}kc(d|0)|0;HW(a);i=b;return}function Ht(b,d){b=b|0;d=d|0;var e=0,f=0;e=i;f=0;do{if((a[d+(f<<3)|0]&1)!=0){Ht(b,c[d+(f<<3)+4>>2]|0)}f=f+1|0;}while((f|0)<256);Fe(d);i=e;return}function It(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;k=c[b+12>>2]|0;if((k|0)==0){c[g>>2]=2;if((f|0)<2){k=0;i=h;return k|0}k=(d[e]|0)<<8|(d[e+1|0]|0);i=h;return k|0}a:do{if((f|0)>0){j=0;while(1){b=j+1|0;j=d[e+j|0]|0;if((a[k+(j<<3)|0]&1)==0){break}if((b|0)<(f|0)){k=c[k+(j<<3)+4>>2]|0;j=b}else{break a}}c[g>>2]=b;k=c[k+(j<<3)+4>>2]|0;i=h;return k|0}else{b=0}}while(0);c[g>>2]=b;k=0;i=h;return k|0}function Jt(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;if((e|0)==0){i=j;return}if((h|0)==0){h=0;do{if((a[e+(h<<3)|0]&1)!=0){Jt(b,h+d<<8,c[e+(h<<3)+4>>2]|0,f,g,0)}h=h+1|0;}while((h|0)<256);i=j;return}else{k=0}do{a:do{if((a[e+(k<<3)|0]&1)==0){m=c[e+(k<<3)+4>>2]|0;if(m>>>0>=g>>>0){break}l=k+d|0;o=da(m,h)|0;p=0;while(1){m=f+(p+o<<2)|0;n=c[m>>2]|0;if((n|0)==0){break}p=p+1|0;if(!((n|0)!=(l|0)&p>>>0<h>>>0)){break a}}c[m>>2]=l}else{Jt(b,k+d<<8,c[e+(k<<3)+4>>2]|0,f,g,h)}}while(0);k=k+1|0;}while((k|0)<256);i=j;return}function Kt(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;Jt(a,0,c[a+12>>2]|0,b,d,e);i=f;return}function Lt(a){a=a|0;var b=0;b=i;bX(a|0,0,16)|0;i=b;return}function Mt(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)!=0){Gt(d)}d=c[a+4>>2]|0;if((d|0)!=0){Gt(d)}d=c[a+8>>2]|0;if((d|0)!=0){Gt(d)}a=c[a+12>>2]|0;if((a|0)==0){i=b;return}Gt(a);i=b;return}function Nt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;c[a+4>>2]=d;c[a>>2]=b;c[a+12>>2]=0;h=FW(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=FW(24)|0;Lv(f,c[a>>2]|0,e);c[d>>2]=f;e=f;i=b;return e|0}function $t(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;b=i;f=c[a+28>>2]|0;if((f|0)!=0){g=c[f>>2]|0;if((g|0)!=0){e=f+4|0;d=c[e>>2]|0;if((g|0)!=(d|0)){c[e>>2]=d+(~((d+ -4+(0-g)|0)>>>2)<<2)}HW(g)}HW(f)}d=a+24|0;h=c[d>>2]|0;do{if((h|0)!=0){f=c[h>>2]|0;g=h+4|0;e=c[g>>2]|0;if(f>>>0<e>>>0){e=h;while(1){g=c[f>>2]|0;if((g|0)==0){h=e}else{jg(g);HW(g);h=c[d>>2]|0}f=f+4|0;g=h+4|0;e=c[g>>2]|0;if(f>>>0<e>>>0){e=h}else{break}}if((h|0)==0){break}else{d=h}}else{d=h}f=c[d>>2]|0;if((f|0)!=0){if((f|0)!=(e|0)){c[g>>2]=e+(~((e+ -4+(0-f)|0)>>>2)<<2)}HW(f)}HW(d)}}while(0);f=c[a+20>>2]|0;if((f|0)!=0){e=c[f>>2]|0;if((e|0)!=0){d=f+4|0;g=c[d>>2]|0;if((e|0)!=(g|0)){c[d>>2]=g+(~((g+ -8+(0-e)|0)>>>3)<<3)}HW(e)}HW(f)}d=a+16|0;h=c[d>>2]|0;do{if((h|0)!=0){g=c[h>>2]|0;f=h+4|0;e=c[f>>2]|0;if(g>>>0<e>>>0){do{j=(c[g>>2]|0)+20|0;k=(c[j>>2]|0)+ -1|0;c[j>>2]=k;do{if((k|0)==0){e=c[g>>2]|0;if((e|0)==0){break}Su(e);HW(e)}}while(0);g=g+4|0;h=c[d>>2]|0;f=h+4|0;e=c[f>>2]|0;}while(g>>>0<e>>>0);if((h|0)==0){break}else{d=h}}else{d=h}g=c[d>>2]|0;if((g|0)!=0){if((g|0)!=(e|0)){c[f>>2]=e+(~((e+ -4+(0-g)|0)>>>2)<<2)}HW(g)}HW(d)}}while(0);e=a+4|0;h=c[e>>2]|0;if((h|0)!=0){d=a+40|0;f=c[d>>2]|0;if((f|0)>0){g=0;do{j=c[h+(g<<2)>>2]|0;if((j|0)!=0){lg(j);HW(j);h=c[e>>2]|0;f=c[d>>2]|0}g=g+1|0;}while((g|0)<(f|0))}Fe(h);Fe(c[a+8>>2]|0)}Of(a+64|0);Of(a+48|0);d=c[a+80>>2]|0;if((d|0)!=0){e=d+16|0;g=c[e>>2]|0;f=d+8|0;j=c[f>>2]|0;if((g|0)>0){h=0;do{k=c[j+(h<<2)>>2]|0;if((k|0)!=0){Of(k+32|0);ke(k);HW(k);j=c[f>>2]|0;g=c[e>>2]|0}h=h+1|0;}while((h|0)<(g|0))}Fe(j);HW(d)}d=c[a+84>>2]|0;if((d|0)!=0){e=d+16|0;g=c[e>>2]|0;f=d+8|0;j=c[f>>2]|0;if((g|0)>0){h=0;do{k=c[j+(h<<2)>>2]|0;if((k|0)!=0){Of(k+32|0);ke(k);HW(k);j=c[f>>2]|0;g=c[e>>2]|0}h=h+1|0;}while((h|0)<(g|0))}Fe(j);HW(d)}d=c[a+88>>2]|0;if((d|0)!=0){f=d+16|0;g=c[f>>2]|0;e=d+8|0;j=c[e>>2]|0;if((g|0)>0){h=0;do{k=c[j+(h<<2)>>2]|0;if((k|0)!=0){Of(k+32|0);ke(k);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+92>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+168>>2]|0;if((d|0)!=0){$F(d);HW(d)}d=c[a+32>>2]|0;if((d|0)!=0){Mv(d);HW(d)}d=c[a+160>>2]|0;if((d|0)==0){k=a+96|0;Of(k);k=a+112|0;Of(k);k=a+128|0;Of(k);k=a+144|0;Of(k);i=b;return}FF(d);HW(d);k=a+96|0;Of(k);k=a+112|0;Of(k);k=a+128|0;Of(k);k=a+144|0;Of(k);i=b;return}function au(a,b){a=a|0;b=b|0;var d=0;d=i;if((b|0)<1){b=0;i=d;return b|0}do{if((c[a+12>>2]|0)<(b|0)){if(bu(a,b)|0){break}else{a=0}i=d;return a|0}}while(0);b=c[(c[a+4>>2]|0)+(b+ -1<<2)>>2]|0;i=d;return b|0}function bu(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,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;f=i;E=i;i=i+8|0;F=E;$=i;i=i+8|0;h=$;Z=i;i=i+8|0;_=Z;X=i;i=i+8|0;Y=X;V=i;i=i+8|0;W=V;T=i;i=i+8|0;U=T;S=i;i=i+8|0;g=S;R=i;i=i+8|0;P=i;i=i+8|0;Q=P;N=i;i=i+8|0;O=N;L=i;i=i+8|0;M=L;J=i;i=i+8|0;K=J;H=i;i=i+8|0;I=H;p=i;i=i+8|0;n=i;i=i+8|0;o=n;k=i;i=i+8|0;l=k;ma=i;i=i+8|0;la=ma;ha=i;i=i+8|0;ia=ha;ra=i;i=i+8|0;oa=i;i=i+8|0;pa=oa;wa=i;i=i+8|0;va=wa;za=i;i=i+8|0;ya=za;G=i;i=i+8|0;ea=G;qa=i;i=i+16|0;na=qa;sa=i;i=i+8|0;fa=sa;xa=i;i=i+16|0;ta=xa;ka=i;i=i+16|0;ga=ka;da=i;i=i+8|0;ca=da;ba=i;i=i+8|0;aa=ba;r=i;i=i+16|0;j=r;v=i;i=i+16|0;m=v;q=i;i=i+16|0;s=q;D=i;i=i+8|0;t=i;i=i+8|0;u=t;w=i;i=i+8|0;x=w;z=i;i=i+8|0;A=z;B=i;i=i+8|0;C=B;y=b+16|0;a:do{if((c[y>>2]|0)==0){c[qa>>2]=13;ja=na+8|0;c[ja>>2]=0;c[ja+4>>2]=0;ua=c[b>>2]|0;_m(ua,c[ua+20>>2]|0,c[ua+24>>2]|0,na,0)|0;c[xa>>2]=13;ua=ta+8|0;c[ua>>2]=0;c[ua+4>>2]=0;Aa=c[qa>>2]|0;if((Aa|0)!=7){c[za>>2]=Aa;c[ya+4>>2]=7;Qe(0,131112,ya);tc()}do{if((c[(Zu(c[ja>>2]|0,130656,ta)|0)>>2]|0)==9){xa=c[xa>>2]|0;if((xa|0)!=9){c[wa>>2]=xa;c[va+4>>2]=9;Qe(0,131112,va);tc()}va=c[ua>>2]|0;if((va|0)<=-1){break}if((va|0)>=(c[(c[b>>2]|0)+16>>2]|0)){break}za=ua;Aa=c[za+4>>2]|0;ra=sa;c[ra>>2]=c[za>>2];c[ra+4>>2]=Aa;Of(ta);c[ka>>2]=13;ra=ga+8|0;c[ra>>2]=0;c[ra+4>>2]=0;qa=c[qa>>2]|0;if((qa|0)!=7){c[oa>>2]=qa;c[pa+4>>2]=7;Qe(0,131112,pa);tc()}Yu(c[ja>>2]|0,130656,ga,0)|0;Of(na);if((c[ka>>2]|0)!=7){c[ma>>2]=Pf(ga)|0;Qe(-1,130728,la);Of(ga);Aa=0;i=f;return Aa|0}ja=(c[ra>>2]|0)+20|0;c[ja>>2]=(c[ja>>2]|0)+1;ja=c[ka>>2]|0;if((ja|0)!=7){c[ha>>2]=ja;c[ia+4>>2]=7;Qe(0,131112,ia);tc()}c[G>>2]=c[ra>>2];Of(ga);ia=cu(b)|0;ga=b+40|0;c[ga>>2]=ia;ja=b+4|0;c[ja>>2]=ye(ia,4)|0;ia=b+8|0;c[ia>>2]=ye(c[ga>>2]|0,8)|0;if((c[ga>>2]|0)>0){ha=0;do{c[(c[ja>>2]|0)+(ha<<2)>>2]=0;c[(c[ia>>2]|0)+(ha<<3)>>2]=-1;c[(c[ia>>2]|0)+(ha<<3)+4>>2]=-1;ha=ha+1|0;}while((ha|0)<(c[ga>>2]|0))}ga=FW(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=FW(52)|0;c[f>>2]=0;h=f+8|0;c[h>>2]=256;k=ye(256,4)|0;j=f+4|0;c[j>>2]=k;do{if((c[h>>2]|0)!=0){c[k>>2]=0;if((c[h>>2]|0)>>>0>1){k=1}else{break}do{c[(c[j>>2]|0)+(k<<2)>>2]=0;k=k+1|0;}while(k>>>0<(c[h>>2]|0)>>>0)}}while(0);c[f+12>>2]=0;c[f+20>>2]=0;c[f+16>>2]=0;c[f+24>>2]=1;ad(f+28|0,0)|0;h=ef(c[834]|0,a)|0;if((h|0)==0){c[g>>2]=c[a+28>>2];Qe(-1,131384,d);i=e;return f|0}else{mu(f,253,h,b);mc(h|0)|0;i=e;return f|0}return 0}function pu(a){a=a|0;var b=0;b=i;a=qc(a|0)|0;i=b;return a|0}function qu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;f=i;i=i+8|0;c[f>>2]=c[b+28>>2];mu(a,252,f,d);i=e;return}function ru(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;h=i;j=i;i=i+8|0;l=i;i=i+8|0;m=l;p=i;i=i+8|0;q=i;i=i+8|0;o=q;t=i;i=i+8|0;n=i;i=i+8|0;r=n;k=i;i=i+8|0;s=b+8|0;u=c[s>>2]|0;a:do{if(u>>>0<=d>>>0){v=d+256&-256;c[s>>2]=v;if(v>>>0<=d>>>0){Qe(-1,131624,t);i=h;return}t=b+4|0;v=Ce(c[t>>2]|0,v,4)|0;c[t>>2]=v;if(u>>>0>=(c[s>>2]|0)>>>0){break}while(1){c[v+(u<<2)>>2]=0;u=u+1|0;if(u>>>0>=(c[s>>2]|0)>>>0){break a}v=c[t>>2]|0}}}while(0);if((f|0)<5){c[q>>2]=r;if((Hc(e|0,131232,o|0)|0)==1){c[(c[b+4>>2]|0)+(d<<2)>>2]=(c[n>>2]|0)+g;i=h;return}else{Qe(-1,131680,p);i=h;return}}n=b+16|0;p=b+20|0;o=c[p>>2]|0;if((c[n>>2]|0)<(o|0)){o=b+12|0}else{v=o+16|0;c[p>>2]=v;o=b+12|0;c[o>>2]=Ce(c[o>>2]|0,v,12)|0}c[(c[b+4>>2]|0)+(d<<2)>>2]=0;c[(c[o>>2]|0)+((c[n>>2]|0)*12|0)>>2]=d;c[(c[o>>2]|0)+((c[n>>2]|0)*12|0)+8>>2]=(f|0)/4|0;p=ye(c[(c[o>>2]|0)+((c[n>>2]|0)*12|0)+8>>2]|0,4)|0;c[(c[o>>2]|0)+((c[n>>2]|0)*12|0)+4>>2]=p;p=c[n>>2]|0;d=c[o>>2]|0;b=c[d+(p*12|0)+8>>2]|0;if((b|0)>0){f=k+4|0;q=0;do{hX(k|0,e+(q<<2)|0,4)|0;a[f]=0;c[l>>2]=(c[(c[o>>2]|0)+((c[n>>2]|0)*12|0)+4>>2]|0)+(q<<2);if((Hc(k|0,131232,m|0)|0)!=1){Qe(-1,131680,j)}q=q+1|0;p=c[n>>2]|0;d=c[o>>2]|0;b=c[d+(p*12|0)+8>>2]|0;}while((q|0)<(b|0))}v=(c[d+(p*12|0)+4>>2]|0)+(b+ -1<<2)|0;c[v>>2]=(c[v>>2]|0)+g;c[n>>2]=(c[n>>2]|0)+1;i=h;return}function su(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=c[a>>2]|0;if((d|0)!=0){ke(d);HW(d)}Fe(c[a+4>>2]|0);e=a+12|0;g=c[e>>2]|0;if((g|0)==0){g=a+28|0;kc(g|0)|0;i=b;return}d=a+16|0;if((c[d>>2]|0)>0){f=0;while(1){Fe(c[g+(f*12|0)+4>>2]|0);f=f+1|0;g=c[e>>2]|0;if((f|0)<(c[d>>2]|0)){}else{break}}}Fe(g);g=a+28|0;kc(g|0)|0;i=b;return}function tu(a){a=a|0;var b=0,d=0;b=i;d=a+28|0;Ub(d|0)|0;a=a+24|0;c[a>>2]=(c[a>>2]|0)+1;Mc(d|0)|0;i=b;return}function uu(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;e=a+28|0;Ub(e|0)|0;f=a+24|0;d=(c[f>>2]|0)+ -1|0;c[f>>2]=d;Mc(e|0)|0;if((d|0)!=0|(a|0)==0){i=b;return}su(a);HW(a);i=b;return}function vu(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;if((e|0)==1){c[(c[a+4>>2]|0)+(b<<2)>>2]=c[d>>2];i=f;return}g=a+16|0;j=c[g>>2]|0;a:do{if((j|0)>0){l=c[a+12>>2]|0;h=0;while(1){k=h+1|0;if((c[l+(h*12|0)>>2]|0)==(b|0)){break}if((k|0)<(j|0)){h=k}else{h=k;break a}}Fe(c[l+(h*12|0)+4>>2]|0);j=c[g>>2]|0}else{h=0}}while(0);if((h|0)==(j|0)){k=a+20|0;if((j|0)==(c[k>>2]|0)){l=j+8|0;c[k>>2]=l;j=a+12|0;c[j>>2]=Ce(c[j>>2]|0,l,12)|0;j=c[g>>2]|0}c[g>>2]=j+1}c[(c[a+4>>2]|0)+(b<<2)>>2]=0;a=a+12|0;c[(c[a>>2]|0)+(h*12|0)>>2]=b;c[(c[a>>2]|0)+(h*12|0)+8>>2]=e;l=ye(e,4)|0;c[(c[a>>2]|0)+(h*12|0)+4>>2]=l;if((e|0)>0){b=0}else{i=f;return}do{c[(c[(c[a>>2]|0)+(h*12|0)+4>>2]|0)+(b<<2)>>2]=c[d+(b<<2)>>2];b=b+1|0;}while((b|0)<(e|0));i=f;return}function wu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;if((c[a+8>>2]|0)>>>0<=b>>>0){h=0;i=f;return h|0}g=(c[a+4>>2]|0)+(b<<2)|0;if((c[g>>2]|0)!=0){c[d>>2]=g;h=1;i=f;return h|0}g=a+12|0;h=c[a+16>>2]|0;while(1){a=h+ -1|0;if((h|0)<=0){d=0;e=8;break}h=c[g>>2]|0;if((c[h+(a*12|0)>>2]|0)==(b|0)){break}else{h=a}}if((e|0)==8){i=f;return d|0}c[d>>2]=c[h+(a*12|0)+4>>2];h=c[(c[g>>2]|0)+(a*12|0)+8>>2]|0;i=f;return h|0}function xu(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=i;if((e|0)==1){g=c[a+8>>2]|0;a:do{if((g|0)!=0){e=c[a+4>>2]|0;a=c[b>>2]|0;h=0;while(1){b=h+1|0;if((c[e+(h<<2)>>2]|0)==(a|0)){break}if(b>>>0<g>>>0){h=b}else{break a}}c[d>>2]=h;h=1;i=f;return h|0}}while(0);c[d>>2]=120;h=0;i=f;return h|0}b=c[a+16>>2]|0;if((b|0)<=0){h=0;i=f;return h|0}a=c[a+12>>2]|0;h=0;while(1){if((c[a+(h*12|0)+8>>2]|0)==(e|0)){if((((e|0)>0?e:0)|0)==(e|0)){break}}h=h+1|0;if((h|0)>=(b|0)){d=0;g=14;break}}if((g|0)==14){i=f;return d|0}c[d>>2]=c[a+(h*12|0)>>2];h=1;i=f;return h|0}function yu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=a+4|0;c[e>>2]=b;b=ye(b,4)|0;c[a>>2]=b;if((c[e>>2]|0)>0){f=0}else{i=d;return}while(1){c[b+(f<<2)>>2]=0;f=f+1|0;if((f|0)>=(c[e>>2]|0)){break}b=c[a>>2]|0}i=d;return}function zu(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;d=a+4|0;f=c[a>>2]|0;if((c[d>>2]|0)>0){e=0}else{Fe(f);i=b;return}do{f=c[f+(e<<2)>>2]|0;do{if((f|0)!=0){h=f+28|0;Ub(h|0)|0;j=f+24|0;g=(c[j>>2]|0)+ -1|0;c[j>>2]=g;Mc(h|0)|0;if((g|0)!=0){break}su(f);HW(f)}}while(0);e=e+1|0;f=c[a>>2]|0}while((e|0)<(c[d>>2]|0));Fe(f);i=b;return}function Au(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;f=c[c[a>>2]>>2]|0;do{if((f|0)!=0){f=c[f>>2]|0;if((f|0)==0){break}if((se(f,b)|0)!=0){break}h=c[c[a>>2]>>2]|0;j=h+28|0;Ub(j|0)|0;h=h+24|0;c[h>>2]=(c[h>>2]|0)+1;Mc(j|0)|0;j=c[c[a>>2]>>2]|0;i=d;return j|0}}while(0);g=a+4|0;h=c[g>>2]|0;if((h|0)>1){f=1}else{j=0;i=d;return j|0}a:while(1){j=c[(c[a>>2]|0)+(f<<2)>>2]|0;do{if((j|0)!=0){j=c[j>>2]|0;if((j|0)==0){break}if((se(j,b)|0)==0){break a}h=c[g>>2]|0}}while(0);f=f+1|0;if((f|0)>=(h|0)){a=0;e=14;break}}if((e|0)==14){i=d;return a|0}b=c[a>>2]|0;e=c[b+(f<<2)>>2]|0;if((f|0)>0){while(1){g=f+ -1|0;c[b+(f<<2)>>2]=c[b+(g<<2)>>2];b=c[a>>2]|0;if((g|0)>0){f=g}else{break}}}c[b>>2]=e;j=e+28|0;Ub(j|0)|0;h=e+24|0;c[h>>2]=(c[h>>2]|0)+1;Mc(j|0)|0;j=e;i=d;return j|0}function Bu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;e=a+4|0;f=c[(c[a>>2]|0)+((c[e>>2]|0)+ -1<<2)>>2]|0;do{if((f|0)!=0){h=f+28|0;Ub(h|0)|0;j=f+24|0;g=(c[j>>2]|0)+ -1|0;c[j>>2]=g;Mc(h|0)|0;if((g|0)!=0){break}su(f);HW(f)}}while(0);f=c[e>>2]|0;e=f+ -1|0;if((e|0)>0){while(1){g=c[a>>2]|0;c[g+(e<<2)>>2]=c[g+(f+ -2<<2)>>2];g=e+ -1|0;if((g|0)>0){f=e;e=g}else{break}}}c[c[a>>2]>>2]=b;j=b+28|0;Ub(j|0)|0;h=b+24|0;c[h>>2]=(c[h>>2]|0)+1;Mc(j|0)|0;i=d;return}function Cu(b,e,f,g,h,j,k,l,m,n,o,p){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;b=i;x=i;i=i+32|0;s=x;v=i;i=i+32|0;q=v;r=i;i=i+256|0;t=i;i=i+16|0;a[p]=0;do{if((l|0)!=0){w=c[l+24>>2]|0;l=c[l+28>>2]|0;if((w|0)<32){$W(x|0,l|0,w|0)|0;$W(s+w|0,131712,32-w|0)|0}else{$W(x|0,l|0,32)|0}Du(s,32,s);if((e|0)==3){u=0;while(1){Du(s,f,s);u=u+1|0;if((u|0)<50){}else{u=12;break}}}else if((e|0)==2){t=0;do{a[r+t|0]=t;t=t+1|0;}while((t|0)<256);if((f|0)!=0){v=0;t=0;w=0;while(1){t=t&255;l=r+v|0;x=a[l]|0;w=(d[s+t|0]|0)+(w&255)+(x&255)|0;y=r+(w&255)|0;a[l]=a[y]|0;a[y]=x;v=v+1|0;if((v|0)<256){w=w&255;t=((t+1|0)%(f|0)|0)&255}else{break}}}s=c[g+28>>2]|0;t=0;v=0;w=0;while(1){y=a[s+w|0]|0;v=(v&255)+1|0;B=r+(v&255)|0;A=a[B]|0;x=A&255;t=x+(t&255)|0;z=r+(t&255)|0;l=a[z]|0;a[B]=l;a[z]=A;a[q+w|0]=a[r+((l&255)+x&255)|0]^y;w=w+1|0;if((w|0)<32){v=v&255;t=t&255}else{break}}}else{u=12}if((u|0)==12){$W(v|0,c[g+28>>2]|0,32)|0;u=(f|0)>0;v=(f|0)==0;w=19;while(1){if(u){l=0;while(1){a[t+l|0]=(d[s+l|0]|0)^w;l=l+1|0;if((l|0)<(f|0)){}else{l=0;break}}}else{l=0}do{a[r+l|0]=l;l=l+1|0;}while((l|0)<256);if(v){x=0;l=0;y=0}else{l=0;x=0;y=0;while(1){x=x&255;z=r+l|0;A=a[z]|0;y=(d[t+x|0]|0)+(y&255)+(A&255)|0;B=r+(y&255)|0;a[z]=a[B]|0;a[B]=A;l=l+1|0;if((l|0)<256){y=y&255;x=((x+1|0)%(f|0)|0)&255}else{x=0;l=0;y=0;break}}}while(1){B=q+y|0;A=a[B]|0;l=(l&255)+1|0;F=r+(l&255)|0;E=a[F]|0;z=E&255;x=z+(x&255)|0;D=r+(x&255)|0;C=a[D]|0;a[F]=C;a[D]=E;a[B]=a[r+((C&255)+z&255)|0]^A;y=y+1|0;if((y|0)<32){l=l&255;x=x&255}else{break}}if((w|0)>0){w=w+ -1|0}else{break}}}r=FW(32)|0;ge(r,q,32);if(!(Eu(0,e,f,g,h,j,k,r,n,o)|0)){if((r|0)==0){break}ke(r);HW(r);break}a[p]=1;if((r|0)==0){F=1;i=b;return F|0}ke(r);HW(r);F=1;i=b;return F|0}}while(0);F=Eu(0,e,f,g,h,j,k,m,n,o)|0;i=b;return F|0}function Du(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,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;A=i;j=i;i=i+64|0;h=j;L=e+72|0;k=(L|0)/64|0;if((L|0)<=63){u=1;w=69;x=103;v=35;y=-119;B=-51;C=-17;z=-85;D=-2;F=-70;G=-104;E=-36;H=118;J=50;K=16;I=84;L=f;a[L]=u;L=f+1|0;a[L]=v;L=f+2|0;a[L]=w;L=f+3|0;a[L]=x;L=f+4|0;a[L]=y;L=f+5|0;a[L]=z;L=f+6|0;a[L]=B;L=f+7|0;a[L]=C;L=f+8|0;a[L]=D;L=f+9|0;a[L]=E;L=f+10|0;a[L]=F;L=f+11|0;a[L]=G;L=f+12|0;a[L]=H;L=f+13|0;a[L]=I;L=f+14|0;a[L]=J;L=f+15|0;a[L]=K;i=A;return}l=e+ -3|0;n=k+ -1|0;o=e+ -2|0;p=e+ -1|0;q=e<<3;r=h+56|0;w=h+4|0;x=h+8|0;y=h+12|0;z=h+16|0;g=h+20|0;B=h+24|0;C=h+28|0;D=h+32|0;E=h+36|0;v=h+40|0;u=h+44|0;t=h+48|0;s=h+52|0;m=h+60|0;H=1732584193;J=-271733879;F=-1732584194;G=271733878;I=0;K=0;do{if((K|0)<(l|0)){L=0;while(1){c[h+(L<<2)>>2]=(((d[b+(K+3)|0]|0)<<8|(d[b+(K+2)|0]|0))<<8|(d[b+(K+1)|0]|0))<<8|(d[b+K|0]|0);L=L+1|0;K=K+4|0;if((L|0)<16&(K|0)<(l|0)){}else{break}}}else{L=0}if((I|0)==(n|0)){do{if((K|0)==(l|0)){c[h+(L<<2)>>2]=d[b+l|0]|0|((d[b+(e+ -1)|0]|0)<<8|(d[b+(e+ -2)|0]|0))<<8|-2147483648}else{if((K|0)==(o|0)){c[h+(L<<2)>>2]=d[b+o|0]|0|(d[b+(e+ -1)|0]|0)<<8|8388608;break}if((K|0)==(p|0)){c[h+(L<<2)>>2]=d[b+p|0]|0|32768;break}else{c[h+(L<<2)>>2]=128;break}}}while(0);if((L+1|0)<16){bX(h+(L+1<<2)|0,0,60-(L<<2)|0)|0}c[r>>2]=q}ca=c[j>>2]|0;ea=H+ -680876936+(G&~J|J&F)+ca|0;ea=(ea>>>25|ea<<7)+J|0;X=c[w>>2]|0;da=G+ -389564586+X+(F&~ea|ea&J)|0;da=(da>>>20|da<<12)+ea|0;Q=c[x>>2]|0;M=F+606105819+Q+(J&~da|da&ea)|0;M=(M>>>15|M<<17)+da|0;Z=c[y>>2]|0;N=J+ -1044525330+Z+(ea&~M|M&da)|0;N=(N>>>10|N<<22)+M|0;S=c[z>>2]|0;ea=ea+ -176418897+S+(da&~N|N&M)|0;ea=(ea>>>25|ea<<7)+N|0;$=c[g>>2]|0;da=$+1200080426+da+(M&~ea|ea&N)|0;da=(da>>>20|da<<12)+ea|0;U=c[B>>2]|0;M=U+ -1473231341+M+(N&~da|da&ea)|0;M=(M>>>15|M<<17)+da|0;ba=c[C>>2]|0;N=ba+ -45705983+N+(ea&~M|M&da)|0;N=(N>>>10|N<<22)+M|0;W=c[D>>2]|0;ea=W+1770035416+ea+(da&~N|N&M)|0;ea=(ea>>>25|ea<<7)+N|0;P=c[E>>2]|0;da=P+ -1958414417+da+(M&~ea|ea&N)|0;da=(da>>>20|da<<12)+ea|0;Y=c[v>>2]|0;M=Y+ -42063+M+(N&~da|da&ea)|0;M=(M>>>15|M<<17)+da|0;R=c[u>>2]|0;N=R+ -1990404162+N+(ea&~M|M&da)|0;N=(N>>>10|N<<22)+M|0;_=c[t>>2]|0;ea=_+1804603682+ea+(da&~N|N&M)|0;ea=(ea>>>25|ea<<7)+N|0;T=c[s>>2]|0;da=T+ -40341101+da+(M&~ea|ea&N)|0;da=(da>>>20|da<<12)+ea|0;aa=c[r>>2]|0;O=~da;M=aa+ -1502002290+M+(N&O|da&ea)|0;M=(M>>>15|M<<17)+da|0;V=c[m>>2]|0;L=~M;N=V+1236535329+N+(ea&L|M&da)|0;N=(N>>>10|N<<22)+M|0;O=X+ -165796510+ea+(N&da|M&O)|0;O=(O>>>27|O<<5)+N|0;L=U+ -1069501632+da+(O&M|N&L)|0;L=(L>>>23|L<<9)+O|0;M=R+643717713+M+(L&N|O&~N)|0;M=(M>>>18|M<<14)+L|0;N=ca+ -373897302+N+(M&O|L&~O)|0;N=(N>>>12|N<<20)+M|0;O=$+ -701558691+O+(N&L|M&~L)|0;O=(O>>>27|O<<5)+N|0;L=Y+38016083+L+(O&M|N&~M)|0;L=(L>>>23|L<<9)+O|0;M=V+ -660478335+M+(L&N|O&~N)|0;M=(M>>>18|M<<14)+L|0;N=S+ -405537848+N+(M&O|L&~O)|0;N=(N>>>12|N<<20)+M|0;O=P+568446438+O+(N&L|M&~L)|0;O=(O>>>27|O<<5)+N|0;L=aa+ -1019803690+L+(O&M|N&~M)|0;L=(L>>>23|L<<9)+O|0;M=Z+ -187363961+M+(L&N|O&~N)|0;M=(M>>>18|M<<14)+L|0;N=W+1163531501+N+(M&O|L&~O)|0;N=(N>>>12|N<<20)+M|0;O=T+ -1444681467+O+(N&L|M&~L)|0;O=(O>>>27|O<<5)+N|0;L=Q+ -51403784+L+(O&M|N&~M)|0;L=(L>>>23|L<<9)+O|0;M=ba+1735328473+M+(L&N|O&~N)|0;M=(M>>>18|M<<14)+L|0;N=_+ -1926607734+N+(M&O|L&~O)|0;N=(N>>>12|N<<20)+M|0;O=$+ -378558+O+(M^L^N)|0;O=(O>>>28|O<<4)+N|0;L=W+ -2022574463+L+(N^M^O)|0;L=(L>>>21|L<<11)+O|0;M=R+1839030562+M+(O^N^L)|0;M=(M>>>16|M<<16)+L|0;N=aa+ -35309556+N+(L^O^M)|0;N=(N>>>9|N<<23)+M|0;O=X+ -1530992060+O+(M^L^N)|0;O=(O>>>28|O<<4)+N|0;L=S+1272893353+L+(N^M^O)|0;L=(L>>>21|L<<11)+O|0;M=ba+ -155497632+M+(O^N^L)|0;M=(M>>>16|M<<16)+L|0;N=Y+ -1094730640+N+(L^O^M)|0;N=(N>>>9|N<<23)+M|0;O=T+681279174+O+(M^L^N)|0;O=(O>>>28|O<<4)+N|0;L=ca+ -358537222+L+(N^M^O)|0;L=(L>>>21|L<<11)+O|0;M=Z+ -722521979+M+(O^N^L)|0;M=(M>>>16|M<<16)+L|0;N=U+76029189+N+(L^O^M)|0;N=(N>>>9|N<<23)+M|0;O=P+ -640364487+O+(M^L^N)|0;O=(O>>>28|O<<4)+N|0;L=_+ -421815835+L+(N^M^O)|0;L=(L>>>21|L<<11)+O|0;M=V+530742520+M+(O^N^L)|0;M=(M>>>16|M<<16)+L|0;N=Q+ -995338651+N+(L^O^M)|0;N=(N>>>9|N<<23)+M|0;O=ca+ -198630844+O+((N|~L)^M)|0;O=(O>>>26|O<<6)+N|0;L=ba+1126891415+L+((O|~M)^N)|0;L=(L>>>22|L<<10)+O|0;M=aa+ -1416354905+M+((L|~N)^O)|0;M=(M>>>17|M<<15)+L|0;N=$+ -57434055+N+((M|~O)^L)|0;N=(N>>>11|N<<21)+M|0;O=_+1700485571+O+((N|~L)^M)|0;O=(O>>>26|O<<6)+N|0;L=Z+ -1894986606+L+((O|~M)^N)|0;L=(L>>>22|L<<10)+O|0;M=Y+ -1051523+M+((L|~N)^O)|0;M=(M>>>17|M<<15)+L|0;N=X+ -2054922799+N+((M|~O)^L)|0;N=(N>>>11|N<<21)+M|0;O=W+1873313359+O+((N|~L)^M)|0;O=(O>>>26|O<<6)+N|0;L=V+ -30611744+L+((O|~M)^N)|0;L=(L>>>22|L<<10)+O|0;M=U+ -1560198380+M+((L|~N)^O)|0;M=(M>>>17|M<<15)+L|0;N=T+1309151649+N+((M|~O)^L)|0;N=(N>>>11|N<<21)+M|0;O=S+ -145523070+O+((N|~L)^M)|0;O=(O>>>26|O<<6)+N|0;L=R+ -1120210379+L+((O|~M)^N)|0;L=(L>>>22|L<<10)+O|0;M=Q+718787259+M+((L|~N)^O)|0;M=(M>>>17|M<<15)+L|0;N=P+ -343485551+N+((M|~O)^L)|0;H=O+H|0;J=M+J+(N>>>11|N<<21)|0;F=M+F|0;G=L+G|0;I=I+1|0;}while((I|0)<(k|0));Q=H&255;S=H>>>16&255;T=H>>>24&255;R=H>>>8&255;U=J&255;W=J>>>16&255;X=J>>>24&255;V=J>>>8&255;Y=F&255;_=F>>>16&255;$=F>>>24&255;Z=F>>>8&255;aa=G&255;ca=G>>>16&255;da=G>>>24&255;ba=G>>>8&255;ea=f;a[ea]=Q;ea=f+1|0;a[ea]=R;ea=f+2|0;a[ea]=S;ea=f+3|0;a[ea]=T;ea=f+4|0;a[ea]=U;ea=f+5|0;a[ea]=V;ea=f+6|0;a[ea]=W;ea=f+7|0;a[ea]=X;ea=f+8|0;a[ea]=Y;ea=f+9|0;a[ea]=Z;ea=f+10|0;a[ea]=_;ea=f+11|0;a[ea]=$;ea=f+12|0;a[ea]=aa;ea=f+13|0;a[ea]=ba;ea=f+14|0;a[ea]=ca;ea=f+15|0;a[ea]=da;i=A;return}function Eu(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;b=i;u=i;i=i+32|0;p=u;o=i;i=i+256|0;r=i;i=i+16|0;s=k+24|0;q=we((c[s>>2]|0)+72|0)|0;do{if((l|0)==0){$W(q|0,131712,32)|0}else{t=c[l+24>>2]|0;l=c[l+28>>2]|0;if((t|0)<32){$W(q|0,l|0,t|0)|0;$W(q+t|0,131712,32-t|0)|0;break}else{$W(q|0,l|0,32)|0;break}}}while(0);t=q+32|0;$W(t|0,c[g+28>>2]|0,32)|0;a[q+64|0]=j;a[q+65|0]=j>>>8;a[q+66|0]=j>>>16;a[q+67|0]=j>>>24;j=k+28|0;$W(q+68|0,c[j>>2]|0,c[s>>2]|0)|0;k=c[s>>2]|0;g=k+68|0;if(!n){a[q+g|0]=-1;a[q+(k+69)|0]=-1;a[q+(k+70)|0]=-1;a[q+(k+71)|0]=-1;g=k+72|0}Du(q,g,m);g=(e|0)==3;if(g){n=0;do{Du(m,f,m);n=n+1|0;}while((n|0)<50)}if((e|0)==2){r=0;do{a[o+r|0]=r;r=r+1|0;}while((r|0)<256);if((f|0)!=0){r=0;t=0;s=0;while(1){t=t&255;g=o+r|0;k=a[g]|0;s=(d[m+t|0]|0)+(s&255)+(k&255)|0;l=o+(s&255)|0;a[g]=a[l]|0;a[l]=k;r=r+1|0;if((r|0)<256){s=s&255;t=((t+1|0)%(f|0)|0)&255}else{break}}}f=c[h+28>>2]|0;s=0;t=0;r=0;while(1){l=a[f+r|0]|0;t=(t&255)+1|0;e=o+(t&255)|0;u=a[e]|0;k=u&255;s=k+(s&255)|0;n=o+(s&255)|0;g=a[n]|0;a[e]=g;a[n]=u;a[p+r|0]=a[o+((g&255)+k&255)|0]^l;r=r+1|0;if((r|0)<32){t=t&255;s=s&255}else{break}}l=(iX(p|0,131712,32)|0)==0;Fe(q);i=b;return l|0}if(!g){l=0;Fe(q);i=b;return l|0}$W(u|0,c[h+28>>2]|0,32)|0;h=(f|0)==0;if((f|0)>0){e=19;while(1){u=0;while(1){a[r+u|0]=(d[m+u|0]|0)^e;u=u+1|0;if((u|0)<(f|0)){}else{u=0;break}}do{a[o+u|0]=u;u=u+1|0;}while((u|0)<256);if(h){g=0;n=0;u=0}else{u=0;g=0;n=0;while(1){g=g&255;v=o+u|0;k=a[v]|0;n=(d[r+g|0]|0)+(n&255)+(k&255)|0;l=o+(n&255)|0;a[v]=a[l]|0;a[l]=k;u=u+1|0;if((u|0)<256){n=n&255;g=((g+1|0)%(f|0)|0)&255}else{g=0;n=0;u=0;break}}}while(1){v=p+u|0;l=a[v]|0;n=(n&255)+1|0;z=o+(n&255)|0;y=a[z]|0;k=y&255;g=k+(g&255)|0;x=o+(g&255)|0;w=a[x]|0;a[z]=w;a[x]=y;a[v]=a[o+((w&255)+k&255)|0]^l;u=u+1|0;if((u|0)<32){n=n&255;g=g&255}else{break}}if((e|0)>0){e=e+ -1|0}else{break}}}else{m=19;while(1){e=0;do{a[o+e|0]=e;e=e+1|0;}while((e|0)<256);if(h){n=0;e=0;u=0}else{e=0;u=0;n=0;while(1){u=u&255;x=o+e|0;y=a[x]|0;n=(d[r+u|0]|0)+(n&255)+(y&255)|0;z=o+(n&255)|0;a[x]=a[z]|0;a[z]=y;e=e+1|0;if((e|0)<256){n=n&255;u=((u+1|0)%(f|0)|0)&255}else{n=0;e=0;u=0;break}}}while(1){z=p+u|0;y=a[z]|0;e=(e&255)+1|0;k=o+(e&255)|0;l=a[k]|0;x=l&255;n=x+(n&255)|0;v=o+(n&255)|0;w=a[v]|0;a[k]=w;a[v]=l;a[z]=a[o+((w&255)+x&255)|0]^y;u=u+1|0;if((u|0)<32){e=e&255;n=n&255}else{break}}if((m|0)>0){m=m+ -1|0}else{break}}}$W(q|0,131712,32)|0;$W(t|0,c[j>>2]|0,c[s>>2]|0)|0;Du(q,(c[s>>2]|0)+32|0,q);z=(iX(p|0,q|0,16)|0)==0;Fe(q);i=b;return z|0}function Fu(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;k=i;uj(b,d);c[b>>2]=131752;d=b+12|0;c[d>>2]=f;if((g|0)>0){f=0;do{a[b+20+f|0]=a[e+f|0]|0;f=f+1|0;}while((f|0)<(g|0))}a[b+20+g|0]=h;a[b+20+(g+1)|0]=h>>>8;a[b+20+(g+2)|0]=h>>>16;a[b+20+(g+3)|0]=j;a[b+20+(g+4)|0]=j>>>8;h=g+5|0;if((c[d>>2]|0)!=1){f=h;g=b+20|0;Du(g,f,g);g=b+16|0;f=(h|0)>16;d=f?16:h;f=g;c[f>>2]=d;f=b+48|0;c[f>>2]=0;i=k;return}a[b+20+h|0]=115;a[b+20+(g+6)|0]=65;a[b+20+(g+7)|0]=108;a[b+20+(g+8)|0]=84;f=g+9|0;g=b+20|0;Du(g,f,g);g=b+16|0;f=(h|0)>16;d=f?16:h;f=g;c[f>>2]=d;f=b+48|0;c[f>>2]=0;i=k;return}function Gu(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=131752;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 Hu(a){a=a|0;var b=0;b=i;c[a>>2]=131752;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 Iu(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;e=i;c[b+48>>2]=0;f=b+8|0;g=c[f>>2]|0;fd[c[(c[g>>2]|0)+12>>2]&511](g);g=c[b+12>>2]|0;if((g|0)==0){a[b+309|0]=0;a[b+308|0]=0;f=c[b+16>>2]|0;g=0;do{a[b+52+g|0]=g;g=g+1|0;}while((g|0)<256);if((f|0)!=0){h=0;g=0;j=0;while(1){g=g&255;I=b+52+h|0;J=a[I]|0;j=(d[b+20+g|0]|0)+(j&255)+(J&255)|0;K=b+52+(j&255)|0;a[I]=a[K]|0;a[K]=J;h=h+1|0;if((h|0)<256){j=j&255;g=((g+1|0)%(f|0)|0)&255}else{break}}}c[b+312>>2]=-1;i=e;return}else if((g|0)==1){g=b+52|0;c[g>>2]=(d[b+21|0]|0)<<16|(d[b+20|0]|0)<<24|(d[b+22|0]|0)<<8|(d[b+23|0]|0);c[b+56>>2]=(d[b+25|0]|0)<<16|(d[b+24|0]|0)<<24|(d[b+26|0]|0)<<8|(d[b+27|0]|0);c[b+60>>2]=(d[b+29|0]|0)<<16|(d[b+28|0]|0)<<24|(d[b+30|0]|0)<<8|(d[b+31|0]|0);j=(d[b+33|0]|0)<<16|(d[b+32|0]|0)<<24|(d[b+34|0]|0)<<8|(d[b+35|0]|0);c[b+64>>2]=j;h=4;while(1){if((h&3|0)==0){j=((d[132232+(j>>>8&255)|0]|0)<<16|(d[132232+(j>>>16&255)|0]|0)<<24|(d[132232+(j&255)|0]|0)<<8|(d[132232+(j>>>24)|0]|0))^c[132184+(((h|0)/4|0)<<2)>>2]}j=c[g+(h+ -4<<2)>>2]^j;c[g+(h<<2)>>2]=j;h=h+1|0;if((h|0)>=44){p=1;break}}while(1){o=p<<2;n=0;do{m=g+(n+o<<2)|0;j=c[m>>2]|0;h=j>>>24;k=j>>>16;l=j>>>8;q=h<<1;q=(h&128|0)!=0?q^27:q;G=(q&128|0)!=0;H=q<<1;r=H&510;r=G?r^27:r;s=r<<1;s=(r&128|0)!=0?s^27:s;t=k<<1&510;t=(k&128|0)!=0?t^27:t;B=(t&128|0)!=0;C=t<<1;u=C&510;u=B?u^27:u;v=u<<1;v=(u&128|0)!=0?v^27:v;w=l<<1&510;x=(l&128|0)!=0?w^27:w;I=(x&128|0)!=0;J=x<<1;w=I?J^27:J;y=w<<1;y=(w&128|0)!=0?y^27:y;z=j<<1&510;A=(j&128|0)!=0?z^27:z;E=(A&128|0)!=0;F=A<<1;z=E?F^27:F;D=z<<1;D=(z&128|0)!=0?D^27:D;G=G?H^27:H;H=G<<1;H=(G&128|0)!=0?H^27:H;J=J&510;I=I?J^27:J;J=I<<1;J=(I&128|0)!=0?J^27:J;K=h^j;B=B?C^27:C;C=B<<1;C=(B&128|0)!=0?C^27:C;F=F&510;E=E?F^27:F;F=E<<1;F=(E&128|0)!=0?F^27:F;c[m>>2]=(K^l^t^x^z^u^H^D^v^J)<<16&16711680|(k^j^l^q^t^r^w^D^s^y^v)<<24|(K^k^A^x^G^I^H^C^F^J)<<8&65280|(k^h^l^q^A^B^E^s^C^y^F)&255;n=n+1|0;}while((n|0)<4);p=p+1|0;if((p|0)>=10){g=0;break}}do{K=c[f>>2]|0;a[b+52+(g+192)|0]=jd[c[(c[K>>2]|0)+20>>2]&511](K)|0;g=g+1|0;}while((g|0)<16);c[b+276>>2]=16;i=e;return}else{i=e;return}}function Ju(a){a=a|0;i=i;return c[a+48>>2]|0}function Ku(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;h=i;i=i+16|0;g=c[b+12>>2]|0;a:do{if((g|0)==0){f=b+312|0;g=c[f>>2]|0;do{if((g|0)==-1){g=c[b+8>>2]|0;g=jd[c[(c[g>>2]|0)+20>>2]&511](g)|0;if((g|0)!=-1){k=b+308|0;m=b+309|0;j=(d[k]|0)+1|0;a[k]=j;j=b+52+(j&255)|0;k=(d[m]|0)+(d[j]|0)|0;a[m]=k;m=a[j]|0;k=b+52+(k&255)|0;l=a[k]|0;a[j]=l;a[k]=m;g=(a[b+52+((l&255)+(m&255)&255)|0]^g&255)&255;c[f>>2]=g;break}g=c[f>>2]|0;c[f>>2]=-1;if((g|0)==-1){b=-1}else{break a}i=e;return b|0}}while(0);c[f>>2]=-1}else if((g|0)==1){j=b+52|0;g=b+276|0;k=c[g>>2]|0;do{if((k|0)==16){m=b+8|0;l=0;do{k=c[m>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){b=-1;f=14;break}a[h+l|0]=k;l=l+1|0;}while((l|0)<16);if((f|0)==14){i=e;return b|0}k=c[m>>2]|0;Lu(j,h,(jd[c[(c[k>>2]|0)+24>>2]&511](k)|0)==-1);k=c[g>>2]|0;if((k|0)==16){b=-1}else{break}i=e;return b|0}}while(0);c[g>>2]=k+1;g=d[b+52+(k+208)|0]|0}else{m=-1;i=e;return m|0}}while(0);m=b+48|0;c[m>>2]=(c[m>>2]|0)+1;m=g;i=e;return m|0}function Lu(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,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;j=i;h=i;i=i+8|0;g=h;P=a[e]|0;L=b+176|0;a[L]=P;t=e+1|0;M=b+180|0;a[M]=a[t]|0;u=e+2|0;I=b+184|0;a[I]=a[u]|0;v=e+3|0;E=b+188|0;a[E]=a[v]|0;w=e+4|0;O=b+177|0;a[O]=a[w]|0;k=e+5|0;K=b+181|0;a[K]=a[k]|0;y=e+6|0;z=b+185|0;a[z]=a[y]|0;x=e+7|0;D=b+189|0;a[D]=a[x]|0;s=e+8|0;A=b+178|0;a[A]=a[s]|0;r=e+9|0;H=b+182|0;a[H]=a[r]|0;q=e+10|0;G=b+186|0;a[G]=a[q]|0;p=e+11|0;C=b+190|0;a[C]=a[p]|0;o=e+12|0;N=b+179|0;a[N]=a[o]|0;n=e+13|0;J=b+183|0;a[J]=a[n]|0;m=e+14|0;F=b+187|0;a[F]=a[m]|0;l=e+15|0;B=b+191|0;a[B]=a[l]|0;Q=0;while(1){qa=b+(Q+40<<2)|0;a[b+176+Q|0]=P&255^(c[qa>>2]|0)>>>24;ra=b+176+(Q+4)|0;a[ra]=(d[ra]|0)^(c[qa>>2]|0)>>>16;ra=b+176+(Q+8)|0;a[ra]=(d[ra]|0)^(c[qa>>2]|0)>>>8;ra=b+176+(Q+12)|0;a[ra]=(d[ra]|0)^c[qa>>2];Q=Q+1|0;if((Q|0)>=4){P=9;break}P=a[b+176+Q|0]|0}while(1){a[L]=a[131928+(d[L]|0)|0]|0;a[O]=a[131928+(d[O]|0)|0]|0;a[A]=a[131928+(d[A]|0)|0]|0;a[N]=a[131928+(d[N]|0)|0]|0;ia=a[131928+(d[M]|0)|0]|0;ha=a[131928+(d[K]|0)|0]|0;ja=a[131928+(d[J]|0)|0]|0;la=a[131928+(d[I]|0)|0]|0;na=a[131928+(d[z]|0)|0]|0;ka=a[131928+(d[G]|0)|0]|0;ma=a[131928+(d[F]|0)|0]|0;ra=a[131928+(d[E]|0)|0]|0;oa=a[131928+(d[D]|0)|0]|0;pa=a[131928+(d[C]|0)|0]|0;qa=a[131928+(d[B]|0)|0]|0;a[J]=a[131928+(d[H]|0)|0]|0;a[H]=ha;a[K]=ia;a[M]=ja;a[I]=ka;a[G]=la;a[z]=ma;a[F]=na;a[E]=oa;a[D]=pa;a[C]=qa;a[B]=ra;if((P|0)>0){T=0}else{z=0;break}do{ia=b+176+T|0;V=a[ia]|0;Z=b+176+(T+4)|0;U=a[Z]|0;R=b+176+(T+8)|0;Q=a[R]|0;S=b+176+(T+12)|0;W=a[S]|0;ra=V&255;X=ra<<1;X=(ra&128|0)!=0?X^27:X;ja=(X&128|0)!=0;ka=X<<1;Y=ka&510;ma=ja?Y^27:Y;Y=ma<<1;Y=(ma&128|0)!=0?Y^27:Y;ra=U&255;_=ra<<1;ca=(ra&128|0)!=0?_^27:_;ba=(ca&128|0)!=0;da=ca<<1;_=da&510;ea=ba?_^27:_;_=ea<<1;ha=(ea&128|0)!=0?_^27:_;ra=Q&255;_=ra<<1;_=(ra&128|0)!=0?_^27:_;na=(_&128|0)!=0;pa=_<<1;qa=na?pa^27:pa;$=qa<<1;$=(qa&128|0)!=0?$^27:$;ra=W&255;aa=ra<<1;aa=(ra&128|0)!=0?aa^27:aa;fa=(aa&128|0)!=0;ga=aa<<1;la=fa?ga^27:ga;oa=la<<1;oa=(la&128|0)!=0?oa^27:oa;a[ia]=(Q^U)&255^X^ra^ca^ma^qa^Y^ha^$^oa;ia=ja?ka^27:ka;ja=ia<<1;ja=(ia&128|0)!=0?ja^27:ja;ka=pa&510;ka=na?ka^27:ka;ma=ka<<1;ma=(ka&128|0)!=0?ma^27:ma;a[Z]=(Q^V^W)&255^ca^_^ea^ja^la^ha^ma^oa;Z=ba?da^27:da;ba=Z<<1;ba=(Z&128|0)!=0?ba^27:ba;ca=ga&510;da=fa?ca^27:ca;ca=da<<1;ra=(da&128|0)!=0?ca^27:ca;qa=U^V;a[R]=_^(W^qa)&255^ia^aa^ja^ka^ba^ma^ra;a[S]=(qa^Q)&255^X^aa^Z^Y^ba^da^$^ra;T=T+1|0;}while((T|0)<4);R=P<<2;Q=0;do{qa=b+(Q+R<<2)|0;ra=b+176+Q|0;a[ra]=(d[ra]|0)^(c[qa>>2]|0)>>>24;ra=b+176+(Q+4)|0;a[ra]=(d[ra]|0)^(c[qa>>2]|0)>>>16;ra=b+176+(Q+8)|0;a[ra]=(d[ra]|0)^(c[qa>>2]|0)>>>8;ra=b+176+(Q+12)|0;a[ra]=(d[ra]|0)^c[qa>>2];Q=Q+1|0;}while((Q|0)<4);P=P+ -1|0}while(1){qa=b+(z<<2)|0;ra=b+176+z|0;a[ra]=(d[ra]|0)^(c[qa>>2]|0)>>>24;ra=b+176+(z+4)|0;a[ra]=(d[ra]|0)^(c[qa>>2]|0)>>>16;ra=b+176+(z+8)|0;a[ra]=(d[ra]|0)^(c[qa>>2]|0)>>>8;ra=b+176+(z+12)|0;a[ra]=(d[ra]|0)^c[qa>>2];z=z+1|0;if((z|0)<4){}else{z=0;break}}do{ra=z<<2;a[b+208+ra|0]=a[b+192+ra|0]^a[b+176+z|0];qa=ra|1;a[b+208+qa|0]=a[b+192+qa|0]^a[b+176+(z+4)|0];qa=ra|2;a[b+208+qa|0]=a[b+192+qa|0]^a[b+176+(z+8)|0];ra=ra|3;a[b+208+ra|0]=a[b+192+ra|0]^a[b+176+(z+12)|0];z=z+1|0;}while((z|0)<4);a[b+192|0]=a[e]|0;a[b+193|0]=a[t]|0;a[b+194|0]=a[u]|0;a[b+195|0]=a[v]|0;a[b+196|0]=a[w]|0;a[b+197|0]=a[k]|0;a[b+198|0]=a[y]|0;a[b+199|0]=a[x]|0;a[b+200|0]=a[s]|0;a[b+201|0]=a[r]|0;a[b+202|0]=a[q]|0;a[b+203|0]=a[p]|0;a[b+204|0]=a[o]|0;a[b+205|0]=a[n]|0;a[b+206|0]=a[m]|0;a[b+207|0]=a[l]|0;e=b+224|0;c[e>>2]=0;if(!f){i=j;return}k=a[b+223|0]|0;f=k&255;if((k&255)<=15){l=15;while(1){a[b+208+l|0]=a[b+208+(l-f)|0]|0;if((l|0)>(f|0)){l=l+ -1|0}else{break}}}c[e>>2]=f;if((k&255)<=16){i=j;return}c[h>>2]=f;Qe(-1,131880,g);c[e>>2]=16;i=j;return}function Mu(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;g=i;i=i+16|0;h=c[b+12>>2]|0;if((h|0)==1){h=b+52|0;j=b+276|0;k=c[j>>2]|0;do{if((k|0)==16){l=b+8|0;m=0;do{k=c[l>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){b=-1;f=12;break}a[g+m|0]=k;m=m+1|0;}while((m|0)<16);if((f|0)==12){i=e;return b|0}k=c[l>>2]|0;Lu(h,g,(jd[c[(c[k>>2]|0)+24>>2]&511](k)|0)==-1);k=c[j>>2]|0;if((k|0)==16){b=-1}else{break}i=e;return b|0}}while(0);m=d[b+52+(k+208)|0]|0;i=e;return m|0}else if((h|0)==0){f=b+312|0;g=c[f>>2]|0;if((g|0)!=-1){m=g;i=e;return m|0}g=c[b+8>>2]|0;g=jd[c[(c[g>>2]|0)+20>>2]&511](g)|0;if((g|0)==-1){m=c[f>>2]|0;i=e;return m|0}else{k=b+308|0;m=b+309|0;j=(d[k]|0)+1|0;a[k]=j;j=b+52+(j&255)|0;k=(d[m]|0)+(d[j]|0)|0;a[m]=k;m=a[j]|0;k=b+52+(k&255)|0;l=a[k]|0;a[j]=l;a[k]=m;m=(a[b+52+((l&255)+(m&255)&255)|0]^g&255)&255;c[f>>2]=m;i=e;return m|0}}else{m=-1;i=e;return m|0}return 0}function Nu(a,b){a=a|0;b=b|0;var d=0;d=i;a=c[a+8>>2]|0;a=Bd[c[(c[a>>2]|0)+60>>2]&255](a,b)|0;i=d;return a|0}function Ou(a){a=a|0;i=i;return 11}function Pu(a){a=a|0;i=i;return a|0}function Qu(b,d){b=b|0;d=d|0;c[b+4>>2]=d;c[b+8>>2]=0;c[b+16>>2]=0;c[b+12>>2]=0;c[b+20>>2]=1;a[b]=0;i=i;return}function Ru(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;c[b+4>>2]=c[d+4>>2];g=c[d+16>>2]|0;f=b+16|0;c[f>>2]=g;c[b+12>>2]=g;c[b+20>>2]=1;a[b]=a[d]&1;b=b+8|0;c[b>>2]=ye(g,24)|0;if((c[f>>2]|0)<=0){i=e;return}d=d+8|0;g=0;do{h=Ic(c[(c[d>>2]|0)+(g*24|0)>>2]|0)|0;c[(c[b>>2]|0)+(g*24|0)>>2]=h;h=(c[b>>2]|0)+(g*24|0)+16|0;c[h>>2]=0;c[h+4>>2]=0;Mf((c[d>>2]|0)+(g*24|0)+8|0,(c[b>>2]|0)+(g*24|0)+8|0)|0;g=g+1|0;}while((g|0)<(c[f>>2]|0));i=e;return}function Su(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+16|0;a=a+8|0;f=c[a>>2]|0;if((c[d>>2]|0)>0){e=0}else{Fe(f);i=b;return}while(1){Fe(c[f+(e*24|0)>>2]|0);Of((c[a>>2]|0)+(e*24|0)+8|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 Tu(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;g=i;if((a[b]&1)!=0){a[b]=0}f=b+16|0;k=c[f>>2]|0;h=b+12|0;do{if((k|0)==(c[h>>2]|0)){j=(k|0)==0?8:k<<1;c[h>>2]=j;b=b+8|0;j=Ce(c[b>>2]|0,j,24)|0;c[b>>2]=j;k=c[f>>2]|0;if((k|0)>=(c[h>>2]|0)){break}while(1){j=j+(k*24|0)+16|0;c[j>>2]=0;c[j+4>>2]=0;k=k+1|0;if((k|0)>=(c[h>>2]|0)){break}j=c[b>>2]|0}k=c[f>>2]|0}else{b=b+8|0}}while(0);c[(c[b>>2]|0)+(k*24|0)>>2]=d;$W((c[b>>2]|0)+((c[f>>2]|0)*24|0)+8|0,e|0,16)|0;c[f>>2]=(c[f>>2]|0)+1;i=g;return}function Uu(a,b){a=a|0;b=b|0;var c=0;c=i;a=(Vu(a,b)|0)!=0;i=c;return a|0}function Vu(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;e=i;m=i;i=i+8|0;l=m;j=a[b]|0;do{if((j&1)==0){k=c[b+16>>2]|0;if((k|0)<=31){break}a[b]=1;j=c[b+8>>2]|0;c[m>>2]=186;dv(j,j+(k*24|0)|0,l);j=a[b]|0}}while(0);if((j&1)==0){j=b+8|0;k=c[b+16>>2]|0;while(1){b=k+ -1|0;if((k|0)<=0){f=0;g=18;break}h=c[j>>2]|0;if((Qc(d|0,c[h+(b*24|0)>>2]|0)|0)==0){break}else{k=b}}if((g|0)==18){i=e;return f|0}m=h+(b*24|0)|0;i=e;return m|0}h=c[b+8>>2]|0;g=c[b+16>>2]|0;if((g|0)<1){m=0;i=e;return m|0}k=g+ -1|0;g=0;a:while(1){while(1){b=g+k|0;j=(b|0)/2|0;l=Qc(d|0,c[h+(j*24|0)>>2]|0)|0;if((l|0)==0){g=12;break a}if((l|0)<0){break}if((j|0)<(k|0)){g=j+1|0}else{f=0;g=18;break a}}k=j+ -1|0;if((g|0)>(k|0)){f=0;g=18;break}}if((g|0)==12){if((b+3|0)>>>0<2){m=0;i=e;return m|0}m=h+(j*24|0)|0;i=e;return m|0}else if((g|0)==18){i=e;return f|0}return 0}function Wu(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=Vu(b,d)|0;if((g|0)!=0){k=g+8|0;Of(k);$W(k|0,e|0,16)|0;i=f;return}d=Ge(d)|0;if((a[b]&1)!=0){a[b]=0}g=b+16|0;k=c[g>>2]|0;h=b+12|0;do{if((k|0)==(c[h>>2]|0)){j=(k|0)==0?8:k<<1;c[h>>2]=j;b=b+8|0;j=Ce(c[b>>2]|0,j,24)|0;c[b>>2]=j;k=c[g>>2]|0;if((k|0)>=(c[h>>2]|0)){break}j=j+(k*24|0)+16|0;c[j>>2]=0;c[j+4>>2]=0;j=k+1|0;if((j|0)<(c[h>>2]|0)){do{k=(c[b>>2]|0)+(j*24|0)+16|0;c[k>>2]=0;c[k+4>>2]=0;j=j+1|0;}while((j|0)<(c[h>>2]|0))}k=c[g>>2]|0}else{b=b+8|0}}while(0);c[(c[b>>2]|0)+(k*24|0)>>2]=d;$W((c[b>>2]|0)+((c[g>>2]|0)*24|0)+8|0,e|0,16)|0;c[g>>2]=(c[g>>2]|0)+1;i=f;return}function Xu(a,b){a=a|0;b=b|0;var d=0;d=i;a=Vu(a,132488)|0;if((a|0)==0){a=0;i=d;return a|0}if((c[a+8>>2]|0)!=4){a=0;i=d;return a|0}a=(Qc(c[a+16>>2]|0,b|0)|0)==0;i=d;return a|0}function Yu(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;b=Vu(a,b)|0;if((b|0)==0){b=d+8|0;c[b>>2]=0;c[b+4>>2]=0;c[d>>2]=5;b=d;i=f;return b|0}else{b=Nf(b+8|0,c[a+4>>2]|0,d,e)|0;i=f;return b|0}return 0}function Zu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;b=Vu(a,b)|0;if((b|0)==0){a=d+8|0;c[a>>2]=0;c[a+4>>2]=0;c[d>>2]=5;a=d;i=e;return a|0}else{a=Mf(b+8|0,d)|0;i=e;return a|0}return 0}function _u(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;j=i;i=i+16|0;h=j;c[j>>2]=13;g=h+8|0;c[g>>2]=0;k=g+4|0;c[k>>2]=0;b=Vu(a,b)|0;if((b|0)==0){c[g>>2]=0;c[k>>2]=0;c[j>>2]=5;b=5}else{Nf(b+8|0,c[a+4>>2]|0,h,0)|0;b=c[j>>2]|0}do{if(!((b|0)!=5|(d|0)==0)){Of(h);d=Vu(a,d)|0;if((d|0)!=0){Nf(d+8|0,c[a+4>>2]|0,h,0)|0;b=c[j>>2]|0;break}c[g>>2]=0;c[k>>2]=0;c[j>>2]=5;b=0;Of(h);i=f;return b|0}}while(0);if((b|0)!=1){b=0;Of(h);i=f;return b|0}c[e>>2]=c[g>>2];b=1;Of(h);i=f;return b|0}function $u(a,b){a=a|0;b=b|0;i=i;return c[(c[a+8>>2]|0)+(b*24|0)>>2]|0}function av(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;b=Nf((c[a+8>>2]|0)+(b*24|0)+8|0,c[a+4>>2]|0,d,0)|0;i=e;return b|0}function bv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;a=Mf((c[a+8>>2]|0)+(b*24|0)+8|0,d)|0;i=e;return a|0}function cv(a,b){a=a|0;b=b|0;var d=0;d=i;a=(Qc(c[a>>2]|0,c[b>>2]|0)|0)<0;i=d;return a|0}function dv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;e=i;h=i;i=i+24|0;r=i;i=i+24|0;o=i;i=i+24|0;q=i;i=i+24|0;n=i;i=i+24|0;E=i;i=i+24|0;G=i;i=i+24|0;C=i;i=i+24|0;F=i;i=i+24|0;D=i;i=i+24|0;z=i;i=i+24|0;J=i;i=i+24|0;y=i;i=i+24|0;B=i;i=i+24|0;f=i;i=i+24|0;g=f;p=i;i=i+24|0;k=i;i=i+24|0;j=i;i=i+24|0;l=i;i=i+24|0;w=i;i=i+24|0;t=i;i=i+24|0;v=i;i=i+24|0;s=i;i=i+24|0;u=i;i=i+24|0;M=i;i=i+24|0;L=i;i=i+24|0;I=i;i=i+24|0;H=i;i=i+24|0;x=i;i=i+24|0;A=i;i=i+24|0;a:while(1){m=b+ -24|0;b:while(1){O=b-a|0;switch((O|0)/24|0|0){case 2:{K=4;break a};case 3:{K=6;break a};case 5:{K=15;break a};case 4:{K=14;break a};case 1:case 0:{K=81;break a};default:{}}if((O|0)<744){K=21;break a}P=(O|0)/48|0;N=a+(P*24|0)|0;do{if((O|0)>23976){Q=(O|0)/96|0;O=a+(Q*24|0)|0;Q=a+((Q+P|0)*24|0)|0;P=ev(a,O,N,Q,d)|0;if(!(Bd[c[d>>2]&255](m,Q)|0)){break}$W(B|0,Q|0,24)|0;$W(Q|0,m|0,24)|0;$W(m|0,B|0,24)|0;if(!(Bd[c[d>>2]&255](Q,N)|0)){P=P+1|0;break}$W(J|0,N|0,24)|0;$W(N|0,Q|0,24)|0;$W(Q|0,J|0,24)|0;if(!(Bd[c[d>>2]&255](N,O)|0)){P=P+2|0;break}$W(z|0,O|0,24)|0;$W(O|0,N|0,24)|0;$W(N|0,z|0,24)|0;if(!(Bd[c[d>>2]&255](O,a)|0)){P=P+3|0;break}$W(y|0,a|0,24)|0;$W(a|0,O|0,24)|0;$W(O|0,y|0,24)|0;P=P+4|0}else{S=Bd[c[d>>2]&255](N,a)|0;O=Bd[c[d>>2]&255](m,N)|0;if(!S){if(!O){P=0;break}$W(D|0,N|0,24)|0;$W(N|0,m|0,24)|0;$W(m|0,D|0,24)|0;if(!(Bd[c[d>>2]&255](N,a)|0)){P=1;break}$W(C|0,a|0,24)|0;$W(a|0,N|0,24)|0;$W(N|0,C|0,24)|0;P=2;break}if(O){$W(E|0,a|0,24)|0;$W(a|0,m|0,24)|0;$W(m|0,E|0,24)|0;P=1;break}$W(G|0,a|0,24)|0;$W(a|0,N|0,24)|0;$W(N|0,G|0,24)|0;if(!(Bd[c[d>>2]&255](m,N)|0)){P=1;break}$W(F|0,N|0,24)|0;$W(N|0,m|0,24)|0;$W(m|0,F|0,24)|0;P=2}}while(0);do{if(Bd[c[d>>2]&255](a,N)|0){Q=m}else{Q=m;while(1){Q=Q+ -24|0;if((a|0)==(Q|0)){break}if(Bd[c[d>>2]&255](Q,N)|0){K=64;break}else{}}if((K|0)==64){K=0;$W(I|0,a|0,24)|0;$W(a|0,Q|0,24)|0;$W(Q|0,I|0,24)|0;P=P+1|0;break}O=a+24|0;if(!(Bd[c[d>>2]&255](a,m)|0)){if((O|0)==(m|0)){K=81;break a}while(1){N=O+24|0;if(Bd[c[d>>2]&255](a,O)|0){break}if((N|0)==(m|0)){K=81;break a}else{O=N}}$W(x|0,O|0,24)|0;$W(O|0,m|0,24)|0;$W(m|0,x|0,24)|0;O=N}if((O|0)==(m|0)){K=81;break a}else{N=m}while(1){while(1){P=O+24|0;if(Bd[c[d>>2]&255](a,O)|0){break}else{O=P}}do{N=N+ -24|0;}while(Bd[c[d>>2]&255](a,N)|0);if(O>>>0>=N>>>0){a=O;continue b}$W(H|0,O|0,24)|0;$W(O|0,N|0,24)|0;$W(N|0,H|0,24)|0;O=P}}}while(0);O=a+24|0;c:do{if(O>>>0<Q>>>0){while(1){S=O;while(1){O=S+24|0;if(Bd[c[d>>2]&255](S,N)|0){S=O}else{R=Q;break}}do{R=R+ -24|0;}while(!(Bd[c[d>>2]&255](R,N)|0));if(S>>>0>R>>>0){O=S;break c}$W(L|0,S|0,24)|0;$W(S|0,R|0,24)|0;$W(R|0,L|0,24)|0;Q=R;N=(N|0)==(S|0)?R:N;P=P+1|0}}}while(0);do{if((O|0)!=(N|0)){if(!(Bd[c[d>>2]&255](N,O)|0)){break}$W(M|0,O|0,24)|0;$W(O|0,N|0,24)|0;$W(N|0,M|0,24)|0;P=P+1|0}}while(0);if((P|0)==0){P=fv(a,O,d)|0;N=O+24|0;if(fv(N,b,d)|0){K=76;break}if(P){a=N;continue}}if((O-a|0)>=(b-O|0)){K=80;break}dv(a,O,d);a=O+24|0}if((K|0)==76){K=0;if(P){K=81;break}else{b=O;continue}}else if((K|0)==80){K=0;dv(O+24|0,b,d);b=O;continue}}if((K|0)==4){if(!(Bd[c[d>>2]&255](m,a)|0)){i=e;return}$W(A|0,a|0,24)|0;$W(a|0,m|0,24)|0;$W(m|0,A|0,24)|0;i=e;return}else if((K|0)==6){f=a+24|0;S=Bd[c[d>>2]&255](f,a)|0;g=Bd[c[d>>2]&255](m,f)|0;if(!S){if(!g){i=e;return}$W(u|0,f|0,24)|0;$W(f|0,m|0,24)|0;$W(m|0,u|0,24)|0;if(!(Bd[c[d>>2]&255](f,a)|0)){i=e;return}$W(v|0,a|0,24)|0;$W(a|0,f|0,24)|0;$W(f|0,v|0,24)|0;i=e;return}if(g){$W(w|0,a|0,24)|0;$W(a|0,m|0,24)|0;$W(m|0,w|0,24)|0;i=e;return}$W(t|0,a|0,24)|0;$W(a|0,f|0,24)|0;$W(f|0,t|0,24)|0;if(!(Bd[c[d>>2]&255](m,f)|0)){i=e;return}$W(s|0,f|0,24)|0;$W(f|0,m|0,24)|0;$W(m|0,s|0,24)|0;i=e;return}else if((K|0)==14){ev(a,a+24|0,a+48|0,m,d)|0;i=e;return}else if((K|0)==15){b=a+24|0;f=a+48|0;g=a+72|0;ev(a,b,f,g,d)|0;if(!(Bd[c[d>>2]&255](m,g)|0)){i=e;return}$W(l|0,g|0,24)|0;$W(g|0,m|0,24)|0;$W(m|0,l|0,24)|0;if(!(Bd[c[d>>2]&255](g,f)|0)){i=e;return}$W(k|0,f|0,24)|0;$W(f|0,g|0,24)|0;$W(g|0,k|0,24)|0;if(!(Bd[c[d>>2]&255](f,b)|0)){i=e;return}$W(p|0,b|0,24)|0;$W(b|0,f|0,24)|0;$W(f|0,p|0,24)|0;if(!(Bd[c[d>>2]&255](b,a)|0)){i=e;return}$W(j|0,a|0,24)|0;$W(a|0,b|0,24)|0;$W(b|0,j|0,24)|0;i=e;return}else if((K|0)==21){j=a+48|0;l=a+24|0;S=Bd[c[d>>2]&255](l,a)|0;k=Bd[c[d>>2]&255](j,l)|0;do{if(S){if(k){$W(h|0,a|0,24)|0;$W(a|0,j|0,24)|0;$W(j|0,h|0,24)|0;break}$W(r|0,a|0,24)|0;$W(a|0,l|0,24)|0;$W(l|0,r|0,24)|0;if(!(Bd[c[d>>2]&255](j,l)|0)){break}$W(q|0,l|0,24)|0;$W(l|0,j|0,24)|0;$W(j|0,q|0,24)|0}else{if(!k){break}$W(n|0,l|0,24)|0;$W(l|0,j|0,24)|0;$W(j|0,n|0,24)|0;if(!(Bd[c[d>>2]&255](l,a)|0)){break}$W(o|0,a|0,24)|0;$W(a|0,l|0,24)|0;$W(l|0,o|0,24)|0}}while(0);h=a+72|0;if((h|0)==(b|0)){i=e;return}while(1){if(Bd[c[d>>2]&255](h,j)|0){$W(f|0,h|0,24)|0;k=h;while(1){$W(k|0,j|0,24)|0;if((j|0)==(a|0)){break}k=j+ -24|0;if(Bd[c[d>>2]&255](g,k)|0){S=j;j=k;k=S}else{break}}$W(j|0,f|0,24)|0}j=h+24|0;if((j|0)==(b|0)){break}else{S=h;h=j;j=S}}i=e;return}else if((K|0)==81){i=e;return}}function ev(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;k=i;n=i;i=i+24|0;p=i;i=i+24|0;l=i;i=i+24|0;o=i;i=i+24|0;m=i;i=i+24|0;h=i;i=i+24|0;g=i;i=i+24|0;j=i;i=i+24|0;r=Bd[c[f>>2]&255](b,a)|0;q=Bd[c[f>>2]&255](d,b)|0;do{if(r){if(q){$W(n|0,a|0,24)|0;$W(a|0,d|0,24)|0;$W(d|0,n|0,24)|0;l=1;break}$W(p|0,a|0,24)|0;$W(a|0,b|0,24)|0;$W(b|0,p|0,24)|0;if(!(Bd[c[f>>2]&255](d,b)|0)){l=1;break}$W(o|0,b|0,24)|0;$W(b|0,d|0,24)|0;$W(d|0,o|0,24)|0;l=2}else{if(!q){l=0;break}$W(m|0,b|0,24)|0;$W(b|0,d|0,24)|0;$W(d|0,m|0,24)|0;if(!(Bd[c[f>>2]&255](b,a)|0)){l=1;break}$W(l|0,a|0,24)|0;$W(a|0,b|0,24)|0;$W(b|0,l|0,24)|0;l=2}}while(0);if(!(Bd[c[f>>2]&255](e,d)|0)){r=l;i=k;return r|0}$W(j|0,d|0,24)|0;$W(d|0,e|0,24)|0;$W(e|0,j|0,24)|0;if(!(Bd[c[f>>2]&255](d,b)|0)){r=l+1|0;i=k;return r|0}$W(h|0,b|0,24)|0;$W(b|0,d|0,24)|0;$W(d|0,h|0,24)|0;if(!(Bd[c[f>>2]&255](b,a)|0)){r=l+2|0;i=k;return r|0}$W(g|0,a|0,24)|0;$W(a|0,b|0,24)|0;$W(b|0,g|0,24)|0;r=l+3|0;i=k;return r|0}function fv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;e=i;o=i;i=i+24|0;q=i;i=i+24|0;w=i;i=i+24|0;p=i;i=i+24|0;s=i;i=i+24|0;j=i;i=i+24|0;m=i;i=i+24|0;l=i;i=i+24|0;k=i;i=i+24|0;t=i;i=i+24|0;v=i;i=i+24|0;n=i;i=i+24|0;u=i;i=i+24|0;r=i;i=i+24|0;x=i;i=i+24|0;g=i;i=i+24|0;h=g;switch((b-a|0)/24|0|0){case 1:case 0:{x=1;i=e;return x|0};case 4:{ev(a,a+24|0,a+48|0,b+ -24|0,d)|0;x=1;i=e;return x|0};case 2:{b=b+ -24|0;if(!(Bd[c[d>>2]&255](b,a)|0)){x=1;i=e;return x|0}$W(x|0,a|0,24)|0;$W(a|0,b|0,24)|0;$W(b|0,x|0,24)|0;x=1;i=e;return x|0};case 5:{f=a+24|0;g=a+48|0;h=a+72|0;b=b+ -24|0;ev(a,f,g,h,d)|0;if(!(Bd[c[d>>2]&255](b,h)|0)){x=1;i=e;return x|0}$W(k|0,h|0,24)|0;$W(h|0,b|0,24)|0;$W(b|0,k|0,24)|0;if(!(Bd[c[d>>2]&255](h,g)|0)){x=1;i=e;return x|0}$W(m|0,g|0,24)|0;$W(g|0,h|0,24)|0;$W(h|0,m|0,24)|0;if(!(Bd[c[d>>2]&255](g,f)|0)){x=1;i=e;return x|0}$W(j|0,f|0,24)|0;$W(f|0,g|0,24)|0;$W(g|0,j|0,24)|0;if(!(Bd[c[d>>2]&255](f,a)|0)){x=1;i=e;return x|0}$W(l|0,a|0,24)|0;$W(a|0,f|0,24)|0;$W(f|0,l|0,24)|0;x=1;i=e;return x|0};case 3:{f=a+24|0;g=b+ -24|0;x=Bd[c[d>>2]&255](f,a)|0;b=Bd[c[d>>2]&255](g,f)|0;if(!x){if(!b){x=1;i=e;return x|0}$W(r|0,f|0,24)|0;$W(f|0,g|0,24)|0;$W(g|0,r|0,24)|0;if(!(Bd[c[d>>2]&255](f,a)|0)){x=1;i=e;return x|0}$W(n|0,a|0,24)|0;$W(a|0,f|0,24)|0;$W(f|0,n|0,24)|0;x=1;i=e;return x|0}if(b){$W(t|0,a|0,24)|0;$W(a|0,g|0,24)|0;$W(g|0,t|0,24)|0;x=1;i=e;return x|0}$W(v|0,a|0,24)|0;$W(a|0,f|0,24)|0;$W(f|0,v|0,24)|0;if(!(Bd[c[d>>2]&255](g,f)|0)){x=1;i=e;return x|0}$W(u|0,f|0,24)|0;$W(f|0,g|0,24)|0;$W(g|0,u|0,24)|0;x=1;i=e;return x|0};default:{j=a+48|0;k=a+24|0;x=Bd[c[d>>2]&255](k,a)|0;l=Bd[c[d>>2]&255](j,k)|0;do{if(x){if(l){$W(o|0,a|0,24)|0;$W(a|0,j|0,24)|0;$W(j|0,o|0,24)|0;break}$W(q|0,a|0,24)|0;$W(a|0,k|0,24)|0;$W(k|0,q|0,24)|0;if(!(Bd[c[d>>2]&255](j,k)|0)){break}$W(p|0,k|0,24)|0;$W(k|0,j|0,24)|0;$W(j|0,p|0,24)|0}else{if(!l){break}$W(s|0,k|0,24)|0;$W(k|0,j|0,24)|0;$W(j|0,s|0,24)|0;if(!(Bd[c[d>>2]&255](k,a)|0)){break}$W(w|0,a|0,24)|0;$W(a|0,k|0,24)|0;$W(k|0,w|0,24)|0}}while(0);k=a+72|0;if((k|0)==(b|0)){x=1;i=e;return x|0}l=0;while(1){if(Bd[c[d>>2]&255](k,j)|0){$W(g|0,k|0,24)|0;m=k;while(1){$W(m|0,j|0,24)|0;if((j|0)==(a|0)){break}m=j+ -24|0;if(Bd[c[d>>2]&255](h,m)|0){x=j;j=m;m=x}else{break}}$W(j|0,g|0,24)|0;l=l+1|0;if((l|0)==8){break}}j=k+24|0;if((j|0)==(b|0)){a=1;f=35;break}else{x=k;k=j;j=x}}if((f|0)==35){i=e;return a|0}x=(k+24|0)==(b|0);i=e;return x|0}}return 0}function gv(b,d,e,f,g,j){b=b|0;d=d|0;e=e|0;f=f|0;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,O=0,P=0,Q=0,R=0,S=0,T=0.0,U=0.0,V=0,W=0,X=0;l=i;o=i;i=i+16|0;n=o;r=i;i=i+8|0;q=i;i=i+8|0;s=q;x=i;i=i+16|0;w=x;z=i;i=i+8|0;A=i;i=i+8|0;y=A;C=i;i=i+16|0;B=C;E=i;i=i+8|0;D=i;i=i+8|0;F=D;H=i;i=i+16|0;G=H;I=i;i=i+8|0;J=i;i=i+8|0;K=J;N=i;i=i+8|0;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+16|0;k=v;u=i;i=i+16|0;m=u;c[b>>2]=146632;V=b+16|0;c[V>>2]=13;S=b+24|0;c[S>>2]=0;c[S+4>>2]=0;c[v>>2]=13;t=k+8|0;c[t>>2]=0;c[t+4>>2]=0;c[u>>2]=13;p=m+8|0;c[p>>2]=0;c[p+4>>2]=0;X=g;W=c[X+4>>2]|0;g=b+32|0;c[g>>2]=c[X>>2];c[g+4>>2]=W;c[b+64>>2]=0;a[b+44|0]=0;h[b+104>>3]=0.0;a[b+45|0]=0;c[b+60>>2]=f;c[b+40>>2]=d;Mf(e,V)|0;c[b+8>>2]=4;c[b+4>>2]=j;j=c[V>>2]|0;if((j|0)!=7){c[R>>2]=j;c[Q+4>>2]=7;Qe(0,148232,Q);tc()}Q=c[S>>2]|0;c[b+56>>2]=0;do{if((c[(Yu(Q,146648,k,0)|0)>>2]|0)==3){R=c[v>>2]|0;if((R|0)==3){W=c[t>>2]|0;X=FW(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=FW(32)|0;fe(W,146896);c[(c[s+68>>2]|0)+(U*12|0)+4>>2]=W;s=29}}while(0);if((s|0)==29){s=0;Of(z)}U=U+1|0;if((U|0)>=(c[(c[b>>2]|0)+64>>2]|0)){e=b;break a}}if((s|0)==14){c[C>>2]=V;c[G+4>>2]=6;Qe(0,148232,G);tc()}else if((s|0)==17){c[H>>2]=V;c[I+4>>2]=3;Qe(0,148232,I);tc()}else if((s|0)==22){c[A>>2]=V;c[B+4>>2]=6;Qe(0,148232,B);tc()}else if((s|0)==24){c[N>>2]=V;c[D+4>>2]=3;Qe(0,148232,D);tc()}else if((s|0)==26){c[E>>2]=V;c[F+4>>2]=3;Qe(0,148232,F);tc()}}else{e=b+112|0}}while(0);Of(h);s=(c[e>>2]|0)+64|0;v=c[s>>2]|0;v=GW((v|0)>-1?v:-1)|0;bX(v|0,0,c[s>>2]|0)|0;W=u+4|0;c[W>>2]=0;c[u+8>>2]=0;c[t>>2]=W;W=Nv(O,146792,h,u)|0;xn(u,c[u+4>>2]|0);c:do{if((c[W>>2]|0)==3){m=c[e>>2]|0;if((c[m+64>>2]|0)<=0){break}k=0;while(1){l=c[g>>2]|0;if((l|0)!=3){s=36;break}l=k+1|0;if((se(c[(c[m+68>>2]|0)+(k*12|0)+4>>2]|0,c[j>>2]|0)|0)==0){s=38;break}m=c[e>>2]|0;if((l|0)<(c[m+64>>2]|0)){k=l}else{break c}}if((s|0)==36){c[q>>2]=l;c[r+4>>2]=3;Qe(0,148232,r);tc()}else if((s|0)==38){a[v+k|0]=1;break}}else{if((c[g>>2]|0)!=6){break}s=n+8|0;r=s+4|0;q=0;d:while(1){t=c[j>>2]|0;if((q|0)>=(c[t+12>>2]|0)){break c}c[l>>2]=13;c[s>>2]=0;c[r>>2]=0;ut(t,q,n)|0;x=c[e>>2]|0;if((c[x+64>>2]|0)>0){u=v+q|0;w=0;do{t=c[l>>2]|0;if((t|0)!=3){s=46;break d}if((se(c[(c[x+68>>2]|0)+(w*12|0)+4>>2]|0,c[s>>2]|0)|0)==0){a[u]=1}w=w+1|0;x=c[e>>2]|0;}while((w|0)<(c[x+64>>2]|0))}Of(n);t=c[g>>2]|0;if((t|0)==6){q=q+1|0}else{s=41;break}}if((s|0)==41){c[k>>2]=t;c[o+4>>2]=6;Qe(0,148232,o);tc()}else if((s|0)==46){c[p>>2]=t;c[m+4>>2]=3;Qe(0,148232,m);tc()}}}while(0);Of(h);k=c[e>>2]|0;do{if((c[k+64>>2]|0)>0){g=0;do{do{if(!(ve(c[(c[k+68>>2]|0)+(g*12|0)+4>>2]|0)|0)){k=(c[e>>2]|0)+68|0;l=c[(c[k>>2]|0)+(g*12|0)+4>>2]|0;m=c[l+24>>2]|0;j=(m<<1)+2|0;h=GW((j|0)>-1?j:-1)|0;l=c[l+28>>2]|0;a[h]=-2;a[h+1|0]=-1;if((m|0)>0){n=2;m=0;while(1){W=c[189696+((d[l+m|0]|0)<<2)>>2]|0;a[h+n|0]=W>>>8;a[h+(n|1)|0]=W;n=n+2|0;if((n|0)<(j|0)){m=m+1|0}else{break}}}ce(c[(c[k>>2]|0)+(g*12|0)+4>>2]|0,h,j,0,-1)|0;if((h|0)==0){break}IW(h)}}while(0);g=g+1|0;k=c[e>>2]|0;h=c[k+64>>2]|0;}while((g|0)<(h|0));if((h|0)<=0){break}g=h;h=k+64|0;j=0;do{if((a[v+j|0]&1)!=0){l=k+68|0;if((a[k+59|0]&1)==0&(g|0)>0){g=0;do{a[(c[l>>2]|0)+(g*12|0)+8|0]=0;g=g+1|0;}while((g|0)<(c[h>>2]|0))}a[(c[l>>2]|0)+(j*12|0)+8|0]=1;k=c[e>>2]|0}j=j+1|0;h=k+64|0;g=c[h>>2]|0;}while((j|0)<(g|0))}}while(0);if((v|0)==0){i=f;return}IW(v);i=f;return}function sv(a){a=a|0;var b=0;b=i;iv(a);HW(a);i=b;return}function tv(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,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;m=i;q=i;i=i+8|0;r=q;N=i;i=i+8|0;O=N;I=i;i=i+8|0;K=I;A=i;i=i+8|0;B=A;j=i;i=i+8|0;k=j;Q=i;i=i+8|0;P=i;i=i+8|0;fa=i;i=i+8|0;ga=fa;da=i;i=i+8|0;ea=da;ba=i;i=i+8|0;ca=ba;_=i;i=i+8|0;W=i;i=i+8|0;X=W;U=i;i=i+8|0;V=U;u=i;i=i+8|0;v=u;s=i;i=i+8|0;t=s;S=i;i=i+8|0;oa=i;i=i+8|0;na=oa;ja=i;i=i+8|0;ka=ja;$=i;i=i+8|0;aa=$;G=i;i=i+8|0;L=G;H=i;i=i+8|0;o=i;i=i+16|0;n=o;ha=i;i=i+16|0;l=ha;E=i;i=i+16|0;w=E;T=i;i=i+16|0;x=T;C=i;i=i+16|0;R=C;D=i;i=i+16|0;y=D;z=i;i=i+8|0;F=i;i=i+16|0;J=F;Y=i;i=i+8|0;Z=Y;M=i;i=i+8|0;p=i;i=i+8|0;c[b>>2]=147160;ia=b+24|0;c[ia>>2]=13;la=b+32|0;c[la>>2]=0;c[la+4>>2]=0;c[b+40>>2]=d;Mf(e,ia)|0;ia=c[ia>>2]|0;if((ia|0)!=7){c[ja>>2]=ia;c[ka+4>>2]=7;Qe(0,148232,ka);tc()}ia=c[la>>2]|0;ja=b+8|0;c[b+12>>2]=0;c[ja>>2]=0;c[b+4>>2]=h;la=b+48|0;ka=b+44|0;ma=b+16|0;a[ma]=0;h=b+56|0;bX(ka|0,0,13)|0;Fa=f;Ga=c[Fa+4>>2]|0;f=ja;c[f>>2]=c[Fa>>2];c[f+4>>2]=Ga;c[ha>>2]=13;f=l+8|0;c[f>>2]=0;c[f+4>>2]=0;a:do{if((c[(Yu(ia,147176,l,0)|0)>>2]|0)==6){pa=c[ha>>2]|0;if((pa|0)!=6){c[oa>>2]=pa;c[na+4>>2]=6;Qe(0,148232,na);tc()}na=c[f>>2]|0;qa=c[na+12>>2]|0;if((qa|0)<=0){break}ta=w+8|0;Ba=ta+4|0;xa=x+8|0;pa=xa+4|0;sa=R+8|0;Aa=sa+4|0;oa=g+4|0;ua=y+8|0;va=ua+4|0;wa=J+4|0;za=J+8|0;ya=J+4|0;ra=0;b:while(1){c[E>>2]=13;c[ta>>2]=0;c[Ba>>2]=0;c[T>>2]=13;c[xa>>2]=0;c[pa>>2]=0;ut(na,ra,w)|0;if((c[E>>2]|0)==7){c[C>>2]=13;c[sa>>2]=0;c[Aa>>2]=0;vt(na,ra,R)|0;c:do{if((c[C>>2]|0)==9){Ca=c[sa>>2]|0;Fa=c[oa>>2]|0;do{if((Fa|0)!=0){Da=oa;d:while(1){Ea=Fa;while(1){if((c[Ea+16>>2]|0)>=(Ca|0)){break}Ea=c[Ea+4>>2]|0;if((Ea|0)==0){break d}}Fa=c[Ea>>2]|0;if((Fa|0)==0){Da=Ea;break}else{Da=Ea}}if((Da|0)==(oa|0)){break}if((Ca|0)<(c[Da+16>>2]|0)){break}Qe(-1,147288,P);break c}}while(0);e:do{if((c[(Yu(ia,146744,x,0)|0)>>2]|0)==4){c[D>>2]=13;c[ua>>2]=0;c[va>>2]=0;Ca=c[E>>2]|0;if((Ca|0)!=7){Da=20;break b}if((c[(Yu(c[ta>>2]|0,147232,y,0)|0)>>2]|0)==4){Ca=c[C>>2]|0;if((Ca|0)!=9){Da=23;break b}Ea=sa;Fa=c[Ea+4>>2]|0;Ga=z;c[Ga>>2]=c[Ea>>2];c[Ga+4>>2]=Fa;$W(A|0,z|0,8)|0;uv(b,w,B)}Of(y)}else{Ea=c[E>>2]|0;if((Ea|0)!=7){Da=27;break b}do{if((c[(Yu(c[ta>>2]|0,146744,x,0)|0)>>2]|0)!=4){Ea=c[E>>2]|0;if((Ea|0)!=7){Da=30;break b}if((c[(Yu(c[ta>>2]|0,147176,x,0)|0)>>2]|0)==6){break}Ca=c[E>>2]|0;if((Ca|0)!=7){Da=61;break b}if((c[(Yu(c[ta>>2]|0,147232,x,0)|0)>>2]|0)!=4){break e}Ca=c[C>>2]|0;if((Ca|0)!=9){Da=64;break b}Ea=sa;Fa=c[Ea+4>>2]|0;Ga=M;c[Ga>>2]=c[Ea>>2];c[Ga+4>>2]=Fa;$W(N|0,M|0,8)|0;uv(b,w,O);break e}}while(0);c[wa>>2]=0;c[za>>2]=0;c[F>>2]=wa;Da=c[g>>2]|0;do{if((Da|0)==(oa|0)){Da=50}else{do{Ga=Da+16|0;c[H>>2]=wa;$W(I|0,H|0,4)|0;Ea=Xv(J,K,L,Ga)|0;if((c[Ea>>2]|0)==0){Fa=FW(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=FW(64)|0}}while(0);tv(h,b,a,d,e,4);o=h;Of(f);yv(o);i=g;return o|0}function wv(a){a=a|0;var b=0;b=i;xv(a);HW(a);i=b;return}function xv(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;c[b>>2]=147160;if((a[b+16|0]&1)!=0){f=b+48|0;g=c[f>>2]|0;e=b+52|0;j=c[e>>2]|0;if((g|0)>0){h=0;do{k=c[j+(h<<2)>>2]|0;if((k|0)!=0){fd[c[(c[k>>2]|0)+4>>2]&511](k);j=c[e>>2]|0;g=c[f>>2]|0}h=h+1|0;}while((h|0)<(g|0))}Fe(j);k=b+24|0;Of(k);i=d;return}f=b+44|0;j=c[f>>2]|0;if((j|0)==0){k=b+24|0;Of(k);i=d;return}e=b+48|0;g=c[e>>2]|0;if((g|0)>0){h=0;do{k=c[j+(h<<2)>>2]|0;if((k|0)!=0){fd[c[(c[k>>2]|0)+4>>2]&511](k);j=c[f>>2]|0;g=c[e>>2]|0}h=h+1|0;}while((h|0)<(g|0))}Fe(j);k=b+24|0;Of(k);i=d;return}function yv(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;e=b+48|0;f=(c[e>>2]|0)>0;if((a[b+16|0]&1)==0){if(!f){i=d;return}b=b+44|0;f=0;do{yv(c[(c[b>>2]|0)+(f<<2)>>2]|0);f=f+1|0;}while((f|0)<(c[e>>2]|0));i=d;return}else{if(!f){i=d;return}b=b+52|0;f=0;do{g=c[(c[b>>2]|0)+(f<<2)>>2]|0;fd[c[(c[g>>2]|0)+8>>2]&511](g);f=f+1|0;}while((f|0)<(c[e>>2]|0));i=d;return}}function zv(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;if((a[b+16|0]&1)!=0){i=d;return}e=b+48|0;if((c[e>>2]|0)<=0){i=d;return}b=b+44|0;f=0;do{g=c[(c[b>>2]|0)+(f<<2)>>2]|0;fd[c[(c[g>>2]|0)+8>>2]&511](g);f=f+1|0;}while((f|0)<(c[e>>2]|0));i=d;return}function Av(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;f=i;j=i;i=i+8|0;h=j;n=i;i=i+8|0;e=c[b+48>>2]|0;g=(e|0)>0;if((a[b+16|0]&1)==0){if(!g){p=0;i=f;return p|0}m=d;l=c[m>>2]|0;m=c[m+4>>2]|0;k=c[b+44>>2]|0;p=0;while(1){o=c[k+(p<<2)>>2]|0;q=n;c[q>>2]=l;c[q+4>>2]=m;$W(j|0,n|0,8)|0;o=Av(o,h)|0;p=p+1|0;if((o|0)!=0){h=11;break}if((p|0)<(e|0)){}else{o=0;h=11;break}}if((h|0)==11){i=f;return o|0}}if(!g){q=0;i=f;return q|0}b=c[b+52>>2]|0;g=c[d>>2]|0;d=c[d+4>>2]|0;h=0;while(1){o=c[b+(h<<2)>>2]|0;j=o+32|0;if((c[j>>2]|0)==(g|0)){if((c[j+4>>2]|0)==(d|0)){h=11;break}}h=h+1|0;if((h|0)>=(e|0)){o=0;h=11;break}}if((h|0)==11){i=f;return o|0}return 0}function Bv(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;j=i;h=i;i=i+8|0;k=i;i=i+8|0;l=k;r=i;i=i+8|0;q=r;p=i;i=i+16|0;o=p;m=i;i=i+16|0;n=m;tv(b,d,e,f,g,0);c[b>>2]=147448;g=c[b+24>>2]|0;if((g|0)!=7){c[r>>2]=g;c[q+4>>2]=7;Qe(0,148232,q);tc()}d=c[b+32>>2]|0;c[b+68>>2]=-1;q=b+72|0;a[q]=0;c[m>>2]=13;r=n+8|0;c[r>>2]=0;c[r+4>>2]=0;b=b+60|0;c[b>>2]=0;e=o+4|0;c[e>>2]=0;c[o+8>>2]=0;c[p>>2]=e;d=Nv(d,147376,n,o)|0;xn(o,c[o+4>>2]|0);if((c[d>>2]|0)!=1){i=j;return}m=c[m>>2]|0;if((m|0)!=1){c[k>>2]=m;c[l+4>>2]=1;Qe(0,148232,l);tc()}k=c[r>>2]|0;do{if((k&65536|0)==0){if((k&32768|0)==0){break}c[b>>2]=2;if((k&16384|0)==0){break}a[q]=1}else{c[b>>2]=1}}while(0);if((k&16777216|0)==0){i=j;return}Qe(-1,147464,h);i=j;return}function Cv(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=b+48|0;h=c[e>>2]|0;f=(h|0)>0;if((a[b+16|0]&1)==0){if(!f){i=d;return}b=b+44|0;f=0;do{k=c[(c[b>>2]|0)+(f<<2)>>2]|0;fd[c[(c[k>>2]|0)+8>>2]&511](k);f=f+1|0;}while((f|0)<(c[e>>2]|0));i=d;return}if(!f){i=d;return}f=b+52|0;b=0;do{g=c[(c[f>>2]|0)+(b<<2)>>2]|0;h=h+ -1|0;c[g+116>>2]=h;g=g+112|0;c[g>>2]=Ce(c[g>>2]|0,h,4)|0;h=c[e>>2]|0;if((h|0)>0){j=0;k=0;do{if((b|0)!=(k|0)){c[(c[g>>2]|0)+(j<<2)>>2]=c[(c[(c[f>>2]|0)+(k<<2)>>2]|0)+64>>2];h=c[e>>2]|0;j=j+1|0}k=k+1|0;}while((k|0)<(h|0))}b=b+1|0;}while((b|0)<(h|0));i=d;return}function Dv(a){a=a|0;var b=0;b=i;xv(a);HW(a);i=b;return}function Ev(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;h=i;l=i;i=i+8|0;j=l;p=i;i=i+8|0;q=p;u=i;i=i+8|0;t=u;o=i;i=i+16|0;n=o;r=i;i=i+16|0;s=r;m=i;i=i+16|0;k=m;tv(b,d,e,f,g,1);c[b>>2]=147624;g=c[b+24>>2]|0;if((g|0)!=7){c[u>>2]=g;c[t+4>>2]=7;Qe(0,148232,t);tc()}f=c[b+32>>2]|0;c[m>>2]=13;t=k+8|0;c[t>>2]=0;c[t+4>>2]=0;e=b+70|0;d=b+69|0;v=b+68|0;w=b+67|0;x=b+66|0;y=b+65|0;g=b+64|0;u=b+72|0;c[u>>2]=0;bX(b+60|0,0,11)|0;b=s+4|0;c[b>>2]=0;c[s+8>>2]=0;c[r>>2]=b;b=Nv(f,147376,k,s)|0;xn(s,c[s+4>>2]|0);do{if((c[b>>2]|0)==1){r=c[m>>2]|0;if((r|0)!=1){c[p>>2]=r;c[q+4>>2]=1;Qe(0,148232,q);tc()}p=c[t>>2]|0;if((p&4096|0)!=0){a[g]=1}if((p&8192|0)!=0){a[y]=1}if((p&1048576|0)!=0){a[x]=1}if((p&4194304|0)!=0){a[w]=1}if((p&8388608|0)!=0){a[v]=1}if((p&16777216|0)!=0){a[d]=1}if((p&33554432|0)==0){break}a[e]=1}}while(0);Of(k);y=n+4|0;c[y>>2]=0;c[n+8>>2]=0;c[o>>2]=y;y=Nv(f,147640,k,n)|0;xn(n,c[n+4>>2]|0);if((c[y>>2]|0)!=1){Of(k);i=h;return}m=c[m>>2]|0;if((m|0)!=1){c[l>>2]=m;c[j+4>>2]=1;Qe(0,148232,j);tc()}c[u>>2]=c[t>>2];Of(k);i=h;return}function Fv(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=147624;d=c[a+60>>2]|0;if((d|0)!=0){ke(d);HW(d)}xv(a);HW(a);i=b;return}function Gv(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=147624;d=c[a+60>>2]|0;if((d|0)==0){xv(a);i=b;return}ke(d);HW(d);xv(a);i=b;return}function Hv(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;h=i;k=i;i=i+8|0;l=k;q=i;i=i+8|0;p=q;o=i;i=i+16|0;n=o;m=i;i=i+16|0;j=m;tv(b,d,e,f,g,2);c[b>>2]=147656;c[b+64>>2]=0;c[b+68>>2]=0;c[b+72>>2]=0;g=c[b+24>>2]|0;if((g|0)!=7){c[q>>2]=g;c[p+4>>2]=7;Qe(0,148232,p);tc()}d=c[b+32>>2]|0;c[m>>2]=13;q=j+8|0;c[q>>2]=0;c[q+4>>2]=0;p=b+57|0;bX(p|0,0,5)|0;e=n+4|0;c[e>>2]=0;c[n+8>>2]=0;c[o>>2]=e;d=Nv(d,147376,j,n)|0;xn(n,c[n+4>>2]|0);if((c[d>>2]|0)!=1){Of(j);i=h;return}m=c[m>>2]|0;if((m|0)!=1){c[k>>2]=m;c[l+4>>2]=1;Qe(0,148232,l);tc()}k=c[q>>2]|0;if((k&131072|0)!=0){a[p]=1}if((k&262144|0)!=0){a[b+58|0]=1}if((k&2097152|0)!=0){a[b+59|0]=1}if((k&4194304|0)!=0){a[b+60|0]=1}if((k&67108864|0)==0){Of(j);i=h;return}a[b+61|0]=1;Of(j);i=h;return}function Iv(a){a=a|0;var b=0;b=i;Jv(a);HW(a);i=b;return}function Jv(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;c[a>>2]=147656;d=a+64|0;e=a+68|0;g=c[e>>2]|0;if((c[d>>2]|0)>0){f=0;do{h=c[g+(f*12|0)>>2]|0;if((h|0)!=0){ke(h);HW(h);g=c[e>>2]|0}h=c[g+(f*12|0)+4>>2]|0;if((h|0)!=0){ke(h);HW(h);g=c[e>>2]|0}f=f+1|0;}while((f|0)<(c[d>>2]|0))}if((g|0)!=0){IW(g)}d=c[a+72>>2]|0;if((d|0)==0){xv(a);i=b;return}ke(d);HW(d);xv(a);i=b;return}function Kv(a){a=a|0;var b=0;b=i;xv(a);HW(a);i=b;return}function Lv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=i;z=i;i=i+8|0;h=i;i=i+8|0;j=h;u=i;i=i+8|0;t=i;i=i+8|0;y=i;i=i+8|0;A=y;C=i;i=i+8|0;E=C;x=i;i=i+16|0;g=x;s=i;i=i+16|0;v=s;r=i;i=i+16|0;l=r;p=i;i=i+16|0;o=p;m=i;i=i+8|0;n=m;c[x>>2]=13;w=g+8|0;c[w>>2]=0;c[w+4>>2]=0;c[b+12>>2]=d;B=b+16|0;c[B>>2]=e;q=b+8|0;c[q>>2]=0;k=b+4|0;c[k>>2]=0;c[b>>2]=0;D=c[e>>2]|0;if((D|0)!=7){c[C>>2]=D;c[E+4>>2]=7;Qe(0,148232,E);tc()}Yu(c[e+8>>2]|0,147696,g,0)|0;if((c[x>>2]|0)==0){e=a[w]&1}else{e=0}a[b+20|0]=e;Of(g);e=c[B>>2]|0;B=c[e>>2]|0;if((B|0)!=7){c[y>>2]=B;c[A+4>>2]=7;Qe(0,148232,A);tc()}Yu(c[e+8>>2]|0,147712,g,0)|0;if((c[x>>2]|0)!=6){Qe(-1,147816,z);Of(g);i=f;return}A=c[w>>2]|0;c[s>>2]=13;z=v+8|0;c[z>>2]=0;c[z+4>>2]=0;z=A+12|0;if((c[z>>2]|0)<=0){Of(g);i=f;return}w=l+8|0;x=w+4|0;e=o+4|0;y=o+8|0;B=o+4|0;C=0;a:while(1){c[r>>2]=13;c[w>>2]=0;c[x>>2]=0;ut(A,C,v)|0;vt(A,C,l)|0;do{if((c[r>>2]|0)==9){if((c[s>>2]|0)!=7){Qe(-1,147752,u);Of(v);Of(l);break}D=c[q>>2]|0;if((c[k>>2]|0)<(D|0)){c[e>>2]=0;c[y>>2]=0;c[p>>2]=e}else{D=D+16|0;c[q>>2]=D;c[b>>2]=Ce(c[b>>2]|0,D,4)|0;D=c[r>>2]|0;c[e>>2]=0;c[y>>2]=0;c[p>>2]=e;if((D|0)!=9){k=17;break a}}F=w;E=c[F+4>>2]|0;D=m;c[D>>2]=c[F>>2];c[D+4>>2]=E;D=vv(v,d,n,o)|0;E=c[k>>2]|0;c[k>>2]=E+1;c[(c[b>>2]|0)+(E<<2)>>2]=D;Of(v);Of(l);xn(o,c[B>>2]|0)}else{Qe(-1,147720,t);Of(v);Of(l)}}while(0);C=C+1|0;if((C|0)>=(c[z>>2]|0)){k=21;break}}if((k|0)==17){c[h>>2]=D;c[j+4>>2]=9;Qe(0,148232,j);tc()}else if((k|0)==21){Of(g);i=f;return}}function Mv(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 Nv(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;g=i;l=i;i=i+8|0;o=i;i=i+16|0;f=o;n=i;i=i+8|0;k=n;h=i;i=i+16|0;j=h;c[o>>2]=13;m=f+8|0;c[m>>2]=0;c[m+4>>2]=0;if((c[(Yu(a,b,d,0)|0)>>2]|0)!=5){i=g;return d|0}Of(d);Zu(a,146752,f)|0;o=c[o>>2]|0;a:do{if((o|0)==7){Nv(c[m>>2]|0,b,d,e)|0}else if((o|0)==9){q=m;m=c[q>>2]|0;q=c[q+4>>2]|0;c[n>>2]=m;c[n+4>>2]=q;n=e+4|0;q=c[n>>2]|0;do{if((q|0)!=0){p=n;b:while(1){o=q;while(1){if((c[o+16>>2]|0)>=(m|0)){break}o=c[o+4>>2]|0;if((o|0)==0){o=p;break b}}q=c[o>>2]|0;if((q|0)==0){break}else{p=o}}if((o|0)==(n|0)){break}if((m|0)>=(c[o+16>>2]|0)){break a}}}while(0);tn(l,e,k);c[h>>2]=13;k=j+8|0;c[k>>2]=0;c[k+4>>2]=0;Nf(f,c[a+4>>2]|0,j,0)|0;if((c[h>>2]|0)==7){Nv(c[k>>2]|0,b,d,e)|0}else{q=d+8|0;c[q>>2]=0;c[q+4>>2]=0;c[d>>2]=5}Of(j)}else{q=d+8|0;c[q>>2]=0;c[q+4>>2]=0;c[d>>2]=5}}while(0);Of(f);i=g;return d|0}function Ov(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+4|0;if((c[d>>2]|0)<=0){i=b;return}e=0;do{f=c[(c[a>>2]|0)+(e<<2)>>2]|0;fd[c[(c[f>>2]|0)+8>>2]&511](f);e=e+1|0;}while((e|0)<(c[d>>2]|0));i=b;return}function Pv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;d=i;f=i;i=i+8|0;g=f;e=i;i=i+8|0;h=c[a+4>>2]|0;if((h|0)<=0){l=0;i=d;return l|0}j=b;b=c[j>>2]|0;j=c[j+4>>2]|0;k=c[a>>2]|0;l=0;while(1){a=c[k+(l<<2)>>2]|0;m=e;c[m>>2]=b;c[m+4>>2]=j;$W(f|0,e|0,8)|0;a=Av(a,g)|0;l=l+1|0;if((a|0)!=0){e=5;break}if((l|0)<(h|0)){}else{a=0;e=5;break}}if((e|0)==5){i=d;return a|0}return 0}function Qv(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;q=i;x=i;i=i+8|0;y=x;o=i;i=i+8|0;p=o;m=i;i=i+8|0;n=m;k=i;i=i+8|0;l=k;g=i;i=i+8|0;j=g;B=i;i=i+8|0;C=B;w=i;i=i+8|0;A=i;i=i+16|0;v=A;s=i;i=i+16|0;t=s;c[A>>2]=13;z=v+8|0;c[z>>2]=0;c[z+4>>2]=0;u=a+4|0;c[u>>2]=0;c[a>>2]=0;r=a+16|0;c[r>>2]=b;D=c[d>>2]|0;b=(D|0)==6;if((f|0)==0|b^1){i=q;return}if(!b){c[B>>2]=D;c[C+4>>2]=6;Qe(0,148232,C);tc()}B=d+8|0;L=c[(c[B>>2]|0)+12>>2]|0;C=a+8|0;c[C>>2]=L;c[a>>2]=Ce(0,L,4)|0;if((c[C>>2]|0)<=0){i=q;return}b=f+4|0;E=e<<16;D=t+8|0;e=D+4|0;F=0;a:while(1){G=c[d>>2]|0;if((G|0)!=6){d=7;break}if((c[(vt(c[B>>2]|0,F,v)|0)>>2]|0)==9){G=c[A>>2]|0;if((G|0)!=9){d=11;break}K=z;L=c[K>>2]|0;K=c[K+4>>2]|0;H=c[b>>2]|0;b:do{if((H|0)>0){J=c[f>>2]|0;I=0;while(1){G=c[J+(I<<2)>>2]|0;M=w;c[M>>2]=L;c[M+4>>2]=K;$W(x|0,w|0,8)|0;G=Av(G,y)|0;I=I+1|0;if((G|0)!=0){break}if((I|0)>=(H|0)){break b}}c[G+64>>2]=(c[u>>2]|0)+E;H=c[u>>2]|0;c[u>>2]=H+1;c[(c[a>>2]|0)+(H<<2)>>2]=G;c[s>>2]=13;c[D>>2]=0;c[e>>2]=0;H=c[d>>2]|0;if((H|0)!=6){d=17;break a}do{if((c[(ut(c[B>>2]|0,F,t)|0)>>2]|0)==7){I=FW(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 fw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;j=i;i=i+8|0;k=j;g=i;i=i+8|0;h=g;n=i;i=i+8|0;o=n;l=i;i=i+8|0;m=l;if((a[b+13|0]&1)!=0){p=c[d>>2]|0;if((p|0)!=4){c[l>>2]=p;c[m+4>>2]=4;Qe(0,162256,m);tc()}c[n>>2]=c[d+8>>2];Kb(162184,o|0)|0;if((e|0)==2){l=c[r>>2]|0;Qf(d+16|0,l)}else{l=c[r>>2]|0}Hb(10)|0;Fc(l|0)|0}do{if((e|0)==2){if((c[d+16>>2]|0)!=7){break}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)+340>>2]&255](j,c[d+8>>2]|0,c[d+24>>2]|0);i=f;return}}while(0);g=c[b+8>>2]|0;h=c[d>>2]|0;if((h|0)!=4){c[j>>2]=h;c[k+4>>2]=4;Qe(0,162256,k);tc()}hd[c[(c[g>>2]|0)+336>>2]&127](g,c[d+8>>2]|0);i=f;return}function gw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;e=i;y=i;i=i+8|0;z=y;F=i;i=i+8|0;u=i;i=i+8|0;t=u;s=i;i=i+8|0;n=s;q=i;i=i+8|0;r=q;G=i;i=i+8|0;H=G;B=i;i=i+8|0;C=B;K=i;i=i+8|0;J=K;L=i;i=i+8|0;M=L;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;W=i;i=i+8|0;X=W;Y=i;i=i+8|0;N=Y;E=i;i=i+16|0;d=E;D=i;i=i+16|0;h=D;p=i;i=i+16|0;I=p;A=i;i=i+16|0;m=A;j=i;i=i+16|0;f=j;x=i;i=i+8|0;c[E>>2]=13;l=d+8|0;c[l>>2]=0;c[l+4>>2]=0;c[D>>2]=13;v=h+8|0;c[v>>2]=0;c[v+4>>2]=0;c[p>>2]=13;o=I+8|0;c[o>>2]=0;c[o+4>>2]=0;c[A>>2]=13;w=m+8|0;c[w>>2]=0;c[w+4>>2]=0;c[j>>2]=13;g=f+8|0;c[g>>2]=0;c[g+4>>2]=0;Z=c[b>>2]|0;if((Z|0)!=4){c[Y>>2]=Z;c[N+4>>2]=4;Qe(0,162256,N);tc()}b=c[b+8>>2]|0;N=a+20|0;Y=c[N>>2]|0;a:do{if((Y|0)!=0){while(1){if((c[Y+8>>2]|0)==7){if((c[(Yu(c[Y+16>>2]|0,b,d,0)|0)>>2]|0)!=5){break}Of(d)}Y=c[Y+112>>2]|0;if((Y|0)==0){break a}}if((c[E>>2]|0)!=8){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);c[V>>2]=b;Qe(a,161288,U);Of(d);i=e;return}U=c[l>>2]|0;Zu(jd[c[(c[U>>2]|0)+72>>2]&511](U)|0,161320,h)|0;U=c[D>>2]|0;do{if((U|0)==9){S=c[(c[a+4>>2]|0)+160>>2]|0;if((S|0)==0){break}if(GF(S,h)|0){break}Of(h);Of(d);i=e;return}else if((U|0)!=5){V=c[a+120>>2]|0;do{if((V|0)==0){V=-1}else{V=c[V+4>>2]|0;if((c[V+16>>2]|0)!=8){V=-1;break}V=c[V+24>>2]|0;V=jd[c[(c[V>>2]|0)+48>>2]&511](V)|0;U=c[D>>2]|0}}while(0);c[S>>2]=U;Qe(V,161328,T)}}while(0);Of(h);S=c[E>>2]|0;if((S|0)!=8){c[R>>2]=S;c[Q+4>>2]=8;Qe(0,162256,Q);tc()}Z=c[l>>2]|0;Yu(jd[c[(c[Z>>2]|0)+72>>2]&511](Z)|0,161368,f,0)|0;if((c[j>>2]|0)==7){Z=c[a+8>>2]|0;Gd[c[(c[Z>>2]|0)+344>>2]&255](Z,c[a+28>>2]|0,c[g>>2]|0)}Q=c[E>>2]|0;if((Q|0)!=8){c[P>>2]=Q;c[O+4>>2]=8;Qe(0,162256,O);tc()}O=c[l>>2]|0;Yu(jd[c[(c[O>>2]|0)+72>>2]&511](O)|0,161376,h,0)|0;O=(c[D>>2]|0)==4;do{if(O){P=c[v>>2]|0;if((Qc(P|0,161384)|0)==0){Z=c[a+8>>2]|0;if(!(jd[c[(c[Z>>2]|0)+36>>2]&511](Z)|0)){break}Q=c[N>>2]|0;b:do{if((Q|0)==0){k=36}else{while(1){if((c[Q+8>>2]|0)==7){if((c[(Zu(c[Q+16>>2]|0,b,m)|0)>>2]|0)!=5){break b}Of(m)}Q=c[Q+112>>2]|0;if((Q|0)==0){k=36;break}}}}while(0);if((k|0)==36){c[L>>2]=b;Qe(-1,159296,M)}L=c[E>>2]|0;if((L|0)==8){Qx(a,m,c[l>>2]|0,0);Of(m);break}else{c[K>>2]=L;c[J+4>>2]=8;Qe(0,162256,J);tc()}}if((Qc(P|0,161392)|0)!=0){if((Qc(P|0,161400)|0)!=0){k=60;break}m=c[E>>2]|0;if((m|0)!=8){c[G>>2]=m;c[H+4>>2]=8;Qe(0,162256,H);tc()}m=c[l>>2]|0;Yu(jd[c[(c[m>>2]|0)+72>>2]&511](m)|0,161408,I,0)|0;m=c[a+8>>2]|0;n=c[(c[m>>2]|0)+364>>2]|0;s=c[E>>2]|0;if((s|0)!=8){c[q>>2]=s;c[r+4>>2]=8;Qe(0,162256,r);tc()}if((c[p>>2]|0)==8){o=c[o>>2]|0}else{o=0}Gd[n&255](m,c[l>>2]|0,o);break}l=c[N>>2]|0;c:do{if((l|0)==0){k=46}else{while(1){if((c[l+8>>2]|0)==7){if((c[(Zu(c[l+16>>2]|0,b,m)|0)>>2]|0)!=5){break c}Of(m)}l=c[l+112>>2]|0;if((l|0)==0){k=46;break}}}}while(0);if((k|0)==46){c[B>>2]=b;Qe(-1,159296,C)}l=a+8|0;Z=c[l>>2]|0;do{if(jd[c[(c[Z>>2]|0)+28>>2]&511](Z)|0){if((c[A>>2]|0)!=9){k=50;break}Z=c[l>>2]|0;Y=c[(c[Z>>2]|0)+360>>2]|0;V=w;W=c[V+4>>2]|0;X=x;c[X>>2]=c[V>>2];c[X+4>>2]=W;$W(y|0,x|0,8)|0;hd[Y&127](Z,z)}else{k=50}}while(0);if((k|0)==50){Rx(a,d)}Of(m)}else{k=60}}while(0);do{if((k|0)==60){k=c[a+120>>2]|0;do{if((k|0)==0){k=-1}else{k=c[k+4>>2]|0;if((c[k+16>>2]|0)!=8){k=-1;break}k=c[k+24>>2]|0;k=jd[c[(c[k>>2]|0)+48>>2]&511](k)|0}}while(0);if(!O){Qe(k,161448,F);break}l=c[D>>2]|0;if((l|0)==4){c[u>>2]=c[v>>2];Qe(k,161416,t);break}else{c[s>>2]=l;c[n+4>>2]=4;Qe(0,162256,n);tc()}}}while(0);Of(h);if((c[j>>2]|0)==7){Z=c[a+8>>2]|0;Gd[c[(c[Z>>2]|0)+348>>2]&255](Z,c[a+28>>2]|0,c[g>>2]|0)}Of(f);Of(d);i=e;return}}while(0);c[W>>2]=b;Qe(-1,159296,X);i=e;return}function hw(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,162040,b);i=d;return}function iw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;b=i;e=a+116|0;d=c[e>>2]|0;if((d|0)!=0){c[e>>2]=c[d+4>>2];HW(d)}e=c[a+8>>2]|0;hd[c[(c[e>>2]|0)+328>>2]&127](e,c[a+28>>2]|0);i=b;return}function jw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;d=i;f=b+8|0;h=c[f>>2]|0;g=b+28|0;h=Bd[c[(c[h>>2]|0)+304>>2]&255](h,c[g>>2]|0)|0;e=c[f>>2]|0;hd[c[(c[e>>2]|0)+308>>2]&127](e,c[g>>2]|0);a[b+16|0]=0;e=b+15|0;if((a[e]&1)==0){h=e;a[h]=0;i=d;return}if(h){Bx(b,1)}h=c[f>>2]|0;hd[c[(c[h>>2]|0)+84>>2]&127](h,c[g>>2]|0);h=e;a[h]=0;i=d;return}function kw(a,b,d){a=a|0;b=b|0;d=d|0;b=i;d=a+56|0;a=c[d>>2]|0;if((a|0)<=0){i=b;return}c[d>>2]=a+ -1;i=b;return}function lw(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);break}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+216>>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 mw(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;e=i;k=i;i=i+16|0;j=k;d=i;i=i+128|0;f=a+28|0;OB(c[f>>2]|0,0);m=c[f>>2]|0;g=FW(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 Fw(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;e=i;j=i;i=i+8|0;k=j;o=i;i=i+8|0;n=o;f=b+28|0;l=(c[f>>2]|0)+584|0;h=c[l>>2]|0;m=c[d>>2]|0;if((m|0)!=1){c[o>>2]=m;c[n+4>>2]=1;Qe(0,162256,n);tc()}m=d+8|0;c[l>>2]=c[m>>2];d=c[d>>2]|0;if((d|0)!=1){c[j>>2]=d;c[k+4>>2]=1;Qe(0,162256,k);tc()}k=(c[m>>2]&4|0)==0;do{if(k){g=11}else{j=b+15|0;if((a[j]&1)==0){g=11;break}if((a[b+16|0]&1)==0){g=11;break}h=b+8|0;o=c[h>>2]|0;o=Bd[c[(c[o>>2]|0)+304>>2]&255](o,c[f>>2]|0)|0;n=c[h>>2]|0;hd[c[(c[n>>2]|0)+308>>2]&127](n,c[f>>2]|0);if(o){Bx(b,1)}o=c[h>>2]|0;hd[c[(c[o>>2]|0)+84>>2]&127](o,c[f>>2]|0);o=c[h>>2]|0;hd[c[(c[o>>2]|0)+300>>2]&127](o,c[f>>2]|0);o=c[h>>2]|0;hd[c[(c[o>>2]|0)+180>>2]&127](o,c[f>>2]|0);o=c[h>>2]|0;hd[c[(c[o>>2]|0)+204>>2]&127](o,c[f>>2]|0);a[j]=0}}while(0);do{if((g|0)==11){if((h&4|0)==0|k^1){break}g=b+8|0;o=c[g>>2]|0;if(!(Bd[c[(c[o>>2]|0)+40>>2]&255](o,c[f>>2]|0)|0)){break}if((a[b+16|0]&1)==0){break}o=c[g>>2]|0;hd[c[(c[o>>2]|0)+300>>2]&127](o,c[f>>2]|0);a[b+15|0]=1}}while(0);o=c[b+8>>2]|0;hd[c[(c[o>>2]|0)+188>>2]&127](o,c[f>>2]|0);i=e;return}function Gw(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+576>>3]=l;k=c[a+8>>2]|0;hd[c[(c[k>>2]|0)+192>>2]&127](k,c[d>>2]|0);i=e;return}function Hw(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+552>>3]=l;k=c[a+8>>2]|0;hd[c[(c[k>>2]|0)+196>>2]&127](k,c[d>>2]|0);i=e;return}function Iw(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.0;f=i;k=i;i=i+16|0;l=k;e=b+28|0;g=c[e>>2]|0;j=c[d>>2]|0;if((j+ -1|0)>>>0>=2){c[k>>2]=j;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,162328,l);tc()}d=d+8|0;if((j|0)==1){m=+(c[d>>2]|0)}else{m=+h[d>>3]}h[g+560>>3]=m*.01;l=c[b+8>>2]|0;hd[c[(c[l>>2]|0)+200>>2]&127](l,c[e>>2]|0);a[b+48|0]=1;i=f;return}function Jw(a,b,d){a=a|0;b=b|0;d=d|0;c[a+52>>2]=1;i=i;return}function Kw(a,b,d){a=a|0;b=b|0;d=d|0;c[a+52>>2]=2;i=i;return}function Lw(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;g=c[d>>2]|0;j=g+588|0;k=c[j>>2]|0;a:do{if((c[k+28>>2]|0)>0){l=c[b+116>>2]|0;b:do{if((l|0)!=0){if((a[l]&1)!=0){break a}while(1){l=c[l+4>>2]|0;if((l|0)==0){break b}if((a[l]&1)!=0){break a}}}}while(0);xB(k);k=c[j>>2]|0;l=k+28|0;k=k+24|0;j=c[(c[k>>2]|0)+((c[l>>2]|0)+ -1<<2)>>2]|0;h[g+592>>3]=+h[(c[j>>2]|0)+((c[j+12>>2]|0)+ -1<<3)>>3];l=c[(c[k>>2]|0)+((c[l>>2]|0)+ -1<<2)>>2]|0;h[g+600>>3]=+h[(c[l+4>>2]|0)+((c[l+12>>2]|0)+ -1<<3)>>3];l=c[(c[d>>2]|0)+116>>2]|0;if((jd[c[(c[l>>2]|0)+12>>2]&511](l)|0)==10){Bx(b,0)}else{l=c[b+8>>2]|0;hd[c[(c[l>>2]|0)+216>>2]&127](l,c[d>>2]|0)}l=c[(c[d>>2]|0)+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}}else{if((a[k]&1)!=0){break}i=e;return}}while(0);g=c[d>>2]|0;j=c[g+588>>2]|0;do{if((c[j+28>>2]|0)>0){f=16}else{if((a[j]&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);g=c[b+8>>2]|0;b=c[g>>2]|0;if((c[f>>2]|0)==1){hd[c[b+256>>2]&127](g,c[d>>2]|0);b=f;break}else{hd[c[b+260>>2]&127](g,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function Mw(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;g=c[d>>2]|0;j=g+588|0;k=c[j>>2]|0;a:do{if((c[k+28>>2]|0)>0){l=c[b+116>>2]|0;b:do{if((l|0)!=0){if((a[l]&1)!=0){break a}while(1){l=c[l+4>>2]|0;if((l|0)==0){break b}if((a[l]&1)!=0){break a}}}}while(0);xB(k);k=c[j>>2]|0;l=k+28|0;k=k+24|0;j=c[(c[k>>2]|0)+((c[l>>2]|0)+ -1<<2)>>2]|0;h[g+592>>3]=+h[(c[j>>2]|0)+((c[j+12>>2]|0)+ -1<<3)>>3];l=c[(c[k>>2]|0)+((c[l>>2]|0)+ -1<<2)>>2]|0;h[g+600>>3]=+h[(c[l+4>>2]|0)+((c[l+12>>2]|0)+ -1<<3)>>3];l=c[(c[d>>2]|0)+116>>2]|0;if((jd[c[(c[l>>2]|0)+12>>2]&511](l)|0)==10){Bx(b,1)}else{l=c[b+8>>2]|0;hd[c[(c[l>>2]|0)+220>>2]&127](l,c[d>>2]|0)}l=c[(c[d>>2]|0)+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}}else{if((a[k]&1)!=0){break}i=e;return}}while(0);g=c[d>>2]|0;j=c[g+588>>2]|0;do{if((c[j+28>>2]|0)>0){f=16}else{if((a[j]&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);g=c[b+8>>2]|0;b=c[g>>2]|0;if((c[f>>2]|0)==1){hd[c[b+256>>2]&127](g,c[d>>2]|0);b=f;break}else{hd[c[b+260>>2]&127](g,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function Nw(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.0,r=0,s=0,t=0,u=0,v=0.0,w=0,x=0,y=0,z=0.0,A=0.0,B=0.0;e=i;j=i;i=i+16|0;k=j;m=i;i=i+16|0;l=m;p=i;i=i+16|0;o=p;s=i;i=i+16|0;r=s;u=i;i=i+16|0;t=u;y=i;i=i+16|0;x=y;w=i;i=i+8|0;g=c[b+28>>2]|0;f=c[g+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,160776,w);i=e;return}}while(0);w=c[d>>2]|0;if((w+ -1|0)>>>0>=2){c[y>>2]=w;c[x+4>>2]=1;c[x+8>>2]=2;Qe(0,162328,x);tc()}b=d+8|0;if((w|0)==1){n=+(c[b>>2]|0)}else{n=+h[b>>3]}w=c[d+16>>2]|0;if((w+ -1|0)>>>0>=2){c[u>>2]=w;c[t+4>>2]=1;c[t+8>>2]=2;Qe(0,162328,t);tc()}t=d+24|0;if((w|0)==1){q=+(c[t>>2]|0)}else{q=+h[t>>3]}t=c[d+32>>2]|0;if((t+ -1|0)>>>0>=2){c[s>>2]=t;c[r+4>>2]=1;c[r+8>>2]=2;Qe(0,162328,r);tc()}r=d+40|0;if((t|0)==1){v=+(c[r>>2]|0)}else{v=+h[r>>3]}r=c[d+48>>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+56|0;if((r|0)==1){z=+(c[o>>2]|0)}else{z=+h[o>>3]}o=c[d+64>>2]|0;if((o+ -1|0)>>>0>=2){c[m>>2]=o;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,162328,l);tc()}l=d+72|0;if((o|0)==1){A=+(c[l>>2]|0)}else{A=+h[l>>3]}l=c[d+80>>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+88|0;if((l|0)==1){B=+(c[d>>2]|0)}else{B=+h[d>>3]}h[g+592>>3]=A;h[g+600>>3]=B;wB(f,n,q,v,z,A,B);i=e;return}function Ow(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.0,I=0.0,J=0.0,K=0.0,L=0.0,M=0,N=0.0;g=i;f=i;i=i+16|0;e=f;j=i;i=i+16|0;k=j;l=i;i=i+16|0;m=l;o=i;i=i+16|0;n=o;q=i;i=i+16|0;p=q;r=i;i=i+16|0;s=r;F=i;i=i+16|0;D=F;G=i;i=i+16|0;E=G;B=i;i=i+16|0;C=B;A=i;i=i+16|0;y=A;x=i;i=i+16|0;w=x;u=i;i=i+16|0;M=u;t=b+28|0;z=c[t>>2]|0;v=c[d>>2]|0;if((v+ -1|0)>>>0>=2){c[u>>2]=v;c[M+4>>2]=1;c[M+8>>2]=2;Qe(0,162328,M);tc()}u=d+8|0;if((v|0)==1){H=+(c[u>>2]|0)}else{H=+h[u>>3]}v=d+16|0;M=c[v>>2]|0;if((M+ -1|0)>>>0>=2){c[x>>2]=M;c[w+4>>2]=1;c[w+8>>2]=2;Qe(0,162328,w);tc()}x=d+24|0;if((M|0)==1){I=+(c[x>>2]|0)}else{I=+h[x>>3]}w=d+32|0;M=c[w>>2]|0;if((M+ -1|0)>>>0>=2){c[A>>2]=M;c[y+4>>2]=1;c[y+8>>2]=2;Qe(0,162328,y);tc()}y=d+40|0;if((M|0)==1){J=+(c[y>>2]|0)}else{J=+h[y>>3]}A=d+48|0;M=c[A>>2]|0;if((M+ -1|0)>>>0>=2){c[B>>2]=M;c[C+4>>2]=1;c[C+8>>2]=2;Qe(0,162328,C);tc()}B=d+56|0;if((M|0)==1){K=+(c[B>>2]|0)}else{K=+h[B>>3]}C=d+64|0;M=c[C>>2]|0;if((M+ -1|0)>>>0>=2){c[G>>2]=M;c[E+4>>2]=1;c[E+8>>2]=2;Qe(0,162328,E);tc()}G=d+72|0;if((M|0)==1){L=+(c[G>>2]|0)}else{L=+h[G>>3]}E=d+80|0;M=c[E>>2]|0;if((M+ -1|0)>>>0>=2){c[F>>2]=M;c[D+4>>2]=1;c[D+8>>2]=2;Qe(0,162328,D);tc()}D=d+88|0;if((M|0)==1){N=+(c[D>>2]|0)}else{N=+h[D>>3]}JB(z,H,I,J,K,L,N);z=c[b+8>>2]|0;F=c[(c[z>>2]|0)+92>>2]|0;t=c[t>>2]|0;d=c[d>>2]|0;if((d+ -1|0)>>>0>=2){c[r>>2]=d;c[s+4>>2]=1;c[s+8>>2]=2;Qe(0,162328,s);tc()}if((d|0)==1){H=+(c[u>>2]|0)}else{H=+h[u>>3]}r=c[v>>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()}if((r|0)==1){I=+(c[x>>2]|0)}else{I=+h[x>>3]}p=c[w>>2]|0;if((p+ -1|0)>>>0>=2){c[o>>2]=p;c[n+4>>2]=1;c[n+8>>2]=2;Qe(0,162328,n);tc()}if((p|0)==1){J=+(c[y>>2]|0)}else{J=+h[y>>3]}n=c[A>>2]|0;if((n+ -1|0)>>>0>=2){c[l>>2]=n;c[m+4>>2]=1;c[m+8>>2]=2;Qe(0,162328,m);tc()}if((n|0)==1){K=+(c[B>>2]|0)}else{K=+h[B>>3]}l=c[C>>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()}if((l|0)==1){L=+(c[G>>2]|0)}else{L=+h[G>>3]}j=c[E>>2]|0;if((j+ -1|0)>>>0>=2){c[f>>2]=j;c[e+4>>2]=1;c[e+8>>2]=2;Qe(0,162328,e);tc()}if((j|0)==1){N=+(c[D>>2]|0);M=F;Ed[M&3](z,t,H,I,J,K,L,N);M=b+48|0;a[M]=1;i=g;return}else{N=+h[D>>3];M=F;Ed[M&3](z,t,H,I,J,K,L,N);M=b+48|0;a[M]=1;i=g;return}}function Pw(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;e=i;h=i;i=i+8|0;q=i;i=i+8|0;p=q;l=i;i=i+16|0;k=l;g=i;i=i+128|0;f=g;c[l>>2]=13;n=k+8|0;c[n>>2]=0;m=n+4|0;c[m>>2]=0;o=c[b+20>>2]|0;r=c[d>>2]|0;if((r|0)!=4){c[q>>2]=r;c[p+4>>2]=4;Qe(0,162256,p);tc()}p=c[d+8>>2]|0;a:do{if((o|0)==0){j=8}else{while(1){if((c[o+24>>2]|0)==7){if((c[(Yu(c[o+32>>2]|0,p,k,0)|0)>>2]|0)!=5){break}Of(k)}o=c[o+112>>2]|0;if((o|0)==0){j=8;break a}}if((c[l>>2]|0)==5){j=10;break}d=Jy(k,b)|0}}while(0);if((j|0)==8){c[n>>2]=0;c[m>>2]=0;c[l>>2]=5;j=10}if((j|0)==10){d=Jy(d,b)|0}Of(k);if((d|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,160496,h);i=e;return}h=b+15|0;do{if((a[h]&1)!=0){if((a[b+16|0]&1)==0){break}j=b+8|0;r=c[j>>2]|0;k=b+28|0;r=Bd[c[(c[r>>2]|0)+304>>2]&255](r,c[k>>2]|0)|0;q=c[j>>2]|0;hd[c[(c[q>>2]|0)+308>>2]&127](q,c[k>>2]|0);if(r){Bx(b,1)}r=c[j>>2]|0;hd[c[(c[r>>2]|0)+84>>2]&127](r,c[k>>2]|0)}}while(0);j=b+28|0;NB(c[j>>2]|0,0);LB(c[j>>2]|0,d);k=b+8|0;r=c[k>>2]|0;hd[c[(c[r>>2]|0)+132>>2]&127](r,c[j>>2]|0);hd[c[(c[d>>2]|0)+48>>2]&127](d,f);$W((c[j>>2]|0)+124|0,g|0,128)|0;r=c[k>>2]|0;hd[c[(c[r>>2]|0)+140>>2]&127](r,c[j>>2]|0);if((a[h]&1)!=0){r=c[k>>2]|0;hd[c[(c[r>>2]|0)+300>>2]&127](r,c[j>>2]|0);r=c[k>>2]|0;hd[c[(c[r>>2]|0)+188>>2]&127](r,c[j>>2]|0);r=c[k>>2]|0;hd[c[(c[r>>2]|0)+180>>2]&127](r,c[j>>2]|0);r=c[k>>2]|0;hd[c[(c[r>>2]|0)+204>>2]&127](r,c[j>>2]|0);a[h]=(jd[c[(c[d>>2]|0)+12>>2]&511](d)|0)==10|0;i=e;return}if((a[b+16|0]&1)==0){i=e;return}r=c[k>>2]|0;if(!(Bd[c[(c[r>>2]|0)+40>>2]&255](r,c[j>>2]|0)|0)){i=e;return}r=c[k>>2]|0;hd[c[(c[r>>2]|0)+300>>2]&127](r,c[j>>2]|0);a[h]=1;i=e;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,m=0,n=0,o=0,p=0,q=0,r=0,s=0.0;d=i;f=i;i=i+16|0;g=f;l=i;i=i+16|0;k=l;o=i;i=i+8|0;n=o;j=i;i=i+16|0;m=j;c[j>>2]=13;j=m+8|0;c[j>>2]=0;c[j+4>>2]=0;j=c[b>>2]|0;if((j|0)!=6){c[o>>2]=j;c[n+4>>2]=6;Qe(0,162256,n);tc()}n=c[b+8>>2]|0;j=c[n+12>>2]|0;a:do{if((j|0)==0){e=0}else{o=ye(j,8)|0;if((j|0)>0){p=0}else{e=o;break}while(1){r=ut(n,p,m)|0;q=c[r>>2]|0;if((q+ -1|0)>>>0>=2){break}r=r+8|0;if((q|0)==1){s=+(c[r>>2]|0)}else{s=+h[r>>3]}h[o+(p<<3)>>3]=s;Of(m);p=p+1|0;if((p|0)>=(j|0)){e=o;break a}}c[l>>2]=q;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}}while(0);l=a+28|0;k=c[l>>2]|0;m=c[b+16>>2]|0;if((m+ -1|0)>>>0>=2){c[f>>2]=m;c[g+4>>2]=1;c[g+8>>2]=2;Qe(0,162328,g);tc()}b=b+24|0;if((m|0)==1){s=+(c[b>>2]|0);RB(k,e,j,s);q=a+8|0;q=c[q>>2]|0;p=q;p=c[p>>2]|0;p=p+96|0;p=c[p>>2]|0;r=l;r=c[r>>2]|0;hd[p&127](q,r);i=d;return}else{s=+h[b>>3];RB(k,e,j,s);q=a+8|0;q=c[q>>2]|0;p=q;p=c[p>>2]|0;p=p+96|0;p=c[p>>2]|0;r=l;r=c[r>>2]|0;hd[p&127](q,r);i=d;return}}function Rw(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,o=0.0;e=i;g=i;i=i+16|0;j=g;m=i;i=i+16|0;l=m;d=c[a+8>>2]|0;f=c[(c[d>>2]|0)+352>>2]|0;a=c[a+28>>2]|0;k=c[b>>2]|0;if((k+ -1|0)>>>0>=2){c[m>>2]=k;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,162328,l);tc()}l=b+8|0;if((k|0)==1){n=+(c[l>>2]|0)}else{n=+h[l>>3]}k=c[b+16>>2]|0;if((k+ -1|0)>>>0>=2){c[g>>2]=k;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,162328,j);tc()}b=b+24|0;if((k|0)==1){o=+(c[b>>2]|0);m=f;kd[m&1](d,a,n,o);i=e;return}else{o=+h[b>>3];m=f;kd[m&1](d,a,n,o);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.0,n=0,o=0,p=0.0,q=0,r=0,s=0,t=0,u=0.0,v=0,w=0,x=0,y=0.0,z=0.0,A=0.0;e=i;j=i;i=i+16|0;g=j;k=i;i=i+16|0;l=k;n=i;i=i+16|0;o=n;r=i;i=i+16|0;q=r;t=i;i=i+16|0;s=t;x=i;i=i+16|0;w=x;f=c[a+8>>2]|0;d=c[(c[f>>2]|0)+356>>2]|0;a=c[a+28>>2]|0;v=c[b>>2]|0;if((v+ -1|0)>>>0>=2){c[x>>2]=v;c[w+4>>2]=1;c[w+8>>2]=2;Qe(0,162328,w);tc()}w=b+8|0;if((v|0)==1){m=+(c[w>>2]|0)}else{m=+h[w>>3]}v=c[b+16>>2]|0;if((v+ -1|0)>>>0>=2){c[t>>2]=v;c[s+4>>2]=1;c[s+8>>2]=2;Qe(0,162328,s);tc()}s=b+24|0;if((v|0)==1){p=+(c[s>>2]|0)}else{p=+h[s>>3]}s=c[b+32>>2]|0;if((s+ -1|0)>>>0>=2){c[r>>2]=s;c[q+4>>2]=1;c[q+8>>2]=2;Qe(0,162328,q);tc()}q=b+40|0;if((s|0)==1){u=+(c[q>>2]|0)}else{u=+h[q>>3]}q=c[b+48>>2]|0;if((q+ -1|0)>>>0>=2){c[n>>2]=q;c[o+4>>2]=1;c[o+8>>2]=2;Qe(0,162328,o);tc()}n=b+56|0;if((q|0)==1){y=+(c[n>>2]|0)}else{y=+h[n>>3]}n=c[b+64>>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=b+72|0;if((n|0)==1){z=+(c[k>>2]|0)}else{z=+h[k>>3]}k=c[b+80>>2]|0;if((k+ -1|0)>>>0>=2){c[j>>2]=k;c[g+4>>2]=1;c[g+8>>2]=2;Qe(0,162328,g);tc()}b=b+88|0;if((k|0)==1){A=+(c[b>>2]|0);x=d;Ed[x&3](f,a,m,p,u,y,z,A);i=e;return}else{A=+h[b>>3];x=d;Ed[x&3](f,a,m,p,u,y,z,A);i=e;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+116>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Bx(b,1);break}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+220>>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(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;e=i;k=i;i=i+16|0;j=k;g=i;i=i+128|0;f=b+15|0;do{if((a[f]&1)!=0){if((a[b+16|0]&1)==0){break}l=b+8|0;o=c[l>>2]|0;m=b+28|0;o=Bd[c[(c[o>>2]|0)+304>>2]&255](o,c[m>>2]|0)|0;p=c[l>>2]|0;hd[c[(c[p>>2]|0)+308>>2]&127](p,c[m>>2]|0);if(o){Bx(b,1)}p=c[l>>2]|0;hd[c[(c[p>>2]|0)+84>>2]&127](p,c[m>>2]|0)}}while(0);l=b+28|0;NB(c[l>>2]|0,0);p=c[l>>2]|0;m=FW(4)|0;Ty(m);LB(p,m);b=b+8|0;m=c[b>>2]|0;hd[c[(c[m>>2]|0)+132>>2]&127](m,c[l>>2]|0);m=c[d>>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+8|0;if((m|0)==1){n=+(c[d>>2]|0)}else{n=+h[d>>3]}p=c[l>>2]|0;c[p+124>>2]=~~(n*65536.0);$W(p+128|0,g|0,124)|0;p=c[b>>2]|0;hd[c[(c[p>>2]|0)+140>>2]&127](p,c[l>>2]|0);if((a[f]&1)==0){i=e;return}p=c[b>>2]|0;hd[c[(c[p>>2]|0)+300>>2]&127](p,c[l>>2]|0);p=c[b>>2]|0;hd[c[(c[p>>2]|0)+188>>2]&127](p,c[l>>2]|0);p=c[b>>2]|0;hd[c[(c[p>>2]|0)+180>>2]&127](p,c[l>>2]|0);p=c[b>>2]|0;hd[c[(c[p>>2]|0)+204>>2]&127](p,c[l>>2]|0);a[f]=0;i=e;return}function Vw(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,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,Ib=0,Jb=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.0;f=i;aa=i;i=i+8|0;ba=aa;l=i;i=i+16|0;k=l;o=i;i=i+8|0;n=o;s=i;i=i+8|0;q=s;u=i;i=i+8|0;w=i;i=i+8|0;v=w;A=i;i=i+8|0;z=A;C=i;i=i+8|0;B=C;E=i;i=i+16|0;D=E;F=i;i=i+8|0;G=F;I=i;i=i+8|0;H=I;J=i;i=i+8|0;K=J;M=i;i=i+8|0;L=M;N=i;i=i+8|0;O=N;P=i;i=i+16|0;Q=P;S=i;i=i+8|0;R=S;ja=i;i=i+8|0;W=i;i=i+16|0;X=W;ca=i;i=i+8|0;_=ca;ea=i;i=i+8|0;da=ea;ha=i;i=i+8|0;ia=ha;la=i;i=i+8|0;ka=la;na=i;i=i+8|0;ma=na;Ya=i;i=i+8|0;Ja=i;i=i+8|0;Ga=i;i=i+8|0;wa=i;i=i+8|0;sa=wa;Ba=i;i=i+8|0;Ca=Ba;Ea=i;i=i+8|0;Fa=Ea;Ia=i;i=i+8|0;Ha=Ia;La=i;i=i+8|0;Ka=La;Na=i;i=i+8|0;Ma=Na;Qa=i;i=i+8|0;Ra=Qa;Sa=i;i=i+8|0;Ta=Sa;Va=i;i=i+8|0;Ua=Va;Wa=i;i=i+8|0;Xa=i;i=i+8|0;Za=Xa;$a=i;i=i+8|0;_a=$a;bb=i;i=i+8|0;ab=bb;db=i;i=i+8|0;cb=db;fb=i;i=i+8|0;eb=fb;hb=i;i=i+8|0;gb=hb;mb=i;i=i+8|0;lb=i;i=i+8|0;kb=lb;ob=i;i=i+8|0;pb=ob;rb=i;i=i+8|0;qb=rb;sb=i;i=i+8|0;tb=sb;vb=i;i=i+8|0;ub=vb;xb=i;i=i+8|0;wb=xb;yb=i;i=i+8|0;zb=yb;Bb=i;i=i+8|0;Ab=Bb;Db=i;i=i+8|0;Cb=Db;Eb=i;i=i+8|0;Fb=Eb;Ib=i;i=i+16|0;Gb=Ib;Lb=i;i=i+8|0;Jb=Lb;Nb=i;i=i+16|0;Mb=Nb;Ob=i;i=i+8|0;Pb=Ob;Qb=i;i=i+8|0;Yb=i;i=i+8|0;Xb=Yb;Zb=i;i=i+8|0;Ub=i;i=i+8|0;Tb=Ub;Sb=i;i=i+8|0;Rb=Sb;$b=i;i=i+8|0;_b=$b;t=i;i=i+16|0;e=t;m=i;i=i+16|0;g=m;Pa=i;i=i+16|0;oa=Pa;Da=i;i=i+16|0;pa=Da;za=i;i=i+16|0;ua=za;Wb=i;i=i+8|0;Vb=Wb;xa=i;i=i+16|0;nb=xa;ta=i;i=i+128|0;ya=ta;fa=i;i=i+16|0;V=fa;Y=i;i=i+16|0;T=Y;ga=i;i=i+16|0;U=ga;$=i;i=i+8|0;y=i;i=i+32|0;x=y;c[t>>2]=13;p=e+8|0;c[p>>2]=0;c[p+4>>2]=0;c[m>>2]=13;j=g+8|0;c[j>>2]=0;c[j+4>>2]=0;c[Pa>>2]=13;Oa=oa+8|0;c[Oa>>2]=0;c[Oa+4>>2]=0;c[Da>>2]=13;Aa=pa+8|0;c[Aa>>2]=0;c[Aa+4>>2]=0;c[za>>2]=13;va=ua+8|0;c[va>>2]=0;c[va+4>>2]=0;Z=c[d>>2]|0;if((Z|0)!=4){c[$b>>2]=Z;c[_b+4>>2]=4;Qe(0,162256,_b);tc()}Z=d+8|0;if(!(qx(c[b+20>>2]|0,c[Z>>2]|0,e)|0)){i=f;return}if((c[t>>2]|0)!=7){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);g=c[d>>2]|0;if((g|0)!=4){c[Sb>>2]=g;c[Rb+4>>2]=4;Qe(0,162256,Rb);tc()}c[Ub>>2]=c[Z>>2];Qe(b,159760,Tb);Of(e);i=f;return}do{if((a[b+13|0]&1)!=0){Kb(159792,Zb|0)|0;Qf(e,c[r>>2]|0);Hb(10)|0;Rb=c[t>>2]|0;if((Rb|0)==7){break}c[Yb>>2]=Rb;c[Xb+4>>2]=7;Qe(0,162256,Xb);tc()}}while(0);do{if((c[(Yu(c[p>>2]|0,159816,g,0)|0)>>2]|0)!=5){Rb=b+28|0;if(ZB(c[Rb>>2]|0,g,Vb)|0){c[(c[Rb>>2]|0)+388>>2]=c[Wb>>2];$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+148>>2]&127]($b,c[Rb>>2]|0);break}Rb=c[b+120>>2]|0;do{if((Rb|0)==0){Rb=-1}else{Rb=c[Rb+4>>2]|0;if((c[Rb+16>>2]|0)!=8){Rb=-1;break}Rb=c[Rb+24>>2]|0;Rb=jd[c[(c[Rb>>2]|0)+48>>2]&511](Rb)|0}}while(0);Qe(Rb,159824,Qb)}}while(0);Of(g);Qb=c[t>>2]|0;if((Qb|0)!=7){c[Ob>>2]=Qb;c[Pb+4>>2]=7;Qe(0,162256,Pb);tc()}if(((c[(Yu(c[p>>2]|0,159856,g,0)|0)>>2]|0)+ -1|0)>>>0<2){Pb=b+28|0;Ob=c[Pb>>2]|0;Qb=c[m>>2]|0;if((Qb+ -1|0)>>>0>=2){c[Nb>>2]=Qb;c[Mb+4>>2]=1;c[Mb+8>>2]=2;Qe(0,162328,Mb);tc()}if((Qb|0)==1){ac=+(c[j>>2]|0)}else{ac=+h[j>>3]}h[Ob+392>>3]=ac;$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+152>>2]&127]($b,c[Pb>>2]|0)}Of(g);Mb=c[t>>2]|0;if((Mb|0)!=7){c[Lb>>2]=Mb;c[Jb+4>>2]=7;Qe(0,162256,Jb);tc()}if(((c[(Yu(c[p>>2]|0,159864,g,0)|0)>>2]|0)+ -1|0)>>>0<2){Jb=b+28|0;Lb=c[Jb>>2]|0;Mb=c[m>>2]|0;if((Mb+ -1|0)>>>0>=2){c[Ib>>2]=Mb;c[Gb+4>>2]=1;c[Gb+8>>2]=2;Qe(0,162328,Gb);tc()}if((Mb|0)==1){ac=+(c[j>>2]|0)}else{ac=+h[j>>3]}h[Lb+400>>3]=ac;$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+156>>2]&127]($b,c[Jb>>2]|0)}Of(g);Gb=c[t>>2]|0;if((Gb|0)!=7){c[Eb>>2]=Gb;c[Fb+4>>2]=7;Qe(0,162256,Fb);tc()}Eb=(c[(Yu(c[p>>2]|0,159872,g,0)|0)>>2]|0)==0;do{if(Eb){Gb=b+28|0;Fb=c[m>>2]|0;if((Fb|0)==0){a[(c[Gb>>2]|0)+408|0]=a[j]&1;$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+160>>2]&127]($b,c[Gb>>2]|0);break}else{c[Db>>2]=Fb;c[Cb+4>>2]=0;Qe(0,162256,Cb);tc()}}}while(0);Of(g);Cb=c[t>>2]|0;if((Cb|0)!=7){c[Bb>>2]=Cb;c[Ab+4>>2]=7;Qe(0,162256,Ab);tc()}do{if((c[(Yu(c[p>>2]|0,159880,g,0)|0)>>2]|0)==0){Ab=b+28|0;Bb=c[m>>2]|0;if((Bb|0)!=0){c[yb>>2]=Bb;c[zb+4>>2]=0;Qe(0,162256,zb);tc()}a[(c[Ab>>2]|0)+409|0]=a[j]&1;yb=b+8|0;$b=c[yb>>2]|0;hd[c[(c[$b>>2]|0)+164>>2]&127]($b,c[Ab>>2]|0);if(Eb){break}zb=c[m>>2]|0;if((zb|0)==0){a[(c[Ab>>2]|0)+408|0]=a[j]&1;$b=c[yb>>2]|0;hd[c[(c[$b>>2]|0)+160>>2]&127]($b,c[Ab>>2]|0);break}else{c[xb>>2]=zb;c[wb+4>>2]=0;Qe(0,162256,wb);tc()}}}while(0);Of(g);wb=c[t>>2]|0;if((wb|0)!=7){c[vb>>2]=wb;c[ub+4>>2]=7;Qe(0,162256,ub);tc()}do{if((c[(Yu(c[p>>2]|0,159888,g,0)|0)>>2]|0)==0){ub=b+28|0;vb=c[m>>2]|0;if((vb|0)==0){a[(c[ub>>2]|0)+480|0]=a[j]&1;$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+120>>2]&127]($b,c[ub>>2]|0);break}else{c[sb>>2]=vb;c[tb+4>>2]=0;Qe(0,162256,tb);tc()}}}while(0);Of(g);sb=c[t>>2]|0;if((sb|0)!=7){c[rb>>2]=sb;c[qb+4>>2]=7;Qe(0,162256,qb);tc()}do{if((c[(Yu(c[p>>2]|0,159896,g,0)|0)>>2]|0)==5){Of(g);qb=c[t>>2]|0;if((qb|0)==7){Yu(c[p>>2]|0,159904,g,0)|0;break}else{c[ob>>2]=qb;c[pb+4>>2]=7;Qe(0,162256,pb);tc()}}}while(0);pb=c[m>>2]|0;a:do{switch(pb|0){case 6:{jb=71;break};case 5:{break};case 4:{ob=c[j>>2]|0;do{if((Qc(ob|0,159912)|0)!=0){if((Qc(ob|0,159920)|0)==0){break}switch(pb|0){case 6:{jb=71;break a};case 5:{break a};case 8:case 7:case 4:{jb=79;break a};default:{jb=81;break a}}}}while(0);$b=b+28|0;bX(xa|0,0,16)|0;QB(c[$b>>2]|0,nb);_b=c[b+8>>2]|0;hd[c[(c[_b>>2]|0)+168>>2]&127](_b,c[$b>>2]|0);break};case 8:case 7:{jb=79;break};default:{jb=81}}}while(0);do{if((jb|0)==71){if((c[(c[j>>2]|0)+12>>2]|0)==4){mb=6;ob=0}else{jb=81;break}while(1){if((mb|0)!=6){jb=75;break}ut(c[j>>2]|0,ob,oa)|0;$b=nb+(ob<<2)|0;c[$b>>2]=EH(oa)|0;Of(oa);pb=ob+1|0;if((c[$b>>2]|0)==0){ib=ob;break}if((pb|0)>=4){ib=pb;break}mb=c[m>>2]|0;ob=pb}if((jb|0)==75){c[lb>>2]=mb;c[kb+4>>2]=6;Qe(0,162256,kb);tc()}if((ib|0)!=4){break}$b=b+28|0;QB(c[$b>>2]|0,nb);_b=c[b+8>>2]|0;hd[c[(c[_b>>2]|0)+168>>2]&127](_b,c[$b>>2]|0)}else if((jb|0)==79){$b=EH(g)|0;c[xa>>2]=$b;if(($b|0)==0){break}c[nb+12>>2]=0;c[nb+8>>2]=0;c[nb+4>>2]=0;$b=b+28|0;QB(c[$b>>2]|0,nb);_b=c[b+8>>2]|0;hd[c[(c[_b>>2]|0)+168>>2]&127](_b,c[$b>>2]|0)}}while(0);if((jb|0)==81){ib=c[b+120>>2]|0;do{if((ib|0)==0){ib=-1}else{ib=c[ib+4>>2]|0;if((c[ib+16>>2]|0)!=8){ib=-1;break}ib=c[ib+24>>2]|0;ib=jd[c[(c[ib>>2]|0)+48>>2]&511](ib)|0}}while(0);Qe(ib,159936,mb)}Of(g);ib=c[t>>2]|0;if((ib|0)!=7){c[hb>>2]=ib;c[gb+4>>2]=7;Qe(0,162256,gb);tc()}do{if((c[(Yu(c[p>>2]|0,159976,g,0)|0)>>2]|0)==0){gb=b+28|0;hb=c[m>>2]|0;if((hb|0)==0){a[(c[gb>>2]|0)+481|0]=a[j]&1;$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+124>>2]&127]($b,c[gb>>2]|0);break}else{c[fb>>2]=hb;c[eb+4>>2]=0;Qe(0,162256,eb);tc()}}}while(0);Of(g);eb=c[t>>2]|0;if((eb|0)!=7){c[db>>2]=eb;c[cb+4>>2]=7;Qe(0,162256,cb);tc()}do{if((c[(Yu(c[p>>2]|0,159984,g,0)|0)>>2]|0)==0){db=b+28|0;cb=c[m>>2]|0;if((cb|0)==0){a[(c[db>>2]|0)+482|0]=a[j]&1;$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+128>>2]&127]($b,c[db>>2]|0);break}else{c[bb>>2]=cb;c[ab+4>>2]=0;Qe(0,162256,ab);tc()}}}while(0);Of(g);ab=c[t>>2]|0;if((ab|0)!=7){c[$a>>2]=ab;c[_a+4>>2]=7;Qe(0,162256,_a);tc()}b:do{if((c[(Yu(c[p>>2]|0,159992,g,0)|0)>>2]|0)!=5){_a=c[m>>2]|0;do{if((_a|0)==5){break b}else if((_a|0)==4){if((Qc(c[j>>2]|0,16e4)|0)!=0){break}$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+396>>2]&127]($b,c[b+28>>2]|0);break b}else if((_a|0)==7){Ya=Yu(c[j>>2]|0,160008,oa,0)|0;if((c[Ya>>2]|0)==4){Ya=(Qc(c[Ya+8>>2]|0,160016)|0)==0}else{Ya=0}Of(oa);c[xa>>2]=0;_a=c[m>>2]|0;if((_a|0)!=7){c[Xa>>2]=_a;c[Za+4>>2]=7;Qe(0,162256,Za);tc()}do{if((c[(Yu(c[j>>2]|0,159904,oa,0)|0)>>2]|0)!=5){Xa=EH(oa)|0;c[xa>>2]=Xa;if((c[Xa+4>>2]|0)==1){if((c[Xa+8>>2]|0)==1){break}}Xa=c[b+120>>2]|0;do{if((Xa|0)==0){Xa=-1}else{Xa=c[Xa+4>>2]|0;if((c[Xa+16>>2]|0)!=8){Xa=-1;break}Xa=c[Xa+24>>2]|0;Xa=jd[c[(c[Xa>>2]|0)+48>>2]&511](Xa)|0}}while(0);Qe(Xa,160024,Wa);Wa=c[xa>>2]|0;if((Wa|0)!=0){fd[c[(c[Wa>>2]|0)+4>>2]&511](Wa)}c[xa>>2]=0}}while(0);Of(oa);Wa=c[m>>2]|0;if((Wa|0)!=7){c[Va>>2]=Wa;c[Ua+4>>2]=7;Qe(0,162256,Ua);tc()}Ua=(c[(Yu(c[j>>2]|0,160080,oa,0)|0)>>2]|0)==6;c:do{if(Ua){bX(ta|0,0,128)|0;Va=c[Pa>>2]|0;if((Va|0)!=6){_b=Va;$b=Sa;c[$b>>2]=_b;$b=Ta+4|0;c[$b>>2]=6;$b=162256;Qe(0,$b,Ta);tc()}Va=0;while(1){Wa=c[Oa>>2]|0;if(!((Va|0)<(c[Wa+12>>2]|0)&(Va|0)<32)){break c}ut(Wa,Va,pa)|0;Wa=c[Da>>2]|0;if((Wa+ -1|0)>>>0<2){if((Wa|0)==1){ac=+(c[Aa>>2]|0)}else{ac=+h[Aa>>3]}c[ya+(Va<<2)>>2]=~~(ac*65536.0)}Of(pa);Wa=c[Pa>>2]|0;if((Wa|0)==6){Va=Va+1|0}else{break}}$b=Sa;c[$b>>2]=Wa;$b=Ta+4|0;c[$b>>2]=6;$b=162256;Qe(0,$b,Ta);tc()}}while(0);Of(oa);Sa=c[m>>2]|0;if((Sa|0)!=7){c[Qa>>2]=Sa;c[Ra+4>>2]=7;Qe(0,162256,Ra);tc()}if((c[(Yu(c[j>>2]|0,160088,oa,0)|0)>>2]|0)==8){Ja=c[Pa>>2]|0;if((Ja|0)!=8){c[Na>>2]=Ja;c[Ma+4>>2]=8;Qe(0,162256,Ma);tc()}$b=c[Oa>>2]|0;do{if((c[(Yu(jd[c[(c[$b>>2]|0)+72>>2]&511]($b)|0,160096,pa,0)|0)>>2]|0)==7){Ga=c[Da>>2]|0;if((Ga|0)!=7){c[La>>2]=Ga;c[Ka+4>>2]=7;Qe(0,162256,Ka);tc()}if((c[(Yu(c[Aa>>2]|0,160104,ua,0)|0)>>2]|0)==5){Ga=0}else{Ga=Jy(ua,b)|0}Of(ua);Ja=c[Da>>2]|0;if((Ja|0)!=7){c[Ia>>2]=Ja;c[Ha+4>>2]=7;Qe(0,162256,Ha);tc()}do{if((c[(Yu(c[Aa>>2]|0,160112,ua,0)|0)>>2]|0)==0){Ha=c[za>>2]|0;if((Ha|0)==0){ra=(a[va]&1)!=0;break}else{c[Ea>>2]=Ha;c[Fa+4>>2]=0;Qe(0,162256,Fa);tc()}}else{ra=0}}while(0);Of(ua);Da=c[Da>>2]|0;if((Da|0)!=7){c[Ba>>2]=Da;c[Ca+4>>2]=7;Qe(0,162256,Ca);tc()}do{if((c[(Yu(c[Aa>>2]|0,160120,ua,0)|0)>>2]|0)==0){za=c[za>>2]|0;if((za|0)==0){qa=(a[va]&1)!=0;break}else{c[wa>>2]=za;c[sa+4>>2]=0;Qe(0,162256,sa);tc()}}else{qa=0}}while(0);Of(ua);do{if(!Ua){if((Ga|0)==0){bX(ta|0,0,128)|0;break}else{hd[c[(c[Ga>>2]|0)+48>>2]&127](Ga,ya);break}}}while(0);zx(b,oa,Ya,Ga,ra,qa,c[xa>>2]|0,ya);qa=c[xa>>2]|0;if((qa|0)==0){break}fd[c[(c[qa>>2]|0)+4>>2]&511](qa)}else{qa=c[b+120>>2]|0;do{if((qa|0)==0){qa=-1}else{qa=c[qa+4>>2]|0;if((c[qa+16>>2]|0)!=8){qa=-1;break}qa=c[qa+24>>2]|0;qa=jd[c[(c[qa>>2]|0)+48>>2]&511](qa)|0}}while(0);Qe(qa,160128,Ga)}}while(0);Of(pa)}else{pa=c[b+120>>2]|0;do{if((pa|0)==0){pa=-1}else{pa=c[pa+4>>2]|0;if((c[pa+16>>2]|0)!=8){pa=-1;break}pa=c[pa+24>>2]|0;pa=jd[c[(c[pa>>2]|0)+48>>2]&511](pa)|0}}while(0);Qe(pa,160128,Ja)}Of(oa);break b}}while(0);oa=c[b+120>>2]|0;do{if((oa|0)==0){oa=-1}else{oa=c[oa+4>>2]|0;if((c[oa+16>>2]|0)!=8){oa=-1;break}oa=c[oa+24>>2]|0;oa=jd[c[(c[oa>>2]|0)+48>>2]&511](oa)|0}}while(0);Qe(oa,160176,Ya)}}while(0);Of(g);oa=c[t>>2]|0;if((oa|0)!=7){c[na>>2]=oa;c[ma+4>>2]=7;Qe(0,162256,ma);tc()}do{if((c[(Yu(c[p>>2]|0,159192,g,0)|0)>>2]|0)==6){ma=c[m>>2]|0;if((ma|0)!=6){c[la>>2]=ma;c[ka+4>>2]=6;Qe(0,162256,ka);tc()}la=c[j>>2]|0;if((c[la+12>>2]|0)!=2){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);Qe(T,160208,ja);break}c[fa>>2]=13;ka=V+8|0;c[ka>>2]=0;c[ka+4>>2]=0;c[Y>>2]=13;ja=T+8|0;c[ja>>2]=0;c[ja+4>>2]=0;vt(la,0,V)|0;la=c[m>>2]|0;if((la|0)!=6){c[ha>>2]=la;c[ia+4>>2]=6;Qe(0,162256,ia);tc()}ut(c[j>>2]|0,1,T)|0;do{if((c[fa>>2]|0)==9){if(((c[Y>>2]|0)+ -1|0)>>>0>=2){break}c[ga>>2]=13;ha=U+8|0;c[ha>>2]=0;c[ha+4>>2]=0;Nf(V,c[b>>2]|0,U,0)|0;if((c[ga>>2]|0)==7){fa=c[fa>>2]|0;if((fa|0)!=9){c[ea>>2]=fa;c[da+4>>2]=9;Qe(0,162256,da);tc()}d=c[d>>2]|0;if((d|0)!=4){c[ca>>2]=d;c[_+4>>2]=4;Qe(0,162256,_);tc()}$b=c[b>>2]|0;Zb=ka;_b=c[Zb+4>>2]|0;d=c[Z>>2]|0;Z=$;c[Z>>2]=c[Zb>>2];c[Z+4>>2]=_b;Z=c[ha>>2]|0;$W(aa|0,$|0,8)|0;Z=Ux($b,d,ba,Z)|0;d=c[b+28>>2]|0;Y=c[Y>>2]|0;if((Y+ -1|0)>>>0>=2){c[W>>2]=Y;c[X+4>>2]=1;c[X+8>>2]=2;Qe(0,162328,X);tc()}if((Y|0)==1){ac=+(c[ja>>2]|0)}else{ac=+h[ja>>3]}PB(d,Z,ac);a[b+48|0]=1}Of(U)}}while(0);Of(V);Of(T)}}while(0);Of(g);T=c[t>>2]|0;if((T|0)!=7){c[S>>2]=T;c[R+4>>2]=7;Qe(0,162256,R);tc()}if(((c[(Yu(c[p>>2]|0,160256,g,0)|0)>>2]|0)+ -1|0)>>>0<2){R=b+28|0;S=c[R>>2]|0;T=c[m>>2]|0;if((T+ -1|0)>>>0>=2){c[P>>2]=T;c[Q+4>>2]=1;c[Q+8>>2]=2;Qe(0,162328,Q);tc()}if((T|0)==1){ac=+(c[j>>2]|0)}else{ac=+h[j>>3]}h[S+432>>3]=ac;$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+116>>2]&127]($b,c[R>>2]|0)}Of(g);P=c[t>>2]|0;if((P|0)!=7){c[N>>2]=P;c[O+4>>2]=7;Qe(0,162256,O);tc()}do{if((c[(Yu(c[p>>2]|0,160264,g,0)|0)>>2]|0)==1){O=b+28|0;N=c[m>>2]|0;if((N|0)==1){c[(c[O>>2]|0)+464>>2]=c[j>>2];$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+108>>2]&127]($b,c[O>>2]|0);break}else{c[M>>2]=N;c[L+4>>2]=1;Qe(0,162256,L);tc()}}}while(0);Of(g);L=c[t>>2]|0;if((L|0)!=7){c[J>>2]=L;c[K+4>>2]=7;Qe(0,162256,K);tc()}do{if((c[(Yu(c[p>>2]|0,160272,g,0)|0)>>2]|0)==1){J=b+28|0;K=c[m>>2]|0;if((K|0)==1){c[(c[J>>2]|0)+460>>2]=c[j>>2];$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+104>>2]&127]($b,c[J>>2]|0);break}else{c[I>>2]=K;c[H+4>>2]=1;Qe(0,162256,H);tc()}}}while(0);Of(g);H=c[t>>2]|0;if((H|0)!=7){c[F>>2]=H;c[G+4>>2]=7;Qe(0,162256,G);tc()}if(((c[(Yu(c[p>>2]|0,160280,g,0)|0)>>2]|0)+ -1|0)>>>0<2){G=b+28|0;F=c[G>>2]|0;H=c[m>>2]|0;if((H+ -1|0)>>>0>=2){c[E>>2]=H;c[D+4>>2]=1;c[D+8>>2]=2;Qe(0,162328,D);tc()}if((H|0)==1){ac=+(c[j>>2]|0)}else{ac=+h[j>>3]}h[F+472>>3]=ac;$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+112>>2]&127]($b,c[G>>2]|0)}Of(g);D=c[t>>2]|0;if((D|0)!=7){c[C>>2]=D;c[B+4>>2]=7;Qe(0,162256,B);tc()}do{if((c[(Yu(c[p>>2]|0,160288,g,0)|0)>>2]|0)==6){B=c[m>>2]|0;if((B|0)!=6){c[A>>2]=B;c[z+4>>2]=6;Qe(0,162256,z);tc()}z=c[j>>2]|0;if((c[z+12>>2]|0)!=2){v=c[b+120>>2]|0;do{if((v|0)==0){v=-1}else{v=c[v+4>>2]|0;if((c[v+16>>2]|0)!=8){v=-1;break}v=c[v+24>>2]|0;v=jd[c[(c[v>>2]|0)+48>>2]&511](v)|0}}while(0);Qe(v,160296,u);break}c[y>>2]=13;u=x+8|0;c[u>>2]=0;c[u+4>>2]=0;c[x+16>>2]=13;u=x+24|0;c[u>>2]=0;c[u+4>>2]=0;vt(z,0,x)|0;u=x+16|0;z=c[m>>2]|0;if((z|0)!=6){c[w>>2]=z;c[v+4>>2]=6;Qe(0,162256,v);tc()}ut(c[j>>2]|0,1,u)|0;do{if((c[y>>2]|0)==6){if((c[u>>2]|0)!=1){break}Qw(b,x,0)}}while(0);Of(x);Of(u)}}while(0);Of(g);u=c[t>>2]|0;if((u|0)!=7){c[s>>2]=u;c[q+4>>2]=7;Qe(0,162256,q);tc()}Yu(c[p>>2]|0,160344,g,0)|0;Of(g);q=c[t>>2]|0;if((q|0)!=7){c[o>>2]=q;c[n+4>>2]=7;Qe(0,162256,n);tc()}if(((c[(Yu(c[p>>2]|0,160352,g,0)|0)>>2]|0)+ -1|0)>>>0<2){o=b+28|0;n=c[o>>2]|0;m=c[m>>2]|0;if((m+ -1|0)>>>0>=2){c[l>>2]=m;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}if((m|0)==1){ac=+(c[j>>2]|0)}else{ac=+h[j>>3]}c[n+456>>2]=~~ac;$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+100>>2]&127]($b,c[o>>2]|0)}Of(g);Of(e);i=f;return}function Ww(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0;e=i;d=i;i=i+8|0;f=c[b+28>>2]|0;g=f+588|0;j=c[g>>2]|0;do{if((c[j+28>>2]|0)<=0){if((a[j]&1)!=0){break}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,160872,d);i=e;return}}while(0);xB(j);g=c[g>>2]|0;j=g+28|0;g=g+24|0;b=c[(c[g>>2]|0)+((c[j>>2]|0)+ -1<<2)>>2]|0;h[f+592>>3]=+h[(c[b>>2]|0)+((c[b+12>>2]|0)+ -1<<3)>>3];j=c[(c[g>>2]|0)+((c[j>>2]|0)+ -1<<2)>>2]|0;h[f+600>>3]=+h[(c[j+4>>2]|0)+((c[j+12>>2]|0)+ -1<<3)>>3];i=e;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,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]}c[f+456>>2]=~~l;k=c[a+8>>2]|0;hd[c[(c[k>>2]|0)+100>>2]&127](k,c[d>>2]|0);i=e;return}function Yw(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)+460>>2]=c[b+8>>2];h=c[a+8>>2]|0;hd[c[(c[h>>2]|0)+104>>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 Zw(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.0;m=i;e=i;i=i+16|0;g=e;k=i;i=i+128|0;j=k;l=b+15|0;do{if((a[l]&1)!=0){if((a[b+16|0]&1)==0){break}o=b+8|0;q=c[o>>2]|0;n=b+28|0;q=Bd[c[(c[q>>2]|0)+304>>2]&255](q,c[n>>2]|0)|0;p=c[o>>2]|0;hd[c[(c[p>>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=FW(4)|0;vz(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)<4);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 _w(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;j=i;i=i+16|0;k=j;n=i;i=i+16|0;m=n;l=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,160744,l);i=e;return}}while(0);l=c[d>>2]|0;if((l+ -1|0)>>>0>=2){c[n>>2]=l;c[m+4>>2]=1;c[m+8>>2]=2;Qe(0,162328,m);tc()}m=d+8|0;if((l|0)==1){o=+(c[m>>2]|0)}else{o=+h[m>>3]}l=c[d+16>>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+24|0;if((l|0)==1){p=+(c[d>>2]|0)}else{p=+h[d>>3]}h[f+592>>3]=o;h[f+600>>3]=p;vB(g,o,p);i=e;return}function $w(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;d=i;e=i;i=i+16|0;f=e;k=i;i=i+16|0;j=k;a=c[a+28>>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()}j=b+8|0;if((g|0)==1){l=+(c[j>>2]|0)}else{l=+h[j>>3]}g=c[b+16>>2]|0;if((g+ -1|0)>>>0>=2){c[e>>2]=g;c[f+4>>2]=1;c[f+8>>2]=2;Qe(0,162328,f);tc()}b=b+24|0;if((g|0)==1){m=+(c[b>>2]|0);k=a+588|0;k=c[k>>2]|0;j=a+592|0;h[j>>3]=l;j=a+600|0;h[j>>3]=m;uB(k,l,m);i=d;return}else{m=+h[b>>3];k=a+588|0;k=c[k>>2]|0;j=a+592|0;h[j>>3]=l;j=a+600|0;h[j>>3]=m;uB(k,l,m);i=d;return}}function ax(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;do{if((c[h+28>>2]|0)>0){f=4}else{if((a[h]&1)!=0){f=4;break}b=b+52|0}}while(0);do{if((f|0)==4){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 bx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=i;e=c[a+8>>2]|0;b=a+28|0;hd[c[(c[e>>2]|0)+80>>2]&127](e,c[b>>2]|0);c[b>>2]=XB(c[b>>2]|0)|0;b=a+32|0;c[b>>2]=(c[b>>2]|0)+1;i=d;return}function cx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0.0,j=0,k=0,l=0,m=0.0,n=0,o=0,p=0,q=0,r=0.0,s=0.0;d=i;f=i;i=i+16|0;e=f;j=i;i=i+16|0;k=j;n=i;i=i+16|0;l=n;q=i;i=i+16|0;p=q;o=c[b>>2]|0;if((o+ -1|0)>>>0>=2){c[q>>2]=o;c[p+4>>2]=1;c[p+8>>2]=2;Qe(0,162328,p);tc()}p=b+8|0;if((o|0)==1){g=+(c[p>>2]|0)}else{g=+h[p>>3]}o=c[b+16>>2]|0;if((o+ -1|0)>>>0>=2){c[n>>2]=o;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,162328,l);tc()}l=b+24|0;if((o|0)==1){m=+(c[l>>2]|0)}else{m=+h[l>>3]}l=c[b+32>>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()}j=b+40|0;if((l|0)==1){r=+(c[j>>2]|0)}else{r=+h[j>>3]}j=c[b+48>>2]|0;if((j+ -1|0)>>>0>=2){c[f>>2]=j;c[e+4>>2]=1;c[e+8>>2]=2;Qe(0,162328,e);tc()}b=b+56|0;if((j|0)==1){s=+(c[b>>2]|0)}else{s=+h[b>>3]}q=a+28|0;o=c[q>>2]|0;p=c[o+588>>2]|0;h[o+592>>3]=g;h[o+600>>3]=m;uB(p,g,m);p=c[q>>2]|0;r=g+r;o=c[p+588>>2]|0;h[p+592>>3]=r;h[p+600>>3]=m;vB(o,r,m);o=c[q>>2]|0;s=m+s;p=c[o+588>>2]|0;h[o+592>>3]=r;h[o+600>>3]=s;vB(p,r,s);p=c[q>>2]|0;o=c[p+588>>2]|0;h[p+592>>3]=g;h[p+600>>3]=s;vB(o,g,s);q=c[q>>2]|0;o=q+588|0;xB(c[o>>2]|0);o=c[o>>2]|0;p=o+28|0;o=o+24|0;n=c[(c[o>>2]|0)+((c[p>>2]|0)+ -1<<2)>>2]|0;h[q+592>>3]=+h[(c[n>>2]|0)+((c[n+12>>2]|0)+ -1<<3)>>3];p=c[(c[o>>2]|0)+((c[p>>2]|0)+ -1<<2)>>2]|0;h[q+600>>3]=+h[(c[p+4>>2]|0)+((c[p+12>>2]|0)+ -1<<3)>>3];i=d;return}function dx(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.0;m=i;e=i;i=i+16|0;g=e;k=i;i=i+128|0;j=k;l=b+15|0;do{if((a[l]&1)!=0){if((a[b+16|0]&1)==0){break}o=b+8|0;q=c[o>>2]|0;n=b+28|0;q=Bd[c[(c[q>>2]|0)+304>>2]&255](q,c[n>>2]|0)|0;p=c[o>>2]|0;hd[c[(c[p>>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=FW(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=FW(664)|0;DB(d,k,l,m,o,jd[c[(c[e>>2]|0)+8>>2]&511](e)|0);m=b+28|0;c[m>>2]=d;o=b+32|0;c[o>>2]=1;e=c[s>>2]|0;if((e|0)==(c[t>>2]|0)){eu(b+36|0,o)}else{if((e|0)==0){e=0}else{c[e>>2]=1;e=c[s>>2]|0}c[s>>2]=e+4}a[b+48|0]=0;c[b+52>>2]=0;c[b+56>>2]=0;s=c[g>>2]|0;Gd[c[(c[s>>2]|0)+60>>2]&255](s,f,c[m>>2]|0);s=c[g>>2]|0;hd[c[(c[s>>2]|0)+52>>2]&127](s,(c[m>>2]|0)+16|0);s=c[g>>2]|0;hd[c[(c[s>>2]|0)+88>>2]&127](s,c[m>>2]|0);s=c[m>>2]|0;h[b+64>>3]=+h[s+16>>3];h[b+72>>3]=+h[s+24>>3];h[b+80>>3]=+h[s+32>>3];h[b+88>>3]=+h[s+40>>3];h[b+96>>3]=+h[s+48>>3];h[b+104>>3]=+h[s+56>>3];c[b+112>>2]=0;c[b+124>>2]=p;c[b+128>>2]=q;if((n|0)==0){i=r;return}l=+h[n>>3];d=n+8|0;k=+h[d>>3];j=c[s+588>>2]|0;h[s+592>>3]=l;h[s+600>>3]=k;uB(j,l,k);j=c[m>>2]|0;t=n+16|0;k=+h[t>>3];l=+h[d>>3];d=c[j+588>>2]|0;h[j+592>>3]=k;h[j+600>>3]=l;vB(d,k,l);d=c[m>>2]|0;l=+h[t>>3];t=n+24|0;k=+h[t>>3];j=c[d+588>>2]|0;h[d+592>>3]=l;h[d+600>>3]=k;vB(j,l,k);j=c[m>>2]|0;k=+h[n>>3];l=+h[t>>3];t=c[j+588>>2]|0;h[j+592>>3]=k;h[j+600>>3]=l;vB(t,k,l);t=c[m>>2]|0;j=t+588|0;xB(c[j>>2]|0);j=c[j>>2]|0;d=j+28|0;j=j+24|0;o=c[(c[j>>2]|0)+((c[d>>2]|0)+ -1<<2)>>2]|0;h[t+592>>3]=+h[(c[o>>2]|0)+((c[o+12>>2]|0)+ -1<<3)>>3];d=c[(c[j>>2]|0)+((c[d>>2]|0)+ -1<<2)>>2]|0;h[t+600>>3]=+h[(c[d+4>>2]|0)+((c[d+12>>2]|0)+ -1<<3)>>3];TB(c[m>>2]|0);t=c[g>>2]|0;hd[c[(c[t>>2]|0)+256>>2]&127](t,c[m>>2]|0);SB(c[m>>2]|0);i=r;return}function sx(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;e=i;h=i;i=i+8|0;j=i;i=i+8|0;d=b+40|0;p=c[d>>2]|0;f=b+36|0;n=c[f>>2]|0;g=b+28|0;if((p|0)!=(n|0)){m=b+32|0;l=b+8|0;o=c[m>>2]|0;do{a:do{if((o|0)>(c[n+((p-n>>2)+ -1<<2)>>2]|0)){do{q=c[g>>2]|0;if((c[q+656>>2]|0)==0){break a}o=YB(q)|0;c[g>>2]=o;p=c[l>>2]|0;hd[c[(c[p>>2]|0)+84>>2]&127](p,o);o=(c[m>>2]|0)+ -1|0;c[m>>2]=o;p=c[d>>2]|0;n=c[f>>2]|0;}while((o|0)>(c[n+((p-n>>2)+ -1<<2)>>2]|0))}}while(0);p=p+ -4|0;c[d>>2]=p;}while((p|0)!=(n|0))}if((c[(c[g>>2]|0)+656>>2]|0)!=0){m=b+32|0;l=b+8|0;n=b+18|0;do{Qe(-1,159432,j);q=c[f>>2]|0;do{if((c[m>>2]|0)>(c[q+(((c[d>>2]|0)-q>>2)+ -1<<2)>>2]|0)){o=c[g>>2]|0;if((c[o+656>>2]|0)==0){k=11;break}q=YB(o)|0;c[g>>2]=q;p=c[l>>2]|0;hd[c[(c[p>>2]|0)+84>>2]&127](p,q);c[m>>2]=(c[m>>2]|0)+ -1}else{k=11}}while(0);if((k|0)==11){k=0;Qe(-1,162208,h);a[n]=1}}while((c[(c[g>>2]|0)+656>>2]|0)!=0)}if((a[b+12|0]&1)==0){q=c[b+8>>2]|0;fd[c[(c[q>>2]|0)+64>>2]&511](q)}h=b+20|0;j=c[h>>2]|0;if((j|0)!=0){while(1){k=c[j+112>>2]|0;nx(j);HW(j);c[h>>2]=k;if((k|0)==0){break}else{j=k}}}g=c[g>>2]|0;if((g|0)!=0){EB(g);HW(g)}b=b+116|0;g=c[b>>2]|0;if((g|0)!=0){do{c[b>>2]=c[g+4>>2];HW(g);g=c[b>>2]|0;}while((g|0)!=0)}f=c[f>>2]|0;if((f|0)==0){i=e;return}b=c[d>>2]|0;if((f|0)!=(b|0)){c[d>>2]=b+(~((b+ -4+(0-f)|0)>>>2)<<2)}HW(f);i=e;return}function tx(b){b=b|0;var d=0,e=0,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 ux(a){a=a|0;var b=0,d=0,e=0;b=i;a=a+20|0;e=c[a>>2]|0;d=c[e+112>>2]|0;if((e|0)!=0){nx(e);HW(e)}c[a>>2]=d;i=b;return}function vx(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;n=i;i=i+8|0;l=i;i=i+8|0;h=i;i=i+8|0;j=h;g=i;i=i+16|0;f=g;c[g>>2]=13;m=f+8|0;c[m>>2]=0;c[m+4>>2]=0;m=c[b>>2]|0;if((m|0)==6){k=2}else if((m|0)!=8){Qe(-1,159480,n);i=e;return}a:do{if((k|0)==2){m=b+8|0;n=0;while(1){o=c[m>>2]|0;if((n|0)>=(c[o+12>>2]|0)){break a}ut(o,n,f)|0;if((c[g>>2]|0)!=8){break}Of(f);o=c[b>>2]|0;if((o|0)==6){n=n+1|0}else{k=3;break}}if((k|0)==3){c[h>>2]=o;c[j+4>>2]=6;Qe(0,162256,j);tc()}Qe(-1,159480,l);Of(f);i=e;return}}while(0);o=FW(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}
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}})