Lines Matching refs:Zk
7313 zkZk(b);if(!(Yk(b)|0)){break}f=c[d>>2]|0}_k(b);c[b+3980>>2]=0;c[b+3984>>2]=0;c[b+3988>>2]=0;i=e;return}}while(0);Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44016,g);c[b+3988>>2]=c[l>>2];i=e;return}function Yk(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;j=i;g=i;i=i+8|0;h=g;f=i;i=i+8|0;b=i;i=i+8|0;d=a+8|0;e=a+188|0;a:while(1){l=c[d>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if(!((l|0)==255|(l|0)==-1)){continue}b:while(1){switch(l|0){case 218:{k=8;break a};case 221:{k=10;break b};case 216:case 0:{continue a};case 238:{k=19;break b};case 193:case 192:{k=5;break b};case 196:{k=7;break b};case 194:{k=6;break b};case 224:{k=18;break b};case-1:{k=20;break a};case 219:{k=9;break b};case 217:{k=27;break a};case 255:{break};default:{k=21;break b}}l=c[d>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0}if((k|0)==5){if(hl(a)|0){continue}else{k=27;break}}else if((k|0)==6){if(il(a)|0){continue}else{k=27;break}}else if((k|0)==7){if(jl(a)|0){continue}else{k=27;break}}else if((k|0)==9){if(ll(a)|0){continue}else{k=27;break}}else if((k|0)==10){k=c[d>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){k=17;break}l=c[d>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){k=17;break}if((l+(k<<8)|0)!=4){k=17;break}k=c[d>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;do{if((k|0)==-1){k=-1}else{l=c[d>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){k=-1;break}k=l+(k<<8)|0}}while(0);c[e>>2]=k;continue}else if((k|0)==18){if(ml(a)|0){continue}else{k=27;break}}else if((k|0)==19){if(nl(a)|0){continue}else{k=27;break}}else if((k|0)==21){if((l|0)<=223){k=26;break}k=c[d>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){continue}l=c[d>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){continue}k=(k<<8)+ -2+l|0;if((k|0)>0){l=0}else{continue}while(1){m=c[d>>2]|0;jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;l=l+1|0;if((l|0)<(k|0)){}else{continue a}}}}if((k|0)==8){m=kl(a)|0;i=j;return m|0}else if((k|0)==17){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44704,b);i=j;return 0}else if((k|0)==20){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44424,f);i=j;return 0}else if((k|0)==26){m=jd[c[(c[a>>2]|0)+48>>2]&511](a)|0;c[g>>2]=l;Qe(m,44440,h);i=j;return 0}else if((k|0)==27){i=j;return 0}return 0}function Zk|0)+(t+h)|0;t=0;while(1){Oe(e,t+f|0,s,o);a[p]=a[n]|0;t=t+1|0;if((t|0)<(k|0)){p=p+1|0}else{break}}}r=r+1|0;if((r|0)>=(l|0)){break a}p=c[b>>2]|0}break};case 4:{if((l|0)<=0){break a}n=h<<2;o=e+12|0;f=f<<2;e=e+20|0;q=(k|0)>0;r=0;while(1){if(q){s=da(c[o>>2]|0,r+g|0)|0;t=da(c[p+12>>2]|0,r+j|0)|0;p=(c[p+20>>2]|0)+(t+n)|0;s=(c[e>>2]|0)+(s+f)|0;t=0;while(1){a[p]=a[s]|0;a[p+1|0]=a[s+1|0]|0;a[p+2|0]=a[s+2|0]|0;a[p+3|0]=-1;t=t+1|0;if((t|0)<(k|0)){s=s+4|0;p=p+4|0}else{break}}}r=r+1|0;if((r|0)>=(l|0)){break a}p=c[b>>2]|0}break};default:{}}}while(0);e=c[b>>2]|0;g=c[e+24>>2]|0;if((g|0)!=0&(l|0)>0){f=0}else{x=0;i=m;return x|0}while(1){bX(g+((da(c[e>>2]|0,f+j|0)|0)+h)|0,0,k|0)|0;f=f+1|0;if((f|0)>=(l|0)){h=0;break}e=c[b>>2]|0;g=c[e+24>>2]|0}i=m;return h|0}function Dp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;r=i;j=i;i=i+80|0;u=i;i=i+8|0;t=i;i=i+8|0;s=i;i=i+8|0;m=i;i=i+8|0;k=i;i=i+8|0;o=k;l=i;i=i+8|0;p=l;n=b+8|0;if((c[n>>2]|0)==0){y=255;i=r;return y|0}if((c[d+8>>2]|0)==0){y=2;i=r;return y|0}g=FW(12)|0;q=b+4|0;y=c[q>>2]|0;Pq(g,d,y,+h[y+104>>3],1);Vq(g);Wq(g);d=FW(52)|0;$q(d,g,0);br(d,u,t,s,m);s=Jp(c[(c[q>>2]|0)+132>>2]|0,c[u>>2]|0,c[t>>2]|0,c[s>>2]|0,c[m>>2]|0)|0;do{if((s|0)!=1){y=c[t>>2]|0;u=c[q>>2]|0;w=u+132|0;x=c[w>>2]|0;v=c[x+44>>2]|0;if((y|0)<(v|0)){c[t>>2]=v;x=c[w>>2]|0}else{v=y}w=c[x+52>>2]|0;if((c[m>>2]|0)>(w|0)){c[m>>2]=w}jp(b,j,0,v,f,0,+h[u+72>>3],(a[b+188|0]&1)!=0&(e^1),0);e=c[t>>2]|0;if((e|0)>(c[m>>2]|0)){break}t=(s|0)==0;while(1){hr(d,c[n>>2]|0,o,p,e);if(!t){Lp(c[(c[q>>2]|0)+132>>2]|0,c[n>>2]|0,o,p,e)}pp(b,j,c[k>>2]|0,c[l>>2]|0,e);if((e|0)<(c[m>>2]|0)){e=e+1|0}else{break}}}}while(0);c[b+184>>2]=s;if((d|0)!=0){ar(d);HW(d)}if((g|0)==0){y=0;i=r;return y|0}Uq(g);HW(g);y=0;i=r;return y|0}function Ep(b,d,e,f,g,j){b=b|0;d=+d;e=+e;f=+f;g=+g;j=j|0;var k=0,l=0.0,m=0;k=i;a[b]=j&1;j=b+8|0;if(d<f){h[j>>3]=d;h[b+24>>3]=f;l=f}else{h[j>>3]=f;h[b+24>>3]=d;l=d;d=f}j=b+16|0;if(e<g){h[j>>3]=e;h[b+32>>3]=g;f=g}else{h[j>>3]=g;h[b+32>>3]=e;f=e;e=g}if(d<=0.0){d=+R(+d)}c[b+40>>2]=~~d;if(e<=0.0){e=+R(+e)}c[b+44>>2]=~~e;if(l<=0.0){l=+R(+l)}c[b+48>>2]=~~l;if(f>0.0){d=f;m=~~d;j=b+52|0;c[j>>2]=m;j=b+56|0;bX(j|0,0,20)|0;i=k;return}d=+R(+f);j=~~d;m=b+52|0;c[m>>2]=j;m=b+56|0;bX(m|0,0,20)|0;i=k;return}function Fp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0;e=i;a[b]=a[d]&1;h[b+8>>3]=+h[d+8>>3];h[b+16>>3]=+h[d+16>>3];h[b+24>>3]=+h[d+24>>3];h[b+32>>3]=+h[d+32>>3];c[b+40>>2]=c[d+40>>2];c[b+44>>2]=c[d+44>>2];c[b+48>>2]=c[d+48>>2];c[b+52>>2]=c[d+52>>2];j=b+68|0;c[j>>2]=c[d+68>>2];g=c[d+72>>2]|0;l=b+72|0;c[l>>2]=g;f=b+56|0;c[f>>2]=ye(g,4)|0;g=b+60|0;c[g>>2]=ye(c[l>>2]|0,1)|0;b=b+64|0;c[b>>2]=ye(c[l>>2]|0,4)|0;if((c[j>>2]|0)<=0){i=e;return}k=d+56|0;d=d+60|0;l=0;do{n=c[(c[k>>2]|0)+(l<<2)>>2]|0;m=FW(12)|0;Tq(m,n);c[(c[f>>2]|0)+(l<<2)>>2]=m;a[(c[g>>2]|0)+l|0]=a[(c[d>>2]|0)+l|0]|0;m=FW(52)|0;$q(m,c[(c[f>>2]|0)+(l<<2)>>2]|0,(a[(c[g>>2]|0)+l|0]&1)!=0);c[(c[b>>2]|0)+(l<<2)>>2]=m;l=l+1|0;}while((l|0)<(c[j>>2]|0));i=e;return}function Gp(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;d=i;e=a+68|0;f=a+56|0;h=c[f>>2]|0;b=a+64|0;if((c[e>>2]|0)>0){g=0;do{h=c[h+(g<<2)>>2]|0;if((h|0)!=0){Uq(h);HW(h)}h=c[(c[b>>2]|0)+(g<<2)>>2]|0;if((h|0)!=0){ar(h);HW(h)}g=g+1|0;h=c[f>>2]|0}while((g|0)<(c[e>>2]|0))}Fe(h);Fe(c[a+60>>2]|0);Fe(c[b>>2]|0);i=d;return}function Hp(a,b,d,e,f){a=a|0;b=+b;d=+d;e=+e;f=+f;var g=0,j=0,k=0.0;g=i;j=a+8|0;k=+h[j>>3];do{if(b<e){if(k<b){h[j>>3]=b;if(b<=0.0){b=+R(+b)}c[a+40>>2]=~~b}j=a+24|0;if(+h[j>>3]<=e){break}h[j>>3]=e;if(e<=0.0){e=+R(+e)}c[a+48>>2]=~~e}else{if(k<e){h[j>>3]=e;if(e<=0.0){e=+R(+e)}c[a+40>>2]=~~e}j=a+24|0;if(+h[j>>3]<=b){break}h[j>>3]=b;if(b<=0.0){b=+R(+b)}c[a+48>>2]=~~b}}while(0);j=a+16|0;e=+h[j>>3];if(d<f){if(e<d){h[j>>3]=d;if(d<=0.0){d=+R(+d)}c[a+44>>2]=~~d}j=a+32|0;if(+h[j>>3]<=f){i=g;return 0}h[j>>3]=f;if(f<=0.0){f=+R(+f)}c[a+52>>2]=~~f;i=g;return 0}else{if(e<f){h[j>>3]=f;if(f<=0.0){f=+R(+f)}c[a+44>>2]=~~f}j=a+32|0;if(+h[j>>3]<=d){i=g;return 0}h[j>>3]=d;if(d<=0.0){d=+R(+d)}c[a+52>>2]=~~d;i=g;return 0}return 0}
7321 function $K(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;h=i;do{if((d|b|e|0)<0){a=6}else{if((e|0)==0|(b|0)==0){if((f|0)==0){f=0;a=0;break}hd[c[a+8>>2]&127](a,f);f=0;a=0;break}if((2147483647/(b|0)|0|0)<(e|0)){a=10;break}if((d|0)!=0){d=da(d,b)|0;b=da(e,b)|0;b=pd[c[a+12>>2]&63](a,d,b,f)|0;a=(b|0)==0;f=a?f:b;a=a?64:0;break}b=da(e,b)|0;if((b|0)<=0){f=0;a=b>>31&6;break}f=Bd[c[a+4>>2]&255](a,b)|0;e=(f|0)==0;a=e?64:0;if(e){f=0;break}bX(f|0,0,b|0)|0}}while(0);c[g>>2]=a;i=h;return f|0}function aL(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;g=i;e=(b|0)==0;do{if(e){j=0;f=4}else{h=(ZW(b|0)|0)+1|0;if((h|0)<=0){j=h;f=4;break}j=Bd[c[a+4>>2]&255](a,h)|0;a=j;j=(j|0)==0?64:0}}while(0);if((f|0)==4){h=j;a=0;j=j>>31&6}if((j|0)!=0|e){h=d;c[h>>2]=j;i=g;return a|0}$W(a|0,b|0,h|0)|0;h=d;c[h>>2]=j;i=g;return a|0}function bL(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=i;a:do{if(d>>>0>1){while(1){g=a[c]|0;if(g<<24>>24==0){break a}c=c+1|0;f=b+1|0;a[b]=g;d=d+ -1|0;if(d>>>0>1){b=f}else{b=f;break}}}}while(0);a[b]=0;i=e;return(a[c]|0)!=0|0}function cL(a){a=a|0;var b=0,c=0;b=i;while(1){c=a+ -1&a;if((c|0)==0){break}else{a=c}}i=b;return a|0}function dL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;a=i;c[e>>2]=0;if((b|0)==0){d=81;i=a;return d|0}d=nL(b,333319,f)|0;i=a;return d|0}function eL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;a=i;c[e>>2]=0;if((b|0)==0){d=81;i=a;return d|0}d=nL(b,333312,f)|0;i=a;return d|0}function fL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;k=i;i=i+32|0;j=k;h=i;i=i+8|0;b=c[a>>2]|0;d=mL(b,d,206480)|0;if((d|0)==0){k=64;i=g;return k|0}c[k>>2]=4;c[j+12>>2]=d;a=xJ(a,j,h)|0;do{if((a|0)==0){a=c[h>>2]|0;if((a|0)==0){f=81;break}f=nL(a,333319,f)|0;h=c[a+28>>2]|0;j=c[a+24>>2]|0;if((j|0)!=0){fd[j&511](a)}hd[c[h+8>>2]&127](h,a);if((f|0)!=0){break}c[e>>2]=d;k=0;i=g;return k|0}else{f=a}}while(0);hd[c[b+8>>2]&127](b,d);k=f;i=g;return k|0}function gL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;b=ZW(d|0)|0;h=b+18|0;a=c[a>>2]|0;do{if((h|0)>0){j=Bd[c[a+4>>2]&255](a,h)|0;k=(j|0)==0;a=k?64:0;if(k){j=0;break}bX(j|0,0,h|0)|0}else{j=0;a=h>>31&6}}while(0);if((a|0)!=0){k=a;i=g;return k|0}$W(j|0,d|0,b|0)|0;$W(j+b|0,206456,18)|0;c[e>>2]=j;c[f>>2]=0;k=0;i=g;return k|0}function hL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;b=ZW(d|0)|0;h=b+6|0;a=c[a>>2]|0;do{if((h|0)>0){j=Bd[c[a+4>>2]&255](a,h)|0;k=(j|0)==0;a=k?64:0;if(k){j=0;break}bX(j|0,0,h|0)|0}else{j=0;a=h>>31&6}}while(0);if((a|0)!=0){k=a;i=g;return k|0}$W(j|0,d|0,b|0)|0;$W(j+b|0,206448,6)|0;c[e>>2]=j;c[f>>2]=0;k=0;i=g;return k|0}function iL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;b=i;d=mL(c[a>>2]|0,d,206432)|0;if((d|0)==0){a=64;i=b;return a|0}c[e>>2]=d;c[f>>2]=0;a=0;i=b;return a|0}function jL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;b=i;d=mL(c[a>>2]|0,d,206416)|0;if((d|0)==0){a=64;i=b;return a|0}c[e>>2]=d;c[f>>2]=0;a=0;i=b;return a|0}function kL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;k=i;i=i+32|0;j=k;h=i;i=i+8|0;b=c[a>>2]|0;d=mL(b,d,206408)|0;if((d|0)==0){k=64;i=g;return k|0}c[k>>2]=4;c[j+12>>2]=d;a=xJ(a,j,h)|0;do{if((a|0)==0){a=c[h>>2]|0;if((a|0)==0){f=81;break}f=nL(a,333319,f)|0;h=c[a+28>>2]|0;j=c[a+24>>2]|0;if((j|0)!=0){fd[j&511](a)}hd[c[h+8>>2]&127](h,a);if((f|0)!=0){break}c[e>>2]=d;k=0;i=g;return k|0}else{f=a}}while(0);hd[c[b+8>>2]&127](b,d);k=f;i=g;return k|0}function lL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;k=i;i=i+32|0;j=k;h=i;i=i+8|0;b=c[a>>2]|0;d=mL(b,d,206392)|0;if((d|0)==0){k=64;i=g;return k|0}c[k>>2]=4;c[j+12>>2]=d;a=xJ(a,j,h)|0;do{if((a|0)==0){a=c[h>>2]|0;if((a|0)==0){f=81;break}f=nL(a,333319,f)|0;h=c[a+28>>2]|0;j=c[a+24>>2]|0;if((j|0)!=0){fd[j&511](a)}hd[c[h+8>>2]&127](h,a);if((f|0)!=0){break}c[e>>2]=d;k=0;i=g;return k|0}else{f=a}}while(0);hd[c[b+8>>2]&127](b,d);k=f;i=g;return k|0}function mL(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;g=ZW(d|0)|0;g=g+1+(ZW(e|0)|0)|0;do{if((g|0)>0){b=Bd[c[b+4>>2]&255](b,g)|0;j=(b|0)==0;h=j?64:0;if(j){b=0;break}bX(b|0,0,g|0)|0}else{b=0;h=g>>31&6}}while(0);if((h|0)!=0){j=0;i=f;return j|0}g=Sa(d|0,47)|0;if((g|0)==0){a[b]=0}else{j=g-d+1|0;hX(b|0,d|0,j|0)|0;a[b+j|0]=0;d=g+1|0}cX(b|0,e|0)|0;cX(b|0,d|0)|0;j=b;i=f;return j|0}function nL(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;m=i;i=i+8|0;h=i;i=i+8|0;g=a+8|0;o=c[g>>2]|0;k=a+4|0;if((o+3|0)>>>0>=(c[k>>2]|0)>>>0){q=85;i=f;return q|0}j=a+20|0;n=c[j>>2]|0;do{if((n|0)==0){n=(c[a>>2]|0)+o|0;if((n|0)==0){p=0}else{l=6}}else{if((pd[n&63](a,o,h,4)|0)==4){o=c[g>>2]|0;n=h;l=6;break}else{q=85;i=f;return q|0}}}while(0);if((l|0)==6){p=(d[n+1|0]|0)<<16|(d[n]|0)<<24|(d[n+2|0]|0)<<8|(d[n+3|0]|0)}n=o+4|0;c[g>>2]=n;if((p|0)!=(b|0)){q=2;i=f;return q|0}if((o+7|0)>>>0>=(c[k>>2]|0)>>>0){q=85;i=f;return q|0}b=c[j>>2]|0;do{if((b|0)==0){c[g>>2]=o+8;o=o+24|0;l=14}else{if((pd[b&63](a,n,h,4)|0)!=4){q=85;i=f;return q|0}n=c[g>>2]|0;o=c[j>>2]|0;c[g>>2]=n+4;b=n+20|0;if((o|0)==0){o=b;l=14;break}q=(pd[o&63](a,b,0,0)|0)==0;o=q?0:85}}while(0);if((l|0)==14){b=o;o=(c[k>>2]|0)>>>0<o>>>0?85:0}if((o|0)!=0){q=o;i=f;return q|0}c[g>>2]=b;if((n+21|0)>>>0>=(c[k>>2]|0)>>>0){q=85;i=f;return q|0}l=c[j>>2]|0;do{if((l|0)==0){m=(c[a>>2]|0)+b|0;if((m|0)!=0){break}c[g>>2]=n+22;q=2;i=f;return q|0}else{if((pd[l&63](a,b,m,2)|0)==2){b=c[g>>2]|0;break}else{q=85;i=f;return q|0}}}while(0);q=(d[m]|0)<<8&65535|(d[m+1|0]|0);p=b+2|0;c[g>>2]=p;m=q&65535;if(q<<16>>16==0){q=2;i=f;return q|0}b=1;a:while(1){if((p+3|0)>>>0>=(c[k>>2]|0)>>>0){o=85;l=49;break}l=c[j>>2]|0;do{if((l|0)==0){n=(c[a>>2]|0)+p|0;if((n|0)!=0){l=30;break}c[g>>2]=p+4;o=p+12|0;l=44}else{if((pd[l&63](a,p,h,4)|0)!=4){o=85;l=49;break a}p=c[g>>2]|0;n=h;l=30}}while(0);do{if((l|0)==30){l=0;q=(d[n+1|0]|0)<<16|(d[n]|0)<<24|(d[n+2|0]|0)<<8|(d[n+3|0]|0);n=p+4|0;c[g>>2]=n;if((q|0)!=2){l=c[j>>2]|0;n=p+12|0;if((l|0)==0){o=n;l=44;break}q=(pd[l&63](a,n,0,0)|0)==0;o=q?0:85;l=45;break}o=c[k>>2]|0;if((p+7|0)>>>0>=o>>>0){break}p=c[j>>2]|0;if((p|0)==0){p=(c[a>>2]|0)+n|0;if((p|0)==0){p=0}else{l=36}}else{if((pd[p&63](a,n,h,4)|0)!=4){break}o=c[k>>2]|0;n=c[g>>2]|0;p=h;l=36}if((l|0)==36){l=0;p=(d[p+1|0]|0)<<16|(d[p]|0)<<24|(d[p+2|0]|0)<<8|(d[p+3|0]|0)}q=n+4|0;c[g>>2]=q;if((n+7|0)>>>0>=o>>>0){break}n=c[j>>2]|0;if((n|0)==0){break a}if((pd[n&63](a,q,h,4)|0)==4){l=40;break a}}}while(0);if((l|0)==44){n=o;o=(c[k>>2]|0)>>>0<o>>>0?85:0;l=45}if((l|0)==45){if((o|0)!=0){l=49;break}c[g>>2]=n}if((b|0)>=(m|0)){o=2;l=49;break}p=c[g>>2]|0;b=b+1|0}if((l|0)==40){q=c[g>>2]|0}else if((l|0)==49){i=f;return o|0}c[g>>2]=q+4;c[e>>2]=p;q=0;i=f;return q|0}function oL(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;k=i;i=i+128|0;j=k;if((e|0)==0){n=85;i=h;return n|0}l=e+20|0;m=c[l>>2]|0;do{if((m|0)!=0){m=(pd[m&63](e,0,0,0)|0)==0;if(m){break}else{g=m?0:85}i=h;return g|0}}while(0);m=e+8|0;c[m>>2]=0;n=c[e+4>>2]|0;if((n|0)==0){n=85;i=h;return n|0}l=c[l>>2]|0;if((l|0)==0){l=n>>>0>128?128:n;$W(k|0,c[e>>2]|0,l|0)|0}else{l=pd[l&63](e,0,j,128)|0}c[m>>2]=l;if(l>>>0<=127){n=85;i=h;return n|0}if((a[k]|0)!=0){n=2;i=h;return n|0}if((a[j+74|0]|0)!=0){n=2;i=h;return n|0}if((a[j+82|0]|0)!=0){n=2;i=h;return n|0}k=a[j+1|0]|0;if(k<<24>>24==0|(k&255)>33){n=2;i=h;return n|0}if((a[j+63|0]|0)!=0){n=2;i=h;return n|0}if((a[j+((k&255)+2)|0]|0)!=0){n=2;i=h;return n|0}n=pL(b,e,(d[j+84|0]<<16|d[j+83|0]<<24|d[j+85|0]<<8|d[j+86|0])+255&-128,f,g)|0;i=h;return n|0}function pL(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;k=i;p=i;i=i+8|0;n=i;i=i+8|0;t=i;i=i+8|0;s=i;i=i+8|0;l=i;i=i+8|0;o=l;q=i;i=i+8|0;r=q;j=c[b>>2]|0;f=BK(0,e,f,t,s)|0;if((f|0)!=0){F=f;i=k;return F|0}t=c[t>>2]|0;s=c[s>>2]|0;if((FK(b,e,t,s,1347375956,o,r)|0)!=0){o=FK(b,e,t,s,1936092788,o,r)|0;if((o|0)!=0){F=o;i=k;return F|0}o=c[q>>2]|0;p=(g|0)%(o|0)|0;s=c[b>>2]|0;f=(p|0)==-1?0:p;p=c[l>>2]|0;a:do{if((f|0)<(o|0)){t=c[p+(f<<2)>>2]|0;r=e+20|0;q=c[r>>2]|0;if((q|0)==0){q=(c[e+4>>2]|0)>>>0<t>>>0?85:0}else{F=(pd[q&63](e,t,0,0)|0)==0;q=F?0:85}if((q|0)!=0){m=q;break}q=e+8|0;c[q>>2]=t;g=e+4|0;if((t+3|0)>>>0>=(c[g>>2]|0)>>>0){m=85;break}u=c[r>>2]|0;do{if((u|0)==0){n=(c[e>>2]|0)+t|0;if((n|0)!=0){u=t;m=77;break}c[q>>2]=t+4;n=0}else{if((pd[u&63](e,t,n,4)|0)!=4){m=85;break a}u=c[q>>2]|0;m=77}}while(0);if((m|0)==77){n=(d[n+1|0]|0)<<16|(d[n]|0)<<24|(d[n+2|0]|0)<<8|(d[n+3|0]|0);c[q>>2]=u+4;if((n|0)==-1){m=1;break}}m=QJ(b,e,f,h)|0;if((m|0)==0){m=0;break}t=t+4|0;f=c[r>>2]|0;if((f|0)==0){f=(c[g>>2]|0)>>>0<t>>>0?85:0}else{F=(pd[f&63](e,t,0,0)|0)==0;f=F?0:85}if((f|0)!=0){break}c[q>>2]=t;do{if((n|0)>0){m=Bd[c[s+4>>2]&255](s,n)|0;t=(m|0)==0;s=t?64:0;if(t){m=0;break}bX(m|0,0,n|0)|0}else{m=0;s=n>>31&6}}while(0);if((s|0)!=0){m=s;break}s=c[q>>2]|0;g=c[g>>2]|0;if(g>>>0<=s>>>0){m=85;break}r=c[r>>2]|0;if((r|0)==0){r=g-s|0;F=r>>>0>n>>>0?n:r;$W(m|0,(c[e>>2]|0)+s|0,F|0)|0;e=F}else{e=pd[r&63](e,s,m,n)|0}c[q>>2]=e+s;if(e>>>0<n>>>0){m=85;break}if((n|0)>4){F=(iX(m|0,206488,4)|0)!=0;e=F?206240:206496}else{e=206240}m=qL(b,m,n,0,e,h)|0}else{m=1}}while(0);if((p|0)!=0){hd[c[j+8>>2]&127](j,p)}c[l>>2]=0;if((m|0)!=0){F=m;i=k;return F|0}c[c[h>>2]>>2]=o;F=0;i=k;return F|0}o=c[l>>2]|0;r=c[q>>2]|0;q=c[b>>2]|0;b:do{if((g|0)==0|(g|0)==-1){f=(r|0)>0;do{if(f){v=e+20|0;g=e+4|0;u=e+8|0;s=0;t=0;do{w=c[o+(s<<2)>>2]|0;x=c[v>>2]|0;if((x|0)==0){C=(c[g>>2]|0)>>>0<w>>>0?85:0}else{F=(pd[x&63](e,w,0,0)|0)==0;C=F?0:85}if((C|0)!=0){break b}c[u>>2]=w;if((w+3|0)>>>0>=(c[g>>2]|0)>>>0){C=85;break b}x=c[v>>2]|0;if((x|0)==0){x=(c[e>>2]|0)+w|0;if((x|0)==0){x=6}else{m=15}}else{if((pd[x&63](e,w,n,4)|0)!=4){C=85;break b}w=c[u>>2]|0;x=n;m=15}if((m|0)==15){m=0;x=((d[x+1|0]|0)<<16|(d[x]|0)<<24|(d[x+2|0]|0)<<8|(d[x+3|0]|0))+6|0}c[u>>2]=w+4;t=x+t|0;s=s+1|0;}while((s|0)<(r|0));u=t+2|0;if((u|0)>0){g=u;m=19;break}g=u;s=0;C=u>>31&6}else{g=2;t=0;m=19}}while(0);do{if((m|0)==19){s=Bd[c[q+4>>2]&255](q,g)|0;u=(s|0)==0;C=u?64:0;if(u){s=0;break}bX(s|0,0,g|0)|0}}while(0);if((C|0)!=0){break}a[s]=-128;a[s+1|0]=1;F=s+2|0;a[F]=0;a[F+1|0]=0;a[F+2|0]=0;a[F+3|0]=0;c:do{if(f){v=e+20|0;f=e+4|0;u=e+8|0;w=0;z=0;y=2;x=6;A=1;do{B=c[o+(w<<2)>>2]|0;C=c[v>>2]|0;if((C|0)==0){C=(c[f>>2]|0)>>>0<B>>>0?85:0}else{F=(pd[C&63](e,B,0,0)|0)==0;C=F?0:85}if((C|0)!=0){break c}c[u>>2]=B;D=c[f>>2]|0;if((B+3|0)>>>0>=D>>>0){C=85;break b}C=c[v>>2]|0;if((C|0)==0){C=(c[e>>2]|0)+B|0;if((C|0)==0){C=B;B=0}else{E=C;m=33}}else{if((pd[C&63](e,B,n,4)|0)!=4){C=85;break b}D=c[f>>2]|0;B=c[u>>2]|0;E=n;m=33}if((m|0)==33){m=0;C=B;B=(d[E+1|0]|0)<<16|(d[E]|0)<<24|(d[E+2|0]|0)<<8|(d[E+3|0]|0)}E=C+4|0;c[u>>2]=E;if((C+5|0)>>>0>=D>>>0){C=85;break b}D=c[v>>2]|0;do{if((D|0)==0){D=(c[e>>2]|0)+E|0;if((D|0)!=0){m=40;break}c[u>>2]=C+6}else{if((pd[D&63](e,E,p,2)|0)!=2){C=85;break b}E=c[u>>2]|0;D=p;m=40}}while(0);do{if((m|0)==40){m=0;C=((d[D]|0)<<8&65535)>>>8;c[u>>2]=E+2;if((C|0)==0){break}B=(B|0)>2?B+ -2|0:0;if((C|0)==(A|0)){z=B+z|0;D=x}else{E=y+3|0;if((E|0)>(g|0)){C=0;break c}F=z&255;a[s+y|0]=F;A=z>>>8&255;a[s+(y+1)|0]=A;D=z>>>16&255;a[s+(y+2)|0]=D;z=z>>>24&255;a[s+E|0]=z;if((C|0)==5){e=z;m=56;break c}y=x+4|0;if((y|0)>(t|0)){C=0;break c}a[s+x|0]=-128;D=x+2|0;a[s+(x+1)|0]=C;a[s+D|0]=0;a[s+(x+3)|0]=0;a[s+y|0]=0;a[s+(x+5)|0]=0;z=B;y=D;D=x+6|0;A=C}if((D|0)>(t|0)){C=1;break c}x=D+B|0;if((x|0)>(t|0)){C=1;break c}D=s+D|0;C=c[u>>2]|0;E=c[f>>2]|0;if(E>>>0<=C>>>0){C=85;break c}F=c[v>>2]|0;if((F|0)==0){E=E-C|0;F=E>>>0>B>>>0?B:E;$W(D|0,(c[e>>2]|0)+C|0,F|0)|0;D=F}else{D=pd[F&63](e,C,D,B)|0}c[u>>2]=D+C;if(D>>>0<B>>>0){C=85;break c}}}while(0);w=w+1|0;}while((w|0)<(r|0));F=z&255;D=z>>>16&255;e=z>>>24&255;A=z>>>8&255;m=56}else{F=0;D=0;e=0;A=0;y=2;x=6;m=56}}while(0);do{if((m|0)==56){if((x|0)>(t|0)){C=0;break}a[s+x|0]=-128;a[s+(x+1)|0]=3;m=y+3|0;if((m|0)>(g|0)){C=0;break}a[s+y|0]=F;a[s+(y+1)|0]=A;a[s+(y+2)|0]=D;a[s+m|0]=e;C=qL(b,s,x+2|0,0,206504,h)|0;break b}}while(0);if((s|0)==0){break}hd[c[q+8>>2]&127](q,s)}else{C=1}}while(0);if((o|0)!=0){hd[c[j+8>>2]&127](j,o)}c[l>>2]=0;if((C|0)!=0){F=C;i=k;return F|0}c[c[h>>2]>>2]=1;F=0;i=k;return F|0}function qL(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;m=i;i=i+32|0;l=m;j=c[a>>2]|0;k=(b|0)==0;do{if((a|0)==0){if(k){j=33}else{g=33;break}i=h;return j|0}else{if(k){n=6;i=h;return n|0}k=Bd[c[j+4>>2]&255](j,40)|0;if((k|0)==0){g=64;break}bX(k|0,0,40)|0;c[k>>2]=b;c[k+4>>2]=d;c[k+8>>2]=0;c[k+32>>2]=0;c[k+20>>2]=0;b=k+24|0;c[b>>2]=329;c[m>>2]=2;c[l+16>>2]=k;if((f|0)!=0){c[m>>2]=10;n=c[a+24>>2]|0;d=a+28+(n<<2)|0;a:do{if((n|0)>0){n=a+28|0;while(1){m=c[n>>2]|0;n=n+4|0;if((Qc(c[(c[m>>2]|0)+8>>2]|0,f|0)|0)==0){break a}if(n>>>0<d>>>0){}else{m=0;break}}}else{m=0}}while(0);c[l+20>>2]=m}e=MJ(a,l,e,g)|0;if((e|0)==0){n=(c[g>>2]|0)+8|0;c[n>>2]=c[n>>2]&-1025;n=0;i=h;return n|0}g=c[b>>2]|0;if((g|0)!=0){fd[g&511](k)}hd[c[j+8>>2]&127](j,k);n=e;i=h;return n|0}}while(0);hd[c[j+8>>2]&127](j,b);n=g;i=h;return n|0}function rL(a){a=a|0;var b=0,d=0,e=0;b=i;e=c[a+28>>2]|0;d=c[a>>2]|0;if((d|0)!=0){hd[c[e+8>>2]&127](e,d)}c[a+4>>2]=0;c[a>>2]=0;c[a+24>>2]=0;i=b;return}function sL(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=c[a>>2]|0;if((c[b+72>>2]|0)!=1651078259){a=18;i=d;return a|0}c[a+20>>2]=c[b+100>>2];c[a+24>>2]=c[b+104>>2];f=b+156|0;a=a+28|0;if((c[(c[f>>2]|0)+4>>2]&1|0)==0){YV(a);a=ZV(e,b+76|0,a)|0;i=d;return a|0}else{$W(a|0,b+76|0,24)|0;a=(c[f>>2]|0)+4|0;c[a>>2]=c[a>>2]&-2;a=0;i=d;return a|0}return 0}function tL(a){a=a|0;var b=0;b=i;_V(c[a>>2]|0,a+28|0)|0;i=b;return}function uL(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[a>>2]|0;c[b+20>>2]=c[a+20>>2];c[b+24>>2]=c[a+24>>2];a=ZV(e,a+28|0,b+28|0)|0;i=d;return a|0}function vL(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[a+20>>2]<<6;c[b>>2]=e;d=a+28|0;c[b+8>>2]=(c[d+4>>2]<<6)+e;a=c[a+24>>2]<<6;c[b+12>>2]=a;c[b+4>>2]=a-(c[d>>2]<<6);i=i;return}function wL(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=i;f=d+108|0;g=a+20|0;if((c[d+72>>2]|0)!=1869968492){d=18;i=e;return d|0}a=wK(c[a>>2]|0,b[d+110>>1]|0,b[f>>1]|0,g)|0;if((a|0)!=0){d=a;i=e;return d|0}xK(f,g)|0;d=0;i=e;return d|0}function xL(a){a=a|0;var b=0;b=i;yK(c[a>>2]|0,a+20|0)|0;i=b;return}function yL(a,d){a=a|0;d=d|0;var e=0,f=0;e=i;f=a+20|0;d=d+20|0;a=wK(c[a>>2]|0,b[f+2>>1]|0,b[f>>1]|0,d)|0;if((a|0)!=0){i=e;return a|0}xK(f,d)|0;i=e;return a|0}function zL(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)!=0){GJ(a+20|0,b)}if((d|0)==0){i=e;return}HJ(a+20|0,c[d>>2]|0,c[d+4>>2]|0);i=e;return}function AL(a,b){a=a|0;b=b|0;var c=0;c=i;zKZK(e,207248,t)|0;c[D>>2]=J;if((J|0)!=0){f=1;l=20;break}if((c[t>>2]|0)!=1885562369){f=3;l=20;break}t=f+188|0;C=c[t>>2]|0;if(C>>>0>134217727|(C|0)==0){f=3;l=20;break}C=oJ(k,16,0,C,0,u)|0;u=f+192|0;c[u>>2]=C;if((c[D>>2]|0)!=0){f=64;l=20;break}do{if((c[t>>2]|0)==0){F=0;l=10}else{E=0;while(1){J=ZK(e,207264,C)|0;c[D>>2]=J;if((J|0)!=0){break}E=E+1|0;F=c[t>>2]|0;if(E>>>0<F>>>0){C=C+16|0}else{l=9;break}}if((l|0)==9){C=c[u>>2]|0;if((F|0)==1){F=1;l=22;break}else{l=10;break}}lJ(k,c[u>>2]|0);c[u>>2]=0;J=c[D>>2]|0;c[h>>2]=J;if((J|0)!=0){break a}F=c[t>>2]|0;C=0}}while(0);if((l|0)==10){D=0;while(1){l=~D;D=D+1|0;if((F|0)==(D|0)){break}G=c[C+12>>2]|0;H=0;F=0;while(1){E=F+1|0;I=C+(E<<4)+12|0;J=c[I>>2]|0;if(G>>>0>J>>>0){G=C+(E<<4)|0;H=C+(F<<4)|0;$W(B|0,H|0,16)|0;$W(H|0,G|0,16)|0;$W(G|0,B|0,16)|0;G=c[I>>2]|0;H=1}else{G=J}I=c[C+(F<<4)+8>>2]|0;if(I>>>0>G>>>0){f=9;l=20;break a}if((c[C+(F<<4)+12>>2]|0)>>>0>(G-I|0)>>>0){f=9;l=20;break a}F=c[t>>2]|0;if(E>>>0<(F+l|0)>>>0){F=E}else{break}}if((H|0)==0){break}if(D>>>0<(F+ -1|0)>>>0){}else{break}}C=c[u>>2]|0;l=22}if((l|0)==22){c[h>>2]=0}B=c[q>>2]|0;b:do{if((F|0)==0){z=3;l=30}else{D=0;while(1){E=D+1|0;if((c[C+(D<<4)>>2]|0)==1){break}if(E>>>0<F>>>0){D=E}else{z=3;l=30;break b}}E=c[e+8>>2]|0;F=c[C+(D<<4)+12>>2]|0;if(E>>>0>F>>>0){z=83;l=30;break}if((DK(e,F-E|0)|0)!=0){z=83;l=30;break}G=c[C+(D<<4)+8>>2]|0;c[o>>2]=0;C=YK(e,z)|0;if(!((c[o>>2]|0)==0&C>>>0<256)){D=0;G=0;break}F=(C&4|0)==0;if(F){C=YK(e,z)|0}else{C=GK(e,z)|0}if((c[o>>2]|0)!=0){D=0;G=0;break}if(C>>>0>((G>>>0)/9|0)>>>0){c[o>>2]=8;D=0;G=0;break}c[f+280>>2]=C;D=oJ(B,12,0,C,0,z)|0;if((c[o>>2]|0)!=0){G=0;break}E=(C|0)==0;do{if(!E){if(F){H=0;do{J=ZK(e,207224,D+(H*12|0)|0)|0;c[o>>2]=J;if((J|0)!=0){G=0;break b}H=H+1|0;}while(H>>>0<C>>>0)}else{H=0;do{J=ZK(e,207200,D+(H*12|0)|0)|0;c[o>>2]=J;if((J|0)!=0){G=0;break b}H=H+1|0;}while(H>>>0<C>>>0)}H=C&3;if((H|0)==0){break}J=DK(e,4-H|0)|0;c[o>>2]=J;if((J|0)==0){break}c[o>>2]=83;G=0;break b}}while(0);if(F){F=YK(e,z)|0}else{F=GK(e,z)|0}if((c[o>>2]|0)!=0){G=0;break}if(F>>>0>((da(C,-9)|0)+G|0)>>>0){c[o>>2]=8;G=0;break}G=oJ(B,1,0,F,0,z)|0;if((c[o>>2]|0)!=0){break}J=CK(e,G,F)|0;c[o>>2]=J;if((J|0)!=0){break}H=oJ(B,12,0,C,0,z)|0;if((c[o>>2]|0)!=0){break}c[f+284>>2]=H;c:do{if(!E){E=0;while(1){I=c[D+(E*12|0)>>2]|0;if((I|0)<0|I>>>0>F>>>0){l=59;break}c[H+(E*12|0)>>2]=aL(B,G+I|0,z)|0;if((c[o>>2]|0)!=0){break b}J=D+(E*12|0)+4|0;a[H+(E*12|0)+4|0]=a[J]|0;I=c[D+(E*12|0)+8>>2]|0;if((a[J]|0)==0){c[H+(E*12|0)+8>>2]=I}else{if((I|0)<0|I>>>0>F>>>0){l=63;break}c[H+(E*12|0)+8>>2]=aL(B,G+I|0,z)|0;if((c[o>>2]|0)!=0){break b}}E=E+1|0;if(E>>>0>=C>>>0){break c}}if((l|0)==59){c[o>>2]=9;break b}else if((l|0)==63){c[o>>2]=9;break b}}}while(0);c[o>>2]=0}}while(0);if((l|0)==30){c[o>>2]=z;D=0;G=0}lJ(B,D);lJ(B,G);J=c[o>>2]|0;c[h>>2]=J;if((J|0)!=0){break}o=c[u>>2]|0;B=c[t>>2]|0;d:do{if((B|0)==0){l=72}else{z=0;while(1){C=z+1|0;if((c[o+(z<<4)>>2]|0)==256){z=1;break d}if(C>>>0<B>>>0){z=C}else{l=72;break}}}}while(0);if((l|0)==72){J=_L(e,f,2)|0;c[h>>2]=J;if((J|0)!=0){break}B=c[t>>2]|0;o=c[u>>2]|0;z=0}c[w>>2]=0;C=c[q>>2]|0;e:do{if((B|0)==0){E=3;l=79}else{l=0;while(1){D=l+1|0;if((c[o+(l<<4)>>2]|0)==4){break}if(D>>>0<B>>>0){l=D}else{E=3;l=79;break e}}B=e+8|0;E=c[B>>2]|0;D=c[o+(l<<4)+12>>2]|0;if(E>>>0>D>>>0){E=83;l=79;break}if((DK(e,D-E|0)|0)!=0){E=83;l=79;break}D=c[o+(l<<4)+8>>2]|0;c[w>>2]=0;l=YK(e,A)|0;E=c[w>>2]|0;if((E|0)!=0){l=102;break}J=l&-256;if(!((J|0)==256|(J|0)==0)){E=3;l=102;break}F=l>>>0<256;E=(l&4|0)!=0;do{if(F){if(E){l=GK(e,A)|0;break}else{l=YK(e,A)|0;break}}else{if(E){l=(EK(e,A)|0)&65535;break}else{l=(WK(e,A)|0)&65535;break}}}while(0);if((c[w>>2]|0)!=0){E=3;l=102;break}o=f+288|0;c[o>>2]=l;if((l|0)==0){E=8;l=102;break}if(F){if(l>>>0>((D>>>0)/12|0)>>>0){E=8;l=102;break}}else{if(l>>>0>((D>>>0)/5|0)>>>0){E=8;l=102;break}}D=oJ(C,16,0,l,0,A)|0;A=f+292|0;c[A>>2]=D;if((c[w>>2]|0)!=0){E=64;l=102;break}J=E?206992:207024;I=y+1|0;E=y+2|0;H=y+3|0;G=y+4|0;f:do{if(F){x=0;while(1){c[w>>2]=ZK(e,J,D+(x<<4)|0)|0;c[D+(x<<4)+12>>2]=0;x=x+1|0;if((c[w>>2]|0)!=0){l=104;break f}if(x>>>0<l>>>0){}else{l=103;break}}}else{F=0;while(1){J=ZKZK(a,207144,h)|0;c[f>>2]=h;if((h|0)==0){break}i=e;return h|0}else{h=ZK(a,207088,h)|0;c[f>>2]=h;if((h|0)==0){break}i=e;return h|0}}while(0);h=b+216|0;j=(j|0)!=0?206992:207024;k=ZK(a,j,h)|0;c[f>>2]=k;if((k|0)!=0){l=k;i=e;return l|0}k=b+232|0;d=ZK(a,j,k)|0;c[f>>2]=d;if((d|0)!=0){l=d;i=e;return l|0}d=b+248|0;if((g|0)!=256){$W(d|0,h|0,16)|0;$W(b+264|0,k|0,16)|0;l=0;i=e;return l|0}g=ZK(a,j,d)|0;c[f>>2]=g;if((g|0)!=0){l=g;i=e;return l|0}l=ZK(a,j,b+264|0)|0;c[f>>2]=l;i=e;return l|0}}while(0);c[f>>2]=b;l=b;i=e;return l|0}function $L(a,b,d){a=a|0;b=b|0;d=d|0;c[b>>2]=c[a+176>>2];c[d>>2]=c[a+180>>2];i=i;return 0}function aM(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;g=i;f=c[b+284>>2]|0;b=c[b+280>>2]|0;if((b|0)>0){h=0}else{k=6;i=g;return k|0}while(1){j=h+1|0;k=(Qc(c[f+(h*12|0)>>2]|0,d|0)|0)!=0;if((j|0)<(b|0)&k){h=j}else{break}}if(k){k=6;i=g;return k|0}if((f+(h*12|0)|0)==0){k=6;i=g;return k|0}if((a[f+(h*12|0)+4|0]|0)==0){c[e>>2]=2;c[e+4>>2]=c[f+(h*12|0)+8>>2];k=0;i=g;return k|0}else{c[e>>2]=1;c[e+4>>2]=c[f+(h*12|0)+8>>2];k=0;i=g;return k|0}return 0}function bM(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;b=i;e=(c[a>>2]|0)+288|0;d=c[e+120>>2]|0;c[a+16>>2]=d;e=c[e+128>>2]|0;c[a+20>>2]=e;if(d>>>0<=1){g=0;i=b;return g|0}a=c[e>>2]|0;g=1;while(1){f=c[e+(g<<4)>>2]|0;g=g+1|0;if(a>>>0>=f>>>0){e=8;d=5;break}if(g>>>0<d>>>0){a=f}else{e=0;d=5;break}}if((d|0)==5){i=b;return e|0}return 0}function cM(a){a=a|0;c[a+20>>2]=0;c[a+16>>2]=0;i=i;return}function dM(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;e=i;g=c[a+16>>2]|0;if((g|0)==0){j=0;i=e;return j|0}a=c[a+20>>2]|0;h=0;while(1){f=((g-h|0)>>>1)+h|0;j=c[a+(f<<4)>>2]|0;if((j|0)==(b|0)){break}j=j>>>0<b>>>0;g=j?g:f;h=j?f+1|0:h;if(h>>>0>=g>>>0){b=0;d=6;break}}if((d|0)==6){i=e;return b|0}j=f+1|0;i=e;return j|0}function eM(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;f=c[a+16>>2]|0;a=a+20|0;a:do{if((f|0)==0){l=0;d=8}else{j=c[b>>2]|0;do{j=j+1|0;h=c[a>>2]|0;k=f;l=0;while(1){g=((k-l|0)>>>1)+l|0;m=c[h+(g<<4)>>2]|0;if((m|0)==(j|0)){break}m=m>>>0<j>>>0;l=m?g+1|0:l;k=m?k:g;if(l>>>0>=k>>>0){d=8;break a}}}while((g|0)==0);f=g+1|0}}while(0);do{if((d|0)==8){if(l>>>0>=f>>>0|(l|0)==0){j=0;f=0;break}j=c[(c[a>>2]|0)+(l<<4)>>2]|0;f=l+1|0}}while(0);c[b>>2]=j;i=e;return f|0}function fM(a,b,d,f,g){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;var h=0,j=0;h=i;j=a+288|0;a=c[a+88>>2]|0;if((b|0)!=0){c[b>>2]=c[j+12>>2]}if((d|0)!=0){c[d>>2]=c[j+16>>2]}if((a|0)==0){j=65536;a=65536}else{b=j+16|0;j=bJ((e[a+12>>1]|0)<<6,c[b>>2]|0)|0;a=bJ((e[a+14>>1]|0)<<6,c[b>>2]|0)|0}if((f|0)!=0){c[f>>2]=j}if((g|0)==0){i=h;return 0}c[g>>2]=a;i=h;return 0}function gM(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;j=i;k=e+288|0;c[h>>2]=0;c[h+4>>2]=0;f=(f|0)==0?0:f+ -1|0;g=(g|0)==0?0:g+ -1|0;r=c[k+120>>2]|0;if(f>>>0>r>>>0|g>>>0>r>>>0){r=0;i=j;return r|0}r=c[k+128>>2]|0;f=c[r+(g<<4)>>2]&65535|c[r+(f<<4)>>2]<<16;k=c[k+136>>2]|0;e=c[e+104>>2]|0;if((k|0)==0){r=0;i=j;return r|0}while(1){if(f>>>0>=(c[k+16>>2]|0)>>>0){if(f>>>0<=(c[k+20>>2]|0)>>>0){break}}k=c[k>>2]|0;if((k|0)==0){h=0;l=33;break}}if((l|0)==33){i=j;return h|0}l=PJ(e,c[k+12>>2]|0)|0;if((l|0)!=0){r=l;i=j;return r|0}l=k+4|0;g=k+8|0;m=MK(e,da(d[l]|0,c[g>>2]|0)|0)|0;if((m|0)!=0){r=m;i=j;return r|0}l=d[l]|0;n=c[g>>2]|0;q=cL(l)|0;o=da(q,n)|0;p=c[e+32>>2]|0;g=a[k+5|0]|0;m=g&1;g=g&2;do{if((l|0)==(q|0)){l=16}else{q=da(l-q|0,n)|0;if(m<<24>>24==0){l=q+2|0;q=d[p+q|0]<<16|d[p+(q+1)|0]}else{l=q+4|0;q=d[p+(q+1)|0]<<16|d[p+q|0]<<24|d[p+(q+2)|0]<<8|d[p+(q+3)|0]}if((q|0)==(f|0)){n=p+l|0;l=28;break}if(q>>>0>=f>>>0){l=16;break}p=p+(l+(g<<24>>24==0?1:2))|0;l=16}}while(0);a:do{if((l|0)==16){b:do{if(o>>>0>n>>>0){if(m<<24>>24==0){while(1){o=o>>>1;q=p+o|0;r=d[q]<<16|d[p+(o+1)|0];if((r|0)==(f|0)){break}p=r>>>0<f>>>0?q:p;if(o>>>0>n>>>0){}else{break b}}n=p+(o+2)|0;l=28;break a}else{while(1){o=o>>>1;r=p+o|0;q=d[p+(o+1)|0]<<16|d[r]<<24|d[p+(o+2)|0]<<8|d[p+(o+3)|0];if((q|0)==(f|0)){break}p=q>>>0<f>>>0?r:p;if(o>>>0>n>>>0){}else{break b}}n=p+(o+4)|0;l=28;break a}}}while(0);if(m<<24>>24==0){m=d[p]<<16|d[p+1|0];n=p+2|0}else{m=d[p+1|0]<<16|d[p]<<24|d[p+2|0]<<8|d[p+3|0];n=p+4|0}if((m|0)==(f|0)){l=28}}}while(0);if((l|0)==28){f=a[n]|0;if(g<<24>>24==0){f=f&255}else{f=(d[n+1|0]|(f&255)<<8&65535)<<16>>16}c[h>>2]=(b[k+6>>1]|0)+f}PK(e);r=0;i=j;return r|0}function hM(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;c[d>>2]=0;if((b|0)==0){b=6;i=e;return b|0}b=b+ -1|0;if((a|0)==0){b=6;i=e;return b|0}a=a+288|0;if(b>>>0>=(c[a+120>>2]|0)>>>0){b=6;i=e;return b|0}c[d>>2]=c[(c[a+128>>2]|0)+(b<<4)+4>>2];b=0;i=e;return b|0}function iM(a,b){a=a|0;b=b|0;var c=0;c=i;a=uJ(207688,b)|0;i=c;return a|0}function jM(e,f,g,h,j){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,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;h=i;r=i;i=i+8|0;t=r;u=i;i=i+8|0;s=u;o=i;i=i+8|0;q=o;p=i;i=i+8|0;v=p;w=i;i=i+8|0;z=w;j=i;i=i+8|0;m=j;l=i;i=i+16|0;k=l;y=f+132|0;x=PJ(e,0)|0;do{if((x|0)==0){x=ZKzKp|0}if((k|0)==0){p=20;i=f;return p|0}g=b[k+2>>1]|0;if(g<<16>>16==0){p=0;i=f;return p|0}m=b[k>>1]|0;if(m<<16>>16<1){p=0;i=f;return p|0}l=c[k+12>>2]|0;if((l|0)==0){p=20;i=f;return p|0}if((c[k+4>>2]|0)==0){p=20;i=f;return p|0}if((g<<16>>16|0)!=((b[l+((m<<16>>16)+ -1<<1)>>1]|0)+1|0)){p=20;i=f;return p|0}g=c[d+12>>2]|0;e=e+8|0;if((c[e>>2]&2|0)!=0){p=19;i=f;return p|0}if((j|0)==0){p=20;i=f;return p|0}if((c[j+4>>2]|0)==0){p=0;i=f;return p|0}if((c[j>>2]|0)==0){p=0;i=f;return p|0}if((c[j+12>>2]|0)==0){p=20;i=f;return p|0}$W(g+128|0,k|0,20)|0;$W(g+104|0,j|0,24)|0;p=c[d>>2]|0;c[g+28>>2]=p;c[g+32>>2]=p+((c[h>>2]|0)>>>2<<2);if((c[e>>2]&1|0)!=0){p=19;i=f;return p|0}h=c[g+144>>2]|0;if((h&256|0)==0){c[g>>2]=6;c[g+16>>2]=32;c[g+20>>2]=2;d=6}else{c[g>>2]=12;c[g+16>>2]=256;c[g+20>>2]=50;d=12}p=1<<d;c[g+4>>2]=p;c[g+8>>2]=(p|0)/2|0;p=d+ -6|0;c[g+12>>2]=p;c[g+24>>2]=p;do{if((h&8|0)==0){d=g+180|0;j=(h&16|0)==0?0:4;a[d]=j;if((h&32|0)!=0){break}a[d]=j|1}else{a[g+180|0]=2}}while(0);d=g+181|0;a[d]=h>>>9&1^1;o=g+164|0;c[o>>2]=149;p=g+168|0;c[p>>2]=4;m=g+172|0;c[m>>2]=5;l=g+176|0;c[l>>2]=335;h=g+1024|0;c[h>>2]=0;j=g+960|0;b[j>>1]=0;e=g+962|0;b[e>>1]=(c[g+104>>2]|0)+65535;n=g+108|0;b[g+56>>1]=c[n>>2];c[g+60>>2]=c[g+116>>2];k=nO(g,0)|0;if((k|0)!=0){p=k;i=f;return p|0}do{if((a[d]|0)!=0){if((a[g+180|0]|0)==2){break}c[o>>2]=150;c[p>>2]=6;c[m>>2]=7;c[l>>2]=336;c[h>>2]=0;b[j>>1]=0;b[e>>1]=(c[n>>2]|0)+65535;g=nO(g,1)|0;if((g|0)==0){break}i=f;return g|0}}while(0);p=0;i=f;return p|0}function dO(a){a=a|0;var b=0;b=i;lJ(c[a+8>>2]|0,a);i=b;return}function eO(a){a=a|0;var b=0,d=0;b=i;d=c[a+4>>2]|0;Gd[c[(c[(c[a+20>>2]|0)+56>>2]|0)+8>>2]&255](c[a+60>>2]|0,c[d+172>>2]|0,c[d+176>>2]|0);i=b;return 0}function fO(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;h=i;n=i;i=i+8|0;o=n;j=i;i=i+16|0;q=j;m=i;i=i+48|0;l=m;k=e+72|0;if((c[k>>2]|0)!=(c[d+24>>2]|0)){c[n>>2]=6;v=6;i=h;return v|0}p=c[d+20>>2]|0;do{if((f|0)==2){if((p|0)==270984){e=19}else{break}i=h;return e|0}else{if((p|0)==270912){e=19}else{break}i=h;return e|0}}while(0);p=e+108|0;if((g|0)!=0){HJ(p,c[g>>2]|0,c[g+4>>2]|0)}zK(p,q);v=c[j>>2]&-64;c[j>>2]=v;g=q+4|0;t=c[g>>2]&-64;c[g>>2]=t;s=q+8|0;u=(c[s>>2]|0)+63&-64;c[s>>2]=u;q=q+12|0;s=(c[q>>2]|0)+63&-64;c[q>>2]=s;v=u-v>>6;t=s-t>>6;s=e+76|0;u=c[d+8>>2]|0;r=e+156|0;if((c[(c[r>>2]|0)+4>>2]&1|0)!=0){w=e+88|0;lJ(u,c[w>>2]|0);c[w>>2]=0;w=(c[r>>2]|0)+4|0;c[w>>2]=c[w>>2]&-2}if((f&2|0)==0){a[e+94|0]=2;b[e+92>>1]=256;f=v+3&-4}else{a[e+94|0]=1;f=(v+15|0)>>>4<<1}c[e+80>>2]=v;c[s>>2]=t;c[e+84>>2]=f;c[e+88>>2]=oJ(u,t,0,f,0,o)|0;o=c[n>>2]|0;if((o|0)!=0){w=o;i=h;return w|0}w=(c[r>>2]|0)+4|0;c[w>>2]=c[w>>2]|1;HJ(p,0-(c[j>>2]|0)|0,0-(c[g>>2]|0)|0);c[m>>2]=s;c[l+4>>2]=p;c[l+8>>2]=(a[e+94|0]|0)==2;c[n>>2]=Bd[c[d+64>>2]&255](c[d+60>>2]|0,l)|0;HJ(p,c[j>>2]|0,c[g>>2]|0);l=c[n>>2]|0;if((l|0)!=0){w=l;i=h;return w|0}c[k>>2]=1651078259;c[e+100>>2]=c[j>>2]>>6;c[e+104>>2]=c[q>>2]>>6;w=0;i=h;return w|0}function gO(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;if((c[b+72>>2]|0)!=(c[a+24>>2]|0)){a=6;i=f;return a|0}if((d|0)!=0){GJ(b+108|0,d)}if((e|0)==0){a=0;i=f;return a|0}HJ(b+108|0,c[e>>2]|0,c[e+4>>2]|0);a=0;i=f;return a|0}function hO(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;bX(d|0,0,16)|0;if((c[b+72>>2]|0)!=(c[a+24>>2]|0)){i=e;return}zKZK(a,273056,p)|0;c[f>>2]=l;if((l|0)!=0){p=l;i=e;return p|0}l=b+144|0;c[l>>2]=oJ(k,4,0,c[h>>2]|0,0,j)|0;j=c[f>>2]|0;if((j|0)!=0){p=j;i=e;return p|0}j=MK(a,c[h>>2]<<2)|0;c[f>>2]=j;if((j|0)!=0){p=j;i=e;return p|0}if((c[h>>2]|0)>0){j=0;do{p=TK(a)|0;c[(c[l>>2]|0)+(j<<2)>>2]=p;j=j+1|0;}while((j|0)<(c[h>>2]|0))}PK(a)}else{c[m>>2]=65536;c[h>>2]=1;j=jJ(k,4,j)|0;c[b+144>>2]=j;k=c[f>>2]|0;if((k|0)==0){c[j>>2]=l;break}else{p=k;i=e;return p|0}}}while(0);f=c[f>>2]|0;if((f|0)!=0){p=f;i=e;return p|0}d=(d|0)<0?0:d;if((d|0)>=(c[h>>2]|0)){p=6;i=e;return p|0}f=PJ(a,c[(c[b+144>>2]|0)+(d<<2)>>2]|0)|0;if((f|0)!=0){p=f;i=e;return p|0}a=Bd[c[g+132>>2]&255](b,a)|0;if((a|0)!=0){p=a;i=e;return p|0}c[b>>2]=c[h>>2];c[b+4>>2]=d;p=0;i=e;return p|0}function HP(d,f,g,h,j){d=d|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;g=i;k=i;i=i+8|0;p=k;m=i;i=i+32|0;l=m;o=c[f+532>>2]|0;if((h|0)>0){s=0;r=0;q=0;do{t=c[j+(s<<3)>>2]|0;if((t|0)==1768386662){r=1}else{q=(t|0)==1768386675?1:q}s=s+1|0;}while((s|0)<(h|0))}else{r=0;q=0}h=f+128|0;a:do{if((c[(c[h>>2]|0)+52>>2]|0)==0){t=b[f+152>>1]|0;s=c[f+156>>2]|0;j=s+((t&65535)<<4)|0;t=t<<16>>16==0;b:do{if(t){t=0}else{u=s;do{if((c[u>>2]|0)==1735162214){if((c[u+12>>2]|0)!=0){n=10;break}}u=u+16|0;}while(u>>>0<j>>>0);if((n|0)==10){if((u|0)!=0){t=1;n=18;break a}}if(t){t=0;break}while(1){if((c[s>>2]|0)==1128678944){if((c[s+12>>2]|0)!=0){break}}s=s+16|0;if(s>>>0>=j>>>0){t=0;break b}}x=(s|0)!=0;t=x&1;if(x){n=18;break a}}}while(0);j=c[o+84>>2]|0;if((j|0)==0){t=0;n=18;break}x=Bd[j&255](f,d)|0;c[k>>2]=x;if((x|0)==0){u=1}else{n=18}}else{t=1;n=18}}while(0);do{if((n|0)==18){x=Bd[c[o+32>>2]&255](f,d)|0;c[k>>2]=x;if((x|0)==0){u=0;break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);j=f+178|0;if((b[j>>1]|0)==0){c[k>>2]=8;x=k;x=c[x>>2]|0;i=g;return x|0}c[k>>2]=Bd[c[o+44>>2]&255](f,d)|0;c[k>>2]=Bd[c[o+40>>2]&255](f,d)|0;c[k>>2]=Bd[c[o+56>>2]&255](f,d)|0;s=Bd[c[o+52>>2]&255](f,d)|0;c[k>>2]=s;do{if(!u){u=o+36|0;v=sd[c[u>>2]&127](f,d,0)|0;c[k>>2]=v;do{if((v|0)==0){v=sd[c[o+136>>2]&127](f,d,0)|0;c[k>>2]=v;if((v|0)!=142){n=32;break}c[k>>2]=147;h=c[(c[h>>2]|0)+52>>2]|0;if((h|0)==0){x=k;x=c[x>>2]|0;i=g;return x|0}if((c[(c[h>>2]|0)+8>>2]|0)==0){x=k;x=c[x>>2]|0;i=g;return x|0}else{b[f+250>>1]=0;c[k>>2]=0;break}}else if((v|0)==142){if((c[f+148>>2]|0)==1953658213){c[k>>2]=0;t=0;break}c[k>>2]=143;h=c[(c[h>>2]|0)+52>>2]|0;if((h|0)==0){x=k;x=c[x>>2]|0;i=g;return x|0}if((c[(c[h>>2]|0)+8>>2]|0)==0){x=k;x=c[x>>2]|0;i=g;return x|0}else{b[f+250>>1]=0;c[k>>2]=0;break}}else{n=32}}while(0);do{if((n|0)==32){if((v|0)==0){break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);h=sd[c[u>>2]&127](f,d,1)|0;c[k>>2]=h;do{if((h|0)==0){h=sd[c[o+136>>2]&127](f,d,1)|0;c[k>>2]=h;if((h|0)!=0){n=36;break}a[f+296|0]=1}else{n=36}}while(0);do{if((n|0)==36){if((h|0)==0|(h|0)==142){break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);x=Bd[c[o+48>>2]&255](f,d)|0;c[k>>2]=x;if((x|0)==0){break}b[f+368>>1]=-1}}while(0);h=c[o+140>>2]|0;do{if((h|0)!=0){h=Bd[h&255](f,d)|0;c[k>>2]=h;if((h|0)==0){break}else if((h|0)==142){c[k>>2]=0;break}else{x=k;x=c[x>>2]|0;i=g;return x|0}}}while(0);h=Bd[c[o+80>>2]&255](f,d)|0;c[k>>2]=h;if((h|0)==142){c[f+556>>2]=0}else if((h|0)!=0){x=k;x=c[x>>2]|0;i=g;return x|0}c[k>>2]=Bd[c[o+76>>2]&255](f,d)|0;c[k>>2]=Bd[c[o+72>>2]&255](f,d)|0;c[f+16>>2]=e[f+264>>1]|0;u=f+20|0;c[u>>2]=0;d=f+24|0;c[d>>2]=0;h=f+368|0;do{if((b[h>>1]|0)==-1){n=54}else{if((b[f+432>>1]&256)==0){n=54;break}do{if(r<<24>>24==0){x=rQ(f,16,u)|0;c[k>>2]=x;if((x|0)==0){if((c[u>>2]|0)==0){n=49;break}else{break}}else{x=k;x=c[x>>2]|0;i=g;return x|0}}else{n=49}}while(0);do{if((n|0)==49){x=rQ(f,1,u)|0;c[k>>2]=x;if((x|0)==0){break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);do{if(q<<24>>24==0){x=rQ(f,17,d)|0;c[k>>2]=x;if((x|0)==0){break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);if((c[d>>2]|0)!=0){break}x=rQ(f,2,d)|0;c[k>>2]=x;if((x|0)==0){break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);do{if((n|0)==54){x=rQ(f,21,u)|0;c[k>>2]=x;if((x|0)!=0){x=k;x=c[x>>2]|0;i=g;return x|0}v=c[u>>2]|0;do{if((v|0)==0&r<<24>>24==0){x=rQ(f,16,u)|0;c[k>>2]=x;if((x|0)==0){v=c[u>>2]|0;break}else{x=k;x=c[x>>2]|0;i=g;return x|0}}}while(0);do{if((v|0)==0){x=rQ(f,1,u)|0;c[k>>2]=x;if((x|0)==0){break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);x=rQ(f,22,d)|0;c[k>>2]=x;if((x|0)!=0){x=k;x=c[x>>2]|0;i=g;return x|0}r=c[d>>2]|0;do{if((r|0)==0&q<<24>>24==0){x=rQ(f,17,d)|0;c[k>>2]=x;if((x|0)==0){r=c[d>>2]|0;break}else{x=k;x=c[x>>2]|0;i=g;return x|0}}}while(0);if((r|0)!=0){break}x=rQ(f,2,d)|0;c[k>>2]=x;if((x|0)==0){break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);d=f+8|0;r=t<<24>>24==1;q=c[d>>2]|r&1;t=q|24;if((s|0)==0){t=(c[f+468>>2]|0)==196608?t:q|536}s=(c[f+480>>2]|0)==0?t:t|4;q=f+296|0;s=(a[q]|0)==0?s:s|32;s=(c[f+784>>2]|0)==0?s:s|64;x=b[f+152>>1]|0;u=c[f+156>>2]|0;t=u+((x&65535)<<4)|0;c:do{if(x<<16>>16!=0){v=u;while(1){if((c[v>>2]|0)==1735162214){if((c[v+12>>2]|0)!=0){break}}v=v+16|0;if(v>>>0>=t>>>0){break c}}if((v|0)==0){break}else{v=u}while(1){if((c[v>>2]|0)==1719034226){if((c[v+12>>2]|0)!=0){break}}v=v+16|0;if(v>>>0>=t>>>0){break c}}if((v|0)==0){break}while(1){if((c[u>>2]|0)==1735811442){if((c[u+12>>2]|0)!=0){break}}u=u+16|0;if(u>>>0>=t>>>0){u=0;break}}s=(u|0)==0?s:s|256}}while(0);c[d>>2]=s;do{if(r){if((b[h>>1]|0)==-1){n=84;break}x=b[f+432>>1]|0;r=x&65535;r=(x&65535)>>>4&2|((r&512|0)==0?r&1:1)}else{n=84}}while(0);if((n|0)==84){x=b[f+204>>1]|0;r=(x&65535)>>>1&1|((x&1)==0?0:2)}c[f+12>>2]=r;sQ(f);t=f+36|0;if((c[t>>2]|0)>0){r=f+40|0;s=0;do{u=c[(c[r>>2]|0)+(s<<2)>>2]|0;v=e[u+8>>1]|0;w=e[u+10>>1]|0;x=272856;while(1){if((c[x>>2]|0)==(v|0)){y=c[x+4>>2]|0;if((y|0)==(w|0)|(y|0)==-1){n=90;break}}x=x+12|0;if(x>>>0>=(272988|0)>>>0){v=0;break}}if((n|0)==90){n=0;v=c[x+8>>2]|0}c[u+4>>2]=v;s=s+1|0;}while((s|0)<(c[t>>2]|0))}r=c[f+612>>2]|0;do{if((r|0)==0){l=c[d>>2]|0}else{t=c[(c[f+104>>2]|0)+28>>2]|0;s=b[j>>1]|0;if(s<<16>>16==0){n=97}else{if((b[h>>1]|0)==-1){n=97}else{h=b[f+370>>1]|0}}if((n|0)==97){h=0;s=1}v=oJ(t,16,0,r,0,p)|0;n=f+32|0;c[n>>2]=v;if((c[k>>2]|0)!=0){y=k;y=c[y>>2]|0;i=g;return y|0}o=o+152|0;p=l+20|0;h=h<<16>>16;t=s&65535;u=t>>>1;s=l+2|0;w=0;while(1){y=sd[c[o>>2]&127](f,w,l)|0;c[k>>2]=y;if((y|0)!=0){n=108;break}b[v+(w<<4)>>1]=(c[p>>2]|0)>>>6;b[v+(w<<4)+2>>1]=((da(e[m>>1]|0,h)|0)+u|0)/(t|0)|0;c[v+(w<<4)+8>>2]=e[m>>1]<<6;c[v+(w<<4)+12>>2]=e[s>>1]<<6;c[v+(w<<4)+4>>2]=e[s>>1]<<6;w=w+1|0;if(w>>>0>=r>>>0){n=103;break}v=c[n>>2]|0}if((n|0)==103){l=c[d>>2]|2;c[d>>2]=l;c[f+28>>2]=r;break}else if((n|0)==108){y=k;y=c[y>>2]|0;i=g;return y|0}}}while(0);if((l&3|0)==0){l=l|1;c[d>>2]=l}if((l&1|0)==0){y=k;y=c[y>>2]|0;i=g;return y|0}c[f+52>>2]=b[f+196>>1]|0;c[f+56>>2]=b[f+198>>1]|0;c[f+60>>2]=b[f+200>>1]|0;c[f+64>>2]=b[f+202>>1]|0;b[f+68>>1]=b[j>>1]|0;x=b[f+220>>1]|0;b[f+70>>1]=x;y=b[f+222>>1]|0;b[f+72>>1]=y;l=f+74|0;b[l>>1]=(x-y<<16>>16)+(b[f+224>>1]|0)<<16>>16;b[f+76>>1]=b[f+226>>1]|0;b[f+78>>1]=b[((a[q]|0)==0?l:f+310|0)>>1]|0;y=b[f+478>>1]|0;b[f+80>>1]=(e[f+476>>1]|0)-((y<<16>>16|0)/2|0);b[f+82>>1]=y;y=k;y=c[y>>2]|0;i=g;return y|0}function IP(d){d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;if((d|0)==0){i=e;return}g=c[d+100>>2]|0;j=d+532|0;f=c[j>>2]|0;h=(f|0)!=0;do{if(h){k=c[f+116>>2]|0;if((k|0)!=0){fd[k&511](d)}k=c[f+144>>2]|0;if((k|0)==0){break}fd[k&511](d)}}while(0);if((a[d+812|0]|0)!=0){k=d+792|0;if((c[k>>2]|0)!=0){NK(c[d+104>>2]|0,k)}c[d+796>>2]=0;c[d+800>>2]=0;c[d+804>>2]=0}k=d+104|0;NK(c[k>>2]|0,d+772|0);bX(d+776|0,0,16)|0;l=d+144|0;lJ(g,c[l>>2]|0);c[l>>2]=0;c[d+140>>2]=0;l=d+156|0;lJ(g,c[l>>2]|0);c[l>>2]=0;b[d+152>>1]=0;NK(c[k>>2]|0,d+500|0);c[d+504>>2]=0;k=d+252|0;lJ(g,c[k>>2]|0);c[k>>2]=0;k=d+256|0;lJ(g,c[k>>2]|0);c[k>>2]=0;k=d+296|0;if((a[k]|0)!=0){l=d+336|0;lJ(g,c[l>>2]|0);c[l>>2]=0;l=d+340|0;lJ(g,c[l>>2]|0);c[l>>2]=0;a[k]=0}l=d+552|0;lJ(g,c[l>>2]|0);c[l>>2]=0;b[d+550>>1]=0;if(h){fd[c[f+60>>2]&511](d)}l=d+20|0;lJ(g,c[l>>2]|0);c[l>>2]=0;l=d+24|0;lJ(g,c[l>>2]|0);c[l>>2]=0;l=d+32|0;lJ(g,c[l>>2]|0);c[l>>2]=0;c[d+28>>2]=0;l=d+700|0;lJ(g,c[l>>2]|0);c[l>>2]=0;c[j>>2]=0;i=e;return}function JP(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;i=i;return 7}function KP(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return 7}function LP(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=pd[c[a+508>>2]&63](a,1751474532,b,0)|0;if((e|0)!=0){a=e;i=d;return a|0}a=ZK(b,272216,a+160|0)|0;i=d;return a|0}function MP(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;f=c[a+508>>2]|0;do{if(d<<24>>24==0){f=pd[f&63](a,1751672161,b,0)|0;if((f|0)==0){a=a+216|0;break}else{d=f;i=e;return d|0}}else{f=pd[f&63](a,1986553185,b,0)|0;if((f|0)==0){a=a+300|0;break}else{d=f;i=e;return d|0}}}while(0);b=ZKZK(d,272696,g)|0;if((h|0)!=0){k=h;i=f;return k|0}j=a+276|0;k=a+280|0;h=a+290|0;bX(a+266|0,0,26)|0;if((c[g>>2]|0)<=65535){k=0;i=f;return k|0}d=ZK(d,272712,g)|0;if((d|0)!=0){k=d;i=f;return k|0}if((e[k>>1]|0)<64){b[k>>1]=64}if((e[j>>1]|0)>65531){b[j>>1]=-5}if((e[h>>1]|0)<=100){k=0;i=f;return k|0}b[h>>1]=100;k=0;i=f;return k|0}function PP(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=i;h=pd[c[a+508>>2]&63](a,1330851634,d,0)|0;do{if((h|0)==0){g=a+368|0;h=ZK(d,272472,g)|0;if((h|0)!=0){break}bX(a+448|0,0,18)|0;if((b[g>>1]|0)==0){h=0;break}h=ZK(d,272648,g)|0;if((h|0)!=0){break}if((e[g>>1]|0)<=1){h=0;break}h=ZK(d,272664,g)|0}}while(0);i=f;return h|0}function QP(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=pd[c[a+508>>2]&63](a,1886352244,b,0)|0;if((e|0)!=0){a=e;i=d;return a|0}a=ZK(b,272424,a+468|0)|0;i=d;return a|0}function RP(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;f=i;e=i;i=i+8|0;k=i;i=i+8|0;m=c[d+28>>2]|0;c[a+364>>2]=d;g=pd[c[a+508>>2]&63](a,1851878757,d,k)|0;c[e>>2]=g;if((g|0)!=0){s=g;i=f;return s|0}h=IK(d)|0;g=ZK(d,272368,a+348|0)|0;c[e>>2]=g;if((g|0)!=0){s=g;i=f;return s|0}g=a+352|0;n=c[g>>2]|0;o=n*12|0;j=h+6+o|0;l=(c[k>>2]|0)+h|0;if(j>>>0>l>>>0){c[e>>2]=145;s=145;i=f;return s|0}c[g>>2]=0;k=a+360|0;c[k>>2]=oJ(m,20,0,n,0,e)|0;m=c[e>>2]|0;if((m|0)!=0){s=m;i=f;return s|0}m=MK(d,o)|0;c[e>>2]=m;if((m|0)!=0){s=m;i=f;return s|0}p=c[k>>2]|0;if((n|0)==0){h=p}else{m=a+356|0;do{s=ZK(d,272392,p)|0;c[e>>2]=s;a:do{if((s|0)==0){q=p+8|0;o=b[q>>1]|0;if(o<<16>>16==0){break}r=p+12|0;s=(c[m>>2]|0)+h+(c[r>>2]|0)|0;c[r>>2]=s;do{if(s>>>0>=j>>>0){if(((o&65535)+s|0)>>>0>l>>>0){break}p=p+20|0;break a}}while(0);c[r>>2]=0;b[q>>1]=0}}while(0);n=n+ -1|0;}while((n|0)!=0);h=c[k>>2]|0}c[g>>2]=(p-h|0)/20|0;PK(d);b[a+344>>1]=c[g>>2];s=c[e>>2]|0;i=f;return s|0}function SP(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=c[(c[a+96>>2]|0)+8>>2]|0;f=a+360|0;h=c[f>>2]|0;g=a+352|0;j=c[g>>2]|0;if((h|0)!=0){if((j|0)!=0){while(1){k=h+16|0;lJ(e,c[k>>2]|0);c[k>>2]=0;b[h+8>>1]=0;j=j+ -1|0;if((j|0)==0){break}else{h=h+20|0}}h=c[f>>2]|0}lJ(e,h);c[f>>2]=0}c[g>>2]=0;b[a+348>>1]=0;c[a+356>>2]=0;i=d;return}function TP(a,b){a=a|0;b=b|0;i=i;return 7}function UP(a){a=a|0;i=i;return}function VP(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;g=i;i=i+8|0;h=pd[c[b+508>>2]&63](b,1801810542,e,g)|0;if((h|0)!=0){q=h;i=f;return q|0}j=c[g>>2]|0;if(j>>>0<4){q=142;i=f;return q|0}h=b+772|0;e=LK(e,j,h)|0;if((e|0)!=0){q=e;i=f;return q|0}g=c[g>>2]|0;c[b+776>>2]=g;k=c[h>>2]|0;g=k+g|0;h=((d[k+2|0]|0)<<8&65535|(d[k+3|0]|0))&65535;j=h>>>0>32?32:h;a:do{if((j|0)==0){n=0;h=0;e=0}else{n=0;h=0;e=0;m=k+4|0;while(1){l=1<<h;p=m+6|0;if(p>>>0>g>>>0){break a}k=(d[m+2|0]|0)<<8&65535|(d[m+3|0]|0);if((k&65535)<7){break a}k=m+(k&65535)|0;k=k>>>0>g>>>0?g:k;b:do{if((a[m+5|0]&247|(d[m+4|0]|0)<<8&65535)<<16>>16==1){o=m+14|0;if(o>>>0>g>>>0){break}p=((d[p]|0)<<8&65535|(d[m+7|0]|0))&65535;q=k-o|0;if((q|0)<(p*6|0)){p=(q|0)/6|0}n=l|n;if((p|0)==0){break}p=p+ -1|0;if((p|0)!=0){o=(d[m+15|0]|0)<<16|(d[o]|0)<<24|(d[m+16|0]|0)<<8|(d[m+17|0]|0);m=m+20|0;while(1){q=(d[m+1|0]|0)<<16|(d[m]|0)<<24|(d[m+2|0]|0)<<8|(d[m+3|0]|0);if(q>>>0<=o>>>0){break b}p=p+ -1|0;if((p|0)==0){break}else{m=m+6|0;o=q}}}e=l|e}}while(0);h=h+1|0;if(h>>>0<j>>>0){m=k}else{break}}}}while(0);c[b+780>>2]=h;c[b+784>>2]=n;c[b+788>>2]=e;q=0;i=f;return q|0}function WP(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0;g=i;f=i;i=i+8|0;j=c[d+28>>2]|0;h=pd[c[a+508>>2]&63](a,1734439792,d,0)|0;c[f>>2]=h;if((h|0)!=0){l=h;i=g;return l|0}h=MK(d,4)|0;c[f>>2]=h;if((h|0)!=0){l=h;i=g;return l|0}l=a+548|0;b[l>>1]=RK(d)|0;h=a+550|0;b[h>>1]=RK(d)|0;PK(d);if((e[l>>1]|0)>1){b[h>>1]=0;c[f>>2]=8;l=8;i=g;return l|0}k=b[h>>1]|0;h=k&65535;j=oJ(j,4,0,h,0,f)|0;l=c[f>>2]|0;if((l|0)!=0){i=g;return l|0}l=MK(d,h<<2)|0;c[f>>2]=l;if((l|0)!=0){i=g;return l|0}c[a+552>>2]=j;if(k<<16>>16!=0){a=0;do{b[j+(a<<2)>>1]=RK(d)|0;b[j+(a<<2)+2>>1]=RK(d)|0;a=a+1|0;}while(a>>>0<h>>>0)}PK(d);l=c[f>>2]|0;i=g;return l|0}function XP(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=pd[c[a+508>>2]&63](a,1346587732,b,0)|0;if((e|0)!=0){a=e;i=d;return a|0}a=ZK(b,272304,a+556|0)|0;i=d;return a|0}function YP(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=pd[c[a+508>>2]&63](a,1651008868,b,0)|0;if((e|0)!=0){a=e;i=d;return a|0}a=ZK(b,272216,a+160|0)|0;i=d;return a|0}function ZP(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=i;h=i;i=i+24|0;g=h;c[h>>2]=0;c[g+4>>2]=b;c[g+8>>2]=d;c[g+12>>2]=0;c[g+16>>2]=0;c[e>>2]=2147483647;b=WJ(a,g,0,e)|0;i=f;return b|0}function _P(a,b){a=a|0;b=b|0;i=i;return 7}function $P(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;j=c[a+616>>2]|0;do{if((j|0)!=0){if((c[a+612>>2]|0)>>>0<=d>>>0){break}j=j+(d*48|0)|0;if((qQ(b,j,e,g)|0)!=0){break}c[f>>2]=j;a=0;i=h;return a|0}}while(0);c[e>>2]=0;c[f>>2]=0;c[g>>2]=0;a=6;i=h;return a|0}function aQ(c,f,g){c=c|0;f=f|0;g=g|0;var h=0,j=0,k=0;h=i;j=i;i=i+8|0;k=j;switch(e[f+6>>1]|0|0){case 8:case 2:case 1:{c=ZK(c,272184,k)|0;if((c|0)!=0){f=c;i=h;return f|0}a[g]=a[j]|0;a[g+1|0]=a[k+1|0]|0;a[g+2|0]=a[k+2|0]|0;a[g+3|0]=a[k+3|0]|0;a[g+4|0]=a[k+4|0]|0;a[g+5|0]=0;a[g+6|0]=0;a[g+7|0]=0;f=0;i=h;return f|0};case 9:case 7:case 6:{f=ZK(c,272096,g)|0;i=h;return f|0};default:{c=b[f+4>>1]|0;if(!(c<<16>>16==5|c<<16>>16==2)){f=3;i=h;return f|0}c=f+16|0;j=c;c=c+4|0;j=d[j]|d[j+1|0]<<8|d[j+2|0]<<16|d[j+3|0]<<24;c=d[c]|d[c+1|0]<<8|d[c+2|0]<<16|d[c+3|0]<<24;f=g;k=f;f=f+4|0;a[k]=j;a[k+1|0]=j>>8;a[k+2|0]=j>>16;a[k+3|0]=j>>24;a[f]=c;a[f+1|0]=c>>8;a[f+2|0]=c>>16;a[f+3|0]=c>>24;f=0;i=h;return f|0}}return 0}function bQ(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;l=i;q=i;i=i+8|0;r=q;p=i;i=i+8|0;s=p;n=c[b+616>>2]|0;do{if((n|0)!=0){if((c[b+612>>2]|0)>>>0<=e>>>0){break}o=n+(e*48|0)|0;if((qQ(f,o,s,r)|0)!=0){break}r=b+508|0;do{if((pd[c[r>>2]&63](b,1161970772,h,0)|0)!=0){r=pd[c[r>>2]&63](b,1650745716,h,0)|0;if((r|0)==0){break}i=l;return r|0}}while(0);u=IK(h)|0;o=pQ(o,c[p>>2]|0,u,c[q>>2]|0,c[b+84>>2]|0,0,0,h,k,0)|0;if((o|0)!=0){u=o;i=l;return u|0}if((a[n+(e*48|0)+47|0]&1)!=0){u=(a[n+(e*48|0)+16|0]|0)-(a[n+(e*48|0)+17|0]|0)|0;a[k+5|0]=(d[k+1|0]|0)/-2|0;a[k+6|0]=(u-(d[k]|0)|0)/2|0;a[k+7|0]=(u*12|0)/10|0}if((g&64|0)==0){u=0;i=l;return u|0}g=j+12|0;n=c[j>>2]|0;o=j+8|0;e=c[o>>2]|0;a:do{if((n|0)>0){b=c[g>>2]|0;if((e|0)>0){p=0;q=b}else{m=0;while(1){m=m+1|0;if((m|0)>=(n|0)){break a}}}b:while(1){h=q+e|0;while(1){r=q+1|0;if((a[q]|0)!=0){break b}if(r>>>0<h>>>0){q=r}else{break}}p=p+1|0;if((p|0)<(n|0)){q=h}else{break a}}if((p|0)>0){n=n-p|0;aX(b|0,b+(da(p,e)|0)|0,da(n,e)|0)|0;a[k]=(d[k]|0)-p;u=k+3|0;a[u]=(d[u]|0)-p;u=k+6|0;a[u]=(d[u]|0)-p;c[j>>2]=(c[j>>2]|0)-p}do{if((n|0)>0){b=da(n+ -1|0,e)|0;o=0-e|0;q=0;b=(c[g>>2]|0)+b|0;c:while(1){p=b+e|0;r=b;while(1){h=r+1|0;if((a[r]|0)!=0){break c}if(h>>>0<p>>>0){r=h}else{break}}q=q+1|0;if((q|0)<(n|0)){b=b+o|0}else{break}}if((q|0)<=0){break}a[k]=(d[k]|0)-q;c[j>>2]=(c[j>>2]|0)-q;n=n-q|0}}while(0);n=da(n,e)|0;j=j+4|0;b=k+2|0;o=k+5|0;k=k+1|0;h=(n|0)>0;d:do{r=c[g>>2]|0;p=r+n|0;if(h){q=r;do{if((a[q]|0)<0){m=38;break d}q=q+e|0;}while(q>>>0<p>>>0);q=c[j>>2]|0;do{t=a[r]<<1&255;if((q|0)>8){s=r;u=8;while(1){f=s+1|0;v=a[f]|0;a[s]=(v&255)>>>7|t;u=u+8|0;t=v<<1&255;if((u|0)<(q|0)){s=f}else{break}}}else{f=r}a[f]=t;r=r+e|0;q=c[j>>2]|0}while(r>>>0<p>>>0)}else{q=c[j>>2]|0}c[j>>2]=q+ -1;a[b]=(a[b]|0)+1<<24>>24;a[o]=(a[o]|0)+1<<24>>24;a[k]=(a[k]|0)+ -1<<24>>24;p=c[j>>2]|0;}while((p|0)>0);if((m|0)==38){p=c[j>>2]|0}e:while(1){b=p+ -1|0;h=c[g>>2]|0;p=b>>3;v=p+n|0;m=h+v|0;if((p|0)<(v|0)){o=128>>>(b&7);h=h+p|0;do{if((d[h]&o|0)!=0){r=0;m=45;break e}h=h+e|0;}while(h>>>0<m>>>0)}c[j>>2]=b;a[k]=(a[k]|0)+ -1<<24>>24;p=c[j>>2]|0;if((p|0)<=0){r=0;m=45;break}}if((m|0)==45){i=l;return r|0}}}while(0);c[j+4>>2]=0;c[j>>2]=0;c[o>>2]=0;a[j+18|0]=1;v=0;i=l;return v|0}}while(0);c[p>>2]=0;c[q>>2]=0;v=6;i=l;return v|0}function cQ(a){a=a|0;i=i;return}function dQ(d){d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;h=i;g=c[d+100>>2]|0;f=d+628|0;if((a[f]|0)==0){m=f;a[m]=0;i=h;return}j=c[d+468>>2]|0;if((j|0)==131072){j=d+636|0;lJ(g,c[j>>2]|0);c[j>>2]=0;b[d+632>>1]=0;j=d+634|0;d=d+640|0;m=c[d>>2]|0;if((b[j>>1]|0)!=0){l=0;k=0;while(1){lJ(g,c[m+(l<<2)>>2]|0);c[(c[d>>2]|0)+(l<<2)>>2]=0;l=k+1<<16>>16;m=c[d>>2]|0;if((l&65535)<(e[j>>1]|0)){k=l;l=l&65535}else{break}}}lJ(g,m);c[d>>2]=0;b[j>>1]=0;m=f;a[m]=0;i=h;return}else if((j|0)==163840){m=d+636|0;lJ(g,c[m>>2]|0);c[m>>2]=0;b[d+632>>1]=0;m=f;a[m]=0;i=h;return}else{m=f;a[m]=0;i=h;return}}function eQ(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return 7}function fQ(a,b){a=a|0;b=b|0;i=i;return 0}function gQ(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;f=i;k=c[a+772>>2]|0;g=k+(c[a+776>>2]|0)|0;j=c[a+780>>2]|0;if((j|0)==0){s=0;i=f;return s|0}h=a+784|0;b=b<<16|e;a=a+788|0;e=1;n=k+4|0;m=0;while(1){o=n+6|0;if(o>>>0>g>>>0){g=20;break}l=((d[n+4|0]|0)<<8&65535|(d[n+5|0]|0))&65535;k=n+(((d[n+2|0]|0)<<8&65535|(d[n+3|0]|0))&65535)|0;k=k>>>0>g>>>0?g:k;a:do{if((c[h>>2]&e|0)!=0){p=n+14|0;if(p>>>0>k>>>0){break}o=((d[o]|0)<<8&65535|(d[n+7|0]|0))&65535;q=k-p|0;if((q|0)<(o*6|0)){o=(q|0)/6|0}if((l&65280|0)!=0){break}q=(o|0)==0;if((c[a>>2]&e|0)==0){if(q){break}while(1){if(((d[p+1|0]|0)<<16|(d[p]|0)<<24|(d[p+2|0]|0)<<8|(d[p+3|0]|0)|0)==(b|0)){break}o=o+ -1|0;if((o|0)==0){break a}else{p=p+6|0}}n=(d[p+4|0]|0)<<8&65535|(d[p+5|0]|0)}else{if(q){break}else{q=0}while(1){p=(o+q|0)>>>1;r=p*6|0;s=(d[n+(r+15)|0]|0)<<16|(d[n+(r+14)|0]|0)<<24|(d[n+(r+16)|0]|0)<<8|(d[n+(r+17)|0]|0);if((s|0)==(b|0)){break}r=s>>>0<b>>>0;q=r?p+1|0:q;o=r?o:p;if(q>>>0>=o>>>0){break a}}n=(d[n+(r+18)|0]|0)<<8&65535|(d[n+(r+19)|0]|0)}m=(n<<16>>16)+((l&8|0)==0?m:0)|0}}while(0);j=j+ -1|0;if((j|0)==0){g=20;break}else{e=e<<1;n=k}}if((g|0)==20){i=f;return m|0}return 0}function hQ(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;g=i;o=i;i=i+8|0;s=o;r=i;i=i+16|0;q=r;n=i;i=i+16|0;h=n;f=i;i=i+8|0;l=f;m=c[d+28>>2]|0;k=h+12|0;c[k>>2]=IK(d)|0;c[n>>2]=GK(d,l)|0;j=c[f>>2]|0;if((j|0)!=0){E=j;i=g;return E|0}j=ZK(d,272136,h)|0;c[f>>2]=j;if((j|0)!=0){E=j;i=g;return E|0}t=c[k>>2]|0;C=PJ(d,t+12|0)|0;c[o>>2]=C;a:do{if((C|0)==0){h=h+4|0;do{if((b[h>>1]|0)==0){b[h>>1]=0}else{w=q+8|0;v=q+12|0;j=d+4|0;x=t+28|0;y=0;B=0;u=0;t=0;z=0;A=0;b:while(1){E=ZK(d,272160,q)|0;c[o>>2]=E;if((E|0)!=0){p=8;break}D=c[w>>2]|0;E=c[v>>2]|0;do{if((E+D|0)>>>0<=(c[j>>2]|0)>>>0){A=A+1<<16>>16;C=c[r>>2]|0;if((C|0)==1397313095){t=1;break}else if(!((C|0)==1651008868|(C|0)==1751474532)){u=(C|0)==1296389185?1:u;break}if(E>>>0<54){p=12;break b}C=PJ(d,D+12|0)|0;c[o>>2]=C;if((C|0)!=0){break a}B=GK(d,s)|0;C=c[o>>2]|0;if((C|0)!=0){break a}if((B|0)!=1594834165){p=16;break b}C=PJ(d,x+(y<<4)|0)|0;c[o>>2]=C;if((C|0)==0){B=1}else{break a}}}while(0);z=z+1<<16>>16;if((z&65535)<(e[h>>1]|0)){y=z&65535}else{break}}if((p|0)==8){b[h>>1]=z+ -1<<16>>16}else if((p|0)==12){c[o>>2]=142;C=142;break a}else if((p|0)==16){c[o>>2]=142;C=142;break a}b[h>>1]=A;if(A<<16>>16==0){break}do{if((B|0)==0){if(!((t|0)==0|(u|0)==0)){break}c[o>>2]=142;C=142;break a}}while(0);c[f>>2]=0;o=a+152|0;b[o>>1]=A;c[a+148>>2]=c[n>>2];n=a+156|0;c[n>>2]=oJ(m,16,0,A&65535,0,l)|0;l=c[f>>2]|0;if((l|0)!=0){E=l;i=g;return E|0}k=PJ(d,(c[k>>2]|0)+12|0)|0;c[f>>2]=k;if((k|0)!=0){E=k;i=g;return E|0}k=MK(d,e[o>>1]<<4)|0;c[f>>2]=k;if((k|0)!=0){E=k;i=g;return E|0}if((b[h>>1]|0)!=0){m=c[n>>2]|0;n=0;while(1){c[m>>2]=TK(d)|0;c[m+4>>2]=TK(d)|0;k=m+8|0;c[k>>2]=TK(d)|0;l=TK(d)|0;c[m+12>>2]=l;n=n+1|0;if((n|0)<(e[h>>1]|0)){m=((c[k>>2]|0)+l|0)>>>0>(c[j>>2]|0)>>>0?m:m+16|0}else{break}}}PK(d);E=c[f>>2]|0;i=g;return E|0}}while(0);c[o>>2]=2;C=2}}while(0);c[f>>2]=C;E=C;i=g;return E|0}function iQ(a,f,g){a=a|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;h=i;j=i;i=i+8|0;o=j;q=i;i=i+8|0;k=q;p=c[f+28>>2]|0;g=g<<24>>24!=0;l=c[a+508>>2]|0;do{if(g){r=pd[l&63](a,1986884728,f,k)|0;c[j>>2]=r;if((r|0)==0){r=a+334|0;k=e[r>>1]|0;m=c[q>>2]|0;l=m>>>2;b[r>>1]=0;r=a+336|0;k=k>>>0>l>>>0?l:k;l=a+340|0;break}else{r=j;r=c[r>>2]|0;i=h;return r|0}}else{r=pd[l&63](a,1752003704,f,k)|0;c[j>>2]=r;if((r|0)==0){r=a+250|0;l=e[r>>1]|0;m=c[q>>2]|0;k=m>>>2;b[r>>1]=0;r=a+252|0;k=l>>>0>k>>>0?k:l;l=a+256|0;break}else{r=j;r=c[r>>2]|0;i=h;return r|0}}}while(0);n=(e[a+264>>1]|0)-k|0;m=(m-(k<<2)|0)>>>1;n=(n|0)<0?0:n;c[r>>2]=oJ(p,4,0,k,0,o)|0;if((c[j>>2]|0)!=0){r=j;r=c[r>>2]|0;i=h;return r|0}c[l>>2]=oJ(p,2,0,n,0,o)|0;if((c[j>>2]|0)!=0){r=j;r=c[r>>2]|0;i=h;return r|0}q=MK(f,c[q>>2]|0)|0;c[j>>2]=q;if((q|0)!=0){r=j;r=c[r>>2]|0;i=h;return r|0}p=c[f+32>>2]|0;q=c[r>>2]|0;o=q+(k<<2)|0;if(q>>>0<o>>>0){while(1){b[q>>1]=(d[p]|0)<<8&65535|(d[p+1|0]|0);r=p+4|0;b[q+2>>1]=(d[p+2|0]|0)<<8&65535|(d[p+3|0]|0);q=q+4|0;if(q>>>0<o>>>0){p=r}else{p=r;break}}}q=c[l>>2]|0;o=q+(((n|0)<(m|0)?n:m)<<1)|0;if(q>>>0<o>>>0){while(1){b[q>>1]=(d[p]|0)<<8&65535|(d[p+1|0]|0);q=q+2|0;if(q>>>0<o>>>0){p=p+2|0}else{break}}}do{if((n|0)>(m|0)&(m|0)!=0){r=c[l>>2]|0;l=b[r+(m+ -1<<1)>>1]|0;m=r+(n<<1)|0;if(q>>>0>=m>>>0){break}do{b[q>>1]=l;q=q+2|0;}while(q>>>0<m>>>0)}}while(0);PK(f);f=k&65535;if(g){b[a+334>>1]=f;r=j;r=c[r>>2]|0;i=h;return r|0}else{b[a+250>>1]=f;r=j;r=c[r>>2]|0;i=h;return r|0}return 0}function jQ(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;e=i;l=i;i=i+8|0;k=l;p=i;i=i+8|0;h=p;o=i;i=i+8|0;j=o;g=i;i=i+8|0;q=g;c[g>>2]=0;m=d+28|0;n=c[m>>2]|0;t=a+612|0;c[t>>2]=0;r=a+508|0;B=pd[c[r>>2]&63](a,1161972803,d,0)|0;c[g>>2]=B;do{if((B|0)!=0){v=pd[c[r>>2]&63](a,1651273571,d,0)|0;c[g>>2]=v;if((v|0)==0){break}i=e;return v|0}}while(0);r=IK(d)|0;s=MK(d,8)|0;c[g>>2]=s;if((s|0)!=0){B=s;i=e;return B|0}B=TK(d)|0;s=TK(d)|0;PK(d);if((B|0)!=131072|s>>>0>65535){c[g>>2]=3;B=3;i=e;return B|0}u=oJ(n,48,0,s,0,q)|0;a=a+616|0;c[a>>2]=u;v=c[g>>2]|0;if((v|0)!=0){B=v;i=e;return B|0}c[t>>2]=s;t=MK(d,s*48|0)|0;c[g>>2]=t;if((t|0)!=0){B=t;i=e;return B|0}t=(s|0)==0;a:do{if(t){PK(d)}else{v=s;while(1){B=ZK(d,272040,u)|0;c[g>>2]=B;if((B|0)!=0){break}B=ZK(d,271984,u+16|0)|0;c[g>>2]=B;if((B|0)!=0){break}B=ZK(d,271984,u+28|0)|0;c[g>>2]=B;if((B|0)!=0){break}B=ZK(d,272064,u)|0;c[g>>2]=B;if((B|0)!=0){break}v=v+ -1|0;if((v|0)==0){break}else{u=u+48|0}}PK(d);if(t){break}a=c[a>>2]|0;b:while(1){v=c[a>>2]|0;u=a+8|0;B=PJ(d,(c[u>>2]|0)+r|0)|0;c[g>>2]=B;if((B|0)!=0){break a}B=MK(d,c[a>>2]<<3)|0;c[g>>2]=B;if((B|0)!=0){break a}w=oJ(n,40,0,c[a>>2]|0,0,q)|0;t=a+4|0;c[t>>2]=w;if((c[g>>2]|0)!=0){break a}if((v|0)!=0){while(1){b[w>>1]=RK(d)|0;b[w+2>>1]=RK(d)|0;B=(c[u>>2]|0)+r|0;c[w+36>>2]=B+(TK(d)|0);v=v+ -1|0;if((v|0)==0){break}else{w=w+40|0}}}PK(d);u=c[a>>2]|0;c:do{if((u|0)!=0){t=c[t>>2]|0;while(1){v=PJ(d,c[t+36>>2]|0)|0;c[g>>2]=v;if((v|0)!=0){f=51;break b}v=MK(d,8)|0;c[g>>2]=v;if((v|0)!=0){f=51;break b}w=t+4|0;b[w>>1]=RK(d)|0;b[t+6>>1]=RK(d)|0;v=t+8|0;c[v>>2]=TK(d)|0;PK(d);z=c[m>>2]|0;w=b[w>>1]|0;d:do{switch(w&65535|0){case 4:{v=oQ(t,d,1)|0;c[o>>2]=v;break};case 2:{c[t+12>>2]=GK(d,h)|0;v=c[p>>2]|0;if((v|0)==0){v=ZK(d,272096,t+16|0)|0;c[p>>2]=v;v=(v|0)!=0|0}c[o>>2]=v;break};case 3:case 1:{y=b[t+2>>1]|0;x=b[t>>1]|0;if((y&65535)<(x&65535)){f=28;break b}w=w<<16>>16==1;x=(y&65535)-(x&65535)|0;c[t+24>>2]=x+1;x=x+2|0;y=t+28|0;c[y>>2]=oJ(z,4,0,x,0,j)|0;z=c[o>>2]|0;if((z|0)!=0){break b}z=MK(d,da(x,w?4:2)|0)|0;c[o>>2]=z;if((z|0)!=0){break b}if((x|0)!=0){A=0;do{B=c[v>>2]|0;if(w){z=TK(d)|0}else{z=(RK(d)|0)&65535}c[(c[y>>2]|0)+(A<<2)>>2]=z+B;A=A+1|0;}while(A>>>0<x>>>0)}PK(d);v=c[o>>2]|0;break};case 5:{c[t+12>>2]=GK(d,k)|0;z=c[l>>2]|0;if((z|0)!=0){f=42;break b}B=(ZKZK(n,272184,B)|0;if((A|0)!=0){n=A;A=8;break a}a[o]=a[C]|0;a[o+1|0]=a[B+1|0]|0;a[o+2|0]=a[B+2|0]|0;a[o+3|0]=a[B+3|0]|0;a[o+4|0]=a[B+4|0]|0;a[o+5|0]=0;a[o+6|0]=0;a[o+7|0]=0;A=7;break};case 9:case 7:case 6:{B=ZKl|0;t=n+k|0;u=t+k|0;s=j+u|0;t=((d[j+t|0]|0)<<8&65535|(d[j+(t|1)|0]|0))<<16>>16;q=((d[j+B|0]|0)<<8&65535|(d[j+(q+15)|0]|0))&65535;u=((d[s]|0)<<8&65535|(d[j+(u|1)|0]|0))&65535;n=((d[j+n|0]|0)<<8&65535|(d[j+(n|1)|0]|0))&65535}}while(0);if((u|0)==0){j=t+e&65535;break}B=(e-n<<1)+u|0;B=(d[s+B|0]|0)<<8&65535|(d[s+(B+1)|0]|0);j=B&65535;if(B<<16>>16==0){break}j=j+t&65535}}while(0);if(!h){B=j;i=f;return B|0}do{if(e>>>0>q>>>0){m=m+1|0;if((m|0)==(g|0)){b=0}else{break}i=f;return b|0}}while(0);if((EQ(a,m)|0)!=0){if((j|0)==0){B=0;i=f;return B|0}c[b>>2]=e;B=j;i=f;return B|0}g=a+24|0;c[g>>2]=e;if((j|0)==0){c[g>>2]=e;CQ(a);j=c[a+28>>2]|0}else{c[a+28>>2]=j}if((j|0)==0){B=0;i=f;return B|0}c[b>>2]=c[g>>2];B=j;i=f;return B|0}function EQ(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;f=i;o=c[a+16>>2]|0;g=c[a+32>>2]|0;if(g>>>0<=b>>>0){s=-1;i=f;return s|0}l=a+44|0;h=g<<1;m=h+2|0;n=a+40|0;k=a+48|0;j=g+ -1|0;a:while(1){s=b<<1;q=s+14|0;s=(d[o+q|0]|0)<<8&65535|(d[o+(s+15)|0]|0);c[l>>2]=s&65535;q=m+q|0;t=(d[o+q|0]|0)<<8&65535|(d[o+(q|1)|0]|0);c[n>>2]=t&65535;q=q+h|0;c[k>>2]=((d[o+q|0]|0)<<8&65535|(d[o+(q|1)|0]|0))<<16>>16;q=q+h|0;r=(d[o+q|0]|0)<<8&65535|(d[o+(q|1)|0]|0);p=r&65535;do{if(b>>>0>=j>>>0&t<<16>>16==-1&s<<16>>16==-1){s=c[a>>2]|0;if(r<<16>>16==0){break}if((o+(q+2+p)|0)>>>0>((c[s+500>>2]|0)+(c[s+504>>2]|0)|0)>>>0){e=6;break a}}}while(0);if((p|0)==0){g=0;break}else if((p|0)!=65535){e=8;break}b=b+1|0;if(b>>>0>=g>>>0){a=-1;e=11;break}}if((e|0)==6){c[k>>2]=1;g=0}else if((e|0)==8){g=o+(p+q)|0}else if((e|0)==11){i=f;return a|0}c[a+52>>2]=g;c[a+36>>2]=b;t=0;i=f;return t|0}function FQ(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;g=i;i=i+8|0;c[b>>2]=0;f=jJ(a,20,g)|0;e=c[g>>2]|0;if((e|0)!=0){b=e;i=d;return b|0}c[f+12>>2]=a;c[b>>2]=f;b=c[g>>2]|0;i=d;return b|0}function GQ(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((a|0)==0){i=e;return}if((b|0)!=0&(d|0)>3475){c[a+16>>2]=b;c[a>>2]=b+1440;d=d+ -1440|0;c[a+4>>2]=d&-16;c[a+8>>2]=d>>>7;i=e;return}else{c[a>>2]=0;c[a+4>>2]=0;c[a+16>>2]=0;i=e;return}}function HQ(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;e=i;g=i;i=i+320|0;h=g;l=c[d+4>>2]|0;s=c[d>>2]|0;if((a|0)==0){M=6;i=e;return M|0}if((c[a>>2]|0)==0){M=6;i=e;return M|0}k=a+4|0;if((c[k>>2]|0)==0){M=6;i=e;return M|0}if((l|0)==0){M=20;i=e;return M|0}n=b[l+2>>1]|0;if(n<<16>>16==0){M=0;i=e;return M|0}m=b[l>>1]|0;if(m<<16>>16<1){M=0;i=e;return M|0}j=c[l+12>>2]|0;if((j|0)==0){M=20;i=e;return M|0}if((c[l+4>>2]|0)==0){M=20;i=e;return M|0}if((n<<16>>16|0)!=((b[j+((m<<16>>16)+ -1<<1)>>1]|0)+1|0)){M=20;i=e;return M|0}j=c[a+16>>2]|0;t=d+8|0;m=c[t>>2]|0;n=(m&2|0)==0;do{if(n){if((s|0)==0){M=6;i=e;return M|0}if((c[s+4>>2]|0)==0){M=0;i=e;return M|0}if((c[s>>2]|0)==0){M=0;i=e;return M|0}if((c[s+12>>2]|0)==0){g=6}else{break}i=e;return g|0}}while(0);if((m&1|0)==0){M=19;i=e;return M|0}do{if(n){c[j+1024>>2]=0;c[j+1028>>2]=0;c[j+1032>>2]=c[s+4>>2];c[j+1036>>2]=c[s>>2]}else{n=j+1024|0;if((m&4|0)==0){c[n>>2]=-32768;c[j+1028>>2]=-32768;c[j+1032>>2]=32767;c[j+1036>>2]=32767;break}else{$W(n|0,d+32|0,16)|0;break}}}while(0);m=c[a>>2]|0;n=c[k>>2]|0;r=j+1412|0;c[r>>2]=m;o=j+1416|0;c[o>>2]=n;n=j+1420|0;c[n>>2]=m;m=j+44|0;c[m>>2]=0;q=j+48|0;c[q>>2]=0;k=j+52|0;c[k>>2]=0;c[j+32>>2]=0;c[j+36>>2]=0;p=j+40|0;c[p>>2]=1;$W(j+980|0,l|0,20)|0;c[k>>2]=0;c[p>>2]=1;l=j+1248|0;c[l>>2]=c[a+8>>2];a=j+1232|0;c[a>>2]=0;if((c[t>>2]&2|0)==0){$W(j+1e3|0,s|0,24)|0;c[j+1236>>2]=36;c[j+1240>>2]=j}else{c[j+1236>>2]=c[d+12>>2];c[j+1240>>2]=c[d+28>>2]}z=c[j+984>>2]|0;w=b[j+982>>1]|0;v=z+(w<<16>>16<<3)|0;if(w<<16>>16<1){bX(j+8|0,0,16)|0;z=0;t=0;A=0;u=0;y=j+12|0}else{x=c[z>>2]|0;d=j+12|0;c[d>>2]=x;u=j+8|0;c[u>>2]=x;y=c[z+4>>2]|0;t=j+20|0;c[t>>2]=y;s=j+16|0;c[s>>2]=y;if(w<<16>>16>1){w=y;A=x;B=z;z=z+8|0;while(1){C=c[z>>2]|0;B=c[B+12>>2]|0;if((C|0)<(x|0)){c[u>>2]=C;x=C}if((C|0)>(A|0)){c[d>>2]=C;A=C}if((B|0)<(y|0)){c[s>>2]=B;y=B}if((B|0)>(w|0)){c[t>>2]=B;w=B}B=z+8|0;if(B>>>0<v>>>0){M=z;z=B;B=M}else{break}}}else{w=y;A=x}M=x>>6;c[u>>2]=M;z=y>>6;c[s>>2]=z;u=A+63>>6;c[d>>2]=u;A=w+63>>6;c[t>>2]=A;t=A;A=M;y=d}w=c[j+1024>>2]|0;if((u|0)<=(w|0)){M=0;i=e;return M|0}x=c[j+1032>>2]|0;if((A|0)>=(x|0)){M=0;i=e;return M|0}s=j+20|0;B=c[j+1028>>2]|0;if((t|0)<=(B|0)){M=0;i=e;return M|0}d=j+16|0;v=c[j+1036>>2]|0;if((z|0)>=(v|0)){M=0;i=e;return M|0}if((A|0)<(w|0)){c[j+8>>2]=w}else{w=A}if((z|0)<(B|0)){c[d>>2]=B;z=B}if((u|0)>(x|0)){c[y>>2]=x;u=x}if((t|0)>(v|0)){c[s>>2]=v}else{v=t}t=j+24|0;c[t>>2]=u-w;A=v-z|0;z=j+28|0;c[z>>2]=A;A=(A|0)/(c[l>>2]|0)|0;if((A|0)==0){A=1}if((A|0)>38){A=39}E=j+1252|0;c[E>>2]=0;G=c[d>>2]|0;F=c[s>>2]|0;D=0;a:do{if((D|0)<(A|0)){u=h+4|0;y=j+1424|0;x=j+1236|0;v=j+1244|0;B=j+1040|0;w=j+1240|0;b:while(1){C=(c[l>>2]|0)+G|0;if((D|0)==(A+ -1|0)){f=58}else{if((C|0)>(F|0)){f=58}}if((f|0)==58){f=0;C=F}c[g>>2]=G;c[u>>2]=C;G=h;if(G>>>0>=h>>>0){do{c[n>>2]=c[r>>2];H=(c[G+4>>2]|0)-(c[G>>2]|0)|0;c[y>>2]=H;J=H<<2;I=J&12;if((I|0)!=0){J=J+16-I|0}I=c[o>>2]&-16;c[m>>2]=(c[r>>2]|0)+J;do{if((J|0)<(I|0)){M=I-J|0;c[q>>2]=M>>4;if((M|0)<32){f=84;break}if((H|0)>0){H=0;do{c[(c[n>>2]|0)+(H<<2)>>2]=0;H=H+1|0;}while((H|0)<(c[y>>2]|0))}c[k>>2]=0;c[p>>2]=1;c[d>>2]=c[G>>2];c[s>>2]=c[G+4>>2];c[z>>2]=(c[G+4>>2]|0)-(c[G>>2]|0);H=SQ(j)|0;if((H|0)==64){f=84;break}else if((H|0)!=0){g=1;f=92;break b}do{if((c[k>>2]|0)!=0){c[a>>2]=0;if((c[y>>2]|0)>0){H=0;do{I=c[(c[n>>2]|0)+(H<<2)>>2]|0;do{if((I|0)!=0){J=0;L=0;do{K=c[I>>2]|0;if(!((K|0)<=(L|0)|(J|0)==0)){TQ(j,L,H,J<<9,K-L|0)}J=(c[I+4>>2]|0)+J|0;K=J<<9;L=c[I+8>>2]|0;M=K-L|0;do{if((K|0)!=(L|0)){L=c[I>>2]|0;if((L|0)<=-1){break}TQ(j,L,H,M,1)}}while(0);L=(c[I>>2]|0)+1|0;I=c[I+12>>2]|0;}while((I|0)!=0);if((J|0)==0){break}TQ(j,L,H,K,(c[t>>2]|0)-L|0)}}while(0);H=H+1|0;}while((H|0)<(c[y>>2]|0))}I=c[x>>2]|0;if((I|0)==0){break}H=c[a>>2]|0;if((H|0)<=0){break}Jd[I&63](c[v>>2]|0,H,B,c[w>>2]|0)}}while(0);G=G+ -8|0}else{f=84}}while(0);if((f|0)==84){f=0;I=c[G>>2]|0;H=c[G+4>>2]|0;M=H-I>>1;J=M+I|0;if((M|0)==0){g=1;f=92;break b}if((I-H|0)>=(c[l>>2]|0)){c[E>>2]=(c[E>>2]|0)+1}c[G+8>>2]=I;c[G+12>>2]=J;c[G>>2]=J;c[G+4>>2]=H;G=G+8|0}}while(G>>>0>=h>>>0)}D=D+1|0;G=C;if((D|0)>=(A|0)){break a}}if((f|0)==92){i=e;return g|0}}}while(0);if((c[E>>2]|0)<=8){M=0;i=e;return M|0}f=c[l>>2]|0;if((f|0)<=16){M=0;i=e;return M|0}c[l>>2]=(f|0)/2|0;M=0;i=e;return M|0}function IQ(a){a=a|0;var b=0;b=i;lJ(c[a+12>>2]|0,a);i=b;return}function JQ(a){a=a|0;var b=0,d=0;b=i;d=c[a+4>>2]|0;Gd[c[(c[(c[a+20>>2]|0)+56>>2]|0)+8>>2]&255](c[a+60>>2]|0,c[d+172>>2]|0,c[d+176>>2]|0);i=b;return 0}function KQ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;a=QQ(a,b,(c|0)==1?0:c,d,0)|0;i=e;return a|0}function LQ(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;if((c[b+72>>2]|0)!=(c[a+24>>2]|0)){a=6;i=f;return a|0}if((d|0)!=0){GJ(b+108|0,d)}if((e|0)==0){a=0;i=f;return a|0}HJ(b+108|0,c[e>>2]|0,c[e+4>>2]|0);a=0;i=f;return a|0}function MQ(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;bX(d|0,0,16)|0;if((c[b+72>>2]|0)!=(c[a+24>>2]|0)){i=e;return}zK(b+108|0,d);i=e;return}function NQ(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;a=sd[c[(c[(c[a+20>>2]|0)+56>>2]|0)+12>>2]&127](c[a+60>>2]|0,b,d)|0;i=e;return a|0}function OQ(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=i;e=QQ(b,c,d,e,3)|0;if((e|0)!=0){i=f;return e|0}a[c+94|0]=5;i=f;return e|0}function PQ(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=i;e=QQ(b,c,d,e,4)|0;if((e|0)!=0){i=f;return e|0}a[c+94|0]=6;i=f;return e|0}function QQ(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;j=i;k=i;i=i+8|0;o=i;i=i+16|0;p=o;y=i;i=i+48|0;x=y;w=(f|0)==3;n=(f|0)==4;l=e+72|0;if((c[l>>2]|0)!=(c[d+24>>2]|0)){c[k>>2]=6;C=6;i=j;return C|0}if((f|0)!=(h|0)){C=19;i=j;return C|0}h=e+108|0;f=(g|0)==0;if(!f){HJ(h,c[g>>2]|0,c[g+4>>2]|0)}zKzK
7325 k}h=II(a,k,d)|0;k=c[g>>2]|0;l=k>>>0<256;k=k<<1|h;if((j|0)==0){if(!l){k=k&255|256}c[g>>2]=k;j=II(a,k,d)|0;n=c[g>>2]|0;k=n<<1|j;if(n>>>0>=256){k=k&255|256}c[g>>2]=k;k=II(a,k,d)|0;n=c[g>>2]|0;l=n<<1|k;if(n>>>0>=256){l=l&255|256}c[g>>2]=l;l=II(a,l,d)|0;n=c[g>>2]|0;m=n<<1|l;if(n>>>0>=256){m=m&255|256}c[g>>2]=m;m=II(a,m,d)|0;o=c[g>>2]|0;n=o<<1|m;if(o>>>0>=256){n=n&255|256}c[g>>2]=n;a=II(a,n,d)|0;o=c[g>>2]|0;d=o<<1|a;if(o>>>0>=256){d=d&255|256}c[g>>2]=d;g=(a|(m|(l|(k|(j|h<<1)<<1)<<1)<<1)<<1)+20|0;break}if(l){j=k}else{j=k&255|256}c[g>>2]=j;if((h|0)==0){h=0;k=0;do{l=II(a,j,d)|0;o=c[g>>2]|0;j=o<<1|l;if(o>>>0>=256){j=j&255|256}c[g>>2]=j;k=l|k<<1;h=h+1|0;}while((h|0)<8);g=k+84|0;break}h=II(a,j,d)|0;o=c[g>>2]|0;j=o<<1|h;if(o>>>0>=256){j=j&255|256}c[g>>2]=j;if((h|0)==0){h=0;k=0;do{l=II(a,j,d)|0;o=c[g>>2]|0;j=o<<1|l;if(o>>>0>=256){j=j&255|256}c[g>>2]=j;k=l|k<<1;h=h+1|0;}while((h|0)<12);g=k+340|0;break}else{h=0;k=0;do{l=II(a,j,d)|0;o=c[g>>2]|0;j=o<<1|l;if(o>>>0>=256){j=j&255|256}c[g>>2]=j;k=l|k<<1;h=h+1|0;}while((h|0)<32);g=k+4436|0;break}}}while(0);do{if((f|0)!=0){if((g|0)==0){o=0;i=e;return o|0}else{g=0-g|0;break}}}while(0);c[b>>2]=g;o=1;i=e;return o|0}function KI(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;f=a+20|0;c[f>>2]=1;if((b|0)==0){g=1;h=1<<b;h=g-h|0;i=e;return h|0}else{h=1;g=0}while(1){h=II(a,h,d)|0;h=c[f>>2]<<1|h;c[f>>2]=h;g=g+1|0;if(g>>>0<b>>>0){}else{break}}g=1<<b;h=h-g|0;i=e;return h|0}function LI(b,d,f,g){b=b|0;d=d|0;f=f|0;g=g|0;var j=0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0,s=0.0,t=0,u=0.0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;j=i;w=d+20|0;tH(b,d,f,g,(a[c[w>>2]|0]&1)!=0);c[b>>2]=206160;a[b+176|0]=a[(c[w>>2]|0)+1|0]&1;w=c[d+24>>2]|0;d=b+120|0;if((RJ(w,d)|0)!=0){i=j;return}c[w+88>>2]=c[d>>2];d=b+24|0;u=+h[d>>3];f=b+32|0;k=+h[f>>3];k=+T(+(u*u+k*k));g=b+168|0;u=(~~k|0)<1?1.0:k;h[g>>3]=u;if((bK(w,0,~~u)|0)!=0){i=j;return}l=+h[b+56>>3];k=+h[b+64>>3];n=+T(+(l*l+k*k));o=+h[g>>3];n=n/o;h[b+160>>3]=n;t=w+60|0;u=(c[t>>2]|0)>2e4?65536.0:1.0;m=+h[b+8>>3];z=w+52|0;p=+h[d>>3];x=w+56|0;v=w+68|0;A=~~((m*+(c[z>>2]|0)+p*+(c[x>>2]|0))/(u*+(e[v>>1]|0|0)));d=b+84|0;c[d>>2]=A;g=b+76|0;c[g>>2]=A;q=+h[b+16>>3];s=+h[f>>3];B=~~((q*+(c[z>>2]|0)+s*+(c[x>>2]|0))/(u*+(e[v>>1]|0|0)));r=b+88|0;c[r>>2]=B;f=b+80|0;c[f>>2]=B;w=w+64|0;C=~~((m*+(c[z>>2]|0)+p*+(c[w>>2]|0))/(u*+(e[v>>1]|0|0)));do{if((C|0)<(A|0)){c[g>>2]=C;y=A}else{if((C|0)<=(A|0)){y=A;C=A;break}c[d>>2]=C;y=C;C=A}}while(0);A=~~((q*+(c[z>>2]|0)+s*+(c[w>>2]|0))/(u*+(e[v>>1]|0|0)));do{if((A|0)<(B|0)){c[f>>2]=A;z=B}else{if((A|0)<=(B|0)){z=B;A=B;break}c[r>>2]=A;z=A;A=B}}while(0);B=~~((m*+(c[t>>2]|0)+p*+(c[x>>2]|0))/(u*+(e[v>>1]|0|0)));do{if((B|0)<(C|0)){c[g>>2]=B;C=B}else{if((B|0)<=(y|0)){break}c[d>>2]=B;y=B}}while(0);B=~~((q*+(c[t>>2]|0)+s*+(c[x>>2]|0))/(u*+(e[v>>1]|0|0)));do{if((B|0)<(A|0)){c[f>>2]=B;x=z;A=B}else{if((B|0)<=(z|0)){x=z;break}c[r>>2]=B;x=B}}while(0);z=~~((m*+(c[t>>2]|0)+p*+(c[w>>2]|0))/(u*+(e[v>>1]|0|0)));do{if((z|0)<(C|0)){c[g>>2]=z;C=z}else{if((z|0)<=(y|0)){break}c[d>>2]=z;y=z}}while(0);t=~~((q*+(c[t>>2]|0)+s*+(c[w>>2]|0))/(u*+(e[v>>1]|0|0)));do{if((t|0)<(A|0)){c[f>>2]=t;A=t}else{if((t|0)<=(x|0)){break}c[r>>2]=t;x=t}}while(0);if((y|0)==(C|0)){c[g>>2]=0;c[d>>2]=~~o}if((x|0)==(A|0)){c[f>>2]=0;c[r>>2]=~~(o*1.2)}c[b+124>>2]=~~(m/o*65536.0);c[b+132>>2]=~~(q/o*65536.0);c[b+128>>2]=~~(p/o*65536.0);c[b+136>>2]=~~(s/o*65536.0);u=o*n;c[b+140>>2]=~~(+h[b+40>>3]/u*65536.0);c[b+148>>2]=~~(+h[b+48>>3]/u*65536.0);c[b+144>>2]=~~(l/u*65536.0);c[b+152>>2]=~~(k/u*65536.0);i=j;return}function MI(a){a=a|0;var b=0;b=i;wH(a);HW(a);i=b;return}function NI(a){a=a|0;var b=0;b=i;wH(a);i=b;return}function OI(a,b,c,d,e,f,g,h,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0;k=i;d=xH(a,b,c,0,e,f,g,h,j)|0;i=k;return d|0}function PI(b,d,f,g,h,j,k,l,m){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;g=i;s=i;i=i+8|0;r=s;q=i;i=i+16|0;n=q;o=c[b+4>>2]|0;p=o+24|0;c[(c[p>>2]|0)+88>>2]=c[b+120>>2];c[s>>2]=~~(+(f|0)*.25*64.0);c[r+4>>2]=0;FJ(c[p>>2]|0,b+124|0,r);r=c[p>>2]|0;f=c[r+84>>2]|0;s=c[o+28>>2]|0;do{if((s|0)!=0){if((c[o+32>>2]|0)<=(d|0)){break}d=e[s+(d<<1)>>1]|0}}while(0);o=b+72|0;s=(a[o]&1)!=0;u=(a[b+176|0]&1)!=0;t=s^1;b=u^1;do{if(t|b){if(!(u|t)){b=10;break}b=s|b?2:0}else{b=8}}while(0);if((YI(r,d,b)|0)!=0){u=0;i=g;return u|0}zK|0)==0){c[p>>2]=r}else{c[q+4>>2]=r}if((r|0)==0){c[o+28>>2]=q}else{c[r>>2]=q}if((s|0)!=0){hd[c[n+8>>2]&127](n,s)}UJ(n,m,o)}}while(0);n=c[l>>2]|0;}while((n|0)!=0);l=c[f>>2]|0}}while(0);k=k+1|0;if(k>>>0<l>>>0){m=l}else{m=l;h=l;break}}}g=g+1|0;}while(g>>>0<2);if((m|0)!=0){do{lK(a,c[a+28+(m+ -1<<2)>>2]|0)|0;m=c[f>>2]|0;}while((m|0)!=0)}e=a+172|0;f=c[e>>2]|0;if((f|0)!=0){hd[c[b+8>>2]&127](b,f)}c[e>>2]=0;c[a+176>>2]=0;hd[c[b+8>>2]&127](b,a);s=0;i=d;return s|0}function sK(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;j=i;k=i;i=i+24|0;g=k;h=(c[(c[a>>2]|0)+96>>2]|0)+20|0;if((c[(c[h>>2]|0)+96>>2]|0)==0){d=0;i=j;return d|0}c[k>>2]=0;c[g+4>>2]=b;c[g+8>>2]=d;k=(e|0)==0?f:e;e=(k|0)==0;c[g+12>>2]=e?72:k;c[g+16>>2]=e?72:(f|0)==0?k:f;d=Bd[c[(c[h>>2]|0)+96>>2]&255](a,g)|0;i=j;return d|0}function tK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;f=i;i=i+24|0;g=f;h=(c[(c[a>>2]|0)+96>>2]|0)+20|0;if((c[(c[h>>2]|0)+96>>2]|0)==0){a=0;i=e;return a|0}c[f>>2]=0;c[g+4>>2]=b<<6;c[g+8>>2]=d<<6;c[g+12>>2]=0;c[g+16>>2]=0;a=Bd[c[(c[h>>2]|0)+96>>2]&255](a,g)|0;i=e;return a|0}function uK(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;g=i;l=i;i=i+8|0;y=l;t=i;i=i+8|0;s=t;o=i;i=i+8|0;p=o;k=i;i=i+8|0;j=k;m=i;i=i+8|0;n=m;q=i;i=i+8|0;v=q;r=i;i=i+8|0;w=r;u=i;i=i+8|0;x=u;if((d|0)==0|(e|0)==0){Z=6;i=g;return Z|0}h=c[e+16>>2]|0;z=c[e+20>>2]|0;if((b[d>>1]|0)<=0){Z=0;i=g;return Z|0}N=d+12|0;L=d+4|0;K=s+4|0;M=d+8|0;F=e+4|0;I=v+4|0;J=w+4|0;G=x+4|0;H=e+12|0;E=p+4|0;D=y+4|0;C=j+4|0;B=n+4|0;A=e+8|0;U=0;P=0;a:while(1){Z=b[(c[N>>2]|0)+(P<<1)>>1]|0;O=Z<<16>>16;if(Z<<16>>16<0){S=20;Q=29;break}R=c[L>>2]|0;Q=R+(O<<3)|0;V=R+(U<<3)|0;Z=c[V>>2]|0;V=c[V+4>>2]|0;X=t;c[X>>2]=Z;c[X+4>>2]=V;c[t>>2]=(Z<<h)-z;V=(V<<h)-z|0;c[K>>2]=V;Z=(c[R+(O<<3)>>2]<<h)-z|0;X=(c[R+(O<<3)+4>>2]<<h)-z|0;T=t;Y=c[T>>2]|0;T=c[T+4>>2]|0;S=l;c[S>>2]=Y;c[S+4>>2]=T;S=c[M>>2]|0;T=S+U|0;W=a[T]&3;if((W|0)==2){S=20;Q=29;break}else if((W|0)==0){if((a[S+O|0]&3)==1){c[t>>2]=Z;c[K>>2]=X;Q=R+(O+ -1<<3)|0}else{c[t>>2]=(Y+Z|0)/2|0;c[K>>2]=(V+X|0)/2|0}T=U+ -1|0;U=T;T=S+T|0}S=R+(U<<3)|0;R=Bd[c[e>>2]&255](s,f)|0;if((R|0)!=0){S=R;Q=29;break}b:do{if(S>>>0<Q>>>0){U=T;c:while(1){R=S+8|0;T=U+1|0;V=a[T]&3;if((V|0)==0){U=(c[R>>2]<<h)-z|0;c[l>>2]=U;S=(c[S+12>>2]<<h)-z|0;c[D>>2]=S;if(R>>>0<Q>>>0){V=R}else{Q=20;break}while(1){R=V+8|0;T=T+1|0;X=a[T]&3;W=(c[R>>2]<<h)-z|0;c[k>>2]=W;V=(c[V+12>>2]<<h)-z|0;c[C>>2]=V;if((X|0)==1){break}else if((X|0)!=0){S=20;Q=29;break a}c[m>>2]=(W+U|0)/2|0;c[B>>2]=(V+S|0)/2|0;S=sd[c[A>>2]&127](y,n,f)|0;if((S|0)!=0){Q=29;break a}S=k;U=c[S>>2]|0;S=c[S+4>>2]|0;Z=l;c[Z>>2]=U;c[Z+4>>2]=S;if(R>>>0<Q>>>0){S=S|0;V=R}else{Q=20;break c}}S=sd[c[A>>2]&127](y,j,f)|0;if((S|0)!=0){Q=29;break a}}else if((V|0)==1){c[o>>2]=(c[R>>2]<<h)-z;c[E>>2]=(c[S+12>>2]<<h)-z;S=Bd[c[F>>2]&255](p,f)|0;if((S|0)!=0){Q=29;break a}}else{if((S+16|0)>>>0>Q>>>0){S=20;Q=29;break a}if((a[U+2|0]&3)!=2){S=20;Q=29;break a}R=S+24|0;c[q>>2]=(c[S+8>>2]<<h)-z;c[I>>2]=(c[S+12>>2]<<h)-z;c[r>>2]=(c[S+16>>2]<<h)-z;c[J>>2]=(c[S+20>>2]<<h)-z;if(R>>>0>Q>>>0){Q=25;break}c[u>>2]=(c[R>>2]<<h)-z;c[G>>2]=(c[S+28>>2]<<h)-z;S=pd[c[H>>2]&63](v,w,x,f)|0;if((S|0)==0){T=U+3|0}else{Q=29;break a}}if(R>>>0<Q>>>0){S=R;U=T}else{Q=26;break b}}if((Q|0)==20){Q=0;S=sd[c[A>>2]&127](y,s,f)|0;break}else if((Q|0)==25){Q=0;S=pd[c[H>>2]&63](v,w,s,f)|0;break}}else{Q=26}}while(0);if((Q|0)==26){S=Bd[c[F>>2]&255](s,f)|0}if((S|0)!=0){Q=29;break}P=P+1|0;if((P|0)<(b[d>>1]|0)){U=O+1|0}else{S=0;Q=29;break}}if((Q|0)==29){i=g;return S|0}return 0}function vK(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;if((f|0)==0|(a|0)==0){m=6;i=g;return m|0}bX(f|0,0,20)|0;a:do{if((d|0)<0){e=6;h=10}else{k=(d|0)==0;do{if(k){m=0}else{if((d|0)>268435455){e=10;h=10;break a}j=d<<3;m=Bd[c[a+4>>2]&255](a,j)|0;l=(m|0)==0;if(l){m=0}else{bX(m|0,0,j|0)|0}if(l){j=f+4|0;c[j>>2]=m;e=64;break a}else{bX(m|0,0,j|0)|0;break}}}while(0);j=f+4|0;c[j>>2]=m;do{if(k){m=0;h=18}else{l=(d|0)>0;if(!l){k=d>>31&6;c[f+8>>2]=0;if((k|0)==0){break}else{e=k;break a}}m=Bd[c[a+4>>2]&255](a,d)|0;k=(m|0)==0;if(k){m=0}else{bX(m|0,0,d|0)|0}if(l&(k^1)){bX(m|0,0,d|0)|0;h=18;break}else{c[f+8>>2]=m;if(k){e=64;break a}else{break}}}}while(0);if((h|0)==18){c[f+8>>2]=m}b:do{if((e|0)<0){e=6}else{do{if((e|0)==0){m=0}else{if((e|0)>1073741823){e=10;break b}k=e<<1;m=Bd[c[a+4>>2]&255](a,k)|0;l=(m|0)==0;if(l){m=0}else{bX(m|0,0,k|0)|0}if(l){c[f+12>>2]=m;e=64;break a}else{bX(m|0,0,k|0)|0;break}}}while(0);c[f+12>>2]=m;b[f+2>>1]=d;b[f>>1]=e;m=f+16|0;c[m>>2]=c[m>>2]|1;m=0;i=g;return m|0}}while(0);c[f+12>>2]=0}}while(0);if((h|0)==10){j=f+4|0;c[j>>2]=0}h=f+16|0;c[h>>2]=c[h>>2]|1;h=c[j>>2]|0;if((h|0)!=0){hd[c[a+8>>2]&127](a,h)}c[j>>2]=0;h=f+8|0;d=c[h>>2]|0;if((d|0)!=0){hd[c[a+8>>2]&127](a,d)}c[h>>2]=0;h=c[f+12>>2]|0;if((h|0)!=0){hd[c[a+8>>2]&127](a,h)}bX(f|0,0,20)|0;m=e;i=g;return m|0}function wK(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;if((a|0)==0){e=33;i=f;return e|0}e=vK(c[a>>2]|0,b,d,e)|0;i=f;return e|0}function xK(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=i;if((a|0)==0|(d|0)==0){g=6;i=e;return g|0}g=a+2|0;f=b[g>>1]|0;if(f<<16>>16!=(b[d+2>>1]|0)){g=6;i=e;return g|0}if((b[a>>1]|0)!=(b[d>>1]|0)){g=6;i=e;return g|0}if((a|0)==(d|0)){g=0;i=e;return g|0}$W(c[d+4>>2]|0,c[a+4>>2]|0,f<<16>>16<<3|0)|0;$W(c[d+8>>2]|0,c[a+8>>2]|0,b[g>>1]|0)|0;$W(c[d+12>>2]|0,c[a+12>>2]|0,b[a>>1]<<1|0)|0;g=d+16|0;c[g>>2]=c[a+16>>2]&-2|c[g>>2]&1;g=0;i=e;return g|0}function yK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;if((a|0)==0){f=33;i=d;return f|0}a=c[a>>2]|0;if((a|0)==0|(b|0)==0){f=6;i=d;return f|0}if((c[b+16>>2]&1|0)!=0){e=b+4|0;f=c[e>>2]|0;if((f|0)!=0){hd[c[a+8>>2]&127](a,f)}c[e>>2]=0;e=b+8|0;f=c[e>>2]|0;if((f|0)!=0){hd[c[a+8>>2]&127](a,f)}c[e>>2]=0;e=b+12|0;f=c[e>>2]|0;if((f|0)!=0){hd[c[a+8>>2]&127](a,f)}c[e>>2]=0}bX(b|0,0,20)|0;f=0;i=d;return f|0}function zKZK(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;l=i;if((g|0)==0|(f|0)==0){r=6;i=l;return r|0}k=f+32|0;j=f+36|0;n=0;a:while(1){q=c[k>>2]|0;b:while(1){p=a[g]|0;c:do{switch(p&255|0){case 9:case 8:{o=q+1|0;r=24;q=d[q]|0;m=18;break};case 18:case 19:{o=q+4|0;r=0;q=(d[q+2|0]|0)<<16|(d[q+3|0]|0)<<24|(d[q+1|0]|0)<<8|(d[q]|0);m=18;break};case 25:case 24:{r=d[g+1|0]|0;o=q+r|0;if(o>>>0>(c[j>>2]|0)>>>0){h=85;break a}if(p<<24>>24!=24){break c}$W(h+(e[g+2>>1]|0)|0,q|0,r|0)|0;break};case 22:case 23:{o=q+3|0;r=8;q=(d[q+1|0]|0)<<8|(d[q+2|0]|0)<<16|(d[q]|0);m=18;break};case 12:case 13:{o=q+2|0;r=16;q=((d[q]|0)<<8&65535|(d[q+1|0]|0))&65535;m=18;break};case 16:case 17:{o=q+4|0;r=0;q=(d[q+1|0]|0)<<16|(d[q]|0)<<24|(d[q+2|0]|0)<<8|(d[q+3|0]|0);m=18;break};case 14:case 15:{o=q+2|0;r=16;q=((d[q+1|0]|0)<<8&65535|(d[q]|0))&65535;m=18;break};case 20:case 21:{o=q+3|0;r=8;q=(d[q+1|0]|0)<<8|(d[q]|0)<<16|(d[q+2|0]|0);m=18;break};case 4:{break b};default:{m=17;break a}}}while(0);do{if((m|0)==18){m=0;if((p&1)!=0){q=q<<r>>r}r=h+(e[g+2>>1]|0)|0;p=d[g+1|0]|0;if((p|0)==1){a[r]=q;break}else if((p|0)==2){b[r>>1]=q;break}else if((p|0)==4){c[r>>2]=q;break}else{c[r>>2]=q;break}}}while(0);g=g+4|0;q=o}o=MK(f,e[g+2>>1]|0)|0;if((o|0)!=0){h=o;break}g=g+4|0;n=1}if((m|0)==17){c[k>>2]=q;h=0}if(n<<24>>24==0){r=h;i=l;return r|0}if((c[f+20>>2]|0)!=0){n=c[f+28>>2]|0;m=c[f>>2]|0;if((m|0)!=0){hd[c[n+8>>2]&127](n,m)}c[f>>2]=0}c[k>>2]=0;c[j>>2]=0;r=h;i=l;return r|0}function _K(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;d=a;a=c[d>>2]|0;d=c[d+4>>2]|0;if((a|0)==0){g=(d|0)>-1?d:0-d|0;i=b;return g|0}e=(a|0)>-1?a:0-a|0;if((d|0)==0){g=e;i=b;return g|0}e=((d|0)>-1?d:0-d|0)|e;f=(e|0)>65535;e=f?e>>16:e;f=f?16:0;if((e|0)>255){f=f|8;e=e>>8}if((e|0)>15){f=f+4|0;e=e>>4}if((e|0)>3){f=f+2|0;e=e>>2}f=((e|0)>1)+f|0;if((f|0)<28){g=27-f|0;d=d<<g;e=a<<g;a=g}else{e=f+ -27|0;d=d>>e;e=a>>e;a=27-f|0}if((e|0)<0){e=0-e|0;g=0-d|0}else{g=d}f=e<<1;if((g|0)<0){d=0;e=e-(g<<1)|0;f=g+f|0}else{d=0;e=(g<<1)+e|0;f=g-f|0}do{g=e>>d;if((f|0)<0){e=e-(f>>d)|0;f=f+g|0}else{e=(f>>d)+e|0;f=f-g|0}d=d+1|0;}while((d|0)<23);d=(e|0)>-1;e=d?e:0-e|0;f=e>>>16;e=e&65535;g=(e*17797|0)+(f*47593|0)|0;e=(e*47593|0)>>>16;h=g+e|0;f=(h>>>16)+(f*17797|0)|0;e=h>>>0<(g>>>0>=e>>>0?g:e)>>>0?f+65536|0:f;d=d?e:0-e|0;if((a|0)>0){h=d+(1<<a+ -1)>>a;i=b;return h|0}else{h=d<<0-a;i=b;return h|0}return 0}
7333 >(h<<2|0)){h=k;j=k;break}h=k;j=d[j+(e+5)|0]<<16|d[j+(e+4)|0]<<24|d[j+(e+6)|0]<<8|d[j+(e+7)|0];break}k=e<<1;e=(d[j+k|0]<<8&65535|d[j+(k|1)|0])&65535;if((k+4|0)>(h<<1|0)){j=e}else{j=(d[j+(k+2)|0]<<8&65535|d[j+(k+3)|0])&65535}h=e<<1;j=j<<1}else{h=0;j=0}}while(0);a=c[a+704>>2]|0;if(h>>>0>=a>>>0){k=0;j=0;e=f;c[e>>2]=j;i=g;return k|0}e=j>>>0<a>>>0?j:a;j=h;e=(e>>>0<h>>>0?a:e)-h|0;k=f;c[k>>2]=e;i=g;return j|0}function eS(a,d,f,g,h,j){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;k=i;l=i;i=i+8|0;s=l;n=i;i=i+8|0;o=n;m=i;i=i+8|0;t=m;p=c[a+28>>2]|0;c[m>>2]=0;if(d<<24>>24==0|(f|0)==0){I=6;i=k;return I|0}d=oJ(p,8,0,j,0,s)|0;q=c[l>>2]|0;if((q|0)!=0){I=q;i=k;return I|0}c[h>>2]=d;if((c[f+32>>2]|0)>>>0<=g>>>0){I=0;i=k;return I|0}r=f+36|0;I=c[r>>2]|0;u=c[I+(g<<2)>>2]|0;q=g+1|0;if((u|0)==(c[I+(q<<2)>>2]|0)){I=0;i=k;return I|0}I=PJ(a,u)|0;c[l>>2]=I;do{if((I|0)==0){I=c[r>>2]|0;I=MK(a,(c[I+(q<<2)>>2]|0)-(c[I+(g<<2)>>2]|0)|0)|0;c[l>>2]=I;if((I|0)!=0){break}r=a+32|0;v=(c[r>>2]|0)-(c[a>>2]|0)|0;q=oJ(p,4,0,c[f>>2]|0,0,s)|0;do{if((c[l>>2]|0)==0){g=oJ(p,4,0,c[f>>2]|0,0,s)|0;if((c[l>>2]|0)!=0){break}s=oJ(p,4,0,c[f>>2]|0,0,s)|0;if((c[l>>2]|0)!=0){break}u=(RK(a)|0)&65535;A=((RK(a)|0)&65535)+v|0;if((u&32768|0)==0){t=0}else{H=c[a>>2]|0;I=(c[r>>2]|0)-H|0;c[r>>2]=H+A;t=$R(a,t)|0;H=c[a>>2]|0;A=(c[r>>2]|0)-H|0;c[r>>2]=H+I}v=u&4095;a:do{if((v|0)!=0){w=f+24|0;x=f+28|0;u=(j|0)==0;z=0;D=0;b:while(1){y=(RK(a)|0)&65535;B=RK(a)|0;E=B&65535;do{if((E&32768|0)==0){C=E&4095;if(C>>>0>=(c[w>>2]|0)>>>0){break b}I=c[f>>2]|0;H=da(I,C)|0;$W(q|0,(c[x>>2]|0)+(H<<2)|0,I<<2|0)|0}else{if((c[f>>2]|0)==0){break}else{C=0}do{c[q+(C<<2)>>2]=(RK(a)|0)<<16>>16<<2;C=C+1|0;}while(C>>>0<(c[f>>2]|0)>>>0)}}while(0);do{if((E&16384|0)!=0){if((c[f>>2]|0)==0){break}else{C=0}do{c[g+(C<<2)>>2]=(RK(a)|0)<<16>>16<<2;C=C+1|0;F=c[f>>2]|0;}while(C>>>0<F>>>0);if((F|0)==0){break}else{C=0}do{c[s+(C<<2)>>2]=(RK(a)|0)<<16>>16<<2;C=C+1|0;}while(C>>>0<(c[f>>2]|0)>>>0)}}while(0);C=_R(f,B,q,g,s)|0;if((C|0)!=0){F=c[a>>2]|0;B=(c[r>>2]|0)-F|0;if((E&8192|0)==0){G=c[m>>2]|0;c[n>>2]=G;H=t}else{c[r>>2]=F+A;H=$R(a,o)|0;G=c[n>>2]|0;D=H}I=(G|0)==0;E=I?j:G;F=aS(a,E)|0;E=aS(a,E)|0;do{if(!((H|0)==0|(E|0)==0|(F|0)==0)){if((H|0)==-1){if(u){break}else{G=0}do{I=aJ(b[F+(G<<1)>>1]|0,C)|0;H=d+(G<<3)|0;c[H>>2]=(c[H>>2]|0)+I;H=aJ(b[E+(G<<1)>>1]|0,C)|0;I=d+(G<<3)+4|0;c[I>>2]=(c[I>>2]|0)+H;G=G+1|0;}while(G>>>0<j>>>0)}else{if(I){break}else{H=0}do{K=aJ(b[F+(H<<1)>>1]|0,C)|0;I=D+(H<<1)|0;J=d+(e[I>>1]<<3)|0;c[J>>2]=(c[J>>2]|0)+K;J=aJ(b[E+(H<<1)>>1]|0,C)|0;I=d+(e[I>>1]<<3)+4|0;c[I>>2]=(c[I>>2]|0)+J;H=H+1|0;}while(H>>>0<G>>>0)}}}while(0);if((D|0)==-1){D=-1}else{lJ(p,D);D=0}lJ(p,F);lJ(p,E);c[r>>2]=(c[a>>2]|0)+B}z=z+1|0;if(z>>>0<v>>>0){A=y+A|0}else{break a}}c[l>>2]=8}}while(0);lJ(p,q);lJ(p,g);lJ(p,s)}}while(0);PK(a);if((c[l>>2]|0)==0){j=0}else{break}i=k;return j|0}}while(0);lJ(p,d);c[h>>2]=0;K=c[l>>2]|0;i=k;return K|0}function fS(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;h=i;m=f+124|0;l=c[(c[f+8>>2]|0)+140>>2]|0;k=f+132|0;p=b[k>>1]|0;o=p&65535;j=f+140|0;n=c[j>>2]|0;r=c[n+(o+ -4<<3)>>2]|0;q=r+32&-64;do{if((q|0)!=(r|0)){q=q-r|0;if(p<<16>>16==0){break}else{p=0}do{r=n+(p<<3)|0;c[r>>2]=q+(c[r>>2]|0);p=p+1|0;}while(p>>>0<o>>>0)}}while(0);o=(l|0)!=0;if(o){$W(c[f+136>>2]|0,c[j>>2]|0,e[k>>1]<<3|0)|0}n=f+160|0;p=f+4|0;$W((c[n>>2]|0)+284|0,(c[p>>2]|0)+172|0,68)|0;if(g<<24>>24==0){c[(c[n>>2]|0)+220>>2]=c[(c[p>>2]|0)+48>>2];c[(c[n>>2]|0)+224>>2]=c[(c[p>>2]|0)+52>>2]}else{c[(c[n>>2]|0)+220>>2]=65536;c[(c[n>>2]|0)+224>>2]=65536;$W(c[f+144>>2]|0,c[j>>2]|0,e[k>>1]<<3|0)|0}r=(c[j>>2]|0)+((e[k>>1]|0)+ -3<<3)|0;c[r>>2]=(c[r>>2]|0)+32&-64;r=(c[j>>2]|0)+((e[k>>1]|0)+ -1<<3)+4|0;c[r>>2]=(c[r>>2]|0)+32&-64;if(o){o=c[(c[f+12>>2]|0)+64>>2]|0;r=c[n>>2]|0;c[r+460>>2]=c[r+392>>2];c[r+464>>2]=l;a[(c[n>>2]|0)+560|0]=g;$W((c[n>>2]|0)+144|0,m|0,36)|0;l=c[n>>2]|0;c[l+356>>2]=c[l+460>>2];c[l+364>>2]=c[l+464>>2];c[l+360>>2]=0;c[l+352>>2]=3;r=l+144|0;$W(l+36|0,r|0,36)|0;$W(l+72|0,r|0,36)|0;$W(l+108|0,r|0,36)|0;b[l+344>>1]=1;b[l+346>>1]=1;b[l+348>>1]=1;r=l+294|0;b[r>>1]=16384;b[l+296>>1]=0;r=e[r>>1]|e[r+2>>1]<<16;m=l+298|0;b[m>>1]=r;b[m+2>>1]=r>>>16;m=l+290|0;b[m>>1]=r;b[m+2>>1]=r>>>16;c[l+312>>2]=1;c[l+304>>2]=1;c[l+16>>2]=0;c[l+428>>2]=0;l=jd[c[(c[l>>2]|0)+688>>2]&511](l)|0;m=c[n>>2]|0;do{if((l|0)!=0){if((a[m+561|0]|0)==0){break}i=h;return l|0}}while(0);a[o]=c[m+340>>2]<<5|d[o]|4}if((a[f+65|0]|0)!=0){r=0;i=h;return r|0}p=e[k>>1]|0;q=c[j>>2]|0;n=q+(p+ -4<<3)|0;o=c[n+4>>2]|0;r=f+68|0;c[r>>2]=c[n>>2];c[r+4>>2]=o;r=q+(p+ -3<<3)|0;o=c[r+4>>2]|0;n=f+76|0;c[n>>2]=c[r>>2];c[n+4>>2]=o;n=q+(p+ -2<<3)|0;o=c[n+4>>2]|0;r=f+184|0;c[r>>2]=c[n>>2];c[r+4>>2]=o;p=q+(p+ -1<<3)|0;q=c[p+4>>2]|0;r=f+192|0;c[r>>2]=c[p>>2];c[r+4>>2]=q;r=0;i=h;return r|0}function gS(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;h=i;k=i;i=i+8|0;j=k;o=i;i=i+8|0;c[d>>2]=f;c[d+4>>2]=g;if((g|0)!=0){c[d+396>>2]=c[g+116>>2];c[d+400>>2]=c[g+120>>2];c[d+408>>2]=c[g+128>>2];c[d+412>>2]=c[g+132>>2];c[d+404>>2]=c[g+124>>2];c[d+416>>2]=c[g+136>>2];$W(d+244|0,g+72|0,40)|0;$W(d+216|0,g+44|0,28)|0;c[d+420>>2]=c[g+140>>2];c[d+424>>2]=c[g+144>>2];n=g+148|0;p=c[n+4>>2]|0;q=d+444|0;c[q>>2]=c[n>>2];c[q+4>>2]=p;q=g+156|0;p=c[q+4>>2]|0;n=d+452|0;c[n>>2]=c[q>>2];c[n+4>>2]=p;n=g+164|0;p=c[n+4>>2]|0;q=d+460|0;c[q>>2]=c[n>>2];c[q+4>>2]=p;$W(d+284|0,g+172|0,68)|0;c[d+380>>2]=c[g+240>>2];c[d+384>>2]=c[g+244>>2];b[d+468>>1]=b[g+248>>1]|0;c[d+472>>2]=c[g+252>>2];$W(d+180|0,g+256|0,36)|0;q=d+36|0;bX(q|0,0,36)|0;$W(d+72|0,q|0,36)|0;$W(d+108|0,q|0,36)|0}l=d+20|0;m=c[l>>2]|0;p=d+8|0;g=c[p>>2]|0;q=d+24|0;n=(e[f+284>>1]|0)+32|0;do{if(m>>>0<n>>>0){c[q>>2]=oJ(g,1,m<<2,n<<2,c[q>>2]|0,o)|0;if((c[o>>2]|0)==0){g=c[p>>2]|0;m=n;break}c[l>>2]=m;i=h;return}}while(0);c[l>>2]=m;l=d+388|0;m=c[l>>2]|0;n=d+392|0;f=e[f+286>>1]|0;do{if(m>>>0<f>>>0){c[n>>2]=oJ(g,1,m,f,c[n>>2]|0,j)|0;if((c[k>>2]|0)==0){m=f;break}c[l>>2]=m&65535;i=h;return}}while(0);c[l>>2]=m&65535;q=d+144|0;b[d+152>>1]=0;b[d+154>>1]=0;$W(d+72|0,q|0,36)|0;$W(d+108|0,q|0,36)|0;$W(d+36|0,q|0,36)|0;a[d+488|0]=0;i=h;return}function hS(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;f=c[b>>2]|0;e=b+292|0;if((a[e]|0)==0){g=(c[f+96>>2]|0)+40|0}else{g=b+296|0}g=c[g>>2]|0;if((g|0)==0){j=153;i=d;return j|0}gS(g,f,b);c[g+428>>2]=0;c[g+16>>2]=0;a[g+488|0]=0;j=c[f+664>>2]|0;k=f+660|0;h=c[k>>2]|0;c[g+452>>2]=j;c[g+456>>2]=h;c[g+460>>2]=0;c[g+464>>2]=0;do{if((c[k>>2]|0)==0){e=0}else{c[g+356>>2]=j;c[g+364>>2]=h;c[g+360>>2]=0;c[g+352>>2]=2;if((a[e]|0)!=0){e=0;break}e=jd[c[f+688>>2]&511](g)|0}}while(0);$W(b+172|0,g+284|0,68)|0;c[b+116>>2]=c[g+396>>2];c[b+128>>2]=c[g+408>>2];c[b+140>>2]=c[g+420>>2];c[b+144>>2]=c[g+424>>2];h=g+444|0;j=c[h+4>>2]|0;k=b+148|0;c[k>>2]=c[h>>2];c[k+4>>2]=j;k=g+452|0;j=c[k+4>>2]|0;h=b+156|0;c[h>>2]=c[k>>2];c[h+4>>2]=j;h=g+460|0;j=c[h+4>>2]|0;k=b+164|0;c[k>>2]=c[h>>2];c[k+4>>2]=j;k=e;i=d;return k|0}function iS(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;j=i;p=i;i=i+8|0;u=p;r=i;i=i+8|0;s=i;i=i+24|0;t=s;h=i;i=i+8|0;n=h;c[h>>2]=0;k=c[d+100>>2]|0;l=d+708|0;a[l]=0;o=d+712|0;m=c[o>>2]|0;do{if((m|0)==0){B=jS(d,0)|0;c[h>>2]=B;if((B|0)==0){m=c[o>>2]|0;break}else{B=h;B=c[B>>2]|0;i=j;return B|0}}}while(0);A=m+8|0;if((c[c[A>>2]>>2]|0)!=(f|0)){c[h>>2]=6;B=h;B=c[B>>2]|0;i=j;return B|0}o=(f|0)==0;a:do{if(!o){q=0;while(1){v=q+1|0;if(((c[g+(q<<2)>>2]|0)+65536|0)>>>0>131072){break}if(v>>>0<f>>>0){q=v}else{break a}}c[h>>2]=6;B=h;B=c[B>>2]|0;i=j;return B|0}}while(0);x=m+36|0;do{if((c[x>>2]|0)==0){q=c[d+104>>2]|0;v=c[q+28>>2]|0;r=pd[c[d+508>>2]&63](d,1735811442,q,r)|0;c[p>>2]=r;b:do{if((r|0)==0){w=IK(q)|0;r=ZK(q,274592,t)|0;c[p>>2]=r;if((r|0)!=0){A=r;break}r=m+24|0;c[r>>2]=e[t+6>>1]|0;B=e[t+12>>1]|0;z=m+32|0;c[z>>2]=B;y=(c[t+16>>2]|0)+w|0;do{if((c[s>>2]|0)==65536){s=t+4|0;if((b[s>>1]|0)!=(c[c[A>>2]>>2]&65535)<<16>>16){break}c[x>>2]=oJ(v,4,0,B+1|0,0,u)|0;A=c[p>>2]|0;if((A|0)!=0){break b}A=(c[z>>2]|0)+1|0;if((b[t+14>>1]&1)==0){A=MK(q,A<<1)|0;c[p>>2]=A;if((A|0)==0){A=0}else{break b}do{B=(((RK(q)|0)&65535)<<1)+y|0;c[(c[x>>2]|0)+(A<<2)>>2]=B;A=A+1|0;}while(A>>>0<=(c[z>>2]|0)>>>0);PK(q)}else{A=MK(q,A<<2)|0;c[p>>2]=A;if((A|0)==0){A=0}else{break b}do{B=(TK(q)|0)+y|0;c[(c[x>>2]|0)+(A<<2)>>2]=B;A=A+1|0;}while(A>>>0<=(c[z>>2]|0)>>>0);PK(q)}y=c[r>>2]|0;if((y|0)!=0){x=m+28|0;c[x>>2]=oJ(v,4,0,da(e[s>>1]|0,y)|0,0,u)|0;A=c[p>>2]|0;if((A|0)!=0){break b}A=PJ(q,(c[t+8>>2]|0)+w|0)|0;c[p>>2]=A;if((A|0)!=0){break b}A=MK(q,da(c[r>>2]<<1,e[s>>1]|0)|0)|0;c[p>>2]=A;if((A|0)!=0){break b}u=c[r>>2]|0;if((u|0)!=0){v=b[s>>1]|0;t=0;do{if(v<<16>>16==0){v=0}else{u=0;do{B=(RK(q)|0)<<16>>16<<2;v=(da(e[s>>1]|0,t)|0)+u|0;c[(c[x>>2]|0)+(v<<2)>>2]=B;u=u+1|0;v=b[s>>1]|0;}while(u>>>0<(v&65535)>>>0);u=c[r>>2]|0}t=t+1|0;}while(t>>>0<u>>>0)}PK(q)}A=c[p>>2]|0;break b}}while(0);c[p>>2]=8;A=8}else{A=r}}while(0);c[h>>2]=A;if((A|0)==0){break}B=h;B=c[B>>2]|0;i=j;return B|0}}while(0);q=m+4|0;p=c[q>>2]|0;c:do{if((p|0)==0){p=oJ(k,4,0,f,0,n)|0;c[q>>2]=p;if((c[h>>2]|0)==0){n=1;break}B=h;B=c[B>>2]|0;i=j;return B|0}else{if(o){n=0;break}else{n=0}while(1){o=n+1|0;if((c[p+(n<<2)>>2]|0)!=(c[g+(n<<2)>>2]|0)){n=2;break c}if(o>>>0<f>>>0){n=o}else{n=0;break}}}}while(0);c[m>>2]=f;$W(p|0,g|0,f<<2|0)|0;a[l]=1;l=d+672|0;g=c[l>>2]|0;if((g|0)==0){B=h;B=c[B>>2]|0;i=j;return B|0}if((n|0)==1){ZR(d,c[d+104>>2]|0)|0;B=h;B=c[B>>2]|0;i=j;return B|0}else if((n|0)==2){lJ(k,g);c[l>>2]=0;TR(d,c[d+104>>2]|0)|0;B=h;B=c[B>>2]|0;i=j;return B|0}else{B=h;B=c[B>>2]|0;i=j;return B|0}return 0}function jS(d,f){d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;h=i;r=i;i=i+8|0;o=r;g=i;i=i+8|0;m=g;n=i;i=i+16|0;s=n;p=i;i=i+24|0;q=p;k=c[d+104>>2]|0;l=c[d+100>>2]|0;c[g>>2]=0;j=d+712|0;a:do{if((c[j>>2]|0)==0){t=d+508|0;x=pd[c[t>>2]&63](d,1735811442,k,o)|0;c[g>>2]=x;if((x|0)!=0){x=g;x=c[x>>2]|0;i=h;return x|0}x=pd[c[t>>2]&63](d,1719034226,k,o)|0;c[g>>2]=x;if((x|0)!=0){x=g;x=c[x>>2]|0;i=h;return x|0}d=IK(k)|0;x=ZKZK>2]=(ZI(c[E>>2]|0)|0)>>16;c[d+56>>2]=(ZI(c[E>>2]|0)|0)>>16;a[(c[d+156>>2]|0)+8|0]=0;u=(u&16|0)!=0;if(u){E=l+460|0;E=(c[E+12>>2]|0)-(c[E+4>>2]|0)>>16;c[d+52>>2]=E;c[d+60>>2]=E}else{E=q+44|0;c[d+52>>2]=(ZI(c[E>>2]|0)|0)>>16;c[d+60>>2]=(ZI(c[E>>2]|0)|0)>>16}c[A>>2]=1869968492;do{if(B){if((e[f+14>>1]|0)>=24){break}c[D>>2]=c[D>>2]|256}}while(0);do{if((c[x>>2]|0)==65536){if((c[w+12>>2]|0)!=65536){p=22;break}if((c[w+4>>2]|0)!=0){p=22;break}if((c[w+8>>2]|0)!=0){p=22}}else{p=22}}while(0);if((p|0)==22){GJ(h,w)}if((g|C|0)!=0){HJ(h,C,g)}c[y>>2]=c[s>>2];E=v+4|0;c[E>>2]=0;IJ(v,w);c[s>>2]=(c[y>>2]|0)+C;c[y>>2]=0;x=d+52|0;c[E>>2]=c[x>>2];IJ(v,w);c[x>>2]=(c[E>>2]|0)+g;if(z){y=c[q+16>>2]|0;f=c[y+4>>2]|0;v=c[d+172>>2]|0;w=c[d+176>>2]|0;if(r<<24>>24==0){p=28}else{if((c[q+72>>2]|0)==0){p=28}}do{if((p|0)==28){p=b[y+2>>1]|0;if(p<<16>>16<=0){break}p=p<<16>>16;while(1){c[f>>2]=aJ(c[f>>2]|0,v)|0;E=f+4|0;c[E>>2]=aJ(c[E>>2]|0,w)|0;p=p+ -1|0;if((p|0)>0){f=f+8|0}else{break}}}}while(0);c[s>>2]=aJ(c[s>>2]|0,v)|0;c[x>>2]=aJ(c[x>>2]|0,w)|0}zKeturn a|0}return 0}function bT(a){a=a|0;i=i;return c[a+364>>2]|0}function cT(a){a=a|0;i=i;return 0}function dT(a){a=a|0;i=i;return}function eT(a,b){a=a|0;b=b|0;var c=0;c=i;a=uJ(280448,b)|0;i=c;return a|0}function fT(e,f,g,h,j){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,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;h=i;m=i;i=i+8|0;n=m;p=i;i=i+256|0;x=i;i=i+8|0;y=x;q=i;i=i+272|0;s=q;z=i;i=i+104|0;j=z;l=i;i=i+8|0;v=l;c[f>>2]=1;o=f+136|0;if((c[o>>2]|0)==0){c[o>>2]=nK(c[(c[f+96>>2]|0)+4>>2]|0,277744)|0}r=f+320|0;if((c[r>>2]|0)==0){c[r>>2]=nK(c[(c[f+96>>2]|0)+4>>2]|0,277728)|0}e=PJ(e,0)|0;if((e|0)!=0){T=e;i=h;return T|0}r=f+100|0;w=c[r>>2]|0;bX(z|0,0,104)|0;u=f+104|0;F=c[u>>2]|0;e=c[o>>2]|0;bX(z|0,0,100)|0;Jd[c[c[e+4>>2]>>2]&63](j,0,0,w);e=j+72|0;c[e>>2]=F;E=IK(F)|0;T=MK(F,31)|0;a:do{if((T|0)==0){T=(vc(c[F+32>>2]|0,280384,31)|0)==0;PK(F);if(!T){c[l>>2]=2;break}L=F+4|0;M=s+10|0;H=10-s|0;I=j+76|0;t=j+84|0;J=j+80|0;N=j+4|0;G=j+8|0;D=j+96|0;A=j+32|0;C=j+28|0;B=j+12|0;K=7-s|0;b:while(1){O=IK(F)|0;P=c[L>>2]|0;k=IK(F)|0;if((P|0)==(k|0)){T=2;k=36;break a}P=P-k|0;k=s;Q=266;c:while(1){P=(Q|0)<(P|0)?Q:P;T=CK(F,k,P)|0;if((T|0)!=0){k=36;break a}if((P|0)<256){a[k+P|0]=0}k=k+(P+ -10)|0;if(s>>>0<k>>>0){R=a[q]|0;P=s;while(1){if(R<<24>>24==83){if((vc(P|0,280416,9)|0)==0){k=18;break c}}Q=P+1|0;R=a[Q]|0;if(R<<24>>24==115){if((vc(P|0,280432,6)|0)==0){k=22;break c}}if(Q>>>0<k>>>0){P=Q}else{break}}}else{Q=s}aX(q|0,Q|0,10)|0;P=c[L>>2]|0;k=IK(F)|0;if((P|0)==(k|0)){T=2;k=36;break a}else{P=P-k|0;O=O+256|0;k=M;Q=256}}if((k|0)==18){k=0;P=H+P|0}else if((k|0)==22){k=0;P=K+P|0}O=P+O|0;P=O-E|0;T=PJ(F,E)|0;if((T|0)!=0){k=36;break a}T=LK(F,P,I)|0;if((T|0)!=0){k=36;break a}c[t>>2]=O;c[J>>2]=P;R=c[I>>2]|0;c[N>>2]=R;c[z>>2]=R;c[G>>2]=R+P;c[D>>2]=-1;fd[c[A>>2]&511](j);fd[c[C>>2]&511](j);Q=c[z>>2]|0;fd[c[A>>2]&511](j);fd[c[C>>2]&511](j);P=c[G>>2]|0;S=c[z>>2]|0;if(S>>>0<P>>>0){while(1){T=c[B>>2]|0;if((T|0)!=0){k=36;break a}if((a[S]|0)==83){if((vc(S|0,280416,9)|0)==0){break b}}if((a[S+1|0]|0)==115){if((vc(S|0,280432,6)|0)==0){T=2;k=36;break a}}fd[c[A>>2]&511](j);fd[c[C>>2]&511](j);R=c[z>>2]|0;if(R>>>0<P>>>0){U=S;T=Q;S=R;Q=U;R=T}else{break}}}NK(F,I);T=PJ(F,O)|0;if((T|0)!=0){k=36;break a}}if((vc(R|0,280440,5)|0)==0){c[j+88>>2]=ec(Q|0)|0}c[l>>2]=0;M=c[I>>2]|0;K=c[J>>2]|0;c[z>>2]=M;E=M+K|0;c[G>>2]=E;c[B>>2]=0;q=f+300|0;F=f+140|0;s=f+304|0;L=j+68|0;G=j+64|0;H=f+164|0;I=f+312|0;J=f+196|0;K=M+(K+ -18)|0;d:while(1){c[z>>2]=M;fd[c[C>>2]&511](j);N=c[z>>2]|0;P=N>>>0<E>>>0;O=P?N+ -17|0:K;if(M>>>0<O>>>0){do{do{if((a[M]|0)==37){if((vc(M|0,277776,17)|0)!=0){break}if((c[q>>2]|0)<=0){break}c[D>>2]=(c[D>>2]|0)+1}}while(0);M=M+1|0;}while(M>>>0<O>>>0)}if(!P){k=74;break}fd[c[A>>2]&511](j);M=c[z>>2]|0;if(M>>>0>=E>>>0){k=74;break}if((c[B>>2]|0)!=0){k=74;break}if(!((a[N]|0)==47&(N+2|0)>>>0<E>>>0)){continue}P=N+1|0;O=M-P|0;if((O+ -1|0)>>>0>=21){continue}P=a[P]|0;Q=279640;S=277800;e:do{if((O|0)>1){Q=279640;S=277800;while(1){f:do{if(P<<24>>24==(a[Q]|0)){if((O|0)==(ZW(Q|0)|0)){R=1}else{break}while(1){T=R+1|0;if((a[N+T|0]|0)!=(a[Q+R|0]|0)){break f}if((T|0)<(O|0)){R=T}else{break e}}}}while(0);S=S+36|0;Q=c[S>>2]|0;if((Q|0)==0){continue d}}}else{N=Q;while(1){if(P<<24>>24==(a[N]|0)){if((O|0)==(ZW(N|0)|0)){break e}}S=S+36|0;N=c[S>>2]|0;if((N|0)==0){continue d}}}}while(0);M=c[S+8>>2]|0;do{if((M|0)==10){hd[c[S+12>>2]&127](f,j);M=c[B>>2]|0}else{N=c[S+4>>2]|0;if((N|0)==0){N=F}else if((N|0)==2){N=I}else if((N|0)==3){N=H}else if((N|0)==5){N=J}else{N=c[D>>2]|0;if((N|0)<0){k=65;break d}N=(c[s>>2]|0)+(N*252|0)|0}c[x>>2]=N;if((M+ -8|0)>>>0<2){M=Cd[c[L>>2]&63](j,S,y,0,0)|0;break}else{M=Cd[c[G>>2]&63](j,S,y,0,0)|0;break}}}while(0);c[B>>2]=M;if((M|0)!=0){break}M=c[z>>2]|0}if((k|0)==65){c[B>>2]=160;M=160}else if((k|0)==74){U=c[B>>2]|0;c[l>>2]=U;if((U|0)!=0|(g|0)<0){break}z=jJ(w,40,v)|0;x=f+328|0;c[x>>2]=z;if((c[l>>2]|0)!=0){break}y=j+88|0;A=c[y>>2]|0;if((A|0)==0){$W(z|0,c[u>>2]|0,40)|0;c[f+308>>2]=c[t>>2]}else{A=jJ(w,A,v)|0;v=f+324|0;c[v>>2]=A;if((c[l>>2]|0)!=0){break}w=c[y>>2]|0;u=c[u>>2]|0;if((PJ(u,c[t>>2]|0)|0)!=0){break}t=A+w|0;g:do{if((w|0)>0){w=u+4|0;C=p;B=p;z=1;while(1){h:while(1){if(C>>>0>=B>>>0){B=IK(u)|0;U=c[w>>2]|0;C=U-B|0;if((U|0)==(B|0)){break a}if((CK(u,p,C>>>0<256?C:256)|0)!=0){break a}C=p;B=p+((IK(u)|0)-B)|0}F=a[C]|0;if(((F&255)+ -48|0)>>>0<10){k=91;break}E=F+ -97<<24>>24;if((E&255)<6){D=0;break}if((F+ -65<<24>>24&255)<6){k=92;break}switch(F<<24>>24){case 0:case 12:case 10:case 13:case 9:case 32:{break};case 62:{D=1;E=0;break h};default:{break a}}C=C+1|0}if((k|0)==91){k=0;D=0;E=F+ -48<<24>>24}else if((k|0)==92){k=0;D=0;E=F+ -55<<24>>24}if(z<<24>>24==0){a[A]=(a[A]|0)+E<<24>>24;A=A+1|0}else{a[A]=E<<4}if(D<<24>>24!=0){break g}if(A>>>0<t>>>0){C=C+1|0;z=1-z<<24>>24}else{break}}}}while(0);yJ(c[x>>2]|0,c[v>>2]|0,c[y>>2]|0);c[f+308>>2]=0}p=c[r>>2]|0;r=c[x>>2]|0;v=c[o>>2]|0;x=oJ(p,8,0,c[q>>2]|0,0,n)|0;o=f+316|0;c[o>>2]=x;i:do{if((c[m>>2]|0)==0){if((c[q>>2]|0)<=0){A=0;break}u=f+308|0;t=r+32|0;v=v+16|0;z=0;w=0;A=0;while(1){D=c[s>>2]|0;B=c[D+(w*252|0)+4>>2]|0;y=c[D+(w*252|0)+240>>2]|0;C=y+1|0;if(C>>>0>z>>>0){E=y+4&-4;A=oJ(p,4,z,E,A,n)|0;if((c[m>>2]|0)==0){z=E}else{break}}U=PJ(r,(c[D+(w*252|0)+244>>2]|0)+(c[u>>2]|0)|0)|0;c[m>>2]=U;if((U|0)!=0){break}D=D+(w*252|0)+248|0;U=MK(r,da(c[D>>2]|0,C)|0)|0;c[m>>2]=U;if((U|0)!=0){break}E=0;G=c[t>>2]|0;do{F=c[D>>2]&255;if(F<<24>>24==0){I=0}else{J=F;H=G;I=0;while(1){I=d[H]|I<<8;J=J+ -1<<24>>24;if(J<<24>>24==0){break}else{H=H+1|0}}G=G+((F+ -1<<24>>24&255)+1)|0}c[A+(E<<2)>>2]=I;E=E+1|0;}while(E>>>0<=y>>>0);PK(r);E=(c[A+(y<<2)>>2]|0)-(c[A>>2]|0)|0;D=x+4|0;c[D>>2]=oJ(p,4,0,C,0,n)|0;if((c[m>>2]|0)!=0){break}U=jJ(p,E,n)|0;c[c[D>>2]>>2]=U;if((c[m>>2]|0)!=0){break}U=PJ(r,(c[A>>2]|0)+(c[u>>2]|0)|0)|0;c[m>>2]=U;if((U|0)!=0){break}U=CK(r,c[c[D>>2]>>2]|0,E)|0;c[m>>2]=U;if((U|0)!=0){break}do{if((y|0)!=0){C=1;do{T=C+ -1|0;U=c[D>>2]|0;c[U+(C<<2)>>2]=(c[U+(T<<2)>>2]|0)+((c[A+(C<<2)>>2]|0)-(c[A+(T<<2)>>2]|0));C=C+1|0;}while(C>>>0<=y>>>0);if((B|0)<0){break}else{C=0}while(1){B=C+1|0;Gd[c[v>>2]&255](c[(c[D>>2]|0)+(C<<2)>>2]|0,(c[A+(B<<2)>>2]|0)-(c[A+(C<<2)>>2]|0)|0,4330);if(B>>>0<y>>>0){C=B}else{break}}}}while(0);c[x>>2]=y;w=w+1|0;if((w|0)<(c[q>>2]|0)){x=x+8|0}else{break i}}r=c[o>>2]|0;if((r|0)==0){break}if((c[q>>2]|0)>0){n=0;do{r=c[r+(n<<3)+4>>2]|0;if((r|0)==0){r=0}else{lJ(p,c[r>>2]|0);c[c[(c[o>>2]|0)+(n<<3)+4>>2]>>2]=0;r=c[(c[o>>2]|0)+(n<<3)+4>>2]|0}lJ(p,r);c[(c[o>>2]|0)+(n<<3)+4>>2]=0;n=n+1|0;r=c[o>>2]|0}while((n|0)<(c[q>>2]|0))}lJ(p,r);c[o>>2]=0}else{A=0}}while(0);lJ(p,A);c[l>>2]=c[m>>2];break}c[l>>2]=M}else{k=36}}while(0);if((k|0)==36){c[l>>2]=T}m=j+76|0;if((c[m>>2]|0)!=0){NK(c[e>>2]|0,m)}fd[c[j+24>>2]&511](j);j=c[l>>2]|0;if((j|0)!=0|(g|0)<0){U=j;i=h;return U|0}if((g|0)!=0){U=6;i=h;return U|0}g=f+140|0;j=g+24|0;c[f+16>>2]=c[g+156>>2];c[f+36>>2]=0;c[f+4>>2]=0;c[f+8>>2]=(a[g+48|0]|0)==0?2065:2069;n=c[g+36>>2]|0;m=f+20|0;c[m>>2]=n;l=f+24|0;c[l>>2]=277752;j:do{if((n|0)==0){k=c[g>>2]|0;if((k|0)==0){break}c[m>>2]=k}else{e=c[g+32>>2]|0;if((e|0)==0){break}m=a[e]|0;if(m<<24>>24==0){break}k:while(1){while(1){o=a[n]|0;if(m<<24>>24==o<<24>>24){k=137;break}if(m<<24>>24==45|m<<24>>24==32){break}if(o<<24>>24==0){break k}else if(!(o<<24>>24==45|o<<24>>24==32)){break j}if(m<<24>>24==0){break j}else{n=n+1|0}}if((k|0)==137){k=0;n=n+1|0}e=e+1|0;m=a[e]|0;if(m<<24>>24==0){break j}}c[l>>2]=e}}while(0);l=f+12|0;k=(c[g+44>>2]|0)!=0|0;c[l>>2]=k;m=c[g+40>>2]|0;do{if((m|0)!=0){if((Qc(m|0,277760)|0)!=0){if((Qc(m|0,277768)|0)!=0){break}}c[l>>2]=k|2}}while(0);c[f+28>>2]=0;c[f+32>>2]=0;c[f+52>>2]=c[g+56>>2]>>16;l=c[g+60>>2]>>16;c[f+56>>2]=l;c[f+60>>2]=(c[g+64>>2]|0)+65535>>16;k=(c[g+68>>2]|0)+65535>>16;c[f+64>>2]=k;m=f+68|0;e=b[m>>1]|0;if(e<<16>>16==0){b[m>>1]=1e3;e=1e3}U=k&65535;b[f+70>>1]=U;k=l&65535;b[f+72>>1]=k;l=((((e&65535)*12|0)>>>0)/10|0)&65535;k=(U<<16>>16)-(k<<16>>16)|0;b[f+74>>1]=(l<<16>>16|0)<(k|0)?k&65535:l;b[f+80>>1]=b[j+26>>1]|0;b[f+82>>1]=b[g+52>>1]|0;U=0;i=h;return U|0}function gT(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;h=i;if((a|0)==0){i=h;return}g=a+140|0;f=g+24|0;b=c[a+100>>2]|0;d=a+316|0;l=c[d>>2]|0;e=g+160|0;if((l|0)!=0){j=c[e>>2]|0;if((j|0)>0){k=0;do{m=l+(k<<3)+4|0;n=c[m>>2]|0;if((n|0)!=0){lJ(b,c[n>>2]|0);c[c[m>>2]>>2]=0;lJ(b,c[m>>2]|0);c[m>>2]=0;l=c[d>>2]|0;j=c[e>>2]|0}k=k+1|0;}while((k|0)<(j|0))}lJ(b,l);c[d>>2]=0}lJ(b,c[f>>2]|0);c[f>>2]=0;n=g+28|0;lJ(b,c[n>>2]|0);c[n>>2]=0;n=g+32|0;lJ(b,c[n>>2]|0);c[n>>2]=0;n=g+36|0;lJ(b,c[n>>2]|0);c[n>>2]=0;n=g+40|0;lJ(b,c[n>>2]|0);c[n>>2]=0;n=g+164|0;lJ(b,c[n>>2]|0);c[n>>2]=0;c[e>>2]=0;lJ(b,c[g>>2]|0);c[g>>2]=0;n=g+12|0;lJ(b,c[n>>2]|0);c[n>>2]=0;n=g+16|0;lJ(b,c[n>>2]|0);c[n>>2]=0;c[a+20>>2]=0;c[a+24>>2]=0;n=a+324|0;lJ(b,c[n>>2]|0);c[n>>2]=0;n=a+328|0;lJ(b,c[n>>2]|0);c[n>>2]=0;i=h;return}function hT(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=i;i=i+8|0;e=c[a>>2]|0;f=c[e+320>>2]|0;e=mK(c[(c[e+96>>2]|0)+4>>2]|0,277728)|0;if((e|0)==0|(f|0)==0){f=0;i=b;return f|0}f=c[f>>2]|0;if((f|0)==0){f=0;i=b;return f|0}e=jd[f&511](e)|0;if((e|0)==0){f=0;i=b;return f|0}f=c[a>>2]|0;e=sd[c[e>>2]&127](c[f+100>>2]|0,(c[f+304>>2]|0)+((c[f+4>>2]|0)*252|0)|0,d)|0;if((e|0)!=0){f=e;i=b;return f|0}c[a+40>>2]=c[d>>2];f=0;i=b;return f|0}function iT(a){a=a|0;var b=0,d=0,e=0;b=i;d=a+40|0;if((c[d>>2]|0)==0){i=b;return}a=c[a>>2]|0;e=c[a+320>>2]|0;a=mK(c[(c[a+96>>2]|0)+4>>2]|0,277728)|0;do{if(!((a|0)==0|(e|0)==0)){e=c[e>>2]|0;if((e|0)==0){break}a=jd[e&511](a)|0;if((a|0)==0){break}fd[c[a+8>>2]&511](c[d>>2]|0)}}while(0);c[d>>2]=0;i=b;return}function jT(a){a=a|0;var b=0,d=0,e=0;b=i;e=c[a+4>>2]|0;d=c[e+320>>2]|0;if((d|0)==0){i=b;return 0}e=mK(c[(c[e+96>>2]|0)+4>>2]|0,277728)|0;if((e|0)==0){i=b;return 0}e=jd[c[d+4>>2]&511](e)|0;c[(c[a+156>>2]|0)+36>>2]=e;i=b;return 0}function kT(a){a=a|0;c[(c[a+156>>2]|0)+36>>2]=0;i=i;return}function lT(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;j=i;n=i;i=i+1504|0;s=i;i=i+16|0;v=s;l=i;i=i+16|0;k=l;u=i;i=i+8|0;w=u;x=c[d+4>>2]|0;t=c[x+136>>2]|0;if((c[x+16>>2]|0)>>>0<=g>>>0){C=6;i=j;return C|0}h=(h&1024|0)==0?h:h|3;r=d+164|0;c[r>>2]=c[f+16>>2];q=d+168|0;c[q>>2]=c[f+20>>2];m=d+108|0;b[d+110>>1]=0;b[m>>1]=0;z=(h&1|0)==0;if(z){p=(h>>>1&1^1)&255}else{p=0}y=d+72|0;c[y>>2]=1869968492;t=t+12|0;A=Fd[c[c[t>>2]>>2]&7](n,x,f,d,0,0,p,h>>>16&15,201)|0;if((A|0)!=0){C=A;i=j;return C|0}B=h&1024;a[n+69|0]=B>>>10;g=nT(n,g)|0;if((g|0)!=0){C=g;i=j;return C|0}$W(s|0,n+1376|0,16)|0;A=c[n+1392>>2]|0;g=c[n+1396>>2]|0;fd[c[(c[t>>2]|0)+4>>2]&511](n);C=d+124|0;c[C>>2]=c[C>>2]&1|4;if((B|0)!=0){C=c[d+156>>2]|0;c[d+32>>2]=(ZI(c[n+32>>2]|0)|0)>>16;c[d+40>>2]=(ZI(c[n+40>>2]|0)|0)>>16;$W(C+12|0,s|0,16)|0;c[C+28>>2]=A;c[C+32>>2]=g;a[C+8|0]=1;C=0;i=j;return C|0}t=d+24|0;B=n+40|0;s=d+40|0;c[s>>2]=(ZI(c[B>>2]|0)|0)>>16;c[d+56>>2]=(ZI(c[B>>2]|0)|0)>>16;a[(c[d+156>>2]|0)+8|0]=0;B=x+140|0;B=(c[B+68>>2]|0)-(c[B+60>>2]|0)>>16;x=d+52|0;c[x>>2]=B;c[d+60>>2]=B;c[y>>2]=1869968492;if((e[f+14>>1]|0)<24){c[C>>2]=c[C>>2]|256}GJ(m,v);HJ(m,A,g);c[u>>2]=c[s>>2];C=w+4|0;c[C>>2]=0;IJ(w,v);c[s>>2]=(c[u>>2]|0)+A;c[u>>2]=0;c[C>>2]=c[x>>2];IJ(w,v);c[x>>2]=(c[C>>2]|0)+g;if(z){u=c[n+16>>2]|0;f=c[u+4>>2]|0;r=c[r>>2]|0;q=c[q>>2]|0;if(p<<24>>24==0){o=13}else{if((c[n+72>>2]|0)==0){o=13}}do{if((o|0)==13){n=b[u+2>>1]|0;if(n<<16>>16<=0){break}n=n<<16>>16;while(1){c[f>>2]=aJ(c[f>>2]|0,r)|0;C=f+4|0;c[C>>2]=aJ(c[C>>2]|0,q)|0;n=n+ -1|0;if((n|0)>0){f=f+8|0}else{break}}}}while(0);c[s>>2]=aJ(c[s>>2]|0,r)|0;c[x>>2]=aJ(c[x>>2]|0,q)|0}zKZK(u,282416,L)|0;c[t>>2]=Y;if((Y|0)!=0){break}c[t>>2]=2;b:do{if((b[K>>1]|0)==23117){K=L+2|0;Y=PJ(u,e[K>>1]|0)|0;c[t>>2]=Y;if((Y|0)!=0){break a}Y=ZK(u,282440,H)|0;c[t>>2]=Y;if((Y|0)!=0){break a}c[t>>2]=2;J=b[J>>1]|0;c:do{if(J<<16>>16==17744){Y=PJ(u,e[K>>1]|0)|0;c[t>>2]=Y;if((Y|0)!=0){break a}Y=ZK(u,282464,E)|0;c[t>>2]=Y;if((Y|0)!=0){break a}do{if((c[G>>2]|0)==17744){if((b[E+4>>1]|0)!=332){break}if((b[E+8>>1]|0)!=224){break}if((b[E+10>>1]|0)!=267){break}c[g>>2]=0;G=E+6|0;d:do{if((b[G>>1]|0)!=0){J=E+12|0;E=F+8|0;H=0;while(1){Y=ZK(u,282520,F)|0;c[t>>2]=Y;if((Y|0)!=0){break a}H=H+1<<16>>16;if((c[J>>2]|0)==(c[E>>2]|0)){break}if((H&65535)>=(e[G>>1]|0)){break d}}F=F+16|0;Y=PJ(u,c[F>>2]|0)|0;c[t>>2]=Y;if((Y|0)!=0){break a}Y=ZK(u,282552,I)|0;c[t>>2]=Y;if((Y|0)!=0){break a}G=c[F>>2]|0;H=I+12|0;N=I+14|0;if(((e[N>>1]|0)+(e[H>>1]|0)|0)<=0){u=0;v=g;break c}R=G+16|0;I=y+4|0;J=x+12|0;L=x+14|0;M=w+4|0;Q=D+12|0;K=D+14|0;O=C+4|0;P=A+4|0;T=0;S=0;e:while(1){Y=PJ(u,R+(T<<3)|0)|0;c[t>>2]=Y;if((Y|0)!=0){break a}Y=ZK(u,282584,y)|0;c[t>>2]=Y;if((Y|0)!=0){break a}T=c[I>>2]|0;if((T|0)>=0){s=46;break}T=T&2147483647;c[I>>2]=T;T=(c[F>>2]|0)+T|0;Y=PJ(u,T)|0;c[t>>2]=Y;if((Y|0)!=0){break a}Y=ZK(u,282552,x)|0;c[t>>2]=Y;if((Y|0)!=0){break a}if(((e[L>>1]|0)+(e[J>>1]|0)|0)>0){U=T+16|0;V=0;T=0;do{Y=PJ(u,U+(V<<3)|0)|0;c[t>>2]=Y;if((Y|0)!=0){break a}Y=ZK(u,282584,w)|0;c[t>>2]=Y;if((Y|0)!=0){break a}V=c[M>>2]|0;if((V|0)>=0){s=54;break e}V=V&2147483647;c[M>>2]=V;V=(c[F>>2]|0)+V|0;Y=PJ(u,V)|0;c[t>>2]=Y;if((Y|0)!=0){break a}Y=ZK(u,282552,D)|0;c[t>>2]=Y;if((Y|0)!=0){break a}if(((e[K>>1]|0)+(e[Q>>1]|0)|0)>0){W=V+16|0;X=0;V=0;do{Y=PJ(u,W+(X<<3)|0)|0;c[t>>2]=Y;if((Y|0)!=0){break a}Y=ZK(u,282584,C)|0;c[t>>2]=Y;if((Y|0)!=0){break a}if((c[M>>2]|0)<0){s=62;break e}if((c[B>>2]|0)==8){Y=PJ(u,(c[O>>2]|0)+G|0)|0;c[t>>2]=Y;if((Y|0)!=0){break a}Y=ZK(u,282600,A)|0;c[t>>2]=Y;if((Y|0)!=0){break a}X=c[g>>2]|0;if((X|0)==(h|0)){X=jJ(p,172,v)|0;c[l>>2]=X;Y=c[t>>2]|0;if((Y|0)!=0){break a}c[X>>2]=(c[z>>2]|0)+(c[F>>2]|0)-(c[E>>2]|0);c[(c[l>>2]|0)+164>>2]=c[P>>2];Y=_T(c[l>>2]|0,u)|0;c[t>>2]=Y;if((Y|0)!=0){s=79;break b}X=c[g>>2]|0}c[g>>2]=X+1}V=V+1<<16>>16;X=V&65535;}while((X|0)<((e[K>>1]|0)+(e[Q>>1]|0)|0))}T=T+1<<16>>16;V=T&65535;}while((V|0)<((e[L>>1]|0)+(e[J>>1]|0)|0))}S=S+1<<16>>16;T=S&65535;if((T|0)>=((e[N>>1]|0)+(e[H>>1]|0)|0)){u=0;v=g;break c}}if((s|0)==46){c[t>>2]=3;Y=3;break a}else if((s|0)==54){c[t>>2]=3;Y=3;break a}else if((s|0)==62){c[t>>2]=3;Y=3;break a}}}while(0);c[t>>2]=3;Y=3;break a}}while(0);c[t>>2]=3;Y=3;break a}else if(J<<16>>16==17742){w=H+2|0;Y=PJ(u,(e[w>>1]|0)+(e[K>>1]|0)|0)|0;c[t>>2]=Y;if((Y|0)!=0){break a}Y=MK(u,(e[H+4>>1]|0)-(e[w>>1]|0)|0)|0;c[t>>2]=Y;if((Y|0)!=0){break a}w=SK(u)|0;z=SK(u)|0;f:do{if(z<<16>>16==0){y=0;x=0}else{x=u+32|0;while(1){y=SK(u)|0;if(z<<16>>16==-32760){break}c[x>>2]=(c[x>>2]|0)+(((y&65535)*12|0)+4);z=SK(u)|0;if(z<<16>>16==0){y=0;x=0;break f}}Y=IK(u)|0;x=Y+4+(c[x>>2]|0)-(c[u+36>>2]|0)|0}}while(0);PK(u);if(y<<16>>16==0|(x|0)==0){c[t>>2]=3;Y=3;break a}y=y&65535;if((y*118|0)>>>0>(c[u+4>>2]|0)>>>0){c[t>>2]=3;Y=3;break a}c[g>>2]=y;if((y|0)<=(h|0)){c[t>>2]=6;Y=6;break a}if((h|0)<0){break b}c[l>>2]=jJ(p,172,v)|0;Y=c[t>>2]|0;if((Y|0)!=0){break a}Y=PJ(u,x+(h*12|0)|0)|0;c[t>>2]=Y;if((Y|0)!=0){s=79;break b}Y=MK(u,12)|0;c[t>>2]=Y;if((Y|0)!=0){s=79;break b}v=w&65535;Y=((SK(u)|0)&65535)<<v;c[c[l>>2]>>2]=Y;v=((SK(u)|0)&65535)<<v;c[(c[l>>2]|0)+164>>2]=v;v=u+32|0;c[v>>2]=(c[v>>2]|0)+8;PK(u);u=_T(c[l>>2]|0,u)|0;c[t>>2]=u;v=g}else{u=2;v=g}}while(0);v=c[v>>2]|0;if((v|0)==0){c[t>>2]=3;Y=3;break a}if((v|0)>(h|0)){if((u|0)==0){break}else{s=79;break}}else{c[t>>2]=6;Y=6;break a}}else{s=79}}while(0);do{if((s|0)==79){u=c[n>>2]|0;w=c[l>>2]|0;if((w|0)==0){break}v=w+160|0;if((c[v>>2]|0)!=0){NK(c[m>>2]|0,v)}Y=w+168|0;lJ(u,c[Y>>2]|0);c[Y>>2]=0;lJ(u,w);c[l>>2]=0}}while(0);Y=c[t>>2]|0}}while(0);c[j>>2]=Y;t=(h|0)<0;if((Y|0)==0&t){Y=0;i=k;return Y|0}do{if((Y|0)==2){u=jJ(p,172,o)|0;c[l>>2]=u;v=c[j>>2]|0;if((v|0)!=0){Y=v;i=k;return Y|0}c[g>>2]=1;c[u>>2]=0;c[u+164>>2]=c[f+4>>2];Y=_T(u,f)|0;c[j>>2]=Y;if((Y|0)!=0){break}if((h|0)>0){c[j>>2]=6;Y=6;break}if(t){g=0}else{s=91;break}i=k;return g|0}else if((Y|0)==0){s=91}}while(0);do{if((s|0)==91){s=c[l>>2]|0;c[g+4>>2]=h;h=g+8|0;c[h>>2]=18;f=s+100|0;c[h>>2]=(b[f>>1]|0)==(b[s+102>>1]|0)?22:18;if((a[s+86|0]|0)!=0){Y=g+12|0;c[Y>>2]=c[Y>>2]|1}if((e[s+90>>1]|0)>799){Y=g+12|0;c[Y>>2]=c[Y>>2]|2}h=oJ(p,16,0,1,0,o)|0;c[g+32>>2]=h;Y=c[j>>2]|0;if((Y|0)!=0){break}c[g+28>>2]=1;b[h+2>>1]=b[f>>1]|0;x=s+96|0;b[h>>1]=(b[s+84>>1]|0)+(b[x>>1]|0)<<16>>16;u=e[s+74>>1]<<6;t=h+4|0;c[t>>2]=u;f=b[s+78>>1]|0;v=b[s+76>>1]|0;w=v<<16>>16!=0?v&65535:72;v=h+12|0;Y=(_I(u,w,72)|0)+32&-64;c[v>>2]=Y;u=e[x>>1]<<6;if((Y|0)>(u|0)){c[v>>2]=u;Y=_I(u,72,w)|0;c[t>>2]=Y;t=Y}else{t=c[t>>2]|0}c[h+8>>2]=(_I(t,f<<16>>16!=0?f&65535:72,72)|0)+32&-64;h=r+4|0;Y=h;c[Y>>2]=0;c[Y+4>>2]=0;c[q>>2]=g;if((a[s+92|0]|0)==77){c[h>>2]=1634889070;b[r+8>>1]=1}Y=eK(282224,0,r,0)|0;c[j>>2]=Y;if((Y|0)!=0){break}if((c[g+36>>2]|0)!=0){c[g+92>>2]=c[c[g+40>>2]>>2]}c[g+16>>2]=(d[s+105|0]|0)+2-(d[s+104|0]|0);q=s+116|0;r=c[q>>2]|0;h=c[s+8>>2]|0;if(r>>>0>=h>>>0){c[j>>2]=3;Y=3;break}h=h-r|0;f=jJ(p,h+1|0,o)|0;r=s+168|0;c[r>>2]=f;Y=c[j>>2]|0;if((Y|0)!=0){break}$W(f|0,(c[s+160>>2]|0)+(c[q>>2]|0)|0,h|0)|0;a[(c[r>>2]|0)+h|0]=0;Y=c[r>>2]|0;o=oJ(p,1,h,(ZW(Y|0)|0)+1|0,Y,o)|0;c[r>>2]=o;Y=c[j>>2]|0;if((Y|0)!=0){break}c[g+20>>2]=o;j=g+24|0;c[j>>2]=282184;Y=c[g+12>>2]|0;g=(Y&1|0)!=0;if((Y&2|0)==0){if(!g){Y=0;i=k;return Y|0}c[j>>2]=282216;Y=0;i=k;return Y|0}if(g){c[j>>2]=282192;Y=0;i=k;return Y|0}else{c[j>>2]=282208;Y=0;i=k;return Y|0}}}while(0);if((g|0)==0){i=k;return Y|0}n=c[n>>2]|0;o=c[m>>2]|0;p=c[l>>2]|0;if((p|0)!=0){m=p+160|0;if((c[m>>2]|0)!=0){NK(o,m)}Y=p+168|0;lJ(n,c[Y>>2]|0);c[Y>>2]=0;lJ(n,p);c[l>>2]=0}Y=g+32|0;lJ(n,c[Y>>2]|0);c[Y>>2]=0;c[g+28>>2]=0;Y=c[j>>2]|0;i=k;return Y|0}function WT(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;if((a|0)==0){i=b;return}d=c[a+100>>2]|0;g=c[a+104>>2]|0;f=a+132|0;e=c[f>>2]|0;if((e|0)!=0){h=e+160|0;if((c[h>>2]|0)!=0){NK(g,h)}h=e+168|0;lJ(d,c[h>>2]|0);c[h>>2]=0;lJ(d,e);c[f>>2]=0}h=a+32|0;lJ(d,c[h>>2]|0);c[h>>2]=0;c[a+28>>2]=0;i=b;return}function XT(f,g,h,j){f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;j=i;k=i;i=i+8|0;n=k;l=c[g>>2]|0;c[k>>2]=0;if((l|0)==0){c[k>>2]=6;t=6;i=j;return t|0}g=c[l+132>>2]|0;do{if((g|0)!=0){if((c[l+16>>2]|0)>>>0<=h>>>0){break}if((h|0)==0){h=d[g+106|0]|0}else{h=h+ -1|0}o=(b[g+4>>1]|0)==768;m=g+160|0;p=c[m>>2]|0;r=(da(o?6:4,h)|0)+(o?148:118)|0;l=(d[p+(r|1)|0]<<8&65535|d[p+r|0])<<16>>16;h=f+80|0;c[h>>2]=l;q=p+(r+2)|0;if(o){o=d[p+(r+4)|0]<<16|d[p+(r+5)|0]<<24|d[p+(r+3)|0]<<8|d[q]}else{o=(d[p+(r+3)|0]<<8&65535|d[q])&65535}r=g+8|0;if(o>>>0>=(c[r>>2]|0)>>>0){c[k>>2]=3;t=3;i=j;return t|0}p=c[m>>2]|0;s=c[(c[f+4>>2]|0)+100>>2]|0;q=l+7>>3;l=f+84|0;c[l>>2]=q;t=e[g+96>>1]|0;m=f+76|0;c[m>>2]=t;a[f+94|0]=1;u=(da(q,t)|0)+o|0;if(u>>>0>=(c[r>>2]|0)>>>0){c[k>>2]=3;u=3;i=j;return u|0}n=oJ(s,t,0,q,0,n)|0;c[f+88>>2]=n;r=c[k>>2]|0;if((r|0)!=0){u=r;i=j;return u|0}a:do{if((q|0)>0){p=p+o|0;while(1){u=c[m>>2]|0;o=p+u|0;if((u|0)>0){r=p;p=n;while(1){a[p]=a[r]|0;r=r+1|0;if(r>>>0<o>>>0){p=p+(c[l>>2]|0)|0}else{p=r;break}}}q=q+ -1|0;if((q|0)<=0){break a}n=n+1|0}}}while(0);c[(c[f+156>>2]|0)+4>>2]=1;c[f+100>>2]=0;s=e[g+80>>1]|0;c[f+104>>2]=s;c[f+72>>2]=1651078259;r=c[h>>2]<<6;t=f+24|0;c[t>>2]=r;u=c[m>>2]<<6;c[f+28>>2]=u;c[f+40>>2]=r;c[f+32>>2]=0;c[f+36>>2]=s<<6;XJ(t,u);u=c[k>>2]|0;i=j;return u|0}}while(0);c[k>>2]=6;u=6;i=j;return u|0}function YT(a,b){a=a|0;b=b|0;var d=0,f=0,g=0,h=0,j=0;g=i;d=c[a>>2]|0;f=c[d+132>>2]|0;h=c[b+16>>2]|0;j=c[b+8>>2]|0;if((h|0)!=0){j=((da(j,h)|0)+36|0)/72|0}h=j+32>>6;b=c[b>>2]|0;if((b|0)==0){b=(c[(c[d+32>>2]|0)+12>>2]|0)+32>>6}else if((b|0)==1){b=e[f+96>>1]|0}else{j=7;i=g;return j|0}b=(h|0)==(b|0);if(!b){j=b?0:23;i=g;return j|0}YJ(d,0);j=f+80|0;c[a+24>>2]=(e[j>>1]|0)<<6;c[a+28>>2]=(e[j>>1]|0)-(e[f+96>>1]|0)<<6;c[a+36>>2]=(e[f+102>>1]|0)<<6;j=0;i=g;return j|0}function ZT(a,b){a=a|0;b=b|0;var d=0,f=0;b=i;f=c[a>>2]|0;d=c[f+132>>2]|0;YJ(f,0);f=d+80|0;c[a+24>>2]=(e[f>>1]|0)<<6;c[a+28>>2]=(e[f>>1]|0)-(e[d+96>>1]|0)<<6;c[a+36>>2]=(e[d+102>>1]|0)<<6;i=b;return 0}function _T(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=i;f=a+4|0;g=PJ(d,c[a>>2]|0)|0;do{if((g|0)==0){g=ZKzKurn z|0}switch(a[j]|0){case 77:case 109:{c[b+28>>2]=16;z=g;z=c[z>>2]|0;i=h;return z|0};case 80:case 112:{c[b+28>>2]=8;z=g;z=c[z>>2]|0;i=h;return z|0};case 67:case 99:{c[b+28>>2]=32;z=g;z=c[z>>2]|0;i=h;return z|0};default:{z=g;z=c[z>>2]|0;i=h;return z|0}}return 0}function $U(f,g,h,j,k){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;h=i;n=i;i=i+8|0;p=n;l=i;i=i+8|0;q=l;c[l>>2]=0;r=k+32|0;m=c[r>>2]|0;j=c[m+16520>>2]|0;a:do{if((iX(f|0,283840,7)|0)==0){q=f+7|0;if((a[q]|0)==0){o=g+ -7|0;g=q}else{o=g+ -8|0;g=f+8|0}c[n>>2]=0;q=m+88|0;u=c[q>>2]|0;f=o+1|0;v=m+84|0;m=oJ(j,1,u,u+f|0,c[v>>2]|0,p)|0;c[v>>2]=m;p=c[n>>2]|0;if((p|0)==0){p=c[q>>2]|0;$W(m+p|0,g|0,o|0)|0;a[m+(p+o)|0]=10;c[q>>2]=(c[q>>2]|0)+f;p=c[n>>2]|0}c[l>>2]=p;o=178}else{s=c[k>>2]|0;b:do{if((s&32|0)==0){if((iX(f|0,285248,5)|0)!=0){c[l>>2]=180;p=180;m=k;break a}n=k+8232|0;p=YU(n,285208,f,g)|0;c[l>>2]=p;if((p|0)!=0){m=k;break a}f=c[(c[n>>2]|0)+4>>2]|0;c:do{if((f|0)==0){o=17}else{g=a[f]|0;p=285544;do{if(g<<24>>24==48){v=a[f+1|0]|0;if(!(v<<24>>24==88|v<<24>>24==120)){g=48;n=10;p=285544;break}f=f+2|0;g=a[f]|0;n=16;p=285512}else if(g<<24>>24==0){o=17;break c}else{n=10}}while(0);g=g<<24>>24;if((d[p+(g>>3)|0]&1<<(g&7)|0)==0){o=17;break}else{r=f;f=0}do{v=da(f,n)|0;f=(d[285344+g|0]|0)+v|0;r=r+1|0;g=a[r]|0;}while((1<<(g&7)&d[p+(g>>3)|0]|0)!=0);n=m+48|0;c[n>>2]=f;p=k+4|0;c[p>>2]=f;if((f|0)==0){o=19}}}while(0);if((o|0)==17){n=m+48|0;c[n>>2]=0;p=k+4|0;c[p>>2]=0;o=19}if((o|0)==19){c[n>>2]=64;f=c[p>>2]|0}if(f>>>0>1114111){c[l>>2]=6;p=6;m=k;break a}c[m+56>>2]=oJ(j,36,0,c[n>>2]|0,0,q)|0;p=c[l>>2]|0;if((p|0)!=0){m=k;break a}c[k>>2]=c[k>>2]|32}else{if((iX(f|0,285296,7)|0)==0){pb(c[m+56>>2]|0,c[m+52>>2]|0,36,202);c[k>>2]=c[k>>2]&-2;break}if((iX(f|0,285304,7)|0)==0){c[k+28>>2]=0;c[k>>2]=s&-4033;break}n=(s&64|0)==0;do{if(!n){if((c[k+28>>2]|0)!=-1){break}if((c[(c[k+36>>2]|0)+4>>2]|0)==0){break b}}}while(0);if((iX(f|0,285312,9)|0)==0){m=k+24|0;lJ(j,c[m>>2]|0);c[m>>2]=0;n=k+8232|0;p=YU(n,285208,f,g)|0;c[l>>2]=p;if((p|0)!=0){m=k;break a}p=k+8240|0;f=c[p>>2]|0;do{if((f|0)!=0){if(f>>>0<2){c[p>>2]=0;break}f=0;g=1;while(1){r=c[n>>2]|0;c[r+(f<<2)>>2]=c[r+(g<<2)>>2];g=g+1|0;r=c[p>>2]|0;if(g>>>0<r>>>0){f=f+1|0}else{break}}u=r+ -1|0;c[p>>2]=u;if((u|0)==0){break}f=c[c[n>>2]>>2]|0;r=f;g=1;t=0;while(1){s=a[r]|0;if(s<<24>>24!=0){u=t;while(1){r=r+1|0;t=u+1|0;a[f+u|0]=s;s=a[r]|0;if(s<<24>>24==0){break}else{u=t}}u=c[p>>2]|0}if(g>>>0<u>>>0){a[f+t|0]=32;u=c[p>>2]|0;t=t+1|0}if(g>>>0>=u>>>0){break}r=c[(c[n>>2]|0)+(g<<2)>>2]|0;g=g+1|0}if((f|0)==285600){f=285600}else{a[f+t|0]=0;if((f|0)==0){break}}n=t+1|0;q=oJ(j,1,0,n,0,q)|0;c[m>>2]=q;p=c[l>>2]|0;if((p|0)!=0){m=k;break a}$W(q|0,f|0,n|0)|0;c[k>>2]=c[k>>2]|64;break b}}while(0);c[l>>2]=3;p=3;m=k;break a}if((iX(f|0,285328,8)|0)==0){if(n){c[l>>2]=181;p=181;m=k;break a}n=k+8232|0;p=YU(n,285208,f,g)|0;c[l>>2]=p;if((p|0)!=0){m=k;break a}p=c[(c[n>>2]|0)+4>>2]|0;do{if((p|0)==0){o=63}else{n=a[p]|0;if(n<<24>>24==0){o=63;break}n=n<<24>>24==45;g=n?p+1|0:p;r=a[g]|0;f=285544;do{if(r<<24>>24==48){v=a[g+1|0]|0;if(!(v<<24>>24==88|v<<24>>24==120)){r=48;p=10;f=285544;break}g=g+2|0;r=a[g]|0;p=16;f=285512}else{p=10}}while(0);s=r<<24>>24;if((d[f+(s>>3)|0]&1<<(s&7)|0)==0){r=0}else{r=0;while(1){r=da(r,p)|0;r=(d[285344+s|0]|0)+r|0;g=g+1|0;s=a[g]|0;if((1<<(s&7)&d[f+(s>>3)|0]|0)==0){break}else{}}}p=n?0-r|0:r;n=k+28|0;c[n>>2]=p;if(p>>>0<=65535){break}c[l>>2]=3;p=3;m=k;break a}}while(0);if((o|0)==63){n=k+28|0;c[n>>2]=0;p=0}f=k+40+(p>>5<<2)|0;g=c[f>>2]|0;p=1<<(p&31);if((p&g|0)==0){c[f>>2]=p|g}else{c[n>>2]=-1;b[m+16516>>1]=1}if((c[n>>2]|0)>-1){p=m+52|0;g=c[p>>2]|0;f=m+48|0;if((g|0)==(c[f>>2]|0)){m=m+56|0;q=oJ(j,36,g,g+64|0,c[m>>2]|0,q)|0;c[m>>2]=q;m=c[l>>2]|0;if((m|0)!=0){p=m;m=k;break a}c[f>>2]=(c[f>>2]|0)+64;g=c[p>>2]|0}else{q=c[m+56>>2]|0}c[p>>2]=g+1;v=k+24|0;c[q+(g*36|0)>>2]=c[v>>2];c[q+(g*36|0)+4>>2]=c[n>>2];c[v>>2]=0}else{if((c[(c[k+36>>2]|0)+4>>2]|0)==0){v=k+24|0;lJ(j,c[v>>2]|0);c[v>>2]=0}else{n=m+64|0;f=c[n>>2]|0;p=m+60|0;if((f|0)==(c[p>>2]|0)){m=m+68|0;q=oJ(j,36,f,f+4|0,c[m>>2]|0,q)|0;c[m>>2]=q;m=c[l>>2]|0;if((m|0)!=0){p=m;m=k;break a}c[p>>2]=(c[p>>2]|0)+4;f=c[n>>2]|0}else{q=c[m+68>>2]|0}c[q+(f*36|0)>>2]=c[k+24>>2];v=c[n>>2]|0;c[n>>2]=v+1;c[q+(f*36|0)+4>>2]=v}c[k+24>>2]=0}c[k>>2]=c[k>>2]&1073741695|128;break}p=k+28|0;if((c[p>>2]|0)==-1){n=(c[m+68>>2]|0)+(((c[m+64>>2]|0)+ -1|0)*36|0)|0}else{n=(c[m+56>>2]|0)+(((c[m+52>>2]|0)+ -1|0)*36|0)|0}if((s&2048|0)!=0){p=k+8|0;g=c[p>>2]|0;if(g>>>0>=(e[n+14>>1]|0)>>>0){if((s|0)<0){break}c[k>>2]=s|-2147483648;b[m+16516>>1]=1;break}s=c[n+28>>2]|0;q=s<<1;g=(c[n+24>>2]|0)+(da(s,g)|0)|0;s=0;d:while(1){while(1){if(s>>>0>=q>>>0){break d}a[g]=(a[g]<<4&255)+(a[285344+(a[f+s|0]|0)|0]|0)<<24>>24;t=s+1|0;if(t>>>0>=q>>>0|(s&1|0)==0){s=t}else{break}}s=g+1|0;a[s]=0;g=s;s=t}n=b[n+12>>1]|0;if(n<<16>>16!=0){v=a[285472+((da(e[(c[r>>2]|0)+16518>>1]|0,n&65535)|0)&7)|0]|0;a[g]=a[g]&v}n=a[f+q|0]|0;if(n<<24>>24==48){o=100}else{if((a[285344+(n<<24>>24)|0]|0)!=0){o=100}}do{if((o|0)==100){n=c[k>>2]|0;if((n&1073741824|0)!=0){break}c[k>>2]=n|1073741824;b[m+16516>>1]=1}}while(0);c[p>>2]=(c[p>>2]|0)+1;break}if((iX(f|0,285480,6)|0)==0){if((s&128|0)==0){c[l>>2]=182;p=182;m=k;break a}m=k+8232|0;p=YU(m,285208,f,g)|0;c[l>>2]=p;if((p|0)!=0){m=k;break a}p=c[(c[m>>2]|0)+4>>2]|0;e:do{if((p|0)==0){m=0}else{q=a[p]|0;o=285544;do{if(q<<24>>24==48){v=a[p+1|0]|0;if(!(v<<24>>24==88|v<<24>>24==120)){q=48;m=10;o=285544;break}p=p+2|0;q=a[p]|0;m=16;o=285512}else if(q<<24>>24==0){m=0;break e}else{m=10}}while(0);q=q<<24>>24;if((d[o+(q>>3)|0]&1<<(q&7)|0)==0){m=0;break}else{f=0}do{v=da(f,m)|0;f=(d[285344+q|0]|0)+v|0;p=p+1|0;q=a[p]|0;}while((1<<(q&7)&d[o+(q>>3)|0]|0)!=0);m=f&65535}}while(0);b[n+8>>1]=m;c[k>>2]=c[k>>2]|256;break}if((iX(f|0,285488,6)|0)==0){q=k+8232|0;p=YU(q,285208,f,g)|0;c[l>>2]=p;if((p|0)!=0){m=k;break a}f=c[(c[q>>2]|0)+4>>2]|0;f:do{if((f|0)==0){g=0}else{q=a[f]|0;p=285544;do{if(q<<24>>24==0){g=0;break f}else if(q<<24>>24==48){v=a[f+1|0]|0;if(!(v<<24>>24==88|v<<24>>24==120)){q=48;o=10;p=285544;break}f=f+2|0;q=a[f]|0;o=16;p=285512}else{o=10}}while(0);q=q<<24>>24;if((d[p+(q>>3)|0]&1<<(q&7)|0)==0){g=0;break}else{g=0}while(1){g=da(g,o)|0;g=(d[285344+q|0]|0)+g|0;f=f+1|0;q=a[f]|0;if((1<<(q&7)&d[p+(q>>3)|0]|0)==0){break}else{}}}}while(0);b[n+10>>1]=g;o=c[k>>2]|0;if((o&256|0)==0){b[n+8>>1]=_I(g&65535,72e3,da(c[m+20>>2]|0,c[m+16>>2]|0)|0)|0;o=c[k>>2]|0}c[k>>2]=o|512;break}if((iX(f|0,285496,3)|0)!=0){if((iX(f|0,285504,6)|0)!=0){c[l>>2]=3;p=3;m=k;break a}if((s&1024|0)==0){c[l>>2]=183;p=183;m=k;break a}m=((da(e[m+16518>>1]|0,e[n+12>>1]|0)|0)+7|0)>>>3;c[n+28>>2]=m;m=da(m,e[n+14>>1]|0)|0;if(m>>>0>65535){c[l>>2]=184;p=184;m=k;break a}b[n+32>>1]=m;c[n+24>>2]=oJ(j,1,0,m&65535,0,q)|0;p=c[l>>2]|0;if((p|0)!=0){m=k;break a}c[k+8>>2]=0;c[k>>2]=c[k>>2]|2048;break}q=k+8232|0;f=YU(q,285208,f,g)|0;c[l>>2]=f;if((f|0)!=0){p=f;m=k;break a}f=c[(c[q>>2]|0)+4>>2]|0;do{if((f|0)==0){f=0}else{o=a[f]|0;if(o<<24>>24==0){f=0;break}o=o<<24>>24==45;s=o?f+1|0:f;r=a[s]|0;g=285544;do{if(r<<24>>24==48){v=a[s+1|0]|0;if(!(v<<24>>24==88|v<<24>>24==120)){r=48;f=10;g=285544;break}s=s+2|0;r=a[s]|0;f=16;g=285512}else{f=10}}while(0);r=r<<24>>24;if((d[g+(r>>3)|0]&1<<(r&7)|0)==0){s=0}else{t=s;s=0;while(1){s=da(s,f)|0;t=t+1|0;s=(d[285344+r|0]|0)+s<<16>>16;r=a[t]|0;if((1<<(r&7)&d[g+(r>>3)|0]|0)==0){break}else{}}}f=(o?0-s|0:s)&65535}}while(0);o=n+12|0;b[o>>1]=f;g=c[(c[q>>2]|0)+8>>2]|0;do{if((g|0)==0){f=0}else{f=a[g]|0;if(f<<24>>24==0){f=0;break}f=f<<24>>24==45;s=f?g+1|0:g;t=a[s]|0;r=285544;do{if(t<<24>>24==48){v=a[s+1|0]|0;if(!(v<<24>>24==88|v<<24>>24==120)){t=48;g=10;r=285544;break}s=s+2|0;t=a[s]|0;g=16;r=285512}else{g=10}}while(0);t=t<<24>>24;if((d[r+(t>>3)|0]&1<<(t&7)|0)==0){s=0}else{u=s;s=0;while(1){s=da(s,g)|0;u=u+1|0;s=(d[285344+t|0]|0)+s<<16>>16;t=a[u]|0;if((1<<(t&7)&d[r+(t>>3)|0]|0)==0){break}else{}}}f=(f?0-s|0:s)&65535}}while(0);b[n+14>>1]=f;r=c[(c[q>>2]|0)+12>>2]|0;do{if((r|0)==0){r=0}else{g=a[r]|0;if(g<<24>>24==0){r=0;break}g=g<<24>>24==45;u=g?r+1|0:r;t=a[u]|0;s=285544;do{if(t<<24>>24==48){v=a[u+1|0]|0;if(!(v<<24>>24==88|v<<24>>24==120)){t=48;r=10;s=285544;break}u=u+2|0;t=a[u]|0;r=16;s=285512}else{r=10}}while(0);v=t<<24>>24;if((d[s+(v>>3)|0]&1<<(v&7)|0)==0){t=0}else{t=0;while(1){t=da(t,r)|0;u=u+1|0;t=(d[285344+v|0]|0)+t<<16>>16;v=a[u]|0;if((1<<(v&7)&d[s+(v>>3)|0]|0)==0){break}else{}}}r=(g?0-t|0:t)&65535}}while(0);g=n+16|0;b[g>>1]=r;r=c[(c[q>>2]|0)+16>>2]|0;do{if((r|0)==0){r=0}else{q=a[r]|0;if(q<<24>>24==0){r=0;break}q=q<<24>>24==45;t=q?r+1|0:r;u=a[t]|0;s=285544;do{if(u<<24>>24==48){v=a[t+1|0]|0;if(!(v<<24>>24==88|v<<24>>24==120)){u=48;r=10;s=285544;break}t=t+2|0;u=a[t]|0;r=16;s=285512}else{r=10}}while(0);v=u<<24>>24;if((d[s+(v>>3)|0]&1<<(v&7)|0)==0){u=0}else{u=0;while(1){u=da(u,r)|0;t=t+1|0;u=(d[285344+v|0]|0)+u<<16>>16;v=a[t]|0;if((1<<(v&7)&d[s+(v>>3)|0]|0)==0){break}else{}}}r=(q?0-u|0:u)&65535}}while(0);b[n+18>>1]=r;q=f+r<<16>>16;b[n+20>>1]=q;f=n+22|0;b[f>>1]=0-r<<16>>16;r=k+18|0;s=b[r>>1]|0;b[r>>1]=q<<16>>16>s<<16>>16?q:s;q=b[f>>1]|0;f=k+20|0;r=b[f>>1]|0;b[f>>1]=q<<16>>16>r<<16>>16?q:r;r=(b[g>>1]|0)+(b[o>>1]|0)<<16>>16;b[k+22>>1]=r;f=k+16|0;q=b[f>>1]|0;b[f>>1]=r<<16>>16>q<<16>>16?r:q;f=b[g>>1]|0;q=k+12|0;r=b[q>>1]|0;b[q>>1]=f<<16>>16<r<<16>>16?f:r;f=b[g>>1]|0;q=k+14|0;g=b[q>>1]|0;b[q>>1]=f<<16>>16>g<<16>>16?f:g;if((c[k>>2]&512|0)==0){b[n+10>>1]=b[o>>1]|0}do{if((c[c[k+36>>2]>>2]|0)!=0){q=_I(e[n+10>>1]|0,72e3,da(c[m+20>>2]|0,c[m+16>>2]|0)|0)|0;o=n+8|0;q=q&65535;if((b[o>>1]|0)==q<<16>>16){break}b[o>>1]=q;if((c[p>>2]|0)==-1){u=(c[m+64>>2]|0)+ -1|0;v=m+8324+(u>>>5<<2)|0;c[v>>2]=1<<(u&31)|c[v>>2]}else{u=c[n+4>>2]|0;v=m+132+(u>>5<<2)|0;c[v>>2]=1<<(u&31)|c[v>>2]}c[k>>2]=c[k>>2]|4096;b[m+16516>>1]=1}}while(0);c[k>>2]=c[k>>2]|1024}}while(0);p=c[l>>2]|0;o=178}}while(0);do{if((o|0)==178){if((p|0)==0){v=0;i=h;return v|0}else{m=k;break}}}while(0);if((c[m>>2]&64|0)==0){v=p;i=h;return v|0}v=k+24|0;lJ(j,c[v>>2]|0);c[v>>2]=0;v=c[l>>2]|0;i=h;return v|0}function aV(a,b){a=a|0;b=b|0;var d=0;d=i;a=c[a+4>>2]|0;b=c[b+4>>2]|0;if((a|0)<(b|0)){a=-1;i=d;return a|0}a=(a|0)>(b|0)|0;i=d;return a|0}function bV(a,b,d){a=a|0;b=b|0;d=d|0;c[b>>2]=c[a+132>>2];c[d>>2]=c[a+136>>2];i=i;return 0}function cV(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;h=c[b+140>>2]|0;if((h|0)==0){n=6;i=f;return n|0}if((c[h+72>>2]|0)==0|(d|0)==0){n=6;i=f;return n|0}b=a[d]|0;if(b<<24>>24==0){n=6;i=f;return n|0}m=c[h+128>>2]|0;j=c[m+12>>2]|0;n=b;l=d;k=0;do{l=l+1|0;k=(k*31|0)+(n<<24>>24)|0;n=a[l]|0;}while(n<<24>>24!=0);n=c[m+4>>2]|0;m=j+(((k>>>0)%(n>>>0)|0)<<2)|0;l=c[m>>2]|0;if((l|0)==0){n=6;i=f;return n|0}k=j+(n+ -1<<2)|0;while(1){n=c[l>>2]|0;if((a[n]|0)==b<<24>>24){if((Qc(n|0,d|0)|0)==0){break}}l=m+ -4|0;m=l>>>0<j>>>0?k:l;l=c[m>>2]|0;if((l|0)==0){e=6;g=17;break}}if((g|0)==17){i=f;return e|0}if((l|0)==0){n=6;i=f;return n|0}g=c[h+80>>2]|0;d=c[l+4>>2]|0;if((g+(d<<4)|0)==0){n=6;i=f;return n|0}b=c[g+(d<<4)+4>>2]|0;if((b|0)==3){c[e>>2]=3;c[e+4>>2]=c[g+(d<<4)+12>>2];n=0;i=f;return n|0}else if((b|0)==1){c[e>>2]=1;c[e+4>>2]=c[g+(d<<4)+12>>2];n=0;i=f;return n|0}else if((b|0)==2){c[e>>2]=2;c[e+4>>2]=c[g+(d<<4)+12>>2];n=0;i=f;return n|0}else{n=6;i=f;return n|0}return 0}function dV(a){a=a|0;i=i;return 0}function eV(a){a=a|0;i=i;return}function fV(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=uJ(290784,b)|0;if((e|0)!=0){a=e;i=d;return a|0}if((a|0)==0){a=0;i=d;return a|0}e=mK(c[a+4>>2]|0,287128)|0;if((e|0)==0){a=0;i=d;return a|0}a=Bd[c[(c[e>>2]|0)+32>>2]&255](e,b)|0;i=d;return a|0}function gV(f,g,h,j,k){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,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;n=i;q=i;i=i+8|0;v=i;i=i+8|0;r=i;i=i+8|0;x=i;i=i+8|0;y=x;A=i;i=i+8|0;B=A;w=i;i=i+8|0;z=w;I=i;i=i+8|0;H=I;M=i;i=i+8|0;L=M;J=i;i=i+8|0;K=J;P=i;i=i+8|0;Q=P;N=i;i=i+8|0;O=N;U=i;i=i+8|0;W=U;R=i;i=i+8|0;X=R;_=i;i=i+8|0;aa=_;E=i;i=i+8|0;da=E;D=i;i=i+32|0;F=D;Y=i;i=i+32|0;Z=Y;m=i;i=i+8|0;p=m;o=i;i=i+16|0;l=o;t=g+96|0;ca=c[(c[t>>2]|0)+4>>2]|0;s=nK(ca,287128)|0;a:do{if((s|0)==0){u=304}else{C=oK(c[t>>2]|0,287136)|0;G=nK(ca,287160)|0;ha=PJ(f,0)|0;c[m>>2]=ha;if((ha|0)!=0){break}ha=Cd[c[s+4>>2]&63](f,g,h,j,k)|0;c[m>>2]=ha;if((ha|0)==0){if((c[g+148>>2]|0)!=1330926671){u=304;break}if((h|0)<0){ha=0;i=n;return ha|0}if((h|0)>0){c[m>>2]=6;break}t=g+508|0;ha=pd[c[t>>2]&63](g,1751474532,f,0)|0;c[m>>2]=ha;if((ha|0)==0){ha=Cd[c[s+8>>2]&63](f,g,0,j,k)|0;c[m>>2]=ha;if((ha|0)==0){k=0}else{break}}else{ha=Bd[c[s+40>>2]&255](g,f)|0;c[m>>2]=ha;if((ha|0)==0){k=1}else{break}}ha=pd[c[t>>2]&63](g,1128678944,f,0)|0;c[m>>2]=ha;if((ha|0)==0){t=1}else{break}}else{ha=PJ(f,0)|0;c[m>>2]=ha;if((ha|0)!=0){break}c[m>>2]=0;k=1;t=0}s=c[g+100>>2]|0;p=jJ(s,2072,p)|0;if((c[m>>2]|0)!=0){break}c[g+692>>2]=p;S=f+28|0;fa=c[S>>2]|0;bX(p|0,0,2072)|0;bX(D|0,0,32)|0;c[p>>2]=f;c[p+4>>2]=fa;V=p+1324|0;T=IK(f)|0;ha=ZKzK==0){break a}}}while(0);if(j>>>0<(c[291304>>2]|0)>>>0){tc()}c[j+24>>2]=m;f=c[a+(k+16)>>2]|0;do{if((f|0)!=0){if(f>>>0<(c[291304>>2]|0)>>>0){tc()}else{c[j+16>>2]=f;c[f+24>>2]=j;break}}}while(0);f=c[a+(k+20)>>2]|0;if((f|0)==0){break}if(f>>>0<(c[291304>>2]|0)>>>0){tc()}else{c[j+20>>2]=f;c[f+24>>2]=j;break}}}while(0);if(g>>>0<16){c[e>>2]=h|c[e>>2]&1|2;q=a+(h|4)|0;c[q>>2]=c[q>>2]|1;q=a;i=d;return q|0}else{c[e>>2]=c[e>>2]&1|b|2;c[a+(b+4)>>2]=g|3;q=a+(h|4)|0;c[q>>2]=c[q>>2]|1;EW(a+b|0,g);q=a;i=d;return q|0}return 0}function EW(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;d=i;h=a+b|0;l=c[a+4>>2]|0;a:do{if((l&1|0)==0){p=c[a>>2]|0;if((l&3|0)==0){i=d;return}l=a+(0-p)|0;m=p+b|0;q=c[291304>>2]|0;if(l>>>0<q>>>0){tc()}if((l|0)==(c[291308>>2]|0)){e=a+(b+4)|0;if((c[e>>2]&3|0)!=3){e=l;n=m;break}c[291296>>2]=m;c[e>>2]=c[e>>2]&-2;c[a+(4-p)>>2]=m|1;c[h>>2]=m;i=d;return}s=p>>>3;if(p>>>0<256){e=c[a+(8-p)>>2]|0;n=c[a+(12-p)>>2]|0;o=291328+(s<<1<<2)|0;do{if((e|0)!=(o|0)){if(e>>>0<q>>>0){tc()}if((c[e+12>>2]|0)==(l|0)){break}tc()}}while(0);if((n|0)==(e|0)){c[72822]=c[72822]&~(1<<s);e=l;n=m;break}do{if((n|0)==(o|0)){r=n+8|0}else{if(n>>>0<q>>>0){tc()}o=n+8|0;if((c[o>>2]|0)==(l|0)){r=o;break}tc()}}while(0);c[e+12>>2]=n;c[r>>2]=e;e=l;n=m;break}r=c[a+(24-p)>>2]|0;t=c[a+(12-p)>>2]|0;do{if((t|0)==(l|0)){u=16-p|0;s=a+(u+4)|0;t=c[s>>2]|0;if((t|0)==0){s=a+u|0;t=c[s>>2]|0;if((t|0)==0){o=0;break}}while(1){u=t+20|0;v=c[u>>2]|0;if((v|0)!=0){t=v;s=u;continue}u=t+16|0;v=c[u>>2]|0;if((v|0)==0){break}else{s=u;t=v}}if(s>>>0<q>>>0){tc()}else{c[s>>2]=0;o=t;break}}else{s=c[a+(8-p)>>2]|0;if(s>>>0<q>>>0){tc()}u=s+12|0;if((c[u>>2]|0)!=(l|0)){tc()}q=t+8|0;if((c[q>>2]|0)==(l|0)){c[u>>2]=t;c[q>>2]=s;o=t;break}else{tc()}}}while(0);if((r|0)==0){e=l;n=m;break}q=a+(28-p)|0;s=291592+(c[q>>2]<<2)|0;do{if((l|0)==(c[s>>2]|0)){c[s>>2]=o;if((o|0)!=0){break}c[291292>>2]=c[291292>>2]&~(1<<c[q>>2]);e=l;n=m;break a}else{if(r>>>0<(c[291304>>2]|0)>>>0){tc()}q=r+16|0;if((c[q>>2]|0)==(l|0)){c[q>>2]=o}else{c[r+20>>2]=o}if((o|0)==0){e=l;n=m;break a}}}while(0);if(o>>>0<(c[291304>>2]|0)>>>0){tc()}c[o+24>>2]=r;p=16-p|0;q=c[a+p>>2]|0;do{if((q|0)!=0){if(q>>>0<(c[291304>>2]|0)>>>0){tc()}else{c[o+16>>2]=q;c[q+24>>2]=o;break}}}while(0);p=c[a+(p+4)>>2]|0;if((p|0)==0){e=l;n=m;break}if(p>>>0<(c[291304>>2]|0)>>>0){tc()}else{c[o+20>>2]=p;c[p+24>>2]=o;e=l;n=m;break}}else{e=a;n=b}}while(0);l=c[291304>>2]|0;if(h>>>0<l>>>0){tc()}m=a+(b+4)|0;o=c[m>>2]|0;do{if((o&2|0)==0){if((h|0)==(c[291312>>2]|0)){v=(c[291300>>2]|0)+n|0;c[291300>>2]=v;c[291312>>2]=e;c[e+4>>2]=v|1;if((e|0)!=(c[291308>>2]|0)){i=d;return}c[291308>>2]=0;c[291296>>2]=0;i=d;return}if((h|0)==(c[291308>>2]|0)){v=(c[291296>>2]|0)+n|0;c[291296>>2]=v;c[291308>>2]=e;c[e+4>>2]=v|1;c[e+v>>2]=v;i=d;return}n=(o&-8)+n|0;m=o>>>3;b:do{if(o>>>0<256){j=c[a+(b+8)>>2]|0;a=c[a+(b+12)>>2]|0;b=291328+(m<<1<<2)|0;do{if((j|0)!=(b|0)){if(j>>>0<l>>>0){tc()}if((c[j+12>>2]|0)==(h|0)){break}tc()}}while(0);if((a|0)==(j|0)){c[72822]=c[72822]&~(1<<m);break}do{if((a|0)==(b|0)){k=a+8|0}else{if(a>>>0<l>>>0){tc()}b=a+8|0;if((c[b>>2]|0)==(h|0)){k=b;break}tc()}}while(0);c[j+12>>2]=a;c[k>>2]=j}else{k=c[a+(b+24)>>2]|0;m=c[a+(b+12)>>2]|0;do{if((m|0)==(h|0)){o=a+(b+20)|0;m=c[o>>2]|0;if((m|0)==0){o=a+(b+16)|0;m=c[o>>2]|0;if((m|0)==0){j=0;break}}while(1){p=m+20|0;q=c[p>>2]|0;if((q|0)!=0){o=p;m=q;continue}p=m+16|0;q=c[p>>2]|0;if((q|0)==0){break}else{m=q;o=p}}if(o>>>0<l>>>0){tc()}else{c[o>>2]=0;j=m;break}}else{o=c[a+(b+8)>>2]|0;if(o>>>0<l>>>0){tc()}p=o+12|0;if((c[p>>2]|0)!=(h|0)){tc()}l=m+8|0;if((c[l>>2]|0)==(h|0)){c[p>>2]=m;c[l>>2]=o;j=m;break}else{tc()}}}while(0);if((k|0)==0){break}m=a+(b+28)|0;l=291592+(c[m>>2]<<2)|0;do{if((h|0)==(c[l>>2]|0)){c[l>>2]=j;if((j|0)!=0){break}c[291292>>2]=c[291292>>2]&~(1<<c[m>>2]);break b}else{if(k>>>0<(c[291304>>2]|0)>>>0){tc()}l=k+16|0;if((c[l>>2]|0)==(h|0)){c[l>>2]=j}else{c[k+20>>2]=j}if((j|0)==0){break b}}}while(0);if(j>>>0<(c[291304>>2]|0)>>>0){tc()}c[j+24>>2]=k;h=c[a+(b+16)>>2]|0;do{if((h|0)!=0){if(h>>>0<(c[291304>>2]|0)>>>0){tc()}else{c[j+16>>2]=h;c[h+24>>2]=j;break}}}while(0);h=c[a+(b+20)>>2]|0;if((h|0)==0){break}if(h>>>0<(c[291304>>2]|0)>>>0){tc()}else{c[j+20>>2]=h;c[h+24>>2]=j;break}}}while(0);c[e+4>>2]=n|1;c[e+n>>2]=n;if((e|0)!=(c[291308>>2]|0)){break}c[291296>>2]=n;i=d;return}else{c[m>>2]=o&-2;c[e+4>>2]=n|1;c[e+n>>2]=n}}while(0);a=n>>>3;if(n>>>0<256){b=a<<1;h=291328+(b<<2)|0;j=c[72822]|0;a=1<<a;do{if((j&a|0)==0){c[72822]=j|a;g=h;f=291328+(b+2<<2)|0}else{a=291328+(b+2<<2)|0;j=c[a>>2]|0;if(j>>>0>=(c[291304>>2]|0)>>>0){g=j;f=a;break}tc()}}while(0);c[f>>2]=e;c[g+12>>2]=e;c[e+8>>2]=g;c[e+12>>2]=h;i=d;return}f=n>>>8;do{if((f|0)==0){f=0}else{if(n>>>0>16777215){f=31;break}u=(f+1048320|0)>>>16&8;v=f<<u;t=(v+520192|0)>>>16&4;v=v<<t;f=(v+245760|0)>>>16&2;f=14-(t|u|f)+(v<<f>>>15)|0;f=n>>>(f+7|0)&1|f<<1}}while(0);g=291592+(f<<2)|0;c[e+28>>2]=f;c[e+20>>2]=0;c[e+16>>2]=0;j=c[291292>>2]|0;h=1<<f;if((j&h|0)==0){c[291292>>2]=j|h;c[g>>2]=e;c[e+24>>2]=g;c[e+12>>2]=e;c[e+8>>2]=e;i=d;return}h=c[g>>2]|0;if((f|0)==31){f=0}else{f=25-(f>>>1)|0}c:do{if((c[h+4>>2]&-8|0)!=(n|0)){f=n<<f;j=h;while(1){g=j+16+(f>>>31<<2)|0;h=c[g>>2]|0;if((h|0)==0){break}if((c[h+4>>2]&-8|0)==(n|0)){break c}else{f=f<<1;j=h}}if(g>>>0<(c[291304>>2]|0)>>>0){tc()}c[g>>2]=e;c[e+24>>2]=j;c[e+12>>2]=e;c[e+8>>2]=e;i=d;return}}while(0);f=h+8|0;j=c[f>>2]|0;g=c[291304>>2]|0;if(h>>>0<g>>>0){tc()}if(j>>>0<g>>>0){tc()}c[j+12>>2]=e;c[f>>2]=e;c[e+8>>2]=j;c[e+12>>2]=h;c[e+24>>2]=0;i=d;return}function FW(a){a=a|0;var b=0,d=0,e=0;b=i;a=(a|0)==0?1:a;while(1){d=AW(a)|0;if((d|0)!=0){a=6;break}e=291784;d=c[e>>2]|0;c[e>>2]=0+d;if((d|0)==0){a=5;break}Hd[d&1]()}if((a|0)==5){e=cc(4)|0;c[e>>2]=291800;uc(e|0,291848,327)}else if((a|0)==6){i=b;return d|0}return 0}function GW(a){a=a|0;var b=0;b=i;a=FW(a)|0;i=b;return a|0}function HW(a){a=a|0;var b=0;b=i;if((a|0)!=0){BW(a)}i=b;return}function IW(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function JW(a){a=a|0;var b=0;b=i;lb(a|0);HW(a);i=b;return}function KW(a){a=a|0;var b=0;b=i;lb(a|0);i=b;return}function LW(a){a=a|0;i=i;return 291816}
7343 var dd=[$X,bQ];var ed=[aY,LM,xW,wW];var fd=[bY,Te,Se,tg,sg,Gg,Fg,Jg,Ig,Pg,Og,Sg,hi,WF,Oi,Pi,hj,ij,tj,sj,kj,jj,vj,wj,rm,Fj,Ej,Hj,Ij,Ql,Nj,Mj,Pj,Qj,dm,Vj,Uj,Xj,Yj,km,ak,Pm,Rm,ik,hk,jk,ok,nk,pk,vk,uk,Bk,Fk,Ek,Gk,Kk,Jk,Mk,Lk,Vk,Uk,Xk,$k,Wk,sl,rl,ul,tl,Hl,Gl,Cm,yn,zn,ln,An,Gn,Fn,Xn,Wn,Yp,Xp,fq,eq,sq,rq,uq,jt,kt,lt,mt,sr,rr,nt,ot,pt,qt,Cr,Br,Kr,Jr,Or,Nr,Rr,Qr,Wr,Vr,_r,Zr,bs,as,fs,es,ks,js,us,ts,zs,ys,Cs,Bs,Fs,Es,Js,Is,Ms,Ls,Ps,Os,Ss,Rs,Ws,Vs,$s,_s,Hu,Gu,Iu,iv,hv,Sv,lv,kv,ov,Tv,Uv,qv,sv,rv,Vv,Wv,xv,wv,zv,Dv,Cv,Gv,Fv,Jv,Iv,Kv,Wx,Vx,ey,dy,oy,ny,Iy,Uy,az,hz,pz,wz,Cz,Kz,Jz,Uz,Tz,bA,aA,iA,hA,pA,oA,zA,yA,DA,CA,GA,FA,PA,OA,UA,TA,ZA,YA,cB,bB,jB,iB,TC,SC,YC,XC,_C,ZC,aD,$C,dD,cD,eD,gD,HD,GD,ID,KD,yE,xE,BE,AE,EE,DE,HE,GE,JE,IE,ME,LE,PE,OE,SE,RE,VE,UE,YE,XE,_E,ZE,xF,yF,wG,xG,vG,yG,MG,NG,QG,PG,$G,_G,rH,qH,wH,vH,DH,HH,LH,KH,OH,TH,SH,$H,_H,cI,sI,uI,vI,NI,MI,tL,xL,QL,VL,cM,kM,mM,vM,xM,zM,AM,BM,MM,SM,UM,XM,_M,dN,hN,tN,dO,jP,IP,SP,UP,cQ,dQ,kQ,IQ,aR,dR,fR,mS,pS,rS,tS,dT,gT,iT,kT,yT,BT,DT,FT,WT,tU,MU,RU,eV,hV,jV,lV,sV,wV,nW,qW,oW,pW,rW,KW,JW,rL,IL,KL,IN,DN,vN,mO,rO,yO,vO,UQ,YR,wU,cW,iW,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY];var gd=[cY,Ph,Bi,cY];var hd=[dY,wg,zh,NF,Tg,Ug,Vg,Xg,Yg,Zg,_g,$g,ah,bh,ii,ji,ki,li,ch,eh,fh,gh,hh,mi,ni,oi,ih,qi,ri,si,ti,ui,vi,wi,kh,mh,nh,oh,ph,qh,Ei,Fi,Hi,th,wh,xh,QF,SF,Ki,Ih,Lh,Nh,Kj,Sj,_j,nm,gk,$y,fz,oz,uz,Bz,Hz,Rz,_z,gA,nA,uA,vL,AL,HM,FS,GS,HS,IS,JS,KS,LS,MS,NS,OS,oT,pT,qT,JT,KT,LT,MT,gU,kU,oU,LL,GN,fW,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY];var id=[eY,UN,$P,eY];var jd=[fY,vg,yg,zg,Ag,Bg,Cg,Dg,Eg,Sh,Uh,Vh,Wh,Qh,Rh,Yh,Zh,_h,ai,bi,ci,di,Mi,XF,Mh,lj,Tl,Ul,Vl,Il,Kl,Ll,Yl,Zl,qm,sm,tm,um,vm,wm,Ml,Nl,Ol,Pl,Rl,Wl,_l,$l,am,bm,cm,em,fm,gm,hm,im,jm,lm,mm,Om,ck,dk,Qm,Sm,fk,om,pm,kk,xm,ym,qk,Hm,wk,yk,Ak,Im,Jm,Km,zm,Am,Nk,Lm,al,cl,Mm,vl,xl,Al,Nm,Bm,Dm,Em,wq,xq,et,gt,ht,it,Ou,Ku,Mu,Ju,Pu,xy,yy,gy,zy,ry,qy,Vy,dC,eC,fC,gC,cC,bz,pC,aC,bC,qC,iz,hC,iC,jC,kC,qz,rC,sC,xz,lC,mC,Dz,tC,uC,Lz,vC,Qz,wC,Vz,xC,yC,zC,cA,AC,BC,CC,jA,DC,EC,FC,qA,nC,oC,AA,EA,QA,VA,_A,dB,lB,AD,BD,CD,DD,ED,hD,iD,jD,aE,LD,ND,$E,aF,bF,cF,dF,eF,fF,gF,hF,iF,jF,kF,nF,oF,lF,mF,pF,qF,rF,sF,tF,uF,dI,eI,fI,gI,hI,iI,jI,kI,lI,mI,nI,oI,pI,qI,rI,lM,CM,QM,YM,LN,MN,NN,sN,TN,XN,YN,eO,CP,JQ,$Q,eR,gR,lS,qS,sS,bT,ZS,cT,hT,jT,wT,xT,CT,ET,RT,PT,sU,dV,iV,kV,GV,HV,IV,JV,XV,VV,LW,zt,At,nu,pu,VR,WR,XR,nR,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY];var kd=[gY,uh];var ld=[hY,OF,PF,hY];var md=[iY,rh];var nd=[jY,yi];var od=[kY,Hg];var pd=[lY,Th,Kg,vq,VI,WL,gM,nM,oM,wM,GM,WM,fO,gO,mP,xP,JP,ZP,yP,KQ,LQ,OQ,PQ,YQ,hR,iR,uS,vS,$S,WS,lT,rT,GT,ST,XT,SU,mV,nV,TV,PV,NL,qN,eK,UR,dW,hW,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY];var qd=[mY,sh];var rd=[nY,Xh];var sd=[oY,ug,zi,Ai,Ci,Oh,Di,oj,pj,mj,Xl,lk,rk,Ck,Hk,Sk,ol,Bl,wl,Fm,kD,OD,KG,LG,sH,UI,tK,$L,aM,hM,qM,rM,sM,tM,uM,FM,PM,RM,VM,bO,iO,nP,pP,qP,KP,MP,aQ,AP,eQ,gQ,iQ,lQ,mQ,vP,wP,NQ,XQ,iS,kS,dS,SS,TS,VS,tT,eU,iU,mU,qU,bV,cV,RV,sW,Ve,We,Ch,Bh,Eh,HN,uK,BR,wR,ER,FR,xR,yR,CR,DR,IR,JR,KR,LR,zS,eW,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY];var td=[pY,gi];var ud=[qY,Kh,zW,yW,kO,lO,pO,qO];var vd=[rY,Fh,Gh,rY];var wd=[sY,ft];var xd=[tY,fy,py,tY];var yd=[uY,Hh];var zd=[vY,Ah];var Ad=[wY,Dh];var Bd=[xY,xg,$h,ei,fi,Ji,Qi,gj,Sl,mk,sk,Dk,Ik,Tk,pl,Cl,Gm,Bn,Nu,lD,PD,wF,zG,tI,RI,SI,TI,sL,uL,wL,yL,BL,PL,RL,SL,TL,XL,YL,bM,dM,eM,iM,DM,NM,ZM,$M,aN,bN,cN,eN,fN,gN,iN,jN,VN,WN,SN,$N,cO,AO,BO,CO,DO,EO,FO,GO,HO,IO,JO,KO,LO,MO,NO,OO,PO,QO,RO,SO,TO,UO,VO,WO,XO,YO,ZO,_O,$O,aP,bP,cP,dP,eP,fP,gP,hP,iP,kP,lP,oP,rP,sP,tP,LP,NP,OP,PP,QP,RP,TP,VP,WP,XP,YP,_P,fQ,hQ,jQ,EP,zP,uP,FQ,HQ,VQ,WQ,bR,kR,lR,jS,nS,wS,yS,aT,XS,YS,_S,RS,US,eT,mT,uT,vT,sT,zT,HT,IT,TT,NT,OT,QT,UT,YT,ZT,$T,aU,bU,cU,dU,fU,hU,jU,lU,nU,pU,LU,NU,OU,PU,TU,UU,fV,pV,qV,rV,tV,uV,vV,xV,yV,WV,UV,SV,QV,yh,Dq,Xq,gr,cv,ly,my,HK,JL,lN,oN,wN,ZN,tQ,uQ,oR,rR,BS,AS,nT,aV,zV,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY];var Cd=[yY,fj,Gj,Oj,Wj,bk,vF,dL,eL,fL,gL,hL,iL,jL,kL,lL,UL,sK,fM,jM,EM,JM,KM,GP,HP,DP,nQ,FP,cR,jR,oS,xS,fT,AT,VT,rU,QU,gV,oV,rN,WU,ZU,$U,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY];var Dd=[zY,yH,QI,zY];var Ed=[AY,Wg,vh,AY];var Fd=[BY,xH,OI,PI,TM,BY,BY,BY];var Gd=[CY,Re,Rg,Gi,Ii,RF,TF,UF,VF,Li,Jh,Ni,nj,Jl,xj,Jj,Rj,Zj,ek,zk,zl,Gr,Sr,Xr,cs,gs,qs,vs,Gs,Ts,Xs,Yv,Zv,_v,$v,aw,bw,cw,dw,ew,fw,gw,hw,iw,jw,kw,lw,mw,nw,ow,pw,qw,rw,sw,tw,uw,vw,ww,xw,yw,zw,Aw,Bw,Cw,Dw,Ew,Fw,Gw,Hw,Iw,Jw,Kw,Lw,Mw,Nw,Ow,Pw,Qw,Rw,Sw,Tw,Uw,Vw,Ww,Xw,Yw,Zw,_w,$w,ax,bx,cx,dx,ex,fx,gx,hx,ix,jx,kx,lx,Wy,Yy,_y,cz,dz,ez,jz,lz,nz,rz,sz,tz,yz,zz,Az,Ez,Fz,Gz,Mz,Nz,Pz,Wz,Xz,Zz,dA,eA,fA,kA,lA,mA,rA,sA,tA,QD,IH,MH,PH,UH,aI,zL,pN,aO,hO,GQ,MQ,EN,FN,zN,jO,oO,pR,qR,sR,tR,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY];var Hd=[DY,EY];var Id=[FY,pi,xi,FY];var Jd=[GY,Ri,Si,Ti,Ui,Vi,Wi,Xi,Yi,Zi,_i,$i,aj,bj,cj,dj,Xy,Zy,Sy,_B,$B,kz,mz,Iz,Oz,Sz,Yz,$z,yM,IM,OM,tW,uW,xN,yN,vJ,RQ,MR,NR,OR,PR,QR,RR,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY];return{_saveSetjmp:YW,_memcmp:iX,_strncasecmp:XW,_strcat:cX,_free:BW,_main:_d,_realloc:CW,_i64Add:gX,_memmove:aX,_tolower:WW,_strlen:ZW,_memset:bX,_malloc:AW,_bitshift64Ashr:_W,_memcpy:$W,_strncpy:hX,_bitshift64Lshr:jX,_bitshift64Shl:dX,_i64Subtract:fX,_strcpy:eX,_testSetjmp:kX,runPostSets:VW,stackAlloc:Kd,stackSave:Ld,stackRestore:Md,setThrew:Nd,setTempRet0:Qd,setTempRet1:Rd,setTempRet2:Sd,setTempRet3:Td,setTempRet4:Ud,setTempRet5:Vd,setTempRet6:Wd,setTempRet7:Xd,setTempRet8:Yd,setTempRet9:Zd,dynCall_iiiiiiii:uX,dynCall_viiiii:vX,dynCall_vi:wX,dynCall_iiiidd:xX,dynCall_vii:yX,dynCall_iiiiiii:zX,dynCall_ii:AX,dynCall_viidd:BX,dynCall_viddii:CX,dynCall_viiddddddiiii:DX,dynCall_iiiiiiiiiiiidd:EX,dynCall_vidii:FX,dynCall_iiiii:GX,dynCall_iiiddddiii:HX,dynCall_viiiiiiiiiii:IX,dynCall_iiii:JX,dynCall_iiiddiiiiiiiiiii:KX,dynCall_viiiiii:LX,dynCall_viiiiiiiiiiiii:MX,dynCall_di:NX,dynCall_iiiiiiiiiii:OX,dynCall_viiiiiii:PX,dynCall_viiiiiiiii:QX,dynCall_viiiiiiiiii:RX,dynCall_iii:SX,dynCall_iiiiii:TX,dynCall_dii:UX,dynCall_viidddddd:VX,dynCall_iiiiiiiiii:WX,dynCall_viii:XX,dynCall_v:YX,dynCall_viid:ZX,dynCall_viiii:_X}})