Lines Matching refs:Xq
6 >>>0>=10?(ki(c,f)|0)==27:0)?!((f|0)==0|g<<24>>24!=0):0)j=0;else{i[a+d>>0]=34;j=1;e=i[c>>0]|0;d=d+1|0}if(e<<24>>24){f=c;h=0;do{g=d+1|0;i[a+d>>0]=e;if((i[f>>0]|0)==34){i[a+g>>0]=34;d=d+2|0}else d=g;h=h+1|0;f=c+h|0;e=i[f>>0]|0}while(e<<24>>24!=0)}if(j){i[a+d>>0]=34;d=d+1|0}i[a+d>>0]=0;k[b>>2]=d;return}function us(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+20|0;d=i[c>>0]|0;if(d<<24>>24==2?(k[b+4>>2]&1|0)!=0:0){i[c>>0]=0;c=2}else e=4;a:do if((e|0)==4)switch(l[b>>0]|0|0){case 135:if(d<<24>>24==4){i[c>>0]=0;c=2;break a}else if(d<<24>>24==5){i[b>>0]=101;c=0;break a}else{c=0;break a}case 153:{if((d&255)>3){c=0;break a}if(k[b+4>>2]&524288){c=0;break a}i[c>>0]=0;c=2;break a}case 156:case 155:case 154:case 27:{if(d<<24>>24==3?(k[b+28>>2]|0)==(k[a+24>>2]|0):0){c=0;break a}i[c>>0]=0;c=2;break a}default:{c=0;break a}}while(0);return c|0}function vs(a,b){a=a|0;b=b|0;i[a+20>>0]=0;return 2}function ws(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if(!b)b=0;else{c=wc[k[a>>2]&127](a,b)|0;do if((c|0)==0?(d=b+4|0,(k[d>>2]&16384|0)==0):0){if(ws(a,k[b+12>>2]|0)|0){b=2;break a}if(ws(a,k[b+16>>2]|0)|0){b=2;break a}b=b+20|0;if(!(k[d>>2]&2048))if(!(qu(a,k[b>>2]|0)|0))break;else{b=2;break a}else if(!(pu(a,k[b>>2]|0)|0))break;else{b=2;break a}}while(0);b=c&2}while(0);return b|0}function xs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;do if(b){if(c){if((ru(b)|0)==0?(ru(c)|0)==0:0){d=rh(a,48,0)|0;if(d){e=d+0|0;f=e+48|0;do{i[e>>0]=0;e=e+1|0}while((e|0)<(f|0));i[d>>0]=72;j[d+34>>1]=-1;k[d+24>>2]=1}ys(a,d,b,c);b=d;break}Lk(a,b);Lk(a,c);b=sr(a,132,20616,0)|0}}else b=c;while(0);return b|0}function ys(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!b){Lk(a,c);Lk(a,d)}else{if(d){k[b+16>>2]=d;a=b+4|0;k[a>>2]=k[a>>2]|k[d+4>>2]&2097408}if(c){k[b+12>>2]=c;a=b+4|0;k[a>>2]=k[a>>2]|k[c+4>>2]&2097408}Nt(b)}return}function zs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,l=0;f=b<<16>>16;h=(f<<2)+63&-8;i=f<<1;l=i+2|0;g=(f+7+i+l&-8)+h|0;e=g+c|0;c=rh(a,e,((e|0)<0)<<31>>31)|0;if(c){kw(c|0,0,e|0)|0;k[c+32>>2]=c+56;k[c+8>>2]=c+h;e=h+l|0;k[c+4>>2]=c+e;k[c+28>>2]=c+(e+i);j[c+48>>1]=b;j[c+46>>1]=f+65535;k[d>>2]=c+g}return c|0}function As(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+16|0;if((r|0)>=(s|0))ka();t=z;n=k[b+12>>2]|0;l=a+68|0;w=k[l>>2]|0;y=w+1|0;k[l>>2]=w+2;j=k[a>>2]|0;g=k[b+24>>2]|0;a:do if(g){e=k[j+20>>2]|0;if((e|0)>0){d=k[j+16>>2]|0;h=0;while(1){f=h+1|0;if((k[d+(h<<4)+12>>2]|0)==(g|0)){f=h;break a}if((f|0)<(e|0))h=f;else break}}else f=0}else f=-1e6;while(0);if((XqXq
7 function Yt(a,b){a=a|0;b=b|0;var c=0;if(b&1)if(!(k[a+12>>2]|0))b=(k[a+20>>2]|0)==0?12:28;else b=28;else b=48;if((k[a+4>>2]&1024|0)==0?(c=k[a+8>>2]|0,(c|0)!=0):0){a=c;while(1)if(!(i[a>>0]|0))break;else a=a+1|0;b=(b|1)+(a-c&1073741823)|0}return b+7&-8|0}function Zt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=k[a>>2]|0;g=d+20|0;c=k[g>>2]|0;if((c|0)>0){f=0;e=k[d+16>>2]|0;while(1){d=k[(k[e+12>>2]|0)+16>>2]|0;if(d){c=d;do{_t(a,k[c+8>>2]|0,b);c=k[c>>2]|0}while((c|0)!=0);c=k[g>>2]|0}f=f+1|0;if((f|0)>=(c|0))break;else e=e+16|0}}return}function _t(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,l=0,m=0,n=0;d=k[b+8>>2]|0;if(d){m=(c|0)==0;i=b+68|0;l=a+408|0;do{a:do if(!m){g=d+32|0;b=j[d+48>>1]|0;if(b<<16>>16){f=k[d+4>>2]|0;b=b&65535;e=0;do{if((j[f+(e<<1)>>1]|0)>-1?(id(k[(k[g>>2]|0)+(e<<2)>>2]|0,c)|0)==0:0){n=9;break a}e=e+1|0}while((e|0)<(b|0))}}else n=9;while(0);if((n|0)==9){n=0;b=k[a>>2]|0;e=k[i>>2]|0;b:do if(e){h=k[b+20>>2]|0;if((h|0)>0){f=k[b+16>>2]|0;g=0;while(1){b=g+1|0;if((k[f+(g<<4)+12>>2]|0)==(e|0)){b=g;break b}if((b|0)<(h|0))g=b;else break}}else b=0}else b=-1e6;while(0);h=k[l>>2]|0;Fr(a,b);h=((h|0)==0?a:h)+328|0;k[h>>2]=k[h>>2]|1<<b;As(a,d,-1)}d=k[d+20>>2]|0}while((d|0)!=0)}return}function $t(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=k[(k[(k[a>>2]|0)+16>>2]|0)+(b<<4)+12>>2]|0;f=k[a+408>>2]|0;Fr(a,b);f=((f|0)==0?a:f)+328|0;k[f>>2]=k[f>>2]|1<<b;f=a+68|0;d=k[f>>2]|0;k[f>>2]=d+3;mv(a,b,d,0,0);e=(k[a+72>>2]|0)+1|0;f=k[f>>2]|0;c=k[c+16>>2]|0;if(c)do{nv(a,k[c+8>>2]|0,0,d,e,f);c=k[c>>2]|0}while((c|0)!=0);ov(a,b);return}function au(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=k[a>>2]|0;g=k[b+68>>2]|0;a:do if(g){h=k[d+20>>2]|0;if((h|0)>0){e=k[d+16>>2]|0;d=0;while(1){f=d+1|0;if((k[e+(d<<4)+12>>2]|0)==(g|0)){f=d;break a}if((f|0)<(h|0))d=f;else break}}else f=0}else f=-1e6;while(0);d=k[a+408>>2]|0;Fr(a,f);d=((d|0)==0?a:d)+328|0;k[d>>2]=k[d>>2]|1<<f;d=a+68|0;e=k[d>>2]|0;k[d>>2]=e+3;if(!c)mv(a,f,e,k[b>>2]|0,28544);else mv(a,f,e,k[c>>2]|0,28536);nv(a,b,c,e,(k[a+72>>2]|0)+1|0,k[d>>2]|0);ov(a,f);return}function bu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=((c|0)/2|0)+1|0;e=rh(a,e,((e|0)<0)<<31>>31)|0;a=c+-1|0;if(e){if((a|0)>0){d=0;do{f=i[b+d>>0]|0;g=i[b+(d|1)>>0]|0;i[e+((d|0)/2|0)>>0]=(0-(g>>>6&1)&9)+g&15|(0-(f>>>6&1)&9)+f<<4;d=d+2|0}while((d|0)<(a|0));a=(c&-2|0)/2|0}else a=0;i[e+a>>0]=0}return e|0}function cu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();f=j+8|0;h=j;g=k[a+8>>2]|0;e=b+8|0;do if(!(k[b+4>>2]&1024)){e=k[e>>2]|0;b=oi(e,h)|0;if((b|0)!=0?!((b|0)==2&(c|0)!=0):0)if(!(Kc(e,29144,2)|0)){k[f>>2]=e;yh(a,29152,f);break}else{du(g,e,c,d);break}if(c){if((b|0)==2){b=0;e=-2147483648}else{b=h;b=iw(0,0,k[b>>2]|0,k[b+4>>2]|0)|0;e=L}c=h;k[c>>2]=b;k[c+4>>2]=e}b=rh(k[g>>2]|0,8,0)|0;if(b){c=h;f=k[c>>2]|0;c=k[c+4>>2]|0;e=b;a=e;i[a>>0]=f;i[a+1>>0]=f>>8;i[a+2>>0]=f>>16;i[a+3>>0]=f>>24;e=e+4|0;i[e>>0]=c;i[e+1>>0]=c>>8;i[e+2>>0]=c>>16;i[e+3>>0]=c>>24}Ch(g,Bh(g,26,0,d,0)|0,b,-13)}else{b=k[e>>2]|0;Bh(g,25,(c|0)==0?b:0-b|0,d,0)|0}while(0);r=j;return}function du(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;if(b){e=b;while(1)if(!(i[e>>0]|0))break;else e=e+1|0;Yl(b,f,e-b&1073741823,1)|0;if(c)p[f>>3]=-+p[f>>3];e=rh(k[a>>2]|0,8,0)|0;if(e){b=f;h=k[b>>2]|0;b=k[b+4>>2]|0;c=e;f=c;i[f>>0]=h;i[f+1>>0]=h>>8;i[f+2>>0]=h>>16;i[f+3>>0]=h>>24;c=c+4|0;i[c>>0]=b;i[c+1>>0]=b>>8;i[c+2>>0]=b>>16;i[c+3>>0]=b>>24}Ch(a,Bh(a,133,0,d,0)|0,e,-12)}r=g;return}function eu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+32|0;if((r|0)>=(s|0))ka();e=j;a:do if(!b)g=0;else while(1){d=k[b+4>>2]|0;if(!(d&4096)){g=b;break a}if(!(d&262144))b=b+12|0;else b=k[(k[b+20>>2]|0)+4>>2]|0;b=k[b>>2]|0;if(!b){g=0;break}}while(0);b:do if(((i[a+23>>0]|0)!=0?(i[g>>0]|0)!=-97:0)?(k[e+0>>2]=0,k[e+4>>2]=0,k[e+8>>2]=0,k[e+12>>2]=0,k[e+16>>2]=0,k[e+20>>2]=0,d=e+20|0,i[d>>0]=2,k[e>>2]=78,k[e+4>>2]=79,k[e+24>>2]=0,ws(e,g)|0,(i[d>>0]|0)!=0):0){d=k[a+316>>2]|0;k[c>>2]=0;c:do if((d|0)!=0?(f=k[d>>2]|0,(f|0)>0):0){b=f;d=k[d+4>>2]|0;while(1){if((i[d+13>>0]&4)!=0?(Hu(k[d>>2]|0,g,-1)|0)==0:0)break;b=b+-1|0;if((b|0)<=0)break c;else d=d+20|0}d=k[d+16>>2]|0;break b}while(0);b=a+72|0;d=(k[b>>2]|0)+1|0;k[b>>2]=d;Lt(a,g,d,1)}else h=18;while(0);do if((h|0)==18){b=a+19|0;d=i[b>>0]|0;if(!(d<<24>>24)){b=a+72|0;d=(k[b>>2]|0)+1|0;k[b>>2]=d}else{d=d+-1<<24>>24;i[b>>0]=d;d=k[a+((d&255)<<2)+24>>2]|0}b=ns(a,g,d)|0;if((b|0)==(d|0)){k[c>>2]=d;break}else{ds(a,d);k[c>>2]=0;d=b;break}}while(0);r=j;return d|0}function fu(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;var j=0,l=0;l=Tu(a,b,c)|0;j=Gu(b,pv(c)|0)|0;c=a+8|0;b=k[c>>2]|0;Ch(b,Bh(b,d,f,g,e)|0,l,-4);c=k[c>>2]|0;b=k[c+4>>2]|0;if(b)i[b+(((k[c+32>>2]|0)+-1|0)*20|0)+3>>0]=j&255|h;return}function gu(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0;b=a+100|0;k[b>>2]=(k[b>>2]|0)+-1;e=a+19|0;h=0;j=a+116|0;while(1){f=j+12|0;g=k[f>>2]|0;if((g|0)!=0?(k[j+8>>2]|0)>(k[b>>2]|0):0){c=j+6|0;if(i[c>>0]|0){d=i[e>>0]|0;if((d&255)<8){i[e>>0]=d+1<<24>>24;k[a+((d&255)<<2)+24>>2]=g}i[c>>0]=0}k[f>>2]=0}h=h+1|0;if((h|0)==10)break;else j=j+20|0}return}function hu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=k[a>>2]|0;a:do if(b){b:while(1){d=k[b+4>>2]|0;if(d&512){b=0;h=21;break a}switch(i[b>>0]|0){case 62:case -102:case -100:{h=8;break}case 38:case -98:{b=k[b+12>>2]|0;break}case 95:{h=7;break b}case -97:{if((i[b+38>>0]|0)==95){h=7;break b}else h=8;break}default:h=11}if((h|0)==8){c=k[b+44>>2]|0;if(!c)h=11;else{h=9;break}}c:do if((h|0)==11){h=0;if(!(d&256)){b=0;h=21;break a}c=k[b+12>>2]|0;if((c|0)!=0?(k[c+4>>2]&256|0)!=0:0){b=c;continue b}e=k[b+16>>2]|0;c=k[b+20>>2]|0;if((c|0)!=0&(d&2048|0)==0?(f=k[c>>2]|0,(f|0)>0):0){c=k[c+4>>2]|0;d=0;while(1){b=k[c+(d*20|0)>>2]|0;d=d+1|0;if(k[b+4>>2]&256)break c;if((d|0)>=(f|0)){b=e;break}}}else b=e}while(0);if(!b){b=0;h=21;break a}}if((h|0)==7)b=Bs(a,i[g+62>>0]|0,0,k[b+8>>2]|0)|0;else if((h|0)==9){b=j[b+32>>1]|0;if(b<<16>>16<=-1){b=0;h=21;break}b=bo(g,i[g+62>>0]|0,k[(k[c+4>>2]|0)+((b<<16>>16)*24|0)+16>>2]|0,0)|0}if(b)if(!(Bs(a,i[(k[a>>2]|0)+62>>0]|0,b,k[b>>2]|0)|0))b=0;else h=21;else{b=0;h=21}}else{b=0;h=21}while(0);return b|0}function iu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0;p=r;r=r+16|0;if((r|0)>=(s|0))ka();o=p+4|0;n=p;k[o>>2]=0;k[n>>2]=0;if((((d|0)!=0?(i[d>>0]|0)==-102:0)?(g=k[d+44>>2]|0,(g|0)!=0):0)?(i[g+44>>0]&16)!=0:0){d=g+60|0;while(1){d=k[d>>2]|0;if((k[d>>2]|0)==(a|0))break;else d=d+24|0}f=k[d+8>>2]|0;e=(k[f>>2]|0)+72|0;if((k[e>>2]|0)!=0?(l=b+24|0,h=ph(a,k[l>>2]|0)|0,(h|0)!=0):0){g=i[h>>0]|0;if(g<<24>>24){d=h;do{i[d>>0]=i[9328+(g&255)>>0]|0;d=d+1|0;g=i[d>>0]|0}while(g<<24>>24!=0)}c=yc[k[e>>2]&31](f,c,h,o,n)|0;rg(a,h);if(c){d=k[l>>2]|0;if(!d){d=37;f=0}else{f=d;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;d=(f-d&1073741823)+37|0;f=0}e=rh(a,d,f)|0;if(e){kw(e|0,0,d|0)|0;g=e+0|0;f=b+0|0;d=g+36|0;do{k[g>>2]=k[f>>2];g=g+4|0;f=f+4|0}while((g|0)<(d|0));g=e+36|0;k[e+24>>2]=g;d=k[l>>2]|0;if(!d)f=1;else{f=d;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;f=(f-d&1073741823)+1|0}pw(g|0,d|0,f|0)|0;k[e+12>>2]=k[o>>2];k[e+4>>2]=k[n>>2];n=e+2|0;j[n>>1]=m[n>>1]|16}else e=b}else e=b}else e=b}else e=b;r=p;return e|0}function ju(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+80|0;if((r|0)>=(s|0))ka();x=z;v=z+72|0;m=z+52|0;w=z+48|0;l=z+28|0;y=Tq(a)|0;a:do if(!y)e=0;else{e=a+100|0;k[e>>2]=(k[e>>2]|0)+1;e=b+4|0;if(!(k[e>>2]&32)){o=Tq(a)|0;j=a+80|0;f=k[j>>2]|0;k[j>>2]=f+1;f=Bh(o,44,f,0,0)|0}else f=-1;if((i[a+450>>0]|0)==2){h=k[a>>2]|0;j=(i[b>>0]|0)==75?29104:29112;o=k[a+468>>2]|0;k[x>>2]=(f|0)>-1?10360:29088;k[x+4>>2]=j;k[x+8>>2]=o;h=zh(h,29056,x)|0;Ch(y,Bh(y,157,k[a+464>>2]|0,0,0)|0,h,-1);h=b}else h=b;j=i[h>>0]|0;b:do if(j<<24>>24==75){l=b+12|0;g=pv(k[l>>2]|0)|0;i[v>>0]=g;q=a+68|0;t=k[q>>2]|0;k[q>>2]=t+1;q=b+28|0;k[q>>2]=t;p=(d|0)!=0;t=Bh(y,57,t,p&1^1,0)|0;if(p)u=0;else u=Ws(k[a>>2]|0,1,1)|0;j=b+20|0;do if(!(k[e>>2]&2048)){j=k[j>>2]|0;if(j){if(!(g<<24>>24))i[v>>0]=65;if(u){o=hu(a,k[l>>2]|0)|0;k[u+20>>2]=o}d=a+19|0;g=i[d>>0]|0;if(g<<24>>24){o=g+-1<<24>>24;i[d>>0]=o;h=k[a+((o&255)<<2)+24>>2]|0;if(!(o<<24>>24))n=24;else{o=g+-2<<24>>24;i[d>>0]=o;o=k[a+((o&255)<<2)+24>>2]|0}}else{n=a+72|0;h=(k[n>>2]|0)+1|0;k[n>>2]=h;n=24}if((n|0)==24){n=a+72|0;o=(k[n>>2]|0)+1|0;k[n>>2]=o}if(p)Bh(y,28,0,o,0)|0;l=k[j>>2]|0;if((l|0)>0){g=x+20|0;e=x+4|0;n=x+24|0;m=y+32|0;d=k[j+4>>2]|0;while(1){j=k[d>>2]|0;do if((f|0)>-1){k[x+0>>2]=0;k[x+4>>2]=0;k[x+8>>2]=0;k[x+12>>2]=0;k[x+16>>2]=0;k[x+20>>2]=0;i[g>>0]=1;k[x>>2]=78;k[e>>2]=79;k[n>>2]=0;ws(x,j)|0;if(i[g>>0]|0)break;Eh(y,f);f=-1}while(0);do if(p)if(!(Rs(j,w)|0)){j=ns(a,j,h)|0;Bh(y,38,j,(k[m>>2]|0)+2|0,0)|0;Bh(y,75,k[q>>2]|0,o,j)|0;break}else{Bh(y,84,k[q>>2]|0,o,k[w>>2]|0)|0;break}else{j=ns(a,j,h)|0;Ch(y,Bh(y,49,j,1,o)|0,v,1);it(a,j,1);Bh(y,110,k[q>>2]|0,o,0)|0}while(0);l=l+-1|0;if((l|0)<=0)break;else d=d+20|0}}ds(a,h);ds(a,o)}if(!u){g=f;e=0;break b}}else{h=k[j>>2]|0;o=k[q>>2]|0;i[m>>0]=11;k[m+4>>2]=o;k[m+8>>2]=0;k[m+12>>2]=0;i[m+1>>0]=g;k[h+8>>2]=0;if(!(nr(a,h,m)|0)){o=Tu(a,k[l>>2]|0,k[k[(k[h>>2]|0)+4>>2]>>2]|0)|0;k[u+20>>2]=o;break}if(!u){e=0;break a}o=(k[u>>2]|0)+-1|0;k[u>>2]=o;if(o){e=0;break a}$c(u);e=0;break a}while(0);Ch(y,t,u,-6);g=f;e=0}else{g=k[b+20>>2]|0;h=a+72|0;e=(k[h>>2]|0)+1|0;k[h>>2]=e;i[l>>0]=0;h=l+4|0;k[h>>2]=e;i[l+1>>0]=0;d=l+8|0;k[d>>2]=0;k[l+12>>2]=0;if(j<<24>>24==119){i[l>>0]=10;k[d>>2]=e;Bh(y,28,0,e,0)|0}else{i[l>>0]=3;Bh(y,25,0,e,0)|0}o=g+60|0;Lk(k[a>>2]|0,k[o>>2]|0);n=cr(a,132,0,0,20624)|0;k[o>>2]=n;k[g+8>>2]=0;if(nr(a,g,l)|0){e=0;break a}g=f;e=k[h>>2]|0}while(0);if(c)qv(y,k[b+28>>2]|0,c);if((g|0)>-1){f=k[y+32>>2]|0;if(f>>>0>g>>>0)k[(k[y+4>>2]|0)+(g*20|0)+8>>2]=f;k[(k[y+24>>2]|0)+88>>2]=f+-1}gu(a)}while(0);r=z;return e|0}function ku(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+16|0;if((r|0)>=(s|0))ka();h=y+4|0;v=y+8|0;t=y;k[h>>2]=0;x=k[a+8>>2]|0;e=(c|0)==(d|0);g=rv(a,b,3,e?0:h)|0;j=sv(b)|0;i[v>>0]=j;j=a+100|0;k[j>>2]=(k[j>>2]|0)+1;j=a+19|0;f=i[j>>0]|0;if(!(f<<24>>24)){p=a+72|0;w=(k[p>>2]|0)+1|0;k[p>>2]=w}else{w=f+-1<<24>>24;i[j>>0]=w;w=k[a+((w&255)<<2)+24>>2]|0}f=b+12|0;Wq(a,k[f>>2]|0,w);do if((g|0)==5){p=k[b+20>>2]|0;n=hu(a,k[f>>2]|0)|0;q=Cs(x)|0;o=(d|0)!=(c|0);if(o){f=i[j>>0]|0;if(!(f<<24>>24)){m=a+72|0;f=(k[m>>2]|0)+1|0;k[m>>2]=f}else{f=f+-1<<24>>24;i[j>>0]=f;f=k[a+((f&255)<<2)+24>>2]|0}Bh(x,85,w,w,f)|0;m=f}else m=0;if((k[p>>2]|0)>0){j=p+4|0;h=(m|0)==0;g=x+4|0;f=x+32|0;e=0;do{b=eu(a,k[(k[j>>2]|0)+(e*20|0)>>2]|0,t)|0;if(!h?(Zu(k[(k[j>>2]|0)+(e*20|0)>>2]|0)|0)!=0:0)Bh(x,85,m,b,m)|0;if((e|0)<((k[p>>2]|0)+-1|0)|o){Ch(x,Bh(x,79,w,q,b)|0,n,-4);b=k[g>>2]|0;if(b)i[b+(((k[f>>2]|0)+-1|0)*20|0)+3>>0]=i[v>>0]|0}else{Ch(x,Bh(x,78,w,c,b)|0,n,-4);b=k[g>>2]|0;if(b)i[b+(((k[f>>2]|0)+-1|0)*20|0)+3>>0]=l[v>>0]|0|16}ds(a,k[t>>2]|0);e=e+1|0}while((e|0)<(k[p>>2]|0))}if(m){Bh(x,76,m,d,0)|0;Bh(x,16,0,c,0)|0}f=k[x+24>>2]|0;e=~q;if((q|0)<0?(u=k[f+112>>2]|0,(u|0)!=0):0)k[u+(e<<2)>>2]=k[x+32>>2];k[f+88>>2]=(k[x+32>>2]|0)+-1;ds(a,m)}else{do if(Zu(k[f>>2]|0)|0){if(e){Bh(x,76,w,c,0)|0;break}f=Bh(x,77,w,0,0)|0;Bh(x,108,k[b+28>>2]|0,c,0)|0;Bh(x,16,0,d,0)|0;e=k[x+32>>2]|0;if(e>>>0>f>>>0)k[(k[x+4>>2]|0)+(f*20|0)+8>>2]=e;k[(k[x+24>>2]|0)+88>>2]=e+-1}while(0);if((g|0)==1){Bh(x,38,w,c,0)|0;Bh(x,70,k[b+28>>2]|0,c,w)|0;break}Ch(x,Bh(x,48,w,1,0)|0,v,1);e=k[b+28>>2]|0;if(!(k[h>>2]|0)){Ch(x,Bh(x,68,e,c,w)|0,1,-14);break}f=Bh(x,69,e,0,w)|0;Ch(x,f,1,-14);Bh(x,76,k[h>>2]|0,d,0)|0;Bh(x,16,0,c,0)|0;e=k[x+32>>2]|0;if(e>>>0>f>>>0)k[(k[x+4>>2]|0)+(f*20|0)+8>>2]=e;k[(k[x+24>>2]|0)+88>>2]=e+-1}while(0);ds(a,w);gu(a);r=y;return}function lu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0.0,n=0,o=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=r;r=r+48|0;if((r|0)>=(s|0))ka();B=C;z=C+28|0;c=k[a+24>>2]|0;A=k[c>>2]|0;x=b+4|0;f=k[x>>2]|0;a:do if(!(f&4)){k[x>>2]=f|4;switch(l[b>>0]|0){case 153:{w=b+20|0;t=k[w>>2]|0;if(!t)e=0;else e=k[t>>2]|0;f=i[(k[A>>2]|0)+62>>0]|0;y=c+28|0;if(j[y>>1]&16){k[B>>2]=27200;yh(A,27512,B)}u=k[b+8>>2]|0;if(!u)o=0;else{g=u;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;o=g-u&1073741823}d=Xh(k[A>>2]|0,u,o,e,f,0)|0;do if(!d){if(Xh(k[A>>2]|0,u,o,-2,f,0)|0){k[B>>2]=o;k[B+4>>2]=u;yh(A,27392,B);u=c+24|0;k[u>>2]=(k[u>>2]|0)+1;break}if(!(i[(k[A>>2]|0)+145>>0]|0)){k[B>>2]=o;k[B+4>>2]=u;yh(A,27368,B);u=c+24|0;k[u>>2]=(k[u>>2]|0)+1}}else{n=(k[d+12>>2]|0)==0;v=d+2|0;do if(j[v>>1]&1024){k[x>>2]=k[x>>2]|266240;if((e|0)!=2){k[b+28>>2]=(i[k[d+24>>2]>>0]|0)==117?8388608:125829120;break}g=k[(k[t+4>>2]|0)+20>>2]|0;p[B>>3]=-1.0;if((i[g>>0]|0)==-123){f=k[g+8>>2]|0;if(!f)g=0;else{g=f;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=g-f&1073741823}Yl(f,B,g,1)|0;h=+p[B>>3];if(!(h>1.0)){g=~~(h*134217728.0);k[b+28>>2]=g;if((g|0)>=0)break}else q=22}else q=22;if((q|0)==22)k[b+28>>2]=-1;yh(A,27216,B);q=c+24|0;k[q>>2]=(k[q>>2]|0)+1}while(0);g=d+24|0;f=XqXq)!=0?(g=k[e>>2]|0,(g|0)>0):0){d=0;do{i=Gv(a,k[e+(d*72|0)+28>>2]|0)|0;b=L|b;j=Fv(a,k[e+(d*72|0)+52>>2]|0)|0;c=i|c|j;b=b|L;d=d+1|0}while((d|0)<(g|0))}f=k[f+52>>2]|0}while((f|0)!=0)}L=b;return c|0}function Hv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0;l=j[b+18>>1]|0;h=j[c+18>>1]|0;e=h|l;if(((!((l&62)==0|(h&62)==0)?(d=e&65535,(d&26|0)==(d|0)|(d&38|0)==(d|0)):0)?(g=k[b>>2]|0,f=k[c>>2]|0,(Hu(k[g+12>>2]|0,k[f+12>>2]|0,-1)|0)==0):0)?(Hu(k[g+16>>2]|0,k[f+16>>2]|0,-1)|0)==0:0){if(d+65535&d)e=(d&24|0)==0?32:8;f=Rr(k[k[k[a>>2]>>2]>>2]|0,g,0,0)|0;if(f){e=e&65535;d=79;while(1)if((e|0)==(2<<d+-79|0))break;else d=d+1|0;i[f>>0]=d;Ju(a,Ev(a,f,3)|0)}}return}function Iv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,l=0,n=0;k[a>>2]=b;k[a+4>>2]=b;a:do if((f|0)!=0&(d|0)>-1){i[a+12>>0]=i[(k[(k[f+12>>2]|0)+4>>2]|0)+(d*24|0)+21>>0]|0;g=k[f+4>>2]|0;if((j[g>>1]|0)==(d|0))b=0;else{h=m[f+48>>1]|0;l=0;while(1){b=l+1|0;if((l|0)>(h|0)){b=0;break a}if((j[g+(b<<1)>>1]|0)==(d|0))break;else l=b}}k[a+8>>2]=k[(k[f+32>>2]|0)+(b<<2)>>2];n=8}else{i[a+12>>0]=0;k[a+8>>2]=0;n=8}while(0);if((n|0)==8){k[a+16>>2]=e;k[a+20>>2]=0;k[a+24>>2]=c;k[a+28>>2]=d;i[a+13>>0]=2;i[a+14>>0]=2;b=Jv(a)|0}return b|0}
8 |0)+1|0)>>>0<(k[a+20>>2]|0)>>>0?(k[j+16>>2]|0)>>>0<(k[j+4>>2]|0)>>>0:0){if((k[3155]|0)!=0?((k[a+8>>2]|0)+(k[a+4>>2]|0)|0)<=(k[3154]|0):0)c=12648|0;else c=9060|0;if(!(k[c>>2]|0)){n=23;break}}c=d+20|0;e=k[c>>2]|0;f=(k[e+44>>2]|0)+((((k[d+8>>2]|0)>>>0)%((k[e+40>>2]|0)>>>0)|0)<<2)|0;while(1){r=k[f>>2]|0;g=r+16|0;if((r|0)==(d|0))break;else f=g}k[f>>2]=k[g>>2];g=e+36|0;k[g>>2]=(k[g>>2]|0)+-1;lo(d);c=k[c>>2]|0;if(((k[c+8>>2]|0)+(k[c+4>>2]|0)|0)==((k[a+8>>2]|0)+(k[a+4>>2]|0)|0)){l=j+16|0;k[l>>2]=(k[h>>2]|0)-(k[c+12>>2]|0)+(k[l>>2]|0);break}else{no(d);n=23;break}}else n=23;while(0);if((n|0)==23){if(o?(l=k[3164]|0,(l|0)!=0):0)sc[l&3]();c=a+4|0;e=Lo((k[c>>2]|0)+32+(k[a+8>>2]|0)|0)|0;c=k[c>>2]|0;d=e+c|0;if(e){k[d>>2]=e;k[e+(c+4)>>2]=e+(c+32);if(k[h>>2]|0){n=(k[a>>2]|0)+16|0;k[n>>2]=(k[n>>2]|0)+1}}else d=0;if(o?(p=k[3166]|0,(p|0)!=0):0)sc[p&3]();if(!d){d=0;break}}e=(b>>>0)%((k[m>>2]|0)>>>0)|0;k[q>>2]=(k[q>>2]|0)+1;k[d+8>>2]=b;n=a+44|0;k[d+16>>2]=k[(k[n>>2]|0)+(e<<2)>>2];k[d+20>>2]=a;k[d+28>>2]=0;k[d+24>>2]=0;i[d+12>>0]=1;k[k[d+4>>2]>>2]=0;k[(k[n>>2]|0)+(e<<2)>>2]=d;e=a+28|0;if((k[e>>2]|0)>>>0<b>>>0)k[e>>2]=b}while(0);return d|0}function no(a){a=a|0;var b=0;if((a|0)!=0?(b=k[a+20>>2]|0,el(k[a>>2]|0),(k[b+12>>2]|0)!=0):0){b=(k[b>>2]|0)+16|0;k[b>>2]=(k[b>>2]|0)+-1}return}function oo(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=a+40|0;if(k[f>>2]|0){g=a+44|0;d=a+36|0;e=0;do{c=(k[g>>2]|0)+(e<<2)|0;a=k[c>>2]|0;a:do if(a)do{while(1){if((k[a+8>>2]|0)>>>0<b>>>0)break;k[d>>2]=(k[d>>2]|0)+-1;k[c>>2]=k[a+16>>2];if(!(i[a+12>>0]|0))lo(a);no(a);a=k[c>>2]|0;if(!a)break a}c=a+16|0;a=k[c>>2]|0}while((a|0)!=0);while(0);e=e+1|0}while(e>>>0<(k[f>>2]|0)>>>0)}return}function po(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=k[a>>2]|0;e=k[(k[d+32>>2]|0)+88>>2]|0;f=((e|0)<0)<<31>>31;if(!((f|0)<(c|0)|(f|0)==(c|0)&e>>>0<b>>>0)){b=vg(b,c)|0;if(!b){Wd(a);b=0}}else{k[a+20>>2]=18;i[a+25>>0]=1;ah(d,10096,-1,1,0)|0;b=0}return b|0}function qo(a){a=a|0;var b=0,c=0,d=0,e=0;do if(a){b=i[a>>0]|0;c=b<<24>>24;if((c|0)==91)e=93;else if((c|0)==96|(c|0)==34|(c|0)==39)e=b;else break;c=1;d=0;while(1){b=i[a+c>>0]|0;if(b<<24>>24==e<<24>>24){c=c+1|0;b=a+d|0;if((i[a+c>>0]|0)!=e<<24>>24)break;i[b>>0]=e}else i[a+d>>0]=b;c=c+1|0;d=d+1|0}i[b>>0]=0}while(0);return}function ro(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,n=0,o=0,q=0.0,t=0.0,u=0.0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0;Q=r;r=r+176|0;if((r|0)>=(s|0))ka();N=Q+64|0;n=Q+132|0;j=Q+128|0;h=Q+124|0;o=Q+56|0;K=Q+48|0;O=Q+136|0;M=Q;g=d+0|0;f=g+48|0;do{k[g>>2]=0;g=g+4|0}while((g|0)<(f|0));a:do if(b){e=k[c>>2]|0;b:do if(((l[10064+(m[e+8>>1]&31)>>0]|0)+-1|0)>>>0>=2){g=Xg(e,1)|0;if(!g){e=1;break a}f=(i[g>>0]|0)==45;e=f?g+1|0:g;k[N>>2]=4;k[N+4>>2]=0;k[N+8>>2]=9999;k[N+12>>2]=45;k[N+16>>2]=n;k[N+20>>2]=2;k[N+24>>2]=1;k[N+28>>2]=12;k[N+32>>2]=45;k[N+36>>2]=j;k[N+40>>2]=2;k[N+44>>2]=1;k[N+48>>2]=31;k[N+52>>2]=0;k[N+56>>2]=h;do if((wq(e,N)|0)==3){e=e+10|0;while(1){H=i[e>>0]|0;if(H<<24>>24==84?1:(i[10368+(H&255)>>0]&1)!=0)e=e+1|0;else break}if(xq(e,d)|0){if(i[e>>0]|0)break;i[d+41>>0]=0}i[d+42>>0]=0;i[d+40>>0]=1;H=k[n>>2]|0;k[d+8>>2]=f?0-H|0:H;k[d+12>>2]=k[j>>2];k[d+16>>2]=k[h>>2];if(!(i[d+43>>0]|0))break b;so(d);break b}while(0);if(xq(g,d)|0){if(!(id(g,20080)|0))if(!(vq(a,d)|0))break;else{e=1;break a}else e=g;while(1)if(!(i[e>>0]|0))break;else e=e+1|0;if(!(Yl(g,o,e-g&1073741823,1)|0)){e=1;break a}q=+p[o>>3]*864.0e5+.5;G=+W(q)>=1.0?(q>0.0?~~+ia(+V(q/4294967296.0),4294967295.0)>>>0:~~+ga((q-+(~~q>>>0))/4294967296.0)>>>0):0;H=d;k[H>>2]=~~q>>>0;k[H+4>>2]=G;i[d+42>>0]=1}}else{q=+Zg(e)*864.0e5+.5;G=+W(q)>=1.0?(q>0.0?~~+ia(+V(q/4294967296.0),4294967295.0)>>>0:~~+ga((q-+(~~q>>>0))/4294967296.0)>>>0):0;H=d;k[H>>2]=~~q>>>0;k[H+4>>2]=G;i[d+42>>0]=1}while(0);if((b|0)>1){e=d+40|0;v=d+41|0;w=d+43|0;x=d+42|0;y=O+8|0;z=y;A=O+9|0;B=d+24|0;C=d+20|0;D=d+32|0;E=d+16|0;F=d+12|0;G=O+1|0;H=d+8|0;I=1;while(1){j=Xg(k[c+(I<<2)>>2]|0,1)|0;if(!j){e=1;break a}k[N>>2]=1;o=0;do{n=i[j+o>>0]|0;if(!(n<<24>>24))break;i[O+o>>0]=i[9328+(n&255)>>0]|0;o=o+1|0}while((o|0)<29);i[O+o>>0]=0;c:do switch(i[O>>0]|0){case 108:{if(!(dw(O,19936)|0)){so(d);f=yq(d,a,N)|0;P=d;f=ow(k[P>>2]|0,k[P+4>>2]|0,f|0,L|0)|0;P=d;k[P>>2]=f;k[P+4>>2]=L;i[e>>0]=0;i[v>>0]=0;i[w>>0]=0;P=82}else P=82;break}case 117:{if((dw(O,19952)|0)==0?(i[x>>0]|0)!=0:0){f=d;f=ow(k[f>>2]|0,k[f+4>>2]|0,43200,0)|0;f=vw(f|0,L|0,86400,0)|0;f=ow(f|0,L|0,1045635584,49096)|0;o=d;k[o>>2]=f;k[o+4>>2]=L;i[e>>0]=0;i[v>>0]=0;i[w>>0]=0;k[N>>2]=0;o=0;break c}if(!(dw(O,19968)|0)){so(d);n=yq(d,a,N)|0;j=L;o=k[N>>2]|0;if(!o){f=d;f=iw(k[f>>2]|0,k[f+4>>2]|0,n|0,j|0)|0;P=d;k[P>>2]=f;k[P+4>>2]=L;i[e>>0]=0;i[v>>0]=0;i[w>>0]=0;P=yq(d,a,N)|0;P=iw(n|0,j|0,P|0,L|0)|0;f=d;f=ow(P|0,L|0,k[f>>2]|0,k[f+4>>2]|0)|0;P=d;k[P>>2]=f;k[P+4>>2]=L;P=82}}else P=82;break}case 115:{if(!(ew(O,19992,9)|0)){to(d);i[v>>0]=1;k[B>>2]=0;k[C>>2]=0;p[D>>3]=0.0;i[w>>0]=0;i[x>>0]=0;if(!(dw(A,20008)|0)){k[E>>2]=1;k[N>>2]=0;o=0;break c}if(!(dw(A,20016)|0)){to(d);k[F>>2]=1;k[E>>2]=1;k[N>>2]=0;o=0;break c}if(!(dw(A,20024)|0)){k[N>>2]=0;o=0}else P=82}else P=82;break}case 119:{if(!(ew(O,19976,8)|0)){o=y;while(1)if(!(i[o>>0]|0))break;else o=o+1|0;if((Yl(y,K,o-z&1073741823,1)|0)!=0?(q=+p[K>>3],J=~~q,+(J|0)==q&(J|0)>-1&q<7.0):0){to(d);uo(d);i[w>>0]=0;i[x>>0]=0;so(d);f=d;o=k[f>>2]|0;f=k[f+4>>2]|0;j=ow(o|0,f|0,1296e5,0)|0;j=vw(j|0,L|0,864e5,0)|0;j=ww(j|0,L|0,7,0)|0;g=L;R=((J|0)<0)<<31>>31;h=(g|0)>(R|0)|(g|0)==(R|0)&j>>>0>J>>>0;n=ow(j|0,g|0,-7,-1)|0;g=iw(J|0,R|0,(h?n:j)|0,(h?L:g)|0)|0;g=xw(g|0,L|0,864e5,0)|0;f=ow(g|0,L|0,o|0,f|0)|0;o=d;k[o>>2]=f;k[o+4>>2]=L;i[e>>0]=0;i[v>>0]=0;i[w>>0]=0;k[N>>2]=0;o=0}else P=82}else P=82;break}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:case 45:case 43:{j=1;while(1){o=O+j|0;n=i[o>>0]|0;if(n<<24>>24==58|n<<24>>24==0){n=o;break}if(!(i[10368+(n&255)>>0]&1))j=j+1|0;else{n=o;break}}if(!(Yl(O,K,j,1)|0)){k[N>>2]=1;o=1;break c}o=i[n>>0]|0;if(o<<24>>24==58){o=((l[O>>0]|0)+-48|0)>>>0<10?O:G;g=M+0|0;f=g+48|0;do{k[g>>2]=0;g=g+4|0}while((g|0)<(f|0));if(xq
11 function rq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0;da=r;r=r+192|0;if((r|0)>=(s|0))ka();_=da+48|0;Y=da+24|0;X=da+160|0;E=da+156|0;P=da+152|0;H=da+148|0;S=da+144|0;K=da+140|0;D=da+16|0;ba=da;v=da+128|0;u=da+116|0;w=da+96|0;e=da+88|0;ca=a+8|0;$=k[ca>>2]|0;aa=k[a>>2]|0;k[ba+0>>2]=k[9286];k[ba+4>>2]=k[9287];k[ba+8>>2]=k[9288];a:do switch(b|0){case 8:{v=k[$>>2]|0;z=v+65|0;if(((i[z>>0]|0)==0?(i[$+18>>0]|0)==0:0)?(V=$+64|0,(k[V>>2]|0)==0):0){y=Tq($)|0;if(y){do{}while((Uq(y,61)|0)!=0);Bh(y,24,0,0,0)|0;do if(!(i[z>>0]|0)){h=$+332|0;q=k[h>>2]|0;if((q|0)==0?(k[$+316>>2]|0)==0:0)break;n=y+32|0;o=k[n>>2]|0;if(o)k[(k[y+4>>2]|0)+8>>2]=o;k[(k[y+24>>2]|0)+88>>2]=o+-1;t=v+20|0;b:do if((k[t>>2]|0)>0){c=y+96|0;d=$+328|0;e=v+16|0;f=v+145|0;g=y+4|0;p=0;while(1){u=1<<p;if(((u&q|0)!=0?(k[c>>2]=k[c>>2]|u,_=k[(k[(k[e>>2]|0)+(p<<4)+12>>2]|0)+4>>2]|0,Ch(y,Bh(y,4,p,(k[d>>2]&u|0)!=0&1,k[$+(p<<2)+336>>2]|0)|0,_,-14),(i[f>>0]|0)==0):0)?(J=k[g>>2]|0,(J|0)!=0):0)i[J+(((k[n>>2]|0)+-1|0)*20|0)+3>>0]=1;p=p+1|0;if((p|0)>=(k[t>>2]|0))break b;q=k[h>>2]|0}}while(0);n=$+452|0;if((k[n>>2]|0)>0){h=$+520|0;g=0;do{o=k[(k[(k[h>>2]|0)+(g<<2)>>2]|0)+60>>2]|0;c:do if(!o)o=0;else while(1){if((k[o>>2]|0)==(v|0))break c;o=k[o+24>>2]|0;if(!o){o=0;break}}while(0);Ch(y,Bh(y,146,0,0,0)|0,o,-10);g=g+1|0}while((g|0)<(k[n>>2]|0))}k[n>>2]=0;n=Tq($)|0;h=$+396|0;if((k[h>>2]|0)>0){g=$+400|0;f=0;do{Y=k[g>>2]|0;_=k[Y+(f<<4)+12>>2]|0;Ch(n,Bh(n,145,k[Y+(f<<4)>>2]|0,k[Y+(f<<4)+4>>2]|0,l[Y+(f<<4)+8>>0]|0)|0,_,-2);f=f+1|0}while((f|0)<(k[h>>2]|0))}d=k[$+8>>2]|0;o=k[$+404>>2]|0;if(o){c=(k[$>>2]|0)+16|0;p=d+32|0;q=d+4|0;do{h=k[o+8>>2]|0;n=k[o+12>>2]|0;Vq($,0,h,k[(k[(k[c>>2]|0)+(h<<4)+12>>2]|0)+72>>2]|0,54);h=n+1|0;Bh(d,28,0,n,h)|0;g=k[p>>2]|0;e=n+-1|0;f=k[k[o+4>>2]>>2]|0;Ch(d,Bh(d,97,0,e,0)|0,f,0);f=g+9|0;Bh(d,108,0,f,0)|0;Bh(d,47,0,0,n)|0;Bh(d,78,e,g+7|0,n)|0;e=k[q>>2]|0;if(e)i[e+(((k[p>>2]|0)+-1|0)*20|0)+3>>0]=16;Bh(d,103,0,h,0)|0;Bh(d,47,0,1,n)|0;Bh(d,16,0,f,0)|0;Bh(d,9,0,g+2|0,0)|0;Bh(d,25,0,n,0)|0;Bh(d,61,0,0,0)|0;o=k[o>>2]|0}while((o|0)!=0)}n=k[$+316>>2]|0;if((n|0)!=0?(i[$+23>>0]=0,(k[n>>2]|0)>0):0){h=n+4|0;g=0;do{_=k[h>>2]|0;Wq($,k[_+(g*20|0)>>2]|0,k[_+(g*20|0)+16>>2]|0);g=g+1|0}while((g|0)<(k[n>>2]|0))}Bh(y,16,0,1,0)|0}while(0);if((k[V>>2]|0)==0?(i[z>>0]|0)==0:0){if((k[$+404>>2]|0)!=0?(W=$+68|0,(k[W>>2]|0)==0):0)k[W>>2]=1;Fh(y,$);k[$+12>>2]=101;i[$+16>>0]=0}else Z=48}else Z=48;if((Z|0)==48)k[$+12>>2]=1;k[$+68>>2]=0;k[$+72>>2]=0;k[$+76>>2]=0;k[$+440>>2]=0;k[$+332>>2]=0}break}case 33:{_=a+(aa<<4)+16|0;_q($,0,0,0,k[_>>2]|0);Rk(k[$>>2]|0,k[_>>2]|0,1);break}case 35:{e=k[a+(aa<<4)+20>>2]|0;d=k[a+(aa<<4)+16>>2]|0;if((e|0)==5?(Kc(d,20456,5)|0)==0:0){i[ba>>0]=32;break a}i[ba>>0]=0;k[_>>2]=e;k[_+4>>2]=d;yh($,20464,_);break}case 26:{Zq($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0,k[a+(aa+-4<<4)+16>>2]|0,0,0,k[a+(aa+-2<<4)+16>>2]|0);break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{k[ba>>2]=0;break}case 27:{i[(k[$>>2]|0)+250>>0]=0;Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{k[ba>>2]=1;break}case 32:{_q($,a+(aa+-2<<4)+16|0,a+(aa+-1<<4)+16|0,i[a+(aa<<4)+16>>0]|0,0);break}case 34:{i[ba>>0]=0;break}case 62:{dr($,0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0,k[a+(aa+-2<<4)+16>>2]|0);break}case 63:{er($,0,0,0,0,k[a+(aa<<4)+16>>2]|0,0,0,0,0)|0;break}case 70:{k[ba>>2]=0;break}case 71:{k[ba>>2]=k[a+(aa+-1<<4)+16>>2]&~k[a+(aa<<4)+20>>2]|k[a+(aa<<4)+16>>2];break}case 73:case 72:{k[ba>>2]=0;k[ba+4>>2]=0;break}case 74:{k[ba>>2]=k[a+(aa<<4)+16>>2];k[ba+4>>2]=255;break}case 76:{k[ba>>2]=7;break}case 75:{k[ba>>2]=k[a+(aa<<4)+16>>2]<<8;k[ba+4>>2]=65280;break}case 6:{i[$+450>>0]=1;k[$+440>>2]=0;break}case 5:{i[$+450>>0]=0;k[$+440>>2]=0;break}case 9:{e=k[a+(aa+-1<<4)+16>>2]|0;d=k[$>>2]|0;if((Xq($,22,37104,0,0)|0)==0?(B=Tq($)|0,(B|0)!=0):0){if((e|0)!=7?(C=d+20|0,(k[C>>2]|0)>0):0){e=(e|0)==9?2:1;d=B+96|0;g=0;do{Bh(B,4,g,e,0)|0;k[d>>2]=k[d>>2]|1<<g;g=g+1|0}while((g|0)<(k[C>>2]|0))}Bh(B,3,0,0,0)|0}break}case 46:{$=k[a+(aa+-3<<4)+16>>2]|0;k[ba>>2]=$;k[ba+4>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-$;break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break}case 44:{e=a+(aa<<4)+16|0;d=k[$+484>>2]|0;if((d|0)!=0?(F=j[d+38>>1]|0,F<<16>>16>=1):0){_=(F<<16>>16)+-1|0;Z=k[d+4>>2]|0;$=$q(k[$>>2]|0,e)|0;k[Z+(_*24|0)+12>>2]=$;$=ar($,Z+(_*24|0)+22|0)|0;i[Z+(_*24|0)+21>>0]=$}break}case 58:{_=cr($,157,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[v>>2]=_;k[v+4>>2]=k[a+(aa+-1<<4)+16>>2];k[v+8>>2]=k[a+(aa<<4)+24>>2];br($,v);break}case 59:{_=a+(aa<<4)+16|0;Z=cr($,97,0,0,_)|0;k[u>>2]=Z;_=k[_>>2]|0;k[u+4>>2]=_;k[u+8>>2]=_+(k[a+(aa<<4)+20>>2]|0);br($,u);break}case 61:{d=k[a+(aa<<4)+16>>2]|0;e=k[$+484>>2]|0;if((e|0)!=0?(q=j[e+38>>1]|0,q<<16>>16>=1):0)i[(k[e+4>>2]|0)+(((q<<16>>16)+-1|0)*24|0)+20>>0]=d;break}case 7:{i[$+450>>0]=2;k[$+440>>2]=0;break}case 13:{k[ba>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{k[ba>>2]=l[a+(aa<<4)+14>>0];break}case 18:case 17:{if((Xq($,22,37136,0,0)|0)==0?(y=Tq($)|0,(y|0)!=0):0)Bh(y,3,1,0,0)|0;break}case 38:{_=k[a+(aa+-2<<4)+16>>2]|0;k[ba>>2]=_;k[ba+4>>2]=(k[$+504>>2]|0)-_+(k[$+508>>2]|0);break}case 39:{u=a+(aa<<4)+16|0;q=k[$>>2]|0;d=k[$+484>>2]|0;d:do if(d){t=d+38|0;if((j[t>>1]|0)>=(k[q+96>>2]|0)){k[_>>2]=k[d>>2];yh($,36528,_);break}p=$q(q,u)|0;if(p){n=j[t>>1]|0;c=n<<16>>16;e:do if(n<<16>>16>0){o=i[9328+(l[p>>0]|0)>>0]|0;g=k[d+4>>2]|0;h=p+1|0;e=0;while(1){f=k[g+(e*24|0)>>2]|0;if(o<<24>>24==(i[9328+(l[f>>0]|0)>>0]|0)?(id(h,f+1|0)|0)==0:0)break;e=e+1|0;if((e|0)>=(c|0))break e}k[_>>2]=p;yh($,36552,_);rg(q,p);break d}else g=k[d+4>>2]|0;while(0);h=d+4|0;do if(!(c&7)){g=wo(q,g,(c*24|0)+192|0,0)|0;if(!g){rg(q,p);break d}else{k[h>>2]=g;n=j[t>>1]|0;break}}while(0);_=n<<16>>16;Z=g+(_*24|0)|0;k[Z+0>>2]=0;k[Z+4>>2]=0;k[Z+8>>2]=0;k[Z+12>>2]=0;k[Z+16>>2]=0;k[Z+20>>2]=0;k[Z>>2]=p;i[g+(_*24|0)+21>>0]=65;i[g+(_*24|0)+22>>0]=1;j[t>>1]=(j[t>>1]|0)+1<<16>>16}}while(0);Y=u;Z=k[Y+4>>2]|0;_=ba;k[_>>2]=k[Y>>2];k[_+4>>2]=Z;k[$+324>>2]=0;break}case 47:{$=k[a+(aa+-5<<4)+16>>2]|0;k[ba>>2]=$;k[ba+4>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-$;break}case 49:{$=k[a+(aa+-1<<4)+16>>2]|0;k[ba>>2]=$;k[ba+4>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-$;break}case 92:case 54:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=$+320|0;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break}case 57:case 55:{br($,a+(aa<<4)+16|0);break}case 64:{fr($,k[a+(aa+-1<<4)+16>>2]|0);break}case 65:{gr($,0,a+(aa+-2<<4)+16|0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0);break}case 66:{d=k[a+(aa<<4)+16>>2]|0;e=k[$+484>>2]|0;if((e|0)!=0?(p=k[e+16>>2]|0,(p|0)!=0):0)i[p+24>>0]=d;break}case 67:{g=k[$+484>>2]|0;if((g|0)!=0?(A=(j[g+38>>1]|0)+-1|0,h=k[$>>2]|0,f=$q(h,a+(aa<<4)+16|0)|0,(f|0)!=0):0){if(!(hr($,f)|0)){rg(h,f);break a}n=g+4|0;rg(h,k[(k[n>>2]|0)+(A*24|0)+16>>2]|0);k[(k[n>>2]|0)+(A*24|0)+16>>2]=f;e=k[g+8>>2]|0;if(e)do{if((j[k[e+4>>2]>>1]|0)==(A|0))k[k[e+32>>2]>>2]=k[(k[n>>2]|0)+(A*24|0)+16>>2];e=k[e+20>>2]|0}while((e|0)!=0)}break}case 56:{br($,a+(aa+-1<<4)+16|0);break}case 226:{e=aa+-1|0;d=a+(e<<4)+16|0;h=a+(aa<<4)+16|0;g=ur(k[$>>2]|0,0,d,h)|0;n=aa+-3|0;f=cr($,75,k[a+(n<<4)+16>>2]|0,0,0)|0;k[ba>>2]=f;if(!f){Io(k[$>>2]|0,g);g=0}else{g=pr($,0,g,0,0,0,0,0,0,0)|0;k[f+20>>2]=g;g=k[ba>>2]|0;_=g+4|0;k[_>>2]=k[_>>2]|2099200;Dr($,g)}if(k[a+(aa+-2<<4)+16>>2]|0){$=cr($,19,g,0,0)|0;k[ba>>2]=$}k[ba+4>>2]=k[a+(n<<4)+20>>2];c=k[h>>2]|0;if(!c)c=(k[d>>2]|0)+(k[a+(e<<4)+20>>2]|0)|0;else c=c+(k[a+(aa<<4)+20>>2]|0)|0;k[ba+8>>2]=c;break}case 225:{e=aa+-4|0;c=cr($,75,k[a+(e<<4)+16>>2]|0,0,0)|0;k[ba>>2]=c;if(!c){Rk(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,1);c=0}else{k[c+20>>2]=k[a+(aa+-1<<4)+16>>2];c=k[ba>>2]|0;_=c+4|0;k[_>>2]=k[_>>2]|2099200;Dr($,c)}if(k[a+(aa+-3<<4)+16>>2]|0){$=cr($,19,c,0,0)|0;k[ba>>2]=$}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 227:{c=cr($,20,0,0,0)|0;k[ba>>2]=c;if(!c)Rk(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,1);else{k[c+20>>2]=k[a+(aa+-1<<4)+16>>2];_=c+4|0;k[_>>2]=k[_>>2]|2099200;Dr($,c)}k[ba+4>>2]=k[a+(aa+-3<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 228:{d=cr($,136,k[a+(aa+-3<<4)+16>>2]|0,0,0)|0;k[ba>>2]=d;if(!d){Sk(k[$>>2]|0,k[a+(aa+-2<<4)+16>>2]|0);Lk(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0)}else{e=k[a+(aa+-1<<4)+16>>2]|0;c=k[a+(aa+-2<<4)+16>>2]|0;if(e)c=qr($,c,e)|0;k[d+20>>2]=c;Dr($,k[ba>>2]|0)}k[ba+4>>2]=k[a+(aa+-4<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 291:case 240:{k[ba>>2]=2;break}case 241:{k[ba>>2]=0;break}case 239:{er($,a+(aa+-7<<4)+16|0,a+(aa+-6<<4)+16|0,ur(k[$>>2]|0,0,a+(aa+-4<<4)+16|0,0)|0,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa+-10<<4)+16>>2]|0,a+(aa+-11<<4)+16|0,k[a+(aa<<4)+16>>2]|0,0,k[a+(aa+-8<<4)+16>>2]|0)|0;break}case 229:{$=qr($,qr($,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 230:{$=qr($,qr($,0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 237:{$=qr($,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 238:{$=qr($,0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 245:{c=qr($,0,Ar($,0,a+(aa+-1<<4)+16|0,1)|0)|0;k[ba>>2]=c;rr($,c,a+(aa+-2<<4)+16|0,1);if(c){if((k[c>>2]|0)>(k[(k[$>>2]|0)+96>>2]|0)){k[_>>2]=20632;yh($,34544,_)}i[(k[c+4>>2]|0)+(((k[c>>2]|0)+-1|0)*20|0)+12>>0]=k[a+(aa<<4)+16>>2]}break}case 244:{c=Ar($,0,a+(aa+-1<<4)+16|0,1)|0;c=qr($,k[a+(aa+-4<<4)+16>>2]|0,c)|0;k[ba>>2]=c;rr($,c,a+(aa+-2<<4)+16|0,1);if(c){if((k[c>>2]|0)>(k[(k[$>>2]|0)+96>>2]|0)){k[_>>2]=20632;yh($,34544,_)}i[(k[c+4>>2]|0)+(((k[c>>2]|0)+-1|0)*20|0)+12>>0]=k[a+(aa<<4)+16>>2]}break}case 248:{q=k[a+(aa<<4)+16>>2]|0;n=k[a+(aa+-1<<4)+16>>2]|0;p=k[$>>2]|0;do if((i[p+65>>0]|0)==0?(Ln($)|0)==0:0){h=q+12|0;d=gq(p,k[q+16>>2]|0,k[h>>2]|0)|0;if(!d){if(!n){k[_>>2]=q;k[_+4>>2]=0;yh($,33056,_)}else Er($,k[h>>2]|0);i[$+17>>0]=1;break}if(i[d+51>>0]&3){k[_>>2]=0;yh($,33080,_);break}n=k[d+24>>2]|0;f:do if(n){h=k[p+20>>2]|0;if((h|0)>0){g=k[p+16>>2]|0;o=0;while(1){f=o+1|0;if((k[g+(o<<4)+12>>2]|0)==(n|0)){f=o;break f}if((f|0)<(h|0))o=f;else break}}else f=0}else f=-1e6;while(0);n=k[d+12>>2]|0;h=p+16|0;g=k[(k[h>>2]|0)+(f<<4)>>2]|0;e=(f|0)==1?13184:13208;if(((Xq($,9,e,0,g)|0)==0?(XqXq($,u|w?5:7,o,v,t)|0)==0?(Xq($,18,u?13184:13208,0,d)|0)==0:0){n=rh(F,36,0)|0;if(!n){n=0;break}v=n+0|0;d=v+36|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0));k[n>>2]=o;o=ph(F,k[D+16>>2]|0)|0;k[n+4>>2]=o;k[n+20>>2]=k[(k[x>>2]|0)+(q<<4)+12>>2];k[n+24>>2]=k[f>>2];i[n+8>>0]=y;i[n+9>>0]=g|(h|0)==35?1:2;o=Rr(F,E,1,0)|0;k[n+12>>2]=o;o=Sr(F,C)|0;k[n+16>>2]=o;k[$+488>>2]=n;o=0}else n=0}else n=0;else{n=0;o=0}}else{n=0;o=0}}else{n=0;o=0}}while(0);rg(F,o);Io(F,D);Mk(F,C);Lk(F,E);if(!(k[$+488>>2]|0))og(F,n);if(!(k[a+(z<<4)+20>>2]|0)){Z=A;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break a}else{Z=B;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break a}}case 269:case 266:{k[ba>>2]=35;break}case 267:{k[ba>>2]=31;break}case 268:{k[ba>>2]=49;break}case 284:{e=k[$>>2]|0;d=k[a+(aa+-1<<4)+16>>2]|0;c=k[a+(aa<<4)+16>>2]|0;f=i[a+(aa+-5<<4)+16>>0]|0;g=Tr(e,110,a+(aa+-4<<4)+16|0)|0;if(g){$=Ur(e,d,1)|0;k[g+24>>2]=$;$=Rr(e,c,1,0)|0;k[g+20>>2]=$;i[g+1>>0]=f}Sk(e,d);Lk(e,c);k[ba>>2]=g;break}case 271:case 270:{k[ba>>2]=l[a+(aa<<4)+14>>0];k[ba+4>>2]=0;break}case 272:{k[ba>>2]=110;k[ba+4>>2]=k[a+(aa<<4)+16>>2];break}case 296:case 275:{k[ba>>2]=0;break}case 297:case 276:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 277:{_=a+(aa+-1<<4)+16|0;$=a+(aa+-2<<4)+16|0;k[(k[(k[$>>2]|0)+36>>2]|0)+32>>2]=k[_>>2];k[(k[$>>2]|0)+36>>2]=k[_>>2];k[ba>>2]=k[$>>2];break}case 278:{$=a+(aa+-1<<4)+16|0;_=k[$>>2]|0;k[_+36>>2]=_;k[ba>>2]=k[$>>2];break}case 282:{yh($,20736,_);break}case 280:{X=a+(aa<<4)+16|0;Y=k[X+4>>2]|0;Z=ba;k[Z>>2]=k[X>>2];k[Z+4>>2]=Y;yh($,20640,_);break}case 283:{yh($,20824,_);break}case 286:{c=k[$>>2]|0;d=k[a+(aa<<4)+16>>2]|0;e=Tr(c,109,a+(aa+-2<<4)+16|0)|0;if(e){$=Rr(c,d,1,0)|0;k[e+20>>2]=$;i[e+1>>0]=10}Lk(c,d);k[ba>>2]=e;break}case 287:{e=k[$>>2]|0;g=k[a+(aa<<4)+16>>2]|0;c=rh(e,40,0)|0;if(!c){Rk(e,g,1);c=0}else{v=c+0|0;d=v+40|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0));i[c>>0]=119;k[c+8>>2]=g;i[c+1>>0]=10}k[ba>>2]=c;break}case 285:{g=k[$>>2]|0;f=k[a+(aa+-1<<4)+16>>2]|0;e=k[a+(aa<<4)+16>>2]|0;d=i[a+(aa+-4<<4)+16>>0]|0;c=Tr(g,108,a+(aa+-2<<4)+16|0)|0;if(!c)Mk(g,f);else{$=lr(g,e,1)|0;k[c+8>>2]=$;k[c+28>>2]=f;i[c+1>>0]=d}Rk(g,e,1);k[ba>>2]=c;break}case 288:{c=cr($,57,0,0,0)|0;k[ba>>2]=c;if(c)i[c+1>>0]=4;k[ba+4>>2]=k[a+(aa+-3<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 289:{c=cr($,57,0,0,a+(aa+-1<<4)+16|0)|0;k[ba>>2]=c;if(c)i[c+1>>0]=k[a+(aa+-3<<4)+16>>2];k[ba+4>>2]=k[a+(aa+-5<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 290:{k[ba>>2]=1;break}case 292:{k[ba>>2]=3;break}case 293:{d=k[a+(aa<<4)+16>>2]|0;c=k[a+(aa+-1<<4)+16>>2]|0;t=k[$>>2]|0;do if((i[t+65>>0]|0)==0?(Ln($)|0)==0:0){u=k[d+12>>2]|0;q=k[d+16>>2]|0;p=t+20|0;if((k[p>>2]|0)>0){g=(u|0)==0;f=t+16|0;e=0;n=0;do{h=(e|0)<2^e;o=k[f>>2]|0;if(!(!g?(id(k[o+(h<<4)>>2]|0,u)|0)!=0:0)){o=gn((k[o+(h<<4)+12>>2]|0)+40|0,q,H)|0;if(o){n=k[o+8>>2]|0;if(n)break}else n=0}e=e+1|0}while((e|0)<(k[p>>2]|0));if(n){Vr($,n);break}}if(!c){k[_>>2]=d;k[_+4>>2]=0;yh($,29600,_)}else Er($,u);i[$+17>>0]=1}while(0);Io(t,d);break}case 294:{_=k[a+(aa+-3<<4)+16>>2]|0;Wr($,24,29360,_,_,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0);break}case 303:{Yr($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0);break}case 304:{w=k[a+(aa+-3<<4)+16>>2]|0;u=a+(aa<<4)+16|0;v=k[$>>2]|0;d=v+24|0;e=k[d>>2]|0;do if((i[v+65>>0]|0)==0?(U=Zr($,0,w+8|0)|0,(U|0)!=0):0){o=k[$>>2]|0;x=U+68|0;q=k[x>>2]|0;j:do if(q){p=k[o+20>>2]|0;if((p|0)>0){o=k[o+16>>2]|0;h=0;while(1){n=h+1|0;if((k[o+(h<<4)+12>>2]|0)==(q|0)){n=h;break j}if((n|0)<(p|0))h=n;else break}}else n=0}else n=-1e6;while(0);c=k[(k[v+16>>2]|0)+(n<<4)>>2]|0;k[d>>2]=k[d>>2]|2097152;g=$q(v,u)|0;if(g){if((di(v,g,c)|0)==0?(gq(v,g,c)|0)==0:0){if(_r($,k[U>>2]|0)|0)break;if(Qr($,g)|0)break;o=k[U>>2]|0;if(k[U+12>>2]|0){k[_>>2]=o;yh($,26088,_);break}if(Xq($,26,c,o,0)|0)break;if(mr($,U)|0)break;if(!(i[U+44>>0]&16))f=0;else{o=k[U+60>>2]|0;k:do if(!o)o=0;else while(1){if((k[o>>2]|0)==(v|0))break k;o=k[o+24>>2]|0;if(!o){o=0;break}}while(0);f=(k[(k[k[o+8>>2]>>2]|0)+76>>2]|0)==0?0:o}o=Tq($)|0;if(!o)break;Z=(f|0)!=0;h=$+408|0;Y=k[h>>2]|0;Y=(Y|0)==0?$:Y;Fr($,n);X=Y+328|0;k[X>>2]=k[X>>2]|1<<n;Y=Y+20|0;i[Y>>0]=l[Y>>0]|Z&1;Ir($,n);if(Z){Y=$+72|0;Z=(k[Y>>2]|0)+1|0;k[Y>>2]=Z;Ch(o,Bh(o,97,0,Z,0)|0,g,0);Ch(o,Bh(o,152,Z,0,0)|0,f,-10);Z=k[h>>2]|0;i[((Z|0)==0?$:Z)+21>>0]=1}u=k[U>>2]|0;t=Sn(u,-1)|0;do if((k[d>>2]&524288|0)!=0?(Q=gn((k[x>>2]|0)+56|0,u,S)|0,(Q|0)!=0):0){o=k[Q+8>>2]|0;if(!o)break;h=o;o=0;do{o=$r(k[$>>2]|0,o,k[k[h>>2]>>2]|0)|0;h=k[h+12>>2]|0}while((h|0)!=0);if(!o)break;k[_>>2]=c;k[_+4>>2]=(n|0)==1?13184:13208;k[_+8>>2]=u;k[_+12>>2]=g;k[_+16>>2]=o;Gr($,26120,_);rg(v,o)}while(0);k[_>>2]=c;k[_+4>>2]=(n|0)==1?13184:13208;k[_+8>>2]=g;k[_+12>>2]=g;k[_+16>>2]=g;k[_+20>>2]=g;k[_+24>>2]=g;k[_+28>>2]=t;k[_+32>>2]=u;Gr($,26192,_);if(di(v,26576,c)|0){Z=k[U>>2]|0;k[_>>2]=c;k[_+4>>2]=g;k[_+8>>2]=Z;Gr($,26592,_)}n=as($,U)|0;if(n){k[_>>2]=g;k[_+4>>2]=g;k[_+8>>2]=n;Gr($,26656,_);rg(v,n)}do if(k[d>>2]&524288){n=gn((k[x>>2]|0)+56|0,k[U>>2]|0,_)|0;if(!n)break;n=k[n+8>>2]|0;if(!n)break;do{h=k[n>>2]|0;if((h|0)!=(U|0))bs($,h,k[h>>2]|0);n=k[n+12>>2]|0}while((n|0)!=0)}while(0);bs($,U,g);break}k[_>>2]=g;yh($,26024,_)}else g=0}else g=0;while(0);Io(v,w);rg(v,g);k[d>>2]=e;break}case 295:{_=k[a+(aa<<4)+16>>2]|0;Wr($,25,29176,_,0,0,_);break}case 300:{Xr($,0,0);break}case 302:{Yr($,0,0);break}case 301:{Xr($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0);break}case 305:{v=k[$>>2]|0;if((k[$+64>>2]|0)==0?(I=v+65|0,(i[I>>0]|0)==0):0){e=k[$+484>>2]|0;o=k[e+68>>2]|0;l:do if(o){n=k[v+20>>2]|0;if((n|0)>0){h=k[v+16>>2]|0;f=0;while(1){g=f+1|0;if((k[h+(f<<4)+12>>2]|0)==(o|0)){x=f;break l}if((g|0)<(n|0))f=g;else{x=g;break}}}else x=0}else x=-1e6;while(0);c=k[(k[v+16>>2]|0)+(x<<4)>>2]|0;d=(k[e>>2]|0)+16|0;p=(j[e+38>>1]|0)+-1|0;n=k[e+4>>2]|0;o=k[n+(p*24|0)+4>>2]|0;w=di(v,d,c)|0;if(!(Xq($,26,c,k[w>>2]|0,0)|0)){if(!o)q=0;else q=(i[o>>0]|0)==101?0:o;if(i[n+(p*24|0)+23>>0]&1){yh($,25608,_);break a}if(k[e+8>>2]|0){yh($,25640,_);break a}u=v+24|0;if((k[u>>2]&524288|0)!=0?(k[e+16>>2]|0)!=0&(q|0)!=0:0){yh($,25672,_);break a}t=(q|0)!=0;if(!((i[n+(p*24|0)+20>>0]|0)==0|t)){yh($,25736,_);break a}do if(t){k[K>>2]=0;if(cs(v,q,1,65,K)|0){i[I>>0]=1;break a}o=k[K>>2]|0;if(!o){yh($,25792,_);break a}else{Rh(o);break}}while(0);o=k[a+(aa<<4)+16>>2]|0;n=a+(aa<<4)+20|0;h=k[n>>2]|0;if((o|0)!=0?(R=ow(h|0,0,1,0)|0,R=rh(v,R,L)|0,(R|0)!=0):0){pw(R|0,o|0,h|0)|0;i[R+h>>0]=0;o=(k[n>>2]|0)+-1|0;n=k[u>>2]|0;m:do if((o|0)>0){o=R+o|0;do{Y=i[o>>0]|0;if(Y<<24>>24!=59?(i[10368+(Y&255)>>0]&1)==0:0)break m;i[o>>0]=0;o=o+-1|0}while(o>>>0>R>>>0)}while(0);k[u>>2]=k[u>>2]|2097152;Y=k[e+48>>2]|0;k[_>>2]=c;k[_+4>>2]=(x|0)==1?13184:13208;k[_+8>>2]=Y;k[_+12>>2]=R;k[_+16>>2]=Y+1;k[_+20>>2]=d;Gr($,25840,_);rg(v,R);k[u>>2]=n}o=t?3:2;q=Tq($)|0;if(q){n=$+19|0;g=i[n>>0]|0;do if(g<<24>>24){_=g+-1<<24>>24;i[n>>0]=_;h=k[$+((_&255)<<2)+24>>2]|0;if(!(_<<24>>24)){n=k[$+72>>2]|0;Z=663;break}else{d=g+-2<<24>>24;i[n>>0]=d;d=k[$+((d&255)<<2)+24>>2]|0;break}}else{h=$+72|0;n=(k[h>>2]|0)+1|0;k[h>>2]=n;h=n;Z=663}while(0);if((Z|0)==663){d=n+1|0;k[$+72>>2]=d}Bh(q,51,x,h,2)|0;f=q+96|0;k[f>>2]=k[f>>2]|1<<x;Bh(q,25,o,d,0)|0;f=Bh(q,83,d,0,h)|0;e=q+4|0;g=k[e>>2]|0;n=q+32|0;if(g)i[g+(((k[n>>2]|0)+-1|0)*20|0)+3>>0]=-112;Bh(q,52,x,2,d)|0;n=k[n>>2]|0;if(n>>>0>f>>>0)k[(k[e>>2]|0)+(f*20|0)+8>>2]=n;k[(k[q+24>>2]|0)+88>>2]=n+-1;ds($,h);ds($,d)}bs($,w,k[w>>2]|0)}}break}case 306:{t=k[$>>2]|0;i[t+250>>0]=0;c=k[a+(aa<<4)+16>>2]|0;u=t+65|0;do if((i[u>>0]|0)==0?(N=Zr($,0,c+8|0)|0,(N|0)!=0):0){if(i[N+44>>0]&16){yh($,25400,_);break}if(k[N+12>>2]|0){yh($,25440,_);break}if(!(_r($,k[N>>2]|0)|0)){n=k[N+68>>2]|0;n:do if(n){h=k[t+20>>2]|0;if((h|0)>0){g=k[t+16>>2]|0;o=0;while(1){f=o+1|0;if((k[g+(o<<4)+12>>2]|0)==(n|0)){f=o;break n}if((f|0)<(h|0))o=f;else break}}else f=0}else f=-1e6;while(0);q=rh(t,76,0)|0;if(q){v=q+0|0;d=v+76|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0));k[$+484>>2]=q;h=q+40|0;j[h>>1]=1;o=j[N+38>>1]|0;g=q+38|0;j[g>>1]=o;o=((((o<<16>>16)+-1|0)/8|0)*192|0)+192|0;n=rh(t,o,0)|0;if(n)kw(n|0,0,o|0)|0;o=q+4|0;k[o>>2]=n;k[_>>2]=k[N>>2];_=zh(t,25472,_)|0;k[q>>2]=_;n=k[o>>2]|0;if((n|0)==0|(_|0)==0){i[u>>0]=1;break}pw(n|0,k[N+4>>2]|0,(j[g>>1]|0)*24|0)|0;if((j[g>>1]|0)>0){n=0;do{_=k[o>>2]|0;Z=_+(n*24|0)|0;Y=ph(t,k[Z>>2]|0)|0;k[Z>>2]=Y;_=_+(n*24|0)+4|0;n=n+1|0;k[_+0>>2]=0;k[_+4>>2]=0;k[_+8>>2]=0;k[_+12>>2]=0}while((n|0)<(j[g>>1]|0))}k[q+68>>2]=k[(k[t+16>>2]|0)+(f<<4)+12>>2];k[q+48>>2]=k[N+48>>2];j[h>>1]=1;_=k[$+408>>2]|0;Fr($,f);_=((_|0)==0?$:_)+328|0;k[_>>2]=k[_>>2]|1<<f;if(Tq($)|0)Ir($,f)}}}while(0);Io(t,c);break}case 309:{es($,0);break}case 310:{es($,a+(aa<<4)+16|0);break}case 311:{d=a+(aa<<4)+16|0;Zq($,a+(aa+-3<<4)+16|0,a+(aa+-2<<4)+16|0,0,0,1,k[a+(aa+-4<<4)+16>>2]|0);o=k[$+484>>2]|0;if(o){c=k[$>>2]|0;n=k[o+68>>2]|0;o:do if(n){h=k[c+20>>2]|0;if((h|0)>0){f=k[c+16>>2]|0;e=0;while(1){g=e+1|0;if((k[f+(e<<4)+12>>2]|0)==(n|0)){g=e;break o}if((g|0)<(h|0))e=g;else break}}else g=0}else g=-1e6;while(0);e=o+44|0;i[e>>0]=l[e>>0]|16;k[o+52>>2]=0;fs(c,o,$q(c,d)|0);fs(c,o,0);fs(c,o,ph(c,k[o>>2]|0)|0);k[$+500>>2]=(k[d>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-(k[$+496>>2]|0);e=k[o+56>>2]|0;if(e)Xqk}case 168:{k[ba+4>>2]=k[a+(aa+-2<<4)+16>>2];k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 19:{if((Xqxq=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+64|0;if((r|0)>=(s|0))ka();w=z+44|0;y=z;x=z+40|0;u=a+8|0;t=k[u>>2]|0;u=k[u+4>>2]|0;v=a+4|0;n=k[v>>2]|0;Up(k[a+48>>2]|0,y,k[(k[(k[a>>2]|0)+8>>2]|0)+12>>2]|0,t,u);m=n+8|0;n=n+12|0;o=y+24|0;p=y+16|0;q=a+16|0;while(1){e=k[(k[m>>2]|0)+4>>2]|0;f=k[n>>2]|0;g=k[f+(e*56|0)+20>>2]|0;if(!(k[f+(e*56|0)+24>>2]|0)){c=1;b=0;break}i=o;h=k[i>>2]|0;i=k[i+4>>2]|0;j=k[p>>2]|0;l=((g|0)<0)<<31>>31;b=g;d=l;c=0;do{c=c+1|0;b=rw(b|0,d|0,7)|0;d=L}while(((b|0)!=0|(d|0)!=0)&(c|0)<9);h=ow(h|0,i|0,g|0,l|0)|0;h=ow(h|0,L|0,j|0,((j|0)<0)<<31>>31|0)|0;c=ow(h|0,L|0,c|0,((c|0)<0)<<31>>31|0)|0;h=L;b=k[q>>2]|0;b=ow(b|0,((b|0)<0)<<31>>31|0,t|0,u|0)|0;d=L;if((h|0)>(d|0)|(h|0)==(d|0)&c>>>0>b>>>0){c=1;b=0;break}Vp(y,w,um(w,g,l)|0);Vp(y,k[f+(e*56|0)+32>>2]|0,g);b=$m(k[v>>2]|0,x)|0;if(b){c=0;break}}y=Wp(y,a+56|0)|0;r=z;return (c?y:b)|0}function Rq(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();e=c;k[e>>2]=d;d=$k(a,13592,e)|0;rg(a,b);r=c;return d|0}function Sq(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();h=l;e=i[a>>0]|0;if(e<<24>>24!=0&(b|0)>0){g=0;do{if((e+-48&255)<10){f=0;do{f=(f*10|0)+-48+(e<<24>>24)|0;a=a+1|0;e=i[a>>0]|0}while((e+-48&255)<10);e=0}else{f=0;e=0}e=ks(f,e)|0;j[c+(g<<1)>>1]=e;a=(i[a>>0]|0)==32?a+1|0:a;g=g+1|0;e=i[a>>0]|0}while(e<<24>>24!=0&(g|0)<(b|0))}g=d+51|0;i[g>>0]=i[g>>0]&-69;a:do if(i[a>>0]|0){c=d+44|0;b:while(1){do if(!(Lh(13448,a,10352,0)|0)){if(Lh(13464,a,10352,0)|0){k[h>>2]=0;In(a+3|0,h)|0;e=k[h>>2]|0;e=ks(e,((e|0)<0)<<31>>31)|0;j[c>>1]=e;break}if(Lh(13480,a,10352,0)|0)i[g>>0]=i[g>>0]|64}else i[g>>0]=i[g>>0]|4;while(0);while(1){e=i[a>>0]|0;if(e<<24>>24==32|e<<24>>24==0)break;a=a+1|0}while(1){f=a+1|0;if(!(e<<24>>24))break a;else if(e<<24>>24!=32)continue b;e=i[f>>0]|0;a=f}}}while(0);r=l;return}function Tq(a){a=a|0;var b=0,c=0;c=a+8|0;b=k[c>>2]|0;if(!b){b=Ah(a)|0;k[c>>2]=b;if(b)Bh(b,155,0,0,0)|0;if((k[a+408>>2]|0)==0?(j[(k[a>>2]|0)+60>>1]&8)==0:0)i[a+23>>0]=1}return b|0}function Uq(a,b){a=a|0;b=b|0;var c=0;c=(k[a+32>>2]|0)+-1|0;if((c|0)>(k[(k[a+24>>2]|0)+88>>2]|0)?(i[(k[a+4>>2]|0)+(c*20|0)>>0]|0)==b<<24>>24:0){Eh(a,c);c=1}else c=0;return c|0}function Vq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=Tq(a)|0;f=d+32|0;ls(a,c,k[f>>2]|0,(e|0)==55&1,k[d>>2]|0);if(!(i[d+44>>0]&32)){d=j[d+38>>1]|0;Ch(g,Bh(g,e,b,k[f>>2]|0,c)|0,d,-14)}else{f=k[d+8>>2]|0;a:do if(!f)f=0;else while(1){if((i[f+51>>0]&3)==2)break a;f=k[f+20>>2]|0;if(!f){f=0;break}}while(0);Bh(g,e,b,k[f+40>>2]|0,c)|0;d=k[a+8>>2]|0;Ch(d,-1,ms(a,f)|0,-6)}return}function Wq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if((b|0)!=0?(i[b>>0]|0)==-97:0)Bh(k[a+8>>2]|0,33,k[b+28>>2]|0,c,0)|0;else f=4;if(((f|0)==4?(e=ns(a,b,c)|0,(e|0)!=(c|0)):0)?(d=k[a+8>>2]|0,(d|0)!=0):0)Bh(d,34,e,c,0)|0;return}function Xq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();h=j;f=k[a>>2]|0;do if(((i[f+145>>0]|0)==0?(i[a+451>>0]|0)==0:0)?(g=k[f+284>>2]|0,(g|0)!=0):0){f=pc[g&7](k[f+288>>2]|0,b,c,d,e,k[a+492>>2]|0)|0;if((f|0)==0|(f|0)==2)break;else if((f|0)==1){yh(a,25216,h);k[a+12>>2]=23;f=1;break}else{yh(a,25232,h);k[a+12>>2]=1;f=1;break}}else f=0;while(0);r=j;return f|0}function Yq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;c=$q(k[a>>2]|0,c)|0;do if(c){d=Tq(a)|0;if((d|0)!=0?(Xq(a,32,k[37088+(b<<2)>>2]|0,c,0)|0)==0:0){Ch(d,Bh(d,2,b,0,0)|0,c,-1);break}rg(k[a>>2]|0,c)}while(0);return}function Zq(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+16|0;if((r|0)>=(s|0))ka();p=v;n=v+4|0;u=k[a>>2]|0;b=jr(a,b,c,n)|0;a:do if((b|0)>=0){o=(d|0)!=0;if(o?(k[c+4>>2]|0)!=0&(b|0)!=1:0){yh(a,36976,p);break}t=o?1:b;c=k[n>>2]|0;o=c;b=k[o+4>>2]|0;n=a+496|0;k[n>>2]=k[o>>2];k[n+4>>2]=b;n=$q(u,c)|0;if(n){b:do if((Qr(a,n)|0)==0?(m=(i[u+144>>0]|0)==1?1:d,q=u+16|0,h=k[(k[q>>2]|0)+(t<<4)>>2]|0,(Xq(a,18,(m|0)==1?13184:13208,0,h)|0)==0):0){d=(m|0)!=0;if(!e)b=d?4:2;else b=d?6:8;o=(f|0)!=0;if(!o?(XqXq(a,18,L,0,b)|0)==0?(Xq(a,p?3:1,t,k[u>>2]|0,b)|0)==0:0){if(!e){e=qr(a,0,0)|0;if(!e){e=0;p=0;c=t;break}F=ph(k[a>>2]|0,k[(k[u+4>>2]|0)+(((j[u+38>>1]|0)+-1|0)*24|0)>>2]|0)|0;G=k[e+4>>2]|0;k[G+4>>2]=F;i[G+12>>0]=n}A=k[e>>2]|0;if((A|0)>0){x=k[e+4>>2]|0;v=0;b=0;do{p=k[x+(v*20|0)>>2]|0;if(p){c=k[p+8>>2]|0;if(!c)p=1;else{p=c;while(1)if(!(i[p>>0]|0))break;else p=p+1|0;p=(p-c&1073741823)+1|0}b=p+b|0}v=v+1|0}while((v|0)<(A|0));c=b}else c=0;if(!t)p=0;else{b=t;while(1)if(!(i[b>>0]|0))break;else b=b+1|0;p=b-t&1073741823}F=(J|0)!=0;if(F)b=m[J+46>>1]|0;else b=1;M=zs(U,A+b&65535,c+1+p|0,K)|0;c:do if(!(i[P>>0]|0)){E=k[K>>2]|0;k[M>>2]=E;I=p+1|0;z=E+I|0;k[K>>2]=z;pw(E|0,t|0,I|0)|0;k[M+12>>2]=u;I=M+50|0;i[I>>0]=f;E=M+51|0;i[E>>0]=i[E>>0]&-12|((f|0)!=0&1)<<3&255|D&1;H=M+24|0;k[H>>2]=k[(k[O>>2]|0)+(q<<4)+12>>2];b=k[e>>2]|0;G=M+46|0;j[G>>1]=b;if(h){k[B+0>>2]=0;k[B+4>>2]=0;k[B+8>>2]=0;k[B+12>>2]=0;k[B+16>>2]=0;k[B+20>>2]=0;k[B+24>>2]=0;k[B+28>>2]=0;x=S+0|0;c=x+80|0;do{k[x>>2]=0;x=x+4|0}while((x|0)<(c|0));k[S>>2]=1;k[S+16>>2]=k[u>>2];k[S+24>>2]=u;k[S+48>>2]=-1;k[B>>2]=a;k[B+4>>2]=S;j[B+28>>1]=16;qs(B,h)|0;k[M+36>>2]=h;b=k[e>>2]|0}w=(l[(k[C+(q<<4)+12>>2]|0)+76>>0]|0)>3;d:do if((b|0)>0){D=u+4|0;C=u+38|0;B=M+4|0;h=U+145|0;b=M+32|0;v=M+28|0;c=0;n=k[e+4>>2]|0;while(1){p=k[n+4>>2]|0;x=j[C>>1]|0;e:do if(x<<16>>16>0){A=0;y=k[D>>2]|0;while(1){if(!(id(p,k[y>>2]|0)|0)){o=A;break e}A=A+1|0;if((A|0)<(x<<16>>16|0))y=y+24|0;else{o=A;break}}}else o=0;while(0);if((o|0)>=(x<<16>>16|0))break;j[(k[B>>2]|0)+(c<<1)>>1]=o;A=k[n>>2]|0;if(!A){A=k[(k[D>>2]|0)+(o*24|0)+16>>2]|0;A=(A|0)!=0?A:11152}else{y=k[A+8>>2]|0;if(!y)A=1;else{A=y;while(1)if(!(i[A>>0]|0))break;else A=A+1|0;A=(A-y&1073741823)+1|0}pw(z|0,y|0,A|0)|0;y=k[K>>2]|0;z=y+A|0;k[K>>2]=z;A=y}if((i[h>>0]|0)==0?(hr(a,A)|0)==0:0){c=0;p=0;T=134;break c}k[(k[b>>2]|0)+(c<<2)>>2]=A;i[(k[v>>2]|0)+c>>0]=w?i[n+12>>0]|0:0;if(!(i[(k[D>>2]|0)+(o*24|0)+20>>0]|0))i[E>>0]=i[E>>0]&-9;c=c+1|0;if((c|0)<(k[e>>2]|0))n=n+20|0;else break d}k[S>>2]=k[u>>2];k[S+4>>2]=p;yh(a,36184,S);i[a+17>>0]=1;c=0;p=0;T=134;break c}else c=0;while(0);do if(F){w=J+46|0;x=j[w>>1]|0;if(!(x<<16>>16))break;B=J+4|0;C=M+4|0;D=M+48|0;n=J+32|0;o=M+32|0;b=J+28|0;v=M+28|0;h=0;do{y=j[(k[B>>2]|0)+(h<<1)>>1]|0;p=k[C>>2]|0;A=m[G>>1]|0;z=p;while(1){if((A|0)<=0){T=92;break}if((j[z>>1]|0)==y<<16>>16){T=91;break}else{A=A+-1|0;z=z+2|0}}if((T|0)==91){T=0;j[D>>1]=(j[D>>1]|0)+-1<<16>>16}else if((T|0)==92){T=0;j[p+(c<<1)>>1]=y;k[(k[o>>2]|0)+(c<<2)>>2]=k[(k[n>>2]|0)+(h<<2)>>2];i[(k[v>>2]|0)+c>>0]=i[(k[b>>2]|0)+h>>0]|0;x=j[w>>1]|0;c=c+1|0}h=h+1|0}while((h|0)<(x&65535|0))}else{j[(k[M+4>>2]|0)+(c<<1)>>1]=-1;k[(k[M+32>>2]|0)+(c<<2)>>2]=11152}while(0);hq(M);h=a+484|0;b=k[h>>2]|0;if(!b){rs(M);b=k[h>>2]|0}f:do if((u|0)==(b|0)){p=k[u+8>>2]|0;if(!p)break;y=j[G>>1]|0;z=M+4|0;A=M+32|0;while(1){if((j[p+46>>1]|0)==y<<16>>16){g:do if(!(y<<16>>16)){h=0;b=0}else{v=k[p+4>>2]|0;w=k[z>>2]|0;x=p+32|0;b=0;while(1){if((j[v+(b<<1)>>1]|0)!=(j[w+(b<<1)>>1]|0)){h=y;break g}h=k[(k[x>>2]|0)+(b<<2)>>2]|0;c=k[(k[A>>2]|0)+(b<<2)>>2]|0;if((h|0)!=(c|0)?(id(h,c)|0)!=0:0){h=y;break g}b=b+1|0;if((b|0)>=(y&65535|0)){h=y;break}}}while(0);if((b|0)==(h&65535|0))break}p=k[p+20>>2]|0;if(!p)break f}b=p+50|0;c=i[b>>0]|0;h=i[I>>0]|0;if(c<<24>>24==h<<24>>24){c=0;break c}if(!(c<<24>>24==10|h<<24>>24==10)){k[S>>2]=0;yh(a,36216,S);c=i[b>>0]|0}if(c<<24>>24!=10){c=0;T=134;break c}i[b>>0]=i[I>>0]|0;c=0;break c}while(0);c=U+145|0;do if(!(i[c>>0]|0)){if(k[a+64>>2]|0){T=126;break}if(!((i[N>>0]&32)==0|R)){T=126;break}p=a+72|0;h=(k[p>>2]|0)+1|0;k[p>>2]=h;p=Tq(a)|0;if(!p){c=0;p=0;T=134;break c}G=k[a+408>>2]|0;G=(G|0)==0?a:G;Fr(a,q);F=G+328|0;k[F>>2]=k[F>>2]|1<<q;G=G+20|0;i[G>>0]=l[G>>0]|1;Bh(p,120,q,h,0)|0;if(!g)b=0;else{b=k[k[Q>>2]>>2]|0;G=(k[a+504>>2]|0)-b+(k[a+508>>2]|0)|0;F=G+-1|0;G=(i[b+F>>0]|0)==59?F:G;k[S>>2]=(f|0)==0?10360:36288;k[S+4>>2]=G;k[S+8>>2]=b;b=zh(U,36264,S)|0}F=k[M>>2]|0;G=k[u>>2]|0;k[S>>2]=k[(k[O>>2]|0)+(q<<4)>>2];k[S+4>>2]=L;k[S+8>>2]=F;k[S+12>>2]=G;k[S+16>>2]=h;k[S+20>>2]=b;Gr(a,36296,S);rg(U,b);if(!R)break;As(a,M,h);Ir(a,q);k[S>>2]=k[M>>2];Nr(p,q,zh(U,36344,S)|0);Bh(p,144,0,0,0)|0;T=126}else{if(Nk((k[H>>2]|0)+24|0,k[M>>2]|0,M)|0){i[P>>0]=1;c=0;p=0;T=134;break c}G=U+24|0;k[G>>2]=k[G>>2]|2;if(!R)break;k[M+40>>2]=k[U+140>>2];T=126}while(0);if((T|0)==126?!((i[c>>0]|0)!=0|(d|0)==0):0){c=0;p=0;T=134;break}c=k[u+8>>2]|0;do if((f|0)==5){if(!c){c=0;break}if((i[c+50>>0]|0)==5)break;do{p=c+20|0;c=k[p>>2]|0;if(!c){c=0;break}}while((i[c+50>>0]|0)!=5);k[M+20>>2]=c;k[p>>2]=M;h=0;p=M;c=t;break a}while(0);k[M+20>>2]=c;k[u+8>>2]=M;h=0;p=M;c=t;break a}else{c=h;p=0;T=134}while(0);if((T|0)==134)if(!M){h=c;c=t;break}Ok(U,M);h=c;c=t}else{p=0;c=t}}else{p=0;c=0}while(0);Lk(U,h);Sk(U,e);Io(U,d);rg(U,c);r=V;return p|0}function fr(a,b){a=a|0;b=b|0;var c=0,d=0;c=k[a+484>>2]|0;d=k[a>>2]|0;if(((c|0)!=0?(i[a+451>>0]|0)==0:0)?(j[(k[(k[(k[d+16>>2]|0)+(l[d+144>>0]<<4)+4>>2]|0)+4>>2]|0)+22>>1]&1)==0:0){d=c+24|0;c=qr(a,k[d>>2]|0,b)|0;k[d>>2]=c;if(k[a+324>>2]|0)rr(a,c,a+320|0,1)}else Lk(d,b);return}function gr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=r;r=r+16|0;if((r|0)>=(s|0))ka();z=C;B=k[a>>2]|0;A=k[a+484>>2]|0;a:do if((A|0)!=0?(i[a+451>>0]|0)==0:0){w=(b|0)==0;do if(w){y=j[A+38>>1]|0;g=(y<<16>>16)+-1|0;if(y<<16>>16<1){f=0;break a}if(d)if((k[d>>2]|0)==1){g=1;f=13}else{k[z>>2]=k[(k[A+4>>2]|0)+(g*24|0)>>2];k[z+4>>2]=c;yh(a,35712,z);f=0;break a}else{g=1;f=12}}else{if(!d){g=k[b>>2]|0;f=12;break}g=k[d>>2]|0;if((g|0)==(k[b>>2]|0))f=13;else{yh(a,35776,z);f=0;break a}}while(0);if((f|0)==12){h=c+4|0;n=h;t=0;h=(g<<3)+37+(k[h>>2]|0)|0;y=g}else if((f|0)==13){n=c+4|0;h=(g<<3)+37+(k[n>>2]|0)|0;o=k[d>>2]|0;if((o|0)>0){p=k[d+4>>2]|0;q=0;do{m=k[p+(q*20|0)+4>>2]|0;if(!m)f=1;else{l=m;while(1)if(!(i[l>>0]|0))break;else l=l+1|0;f=(l-m&1073741823)+1|0}h=f+h|0;q=q+1|0}while((q|0)<(o|0));t=1;y=g}else{t=1;y=g}}f=rh(B,h,((h|0)<0)<<31>>31)|0;if(f){kw(f|0,0,h|0)|0;k[f>>2]=A;x=A+16|0;k[f+4>>2]=k[x>>2];u=f+36|0;l=u+(y<<3)|0;v=f+8|0;k[v>>2]=l;pw(l|0,k[c>>2]|0,k[n>>2]|0)|0;i[l+(k[n>>2]|0)>>0]=0;qo(l);l=l+((k[n>>2]|0)+1)|0;k[f+20>>2]=y;b:do if(!w){if((y|0)>0){h=A+4|0;c=b+4|0;m=j[A+38>>1]|0;g=0;while(1){c:do if(m<<16>>16>0){q=k[h>>2]|0;p=k[(k[c>>2]|0)+(g*20|0)+4>>2]|0;o=0;while(1){n=o+1|0;if(!(id(k[q+(o*24|0)>>2]|0,p)|0)){n=o;break}if((n|0)<(m<<16>>16|0))o=n;else break c}k[u+(g<<3)>>2]=n}else n=0;while(0);if((n|0)>=(m<<16>>16|0))break;g=g+1|0;if((g|0)>=(y|0))break b}k[z>>2]=k[(k[c>>2]|0)+(g*20|0)+4>>2];yh(a,35872,z);break a}}else k[u>>2]=(j[A+38>>1]|0)+-1;while(0);if(t&(y|0)>0){m=d+4|0;n=0;while(1){h=k[(k[m>>2]|0)+(n*20|0)+4>>2]|0;if(!h)g=0;else{g=h;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=g-h&1073741823}k[u+(n<<3)+4>>2]=l;pw(l|0,h|0,g|0)|0;i[l+g>>0]=0;n=n+1|0;if((n|0)==(y|0))break;else l=l+(g+1)|0}}i[f+24>>0]=0;i[f+25>>0]=e;i[f+26>>0]=e>>>8;g=Nk((k[A+68>>2]|0)+56|0,k[v>>2]|0,f)|0;if((g|0)==(f|0)){i[B+65>>0]=1;break}if(g){k[f+12>>2]=g;k[g+16>>2]=f}k[x>>2]=f;f=0}else f=0}else f=0;while(0);rg(B,f);Sk(B,b);Sk(B,d);r=C;return}function hr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=k[a>>2]|0;d=i[c+62>>0]|0;e=i[c+145>>0]|0;c=bo(c,d,b,e&255)|0;do if(!(e<<24>>24)){if((c|0)!=0?(k[c+12>>2]|0)!=0:0)break;c=Bs(a,d,c,b)|0}while(0);return c|0}function ir(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+16|0;if((r|0)>=(s|0))ka();w=y;q=y+12|0;x=k[a>>2]|0;do if(!(i[x+65>>0]|0)){d=(d|0)!=0;if(d){p=x+68|0;i[p>>0]=(i[p>>0]|0)+1<<24>>24;v=Zr(a,c,b+8|0)|0;i[p>>0]=(i[p>>0]|0)+-1<<24>>24}else v=Zr(a,c,b+8|0)|0;if(!v){if(!d)break;Er(a,k[b+12>>2]|0);break}n=v+68|0;f=k[n>>2]|0;a:do if(f){d=k[x+20>>2]|0;if((d|0)>0){e=k[x+16>>2]|0;h=0;while(1){g=h+1|0;if((k[e+(h<<4)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(d|0))h=g;else break}}else g=0}else g=-1e6;while(0);t=v+44|0;if((i[t>>0]&16)!=0?(mr(a,v)|0)!=0:0)break;h=(g|0)==1;u=h?13184:13208;d=k[(k[x+16>>2]|0)+(g<<4)>>2]|0;if(!(Xq(a,9,u,0,d)|0)){e=(c|0)!=0;do if(e){f=h?15:17;h=0}else{if(!(i[t>>0]&16)){f=h?13:11;h=0;break}h=v+60|0;while(1){h=k[h>>2]|0;if((k[h>>2]|0)==(x|0))break;else h=h+24|0}f=30;h=k[(k[h+4>>2]|0)+4>>2]|0}while(0);if((Xq(a,f,k[v>>2]|0,h,d)|0)==0?(Xq
12 function nr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0;za=r;r=r+240|0;if((r|0)>=(s|0))ka();oa=za;pa=za+220|0;ga=za+216|0;ea=za+196|0;fa=za+176|0;ra=za+164|0;sa=za+136|0;va=za+88|0;ca=za+64|0;ia=za+32|0;xa=a+464|0;ya=k[xa>>2]|0;la=a+468|0;ua=k[la>>2]|0;k[la>>2]=ua+1;k[xa>>2]=ua;ua=k[a>>2]|0;a:do if((((b|0)!=0?(ma=ua+65|0,(i[ma>>0]|0)==0):0)?(d=a+64|0,(k[d>>2]|0)==0):0)?(Xq(a,21,0,0,0)|0)==0:0){A=va+0|0;z=A+48|0;do{k[A>>2]=0;A=A+4|0}while((A|0)<(z|0));ha=b+48|0;if((l[c>>0]|0)<9){Sk(ua,k[ha>>2]|0);k[ha>>2]=0;ba=b+6|0;j[ba>>1]=m[ba>>1]&65534}Is(a,b,0);k[sa+0>>2]=0;k[sa+4>>2]=0;k[sa+8>>2]=0;k[sa+12>>2]=0;k[sa+16>>2]=0;k[sa+20>>2]=0;k[sa+24>>2]=0;k[sa>>2]=k[ha>>2];ja=b+32|0;u=k[ja>>2]|0;t=k[b>>2]|0;b:do if(((k[d>>2]|0)==0?(i[ma>>0]|0)==0:0)?(qa=b+6|0,w=(m[qa>>1]|0)>>>2&1,ta=Tq(a)|0,(ta|0)!=0):0){if((k[t>>2]|0)>1?(i[c>>0]&-2)<<24>>24==10:0){yh(a,35368,oa);wa=444;break}na=b+52|0;t=k[na>>2]|0;c:do if(!t){h=a+460|0;g=a+492|0;f=b+36|0;e=a+408|0;d=b+60|0;Q=b+64|0;R=b+4|0;S=ua+60|0;T=ta+32|0;U=a+72|0;V=ca+4|0;W=ca+1|0;X=ca+8|0;Y=ca+12|0;Z=ta+4|0;_=ta+24|0;$=a+19|0;aa=a+56|0;ba=a+80|0;P=0;v=w;while(1){if((P|0)>=(k[u>>2]|0)){D=f;N=0;w=v;R=u;break c}J=k[u+(P*72|0)+28>>2]|0;do if(!J)w=P;else{M=u+(P*72|0)+32|0;x=k[M>>2]|0;if(x){if(i[u+(P*72|0)+45>>0]&4){w=P;break}Bh(ta,17,k[u+(P*72|0)+36>>2]|0,x,0)|0;w=P;break}k[oa>>2]=0;Js(b,oa);k[h>>2]=(k[h>>2]|0)+(k[oa>>2]|0);q=j[J+6>>1]&4;N=k[g>>2]|0;p=k[a>>2]|0;d:do if(!(j[p+60>>1]&1)){H=k[ja>>2]|0;o=k[H+(P*72|0)+48>>2]|0;G=H+(P*72|0)+28|0;K=k[G>>2]|0;n=q<<16>>16!=0;do if(n){if(v){wa=120;break d}if((k[H>>2]|0)>1){wa=120;break d}O=k[f>>2]|0;if((O|0)!=0?(k[O+4>>2]&2097152|0)!=0:0){wa=120;break d}D=k[b>>2]|0;do if(D){B=k[D>>2]|0;if((B|0)<=0)break;E=k[D+4>>2]|0;D=0;C=0;do{C=k[(k[E+(D*20|0)>>2]|0)+4>>2]|C;D=D+1|0}while((D|0)!=(B|0));if(C&2097152){wa=120;break d}}while(0);D=k[ha>>2]|0;if(!D)break;B=k[D>>2]|0;if((B|0)<=0)break;E=k[D+4>>2]|0;D=0;C=0;do{C=k[(k[E+(D*20|0)>>2]|0)+4>>2]|C;D=D+1|0}while((D|0)!=(B|0));if(C&2097152){wa=120;break d}}while(0);E=k[K+32>>2]|0;D=(k[K+60>>2]|0)==0;if(!D?(k[d>>2]|0)!=0:0){wa=120;break}if(k[K+64>>2]|0){wa=120;break}B=j[qa>>1]|0;C=(B&64)==0;if(!(C|D)){wa=120;break}if(!(k[E>>2]|0)){wa=120;break}A=j[K+6>>1]|0;if(A&1){wa=120;break}E=D|C^1;if(!E?(k[H>>2]|0)>1|(v|0)!=0:0){wa=120;break}D=B&1;if(D<<16>>16!=0&n){wa=120;break}y=k[ha>>2]|0;z=(y|0)==0;if(!z?(k[K+48>>2]|0)!=0:0){wa=120;break}F=(v|0)!=0;if(F?(k[K+48>>2]|0)!=0:0){wa=120;break}if(E){if(A&6144){wa=120;break}}else if(!((k[f>>2]|0)==0&D<<16>>16==0&(A&6144)==0)){wa=120;break}if((B&2048)!=0?(k[K+52>>2]|0)!=0:0){wa=120;break}O=H+(P*72|0)+44|0;if(i[O>>0]&32){wa=120;break}B=K+52|0;E=k[B>>2]|0;do if(E){if(!(D<<16>>16==0&(((k[K+48>>2]|0)!=0|F)^1))){wa=120;break d}if((k[H>>2]|0)!=1){wa=120;break d}e:do if(K){if(!(A&5))C=K;else{wa=120;break d}while(1){D=(E|0)==0;if(!D?(i[C+4>>0]|0)!=116:0){wa=120;break d}if((k[k[C+32>>2]>>2]|0)<1){wa=120;break d}if((k[k[K>>2]>>2]|0)!=(k[k[C>>2]>>2]|0)){wa=120;break d}if(D)break e;if(j[E+6>>1]&5){wa=120;break d}C=E;E=k[E+52>>2]|0}}while(0);if(z)break;C=k[y>>2]|0;if((C|0)<=0)break;E=k[y+4>>2]|0;D=0;do{if(!(j[E+(D*20|0)+16>>1]|0)){wa=120;break d}D=D+1|0}while((D|0)<(C|0))}while(0);x=H+(P*72|0)+16|0;k[g>>2]=k[x>>2];Xq0;E=Cs(D)|0;C=Cs(D)|0;g=k[sa>>2]|0;f=i[c>>0]|0;y=f&255;z=c+4|0;A=k[z>>2]|0;v=sa+16|0;t=k[v>>2]|0;if(t){Bh(D,17,k[sa+12>>2]|0,t,0)|0;Bh(D,16,0,E,0)|0;ba=k[v>>2]|0;t=k[D+24>>2]|0;d=~ba;do if((ba|0)<0){e=k[t+112>>2]|0;if(!e)break;k[e+(d<<2)>>2]=k[D+32>>2]}while(0);k[t+88>>2]=(k[D+32>>2]|0)+-1}B=k[sa+8>>2]|0;o=f<<24>>24==9;k:do if((f&-5)<<24>>24==9){n=x;p=k[c+8>>2]|0;d=0}else{t=a+19|0;d=i[t>>0]|0;do if(d<<24>>24){ba=d+-1<<24>>24;i[t>>0]=ba;e=k[a+((ba&255)<<2)+24>>2]|0;if(!(ba<<24>>24)){d=e;t=k[a+72>>2]|0;break}else{p=d+-2<<24>>24;i[t>>0]=p;n=1;p=k[a+((p&255)<<2)+24>>2]|0;d=e;break k}}else{d=a+72|0;t=(k[d>>2]|0)+1|0;k[d>>2]=t;d=t}while(0);p=t+1|0;k[a+72>>2]=p;n=1}while(0);h=(k[g>>2]|0)-(k[u>>2]|0)|0;w=sa+24|0;if(!(i[w>>0]&1)){t=Bh(D,107,B,E,0)|0;nt(D,k[b+12>>2]|0,C);e=1;f=B}else{ba=a+72|0;f=(k[ba>>2]|0)+1|0;k[ba>>2]=f;ba=a+68|0;g=k[ba>>2]|0;k[ba>>2]=g+1;if(!(k[v>>2]|0))e=0;else{ba=Tq(a)|0;aa=a+80|0;e=k[aa>>2]|0;k[aa>>2]=e+1;e=Bh(ba,44,e,0,0)|0}Bh(D,60,g,f,n+1+h|0)|0;if(e){t=k[D+32>>2]|0;if(t>>>0>e>>>0)k[(k[D+4>>2]|0)+(e*20|0)+8>>2]=t;k[(k[D+24>>2]|0)+88>>2]=t+-1}t=Bh(D,106,B,E,0)|0;nt(D,k[b+12>>2]|0,C);Bh(D,100,B,f,g)|0;e=0;f=g}u=t+1|0;if((n|0)>0){t=e+h|0;e=0;do{Bh(D,47,f,t+e|0,e+p|0)|0;e=e+1|0}while((e|0)!=(n|0))}do if((y|0)==12|(y|0)==14){Bh(D,74,A,d,0)|0;Bh(D,75,A,p,d)|0;o=k[D+4>>2]|0;if(!o)break;i[o+(((k[D+32>>2]|0)+-1|0)*20|0)+3>>0]=8}else if((y|0)==11){Ch(D,Bh(D,49,p,1,d)|0,c+1|0,1);it(a,p,1);Bh(D,110,A,d,0)|0}else if((y|0)!=10)if(o){ba=c+8|0;Bh(D,35,k[ba>>2]|0,x,0)|0;it(a,k[ba>>2]|0,x);break}else{Bh(D,22,k[z>>2]|0,0,0)|0;break}else{Bh(k[q>>2]|0,32,p,A,1)|0;it(a,p,1)}while(0);if(d){ds(a,p);ds(a,d)}n=D+24|0;p=k[n>>2]|0;q=~C;do if((C|0)<0){o=k[p+112>>2]|0;if(!o)break;k[o+(q<<2)>>2]=k[D+32>>2]}while(0);q=D+32|0;k[p+88>>2]=(k[q>>2]|0)+-1;if(!(i[w>>0]&1))Bh(D,9,B,u,0)|0;else Bh(D,5,B,u,0)|0;h=k[sa+12>>2]|0;if(h)Bh(D,18,h,0,0)|0;h=k[n>>2]|0;g=~E;do if((E|0)<0){f=k[h+112>>2]|0;if(!f)break;k[f+(g<<2)>>2]=k[q>>2]}while(0);k[h+88>>2]=(k[q>>2]|0)+-1}e=k[ta+24>>2]|0;f=~na;do if((na|0)<0){d=k[e+112>>2]|0;if(!d)break;k[d+(f<<2)>>2]=k[ta+32>>2]}while(0);k[e+88>>2]=(k[ta+32>>2]|0)+-1;k[xa>>2]=ya;if((i[c>>0]|0)!=9){d=0;break}Ss(a,R,Q);d=0}else wa=444;while(0);if((wa|0)==444){k[xa>>2]=ya;d=1}rg(ua,k[va+28>>2]|0);rg(ua,k[va+40>>2]|0)}else d=1;while(0);r=za;return d|0}function or(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;var i=0,j=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();j=o;m=k[a>>2]|0;if((b|0)==0?(i=(g|0)!=0,i|(h|0)!=0):0){k[j>>2]=i?34792:34800;yh(a,34752,j);n=9}else{b=ur(m,b,c,d)|0;if((b|0)!=0?(l=k[b>>2]|0,(l|0)!=0):0){i=l+-1|0;if(k[e+4>>2]|0){e=$q(m,e)|0;k[b+(i*72|0)+20>>2]=e}k[b+(i*72|0)+28>>2]=f;k[b+(i*72|0)+52>>2]=g;k[b+(i*72|0)+56>>2]=h}else n=9}if((n|0)==9){Lk(m,g);Mk(m,h);Rk(m,f,1);b=0}r=o;return b|0}function pr(a,b,c,d,e,f,g,h,l,m){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+80|0;if((r|0)>=(s|0))ka();o=v+72|0;u=v;t=k[a>>2]|0;n=rh(t,72,0)|0;if(!n){p=u+0|0;q=p+72|0;do{k[p>>2]=0;p=p+4|0}while((p|0)<(q|0));n=u}else{p=n+0|0;q=p+72|0;do{i[p>>0]=0;p=p+1|0}while((p|0)<(q|0))}if(!b){k[o>>2]=0;k[o+4>>2]=0;b=qr(a,0,sr(t,116,o,0)|0)|0}k[n>>2]=b;if(!c){c=rh(t,80,0)|0;if(c){p=c+0|0;q=p+80|0;do{i[p>>0]=0;p=p+1|0}while((p|0)<(q|0))}}k[n+32>>2]=c;k[n+36>>2]=d;k[n+40>>2]=e;k[n+44>>2]=f;k[n+48>>2]=g;j[n+6>>1]=h;i[n+4>>0]=119;k[n+60>>2]=l;k[n+64>>2]=m;k[n+16>>2]=-1;k[n+20>>2]=-1;if(i[t+65>>0]|0){Rk(t,n,(n|0)!=(u|0)&1);n=0}r=v;return n|0}function qr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=k[a>>2]|0;if(!b){b=rh(e,8,0)|0;if(b){a=b;d=a;i[d>>0]=0;i[d+1>>0]=0;i[d+2>>0]=0;i[d+3>>0]=0;a=a+4|0;i[a>>0]=0;i[a+1>>0]=0;i[a+2>>0]=0;i[a+3>>0]=0;a=rh(e,20,0)|0;k[b+4>>2]=a;if(!a)d=8;else d=7}else{b=0;d=8}}else{a=k[b>>2]|0;if(!(a+-1&a)){d=b+4|0;a=wo(e,k[d>>2]|0,a*40|0,0)|0;if(!a)d=8;else{k[d>>2]=a;d=7}}else d=7}if((d|0)==7){a=k[b>>2]|0;k[b>>2]=a+1;a=(k[b+4>>2]|0)+(a*20|0)|0;k[a+0>>2]=0;k[a+4>>2]=0;k[a+8>>2]=0;k[a+12>>2]=0;k[a+16>>2]=0;k[a>>2]=c}else if((d|0)==8){Lk(e,c);Sk(e,b);b=0}return b|0}function rr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;do if(b){h=(k[b>>2]|0)+-1|0;e=k[b+4>>2]|0;f=k[c>>2]|0;b=k[c+4>>2]|0;if((f|0)!=0?(c=k[a>>2]|0,g=ow(b|0,0,1,0)|0,g=rh(c,g,L)|0,(g|0)!=0):0){pw(g|0,f|0,b|0)|0;i[g+b>>0]=0;k[e+(h*20|0)+4>>2]=g;if(!d)break;qo(g);break}k[e+(h*20|0)+4>>2]=0}while(0);return}function sr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();h=o;k[h>>2]=0;f=(c|0)!=0;do if(f){if(((b|0)==132?(e=k[c>>2]|0,(e|0)!=0):0)?(In(e,h)|0)!=0:0){m=0;break}m=(k[c+4>>2]|0)+1|0}else m=0;while(0);g=m+48|0;l=rh(a,g,0)|0;if(l){kw(l|0,0,g|0)|0;i[l>>0]=b;j[l+34>>1]=-1;do if(f){if(!m){d=l+4|0;k[d>>2]=k[d>>2]|1024;k[l+8>>2]=k[h>>2];break}e=l+48|0;g=l+8|0;k[g>>2]=e;f=c+4|0;a=k[f>>2]|0;if(!a)e=48;else{pw(e|0,k[c>>2]|0,a|0)|0;e=(k[f>>2]|0)+48|0}i[l+e>>0]=0;if(((d|0)!=0&(m|0)>2?(d=i[k[c>>2]>>0]|0,n=d<<24>>24==34,d<<24>>24==34|d<<24>>24==39|d<<24>>24==91|d<<24>>24==96):0)?(qo(k[g>>2]|0),n):0){d=l+4|0;k[d>>2]=k[d>>2]|64}}while(0);k[l+24>>2]=1}r=o;return l|0}function tr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;do if((b|0)!=0?(d=k[b>>2]|0,(d|0)>0):0){d=d+-1|0;if((k[c+4>>2]|0)==1?(k[c>>2]|0)==0:0){d=b+(d*72|0)+45|0;i[d>>0]=i[d>>0]|1;break}c=$q(k[a>>2]|0,c)|0;k[b+(d*72|0)+72>>2]=c}while(0);return}function ur(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if(!b){b=rh(a,80,0)|0;if(!b)b=0;else{f=b+0|0;e=f+80|0;do{i[f>>0]=0;f=f+1|0}while((f|0)<(e|0));k[b+4>>2]=1;f=4}}else f=4;do if((f|0)==4){b=Ks(a,b,1,k[b>>2]|0)|0;if(i[a+65>>0]|0){Io(a,b);b=0;break}f=(k[b>>2]|0)+-1|0;if(!d)e=0;else e=(k[d>>2]|0)==0?0:d;d=(e|0)==0;e=$q(a,d?c:e)|0;k[b+(f*72|0)+16>>2]=e;e=$q(a,d?0:c)|0;k[b+(f*72|0)+12>>2]=e}while(0);return b|0}function vr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,m=0,n=0,o=0;o=r;r=r+32|0;if((r|0)>=(s|0))ka();m=o;i=o+16|0;k[i>>2]=b;k[i+4>>2]=c;k[i+8>>2]=d;h=b;j=1;e=0;a:while(1){if(!h)break;g=k[h+4>>2]|0;f=0;while(1){if((g|0)==(l[34625+(f*3|0)>>0]|0|0)?(Kc(k[h>>2]|0,34584+(l[34624+(f*3|0)>>0]|0)|0,g)|0)==0:0)break;f=f+1|0;if((f|0)>=7){n=10;break a}}e=l[34626+(f*3|0)>>0]|0|e;if((f|0)>6){n=10;break}if((j|0)>=3)break;h=k[i+(j<<2)>>2]|0;j=j+1|0}if((n|0)==10)e=e|64;if((e&33|0)!=33&(e&64|0)==0){if(!((e&32|0)==0|(e&24|0)==8)){yh(a,34696,m);e=1}}else{k[m>>2]=b;k[m+4>>2]=c;k[m+8>>2]=(d|0)==0?20377|0:20376;k[m+12>>2]=d;yh(a,34648,m);e=1}r=o;return e|0}function wr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;Q=r;r=r+48|0;if((r|0)>=(s|0))ka();N=Q+36|0;O=Q+32|0;m=Q;k[N>>2]=0;k[O>>2]=0;P=k[a>>2]|0;if(((((k[a+64>>2]|0)==0?(i[P+65>>0]|0)==0:0)?(E=Or(a,b)|0,(E|0)!=0):0)?(D=ot(a,E,109,0,0)|0,M=(k[E+12>>2]|0)!=0,(mr(a,E)|0)==0):0)?(o=(D|0)!=0,(pt(a,E,o&1)|0)==0):0){f=k[E+68>>2]|0;a:do if(f){e=k[P+20>>2]|0;if((e|0)>0){d=k[P+16>>2]|0;h=0;while(1){g=h+1|0;if((k[d+(h<<4)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=XqXq(a,23,g,q,k[(k[z>>2]|0)+(h<<4)>>2]|0)|0;if((g|0)==1)break a;else if((g|0)==2)k[f+(p<<2)>>2]=-1;E=E+1|0;if((E|0)>=(k[c>>2]|0)){O=m;break d}else g=m}k[Q>>2]=g;yh(a,34496,Q);i[a+17>>0]=1;break a}else{v=0;u=0;O=0}while(0);U=(v&255)+(u&255)|0;R=U&255;z=b+64|0;k[z>>2]=0;k[z+4>>2]=0;U=U&255;z=rt(a,ga,f,U)|0;g=k[t>>2]|0;if(g){w=(z|U|0)==0;x=a+72|0;y=0;while(1){f:do if(w?!((k[g+36>>2]|0)!=0|(g|0)==(n|0)):0){m=j[g+46>>1]|0;if(!(m<<16>>16))_=56;else{p=k[g+4>>2]|0;q=0;while(1){if((k[f+(j[p+(q<<1)>>1]<<2)>>2]|0)>-1){_=54;break f}q=q+1|0;if((q|0)>=(m&65535|0)){_=56;break}}}}else _=54;while(0);if((_|0)==54){_=0;m=(k[x>>2]|0)+1|0;k[x>>2]=m;if(!m)_=56;else p=y+1|0}if((_|0)==56){_=0;p=y+1|0;i[aa+p>>0]=0;m=0}k[f+(y+F<<2)>>2]=m;g=k[g+20>>2]|0;if(!g)break;else y=p}}S=Tq(a)|0;if(S){T=a+18|0;if(!(i[T>>0]|0)){P=S+88|0;j[P>>1]=j[P>>1]|4}E=a+408|0;P=k[E>>2]|0;P=(P|0)==0?a:P;Fr(a,h);N=P+328|0;k[N>>2]=k[N>>2]|1<<h;P=P+20|0;i[P>>0]=l[P>>0]|1;if(i[H>>0]&16){u=k[a+8>>2]|0;v=k[a>>2]|0;g=k[ga+60>>2]|0;g:do if(!g)g=0;else while(1){if((k[g>>2]|0)==(v|0))break g;g=k[g+24>>2]|0;if(!g){g=0;break}}while(0);h=qr(a,0,yt(v,27,34536)|0)|0;t=(O|0)!=0;if(t)h=qr(a,h,Rr(v,O,0,0)|0)|0;if((j[fa>>1]|0)>0){m=c+4|0;o=ga+4|0;p=0;do{n=k[f+(p<<2)>>2]|0;if((n|0)>-1)n=Rr(v,k[(k[m>>2]|0)+(n*20|0)>>2]|0,0,0)|0;else n=yt(v,27,k[(k[o>>2]|0)+(p*24|0)>>2]|0)|0;h=qr(a,h,n)|0;p=p+1|0}while((p|0)<(j[fa>>1]|0))}o=pr(a,h,b,d,0,0,0,0,0,0)|0;q=k[X>>2]|0;k[X>>2]=q+1;b=t&1;Bh(u,57,q,(j[fa>>1]|0)+(t?2:1)|0,0)|0;p=u+4|0;d=k[p>>2]|0;if(d)i[d+(((k[u+32>>2]|0)+-1|0)*20|0)+3>>0]=8;i[Q>>0]=14;k[Q+4>>2]=q;i[Q+1>>0]=0;k[Q+8>>2]=0;k[Q+12>>2]=0;nr(a,o,Q)|0;d=a+72|0;n=k[d>>2]|0;h=n+1|0;aa=n+2|0;k[d>>2]=(j[fa>>1]|0)+aa;d=Bh(u,108,q,0,0)|0;Bh(u,47,q,0,h)|0;Bh(u,47,q,b,aa)|0;if((j[fa>>1]|0)>0){n=n+3|0;m=0;do{aa=m;m=m+1|0;Bh(u,47,q,m+b|0,n+aa|0)|0}while((m|0)<(j[fa>>1]|0))}vt(a,ga);Ch(u,Bh(u,15,0,(j[fa>>1]|0)+2|0,h)|0,g,-10);g=k[p>>2]|0;if(!g)g=u+32|0;else{aa=u+32|0;i[g+(((k[aa>>2]|0)+-1|0)*20|0)+3>>0]=(e|0)==10?2:e&255;g=aa}aa=k[E>>2]|0;i[((aa|0)==0?a:aa)+21>>0]=1;Bh(u,9,q,d+1|0,0)|0;g=k[g>>2]|0;if(g>>>0>d>>>0)k[(k[p>>2]|0)+(d*20|0)+8>>2]=g;k[(k[u+24>>2]|0)+88>>2]=g+-1;Bh(u,61,q,0,0)|0;Rk(v,o,1);d=0;b=0;break}E=a+72|0;g=k[E>>2]|0;D=g+1|0;N=g+2|0;k[E>>2]=N;F=v<<24>>24!=0;G=(ca|0)!=0;M=(z|0)!=0;if(F|G|M){h=(j[fa>>1]|0)+N|0;k[E>>2]=h;I=g+3|0}else{h=N;I=0}K=(U|0)!=0;if(K|G|M){L=h+1|0;k[E>>2]=L;h=L}else L=N;J=h+1|0;k[E>>2]=(j[fa>>1]|0)+h;if($){P=a+492|0;Q=k[P>>2]|0;k[P>>2]=k[ga>>2];qt(a,ga,d,o);P=a}else{P=0;Q=0}do if(!(qs(V,d)|0)){if(!(i[H>>0]&32)){Bh(S,28,0,D,N)|0;v=_s(a,b,d,0,0,4,ea)|0;if(!v)break;x=v+60|0;g=k[x>>2]|0;x=k[x+4>>2]|0;y=i[v+38>>0]|0;Bh(S,103,o,N,0)|0;if(!(y<<24>>24))Bh(S,128,D,N,0)|0;at(v);A=0;z=0;w=y&255;B=0}else{y=j[n+46>>1]|0;p=k[E>>2]|0;v=p+1|0;z=y<<16>>16;p=z+1+p|0;k[E>>2]=p;A=k[X>>2]|0;k[X>>2]=A+1;Bh(S,28,0,v,0)|0;h=Bh(S,57,A,z,0)|0;q=k[a+8>>2]|0;Ch(q,-1,ms(a,n)|0,-6);q=_s(a,b,d,0,0,4,ea)|0;if(!q)break;x=q+60|0;g=k[x>>2]|0;x=k[x+4>>2]|0;m=i[q+38>>0]|0;B=m&255;if(y<<16>>16>0){y=n+4|0;w=0;do{st(S,ga,o,j[(k[y>>2]|0)+(w<<1)>>1]|0,w+v|0);w=w+1|0}while((w|0)!=(z|0))}if(!(m<<24>>24)){y=tt(S,n)|0;Ch(S,Bh(S,49,v,z,p)|0,y,z);Bh(S,110,A,p,0)|0;y=0;v=p}else{Eh(S,h);y=z}at(q);z=y;w=B;B=v}H=ha+24|0;do if(!(k[H>>2]&128))q=0;else{if(k[a+412>>2]|0){q=0;break}q=(k[E>>2]|0)+1|0;k[E>>2]=q;Bh(S,25,0,q,0)|0}while(0);p=Cs(S)|0;if(!$){h:do if((e|0)==5)kw(aa|0,1,W|0)|0;else{y=k[t>>2]|0;if(!y)break;while(1){if((i[y+50>>0]|0)==5)break;y=k[y+20>>2]|0;if(!y)break h}kw(aa|0,1,W|0)|0}while(0);do if(w){if((g|0)>-1)i[aa+(g-Y)>>0]=0;if((x|0)<=-1)break;i[aa+(x-Y)>>0]=0}while(0);ut(a,ga,55,Y,aa,0,0)|0}E=(w|0)!=0;do if(!E)if(!n){D=Bh(S,129,D,p,N)|0;Bh(S,70,o,D,N)|0;C=0;break}else{D=Cs(S)|0;Bh(S,108,A,p,0)|0;C=Bh(S,101,A,B,0)|0;Ch(S,Bh(S,68,o,D,B)|0,0,-14);break}else{if(!((i[aa+(o-Y)>>0]|0)==0|$))Ch(S,Bh(S,68,o,p,B)|0,z,-14);Bh(S,76,(n|0)!=0?B:N,p,0)|0;C=0;D=p}while(0);u=u<<24>>24==0;if(!u){Wq(a,O,L);Bh(S,38,L,0,0)|0}do if(F|M|G){if(M)v=zt(a,ga)|0;else v=0;y=At(a,ca,c,0,3,ga,e)|0|v;if((j[fa>>1]|0)>0){x=(y|0)==-1;w=ga+4|0;v=0;do{do if(x)_=138;else{if((v|0)<32?(1<<v&y|0)!=0:0){_=138;break}if(i[(k[w>>2]|0)+(v*24|0)+23>>0]&1){_=138;break}Bh(S,28,0,v+I|0,0)|0}while(0);if((_|0)==138){_=0;st(S,ga,o,v,v+I|0)}v=v+1|0}while((v|0)<(j[fa>>1]|0))}if(!(u&(n|0)==0))break;Bh(S,33,N,L,0)|0}while(0);v=At(a,ca,c,1,1,ga,e)|0;if((j[fa>>1]|0)>0){u=ga+36|0;g=c+4|0;m=0;do{i:do if((m|0)==(j[u>>1]|0))Bh(S,28,0,m+J|0,0)|0;else{h=k[f+(m<<2)>>2]|0;if((h|0)>-1){Wq(a,k[(k[g>>2]|0)+(h*20|0)>>2]|0,m+J|0);break}do if(!((k[ba>>2]&1|0)==0|(m|0)>31)){if(1<<m&v)break;Bh(S,28,0,m+J|0,0)|0;break i}while(0);st(S,ga,o,m,m+J|0)}while(0);m=m+1|0}while((m|0)<(j[fa>>1]|0))}do if(k[ba>>2]&1){Bt(S,ga,J);Ct(a,ca,110,c,1,ga,N,e,D);if(!n)Bh(S,70,o,D,N)|0;else Ch(S,Bh(S,68,o,D,B)|0,z,-14);g=j[fa>>1]|0;if(g<<16>>16<=0)break;u=ga+36|0;v=0;do{do if((k[f+(v<<2)>>2]|0)<0){if((v|0)==(j[u>>1]|0))break;st(S,ga,o,v,v+J|0);g=j[fa>>1]|0}while(0);v=v+1|0}while((v|0)<(g<<16>>16|0))}while(0);do if(!$){k[da>>2]=0;Dt(a,ga,Z,o,ea,L,N,R,e&255,D,da);if(M)Et(a,ga,N,0,f,U);g=(k[da>>2]|U|0)==0;do if(!g)if(!n){h=Bh(S,70,o,0,N)|0;break}else{h=Bh(S,68,o,0,B)|0;Ch(S,h,z,-14);break}else h=0;while(0);Ft(a,ga,o,ea,Z);if(M|(K|(n|0)!=0))Bh(S,95,o,0,0)|0;if(!g){g=k[S+32>>2]|0;if(g>>>0>h>>>0)k[(k[S+4>>2]|0)+(h*20|0)+8>>2]=g;k[(k[S+24>>2]|0)+88>>2]=g+-1}if(M){Et(a,ga,0,L,f,U);Gt(a,ga,o,ea,L,Z,1,0,0);Ht(a,ga,c,N,f,U);break}else{Gt(a,ga,o,ea,L,Z,1,0,0);break}}while(0);do if(k[H>>2]&128){if(k[a+412>>2]|0)break;Bh(S,37,q,1,0)|0}while(0);Ct(a,ca,110,c,2,ga,N,e,D);do if(!E){if(!n){Bh(S,16,0,D,0)|0;break}m=k[S+24>>2]|0;h=~D;do if((D|0)<0){n=k[m+112>>2]|0;if(!n)break;k[n+(h<<2)>>2]=k[S+32>>2]}while(0);k[m+88>>2]=(k[S+32>>2]|0)+-1;Bh(S,9,A,C,0)|0}while(0);m=k[S+24>>2]|0;h=~p;do if((p|0)<0){n=k[m+112>>2]|0;if(!n)break;k[n+(h<<2)>>2]=k[S+32>>2]}while(0);k[m+88>>2]=(k[S+32>>2]|0)+-1;h=k[t>>2]|0;if(h){m=0;do{n=m;m=m+1|0;if(i[aa+m>>0]|0)Bh(S,61,n+ea|0,0,0)|0;h=k[h+20>>2]|0}while((h|0)!=0)}if((o|0)<(ea|0))Bh(S,61,o,0,0)|0;do if(!(i[T>>0]|0)){if(k[a+412>>2]|0)break;xt(a)}while(0);if(!(k[H>>2]&128))break;if(k[a+412>>2]|0)break;if(i[T>>0]|0)break;Bh(S,35,q,1,0)|0;nq(S,1);if(i[(k[S>>2]|0)+65>>0]|0)break;ah(k[S+16>>2]|0,34520,-1,1,0)|0}while(0);if(P)k[P+492>>2]=Q}}}else f=0}else f=0;while(0);rg(ha,f);Io(ha,b);Sk(ha,c);Lk(ha,d);r=ia;return}function yr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0;la=r;r=r+96|0;if((r|0)>=(s|0))ka();$=la;fa=la+92|0;ha=la+88|0;I=la+68|0;V=la+64|0;L=la+32|0;_=la+28|0;k[fa>>2]=0;k[ha>>2]=0;ja=k[a>>2]|0;k[I+0>>2]=0;k[I+4>>2]=0;k[I+8>>2]=0;k[I+12>>2]=0;k[I+16>>2]=0;a:do if((k[a+64>>2]|0)==0?(K=ja+65|0,(i[K>>0]|0)==0):0){if(c)if((j[c+6>>1]&128)!=0?(k[c+52>>2]|0)==0:0){f=k[c>>2]|0;k[c>>2]=0;Rk(ja,c,1);c=0}else f=0;else{c=0;f=0}if((k[b+16>>2]|0)!=0?(ga=Or(a,b)|0,(ga|0)!=0):0){p=k[ga+68>>2]|0;b:do if(p){o=k[ja+20>>2]|0;if((o|0)>0){n=k[ja+16>>2]|0;h=0;while(1){m=h+1|0;if((k[n+(h<<4)+12>>2]|0)==(p|0)){m=h;break b}if((m|0)<(o|0))h=m;else break}}else m=0}else m=-1e6;while(0);if((((XqXqXq(a,d?14:16,k[b>>2]|0,k[e>>2]|0,c)|0)==0?(Xq(a,9,d?13184:13208,0,c)|0)==0:0)?(j=Tq(a)|0,(j|0)!=0):0)?(l=k[a+408>>2]|0,Fr(a,f),l=((l|0)==0?a:l)+328|0,k[l>>2]=k[l>>2]|1<<f,os(a,f),l=Dh(j,9,29624)|0,Ch(j,l+1|0,k[b>>2]|0,0),Ch(j,l+4|0,10720,-2),Ir(a,f),Bh(j,61,0,0,0)|0,l=k[b>>2]|0,Ch(j,Bh(j,126,f,0,0)|0,l,0),l=a+72|0,(k[l>>2]|0)<3):0)k[l>>2]=3;r=m;return}function Wr(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,l=0,m=0,n=0,o=0,p=0,q=0;q=r;r=r+32|0;if((r|0)>=(s|0))ka();h=q;o=k[a>>2]|0;k[h+0>>2]=0;k[h+4>>2]=0;k[h+8>>2]=0;k[h+12>>2]=0;k[h+16>>2]=0;k[h+20>>2]=0;k[h+24>>2]=0;k[h+28>>2]=0;k[h>>2]=a;do if(e)if((i[e>>0]|0)!=27)if(!(qs(h,e)|0)){p=5;break}else{p=13;break}else{i[e>>0]=97;p=5;break}else p=5;while(0);a:do if((p|0)==5){do if(f)if((i[f>>0]|0)!=27)if(!(qs(h,f)|0))break;else{p=13;break a}else{i[f>>0]=97;break}while(0);do if(g)if((i[g>>0]|0)!=27)if(!(qs(h,g)|0))break;else{p=13;break a}else{i[g>>0]=97;break}while(0);if(d){if((i[d>>0]|0)==97)d=k[d+8>>2]|0;else d=0;if(Xq(a,b,d,0,0)|0)break}n=Tq(a)|0;h=a+60|0;d=k[h>>2]|0;l=a+56|0;m=k[l>>2]|0;if((m|0)<4){m=a+72|0;d=k[m>>2]|0;k[m>>2]=d+4;d=d+1|0}else{k[h>>2]=d+4;k[l>>2]=m+-4}Wq(a,e,d);Wq(a,f,d+1|0);Wq(a,g,d+2|0);if(n){d=d+3|0;Bh(n,1,0,d-(j[c>>1]|0)|0,d)|0;d=k[n+4>>2]|0;if(d)i[d+(((k[n+32>>2]|0)+-1|0)*20|0)+3>>0]=j[c>>1];Ch(n,-1,c,-5);Bh(n,144,(b|0)==24&1,0,0)|0}}while(0);if((p|0)==13){c=a+64|0;k[c>>2]=(k[c>>2]|0)+1}Lk(o,e);Lk(o,f);Lk(o,g);r=q;return}function Xr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();h=j;e=j+4|0;f=k[a>>2]|0;a:do if(!(Ln(a)|0)){if(!b){Zt(a,0);break}if(!((c|0)!=0?(k[c>>2]|0)!=0:0))d=6;do if((d|0)==6){d=$q(k[a>>2]|0,b)|0;if(!d)break a;if(!(bo(f,i[f+62>>0]|0,d,0)|0)){rg(f,d);break}else{Zt(a,d);rg(f,d);break a}}while(0);b=jr(a,b,c,e)|0;if((b|0)>=0?(g=$q(f,k[e>>2]|0)|0,(g|0)!=0):0){c=k[(k[f+16>>2]|0)+(b<<4)>>2]|0;d=di(f,g,c)|0;if(d){_t(a,d,0);rg(f,g);break}c=gq(f,g,c)|0;rg(f,g);if(!c){yh(a,28872,h);break}else{d=k[a+408>>2]|0;Fr(a,b);d=((d|0)==0?a:d)+328|0;k[d>>2]=k[d>>2]|1<<b;As(a,c,-1);break}}}while(0);r=j;return}function Yr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();e=g;f=k[a>>2]|0;if(!(Ln(a)|0)){do if(!b){b=f+20|0;d=k[b>>2]|0;if((d|0)>0){c=0;do{if((c|0)!=1){$t(a,c);d=k[b>>2]|0}c=c+1|0}while((c|0)<(d|0))}}else{if(k[c+4>>2]|0){d=jr(a,b,c,e)|0;if((d|0)<=-1)break;d=k[(k[f+16>>2]|0)+(d<<4)>>2]|0;b=$q(f,k[e>>2]|0)|0;if(!b)break;c=gq(f,b,d)|0;if(!c){d=xh(a,0,b,d)|0;if(d)au(a,d,0)}else au(a,k[c+12>>2]|0,c);rg(f,b);break}c=$q(f,b)|0;d=_h(f,c)|0;rg(f,c);if((d|0)>-1){$t(a,d);break}c=$q(f,b)|0;if(c){d=gq(f,c,0)|0;if(!d){d=xh(a,0,c,0)|0;if(d)au(a,d,0)}else au(a,k[d+12>>2]|0,d);rg(f,c)}}while(0);d=Tq(a)|0;if(d)Bh(d,144,0,0,0)|0}r=g;return}function Zr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=k[c>>2]|0;if(!e)d=c+4|0;else{h=k[a>>2]|0;f=k[h+20>>2]|0;h=k[h+16>>2]|0;a:do if((f|0)>0){g=0;while(1){d=g+1|0;if((k[h+(g<<4)+12>>2]|0)==(e|0)){d=g;break a}if((d|0)<(f|0))g=d;else break}}else d=0;while(0);d=h+(d<<4)|0}return xh(a,b,k[c+8>>2]|0,k[d>>2]|0)|0}function _r(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();d=e;if(b){c=b;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;if((c-b&1073741823)>>>0>6?(Kc(b,25568,7)|0)==0:0){k[d>>2]=b;yh(a,25576,d);c=1}else c=0}else c=0;r=e;return c|0}function $r(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();d=e;if(!b){k[d>>2]=c;a=zh(a,25992,d)|0}else{k[d>>2]=b;k[d+4>>2]=c;d=zh(a,26e3,d)|0;rg(a,b);a=d}r=e;return a|0}function as(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;d=k[a>>2]|0;e=k[(k[d+16>>2]|0)+28>>2]|0;if((k[b+68>>2]|0)!=(e|0)?(c=Fs(a,b)|0,(c|0)!=0):0){b=c;c=0;do{if((k[b+20>>2]|0)==(e|0))c=$r(d,c,k[b>>2]|0)|0;b=k[b+32>>2]|0}while((b|0)!=0);if(c){b=k[a>>2]|0;k[f>>2]=c;b=zh(b,25968,f)|0;rg(k[a>>2]|0,c);c=b}else c=0}else c=0;r=g;return c|0}function bs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();l=o;m=Tq(a)|0;if(m){d=k[a>>2]|0;g=k[b+68>>2]|0;a:do if(g){h=k[d+20>>2]|0;if((h|0)>0){e=k[d+16>>2]|0;f=0;while(1){d=f+1|0;if((k[e+(f<<4)+12>>2]|0)==(g|0))break a;if((d|0)<(h|0))f=d;else{f=d;break}}}else f=0}else f=-1e6;while(0);d=Fs(a,b)|0;if(d)do{e=k[a>>2]|0;i=k[d+20>>2]|0;b:do if(i){j=k[e+20>>2]|0;if((j|0)>0){h=k[e+16>>2]|0;g=0;while(1){e=g+1|0;if((k[h+(g<<4)+12>>2]|0)==(i|0)){e=g;break b}if((e|0)<(j|0))g=e;else break}}else e=0}else e=-1e6;while(0);j=k[d>>2]|0;Ch(m,Bh(m,126,e,0,0)|0,j,0);d=k[d+32>>2]|0}while((d|0)!=0);d=k[b>>2]|0;Ch(m,Bh(m,124,f,0,0)|0,d,0);d=k[a>>2]|0;k[l>>2]=c;d=zh(d,25952,l)|0;if((d|0)!=0?(Nr(m,f,d),n=as(a,b)|0,(n|0)!=0):0)Nr(m,1,n)}r=o;return}