Home | History | Annotate | Download | only in sqlite3

Lines Matching refs:Zc

5 function dh(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=c[d>>2]|0;l=c[d+80>>2]|0;h=d+44|0;do if(!(c[h>>2]|0)){c[k+52>>2]=l;e=c[k+236>>2]|0;if(e){d=e+8|0;if(!(b[d>>1]&9312)){b[d>>1]=1;break}else{rg(e);break}}}else{i=k+65|0;j=a[i>>0]|0;d=c[3164]|0;if(d)jc[d&3]();g=k+236|0;d=c[g>>2]|0;do if(!d){d=ih(k,40,0)|0;if(!d){c[g>>2]=d;break}else{e=d+0|0;f=e+40|0;do{a[e>>0]=0;e=e+1|0}while((e|0)<(f|0));b[d+8>>1]=1;c[d+32>>2]=k;c[g>>2]=d;f=8;break}}else f=8;while(0);if((f|0)==8)Tg(d,c[h>>2]|0,-1,1,-1)|0;d=c[3166]|0;if(d)jc[d&3]();a[i>>0]=j;c[k+52>>2]=l}while(0);return l|0}function eh(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 k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();k=o;c[g>>2]=0;if(!((Dh(a)|0)==0|(b|0)==0)){k=c[a+20>>2]|0;if((k|0)>0){l=c[a+16>>2]|0;n=0;do{m=c[l+(n<<4)+4>>2]|0;if(m)c[(c[m+4>>2]|0)+4>>2]=c[m>>2];n=n+1|0}while((n|0)!=(k|0))}k=Bn(a,b,d,e,f,g,h)|0;if((k|0)==17){id(c[g>>2]|0)|0;k=Bn(a,b,d,e,f,g,h)|0}}else{c[k>>2]=105892;c[k+4>>2]=10788;Zc(21,13648,k);k=21}i=o;return k|0}function fh(a,d){a=a|0;d=d|0;var e=0,f=0;f=a+68|0;if((b[f>>1]|0)>0){e=d+60|0;d=a+60|0;a=0;do{Wl((c[e>>2]|0)+(a*40|0)|0,(c[d>>2]|0)+(a*40|0)|0);a=a+1|0}while((a|0)<(b[f>>1]|0))}return}function gh(b,c){b=b|0;c=c|0;var d=0,e=0;if(c){d=c;while(1)if(!(a[d>>0]|0))break;else d=d+1|0;e=(d-c&1073741823)+1|0;d=ih(b,e,0)|0;if(d)gw(d|0,c|0,e|0)|0;else d=0}else d=0;return d|0}function hh(a,d){a=a|0;d=d|0;var e=0,f=0;f=c[a+8>>2]|0;if((d|0)>=1){bh(f,d)|0;b[f+8>>1]=8192;c[f>>2]=c[a+4>>2];e=f+16|0;a=c[e>>2]|0;if(!a)e=0;else{bw(a|0,0,d|0)|0;e=c[e>>2]|0}}else{e=f+8|0;if(!(b[e>>1]&9312))b[e>>1]=1;else rg(f);c[f+16>>2]=0;e=0}return e|0}function ih(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,i=0;a:do if(b){i=b+65|0;if(!(a[i>>0]|0)){do if(a[b+250>>0]|0){if(0<f>>>0|(0==(f|0)?(e[b+248>>1]|0)>>>0<d>>>0:0)){g=b+264|0;c[g>>2]=(c[g>>2]|0)+1;break}h=b+272|0;g=c[h>>2]|0;if(!g){g=b+268|0;c[g>>2]=(c[g>>2]|0)+1;break}c[h>>2]=c[g>>2];f=b+252|0;h=c[f>>2]|0;d=h+1|0;c[f>>2]=d;f=b+260|0;c[f>>2]=(c[f>>2]|0)+1;f=b+256|0;if((h|0)>=(c[f>>2]|0))c[f>>2]=d;break a}while(0);g=mg(d,f)|0;if(!g){a[i>>0]=1;g=0}}else g=0}else g=mg(d,f)|0;while(0);return g|0}function jh(a,d){a=a|0;d=d|0;var f=0,g=0;do if(a){f=c[a+20>>2]|0;if((f|0)!=0?((d|0)>-1?(e[a+84>>1]|0|0)>(d|0):0):0){f=f+(d*40|0)|0;break}f=c[a>>2]|0;if((f|0)!=0?(c[f+52>>2]=25,g=c[f+236>>2]|0,(g|0)!=0):0){f=g+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;f=41496;break}else{rg(g);f=41496;break}}else f=41496}else f=41496;while(0);return f|0}function kh(a,e,f,g,h,i){a=a|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0;j=lh(a,e)|0;if(!j)if(!f)j=0;else{e=(c[a+60>>2]|0)+((e+-1|0)*40|0)|0;j=Tg(e,f,g,i,h)|0;if((j|0)!=0|i<<24>>24==0)e=j;else e=Ul(e,d[(c[a>>2]|0)+62>>0]|0)|0;j=c[a>>2]|0;c[j+52>>2]=e;h=c[j+236>>2]|0;do if(h){g=h+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;break}else{rg(h);j=c[a>>2]|0;break}}while(0);j=Kg(j,e)|0}else{g=h;if(!((g|0)==0|(g|0)==-1))_b[h&31](f)}return j|0}function lh(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;do if(!(Yg(a)|0)){if((c[a+40>>2]|0)==-1108210269?(c[a+76>>2]|0)<=-1:0){if((d|0)>=1?(b[a+68>>1]|0)>=(d|0):0){h=d+-1|0;g=c[a+60>>2]|0;f=g+(h*40|0)|0;e=g+(h*40|0)+8|0;if(!((b[e>>1]&9312)==0?(c[g+(h*40|0)+24>>2]|0)==0:0))Mg(f);b[e>>1]=1;f=c[a>>2]|0;c[f+52>>2]=0;f=c[f+236>>2]|0;do if(f){e=f+8|0;if(!(b[e>>1]&9312)){b[e>>1]=1;break}else{rg(f);break}}while(0);g=a+88|0;e=b[g>>1]|0;if(!(e&256)){e=0;break}f=c[a+188>>2]|0;if((d|0)<33){if(!((f&1<<h|0)!=0|(f|0)==-1)){e=0;break}}else if((f|0)!=-1){e=0;break}b[g>>1]=e|8;e=0;break}e=c[a>>2]|0;c[e+52>>2]=25;e=c[e+236>>2]|0;if(!e){e=25;break}f=e+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;e=25;break}else{rg(e);e=25;break}}f=c[a>>2]|0;c[f+52>>2]=21;f=c[f+236>>2]|0;do if(f){e=f+8|0;if(!(b[e>>1]&9312)){b[e>>1]=1;break}else{rg(f);break}}while(0);c[g>>2]=c[a+168>>2];Zc(21,41456,g);c[g>>2]=69987;c[g+4>>2]=10788;Zc(21,13648,g);e=21}else{c[g>>2]=69979;c[g+4>>2]=10788;ZcZc(21,13648,k);f=21}else{l=c[a+24>>2]|0;k=a+20|0;h=c[k>>2]|0;do if((f|e|0)>=0?(o=fw(f|0,((f|0)<0)<<31>>31|0,e|0,((e|0)<0)<<31>>31|0)|0,q=C,n=c[a+4>>2]|0,p=((n|0)<0)<<31>>31,!((q|0)>(p|0)|(q|0)==(p|0)&o>>>0>n>>>0)):0)if(h){f=lc[g&31](c[a+16>>2]|0,(c[a+8>>2]|0)+f|0,e,d)|0;if((f|0)==4){Jg(h)|0;c[k>>2]=0;f=4;break}else{c[h+80>>2]=f;break}}else f=4;else f=1;while(0);c[l+52>>2]=f;h=c[l+236>>2]|0;do if(h){k=h+8|0;if(!(b[k>>1]&9312)){b[k>>1]=1;break}else{rg(h);break}}while(0);f=Kg(l,f)|0}i=m;return f|0}function Bh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;h=b+73|0;g=a[h>>0]|0;if((g&255)>2){g=Gn(b)|0;if(!g){g=a[h>>0]|0;i=4}}else i=4;if((i|0)==4)if(g<<24>>24==1){Hn(c[b+4>>2]|0,c[b+60>>2]|0,b)|0;if(!(a[b+72>>0]&1))g=8;else g=Hm(b,d,e,f,1)|0}else g=4;return g|0}function Ch(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))ba();w=y+4|0;x=y;c[w>>2]=b;c[x>>2]=e;r=d[f+1>>0]|0;s=d[f>>0]|0;v=a[f+3>>0]|0;u=(g|0)!=0;if(u)t=g;else t=d[f+2>>0]|0;o=v<<24>>24!=0;m=0;a:while(1){while(1){k=In(w)|0;if(!k){q=60;break a}if((k|0)==(s|0)){q=7;break a}if((k|0)!=(t|0))break;if(u){q=40;break}e=In(x)|0;if(!e){h=0;break a}l=In(w)|0;if((l|0)==94){l=In(w)|0;h=1}else h=0;if((l|0)==93){l=In(w)|0;n=(e|0)==93&1}else n=0;k=(l|0)==0;if((l|0)!=93&(k^1)){k=0;while(1){if(((l|0)==45?(p=a[c[w>>2]>>0]|0,p<<24>>24!=93):0)?p<<24>>24!=0&(k|0)!=0:0){l=e>>>0<k>>>0|e>>>0>(In(w)|0)>>>0;b=0;n=l?n:1}else{b=l;n=(e|0)==(l|0)?1:n}l=In(w)|0;k=(l|0)==0;if(!((l|0)!=93&(k^1))){l=k;break}else k=b}}else l=k;if(l|(n|0)==(h|0)){h=0;break a}}if((q|0)==40){q=0;k=In(w)|0;if(!k){h=0;break}m=c[w>>2]|0}l=In(x)|0;if((k|0)==(l|0))continue;if(o&k>>>0<128&l>>>0<128?(a[9328+(k&255)>>0]|0)==(a[9328+(l&255)>>0]|0):0)continue;if((k|0)!=(r|0)){h=0;break}if(!((l|0)!=0?(c[w>>2]|0)!=(m|0):0)){h=0;break}}b:do if((q|0)==7){e=In(w)|0;b=(e|0)==(r|0);if((e|0)==(s|0)|b)do{if(b?(In(x)|0)==0:0){h=0;break b}e=In(w)|0;b=(e|0)==(r|0)}while((e|0)==(s|0)|b);if(e){do if((e|0)==(t|0)){if(u){e=In(w)|0;if(!e){h=0;break b}else break}h=c[x>>2]|0;c:do if(!(a[h>>0]|0))h=0;else{b=c[w>>2]|0;while(1){if(Ch(b+-1|0,h,f,0)|0)break;e=h+1|0;c[x>>2]=e;if((d[h>>0]|0)>191?(a[e>>0]&-64)<<24>>24==-128:0){while(1){h=h+2|0;if((a[h>>0]&-64)<<24>>24==-128){q=e;e=h;h=q}else break}c[x>>2]=h}else h=e;if(!(a[h>>0]|0)){h=0;break c}}h=(a[h>>0]|0)!=0}while(0);h=h&1;break b}while(0);if(e>>>0>=129){h=In(x)|0;if(!h){h=0;break}b=c[w>>2]|0;while(1){if((h|0)==(e|0)?(Ch(b,c[x>>2]|0,f,g)|0)!=0:0){h=1;break b}h=In(x)|0;if(!h){h=0;break b}}}if(!(v<<24>>24)){n=e;m=e}else{m=e&255;n=d[9328+m>>0]|0;m=((d[10368+m>>0]|-33)^32)&e}b=c[x>>2]|0;h=b+1|0;c[x>>2]=h;e=a[b>>0]|0;if(!(e<<24>>24))h=0;else{l=c[w>>2]|0;k=e&255;while(1){if((k|0)==(n|0)|(k|0)==(m|0)?(Ch(l,h,f,g)|0)!=0:0){h=1;break b}e=b+2|0;c[x>>2]=e;b=a[h>>0]|0;if(!(b<<24>>24)){h=0;break}else{q=h;k=b&255;h=e;b=q}}}}else h=1}else if((q|0)==60)h=(a[c[x>>2]>>0]|0)==0&1;while(0);i=y;return h|0}function Dh(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=d;do if(a){a=c[a+76>>2]|0;if((a|0)==-1607883113){a=1;break}else if((a|0)==1266094736|(a|0)==-264537850){c[b>>2]=41352;Zc(21,15256,b);a=0;break}else{c[b>>2]=15248;Zc(21,15256,b);a=0;break}}else{c[b>>2]=20304;Zc(21,15256,b);a=0}while(0);i=d;return a|0}function Eh(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 k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();k=n;l=n+8|0;c[l>>2]=0;c[g>>2]=0;if((Dh(b)|0)==0|(d|0)==0){c[k>>2]=106003;c[k+4>>2]=10788;Zc(21,13648,k);f=21}else{a:do if((e|0)>-1)if((e|0)>0){k=0;do{if((a[d+k>>0]|0)==0?(a[d+(k|1)>>0]|0)==0:0)break a;k=k+2|0}while((k|0)<(e|0))}else k=0;else k=e;while(0);m=Nh(b,d,k)|0;if(m){f=eh(b,m,-1,f,0,g,l)|0;k=c[l>>2]|0;if((k|0)!=0&(h|0)!=0){g=Jn(m,k-m|0)|0;if((g|0)>0){e=0;k=d;do{k=(a[k+1>>0]&-8)<<24>>24==-40?k+4|0:k+2|0;e=e+1|0}while((e|0)!=(g|0))}else k=d;c[h>>2]=d+(k-d)}}else f=0;ig(b,m);f=Kg(b,f)|0}i=n;return f|0}function Fh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();o=r;p=b+12|0;h=c[p>>2]|0;n=(e|0)!=0;g=d<<((h|0)==0&n&1);q=b+20|0;l=b+8|0;k=c[l>>2]|0;if((g+(c[q>>2]|0)|0)>>>0>k>>>0){g=g+(k<<1)|0;c[l>>2]=g;h=c[b>>2]|0;if((Hc()|0)==0?(m=ng(h,g<<2,0)|0,(m|0)!=0):0){c[b>>2]=m;h=c[p>>2]|0;m=5}else m=21}else m=5;a:do if((m|0)==5){g=b+16|0;if(!h){c[g>>2]=d;if((d|0)>0){g=0;do{c[o>>2]=c[f+(g<<2)>>2];h=Wc(10344,o)|0;if(!h){m=21;break a}l=c[q>>2]|0;c[q>>2]=l+1;c[(c[b>>2]|0)+(l<<2)>>2]=h;g=g+1|0}while((g|0)<(d|0))}}else if((c[g>>2]|0)!=(d|0)){g=b+4|0;Sc(c[g>>2]|0);c[g>>2]=Wc(40912,o)|0;c[b+24>>2]=1;g=1;break}if(n){if((d|0)>0){l=0;do{k=e+(l<<2)|0;g=c[k>>2]|0;if(!g)g=0;else{h=g;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=(h-g&1073741823)+1|0;g=Pc(h)|0;if(!g){m=21;break a}gw(g|0,c[k>>2]|0,h|0)|0}o=c[q>>2]|0;c[q>>2]=o+1;c[(c[b>>2]|0)+(o<<2)>>2]=g;l=l+1|0}while((l|0)<(d|0))}c[p>>2]=(c[p>>2]|0)+1;g=0}else g=0}while(0);if((m|0)==21){c[b+24>>2]=7;g=1}i=r;return g|0}function Gh(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();m=o;if(!d)k=0;else{h=d;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;k=h-d&1073741823}l=b+308|0;h=Zm(l,d,m)|0;if((h|0)!=0?(c[h+8>>2]|0)!=0:0){c[m>>2]=114188;c[m+4>>2]=10788;Zc(21,13648,m);h=21}else{h=ih(b,k+17|0,0)|0;if((h|0)!=0?(n=h+16|0,gw(n|0,d|0,k+1|0)|0,c[h+4>>2]=n,c[h>>2]=e,c[h+8>>2]=f,c[h+12>>2]=g,n=Ek(l,n,h)|0,(n|0)!=0):0){a[b+65>>0]=1;ig(b,n);h=0}else h=0}h=Kg(b,h)|0;if((h|0)!=0&(g|0)!=0)_b[g&31](f);i=o;return h|0}function Hh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))ba();x=A;n=A+8|0;y=c[b>>2]|0;l=c[y+92>>2]|0;if(!(c[y+148>>2]|0))c[y+240>>2]=0;z=b+12|0;c[z>>2]=0;p=b+480|0;c[p>>2]=d;t=mg(1612,0)|0;if(t){c[t>>2]=-1;q=y+250|0;r=a[q>>0]|0;if(c[y+276>>2]|0)a[q>>0]=1;s=y+65|0;o=b+504|0;f=b+508|0;m=y+240|0;k=0;h=-1;a:while(1){while(1){if(a[s>>0]|0){v=19;break a}g=d+k|0;if(!(a[g>>0]|0)){v=19;break a}c[o>>2]=g;g=yn(g,n)|0;c[f>>2]=g;k=g+k|0;if((k|0)>(l|0)){v=12;break a}g=c[n>>2]|0;if((g|0)==150){v=16;break a}else if((g|0)==1){h=g;v=17;break}else if((g|0)!=151){h=g;break}if(c[m>>2]|0){v=15;break a}}if((v|0)==17){v=0;c[p>>2]=d+k};c[x+0>>2]=c[o+0>>2];c[x+4>>2]=c[o+4>>2];Kn(t,h,x,b);h=c[n>>2]|0;if(c[z>>2]|0){v=19;break}}if((v|0)==12){c[z>>2]=18;v=19}else if((v|0)==15){ph(b,20384,x);c[z>>2]=9;v=19}else if((v|0)==16){ig(y,c[e>>2]|0);c[x>>2]=o;c[e>>2]=qh(y,20400,x)|0;f=1}if((v|0)==19){k=d+k|0;if((a[k>>0]|0)==0?(c[z>>2]|0)==0:0){if((h|0)!=1){c[x+0>>2]=c[o+0>>2];c[x+4>>2]=c[o+4>>2];Kn(t,1,x,b);c[p>>2]=k};c[x+0>>2]=c[o+0>>2];c[x+4>>2]=c[o+4>>2];Kn(t,0,x,b);f=0}else f=0}if((c[t>>2]|0)>-1)do Ln(t);while((c[t>>2]|0)>-1);Sc(t);a[q>>0]=r;if(!(a[s>>0]|0)){h=c[z>>2]|0;if(!((h|0)==101|(h|0)==0)){u=h;v=29}}else{c[z>>2]=7;u=7;v=29}if((v|0)==29?(w=b+4|0,(c[w>>2]|0)==0):0){if((u|0)!=516){h=u&255;if(h>>>0>26|(h|0)==2)h=16328;else h=c[15488+(h<<2)>>2]|0}else h=16344;c[x>>2]=h;$g(w,y,10344,x)}h=b+4|0;g=c[h>>2]|0;if(g){c[e>>2]=g;e=c[z>>2]|0;c[x>>2]=g;Zc(e,10344,x);c[h>>2]=0;f=f+1|0}h=b+8|0;g=c[h>>2]|0;if(((g|0)!=0?(c[b+64>>2]|0)>0:0)?(a[b+18>>0]|0)==0:0){Ll(g);c[h>>2]=0}if(!(a[b+18>>0]|0)){e=b+400|0;ig(y,c[e>>2]|0);c[e>>2]=0;c[b+396>>2]=0}Sc(c[b+520>>2]|0);if(!(a[b+451>>0]|0))gg(y,c[b+484>>2]|0);if(a[b+449>>0]|0)Mn(y,c[b+532>>2]|0);fg(y,c[b+488>>2]|0);h=c[b+444>>2]|0;k=b+472|0;g=c[k>>2]|0;if((h|0)>0)do{h=h+-1|0;ig(y,c[g+(h<<2)>>2]|0);g=c[k>>2]|0}while((h|0)>0);ig(y,g);h=b+404|0;g=c[h>>2]|0;if(g)do{c[h>>2]=c[g>>2];ig(y,g);g=c[h>>2]|0}while((g|0)!=0);h=b+524|0;g=c[h>>2]|0;if(g)do{c[h>>2]=c[g+72>>2];gg(y,g);g=c[h>>2]|0}while((g|0)!=0);if((f|0)>0?(c[z>>2]|0)==0:0)c[z>>2]=1}else{a[y+65>>0]=1;f=7}i=A;return f|0}function Ih(a){a=a|0;if(a){if(!((b[a+8>>1]&9312)==0?(c[a+24>>2]|0)==0:0))Mg(a);ig(c[a+32>>2]|0,a)}return}function Jh(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(!(c[d+252>>2]|0)){n=d+251|0;if(a[n>>0]|0)Sc(c[d+276>>2]|0);j=f&-8;h=(j|0)<5?0:j;i=(g|0)<0?0:g;if(!((h|0)==0|(i|0)==0))if(!e){f=c[3164]|0;if(f)jc[f&3]();f=_(h,i)|0;f=mg(f,((f|0)<0)<<31>>31)|0;g=c[3166]|0;if(g)jc[g&3]();if(!f)f=0;else i=(hc[c[8744+48>>2]&127](f)|0)/(j|0)|0}else f=e;else{h=0;f=0}g=d+276|0;c[g>>2]=f;m=d+272|0;c[m>>2]=0;b[d+248>>1]=h;if(!f){c[g>>2]=d;c[d+280>>2]=d;a[d+250>>0]=0;f=0}else{if((i|0)>0){g=_(h,i)|0;l=f+(_(h,i+-1|0)|0)|0;k=0;j=f;while(1){i=i+-1|0;c[j>>2]=k;if((i|0)<=0)break;else{k=j;j=j+h|0}}c[m>>2]=l;f=f+g|0}c[d+280>>2]=f;a[d+250>>0]=1;f=(e|0)==0&1}a[n>>0]=f;f=0}else f=5;return f|0}function Kh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();p=q;do if(!b)e=0;else{l=b+76|0;n=c[l>>2]|0;if(!((n|0)==1266094736|(n|0)==-1607883113|(n|0)==-264537850)){c[p>>2]=15248;Zc(21,15256,p);c[p>>2]=128509;c[p+4>>2]=10788;Zc(21,13648,p);e=21;break}m=b+20|0;e=c[m>>2]|0;a:do if((e|0)>0){n=b+16|0;f=c[n>>2]|0;h=0;do{g=c[f+(h<<4)+4>>2]|0;if(g)c[(c[g+4>>2]|0)+4>>2]=c[g>>2];h=h+1|0}while((h|0)!=(e|0));k=0;while(1){e=c[f+(k<<4)+12>>2]|0;if((e|0)!=0?(o=c[e+16>>2]|0,(o|0)!=0):0){e=o;do{f=c[e+8>>2]|0;b:do if(a[f+44>>0]&16){g=f+60|0;while(1){f=c[g>>2]|0;if(!f)break b;h=f+24|0;if((c[f>>2]|0)==(b|0))break;else g=h}c[g>>2]=c[h>>2];wn(f)}while(0);e=c[e>>2]|0}while((e|0)!=0)}e=k+1|0;if((e|0)>=(c[m>>2]|0))break a;f=c[n>>2]|0;k=e}}while(0);nl(b);Nn(b,68);if((d|0)==0?(Fl(b)|0)!=0:0){qg(b,5,16368,p);e=5;break}c[l>>2]=1691352191;Ig(b);e=0}while(0);i=q;return e|0}function Lh(a,b){a=a|0;b=b|0;if(((b*1e3|0)+1e3|0)>(c[a+492>>2]|0))b=0;else{b=c[a>>2]|0;nc[c[b+60>>2]&127](b,1e6)|0;b=1}return b|0}function Mh(d,f,g,h,k,l,m,n,o){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();t=v;do if(f){r=(l|0)!=0;p=(n|0)!=0;if(r)if(p|(m|0)!=0){u=8;break}else{p=0;q=0}else{q=(m|0)!=0;if(!(q|p^1)){u=8;break}}if(!(q&((r|p)^1)|(g|0)<-1|(g|0)>127)){p=f;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;q=p-f&1073741823;if(q>>>0<=255){s=h&2048;p=h&7;if((p|0)!=4){if((p|0)==5){p=Mh(d,f,g,s|1,k,l,m,n,o)|0;if(p)break;p=Mh(d,f,g,s|2,k,l,m,n,o)|0;if(!p)p=3;else break}}else p=2;r=p&255;h=Oh(d,f,q,g,r,0)|0;if(((h|0)!=0?(e[h+2>>1]&3|0)==(p|0):0)?(b[h>>1]|0)==(g|0):0){if(c[d+148>>2]|0){qg(d,5,15424,t);p=5;break}p=c[d+4>>2]|0;if(p)do{t=p+88|0;b[t>>1]=b[t>>1]|8;p=c[p+52>>2]|0}while((p|0)!=0)}p=Oh(d,f,q,g,r,1)|0;if(!p)p=7;else{Jl(d,p);if(o)c[o>>2]=(c[o>>2]|0)+1;c[p+32>>2]=o;o=p+2|0;b[o>>1]=e[o>>1]&3|s;c[p+12>>2]=l;c[p+16>>2]=m;c[p+20>>2]=n;c[p+4>>2]=k;b[p>>1]=g;p=0}}else u=8}else u=8}else u=8;while(0);if((u|0)==8){c[t>>2]=129075;c[t+4>>2]=10788;Zc(21,13648,t);p=21}i=v;return p|0}function Nh(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+48|0;if((i|0)>=(j|0))ba();k=l;g=k+0|0;h=g+40|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(h|0));c[k+32>>2]=d;Tg(k,e,f,2,0)|0;f=k+8|0;e=c[f>>2]|0;if(!((e&2|0)==0|(e&16711680|0)==65536))xn(k,1)|0;if(!(a[d+65>>0]|0))f=c[k+16>>2]|0;else{if(!((b[f>>1]&9312)==0?(c[k+24>>2]|0)==0:0))Mg(k);c[k+16>>2]=0;f=0}i=l;return f|0}function Oh(e,f,g,h,i,j){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0;n=((d[9328+(d[f>>0]|0)>>0]|0)+g|0)%23|0;o=e+336|0;l=Nk(o,n,f,g)|0;if(!l){m=0;k=0}else{m=0;k=0;do{q=On(l,h,i)|0;p=(q|0)>(m|0);m=p?q:m;k=p?l:k;l=c[l+8>>2]|0}while((l|0)!=0)}do if(!(j<<24>>24)){if((k|0)!=0?(c[e+24>>2]&2097152|0)==0:0){l=0;n=12;break}l=Nk(10840,n,f,g)|0;if(!l){m=0;n=8}else{m=0;do{p=On(l,h,i)|0;n=(p|0)>(m|0);m=n?p:m;k=n?l:k;l=c[l+8>>2]|0}while((l|0)!=0);n=8}}else n=8;while(0);do if((n|0)==8){l=j<<24>>24!=0;if(l&(m|0)<6){l=g+37|0;k=ih(e,l,0)|0;if(!k){n=14;break}bw(k|0,0,l|0)|0;l=k+36|0;c[k+24>>2]=l;b[k>>1]=h;b[k+2>>1]=i&255;gw(l|0,f|0,g|0)|0;a[k+(g+36)>>0]=0;jg(o,k);l=1}if(!k)n=14;else n=12}while(0);if((n|0)==12)if((c[k+16>>2]|0)==0?!((c[k+12>>2]|0)!=0|l):0)n=14;if((n|0)==14)k=0;return k|0}function Ph(b,d,e){b=b|0;d=d|0;e=e|0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();e=d;c[e>>2]=c[(c[b+4>>2]|0)+24>>2];e=Wc(15304,e)|0;c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,e,-1,1,-1)|0;Sc(e);i=d;return}function Qh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if((a|0)<=(e|0)){e=c[3164]|0;if(e)jc[e&3]();Gf(b,d,0,0,0)|0;e=c[3166]|0;if(e)jc[e&3]()}return 0}function Rh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;a:do if(d){e=d;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;g=e-d&1073741823;f=c[b+20>>2]|0;e=f+-1|0;if((f|0)>0){h=e;f=(c[b+16>>2]|0)+(e<<4)|0;while(1){b=c[f>>2]|0;if(!b)e=0;else{e=b;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;e=e-b&1073741823}if((g|0)==(e|0)?($c(b,d)|0)==0:0){e=h;break a}e=h+-1|0;if((h|0)>0){h=e;f=f+-16|0}else break}}}else e=-1;while(0);return e|0}function Sh(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;q=b+20|0;i=c[q>>2]|0;if((i|0)>0){r=(e|0)==10;o=b+16|0;p=(f|0)==0;m=g;b=i;g=0;n=0;while(1){if((n|0)==(e|0)|r){j=c[(c[o>>2]|0)+(n<<4)+4>>2]|0;if(j){i=c[j+4>>2]|0;c[i+4>>2]=c[j>>2];if(!(a[i+20>>0]|0)){j=c[i>>2]|0;k=c[j+208>>2]|0;if(!k)k=0;else{if(p)i=0;else i=c[j+176>>2]|0;k=Pn(k,f,i,c[j+180>>2]|0,d[j+9>>0]|0,c[j+152>>2]|0,c[j+200>>2]|0,m,h)|0;b=c[q>>2]|0}}else k=6}else k=0;h=(k|0)==5;l=0;j=0;i=b;g=h?1:g;h=h?0:k}else{l=h;j=m;i=b;h=0}n=n+1|0;b=(h|0)==0;if(!((n|0)<(i|0)&b))break;else{m=j;h=l;b=i}}}else{b=1;g=0;h=0}return (b&(g|0)!=0?5:h)|0}function Th(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+32|0;if((i|0)>=(j|0))ba();s=w;t=w+20|0;o=w+16|0;n=w+12|0;m=w+8|0;c[o>>2]=f;c[n>>2]=0;c[m>>2]=0;c[e>>2]=0;h=Hc()|0;do if(!h){if(!(1<<(f&7)&70)){c[s>>2]=130207;c[s+4>>2]=10788;ZcZc(21,13648,m);m=21}else{q=r;n=4}else{q=2;n=4}do if((n|0)==4){p=q&255;n=Un(e,p,f,0)|0;if((n|0)!=0?(c[n+12>>2]|0)!=0:0){if(c[e+148>>2]|0){qg(e,5,13680,m);m=5;break}g=c[e+4>>2]|0;if(g)do{o=g+88|0;b[o>>1]=b[o>>1]|8;g=c[g+52>>2]|0}while((g|0)!=0);o=n+4|0;if((d[o>>0]&247|0)==(q|0)){g=Zm(e+428|0,f,m)|0;if(!g)n=0;else n=c[g+8>>2]|0;m=0;do{if((a[n+(m*20|0)+4>>0]|0)==(a[o>>0]|0)){g=c[n+(m*20|0)+16>>2]|0;if(g)_b[g&31](c[n+(m*20|0)+8>>2]|0);c[n+(m*20|0)+12>>2]=0}m=m+1|0}while((m|0)!=3)}}g=Un(e,p,f,1)|0;if(g){c[g+12>>2]=k;c[g+8>>2]=h;c[g+16>>2]=l;a[g+4>>0]=q|r&8;c[e+52>>2]=0;m=c[e+236>>2]|0;if(m){g=m+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;m=0;break}else{rg(m);m=0;break}}else m=0}else m=7}while(0);i=s;return m|0}function Vh(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;l=d+24|0;m=c[l>>2]&2;n=d+145|0;a[n>>0]=1;k=d+16|0;i=c[k>>2]|0;a[d+62>>0]=a[(c[i+12>>2]|0)+77>>0]|0;h=d+20|0;g=0;while(1){if((g|0)>=(c[h>>2]|0)){g=i;i=6;break}if(!((g|0)==1?1:(b[(c[i+(g<<4)+12>>2]|0)+78>>1]&1)!=0)?(f=Vn(d,g,e)|0,(f|0)!=0):0){i=9;break}i=c[k>>2]|0;g=g+1|0}if((i|0)==6)if((b[(c[g+28>>2]|0)+78>>1]&1)==0?(j=Vn(d,1,e)|0,(j|0)!=0):0){ml(c[(c[k>>2]|0)+28>>2]|0);f=j}else f=0;else if((i|0)==9)rm(d,g);a[n>>0]=0;if(!(f|m))c[l>>2]=c[l>>2]&-3;return f|0}function Wh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;k=a+20|0;a:do if((c[k>>2]|0)>0){l=(d|0)==0;g=a+16|0;h=0;a=0;do{f=(h|0)<2^h;e=c[g>>2]|0;if(!(!l?($c(d,c[e+(f<<4)>>2]|0)|0)!=0:0)){a=Zm((c[e+(f<<4)+12>>2]|0)+8|0,b,m)|0;if(a){a=c[a+8>>2]|0;if(a)break a}else a=0}h=h+1|0}while((h|0)<(c[k>>2]|0))}else a=0;while(0);i=n;return a|0}function Xh(a){a=a|0;if(($c(a,12936)|0)!=0?($c(a,12944)|0)!=0:0)a=($c(a,12952)|0)==0&1;else a=1;return a|0}function Yh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=c[a+20>>2]|0;a:do if((g|0)>0){d=c[a+16>>2]|0;e=(b|0)==0;f=0;while(1){a=c[d+(f<<4)+4>>2]|0;if(a){if(e)break a;if(!($c(b,c[d+(f<<4)>>2]|0)|0))break a}f=f+1|0;if((f|0)>=(g|0)){a=0;break}}}else a=0;while(0);return a|0}function Zh(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:do if(!b)e=0;else{e=e+-1|0;b:do if((c[b>>2]|0)>>>0>4e3){g=b;f=e;while(1){e=g+8|0;h=c[e>>2]|0;if(!h){j=b;break}e=(f>>>0)%(h>>>0)|0;f=g+12+(((f>>>0)/(h>>>0)|0)<<2)|0;b=c[f>>2]|0;if(!b){b=mg(512,0)|0;if(!b){e=b;l=21;break}bw(b|0,0,512)|0;c[b>>2]=h;c[f>>2]=b}if((c[b>>2]|0)>>>0>4e3){g=b;f=e}else break b}if((l|0)==21){c[f>>2]=e;e=7;break a}k=f+1|0;f=(f>>>0)%125|0;i=g+12|0;b=c[g+(f<<2)+12>>2]|0;if(!b){b=c[g+4>>2]|0;if(b>>>0<124){e=g;l=20}}else{do{if((b|0)==(k|0)){e=0;break a}f=f+1|0;f=f>>>0>124?0:f;b=c[g+(f<<2)+12>>2]|0}while((b|0)!=0);b=c[g+4>>2]|0;if(b>>>0<=61){e=g;l=20}}if((l|0)==20){c[g+4>>2]=b+1;c[e+(f<<2)+12>>2]=k;e=0;break a}h=mg(500,0)|0;if(!h){e=7;break a}gw(h|0,i|0,500)|0;bw(i|0,0,500)|0;c[e>>2]=(((c[j>>2]|0)+124|0)>>>0)/125|0;b=0;e=Zh(g,k)|0;do{f=c[h+(b<<2)>>2]|0;if(f)e=Zh(g,f)|0|e;b=b+1|0}while((b|0)!=125);Sc(h);break a}while(0);b=b+12+(e>>>3)|0;a[b>>0]=d[b>>0]|0|1<<(e&7);e=0}while(0);return e|0}function _h(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;a:do if(b){g=e+-1|0;while(1){e=c[b+8>>2]|0;if(!e)break;b=c[b+12+(((g>>>0)/(e>>>0)|0)<<2)>>2]|0;if(!b)break a;else g=(g>>>0)%(e>>>0)|0}if((c[b>>2]|0)>>>0<4001){b=b+12+(g>>>3)|0;a[b>>0]=(d[b>>0]|0)&(1<<(g&7)^255);break}k=b+12|0;gw(f|0,k|0,500)|0;bw(k|0,0,500)|0;k=b+4|0;c[k>>2]=0;h=g+1|0;j=0;do{i=f+(j<<2)|0;e=c[i>>2]|0;if(!((e|0)==0|(e|0)==(h|0))){g=((e+-1|0)>>>0)%125|0;c[k>>2]=(c[k>>2]|0)+1;e=b+(g<<2)+12|0;if(c[e>>2]|0)do{e=g+1|0;g=e>>>0>124?0:e;e=b+(g<<2)+12|0}while((c[e>>2]|0)!=0);c[e>>2]=c[i>>2]}j=j+1|0}while((j|0)!=125)}while(0);return}function $h(a,b){a=a|0;b=b|0;var e=0,f=0;a:do if((a|0)!=0?(e=b+-1|0,e>>>0<(c[a>>2]|0)>>>0):0){while(1){b=c[a+8>>2]|0;if(!b)break;a=c[a+12+(((e>>>0)/(b>>>0)|0)<<2)>>2]|0;if(!a){e=0;break a}else e=(e>>>0)%(b>>>0)|0}if((c[a>>2]|0)>>>0<4001){e=((d[a+12+(e>>>3)>>0]|0)&1<<(e&7)|0)!=0&1;break}f=e+1|0;e=(e>>>0)%125|0;b=c[a+(e<<2)+12>>2]|0;if(b)while(1){if((b|0)==(f|0)){e=1;break a}e=((e+1|0)>>>0)%125|0;b=c[a+(e<<2)+12>>2]|0;if(!b){e=0;break}}else e=0}else e=0;while(0);return e|0}function ai(a){a=a|0;var b=0,d=0;if(a){if(c[a+8>>2]|0){b=a+12|0;d=0;do{ai(c[b+(d<<2)>>2]|0);d=d+1|0}while((d|0)!=125)}Sc(a)}return}function bi(b,c){b=b|0;c=c|0;var f=0;a:do if((c|0)>=2?(f=a[11824+(((d[9328+(d[b>>0]|0)>>0]|0)<<2^c^(d[9328+(d[b+(c+-1)>>0]|0)>>0]|0)*3|0)%127|0)>>0]|0,f<<24>>24!=0):0){f=f&255;while(1){f=f+-1|0;if((d[12080+f>>0]|0|0)==(c|0)?(Bc(11264+(e[12208+(f<<1)>>1]|0)|0,b,c)|0)==0:0)break;f=a[11952+f>>0]|0;if(!(f<<24>>24)){f=27;break a}else f=f&255}f=d[12456+f>>0]|0}else f=27;while(0);return f|0}function ci(a){a=a|0;var b=0,d=0,e=0;c[2174]=a;if((c[2184]|0)>>>0<a>>>0)c[2184]=a;d=c[2264]|0;if((d|0)==0|(c[2235]|0)<(a|0)){b=mg(a,((a|0)<0)<<31>>31)|0;if((c[2186]|0)!=0&(b|0)!=0?(e=hc[c[8744+48>>2]&127](b)|0,e=(c[2170]|0)+e|0,c[2170]=e,e>>>0>(c[2180]|0)>>>0):0)c[2180]=e}else{b=c[2263]|0;c[2263]=c[b>>2];c[2264]=d+-1;a=(c[2169]|0)+1|0;c[2169]=a;if(a>>>0>(c[2179]|0)>>>0)c[2179]=a}return b|0}function di(a){a=a|0;var b=0;do if(a){if((c[2234]|0)>>>0<=a>>>0&(c[2262]|0)>>>0>a>>>0){c[a>>2]=c[2263];c[2263]=a;c[2264]=(c[2264]|0)+1;c[2169]=(c[2169]|0)+-1;break}if(!(c[2186]|0)){_b[c[8744+40>>2]&31](a);break}else{b=hc[c[8744+48>>2]&127](a)|0;c[2170]=(c[2170]|0)-b;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;_b[c[8744+40>>2]&31](a);break}}while(0);return}function ei(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l;g=a[b>>0]|0;a:do if(((g&255)+-48|0)>>>0>=10){k=g;g=b;while(1){h=g+1|0;if(!(k<<24>>24))break;k=a[h>>0]|0;g=h}k=g-b&1073741823;g=7-e|0;if((g|0)>0){h=0;while(1){if((d[11248+h>>0]|0|0)==(k|0)?(Bc(11216+(d[11240+h>>0]|0)|0,b,k)|0)==0:0){f=h;break}h=h+1|0;if((h|0)>=(g|0))break a}f=a[11256+f>>0]|0}}else{c[h>>2]=0;zn(b,h)|0;f=c[h>>2]&255}while(0);i=l;return f|0}function fi(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=a[b>>0]|0;do if(e<<24>>24==48){f=a[b+1>>0]|0;if(!(f<<24>>24==88|f<<24>>24==120))if(!b){e=0;k=15;break}else{g=e;e=b;k=12;break}e=a[b+2>>0]|0;if(!(a[10368+(e&255)>>0]&8)){g=48;e=b;k=12}else{g=2;while(1){f=g+1|0;if(e<<24>>24!=48)break;e=a[b+f>>0]|0;g=f}if(!(a[10368+(e&255)>>0]&8)){h=b+g|0;i=0;e=0;f=g}else{i=0;h=0;f=g;while(1){i=ew(i|0,h|0,4)|0;j=C;h=e<<24>>24;i=(0-(h>>>6&1)&9)+h&15|i;f=f+1|0;h=b+f|0;e=a[h>>0]|0;if(!(a[10368+(e&255)>>0]&8)){e=j;break}else h=j}}j=d;c[j>>2]=i;c[j+4>>2]=e;if(!(a[h>>0]|0))e=(f-g|0)<17;else e=0;e=e&1^1}}else{g=e;e=b;k=12}while(0);if((k|0)==12){while(1){f=e+1|0;if(!(g<<24>>24))break;g=a[f>>0]|0;e=f;k=12}e=e-b&1073741823;k=15}if((k|0)==15)e=Ql(b,d,e,1)|0;return e|0}function gi(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+1264|0;if((i|0)>=(j|0))ba();B=D;A=D+152|0;u=D+742|0;v=D+76|0;r=D+228|0;o=h&-256;s=h&16;z=h&8;t=h&4;n=h&1;w=h&2;if((t|0)!=0?(o|0)==524288|(o|0)==2048|(o|0)==16384:0)y=1;else y=0;x=c[12114]|0;if((x|0)!=(nb()|0)?(c[12114]=nb()|0,(Hc()|0)==0):0)a[9064]=0;p=g+0|0;q=p+44|0;do{c[p>>2]=0;p=p+4|0}while((p|0)<(q|0));x=(o|0)==256;do if(x){a:do if((nc[c[47552+52>>2]&127](f,B)|0)==0?(l=c[12178]|0,(l|0)!=0):0){o=c[B>>2]|0;p=c[B+72>>2]|0;while(1){if((c[l>>2]|0)==(o|0)?(c[l+4>>2]|0)==(p|0):0)break;l=c[l+32>>2]|0;if(!l){C=18;break a}}o=l+28|0;l=c[o>>2]|0;if(l){while(1){q=o;o=l+8|0;p=l;l=c[o>>2]|0;if((c[p+4>>2]|0)==(h|0)){o=q;break}if(!l){C=18;break a}}c[o>>2]=l;r=c[p>>2]|0;l=p}else C=18}else C=18;while(0);if((C|0)==18){l=Pc(12)|0;if(!l){l=7;break}else r=-1}c[g+28>>2]=l;o=t<<4|w;l=(s|0)!=0;if((r|0)<0){t=l;s=l?o|131200:o;l=f;C=23}else{q=r;l=f;C=36}}else{if(!f){l=Wn(514,r)|0;if(!l)l=r;else break}else l=f;C=t<<4|w;s=(s|0)!=0;t=s;s=s?C|131200:C;C=23}while(0);b:do if((C|0)==23){if(!(h&526336)){o=(z|0)==0?0:384;r=0;q=0}else{if(!l)o=0;else{o=l;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;o=o-l&1073741823}do o=o+-1|0;while((a[l+o>>0]|0)!=45);gw(u|0,l|0,o|0)|0;a[u+o>>0]=0;if(nc[c[47552+52>>2]&127](u,v)|0){l=1802;break}o=c[v+12>>2]&511;r=c[v+20>>2]|0;q=c[v+24>>2]|0}p=Xn(l,s,o)|0;do if((p|0)<0){if(!(t|((w|0)==0|(c[(Db()|0)>>2]|0)==21))?(m=Xn(l,s&131200,o)|0,(m|0)>=0):0){h=h&-8|1;n=1;break}c[B>>2]=31186;c[B+4>>2]=10788;Zc(14,14848,B);l=_n(14,47896,l,31186)|0;if(!l){l=0;break b}m=g+28|0;C=70;break b}else m=p;while(0);if(!(h&526336)){q=m;C=36}else{Yb[c[47552+244>>2]&63](m,r,q)|0;q=m;C=36}}while(0);c:do if((C|0)==36){if(k)c[k>>2]=h;r=g+28|0;m=c[r>>2]|0;if(m){c[m>>2]=q;c[m+4>>2]=h}if(z)hc[c[47552+196>>2]&127](l)|0;l=z<<2;l=(n|0)==0?l:l|2;l=x?l:l|128;l=y?l|8:l;z=l|h&64;c[g+12>>2]=q;c[g+4>>2]=d;c[g+32>>2]=f;m=g+18|0;b[m>>1]=z&255;if(bg((z&64|0)!=0?f:0,48496,1)|0)b[m>>1]=e[m>>1]|16;if(!(Wv(c[d+16>>2]|0,1e4)|0))b[m>>1]=e[m>>1]|1;d:do if(!(l&128)){l=nc[c[c[d+20>>2]>>2]&127](f,g)|0;if((l|0)!=48504){if((l|0)!=47472){C=64;break}m=(cw(f|0)|0)+6|0;l=Pc(m)|0;if(l){c[B>>2]=f;Yc(m,l,48584,B)|0;c[g+24>>2]=l;c[g+20>>2]=0;l=47472;break}c[g+24>>2]=0;c[g+20>>2]=0;if((q|0)<=-1){m=r;l=7;C=70;break c}Yn(g,q,30794);m=r;l=7;C=70;break c}do if(!(nc[c[47552+64>>2]&127](c[g+12>>2]|0,A)|0)){l=B;c[l>>2]=0;c[l+4>>2]=0;c[B>>2]=c[A>>2];c[B+4>>2]=c[A+72>>2];l=c[12178]|0;e:do if(!l)C=53;else{while(1){if(!(Vv(B,l,8)|0))break;l=c[l+32>>2]|0;if(!l){C=53;break e}}B=l+16|0;c[B>>2]=(c[B>>2]|0)+1}while(0);if((C|0)==53){m=Pc(40)|0;if(!m){l=7;m=g+20|0;break}p=m+0|0;q=p+40|0;do{c[p>>2]=0;p=p+4|0}while((p|0)<(q|0));C=c[B+4>>2]|0;l=m;c[l>>2]=c[B>>2];c[l+4>>2]=C;c[m+16>>2]=1;c[m+32>>2]=c[12178];c[m+36>>2]=0;l=c[12178]|0;if(l)c[l+36>>2]=m;c[12178]=m;l=m}c[g+8>>2]=l;l=48504;C=64;break d}else{l=c[(Db()|0)>>2]|0;m=g+20|0;c[m>>2]=l;l=(l|0)==75?22:10}while(0);Yn(g,q,30709);c[m>>2]=0;m=r;C=70;break c}else{l=48376;C=64}while(0);if((C|0)==64)c[g+20>>2]=0;c[g>>2]=l;Zn(g);l=0}while(0);if((C|0)==70)Sc(c[m>>2]|0);i=D;return l|0}function hi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;do if((hc[c[47552+196>>2]&127](b)|0)==-1)if((c[(Db()|0)>>2]|0)==2)a=5898;else a=_n(2570,48032,b,31314)|0;else if(d&1){a=nc[c[47552+208>>2]&127](b,e)|0;if((a|0)==14){a=0;break}else if(a)break;if(!(Cb(c[e>>2]|0)|0))a=0;else a=_n(1290,48488,b,31329)|0;if(hc[c[47552+16>>2]&127](c[e>>2]|0)|0)_n(4106,47856,0,31331)|0}else a=0;while(0);i=f;return a|0}function ii(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+80|0;if((i|0)>=(j|0))ba();f=g;if((d|0)==2)a=4;else if((d|0)==1)a=6;else a=0;a=(nc[c[47552+28>>2]&127](b,a)|0)==0;c[e>>2]=a&1;if((!((d|0)!=0|a^1)?(nc[c[47552+52>>2]&127](b,f)|0)==0:0)?(c[f+36>>2]|0)==0:0)c[e>>2]=0;i=g;return 0}function ji(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;b=e+-1|0;a[f+b>>0]=0;do if((a[d>>0]|0)!=47)if(!(nc[c[47552+40>>2]&127](f,b)|0)){c[g>>2]=31416;c[g+4>>2]=10788;ZcZc(7,16568,d)}else{d=a;c[d>>2]=b;c[d+4>>2]=((b|0)<0)<<31>>31;a=a+8|0}i=e;return a|0}function Ri(a){a=a|0;Tv(a+-8|0);return}function Si(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;e=a+-8|0;d=Uv(e,b+8|0)|0;if(!d){if(!a)e=0;else e=c[e>>2]|0;c[f>>2]=e;c[f+4>>2]=b;Zc(7,16528,f)}else{e=d;c[e>>2]=b;c[e+4>>2]=((b|0)<0)<<31>>31;d=d+8|0}i=g;return d|0}function Ti(a){a=a|0;if(!a)a=0;else a=c[a+-8>>2]|0;return a|0}function Ui(a){a=a|0;return a+7&-8|0}function Vi(a){a=a|0;return 0}function Wi(a){a=a|0;return}function Xi(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;i=c[g>>2]|0;do if((-1431655766>>>(e[i+8>>1]&31)&1|0)==0?(h=Og(i,1)|0,(h|0)!=0):0){i=Pg(c[g>>2]|0,1)|0;if((f|0)!=1){o=Og(c[g+4>>2]|0,1)|0;if(!o)break;f=a[o>>0]|0;if(f<<24>>24){g=0;j=o;while(1){k=j+1|0;if((f&255)>191)while(1){f=a[k>>0]|0;if((f&-64)<<24>>24==-128){n=k;k=j+2|0;j=n}else{j=k;break}}else{f=a[k>>0]|0;j=k}k=g+1|0;if(!(f<<24>>24)){f=k;break}else g=k}if((g|0)>-1){m=ow(f|0,((f|0)<0)<<31>>31|0,5,0)|0;m=go(b,m,C)|0;if(!m)break;l=m+(f<<2)|0;if(a[o>>0]|0){f=o;g=0;while(1){c[m+(g<<2)>>2]=f;k=f+1|0;if((d[f>>0]|0)>191){j=f;while(1)if((a[k>>0]&-64)<<24>>24==-128){n=k;k=j+2|0;j=n}else break}a[l+g>>0]=k-f;j=g+1|0;if(!(a[k>>0]|0))break;else{f=k;g=j}}if((g|0)>-1){n=j;p=17}}}}}else{l=20360;m=20368;n=1;o=0;p=17}if((p|0)==17){f=c[(c[b+4>>2]|0)+4>>2]|0;a:do if((f&1|0)!=0&(i|0)>0){g=(n|0)>0;do{if(g)j=0;else{p=24;break a}while(1){k=d[l+j>>0]|0;if((i|0)>=(k|0)?(Vv(h,c[m+(j<<2)>>2]|0,k)|0)==0:0)break;j=j+1|0;if((j|0)>=(n|0)){p=24;break a}}h=h+k|0;i=i-k|0}while((i|0)>0)}else p=24;while(0);b:do if((p|0)==24)if((f&2|0)!=0&(i|0)>0){g=(n|0)>0;do{if(g)j=0;else break b;while(1){k=d[l+j>>0]|0;if((i|0)>=(k|0)?(q=i-k|0,(Vv(h+q|0,c[m+(j<<2)>>2]|0,k)|0)==0):0){i=q;break}j=j+1|0;if((j|0)>=(n|0))break b}}while((i|0)>0)}while(0);if(o)Sc(m)}Sg(b,h,i,1,-1)}while(0);return}function Yi(a,b,d){a=a|0;b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0;j=((c[(c[a+4>>2]|0)+4>>2]|0)!=0)<<31>>31;i=c[(c[(c[a+12>>2]|0)+4>>2]|0)+(((c[a+16>>2]|0)+-1|0)*20|0)+16>>2]|0;f=c[d>>2]|0;a:do if(!(-1431655766>>>((e[f+8>>1]|0)&31)&1)){if((b|0)>1){h=1;f=0;do{g=c[d+(h<<2)>>2]|0;if(-1431655766>>>((e[g+8>>1]|0)&31)&1)break a;g=((dm(c[d+(f<<2)>>2]|0,g,i)|0)^j|0)>-1;f=g?h:f;h=h+1|0}while((h|0)<(b|0));f=c[d+(f<<2)>>2]|0}Wg(c[a>>2]|0,f)|0}while(0);return}function Zi(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0;i=c[g>>2]|0;f=c[d+8>>2]|0;if(!(b[f+8>>1]&8192))f=hh(d,40)|0;else f=c[f+16>>2]|0;do if(f){h=(b[f+8>>1]|0)!=0;if(-1431655766>>>(e[(c[g>>2]|0)+8>>1]&31)&1){if(!h)break;a[d+24>>0]=1;break}if(!h){c[f+32>>2]=c[(c[d>>2]|0)+32>>2];Wg(f,i)|0;break}h=(c[(c[d+4>>2]|0)+4>>2]|0)!=0;g=dm(f,i,c[(c[(c[d+12>>2]|0)+4>>2]|0)+(((c[d+16>>2]|0)+-1|0)*20|0)+16>>2]|0)|0;if(!(h&(g|0)<0)?!((g|0)>0&(h^1)):0){a[d+24>>0]=1;break}Wg(f,i)|0}while(0);return}function _i(a){a=a|0;var d=0,e=0,f=0;d=c[a+8>>2]|0;if(!(b[d+8>>1]&8192))d=hh(a,0)|0;else d=c[d+16>>2]|0;do if(d){e=d+8|0;if(!((b[e>>1]|0)!=0?(Wg(c[a>>2]|0,d)|0,(b[e>>1]&9312)!=0):0))f=7;if((f|0)==7?(c[d+24>>2]|0)==0:0)break;Mg(d)}while(0);return}function $i(a,b,f){a=a|0;b=b|0;f=f|0;b=d[10064+((e[(c[f>>2]|0)+8>>1]|0)&31)>>0]|0;if((b|0)==2)b=20336;else if((b|0)==4)b=20344;else if((b|0)==1)b=20320;else if((b|0)==3)b=20328;else b=20352;Sg(a,b,-1,1,0);return}function aj(f,g,h){f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0;g=c[h>>2]|0;h=d[10064+((e[g+8>>1]|0)&31)>>0]|0;do if((h|0)==2|(h|0)==1|(h|0)==4){j=Pg(g,1)|0;i=c[f>>2]|0;g=((j|0)<0)<<31>>31;h=i+8|0;if(!(b[h>>1]&9312)){c[i>>2]=j;c[i+4>>2]=g;b[h>>1]=4;break}else{Vg(i,j,g);break}}else if((h|0)==3){i=Og(g,1)|0;if(i){g=a[i>>0]|0;if(!(g<<24>>24)){j=0;i=0}else{h=g;g=0;do{g=g+1|0;k=i+1|0;if((h&255)>191){j=i;i=k;while(1){h=a[i>>0]|0;if((h&-64)<<24>>24==-128){h=i;i=j+2|0;j=h}else break}}else{h=a[k>>0]|0;i=k}}while(h<<24>>24!=0);j=g;i=((g|0)<0)<<31>>31}g=c[f>>2]|0;h=g+8|0;if(!(b[h>>1]&9312)){c[g>>2]=j;c[g+4>>2]=i;b[h>>1]=4;break}else{Vg(g,j,i);break}}}else{h=c[f>>2]|0;g=h+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;break}else{rg(h);break}}while(0);return}function bj(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=c[f>>2]|0;h=b[g+8>>1]|0;i=f+4|0;e=b[(c[i>>2]|0)+8>>1]|0;do if(!((-1431655766>>>(e&31)|-1431655766>>>(h&31))&1)){j=Pg(g,1)|0;l=Pg(c[i>>2]|0,1)|0;f=c[f>>2]|0;if(!((e|h)&15)){e=ld(f)|0;f=0;k=ld(c[i>>2]|0)|0}else{e=Og(f,1)|0;f=1;k=Og(c[i>>2]|0,1)|0}a:do if((l|0)>(j|0)){e=1;g=1}else{g=1;h=j;while(1){if(!(Vv(e,k,l)|0)){e=0;break a}g=g+1|0;i=(f|0)==0;do{h=h+-1|0;e=e+1|0;if(i){f=0;break}}while((a[e>>0]&-64)<<24>>24==-128);if((l|0)>(h|0)){e=1;break}}}while(0);h=c[d>>2]|0;f=e?0:g;e=e?0:((g|0)<0)<<31>>31;g=h+8|0;if(!(b[g>>1]&9312)){c[h>>2]=f;c[h+4>>2]=e;b[g>>1]=4;break}else{Vg(h,f,e);break}}while(0);return}function cj(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=c[g+4>>2]|0;do if(!(-1431655766>>>((e[h+8>>1]|0)&31)&1)){n=(f|0)==3;if(n?(-1431655766>>>((e[(c[g+8>>2]|0)+8>>1]|0)&31)&1|0)!=0:0)break;p=b[(c[g>>2]|0)+8>>1]|0;k=Rg(h)|0;l=((k|0)<0)<<31>>31;p=(p&15)==0;i=c[g>>2]|0;if(p){i=Pg(i,1)|0;j=ld(c[g>>2]|0)|0;if(!j)break;else o=i}else{j=Og(i,1)|0;if(!j)break;if((k|0)<0?(m=a[j>>0]|0,m<<24>>24!=0):0){i=0;h=j;do{f=h+1|0;if((m&255)>191)while(1){m=a[f>>0]|0;if((m&-64)<<24>>24==-128){o=f;f=h+2|0;h=o}else{h=f;break}}else{m=a[f>>0]|0;h=f}i=i+1|0}while(m<<24>>24!=0);o=i}else o=0}if(n){n=Rg(c[g+8>>2]|0)|0;f=((n|0)<0)<<31>>31;g=(n|0)<0;h=$v(0,0,n|0,f|0)|0;h=g?h:n;f=g?C:f;n=n>>>31}else{f=c[(c[(c[d>>2]|0)+32>>2]|0)+88>>2]|0;h=f;f=((f|0)<0)<<31>>31;n=0}do if((k|0)<0){k=fw(o|0,((o|0)<0)<<31>>31|0,k|0,l|0)|0;l=C;if((l|0)<0){h=fw(h|0,f|0,k|0,l|0)|0;f=C;g=(f|0)<0;k=0;l=0;h=g?0:h;f=g?0:f}}else if((k|0)>0){k=fw(k|0,l|0,-1,-1)|0;l=C;break}else{g=((f|0)>0|(f|0)==0&h>>>0>0)<<31>>31;h=fw(g|0,((g|0)<0)<<31>>31|0,h|0,f|0)|0;f=C;break}while(0);if(!n){n=k;m=l}else{n=$v(k|0,l|0,h|0,f|0)|0;m=C;g=(m|0)<0;n=g?0:n;m=g?0:m;h=g?k:h;f=g?l:f}if(p){g=fw(h|0,f|0,n|0,m|0)|0;l=C;i=((o|0)<0)<<31>>31;if((l|0)>(i|0)|(l|0)==(i|0)&g>>>0>o>>>0){h=$v(o|0,i|0,n|0,m|0)|0;f=C;g=(f|0)<0;h=g?0:h;f=g?0:f}xd(d,j+n|0,h,f,-1);break}i=a[j>>0]|0;if(((n|0)!=0|(m|0)!=0)&i<<24>>24!=0)do{l=j+1|0;if((i&255)>191){k=j;j=l;while(1){i=a[j>>0]|0;if((i&-64)<<24>>24==-128){g=j;j=k+2|0;k=g}else break}}else{i=a[l>>0]|0;j=l}n=fw(n|0,m|0,-1,-1)|0;m=C}while(((n|0)!=0|(m|0)!=0)&i<<24>>24!=0);if(i<<24>>24!=0&((h|0)!=0|(f|0)!=0)){m=f;f=j;do{k=f+1|0;if((i&255)>191)while(1){i=a[k>>0]|0;if((i&-64)<<24>>24==-128){g=k;k=f+2|0;f=g}else{f=k;break}}else{i=a[k>>0]|0;f=k}h=fw(h|0,m|0,-1,-1)|0;m=C}while(i<<24>>24!=0&((h|0)!=0|(m|0)!=0))}else f=j;g=f-j|0;Fd(d,j,g,((g|0)<0)<<31>>31,-1,1)}while(0);return}function dj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+48|0;if((i|0)>=(j|0))ba();h=l;k=l+32|0;g=l+4|0;if((d|0)>0?(f=Og(c[e>>2]|0,1)|0,(f|0)!=0):0){c[k>>2]=d+-1;c[k+4>>2]=0;c[k+8>>2]=e+4;c[g+0>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;c[g+16>>2]=0;c[g+20>>2]=1e9;a[g+24>>0]=1;a[g+25>>0]=0;c[g>>2]=c[(c[b>>2]|0)+32>>2];c[h>>2]=k;An(g,2,f,h);f=c[g+12>>2]|0;Sg(b,pg(g)|0,f,1,75)}i=l;return}function ej(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();e=h;f=Og(c[f>>2]|0,1)|0;c[e>>2]=f;do if((f|0)!=0?(a[f>>0]|0)!=0:0){g=In(e)|0;e=c[d>>2]|0;d=((g|0)<0)<<31>>31;f=e+8|0;if(!(b[f>>1]&9312)){c[e>>2]=g;c[e+4>>2]=d;b[f>>1]=4;break}else{Vg(e,g,d);break}}while(0);i=h;return}function fj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=Pc(d<<2|1)|0;if(!i)Nd(b);else{if((d|0)>0){h=0;f=i;do{g=Rg(c[e+(h<<2)>>2]|0)|0;j=C;g=j>>>0>0|(j|0)==0&g>>>0>1114111?65533:g&2097151;do if(g>>>0>=128){if(g>>>0<2048){a[f>>0]=g>>>6&31|192;a[f+1>>0]=g&63|128;f=f+2|0;break}if(g>>>0<65536){a[f>>0]=g>>>12&15|224;a[f+1>>0]=g>>>6&63|128;a[f+2>>0]=g&63|128;f=f+3|0;break}else{a[f>>0]=g>>>18|240;a[f+1>>0]=g>>>12&63|128;a[f+2>>0]=g>>>6&63|128;a[f+3>>0]=g&63|128;f=f+4|0;break}}else{a[f>>0]=g;f=f+1|0}while(0);h=h+1|0}while((h|0)!=(d|0))}else f=i;f=f-i|0;Fd(b,i,f,((f|0)<0)<<31>>31,1,1)}return}function gj(f,g,h){f=f|0;g=g|0;h=h|0;var i=0.0,j=0,k=0;g=c[h>>2]|0;h=d[10064+((e[g+8>>1]|0)&31)>>0]|0;a:do if((h|0)==5){h=c[f>>2]|0;g=h+8|0;if(!(b[g>>1]&9312)){b[g>>1]=1;break}else{rg(h);break}}else if((h|0)==1){g=Rg(g)|0;j=C;do if((j|0)<0)if((g|0)==0&(j|0)==-2147483648){c[f+20>>2]=1;a[f+25>>0]=1;Tg(c[f>>2]|0,20248,-1,1,-1)|0;break a}else{g=$v(0,0,g|0,j|0)|0;k=C;break}else k=j;while(0);h=c[f>>2]|0;j=h+8|0;if(!(b[j>>1]&9312)){c[h>>2]=g;c[h+4>>2]=k;b[j>>1]=4;break}else{Vg(h,g,k);break}}else{i=+Qg(g);if(i<0.0)i=-i;Ug(c[f>>2]|0,i)}while(0);return}function hj(b,d,f){b=b|0;d=d|0;f=f|0;var g=0.0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+32|0;if((i|0)>=(j|0))ba();o=q+8|0;p=q;if((d|0)==2){d=c[f+4>>2]|0;if(!(-1431655766>>>(e[d+8>>1]&31)&1)){n=Rg(d)|0;n=(n|0)>30?30:n;n=(n|0)<0?0:n;m=4}}else{n=0;m=4}a:do if((m|0)==4?(l=c[f>>2]|0,(-1431655766>>>(e[l+8>>1]&31)&1|0)==0):0){g=+Qg(l);h[p>>3]=g;d=(n|0)==0;do if(d&g>=0.0&g<9223372036854775808.0){g=g+.5;g=+(~~g>>>0>>>0)+4294967296.0*+((+N(g)>=1.0?(g>0.0?~~+$(+M(g/4294967296.0),4294967295.0)>>>0:~~+Z((g-+(~~g>>>0))/4294967296.0)>>>0):0)|0);h[p>>3]=g}else{if(d&g<0.0&g>-9223372036854775808.0){g=.5-g;g=-(+(~~g>>>0>>>0)+4294967296.0*+((+N(g)>=1.0?(g>0.0?~~+$(+M(g/4294967296.0),4294967295.0)>>>0:~~+Z((g-+(~~g>>>0))/4294967296.0)>>>0):0)|0));h[p>>3]=g;break}c[o>>2]=n;d=o+4|0;h[k>>3]=g;c[d>>2]=c[k>>2];c[d+4>>2]=c[k+4>>2];d=Wc(20312,o)|0;if(!d){Nd(b);break a}else l=d;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;Pl(d,p,l-d&1073741823,1)|0;Sc(d);g=+h[p>>3]}while(0);Ug(c[b>>2]|0,g)}while(0);i=q;return}function ij(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Og(c[f>>2]|0,1)|0;e=Pg(c[f>>2]|0,1)|0;if((g|0)!=0?(h=fw(e|0,((e|0)<0)<<31>>31|0,1,0)|0,h=go(b,h,C)|0,(h|0)!=0):0){if((e|0)>0){f=0;do{i=d[g+f>>0]|0;a[h+f>>0]=((d[10368+i>>0]|0|223)^32)&i;f=f+1|0}while((f|0)!=(e|0))}Sg(b,h,e,1,1)}return}function jj(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0;g=Og(c[f>>2]|0,1)|0;e=Pg(c[f>>2]|0,1)|0;if((g|0)!=0?(h=fw(e|0,((e|0)<0)<<31>>31|0,1,0)|0,h=go(b,h,C)|0,(h|0)!=0):0){if((e|0)>0){f=0;do{a[h+f>>0]=a[9328+(d[g+f>>0]|0)>>0]|0;f=f+1|0}while((f|0)!=(e|0))}Sg(b,h,e,1,1)}return}function kj(a,b,c){a=a|0;b=b|0;c=c|0;Sg(a,8632,-1,1,0);return}function lj(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;e=ld(c[f>>2]|0)|0;i=Pg(c[f>>2]|0,1)|0;j=ew(i|0,((i|0)<0)<<31>>31|0,1)|0;j=go(b,j|1,C)|0;if(j){if((i|0)>0){g=i<<1;h=0;f=j;while(1){k=d[e>>0]|0;a[f>>0]=a[20288+(k>>>4)>>0]|0;a[f+1>>0]=a[20288+(k&15)>>0]|0;h=h+1|0;if((h|0)==(i|0))break;else{e=e+1|0;f=f+2|0}}f=j+g|0}else f=j;a[f>>0]=0;Sg(b,j,i<<1,1,1)}return}function mj(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();d=h;_c(8,d);f=d;e=c[f>>2]|0;f=c[f+4>>2]|0;if((f|0)<0){g=$v(0,0,e|0,f&2147483647|0)|0;f=C;c[d>>2]=g;c[d+4>>2]=f}else g=e;e=c[a>>2]|0;d=e+8|0;if(!(b[d>>1]&9312)){c[e>>2]=g;c[e+4>>2]=f;b[d>>1]=4}else Vg(e,g,f);i=h;return}function nj(a,b,d){a=a|0;b=b|0;d=d|0;d=Rg(c[d>>2]|0)|0;d=(d|0)<1?1:d;b=go(a,d,((d|0)<0)<<31>>31)|0;if(b){_c(d,b);Sg(a,b,d,0,1)}return}function oj(a,b,d){a=a|0;b=b|0;d=d|0;if(dm(c[d>>2]|0,c[d+4>>2]|0,c[(c[(c[a+12>>2]|0)+4>>2]|0)+(((c[a+16>>2]|0)+-1|0)*20|0)+16>>2]|0)|0)Wg(c[a>>2]|0,c[d>>2]|0)|0;return}function pj(a,b,c){a=a|0;b=b|0;c=c|0;Sg(a,10768,-1,1,0);return}function qj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;b=i;i=i+16|0;if((i|0)>=(j|0))ba();a=b;e=Rg(c[d>>2]|0)|0;c[a>>2]=Og(c[d+4>>2]|0,1)|0;ZcZc(14,14848,f);b=_n(14,47896,g,28919)|0}i=k;return b|0}function qk(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Gb()|0))a=Mb(a|0,b|0,c|0)|0;else a=0;return a|0}function rk(){return sb(30)|0}function sk(a){a=a|0;qo(a);return 0}function tk(a,b){a=a|0;b=b|0;return 0}function uk(a,b){a=a|0;b=b|0;return 0}function vk(a,b){a=a|0;b=b|0;c[b>>2]=0;return 0}function wk(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;Zn(a);yk(a,0)|0;f=c[a+8>>2]|0;if(f){if(c[f+24>>2]|0){b=a+28|0;e=c[b>>2]|0;d=f+28|0;c[e+8>>2]=c[d>>2];c[d>>2]=e;c[a+12>>2]=-1;c[b>>2]=0}d=f+16|0;b=(c[d>>2]|0)+-1|0;c[d>>2]=b;if(!b){wo(a);g=f+36|0;b=c[g>>2]|0;d=f+32|0;e=c[d>>2]|0;if(!b)c[12178]=e;else c[b+32>>2]=e;b=c[d>>2]|0;if(b)c[b+36>>2]=c[g>>2];Sc(f)}}qo(a);return 0}function xk(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();m=q;o=d+16|0;f=a[o>>0]|0;a:do if((f&255|0)<(e|0)){l=c[d+8>>2]|0;p=l+12|0;g=a[p>>0]|0;if(f<<24>>24!=g<<24>>24?(g&255)>2|(e|0)>1:0){f=5;break}h=(e|0)==1;do if(h)if((g+-1&255)<2){a[o>>0]=1;f=l+8|0;c[f>>2]=(c[f>>2]|0)+1;f=l+24|0;c[f>>2]=(c[f>>2]|0)+1;f=0;break a}else{g=m+8|0;c[g>>2]=1;b[m+2>>1]=0;n=10;break}else{g=m+8|0;c[g>>2]=1;b[m+2>>1]=0;if((e|0)==4)if((f&255)<3)n=10;else{k=g;n=14}else{h=g;n=24}}while(0);if((n|0)==10){b[m>>1]=h&1^1;c[m+4>>2]=c[2514];if(!(xo(d,m)|0)){k=g;n=14}else{g=c[(Db()|0)>>2]|0;switch(g|0){case 13:case 37:case 4:case 16:case 110:case 11:{f=5;break a}case 1:{f=3;break}default:f=3850}c[d+20>>2]=g;break}}b:do if((n|0)==14)if(h){h=m+4|0;c[h>>2]=(c[2514]|0)+2;c[k>>2]=510;c:do if(!(xo(d,m)|0)){f=0;g=0}else{g=c[(Db()|0)>>2]|0;switch(g|0){case 1:{f=3;g=1;break c}case 13:case 37:case 4:case 16:case 110:case 11:{f=5;break c}default:{f=3850;break c}}}while(0);c[h>>2]=c[2514];c[k>>2]=1;b[m>>1]=2;do if((xo(d,m)|0)!=0&(f|0)==0){f=2058;g=c[(Db()|0)>>2]|0}else{if((f|0)==5){f=5;break a}else if(f)break;a[o>>0]=1;m=l+24|0;c[m>>2]=(c[m>>2]|0)+1;c[l+8>>2]=1;break b}while(0);c[d+20>>2]=g;break a}else{h=k;n=24}while(0);do if((n|0)==24){k=(e|0)==4;if(k)if((c[l+8>>2]|0)>1)f=5;else{b[m>>1]=1;g=c[2514]|0;n=29}else{b[m>>1]=1;g=c[2514]|0;if((e|0)==2){c[m+4>>2]=g+1;g=1;n=30}else n=29}if((n|0)==29){c[m+4>>2]=g+2;g=510;n=30}if((n|0)==30){c[h>>2]=g;if(!(xo(d,m)|0))break;g=c[(Db()|0)>>2]|0;switch(g|0){case 13:case 37:case 4:case 16:case 110:case 11:{f=5;break}case 1:{f=3;n=33;break}default:{f=3850;n=33}}if((n|0)==33)c[d+20>>2]=g;if(!k)break a}a[o>>0]=3;a[p>>0]=3;break a}while(0);f=e&255;a[o>>0]=f;a[p>>0]=f;f=0}else f=0;while(0);i=q;return f|0}function yk(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();k=n;l=d+16|0;f=a[l>>0]|0;a:do if((f&255|0)>(e|0)){m=c[d+8>>2]|0;do if((f&255)>1){if((e|0)==1){b[k>>1]=0;h=k+2|0;b[h>>1]=0;f=k+4|0;c[f>>2]=(c[2514]|0)+2;g=k+8|0;c[g>>2]=510;if(xo(d,k)|0){c[d+20>>2]=c[(Db()|0)>>2];f=2314;break a}}else{g=k+8|0;h=k+2|0;f=k+4|0}b[k>>1]=2;b[h>>1]=0;c[f>>2]=c[2514];c[g>>2]=2;if(!(xo(d,k)|0)){a[m+12>>0]=1;break}else{c[d+20>>2]=c[(Db()|0)>>2];f=2058;break a}}while(0);if(!e){g=m+8|0;f=(c[g>>2]|0)+-1|0;c[g>>2]=f;do if(!f){b[k>>1]=2;b[k+2>>1]=0;c[k+8>>2]=0;c[k+4>>2]=0;if(!(xo(d,k)|0)){a[m+12>>0]=0;f=0;break}else{c[d+20>>2]=c[(Db()|0)>>2];a[m+12>>0]=0;a[l>>0]=0;f=2058;break}}else f=0;while(0);h=m+24|0;g=(c[h>>2]|0)+-1|0;c[h>>2]=g;if(!g)wo(d);if(f)break}a[l>>0]=e;f=0}else f=0;while(0);i=n;return f|0}function zk(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;m=i;i=i+32|0;if((i|0)>=(j|0))ba();k=m;l=m+8|0;h=c[e+8>>2]|0;n=(d[h+12>>0]|0)>1;g=n&1;do if(!n)if(!(a[h+13>>0]|0)){b[l+2>>1]=0;c[l+4>>2]=(c[2514]|0)+1;c[l+8>>2]=1;b[l>>1]=1;n=c[11910]|0;h=c[e+12>>2]|0;c[k>>2]=l;if(!(Yb[n&63](h,12,k)|0)){h=0;g=(b[l>>1]|0)==2?g:1;break}else{c[e+20>>2]=c[(Db()|0)>>2];h=3594;break}}else{h=0;g=0}else{h=0;g=1}while(0);c[f>>2]=g;i=m;return h|0}function Ak(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+160|0;if((i|0)>=(j|0))ba();y=A;t=A+76|0;m=dc[c[47552+292>>2]&7]()|0;if((m|0)<32768)z=1;else z=(m|0)/32768|0;w=d+36|0;m=c[w>>2]|0;a:do if(!m){m=Pc(16)|0;if(!m)l=7;else{c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;s=d+8|0;q=c[s>>2]|0;l=c[q+20>>2]|0;b:do if(!l){r=d+32|0;n=c[r>>2]|0;if((nc[c[47552+64>>2]&127](c[d+12>>2]|0,t)|0)!=0?(a[q+13>>0]|0)==0:0)l=1802;else x=8;c:do if((x|0)==8){l=cw(n|0)|0;o=l+42|0;u=Pc(o)|0;if(u){bw(u|0,0,o|0)|0;p=u+36|0;c[u+8>>2]=p;c[y>>2]=n;Yc(l+6|0,p,48720,y)|0;l=u+12|0;c[l>>2]=-1;s=c[s>>2]|0;c[s+20>>2]=u;c[u>>2]=s;c[u+4>>2]=8;if(a[q+13>>0]|0){l=u;break b}if(!(bg(c[r>>2]|0,48728,0)|0))o=66;else{a[u+22>>0]=1;o=0}n=Xn(p,o,c[t+12>>2]&511)|0;c[l>>2]=n;if((n|0)<0){c[y>>2]=29706;c[y+4>>2]=10788;ZcZc(14,14848,E);h=c[f>>2]|0;g=c[h>>2]|0;if(!g)e=14;else{hc[c[g+4>>2]&127](h)|0;c[h>>2]=0;e=14}}else e=0}}else e=0;if(!(c[c[f>>2]>>2]|0))if((a[b+4>>0]|0)==0?(v=c[b+60>>2]|0,w=c[v>>2]|0,(w|0)!=0):0){if(!(a[b+13>>0]|0))nc[c[w+32>>2]&127](v,1)|0;if((a[s>>0]|0)!=5){a[s>>0]=1;D=52}else D=52}else D=52;else{e=Fo(b)|0;if(!e){e=Go(b,1)|0;a[x>>0]=0;D=52}}if((D|0)==52)if(!e)break;B=e&255;if(!((B|0)==10|(B|0)==13))break a;c[b+40>>2]=e;a[x>>0]=6;break a}while(0);h=b+12|0;if((a[h>>0]|0)==0?(a[b+23>>0]|0)!=0:0){c[y>>2]=0;e=Eo(b,y)|0;if(e)break a;if(c[y>>2]|0){e=c[b+60>>2]|0;e=pc[c[(c[e>>2]|0)+8>>2]&31](e,z,16,24,0)|0;if(!((e|0)==0|(e|0)==522))break a}else{g=z+0|0;f=g+16|0;do{a[g>>0]=0;g=g+1|0}while((g|0)<(f|0))}if(Vv(b+104|0,z,16)|0)tn(b)}if(!(a[h>>0]|0)){e=Eo(b,A)|0;if(!e){g=c[b>>2]|0;f=c[b+212>>2]|0;if(!(c[A>>2]|0)){e=Yb[c[g+28>>2]&63](g,f,0)|0;c[B>>2]=0;if((e|0)!=5898)D=68}else{e=lc[c[g+32>>2]&31](g,f,0,B)|0;D=68}if((D|0)==68){if(e)break;if(c[B>>2]|0){e=al(b,0)|0;break}}e=b+5|0;if((a[e>>0]|0)==5){a[e>>0]=0;e=0}else e=0}}else e=0}else e=0;while(0);f=c[C>>2]|0;if(!f)D=78;else D=74}else D=74;while(0);if((D|0)==74){c[E>>2]=0;Ho(f);f=c[C>>2]|0;g=0;do{g=g+1|0;e=Io(f,E,0,g)|0}while((e|0)==-1);if(!(c[E>>2]|e))D=78;else{tn(b);D=78}}if((D|0)==78){if((a[b+16>>0]|0)==0&(e|0)==0)e=Eo(b,b+24|0)|0;if(!e){a[b+16>>0]=1;e=0;break}}Jo(b)}while(0);i=F;return e|0}function $k(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;f=vg(c[b>>2]|0,d,g,f)|0;if(!f){g=c[g>>2]|0;f=c[g+8>>2]|0;c[f+56>>2]=c[g+4>>2];c[f+68>>2]=g;c[f+52>>2]=b;c[f+72>>2]=d;a[f+6>>0]=(d|0)==1?100:0;c[e>>2]=f;f=0}i=h;return f|0}function al(b,d){b=b|0;d=d|0;var e=0,f=0;do if((a[b+12>>0]|0)==0?(c[b+208>>2]|0)==0:0){d=c[c[b+60>>2]>>2]|0;if(!(a[b+4>>0]|0)){if((c[d>>2]|0)<=1){d=14;break}if(!(c[d+52>>2]|0)){d=14;break}}d=c[b+64>>2]|0;e=c[d>>2]|0;if(e){hc[c[e+4>>2]&127](d)|0;c[d>>2]=0}d=ln(b)|0;if(!d){a[b+5>>0]=5;a[b+16>>0]=0;d=0}}else f=10;while(0);if((f|0)==10){c[d>>2]=1;d=0}return d|0}function bl(b,d){b=b|0;d=d|0;var e=0,f=0;f=b+17|0;e=a[f>>0]|0;do if((e&255|0)<(d|0)|e<<24>>24==5){if(!(a[b+13>>0]|0)){e=c[b+60>>2]|0;e=nc[c[(c[e>>2]|0)+28>>2]&127](e,d)|0;if(e)break;e=a[f>>0]|0}if(e<<24>>24!=5|(d|0)==4){a[f>>0]=d;e=0}else e=0}else e=0;while(0);return e|0}function cl(a){a=a|0;var b=0,d=0,e=0;b=c[a+4>>2]|0;a=c[b+444>>2]|0;if((a|0)!=0?(e=b+452|0,d=c[e>>2]|0,(d|0)>=0):0){a=nc[a&127](c[b+448>>2]|0,d)|0;if(!a)b=-1;else b=(c[e>>2]|0)+1|0;c[e>>2]=b}else a=0;return a|0}function dl(b,d){b=b|0;d=d|0;var 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;n=b+96|0;e=c[n>>2]|0;a:do if((e|0)<(d|0)?(a[b+6>>0]|0)!=0:0){f=b+92|0;q=ng(c[f>>2]|0,d*48|0,0)|0;if(!q)e=7;else{bw(q+(e*48|0)|0,0,(d-e|0)*48|0)|0;c[f>>2]=q;i=b+24|0;j=b+64|0;k=b+148|0;l=b+52|0;m=b+208|0;h=b+72|0;while(1){g=c[i>>2]|0;b=q+(e*48|0)|0;c[q+(e*48|0)+20>>2]=g;if((c[c[j>>2]>>2]|0)!=0?(p=h,o=c[p>>2]|0,p=c[p+4>>2]|0,(p|0)>0|(p|0)==0&o>>>0>0):0){c[b>>2]=o;c[b+4>>2]=p}else{c[b>>2]=c[k>>2];c[b+4>>2]=0}c[q+(e*48|0)+24>>2]=c[l>>2];f=mg(512,0)|0;if(!f)break;bw(f|0,0,512)|0;c[f>>2]=g;c[q+(e*48|0)+16>>2]=f;f=c[m>>2]|0;if(f){c[q+(e*48|0)+28>>2]=c[f+68>>2];c[q+(e*48|0)+32>>2]=c[f+76>>2];c[q+(e*48|0)+36>>2]=c[f+80>>2];c[q+(e*48|0)+40>>2]=c[f+104>>2]}e=e+1|0;c[n>>2]=e;if((e|0)>=(d|0)){e=0;break a}}c[q+(e*48|0)+16>>2]=f;e=7}}else e=0;while(0);return e|0}function el(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0;do if(e){f=c[e+4>>2]|0;if(!(c[f>>2]|0)){f=Ko(a,d,e)|0;break}e=f+26|0;g=b[e>>1]|0;if(!(g<<16>>16)){h=a+12|0;c[h>>2]=(c[h>>2]|0)+1}b[e>>1]=g+1<<16>>16;if((d|0)==1)c[a+44>>2]=f}else f=0;while(0);return f|0}function fl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=a+96|0;d=c[h>>2]|0;if((d|0)>0){g=a+92|0;f=0;a=0;do{e=c[g>>2]|0;if((c[e+(f*48|0)+20>>2]|0)>>>0>=b>>>0){a=Zh(c[e+(f*48|0)+16>>2]|0,b)|0|a;d=c[h>>2]|0}f=f+1|0}while((f|0)<(d|0))}else a=0;return a|0}function gl(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+32|0;if((i|0)>=(j|0))ba();w=y;s=y+16|0;t=y+12|0;v=y+8|0;q=c[a+68>>2]|0;a:do if((q|0)!=0?(b[a+40>>1]|0)!=0:0){r=d*383&8191;u=(q+33|0)>>>12;b:while(1){g=Lo(a,u,s,t,v)|0;if(g)break a;g=(c[s>>2]|0)+(r<<1)|0;if(!(b[g>>1]|0))g=0;else{n=c[v>>2]|0;o=c[s>>2]|0;p=c[t>>2]|0;k=g;l=r;g=0;m=8192;while(1){h=(e[k>>1]|0)+n|0;if(h>>>0<=q>>>0)g=(c[p+(e[k>>1]<<2)>>2]|0)==(d|0)?h:g;if(!m){x=11;break b}l=l+1&8191;k=o+(l<<1)|0;if(!(b[k>>1]|0))break;else m=m+-1|0}}if((u|0)>0&(g|0)==0)u=u+-1|0;else{x=14;break}}if((x|0)==11){c[w>>2]=51262;c[w+4>>2]=10788;Zc
6 |0)+64|0;X=ta+(sa*80|0)+44|0;if(c[(c[h>>2]|0)+36>>2]&16384){H=d[X>>0]|0;R=g+(H*72|0)+8|0;W=c[Ha>>2]|0;v=Kq(f)|0;Y=c[ka>>2]|0;c[ka>>2]=Y+1;Y=sh(v,44,Y,0,0)|0;v=c[g+(H*72|0)+24>>2]|0;da=c[va>>2]|0;y=c[wa>>2]|0;Q=y+(da*48|0)|0;J=c[h>>2]|0;x:do if((da|0)>0){w=g+(H*72|0)+48|0;s=v+4|0;t=J+48|0;D=0;z=0;x=0;r=0;B=0;while(1){A=c[y>>2]|0;da=J;do if((c[da>>2]|0)==0&(c[da+4>>2]|0)==0){if(b[y+20>>1]&2)break;if(c[A+4>>2]&1)break;da=c[w>>2]|0;c[Ka+0>>2]=0;c[Ka+4>>2]=0;c[Ka+8>>2]=0;c[Ka+12>>2]=0;c[Ka+16>>2]=0;c[Ka+20>>2]=0;a[pa>>0]=3;c[Ka>>2]=78;c[qa>>2]=79;c[ra>>2]=da;ns(Ka,A)|0;if(!(a[pa>>0]|0))break;da=c[f>>2]|0;r=os(da,r,Ir(da,A,0,0)|0)|0}while(0);do if(!(Iu(y,R,q,p)|0)){F=D;A=z;h=x}else{A=c[y+12>>2]|0;if((A|0)>63){F=0;E=-2147483648}else{F=ew(1,0,A|0)|0;E=C}if(!(B<<24>>24)){B=c[(c[s>>2]|0)+(A*24|0)>>2]|0;c[Ka>>2]=c[v>>2];c[Ka+4>>2]=B;Zc);k=l;g=b[e+36>>1]|0;h=c[a>>2]|0;f=c[e>>2]|0;if(g<<16>>16>-1){g=c[(c[e+4>>2]|0)+((g<<16>>16)*24|0)>>2]|0;c[k>>2]=f;c[k+4>>2]=g;g=1555;f=qh(h,27824,k)|0}else{c[k>>2]=f;g=2579;f=qh(h,34408,k)|0}vs(a,g,d,f,-1,2);i=l;return}function Ct(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+316|0;h=c[g>>2]|0;d=hr(b,h,Ir(c[b>>2]|0,d,0,0)|0)|0;if(d){b=(c[d>>2]|0)+-1|0;h=c[d+4>>2]|0;c[h+(b*20|0)+16>>2]=e;b=h+(b*20|0)+13|0;a[b>>0]=a[b>>0]&-5|f<<2&4}c[g>>2]=d;return}function Dt(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=c[e>>2]|0;if(!(g+-1&g)){i=_((g|0)==0?1:g<<1,d)|0;a=no(a,b,i,((i|0)<0)<<31>>31)|0;if(!a){c[f>>2]=-1;a=b}else h=4}else{a=b;h=4}if((h|0)==4){bw(a+(_(g,d)|0)|0,0,d|0)|0;c[f>>2]=g;c[e>>2]=(c[e>>2]|0)+1}return a|0}function Et(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;c[h>>2]=0;b=c[a+12>>2]|0;if((b|0)!=0?(d=c[b+24>>2]|0,(d|0)>0):0){c[h>>2]=d;b=d}else b=0;d=c[a+16>>2]|0;if((d|0)!=0?(e=c[d+24>>2]|0,(e|0)>(b|0)):0)c[h>>2]=e;f=a+4|0;b=a+20|0;if(!(c[f>>2]&2048)){d=c[b>>2]|0;if(d){pu(d,h);b=c[b>>2]|0;if((b|0)!=0?(g=c[b>>2]|0,(g|0)>0):0){e=c[b+4>>2]|0;d=0;b=0;do{b=c[(c[e+(d*20|0)>>2]|0)+4>>2]|b;d=d+1|0}while((d|0)!=(g|0));b=b&2097408}else b=0;c[f>>2]=c[f>>2]|b}}else As(c[b>>2]|0,h);c[a+24>>2]=(c[h>>2]|0)+1;i=k;return}function Ft(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Kq(b)|0;i=b+72|0;h=(c[i>>2]|0)+1|0;c[i>>2]=h;b=ih(c[b>>2]|0,8,0)|0;if(b){i=b;c[i>>2]=e;c[i+4>>2]=f}th(g,sh(g,26,0,h,0)|0,b,-13);eq(g,1);if(!(a[(c[g>>2]|0)+65>>0]|0))Tg(c[g+16>>2]|0,d,-1,1,0)|0;sh(g,35,h,1,0)|0;return}function Gt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;d=c[b>>2]|0;e=d+16|0;f=c[(c[e>>2]|0)+20>>2]|0;do if(!f)d=0;else{if((a[d+63>>0]|0)!=0?(a[f+8>>0]|0)==0:0){Il(f);c[(c[e>>2]|0)+20>>2]=0;Ag(d);d=0;break}ph(b,32128,g);d=1}while(0);i=h;return d|0}function Ht(b){b=b|0;var e=0,f=0,g=0;if((a[b+63>>0]|0)!=0?(e=c[b+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[b+16>>2]|0;while(1){e=e+-1|0;b=c[f+4>>2]|0;if(b)po(b,c[g>>2]&28|d[f+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function It(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;x=c[g+20>>2]|0;m=c[g+40>>2]|0;if((x|0)==1){s=b[f+36>>1]|0;l=s<<16>>16;if(s<<16>>16>-1)if((m|0)!=0?($c(c[(c[f+4>>2]|0)+(l*24|0)>>2]|0,m)|0)!=0:0){v=0;y=8}else k=0;else{v=0;y=8}}else if(k){l=ih(c[d>>2]|0,x<<2,0)|0;if(!l)k=1;else{c[k>>2]=l;v=l;y=8}}else{v=0;y=8}a:do if((y|0)==8){k=c[f+8>>2]|0;b:do if(k){s=(m|0)==0;u=(x|0)>0;r=f+4|0;t=(v|0)==0;c:while(1){do if((e[k+46>>1]|0)==(x|0)?(a[k+50>>0]|0)!=0:0){if(s)if((a[k+51>>0]&3)==2){y=16;break c}else break;d:do if(u){n=c[k+4>>2]|0;o=c[r>>2]|0;p=c[k+32>>2]|0;q=0;while(1){f=b[n+(q<<1)>>1]|0;m=c[o+(f*24|0)+16>>2]|0;if($c(c[p+(q<<2)>>2]|0,(m|0)!=0?m:11152)|0){m=q;break d}m=c[o+(f*24|0)>>2]|0;l=0;while(1){f=l+1|0;if(!($c(c[g+(l<<3)+40>>2]|0,m)|0)){f=l;y=23;break}if((f|0)<(x|0))l=f;else break}if((y|0)==23){y=0;if(!t)c[v+(q<<2)>>2]=c[g+(f<<3)+36>>2]}m=q+1|0;if((f|0)==(x|0)){m=q;break d}if((m|0)<(x|0))q=m;else break}}else m=0;while(0);if((m|0)==(x|0))break c}while(0);k=c[k+20>>2]|0;if(!k)break b}if((y|0)==16)if(!(t|u^1)){l=0;do{c[v+(l<<2)>>2]=c[g+(l<<3)+36>>2];l=l+1|0}while((l|0)!=(x|0))}c[h>>2]=k;k=0;break a}while(0);if(!(a[d+438>>0]|0)){s=c[g+8>>2]|0;c[w>>2]=c[c[g>>2]>>2];c[w+4>>2]=s;ph(d,32008,w)}ig(c[d>>2]|0,v);k=1}while(0);i=z;return k|0}function Jt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if(!(c[d+12>>2]|0)){c[h>>2]=0;l=c[b>>2]|0;g=d+4|0;d=c[g>>2]|0;Vr(l,c[d+(e*24|0)+4>>2]|0,a[l+62>>0]|0,a[d+(e*24|0)+21>>0]|0,h)|0;d=c[h>>2]|0;if(d)th(b,-1,d,-8);if((a[(c[g>>2]|0)+(e*24|0)+21>>0]|0)==69)sh(b,39,f,0,0)|0}i=k;return}function Kt(c,d,f){c=c|0;d=d|0;f=f|0;var g=0;if(!d)g=0;else{g=d;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Oh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[g>>1]=e[g>>1]|f&255}return}function Lt(d,e,f,g,h,i,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=c[d+8>>2]|0;r=c[e+12>>2]|0;do if(i){l=e+36|0;if(!(c[l>>2]|0)){c[i>>2]=0;break}else{c[i>>2]=ts(q)|0;c[d+96>>2]=f;p=d+100|0;c[p>>2]=(c[p>>2]|0)+1;ct(d,c[l>>2]|0,c[i>>2]|0,16);break}}while(0);if((h|0)!=0?(a[e+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[l>>1]|0;n=l&65535;o=d+60|0;h=c[o>>2]|0;p=d+56|0;i=c[p>>2]|0;if((i|0)<(n|0)){h=d+72|0;m=c[h>>2]|0;c[h>>2]=m+n;m=m+1|0}else{c[o>>2]=h+n;c[p>>2]=i-n;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[j+36>>2]|0)==0:0){h=j;break}h=0}while(0);if(l<<16>>16){j=(h|0)==0;k=e+4|0;i=h+4|0;l=0;do{if(!j){h=b[(c[k>>2]|0)+(l<<1)>>1]|0;if((b[(c[i>>2]|0)+(l<<1)>>1]|0)!=h<<16>>16)s=21}else{h=b[(c[k>>2]|0)+(l<<1)>>1]|0;s=21}if((s|0)==21){s=0;jt(q,r,f,h<<16>>16,l+m|0);Lq(q,39)|0}l=l+1|0}while((l|0)<(n|0))}if(g)sh(q,49,m,n,g)|0;$s(d,m,n);if((c[p>>2]|0)<(n|0)){c[p>>2]=n;c[o>>2]=m}return m|0}function Mt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[a+8>>2]|0;e=c[d+24>>2]|0;f=~b;if((b|0)<0?(g=c[e+112>>2]|0,(g|0)!=0):0)c[g+(f<<2)>>2]=c[d+32>>2];c[e+88>>2]=(c[d+32>>2]|0)+-1;Zt(a)}return}function Nt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=c[d+16>>2]|0;a:do if((e|0)!=0?(f=c[d+64>>2]|0,(f|0)!=0):0){e=c[e+8>>2]|0;b:do if(e){while(1){if(!($c(c[e>>2]|0,f)|0))break;e=c[e+20>>2]|0;if(!e)break b}c[d+68>>2]=e;e=0;break a}while(0);c[g>>2]=f;c[g+4>>2]=0;ph(b,28104,g);a[b+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function Ot(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Pt(a,b)|0;if(b&1){e=Ot(c[a+12>>2]|0,b)|0;return e+d+(Ot(c[a+16>>2]|0,b)|0)|0}}else d=0;return d|0}
8 function Pn(d,f,g,h,k,l,m,n,o){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,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;aa=i;i=i+160|0;if((i|0)>=(j|0))ba();O=aa+16|0;K=aa+152|0;M=aa+48|0;J=aa+40|0;N=aa+36|0;L=aa+32|0;R=aa+8|0;Q=aa;W=aa+28|0;_=aa+24|0;c[_>>2]=0;do if(!(a[d+46>>0]|0)){$=d+43|0;if((a[$>>0]|0)==0?(p=c[d+4>>2]|0,p=lc[c[(c[p>>2]|0)+56>>2]&31](p,1,1,10)|0,(p|0)!=0):0)break;Z=d+45|0;a[Z>>0]=1;a:do if(!f){t=0;X=11}else{r=d+4|0;p=(g|0)!=0;while(1){if(a[$>>0]|0)break;t=c[r>>2]|0;t=lc[c[(c[t>>2]|0)+56>>2]&31](t,0,1,10)|0;if(!(p&(t|0)==5)){X=9;break}if(!(hc[g&127](h)|0)){t=0;g=0;X=11;break a}}if((X|0)==9)if((t|0)==5){t=0;g=0;X=11;break}else if(t){Y=f;break}a[d+44>>0]=1;t=f;X=11}while(0);if((X|0)==11){Y=t;t=jq(d,_)|0}do if(!t){V=d+68|0;t=b[d+66>>1]|0;if((c[V>>2]|0)!=0?(U=t&65535,(U<<16&65536|U&65024|0)!=(l|0)):0){c[O>>2]=51863;c[O+4>>2]=10788;Zc(11,13600,O);q=11;break}S=t&65535;S=S<<16&65536|S&65024;U=d+32|0;T=(c[c[U>>2]>>2]|0)+96|0;w=c[V>>2]|0;b:do if((c[T>>2]|0)>>>0<w>>>0){H=(w+33|0)>>>12;I=H+1|0;l=w<<1;v=l+28+(H*20|0)|0;p=Pc(v)|0;c:do if(!p){t=7;p=0}else{bw(p|0,0,v|0)|0;v=p+4|0;c[v>>2]=I;l=Pc(w>>>0>4096?8192:l)|0;do if(l){G=p+8|0;u=0;while(1){t=Lo(d,u,J,L,N)|0;if(t){X=21;break}F=(c[L>>2]|0)+4|0;c[L>>2]=F;if((u|0)==(H|0)){E=c[N>>2]|0;t=E;E=w-E|0}else{t=c[N>>2]|0;E=(c[J>>2]|0)-F>>2}r=G+((c[v>>2]|0)*20|0)|0;D=r+(t<<1)|0;B=t+1|0;c[N>>2]=B;if((E|0)>0){y=0;do{b[r+(y+t<<1)>>1]=y;y=y+1|0}while((y|0)!=(E|0));c[O>>2]=0;c[K>>2]=0;z=M+0|0;y=z+104|0;do{c[z>>2]=0;z=z+4|0}while((z|0)<(y|0));A=0;do{c[O>>2]=1;z=r+(A+t<<1)|0;c[K>>2]=z;if(!(A&1)){x=1;y=0}else{y=0;do{kq(F,c[M+(y<<3)+4>>2]|0,c[M+(y<<3)>>2]|0,K,O,l);y=y+1|0}while((1<<y&A|0)!=0);x=c[O>>2]|0;z=c[K>>2]|0}c[M+(y<<3)+4>>2]=z;c[M+(y<<3)>>2]=x;A=A+1|0}while((A|0)!=(E|0));y=y+1|0;if((y|0)<13)X=34}else{c[O>>2]=0;c[K>>2]=0;z=M+0|0;y=z+104|0;do{c[z>>2]=0;z=z+4|0}while((z|0)<(y|0));y=1;X=34}if((X|0)==34){while(1){X=0;if(1<<y&E)kq(F,c[M+(y<<3)+4>>2]|0,c[M+(y<<3)>>2]|0,K,O,l);y=y+1|0;if((y|0)==13)break;else X=34}x=c[O>>2]|0}c[G+(u*20|0)+16>>2]=B;c[G+(u*20|0)+12>>2]=x;c[G+(u*20|0)+4>>2]=D;c[G+(u*20|0)+8>>2]=F;u=u+1|0;if((u|0)>=(I|0)){X=39;break}}if((X|0)==21){Sc(l);break}else if((X|0)==39){Sc(l);t=0;break c}}else{Sc(0);t=7}while(0);Sc(p)}while(0);if(!t){O=d+72|0;N=c[O>>2]|0;M=d+4|0;x=1;w=c[V>>2]|0;t=0;while(1){l=T+(x<<2)+4|0;r=c[l>>2]|0;d:do if(w>>>0>r>>>0){v=x+3|0;u=(g|0)!=0;while(1){if(a[$>>0]|0)break;t=c[M>>2]|0;t=lc[c[(c[t>>2]|0)+56>>2]&31](t,v,1,10)|0;if(!(u&(t|0)==5)){X=49;break}if(!(hc[g&127](h)|0)){g=0;t=5;break d}}if((X|0)==49){X=0;if((t|0)==5){g=0;t=5;break}else if(t){q=t;X=100;break b}}c[l>>2]=(x|0)==1?w:-1;if(!(a[$>>0]|0)){r=c[M>>2]|0;lc[c[(c[r>>2]|0)+56>>2]&31](r,v,1,9)|0;r=w;t=0}else{r=w;t=0}}else r=w;while(0);x=x+1|0;if((x|0)>=5){I=r;break}else w=r}e:do if((c[T>>2]|0)>>>0<I>>>0){t=(g|0)!=0;while(1){if(a[$>>0]|0)break;r=c[M>>2]|0;r=lc[c[(c[r>>2]|0)+56>>2]&31](r,3,1,10)|0;if(!(t&(r|0)==5)){s=r;X=58;break}if(!(hc[g&127](h)|0)){s=5;break e}}if((X|0)==58?(s|0)!=0:0)break;F=c[T>>2]|0;G=(k|0)!=0;if(G?(P=c[d+8>>2]|0,P=nc[c[(c[P>>2]|0)+20>>2]&127](P,k)|0,(P|0)!=0):0)s=P;else X=61;f:do if((X|0)==61){P=ow(N|0,0,S|0,0)|0;s=Q;c[s>>2]=P;c[s+4>>2]=C;s=c[M>>2]|0;s=nc[c[(c[s>>2]|0)+24>>2]&127](s,R)|0;if(!s){P=R;K=c[P+4>>2]|0;R=Q;L=c[R+4>>2]|0;if((K|0)<(L|0)|((K|0)==(L|0)?(c[P>>2]|0)>>>0<(c[R>>2]|0)>>>0:0)){R=c[M>>2]|0;Yb[c[(c[R>>2]|0)+40>>2]&63](R,5,Q)|0}B=p+4|0;D=S|24;E=d+8|0;t=c[B>>2]|0;g:do if((t|0)>0){s=0;while(1){A=c[p>>2]|0;z=-1;h:while(1){i:while(1){t=t+-1|0;x=p+(t*20|0)+8|0;l=c[x>>2]|0;r=c[p+(t*20|0)+20>>2]|0;j:do if((l|0)<(r|0)){w=c[p+(t*20|0)+12>>2]|0;y=c[p+(t*20|0)+16>>2]|0;while(1){u=e[w+(l<<1)>>1]|0;v=c[y+(u<<2)>>2]|0;if(v>>>0>A>>>0)break;l=l+1|0;c[x>>2]=l;if((l|0)>=(r|0))break j}if(v>>>0<z>>>0)break i}while(0);if((t|0)<=0){l=s;t=z;break h}}s=(c[p+(t*20|0)+24>>2]|0)+u|0;if((t|0)>0)z=v;else{l=s;t=v;break}}c[p>>2]=t;if((t|0)==-1)break g;if(!(l>>>0<=F>>>0|l>>>0>I>>>0|t>>>0>N>>>0)){s=ow(l+-1|0,0,D|0,0)|0;s=fw(s|0,C|0,56,0)|0;R=c[E>>2]|0;s=pc[c[(c[R>>2]|0)+8>>2]&31](R,m,S,s,C)|0;if(s)break f;s=ow(t+-1|0,0,S|0,0)|0;R=c[M>>2]|0;s=pc[c[(c[R>>2]|0)+12>>2]&31](R,m,S,s,C)|0;if(s)break f}t=c[B>>2]|0;if((t|0)<=0){X=66;break}else s=l}}else X=66;while(0);if((X|0)==66)c[p>>2]=-1;if((I|0)==(c[(c[c[U>>2]>>2]|0)+16>>2]|0)){s=ow(c[O>>2]|0,0,S|0,0)|0;X=c[M>>2]|0;s=Yb[c[(c[X>>2]|0)+16>>2]&63](X,s,C)|0;if((s|0)==0&G){s=c[M>>2]|0;s=nc[c[(c[s>>2]|0)+20>>2]&127](s,k)|0}if(s)break}c[T>>2]=I;s=0}}while(0);if(!(a[$>>0]|0)){X=c[M>>2]|0;lc[c[(c[X>>2]|0)+56>>2]&31](X,3,1,9)|0}}else s=t;while(0);s=(s|0)==5?0:s;X=88}else q=t}else{p=0;s=0;X=88}while(0);k:do if((X|0)==88)if((s|0)==0&(Y|0)!=0)if((c[T>>2]|0)>>>0>=(c[V>>2]|0)>>>0)if((Y|0)>1){_c(4,W);t=d+4|0;r=(g|0)!=0;while(1){if(a[$>>0]|0)break;s=c[t>>2]|0;s=lc[c[(c[s>>2]|0)+56>>2]&31](s,4,4,10)|0;if(!(r&(s|0)==5)){q=s;X=95;break}if(!(hc[g&127](h)|0)){q=5;X=100;break k}}if((X|0)==95?(q|0)!=0:0){X=100;break}if((Y|0)==3){To(d,c[W>>2]|0);q=c[d+8>>2]|0;q=Yb[c[(c[q>>2]|0)+16>>2]&63](q,0,0)|0}else q=0;if(!(a[$>>0]|0)){X=c[t>>2]|0;lc[c[(c[X>>2]|0)+56>>2]&31](X,4,4,9)|0;X=100}else X=100}else{q=0;X=100}else{q=5;X=100}else{q=s;X=100}while(0);if((X|0)==100)Sc(p);if((q|0)==0|(q|0)==5){if(n)c[n>>2]=c[V>>2];if(o)c[o>>2]=c[(c[c[U>>2]>>2]|0)+96>>2]}}else q=t;while(0);if(c[_>>2]|0){z=d+52|0;y=z+48|0;do{c[z>>2]=0;z=z+4|0}while((z|0)<(y|0))}p=d+44|0;if(a[p>>0]|0){if(!(a[$>>0]|0)){_=c[d+4>>2]|0;lc[c[(c[_>>2]|0)+56>>2]&31](_,0,1,9)|0}a[p>>0]=0;a[d+47>>0]=0}if(!(a[$>>0]|0)){$=c[d+4>>2]|0;lc[c[(c[$>>2]|0)+56>>2]&31]($,1,1,9)|0}a[Z>>0]=0;p=(q|0)!=0|(Y|0)==(f|0)?q:5}else p=8;while(0);i=aa;return p|0}function Qn(b,c,d,e,f){b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=(c|0)<(e|0)?c:e;g=Vv(d,f,h)|0;a:do if(!g){b:do if(b){g=c-h|0;while(1){if((g|0)<=0)break;g=g+-1|0;if((a[d+(g+h)>>0]|0)!=32)break b}if(!g){g=e-h|0;while(1){if((g|0)<=0)break;g=g+-1|0;if((a[f+(g+h)>>0]|0)!=32)break b}if(!g){g=0;break a}}}while(0);g=c-e|0}while(0);return g|0}function Rn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=Bc(c,e,(b|0)<(d|0)?b:d)|0;return ((a|0)==0?b-d|0:a)|0}function Sn(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 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;y=i;i=i+16|0;if((i|0)>=(j|0))ba();w=y;p=c[e>>2]|0;a:do if(d){n=d;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;o=n-d&1073741823;if((c[2189]|p&64|0)!=0&o>>>0>4?(Vv(d,14984,5)|0)==0:0){n=o+2|0;m=p|64;if(o){p=0;do{n=((a[d+p>>0]|0)==38&1)+n|0;p=p+1|0}while((p|0)<(o|0))}l=Pc(n)|0;if(l){do if((a[d+5>>0]|0)==47?(a[d+6>>0]|0)==47:0){n=7;while(1){s=a[d+n>>0]|0;if(s<<24>>24==0|s<<24>>24==47)break;n=n+1|0}if((n|0)==16){k=d+7|0;if(!(Vv(14992,k,9)|0)){n=0;p=16;k=0;break}}else if((n|0)==7){n=0;p=7;k=0;break}else k=d+7|0;c[w>>2]=n+-7;c[w+4>>2]=k;c[h>>2]=Wc(15008,w)|0;k=1;x=74;break a}else{n=0;p=5;k=0}while(0);b:while(1){u=l+(k+-1)|0;c:while(1){d:while(1){o=a[d+p>>0]|0;if(o<<24>>24==35|o<<24>>24==0)break b;q=p+1|0;if((o<<24>>24==37?(v=a[d+q>>0]|0,(a[10368+(v&255)>>0]&8)!=0):0)?(t=a[d+(p+2)>>0]|0,(a[10368+(t&255)>>0]&8)!=0):0){o=v;q=t;break}if(!n){p=q;x=38;break c}else if((n|0)==2){p=q;x=39;break c}else if((n|0)!=1){p=q;break c}if(!(o<<24>>24==38|o<<24>>24==61)){n=1;p=q;break c}if(!(a[u>>0]|0))p=q;else{p=q;x=36;break c}while(1){s=a[d+p>>0]|0;if(s<<24>>24==35|s<<24>>24==0)continue d;if((a[d+(p+-1)>>0]|0)==38)continue d;else p=p+1|0}}o=o<<24>>24;p=p+3|0;s=q<<24>>24;o=(0-(s>>>6&1)&9)+s&15|(0-(o>>>6&1)&9)+o<<4&240;if(o){x=30;break}q=(n|0)==0;while(1){o=a[d+p>>0]|0;if(o<<24>>24==35|o<<24>>24==0)continue c;if(q&o<<24>>24==63){n=0;continue c}if((n|0)==1){if(o<<24>>24==38|o<<24>>24==61){n=1;continue c}}else if((n|0)==2?o<<24>>24==38:0){n=2;continue c}p=p+1|0}}if((x|0)==30){x=0;o=o&255}else if((x|0)==36){x=0;if(o<<24>>24==38){a[l+k>>0]=0;o=0;n=1;k=k+1|0}else{o=0;n=2}}else if((x|0)==38){x=0;if(o<<24>>24==63)x=40;else n=0}else if((x|0)==39){x=0;if(o<<24>>24==38)x=40;else n=2}if((x|0)==40){x=0;o=0;n=1}a[l+k>>0]=o;k=k+1|0}if((n|0)==1){a[l+k>>0]=0;k=k+1|0}a[l+k>>0]=0;a[l+(k+1)>>0]=0;k=l;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;k=(k-l&1073741823)+1|0;n=a[l+k>>0]|0;if(n<<24>>24){v=l+k|0;e:while(1){o=v;while(1){k=o+1|0;if(!(n<<24>>24)){n=o;break}n=a[k>>0]|0;o=k}u=n-v&1073741823;n=v+(u+1)|0;o=n;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;t=o-n&1073741823;if((u|0)==5)if(!(Vv(15048,v,5)|0)){d=15056;r=393216;s=-393217;k=15048;x=58}else k=b;else if((u|0)==4)if(!(Vv(15096,v,4)|0)){d=15104;r=m&135;s=-136;k=15176;x=58}else k=b;else if((u|0)==3){k=(Vv(15040,v,3)|0)==0;k=k?n:b}else k=b;if((x|0)==58){x=0;p=c[d>>2]|0;if(!p){x=65;break}else o=0;while(1){q=p;while(1)if(!(a[q>>0]|0))break;else q=q+1|0;if((t|0)==(q-p&1073741823|0)?(Vv(n,p,t)|0)==0:0){p=o;break}o=o+1|0;p=c[d+(o<<3)>>2]|0;if(!p){x=65;break e}}p=c[d+(p<<3)+4>>2]|0;if(!p){x=65;break}if((p&-129|0)>(r|0)){x=67;break}m=p|s&m;k=b}v=v+(u+2+t)|0;n=a[v>>0]|0;if(!(n<<24>>24)){x=72;break a}else b=k}if((x|0)==65){c[w>>2]=k;c[w+4>>2]=n;c[h>>2]=Wc(15184,w)|0;k=1;x=74;break}else if((x|0)==67){c[w>>2]=k;c[w+4>>2]=n;c[h>>2]=Wc(15208,w)|0;k=3;x=74;break}}else{k=b;x=72}}else k=7}else{m=o;x=70}}else{m=0;x=70}while(0);if((x|0)==70){l=Pc(m+2|0)|0;if(!l)k=7;else{gw(l|0,d|0,m|0)|0;a[l+m>>0]=0;a[l+(m+1)>>0]=0;m=p&-65;k=b;x=72}}if((x|0)==72){s=Gc(k)|0;c[f>>2]=s;if(!s){c[w>>2]=k;c[h>>2]=Wc(15232,w)|0;k=1;x=74}else{k=0;x=75}}if((x|0)==74){Sc(l);l=0;x=75}if((x|0)==75){c[e>>2]=m;c[g>>2]=l}i=y;return k|0}function Tn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;do if(!d){d=mg(84,0)|0;if(!d)e=8;else{b=d+0|0;g=b+84|0;do{a[b>>0]=0;b=b+1|0}while((b|0)<(g|0));e=9}}else{f=c[d+4>>2]|0;c[f+4>>2]=c[d>>2];e=f+48|0;d=c[e>>2]|0;if(!d){d=mg(84,0)|0;if(!d){c[e>>2]=0;c[f+52>>2]=22;e=8;break}else{b=d+0|0;g=b+84|0;do{a[b>>0]=0;b=b+1|0}while((b|0)<(g|0));c[e>>2]=d;c[f+52>>2]=22;e=9;break}}else e=9}while(0);if((e|0)==8){a[b+65>>0]=1;d=0}else if((e|0)==9)if(!(a[d+76>>0]|0)){e=d+77|0;b=d+8|0;g=b+64|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(g|0));a[e>>0]=1}return d|0}function Un(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();if(e){k=b+428|0;h=Zm(k,e,m)|0;if(!h)g=0;else g=c[h+8>>2]|0;if((g|0)==0&(f|0)!=0){h=e;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=h-e&1073741823;f=h+61|0;g=ih(b,f,0)|0;if(g){bw(g|0,0,f|0)|0;f=g+60|0;c[g>>2]=f;a[g+4>>0]=1;c[g+20>>2]=f;a[g+24>>0]=2;c[g+40>>2]=f;a[g+44>>0]=3;gw(f|0,e|0,h|0)|0;a[g+(h+60)>>0]=0;h=Ek(k,c[g>>2]|0,g)|0;if(!h)l=10;else{a[b+65>>0]=1;ig(b,h);g=0}}else g=0}else l=10}else{g=c[b+8>>2]|0;l=10}if((l|0)==10)if(!g)g=0;else g=g+(((d&255)+-1|0)*20|0)|0;i=m;return g|0}function Vn(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+64|0;if((i|0)>=(j|0))ba();y=A;m=A+48|0;q=A+24|0;v=A+8|0;n=(g|0)==1;t=n?13184:13208;c[m>>2]=t;c[m+4>>2]=13224;c[m+8>>2]=n?13064:12960;c[m+12>>2]=0;c[v>>2]=f;c[v+8>>2]=g;u=v+12|0;c[u>>2]=0;c[v+4>>2]=h;Xm(v,3,m,0)|0;m=c[u>>2]|0;a:do if(!m){w=f+16|0;m=Wh(f,t,c[(c[w>>2]|0)+(g<<4)>>2]|0)|0;if(m){s=m+44|0;a[s>>0]=d[s>>0]|1}l=c[w>>2]|0;x=l+(g<<4)+4|0;m=c[x>>2]|0;if(!m){if(!n){k=0;break}k=(c[l+28>>2]|0)+78|0;b[k>>1]=e[k>>1]|1;k=0;break}c[(c[m+4>>2]|0)+4>>2]=c[m>>2];do if(!(a[m+8>>0]|0)){m=ug(m,0)|0;if((m|0)==516)k=16344;else if(!m){m=c[x>>2]|0;s=1;break}else z=10;if((z|0)==10){k=m&255;if(k>>>0>26|(k|0)==2)k=16328;else k=c[15488+(k<<2)>>2]|0}c[y>>2]=k;$g(h,f,10344,y);k=m;z=38;break a}else s=0;while(0);sm(m,1,q);r=q+4|0;sm(c[x>>2]|0,2,r);o=q+8|0;sm(c[x>>2]|0,3,o);sm(c[x>>2]|0,4,q+12|0);n=q+16|0;sm(c[x>>2]|0,5,n);p=l+(g<<4)+12|0;m=c[p>>2]|0;c[m>>2]=c[q>>2];l=c[n>>2]|0;do if(l){if(!g){n=l&3;n=(n|0)==0?1:n&255;a[f+62>>0]=n;z=19;break}n=a[f+62>>0]|0;if((l|0)==(n&255|0))z=19;else{$g(h,f,13232,y);k=1}}else{n=(c[(c[w>>2]|0)+(g<<4)+12>>2]|0)+78|0;b[n>>1]=e[n>>1]|4;n=a[f+62>>0]|0;z=19}while(0);do if((z|0)==19){a[m+77>>0]=n;n=m+80|0;if(!(c[n>>2]|0)){m=c[o>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0;m=(m|0)==0?2e3:m;c[n>>2]=m;lq(c[x>>2]|0,m);m=c[p>>2]|0}l=c[r>>2]|0;n=l&255;m=m+76|0;if(n<<24>>24){a[m>>0]=n;if((n&255)>4){$g(h,f,13304,y);k=1;break}}else a[m>>0]=1;if((g|0)==0&(l|0)>3){r=f+24|0;c[r>>2]=c[r>>2]&-32769}c[y>>2]=c[(c[w>>2]|0)+(g<<4)>>2];c[y+4>>2]=t;m=qh(f,13328,y)|0;t=f+284|0;r=c[t>>2]|0;c[t>>2]=0;l=Me(f,m,22,v,0)|0;c[t>>2]=r;l=(l|0)==0?c[u>>2]|0:l;ig(f,m);m=(l|0)==0;if(m)Ym(f,g)|0;if(!(a[f+65>>0]|0)){if(!m){k=l;z=34}}else{Ag(f);k=7;z=34}if((z|0)==34?(c[f+24>>2]&65536|0)==0:0)break;k=(c[(c[w>>2]|0)+(g<<4)+12>>2]|0)+78|0;b[k>>1]=e[k>>1]|1;k=0}while(0);if(!s)z=38;else{qn(c[x>>2]|0)|0;z=38}}else{k=m;z=38}while(0);if((z|0)==38)if((k|0)==7|(k|0)==3082)a[f+65>>0]=1;i=A;return k|0}function Wn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+80|0;if((i|0)>=(j|0))ba();n=o;c[12066]=c[2708];if(!(c[12067]|0))c[12067]=Hb(48336)|0;if(!(c[12068]|0))c[12068]=Hb(48352)|0;g=n+12|0;h=0;f=0;do{if((((f|0)!=0?(nc[c[47552+52>>2]&127](f,n)|0)==0:0)?(c[g>>2]&61440|0)==16384:0)?(nc[c[47552+28>>2]&127](f,7)|0)==0:0)break;f=c[48264+(h<<2)>>2]|0;h=h+1|0}while(h>>>0<7);m=(f|0)==0?28928:f;if(((cw(m|0)|0)+25|0)>>>0<b>>>0){b=b+-18|0;do{c[n>>2]=m;Yc(b,e,48248,n)|0;g=cw(e|0)|0;f=e+g|0;_c(15,f);l=e+(g+15)|0;k=0;h=g;while(1){a[f>>0]=a[48184+(((d[f>>0]|0)%62|0)&255)>>0]|0;k=k+1|0;h=h+1|0;if((k|0)==15)break;else f=e+h|0}a[l>>0]=0;a[e+(g+16)>>0]=0}while((nc[c[47552+28>>2]&127](e,0)|0)==0);f=0}else f=1;i=o;return f|0}function Xn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+80|0;if((i|0)>=(j|0))ba();k=m;h=(d|0)!=0;f=h?d:420;g=b|524288;while(1){e=Yb[c[47552+4>>2]&63](a,g,f)|0;if((e|0)<0)if((c[(Db()|0)>>2]|0)==4)continue;else break;if((e|0)>2){l=6;break}hc[c[47552+16>>2]&127](e)|0;c[k>>2]=a;c[k+4>>2]=e;Zc(28,48120,k);if((Yb[c[47552+4>>2]&63](48168,b,d)|0)<0){e=-1;break}}if((l|0)==6)if(((h?(nc[c[47552+64>>2]&127](e,k)|0)==0:0)?(c[k+36>>2]|0)==0:0)?(c[k+12>>2]&511|0)!=(d|0):0)nc[c[47552+172>>2]&127](e,d)|0;i=m;return e|0}function Yn(a,b,d){a=a|0;b=b|0;d=d|0;if(hc[c[47552+16>>2]&127](b)|0){if(!a)b=0;else b=c[a+32>>2]|0;_n(4106,47856,b,d)|0}return}function Zn(a){a=a|0;var d=0,f=0,g=0,h=0;h=i;i=i+80|0;if((i|0)>=(j|0))ba();g=h;d=h+4|0;f=a+18|0;do if(!(b[f>>1]&256)){if(nc[c[47552+64>>2]&127](c[a+12>>2]|0,d)|0){c[g>>2]=c[a+32>>2];Zc(28,48592,g);b[f>>1]=e[f>>1]|0|256;break}d=c[d+16>>2]|0;if(!d){if(!(b[f>>1]&32)){c[g>>2]=c[a+32>>2];Zc(28,48616,g);b[f>>1]=e[f>>1]|0|256;break}}else if(d>>>0>1){c[g>>2]=c[a+32>>2];Zc(28,48648,g);b[f>>1]=e[f>>1]|0|256;break}if(to(a)|0){c[g>>2]=c[a+32>>2];Zc(28,48680,g);b[f>>1]=e[f>>1]|0|256}}while(0);i=h;return}function _n(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;f=i;i=i+32|0;if((i|0)>=(j|0))ba();g=f;k=c[(Db()|0)>>2]|0;h=Nb(k|0)|0;c[g>>2]=e;c[g+4>>2]=k;c[g+8>>2]=b;c[g+12>>2]=(d|0)==0?10360:d;c[g+16>>2]=h;ZcZc(539,14776,E)}sp(b);i=G;return e|0}function Ho(d){d=d|0;var e=0,f=0;e=d+44|0;if(a[e>>0]|0){if(!(a[d+43>>0]|0)){f=c[d+4>>2]|0;lc[c[(c[f>>2]|0)+56>>2]&31](f,0,1,9)|0}a[e>>0]=0;a[d+47>>0]=0}e=d+40|0;f=b[e>>1]|0;if(f<<16>>16>-1){if(!(a[d+43>>0]|0)){d=c[d+4>>2]|0;lc[c[(c[d>>2]|0)+56>>2]&31](d,(f<<16>>16)+3|0,1,5)|0}b[e>>1]=-1}return}function Io(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;if((g|0)>5)if((g|0)>100)f=15;else{if((g|0)>9){g=g+-9|0;g=_(g*39|0,g)|0}else g=1;h=c[d>>2]|0;nc[c[h+60>>2]&127](h,g)|0;h=6}else h=6;a:do if((h|0)==6){do if(!f){f=jq(d,e)|0;do if((f|0)==5){if(!(c[c[d+32>>2]>>2]|0)){f=-1;break a}e=d+43|0;if(a[e>>0]|0){f=-1;break a}g=d+4|0;f=c[g>>2]|0;f=lc[c[(c[f>>2]|0)+56>>2]&31](f,2,1,6)|0;if((f|0)==5){f=261;break a}else if(f)break;if(a[e>>0]|0){f=-1;break a}f=c[g>>2]|0;lc[c[(c[f>>2]|0)+56>>2]&31](f,2,1,5)|0;f=-1;break a}while(0);if(f)break a;g=d+32|0;j=(c[c[g>>2]>>2]|0)+96|0;e=d+52|0;if((c[j>>2]|0)==(c[d+68>>2]|0)){i=d+43|0;h=a[i>>0]|0;if(!(h<<24>>24)){f=c[d+4>>2]|0;f=lc[c[(c[f>>2]|0)+56>>2]&31](f,3,1,6)|0;h=a[i>>0]|0}else f=0;if(h<<24>>24!=2){n=c[d+4>>2]|0;_b[c[(c[n>>2]|0)+60>>2]&31](n)}if((f|0)==5){n=g;g=5;break}else if(f)break a;if(!(Vv(c[c[g>>2]>>2]|0,e,48)|0)){b[d+40>>1]=0;f=0;break a}if(a[i>>0]|0){f=-1;break a}f=c[d+4>>2]|0;lc[c[(c[f>>2]|0)+56>>2]&31](f,3,1,5)|0;f=-1;break a}else{n=g;g=0}}else{j=d+32|0;n=j;j=(c[c[j>>2]>>2]|0)+96|0;g=0}while(0);m=d+68|0;e=c[j+8>>2]|0;i=e>>>0>(c[m>>2]|0)>>>0;e=i?0:e;i=i&1^1;h=c[j+12>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[m>>2]|0)>>>0;i=l?i:2;e=l?e:h}h=c[j+16>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[m>>2]|0)>>>0;i=l?i:3;e=l?e:h}h=c[j+20>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[m>>2]|0)>>>0;i=l?i:4;e=l?e:h}b:do if((a[d+46>>0]&2)==0?((i|0)==0?1:e>>>0<(c[m>>2]|0)>>>0):0){l=d+43|0;k=d+4|0;h=1;while(1){g=h+3|0;if(a[l>>0]|0){i=h;break}f=c[k>>2]|0;f=lc[c[(c[f>>2]|0)+56>>2]&31](f,g,1,10)|0;if(!f){i=h;break}else if((f|0)!=5)break a;h=h+1|0;if((h|0)>=5){g=5;break b}}h=c[m>>2]|0;c[j+(i<<2)+4>>2]=h;if(!(a[l>>0]|0)){e=c[k>>2]|0;lc[c[(c[e>>2]|0)+56>>2]&31](e,g,1,9)|0;e=h;g=0}else{e=h;g=0}}while(0);if(!i){f=(g|0)==5?-1:520;break}g=i+3|0;f=d+43|0;h=a[f>>0]|0;do if(!(h<<24>>24)){h=c[d+4>>2]|0;h=lc[c[(c[h>>2]|0)+56>>2]&31](h,g,1,6)|0;if(!h){h=a[f>>0]|0;break}else{f=(h|0)==5?-1:h;break a}}while(0);if(h<<24>>24!=2){m=c[d+4>>2]|0;_b[c[(c[m>>2]|0)+60>>2]&31](m)}if((c[j+(i<<2)+4>>2]|0)==(e|0)?(Vv(c[c[n>>2]>>2]|0,d+52|0,48)|0)==0:0){b[d+40>>1]=i;f=0;break}if(!(a[f>>0]|0)){f=c[d+4>>2]|0;lc[c[(c[f>>2]|0)+56>>2]&31](f,g,1,5)|0;f=-1}else f=-1}while(0);return f|0}function Jo(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;e=b+56|0;ai(c[e>>2]|0);c[e>>2]=0;_o(b);e=c[b+208>>2]|0;if(!e){if(!(a[b+4>>0]|0)){f=b+60|0;e=c[f>>2]|0;d=c[e>>2]|0;if(!(((d|0)!=0?((hc[c[d+48>>2]&127](e)|0)&2048|0)!=0:0)?(a[b+5>>0]&5)==1:0))i=7;if((i|0)==7?(g=c[b+64>>2]|0,h=c[g>>2]|0,(h|0)!=0):0){hc[c[h+4>>2]&127](g)|0;c[g>>2]=0}d=c[f>>2]|0;e=c[d>>2]|0;if(e){if(!(a[b+13>>0]|0))d=nc[c[e+32>>2]&127](d,0)|0;else d=0;e=b+17|0;if((a[e>>0]|0)!=5)a[e>>0]=0;if((d|0)!=0?(a[b+16>>0]|0)==6:0)a[e>>0]=5}a[b+18>>0]=0;a[b+16>>0]=0}}else{Ho(e);a[b+16>>0]=0}d=b+40|0;if(c[d>>2]|0){tn(b);a[b+18>>0]=a[b+12>>0]|0;a[b+16>>0]=0;c[d>>2]=0}d=b+72|0;a[b+19>>0]=0;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;return}function Ko(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=c[d+4>>2]|0;f=e+0|0;g=f+40|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(g|0));c[e>>2]=d;c[e+4>>2]=c[d>>2];f=e+40|0;c[e+8>>2]=f;bw(f|0,0,c[a+24>>2]|0)|0;c[e+28>>2]=a;c[e+20>>2]=b;return el(a,b,d)|0}function Lo(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,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();g=l;h=tq(a,b,g)|0;if(!h){k=c[g>>2]|0;if(!b){a=k+136|0;c[g>>2]=a;g=a;a=0}else{g=k;a=(b<<12)+-34|0}c[e>>2]=g+-4;c[d>>2]=k+16384;c[f>>2]=a}i=l;return h|0}function Mo(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;k=c[d+28>>2]|0;j=e&255;if(j&1){f=k+8|0;if((c[f>>2]|0)==(d|0)){e=d;do{e=c[e+36>>2]|0;if(!e){e=0;break}}while((b[e+24>>1]&4)!=0);c[f>>2]=e}e=d+32|0;g=c[e>>2]|0;h=(g|0)==0;i=d+36|0;f=c[i>>2]|0;if(h)c[k+4>>2]=f;else c[g+36>>2]=f;f=c[i>>2]|0;if(!f){c[k>>2]=g;if(h?(a[k+28>>0]|0)!=0:0)a[k+29>>0]=2}else c[f+32>>2]=g;c[e>>2]=0;c[i>>2]=0}if(j&2){e=c[k>>2]|0;c[d+32>>2]=e;if(!e){c[k+4>>2]=d;if(a[k+28>>0]|0)a[k+29>>0]=1}else c[e+36>>2]=d;c[k>>2]=d;e=k+8|0;if((c[e>>2]|0)==0?(b[d+24>>1]&4)==0:0)c[e>>2]=d}return}function No(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l;f=e>>>3;g=f&255;a[d+5>>0]=g;e=e&-9;a[d+7>>0]=4-(f<<2);f=c[d+52>>2]|0;if((e|0)==5){a[d+2>>0]=1;a[d+3>>0]=g;a[d+4>>0]=g<<24>>24==0&1;b[d+10>>1]=b[f+28>>1]|0;b[d+12>>1]=b[f+30>>1]|0;k=5}else if((e|0)==2){a[d+2>>0]=0;a[d+3>>0]=0;a[d+4>>0]=0;b[d+10>>1]=b[f+24>>1]|0;b[d+12>>1]=b[f+26>>1]|0;k=5}else{c[h>>2]=54521;c[h+4>>2]=10788;Zc(11,13600,h);e=11}if((k|0)==5){a[d+8>>0]=a[f+21>>0]|0;e=0}i=l;return e|0}function Oo(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;l=c[b+200>>2]|0;j=b+152|0;k=c[j>>2]|0;m=b+148|0;i=c[m>>2]|0;k=k>>>0>i>>>0?i:k;g=c[b+96>>2]|0;if((g|0)>0){f=c[b+92>>2]|0;e=b+72|0;h=0;do{d=f+(h*48|0)+8|0;n=d;if((c[n>>2]|0)==0&(c[n+4>>2]|0)==0){o=e;n=c[o+4>>2]|0;c[d>>2]=c[o>>2];c[d+4>>2]=n}h=h+1|0}while((h|0)<(g|0));h=e}else h=b+72|0;e=h;f=c[e>>2]|0;e=c[e+4>>2]|0;if((f|0)==0&(e|0)==0){f=0;e=0}else{f=fw(f|0,e|0,-1,-1)|0;f=mw(f|0,C|0,i|0,0)|0;f=fw(f|0,C|0,1,0)|0;f=ow(f|0,C|0,i|0,0)|0;e=C}i=h;c[i>>2]=f;c[i+4>>2]=e;i=b+80|0;c[i>>2]=f;c[i+4>>2]=e;if(((a[b+7>>0]|0)==0?(a[b+5>>0]|0)!=4:0)?(i=c[b+60>>2]|0,((hc[c[(c[i>>2]|0)+48>>2]&127](i)|0)&512|0)==0):0){f=l+0|0;e=f+12|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(e|0))}else{i=l;g=i;a[g>>0]=-117058087;a[g+1>>0]=-117058087>>8;a[g+2>>0]=-117058087>>16;a[g+3>>0]=-117058087>>24;i=i+4|0;a[i>>0]=-681336544;a[i+1>>0]=-681336544>>8;a[i+2>>0]=-681336544>>16;a[i+3>>0]=-681336544>>24;i=l+8|0;a[i>>0]=-1;a[i+1>>0]=-1>>8;a[i+2>>0]=-1>>16;a[i+3>>0]=-1>>24}e=b+48|0;_c(4,e);e=c[e>>2]|0;a[l+12>>0]=e>>>24;a[l+13>>0]=e>>>16;a[l+14>>0]=e>>>8;a[l+15>>0]=e;e=c[b+28>>2]|0;a[l+16>>0]=e>>>24;a[l+17>>0]=e>>>16;a[l+18>>0]=e>>>8;a[l+19>>0]=e;e=c[m>>2]|0;a[l+20>>0]=e>>>24;a[l+21>>0]=e>>>16;a[l+22>>0]=e>>>8;a[l+23>>0]=e;e=c[j>>2]|0;a[l+24>>0]=e>>>24;a[l+25>>0]=e>>>16;a[l+26>>0]=e>>>8;a[l+27>>0]=e;bw(l+28|0,0,k+-28|0)|0;e=b+64|0;f=0;while(1){if(f>>>0>=(c[m>>2]|0)>>>0){d=0;break}j=c[e>>2]|0;d=h;d=pc[c[(c[j>>2]|0)+12>>2]&31](j,l,k,c[d>>2]|0,c[d+4>>2]|0)|0;j=h;j=fw(c[j>>2]|0,c[j+4>>2]|0,k|0,0)|0;b=h;c[b>>2]=j;c[b+4>>2]=C;if(!d)f=f+k|0;else break}return d|0}function Po(a){a=a|0;var c=0,d=0,f=0;c=a+24|0;f=e[c>>1]|0;d=f&65503;b[c>>1]=d;if(!(f&2)){b[c>>1]=d|2;Mo(a,2)}return}function Qo(a){a=a|0;var b=0,d=0,e=0;b=c[a+16>>2]|0;d=c[a+20>>2]|0;e=c[b+96>>2]|0;a:do if((e|0)>0){b=c[b+92>>2]|0;a=0;while(1){if((c[b+(a*48|0)+20>>2]|0)>>>0>=d>>>0?($h(c[b+(a*48|0)+16>>2]|0,d)|0)==0:0){a=1;break a}a=a+1|0;if((a|0)>=(e|0)){a=0;break}}}else a=0;while(0);return a|0}function Ro(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();m=q;o=c[b+16>>2]|0;e=a[o+5>>0]|0;a:do if(e<<24>>24!=2){n=o+68|0;f=c[n>>2]|0;do if(!(c[f>>2]|0)){if(e<<24>>24!=4?(a[o+21>>0]|0)==0:0){d=c[o>>2]|0;d=pc[c[d+24>>2]&31](d,0,f,8222,0)|0;if(!d)break;else break a}e=f+0|0;d=e+40|0;do{c[e>>2]=0;e=e+4|0}while((e|0)<(d|0));c[f>>2]=14696}while(0);f=c[b+4>>2]|0;l=o+52|0;g=o+152|0;h=(c[g>>2]|0)+4|0;h=ow(h|0,((h|0)<0)<<31>>31|0,c[l>>2]|0,0)|0;k=C;d=c[n>>2]|0;e=b+20|0;b=c[e>>2]|0;a[m>>0]=b>>>24;a[m+1>>0]=b>>>16;a[m+2>>0]=b>>>8;a[m+3>>0]=b;d=pc[c[(c[d>>2]|0)+12>>2]&31](d,m,4,h,k)|0;if(!d){m=c[n>>2]|0;n=c[g>>2]|0;d=fw(h|0,k|0,4,0)|0;d=pc[c[(c[m>>2]|0)+12>>2]&31](m,f,n,d,C)|0;if(!d){d=l;p=10}}}else{e=b+20|0;d=o+52|0;p=10}while(0);if((p|0)==10){c[d>>2]=(c[d>>2]|0)+1;d=fl(o,c[e>>2]|0)|0}i=q;return d|0}function So(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+48|0;if((i|0)>=(j|0))ba();g=h;d=(a|0)!=0;a:do if(d&(b|0)!=0){d=g;while(1){f=c[b+20>>2]|0;e=a;a=d;while(1){a=a+12|0;if((c[e+20>>2]|0)>>>0>=f>>>0)break;c[a>>2]=e;a=c[e+12>>2]|0;if(!a){d=b;a=e;e=8;break a}else{d=e;e=a;a=d}}c[a>>2]=b;f=c[b+12>>2]|0;d=(e|0)!=0;if(d&(f|0)!=0){d=b;a=e;b=f}else{a=e;e=6;break}}}else{f=b;b=g;e=6}while(0);if((e|0)==6)if(d)c[b+12>>2]=a;else{d=f;a=b;e=8}do if((e|0)==8){a=a+12|0;if(!d){c[a>>2]=0;break}else{c[a>>2]=d;break}}while(0);i=h;return c[g+12>>2]|0}function To(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=c[c[b+32>>2]>>2]|0;k=b+84|0;j=b+104|0;c[j>>2]=(c[j>>2]|0)+1;c[b+68>>2]=0;j=k+1|0;i=k+2|0;g=k+3|0;h=((d[j>>0]|0)<<16|(d[k>>0]|0)<<24|(d[i>>0]|0)<<8|(d[g>>0]|0))+1|0;a[k>>0]=h>>>24;a[j>>0]=h>>>16;a[i>>0]=h>>>8;a[g>>0]=h;c[b+88>>2]=e;Xo(b);c[f+96>>2]=0;c[f+104>>2]=0;c[f+108>>2]=-1;c[f+112>>2]=-1;c[f+116>>2]=-1;return}function Uo(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0;l=i;i=i+32|0;if((i|0)>=(j|0))ba();m=l;k=c[e+4>>2]|0;n=c[b>>2]|0;o=c[e+20>>2]|0;e=n+76|0;a[m>>0]=o>>>24;a[m+1>>0]=o>>>16;a[m+2>>0]=o>>>8;a[m+3>>0]=o;a[m+4>>0]=f>>>24;a[m+5>>0]=f>>>16;a[m+6>>0]=f>>>8;a[m+7>>0]=f;o=n+84|0;q=o;q=d[q>>0]|d[q+1>>0]<<8|d[q+2>>0]<<16|d[q+3>>0]<<24;o=o+4|0;o=d[o>>0]|d[o+1>>0]<<8|d[o+2>>0]<<16|d[o+3>>0]<<24;f=m+8|0;p=f;a[p>>0]=q;a[p+1>>0]=q>>8;a[p+2>>0]=q>>16;a[p+3>>0]=q>>24;f=f+4|0;a[f>>0]=o;a[f+1>>0]=o>>8;a[f+2>>0]=o>>16;a[f+3>>0]=o>>24;f=(a[n+65>>0]|0)==0&1;uq(f,m,8,e,e);uq(f,k,c[n+36>>2]|0,e,e);f=c[e>>2]|0;a[m+16>>0]=f>>>24;a[m+17>>0]=f>>>16;a[m+18>>0]=f>>>8;a[m+19>>0]=f;f=c[n+80>>2]|0;a[m+20>>0]=f>>>24;a[m+21>>0]=f>>>16;a[m+22>>0]=f>>>8;a[m+23>>0]=f;f=vq(b,m,24,g,h)|0;if(!f){o=c[b+20>>2]|0;f=fw(g|0,h|0,24,0)|0;f=vq(b,k,o,f,C)|0}i=l;return f|0}function Vo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k+8|0;g=k;f=c[3164]|0;if(f)jc[f&3]();e=a+8|0;f=c[e>>2]|0;f=nc[c[(c[f>>2]|0)+24>>2]&127](f,g)|0;l=c[g+4>>2]|0;if((f|0)==0&((l|0)>(d|0)|((l|0)==(d|0)?(c[g>>2]|0)>>>0>b>>>0:0))){f=c[e>>2]|0;f=Yb[c[(c[f>>2]|0)+16>>2]&63](f,b,d)|0}e=c[3166]|0;if(e)jc[e&3]();if(f){c[h>>2]=c[a+100>>2];Zc(f,14816,h)}i=k;return}function Wo(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))ba();k=n;g=n+16|0;m=n+12|0;l=n+8|0;c[g>>2]=0;c[m>>2]=0;c[l>>2]=0;f=Lo(a,(d+33|0)>>>12,l,m,g)|0;a:do if(!f){h=d-(c[g>>2]|0)|0;if((h|0)==1){f=c[m>>2]|0;d=f+4|0;bw(d|0,0,(c[l>>2]|0)+16384-d|0)|0}else f=c[m>>2]|0;if(c[f+(h<<2)>>2]|0)wq(a);f=e*383&8191;b:do if(b[(c[l>>2]|0)+(f<<1)>>1]|0){d=c[l>>2]|0;g=h;while(1){if(!g)break;f=f+1&8191;if(!(b[d+(f<<1)>>1]|0))break b;else g=g+-1|0}c[k>>2]=49852;c[k+4>>2]=10788;ZcZc(11,13600,n);h=11;break}a[f>>0]=a[l+b>>0]|0;if(g)c[g>>2]=(d[l+(h+-3)>>0]|0)<<16|(d[l+(h+-4)>>0]|0)<<24|(d[l+(h+-2)>>0]|0)<<8|(d[l+(h+-1)>>0]|0);if(k)xg(k);if(((a[f>>0]|0)+-1&255)>4){c[n>>2]=53920;c[n+4>>2]=10788;Zc(11,13600,n);h=11}else h=0}while(0);i=o;return h|0}function ep(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;K=i;i=i+32|0;if((i|0)>=(j|0))ba();J=K;I=K+16|0;p=K+20|0;H=K+12|0;q=K+8|0;c[I>>2]=0;s=e+12|0;o=c[s>>2]|0;r=e+44|0;F=c[r>>2]|0;G=o+56|0;n=c[G>>2]|0;n=d[n+37>>0]<<16|d[n+36>>0]<<24|d[n+38>>0]<<8|d[n+39>>0];do if(n>>>0<F>>>0){if(!n){k=(a[e+19>>0]|0)==0&1;o=Cg(c[o+68>>2]|0)|0;if(o){l=o;break}p=c[r>>2]|0;n=p+1|0;c[r>>2]=n;m=e+32|0;o=c[m>>2]|0;if((p|0)==(((c[2514]|0)>>>0)/(o>>>0)|0|0)){n=p+2|0;c[r>>2]=n}if(a[e+17>>0]|0){if(n>>>0<2)p=0;else{p=n+-2|0;p=p-((p>>>0)%(((((c[e+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;p=((p+1|0)==(((c[2514]|0)>>>0)/(o>>>0)|0|0)?3:2)+p|0}if((p|0)==(n|0)){c[q>>2]=0;p=$k(e,n,q,k)|0;if(p){l=p;break}F=c[q>>2]|0;p=F+68|0;o=Cg(c[p>>2]|0)|0;if(F)xg(c[p>>2]|0);if(o){l=o;break}p=c[r>>2]|0;n=p+1|0;c[r>>2]=n;if((p|0)==(((c[2514]|0)>>>0)/((c[m>>2]|0)>>>0)|0|0)){n=p+2|0;c[r>>2]=n}}}m=c[(c[s>>2]|0)+56>>2]|0;a[m+28>>0]=n>>>24;a[m+29>>0]=n>>>16;a[m+30>>0]=n>>>8;a[m+31>>0]=n;m=c[r>>2]|0;c[g>>2]=m;m=$k(e,m,f,k)|0;if(m){l=m;break}m=Cg(c[(c[f>>2]|0)+68>>2]|0)|0;if(m){l=c[f>>2]|0;if(!l){l=m;A=98}else{xg(c[l+68>>2]|0);l=m;A=92}}}else{if(k<<24>>24==2)p=1;else if(k<<24>>24==1?F>>>0>=h>>>0:0){l=dp(e,h,p,0)|0;if(l)break;p=(a[p>>0]|0)==2&1}else p=0;l=Cg(c[o+68>>2]|0)|0;if(l)break;C=c[G>>2]|0;D=n+-1|0;a[C+36>>0]=D>>>24;a[C+37>>0]=D>>>16;a[C+38>>0]=D>>>8;a[C+39>>0]=D;C=e+36|0;D=(h|0)==0;E=e+60|0;B=k<<24>>24==2;m=0;a:while(1){t=(m|0)!=0;if(t){s=c[m+56>>2]|0;s=d[s+1>>0]<<16|d[s>>0]<<24|d[s+2>>0]<<8|d[s+3>>0]}else{s=c[G>>2]|0;s=d[s+33>>0]<<16|d[s+32>>0]<<24|d[s+34>>0]<<8|d[s+35>>0]}if(s>>>0>F>>>0){A=15;break}l=$k(e,s,I,0)|0;if(l){A=17;break}n=c[I>>2]|0;u=n+56|0;y=c[u>>2]|0;z=y+4|0;v=y+5|0;w=y+6|0;x=y+7|0;A=d[v>>0]<<16|d[z>>0]<<24|d[w>>0]<<8|d[x>>0];q=p<<24>>24!=0;do if((A|0)!=0|q){if(A>>>0>(((c[C>>2]|0)>>>2)+-2|0)>>>0){l=n;A=22;break a}if(p<<24>>24!=0?(s|0)==(h|0)|s>>>0<h>>>0&B:0){c[g>>2]=s;c[f>>2]=n;l=Cg(c[n+68>>2]|0)|0;if(l){A=88;break a}do if(!A){if(!t){A=(c[G>>2]|0)+32|0;z=c[u>>2]|0;z=d[z>>0]|d[z+1>>0]<<8|d[z+2>>0]<<16|d[z+3>>0]<<24;a[A>>0]=z;a[A+1>>0]=z>>8;a[A+2>>0]=z>>16;a[A+3>>0]=z>>24;break}l=Cg(c[m+68>>2]|0)|0;if(l){A=88;break a}A=c[m+56>>2]|0;z=c[u>>2]|0;z=d[z>>0]|d[z+1>>0]<<8|d[z+2>>0]<<16|d[z+3>>0]<<24;a[A>>0]=z;a[A+1>>0]=z>>8;a[A+2>>0]=z>>16;a[A+3>>0]=z>>24}else{s=c[u>>2]|0;q=a[s+8>>0]|0;k=a[s+9>>0]|0;r=a[s+10>>0]|0;s=a[s+11>>0]|0;p=(k&255)<<16|(q&255)<<24|(r&255)<<8|s&255;if(p>>>0>F>>>0){l=n;A=32;break a}l=$k(e,p,H,0)|0;if(l){A=88;break a}p=c[H>>2]|0;o=p+68|0;l=Cg(c[o>>2]|0)|0;if(l){A=35;break a}z=p+56|0;y=c[z>>2]|0;x=c[u>>2]|0;x=d[x>>0]|d[x+1>>0]<<8|d[x+2>>0]<<16|d[x+3>>0]<<24;a[y>>0]=x;a[y+1>>0]=x>>8;a[y+2>>0]=x>>16;a[y+3>>0]=x>>24;y=c[z>>2]|0;A=A+-1|0;a[y+4>>0]=A>>>24;a[y+5>>0]=A>>>16;a[y+6>>0]=A>>>8;a[y+7>>0]=A;gw((c[z>>2]|0)+8|0,(c[u>>2]|0)+12|0,A<<2|0)|0;if(p)xg(c[o>>2]|0);if(!t){A=c[G>>2]|0;a[A+32>>0]=q;a[A+33>>0]=k;a[A+34>>0]=r;a[A+35>>0]=s;break}l=Cg(c[m+68>>2]|0)|0;if(l){A=88;break a}A=c[m+56>>2]|0;a[A>>0]=q;a[A+1>>0]=k;a[A+2>>0]=r;a[A+3>>0]=s}while(0);c[I>>2]=0;n=0;l=0;p=0;break}if(A){b:do if(!D){if(B){k=0;while(1){u=k<<2;if((d[y+(u+9)>>0]<<16|d[y+(u+8)>>0]<<24|d[y+(u+10)>>0]<<8|d[y+(u+11)>>0])>>>0<=h>>>0)break b;k=k+1|0;if(k>>>0>=A>>>0){k=0;break b}}}o=(d[y+9>>0]<<16|d[y+8>>0]<<24|d[y+10>>0]<<8|d[y+11>>0])-h|0;if((o|0)<=-1)o=(o|0)==-2147483648?2147483647:0-o|0;if(A>>>0>1){k=0;r=1;while(1){l=r<<2;l=(d[y+(l+9)>>0]<<16|d[y+(l+8)>>0]<<24|d[y+(l+10)>>0]<<8|d[y+(l+11)>>0])-h|0;if((l|0)<=-1)l=(l|0)==-2147483648?2147483647:0-l|0;s=(l|0)<(o|0);k=s?r:k;r=r+1|0;if((r|0)==(A|0))break;else o=s?l:o}}else k=0}else k=0;while(0);o=k<<2;s=y+(o+8)|0;o=d[y+(o+9)>>0]<<16|d[s>>0]<<24|d[y+(o+10)>>0]<<8|d[y+(o+11)>>0];if(o>>>0>F>>>0){l=n;A=56;break a}if((o|0)==(h|0)|q^1|o>>>0<h>>>0&B){c[g>>2]=o;l=Cg(c[n+68>>2]|0)|0;if(l){A=88;break a}p=A+-1|0;if(k>>>0<p>>>0){A=y+((A<<2)+4)|0;A=d[A>>0]|d[A+1>>0]<<8|d[A+2>>0]<<16|d[A+3>>0]<<24;a[s>>0]=A;a[s+1>>0]=A>>8;a[s+2>>0]=A>>16;a[s+3>>0]=A>>24}a[z>>0]=p>>>24;a[v>>0]=p>>>16;a[w>>0]=p>>>8;a[x>>0]=p;o=c[g>>2]|0;p=c[E>>2]|0;do if(!p)p=0;else{if((c[p>>2]|0)>>>0<o>>>0){p=1;break}p=($h(p,o)|0)!=0}while(0);l=$k(e,o,f,p&1^1)|0;if(l){p=0;break}l=Cg(c[(c[f>>2]|0)+68>>2]|0)|0;if(!l){l=0;p=0;break}p=c[f>>2]|0;if(!p){p=0;break}xg(c[p+68>>2]|0);p=0}else l=0}else l=0}else{l=Cg(c[n+68>>2]|0)|0;if(l){A=89;break a}c[g>>2]=s;l=(c[G>>2]|0)+32|0;p=c[u>>2]|0;p=d[p>>0]|d[p+1>>0]<<8|d[p+2>>0]<<16|d[p+3>>0]<<24;a[l>>0]=p;a[l+1>>0]=p>>8;a[l+2>>0]=p>>16;a[l+3>>0]=p>>24;c[f>>2]=n;c[I>>2]=0;n=0;l=0;p=0}while(0);if(m)xg(c[m+68>>2]|0);if(!(p<<24>>24)){m=0;A=88;break}else m=n}if((A|0)==15){c[J>>2]=58314;c[J+4>>2]=10788;Zc(11,13600,J);l=11;A=17}else if((A|0)==22){c[J>>2]=58343;c[J+4>>2]=10788;Zc(11,13600,J);n=l;l=11;A=88}else if((A|0)==32){c[J>>2]=58377;c[J+4>>2]=10788;Zc(11,13600,J);n=l;l=11;A=88}else if((A|0)==35)if(!p)A=88;else{xg(c[o>>2]|0);A=88}else if((A|0)==56){c[J>>2]=58442;c[J+4>>2]=10788;Zc(11,13600,J);n=l;l=11;A=88}if((A|0)==17)c[I>>2]=0;else if((A|0)==88)if(n)A=89;if((A|0)==89)xg(c[n+68>>2]|0);if(!m)A=92;else{xg(c[m+68>>2]|0);A=92}}if((A|0)==92?(l|0)!=0:0)A=98;if((A|0)==98){c[f>>2]=0;break}l=c[f>>2]|0;m=c[l+68>>2]|0;if((b[m+26>>1]|0)<=1){a[l>>0]=0;l=0;break}if(l)xg(m);c[f>>2]=0;c[J>>2]=58541;c[J+4>>2]=10788;Zc(11,13600,J);l=11}else{c[J>>2]=58259;c[J+4>>2]=10788;ZcZc(11,13600,h);g=11}i=k;return g|0}function sp(b){b=b|0;var d=0,e=0,f=0;if((a[b+12>>0]|0)==0?(d=b+60|0,e=c[d>>2]|0,((hc[c[(c[e>>2]|0)+48>>2]&127](e)|0)&4096|0)==0):0){d=c[d>>2]|0;e=c[(c[d>>2]|0)+44>>2]|0;if(e){d=hc[e&127](d)|0;if((d|0)<32)d=512;else f=6}else{d=4096;f=6}if((f|0)==6)d=(d|0)>65536?65536:d;c[b+148>>2]=d}else c[b+148>>2]=512;return}function tp(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=d+40|0;do if(!(c[j>>2]|0)){i=a[d+20>>0]|0;if(i<<24>>24){if(i&3){f=0;break}if(b[e+24>>1]&4){f=0;break}}c[e+12>>2]=0;do if(!(c[d+208>>2]|0)){if(!((b[e+24>>1]&4)==0?(a[d+16>>0]|0)!=3:0))k=11;if((k|0)==11?(g=vl(d,1)|0,(g|0)!=0):0){f=g;break}if(((c[e+20>>2]|0)>>>0>(c[d+24>>2]|0)>>>0?(Qo(e)|0)!=0:0)?(h=Ro(e)|0,(h|0)!=0):0){f=h;break}f=wl(d,e)|0;k=16}else{if((Qo(e)|0)!=0?(f=Ro(e)|0,(f|0)!=0):0)break;f=sl(d,e,0,0)|0;k=16}while(0);if((k|0)==16)if(!f){tl(e);f=0;break}g=f&255;if((g|0)==10|(g|0)==13){c[j>>2]=f;a[d+16>>0]=6}}else f=0;while(0);return f|0}function up(d){d=d|0;var e=0;e=c[d+8>>2]|0;if((a[e>>0]|0)!=0?(a[e>>0]=0,(b[d+26>>1]|0)>1):0)Xp(e)|0;return}function vp(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;m=o+8|0;do if(!(c[h>>2]|0)){if(!e){c[n>>2]=53856;c[n+4>>2]=10788;Zc(11,13600,n);c[h>>2]=11;break}if(e>>>0<2)k=0;else{k=e+-2|0;k=k-((k>>>0)%(((((c[b+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0|0)?3:2)+k|0}l=vg(c[b>>2]|0,k,m,0)|0;if(l){c[h>>2]=l;break}e=(e-k|0)*5|0;l=e+-5|0;do if((l|0)>=0){k=c[m>>2]|0;b=c[k+4>>2]|0;l=b+l|0;if((a[l>>0]|0)==f<<24>>24?(d[b+(e+-3)>>0]<<16|d[b+(e+-4)>>0]<<24|d[b+(e+-2)>>0]<<8|d[b+(e+-1)>>0]|0)==(g|0):0)break;m=Cg(k)|0;c[h>>2]=m;if(!m){a[l>>0]=f;a[b+(e+-4)>>0]=g>>>24;a[b+(e+-3)>>0]=g>>>16;a[b+(e+-2)>>0]=g>>>8;a[b+(e+-1)>>0]=g}}else{c[n>>2]=53867;c[n+4>>2]=10788;Zc(11,13600,n);c[h>>2]=11;k=c[m>>2]|0}while(0);if(k)xg(k)}while(0);i=o;return}function wp(a,b,c){a=a|0;b=b|0;c=c|0;return Gm(a,b,c,0)|0}function xp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;j=d[f>>0]&63;h=f+j|0;l=c[g+8>>2]|0;k=c[l>>2]|0;l=c[l+4>>2]|0;switch(d[f+1>>0]|0){case 1:{h=a[h>>0]|0;i=((h|0)<0)<<31>>31;m=11;break}case 6:{i=d[f+(j+1)>>0]<<16|d[h>>0]<<24|d[f+(j+2)>>0]<<8|d[f+(j+3)>>0];h=d[f+(j+5)>>0]<<16|d[f+(j+4)>>0]<<24|d[f+(j+6)>>0]<<8|d[f+(j+7)>>0];m=11;break}case 7:case 0:{h=Gm(b,f,g,0)|0;break}case 9:{i=0;h=1;m=11;break}case 3:{h=d[f+(j+1)>>0]<<8|a[h>>0]<<16|d[f+(j+2)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 4:{h=d[f+(j+1)>>0]<<16|d[h>>0]<<24|d[f+(j+2)>>0]<<8|d[f+(j+3)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 8:{i=0;h=0;m=11;break}case 2:{h=a[h>>0]<<8|d[f+(j+1)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 5:{i=a[h>>0]<<8|d[f+(j+1)>>0];h=d[f+(j+3)>>0]<<16|d[f+(j+2)>>0]<<24|d[f+(j+4)>>0]<<8|d[f+(j+5)>>0];m=11;break}default:h=Gm(b,f,g,0)|0}do if((m|0)==11){if((l|0)>(i|0)|(l|0)==(i|0)&k>>>0>h>>>0){h=c[g+12>>2]|0;break}if((l|0)<(i|0)|(l|0)==(i|0)&k>>>0<h>>>0){h=c[g+16>>2]|0;break}if((e[g+4>>1]|0)>1){h=Gm(b,f,g,1)|0;break}else{h=a[g+6>>0]|0;break}}while(0);return h|0}function yp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;l=o+8|0;h=f+1|0;k=a[h>>0]|0;if(k<<24>>24>-1){h=k&255;c[l>>2]=h}else{im(h,l)|0;h=c[l>>2]|0}do if((h|0)>=12){if(!(h&1)){h=c[g+16>>2]|0;break}l=d[f>>0]|0;m=(h+-12|0)/2|0;if((l+m|0)>(b|0)){c[n>>2]=68550;c[n+4>>2]=10788;Zc(11,13600,n);a[g+7>>0]=11;h=0;break}h=c[g+8>>2]|0;k=c[h+12>>2]|0;h=Vv(f+l|0,c[h+16>>2]|0,(m|0)>(k|0)?k:m)|0;if(h)if((h|0)>0){h=c[g+16>>2]|0;break}else{h=c[g+12>>2]|0;break}if((m|0)==(k|0))if((e[g+4>>1]|0)>1){h=Gm(b,f,g,1)|0;break}else{h=a[g+6>>0]|0;break}else if((m-k|0)>0){h=c[g+16>>2]|0;break}else{h=c[g+12>>2]|0;break}}else h=c[g+12>>2]|0;while(0);i=o;return h|0}function zp(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;m=f+73|0;h=a[m>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Gn(f)|0;if(h)break;h=a[m>>0]|0}if(!(h<<24>>24)){c[g>>2]=1;h=0;break}h=f+68|0;i=c[h>>2]|0;if((i|0)!=0?(a[m>>0]=1,c[h>>2]=0,(i|0)>0):0)h=0;else n=9}else n=9;while(0);do if((n|0)==9){l=f+76|0;h=b[l>>1]|0;i=c[f+(h<<2)+120>>2]|0;h=f+(h<<1)+78|0;j=(b[h>>1]|0)+1<<16>>16;b[h>>1]=j;h=(a[i+5>>0]|0)!=0;if((j&65535)<(e[i+18>>1]|0)){if(h){h=0;break}h=Rm(f)|0;break}if(!h){h=d[i+6>>0]|0;i=c[i+56>>2]|0;h=nm(f,d[i+(h+9)>>0]<<16|d[i+(h+8)>>0]<<24|d[i+(h+10)>>0]<<8|d[i+(h+11)>>0])|0;if(h)break;h=Rm(f)|0;break}j=f+44|0;k=f+72|0;i=b[l>>1]|0;do{if(!(i<<16>>16)){n=15;break}h=c[f+(i<<16>>16<<2)+120>>2]|0;if(h){xg(c[h+68>>2]|0);i=b[l>>1]|0}i=i+-1<<16>>16;b[l>>1]=i;b[j>>1]=0;a[k>>0]=d[k>>0]&249;o=i<<16>>16;h=c[f+(o<<2)+120>>2]|0}while((e[f+(o<<1)+78>>1]|0)>=(e[h+18>>1]|0));if((n|0)==15){c[g>>2]=1;a[m>>0]=0;h=0;break}if(!(a[h+2>>0]|0))h=0;else h=zm(f,g)|0}while(0);return h|0}function Ap(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;p=f+73|0;h=a[p>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Gn(f)|0;if(h)break;h=a[p>>0]|0}if(!(h<<24>>24)){c[g>>2]=1;h=0;break}h=f+68|0;i=c[h>>2]|0;if((i|0)!=0?(a[p>>0]=1,c[h>>2]=0,(i|0)<0):0)h=0;else j=9}else j=9;while(0);a:do if((j|0)==9){o=f+76|0;k=b[o>>1]|0;l=k<<16>>16;j=c[f+(l<<2)+120>>2]|0;i=f+(l<<1)+78|0;h=b[i>>1]|0;if(!(a[j+5>>0]|0)){g=c[j+56>>2]|0;h=(h&65535)<<1;p=c[j+64>>2]|0;h=(d[p+h>>0]<<8|d[p+(h|1)>>0])&e[j+20>>1];h=nm(f,d[g+(h+1)>>0]<<16|d[g+h>>0]<<24|d[g+(h+2)>>0]<<8|d[g+(h+3)>>0])|0;if(h)break;h=Bp(f)|0;break}b:do if(!(h<<16>>16)){m=f+44|0;n=f+72|0;j=l;while(1){if(!(k<<16>>16))break;i=c[f+(j<<2)+120>>2]|0;if(!i)i=k;else{xg(c[i+68>>2]|0);i=b[o>>1]|0}k=i+-1<<16>>16;b[o>>1]=k;b[m>>1]=0;a[n>>0]=d[n>>0]&249;j=k<<16>>16;i=f+(j<<1)+78|0;h=b[i>>1]|0;if(h<<16>>16)break b}a[p>>0]=0;c[g>>2]=1;h=0;break a}while(0);b[i>>1]=h+-1<<16>>16;p=c[f+(b[o>>1]<<2)+120>>2]|0;if((a[p+2>>0]|0)!=0?(a[p+5>>0]|0)==0:0)h=Am(f,g)|0;else h=0}while(0);return h|0}function Bp(f){f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;i=f+76|0;do{h=b[i>>1]|0;g=c[f+(h<<2)+120>>2]|0;if(a[g+5>>0]|0){j=4;break}k=d[g+6>>0]|0;l=c[g+56>>2]|0;k=d[l+(k+9)>>0]<<16|d[l+(k+8)>>0]<<24|d[l+(k+10)>>0]<<8|d[l+(k+11)>>0];b[f+(h<<1)+78>>1]=b[g+18>>1]|0;g=nm(f,k)|0}while((g|0)==0);if((j|0)==4){b[f+(h<<1)+78>>1]=(e[g+18>>1]|0)+65535;g=0}return g|0}function Cp(a,d,e,f,g,h){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+224|0;if((i|0)>=(j|0))ba();m=o;k=o+8|0;c[k>>2]=0;do if(d){l=a+16|0;n=Bm(c[l>>2]|0,o+16|0,200,k)|0;if(n){Cm(c[l>>2]|0,e,d,n);if(!(b[n+4>>1]|0)){ig(c[(c[l>>2]|0)+12>>2]|0,c[k>>2]|0);c[m>>2]=53713;c[m+4>>2]=10788;Zc(11,13600,m);k=11;break}l=c[k>>2]|0;k=ym(a,n,e,f,g,h)|0;if(l)ig(c[(c[a+16>>2]|0)+12>>2]|0,l)}else k=7}else k=ym(a,0,e,f,g,h)|0;while(0);i=o;return k|0}function Dp(a,f,g){a=a|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+48|0;if((i|0)>=(j|0))ba();r=s+24|0;h=s;p=s+36|0;q=s+32|0;n=c[a+52>>2]|0;np(a,f,h);b[g>>1]=b[h+20>>1]|0;g=b[h+18>>1]|0;a:do if(g<<16>>16){k=g&65535;l=f+(k+3)|0;if(l>>>0>((c[a+56>>2]|0)+(e[a+20>>1]|0)|0)>>>0){c[r>>2]=58720;c[r+4>>2]=10788;Zc(11,13600,r);g=11;break}g=(c[n+36>>2]|0)+-4|0;g=(((c[h+12>>2]|0)+-1+g-(e[h+16>>1]|0)|0)>>>0)/(g>>>0)|0;if(g){m=n+44|0;a=g;k=d[f+(k+1)>>0]<<16|d[f+k>>0]<<24|d[f+(k+2)>>0]<<8|d[l>>0];while(1){a=a+-1|0;c[p>>2]=0;c[q>>2]=0;if(k>>>0<2)break;if(k>>>0>(c[m>>2]|0)>>>0)break;f=(a|0)==0;if(!f){g=Ip(n,k,q,p)|0;if(g)break a;g=c[q>>2]|0;if(g)l=13;else l=12}else l=12;if((l|0)==12){g=Up(n,k)|0;c[q>>2]=g;if(!g){g=0;l=15}else l=13}if((l|0)==13){l=0;if((b[(c[g+68>>2]|0)+26>>1]|0)==1)l=15;else{c[r>>2]=58754;c[r+4>>2]=10788;Zc(11,13600,r);g=11}}if((l|0)==15)g=Um(n,g,k)|0;h=c[q>>2]|0;if((h|0)!=0?(o=c[h+68>>2]|0,(o|0)!=0):0)xg(o);if(g)break a;if(f){g=0;break a}else k=c[p>>2]|0}c[r>>2]=58734;c[r+4>>2]=10788;Zc(11,13600,r);g=11}else g=0}else g=0;while(0);i=s;return g|0}function Ep(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();m=w;do if(!(c[k>>2]|0)){s=c[f+56>>2]|0;t=g<<1;u=c[f+64>>2]|0;v=u+t|0;l=(d[v>>0]|0)<<8|(d[u+(t|1)>>0]|0);n=f+6|0;o=d[n>>0]|0;p=s+(o+5)|0;q=s+(o+6)|0;if(l>>>0>=((d[p>>0]|0)<<8|(d[q>>0]|0))>>>0?(r=f+52|0,(l+h|0)>>>0<=(c[(c[r>>2]|0)+36>>2]|0)>>>0):0){h=yq(f,l&65535,h&65535)|0;if(h){c[k>>2]=h;break}h=f+18|0;l=(b[h>>1]|0)+-1<<16>>16;b[h>>1]=l;if(!(l<<16>>16)){k=s+(o+1)|0;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;a[s+(o+7)>>0]=0;a[p>>0]=(c[(c[r>>2]|0)+36>>2]|0)>>>8;a[q>>0]=c[(c[r>>2]|0)+36>>2];b[f+16>>1]=(c[(c[r>>2]|0)+36>>2]|0)+65528-(d[n>>0]|0)-(d[f+7>>0]|0);break}else{hw(v|0,u+(t+2)|0,(l&65535)-g<<1|0)|0;a[s+(o+3)>>0]=(e[h>>1]|0)>>>8;a[s+(o+4)>>0]=b[h>>1];s=f+16|0;b[s>>1]=(e[s>>1]|0)+2;break}}c[m>>2]=58991;c[m+4>>2]=10788;Zc(11,13600,m);c[k>>2]=11}while(0);i=w;return}function Fp(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+16|0;if((i|0)>=(j|0))ba();p=D;z=D+12|0;v=D+8|0;a:do if(!(c[n>>2]|0)){o=f+1|0;if((a[o>>0]|0)==0?(B=k+2|0,C=f+16|0,(B|0)<=(e[C>>1]|0)):0){l=Cg(c[f+68>>2]|0)|0;if(l){c[n>>2]=l;break}w=c[f+56>>2]|0;q=e[f+14>>1]|0;x=f+18|0;y=e[x>>1]<<1;s=g<<1;t=q+s|0;u=f+6|0;l=d[u>>0]|0;c[z>>2]=0;g=y+q|0;q=w+(l+5)|0;r=w+(l+6)|0;o=((d[q>>0]<<8|d[r>>0])+65535&65535)+1|0;b:do if((g|0)>(o|0)){c[p>>2]=54326;c[p+4>>2]=10788;Zc(11,13600,p);l=11}else{p=g+2|0;do if((p|0)<=(o|0)){if((a[w+(l+1)>>0]|0)==0?(a[w+(l+2)>>0]|0)==0:0){A=20;break}c[v>>2]=0;g=zq(f,k,z,v)|0;l=c[z>>2]|0;if(l)break b;if(!(c[v>>2]|0))if(!g)A=20;else o=g-w|0;else A=21}else A=20;while(0);if((A|0)==20)if((p+k|0)>(o|0))A=21;else A=23;if((A|0)==21){l=Aq(f)|0;c[z>>2]=l;if(l)break;o=((d[q>>0]<<8|d[r>>0])+65535&65535)+1|0;A=23}if((A|0)==23){o=o-k|0;a[q>>0]=o>>>8;a[r>>0]=o}b[x>>1]=(b[x>>1]|0)+1<<16>>16;b[C>>1]=(e[C>>1]|0)-B;l=w+o|0;gw(l|0,h|0,k|0)|0;if(m){a[l>>0]=m>>>24;a[w+(o+1)>>0]=m>>>16;a[w+(o+2)>>0]=m>>>8;a[w+(o+3)>>0]=m}m=w+t|0;hw(w+(t+2)|0,m|0,y-s|0)|0;a[m>>0]=o>>>8;a[w+(t+1)>>0]=o;a[w+((d[u>>0]|0)+3)>>0]=(e[x>>1]|0)>>>8;a[w+((d[u>>0]|0)+4)>>0]=b[x>>1];if(!(a[(c[f+52>>2]|0)+17>>0]|0))break a;Bq(f,h,n);break a}while(0);c[n>>2]=l;break}if(!l)l=h;else gw(l|0,h|0,k|0)|0;if(m){a[l>>0]=m>>>24;a[l+1>>0]=m>>>16;a[l+2>>0]=m>>>8;a[l+3>>0]=m}n=a[o>>0]|0;a[o>>0]=n+1<<24>>24;n=n&255;c[f+(n<<2)+32>>2]=l;b[f+(n<<1)+22>>1]=g}while(0);i=D;return}function Gp(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,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;Oa=i;i=i+240|0;if((i|0)>=(j|0))ba();Na=Oa+24|0;Ka=Oa+200|0;Aa=Oa+188|0;za=Oa+168|0;ya=Oa+160|0;Ba=Oa+136|0;Ca=Oa+116|0;Ma=Oa+96|0;Ha=Oa+92|0;xa=Oa+229|0;wa=Oa+72|0;va=Oa+52|0;ua=Oa+206|0;Ga=Oa+48|0;Da=Oa;Fa=Oa+44|0;Ja=Oa+40|0;Ia=Oa+36|0;Ea=Oa+32|0;La=Oa+204|0;ta=Oa+216|0;ea=f+4|0;ma=(c[(c[ea>>2]|0)+36>>2]<<1>>>0)/3|0;na=f+76|0;qa=f+74|0;ra=ta+4|0;sa=ta;fa=f+124|0;ka=f+78|0;la=f+80|0;l=b[na>>1]|0;da=0;while(1){m=l<<16>>16;n=c[f+(m<<2)+120>>2]|0;o=n+1|0;h=(a[o>>0]|0)==0;if(!(l<<16>>16)){if(h){h=da;g=0;break}c[Ka>>2]=0;c[Aa>>2]=0;k=c[n+52>>2]|0;g=Cg(c[n+68>>2]|0)|0;c[Na>>2]=g;do if(!g){h=n+72|0;c[Na>>2]=ep(k,Ka,Aa,c[h>>2]|0,0)|0;l=c[Ka>>2]|0;Cq(n,l,Na);if(a[k+17>>0]|0)vp(k,c[Aa>>2]|0,5,c[h>>2]|0,Na);g=c[Na>>2]|0;if(!g){gw(l+22|0,n+22|0,d[o>>0]<<1|0)|0;gw(l+32|0,n+32|0,d[o>>0]<<2|0)|0;a[l+1>>0]=a[o>>0]|0;ll(n,d[c[l+56>>2]>>0]&247);g=d[n+6>>0]|0;$=c[n+56>>2]|0;_=c[Aa>>2]|0;a[$+(g+8)>>0]=_>>>24;a[$+(g+9)>>0]=_>>>16;a[$+(g+10)>>0]=_>>>8;a[$+(g+11)>>0]=_;c[fa>>2]=l;g=0;break}c[fa>>2]=0;if(l)xg(c[l+68>>2]|0)}else c[fa>>2]=0;while(0);if(g){h=da;break}b[na>>1]=1;b[ka>>1]=0;b[la>>1]=0;l=c[fa>>2]|0;k=l+1|0;if(!(a[k>>0]|0)){h=1;m=1;ca=15}else{p=1;m=1;o=k}}else if(h){h=l;l=n;k=o;ca=15}else{p=l;l=n}if((ca|0)==15){ca=0;if((e[l+16>>1]|0)>>>0>ma>>>0){p=h;o=k}else{h=da;g=0;break}}k=m+-1|0;aa=c[f+(k<<2)+120>>2]|0;k=b[f+(k<<1)+78>>1]|0;q=k&65535;g=Cg(c[aa+68>>2]|0)|0;do if(!g){if(((((a[l+3>>0]|0)!=0?(a[o>>0]|0)==1:0)?(ga=b[l+22>>1]|0,ha=l+18|0,ga<<16>>16==(b[ha>>1]|0)):0)?(ia=aa+72|0,(c[ia>>2]|0)!=1):0)?(ja=aa+18|0,(b[ja>>1]|0)==k<<16>>16):0){k=c[l+52>>2]|0;if(!(ga<<16>>16)){c[Na>>2]=59423;c[Na+4>>2]=10788;Zc(11,13600,Na);h=da;g=11;break}$=ep(k,Fa,Ia,0,0)|0;c[Ja>>2]=$;if(!$){h=c[l+32>>2]|0;c[Ea>>2]=h;g=Hp(l,h)|0;b[La>>1]=g;m=c[Fa>>2]|0;ll(m,13);Dq(m,1,Ea,La);b[m+16>>1]=65534-(g&65535)+(c[k+36>>2]|0)-(e[m+14>>1]|0);if((a[k+17>>0]|0)!=0?(vp(k,c[Ia>>2]|0,5,c[ia>>2]|0,Ja),(g&65535)>(e[m+12>>1]|0)):0)Bq(m,h,Ja);$=c[l+56>>2]|0;k=e[ha>>1]<<1;h=c[l+64>>2]|0;k=(d[h+(k+-2)>>0]<<8|d[h+(k+-1)>>0])&e[l+20>>1];h=$+k|0;c[Ea>>2]=h;k=$+(k+9)|0;while(1){g=h+1|0;if((a[h>>0]|0)<0&g>>>0<k>>>0)h=g;else break}c[Ea>>2]=g;k=h+10|0;m=ra;while(1){c[Ea>>2]=g+1;$=a[g>>0]|0;h=m+1|0;a[m>>0]=$;g=c[Ea>>2]|0;if(!($<<24>>24<0&g>>>0<k>>>0))break;else m=h}Fp(aa,e[ja>>1]|0,ta,h-sa|0,0,c[l+72>>2]|0,Ja);h=d[aa+6>>0]|0;$=c[aa+56>>2]|0;_=c[Ia>>2]|0;a[$+(h+8)>>0]=_>>>24;a[$+(h+9)>>0]=_>>>16;a[$+(h+10)>>0]=_>>>8;a[$+(h+11)>>0]=_;h=c[Fa>>2]|0;if(h)xg(c[h+68>>2]|0)}h=da;g=c[Ja>>2]|0;break}h=Co(c[(c[ea>>2]|0)+32>>2]|0)|0;X=p<<16>>16==1;n=d[qa>>0]|0;K=n&1;c[Ka>>2]=0;a[xa+0>>0]=0;a[xa+1>>0]=0;a[xa+2>>0]=0;a[xa+3>>0]=0;a[xa+4>>0]=0;Z=c[aa+52>>2]|0;if(!h)g=7;else{B=aa+1|0;p=d[B>>0]|0;Y=aa+18|0;g=e[Y>>1]|0;m=g+p|0;if((m|0)<2){_=m;T=0}else{do if(k<<16>>16)if((m|0)==(q|0)){n=(n|-2)+q|0;break}else{n=q+-1|0;break}else n=0;while(0);_=2-K|0;T=n}$=_+1|0;n=T-p+_|0;A=aa+56|0;p=c[A>>2]|0;if((n|0)==(g|0))q=(d[aa+6>>0]|0)+8|0;else{q=n<<1;W=c[aa+64>>2]|0;q=(d[W+q>>0]<<8|d[W+(q|1)>>0])&e[aa+20>>1]}Q=p+q|0;O=p+(q+1)|0;P=p+(q+2)|0;D=p+(q+3)|0;W=d[O>>0]<<16|d[Q>>0]<<24|d[P>>0]<<8|d[D>>0];c[Ha>>2]=W;q=Aa+(_<<2)|0;W=rp(Z,W,q,0)|0;c[Ka>>2]=W;a:do if(!W){t=aa+22|0;w=aa+32|0;x=aa+20|0;y=aa+64|0;z=Z+22|0;N=Z+36|0;u=_;p=0;while(1){k=c[q>>2]|0;p=p+1+(e[k+18>>1]|0)+(d[k+1>>0]|0)|0;k=u+-1|0;if(!u)break;v=k+T|0;q=a[B>>0]|0;if((v|0)==(e[t>>1]|0))if(!(q<<24>>24)){q=0;ca=52}else{W=c[w>>2]|0;c[ya+(k<<2)>>2]=W;n=d[W+1>>0]<<16|d[W>>0]<<24|d[W+2>>0]<<8|d[W+3>>0];c[Ha>>2]=n;c[Ma+(k<<2)>>2]=(Hp(aa,W)|0)&65535;a[B>>0]=0}else ca=52;if((ca|0)==52){ca=0;n=c[A>>2]|0;r=v-(q&255)<<1;m=c[y>>2]|0;r=(d[m+r>>0]<<8|d[m+(r|1)>>0])&e[x>>1];m=n+r|0;g=ya+(k<<2)|0;c[g>>2]=m;n=d[n+(r+1)>>0]<<16|d[m>>0]<<24|d[n+(r+2)>>0]<<8|d[n+(r+3)>>0];c[Ha>>2]=n;s=(Hp(aa,m)|0)&65535;c[Ma+(k<<2)>>2]=s;if(b[z>>1]&4){if((s+r|0)>(c[N>>2]|0)){k=u;ca=54;break}gw(h+r|0,m|0,s|0)|0;c[g>>2]=h+(m-(c[A>>2]|0));q=a[B>>0]|0}Ep(aa,v-(q&255)|0,s,Ka)}q=Aa+(k<<2)|0;W=rp(Z,n,q,0)|0;c[Ka>>2]=W;if(W){ca=47;break a}else u=k}if((ca|0)==54){ca=0;c[Na>>2]=59766;c[Na+4>>2]=10788;ZcZc(11,13600,Na);c[Ka>>2]=11;m=W;n=0;break}c[Ma+(k<<2)>>2]=n;c[Ba+(k<<2)>>2]=p;if((k|0)>0){B=(K|0)==0;m=k;do{s=Ma+(m<<2)|0;m=m+-1|0;g=Ma+(m<<2)|0;t=Ba+(m<<2)|0;x=c[t>>2]|0;A=c[g>>2]|0;r=n;while(1){w=x+-1|0;v=x-C|0;if(r){if(!B){n=A;break}y=b[U+(v<<1)>>1]|0;z=r+2|0;v=b[U+(w<<1)>>1]|0;u=A+-2|0;if(((y&65535)+z|0)>(u-(v&65535)|0)){n=A;break}}else{u=A+-2|0;z=2;y=b[U+(v<<1)>>1]|0;v=b[U+(w<<1)>>1]|0}c[t>>2]=w;x=w;A=u-(v&65535)|0;r=(y&65535)+z|0}c[s>>2]=r;c[g>>2]=n}while((m|0)>0);I=1;M=q;L=p}else{I=1;M=q;L=p}}else ca=93}else{q=R+-12+(c[N>>2]|0)|0;p=0;ca=93}if((ca|0)==93){ca=0;c[Ma>>2]=0;c[Ba>>2]=p;I=0;M=q;k=0;L=p}if((c[J+72>>2]|0)>>>0<2){c[Na>>2]=59963;c[Na+4>>2]=10788;Zc(11,13600,Na);c[Ka>>2]=11;m=W;n=0;break}E=d[c[J+56>>2]>>0]|0;if((k|0)>-1){s=(K|0)!=0;g=Z+17|0;m=aa+72|0;u=0;n=0;while(1){do if((u|0)<($|0)){J=Aa+(u<<2)|0;K=c[J>>2]|0;c[za+(u<<2)>>2]=K;c[Ga>>2]=K;c[J>>2]=0;K=Cg(c[K+68>>2]|0)|0;c[Ka>>2]=K;n=n+1|0;if(K){m=W;break a}}else{K=ep(Z,Ga,Ha,s?1:c[Ha>>2]|0,0)|0;c[Ka>>2]=K;if(K){m=W;break a}q=c[Ga>>2]|0;ll(q,E);c[za+(u<<2)>>2]=q;n=n+1|0;c[Ca+(u<<2)>>2]=L;if(!(a[g>>0]|0))break;vp(Z,c[q+72>>2]|0,5,c[m>>2]|0,Ka);if(c[Ka>>2]|0){m=W;break a}}while(0);if((u|0)<(k|0))u=u+1|0;else break}if((n|0)>0){p=0;c:do{K=c[za+(p<<2)>>2]|0;q=c[K+72>>2]|0;c[wa+(p<<2)>>2]=q;c[va+(p<<2)>>2]=q;b[ua+(p<<1)>>1]=b[(c[K+68>>2]|0)+24>>1]|0;if((p|0)>0){m=0;do{if((c[wa+(m<<2)>>2]|0)==(q|0)){ca=118;break c}m=m+1|0}while((m|0)<(p|0))}p=p+1|0}while((p|0)<(n|0));if((ca|0)==118){ca=0;c[Na>>2]=60018;c[Na+4>>2]=10788;Zc(11,13600,Na);c[Ka>>2]=11;m=W;break}r=(n|0)>1;m=Z+44|0;k=0;do{if(r){p=0;q=1;do{p=(c[va+(q<<2)>>2]|0)>>>0<(c[va+(p<<2)>>2]|0)>>>0?q:p;q=q+1|0}while((q|0)!=(n|0))}else p=0;K=va+(p<<2)|0;q=c[K>>2]|0;c[K>>2]=-1;if((p|0)!=(k|0)){if((p|0)>(k|0)){J=c[(c[za+(p<<2)>>2]|0)+68>>2]|0;K=p+1+(c[m>>2]|0)|0;b[J+24>>1]=0;Vp(J,K)}K=c[za+(k<<2)>>2]|0;J=c[K+68>>2]|0;b[J+24>>1]=b[ua+(p<<1)>>1]|0;Vp(J,q);c[K+72>>2]=q}k=k+1|0}while((k|0)!=(n|0));c[Ha>>2]=q;K=0}else K=1}else{K=1;n=0}H=n+-1|0;q=c[za+(H<<2)>>2]|0;J=c[q+72>>2]|0;a[Q>>0]=J>>>24;a[O>>0]=J>>>16;a[P>>0]=J>>>8;a[D>>0]=J;if(!((E&8|0)!=0|($|0)==(n|0))){Q=(c[q+56>>2]|0)+8|0;P=(c[(c[((n|0)>($|0)?za:Aa)+(_<<2)>>2]|0)+56>>2]|0)+8|0;P=d[P>>0]|d[P+1>>0]<<8|d[P+2>>0]<<16|d[P+3>>0]<<24;a[Q>>0]=P;a[Q+1>>0]=P>>8;a[Q+2>>0]=P>>16;a[Q+3>>0]=P>>24}J=Z+17|0;if((a[J>>0]|0)!=0?(oa=c[za>>2]|0,pa=c[N>>2]|0,I):0){A=S<<24>>24==0;y=A&1;x=V<<16>>16==0;v=c[oa+56>>2]|0;u=(e[oa+18>>1]|0)+(d[oa+1>>0]|0)|0;w=0;t=0;p=0;r=oa;while(1){z=c[W+(w<<2)>>2]|0;if((w|0)==(u|0)){p=p+1|0;if((p|0)<(n|0))q=za+(p<<2)|0;else q=Aa+(p<<2)|0;u=c[q>>2]|0;v=c[u+56>>2]|0;u=w+y+(e[u+18>>1]|0)+(d[u+1>>0]|0)|0}if((w|0)==(c[Ba+(t<<2)>>2]|0)){q=t+1|0;r=c[za+(q<<2)>>2]|0;if(!A)ca=142}else{q=t;ca=142}do if((ca|0)==142){ca=0;if((p|0)<(n|0)?(z>>>0>=v>>>0?(c[r+72>>2]|0)==(c[wa+(p<<2)>>2]|0):0)&z>>>0<(v+pa|0)>>>0:0)break;if(x)vp(Z,d[z+1>>0]<<16|d[z>>0]<<24|d[z+2>>0]<<8|d[z+3>>0],5,c[r+72>>2]|0,Ka);if((e[U+(w<<1)>>1]|0)<=(e[r+12>>1]|0))break;Bq(r,z,Ka)}while(0);w=w+1|0;if((w|0)==(L|0))break;else t=q}}if((H|0)>0){s=S<<24>>24==0;u=0;v=0;while(1){t=c[za+(u<<2)>>2]|0;p=c[Ba+(u<<2)>>2]|0;m=c[W+(p<<2)>>2]|0;k=b[U+(p<<1)>>1]|0;q=(k&65535)+R|0;r=h+v|0;do if(!(a[t+5>>0]|0)){p=(c[t+56>>2]|0)+8|0;Q=d[m>>0]|d[m+1>>0]<<8|d[m+2>>0]<<16|d[m+3>>0]<<24;a[p>>0]=Q;a[p+1>>0]=Q>>8;a[p+2>>0]=Q>>16;a[p+3>>0]=Q>>24;p=r}else{if(!s){np(t,c[W+(p+-1<<2)>>2]|0,Da);q=Da;m=r;p=0;q=(lm(h+(v+4)|0,c[q>>2]|0,c[q+4>>2]|0)|0)+4|0;break}g=m+-4|0;if(k<<16>>16!=4){m=g;p=r;break}m=g;p=r;q=(Hp(aa,g)|0)&65535}while(0);Fp(aa,u+T|0,m,q,p,c[t+72>>2]|0,Ka);if(c[Ka>>2]|0){m=W;break a}u=u+1|0;if((u|0)>=(H|0))break;else v=q+v|0}}q=1-n|0;if((q|0)<(n|0)){I=c[Ba>>2]|0;H=S<<24>>24==0&1;do{F=(q|0)<0?0-q|0:q;G=xa+F|0;do if(!(a[G>>0]|0)){if((q|0)<=-1?(T=F+-1|0,(c[Ca+(T<<2)>>2]|0)<(c[Ba+(T<<2)>>2]|0)):0)break;if(!F){E=0;m=0;D=I}else{p=F+-1|0;if((F|0)<($|0))m=(c[Ca+(p<<2)>>2]|0)+H|0;else m=L;D=(c[Ba+(p<<2)>>2]|0)+H|0;E=D;D=(c[Ba+(F<<2)>>2]|0)-D|0}B=c[za+(F<<2)>>2]|0;s=c[B+56>>2]|0;g=d[B+6>>0]|0;k=B+64|0;p=(c[k>>2]|0)+(D<<1)|0;r=B+18|0;v=e[r>>1]|0;C=B+1|0;u=v+m+(d[C>>0]|0)|0;t=D+E|0;if((m|0)<(E|0)){T=Eq(B,E-m|0,W+(m<<2)|0,U+(m<<1)|0)|0;S=c[k>>2]|0;hw(S|0,S+(T<<1)|0,v<<1|0)|0;v=v-T|0}if((u|0)>(t|0))v=v-(Eq(B,u-t|0,W+(t<<2)|0,U+(t<<1)|0)|0)|0;x=s+(g+5)|0;w=s+(g+6)|0;T=s+(((d[x>>0]<<8|d[w>>0])+65535&65535)+1)|0;c[Na>>2]=T;d:do if(T>>>0<p>>>0)ca=181;else{if((E|0)<(m|0)){u=m-E|0;u=(u|0)>(D|0)?D:u;T=c[k>>2]|0;hw(T+(u<<1)|0,T|0,v<<1|0)|0;if(Fq(B,p,Na,T,u,W+(E<<2)|0,U+(E<<1)|0)|0){ca=181;break}v=v+u|0}u=a[C>>0]|0;if(u<<24>>24){A=0;do{z=(e[B+(A<<1)+22>>1]|0)+m|0;y=z-E|0;if((y|0)>-1&(y|0)<(D|0)){S=y<<1;R=c[k>>2]|0;T=R+S|0;hw(R+(S+2)|0,T|0,v-y<<1|0)|0;if(Fq(B,p,Na,T,1,W+(z<<2)|0,U+(z<<1)|0)|0){ca=181;break d}u=a[C>>0]|0;v=v+1|0}A=A+1|0}while((A|0)<(u&255|0))}T=v+E|0;if(Fq(B,p,Na,(c[k>>2]|0)+(v<<1)|0,D-v|0,W+(T<<2)|0,U+(T<<1)|0)|0){ca=181;break}T=D&65535;b[r>>1]=T;a[C>>0]=0;a[s+(g+3)>>0]=(T&65535)>>>8;a[s+(g+4)>>0]=b[r>>1];T=(c[Na>>2]|0)-s|0;a[x>>0]=T>>>8;a[w>>0]=T}while(0);if((ca|0)==181){ca=0;Dq(B,D,W+(E<<2)|0,U+(E<<1)|0)}a[G>>0]=1;b[B+16>>1]=M-(c[Ma+(F<<2)>>2]|0)}while(0);q=q+1|0}while((q|0)!=(n|0))}do if(X){if(b[Y>>1]|0){ca=191;break}m=c[za>>2]|0;if((d[aa+6>>0]|0)>>>0>(e[m+16>>1]|0)>>>0){ca=191;break}c[Ka>>2]=Aq(m)|0;Cq(m,aa,Ka);if(c[Ka>>2]|0)break;c[Ka>>2]=Um(c[m+52>>2]|0,m,c[m+72>>2]|0)|0}else ca=191;while(0);do if((ca|0)==191){ca=0;if((a[J>>0]|0)==0|V<<16>>16!=0|K)break;else m=0;do{Y=c[za+(m<<2)>>2]|0;X=c[Y+56>>2]|0;vp(Z,d[X+9>>0]<<16|d[X+8>>0]<<24|d[X+10>>0]<<8|d[X+11>>0],5,c[Y+72>>2]|0,Ka);m=m+1|0}while((m|0)!=(n|0))}while(0);if((n|0)>=($|0)){m=W;break}m=c[Ka>>2]|0;g=n;do{k=c[Aa+(g<<2)>>2]|0;if(!m){m=Um(c[k+52>>2]|0,k,c[k+72>>2]|0)|0;c[Ka>>2]=m}g=g+1|0}while((g|0)!=($|0));m=W}else{k=_;ca=47}while(0);if((ca|0)==47){ca=0;bw(Aa|0,0,(k<<2)+4|0)|0;m=0;n=0}di(m);if((_|0)>-1){k=0;do{m=c[Aa+(k<<2)>>2]|0;if(m)xg(c[m+68>>2]|0);k=k+1|0}while((k|0)<($|0))}if((n|0)>0){k=0;do{g=c[za+(k<<2)>>2]|0;if(g)xg(c[g+68>>2]|0);k=k+1|0}while((k|0)!=(n|0))}g=c[Ka>>2]|0}if(da)Xk(da)}else h=da;while(0);a[o>>0]=0;if(l)xg(c[l+68>>2]|0);l=(b[na>>1]|0)+-1<<16>>16;b[na>>1]=l;if(g)break;else da=h}if(h)Xk(h);i=Oa;return g|0}function Hp(b,f){b=b|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=d[b+7>>0]|0;h=f+g|0;do if(!(a[b+4>>0]|0)){j=a[h>>0]|0;i=j&255;if(j<<24>>24<0){j=f+(g+9)|0;g=i&127;do{h=h+1|0;i=a[h>>0]|0;g=i&127|g<<7}while(i<<24>>24<0&h>>>0<j>>>0)}else g=i;i=h+1|0;if(a[b+2>>0]|0){k=h+10|0;j=i;while(1){i=h+2|0;if((a[j>>0]|0)<0&i>>>0<k>>>0){h=j;j=i}else break}}h=e[b+10>>1]|0;if(g>>>0>h>>>0){j=e[b+12>>1]|0;g=(((g-j|0)>>>0)%(((c[(c[b+52>>2]|0)+36>>2]|0)+-4|0)>>>0)|0)+j|0;g=(i-f&65535)+4+(g>>>0>h>>>0?j:g)|0;break}else{g=i-f+g|0;g=g>>>0<4?4:g;break}}else{i=f+(g+9)|0;while(1){g=h+1|0;if((a[h>>0]|0)<0&g>>>0<i>>>0)h=g;else break}g=g-f|0}while(0);return g&65535|0}function Ip(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))ba();q=s+4|0;p=s;o=s+8|0;c[q>>2]=0;if(a[b+17>>0]|0){h=((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0;m=b+36|0;n=e;while(1){l=n+1|0;if(l>>>0<2)k=0;else{k=n+-1|0;k=k-((k>>>0)%(((((c[m>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(h|0)?3:2)+k|0}if((k|0)==(l|0)|(n|0)==(h|0))n=l;else break}if(l>>>0<=(c[b+44>>2]|0)>>>0){n=dp(b,l,o,p)|0;m=(n|0)==0;k=m&(a[o>>0]|0)==4&(c[p>>2]|0)==(e|0);l=k?l:0;if(k|m^1){h=0;k=k?101:n}else r=8}else{l=0;r=8}}else{l=0;r=8}if((r|0)==8){k=$k(b,e,q,(f|0)==0?2:0)|0;h=c[q>>2]|0;if(!k){l=c[h+56>>2]|0;l=d[l+1>>0]<<16|d[l>>0]<<24|d[l+2>>0]<<8|d[l+3>>0];k=0}}c[g>>2]=l;if(!f){if(h)xg(c[h+68>>2]|0)}else c[f>>2]=h;i=s;return ((k|0)==101?0:k)|0}function Jp(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;c[h>>2]=0;f=(b|0)!=0;a:do if(d)if(f){f=h;while(1){g=d+8|0;while(1){if((Sp(a,b+8|0,c[b>>2]|0,g,c[d>>2]|0)|0)>=1)break;c[f>>2]=b;f=b+4|0;b=c[f>>2]|0;if(!b){b=0;g=0;break a}else g=0}c[f>>2]=d;f=d+4|0;d=c[f>>2]|0;if(!d){d=0;g=1;break a}if(!b){b=0;g=0;break}}}else{g=f;f=h}else{d=0;g=f;f=h}while(0);c[f>>2]=g?b:d;c[e>>2]=c[h>>2];i=k;return}function Kp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g+8|0;e=g;d=c[2252]|0;if((d|0)!=0?(hc[d&127](202)|0)!=0:0)d=3338;else{d=ip(c[a>>2]|0,0,b,4126,f)|0;c[f>>2]=d;if(!d){d=e;c[d>>2]=0;c[d+4>>2]=0;d=c[b>>2]|0;Yb[c[(c[d>>2]|0)+40>>2]&63](d,18,e)|0;d=c[f>>2]|0}}i=g;return d|0}function Lp(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=b+0|0;h=g+40|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(h|0));g=((d|0)<0)<<31>>31;h=mg(d,g)|0;c[b+4>>2]=h;if(!h)c[b>>2]=7;else{h=nw(e|0,f|0,d|0,g|0)|0;c[b+12>>2]=h;c[b+16>>2]=h;h=$v(e|0,f|0,h|0,((h|0)<0)<<31>>31|0)|0;g=b+24|0;c[g>>2]=h;c[g+4>>2]=C;c[b+8>>2]=d;c[b+32>>2]=a}return}function Mp(a,b,d){a=a|0;b=b|0;d=d|0;var 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;a:do if((d|0)>0){f=a+8|0;h=a+16|0;i=a+4|0;j=a+32|0;k=a+12|0;l=a+24|0;m=d;do{if(c[a>>2]|0)break a;g=c[h>>2]|0;e=(c[f>>2]|0)-g|0;e=(m|0)>(e|0)?e:m;gw((c[i>>2]|0)+g|0,b+(d-m)|0,e|0)|0;g=(c[h>>2]|0)+e|0;c[h>>2]=g;if((g|0)==(c[f>>2]|0)){q=c[j>>2]|0;o=c[k>>2]|0;p=(c[i>>2]|0)+o|0;n=l;n=fw(c[n>>2]|0,c[n+4>>2]|0,o|0,((o|0)<0)<<31>>31|0)|0;c[a>>2]=pc[c[(c[q>>2]|0)+12>>2]&31](q,p,g-o|0,n,C)|0;c[h>>2]=0;c[k>>2]=0;n=c[f>>2]|0;g=l;n=fw(c[g>>2]|0,c[g+4>>2]|0,n|0,((n|0)<0)<<31>>31|0)|0;g=l;c[g>>2]=n;c[g+4>>2]=C}m=m-e|0}while((m|0)>0)}while(0);return}function Np(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;f=a+4|0;if(((c[a>>2]|0)==0?(e=c[f>>2]|0,(e|0)!=0):0)?(d=c[a+16>>2]|0,g=c[a+12>>2]|0,(d|0)>(g|0)):0){i=c[a+32>>2]|0;h=a+24|0;h=fw(c[h>>2]|0,c[h+4>>2]|0,g|0,((g|0)<0)<<31>>31|0)|0;c[a>>2]=pc[c[(c[i>>2]|0)+12>>2]&31](i,e+g|0,d-g|0,h,C)|0}e=a+24|0;d=c[a+16>>2]|0;e=fw(d|0,((d|0)<0)<<31>>31|0,c[e>>2]|0,c[e+4>>2]|0)|0;d=b;c[d>>2]=e;c[d+4>>2]=C;Sc(c[f>>2]|0);f=c[a>>2]|0;d=a+0|0;e=d+40|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(e|0));return f|0}function Op(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=c[2252]|0;if((g|0)!=0?(hc[g&127](201)|0)!=0:0)g=266;else{h=b+44|0;if(c[h>>2]|0)c[h>>2]=0;n=b;c[n>>2]=e;c[n+4>>2]=f;n=d+8|0;l=c[n>>2]|0;n=c[n+4>>2]|0;j=b+8|0;k=j;c[k>>2]=l;c[k+4>>2]=n;d=c[d>>2]|0;k=b+24|0;c[k>>2]=d;a=a+8|0;g=c[a>>2]|0;i=c[(c[g+24>>2]|0)+136>>2]|0;m=((i|0)<0)<<31>>31;if(!((n|0)>(m|0)|(n|0)==(m|0)&l>>>0>i>>>0)?(c[c[d>>2]>>2]|0)>2:0){c[h>>2]=0;g=c[a>>2]|0}i=c[g+12>>2]|0;d=((i|0)<0)<<31>>31;f=nw(e|0,f|0,i|0,d|0)|0;a=b+36|0;g=c[a>>2]|0;if(!g){g=mg(i,d)|0;c[a>>2]=g;c[b+40>>2]=i;e=g;g=(g|0)==0?7:0}else{e=g;g=0}if((g|0)==0&(f|0)!=0){g=i-f|0;i=b;h=c[i>>2]|0;i=c[i+4>>2]|0;b=fw(h|0,i|0,g|0,((g|0)<0)<<31>>31|0)|0;l=C;d=j;a=c[d>>2]|0;d=c[d+4>>2]|0;if((l|0)>(d|0)|(l|0)==(d|0)&b>>>0>a>>>0)g=$v(a|0,d|0,h|0,i|0)|0;k=c[k>>2]|0;g=pc[c[(c[k>>2]|0)+8>>2]&31](k,e+f|0,g,h,i)|0}}return g|0}function Pp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))ba();k=l+8|0;h=l;f=c[b+44>>2]|0;e=b;g=c[e>>2]|0;a:do if(!f){f=c[b+40>>2]|0;e=nw(g|0,c[e+4>>2]|0,f|0,((f|0)<0)<<31>>31|0)|0;if((e|0)!=0&(f-e|0)>8){f=(op((c[b+36>>2]|0)+e|0,d)|0)&255;e=b;f=fw(c[e>>2]|0,c[e+4>>2]|0,f|0,0)|0;e=b;c[e>>2]=f;c[e+4>>2]=C;e=0;break}else f=0;while(1){e=Gq(b,1,h)|0;if(e)break a;e=a[c[h>>2]>>0]|0;a[k+(f&15)>>0]=e;if(e<<24>>24<0)f=f+1|0;else break}op(k,d)|0;e=0}else{f=(op(f+g|0,d)|0)&255;e=b;f=fw(c[e>>2]|0,c[e+4>>2]|0,f|0,0)|0;e=b;c[e>>2]=f;c[e+4>>2]=C;e=0}while(0);i=l;return e|0}function Qp(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;d=g;c[d>>2]=0;c[d+4>>2]=0;d=a;f=c[d+4>>2]|0;b=a+8|0;e=c[b+4>>2]|0;do if((f|0)<(e|0)|((f|0)==(e|0)?(c[d>>2]|0)>>>0<(c[b>>2]|0)>>>0:0))h=9;else{d=c[a+48>>2]|0;if(d){b=Hq(d)|0;l=d+32|0;f=d+48|0;c[l+0>>2]=c[f+0>>2];c[l+4>>2]=c[f+4>>2];c[l+8>>2]=c[f+8>>2];c[l+12>>2]=c[f+12>>2];l=d+40|0;f=d+8|0;e=c[f>>2]|0;f=c[f+4>>2]|0;if((c[l>>2]|0)==(e|0)?(c[l+4>>2]|0)==(f|0):0)c[d+20>>2]=1;if(!b)if(!(c[d+20>>2]|0)){b=Op(c[d>>2]|0,a,d+32|0,e,f)|0;if(!b){h=9;break}else break}else b=0}else b=0;Rp(a)}while(0);if((h|0)==9){b=Pp(a,g)|0;if(!b){b=c[g>>2]|0;c[a+20>>2]=b;b=Gq(a,b,a+32|0)|0}}i=k;return b|0}function Rp(a){a=a|0;var b=0;Sc(c[a+28>>2]|0);Sc(c[a+36>>2]|0);Om(c[a+48>>2]|0);a=a+0|0;b=a+56|0;do{c[a>>2]=0;a=a+4|0}while((a|0)<(b|0));return}function Sp(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=c[a+12>>2]|0;if(e)Cm(c[(c[a+8>>2]|0)+28>>2]|0,f,e,g);return Gm(d,b,g,0)|0}function Tp(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();m=w;l=w+8|0;s=w+12|0;do if((c[f+44>>2]|0)>>>0>=g>>>0){g=rp(f,g,l,0)|0;if(!g){u=c[l>>2]|0;t=u+9|0;a:do if(!(a[t>>0]|0)){a[t>>0]=1;q=d[u+6>>0]|0;o=u+18|0;l=b[o>>1]|0;if(!(l<<16>>16)){l=l&65535;g=u+5|0}else{n=0;while(1){m=c[u+56>>2]|0;l=n<<1;g=c[u+64>>2]|0;l=(d[g+l>>0]<<8|d[g+(l|1)>>0])&e[u+20>>1];g=m+l|0;p=u+5|0;if((a[p>>0]|0)==0?(r=Tp(f,d[m+(l+1)>>0]<<16|d[g>>0]<<24|d[m+(l+2)>>0]<<8|d[m+(l+3)>>0],1,k)|0,(r|0)!=0):0){g=r;v=21;break a}g=Dp(u,g,s)|0;n=n+1|0;if(g){v=21;break a}l=e[o>>1]|0;if((n|0)>=(l|0)){g=p;break}}}if(!(a[g>>0]|0)){g=c[u+56>>2]|0;g=Tp(f,d[g+(q+9)>>0]<<16|d[g+(q+8)>>0]<<24|d[g+(q+10)>>0]<<8|d[g+(q+11)>>0],1,k)|0;if(!g)v=16}else if(!k)v=16;else{c[k>>2]=(c[k>>2]|0)+l;v=16}if((v|0)==16){if(h){g=Um(c[u+52>>2]|0,u,c[u+72>>2]|0)|0;v=21;break}g=Cg(c[u+68>>2]|0)|0;if(!g){ll(u,d[(c[u+56>>2]|0)+q>>0]|8);g=0;v=21;break}}a[t>>0]=0}else{c[m>>2]=60971;c[m+4>>2]=10788;Zc(11,13600,m);g=11;v=21}while(0);if((v|0)==21){a[t>>0]=0;if(!u)break}xg(c[u+68>>2]|0)}}else{c[m>>2]=60966;c[m+4>>2]=10788;Zc(11,13600,m);g=11}while(0);i=w;return g|0}function Up(b,d){b=b|0;d=d|0;var e=0,f=0;f=(c[b>>2]|0)+204|0;e=Yb[c[8744+132>>2]&63](c[(c[f>>2]|0)+40>>2]|0,d,0)|0;e=el(c[f>>2]|0,d,e)|0;if(!e)e=0;else{f=c[e+8>>2]|0;c[f+56>>2]=c[e+4>>2];c[f+68>>2]=e;c[f+52>>2]=b;c[f+72>>2]=d;a[f+6>>0]=(d|0)==1?100:0;e=f}return e|0}function Vp(a,d){a=a|0;d=d|0;var e=0;e=a+20|0;mc[c[8744+140>>2]&15](c[(c[a+28>>2]|0)+40>>2]|0,c[a>>2]|0,c[e>>2]|0,d);c[e>>2]=d;if((b[a+24>>1]&6)==6)Mo(a,3);return}function Wp(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;r=c[f+52>>2]|0;s=a[f>>0]|0;t=c[f+72>>2]|0;q=Xp(f)|0;c[u>>2]=q;if(!q){q=b[f+18>>1]|0;p=q&65535;if(!(q<<16>>16))g=f+5|0;else{h=f+56|0;k=f+20|0;l=f+64|0;g=f+5|0;q=0;do{m=c[h>>2]|0;n=q<<1;o=c[l>>2]|0;n=(d[o+n>>0]<<8|d[o+(n|1)>>0])&e[k>>1];o=m+n|0;Bq(f,o,u);if(!(a[g>>0]|0))vp(r,d[m+(n+1)>>0]<<16|d[o>>0]<<24|d[m+(n+2)>>0]<<8|d[m+(n+3)>>0],5,t,u);q=q+1|0}while((q|0)<(p|0))}if(!(a[g>>0]|0)){q=d[f+6>>0]|0;p=c[f+56>>2]|0;vp(r,d[p+(q+9)>>0]<<16|d[p+(q+8)>>0]<<24|d[p+(q+10)>>0]<<8|d[p+(q+11)>>0],5,t,u)}}a[f>>0]=s;i=v;return c[u>>2]|0}function Xp(e){e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;a:do if(!(a[e>>0]|0)){f=c[e+52>>2]|0;r=c[e+56>>2]|0;l=d[e+6>>0]|0;if(No(e,d[r+l>>0]|0)|0){c[u>>2]=54562;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break}n=c[f+32>>2]|0;b[e+20>>1]=n+65535;a[e+1>>0]=0;q=c[f+36>>2]|0;f=l+8+(d[e+7>>0]|0)|0;b[e+14>>1]=f;c[e+60>>2]=r+q;f=f&65535;c[e+64>>2]=r+f;k=a[r+(l+5)>>0]|0;h=a[r+(l+6)>>0]|0;g=d[r+(l+3)>>0]<<8|d[r+(l+4)>>0];b[e+18>>1]=g;if(g>>>0>(((n+-8|0)>>>0)/6|0)>>>0){c[u>>2]=54579;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break}n=(g<<1)+f|0;m=q+-4|0;g=d[r+(l+1)>>0]<<8|d[r+(l+2)>>0];f=(((k&255)<<8|h&255)+65535&65535)+1+(d[r+(l+7)>>0]|0)|0;do if(g){while(1){if((g|0)<(n|0)|(g|0)>(m|0)){t=8;break}h=d[r+g>>0]<<8|d[r+(g+1)>>0];k=d[r+(g+2)>>0]<<8|d[r+(g+3)>>0];g=k+g|0;if(!h){o=k;p=g;s=f;t=12;break}if((h|0)<=(g+3|0)|(g|0)>(q|0))break;g=h;f=k+f|0}if((t|0)==8){c[u>>2]=54634;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break a}if((t|0)==12?(p|0)<=(q|0):0){f=o+s|0;break}c[u>>2]=54641;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break a}while(0);if((f|0)>(q|0)){c[u>>2]=54655;c[u+4>>2]=10788;Zc(11,13600,u);f=11;break}else{b[e+16>>1]=f-n;a[e>>0]=1;f=0;break}}else f=0;while(0);i=v;return f|0}function Yp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;f=c[b>>2]|0;g=f+65|0;if(!(a[g>>0]|0)){if((c[f+24>>2]&65536|0)==0?(h=b+4|0,m=c[h>>2]|0,c[k>>2]=(d|0)==0?13552:d,$g(m,f,13560,k),(e|0)!=0):0){d=c[c[h>>2]>>2]|0;c[k>>2]=d;c[k+4>>2]=e;f=Iq(f,d,0,k)|0;c[c[h>>2]>>2]=f}if(!(a[g>>0]|0)){c[k>>2]=105209;c[k+4>>2]=10788;Zc
9 function yl(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();n=q;p=b+16|0;if((d[p>>0]|0)<2?(d[b+17>>0]|0)<2:0)g=0;else{_o(b);o=b+64|0;l=c[o>>2]|0;h=c[l>>2]|0;do if(!h)h=0;else{if((h|0)==14696){Ci(l,0,0)|0;c[l>>2]=0;h=0;break}k=a[b+5>>0]|0;if(k<<24>>24==3){k=b+72|0;n=k;if(!((c[n>>2]|0)==0&(c[n+4>>2]|0)==0)){h=Yb[c[h+16>>2]&63](l,0,0)|0;if(!h)if(!(a[b+8>>0]|0))h=0;else{h=c[o>>2]|0;h=nc[c[(c[h>>2]|0)+20>>2]&127](h,d[b+11>>0]|0)|0}}else h=0;o=k;c[o>>2]=0;c[o+4>>2]=0;break}else if(k<<24>>24!=1?(a[b+4>>0]|0)==0|k<<24>>24==5:0){o=(a[b+12>>0]|0)==0;hc[c[h+4>>2]&127](l)|0;c[l>>2]=0;if(!o){h=0;break}h=c[b>>2]|0;h=Yb[c[h+28>>2]&63](h,c[b+172>>2]|0,0)|0;break}m=b+72|0;k=m;if(!((c[k>>2]|0)==0&(c[k+4>>2]|0)==0)){g=b+160|0;k=c[g>>2]|0;g=c[g+4>>2]|0;if((e|0)!=0|(k|0)==0&(g|0)==0)h=Yb[c[h+16>>2]&63](l,0,0)|0;else h=pc[c[h+12>>2]&31](l,14664,28,0,0)|0;if(!h){if(!(a[b+7>>0]|0)){h=c[o>>2]|0;h=nc[c[(c[h>>2]|0)+20>>2]&127](h,d[b+11>>0]|16)|0}else h=0;if((h|0)==0&((g|0)>0|(g|0)==0&k>>>0>0)){h=c[o>>2]|0;h=nc[c[(c[h>>2]|0)+24>>2]&127](h,n)|0;l=c[n+4>>2]|0;if((h|0)==0&((l|0)>(g|0)|((l|0)==(g|0)?(c[n>>2]|0)>>>0>k>>>0:0))){h=c[o>>2]|0;h=Yb[c[(c[h>>2]|0)+16>>2]&63](h,k,g)|0}}}}else h=0;o=m;c[o>>2]=0;c[o+4>>2]=0}while(0);k=b+56|0;ai(c[k>>2]|0);c[k>>2]=0;c[b+44>>2]=0;k=b+204|0;g=c[k>>2]|0;e=c[g>>2]|0;if(e){do{tl(e);e=c[g>>2]|0}while((e|0)!=0);g=c[k>>2]|0}k=b+24|0;$o(g,c[k>>2]|0);l=b+208|0;g=c[l>>2]|0;if(!g){if((h|0)==0&(f|0)!=0){g=c[k>>2]|0;if((c[b+32>>2]|0)>>>0>g>>>0)h=xl(b,g)|0;else h=0}}else{e=g+44|0;if(a[e>>0]|0){if(!(a[g+43>>0]|0)){o=c[g+4>>2]|0;lc[c[(c[o>>2]|0)+56>>2]&31](o,0,1,9)|0}a[e>>0]=0;a[g+47>>0]=0}}if((h|0)==0&(f|0)!=0){g=c[b+60>>2]|0;h=c[g>>2]|0;if(!h)k=0;else{k=Yb[c[h+40>>2]&63](g,22,0)|0;k=(k|0)==12?0:k}}else k=h;do if(!(a[b+4>>0]|0)){g=c[l>>2]|0;if((g|0)!=0?(ap(g,0)|0)==0:0){g=0;break}h=c[b+60>>2]|0;g=c[h>>2]|0;if(g){if(!(a[b+13>>0]|0))g=nc[c[g+32>>2]&127](h,1)|0;else g=0;h=b+17|0;if((a[h>>0]|0)!=5)a[h>>0]=1}else g=0;a[b+18>>0]=0}else g=0;while(0);a[p>>0]=1;a[b+19>>0]=0;g=(k|0)==0?g:k}i=q;return g|0}function zl(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=c[d+4>>2]|0;g=c[d>>2]|0;a[j+19>>0]=0;k=d+8|0;do if(a[k>>0]|0){if((c[g+152>>2]|0)>1){g=j+76|0;if((c[g>>2]|0)==(d|0)?(c[g>>2]=0,f=j+22|0,b[f>>1]=e[f>>1]&65439,f=c[j+72>>2]|0,(f|0)!=0):0)do{a[f+8>>0]=1;f=c[f+12>>2]|0}while((f|0)!=0);a[k>>0]=1;break}g=j+72|0;f=c[g>>2]|0;a:do if(f)do while(1){h=f+12|0;i=c[h>>2]|0;if((c[f>>2]|0)!=(d|0)){g=h;f=i;break}c[g>>2]=i;if((c[f+4>>2]|0)==1)f=i;else{Sc(f);f=c[g>>2]|0}if(!f)break a}while((f|0)!=0);while(0);f=j+76|0;if((c[f>>2]|0)!=(d|0)){f=c[j+40>>2]|0;if((f|0)==2){i=j+22|0;b[i>>1]=e[i>>1]&65471;c[j+40>>2]=1;i=20;break}}else{c[f>>2]=0;f=j+22|0;b[f>>1]=e[f>>1]&65439;f=c[j+40>>2]|0}f=f+-1|0;c[j+40>>2]=f;if(!f){a[j+20>>0]=0;i=20}else i=20}else i=20;while(0);if(((i|0)==20?(a[k>>0]=0,(a[j+20>>0]|0)==0):0)?(l=j+12|0,m=c[l>>2]|0,(m|0)!=0):0){c[l>>2]=0;xg(c[m+68>>2]|0)}return}function Al(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=((c[a+36>>2]|0)>>>0)/5|0;if(b>>>0<2){e=0;g=c[a+32>>2]|0;i=c[2514]|0}else{e=b+-2|0;e=e-((e>>>0)%((h+1|0)>>>0)|0)|0;i=c[2514]|0;g=c[a+32>>2]|0;e=((e+1|0)==((i>>>0)/(g>>>0)|0|0)?3:2)+e|0}e=b-d-(((d-b+h+e|0)>>>0)/(h>>>0)|0)|0;f=a+32|0;a=((i>>>0)/(g>>>0)|0)+1|0;d=((i>>>0)/(g>>>0)|0)+1|0;a=((a>>>0<b>>>0&e>>>0<a>>>0)<<31>>31)+e|0;while(1){if(a>>>0<2)e=0;else{e=a+-2|0;e=e-((e>>>0)%((h+1|0)>>>0)|0)|0;e=((e+1|0)==((i>>>0)/((c[f>>2]|0)>>>0)|0|0)?3:2)+e|0}if(!((e|0)==(a|0)|(a|0)==(d|0)))break;a=a+-1|0}return a|0}function Bl(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=(d|0)==0;f=b;a:while(1){do if((f|0)!=(e|0)){if(!g?(c[f+60>>2]|0)!=(d|0):0)break;if(((a[f+73>>0]|0)+-1&255)<2){b=bp(f)|0;if(!b)break;else break a}else{cp(f);break}}while(0);f=c[f+8>>2]|0;if(!f){b=0;break}}return b|0}function Cl(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+48|0;if((i|0)>=(j|0))ba();k=v;m=v+32|0;s=v+28|0;l=v+24|0;o=v+20|0;q=v+16|0;t=v+12|0;r=v+8|0;if(f>>>0<2)n=0;else{n=f+-2|0;n=n-((n>>>0)%(((((c[b+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;n=((n+1|0)==(((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0|0)?3:2)+n|0}do if((n|0)!=(f|0)?((((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0)+1|0)!=(f|0):0){p=c[(c[b+12>>2]|0)+56>>2]|0;if((d[p+37>>0]|0)<<16|(d[p+36>>0]|0)<<24|(d[p+38>>0]|0)<<8|(d[p+39>>0]|0)){h=dp(b,f,m,s)|0;if(!h){p=a[m>>0]|0;if(p<<24>>24==2){if(g){h=0;break}h=ep(b,o,l,f,1)|0;if(h)break;k=c[o>>2]|0;if(!k){u=24;break}xg(c[k+68>>2]|0);u=24;break}else if(p<<24>>24!=1){h=$k(b,f,t,0)|0;if(h)break;k=(g|0)==0;m=k?2:0;k=k?e:0;l=(g|0)!=0;do{h=ep(b,r,q,k,m)|0;if(h){u=16;break}n=c[r>>2]|0;if(n)xg(c[n+68>>2]|0);n=c[q>>2]|0}while(l&n>>>0>e>>>0);if((u|0)==16){k=c[t>>2]|0;if(!k)break;xg(c[k+68>>2]|0);break}m=c[t>>2]|0;h=Vm(b,m,p,c[s>>2]|0,n,g)|0;if(m)xg(c[m+68>>2]|0);if(!h){u=24;break}else break}else{c[k>>2]=56228;c[k+4>>2]=10788;Zc(11,13600,k);h=11;break}}}else h=101}else u=24;while(0);if((u|0)==24)if(!g){l=((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0;m=l+1|0;n=b+36|0;k=f;while(1){h=k+-1|0;if((h|0)==(m|0)){k=h;continue}if(h>>>0<2)k=0;else{k=k+-3|0;k=k-((k>>>0)%(((((c[n>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(l|0)?3:2)+k|0}if((k|0)==(h|0))k=h;else break}a[b+19>>0]=1;c[b+44>>2]=h;h=0}else h=0;i=v;return h|0}function Dl(b){b=b|0;var e=0,f=0,g=0;g=b+16|0;f=a[g>>0]|0;a:do if(f<<24>>24!=6)if((f&255)>=2){do if(!(c[b+208>>2]|0)){if(!(f<<24>>24==2?1:(c[c[b+64>>2]>>2]|0)==0)){e=Go(b,0)|0;break}e=yl(b,0,0)|0;if((a[b+15>>0]|0)==0&(f&255)>2){c[b+40>>2]=4;a[g>>0]=6;break a}}else{e=fp(b,2,-1)|0;f=yl(b,d[b+19>>0]|0,0)|0;e=(e|0)==0?f:e}while(0);f=e&255;if((f|0)==10|(f|0)==13){c[b+40>>2]=e;a[g>>0]=6}}else e=0;else e=c[b+40>>2]|0;while(0);return e|0}function El(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;a:do if((d|0)!=0?(h=c[d+4>>2]|0,c[h+4>>2]=c[d>>2],h=c[h+8>>2]|0,(h|0)!=0):0){l=(f|0)==0;while(1){if(!l?(a[h+72>>0]&1)==0:0){if(((a[h+73>>0]|0)+-1&255)<2?(g=bp(h)|0,(g|0)!=0):0)break}else{f=h+56|0;Sc(c[f>>2]|0);c[f>>2]=0;a[h+73>>0]=4;c[h+68>>2]=e}f=h+76|0;if((b[f>>1]|0)>=0){k=0;while(1){i=h+(k<<2)+120|0;j=c[i>>2]|0;if(j)xg(c[j+68>>2]|0);c[i>>2]=0;if((k|0)<(b[f>>1]|0))k=k+1|0;else break}}h=c[h+8>>2]|0;if(!h)break a}El(d,g,0)|0;return g|0}while(0);return 0}function Fl(a){a=a|0;var b=0,d=0,e=0;a:do if(!(c[a+4>>2]|0)){d=c[a+20>>2]|0;if((d|0)>0){a=c[a+16>>2]|0;b=0;while(1){e=c[a+(b<<4)+4>>2]|0;if((e|0)!=0?(c[e+16>>2]|0)!=0:0){a=1;break a}b=b+1|0;if((b|0)>=(d|0)){a=0;break}}}else a=0}else a=1;while(0);return a|0}function Gl(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=c[3164]|0;if(f)jc[f&3]();l=d+20|0;j=c[l>>2]|0;i=(j|0)>0;if(i){f=c[d+16>>2]|0;h=0;do{g=c[f+(h<<4)+4>>2]|0;if(g)c[(c[g+4>>2]|0)+4>>2]=c[g>>2];h=h+1|0}while((h|0)!=(j|0))}m=d+24|0;if(!(c[m>>2]&2))f=1;else f=(a[d+145>>0]|0)!=0;if(i){k=d+16|0;f=f&1;i=j;j=0;h=0;while(1){g=c[(c[k>>2]|0)+(j<<4)+4>>2]|0;if(!g)g=i;else{h=(a[g+8>>0]|0)==2?1:h;Hg(g,e,f);g=c[l>>2]|0}j=j+1|0;if((j|0)>=(g|0))break;else i=g}}else h=0;Nn(d,68);f=c[3166]|0;if(f)jc[f&3]();f=c[m>>2]|0;if((f&2|0)!=0?(a[d+145>>0]|0)==0:0){f=c[d+4>>2]|0;if(f)do{g=f+88|0;b[g>>1]=b[g>>1]|8;f=c[f+52>>2]|0}while((f|0)!=0);Ag(d);f=c[m>>2]|0}g=d+504|0;c[g+0>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;c[m>>2]=f&-16777217;f=c[d+204>>2]|0;do if(f){if((h|0)==0?(a[d+63>>0]|0)!=0:0)break;_b[f&31](c[d+200>>2]|0)}while(0);return}function Hl(b){b=b|0;var d=0,e=0;e=b+488|0;d=c[e>>2]|0;if(d)do{c[e>>2]=c[d+24>>2];ig(b,d);d=c[e>>2]|0}while((d|0)!=0);c[b+496>>2]=0;c[b+500>>2]=0;a[b+70>>0]=0;return}function Il(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=c[b+4>>2]|0;c[h+4>>2]=c[b>>2];e=c[h+8>>2]|0;if(e)do{d=e;e=c[e+8>>2]|0;if((c[d>>2]|0)==(b|0))gp(d)}while((e|0)!=0);Hg(b,0,0);a:do if(a[b+9>>0]|0){e=h+64|0;d=c[e>>2]|0;c[e>>2]=d+-1;if((d|0)<2){d=c[3664]|0;if((d|0)==(h|0)){c[3664]=c[h+68>>2];f=12;break}else e=d;do{if(!e){f=12;break a}d=e+68|0;e=c[d>>2]|0}while((e|0)!=(h|0));c[d>>2]=c[h+68>>2];f=12}}else f=12;while(0);if((f|0)==12){hp(c[h>>2]|0);d=c[h+52>>2]|0;e=h+48|0;if((d|0)!=0?(g=c[e>>2]|0,(g|0)!=0):0)_b[d&31](g);d=c[e>>2]|0;if(d)Sc(d);d=h+80|0;e=c[d>>2]|0;if(e){e=e+-4|0;c[d>>2]=e;Xk(e);c[d>>2]=0}Sc(h)}e=c[b+28>>2]|0;d=b+24|0;if(e)c[e+24>>2]=c[d>>2];d=c[d>>2]|0;if(d)c[d+28>>2]=e;Sc(b);return}function Jl(a,b){a=a|0;b=b|0;var d=0;b=c[b+32>>2]|0;if((b|0)!=0?(d=(c[b>>2]|0)+-1|0,c[b>>2]=d,(d|0)==0):0){_b[c[b+4>>2]&31](c[b+8>>2]|0);ig(a,b)}return}function Kl(a){a=a|0;var b=0,d=0;d=a+8|0;b=c[d>>2]|0;c[d>>2]=0;d=a+12|0;Sc(c[d>>2]|0);c[d>>2]=0;c[a>>2]=0;if(b)do{d=b;b=c[b>>2]|0;Sc(d)}while((b|0)!=0);c[a+4>>2]=0;return}function Ll(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){e=c[a>>2]|0;hg(e,a);f=c[a+48>>2]|0;d=a+52|0;b=c[d>>2]|0;if(!f)c[e+4>>2]=b;else{c[f+52>>2]=b;b=c[d>>2]|0}if(b)c[b+48>>2]=f;c[a+40>>2]=-1241070648;c[a>>2]=0;ig(e,a)}return}function Ml(d){d=d|0;var e=0;a[d+65>>0]=0;c[d+52>>2]=7;d=c[d+236>>2]|0;do if(d){e=d+8|0;if(!(b[e>>1]&9312)){b[e>>1]=1;break}else{rg(d);break}}while(0);return}function Nl(d){d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0;F=i;i=i+32|0;if((i|0)>=(j|0))ba();u=F;x=F+16|0;q=F+12|0;r=F+8|0;E=c[d>>2]|0;if(a[E+65>>0]|0)c[d+80>>2]=7;g=c[d+200>>2]|0;if(g)bw(g|0,0,c[d+196>>2]|0)|0;k=d+176|0;g=c[k>>2]|0;if(g){while(1){h=c[g+4>>2]|0;if(!h)break;else g=h}Tl(g)|0;c[k>>2]=0;c[d+184>>2]=0}o=d+56|0;g=c[o>>2]|0;a:do if((g|0)!=0?(p=d+36|0,f=c[p>>2]|0,(f|0)>0):0){k=0;while(1){h=c[g+(k<<2)>>2]|0;if(!h)h=f;else{xm(d,h);c[(c[o>>2]|0)+(k<<2)>>2]=0;h=c[p>>2]|0}k=k+1|0;if((k|0)>=(h|0))break a;g=c[o>>2]|0;f=h}}while(0);g=c[d+8>>2]|0;if(g)_g(g+40|0,c[d+28>>2]|0);p=d+180|0;g=c[p>>2]|0;if(g)do{c[p>>2]=c[g+4>>2];o=g+80|0;f=g+60|0;h=c[f>>2]|0;m=o+(h*40|0)|0;n=g+64|0;if((c[n>>2]|0)>0){k=0;do{xm(c[g>>2]|0,c[m+(k<<2)>>2]|0);k=k+1|0}while((k|0)<(c[n>>2]|0));h=c[f>>2]|0}_g(o,h);ig(c[c[g>>2]>>2]|0,g);g=c[p>>2]|0}while((g|0)!=0);if(c[d+204>>2]|0)am(d,-1,0);B=d+40|0;b:do if((c[B>>2]|0)==-1108210269){z=d+76|0;if((c[z>>2]|0)>-1){A=d+88|0;n=b[A>>1]|0;if(n&128){y=d+80|0;k=c[y>>2]|0;m=k&255;h=m+-7|0;do if(h>>>0<7?(l=(77>>>(h&127)&1)!=0,l):0)if((n&64)==0|(m|0)!=9){if((m|0)==7|(m|0)==13?(n&32)!=0:0){f=2;break}Gl(E,516);Hl(E);a[E+63>>0]=1;c[d+92>>2]=0;k=c[y>>2]|0;f=0}else{l=1;f=0}else{l=0;f=0}while(0);if((k|0)==0?(w=d+144|0,v=c[w+4>>2]|0,(v|0)>0|(v|0)==0&(c[w>>2]|0)>>>0>0):0){w=c[d>>2]|0;c[y>>2]=787;a[d+86>>0]=2;$g(d+44|0,w,34376,u)}m=E+304|0;if((c[m>>2]|0)>0?(c[E+328>>2]|0)==0:0)D=141;else if((a[E+63>>0]|0)!=0?(c[E+156>>2]|0)==(((e[A>>1]|0)>>>6&1^1)&65535|0):0){do if(!(c[y>>2]|0))D=41;else{if(!((a[d+86>>0]|0)!=3|l)){D=41;break}Gl(E,0);c[d+92>>2]=0}while(0);c:do if((D|0)==41){d:do if(pm(d,1)|0)if(!(b[A>>1]&64))g=787;else{f=1;break b}else{l=E+328|0;h=c[l>>2]|0;c[l>>2]=0;k=c[m>>2]|0;e:do if((k|0)>0){n=0;f:while(1){p=c[(c[h+(n<<2)>>2]|0)+8>>2]|0;do if(p){o=c[(c[p>>2]|0)+60>>2]|0;if(!o)break;g=hc[o&127](p)|0;Im(d,p);if(g)break f;k=c[m>>2]|0}while(0);n=n+1|0;if((n|0)>=(k|0)){D=50;break e}}c[l>>2]=h;D=135}else D=50;while(0);g:do if((D|0)==50){c[l>>2]=h;v=E+20|0;w=E+16|0;o=0;k=0;n=0;h:while(1){m=c[v>>2]|0;if((o|0)>=(m|0)){h=k;break}l=c[w>>2]|0;p=o;while(1){o=c[l+(p<<4)+4>>2]|0;if((o|0)!=0?(a[o+8>>0]|0)==2:0)break;p=p+1|0;if((p|0)>=(m|0)){h=k;break h}}g=c[o+4>>2]|0;c[g+4>>2]=c[o>>2];g=Zo(c[g>>2]|0)|0;if(!g){o=p+1|0;k=((p|0)!=1&1)+k|0;n=1}else{D=135;break g}}do if(n){l=c[E+196>>2]|0;if(!l)break;if(hc[l&127](c[E+192>>2]|0)|0){g=531;break d}}while(0);k=c[(c[w>>2]|0)+4>>2]|0;n=c[c[k+4>>2]>>2]|0;m=(a[n+15>>0]|0)==0;if(m){p=c[n+168>>2]|0;if(p)D=62}else{p=10360;D=62}do if((D|0)==62){o=p;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;if((o-p&1073741823|0)==0|(h|0)<2)break;t=c[E>>2]|0;if(m){l=c[n+168>>2]|0;c[x>>2]=0;if(!l){p=0;l=0}else D=80}else{c[x>>2]=0;l=10360;D=80}if((D|0)==80){n=l;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;p=n-l&1073741823}c[u>>2]=l;s=qh(E,44696,u)|0;if(!s){g=7;break d}p=s+p|0;o=t+32|0;n=0;i:while(1){do if(n){if((n|0)>100){D=87;break i}if((n|0)!=1)break;c[u>>2]=s;Zc(13,44728,u)}while(0);_c(4,r);g=c[r>>2]|0;c[u>>2]=g>>>8;c[u+4>>2]=g&255;Yc(13,p,44744,u)|0;g=lc[c[o>>2]&31](t,s,0,q)|0;m=(g|0)==0;if(m&(c[q>>2]|0)!=0)n=n+1|0;else{D=91;break}}if((D|0)==87){c[u>>2]=s;ZcZcZc(11,13600,l);f=11;break}}c[l>>2]=57618;c[l+4>>2]=10788;Zc(11,13600,l);f=11}while(0);i=m;return f|0}function nm(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;l=n+8|0;g=e+76|0;k=b[g>>1]|0;h=k<<16>>16;do if(k<<16>>16<=18){k=e+72|0;f=rp(c[e+4>>2]|0,f,l,(a[k>>0]&1)<<1^2)|0;if(!f){f=c[l>>2]|0;l=h+1|0;c[e+(l<<2)+120>>2]=f;b[e+(l<<1)+78>>1]=0;b[g>>1]=(b[g>>1]|0)+1<<16>>16;b[e+44>>1]=0;a[k>>0]=d[k>>0]&249;if((b[f+18>>1]|0)!=0?(a[f+2>>0]|0)==(a[(c[e+(h<<2)+120>>2]|0)+2>>0]|0):0){f=0;break}c[m>>2]=57499;c[m+4>>2]=10788;Zc(11,13600,m);f=11}}else{c[m>>2]=57487;c[m+4>>2]=10788;Zc(11,13600,m);f=11}while(0);i=n;return f|0}function om(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;j=a+328|0;a:do if(!(c[j>>2]|0))a=0;else{g=a+304|0;h=d+1|0;i=0;while(1){if((i|0)>=(c[g>>2]|0)){a=0;break a}f=c[(c[j>>2]|0)+(i<<2)>>2]|0;a=c[c[f+4>>2]>>2]|0;e=c[f+8>>2]|0;if((e|0)!=0?(c[a>>2]|0)>1:0){if(!b){a=c[a+80>>2]|0;c[f+20>>2]=h}else if((b|0)==2)a=c[a+88>>2]|0;else a=c[a+84>>2]|0;if((a|0)!=0?(c[f+20>>2]|0)>(d|0):0){a=nc[a&127](e,d)|0;if(!a){i=i+1|0;continue}else break a}}i=i+1|0}}while(0);return a|0}function pm(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();f=h;e=c[b>>2]|0;if(!d){d=b+144|0;k=c[d+4>>2]|0;if((k|0)>0|(k|0)==0&(c[d>>2]|0)>>>0>0)g=4;else e=0}else{d=e+504|0;k=e+512|0;d=fw(c[k>>2]|0,c[k+4>>2]|0,c[d>>2]|0,c[d+4>>2]|0)|0;k=C;if((k|0)>0|(k|0)==0&d>>>0>0)g=4;else e=0}if((g|0)==4){c[b+80>>2]=787;a[b+86>>0]=2;$g(b+44|0,e,34376,f);e=1}i=h;return e|0}function qm(e,f,g){e=e|0;f=f|0;g=g|0;var h=0;if((e|0)!=0?(a[e+8>>0]|0)==2:0){h=c[e+4>>2]|0;c[h+4>>2]=c[e>>2];f=fp(c[h>>2]|0,f,g)|0;if(!f){if((g|0)<0?(b[h+22>>1]&8)!=0:0)c[h+44>>2]=0;f=yg(h)|0;e=c[(c[h+12>>2]|0)+56>>2]|0;c[h+44>>2]=d[e+29>>0]<<16|d[e+28>>0]<<24|d[e+30>>0]<<8|d[e+31>>0]}}else f=0;return f|0}function rm(a,b){a=a|0;b=b|0;a=a+16|0;ml(c[(c[a>>2]|0)+(b<<4)+12>>2]|0);if((b|0)!=1)ml(c[(c[a>>2]|0)+28>>2]|0);return}function sm(a,b,e){a=a|0;b=b|0;e=e|0;var f=0;f=c[a+4>>2]|0;c[f+4>>2]=c[a>>2];if((b|0)==15)f=(c[a+20>>2]|0)+(c[(c[f>>2]|0)+100>>2]|0)|0;else{b=b<<2;f=c[(c[f+12>>2]|0)+56>>2]|0;f=(d[f+(b+37)>>0]|0)<<16|(d[f+(b+36)>>0]|0)<<24|(d[f+(b+38)>>0]|0)<<8|(d[f+(b+39)>>0]|0)}c[e>>2]=f;return}function tm(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;k=(c[d+28>>2]|0)-e|0;i=c[d+8>>2]|0;n=(f<<3)+88|0;m=(h|0)!=0;l=d+56|0;j=c[(c[l>>2]|0)+(e<<2)>>2]|0;if(j){xm(d,j);c[(c[l>>2]|0)+(e<<2)>>2]=0}if(!(bh(i+(k*40|0)|0,(m?200:0)+n|0)|0)){k=i+(k*40|0)+16|0;h=c[k>>2]|0;c[(c[l>>2]|0)+(e<<2)>>2]=h;i=h+0|0;j=i+88|0;do{c[i>>2]=0;i=i+4|0}while((i|0)<(j|0));a[h+24>>0]=g;b[h+20>>1]=f;c[h+80>>2]=h+84+(f<<2);if(m){i=(c[k>>2]|0)+n|0;c[h>>2]=i;i=i+0|0;j=i+76|0;do{c[i>>2]=0;i=i+4|0}while((i|0)<(j|0))}}else h=0;return h|0}function um(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;k=c[d+4>>2]|0;c[k+4>>2]=c[d>>2];if(f)if(!(b[k+22>>1]&1)){j=k+80|0;if(!(c[j>>2]|0)){i=Co(c[k+32>>2]|0)|0;c[j>>2]=i;if(!i)i=7;else{l=i;i=l;a[i>>0]=0;a[i+1>>0]=0;a[i+2>>0]=0;a[i+3>>0]=0;l=l+4|0;a[l>>0]=0;a[l+1>>0]=0;a[l+2>>0]=0;a[l+3>>0]=0;c[j>>2]=(c[j>>2]|0)+4;l=6}}else l=6}else i=8;else l=6;if((l|0)==6){if((e|0)==1)e=(c[k+44>>2]|0)!=0&1;c[h+60>>2]=e;b[h+76>>1]=-1;c[h+16>>2]=g;c[h>>2]=d;c[h+4>>2]=k;a[h+72>>0]=f;i=k+8|0;e=c[i>>2]|0;c[h+8>>2]=e;if(e)c[e+12>>2]=h;c[i>>2]=h;a[h+73>>0]=0;i=0}return i|0}function vm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;P=i;i=i+128|0;if((i|0)>=(j|0))ba();A=P;H=P+12|0;E=P+8|0;M=P+16|0;K=(g|0)==0;if(!K){o=(a[g>>0]|0)==0;if(Wv(g,14640)|0)if(o)G=4;else{o=0;G=5}else L=1}else G=4;if((G|0)==4)if((a[h+64>>0]|0)==2){L=1;o=1}else{o=1;G=5}if((G|0)==5)L=(m&128|0)!=0;J=L?l|2:l;if((m&256|0)!=0&(L|o))m=m&-769|512;O=mg(48,0)|0;a:do if(O){u=O+0|0;t=u+48|0;do{a[u>>0]=0;u=u+1|0}while((u|0)<(t|0));c[O>>2]=h;c[O+32>>2]=O;c[O+36>>2]=1;b:do if(!o?!(L&(m&64|0)==0|(m&131072|0)==0):0){if(K)o=1;else{o=g;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;o=(o-g&1073741823)+1|0}l=(c[f+8>>2]|0)+1|0;r=(l|0)>(o|0)?l:o;r=mg(r,((r|0)<0)<<31>>31)|0;q=O+9|0;a[q>>0]=1;if(!r){Sc(O);n=7;break a}if(!L){a[r>>0]=0;o=lc[c[f+36>>2]&31](f,g,l,r)|0;if(o){Sc(r);Sc(O);n=o;break a}}else gw(r|0,g|0,o|0)|0;o=c[3664]|0;c:do if(o){while(1){l=c[o>>2]|0;if((Wv(r,c[l+168>>2]|0)|0)==0?(c[l>>2]|0)==(f|0):0)break;o=c[o+68>>2]|0;if(!o)break c}l=c[h+20>>2]|0;d:do if((l|0)>0){p=c[h+16>>2]|0;while(1){l=l+-1|0;D=c[p+(l<<4)+4>>2]|0;if((D|0)!=0?(c[D+4>>2]|0)==(o|0):0)break;if((l|0)<=0)break d}Sc(r);Sc(O);n=19;break a}while(0);c[O+4>>2]=o;D=o+64|0;c[D>>2]=(c[D>>2]|0)+1;Sc(r);if(!o){G=32;break b}if(!(a[q>>0]|0))break b;else{G=105;break b}}while(0);Sc(r);G=32}else G=32;while(0);e:do if((G|0)==32){I=mg(84,0)|0;if(I){u=I+0|0;t=u+84|0;do{a[u>>0]=0;u=u+1|0}while((u|0)<(t|0));C=J&1;D=(C|0)==0;c[H>>2]=1024;B=f+4|0;o=c[B>>2]|0;if((o|0)>40)l=o+7&-8;else l=40;c[I>>2]=0;do if(!(J&2))if(!K)if(a[g>>0]|0){v=f+8|0;q=(c[v>>2]|0)+1|0;x=q<<1;x=mg(x,((x|0)<0)<<31>>31)|0;if(!x)n=7;else{a[x>>0]=0;o=lc[c[f+36>>2]&31](f,g,q,x)|0;q=x;while(1)if(!(a[q>>0]|0))break;else q=q+1|0;u=q-x&1073741823;r=g;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;t=(r-g&1073741823)+1|0;r=a[g+t>>0]|0;t=g+t|0;if(!(r<<24>>24))q=t;else{q=t;do{if(!(r<<24>>24))r=q;else{r=q;do r=r+1|0;while((a[r>>0]|0)!=0)}r=r-q&1073741823;p=q+(r+1)|0;s=p;while(1)if(!(a[s>>0]|0))break;else s=s+1|0;q=q+(r+2+(s-p&1073741823))|0;r=a[q>>0]|0}while(r<<24>>24!=0)}if(!o){if((u+8|0)<=(c[v>>2]|0)){w=1;A=0;v=u;u=q+1-t|0;r=x;G=58;break}c[A>>2]=46171;c[A+4>>2]=10788;Zc(14,14848,A);o=14}Sc(x);G=89}}else{w=1;A=0;v=0;u=0;r=0;t=0;G=58}else{g=0;w=0;A=0;v=0;u=0;r=0;t=0;G=58}else if(!K)if(a[g>>0]|0){r=gh(0,g)|0;if(!r)n=7;else{o=r;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;g=0;w=0;A=1;v=o-r&1073741823;u=0;t=0;G=58}}else{w=1;A=1;v=0;u=0;r=0;t=0;G=58}else{g=0;w=0;A=1;v=0;u=0;r=0;t=0;G=58}while(0);do if((G|0)==58){q=(l<<1)+17+(v*3|0)+u+((c[B>>2]|0)+271&-8)|0;z=mg(q,0)|0;if(!z){if(!r){n=7;break}Sc(r);n=7;break}bw(z|0,0,q|0)|0;x=z+204|0;c[x>>2]=z+216;y=z+60|0;c[y>>2]=z+264;s=(c[B>>2]|0)+271&-8;c[z+68>>2]=z+s;s=s+l|0;c[z+64>>2]=z+s;s=s+l|0;q=z+s|0;o=z+168|0;c[o>>2]=q;if(r){p=v+1|0;l=z+172|0;c[l>>2]=z+(u+p+s);gw(q|0,r|0,v|0)|0;if(u)gw((c[o>>2]|0)+p|0,t|0,u|0)|0;gw(c[l>>2]|0,r|0,v|0)|0;u=(c[l>>2]|0)+v+0|0;s=14928;t=u+10|0;do{a[u>>0]=a[s>>0]|0;u=u+1|0;s=s+1|0}while((u|0)<(t|0));l=(c[l>>2]|0)+(v+9)|0;B=z+212|0;c[B>>2]=l;gw(l|0,r|0,v|0)|0;B=(c[B>>2]|0)+v|0;a[B+0>>0]=a[14944]|0;a[B+1>>0]=a[14945]|0;a[B+2>>0]=a[14946]|0;a[B+3>>0]=a[14947]|0;a[B+4>>0]=a[14948]|0;Sc(r)}c[z>>2]=f;c[z+144>>2]=m;do if(w?(a[g>>0]|0)!=0:0){c[E>>2]=0;o=pc[c[f+24>>2]&31](f,c[o>>2]|0,c[y>>2]|0,m&556927,E)|0;p=c[E>>2]&1;if(!o){o=c[y>>2]|0;o=hc[c[(c[o>>2]|0)+48>>2]&127](o)|0;do if((p|0)==0?(sp(z),F=c[z+148>>2]|0,F>>>0>1024):0)if(F>>>0>8192){c[H>>2]=8192;break}else{c[H>>2]=F;break}while(0);a[z+13>>0]=bg(g,14952,0)|0;if((o&8192|0)==0?(bg(g,14960,0)|0)==0:0){s=0;G=77;break}o=m|1;G=76}}else{o=m;G=76}while(0);if((G|0)==76){a[z+16>>0]=1;a[z+17>>0]=4;a[z+13>>0]=1;p=o&1;s=1;G=77}if((G|0)==77){o=Yk(z,H,-1)|0;if(!o){l=c[H>>2]|0;r=(A|0)==0;m=A^1;q=r?75:0;o=c[x>>2]|0;u=o+0|0;t=u+48|0;do{c[u>>2]=0;u=u+4|0}while((u|0)<(t|0));c[o+20>>2]=1;c[o+24>>2]=80;a[o+28>>0]=m;a[o+29>>0]=2;c[o+32>>2]=q;c[o+36>>2]=z;c[o+16>>2]=100;o=Do(o,l)|0;if(!o){a[z+6>>0]=C^1;c[z+156>>2]=1073741823;a[z+12>>0]=s;a[z+4>>0]=s;a[z+18>>0]=s;a[z+15>>0]=A;a[z+14>>0]=p;a[z+7>>0]=s;if(!(s<<24>>24)){a[z+8>>0]=1;a[z+11>>0]=2;a[z+10>>0]=34;a[z+9>>0]=2}b[z+140>>1]=80;E=z+160|0;c[E>>2]=-1;c[E+4>>2]=-1;sp(z);do if(D){if(r)break;a[z+5>>0]=4}else a[z+5>>0]=2;while(0);c[z+196>>2]=21;c[I>>2]=z;G=90;break}}}l=c[y>>2]|0;m=c[l>>2]|0;if(m){hc[c[m+4>>2]&127](l)|0;c[l>>2]=0}Xk(c[z+200>>2]|0);Sc(z);G=89}while(0);if((G|0)==89)if(!o)G=90;else n=o;do if((G|0)==90){o=c[I>>2]|0;E=h+40|0;t=c[E+4>>2]|0;u=o+128|0;c[u>>2]=c[E>>2];c[u+4>>2]=t;u=M+0|0;t=u+100|0;do{a[u>>0]=0;u=u+1|0}while((u|0)<(t|0));o=c[o+60>>2]|0;l=c[o>>2]|0;if((l|0)!=0?(n=pc[c[l+8>>2]&31](o,M,100,0,0)|0,!((n|0)==0|(n|0)==522)):0)break;a[I+16>>0]=J;c[I+4>>2]=h;o=c[I>>2]|0;l=o+176|0;c[l>>2]=76;c[o+180>>2]=I;m=c[o+60>>2]|0;n=c[m>>2]|0;if(!n)l=o;else{Yb[c[n+40>>2]&63](m,15,l)|0;l=c[I>>2]|0}c[O+4>>2]=I;c[I+8>>2]=0;c[I+12>>2]=0;if(a[l+14>>0]|0){E=I+22|0;b[E>>1]=e[E>>1]|1}E=d[M+17>>0]<<16|d[M+16>>0]<<8;m=I+32|0;c[m>>2]=E;if((E+-512|0)>>>0<=65024?(E+16777215&E|0)==0:0){o=a[M+20>>0]|0;E=I+22|0;b[E>>1]=e[E>>1]|2;a[I+17>>0]=(d[M+53>>0]<<16|d[M+52>>0]<<24|d[M+54>>0]<<8|d[M+55>>0]|0)!=0&1;a[I+18>>0]=(d[M+65>>0]<<16|d[M+64>>0]<<24|d[M+66>>0]<<8|d[M+67>>0]|0)!=0&1}else{c[m>>2]=0;if(K|L)o=0;else{a[I+17>>0]=0;a[I+18>>0]=0;o=0}}o=o&255;n=Yk(l,m,o)|0;if(!n){c[I+36>>2]=(c[m>>2]|0)-o;if(!(a[O+9>>0]|0))break e;c[I+64>>2]=1;c[I+68>>2]=c[3664];c[3664]=I;G=105;break e}}while(0);if(I){m=c[I>>2]|0;if(!m)m=I;else{hp(m);m=I}}else m=0}else{m=0;n=7}Sc(m);Sc(O);c[k>>2]=0;break a}while(0);f:do if((G|0)==105?(N=c[h+20>>2]|0,(N|0)>0):0){m=c[h+16>>2]|0;l=0;while(1){n=c[m+(l<<4)+4>>2]|0;if((n|0)!=0?(a[n+9>>0]|0)!=0:0){l=n;break}l=l+1|0;if((l|0)>=(N|0))break f}while(1){n=l+28|0;m=c[n>>2]|0;if(!m){m=l;break}else l=m}o=c[O+4>>2]|0;if(o>>>0<(c[m+4>>2]|0)>>>0){c[O+24>>2]=m;c[O+28>>2]=0;c[n>>2]=O;break}while(1){n=m+24|0;l=c[n>>2]|0;if(!l){G=113;break}if((c[l+4>>2]|0)>>>0<o>>>0)m=l;else{G=115;break}}if((G|0)==113){c[O+24>>2]=0;c[O+28>>2]=m}else if((G|0)==115){c[O+24>>2]=l;c[O+28>>2]=m;c[l+28>>2]=O}c[n>>2]=O}while(0);c[k>>2]=O;n=c[O+4>>2]|0;c[n+4>>2]=c[O>>2];if(!(c[n+48>>2]|0)){n=c[(c[n>>2]|0)+204>>2]|0;c[n+16>>2]=2e3;fc[c[8744+124>>2]&15](c[n+40>>2]|0,2e3);n=0}else n=0}else n=7;while(0);i=P;return n|0}function wm(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+48|0;if((i|0)>=(j|0))ba();r=y;v=y+28|0;w=y+24|0;u=y+20|0;n=y+16|0;p=y+12|0;q=y+32|0;s=y+8|0;h=c[b>>2]|0;t=c[b+4>>2]|0;g=t+4|0;c[g>>2]=h;a:do if(!(a[t+17>>0]|0)){g=ep(t,v,w,1,0)|0;c[u>>2]=g;if(!g){h=c[v>>2]|0;x=39}}else{o=t+8|0;k=c[o>>2]|0;if(k)do{m=k+72|0;a[m>>0]=d[m>>0]&251;k=c[k+8>>2]|0}while((k|0)!=0);c[g>>2]=h;m=c[(c[t+12>>2]|0)+56>>2]|0;m=d[m+53>>0]<<16|d[m+52>>0]<<24|d[m+54>>0]<<8|d[m+55>>0];c[w>>2]=m;h=((c[2514]|0)>>>0)/((c[t+32>>2]|0)>>>0)|0;g=t+36|0;while(1){l=m+1|0;if(l>>>0<2)k=0;else{k=m+-1|0;k=k-((k>>>0)%(((((c[g>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(h|0)?3:2)+k|0}if((l|0)==(k|0)|(m|0)==(h|0))m=l;else break}c[w>>2]=l;g=ep(t,p,n,l,1)|0;c[u>>2]=g;if(!g){m=c[n>>2]|0;do if((m|0)==(l|0)){h=c[p>>2]|0;c[v>>2]=h}else{a[q>>0]=0;c[s>>2]=0;k=c[o>>2]|0;b:do if(!k)g=0;else{while(1){if(k)break;k=c[2]|0;if(!k){g=0;break b}}g=Bl(k,0,0)|0}while(0);c[u>>2]=g;k=c[p>>2]|0;if(k)xg(c[k+68>>2]|0);if(g)break a;g=$k(t,l,v,0)|0;c[u>>2]=g;if(g)break a;g=dp(t,l,q,s)|0;c[u>>2]=g;k=a[q>>0]|0;if((k+-1&255)>=2){h=c[v>>2]|0;if(!g){g=Vm(t,h,k,c[s>>2]|0,m,0)|0;c[u>>2]=g;if(h)xg(c[h+68>>2]|0);if(g)break a;g=$k(t,l,v,0)|0;c[u>>2]=g;if(g)break a;h=c[v>>2]|0;k=h+68|0;g=Cg(c[k>>2]|0)|0;c[u>>2]=g;if(!g)break;if(!h)break a;xg(c[k>>2]|0);break a}}else{c[r>>2]=60876;c[r+4>>2]=10788;Zc(11,13600,r);c[u>>2]=11;g=11;h=c[v>>2]|0}if(!h)break a;xg(c[h+68>>2]|0);break a}while(0);vp(t,l,1,0,u);g=c[u>>2]|0;if(g){if(!h)break;xg(c[h+68>>2]|0);break}g=zg(b,4,l)|0;c[u>>2]=g;if(g){if(h)xg(c[h+68>>2]|0)}else x=39}}while(0);if((x|0)==39){ll(h,(f&1|0)==0?10:13);g=c[(c[v>>2]|0)+68>>2]|0;if(g)xg(g);c[e>>2]=c[w>>2];g=0}i=y;return g|0}function xm(a,b){a=a|0;b=b|0;var d=0,e=0;do if(b){a=c[a>>2]|0;d=b+56|0;e=c[d>>2]|0;if(e){Wm(a,e);Sc(c[e+40>>2]|0);ig(a,e);c[d>>2]=0}a=c[b+4>>2]|0;if(a){Il(a);break}a=c[b>>2]|0;if(a){gp(a);break}a=c[b+32>>2]|0;if(a){e=c[a>>2]|0;d=c[e>>2]|0;e=e+4|0;c[e>>2]=(c[e>>2]|0)+-1;hc[c[d+28>>2]&127](a)|0}}while(0);return}function ym(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;N=i;i=i+16|0;if((i|0)>=(j|0))ba();L=N+8|0;K=N;q=f+73|0;do if(((a[q>>0]|0)==1?(p=d[f+72>>0]|0,(p&2|0)!=0):0)?(a[(c[f+120>>2]|0)+2>>0]|0)!=0:0){n=f+24|0;o=c[n>>2]|0;n=c[n+4>>2]|0;if((o|0)==(h|0)&(n|0)==(k|0)){c[m>>2]=0;n=0;break}if((p&8|0)!=0&((n|0)<(k|0)|(n|0)==(k|0)&o>>>0<h>>>0)){c[m>>2]=-1;n=0}else M=8}else M=8;while(0);do if((M|0)==8){if(!g)G=0;else{o=c[g>>2]|0;if(((e[o+8>>1]|0)+(e[o+6>>1]|0)|0)<14){n=e[(c[g+8>>2]|0)+8>>1]|0;H=(a[c[o+16>>2]>>0]|0)==0;c[g+12>>2]=H?-1:1;c[g+16>>2]=H?1:-1;if(!(n&4))if((n&25|0)==0?(c[o+20>>2]|0)==0:0)o=39;else M=13;else o=38}else M=13;if((M|0)==13)o=40;a[g+7>>0]=0;G=o}n=mm(f)|0;if(!n){if(!(a[q>>0]|0)){c[m>>2]=-1;n=0;break}H=f+76|0;C=1-l|0;D=(G|0)==0;I=f+72|0;E=f+24|0;F=f+24|0;a:do{l=b[H>>1]|0;A=c[f+(l<<2)+120>>2]|0;B=A+18|0;p=(e[B>>1]|0)+-1|0;o=p>>C;b[f+(l<<1)+78>>1]=o;l=A+56|0;x=A+20|0;y=A+64|0;z=A+7|0;b:do if(D){s=A+3|0;r=A+60|0;q=0;t=p;while(1){p=o<<1;w=c[y>>2]|0;p=(c[l>>2]|0)+(((d[w+p>>0]<<8|d[w+(p|1)>>0])&e[x>>1])+(d[z>>0]|0))|0;c:do if(a[s>>0]|0)while(1){w=p;p=p+1|0;if((a[w>>0]|0)>=0)break c;if(p>>>0>=(c[r>>2]|0)>>>0){M=25;break a}}while(0);op(p,K)|0;n=K;p=c[n>>2]|0;n=c[n+4>>2]|0;if((n|0)<(k|0)|(n|0)==(k|0)&p>>>0<h>>>0){q=o+1|0;if((o|0)<(t|0))p=t;else{n=-1;M=49;break b}}else{if(!((n|0)>(k|0)|(n|0)==(k|0)&p>>>0>h>>>0)){q=n;break}p=o+-1|0;if((q|0)>(p|0)){n=1;M=49;break b}}o=p+q>>1;t=p}a[I>>0]=d[I>>0]|2;z=E;c[z>>2]=p;c[z+4>>2]=q;b[f+(b[H>>1]<<1)+78>>1]=o;if(a[A+5>>0]|0){M=31;break a}}else{u=A+8|0;v=A+10|0;w=o;q=0;while(1){n=c[l>>2]|0;s=w<<1;o=c[y>>2]|0;s=(d[o+s>>0]<<8|d[o+(s|1)>>0])&e[x>>1];o=s+(d[z>>0]|0)|0;O=a[n+o>>0]|0;t=O&255;r=n+(o+1)|0;do if((O&255)>(d[u>>0]|0)){r=d[r>>0]|0;if((r&128|0)==0?(J=r+(t<<7&16256)|0,(J|0)<=(e[v>>1]|0)):0){n=Yb[G&63](J,n+(o+2)|0,g)|0;break}np(A,n+s|0,F);r=c[F>>2]|0;o=mg(r,((r|0)<0)<<31>>31)|0;if(!o){n=7;break a}b[f+(b[H>>1]<<1)+78>>1]=w;n=Hm(f,0,r,o,2)|0;if(n){M=40;break a}n=Yb[G&63](r,o,g)|0;Sc(o)}else n=Yb[G&63](t,r,g)|0;while(0);if((n|0)<0)q=w+1|0;else{if((n|0)<=0){o=w;M=46;break a}p=w+-1|0}if((q|0)>(p|0)){o=w;M=49;break b}w=p+q>>1}}while(0);if((M|0)==49){M=0;if(a[A+5>>0]|0){M=51;break}l=A+56|0;o=q}q=c[l>>2]|0;if((o|0)<(e[B>>1]|0)){p=o<<1;B=c[A+64>>2]|0;p=(d[B+p>>0]<<8|d[B+(p|1)>>0])&e[A+20>>1];p=d[q+(p+1)>>0]<<16|d[q+p>>0]<<24|d[q+(p+2)>>0]<<8|d[q+(p+3)>>0]}else{p=d[A+6>>0]|0;p=d[q+(p+9)>>0]<<16|d[q+(p+8)>>0]<<24|d[q+(p+10)>>0]<<8|d[q+(p+11)>>0]}b[f+(b[H>>1]<<1)+78>>1]=o;n=nm(f,p)|0}while((n|0)==0);if((M|0)==25){c[L>>2]=57865;c[L+4>>2]=10788;ZcZc(11,13600,u);q=11;s=0;break}else{x=m;t=h;m=h;n=g;D=24;break}else{x=0;n=l;D=24}while(0);do if((D|0)==24){s=e[G+10>>1]|0;if((t|0)>(s|0)){r=e[G+12>>1]|0;o=(((t-r|0)>>>0)%(((c[(c[o>>2]|0)+36>>2]|0)+-4|0)>>>0)|0)+r|0;o=(o|0)>(s|0)?r:o;r=o+p|0;s=r+4|0;r=E+r|0}else{s=t+p|0;s=(s|0)<4?4:s;r=E;o=t}if((t|0)>0){h=y+17|0;v=y+36|0;w=y+32|0;g=m;u=E+p|0;k=r;p=0;m=o;while(1){if(!m){u=c[z>>2]|0;if(!(a[h>>0]|0))r=u;else{q=((c[2514]|0)>>>0)/((c[w>>2]|0)>>>0)|0;m=u;while(1){r=m+1|0;if(r>>>0<2)o=0;else{o=m+-1|0;o=o-((o>>>0)%(((((c[v>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;o=((o+1|0)==(q|0)?3:2)+o|0}if((o|0)==(r|0)|(m|0)==(q|0))m=r;else break}c[z>>2]=r}q=ep(y,B,z,r,0)|0;c[A>>2]=q;r=(q|0)==0;if((a[h>>0]|0)!=0&r){r=c[z>>2]|0;vp(y,r,(u|0)!=0?4:3,u,A);q=c[A>>2]|0;if(q){o=p;D=38;break}}else{if(!r)break;r=c[z>>2]|0}a[k>>0]=r>>>24;a[k+1>>0]=r>>>16;a[k+2>>0]=r>>>8;a[k+3>>0]=r;if(p)xg(c[p+68>>2]|0);q=c[B>>2]|0;u=q+56|0;k=c[u>>2]|0;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;u=(c[u>>2]|0)+4|0;m=(c[v>>2]|0)+-4|0}else q=p;r=(t|0)>(m|0)?m:t;if((g|0)>0){r=(r|0)>(g|0)?g:r;gw(u|0,n|0,r|0)|0}else bw(u|0,0,r|0)|0;t=t-r|0;o=(g|0)==(r|0);if((t|0)<=0){D=51;break}else{g=o?x:g-r|0;u=u+r|0;n=o?l:n+r|0;p=q;m=m-r|0}}if((D|0)==38){p=c[B>>2]|0;if(!p)p=o;else{xg(c[p+68>>2]|0);p=o}}else if((D|0)==51){if(!q){q=0;break}xg(c[q+68>>2]|0);q=0;break}if(p)xg(c[p+68>>2]|0)}else q=0}while(0);c[K>>2]=q;if(!q){q=f+(b[F>>1]<<1)+78|0;o=b[q>>1]|0;r=o&65535;p=c[H>>2]|0;if(!p){q=Cg(c[G+68>>2]|0)|0;c[K>>2]=q;if(q)break;q=r<<1;D=c[G+64>>2]|0;q=(c[G+56>>2]|0)+((d[D+q>>0]<<8|d[D+(q|1)>>0])&e[G+20>>1])|0;if(!(a[G+5>>0]|0)){D=d[q>>0]|d[q+1>>0]<<8|d[q+2>>0]<<16|d[q+3>>0]<<24;a[E>>0]=D;a[E+1>>0]=D>>8;a[E+2>>0]=D>>16;a[E+3>>0]=D>>24}c[K>>2]=Dp(G,q,I)|0;Ep(G,r,e[I>>1]|0,K);q=c[K>>2]|0;if(!q)q=r;else break}else if((p|0)<0?(b[G+18>>1]|0)!=0:0){D=o+1<<16>>16;b[q>>1]=D;q=D&65535}else q=r;Fp(G,q,E,s,0,0,K);b[f+44>>1]=0;q=c[K>>2]|0;if(!q)if(!(a[G+1>>0]|0))q=0;else{q=f+72|0;a[q>>0]=d[q>>0]&253;q=Gp(f)|0;c[K>>2]=q;a[(c[f+(b[F>>1]<<2)+120>>2]|0)+1>>0]=0;a[J>>0]=0}}}else q=s}else q=c[f+68>>2]|0;while(0);i=L;return q|0}function Fm(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();y=z+4|0;q=z+8|0;l=z;m=(c[f>>2]|0)+4|0;s=c[m>>2]|0;w=f+76|0;x=b[w>>1]|0;u=x<<16>>16;p=b[f+(u<<1)+78>>1]|0;v=p&65535;r=c[f+(u<<2)+120>>2]|0;do if((p&65535)<(e[r+18>>1]|0)?(a[f+73>>0]|0)==1:0){p=v<<1;t=c[r+64>>2]|0;p=(c[r+56>>2]|0)+((d[t+p>>0]<<8|d[t+(p|1)>>0])&e[r+20>>1])|0;t=r+5|0;if((a[t>>0]|0)==0?(c[l>>2]=0,k=Am(f,l)|0,c[y>>2]=k,(k|0)!=0):0){g=k;break}k=Hn(s,c[f+60>>2]|0,f)|0;c[y>>2]=k;if(!k){if((c[f+16>>2]|0)==0?(o=f+24|0,n=c[o>>2]|0,o=c[o+4>>2]|0,h=c[(c[m>>2]|0)+8>>2]|0,(h|0)!=0):0)do{if((a[h+72>>0]&16)!=0?(m=h+24|0,(c[m>>2]|0)==(n|0)?(c[m+4>>2]|0)==(o|0):0):0)a[h+73>>0]=0;h=c[h+8>>2]|0}while((h|0)!=0);h=Cg(c[r+68>>2]|0)|0;c[y>>2]=h;if(!h){c[y>>2]=Dp(r,p,q)|0;Ep(r,v,e[q>>1]|0,y);h=c[y>>2]|0;if(!h){if((a[t>>0]|0)==0?(p=c[f+(b[w>>1]<<2)+120>>2]|0,o=c[(c[f+(u+1<<2)+120>>2]|0)+72>>2]|0,l=c[p+56>>2]|0,q=p+18|0,m=e[q>>1]<<1,g=c[p+64>>2]|0,m=(d[g+(m+-2)>>0]<<8|d[g+(m+-1)>>0])&e[p+20>>1],g=(Hp(p,l+m|0)|0)&65535,n=c[s+80>>2]|0,c[y>>2]=Cg(c[p+68>>2]|0)|0,Fp(r,v,l+(m+-4)|0,g+4|0,n,o,y),Ep(p,(e[q>>1]|0)+-1|0,g,y),g=c[y>>2]|0,(g|0)!=0):0)break;g=Gp(f)|0;c[y>>2]=g;if(!g){g=b[w>>1]|0;if(g<<16>>16>x<<16>>16){do{h=g+-1<<16>>16;b[w>>1]=h;g=c[f+(g<<16>>16<<2)+120>>2]|0;if(!g)g=h;else{xg(c[g+68>>2]|0);g=b[w>>1]|0}}while(g<<16>>16>x<<16>>16);g=Gp(f)|0;c[y>>2]=g;if(g)break}mm(f)|0;g=0}}else g=h}else g=h}else g=k}else g=1;while(0);i=z;return g|0}function Gm(f,g,k,l){f=f|0;g=g|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;L=i;i=i+64|0;if((i|0)>=(j|0))ba();J=L+40|0;p=L+56|0;H=L;n=L+52|0;I=L+48|0;s=c[k+8>>2]|0;K=c[k>>2]|0;do if(!l){l=a[g>>0]|0;if(l<<24>>24>-1){l=l&255;c[p>>2]=l;m=1}else{m=im(g,p)|0;l=c[p>>2]|0}if(l>>>0>f>>>0){c[J>>2]=68267;c[J+4>>2]=10788;Zc(11,13600,J);a[k+7>>0]=11;m=0;break}else{G=l;p=l;l=0;n=m&255;o=15;break}}else{l=g+1|0;m=a[l>>0]|0;if(m<<24>>24>-1){l=m&255;c[n>>2]=l;o=1}else{o=im(l,n)|0;l=c[n>>2]|0}m=d[g>>0]|0;c[p>>2]=m;if(l>>>0>11)l=(l+-12|0)>>>1;else l=d[34336+l>>0]|0;G=m;p=l+m|0;l=1;n=(o&255)+1|0;s=s+40|0;o=15}while(0);do if((o|0)==15){w=H+12|0;x=K+4|0;y=H+10|0;z=K+12|0;A=H+32|0;B=H+8|0;D=H+16|0;F=k+7|0;E=k+4|0;v=p;u=n;a:while(1){n=e[s+8>>1]|0;do if(!(n&4)){if(n&8){o=a[g+u>>0]|0;p=o&255;c[I>>2]=p;if((o&255)>11){m=1;o=62;break a}if(!(o<<24>>24)){m=-1;o=62;break a}q=+h[s>>3];km(g+v|0,p,H)|0;if(o<<24>>24==7)r=+h[H>>3];else{m=H;r=+((c[m>>2]|0)>>>0)+4294967296.0*+(c[m+4>>2]|0)}if(r<q){m=-1;o=62;break a}if(r>q){m=1;o=62;break a}else break}do if(!(n&2)){o=g+u|0;t=a[o>>0]|0;p=t&255;if(!(n&16)){c[I>>2]=p;m=t<<24>>24!=0&1;break}if(t<<24>>24>-1)c[I>>2]=p;else{im(o,I)|0;p=c[I>>2]|0}if(!(p>>>0>11&(p&1|0)==0)){m=-1;o=62;break a}t=(p+-12|0)>>>1;if((t+v|0)>>>0>f>>>0){o=57;break a}o=c[s+12>>2]|0;m=Vv(g+v|0,c[s+16>>2]|0,(t|0)<(o|0)?t:o)|0;if(m){o=62;break a}m=t-o|0}else{p=g+u|0;o=a[p>>0]|0;if(o<<24>>24>-1){p=o&255;c[I>>2]=p}else{im(p,I)|0;p=c[I>>2]|0}if(p>>>0<12){m=-1;o=62;break a}if(!(p&1)){m=1;o=62;break a}n=(p+-12|0)>>>1;c[w>>2]=n;if((n+v|0)>>>0>f>>>0){o=46;break a}o=c[K+(l<<2)+20>>2]|0;if(o){a[y>>0]=a[x>>0]|0;c[A>>2]=c[z>>2];b[B>>1]=2;c[D>>2]=g+v;m=lp(H,s,o,F)|0;break}t=c[s+12>>2]|0;m=Vv(g+v|0,c[s+16>>2]|0,(n|0)<(t|0)?n:t)|0;if(m){o=62;break a}m=n-t|0}while(0);if(m){o=62;break a}}else{o=a[g+u>>0]|0;p=o&255;c[I>>2]=p;if((o&255)>11){m=1;o=62;break a}if(o<<24>>24==7){m=s;q=+((c[m>>2]|0)>>>0)+4294967296.0*+(c[m+4>>2]|0);km(g+v|0,p,H)|0;r=+h[H>>3];if(r<q){m=-1;o=62;break a}if(r>q){m=1;o=62;break a}else break}else if(!(o<<24>>24)){m=-1;o=62;break a}o=g+v|0;switch(p|0){case 1:case 0:{t=a[o>>0]|0;m=((t|0)<0)<<31>>31;break}case 4:{t=d[g+(v+1)>>0]<<16|d[o>>0]<<24|d[g+(v+2)>>0]<<8|d[g+(v+3)>>0];m=((t|0)<0)<<31>>31;break}case 3:{t=d[g+(v+1)>>0]<<8|a[o>>0]<<16|d[g+(v+2)>>0];m=((t|0)<0)<<31>>31;break}case 6:{m=d[g+(v+1)>>0]<<16|d[o>>0]<<24|d[g+(v+2)>>0]<<8|d[g+(v+3)>>0];t=d[g+(v+5)>>0]<<16|d[g+(v+4)>>0]<<24|d[g+(v+6)>>0]<<8|d[g+(v+7)>>0];break}case 2:{t=a[o>>0]<<8|d[g+(v+1)>>0];m=((t|0)<0)<<31>>31;break}case 5:{m=a[o>>0]<<8|d[g+(v+1)>>0];t=d[g+(v+3)>>0]<<16|d[g+(v+2)>>0]<<24|d[g+(v+4)>>0]<<8|d[g+(v+5)>>0];break}default:{m=0;t=p+-8|0}}n=s;o=c[n>>2]|0;n=c[n+4>>2]|0;if((m|0)<(n|0)|(m|0)==(n|0)&t>>>0<o>>>0){m=-1;o=62;break a}if((m|0)>(n|0)|(m|0)==(n|0)&t>>>0>o>>>0){m=1;o=62;break a}}while(0);l=l+1|0;s=s+40|0;if(p>>>0>11)n=(p+-12|0)>>>1;else n=d[34336+p>>0]|0;t=p;o=0;p=0;do{p=p+1|0;t=iw(t|0,o|0,7)|0;o=C}while(((t|0)!=0|(o|0)!=0)&(p|0)<9);v=n+v|0;u=p+u|0;if(u>>>0>=G>>>0){o=70;break}if(v>>>0>f>>>0?1:(l|0)>=(e[E>>1]|0)){o=70;break}}if((o|0)==46){c[J>>2]=68346;c[J+4>>2]=10788;Zc(11,13600,J);a[F>>0]=11;m=0;break}else if((o|0)==57){c[J>>2]=68375;c[J+4>>2]=10788;Zc(11,13600,J);a[F>>0]=11;m=0;break}else if((o|0)==62){m=(a[(c[K+16>>2]|0)+l>>0]|0)==0?m:0-m|0;break}else if((o|0)==70){m=a[k+6>>0]|0;break}}while(0);i=L;return m|0}function Hm(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+16|0;if((i|0)>=(j|0))ba();A=B;y=B+12|0;z=B+8|0;m=b[f+76>>1]|0;o=c[f+(m<<2)+120>>2]|0;x=c[f+4>>2]|0;if(!(b[f+44>>1]|0)){s=o+56|0;m=e[f+(m<<1)+78>>1]<<1;r=c[o+64>>2]|0;np(o,(c[s>>2]|0)+((d[r+m>>0]<<8|d[r+(m|1)>>0])&e[o+20>>1])|0,f+24|0);m=f+72|0;a[m>>0]=d[m>>0]|2;m=s}else m=o+56|0;s=c[f+32>>2]|0;q=f+40|0;n=e[q>>1]|0;r=x+36|0;if((s+n|0)>>>0<=((c[m>>2]|0)+(c[r>>2]|0)|0)>>>0){if(n>>>0>g>>>0){p=(h+g|0)>>>0>n>>>0?n-g|0:h;n=s+g|0;if(l&1){m=Cg(c[o+68>>2]|0)|0;if(!m){gw(n|0,k|0,p|0)|0;m=0}}else{gw(k|0,n|0,p|0)|0;m=0}k=k+p|0;t=0;h=h-p|0}else{t=g-n|0;m=0}a:do if((m|0)==0&(h|0)!=0){m=c[r>>2]|0;w=m+-4|0;n=e[q>>1]|0;q=d[s+(n+1)>>0]<<16|d[s+n>>0]<<24|d[s+(n+2)>>0]<<8|d[s+(n+3)>>0];c[y>>2]=q;s=f+72|0;do if((l|0)!=2?(a[s>>0]&4)==0:0){m=((m+-5+(c[f+36>>2]|0)-n|0)>>>0)/(w>>>0)|0;g=f+64|0;if((m|0)>(c[g>>2]|0)){o=f+20|0;n=ng(c[o>>2]|0,m<<3,0)|0;if(!n){m=7;break}c[g>>2]=m<<1;c[o>>2]=n}bw(c[f+20>>2]|0,0,m<<2|0)|0;a[s>>0]=d[s>>0]|4;m=0}else m=0;while(0);g=a[s>>0]|0;if((g&4)!=0?(v=(t>>>0)/(w>>>0)|0,u=c[(c[f+20>>2]|0)+(v<<2)>>2]|0,(u|0)!=0):0){c[y>>2]=u;p=(t>>>0)%(w>>>0)|0;o=u;q=v}else{p=t;o=q;q=0}if((m|0)==0&(o|0)!=0){u=l&1;v=u<<1^2;u=(u|0)==0;l=f+20|0;while(1){if(g&4)c[(c[l>>2]|0)+(q<<2)>>2]=o;if(p>>>0<w>>>0){r=(p+h|0)>>>0>w>>>0?w-p|0:h;m=vg(c[x>>2]|0,o,z,v)|0;if(!m){g=c[z>>2]|0;n=c[g+4>>2]|0;o=d[n+1>>0]<<16|d[n>>0]<<24|d[n+2>>0]<<8|d[n+3>>0];c[y>>2]=o;n=n+(p+4)|0;if(!u){m=Cg(g)|0;if(!m){gw(n|0,k|0,r|0)|0;m=0}}else{gw(k|0,n|0,r|0)|0;m=0}if(!g)p=0;else{xg(g);p=0}}h=h-r|0;k=k+r|0;q=q+1|0}else{g=q+1|0;m=c[(c[l>>2]|0)+(g<<2)>>2]|0;if(!m){m=Ip(x,o,0,y)|0;o=c[y>>2]|0}else{c[y>>2]=m;o=m;m=0}p=p-w|0;q=g}if(!((m|0)==0&(h|0)!=0&(o|0)!=0))break a;g=a[s>>0]|0}}}while(0);if((m|0)==0&(h|0)!=0){c[A>>2]=57357;c[A+4>>2]=10788;Zc(11,13600,A);m=11}}else{c[A>>2]=57202;c[A+4>>2]=10788;ZcZc(11,13600,q);c[w>>2]=11;k=11;break}if(n>>>0<(m+-8|0)>>>0){k=Cg(c[k+68>>2]|0)|0;c[w>>2]=k;if(k)break;r=c[o>>2]|0;q=n+1|0;a[r+4>>0]=q>>>24;a[r+5>>0]=q>>>16;a[r+6>>0]=q>>>8;a[r+7>>0]=q;r=n<<2;q=c[o>>2]|0;a[q+(r+8)>>0]=h>>>24;a[q+(r+9)>>0]=h>>>16;a[q+(r+10)>>0]=h>>>8;a[q+(r+11)>>0]=h;if((((g|0)!=0?(b[p>>1]&4)==0:0)?(s=c[g+68>>2]|0,t=s+24|0,u=e[t>>1]|0,(u&2|0)!=0):0)?(c[(c[s+16>>2]|0)+96>>2]|0)==0:0)b[t>>1]=u|32;l=f+60|0;k=c[l>>2]|0;do if(!k){g=c[f+44>>2]|0;k=mg(512,0)|0;if(!k){c[l>>2]=0;k=7;break}else{bw(k|0,0,512)|0;c[k>>2]=g;c[l>>2]=k;v=28;break}}else v=28;while(0);if((v|0)==28)if((c[k>>2]|0)>>>0<h>>>0)k=0;else k=Zh(k,h)|0;c[w>>2]=k;break}}else l=0;if(!g){k=$k(f,h,x,0)|0;c[w>>2]=k;if(k)break;g=c[x>>2]|0}k=Cg(c[g+68>>2]|0)|0;c[w>>2]=k;if(!k){k=g+56|0;s=c[k>>2]|0;a[s>>0]=l>>>24;a[s+1>>0]=l>>>16;a[s+2>>0]=l>>>8;a[s+3>>0]=l;k=(c[k>>2]|0)+4|0;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;k=c[r>>2]|0;a[k+32>>0]=h>>>24;a[k+33>>0]=h>>>16;a[k+34>>0]=h>>>8;a[k+35>>0]=h;k=0}}else k=l;while(0);g=c[x>>2]|0;if(g){a[g>>0]=0;xg(c[g+68>>2]|0)}g=c[y>>2]|0;if(g)xg(c[g+68>>2]|0);i=z;return k|0}function Vm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;P=i;i=i+48|0;if((i|0)>=(j|0))ba();M=P+24|0;D=P;w=P+36|0;N=P+32|0;t=g+72|0;L=c[t>>2]|0;u=c[f>>2]|0;r=c[g+68>>2]|0;s=u+15|0;if((a[s>>0]|0)!=0?(n=Cg(r)|0,(n|0)!=0):0)O=20;else O=3;a:do if((O|0)==3){o=r+24|0;q=b[o>>1]|0;if((q&2)!=0?(Qo(r)|0)!=0:0){n=Ro(r)|0;if(n){O=20;break}q=b[o>>1]|0}if((q&4)==0|(m|0)!=0)p=0;else p=c[r+20>>2]|0;b[o>>1]=q&65531;A=u+204|0;m=Yb[c[8744+132>>2]&63](c[(c[A>>2]|0)+40>>2]|0,l,0)|0;m=el(c[A>>2]|0,l,m)|0;do if(m){b[o>>1]=e[o>>1]|e[m+24>>1]&4;if(!(a[s>>0]|0)){il(m);break}else{Vp(m,(c[u+24>>2]|0)+1|0);break}}while(0);q=c[r+20>>2]|0;Vp(r,l);Po(r);if(a[s>>0]|0){Vp(m,q);xg(m)}do if(p){n=vg(u,p,M,0)|0;if(!n){A=c[M>>2]|0;z=A+24|0;b[z>>1]=e[z>>1]|4;Po(A);xg(A);break}if(p>>>0>(c[u+28>>2]|0)>>>0){O=20;break a}_h(c[u+56>>2]|0,p,c[u+200>>2]|0);O=20;break a}while(0);c[N>>2]=0;c[t>>2]=l;if(h<<24>>24==1|h<<24>>24==5){n=Wp(g)|0;c[N>>2]=n;if(!n)O=25;else break}else{m=c[g+56>>2]|0;m=d[m+1>>0]<<16|d[m>>0]<<24|d[m+2>>0]<<8|d[m+3>>0];if(m){vp(f,m,4,l,N);n=c[N>>2]|0;if(!n)O=25;else break}}if((O|0)==25?h<<24>>24==1:0){n=0;break}n=$k(f,k,w,0)|0;c[N>>2]=n;if(!n){z=c[w>>2]|0;A=z+68|0;n=Cg(c[A>>2]|0)|0;c[N>>2]=n;if(n){if(!z)break;xg(c[A>>2]|0);break}b:do if(h<<24>>24==4){n=c[z+56>>2]|0;o=n+1|0;p=n+2|0;m=n+3|0;if((d[o>>0]<<16|d[n>>0]<<24|d[p>>0]<<8|d[m>>0]|0)==(L|0)){a[n>>0]=l>>>24;a[o>>0]=l>>>16;a[p>>0]=l>>>8;a[m>>0]=l;n=0;break}else{c[M>>2]=56060;c[M+4>>2]=10788;Zc(11,13600,M);n=11;break}}else{x=a[z>>0]|0;Xp(z)|0;w=b[z+18>>1]|0;y=w&65535;c:do if(w<<16>>16){g=z+56|0;u=z+20|0;r=z+64|0;v=h<<24>>24==3;w=D+18|0;m=0;while(1){t=c[g>>2]|0;s=m<<1;q=c[r>>2]|0;s=(d[q+s>>0]<<8|d[q+(s|1)>>0])&e[u>>1];q=t+s|0;if(v){np(z,q,D);q=b[w>>1]|0;if((q<<16>>16!=0?(B=(q&65535)+s|0,C=t+(B+3)|0,C>>>0<=((c[g>>2]|0)+(e[u>>1]|0)|0)>>>0):0)?(E=t+B|0,F=t+(B+1)|0,G=t+(B+2)|0,(d[F>>0]<<16|d[E>>0]<<24|d[G>>0]<<8|d[C>>0]|0)==(L|0)):0){q=C;n=E;o=F;p=G;O=40;break}}else{n=t+(s+1)|0;o=t+(s+2)|0;p=t+(s+3)|0;if((d[n>>0]<<16|d[q>>0]<<24|d[o>>0]<<8|d[p>>0]|0)==(L|0)){O=42;break}}m=m+1|0;if((m|0)>=(y|0))break c}if((O|0)==40){a[n>>0]=l>>>24;a[o>>0]=l>>>16;a[p>>0]=l>>>8;a[q>>0]=l;break}else if((O|0)==42){a[q>>0]=l>>>24;a[n>>0]=l>>>16;a[o>>0]=l>>>8;a[p>>0]=l;break}}else m=0;while(0);do if((m|0)==(y|0)){if(h<<24>>24==5?(K=d[z+6>>0]|0,G=c[z+56>>2]|0,H=G+(K+8)|0,I=G+(K+9)|0,J=G+(K+10)|0,K=G+(K+11)|0,(d[I>>0]<<16|d[H>>0]<<24|d[J>>0]<<8|d[K>>0]|0)==(L|0)):0){a[H>>0]=l>>>24;a[I>>0]=l>>>16;a[J>>0]=l>>>8;a[K>>0]=l;break}c[M>>2]=56094;c[M+4>>2]=10788;Zc(d)|0;c[e+20>>2]=0;wn(e);f=f+1|0;d=c[h>>2]|0}while((f|0)<(c[i>>2]|0))}ig(a,d);c[i>>2]=0;c[h>>2]=0}return}function On(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;do if((d|0)==-2)if(!(c[a+12>>2]|0))d=(c[a+16>>2]|0)==0?0:6;else d=6;else{h=b[a>>1]|0;g=h<<16>>16;if(!((g|0)!=(d|0)&h<<16>>16>-1)){h=(g|0)==(d|0)?4:1;g=f&255;d=e[a+2>>1]|0;if((g|0)==(d&3|0)){d=h|2;break}else return ((d&g)>>>1&1)+h|0}else d=0}while(0);return d|0}
10 function qc(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;if((i|0)>=(j|0))ba();return b|0}function rc(){return i|0}function sc(a){a=a|0;i=a}function tc(a,b){a=a|0;b=b|0;if(!n){n=a;o=b}}function uc(b){b=b|0;a[k>>0]=a[b>>0];a[k+1>>0]=a[b+1>>0];a[k+2>>0]=a[b+2>>0];a[k+3>>0]=a[b+3>>0]}function vc(b){b=b|0;a[k>>0]=a[b>>0];a[k+1>>0]=a[b+1>>0];a[k+2>>0]=a[b+2>>0];a[k+3>>0]=a[b+3>>0];a[k+4>>0]=a[b+4>>0];a[k+5>>0]=a[b+5>>0];a[k+6>>0]=a[b+6>>0];a[k+7>>0]=a[b+7>>0]}function wc(a){a=a|0;C=a}function xc(){return C|0}function yc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();e=h+4|0;f=h;g=0;a:while(1){c[e>>2]=0;c[f>>2]=0;a[280]=0;if(Nf(14640,e)|0){d=4;break}d=c[e>>2]|0;b=0;do{if(Me(d,c[8+(b<<2)>>2]|0,17,0,f)|0){d=7;break a}b=b+1|0;d=c[e>>2]|0}while((b|0)!=5);pf(d)|0;if(Wv(280,8504)|0){d=9;break}g=g+1|0;if((g|0)>=3){d=11;break}}if((d|0)==4)eb(8472,8488,47,8496);else if((d|0)==7)eb(8472,8488,50,8496);else if((d|0)==9)eb(8600,8488,53,8496);else if((d|0)==11){i=h;return 0}return 0}function zc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;if((d|0)>0)while(1){d=d+-1|0;dw(280,c[f>>2]|0)|0;b=280+(cw(280)|0)|0;a[b>>0]=61;a[b+1>>0]=0;b=c[e>>2]|0;dw(280,((b|0)==0?20304:b)|0)|0;if((d|0)<=0)break;else{e=e+4|0;f=f+4|0}}return 0}function Ac(b){b=b|0;var e=0,f=0,g=0;g=(Bc(b,8640,7)|0)==0;g=g?b+7|0:b;if(!g)b=0;else{b=g;while(1)if(!(a[b>>0]|0))break;else b=b+1|0;b=b-g&1073741823}f=0;while(1){e=c[8648+(f<<2)>>2]|0;if((Bc(g,e,b)|0)==0?(a[10368+(d[e+b>>0]|0)>>0]&70)==0:0){b=1;break}f=f+1|0;if((f|0)>=4){b=0;break}}return b|0}function Bc(b,c,e){b=b|0;c=c|0;e=e|0;var f=0;a:do if(b)if(c)if((e|0)>0){f=b;while(1){b=a[f>>0]|0;if(!(b<<24>>24))break;if((a[9328+(b&255)>>0]|0)!=(a[9328+(d[c>>0]|0)>>0]|0))break;e=e+-1|0;if((e|0)<=0){e=0;break a}else{f=f+1|0;c=c+1|0}}if((e|0)>=1)e=(d[9328+(b&255)>>0]|0)-(d[9328+(d[c>>0]|0)>>0]|0)|0;else e=0}else e=0;else e=1;else e=((c|0)!=0)<<31>>31;while(0);return e|0}function Cc(a){a=a|0;if(a>>>0<4)a=c[8648+(a<<2)>>2]|0;else a=0;return a|0}function Dc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();f=h;if(a>>>0<=9){g=c[8664+(a<<2)>>2]|0;f=b;c[f>>2]=g;c[f+4>>2]=0;f=8704+(a<<2)|0;a=d;c[a>>2]=c[f>>2];c[a+4>>2]=0;if(!e)f=0;else{c[f>>2]=g;f=0}}else{c[f>>2]=15033;c[f+4>>2]=10788;Zc(21,13648,f);f=21}i=h;return f|0}function Ec(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();f=h+8|0;g=h;a=Dc(a,f,g,e)|0;if(!a){c[b>>2]=c[f>>2];c[d>>2]=c[g>>2]}i=h;return a|0}function Fc(a,b,d,f,g){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();n=p+4|0;l=p;switch(b|0){case 2:{c[n>>2]=0;o=a+20|0;g=c[o>>2]|0;h=(g|0)>0;if(h){l=c[a+16>>2]|0;k=0;do{b=c[l+(k<<4)+4>>2]|0;if(b)c[(c[b+4>>2]|0)+4>>2]=c[b>>2];k=k+1|0}while((k|0)!=(g|0));k=a+520|0;c[k>>2]=n;if(h){m=a+16|0;h=0;do{b=c[(c[m>>2]|0)+(h<<4)+12>>2]|0;if(b){l=hc[c[8744+52>>2]&127](16)|0;l=_((c[b+44>>2]|0)+(c[b+12>>2]|0)+(c[b+28>>2]|0)+(c[b+60>>2]|0)|0,l)|0;c[n>>2]=l+(c[n>>2]|0);l=hc[c[8744+48>>2]&127](c[b+20>>2]|0)|0;c[n>>2]=(c[n>>2]|0)+l;l=hc[c[8744+48>>2]&127](c[b+52>>2]|0)|0;c[n>>2]=(c[n>>2]|0)+l;l=hc[c[8744+48>>2]&127](c[b+36>>2]|0)|0;c[n>>2]=(c[n>>2]|0)+l;l=hc[c[8744+48>>2]&127](c[b+68>>2]|0)|0;c[n>>2]=(c[n>>2]|0)+l;l=c[b+48>>2]|0;if(l)do{fg(a,c[l+8>>2]|0);l=c[l>>2]|0}while((l|0)!=0);l=c[b+16>>2]|0;if(l)do{gg(a,c[l+8>>2]|0);l=c[l>>2]|0}while((l|0)!=0);g=c[o>>2]|0}h=h+1|0}while((h|0)<(g|0));h=c[n>>2]|0}else h=0}else{k=a+520|0;c[k>>2]=n;h=0}c[k>>2]=0;c[f>>2]=0;c[d>>2]=h;h=0;break}case 9:case 8:case 7:{o=a+20|0;l=c[o>>2]|0;if((l|0)>0){n=c[a+16>>2]|0;m=b+-7|0;k=(g|0)==0;h=0;b=l;g=0;while(1){l=c[n+(g<<4)+4>>2]|0;if(l){l=(c[c[l+4>>2]>>2]|0)+(m<<2)+184|0;h=(c[l>>2]|0)+h|0;if(k)l=b;else{c[l>>2]=0;l=c[o>>2]|0}}else l=b;g=g+1|0;if((g|0)>=(l|0))break;else b=l}}else h=0;c[f>>2]=0;c[d>>2]=h;h=0;break}case 0:{k=a+252|0;c[d>>2]=c[k>>2];h=a+256|0;c[f>>2]=c[h>>2];if(!g)h=0;else{c[h>>2]=c[k>>2];h=0}break}case 6:case 5:case 4:{c[d>>2]=0;h=a+(b+-4<<2)+260|0;c[f>>2]=c[h>>2];if(!g)h=0;else{c[h>>2]=0;h=0}break}case 1:{m=a+20|0;k=c[m>>2]|0;g=(k|0)>0;if(g){h=c[a+16>>2]|0;l=0;do{b=c[h+(l<<4)+4>>2]|0;if(b)c[(c[b+4>>2]|0)+4>>2]=c[b>>2];l=l+1|0}while((l|0)!=(k|0));if(g){b=a+16|0;l=0;h=0;while(1){g=c[(c[b>>2]|0)+(l<<4)+4>>2]|0;if(!g)g=k;else{o=c[c[g+4>>2]>>2]|0;a=o+152|0;n=(c[a>>2]|0)+60+(e[o+140>>1]|0)|0;n=_(hc[c[8744+128>>2]&127](c[(c[o+204>>2]|0)+40>>2]|0)|0,n)|0;o=hc[c[8744+48>>2]&127](o)|0;g=c[m>>2]|0;h=n+h+o+(c[a>>2]|0)|0}l=l+1|0;if((l|0)>=(g|0))break;else k=g}}else h=0}else h=0;c[d>>2]=h;c[f>>2]=0;h=0;break}case 3:{c[l>>2]=0;g=a+520|0;c[g>>2]=l;k=c[a+4>>2]|0;if(!k)h=0;else{do{hg(a,k);ig(a,k);k=c[k+52>>2]|0}while((k|0)!=0);h=c[l>>2]|0}c[g>>2]=0;c[f>>2]=0;c[d>>2]=h;h=0;break}case 10:{c[f>>2]=0;o=a+512|0;n=c[o+4>>2]|0;if((n|0)>0|(n|0)==0&(c[o>>2]|0)>>>0>0)h=1;else{h=a+504|0;a=c[h+4>>2]|0;h=(a|0)>0|(a|0)==0&(c[h>>2]|0)>>>0>0}c[d>>2]=h&1;h=0;break}default:h=1}i=p;return h|0}function Gc(a){a=a|0;var b=0;a:do if(!(Hc()|0)){b=c[2254]|0;if(!((b|0)==0|(a|0)==0))while(1){if(!(Wv(a,c[b+16>>2]|0)|0))break a;b=c[b+12>>2]|0;if(!b){b=0;break}}}else b=0;while(0);return b|0}function Hc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m;do if(!(c[2243]|0)){c[2245]=1;if(!(c[2246]|0)){if(!(c[2195]|0)){c[k>>2]=16496;hf(4,k)|0}b=9024|0;d=b+40|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(d|0));if(c[2187]|0)c[2256]=8;h=c[2234]|0;d=c[2235]|0;b=c[2236]|0;if((h|0)!=0&(d|0)>99&(b|0)>0){g=d&-8;c[2235]=g;c[2263]=h;c[2264]=b;f=b+-1|0;if((f|0)>0){b=h+(_(d>>>3,(b<<3)+-8|0)|0)|0;e=0;d=h;do{a=d;d=d+g|0;c[a>>2]=d;e=e+1|0}while((e|0)!=(f|0))}else b=h;c[b>>2]=0;c[2262]=b+4}else{c[2262]=0;c[2234]=0;c[2235]=0;c[2236]=0}if((c[2237]|0)==0|(c[2238]|0)<512|(c[2239]|0)<1){c[2237]=0;c[2238]=0;c[2239]=0}a=hc[c[8744+56>>2]&127](c[2202]|0)|0;if(a){b=9024|0;d=b+40|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(d|0));break}}c[2246]=1;if(!(c[2249]|0))c[2249]=8;a=(c[2248]|0)+1|0;c[2248]=a;if(!(c[2244]|c[2243])){c[2244]=1;b=10840|0;d=b+92|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(d|0));b=0;do{jg(10840,16608+(b*36|0)|0);b=b+1|0}while((b|0)!=59);b=0;do{jg(10840,19480+(b*36|0)|0);b=b+1|0}while((b|0)!=8);jg(10840,19256);jg(10840,19292|0);jg(10840,19328|0);if(!(c[2247]|0)){a=c[2214]|0;if(!a){c[k>>2]=16440;hf(18,k)|0;a=c[2214]|0}a=hc[a&127](c[2213]|0)|0;if(!a)l=28}else l=28;if((l|0)==28){c[2247]=1;a=Pc(10)|0;if(!a)a=7;else{Sc(a);Ic(9584,1)|0;Ic(9672|0,0)|0;Ic(9760|0,0)|0;Ic(9848|0,0)|0;a=c[2237]|0;b=c[2238]|0;d=c[2239]|0;if(c[3153]|0){k=b&-8;c[3154]=k;c[3161]=d;c[3155]=d;if((d|0)<=90){c[3156]=((d|0)/10|0)+1;c[3157]=a;c[3160]=0;c[3162]=0;if(d)l=33}else{c[3156]=10;c[3157]=a;c[3160]=0;c[3162]=0;l=33}if((l|0)==33){f=b>>>3;g=d<<3;h=_(f<<3,d+-1|0)|0;b=a;e=0;while(1){d=d+-1|0;c[b>>2]=e;if(!d)break;else{e=b;b=b+k|0}}b=a+(_(g,f)|0)|0;c[3160]=a+h;a=b}c[3158]=a}c[2243]=1;a=0}}c[2244]=0;b=c[2248]|0}else{b=a;a=0}c[2248]=b+-1;if((b|0)<2)c[2249]=0}else a=0;while(0);i=m;return a|0}function Ic(a,b){a=a|0;b=b|0;var d=0;d=Hc()|0;do if(!d){kg(a);d=c[2254]|0;if((b|0)!=0|(d|0)==0){c[a+12>>2]=d;c[2254]=a;d=0;break}else{c[a+12>>2]=c[d+12>>2];c[(c[2254]|0)+12>>2]=a;d=0;break}}while(0);return d|0}function Jc(a){a=a|0;kg(a);return 0}function Kc(a){a=a|0;return 0}function Lc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;do if(!(Hc()|0)){e=9032|0;d=c[e>>2]|0;e=c[e+4>>2]|0;if((b|0)>=0)if((b|0)>0|(b|0)==0&a>>>0>0){c[2260]=9;c[2261]=0;f=9032|0;c[f>>2]=a;c[f+4>>2]=b;c[2265]=(0>(b|0)|0==(b|0)&(c[2166]|0)>>>0>=a>>>0)&1;break}else{c[2265]=0;c[2258]=0;c[2259]=0;c[2260]=0;c[2261]=0;break}}else{e=-1;d=-1}while(0);C=e;return d|0}function Mc(){var a=0;a=c[2166]|0;C=((a|0)<0)<<31>>31;return a|0}function Nc(a){a=a|0;var b=0;b=(a|0)<0;Lc(b?0:a,b?0:((a|0)<0)<<31>>31)|0;return}function Oc(a){a=a|0;var b=0;b=c[2176]|0;if(a)c[2176]=c[2166];C=((b|0)<0)<<31>>31;return b|0}function Pc(a){a=a|0;if((Hc()|0)!=0|(a|0)<1)a=0;else a=mg(a,((a|0)<0)<<31>>31)|0;return a|0}function Qc(a,b){a=a|0;b=b|0;if(!(Hc()|0))a=mg(a,b)|0;else a=0;return a|0}function Rc(a){a=a|0;a=hc[c[8744+48>>2]&127](a)|0;C=((a|0)<0)<<31>>31;return a|0}function Sc(a){a=a|0;var b=0;do if(a)if(!(c[2186]|0)){_b[c[8744+40>>2]&31](a);break}else{b=hc[c[8744+48>>2]&127](a)|0;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;_b[c[8744+40>>2]&31](a);break}while(0);return}function Tc(a,b){a=a|0;b=b|0;var c=0;if(!(Hc()|0)){c=(b|0)<0;b=ng(a,c?0:b,c?0:((b|0)<0)<<31>>31)|0}else b=0;return b|0}function Uc(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Hc()|0))b=ng(a,b,c)|0;else b=0;return b|0}function Vc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+112|0;if((i|0)>=(j|0))ba();f=g+28|0;e=g;if(!(Hc()|0)){c[e+4>>2]=f;c[e+8>>2]=f;c[e>>2]=0;c[e+12>>2]=0;c[e+16>>2]=70;c[e+20>>2]=1e9;a[e+25>>0]=0;a[e+24>>0]=2;og(e,0,b,d);e=pg(e)|0}else e=0;i=g;return e|0}function Wc(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;if(!(Hc()|0)){c[d>>2]=b;d=Vc(a,d)|0}else d=0;i=e;return d|0}function Xc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))ba();g=h;if((b|0)>=1){c[g+4>>2]=d;c[g+8>>2]=d;c[g>>2]=0;c[g+12>>2]=0;c[g+16>>2]=b;c[g+20>>2]=0;a[g+25>>0]=0;a[g+24>>0]=0;og(g,0,e,f);d=pg(g)|0}i=h;return d|0}function Yc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();g=f;c[g>>2]=e;a=Xc(a,b,d,g)|0;i=f;return a|0}function ZcZc(21,47360,d);c[d>>2]=68910;c[d+4>>2]=10788;Zc(21,13648,d);b=21;break}else{a=Kg(b,Jg(a)|0)|0;Ig(b);b=a;break}}else b=0;while(0);i=e;return b|0}function jd(b){b=b|0;var d=0,e=0;if(!b)b=0;else{d=Lg(b)|0;c[b+76>>2]=-1;c[b+80>>2]=0;a[b+86>>0]=2;c[b+40>>2]=-1108210269;c[b+92>>2]=0;c[b+72>>2]=1;a[b+87>>0]=-1;c[b+104>>2]=0;e=b+144|0;c[e>>2]=0;c[e+4>>2]=0;b=Kg(c[b>>2]|0,d)|0}return b|0}function kd(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+68|0;e=b[h>>1]|0;if(e<<16>>16>0){i=a+60|0;d=c[i>>2]|0;g=0;do{f=d+(g*40|0)|0;if(!((b[d+(g*40|0)+8>>1]&9312)==0?(c[d+(g*40|0)+24>>2]|0)==0:0)){Mg(f);d=c[i>>2]|0;e=b[h>>1]|0}b[d+(g*40|0)+8>>1]=1;g=g+1|0}while((g|0)<(e<<16>>16|0))}d=a+88|0;e=b[d>>1]|0;if((e&256)!=0?(c[a+188>>2]|0)!=0:0)b[d>>1]=e|8;return 0}function ld(a){a=a|0;var d=0;d=a+8|0;if(b[d>>1]&18){Ng(a)|0;b[d>>1]=e[d>>1]|0|16;if(!(c[a+12>>2]|0))d=0;else d=c[a+16>>2]|0}else d=Og(a,1)|0;return d|0}function md(a){a=a|0;return Og(a,1)|0}function nd(a){a=a|0;return Pg(a,1)|0}function od(a){a=a|0;return Pg(a,2)|0}function pd(a){a=a|0;return +(+Qg(a))}function qd(a){a=a|0;a=Rg(a)|0;return a|0}function rd(a){a=a|0;a=Rg(a)|0;return a|0}function sd(a){a=a|0;return Og(a,2)|0}function td(a){a=a|0;return Og(a,3)|0}function ud(a){a=a|0;return Og(a,2)|0}function vd(a){a=a|0;return d[10064+((e[a+8>>1]|0)&31)>>0]|0|0}function wd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,0,d);return}function xd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))_b[g&31](d);if(b){c[b+20>>2]=18;a[b+25>>0]=1;Tg(c[b>>2]|0,10096,-1,1,0)|0}}else Sg(b,d,e,0,g);return}function yd(a,b){a=a|0;b=+b;Ug(c[a>>2]|0,b);return}function zd(b,d,e){b=b|0;d=d|0;e=e|0;c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,d,e,1,-1)|0;return}function Ad(b,d,e){b=b|0;d=d|0;e=e|0;c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,d,e,2,-1)|0;return}function Bd(a,d){a=a|0;d=d|0;var e=0,f=0;a=c[a>>2]|0;e=((d|0)<0)<<31>>31;f=a+8|0;if(!(b[f>>1]&9312)){c[a>>2]=d;c[a+4>>2]=e;b[f>>1]=4}else Vg(a,d,e);return}function Cd(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[a>>2]|0;f=a+8|0;if(!(b[f>>1]&9312)){c[a>>2]=d;c[a+4>>2]=e;b[f>>1]=4}else Vg(a,d,e);return}function Dd(a){a=a|0;var d=0;a=c[a>>2]|0;d=a+8|0;if(!(b[d>>1]&9312))b[d>>1]=1;else rg(a);return}function Ed(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,1,d);return}function Fd(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))_b[g&31](d);if(b){c[b+20>>2]=18;a[b+25>>0]=1;Tg(c[b>>2]|0,10096,-1,1,0)|0}}else Sg(b,d,e,h<<24>>24==4?2:h,g);return}function Gd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,2,d);return}function Hd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,3,d);return}function Id(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Sg(a,b,c,2,d);return}function Jd(a,b){a=a|0;b=b|0;Wg(c[a>>2]|0,b)|0;return}function Kd(a,b){a=a|0;b=b|0;Xg(c[a>>2]|0,b);return}function Ld(d,e){d=d|0;e=e|0;var f=0;c[d+20>>2]=e;a[d+25>>0]=1;f=c[d>>2]|0;if(b[f+8>>1]&1){if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[15488+(d<<2)>>2]|0}else d=16344;Tg(f,d,-1,1,0)|0}return}function Md(b){b=b|0;c[b+20>>2]=18;a[b+25>>0]=1;Tg(c[b>>2]|0,10096,-1,1,0)|0;return}function Nd(d){d=d|0;var e=0,f=0;e=c[d>>2]|0;f=e+8|0;if(!(b[f>>1]&9312))b[f>>1]=1;else{rg(e);e=c[d>>2]|0}c[d+20>>2]=7;a[d+25>>0]=1;a[(c[e+32>>2]|0)+65>>0]=1;return}function Od(f){f=f|0;var g=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0;W=i;i=i+224|0;if((i|0)>=(j|0))ba();R=W+8|0;Q=W;if(!(Yg(f)|0)){V=c[f>>2]|0;J=f+88|0;b[J>>1]=b[J>>1]&-513;N=f+40|0;O=f+76|0;P=f+128|0;U=f+80|0;z=f+168|0;A=f+8|0;B=f+20|0;D=f+32|0;E=f+4|0;F=f+84|0;T=f+44|0;G=(f|0)==0;H=f+52|0;I=f+48|0;y=0;while(1){if((c[N>>2]|0)!=-1108210269)jd(f)|0;x=c[f>>2]|0;if(a[x+65>>0]|0){S=7;break}l=c[O>>2]|0;do if((l|0)<1){if(b[J>>1]&8){c[U>>2]=17;l=1;break}if((l|0)<0){l=x+148|0;if(!(c[l>>2]|0))c[x+240>>2]=0;if((c[x+184>>2]|0)!=0?(a[x+145>>0]|0)==0:0)Zg(c[x>>2]|0,P)|0;c[l>>2]=(c[l>>2]|0)+1;l=b[J>>1]|0;if(!(l&64)){l=x+156|0;c[l>>2]=(c[l>>2]|0)+1;l=b[J>>1]|0}if(l&128){w=x+152|0;c[w>>2]=(c[w>>2]|0)+1}c[O>>2]=0;S=22}else S=22}else S=22;while(0);if((S|0)==22){S=0;do if(!(b[J>>1]&3)){w=x+160|0;c[w>>2]=(c[w>>2]|0)+1;l=ch(f)|0;c[w>>2]=(c[w>>2]|0)+-1;if((l|0)==100)l=100;else S=101}else{p=c[f>>2]|0;v=c[A>>2]|0;u=v+40|0;_g(u,8);c[B>>2]=0;if((c[U>>2]|0)==7){a[p+65>>0]=1;l=1;S=101;break}n=c[D>>2]|0;q=b[J>>1]&3;if(q<<16>>16==1){o=c[A>>2]|0;r=o+360|0;if(b[o+368>>1]&16){s=(c[o+372>>2]|0)>>>2;m=c[o+376>>2]|0;if(!s){t=m;o=n;g=0}else{l=0;o=n;do{o=(c[(c[m+(l<<2)>>2]|0)+4>>2]|0)+o|0;l=l+1|0}while((l|0)<(s|0));t=m;g=s}}else{t=0;o=n;g=0}}else{t=0;o=n;g=0;r=0}n=q<<16>>16==2;m=c[O>>2]|0;while(1){l=m+1|0;if((m|0)>=(o|0)){S=33;break}if(!n)break;if((a[(c[E>>2]|0)+(m*20|0)>>0]|0)==-99)break;else m=l}if((S|0)==33){c[O>>2]=l;c[U>>2]=0;l=101;S=101;break}c[O>>2]=l;if(c[p+240>>2]|0){c[U>>2]=9;c[R>>2]=15832;$g(T,p,10344,R);l=1;S=101;break}o=c[D>>2]|0;if((m|0)<(o|0)){l=m;w=(c[E>>2]|0)+(m*20|0)|0}else{m=m-o|0;o=c[t>>2]|0;n=c[o+4>>2]|0;if((m|0)<(n|0))n=m;else{o=m;l=0;while(1){m=o-n|0;l=l+1|0;o=c[t+(l<<2)>>2]|0;n=c[o+4>>2]|0;if((m|0)<(n|0)){n=m;break}else o=m}}l=n;w=(c[o>>2]|0)+(n*20|0)|0}if((b[J>>1]&3)==1){b[v+48>>1]=4;n=u;c[n>>2]=l;c[n+4>>2]=((l|0)<0)<<31>>31;b[v+88>>1]=2562;n=c[44856+(d[w>>0]<<2)>>2]|0;c[v+96>>2]=n;o=n;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;s=v+80|0;c[v+92>>2]=o-n&1073741823;a[v+90>>0]=1;if((a[w+1>>0]|0)==-18){l=(g<<2)+4|0;a:do if(!g)o=0;else{n=c[w+16>>2]|0;m=0;while(1){o=m+1|0;if((c[t+(m<<2)>>2]|0)==(n|0)){o=m;break a}if((o|0)<(g|0))m=o;else break}}while(0);if((o|0)==(g|0)?(ah(r,l,(g|0)!=0&1)|0)==0:0){c[(c[r+16>>2]|0)+(g<<2)>>2]=c[w+16>>2];v=r+8|0;b[v>>1]=e[v>>1]|16;c[r+12>>2]=l;v=s}else v=s}else v=s}b[v+48>>1]=4;u=c[w+4>>2]|0;t=v+40|0;c[t>>2]=u;c[t+4>>2]=((u|0)<0)<<31>>31;b[v+88>>1]=4;t=c[w+8>>2]|0;u=v+80|0;c[u>>2]=t;c[u+4>>2]=((t|0)<0)<<31>>31;b[v+128>>1]=4;u=c[w+12>>2]|0;t=v+120|0;c[t>>2]=u;c[t+4>>2]=((u|0)<0)<<31>>31;t=v+160|0;if(!(bh(t,32)|0)){b[v+168>>1]=514;u=v+176|0;g=c[u>>2]|0;b:do switch(a[w+1>>0]|0){case -6:{p=c[w+16>>2]|0;l=p+6|0;c[R>>2]=e[l>>1];Yc(32,g,44768,R)|0;if(!g)o=0;else{o=g;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;o=o-g&1073741823}c:do if(b[l>>1]|0){q=p+16|0;r=0;while(1){n=c[p+(r<<2)+20>>2]|0;if(n){n=c[n>>2]|0;if(!n){m=0;n=0}else S=61}else{n=44776;S=61}do if((S|0)==61){S=0;s=n;while(1)if(!(a[s>>0]|0))break;else s=s+1|0;m=s-n&1073741823;if((m|0)!=6)break;s=(Vv(n,11152,6)|0)==0;m=s?1:6;n=s?44784:n}while(0);if((m+o|0)>26)break;s=o+1|0;a[g+o>>0]=44;if(a[(c[q>>2]|0)+r>>0]|0){a[g+s>>0]=45;s=o+2|0}gw(g+s|0,n|0,m+1|0)|0;o=s+m|0;r=r+1|0;if((r|0)>=(e[l>>1]|0))break c}l=g+o|0;a[l>>0]=44;a[l+1>>0]=46;a[l+2>>0]=46;a[l+3>>0]=46}while(0);a[g+o>>0]=41;a[g+(o+1)>>0]=0;n=g;break}case -15:{Yc(32,g,44832,R)|0;n=g;break}case -18:{Yc(32,g,44848,R)|0;n=g;break}case -4:{c[R>>2]=c[c[w+16>>2]>>2];Yc(32,g,44792,R)|0;n=g;break}case -5:{l=c[w+16>>2]|0;n=b[l>>1]|0;c[R>>2]=c[l+24>>2];c[R+4>>2]=n;Yc(32,g,44800,R)|0;n=g;break}case -13:{m=c[w+16>>2]|0;l=c[m+4>>2]|0;n=R;c[n>>2]=c[m>>2];c[n+4>>2]=l;Yc(32,g,19920,R)|0;n=g;break}case -14:{c[R>>2]=c[w+16>>2];Yc(32,g,44808,R)|0;n=g;break}case -12:{h[k>>3]=+h[c[w+16>>2]>>3];c[R>>2]=c[k>>2];c[R+4>>2]=c[k+4>>2];Yc(32,g,19912,R)|0;n=g;break}case -8:{o=c[w+16>>2]|0;n=e[o+8>>1]|0;if(n&2){n=c[o+16>>2]|0;break b}if(n&4){m=o;l=c[m+4>>2]|0;n=R;c[n>>2]=c[m>>2];c[n+4>>2]=l;Yc(32,g,19920,R)|0;n=g;break b}if(n&8){h[k>>3]=+h[o>>3];c[R>>2]=c[k>>2];c[R+4>>2]=c[k+4>>2];Yc(32,g,19912,R)|0;n=g;break b}if(!(n&1))n=44816;else{Yc(32,g,20304,R)|0;n=g}break}case -19:{a[g>>0]=0;n=g;break}case -10:{c[R>>2]=c[(c[w+16>>2]|0)+8>>2];Yc(32,g,44824,R)|0;n=g;break}default:{o=c[w+16>>2]|0;if(!o){a[g>>0]=0;n=g}else n=o}}while(0);if((n|0)==(c[u>>2]|0)){if(!n)l=0;else{o=n;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;l=o-n&1073741823}c[v+172>>2]=l;a[v+170>>0]=1}else Tg(t,n,-1,1,0)|0;l=b[J>>1]|0;if((l&3)==1){if(bh(v+200|0,4)|0){l=1;S=101;break}b[v+208>>1]=514;c[v+212>>2]=2;l=c[v+216>>2]|0;c[R>>2]=d[w+3>>0];Yc(3,l,44760,R)|0;a[v+210>>0]=1;b[v+248>>1]=1;l=b[J>>1]|0}b[F>>1]=12-((l&3)<<2);c[B>>2]=(c[A>>2]|0)+40;c[U>>2]=0;l=100}else{l=1;S=101}}while(0);if((S|0)==101){S=0;g=x+184|0;if(((c[g>>2]|0)!=0?(a[x+145>>0]|0)==0:0)?(c[z>>2]|0)!=0:0){Zg(c[x>>2]|0,Q)|0;g=c[g>>2]|0;u=c[x+188>>2]|0;v=c[z>>2]|0;m=Q;w=P;w=$v(c[m>>2]|0,c[m+4>>2]|0,c[w>>2]|0,c[w+4>>2]|0)|0;w=ow(w|0,C|0,1e6,0)|0;mc[g&15](u,v,w,C)}if((l|0)==101){p=x+20|0;o=c[p>>2]|0;if((o|0)>0){q=x+16|0;r=x+216|0;s=x+220|0;g=0;l=0;do{n=c[q>>2]|0;m=c[n+(g<<4)+4>>2]|0;if(((m|0)!=0?(K=c[m+4>>2]|0,c[K+4>>2]=c[m>>2],K=c[(c[K>>2]|0)+208>>2]|0,(K|0)!=0):0)?(M=K+12|0,L=c[M>>2]|0,c[M>>2]=0,M=c[r>>2]|0,(M|0)!=0&(L|0)>0&(l|0)==0):0){l=lc[M&31](c[s>>2]|0,x,c[n+(g<<4)>>2]|0,L)|0;o=c[p>>2]|0}g=g+1|0}while((g|0)<(o|0))}else l=0;c[U>>2]=l;l=(l|0)==0?101:1}}c[x+52>>2]=l;if((Kg(c[f>>2]|0,c[U>>2]|0)|0)==7)c[U>>2]=7}if((b[J>>1]&256)!=0&(l|0)!=100&(l|0)!=101)l=dh(f)|0;g=c[x+56>>2]&l;if((g|0)!=17)break;o=y+1|0;if((y|0)>=50){g=17;break}m=c[O>>2]|0;if(!G?(b[J>>1]&256)!=0:0)l=c[z>>2]|0;else l=0;n=c[f>>2]|0;g=eh(n,l,-1,0,f,Q,0)|0;if((g|0)==7){g=n;S=124;break}else if(g){S=127;break}y=c[Q>>2]|0;gw(R|0,y|0,208)|0;gw(y|0,f|0,208)|0;gw(f|0,R|0,208)|0;w=y+52|0;x=c[w>>2]|0;c[w>>2]=c[H>>2];c[H>>2]=x;x=y+48|0;w=c[x>>2]|0;c[x>>2]=c[I>>2];c[I>>2]=w;w=y+168|0;x=c[w>>2]|0;c[w>>2]=c[z>>2];c[z>>2]=x;b[J>>1]=b[J>>1]&-257|b[y+88>>1]&256;fh(y,f);c[y+80>>2]=0;Jg(y)|0;jd(f)|0;if((m|0)<=-1){y=o;continue}b[J>>1]=b[J>>1]|512;y=o}if((S|0)==7){c[U>>2]=7;g=7}else if((S|0)==124){a[g+65>>0]=1;g=7;S=127}do if((S|0)==127){l=Og(c[V+236>>2]|0,1)|0;ig(V,c[T>>2]|0);if(!(a[V+65>>0]|0)){c[T>>2]=gh(V,l)|0;c[U>>2]=g;break}else{c[T>>2]=0;c[U>>2]=7;g=7;break}}while(0);g=Kg(V,g)|0}else{c[R>>2]=69408;c[R+4>>2]=10788;ZcZc(21,13648,e);b=21}else{g=c[a+24>>2]|0;if(c[a+20>>2]|0){b=xh(a,b,d,f)|0;if(!b)b=0;else{d=c[f>>2]|0;c[e>>2]=d;qg(g,b,(d|0)!=0?10344:0,e);ig(g,d)}}else b=4;b=Kg(g,b)|0}i=h;return b|0}function Ke(a,d,e){a=a|0;d=d|0;e=e|0;c[a+284>>2]=d;c[a+288>>2]=e;a=c[a+4>>2]|0;if(a)do{e=a+88|0;b[e>>1]=b[e>>1]|8;a=c[a+52>>2]|0}while((a|0)!=0);return 0}function Le(a,b){a=a|0;b=b|0;return (Ch(a,b,10352,0)|0)==0|0}function Me(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+16|0;if((i|0)>=(j|0))ba();m=B;x=B+12|0;y=B+8|0;c[y>>2]=0;do if(Dh(e)|0){l=(f|0)==0?10360:f;z=e+52|0;c[z>>2]=0;A=e+236|0;m=c[A>>2]|0;do if(m){f=m+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;break}else{rg(m);break}}while(0);u=(g|0)==0;v=e+24|0;m=0;a:while(1){do{if(m){n=39;break a}if(!(a[l>>0]|0)){m=0;n=39;break a}c[y>>2]=0;m=eh(e,l,-1,1,0,y,x)|0}while((m|0)!=0);l=c[y>>2]|0;if(!l){l=c[x>>2]|0;m=0;continue}t=b[l+84>>1]|0;r=t&65535;s=r<<3|1;t=t<<16>>16==0;f=0;n=0;o=0;b:do{m=Od(l)|0;do if(!u){p=(m|0)==100;if(!p){if((m|0)!=101|(o|0)!=0)break b;if(!(c[v>>2]&256)){o=0;break}}if(!o){f=ih(e,s,0)|0;if(!f){f=0;n=40;break a}bw(f|0,0,s|0)|0;if(t)q=1;else{o=0;do{c[f+(o<<2)>>2]=fe(l,o)|0;o=o+1|0}while((o|0)<(r|0));q=1}}else q=o;c:do if(p){n=f+(r<<2)|0;if(!t){o=0;while(1){p=be(l,o)|0;c[f+(o+r<<2)>>2]=p;if((p|0)==0?(w=c[y>>2]|0,(ee(w,o)|0)!=5):0){m=w;n=27;break a}o=o+1|0;if((o|0)>=(r|0))break c;l=c[y>>2]|0}}}while(0);if(!(lc[g&31](h,r,n,f)|0))o=q;else{l=f;n=31;break a}}while(0);l=c[y>>2]|0}while((m|0)==100);m=Jg(l)|0;c[y>>2]=0;l=c[x>>2]|0;while(1)if(!(a[10368+(d[l>>0]|0)>>0]&1))break;else l=l+1|0;ig(e,f)}do if((n|0)==27){a[e+65>>0]=1;l=m;m=100;n=40}else if((n|0)==31){Jg(c[y>>2]|0)|0;c[y>>2]=0;c[z>>2]=4;m=c[A>>2]|0;if(m){f=m+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;f=l;m=4;break}else{rg(m);f=l;m=4;break}}else{f=l;m=4}}else if((n|0)==39){l=c[y>>2]|0;f=0;n=40}while(0);if((n|0)==40)if(l)Jg(l)|0;ig(e,f);l=Kg(e,m)|0;f=(k|0)!=0;if(!((l|0)!=0&f)){if(!f)break;c[k>>2]=0;break}f=Oe(e)|0;if(!f)f=1;else{m=f;while(1)if(!(a[m>>0]|0))break;else m=m+1|0;f=(m-f&1073741823)+1|0}m=mg(f,((f|0)<0)<<31>>31)|0;c[k>>2]=m;if(m){gw(m|0,Oe(e)|0,f|0)|0;break}c[z>>2]=7;l=c[A>>2]|0;if(l){f=l+8|0;if(!(b[f>>1]&9312)){b[f>>1]=1;l=7;break}else{rg(l);l=7;break}}else l=7}else{c[m>>2]=101334;c[m+4>>2]=10788;Zc(21,13648,m);l=21}while(0);i=B;return l|0}function Ne(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return eh(a,b,c,1,0,d,e)|0}function Oe(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;do if(b){f=c[b+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[d>>2]=15248;Zc(21,15256,d);c[d>>2]=129635;c[d+4>>2]=10788;Zc(21,13648,d);d=16120;break}if(!(a[b+65>>0]|0)){d=Og(c[b+236>>2]|0,1)|0;if(!d){d=c[b+52>>2]|0;if((d|0)!=516){d=d&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[15488+(d<<2)>>2]|0}else d=16344}}else d=15776}else d=15776;while(0);i=e;return d|0}function Pe(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();s=u;t=u+8|0;r=c[b>>2]|0;c[t>>2]=0;m=(d|0)==0;if(m)g=0;else{l=d;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;g=l-d&1073741823}p=g+300|0;o=(f|0)!=0;if(o)c[f>>2]=0;do if(!(c[b+24>>2]&4194304))if(o){c[f>>2]=Wc(25216,s)|0;g=1}else g=1;else{n=(e|0)!=0?e:41192;k=r+40|0;l=nc[c[k>>2]&127](r,d)|0;if(!l){c[s>>2]=d;c[s+4>>2]=41184;h=Wc(27824,s)|0;if(!h){g=7;break}l=nc[c[k>>2]&127](r,h)|0;Sc(h);if(!l){if(!o){g=1;break}l=Pc(p)|0;c[t>>2]=l;c[f>>2]=l;if(!l){g=1;break}c[s>>2]=d;Yc(p,l,41216,s)|0;ic[c[r+44>>2]&63](r,g+299|0,l);g=1;break}else q=l}else q=l;g=r+48|0;l=Yb[c[g>>2]&63](r,q,n)|0;if((l|0)==0&(e|0)==0){if(m)l=0;else{l=d;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-d&1073741823}e=Pc(l+30|0)|0;if(!e){fc[c[r+52>>2]&15](r,q);g=7;break}n=e;m=n;a[m>>0]=115;a[m+1>>0]=113;a[m+2>>0]=108;a[m+3>>0]=105;n=n+4|0;a[n>>0]=116;a[n+1>>0]=101;a[n+2>>0]=51;a[n+3>>0]=95;while(1){k=l+-1|0;if((l|0)<=0)break;if((a[d+k>>0]|0)==47)break;else l=k}h=(Bc(d+l|0,41256,3)|0)==0;k=8;h=h?l+3|0:l;while(1){l=a[d+h>>0]|0;if(l<<24>>24==0|l<<24>>24==46){l=k;break}if(!(a[10368+(l&255)>>0]&2))l=k;else{a[e+k>>0]=a[9328+(l<<24>>24)>>0]|0;l=k+1|0}k=l;h=h+1|0}l=e+l|0;a[l+0>>0]=a[41264]|0;a[l+1>>0]=a[41265]|0;a[l+2>>0]=a[41266]|0;a[l+3>>0]=a[41267]|0;a[l+4>>0]=a[41268]|0;a[l+5>>0]=a[41269]|0;l=Yb[c[g>>2]&63](r,q,e)|0;g=e;h=e}else{g=0;h=n}if(!l){if(o){if(!h)l=0;else{l=h;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-h&1073741823}l=l+p|0;k=Pc(l)|0;c[t>>2]=k;c[f>>2]=k;if(k){c[s>>2]=h;c[s+4>>2]=d;Yc(l,k,41272,s)|0;ic[c[r+44>>2]&63](r,l+-1|0,k)}}fc[c[r+52>>2]&15](r,q);Sc(g);g=1;break}Sc(g);if(Yb[l&63](b,t,13776)|0){if(o){c[s>>2]=c[t>>2];c[f>>2]=Wc(41320,s)|0}Sc(c[t>>2]|0);fc[c[r+52>>2]&15](r,q);g=1;break}k=b+168|0;g=(c[k>>2]<<2)+4|0;l=ih(b,g,0)|0;if(!l)g=7;else{bw(l|0,0,g|0)|0;g=c[k>>2]|0;h=b+172|0;if((g|0)>0)gw(l|0,c[h>>2]|0,g<<2|0)|0;ig(b,c[h>>2]|0);c[h>>2]=l;g=c[k>>2]|0;c[k>>2]=g+1;c[l+(g<<2)>>2]=q;g=0}}while(0);q=Kg(b,g)|0;i=u;return q|0}function Qe(a){a=a|0;var b=0,d=0,e=0,f=0;b=Hc()|0;if(!b){f=c[2656]|0;a:do if((f|0)>0){d=c[2658]|0;e=0;while(1){b=e+1|0;if((c[d+(e<<2)>>2]|0)==(a|0)){b=e;break a}if((b|0)<(f|0))e=b;else break}}else b=0;while(0);if((b|0)==(f|0)){b=Tc(c[2658]|0,(f<<2)+4|0)|0;if(!b)b=7;else{c[2658]=b;d=c[2656]|0;c[b+(d<<2)>>2]=a;c[2656]=d+1;b=0}}else b=0}return b|0}function Re(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;e=c[2656]|0;f=c[2658]|0;d=e;while(1){if((d|0)<=0){b=0;break}d=d+-1|0;b=f+(d<<2)|0;if((c[b>>2]|0)==(a|0)){g=4;break}}if((g|0)==4){d=e+-1|0;c[2656]=d;c[b>>2]=c[f+(d<<2)>>2];b=1}return b|0}function Se(){if(!(Hc()|0)){Sc(c[2658]|0);c[2658]=0;c[2656]=0}return}function Te(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return eh(a,b,c,0,0,d,e)|0}function Ue(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Eh(a,b,c,0,d,e)|0}function Ve(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Eh(a,b,c,1,d,e)|0}function We(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))ba();n=v;q=v+4|0;c[d>>2]=0;r=(f|0)!=0;if(r)c[f>>2]=0;s=(e|0)!=0;if(s)c[e>>2]=0;l=(g|0)!=0;if(l)c[g>>2]=0;m=q+4|0;c[m>>2]=0;t=q+12|0;c[t>>2]=0;u=q+16|0;c[u>>2]=0;k=q+20|0;c[k>>2]=1;o=q+8|0;c[o>>2]=20;p=q+24|0;c[p>>2]=0;h=Pc(80)|0;c[q>>2]=h;a:do if(h){c[h>>2]=0;b=Me(a,b,20,q,g)|0;c[c[q>>2]>>2]=c[k>>2];if((b&255|0)==4){Xe((c[q>>2]|0)+4|0);b=c[m>>2]|0;if(b){if(l){Sc(c[g>>2]|0);c[n>>2]=c[m>>2];c[g>>2]=Wc(10344,n)|0;b=c[m>>2]|0}Sc(b)}b=c[p>>2]|0;c[a+52>>2]=b;break}Sc(c[m>>2]|0);if(b){Xe((c[q>>2]|0)+4|0);break}h=c[k>>2]|0;b=c[q>>2]|0;do if((c[o>>2]|0)>>>0>h>>>0){b=Tc(b,h<<2)|0;if(!b){Xe((c[q>>2]|0)+4|0);c[a+52>>2]=7;b=7;break a}else{c[q>>2]=b;break}}while(0);c[d>>2]=b+4;if(r)c[f>>2]=c[u>>2];if(s){c[e>>2]=c[t>>2];b=0}else b=0}else{c[a+52>>2]=7;b=7}while(0);i=v;return b|0}function Xe(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){b=a+-4|0;e=c[b>>2]|0;d=e;if((e|0)>1){f=1;do{e=c[a+(f+-1<<2)>>2]|0;if(e)Sc(e);f=f+1|0}while((f|0)<(d|0))}Sc(b)}return}function Ye(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Gh(a,b,c,d,0)|0}function Ze(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Gh(a,b,c,d,e)|0}function _e(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();o=p;g=p+8|0;c[g>>2]=0;h=d+324|0;f=c[h>>2]|0;if((f|0)!=0?(m=c[f+4>>2]|0,(m|0)!=0):0){n=ih(d,536,0)|0;if(!n)e=7;else{bw(n|0,0,536)|0;k=n+451|0;a[k>>0]=1;c[n>>2]=d;c[n+424>>2]=1;if(((((Hh(n,e,g)|0)==0?(l=c[n+484>>2]|0,(l|0)!=0):0)?(a[d+65>>0]|0)==0:0)?(c[l+12>>2]|0)==0:0)?(a[l+44>>0]&16)==0:0){f=m+4|0;if(!(c[f>>2]|0)){o=l+4|0;c[f>>2]=c[o>>2];l=l+38|0;b[m+38>>1]=b[l>>1]|0;b[l>>1]=0;c[o>>2]=0}c[(c[h>>2]|0)+4>>2]=0;e=0}else{e=c[g>>2]|0;c[o>>2]=e;qg(d,1,(e|0)!=0?10344:0,o);ig(d,e);e=1}a[k>>0]=0;f=c[n+8>>2]|0;if(f)Jg(f)|0;gg(d,c[n+484>>2]|0);yh(n);ig(d,n)}e=Kg(d,e)|0}else{c[d+52>>2]=21;f=c[d+236>>2]|0;do if(f){e=f+8|0;if(!(b[e>>1]&9312)){b[e>>1]=1;break}else{rg(f);break}}while(0);c[o>>2]=114865;c[o+4>>2]=10788;Zc(21,13648,o);e=21}i=p;return e|0}function $e(a){a=a|0;return d[10640+((d[a+69>>0]|0)+-1)>>0]|0|0}function af(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))ba();h=l;g=l+8|0;c[g>>2]=f;do if((e|0)==1){e=c[d+324>>2]|0;if(!e){c[h>>2]=115248;c[h+4>>2]=10788;Zc(21,13648,h);k=6;break}else{d=c[g>>2]|0;f=c[d>>2]|0;c[g>>2]=d+4;a[(c[e>>2]|0)+16>>0]=f;e=0;break}}else{c[h>>2]=115256;c[h+4>>2]=10788;ZcZc(21,13648,d);d=21}i=f;return d|0}function jf(a){a=a|0;return c[a+12>>2]|0}function kf(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[h>>2]|0;f=(b|0)>0;if(f){e=c[a+16>>2]|0;g=0;do{d=c[e+(g<<4)+4>>2]|0;if(d)c[(c[d+4>>2]|0)+4>>2]=c[d>>2];g=g+1|0}while((g|0)!=(b|0));if(f){f=a+16|0;e=0;do{d=c[(c[f>>2]|0)+(e<<4)+4>>2]|0;if(d){_b[c[8744+152>>2]&31](c[(c[(c[c[d+4>>2]>>2]|0)+204>>2]|0)+40>>2]|0);b=c[h>>2]|0}e=e+1|0}while((e|0)<(b|0))}}return 0}function lf(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l;c[h>>2]=e;a:do if((d|0)!=1001){e=0;while(1){if((c[10936+(e<<3)>>2]|0)==(d|0))break;e=e+1|0;if(e>>>0>=2){f=1;break a}}g=c[h>>2]|0;d=c[g>>2]|0;c[h>>2]=g+4;g=c[h>>2]|0;k=c[g>>2]|0;c[h>>2]=g+4;h=a+24|0;g=c[h>>2]|0;if((d|0)<=0)if(!d){d=g&~c[10940+(e<<3)>>2];c[h>>2]=d}else d=g;else{d=c[10940+(e<<3)>>2]|g;c[h>>2]=d}if((g|0)!=(d|0)?(f=c[a+4>>2]|0,(f|0)!=0):0)do{d=f+88|0;b[d>>1]=b[d>>1]|8;f=c[f+52>>2]|0}while((f|0)!=0);if(!k)f=0;else{c[k>>2]=(c[10940+(e<<3)>>2]&c[h>>2]|0)!=0&1;f=0}}else{g=c[h>>2]|0;d=c[g>>2]|0;c[h>>2]=g+4;g=c[h>>2]|0;e=c[g>>2]|0;c[h>>2]=g+4;g=c[h>>2]|0;f=c[g>>2]|0;c[h>>2]=g+4;f=Jh(a,d,e,f)|0}while(0);i=l;return f|0}function mf(a){a=a|0;a=a+32|0;C=c[a+4>>2]|0;return c[a>>2]|0}function nf(a){a=a|0;return c[a+80>>2]|0}function of(a){a=a|0;return c[a+84>>2]|0}function pf(a){a=a|0;return Kh(a,0)|0}function qf(a){a=a|0;return Kh(a,1)|0}function rf(a,b,d){a=a|0;b=b|0;d=d|0;c[a+444>>2]=b;c[a+448>>2]=d;c[a+452>>2]=0;c[a+492>>2]=0;return 0}function sf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=(b|0)>0;c[a+292>>2]=f?d:0;c[a+300>>2]=f?b:0;c[a+296>>2]=f?e:0;return}function tf(a,b){a=a|0;b=b|0;var d=0;d=(b|0)>0;c[a+444>>2]=d?74:0;c[a+448>>2]=d?a:0;c[a+452>>2]=0;c[a+492>>2]=d?b:0;return 0}function uf(a){a=a|0;c[a+240>>2]=1;return}function vf(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return Kg(a,Mh(a,b,c,d,e,f,g,h,0)|0)|0}function wf(b,d,e,f,g,h,i,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0;do if(k){l=ih(b,12,0)|0;if(!l){_b[k&31](g);f=1;break}m=l;n=m;a[n>>0]=0;a[n+1>>0]=0;a[n+2>>0]=0;a[n+3>>0]=0;m=m+4|0;a[m>>0]=0;a[m+1>>0]=0;a[m+2>>0]=0;a[m+3>>0]=0;c[l+4>>2]=k;c[l+8>>2]=g;f=Mh(b,d,e,f,g,h,i,j,l)|0;if(!(c[l>>2]|0)){_b[k&31](g);ig(b,l)}}else f=Mh(b,d,e,f,g,h,i,j,0)|0;while(0);return Kg(b,f)|0}function xf(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;b=Nh(a,b,-1)|0;d=Mh(a,b,c,d,e,f,g,h,0)|0;ig(a,b);return Kg(a,d)|0}function yf(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if(!c)e=0;else{e=c;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;e=e-c&1073741823}if(!(Oh(b,c,e,d,1,0)|0))e=Mh(b,c,d,1,0,57,0,0,0)|0;else e=0;return Kg(b,e)|0}function zf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+180|0;e=c[f>>2]|0;c[a+176>>2]=b;c[f>>2]=d;return e|0}function Af(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+188|0;e=c[f>>2]|0;c[a+184>>2]=b;c[f>>2]=d;return e|0}function Bf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+192|0;e=c[f>>2]|0;c[a+196>>2]=b;c[f>>2]=d;return e|0}function Cf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+208|0;e=c[f>>2]|0;c[a+212>>2]=b;c[f>>2]=d;return e|0}function Df(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+200|0;e=c[f>>2]|0;c[a+204>>2]=b;c[f>>2]=d;return e|0}function Ef(a,b){a=a|0;b=b|0;var d=0;if((b|0)>0)d=21;else{b=0;d=0}c[a+216>>2]=d;c[a+220>>2]=b;return 0}function Ff(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+220|0;e=c[f>>2]|0;c[a+216>>2]=b;c[f>>2]=d;return e|0}function Gf(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();k=n;if(g)c[g>>2]=-1;if(h)c[h>>2]=-1;if(f>>>0>3)e=21;else{if((e|0)!=0?(a[e>>0]|0)!=0:0){l=Rh(d,e)|0;if((l|0)<0){c[k>>2]=e;qg(d,1,10952,k);e=1}else m=10}else{l=10;m=10}do if((m|0)==10){c[d+452>>2]=0;e=Sh(d,l,f,g,h)|0;c[d+52>>2]=e;k=c[d+236>>2]|0;if(k){l=k+8|0;if(!(b[l>>1]&9312)){b[l>>1]=1;break}else{rg(k);break}}}while(0);e=Kg(d,e)|0}i=n;return e|0}function Hf(a,b){a=a|0;b=b|0;return Gf(a,b,0,0,0)|0}function If(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;do if(b){d=c[b+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){c[g>>2]=15248;Zc(21,15256,g);d=11008;break}h=b+65|0;if(!(a[h>>0]|0)){f=b+236|0;d=Og(c[f>>2]|0,2)|0;if(!d){e=c[b+52>>2]|0;if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[15488+(d<<2)>>2]|0}else d=16344;qg(b,e,d,g);d=Og(c[f>>2]|0,2)|0}a[h>>0]=0}else d=10976}else d=10976;while(0);i=k;return d|0}function Jf(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;do if(b){f=c[b+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[d>>2]=15248;Zc(21,15256,d);c[d>>2]=129704;c[d+4>>2]=10788;Zc(21,13648,d);b=21;break}if(!(a[b+65>>0]|0))b=c[b+56>>2]&c[b+52>>2];else b=7}else b=7;while(0);i=e;return b|0}function Kf(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;do if(b){f=c[b+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[d>>2]=15248;Zc(21,15256,d);c[d>>2]=129713;c[d+4>>2]=10788;Zc-n|0;if(!((e|0)<2|K<<24>>24!=0)){Rk(b,e+-1|0,32);e=0}f=p&255;Rk(b,n,f)}else{f=p&255;e=J}a[V>>0]=f;v=V;o=1;p=0;break}case 7:case 6:{if(M)n=Qk(m)|0;else{F=c[g>>2]|0;n=c[F>>2]|0;c[g>>2]=F+4}if(!n){f=10360;p=0}else{f=n;p=G<<24>>24!=7|M?0:n}if((D|0)>-1){if((D|0)>0)n=0;else{v=f;o=0;e=J;break c}while(1){o=n+1|0;if(!(a[f+n>>0]|0)){v=f;o=n;e=J;break c}if((o|0)<(D|0))n=o;else{v=f;e=J;break}}}else{if(!f){v=0;o=0;e=J;break c}else n=f;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;v=f;o=n-f&1073741823;e=J;break c}break}case 15:case 11:case 10:{z=G<<24>>24==15?34:39;if(P){F=c[g>>2]|0;p=c[F>>2]|0;c[g>>2]=F+4}else p=Qk(m)|0;v=(p|0)==0;if(v)p=G<<24>>24==11?20304:48992;e:do if(!D){y=0;o=0}else{s=z&255;n=0;e=D;o=0;while(1){f=a[p+n>>0]|0;if(!(f<<24>>24)){y=n;break e}o=((f<<24>>24|0)==(s|0)&1)+o|0;n=n+1|0;e=e+-1|0;if(!e){y=n;break}}}while(0);w=G<<24>>24==11&(v^1);n=((w&1)<<1|1)+y+o|0;if((n|0)>70){o=mg(n,((n|0)<0)<<31>>31)|0;if(!o){R=197;break a}else{v=o;x=o}}else{v=V;x=0}if(w){a[v>>0]=z;n=1}else n=0;if((y|0)>0){s=z&255;e=0;do{o=a[p+e>>0]|0;f=n+1|0;a[v+n>>0]=o;if((o<<24>>24|0)==(s|0)){a[v+f>>0]=o;n=n+2|0}else n=f;e=e+1|0}while((e|0)!=(y|0))}if(w){a[v+n>>0]=z;n=n+1|0}a[v+n>>0]=0;o=n;e=J;p=x;break}case 12:{G=c[g>>2]|0;e=c[G>>2]|0;c[g>>2]=G+4;if((e|0)!=0?(U=c[e+4>>2]|0,(U|0)!=0):0){Ok(b,c[e>>2]|0,U);v=f;o=0;e=0;p=0}else{v=f;o=0;e=0;p=0}break}default:break a}while(0);if((R|0)==50){R=0;do if(!(a[I+2>>0]&1)){if(M){f=Pk(m)|0;s=C;B=0;break}if(!(p<<24>>24)){s=c[g>>2]|0;f=c[s>>2]|0;c[g>>2]=s+4;s=0;B=0;break}else{B=c[g>>2]|0;s=B;f=c[s>>2]|0;s=c[s+4>>2]|0;c[g>>2]=B+8;B=0;break}}else{do if(!M)if(!(p<<24>>24)){o=c[g>>2]|0;p=c[o>>2]|0;c[g>>2]=o+4;o=((p|0)<0)<<31>>31;break}else{F=c[g>>2]|0;o=F;p=c[o>>2]|0;o=c[o+4>>2]|0;c[g>>2]=F+8;break}else{p=Pk(m)|0;o=C}while(0);if((o|0)<0){f=$v(0,0,p|0,o|0)|0;s=C;B=45;break}if(!(x<<24>>24)){f=p;s=o;B=v<<24>>24==0?0:32}else{f=p;s=o;B=43}}while(0);A=(f|0)==0&(s|0)==0;if(!(y<<24>>24))x=D;else{x=J-(B<<24>>24!=0&1)|0;x=(D|0)<(x|0)?x:D}if((x|0)>=60){p=x+10|0;o=mg(p,((p|0)<0)<<31>>31)|0;if(!o){R=69;break}else{e=p;p=o;n=o}}else{e=70;p=0;n=V}y=n+(e+-1)|0;if(G<<24>>24==16){o=qw(f|0,s|0,10,0)|0;if(!(o>>>0<=3?(G=pw(f|0,s|0,10,0)|0,G=qw(G|0,C|0,10,0)|0,!((G|0)==1&(C|0)==0)):0))o=0;G=o<<1;a[n+(e+-2)>>0]=a[48896+(G|1)>>0]|0;o=n+(e+-3)|0;a[o>>0]=a[48896+G>>0]|0}else o=y;e=d[I+4>>0]|0;v=d[I+1>>0]|0;while(1){G=qw(f|0,s|0,v|0,0)|0;n=o+-1|0;a[n>>0]=a[48912+(G+e)>>0]|0;f=pw(f|0,s|0,v|0,0)|0;s=C;if((f|0)==0&(s|0)==0)break;else o=n}f=x-y+n|0;if((f|0)>0){e=o;o=n;while(1){n=e+-2|0;a[n>>0]=48;f=f+-1|0;if((f|0)<=0)break;else{e=o;o=n}}}if(B<<24>>24){n=o+-2|0;a[n>>0]=B}if((!(A|z<<24>>24==0)?(S=a[I+5>>0]|0,S<<24>>24!=0):0)?(T=48952+(S&255)|0,!(S<<24>>24==3|S<<24>>24==6)):0){f=a[T>>0]|0;o=T;do{n=n+-1|0;a[n>>0]=f;o=o+1|0;f=a[o>>0]|0}while(f<<24>>24!=0)}v=n;o=y-n|0;e=J}n=e-o|0;f=(n|0)<1;if(!(f|K<<24>>24!=0))Rk(b,n,32);Ok(b,v,o);if(!(f|K<<24>>24==0))Rk(b,n,32);if(p)Sc(p);f=l+1|0;l=v}if((R|0)==10)Ok(b,48744,1);else if((R|0)==69){a[b+25>>0]=1;c[b+16>>2]=0}else if((R|0)==124){a[b+25>>0]=1;c[b+16>>2]=0}else if((R|0)==197){a[b+25>>0]=1;c[b+16>>2]=0}i=Y;return}function pg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;f=b+8|0;d=c[f>>2]|0;do if(((d|0)!=0?(h=b+12|0,a[d+(c[h>>2]|0)>>0]=0,e=a[b+24>>0]|0,e<<24>>24!=0):0)?(g=b+4|0,(c[f>>2]|0)==(c[g>>2]|0)):0){if(e<<24>>24==1){d=(c[h>>2]|0)+1|0;d=ih(c[b>>2]|0,d,((d|0)<0)<<31>>31)|0}else d=Pc((c[h>>2]|0)+1|0)|0;c[f>>2]=d;if(!d){a[b+25>>0]=1;c[b+16>>2]=0;break}else{gw(d|0,c[g>>2]|0,(c[h>>2]|0)+1|0)|0;break}}while(0);return c[f>>2]|0}function qg(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;h=d+52|0;c[h>>2]=e;a:do if(!f){c[h>>2]=e;e=c[d+236>>2]|0;if(e){h=e+8|0;if(!(b[h>>1]&9312)){b[h>>1]=1;break}else{rg(e);break}}}else{l=d+236|0;do if(!(c[l>>2]|0)){h=ih(d,40,0)|0;if(!h){c[l>>2]=h;break a}else{e=h+0|0;k=e+40|0;do{a[e>>0]=0;e=e+1|0}while((e|0)<(k|0));b[h+8>>1]=1;c[h+32>>2]=d;c[l>>2]=h;break}}while(0);c[m>>2]=g;h=Sk(d,f,m)|0;e=c[l>>2]|0;if(e)Tg(e,h,-1,1,75)|0}while(0);i=n;return}function rg(a){a=a|0;var d=0,e=0;e=a+8|0;d=b[e>>1]|0;if(d&8192){Uk(a,c[a>>2]|0)|0;d=b[e>>1]|0}d=d&65535;do if(!(d&1024)){if(d&32){Vk(c[a>>2]|0);break}if(d&64){a=c[a>>2]|0;d=(c[a>>2]|0)+180|0;c[a+4>>2]=c[d>>2];c[d>>2]=a}}else _b[c[a+36>>2]&31](c[a+16>>2]|0);while(0);b[e>>1]=1;return}function sg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();g=k;e=Rh(b,d)|0;do if((e|0)==1){f=ih(a,536,0)|0;if(!f){qg(a,7,15776,g);e=0;break}bw(f|0,0,536)|0;c[f>>2]=b;if(!(Wk(f)|0)){ig(a,c[f+4>>2]|0);yh(f);ig(a,f);h=7;break}else{b=c[f+12>>2]|0;e=f+4|0;c[g>>2]=c[e>>2];qg(a,b,10344,g);ig(a,c[e>>2]|0);yh(f);ig(a,f);e=0;break}}else h=7;while(0);do if((h|0)==7)if((e|0)<0){c[g>>2]=d;qg(a,1,47448,g);e=0;break}else{e=c[(c[b+16>>2]|0)+(e<<4)+4>>2]|0;break}while(0);i=k;return e|0}function tg(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;k=c[a+4>>2]|0;c[k+4>>2]=c[a>>2];j=k+22|0;if(!(b[j>>1]&2)){if((f|0)<0)f=(c[k+32>>2]|0)-(c[k+36>>2]|0)|0;if(((d+-512|0)>>>0<65025?(d+-1&d|0)==0:0)?(c[k+32>>2]=d,h=k+80|0,i=c[h>>2]|0,(i|0)!=0):0){a=i+-4|0;c[h>>2]=a;Xk(a);c[h>>2]=0}h=k+32|0;a=Yk(c[k>>2]|0,h,f)|0;c[k+36>>2]=(c[h>>2]|0)-(f&65535);if(g)b[j>>1]=e[j>>1]|0|2}else a=8;return a|0}function ug(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,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;Q=i;i=i+16|0;if((i|0)>=(j|0))ba();K=Q;J=Q+12|0;I=Q+8|0;O=c[f+4>>2]|0;F=O+4|0;c[F>>2]=c[f>>2];L=f+8|0;l=a[L>>0]|0;do if(l<<24>>24!=2?(M=(g|0)!=0,l<<24>>24!=1|M):0){N=O+22|0;l=b[N>>1]|0;if(!((l&1)!=0&M)){if(M)if((a[O+20>>0]|0)!=2&(l&64)==0)P=8;else P=7;else if(!(l&64))P=8;else P=7;a:do if((P|0)==7){h=c[O+76>>2]|0;P=12}else if(((P|0)==8?(g|0)>1:0)?(k=c[O+72>>2]|0,(k|0)!=0):0)do{l=c[k>>2]|0;if((l|0)!=(f|0)){h=l;P=12;break a}k=c[k+12>>2]|0}while((k|0)!=0);while(0);if((P|0)==12?(c[h>>2]|0)!=0:0){h=262;break}h=Zk(f,1,1)|0;if(!h){l=e[N>>1]|0;b[N>>1]=l&65527;H=O+44|0;if(!(c[H>>2]|0))b[N>>1]=l|8;B=O+12|0;r=O+32|0;s=O+36|0;t=O+17|0;u=O+18|0;v=O+80|0;w=O+24|0;x=O+26|0;y=O+28|0;z=O+30|0;A=O+21|0;C=O+20|0;D=(g|0)>1;h=0;b:while(1){c:do if(!(c[B>>2]|0)){h=_k(c[O>>2]|0)|0;if(!h){h=$k(O,1,J,0)|0;if(!h){q=c[J>>2]|0;n=c[q+56>>2]|0;l=d[n+29>>0]<<16|d[n+28>>0]<<24|d[n+30>>0]<<8|d[n+31>>0];m=c[O>>2]|0;o=c[m+24>>2]|0;if((l|0)!=0?(Vv(n+24|0,n+92|0,4)|0)==0:0)p=l;else p=o;d:do if((p|0)>0){e:do if(!(Vv(n,44680,16)|0)){if((d[n+18>>0]|0)>2)b[N>>1]=e[N>>1]|1;l=a[n+19>>0]|0;if((l&255)<=2){do if(l<<24>>24==2){if(b[N>>1]&16)break;c[I>>2]=0;h=al(m,I)|0;if(h){P=48;break e}if(c[I>>2]|0)break;if(!q){h=0;continue b}xg(c[q+68>>2]|0);h=0;continue b}while(0);if(Vv(n+21|0,47408,3)|0){h=26;P=48;break}k=d[n+17>>0]<<16|d[n+16>>0]<<8;if((k+16777215&k|0)!=0|k>>>0>65536|k>>>0<257){h=26;P=48;break}m=d[n+20>>0]|0;l=k-m|0;if((k|0)==(c[r>>2]|0)){if((p|0)>(o|0)?(c[(c[F>>2]|0)+24>>2]&65536|0)==0:0){c[K>>2]=55672;c[K+4>>2]=10788;ZcZc(11,13600,r);k=11}else{a[e+23>>0]=1;h=c[e+40>>2]|0;do if(!h){p=e+204|0;h=c[p>>2]|0;h=Yb[c[8744+132>>2]&63](c[h+40>>2]|0,f,d[h+29>>0]&3)|0;if(!h){m=c[p>>2]|0;if((a[m+29>>0]|0)!=2){l=m+8|0;h=c[l>>2]|0;b:do if(!h)u=11;else{while(1){if((b[h+26>>1]|0)==0?(b[h+24>>1]&4)==0:0)break;h=c[h+36>>2]|0;if(!h){u=11;break b}}c[l>>2]=h;o=h;u=14}while(0);c:do if((u|0)==11?(c[l>>2]=0,n=c[m+4>>2]|0,(n|0)!=0):0){h=n;do{if(!(b[h+26>>1]|0)){o=h;u=14;break c}h=c[h+36>>2]|0}while((h|0)!=0)}while(0);if((u|0)==14?(k=nc[c[m+32>>2]&127](c[m+36>>2]|0,o)|0,!((k|0)==0|(k|0)==5)):0)break;k=Yb[c[8744+132>>2]&63](c[m+40>>2]|0,f,2)|0;if(!k){k=7;break}}else k=0}else k=h;m=el(c[p>>2]|0,f,k)|0;c[g>>2]=m;if(!m)k=7;else{h=m+16|0;k=(q|0)!=0;if(!((c[h>>2]|0)==0|k)){k=e+184|0;c[k>>2]=(c[k>>2]|0)+1;k=0;break a}c[h>>2]=e;do if((f|0)>=0?(s=e+152|0,(((c[2514]|0)/(c[s>>2]|0)|0)+1|0)!=(f|0)):0){if(((a[e+15>>0]|0)==0?!((c[e+24>>2]|0)>>>0<f>>>0|k):0)?(c[c[e+60>>2]>>2]|0)!=0:0){k=c[e+208>>2]|0;if(!k)k=0;else{k=gl(k,f,t)|0;if(k)break;k=c[t>>2]|0}s=e+188|0;c[s>>2]=(c[s>>2]|0)+1;k=hl(m,k)|0;if(!k){k=0;break a}else break}if((c[e+156>>2]|0)>>>0<f>>>0)k=13;else{if(k){k=c[3164]|0;if(k)jc[k&3]();if((c[e+28>>2]|0)>>>0>=f>>>0)Zh(c[e+56>>2]|0,f)|0;fl(e,f)|0;k=c[3166]|0;if(k)jc[k&3]()}bw(c[m+4>>2]|0,0,c[s>>2]|0)|0;k=0;break a}}else u=21;while(0);if((u|0)==21){c[r>>2]=46945;c[r+4>>2]=10788;Zc(11,13600,r);k=11}il(m)}}else k=h;while(0);if((c[e+120>>2]|0)==0?(c[(c[e+204>>2]|0)+12>>2]|0)==0:0)jl(e);c[g>>2]=0}while(0);i=v;return k|0}function wg(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();v=w;t=b+4|0;p=c[(c[t>>2]|0)+4>>2]|0;u=c[p>>2]|0;s=b+24|0;o=c[(c[(c[s>>2]|0)+4>>2]|0)+32>>2]|0;p=c[p+32>>2]|0;q=(o|0)<(p|0)?o:p;r=((o|0)<0)<<31>>31;m=ow(o|0,r|0,d|0,0)|0;n=C;if((o|0)==(p|0))b=0;else b=(a[u+15>>0]|0)==0?0:8;a:do if((b|0)==0&(o|0)>0){d=$v(m|0,n|0,o|0,r|0)|0;l=((p|0)<0)<<31>>31;k=(f|0)==0;h=C;b=p;while(1){c[v>>2]=0;f=mw(d|0,h|0,p|0,l|0)|0;if((f|0)!=(((c[2514]|0)>>>0)/(b>>>0)|0|0)){b=vg(u,f+1|0,v,0)|0;g=c[v>>2]|0;if(!b){b=Cg(g)|0;if(!b){x=nw(d|0,h|0,o|0,r|0)|0;f=c[g+4>>2]|0;b=nw(d|0,h|0,p|0,l|0)|0;gw(f+b|0,e+x|0,q|0)|0;a[c[g+8>>2]>>0]=0;if((d|0)==0&(h|0)==0&k){x=c[(c[(c[s>>2]|0)+4>>2]|0)+44>>2]|0;a[f+(b+28)>>0]=x>>>24;a[f+(b+29)>>0]=x>>>16;a[f+(b+30)>>0]=x>>>8;a[f+(b+31)>>0]=x;b=0}else b=0}}if(g)xg(g)}else b=0;d=fw(d|0,h|0,p|0,l|0)|0;f=C;if(!((b|0)==0&((f|0)<(n|0)|(f|0)==(n|0)&d>>>0<m>>>0)))break a;h=f;b=c[(c[(c[t>>2]|0)+4>>2]|0)+32>>2]|0}}while(0);i=w;return b|0}function xg(a){a=a|0;var d=0,e=0,f=0;d=c[a+16>>2]|0;if(!(b[a+24>>1]&64)){kl(a);a=c[d+120>>2]|0}else{f=d+120|0;e=(c[f>>2]|0)+-1|0;c[f>>2]=e;f=d+136|0;c[a+12>>2]=c[f>>2];c[f>>2]=a;a=e}if((a|0)==0?(c[(c[d+204>>2]|0)+12>>2]|0)==0:0)jl(d);return}function yg(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;i=d+44|0;if(!(c[i>>2]|0)){j=c[d+12>>2]|0;k=c[j+56>>2]|0;f=Cg(c[j+68>>2]|0)|0;if(!f){f=k+0|0;g=44680|0;h=f+16|0;do{a[f>>0]=a[g>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=d+32|0;a[k+16>>0]=(c[f>>2]|0)>>>8;a[k+17>>0]=(c[f>>2]|0)>>>16;a[k+18>>0]=1;a[k+19>>0]=1;a[k+20>>0]=(c[f>>2]|0)-(c[d+36>>2]|0);a[k+21>>0]=64;a[k+22>>0]=32;a[k+23>>0]=32;f=k+24|0;h=f+76|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(h|0));ll(j,13);f=d+22|0;b[f>>1]=e[f>>1]|0|2;f=a[d+17>>0]|0;a[k+52>>0]=0;a[k+53>>0]=0;a[k+54>>0]=0;a[k+55>>0]=f;f=a[d+18>>0]|0;a[k+64>>0]=0;a[k+65>>0]=0;a[k+66>>0]=0;a[k+67>>0]=f;c[i>>2]=1;a[k+31>>0]=1;f=0}}else f=0;return f|0}function zg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=c[b+4>>2]|0;c[g+4>>2]=c[b>>2];b=c[g+12>>2]|0;f=c[b+56>>2]|0;b=Cg(c[b+68>>2]|0)|0;if((b|0)==0?(i=d<<2,a[f+(i+36)>>0]=e>>>24,a[f+(i+37)>>0]=e>>>16,a[f+(i+38)>>0]=e>>>8,h=e&255,a[f+(i+39)>>0]=h,(d|0)==7):0)a[g+18>>0]=h;return b|0}function Ag(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[h>>2]|0;d=(b|0)>0;if(d){e=c[a+16>>2]|0;g=0;do{f=c[e+(g<<4)+4>>2]|0;if(f)c[(c[f+4>>2]|0)+4>>2]=c[f>>2];g=g+1|0}while((g|0)!=(b|0));if(d){g=a+16|0;f=0;do{d=c[(c[g>>2]|0)+(f<<4)+12>>2]|0;if(d){ml(d);b=c[h>>2]|0}f=f+1|0}while((f|0)<(b|0))}}b=a+24|0;c[b>>2]=c[b>>2]&-3;nl(a);ol(a);return}function Bg(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[d+4>>2]|0;k=h+22|0;g=e[k>>1]|0;b[k>>1]=(f|0)==1?g|16:g&65519;g=ug(d,0)|0;do if(!g){h=h+12|0;i=c[(c[h>>2]|0)+56>>2]|0;j=i+18|0;g=a[j>>0]|0;f=f&255;if(g<<24>>24==f<<24>>24?(a[i+19>>0]|0)==g<<24>>24:0){g=0;break}g=ug(d,2)|0;if(!g){g=Cg(c[(c[h>>2]|0)+68>>2]|0)|0;if(!g){a[j>>0]=f;a[i+19>>0]=f;g=0}}}while(0);b[k>>1]=e[k>>1]&65519;return g|0}function Cg(a){a=a|0;var b=0;b=c[a+16>>2]|0;if((c[b+148>>2]|0)>>>0>(c[b+152>>2]|0)>>>0)a=pl(a)|0;else a=ql(a)|0;return a|0}function Dg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+32|0;if((i|0)>=(j|0))ba();s=y+16|0;t=y;k=y+12|0;m=y+8|0;g=c[b+40>>2]|0;a:do if(!g){x=b+16|0;if((d[x>>0]|0)>=3){b:do if(!(a[b+15>>0]|0)){if(c[b+208>>2]|0){l=b+204|0;h=rl(c[l>>2]|0)|0;c[m>>2]=0;if(!h){g=vg(b,1,m,0)|0;h=c[m>>2]|0;c[h+12>>2]=0;if(h){k=h;w=9}}else{k=0;w=9}if((w|0)==9){g=sl(b,h,c[b+24>>2]|0,1)|0;if(k)xg(k)}if(g)break a;h=c[l>>2]|0;g=c[h>>2]|0;if(!g)break;while(1){tl(g);g=c[h>>2]|0;if(!g)break b}}l=b+18|0;if((a[l>>0]|0)==0?(c[b+24>>2]|0)!=0:0){g=vg(b,1,k,0)|0;k=c[k>>2]|0;if(!g){g=Cg(k)|0;if(!g){ul(k);a[l>>0]=1;g=0}}if(k)xg(k);if(g)break a}if(((e|0)!=0?(a[b+5>>0]|0)!=4:0)?(v=b+64|0,r=c[v>>2]|0,(c[r>>2]|0)!=0):0){a[b+19>>0]=1;k=a[e>>0]|0;if(!(k<<24>>24)){l=0;h=0}else{l=0;h=0;do{l=(k<<24>>24)+l|0;h=h+1|0;k=a[e+h>>0]|0}while(k<<24>>24!=0)}q=b+72|0;g=q;k=c[g>>2]|0;g=c[g+4>>2]|0;if(!(a[b+8>>0]|0))m=g;else{if((k|0)==0&(g|0)==0){k=0;g=0}else{g=fw(k|0,g|0,-1,-1)|0;k=c[b+148>>2]|0;g=mw(g|0,C|0,k|0,0)|0;g=fw(g|0,C|0,1,0)|0;k=ow(g|0,C|0,k|0,0)|0;g=C}m=q;c[m>>2]=k;c[m+4>>2]=g;m=g}g=((c[2514]|0)/(c[b+152>>2]|0)|0)+1|0;a[s>>0]=g>>>24;n=s+1|0;a[n>>0]=g>>>16;o=s+2|0;a[o>>0]=g>>>8;p=s+3|0;a[p>>0]=g;g=pc[c[(c[r>>2]|0)+12>>2]&31](r,s,4,k,m)|0;if(g)break a;g=c[v>>2]|0;m=fw(k|0,m|0,4,0)|0;k=C;g=pc[c[(c[g>>2]|0)+12>>2]&31](g,e,h,m,k)|0;if(g)break a;g=c[v>>2]|0;m=fw(m|0,k|0,h|0,((h|0)<0)<<31>>31|0)|0;k=C;a[s>>0]=h>>>24;a[n>>0]=h>>>16;a[o>>0]=h>>>8;a[p>>0]=h;g=pc[c[(c[g>>2]|0)+12>>2]&31](g,s,4,m,k)|0;if(g)break a;r=c[v>>2]|0;g=fw(m|0,k|0,4,0)|0;a[s>>0]=l>>>24;a[n>>0]=l>>>16;a[o>>0]=l>>>8;a[p>>0]=l;g=pc[c[(c[r>>2]|0)+12>>2]&31](r,s,4,g,C)|0;if(g)break a;r=c[v>>2]|0;g=fw(m|0,k|0,8,0)|0;g=pc[c[(c[r>>2]|0)+12>>2]&31](r,14808,8,g,C)|0;if(g)break a;r=h+20|0;g=q;r=fw(c[g>>2]|0,c[g+4>>2]|0,r|0,((r|0)<0)<<31>>31|0)|0;g=q;c[g>>2]=r;c[g+4>>2]=C;g=c[v>>2]|0;g=nc[c[(c[g>>2]|0)+24>>2]&127](g,t)|0;if(g)break a;r=t;p=c[r+4>>2]|0;g=q;h=c[g>>2]|0;g=c[g+4>>2]|0;if((p|0)>(g|0)|((p|0)==(g|0)?(c[r>>2]|0)>>>0>h>>>0:0)?(u=c[v>>2]|0,u=Yb[c[(c[u>>2]|0)+16>>2]&63](u,h,g)|0,(u|0)!=0):0){g=u;break a}}g=vl(b,0)|0;if(g)break a;h=b+204|0;g=wl(b,rl(c[h>>2]|0)|0)|0;if(g)break a;g=c[h>>2]|0;h=c[g>>2]|0;if(h)do{tl(h);h=c[g>>2]|0}while((h|0)!=0);h=c[b+24>>2]|0;if(h>>>0>(c[b+32>>2]|0)>>>0){g=xl(b,h-((h|0)==(((c[2514]|0)/(c[b+152>>2]|0)|0)+1|0)&1)|0)|0;if(!(g|f))w=46}else if(!f)w=46;else break;if((w|0)==46)g=Eg(b,e)|0;if(g)break a}else{g=c[b+88>>2]|0;if(g)do{c[g+16>>2]=1;g=c[g+44>>2]|0}while((g|0)!=0)}while(0);if(!(c[b+208>>2]|0)){a[x>>0]=5;g=0}else g=0}else g=0}while(0);i=y;return g|0}function Eg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0;g=b+60|0;h=c[g>>2]|0;i=c[h>>2]|0;if(!((i|0)!=0?(f=Yb[c[i+40>>2]&63](h,21,e)|0,!((f|0)==0|(f|0)==12)):0))if(!(a[b+7>>0]|0)){f=c[g>>2]|0;f=nc[c[(c[f>>2]|0)+20>>2]&127](f,d[b+11>>0]|0)|0}else f=0;return f|0}function Fg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;g=a[b+8>>0]|0;do if(!(g<<24>>24))f=0;else{k=c[b+4>>2]|0;c[k+4>>2]=c[b>>2];if(g<<24>>24==2){h=c[k>>2]|0;i=h+40|0;g=c[i>>2]|0;do if(!g){g=h+16|0;if(((a[g>>0]|0)==2?(a[h+4>>0]|0)!=0:0)?(a[h+5>>0]|0)==1:0){a[g>>0]=1;break}f=h+100|0;c[f>>2]=(c[f>>2]|0)+1;f=yl(h,d[h+19>>0]|0,1)|0;h=f&255;if((h|0)==10|(h|0)==13){c[i>>2]=f;a[g>>0]=6;j=10}else j=10}else{f=g;j=10}while(0);if((j|0)==10?(f|0)!=0&(e|0)==0:0)break;f=b+20|0;c[f>>2]=(c[f>>2]|0)+-1;a[k+20>>0]=1;f=k+60|0;ai(c[f>>2]|0);c[f>>2]=0}zl(b);f=0}while(0);return f|0}function Gg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();h=q;a:do if((a[b+8>>0]|0)==2){p=c[b+4>>2]|0;c[p+4>>2]=c[b>>2];do if(a[p+17>>0]|0){o=c[p>>2]|0;f=p+8|0;b=c[f>>2]|0;if(b)do{n=b+72|0;a[n>>0]=d[n>>0]&251;b=c[b+8>>2]|0}while((b|0)!=0);if(!(a[p+18>>0]|0)){n=p+44|0;g=c[n>>2]|0;if(g>>>0<2)b=0;else{b=g+-2|0;b=b-((b>>>0)%(((((c[p+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;b=((b+1|0)==(((c[2514]|0)>>>0)/((c[p+32>>2]|0)>>>0)|0|0)?3:2)+b|0}if((b|0)!=(g|0)?(g|0)!=((((c[2514]|0)>>>0)/((c[p+32>>2]|0)>>>0)|0)+1|0):0){k=p+12|0;l=c[(c[k>>2]|0)+56>>2]|0;l=d[l+37>>0]<<16|d[l+36>>0]<<24|d[l+38>>0]<<8|d[l+39>>0];m=Al(p,g,l)|0;if(m>>>0>g>>>0){c[h>>2]=56396;c[h+4>>2]=10788;Zc(11,13600,h);b=11;break a}b:do if(m>>>0<g>>>0){b=c[f>>2]|0;c:do if(b){while(1){if(b)break;b=c[2]|0;if(!b)break c}b=Bl(b,0,0)|0;if(b){f=0;break b}}while(0);do{b=Cl(p,m,g,1)|0;g=g+-1|0;f=(b|0)==0}while(g>>>0>m>>>0&f)}else{f=1;b=0}while(0);if(((b|0)==101|f)&(l|0)!=0){b=Cg(c[(c[k>>2]|0)+68>>2]|0)|0;l=(c[(c[k>>2]|0)+56>>2]|0)+32|0;a[l>>0]=0;a[l+1>>0]=0;a[l+2>>0]=0;a[l+3>>0]=0;l=(c[(c[k>>2]|0)+56>>2]|0)+36|0;a[l>>0]=0;a[l+1>>0]=0;a[l+2>>0]=0;a[l+3>>0]=0;l=c[(c[k>>2]|0)+56>>2]|0;a[l+28>>0]=m>>>24;a[l+29>>0]=m>>>16;a[l+30>>0]=m>>>8;a[l+31>>0]=m;a[p+19>>0]=1;c[n>>2]=m}if(!b)break;Dl(o)|0;break a}c[h>>2]=56391;c[h+4>>2]=10788;ZcZc(21,47360,b);a=1}else a=0;else{Zc(21,47320,b);a=1}i=d;return a|0}function Zg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0.0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if((c[a>>2]|0)>1?(d=c[a+72>>2]|0,(d|0)!=0):0)d=nc[d&127](a,b)|0;else{d=nc[c[a+64>>2]&127](a,e)|0;g=+h[e>>3]*864.0e5;a=+N(g)>=1.0?(g>0.0?~~+$(+M(g/4294967296.0),4294967295.0)>>>0:~~+Z((g-+(~~g>>>0))/4294967296.0)>>>0):0;c[b>>2]=~~g>>>0;c[b+4>>2]=a}i=f;return d|0}function _g(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:do if((d|0)!=0&(e|0)!=0){i=d+(e*40|0)|0;j=c[d+32>>2]|0;g=j+65|0;h=a[g>>0]|0;if(c[j+520>>2]|0){e=d;while(1){if(c[e+24>>2]|0)ig(j,c[e+20>>2]|0);e=e+40|0;if(e>>>0>=i>>>0)break a}}do{e=d+8|0;if(!(b[e>>1]&9312)){f=d+24|0;if(c[f>>2]|0){ig(j,c[d+20>>2]|0);c[f>>2]=0}}else Mg(d);b[e>>1]=128;d=d+40|0}while(d>>>0<i>>>0);a[g>>0]=h}while(0);return}function $g(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();g=f;c[g>>2]=e;e=Sk(b,d,g)|0;ig(b,c[a>>2]|0);c[a>>2]=e;i=f;return}function ah(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;l=a+24|0;g=c[l>>2]|0;do if((g|0)<(d|0)){k=(d|0)<32?32:d;d=(g|0)>0;if((f|0)!=0&d?(h=a+16|0,i=c[h>>2]|0,j=a+20|0,(i|0)==(c[j>>2]|0)):0){g=Sl(c[a+32>>2]|0,i,k,((k|0)<0)<<31>>31)|0;c[j>>2]=g;c[h>>2]=g;f=0}else{g=a+32|0;if(d){d=a+20|0;ig(c[g>>2]|0,c[d>>2]|0)}else d=a+20|0;g=ih(c[g>>2]|0,k,((k|0)<0)<<31>>31)|0;c[d>>2]=g}if(!g){f=a+8|0;if(!(b[f>>1]&9312))b[f>>1]=1;else rg(a);c[a+16>>2]=0;c[l>>2]=0;f=7;break}d=c[a+32>>2]|0;do if(!d)d=hc[c[8744+48>>2]&127](g)|0;else{if((c[d+276>>2]|0)>>>0<=g>>>0?(c[d+280>>2]|0)>>>0>g>>>0:0){d=e[d+248>>1]|0;break}d=hc[c[8744+48>>2]&127](g)|0}while(0);c[l>>2]=d;o=21}else o=21;while(0);if((o|0)==21){if(((f|0)!=0?(m=c[a+16>>2]|0,(m|0)!=0):0)?(n=c[a+20>>2]|0,(m|0)!=(n|0)):0)gw(n|0,m|0,c[a+12>>2]|0)|0;d=a+8|0;f=b[d>>1]|0;if(!(f&1024))g=a+16|0;else{g=a+16|0;_b[c[a+36>>2]&31](c[g>>2]|0);f=b[d>>1]|0}c[g>>2]=c[a+20>>2];b[d>>1]=f&58367;f=0}return f|0}function bh(a,d){a=a|0;d=d|0;if((c[a+24>>2]|0)<(d|0))a=ah(a,d,0)|0;else{c[a+16>>2]=c[a+20>>2];a=a+8|0;b[a>>1]=(e[a>>1]|0)&13;a=0}return a|0}
11 4)+16;ph($,20576,_);h=c[l>>2]|0}}else h=0;_=f+(aa+-4<<4)+16|0;h=sr($,h,_)|0;c[ca>>2]=h;c[ca+4>>2]=c[_>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);if(!((h|0)==0?1:(b[f+(aa+-2<<4)+16>>1]|0)==0)){$=h+4|0;c[$>>2]=c[$>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{_=aa+-2|0;c[ca>>2]=Vq($,d[f+(aa+-1<<4)+14>>0]|0,c[f+(_<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 206:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;c[ca+8>>2]=0;break}case 207:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;c[ca+8>>2]=1;break}case 208:{l=aa+-2|0;_=aa+-1|0;h=sr($,hr($,hr($,0,c[f+(aa<<4)+16>>2]|0)|0,c[f+(l<<4)+16>>2]|0)|0,f+(_<<4)+16|0)|0;c[ca>>2]=h;if(c[f+(_<<4)+24>>2]|0){h=Vq($,19,h,0,0)|0;c[ca>>2]=h}c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];if(h){$=h+4|0;c[$>>2]=c[$>>2]|128}break}case 210:{_=aa+-1|0;c[ca>>2]=Vq($,d[f+(aa<<4)+14>>0]|0,c[f+(_<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 209:{l=aa+-4|0;_=aa+-3|0;h=sr($,hr($,hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(l<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0,f+(_<<4)+16|0)|0;c[ca>>2]=h;if(c[f+(_<<4)+24>>2]|0){h=Vq($,19,h,0,0)|0;c[ca>>2]=h}c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];if(h){$=h+4|0;c[$>>2]=c[$>>2]|128}break}case 223:{l=f+(aa+-1<<4)+16|0;h=c[l>>2]|0;do if(h){if((c[h>>2]|0)==1){_=c[h+4>>2]|0;h=c[_>>2]|0;c[_>>2]=0;Jk(c[$>>2]|0,c[l>>2]|0);if(h){_=h+4|0;c[_>>2]=c[_>>2]&-769|512}c[ca>>2]=Vq($,(c[f+(aa+-3<<4)+16>>2]|0)!=0?78:79,c[f+(aa+-4<<4)+16>>2]|0,h,0)|0;break}h=Vq($,75,c[f+(aa+-4<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h){Jk(c[$>>2]|0,c[l>>2]|0);h=0}else{c[h+20>>2]=c[l>>2];h=c[ca>>2]|0;ur($,h)}if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,h,0,0)|0}else{c[ca>>2]=Vq($,132,0,0,20616+(c[f+(aa+-3<<4)+16>>2]<<3)|0)|0;Ck(c[$>>2]|0,c[f+(aa+-4<<4)+16>>2]|0)}while(0);c[ca+4>>2]=c[f+(aa+-4<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 211:{_=aa+-2|0;c[ca>>2]=Vq($,77,c[f+(_<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 212:{Y=aa+-2|0;Z=f+(aa<<4)+16|0;_=Vq($,73,c[f+(Y<<4)+16>>2]|0,c[Z>>2]|0,0)|0;c[ca>>2]=_;c[ca+4>>2]=c[f+(Y<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];tr($,c[Z>>2]|0,_,76);break}case 213:{Y=aa+-3|0;Z=f+(aa<<4)+16|0;_=Vq($,148,c[f+(Y<<4)+16>>2]|0,c[Z>>2]|0,0)|0;c[ca>>2]=_;c[ca+4>>2]=c[f+(Y<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];tr($,c[Z>>2]|0,_,77);break}case 215:case 214:{_=aa+-1|0;c[ca>>2]=Vq($,d[f+(_<<4)+14>>0]|0,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 216:{c[ca>>2]=Vq($,157,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 217:{c[ca>>2]=Vq($,158,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 220:{k=hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0;l=aa+-4|0;h=Vq($,74,c[f+(l<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h)Jk(c[$>>2]|0,k);else c[h+20>>2]=k;if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,c[ca>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 116:{c[ca>>2]=116;break}case 121:{h=gr($,c[f+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[ca>>2]=c[f+(aa+-4<<4)+16>>2];break a}else{a[h+4>>0]=116;c[h+52>>2]=c[f+(aa+-4<<4)+16>>2];c[ca>>2]=h;break a}}case 122:{b[ca>>1]=1;break}case 124:case 123:{b[ca>>1]=0;break}case 243:case 125:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];break}case 242:case 236:case 161:case 154:case 126:{c[ca>>2]=0;break}case 127:{l=aa+-1|0;n=hr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(l<<4)+16>>2]|0)|0;c[ca>>2]=n;if(c[f+(aa<<4)+20>>2]|0)ir($,n,f+(aa<<4)+16|0,1);p=c[$>>2]|0;if(n){o=(c[n+4>>2]|0)+(((c[n>>2]|0)+-1|0)*20|0)+8|0;ig(p,c[o>>2]|0);m=c[f+(l<<4)+20>>2]|0;n=(c[f+(l<<4)+24>>2]|0)-m|0;if((m|0)!=0?(h=fw(n|0,((n|0)<0)<<31>>31|0,1,0)|0,h=ih(p,h,C)|0,(h|0)!=0):0){gw(h|0,m|0,n|0)|0;a[h+n>>0]=0}else h=0;c[o>>2]=h}break}case 133:{l=ih(c[$>>2]|0,80,0)|0;if(l){v=l+0|0;k=v+80|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0))}c[ca>>2]=l;break}case 134:{n=c[f+(aa<<4)+16>>2]|0;c[ca>>2]=n;if(n){l=c[n>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[n+(k*72|0)+44>>0]=a[n+((l+-2|0)*72|0)+44>>0]|0;l=k+-1|0;if((l|0)>0){$=k;k=l;l=$}else break}a[n+44>>0]=0}break}case 128:{Z=c[$>>2]|0;c[_>>2]=0;c[_+4>>2]=0;_=jr(Z,116,_,0)|0;c[ca>>2]=hr($,c[f+(aa+-1<<4)+16>>2]|0,_)|0;break}case 132:{c[ca+4>>2]=0;break}case 129:{_=Vq($,116,0,0,f+(aa<<4)+16|0)|0;_=Vq($,122,Vq($,27,0,0,f+(aa+-2<<4)+16|0)|0,_,0)|0;c[ca>>2]=hr($,c[f+(aa+-3<<4)+16>>2]|0,_)|0;break}case 136:{c[ca>>2]=0;break}case 137:{_=fr($,c[f+(aa+-6<<4)+16>>2]|0,f+(aa+-5<<4)+16|0,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;kr($,_,f+(aa+-2<<4)+16|0);break}case 135:{h=c[f+(aa+-1<<4)+16>>2]|0;c[ca>>2]=h;if((h|0)!=0?(t=c[h>>2]|0,(t|0)>0):0)a[h+((t+-1|0)*72|0)+44>>0]=c[f+(aa<<4)+16>>2];break}case 138:{c[ca>>2]=fr($,c[f+(aa+-6<<4)+16>>2]|0,0,0,f+(aa+-2<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 139:{l=f+(aa+-6<<4)+16|0;n=c[l>>2]|0;if((((n|0)==0?(c[f+(aa+-2<<4)+20>>2]|0)==0:0)?(c[f+(aa+-1<<4)+16>>2]|0)==0:0)?(c[f+(aa<<4)+16>>2]|0)==0:0){c[ca>>2]=c[f+(aa+-4<<4)+16>>2];break a}p=f+(aa+-4<<4)+16|0;k=c[p>>2]|0;o=c[k>>2]|0;if((o|0)==1){l=fr($,n,0,0,f+(aa+-2<<4)+16|0,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=l;if(l){X=(c[l>>2]|0)+-1|0;_=c[p>>2]|0;Z=_+16|0;c[l+(X*72|0)+16>>2]=c[Z>>2];Y=_+12|0;c[l+(X*72|0)+12>>2]=c[Y>>2];_=_+28|0;c[l+(X*72|0)+28>>2]=c[_>>2];c[Y>>2]=0;c[Z>>2]=0;c[_>>2]=0}zo(c[$>>2]|0,c[p>>2]|0);break a}if(k){m=o+-1|0;if((m|0)>0){n=o;while(1){a[k+(m*72|0)+44>>0]=a[k+((n+-2|0)*72|0)+44>>0]|0;n=m+-1|0;if((n|0)>0){_=m;m=n;n=_}else break}}a[k+44>>0]=0}_=gr($,0,k,0,0,0,0,512,0,0)|0;c[ca>>2]=fr($,c[l>>2]|0,0,0,f+(aa+-2<<4)+16|0,_,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 149:case 140:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 144:{c[ca>>2]=mr($,f+(aa+-1<<4)+16|0,0,0)|0;break}case 145:{c[ca>>2]=mr($,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0,0)|0;break}case 146:{c[ca>>2]=mr($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[ca>>2]=0;break}case 151:{c[ca>>2]=0;c[ca+4>>2]=1;break}case 143:{c[ca>>2]=1;break}case 142:{c[ca>>2]=lr(c[$>>2]|0,0,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0)|0;break}case 156:{h=hr($,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;c[ca>>2]=h;if(h)a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2];break}case 157:{h=hr($,0,c[f+(aa+-1<<4)+16>>2]|0)|0;c[ca>>2]=h;if((h|0)!=0?(k=c[h+4>>2]|0,(k|0)!=0):0)a[k+12>>0]=c[f+(aa<<4)+16>>2];break}case 179:case 153:{c[ca>>2]=0;break}case 180:case 152:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];break}case 166:{c[ca>>2]=c[f+(aa<<4)+16>>2];c[ca+4>>2]=0;break}case 167:{c[ca>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+4>>2]=c[f+(aa<<4)+16>>2];break}case 168:{c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 169:{h=c[f+(aa+-5<<4)+16>>2]|0;if(h){_=$+532|0;c[h+4>>2]=c[_>>2];c[_>>2]=h;a[$+449>>0]=1}_=f+(aa+-2<<4)+16|0;kr($,c[_>>2]|0,f+(aa+-1<<4)+16|0);nr($,c[_>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 235:case 162:case 155:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}default:{}}while(0);h=a[20912+(g<<1)>>0]|0;o=h&255;n=a[20913+(g<<1)>>0]|0;m=n&255;p=(c[f>>2]|0)-m|0;c[f>>2]=p;l=b[22184+((b[21568+(e[f+(aa-m<<4)+12>>1]<<1)>>1]|0)+o<<1)>>1]|0;k=l&65535;do if((l&65535)<642)if(!(n<<24>>24)){gq(f,k,o,ca);break}else{c[f>>2]=p+1;aa=1-m+aa|0;b[f+(aa<<4)+12>>1]=l;a[f+(aa<<4)+14>>0]=h;aa=f+(aa<<4)+16|0;c[aa+0>>2]=c[ca+0>>2];c[aa+4>>2]=c[ca+4>>2];c[aa+8>>2]=c[ca+8>>2];break}else{h=c[da>>2]|0;if((p|0)>-1)do Ln(f);while((c[f>>2]|0)>-1);c[da>>2]=h}while(0);i=ea;return}function jq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0;aa=i;i=i+64|0;if((i|0)>=(j|0))ba();$=aa+8|0;W=aa;n=aa+24|0;h=aa+16|0;l=tq(e,0,h)|0;do if(!l){if(c[h>>2]|0){l=$r(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){_=e+43|0;k=(a[_>>0]|0)==0;do if(!(a[e+46>>0]&2)){if(k?(m=e+4|0,Z=c[m>>2]|0,Yb[c[(c[Z>>2]|0)+40>>2]&63](Z,24,0)|0,m=c[m>>2]|0,m=lc[c[(c[m>>2]|0)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}Z=e+44|0;a[Z>>0]=1;k=tq(e,0,h)|0;if(!k){h=$r(e,f)|0;if(!h){h=0;g=0}else{Y=d[e+45>>0]|0;X=Y+1|0;Y=7-Y|0;if(!((a[_>>0]|0)==0?(g=c[e+4>>2]|0,g=lc[c[(c[g>>2]|0)+56>>2]&31](g,X,Y,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[l>>2]=0;l=l+4|0}while((l|0)<(k|0));Q=e+8|0;g=c[Q>>2]|0;g=nc[c[(c[g>>2]|0)+24>>2]&127](g,W)|0;a:do if(!g){R=W;P=c[R+4>>2]|0;b:do if((P|0)>0|(P|0)==0&(c[R>>2]|0)>>>0>32){g=c[Q>>2]|0;g=pc[c[(c[g>>2]|0)+8>>2]&31](g,n,32,0,0)|0;if(g)break a;m=d[n+3>>0]|0;k=d[n+9>>0]<<16|d[n+8>>0]<<24;g=d[n+10>>0]<<8;l=k|g|d[n+11>>0];if(((d[n+1>>0]<<16|d[n>>0]<<24|d[n+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(R=m&1,S=e+65|0,a[S>>0]=R,T=e+36|0,c[T>>2]=l,c[e+104>>2]=d[n+13>>0]<<16|d[n+12>>0]<<24|d[n+14>>0]<<8|d[n+15>>0],U=e+84|0,P=n+16|0,N=P,N=d[N>>0]|d[N+1>>0]<<8|d[N+2>>0]<<16|d[N+3>>0]<<24,P=P+4|0,P=d[P>>0]|d[P+1>>0]<<8|d[P+2>>0]<<16|d[P+3>>0]<<24,V=U,O=V,a[O>>0]=N,a[O+1>>0]=N>>8,a[O+2>>0]=N>>16,a[O+3>>0]=N>>24,V=V+4|0,a[V>>0]=P,a[V+1>>0]=P>>8,a[V+2>>0]=P>>16,a[V+3>>0]=P>>24,V=e+76|0,uq(R^1,n,24,0,V),(c[V>>2]|0)==(d[n+25>>0]<<16|d[n+24>>0]<<24|d[n+26>>0]<<8|d[n+27>>0]|0)):0){P=e+80|0;if((c[P>>2]|0)!=(d[n+29>>0]<<16|d[n+28>>0]<<24|d[n+30>>0]<<8|d[n+31>>0]|0)){l=0;g=0;break}if((d[n+5>>0]<<16|d[n+4>>0]<<24|d[n+6>>0]<<8|d[n+7>>0]|0)!=3007e3){c[$>>2]=49983;c[$+4>>2]=10788;Zc(14,14848,$);g=14;break a}t=l+24|0;R=Pc(t)|0;if(!R){g=7;break a}u=R+24|0;v=((t|0)<0)<<31>>31;n=fw(t|0,v|0,32,0)|0;m=C;O=W;N=c[O+4>>2]|0;c:do if(!((m|0)>(N|0)|((m|0)==(N|0)?n>>>0>(c[O>>2]|0)>>>0:0))){w=R+8|0;x=R+1|0;y=R+2|0;z=R+3|0;A=R+16|0;B=R+17|0;D=R+18|0;E=R+19|0;F=R+20|0;G=R+21|0;H=R+22|0;I=R+23|0;J=R+4|0;K=R+5|0;L=R+6|0;M=R+7|0;N=e+68|0;O=e+72|0;r=(k>>>16|g)&65535;s=e+66|0;o=32;k=0;l=0;p=0;q=1;while(1){g=c[Q>>2]|0;g=pc[c[(c[g>>2]|0)+8>>2]&31](g,R,t,o,k)|0;if(g){k=36;break}if(Vv(U,w,8)|0){g=p;k=37;break}k=d[x>>0]<<16|d[R>>0]<<24|d[y>>0]<<8|d[z>>0];if(!k){g=p;k=37;break}o=(a[S>>0]|0)==0&1;uq(o,R,8,V,V);uq(o,u,c[T>>2]|0,V,V);if((c[V>>2]|0)!=(d[B>>0]<<16|d[A>>0]<<24|d[D>>0]<<8|d[E>>0]|0)){g=p;k=37;break}if((c[P>>2]|0)!=(d[G>>0]<<16|d[F>>0]<<24|d[H>>0]<<8|d[I>>0]|0)){g=p;break c}o=d[K>>0]<<16|d[J>>0]<<24|d[L>>0]<<8|d[M>>0];g=Wo(e,q,k)|0;if(g){k=36;break}if(!o)g=p;else{c[N>>2]=q;c[O>>2]=o;b[s>>1]=r;l=c[V>>2]|0;g=c[P>>2]|0}k=fw(n|0,m|0,t|0,v|0)|0;o=C;p=W;ca=c[p+4>>2]|0;if((o|0)>(ca|0)|((o|0)==(ca|0)?k>>>0>(c[p>>2]|0)>>>0:0))break c;else{da=m;ca=n;n=k;m=o;p=g;q=q+1|0;k=da;o=ca}}if((k|0)==36){Sc(R);break a}else if((k|0)==37){Sc(R);break b}}else{l=0;g=0}while(0);Sc(R)}else{l=0;g=0}}else{l=0;g=0}while(0);c[e+76>>2]=l;c[e+80>>2]=g;Xo(e);k=c[c[e+32>>2]>>2]|0;c[k+96>>2]=0;c[k+100>>2]=0;g=k+104|0;c[g>>2]=-1;c[k+108>>2]=-1;c[k+112>>2]=-1;c[k+116>>2]=-1;k=e+68|0;l=c[k>>2]|0;if(l)c[g>>2]=l;if(!(c[e+72>>2]|0))g=0;else{g=c[e+100>>2]|0;c[$>>2]=c[k>>2];c[$+4>>2]=g;Zc(283,14888,$);g=0}}while(0);if(!(a[_>>0]|0)){W=c[e+4>>2]|0;lc[c[(c[W>>2]|0)+56>>2]&31](W,X,Y,9)|0}}c[f>>2]=1}}else{h=l;g=k}a[Z>>0]=0;if(!(a[_>>0]|0)){_=c[e+4>>2]|0;lc[c[(c[_>>2]|0)+56>>2]&31](_,0,1,9)|0}}else if(k){h=e+4|0;g=c[h>>2]|0;g=lc[c[(c[g>>2]|0)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[_>>0]|0)){h=c[h>>2]|0;lc[c[(c[h>>2]|0)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[e+52>>2]|0)!=3007e3){c[$>>2]=50909;c[$+4>>2]=10788;ZcZc(11,13600,C);k=11;break}if(t>>>0>q>>>0){c[C>>2]=54423;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break}k=h&255;q=(h&65535)>>>8&255;o=(s&65535)>>>8&255;do if((t+-1|0)>>>0<(u+3|0)>>>0)if(u>>>0>t>>>0){c[C>>2]=54434;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break a}else{r=(d[B+(t+2)>>0]<<8|d[B+(t+3)>>0])+t|0;q=r-v|0;s=q&255;q=(q&65535)>>>8&255;p=a[B+(t+1)>>0]|0;o=a[B+t>>0]|0;k=l-u&255;break}else{s=k;r=u;k=0}while(0);do if(m>>>0>z>>>0?(w=(d[B+(m+2)>>0]<<8|d[B+(m+3)>>0])+m|0,(w+3|0)>=(v|0)):0)if((v|0)<(w|0)){c[C>>2]=54447;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break a}else{q=r-m|0;g=n;s=q&255;q=(q&65535)>>>8&255;k=(k&255)+v-w&255;break}while(0);m=B+(y+7)|0;l=a[m>>0]|0;if((l&255)<(k&255)){c[C>>2]=54453;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break}else{a[m>>0]=(l&255)-(k&255);x=23;break}}while(0);b:do if((x|0)==23){k=g&65535;l=B+(y+5)|0;m=B+(y+6)|0;do if((k|0)==(d[l>>0]<<8|d[m>>0]|0))if((n&65535|0)==(z|0)){a[B+z>>0]=o;a[B+(y+2)>>0]=p;a[l>>0]=r>>>8;a[m>>0]=r;break}else{c[C>>2]=54460;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break b}else{C=n&65535;a[B+C>>0]=(g&65535)>>>8;a[B+(C+1)>>0]=g;a[B+k>>0]=o;a[B+(k+1)>>0]=p;a[B+(k+2)>>0]=q;a[B+(k+3)>>0]=s}while(0);k=f+16|0;b[k>>1]=(e[k>>1]|0)+A;k=0}while(0);i=D;return k|0}function zq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();r=u;q=d[b+6>>0]|0;t=c[b+56>>2]|0;p=c[(c[b+52>>2]|0)+36>>2]|0;l=p+-4|0;b=q+1|0;while(1){m=t+b|0;n=(d[m>>0]|0)<<8|(d[t+(b+1)>>0]|0);if(!n){b=0;break}if((n|0)>(l|0)|(n|0)<(b+4|0)){s=4;break}h=t+(n+2)|0;k=t+(n+3)|0;b=(d[h>>0]|0)<<8|(d[k>>0]|0);if((b|0)<(e|0))b=n;else{o=h;l=n;s=6;break}}a:do if((s|0)==4){c[r>>2]=54252;c[r+4>>2]=10788;Zc(11,13600,r);c[f>>2]=11;b=0}else if((s|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(p|0)){c[r>>2]=54275;c[r+4>>2]=10788;Zc(11,13600,r);c[f>>2]=11;b=0;break a}else{a[o>>0]=h>>>8;a[k>>0]=h;break}else{b=t+(q+7)|0;if((d[b>>0]|0)<=59){q=t+l|0;q=d[q>>0]|d[q+1>>0]<<8;a[m>>0]=q;a[m+1>>0]=q>>8;a[b>>0]=(d[b>>0]|0)+h;break}if(!g){b=0;break a}c[g>>2]=1;b=0;break a}while(0);b=t+(h+l)|0}while(0);i=u;return b|0}function Aq(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+16|0;if((i|0)>=(j|0))ba();B=D;y=c[f+56>>2]|0;A=d[f+6>>0]|0;u=e[f+14>>1]|0;v=b[f+18>>1]|0;q=v&65535;r=f+52|0;s=c[(c[r>>2]|0)+36>>2]|0;z=(q<<1)+u|0;t=s+-4|0;w=y+(A+5)|0;x=y+(A+6)|0;a:do if(v<<16>>16){p=s;v=0;h=y;k=0;while(1){m=(v<<1)+u|0;l=y+m|0;m=y+(m+1)|0;n=(d[l>>0]|0)<<8|(d[m>>0]|0);if((n|0)<(z|0)|(n|0)>(t|0)){C=3;break}o=(Hp(f,h+n|0)|0)&65535;g=p-o|0;if((g|0)<(z|0)|(o+n|0)>(s|0)){C=5;break}a[l>>0]=g>>>8;a[m>>0]=g;if(!k)if((g|0)==(n|0))k=0;else{k=c[(c[c[r>>2]>>2]|0)+200>>2]|0;h=(d[w>>0]|0)<<8|(d[x>>0]|0);gw(k+h|0,y+h|0,p-h|0)|0;h=k;C=9}else C=9;if((C|0)==9){C=0;gw(y+g|0,h+n|0,o|0)|0}v=v+1|0;if((v|0)>=(q|0)){C=11;break a}else p=g}if((C|0)==3){c[B>>2]=54184;c[B+4>>2]=10788;Zc(11,13600,B);g=11;break}else if((C|0)==5){c[B>>2]=54196;c[B+4>>2]=10788;Zc(11,13600,B);g=11;break}}else{g=s;C=11}while(0);if((C|0)==11){a[w>>0]=g>>>8;a[x>>0]=g;a[y+(A+1)>>0]=0;a[y+(A+2)>>0]=0;a[y+(A+7)>>0]=0;C=g-z|0;bw(y+z|0,0,C|0)|0;if((C|0)==(e[f+16>>1]|0|0))g=0;else{c[B>>2]=54221;c[B+4>>2]=10788;Zc0)+8>>2]|0,m)|0)==0;h=c[m>>2]|0;if(l){ig(s,h);h=a[n>>0]|0;q=11;break}else{c[p>>2]=h;ph(d,10344,p);ig(s,h);g=1;break}}c[p>>2]=c[c[g>>2]>>2];ph(d,28320,p);g=1}while(0);do if((q|0)==11)if((h&16)==0?(r=f+38|0,o=b[r>>1]|0,o<<16>>16<=0):0){if(o<<16>>16<0){c[p>>2]=c[f>>2];ph(d,26752,p);g=1;break}h=cr(s,c[f+12>>2]|0,0)|0;if(!h)g=1;else{o=s+250|0;n=a[o>>0]|0;q=d+68|0;p=c[q>>2]|0;ys(d,c[h+32>>2]|0);b[r>>1]=-1;a[o>>0]=0;m=s+284|0;l=c[m>>2]|0;c[m>>2]=0;g=js(d,h)|0;c[m>>2]=l;a[o>>0]=n;c[q>>2]=p;if(!g){b[r>>1]=0;g=1}else{d=g+38|0;b[r>>1]=b[d>>1]|0;q=g+4|0;c[f+4>>2]=c[q>>2];b[d>>1]=0;c[q>>2]=0;gg(s,g);g=(c[f+68>>2]|0)+78|0;b[g>>1]=e[g>>1]|0|2;g=0}Ik(s,h,1)}}else g=0;while(0);i=t;return g|0}
13 function ch(f){f=f|0;var g=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.0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,gc=0,jc=0,kc=0,mc=0,oc=0,qc=0,rc=0,sc=0,tc=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,Ic=0,Jc=0,Kc=0,Lc=0,Mc=0,Nc=0,Oc=0,Pc=0,Qc=0,Rc=0,Tc=0,Uc=0,Vc=0,Wc=0,Xc=0,Yc=0,ad=0,bd=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,Ad=0,Bd=0,Cd=0,Dd=0,Ed=0,Fd=0,Gd=0,Hd=0,Id=0,Jd=0,Kd=0,Ld=0,Md=0,Nd=0,Od=0,Pd=0,Qd=0,Rd=0,Sd=0,Td=0,Ud=0,Vd=0,Wd=0,Xd=0,Yd=0,Zd=0,_d=0,$d=0,ae=0,be=0,ce=0,de=0,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0;ke=i;i=i+1040|0;if((i|0)>=(j|0))ba();ge=ke+400|0;Qc=ke+792|0;fd=ke+392|0;ad=ke+788|0;Pd=ke+320|0;jd=ke+784|0;md=ke+780|0;nd=ke+280|0;Kd=ke+680|0;Yc=ke+240|0;Nd=ke+200|0;Xc=ke+676|0;Uc=ke+672|0;Ld=ke+160|0;Rc=ke+644|0;qd=ke+152|0;Gd=ke+112|0;hd=ke+640|0;Id=ke+636|0;Vc=ke+632|0;rd=ke+628|0;xd=ke+624|0;td=ke+604|0;yd=ke+600|0;ld=ke+596|0;ud=ke+576|0;Pc=ke+840|0;zd=ke+572|0;Md=ke+104|0;Ad=ke+568|0;bd=ke+564|0;ed=ke+96|0;Od=ke+88|0;Bd=ke+560|0;Cd=ke+556|0;Dd=ke+552|0;vd=ke+532|0;wd=ke+512|0;gd=ke+508|0;sd=ke+504|0;Wc=ke+488|0;Jd=ke+48|0;Tc=ke+456|0;Oc=ke+444|0;Hd=ke+8|0;pd=ke+440|0;Fd=ke+412|0;Ed=ke;wc=f+4|0;o=c[wc>>2]|0;he=c[f>>2]|0;Gc=a[he+62>>0]|0;Kc=f+8|0;v=c[Kc>>2]|0;je=he+32|0;l=je;m=c[l>>2]|0;l=c[l+4>>2]|0;ie=f+80|0;a:do if((c[ie>>2]|0)==7){u=he+65|0;v=f+44|0;n=m;g=0;p=0;m=0;ee=1317}else{c[ie>>2]=0;$d=f+136|0;c[$d>>2]=0;c[$d+4>>2]=0;$d=f+20|0;c[$d>>2]=0;c[he+452>>2]=0;zc=he+240|0;b:do if(!(c[zc0;z=J;R=p;break}case 116:case 115:case 114:case 113:{w=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;c[wd>>2]=c[w+8>>2];b[uc>>1]=c[o+(p*20|0)+16>>2];a[V>>0]=((G&255)<115)<<31>>31;c[W>>2]=v+((c[o+(p*20|0)+12>>2]|0)*40|0);S=Pd;c[S>>2]=0;c[S+4>>2]=0;gm(c[w>>2]|0,Pd);S=Pd;g=c[S>>2]|0;S=fw(g|0,c[S+4>>2]|0,-1,-1)|0;R=C;if(!(R>>>0>0|(R|0)==0&S>>>0>2147483646)){b[X>>1]=0;c[Y>>2]=he;c[aa>>2]=0;g=jm(c[w>>2]|0,0,g,1,nd)|0;if(!g){r=Gm(c[ca>>2]|0,c[da>>2]|0,wd,0)|0;if((b[X>>1]&9312)==0&(c[aa>>2]|0)==0)g=0;else{Mg(nd);g=0}}else r=0}else{c[ge>>2]=68730;c[ge+4>>2]=10788;Zcd>>2]|0,md)|0;do if(L){F=1;G=1;do{G=G<<4;F=F+1|0}while((F|0)!=(D|0));if(!g){K=1;F=r}else{G=c[md>>2]|0;ee=743;break}while(1){s=(c[F+12>>2]|0)+((((O|0)/(G|0)|0|0)%16|0)*56|0)+48|0;F=c[s>>2]|0;if(!F){F=Mm(16)|0;if(!F){g=7;ee=738;break}g=Nm(R,F,s)|0;if(g){ee=738;break}F=c[s>>2]|0}F=c[F+4>>2]|0;K=K+1|0;if((K|0)>=(D|0)){ee=740;break}else G=(G|0)/16|0}if((ee|0)==738){G=c[md>>2]|0;ee=743;break}else if((ee|0)==740){G=c[md>>2]|0;ee=742;break}}else{G=c[md>>2]|0;if(!g){F=r;ee=742}else ee=743}while(0);if((ee|0)==742){ee=0;c[(c[F+12>>2]|0)+(((O|0)%16|0)*56|0)+48>>2]=G;g=0}else if((ee|0)==743){ee=0;Om(G)}O=O+1|0;P=P+16|0;F=c[Q>>2]|0}while((P|0)<(F|0)&(g|0)==0)}else{ee=Pd;c[ee>>2]=0;c[ee+4>>2]=0;ee=726}while(0);if((ee|0)==726){ee=0;g=Lm(R,z,Pd,ge)|0;r=c[ge>>2]|0}I=I+1|0;if(g){ee=746;break}if((I|0)>=(d[S>>0]|0)){g=0;break o}else w=r}if((ee|0)==746)Pm(r);else if((ee|0)==747)Pm(r);Pm(w);r=0}while(0);if(!g){g=Qm(x+64|0,r)|0;c[x+20>>2]=r;if(!g){g=0;ee=755;break}else r=0}Pm(r);ee=755}else ee=756}while(0);if((ee|0)==755){ee=0;a[H+25>>0]=0;z=J;R=p;r=g;break n}else if((ee|0)==756){ee=0;a[H+25>>0]=1;break}}while(0);z=J;R=(c[o+(p*20|0)+8>>2]|0)+-1|0;r=g}else if((ee|0)==765){r=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;c[Cd>>2]=c[o+(p*20|0)+12>>2];g=r;r=nc[c[o+(p*20|0)+16>>2]&127](c[r>>2]|0,Cd)|0;ee=766}while(0);do if((ee|0)==548){ee=0;a[(c[g>>2]|0)+74>>0]=d[w>>0]&3;z=J;R=p}else if((ee|0)==766){c[g+60>>2]=0;g=g+25|0;if(!(c[Cd>>2]|0)){a[g>>0]=0;ee=(c[o+(p*20|0)+8>>2]|0)+-1|0;p=f+(d[o+(p*20|0)+3>>0]<<2)+108|0;c[p>>2]=(c[p>>2]|0)+1;p=ee;ee=19;break}else{a[g>>0]=1;ee=19;break}}while(0);if((ee|0)==19){ee=0;if(c[zcZc(11,13600,ge);B=11;w=0;p=0}else{B=p;w=0;p=0}while(0);if(B){p=n;q=B;ee=1318;break c}Q=J;c[Q>>2]=w;c[Q+4>>2]=p;b[s>>1]=4;Q=v;w=o;R=T;S=U;r=J}else{Q=v;w=o;R=T;S=U;r=J}break}case 865:{ee=0;s=c[z>>2]|0;z=c[(c[Td>>2]|0)+(K<<4)+12>>2]|0;w=c[z+16>>2]|0;if(w)do{p=(c[w+8>>2]|0)+32|0;if((c[p>>2]|0)==(x|0))c[p>>2]=s;w=c[w>>2]|0}while((w|0)!=0);p=c[z+32>>2]|0;if(p)do{w=(c[p+8>>2]|0)+40|0;if((c[w>>2]|0)==(x|0))c[w>>2]=s;p=c[p>>2]|0}while((p|0)!=0);Q=v;w=o;R=T;S=U;t=K+1&255;break}case 878:{ee=0;Wm(he,r);Q=v;w=o;R=T;S=U;r=G;break}case 881:{ee=0;S=c[o+(n*20|0)+4>>2]|0;c[Wc>>2]=he;c[fa>>2]=S;c[ga>>2]=fe;r=c[o+(n*20|0)+16>>2]|0;c[ge>>2]=c[(c[Td>>2]|0)+(S<<4)>>2];c[ge+4>>2]=(S|0)==1?13184:13208;c[ge+8>>2]=r;r=qh(he,42048,ge)|0;if(!r){p=n;q=t;ee=882;break c}a[ha>>0]=1;c[ia>>2]=0;p=Me(he,r,22,Wc,0)|0;p=(p|0)==0?c[ia>>2]|0:p;ig(he,r);a[ha>>0]=0;if(!p){Q=v;w=o;R=T;S=U;r=G}else{o=p;p=n;q=t;ee=884;break c}break}case 886:{ee=0;gg(he,Ek((c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+12>>2]|0)+8|0,c[o+(n*20|0)+16>>2]|0,0)|0);c[Qb>>2]=c[Qb>>2]|2;Q=v;w=o;R=T;S=U;break}case 887:{ee=0;z=Ek((c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+12>>2]|0)+24|0,c[o+(n*20|0)+16>>2]|0,0)|0;if(z){p=(c[z+12>>2]|0)+8|0;r=c[p>>2]|0;z:do if((r|0)==(z|0))c[p>>2]=c[z+20>>2];else{do{if(!r)break z;p=r+20|0;r=c[p>>2]|0}while((r|0)!=(z|0));c[p>>2]=c[z+20>>2]}while(0);Fk(he,z)}c[Qb>>2]=c[Qb>>2]|2;Q=v;w=o;R=T;S=U;r=G;break}case 895:{ee=0;z=Ek((c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+12>>2]|0)+40|0,c[o+(n*20|0)+16>>2]|0,0)|0;if(!z){Q=v;w=o;R=T;S=U}else{p=c[z+20>>2]|0;if((p|0)==(c[z+24>>2]|0)){p=Zm(p+8|0,c[z+4>>2]|0,ge)|0;if(!p)p=0;else p=c[p+8>>2]|0;s=p+64|0;while(1){S=c[s>>2]|0;p=S+32|0;if((S|0)==(z|0))break;else s=p}c[s>>2]=c[p>>2]}fg(he,z);c[Qb>>2]=c[Qb>>2]|2;Q=v;w=o;R=T;S=U}break}case 903:{ee=0;K=c[o+(p*20|0)+8>>2]|0;n=ih(he,(K<<2)+4|0,0)|0;if(!n){u=ce;v=fe;n=m;m=t;ee=1317;break a}x=c[o+(p*20|0)+12>>2]|0;I=c[o+(p*20|0)+4>>2]|0;H=v+(I*40|0)|0;if((K|0)>0){z=0;do{S=Rg(v+((z+I|0)*40|0)|0)|0;c[n+(z<<2)>>2]=S;z=z+1|0}while((z|0)!=(K|0));z=K}else z=0;c[n+(z<<2)>>2]=0;F=c[(c[Td>>2]|0)+(d[o+(p*20|0)+3>>0]<<4)+4>>2]|0;P=v+(x*40|0)|0;S=c[P>>2]|0;O=c[F+4>>2]|0;c[O+4>>2]=c[F>>2];F=c[O>>2]|0;s=c[(c[F+204>>2]|0)+12>>2]|0;c[Pd>>2]=O;c[ja>>2]=F;F=c[O+44>>2]|0;c[ka>>2]=F;c[la>>2]=S;c[ma+0>>2]=0;c[ma+4>>2]=0;c[ma+8>>2]=0;c[ma+12>>2]=0;c[ma+16>>2]=0;do if(!F){x=0;z=0}else{G=(F>>>3)+1|0;E=mg(G,0)|0;if(!E){c[pa>>2]=0;x=0;z=1;break}bw(E|0,0,G|0)|0;c[pa>>2]=E;L=O+32|0;G=(((c[2514]|0)>>>0)/((c[L>>2]|0)>>>0)|0)+1|0;if(G>>>0<=F>>>0){S=E+(G>>>3)|0;a[S>>0]=d[S>>0]|1<<(G&7)}c[ra>>2]=Kd;c[sa>>2]=Kd;c[qa>>2]=0;c[ta>>2]=0;c[ua>>2]=100;c[va>>2]=1e9;a[xa>>0]=0;a[wa>>0]=2;c[oa>>2]=43592;z=c[(c[O+12>>2]|0)+56>>2]|0;_m(Pd,1,d[z+33>>0]<<16|d[z+32>>0]<<24|d[z+34>>0]<<8|d[z+35>>0],d[z+37>>0]<<16|d[z+36>>0]<<24|d[z+38>>0]<<8|d[z+39>>0]);c[oa>>2]=0;z=c[la>>2]|0;if(!((K|0)<1|(z|0)==0)){D=O+17|0;E=0;do{F=n+(E<<2)|0;G=c[F>>2]|0;if(G){if((a[D>>0]|0)!=0&(G|0)>1){$m(Pd,G,1,0);G=c[F>>2]|0}c[oa>>2]=43608;an(Pd,G,0,0)|0;c[oa>>2]=0;z=c[la>>2]|0}E=E+1|0}while(!((E|0)>=(K|0)|(z|0)==0))}if(!((c[ka>>2]|0)==0|(z|0)==0)){B=O+17|0;z=O+36|0;J=1;do{E=J>>>3;G=a[(c[pa>>2]|0)+E>>0]|0;D=1<<(J&7);do if(!(G&255&D)){if(J>>>0<2)F=0;else{F=J+-2|0;F=F-((F>>>0)%(((((c[z>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;F=((F+1|0)==(((c[2514]|0)>>>0)/((c[L>>2]|0)>>>0)|0|0)?3:2)+F|0}if((F|0)==(J|0)?(a[B>>0]|0)!=0:0)break;c[ge>>2]=J;bn(Pd,43632,ge);G=a[(c[pa>>2]|0)+E>>0]|0}while(0);do if(G&255&D){if(J>>>0<2)G=0;else{G=J+-2|0;G=G-((G>>>0)%(((((c[z>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;G=((G+1|0)==(((c[2514]|0)>>>0)/((c[L>>2]|0)>>>0)|0|0)?3:2)+G|0}if((G|0)!=(J|0))break;if(!(a[B>>0]|0))break;c[ge>>2]=J;bn(Pd,43656,ge)}while(0);J=J+1|0}while(!((c[la>>2]|0)==0?1:J>>>0>(c[ka>>2]|0)>>>0))}z=c[(c[(c[O>>2]|0)+204>>2]|0)+12>>2]|0;if((s|0)!=(z|0)){c[ge>>2]=s;c[ge+4>>2]=z;bn(Pd,43696,ge)}Sc(c[pa>>2]|0);if(c[na>>2]|0){cn(qa);x=0;z=(c[ma>>2]|0)+1|0;break}z=c[ma>>2]|0;if(!z)cn(qa);x=pg(qa)|0}while(0);ig(he,n);S=P;S=$v(c[S>>2]|0,c[S+4>>2]|0,z|0,((z|0)<0)<<31>>31|0)|0;w=P;c[w>>2]=S;c[w+4>>2]=C;w=v+(I*40|0)+8|0;if(!(b[w>>1]&9312))b[w>>1]=1;else rg(H);if(z){if(!x){u=ce;v=fe;n=m;m=t;ee=1317;break a}Tg(H,x,-1,1,1)|0}Ul(H,ub)|0;Q=v;w=o;R=T;S=U;n=p;break}case 947:{ee=0;s=c[o+(p*20|0)+4>>2]|0;n=v+(s*40|0)|0;r=c[o+(p*20|0)+8>>2]|0;s=v+(s*40|0)+8|0;if((b[s>>1]&32)==0?(dn(n),(b[s>>1]&32)==0):0){u=ce;v=fe;n=m;m=t;ee=1317;break a}Q=v+(r*40|0)|0;en(c[n>>2]|0,c[Q>>2]|0,c[Q+4>>2]|0);Q=v;w=o;R=T;S=U;r=G;n=p;break}case 966:{ee=0;w=c[o+(p*20|0)+4>>2]|0;P=v+(w*40|0)|0;O=v+((c[o+(p*20|0)+12>>2]|0)*40|0)|0;L=c[o+(p*20|0)+16>>2]|0;w=v+(w*40|0)+8|0;if((b[w>>1]&32)==0?(dn(P),(b[w>>1]&32)==0):0){u=ce;v=fe;n=m;m=t;ee=1317;break a}if(L){J=c[P>>2]|0;H=O;K=c[H>>2]|0;H=c[H+4>>2]|0;s=J+28|0;if((c[s>>2]|0)!=(L|0)){n=J+8|0;G=c[n>>2]|0;if(G){F=J+20|0;I=J+26|0;if(!(b[I>>1]&1))G=fn(G)|0;E=c[F>>2]|0;A:do if(!E){id=G;od=F;ee=978}else{while(1){F=E+12|0;D=c[F>>2]|0;if(!D)break;B=E+8|0;gn(D,ge,Pd);c[F>>2]=0;G=hn(c[ge>>2]|0,G)|0;E=c[B>>2]|0;if(!E){id=G;od=B;ee=978;break A}}c[F>>2]=jn(G)|0}while(0);if((ee|0)==978?(ee=0,Hc=kn(J)|0,c[od>>2]=Hc,(Hc|0)!=0):0){S=Hc;c[S>>2]=0;c[S+4>>2]=0;c[Hc+8>>2]=0;c[Hc+12>>2]=jn(id)|0}c[n>>2]=0;c[J+12>>2]=0;b[I>>1]=e[I>>1]|1}c[s>>2]=L}z=c[J+20>>2]|0;B:do if(z){C:while(1){x=c[z+12>>2]|0;if(x)do{w=x;B=c[w>>2]|0;w=c[w+4>>2]|0;if((w|0)<(H|0)|(w|0)==(H|0)&B>>>0<K>>>0)x=x+8|0;else{if(!((w|0)>(H|0)|(w|0)==(H|0)&B>>>0>K>>>0))break C;x=x+12|0}x=c[x>>2]|0}while((x|0)!=0);z=c[z+8>>2]|0;if(!z)break B}Q=v;w=o;R=T;S=U;n=(c[o+(p*20|0)+8>>2]|0)+-1|0;break q}while(0);if((L|0)>-1)z=O;else{Q=v;w=o;R=T;S=U;n=p;break}}else z=O;Q=z;en(c[P>>2]|0,c[Q>>2]|0,c[Q+4>>2]|0);Q=v;w=o;R=T;S=U;n=p;break}case 993:{ee=0;s=c[o+(n*20|0)+16>>2]|0;F=c[o+(n*20|0)+12>>2]|0;J=v+(F*40|0)|0;if((a[o+(n*20|0)+3>>0]|0)!=0?(Ic=c[s+20>>2]|0,kd=c[pb>>2]|0,(kd|0)!=0):0){w=kd;while(1){if((c[w+28>>2]|0)==(Ic|0)){Q=v;w=o;R=T;S=U;break q}w=c[w+4>>2]|0;if(!w){p=n;break}}}else p=n;n=c[qb>>2]|0;if((n|0)>=(c[ya>>2]|0)){q=t;ee=998;break c}B=v+(F*40|0)+8|0;if(!(b[B>>1]&64)){z=s+12|0;x=c[z>>2]|0;w=x+(c[s+8>>2]|0)|0;o=s+16|0;x=(x<<2)+80+(c[o>>2]|0)+(w*40|0)|0;G=ih(he,x,((x|0)<0)<<31>>31)|0;if(!G){u=ce;v=fe;n=m;m=t;ee=1317;break a}bw(G|0,0,x|0)|0;if(!((b[B>>1]&9312)==0?(c[v+(F*40|0)+24>>2]|0)==0:0))Mg(J);b[B>>1]=64;c[J>>2]=G;c[G>>2]=f;c[G+60>>2]=w;c[G+64>>2]=c[z>>2];c[G+44>>2]=p;c[G+16>>2]=c[Kc>>2];c[G+52>>2]=c[za>>2];c[G+24>>2]=c[Fb>>2];c[G+40>>2]=c[Aa>>2];c[G+8>>2]=c[wc>>2];c[G+48>>2]=c[Ba>>2];c[G+28>>2]=c[s+20>>2];c[G+20>>2]=c[Eb>>2];c[G+56>>2]=c[Ca>>2];v=G+80|0;n=v+(w*40|0)|0;if((v|0)!=(n|0))do{b[v+8>>1]=128;c[v+32>>2]=he;v=v+40|0}while((v|0)!=(n|0));n=c[qb>>2]|0;v=G}else{o=s+16|0;v=c[J>>2]|0}c[qb>>2]=n+1;c[v+4>>2]=c[pb>>2];Q=v+32|0;c[Q>>2]=m;c[Q+4>>2]=l;c[v+68>>2]=c[rb>>2];c[v+72>>2]=c[(c[f>>2]|0)+80>>2];c[rb>>2]=0;c[pb>>2]=v;Q=v+40|0;c[Kc>>2]=Q;R=c[v+60>>2]|0;c[za>>2]=R;S=c[v+64>>2]&65535;c[Aa>>2]=S;R=Q+((R+1|0)*40|0)|0;c[Fb>>2]=R;w=c[s>>2]|0;c[wc>>2]=w;c[Ba>>2]=c[s+4>>2];S=R+(S<<2)|0;c[Eb>>2]=S;R=c[o>>2]|0;c[Ca>>2]=R;bw(S|0,0,R|0)|0;R=T;S=U;n=-1;break}case 1009:{ee=0;Q=c[pb>>2]|0;Vl(r,(c[Q+16>>2]|0)+(((c[(c[Q+8>>2]|0)+((c[Q+44>>2]|0)*20|0)+4>>2]|0)+(c[o+(n*20|0)+4>>2]|0)|0)*40|0)|0,4096);Q=v;w=o;R=T;S=U;break}case 1010:{ee=0;if(c[Qb>>2]&16777216){w=c[o+(n*20|0)+8>>2]|0;Q=Ob;w=fw(c[Q>>2]|0,c[Q+4>>2]|0,w|0,((w|0)<0)<<31>>31|0)|0;Q=Ob;c[Q>>2]=w;c[Q+4>>2]=C;Q=v;w=o;R=T;S=U;r=G;break}p=c[o+(n*20|0)+8>>2]|0;r=((p|0)<0)<<31>>31;if(!(c[o+(n*20|0)+4>>2]|0)){w=Wd;w=fw(c[w>>2]|0,c[w+4>>2]|0,p|0,r|0)|0;Q=Wd;c[Q>>2]=w;c[Q+4>>2]=C;Q=v;w=o;R=T;S=U;r=G;break}else{w=Nb;w=fw(c[w>>2]|0,c[w+4>>2]|0,p|0,r|0)|0;Q=Nb;c[Q>>2]=w;c[Q+4>>2]=C;Q=v;w=o;R=T;S=U;r=G;break}}case 1015:{ee=0;if(!(c[o+(n*20|0)+4>>2]|0)){S=Wd;if(!((c[S>>2]|0)==0&(c[S+4>>2]|0)==0)){Q=v;w=o;R=T;S=U;break}S=Ob;if(!((c[S>>2]|0)==0&(c[S+4>>2]|0)==0)){Q=v;w=o;R=T;S=U;break}Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0;break}else{S=Nb;if(!((c[S>>2]|0)==0&(c[S+4>>2]|0)==0)){Q=v;w=o;R=T;S=U;break}S=Ob;if(!((c[S>>2]|0)==0&(c[S+4>>2]|0)==0)){Q=v;w=o;R=T;S=U;break}Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0;break}}case 1022:{ee=0;p=c[pb>>2]|0;if(!p)s=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;else{while(1){r=c[p+4>>2]|0;if(!r)break;else p=r}s=(c[p+16>>2]|0)+((c[o+(n*20|0)+4>>2]|0)*40|0)|0}R=Rg(s)|0;S=s;c[S>>2]=R;c[S+4>>2]=C;S=s+8|0;b[S>>1]=e[S>>1]&48640|4;S=c[o+(n*20|0)+8>>2]|0;R=v+(S*40|0)|0;p=Rg(R)|0;r=C;c[R>>2]=p;c[R+4>>2]=r;S=v+(S*40|0)+8|0;b[S>>1]=e[S>>1]&48640|4;S=s;R=c[S+4>>2]|0;if((R|0)<(r|0)|((R|0)==(r|0)?(c[S>>2]|0)>>>0<p>>>0:0)){Q=s;c[Q>>2]=p;c[Q+4>>2]=r;Q=v;w=o;R=T;S=U;r=J}else{Q=v;w=o;R=T;S=U;r=J}break}case 1028:{ee=0;S=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;R=c[S+4>>2]|0;if((R|0)>0|(R|0)==0&(c[S>>2]|0)>>>0>0){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 1030:{ee=0;Q=c[o+(n*20|0)+12>>2]|0;R=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;S=R;Q=fw(c[S>>2]|0,c[S+4>>2]|0,Q|0,((Q|0)<0)<<31>>31|0)|0;S=C;c[R>>2]=Q;c[R+4>>2]=S;if((S|0)<0){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 1032:{ee=0;p=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;s=p;r=c[s>>2]|0;s=c[s+4>>2]|0;if((r|0)==0&(s|0)==0){Q=v;w=o;R=T;S=U;r=G}else{w=c[o+(n*20|0)+12>>2]|0;w=fw(w|0,((w|0)<0)<<31>>31|0,r|0,s|0)|0;Q=p;c[Q>>2]=w;c[Q+4>>2]=C;Q=v;w=o;R=T;S=U;r=G;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}break}case 1034:{ee=0;Q=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;R=Q;R=fw(c[R>>2]|0,c[R+4>>2]|0,-1,-1)|0;S=C;c[Q>>2]=R;c[Q+4>>2]=S;if((R|0)==0&(S|0)==0){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 1036:{ee=0;Q=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;S=Q;R=c[S>>2]|0;S=c[S+4>>2]|0;P=fw(R|0,S|0,1,0)|0;c[Q>>2]=P;c[Q+4>>2]=C;if((R|0)==0&(S|0)==0){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 1157:{ee=0;Q=v;w=o;R=T;S=U;n=(c[o+(p*20|0)+8>>2]|0)+-1|0;break}case 1158:{ee=0;if(c[o+(n*20|0)+4>>2]|0){b[Ud>>1]=b[Ud>>1]|8;Q=v;w=o;R=T;S=U;break}p=c[Sb>>2]|0;if(!p){Q=v;w=o;R=T;S=U}else{do{S=p+88|0;b[S>>1]=b[S>>1]|8;p=c[p+52>>2]|0}while((p|0)!=0);Q=v;w=o;R=T;S=U}break}case 1166:{ee=0;G=(c[s>>2]|0)+72|0;p=c[G>>2]|0;D:do if(p){while(1){if((c[p+4>>2]|0)==(x|0)?(c[p>>2]|0)==(z|0):0)break;p=c[p+12>>2]|0;if(!p){ee=1171;break D}}if(!p)ee=1171}else ee=1171;while(0);if((ee|0)==1171){ee=0;p=mg(16,0)|0;if(!p){p=n;o=7;q=t;ee=1309;break c}S=p+0|0;D=S+12|0;do{a[S>>0]=0;S=S+1|0}while((S|0)<(D|0));c[p+4>>2]=x;c[p>>2]=z;c[p+12>>2]=c[G>>2];c[G>>2]=p}p=p+8|0;if((d[p>>0]|0)<(w&255)){a[p>>0]=w;Q=v;w=o;R=T;S=U}else{Q=v;w=o;R=T;S=U}break}case 1213:{ee=0;c[pd>>2]=0;w=c[(c[o+(n*20|0)+16>>2]|0)+8>>2]|0;if(!w){p=n;o=6;q=t;ee=1309;break c}s=c[w>>2]|0;if(!s){p=n;o=6;q=t;ee=1309;break c}z=nc[c[s+24>>2]&127](w,pd)|0;Im(f,w);if(z){p=n;o=z;q=t;ee=1309;break c}c[c[pd>>2]>>2]=w;p=tm(f,c[o+(n*20|0)+4>>2]|0,0,-1,0)|0;if(!p){a[ce>>0]=1;hc[c[s+28>>2]&127](c[pd>>2]|0)|0;Q=v;w=o;R=T;S=U;break}else{c[p+32>>2]=c[pd>>2];Q=w+4|0;c[Q>>2]=(c[Q>>2]|0)+1;Q=v;w=o;R=T;S=U;break}}case 1226:{ee=0;p=v+(z*40|0)+8|0;if(!(b[p>>1]&9312)){b[p>>1]=1;Q=v;w=o;R=T;S=U;break}else{rg(x);Q=v;w=o;R=T;S=U;break}}case 1257:{ee=0;Q=r;c[Q>>2]=c[(c[(c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+4>>2]|0)+4>>2]|0)+44>>2];c[Q+4>>2]=0;Q=v;w=o;R=T;S=U;break}case 1258:{ee=0;w=c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+4>>2]|0;p=c[o+(n*20|0)+12>>2]|0;r=c[w+4>>2]|0;if(!p)p=0;else{S=c[r+44>>2]|0;p=S>>>0<p>>>0?p:S}c[r+4>>2]=c[w>>2];r=(c[r>>2]|0)+156|0;if((p|0)>0)c[r>>2]=p;else p=c[r>>2]|0;Q=G;c[Q>>2]=p;c[Q+4>>2]=((p|0)<0)<<31>>31;Q=v;w=o;R=T;S=U;r=G;break}case 1264:{ee=0;n=c[o+(p*20|0)+8>>2]|0;n=(n|0)==0?p:n+-1|0;if((c[Pa>>2]|0)!=0?(b[Ud>>1]&512)==0:0){p=c[o+(p*20|0)+16>>2]|0;if(!p){p=c[_d>>2]|0;if(!p){Q=v;w=o;R=T;S=U;r=J;break}}c[Pd>>2]=0;r=c[f>>2]|0;z=c[r+88>>2]|0;c[cb>>2]=Kd;c[db>>2]=Kd;c[eb>>2]=0;c[fb>>2]=100;c[gb>>2]=z;a[hb>>0]=1;a[ib>>0]=0;c[nd>>2]=r;z=a[p>>0]|0;w=z<<24>>24==0;E:do if((c[r+160>>2]|0)>1){if(!w){w=z;while(1){r=p;do{r=r+1|0;if(w<<24>>24==10)break;w=a[r>>0]|0}while(w<<24>>24!=0);Ok(nd,42288,3);Ok(nd,p,r-p|0);w=a[r>>0]|0;if(!(w<<24>>24))break;else p=r}}}else if(!w){s=r+62|0;w=z;K=1;do{F:do if(!(w<<24>>24)){x=0;w=0}else{z=p;w=0;while(1){x=yn(z,ge)|0;if((c[ge>>2]|0)==135)break F;w=x+w|0;z=z+x|0;if(!(a[z>>0]|0)){x=0;break}}}while(0);Ok(nd,p,w);z=p+w|0;if(!x)break E;do if((a[z>>0]|0)==63)if((x|0)>1){zn(p+(w+1)|0,Pd)|0;z=c[Pd>>2]|0;break}else{c[Pd>>2]=K;z=K;break}else{z=mh(f,z,x)|0;c[Pd>>2]=z}while(0);p=p+(w+x)|0;K=z+1|0;G=z+-1|0;F=c[xb>>2]|0;z=F+(G*40|0)|0;x=e[F+(G*40|0)+8>>1]|0;do if(!(x&1)){if(x&4){Q=z;R=c[Q+4>>2]|0;S=ge;c[S>>2]=c[Q>>2];c[S+4>>2]=R;An(nd,0,19920,ge);break}if(x&8){h[k>>3]=+h[z>>3];c[ge>>2]=c[k>>2];c[ge+4>>2]=c[k+4>>2];An(nd,0,20272,ge);break}if(!(x&2)){if(x&16384){c[ge>>2]=c[z>>2];An(nd,0,42304,ge);break}Ok(nd,42320,2);B=c[F+(G*40|0)+12>>2]|0;if((B|0)>0){z=F+(G*40|0)+16|0;x=0;do{c[ge>>2]=d[(c[z>>2]|0)+x>>0];An(nd,0,42328,ge);x=x+1|0}while((x|0)!=(B|0))}Ok(nd,42336,1);break}else{B=a[s>>0]|0;if(B<<24>>24==1){S=c[F+(G*40|0)+16>>2]|0;c[ge>>2]=c[F+(G*40|0)+12>>2];c[ge+4>>2]=S;An(nd,0,42296,ge);break}S=Ld+0|0;D=S+40|0;do{c[S>>2]=0;S=S+4|0}while((S|0)<(D|0));c[kb>>2]=r;Tg(Ld,c[F+(G*40|0)+16>>2]|0,c[F+(G*40|0)+12>>2]|0,B,0)|0;S=c[lb>>2]|0;if(!((S&2|0)==0|(S&16711680|0)==65536))xn(Ld,1)|0;S=c[nb>>2]|0;c[ge>>2]=c[mb>>2];c[ge+4>>2]=S;An(nd,0,42296,ge);if((b[lb>>1]&9312)==0&(c[ob>>2]|0)==0)break;Mg(Ld);break}}else Ok(nd,20304,4);while(0);w=a[p>>0]|0}while(w<<24>>24!=0)}while(0);Q=pg(nd)|0;fc[c[Pa>>2]&15](c[jb>>2]|0,Q);ig(he,Q);Q=v;w=o;R=T;S=U;r=J}else{Q=v;w=o;R=T;S=U;r=J}break}}if((ee|0)==28){ee=0;v=o+(n*20|0)+4|0;p=c[v>>2]|0;if(p){u=v;ee=34;break}v=c[pb>>2]|0;if(!v){ee=30;break}c[pb>>2]=c[v+4>>2];c[qb>>2]=(c[qb>>2]|0)+-1;l=c[rb>>2]|0;c[sb>>2]=l;c[tb>>2]=(c[tb>>2]|0)+l;v=Tl(v)|0;l=je;w=c[wc>>2]|0;if((c[o+(n*20|0)+8>>2]|0)==4)n=(c[w+(v*20|0)+8>>2]|0)+-1|0;else n=v;m=c[l>>2]|0;l=c[l+4>>2]|0;Q=c[Kc>>2]|0;R=T;S=U}else if((ee|0)==488){ee=0;w=om(he,z,x)|0;if(!w){Q=v;w=o;R=T;S=U}else{p=n;q=w;ee=1318;break}}v=Q;o=w;T=R;U=S;p=n+1|0}switch(ee|0){case 30:{c[ie>>2]=p;a[be>>0]=c[o+(n*20|0)+8>>2];c[de>>2]=n;ee=41;break}case 34:{c[ie>>2]=p;a[be>>0]=c[o+(n*20|0)+8>>2];c[de>>2]=n;p=a[o+(n*20|0)+3>>0]|0;if(!(p<<24>>24)){o=c[o+(n*20|0)+16>>2]|0;if(!o){o=0;ee=39}else{c[ge>>2]=o;$g(fe,he,10344,ge)}}else{q=c[41536+((p&255)+-1<<2)>>2]|0;p=c[o+(n*20|0)+16>>2]|0;if(!p){o=q;ee=39}else{c[ge>>2]=q;c[ge+4>>2]=p;$g(fe,he,41624,ge)}}if((ee|0)==39){c[ge>>2]=o;$g(fe,he,41656,ge)}ee=c[u>>2]|0;md=c[_d>>2]|0;nd=c[fe>>2]|0;c[ge>>2]=n;c[ge+4>>2]=md;c[ge+8>>2]=nd;Zc(ee,41600,ge);ee=41;break}case 80:{t=c[Zd>>2]|0;if(!((t|0)==0|g>>>0<u>>>0)?(hc[t&127](c[Vd>>2]|0)|0)!=0:0){n=m;o=9;m=q;ee=1311;break a}nd=Wd;md=c[nd+4>>2]|0;if((md|0)>0|(md|0)==0&(c[nd>>2]|0)>>>0>0){o=c[f>>2]|0;c[ie>>2]=787;a[be>>0]=2;$g(fe,o,34376,ge);o=1;ee=1309;break}t=Xl(f,1)|0;if(!t){c[Xd>>2]=(c[Xd>>2]|0)+2|1;u=c[o+(p*20|0)+4>>2]|0;c[$d>>2]=v+(u*40|0);n=o+(p*20|0)+8|0;if((c[n>>2]|0)>0){t=0;do{r=t+u|0;s=v+(r*40|0)|0;r=v+(r*40|0)+8|0;o=b[r>>1]|0;if(o&4096){if(Rl(s)|0){u=ce;v=fe;n=m;m=q;ee=1317;break a}o=b[r>>1]|0}if((o&514)==2)Yl(s)|0;t=t+1|0}while((t|0)<(c[n>>2]|0))}if(a[ce>>0]|0){u=ce;v=fe;n=m;m=q;ee=1317;break a}c[de>>2]=p+1;n=m;m=g;g=100;break a}else{o=t;ee=1309}break}case 313:{c[ge>>2]=73058;c[ge+4>>2]=10788;Zc(11,13600,ge);o=11;ee=1309;break}case 343:{c[ge>>2]=73142;c[ge+4>>2]=10788;Zc(11,13600,ge);o=11;ee=1309;break}case 447:{$g(fe,he,41712,ge);p=n;o=5;ee=1309;break}case 460:{c[ge>>2]=o;$g(fe,he,41768,ge);o=1;ee=1309;break}case 462:{$g(fe,he,41792,ge);o=5;ee=1309;break}case 467:{c[de>>2]=g;a[ae>>0]=0;c[ie>>2]=5;g=5;break a}case 489:{r=c[o+(p*20|0)+4>>2]|0;o=c[o+(p*20|0)+8>>2]|0;g=(r|0)!=0;if(g){o=(o|0)!=0;if(!(o|(a[ae>>0]|0)!=0))if((c[Yd>>2]|0)>0){$g(fe,he,41848,ge);g=m;m=n;o=5;ee=1309;break}else o=0}else o=(o|0)!=0;if((r|0)==(d[ae>>0]|0)){if(g)g=o?41952:42e3;else g=41904;$g(fe,he,g,ge);g=m;m=n;o=1;ee=1309;break}if(!o){g=pm(f,1)|0;if(g)break a;a[ae>>0]=r;if((Nl(f)|0)==5){c[de>>2]=p;a[ae>>0]=1-r;c[ie>>2]=5;g=5;break a}}else{Gl(he,516);a[ae>>0]=1}Hl(he);g=(c[ie>>2]|0)==0?101:1;break a}case 508:{c[de>>2]=g;c[ie>>2]=5;g=5;break a}case 522:{ig(he,c[fe>>2]|0);c[fe>>2]=gh(he,16040)|0;o=c[o>>2]|0;if((c[c[(c[Td>>2]|0)+(o<<4)+12>>2]>>2]|0)!=(r|0))rm(he,o);b[Ud>>1]=b[Ud>>1]|8;o=17;ee=1309;break}case 542:{c[ge>>2]=73997;c[ge+4>>2]=10788;ZcZc(11,13600,ge);o=11;ee=1309;break}case 1316:{$g(fe,he,10096,ge);n=m;o=18;m=q;ee=1311;break a}}if((ee|0)==41)if((Nl(f)|0)==5){c[ie>>2]=5;n=m;m=g;g=5;break a}else{n=m;m=g;g=(c[ie>>2]|0)!=0?1:101;break a}else if((ee|0)==1309){n=m;p=p+1|0;m=q;ee=1311;break a}else if((ee|0)==1318){q=(a[ce>>0]|0)==0?q:7;if((q|0)==3082){n=m;o=3082;m=t;ee=1311;break a}else if((q|0)!=516){n=q&255;if(n>>>0>26|(n|0)==2)o=16328;else o=c[15488+(n<<2)>>2]|0}else o=16344;c[ge>>2]=o;$g(fe,he,10344,ge);n=m;o=q;m=t;ee=1311;break a}}else{q=f+44|0;n=m;g=0;p=0;m=0}while(0);c[ie>>2]=9;c[ge>>2]=15832;$g(q,he,10344,ge);o=9;ee=1311}while(0);if((ee|0)==1317){a[u>>0]=1;$g(v,he,15776,ge);o=7;ee=1311}if((ee|0)==1311){c[ie>>2]=o;md=c[f+168>>2]|0;nd=c[f+44>>2]|0;c[ge>>2]=p;c[ge+4>>2]=md;c[ge+8>>2]=nd;Zc(o,42256,ge);Nl(f)|0;if((o|0)==3082)a[he+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{rm(he,(m&255)+-1|0);m=g;g=1}}nd=je;c[nd>>2]=n;c[nd+4>>2]=l;nd=f+124|0;c[nd>>2]=(c[nd>>2]|0)+m;i=ke;return g|0}
16 var Xb=[Nw,qe];var Yb=[Ow,hi,mi,oi,ri,ti,me,se,rf,Tf,Uf,Bf,Af,Df,Ke,zf,Cf,yf,te,Mf,lf,Ce,Bc,Ff,Je,af,bg,Uc,Ci,Hi,Ki,ak,gk,ok,Pw,Qw,Rw,qk,xp,yp,wp,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow,Ow];var Zb=[Sw,Fd];var _b=[Tw,Sc,Xe,uf,Dd,Nd,Md,Nc,Gi,Oi,Pi,Ri,Wi,_i,Bj,Cj,Dj,Fj,Hj,kk,mo,up,ml,Tw,Tw,Tw,Tw,Tw,Tw,Tw,Tw,Tw];var $b=[Uw,xd];var ac=[Vw,_d];var bc=[Ww,yd];var cc=[Xw,pd];var dc=[Yw,df,ff,Mc,gf,ef,rk,Yw];var ec=[Zw,Xf,wf,Zw];var fc=[_w,ni,Bd,Jd,Kd,Ld,_c,Ii,Ni,nu,ou,_w,_w,_w,_w,_w];var gc=[$w,We,Rf,ke,ax,$w,$w,$w];var hc=[bx,Ud,ue,nf,pf,Vd,bf,cf,Wd,ye,ad,Jf,Oe,If,hd,id,Vf,mf,Pc,jd,Od,of,Pd,ld,nd,od,qd,rd,De,md,sd,td,ud,vd,kd,Ie,Fe,Oc,Kc,Yf,Gc,Jc,Qd,gd,dd,fd,ed,Cc,Ac,jf,Kf,$e,qf,kf,Lf,Ae,ze,Qe,Re,Rc,zi,Fi,Ji,Qi,Ti,Ui,Vi,Zj,hk,ik,cx,dx,ex,sk,wk,Tk,cl,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx,bx];var ic=[fx,li,zd,Ad,Cd,Zc,Li,Xi,Yi,Zi,$i,aj,bj,cj,dj,ej,fj,gj,hj,ij,jj,kj,lj,mj,nj,oj,pj,qj,rj,sj,tj,uj,vj,wj,xj,yj,zj,Aj,Ej,Gj,Ij,Jj,Kj,Lj,Mj,Nj,Oj,Pj,Qj,Rj,Sj,Tj,Uj,Vj,Wj,Xj,Yj,Ph,fx,fx,fx,fx,fx,fx];var jc=[gx,Wf,Se,gx];var kc=[hx,vf,xf,Ee];var lc=[ix,ii,ji,ne,Ye,Yc,Ge,He,_f,Of,Ec,bd,cg,Xc,Pe,jk,nk,zc,zh,Bh,Fh,Qh,Xm,$p,ix,ix,ix,ix,ix,ix,ix,ix];var mc=[jx,sf,wd,Ed,Gd,Hd,Id,Td,Mi,lg,jx,jx,jx,jx,jx,jx];var nc=[kx,ki,pi,qi,si,ui,vi,wi,xi,yi,Rd,oe,we,ve,tf,Xd,Yd,Zd,he,ie,$d,ae,fe,ge,be,de,ee,ce,_e,Sd,Wc,Nf,Pf,Tc,xe,Vc,Ic,$f,Zf,Be,cd,Lc,Ef,Hf,dg,eg,$c,ag,Qc,Le,Di,Ei,Si,bk,ck,dk,ek,fk,lk,lx,mx,nx,ox,px,qx,pk,rx,sx,tk,uk,vk,xk,yk,zk,Lh,tp,zm,Am,ls,ms,Vs,Ws,cu,du,ku,lu,mu,lv,Ov,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx,kx];var oc=[tx,le];var pc=[ux,gi,je,pe,re,Qf,Sf,Me,Te,Ue,Ne,Ve,Ze,Fc,Gf,Ai,Bi,_j,$j,mk,Ak,Qn,Rn,ux,ux,ux,ux,ux,ux,ux,ux,ux];return{_i64Subtract:$v,_strcat:dw,_free:Tv,_main:yc,_realloc:Uv,_i64Add:fw,_memmove:hw,_bitshift64Ashr:aw,_strlen:cw,_memset:bw,_malloc:Sv,_memcpy:gw,_bitshift64Lshr:iw,_llvm_bswap_i32:jw,_bitshift64Shl:ew,runPostSets:_v,stackAlloc:qc,stackSave:rc,stackRestore:sc,setThrew:tc,setTempRet0:wc,getTempRet0:xc,dynCall_iiiiiiii:sw,dynCall_iiii:tw,dynCall_viiiiii:uw,dynCall_vi:vw,dynCall_viiiii:ww,dynCall_dii:xw,dynCall_vid:yw,dynCall_di:zw,dynCall_i:Aw,dynCall_iiiiiiiiii:Bw,dynCall_vii:Cw,dynCall_iiiiiii:Dw,dynCall_ii:Ew,dynCall_viii:Fw,dynCall_v:Gw,dynCall_iiiiiiiii:Hw,dynCall_iiiii:Iw,dynCall_viiii:Jw,dynCall_iii:Kw,dynCall_iiid:Lw,dynCall_iiiiii:Mw}})