Searched refs:Av (Results 1 - 10 of 10) sorted by relevance

/external/opencv/cv/src/
H A Dcvlkpyramid.cpp812 float Av[6]; local
822 Av[0] = matrices[i*4];
823 Av[1] = matrices[i*4+1];
824 Av[3] = matrices[i*4+2];
825 Av[4] = matrices[i*4+3];
827 Av[2] = featuresB[i].x += featuresB[i].x;
828 Av[5] = featuresB[i].y += featuresB[i].y;
942 if( Av[2] < -eps || Av[2] >= levelSize.width+eps ||
943 Av[
[all...]
/external/llvm/utils/TableGen/
H A DOptParserEmitter.cpp44 static int CompareOptionRecords(Record *const *Av, Record *const *Bv) { argument
45 const Record *A = *Av;
/external/tlsdate/ca-roots/
H A Dtlsdate-ca-roots.conf1771 Av+Z6+hsTXBbKWWc3apdzK8BMewM69KN6Oqce+Zu9ydmDBpI125C4z/eIT574Q1w
4517 Av+Z6+hsTXBbKWWc3apdzK8BMewM69KN6Oqce+Zu9ydmDBpI125C4z/eIT574Q1w
/external/webrtc/talk/media/testdata/
H A Dh264-svc-99-640x360.rtpdump1498 =���}h�`>�9�/s��u/\*�z>ꬰ�V'0�~)��"|�U���M��ܿ4�}&-����xn���}��!��!-"Av�fq�My�Xm��
4850 ��f���A8���~����'�>���7o����n�*�O �ւĮ����D�|ڠc4�n��ܒ���2���"�̛\�TA��R���cO���a 2k���J(��#߮�$G\�j��<������D��� ���{�LF�WFݰ0��… ,$��c' �$���f��fK�ѽr���g�!���g��h�� {��n�P��Db\��%��YR��ࢪ�\O �o�O �Up����f5ߍ{]|/���]�M���A�_'Ę���To���EL؟f� {�T�XQ�٨~�h2��T�0�]z�"�Sv{N�AM@R�X�y|;���o h����Av����gC�!��x���'&|���!�/���y���;�0�/ �r�2
6341 =�� �[�U4�0)d�@&��|o�l�2�������i[Cu�yXP3�i1�N��֎�o�� ۙ)���K���,���EX�h#��8a?�m�⨌yH��}G�:� ����J��sA.� ~����c'���!��f��f8�7dsr88>��+��4�L��ܒ����������������>���������D1R5/1��cBTOL�['��wĈ�i���]�ݎ�p�|��fJ��ɲn�=��T���ڔ��ڋB���<�`G �k�+G;}a��t�!�6�:xZmC���"��;���x���sճ��/��  2���?�l�� Q�aLw��.�͇���y�&�������ғ)qp޴�+3H��]��D\7fb/��_��<��G�\�L'Ч�[uA�1��>�t�?즃 �z�O �0��{�J�}� �i T�T ]5���o��Ɓ�Ik�Q�׵�ޟৠ}�A"q�M�a? ���a���b�/ �yyp�~�n%��&Mx�N�ή� ���%2q������z$���C�U�Ppi����Av� cv�^�]�j���[
6496 <4�c'�����f��f��8�rD8>���,�.�� S!!�v�+> ixk�ץ�~z��v���c6at:��d��@��Ϡ�n����@���$�����exp��A�ڳU��.�� �!/�v�+> Z^7���-�zs��f�/�7@�Hp �d'�I�Av����xsC��)>��D����7K@��P�=z�}�l�I-[�SJ�9�J��H_�$
7148 X4 D��Ԁ��i�a5�`��ߐc'���a��f��fԦD=�r�8>��1��4���w$��d�,? ��u�ܓLqz��:3���1������s����a �9 0�::Ԍ����Fr^/�`�C��s[0���K�e�@d ���(q�� ���x��_~$6��a�~��� =�`�����Im�����x�G��X ��Av�󒞶5��`�`L�� i�O�5uiy<�1�A���|6L�^����a��
12043 G�A�@��h_������U�� x�M׆L}�%8cD��돳?�Q�1��ge(!�Y�6 �R� �6 �Q�� ��M�� ��_낝����9"�Й9n ��W��T.H�t�i�u� �4�yi�] ������(G�%Av𧦖5*: ��B��S�0��
14629 �jE����=��7�m�G��a�0 ��F�Tg!�,C�����*�d��짚D���WF��C�KƟ��l�������}p*�c!�7a�F9�=��o�6��::��{_����h��O�����ڰ�m�I����6Ű���j�O���p/�5�����x��G �-���@�ב"P��_M� ��b��e���=���{� ��@��;Av����]��_��O��E������/�zZ��~��_ИX?V6~Ƚ�)�|��A��`Yn�� ���01��� ��T��B���~�q��(�
15510 �ʏ��W�T���d�bNY�|�so��8R[�2\mX��ꯉ���t����ᵋ��i�</f�,�puP��A/�ӻې�d�u@���br�>�}i׋Rq�������R��w�]P����{ޖk6v6��m�jB0T s}pId�в�c���<��"�k��᫩��� ؊{�O� 1��w����'`��,��x#���6��@��0)̌w��?���qJ�(� ��[A^�"O����ך��@���b�{��@6e���ݧ����Y�E�km�O0s+g��Ô"n£ŧO�Ȣ���P�ľ ��~W� 羒��8�_s��UB V��� ��.�܋a���澟�IS�8h�w/���g�# �qW�(�G������s_��L��i��+���[�!�zH�o�� �-�����J��s�\x�͂����p$�����3�W��i1����h��A'��9�� ݳQ�E� �\]��>�N����C��͜g跈p��X�x)���†L�t�y�L���#-N��R����m���^��QR��#P��,��1&8l�ڴ�sm��Gu%j���b���VA�}��0�`I�0r��5jq~l{��N������j��>���3_�=Av�1ڐ!#\c,6C����~
16144 �sD�G�ԱM{�N������l-=c�DTK��Z��P6x��@�AHï֑;�uׅ�c�Wt�bi���O�e��)��u�ؼ#�tx�����`���49�a0C\�� ��z�a�qˌ���%�p�Y���x���,5��ڌ��!i&��{@�e��a�t԰x�Px��Av*��б4��5��6O: -�}HO�w��N�W窭5�Ixl|me�3�aD�7���K4����]�C��Bny�m�������l����C[�k��͡O������O,@pu�:�R���c��h�:������.�`�H&���)������F�(���pYȡ�>@S�M.�_���UZ����8���;H;o��'}��k���=�[o�� ���O7481=o��L)��ppGu������._e�'A�<2F���ǽ�I�}��m� L�l_�4�1���Q�8pa�$�q%2�g8��x]�2�1��E��7E؟��|O������k�!m`���ᚖp�t/S~��}W�{�5��{V�=m���L~���}J� 1<[�r ���P���N؞��4,����E��W�>�XB0 D�I�`��%q��]\y0aY>���*�����f��f离�ri8>��g��4��wrJΠ�����l��/�g�G�{�R��Y{r6�_�#Z��&����}\����h��%_w�zK/_%�Kۛ�н"6�{V�D���_K���x$��6�%>X��~a�_]�N��>����!��K+W�mxވ�t=e��,oe���>�JĮ��c�͒*��׹�L�x��j��%F������V�ߗ7���E�.^^�C���ي�c4�r7�ܒ��.A/,>'�C�x5����q�V�ԓ/�6� >ߕ�'�o�{����x� ������
/external/v8/test/mjsunit/asm/sqlite3/
H A Dsqlite-pointer-masking.js7 function Tt(b,d){b=b|0;d=d|0;var e=0;if(d&1)if(!(c[(b&p)+12>>2]|0))d=(c[(b&p)+20>>2]|0)==0?12:28;else d=28;else d=48;if((c[(b&p)+4>>2]&1024|0)==0?(e=c[(b&p)+8>>2]|0,(e|0)!=0):0){b=e;while(1)if(!(a[(b&n)>>0]|0))break;else b=b+1|0;d=(d|1)+(b-e&1073741823)|0}return d+7&-8|0}function Ut(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[(a&p)>>2]|0;h=e+20|0;d=c[(h&p)>>2]|0;if((d|0)>0){g=0;f=c[(e&p)+16>>2]|0;while(1){e=c[((c[(f&p)+12>>2]|0)&p)+16>>2]|0;if(e){d=e;do{Vt(a,c[(d&p)+8>>2]|0,b);d=c[(d&p)>>2]|0}while((d|0)!=0);d=c[(h&p)>>2]|0}g=g+1|0;if((g|0)>=(d|0))break;else f=f+16|0}}return}function Vt(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;f=c[(d&p)+8>>2]|0;if(f){m=(e|0)==0;k=d+68|0;l=a+408|0;do{a:do if(!m){i=f+32|0;d=b[(f&o)+48>>1]|0;if(d<<16>>16){h=c[(f&p)+4>>2]|0;d=d&65535;g=0;do{if((b[(h+(g<<1)&o)>>1]|0)>-1?(dd(c[((c[(i&p)>>2]|0)+(g<<2)&p)>>2]|0,e)|0)==0:0){n=9;break a}g=g+1|0}while((g|0)<(d|0))}}else n=9;while(0);if((n|0)==9){n=0;d=c[(a&p)>>2]|0;g=c[(k&p)>>2]|0;b:do if(g){j=c[(d&p)+20>>2]|0;if((j|0)>0){h=c[(d&p)+16>>2]|0;i=0;while(1){d=i+1|0;if((c[(h+(i<<4)&p)+12>>2]|0)==(g|0)){d=i;break b}if((d|0)<(j|0))i=d;else break}}else d=0}else d=-1e6;while(0);j=c[(l&p)>>2]|0;Ar(a,d);j=((j|0)==0?a:j)+328|0;c[(j&p)>>2]=c[(j&p)>>2]|1<<d;vs(a,f,-1)}f=c[(f&p)+20>>2]|0}while((f|0)!=0)}return}function Wt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)+12>>2]|0;g=c[(a&p)+408>>2]|0;Ar(a,b);g=((g|0)==0?a:g)+328|0;c[(g&p)>>2]=c[(g&p)>>2]|1<<b;g=a+68|0;e=c[(g&p)>>2]|0;c[(g&p)>>2]=e+3;hv(a,b,e,0,0);f=(c[(a&p)+72>>2]|0)+1|0;g=c[(g&p)>>2]|0;d=c[(d&p)+16>>2]|0;if(d)do{iv(a,c[(d&p)+8>>2]|0,0,e,f,g);d=c[(d&p)>>2]|0}while((d|0)!=0);jv(a,b);return}function Xt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){i=c[(e&p)+20>>2]|0;if((i|0)>0){f=c[(e&p)+16>>2]|0;e=0;while(1){g=e+1|0;if((c[(f+(e<<4)&p)+12>>2]|0)==(h|0)){g=e;break a}if((g|0)<(i|0))e=g;else break}}else g=0}else g=-1e6;while(0);e=c[(a&p)+408>>2]|0;Ar(a,g);e=((e|0)==0?a:e)+328|0;c[(e&p)>>2]=c[(e&p)>>2]|1<<g;e=a+68|0;f=c[(e&p)>>2]|0;c[(e&p)>>2]=f+3;if(!d)hv(a,g,f,c[(b&p)>>2]|0,28544);else hv(a,g,f,c[(d&p)>>2]|0,28536);iv(a,b,d,f,(c[(a&p)+72>>2]|0)+1|0,c[(e&p)>>2]|0);jv(a,g);return}function Yt(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;f=((d|0)/2|0)+1|0;f=mh(b,f,((f|0)<0)<<31>>31)|0;b=d+-1|0;if(f){if((b|0)>0){e=0;do{g=a[(c+e&n)>>0]|0;h=a[(c+(e|1)&n)>>0]|0;a[(f+((e|0)/2|0)&n)>>0]=(0-(h>>>6&1)&9)+h&15|(0-(g>>>6&1)&9)+g<<4;e=e+2|0}while((e|0)<(b|0));b=(d&-2|0)/2|0}else b=0;a[(f+b&n)>>0]=0}return f|0}function Zt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m+8|0;l=m;k=c[(b&p)+8>>2]|0;g=d+8|0;do if(!(c[(d&p)+4>>2]&1024)){g=c[(g&p)>>2]|0;d=ji(g,l)|0;if((d|0)!=0?!((d|0)==2&(e|0)!=0):0)if(!(Fc(g,29144,2)|0)){c[(h&p)>>2]=g;th(b,29152,h);break}else{_t(k,g,e,f);break}if(e){if((d|0)==2){d=0;g=-2147483648}else{d=l;d=dw(0,0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0)|0;g=G}e=l;c[(e&p)>>2]=d;c[(e&p)+4>>2]=g}d=mh(c[(k&p)>>2]|0,8,0)|0;if(d){e=l;h=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;g=d;b=g;a[(b&n)>>0]=h;a[(b&n)+1>>0]=h>>8;a[(b&n)+2>>0]=h>>16;a[(b&n)+3>>0]=h>>24;g=g+4|0;a[(g&n)>>0]=e;a[(g&n)+1>>0]=e>>8;a[(g&n)+2>>0]=e>>16;a[(g&n)+3>>0]=e>>24}xh(k,wh(k,26,0,f,0)|0,d,-13)}else{d=c[(g&p)>>2]|0;wh(k,25,(e|0)==0?d:0-d|0,f,0)|0}while(0);i=m;return}function _t(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,k=0,l=0,m=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;if(d){g=d;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;Tl(d,k,g-d&1073741823,1)|0;if(e)h[(k&q)>>3]=-+h[(k&q)>>3];g=mh(c[(b&p)>>2]|0,8,0)|0;if(g){d=k;m=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;e=g;k=e;a[(k&n)>>0]=m;a[(k&n)+1>>0]=m>>8;a[(k&n)+2>>0]=m>>16;a[(k&n)+3>>0]=m>>24;e=e+4|0;a[(e&n)>>0]=d;a[(e&n)+1>>0]=d>>8;a[(e&n)+2>>0]=d>>16;a[(e&n)+3>>0]=d>>24}xh(b,wh(b,133,0,f,0)|0,g,-12)}i=l;return}function $t(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))fa();g=m;a:do if(!d)k=0;else while(1){f=c[(d&p)+4>>2]|0;if(!(f&4096)){k=d;break a}if(!(f&262144))d=d+12|0;else d=c[((c[(d&p)+20>>2]|0)&p)+4>>2]|0;d=c[(d&p)>>2]|0;if(!d){k=0;break}}while(0);b:do if(((a[(b&n)+23>>0]|0)!=0?(a[(k&n)>>0]|0)!=-97:0)?(c[(g&p)>>2]=0,c[(g&p)+4>>2]=0,c[(g&p)+8>>2]=0,c[(g&p)+12>>2]=0,c[(g&p)+16>>2]=0,c[(g&p)+20>>2]=0,f=g+20|0,a[(f&n)>>0]=2,c[(g&p)>>2]=78,c[(g&p)+4>>2]=79,c[(g&p)+24>>2]=0,rs(g,k)|0,(a[(f&n)>>0]|0)!=0):0){f=c[(b&p)+316>>2]|0;c[(e&p)>>2]=0;c:do if((f|0)!=0?(h=c[(f&p)>>2]|0,(h|0)>0):0){d=h;f=c[(f&p)+4>>2]|0;while(1){if((a[(f&n)+13>>0]&4)!=0?(Cu(c[(f&p)>>2]|0,k,-1)|0)==0:0)break;d=d+-1|0;if((d|0)<=0)break c;else f=f+20|0}f=c[(f&p)+16>>2]|0;break b}while(0);d=b+72|0;f=(c[(d&p)>>2]|0)+1|0;c[(d&p)>>2]=f;Gt(b,k,f,1)}else l=18;while(0);do if((l|0)==18){d=b+19|0;f=a[(d&n)>>0]|0;if(!(f<<24>>24)){d=b+72|0;f=(c[(d&p)>>2]|0)+1|0;c[(d&p)>>2]=f}else{f=f+-1<<24>>24;a[(d&n)>>0]=f;f=c[(b+((f&255)<<2)&p)+24>>2]|0}d=is(b,k,f)|0;if((d|0)==(f|0)){c[(e&p)>>2]=f;break}else{_r(b,f);c[(e&p)>>2]=0;f=d;break}}while(0);i=m;return f|0}function au(b,d,e,f,g,h,i,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0;l=Ou(b,d,e)|0;k=Bu(d,kv(e)|0)|0;e=b+8|0;d=c[(e&p)>>2]|0;xh(d,wh(d,f,h,i,g)|0,l,-4);e=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if(d)a[(d+(((c[(e&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=k&255|j;return}function bu(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=b+100|0;c[(d&p)>>2]=(c[(d&p)>>2]|0)+-1;g=b+19|0;j=0;k=b+116|0;while(1){h=k+12|0;i=c[(h&p)>>2]|0;if((i|0)!=0?(c[(k&p)+8>>2]|0)>(c[(d&p)>>2]|0):0){e=k+6|0;if(a[(e&n)>>0]|0){f=a[(g&n)>>0]|0;if((f&255)<8){a[(g&n)>>0]=f+1<<24>>24;c[(b+((f&255)<<2)&p)+24>>2]=i}a[(e&n)>>0]=0}c[(h&p)>>2]=0}j=j+1|0;if((j|0)==10)break;else k=k+20|0}return}function cu(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=c[(d&p)>>2]|0;a:do if(e){b:while(1){g=c[(e&p)+4>>2]|0;if(g&512){e=0;k=21;break a}switch(a[(e&n)>>0]|0){case 38:case -98:{e=c[(e&p)+12>>2]|0;break}case -97:{if((a[(e&n)+38>>0]|0)==95){k=7;break b}else k=8;break}case 95:{k=7;break b}case 62:case -102:case -100:{k=8;break}default:k=11}if((k|0)==8){f=c[(e&p)+44>>2]|0;if(!f)k=11;else{k=9;break}}c:do if((k|0)==11){k=0;if(!(g&256)){e=0;k=21;break a}f=c[(e&p)+12>>2]|0;if((f|0)!=0?(c[(f&p)+4>>2]&256|0)!=0:0){e=f;continue b}h=c[(e&p)+16>>2]|0;f=c[(e&p)+20>>2]|0;if((f|0)!=0&(g&2048|0)==0?(i=c[(f&p)>>2]|0,(i|0)>0):0){f=c[(f&p)+4>>2]|0;g=0;while(1){e=c[(f+(g*20|0)&p)>>2]|0;g=g+1|0;if(c[(e&p)+4>>2]&256)break c;if((g|0)>=(i|0)){e=h;break}}}else e=h}while(0);if(!e){e=0;k=21;break a}}if((k|0)==7)e=ws(d,a[(j&n)+62>>0]|0,0,c[(e&p)+8>>2]|0)|0;else if((k|0)==9){e=b[(e&o)+32>>1]|0;if(e<<16>>16<=-1){e=0;k=21;break}e=Yn(j,a[(j&n)+62>>0]|0,c[((c[(f&p)+4>>2]|0)+((e<<16>>16)*24|0)&p)+16>>2]|0,0)|0}if(e)if(!(ws(d,a[((c[(d&p)>>2]|0)&n)+62>>0]|0,e,c[(e&p)>>2]|0)|0))e=0;else k=21;else{e=0;k=21}}else{e=0;k=21}while(0);return e|0}function du(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();t=u+4|0;s=u;c[(t&p)>>2]=0;c[(s&p)>>2]=0;if((((h|0)!=0?(a[(h&n)>>0]|0)==-102:0)?(m=c[(h&p)+44>>2]|0,(m|0)!=0):0)?(a[(m&n)+44>>0]&16)!=0:0){h=m+60|0;while(1){h=c[(h&p)>>2]|0;if((c[(h&p)>>2]|0)==(d|0))break;else h=h+24|0}l=c[(h&p)+8>>2]|0;k=(c[(l&p)>>2]|0)+72|0;if((c[(k&p)>>2]|0)!=0?(r=f+24|0,q=kh(d,c[(r&p)>>2]|0)|0,(q|0)!=0):0){m=a[(q&n)>>0]|0;if(m<<24>>24){h=q;do{a[(h&n)>>0]=a[(m&255&n)+9328>>0]|0;h=h+1|0;m=a[(h&n)>>0]|0}while(m<<24>>24!=0)}g=tc[c[(k&p)>>2]&31](l,g,q,t,s)|0;mg(d,q);if(g){h=c[(r&p)>>2]|0;if(!h){h=37;l=0}else{l=h;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;h=(l-h&1073741823)+37|0;l=0}k=mh(d,h,l)|0;if(k){fw(k|0,0,h|0)|0;m=k+0|0;l=f+0|0;h=m+36|0;do{c[(m&p)>>2]=c[(l&p)>>2];m=m+4|0;l=l+4|0}while((m|0)<(h|0));m=k+36|0;c[(k&p)+24>>2]=m;h=c[(r&p)>>2]|0;if(!h)l=1;else{l=h;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=(l-h&1073741823)+1|0}kw(m|0,h|0,l|0)|0;c[(k&p)+12>>2]=c[(t&p)>>2];c[(k&p)+4>>2]=c[(s&p)>>2];s=k+2|0;b[(s&o)>>1]=e[(s&o)>>1]|16}else k=f}else k=f}else k=f}else k=f;i=u;return k|0}function eu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+80|0;if((i|0)>=(j|0))fa();z=B;x=B+72|0;q=B+52|0;y=B+48|0;o=B+28|0;A=Oq(b)|0;a:do if(!A)g=0;else{g=b+100|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=d+4|0;if(!(c[(g&p)>>2]&32)){s=Oq(b)|0;m=b+80|0;h=c[(m&p)>>2]|0;c[(m&p)>>2]=h+1;h=wh(s,44,h,0,0)|0}else h=-1;if((a[(b&n)+450>>0]|0)==2){l=c[(b&p)>>2]|0;m=(a[(d&n)>>0]|0)==75?29104:29112;s=c[(b&p)+468>>2]|0;c[(z&p)>>2]=(h|0)>-1?10360:29088;c[(z&p)+4>>2]=m;c[(z&p)+8>>2]=s;l=uh(l,29056,z)|0;xh(A,wh(A,157,c[(b&p)+464>>2]|0,0,0)|0,l,-1);l=d}else l=d;m=a[(l&n)>>0]|0;b:do if(m<<24>>24==75){o=d+12|0;k=kv(c[(o&p)>>2]|0)|0;a[(x&n)>>0]=k;u=b+68|0;v=c[(u&p)>>2]|0;c[(u&p)>>2]=v+1;u=d+28|0;c[(u&p)>>2]=v;t=(f|0)!=0;v=wh(A,57,v,t&1^1,0)|0;if(t)w=0;else w=Rs(c[(b&p)>>2]|0,1,1)|0;m=d+20|0;do if(!(c[(g&p)>>2]&2048)){m=c[(m&p)>>2]|0;if(m){if(!(k<<24>>24))a[(x&n)>>0]=65;if(w)c[(w&p)+20>>2]=cu(b,c[(o&p)>>2]|0)|0;f=b+19|0;k=a[(f&n)>>0]|0;if(k<<24>>24){s=k+-1<<24>>24;a[(f&n)>>0]=s;l=c[(b+((s&255)<<2)&p)+24>>2]|0;if(!(s<<24>>24))r=24;else{s=k+-2<<24>>24;a[(f&n)>>0]=s;s=c[(b+((s&255)<<2)&p)+24>>2]|0}}else{r=b+72|0;l=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=l;r=24}if((r|0)==24){r=b+72|0;s=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=s}if(t)wh(A,28,0,s,0)|0;o=c[(m&p)>>2]|0;if((o|0)>0){k=z+20|0;g=z+4|0;r=z+24|0;q=A+32|0;f=c[(m&p)+4>>2]|0;while(1){m=c[(f&p)>>2]|0;do if((h|0)>-1){c[(z&p)>>2]=0;c[(z&p)+4>>2]=0;c[(z&p)+8>>2]=0;c[(z&p)+12>>2]=0;c[(z&p)+16>>2]=0;c[(z&p)+20>>2]=0;a[(k&n)>>0]=1;c[(z&p)>>2]=78;c[(g&p)>>2]=79;c[(r&p)>>2]=0;rs(z,m)|0;if(a[(k&n)>>0]|0)break;zh(A,h);h=-1}while(0);do if(t)if(!(Ms(m,y)|0)){m=is(b,m,l)|0;wh(A,38,m,(c[(q&p)>>2]|0)+2|0,0)|0;wh(A,75,c[(u&p)>>2]|0,s,m)|0;break}else{wh(A,84,c[(u&p)>>2]|0,s,c[(y&p)>>2]|0)|0;break}else{m=is(b,m,l)|0;xh(A,wh(A,49,m,1,s)|0,x,1);dt(b,m,1);wh(A,110,c[(u&p)>>2]|0,s,0)|0}while(0);o=o+-1|0;if((o|0)<=0)break;else f=f+20|0}}_r(b,l);_r(b,s)}if(!w){k=h;g=0;break b}}else{l=c[(m&p)>>2]|0;s=c[(u&p)>>2]|0;a[(q&n)>>0]=11;c[(q&p)+4>>2]=s;c[(q&p)+8>>2]=0;c[(q&p)+12>>2]=0;a[(q&n)+1>>0]=k;c[(l&p)+8>>2]=0;if(!(ir(b,l,q)|0)){c[(w&p)+20>>2]=Ou(b,c[(o&p)>>2]|0,c[(c[((c[(l&p)>>2]|0)&p)+4>>2]&p)>>2]|0)|0;break}if(!w){g=0;break a}s=(c[(w&p)>>2]|0)+-1|0;c[(w&p)>>2]=s;if(s){g=0;break a}Wc(w);g=0;break a}while(0);xh(A,v,w,-6);k=h;g=0}else{k=c[(d&p)+20>>2]|0;l=b+72|0;g=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=g;a[(o&n)>>0]=0;l=o+4|0;c[(l&p)>>2]=g;a[(o&n)+1>>0]=0;f=o+8|0;c[(f&p)>>2]=0;c[(o&p)+12>>2]=0;if(m<<24>>24==119){a[(o&n)>>0]=10;c[(f&p)>>2]=g;wh(A,28,0,g,0)|0}else{a[(o&n)>>0]=3;wh(A,25,0,g,0)|0}s=k+60|0;Gk(c[(b&p)>>2]|0,c[(s&p)>>2]|0);c[(s&p)>>2]=Zq(b,132,0,0,20624)|0;c[(k&p)+8>>2]=0;if(ir(b,k,o)|0){g=0;break a}k=h;g=c[(l&p)>>2]|0}while(0);if(e)lv(A,c[(d&p)+28>>2]|0,e);if((k|0)>-1){h=c[(A&p)+32>>2]|0;if(h>>>0>k>>>0)c[((c[(A&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=h;c[((c[(A&p)+24>>2]|0)&p)+88>>2]=h+-1}bu(b)}while(0);i=B;return g|0}function fu(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))fa();m=A+4|0;x=A+8|0;v=A;c[(m&p)>>2]=0;z=c[(b&p)+8>>2]|0;h=(f|0)==(g|0);l=mv(b,e,3,h?0:m)|0;a[(x&n)>>0]=nv(e)|0;o=b+100|0;c[(o&p)>>2]=(c[(o&p)>>2]|0)+1;o=b+19|0;k=a[(o&n)>>0]|0;if(!(k<<24>>24)){t=b+72|0;y=(c[(t&p)>>2]|0)+1|0;c[(t&p)>>2]=y}else{y=k+-1<<24>>24;a[(o&n)>>0]=y;y=c[(b+((y&255)<<2)&p)+24>>2]|0}k=e+12|0;Rq(b,c[(k&p)>>2]|0,y);do if((l|0)==5){t=c[(e&p)+20>>2]|0;r=cu(b,c[(k&p)>>2]|0)|0;u=xs(z)|0;s=(g|0)!=(f|0);if(s){k=a[(o&n)>>0]|0;if(!(k<<24>>24)){q=b+72|0;k=(c[(q&p)>>2]|0)+1|0;c[(q&p)>>2]=k}else{k=k+-1<<24>>24;a[(o&n)>>0]=k;k=c[(b+((k&255)<<2)&p)+24>>2]|0}wh(z,85,y,y,k)|0;q=k}else q=0;if((c[(t&p)>>2]|0)>0){o=t+4|0;m=(q|0)==0;l=z+4|0;k=z+32|0;h=0;do{e=$t(b,c[((c[(o&p)>>2]|0)+(h*20|0)&p)>>2]|0,v)|0;if(!m?(Uu(c[((c[(o&p)>>2]|0)+(h*20|0)&p)>>2]|0)|0)!=0:0)wh(z,85,q,e,q)|0;if((h|0)<((c[(t&p)>>2]|0)+-1|0)|s){xh(z,wh(z,79,y,u,e)|0,r,-4);e=c[(l&p)>>2]|0;if(e)a[(e+(((c[(k&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=a[(x&n)>>0]|0}else{xh(z,wh(z,78,y,f,e)|0,r,-4);e=c[(l&p)>>2]|0;if(e)a[(e+(((c[(k&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=d[(x&n)>>0]|0|16}_r(b,c[(v&p)>>2]|0);h=h+1|0}while((h|0)<(c[(t&p)>>2]|0))}if(q){wh(z,76,q,g,0)|0;wh(z,16,0,f,0)|0}k=c[(z&p)+24>>2]|0;h=~u;if((u|0)<0?(w=c[(k&p)+112>>2]|0,(w|0)!=0):0)c[(w+(h<<2)&p)>>2]=c[(z&p)+32>>2];c[(k&p)+88>>2]=(c[(z&p)+32>>2]|0)+-1;_r(b,q)}else{do if(Uu(c[(k&p)>>2]|0)|0){if(h){wh(z,76,y,f,0)|0;break}k=wh(z,77,y,0,0)|0;wh(z,108,c[(e&p)+28>>2]|0,f,0)|0;wh(z,16,0,g,0)|0;h=c[(z&p)+32>>2]|0;if(h>>>0>k>>>0)c[((c[(z&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=h;c[((c[(z&p)+24>>2]|0)&p)+88>>2]=h+-1}while(0);if((l|0)==1){wh(z,38,y,f,0)|0;wh(z,70,c[(e&p)+28>>2]|0,f,y)|0;break}xh(z,wh(z,48,y,1,0)|0,x,1);h=c[(e&p)+28>>2]|0;if(!(c[(m&p)>>2]|0)){xh(z,wh(z,68,h,f,y)|0,1,-14);break}k=wh(z,69,h,0,y)|0;xh(z,k,1,-14);wh(z,76,c[(m&p)>>2]|0,g,0)|0;wh(z,16,0,f,0)|0;h=c[(z&p)+32>>2]|0;if(h>>>0>k>>>0)c[((c[(z&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=h;c[((c[(z&p)+24>>2]|0)&p)+88>>2]=h+-1}while(0);_r(b,y);bu(b);i=A;return}function gu(f,g){f=f|0;g=g|0;var k=0,l=0,m=0,r=0,s=0,t=0.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;G=i;i=i+48|0;if((i|0)>=(j|0))fa();F=G;D=G+28|0;k=c[(f&p)+24>>2]|0;E=c[(k&p)>>2]|0;B=g+4|0;r=c[(B&p)>>2]|0;a:do if(!(r&4)){c[(B&p)>>2]=r|4;switch(d[(g&n)>>0]|0){case 122:{l=c[(g&p)+16>>2]|0;if((a[(l&n)>>0]|0)==27){r=l;l=g;m=0}else{r=c[(l&p)+16>>2]|0;m=c[((c[(g&p)+12>>2]|0)&p)+8>>2]|0}k=ov(E,m,c[((c[(l&p)+12>>2]|0)&p)+8>>2]|0,c[(r&p)+8>>2]|0,k,g)|0;break a}case 153:{A=g+20|0;x=c[(A&p)>>2]|0;if(!x)m=0;else m=c[(x&p)>>2]|0;r=a[((c[(E&p)>>2]|0)&n)+62>>0]|0;C=k+28|0;if(b[(C&o)>>1]&16){c[(F&p)>>2]=27200;th(E,27512,F)}y=c[(g&p)+8>>2]|0;if(!y)v=0;else{s=y;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;v=s-y&1073741823}l=Sh(c[(E&p)>>2]|0,y,v,m,r,0)|0;do if(!l){if(Sh(c[(E&p)>>2]|0,y,v,-2,r,0)|0){c[(F&p)>>2]=v;c[(F&p)+4>>2]=y;th(E,27392,F);y=k+24|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1;break}if(!(a[((c[(E&p)>>2]|0)&n)+145>>0]|0)){c[(F&p)>>2]=v;c[(F&p)+4>>2]=y;th(E,27368,F);y=k+24|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1}}else{u=(c[(l&p)+12>>2]|0)==0;z=l+2|0;do if(b[(z&o)>>1]&1024){c[(B&p)>>2]=c[(B&p)>>2]|266240;if((m|0)!=2){c[(g&p)+28>>2]=(a[(c[(l&p)+24>>2]&n)>>0]|0)==117?8388608:125829120;break}s=c[((c[(x&p)+4>>2]|0)&p)+20>>2]|0;h[(F&q)>>3]=-1.0;if((a[(s&n)>>0]|0)==-123){r=c[(s&p)+8>>2]|0;if(!r)s=0;else{s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-r&1073741823}Tl(r,F,s,1)|0;t=+h[(F&q)>>3];if(!(t>1.0)){s=~~(t*134217728.0);c[(g&p)+28>>2]=s;if((s|0)>=0)break}else w=22}else w=22;if((w|0)==22)c[(g&p)+28>>2]=-1;th(E,27216,F);w=k+24|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+1}while(0);s=l+24|0;r=Sq(E,31,0,c[(s&p)>>2]|0,0)|0;if(!r){if(b[(z&o)>>1]&2048)c[(B&p)>>2]=c[(B&p)>>2]|524288;if(!u)break;s=b[(C&o)>>1]|0;if(!(s&1)){c[(F&p)>>2]=v;c[(F&p)+4>>2]=y;th(E,27328,F);y=k+24|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1;break}b[(C&o)>>1]=s&65534;lu(f,x)|0;a[(g&n)>>0]=-101;r=g+38|0;a[(r&n)>>0]=0;b:do if(k){m=F+24|0;l=D+4|0;s=D+8|0;while(1){y=c[(k&p)+4>>2]|0;c[(F&p)>>2]=0;c[(F&p)+4>>2]=0;c[(F&p)+8>>2]=0;c[(F&p)+12>>2]=0;c[(F&p)+16>>2]=0;c[(F&p)+20>>2]=0;c[(F&p)>>2]=87;c[(m&p)>>2]=D;c[(D&p)>>2]=y;c[(l&p)>>2]=0;c[(s&p)>>2]=0;lu(F,c[(A&p)>>2]|0)|0;if((c[(l&p)>>2]|0)>0)break;if(!(c[(s&p)>>2]|0))break;a[(r&n)>>0]=(a[(r&n)>>0]|0)+1<<24>>24;k=c[(k&p)+16>>2]|0;if(!k)break b}y=k+28|0;b[(y&o)>>1]=e[(z&o)>>1]&4096|e[(y&o)>>1]|2}while(0);b[(C&o)>>1]=e[(C&o)>>1]|1;k=1;break a}else if((r|0)==1){c[(F&p)>>2]=c[(s&p)>>2];th(E,27288,F);y=k+24|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1}a[(g&n)>>0]=101;k=1;break a}while(0);lu(f,x)|0;k=1;break a}case 135:{l=k+28|0;k=b[(l&o)>>1]|0;if(k&4){c[(F&p)>>2]=27456;th(E,27472,F);k=b[(l&o)>>1]|0}if(k&16){c[(F&p)>>2]=27456;th(E,27512,F)}break}case 27:{k=ov(E,0,0,c[(g&p)+8>>2]|0,k,g)|0;break a}case 75:case 20:case 119:{if(r&2048){s=k+20|0;l=c[(s&p)>>2]|0;m=k+28|0;r=b[(m&o)>>1]|0;if(r&4){c[(F&p)>>2]=27440;th(E,27472,F);r=b[(m&o)>>1]|0}if(r&16){c[(F&p)>>2]=27440;th(E,27512,F)}ku(f,c[(g&p)+20>>2]|0)|0;if((l|0)!=(c[(s&p)>>2]|0))c[(B&p)>>2]=c[(B&p)>>2]|32}break}default:{}}if(!(c[(E&p)+64>>2]|0))k=(a[((c[(E&p)>>2]|0)&n)+65>>0]|0)!=0?2:0;else k=2}else k=1;while(0);i=G;return k|0}function hu(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;P=i;i=i+80|0;if((i|0)>=(j|0))fa();O=P;M=P+64|0;H=P+32|0;m=b[(f&o)+6>>1]|0;h=m&65535;a:do if(!(h&2)){G=c[(d&p)+24>>2]|0;N=c[(d&p)+12>>2]|0;d=c[(N&p)>>2]|0;if(!(h&16)){Ds(N,f,G);if(c[(N&p)+64>>2]|0){g=2;break}g=(a[(d&n)+65>>0]|0)!=0?2:1;break}I=f+52|0;g=(c[(I&p)>>2]|0)!=0;J=(f|0)==0;b:do if(!J){h=H+28|0;r=H+4|0;D=H+16|0;E=H+8|0;z=d+65|0;y=N+492|0;x=(G|0)==0;w=O+4|0;v=O+12|0;u=O+24|0;t=N+64|0;A=f;c:while(1){B=A+6|0;b[(B&o)>>1]=m&65535|2;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(H&p)+8>>2]=0;c[(H&p)+12>>2]=0;c[(H&p)+16>>2]=0;c[(H&p)+20>>2]=0;c[(H&p)+24>>2]=0;c[(H&p)+28>>2]=0;c[(H&p)>>2]=N;if(ls(H,c[(A&p)+60>>2]|0)|0){g=2;break a}if(ls(H,c[(A&p)+64>>2]|0)|0){g=2;break a}m=c[(A&p)+32>>2]|0;if(b[(B&o)>>1]&8192){C=A+48|0;c[((c[(m&p)+28>>2]|0)&p)+48>>2]=c[(C&p)>>2];c[(C&p)>>2]=0}C=A+32|0;if((c[(m&p)>>2]|0)>0){s=0;do{k=c[(m+(s*72|0)&p)+28>>2]|0;if(k){d=c[(y&p)>>2]|0;if(x)q=0;else{q=0;l=G;do{q=(c[(l&p)+20>>2]|0)+q|0;l=c[(l&p)+16>>2]|0}while((l|0)!=0)}l=c[(m+(s*72|0)&p)+16>>2]|0;if(l)c[(y&p)>>2]=l;c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)>>2]=82;c[(w&p)>>2]=83;c[(v&p)>>2]=N;c[(u&p)>>2]=G;ku(O,k)|0;c[(y&p)>>2]=d;if(c[(t&p)>>2]|0){g=2;break a}if(a[(z&n)>>0]|0){g=2;break a}if(!x){l=G;do{q=q-(c[(l&p)+20>>2]|0)|0;l=c[(l&p)+16>>2]|0}while((l|0)!=0)}m=m+(s*72|0)+45|0;a[(m&n)>>0]=a[(m&n)>>0]&-3|((q|0)!=0&1)<<1&255;m=c[(C&p)>>2]|0}s=s+1|0}while((s|0)<(c[(m&p)>>2]|0))}b[(h&o)>>1]=1;c[(r&p)>>2]=m;c[(D&p)>>2]=G;q=c[(A&p)>>2]|0;if((c[(q&p)>>2]|0)>0){m=q+4|0;l=0;do{if(ls(H,c[((c[(m&p)>>2]|0)+(l*20|0)&p)>>2]|0)|0){g=2;break a}l=l+1|0}while((l|0)<(c[(q&p)>>2]|0))}k=c[(A&p)+40>>2]|0;m=(k|0)!=0;q=b[(h&o)>>1]|0;if(!m?(F=q&65535,(F&2|0)==0):0)b[(h&o)>>1]=F&65534;else b[(B&o)>>1]=q&4096|e[(B&o)>>1]|4;q=c[(A&p)+44>>2]|0;if(!((q|0)==0|m)){K=32;break}c[(E&p)>>2]=c[(A&p)>>2];if(ls(H,q)|0){g=2;break a}if(ls(H,c[(A&p)+36>>2]|0)|0){g=2;break a}c[(D&p)>>2]=0;b[(h&o)>>1]=e[(h&o)>>1]|1;if(b[(B&o)>>1]&8192){C=(c[((c[(C&p)>>2]|0)&p)+28>>2]|0)+48|0;c[(A&p)+48>>2]=c[(C&p)>>2];c[(C&p)>>2]=0}if(!g?(qv(H,A,c[(A&p)+48>>2]|0,26880)|0)!=0:0){g=2;break a}if(a[(z&n)>>0]|0){g=2;break a}do if(m){if(qv(H,A,k,26888)|0){g=2;break a}if(a[(z&n)>>0]|0){g=2;break a}l=c[(k&p)>>2]|0;if((l|0)<=0)break;q=0;m=c[(k&p)+4>>2]|0;while(1){if(c[((c[(m&p)>>2]|0)&p)+4>>2]&2){K=46;break c}q=q+1|0;if((q|0)>=(l|0))break;else m=m+20|0}}while(0);l=c[(A&p)+52>>2]|0;if(!l)break b;A=l;m=b[(l&o)+6>>1]|0}if((K|0)==32){th(N,26832,O);g=2;break a}else if((K|0)==46){th(N,26896,O);g=2;break a}}while(0);if(g?(L=c[(f&p)+48>>2]|0,(L|0)!=0):0){F=c[(N&p)>>2]|0;h=c[(L&p)>>2]|0;if((h|0)>(c[(F&p)+96>>2]|0)){th(N,26960,O);g=2;break}if((h|0)>0){d=L+4|0;g=0;do{h=(c[(d&p)>>2]|0)+(g*20|0)+13|0;a[(h&n)>>0]=a[(h&n)>>0]&-2;g=g+1|0;h=c[(L&p)>>2]|0}while((g|0)<(h|0))}c[(f&p)+56>>2]=0;g=c[(I&p)>>2]|0;if(!g)if(J)d=L+4|0;else K=60;else while(1){c[(g&p)+56>>2]=f;f=c[(g&p)+52>>2]|0;if(!f){f=g;K=60;break}else{E=g;g=f;f=E}}d:do if((K|0)==60){d=L+4|0;x=F+65|0;y=O+4|0;z=O+8|0;A=O+28|0;B=O+24|0;C=O+4|0;w=f;e:while(1){v=c[(w&p)>>2]|0;if((h|0)<=0)break d;t=w+32|0;g=0;s=0;u=c[(d&p)>>2]|0;while(1){c[(M&p)>>2]=-1;r=u+13|0;do if(!(a[(r&n)>>0]&1)){h=c[(u&p)>>2]|0;f:do if(!h)h=0;else while(1){f=c[(h&p)+4>>2]|0;if(!(f&4096))break f;if(!(f&262144))h=h+12|0;else h=c[((c[(h&p)+20>>2]|0)&p)+4>>2]|0;h=c[(h&p)>>2]|0;if(!h){h=0;break}}while(0);if(!(Ms(h,M)|0)){f=rv(v,h)|0;c[(M&p)>>2]=f;if(!f){q=Mr(F,h,0,0)|0;if(!(a[(x&n)>>0]|0)){k=c[(w&p)>>2]|0;c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=N;c[(y&p)>>2]=c[(t&p)>>2];c[(z&p)>>2]=k;b[(A&o)>>1]=1;c[(B&p)>>2]=0;D=(c[(N&p)>>2]|0)+68|0;f=a[(D&n)>>0]|0;a[(D&n)>>0]=1;E=ls(O,q)|0;a[(D&n)>>0]=f;g:do if(!E){m=k+4|0;l=c[(k&p)>>2]|0;k=0;while(1){if((k|0)>=(l|0)){f=0;break g}f=k+1|0;if((Cu(c[((c[(m&p)>>2]|0)+(k*20|0)&p)>>2]|0,q,-1)|0)<2)break;else k=f}}else f=0;while(0);c[(M&p)>>2]=f}else f=0;Gk(F,q)}if((f|0)<=0){f=1;break}}else{k=c[(M&p)>>2]|0;f=c[(v&p)>>2]|0;if((k|0)<1|(k|0)>(f|0))break e;else f=k}c[(O&p)>>2]=0;c[(C&p)>>2]=0;k=nr(F,132,O,0)|0;if(!k){g=2;break a}l=k+4|0;c[(l&p)>>2]=c[(l&p)>>2]|1024;c[(k&p)+8>>2]=f;l=c[(u&p)>>2]|0;if((l|0)==(h|0))c[(u&p)>>2]=k;else c[(l&p)+12>>2]=k;Gk(F,h);b[(u&o)+16>>1]=f;a[(r&n)>>0]=a[(r&n)>>0]|1;f=s}else f=s;while(0);g=g+1|0;h=c[(L&p)>>2]|0;if((g|0)>=(h|0))break;else{s=f;u=u+20|0}}w=c[(w&p)+56>>2]|0;if(!((w|0)!=0&(f|0)!=0))break d}c[(O&p)>>2]=g+1;c[(O&p)+4>>2]=26880;c[(O&p)+8>>2]=f;th(N,27064,O);g=2;break a}while(0);f=0;while(1){if((f|0)>=(h|0)){g=1;break a}g=f+1|0;if(!(a[((c[(d&p)>>2]|0)+(f*20|0)&n)+13>>0]&1))break;else f=g}c[(O&p)>>2]=g;th(N,27e3,O);g=2}else g=1}else g=1;while(0);i=P;return g|0}function iu(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;C=i;i=i+16|0;if((i|0)>=(j|0))fa();z=C;A=c[(e&p)>>2]|0;a:do if(f){v=c[(f&p)>>2]|0;e=v*24|0;k=mh(A,e,0)|0;if(k)fw(k|0,0,e|0)|0;b[(g&o)>>1]=v;c[(h&p)>>2]=k;if((v|0)>0){t=f+4|0;w=A+65|0;e=0;u=k;while(1){r=c[(t&p)>>2]|0;f=c[(r+(e*20|0)&p)>>2]|0;b:do if(!f)f=0;else while(1){l=c[(f&p)+4>>2]|0;if(!(l&4096))break b;if(!(l&262144))f=f+12|0;else f=c[((c[(f&p)+20>>2]|0)&p)+4>>2]|0;f=c[(f&p)>>2]|0;if(!f){f=0;break}}while(0);l=c[(r+(e*20|0)&p)+4>>2]|0;do if(!l){while(1){l=a[(f&n)>>0]|0;if(l<<24>>24==27){B=24;break}else if(l<<24>>24==-102){y=f;B=18;break}else if(l<<24>>24!=122)break;f=c[(f&p)+16>>2]|0}if((B|0)==24){B=0;c[(z&p)>>2]=c[(f&p)+8>>2];f=uh(A,10344,z)|0;break}if((B|0)==18?(B=0,x=c[(y&p)+44>>2]|0,(x|0)!=0):0){f=b[(y&o)+32>>1]|0;if(f<<16>>16<0)f=b[(x&o)+36>>1]|0;else f=f<<16>>16;if((f|0)>-1)f=c[((c[(x&p)+4>>2]|0)+(f*24|0)&p)>>2]|0;else f=20456;c[(z&p)>>2]=f;f=uh(A,10344,z)|0;break}c[(z&p)>>2]=c[(r+(e*20|0)&p)+8>>2];f=uh(A,10344,z)|0}else f=kh(A,l)|0;while(0);if(a[(w&n)>>0]|0)break;if(!f){q=0;f=0}else{l=f;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;q=l-f&1073741823}c:do if((e|0)>0){l=0;r=0;s=q;while(1){if(!(dd(c[(k+(r*24|0)&p)>>2]|0,f)|0)){m=s;while(1){q=m+-1|0;if((q|0)<=1)break;if(((d[(f+q&n)>>0]|0)+-48|0)>>>0<10)m=q;else break}if((m|0)>0)m=(a[(f+q&n)>>0]|0)==58?q:s;else m=s;a[(f+m&n)>>0]=0;l=l+1|0;c[(z&p)>>2]=f;c[(z&p)+4>>2]=l;q=uh(A,26824,z)|0;mg(A,f);if(!q){f=0;break c}else{r=-1;f=q}}else m=s;r=r+1|0;if((r|0)>=(e|0))break;else s=m}}while(0);c[(u&p)>>2]=f;e=e+1|0;if((e|0)<(v|0))u=u+24|0;else{f=w;break a}}mg(A,f);f=w}else B=6}else{b[(g&o)>>1]=0;c[(h&p)>>2]=0;k=0;B=6}while(0);if((B|0)==6){f=A+65|0;e=0}if(a[(f&n)>>0]|0){if((e|0)>0){f=0;do{mg(A,c[(k+(f*24|0)&p)>>2]|0);f=f+1|0}while((f|0)!=(e|0))}mg(A,k);c[(h&p)>>2]=0;b[(g&o)>>1]=0}i=C;return}function ju(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;s=c[(e&p)>>2]|0;if(!(a[(s&n)+65>>0]|0)){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;c[(t&p)+8>>2]=0;c[(t&p)+12>>2]=0;c[(t&p)+16>>2]=0;c[(t&p)+20>>2]=0;c[(t&p)+24>>2]=0;c[(t&p)+28>>2]=0;c[(t&p)+4>>2]=c[(g&p)+32>>2];m=c[((c[(g&p)>>2]|0)&p)+4>>2]|0;l=f+38|0;if((b[(l&o)>>1]|0)>0){g=0;h=0;q=0;r=c[(f&p)+4>>2]|0;while(1){k=c[(m+(q*20|0)&p)>>2]|0;v=r+22|0;c[(r&p)+12>>2]=kh(s,yu(t,k,v)|0)|0;g=jw(d[(v&n)>>0]|0,0,g|0,h|0)|0;h=G;v=kv(k)|0;a[(r&n)+21>>0]=v<<24>>24==0?65:v;k=cu(e,k)|0;if(k)c[(r&p)+16>>2]=kh(s,c[(k&p)>>2]|0)|0;q=q+1|0;if((q|0)>=(b[(l&o)>>1]|0))break;else r=r+24|0}h=iw(g|0,h|0,2)|0;g=G}else{h=0;g=0}b[(f&o)+42>>1]=fs(h,g)|0}i=u;return}function ku(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;do if(!b)d=0;else{g=a+4|0;e=c[(g&p)>>2]|0;if((e|0)==0?(c[(a&p)+8>>2]|0)==0:0){d=0;break}j=a+16|0;c[(j&p)>>2]=(c[(j&p)>>2]|0)+1;h=a+8|0;a:while(1){if((e|0)!=0?(d=rc[e&127](a,b)|0,(d|0)!=0):0){k=24;break}if(lu(a,c[(b&p)>>2]|0)|0){k=19;break}if(rs(a,c[(b&p)+36>>2]|0)|0){k=19;break}if(lu(a,c[(b&p)+40>>2]|0)|0){k=19;break}if(rs(a,c[(b&p)+44>>2]|0)|0){k=19;break}if(lu(a,c[(b&p)+48>>2]|0)|0){k=19;break}if(rs(a,c[(b&p)+60>>2]|0)|0){k=19;break}if(rs(a,c[(b&p)+64>>2]|0)|0){k=19;break}e=c[(b&p)+32>>2]|0;if((e|0)!=0?(i=c[(e&p)>>2]|0,(i|0)>0):0){f=i;e=e+8|0;while(1){if(ku(a,c[(e&p)+20>>2]|0)|0){k=19;break a}f=f+-1|0;if((f|0)<=0)break;else e=e+72|0}}e=c[(h&p)>>2]|0;if(e)jc[e&15](a,b);b=c[(b&p)+52>>2]|0;if(!b){d=0;break}e=c[(g&p)>>2]|0}if((k|0)==19){c[(j&p)>>2]=(c[(j&p)>>2]|0)+-1;d=2;break}else if((k|0)==24)d=d&2;c[(j&p)>>2]=(c[(j&p)>>2]|0)+-1}while(0);return d|0}function lu(a,b){a=a|0;b=b|0;var d=0;a:do if((b|0)!=0?(d=c[(b&p)>>2]|0,(d|0)>0):0){b=c[(b&p)+4>>2]|0;while(1){if(rs(a,c[(b&p)>>2]|0)|0){d=2;break a}d=d+-1|0;if((d|0)<=0){d=0;break}else b=b+20|0}}else d=0;while(0);return d|0}function mu(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;c[(b&p)>>2]=0;if((c[(a&p)+4>>2]&1|0)==0?(Ms(a,b)|0)!=0:0)a=(c[(b&p)>>2]|0)==0&1;else a=0;i=d;return a|0}function nu(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();t=v;l=c[(g&p)+12>>2]|0;c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;c[(t&p)+8>>2]=0;c[(t&p)+12>>2]=0;c[(t&p)+16>>2]=0;c[(t&p)+20>>2]=200;a[(t&n)+24>>0]=1;a[(t&n)+25>>0]=0;c[(t&p)>>2]=c[(d&p)>>2];r=g+46|0;if(b[(r&o)>>1]|0){s=g+4|0;m=l+4|0;u=0;do{q=c[((c[(m&p)>>2]|0)+((b[((c[(s&p)>>2]|0)+(u<<1)&o)>>1]|0)*24|0)&p)>>2]|0;if(u)Sk(t,28920,2);k=c[(l&p)>>2]|0;if(!k)h=0;else{h=k;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;h=h-k&1073741823}Sk(t,k,h);Sk(t,28928,1);if(!q)h=0;else{h=q;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;h=h-q&1073741823}Sk(t,q,h);u=u+1|0}while((u|0)<(e[(r&o)>>1]|0))}u=tg(t)|0;zs(d,(a[(g&n)+51>>0]&3)==2?1555:2067,f,u,-1,2);i=v;return}function ou(a,b){a=a|0;b=b|0;return 0}function pu(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();t=u+8|0;r=u;s=f+52|0;a:do if((c[(s&p)>>2]|0)!=0?(h=c[(f&p)+48>>2]|0,!((h|0)==0|(f|0)==0)):0){g=f;while(1){q=a[(g&n)+4>>0]|0;if(!(q<<24>>24==119|q<<24>>24==116))break;g=c[(g&p)+52>>2]|0;if(!g){g=0;break a}}k=c[(h&p)+4>>2]|0;g=c[(h&p)>>2]|0;while(1){h=g+-1|0;if((g|0)<=0){g=0;break a}if(!(c[((c[(k+(h*20|0)&p)>>2]|0)&p)+4>>2]&256))g=h;else break}if((g|0)>=1){g=c[(d&p)+12>>2]|0;l=c[(g&p)>>2]|0;d=mh(l,72,0)|0;if(d){m=d+0|0;q=m+72|0;do{a[(m&n)>>0]=0;m=m+1|0}while((m|0)<(q|0));k=r;c[(k&p)>>2]=0;c[(k&p)+4>>2]=0;k=jr(g,0,0,0,r,d,0,0)|0;if(k){m=d+0|0;h=f+0|0;q=m+72|0;do{c[(m&p)>>2]=c[(h&p)>>2];m=m+4|0;h=h+4|0}while((m|0)<(q|0));c[(f&p)+32>>2]=k;c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;c[(f&p)>>2]=lr(g,0,nr(l,116,t,0)|0)|0;a[(f&n)+4>>0]=119;c[(f&p)+36>>2]=0;c[(d&p)+40>>2]=0;c[(d&p)+44>>2]=0;c[(d&p)+48>>2]=0;c[(s&p)>>2]=0;c[(f&p)+56>>2]=0;g=f+6|0;b[(g&o)>>1]=(e[(g&o)>>1]|0)&57279|8192;c[((c[(d&p)+52>>2]|0)&p)+56>>2]=d;c[(d&p)+60>>2]=0;c[(d&p)+64>>2]=0;g=0}else g=2}else g=2}else g=0}else g=0;while(0);i=u;return g|0}function qu(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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;_=i;i=i+32|0;if((i|0)>=(j|0))fa();Z=_;W=_+16|0;J=f+12|0;Y=c[(J&p)>>2]|0;X=c[(Y&p)>>2]|0;U=g+6|0;q=e[(U&o)>>1]|0;b[(U&o)>>1]=q|16;V=X+65|0;a:do if(!(a[(V&n)>>0]|0)){I=g+32|0;S=c[(I&p)>>2]|0;if((S|0)!=0&(q&16|0)==0){T=c[(g&p)>>2]|0;if((c[(f&p)+8>>2]|0)==9){q=g;while(1){m=c[(q&p)+56>>2]|0;if(!m)break;else q=m}q=c[(q&p)+68>>2]|0;if(q){F=Y+532|0;c[(q&p)+4>>2]=c[(F&p)>>2];c[(F&p)>>2]=q;a[(Y&n)+449>>0]=0}}Cs(Y,S);R=S+8|0;q=c[(S&p)>>2]|0;b:do if((q|0)>0){E=0;y=R;c:while(1){if(!(a[(y&n)+37>>0]&8)){F=y+16|0;h=c[(J&p)>>2]|0;if(c[(F&p)>>2]|0){k=h;Q=10;break}v=c[(h&p)>>2]|0;m=h+532|0;r=c[(m&p)>>2]|0;d:do if((c[(y&p)+4>>2]|0)==0?(H=c[(y&p)+8>>2]|0,!((H|0)==0|(r|0)==0)):0){e:while(1){s=c[(r&p)>>2]|0;if((s|0)>0){l=0;do{q=r+(l<<4)+8|0;k=c[(q&p)>>2]|0;if(!(dd(H,k)|0)){C=l;break e}l=l+1|0}while((l|0)<(s|0))}r=c[(r&p)+4>>2]|0;if(!r){Q=46;break d}}z=r+(C<<4)+20|0;s=c[(z&p)>>2]|0;if(s){g=s;Q=21;break c}B=mh(v,76,0)|0;if(!B){g=F;Q=23;break c}t=B+0|0;s=t+76|0;do{a[(t&n)>>0]=0;t=t+1|0}while((t|0)<(s|0));c[(F&p)>>2]=B;w=B+40|0;b[(w&o)>>1]=1;c[(B&p)>>2]=kh(v,c[(q&p)>>2]|0)|0;b[(B&o)+36>>1]=-1;b[(B&o)+28>>1]=200;D=B+44|0;a[(D&n)>>0]=d[(D&n)>>0]|2;D=gr(v,c[(r+(C<<4)&p)+16>>2]|0,0)|0;c[(y&p)+20>>2]=D;if(a[(v&n)+65>>0]|0){g=2;break a}A=((a[(D&n)+4>>0]|0)+-115&255)<2;if(A?(x=c[(D&p)+32>>2]|0,G=c[(x&p)>>2]|0,(G|0)>0):0){s=D+6|0;t=G;v=0;do{do if(!(c[(x+(v*72|0)&p)+12>>2]|0)){u=c[(x+(v*72|0)&p)+16>>2]|0;if(!u)break;if(dd(u,c[(q&p)>>2]|0)|0)break;c[(x+(v*72|0)&p)+24>>2]=B;t=x+(v*72|0)+45|0;a[(t&n)>>0]=a[(t&n)>>0]|8;b[(w&o)>>1]=(b[(w&o)>>1]|0)+1<<16>>16;b[(s&o)>>1]=e[(s&o)>>1]|2048;t=c[(x&p)>>2]|0}while(0);v=v+1|0}while((v|0)<(t|0))}if((e[(w&o)>>1]|0)>2){g=q;Q=34;break c}c[(z&p)>>2]=28176;l=c[(m&p)>>2]|0;c[(m&p)>>2]=r;if(A)s=c[(D&p)+52>>2]|0;else s=D;ku(f,s)|0;s=D;while(1){k=c[(s&p)+52>>2]|0;if(!k)break;else s=k}k=c[(s&p)>>2]|0;s=c[(r+(C<<4)&p)+12>>2]|0;do if(s){if(!k)break;u=c[(k&p)>>2]|0;k=c[(s&p)>>2]|0;if((u|0)!=(k|0)){g=u;Q=42;break c}}else s=k;while(0);iu(h,s,B+38|0,B+4|0);if(A){c[(z&p)>>2]=(b[(D&o)+6>>1]&2048)==0?28280:28240;ku(f,D)|0}c[(z&p)>>2]=0;c[(m&p)>>2]=l;if(!(c[(F&p)>>2]|0))Q=46}else Q=46;while(0);do if((Q|0)==46){Q=0;if(!(c[(y&p)+8>>2]|0)){r=c[(y&p)+20>>2]|0;if(ku(f,r)|0){g=2;break a}m=mh(X,76,0)|0;if(!m){g=F;Q=49;break c}t=m+0|0;s=t+76|0;do{a[(t&n)>>0]=0;t=t+1|0}while((t|0)<(s|0));c[(F&p)>>2]=m;b[(m&o)+40>>1]=1;c[(Z&p)>>2]=m;c[(m&p)>>2]=uh(X,27760,Z)|0;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}iu(Y,c[(r&p)>>2]|0,m+38|0,m+4|0);b[(m&o)+36>>1]=-1;b[(m&o)+28>>1]=200;F=m+44|0;a[(F&n)>>0]=d[(F&n)>>0]|2;break}h=Ur(Y,0,y)|0;c[(F&p)>>2]=h;if(!h){g=2;break a}r=h+40|0;q=b[(r&o)>>1]|0;if(q<<16>>16==-1){g=F;Q=55;break c}b[(r&o)>>1]=q+1<<16>>16;r=h+12|0;if((c[(r&p)>>2]|0)==0?(a[(h&n)+44>>0]&16)==0:0)break;if(hr(Y,h)|0){g=2;break a}F=gr(X,c[(r&p)>>2]|0,0)|0;c[(y&p)+20>>2]=F;ku(f,F)|0}while(0);if(Rt(Y,y)|0){g=2;break a}q=c[(S&p)>>2]|0}E=E+1|0;if((E|0)>=(q|0))break b;else y=y+72|0}if((Q|0)==10){while(1){h=c[(g&p)+56>>2]|0;if(!h)break;else g=h}g=c[(g&p)+68>>2]|0;if(!g){g=1;break a}c[(k&p)+532>>2]=c[(g&p)+4>>2];g=1;break a}else if((Q|0)==21){c[(Z&p)>>2]=k;th(h,g,Z);g=2;break a}else if((Q|0)==23){c[(g&p)>>2]=0;g=2;break a}else if((Q|0)==34){c[(Z&p)>>2]=c[(g&p)>>2];th(h,28128,Z);g=2;break a}else if((Q|0)==42){c[(Z&p)>>2]=c[(q&p)>>2];c[(Z&p)+4>>2]=g;c[(Z&p)+8>>2]=k;th(h,28200,Z);c[(m&p)>>2]=l;g=2;break a}else if((Q|0)==49){c[(g&p)>>2]=0;g=2;break a}else if((Q|0)==55){c[(Z&p)>>2]=c[(h&p)>>2];th(Y,27776,Z);c[(g&p)>>2]=0;g=2;break a}}while(0);if(!(a[(V&n)>>0]|0)){y=c[(I&p)>>2]|0;f:do if(((c[(y&p)>>2]|0)+-1|0)>0){z=g+36|0;B=0;C=y+8|0;D=y+80|0;g:while(1){A=c[(D&p)+16>>2]|0;if(!((c[(C&p)+16>>2]|0)==0|(A|0)==0)){G=d[(D&n)+36>>0]|0;x=G&32;v=(x|0)==0;x=x>>>5;w=D+44|0;if(G&4){if(c[(w&p)>>2]|0){Q=73;break}q=D+48|0;if(c[(q&p)>>2]|0){Q=73;break}k=A+38|0;r=b[(k&o)>>1]|0;if(r<<16>>16>0){h=A+4|0;u=B+1|0;t=0;do{m=c[((c[(h&p)>>2]|0)+(t*24|0)&p)>>2]|0;l=0;do{s=sv(c[(y+(l*72|0)&p)+24>>2]|0,m)|0;if((s|0)>-1){r=l;Q=77;break}l=l+1|0}while((l|0)<(u|0));if((Q|0)==77){Q=0;tv(Y,y,r,s,u,t,x,z);r=b[(k&o)>>1]|0}t=t+1|0}while((t|0)<(r<<16>>16|0))}}else q=D+48|0;r=c[(w&p)>>2]|0;if(r){if(c[(q&p)>>2]|0){Q=81;break}if(!v){uv(r,c[(D&p)+40>>2]|0);r=c[(w&p)>>2]|0}c[(z&p)>>2]=ss(c[(Y&p)>>2]|0,c[(z&p)>>2]|0,r)|0;c[(w&p)>>2]=0}m=c[(q&p)>>2]|0;if((m|0)!=0?(P=m+4|0,(c[(P&p)>>2]|0)>0):0){l=B+1|0;s=0;do{h=c[((c[(m&p)>>2]|0)+(s<<3)&p)>>2]|0;k=sv(A,h)|0;if((k|0)<0){Q=91;break g}else r=0;while(1){q=sv(c[(y+(r*72|0)&p)+24>>2]|0,h)|0;if((q|0)>-1)break;r=r+1|0;if((r|0)>=(l|0)){Q=91;break g}}tv(Y,y,r,q,l,k,x,z);s=s+1|0}while((s|0)<(c[(P&p)>>2]|0))}}B=B+1|0;if((B|0)>=((c[(y&p)>>2]|0)+-1|0))break f;else{C=C+72|0;D=D+72|0}}if((Q|0)==73){c[(Z&p)>>2]=0;th(Y,27928,Z);g=2;break a}else if((Q|0)==81){th(Y,27984,Z);g=2;break a}else if((Q|0)==91){c[(Z&p)>>2]=h;th(Y,28040,Z);g=2;break a}}while(0);h=c[(T&p)>>2]|0;r=(h|0)>0;h:do if(r){k=c[(T&p)+4>>2]|0;q=0;do{m=c[(k+(q*20|0)&p)>>2]|0;l=a[(m&n)>>0]|0;if(l<<24>>24==122){if((a[(c[(m&p)+16>>2]&n)>>0]|0)==116)break h}else if(l<<24>>24==116)break h;q=q+1|0}while((q|0)<(h|0))}else q=0;while(0);if((q|0)<(h|0)){P=c[(T&p)+4>>2]|0;q=c[((c[(Y&p)>>2]|0)&p)+24>>2]|0;if(!(q&32))O=0;else O=(q&64|0)==0;if(r){K=X+20|0;L=X+16|0;M=W+4|0;N=0;h=0;do{m=P+(N*20|0)|0;r=c[(m&p)>>2]|0;q=a[(r&n)>>0]|0;if(q<<24>>24==116){f=0;Q=110}else if(q<<24>>24==122?(a[(c[(r&p)+16>>2]&n)>>0]|0)==116:0){f=c[((c[(r&p)+12>>2]|0)&p)+8>>2]|0;Q=110}else Q=106;do if((Q|0)==106){h=lr(Y,h,r)|0;if(h){F=P+(N*20|0)+4|0;E=(c[(h&p)>>2]|0)+-1|0;D=c[(h&p)+4>>2]|0;c[(D+(E*20|0)&p)+4>>2]=c[(F&p)>>2];G=P+(N*20|0)+8|0;c[(D+(E*20|0)&p)+8>>2]=c[(G&p)>>2];c[(F&p)>>2]=0;c[(G&p)>>2]=0}c[(m&p)>>2]=0}else if((Q|0)==110){if((c[(S&p)>>2]|0)>0){G=(f|0)==0;H=(f|0)!=0;I=0;J=R;q=0;while(1){v=c[(J&p)+16>>2]|0;m=c[(J&p)+20>>2]|0;r=c[(J&p)+12>>2]|0;if(!r)r=c[(v&p)>>2]|0;if(a[(V&n)>>0]|0)break;if((m|0)!=0?(b[(m&o)+6>>1]&512)!=0:0){F=0;Q=125}else Q=117;do if((Q|0)==117){Q=0;if(!G?(dd(f,r)|0)!=0:0)break;s=c[(v&p)+68>>2]|0;if(!s){m=0;F=27816;Q=125;break}l=c[(K&p)>>2]|0;t=c[(L&p)>>2]|0;if((l|0)>0){k=0;while(1){m=k+1|0;if((c[(t+(k<<4)&p)+12>>2]|0)==(s|0)){m=k;break}if((m|0)<(l|0))k=m;else break}if((m|0)>-1)l=m;else{m=0;F=27816;Q=125;break}}else l=0;m=0;F=c[(t+(l<<4)&p)>>2]|0;Q=125}while(0);do if((Q|0)==125){Q=0;E=v+38|0;w=b[(E&o)>>1]|0;if(w<<16>>16<=0)break;A=v+4|0;z=(m|0)!=0;t=H&z;B=(I|0)>0;u=B&G;y=J+36|0;B=B^1;x=J+48|0;s=(F|0)==0;C=0;do{v=c[(A&p)>>2]|0;k=c[(v+(C*24|0)&p)>>2]|0;if(!(t?(vv(c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(C*20|0)&p)+8>>2]|0,0,f,0)|0)==0:0))Q=129;i:do if((Q|0)==129){Q=0;if(a[(v+(C*24|0)&n)+23>>0]&2)break;if(u){if(!((a[(y&n)>>0]&4)==0|B)){v=0;do{if((sv(c[(S+(v*72|0)&p)+24>>2]|0,k)|0)>-1){q=1;break i}v=v+1|0}while((v|0)<(I|0))}if((wv(c[(x&p)>>2]|0,k)|0)>-1){q=1;break}}w=tt(X,27,k)|0;if(!O?(c[(S&p)>>2]|0)<=1:0){l=k;D=0}else Q=137;do if((Q|0)==137){Q=0;w=Zq(Y,122,tt(X,27,r)|0,w,0)|0;if(!s)w=Zq(Y,122,tt(X,27,F)|0,w,0)|0;if(!O){l=k;D=0;break}c[(Z&p)>>2]=r;c[(Z&p)+4>>2]=k;D=uh(X,27824,Z)|0;l=D}while(0);h=lr(Y,h,w)|0;c[(W&p)>>2]=l;if(!l)w=0;else{w=l;while(1)if(!(a[(w&n)>>0]|0))break;else w=w+1|0;w=w-l&1073741823}c[(M&p)>>2]=w;mr(Y,h,W,0);do if(h){if(!(b[(U&o)>>1]&512))break;v=(c[(h&p)>>2]|0)+-1|0;k=c[(h&p)+4>>2]|0;if(z)w=kh(X,c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(C*20|0)&p)+8>>2]|0)|0;else{c[(Z&p)>>2]=F;c[(Z&p)+4>>2]=r;c[(Z&p)+8>>2]=l;w=uh(X,27832,Z)|0}c[(k+(v*20|0)&p)+8>>2]=w;w=k+(v*20|0)+13|0;a[(w&n)>>0]=a[(w&n)>>0]|2}while(0);mg(X,D);w=b[(E&o)>>1]|0;q=1}while(0);C=C+1|0}while((C|0)<(w<<16>>16|0))}while(0);I=I+1|0;if((I|0)>=(c[(S&p)>>2]|0))break;else J=J+72|0}if(q)break}if(!f){th(Y,27872,Z);break}else{c[(Z&p)>>2]=f;th(Y,27848,Z);break}}while(0);N=N+1|0}while((N|0)<(c[(T&p)>>2]|0))}else h=0;Nk(X,T);c[(g&p)>>2]=h}else h=c[(g&p)>>2]|0;if((h|0)!=0?(c[(h&p)>>2]|0)>(c[(X&p)+96>>2]|0):0){th(Y,27896,Z);g=0}else g=0}else g=2}else g=1}else g=2;while(0);i=_;return g|0}function ru(a,b){a=a|0;b=b|0;var d=0;d=c[(a&p)+12>>2]|0;while(1){a=c[(b&p)+56>>2]|0;if(!a)break;else b=a}b=c[(b&p)+68>>2]|0;if(b)c[(d&p)+532>>2]=c[(b&p)+4>>2];return}function su(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=f+6|0;i=e[(h&o)>>1]|0;if((i&32|0)==0?(b[(h&o)>>1]=i|32,l=c[(d&p)+12>>2]|0,j=c[(f&p)+32>>2]|0,g=c[(j&p)>>2]|0,(g|0)>0):0){f=0;h=j+8|0;while(1){d=c[(h&p)+16>>2]|0;if(((d|0)!=0?(a[(d&n)+44>>0]&2)!=0:0)?(k=c[(h&p)+20>>2]|0,(k|0)!=0):0){g=k;while(1){i=c[(g&p)+52>>2]|0;if(!i)break;else g=i}ju(l,d,g);g=c[(j&p)>>2]|0}f=f+1|0;if((f|0)>=(g|0))break;else h=h+72|0}}return}function tu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if((a|0)!=0?(d=c[(a&p)>>2]|0,(d|0)>0):0){g=c[(a&p)+4>>2]|0;f=0;do{e=c[(g+(f*20|0)&p)>>2]|0;if((e|0)!=0?(h=c[(e&p)+24>>2]|0,(h|0)>(c[(b&p)>>2]|0)):0){c[(b&p)>>2]=h;d=c[(a&p)>>2]|0}f=f+1|0}while((f|0)<(d|0))}return}function uu(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;if(((b|0)!=0?(Gs(a,c[(b&p)>>2]|0,d,e),Gs(a,c[(b&p)+40>>2]|0,d,e),Gs(a,c[(b&p)+48>>2]|0,d,e),g=b+44|0,c[(g&p)>>2]=Hs(a,c[(g&p)>>2]|0,d,e)|0,g=b+36|0,c[(g&p)>>2]=Hs(a,c[(g&p)>>2]|0,d,e)|0,uu(a,c[(b&p)+52>>2]|0,d,e),g=c[(b&p)+32>>2]|0,(g|0)!=0):0)?(f=c[(g&p)>>2]|0,(f|0)>0):0){b=f;f=g+8|0;while(1){uu(a,c[(f&p)+20>>2]|0,d,e);b=b+-1|0;if((b|0)<=0)break;else f=f+72|0}}return}function vu(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=c[(d&p)+48>>2]|0;l=c[(f&p)>>2]|0;g=c[(b&p)>>2]|0;m=Rs(g,l+1|0,1)|0;if((m|0)!=0&(l|0)>0){k=f+4|0;i=g+8|0;h=m+16|0;j=0;do{g=c[(k&p)>>2]|0;f=c[(g+(j*20|0)&p)>>2]|0;if(!(c[(f&p)+4>>2]&256)){g=Ss(b,d,(e[(g+(j*20|0)&o)+16>>1]|0)+-1|0)|0;if(!g)g=c[(i&p)>>2]|0;f=xv(b,f,c[(g&p)>>2]|0)|0;c[((c[(k&p)>>2]|0)+(j*20|0)&p)>>2]=f}else g=cu(b,f)|0;c[(m+(j<<2)&p)+20>>2]=g;a[((c[(h&p)>>2]|0)+j&n)>>0]=a[((c[(k&p)>>2]|0)+(j*20|0)&n)+12>>0]|0;j=j+1|0}while((j|0)!=(l|0))}return m|0}function wu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;h=c[(d&p)>>2]|0;a:do if((f|0)!=0?(a[(h&n)+65>>0]|0)==0:0){k=c[(f&p)>>2]|0;if((k|0)>(c[(h&p)+96>>2]|0)){c[(q&p)>>2]=g;th(d,27120,q);e=1;break}m=c[(e&p)>>2]|0;if((k|0)>0){h=k;e=0;l=c[(f&p)+4>>2]|0;while(1){k=b[(l&o)+16>>1]|0;if(k<<16>>16){k=k&65535;h=c[(m&p)>>2]|0;if((k|0)>(h|0))break;yv(d,m,k+-1|0,c[(l&p)>>2]|0,g,0);h=c[(f&p)>>2]|0}e=e+1|0;if((e|0)>=(h|0)){e=0;break a}else l=l+20|0}c[(q&p)>>2]=e+1;c[(q&p)+4>>2]=g;c[(q&p)+8>>2]=h;th(d,27064,q);e=1}else e=0}else e=0;while(0);i=r;return e|0}function xu(b,e,f,g,h,i,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;v=b+8|0;w=c[(v&p)>>2]|0;y=w+32|0;l=c[(y&p)>>2]|0;z=xs(w)|0;if(i){o=wh(w,46,i,0,0)|0;m=f+8|0;r=c[(m&p)>>2]|0;t=i+1|0;q=f+12|0;s=c[(q&p)>>2]|0;if(j)c[(j&p)>>2]=(c[(j&p)>>2]|0)+1;r=wh(w,42,r,t,s)|0;xh(w,r,j,-6);r=r+2|0;wh(w,43,r,z,r)|0;r=c[(y&p)>>2]|0;if(r>>>0>o>>>0)c[((c[(w&p)+4>>2]|0)+(o*20|0)&p)+8>>2]=r;c[((c[(w&p)+24>>2]|0)&p)+88>>2]=r+-1;wh(w,33,c[(m&p)>>2]|0,t,(c[(q&p)>>2]|0)+-1|0)|0;wh(w,25,1,i,0)|0}if(!(a[((c[(b&p)>>2]|0)&n)+65>>0]|0)){it(w,c[(e&p)+12>>2]|0,z);switch(d[(g&n)>>0]|0){case 11:{q=g+1|0;a[(q&n)>>0]=Bu(c[(c[((c[(e&p)>>2]|0)&p)+4>>2]&p)>>2]|0,a[(q&n)>>0]|0)|0;o=b+19|0;m=a[(o&n)>>0]|0;if(!(m<<24>>24)){u=b+72|0;o=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=o}else{u=m+-1<<24>>24;a[(o&n)>>0]=u;o=c[(b+((u&255)<<2)&p)+24>>2]|0}u=f+8|0;xh(w,wh(w,49,c[(u&p)>>2]|0,1,o)|0,q,1);dt(b,c[(u&p)>>2]|0,1);wh(w,110,c[(g&p)+4>>2]|0,o,0)|0;_r(b,o);break}case 12:case 14:{m=b+19|0;q=a[(m&n)>>0]|0;if(q<<24>>24){i=q+-1<<24>>24;a[(m&n)>>0]=i;o=c[(b+((i&255)<<2)&p)+24>>2]|0;if(!(i<<24>>24))u=12;else{q=q+-2<<24>>24;a[(m&n)>>0]=q;q=c[(b+((q&255)<<2)&p)+24>>2]|0;m=o}}else{u=b+72|0;o=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=o;u=12}if((u|0)==12){m=b+72|0;q=(c[(m&p)>>2]|0)+1|0;c[(m&p)>>2]=q;m=o}wh(w,49,c[(f&p)+8>>2]|0,c[(f&p)+12>>2]|0,m)|0;o=g+4|0;wh(w,74,c[(o&p)>>2]|0,q,0)|0;wh(w,75,c[(o&p)>>2]|0,m,q)|0;o=c[(w&p)+4>>2]|0;if(o)a[(o+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;_r(b,q);_r(b,m);break}case 13:{s=g+8|0;o=c[(s&p)>>2]|0;if(!o){o=c[(f&p)+12>>2]|0;q=b+60|0;m=c[(q&p)>>2]|0;j=b+56|0;r=c[(j&p)>>2]|0;if((r|0)<(o|0)){u=b+72|0;m=c[(u&p)>>2]|0;c[(u&p)>>2]=m+o;m=m+1|0}else{c[(q&p)>>2]=m+o;c[(j&p)>>2]=r-o}c[(s&p)>>2]=m;c[(g&p)+12>>2]=o}else{m=o;o=c[(g&p)+12>>2]|0}u=c[(f&p)+8>>2]|0;wh(c[(v&p)>>2]|0,32,u,m,o)|0;dt(b,u,o);wh(w,22,c[(g&p)+4>>2]|0,0,0)|0;break}case 10:{u=c[(f&p)+8>>2]|0;wh(c[(v&p)>>2]|0,32,u,c[(g&p)+4>>2]|0,1)|0;dt(b,u,1);break}default:{i=f+8|0;u=f+12|0;wh(w,35,c[(i&p)>>2]|0,c[(u&p)>>2]|0,0)|0;dt(b,c[(i&p)>>2]|0,c[(u&p)>>2]|0)}}m=c[(e&p)+8>>2]|0;if(m)wh(w,140,m,k,0)|0;m=c[(w&p)+24>>2]|0;o=~z;if((z|0)<0?(x=c[(m&p)+112>>2]|0,(x|0)!=0):0)c[(x+(o<<2)&p)>>2]=c[(y&p)>>2];c[(m&p)+88>>2]=(c[(y&p)>>2]|0)+-1;wh(w,18,h,0,0)|0}else l=0;return l|0}function yu(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+80|0;if((i|0)>=(j|0))fa();u=v+64|0;t=v+32|0;h=v;a[(u&n)>>0]=1;if((f|0)!=0?(c[(e&p)+4>>2]|0)!=0:0){k=d[(f&n)>>0]|0;a:do if((k|0)==154|(k|0)==156){s=b[(f&o)+32>>1]|0;h=s<<16>>16;if(e){r=f+28|0;b:while(1){while(1){q=c[(e&p)+4>>2]|0;m=c[(q&p)>>2]|0;c:do if((m|0)>0){f=c[(r&p)>>2]|0;k=0;while(1){l=k+1|0;if((c[(q+(k*72|0)&p)+48>>2]|0)==(f|0)){l=k;break c}if((l|0)<(m|0))k=l;else break}}else l=0;while(0);if((l|0)>=(m|0))break;m=c[(q+(l*72|0)&p)+24>>2]|0;l=c[(q+(l*72|0)&p)+28>>2]|0;f=(m|0)==0;if(!((e|0)!=0&f))break b}e=c[(e&p)+16>>2]|0;if(!e){h=0;break a}}if(!f){if(l){if(s<<16>>16<=-1){h=0;break}k=c[(l&p)>>2]|0;if((h|0)>=(c[(k&p)>>2]|0)){h=0;break}h=c[((c[(k&p)+4>>2]|0)+(h*20|0)&p)>>2]|0;c[(t&p)+4>>2]=c[(l&p)+32>>2];c[(t&p)+16>>2]=e;c[(t&p)>>2]=c[(e&p)>>2];h=yu(t,h,u)|0;break}if(c[(m&p)+68>>2]|0){if(s<<16>>16<0)h=b[(m&o)+36>>1]|0;if((h|0)<0)h=11144;else{s=c[(m&p)+4>>2]|0;t=c[(s+(h*24|0)&p)+12>>2]|0;a[(u&n)>>0]=a[(s+(h*24|0)&n)+22>>0]|0;h=t}}else h=0}else h=0}else h=0}else if((k|0)==119){s=c[(f&p)+20>>2]|0;t=c[(c[((c[(s&p)>>2]|0)&p)+4>>2]&p)>>2]|0;c[(h&p)+4>>2]=c[(s&p)+32>>2];c[(h&p)+16>>2]=e;c[(h&p)>>2]=c[(e&p)>>2];h=yu(h,t,u)|0}else h=0;while(0);if(g)a[(g&n)>>0]=a[(u&n)>>0]|0}else h=0;i=v;return h|0}function zu(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;j=c[(b&p)+8>>2]|0;h=b+19|0;i=a[(h&n)>>0]|0;if(!(i<<24>>24)){i=b+72|0;h=(c[(i&p)>>2]|0)+1|0;c[(i&p)>>2]=h}else{i=i+-1<<24>>24;a[(h&n)>>0]=i;h=c[(b+((i&255)<<2)&p)+24>>2]|0}xh(j,wh(j,69,d,e,g)|0,f,-14);wh(j,49,g,f,h)|0;wh(j,110,d,h,0)|0;_r(b,h);return}function Au(b,d,f,g,h,i){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=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;x=b+8|0;C=c[(x&p)>>2]|0;B=d+24|0;k=a[(B&n)>>0]&1;q=k<<24>>24==0;k=(k^1)&255;j=c[(d&p)>>2]|0;r=c[(j&p)>>2]|0;s=r+h+k|0;v=b+72|0;m=c[(v&p)>>2]|0;A=m+1|0;c[(v&p)>>2]=A;y=d+4|0;t=c[(y&p)>>2]|0;i=(i|0)==0;if(i){c[(v&p)>>2]=A+s;w=m+2|0}else w=g-r-k|0;bt(b,j,w,1);if(q)wh(C,73,c[(d&p)+8>>2]|0,w+r|0,0)|0;if(i){wh(c[(x&p)>>2]|0,32,g,k+r+w|0,h)|0;dt(b,g,h)}wh(C,49,w+t|0,s-t|0,A)|0;if((t|0)>0){j=c[(v&p)>>2]|0;h=j+1|0;i=c[(y&p)>>2]|0;c[(v&p)>>2]=i+j;if(q)g=wh(C,46,w+r|0,0,0)|0;else g=wh(C,59,c[(d&p)+8>>2]|0,0,0)|0;wh(C,42,h,w,c[(y&p)>>2]|0)|0;m=c[(d&p)+20>>2]|0;if((m|0)<0)m=(c[(C&p)+32>>2]|0)+-1|0;if(!(a[((c[(C&p)>>2]|0)&n)+65>>0]|0))m=(c[(C&p)+4>>2]|0)+(m*20|0)|0;else m=29120;if(!(a[((c[(b&p)>>2]|0)&n)+65>>0]|0)){c[(m&p)+8>>2]=s-i;m=m+16|0;i=c[(m&p)>>2]|0;fw(c[(i&p)+16>>2]|0,0,e[(i&o)+6>>1]|0)|0;xh(C,-1,i,-6);c[(m&p)>>2]=Us(b,c[(d&p)>>2]|0,t,(e[(i&o)+8>>1]|0)+-1|0)|0;m=C+32|0;i=c[(m&p)>>2]|0;l=i+1|0;wh(C,43,l,0,l)|0;l=xs(C)|0;c[(d&p)+16>>2]=l;k=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=k;c[(d&p)+12>>2]=k;wh(C,17,k,l,0)|0;l=d+8|0;wh(C,119,c[(l&p)>>2]|0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>g>>>0)c[((c[(C&p)+4>>2]|0)+(g*20|0)&p)+8>>2]=k;j=C+24|0;c[((c[(j&p)>>2]|0)&p)+88>>2]=k+-1;k=c[(y&p)>>2]|0;wh(c[(x&p)>>2]|0,32,w,h,k)|0;dt(b,w,k);k=c[(m&p)>>2]|0;if(k>>>0>i>>>0)c[((c[(C&p)+4>>2]|0)+(i*20|0)&p)+8>>2]=k;c[((c[(j&p)>>2]|0)&p)+88>>2]=k+-1;u=23}}else{l=d+8|0;u=23}if((u|0)==23?(wh(C,110-(a[(B&n)>>0]&1)|0,c[(l&p)>>2]|0,A,0)|0,z=c[(f&p)+8>>2]|0,(z|0)!=0):0){k=c[(f&p)+12>>2]|0;k=wh(C,139,(k|0)==0?z:k+1|0,0,-1)|0;wh(C,105,c[(l&p)>>2]|0,0,0)|0;wh(C,95,c[(l&p)>>2]|0,0,0)|0;j=c[(C&p)+32>>2]|0;if(j>>>0>k>>>0)c[((c[(C&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=j;c[((c[(C&p)+24>>2]|0)&p)+88>>2]=j+-1}return}function Bu(a,b){a=a|0;b=b|0;a=kv(a)|0;if(!(a<<24>>24==0|b<<24>>24==0))return (a<<24>>24>66|b<<24>>24>66?67:65)|0;if(!((a|b)<<24>>24))a=65;else a=(b&255)+(a&255)&255;return a|0}function Cu(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;do if(!((d|0)==0|(e|0)==0)){j=c[(d&p)+4>>2]|0;k=c[(e&p)+4>>2]|0;l=k|j;if(l&1024){if((j&1024&k|0)!=0?(c[(d&p)+8>>2]|0)==(c[(e&p)+8>>2]|0):0){g=0;break}g=2;break}g=a[(d&n)>>0]|0;h=a[(e&n)>>0]|0;if(g<<24>>24!=h<<24>>24){if(g<<24>>24==95?(Cu(c[(d&p)+12>>2]|0,e,f)|0)<2:0){g=1;break}if(h<<24>>24==95?(Cu(d,c[(e&p)+12>>2]|0,f)|0)<2:0){g=1;break}g=2;break}if((!(g<<24>>24==-100|g<<24>>24==-102)?(i=c[(d&p)+8>>2]|0,(i|0)!=0):0)?(_v(i,c[(e&p)+8>>2]|0)|0)!=0:0){g=g<<24>>24==95?1:2;break}if(!((k^j)&16)){if(!(l&16384)){if(l&2048){g=2;break}if(Cu(c[(d&p)+12>>2]|0,c[(e&p)+12>>2]|0,f)|0){g=2;break}if(Cu(c[(d&p)+16>>2]|0,c[(e&p)+16>>2]|0,f)|0){g=2;break}if(Ts(c[(d&p)+20>>2]|0,c[(e&p)+20>>2]|0,f)|0){g=2;break}if(!(l&8192)){if((b[(d&o)+32>>1]|0)!=(b[(e&o)+32>>1]|0)){g=2;break}h=c[(d&p)+28>>2]|0;g=c[(e&p)+28>>2]|0;if((h|0)!=(g|0)?(h|0)!=(f|0)|(g|0)>-1:0){g=2;break}}}g=0}else g=2}else g=(e|0)==(d|0)?0:2;while(0);return g|0}function Du(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=b+8|0;a[(f&n)>>0]=e;a:do if(d){while(1){if((a[(d&n)>>0]|0)!=e<<24>>24)break;Du(b,c[(d&p)+12>>2]|0,e);d=c[(d&p)+16>>2]|0;a[(f&n)>>0]=e;if(!d)break a}zv(b,d,0)|0}while(0);return}function Eu(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=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,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;F=c[(f&p)>>2]|0;T=c[(F&p)>>2]|0;V=c[(T&p)>>2]|0;O=V+65|0;do if(!(a[(O&n)>>0]|0)){W=f+20|0;k=c[(W&p)>>2]|0;h=k+(g*48|0)|0;ba=F+68|0;U=c[(h&p)>>2]|0;v=U+12|0;l=c[(v&p)>>2]|0;A=Av(ba,l)|0;z=G;j=a[(U&n)>>0]|0;x=j&255;do if(j<<24>>24==75){m=U+20|0;if(!(c[(U&p)+4>>2]&2048)){i=Lu(ba,c[(m&p)>>2]|0)|0;w=G;S=k+(g*48|0)+32|0;c[(S&p)>>2]=i;c[(S&p)+4>>2]=w;break}else{i=Bv(ba,c[(m&p)>>2]|0)|0;w=G;S=k+(g*48|0)+32|0;c[(S&p)>>2]=i;c[(S&p)+4>>2]=w;break}}else if(j<<24>>24==76){i=k+(g*48|0)+32|0;c[(i&p)>>2]=0;c[(i&p)+4>>2]=0;i=0;w=0}else{i=Av(ba,c[(U&p)+16>>2]|0)|0;w=G;S=k+(g*48|0)+32|0;c[(S&p)>>2]=i;c[(S&p)+4>>2]=w}while(0);t=Av(ba,U)|0;m=G;Q=U+4|0;if(!(c[(Q&p)>>2]&1)){R=0;S=0;y=m}else{r=b[(U&o)+36>>1]|0;q=c[(ba&p)>>2]|0;a:do if((q|0)>0){s=0;while(1){if((c[(F+(s<<2)&p)+72>>2]|0)==(r|0))break;s=s+1|0;if((s|0)>=(q|0)){s=0;r=0;break a}}s=iw(1,0,s|0)|0;r=G}else{s=0;r=0}while(0);R=jw(s|0,r|0,-1,-1)|0;S=G;t=s|t;y=r|m}u=k+(g*48|0)+40|0;c[(u&p)>>2]=t;c[(u&p)+4>>2]=y;u=k+(g*48|0)+8|0;c[(u&p)>>2]=-1;c[(k+(g*48|0)&p)+4>>2]=-1;C=k+(g*48|0)+18|0;b[(C&o)>>1]=0;s=x+-75|0;if(s>>>0<9?(499>>>(s&511)&1)!=0:0){b:do if(!l)l=0;else while(1){s=c[(l&p)+4>>2]|0;if(!(s&4096))break b;if(!(s&262144))q=l+12|0;else q=c[((c[(l&p)+20>>2]|0)&p)+4>>2]|0;l=c[(q&p)>>2]|0;if(!l){l=0;break}}while(0);s=c[(U&p)+16>>2]|0;c:do if(!s)s=0;else while(1){r=c[(s&p)+4>>2]|0;if(!(r&4096))break c;if(!(r&262144))s=s+12|0;else s=c[((c[(s&p)+20>>2]|0)&p)+4>>2]|0;s=c[(s&p)>>2]|0;if(!s){s=0;break}}while(0);w=(i&A|0)==0&(w&z|0)==0?4095:1024;if((a[(l&n)>>0]|0)==-102){m=c[(l&p)+28>>2]|0;c[(u&p)>>2]=m;c[(k+(g*48|0)&p)+12>>2]=b[(l&o)+32>>1];if((x|0)==75)q=1;else if((x|0)==76)q=128;else q=2<<x+-79&65535;b[(C&o)>>1]=q&w}else m=-1;if((s|0)!=0?(a[(s&n)>>0]|0)==-102:0){if((m|0)>-1){l=Mr(V,U,0,0)|0;if(a[(O&n)>>0]|0){Gk(V,l);break}m=zv(f,l,3)|0;if(!m)break;q=c[(W&p)>>2]|0;k=q+(m*48|0)|0;c[(q+(m*48|0)&p)+4>>2]=g;b[(q+(m*48|0)&o)+16>>1]=b[(q+(g*48|0)&o)+16>>1]|0;h=q+(g*48|0)+22|0;a[(h&n)>>0]=(a[(h&n)>>0]|0)+1<<24>>24;h=q+(g*48|0)|0;s=q+(g*48|0)+20|0;b[(s&o)>>1]=e[(s&o)>>1]|8;if(((a[(U&n)>>0]|0)==79?(c[(Q&p)>>2]&1|0)==0:0)?(b[(V&o)+60>>1]&512)==0:0){v=q+(g*48|0)+18|0;b[(v&o)>>1]=e[(v&o)>>1]|1024;v=1024}else v=0}else{v=0;l=U;k=h}j=l+16|0;r=(c[(j&p)>>2]|0)+4|0;q=c[(r&p)>>2]|0;m=q&256;i=l+12|0;s=c[(i&p)>>2]|0;do if((m|0)==(c[(s&p)+4>>2]&256|0)){if(m){c[(r&p)>>2]=q&-257;break}s=(cu(T,s)|0)==0;q=c[(i&p)>>2]|0;if(s)s=q;else{s=q+4|0;c[(s&p)>>2]=c[(s&p)>>2]|256;s=q}}while(0);q=c[(j&p)>>2]|0;c[(j&p)>>2]=s;c[(i&p)>>2]=q;m=a[(l&n)>>0]|0;if((m&255)>79){m=((m&255)+176^2)+80&255;a[(l&n)>>0]=m}l=c[(q&p)+4>>2]|0;if(l&4096)do{if(!(l&262144))q=q+12|0;else q=c[((c[(q&p)+20>>2]|0)&p)+4>>2]|0;q=c[(q&p)>>2]|0;l=c[(q&p)+4>>2]|0}while((l&4096|0)!=0);c[(k&p)+8>>2]=c[(q&p)+28>>2];c[(k&p)+12>>2]=b[(q&o)+32>>1];l=k+32|0;c[(l&p)>>2]=R|A;c[(l&p)+4>>2]=S|z;l=k+40|0;c[(l&p)>>2]=t;c[(l&p)+4>>2]=y;l=m&255;if((l|0)==76)l=128;else if((l|0)==75)l=1;else l=2<<l+-79&65535;b[(k&o)+18>>1]=l+v&(w&65535)}}else K=59;do if((K|0)==59){if(j<<24>>24==74){if((a[(f&n)+8>>0]|0)!=72)break;m=(c[(U&p)+20>>2]|0)+4|0;i=U+36|0;j=0;while(1){t=d[(j&n)+34144>>0]|0;l=Mr(V,l,0,0)|0;l=Zq(T,t,l,Mr(V,c[((c[(m&p)>>2]|0)+(j*20|0)&p)>>2]|0,0,0)|0,0)|0;if(l){t=l+4|0;c[(t&p)>>2]=c[(t&p)>>2]|c[(Q&p)>>2]&1;b[(l&o)+36>>1]=b[(i&o)>>1]|0}t=zv(f,l,3)|0;Eu(f,t);k=c[(W&p)>>2]|0;c[(k+(t*48|0)&p)+4>>2]=g;b[(k+(t*48|0)&o)+16>>1]=b[(k+(g*48|0)&o)+16>>1]|0;t=k+(g*48|0)+22|0;a[(t&n)>>0]=(a[(t&n)>>0]|0)+1<<24>>24;j=j+1|0;if((j|0)==2)break;l=c[(v&p)>>2]|0}h=k+(g*48|0)|0;break}else if(j<<24>>24!=71)break;A=mh(V,416,0)|0;d:do if(A){fw(A|0,0,416)|0;c[(k+(g*48|0)&p)+12>>2]=A;D=k+(g*48|0)+20|0;b[(D&o)>>1]=e[(D&o)>>1]|16;c[(A&p)>>2]=F;c[(A&p)+4>>2]=0;D=A+12|0;c[(D&p)>>2]=0;c[(A&p)+16>>2]=8;E=A+20|0;c[(E&p)>>2]=A+24;Du(A,U,71);m=c[(D&p)>>2]|0;if((m|0)>0)do{m=m+-1|0;Eu(A,m)}while((m|0)>0);if(!(a[(O&n)>>0]|0)){s=c[(D&p)>>2]|0;if((s|0)>0){z=F+68|0;y=-1;x=-1;i=-1;h=-1;w=c[(E&p)>>2]|0;while(1){s=s+-1|0;r=w+18|0;v=b[(r&o)>>1]|0;if(!(v&255)){l=mh(V,408,0)|0;if(!l){m=y;q=x;i=0;h=0}else{c[(w&p)+12>>2]=l;q=w+20|0;b[(q&o)>>1]=e[(q&o)>>1]|32;b[(r&o)>>1]=512;c[(l&p)>>2]=c[(f&p)>>2];q=l+4|0;c[(q&p)>>2]=0;m=l+12|0;c[(m&p)>>2]=0;c[(l&p)+16>>2]=8;t=l+20|0;c[(t&p)>>2]=l+24;Du(l,c[(w&p)>>2]|0,72);r=c[(m&p)>>2]|0;if((r|0)>0)do{r=r+-1|0;Eu(l,r)}while((r|0)>0);c[(q&p)>>2]=f;if((a[(O&n)>>0]|0)==0?(B=c[(m&p)>>2]|0,(B|0)>0):0){r=0;q=0;h=0;u=c[(t&p)>>2]|0;while(1){m=(d[(c[(u&p)>>2]&n)>>0]|0)+-75|0;do if(m>>>0<9){if(!(499>>>(m&511)&1))break;l=c[(u&p)+8>>2]|0;j=c[(z&p)>>2]|0;e:do if((j|0)>0){m=0;while(1){if((c[(F+(m<<2)&p)+72>>2]|0)==(l|0))break;m=m+1|0;if((m|0)>=(j|0)){m=0;l=0;break e}}m=iw(1,0,m|0)|0;l=G}else{m=0;l=0}while(0);r=m|r;q=l|q}while(0);h=h+1|0;if((h|0)>=(B|0))break;else u=u+48|0}}else{r=0;q=0}m=r&y;q=q&x;i=0;h=0}}else{q=b[(w&o)+20>>1]|0;if(!(q&8)){t=c[(w&p)+8>>2]|0;l=c[(z&p)>>2]|0;m=(l|0)>0;f:do if(m){r=0;while(1){if((c[(F+(r<<2)&p)+72>>2]|0)==(t|0))break;r=r+1|0;if((r|0)>=(l|0)){j=0;u=0;break f}}j=iw(1,0,r|0)|0;u=G}else{j=0;u=0}while(0);if(!(q&2)){r=j;t=u}else{t=c[((c[(E&p)>>2]|0)+((c[(w&p)+4>>2]|0)*48|0)&p)+8>>2]|0;g:do if(m){r=0;while(1){if((c[(F+(r<<2)&p)+72>>2]|0)==(t|0))break;r=r+1|0;if((r|0)>=(l|0)){r=0;t=0;break g}}r=iw(1,0,r|0)|0;t=G}else{r=0;t=0}while(0);r=r|j;t=t|u}l=(v&2)==0;m=r&y;q=t&x;i=l?0:r&i;h=l?0:t&h}else{m=y;q=x}}r=(m|0)!=0|(q|0)!=0;if(!((s|0)>0&r))break;else{y=m;x=q;w=w+48|0}}t=A+408|0;c[(t&p)>>2]=m;c[(t&p)+4>>2]=q;b[(C&o)>>1]=(m|0)==0&(q|0)==0?0:256;if(r)K=104}else{i=A+408|0;c[(i&p)>>2]=-1;c[(i&p)+4>>2]=-1;b[(C&o)>>1]=256;i=-1;h=-1;K=104}h:do if((K|0)==104)if((c[(D&p)>>2]|0)==2){l=c[(E&p)>>2]|0;m=0;i:while(1){j=m+1|0;if((b[(l&o)+18>>1]|0)!=512)if(!m)r=l;else break h;else{q=c[(l&p)+12>>2]|0;if((c[(q&p)+12>>2]|0)<=(m|0))break h;r=(c[(q&p)+20>>2]|0)+(m*48|0)|0}if(!r)break h;else s=0;while(1){if((b[(l&o)+66>>1]|0)==512){q=c[(l&p)+60>>2]|0;if((c[(q&p)+12>>2]|0)<=(s|0)){m=j;continue i}q=(c[(q&p)+20>>2]|0)+(s*48|0)|0;if(!q){m=j;continue i}}else if(!s)q=l+48|0;else{m=j;continue i}Cv(f,r,q);l=c[(E&p)>>2]|0;s=s+1|0}}}while(0);if(!((i|0)==0&(h|0)==0)){u=F+68|0;t=-1;v=0;while(1){q=c[(D&p)>>2]|0;if((q|0)<=0)break d;s=c[(E&p)>>2]|0;while(1){j=q;q=q+-1|0;l=s+20|0;b[(l&o)>>1]=e[(l&o)>>1]&65471;l=c[(s&p)+8>>2]|0;if((l|0)!=(t|0)){m=c[(u&p)>>2]|0;j:do if((m|0)>0){r=0;while(1){if((c[(F+(r<<2)&p)+72>>2]|0)==(l|0))break;r=r+1|0;if((r|0)>=(m|0)){r=0;m=0;break j}}r=iw(1,0,r|0)|0;m=G}else{r=0;m=0}while(0);if(!((r&i|0)==0&(m&h|0)==0)){r=j;break}}if((q|0)<=0)break d;else s=s+48|0}m=c[(s&p)+12>>2]|0;if((r|0)<1)break d;else r=l;while(1){if((r|0)==(l|0)){if((c[(s&p)+12>>2]|0)!=(m|0)){q=l;m=1;break}t=kv(c[((c[(s&p)>>2]|0)&p)+16>>2]|0)|0;if(!(t<<24>>24==0|t<<24>>24==(kv(c[((c[(s&p)>>2]|0)&p)+12>>2]|0)|0)<<24>>24)){q=l;m=1;break}t=s+20|0;b[(t&o)>>1]=e[(t&o)>>1]|64}else{t=s+20|0;b[(t&o)>>1]=e[(t&o)>>1]&65471}if((q|0)<=0){q=l;m=0;break}r=c[(s&p)+56>>2]|0;q=q+-1|0;s=s+48|0}v=v+1|0;if(!((v|0)<2&m))break;else t=q}if(!m){l=c[(D&p)>>2]|0;if((l|0)>0){m=0;i=0;j=c[(E&p)>>2]|0;while(1){l=l+-1|0;if(b[(j&o)+20>>1]&64){m=Mr(V,c[((c[(j&p)>>2]|0)&p)+16>>2]|0,0,0)|0;i=lr(c[(F&p)>>2]|0,i,m)|0;m=c[((c[(j&p)>>2]|0)&p)+12>>2]|0}if((l|0)<=0){l=m;break}else j=j+48|0}}else{l=0;i=0}j=Zq(T,75,Mr(V,l,0,0)|0,0,0)|0;if(!j)Nk(V,i);else{t=j+4|0;c[(t&p)>>2]=c[(t&p)>>2]|c[(Q&p)>>2]&1;b[(j&o)+36>>1]=b[(U&o)+36>>1]|0;c[(j&p)+20>>2]=i;t=zv(f,j,3)|0;Eu(f,t);k=c[(W&p)>>2]|0;c[(k+(t*48|0)&p)+4>>2]=g;b[(k+(t*48|0)&o)+16>>1]=b[(k+(g*48|0)&o)+16>>1]|0;t=k+(g*48|0)+22|0;a[(t&n)>>0]=(a[(t&n)>>0]|0)+1<<24>>24}b[(k+(g*48|0)&o)+18>>1]=2048}}}}else c[(k+(g*48|0)&p)+12>>2]=0;while(0);h=(c[(W&p)>>2]|0)+(g*48|0)|0}while(0);k:do if((a[(f&n)+8>>0]|0)==72){x=c[(T&p)>>2]|0;if((a[(U&n)>>0]|0)==-103){w=U+20|0;t=c[(w&p)>>2]|0;if((t|0)!=0?(c[(t&p)>>2]|0)==2:0){m=c[(U&p)+8>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}l=Sh(x,m,l,2,1,0)|0;if(((((l|0)!=0?(H=b[(l&o)+2>>1]|0,(H&4)!=0):0)?(N=c[(l&p)+4>>2]|0,L=a[(N&n)>>0]|0,M=a[(N&n)+1>>0]|0,N=a[(N&n)+2>>0]|0,P=(H&65535)>>>3&1,I=(c[(w&p)>>2]|0)+4|0,J=c[((c[(I&p)>>2]|0)&p)+20>>2]|0,(a[(J&n)>>0]|0)==-102):0)?(kv(J)|0)<<24>>24==66:0)?(a[((c[(J&p)+44>>2]|0)&n)+44>>0]&16)==0:0){k=c[(c[(I&p)>>2]&p)>>2]|0;l:do if(!k)k=0;else while(1){j=c[(k&p)+4>>2]|0;if(!(j&4096))break l;if(!(j&262144))k=k+12|0;else k=c[((c[(k&p)+20>>2]|0)&p)+4>>2]|0;k=c[(k&p)>>2]|0;if(!k){k=0;break}}while(0);j=a[(k&n)>>0]|0;u=j<<24>>24==-121;do if(u){l=c[(T&p)+476>>2]|0;r=b[(k&o)+32>>1]|0;s=r<<16>>16;do if(!l){i=0;m=0}else{K=s+-1|0;J=c[(l&p)+60>>2]|0;i=J+(K*40|0)|0;if(b[(J+(K*40|0)&o)+8>>1]&1){i=0;m=0;break}m=c[(l&p)>>2]|0;q=mh(m,40,0)|0;if(!q){i=0;m=0;break}l=q+0|0;j=l+40|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(j|0));K=q+8|0;b[(K&o)>>1]=1;c[(q&p)+32>>2]=m;_g(q,i)|0;if((b[(K&o)>>1]&15)!=2){i=q;m=0;break}i=q;m=Sg(q,1)|0}while(0);l=c[(T&p)+8>>2]|0;if(r<<16>>16>32){c[(l&p)+188>>2]=-1;t=m;K=177;break}else{t=l+188|0;c[(t&p)>>2]=c[(t&p)>>2]|1<<s+-1;t=m;K=177;break}}else if(j<<24>>24==97){i=0;t=c[(k&p)+8>>2]|0;K=177}else i=0;while(0);do if((K|0)==177)if(t){m=0;while(1){K=a[(t+m&n)>>0]|0;j=K<<24>>24==L<<24>>24;l=m+1|0;if(K<<24>>24!=N<<24>>24&((K<<24>>24==0|j|K<<24>>24==M<<24>>24)^1))m=l;else break}if(m){if((a[(t+m+-1&n)>>0]|0)==-1)break;if(j)l=(a[(t+l&n)>>0]|0)==0;else l=0;q=l&1;v=tt(x,97,t)|0;if(v)a[((c[(v&p)+8>>2]|0)+m&n)>>0]=0;do if(u){m=c[(T&p)+8>>2]|0;j=b[(k&o)+32>>1]|0;if(j<<16>>16>32)c[(m&p)+188>>2]=-1;else{N=m+188|0;c[(N&p)>>2]=c[(N&p)>>2]|1<<(j<<16>>16)+-1}if(!l){q=0;break}if(!(a[((c[(k&p)+8>>2]|0)&n)+1>>0]|0))break;j=T+19|0;l=a[(j&n)>>0]|0;if(!(l<<24>>24)){N=T+72|0;j=(c[(N&p)>>2]|0)+1|0;c[(N&p)>>2]=j}else{N=l+-1<<24>>24;a[(j&n)>>0]=N;j=c[(T+((N&255)<<2)&p)+24>>2]|0}is(T,k,j)|0;k=c[(m&p)+32>>2]|0;if(k>>>0>0)c[((c[(m&p)+4>>2]|0)+((k+-1|0)*20|0)&p)+12>>2]=0;_r(T,j)}while(0);Mh(i);if(!t){K=217;break k}r=c[((c[((c[(w&p)>>2]|0)&p)+4>>2]|0)&p)+20>>2]|0;m=Mr(V,v,0,0)|0;s=P<<16>>16!=0;do if(!s){if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;i=h+20|0;b[(i&o)>>1]=e[(i&o)>>1]|1024;i=v+8|0;l=c[(i&p)>>2]|0;k=a[(l&n)>>0]|0;if(!(k<<24>>24))break;h=m+8|0;j=0;do{N=k&255;a[(l&n)>>0]=((d[(N&n)+10368>>0]|223)^32)&N;a[((c[(h&p)>>2]|0)+j&n)>>0]=a[(N&n)+9328>>0]|0;j=j+1|0;l=(c[(i&p)>>2]|0)+j|0;k=a[(l&n)>>0]|0}while(k<<24>>24!=0)}while(0);if(!(a[(O&n)>>0]|0)){k=c[(m&p)+8>>2]|0;if(!k)j=-1;else{j=k;while(1)if(!(a[(j&n)>>0]|0))break;else j=j+1|0;j=(j-k&1073741823)+-1|0}k=k+j|0;j=a[(k&n)>>0]|0;if(s)i=q;else{i=j<<24>>24==64?0:q;j=a[(j&255&n)+9328>>0]|0}a[(k&n)>>0]=(j&255)+1;l=i}else l=q;i=P<<16>>16==0?13752:11152;j=Zq(T,83,xv(T,Mr(V,r,0,0)|0,i)|0,v,0)|0;if(j){P=j+4|0;c[(P&p)>>2]=c[(P&p)>>2]|c[(Q&p)>>2]&1;b[(j&o)+36>>1]=b[(U&o)+36>>1]|0}k=zv(f,j,259)|0;Eu(f,k);i=Zq(T,82,xv(T,Mr(V,r,0,0)|0,i)|0,m,0)|0;if(i){P=i+4|0;c[(P&p)>>2]=c[(P&p)>>2]|c[(Q&p)>>2]&1;b[(i&o)+36>>1]=b[(U&o)+36>>1]|0}i=zv(f,i,259)|0;Eu(f,i);j=c[(W&p)>>2]|0;h=j+(g*48|0)|0;if(!l){K=217;break k}c[(j+(k*48|0)&p)+4>>2]=g;Q=j+(g*48|0)+16|0;b[(j+(k*48|0)&o)+16>>1]=b[(Q&o)>>1]|0;K=j+(g*48|0)+22|0;a[(K&n)>>0]=(a[(K&n)>>0]|0)+1<<24>>24;c[(j+(i*48|0)&p)+4>>2]=g;b[(j+(i*48|0)&o)+16>>1]=b[(Q&o)>>1]|0;a[(K&n)>>0]=(a[(K&n)>>0]|0)+1<<24>>24;K=217;break k}}while(0);Mh(i);K=217}else K=217}else K=217}}else K=217;while(0);if((K|0)==217)if(((((a[(U&n)>>0]|0)==-103?(dd(c[(U&p)+8>>2]|0,31416)|0)==0:0)?(X=c[(U&p)+20>>2]|0,(c[(X&p)>>2]|0)==2):0)?(Y=c[(X&p)+4>>2]|0,Z=c[(Y&p)+20>>2]|0,(a[(Z&n)>>0]|0)==-102):0)?(_=c[(Y&p)>>2]|0,$=Av(ba,_)|0,aa=G,ba=Av(ba,Z)|0,(ba&$|0)==0&(G&aa|0)==0):0){ba=zv(f,Zq(T,51,0,Mr(V,_,0,0)|0,0)|0,3)|0;h=c[(W&p)>>2]|0;_=h+(ba*48|0)+32|0;c[(_&p)>>2]=$;c[(_&p)+4>>2]=aa;c[(h+(ba*48|0)&p)+8>>2]=c[(Z&p)+28>>2];c[(h+(ba*48|0)&p)+12>>2]=b[(Z&o)+32>>1];b[(h+(ba*48|0)&o)+18>>1]=64;c[(h+(ba*48|0)&p)+4>>2]=g;b[(h+(ba*48|0)&o)+16>>1]=b[(h+(g*48|0)&o)+16>>1]|0;$=h+(g*48|0)+22|0;a[($&n)>>0]=(a[($&n)>>0]|0)+1<<24>>24;$=h+(g*48|0)+20|0;b[($&o)>>1]=e[($&o)>>1]|8;$=h+(g*48|0)+40|0;aa=c[($&p)+4>>2]|0;ba=h+(ba*48|0)+40|0;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;h=h+(g*48|0)|0}g=h+32|0;aa=g;ba=c[(aa&p)+4>>2]|S;c[(g&p)>>2]=c[(aa&p)>>2]|R;c[(g&p)+4>>2]=ba}while(0);return}function Fu(a,d,e,f,g,h,k){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0;m=i;i=i+112|0;if((i|0)>=(j|0))fa();l=m;h=Dv(l,a,d,e,h,k)|0;a:do if(!h)h=0;else{k=h;h=0;do{d=k+32|0;e=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((e&f|0)==0&(d&g|0)==0){if((e|0)==0&(d|0)==0?(b[(k&o)+18>>1]&2)!=0:0){h=k;break a}h=(h|0)==0?k:h}k=Ev(l)|0}while((k|0)!=0)}while(0);i=m;return h|0}function Gu(e,f,g){e=e|0;f=f|0;g=g|0;var l=0,m=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0.0,B=0,C=0,D=0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0;pa=i;i=i+16|0;if((i|0)>=(j|0))fa();ma=pa;z=c[(e&p)>>2]|0;ka=c[(z&p)>>2]|0;na=c[(ka&p)>>2]|0;ja=c[(e&p)+4>>2]|0;la=c[(e&p)+12>>2]|0;y=d[(la&n)+16>>0]|0;z=c[(z&p)+4>>2]|0;ha=c[(z+(y*72|0)&p)+24>>2]|0;B=c[(e&p)+8>>2]|0;ia=ja+20|0;ja=ja+12|0;l=c[(ja&p)>>2]|0;if((l|0)>0){r=c[(z+(y*72|0)&p)+48>>2]|0;s=0;m=0;t=c[(ia&p)>>2]|0;while(1){if((c[(t&p)+8>>2]|0)==(r|0))m=((b[(t&o)+18>>1]&-1153)<<16>>16!=0&1)+m|0;s=s+1|0;if((s|0)==(l|0))break;else t=t+48|0}}else m=0;if(!B)x=0;else{v=c[(B&p)>>2]|0;a:do if((v|0)>0){t=c[(B&p)+4>>2]|0;s=z+(y*72|0)+48|0;u=0;while(1){r=c[(t+(u*20|0)&p)>>2]|0;if((a[(r&n)>>0]|0)!=-102){l=u;break a}l=u+1|0;if((c[(r&p)+28>>2]|0)!=(c[(s&p)>>2]|0)){l=u;break a}if((l|0)<(v|0))u=l;else break}}else l=0;while(0);x=(l|0)==(v|0)?v:0}l=(m*20|0)+56+(x<<3)|0;ga=mh(na,l,0)|0;do if(!ga){th(ka,15776,ma);l=7}else{fw(ga|0,0,l|0)|0;l=ga+56|0;w=l+(m*12|0)|0;c[(ga&p)>>2]=m;aa=ga+8|0;c[(aa&p)>>2]=x;ca=ga+4|0;c[(ca&p)>>2]=l;c[(ga&p)+12>>2]=w;ea=ga+16|0;c[(ea&p)>>2]=w+(x<<3);r=c[(ja&p)>>2]|0;if((r|0)>0){u=c[(z+(y*72|0)&p)+48>>2]|0;t=0;v=0;s=c[(ia&p)>>2]|0;while(1){if((c[(s&p)+8>>2]|0)==(u|0)?(C=b[(s&o)+18>>1]|0,(C&-1153)<<16>>16!=0):0){c[(l+(v*12|0)&p)>>2]=c[(s&p)+12>>2];c[(l+(v*12|0)&p)+8>>2]=t;a[(l+(v*12|0)&n)+4>>0]=(C&255)==1?2:C&255;v=v+1|0}t=t+1|0;if((t|0)==(r|0))break;else s=s+48|0}}if((x|0)>0){l=c[(B&p)+4>>2]|0;m=0;do{c[(w+(m<<3)&p)>>2]=b[((c[(l+(m*20|0)&p)>>2]|0)&o)+32>>1];a[(w+(m<<3)&n)+4>>0]=a[(l+(m*20|0)&n)+12>>0]|0;m=m+1|0}while((m|0)!=(x|0))}E=la;c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;E=la+18|0;b[(E&o)>>1]=0;c[(la&p)+36>>2]=1024;F=la+40|0;b[(F&o)>>1]=0;H=la+28|0;a[(H&n)>>0]=0;I=c[(ea&p)>>2]|0;J=c[(ga&p)>>2]|0;if(Nu(na,la,J)|0){mg(na,ga);l=7;break}_=ga+28|0;$=ga+24|0;K=ga+20|0;L=ga+32|0;M=ga+40|0;N=ga+48|0;O=ha+60|0;P=ka+64|0;S=(J|0)>0;T=la+30|0;U=la+24|0;V=la+32|0;W=la+29|0;X=la+20|0;Y=la+22|0;Z=la+48|0;z=0;C=0;B=0;b:while(1){if(!((C|0)!=0|(z&1|0)==0))if((z|0)>2){l=0;break}else D=z+1|0;else D=z;if((B|0)==0&(D|0)>1){l=0;break}t=c[(ga&p)>>2]|0;if((t|0)>0){m=c[(ia&p)>>2]|0;r=0;s=c[(ca&p)>>2]|0;while(1){z=c[(s&p)+8>>2]|0;if((D|0)==2)a[(s&n)+5>>0]=b[(m+(z*48|0)&o)+18>>1]&1^1;else if(!D){l=s+5|0;a[(l&n)>>0]=0;y=(b[(m+(z*48|0)&o)+18>>1]&1)==0;C=y?C:1;z=m+(z*48|0)+32|0;z=(c[(z&p)>>2]|0)!=0|(c[(z&p)+4>>2]|0)!=0;if(z|y^1)B=z?1:B;else a[(l&n)>>0]=1}else if((D|0)==1){y=m+(z*48|0)+32|0;a[(s&n)+5>>0]=(c[(y&p)>>2]|0)==0&(c[(y&p)+4>>2]|0)==0&1}else a[(s&n)+5>>0]=1;r=r+1|0;if((r|0)>=(t|0)){y=C;break}else s=s+12|0}}else y=C;fw(I|0,0,t<<3|0)|0;if(c[(_&p)>>2]|0)Wc(c[($&p)>>2]|0);c[(K&p)>>2]=0;c[(K&p)+4>>2]=0;c[(K&p)+8>>2]=0;c[(K&p)+12>>2]=0;h[(M&q)>>3]=5.e+98;l=N;c[(l&p)>>2]=25;c[(l&p)+4>>2]=0;l=c[(ka&p)>>2]|0;z=O;while(1){z=c[(z&p)>>2]|0;if((c[(z&p)>>2]|0)==(l|0))break;else z=z+24|0}C=c[(z&p)+8>>2]|0;z=rc[c[((c[(C&p)>>2]|0)&p)+12>>2]&127](C,ga)|0;do if((z|0)==7)a[((c[(ka&p)>>2]|0)&n)+65>>0]=1;else if(z){l=c[(C&p)+8>>2]|0;if(l){c[(ma&p)>>2]=l;th(ka,10344,ma);break}if((z|0)!=516){z=z&255;if(z>>>0>26|(z|0)==2)z=16328;else z=c[(z<<2&p)+15488>>2]|0}else z=16344;c[(ma&p)>>2]=z;th(ka,10344,ma)}while(0);z=C+8|0;Wc(c[(z&p)>>2]|0);c[(z&p)>>2]=0;z=c[(ga&p)>>2]|0;if((z|0)>0){l=0;do{if((a[((c[(ca&p)>>2]|0)+(l*12|0)&n)+5>>0]|0)==0?(c[((c[(ea&p)>>2]|0)+(l<<3)&p)>>2]|0)>0:0){c[(ma&p)>>2]=c[(ha&p)>>2];th(ka,34096,ma);z=c[(ga&p)>>2]|0}l=l+1|0}while((l|0)<(z|0))}l=c[(P&p)>>2]|0;if(l)break;C=c[(ca&p)>>2]|0;x=la;c[(x&p)>>2]=f;c[(x&p)+4>>2]=g;c:do if(S){z=0;do{c[((c[(Z&p)>>2]|0)+(z<<2)&p)>>2]=0;z=z+1|0}while((z|0)!=(J|0));b[(T&o)>>1]=0;if(S){r=f;m=g;l=0;x=0;z=-1;while(1){t=c[(I+(x<<3)&p)>>2]|0;u=t+-1|0;do if((t|0)>0){v=c[(C&p)+8>>2]|0;if((t|0)>(J|0)|(v|0)<0){oa=65;break b}if((v|0)>=(c[(ja&p)>>2]|0)){oa=65;break b}s=(c[(Z&p)>>2]|0)+(u<<2)|0;if(c[(s&p)>>2]|0){oa=65;break b}w=c[(ia&p)>>2]|0;qa=w+(v*48|0)+32|0;r=r|c[(qa&p)>>2];m=m|c[(qa&p)+4>>2];qa=la;c[(qa&p)>>2]=r;c[(qa&p)+4>>2]=m;c[(s&p)>>2]=w+(v*48|0);z=(u|0)>(z|0)?u:z;do if((t|0)<17){if(!(a[(I+(x<<3)&n)+4>>0]|0))break;l=(l&65535|1<<u)&65535;b[(T&o)>>1]=l}while(0);if(!(b[(w+(v*48|0)&o)+18>>1]&1))break;if(!(a[(I+(x<<3)&n)+4>>0]|0))break c;c[(L&p)>>2]=0}while(0);x=x+1|0;if((x|0)>=(J|0)){oa=73;break}else C=C+12|0}}else{z=-1;oa=73}}else{b[(T&o)>>1]=0;z=-1;oa=73}while(0);if((oa|0)==73){oa=0;b[(F&o)>>1]=z+1;c[(U&p)>>2]=c[(K&p)>>2];a[(H&n)>>0]=c[(_&p)>>2];c[(_&p)>>2]=0;c[(V&p)>>2]=c[($&p)>>2];if(!(c[(L&p)>>2]|0))z=0;else z=c[(aa&p)>>2]&255;a[(W&n)>>0]=z;b[(E&o)>>1]=0;A=+h[(M&q)>>3];h[(k&q)>>3]=A;z=c[(k&p)>>2]|0;l=c[(k&p)+4>>2]|0;do if(!(A<=1.0))if(!(A<=2.0e9)){z=mw(z|0,l|0,52)|0;z=jw(z|0,G|0,64514,0)|0;z=(z<<16>>16)*10&65535;break}else{z=fs(~~A>>>0,+R(A)>=1.0?(A>0.0?~~+da(+Q(A/4294967296.0),4294967295.0)>>>0:~~+ba((A-+(~~A>>>0))/4294967296.0)>>>0):0)|0;break}else z=0;while(0);b[(X&o)>>1]=z;x=N;b[(Y&o)>>1]=fs(c[(x&p)>>2]|0,c[(x&p)+4>>2]|0)|0;Fv(e,la)|0;if(a[(H&n)>>0]|0){Wc(c[(V&p)>>2]|0);a[(H&n)>>0]=0}}z=D+1|0;if((z|0)>=4){l=0;break}else C=y}if((oa|0)==65){c[(ma&p)>>2]=c[(ha&p)>>2];th(ka,34064,ma);l=1}if(c[(_&p)>>2]|0)Wc(c[($&p)>>2]|0);mg(na,ga)}while(0);i=pa;return l|0}function Hu(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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,ga=0;ga=i;i=i+64|0;if((i|0)>=(j|0))fa();s=ga;r=ga+56|0;q=ga+52|0;b[(q&o)>>1]=-1;ca=c[(f&p)+12>>2]|0;da=c[(f&p)>>2]|0;J=c[(da&p)+4>>2]|0;K=d[(ca&n)+16>>0]|0;Z=J+(K*72|0)+8|0;m=J+(K*72|0)+24|0;L=c[(m&p)>>2]|0;_=c[(f&p)+4>>2]|0;$=J+(K*72|0)+76|0;k=c[($&p)>>2]|0;do if(!k){if(a[(L&n)+44>>0]&32){s=c[(L&p)+8>>2]|0;break}k=s+0|0;l=k+52|0;do{c[(k&p)>>2]=0;k=k+4|0}while((k|0)<(l|0));b[(s&o)+46>>1]=1;b[(s&o)+48>>1]=1;c[(s&p)+4>>2]=q;c[(s&p)+8>>2]=r;a[(s&n)+50>>0]=5;c[(s&p)+12>>2]=L;b[(s&o)+44>>1]=b[(L&o)+42>>1]|0;b[(r&o)>>1]=b[(L&o)+28>>1]|0;b[(r&o)+2>>1]=0;if(!(a[(J+(K*72|0)&n)+45>>0]&1))c[(s&p)+20>>2]=c[((c[(m&p)>>2]|0)&p)+8>>2]}else s=k;while(0);r=b[(L&o)+28>>1]|0;if(r<<16>>16<11)E=0;else{E=r<<16>>16;E=((fs(E,((E|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((c[(f&p)+16>>2]|0)==0?(b[(da&o)+34>>1]&128)==0:0)?(c[((c[(c[(da&p)>>2]&p)>>2]|0)&p)+24>>2]&1048576|0)!=0:0)?(c[($&p)>>2]|0)==0:0)?(t=a[(J+(K*72|0)&n)+45>>0]|0,(t&5)==0):0)?(I=L+44|0,(t&10|a[(I&n)>>0]&32)<<24>>24==0):0)?(F=c[(_&p)+20>>2]|0,Y=c[(_&p)+12>>2]|0,H=F+(Y*48|0)|0,(Y|0)>0):0){y=ca+8|0;z=ca+24|0;A=ca+42|0;B=ca+28|0;C=ca+40|0;D=ca+48|0;u=(E&65535)+(r&65535)|0;q=u+4&65535;m=ca+18|0;l=L+12|0;u=u+28&65535;v=ca+22|0;w=ca+20|0;x=ca+36|0;r=F;do{t=r+32|0;Y=t;X=y;if(((c[(X&p)>>2]&c[(Y&p)>>2]|0)==0?(c[(X&p)+4>>2]&c[(Y&p)+4>>2]|0)==0:0)?(Mu(r,Z,0,0)|0)!=0:0){b[(z&o)>>1]=1;b[(A&o)>>1]=0;c[(B&p)>>2]=0;b[(C&o)>>1]=1;c[(c[(D&p)>>2]&p)>>2]=r;b[(m&o)>>1]=q;if((c[(l&p)>>2]|0)==0?(a[(I&n)>>0]&2)==0:0)b[(m&o)>>1]=u;b[(v&o)>>1]=43;b[(w&o)>>1]=Gv(E,43)|0;c[(x&p)>>2]=16384;X=t;Y=c[(X&p)+4>>2]|h;k=ca;c[(k&p)>>2]=c[(X&p)>>2]|g;c[(k&p)+4>>2]=Y;k=Fv(f,ca)|0}else k=0;r=r+48|0}while((k|0)==0&r>>>0<H>>>0)}else k=0;Y=ca+36|0;a:do if((k|0)==0&(s|0)!=0){P=ca+24|0;Q=ca+42|0;R=ca+40|0;S=ca+17|0;T=ca+18|0;U=ca+22|0;V=ca+28|0;W=J+(K*72|0)+48|0;X=ca+20|0;N=J+(K*72|0)+64|0;O=L+42|0;w=L+44|0;v=da+34|0;u=_+12|0;J=_+20|0;M=1;while(1){x=c[(s&p)+36>>2]|0;y=c[(W&p)>>2]|0;b:do if(x){k=c[(u&p)>>2]|0;if((k|0)>0){m=0;q=c[(J&p)>>2]|0;while(1){l=c[(q&p)>>2]|0;if(Hv(l,x,y)|0){if(!(c[(l&p)+4>>2]&1)){ea=32;break b}if((b[(l&o)+36>>1]|0)==(y|0)){ea=32;break b}}m=m+1|0;if((m|0)>=(k|0)){k=0;break}else q=q+48|0}}else k=0}else ea=32;while(0);if((ea|0)==32){ea=0;K=b[(c[(s&p)+8>>2]&o)>>1]|0;b[(P&o)>>1]=0;b[(Q&o)>>1]=0;b[(R&o)>>1]=0;a[(S&n)>>0]=0;b[(T&o)>>1]=0;L=ca;c[(L&p)>>2]=g;c[(L&p)+4>>2]=h;b[(U&o)>>1]=K;c[(V&p)>>2]=s;L=s+51|0;z=a[(L&n)>>0]|0;c:do if(((z&4)==0?(aa=c[((c[(f&p)>>2]|0)&p)+8>>2]|0,(aa|0)!=0):0)?(ba=c[(aa&p)>>2]|0,(ba|0)>0):0){I=c[(aa&p)+4>>2]|0;H=s+46|0;B=s+4|0;A=0;while(1){E=c[(I+(A*20|0)&p)>>2]|0;d:do if(!E)E=0;else while(1){D=c[(E&p)+4>>2]|0;if(!(D&4096))break d;if(!(D&262144))E=E+12|0;else E=c[((c[(E&p)+20>>2]|0)&p)+4>>2]|0;E=c[(E&p)>>2]|0;if(!E){E=0;break}}while(0);if((a[(E&n)>>0]|0)!=-102){A=0;break c}if((c[(E&p)+28>>2]|0)==(y|0)){D=b[(E&o)+32>>1]|0;if(D<<16>>16<0){A=1;break c}E=b[(H&o)>>1]|0;if(E<<16>>16){C=c[(B&p)>>2]|0;E=E&65535;F=0;do{if(D<<16>>16==(b[(C+(F<<1)&o)>>1]|0)){A=1;break c}F=F+1|0}while((F|0)<(E|0))}}A=A+1|0;if((A|0)>=(ba|0)){A=0;break}}}else A=0;while(0);do if((c[(s&p)+40>>2]|0)<1){c[(Y&p)>>2]=256;a[(S&n)>>0]=(A|0)!=0?M&255:0;b[(X&o)>>1]=(K&65535)+16;Iv(_,ca,K);k=Fv(f,ca)|0;b[(U&o)>>1]=K;if(k)break a}else{if(!(z&32)){H=N;I=c[(H&p)>>2]|0;H=c[(H&p)+4>>2]|0;F=s+4|0;E=0;D=0;C=e[(s&o)+48>>1]|0;e:while(1){B=C;while(1){C=B+-1|0;if((B|0)<=0)break e;B=b[((c[(F&p)>>2]|0)+(C<<1)&o)>>1]|0;if((B&65535)<63)break;else B=C}t=iw(1,0,B<<16>>16|0)|0;E=t|E;D=G|D}t=I&~E;x=H&~D;E=t;D=x;x=(t|0)==0&(x|0)==0?576:512}else{E=0;D=0;x=576}c[(Y&p)>>2]=x;t=(A|0)!=0;if(!t?(a[(w&n)>>0]&32)==0:0){if(!((E|0)==0&(D|0)==0))break;if(a[(L&n)>>0]&4)break;if((b[(s&o)+44>>1]|0)>=(b[(O&o)>>1]|0))break;if(!((b[(v&o)>>1]&4)==0&(c[2190]|0)!=0))break;if(b[((c[(c[(da&p)>>2]&p)>>2]|0)&o)+60>>1]&64)break}a[(S&n)>>0]=t?M&255:0;r=K<<16>>16;t=r+1+(((b[(s&o)+44>>1]|0)*15|0)/(b[(O&o)>>1]|0)|0)&65535;if(!((E|0)==0&(D|0)==0))t=Gv(t,r+16&65535)|0;b[(X&o)>>1]=t;Iv(_,ca,K);k=Fv(f,ca)|0;b[(U&o)>>1]=K;if(k)break a}while(0);k=Jv(f,Z,s,0)|0;if(c[($&p)>>2]|0)break a}s=c[(s&p)+20>>2]|0;if(!((k|0)==0&(s|0)!=0))break;else M=M+1|0}}while(0);i=ga;return k|0}function Iu(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;ca=i;i=i+608|0;if((i|0)>=(j|0))fa();aa=ca+168|0;_=ca+576|0;$=ca+112|0;Y=ca+56|0;Z=ca;k=c[(f&p)>>2]|0;V=c[(f&p)+4>>2]|0;r=c[(V&p)+20>>2]|0;q=c[(V&p)+12>>2]|0;X=r+(q*48|0)|0;U=c[(f&p)+12>>2]|0;l=$+0|0;m=l+56|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(m|0));m=c[(k&p)+4>>2]|0;l=d[(U&n)+16>>0]|0;T=c[(m+(l*72|0)&p)+48>>2]|0;a:do if((q|0)>0){D=U+8|0;E=_+8|0;F=_+16|0;G=U+40|0;H=U+48|0;I=U+36|0;J=U+18|0;K=U+17|0;L=U+24|0;M=U+20|0;N=U+22|0;O=aa+4|0;P=aa+8|0;Q=aa+12|0;R=aa+20|0;S=_+4|0;z=m+(l*72|0)+24|0;A=Z+8|0;B=$+8|0;C=Y+8|0;while(1){b:do if((b[(r&o)+18>>1]&256)!=0?(W=c[(r&p)+12>>2]|0,w=W+408|0,v=D,!((c[(v&p)>>2]&c[(w&p)>>2]|0)==0?(c[(v&p)+4>>2]&c[(w&p)+4>>2]|0)==0:0)):0){q=W+20|0;y=(c[(q&p)>>2]|0)+((c[(W&p)+12>>2]|0)*48|0)|0;c[(_&p)>>2]=c[(f&p)>>2];c[(_&p)+4>>2]=c[(f&p)+4>>2];c[(_&p)+8>>2]=c[(f&p)+8>>2];c[(_&p)+12>>2]=c[(f&p)+12>>2];c[(E&p)>>2]=0;c[(F&p)>>2]=Y;q=c[(q&p)>>2]|0;c:do if(q>>>0<y>>>0){l=1;k=0;d:while(1){if(!(b[(q&o)+18>>1]&512))if((c[(q&p)+8>>2]|0)==(T|0)){c[(aa&p)>>2]=c[(V&p)>>2];c[(O&p)>>2]=V;a[(P&n)>>0]=72;c[(Q&p)>>2]=1;c[(R&p)>>2]=q;m=aa;ba=10}else m=l;else{m=c[(q&p)+12>>2]|0;ba=10}do if((ba|0)==10){ba=0;c[(S&p)>>2]=m;b[(Y&o)>>1]=0;if(!(a[((c[(z&p)>>2]|0)&n)+44>>0]&16))k=Hu(_,g,h)|0;else k=Gu(_,g,h)|0;if(!k)k=Iu(_,g,h)|0;m=b[(Y&o)>>1]|0;if(!(m<<16>>16))break d;if(l){b[($&o)>>1]=m;kw(B|0,C|0,(m&65535)<<4|0)|0;m=0;break}w=b[($&o)>>1]|0;b[(Z&o)>>1]=w;x=w&65535;kw(A|0,B|0,x<<4|0)|0;b[($&o)>>1]=0;if(!(w<<16>>16))m=0;else{w=0;do{if(!(m<<16>>16))m=0;else{s=Z+(w<<4)+8|0;l=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;t=b[(Z+(w<<4)&o)+16>>1]|0;u=b[(Z+(w<<4)&o)+18>>1]|0;v=0;do{da=Y+(v<<4)+8|0;ea=c[(da&p)>>2]|l;da=c[(da&p)+4>>2]|s;m=Gv(t,b[(Y+(v<<4)&o)+16>>1]|0)|0;Kv($,ea,da,m,Gv(u,b[(Y+(v<<4)&o)+18>>1]|0)|0);v=v+1|0;m=b[(Y&o)>>1]|0}while((v|0)<(m&65535|0))}w=w+1|0}while((w|0)<(x|0));m=0}}while(0);q=q+48|0;if(q>>>0>=y>>>0)break c;else l=m}b[($&o)>>1]=0}else k=0;while(0);b[(G&o)>>1]=1;c[(c[(H&p)>>2]&p)>>2]=r;c[(I&p)>>2]=8192;b[(J&o)>>1]=0;a[(K&n)>>0]=0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;if(k)break a;q=e[($&o)>>1]|0;m=0;while(1){if((m|0)>=(q|0))break b;b[(M&o)>>1]=(e[($+(m<<4)&o)+16>>1]|0)+1;b[(N&o)>>1]=b[($+(m<<4)&o)+18>>1]|0;v=$+(m<<4)+8|0;w=c[(v&p)+4>>2]|0;k=U;c[(k&p)>>2]=c[(v&p)>>2];c[(k&p)+4>>2]=w;k=Fv(f,U)|0;if(!k)m=m+1|0;else break a}}while(0);r=r+48|0;if(r>>>0>=X>>>0){k=0;break}}}else k=0;while(0);i=ca;return k|0}function Ju(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=d+48|0;f=c[(e&p)>>2]|0;g=d+56|0;if((f|0)!=(g|0))mg(a,f);Lv(a,d);c[(e&p)>>2]=g;b[(d&o)+40>>1]=0;b[(d&o)+44>>1]=3;c[(d&p)+36>>2]=0;return}function Ku(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=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,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+32|0;if((i|0)>=(j|0))fa();ea=oa+24|0;aa=oa+16|0;ia=oa+8|0;na=oa;da=c[(d&p)>>2]|0;ka=c[(da&p)>>2]|0;r=a[(d&n)+41>>0]|0;la=r&255;if((r&255)<2)Y=1;else Y=r<<24>>24==2?5:10;ma=d+8|0;l=c[(ma&p)>>2]|0;ga=f<<16>>16==0;if((l|0)==0|ga)X=0;else X=c[(l&p)>>2]|0;m=X<<1;ja=m+(ca((la<<3)+64|0,Y)|0)|0;ja=mh(ka,ja,((ja|0)<0)<<31>>31)|0;do if(ja){l=ja+(Y<<5)|0;c[(l&p)>>2]=0;c[(l&p)+4>>2]=0;c[(l&p)+8>>2]=0;c[(l&p)+12>>2]=0;c[(l&p)+16>>2]=0;c[(l&p)+20>>2]=0;c[(l&p)+24>>2]=0;c[(l&p)+28>>2]=0;g=Y<<1;q=ca(Y,-2)|0;q=ja+((ca((((q|0)>-1?q:1073741823)+(Y<<1)<<2)+4|0,la)|0)+(Y<<6))|0;k=g;h=ja;g=ja+(g<<5)|0;while(1){c[(h&p)+24>>2]=g;k=k+-1|0;if((k|0)<=0)break;else{h=h+32|0;g=g+(la<<2)|0}}k=(X|0)!=0;if(k)fw(q|0,0,m|0)|0;else q=0;W=c[(da&p)+424>>2]|0;b[(ja+(Y<<5)&o)+16>>1]=W>>>0<48?W&65535:48;if(k)a[(ja+(Y<<5)&n)+22>>0]=r<<24>>24!=0?-1:X&255;W=r<<24>>24==0;if(!W){S=d+16|0;T=d+34|0;U=f<<16>>16<11;V=(f&65535)+16|0;P=f<<16>>16;Q=((P|0)<0)<<31>>31;R=Y>>>0>1;g=ja;O=0;m=0;r=0;f=0;h=1;while(1){if((h|0)>0){J=O&65535;K=O<<2;L=g+18|0;M=g+16|0;N=0;k=0;I=l;while(1){s=c[(S&p)>>2]|0;if(s){D=I+22|0;E=I+16|0;F=I+20|0;G=I+24|0;H=I+8|0;C=k;while(1){u=a[(D&n)>>0]|0;v=aa;c[(v&p)>>2]=0;c[(v&p)+4>>2]=0;v=s;k=I;t=c[(k&p)>>2]|0;k=c[(k&p)+4>>2]|0;a:do if(((c[(v&p)>>2]&~t|0)==0?(c[(v&p)+4>>2]&~k|0)==0:0)?(Z=s+8|0,$=Z,_=c[($&p)>>2]|0,$=c[($&p)+4>>2]|0,(_&t|0)==0&($&k|0)==0):0){y=e[(E&o)>>1]|0;A=Gv(b[(s&o)+18>>1]|0,y+(e[(s&o)+20>>1]|0)&65535)|0;A=Gv(A,b[(F&o)>>1]|0)|0;y=(e[(s&o)+22>>1]|0)+y|0;B=y&65535;x=_|t;v=$|k;if(u<<24>>24<0)z=Mv(d,c[(ma&p)>>2]|0,I,b[(T&o)>>1]|0,J,s,aa)|0;else{k=H;t=c[(k&p)+4>>2]|0;z=aa;c[(z&p)>>2]=c[(k&p)>>2];c[(z&p)+4>>2]=t;z=u}u=z<<24>>24;if(z<<24>>24>-1&(X|0)>(u|0)){w=q+(u<<1)|0;t=b[(w&o)>>1]|0;if(!(t<<16>>16)){u=((X-u|0)*100|0)/(X|0)|0;u=(fs(u,((u|0)<0)<<31>>31)|0)&65535;if(U)k=0;else k=((fs(P,Q)|0)&65535)+65503&65535;u=V+(((u<<16)+-4325376|0)>>>16)+k|0;if(b[(T&o)>>1]&1024)u=(u&65535)+16|0;t=u&65535;b[(w&o)>>1]=t}w=Gv(A,t)|0}else w=A;b:do if((C|0)>0){u=0;t=g;while(1){k=t;if(((c[(k&p)>>2]|0)==(x|0)?(c[(k&p)+4>>2]|0)==(v|0):0)?(a[(t&n)+22>>0]^z)<<24>>24>-1:0)break;u=u+1|0;if((u|0)>=(C|0)){ba=35;break b}else t=t+32|0}k=b[(t&o)+18>>1]|0;if(k<<16>>16<w<<16>>16){k=C;break a}if(k<<16>>16!=w<<16>>16){k=C;break}if((b[(t&o)+16>>1]|0)>(y<<16>>16|0))k=C;else{k=C;break a}}else ba=35;while(0);if((ba|0)==35){ba=0;t=(C|0)<(Y|0);if(!t){if(w<<16>>16>m<<16>>16){k=C;break}if(!(w<<16>>16!=m<<16>>16?1:A<<16>>16<f<<16>>16)){k=C;break}}k=(t&1)+C|0;t=g+((t?C:r)<<5)|0}u=I;y=Z;v=c[(y&p)+4>>2]|c[(u&p)+4>>2];x=t;c[(x&p)>>2]=c[(y&p)>>2]|c[(u&p)>>2];c[(x&p)+4>>2]=v;x=aa;v=c[(x&p)+4>>2]|0;u=t+8|0;c[(u&p)>>2]=c[(x&p)>>2];c[(u&p)+4>>2]=v;b[(t&o)+16>>1]=B;b[(t&o)+18>>1]=w;b[(t&o)+20>>1]=A;a[(t&n)+22>>0]=z;t=t+24|0;kw(c[(t&p)>>2]|0,c[(G&p)>>2]|0,K|0)|0;c[((c[(t&p)>>2]|0)+(O<<2)&p)>>2]=s;if((k|0)<(Y|0))break;m=b[(L&o)>>1]|0;f=b[(M&o)>>1]|0;if(R){v=g;w=1;u=m;r=0;t=f}else{r=0;break}while(1){m=b[(v&o)+50>>1]|0;do if(m<<16>>16<=u<<16>>16){if(m<<16>>16!=u<<16>>16){m=u;f=t;break}f=b[(v&o)+52>>1]|0;if(f<<16>>16>t<<16>>16)ba=48;else{m=u;f=t}}else{f=b[(v&o)+52>>1]|0;ba=48}while(0);v=v+32|0;if((ba|0)==48){ba=0;r=w}w=w+1|0;if((w|0)>=(Y|0))break;else{u=m;t=f}}}else k=C;while(0);s=c[(s&p)+52>>2]|0;if(!s)break;else C=k}}N=N+1|0;if((N|0)==(h|0)){h=k;break}else I=I+32|0}}else h=0;O=O+1|0;if((O|0)>=(la|0))break;else{N=g;g=l;l=N}}if(!h){th(da,34008,ea);mg(ka,ja);break}if((h|0)>1){k=1;l=g;do{if((b[(l&o)+18>>1]|0)>(b[(g+(k<<5)&o)+18>>1]|0))l=g+(k<<5)|0;k=k+1|0}while((k|0)!=(h|0))}else l=g;if(!W){h=d+4|0;k=c[(l&p)+24>>2]|0;g=0;do{ba=c[(k+(g<<2)&p)>>2]|0;c[(d+(g*80|0)&p)+800>>2]=ba;ba=a[(ba&n)+16>>0]|0;a[(d+(g*80|0)&n)+780>>0]=ba;c[(d+(g*80|0)&p)+740>>2]=c[((c[(h&p)>>2]|0)+((ba&255)*72|0)&p)+48>>2];g=g+1|0}while((g|0)<(la|0))}}h=d+34|0;if(((b[(h&o)>>1]&1536)==1024?(ha=d+40|0,!((a[(ha&n)>>0]|0)!=0|ga)):0)?(ba=d+12|0,aa=la+-1|0,aa=(Mv(d,c[(ba&p)>>2]|0,l,512,aa&65535,c[((c[(l&p)+24>>2]|0)+(aa<<2)&p)>>2]|0,ia)|0)<<24>>24,(aa|0)==(c[(c[(ba&p)>>2]&p)>>2]|0)):0)a[(ha&n)>>0]=2;k=c[(ma&p)>>2]|0;if(k){g=b[(h&o)>>1]|0;h=a[(l&n)+22>>0]|0;if(g&512){if((h<<24>>24|0)==(c[(k&p)>>2]|0))a[(d&n)+40>>0]=2}else{a[(d&n)+36>>0]=h<<24>>24<0?0:h;$=l+8|0;aa=c[($&p)+4>>2]|0;ba=d+24|0;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa}if(((g&2048)!=0?(a[(d&n)+36>>0]|0)==(c[(k&p)>>2]|0):0)?(ba=na,c[(ba&p)>>2]=0,c[(ba&p)+4>>2]=0,ba=la+-1|0,ba=(Mv(d,k,l,0,ba&65535,c[((c[(l&p)+24>>2]|0)+(ba<<2)&p)>>2]|0,na)|0)<<24>>24,(ba|0)==(c[(c[(ma&p)>>2]&p)>>2]|0)):0){a[(d&n)+37>>0]=1;$=na;aa=c[($&p)+4>>2]|0;ba=d+24|0;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa}}b[(d&o)+32>>1]=b[(l&o)+16>>1]|0;mg(ka,ja)}while(0);i=oa;return}function Lu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if((b|0)!=0?(g=c[(b&p)>>2]|0,(g|0)>0):0){e=c[(b&p)+4>>2]|0;d=0;b=0;f=0;do{h=Av(a,c[(e+(f*20|0)&p)>>2]|0)|0;d=h|d;b=G|b;f=f+1|0}while((f|0)<(g|0))}else{b=0;d=0}G=b;return d|0}function Mu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0;do if((((c[(d&p)+8>>2]|0)==(c[(e&p)+40>>2]|0)?(b[(d&o)+18>>1]&2)!=0:0)?(i=d+32|0,(c[(i&p)>>2]&f|0)==0?(c[(i&p)+4>>2]&g|0)==0:0):0)?(h=c[(d&p)+12>>2]|0,(h|0)>=0):0){f=a[((c[((c[(e&p)+16>>2]|0)&p)+4>>2]|0)+(h*24|0)&n)+21>>0]|0;g=(nv(c[(d&p)>>2]|0)|0)<<24>>24;if((g|0)==66){g=f<<24>>24==66&1;break}else if((g|0)==65){g=1;break}else{g=f<<24>>24>66&1;break}}else g=0;while(0);return g|0}function Nu(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=d+44|0;if((e[(j&o)>>1]|0|0)<(f|0)){g=f+7&-8;h=mh(a,g<<2,0)|0;if(!h)f=7;else{i=d+48|0;kw(h|0,c[(i&p)>>2]|0,(e[(j&o)>>1]|0)<<2|0)|0;f=c[(i&p)>>2]|0;if((f|0)!=(d+56|0))mg(a,f);c[(i&p)>>2]=h;b[(j&o)>>1]=g;f=0}}else f=0;return f|0}function Ou(a,b,d){a=a|0;b=b|0;d=d|0;do if(!(c[(b&p)+4>>2]&256)){if((d|0)!=0?(c[(d&p)+4>>2]&256|0)!=0:0){b=cu(a,d)|0;break}b=cu(a,b)|0;if(!b)b=cu(a,d)|0}else b=cu(a,b)|0;while(0);return b|0}function Pu(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+144|0;if((i|0)>=(j|0))fa();w=B;A=B+8|0;r=B+36|0;if(((a[(e&n)+450>>0]|0)==2?(t=d[(g&n)+44>>0]|0,z=c[(e&p)+8>>2]|0,q=c[(e&p)>>2]|0,y=c[(e&p)+464>>2]|0,v=c[(g&p)+64>>2]|0,x=v+36|0,u=c[(x&p)>>2]|0,(u&8192|0)==0):0)?(m=l&65535,(m&64|0)==0):0){l=u&48;do if(!l){if((u&1024|0)==0?(b[(v&o)+24>>1]|0)!=0:0){s=1;break}s=(m&3|0)!=0}else s=1;while(0);c[(A&p)+4>>2]=r;c[(A&p)+8>>2]=r;c[(A&p)+12>>2]=0;c[(A&p)+16>>2]=100;c[(A&p)+20>>2]=1e9;a[(A&n)+24>>0]=1;a[(A&n)+25>>0]=0;c[(A&p)>>2]=q;e=s?33576:33584;g=e;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;Sk(A,e,g-e&1073741823);if(!(c[(f+(t*72|0)&p)+28>>2]|0)){c[(w&p)>>2]=c[(f+(t*72|0)&p)+16>>2];En(A,0,33608,w)}else{c[(w&p)>>2]=d[(f+(t*72|0)&n)+46>>0];En(A,0,33592,w)}e=c[(f+(t*72|0)&p)+20>>2]|0;if(e){c[(w&p)>>2]=e;En(A,0,33624,w)}do if(!(u&1280)){m=v+28|0;g=c[(m&p)>>2]|0;l=f+(t*72|0)+24|0;if((a[((c[(l&p)>>2]|0)&n)+44>>0]&32)!=0?(a[(g&n)+51>>0]&3)==2:0)if(s)e=33632;else break;else if(!(u&131072))if(!(u&16384))e=(u&64|0)==0?33744:33720;else e=33688;else e=33648;Sk(A,33760,7);c[(w&p)>>2]=c[(g&p)>>2];En(A,0,e,w);u=b[(v&o)+24>>1]|0;s=c[((c[(l&p)>>2]|0)&p)+4>>2]|0;r=c[((c[(m&p)>>2]|0)&p)+4>>2]|0;g=u&65535;if(!(u<<16>>16)){if(!(c[(x&p)>>2]&48))break;Sk(A,33904,2);m=0}else{l=b[(v&o)+42>>1]|0;Sk(A,33904,2);l=l&65535;m=0;do{e=b[(r+(m<<1)&o)>>1]|0;if(e<<16>>16<0)e=20456;else e=c[(s+((e<<16>>16)*24|0)&p)>>2]|0;if((m|0)<(l|0)){if(m)Sk(A,33920,5);c[(w&p)>>2]=e;En(A,0,33928,w)}else Nv(A,m,e,33912);m=m+1|0}while((m|0)<(g|0));m=g>>>0>1?g:1}l=c[(x&p)>>2]|0;if(!(l&32))e=m;else{l=b[(r+(m<<1)&o)>>1]|0;if(l<<16>>16<0)l=20456;else l=c[(s+((l<<16>>16)*24|0)&p)>>2]|0;Nv(A,m,l,33936);l=c[(x&p)>>2]|0;e=m+1|0}if(l&16){m=b[(r+(m<<1)&o)>>1]|0;if(m<<16>>16<0)m=20456;else m=c[(s+((m<<16>>16)*24|0)&p)>>2]|0;Nv(A,e,m,33944)}Sk(A,33952,1)}else{if((u&256|0)==0|(u&15|0)==0){if(!(u&1024))break;u=c[(v&p)+32>>2]|0;c[(w&p)>>2]=c[(v&p)+24>>2];c[(w&p)+4>>2]=u;En(A,0,33872,w);break}if(!(u&5))if((l|0)==48)l=33784;else l=(u&32|0)==0?33824:33808;else l=33768;Sk(A,33840,27);m=l;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;Sk(A,l,m-l&1073741823)}while(0);u=tg(A)|0;xh(z,wh(z,157,y,h,k)|0,u,-1)}i=B;return}function Qu(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,o=0;l=c[(d&p)>>2]|0;o=c[(b&p)+8>>2]|0;i=a[(l&n)>>0]|0;do if(i<<24>>24==76)wh(o,28,0,h,0)|0;else if(i<<24>>24==79)h=is(b,c[(l&p)+16>>2]|0,h)|0;else{j=c[(e&p)+64>>2]|0;i=j+36|0;if(((c[(i&p)>>2]&1024|0)==0?(k=c[(j&p)+28>>2]|0,(k|0)!=0):0)?(a[((c[(k&p)+28>>2]|0)+f&n)>>0]|0)!=0:0)g=(g|0)==0&1;m=mv(b,l,4,0)|0;if((m|0)==4)g=(g|0)==0&1;l=c[(l&p)+28>>2]|0;f=(g|0)!=0;wh(o,f?105:108,l,0,0)|0;c[(i&p)>>2]=c[(i&p)>>2]|2048;k=e+56|0;i=c[(k&p)>>2]|0;if(!i){c[(e&p)+16>>2]=xs(o)|0;i=c[(k&p)>>2]|0}j=i+1|0;c[(k&p)>>2]=j;i=e+60|0;j=Wl(c[(b&p)>>2]|0,c[(i&p)>>2]|0,j*12|0,0)|0;c[(i&p)>>2]=j;if(!j){c[(k&p)>>2]=0;break}i=(c[(k&p)>>2]|0)+-1|0;c[(j+(i*12|0)&p)>>2]=l;if((m|0)==1)g=wh(o,103,l,h,0)|0;else g=wh(o,47,l,0,h)|0;c[(j+(i*12|0)&p)+4>>2]=g;a[(j+(i*12|0)&n)+8>>0]=f?6:7;wh(o,76,h,0,0)|0}while(0);Ru(e,d);return h|0}function Ru(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a:do if(e){i=d+72|0;h=0;while(1){f=e+20|0;g=b[(f&o)>>1]|0;if(g&4)break a;if((c[(d&p)>>2]|0)!=0?(c[((c[(e&p)>>2]|0)&p)+4>>2]&1|0)==0:0)break a;j=i;k=e+40|0;if(!((c[(k&p)>>2]&c[(j&p)>>2]|0)==0?(c[(k&p)+4>>2]&c[(j&p)+4>>2]|0)==0:0))break a;g=g&65535;b[(f&o)>>1]=g|((h|0)==0|(g&1024|0)==0?4:512);g=c[(e&p)+4>>2]|0;if((g|0)<0)break a;e=c[((c[(e&p)+24>>2]|0)&p)+20>>2]|0;j=e+(g*48|0)+22|0;f=(a[(j&n)>>0]|0)+-1<<24>>24;a[(j&n)>>0]=f;if(f<<24>>24)break a;e=e+(g*48|0)|0;if(!e)break;else h=h+1|0}}while(0);return}function Su(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0;do if(!(b[((c[(d&p)>>2]|0)&o)+60>>1]&2)){k=d+116|0;j=0;h=k;while(1){i=h+12|0;if(!(c[(i&p)>>2]|0)){q=4;break}j=j+1|0;if((j|0)>=10){l=0;h=-1;m=2147483647;break}else h=h+20|0}if((q|0)==4){c[(h&p)+8>>2]=c[(d&p)+100>>2];c[(h&p)>>2]=e;b[(h&o)+4>>1]=f;c[(i&p)>>2]=g;a[(h&n)+6>>0]=0;g=d+104|0;e=c[(g&p)>>2]|0;c[(g&p)>>2]=e+1;c[(h&p)+16>>2]=e;break}while(1){j=c[(k&p)+16>>2]|0;i=(j|0)<(m|0);h=i?l:h;l=l+1|0;if((l|0)==10)break;else{m=i?j:m;k=k+20|0}}if((h|0)>-1){c[(d+(h*20|0)&p)+124>>2]=c[(d&p)+100>>2];c[(d+(h*20|0)&p)+116>>2]=e;b[(d+(h*20|0)&o)+120>>1]=f;c[(d+(h*20|0)&p)+128>>2]=g;a[(d+(h*20|0)&n)+122>>0]=0;g=d+104|0;e=c[(g&p)>>2]|0;c[(g&p)>>2]=e+1;c[(d+(h*20|0)&p)+132>>2]=e}}while(0);return}function Tu(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=c[(d&p)+8>>2]|0;m=c[(e&p)+64>>2]|0;q=b[(m&o)+24>>1]|0;s=b[(m&o)+42>>1]|0;w=c[(m&p)+28>>2]|0;t=d+72|0;l=c[(t&p)>>2]|0;i=l+1|0;v=q&65535;r=v+g|0;c[(t&p)>>2]=l+r;t=c[(d&p)>>2]|0;w=kh(t,ot(u,w)|0)|0;t=(w|0)!=0;if(!t)a[((c[(d&p)>>2]|0)&n)+65>>0]=1;if(s<<16>>16){g=c[(e&p)+8>>2]|0;j=(f|0)!=0;wh(u,j?105:108,g,0,0)|0;k=wh(u,16,0,0,0)|0;l=s&65535;j=wh(u,j?62:65,g,0,i)|0;xh(u,j,l,-14);c[(e&p)+20>>2]=j;j=c[(u&p)+32>>2]|0;if(j>>>0>k>>>0)c[((c[(u&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=j;c[((c[(u&p)+24>>2]|0)&p)+88>>2]=j+-1;k=0;do{wh(u,47,g,k,k+i|0)|0;k=k+1|0}while((k|0)<(l|0))}if((s&65535)<(q&65535)){m=m+48|0;l=e+12|0;q=(r|0)==1;r=s&65535;k=i;while(1){j=c[((c[(m&p)>>2]|0)+(r<<2)&p)>>2]|0;g=r+k|0;i=Qu(d,j,e,r,f,g)|0;do if((i|0)!=(g|0))if(q){_r(d,k);break}else{wh(u,34,i,g,0)|0;i=k;break}else i=k;while(0);if(!(b[(j&o)+18>>1]&129)){g=c[((c[(j&p)>>2]|0)&p)+16>>2]|0;if(Uu(g)|0)wh(u,76,i+r|0,c[(l&p)>>2]|0,0)|0;if(t){j=w+r|0;if((Bu(g,a[(j&n)>>0]|0)|0)<<24>>24==65){a[(j&n)>>0]=65;k=65}else k=a[(j&n)>>0]|0;if(Vu(g,k)|0)a[(j&n)>>0]=65}}r=r+1|0;if((r|0)>=(v|0))break;else k=i}}c[(h&p)>>2]=w;return i|0}function Uu(d){d=d|0;var e=0;e=a[(d&n)>>0]|0;if((e+99&255)<2)do{d=c[(d&p)+12>>2]|0;e=a[(d&n)>>0]|0}while((e+99&255)<2);if(e<<24>>24==-97)e=a[(d&n)+38>>0]|0;switch(e&255|0){case 134:case 133:case 97:case 132:{d=0;break}case 154:{if(!(c[(d&p)+4>>2]&1048576)){e=b[(d&o)+32>>1]|0;if(e<<16>>16>-1)d=(a[((c[((c[(d&p)+44>>2]|0)&p)+4>>2]|0)+((e<<16>>16)*24|0)&n)+20>>0]|0)==0;else d=0}else d=1;d=d&1;break}default:d=1}return d|0}function Vu(d,e){d=d|0;e=e|0;var f=0;a:do if(e<<24>>24==65)d=1;else{f=a[(d&n)>>0]|0;if((f+99&255)<2)do{d=c[(d&p)+12>>2]|0;f=a[(d&n)>>0]|0}while((f+99&255)<2);if(f<<24>>24==-97)f=a[(d&n)+38>>0]|0;switch(f&255|0){case 132:{d=(e+-67&255)<2&1;break a}case 97:{d=e<<24>>24==66&1;break a}case 154:{if((b[(d&o)+32>>1]|0)<0)d=(e+-67&255)<2;else d=0;d=d&1;break a}case 134:{d=1;break a}case 133:{d=(e<<24>>24==69|e<<24>>24==67)&1;break a}default:{d=0;break a}}}while(0);return d|0}function Wu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;h=c[(b&p)+8>>2]|0;do if(f){a:do if((e|0)>0)while(1){if((a[(f&n)>>0]|0)!=65){g=f;break a}e=e+-1|0;d=d+1|0;f=f+1|0;if((e|0)<=0){g=f;break}}else g=f;while(0);while(1){if((e|0)<=1){i=8;break}f=e+-1|0;if((a[(g+f&n)>>0]|0)==65)e=f;else break}if((i|0)==8)if((e|0)<=0)break;wh(h,48,d,e,0)|0;xh(h,-1,g,e);dt(b,d,e)}while(0);return}function Xu(a,b){a=a|0;b=b|0;var d=0,e=0;if(b){Ov(b+328|0);e=b+16|0;d=c[(e&p)>>2]|0;if(d)do{c[(e&p)>>2]=c[(d&p)+52>>2];Ju(a,d);mg(a,d);d=c[(e&p)>>2]|0}while((d|0)!=0);mg(a,b)}return}function Yu(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+32|0;if((i|0)>=(j|0))fa();e=d;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;c[(e&p)+8>>2]=0;c[(e&p)+12>>2]=0;c[(e&p)+16>>2]=0;c[(e&p)+20>>2]=0;c[(e&p)>>2]=80;c[(e&p)+4>>2]=81;c[(e&p)+24>>2]=a;rs(e,b)|0;i=d;return}function Zu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r+4|0;q=r;m=c[(b&p)+8>>2]|0;c[(o&p)>>2]=0;c[(q&p)>>2]=0;if(!((m|0)==0|(d|0)==0)){h=a[(d&n)>>0]|0;g=h&255;a:do switch(g|0){case 75:{k=xs(m)|0;fu(b,d,k,(f|0)!=0?e:k);wh(m,16,0,e,0)|0;h=c[(m&p)+24>>2]|0;g=~k;if((k|0)<0?(l=c[(h&p)+112>>2]|0,(l|0)!=0):0)c[(l+(g<<2)&p)>>2]=c[(m&p)+32>>2];c[(h&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;break}case 77:case 76:{wh(m,g,$t(b,c[(d&p)+12>>2]|0,o)|0,e,0)|0;break}case 148:case 73:{f=d+12|0;l=$t(b,c[(f&p)>>2]|0,o)|0;k=d+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(f&p)>>2]|0,c[(k&p)>>2]|0,h<<24>>24==73?79:78,l,m,e,128);break}case 71:{Zu(b,c[(d&p)+12>>2]|0,e,f);m=b+100|0;c[(m&p)>>2]=(c[(m&p)>>2]|0)+1;Zu(b,c[(d&p)+16>>2]|0,e,f);bu(b);break}case 79:case 78:case 83:case 80:case 81:case 82:{h=d+12|0;l=$t(b,c[(h&p)>>2]|0,o)|0;k=d+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(h&p)>>2]|0,c[(k&p)>>2]|0,g,l,m,e,f);break}case 72:{l=xs(m)|0;gt(b,c[(d&p)+12>>2]|0,l,f^16);g=b+100|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;Zu(b,c[(d&p)+16>>2]|0,e,f);g=c[(m&p)+24>>2]|0;h=~l;if((l|0)<0?(k=c[(g&p)+112>>2]|0,(k|0)!=0):0)c[(k+(h<<2)&p)>>2]=c[(m&p)+32>>2];c[(g&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;bu(b);break}case 19:{gt(b,c[(d&p)+12>>2]|0,e,f);break}case 74:{_u(b,d,e,1,f);break}default:{if($u(d)|0){wh(m,16,0,e,0)|0;break a}if(!(mu(d)|0))wh(m,45,$t(b,d,o)|0,e,(f|0)!=0&1)|0}}while(0);_r(b,c[(o&p)>>2]|0);_r(b,c[(q&p)>>2]|0)}i=r;return}function _u(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0;r=i;i=i+208|0;if((i|0)>=(j|0))fa();l=r+152|0;h=r+104|0;k=r+56|0;m=r+8|0;o=r;c[(o&p)>>2]=0;q=m+0|0;s=(c[(d&p)+12>>2]|0)+0|0;t=q+48|0;do{c[(q&p)>>2]=c[(s&p)>>2];q=q+4|0;s=s+4|0}while((q|0)<(t|0));a[(l&n)>>0]=72;c[(l&p)+12>>2]=h;c[(l&p)+16>>2]=k;a[(h&n)>>0]=83;c[(h&p)+12>>2]=m;d=c[((c[(d&p)+20>>2]|0)&p)+4>>2]|0;c[(h&p)+16>>2]=c[(d&p)>>2];a[(k&n)>>0]=81;c[(k&p)+12>>2]=m;c[(k&p)+16>>2]=c[(d&p)+20>>2];d=$t(b,m,o)|0;a[(m&n)+38>>0]=a[(m&n)>>0]|0;a[(m&n)>>0]=-97;c[(m&p)+28>>2]=d;d=m+4|0;c[(d&p)>>2]=c[(d&p)>>2]&-4097;if(!f)gt(b,l,e,g);else Zu(b,l,e,g);_r(b,c[(o&p)>>2]|0);i=r;return}function $u(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;c[(b&p)>>2]=0;if((c[(a&p)+4>>2]&1|0)==0?(Ms(a,b)|0)!=0:0)a=(c[(b&p)>>2]|0)!=0&1;else a=0;i=d;return a|0}function av(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!((a|0)==0|(b|0)==0)){e=c[(b&p)>>2]|0;if((e|0)>0){b=c[(b&p)+4>>2]|0;d=0;while(1){if((wv(a,c[(b+(d*20|0)&p)+4>>2]|0)|0)>-1){b=1;break a}d=d+1|0;if((d|0)>=(e|0)){b=0;break}}}else b=0}else b=1;while(0);return b|0}function bv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;m=c[(e&p)+20>>2]|0;a:do if((m|0)>0){q=b[(d&o)+38>>1]|0;r=q<<16>>16>0;s=d+4|0;l=d+36|0;i=(g|0)!=0;j=0;while(1){g=c[(e+(j<<3)&p)+40>>2]|0;if(r){d=(g|0)==0;k=0;do{if(!((c[(f+(k<<2)&p)>>2]|0)<=-1?!((k|0)==(b[(l&o)>>1]|0)&i):0))t=7;do if((t|0)==7){t=0;h=c[(s&p)>>2]|0;if(d)if(!(a[(h+(k*24|0)&n)+23>>0]&1))break;else{d=1;break a}else if(!(dd(c[(h+(k*24|0)&p)>>2]|0,g)|0)){d=1;break a}else break}while(0);k=k+1|0}while((k|0)<(q<<16>>16|0))}j=j+1|0;if((j|0)>=(m|0)){d=0;break}}}else d=0;while(0);return d|0}function cv(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+48|0;if((i|0)>=(j|0))fa();m=x;s=x+8|0;w=c[(b&p)+408>>2]|0;w=(w|0)==0?b:w;l=w+528|0;g=c[(l&p)>>2]|0;a:do if(!g)k=5;else while(1){if((c[(g&p)>>2]|0)==(d|0)?(c[(g&p)+12>>2]|0)==(f|0):0)break a;g=c[(g&p)+4>>2]|0;if(!g){k=5;break}}while(0);do if((k|0)==5){u=c[(b&p)>>2]|0;g=mh(u,24,0)|0;if(g){k=g+0|0;h=k+24|0;do{a[(k&n)>>0]=0;k=k+1|0}while((k|0)<(h|0));c[(g&p)+4>>2]=c[(l&p)>>2];c[(l&p)>>2]=g;t=mh(u,28,0)|0;if(!t){c[(g&p)+8>>2]=0;g=0;break}k=t+0|0;h=k+24|0;do{a[(k&n)>>0]=0;k=k+1|0}while((k|0)<(h|0));c[(g&p)+8>>2]=t;o=(c[(w&p)+8>>2]|0)+192|0;c[(t&p)+24>>2]=c[(o&p)>>2];c[(o&p)>>2]=t;c[(g&p)>>2]=d;c[(g&p)+12>>2]=f;o=g+16|0;c[(o&p)>>2]=-1;q=g+20|0;c[(q&p)>>2]=-1;r=mh(u,536,0)|0;if(r){fw(r|0,0,536)|0;c[(s&p)>>2]=0;c[(s&p)+4>>2]=0;c[(s&p)+8>>2]=0;c[(s&p)+12>>2]=0;c[(s&p)+16>>2]=0;c[(s&p)+20>>2]=0;c[(s&p)+24>>2]=0;c[(s&p)+28>>2]=0;c[(s&p)>>2]=r;c[(r&p)>>2]=u;c[(r&p)+412>>2]=e;c[(r&p)+408>>2]=w;c[(r&p)+492>>2]=c[(d&p)>>2];a[(r&n)+436>>0]=a[(d&n)+8>>0]|0;c[(r&p)+424>>2]=c[(b&p)+424>>2];e=Oq(r)|0;if(e){c[(m&p)>>2]=c[(d&p)>>2];xh(e,-1,uh(u,34152,m)|0,-1);k=c[(d&p)+12>>2]|0;if(!k)l=0;else{h=Mr(u,k,0,0)|0;if((ls(s,h)|0)==0?(a[(u&n)+65>>0]|0)==0:0){k=xs(e)|0;gt(r,h,k,16)}else k=0;Gk(u,h);l=k}Pv(r,c[(d&p)+28>>2]|0,f);if(l){k=c[(e&p)+24>>2]|0;h=~l;if((l|0)<0?(v=c[(k&p)+112>>2]|0,(v|0)!=0):0)c[(v+(h<<2)&p)>>2]=c[(e&p)+32>>2];c[(k&p)+88>>2]=(c[(e&p)+32>>2]|0)+-1}wh(e,24,0,0,0)|0;h=b+64|0;k=c[(r&p)+4>>2]|0;if(!(c[(h&p)>>2]|0)){c[(b&p)+4>>2]=k;c[(h&p)>>2]=c[(r&p)+64>>2]}else mg(c[(r&p)>>2]|0,k);if(!(a[(u&n)+65>>0]|0)){m=e+4|0;s=c[(m&p)>>2]|0;Jn(e,w+392|0);c[(t&p)+4>>2]=c[(e&p)+32>>2];c[(m&p)>>2]=0;c[(t&p)>>2]=s}c[(t&p)+8>>2]=c[(r&p)+72>>2];c[(t&p)+12>>2]=c[(r&p)+68>>2];c[(t&p)+16>>2]=c[(r&p)+80>>2];c[(t&p)+20>>2]=d;c[(o&p)>>2]=c[(r&p)+428>>2];c[(q&p)>>2]=c[(r&p)+432>>2];Pl(e)}Ch(r);mg(u,r)}else g=0}else g=0}while(0);i=x;return g|0}function dv(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0;i=Oq(b)|0;e=cv(b,d,e,g)|0;if(e){if(!(c[(d&p)>>2]|0))g=0;else g=((c[((c[(b&p)>>2]|0)&p)+24>>2]|0)>>>18&1^1)&255;b=b+72|0;d=(c[(b&p)>>2]|0)+1|0;c[(b&p)>>2]=d;wh(i,131,f,h,d)|0;xh(i,-1,c[(e&p)+8>>2]|0,-18);e=c[(i&p)+4>>2]|0;if(e)a[(e+(((c[(i&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=g}return}function ev(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;f=c[(a&p)>>2]|0;h=c[((c[(f&p)+16>>2]|0)+(e<<4)&p)>>2]|0;g=kc[c[(f&p)+284>>2]&7](c[(f&p)+288>>2]|0,20,b,d,h,c[(a&p)+492>>2]|0)|0;if((g|0)==1){if((e|0)!=0?1:(c[(f&p)+20>>2]|0)>2){c[(k&p)>>2]=h;c[(k&p)+4>>2]=b;c[(k&p)+8>>2]=d;th(a,27688,k)}else{c[(k&p)>>2]=b;c[(k&p)+4>>2]=d;th(a,27728,k)}c[(a&p)+12>>2]=23}else if(!((g|0)==0|(g|0)==2)){th(a,25232,k);c[(a&p)+12>>2]=1}i=l;return g|0}function fv(e,f,g,h,i,j,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;B=Oq(e)|0;D=(c[(e&p)+68>>2]|0)+-1|0;E=xs(B)|0;if((l|0)<0)wh(B,135,d[(i&n)+24>>0]|0,E,0)|0;q=i+20|0;r=c[(q&p)>>2]|0;if((r|0)>0){t=k+1|0;s=0;do{wh(B,76,t+(c[(j+(s<<2)&p)>>2]|0)|0,E,0)|0;s=s+1|0;r=c[(q&p)>>2]|0}while((s|0)<(r|0))}do if(!m){if(!h){r=e+19|0;q=a[(r&n)>>0]|0;if(!(q<<24>>24)){h=e+72|0;t=(c[(h&p)>>2]|0)+1|0;c[(h&p)>>2]=t}else{t=q+-1<<24>>24;a[(r&n)>>0]=t;t=c[(e+((t&255)<<2)&p)+24>>2]|0}wh(B,34,k+1+(c[(j&p)>>2]|0)|0,t,0)|0;s=wh(B,38,t,0,0)|0;if(((l|0)==1?(c[(i&p)>>2]|0)==(g|0):0)?(wh(B,79,k,E,t)|0,u=c[(B&p)+4>>2]|0,(u|0)!=0):0)a[(u+(((c[(B&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;Qq(e,D,f,g,54);wh(B,70,D,0,t)|0;wh(B,16,0,E,0)|0;q=c[(B&p)+32>>2]|0;if(q>>>0>1)c[((c[(B&p)+4>>2]|0)+((q+-2|0)*20|0)&p)+8>>2]=q;m=q+-1|0;r=(c[(B&p)+24>>2]|0)+88|0;c[(r&p)>>2]=m;if(q>>>0>s>>>0)c[((c[(B&p)+4>>2]|0)+(s*20|0)&p)+8>>2]=q;c[(r&p)>>2]=m;_r(e,t);break}z=e+60|0;t=c[(z&p)>>2]|0;A=e+56|0;s=c[(A&p)>>2]|0;if((s|0)<(r|0)){y=e+72|0;t=c[(y&p)>>2]|0;c[(y&p)>>2]=t+r;t=t+1|0}else{c[(z&p)>>2]=t+r;c[(A&p)>>2]=s-r}s=e+19|0;q=a[(s&n)>>0]|0;if(!(q<<24>>24)){m=e+72|0;y=(c[(m&p)>>2]|0)+1|0;c[(m&p)>>2]=y}else{y=q+-1<<24>>24;a[(s&n)>>0]=y;y=c[(e+((y&255)<<2)&p)+24>>2]|0}wh(B,54,D,c[(h&p)+40>>2]|0,f)|0;m=c[(e&p)+8>>2]|0;xh(m,-1,hs(e,h)|0,-6);m=(r|0)>0;if(m){s=k+1|0;q=0;do{wh(B,33,s+(c[(j+(q<<2)&p)>>2]|0)|0,q+t|0,0)|0;q=q+1|0}while((q|0)!=(r|0))}if((l|0)==1?(c[(i&p)>>2]|0)==(g|0):0){w=B+32|0;x=r+1+(c[(w&p)>>2]|0)|0;if(m){f=k+1|0;v=h+4|0;s=g+36|0;q=B+4|0;u=0;do{m=b[((c[(v&p)>>2]|0)+(u<<1)&o)>>1]|0;wh(B,78,f+(c[(j+(u<<2)&p)>>2]|0)|0,x,(m<<16>>16==(b[(s&o)>>1]|0)?0:(m<<16>>16)+1|0)+k|0)|0;m=c[(q&p)>>2]|0;if(m)a[(m+(((c[(w&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;u=u+1|0}while((u|0)!=(r|0))}wh(B,16,0,E,0)|0}k=ot(B,h)|0;xh(B,wh(B,49,t,r,y)|0,k,r);xh(B,wh(B,69,D,E,y)|0,0,-14);_r(e,y);dt(e,t,r);if((c[(A&p)>>2]|0)<(r|0)){c[(A&p)>>2]=r;c[(z&p)>>2]=t}}while(0);q=a[(i&n)+24>>0]|0;m=q<<24>>24==0;if(((m?(c[((c[(e&p)>>2]|0)&p)+24>>2]&16777216|0)==0:0)?(c[(e&p)+408>>2]|0)==0:0)?(a[(e&n)+20>>0]|0)==0:0)zs(e,787,2,0,-2,4);else{if(!((l|0)<1|m^1)){i=c[(e&p)+408>>2]|0;a[(((i|0)==0?e:i)&n)+21>>0]=1}wh(B,134,q&255,l,0)|0}m=c[(B&p)+24>>2]|0;q=~E;if((E|0)<0?(C=c[(m&p)+112>>2]|0,(C|0)!=0):0)c[(C+(q<<2)&p)>>2]=c[(B&p)+32>>2];c[(m&p)+88>>2]=(c[(B&p)+32>>2]|0)+-1;wh(B,61,D,0,0)|0;return}function gv(f,g,h,k,l,m,q,r){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;G=i;i=i+48|0;if((i|0)>=(j|0))fa();B=G+32|0;C=G;D=c[(f&p)>>2]|0;E=Oq(f)|0;if((r|0)<0)F=wh(E,135,d[(l&n)+24>>0]|0,0,0)|0;else F=0;A=l+20|0;if((c[(A&p)>>2]|0)>0){z=(k|0)==0;y=(m|0)==0;x=l+36|0;w=k+4|0;v=0;s=0;do{if(z)u=-1;else u=b[((c[(w&p)>>2]|0)+(v<<1)&o)>>1]|0;t=Qv(f,h,q,u)|0;if(y)u=x;else u=m+(v<<2)|0;s=ss(D,s,Zq(f,79,t,tt(D,27,c[((c[((c[(l&p)>>2]|0)&p)+4>>2]|0)+((c[(u&p)>>2]<<16>>16)*24|0)&p)>>2]|0)|0,0)|0)|0;v=v+1|0}while((v|0)<(c[(A&p)>>2]|0));u=l}else{u=l;s=0}if((r|0)>0?(c[(u&p)>>2]|0)==(h|0):0){if(!(a[(h&n)+44>>0]&32)){m=c[(f&p)>>2]|0;c[(B&p)>>2]=0;c[(B&p)+4>>2]=0;m=nr(m,159,B,0)|0;if(!m)m=0;else{c[(m&p)+28>>2]=q;a[(m&n)+1>>0]=68}u=c[(g&p)+48>>2]|0;c[(B&p)>>2]=0;c[(B&p)+4>>2]=0;t=nr(D,154,B,0)|0;if(t){c[(t&p)+44>>2]=h;c[(t&p)+28>>2]=u;b[(t&o)+32>>1]=-1}m=Zq(f,78,m,t,0)|0}else{u=h+8|0;while(1){u=c[(u&p)>>2]|0;if((a[(u&n)+51>>0]&3)==2)break;u=u+20|0}A=u+46|0;if(!(b[(A&o)>>1]|0))m=0;else{w=k+4|0;x=g+48|0;y=B+4|0;z=0;m=0;do{u=b[((c[(w&p)>>2]|0)+(z<<1)&o)>>1]|0;t=Qv(f,h,q,u)|0;v=c[(x&p)>>2]|0;c[(B&p)>>2]=0;c[(y&p)>>2]=0;k=nr(D,154,B,0)|0;if(k){c[(k&p)+44>>2]=h;c[(k&p)+28>>2]=v;b[(k&o)+32>>1]=u}m=ss(D,m,Zq(f,79,t,k,0)|0)|0;z=z+1|0}while((z|0)<(e[(A&o)>>1]|0))}m=Zq(f,19,m,0,0)|0}s=ss(D,s,m)|0};c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;c[(C&p)+8>>2]=0;c[(C&p)+12>>2]=0;c[(C&p)+16>>2]=0;c[(C&p)+20>>2]=0;c[(C&p)+24>>2]=0;c[(C&p)+28>>2]=0;c[(C&p)+4>>2]=g;c[(C&p)>>2]=f;ls(C,s)|0;m=Vs(f,g,s,0,0,0,0)|0;wh(E,134,d[(l&n)+24>>0]|0,r,0)|0;if(m)Xs(m);Gk(D,s);if(F){m=c[(E&p)+32>>2]|0;if(m>>>0>F>>>0)c[((c[(E&p)+4>>2]|0)+(F*20|0)&p)+8>>2]=m;c[((c[(E&p)+24>>2]|0)&p)+88>>2]=m+-1}i=G;return}function hv(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+32|0;if((i|0)>=(j|0))fa();t=w;r=w+16|0;v=w+28|0;k=c[(b&p)>>2]|0;u=Oq(b)|0;if(u){m=(c[(k&p)+16>>2]|0)+(d<<4)|0;o=b+388|0;q=(f|0)==0;s=0;a:while(1){l=c[(s<<3&p)+28744>>2]|0;h=_h(k,l,c[(m&p)>>2]|0)|0;do if(!h){if(!s){c[(t&p)>>2]=c[(m&p)>>2];c[(t&p)+4>>2]=l;c[(t&p)+8>>2]=28768;Br(b,28816,t);c[(r&p)>>2]=c[(o&p)>>2];a[(v&n)>>0]=4;s=s+1|0;continue a}}else{h=c[(h&p)+32>>2]|0;c[(r+(s<<2)&p)>>2]=h;a[(v+s&n)>>0]=0;gs(b,d,h,1,l);if(q){wh(u,118,h,d,0)|0;break}else{c[(t&p)>>2]=c[(m&p)>>2];c[(t&p)+4>>2]=l;c[(t&p)+8>>2]=g;c[(t&p)+12>>2]=f;Br(b,28840,t);break}}while(0);s=s+1|0;if((s|0)==3)break}xh(u,wh(u,55,e,c[(r&p)>>2]|0,d)|0,3,-14);h=c[(u&p)+4>>2]|0;if(h)a[(h+(((c[(u&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=a[(v&n)>>0]|0}i=w;return}function iv(d,f,g,h,i,j){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=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;G=c[(d&p)>>2]|0;H=i+1|0;I=i+2|0;M=i+3|0;N=i+4|0;O=i+5|0;L=i+6|0;J=i+7|0;K=d+72|0;P=c[(K&p)>>2]|0;c[(K&p)>>2]=(P|0)>(J|0)?P:J;P=Oq(d)|0;if((!((P|0)==0|(f|0)==0)?(s=f+32|0,(c[(s&p)>>2]|0)!=0):0)?(t=c[(f&p)>>2]|0,(Fc(t,25568,7)|0)!=0):0){m=c[(f&p)+68>>2]|0;a:do if(m){l=c[(G&p)+20>>2]|0;if((l|0)>0){k=c[(G&p)+16>>2]|0;r=0;while(1){q=r+1|0;if((c[(k+(r<<4)&p)+12>>2]|0)==(m|0)){q=r;break a}if((q|0)<(l|0))r=q;else break}}else q=0}else q=-1e6;while(0);if(!(Sq(d,28,t,0,c[((c[(G&p)+16>>2]|0)+(q<<4)&p)>>2]|0)|0)){gs(d,q,c[(s&p)>>2]|0,0,c[(f&p)>>2]|0);z=j+1|0;F=j+2|0;t=d+68|0;E=c[(t&p)>>2]|0;c[(t&p)>>2]=(E|0)>(F|0)?E:F;Qq(d,j,q,f,54);t=c[(f&p)>>2]|0;xh(P,wh(P,97,0,N,0)|0,t,0);t=c[(f&p)+8>>2]|0;F=(g|0)==0;if(!t)m=1;else{A=f+44|0;B=d+8|0;C=P+4|0;D=P+32|0;E=P+24|0;m=1;do{do if(F|(t|0)==(g|0)){m=(c[(t&p)+36>>2]|0)==0?0:m;s=a[(t&n)+51>>0]|0;if(!((a[(A&n)>>0]&32)!=0&(s&3)==2)){k=e[(t&o)+48>>1]|0;r=c[(t&p)>>2]|0;l=t+46|0;if(!(s&8)){v=l;u=k;s=k}else{v=l;u=k;s=e[(l&o)>>1]|0}}else{v=t+46|0;s=e[(v&o)>>1]|0;u=s;r=c[(f&p)>>2]|0}x=s+-1|0;xh(P,wh(P,97,0,O,0)|0,r,0);y=c[(K&p)>>2]|0;s=x+J|0;c[(K&p)>>2]=(y|0)>(s|0)?y:s;wh(P,54,z,c[(t&p)+40>>2]|0,q)|0;s=c[(B&p)>>2]|0;xh(s,-1,hs(d,t)|0,-6);wh(P,25,u,I,0)|0;wh(P,25,e[(v&o)>>1]|0,M,0)|0;wh(P,1,0,I,H)|0;xh(P,-1,28552,-5);s=c[(C&p)>>2]|0;if(s)a[(s+(((c[(D&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;y=wh(P,108,z,0,0)|0;wh(P,25,0,I,0)|0;r=c[(D&p)>>2]|0;if((x|0)>0){u=xs(P)|0;w=mh(G,x<<2,0)|0;if(!w)break;wh(P,16,0,0,0)|0;r=c[(D&p)>>2]|0;if(((x|0)==1?(b[(v&o)>>1]|0)==1:0)?(a[(t&n)+50>>0]|0)!=0:0)wh(P,77,J,u,0)|0;s=t+32|0;k=0;do{v=cr(d,c[((c[(s&p)>>2]|0)+(k<<2)&p)>>2]|0)|0;wh(P,25,k,I,0)|0;wh(P,47,z,k,M)|0;l=wh(P,78,M,0,k+J|0)|0;xh(P,l,v,-4);c[(w+(k<<2)&p)>>2]=l;l=c[(C&p)>>2]|0;if(l)a[(l+(((c[(D&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;k=k+1|0}while((k|0)!=(x|0));wh(P,25,x,I,0)|0;wh(P,16,0,u,0)|0;s=r+-1|0;l=c[(D&p)>>2]|0;if(l>>>0>s>>>0)c[((c[(C&p)>>2]|0)+(s*20|0)&p)+8>>2]=l;c[((c[(E&p)>>2]|0)&p)+88>>2]=l+-1;s=0;while(1){k=c[(w+(s<<2)&p)>>2]|0;if(l>>>0>k>>>0)c[((c[(C&p)>>2]|0)+(k*20|0)&p)+8>>2]=l;c[((c[(E&p)>>2]|0)&p)+88>>2]=l+-1;wh(P,47,z,s,s+J|0)|0;s=s+1|0;if((s|0)==(x|0))break;l=c[(D&p)>>2]|0}l=c[(E&p)>>2]|0;k=~u;do if((u|0)<0){s=c[(l&p)+112>>2]|0;if(!s)break;c[(s+(k<<2)&p)>>2]=c[(D&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(D&p)>>2]|0)+-1;mg(G,w)}wh(P,1,1,H,M)|0;xh(P,-1,28592,-5);s=c[(C&p)>>2]|0;if(s)a[(s+(((c[(D&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;wh(P,9,z,r,0)|0;wh(P,1,0,H,L)|0;xh(P,-1,28640,-5);s=c[(C&p)>>2]|0;if(s)a[(s+(((c[(D&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;xh(P,wh(P,49,N,3,M)|0,28632,0);wh(P,74,h,i,0)|0;wh(P,75,h,M,i)|0;r=c[(C&p)>>2]|0;s=c[(D&p)>>2]|0;if(r)a[(r+((s+-1|0)*20|0)&n)+3>>0]=8;if(s>>>0>y>>>0)c[(r+(y*20|0)&p)+8>>2]=s;c[((c[(E&p)>>2]|0)&p)+88>>2]=s+-1}while(0);t=c[(t&p)+20>>2]|0}while((t|0)!=0)}if(!(m<<24>>24==0|F^1)){wh(P,50,j,L,0)|0;m=wh(P,46,L,0,0)|0;wh(P,28,0,O,0)|0;xh(P,wh(P,49,N,3,M)|0,28632,0);wh(P,74,h,i,0)|0;wh(P,75,h,M,i)|0;l=c[(P&p)+4>>2]|0;k=c[(P&p)+32>>2]|0;if(l)a[(l+((k+-1|0)*20|0)&n)+3>>0]=8;if(k>>>0>m>>>0)c[(l+(m*20|0)&p)+8>>2]=k;c[((c[(P&p)+24>>2]|0)&p)+88>>2]=k+-1}}}return}function jv(a,b){a=a|0;b=b|0;a=Oq(a)|0;if(a)wh(a,123,b,0,0)|0;return}function kv(d){d=d|0;var e=0,f=0,g=0;a:while(1){e=c[(d&p)+4>>2]|0;do if(e&4096)if(!(e&262144)){d=d+12|0;break}else{d=c[((c[(d&p)+20>>2]|0)&p)+4>>2]|0;break}else{if(e&512){d=0;break a}switch(a[(d&n)>>0]|0){case 119:break;case -102:case -100:case -97:{g=11;break a}case 38:{g=10;break a}default:{g=14;break a}}d=c[((c[(c[(d&p)+20>>2]&p)>>2]|0)&p)+4>>2]|0}while(0);d=c[(d&p)>>2]|0}if((g|0)==10)d=Xq(c[(d&p)+8>>2]|0,0)|0;else if((g|0)==11){f=c[(d&p)+44>>2]|0;if(f){e=b[(d&o)+32>>1]|0;if(e<<16>>16<0)d=68;else d=a[((c[(f&p)+4>>2]|0)+((e<<16>>16)*24|0)&n)+21>>0]|0}else g=14}if((g|0)==14)d=a[(d&n)+1>>0]|0;return d|0}function lv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;wh(b,25,0,e,0)|0;f=wh(b,108,d,0,0)|0;wh(b,47,d,0,e)|0;d=c[(b&p)+4>>2]|0;e=c[(b&p)+32>>2]|0;if(d)a[(d+((e+-1|0)*20|0)&n)+3>>0]=-128;if(e>>>0>f>>>0)c[(d+(f*20|0)&p)+8>>2]=e;c[((c[(b&p)+24>>2]|0)&p)+88>>2]=e+-1;return}function mv(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;H=i;i=i+32|0;if((i|0)>=(j|0))fa();C=H;F=e+68|0;G=c[(F&p)>>2]|0;c[(F&p)>>2]=G+1;F=Oq(e)|0;D=(g&4|0)!=0;E=f+4|0;a:do if((((((((((((c[(E&p)>>2]&2048|0)!=0?(q=c[(f&p)+20>>2]|0,!((c[(e&p)+64>>2]|0)!=0|(q|0)==0)):0)?(c[(q&p)+52>>2]|0)==0:0)?(b[(q&o)+6>>1]&5)==0:0)?(c[(q&p)+60>>2]|0)==0:0)?(c[(q&p)+36>>2]|0)==0:0)?(m=c[(q&p)+32>>2]|0,(c[(m&p)>>2]|0)==1):0)?(c[(m&p)+28>>2]|0)==0:0)?(w=c[(m&p)+24>>2]|0,(w|0)!=0):0)?(a[(w&n)+44>>0]&16)==0:0)?(l=c[(q&p)>>2]|0,(c[(l&p)>>2]|0)==1):0)?(s=c[(c[(l&p)+4>>2]&p)>>2]|0,(a[(s&n)>>0]|0)==-102):0){A=c[(e&p)>>2]|0;B=b[(s&o)+32>>1]|0;r=c[(w&p)+68>>2]|0;b:do if(r){m=c[(A&p)+20>>2]|0;if((m|0)>0){l=c[(A&p)+16>>2]|0;k=0;while(1){q=k+1|0;if((c[(l+(k<<4)&p)+12>>2]|0)==(r|0)){q=k;break b}if((q|0)<(m|0))k=q;else break}}else q=0}else q=-1e6;while(0);y=q<<16>>16;Ar(e,y);gs(e,y,c[(w&p)+32>>2]|0,0,c[(w&p)>>2]|0);z=B<<16>>16;if(B<<16>>16<0){k=Oq(e)|0;h=e+80|0;l=c[(h&p)>>2]|0;c[(h&p)>>2]=l+1;l=wh(k,44,l,0,0)|0;Qq(e,G,y,w,54);k=c[(F&p)+32>>2]|0;if(k>>>0>l>>>0)c[((c[(F&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(F&p)+24>>2]|0)&p)+88>>2]=k+-1;k=1;r=49;break}k=Ou(e,c[(f&p)+12>>2]|0,s)|0;x=w+4|0;r=a[((c[(x&p)>>2]|0)+(z*24|0)&n)+21>>0]|0;q=(nv(f)|0)<<24>>24;if((q|0)==65)q=1;else if((q|0)==66)q=r<<24>>24==66&1;else q=r<<24>>24>66&1;r=c[(w&p)+8>>2]|0;if((r|0)!=0&(q|0)!=0){s=A+62|0;q=e+80|0;m=e+8|0;l=(h|0)==0;t=F+32|0;v=F+4|0;w=F+24|0;u=e+72|0;c:while(1){do if((b[(c[(r&p)+4>>2]&o)>>1]|0)==B<<16>>16?(Yn(A,a[(s&n)>>0]|0,c[(c[(r&p)+32>>2]&p)>>2]|0,0)|0)==(k|0):0){if(!D)break c;if((b[(r&o)+46>>1]|0)!=1)break;if(a[(r&n)+50>>0]|0)break c}while(0);r=c[(r&p)+20>>2]|0;if(!r){r=38;break a}}E=Oq(e)|0;k=c[(q&p)>>2]|0;c[(q&p)>>2]=k+1;q=wh(E,44,k,0,0)|0;wh(F,54,G,c[(r&p)+40>>2]|0,y)|0;k=c[(m&p)>>2]|0;xh(k,-1,hs(e,r)|0,-6);k=(d[(c[(r&p)+28>>2]&n)>>0]|0)+3|0;if(!l?(a[((c[(x&p)>>2]|0)+(z*24|0)&n)+20>>0]|0)==0:0){E=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=E;c[(h&p)>>2]=E;lv(F,G,E)}l=c[(t&p)>>2]|0;if(l>>>0>q>>>0)c[((c[(v&p)>>2]|0)+(q*20|0)&p)+8>>2]=l;c[((c[(w&p)>>2]|0)&p)+88>>2]=l+-1;r=49}else r=38}else r=38;while(0);do if((r|0)==38){if((g&1|0)!=0?(c[(E&p)>>2]&2048|0)==0:0){g=f+12|0;B=c[(g&p)>>2]|0;c[(g&p)>>2]=0;c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;c[(C&p)+8>>2]=0;c[(C&p)+12>>2]=0;c[(C&p)+16>>2]=0;c[(C&p)+20>>2]=0;F=C+20|0;a[(F&n)>>0]=1;c[(C&p)>>2]=78;c[(C&p)+4>>2]=79;c[(C&p)+24>>2]=0;rs(C,f)|0;F=a[(F&n)>>0]|0;c[(g&p)>>2]=B;if(!(F<<24>>24)){k=5;r=49;break}if((c[(c[(f&p)+20>>2]&p)>>2]|0)<3){k=5;r=49;break}}m=e+424|0;q=c[(m&p)>>2]|0;if(D){c[(m&p)>>2]=0;if((b[((c[(f&p)+12>>2]|0)&o)+32>>1]|0)<0){k=((c[(E&p)>>2]|0)>>>11&1)+1|0;l=0}else{k=2;l=0}}else if(!h){k=2;l=0}else{k=e+72|0;l=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=l;c[(h&p)>>2]=l;k=2}eu(e,f,l,(k|0)==1&1)|0;c[(m&p)>>2]=q}while(0);if((r|0)==49)c[(f&p)+28>>2]=G;i=H;return k|0}function nv(a){a=a|0;var b=0,d=0;b=kv(c[(a&p)+12>>2]|0)|0;d=c[(a&p)+16>>2]|0;do if(!d)if(!(c[(a&p)+4>>2]&2048))return (b<<24>>24==0?65:b)|0;else{b=Bu(c[(c[((c[(c[(a&p)+20>>2]&p)>>2]|0)&p)+4>>2]&p)>>2]|0,b)|0;break}else b=Bu(d,b)|0;while(0);return b|0}function ov(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;aa=i;i=i+16|0;if((i|0)>=(j|0))fa();Z=aa;X=c[(d&p)>>2]|0;_=k+28|0;c[(_&p)>>2]=-1;W=k+44|0;c[(W&p)>>2]=0;a:do if((e|0)!=0?(b[(h&o)+28>>1]&20)==0:0){t=c[(X&p)+20>>2]|0;if((t|0)>0){r=c[(X&p)+16>>2]|0;s=0;while(1){if(!(dd(c[(r+(s<<4)&p)>>2]|0,e)|0))break;s=s+1|0;if((s|0)>=(t|0)){V=e;e=0;break a}}V=e;e=c[(r+(s<<4)&p)+12>>2]|0}else{V=e;e=0}}else{V=0;e=0}while(0);T=(V|0)==0;Q=T&(f|0)!=0;m=d+412|0;M=d+436|0;N=k+1|0;$=k+32|0;O=d+428|0;P=d+432|0;U=(f|0)==0;S=k+4|0;l=h;u=0;q=0;t=0;s=0;b:while(1){L=(l|0)!=0;r=l+4|0;K=l+8|0;v=0;w=u;while(1){u=(v|0)==0;if(!(L&u)){Y=82;break b}v=c[(r&p)>>2]|0;if(v){J=c[(v&p)>>2]|0;if((J|0)>0){u=0;I=0;H=v+8|0;while(1){F=c[(H&p)+16>>2]|0;x=c[(H&p)+20>>2]|0;if((x|0)!=0?(b[(x&o)+6>>1]&512)!=0:0){x=c[(x&p)>>2]|0;D=c[(x&p)>>2]|0;if((D|0)>0){E=c[(x&p)+4>>2]|0;x=0;z=0;do{if(vv(c[(E+(z*20|0)&p)+8>>2]|0,g,f,V)|0){b[($&o)>>1]=z;u=u+1|0;w=2;x=1;s=H}z=z+1|0}while((z|0)<(D|0))}else x=0;if(!((x|0)!=0|U)){y=w;Y=21}}else{y=w;Y=21}c:do if((Y|0)==21){Y=0;if(!T?(c[(F&p)+68>>2]|0)!=(e|0):0){w=y;break}if(!U){x=c[(H&p)+12>>2]|0;if(!x)x=c[(F&p)>>2]|0;if(dd(x,f)|0){w=y;break}}w=y+1|0;s=(y|0)==0?H:s;x=b[(F&o)+38>>1]|0;if(x<<16>>16>0){v=(u|0)==1;A=H+36|0;B=H+48|0;D=0;E=c[(F&p)+4>>2]|0;d:while(1){e:do if(!(dd(c[(E&p)>>2]|0,g)|0)){if(!v){s=D;break d}if(!(a[(A&n)>>0]&4)){z=c[(B&p)>>2]|0;if(!z){s=D;break d}C=c[(z&p)+4>>2]|0;if((C|0)<=0){s=D;break d}z=c[(z&p)>>2]|0;y=0;while(1){if(!(dd(c[(z+(y<<3)&p)>>2]|0,g)|0))break e;y=y+1|0;if((y|0)>=(C|0)){s=D;break d}}}}while(0);D=D+1|0;if((D|0)>=(x<<16>>16|0))break c;else E=E+24|0}b[($&o)>>1]=(s|0)==(b[(F&o)+36>>1]|0)?-1:s&65535;u=u+1|0;s=H}}while(0);I=I+1|0;if((I|0)>=(J|0))break;else H=H+72|0}}else u=0;if(!s)E=0;else{c[(_&p)>>2]=c[(s&p)+40>>2];v=c[(s&p)+16>>2]|0;c[(W&p)>>2]=v;if(a[(s&n)+36>>0]&8)c[(S&p)>>2]=c[(S&p)>>2]|1048576;E=s;e=c[(v&p)+68>>2]|0}}else{u=0;E=s}do if(Q&(w|0)==0)if(c[(m&p)>>2]|0){v=a[(M&n)>>0]|0;if(v<<24>>24!=109)if(dd(27560,f)|0)if(v<<24>>24==108){y=u;w=0;z=q;break}else Y=49;else z=1;else Y=49;if((Y|0)==49){Y=0;if(!(dd(27568,f)|0))z=0;else{y=u;w=0;z=q;break}}c[(_&p)>>2]=z;y=c[(m&p)>>2]|0;if(y){e=c[(y&p)+68>>2]|0;x=b[(y&o)+38>>1]|0;f:do if(x<<16>>16>0){v=0;w=c[(y&p)+4>>2]|0;while(1){if(!(dd(c[(w&p)>>2]|0,g)|0))break;v=v+1|0;if((v|0)<(x<<16>>16|0))w=w+24|0;else break f}v=(v|0)==(b[(y&o)+36>>1]|0)?-1:v}else v=0;while(0);s=x<<16>>16;if((v|0)>=(s|0)?($h(g)|0)!=0:0)w=(a[(y&n)+44>>0]&32)==0?-1:v;else w=v;if((w|0)<(s|0)){u=u+1|0;do if((w|0)>=0){v=(w|0)>31?-1:1<<w;if(!z){c[(O&p)>>2]=c[(O&p)>>2]|v;break}else{c[(P&p)>>2]=c[(P&p)>>2]|v;break}}else a[(N&n)>>0]=68;while(0);b[($&o)>>1]=w;c[(W&p)>>2]=y;w=1;q=1;Y=66}else{w=1;Y=66}}else{y=u;w=0;z=q}}else{y=u;w=0;z=q}else Y=66;while(0);if((Y|0)==66){Y=0;if((u|0)==0&(w|0)==1&(E|0)!=0)if(($h(g)|0)!=0?(a[((c[(E&p)+16>>2]|0)&n)+44>>0]&32)==0:0){b[($&o)>>1]=-1;a[(N&n)>>0]=68;v=1;s=E;continue}else{y=0;z=q}else{y=u;z=q}}u=c[(K&p)>>2]|0;x=(y|0)==0;if((u|0)!=0&U&x?(R=c[(u&p)>>2]|0,(R|0)>0):0){q=c[(u&p)+4>>2]|0;s=0;do{v=c[(q+(s*20|0)&p)+4>>2]|0;if((v|0)!=0?(dd(v,g)|0)==0:0){Y=75;break b}s=s+1|0}while((s|0)<(R|0))}if(x){v=w;q=z;s=E;break}else{v=y;q=z;s=E}}l=c[(l&p)+16>>2]|0;u=v;t=t+1|0}do if((Y|0)==75){if((b[(l&o)+28>>1]&1)==0?(c[((c[(q+(s*20|0)&p)>>2]|0)&p)+4>>2]&2|0)!=0:0){c[(Z&p)>>2]=v;th(d,27576,Z);h=2;break}yv(d,u,s,k,10360,t);if((a[(k&n)>>0]|0)==24)Y=115;else Y=96}else if((Y|0)==82){if(u&U?(c[(S&p)>>2]&64|0)!=0:0){a[(k&n)>>0]=97;c[(W&p)>>2]=0;h=1;break}v=(v|0)==1;if(!v){u=u?27608:27624;do if(T)if(U){c[(Z&p)>>2]=u;c[(Z&p)+4>>2]=g;th(d,27680,Z);break}else{c[(Z&p)>>2]=u;c[(Z&p)+4>>2]=f;c[(Z&p)+8>>2]=g;th(d,27664,Z);break}else{c[(Z&p)>>2]=u;c[(Z&p)+4>>2]=V;c[(Z&p)+8>>2]=f;c[(Z&p)+12>>2]=g;th(d,27648,Z)}while(0);a[(d&n)+17>>0]=1;I=h+24|0;c[(I&p)>>2]=(c[(I&p)>>2]|0)+1}t=b[($&o)>>1]|0;if(t<<16>>16>-1&(s|0)!=0){E=t<<16>>16>63;F=iw(1,0,t<<16>>16|0)|0;I=s+56|0;D=I;H=c[(D&p)+4>>2]|(E?-2147483648:G);c[(I&p)>>2]=c[(D&p)>>2]|(E?0:F);c[(I&p)+4>>2]=H}I=k+12|0;Gk(X,c[(I&p)>>2]|0);c[(I&p)>>2]=0;I=k+16|0;Gk(X,c[(I&p)>>2]|0);c[(I&p)>>2]=0;a[(k&n)>>0]=(q|0)!=0?62:-102;if(v)Y=96;else h=2}while(0);g:do if((Y|0)==96){u=c[(r&p)>>2]|0;q=c[(d&p)>>2]|0;if(!((c[(q&p)+284>>2]|0)==0|(e|0)==0)){t=c[(q&p)+20>>2]|0;if((t|0)>0){r=c[(q&p)+16>>2]|0;s=0;while(1){q=s+1|0;if((c[(r+(s<<4)&p)+12>>2]|0)==(e|0)){q=s;break}if((q|0)<(t|0))s=q;else break}if((q|0)<0){Y=115;break}else e=q}else e=0;if((a[(k&n)>>0]|0)!=62){r=c[(u&p)>>2]|0;if((r|0)<=0){Y=115;break}m=c[(_&p)>>2]|0;q=0;while(1){if((m|0)==(c[(u+(q*72|0)&p)+48>>2]|0))break;q=q+1|0;if((q|0)>=(r|0)){Y=115;break g}}m=u+(q*72|0)+24|0}r=c[(m&p)>>2]|0;m=b[($&o)>>1]|0;q=m<<16>>16;if(r){if(m<<16>>16<=-1){m=b[(r&o)+36>>1]|0;if(m<<16>>16>-1)m=c[((c[(r&p)+4>>2]|0)+((m<<16>>16)*24|0)&p)>>2]|0;else m=12944}else m=c[((c[(r&p)+4>>2]|0)+(q*24|0)&p)>>2]|0;if((ev(d,c[(r&p)>>2]|0,m,e)|0)==2){a[(k&n)>>0]=101;Y=115}else Y=115}else Y=115}else Y=115}while(0);if((Y|0)==115){I=h+20|0;c[(I&p)>>2]=(c[(I&p)>>2]|0)+1;if((l|0)==(h|0))h=1;else{do{h=c[(h&p)+16>>2]|0;I=h+20|0;c[(I&p)>>2]=(c[(I&p)>>2]|0)+1}while((h|0)!=(l|0));h=1}}i=aa;return h|0}function pv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=a[(d&n)>>0]|0;a:do if(e<<24>>24==-100|e<<24>>24==-102){e=c[(b&p)+24>>2]|0;f=c[(e&p)>>2]|0;b:do if((f|0)!=0?(g=c[(f&p)>>2]|0,(g|0)>0):0){b=c[(d&p)+28>>2]|0;d=0;while(1){if((b|0)==(c[(f+(d*72|0)&p)+48>>2]|0))break;d=d+1|0;if((d|0)>=(g|0))break b}b=e+4|0;c[(b&p)>>2]=(c[(b&p)>>2]|0)+1;break a}while(0);b=e+8|0;c[(b&p)>>2]=(c[(b&p)>>2]|0)+1}while(0);return 0}function qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;z=i;i=i+16|0;if((i|0)>=(j|0))fa();y=z;t=z+12|0;a:do if(!f)h=0;else{w=c[(c[(e&p)>>2]&p)>>2]|0;x=c[(d&p)>>2]|0;b:do if((c[(f&p)>>2]|0)>0){h=0;u=c[(f&p)+4>>2]|0;c:while(1){r=c[(u&p)>>2]|0;d:do if(!r)k=0;else{k=r;while(1){l=c[(k&p)+4>>2]|0;if(!(l&4096))break d;if(!(l&262144))k=k+12|0;else k=c[((c[(k&p)+20>>2]|0)&p)+4>>2]|0;k=c[(k&p)>>2]|0;if(!k){k=0;break}}}while(0);if((a[(g&n)>>0]|0)!=71?(s=rv(c[(e&p)>>2]|0,k)|0,c[(t&p)>>2]=s,(s|0)>0):0)b[(u&o)+16>>1]=s;else v=13;do if((v|0)==13){v=0;if(Ms(k,t)|0){k=c[(t&p)>>2]|0;if((k+-1|0)>>>0>65534)break c;b[(u&o)+16>>1]=k;break}m=u+16|0;b[(m&o)>>1]=0;if(ls(d,r)|0){h=1;break a}l=c[(e&p)>>2]|0;q=c[(l&p)>>2]|0;if((q|0)>0){l=c[(l&p)+4>>2]|0;k=0;do{A=k;k=k+1|0;if(!(Cu(r,c[(l+(A*20|0)&p)>>2]|0,-1)|0))b[(m&o)>>1]=k}while((k|0)<(q|0))}}while(0);h=h+1|0;if((h|0)>=(c[(f&p)>>2]|0))break b;else u=u+20|0}c[(y&p)>>2]=h+1;c[(y&p)+4>>2]=g;c[(y&p)+8>>2]=w;th(x,27064,y);h=1;break a}while(0);h=wu(x,e,f,g)|0}while(0);i=z;return h|0}function rv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;a:do if((a[(d&n)>>0]|0)==27?(f=c[(d&p)+8>>2]|0,g=c[(b&p)>>2]|0,(g|0)>0):0){b=c[(b&p)+4>>2]|0;d=0;while(1){e=c[(b+(d*20|0)&p)+4>>2]|0;if((e|0)!=0?(dd(e,f)|0)==0:0)break;d=d+1|0;if((d|0)>=(g|0)){d=0;break a}}d=d+1|0}else d=0;while(0);return d|0}function sv(a,d){a=a|0;d=d|0;var e=0,f=0;e=b[(a&o)+38>>1]|0;a:do if(e<<16>>16>0){f=c[(a&p)+4>>2]|0;e=e<<16>>16;a=0;while(1){if(!(dd(c[(f+(a*24|0)&p)>>2]|0,d)|0))break a;a=a+1|0;if((a|0)>=(e|0)){a=-1;break}}}else a=-1;while(0);return a|0}function tv(a,d,e,f,g,h,i,j){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0;k=c[(a&p)>>2]|0;e=Rv(k,d,e,f)|0;f=Rv(k,d,g,h)|0;h=Zq(a,79,e,f,0)|0;if((h|0)!=0&(i|0)!=0){e=h+4|0;c[(e&p)>>2]=c[(e&p)>>2]|1;b[(h&o)+36>>1]=c[(f&p)+28>>2]}c[(j&p)>>2]=ss(k,c[(j&p)>>2]|0,h)|0;return}function uv(a,d){a=a|0;d=d|0;var e=0,f=0;if(a){e=d&65535;do{f=a+4|0;c[(f&p)>>2]=c[(f&p)>>2]|1;b[(a&o)+36>>1]=e;uv(c[(a&p)+12>>2]|0,d);a=c[(a&p)+16>>2]|0}while((a|0)!=0)}return}function vv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=0;while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==46|g<<24>>24==0)break;f=f+1|0}if(e)if((Fc(b,e,f)|0)==0?(a[(e+f&n)>>0]|0)==0:0)h=7;else f=0;else h=7;do if((h|0)==7){e=f+1|0;h=b+e|0;g=0;while(1){i=a[(b+g+e&n)>>0]|0;if(i<<24>>24==46|i<<24>>24==0)break;g=g+1|0}if(d){if(Fc(h,d,g)|0){f=0;break}if(a[(d+g&n)>>0]|0){f=0;break}}if((c|0)!=0?(dd(b+(f+2+g)|0,c)|0)!=0:0){f=0;break}f=1}while(0);return f|0}function wv(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((a|0)!=0?(e=c[(a&p)+4>>2]|0,(e|0)>0):0){d=c[(a&p)>>2]|0;a=0;while(1){if(!(dd(c[(d+(a<<3)&p)>>2]|0,b)|0))break a;a=a+1|0;if((a|0)>=(e|0)){a=-1;break}}}else a=-1;while(0);return a|0}function xv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;c[(g&p)>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[(g&p)+4>>2]=f;f=vr(b,d,g,0)|0;i=h;return f|0}function yv(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();r=v;m=e+4|0;q=c[((c[(m&p)>>2]|0)+(f*20|0)&p)>>2]|0;s=c[(d&p)>>2]|0;l=Mr(s,q,0,0)|0;do if(l){if((a[(q&n)>>0]|0)!=-102?(a[(h&n)>>0]|0)!=71:0){if((k|0)>0){c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)>>2]=88;c[(r&p)+24>>2]=k;rs(r,l)|0}l=Zq(d,24,l,0,0)|0;if(!l)break;e=l+4|0;c[(e&p)>>2]=c[(e&p)>>2]|4096;e=(c[(m&p)>>2]|0)+(f*20|0)+18|0;k=b[(e&o)>>1]|0;if(!(k<<16>>16)){f=d+456|0;k=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=k;k=k&65535;b[(e&o)>>1]=k}c[(l&p)+28>>2]=k&65535}if((a[(g&n)>>0]|0)==95)l=xv(d,l,c[(g&p)+8>>2]|0)|0;e=g+4|0;c[(e&p)>>2]=c[(e&p)>>2]|32768;Gk(s,g);k=g+0|0;m=l+0|0;q=k+48|0;do{c[(k&p)>>2]=c[(m&p)>>2];k=k+4|0;m=m+4|0}while((k|0)<(q|0));if((c[(e&p)>>2]&1024|0)==0?(t=g+8|0,u=c[(t&p)>>2]|0,(u|0)!=0):0){c[(t&p)>>2]=kh(s,u)|0;c[(e&p)>>2]=c[(e&p)>>2]|65536}mg(s,l)}while(0);i=v;return}function zv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;n=a+12|0;g=c[(n&p)>>2]|0;k=a+16|0;i=c[(k&p)>>2]|0;m=a+20|0;do if((g|0)<(i|0))l=15;else{g=c[(m&p)>>2]|0;j=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;h=mh(j,i*96|0,0)|0;c[(m&p)>>2]=h;if(!h){if(f&1)Gk(j,d);c[(m&p)>>2]=g;g=0;break}kw(h|0,g|0,(c[(n&p)>>2]|0)*48|0)|0;if((g|0)!=(a+24|0))mg(j,g);h=c[(m&p)>>2]|0;do if(!j)h=lc[c[8792>>2]&127](h)|0;else{if((c[(j&p)+276>>2]|0)>>>0<=h>>>0?(c[(j&p)+280>>2]|0)>>>0>h>>>0:0){h=e[(j&o)+248>>1]|0;break}h=lc[c[8792>>2]&127](h)|0}while(0);l=(h>>>0)/48|0;c[(k&p)>>2]=l;g=c[(n&p)>>2]|0;fw((c[(m&p)>>2]|0)+(g*48|0)|0,0,(l-g|0)*48|0)|0;g=c[(n&p)>>2]|0;l=15}while(0);if((l|0)==15){c[(n&p)>>2]=g+1;i=c[(m&p)>>2]|0;a:do if(!d){b[(i+(g*48|0)&o)+16>>1]=1;d=0}else{if(!(c[(d&p)+4>>2]&262144))h=1;else{h=c[(d&p)+28>>2]|0;h=((fs(h,((h|0)<0)<<31>>31)|0)&65535)+65266&65535}b[(i+(g*48|0)&o)+16>>1]=h;while(1){h=c[(d&p)+4>>2]|0;if(!(h&4096))break a;if(!(h&262144))d=d+12|0;else d=c[((c[(d&p)+20>>2]|0)&p)+4>>2]|0;d=c[(d&p)>>2]|0;if(!d){d=0;break}}}while(0);c[(i+(g*48|0)&p)>>2]=d;b[(i+(g*48|0)&o)+20>>1]=f;c[(i+(g*48|0)&p)+24>>2]=a;c[(i+(g*48|0)&p)+4>>2]=-1}return g|0}function Av(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;a:do if(d)if((a[(d&n)>>0]|0)==-102){d=c[(d&p)+28>>2]|0;f=c[(b&p)>>2]|0;if((f|0)>0)e=0;else{f=0;e=0;break}while(1){if((c[(b+(e<<2)&p)+4>>2]|0)==(d|0))break;e=e+1|0;if((e|0)>=(f|0)){f=0;e=0;break a}}e=iw(1,0,e|0)|0;f=G;break}else{g=Av(b,c[(d&p)+16>>2]|0)|0;e=G;h=Av(b,c[(d&p)+12>>2]|0)|0;e=G|e;f=d+20|0;if(!(c[(d&p)+4>>2]&2048)){d=Lu(b,c[(f&p)>>2]|0)|0;f=G}else{d=Bv(b,c[(f&p)>>2]|0)|0;f=G}f=e|f;e=h|g|d;break}else{f=0;e=0}while(0);G=f;return e|0}function Bv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(!b){b=0;d=0}else{g=b;d=0;b=0;do{f=c[(g&p)+32>>2]|0;l=Lu(a,c[(g&p)>>2]|0)|0;b=G|b;k=Lu(a,c[(g&p)+40>>2]|0)|0;b=b|G;j=Lu(a,c[(g&p)+48>>2]|0)|0;b=b|G;i=Av(
[all...]
H A Dsqlite-safe-heap.js9 function St(a,b){a=a|0;b=b|0;var c=0;if(b&1)if(!(da(a+12|0,4,0,0)|0))b=(da(a+20|0,4,0,0)|0|0)==0?12:28;else b=28;else b=48;if(((da(a+4|0,4,0,0)|0)&1024|0)==0?(c=da(a+8|0,4,0,0)|0|0,(c|0)!=0):0){a=c;while(1)if(!(da(a>>0|0,1,0,0)|0))break;else a=a+1|0;b=(b|1)+(a-c&1073741823)|0}return b+7&-8|0}function Tt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=da(a|0,4,0,0)|0|0;g=d+20|0;c=da(g|0,4,0,0)|0|0;if((c|0)>0){f=0;e=da(d+16|0,4,0,0)|0|0;while(1){d=da((da(e+12|0,4,0,0)|0|0)+16|0,4,0,0)|0|0;if(d){c=d;do{Ut(a,da(c+8|0,4,0,0)|0|0,b);c=da(c|0,4,0,0)|0|0}while((c|0)!=0);c=da(g|0,4,0,0)|0|0}f=f+1|0;if((f|0)>=(c|0))break;else e=e+16|0}}return}function Ut(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=da(b+8|0,4,0,0)|0|0;if(d){k=(c|0)==0;i=b+68|0;j=a+408|0;do{a:do if(!k){g=d+32|0;b=da(d+48|0,2,0,0)|0|0;if(b<<16>>16){f=da(d+4|0,4,0,0)|0|0;b=b&65535;e=0;do{if((da(f+(e<<1)|0,2,0,0)|0|0)>-1?(cd(da((da(g|0,4,0,0)|0|0)+(e<<2)|0,4,0,0)|0|0,c)|0)==0:0){l=9;break a}e=e+1|0}while((e|0)<(b|0))}}else l=9;while(0);if((l|0)==9){l=0;b=da(a|0,4,0,0)|0|0;e=da(i|0,4,0,0)|0|0;b:do if(e){h=da(b+20|0,4,0,0)|0|0;if((h|0)>0){f=da(b+16|0,4,0,0)|0|0;g=0;while(1){b=g+1|0;if((da(f+(g<<4)+12|0,4,0,0)|0|0)==(e|0)){b=g;break b}if((b|0)<(h|0))g=b;else break}}else b=0}else b=-1e6;while(0);h=da(j|0,4,0,0)|0|0;zr(a,b);h=((h|0)==0?a:h)+328|0;ea(h|0,da(h|0,4,0,0)|0|1<<b|0,4,0);us(a,d,-1)}d=da(d+20|0,4,0,0)|0|0}while((d|0)!=0)}return}function Vt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=da((da((da(a|0,4,0,0)|0|0)+16|0,4,0,0)|0|0)+(b<<4)+12|0,4,0,0)|0|0;f=da(a+408|0,4,0,0)|0|0;zr(a,b);f=((f|0)==0?a:f)+328|0;ea(f|0,da(f|0,4,0,0)|0|1<<b|0,4,0);f=a+68|0;d=da(f|0,4,0,0)|0|0;ea(f|0,d+3|0,4,0);gv(a,b,d,0,0);e=(da(a+72|0,4,0,0)|0|0)+1|0;f=da(f|0,4,0,0)|0|0;c=da(c+16|0,4,0,0)|0|0;if(c)do{hv(a,da(c+8|0,4,0,0)|0|0,0,d,e,f);c=da(c|0,4,0,0)|0|0}while((c|0)!=0);iv(a,b);return}function Wt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=da(a|0,4,0,0)|0|0;g=da(b+68|0,4,0,0)|0|0;a:do if(g){h=da(d+20|0,4,0,0)|0|0;if((h|0)>0){e=da(d+16|0,4,0,0)|0|0;d=0;while(1){f=d+1|0;if((da(e+(d<<4)+12|0,4,0,0)|0|0)==(g|0)){f=d;break a}if((f|0)<(h|0))d=f;else break}}else f=0}else f=-1e6;while(0);d=da(a+408|0,4,0,0)|0|0;zr(a,f);d=((d|0)==0?a:d)+328|0;ea(d|0,da(d|0,4,0,0)|0|1<<f|0,4,0);d=a+68|0;e=da(d|0,4,0,0)|0|0;ea(d|0,e+3|0,4,0);if(!c)gv(a,f,e,da(b|0,4,0,0)|0|0,28544);else gv(a,f,e,da(c|0,4,0,0)|0|0,28536);hv(a,b,c,e,(da(a+72|0,4,0,0)|0|0)+1|0,da(d|0,4,0,0)|0|0);iv(a,f);return}function Xt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=((c|0)/2|0)+1|0;e=lh(a,e,((e|0)<0)<<31>>31)|0;a=c+-1|0;if(e){if((a|0)>0){d=0;do{f=da(b+d>>0|0,1,0,0)|0|0;g=da(b+(d|1)>>0|0,1,0,0)|0|0;ea(e+((d|0)/2|0)>>0|0,(0-(g>>>6&1)&9)+g&15|(0-(f>>>6&1)&9)+f<<4|0,1,0);d=d+2|0}while((d|0)<(a|0));a=(c&-2|0)/2|0}else a=0;ea(e+a>>0|0,0|0,1,0)}return e|0}function Yt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();f=k+8|0;h=k;g=da(a+8|0,4,0,0)|0|0;e=b+8|0;do if(!((da(b+4|0,4,0,0)|0)&1024)){e=da(e|0,4,0,0)|0|0;b=ii(e,h)|0;if((b|0)!=0?!((b|0)==2&(c|0)!=0):0)if(!(Ec(e,29144,2)|0)){ea(f|0,e|0,4,0);sh(a,29152,f);break}else{Zt(g,e,c,d);break}if(c){if((b|0)==2){b=0;e=-2147483648}else{b=h;b=cw(0,0,da(b|0,4,0,0)|0|0,da(b+4|0,4,0,0)|0|0)|0;e=C}c=h;ea(c|0,b|0,4,0);ea(c+4|0,e|0,4,0)}b=lh(da(g|0,4,0,0)|0|0,8,0)|0;if(b){e=h;a=da(e|0,4,0,0)|0|0;e=da(e+4|0,4,0,0)|0|0;c=b;f=c;ea(f>>0|0,a|0,1,0);ea(f+1>>0|0,a>>8|0,1,0);ea(f+2>>0|0,a>>16|0,1,0);ea(f+3>>0|0,a>>24|0,1,0);c=c+4|0;ea(c>>0|0,e|0,1,0);ea(c+1>>0|0,e>>8|0,1,0);ea(c+2>>0|0,e>>16|0,1,0);ea(c+3>>0|0,e>>24|0,1,0)}wh(g,vh(g,26,0,d,0)|0,b,-13)}else{b=da(e|0,4,0,0)|0|0;vh(g,25,(c|0)==0?b:0-b|0,d,0)|0}while(0);i=k;return}function Zt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;if(b){e=b;while(1)if(!(da(e>>0|0,1,0,0)|0))break;else e=e+1|0;Sl(b,f,e-b&1073741823,1)|0;if(c)ea(f|0,+-+(+da(f|0,8,1,0)),8,1);e=lh(da(a|0,4,0,0)|0|0,8,0)|0;if(e){c=f;f=da(c|0,4,0,0)|0|0;c=da(c+4|0,4,0,0)|0|0;b=e;h=b;ea(h>>0|0,f|0,1,0);ea(h+1>>0|0,f>>8|0,1,0);ea(h+2>>0|0,f>>16|0,1,0);ea(h+3>>0|0,f>>24|0,1,0);b=b+4|0;ea(b>>0|0,c|0,1,0);ea(b+1>>0|0,c>>8|0,1,0);ea(b+2>>0|0,c>>16|0,1,0);ea(b+3>>0|0,c>>24|0,1,0)}wh(a,vh(a,133,0,d,0)|0,e,-12)}i=g;return}function _t(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))ba();e=k;a:do if(!b)g=0;else while(1){d=da(b+4|0,4,0,0)|0|0;if(!(d&4096)){g=b;break a}if(!(d&262144))b=b+12|0;else b=da((da(b+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;b=da(b|0,4,0,0)|0|0;if(!b){g=0;break}}while(0);b:do if(((da(a+23>>0|0,1,0,0)|0|0)!=0?(da(g>>0|0,1,0,0)|0|0)!=-97:0)?(ea(e+0|0,0|0,4,0),ea(e+4|0,0|0,4,0),ea(e+8|0,0|0,4,0),ea(e+12|0,0|0,4,0),ea(e+16|0,0|0,4,0),ea(e+20|0,0|0,4,0),d=e+20|0,ea(d>>0|0,2|0,1,0),ea(e|0,78|0,4,0),ea(e+4|0,79|0,4,0),ea(e+24|0,0|0,4,0),qs(e,g)|0,(da(d>>0|0,1,0,0)|0|0)!=0):0){d=da(a+316|0,4,0,0)|0|0;ea(c|0,0|0,4,0);c:do if((d|0)!=0?(f=da(d|0,4,0,0)|0|0,(f|0)>0):0){b=f;d=da(d+4|0,4,0,0)|0|0;while(1){if(((da(d+13>>0|0,1,0,0)|0)&4)!=0?(Bu(da(d|0,4,0,0)|0|0,g,-1)|0)==0:0)break;b=b+-1|0;if((b|0)<=0)break c;else d=d+20|0}d=da(d+16|0,4,0,0)|0|0;break b}while(0);b=a+72|0;d=(da(b|0,4,0,0)|0|0)+1|0;ea(b|0,d|0,4,0);Ft(a,g,d,1)}else h=18;while(0);do if((h|0)==18){b=a+19|0;d=da(b>>0|0,1,0,0)|0|0;if(!(d<<24>>24)){b=a+72|0;d=(da(b|0,4,0,0)|0|0)+1|0;ea(b|0,d|0,4,0)}else{d=d+-1<<24>>24;ea(b>>0|0,d|0,1,0);d=da(a+((d&255)<<2)+24|0,4,0,0)|0|0}b=hs(a,g,d)|0;if((b|0)==(d|0)){ea(c|0,d|0,4,0);break}else{Zr(a,d);ea(c|0,0|0,4,0);d=b;break}}while(0);i=k;return d|0}function $t(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Nu(a,b,c)|0;i=Au(b,jv(c)|0)|0;c=a+8|0;b=da(c|0,4,0,0)|0|0;wh(b,vh(b,d,f,g,e)|0,j,-4);c=da(c|0,4,0,0)|0|0;b=da(c+4|0,4,0,0)|0|0;if(b)ea(b+(((da(c+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,i&255|h|0,1,0);return}function au(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=a+100|0;ea(b|0,(da(b|0,4,0,0)|0|0)+-1|0,4,0);e=a+19|0;h=0;i=a+116|0;while(1){f=i+12|0;g=da(f|0,4,0,0)|0|0;if((g|0)!=0?(da(i+8|0,4,0,0)|0|0)>(da(b|0,4,0,0)|0|0):0){c=i+6|0;if(da(c>>0|0,1,0,0)|0){d=da(e>>0|0,1,0,0)|0|0;if((d&255)<8){ea(e>>0|0,d+1<<24>>24|0,1,0);ea(a+((d&255)<<2)+24|0,g|0,4,0)}ea(c>>0|0,0|0,1,0)}ea(f|0,0|0,4,0)}h=h+1|0;if((h|0)==10)break;else i=i+20|0}return}function bu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=da(a|0,4,0,0)|0|0;a:do if(b){b:while(1){d=da(b+4|0,4,0,0)|0|0;if(d&512){b=0;h=21;break a}switch(da(b>>0|0,1,0,0)|0|0){case 62:case -102:case -100:{h=8;break}case -97:{if((da(b+38>>0|0,1,0,0)|0|0)==95){h=7;break b}else h=8;break}case 95:{h=7;break b}case 38:case -98:{b=da(b+12|0,4,0,0)|0|0;break}default:h=11}if((h|0)==8){c=da(b+44|0,4,0,0)|0|0;if(!c)h=11;else{h=9;break}}c:do if((h|0)==11){h=0;if(!(d&256)){b=0;h=21;break a}c=da(b+12|0,4,0,0)|0|0;if((c|0)!=0?((da(c+4|0,4,0,0)|0)&256|0)!=0:0){b=c;continue b}e=da(b+16|0,4,0,0)|0|0;c=da(b+20|0,4,0,0)|0|0;if((c|0)!=0&(d&2048|0)==0?(f=da(c|0,4,0,0)|0|0,(f|0)>0):0){c=da(c+4|0,4,0,0)|0|0;d=0;while(1){b=da(c+(d*20|0)|0,4,0,0)|0|0;d=d+1|0;if((da(b+4|0,4,0,0)|0)&256)break c;if((d|0)>=(f|0)){b=e;break}}}else b=e}while(0);if(!b){b=0;h=21;break a}}if((h|0)==7)b=vs(a,da(g+62>>0|0,1,0,0)|0|0,0,da(b+8|0,4,0,0)|0|0)|0;else if((h|0)==9){b=da(b+32|0,2,0,0)|0|0;if(b<<16>>16<=-1){b=0;h=21;break}b=Xn(g,da(g+62>>0|0,1,0,0)|0|0,da((da(c+4|0,4,0,0)|0|0)+((b<<16>>16)*24|0)+16|0,4,0,0)|0|0,0)|0}if(b)if(!(vs(a,da((da(a|0,4,0,0)|0|0)+62>>0|0,1,0,0)|0|0,b,da(b|0,4,0,0)|0|0)|0))b=0;else h=21;else{b=0;h=21}}else{b=0;h=21}while(0);return b|0}function cu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n+4|0;l=n;ea(m|0,0|0,4,0);ea(l|0,0|0,4,0);if((((d|0)!=0?(da(d>>0|0,1,0,0)|0|0)==-102:0)?(g=da(d+44|0,4,0,0)|0|0,(g|0)!=0):0)?((da(g+44>>0|0,1,0,0)|0)&16)!=0:0){d=g+60|0;while(1){d=da(d|0,4,0,0)|0|0;if((da(d|0,4,0,0)|0|0)==(a|0))break;else d=d+24|0}f=da(d+8|0,4,0,0)|0|0;e=(da(f|0,4,0,0)|0|0)+72|0;if((da(e|0,4,0,0)|0|0)!=0?(k=b+24|0,h=jh(a,da(k|0,4,0,0)|0|0)|0,(h|0)!=0):0){g=da(h>>0|0,1,0,0)|0|0;if(g<<24>>24){d=h;do{ea(d>>0|0,da(9328+(g&255)>>0|0,1,0,0)|0|0|0,1,0);d=d+1|0;g=da(d>>0|0,1,0,0)|0|0}while(g<<24>>24!=0)}c=sc[(fa(da(e|0,4,0,0)|0|0,31|0)|0)&31](f,c,h,m,l)|0;lg(a,h);if(c){d=da(k|0,4,0,0)|0|0;if(!d){d=37;f=0}else{f=d;while(1)if(!(da(f>>0|0,1,0,0)|0))break;else f=f+1|0;d=(f-d&1073741823)+37|0;f=0}e=lh(a,d,f)|0;if(e){ew(e|0,0,d|0)|0;g=e+0|0;f=b+0|0;d=g+36|0;do{ea(g|0,da(f|0,4,0,0)|0|0,4,0);g=g+4|0;f=f+4|0}while((g|0)<(d|0));g=e+36|0;ea(e+24|0,g|0,4,0);d=da(k|0,4,0,0)|0|0;if(!d)f=1;else{f=d;while(1)if(!(da(f>>0|0,1,0,0)|0))break;else f=f+1|0;f=(f-d&1073741823)+1|0}jw(g|0,d|0,f|0)|0;ea(e+12|0,da(m|0,4,0,0)|0|0,4,0);ea(e+4|0,da(l|0,4,0,0)|0|0,4,0);l=e+2|0;ea(l|0,da(l|0,2,0,1)|0|16|0,2,0)}else e=b}else e=b}else e=b}else e=b;i=n;return e|0}function du(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+80|0;if((i|0)>=(j|0))ba();w=y;u=y+72|0;m=y+52|0;v=y+48|0;l=y+28|0;x=Nq(a)|0;a:do if(!x)e=0;else{e=a+100|0;ea(e|0,(da(e|0,4,0,0)|0|0)+1|0,4,0);e=b+4|0;if(!((da(e|0,4,0,0)|0)&32)){t=Nq(a)|0;s=a+80|0;f=da(s|0,4,0,0)|0|0;ea(s|0,f+1|0,4,0);f=vh(t,44,f,0,0)|0}else f=-1;if((da(a+450>>0|0,1,0,0)|0|0)==2){h=da(a|0,4,0,0)|0|0;s=(da(b>>0|0,1,0,0)|0|0)==75?29104:29112;t=da(a+468|0,4,0,0)|0|0;ea(w|0,((f|0)>-1?10360:29088)|0,4,0);ea(w+4|0,s|0,4,0);ea(w+8|0,t|0,4,0);h=th(h,29056,w)|0;wh(x,vh(x,157,da(a+464|0,4,0,0)|0|0,0,0)|0,h,-1);h=b}else h=b;k=da(h>>0|0,1,0,0)|0|0;b:do if(k<<24>>24==75){l=b+12|0;g=jv(da(l|0,4,0,0)|0|0)|0;ea(u>>0|0,g|0,1,0);r=a+68|0;s=da(r|0,4,0,0)|0|0;ea(r|0,s+1|0,4,0);r=b+28|0;ea(r|0,s|0,4,0);q=(d|0)!=0;s=vh(x,57,s,q&1^1,0)|0;if(q)t=0;else t=Qs(da(a|0,4,0,0)|0|0,1,1)|0;k=b+20|0;do if(!((da(e|0,4,0,0)|0)&2048)){p=da(k|0,4,0,0)|0|0;if(p){if(!(g<<24>>24))ea(u>>0|0,65|0,1,0);if(t)ea(t+20|0,bu(a,da(l|0,4,0,0)|0|0)|0|0,4,0);d=a+19|0;g=da(d>>0|0,1,0,0)|0|0;if(g<<24>>24){e=g+-1<<24>>24;ea(d>>0|0,e|0,1,0);h=da(a+((e&255)<<2)+24|0,4,0,0)|0|0;if(!(e<<24>>24))n=24;else{o=g+-2<<24>>24;ea(d>>0|0,o|0,1,0);o=da(a+((o&255)<<2)+24|0,4,0,0)|0|0}}else{n=a+72|0;h=(da(n|0,4,0,0)|0|0)+1|0;ea(n|0,h|0,4,0);n=24}if((n|0)==24){e=a+72|0;o=(da(e|0,4,0,0)|0|0)+1|0;ea(e|0,o|0,4,0)}if(q)vh(x,28,0,o,0)|0;k=da(p|0,4,0,0)|0|0;if((k|0)>0){g=w+20|0;e=w+4|0;n=w+24|0;m=x+32|0;d=da(p+4|0,4,0,0)|0|0;while(1){l=da(d|0,4,0,0)|0|0;do if((f|0)>-1){ea(w+0|0,0|0,4,0);ea(w+4|0,0|0,4,0);ea(w+8|0,0|0,4,0);ea(w+12|0,0|0,4,0);ea(w+16|0,0|0,4,0);ea(w+20|0,0|0,4,0);ea(g>>0|0,1|0,1,0);ea(w|0,78|0,4,0);ea(e|0,79|0,4,0);ea(n|0,0|0,4,0);qs(w,l)|0;if(da(g>>0|0,1,0,0)|0)break;yh(x,f);f=-1}while(0);do if(q)if(!(Ls(l,v)|0)){p=hs(a,l,h)|0;vh(x,38,p,(da(m|0,4,0,0)|0|0)+2|0,0)|0;vh(x,75,da(r|0,4,0,0)|0|0,o,p)|0;break}else{vh(x,84,da(r|0,4,0,0)|0|0,o,da(v|0,4,0,0)|0|0)|0;break}else{p=hs(a,l,h)|0;wh(x,vh(x,49,p,1,o)|0,u,1);ct(a,p,1);vh(x,110,da(r|0,4,0,0)|0|0,o,0)|0}while(0);k=k+-1|0;if((k|0)<=0)break;else d=d+20|0}}Zr(a,h);Zr(a,o)}if(!t){g=f;e=0;break b}}else{h=da(k|0,4,0,0)|0|0;w=da(r|0,4,0,0)|0|0;ea(m>>0|0,11|0,1,0);ea(m+4|0,w|0,4,0);ea(m+8|0,0|0,4,0);ea(m+12|0,0|0,4,0);ea(m+1>>0|0,g|0,1,0);ea(h+8|0,0|0,4,0);if(!(hr(a,h,m)|0)){ea(t+20|0,Nu(a,da(l|0,4,0,0)|0|0,da(da((da(h|0,4,0,0)|0|0)+4|0,4,0,0)|0|0,4,0,0)|0|0)|0|0,4,0);break}if(!t){e=0;break a}a=(da(t|0,4,0,0)|0|0)+-1|0;ea(t|0,a|0,4,0);if(a){e=0;break a}Vc(t);e=0;break a}while(0);wh(x,s,t,-6);g=f;e=0}else{g=da(b+20|0,4,0,0)|0|0;h=a+72|0;e=(da(h|0,4,0,0)|0|0)+1|0;ea(h|0,e|0,4,0);ea(l>>0|0,0|0,1,0);h=l+4|0;ea(h|0,e|0,4,0);ea(l+1>>0|0,0|0,1,0);d=l+8|0;ea(d|0,0|0,4,0);ea(l+12|0,0|0,4,0);if(k<<24>>24==119){ea(l>>0|0,10|0,1,0);ea(d|0,e|0,4,0);vh(x,28,0,e,0)|0}else{ea(l>>0|0,3|0,1,0);vh(x,25,0,e,0)|0}w=g+60|0;Fk(da(a|0,4,0,0)|0|0,da(w|0,4,0,0)|0|0);ea(w|0,Yq(a,132,0,0,20624)|0|0,4,0);ea(g+8|0,0|0,4,0);if(hr(a,g,l)|0){e=0;break a}g=f;e=da(h|0,4,0,0)|0|0}while(0);if(c)kv(x,da(b+28|0,4,0,0)|0|0,c);if((g|0)>-1){f=da(x+32|0,4,0,0)|0|0;if(f>>>0>g>>>0)ea((da(x+4|0,4,0,0)|0|0)+(g*20|0)+8|0,f|0,4,0);ea((da(x+24|0,4,0,0)|0|0)+88|0,f+-1|0,4,0)}au(a)}while(0);i=y;return e|0}function eu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();h=v+4|0;s=v+8|0;q=v;ea(h|0,0|0,4,0);u=da(a+8|0,4,0,0)|0|0;e=(c|0)==(d|0);g=lv(a,b,3,e?0:h)|0;ea(s>>0|0,mv(b)|0|0,1,0);k=a+100|0;ea(k|0,(da(k|0,4,0,0)|0|0)+1|0,4,0);k=a+19|0;f=da(k>>0|0,1,0,0)|0|0;if(!(f<<24>>24)){o=a+72|0;t=(da(o|0,4,0,0)|0|0)+1|0;ea(o|0,t|0,4,0)}else{t=f+-1<<24>>24;ea(k>>0|0,t|0,1,0);t=da(a+((t&255)<<2)+24|0,4,0,0)|0|0}f=b+12|0;Qq(a,da(f|0,4,0,0)|0|0,t);do if((g|0)==5){o=da(b+20|0,4,0,0)|0|0;m=bu(a,da(f|0,4,0,0)|0|0)|0;p=ws(u)|0;n=(d|0)!=(c|0);if(n){f=da(k>>0|0,1,0,0)|0|0;if(!(f<<24>>24)){l=a+72|0;f=(da(l|0,4,0,0)|0|0)+1|0;ea(l|0,f|0,4,0)}else{f=f+-1<<24>>24;ea(k>>0|0,f|0,1,0);f=da(a+((f&255)<<2)+24|0,4,0,0)|0|0}vh(u,85,t,t,f)|0;l=f}else l=0;if((da(o|0,4,0,0)|0|0)>0){k=o+4|0;h=(l|0)==0;g=u+4|0;f=u+32|0;e=0;do{b=_t(a,da((da(k|0,4,0,0)|0|0)+(e*20|0)|0,4,0,0)|0|0,q)|0;if(!h?(Tu(da((da(k|0,4,0,0)|0|0)+(e*20|0)|0,4,0,0)|0|0)|0)!=0:0)vh(u,85,l,b,l)|0;if((e|0)<((da(o|0,4,0,0)|0|0)+-1|0)|n){wh(u,vh(u,79,t,p,b)|0,m,-4);b=da(g|0,4,0,0)|0|0;if(b)ea(b+(((da(f|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,da(s>>0|0,1,0,0)|0|0|0,1,0)}else{wh(u,vh(u,78,t,c,b)|0,m,-4);b=da(g|0,4,0,0)|0|0;if(b)ea(b+(((da(f|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,da(s>>0|0,1,0,1)|0|0|16|0,1,0)}Zr(a,da(q|0,4,0,0)|0|0);e=e+1|0}while((e|0)<(da(o|0,4,0,0)|0|0))}if(l){vh(u,76,l,d,0)|0;vh(u,16,0,c,0)|0}f=da(u+24|0,4,0,0)|0|0;e=~p;if((p|0)<0?(r=da(f+112|0,4,0,0)|0|0,(r|0)!=0):0)ea(r+(e<<2)|0,da(u+32|0,4,0,0)|0|0,4,0);ea(f+88|0,(da(u+32|0,4,0,0)|0|0)+-1|0,4,0);Zr(a,l)}else{do if(Tu(da(f|0,4,0,0)|0|0)|0){if(e){vh(u,76,t,c,0)|0;break}f=vh(u,77,t,0,0)|0;vh(u,108,da(b+28|0,4,0,0)|0|0,c,0)|0;vh(u,16,0,d,0)|0;e=da(u+32|0,4,0,0)|0|0;if(e>>>0>f>>>0)ea((da(u+4|0,4,0,0)|0|0)+(f*20|0)+8|0,e|0,4,0);ea((da(u+24|0,4,0,0)|0|0)+88|0,e+-1|0,4,0)}while(0);if((g|0)==1){vh(u,38,t,c,0)|0;vh(u,70,da(b+28|0,4,0,0)|0|0,c,t)|0;break}wh(u,vh(u,48,t,1,0)|0,s,1);e=da(b+28|0,4,0,0)|0|0;if(!(da(h|0,4,0,0)|0)){wh(u,vh(u,68,e,c,t)|0,1,-14);break}f=vh(u,69,e,0,t)|0;wh(u,f,1,-14);vh(u,76,da(h|0,4,0,0)|0|0,d,0)|0;vh(u,16,0,c,0)|0;e=da(u+32|0,4,0,0)|0|0;if(e>>>0>f>>>0)ea((da(u+4|0,4,0,0)|0|0)+(f*20|0)+8|0,e|0,4,0);ea((da(u+24|0,4,0,0)|0|0)+88|0,e+-1|0,4,0)}while(0);Zr(a,t);au(a);i=v;return}function fu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0.0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+48|0;if((i|0)>=(j|0))ba();v=w;t=w+28|0;c=da(a+24|0,4,0,0)|0|0;u=da(c|0,4,0,0)|0|0;r=b+4|0;f=da(r|0,4,0,0)|0|0;a:do if(!(f&4)){ea(r|0,f|4|0,4,0);switch(da(b>>0|0,1,0,1)|0|0){case 135:{d=c+28|0;c=da(d|0,2,0,0)|0|0;if(c&4){ea(v|0,27456|0,4,0);sh(u,27472,v);c=da(d|0,2,0,0)|0|0}if(c&16){ea(v|0,27456|0,4,0);sh(u,27512,v)}break}case 153:{q=b+20|0;n=da(q|0,4,0,0)|0|0;if(!n)e=0;else e=da(n|0,4,0,0)|0|0;f=da((da(u|0,4,0,0)|0|0)+62>>0|0,1,0,0)|0|0;s=c+28|0;if((da(s|0,2,0,0)|0)&16){ea(v|0,27200|0,4,0);sh(u,27512,v)}o=da(b+8|0,4,0,0)|0|0;if(!o)l=0;else{g=o;while(1)if(!(da(g>>0|0,1,0,0)|0))break;else g=g+1|0;l=g-o&1073741823}d=Rh(da(u|0,4,0,0)|0|0,o,l,e,f,0)|0;do if(!d){if(Rh(da(u|0,4,0,0)|0|0,o,l,-2,f,0)|0){ea(v|0,l|0,4,0);ea(v+4|0,o|0,4,0);sh(u,27392,v);o=c+24|0;ea(o|0,(da(o|0,4,0,0)|0|0)+1|0,4,0);break}if(!(da((da(u|0,4,0,0)|0|0)+145>>0|0,1,0,0)|0)){ea(v|0,l|0,4,0);ea(v+4|0,o|0,4,0);sh(u,27368,v);o=c+24|0;ea(o|0,(da(o|0,4,0,0)|0|0)+1|0,4,0)}}else{k=(da(d+12|0,4,0,0)|0|0)==0;p=d+2|0;do if((da(p|0,2,0,0)|0)&1024){ea(r|0,da(r|0,4,0,0)|0|266240|0,4,0);if((e|0)!=2){ea(b+28|0,((da((da(d+24|0,4,0,0)|0)>>0|0,1,0,0)|0|0)==117?8388608:125829120)|0,4,0);break}g=da((da(n+4|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;ea(v|0,+(-1.0),8,1);if((da(g>>0|0,1,0,0)|0|0)==-123){f=da(g+8|0,4,0,0)|0|0;if(!f)g=0;else{g=f;while(1)if(!(da(g>>0|0,1,0,0)|0))break;else g=g+1|0;g=g-f&1073741823}Sl(f,v,g,1)|0;h=+(+da(v|0,8,1,0));if(!(h>1.0)){g=~~(h*134217728.0);ea(b+28|0,g|0,4,0);if((g|0)>=0)break}else m=22}else m=22;if((m|0)==22)ea(b+28|0,-1|0,4,0);sh(u,27216,v);m=c+24|0;ea(m|0,(da(m|0,4,0,0)|0|0)+1|0,4,0)}while(0);g=d+24|0;f=Rq(u,31,0,da(g|0,4,0,0)|0|0,0)|0;if(!f){if((da(p|0,2,0,0)|0)&2048)ea(r|0,da(r|0,4,0,0)|0|524288|0,4,0);if(!k)break;g=da(s|0,2,0,0)|0|0;if(!(g&1)){ea(v|0,l|0,4,0);ea(v+4|0,o|0,4,0);sh(u,27328,v);o=c+24|0;ea(o|0,(da(o|0,4,0,0)|0|0)+1|0,4,0);break}ea(s|0,g&65534|0,2,0);ku(a,n)|0;ea(b>>0|0,-101|0,1,0);f=b+38|0;ea(f>>0|0,0|0,1,0);b:do if(c){e=v+24|0;d=t+4|0;g=t+8|0;while(1){o=da(c+4|0,4,0,0)|0|0;ea(v+0|0,0|0,4,0);ea(v+4|0,0|0,4,0);ea(v+8|0,0|0,4,0);ea(v+12|0,0|0,4,0);ea(v+16|0,0|0,4,0);ea(v+20|0,0|0,4,0);ea(v|0,87|0,4,0);ea(e|0,t|0,4,0);ea(t|0,o|0,4,0);ea(d|0,0|0,4,0);ea(g|0,0|0,4,0);ku(v,da(q|0,4,0,0)|0|0)|0;if((da(d|0,4,0,0)|0|0)>0)break;if(!(da(g|0,4,0,0)|0))break;ea(f>>0|0,(da(f>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0);c=da(c+16|0,4,0,0)|0|0;if(!c)break b}o=c+28|0;ea(o|0,(da(p|0,2,0,1)|0)&4096|(da(o|0,2,0,1)|0)|2|0,2,0)}while(0);ea(s|0,da(s|0,2,0,1)|0|1|0,2,0);c=1;break a}else if((f|0)==1){ea(v|0,da(g|0,4,0,0)|0|0,4,0);sh(u,27288,v);o=c+24|0;ea(o|0,(da(o|0,4,0,0)|0|0)+1|0,4,0)}ea(b>>0|0,101|0,1,0);c=1;break a}while(0);ku(a,n)|0;c=1;break a}case 27:{c=nv(u,0,0,da(b+8|0,4,0,0)|0|0,c,b)|0;break a}case 122:{d=da(b+16|0,4,0,0)|0|0;if((da(d>>0|0,1,0,0)|0|0)==27){f=d;d=b;e=0}else{f=da(d+16|0,4,0,0)|0|0;e=da((da(b+12|0,4,0,0)|0|0)+8|0,4,0,0)|0|0}c=nv(u,e,da((da(d+12|0,4,0,0)|0|0)+8|0,4,0,0)|0|0,da(f+8|0,4,0,0)|0|0,c,b)|0;break a}case 75:case 20:case 119:{if(f&2048){g=c+20|0;d=da(g|0,4,0,0)|0|0;e=c+28|0;f=da(e|0,2,0,0)|0|0;if(f&4){ea(v|0,27440|0,4,0);sh(u,27472,v);f=da(e|0,2,0,0)|0|0}if(f&16){ea(v|0,27440|0,4,0);sh(u,27512,v)}ju(a,da(b+20|0,4,0,0)|0|0)|0;if((d|0)!=(da(g|0,4,0,0)|0|0))ea(r|0,da(r|0,4,0,0)|0|32|0,4,0)}break}default:{}}if(!(da(u+64|0,4,0,0)|0))c=(da((da(u|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0|0)!=0?2:0;else c=2}else c=1;while(0);i=w;return c|0}function gu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;I=i;i=i+80|0;if((i|0)>=(j|0))ba();H=I;F=I+64|0;A=I+32|0;g=da(b+6|0,2,0,0)|0|0;d=g&65535;a:do if(!(d&2)){z=da(a+24|0,4,0,0)|0|0;G=da(a+12|0,4,0,0)|0|0;a=da(G|0,4,0,0)|0|0;if(!(d&16)){Cs(G,b,z);if(da(G+64|0,4,0,0)|0){c=2;break}c=(da(a+65>>0|0,1,0,0)|0|0)!=0?2:1;break}B=b+52|0;c=(da(B|0,4,0,0)|0|0)!=0;C=(b|0)==0;b:do if(!C){d=A+28|0;k=A+4|0;w=A+16|0;x=A+8|0;s=a+65|0;r=G+492|0;q=(z|0)==0;p=H+4|0;o=H+12|0;n=H+24|0;m=G+64|0;t=b;c:while(1){u=t+6|0;ea(u|0,g&65535|2|0,2,0);ea(A+0|0,0|0,4,0);ea(A+4|0,0|0,4,0);ea(A+8|0,0|0,4,0);ea(A+12|0,0|0,4,0);ea(A+16|0,0|0,4,0);ea(A+20|0,0|0,4,0);ea(A+24|0,0|0,4,0);ea(A+28|0,0|0,4,0);ea(A|0,G|0,4,0);if(ks(A,da(t+60|0,4,0,0)|0|0)|0){c=2;break a}if(ks(A,da(t+64|0,4,0,0)|0|0)|0){c=2;break a}g=da(t+32|0,4,0,0)|0|0;if((da(u|0,2,0,0)|0)&8192){v=t+48|0;ea((da(g+28|0,4,0,0)|0|0)+48|0,da(v|0,4,0,0)|0|0,4,0);ea(v|0,0|0,4,0)}v=t+32|0;if((da(g|0,4,0,0)|0|0)>0){l=0;do{e=da(g+(l*72|0)+28|0,4,0,0)|0|0;if(e){a=da(r|0,4,0,0)|0|0;if(q)h=0;else{h=0;f=z;do{h=(da(f+20|0,4,0,0)|0|0)+h|0;f=da(f+16|0,4,0,0)|0|0}while((f|0)!=0)}f=da(g+(l*72|0)+16|0,4,0,0)|0|0;if(f)ea(r|0,f|0,4,0);ea(H+0|0,0|0,4,0);ea(H+4|0,0|0,4,0);ea(H+8|0,0|0,4,0);ea(H+12|0,0|0,4,0);ea(H+16|0,0|0,4,0);ea(H+20|0,0|0,4,0);ea(H|0,82|0,4,0);ea(p|0,83|0,4,0);ea(o|0,G|0,4,0);ea(n|0,z|0,4,0);ju(H,e)|0;ea(r|0,a|0,4,0);if(da(m|0,4,0,0)|0){c=2;break a}if(da(s>>0|0,1,0,0)|0){c=2;break a}if(!q){f=z;do{h=h-(da(f+20|0,4,0,0)|0|0)|0;f=da(f+16|0,4,0,0)|0|0}while((f|0)!=0)}g=g+(l*72|0)+45|0;ea(g>>0|0,(da(g>>0|0,1,0,0)|0)&-3|((h|0)!=0&1)<<1&255|0,1,0);g=da(v|0,4,0,0)|0|0}l=l+1|0}while((l|0)<(da(g|0,4,0,0)|0|0))}ea(d|0,1|0,2,0);ea(k|0,g|0,4,0);ea(w|0,z|0,4,0);h=da(t|0,4,0,0)|0|0;if((da(h|0,4,0,0)|0|0)>0){g=h+4|0;f=0;do{if(ks(A,da((da(g|0,4,0,0)|0|0)+(f*20|0)|0,4,0,0)|0|0)|0){c=2;break a}f=f+1|0}while((f|0)<(da(h|0,4,0,0)|0|0))}e=da(t+40|0,4,0,0)|0|0;g=(e|0)!=0;h=da(d|0,2,0,0)|0|0;if(!g?(y=h&65535,(y&2|0)==0):0)ea(d|0,y&65534|0,2,0);else ea(u|0,h&4096|(da(u|0,2,0,1)|0)|4|0,2,0);h=da(t+44|0,4,0,0)|0|0;if(!((h|0)==0|g)){D=32;break}ea(x|0,da(t|0,4,0,0)|0|0,4,0);if(ks(A,h)|0){c=2;break a}if(ks(A,da(t+36|0,4,0,0)|0|0)|0){c=2;break a}ea(w|0,0|0,4,0);ea(d|0,da(d|0,2,0,1)|0|1|0,2,0);if((da(u|0,2,0,0)|0)&8192){v=(da((da(v|0,4,0,0)|0|0)+28|0,4,0,0)|0|0)+48|0;ea(t+48|0,da(v|0,4,0,0)|0|0,4,0);ea(v|0,0|0,4,0)}if(!c?(pv(A,t,da(t+48|0,4,0,0)|0|0,26880)|0)!=0:0){c=2;break a}if(da(s>>0|0,1,0,0)|0){c=2;break a}do if(g){if(pv(A,t,e,26888)|0){c=2;break a}if(da(s>>0|0,1,0,0)|0){c=2;break a}f=da(e|0,4,0,0)|0|0;if((f|0)<=0)break;h=0;g=da(e+4|0,4,0,0)|0|0;while(1){if((da((da(g|0,4,0,0)|0|0)+4|0,4,0,0)|0)&2){D=46;break c}h=h+1|0;if((h|0)>=(f|0))break;else g=g+20|0}}while(0);f=da(t+52|0,4,0,0)|0|0;if(!f)break b;t=f;g=da(f+6|0,2,0,0)|0|0}if((D|0)==32){sh(G,26832,H);c=2;break a}else if((D|0)==46){sh(G,26896,H);c=2;break a}}while(0);if(c?(E=da(b+48|0,4,0,0)|0|0,(E|0)!=0):0){y=da(G|0,4,0,0)|0|0;d=da(E|0,4,0,0)|0|0;if((d|0)>(da(y+96|0,4,0,0)|0|0)){sh(G,26960,H);c=2;break}if((d|0)>0){a=E+4|0;c=0;do{d=(da(a|0,4,0,0)|0|0)+(c*20|0)+13|0;ea(d>>0|0,(da(d>>0|0,1,0,0)|0)&-2|0,1,0);c=c+1|0;d=da(E|0,4,0,0)|0|0}while((c|0)<(d|0))}ea(b+56|0,0|0,4,0);c=da(B|0,4,0,0)|0|0;if(!c)if(C)a=E+4|0;else D=60;else while(1){ea(c+56|0,b|0,4,0);b=da(c+52|0,4,0,0)|0|0;if(!b){b=c;D=60;break}else{x=c;c=b;b=x}}d:do if((D|0)==60){a=E+4|0;q=y+65|0;r=H+4|0;s=H+8|0;t=H+28|0;u=H+24|0;v=H+4|0;p=b;e:while(1){o=da(p|0,4,0,0)|0|0;if((d|0)<=0)break d;m=p+32|0;c=0;l=0;n=da(a|0,4,0,0)|0|0;while(1){ea(F|0,-1|0,4,0);k=n+13|0;do if(!((da(k>>0|0,1,0,0)|0)&1)){d=da(n|0,4,0,0)|0|0;f:do if(!d)d=0;else while(1){b=da(d+4|0,4,0,0)|0|0;if(!(b&4096))break f;if(!(b&262144))d=d+12|0;else d=da((da(d+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;d=da(d|0,4,0,0)|0|0;if(!d){d=0;break}}while(0);if(!(Ls(d,F)|0)){b=qv(o,d)|0;ea(F|0,b|0,4,0);if(!b){h=Lr(y,d,0,0)|0;if(!(da(q>>0|0,1,0,0)|0)){e=da(p|0,4,0,0)|0|0;ea(H+0|0,0|0,4,0);ea(H+4|0,0|0,4,0);ea(H+8|0,0|0,4,0);ea(H+12|0,0|0,4,0);ea(H+16|0,0|0,4,0);ea(H+20|0,0|0,4,0);ea(H+24|0,0|0,4,0);ea(H+28|0,0|0,4,0);ea(H|0,G|0,4,0);ea(r|0,da(m|0,4,0,0)|0|0,4,0);ea(s|0,e|0,4,0);ea(t|0,1|0,2,0);ea(u|0,0|0,4,0);b=(da(G|0,4,0,0)|0|0)+68|0;w=da(b>>0|0,1,0,0)|0|0;ea(b>>0|0,1|0,1,0);x=ks(H,h)|0;ea(b>>0|0,w|0,1,0);g:do if(!x){g=e+4|0;f=da(e|0,4,0,0)|0|0;e=0;while(1){if((e|0)>=(f|0)){b=0;break g}b=e+1|0;if((Bu(da((da(g|0,4,0,0)|0|0)+(e*20|0)|0,4,0,0)|0|0,h,-1)|0)<2)break;else e=b}}else b=0;while(0);ea(F|0,b|0,4,0)}else b=0;Fk(y,h)}if((b|0)<=0){b=1;break}}else{e=da(F|0,4,0,0)|0|0;b=da(o|0,4,0,0)|0|0;if((e|0)<1|(e|0)>(b|0))break e;else b=e}ea(H|0,0|0,4,0);ea(v|0,0|0,4,0);e=mr(y,132,H,0)|0;if(!e){c=2;break a}f=e+4|0;ea(f|0,da(f|0,4,0,0)|0|1024|0,4,0);ea(e+8|0,b|0,4,0);f=da(n|0,4,0,0)|0|0;if((f|0)==(d|0))ea(n|0,e|0,4,0);else ea(f+12|0,e|0,4,0);Fk(y,d);ea(n+16|0,b|0,2,0);ea(k>>0|0,da(k>>0|0,1,0,0)|0|1|0,1,0);b=l}else b=l;while(0);c=c+1|0;d=da(E|0,4,0,0)|0|0;if((c|0)>=(d|0))break;else{l=b;n=n+20|0}}p=da(p+56|0,4,0,0)|0|0;if(!((p|0)!=0&(b|0)!=0))break d}ea(H|0,c+1|0,4,0);ea(H+4|0,26880|0,4,0);ea(H+8|0,b|0,4,0);sh(G,27064,H);c=2;break a}while(0);b=0;while(1){if((b|0)>=(d|0)){c=1;break a}c=b+1|0;if(!((da((da(a|0,4,0,0)|0|0)+(b*20|0)+13>>0|0,1,0,0)|0)&1))break;else b=c}ea(H|0,c|0,4,0);sh(G,27e3,H);c=2}else c=1}else c=1;while(0);i=I;return c|0}function hu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();s=v;t=da(a|0,4,0,0)|0|0;a:do if(b){o=da(b|0,4,0,0)|0|0;a=o*24|0;e=lh(t,a,0)|0;if(e)ew(e|0,0,a|0)|0;ea(c|0,o|0,2,0);ea(d|0,e|0,4,0);if((o|0)>0){m=b+4|0;p=t+65|0;a=0;n=e;while(1){k=da(m|0,4,0,0)|0|0;b=da(k+(a*20|0)|0,4,0,0)|0|0;b:do if(!b)b=0;else while(1){f=da(b+4|0,4,0,0)|0|0;if(!(f&4096))break b;if(!(f&262144))b=b+12|0;else b=da((da(b+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;b=da(b|0,4,0,0)|0|0;if(!b){b=0;break}}while(0);f=da(k+(a*20|0)+4|0,4,0,0)|0|0;do if(!f){while(1){f=da(b>>0|0,1,0,0)|0|0;if(f<<24>>24==27){u=24;break}else if(f<<24>>24==-102){r=b;u=18;break}else if(f<<24>>24!=122)break;b=da(b+16|0,4,0,0)|0|0}if((u|0)==24){u=0;ea(s|0,da(b+8|0,4,0,0)|0|0,4,0);b=th(t,10344,s)|0;break}if((u|0)==18?(u=0,q=da(r+44|0,4,0,0)|0|0,(q|0)!=0):0){b=da(r+32|0,2,0,0)|0|0;if(b<<16>>16<0)b=da(q+36|0,2,0,0)|0|0;else b=b<<16>>16;if((b|0)>-1)b=da((da(q+4|0,4,0,0)|0|0)+(b*24|0)|0,4,0,0)|0|0;else b=20456;ea(s|0,b|0,4,0);b=th(t,10344,s)|0;break}ea(s|0,da(k+(a*20|0)+8|0,4,0,0)|0|0,4,0);b=th(t,10344,s)|0}else b=jh(t,f)|0;while(0);if(da(p>>0|0,1,0,0)|0)break;if(!b){h=0;b=0}else{f=b;while(1)if(!(da(f>>0|0,1,0,0)|0))break;else f=f+1|0;h=f-b&1073741823}c:do if((a|0)>0){f=0;k=0;l=h;while(1){if(!(cd(da(e+(k*24|0)|0,4,0,0)|0|0,b)|0)){g=l;while(1){h=g+-1|0;if((h|0)<=1)break;if(((da(b+h>>0|0,1,0,1)|0|0)+-48|0)>>>0<10)g=h;else break}if((g|0)>0)g=(da(b+h>>0|0,1,0,0)|0|0)==58?h:l;else g=l;ea(b+g>>0|0,0|0,1,0);f=f+1|0;ea(s|0,b|0,4,0);ea(s+4|0,f|0,4,0);h=th(t,26824,s)|0;lg(t,b);if(!h){b=0;break c}else{k=-1;b=h}}else g=l;k=k+1|0;if((k|0)>=(a|0))break;else l=g}}while(0);ea(n|0,b|0,4,0);a=a+1|0;if((a|0)<(o|0))n=n+24|0;else{b=p;break a}}lg(t,b);b=p}else u=6}else{ea(c|0,0|0,2,0);ea(d|0,0|0,4,0);e=0;u=6}while(0);if((u|0)==6){b=t+65|0;a=0}if(da(b>>0|0,1,0,0)|0){if((a|0)>0){b=0;do{lg(t,da(e+(b*24|0)|0,4,0,0)|0|0);b=b+1|0}while((b|0)!=(a|0))}lg(t,e);ea(d|0,0|0,4,0);ea(c|0,0|0,2,0)}i=v;return}function iu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;n=i;i=i+32|0;if((i|0)>=(j|0))ba();m=n;l=da(a|0,4,0,0)|0|0;if(!(da(l+65>>0|0,1,0,0)|0)){ea(m+0|0,0|0,4,0);ea(m+4|0,0|0,4,0);ea(m+8|0,0|0,4,0);ea(m+12|0,0|0,4,0);ea(m+16|0,0|0,4,0);ea(m+20|0,0|0,4,0);ea(m+24|0,0|0,4,0);ea(m+28|0,0|0,4,0);ea(m+4|0,da(c+32|0,4,0,0)|0|0,4,0);g=da((da(c|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;f=b+38|0;if((da(f|0,2,0,0)|0|0)>0){c=0;d=0;h=0;k=da(b+4|0,4,0,0)|0|0;while(1){e=da(g+(h*20|0)|0,4,0,0)|0|0;o=k+22|0;ea(k+12|0,jh(l,xu(m,e,o)|0)|0|0,4,0);c=iw(da(o>>0|0,1,0,1)|0|0,0,c|0,d|0)|0;d=C;o=jv(e)|0;ea(k+21>>0|0,(o<<24>>24==0?65:o)|0,1,0);e=bu(a,e)|0;if(e)ea(k+16|0,jh(l,da(e|0,4,0,0)|0|0)|0|0,4,0);h=h+1|0;if((h|0)>=(da(f|0,2,0,0)|0|0))break;else k=k+24|0}d=hw(c|0,d|0,2)|0;c=C}else{d=0;c=0}ea(b+42|0,es(d,c)|0|0,2,0)}i=n;return}function ju(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;do if(!b)c=0;else{f=a+4|0;d=da(f|0,4,0,0)|0|0;if((d|0)==0?(da(a+8|0,4,0,0)|0|0)==0:0){c=0;break}i=a+16|0;ea(i|0,(da(i|0,4,0,0)|0|0)+1|0,4,0);g=a+8|0;a:while(1){if((d|0)!=0?(c=qc[(fa(d|0,127|0)|0)&127](a,b)|0,(c|0)!=0):0){j=24;break}if(ku(a,da(b|0,4,0,0)|0|0)|0){j=19;break}if(qs(a,da(b+36|0,4,0,0)|0|0)|0){j=19;break}if(ku(a,da(b+40|0,4,0,0)|0|0)|0){j=19;break}if(qs(a,da(b+44|0,4,0,0)|0|0)|0){j=19;break}if(ku(a,da(b+48|0,4,0,0)|0|0)|0){j=19;break}if(qs(a,da(b+60|0,4,0,0)|0|0)|0){j=19;break}if(qs(a,da(b+64|0,4,0,0)|0|0)|0){j=19;break}d=da(b+32|0,4,0,0)|0|0;if((d|0)!=0?(h=da(d|0,4,0,0)|0|0,(h|0)>0):0){e=h;d=d+8|0;while(1){if(ju(a,da(d+20|0,4,0,0)|0|0)|0){j=19;break a}e=e+-1|0;if((e|0)<=0)break;else d=d+72|0}}d=da(g|0,4,0,0)|0|0;if(d)ic[(fa(d|0,15|0)|0)&15](a,b);b=da(b+52|0,4,0,0)|0|0;if(!b){c=0;break}d=da(f|0,4,0,0)|0|0}if((j|0)==19){ea(i|0,(da(i|0,4,0,0)|0|0)+-1|0,4,0);c=2;break}else if((j|0)==24)c=c&2;ea(i|0,(da(i|0,4,0,0)|0|0)+-1|0,4,0)}while(0);return c|0}function ku(a,b){a=a|0;b=b|0;var c=0;a:do if((b|0)!=0?(c=da(b|0,4,0,0)|0|0,(c|0)>0):0){b=da(b+4|0,4,0,0)|0|0;while(1){if(qs(a,da(b|0,4,0,0)|0|0)|0){c=2;break a}c=c+-1|0;if((c|0)<=0){c=0;break}else b=b+20|0}}else c=0;while(0);return c|0}function lu(a){a=a|0;var b=0,c=0;c=i;i=i+16|0;if((i|0)>=(j|0))ba();b=c;ea(b|0,0|0,4,0);if(((da(a+4|0,4,0,0)|0)&1|0)==0?(Ls(a,b)|0)!=0:0)a=(da(b|0,4,0,0)|0|0)==0&1;else a=0;i=c;return a|0}function mu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+32|0;if((i|0)>=(j|0))ba();m=o;f=da(c+12|0,4,0,0)|0|0;ea(m+0|0,0|0,4,0);ea(m+4|0,0|0,4,0);ea(m+8|0,0|0,4,0);ea(m+12|0,0|0,4,0);ea(m+16|0,0|0,4,0);ea(m+20|0,200|0,4,0);ea(m+24>>0|0,1|0,1,0);ea(m+25>>0|0,0|0,1,0);ea(m|0,da(a|0,4,0,0)|0|0,4,0);k=c+46|0;if(da(k|0,2,0,0)|0){l=c+4|0;g=f+4|0;n=0;do{h=da((da(g|0,4,0,0)|0|0)+((da((da(l|0,4,0,0)|0|0)+(n<<1)|0,2,0,0)|0|0)*24|0)|0,4,0,0)|0|0;if(n)Rk(m,28920,2);e=da(f|0,4,0,0)|0|0;if(!e)d=0;else{d=e;while(1)if(!(da(d>>0|0,1,0,0)|0))break;else d=d+1|0;d=d-e&1073741823}Rk(m,e,d);Rk(m,28928,1);if(!h)d=0;else{d=h;while(1)if(!(da(d>>0|0,1,0,0)|0))break;else d=d+1|0;d=d-h&1073741823}Rk(m,h,d);n=n+1|0}while((n|0)<(da(k|0,2,0,1)|0|0))}d=sg(m)|0;ys(a,((da(c+51>>0|0,1,0,0)|0)&3)==2?1555:2067,b,d,-1,2);i=o;return}function nu(a,b){a=a|0;b=b|0;return 0}function ou(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n+8|0;k=n;l=b+52|0;a:do if((da(l|0,4,0,0)|0|0)!=0?(d=da(b+48|0,4,0,0)|0|0,!((d|0)==0|(b|0)==0)):0){c=b;while(1){h=da(c+4>>0|0,1,0,0)|0|0;if(!(h<<24>>24==119|h<<24>>24==116))break;c=da(c+52|0,4,0,0)|0|0;if(!c){c=0;break a}}e=da(d+4|0,4,0,0)|0|0;c=da(d|0,4,0,0)|0|0;while(1){d=c+-1|0;if((c|0)<=0){c=0;break a}if(!((da((da(e+(d*20|0)|0,4,0,0)|0|0)+4|0,4,0,0)|0)&256))c=d;else break}if((c|0)>=1){c=da(a+12|0,4,0,0)|0|0;f=da(c|0,4,0,0)|0|0;a=lh(f,72,0)|0;if(a){g=a+0|0;h=g+72|0;do{ea(g>>0|0,0|0,1,0);g=g+1|0}while((g|0)<(h|0));e=k;ea(e|0,0|0,4,0);ea(e+4|0,0|0,4,0);e=ir(c,0,0,0,k,a,0,0)|0;if(e){g=a+0|0;d=b+0|0;h=g+72|0;do{ea(g|0,da(d|0,4,0,0)|0|0,4,0);g=g+4|0;d=d+4|0}while((g|0)<(h|0));ea(b+32|0,e|0,4,0);ea(m|0,0|0,4,0);ea(m+4|0,0|0,4,0);ea(b|0,kr(c,0,mr(f,116,m,0)|0)|0|0,4,0);ea(b+4>>0|0,119|0,1,0);ea(b+36|0,0|0,4,0);ea(a+40|0,0|0,4,0);ea(a+44|0,0|0,4,0);ea(a+48|0,0|0,4,0);ea(l|0,0|0,4,0);ea(b+56|0,0|0,4,0);c=b+6|0;ea(c|0,(da(c|0,2,0,1)|0|0)&57279|8192|0,2,0);ea((da(a+52|0,4,0,0)|0|0)+56|0,a|0,4,0);ea(a+60|0,0|0,4,0);ea(a+64|0,0|0,4,0);c=0}else c=2}else c=2}else c=0}else c=0;while(0);i=n;return c|0}function pu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,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;S=i;i=i+32|0;if((i|0)>=(j|0))ba();R=S;O=S+16|0;B=a+12|0;Q=da(B|0,4,0,0)|0|0;P=da(Q|0,4,0,0)|0|0;M=b+6|0;g=da(M|0,2,0,1)|0|0;ea(M|0,g|16|0,2,0);N=P+65|0;a:do if(!(da(N>>0|0,1,0,0)|0)){A=b+32|0;K=da(A|0,4,0,0)|0|0;if((K|0)!=0&(g&16|0)==0){L=da(b|0,4,0,0)|0|0;if((da(a+8|0,4,0,0)|0|0)==9){g=b;while(1){f=da(g+56|0,4,0,0)|0|0;if(!f)break;else g=f}g=da(g+68|0,4,0,0)|0|0;if(g){x=Q+532|0;ea(g+4|0,da(x|0,4,0,0)|0|0,4,0);ea(x|0,g|0,4,0);ea(Q+449>>0|0,0|0,1,0)}}Bs(Q,K);J=K+8|0;g=da(K|0,4,0,0)|0|0;b:do if((g|0)>0){w=0;q=J;c:while(1){if(!((da(q+37>>0|0,1,0,0)|0)&8)){x=q+16|0;c=da(B|0,4,0,0)|0|0;if(da(x|0,4,0,0)|0){d=c;I=10;break}n=da(c|0,4,0,0)|0|0;f=c+532|0;h=da(f|0,4,0,0)|0|0;d:do if((da(q+4|0,4,0,0)|0|0)==0?(z=da(q+8|0,4,0,0)|0|0,!((z|0)==0|(h|0)==0)):0){e:while(1){k=da(h|0,4,0,0)|0|0;if((k|0)>0){e=0;do{g=h+(e<<4)+8|0;d=da(g|0,4,0,0)|0|0;if(!(cd(z,d)|0)){u=e;break e}e=e+1|0}while((e|0)<(k|0))}h=da(h+4|0,4,0,0)|0|0;if(!h){I=46;break d}}r=h+(u<<4)+20|0;k=da(r|0,4,0,0)|0|0;if(k){b=k;I=21;break c}t=lh(n,76,0)|0;if(!t){b=x;I=23;break c}l=t+0|0;k=l+76|0;do{ea(l>>0|0,0|0,1,0);l=l+1|0}while((l|0)<(k|0));ea(x|0,t|0,4,0);o=t+40|0;ea(o|0,1|0,2,0);ea(t|0,jh(n,da(g|0,4,0,0)|0|0)|0|0,4,0);ea(t+36|0,-1|0,2,0);ea(t+28|0,200|0,2,0);v=t+44|0;ea(v>>0|0,da(v>>0|0,1,0,1)|0|2|0,1,0);v=fr(n,da(h+(u<<4)+16|0,4,0,0)|0|0,0)|0;ea(q+20|0,v|0,4,0);if(da(n+65>>0|0,1,0,0)|0){b=2;break a}s=((da(v+4>>0|0,1,0,0)|0|0)+-115&255)<2;if(s?(p=da(v+32|0,4,0,0)|0|0,y=da(p|0,4,0,0)|0|0,(y|0)>0):0){k=v+6|0;l=y;n=0;do{do if(!(da(p+(n*72|0)+12|0,4,0,0)|0)){m=da(p+(n*72|0)+16|0,4,0,0)|0|0;if(!m)break;if(cd(m,da(g|0,4,0,0)|0|0)|0)break;ea(p+(n*72|0)+24|0,t|0,4,0);l=p+(n*72|0)+45|0;ea(l>>0|0,da(l>>0|0,1,0,0)|0|8|0,1,0);ea(o|0,(da(o|0,2,0,0)|0|0)+1<<16>>16|0,2,0);ea(k|0,da(k|0,2,0,1)|0|2048|0,2,0);l=da(p|0,4,0,0)|0|0}while(0);n=n+1|0}while((n|0)<(l|0))}if((da(o|0,2,0,1)|0|0)>2){b=g;I=34;break c}ea(r|0,28176|0,4,0);e=da(f|0,4,0,0)|0|0;ea(f|0,h|0,4,0);if(s)k=da(v+52|0,4,0,0)|0|0;else k=v;ju(a,k)|0;k=v;while(1){d=da(k+52|0,4,0,0)|0|0;if(!d)break;else k=d}d=da(k|0,4,0,0)|0|0;k=da(h+(u<<4)+12|0,4,0,0)|0|0;do if(k){if(!d)break;m=da(d|0,4,0,0)|0|0;d=da(k|0,4,0,0)|0|0;if((m|0)!=(d|0)){b=m;I=42;break c}}else k=d;while(0);hu(c,k,t+38|0,t+4|0);if(s){ea(r|0,(((da(v+6|0,2,0,0)|0)&2048)==0?28280:28240)|0,4,0);ju(a,v)|0}ea(r|0,0|0,4,0);ea(f|0,e|0,4,0);if(!(da(x|0,4,0,0)|0))I=46}else I=46;while(0);do if((I|0)==46){I=0;if(!(da(q+8|0,4,0,0)|0)){h=da(q+20|0,4,0,0)|0|0;if(ju(a,h)|0){b=2;break a}f=lh(P,76,0)|0;if(!f){b=x;I=49;break c}l=f+0|0;k=l+76|0;do{ea(l>>0|0,0|0,1,0);l=l+1|0}while((l|0)<(k|0));ea(x|0,f|0,4,0);ea(f+40|0,1|0,2,0);ea(R|0,f|0,4,0);ea(f|0,th(P,27760,R)|0|0,4,0);while(1){g=da(h+52|0,4,0,0)|0|0;if(!g)break;else h=g}hu(Q,da(h|0,4,0,0)|0|0,f+38|0,f+4|0);ea(f+36|0,-1|0,2,0);ea(f+28|0,200|0,2,0);x=f+44|0;ea(x>>0|0,da(x>>0|0,1,0,1)|0|2|0,1,0);break}c=Tr(Q,0,q)|0;ea(x|0,c|0,4,0);if(!c){b=2;break a}h=c+40|0;g=da(h|0,2,0,0)|0|0;if(g<<16>>16==-1){b=x;I=55;break c}ea(h|0,g+1<<16>>16|0,2,0);h=c+12|0;if((da(h|0,4,0,0)|0|0)==0?((da(c+44>>0|0,1,0,0)|0)&16)==0:0)break;if(gr(Q,c)|0){b=2;break a}x=fr(P,da(h|0,4,0,0)|0|0,0)|0;ea(q+20|0,x|0,4,0);ju(a,x)|0}while(0);if(Qt(Q,q)|0){b=2;break a}g=da(K|0,4,0,0)|0|0}w=w+1|0;if((w|0)>=(g|0))break b;else q=q+72|0}if((I|0)==10){while(1){c=da(b+56|0,4,0,0)|0|0;if(!c)break;else b=c}b=da(b+68|0,4,0,0)|0|0;if(!b){b=1;break a}ea(d+532|0,da(b+4|0,4,0,0)|0|0,4,0);b=1;break a}else if((I|0)==21){ea(R|0,d|0,4,0);sh(c,b,R);b=2;break a}else if((I|0)==23){ea(b|0,0|0,4,0);b=2;break a}else if((I|0)==34){ea(R|0,da(b|0,4,0,0)|0|0,4,0);sh(c,28128,R);b=2;break a}else if((I|0)==42){ea(R|0,da(g|0,4,0,0)|0|0,4,0);ea(R+4|0,b|0,4,0);ea(R+8|0,d|0,4,0);sh(c,28200,R);ea(f|0,e|0,4,0);b=2;break a}else if((I|0)==49){ea(b|0,0|0,4,0);b=2;break a}else if((I|0)==55){ea(R|0,da(c|0,4,0,0)|0|0,4,0);sh(Q,27776,R);ea(b|0,0|0,4,0);b=2;break a}}while(0);if(!(da(N>>0|0,1,0,0)|0)){q=da(A|0,4,0,0)|0|0;f:do if(((da(q|0,4,0,0)|0|0)+-1|0)>0){r=b+36|0;t=0;u=q+8|0;v=q+80|0;g:while(1){s=da(v+16|0,4,0,0)|0|0;if(!((da(u+16|0,4,0,0)|0|0)==0|(s|0)==0)){y=da(v+36>>0|0,1,0,1)|0|0;p=y&32;n=(p|0)==0;p=p>>>5;o=v+44|0;if(y&4){if(da(o|0,4,0,0)|0){I=73;break}g=v+48|0;if(da(g|0,4,0,0)|0){I=73;break}d=s+38|0;h=da(d|0,2,0,0)|0|0;if(h<<16>>16>0){c=s+4|0;m=t+1|0;l=0;do{f=da((da(c|0,4,0,0)|0|0)+(l*24|0)|0,4,0,0)|0|0;e=0;do{k=rv(da(q+(e*72|0)+24|0,4,0,0)|0|0,f)|0;if((k|0)>-1){h=e;I=77;break}e=e+1|0}while((e|0)<(m|0));if((I|0)==77){I=0;sv(Q,q,h,k,m,l,p,r);h=da(d|0,2,0,0)|0|0}l=l+1|0}while((l|0)<(h<<16>>16|0))}}else g=v+48|0;h=da(o|0,4,0,0)|0|0;if(h){if(da(g|0,4,0,0)|0){I=81;break}if(!n){tv(h,da(v+40|0,4,0,0)|0|0);h=da(o|0,4,0,0)|0|0}ea(r|0,rs(da(Q|0,4,0,0)|0|0,da(r|0,4,0,0)|0|0,h)|0|0,4,0);ea(o|0,0|0,4,0)}f=da(g|0,4,0,0)|0|0;if((f|0)!=0?(H=f+4|0,(da(H|0,4,0,0)|0|0)>0):0){e=t+1|0;k=0;do{c=da((da(f|0,4,0,0)|0|0)+(k<<3)|0,4,0,0)|0|0;d=rv(s,c)|0;if((d|0)<0){I=91;break g}else h=0;while(1){g=rv(da(q+(h*72|0)+24|0,4,0,0)|0|0,c)|0;if((g|0)>-1)break;h=h+1|0;if((h|0)>=(e|0)){I=91;break g}}sv(Q,q,h,g,e,d,p,r);k=k+1|0}while((k|0)<(da(H|0,4,0,0)|0|0))}}t=t+1|0;if((t|0)>=((da(q|0,4,0,0)|0|0)+-1|0))break f;else{u=u+72|0;v=v+72|0}}if((I|0)==73){ea(R|0,0|0,4,0);sh(Q,27928,R);b=2;break a}else if((I|0)==81){sh(Q,27984,R);b=2;break a}else if((I|0)==91){ea(R|0,c|0,4,0);sh(Q,28040,R);b=2;break a}}while(0);c=da(L|0,4,0,0)|0|0;h=(c|0)>0;h:do if(h){d=da(L+4|0,4,0,0)|0|0;g=0;do{f=da(d+(g*20|0)|0,4,0,0)|0|0;e=da(f>>0|0,1,0,0)|0|0;if(e<<24>>24==122){if((da((da(f+16|0,4,0,0)|0)>>0|0,1,0,0)|0|0)==116)break h}else if(e<<24>>24==116)break h;g=g+1|0}while((g|0)<(c|0))}else g=0;while(0);if((g|0)<(c|0)){H=da(L+4|0,4,0,0)|0|0;g=da((da(Q|0,4,0,0)|0|0)+24|0,4,0,0)|0|0;if(!(g&32))G=0;else G=(g&64|0)==0;if(h){C=P+20|0;D=P+16|0;E=O+4|0;F=0;c=0;do{f=H+(F*20|0)|0;h=da(f|0,4,0,0)|0|0;g=da(h>>0|0,1,0,0)|0|0;if(g<<24>>24==116){a=0;I=110}else if(g<<24>>24==122?(da((da(h+16|0,4,0,0)|0)>>0|0,1,0,0)|0|0)==116:0){a=da((da(h+12|0,4,0,0)|0|0)+8|0,4,0,0)|0|0;I=110}else I=106;do if((I|0)==106){c=kr(Q,c,h)|0;if(c){x=H+(F*20|0)+4|0;w=(da(c|0,4,0,0)|0|0)+-1|0;v=da(c+4|0,4,0,0)|0|0;ea(v+(w*20|0)+4|0,da(x|0,4,0,0)|0|0,4,0);y=H+(F*20|0)+8|0;ea(v+(w*20|0)+8|0,da(y|0,4,0,0)|0|0,4,0);ea(x|0,0|0,4,0);ea(y|0,0|0,4,0)}ea(f|0,0|0,4,0)}else if((I|0)==110){if((da(K|0,4,0,0)|0|0)>0){y=(a|0)==0;z=(a|0)!=0;A=0;B=J;g=0;while(1){n=da(B+16|0,4,0,0)|0|0;f=da(B+20|0,4,0,0)|0|0;h=da(B+12|0,4,0,0)|0|0;if(!h)h=da(n|0,4,0,0)|0|0;if(da(N>>0|0,1,0,0)|0)break;if((f|0)!=0?((da(f+6|0,2,0,0)|0)&512)!=0:0){x=0;I=125}else I=117;do if((I|0)==117){I=0;if(!y?(cd(a,h)|0)!=0:0)break;k=da(n+68|0,4,0,0)|0|0;if(!k){f=0;x=27816;I=125;break}e=da(C|0,4,0,0)|0|0;l=da(D|0,4,0,0)|0|0;if((e|0)>0){d=0;while(1){f=d+1|0;if((da(l+(d<<4)+12|0,4,0,0)|0|0)==(k|0)){f=d;break}if((f|0)<(e|0))d=f;else break}if((f|0)>-1)e=f;else{f=0;x=27816;I=125;break}}else e=0;f=0;x=da(l+(e<<4)|0,4,0,0)|0|0;I=125}while(0);do if((I|0)==125){I=0;w=n+38|0;o=da(w|0,2,0,0)|0|0;if(o<<16>>16<=0)break;s=n+4|0;r=(f|0)!=0;l=z&r;t=(A|0)>0;m=t&y;q=B+36|0;t=t^1;p=B+48|0;k=(x|0)==0;u=0;do{n=da(s|0,4,0,0)|0|0;d=da(n+(u*24|0)|0,4,0,0)|0|0;if(!(l?(uv(da((da((da(f|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(u*20|0)+8|0,4,0,0)|0|0,0,a,0)|0)==0:0))I=129;i:do if((I|0)==129){I=0;if((da(n+(u*24|0)+23>>0|0,1,0,0)|0)&2)break;if(m){if(!(((da(q>>0|0,1,0,0)|0)&4)==0|t)){n=0;do{if((rv(da(K+(n*72|0)+24|0,4,0,0)|0|0,d)|0)>-1){g=1;break i}n=n+1|0}while((n|0)<(A|0))}if((vv(da(p|0,4,0,0)|0|0,d)|0)>-1){g=1;break}}o=st(P,27,d)|0;if(!G?(da(K|0,4,0,0)|0|0)<=1:0){e=d;v=0}else I=137;do if((I|0)==137){I=0;o=Yq(Q,122,st(P,27,h)|0,o,0)|0;if(!k)o=Yq(Q,122,st(P,27,x)|0,o,0)|0;if(!G){e=d;v=0;break}ea(R|0,h|0,4,0);ea(R+4|0,d|0,4,0);v=th(P,27824,R)|0;e=v}while(0);c=kr(Q,c,o)|0;ea(O|0,e|0,4,0);if(!e)o=0;else{o=e;while(1)if(!(da(o>>0|0,1,0,0)|0))break;else o=o+1|0;o=o-e&1073741823}ea(E|0,o|0,4,0);lr(Q,c,O,0);do if(c){if(!((da(M|0,2,0,0)|0)&512))break;n=(da(c|0,4,0,0)|0|0)+-1|0;d=da(c+4|0,4,0,0)|0|0;if(r)o=jh(P,da((da((da(f|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(u*20|0)+8|0,4,0,0)|0|0)|0;else{ea(R|0,x|0,4,0);ea(R+4|0,h|0,4,0);ea(R+8|0,e|0,4,0);o=th(P,27832,R)|0}ea(d+(n*20|0)+8|0,o|0,4,0);o=d+(n*20|0)+13|0;ea(o>>0|0,da(o>>0|0,1,0,0)|0|2|0,1,0)}while(0);lg(P,v);o=da(w|0,2,0,0)|0|0;g=1}while(0);u=u+1|0}while((u|0)<(o<<16>>16|0))}while(0);A=A+1|0;if((A|0)>=(da(K|0,4,0,0)|0|0))break;else B=B+72|0}if(g)break}if(!a){sh(Q,27872,R);break}else{ea(R|0,a|0,4,0);sh(Q,27848,R);break}}while(0);F=F+1|0}while((F|0)<(da(L|0,4,0,0)|0|0))}else c=0;Mk(P,L);ea(b|0,c|0,4,0)}else c=da(b|0,4,0,0)|0|0;if((c|0)!=0?(da(c|0,4,0,0)|0|0)>(da(P+96|0,4,0,0)|0|0):0){sh(Q,27896,R);b=0}else b=0}else b=2}else b=1}else b=2;while(0);i=S;return b|0}function qu(a,b){a=a|0;b=b|0;var c=0;c=da(a+12|0,4,0,0)|0|0;while(1){a=da(b+56|0,4,0,0)|0|0;if(!a)break;else b=a}b=da(b+68|0,4,0,0)|0|0;if(b)ea(c+532|0,da(b+4|0,4,0,0)|0|0,4,0);return}function ru(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=b+6|0;e=da(d|0,2,0,1)|0|0;if((e&32|0)==0?(ea(d|0,e|32|0,2,0),h=da(a+12|0,4,0,0)|0|0,f=da(b+32|0,4,0,0)|0|0,c=da(f|0,4,0,0)|0|0,(c|0)>0):0){b=0;d=f+8|0;while(1){a=da(d+16|0,4,0,0)|0|0;if(((a|0)!=0?((da(a+44>>0|0,1,0,0)|0)&2)!=0:0)?(g=da(d+20|0,4,0,0)|0|0,(g|0)!=0):0){c=g;while(1){e=da(c+52|0,4,0,0)|0|0;if(!e)break;else c=e}iu(h,a,c);c=da(f|0,4,0,0)|0|0}b=b+1|0;if((b|0)>=(c|0))break;else d=d+72|0}}return}function su(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if((a|0)!=0?(c=da(a|0,4,0,0)|0|0,(c|0)>0):0){f=da(a+4|0,4,0,0)|0|0;e=0;do{d=da(f+(e*20|0)|0,4,0,0)|0|0;if((d|0)!=0?(g=da(d+24|0,4,0,0)|0|0,(g|0)>(da(b|0,4,0,0)|0|0)):0){ea(b|0,g|0,4,0);c=da(a|0,4,0,0)|0|0}e=e+1|0}while((e|0)<(c|0))}return}function tu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if(((b|0)!=0?(Fs(a,da(b|0,4,0,0)|0|0,c,d),Fs(a,da(b+40|0,4,0,0)|0|0,c,d),Fs(a,da(b+48|0,4,0,0)|0|0,c,d),f=b+44|0,ea(f|0,Gs(a,da(f|0,4,0,0)|0|0,c,d)|0|0,4,0),f=b+36|0,ea(f|0,Gs(a,da(f|0,4,0,0)|0|0,c,d)|0|0,4,0),tu(a,da(b+52|0,4,0,0)|0|0,c,d),f=da(b+32|0,4,0,0)|0|0,(f|0)!=0):0)?(e=da(f|0,4,0,0)|0|0,(e|0)>0):0){b=e;e=f+8|0;while(1){tu(a,da(e+20|0,4,0,0)|0|0,c,d);b=b+-1|0;if((b|0)<=0)break;else e=e+72|0}}return}function uu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=da(b+48|0,4,0,0)|0|0;i=da(c|0,4,0,0)|0|0;d=da(a|0,4,0,0)|0|0;j=Qs(d,i+1|0,1)|0;if((j|0)!=0&(i|0)>0){h=c+4|0;f=d+8|0;e=j+16|0;g=0;do{d=da(h|0,4,0,0)|0|0;c=da(d+(g*20|0)|0,4,0,0)|0|0;if(!((da(c+4|0,4,0,0)|0)&256)){d=Rs(a,b,(da(d+(g*20|0)+16|0,2,0,1)|0|0)+-1|0)|0;if(!d)d=da(f|0,4,0,0)|0|0;c=wv(a,c,da(d|0,4,0,0)|0|0)|0;ea((da(h|0,4,0,0)|0|0)+(g*20|0)|0,c|0,4,0)}else d=bu(a,c)|0;ea(j+(g<<2)+20|0,d|0,4,0);ea((da(e|0,4,0,0)|0|0)+g>>0|0,da((da(h|0,4,0,0)|0|0)+(g*20|0)+12>>0|0,1,0,0)|0|0|0,1,0);g=g+1|0}while((g|0)!=(i|0))}return j|0}function vu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;e=da(a|0,4,0,0)|0|0;a:do if((c|0)!=0?(da(e+65>>0|0,1,0,0)|0|0)==0:0){f=da(c|0,4,0,0)|0|0;if((f|0)>(da(e+96|0,4,0,0)|0|0)){ea(k|0,d|0,4,0);sh(a,27120,k);b=1;break}h=da(b|0,4,0,0)|0|0;if((f|0)>0){e=f;b=0;g=da(c+4|0,4,0,0)|0|0;while(1){f=da(g+16|0,2,0,0)|0|0;if(f<<16>>16){f=f&65535;e=da(h|0,4,0,0)|0|0;if((f|0)>(e|0))break;xv(a,h,f+-1|0,da(g|0,4,0,0)|0|0,d,0);e=da(c|0,4,0,0)|0|0}b=b+1|0;if((b|0)>=(e|0)){b=0;break a}else g=g+20|0}ea(k|0,b+1|0,4,0);ea(k+4|0,d|0,4,0);ea(k+8|0,e|0,4,0);sh(a,27064,k);b=1}else b=0}else b=0;while(0);i=l;return b|0}function wu(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;q=a+8|0;r=da(q|0,4,0,0)|0|0;t=r+32|0;i=da(t|0,4,0,0)|0|0;u=ws(r)|0;if(f){k=vh(r,46,f,0,0)|0;j=c+8|0;m=da(j|0,4,0,0)|0|0;o=f+1|0;l=c+12|0;n=da(l|0,4,0,0)|0|0;if(g)ea(g|0,(da(g|0,4,0,0)|0|0)+1|0,4,0);m=vh(r,42,m,o,n)|0;wh(r,m,g,-6);m=m+2|0;vh(r,43,m,u,m)|0;m=da(t|0,4,0,0)|0|0;if(m>>>0>k>>>0)ea((da(r+4|0,4,0,0)|0|0)+(k*20|0)+8|0,m|0,4,0);ea((da(r+24|0,4,0,0)|0|0)+88|0,m+-1|0,4,0);vh(r,33,da(j|0,4,0,0)|0|0,o,(da(l|0,4,0,0)|0|0)+-1|0)|0;vh(r,25,1,f,0)|0}if(!(da((da(a|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0)){ht(r,da(b+12|0,4,0,0)|0|0,u);switch(da(d>>0|0,1,0,1)|0|0){case 12:case 14:{j=a+19|0;l=da(j>>0|0,1,0,0)|0|0;if(l<<24>>24){f=l+-1<<24>>24;ea(j>>0|0,f|0,1,0);k=da(a+((f&255)<<2)+24|0,4,0,0)|0|0;if(!(f<<24>>24))p=12;else{l=l+-2<<24>>24;ea(j>>0|0,l|0,1,0);l=da(a+((l&255)<<2)+24|0,4,0,0)|0|0;j=k}}else{p=a+72|0;k=(da(p|0,4,0,0)|0|0)+1|0;ea(p|0,k|0,4,0);p=12}if((p|0)==12){j=a+72|0;l=(da(j|0,4,0,0)|0|0)+1|0;ea(j|0,l|0,4,0);j=k}vh(r,49,da(c+8|0,4,0,0)|0|0,da(c+12|0,4,0,0)|0|0,j)|0;k=d+4|0;vh(r,74,da(k|0,4,0,0)|0|0,l,0)|0;vh(r,75,da(k|0,4,0,0)|0|0,j,l)|0;k=da(r+4|0,4,0,0)|0|0;if(k)ea(k+(((da(t|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,8|0,1,0);Zr(a,l);Zr(a,j);break}case 11:{l=d+1|0;ea(l>>0|0,Au(da(da((da(b|0,4,0,0)|0|0)+4|0,4,0,0)|0|0,4,0,0)|0|0,da(l>>0|0,1,0,0)|0|0)|0|0,1,0);k=a+19|0;j=da(k>>0|0,1,0,0)|0|0;if(!(j<<24>>24)){p=a+72|0;k=(da(p|0,4,0,0)|0|0)+1|0;ea(p|0,k|0,4,0)}else{p=j+-1<<24>>24;ea(k>>0|0,p|0,1,0);k=da(a+((p&255)<<2)+24|0,4,0,0)|0|0}p=c+8|0;wh(r,vh(r,49,da(p|0,4,0,0)|0|0,1,k)|0,l,1);ct(a,da(p|0,4,0,0)|0|0,1);vh(r,110,da(d+4|0,4,0,0)|0|0,k,0)|0;Zr(a,k);break}case 10:{p=da(c+8|0,4,0,0)|0|0;vh(da(q|0,4,0,0)|0|0,32,p,da(d+4|0,4,0,0)|0|0,1)|0;ct(a,p,1);break}case 13:{n=d+8|0;k=da(n|0,4,0,0)|0|0;if(!k){k=da(c+12|0,4,0,0)|0|0;l=a+60|0;j=da(l|0,4,0,0)|0|0;g=a+56|0;m=da(g|0,4,0,0)|0|0;if((m|0)<(k|0)){p=a+72|0;j=da(p|0,4,0,0)|0|0;ea(p|0,j+k|0,4,0);j=j+1|0}else{ea(l|0,j+k|0,4,0);ea(g|0,m-k|0,4,0)}ea(n|0,j|0,4,0);ea(d+12|0,k|0,4,0)}else{j=k;k=da(d+12|0,4,0,0)|0|0}p=da(c+8|0,4,0,0)|0|0;vh(da(q|0,4,0,0)|0|0,32,p,j,k)|0;ct(a,p,k);vh(r,22,da(d+4|0,4,0,0)|0|0,0,0)|0;break}default:{f=c+8|0;p=c+12|0;vh(r,35,da(f|0,4,0,0)|0|0,da(p|0,4,0,0)|0|0,0)|0;ct(a,da(f|0,4,0,0)|0|0,da(p|0,4,0,0)|0|0)}}j=da(b+8|0,4,0,0)|0|0;if(j)vh(r,140,j,h,0)|0;j=da(r+24|0,4,0,0)|0|0;k=~u;if((u|0)<0?(s=da(j+112|0,4,0,0)|0|0,(s|0)!=0):0)ea(s+(k<<2)|0,da(t|0,4,0,0)|0|0,4,0);ea(j+88|0,(da(t|0,4,0,0)|0|0)+-1|0,4,0);vh(r,18,e,0,0)|0}else i=0;return i|0}function xu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+80|0;if((i|0)>=(j|0))ba();n=o+64|0;m=o+32|0;d=o;ea(n>>0|0,1|0,1,0);if((b|0)!=0?(da(a+4|0,4,0,0)|0|0)!=0:0){e=da(b>>0|0,1,0,1)|0|0;a:do if((e|0)==154|(e|0)==156){l=da(b+32|0,2,0,0)|0|0;d=l<<16>>16;if(a){k=b+28|0;b:while(1){while(1){h=da(a+4|0,4,0,0)|0|0;g=da(h|0,4,0,0)|0|0;c:do if((g|0)>0){b=da(k|0,4,0,0)|0|0;e=0;while(1){f=e+1|0;if((da(h+(e*72|0)+48|0,4,0,0)|0|0)==(b|0)){f=e;break c}if((f|0)<(g|0))e=f;else break}}else f=0;while(0);if((f|0)>=(g|0))break;g=da(h+(f*72|0)+24|0,4,0,0)|0|0;f=da(h+(f*72|0)+28|0,4,0,0)|0|0;b=(g|0)==0;if(!((a|0)!=0&b))break b}a=da(a+16|0,4,0,0)|0|0;if(!a){d=0;break a}}if(!b){if(f){if(l<<16>>16<=-1){d=0;break}e=da(f|0,4,0,0)|0|0;if((d|0)>=(da(e|0,4,0,0)|0|0)){d=0;break}d=da((da(e+4|0,4,0,0)|0|0)+(d*20|0)|0,4,0,0)|0|0;ea(m+4|0,da(f+32|0,4,0,0)|0|0,4,0);ea(m+16|0,a|0,4,0);ea(m|0,da(a|0,4,0,0)|0|0,4,0);d=xu(m,d,n)|0;break}if(da(g+68|0,4,0,0)|0){if(l<<16>>16<0)d=da(g+36|0,2,0,0)|0|0;if((d|0)<0)d=11144;else{l=da(g+4|0,4,0,0)|0|0;m=da(l+(d*24|0)+12|0,4,0,0)|0|0;ea(n>>0|0,da(l+(d*24|0)+22>>0|0,1,0,0)|0|0|0,1,0);d=m}}else d=0}else d=0}else d=0}else if((e|0)==119){l=da(b+20|0,4,0,0)|0|0;m=da(da((da(l|0,4,0,0)|0|0)+4|0,4,0,0)|0|0,4,0,0)|0|0;ea(d+4|0,da(l+32|0,4,0,0)|0|0,4,0);ea(d+16|0,a|0,4,0);ea(d|0,da(a|0,4,0,0)|0|0,4,0);d=xu(d,m,n)|0}else d=0;while(0);if(c)ea(c>>0|0,da(n>>0|0,1,0,0)|0|0|0,1,0)}else d=0;i=o;return d|0}function yu(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=da(a+8|0,4,0,0)|0|0;f=a+19|0;g=da(f>>0|0,1,0,0)|0|0;if(!(g<<24>>24)){g=a+72|0;f=(da(g|0,4,0,0)|0|0)+1|0;ea(g|0,f|0,4,0)}else{g=g+-1<<24>>24;ea(f>>0|0,g|0,1,0);f=da(a+((g&255)<<2)+24|0,4,0,0)|0|0}wh(h,vh(h,69,b,c,e)|0,d,-14);vh(h,49,e,d,f)|0;vh(h,110,b,f,0)|0;Zr(a,f);return}function zu(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,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;r=a+8|0;w=da(r|0,4,0,0)|0|0;v=b+24|0;h=(da(v>>0|0,1,0,0)|0)&1;k=h<<24>>24==0;h=(h^1)&255;g=da(b|0,4,0,0)|0|0;l=da(g|0,4,0,0)|0|0;m=l+e+h|0;p=a+72|0;j=da(p|0,4,0,0)|0|0;u=j+1|0;ea(p|0,u|0,4,0);s=b+4|0;n=da(s|0,4,0,0)|0|0;f=(f|0)==0;if(f){ea(p|0,u+m|0,4,0);q=j+2|0}else q=d-l-h|0;at(a,g,q,1);if(k)vh(w,73,da(b+8|0,4,0,0)|0|0,q+l|0,0)|0;if(f){vh(da(r|0,4,0,0)|0|0,32,d,h+l+q|0,e)|0;ct(a,d,e)}vh(w,49,q+n|0,m-n|0,u)|0;if((n|0)>0){g=da(p|0,4,0,0)|0|0;e=g+1|0;f=da(s|0,4,0,0)|0|0;ea(p|0,f+g|0,4,0);if(k)d=vh(w,46,q+l|0,0,0)|0;else d=vh(w,59,da(b+8|0,4,0,0)|0|0,0,0)|0;vh(w,42,e,q,da(s|0,4,0,0)|0|0)|0;j=da(b+20|0,4,0,0)|0|0;if((j|0)<0)j=(da(w+32|0,4,0,0)|0|0)+-1|0;if(!(da((da(w|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))j=(da(w+4|0,4,0,0)|0|0)+(j*20|0)|0;else j=29120;if(!(da((da(a|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0)){ea(j+8|0,m-f|0,4,0);f=j+16|0;j=da(f|0,4,0,0)|0|0;ew(da(j+16|0,4,0,0)|0|0,0,da(j+6|0,2,0,1)|0|0)|0;wh(w,-1,j,-6);ea(f|0,Ts(a,da(b|0,4,0,0)|0|0,n,(da(j+8|0,2,0,1)|0|0)+-1|0)|0|0,4,0);j=w+32|0;f=da(j|0,4,0,0)|0|0;i=f+1|0;vh(w,43,i,0,i)|0;i=ws(w)|0;ea(b+16|0,i|0,4,0);h=(da(p|0,4,0,0)|0|0)+1|0;ea(p|0,h|0,4,0);ea(b+12|0,h|0,4,0);vh(w,17,h,i,0)|0;i=b+8|0;vh(w,119,da(i|0,4,0,0)|0|0,0,0)|0;h=da(j|0,4,0,0)|0|0;if(h>>>0>d>>>0)ea((da(w+4|0,4,0,0)|0|0)+(d*20|0)+8|0,h|0,4,0);g=w+24|0;ea((da(g|0,4,0,0)|0|0)+88|0,h+-1|0,4,0);h=da(s|0,4,0,0)|0|0;vh(da(r|0,4,0,0)|0|0,32,q,e,h)|0;ct(a,q,h);h=da(j|0,4,0,0)|0|0;if(h>>>0>f>>>0)ea((da(w+4|0,4,0,0)|0|0)+(f*20|0)+8|0,h|0,4,0);ea((da(g|0,4,0,0)|0|0)+88|0,h+-1|0,4,0);o=23}}else{i=b+8|0;o=23}if((o|0)==23?(vh(w,110-((da(v>>0|0,1,0,0)|0)&1)|0,da(i|0,4,0,0)|0|0,u,0)|0,t=da(c+8|0,4,0,0)|0|0,(t|0)!=0):0){h=da(c+12|0,4,0,0)|0|0;h=vh(w,139,(h|0)==0?t:h+1|0,0,-1)|0;vh(w,105,da(i|0,4,0,0)|0|0,0,0)|0;vh(w,95,da(i|0,4,0,0)|0|0,0,0)|0;g=da(w+32|0,4,0,0)|0|0;if(g>>>0>h>>>0)ea((da(w+4|0,4,0,0)|0|0)+(h*20|0)+8|0,g|0,4,0);ea((da(w+24|0,4,0,0)|0|0)+88|0,g+-1|0,4,0)}return}function Au(a,b){a=a|0;b=b|0;a=jv(a)|0;if(!(a<<24>>24==0|b<<24>>24==0))return (a<<24>>24>66|b<<24>>24>66?67:65)|0;if(!((a|b)<<24>>24))a=65;else a=(b&255)+(a&255)&255;return a|0}function Bu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;do if(!((a|0)==0|(b|0)==0)){g=da(a+4|0,4,0,0)|0|0;h=da(b+4|0,4,0,0)|0|0;i=h|g;if(i&1024){if((g&1024&h|0)!=0?(da(a+8|0,4,0,0)|0|0)==(da(b+8|0,4,0,0)|0|0):0){d=0;break}d=2;break}d=da(a>>0|0,1,0,0)|0|0;e=da(b>>0|0,1,0,0)|0|0;if(d<<24>>24!=e<<24>>24){if(d<<24>>24==95?(Bu(da(a+12|0,4,0,0)|0|0,b,c)|0)<2:0){d=1;break}if(e<<24>>24==95?(Bu(a,da(b+12|0,4,0,0)|0|0,c)|0)<2:0){d=1;break}d=2;break}if((!(d<<24>>24==-100|d<<24>>24==-102)?(f=da(a+8|0,4,0,0)|0|0,(f|0)!=0):0)?(Zv(f,da(b+8|0,4,0,0)|0|0)|0)!=0:0){d=d<<24>>24==95?1:2;break}if(!((h^g)&16)){if(!(i&16384)){if(i&2048){d=2;break}if(Bu(da(a+12|0,4,0,0)|0|0,da(b+12|0,4,0,0)|0|0,c)|0){d=2;break}if(Bu(da(a+16|0,4,0,0)|0|0,da(b+16|0,4,0,0)|0|0,c)|0){d=2;break}if(Ss(da(a+20|0,4,0,0)|0|0,da(b+20|0,4,0,0)|0|0,c)|0){d=2;break}if(!(i&8192)){if((da(a+32|0,2,0,0)|0|0)!=(da(b+32|0,2,0,0)|0|0)){d=2;break}e=da(a+28|0,4,0,0)|0|0;d=da(b+28|0,4,0,0)|0|0;if((e|0)!=(d|0)?(e|0)!=(c|0)|(d|0)>-1:0){d=2;break}}}d=0}else d=2}else d=(b|0)==(a|0)?0:2;while(0);return d|0}function Cu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=a+8|0;ea(d>>0|0,c|0,1,0);a:do if(b){while(1){if((da(b>>0|0,1,0,0)|0|0)!=c<<24>>24)break;Cu(a,da(b+12|0,4,0,0)|0|0,c);b=da(b+16|0,4,0,0)|0|0;ea(d>>0|0,c|0,1,0);if(!b)break a}yv(a,b,0)|0}while(0);return}function Du(a,b){a=a|0;b=b|0;var 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,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;x=da(a|0,4,0,0)|0|0;L=da(x|0,4,0,0)|0|0;N=da(L|0,4,0,0)|0|0;G=N+65|0;do if(!(da(G>>0|0,1,0,0)|0)){O=a+20|0;f=da(O|0,4,0,0)|0|0;c=f+(b*48|0)|0;V=x+68|0;M=da(c|0,4,0,0)|0|0;n=M+12|0;g=da(n|0,4,0,0)|0|0;s=zv(V,g)|0;r=C;e=da(M>>0|0,1,0,0)|0|0;p=e&255;do if(e<<24>>24==76){d=f+(b*48|0)+32|0;ea(d|0,0|0,4,0);ea(d+4|0,0|0,4,0);d=0;o=0}else if(e<<24>>24==75){h=M+20|0;if(!((da(M+4|0,4,0,0)|0)&2048)){d=Ku(V,da(h|0,4,0,0)|0|0)|0;o=C;K=f+(b*48|0)+32|0;ea(K|0,d|0,4,0);ea(K+4|0,o|0,4,0);break}else{d=Av(V,da(h|0,4,0,0)|0|0)|0;o=C;K=f+(b*48|0)+32|0;ea(K|0,d|0,4,0);ea(K+4|0,o|0,4,0);break}}else{d=zv(V,da(M+16|0,4,0,0)|0|0)|0;o=C;K=f+(b*48|0)+32|0;ea(K|0,d|0,4,0);ea(K+4|0,o|0,4,0)}while(0);l=zv(V,M)|0;h=C;I=M+4|0;if(!((da(I|0,4,0,0)|0)&1)){J=0;K=0;q=h}else{j=da(M+36|0,2,0,0)|0|0;i=da(V|0,4,0,0)|0|0;a:do if((i|0)>0){k=0;while(1){if((da(x+(k<<2)+72|0,4,0,0)|0|0)==(j|0))break;k=k+1|0;if((k|0)>=(i|0)){k=0;j=0;break a}}k=hw(1,0,k|0)|0;j=C}else{k=0;j=0}while(0);J=iw(k|0,j|0,-1,-1)|0;K=C;l=k|l;q=j|h}m=f+(b*48|0)+40|0;ea(m|0,l|0,4,0);ea(m+4|0,q|0,4,0);m=f+(b*48|0)+8|0;ea(m|0,-1|0,4,0);ea(f+(b*48|0)+4|0,-1|0,4,0);u=f+(b*48|0)+18|0;ea(u|0,0|0,2,0);k=p+-75|0;if(k>>>0<9?(499>>>(k&511)&1)!=0:0){b:do if(!g)g=0;else while(1){k=da(g+4|0,4,0,0)|0|0;if(!(k&4096))break b;if(!(k&262144))i=g+12|0;else i=da((da(g+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;g=da(i|0,4,0,0)|0|0;if(!g){g=0;break}}while(0);k=da(M+16|0,4,0,0)|0|0;c:do if(!k)k=0;else while(1){j=da(k+4|0,4,0,0)|0|0;if(!(j&4096))break c;if(!(j&262144))k=k+12|0;else k=da((da(k+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;k=da(k|0,4,0,0)|0|0;if(!k){k=0;break}}while(0);o=(d&s|0)==0&(o&r|0)==0?4095:1024;if((da(g>>0|0,1,0,0)|0|0)==-102){h=da(g+28|0,4,0,0)|0|0;ea(m|0,h|0,4,0);ea(f+(b*48|0)+12|0,da(g+32|0,2,0,0)|0|0,4,0);if((p|0)==75)i=1;else if((p|0)==76)i=128;else i=2<<p+-79&65535;ea(u|0,i&o|0,2,0)}else h=-1;if((k|0)!=0?(da(k>>0|0,1,0,0)|0|0)==-102:0){if((h|0)>-1){g=Lr(N,M,0,0)|0;if(da(G>>0|0,1,0,0)|0){Fk(N,g);break}h=yv(a,g,3)|0;if(!h)break;i=da(O|0,4,0,0)|0|0;f=i+(h*48|0)|0;ea(i+(h*48|0)+4|0,b|0,4,0);ea(i+(h*48|0)+16|0,da(i+(b*48|0)+16|0,2,0,0)|0|0|0,2,0);c=i+(b*48|0)+22|0;ea(c>>0|0,(da(c>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0);c=i+(b*48|0)|0;k=i+(b*48|0)+20|0;ea(k|0,da(k|0,2,0,1)|0|8|0,2,0);if(((da(M>>0|0,1,0,0)|0|0)==79?((da(I|0,4,0,0)|0)&1|0)==0:0)?((da(N+60|0,2,0,0)|0)&512)==0:0){n=i+(b*48|0)+18|0;ea(n|0,da(n|0,2,0,1)|0|1024|0,2,0);n=1024}else n=0}else{n=0;g=M;f=c}e=g+16|0;j=(da(e|0,4,0,0)|0|0)+4|0;i=da(j|0,4,0,0)|0|0;h=i&256;d=g+12|0;k=da(d|0,4,0,0)|0|0;do if((h|0)==((da(k+4|0,4,0,0)|0)&256|0)){if(h){ea(j|0,i&-257|0,4,0);break}k=(bu(L,k)|0)==0;i=da(d|0,4,0,0)|0|0;if(k)k=i;else{k=i+4|0;ea(k|0,da(k|0,4,0,0)|0|256|0,4,0);k=i}}while(0);i=da(e|0,4,0,0)|0|0;ea(e|0,k|0,4,0);ea(d|0,i|0,4,0);h=da(g>>0|0,1,0,0)|0|0;if((h&255)>79){h=((h&255)+176^2)+80&255;ea(g>>0|0,h|0,1,0)}g=da(i+4|0,4,0,0)|0|0;if(g&4096)do{if(!(g&262144))i=i+12|0;else i=da((da(i+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;i=da(i|0,4,0,0)|0|0;g=da(i+4|0,4,0,0)|0|0}while((g&4096|0)!=0);ea(f+8|0,da(i+28|0,4,0,0)|0|0,4,0);ea(f+12|0,da(i+32|0,2,0,0)|0|0,4,0);g=f+32|0;ea(g|0,J|s|0,4,0);ea(g+4|0,K|r|0,4,0);g=f+40|0;ea(g|0,l|0,4,0);ea(g+4|0,q|0,4,0);g=h&255;if((g|0)==75)g=1;else if((g|0)==76)g=128;else g=2<<g+-79&65535;ea(f+18|0,g+n&(o&65535)|0,2,0)}}else B=59;do if((B|0)==59){if(e<<24>>24==74){if((da(a+8>>0|0,1,0,0)|0|0)!=72)break;h=(da(M+20|0,4,0,0)|0|0)+4|0;d=M+36|0;e=0;while(1){l=da(34144+e>>0|0,1,0,1)|0|0;g=Lr(N,g,0,0)|0;g=Yq(L,l,g,Lr(N,da((da(h|0,4,0,0)|0|0)+(e*20|0)|0,4,0,0)|0|0,0,0)|0,0)|0;if(g){l=g+4|0;ea(l|0,da(l|0,4,0,0)|0|(da(I|0,4,0,0)|0)&1|0,4,0);ea(g+36|0,da(d|0,2,0,0)|0|0|0,2,0)}l=yv(a,g,3)|0;Du(a,l);f=da(O|0,4,0,0)|0|0;ea(f+(l*48|0)+4|0,b|0,4,0);ea(f+(l*48|0)+16|0,da(f+(b*48|0)+16|0,2,0,0)|0|0|0,2,0);l=f+(b*48|0)+22|0;ea(l>>0|0,(da(l>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0);e=e+1|0;if((e|0)==2)break;g=da(n|0,4,0,0)|0|0}c=f+(b*48|0)|0;break}else if(e<<24>>24!=71)break;s=lh(N,416,0)|0;d:do if(s){ew(s|0,0,416)|0;ea(f+(b*48|0)+12|0,s|0,4,0);v=f+(b*48|0)+20|0;ea(v|0,da(v|0,2,0,1)|0|16|0,2,0);ea(s|0,x|0,4,0);ea(s+4|0,0|0,4,0);v=s+12|0;ea(v|0,0|0,4,0);ea(s+16|0,8|0,4,0);w=s+20|0;ea(w|0,s+24|0,4,0);Cu(s,M,71);h=da(v|0,4,0,0)|0|0;if((h|0)>0)do{h=h+-1|0;Du(s,h)}while((h|0)>0);if(!(da(G>>0|0,1,0,0)|0)){k=da(v|0,4,0,0)|0|0;if((k|0)>0){r=x+68|0;q=-1;p=-1;d=-1;c=-1;o=da(w|0,4,0,0)|0|0;while(1){k=k+-1|0;j=o+18|0;n=da(j|0,2,0,0)|0|0;if(!(n&255)){g=lh(N,408,0)|0;if(!g){h=q;i=p;d=0;c=0}else{ea(o+12|0,g|0,4,0);i=o+20|0;ea(i|0,da(i|0,2,0,1)|0|32|0,2,0);ea(j|0,512|0,2,0);ea(g|0,da(a|0,4,0,0)|0|0,4,0);i=g+4|0;ea(i|0,0|0,4,0);h=g+12|0;ea(h|0,0|0,4,0);ea(g+16|0,8|0,4,0);l=g+20|0;ea(l|0,g+24|0,4,0);Cu(g,da(o|0,4,0,0)|0|0,72);j=da(h|0,4,0,0)|0|0;if((j|0)>0)do{j=j+-1|0;Du(g,j)}while((j|0)>0);ea(i|0,a|0,4,0);if((da(G>>0|0,1,0,0)|0|0)==0?(t=da(h|0,4,0,0)|0|0,(t|0)>0):0){j=0;i=0;c=0;m=da(l|0,4,0,0)|0|0;while(1){h=(da((da(m|0,4,0,0)|0)>>0|0,1,0,1)|0|0)+-75|0;do if(h>>>0<9){if(!(499>>>(h&511)&1))break;g=da(m+8|0,4,0,0)|0|0;e=da(r|0,4,0,0)|0|0;e:do if((e|0)>0){h=0;while(1){if((da(x+(h<<2)+72|0,4,0,0)|0|0)==(g|0))break;h=h+1|0;if((h|0)>=(e|0)){h=0;g=0;break e}}h=hw(1,0,h|0)|0;g=C}else{h=0;g=0}while(0);j=h|j;i=g|i}while(0);c=c+1|0;if((c|0)>=(t|0))break;else m=m+48|0}}else{j=0;i=0}h=j&q;i=i&p;d=0;c=0}}else{i=da(o+20|0,2,0,0)|0|0;if(!(i&8)){l=da(o+8|0,4,0,0)|0|0;g=da(r|0,4,0,0)|0|0;h=(g|0)>0;f:do if(h){j=0;while(1){if((da(x+(j<<2)+72|0,4,0,0)|0|0)==(l|0))break;j=j+1|0;if((j|0)>=(g|0)){e=0;m=0;break f}}e=hw(1,0,j|0)|0;m=C}else{e=0;m=0}while(0);if(!(i&2)){j=e;l=m}else{l=da((da(w|0,4,0,0)|0|0)+((da(o+4|0,4,0,0)|0|0)*48|0)+8|0,4,0,0)|0|0;g:do if(h){j=0;while(1){if((da(x+(j<<2)+72|0,4,0,0)|0|0)==(l|0))break;j=j+1|0;if((j|0)>=(g|0)){j=0;l=0;break g}}j=hw(1,0,j|0)|0;l=C}else{j=0;l=0}while(0);j=j|e;l=l|m}g=(n&2)==0;h=j&q;i=l&p;d=g?0:j&d;c=g?0:l&c}else{h=q;i=p}}j=(h|0)!=0|(i|0)!=0;if(!((k|0)>0&j))break;else{q=h;p=i;o=o+48|0}}l=s+408|0;ea(l|0,h|0,4,0);ea(l+4|0,i|0,4,0);ea(u|0,((h|0)==0&(i|0)==0?0:256)|0,2,0);if(j)B=104}else{d=s+408|0;ea(d|0,-1|0,4,0);ea(d+4|0,-1|0,4,0);ea(u|0,256|0,2,0);d=-1;c=-1;B=104}h:do if((B|0)==104)if((da(v|0,4,0,0)|0|0)==2){g=da(w|0,4,0,0)|0|0;h=0;i:while(1){e=h+1|0;if((da(g+18|0,2,0,0)|0|0)!=512)if(!h)j=g;else break h;else{i=da(g+12|0,4,0,0)|0|0;if((da(i+12|0,4,0,0)|0|0)<=(h|0))break h;j=(da(i+20|0,4,0,0)|0|0)+(h*48|0)|0}if(!j)break h;else k=0;while(1){if((da(g+66|0,2,0,0)|0|0)==512){i=da(g+60|0,4,0,0)|0|0;if((da(i+12|0,4,0,0)|0|0)<=(k|0)){h=e;continue i}i=(da(i+20|0,4,0,0)|0|0)+(k*48|0)|0;if(!i){h=e;continue i}}else if(!k)i=g+48|0;else{h=e;continue i}Bv(a,j,i);g=da(w|0,4,0,0)|0|0;k=k+1|0}}}while(0);if(!((d|0)==0&(c|0)==0)){m=x+68|0;l=-1;n=0;while(1){i=da(v|0,4,0,0)|0|0;if((i|0)<=0)break d;k=da(w|0,4,0,0)|0|0;while(1){e=i;i=i+-1|0;g=k+20|0;ea(g|0,(da(g|0,2,0,1)|0)&65471|0,2,0);g=da(k+8|0,4,0,0)|0|0;if((g|0)!=(l|0)){h=da(m|0,4,0,0)|0|0;j:do if((h|0)>0){j=0;while(1){if((da(x+(j<<2)+72|0,4,0,0)|0|0)==(g|0))break;j=j+1|0;if((j|0)>=(h|0)){j=0;h=0;break j}}j=hw(1,0,j|0)|0;h=C}else{j=0;h=0}while(0);if(!((j&d|0)==0&(h&c|0)==0)){j=e;break}}if((i|0)<=0)break d;else k=k+48|0}h=da(k+12|0,4,0,0)|0|0;if((j|0)<1)break d;else j=g;while(1){if((j|0)==(g|0)){if((da(k+12|0,4,0,0)|0|0)!=(h|0)){i=g;h=1;break}l=jv(da((da(k|0,4,0,0)|0|0)+16|0,4,0,0)|0|0)|0;if(!(l<<24>>24==0|l<<24>>24==(jv(da((da(k|0,4,0,0)|0|0)+12|0,4,0,0)|0|0)|0)<<24>>24)){i=g;h=1;break}l=k+20|0;ea(l|0,da(l|0,2,0,1)|0|64|0,2,0)}else{l=k+20|0;ea(l|0,(da(l|0,2,0,1)|0)&65471|0,2,0)}if((i|0)<=0){i=g;h=0;break}j=da(k+56|0,4,0,0)|0|0;i=i+-1|0;k=k+48|0}n=n+1|0;if(!((n|0)<2&h))break;else l=i}if(!h){g=da(v|0,4,0,0)|0|0;if((g|0)>0){h=0;d=0;e=da(w|0,4,0,0)|0|0;while(1){g=g+-1|0;if((da(e+20|0,2,0,0)|0)&64){h=Lr(N,da((da(e|0,4,0,0)|0|0)+16|0,4,0,0)|0|0,0,0)|0;d=kr(da(x|0,4,0,0)|0|0,d,h)|0;h=da((da(e|0,4,0,0)|0|0)+12|0,4,0,0)|0|0}if((g|0)<=0){g=h;break}else e=e+48|0}}else{g=0;d=0}e=Yq(L,75,Lr(N,g,0,0)|0,0,0)|0;if(!e)Mk(N,d);else{l=e+4|0;ea(l|0,da(l|0,4,0,0)|0|(da(I|0,4,0,0)|0)&1|0,4,0);ea(e+36|0,da(M+36|0,2,0,0)|0|0|0,2,0);ea(e+20|0,d|0,4,0);l=yv(a,e,3)|0;Du(a,l);f=da(O|0,4,0,0)|0|0;ea(f+(l*48|0)+4|0,b|0,4,0);ea(f+(l*48|0)+16|0,da(f+(b*48|0)+16|0,2,0,0)|0|0|0,2,0);l=f+(b*48|0)+22|0;ea(l>>0|0,(da(l>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0)}ea(f+(b*48|0)+18|0,2048|0,2,0)}}}}else ea(f+(b*48|0)+12|0,0|0,4,0);while(0);c=(da(O|0,4,0,0)|0|0)+(b*48|0)|0}while(0);k:do if((da(a+8>>0|0,1,0,0)|0|0)==72){p=da(L|0,4,0,0)|0|0;if((da(M>>0|0,1,0,0)|0|0)==-103){o=M+20|0;g=da(o|0,4,0,0)|0|0;if((g|0)!=0?(da(g|0,4,0,0)|0|0)==2:0){h=da(M+8|0,4,0,0)|0|0;if(!h)g=0;else{g=h;while(1)if(!(da(g>>0|0,1,0,0)|0))break;else g=g+1|0;g=g-h&1073741823}g=Rh(p,h,g,2,1,0)|0;if(((((g|0)!=0?(y=da(g+2|0,2,0,0)|0|0,(y&4)!=0):0)?(F=da(g+4|0,4,0,0)|0|0,D=da(F>>0|0,1,0,0)|0|0,E=da(F+1>>0|0,1,0,0)|0|0,F=da(F+2>>0|0,1,0,0)|0|0,H=(y&65535)>>>3&1,z=(da(o|0,4,0,0)|0|0)+4|0,A=da((da(z|0,4,0,0)|0|0)+20|0,4,0,0)|0|0,(da(A>>0|0,1,0,0)|0|0)==-102):0)?(jv(A)|0)<<24>>24==66:0)?((da((da(A+44|0,4,0,0)|0|0)+44>>0|0,1,0,0)|0)&16)==0:0){f=da(da(z|0,4,0,0)|0|0,4,0,0)|0|0;l:do if(!f)f=0;else while(1){e=da(f+4|0,4,0,0)|0|0;if(!(e&4096))break l;if(!(e&262144))f=f+12|0;else f=da((da(f+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;f=da(f|0,4,0,0)|0|0;if(!f){f=0;break}}while(0);e=da(f>>0|0,1,0,0)|0|0;m=e<<24>>24==-121;do if(m){g=da(L+476|0,4,0,0)|0|0;j=da(f+32|0,2,0,0)|0|0;k=j<<16>>16;do if(!g){d=0;h=0}else{B=k+-1|0;A=da(g+60|0,4,0,0)|0|0;d=A+(B*40|0)|0;if((da(A+(B*40|0)+8|0,2,0,0)|0)&1){d=0;h=0;break}h=da(g|0,4,0,0)|0|0;i=lh(h,40,0)|0;if(!i){d=0;h=0;break}g=i+0|0;e=g+40|0;do{ea(g>>0|0,0|0,1,0);g=g+1|0}while((g|0)<(e|0));B=i+8|0;ea(B|0,1|0,2,0);ea(i+32|0,h|0,4,0);Zg(i,d)|0;if(((da(B|0,2,0,0)|0)&15)!=2){d=i;h=0;break}d=i;h=Rg(i,1)|0}while(0);g=da(L+8|0,4,0,0)|0|0;if(j<<16>>16>32){ea(g+188|0,-1|0,4,0);l=h;B=177;break}else{l=g+188|0;ea(l|0,da(l|0,4,0,0)|0|1<<k+-1|0,4,0);l=h;B=177;break}}else if(e<<24>>24==97){d=0;l=da(f+8|0,4,0,0)|0|0;B=177}else d=0;while(0);do if((B|0)==177)if(l){h=0;while(1){B=da(l+h>>0|0,1,0,0)|0|0;e=B<<24>>24==D<<24>>24;g=h+1|0;if(B<<24>>24!=F<<24>>24&((B<<24>>24==0|e|B<<24>>24==E<<24>>24)^1))h=g;else break}if(h){if((da(l+(h+-1)>>0|0,1,0,0)|0|0)==-1)break;if(e)g=(da(l+g>>0|0,1,0,0)|0|0)==0;else g=0;i=g&1;n=st(p,97,l)|0;if(n)ea((da(n+8|0,4,0,0)|0|0)+h>>0|0,0|0,1,0);do if(m){h=da(L+8|0,4,0,0)|0|0;e=da(f+32|0,2,0,0)|0|0;if(e<<16>>16>32)ea(h+188|0,-1|0,4,0);else{F=h+188|0;ea(F|0,da(F|0,4,0,0)|0|1<<(e<<16>>16)+-1|0,4,0)}if(!g){i=0;break}if(!(da((da(f+8|0,4,0,0)|0|0)+1>>0|0,1,0,0)|0))break;e=L+19|0;g=da(e>>0|0,1,0,0)|0|0;if(!(g<<24>>24)){F=L+72|0;e=(da(F|0,4,0,0)|0|0)+1|0;ea(F|0,e|0,4,0)}else{F=g+-1<<24>>24;ea(e>>0|0,F|0,1,0);e=da(L+((F&255)<<2)+24|0,4,0,0)|0|0}hs(L,f,e)|0;f=da(h+32|0,4,0,0)|0|0;if(f>>>0>0)ea((da(h+4|0,4,0,0)|0|0)+((f+-1|0)*20|0)+12|0,0|0,4,0);Zr(L,e)}while(0);Lh(d);if(!l){B=217;break k}j=da((da((da(o|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;h=Lr(N,n,0,0)|0;k=H<<16>>16!=0;do if(!k){if(da((da(L|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0)break;d=c+20|0;ea(d|0,da(d|0,2,0,1)|0|1024|0,2,0);d=n+8|0;g=da(d|0,4,0,0)|0|0;f=da(g>>0|0,1,0,0)|0|0;if(!(f<<24>>24))break;c=h+8|0;e=0;do{F=f&255;ea(g>>0|0,((da(10368+F>>0|0,1,0,1)|0|223)^32)&F|0,1,0);ea((da(c|0,4,0,0)|0|0)+e>>0|0,da(9328+F>>0|0,1,0,0)|0|0|0,1,0);e=e+1|0;g=(da(d|0,4,0,0)|0|0)+e|0;f=da(g>>0|0,1,0,0)|0|0}while(f<<24>>24!=0)}while(0);if(!(da(G>>0|0,1,0,0)|0)){f=da(h+8|0,4,0,0)|0|0;if(!f)e=-1;else{e=f;while(1)if(!(da(e>>0|0,1,0,0)|0))break;else e=e+1|0;e=(e-f&1073741823)+-1|0}f=f+e|0;e=da(f>>0|0,1,0,0)|0|0;if(k)d=i;else{d=e<<24>>24==64?0:i;e=da(9328+(e&255)>>0|0,1,0,0)|0|0}ea(f>>0|0,(e&255)+1|0,1,0);g=d}else g=i;d=H<<16>>16==0?13752:11152;e=Yq(L,83,wv(L,Lr(N,j,0,0)|0,d)|0,n,0)|0;if(e){H=e+4|0;ea(H|0,da(H|0,4,0,0)|0|(da(I|0,4,0,0)|0)&1|0,4,0);ea(e+36|0,da(M+36|0,2,0,0)|0|0|0,2,0)}f=yv(a,e,259)|0;Du(a,f);d=Yq(L,82,wv(L,Lr(N,j,0,0)|0,d)|0,h,0)|0;if(d){H=d+4|0;ea(H|0,da(H|0,4,0,0)|0|(da(I|0,4,0,0)|0)&1|0,4,0);ea(d+36|0,da(M+36|0,2,0,0)|0|0|0,2,0)}d=yv(a,d,259)|0;Du(a,d);e=da(O|0,4,0,0)|0|0;c=e+(b*48|0)|0;if(!g){B=217;break k}ea(e+(f*48|0)+4|0,b|0,4,0);I=e+(b*48|0)+16|0;ea(e+(f*48|0)+16|0,da(I|0,2,0,0)|0|0|0,2,0);B=e+(b*48|0)+22|0;ea(B>>0|0,(da(B>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0);ea(e+(d*48|0)+4|0,b|0,4,0);ea(e+(d*48|0)+16|0,da(I|0,2,0,0)|0|0|0,2,0);ea(B>>0|0,(da(B>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0);B=217;break k}}while(0);Lh(d);B=217}else B=217}else B=217}}else B=217;while(0);if((B|0)==217)if(((((da(M>>0|0,1,0,0)|0|0)==-103?(cd(da(M+8|0,4,0,0)|0|0,31416)|0)==0:0)?(P=da(M+20|0,4,0,0)|0|0,(da(P|0,4,0,0)|0|0)==2):0)?(Q=da(P+4|0,4,0,0)|0|0,R=da(Q+20|0,4,0,0)|0|0,(da(R>>0|0,1,0,0)|0|0)==-102):0)?(S=da(Q|0,4,0,0)|0|0,T=zv(V,S)|0,U=C,V=zv(V,R)|0,(V&T|0)==0&(C&U|0)==0):0){S=yv(a,Yq(L,51,0,Lr(N,S,0,0)|0,0)|0,3)|0;c=da(O|0,4,0,0)|0|0;V=c+(S*48|0)+32|0;ea(V|0,T|0,4,0);ea(V+4|0,U|0,4,0);ea(c+(S*48|0)+8|0,da(R+28|0,4,0,0)|0|0,4,0);ea(c+(S*48|0)+12|0,da(R+32|0,2,0,0)|0|0,4,0);ea(c+(S*48|0)+18|0,64|0,2,0);ea(c+(S*48|0)+4|0,b|0,4,0);ea(c+(S*48|0)+16|0,da(c+(b*48|0)+16|0,2,0,0)|0|0|0,2,0);T=c+(b*48|0)+22|0;ea(T>>0|0,(da(T>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0);T=c+(b*48|0)+20|0;ea(T|0,da(T|0,2,0,1)|0|8|0,2,0);T=c+(b*48|0)+40|0;V=da(T+4|0,4,0,0)|0|0;U=c+(S*48|0)+40|0;ea(U|0,da(T|0,4,0,0)|0|0,4,0);ea(U+4|0,V|0,4,0);c=c+(b*48|0)|0}V=c+32|0;U=V;b=da(U+4|0,4,0,0)|0|K;ea(V|0,da(U|0,4,0,0)|0|J|0,4,0);ea(V+4|0,b|0,4,0)}while(0);return}function Eu(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0;k=i;i=i+112|0;if((i|0)>=(j|0))ba();h=k;f=Cv(h,a,b,c,f,g)|0;a:do if(!f)f=0;else{g=f;f=0;do{b=g+32|0;c=da(b|0,4,0,0)|0|0;b=da(b+4|0,4,0,0)|0|0;if((c&d|0)==0&(b&e|0)==0){if((c|0)==0&(b|0)==0?((da(g+18|0,2,0,0)|0)&2)!=0:0){f=g;break a}f=(f|0)==0?g:f}g=Dv(h)|0}while((g|0)!=0)}while(0);i=k;return f|0}function Fu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0.0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,_=0,aa=0,ca=0,ga=0,ha=0,ia=0,ja=0,ka=0;ja=i;i=i+16|0;if((i|0)>=(j|0))ba();ga=ja;q=da(a|0,4,0,0)|0|0;aa=da(q|0,4,0,0)|0|0;ha=da(aa|0,4,0,0)|0|0;_=da(a+4|0,4,0,0)|0|0;ca=da(a+12|0,4,0,0)|0|0;p=da(ca+16>>0|0,1,0,1)|0|0;q=da(q+4|0,4,0,0)|0|0;X=da(q+(p*72|0)+24|0,4,0,0)|0|0;s=da(a+8|0,4,0,0)|0|0;Y=_+20|0;_=_+12|0;d=da(_|0,4,0,0)|0|0;if((d|0)>0){f=da(q+(p*72|0)+48|0,4,0,0)|0|0;g=0;e=0;h=da(Y|0,4,0,0)|0|0;while(1){if((da(h+8|0,4,0,0)|0|0)==(f|0))e=(((da(h+18|0,2,0,0)|0)&-1153)<<16>>16!=0&1)+e|0;g=g+1|0;if((g|0)==(d|0))break;else h=h+48|0}}else e=0;if(!s)o=0;else{m=da(s|0,4,0,0)|0|0;a:do if((m|0)>0){h=da(s+4|0,4,0,0)|0|0;g=q+(p*72|0)+48|0;l=0;while(1){f=da(h+(l*20|0)|0,4,0,0)|0|0;if((da(f>>0|0,1,0,0)|0|0)!=-102){d=l;break a}d=l+1|0;if((da(f+28|0,4,0,0)|0|0)!=(da(g|0,4,0,0)|0|0)){d=l;break a}if((d|0)<(m|0))l=d;else break}}else d=0;while(0);o=(d|0)==(m|0)?m:0}d=(e*20|0)+56+(o<<3)|0;W=lh(ha,d,0)|0;do if(!W){sh(aa,15776,ga);d=7}else{ew(W|0,0,d|0)|0;d=W+56|0;n=d+(e*12|0)|0;ea(W|0,e|0,4,0);T=W+8|0;ea(T|0,o|0,4,0);U=W+4|0;ea(U|0,d|0,4,0);ea(W+12|0,n|0,4,0);V=W+16|0;ea(V|0,n+(o<<3)|0,4,0);f=da(_|0,4,0,0)|0|0;if((f|0)>0){l=da(q+(p*72|0)+48|0,4,0,0)|0|0;h=0;m=0;g=da(Y|0,4,0,0)|0|0;while(1){if((da(g+8|0,4,0,0)|0|0)==(l|0)?(t=da(g+18|0,2,0,0)|0|0,(t&-1153)<<16>>16!=0):0){ea(d+(m*12|0)|0,da(g+12|0,4,0,0)|0|0,4,0);ea(d+(m*12|0)+8|0,h|0,4,0);ea(d+(m*12|0)+4>>0|0,((t&255)==1?2:t&255)|0,1,0);m=m+1|0}h=h+1|0;if((h|0)==(f|0))break;else g=g+48|0}}if((o|0)>0){d=da(s+4|0,4,0,0)|0|0;e=0;do{ea(n+(e<<3)|0,da((da(d+(e*20|0)|0,4,0,0)|0|0)+32|0,2,0,0)|0|0,4,0);ea(n+(e<<3)+4>>0|0,da(d+(e*20|0)+12>>0|0,1,0,0)|0|0|0,1,0);e=e+1|0}while((e|0)!=(o|0))}v=ca;ea(v|0,0|0,4,0);ea(v+4|0,0|0,4,0);v=ca+18|0;ea(v|0,0|0,2,0);ea(ca+36|0,1024|0,4,0);w=ca+40|0;ea(w|0,0|0,2,0);x=ca+28|0;ea(x>>0|0,0|0,1,0);y=da(V|0,4,0,0)|0|0;z=da(W|0,4,0,0)|0|0;if(Mu(ha,ca,z)|0){lg(ha,W);d=7;break}R=W+28|0;S=W+24|0;A=W+20|0;B=W+32|0;D=W+40|0;E=W+48|0;F=X+60|0;G=aa+64|0;H=(z|0)>0;I=ca+30|0;J=ca+24|0;K=ca+32|0;L=ca+29|0;O=ca+20|0;P=ca+22|0;Q=ca+48|0;q=0;t=0;s=0;b:while(1){if(!((t|0)!=0|(q&1|0)==0))if((q|0)>2){d=0;break}else u=q+1|0;else u=q;if((s|0)==0&(u|0)>1){d=0;break}h=da(W|0,4,0,0)|0|0;if((h|0)>0){e=da(Y|0,4,0,0)|0|0;f=0;g=da(U|0,4,0,0)|0|0;while(1){q=da(g+8|0,4,0,0)|0|0;if((u|0)==2)ea(g+5>>0|0,(da(e+(q*48|0)+18|0,2,0,0)|0)&1^1|0,1,0);else if(!u){d=g+5|0;ea(d>>0|0,0|0,1,0);p=((da(e+(q*48|0)+18|0,2,0,0)|0)&1)==0;t=p?t:1;q=e+(q*48|0)+32|0;q=(da(q|0,4,0,0)|0|0)!=0|(da(q+4|0,4,0,0)|0|0)!=0;if(q|p^1)s=q?1:s;else ea(d>>0|0,1|0,1,0)}else if((u|0)==1){p=e+(q*48|0)+32|0;ea(g+5>>0|0,(da(p|0,4,0,0)|0|0)==0&(da(p+4|0,4,0,0)|0|0)==0&1|0,1,0)}else ea(g+5>>0|0,1|0,1,0);f=f+1|0;if((f|0)>=(h|0)){p=t;break}else g=g+12|0}}else p=t;ew(y|0,0,h<<3|0)|0;if(da(R|0,4,0,0)|0)Vc(da(S|0,4,0,0)|0|0);ea(A+0|0,0|0,4,0);ea(A+4|0,0|0,4,0);ea(A+8|0,0|0,4,0);ea(A+12|0,0|0,4,0);ea(D|0,+(5.e+98),8,1);d=E;ea(d|0,25|0,4,0);ea(d+4|0,0|0,4,0);d=da(aa|0,4,0,0)|0|0;q=F;while(1){q=da(q|0,4,0,0)|0|0;if((da(q|0,4,0,0)|0|0)==(d|0))break;else q=q+24|0}t=da(q+8|0,4,0,0)|0|0;q=qc[(fa(da((da(t|0,4,0,0)|0|0)+12|0,4,0,0)|0|0,127|0)|0)&127](t,W)|0;do if((q|0)==7)ea((da(aa|0,4,0,0)|0|0)+65>>0|0,1|0,1,0);else if(q){d=da(t+8|0,4,0,0)|0|0;if(d){ea(ga|0,d|0,4,0);sh(aa,10344,ga);break}if((q|0)!=516){q=q&255;if(q>>>0>26|(q|0)==2)q=16328;else q=da(15488+(q<<2)|0,4,0,0)|0|0}else q=16344;ea(ga|0,q|0,4,0);sh(aa,10344,ga)}while(0);q=t+8|0;Vc(da(q|0,4,0,0)|0|0);ea(q|0,0|0,4,0);q=da(W|0,4,0,0)|0|0;if((q|0)>0){d=0;do{if((da((da(U|0,4,0,0)|0|0)+(d*12|0)+5>>0|0,1,0,0)|0|0)==0?(da((da(V|0,4,0,0)|0|0)+(d<<3)|0,4,0,0)|0|0)>0:0){ea(ga|0,da(X|0,4,0,0)|0|0,4,0);sh(aa,34096,ga);q=da(W|0,4,0,0)|0|0}d=d+1|0}while((d|0)<(q|0))}d=da(G|0,4,0,0)|0|0;if(d)break;t=da(U|0,4,0,0)|0|0;o=ca;ea(o|0,b|0,4,0);ea(o+4|0,c|0,4,0);c:do if(H){q=0;do{ea((da(Q|0,4,0,0)|0|0)+(q<<2)|0,0|0,4,0);q=q+1|0}while((q|0)!=(z|0));ea(I|0,0|0,2,0);if(H){f=b;e=c;d=0;o=0;q=-1;while(1){h=da(y+(o<<3)|0,4,0,0)|0|0;l=h+-1|0;do if((h|0)>0){m=da(t+8|0,4,0,0)|0|0;if((h|0)>(z|0)|(m|0)<0){ia=65;break b}if((m|0)>=(da(_|0,4,0,0)|0|0)){ia=65;break b}g=(da(Q|0,4,0,0)|0|0)+(l<<2)|0;if(da(g|0,4,0,0)|0){ia=65;break b}n=da(Y|0,4,0,0)|0|0;ka=n+(m*48|0)+32|0;f=f|(da(ka|0,4,0,0)|0);e=e|(da(ka+4|0,4,0,0)|0);ka=ca;ea(ka|0,f|0,4,0);ea(ka+4|0,e|0,4,0);ea(g|0,n+(m*48|0)|0,4,0);q=(l|0)>(q|0)?l:q;do if((h|0)<17){if(!(da(y+(o<<3)+4>>0|0,1,0,0)|0))break;d=(d&65535|1<<l)&65535;ea(I|0,d|0,2,0)}while(0);if(!((da(n+(m*48|0)+18|0,2,0,0)|0)&1))break;if(!(da(y+(o<<3)+4>>0|0,1,0,0)|0))break c;ea(B|0,0|0,4,0)}while(0);o=o+1|0;if((o|0)>=(z|0)){ia=73;break}else t=t+12|0}}else{q=-1;ia=73}}else{ea(I|0,0|0,2,0);q=-1;ia=73}while(0);if((ia|0)==73){ia=0;ea(w|0,q+1|0,2,0);ea(J|0,da(A|0,4,0,0)|0|0,4,0);ea(x>>0|0,da(R|0,4,0,0)|0|0,1,0);ea(R|0,0|0,4,0);ea(K|0,da(S|0,4,0,0)|0|0,4,0);if(!(da(B|0,4,0,0)|0))q=0;else q=(da(T|0,4,0,0)|0)&255;ea(L>>0|0,q|0,1,0);ea(v|0,0|0,2,0);r=+(+da(D|0,8,1,0));ea(k|0,+r,8,1);q=da(k|0,4,0,0)|0|0;d=da(k+4|0,4,0,0)|0|0;do if(!(r<=1.0))if(!(r<=2.0e9)){q=lw(q|0,d|0,52)|0;q=iw(q|0,C|0,64514,0)|0;q=(q<<16>>16)*10&65535;break}else{q=es(~~r>>>0,+N(r)>=1.0?(r>0.0?~~+$(+M(r/4294967296.0),4294967295.0)>>>0:~~+Z((r-+(~~r>>>0))/4294967296.0)>>>0):0)|0;break}else q=0;while(0);ea(O|0,q|0,2,0);o=E;ea(P|0,es(da(o|0,4,0,0)|0|0,da(o+4|0,4,0,0)|0|0)|0|0,2,0);Ev(a,ca)|0;if(da(x>>0|0,1,0,0)|0){Vc(da(K|0,4,0,0)|0|0);ea(x>>0|0,0|0,1,0)}}q=u+1|0;if((q|0)>=4){d=0;break}else t=p}if((ia|0)==65){ea(ga|0,da(X|0,4,0,0)|0|0,4,0);sh(aa,34064,ga);d=1}if(da(R|0,4,0,0)|0)Vc(da(S|0,4,0,0)|0|0);lg(ha,W)}while(0);i=ja;return d|0}function Gu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=i;i=i+64|0;if((i|0)>=(j|0))ba();k=Y;h=Y+56|0;g=Y+52|0;ea(g|0,-1|0,2,0);V=da(a+12|0,4,0,0)|0|0;W=da(a|0,4,0,0)|0|0;D=da(W+4|0,4,0,0)|0|0;E=da(V+16>>0|0,1,0,1)|0|0;Q=D+(E*72|0)+8|0;f=D+(E*72|0)+24|0;F=da(f|0,4,0,0)|0|0;R=da(a+4|0,4,0,0)|0|0;S=D+(E*72|0)+76|0;d=da(S|0,4,0,0)|0|0;do if(!d){if((da(F+44>>0|0,1,0,0)|0)&32){k=da(F+8|0,4,0,0)|0|0;break}d=k+0|0;e=d+52|0;do{ea(d|0,0|0,4,0);d=d+4|0}while((d|0)<(e|0));ea(k+46|0,1|0,2,0);ea(k+48|0,1|0,2,0);ea(k+4|0,g|0,4,0);ea(k+8|0,h|0,4,0);ea(k+50>>0|0,5|0,1,0);ea(k+12|0,F|0,4,0);ea(k+44|0,da(F+42|0,2,0,0)|0|0|0,2,0);ea(h|0,da(F+28|0,2,0,0)|0|0|0,2,0);ea(h+2|0,0|0,2,0);if(!((da(D+(E*72|0)+45>>0|0,1,0,0)|0)&1))ea(k+20|0,da((da(f|0,4,0,0)|0|0)+8|0,4,0,0)|0|0,4,0)}else k=d;while(0);h=da(F+28|0,2,0,0)|0|0;if(h<<16>>16<11)y=0;else{y=h<<16>>16;y=((es(y,((y|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((da(a+16|0,4,0,0)|0|0)==0?((da(W+34|0,2,0,0)|0)&128)==0:0)?((da((da(da(W|0,4,0,0)|0|0,4,0,0)|0|0)+24|0,4,0,0)|0)&1048576|0)!=0:0)?(da(S|0,4,0,0)|0|0)==0:0)?(l=da(D+(E*72|0)+45>>0|0,1,0,0)|0|0,(l&5)==0):0)?(B=F+44|0,(l&10|(da(B>>0|0,1,0,0)|0)&32)<<24>>24==0):0)?(z=da(R+20|0,4,0,0)|0|0,P=da(R+12|0,4,0,0)|0|0,A=z+(P*48|0)|0,(P|0)>0):0){s=V+8|0;t=V+24|0;u=V+42|0;v=V+28|0;w=V+40|0;x=V+48|0;o=(y&65535)+(h&65535)|0;e=o+4&65535;m=V+18|0;n=F+12|0;o=o+28&65535;p=V+22|0;q=V+20|0;r=V+36|0;f=z;do{l=f+32|0;h=l;g=s;if((((da(g|0,4,0,0)|0)&(da(h|0,4,0,0)|0)|0)==0?((da(g+4|0,4,0,0)|0)&(da(h+4|0,4,0,0)|0)|0)==0:0)?(Lu(f,Q,0,0)|0)!=0:0){ea(t|0,1|0,2,0);ea(u|0,0|0,2,0);ea(v|0,0|0,4,0);ea(w|0,1|0,2,0);ea(da(x|0,4,0,0)|0|0,f|0,4,0);ea(m|0,e|0,2,0);if((da(n|0,4,0,0)|0|0)==0?((da(B>>0|0,1,0,0)|0)&2)==0:0)ea(m|0,o|0,2,0);ea(p|0,43|0,2,0);ea(q|0,Fv(y,43)|0|0,2,0);ea(r|0,16384|0,4,0);O=l;d=da(O+4|0,4,0,0)|0|c;P=V;ea(P|0,da(O|0,4,0,0)|0|b|0,4,0);ea(P+4|0,d|0,4,0);d=Ev(a,V)|0}else d=0;f=f+48|0}while((d|0)==0&f>>>0<A>>>0)}else d=0;P=V+36|0;a:do if((d|0)==0&(k|0)!=0){G=V+24|0;H=V+42|0;I=V+40|0;J=V+17|0;K=V+18|0;L=V+22|0;M=V+28|0;N=D+(E*72|0)+48|0;O=V+20|0;u=D+(E*72|0)+64|0;A=F+42|0;D=F+44|0;p=W+34|0;q=R+12|0;s=R+20|0;t=1;while(1){l=da(k+36|0,4,0,0)|0|0;d=da(N|0,4,0,0)|0|0;b:do if(l){h=da(q|0,4,0,0)|0|0;if((h|0)>0){f=0;e=da(s|0,4,0,0)|0|0;while(1){g=da(e|0,4,0,0)|0|0;if(Gv(g,l,d)|0){if(!((da(g+4|0,4,0,0)|0)&1)){X=32;break b}if((da(g+36|0,2,0,0)|0|0)==(d|0)){X=32;break b}}f=f+1|0;if((f|0)>=(h|0)){d=0;break}else e=e+48|0}}else d=0}else X=32;while(0);if((X|0)==32){X=0;E=da(da(k+8|0,4,0,0)|0|0,2,0,0)|0|0;ea(G|0,0|0,2,0);ea(H|0,0|0,2,0);ea(I|0,0|0,2,0);ea(J>>0|0,0|0,1,0);ea(K|0,0|0,2,0);F=V;ea(F|0,b|0,4,0);ea(F+4|0,c|0,4,0);ea(L|0,E|0,2,0);ea(M|0,k|0,4,0);F=k+51|0;l=da(F>>0|0,1,0,0)|0|0;c:do if(((l&4)==0?(T=da((da(a|0,4,0,0)|0|0)+8|0,4,0,0)|0|0,(T|0)!=0):0)?(U=da(T|0,4,0,0)|0|0,(U|0)>0):0){B=da(T+4|0,4,0,0)|0|0;o=k+46|0;n=k+4|0;m=0;while(1){r=da(B+(m*20|0)|0,4,0,0)|0|0;d:do if(!r)r=0;else while(1){y=da(r+4|0,4,0,0)|0|0;if(!(y&4096))break d;if(!(y&262144))r=r+12|0;else r=da((da(r+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;r=da(r|0,4,0,0)|0|0;if(!r){r=0;break}}while(0);if((da(r>>0|0,1,0,0)|0|0)!=-102){B=0;break c}if((da(r+28|0,4,0,0)|0|0)==(d|0)){x=da(r+32|0,2,0,0)|0|0;if(x<<16>>16<0){B=1;break c}y=da(o|0,2,0,0)|0|0;if(y<<16>>16){w=da(n|0,4,0,0)|0|0;y=y&65535;z=0;do{if(x<<16>>16==(da(w+(z<<1)|0,2,0,0)|0|0)){B=1;break c}z=z+1|0}while((z|0)<(y|0))}}m=m+1|0;if((m|0)>=(U|0)){B=0;break}}}else B=0;while(0);do if((da(k+40|0,4,0,0)|0|0)<1){ea(P|0,256|0,4,0);ea(J>>0|0,((B|0)!=0?t&255:0)|0,1,0);ea(O|0,(E&65535)+16|0,2,0);Hv(R,V,E);d=Ev(a,V)|0;ea(L|0,E|0,2,0);if(d)break a}else{if(!(l&32)){v=u;w=da(v|0,4,0,0)|0|0;v=da(v+4|0,4,0,0)|0|0;z=k+4|0;r=0;l=0;x=da(k+48|0,2,0,1)|0|0;e:while(1){y=x;while(1){x=y+-1|0;if((y|0)<=0)break e;y=da((da(z|0,4,0,0)|0|0)+(x<<1)|0,2,0,0)|0|0;if((y&65535)<63)break;else y=x}o=hw(1,0,y<<16>>16|0)|0;r=o|r;l=C|l}o=w&~r;l=v&~l;x=o;w=l;l=(o|0)==0&(l|0)==0?576:512}else{x=0;w=0;l=576}ea(P|0,l|0,4,0);l=(B|0)!=0;if(!l?((da(D>>0|0,1,0,0)|0)&32)==0:0){if(!((x|0)==0&(w|0)==0))break;if((da(F>>0|0,1,0,0)|0)&4)break;if((da(k+44|0,2,0,0)|0|0)>=(da(A|0,2,0,0)|0|0))break;if(!(((da(p|0,2,0,0)|0)&4)==0&(da(2190*4|0,4,0,0)|0|0)!=0))break;if((da((da(da(W|0,4,0,0)|0|0,4,0,0)|0|0)+60|0,2,0,0)|0)&64)break}ea(J>>0|0,(l?t&255:0)|0,1,0);h=E<<16>>16;l=h+1+(((da(k+44|0,2,0,0)|0|0)*15|0)/(da(A|0,2,0,0)|0|0)|0)&65535;if(!((x|0)==0&(w|0)==0))l=Fv(l,h+16&65535)|0;ea(O|0,l|0,2,0);Hv(R,V,E);d=Ev(a,V)|0;ea(L|0,E|0,2,0);if(d)break a}while(0);d=Iv(a,Q,k,0)|0;if(da(S|0,4,0,0)|0)break a}k=da(k+20|0,4,0,0)|0|0;if(!((d|0)==0&(k|0)!=0))break;else t=t+1|0}}while(0);i=Y;return d|0}function Hu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,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;W=i;i=i+608|0;if((i|0)>=(j|0))ba();U=W+168|0;S=W+576|0;T=W+112|0;Q=W+56|0;R=W;d=da(a|0,4,0,0)|0|0;N=da(a+4|0,4,0,0)|0|0;h=da(N+20|0,4,0,0)|0|0;g=da(N+12|0,4,0,0)|0|0;P=h+(g*48|0)|0;M=da(a+12|0,4,0,0)|0|0;e=T+0|0;f=e+56|0;do{ea(e|0,0|0,4,0);e=e+4|0}while((e|0)<(f|0));f=da(d+4|0,4,0,0)|0|0;e=da(M+16>>0|0,1,0,1)|0|0;L=da(f+(e*72|0)+48|0,4,0,0)|0|0;a:do if((g|0)>0){v=M+8|0;w=S+8|0;x=S+16|0;y=M+40|0;z=M+48|0;A=M+36|0;B=M+18|0;C=M+17|0;D=M+24|0;E=M+20|0;F=M+22|0;G=U+4|0;H=U+8|0;I=U+12|0;J=U+20|0;K=S+4|0;r=f+(e*72|0)+24|0;s=R+8|0;t=T+8|0;u=Q+8|0;while(1){b:do if(((da(h+18|0,2,0,0)|0)&256)!=0?(O=da(h+12|0,4,0,0)|0|0,g=O+408|0,f=v,!(((da(f|0,4,0,0)|0)&(da(g|0,4,0,0)|0)|0)==0?((da(f+4|0,4,0,0)|0)&(da(g+4|0,4,0,0)|0)|0)==0:0)):0){g=O+20|0;q=(da(g|0,4,0,0)|0|0)+((da(O+12|0,4,0,0)|0|0)*48|0)|0;ea(S+0|0,da(a+0|0,4,0,0)|0|0,4,0);ea(S+4|0,da(a+4|0,4,0,0)|0|0,4,0);ea(S+8|0,da(a+8|0,4,0,0)|0|0,4,0);ea(S+12|0,da(a+12|0,4,0,0)|0|0,4,0);ea(w|0,0|0,4,0);ea(x|0,Q|0,4,0);g=da(g|0,4,0,0)|0|0;c:do if(g>>>0<q>>>0){e=1;d=0;d:while(1){if(!((da(g+18|0,2,0,0)|0)&512))if((da(g+8|0,4,0,0)|0|0)==(L|0)){ea(U|0,da(N|0,4,0,0)|0|0,4,0);ea(G|0,N|0,4,0);ea(H>>0|0,72|0,1,0);ea(I|0,1|0,4,0);ea(J|0,g|0,4,0);f=U;V=10}else f=e;else{f=da(g+12|0,4,0,0)|0|0;V=10}do if((V|0)==10){V=0;ea(K|0,f|0,4,0);ea(Q|0,0|0,2,0);if(!((da((da(r|0,4,0,0)|0|0)+44>>0|0,1,0,0)|0)&16))d=Gu(S,b,c)|0;else d=Fu(S,b,c)|0;if(!d)d=Hu(S,b,c)|0;f=da(Q|0,2,0,0)|0|0;if(!(f<<16>>16))break d;if(e){ea(T|0,f|0,2,0);jw(t|0,u|0,(f&65535)<<4|0)|0;f=0;break}o=da(T|0,2,0,0)|0|0;ea(R|0,o|0,2,0);p=o&65535;jw(s|0,t|0,p<<4|0)|0;ea(T|0,0|0,2,0);if(!(o<<16>>16))f=0;else{o=0;do{if(!(f<<16>>16))f=0;else{k=R+(o<<4)+8|0;e=da(k|0,4,0,0)|0|0;k=da(k+4|0,4,0,0)|0|0;l=da(R+(o<<4)+16|0,2,0,0)|0|0;m=da(R+(o<<4)+18|0,2,0,0)|0|0;n=0;do{X=Q+(n<<4)+8|0;Y=da(X|0,4,0,0)|0|e;X=da(X+4|0,4,0,0)|0|k;f=Fv(l,da(Q+(n<<4)+16|0,2,0,0)|0|0)|0;Jv(T,Y,X,f,Fv(m,da(Q+(n<<4)+18|0,2,0,0)|0|0)|0);n=n+1|0;f=da(Q|0,2,0,0)|0|0}while((n|0)<(f&65535|0))}o=o+1|0}while((o|0)<(p|0));f=0}}while(0);g=g+48|0;if(g>>>0>=q>>>0)break c;else e=f}ea(T|0,0|0,2,0)}else d=0;while(0);ea(y|0,1|0,2,0);ea(da(z|0,4,0,0)|0|0,h|0,4,0);ea(A|0,8192|0,4,0);ea(B|0,0|0,2,0);ea(C>>0|0,0|0,1,0);ea(D+0|0,0|0,4,0);ea(D+4|0,0|0,4,0);ea(D+8|0,0|0,4,0);if(d)break a;g=da(T|0,2,0,1)|0|0;f=0;while(1){if((f|0)>=(g|0))break b;ea(E|0,(da(T+(f<<4)+16|0,2,0,1)|0|0)+1|0,2,0);ea(F|0,da(T+(f<<4)+18|0,2,0,0)|0|0|0,2,0);n=T+(f<<4)+8|0;d=da(n+4|0,4,0,0)|0|0;o=M;ea(o|0,da(n|0,4,0,0)|0|0,4,0);ea(o+4|0,d|0,4,0);d=Ev(a,M)|0;if(!d)f=f+1|0;else break a}}while(0);h=h+48|0;if(h>>>0>=P>>>0){d=0;break}}}else d=0;while(0);i=W;return d|0}function Iu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=b+48|0;d=da(c|0,4,0,0)|0|0;e=b+56|0;if((d|0)!=(e|0))lg(a,d);Kv(a,b);ea(c|0,e|0,4,0);ea(b+40|0,0|0,2,0);ea(b+44|0,3|0,2,0);ea(b+36|0,0|0,4,0);return}function Ju(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,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,aa=0,ca=0,fa=0,ga=0,ha=0,ia=0,ja=0;ja=i;i=i+32|0;if((i|0)>=(j|0))ba();Y=ja+24|0;V=ja+16|0;aa=ja+8|0;ia=ja;X=da(a|0,4,0,0)|0|0;fa=da(X|0,4,0,0)|0|0;k=da(a+41>>0|0,1,0,0)|0|0;ga=k&255;if((k&255)<2)R=1;else R=k<<24>>24==2?5:10;ha=a+8|0;f=da(ha|0,4,0,0)|0|0;Z=b<<16>>16==0;if((f|0)==0|Z)Q=0;else Q=da(f|0,4,0,0)|0|0;g=Q<<1;ca=g+(_((ga<<3)+64|0,R)|0)|0;ca=lh(fa,ca,((ca|0)<0)<<31>>31)|0;do if(ca){f=ca+(R<<5)|0;ea(f+0|0,0|0,4,0);ea(f+4|0,0|0,4,0);ea(f+8|0,0|0,4,0);ea(f+12|0,0|0,4,0);ea(f+16|0,0|0,4,0);ea(f+20|0,0|0,4,0);ea(f+24|0,0|0,4,0);ea(f+28|0,0|0,4,0);c=R<<1;h=_(R,-2)|0;h=ca+((_((((h|0)>-1?h:1073741823)+(R<<1)<<2)+4|0,ga)|0)+(R<<6))|0;e=c;d=ca;c=ca+(c<<5)|0;while(1){ea(d+24|0,c|0,4,0);e=e+-1|0;if((e|0)<=0)break;else{d=d+32|0;c=c+(ga<<2)|0}}e=(Q|0)!=0;if(e)ew(h|0,0,g|0)|0;else h=0;P=da(X+424|0,4,0,0)|0|0;ea(ca+(R<<5)+16|0,(P>>>0<48?P&65535:48)|0,2,0);if(e)ea(ca+(R<<5)+22>>0|0,(k<<24>>24!=0?-1:Q&255)|0,1,0);P=k<<24>>24==0;if(!P){L=a+16|0;M=a+34|0;N=b<<16>>16<11;O=(b&65535)+16|0;I=b<<16>>16;J=((I|0)<0)<<31>>31;K=R>>>0>1;c=ca;H=0;g=0;k=0;b=0;d=1;while(1){if((d|0)>0){C=H&65535;D=H<<2;E=c+18|0;F=c+16|0;G=0;e=0;B=f;while(1){l=da(L|0,4,0,0)|0|0;if(l){w=B+22|0;x=B+16|0;y=B+20|0;z=B+24|0;A=B+8|0;v=e;while(1){o=da(w>>0|0,1,0,0)|0|0;e=V;ea(e|0,0|0,4,0);ea(e+4|0,0|0,4,0);e=l;n=B;m=da(n|0,4,0,0)|0|0;n=da(n+4|0,4,0,0)|0|0;a:do if((((da(e|0,4,0,0)|0)&~m|0)==0?((da(e+4|0,4,0,0)|0)&~n|0)==0:0)?(S=l+8|0,U=S,T=da(U|0,4,0,0)|0|0,U=da(U+4|0,4,0,0)|0|0,(T&m|0)==0&(U&n|0)==0):0){s=da(x|0,2,0,1)|0|0;t=Fv(da(l+18|0,2,0,0)|0|0,s+(da(l+20|0,2,0,1)|0|0)&65535)|0;t=Fv(t,da(y|0,2,0,0)|0|0)|0;s=(da(l+22|0,2,0,1)|0|0)+s|0;u=s&65535;r=T|m;q=U|n;if(o<<24>>24<0)o=Lv(a,da(ha|0,4,0,0)|0|0,B,da(M|0,2,0,0)|0|0,C,l,V)|0;else{n=A;m=da(n+4|0,4,0,0)|0|0;e=V;ea(e|0,da(n|0,4,0,0)|0|0,4,0);ea(e+4|0,m|0,4,0)}n=o<<24>>24;if(o<<24>>24>-1&(Q|0)>(n|0)){p=h+(n<<1)|0;m=da(p|0,2,0,0)|0|0;if(!(m<<16>>16)){n=((Q-n|0)*100|0)/(Q|0)|0;n=(es(n,((n|0)<0)<<31>>31)|0)&65535;if(N)e=0;else e=((es(I,J)|0)&65535)+65503&65535;n=O+(((n<<16)+-4325376|0)>>>16)+e|0;if((da(M|0,2,0,0)|0)&1024)n=(n&65535)+16|0;m=n&65535;ea(p|0,m|0,2,0)}p=Fv(t,m)|0}else p=t;b:do if((v|0)>0){e=0;m=c;while(1){n=m;if(((da(n|0,4,0,0)|0|0)==(r|0)?(da(n+4|0,4,0,0)|0|0)==(q|0):0)?((da(m+22>>0|0,1,0,0)|0)^o)<<24>>24>-1:0)break;e=e+1|0;if((e|0)>=(v|0)){W=35;break b}else m=m+32|0}e=da(m+18|0,2,0,0)|0|0;if(e<<16>>16<p<<16>>16){e=v;break a}if(e<<16>>16!=p<<16>>16){e=v;break}if((da(m+16|0,2,0,0)|0|0)>(s<<16>>16|0))e=v;else{e=v;break a}}else W=35;while(0);if((W|0)==35){W=0;m=(v|0)<(R|0);if(!m){if(p<<16>>16>g<<16>>16){e=v;break}if(!(p<<16>>16!=g<<16>>16?1:t<<16>>16<b<<16>>16)){e=v;break}}e=(m&1)+v|0;m=c+((m?v:k)<<5)|0}q=B;s=S;r=da(s+4|0,4,0,0)|0|(da(q+4|0,4,0,0)|0);n=m;ea(n|0,da(s|0,4,0,0)|0|(da(q|0,4,0,0)|0)|0,4,0);ea(n+4|0,r|0,4,0);r=V;n=da(r+4|0,4,0,0)|0|0;q=m+8|0;ea(q|0,da(r|0,4,0,0)|0|0,4,0);ea(q+4|0,n|0,4,0);ea(m+16|0,u|0,2,0);ea(m+18|0,p|0,2,0);ea(m+20|0,t|0,2,0);ea(m+22>>0|0,o|0,1,0);m=m+24|0;jw(da(m|0,4,0,0)|0|0,da(z|0,4,0,0)|0|0,D|0)|0;ea((da(m|0,4,0,0)|0|0)+(H<<2)|0,l|0,4,0);if((e|0)<(R|0))break;g=da(E|0,2,0,0)|0|0;b=da(F|0,2,0,0)|0|0;if(K){o=c;p=1;n=g;k=0;m=b}else{k=0;break}while(1){g=da(o+50|0,2,0,0)|0|0;do if(g<<16>>16<=n<<16>>16){if(g<<16>>16!=n<<16>>16){g=n;b=m;break}b=da(o+52|0,2,0,0)|0|0;if(b<<16>>16>m<<16>>16)W=48;else{g=n;b=m}}else{b=da(o+52|0,2,0,0)|0|0;W=48}while(0);o=o+32|0;if((W|0)==48){W=0;k=p}p=p+1|0;if((p|0)>=(R|0))break;else{n=g;m=b}}}else e=v;while(0);l=da(l+52|0,4,0,0)|0|0;if(!l)break;else v=e}}G=G+1|0;if((G|0)==(d|0)){d=e;break}else B=B+32|0}}else d=0;H=H+1|0;if((H|0)>=(ga|0))break;else{G=c;c=f;f=G}}if(!d){sh(X,34008,Y);lg(fa,ca);break}if((d|0)>1){e=1;f=c;do{if((da(f+18|0,2,0,0)|0|0)>(da(c+(e<<5)+18|0,2,0,0)|0|0))f=c+(e<<5)|0;e=e+1|0}while((e|0)!=(d|0))}else f=c;if(!P){d=a+4|0;e=da(f+24|0,4,0,0)|0|0;c=0;do{W=da(e+(c<<2)|0,4,0,0)|0|0;ea(a+(c*80|0)+800|0,W|0,4,0);W=da(W+16>>0|0,1,0,0)|0|0;ea(a+(c*80|0)+780>>0|0,W|0,1,0);ea(a+(c*80|0)+740|0,da((da(d|0,4,0,0)|0|0)+((W&255)*72|0)+48|0,4,0,0)|0|0,4,0);c=c+1|0}while((c|0)<(ga|0))}}d=a+34|0;if((((da(d|0,2,0,0)|0)&1536)==1024?($=a+40|0,!((da($>>0|0,1,0,0)|0|0)!=0|Z)):0)?(W=a+12|0,V=ga+-1|0,V=(Lv(a,da(W|0,4,0,0)|0|0,f,512,V&65535,da((da(f+24|0,4,0,0)|0|0)+(V<<2)|0,4,0,0)|0|0,aa)|0)<<24>>24,(V|0)==(da(da(W|0,4,0,0)|0|0,4,0,0)|0|0)):0)ea($>>0|0,2|0,1,0);e=da(ha|0,4,0,0)|0|0;if(e){c=da(d|0,2,0,0)|0|0;d=da(f+22>>0|0,1,0,0)|0|0;if(c&512){if((d<<24>>24|0)==(da(e|0,4,0,0)|0|0))ea(a+40>>0|0,2|0,1,0)}else{ea(a+36>>0|0,(d<<24>>24<0?0:d)|0,1,0);U=f+8|0;W=da(U+4|0,4,0,0)|0|0;V=a+24|0;ea(V|0,da(U|0,4,0,0)|0|0,4,0);ea(V+4|0,W|0,4,0)}if(((c&2048)!=0?(da(a+36>>0|0,1,0,0)|0|0)==(da(e|0,4,0,0)|0|0):0)?(W=ia,ea(W|0,0|0,4,0),ea(W+4|0,0|0,4,0),W=ga+-1|0,W=(Lv(a,e,f,0,W&65535,da((da(f+24|0,4,0,0)|0|0)+(W<<2)|0,4,0,0)|0|0,ia)|0)<<24>>24,(W|0)==(da(da(ha|0,4,0,0)|0|0,4,0,0)|0|0)):0){ea(a+37>>0|0,1|0,1,0);U=ia;W=da(U+4|0,4,0,0)|0|0;V=a+24|0;ea(V|0,da(U|0,4,0,0)|0|0,4,0);ea(V+4|0,W|0,4,0)}}ea(a+32|0,da(f+16|0,2,0,0)|0|0|0,2,0);lg(fa,ca)}while(0);i=ja;return}function Ku(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if((b|0)!=0?(f=da(b|0,4,0,0)|0|0,(f|0)>0):0){d=da(b+4|0,4,0,0)|0|0;c=0;b=0;e=0;do{g=zv(a,da(d+(e*20|0)|0,4,0,0)|0|0)|0;c=g|c;b=C|b;e=e+1|0}while((e|0)<(f|0))}else{b=0;c=0}C=b;return c|0}function Lu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;do if((((da(a+8|0,4,0,0)|0|0)==(da(b+40|0,4,0,0)|0|0)?((da(a+18|0,2,0,0)|0)&2)!=0:0)?(e=a+32|0,((da(e|0,4,0,0)|0)&c|0)==0?((da(e+4|0,4,0,0)|0)&d|0)==0:0):0)?(f=da(a+12|0,4,0,0)|0|0,(f|0)>=0):0){c=da((da((da(b+16|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(f*24|0)+21>>0|0,1,0,0)|0|0;d=(mv(da(a|0,4,0,0)|0|0)|0)<<24>>24;if((d|0)==66){d=c<<24>>24==66&1;break}else if((d|0)==65){d=1;break}else{d=c<<24>>24>66&1;break}}else d=0;while(0);return d|0}function Mu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=b+44|0;if((da(g|0,2,0,1)|0|0|0)<(c|0)){d=c+7&-8;e=lh(a,d<<2,0)|0;if(!e)c=7;else{f=b+48|0;jw(e|0,da(f|0,4,0,0)|0|0,(da(g|0,2,0,1)|0|0)<<2|0)|0;c=da(f|0,4,0,0)|0|0;if((c|0)!=(b+56|0))lg(a,c);ea(f|0,e|0,4,0);ea(g|0,d|0,2,0);c=0}}else c=0;return c|0}function Nu(a,b,c){a=a|0;b=b|0;c=c|0;do if(!((da(b+4|0,4,0,0)|0)&256)){if((c|0)!=0?((da(c+4|0,4,0,0)|0)&256|0)!=0:0){b=bu(a,c)|0;break}b=bu(a,b)|0;if(!b)b=bu(a,c)|0}else b=bu(a,b)|0;while(0);return b|0}function Ou(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+144|0;if((i|0)>=(j|0))ba();p=u;t=u+8|0;k=u+36|0;if(((da(a+450>>0|0,1,0,0)|0|0)==2?(m=da(c+44>>0|0,1,0,1)|0|0,s=da(a+8|0,4,0,0)|0|0,h=da(a|0,4,0,0)|0|0,r=da(a+464|0,4,0,0)|0|0,o=da(c+64|0,4,0,0)|0|0,q=o+36|0,n=da(q|0,4,0,0)|0|0,(n&8192|0)==0):0)?(g=f&65535,(g&64|0)==0):0){f=n&48;do if(!f){if((n&1024|0)==0?(da(o+24|0,2,0,0)|0|0)!=0:0){l=1;break}l=(g&3|0)!=0}else l=1;while(0);ea(t+4|0,k|0,4,0);ea(t+8|0,k|0,4,0);ea(t+12|0,0|0,4,0);ea(t+16|0,100|0,4,0);ea(t+20|0,1e9|0,4,0);ea(t+24>>0|0,1|0,1,0);ea(t+25>>0|0,0|0,1,0);ea(t|0,h|0,4,0);a=l?33576:33584;c=a;while(1)if(!(da(c>>0|0,1,0,0)|0))break;else c=c+1|0;Rk(t,a,c-a&1073741823);if(!(da(b+(m*72|0)+28|0,4,0,0)|0)){ea(p|0,da(b+(m*72|0)+16|0,4,0,0)|0|0,4,0);Dn(t,0,33608,p)}else{ea(p|0,da(b+(m*72|0)+46>>0|0,1,0,1)|0|0,4,0);Dn(t,0,33592,p)}a=da(b+(m*72|0)+20|0,4,0,0)|0|0;if(a){ea(p|0,a|0,4,0);Dn(t,0,33624,p)}do if(!(n&1280)){g=o+28|0;c=da(g|0,4,0,0)|0|0;f=b+(m*72|0)+24|0;if(((da((da(f|0,4,0,0)|0|0)+44>>0|0,1,0,0)|0)&32)!=0?((da(c+51>>0|0,1,0,0)|0)&3)==2:0)if(l)a=33632;else break;else if(!(n&131072))if(!(n&16384))a=(n&64|0)==0?33744:33720;else a=33688;else a=33648;Rk(t,33760,7);ea(p|0,da(c|0,4,0,0)|0|0,4,0);Dn(t,0,a,p);n=da(o+24|0,2,0,0)|0|0;l=da((da(f|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;k=da((da(g|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;c=n&65535;if(!(n<<16>>16)){if(!((da(q|0,4,0,0)|0)&48))break;Rk(t,33904,2);g=0}else{f=da(o+42|0,2,0,0)|0|0;Rk(t,33904,2);f=f&65535;g=0;do{a=da(k+(g<<1)|0,2,0,0)|0|0;if(a<<16>>16<0)a=20456;else a=da(l+((a<<16>>16)*24|0)|0,4,0,0)|0|0;if((g|0)<(f|0)){if(g)Rk(t,33920,5);ea(p|0,a|0,4,0);Dn(t,0,33928,p)}else Mv(t,g,a,33912);g=g+1|0}while((g|0)<(c|0));g=c>>>0>1?c:1}f=da(q|0,4,0,0)|0|0;if(!(f&32))a=g;else{f=da(k+(g<<1)|0,2,0,0)|0|0;if(f<<16>>16<0)f=20456;else f=da(l+((f<<16>>16)*24|0)|0,4,0,0)|0|0;Mv(t,g,f,33936);f=da(q|0,4,0,0)|0|0;a=g+1|0}if(f&16){g=da(k+(g<<1)|0,2,0,0)|0|0;if(g<<16>>16<0)g=20456;else g=da(l+((g<<16>>16)*24|0)|0,4,0,0)|0|0;Mv(t,a,g,33944)}Rk(t,33952,1)}else{if((n&256|0)==0|(n&15|0)==0){if(!(n&1024))break;n=da(o+32|0,4,0,0)|0|0;ea(p|0,da(o+24|0,4,0,0)|0|0,4,0);ea(p+4|0,n|0,4,0);Dn(t,0,33872,p);break}if(!(n&5))if((f|0)==48)f=33784;else f=(n&32|0)==0?33824:33808;else f=33768;Rk(t,33840,27);g=f;while(1)if(!(da(g>>0|0,1,0,0)|0))break;else g=g+1|0;Rk(t,f,g-f&1073741823)}while(0);n=sg(t)|0;wh(s,vh(s,157,r,d,e)|0,n,-1)}i=u;return}function Pu(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;j=da(b|0,4,0,0)|0|0;l=da(a+8|0,4,0,0)|0|0;g=da(j>>0|0,1,0,0)|0|0;do if(g<<24>>24==76)vh(l,28,0,f,0)|0;else if(g<<24>>24==79)f=hs(a,da(j+16|0,4,0,0)|0|0,f)|0;else{h=da(c+64|0,4,0,0)|0|0;g=h+36|0;if((((da(g|0,4,0,0)|0)&1024|0)==0?(i=da(h+28|0,4,0,0)|0|0,(i|0)!=0):0)?(da((da(i+28|0,4,0,0)|0|0)+d>>0|0,1,0,0)|0|0)!=0:0)e=(e|0)==0&1;k=lv(a,j,4,0)|0;if((k|0)==4)e=(e|0)==0&1;j=da(j+28|0,4,0,0)|0|0;d=(e|0)!=0;vh(l,d?105:108,j,0,0)|0;ea(g|0,da(g|0,4,0,0)|0|2048|0,4,0);i=c+56|0;g=da(i|0,4,0,0)|0|0;if(!g){ea(c+16|0,ws(l)|0|0,4,0);g=da(i|0,4,0,0)|0|0}h=g+1|0;ea(i|0,h|0,4,0);g=c+60|0;h=Vl(da(a|0,4,0,0)|0|0,da(g|0,4,0,0)|0|0,h*12|0,0)|0;ea(g|0,h|0,4,0);if(!h){ea(i|0,0|0,4,0);break}g=(da(i|0,4,0,0)|0|0)+-1|0;ea(h+(g*12|0)|0,j|0,4,0);if((k|0)==1)e=vh(l,103,j,f,0)|0;else e=vh(l,47,j,0,f)|0;ea(h+(g*12|0)+4|0,e|0,4,0);ea(h+(g*12|0)+8>>0|0,(d?6:7)|0,1,0);vh(l,76,f,0,0)|0}while(0);Qu(c,b);return f|0}function Qu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:do if(b){h=a+72|0;g=0;while(1){d=b+20|0;f=da(d|0,2,0,0)|0|0;if(f&4)break a;if((da(a|0,4,0,0)|0|0)!=0?((da((da(b|0,4,0,0)|0|0)+4|0,4,0,0)|0)&1|0)==0:0)break a;c=h;e=b+40|0;if(!(((da(e|0,4,0,0)|0)&(da(c|0,4,0,0)|0)|0)==0?((da(e+4|0,4,0,0)|0)&(da(c+4|0,4,0,0)|0)|0)==0:0))break a;c=f&65535;ea(d|0,c|((g|0)==0|(c&1024|0)==0?4:512)|0,2,0);c=da(b+4|0,4,0,0)|0|0;if((c|0)<0)break a;b=da((da(b+24|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;e=b+(c*48|0)+22|0;d=(da(e>>0|0,1,0,0)|0|0)+-1<<24>>24;ea(e>>0|0,d|0,1,0);if(d<<24>>24)break a;b=b+(c*48|0)|0;if(!b)break;else g=g+1|0}}while(0);return}function Ru(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;do if(!((da((da(a|0,4,0,0)|0|0)+60|0,2,0,0)|0)&2)){h=a+116|0;g=0;e=h;while(1){f=e+12|0;if(!(da(f|0,4,0,0)|0)){k=4;break}g=g+1|0;if((g|0)>=10){i=0;e=-1;j=2147483647;break}else e=e+20|0}if((k|0)==4){ea(e+8|0,da(a+100|0,4,0,0)|0|0,4,0);ea(e|0,b|0,4,0);ea(e+4|0,c|0,2,0);ea(f|0,d|0,4,0);ea(e+6>>0|0,0|0,1,0);d=a+104|0;b=da(d|0,4,0,0)|0|0;ea(d|0,b+1|0,4,0);ea(e+16|0,b|0,4,0);break}while(1){g=da(h+16|0,4,0,0)|0|0;f=(g|0)<(j|0);e=f?i:e;i=i+1|0;if((i|0)==10)break;else{j=f?g:j;h=h+20|0}}if((e|0)>-1){ea(a+(e*20|0)+124|0,da(a+100|0,4,0,0)|0|0,4,0);ea(a+(e*20|0)+116|0,b|0,4,0);ea(a+(e*20|0)+120|0,c|0,2,0);ea(a+(e*20|0)+128|0,d|0,4,0);ea(a+(e*20|0)+122>>0|0,0|0,1,0);d=a+104|0;b=da(d|0,4,0,0)|0|0;ea(d|0,b+1|0,4,0);ea(a+(e*20|0)+132|0,b|0,4,0)}}while(0);return}function Su(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;o=da(a+8|0,4,0,0)|0|0;j=da(b+64|0,4,0,0)|0|0;k=da(j+24|0,2,0,0)|0|0;m=da(j+42|0,2,0,0)|0|0;q=da(j+28|0,4,0,0)|0|0;i=a+72|0;n=da(i|0,4,0,0)|0|0;f=n+1|0;p=k&65535;l=p+d|0;ea(i|0,n+l|0,4,0);n=da(a|0,4,0,0)|0|0;q=jh(n,nt(o,q)|0)|0;n=(q|0)!=0;if(!n)ea((da(a|0,4,0,0)|0|0)+65>>0|0,1|0,1,0);if(m<<16>>16){d=da(b+8|0,4,0,0)|0|0;g=(c|0)!=0;vh(o,g?105:108,d,0,0)|0;h=vh(o,16,0,0,0)|0;i=m&65535;g=vh(o,g?62:65,d,0,f)|0;wh(o,g,i,-14);ea(b+20|0,g|0,4,0);g=da(o+32|0,4,0,0)|0|0;if(g>>>0>h>>>0)ea((da(o+4|0,4,0,0)|0|0)+(h*20|0)+8|0,g|0,4,0);ea((da(o+24|0,4,0,0)|0|0)+88|0,g+-1|0,4,0);h=0;do{vh(o,47,d,h,h+f|0)|0;h=h+1|0}while((h|0)<(i|0))}if((m&65535)<(k&65535)){j=j+48|0;i=b+12|0;k=(l|0)==1;l=m&65535;h=f;while(1){g=da((da(j|0,4,0,0)|0|0)+(l<<2)|0,4,0,0)|0|0;d=l+h|0;f=Pu(a,g,b,l,c,d)|0;do if((f|0)!=(d|0))if(k){Zr(a,h);break}else{vh(o,34,f,d,0)|0;f=h;break}else f=h;while(0);if(!((da(g+18|0,2,0,0)|0)&129)){d=da((da(g|0,4,0,0)|0|0)+16|0,4,0,0)|0|0;if(Tu(d)|0)vh(o,76,f+l|0,da(i|0,4,0,0)|0|0,0)|0;if(n){g=q+l|0;if((Au(d,da(g>>0|0,1,0,0)|0|0)|0)<<24>>24==65){ea(g>>0|0,65|0,1,0);h=65}else h=da(g>>0|0,1,0,0)|0|0;if(Uu(d,h)|0)ea(g>>0|0,65|0,1,0)}}l=l+1|0;if((l|0)>=(p|0))break;else h=f}}ea(e|0,q|0,4,0);return f|0}function Tu(a){a=a|0;var b=0;b=da(a>>0|0,1,0,0)|0|0;if((b+99&255)<2)do{a=da(a+12|0,4,0,0)|0|0;b=da(a>>0|0,1,0,0)|0|0}while((b+99&255)<2);if(b<<24>>24==-97)b=da(a+38>>0|0,1,0,0)|0|0;switch(b&255|0){case 134:case 133:case 97:case 132:{a=0;break}case 154:{if(!((da(a+4|0,4,0,0)|0)&1048576)){b=da(a+32|0,2,0,0)|0|0;if(b<<16>>16>-1)a=(da((da((da(a+44|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+((b<<16>>16)*24|0)+20>>0|0,1,0,0)|0|0)==0;else a=0}else a=1;a=a&1;break}default:a=1}return a|0}function Uu(a,b){a=a|0;b=b|0;var c=0;a:do if(b<<24>>24==65)a=1;else{c=da(a>>0|0,1,0,0)|0|0;if((c+99&255)<2)do{a=da(a+12|0,4,0,0)|0|0;c=da(a>>0|0,1,0,0)|0|0}while((c+99&255)<2);if(c<<24>>24==-97)c=da(a+38>>0|0,1,0,0)|0|0;switch(c&255|0){case 132:{a=(b+-67&255)<2&1;break a}case 133:{a=(b<<24>>24==69|b<<24>>24==67)&1;break a}case 154:{if((da(a+32|0,2,0,0)|0|0)<0)a=(b+-67&255)<2;else a=0;a=a&1;break a}case 134:{a=1;break a}case 97:{a=b<<24>>24==66&1;break a}default:{a=0;break a}}}while(0);return a|0}function Vu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=da(a+8|0,4,0,0)|0|0;do if(d){a:do if((c|0)>0)while(1){if((da(d>>0|0,1,0,0)|0|0)!=65){e=d;break a}c=c+-1|0;b=b+1|0;d=d+1|0;if((c|0)<=0){e=d;break}}else e=d;while(0);while(1){if((c|0)<=1){g=8;break}d=c+-1|0;if((da(e+d>>0|0,1,0,0)|0|0)==65)c=d;else break}if((g|0)==8)if((c|0)<=0)break;vh(f,48,b,c,0)|0;wh(f,-1,e,c);ct(a,b,c)}while(0);return}function Wu(a,b){a=a|0;b=b|0;var c=0,d=0;if(b){Nv(b+328|0);d=b+16|0;c=da(d|0,4,0,0)|0|0;if(c)do{ea(d|0,da(c+52|0,4,0,0)|0|0,4,0);Iu(a,c);lg(a,c);c=da(d|0,4,0,0)|0|0}while((c|0)!=0);lg(a,b)}return}function Xu(a,b){a=a|0;b=b|0;var c=0,d=0;c=i;i=i+32|0;if((i|0)>=(j|0))ba();d=c;ea(d+0|0,0|0,4,0);ea(d+4|0,0|0,4,0);ea(d+8|0,0|0,4,0);ea(d+12|0,0|0,4,0);ea(d+16|0,0|0,4,0);ea(d+20|0,0|0,4,0);ea(d|0,80|0,4,0);ea(d+4|0,81|0,4,0);ea(d+24|0,a|0,4,0);qs(d,b)|0;i=c;return}function Yu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();l=n+4|0;m=n;k=da(a+8|0,4,0,0)|0|0;ea(l|0,0|0,4,0);ea(m|0,0|0,4,0);if(!((k|0)==0|(b|0)==0)){f=da(b>>0|0,1,0,0)|0|0;e=f&255;a:do switch(e|0){case 79:case 78:case 83:case 80:case 81:case 82:{f=b+12|0;h=_t(a,da(f|0,4,0,0)|0|0,l)|0;g=b+16|0;k=_t(a,da(g|0,4,0,0)|0|0,m)|0;$t(a,da(f|0,4,0,0)|0|0,da(g|0,4,0,0)|0|0,e,h,k,c,d);break}case 71:{Yu(a,da(b+12|0,4,0,0)|0|0,c,d);k=a+100|0;ea(k|0,(da(k|0,4,0,0)|0|0)+1|0,4,0);Yu(a,da(b+16|0,4,0,0)|0|0,c,d);au(a);break}case 19:{ft(a,da(b+12|0,4,0,0)|0|0,c,d);break}case 72:{h=ws(k)|0;ft(a,da(b+12|0,4,0,0)|0|0,h,d^16);e=a+100|0;ea(e|0,(da(e|0,4,0,0)|0|0)+1|0,4,0);Yu(a,da(b+16|0,4,0,0)|0|0,c,d);e=da(k+24|0,4,0,0)|0|0;f=~h;if((h|0)<0?(g=da(e+112|0,4,0,0)|0|0,(g|0)!=0):0)ea(g+(f<<2)|0,da(k+32|0,4,0,0)|0|0,4,0);ea(e+88|0,(da(k+32|0,4,0,0)|0|0)+-1|0,4,0);au(a);break}case 148:case 73:{d=b+12|0;h=_t(a,da(d|0,4,0,0)|0|0,l)|0;g=b+16|0;k=_t(a,da(g|0,4,0,0)|0|0,m)|0;$t(a,da(d|0,4,0,0)|0|0,da(g|0,4,0,0)|0|0,f<<24>>24==73?79:78,h,k,c,128);break}case 77:case 76:{vh(k,e,_t(a,da(b+12|0,4,0,0)|0|0,l)|0,c,0)|0;break}case 74:{Zu(a,b,c,1,d);break}case 75:{g=ws(k)|0;eu(a,b,g,(d|0)!=0?c:g);vh(k,16,0,c,0)|0;f=da(k+24|0,4,0,0)|0|0;e=~g;if((g|0)<0?(h=da(f+112|0,4,0,0)|0|0,(h|0)!=0):0)ea(h+(e<<2)|0,da(k+32|0,4,0,0)|0|0,4,0);ea(f+88|0,(da(k+32|0,4,0,0)|0|0)+-1|0,4,0);break}default:{if(_u(b)|0){vh(k,16,0,c,0)|0;break a}if(!(lu(b)|0))vh(k,45,_t(a,b,l)|0,c,(d|0)!=0&1)|0}}while(0);Zr(a,da(l|0,4,0,0)|0|0);Zr(a,da(m|0,4,0,0)|0|0)}i=n;return}function Zu(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;n=i;i=i+208|0;if((i|0)>=(j|0))ba();h=n+152|0;f=n+104|0;g=n+56|0;k=n+8|0;l=n;ea(l|0,0|0,4,0);m=k+0|0;o=(da(b+12|0,4,0,0)|0|0)+0|0;p=m+48|0;do{ea(m|0,da(o|0,4,0,0)|0|0,4,0);m=m+4|0;o=o+4|0}while((m|0)<(p|0));ea(h>>0|0,72|0,1,0);ea(h+12|0,f|0,4,0);ea(h+16|0,g|0,4,0);ea(f>>0|0,83|0,1,0);ea(f+12|0,k|0,4,0);b=da((da(b+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;ea(f+16|0,da(b|0,4,0,0)|0|0,4,0);ea(g>>0|0,81|0,1,0);ea(g+12|0,k|0,4,0);ea(g+16|0,da(b+20|0,4,0,0)|0|0,4,0);b=_t(a,k,l)|0;ea(k+38>>0|0,da(k>>0|0,1,0,0)|0|0|0,1,0);ea(k>>0|0,-97|0,1,0);ea(k+28|0,b|0,4,0);b=k+4|0;ea(b|0,(da(b|0,4,0,0)|0)&-4097|0,4,0);if(!d)ft(a,h,c,e);else Yu(a,h,c,e);Zr(a,da(l|0,4,0,0)|0|0);i=n;return}function _u(a){a=a|0;var b=0,c=0;c=i;i=i+16|0;if((i|0)>=(j|0))ba();b=c;ea(b|0,0|0,4,0);if(((da(a+4|0,4,0,0)|0)&1|0)==0?(Ls(a,b)|0)!=0:0)a=(da(b|0,4,0,0)|0|0)!=0&1;else a=0;i=c;return a|0}function $u(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if(!((a|0)==0|(b|0)==0)){d=da(b|0,4,0,0)|0|0;if((d|0)>0){b=da(b+4|0,4,0,0)|0|0;c=0;while(1){if((vv(a,da(b+(c*20|0)+4|0,4,0,0)|0|0)|0)>-1){b=1;break a}c=c+1|0;if((c|0)>=(d|0)){b=0;break}}}else b=0}else b=1;while(0);return b|0}function av(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;j=da(b+20|0,4,0,0)|0|0;a:do if((j|0)>0){k=da(a+38|0,2,0,0)|0|0;l=k<<16>>16>0;m=a+4|0;i=a+36|0;f=(d|0)!=0;g=0;while(1){d=da(b+(g<<3)+40|0,4,0,0)|0|0;if(l){a=(d|0)==0;h=0;do{if(!((da(c+(h<<2)|0,4,0,0)|0|0)<=-1?!((h|0)==(da(i|0,2,0,0)|0|0)&f):0))n=7;do if((n|0)==7){n=0;e=da(m|0,4,0,0)|0|0;if(a)if(!((da(e+(h*24|0)+23>>0|0,1,0,0)|0)&1))break;else{a=1;break a}else if(!(cd(da(e+(h*24|0)|0,4,0,0)|0|0,d)|0)){a=1;break a}else break}while(0);h=h+1|0}while((h|0)<(k<<16>>16|0))}g=g+1|0;if((g|0)>=(j|0)){a=0;break}}}else a=0;while(0);return a|0}function bv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=i;i=i+48|0;if((i|0)>=(j|0))ba();k=t;o=t+8|0;s=da(a+408|0,4,0,0)|0|0;s=(s|0)==0?a:s;h=s+528|0;e=da(h|0,4,0,0)|0|0;a:do if(!e)g=5;else while(1){if((da(e|0,4,0,0)|0|0)==(b|0)?(da(e+12|0,4,0,0)|0|0)==(d|0):0)break a;e=da(e+4|0,4,0,0)|0|0;if(!e){g=5;break}}while(0);do if((g|0)==5){q=da(a|0,4,0,0)|0|0;e=lh(q,24,0)|0;if(e){g=e+0|0;f=g+24|0;do{ea(g>>0|0,0|0,1,0);g=g+1|0}while((g|0)<(f|0));ea(e+4|0,da(h|0,4,0,0)|0|0,4,0);ea(h|0,e|0,4,0);p=lh(q,28,0)|0;if(!p){ea(e+8|0,0|0,4,0);e=0;break}g=p+0|0;f=g+24|0;do{ea(g>>0|0,0|0,1,0);g=g+1|0}while((g|0)<(f|0));ea(e+8|0,p|0,4,0);l=(da(s+8|0,4,0,0)|0|0)+192|0;ea(p+24|0,da(l|0,4,0,0)|0|0,4,0);ea(l|0,p|0,4,0);ea(e|0,b|0,4,0);ea(e+12|0,d|0,4,0);l=e+16|0;ea(l|0,-1|0,4,0);m=e+20|0;ea(m|0,-1|0,4,0);n=lh(q,536,0)|0;if(n){ew(n|0,0,536)|0;ea(o+0|0,0|0,4,0);ea(o+4|0,0|0,4,0);ea(o+8|0,0|0,4,0);ea(o+12|0,0|0,4,0);ea(o+16|0,0|0,4,0);ea(o+20|0,0|0,4,0);ea(o+24|0,0|0,4,0);ea(o+28|0,0|0,4,0);ea(o|0,n|0,4,0);ea(n|0,q|0,4,0);ea(n+412|0,c|0,4,0);ea(n+408|0,s|0,4,0);ea(n+492|0,da(b|0,4,0,0)|0|0,4,0);ea(n+436>>0|0,da(b+8>>0|0,1,0,0)|0|0|0,1,0);ea(n+424|0,da(a+424|0,4,0,0)|0|0,4,0);c=Nq(n)|0;if(c){ea(k|0,da(b|0,4,0,0)|0|0,4,0);wh(c,-1,th(q,34152,k)|0,-1);g=da(b+12|0,4,0,0)|0|0;if(!g)h=0;else{f=Lr(q,g,0,0)|0;if((ks(o,f)|0)==0?(da(q+65>>0|0,1,0,0)|0|0)==0:0){g=ws(c)|0;ft(n,f,g,16)}else g=0;Fk(q,f);h=g}Ov(n,da(b+28|0,4,0,0)|0|0,d);if(h){g=da(c+24|0,4,0,0)|0|0;f=~h;if((h|0)<0?(r=da(g+112|0,4,0,0)|0|0,(r|0)!=0):0)ea(r+(f<<2)|0,da(c+32|0,4,0,0)|0|0,4,0);ea(g+88|0,(da(c+32|0,4,0,0)|0|0)+-1|0,4,0)}vh(c,24,0,0,0)|0;f=a+64|0;g=da(n+4|0,4,0,0)|0|0;if(!(da(f|0,4,0,0)|0)){ea(a+4|0,g|0,4,0);ea(f|0,da(n+64|0,4,0,0)|0|0,4,0)}else lg(da(n|0,4,0,0)|0|0,g);if(!(da(q+65>>0|0,1,0,0)|0)){k=c+4|0;o=da(k|0,4,0,0)|0|0;In(c,s+392|0);ea(p+4|0,da(c+32|0,4,0,0)|0|0,4,0);ea(k|0,0|0,4,0);ea(p|0,o|0,4,0)}ea(p+8|0,da(n+72|0,4,0,0)|0|0,4,0);ea(p+12|0,da(n+68|0,4,0,0)|0|0,4,0);ea(p+16|0,da(n+80|0,4,0,0)|0|0,4,0);ea(p+20|0,b|0,4,0);ea(l|0,da(n+428|0,4,0,0)|0|0,4,0);ea(m|0,da(n+432|0,4,0,0)|0|0,4,0);Ol(c)}Bh(n);lg(q,n)}else e=0}else e=0}while(0);i=t;return e|0}function cv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0;g=Nq(a)|0;c=bv(a,b,c,e)|0;if(c){if(!(da(b|0,4,0,0)|0))e=0;else e=((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0|0)>>>18&1^1)&255;a=a+72|0;b=(da(a|0,4,0,0)|0|0)+1|0;ea(a|0,b|0,4,0);vh(g,131,d,f,b)|0;wh(g,-1,da(c+8|0,4,0,0)|0|0,-18);c=da(g+4|0,4,0,0)|0|0;if(c)ea(c+(((da(g+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,e|0,1,0)}return}function dv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;e=da(a|0,4,0,0)|0|0;g=da((da(e+16|0,4,0,0)|0|0)+(d<<4)|0,4,0,0)|0|0;f=jc[(fa(da(e+284|0,4,0,0)|0|0,7|0)|0)&7](da(e+288|0,4,0,0)|0|0,20,b,c,g,da(a+492|0,4,0,0)|0|0)|0;if((f|0)==1){if((d|0)!=0?1:(da(e+20|0,4,0,0)|0|0)>2){ea(h|0,g|0,4,0);ea(h+4|0,b|0,4,0);ea(h+8|0,c|0,4,0);sh(a,27688,h)}else{ea(h|0,b|0,4,0);ea(h+4|0,c|0,4,0);sh(a,27728,h)}ea(a+12|0,23|0,4,0)}else if(!((f|0)==0|(f|0)==2)){sh(a,25232,h);ea(a+12|0,1|0,4,0)}i=k;return f|0}function ev(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|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;u=Nq(a)|0;w=(da(a+68|0,4,0,0)|0|0)+-1|0;x=ws(u)|0;if((h|0)<0)vh(u,135,da(e+24>>0|0,1,0,1)|0|0,x,0)|0;j=e+20|0;k=da(j|0,4,0,0)|0|0;if((k|0)>0){m=g+1|0;l=0;do{vh(u,76,m+(da(f+(l<<2)|0,4,0,0)|0|0)|0,x,0)|0;l=l+1|0;k=da(j|0,4,0,0)|0|0}while((l|0)<(k|0))}do if(!i){if(!d){k=a+19|0;j=da(k>>0|0,1,0,0)|0|0;if(!(j<<24>>24)){d=a+72|0;m=(da(d|0,4,0,0)|0|0)+1|0;ea(d|0,m|0,4,0)}else{m=j+-1<<24>>24;ea(k>>0|0,m|0,1,0);m=da(a+((m&255)<<2)+24|0,4,0,0)|0|0}vh(u,34,g+1+(da(f|0,4,0,0)|0|0)|0,m,0)|0;l=vh(u,38,m,0,0)|0;if(((h|0)==1?(da(e|0,4,0,0)|0|0)==(c|0):0)?(vh(u,79,g,x,m)|0,n=da(u+4|0,4,0,0)|0|0,(n|0)!=0):0)ea(n+(((da(u+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,-112|0,1,0);Pq(a,w,b,c,54);vh(u,70,w,0,m)|0;vh(u,16,0,x,0)|0;j=da(u+32|0,4,0,0)|0|0;if(j>>>0>1)ea((da(u+4|0,4,0,0)|0|0)+((j+-2|0)*20|0)+8|0,j|0,4,0);i=j+-1|0;k=(da(u+24|0,4,0,0)|0|0)+88|0;ea(k|0,i|0,4,0);if(j>>>0>l>>>0)ea((da(u+4|0,4,0,0)|0|0)+(l*20|0)+8|0,j|0,4,0);ea(k|0,i|0,4,0);Zr(a,m);break}s=a+60|0;m=da(s|0,4,0,0)|0|0;t=a+56|0;l=da(t|0,4,0,0)|0|0;if((l|0)<(k|0)){r=a+72|0;m=da(r|0,4,0,0)|0|0;ea(r|0,m+k|0,4,0);m=m+1|0}else{ea(s|0,m+k|0,4,0);ea(t|0,l-k|0,4,0)}l=a+19|0;j=da(l>>0|0,1,0,0)|0|0;if(!(j<<24>>24)){i=a+72|0;r=(da(i|0,4,0,0)|0|0)+1|0;ea(i|0,r|0,4,0)}else{r=j+-1<<24>>24;ea(l>>0|0,r|0,1,0);r=da(a+((r&255)<<2)+24|0,4,0,0)|0|0}vh(u,54,w,da(d+40|0,4,0,0)|0|0,b)|0;i=da(a+8|0,4,0,0)|0|0;wh(i,-1,gs(a,d)|0,-6);i=(k|0)>0;if(i){l=g+1|0;j=0;do{vh(u,33,l+(da(f+(j<<2)|0,4,0,0)|0|0)|0,j+m|0,0)|0;j=j+1|0}while((j|0)!=(k|0))}if((h|0)==1?(da(e|0,4,0,0)|0|0)==(c|0):0){p=u+32|0;q=k+1+(da(p|0,4,0,0)|0|0)|0;if(i){b=g+1|0;o=d+4|0;j=c+36|0;i=u+4|0;n=0;do{l=da((da(o|0,4,0,0)|0|0)+(n<<1)|0,2,0,0)|0|0;vh(u,78,b+(da(f+(n<<2)|0,4,0,0)|0|0)|0,q,(l<<16>>16==(da(j|0,2,0,0)|0|0)?0:(l<<16>>16)+1|0)+g|0)|0;l=da(i|0,4,0,0)|0|0;if(l)ea(l+(((da(p|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,16|0,1,0);n=n+1|0}while((n|0)!=(k|0))}vh(u,16,0,x,0)|0}g=nt(u,d)|0;wh(u,vh(u,49,m,k,r)|0,g,k);wh(u,vh(u,69,w,x,r)|0,0,-14);Zr(a,r);ct(a,m,k);if((da(t|0,4,0,0)|0|0)<(k|0)){ea(t|0,k|0,4,0);ea(s|0,m|0,4,0)}}while(0);j=da(e+24>>0|0,1,0,0)|0|0;i=j<<24>>24==0;if(((i?((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0)&16777216|0)==0:0)?(da(a+408|0,4,0,0)|0|0)==0:0)?(da(a+20>>0|0,1,0,0)|0|0)==0:0)ys(a,787,2,0,-2,4);else{if(!((h|0)<1|i^1)){e=da(a+408|0,4,0,0)|0|0;ea(((e|0)==0?a:e)+21>>0|0,1|0,1,0)}vh(u,134,j&255,h,0)|0}i=da(u+24|0,4,0,0)|0|0;j=~x;if((x|0)<0?(v=da(i+112|0,4,0,0)|0|0,(v|0)!=0):0)ea(v+(j<<2)|0,da(u+32|0,4,0,0)|0|0,4,0);ea(i+88|0,(da(u+32|0,4,0,0)|0|0)+-1|0,4,0);vh(u,61,w,0,0)|0;return}function fv(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+48|0;if((i|0)>=(j|0))ba();t=y+32|0;u=y;v=da(a|0,4,0,0)|0|0;w=Nq(a)|0;if((h|0)<0)x=vh(w,135,da(e+24>>0|0,1,0,1)|0|0,0,0)|0;else x=0;s=e+20|0;if((da(s|0,4,0,0)|0|0)>0){r=(d|0)==0;q=(f|0)==0;p=e+36|0;o=d+4|0;n=0;k=0;do{if(r)m=-1;else m=da((da(o|0,4,0,0)|0|0)+(n<<1)|0,2,0,0)|0|0;l=Pv(a,c,g,m)|0;if(q)m=p;else m=f+(n<<2)|0;k=rs(v,k,Yq(a,79,l,st(v,27,da((da((da(e|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(((da(m|0,4,0,0)|0)<<16>>16)*24|0)|0,4,0,0)|0|0)|0,0)|0)|0;n=n+1|0}while((n|0)<(da(s|0,4,0,0)|0|0));m=e}else{m=e;k=0}if((h|0)>0?(da(m|0,4,0,0)|0|0)==(c|0):0){if(!((da(c+44>>0|0,1,0,0)|0)&32)){f=da(a|0,4,0,0)|0|0;ea(t|0,0|0,4,0);ea(t+4|0,0|0,4,0);f=mr(f,159,t,0)|0;if(!f)f=0;else{ea(f+28|0,g|0,4,0);ea(f+1>>0|0,68|0,1,0)}m=da(b+48|0,4,0,0)|0|0;ea(t|0,0|0,4,0);ea(t+4|0,0|0,4,0);l=mr(v,154,t,0)|0;if(l){ea(l+44|0,c|0,4,0);ea(l+28|0,m|0,4,0);ea(l+32|0,-1|0,2,0)}f=Yq(a,78,f,l,0)|0}else{m=c+8|0;while(1){m=da(m|0,4,0,0)|0|0;if(((da(m+51>>0|0,1,0,0)|0)&3)==2)break;m=m+20|0}s=m+46|0;if(!(da(s|0,2,0,0)|0))f=0;else{o=d+4|0;p=b+48|0;q=t+4|0;r=0;f=0;do{m=da((da(o|0,4,0,0)|0|0)+(r<<1)|0,2,0,0)|0|0;l=Pv(a,c,g,m)|0;n=da(p|0,4,0,0)|0|0;ea(t|0,0|0,4,0);ea(q|0,0|0,4,0);d=mr(v,154,t,0)|0;if(d){ea(d+44|0,c|0,4,0);ea(d+28|0,n|0,4,0);ea(d+32|0,m|0,2,0)}f=rs(v,f,Yq(a,79,l,d,0)|0)|0;r=r+1|0}while((r|0)<(da(s|0,2,0,1)|0|0))}f=Yq(a,19,f,0,0)|0}k=rs(v,k,f)|0};ea(u+0|0,0|0,4,0);ea(u+4|0,0|0,4,0);ea(u+8|0,0|0,4,0);ea(u+12|0,0|0,4,0);ea(u+16|0,0|0,4,0);ea(u+20|0,0|0,4,0);ea(u+24|0,0|0,4,0);ea(u+28|0,0|0,4,0);ea(u+4|0,b|0,4,0);ea(u|0,a|0,4,0);ks(u,k)|0;f=Us(a,b,k,0,0,0,0)|0;vh(w,134,da(e+24>>0|0,1,0,1)|0|0,h,0)|0;if(f)Ws(f);Fk(v,k);if(x){f=da(w+32|0,4,0,0)|0|0;if(f>>>0>x>>>0)ea((da(w+4|0,4,0,0)|0|0)+(x*20|0)+8|0,f|0,4,0);ea((da(w+24|0,4,0,0)|0|0)+88|0,f+-1|0,4,0)}i=y;return}function gv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba();p=s;n=s+16|0;r=s+28|0;g=da(a|0,4,0,0)|0|0;q=Nq(a)|0;if(q){k=(da(g+16|0,4,0,0)|0|0)+(b<<4)|0;l=a+388|0;m=(d|0)==0;o=0;a:while(1){h=da(28744+(o<<3)|0,4,0,0)|0|0;f=Zh(g,h,da(k|0,4,0,0)|0|0)|0;do if(!f){if(!o){ea(p|0,da(k|0,4,0,0)|0|0,4,0);ea(p+4|0,h|0,4,0);ea(p+8|0,28768|0,4,0);Ar(a,28816,p);ea(n|0,da(l|0,4,0,0)|0|0,4,0);ea(r>>0|0,4|0,1,0);o=o+1|0;continue a}}else{f=da(f+32|0,4,0,0)|0|0;ea(n+(o<<2)|0,f|0,4,0);ea(r+o>>0|0,0|0,1,0);fs(a,b,f,1,h);if(m){vh(q,118,f,b,0)|0;break}else{ea(p|0,da(k|0,4,0,0)|0|0,4,0);ea(p+4|0,h|0,4,0);ea(p+8|0,e|0,4,0);ea(p+12|0,d|0,4,0);Ar(a,28840,p);break}}while(0);o=o+1|0;if((o|0)==3)break}wh(q,vh(q,55,c,da(n|0,4,0,0)|0|0,b)|0,3,-14);f=da(q+4|0,4,0,0)|0|0;if(f)ea(f+(((da(q+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,da(r>>0|0,1,0,0)|0|0|0,1,0)}i=s;return}function hv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,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,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;z=da(a|0,4,0,0)|0|0;A=e+1|0;B=e+2|0;F=e+3|0;G=e+4|0;H=e+5|0;E=e+6|0;C=e+7|0;D=a+72|0;I=da(D|0,4,0,0)|0|0;ea(D|0,((I|0)>(C|0)?I:C)|0,4,0);I=Nq(a)|0;if((!((I|0)==0|(b|0)==0)?(l=b+32|0,(da(l|0,4,0,0)|0|0)!=0):0)?(m=da(b|0,4,0,0)|0|0,(Ec(m,25568,7)|0)!=0):0){i=da(b+68|0,4,0,0)|0|0;a:do if(i){h=da(z+20|0,4,0,0)|0|0;if((h|0)>0){g=da(z+16|0,4,0,0)|0|0;k=0;while(1){j=k+1|0;if((da(g+(k<<4)+12|0,4,0,0)|0|0)==(i|0)){j=k;break a}if((j|0)<(h|0))k=j;else break}}else j=0}else j=-1e6;while(0);if(!(Rq(a,28,m,0,da((da(z+16|0,4,0,0)|0|0)+(j<<4)|0,4,0,0)|0|0)|0)){fs(a,j,da(l|0,4,0,0)|0|0,0,da(b|0,4,0,0)|0|0);s=f+1|0;m=f+2|0;x=a+68|0;y=da(x|0,4,0,0)|0|0;ea(x|0,((y|0)>(m|0)?y:m)|0,4,0);Pq(a,f,j,b,54);m=da(b|0,4,0,0)|0|0;wh(I,vh(I,97,0,G,0)|0,m,0);m=da(b+8|0,4,0,0)|0|0;y=(c|0)==0;if(!m)i=1;else{t=b+44|0;u=a+8|0;v=I+4|0;w=I+32|0;x=I+24|0;i=1;do{do if(y|(m|0)==(c|0)){i=(da(m+36|0,4,0,0)|0|0)==0?0:i;l=da(m+51>>0|0,1,0,0)|0|0;if(!(((da(t>>0|0,1,0,0)|0)&32)!=0&(l&3)==2)){g=da(m+48|0,2,0,1)|0|0;k=da(m|0,4,0,0)|0|0;h=m+46|0;if(!(l&8)){o=h;n=g;l=g}else{o=h;n=g;l=da(h|0,2,0,1)|0|0}}else{o=m+46|0;l=da(o|0,2,0,1)|0|0;n=l;k=da(b|0,4,0,0)|0|0}q=l+-1|0;wh(I,vh(I,97,0,H,0)|0,k,0);r=da(D|0,4,0,0)|0|0;l=q+C|0;ea(D|0,((r|0)>(l|0)?r:l)|0,4,0);vh(I,54,s,da(m+40|0,4,0,0)|0|0,j)|0;l=da(u|0,4,0,0)|0|0;wh(l,-1,gs(a,m)|0,-6);vh(I,25,n,B,0)|0;vh(I,25,da(o|0,2,0,1)|0|0,F,0)|0;vh(I,1,0,B,A)|0;wh(I,-1,28552,-5);l=da(v|0,4,0,0)|0|0;if(l)ea(l+(((da(w|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,2|0,1,0);r=vh(I,108,s,0,0)|0;vh(I,25,0,B,0)|0;k=da(w|0,4,0,0)|0|0;if((q|0)>0){n=ws(I)|0;p=lh(z,q<<2,0)|0;if(!p)break;vh(I,16,0,0,0)|0;k=da(w|0,4,0,0)|0|0;if(((q|0)==1?(da(o|0,2,0,0)|0|0)==1:0)?(da(m+50>>0|0,1,0,0)|0|0)!=0:0)vh(I,77,C,n,0)|0;l=m+32|0;g=0;do{o=br(a,da((da(l|0,4,0,0)|0|0)+(g<<2)|0,4,0,0)|0|0)|0;vh(I,25,g,B,0)|0;vh(I,47,s,g,F)|0;h=vh(I,78,F,0,g+C|0)|0;wh(I,h,o,-4);ea(p+(g<<2)|0,h|0,4,0);h=da(v|0,4,0,0)|0|0;if(h)ea(h+(((da(w|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,-128|0,1,0);g=g+1|0}while((g|0)!=(q|0));vh(I,25,q,B,0)|0;vh(I,16,0,n,0)|0;l=k+-1|0;h=da(w|0,4,0,0)|0|0;if(h>>>0>l>>>0)ea((da(v|0,4,0,0)|0|0)+(l*20|0)+8|0,h|0,4,0);ea((da(x|0,4,0,0)|0|0)+88|0,h+-1|0,4,0);l=0;while(1){g=da(p+(l<<2)|0,4,0,0)|0|0;if(h>>>0>g>>>0)ea((da(v|0,4,0,0)|0|0)+(g*20|0)+8|0,h|0,4,0);ea((da(x|0,4,0,0)|0|0)+88|0,h+-1|0,4,0);vh(I,47,s,l,l+C|0)|0;l=l+1|0;if((l|0)==(q|0))break;h=da(w|0,4,0,0)|0|0}h=da(x|0,4,0,0)|0|0;g=~n;do if((n|0)<0){l=da(h+112|0,4,0,0)|0|0;if(!l)break;ea(l+(g<<2)|0,da(w|0,4,0,0)|0|0,4,0)}while(0);ea(h+88|0,(da(w|0,4,0,0)|0|0)+-1|0,4,0);lg(z,p)}vh(I,1,1,A,F)|0;wh(I,-1,28592,-5);l=da(v|0,4,0,0)|0|0;if(l)ea(l+(((da(w|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,2|0,1,0);vh(I,9,s,k,0)|0;vh(I,1,0,A,E)|0;wh(I,-1,28640,-5);l=da(v|0,4,0,0)|0|0;if(l)ea(l+(((da(w|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,1|0,1,0);wh(I,vh(I,49,G,3,F)|0,28632,0);vh(I,74,d,e,0)|0;vh(I,75,d,F,e)|0;k=da(v|0,4,0,0)|0|0;l=da(w|0,4,0,0)|0|0;if(k)ea(k+((l+-1|0)*20|0)+3>>0|0,8|0,1,0);if(l>>>0>r>>>0)ea(k+(r*20|0)+8|0,l|0,4,0);ea((da(x|0,4,0,0)|0|0)+88|0,l+-1|0,4,0)}while(0);m=da(m+20|0,4,0,0)|0|0}while((m|0)!=0)}if(!(i<<24>>24==0|y^1)){vh(I,50,f,E,0)|0;i=vh(I,46,E,0,0)|0;vh(I,28,0,H,0)|0;wh(I,vh(I,49,G,3,F)|0,28632,0);vh(I,74,d,e,0)|0;vh(I,75,d,F,e)|0;h=da(I+4|0,4,0,0)|0|0;g=da(I+32|0,4,0,0)|0|0;if(h)ea(h+((g+-1|0)*20|0)+3>>0|0,8|0,1,0);if(g>>>0>i>>>0)ea(h+(i*20|0)+8|0,g|0,4,0);ea((da(I+24|0,4,0,0)|0|0)+88|0,g+-1|0,4,0)}}}return}function iv(a,b){a=a|0;b=b|0;a=Nq(a)|0;if(a)vh(a,123,b,0,0)|0;return}function jv(a){a=a|0;var b=0,c=0,d=0;a:while(1){b=da(a+4|0,4,0,0)|0|0;do if(b&4096)if(!(b&262144)){a=a+12|0;break}else{a=da((da(a+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;break}else{if(b&512){a=0;break a}switch(da(a>>0|0,1,0,0)|0|0){case -102:case -100:case -97:{d=11;break a}case 38:{d=10;break a}case 119:break;default:{d=14;break a}}a=da((da(da(a+20|0,4,0,0)|0|0,4,0,0)|0|0)+4|0,4,0,0)|0|0}while(0);a=da(a|0,4,0,0)|0|0}if((d|0)==10)a=Wq(da(a+8|0,4,0,0)|0|0,0)|0;else if((d|0)==11){c=da(a+44|0,4,0,0)|0|0;if(c){b=da(a+32|0,2,0,0)|0|0;if(b<<16>>16<0)a=68;else a=da((da(c+4|0,4,0,0)|0|0)+((b<<16>>16)*24|0)+21>>0|0,1,0,0)|0|0}else d=14}if((d|0)==14)a=da(a+1>>0|0,1,0,0)|0|0;return a|0}function kv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;vh(a,25,0,c,0)|0;d=vh(a,108,b,0,0)|0;vh(a,47,b,0,c)|0;b=da(a+4|0,4,0,0)|0|0;c=da(a+32|0,4,0,0)|0|0;if(b)ea(b+((c+-1|0)*20|0)+3>>0|0,-128|0,1,0);if(c>>>0>d>>>0)ea(b+(d*20|0)+8|0,c|0,4,0);ea((da(a+24|0,4,0,0)|0|0)+88|0,c+-1|0,4,0);return}function lv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+32|0;if((i|0)>=(j|0))ba();v=A;y=a+68|0;z=da(y|0,4,0,0)|0|0;ea(y|0,z+1|0,4,0);y=Nq(a)|0;w=(c&4|0)!=0;x=b+4|0;a:do if(((((((((((((da(x|0,4,0,0)|0)&2048|0)!=0?(h=da(b+20|0,4,0,0)|0|0,!((da(a+64|0,4,0,0)|0|0)!=0|(h|0)==0)):0)?(da(h+52|0,4,0,0)|0|0)==0:0)?((da(h+6|0,2,0,0)|0)&5)==0:0)?(da(h+60|0,4,0,0)|0|0)==0:0)?(da(h+36|0,4,0,0)|0|0)==0:0)?(g=da(h+32|0,4,0,0)|0|0,(da(g|0,4,0,0)|0|0)==1):0)?(da(g+28|0,4,0,0)|0|0)==0:0)?(p=da(g+24|0,4,0,0)|0|0,(p|0)!=0):0)?((da(p+44>>0|0,1,0,0)|0)&16)==0:0)?(f=da(h|0,4,0,0)|0|0,(da(f|0,4,0,0)|0|0)==1):0)?(l=da(da(f+4|0,4,0,0)|0|0,4,0,0)|0|0,(da(l>>0|0,1,0,0)|0|0)==-102):0){t=da(a|0,4,0,0)|0|0;u=da(l+32|0,2,0,0)|0|0;k=da(p+68|0,4,0,0)|0|0;b:do if(k){g=da(t+20|0,4,0,0)|0|0;if((g|0)>0){f=da(t+16|0,4,0,0)|0|0;e=0;while(1){h=e+1|0;if((da(f+(e<<4)+12|0,4,0,0)|0|0)==(k|0)){h=e;break b}if((h|0)<(g|0))e=h;else break}}else h=0}else h=-1e6;while(0);r=h<<16>>16;zr(a,r);fs(a,r,da(p+32|0,4,0,0)|0|0,0,da(p|0,4,0,0)|0|0);s=u<<16>>16;if(u<<16>>16<0){e=Nq(a)|0;d=a+80|0;f=da(d|0,4,0,0)|0|0;ea(d|0,f+1|0,4,0);f=vh(e,44,f,0,0)|0;Pq(a,z,r,p,54);e=da(y+32|0,4,0,0)|0|0;if(e>>>0>f>>>0)ea((da(y+4|0,4,0,0)|0|0)+(f*20|0)+8|0,e|0,4,0);ea((da(y+24|0,4,0,0)|0|0)+88|0,e+-1|0,4,0);e=1;k=49;break}e=Nu(a,da(b+12|0,4,0,0)|0|0,l)|0;q=p+4|0;k=da((da(q|0,4,0,0)|0|0)+(s*24|0)+21>>0|0,1,0,0)|0|0;h=(mv(b)|0)<<24>>24;if((h|0)==65)h=1;else if((h|0)==66)h=k<<24>>24==66&1;else h=k<<24>>24>66&1;k=da(p+8|0,4,0,0)|0|0;if((k|0)!=0&(h|0)!=0){l=t+62|0;h=a+80|0;g=a+8|0;f=(d|0)==0;m=y+32|0;o=y+4|0;p=y+24|0;n=a+72|0;c:while(1){do if((da(da(k+4|0,4,0,0)|0|0,2,0,0)|0|0)==u<<16>>16?(Xn(t,da(l>>0|0,1,0,0)|0|0,da(da(k+32|0,4,0,0)|0|0,4,0,0)|0|0,0)|0)==(e|0):0){if(!w)break c;if((da(k+46|0,2,0,0)|0|0)!=1)break;if(da(k+50>>0|0,1,0,0)|0)break c}while(0);k=da(k+20|0,4,0,0)|0|0;if(!k){k=38;break a}}x=Nq(a)|0;e=da(h|0,4,0,0)|0|0;ea(h|0,e+1|0,4,0);h=vh(x,44,e,0,0)|0;vh(y,54,z,da(k+40|0,4,0,0)|0|0,r)|0;e=da(g|0,4,0,0)|0|0;wh(e,-1,gs(a,k)|0,-6);e=(da((da(k+28|0,4,0,0)|0)>>0|0,1,0,1)|0|0)+3|0;if(!f?(da((da(q|0,4,0,0)|0|0)+(s*24|0)+20>>0|0,1,0,0)|0|0)==0:0){x=(da(n|0,4,0,0)|0|0)+1|0;ea(n|0,x|0,4,0);ea(d|0,x|0,4,0);kv(y,z,x)}f=da(m|0,4,0,0)|0|0;if(f>>>0>h>>>0)ea((da(o|0,4,0,0)|0|0)+(h*20|0)+8|0,f|0,4,0);ea((da(p|0,4,0,0)|0|0)+88|0,f+-1|0,4,0);k=49}else k=38}else k=38;while(0);do if((k|0)==38){if((c&1|0)!=0?((da(x|0,4,0,0)|0)&2048|0)==0:0){u=b+12|0;c=da(u|0,4,0,0)|0|0;ea(u|0,0|0,4,0);ea(v+0|0,0|0,4,0);ea(v+4|0,0|0,4,0);ea(v+8|0,0|0,4,0);ea(v+12|0,0|0,4,0);ea(v+16|0,0|0,4,0);ea(v+20|0,0|0,4,0);y=v+20|0;ea(y>>0|0,1|0,1,0);ea(v|0,78|0,4,0);ea(v+4|0,79|0,4,0);ea(v+24|0,0|0,4,0);qs(v,b)|0;y=da(y>>0|0,1,0,0)|0|0;ea(u|0,c|0,4,0);if(!(y<<24>>24)){e=5;k=49;break}if((da(da(b+20|0,4,0,0)|0|0,4,0,0)|0|0)<3){e=5;k=49;break}}g=a+424|0;h=da(g|0,4,0,0)|0|0;if(w){ea(g|0,0|0,4,0);if((da((da(b+12|0,4,0,0)|0|0)+32|0,2,0,0)|0|0)<0){e=((da(x|0,4,0,0)|0|0)>>>11&1)+1|0;f=0}else{e=2;f=0}}else if(!d){e=2;f=0}else{e=a+72|0;f=(da(e|0,4,0,0)|0|0)+1|0;ea(e|0,f|0,4,0);ea(d|0,f|0,4,0);e=2}du(a,b,f,(e|0)==1&1)|0;ea(g|0,h|0,4,0)}while(0);if((k|0)==49)ea(b+28|0,z|0,4,0);i=A;return e|0}function mv(a){a=a|0;var b=0,c=0;b=jv(da(a+12|0,4,0,0)|0|0)|0;c=da(a+16|0,4,0,0)|0|0;do if(!c)if(!((da(a+4|0,4,0,0)|0)&2048))return (b<<24>>24==0?65:b)|0;else{b=Au(da(da((da(da(a+20|0,4,0,0)|0|0,4,0,0)|0|0)+4|0,4,0,0)|0|0,4,0,0)|0|0,b)|0;break}else b=Au(c,b)|0;while(0);return b|0}function nv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0;W=i;i=i+16|0;if((i|0)>=(j|0))ba();T=W;R=da(a|0,4,0,0)|0|0;U=f+28|0;ea(U|0,-1|0,4,0);Q=f+44|0;ea(Q|0,0|0,4,0);a:do if((b|0)!=0?((da(e+28|0,2,0,0)|0)&20)==0:0){n=da(R+20|0,4,0,0)|0|0;if((n|0)>0){l=da(R+16|0,4,0,0)|0|0;m=0;while(1){if(!(cd(da(l+(m<<4)|0,4,0,0)|0|0,b)|0))break;m=m+1|0;if((m|0)>=(n|0)){P=b;b=0;break a}}P=b;b=da(l+(m<<4)+12|0,4,0,0)|0|0}else{P=b;b=0}}else{P=0;b=0}while(0);N=(P|0)==0;K=N&(c|0)!=0;h=a+412|0;G=a+436|0;H=f+1|0;V=f+32|0;I=a+428|0;J=a+432|0;O=(c|0)==0;M=f+4|0;g=e;o=0;k=0;n=0;m=0;b:while(1){F=(g|0)!=0;l=g+4|0;E=g+8|0;p=0;q=o;while(1){o=(p|0)==0;if(!(F&o)){S=82;break b}p=da(l|0,4,0,0)|0|0;if(p){D=da(p|0,4,0,0)|0|0;if((D|0)>0){o=0;B=0;A=p+8|0;while(1){z=da(A+16|0,4,0,0)|0|0;r=da(A+20|0,4,0,0)|0|0;if((r|0)!=0?((da(r+6|0,2,0,0)|0)&512)!=0:0){r=da(r|0,4,0,0)|0|0;w=da(r|0,4,0,0)|0|0;if((w|0)>0){x=da(r+4|0,4,0,0)|0|0;r=0;t=0;do{if(uv(da(x+(t*20|0)+8|0,4,0,0)|0|0,d,c,P)|0){ea(V|0,t|0,2,0);o=o+1|0;q=2;r=1;m=A}t=t+1|0}while((t|0)<(w|0))}else r=0;if(!((r|0)!=0|O))S=21}else S=21;c:do if((S|0)==21){S=0;if(!N?(da(z+68|0,4,0,0)|0|0)!=(b|0):0)break;if(!O){r=da(A+12|0,4,0,0)|0|0;if(!r)r=da(z|0,4,0,0)|0|0;if(cd(r,c)|0)break}y=q+1|0;m=(q|0)==0?A:m;r=da(z+38|0,2,0,0)|0|0;if(r<<16>>16>0){p=(o|0)==1;u=A+36|0;v=A+48|0;q=0;x=da(z+4|0,4,0,0)|0|0;d:while(1){e:do if(!(cd(da(x|0,4,0,0)|0|0,d)|0)){if(!p)break d;if(!((da(u>>0|0,1,0,0)|0)&4)){t=da(v|0,4,0,0)|0|0;if(!t)break d;w=da(t+4|0,4,0,0)|0|0;if((w|0)<=0)break d;t=da(t|0,4,0,0)|0|0;s=0;while(1){if(!(cd(da(t+(s<<3)|0,4,0,0)|0|0,d)|0))break e;s=s+1|0;if((s|0)>=(w|0))break d}}}while(0);q=q+1|0;if((q|0)>=(r<<16>>16|0)){q=y;break c}else x=x+24|0}ea(V|0,((q|0)==(da(z+36|0,2,0,0)|0|0)?-1:q&65535)|0,2,0);o=o+1|0;q=y;m=A}else q=y}while(0);B=B+1|0;if((B|0)>=(D|0))break;else A=A+72|0}}else o=0;if(!m)y=0;else{ea(U|0,da(m+40|0,4,0,0)|0|0,4,0);p=da(m+16|0,4,0,0)|0|0;ea(Q|0,p|0,4,0);if((da(m+36>>0|0,1,0,0)|0)&8)ea(M|0,da(M|0,4,0,0)|0|1048576|0,4,0);y=m;b=da(p+68|0,4,0,0)|0|0}}else{o=0;y=m}do if(K&(q|0)==0)if(da(h|0,4,0,0)|0){p=da(G>>0|0,1,0,0)|0|0;if(p<<24>>24!=109)if(cd(27560,c)|0)if(p<<24>>24==108){s=o;q=0;t=k;break}else S=49;else t=1;else S=49;if((S|0)==49){S=0;if(!(cd(27568,c)|0))t=0;else{s=o;q=0;t=k;break}}ea(U|0,t|0,4,0);s=da(h|0,4,0,0)|0|0;if(s){b=da(s+68|0,4,0,0)|0|0;r=da(s+38|0,2,0,0)|0|0;f:do if(r<<16>>16>0){p=0;q=da(s+4|0,4,0,0)|0|0;while(1){if(!(cd(da(q|0,4,0,0)|0|0,d)|0))break;p=p+1|0;if((p|0)<(r<<16>>16|0))q=q+24|0;else break f}p=(p|0)==(da(s+36|0,2,0,0)|0|0)?-1:p}else p=0;while(0);m=r<<16>>16;if((p|0)>=(m|0)?(_h(d)|0)!=0:0)q=((da(s+44>>0|0,1,0,0)|0)&32)==0?-1:p;else q=p;if((q|0)<(m|0)){o=o+1|0;do if((q|0)>=0){p=(q|0)>31?-1:1<<q;if(!t){ea(I|0,da(I|0,4,0,0)|0|p|0,4,0);break}else{ea(J|0,da(J|0,4,0,0)|0|p|0,4,0);break}}else ea(H>>0|0,68|0,1,0);while(0);ea(V|0,q|0,2,0);ea(Q|0,s|0,4,0);q=1;k=1;S=66}else{q=1;S=66}}else{s=o;q=0;t=k}}else{s=o;q=0;t=k}else S=66;while(0);if((S|0)==66){S=0;if((o|0)==0&(q|0)==1&(y|0)!=0)if((_h(d)|0)!=0?((da((da(y+16|0,4,0,0)|0|0)+44>>0|0,1,0,0)|0)&32)==0:0){ea(V|0,-1|0,2,0);ea(H>>0|0,68|0,1,0);p=1;m=y;continue}else{s=0;t=k}else{s=o;t=k}}o=da(E|0,4,0,0)|0|0;r=(s|0)==0;if((o|0)!=0&O&r?(L=da(o|0,4,0,0)|0|0,(L|0)>0):0){k=da(o+4|0,4,0,0)|0|0;m=0;do{p=da(k+(m*20|0)+4|0,4,0,0)|0|0;if((p|0)!=0?(cd(p,d)|0)==0:0){S=75;break b}m=m+1|0}while((m|0)<(L|0))}if(r){p=q;k=t;m=y;break}else{p=s;k=t;m=y}}g=da(g+16|0,4,0,0)|0|0;o=p;n=n+1|0}do if((S|0)==75){if(((da(g+28|0,2,0,0)|0)&1)==0?((da((da(k+(m*20|0)|0,4,0,0)|0|0)+4|0,4,0,0)|0)&2|0)!=0:0){ea(T|0,p|0,4,0);sh(a,27576,T);e=2;break}xv(a,o,m,f,10360,n);if((da(f>>0|0,1,0,0)|0|0)==24)S=115;else S=96}else if((S|0)==82){if(o&O?((da(M|0,4,0,0)|0)&64|0)!=0:0){ea(f>>0|0,97|0,1,0);ea(Q|0,0|0,4,0);e=1;break}p=(p|0)==1;if(!p){o=o?27608:27624;do if(N)if(O){ea(T|0,o|0,4,0);ea(T+4|0,d|0,4,0);sh(a,27680,T);break}else{ea(T|0,o|0,4,0);ea(T+4|0,c|0,4,0);ea(T+8|0,d|0,4,0);sh(a,27664,T);break}else{ea(T|0,o|0,4,0);ea(T+4|0,P|0,4,0);ea(T+8|0,c|0,4,0);ea(T+12|0,d|0,4,0);sh(a,27648,T)}while(0);ea(a+17>>0|0,1|0,1,0);B=e+24|0;ea(B|0,(da(B|0,4,0,0)|0|0)+1|0,4,0)}n=da(V|0,2,0,0)|0|0;if(n<<16>>16>-1&(m|0)!=0){y=n<<16>>16>63;z=hw(1,0,n<<16>>16|0)|0;A=m+56|0;x=A;B=da(x+4|0,4,0,0)|0|(y?-2147483648:C);ea(A|0,da(x|0,4,0,0)|0|(y?0:z)|0,4,0);ea(A+4|0,B|0,4,0)}B=f+12|0;Fk(R,da(B|0,4,0,0)|0|0);ea(B|0,0|0,4,0);B=f+16|0;Fk(R,da(B|0,4,0,0)|0|0);ea(B|0,0|0,4,0);ea(f>>0|0,((k|0)!=0?62:-102)|0,1,0);if(p)S=96;else e=2}while(0);g:do if((S|0)==96){o=da(l|0,4,0,0)|0|0;k=da(a|0,4,0,0)|0|0;if(!((da(k+284|0,4,0,0)|0|0)==0|(b|0)==0)){n=da(k+20|0,4,0,0)|0|0;if((n|0)>0){l=da(k+16|0,4,0,0)|0|0;m=0;while(1){k=m+1|0;if((da(l+(m<<4)+12|0,4,0,0)|0|0)==(b|0)){k=m;break}if((k|0)<(n|0))m=k;else break}if((k|0)<0){S=115;break}else b=k}else b=0;if((da(f>>0|0,1,0,0)|0|0)!=62){l=da(o|0,4,0,0)|0|0;if((l|0)<=0){S=115;break}h=da(U|0,4,0,0)|0|0;k=0;while(1){if((h|0)==(da(o+(k*72|0)+48|0,4,0,0)|0|0))break;k=k+1|0;if((k|0)>=(l|0)){S=115;break g}}h=o+(k*72|0)+24|0}l=da(h|0,4,0,0)|0|0;h=da(V|0,2,0,0)|0|0;k=h<<16>>16;if(l){if(h<<16>>16<=-1){h=da(l+36|0,2,0,0)|0|0;if(h<<16>>16>-1)h=da((da(l+4|0,4,0,0)|0|0)+((h<<16>>16)*24|0)|0,4,0,0)|0|0;else h=12944}else h=da((da(l+4|0,4,0,0)|0|0)+(k*24|0)|0,4,0,0)|0|0;if((dv(a,da(l|0,4,0,0)|0|0,h,b)|0)==2){ea(f>>0|0,101|0,1,0);S=115}else S=115}else S=115}else S=115}while(0);if((S|0)==115){B=e+20|0;ea(B|0,(da(B|0,4,0,0)|0|0)+1|0,4,0);if((g|0)==(e|0))e=1;else{do{e=da(e+16|0,4,0,0)|0|0;B=e+20|0;ea(B|0,(da(B|0,4,0,0)|0|0)+1|0,4,0)}while((e|0)!=(g|0));e=1}}i=W;return e|0}function ov(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=da(b>>0|0,1,0,0)|0|0;a:do if(c<<24>>24==-100|c<<24>>24==-102){c=da(a+24|0,4,0,0)|0|0;d=da(c|0,4,0,0)|0|0;b:do if((d|0)!=0?(e=da(d|0,4,0,0)|0|0,(e|0)>0):0){a=da(b+28|0,4,0,0)|0|0;b=0;while(1){if((a|0)==(da(d+(b*72|0)+48|0,4,0,0)|0|0))break;b=b+1|0;if((b|0)>=(e|0))break b}a=c+4|0;ea(a|0,(da(a|0,4,0,0)|0|0)+1|0,4,0);break a}while(0);a=c+8|0;ea(a|0,(da(a|0,4,0,0)|0|0)+1|0,4,0)}while(0);return 0}function pv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+16|0;if((i|0)>=(j|0))ba();s=t;n=t+12|0;a:do if(!c)e=0;else{q=da(da(b|0,4,0,0)|0|0,4,0,0)|0|0;r=da(a|0,4,0,0)|0|0;b:do if((da(c|0,4,0,0)|0|0)>0){e=0;o=da(c+4|0,4,0,0)|0|0;c:while(1){l=da(o|0,4,0,0)|0|0;d:do if(!l)f=0;else{f=l;while(1){g=da(f+4|0,4,0,0)|0|0;if(!(g&4096))break d;if(!(g&262144))f=f+12|0;else f=da((da(f+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;f=da(f|0,4,0,0)|0|0;if(!f){f=0;break}}}while(0);if((da(d>>0|0,1,0,0)|0|0)!=71?(m=qv(da(b|0,4,0,0)|0|0,f)|0,ea(n|0,m|0,4,0),(m|0)>0):0)ea(o+16|0,m|0,2,0);else p=13;do if((p|0)==13){p=0;if(Ls(f,n)|0){f=da(n|0,4,0,0)|0|0;if((f+-1|0)>>>0>65534)break c;ea(o+16|0,f|0,2,0);break}h=o+16|0;ea(h|0,0|0,2,0);if(ks(a,l)|0){e=1;break a}g=da(b|0,4,0,0)|0|0;k=da(g|0,4,0,0)|0|0;if((k|0)>0){g=da(g+4|0,4,0,0)|0|0;f=0;do{u=f;f=f+1|0;if(!(Bu(l,da(g+(u*20|0)|0,4,0,0)|0|0,-1)|0))ea(h|0,f|0,2,0)}while((f|0)<(k|0))}}while(0);e=e+1|0;if((e|0)>=(da(c|0,4,0,0)|0|0))break b;else o=o+20|0}ea(s|0,e+1|0,4,0);ea(s+4|0,d|0,4,0);ea(s+8|0,q|0,4,0);sh(r,27064,s);e=1;break a}while(0);e=vu(r,b,c,d)|0}while(0);i=t;return e|0}function qv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:do if((da(b>>0|0,1,0,0)|0|0)==27?(d=da(b+8|0,4,0,0)|0|0,e=da(a|0,4,0,0)|0|0,(e|0)>0):0){a=da(a+4|0,4,0,0)|0|0;b=0;while(1){c=da(a+(b*20|0)+4|0,4,0,0)|0|0;if((c|0)!=0?(cd(c,d)|0)==0:0)break;b=b+1|0;if((b|0)>=(e|0)){b=0;break a}}b=b+1|0}else b=0;while(0);return b|0}function rv(a,b){a=a|0;b=b|0;var c=0,d=0;c=da(a+38|0,2,0,0)|0|0;a:do if(c<<16>>16>0){d=da(a+4|0,4,0,0)|0|0;c=c<<16>>16;a=0;while(1){if(!(cd(da(d+(a*24|0)|0,4,0,0)|0|0,b)|0))break a;a=a+1|0;if((a|0)>=(c|0)){a=-1;break}}}else a=-1;while(0);return a|0}function sv(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0;i=da(a|0,4,0,0)|0|0;c=Qv(i,b,c,d)|0;d=Qv(i,b,e,f)|0;f=Yq(a,79,c,d,0)|0;if((f|0)!=0&(g|0)!=0){c=f+4|0;ea(c|0,da(c|0,4,0,0)|0|1|0,4,0);ea(f+36|0,da(d+28|0,4,0,0)|0|0,2,0)}ea(h|0,rs(i,da(h|0,4,0,0)|0|0,f)|0|0,4,0);return}function tv(a,b){a=a|0;b=b|0;var c=0,d=0;if(a){c=b&65535;do{d=a+4|0;ea(d|0,da(d|0,4,0,0)|0|1|0,4,0);ea(a+36|0,c|0,2,0);tv(da(a+12|0,4,0,0)|0|0,b);a=da(a+16|0,4,0,0)|0|0}while((a|0)!=0)}return}function uv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;e=0;while(1){f=da(a+e>>0|0,1,0,0)|0|0;if(f<<24>>24==46|f<<24>>24==0)break;e=e+1|0}if(d)if((Ec(a,d,e)|0)==0?(da(d+e>>0|0,1,0,0)|0|0)==0:0)g=7;else e=0;else g=7;do if((g|0)==7){d=e+1|0;g=a+d|0;f=0;while(1){h=da(a+(f+d)>>0|0,1,0,0)|0|0;if(h<<24>>24==46|h<<24>>24==0)break;f=f+1|0}if(c){if(Ec(g,c,f)|0){e=0;break}if(da(c+f>>0|0,1,0,0)|0){e=0;break}}if((b|0)!=0?(cd(a+(e+2+f)|0,b)|0)!=0:0){e=0;break}e=1}while(0);return e|0}function vv(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if((a|0)!=0?(d=da(a+4|0,4,0,0)|0|0,(d|0)>0):0){c=da(a|0,4,0,0)|0|0;a=0;while(1){if(!(cd(da(c+(a<<3)|0,4,0,0)|0|0,b)|0))break a;a=a+1|0;if((a|0)>=(d|0)){a=-1;break}}}else a=-1;while(0);return a|0}function wv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;ea(e|0,c|0,4,0);if(!c)d=0;else{d=c;while(1)if(!(da(d>>0|0,1,0,0)|0))break;else d=d+1|0;d=d-c&1073741823}ea(e+4|0,d|0,4,0);d=ur(a,b,e,0)|0;i=f;return d|0}function xv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+32|0;if((i|0)>=(j|0))ba();l=p;h=b+4|0;k=da((da(h|0,4,0,0)|0|0)+(c*20|0)|0,4,0,0)|0|0;m=da(a|0,4,0,0)|0|0;g=Lr(m,k,0,0)|0;do if(g){if((da(k>>0|0,1,0,0)|0|0)!=-102?(da(e>>0|0,1,0,0)|0|0)!=71:0){if((f|0)>0){ea(l+0|0,0|0,4,0);ea(l+4|0,0|0,4,0);ea(l+8|0,0|0,4,0);ea(l+12|0,0|0,4,0);ea(l+16|0,0|0,4,0);ea(l+20|0,0|0,4,0);ea(l|0,88|0,4,0);ea(l+24|0,f|0,4,0);qs(l,g)|0}g=Yq(a,24,g,0,0)|0;if(!g)break;b=g+4|0;ea(b|0,da(b|0,4,0,0)|0|4096|0,4,0);b=(da(h|0,4,0,0)|0|0)+(c*20|0)+18|0;f=da(b|0,2,0,0)|0|0;if(!(f<<16>>16)){c=a+456|0;f=(da(c|0,4,0,0)|0|0)+1|0;ea(c|0,f|0,4,0);f=f&65535;ea(b|0,f|0,2,0)}ea(g+28|0,f&65535|0,4,0)}if((da(d>>0|0,1,0,0)|0|0)==95)g=wv(a,g,da(d+8|0,4,0,0)|0|0)|0;b=d+4|0;ea(b|0,da(b|0,4,0,0)|0|32768|0,4,0);Fk(m,d);f=d+0|0;h=g+0|0;k=f+48|0;do{ea(f|0,da(h|0,4,0,0)|0|0,4,0);f=f+4|0;h=h+4|0}while((f|0)<(k|0));if(((da(b|0,4,0,0)|0)&1024|0)==0?(n=d+8|0,o=da(n|0,4,0,0)|0|0,(o|0)!=0):0){ea(n|0,jh(m,o)|0|0,4,0);ea(b|0,da(b|0,4,0,0)|0|65536|0,4,0)}lg(m,g)}while(0);i=p;return}function yv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;k=a+12|0;d=da(k|0,4,0,0)|0|0;h=a+16|0;f=da(h|0,4,0,0)|0|0;j=a+20|0;do if((d|0)<(f|0))i=15;else{d=da(j|0,4,0,0)|0|0;g=da(da(da(a|0,4,0,0)|0|0,4,0,0)|0|0,4,0,0)|0|0;e=lh(g,f*96|0,0)|0;ea(j|0,e|0,4,0);if(!e){if(c&1)Fk(g,b);ea(j|0,d|0,4,0);d=0;break}jw(e|0,d|0,(da(k|0,4,0,0)|0|0)*48|0)|0;if((d|0)!=(a+24|0))lg(g,d);e=da(j|0,4,0,0)|0|0;do if(!g)e=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](e)|0;else{if((da(g+276|0,4,0,0)|0|0)>>>0<=e>>>0?(da(g+280|0,4,0,0)|0|0)>>>0>e>>>0:0){e=da(g+248|0,2,0,1)|0|0;break}e=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](e)|0}while(0);i=(e>>>0)/48|0;ea(h|0,i|0,4,0);d=da(k|0,4,0,0)|0|0;ew((da(j|0,4,0,0)|0|0)+(d*48|0)|0,0,(i-d|0)*48|0)|0;d=da(k|0,4,0,0)|0|0;i=15}while(0);if((i|0)==15){ea(k|0,d+1|0,4,0);f=da(j|0,4,0,0)|0|0;a:do if(!b){ea(f+(d*48|0)+16|0,1|0,2,0);b=0}else{if(!((da(b+4|0,4,0,0)|0)&262144))e=1;else{e=da(b+28|0,4,0,0)|0|0;e=((es(e,((e|0)<0)<<31>>31)|0)&65535)+65266&65535}ea(f+(d*48|0)+16|0,e|0,2,0);while(1){e=da(b+4|0,4,0,0)|0|0;if(!(e&4096))break a;if(!(e&262144))b=b+12|0;else b=da((da(b+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;b=da(b|0,4,0,0)|0|0;if(!b){b=0;break}}}while(0);ea(f+(d*48|0)|0,b|0,4,0);ea(f+(d*48|0)+20|0,c|0,2,0);ea(f+(d*48|0)+24|0,a|0,4,0);ea(f+(d*48|0)+4|0,-1|0,4,0)}return d|0}function zv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:do if(b)if((da(b>>0|0,1,0,0)|0|0)==-102){b=da(b+28|0,4,0,0)|0|0;d=da(a|0,4,0,0)|0|0;if((d|0)>0)c=0;else{d=0;c=0;break}while(1){if((da(a+(c<<2)+4|0,4,0,0)|0|0)==(b|0))break;c=c+1|0;if((c|0)>=(d|0)){d=0;c=0;break a}}c=hw(1,0,c|0)|0;d=C;break}else{e=zv(a,da(b+16|0,4,0,0)|0|0)|0;c=C;f=zv(a,da(b+12|0,4,0,0)|0|0)|0;c=C|c;d=b+20|0;if(!((da(b+4|0,4,0,0)|0)&2048)){b=Ku(a,da(d|0,4,0,0)|0|0)|0;d=C}else{b=Av(a,da(d|0,4,0,0)|0|0)|0;d=C}d=c|d;c=f|e|b;break}else{d=0;c=0}while(0);C=d;return c|0}function Av(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(!b){b=0;c=0}else{f=b;c=0;b=0;do{e=da(f+32|0,4,0,0)|0|0;k=Ku(a,da(f|0,4,0,0)|0|0)|0;b=C|b;j=Ku(a,da(f+40|0,4,0,0)|0|0)|0;b=b|C;i=Ku(a,da(f+48|0,4,0,0)|0|0)|0;b=b|C;h=zv(a,da(f+36|0,4,0,0)|0|0)|0;b=b|C;d=zv(a,da(f+44|0,4,0,0)|0|0)|0;c=k|c|j|i|h|d;b=b|C;if((e|0)!=0?(g=da(e|0,4,0,0)|0|0,(g|0)>0):0){d=0;do{i=Av(a,da(e+(d*72|0)+28|0,4,0,0)|0|0)|0;b=C|b;j=zv(a,da(e+(d*72|0)+52|0,4,0,0)|0|0)|0;c=i|c|j;b=b|C;d=d+1|0}while((d|0)<(g|0))}f=da(f+52|0,4,0,0)|0|0}while((f|0)!=0)}C=b;return c|0}function Bv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=da(b+18|0,2,0,0)|0|0;h=da(c+18|0,2,0,0)|0|0;e=h|i;if(((!((i&62)==0|(h&62)==0)?(d=e&65535,(d&26|0)==(d|0)|(d&38|0)==(d|0)):0)?(g=da(b|0,4,0,0)|0|0,f=da(c|0,4,0,0)|0|0,(Bu(da(g+12|0,4,0,0)|0|0,da(f+12|0,4,0,0)|0|0,-1)|0)==0):0)?(Bu(da(g+16|0,4,0,0)|0|0,da(f+16|0,4,0,0)|0|0,-1)|0)==0:0){if(d+65535&d)e=(d&24|0)==0?32:8;f=Lr(da(da(da(a|0,4,0,0)|0|0,4,0,0)|0|0,4,0,0)|0|0,g,0,0)|0;if(f){e=e&65535;d=79;while(1)if((e|0)==(2<<d+-79|0))break;else d=d+1|0;ea(f>>0|0,d|0,1,0);Du(a,yv(a,f,3)|0)}}return}function Cv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;ea(a|0,b|0,4,0);ea(a+4|0,b|0,4,0);a:do if((f|0)!=0&(d|0)>-1){ea(a+12>>0|0,da((da((da(f+12|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(d*24|0)+21>>0|0,1,0,0)|0|0|0,1,0);g=da(f+4|0,4,0,0)|0|0;if((da(g|0,2,0,0)|0|0)==(d|0))b=0;else{h=da(f+48|0,2,0,1)|0|0;i=0;while(1){b=i+1|0;if((i|0)>(h|0)){b=0;break a}if((da(g+(b<<1)|0,2,0,0)|0|0)==(d|0))break;else i=b}}ea(a+8|0,da((da(f+32|0,4,0,0)|0|0)+(b<<2)|0,4,0,0)|0|0,4,0);j=8}else{ea(a+12>>0|0,0|0,1,0);ea(a+8|0,0|0,4,0);j=8}while(0);if((j|0)==8){ea(a+16|0,e|0,4,0);ea(a+20|0,0|0,4,0);ea(a+24|0,c|0,4,0);ea(a+28|0,d|0,4,0);ea(a+13>>0|0,2|0,1,0);ea(a+14>>0|0,2|0,1,0);b=Dv(a)|0}return b|0}
[all...]
H A Dsqlite.js7 function Pt(b,d){b=b|0;d=d|0;var e=0;if(d&1)if(!(c[b+12>>2]|0))d=(c[b+20>>2]|0)==0?12:28;else d=28;else d=48;if((c[b+4>>2]&1024|0)==0?(e=c[b+8>>2]|0,(e|0)!=0):0){b=e;while(1)if(!(a[b>>0]|0))break;else b=b+1|0;d=(d|1)+(b-e&1073741823)|0}return d+7&-8|0}function Qt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[a>>2]|0;h=e+20|0;d=c[h>>2]|0;if((d|0)>0){g=0;f=c[e+16>>2]|0;while(1){e=c[(c[f+12>>2]|0)+16>>2]|0;if(e){d=e;do{Rt(a,c[d+8>>2]|0,b);d=c[d>>2]|0}while((d|0)!=0);d=c[h>>2]|0}g=g+1|0;if((g|0)>=(d|0))break;else f=f+16|0}}return}function Rt(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;f=c[d+8>>2]|0;if(f){m=(e|0)==0;k=d+68|0;l=a+408|0;do{a:do if(!m){i=f+32|0;d=b[f+48>>1]|0;if(d<<16>>16){h=c[f+4>>2]|0;d=d&65535;g=0;do{if((b[h+(g<<1)>>1]|0)>-1?($c(c[(c[i>>2]|0)+(g<<2)>>2]|0,e)|0)==0:0){n=9;break a}g=g+1|0}while((g|0)<(d|0))}}else n=9;while(0);if((n|0)==9){n=0;d=c[a>>2]|0;g=c[k>>2]|0;b:do if(g){j=c[d+20>>2]|0;if((j|0)>0){h=c[d+16>>2]|0;i=0;while(1){d=i+1|0;if((c[h+(i<<4)+12>>2]|0)==(g|0)){d=i;break b}if((d|0)<(j|0))i=d;else break}}else d=0}else d=-1e6;while(0);j=c[l>>2]|0;wr(a,d);j=((j|0)==0?a:j)+328|0;c[j>>2]=c[j>>2]|1<<d;rs(a,f,-1)}f=c[f+20>>2]|0}while((f|0)!=0)}return}function St(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[(c[(c[a>>2]|0)+16>>2]|0)+(b<<4)+12>>2]|0;g=c[a+408>>2]|0;wr(a,b);g=((g|0)==0?a:g)+328|0;c[g>>2]=c[g>>2]|1<<b;g=a+68|0;e=c[g>>2]|0;c[g>>2]=e+3;dv(a,b,e,0,0);f=(c[a+72>>2]|0)+1|0;g=c[g>>2]|0;d=c[d+16>>2]|0;if(d)do{ev(a,c[d+8>>2]|0,0,e,f,g);d=c[d>>2]|0}while((d|0)!=0);fv(a,b);return}function Tt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e=c[a>>2]|0;h=c[b+68>>2]|0;a:do if(h){i=c[e+20>>2]|0;if((i|0)>0){f=c[e+16>>2]|0;e=0;while(1){g=e+1|0;if((c[f+(e<<4)+12>>2]|0)==(h|0)){g=e;break a}if((g|0)<(i|0))e=g;else break}}else g=0}else g=-1e6;while(0);e=c[a+408>>2]|0;wr(a,g);e=((e|0)==0?a:e)+328|0;c[e>>2]=c[e>>2]|1<<g;e=a+68|0;f=c[e>>2]|0;c[e>>2]=f+3;if(!d)dv(a,g,f,c[b>>2]|0,28544);else dv(a,g,f,c[d>>2]|0,28536);ev(a,b,d,f,(c[a+72>>2]|0)+1|0,c[e>>2]|0);fv(a,g);return}function Ut(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;f=((d|0)/2|0)+1|0;f=ih(b,f,((f|0)<0)<<31>>31)|0;b=d+-1|0;if(f){if((b|0)>0){e=0;do{g=a[c+e>>0]|0;h=a[c+(e|1)>>0]|0;a[f+((e|0)/2|0)>>0]=(0-(h>>>6&1)&9)+h&15|(0-(g>>>6&1)&9)+g<<4;e=e+2|0}while((e|0)<(b|0));b=(d&-2|0)/2|0}else b=0;a[f+b>>0]=0}return f|0}function Vt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();h=m+8|0;l=m;k=c[b+8>>2]|0;g=d+8|0;do if(!(c[d+4>>2]&1024)){g=c[g>>2]|0;d=fi(g,l)|0;if((d|0)!=0?!((d|0)==2&(e|0)!=0):0)if(!(Bc(g,29144,2)|0)){c[h>>2]=g;ph(b,29152,h);break}else{Wt(k,g,e,f);break}if(e){if((d|0)==2){d=0;g=-2147483648}else{d=l;d=$v(0,0,c[d>>2]|0,c[d+4>>2]|0)|0;g=C}e=l;c[e>>2]=d;c[e+4>>2]=g}d=ih(c[k>>2]|0,8,0)|0;if(d){e=l;h=c[e>>2]|0;e=c[e+4>>2]|0;g=d;b=g;a[b>>0]=h;a[b+1>>0]=h>>8;a[b+2>>0]=h>>16;a[b+3>>0]=h>>24;g=g+4|0;a[g>>0]=e;a[g+1>>0]=e>>8;a[g+2>>0]=e>>16;a[g+3>>0]=e>>24}th(k,sh(k,26,0,f,0)|0,d,-13)}else{d=c[g>>2]|0;sh(k,25,(e|0)==0?d:0-d|0,f,0)|0}while(0);i=m;return}function Wt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,k=0,l=0,m=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;if(d){g=d;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;Pl(d,k,g-d&1073741823,1)|0;if(e)h[k>>3]=-+h[k>>3];g=ih(c[b>>2]|0,8,0)|0;if(g){d=k;m=c[d>>2]|0;d=c[d+4>>2]|0;e=g;k=e;a[k>>0]=m;a[k+1>>0]=m>>8;a[k+2>>0]=m>>16;a[k+3>>0]=m>>24;e=e+4|0;a[e>>0]=d;a[e+1>>0]=d>>8;a[e+2>>0]=d>>16;a[e+3>>0]=d>>24}th(b,sh(b,133,0,f,0)|0,g,-12)}i=l;return}function Xt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))ba();g=m;a:do if(!d)k=0;else while(1){f=c[d+4>>2]|0;if(!(f&4096)){k=d;break a}if(!(f&262144))d=d+12|0;else d=c[(c[d+20>>2]|0)+4>>2]|0;d=c[d>>2]|0;if(!d){k=0;break}}while(0);b:do if(((a[b+23>>0]|0)!=0?(a[k>>0]|0)!=-97:0)?(c[g+0>>2]=0,c[g+4>>2]=0,c[g+8>>2]=0,c[g+12>>2]=0,c[g+16>>2]=0,c[g+20>>2]=0,f=g+20|0,a[f>>0]=2,c[g>>2]=78,c[g+4>>2]=79,c[g+24>>2]=0,ns(g,k)|0,(a[f>>0]|0)!=0):0){f=c[b+316>>2]|0;c[e>>2]=0;c:do if((f|0)!=0?(h=c[f>>2]|0,(h|0)>0):0){d=h;f=c[f+4>>2]|0;while(1){if((a[f+13>>0]&4)!=0?(yu(c[f>>2]|0,k,-1)|0)==0:0)break;d=d+-1|0;if((d|0)<=0)break c;else f=f+20|0}f=c[f+16>>2]|0;break b}while(0);d=b+72|0;f=(c[d>>2]|0)+1|0;c[d>>2]=f;Ct(b,k,f,1)}else l=18;while(0);do if((l|0)==18){d=b+19|0;f=a[d>>0]|0;if(!(f<<24>>24)){d=b+72|0;f=(c[d>>2]|0)+1|0;c[d>>2]=f}else{f=f+-1<<24>>24;a[d>>0]=f;f=c[b+((f&255)<<2)+24>>2]|0}d=es(b,k,f)|0;if((d|0)==(f|0)){c[e>>2]=f;break}else{Wr(b,f);c[e>>2]=0;f=d;break}}while(0);i=m;return f|0}function Yt(b,d,e,f,g,h,i,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0;l=Ku(b,d,e)|0;k=xu(d,gv(e)|0)|0;e=b+8|0;d=c[e>>2]|0;th(d,sh(d,f,h,i,g)|0,l,-4);e=c[e>>2]|0;d=c[e+4>>2]|0;if(d)a[d+(((c[e+32>>2]|0)+-1|0)*20|0)+3>>0]=k&255|j;return}function Zt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=b+100|0;c[d>>2]=(c[d>>2]|0)+-1;g=b+19|0;j=0;k=b+116|0;while(1){h=k+12|0;i=c[h>>2]|0;if((i|0)!=0?(c[k+8>>2]|0)>(c[d>>2]|0):0){e=k+6|0;if(a[e>>0]|0){f=a[g>>0]|0;if((f&255)<8){a[g>>0]=f+1<<24>>24;c[b+((f&255)<<2)+24>>2]=i}a[e>>0]=0}c[h>>2]=0}j=j+1|0;if((j|0)==10)break;else k=k+20|0}return}function _t(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=c[d>>2]|0;a:do if(e){b:while(1){g=c[e+4>>2]|0;if(g&512){e=0;k=21;break a}switch(a[e>>0]|0){case -97:{if((a[e+38>>0]|0)==95){k=7;break b}else k=8;break}case 38:case -98:{e=c[e+12>>2]|0;break}case 95:{k=7;break b}case 62:case -102:case -100:{k=8;break}default:k=11}if((k|0)==8){f=c[e+44>>2]|0;if(!f)k=11;else{k=9;break}}c:do if((k|0)==11){k=0;if(!(g&256)){e=0;k=21;break a}f=c[e+12>>2]|0;if((f|0)!=0?(c[f+4>>2]&256|0)!=0:0){e=f;continue b}h=c[e+16>>2]|0;f=c[e+20>>2]|0;if((f|0)!=0&(g&2048|0)==0?(i=c[f>>2]|0,(i|0)>0):0){f=c[f+4>>2]|0;g=0;while(1){e=c[f+(g*20|0)>>2]|0;g=g+1|0;if(c[e+4>>2]&256)break c;if((g|0)>=(i|0)){e=h;break}}}else e=h}while(0);if(!e){e=0;k=21;break a}}if((k|0)==7)e=ss(d,a[j+62>>0]|0,0,c[e+8>>2]|0)|0;else if((k|0)==9){e=b[e+32>>1]|0;if(e<<16>>16<=-1){e=0;k=21;break}e=Un(j,a[j+62>>0]|0,c[(c[f+4>>2]|0)+((e<<16>>16)*24|0)+16>>2]|0,0)|0}if(e)if(!(ss(d,a[(c[d>>2]|0)+62>>0]|0,e,c[e>>2]|0)|0))e=0;else k=21;else{e=0;k=21}}else{e=0;k=21}while(0);return e|0}function $t(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r+4|0;p=r;c[q>>2]=0;c[p>>2]=0;if((((h|0)!=0?(a[h>>0]|0)==-102:0)?(m=c[h+44>>2]|0,(m|0)!=0):0)?(a[m+44>>0]&16)!=0:0){h=m+60|0;while(1){h=c[h>>2]|0;if((c[h>>2]|0)==(d|0))break;else h=h+24|0}l=c[h+8>>2]|0;k=(c[l>>2]|0)+72|0;if((c[k>>2]|0)!=0?(o=f+24|0,n=gh(d,c[o>>2]|0)|0,(n|0)!=0):0){m=a[n>>0]|0;if(m<<24>>24){h=n;do{a[h>>0]=a[9328+(m&255)>>0]|0;h=h+1|0;m=a[h>>0]|0}while(m<<24>>24!=0)}g=pc[c[k>>2]&31](l,g,n,q,p)|0;ig(d,n);if(g){h=c[o>>2]|0;if(!h){h=37;l=0}else{l=h;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;h=(l-h&1073741823)+37|0;l=0}k=ih(d,h,l)|0;if(k){bw(k|0,0,h|0)|0;m=k+0|0;l=f+0|0;h=m+36|0;do{c[m>>2]=c[l>>2];m=m+4|0;l=l+4|0}while((m|0)<(h|0));m=k+36|0;c[k+24>>2]=m;h=c[o>>2]|0;if(!h)l=1;else{l=h;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=(l-h&1073741823)+1|0}gw(m|0,h|0,l|0)|0;c[k+12>>2]=c[q>>2];c[k+4>>2]=c[p>>2];p=k+2|0;b[p>>1]=e[p>>1]|16}else k=f}else k=f}else k=f}else k=f;i=r;return k|0}function au(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+80|0;if((i|0)>=(j|0))ba();x=z;v=z+72|0;o=z+52|0;w=z+48|0;n=z+28|0;y=Kq(b)|0;a:do if(!y)g=0;else{g=b+100|0;c[g>>2]=(c[g>>2]|0)+1;g=d+4|0;if(!(c[g>>2]&32)){q=Kq(b)|0;m=b+80|0;h=c[m>>2]|0;c[m>>2]=h+1;h=sh(q,44,h,0,0)|0}else h=-1;if((a[b+450>>0]|0)==2){l=c[b>>2]|0;m=(a[d>>0]|0)==75?29104:29112;q=c[b+468>>2]|0;c[x>>2]=(h|0)>-1?10360:29088;c[x+4>>2]=m;c[x+8>>2]=q;l=qh(l,29056,x)|0;th(y,sh(y,157,c[b+464>>2]|0,0,0)|0,l,-1);l=d}else l=d;m=a[l>>0]|0;b:do if(m<<24>>24==75){n=d+12|0;k=gv(c[n>>2]|0)|0;a[v>>0]=k;s=b+68|0;t=c[s>>2]|0;c[s>>2]=t+1;s=d+28|0;c[s>>2]=t;r=(f|0)!=0;t=sh(y,57,t,r&1^1,0)|0;if(r)u=0;else u=Ns(c[b>>2]|0,1,1)|0;m=d+20|0;do if(!(c[g>>2]&2048)){m=c[m>>2]|0;if(m){if(!(k<<24>>24))a[v>>0]=65;if(u)c[u+20>>2]=_t(b,c[n>>2]|0)|0;f=b+19|0;k=a[f>>0]|0;if(k<<24>>24){q=k+-1<<24>>24;a[f>>0]=q;l=c[b+((q&255)<<2)+24>>2]|0;if(!(q<<24>>24))p=24;else{q=k+-2<<24>>24;a[f>>0]=q;q=c[b+((q&255)<<2)+24>>2]|0}}else{p=b+72|0;l=(c[p>>2]|0)+1|0;c[p>>2]=l;p=24}if((p|0)==24){p=b+72|0;q=(c[p>>2]|0)+1|0;c[p>>2]=q}if(r)sh(y,28,0,q,0)|0;n=c[m>>2]|0;if((n|0)>0){k=x+20|0;g=x+4|0;p=x+24|0;o=y+32|0;f=c[m+4>>2]|0;while(1){m=c[f>>2]|0;do if((h|0)>-1){c[x+0>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;c[x+12>>2]=0;c[x+16>>2]=0;c[x+20>>2]=0;a[k>>0]=1;c[x>>2]=78;c[g>>2]=79;c[p>>2]=0;ns(x,m)|0;if(a[k>>0]|0)break;vh(y,h);h=-1}while(0);do if(r)if(!(Is(m,w)|0)){m=es(b,m,l)|0;sh(y,38,m,(c[o>>2]|0)+2|0,0)|0;sh(y,75,c[s>>2]|0,q,m)|0;break}else{sh(y,84,c[s>>2]|0,q,c[w>>2]|0)|0;break}else{m=es(b,m,l)|0;th(y,sh(y,49,m,1,q)|0,v,1);$s(b,m,1);sh(y,110,c[s>>2]|0,q,0)|0}while(0);n=n+-1|0;if((n|0)<=0)break;else f=f+20|0}}Wr(b,l);Wr(b,q)}if(!u){k=h;g=0;break b}}else{l=c[m>>2]|0;q=c[s>>2]|0;a[o>>0]=11;c[o+4>>2]=q;c[o+8>>2]=0;c[o+12>>2]=0;a[o+1>>0]=k;c[l+8>>2]=0;if(!(er(b,l,o)|0)){c[u+20>>2]=Ku(b,c[n>>2]|0,c[c[(c[l>>2]|0)+4>>2]>>2]|0)|0;break}if(!u){g=0;break a}q=(c[u>>2]|0)+-1|0;c[u>>2]=q;if(q){g=0;break a}Sc(u);g=0;break a}while(0);th(y,t,u,-6);k=h;g=0}else{k=c[d+20>>2]|0;l=b+72|0;g=(c[l>>2]|0)+1|0;c[l>>2]=g;a[n>>0]=0;l=n+4|0;c[l>>2]=g;a[n+1>>0]=0;f=n+8|0;c[f>>2]=0;c[n+12>>2]=0;if(m<<24>>24==119){a[n>>0]=10;c[f>>2]=g;sh(y,28,0,g,0)|0}else{a[n>>0]=3;sh(y,25,0,g,0)|0}q=k+60|0;Ck(c[b>>2]|0,c[q>>2]|0);c[q>>2]=Vq(b,132,0,0,20624)|0;c[k+8>>2]=0;if(er(b,k,n)|0){g=0;break a}k=h;g=c[l>>2]|0}while(0);if(e)hv(y,c[d+28>>2]|0,e);if((k|0)>-1){h=c[y+32>>2]|0;if(h>>>0>k>>>0)c[(c[y+4>>2]|0)+(k*20|0)+8>>2]=h;c[(c[y+24>>2]|0)+88>>2]=h+-1}Zt(b)}while(0);i=z;return g|0}function bu(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))ba();m=y+4|0;v=y+8|0;t=y;c[m>>2]=0;x=c[b+8>>2]|0;h=(f|0)==(g|0);l=iv(b,e,3,h?0:m)|0;a[v>>0]=jv(e)|0;n=b+100|0;c[n>>2]=(c[n>>2]|0)+1;n=b+19|0;k=a[n>>0]|0;if(!(k<<24>>24)){r=b+72|0;w=(c[r>>2]|0)+1|0;c[r>>2]=w}else{w=k+-1<<24>>24;a[n>>0]=w;w=c[b+((w&255)<<2)+24>>2]|0}k=e+12|0;Nq(b,c[k>>2]|0,w);do if((l|0)==5){r=c[e+20>>2]|0;p=_t(b,c[k>>2]|0)|0;s=ts(x)|0;q=(g|0)!=(f|0);if(q){k=a[n>>0]|0;if(!(k<<24>>24)){o=b+72|0;k=(c[o>>2]|0)+1|0;c[o>>2]=k}else{k=k+-1<<24>>24;a[n>>0]=k;k=c[b+((k&255)<<2)+24>>2]|0}sh(x,85,w,w,k)|0;o=k}else o=0;if((c[r>>2]|0)>0){n=r+4|0;m=(o|0)==0;l=x+4|0;k=x+32|0;h=0;do{e=Xt(b,c[(c[n>>2]|0)+(h*20|0)>>2]|0,t)|0;if(!m?(Qu(c[(c[n>>2]|0)+(h*20|0)>>2]|0)|0)!=0:0)sh(x,85,o,e,o)|0;if((h|0)<((c[r>>2]|0)+-1|0)|q){th(x,sh(x,79,w,s,e)|0,p,-4);e=c[l>>2]|0;if(e)a[e+(((c[k>>2]|0)+-1|0)*20|0)+3>>0]=a[v>>0]|0}else{th(x,sh(x,78,w,f,e)|0,p,-4);e=c[l>>2]|0;if(e)a[e+(((c[k>>2]|0)+-1|0)*20|0)+3>>0]=d[v>>0]|0|16}Wr(b,c[t>>2]|0);h=h+1|0}while((h|0)<(c[r>>2]|0))}if(o){sh(x,76,o,g,0)|0;sh(x,16,0,f,0)|0}k=c[x+24>>2]|0;h=~s;if((s|0)<0?(u=c[k+112>>2]|0,(u|0)!=0):0)c[u+(h<<2)>>2]=c[x+32>>2];c[k+88>>2]=(c[x+32>>2]|0)+-1;Wr(b,o)}else{do if(Qu(c[k>>2]|0)|0){if(h){sh(x,76,w,f,0)|0;break}k=sh(x,77,w,0,0)|0;sh(x,108,c[e+28>>2]|0,f,0)|0;sh(x,16,0,g,0)|0;h=c[x+32>>2]|0;if(h>>>0>k>>>0)c[(c[x+4>>2]|0)+(k*20|0)+8>>2]=h;c[(c[x+24>>2]|0)+88>>2]=h+-1}while(0);if((l|0)==1){sh(x,38,w,f,0)|0;sh(x,70,c[e+28>>2]|0,f,w)|0;break}th(x,sh(x,48,w,1,0)|0,v,1);h=c[e+28>>2]|0;if(!(c[m>>2]|0)){th(x,sh(x,68,h,f,w)|0,1,-14);break}k=sh(x,69,h,0,w)|0;th(x,k,1,-14);sh(x,76,c[m>>2]|0,g,0)|0;sh(x,16,0,f,0)|0;h=c[x+32>>2]|0;if(h>>>0>k>>>0)c[(c[x+4>>2]|0)+(k*20|0)+8>>2]=h;c[(c[x+24>>2]|0)+88>>2]=h+-1}while(0);Wr(b,w);Zt(b);i=y;return}function cu(f,g){f=f|0;g=g|0;var k=0,l=0,m=0,n=0,o=0,p=0.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;C=i;i=i+48|0;if((i|0)>=(j|0))ba();B=C;z=C+28|0;k=c[f+24>>2]|0;A=c[k>>2]|0;x=g+4|0;n=c[x>>2]|0;a:do if(!(n&4)){c[x>>2]=n|4;switch(d[g>>0]|0){case 27:{k=kv(A,0,0,c[g+8>>2]|0,k,g)|0;break a}case 122:{l=c[g+16>>2]|0;if((a[l>>0]|0)==27){n=l;l=g;m=0}else{n=c[l+16>>2]|0;m=c[(c[g+12>>2]|0)+8>>2]|0}k=kv(A,m,c[(c[l+12>>2]|0)+8>>2]|0,c[n+8>>2]|0,k,g)|0;break a}case 135:{l=k+28|0;k=b[l>>1]|0;if(k&4){c[B>>2]=27456;ph(A,27472,B);k=b[l>>1]|0}if(k&16){c[B>>2]=27456;ph(A,27512,B)}break}case 153:{w=g+20|0;t=c[w>>2]|0;if(!t)m=0;else m=c[t>>2]|0;n=a[(c[A>>2]|0)+62>>0]|0;y=k+28|0;if(b[y>>1]&16){c[B>>2]=27200;ph(A,27512,B)}u=c[g+8>>2]|0;if(!u)r=0;else{o=u;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;r=o-u&1073741823}l=Oh(c[A>>2]|0,u,r,m,n,0)|0;do if(!l){if(Oh(c[A>>2]|0,u,r,-2,n,0)|0){c[B>>2]=r;c[B+4>>2]=u;ph(A,27392,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1;break}if(!(a[(c[A>>2]|0)+145>>0]|0)){c[B>>2]=r;c[B+4>>2]=u;ph(A,27368,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1}}else{q=(c[l+12>>2]|0)==0;v=l+2|0;do if(b[v>>1]&1024){c[x>>2]=c[x>>2]|266240;if((m|0)!=2){c[g+28>>2]=(a[c[l+24>>2]>>0]|0)==117?8388608:125829120;break}o=c[(c[t+4>>2]|0)+20>>2]|0;h[B>>3]=-1.0;if((a[o>>0]|0)==-123){n=c[o+8>>2]|0;if(!n)o=0;else{o=n;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;o=o-n&1073741823}Pl(n,B,o,1)|0;p=+h[B>>3];if(!(p>1.0)){o=~~(p*134217728.0);c[g+28>>2]=o;if((o|0)>=0)break}else s=22}else s=22;if((s|0)==22)c[g+28>>2]=-1;ph(A,27216,B);s=k+24|0;c[s>>2]=(c[s>>2]|0)+1}while(0);o=l+24|0;n=Oq(A,31,0,c[o>>2]|0,0)|0;if(!n){if(b[v>>1]&2048)c[x>>2]=c[x>>2]|524288;if(!q)break;o=b[y>>1]|0;if(!(o&1)){c[B>>2]=r;c[B+4>>2]=u;ph(A,27328,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1;break}b[y>>1]=o&65534;hu(f,t)|0;a[g>>0]=-101;n=g+38|0;a[n>>0]=0;b:do if(k){m=B+24|0;l=z+4|0;o=z+8|0;while(1){u=c[k+4>>2]|0;c[B+0>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;c[B+12>>2]=0;c[B+16>>2]=0;c[B+20>>2]=0;c[B>>2]=87;c[m>>2]=z;c[z>>2]=u;c[l>>2]=0;c[o>>2]=0;hu(B,c[w>>2]|0)|0;if((c[l>>2]|0)>0)break;if(!(c[o>>2]|0))break;a[n>>0]=(a[n>>0]|0)+1<<24>>24;k=c[k+16>>2]|0;if(!k)break b}u=k+28|0;b[u>>1]=e[v>>1]&4096|e[u>>1]|2}while(0);b[y>>1]=e[y>>1]|1;k=1;break a}else if((n|0)==1){c[B>>2]=c[o>>2];ph(A,27288,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1}a[g>>0]=101;k=1;break a}while(0);hu(f,t)|0;k=1;break a}case 75:case 20:case 119:{if(n&2048){o=k+20|0;l=c[o>>2]|0;m=k+28|0;n=b[m>>1]|0;if(n&4){c[B>>2]=27440;ph(A,27472,B);n=b[m>>1]|0}if(n&16){c[B>>2]=27440;ph(A,27512,B)}gu(f,c[g+20>>2]|0)|0;if((l|0)!=(c[o>>2]|0))c[x>>2]=c[x>>2]|32}break}default:{}}if(!(c[A+64>>2]|0))k=(a[(c[A>>2]|0)+65>>0]|0)!=0?2:0;else k=2}else k=1;while(0);i=C;return k|0}function du(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,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;M=i;i=i+80|0;if((i|0)>=(j|0))ba();L=M;J=M+64|0;E=M+32|0;m=b[f+6>>1]|0;h=m&65535;a:do if(!(h&2)){D=c[d+24>>2]|0;K=c[d+12>>2]|0;d=c[K>>2]|0;if(!(h&16)){zs(K,f,D);if(c[K+64>>2]|0){g=2;break}g=(a[d+65>>0]|0)!=0?2:1;break}F=f+52|0;g=(c[F>>2]|0)!=0;G=(f|0)==0;b:do if(!G){h=E+28|0;o=E+4|0;A=E+16|0;B=E+8|0;w=d+65|0;v=K+492|0;u=(D|0)==0;t=L+4|0;s=L+12|0;r=L+24|0;q=K+64|0;x=f;c:while(1){y=x+6|0;b[y>>1]=m&65535|2;c[E+0>>2]=0;c[E+4>>2]=0;c[E+8>>2]=0;c[E+12>>2]=0;c[E+16>>2]=0;c[E+20>>2]=0;c[E+24>>2]=0;c[E+28>>2]=0;c[E>>2]=K;if(hs(E,c[x+60>>2]|0)|0){g=2;break a}if(hs(E,c[x+64>>2]|0)|0){g=2;break a}m=c[x+32>>2]|0;if(b[y>>1]&8192){z=x+48|0;c[(c[m+28>>2]|0)+48>>2]=c[z>>2];c[z>>2]=0}z=x+32|0;if((c[m>>2]|0)>0){p=0;do{k=c[m+(p*72|0)+28>>2]|0;if(k){d=c[v>>2]|0;if(u)n=0;else{n=0;l=D;do{n=(c[l+20>>2]|0)+n|0;l=c[l+16>>2]|0}while((l|0)!=0)}l=c[m+(p*72|0)+16>>2]|0;if(l)c[v>>2]=l;c[L+0>>2]=0;c[L+4>>2]=0;c[L+8>>2]=0;c[L+12>>2]=0;c[L+16>>2]=0;c[L+20>>2]=0;c[L>>2]=82;c[t>>2]=83;c[s>>2]=K;c[r>>2]=D;gu(L,k)|0;c[v>>2]=d;if(c[q>>2]|0){g=2;break a}if(a[w>>0]|0){g=2;break a}if(!u){l=D;do{n=n-(c[l+20>>2]|0)|0;l=c[l+16>>2]|0}while((l|0)!=0)}m=m+(p*72|0)+45|0;a[m>>0]=a[m>>0]&-3|((n|0)!=0&1)<<1&255;m=c[z>>2]|0}p=p+1|0}while((p|0)<(c[m>>2]|0))}b[h>>1]=1;c[o>>2]=m;c[A>>2]=D;n=c[x>>2]|0;if((c[n>>2]|0)>0){m=n+4|0;l=0;do{if(hs(E,c[(c[m>>2]|0)+(l*20|0)>>2]|0)|0){g=2;break a}l=l+1|0}while((l|0)<(c[n>>2]|0))}k=c[x+40>>2]|0;m=(k|0)!=0;n=b[h>>1]|0;if(!m?(C=n&65535,(C&2|0)==0):0)b[h>>1]=C&65534;else b[y>>1]=n&4096|e[y>>1]|4;n=c[x+44>>2]|0;if(!((n|0)==0|m)){H=32;break}c[B>>2]=c[x>>2];if(hs(E,n)|0){g=2;break a}if(hs(E,c[x+36>>2]|0)|0){g=2;break a}c[A>>2]=0;b[h>>1]=e[h>>1]|1;if(b[y>>1]&8192){z=(c[(c[z>>2]|0)+28>>2]|0)+48|0;c[x+48>>2]=c[z>>2];c[z>>2]=0}if(!g?(mv(E,x,c[x+48>>2]|0,26880)|0)!=0:0){g=2;break a}if(a[w>>0]|0){g=2;break a}do if(m){if(mv(E,x,k,26888)|0){g=2;break a}if(a[w>>0]|0){g=2;break a}l=c[k>>2]|0;if((l|0)<=0)break;n=0;m=c[k+4>>2]|0;while(1){if(c[(c[m>>2]|0)+4>>2]&2){H=46;break c}n=n+1|0;if((n|0)>=(l|0))break;else m=m+20|0}}while(0);l=c[x+52>>2]|0;if(!l)break b;x=l;m=b[l+6>>1]|0}if((H|0)==32){ph(K,26832,L);g=2;break a}else if((H|0)==46){ph(K,26896,L);g=2;break a}}while(0);if(g?(I=c[f+48>>2]|0,(I|0)!=0):0){C=c[K>>2]|0;h=c[I>>2]|0;if((h|0)>(c[C+96>>2]|0)){ph(K,26960,L);g=2;break}if((h|0)>0){d=I+4|0;g=0;do{h=(c[d>>2]|0)+(g*20|0)+13|0;a[h>>0]=a[h>>0]&-2;g=g+1|0;h=c[I>>2]|0}while((g|0)<(h|0))}c[f+56>>2]=0;g=c[F>>2]|0;if(!g)if(G)d=I+4|0;else H=60;else while(1){c[g+56>>2]=f;f=c[g+52>>2]|0;if(!f){f=g;H=60;break}else{B=g;g=f;f=B}}d:do if((H|0)==60){d=I+4|0;u=C+65|0;v=L+4|0;w=L+8|0;x=L+28|0;y=L+24|0;z=L+4|0;t=f;e:while(1){s=c[t>>2]|0;if((h|0)<=0)break d;q=t+32|0;g=0;p=0;r=c[d>>2]|0;while(1){c[J>>2]=-1;o=r+13|0;do if(!(a[o>>0]&1)){h=c[r>>2]|0;f:do if(!h)h=0;else while(1){f=c[h+4>>2]|0;if(!(f&4096))break f;if(!(f&262144))h=h+12|0;else h=c[(c[h+20>>2]|0)+4>>2]|0;h=c[h>>2]|0;if(!h){h=0;break}}while(0);if(!(Is(h,J)|0)){f=nv(s,h)|0;c[J>>2]=f;if(!f){n=Ir(C,h,0,0)|0;if(!(a[u>>0]|0)){k=c[t>>2]|0;c[L+0>>2]=0;c[L+4>>2]=0;c[L+8>>2]=0;c[L+12>>2]=0;c[L+16>>2]=0;c[L+20>>2]=0;c[L+24>>2]=0;c[L+28>>2]=0;c[L>>2]=K;c[v>>2]=c[q>>2];c[w>>2]=k;b[x>>1]=1;c[y>>2]=0;A=(c[K>>2]|0)+68|0;f=a[A>>0]|0;a[A>>0]=1;B=hs(L,n)|0;a[A>>0]=f;g:do if(!B){m=k+4|0;l=c[k>>2]|0;k=0;while(1){if((k|0)>=(l|0)){f=0;break g}f=k+1|0;if((yu(c[(c[m>>2]|0)+(k*20|0)>>2]|0,n,-1)|0)<2)break;else k=f}}else f=0;while(0);c[J>>2]=f}else f=0;Ck(C,n)}if((f|0)<=0){f=1;break}}else{k=c[J>>2]|0;f=c[s>>2]|0;if((k|0)<1|(k|0)>(f|0))break e;else f=k}c[L>>2]=0;c[z>>2]=0;k=jr(C,132,L,0)|0;if(!k){g=2;break a}l=k+4|0;c[l>>2]=c[l>>2]|1024;c[k+8>>2]=f;l=c[r>>2]|0;if((l|0)==(h|0))c[r>>2]=k;else c[l+12>>2]=k;Ck(C,h);b[r+16>>1]=f;a[o>>0]=a[o>>0]|1;f=p}else f=p;while(0);g=g+1|0;h=c[I>>2]|0;if((g|0)>=(h|0))break;else{p=f;r=r+20|0}}t=c[t+56>>2]|0;if(!((t|0)!=0&(f|0)!=0))break d}c[L>>2]=g+1;c[L+4>>2]=26880;c[L+8>>2]=f;ph(K,27064,L);g=2;break a}while(0);f=0;while(1){if((f|0)>=(h|0)){g=1;break a}g=f+1|0;if(!(a[(c[d>>2]|0)+(f*20|0)+13>>0]&1))break;else f=g}c[L>>2]=g;ph(K,27e3,L);g=2}else g=1}else g=1;while(0);i=M;return g|0}function eu(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;x=c[e>>2]|0;a:do if(f){s=c[f>>2]|0;e=s*24|0;k=ih(x,e,0)|0;if(k)bw(k|0,0,e|0)|0;b[g>>1]=s;c[h>>2]=k;if((s|0)>0){q=f+4|0;t=x+65|0;e=0;r=k;while(1){n=c[q>>2]|0;f=c[n+(e*20|0)>>2]|0;b:do if(!f)f=0;else while(1){l=c[f+4>>2]|0;if(!(l&4096))break b;if(!(l&262144))f=f+12|0;else f=c[(c[f+20>>2]|0)+4>>2]|0;f=c[f>>2]|0;if(!f){f=0;break}}while(0);l=c[n+(e*20|0)+4>>2]|0;do if(!l){while(1){l=a[f>>0]|0;if(l<<24>>24==27){y=24;break}else if(l<<24>>24==-102){v=f;y=18;break}else if(l<<24>>24!=122)break;f=c[f+16>>2]|0}if((y|0)==24){y=0;c[w>>2]=c[f+8>>2];f=qh(x,10344,w)|0;break}if((y|0)==18?(y=0,u=c[v+44>>2]|0,(u|0)!=0):0){f=b[v+32>>1]|0;if(f<<16>>16<0)f=b[u+36>>1]|0;else f=f<<16>>16;if((f|0)>-1)f=c[(c[u+4>>2]|0)+(f*24|0)>>2]|0;else f=20456;c[w>>2]=f;f=qh(x,10344,w)|0;break}c[w>>2]=c[n+(e*20|0)+8>>2];f=qh(x,10344,w)|0}else f=gh(x,l)|0;while(0);if(a[t>>0]|0)break;if(!f){m=0;f=0}else{l=f;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;m=l-f&1073741823}c:do if((e|0)>0){l=0;n=0;o=m;p=f;while(1){if(!($c(c[k+(n*24|0)>>2]|0,p)|0)){f=o;while(1){m=f+-1|0;if((m|0)<=1)break;if(((d[p+m>>0]|0)+-48|0)>>>0<10)f=m;else break}if((f|0)>0)m=(a[p+m>>0]|0)==58?m:o;else m=o;a[p+m>>0]=0;l=l+1|0;c[w>>2]=p;c[w+4>>2]=l;f=qh(x,26824,w)|0;ig(x,p);if(!f){f=0;break c}else n=-1}else{m=o;f=p}n=n+1|0;if((n|0)>=(e|0))break;else{o=m;p=f}}}while(0);c[r>>2]=f;e=e+1|0;if((e|0)<(s|0))r=r+24|0;else{f=t;break a}}ig(x,f);f=t}else y=6}else{b[g>>1]=0;c[h>>2]=0;k=0;y=6}while(0);if((y|0)==6){f=x+65|0;e=0}if(a[f>>0]|0){if((e|0)>0){f=0;do{ig(x,c[k+(f*24|0)>>2]|0);f=f+1|0}while((f|0)!=(e|0))}ig(x,k);c[h>>2]=0;b[g>>1]=0}i=z;return}function fu(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;r=i;i=i+32|0;if((i|0)>=(j|0))ba();q=r;p=c[e>>2]|0;if(!(a[p+65>>0]|0)){c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[q+12>>2]=0;c[q+16>>2]=0;c[q+20>>2]=0;c[q+24>>2]=0;c[q+28>>2]=0;c[q+4>>2]=c[g+32>>2];m=c[(c[g>>2]|0)+4>>2]|0;l=f+38|0;if((b[l>>1]|0)>0){g=0;h=0;n=0;o=c[f+4>>2]|0;while(1){k=c[m+(n*20|0)>>2]|0;s=o+22|0;c[o+12>>2]=gh(p,uu(q,k,s)|0)|0;g=fw(d[s>>0]|0,0,g|0,h|0)|0;h=C;s=gv(k)|0;a[o+21>>0]=s<<24>>24==0?65:s;k=_t(e,k)|0;if(k)c[o+16>>2]=gh(p,c[k>>2]|0)|0;n=n+1|0;if((n|0)>=(b[l>>1]|0))break;else o=o+24|0}h=ew(g|0,h|0,2)|0;g=C}else{h=0;g=0}b[f+42>>1]=bs(h,g)|0}i=r;return}function gu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;do if(!b)d=0;else{g=a+4|0;e=c[g>>2]|0;if((e|0)==0?(c[a+8>>2]|0)==0:0){d=0;break}j=a+16|0;c[j>>2]=(c[j>>2]|0)+1;h=a+8|0;a:while(1){if((e|0)!=0?(d=nc[e&127](a,b)|0,(d|0)!=0):0){k=24;break}if(hu(a,c[b>>2]|0)|0){k=19;break}if(ns(a,c[b+36>>2]|0)|0){k=19;break}if(hu(a,c[b+40>>2]|0)|0){k=19;break}if(ns(a,c[b+44>>2]|0)|0){k=19;break}if(hu(a,c[b+48>>2]|0)|0){k=19;break}if(ns(a,c[b+60>>2]|0)|0){k=19;break}if(ns(a,c[b+64>>2]|0)|0){k=19;break}e=c[b+32>>2]|0;if((e|0)!=0?(i=c[e>>2]|0,(i|0)>0):0){f=i;e=e+8|0;while(1){if(gu(a,c[e+20>>2]|0)|0){k=19;break a}f=f+-1|0;if((f|0)<=0)break;else e=e+72|0}}e=c[h>>2]|0;if(e)fc[e&15](a,b);b=c[b+52>>2]|0;if(!b){d=0;break}e=c[g>>2]|0}if((k|0)==19){c[j>>2]=(c[j>>2]|0)+-1;d=2;break}else if((k|0)==24)d=d&2;c[j>>2]=(c[j>>2]|0)+-1}while(0);return d|0}function hu(a,b){a=a|0;b=b|0;var d=0;a:do if((b|0)!=0?(d=c[b>>2]|0,(d|0)>0):0){b=c[b+4>>2]|0;while(1){if(ns(a,c[b>>2]|0)|0){d=2;break a}d=d+-1|0;if((d|0)<=0){d=0;break}else b=b+20|0}}else d=0;while(0);return d|0}function iu(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=d;c[b>>2]=0;if((c[a+4>>2]&1|0)==0?(Is(a,b)|0)!=0:0)a=(c[b>>2]|0)==0&1;else a=0;i=d;return a|0}function ju(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba();q=s;l=c[g+12>>2]|0;c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[q+12>>2]=0;c[q+16>>2]=0;c[q+20>>2]=200;a[q+24>>0]=1;a[q+25>>0]=0;c[q>>2]=c[d>>2];o=g+46|0;if(b[o>>1]|0){p=g+4|0;m=l+4|0;r=0;do{n=c[(c[m>>2]|0)+((b[(c[p>>2]|0)+(r<<1)>>1]|0)*24|0)>>2]|0;if(r)Ok(q,28920,2);k=c[l>>2]|0;if(!k)h=0;else{h=k;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=h-k&1073741823}Ok(q,k,h);Ok(q,28928,1);if(!n)h=0;else{h=n;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=h-n&1073741823}Ok(q,n,h);r=r+1|0}while((r|0)<(e[o>>1]|0))}r=pg(q)|0;vs(d,(a[g+51>>0]&3)==2?1555:2067,f,r,-1,2);i=s;return}function ku(a,b){a=a|0;b=b|0;return 0}function lu(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r+8|0;o=r;p=f+52|0;a:do if((c[p>>2]|0)!=0?(h=c[f+48>>2]|0,!((h|0)==0|(f|0)==0)):0){g=f;while(1){n=a[g+4>>0]|0;if(!(n<<24>>24==119|n<<24>>24==116))break;g=c[g+52>>2]|0;if(!g){g=0;break a}}k=c[h+4>>2]|0;g=c[h>>2]|0;while(1){h=g+-1|0;if((g|0)<=0){g=0;break a}if(!(c[(c[k+(h*20|0)>>2]|0)+4>>2]&256))g=h;else break}if((g|0)>=1){g=c[d+12>>2]|0;l=c[g>>2]|0;d=ih(l,72,0)|0;if(d){m=d+0|0;n=m+72|0;do{a[m>>0]=0;m=m+1|0}while((m|0)<(n|0));k=o;c[k>>2]=0;c[k+4>>2]=0;k=fr(g,0,0,0,o,d,0,0)|0;if(k){m=d+0|0;h=f+0|0;n=m+72|0;do{c[m>>2]=c[h>>2];m=m+4|0;h=h+4|0}while((m|0)<(n|0));c[f+32>>2]=k;c[q>>2]=0;c[q+4>>2]=0;c[f>>2]=hr(g,0,jr(l,116,q,0)|0)|0;a[f+4>>0]=119;c[f+36>>2]=0;c[d+40>>2]=0;c[d+44>>2]=0;c[d+48>>2]=0;c[p>>2]=0;c[f+56>>2]=0;g=f+6|0;b[g>>1]=(e[g>>1]|0)&57279|8192;c[(c[d+52>>2]|0)+56>>2]=d;c[d+60>>2]=0;c[d+64>>2]=0;g=0}else g=2}else g=2}else g=0}else g=0;while(0);i=r;return g|0}function mu(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;X=i;i=i+32|0;if((i|0)>=(j|0))ba();W=X;T=X+16|0;G=f+12|0;V=c[G>>2]|0;U=c[V>>2]|0;R=g+6|0;n=e[R>>1]|0;b[R>>1]=n|16;S=U+65|0;a:do if(!(a[S>>0]|0)){F=g+32|0;P=c[F>>2]|0;if((P|0)!=0&(n&16|0)==0){Q=c[g>>2]|0;if((c[f+8>>2]|0)==9){n=g;while(1){m=c[n+56>>2]|0;if(!m)break;else n=m}n=c[n+68>>2]|0;if(n){C=V+532|0;c[n+4>>2]=c[C>>2];c[C>>2]=n;a[V+449>>0]=0}}ys(V,P);O=P+8|0;n=c[P>>2]|0;b:do if((n|0)>0){B=0;v=O;c:while(1){if(!(a[v+37>>0]&8)){C=v+16|0;h=c[G>>2]|0;if(c[C>>2]|0){k=h;N=10;break}s=c[h>>2]|0;m=h+532|0;o=c[m>>2]|0;d:do if((c[v+4>>2]|0)==0?(E=c[v+8>>2]|0,!((E|0)==0|(o|0)==0)):0){e:while(1){p=c[o>>2]|0;if((p|0)>0){l=0;do{n=o+(l<<4)+8|0;k=c[n>>2]|0;if(!($c(E,k)|0)){z=l;break e}l=l+1|0}while((l|0)<(p|0))}o=c[o+4>>2]|0;if(!o){N=46;break d}}w=o+(z<<4)+20|0;p=c[w>>2]|0;if(p){g=p;N=21;break c}y=ih(s,76,0)|0;if(!y){g=C;N=23;break c}q=y+0|0;p=q+76|0;do{a[q>>0]=0;q=q+1|0}while((q|0)<(p|0));c[C>>2]=y;t=y+40|0;b[t>>1]=1;c[y>>2]=gh(s,c[n>>2]|0)|0;b[y+36>>1]=-1;b[y+28>>1]=200;A=y+44|0;a[A>>0]=d[A>>0]|2;A=cr(s,c[o+(z<<4)+16>>2]|0,0)|0;c[v+20>>2]=A;if(a[s+65>>0]|0){g=2;break a}x=((a[A+4>>0]|0)+-115&255)<2;if(x?(u=c[A+32>>2]|0,D=c[u>>2]|0,(D|0)>0):0){p=A+6|0;q=D;s=0;do{do if(!(c[u+(s*72|0)+12>>2]|0)){r=c[u+(s*72|0)+16>>2]|0;if(!r)break;if($c(r,c[n>>2]|0)|0)break;c[u+(s*72|0)+24>>2]=y;q=u+(s*72|0)+45|0;a[q>>0]=a[q>>0]|8;b[t>>1]=(b[t>>1]|0)+1<<16>>16;b[p>>1]=e[p>>1]|2048;q=c[u>>2]|0}while(0);s=s+1|0}while((s|0)<(q|0))}if((e[t>>1]|0)>2){g=n;N=34;break c}c[w>>2]=28176;l=c[m>>2]|0;c[m>>2]=o;if(x)p=c[A+52>>2]|0;else p=A;gu(f,p)|0;p=A;while(1){k=c[p+52>>2]|0;if(!k)break;else p=k}k=c[p>>2]|0;p=c[o+(z<<4)+12>>2]|0;do if(p){if(!k)break;r=c[k>>2]|0;k=c[p>>2]|0;if((r|0)!=(k|0)){g=r;N=42;break c}}else p=k;while(0);eu(h,p,y+38|0,y+4|0);if(x){c[w>>2]=(b[A+6>>1]&2048)==0?28280:28240;gu(f,A)|0}c[w>>2]=0;c[m>>2]=l;if(!(c[C>>2]|0))N=46}else N=46;while(0);do if((N|0)==46){N=0;if(!(c[v+8>>2]|0)){o=c[v+20>>2]|0;if(gu(f,o)|0){g=2;break a}m=ih(U,76,0)|0;if(!m){g=C;N=49;break c}q=m+0|0;p=q+76|0;do{a[q>>0]=0;q=q+1|0}while((q|0)<(p|0));c[C>>2]=m;b[m+40>>1]=1;c[W>>2]=m;c[m>>2]=qh(U,27760,W)|0;while(1){n=c[o+52>>2]|0;if(!n)break;else o=n}eu(V,c[o>>2]|0,m+38|0,m+4|0);b[m+36>>1]=-1;b[m+28>>1]=200;C=m+44|0;a[C>>0]=d[C>>0]|2;break}h=Qr(V,0,v)|0;c[C>>2]=h;if(!h){g=2;break a}o=h+40|0;n=b[o>>1]|0;if(n<<16>>16==-1){g=C;N=55;break c}b[o>>1]=n+1<<16>>16;o=h+12|0;if((c[o>>2]|0)==0?(a[h+44>>0]&16)==0:0)break;if(dr(V,h)|0){g=2;break a}C=cr(U,c[o>>2]|0,0)|0;c[v+20>>2]=C;gu(f,C)|0}while(0);if(Nt(V,v)|0){g=2;break a}n=c[P>>2]|0}B=B+1|0;if((B|0)>=(n|0))break b;else v=v+72|0}if((N|0)==10){while(1){h=c[g+56>>2]|0;if(!h)break;else g=h}g=c[g+68>>2]|0;if(!g){g=1;break a}c[k+532>>2]=c[g+4>>2];g=1;break a}else if((N|0)==21){c[W>>2]=k;ph(h,g,W);g=2;break a}else if((N|0)==23){c[g>>2]=0;g=2;break a}else if((N|0)==34){c[W>>2]=c[g>>2];ph(h,28128,W);g=2;break a}else if((N|0)==42){c[W>>2]=c[n>>2];c[W+4>>2]=g;c[W+8>>2]=k;ph(h,28200,W);c[m>>2]=l;g=2;break a}else if((N|0)==49){c[g>>2]=0;g=2;break a}else if((N|0)==55){c[W>>2]=c[h>>2];ph(V,27776,W);c[g>>2]=0;g=2;break a}}while(0);if(!(a[S>>0]|0)){v=c[F>>2]|0;f:do if(((c[v>>2]|0)+-1|0)>0){w=g+36|0;y=0;z=v+8|0;A=v+80|0;g:while(1){x=c[A+16>>2]|0;if(!((c[z+16>>2]|0)==0|(x|0)==0)){D=d[A+36>>0]|0;u=D&32;s=(u|0)==0;u=u>>>5;t=A+44|0;if(D&4){if(c[t>>2]|0){N=73;break}n=A+48|0;if(c[n>>2]|0){N=73;break}k=x+38|0;o=b[k>>1]|0;if(o<<16>>16>0){h=x+4|0;r=y+1|0;q=0;do{m=c[(c[h>>2]|0)+(q*24|0)>>2]|0;l=0;do{p=ov(c[v+(l*72|0)+24>>2]|0,m)|0;if((p|0)>-1){o=l;N=77;break}l=l+1|0}while((l|0)<(r|0));if((N|0)==77){N=0;pv(V,v,o,p,r,q,u,w);o=b[k>>1]|0}q=q+1|0}while((q|0)<(o<<16>>16|0))}}else n=A+48|0;o=c[t>>2]|0;if(o){if(c[n>>2]|0){N=81;break}if(!s){qv(o,c[A+40>>2]|0);o=c[t>>2]|0}c[w>>2]=os(c[V>>2]|0,c[w>>2]|0,o)|0;c[t>>2]=0}m=c[n>>2]|0;if((m|0)!=0?(M=m+4|0,(c[M>>2]|0)>0):0){l=y+1|0;p=0;do{h=c[(c[m>>2]|0)+(p<<3)>>2]|0;k=ov(x,h)|0;if((k|0)<0){N=91;break g}else o=0;while(1){n=ov(c[v+(o*72|0)+24>>2]|0,h)|0;if((n|0)>-1)break;o=o+1|0;if((o|0)>=(l|0)){N=91;break g}}pv(V,v,o,n,l,k,u,w);p=p+1|0}while((p|0)<(c[M>>2]|0))}}y=y+1|0;if((y|0)>=((c[v>>2]|0)+-1|0))break f;else{z=z+72|0;A=A+72|0}}if((N|0)==73){c[W>>2]=0;ph(V,27928,W);g=2;break a}else if((N|0)==81){ph(V,27984,W);g=2;break a}else if((N|0)==91){c[W>>2]=h;ph(V,28040,W);g=2;break a}}while(0);h=c[Q>>2]|0;o=(h|0)>0;h:do if(o){k=c[Q+4>>2]|0;n=0;do{m=c[k+(n*20|0)>>2]|0;l=a[m>>0]|0;if(l<<24>>24==122){if((a[c[m+16>>2]>>0]|0)==116)break h}else if(l<<24>>24==116)break h;n=n+1|0}while((n|0)<(h|0))}else n=0;while(0);if((n|0)<(h|0)){M=c[Q+4>>2]|0;n=c[(c[V>>2]|0)+24>>2]|0;if(!(n&32))L=0;else L=(n&64|0)==0;if(o){H=U+20|0;I=U+16|0;J=T+4|0;K=0;h=0;do{m=M+(K*20|0)|0;o=c[m>>2]|0;n=a[o>>0]|0;if(n<<24>>24==122)if((a[c[o+16>>2]>>0]|0)==116){f=c[(c[o+12>>2]|0)+8>>2]|0;N=110}else N=106;else if(n<<24>>24==116){f=0;N=110}else N=106;do if((N|0)==106){h=hr(V,h,o)|0;if(h){C=M+(K*20|0)+4|0;B=(c[h>>2]|0)+-1|0;A=c[h+4>>2]|0;c[A+(B*20|0)+4>>2]=c[C>>2];D=M+(K*20|0)+8|0;c[A+(B*20|0)+8>>2]=c[D>>2];c[C>>2]=0;c[D>>2]=0}c[m>>2]=0}else if((N|0)==110){if((c[P>>2]|0)>0){D=(f|0)==0;E=(f|0)!=0;F=0;G=O;n=0;while(1){s=c[G+16>>2]|0;m=c[G+20>>2]|0;o=c[G+12>>2]|0;if(!o)o=c[s>>2]|0;if(a[S>>0]|0)break;if((m|0)!=0?(b[m+6>>1]&512)!=0:0){C=0;N=125}else N=117;do if((N|0)==117){N=0;if(!D?($c(f,o)|0)!=0:0)break;p=c[s+68>>2]|0;if(!p){m=0;C=27816;N=125;break}l=c[H>>2]|0;q=c[I>>2]|0;if((l|0)>0){k=0;while(1){m=k+1|0;if((c[q+(k<<4)+12>>2]|0)==(p|0)){m=k;break}if((m|0)<(l|0))k=m;else break}if((m|0)>-1)l=m;else{m=0;C=27816;N=125;break}}else l=0;m=0;C=c[q+(l<<4)>>2]|0;N=125}while(0);do if((N|0)==125){N=0;B=s+38|0;t=b[B>>1]|0;if(t<<16>>16<=0)break;x=s+4|0;w=(m|0)!=0;q=E&w;y=(F|0)>0;r=y&D;v=G+36|0;y=y^1;u=G+48|0;p=(C|0)==0;z=0;do{s=c[x>>2]|0;k=c[s+(z*24|0)>>2]|0;if(!(q?(rv(c[(c[(c[m>>2]|0)+4>>2]|0)+(z*20|0)+8>>2]|0,0,f,0)|0)==0:0))N=129;i:do if((N|0)==129){N=0;if(a[s+(z*24|0)+23>>0]&2)break;if(r){if(!((a[v>>0]&4)==0|y)){s=0;do{if((ov(c[P+(s*72|0)+24>>2]|0,k)|0)>-1){n=1;break i}s=s+1|0}while((s|0)<(F|0))}if((sv(c[u>>2]|0,k)|0)>-1){n=1;break}}t=pt(U,27,k)|0;if(!L?(c[P>>2]|0)<=1:0){l=k;A=0}else N=137;do if((N|0)==137){N=0;t=Vq(V,122,pt(U,27,o)|0,t,0)|0;if(!p)t=Vq(V,122,pt(U,27,C)|0,t,0)|0;if(!L){l=k;A=0;break}c[W>>2]=o;c[W+4>>2]=k;A=qh(U,27824,W)|0;l=A}while(0);h=hr(V,h,t)|0;c[T>>2]=l;if(!l)t=0;else{t=l;while(1)if(!(a[t>>0]|0))break;else t=t+1|0;t=t-l&1073741823}c[J>>2]=t;ir(V,h,T,0);do if(h){if(!(b[R>>1]&512))break;s=(c[h>>2]|0)+-1|0;k=c[h+4>>2]|0;if(w)t=gh(U,c[(c[(c[m>>2]|0)+4>>2]|0)+(z*20|0)+8>>2]|0)|0;else{c[W>>2]=C;c[W+4>>2]=o;c[W+8>>2]=l;t=qh(U,27832,W)|0}c[k+(s*20|0)+8>>2]=t;t=k+(s*20|0)+13|0;a[t>>0]=a[t>>0]|2}while(0);ig(U,A);t=b[B>>1]|0;n=1}while(0);z=z+1|0}while((z|0)<(t<<16>>16|0))}while(0);F=F+1|0;if((F|0)>=(c[P>>2]|0))break;else G=G+72|0}if(n)break}if(!f){ph(V,27872,W);break}else{c[W>>2]=f;ph(V,27848,W);break}}while(0);K=K+1|0}while((K|0)<(c[Q>>2]|0))}else h=0;Jk(U,Q);c[g>>2]=h}else h=c[g>>2]|0;if((h|0)!=0?(c[h>>2]|0)>(c[U+96>>2]|0):0){ph(V,27896,W);g=0}else g=0}else g=2}else g=1}else g=2;while(0);i=X;return g|0}function nu(a,b){a=a|0;b=b|0;var d=0;d=c[a+12>>2]|0;while(1){a=c[b+56>>2]|0;if(!a)break;else b=a}b=c[b+68>>2]|0;if(b)c[d+532>>2]=c[b+4>>2];return}function ou(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=f+6|0;i=e[h>>1]|0;if((i&32|0)==0?(b[h>>1]=i|32,l=c[d+12>>2]|0,j=c[f+32>>2]|0,g=c[j>>2]|0,(g|0)>0):0){f=0;h=j+8|0;while(1){d=c[h+16>>2]|0;if(((d|0)!=0?(a[d+44>>0]&2)!=0:0)?(k=c[h+20>>2]|0,(k|0)!=0):0){g=k;while(1){i=c[g+52>>2]|0;if(!i)break;else g=i}fu(l,d,g);g=c[j>>2]|0}f=f+1|0;if((f|0)>=(g|0))break;else h=h+72|0}}return}function pu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if((a|0)!=0?(d=c[a>>2]|0,(d|0)>0):0){g=c[a+4>>2]|0;f=0;do{e=c[g+(f*20|0)>>2]|0;if((e|0)!=0?(h=c[e+24>>2]|0,(h|0)>(c[b>>2]|0)):0){c[b>>2]=h;d=c[a>>2]|0}f=f+1|0}while((f|0)<(d|0))}return}function qu(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;if(((b|0)!=0?(Cs(a,c[b>>2]|0,d,e),Cs(a,c[b+40>>2]|0,d,e),Cs(a,c[b+48>>2]|0,d,e),g=b+44|0,c[g>>2]=Ds(a,c[g>>2]|0,d,e)|0,g=b+36|0,c[g>>2]=Ds(a,c[g>>2]|0,d,e)|0,qu(a,c[b+52>>2]|0,d,e),g=c[b+32>>2]|0,(g|0)!=0):0)?(f=c[g>>2]|0,(f|0)>0):0){b=f;f=g+8|0;while(1){qu(a,c[f+20>>2]|0,d,e);b=b+-1|0;if((b|0)<=0)break;else f=f+72|0}}return}function ru(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=c[d+48>>2]|0;l=c[f>>2]|0;g=c[b>>2]|0;m=Ns(g,l+1|0,1)|0;if((m|0)!=0&(l|0)>0){k=f+4|0;i=g+8|0;h=m+16|0;j=0;do{g=c[k>>2]|0;f=c[g+(j*20|0)>>2]|0;if(!(c[f+4>>2]&256)){g=Os(b,d,(e[g+(j*20|0)+16>>1]|0)+-1|0)|0;if(!g)g=c[i>>2]|0;f=tv(b,f,c[g>>2]|0)|0;c[(c[k>>2]|0)+(j*20|0)>>2]=f}else g=_t(b,f)|0;c[m+(j<<2)+20>>2]=g;a[(c[h>>2]|0)+j>>0]=a[(c[k>>2]|0)+(j*20|0)+12>>0]|0;j=j+1|0}while((j|0)!=(l|0))}return m|0}function su(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;h=c[d>>2]|0;a:do if((f|0)!=0?(a[h+65>>0]|0)==0:0){k=c[f>>2]|0;if((k|0)>(c[h+96>>2]|0)){c[n>>2]=g;ph(d,27120,n);e=1;break}m=c[e>>2]|0;if((k|0)>0){h=k;e=0;l=c[f+4>>2]|0;while(1){k=b[l+16>>1]|0;if(k<<16>>16){k=k&65535;h=c[m>>2]|0;if((k|0)>(h|0))break;uv(d,m,k+-1|0,c[l>>2]|0,g,0);h=c[f>>2]|0}e=e+1|0;if((e|0)>=(h|0)){e=0;break a}else l=l+20|0}c[n>>2]=e+1;c[n+4>>2]=g;c[n+8>>2]=h;ph(d,27064,n);e=1}else e=0}else e=0;while(0);i=o;return e|0}function tu(b,e,f,g,h,i,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=b+8|0;u=c[t>>2]|0;w=u+32|0;l=c[w>>2]|0;x=ts(u)|0;if(i){n=sh(u,46,i,0,0)|0;m=f+8|0;p=c[m>>2]|0;r=i+1|0;o=f+12|0;q=c[o>>2]|0;if(j)c[j>>2]=(c[j>>2]|0)+1;p=sh(u,42,p,r,q)|0;th(u,p,j,-6);p=p+2|0;sh(u,43,p,x,p)|0;p=c[w>>2]|0;if(p>>>0>n>>>0)c[(c[u+4>>2]|0)+(n*20|0)+8>>2]=p;c[(c[u+24>>2]|0)+88>>2]=p+-1;sh(u,33,c[m>>2]|0,r,(c[o>>2]|0)+-1|0)|0;sh(u,25,1,i,0)|0}if(!(a[(c[b>>2]|0)+65>>0]|0)){et(u,c[e+12>>2]|0,x);switch(d[g>>0]|0){case 12:case 14:{m=b+19|0;o=a[m>>0]|0;if(o<<24>>24){i=o+-1<<24>>24;a[m>>0]=i;n=c[b+((i&255)<<2)+24>>2]|0;if(!(i<<24>>24))s=12;else{o=o+-2<<24>>24;a[m>>0]=o;o=c[b+((o&255)<<2)+24>>2]|0;m=n}}else{s=b+72|0;n=(c[s>>2]|0)+1|0;c[s>>2]=n;s=12}if((s|0)==12){m=b+72|0;o=(c[m>>2]|0)+1|0;c[m>>2]=o;m=n}sh(u,49,c[f+8>>2]|0,c[f+12>>2]|0,m)|0;n=g+4|0;sh(u,74,c[n>>2]|0,o,0)|0;sh(u,75,c[n>>2]|0,m,o)|0;n=c[u+4>>2]|0;if(n)a[n+(((c[w>>2]|0)+-1|0)*20|0)+3>>0]=8;Wr(b,o);Wr(b,m);break}case 11:{o=g+1|0;a[o>>0]=xu(c[c[(c[e>>2]|0)+4>>2]>>2]|0,a[o>>0]|0)|0;n=b+19|0;m=a[n>>0]|0;if(!(m<<24>>24)){s=b+72|0;n=(c[s>>2]|0)+1|0;c[s>>2]=n}else{s=m+-1<<24>>24;a[n>>0]=s;n=c[b+((s&255)<<2)+24>>2]|0}s=f+8|0;th(u,sh(u,49,c[s>>2]|0,1,n)|0,o,1);$s(b,c[s>>2]|0,1);sh(u,110,c[g+4>>2]|0,n,0)|0;Wr(b,n);break}case 10:{s=c[f+8>>2]|0;sh(c[t>>2]|0,32,s,c[g+4>>2]|0,1)|0;$s(b,s,1);break}case 13:{q=g+8|0;n=c[q>>2]|0;if(!n){n=c[f+12>>2]|0;o=b+60|0;m=c[o>>2]|0;j=b+56|0;p=c[j>>2]|0;if((p|0)<(n|0)){s=b+72|0;m=c[s>>2]|0;c[s>>2]=m+n;m=m+1|0}else{c[o>>2]=m+n;c[j>>2]=p-n}c[q>>2]=m;c[g+12>>2]=n}else{m=n;n=c[g+12>>2]|0}s=c[f+8>>2]|0;sh(c[t>>2]|0,32,s,m,n)|0;$s(b,s,n);sh(u,22,c[g+4>>2]|0,0,0)|0;break}default:{i=f+8|0;s=f+12|0;sh(u,35,c[i>>2]|0,c[s>>2]|0,0)|0;$s(b,c[i>>2]|0,c[s>>2]|0)}}m=c[e+8>>2]|0;if(m)sh(u,140,m,k,0)|0;m=c[u+24>>2]|0;n=~x;if((x|0)<0?(v=c[m+112>>2]|0,(v|0)!=0):0)c[v+(n<<2)>>2]=c[w>>2];c[m+88>>2]=(c[w>>2]|0)+-1;sh(u,18,h,0,0)|0}else l=0;return l|0}function uu(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+80|0;if((i|0)>=(j|0))ba();r=s+64|0;q=s+32|0;h=s;a[r>>0]=1;if((f|0)!=0?(c[e+4>>2]|0)!=0:0){k=d[f>>0]|0;a:do if((k|0)==154|(k|0)==156){p=b[f+32>>1]|0;h=p<<16>>16;if(e){o=f+28|0;b:while(1){while(1){n=c[e+4>>2]|0;m=c[n>>2]|0;c:do if((m|0)>0){f=c[o>>2]|0;k=0;while(1){l=k+1|0;if((c[n+(k*72|0)+48>>2]|0)==(f|0)){l=k;break c}if((l|0)<(m|0))k=l;else break}}else l=0;while(0);if((l|0)>=(m|0))break;m=c[n+(l*72|0)+24>>2]|0;l=c[n+(l*72|0)+28>>2]|0;f=(m|0)==0;if(!((e|0)!=0&f))break b}e=c[e+16>>2]|0;if(!e){h=0;break a}}if(!f){if(l){if(p<<16>>16<=-1){h=0;break}k=c[l>>2]|0;if((h|0)>=(c[k>>2]|0)){h=0;break}h=c[(c[k+4>>2]|0)+(h*20|0)>>2]|0;c[q+4>>2]=c[l+32>>2];c[q+16>>2]=e;c[q>>2]=c[e>>2];h=uu(q,h,r)|0;break}if(c[m+68>>2]|0){if(p<<16>>16<0)h=b[m+36>>1]|0;if((h|0)<0)h=11144;else{p=c[m+4>>2]|0;q=c[p+(h*24|0)+12>>2]|0;a[r>>0]=a[p+(h*24|0)+22>>0]|0;h=q}}else h=0}else h=0}else h=0}else if((k|0)==119){p=c[f+20>>2]|0;q=c[c[(c[p>>2]|0)+4>>2]>>2]|0;c[h+4>>2]=c[p+32>>2];c[h+16>>2]=e;c[h>>2]=c[e>>2];h=uu(h,q,r)|0}else h=0;while(0);if(g)a[g>>0]=a[r>>0]|0}else h=0;i=s;return h|0}function vu(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;j=c[b+8>>2]|0;h=b+19|0;i=a[h>>0]|0;if(!(i<<24>>24)){i=b+72|0;h=(c[i>>2]|0)+1|0;c[i>>2]=h}else{i=i+-1<<24>>24;a[h>>0]=i;h=c[b+((i&255)<<2)+24>>2]|0}th(j,sh(j,69,d,e,g)|0,f,-14);sh(j,49,g,f,h)|0;sh(j,110,d,h,0)|0;Wr(b,h);return}function wu(b,d,f,g,h,i){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|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;u=b+8|0;z=c[u>>2]|0;y=d+24|0;k=a[y>>0]&1;n=k<<24>>24==0;k=(k^1)&255;j=c[d>>2]|0;o=c[j>>2]|0;p=o+h+k|0;s=b+72|0;m=c[s>>2]|0;x=m+1|0;c[s>>2]=x;v=d+4|0;q=c[v>>2]|0;i=(i|0)==0;if(i){c[s>>2]=x+p;t=m+2|0}else t=g-o-k|0;Zs(b,j,t,1);if(n)sh(z,73,c[d+8>>2]|0,t+o|0,0)|0;if(i){sh(c[u>>2]|0,32,g,k+o+t|0,h)|0;$s(b,g,h)}sh(z,49,t+q|0,p-q|0,x)|0;if((q|0)>0){j=c[s>>2]|0;h=j+1|0;i=c[v>>2]|0;c[s>>2]=i+j;if(n)g=sh(z,46,t+o|0,0,0)|0;else g=sh(z,59,c[d+8>>2]|0,0,0)|0;sh(z,42,h,t,c[v>>2]|0)|0;m=c[d+20>>2]|0;if((m|0)<0)m=(c[z+32>>2]|0)+-1|0;if(!(a[(c[z>>2]|0)+65>>0]|0))m=(c[z+4>>2]|0)+(m*20|0)|0;else m=29120;if(!(a[(c[b>>2]|0)+65>>0]|0)){c[m+8>>2]=p-i;m=m+16|0;i=c[m>>2]|0;bw(c[i+16>>2]|0,0,e[i+6>>1]|0)|0;th(z,-1,i,-6);c[m>>2]=Qs(b,c[d>>2]|0,q,(e[i+8>>1]|0)+-1|0)|0;m=z+32|0;i=c[m>>2]|0;l=i+1|0;sh(z,43,l,0,l)|0;l=ts(z)|0;c[d+16>>2]=l;k=(c[s>>2]|0)+1|0;c[s>>2]=k;c[d+12>>2]=k;sh(z,17,k,l,0)|0;l=d+8|0;sh(z,119,c[l>>2]|0,0,0)|0;k=c[m>>2]|0;if(k>>>0>g>>>0)c[(c[z+4>>2]|0)+(g*20|0)+8>>2]=k;j=z+24|0;c[(c[j>>2]|0)+88>>2]=k+-1;k=c[v>>2]|0;sh(c[u>>2]|0,32,t,h,k)|0;$s(b,t,k);k=c[m>>2]|0;if(k>>>0>i>>>0)c[(c[z+4>>2]|0)+(i*20|0)+8>>2]=k;c[(c[j>>2]|0)+88>>2]=k+-1;r=23}}else{l=d+8|0;r=23}if((r|0)==23?(sh(z,110-(a[y>>0]&1)|0,c[l>>2]|0,x,0)|0,w=c[f+8>>2]|0,(w|0)!=0):0){k=c[f+12>>2]|0;k=sh(z,139,(k|0)==0?w:k+1|0,0,-1)|0;sh(z,105,c[l>>2]|0,0,0)|0;sh(z,95,c[l>>2]|0,0,0)|0;j=c[z+32>>2]|0;if(j>>>0>k>>>0)c[(c[z+4>>2]|0)+(k*20|0)+8>>2]=j;c[(c[z+24>>2]|0)+88>>2]=j+-1}return}function xu(a,b){a=a|0;b=b|0;a=gv(a)|0;if(!(a<<24>>24==0|b<<24>>24==0))return (a<<24>>24>66|b<<24>>24>66?67:65)|0;if(!((a|b)<<24>>24))a=65;else a=(b&255)+(a&255)&255;return a|0}function yu(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;do if(!((d|0)==0|(e|0)==0)){j=c[d+4>>2]|0;k=c[e+4>>2]|0;l=k|j;if(l&1024){if((j&1024&k|0)!=0?(c[d+8>>2]|0)==(c[e+8>>2]|0):0){g=0;break}g=2;break}g=a[d>>0]|0;h=a[e>>0]|0;if(g<<24>>24!=h<<24>>24){if(g<<24>>24==95?(yu(c[d+12>>2]|0,e,f)|0)<2:0){g=1;break}if(h<<24>>24==95?(yu(d,c[e+12>>2]|0,f)|0)<2:0){g=1;break}g=2;break}if((!(g<<24>>24==-100|g<<24>>24==-102)?(i=c[d+8>>2]|0,(i|0)!=0):0)?(Wv(i,c[e+8>>2]|0)|0)!=0:0){g=g<<24>>24==95?1:2;break}if(!((k^j)&16)){if(!(l&16384)){if(l&2048){g=2;break}if(yu(c[d+12>>2]|0,c[e+12>>2]|0,f)|0){g=2;break}if(yu(c[d+16>>2]|0,c[e+16>>2]|0,f)|0){g=2;break}if(Ps(c[d+20>>2]|0,c[e+20>>2]|0,f)|0){g=2;break}if(!(l&8192)){if((b[d+32>>1]|0)!=(b[e+32>>1]|0)){g=2;break}h=c[d+28>>2]|0;g=c[e+28>>2]|0;if((h|0)!=(g|0)?(h|0)!=(f|0)|(g|0)>-1:0){g=2;break}}}g=0}else g=2}else g=(e|0)==(d|0)?0:2;while(0);return g|0}function zu(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=b+8|0;a[f>>0]=e;a:do if(d){while(1){if((a[d>>0]|0)!=e<<24>>24)break;zu(b,c[d+12>>2]|0,e);d=c[d+16>>2]|0;a[f>>0]=e;if(!d)break a}vv(b,d,0)|0}while(0);return}function Au(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0;D=c[f>>2]|0;Q=c[D>>2]|0;S=c[Q>>2]|0;L=S+65|0;do if(!(a[L>>0]|0)){T=f+20|0;k=c[T>>2]|0;h=k+(g*48|0)|0;_=D+68|0;R=c[h>>2]|0;s=R+12|0;l=c[s>>2]|0;x=wv(_,l)|0;w=C;j=a[R>>0]|0;u=j&255;do if(j<<24>>24==76){i=k+(g*48|0)+32|0;c[i>>2]=0;c[i+4>>2]=0;i=0;t=0}else if(j<<24>>24==75){m=R+20|0;if(!(c[R+4>>2]&2048)){i=Hu(_,c[m>>2]|0)|0;t=C;P=k+(g*48|0)+32|0;c[P>>2]=i;c[P+4>>2]=t;break}else{i=xv(_,c[m>>2]|0)|0;t=C;P=k+(g*48|0)+32|0;c[P>>2]=i;c[P+4>>2]=t;break}}else{i=wv(_,c[R+16>>2]|0)|0;t=C;P=k+(g*48|0)+32|0;c[P>>2]=i;c[P+4>>2]=t}while(0);q=wv(_,R)|0;m=C;N=R+4|0;if(!(c[N>>2]&1)){O=0;P=0;v=m}else{o=b[R+36>>1]|0;n=c[_>>2]|0;a:do if((n|0)>0){p=0;while(1){if((c[D+(p<<2)+72>>2]|0)==(o|0))break;p=p+1|0;if((p|0)>=(n|0)){p=0;o=0;break a}}p=ew(1,0,p|0)|0;o=C}else{p=0;o=0}while(0);O=fw(p|0,o|0,-1,-1)|0;P=C;q=p|q;v=o|m}r=k+(g*48|0)+40|0;c[r>>2]=q;c[r+4>>2]=v;r=k+(g*48|0)+8|0;c[r>>2]=-1;c[k+(g*48|0)+4>>2]=-1;z=k+(g*48|0)+18|0;b[z>>1]=0;p=u+-75|0;if(p>>>0<9?(499>>>(p&511)&1)!=0:0){b:do if(!l)l=0;else while(1){p=c[l+4>>2]|0;if(!(p&4096))break b;if(!(p&262144))n=l+12|0;else n=c[(c[l+20>>2]|0)+4>>2]|0;l=c[n>>2]|0;if(!l){l=0;break}}while(0);p=c[R+16>>2]|0;c:do if(!p)p=0;else while(1){o=c[p+4>>2]|0;if(!(o&4096))break c;if(!(o&262144))p=p+12|0;else p=c[(c[p+20>>2]|0)+4>>2]|0;p=c[p>>2]|0;if(!p){p=0;break}}while(0);t=(i&x|0)==0&(t&w|0)==0?4095:1024;if((a[l>>0]|0)==-102){m=c[l+28>>2]|0;c[r>>2]=m;c[k+(g*48|0)+12>>2]=b[l+32>>1];if((u|0)==75)n=1;else if((u|0)==76)n=128;else n=2<<u+-79&65535;b[z>>1]=n&t}else m=-1;if((p|0)!=0?(a[p>>0]|0)==-102:0){if((m|0)>-1){l=Ir(S,R,0,0)|0;if(a[L>>0]|0){Ck(S,l);break}m=vv(f,l,3)|0;if(!m)break;n=c[T>>2]|0;k=n+(m*48|0)|0;c[n+(m*48|0)+4>>2]=g;b[n+(m*48|0)+16>>1]=b[n+(g*48|0)+16>>1]|0;h=n+(g*48|0)+22|0;a[h>>0]=(a[h>>0]|0)+1<<24>>24;h=n+(g*48|0)|0;p=n+(g*48|0)+20|0;b[p>>1]=e[p>>1]|8;if(((a[R>>0]|0)==79?(c[N>>2]&1|0)==0:0)?(b[S+60>>1]&512)==0:0){s=n+(g*48|0)+18|0;b[s>>1]=e[s>>1]|1024;s=1024}else s=0}else{s=0;l=R;k=h}j=l+16|0;o=(c[j>>2]|0)+4|0;n=c[o>>2]|0;m=n&256;i=l+12|0;p=c[i>>2]|0;do if((m|0)==(c[p+4>>2]&256|0)){if(m){c[o>>2]=n&-257;break}p=(_t(Q,p)|0)==0;n=c[i>>2]|0;if(p)p=n;else{p=n+4|0;c[p>>2]=c[p>>2]|256;p=n}}while(0);n=c[j>>2]|0;c[j>>2]=p;c[i>>2]=n;m=a[l>>0]|0;if((m&255)>79){m=((m&255)+176^2)+80&255;a[l>>0]=m}l=c[n+4>>2]|0;if(l&4096)do{if(!(l&262144))n=n+12|0;else n=c[(c[n+20>>2]|0)+4>>2]|0;n=c[n>>2]|0;l=c[n+4>>2]|0}while((l&4096|0)!=0);c[k+8>>2]=c[n+28>>2];c[k+12>>2]=b[n+32>>1];l=k+32|0;c[l>>2]=O|x;c[l+4>>2]=P|w;l=k+40|0;c[l>>2]=q;c[l+4>>2]=v;l=m&255;if((l|0)==76)l=128;else if((l|0)==75)l=1;else l=2<<l+-79&65535;b[k+18>>1]=l+s&(t&65535)}}else H=59;do if((H|0)==59){if(j<<24>>24==74){if((a[f+8>>0]|0)!=72)break;m=(c[R+20>>2]|0)+4|0;i=R+36|0;j=0;while(1){q=d[34144+j>>0]|0;l=Ir(S,l,0,0)|0;l=Vq(Q,q,l,Ir(S,c[(c[m>>2]|0)+(j*20|0)>>2]|0,0,0)|0,0)|0;if(l){q=l+4|0;c[q>>2]=c[q>>2]|c[N>>2]&1;b[l+36>>1]=b[i>>1]|0}q=vv(f,l,3)|0;Au(f,q);k=c[T>>2]|0;c[k+(q*48|0)+4>>2]=g;b[k+(q*48|0)+16>>1]=b[k+(g*48|0)+16>>1]|0;q=k+(g*48|0)+22|0;a[q>>0]=(a[q>>0]|0)+1<<24>>24;j=j+1|0;if((j|0)==2)break;l=c[s>>2]|0}h=k+(g*48|0)|0;break}else if(j<<24>>24!=71)break;x=ih(S,416,0)|0;d:do if(x){bw(x|0,0,416)|0;c[k+(g*48|0)+12>>2]=x;A=k+(g*48|0)+20|0;b[A>>1]=e[A>>1]|16;c[x>>2]=D;c[x+4>>2]=0;A=x+12|0;c[A>>2]=0;c[x+16>>2]=8;B=x+20|0;c[B>>2]=x+24;zu(x,R,71);m=c[A>>2]|0;if((m|0)>0)do{m=m+-1|0;Au(x,m)}while((m|0)>0);if(!(a[L>>0]|0)){p=c[A>>2]|0;if((p|0)>0){w=D+68|0;v=-1;u=-1;i=-1;h=-1;t=c[B>>2]|0;while(1){p=p+-1|0;o=t+18|0;s=b[o>>1]|0;if(!(s&255)){l=ih(S,408,0)|0;if(!l){m=v;n=u;i=0;h=0}else{c[t+12>>2]=l;n=t+20|0;b[n>>1]=e[n>>1]|32;b[o>>1]=512;c[l>>2]=c[f>>2];n=l+4|0;c[n>>2]=0;m=l+12|0;c[m>>2]=0;c[l+16>>2]=8;q=l+20|0;c[q>>2]=l+24;zu(l,c[t>>2]|0,72);o=c[m>>2]|0;if((o|0)>0)do{o=o+-1|0;Au(l,o)}while((o|0)>0);c[n>>2]=f;if((a[L>>0]|0)==0?(y=c[m>>2]|0,(y|0)>0):0){o=0;n=0;h=0;r=c[q>>2]|0;while(1){m=(d[c[r>>2]>>0]|0)+-75|0;do if(m>>>0<9){if(!(499>>>(m&511)&1))break;l=c[r+8>>2]|0;j=c[w>>2]|0;e:do if((j|0)>0){m=0;while(1){if((c[D+(m<<2)+72>>2]|0)==(l|0))break;m=m+1|0;if((m|0)>=(j|0)){m=0;l=0;break e}}m=ew(1,0,m|0)|0;l=C}else{m=0;l=0}while(0);o=m|o;n=l|n}while(0);h=h+1|0;if((h|0)>=(y|0))break;else r=r+48|0}}else{o=0;n=0}m=o&v;n=n&u;i=0;h=0}}else{n=b[t+20>>1]|0;if(!(n&8)){q=c[t+8>>2]|0;l=c[w>>2]|0;m=(l|0)>0;f:do if(m){o=0;while(1){if((c[D+(o<<2)+72>>2]|0)==(q|0))break;o=o+1|0;if((o|0)>=(l|0)){j=0;r=0;break f}}j=ew(1,0,o|0)|0;r=C}else{j=0;r=0}while(0);if(!(n&2)){o=j;q=r}else{q=c[(c[B>>2]|0)+((c[t+4>>2]|0)*48|0)+8>>2]|0;g:do if(m){o=0;while(1){if((c[D+(o<<2)+72>>2]|0)==(q|0))break;o=o+1|0;if((o|0)>=(l|0)){o=0;q=0;break g}}o=ew(1,0,o|0)|0;q=C}else{o=0;q=0}while(0);o=o|j;q=q|r}l=(s&2)==0;m=o&v;n=q&u;i=l?0:o&i;h=l?0:q&h}else{m=v;n=u}}o=(m|0)!=0|(n|0)!=0;if(!((p|0)>0&o))break;else{v=m;u=n;t=t+48|0}}q=x+408|0;c[q>>2]=m;c[q+4>>2]=n;b[z>>1]=(m|0)==0&(n|0)==0?0:256;if(o)H=104}else{i=x+408|0;c[i>>2]=-1;c[i+4>>2]=-1;b[z>>1]=256;i=-1;h=-1;H=104}h:do if((H|0)==104)if((c[A>>2]|0)==2){l=c[B>>2]|0;m=0;i:while(1){j=m+1|0;if((b[l+18>>1]|0)!=512)if(!m)o=l;else break h;else{n=c[l+12>>2]|0;if((c[n+12>>2]|0)<=(m|0))break h;o=(c[n+20>>2]|0)+(m*48|0)|0}if(!o)break h;else p=0;while(1){if((b[l+66>>1]|0)==512){n=c[l+60>>2]|0;if((c[n+12>>2]|0)<=(p|0)){m=j;continue i}n=(c[n+20>>2]|0)+(p*48|0)|0;if(!n){m=j;continue i}}else if(!p)n=l+48|0;else{m=j;continue i}yv(f,o,n);l=c[B>>2]|0;p=p+1|0}}}while(0);if(!((i|0)==0&(h|0)==0)){r=D+68|0;q=-1;s=0;while(1){n=c[A>>2]|0;if((n|0)<=0)break d;p=c[B>>2]|0;while(1){j=n;n=n+-1|0;l=p+20|0;b[l>>1]=e[l>>1]&65471;l=c[p+8>>2]|0;if((l|0)!=(q|0)){m=c[r>>2]|0;j:do if((m|0)>0){o=0;while(1){if((c[D+(o<<2)+72>>2]|0)==(l|0))break;o=o+1|0;if((o|0)>=(m|0)){o=0;m=0;break j}}o=ew(1,0,o|0)|0;m=C}else{o=0;m=0}while(0);if(!((o&i|0)==0&(m&h|0)==0)){o=j;break}}if((n|0)<=0)break d;else p=p+48|0}m=c[p+12>>2]|0;if((o|0)<1)break d;else o=l;while(1){if((o|0)==(l|0)){if((c[p+12>>2]|0)!=(m|0)){n=l;m=1;break}q=gv(c[(c[p>>2]|0)+16>>2]|0)|0;if(!(q<<24>>24==0|q<<24>>24==(gv(c[(c[p>>2]|0)+12>>2]|0)|0)<<24>>24)){n=l;m=1;break}q=p+20|0;b[q>>1]=e[q>>1]|64}else{q=p+20|0;b[q>>1]=e[q>>1]&65471}if((n|0)<=0){n=l;m=0;break}o=c[p+56>>2]|0;n=n+-1|0;p=p+48|0}s=s+1|0;if(!((s|0)<2&m))break;else q=n}if(!m){l=c[A>>2]|0;if((l|0)>0){m=0;i=0;j=c[B>>2]|0;while(1){l=l+-1|0;if(b[j+20>>1]&64){m=Ir(S,c[(c[j>>2]|0)+16>>2]|0,0,0)|0;i=hr(c[D>>2]|0,i,m)|0;m=c[(c[j>>2]|0)+12>>2]|0}if((l|0)<=0){l=m;break}else j=j+48|0}}else{l=0;i=0}j=Vq(Q,75,Ir(S,l,0,0)|0,0,0)|0;if(!j)Jk(S,i);else{q=j+4|0;c[q>>2]=c[q>>2]|c[N>>2]&1;b[j+36>>1]=b[R+36>>1]|0;c[j+20>>2]=i;q=vv(f,j,3)|0;Au(f,q);k=c[T>>2]|0;c[k+(q*48|0)+4>>2]=g;b[k+(q*48|0)+16>>1]=b[k+(g*48|0)+16>>1]|0;q=k+(g*48|0)+22|0;a[q>>0]=(a[q>>0]|0)+1<<24>>24}b[k+(g*48|0)+18>>1]=2048}}}}else c[k+(g*48|0)+12>>2]=0;while(0);h=(c[T>>2]|0)+(g*48|0)|0}while(0);k:do if((a[f+8>>0]|0)==72){u=c[Q>>2]|0;if((a[R>>0]|0)==-103){t=R+20|0;q=c[t>>2]|0;if((q|0)!=0?(c[q>>2]|0)==2:0){m=c[R+8>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-m&1073741823}l=Oh(u,m,l,2,1,0)|0;if(((((l|0)!=0?(E=b[l+2>>1]|0,(E&4)!=0):0)?(K=c[l+4>>2]|0,I=a[K>>0]|0,J=a[K+1>>0]|0,K=a[K+2>>0]|0,M=(E&65535)>>>3&1,F=(c[t>>2]|0)+4|0,G=c[(c[F>>2]|0)+20>>2]|0,(a[G>>0]|0)==-102):0)?(gv(G)|0)<<24>>24==66:0)?(a[(c[G+44>>2]|0)+44>>0]&16)==0:0){k=c[c[F>>2]>>2]|0;l:do if(!k)k=0;else while(1){j=c[k+4>>2]|0;if(!(j&4096))break l;if(!(j&262144))k=k+12|0;else k=c[(c[k+20>>2]|0)+4>>2]|0;k=c[k>>2]|0;if(!k){k=0;break}}while(0);j=a[k>>0]|0;r=j<<24>>24==-121;do if(r){l=c[Q+476>>2]|0;o=b[k+32>>1]|0;p=o<<16>>16;do if(!l){i=0;m=0}else{H=p+-1|0;G=c[l+60>>2]|0;i=G+(H*40|0)|0;if(b[G+(H*40|0)+8>>1]&1){i=0;m=0;break}m=c[l>>2]|0;n=ih(m,40,0)|0;if(!n){i=0;m=0;break}l=n+0|0;j=l+40|0;do{a[l>>0]=0;l=l+1|0}while((l|0)<(j|0));H=n+8|0;b[H>>1]=1;c[n+32>>2]=m;Wg(n,i)|0;if((b[H>>1]&15)!=2){i=n;m=0;break}i=n;m=Og(n,1)|0}while(0);l=c[Q+8>>2]|0;if(o<<16>>16>32){c[l+188>>2]=-1;q=m;H=177;break}else{q=l+188|0;c[q>>2]=c[q>>2]|1<<p+-1;q=m;H=177;break}}else if(j<<24>>24==97){i=0;q=c[k+8>>2]|0;H=177}else i=0;while(0);do if((H|0)==177)if(q){m=0;while(1){H=a[q+m>>0]|0;j=H<<24>>24==I<<24>>24;l=m+1|0;if(H<<24>>24!=K<<24>>24&((H<<24>>24==0|j|H<<24>>24==J<<24>>24)^1))m=l;else break}if(m){if((a[q+(m+-1)>>0]|0)==-1)break;if(j)l=(a[q+l>>0]|0)==0;else l=0;n=l&1;s=pt(u,97,q)|0;if(s)a[(c[s+8>>2]|0)+m>>0]=0;do if(r){m=c[Q+8>>2]|0;j=b[k+32>>1]|0;if(j<<16>>16>32)c[m+188>>2]=-1;else{K=m+188|0;c[K>>2]=c[K>>2]|1<<(j<<16>>16)+-1}if(!l){n=0;break}if(!(a[(c[k+8>>2]|0)+1>>0]|0))break;j=Q+19|0;l=a[j>>0]|0;if(!(l<<24>>24)){K=Q+72|0;j=(c[K>>2]|0)+1|0;c[K>>2]=j}else{K=l+-1<<24>>24;a[j>>0]=K;j=c[Q+((K&255)<<2)+24>>2]|0}es(Q,k,j)|0;k=c[m+32>>2]|0;if(k>>>0>0)c[(c[m+4>>2]|0)+((k+-1|0)*20|0)+12>>2]=0;Wr(Q,j)}while(0);Ih(i);if(!q){H=217;break k}o=c[(c[(c[t>>2]|0)+4>>2]|0)+20>>2]|0;m=Ir(S,s,0,0)|0;p=M<<16>>16!=0;do if(!p){if(a[(c[Q>>2]|0)+65>>0]|0)break;i=h+20|0;b[i>>1]=e[i>>1]|1024;i=s+8|0;l=c[i>>2]|0;k=a[l>>0]|0;if(!(k<<24>>24))break;h=m+8|0;j=0;do{K=k&255;a[l>>0]=((d[10368+K>>0]|223)^32)&K;a[(c[h>>2]|0)+j>>0]=a[9328+K>>0]|0;j=j+1|0;l=(c[i>>2]|0)+j|0;k=a[l>>0]|0}while(k<<24>>24!=0)}while(0);if(!(a[L>>0]|0)){k=c[m+8>>2]|0;if(!k)j=-1;else{j=k;while(1)if(!(a[j>>0]|0))break;else j=j+1|0;j=(j-k&1073741823)+-1|0}k=k+j|0;j=a[k>>0]|0;if(p)i=n;else{i=j<<24>>24==64?0:n;j=a[9328+(j&255)>>0]|0}a[k>>0]=(j&255)+1;l=i}else l=n;i=M<<16>>16==0?13752:11152;j=Vq(Q,83,tv(Q,Ir(S,o,0,0)|0,i)|0,s,0)|0;if(j){M=j+4|0;c[M>>2]=c[M>>2]|c[N>>2]&1;b[j+36>>1]=b[R+36>>1]|0}k=vv(f,j,259)|0;Au(f,k);i=Vq(Q,82,tv(Q,Ir(S,o,0,0)|0,i)|0,m,0)|0;if(i){M=i+4|0;c[M>>2]=c[M>>2]|c[N>>2]&1;b[i+36>>1]=b[R+36>>1]|0}i=vv(f,i,259)|0;Au(f,i);j=c[T>>2]|0;h=j+(g*48|0)|0;if(!l){H=217;break k}c[j+(k*48|0)+4>>2]=g;N=j+(g*48|0)+16|0;b[j+(k*48|0)+16>>1]=b[N>>1]|0;H=j+(g*48|0)+22|0;a[H>>0]=(a[H>>0]|0)+1<<24>>24;c[j+(i*48|0)+4>>2]=g;b[j+(i*48|0)+16>>1]=b[N>>1]|0;a[H>>0]=(a[H>>0]|0)+1<<24>>24;H=217;break k}}while(0);Ih(i);H=217}else H=217}else H=217}}else H=217;while(0);if((H|0)==217)if(((((a[R>>0]|0)==-103?($c(c[R+8>>2]|0,31416)|0)==0:0)?(U=c[R+20>>2]|0,(c[U>>2]|0)==2):0)?(V=c[U+4>>2]|0,W=c[V+20>>2]|0,(a[W>>0]|0)==-102):0)?(X=c[V>>2]|0,Y=wv(_,X)|0,Z=C,_=wv(_,W)|0,(_&Y|0)==0&(C&Z|0)==0):0){_=vv(f,Vq(Q,51,0,Ir(S,X,0,0)|0,0)|0,3)|0;h=c[T>>2]|0;X=h+(_*48|0)+32|0;c[X>>2]=Y;c[X+4>>2]=Z;c[h+(_*48|0)+8>>2]=c[W+28>>2];c[h+(_*48|0)+12>>2]=b[W+32>>1];b[h+(_*48|0)+18>>1]=64;c[h+(_*48|0)+4>>2]=g;b[h+(_*48|0)+16>>1]=b[h+(g*48|0)+16>>1]|0;Y=h+(g*48|0)+22|0;a[Y>>0]=(a[Y>>0]|0)+1<<24>>24;Y=h+(g*48|0)+20|0;b[Y>>1]=e[Y>>1]|8;Y=h+(g*48|0)+40|0;Z=c[Y+4>>2]|0;_=h+(_*48|0)+40|0;c[_>>2]=c[Y>>2];c[_+4>>2]=Z;h=h+(g*48|0)|0}g=h+32|0;Z=g;_=c[Z+4>>2]|P;c[g>>2]=c[Z>>2]|O;c[g+4>>2]=_}while(0);return}function Bu(a,d,e,f,g,h,k){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0;m=i;i=i+112|0;if((i|0)>=(j|0))ba();l=m;h=zv(l,a,d,e,h,k)|0;a:do if(!h)h=0;else{k=h;h=0;do{d=k+32|0;e=c[d>>2]|0;d=c[d+4>>2]|0;if((e&f|0)==0&(d&g|0)==0){if((e|0)==0&(d|0)==0?(b[k+18>>1]&2)!=0:0){h=k;break a}h=(h|0)==0?k:h}k=Av(l)|0}while((k|0)!=0)}while(0);i=m;return h|0}function Cu(e,f,g){e=e|0;f=f|0;g=g|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.0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,_=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;la=i;i=i+16|0;if((i|0)>=(j|0))ba();ia=la;v=c[e>>2]|0;ga=c[v>>2]|0;ja=c[ga>>2]|0;fa=c[e+4>>2]|0;ha=c[e+12>>2]|0;u=d[ha+16>>0]|0;v=c[v+4>>2]|0;da=c[v+(u*72|0)+24>>2]|0;x=c[e+8>>2]|0;ea=fa+20|0;fa=fa+12|0;l=c[fa>>2]|0;if((l|0)>0){n=c[v+(u*72|0)+48>>2]|0;o=0;m=0;p=c[ea>>2]|0;while(1){if((c[p+8>>2]|0)==(n|0))m=((b[p+18>>1]&-1153)<<16>>16!=0&1)+m|0;o=o+1|0;if((o|0)==(l|0))break;else p=p+48|0}}else m=0;if(!x)t=0;else{r=c[x>>2]|0;a:do if((r|0)>0){p=c[x+4>>2]|0;o=v+(u*72|0)+48|0;q=0;while(1){n=c[p+(q*20|0)>>2]|0;if((a[n>>0]|0)!=-102){l=q;break a}l=q+1|0;if((c[n+28>>2]|0)!=(c[o>>2]|0)){l=q;break a}if((l|0)<(r|0))q=l;else break}}else l=0;while(0);t=(l|0)==(r|0)?r:0}l=(m*20|0)+56+(t<<3)|0;ca=ih(ja,l,0)|0;do if(!ca){ph(ga,15776,ia);l=7}else{bw(ca|0,0,l|0)|0;l=ca+56|0;s=l+(m*12|0)|0;c[ca>>2]=m;Y=ca+8|0;c[Y>>2]=t;_=ca+4|0;c[_>>2]=l;c[ca+12>>2]=s;aa=ca+16|0;c[aa>>2]=s+(t<<3);n=c[fa>>2]|0;if((n|0)>0){q=c[v+(u*72|0)+48>>2]|0;p=0;r=0;o=c[ea>>2]|0;while(1){if((c[o+8>>2]|0)==(q|0)?(y=b[o+18>>1]|0,(y&-1153)<<16>>16!=0):0){c[l+(r*12|0)>>2]=c[o+12>>2];c[l+(r*12|0)+8>>2]=p;a[l+(r*12|0)+4>>0]=(y&255)==1?2:y&255;r=r+1|0}p=p+1|0;if((p|0)==(n|0))break;else o=o+48|0}}if((t|0)>0){l=c[x+4>>2]|0;m=0;do{c[s+(m<<3)>>2]=b[(c[l+(m*20|0)>>2]|0)+32>>1];a[s+(m<<3)+4>>0]=a[l+(m*20|0)+12>>0]|0;m=m+1|0}while((m|0)!=(t|0))}A=ha;c[A>>2]=0;c[A+4>>2]=0;A=ha+18|0;b[A>>1]=0;c[ha+36>>2]=1024;B=ha+40|0;b[B>>1]=0;D=ha+28|0;a[D>>0]=0;E=c[aa>>2]|0;F=c[ca>>2]|0;if(Ju(ja,ha,F)|0){ig(ja,ca);l=7;break}W=ca+28|0;X=ca+24|0;G=ca+20|0;H=ca+32|0;I=ca+40|0;J=ca+48|0;K=da+60|0;L=ga+64|0;O=(F|0)>0;P=ha+30|0;Q=ha+24|0;R=ha+32|0;S=ha+29|0;T=ha+20|0;U=ha+22|0;V=ha+48|0;v=0;y=0;x=0;b:while(1){if(!((y|0)!=0|(v&1|0)==0))if((v|0)>2){l=0;break}else z=v+1|0;else z=v;if((x|0)==0&(z|0)>1){l=0;break}p=c[ca>>2]|0;if((p|0)>0){m=c[ea>>2]|0;n=0;o=c[_>>2]|0;while(1){v=c[o+8>>2]|0;if(!z){l=o+5|0;a[l>>0]=0;u=(b[m+(v*48|0)+18>>1]&1)==0;y=u?y:1;v=m+(v*48|0)+32|0;v=(c[v>>2]|0)!=0|(c[v+4>>2]|0)!=0;if(v|u^1)x=v?1:x;else a[l>>0]=1}else if((z|0)==1){u=m+(v*48|0)+32|0;a[o+5>>0]=(c[u>>2]|0)==0&(c[u+4>>2]|0)==0&1}else if((z|0)==2)a[o+5>>0]=b[m+(v*48|0)+18>>1]&1^1;else a[o+5>>0]=1;n=n+1|0;if((n|0)>=(p|0)){u=y;break}else o=o+12|0}}else u=y;bw(E|0,0,p<<3|0)|0;if(c[W>>2]|0)Sc(c[X>>2]|0);c[G+0>>2]=0;c[G+4>>2]=0;c[G+8>>2]=0;c[G+12>>2]=0;h[I>>3]=5.e+98;l=J;c[l>>2]=25;c[l+4>>2]=0;l=c[ga>>2]|0;v=K;while(1){v=c[v>>2]|0;if((c[v>>2]|0)==(l|0))break;else v=v+24|0}y=c[v+8>>2]|0;v=nc[c[(c[y>>2]|0)+12>>2]&127](y,ca)|0;do if((v|0)==7)a[(c[ga>>2]|0)+65>>0]=1;else if(v){l=c[y+8>>2]|0;if(l){c[ia>>2]=l;ph(ga,10344,ia);break}if((v|0)!=516){v=v&255;if(v>>>0>26|(v|0)==2)v=16328;else v=c[15488+(v<<2)>>2]|0}else v=16344;c[ia>>2]=v;ph(ga,10344,ia)}while(0);v=y+8|0;Sc(c[v>>2]|0);c[v>>2]=0;v=c[ca>>2]|0;if((v|0)>0){l=0;do{if((a[(c[_>>2]|0)+(l*12|0)+5>>0]|0)==0?(c[(c[aa>>2]|0)+(l<<3)>>2]|0)>0:0){c[ia>>2]=c[da>>2];ph(ga,34096,ia);v=c[ca>>2]|0}l=l+1|0}while((l|0)<(v|0))}l=c[L>>2]|0;if(l)break;y=c[_>>2]|0;t=ha;c[t>>2]=f;c[t+4>>2]=g;c:do if(O){v=0;do{c[(c[V>>2]|0)+(v<<2)>>2]=0;v=v+1|0}while((v|0)!=(F|0));b[P>>1]=0;if(O){n=f;m=g;l=0;t=0;v=-1;while(1){p=c[E+(t<<3)>>2]|0;q=p+-1|0;do if((p|0)>0){r=c[y+8>>2]|0;if((p|0)>(F|0)|(r|0)<0){ka=65;break b}if((r|0)>=(c[fa>>2]|0)){ka=65;break b}o=(c[V>>2]|0)+(q<<2)|0;if(c[o>>2]|0){ka=65;break b}s=c[ea>>2]|0;ma=s+(r*48|0)+32|0;n=n|c[ma>>2];m=m|c[ma+4>>2];ma=ha;c[ma>>2]=n;c[ma+4>>2]=m;c[o>>2]=s+(r*48|0);v=(q|0)>(v|0)?q:v;do if((p|0)<17){if(!(a[E+(t<<3)+4>>0]|0))break;l=(l&65535|1<<q)&65535;b[P>>1]=l}while(0);if(!(b[s+(r*48|0)+18>>1]&1))break;if(!(a[E+(t<<3)+4>>0]|0))break c;c[H>>2]=0}while(0);t=t+1|0;if((t|0)>=(F|0)){ka=73;break}else y=y+12|0}}else{v=-1;ka=73}}else{b[P>>1]=0;v=-1;ka=73}while(0);if((ka|0)==73){ka=0;b[B>>1]=v+1;c[Q>>2]=c[G>>2];a[D>>0]=c[W>>2];c[W>>2]=0;c[R>>2]=c[X>>2];if(!(c[H>>2]|0))v=0;else v=c[Y>>2]&255;a[S>>0]=v;b[A>>1]=0;w=+h[I>>3];h[k>>3]=w;v=c[k>>2]|0;l=c[k+4>>2]|0;do if(!(w<=1.0))if(!(w<=2.0e9)){v=iw(v|0,l|0,52)|0;v=fw(v|0,C|0,64514,0)|0;v=(v<<16>>16)*10&65535;break}else{v=bs(~~w>>>0,+N(w)>=1.0?(w>0.0?~~+$(+M(w/4294967296.0),4294967295.0)>>>0:~~+Z((w-+(~~w>>>0))/4294967296.0)>>>0):0)|0;break}else v=0;while(0);b[T>>1]=v;t=J;b[U>>1]=bs(c[t>>2]|0,c[t+4>>2]|0)|0;Bv(e,ha)|0;if(a[D>>0]|0){Sc(c[R>>2]|0);a[D>>0]=0}}v=z+1|0;if((v|0)>=4){l=0;break}else y=u}if((ka|0)==65){c[ia>>2]=c[da>>2];ph(ga,34064,ia);l=1}if(c[W>>2]|0)Sc(c[X>>2]|0);ig(ja,ca)}while(0);i=la;return l|0}function Du(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0;da=i;i=i+64|0;if((i|0)>=(j|0))ba();p=da;o=da+56|0;n=da+52|0;b[n>>1]=-1;$=c[f+12>>2]|0;aa=c[f>>2]|0;G=c[aa+4>>2]|0;H=d[$+16>>0]|0;W=G+(H*72|0)+8|0;m=G+(H*72|0)+24|0;I=c[m>>2]|0;X=c[f+4>>2]|0;Y=G+(H*72|0)+76|0;k=c[Y>>2]|0;do if(!k){if(a[I+44>>0]&32){p=c[I+8>>2]|0;break}k=p+0|0;l=k+52|0;do{c[k>>2]=0;k=k+4|0}while((k|0)<(l|0));b[p+46>>1]=1;b[p+48>>1]=1;c[p+4>>2]=n;c[p+8>>2]=o;a[p+50>>0]=5;c[p+12>>2]=I;b[p+44>>1]=b[I+42>>1]|0;b[o>>1]=b[I+28>>1]|0;b[o+2>>1]=0;if(!(a[G+(H*72|0)+45>>0]&1))c[p+20>>2]=c[(c[m>>2]|0)+8>>2]}else p=k;while(0);o=b[I+28>>1]|0;if(o<<16>>16<11)B=0;else{B=o<<16>>16;B=((bs(B,((B|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((c[f+16>>2]|0)==0?(b[aa+34>>1]&128)==0:0)?(c[(c[c[aa>>2]>>2]|0)+24>>2]&1048576|0)!=0:0)?(c[Y>>2]|0)==0:0)?(q=a[G+(H*72|0)+45>>0]|0,(q&5)==0):0)?(F=I+44|0,(q&10|a[F>>0]&32)<<24>>24==0):0)?(D=c[X+20>>2]|0,V=c[X+12>>2]|0,E=D+(V*48|0)|0,(V|0)>0):0){v=$+8|0;w=$+24|0;x=$+42|0;y=$+28|0;z=$+40|0;A=$+48|0;r=(B&65535)+(o&65535)|0;n=r+4&65535;m=$+18|0;l=I+12|0;r=r+28&65535;s=$+22|0;t=$+20|0;u=$+36|0;o=D;do{q=o+32|0;V=q;U=v;if(((c[U>>2]&c[V>>2]|0)==0?(c[U+4>>2]&c[V+4>>2]|0)==0:0)?(Iu(o,W,0,0)|0)!=0:0){b[w>>1]=1;b[x>>1]=0;c[y>>2]=0;b[z>>1]=1;c[c[A>>2]>>2]=o;b[m>>1]=n;if((c[l>>2]|0)==0?(a[F>>0]&2)==0:0)b[m>>1]=r;b[s>>1]=43;b[t>>1]=Cv(B,43)|0;c[u>>2]=16384;U=q;V=c[U+4>>2]|h;k=$;c[k>>2]=c[U>>2]|g;c[k+4>>2]=V;k=Bv(f,$)|0}else k=0;o=o+48|0}while((k|0)==0&o>>>0<E>>>0)}else k=0;V=$+36|0;a:do if((k|0)==0&(p|0)!=0){M=$+24|0;N=$+42|0;O=$+40|0;P=$+17|0;Q=$+18|0;R=$+22|0;S=$+28|0;T=G+(H*72|0)+48|0;U=$+20|0;K=G+(H*72|0)+64|0;L=I+42|0;t=I+44|0;s=aa+34|0;r=X+12|0;G=X+20|0;J=1;while(1){u=c[p+36>>2]|0;v=c[T>>2]|0;b:do if(u){k=c[r>>2]|0;if((k|0)>0){m=0;n=c[G>>2]|0;while(1){l=c[n>>2]|0;if(Dv(l,u,v)|0){if(!(c[l+4>>2]&1)){ca=32;break b}if((b[l+36>>1]|0)==(v|0)){ca=32;break b}}m=m+1|0;if((m|0)>=(k|0)){k=0;break}else n=n+48|0}}else k=0}else ca=32;while(0);if((ca|0)==32){ca=0;H=b[c[p+8>>2]>>1]|0;b[M>>1]=0;b[N>>1]=0;b[O>>1]=0;a[P>>0]=0;b[Q>>1]=0;I=$;c[I>>2]=g;c[I+4>>2]=h;b[R>>1]=H;c[S>>2]=p;I=p+51|0;w=a[I>>0]|0;c:do if(((w&4)==0?(Z=c[(c[f>>2]|0)+8>>2]|0,(Z|0)!=0):0)?(_=c[Z>>2]|0,(_|0)>0):0){F=c[Z+4>>2]|0;E=p+46|0;y=p+4|0;x=0;while(1){B=c[F+(x*20|0)>>2]|0;d:do if(!B)B=0;else while(1){A=c[B+4>>2]|0;if(!(A&4096))break d;if(!(A&262144))B=B+12|0;else B=c[(c[B+20>>2]|0)+4>>2]|0;B=c[B>>2]|0;if(!B){B=0;break}}while(0);if((a[B>>0]|0)!=-102){x=0;break c}if((c[B+28>>2]|0)==(v|0)){A=b[B+32>>1]|0;if(A<<16>>16<0){x=1;break c}B=b[E>>1]|0;if(B<<16>>16){z=c[y>>2]|0;B=B&65535;D=0;do{if(A<<16>>16==(b[z+(D<<1)>>1]|0)){x=1;break c}D=D+1|0}while((D|0)<(B|0))}}x=x+1|0;if((x|0)>=(_|0)){x=0;break}}}else x=0;while(0);do if((c[p+40>>2]|0)<1){c[V>>2]=256;a[P>>0]=(x|0)!=0?J&255:0;b[U>>1]=(H&65535)+16;Ev(X,$,H);k=Bv(f,$)|0;b[R>>1]=H;if(k)break a}else{if(!(w&32)){E=K;F=c[E>>2]|0;E=c[E+4>>2]|0;D=p+4|0;B=0;A=0;z=e[p+48>>1]|0;e:while(1){y=z;while(1){z=y+-1|0;if((y|0)<=0)break e;y=b[(c[D>>2]|0)+(z<<1)>>1]|0;if((y&65535)<63)break;else y=z}q=ew(1,0,y<<16>>16|0)|0;B=q|B;A=C|A}q=F&~B;u=E&~A;B=q;A=u;u=(q|0)==0&(u|0)==0?576:512}else{B=0;A=0;u=576}c[V>>2]=u;q=(x|0)!=0;if(!q?(a[t>>0]&32)==0:0){if(!((B|0)==0&(A|0)==0))break;if(a[I>>0]&4)break;if((b[p+44>>1]|0)>=(b[L>>1]|0))break;if(!((b[s>>1]&4)==0&(c[2190]|0)!=0))break;if(b[(c[c[aa>>2]>>2]|0)+60>>1]&64)break}a[P>>0]=q?J&255:0;o=H<<16>>16;q=o+1+(((b[p+44>>1]|0)*15|0)/(b[L>>1]|0)|0)&65535;if(!((B|0)==0&(A|0)==0))q=Cv(q,o+16&65535)|0;b[U>>1]=q;Ev(X,$,H);k=Bv(f,$)|0;b[R>>1]=H;if(k)break a}while(0);k=Fv(f,W,p,0)|0;if(c[Y>>2]|0)break a}p=c[p+20>>2]|0;if(!((k|0)==0&(p|0)!=0))break;else J=J+1|0}}while(0);i=da;return k|0}function Eu(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0;$=i;i=i+608|0;if((i|0)>=(j|0))ba();Z=$+168|0;X=$+576|0;Y=$+112|0;V=$+56|0;W=$;k=c[f>>2]|0;S=c[f+4>>2]|0;o=c[S+20>>2]|0;n=c[S+12>>2]|0;U=o+(n*48|0)|0;R=c[f+12>>2]|0;l=Y+0|0;m=l+56|0;do{c[l>>2]=0;l=l+4|0}while((l|0)<(m|0));m=c[k+4>>2]|0;l=d[R+16>>0]|0;Q=c[m+(l*72|0)+48>>2]|0;a:do if((n|0)>0){A=R+8|0;B=X+8|0;C=X+16|0;D=R+40|0;E=R+48|0;F=R+36|0;G=R+18|0;H=R+17|0;I=R+24|0;J=R+20|0;K=R+22|0;L=Z+4|0;M=Z+8|0;N=Z+12|0;O=Z+20|0;P=X+4|0;w=m+(l*72|0)+24|0;x=W+8|0;y=Y+8|0;z=V+8|0;while(1){b:do if((b[o+18>>1]&256)!=0?(T=c[o+12>>2]|0,t=T+408|0,s=A,!((c[s>>2]&c[t>>2]|0)==0?(c[s+4>>2]&c[t+4>>2]|0)==0:0)):0){n=T+20|0;v=(c[n>>2]|0)+((c[T+12>>2]|0)*48|0)|0;c[X+0>>2]=c[f+0>>2];c[X+4>>2]=c[f+4>>2];c[X+8>>2]=c[f+8>>2];c[X+12>>2]=c[f+12>>2];c[B>>2]=0;c[C>>2]=V;n=c[n>>2]|0;c:do if(n>>>0<v>>>0){l=1;k=0;d:while(1){if(!(b[n+18>>1]&512))if((c[n+8>>2]|0)==(Q|0)){c[Z>>2]=c[S>>2];c[L>>2]=S;a[M>>0]=72;c[N>>2]=1;c[O>>2]=n;m=Z;_=10}else m=l;else{m=c[n+12>>2]|0;_=10}do if((_|0)==10){_=0;c[P>>2]=m;b[V>>1]=0;if(!(a[(c[w>>2]|0)+44>>0]&16))k=Du(X,g,h)|0;else k=Cu(X,g,h)|0;if(!k)k=Eu(X,g,h)|0;m=b[V>>1]|0;if(!(m<<16>>16))break d;if(l){b[Y>>1]=m;gw(y|0,z|0,(m&65535)<<4|0)|0;m=0;break}t=b[Y>>1]|0;b[W>>1]=t;u=t&65535;gw(x|0,y|0,u<<4|0)|0;b[Y>>1]=0;if(!(t<<16>>16))m=0;else{t=0;do{if(!(m<<16>>16))m=0;else{p=W+(t<<4)+8|0;l=c[p>>2]|0;p=c[p+4>>2]|0;q=b[W+(t<<4)+16>>1]|0;r=b[W+(t<<4)+18>>1]|0;s=0;do{aa=V+(s<<4)+8|0;ca=c[aa>>2]|l;aa=c[aa+4>>2]|p;m=Cv(q,b[V+(s<<4)+16>>1]|0)|0;Gv(Y,ca,aa,m,Cv(r,b[V+(s<<4)+18>>1]|0)|0);s=s+1|0;m=b[V>>1]|0}while((s|0)<(m&65535|0))}t=t+1|0}while((t|0)<(u|0));m=0}}while(0);n=n+48|0;if(n>>>0>=v>>>0)break c;else l=m}b[Y>>1]=0}else k=0;while(0);b[D>>1]=1;c[c[E>>2]>>2]=o;c[F>>2]=8192;b[G>>1]=0;a[H>>0]=0;c[I+0>>2]=0;c[I+4>>2]=0;c[I+8>>2]=0;if(k)break a;n=e[Y>>1]|0;m=0;while(1){if((m|0)>=(n|0))break b;b[J>>1]=(e[Y+(m<<4)+16>>1]|0)+1;b[K>>1]=b[Y+(m<<4)+18>>1]|0;s=Y+(m<<4)+8|0;t=c[s+4>>2]|0;k=R;c[k>>2]=c[s>>2];c[k+4>>2]=t;k=Bv(f,R)|0;if(!k)m=m+1|0;else break a}}while(0);o=o+48|0;if(o>>>0>=U>>>0){k=0;break}}}else k=0;while(0);i=$;return k|0}function Fu(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=d+48|0;f=c[e>>2]|0;g=d+56|0;if((f|0)!=(g|0))ig(a,f);Hv(a,d);c[e>>2]=g;b[d+40>>1]=0;b[d+44>>1]=3;c[d+36>>2]=0;return}function Gu(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,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,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0;la=i;i=i+32|0;if((i|0)>=(j|0))ba();ca=la+24|0;Z=la+16|0;fa=la+8|0;ka=la;aa=c[d>>2]|0;ha=c[aa>>2]|0;o=a[d+41>>0]|0;ia=o&255;if((o&255)<2)V=1;else V=o<<24>>24==2?5:10;ja=d+8|0;l=c[ja>>2]|0;da=f<<16>>16==0;if((l|0)==0|da)U=0;else U=c[l>>2]|0;m=U<<1;ga=m+(_((ia<<3)+64|0,V)|0)|0;ga=ih(ha,ga,((ga|0)<0)<<31>>31)|0;do if(ga){l=ga+(V<<5)|0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;c[l+16>>2]=0;c[l+20>>2]=0;c[l+24>>2]=0;c[l+28>>2]=0;g=V<<1;n=_(V,-2)|0;n=ga+((_((((n|0)>-1?n:1073741823)+(V<<1)<<2)+4|0,ia)|0)+(V<<6))|0;k=g;h=ga;g=ga+(g<<5)|0;while(1){c[h+24>>2]=g;k=k+-1|0;if((k|0)<=0)break;else{h=h+32|0;g=g+(ia<<2)|0}}k=(U|0)!=0;if(k)bw(n|0,0,m|0)|0;else n=0;T=c[aa+424>>2]|0;b[ga+(V<<5)+16>>1]=T>>>0<48?T&65535:48;if(k)a[ga+(V<<5)+22>>0]=o<<24>>24!=0?-1:U&255;T=o<<24>>24==0;if(!T){P=d+16|0;Q=d+34|0;R=f<<16>>16<11;S=(f&65535)+16|0;M=f<<16>>16;N=((M|0)<0)<<31>>31;O=V>>>0>1;g=ga;L=0;m=0;o=0;f=0;h=1;while(1){if((h|0)>0){G=L&65535;H=L<<2;I=g+18|0;J=g+16|0;K=0;k=0;F=l;while(1){p=c[P>>2]|0;if(p){A=F+22|0;B=F+16|0;C=F+20|0;D=F+24|0;E=F+8|0;z=k;while(1){r=a[A>>0]|0;s=Z;c[s>>2]=0;c[s+4>>2]=0;s=p;k=F;q=c[k>>2]|0;k=c[k+4>>2]|0;a:do if(((c[s>>2]&~q|0)==0?(c[s+4>>2]&~k|0)==0:0)?(W=p+8|0,Y=W,X=c[Y>>2]|0,Y=c[Y+4>>2]|0,(X&q|0)==0&(Y&k|0)==0):0){v=e[B>>1]|0;x=Cv(b[p+18>>1]|0,v+(e[p+20>>1]|0)&65535)|0;x=Cv(x,b[C>>1]|0)|0;v=(e[p+22>>1]|0)+v|0;y=v&65535;u=X|q;s=Y|k;if(r<<24>>24<0)w=Iv(d,c[ja>>2]|0,F,b[Q>>1]|0,G,p,Z)|0;else{k=E;q=c[k+4>>2]|0;w=Z;c[w>>2]=c[k>>2];c[w+4>>2]=q;w=r}r=w<<24>>24;if(w<<24>>24>-1&(U|0)>(r|0)){t=n+(r<<1)|0;q=b[t>>1]|0;if(!(q<<16>>16)){r=((U-r|0)*100|0)/(U|0)|0;r=(bs(r,((r|0)<0)<<31>>31)|0)&65535;if(R)k=0;else k=((bs(M,N)|0)&65535)+65503&65535;r=S+(((r<<16)+-4325376|0)>>>16)+k|0;if(b[Q>>1]&1024)r=(r&65535)+16|0;q=r&65535;b[t>>1]=q}t=Cv(x,q)|0}else t=x;b:do if((z|0)>0){r=0;q=g;while(1){k=q;if(((c[k>>2]|0)==(u|0)?(c[k+4>>2]|0)==(s|0):0)?(a[q+22>>0]^w)<<24>>24>-1:0)break;r=r+1|0;if((r|0)>=(z|0)){$=35;break b}else q=q+32|0}k=b[q+18>>1]|0;if(k<<16>>16<t<<16>>16){k=z;break a}if(k<<16>>16!=t<<16>>16){k=z;break}if((b[q+16>>1]|0)>(v<<16>>16|0))k=z;else{k=z;break a}}else $=35;while(0);if(($|0)==35){$=0;q=(z|0)<(V|0);if(!q){if(t<<16>>16>m<<16>>16){k=z;break}if(!(t<<16>>16!=m<<16>>16?1:x<<16>>16<f<<16>>16)){k=z;break}}k=(q&1)+z|0;q=g+((q?z:o)<<5)|0}r=F;v=W;s=c[v+4>>2]|c[r+4>>2];u=q;c[u>>2]=c[v>>2]|c[r>>2];c[u+4>>2]=s;u=Z;s=c[u+4>>2]|0;r=q+8|0;c[r>>2]=c[u>>2];c[r+4>>2]=s;b[q+16>>1]=y;b[q+18>>1]=t;b[q+20>>1]=x;a[q+22>>0]=w;q=q+24|0;gw(c[q>>2]|0,c[D>>2]|0,H|0)|0;c[(c[q>>2]|0)+(L<<2)>>2]=p;if((k|0)<(V|0))break;m=b[I>>1]|0;f=b[J>>1]|0;if(O){s=g;t=1;r=m;o=0;q=f}else{o=0;break}while(1){m=b[s+50>>1]|0;do if(m<<16>>16<=r<<16>>16){if(m<<16>>16!=r<<16>>16){m=r;f=q;break}f=b[s+52>>1]|0;if(f<<16>>16>q<<16>>16)$=48;else{m=r;f=q}}else{f=b[s+52>>1]|0;$=48}while(0);s=s+32|0;if(($|0)==48){$=0;o=t}t=t+1|0;if((t|0)>=(V|0))break;else{r=m;q=f}}}else k=z;while(0);p=c[p+52>>2]|0;if(!p)break;else z=k}}K=K+1|0;if((K|0)==(h|0)){h=k;break}else F=F+32|0}}else h=0;L=L+1|0;if((L|0)>=(ia|0))break;else{K=g;g=l;l=K}}if(!h){ph(aa,34008,ca);ig(ha,ga);break}if((h|0)>1){k=1;l=g;do{if((b[l+18>>1]|0)>(b[g+(k<<5)+18>>1]|0))l=g+(k<<5)|0;k=k+1|0}while((k|0)!=(h|0))}else l=g;if(!T){h=d+4|0;k=c[l+24>>2]|0;g=0;do{$=c[k+(g<<2)>>2]|0;c[d+(g*80|0)+800>>2]=$;$=a[$+16>>0]|0;a[d+(g*80|0)+780>>0]=$;c[d+(g*80|0)+740>>2]=c[(c[h>>2]|0)+(($&255)*72|0)+48>>2];g=g+1|0}while((g|0)<(ia|0))}}h=d+34|0;if(((b[h>>1]&1536)==1024?(ea=d+40|0,!((a[ea>>0]|0)!=0|da)):0)?($=d+12|0,Z=ia+-1|0,Z=(Iv(d,c[$>>2]|0,l,512,Z&65535,c[(c[l+24>>2]|0)+(Z<<2)>>2]|0,fa)|0)<<24>>24,(Z|0)==(c[c[$>>2]>>2]|0)):0)a[ea>>0]=2;k=c[ja>>2]|0;if(k){g=b[h>>1]|0;h=a[l+22>>0]|0;if(g&512){if((h<<24>>24|0)==(c[k>>2]|0))a[d+40>>0]=2}else{a[d+36>>0]=h<<24>>24<0?0:h;Y=l+8|0;Z=c[Y+4>>2]|0;$=d+24|0;c[$>>2]=c[Y>>2];c[$+4>>2]=Z}if(((g&2048)!=0?(a[d+36>>0]|0)==(c[k>>2]|0):0)?($=ka,c[$>>2]=0,c[$+4>>2]=0,$=ia+-1|0,$=(Iv(d,k,l,0,$&65535,c[(c[l+24>>2]|0)+($<<2)>>2]|0,ka)|0)<<24>>24,($|0)==(c[c[ja>>2]>>2]|0)):0){a[d+37>>0]=1;Y=ka;Z=c[Y+4>>2]|0;$=d+24|0;c[$>>2]=c[Y>>2];c[$+4>>2]=Z}}b[d+32>>1]=b[l+16>>1]|0;ig(ha,ga)}while(0);i=la;return}function Hu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if((b|0)!=0?(g=c[b>>2]|0,(g|0)>0):0){e=c[b+4>>2]|0;d=0;b=0;f=0;do{h=wv(a,c[e+(f*20|0)>>2]|0)|0;d=h|d;b=C|b;f=f+1|0}while((f|0)<(g|0))}else{b=0;d=0}C=b;return d|0}function Iu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0;do if((((c[d+8>>2]|0)==(c[e+40>>2]|0)?(b[d+18>>1]&2)!=0:0)?(i=d+32|0,(c[i>>2]&f|0)==0?(c[i+4>>2]&g|0)==0:0):0)?(h=c[d+12>>2]|0,(h|0)>=0):0){f=a[(c[(c[e+16>>2]|0)+4>>2]|0)+(h*24|0)+21>>0]|0;g=(jv(c[d>>2]|0)|0)<<24>>24;if((g|0)==65){g=1;break}else if((g|0)==66){g=f<<24>>24==66&1;break}else{g=f<<24>>24>66&1;break}}else g=0;while(0);return g|0}function Ju(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=d+44|0;if((e[j>>1]|0|0)<(f|0)){g=f+7&-8;h=ih(a,g<<2,0)|0;if(!h)f=7;else{i=d+48|0;gw(h|0,c[i>>2]|0,(e[j>>1]|0)<<2|0)|0;f=c[i>>2]|0;if((f|0)!=(d+56|0))ig(a,f);c[i>>2]=h;b[j>>1]=g;f=0}}else f=0;return f|0}function Ku(a,b,d){a=a|0;b=b|0;d=d|0;do if(!(c[b+4>>2]&256)){if((d|0)!=0?(c[d+4>>2]&256|0)!=0:0){b=_t(a,d)|0;break}b=_t(a,b)|0;if(!b)b=_t(a,d)|0}else b=_t(a,b)|0;while(0);return b|0}function Lu(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+144|0;if((i|0)>=(j|0))ba();t=y;x=y+8|0;o=y+36|0;if(((a[e+450>>0]|0)==2?(q=d[g+44>>0]|0,w=c[e+8>>2]|0,n=c[e>>2]|0,v=c[e+464>>2]|0,s=c[g+64>>2]|0,u=s+36|0,r=c[u>>2]|0,(r&8192|0)==0):0)?(m=l&65535,(m&64|0)==0):0){l=r&48;do if(!l){if((r&1024|0)==0?(b[s+24>>1]|0)!=0:0){p=1;break}p=(m&3|0)!=0}else p=1;while(0);c[x+4>>2]=o;c[x+8>>2]=o;c[x+12>>2]=0;c[x+16>>2]=100;c[x+20>>2]=1e9;a[x+24>>0]=1;a[x+25>>0]=0;c[x>>2]=n;e=p?33576:33584;g=e;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;Ok(x,e,g-e&1073741823);if(!(c[f+(q*72|0)+28>>2]|0)){c[t>>2]=c[f+(q*72|0)+16>>2];An(x,0,33608,t)}else{c[t>>2]=d[f+(q*72|0)+46>>0];An(x,0,33592,t)}e=c[f+(q*72|0)+20>>2]|0;if(e){c[t>>2]=e;An(x,0,33624,t)}do if(!(r&1280)){m=s+28|0;g=c[m>>2]|0;l=f+(q*72|0)+24|0;if((a[(c[l>>2]|0)+44>>0]&32)!=0?(a[g+51>>0]&3)==2:0)if(p)e=33632;else break;else if(!(r&131072))if(!(r&16384))e=(r&64|0)==0?33744:33720;else e=33688;else e=33648;Ok(x,33760,7);c[t>>2]=c[g>>2];An(x,0,e,t);r=b[s+24>>1]|0;p=c[(c[l>>2]|0)+4>>2]|0;o=c[(c[m>>2]|0)+4>>2]|0;g=r&65535;if(!(r<<16>>16)){if(!(c[u>>2]&48))break;Ok(x,33904,2);m=0}else{l=b[s+42>>1]|0;Ok(x,33904,2);l=l&65535;m=0;do{e=b[o+(m<<1)>>1]|0;if(e<<16>>16<0)e=20456;else e=c[p+((e<<16>>16)*24|0)>>2]|0;if((m|0)<(l|0)){if(m)Ok(x,33920,5);c[t>>2]=e;An(x,0,33928,t)}else Jv(x,m,e,33912);m=m+1|0}while((m|0)<(g|0));m=g>>>0>1?g:1}l=c[u>>2]|0;if(!(l&32))e=m;else{l=b[o+(m<<1)>>1]|0;if(l<<16>>16<0)l=20456;else l=c[p+((l<<16>>16)*24|0)>>2]|0;Jv(x,m,l,33936);l=c[u>>2]|0;e=m+1|0}if(l&16){m=b[o+(m<<1)>>1]|0;if(m<<16>>16<0)m=20456;else m=c[p+((m<<16>>16)*24|0)>>2]|0;Jv(x,e,m,33944)}Ok(x,33952,1)}else{if((r&256|0)==0|(r&15|0)==0){if(!(r&1024))break;r=c[s+32>>2]|0;c[t>>2]=c[s+24>>2];c[t+4>>2]=r;An(x,0,33872,t);break}if(!(r&5))if((l|0)==48)l=33784;else l=(r&32|0)==0?33824:33808;else l=33768;Ok(x,33840,27);m=l;while(1)if(!(a[m>>0]|0))break;else m=m+1|0;Ok(x,l,m-l&1073741823)}while(0);r=pg(x)|0;th(w,sh(w,157,v,h,k)|0,r,-1)}i=y;return}function Mu(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;l=c[d>>2]|0;n=c[b+8>>2]|0;i=a[l>>0]|0;do if(i<<24>>24==79)h=es(b,c[l+16>>2]|0,h)|0;else if(i<<24>>24==76)sh(n,28,0,h,0)|0;else{j=c[e+64>>2]|0;i=j+36|0;if(((c[i>>2]&1024|0)==0?(k=c[j+28>>2]|0,(k|0)!=0):0)?(a[(c[k+28>>2]|0)+f>>0]|0)!=0:0)g=(g|0)==0&1;m=iv(b,l,4,0)|0;if((m|0)==4)g=(g|0)==0&1;l=c[l+28>>2]|0;f=(g|0)!=0;sh(n,f?105:108,l,0,0)|0;c[i>>2]=c[i>>2]|2048;k=e+56|0;i=c[k>>2]|0;if(!i){c[e+16>>2]=ts(n)|0;i=c[k>>2]|0}j=i+1|0;c[k>>2]=j;i=e+60|0;j=Sl(c[b>>2]|0,c[i>>2]|0,j*12|0,0)|0;c[i>>2]=j;if(!j){c[k>>2]=0;break}i=(c[k>>2]|0)+-1|0;c[j+(i*12|0)>>2]=l;if((m|0)==1)g=sh(n,103,l,h,0)|0;else g=sh(n,47,l,0,h)|0;c[j+(i*12|0)+4>>2]=g;a[j+(i*12|0)+8>>0]=f?6:7;sh(n,76,h,0,0)|0}while(0);Nu(e,d);return h|0}function Nu(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a:do if(e){i=d+72|0;h=0;while(1){f=e+20|0;g=b[f>>1]|0;if(g&4)break a;if((c[d>>2]|0)!=0?(c[(c[e>>2]|0)+4>>2]&1|0)==0:0)break a;j=i;k=e+40|0;if(!((c[k>>2]&c[j>>2]|0)==0?(c[k+4>>2]&c[j+4>>2]|0)==0:0))break a;g=g&65535;b[f>>1]=g|((h|0)==0|(g&1024|0)==0?4:512);g=c[e+4>>2]|0;if((g|0)<0)break a;e=c[(c[e+24>>2]|0)+20>>2]|0;j=e+(g*48|0)+22|0;f=(a[j>>0]|0)+-1<<24>>24;a[j>>0]=f;if(f<<24>>24)break a;e=e+(g*48|0)|0;if(!e)break;else h=h+1|0}}while(0);return}function Ou(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;do if(!(b[(c[d>>2]|0)+60>>1]&2)){k=d+116|0;j=0;h=k;while(1){i=h+12|0;if(!(c[i>>2]|0)){n=4;break}j=j+1|0;if((j|0)>=10){l=0;h=-1;m=2147483647;break}else h=h+20|0}if((n|0)==4){c[h+8>>2]=c[d+100>>2];c[h>>2]=e;b[h+4>>1]=f;c[i>>2]=g;a[h+6>>0]=0;g=d+104|0;e=c[g>>2]|0;c[g>>2]=e+1;c[h+16>>2]=e;break}while(1){j=c[k+16>>2]|0;i=(j|0)<(m|0);h=i?l:h;l=l+1|0;if((l|0)==10)break;else{m=i?j:m;k=k+20|0}}if((h|0)>-1){c[d+(h*20|0)+124>>2]=c[d+100>>2];c[d+(h*20|0)+116>>2]=e;b[d+(h*20|0)+120>>1]=f;c[d+(h*20|0)+128>>2]=g;a[d+(h*20|0)+122>>0]=0;g=d+104|0;e=c[g>>2]|0;c[g>>2]=e+1;c[d+(h*20|0)+132>>2]=e}}while(0);return}function Pu(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;r=c[d+8>>2]|0;m=c[e+64>>2]|0;n=b[m+24>>1]|0;p=b[m+42>>1]|0;t=c[m+28>>2]|0;q=d+72|0;l=c[q>>2]|0;i=l+1|0;s=n&65535;o=s+g|0;c[q>>2]=l+o;q=c[d>>2]|0;t=gh(q,kt(r,t)|0)|0;q=(t|0)!=0;if(!q)a[(c[d>>2]|0)+65>>0]=1;if(p<<16>>16){g=c[e+8>>2]|0;j=(f|0)!=0;sh(r,j?105:108,g,0,0)|0;k=sh(r,16,0,0,0)|0;l=p&65535;j=sh(r,j?62:65,g,0,i)|0;th(r,j,l,-14);c[e+20>>2]=j;j=c[r+32>>2]|0;if(j>>>0>k>>>0)c[(c[r+4>>2]|0)+(k*20|0)+8>>2]=j;c[(c[r+24>>2]|0)+88>>2]=j+-1;k=0;do{sh(r,47,g,k,k+i|0)|0;k=k+1|0}while((k|0)<(l|0))}if((p&65535)<(n&65535)){m=m+48|0;l=e+12|0;n=(o|0)==1;o=p&65535;k=i;while(1){j=c[(c[m>>2]|0)+(o<<2)>>2]|0;g=o+k|0;i=Mu(d,j,e,o,f,g)|0;do if((i|0)!=(g|0))if(n){Wr(d,k);break}else{sh(r,34,i,g,0)|0;i=k;break}else i=k;while(0);if(!(b[j+18>>1]&129)){g=c[(c[j>>2]|0)+16>>2]|0;if(Qu(g)|0)sh(r,76,i+o|0,c[l>>2]|0,0)|0;if(q){j=t+o|0;if((xu(g,a[j>>0]|0)|0)<<24>>24==65){a[j>>0]=65;k=65}else k=a[j>>0]|0;if(Ru(g,k)|0)a[j>>0]=65}}o=o+1|0;if((o|0)>=(s|0))break;else k=i}}c[h>>2]=t;return i|0}function Qu(d){d=d|0;var e=0;e=a[d>>0]|0;if((e+99&255)<2)do{d=c[d+12>>2]|0;e=a[d>>0]|0}while((e+99&255)<2);if(e<<24>>24==-97)e=a[d+38>>0]|0;switch(e&255|0){case 134:case 133:case 97:case 132:{d=0;break}case 154:{if(!(c[d+4>>2]&1048576)){e=b[d+32>>1]|0;if(e<<16>>16>-1)d=(a[(c[(c[d+44>>2]|0)+4>>2]|0)+((e<<16>>16)*24|0)+20>>0]|0)==0;else d=0}else d=1;d=d&1;break}default:d=1}return d|0}function Ru(d,e){d=d|0;e=e|0;var f=0;a:do if(e<<24>>24==65)d=1;else{f=a[d>>0]|0;if((f+99&255)<2)do{d=c[d+12>>2]|0;f=a[d>>0]|0}while((f+99&255)<2);if(f<<24>>24==-97)f=a[d+38>>0]|0;switch(f&255|0){case 154:{if((b[d+32>>1]|0)<0)d=(e+-67&255)<2;else d=0;d=d&1;break a}case 97:{d=e<<24>>24==66&1;break a}case 132:{d=(e+-67&255)<2&1;break a}case 134:{d=1;break a}case 133:{d=(e<<24>>24==69|e<<24>>24==67)&1;break a}default:{d=0;break a}}}while(0);return d|0}function Su(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;h=c[b+8>>2]|0;do if(f){a:do if((e|0)>0)while(1){if((a[f>>0]|0)!=65){g=f;break a}e=e+-1|0;d=d+1|0;f=f+1|0;if((e|0)<=0){g=f;break}}else g=f;while(0);while(1){if((e|0)<=1){i=8;break}f=e+-1|0;if((a[g+f>>0]|0)==65)e=f;else break}if((i|0)==8)if((e|0)<=0)break;sh(h,48,d,e,0)|0;th(h,-1,g,e);$s(b,d,e)}while(0);return}function Tu(a,b){a=a|0;b=b|0;var d=0,e=0;if(b){Kv(b+328|0);e=b+16|0;d=c[e>>2]|0;if(d)do{c[e>>2]=c[d+52>>2];Fu(a,d);ig(a,d);d=c[e>>2]|0}while((d|0)!=0);ig(a,b)}return}function Uu(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+32|0;if((i|0)>=(j|0))ba();e=d;c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;c[e+16>>2]=0;c[e+20>>2]=0;c[e>>2]=80;c[e+4>>2]=81;c[e+24>>2]=a;ns(e,b)|0;i=d;return}function Vu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();n=p+4|0;o=p;m=c[b+8>>2]|0;c[n>>2]=0;c[o>>2]=0;if(!((m|0)==0|(d|0)==0)){h=a[d>>0]|0;g=h&255;a:do switch(g|0){case 72:{l=ts(m)|0;ct(b,c[d+12>>2]|0,l,f^16);g=b+100|0;c[g>>2]=(c[g>>2]|0)+1;Vu(b,c[d+16>>2]|0,e,f);g=c[m+24>>2]|0;h=~l;if((l|0)<0?(k=c[g+112>>2]|0,(k|0)!=0):0)c[k+(h<<2)>>2]=c[m+32>>2];c[g+88>>2]=(c[m+32>>2]|0)+-1;Zt(b);break}case 71:{Vu(b,c[d+12>>2]|0,e,f);m=b+100|0;c[m>>2]=(c[m>>2]|0)+1;Vu(b,c[d+16>>2]|0,e,f);Zt(b);break}case 19:{ct(b,c[d+12>>2]|0,e,f);break}case 148:case 73:{f=d+12|0;l=Xt(b,c[f>>2]|0,n)|0;k=d+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[f>>2]|0,c[k>>2]|0,h<<24>>24==73?79:78,l,m,e,128);break}case 75:{k=ts(m)|0;bu(b,d,k,(f|0)!=0?e:k);sh(m,16,0,e,0)|0;h=c[m+24>>2]|0;g=~k;if((k|0)<0?(l=c[h+112>>2]|0,(l|0)!=0):0)c[l+(g<<2)>>2]=c[m+32>>2];c[h+88>>2]=(c[m+32>>2]|0)+-1;break}case 79:case 78:case 83:case 80:case 81:case 82:{h=d+12|0;l=Xt(b,c[h>>2]|0,n)|0;k=d+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[h>>2]|0,c[k>>2]|0,g,l,m,e,f);break}case 77:case 76:{sh(m,g,Xt(b,c[d+12>>2]|0,n)|0,e,0)|0;break}case 74:{Wu(b,d,e,1,f);break}default:{if(Xu(d)|0){sh(m,16,0,e,0)|0;break a}if(!(iu(d)|0))sh(m,45,Xt(b,d,n)|0,e,(f|0)!=0&1)|0}}while(0);Wr(b,c[n>>2]|0);Wr(b,c[o>>2]|0)}i=p;return}function Wu(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;p=i;i=i+208|0;if((i|0)>=(j|0))ba();l=p+152|0;h=p+104|0;k=p+56|0;m=p+8|0;n=p;c[n>>2]=0;o=m+0|0;q=(c[d+12>>2]|0)+0|0;r=o+48|0;do{c[o>>2]=c[q>>2];o=o+4|0;q=q+4|0}while((o|0)<(r|0));a[l>>0]=72;c[l+12>>2]=h;c[l+16>>2]=k;a[h>>0]=83;c[h+12>>2]=m;d=c[(c[d+20>>2]|0)+4>>2]|0;c[h+16>>2]=c[d>>2];a[k>>0]=81;c[k+12>>2]=m;c[k+16>>2]=c[d+20>>2];d=Xt(b,m,n)|0;a[m+38>>0]=a[m>>0]|0;a[m>>0]=-97;c[m+28>>2]=d;d=m+4|0;c[d>>2]=c[d>>2]&-4097;if(!f)ct(b,l,e,g);else Vu(b,l,e,g);Wr(b,c[n>>2]|0);i=p;return}function Xu(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=d;c[b>>2]=0;if((c[a+4>>2]&1|0)==0?(Is(a,b)|0)!=0:0)a=(c[b>>2]|0)!=0&1;else a=0;i=d;return a|0}function Yu(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!((a|0)==0|(b|0)==0)){e=c[b>>2]|0;if((e|0)>0){b=c[b+4>>2]|0;d=0;while(1){if((sv(a,c[b+(d*20|0)+4>>2]|0)|0)>-1){b=1;break a}d=d+1|0;if((d|0)>=(e|0)){b=0;break}}}else b=0}else b=1;while(0);return b|0}function Zu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;m=c[e+20>>2]|0;a:do if((m|0)>0){n=b[d+38>>1]|0;o=n<<16>>16>0;p=d+4|0;l=d+36|0;i=(g|0)!=0;j=0;while(1){g=c[e+(j<<3)+40>>2]|0;if(o){d=(g|0)==0;k=0;do{if(!((c[f+(k<<2)>>2]|0)<=-1?!((k|0)==(b[l>>1]|0)&i):0))q=7;do if((q|0)==7){q=0;h=c[p>>2]|0;if(d)if(!(a[h+(k*24|0)+23>>0]&1))break;else{d=1;break a}else if(!($c(c[h+(k*24|0)>>2]|0,g)|0)){d=1;break a}else break}while(0);k=k+1|0}while((k|0)<(n<<16>>16|0))}j=j+1|0;if((j|0)>=(m|0)){d=0;break}}}else d=0;while(0);return d|0}function _u(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+48|0;if((i|0)>=(j|0))ba();m=v;q=v+8|0;u=c[b+408>>2]|0;u=(u|0)==0?b:u;l=u+528|0;g=c[l>>2]|0;a:do if(!g)k=5;else while(1){if((c[g>>2]|0)==(d|0)?(c[g+12>>2]|0)==(f|0):0)break a;g=c[g+4>>2]|0;if(!g){k=5;break}}while(0);do if((k|0)==5){s=c[b>>2]|0;g=ih(s,24,0)|0;if(g){k=g+0|0;h=k+24|0;do{a[k>>0]=0;k=k+1|0}while((k|0)<(h|0));c[g+4>>2]=c[l>>2];c[l>>2]=g;r=ih(s,28,0)|0;if(!r){c[g+8>>2]=0;g=0;break}k=r+0|0;h=k+24|0;do{a[k>>0]=0;k=k+1|0}while((k|0)<(h|0));c[g+8>>2]=r;n=(c[u+8>>2]|0)+192|0;c[r+24>>2]=c[n>>2];c[n>>2]=r;c[g>>2]=d;c[g+12>>2]=f;n=g+16|0;c[n>>2]=-1;o=g+20|0;c[o>>2]=-1;p=ih(s,536,0)|0;if(p){bw(p|0,0,536)|0;c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[q+12>>2]=0;c[q+16>>2]=0;c[q+20>>2]=0;c[q+24>>2]=0;c[q+28>>2]=0;c[q>>2]=p;c[p>>2]=s;c[p+412>>2]=e;c[p+408>>2]=u;c[p+492>>2]=c[d>>2];a[p+436>>0]=a[d+8>>0]|0;c[p+424>>2]=c[b+424>>2];e=Kq(p)|0;if(e){c[m>>2]=c[d>>2];th(e,-1,qh(s,34152,m)|0,-1);k=c[d+12>>2]|0;if(!k)l=0;else{h=Ir(s,k,0,0)|0;if((hs(q,h)|0)==0?(a[s+65>>0]|0)==0:0){k=ts(e)|0;ct(p,h,k,16)}else k=0;Ck(s,h);l=k}Lv(p,c[d+28>>2]|0,f);if(l){k=c[e+24>>2]|0;h=~l;if((l|0)<0?(t=c[k+112>>2]|0,(t|0)!=0):0)c[t+(h<<2)>>2]=c[e+32>>2];c[k+88>>2]=(c[e+32>>2]|0)+-1}sh(e,24,0,0,0)|0;h=b+64|0;k=c[p+4>>2]|0;if(!(c[h>>2]|0)){c[b+4>>2]=k;c[h>>2]=c[p+64>>2]}else ig(c[p>>2]|0,k);if(!(a[s+65>>0]|0)){m=e+4|0;q=c[m>>2]|0;Fn(e,u+392|0);c[r+4>>2]=c[e+32>>2];c[m>>2]=0;c[r>>2]=q}c[r+8>>2]=c[p+72>>2];c[r+12>>2]=c[p+68>>2];c[r+16>>2]=c[p+80>>2];c[r+20>>2]=d;c[n>>2]=c[p+428>>2];c[o>>2]=c[p+432>>2];Ll(e)}yh(p);ig(s,p)}else g=0}else g=0}while(0);i=v;return g|0}function $u(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0;i=Kq(b)|0;e=_u(b,d,e,g)|0;if(e){if(!(c[d>>2]|0))g=0;else g=((c[(c[b>>2]|0)+24>>2]|0)>>>18&1^1)&255;b=b+72|0;d=(c[b>>2]|0)+1|0;c[b>>2]=d;sh(i,131,f,h,d)|0;th(i,-1,c[e+8>>2]|0,-18);e=c[i+4>>2]|0;if(e)a[e+(((c[i+32>>2]|0)+-1|0)*20|0)+3>>0]=g}return}function av(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;f=c[a>>2]|0;h=c[(c[f+16>>2]|0)+(e<<4)>>2]|0;g=gc[c[f+284>>2]&7](c[f+288>>2]|0,20,b,d,h,c[a+492>>2]|0)|0;if((g|0)==1){if((e|0)!=0?1:(c[f+20>>2]|0)>2){c[k>>2]=h;c[k+4>>2]=b;c[k+8>>2]=d;ph(a,27688,k)}else{c[k>>2]=b;c[k+4>>2]=d;ph(a,27728,k)}c[a+12>>2]=23}else if(!((g|0)==0|(g|0)==2)){ph(a,25232,k);c[a+12>>2]=1}i=l;return g|0}function bv(e,f,g,h,i,j,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;y=Kq(e)|0;A=(c[e+68>>2]|0)+-1|0;B=ts(y)|0;if((l|0)<0)sh(y,135,d[i+24>>0]|0,B,0)|0;n=i+20|0;o=c[n>>2]|0;if((o|0)>0){q=k+1|0;p=0;do{sh(y,76,q+(c[j+(p<<2)>>2]|0)|0,B,0)|0;p=p+1|0;o=c[n>>2]|0}while((p|0)<(o|0))}do if(!m){if(!h){o=e+19|0;n=a[o>>0]|0;if(!(n<<24>>24)){h=e+72|0;q=(c[h>>2]|0)+1|0;c[h>>2]=q}else{q=n+-1<<24>>24;a[o>>0]=q;q=c[e+((q&255)<<2)+24>>2]|0}sh(y,34,k+1+(c[j>>2]|0)|0,q,0)|0;p=sh(y,38,q,0,0)|0;if(((l|0)==1?(c[i>>2]|0)==(g|0):0)?(sh(y,79,k,B,q)|0,r=c[y+4>>2]|0,(r|0)!=0):0)a[r+(((c[y+32>>2]|0)+-1|0)*20|0)+3>>0]=-112;Mq(e,A,f,g,54);sh(y,70,A,0,q)|0;sh(y,16,0,B,0)|0;n=c[y+32>>2]|0;if(n>>>0>1)c[(c[y+4>>2]|0)+((n+-2|0)*20|0)+8>>2]=n;m=n+-1|0;o=(c[y+24>>2]|0)+88|0;c[o>>2]=m;if(n>>>0>p>>>0)c[(c[y+4>>2]|0)+(p*20|0)+8>>2]=n;c[o>>2]=m;Wr(e,q);break}w=e+60|0;q=c[w>>2]|0;x=e+56|0;p=c[x>>2]|0;if((p|0)<(o|0)){v=e+72|0;q=c[v>>2]|0;c[v>>2]=q+o;q=q+1|0}else{c[w>>2]=q+o;c[x>>2]=p-o}p=e+19|0;n=a[p>>0]|0;if(!(n<<24>>24)){m=e+72|0;v=(c[m>>2]|0)+1|0;c[m>>2]=v}else{v=n+-1<<24>>24;a[p>>0]=v;v=c[e+((v&255)<<2)+24>>2]|0}sh(y,54,A,c[h+40>>2]|0,f)|0;m=c[e+8>>2]|0;th(m,-1,ds(e,h)|0,-6);m=(o|0)>0;if(m){p=k+1|0;n=0;do{sh(y,33,p+(c[j+(n<<2)>>2]|0)|0,n+q|0,0)|0;n=n+1|0}while((n|0)!=(o|0))}if((l|0)==1?(c[i>>2]|0)==(g|0):0){t=y+32|0;u=o+1+(c[t>>2]|0)|0;if(m){f=k+1|0;s=h+4|0;p=g+36|0;n=y+4|0;r=0;do{m=b[(c[s>>2]|0)+(r<<1)>>1]|0;sh(y,78,f+(c[j+(r<<2)>>2]|0)|0,u,(m<<16>>16==(b[p>>1]|0)?0:(m<<16>>16)+1|0)+k|0)|0;m=c[n>>2]|0;if(m)a[m+(((c[t>>2]|0)+-1|0)*20|0)+3>>0]=16;r=r+1|0}while((r|0)!=(o|0))}sh(y,16,0,B,0)|0}k=kt(y,h)|0;th(y,sh(y,49,q,o,v)|0,k,o);th(y,sh(y,69,A,B,v)|0,0,-14);Wr(e,v);$s(e,q,o);if((c[x>>2]|0)<(o|0)){c[x>>2]=o;c[w>>2]=q}}while(0);n=a[i+24>>0]|0;m=n<<24>>24==0;if(((m?(c[(c[e>>2]|0)+24>>2]&16777216|0)==0:0)?(c[e+408>>2]|0)==0:0)?(a[e+20>>0]|0)==0:0)vs(e,787,2,0,-2,4);else{if(!((l|0)<1|m^1)){i=c[e+408>>2]|0;a[((i|0)==0?e:i)+21>>0]=1}sh(y,134,n&255,l,0)|0}m=c[y+24>>2]|0;n=~B;if((B|0)<0?(z=c[m+112>>2]|0,(z|0)!=0):0)c[z+(n<<2)>>2]=c[y+32>>2];c[m+88>>2]=(c[y+32>>2]|0)+-1;sh(y,61,A,0,0)|0;return}function cv(f,g,h,k,l,m,n,o){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+48|0;if((i|0)>=(j|0))ba();y=D+32|0;z=D;A=c[f>>2]|0;B=Kq(f)|0;if((o|0)<0)C=sh(B,135,d[l+24>>0]|0,0,0)|0;else C=0;x=l+20|0;if((c[x>>2]|0)>0){w=(k|0)==0;v=(m|0)==0;u=l+36|0;t=k+4|0;s=0;p=0;do{if(w)r=-1;else r=b[(c[t>>2]|0)+(s<<1)>>1]|0;q=Mv(f,h,n,r)|0;if(v)r=u;else r=m+(s<<2)|0;p=os(A,p,Vq(f,79,q,pt(A,27,c[(c[(c[l>>2]|0)+4>>2]|0)+((c[r>>2]<<16>>16)*24|0)>>2]|0)|0,0)|0)|0;s=s+1|0}while((s|0)<(c[x>>2]|0));r=l}else{r=l;p=0}if((o|0)>0?(c[r>>2]|0)==(h|0):0){if(!(a[h+44>>0]&32)){m=c[f>>2]|0;c[y>>2]=0;c[y+4>>2]=0;m=jr(m,159,y,0)|0;if(!m)m=0;else{c[m+28>>2]=n;a[m+1>>0]=68}r=c[g+48>>2]|0;c[y>>2]=0;c[y+4>>2]=0;q=jr(A,154,y,0)|0;if(q){c[q+44>>2]=h;c[q+28>>2]=r;b[q+32>>1]=-1}m=Vq(f,78,m,q,0)|0}else{r=h+8|0;while(1){r=c[r>>2]|0;if((a[r+51>>0]&3)==2)break;r=r+20|0}x=r+46|0;if(!(b[x>>1]|0))m=0;else{t=k+4|0;u=g+48|0;v=y+4|0;w=0;m=0;do{r=b[(c[t>>2]|0)+(w<<1)>>1]|0;q=Mv(f,h,n,r)|0;s=c[u>>2]|0;c[y>>2]=0;c[v>>2]=0;k=jr(A,154,y,0)|0;if(k){c[k+44>>2]=h;c[k+28>>2]=s;b[k+32>>1]=r}m=os(A,m,Vq(f,79,q,k,0)|0)|0;w=w+1|0}while((w|0)<(e[x>>1]|0))}m=Vq(f,19,m,0,0)|0}p=os(A,p,m)|0};c[z+0>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;c[z+12>>2]=0;c[z+16>>2]=0;c[z+20>>2]=0;c[z+24>>2]=0;c[z+28>>2]=0;c[z+4>>2]=g;c[z>>2]=f;hs(z,p)|0;m=Rs(f,g,p,0,0,0,0)|0;sh(B,134,d[l+24>>0]|0,o,0)|0;if(m)Ts(m);Ck(A,p);if(C){m=c[B+32>>2]|0;if(m>>>0>C>>>0)c[(c[B+4>>2]|0)+(C*20|0)+8>>2]=m;c[(c[B+24>>2]|0)+88>>2]=m+-1}i=D;return}function dv(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+32|0;if((i|0)>=(j|0))ba();r=u;p=u+16|0;t=u+28|0;k=c[b>>2]|0;s=Kq(b)|0;if(s){m=(c[k+16>>2]|0)+(d<<4)|0;n=b+388|0;o=(f|0)==0;q=0;a:while(1){l=c[28744+(q<<3)>>2]|0;h=Wh(k,l,c[m>>2]|0)|0;do if(!h){if(!q){c[r>>2]=c[m>>2];c[r+4>>2]=l;c[r+8>>2]=28768;xr(b,28816,r);c[p>>2]=c[n>>2];a[t>>0]=4;q=q+1|0;continue a}}else{h=c[h+32>>2]|0;c[p+(q<<2)>>2]=h;a[t+q>>0]=0;cs(b,d,h,1,l);if(o){sh(s,118,h,d,0)|0;break}else{c[r>>2]=c[m>>2];c[r+4>>2]=l;c[r+8>>2]=g;c[r+12>>2]=f;xr(b,28840,r);break}}while(0);q=q+1|0;if((q|0)==3)break}th(s,sh(s,55,e,c[p>>2]|0,d)|0,3,-14);h=c[s+4>>2]|0;if(h)a[h+(((c[s+32>>2]|0)+-1|0)*20|0)+3>>0]=a[t>>0]|0}i=u;return}function ev(d,f,g,h,i,j){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;D=c[d>>2]|0;E=i+1|0;F=i+2|0;J=i+3|0;K=i+4|0;L=i+5|0;I=i+6|0;G=i+7|0;H=d+72|0;M=c[H>>2]|0;c[H>>2]=(M|0)>(G|0)?M:G;M=Kq(d)|0;if((!((M|0)==0|(f|0)==0)?(p=f+32|0,(c[p>>2]|0)!=0):0)?(q=c[f>>2]|0,(Bc(q,25568,7)|0)!=0):0){m=c[f+68>>2]|0;a:do if(m){l=c[D+20>>2]|0;if((l|0)>0){k=c[D+16>>2]|0;o=0;while(1){n=o+1|0;if((c[k+(o<<4)+12>>2]|0)==(m|0)){n=o;break a}if((n|0)<(l|0))o=n;else break}}else n=0}else n=-1e6;while(0);if(!(Oq(d,28,q,0,c[(c[D+16>>2]|0)+(n<<4)>>2]|0)|0)){cs(d,n,c[p>>2]|0,0,c[f>>2]|0);w=j+1|0;C=j+2|0;q=d+68|0;B=c[q>>2]|0;c[q>>2]=(B|0)>(C|0)?B:C;Mq(d,j,n,f,54);q=c[f>>2]|0;th(M,sh(M,97,0,K,0)|0,q,0);q=c[f+8>>2]|0;C=(g|0)==0;if(!q)m=1;else{x=f+44|0;y=d+8|0;z=M+4|0;A=M+32|0;B=M+24|0;m=1;do{do if(C|(q|0)==(g|0)){m=(c[q+36>>2]|0)==0?0:m;p=a[q+51>>0]|0;if(!((a[x>>0]&32)!=0&(p&3)==2)){k=e[q+48>>1]|0;o=c[q>>2]|0;l=q+46|0;if(!(p&8)){s=l;r=k;p=k}else{s=l;r=k;p=e[l>>1]|0}}else{s=q+46|0;p=e[s>>1]|0;r=p;o=c[f>>2]|0}u=p+-1|0;th(M,sh(M,97,0,L,0)|0,o,0);v=c[H>>2]|0;p=u+G|0;c[H>>2]=(v|0)>(p|0)?v:p;sh(M,54,w,c[q+40>>2]|0,n)|0;p=c[y>>2]|0;th(p,-1,ds(d,q)|0,-6);sh(M,25,r,F,0)|0;sh(M,25,e[s>>1]|0,J,0)|0;sh(M,1,0,F,E)|0;th(M,-1,28552,-5);p=c[z>>2]|0;if(p)a[p+(((c[A>>2]|0)+-1|0)*20|0)+3>>0]=2;v=sh(M,108,w,0,0)|0;sh(M,25,0,F,0)|0;o=c[A>>2]|0;if((u|0)>0){r=ts(M)|0;t=ih(D,u<<2,0)|0;if(!t)break;sh(M,16,0,0,0)|0;o=c[A>>2]|0;if(((u|0)==1?(b[s>>1]|0)==1:0)?(a[q+50>>0]|0)!=0:0)sh(M,77,G,r,0)|0;p=q+32|0;k=0;do{s=_q(d,c[(c[p>>2]|0)+(k<<2)>>2]|0)|0;sh(M,25,k,F,0)|0;sh(M,47,w,k,J)|0;l=sh(M,78,J,0,k+G|0)|0;th(M,l,s,-4);c[t+(k<<2)>>2]=l;l=c[z>>2]|0;if(l)a[l+(((c[A>>2]|0)+-1|0)*20|0)+3>>0]=-128;k=k+1|0}while((k|0)!=(u|0));sh(M,25,u,F,0)|0;sh(M,16,0,r,0)|0;p=o+-1|0;l=c[A>>2]|0;if(l>>>0>p>>>0)c[(c[z>>2]|0)+(p*20|0)+8>>2]=l;c[(c[B>>2]|0)+88>>2]=l+-1;p=0;while(1){k=c[t+(p<<2)>>2]|0;if(l>>>0>k>>>0)c[(c[z>>2]|0)+(k*20|0)+8>>2]=l;c[(c[B>>2]|0)+88>>2]=l+-1;sh(M,47,w,p,p+G|0)|0;p=p+1|0;if((p|0)==(u|0))break;l=c[A>>2]|0}l=c[B>>2]|0;k=~r;do if((r|0)<0){p=c[l+112>>2]|0;if(!p)break;c[p+(k<<2)>>2]=c[A>>2]}while(0);c[l+88>>2]=(c[A>>2]|0)+-1;ig(D,t)}sh(M,1,1,E,J)|0;th(M,-1,28592,-5);p=c[z>>2]|0;if(p)a[p+(((c[A>>2]|0)+-1|0)*20|0)+3>>0]=2;sh(M,9,w,o,0)|0;sh(M,1,0,E,I)|0;th(M,-1,28640,-5);p=c[z>>2]|0;if(p)a[p+(((c[A>>2]|0)+-1|0)*20|0)+3>>0]=1;th(M,sh(M,49,K,3,J)|0,28632,0);sh(M,74,h,i,0)|0;sh(M,75,h,J,i)|0;o=c[z>>2]|0;p=c[A>>2]|0;if(o)a[o+((p+-1|0)*20|0)+3>>0]=8;if(p>>>0>v>>>0)c[o+(v*20|0)+8>>2]=p;c[(c[B>>2]|0)+88>>2]=p+-1}while(0);q=c[q+20>>2]|0}while((q|0)!=0)}if(!(m<<24>>24==0|C^1)){sh(M,50,j,I,0)|0;m=sh(M,46,I,0,0)|0;sh(M,28,0,L,0)|0;th(M,sh(M,49,K,3,J)|0,28632,0);sh(M,74,h,i,0)|0;sh(M,75,h,J,i)|0;l=c[M+4>>2]|0;k=c[M+32>>2]|0;if(l)a[l+((k+-1|0)*20|0)+3>>0]=8;if(k>>>0>m>>>0)c[l+(m*20|0)+8>>2]=k;c[(c[M+24>>2]|0)+88>>2]=k+-1}}}return}function fv(a,b){a=a|0;b=b|0;a=Kq(a)|0;if(a)sh(a,123,b,0,0)|0;return}function gv(d){d=d|0;var e=0,f=0,g=0;a:while(1){e=c[d+4>>2]|0;do if(e&4096)if(!(e&262144)){d=d+12|0;break}else{d=c[(c[d+20>>2]|0)+4>>2]|0;break}else{if(e&512){d=0;break a}switch(a[d>>0]|0){case -102:case -100:case -97:{g=11;break a}case 119:break;case 38:{g=10;break a}default:{g=14;break a}}d=c[(c[c[d+20>>2]>>2]|0)+4>>2]|0}while(0);d=c[d>>2]|0}if((g|0)==10)d=Tq(c[d+8>>2]|0,0)|0;else if((g|0)==11){f=c[d+44>>2]|0;if(f){e=b[d+32>>1]|0;if(e<<16>>16<0)d=68;else d=a[(c[f+4>>2]|0)+((e<<16>>16)*24|0)+21>>0]|0}else g=14}if((g|0)==14)d=a[d+1>>0]|0;return d|0}function hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;sh(b,25,0,e,0)|0;f=sh(b,108,d,0,0)|0;sh(b,47,d,0,e)|0;d=c[b+4>>2]|0;e=c[b+32>>2]|0;if(d)a[d+((e+-1|0)*20|0)+3>>0]=-128;if(e>>>0>f>>>0)c[d+(f*20|0)+8>>2]=e;c[(c[b+24>>2]|0)+88>>2]=e+-1;return}function iv(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;E=i;i=i+32|0;if((i|0)>=(j|0))ba();z=E;C=e+68|0;D=c[C>>2]|0;c[C>>2]=D+1;C=Kq(e)|0;A=(g&4|0)!=0;B=f+4|0;a:do if((((((((((((c[B>>2]&2048|0)!=0?(n=c[f+20>>2]|0,!((c[e+64>>2]|0)!=0|(n|0)==0)):0)?(c[n+52>>2]|0)==0:0)?(b[n+6>>1]&5)==0:0)?(c[n+60>>2]|0)==0:0)?(c[n+36>>2]|0)==0:0)?(m=c[n+32>>2]|0,(c[m>>2]|0)==1):0)?(c[m+28>>2]|0)==0:0)?(t=c[m+24>>2]|0,(t|0)!=0):0)?(a[t+44>>0]&16)==0:0)?(l=c[n>>2]|0,(c[l>>2]|0)==1):0)?(p=c[c[l+4>>2]>>2]|0,(a[p>>0]|0)==-102):0){x=c[e>>2]|0;y=b[p+32>>1]|0;o=c[t+68>>2]|0;b:do if(o){m=c[x+20>>2]|0;if((m|0)>0){l=c[x+16>>2]|0;k=0;while(1){n=k+1|0;if((c[l+(k<<4)+12>>2]|0)==(o|0)){n=k;break b}if((n|0)<(m|0))k=n;else break}}else n=0}else n=-1e6;while(0);v=n<<16>>16;wr(e,v);cs(e,v,c[t+32>>2]|0,0,c[t>>2]|0);w=y<<16>>16;if(y<<16>>16<0){k=Kq(e)|0;h=e+80|0;l=c[h>>2]|0;c[h>>2]=l+1;l=sh(k,44,l,0,0)|0;Mq(e,D,v,t,54);k=c[C+32>>2]|0;if(k>>>0>l>>>0)c[(c[C+4>>2]|0)+(l*20|0)+8>>2]=k;c[(c[C+24>>2]|0)+88>>2]=k+-1;k=1;o=49;break}k=Ku(e,c[f+12>>2]|0,p)|0;u=t+4|0;o=a[(c[u>>2]|0)+(w*24|0)+21>>0]|0;n=(jv(f)|0)<<24>>24;if((n|0)==66)n=o<<24>>24==66&1;else if((n|0)==65)n=1;else n=o<<24>>24>66&1;o=c[t+8>>2]|0;if((o|0)!=0&(n|0)!=0){p=x+62|0;n=e+80|0;m=e+8|0;l=(h|0)==0;q=C+32|0;s=C+4|0;t=C+24|0;r=e+72|0;c:while(1){do if((b[c[o+4>>2]>>1]|0)==y<<16>>16?(Un(x,a[p>>0]|0,c[c[o+32>>2]>>2]|0,0)|0)==(k|0):0){if(!A)break c;if((b[o+46>>1]|0)!=1)break;if(a[o+50>>0]|0)break c}while(0);o=c[o+20>>2]|0;if(!o){o=38;break a}}B=Kq(e)|0;k=c[n>>2]|0;c[n>>2]=k+1;n=sh(B,44,k,0,0)|0;sh(C,54,D,c[o+40>>2]|0,v)|0;k=c[m>>2]|0;th(k,-1,ds(e,o)|0,-6);k=(d[c[o+28>>2]>>0]|0)+3|0;if(!l?(a[(c[u>>2]|0)+(w*24|0)+20>>0]|0)==0:0){B=(c[r>>2]|0)+1|0;c[r>>2]=B;c[h>>2]=B;hv(C,D,B)}l=c[q>>2]|0;if(l>>>0>n>>>0)c[(c[s>>2]|0)+(n*20|0)+8>>2]=l;c[(c[t>>2]|0)+88>>2]=l+-1;o=49}else o=38}else o=38;while(0);do if((o|0)==38){if((g&1|0)!=0?(c[B>>2]&2048|0)==0:0){g=f+12|0;y=c[g>>2]|0;c[g>>2]=0;c[z+0>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;c[z+12>>2]=0;c[z+16>>2]=0;c[z+20>>2]=0;C=z+20|0;a[C>>0]=1;c[z>>2]=78;c[z+4>>2]=79;c[z+24>>2]=0;ns(z,f)|0;C=a[C>>0]|0;c[g>>2]=y;if(!(C<<24>>24)){k=5;o=49;break}if((c[c[f+20>>2]>>2]|0)<3){k=5;o=49;break}}m=e+424|0;n=c[m>>2]|0;if(A){c[m>>2]=0;if((b[(c[f+12>>2]|0)+32>>1]|0)<0){k=((c[B>>2]|0)>>>11&1)+1|0;l=0}else{k=2;l=0}}else if(!h){k=2;l=0}else{k=e+72|0;l=(c[k>>2]|0)+1|0;c[k>>2]=l;c[h>>2]=l;k=2}au(e,f,l,(k|0)==1&1)|0;c[m>>2]=n}while(0);if((o|0)==49)c[f+28>>2]=D;i=E;return k|0}function jv(a){a=a|0;var b=0,d=0;b=gv(c[a+12>>2]|0)|0;d=c[a+16>>2]|0;do if(!d)if(!(c[a+4>>2]&2048))return (b<<24>>24==0?65:b)|0;else{b=xu(c[c[(c[c[a+20>>2]>>2]|0)+4>>2]>>2]|0,b)|0;break}else b=xu(d,b)|0;while(0);return b|0}function kv(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,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;Z=i;i=i+16|0;if((i|0)>=(j|0))ba();W=Z;U=c[d>>2]|0;X=k+28|0;c[X>>2]=-1;T=k+44|0;c[T>>2]=0;a:do if((e|0)!=0?(b[h+28>>1]&20)==0:0){q=c[U+20>>2]|0;if((q|0)>0){o=c[U+16>>2]|0;p=0;while(1){if(!($c(c[o+(p<<4)>>2]|0,e)|0))break;p=p+1|0;if((p|0)>=(q|0)){S=e;e=0;break a}}S=e;e=c[o+(p<<4)+12>>2]|0}else{S=e;e=0}}else{S=0;e=0}while(0);Q=(S|0)==0;N=Q&(f|0)!=0;m=d+412|0;J=d+436|0;K=k+1|0;Y=k+32|0;L=d+428|0;M=d+432|0;R=(f|0)==0;P=k+4|0;l=h;r=0;n=0;q=0;p=0;b:while(1){I=(l|0)!=0;o=l+4|0;H=l+8|0;s=0;t=r;while(1){r=(s|0)==0;if(!(I&r)){V=82;break b}s=c[o>>2]|0;if(s){G=c[s>>2]|0;if((G|0)>0){r=0;F=0;E=s+8|0;while(1){D=c[E+16>>2]|0;u=c[E+20>>2]|0;if((u|0)!=0?(b[u+6>>1]&512)!=0:0){u=c[u>>2]|0;A=c[u>>2]|0;if((A|0)>0){B=c[u+4>>2]|0;u=0;w=0;do{if(rv(c[B+(w*20|0)+8>>2]|0,g,f,S)|0){b[Y>>1]=w;r=r+1|0;t=2;u=1;p=E}w=w+1|0}while((w|0)<(A|0))}else u=0;if(!((u|0)!=0|R)){v=t;V=21}}else{v=t;V=21}c:do if((V|0)==21){V=0;if(!Q?(c[D+68>>2]|0)!=(e|0):0){t=v;break}if(!R){u=c[E+12>>2]|0;if(!u)u=c[D>>2]|0;if($c(u,f)|0){t=v;break}}t=v+1|0;p=(v|0)==0?E:p;u=b[D+38>>1]|0;if(u<<16>>16>0){s=(r|0)==1;x=E+36|0;y=E+48|0;A=0;B=c[D+4>>2]|0;d:while(1){e:do if(!($c(c[B>>2]|0,g)|0)){if(!s){p=A;break d}if(!(a[x>>0]&4)){w=c[y>>2]|0;if(!w){p=A;break d}z=c[w+4>>2]|0;if((z|0)<=0){p=A;break d}w=c[w>>2]|0;v=0;while(1){if(!($c(c[w+(v<<3)>>2]|0,g)|0))break e;v=v+1|0;if((v|0)>=(z|0)){p=A;break d}}}}while(0);A=A+1|0;if((A|0)>=(u<<16>>16|0))break c;else B=B+24|0}b[Y>>1]=(p|0)==(b[D+36>>1]|0)?-1:p&65535;r=r+1|0;p=E}}while(0);F=F+1|0;if((F|0)>=(G|0))break;else E=E+72|0}}else r=0;if(!p)B=0;else{c[X>>2]=c[p+40>>2];s=c[p+16>>2]|0;c[T>>2]=s;if(a[p+36>>0]&8)c[P>>2]=c[P>>2]|1048576;B=p;e=c[s+68>>2]|0}}else{r=0;B=p}do if(N&(t|0)==0)if(c[m>>2]|0){s=a[J>>0]|0;if(s<<24>>24!=109)if($c(27560,f)|0)if(s<<24>>24==108){v=r;t=0;w=n;break}else V=49;else w=1;else V=49;if((V|0)==49){V=0;if(!($c(27568,f)|0))w=0;else{v=r;t=0;w=n;break}}c[X>>2]=w;v=c[m>>2]|0;if(v){e=c[v+68>>2]|0;u=b[v+38>>1]|0;f:do if(u<<16>>16>0){s=0;t=c[v+4>>2]|0;while(1){if(!($c(c[t>>2]|0,g)|0))break;s=s+1|0;if((s|0)<(u<<16>>16|0))t=t+24|0;else break f}s=(s|0)==(b[v+36>>1]|0)?-1:s}else s=0;while(0);p=u<<16>>16;if((s|0)>=(p|0)?(Xh(g)|0)!=0:0)t=(a[v+44>>0]&32)==0?-1:s;else t=s;if((t|0)<(p|0)){r=r+1|0;do if((t|0)>=0){s=(t|0)>31?-1:1<<t;if(!w){c[L>>2]=c[L>>2]|s;break}else{c[M>>2]=c[M>>2]|s;break}}else a[K>>0]=68;while(0);b[Y>>1]=t;c[T>>2]=v;t=1;n=1;V=66}else{t=1;V=66}}else{v=r;t=0;w=n}}else{v=r;t=0;w=n}else V=66;while(0);if((V|0)==66){V=0;if((r|0)==0&(t|0)==1&(B|0)!=0)if((Xh(g)|0)!=0?(a[(c[B+16>>2]|0)+44>>0]&32)==0:0){b[Y>>1]=-1;a[K>>0]=68;s=1;p=B;continue}else{v=0;w=n}else{v=r;w=n}}r=c[H>>2]|0;u=(v|0)==0;if((r|0)!=0&R&u?(O=c[r>>2]|0,(O|0)>0):0){n=c[r+4>>2]|0;p=0;do{s=c[n+(p*20|0)+4>>2]|0;if((s|0)!=0?($c(s,g)|0)==0:0){V=75;break b}p=p+1|0}while((p|0)<(O|0))}if(u){s=t;n=w;p=B;break}else{s=v;n=w;p=B}}l=c[l+16>>2]|0;r=s;q=q+1|0}do if((V|0)==75){if((b[l+28>>1]&1)==0?(c[(c[n+(p*20|0)>>2]|0)+4>>2]&2|0)!=0:0){c[W>>2]=s;ph(d,27576,W);h=2;break}uv(d,r,p,k,10360,q);if((a[k>>0]|0)==24)V=115;else V=96}else if((V|0)==82){if(r&R?(c[P>>2]&64|0)!=0:0){a[k>>0]=97;c[T>>2]=0;h=1;break}s=(s|0)==1;if(!s){r=r?27608:27624;do if(Q)if(R){c[W>>2]=r;c[W+4>>2]=g;ph(d,27680,W);break}else{c[W>>2]=r;c[W+4>>2]=f;c[W+8>>2]=g;ph(d,27664,W);break}else{c[W>>2]=r;c[W+4>>2]=S;c[W+8>>2]=f;c[W+12>>2]=g;ph(d,27648,W)}while(0);a[d+17>>0]=1;F=h+24|0;c[F>>2]=(c[F>>2]|0)+1}q=b[Y>>1]|0;if(q<<16>>16>-1&(p|0)!=0){B=q<<16>>16>63;D=ew(1,0,q<<16>>16|0)|0;F=p+56|0;A=F;E=c[A+4>>2]|(B?-2147483648:C);c[F>>2]=c[A>>2]|(B?0:D);c[F+4>>2]=E}F=k+12|0;Ck(U,c[F>>2]|0);c[F>>2]=0;F=k+16|0;Ck(U,c[F>>2]|0);c[F>>2]=0;a[k>>0]=(n|0)!=0?62:-102;if(s)V=96;else h=2}while(0);g:do if((V|0)==96){r=c[o>>2]|0;n=c[d>>2]|0;if(!((c[n+284>>2]|0)==0|(e|0)==0)){q=c[n+20>>2]|0;if((q|0)>0){o=c[n+16>>2]|0;p=0;while(1){n=p+1|0;if((c[o+(p<<4)+12>>2]|0)==(e|0)){n=p;break}if((n|0)<(q|0))p=n;else break}if((n|0)<0){V=115;break}else e=n}else e=0;if((a[k>>0]|0)!=62){o=c[r>>2]|0;if((o|0)<=0){V=115;break}m=c[X>>2]|0;n=0;while(1){if((m|0)==(c[r+(n*72|0)+48>>2]|0))break;n=n+1|0;if((n|0)>=(o|0)){V=115;break g}}m=r+(n*72|0)+24|0}o=c[m>>2]|0;m=b[Y>>1]|0;n=m<<16>>16;if(o){if(m<<16>>16<=-1){m=b[o+36>>1]|0;if(m<<16>>16>-1)m=c[(c[o+4>>2]|0)+((m<<16>>16)*24|0)>>2]|0;else m=12944}else m=c[(c[o+4>>2]|0)+(n*24|0)>>2]|0;if((av(d,c[o>>2]|0,m,e)|0)==2){a[k>>0]=101;V=115}else V=115}else V=115}else V=115}while(0);if((V|0)==115){F=h+20|0;c[F>>2]=(c[F>>2]|0)+1;if((l|0)==(h|0))h=1;else{do{h=c[h+16>>2]|0;F=h+20|0;c[F>>2]=(c[F>>2]|0)+1}while((h|0)!=(l|0));h=1}}i=Z;return h|0}function lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=a[d>>0]|0;a:do if(e<<24>>24==-100|e<<24>>24==-102){e=c[b+24>>2]|0;f=c[e>>2]|0;b:do if((f|0)!=0?(g=c[f>>2]|0,(g|0)>0):0){b=c[d+28>>2]|0;d=0;while(1){if((b|0)==(c[f+(d*72|0)+48>>2]|0))break;d=d+1|0;if((d|0)>=(g|0))break b}b=e+4|0;c[b>>2]=(c[b>>2]|0)+1;break a}while(0);b=e+8|0;c[b>>2]=(c[b>>2]|0)+1}while(0);return 0}function mv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();v=w;q=w+12|0;a:do if(!f)h=0;else{t=c[c[e>>2]>>2]|0;u=c[d>>2]|0;b:do if((c[f>>2]|0)>0){h=0;r=c[f+4>>2]|0;c:while(1){o=c[r>>2]|0;d:do if(!o)k=0;else{k=o;while(1){l=c[k+4>>2]|0;if(!(l&4096))break d;if(!(l&262144))k=k+12|0;else k=c[(c[k+20>>2]|0)+4>>2]|0;k=c[k>>2]|0;if(!k){k=0;break}}}while(0);if((a[g>>0]|0)!=71?(p=nv(c[e>>2]|0,k)|0,c[q>>2]=p,(p|0)>0):0)b[r+16>>1]=p;else s=13;do if((s|0)==13){s=0;if(Is(k,q)|0){k=c[q>>2]|0;if((k+-1|0)>>>0>65534)break c;b[r+16>>1]=k;break}m=r+16|0;b[m>>1]=0;if(hs(d,o)|0){h=1;break a}l=c[e>>2]|0;n=c[l>>2]|0;if((n|0)>0){l=c[l+4>>2]|0;k=0;do{x=k;k=k+1|0;if(!(yu(o,c[l+(x*20|0)>>2]|0,-1)|0))b[m>>1]=k}while((k|0)<(n|0))}}while(0);h=h+1|0;if((h|0)>=(c[f>>2]|0))break b;else r=r+20|0}c[v>>2]=h+1;c[v+4>>2]=g;c[v+8>>2]=t;ph(u,27064,v);h=1;break a}while(0);h=su(u,e,f,g)|0}while(0);i=w;return h|0}function nv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;a:do if((a[d>>0]|0)==27?(f=c[d+8>>2]|0,g=c[b>>2]|0,(g|0)>0):0){b=c[b+4>>2]|0;d=0;while(1){e=c[b+(d*20|0)+4>>2]|0;if((e|0)!=0?($c(e,f)|0)==0:0)break;d=d+1|0;if((d|0)>=(g|0)){d=0;break a}}d=d+1|0}else d=0;while(0);return d|0}function ov(a,d){a=a|0;d=d|0;var e=0,f=0;e=b[a+38>>1]|0;a:do if(e<<16>>16>0){f=c[a+4>>2]|0;e=e<<16>>16;a=0;while(1){if(!($c(c[f+(a*24|0)>>2]|0,d)|0))break a;a=a+1|0;if((a|0)>=(e|0)){a=-1;break}}}else a=-1;while(0);return a|0}function pv(a,d,e,f,g,h,i,j){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0;k=c[a>>2]|0;e=Nv(k,d,e,f)|0;f=Nv(k,d,g,h)|0;h=Vq(a,79,e,f,0)|0;if((h|0)!=0&(i|0)!=0){e=h+4|0;c[e>>2]=c[e>>2]|1;b[h+36>>1]=c[f+28>>2]}c[j>>2]=os(k,c[j>>2]|0,h)|0;return}function qv(a,d){a=a|0;d=d|0;var e=0,f=0;if(a){e=d&65535;do{f=a+4|0;c[f>>2]=c[f>>2]|1;b[a+36>>1]=e;qv(c[a+12>>2]|0,d);a=c[a+16>>2]|0}while((a|0)!=0)}return}function rv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=0;while(1){g=a[b+f>>0]|0;if(g<<24>>24==46|g<<24>>24==0)break;f=f+1|0}if(e)if((Bc(b,e,f)|0)==0?(a[e+f>>0]|0)==0:0)h=7;else f=0;else h=7;do if((h|0)==7){e=f+1|0;h=b+e|0;g=0;while(1){i=a[b+(g+e)>>0]|0;if(i<<24>>24==46|i<<24>>24==0)break;g=g+1|0}if(d){if(Bc(h,d,g)|0){f=0;break}if(a[d+g>>0]|0){f=0;break}}if((c|0)!=0?($c(b+(f+2+g)|0,c)|0)!=0:0){f=0;break}f=1}while(0);return f|0}function sv(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((a|0)!=0?(e=c[a+4>>2]|0,(e|0)>0):0){d=c[a>>2]|0;a=0;while(1){if(!($c(c[d+(a<<3)>>2]|0,b)|0))break a;a=a+1|0;if((a|0)>=(e|0)){a=-1;break}}}else a=-1;while(0);return a|0}function tv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;c[g>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[g+4>>2]=f;f=rr(b,d,g,0)|0;i=h;return f|0}function uv(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba();o=s;m=e+4|0;n=c[(c[m>>2]|0)+(f*20|0)>>2]|0;p=c[d>>2]|0;l=Ir(p,n,0,0)|0;do if(l){if((a[n>>0]|0)!=-102?(a[h>>0]|0)!=71:0){if((k|0)>0){c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;c[o+12>>2]=0;c[o+16>>2]=0;c[o+20>>2]=0;c[o>>2]=88;c[o+24>>2]=k;ns(o,l)|0}l=Vq(d,24,l,0,0)|0;if(!l)break;e=l+4|0;c[e>>2]=c[e>>2]|4096;e=(c[m>>2]|0)+(f*20|0)+18|0;k=b[e>>1]|0;if(!(k<<16>>16)){f=d+456|0;k=(c[f>>2]|0)+1|0;c[f>>2]=k;k=k&65535;b[e>>1]=k}c[l+28>>2]=k&65535}if((a[g>>0]|0)==95)l=tv(d,l,c[g+8>>2]|0)|0;e=g+4|0;c[e>>2]=c[e>>2]|32768;Ck(p,g);k=g+0|0;m=l+0|0;n=k+48|0;do{c[k>>2]=c[m>>2];k=k+4|0;m=m+4|0}while((k|0)<(n|0));if((c[e>>2]&1024|0)==0?(q=g+8|0,r=c[q>>2]|0,(r|0)!=0):0){c[q>>2]=gh(p,r)|0;c[e>>2]=c[e>>2]|65536}ig(p,l)}while(0);i=s;return}function vv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;n=a+12|0;g=c[n>>2]|0;k=a+16|0;i=c[k>>2]|0;m=a+20|0;do if((g|0)<(i|0))l=15;else{g=c[m>>2]|0;j=c[c[c[a>>2]>>2]>>2]|0;h=ih(j,i*96|0,0)|0;c[m>>2]=h;if(!h){if(f&1)Ck(j,d);c[m>>2]=g;g=0;break}gw(h|0,g|0,(c[n>>2]|0)*48|0)|0;if((g|0)!=(a+24|0))ig(j,g);h=c[m>>2]|0;do if(!j)h=hc[c[8744+48>>2]&127](h)|0;else{if((c[j+276>>2]|0)>>>0<=h>>>0?(c[j+280>>2]|0)>>>0>h>>>0:0){h=e[j+248>>1]|0;break}h=hc[c[8744+48>>2]&127](h)|0}while(0);l=(h>>>0)/48|0;c[k>>2]=l;g=c[n>>2]|0;bw((c[m>>2]|0)+(g*48|0)|0,0,(l-g|0)*48|0)|0;g=c[n>>2]|0;l=15}while(0);if((l|0)==15){c[n>>2]=g+1;i=c[m>>2]|0;a:do if(!d){b[i+(g*48|0)+16>>1]=1;d=0}else{if(!(c[d+4>>2]&262144))h=1;else{h=c[d+28>>2]|0;h=((bs(h,((h|0)<0)<<31>>31)|0)&65535)+65266&65535}b[i+(g*48|0)+16>>1]=h;while(1){h=c[d+4>>2]|0;if(!(h&4096))break a;if(!(h&262144))d=d+12|0;else d=c[(c[d+20>>2]|0)+4>>2]|0;d=c[d>>2]|0;if(!d){d=0;break}}}while(0);c[i+(g*48|0)>>2]=d;b[i+(g*48|0)+20>>1]=f;c[i+(g*48|0)+24>>2]=a;c[i+(g*48|0)+4>>2]=-1}return g|0}function wv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;a:do if(d)if((a[d>>0]|0)==-102){d=c[d+28>>2]|0;f=c[b>>2]|0;if((f|0)>0)e=0;else{f=0;e=0;break}while(1){if((c[b+(e<<2)+4>>2]|0)==(d|0))break;e=e+1|0;if((e|0)>=(f|0)){f=0;e=0;break a}}e=ew(1,0,e|0)|0;f=C;break}else{g=wv(b,c[d+16>>2]|0)|0;e=C;h=wv(b,c[d+12>>2]|0)|0;e=C|e;f=d+20|0;if(!(c[d+4>>2]&2048)){d=Hu(b,c[f>>2]|0)|0;f=C}else{d=xv(b,c[f>>2]|0)|0;f=C}f=e|f;e=h|g|d;break}else{f=0;e=0}while(0);C=f;return e|0}function xv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(!b){b=0;d=0}else{g=b;d=0;b=0;do{f=c[g+32>>2]|0;l=Hu(a,c[g>>2]|0)|0;b=C|b;k=Hu(a,c[g+40>>2]|0)|0;b=b|C;j=Hu(a,c[g+48>>2]|0)|0;b=b|C;i=wv(a,c[g+36>>2]|0)|0;b=b|C;e=wv(a,c[g+44>>2]|0)|0;d=l|d|k|j|i|e;b=b|C;if((f|0)!=0?(h=c[f>>2]|0,(h|0)>0):0){e=0;do{j=xv(a,c[f+(e*72|0)+28>>2]|0)|0;b=C|b;k=wv(a,c[f+(e*72|0)+52>>2]|0)|0;d=j|d|k;b=b|C;e=e+1|0}while((e|0)<(h|0))}g=c[g+52>>2]|0}while((g|0)!=0)}C=b;return d|0}function yv(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=b[e+18>>1]|0;k=b[f+18>>1]|0;h=k|l;if(((!((l&62)==0|(k&62)==0)?(g=h&65535,(g&26|0)==(g|0)|(g&38|0)==(g|0)):0)?(j=c[e>>2]|0,i=c[f>>2]|0,(yu(c[j+12>>2]|0,c[i+12>>2]|0,-1)|0)==0):0)?(yu(c[j+16>>2]|0,c[i+16>>2]|0,-1)|0)==0:0){if(g+65535&g)h=(g&24|0)==0?32:8;i=Ir(c[c[c[d>>2]>>2]>>2]|0,j,0,0)|0;if(i){h=h&65535;g=79;while(1)if((h|0)==(2<<g+-79|0))break;else g=g+1|0;a[i>>0]=g;Au(d,vv(d,i,3)|0)}}return}function zv(d,f,g,h,i,j){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0;c[d>>2]=f;c[d+4>>2]=f;a:do if((j|0)!=0&(h|0)>-1){a[d+12>>0]=a[(c[(c[j+12>>2]|0)+4>>2]|0)+(h*24|0)+21>>0]|0;k=c[j+4>>2]|0;if((b[k>>1]|0)==(h|0))f=0;else{l=e[j+48>>1]|0;m=0;while(1){f=m+1|0;if((m|0)>(l|0)){f=0;break a}if((b[k+(f<<1)>>1]|0)==(h|0))break;else m=f}}c[d+8>>2]=c[(c[j+32>>2]|0)+(f<<2)>>2];n=8}else{a[d+12>>0]=0;c[d+8>>2]=0;n=8}while(0);if((n|0)==8){c[d+16>>2]=i;c[d+20>>2]=0;c[d+24>>2]=g;c[d+28>>2]=h;a[d+13>>0]=2;a[d+14>>0]=2;f=Av(d)|0}return f|0}
[all...]
H A Dsqlite-change-heap.js7 function Yt(a,b){a=a|0;b=b|0;var c=0;if(b&1)if(!(k[a+12>>2]|0))b=(k[a+20>>2]|0)==0?12:28;else b=28;else b=48;if((k[a+4>>2]&1024|0)==0?(c=k[a+8>>2]|0,(c|0)!=0):0){a=c;while(1)if(!(i[a>>0]|0))break;else a=a+1|0;b=(b|1)+(a-c&1073741823)|0}return b+7&-8|0}function Zt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=k[a>>2]|0;g=d+20|0;c=k[g>>2]|0;if((c|0)>0){f=0;e=k[d+16>>2]|0;while(1){d=k[(k[e+12>>2]|0)+16>>2]|0;if(d){c=d;do{_t(a,k[c+8>>2]|0,b);c=k[c>>2]|0}while((c|0)!=0);c=k[g>>2]|0}f=f+1|0;if((f|0)>=(c|0))break;else e=e+16|0}}return}function _t(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,l=0,m=0,n=0;d=k[b+8>>2]|0;if(d){m=(c|0)==0;i=b+68|0;l=a+408|0;do{a:do if(!m){g=d+32|0;b=j[d+48>>1]|0;if(b<<16>>16){f=k[d+4>>2]|0;b=b&65535;e=0;do{if((j[f+(e<<1)>>1]|0)>-1?(id(k[(k[g>>2]|0)+(e<<2)>>2]|0,c)|0)==0:0){n=9;break a}e=e+1|0}while((e|0)<(b|0))}}else n=9;while(0);if((n|0)==9){n=0;b=k[a>>2]|0;e=k[i>>2]|0;b:do if(e){h=k[b+20>>2]|0;if((h|0)>0){f=k[b+16>>2]|0;g=0;while(1){b=g+1|0;if((k[f+(g<<4)+12>>2]|0)==(e|0)){b=g;break b}if((b|0)<(h|0))g=b;else break}}else b=0}else b=-1e6;while(0);h=k[l>>2]|0;Fr(a,b);h=((h|0)==0?a:h)+328|0;k[h>>2]=k[h>>2]|1<<b;As(a,d,-1)}d=k[d+20>>2]|0}while((d|0)!=0)}return}function $t(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=k[(k[(k[a>>2]|0)+16>>2]|0)+(b<<4)+12>>2]|0;f=k[a+408>>2]|0;Fr(a,b);f=((f|0)==0?a:f)+328|0;k[f>>2]=k[f>>2]|1<<b;f=a+68|0;d=k[f>>2]|0;k[f>>2]=d+3;mv(a,b,d,0,0);e=(k[a+72>>2]|0)+1|0;f=k[f>>2]|0;c=k[c+16>>2]|0;if(c)do{nv(a,k[c+8>>2]|0,0,d,e,f);c=k[c>>2]|0}while((c|0)!=0);ov(a,b);return}function au(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=k[a>>2]|0;g=k[b+68>>2]|0;a:do if(g){h=k[d+20>>2]|0;if((h|0)>0){e=k[d+16>>2]|0;d=0;while(1){f=d+1|0;if((k[e+(d<<4)+12>>2]|0)==(g|0)){f=d;break a}if((f|0)<(h|0))d=f;else break}}else f=0}else f=-1e6;while(0);d=k[a+408>>2]|0;Fr(a,f);d=((d|0)==0?a:d)+328|0;k[d>>2]=k[d>>2]|1<<f;d=a+68|0;e=k[d>>2]|0;k[d>>2]=e+3;if(!c)mv(a,f,e,k[b>>2]|0,28544);else mv(a,f,e,k[c>>2]|0,28536);nv(a,b,c,e,(k[a+72>>2]|0)+1|0,k[d>>2]|0);ov(a,f);return}function bu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=((c|0)/2|0)+1|0;e=rh(a,e,((e|0)<0)<<31>>31)|0;a=c+-1|0;if(e){if((a|0)>0){d=0;do{f=i[b+d>>0]|0;g=i[b+(d|1)>>0]|0;i[e+((d|0)/2|0)>>0]=(0-(g>>>6&1)&9)+g&15|(0-(f>>>6&1)&9)+f<<4;d=d+2|0}while((d|0)<(a|0));a=(c&-2|0)/2|0}else a=0;i[e+a>>0]=0}return e|0}function cu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();f=j+8|0;h=j;g=k[a+8>>2]|0;e=b+8|0;do if(!(k[b+4>>2]&1024)){e=k[e>>2]|0;b=oi(e,h)|0;if((b|0)!=0?!((b|0)==2&(c|0)!=0):0)if(!(Kc(e,29144,2)|0)){k[f>>2]=e;yh(a,29152,f);break}else{du(g,e,c,d);break}if(c){if((b|0)==2){b=0;e=-2147483648}else{b=h;b=iw(0,0,k[b>>2]|0,k[b+4>>2]|0)|0;e=L}c=h;k[c>>2]=b;k[c+4>>2]=e}b=rh(k[g>>2]|0,8,0)|0;if(b){c=h;f=k[c>>2]|0;c=k[c+4>>2]|0;e=b;a=e;i[a>>0]=f;i[a+1>>0]=f>>8;i[a+2>>0]=f>>16;i[a+3>>0]=f>>24;e=e+4|0;i[e>>0]=c;i[e+1>>0]=c>>8;i[e+2>>0]=c>>16;i[e+3>>0]=c>>24}Ch(g,Bh(g,26,0,d,0)|0,b,-13)}else{b=k[e>>2]|0;Bh(g,25,(c|0)==0?b:0-b|0,d,0)|0}while(0);r=j;return}function du(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;if(b){e=b;while(1)if(!(i[e>>0]|0))break;else e=e+1|0;Yl(b,f,e-b&1073741823,1)|0;if(c)p[f>>3]=-+p[f>>3];e=rh(k[a>>2]|0,8,0)|0;if(e){b=f;h=k[b>>2]|0;b=k[b+4>>2]|0;c=e;f=c;i[f>>0]=h;i[f+1>>0]=h>>8;i[f+2>>0]=h>>16;i[f+3>>0]=h>>24;c=c+4|0;i[c>>0]=b;i[c+1>>0]=b>>8;i[c+2>>0]=b>>16;i[c+3>>0]=b>>24}Ch(a,Bh(a,133,0,d,0)|0,e,-12)}r=g;return}function eu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+32|0;if((r|0)>=(s|0))ka();e=j;a:do if(!b)g=0;else while(1){d=k[b+4>>2]|0;if(!(d&4096)){g=b;break a}if(!(d&262144))b=b+12|0;else b=k[(k[b+20>>2]|0)+4>>2]|0;b=k[b>>2]|0;if(!b){g=0;break}}while(0);b:do if(((i[a+23>>0]|0)!=0?(i[g>>0]|0)!=-97:0)?(k[e+0>>2]=0,k[e+4>>2]=0,k[e+8>>2]=0,k[e+12>>2]=0,k[e+16>>2]=0,k[e+20>>2]=0,d=e+20|0,i[d>>0]=2,k[e>>2]=78,k[e+4>>2]=79,k[e+24>>2]=0,ws(e,g)|0,(i[d>>0]|0)!=0):0){d=k[a+316>>2]|0;k[c>>2]=0;c:do if((d|0)!=0?(f=k[d>>2]|0,(f|0)>0):0){b=f;d=k[d+4>>2]|0;while(1){if((i[d+13>>0]&4)!=0?(Hu(k[d>>2]|0,g,-1)|0)==0:0)break;b=b+-1|0;if((b|0)<=0)break c;else d=d+20|0}d=k[d+16>>2]|0;break b}while(0);b=a+72|0;d=(k[b>>2]|0)+1|0;k[b>>2]=d;Lt(a,g,d,1)}else h=18;while(0);do if((h|0)==18){b=a+19|0;d=i[b>>0]|0;if(!(d<<24>>24)){b=a+72|0;d=(k[b>>2]|0)+1|0;k[b>>2]=d}else{d=d+-1<<24>>24;i[b>>0]=d;d=k[a+((d&255)<<2)+24>>2]|0}b=ns(a,g,d)|0;if((b|0)==(d|0)){k[c>>2]=d;break}else{ds(a,d);k[c>>2]=0;d=b;break}}while(0);r=j;return d|0}function fu(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,l=0;l=Tu(a,b,c)|0;j=Gu(b,pv(c)|0)|0;c=a+8|0;b=k[c>>2]|0;Ch(b,Bh(b,d,f,g,e)|0,l,-4);c=k[c>>2]|0;b=k[c+4>>2]|0;if(b)i[b+(((k[c+32>>2]|0)+-1|0)*20|0)+3>>0]=j&255|h;return}function gu(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0;b=a+100|0;k[b>>2]=(k[b>>2]|0)+-1;e=a+19|0;h=0;j=a+116|0;while(1){f=j+12|0;g=k[f>>2]|0;if((g|0)!=0?(k[j+8>>2]|0)>(k[b>>2]|0):0){c=j+6|0;if(i[c>>0]|0){d=i[e>>0]|0;if((d&255)<8){i[e>>0]=d+1<<24>>24;k[a+((d&255)<<2)+24>>2]=g}i[c>>0]=0}k[f>>2]=0}h=h+1|0;if((h|0)==10)break;else j=j+20|0}return}function hu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=k[a>>2]|0;a:do if(b){b:while(1){d=k[b+4>>2]|0;if(d&512){b=0;h=21;break a}switch(i[b>>0]|0){case 62:case -102:case -100:{h=8;break}case 38:case -98:{b=k[b+12>>2]|0;break}case 95:{h=7;break b}case -97:{if((i[b+38>>0]|0)==95){h=7;break b}else h=8;break}default:h=11}if((h|0)==8){c=k[b+44>>2]|0;if(!c)h=11;else{h=9;break}}c:do if((h|0)==11){h=0;if(!(d&256)){b=0;h=21;break a}c=k[b+12>>2]|0;if((c|0)!=0?(k[c+4>>2]&256|0)!=0:0){b=c;continue b}e=k[b+16>>2]|0;c=k[b+20>>2]|0;if((c|0)!=0&(d&2048|0)==0?(f=k[c>>2]|0,(f|0)>0):0){c=k[c+4>>2]|0;d=0;while(1){b=k[c+(d*20|0)>>2]|0;d=d+1|0;if(k[b+4>>2]&256)break c;if((d|0)>=(f|0)){b=e;break}}}else b=e}while(0);if(!b){b=0;h=21;break a}}if((h|0)==7)b=Bs(a,i[g+62>>0]|0,0,k[b+8>>2]|0)|0;else if((h|0)==9){b=j[b+32>>1]|0;if(b<<16>>16<=-1){b=0;h=21;break}b=bo(g,i[g+62>>0]|0,k[(k[c+4>>2]|0)+((b<<16>>16)*24|0)+16>>2]|0,0)|0}if(b)if(!(Bs(a,i[(k[a>>2]|0)+62>>0]|0,b,k[b>>2]|0)|0))b=0;else h=21;else{b=0;h=21}}else{b=0;h=21}while(0);return b|0}function iu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0;p=r;r=r+16|0;if((r|0)>=(s|0))ka();o=p+4|0;n=p;k[o>>2]=0;k[n>>2]=0;if((((d|0)!=0?(i[d>>0]|0)==-102:0)?(g=k[d+44>>2]|0,(g|0)!=0):0)?(i[g+44>>0]&16)!=0:0){d=g+60|0;while(1){d=k[d>>2]|0;if((k[d>>2]|0)==(a|0))break;else d=d+24|0}f=k[d+8>>2]|0;e=(k[f>>2]|0)+72|0;if((k[e>>2]|0)!=0?(l=b+24|0,h=ph(a,k[l>>2]|0)|0,(h|0)!=0):0){g=i[h>>0]|0;if(g<<24>>24){d=h;do{i[d>>0]=i[9328+(g&255)>>0]|0;d=d+1|0;g=i[d>>0]|0}while(g<<24>>24!=0)}c=yc[k[e>>2]&31](f,c,h,o,n)|0;rg(a,h);if(c){d=k[l>>2]|0;if(!d){d=37;f=0}else{f=d;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;d=(f-d&1073741823)+37|0;f=0}e=rh(a,d,f)|0;if(e){kw(e|0,0,d|0)|0;g=e+0|0;f=b+0|0;d=g+36|0;do{k[g>>2]=k[f>>2];g=g+4|0;f=f+4|0}while((g|0)<(d|0));g=e+36|0;k[e+24>>2]=g;d=k[l>>2]|0;if(!d)f=1;else{f=d;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;f=(f-d&1073741823)+1|0}pw(g|0,d|0,f|0)|0;k[e+12>>2]=k[o>>2];k[e+4>>2]=k[n>>2];n=e+2|0;j[n>>1]=m[n>>1]|16}else e=b}else e=b}else e=b}else e=b;r=p;return e|0}function ju(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+80|0;if((r|0)>=(s|0))ka();x=z;v=z+72|0;m=z+52|0;w=z+48|0;l=z+28|0;y=Tq(a)|0;a:do if(!y)e=0;else{e=a+100|0;k[e>>2]=(k[e>>2]|0)+1;e=b+4|0;if(!(k[e>>2]&32)){o=Tq(a)|0;j=a+80|0;f=k[j>>2]|0;k[j>>2]=f+1;f=Bh(o,44,f,0,0)|0}else f=-1;if((i[a+450>>0]|0)==2){h=k[a>>2]|0;j=(i[b>>0]|0)==75?29104:29112;o=k[a+468>>2]|0;k[x>>2]=(f|0)>-1?10360:29088;k[x+4>>2]=j;k[x+8>>2]=o;h=zh(h,29056,x)|0;Ch(y,Bh(y,157,k[a+464>>2]|0,0,0)|0,h,-1);h=b}else h=b;j=i[h>>0]|0;b:do if(j<<24>>24==75){l=b+12|0;g=pv(k[l>>2]|0)|0;i[v>>0]=g;q=a+68|0;t=k[q>>2]|0;k[q>>2]=t+1;q=b+28|0;k[q>>2]=t;p=(d|0)!=0;t=Bh(y,57,t,p&1^1,0)|0;if(p)u=0;else u=Ws(k[a>>2]|0,1,1)|0;j=b+20|0;do if(!(k[e>>2]&2048)){j=k[j>>2]|0;if(j){if(!(g<<24>>24))i[v>>0]=65;if(u){o=hu(a,k[l>>2]|0)|0;k[u+20>>2]=o}d=a+19|0;g=i[d>>0]|0;if(g<<24>>24){o=g+-1<<24>>24;i[d>>0]=o;h=k[a+((o&255)<<2)+24>>2]|0;if(!(o<<24>>24))n=24;else{o=g+-2<<24>>24;i[d>>0]=o;o=k[a+((o&255)<<2)+24>>2]|0}}else{n=a+72|0;h=(k[n>>2]|0)+1|0;k[n>>2]=h;n=24}if((n|0)==24){n=a+72|0;o=(k[n>>2]|0)+1|0;k[n>>2]=o}if(p)Bh(y,28,0,o,0)|0;l=k[j>>2]|0;if((l|0)>0){g=x+20|0;e=x+4|0;n=x+24|0;m=y+32|0;d=k[j+4>>2]|0;while(1){j=k[d>>2]|0;do if((f|0)>-1){k[x+0>>2]=0;k[x+4>>2]=0;k[x+8>>2]=0;k[x+12>>2]=0;k[x+16>>2]=0;k[x+20>>2]=0;i[g>>0]=1;k[x>>2]=78;k[e>>2]=79;k[n>>2]=0;ws(x,j)|0;if(i[g>>0]|0)break;Eh(y,f);f=-1}while(0);do if(p)if(!(Rs(j,w)|0)){j=ns(a,j,h)|0;Bh(y,38,j,(k[m>>2]|0)+2|0,0)|0;Bh(y,75,k[q>>2]|0,o,j)|0;break}else{Bh(y,84,k[q>>2]|0,o,k[w>>2]|0)|0;break}else{j=ns(a,j,h)|0;Ch(y,Bh(y,49,j,1,o)|0,v,1);it(a,j,1);Bh(y,110,k[q>>2]|0,o,0)|0}while(0);l=l+-1|0;if((l|0)<=0)break;else d=d+20|0}}ds(a,h);ds(a,o)}if(!u){g=f;e=0;break b}}else{h=k[j>>2]|0;o=k[q>>2]|0;i[m>>0]=11;k[m+4>>2]=o;k[m+8>>2]=0;k[m+12>>2]=0;i[m+1>>0]=g;k[h+8>>2]=0;if(!(nr(a,h,m)|0)){o=Tu(a,k[l>>2]|0,k[k[(k[h>>2]|0)+4>>2]>>2]|0)|0;k[u+20>>2]=o;break}if(!u){e=0;break a}o=(k[u>>2]|0)+-1|0;k[u>>2]=o;if(o){e=0;break a}$c(u);e=0;break a}while(0);Ch(y,t,u,-6);g=f;e=0}else{g=k[b+20>>2]|0;h=a+72|0;e=(k[h>>2]|0)+1|0;k[h>>2]=e;i[l>>0]=0;h=l+4|0;k[h>>2]=e;i[l+1>>0]=0;d=l+8|0;k[d>>2]=0;k[l+12>>2]=0;if(j<<24>>24==119){i[l>>0]=10;k[d>>2]=e;Bh(y,28,0,e,0)|0}else{i[l>>0]=3;Bh(y,25,0,e,0)|0}o=g+60|0;Lk(k[a>>2]|0,k[o>>2]|0);n=cr(a,132,0,0,20624)|0;k[o>>2]=n;k[g+8>>2]=0;if(nr(a,g,l)|0){e=0;break a}g=f;e=k[h>>2]|0}while(0);if(c)qv(y,k[b+28>>2]|0,c);if((g|0)>-1){f=k[y+32>>2]|0;if(f>>>0>g>>>0)k[(k[y+4>>2]|0)+(g*20|0)+8>>2]=f;k[(k[y+24>>2]|0)+88>>2]=f+-1}gu(a)}while(0);r=z;return e|0}function ku(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+16|0;if((r|0)>=(s|0))ka();h=y+4|0;v=y+8|0;t=y;k[h>>2]=0;x=k[a+8>>2]|0;e=(c|0)==(d|0);g=rv(a,b,3,e?0:h)|0;j=sv(b)|0;i[v>>0]=j;j=a+100|0;k[j>>2]=(k[j>>2]|0)+1;j=a+19|0;f=i[j>>0]|0;if(!(f<<24>>24)){p=a+72|0;w=(k[p>>2]|0)+1|0;k[p>>2]=w}else{w=f+-1<<24>>24;i[j>>0]=w;w=k[a+((w&255)<<2)+24>>2]|0}f=b+12|0;Wq(a,k[f>>2]|0,w);do if((g|0)==5){p=k[b+20>>2]|0;n=hu(a,k[f>>2]|0)|0;q=Cs(x)|0;o=(d|0)!=(c|0);if(o){f=i[j>>0]|0;if(!(f<<24>>24)){m=a+72|0;f=(k[m>>2]|0)+1|0;k[m>>2]=f}else{f=f+-1<<24>>24;i[j>>0]=f;f=k[a+((f&255)<<2)+24>>2]|0}Bh(x,85,w,w,f)|0;m=f}else m=0;if((k[p>>2]|0)>0){j=p+4|0;h=(m|0)==0;g=x+4|0;f=x+32|0;e=0;do{b=eu(a,k[(k[j>>2]|0)+(e*20|0)>>2]|0,t)|0;if(!h?(Zu(k[(k[j>>2]|0)+(e*20|0)>>2]|0)|0)!=0:0)Bh(x,85,m,b,m)|0;if((e|0)<((k[p>>2]|0)+-1|0)|o){Ch(x,Bh(x,79,w,q,b)|0,n,-4);b=k[g>>2]|0;if(b)i[b+(((k[f>>2]|0)+-1|0)*20|0)+3>>0]=i[v>>0]|0}else{Ch(x,Bh(x,78,w,c,b)|0,n,-4);b=k[g>>2]|0;if(b)i[b+(((k[f>>2]|0)+-1|0)*20|0)+3>>0]=l[v>>0]|0|16}ds(a,k[t>>2]|0);e=e+1|0}while((e|0)<(k[p>>2]|0))}if(m){Bh(x,76,m,d,0)|0;Bh(x,16,0,c,0)|0}f=k[x+24>>2]|0;e=~q;if((q|0)<0?(u=k[f+112>>2]|0,(u|0)!=0):0)k[u+(e<<2)>>2]=k[x+32>>2];k[f+88>>2]=(k[x+32>>2]|0)+-1;ds(a,m)}else{do if(Zu(k[f>>2]|0)|0){if(e){Bh(x,76,w,c,0)|0;break}f=Bh(x,77,w,0,0)|0;Bh(x,108,k[b+28>>2]|0,c,0)|0;Bh(x,16,0,d,0)|0;e=k[x+32>>2]|0;if(e>>>0>f>>>0)k[(k[x+4>>2]|0)+(f*20|0)+8>>2]=e;k[(k[x+24>>2]|0)+88>>2]=e+-1}while(0);if((g|0)==1){Bh(x,38,w,c,0)|0;Bh(x,70,k[b+28>>2]|0,c,w)|0;break}Ch(x,Bh(x,48,w,1,0)|0,v,1);e=k[b+28>>2]|0;if(!(k[h>>2]|0)){Ch(x,Bh(x,68,e,c,w)|0,1,-14);break}f=Bh(x,69,e,0,w)|0;Ch(x,f,1,-14);Bh(x,76,k[h>>2]|0,d,0)|0;Bh(x,16,0,c,0)|0;e=k[x+32>>2]|0;if(e>>>0>f>>>0)k[(k[x+4>>2]|0)+(f*20|0)+8>>2]=e;k[(k[x+24>>2]|0)+88>>2]=e+-1}while(0);ds(a,w);gu(a);r=y;return}function lu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0.0,n=0,o=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=r;r=r+48|0;if((r|0)>=(s|0))ka();B=C;z=C+28|0;c=k[a+24>>2]|0;A=k[c>>2]|0;x=b+4|0;f=k[x>>2]|0;a:do if(!(f&4)){k[x>>2]=f|4;switch(l[b>>0]|0){case 153:{w=b+20|0;t=k[w>>2]|0;if(!t)e=0;else e=k[t>>2]|0;f=i[(k[A>>2]|0)+62>>0]|0;y=c+28|0;if(j[y>>1]&16){k[B>>2]=27200;yh(A,27512,B)}u=k[b+8>>2]|0;if(!u)o=0;else{g=u;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;o=g-u&1073741823}d=Xh(k[A>>2]|0,u,o,e,f,0)|0;do if(!d){if(Xh(k[A>>2]|0,u,o,-2,f,0)|0){k[B>>2]=o;k[B+4>>2]=u;yh(A,27392,B);u=c+24|0;k[u>>2]=(k[u>>2]|0)+1;break}if(!(i[(k[A>>2]|0)+145>>0]|0)){k[B>>2]=o;k[B+4>>2]=u;yh(A,27368,B);u=c+24|0;k[u>>2]=(k[u>>2]|0)+1}}else{n=(k[d+12>>2]|0)==0;v=d+2|0;do if(j[v>>1]&1024){k[x>>2]=k[x>>2]|266240;if((e|0)!=2){k[b+28>>2]=(i[k[d+24>>2]>>0]|0)==117?8388608:125829120;break}g=k[(k[t+4>>2]|0)+20>>2]|0;p[B>>3]=-1.0;if((i[g>>0]|0)==-123){f=k[g+8>>2]|0;if(!f)g=0;else{g=f;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=g-f&1073741823}Yl(f,B,g,1)|0;h=+p[B>>3];if(!(h>1.0)){g=~~(h*134217728.0);k[b+28>>2]=g;if((g|0)>=0)break}else q=22}else q=22;if((q|0)==22)k[b+28>>2]=-1;yh(A,27216,B);q=c+24|0;k[q>>2]=(k[q>>2]|0)+1}while(0);g=d+24|0;f=Xq(A,31,0,k[g>>2]|0,0)|0;if(!f){if(j[v>>1]&2048)k[x>>2]=k[x>>2]|524288;if(!n)break;g=j[y>>1]|0;if(!(g&1)){k[B>>2]=o;k[B+4>>2]=u;yh(A,27328,B);u=c+24|0;k[u>>2]=(k[u>>2]|0)+1;break}j[y>>1]=g&65534;qu(a,t)|0;i[b>>0]=-101;f=b+38|0;i[f>>0]=0;b:do if(c){e=B+24|0;d=z+4|0;g=z+8|0;while(1){u=k[c+4>>2]|0;k[B+0>>2]=0;k[B+4>>2]=0;k[B+8>>2]=0;k[B+12>>2]=0;k[B+16>>2]=0;k[B+20>>2]=0;k[B>>2]=87;k[e>>2]=z;k[z>>2]=u;k[d>>2]=0;k[g>>2]=0;qu(B,k[w>>2]|0)|0;if((k[d>>2]|0)>0)break;if(!(k[g>>2]|0))break;i[f>>0]=(i[f>>0]|0)+1<<24>>24;c=k[c+16>>2]|0;if(!c)break b}u=c+28|0;j[u>>1]=m[v>>1]&4096|m[u>>1]|2}while(0);j[y>>1]=m[y>>1]|1;c=1;break a}else if((f|0)==1){k[B>>2]=k[g>>2];yh(A,27288,B);u=c+24|0;k[u>>2]=(k[u>>2]|0)+1}i[b>>0]=101;c=1;break a}while(0);qu(a,t)|0;c=1;break a}case 135:{d=c+28|0;c=j[d>>1]|0;if(c&4){k[B>>2]=27456;yh(A,27472,B);c=j[d>>1]|0}if(c&16){k[B>>2]=27456;yh(A,27512,B)}break}case 75:case 20:case 119:{if(f&2048){g=c+20|0;d=k[g>>2]|0;e=c+28|0;f=j[e>>1]|0;if(f&4){k[B>>2]=27440;yh(A,27472,B);f=j[e>>1]|0}if(f&16){k[B>>2]=27440;yh(A,27512,B)}pu(a,k[b+20>>2]|0)|0;if((d|0)!=(k[g>>2]|0))k[x>>2]=k[x>>2]|32}break}case 27:{c=tv(A,0,0,k[b+8>>2]|0,c,b)|0;break a}case 122:{d=k[b+16>>2]|0;if((i[d>>0]|0)==27){f=d;d=b;e=0}else{f=k[d+16>>2]|0;e=k[(k[b+12>>2]|0)+8>>2]|0}c=tv(A,e,k[(k[d+12>>2]|0)+8>>2]|0,k[f+8>>2]|0,c,b)|0;break a}default:{}}if(!(k[A+64>>2]|0))c=(i[(k[A>>2]|0)+65>>0]|0)!=0?2:0;else c=2}else c=1;while(0);r=C;return c|0}function mu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,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;M=r;r=r+80|0;if((r|0)>=(s|0))ka();L=M;J=M+64|0;E=M+32|0;g=j[b+6>>1]|0;d=g&65535;a:do if(!(d&2)){D=k[a+24>>2]|0;K=k[a+12>>2]|0;a=k[K>>2]|0;if(!(d&16)){Is(K,b,D);if(k[K+64>>2]|0){c=2;break}c=(i[a+65>>0]|0)!=0?2:1;break}F=b+52|0;c=(k[F>>2]|0)!=0;G=(b|0)==0;b:do if(!G){d=E+28|0;l=E+4|0;A=E+16|0;B=E+8|0;w=a+65|0;v=K+492|0;u=(D|0)==0;t=L+4|0;q=L+12|0;p=L+24|0;o=K+64|0;x=b;c:while(1){y=x+6|0;j[y>>1]=g&65535|2;k[E+0>>2]=0;k[E+4>>2]=0;k[E+8>>2]=0;k[E+12>>2]=0;k[E+16>>2]=0;k[E+20>>2]=0;k[E+24>>2]=0;k[E+28>>2]=0;k[E>>2]=K;if(qs(E,k[x+60>>2]|0)|0){c=2;break a}if(qs(E,k[x+64>>2]|0)|0){c=2;break a}g=k[x+32>>2]|0;if(j[y>>1]&8192){z=x+48|0;k[(k[g+28>>2]|0)+48>>2]=k[z>>2];k[z>>2]=0}z=x+32|0;if((k[g>>2]|0)>0){n=0;do{e=k[g+(n*72|0)+28>>2]|0;if(e){a=k[v>>2]|0;if(u)h=0;else{h=0;f=D;do{h=(k[f+20>>2]|0)+h|0;f=k[f+16>>2]|0}while((f|0)!=0)}f=k[g+(n*72|0)+16>>2]|0;if(f)k[v>>2]=f;k[L+0>>2]=0;k[L+4>>2]=0;k[L+8>>2]=0;k[L+12>>2]=0;k[L+16>>2]=0;k[L+20>>2]=0;k[L>>2]=82;k[t>>2]=83;k[q>>2]=K;k[p>>2]=D;pu(L,e)|0;k[v>>2]=a;if(k[o>>2]|0){c=2;break a}if(i[w>>0]|0){c=2;break a}if(!u){f=D;do{h=h-(k[f+20>>2]|0)|0;f=k[f+16>>2]|0}while((f|0)!=0)}g=g+(n*72|0)+45|0;i[g>>0]=i[g>>0]&-3|((h|0)!=0&1)<<1&255;g=k[z>>2]|0}n=n+1|0}while((n|0)<(k[g>>2]|0))}j[d>>1]=1;k[l>>2]=g;k[A>>2]=D;h=k[x>>2]|0;if((k[h>>2]|0)>0){g=h+4|0;f=0;do{if(qs(E,k[(k[g>>2]|0)+(f*20|0)>>2]|0)|0){c=2;break a}f=f+1|0}while((f|0)<(k[h>>2]|0))}e=k[x+40>>2]|0;g=(e|0)!=0;h=j[d>>1]|0;if(!g?(C=h&65535,(C&2|0)==0):0)j[d>>1]=C&65534;else j[y>>1]=h&4096|m[y>>1]|4;h=k[x+44>>2]|0;if(!((h|0)==0|g)){H=32;break}k[B>>2]=k[x>>2];if(qs(E,h)|0){c=2;break a}if(qs(E,k[x+36>>2]|0)|0){c=2;break a}k[A>>2]=0;j[d>>1]=m[d>>1]|1;if(j[y>>1]&8192){z=(k[(k[z>>2]|0)+28>>2]|0)+48|0;k[x+48>>2]=k[z>>2];k[z>>2]=0}if(!c?(vv(E,x,k[x+48>>2]|0,26880)|0)!=0:0){c=2;break a}if(i[w>>0]|0){c=2;break a}do if(g){if(vv(E,x,e,26888)|0){c=2;break a}if(i[w>>0]|0){c=2;break a}f=k[e>>2]|0;if((f|0)<=0)break;h=0;g=k[e+4>>2]|0;while(1){if(k[(k[g>>2]|0)+4>>2]&2){H=46;break c}h=h+1|0;if((h|0)>=(f|0))break;else g=g+20|0}}while(0);f=k[x+52>>2]|0;if(!f)break b;x=f;g=j[f+6>>1]|0}if((H|0)==32){yh(K,26832,L);c=2;break a}else if((H|0)==46){yh(K,26896,L);c=2;break a}}while(0);if(c?(I=k[b+48>>2]|0,(I|0)!=0):0){C=k[K>>2]|0;d=k[I>>2]|0;if((d|0)>(k[C+96>>2]|0)){yh(K,26960,L);c=2;break}if((d|0)>0){a=I+4|0;c=0;do{d=(k[a>>2]|0)+(c*20|0)+13|0;i[d>>0]=i[d>>0]&-2;c=c+1|0;d=k[I>>2]|0}while((c|0)<(d|0))}k[b+56>>2]=0;c=k[F>>2]|0;if(!c)if(G)a=I+4|0;else H=60;else while(1){k[c+56>>2]=b;b=k[c+52>>2]|0;if(!b){b=c;H=60;break}else{B=c;c=b;b=B}}d:do if((H|0)==60){a=I+4|0;u=C+65|0;v=L+4|0;w=L+8|0;x=L+28|0;y=L+24|0;z=L+4|0;t=b;e:while(1){q=k[t>>2]|0;if((d|0)<=0)break d;o=t+32|0;c=0;n=0;p=k[a>>2]|0;while(1){k[J>>2]=-1;l=p+13|0;do if(!(i[l>>0]&1)){d=k[p>>2]|0;f:do if(!d)d=0;else while(1){b=k[d+4>>2]|0;if(!(b&4096))break f;if(!(b&262144))d=d+12|0;else d=k[(k[d+20>>2]|0)+4>>2]|0;d=k[d>>2]|0;if(!d){d=0;break}}while(0);if(!(Rs(d,J)|0)){b=wv(q,d)|0;k[J>>2]=b;if(!b){h=Rr(C,d,0,0)|0;if(!(i[u>>0]|0)){e=k[t>>2]|0;k[L+0>>2]=0;k[L+4>>2]=0;k[L+8>>2]=0;k[L+12>>2]=0;k[L+16>>2]=0;k[L+20>>2]=0;k[L+24>>2]=0;k[L+28>>2]=0;k[L>>2]=K;k[v>>2]=k[o>>2];k[w>>2]=e;j[x>>1]=1;k[y>>2]=0;A=(k[K>>2]|0)+68|0;b=i[A>>0]|0;i[A>>0]=1;B=qs(L,h)|0;i[A>>0]=b;g:do if(!B){g=e+4|0;f=k[e>>2]|0;e=0;while(1){if((e|0)>=(f|0)){b=0;break g}b=e+1|0;if((Hu(k[(k[g>>2]|0)+(e*20|0)>>2]|0,h,-1)|0)<2)break;else e=b}}else b=0;while(0);k[J>>2]=b}else b=0;Lk(C,h)}if((b|0)<=0){b=1;break}}else{e=k[J>>2]|0;b=k[q>>2]|0;if((e|0)<1|(e|0)>(b|0))break e;else b=e}k[L>>2]=0;k[z>>2]=0;e=sr(C,132,L,0)|0;if(!e){c=2;break a}f=e+4|0;k[f>>2]=k[f>>2]|1024;k[e+8>>2]=b;f=k[p>>2]|0;if((f|0)==(d|0))k[p>>2]=e;else k[f+12>>2]=e;Lk(C,d);j[p+16>>1]=b;i[l>>0]=i[l>>0]|1;b=n}else b=n;while(0);c=c+1|0;d=k[I>>2]|0;if((c|0)>=(d|0))break;else{n=b;p=p+20|0}}t=k[t+56>>2]|0;if(!((t|0)!=0&(b|0)!=0))break d}k[L>>2]=c+1;k[L+4>>2]=26880;k[L+8>>2]=b;yh(K,27064,L);c=2;break a}while(0);b=0;while(1){if((b|0)>=(d|0)){c=1;break a}c=b+1|0;if(!(i[(k[a>>2]|0)+(b*20|0)+13>>0]&1))break;else b=c}k[L>>2]=c;yh(K,27e3,L);c=2}else c=1}else c=1;while(0);r=M;return c|0}function nu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+16|0;if((r|0)>=(s|0))ka();w=z;x=k[a>>2]|0;a:do if(b){q=k[b>>2]|0;a=q*24|0;e=rh(x,a,0)|0;if(e)kw(e|0,0,a|0)|0;j[c>>1]=q;k[d>>2]=e;if((q|0)>0){o=b+4|0;t=x+65|0;a=0;p=e;while(1){m=k[o>>2]|0;b=k[m+(a*20|0)>>2]|0;b:do if(!b)b=0;else while(1){f=k[b+4>>2]|0;if(!(f&4096))break b;if(!(f&262144))b=b+12|0;else b=k[(k[b+20>>2]|0)+4>>2]|0;b=k[b>>2]|0;if(!b){b=0;break}}while(0);f=k[m+(a*20|0)+4>>2]|0;do if(!f){while(1){f=i[b>>0]|0;if(f<<24>>24==-102){v=b;y=18;break}else if(f<<24>>24==27){y=24;break}else if(f<<24>>24!=122)break;b=k[b+16>>2]|0}if((y|0)==24){y=0;k[w>>2]=k[b+8>>2];b=zh(x,10344,w)|0;break}if((y|0)==18?(y=0,u=k[v+44>>2]|0,(u|0)!=0):0){b=j[v+32>>1]|0;if(b<<16>>16<0)b=j[u+36>>1]|0;else b=b<<16>>16;if((b|0)>-1)b=k[(k[u+4>>2]|0)+(b*24|0)>>2]|0;else b=20456;k[w>>2]=b;b=zh(x,10344,w)|0;break}k[w>>2]=k[m+(a*20|0)+8>>2];b=zh(x,10344,w)|0}else b=ph(x,f)|0;while(0);if(i[t>>0]|0)break;if(!b){h=0;b=0}else{f=b;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;h=f-b&1073741823}c:do if((a|0)>0){f=0;m=0;n=h;while(1){if(!(id(k[e+(m*24|0)>>2]|0,b)|0)){g=n;while(1){h=g+-1|0;if((h|0)<=1)break;if(((l[b+h>>0]|0)+-48|0)>>>0<10)g=h;else break}if((g|0)>0)g=(i[b+h>>0]|0)==58?h:n;else g=n;i[b+g>>0]=0;f=f+1|0;k[w>>2]=b;k[w+4>>2]=f;h=zh(x,26824,w)|0;rg(x,b);if(!h){b=0;break c}else{m=-1;b=h}}else g=n;m=m+1|0;if((m|0)>=(a|0))break;else n=g}}while(0);k[p>>2]=b;a=a+1|0;if((a|0)<(q|0))p=p+24|0;else{b=t;break a}}rg(x,b);b=t}else y=6}else{j[c>>1]=0;k[d>>2]=0;e=0;y=6}while(0);if((y|0)==6){b=x+65|0;a=0}if(i[b>>0]|0){if((a|0)>0){b=0;do{rg(x,k[e+(b*24|0)>>2]|0);b=b+1|0}while((b|0)!=(a|0))}rg(x,e);k[d>>2]=0;j[c>>1]=0}r=z;return}function ou(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0;p=r;r=r+32|0;if((r|0)>=(s|0))ka();o=p;n=k[a>>2]|0;if(!(i[n+65>>0]|0)){k[o+0>>2]=0;k[o+4>>2]=0;k[o+8>>2]=0;k[o+12>>2]=0;k[o+16>>2]=0;k[o+20>>2]=0;k[o+24>>2]=0;k[o+28>>2]=0;k[o+4>>2]=k[c+32>>2];g=k[(k[c>>2]|0)+4>>2]|0;f=b+38|0;if((j[f>>1]|0)>0){c=0;d=0;h=0;m=k[b+4>>2]|0;while(1){e=k[g+(h*20|0)>>2]|0;q=m+22|0;t=ph(n,Du(o,e,q)|0)|0;k[m+12>>2]=t;c=ow(l[q>>0]|0,0,c|0,d|0)|0;d=L;q=pv(e)|0;i[m+21>>0]=q<<24>>24==0?65:q;e=hu(a,e)|0;if(e){e=ph(n,k[e>>2]|0)|0;k[m+16>>2]=e}h=h+1|0;if((h|0)>=(j[f>>1]|0))break;else m=m+24|0}d=nw(c|0,d|0,2)|0;c=L}else{d=0;c=0}o=ks(d,c)|0;j[b+42>>1]=o}r=p;return}function pu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;do if(!b)c=0;else{f=a+4|0;d=k[f>>2]|0;if((d|0)==0?(k[a+8>>2]|0)==0:0){c=0;break}i=a+16|0;k[i>>2]=(k[i>>2]|0)+1;g=a+8|0;a:while(1){if((d|0)!=0?(c=wc[d&127](a,b)|0,(c|0)!=0):0){j=24;break}if(qu(a,k[b>>2]|0)|0){j=19;break}if(ws(a,k[b+36>>2]|0)|0){j=19;break}if(qu(a,k[b+40>>2]|0)|0){j=19;break}if(ws(a,k[b+44>>2]|0)|0){j=19;break}if(qu(a,k[b+48>>2]|0)|0){j=19;break}if(ws(a,k[b+60>>2]|0)|0){j=19;break}if(ws(a,k[b+64>>2]|0)|0){j=19;break}d=k[b+32>>2]|0;if((d|0)!=0?(h=k[d>>2]|0,(h|0)>0):0){e=h;d=d+8|0;while(1){if(pu(a,k[d+20>>2]|0)|0){j=19;break a}e=e+-1|0;if((e|0)<=0)break;else d=d+72|0}}d=k[g>>2]|0;if(d)oc[d&15](a,b);b=k[b+52>>2]|0;if(!b){c=0;break}d=k[f>>2]|0}if((j|0)==19){k[i>>2]=(k[i>>2]|0)+-1;c=2;break}else if((j|0)==24)c=c&2;k[i>>2]=(k[i>>2]|0)+-1}while(0);return c|0}function qu(a,b){a=a|0;b=b|0;var c=0;a:do if((b|0)!=0?(c=k[b>>2]|0,(c|0)>0):0){b=k[b+4>>2]|0;while(1){if(ws(a,k[b>>2]|0)|0){c=2;break a}c=c+-1|0;if((c|0)<=0){c=0;break}else b=b+20|0}}else c=0;while(0);return c|0}function ru(a){a=a|0;var b=0,c=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();b=c;k[b>>2]=0;if((k[a+4>>2]&1|0)==0?(Rs(a,b)|0)!=0:0)a=(k[b>>2]|0)==0&1;else a=0;r=c;return a|0}function su(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0;q=r;r=r+32|0;if((r|0)>=(s|0))ka();o=q;f=k[c+12>>2]|0;k[o+0>>2]=0;k[o+4>>2]=0;k[o+8>>2]=0;k[o+12>>2]=0;k[o+16>>2]=0;k[o+20>>2]=200;i[o+24>>0]=1;i[o+25>>0]=0;k[o>>2]=k[a>>2];l=c+46|0;if(j[l>>1]|0){n=c+4|0;g=f+4|0;p=0;do{h=k[(k[g>>2]|0)+((j[(k[n>>2]|0)+(p<<1)>>1]|0)*24|0)>>2]|0;if(p)Xk(o,28920,2);e=k[f>>2]|0;if(!e)d=0;else{d=e;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-e&1073741823}Xk(o,e,d);Xk(o,28928,1);if(!h)d=0;else{d=h;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-h&1073741823}Xk(o,h,d);p=p+1|0}while((p|0)<(m[l>>1]|0))}p=yg(o)|0;Es(a,(i[c+51>>0]&3)==2?1555:2067,b,p,-1,2);r=q;return}function tu(a,b){a=a|0;b=b|0;return 0}function uu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0;p=r;r=r+16|0;if((r|0)>=(s|0))ka();o=p+8|0;l=p;n=b+52|0;a:do if((k[n>>2]|0)!=0?(d=k[b+48>>2]|0,!((d|0)==0|(b|0)==0)):0){c=b;while(1){h=i[c+4>>0]|0;if(!(h<<24>>24==119|h<<24>>24==116))break;c=k[c+52>>2]|0;if(!c){c=0;break a}}e=k[d+4>>2]|0;c=k[d>>2]|0;while(1){d=c+-1|0;if((c|0)<=0){c=0;break a}if(!(k[(k[e+(d*20|0)>>2]|0)+4>>2]&256))c=d;else break}if((c|0)>=1){c=k[a+12>>2]|0;f=k[c>>2]|0;a=rh(f,72,0)|0;if(a){g=a+0|0;h=g+72|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(h|0));e=l;k[e>>2]=0;k[e+4>>2]=0;e=or(c,0,0,0,l,a,0,0)|0;if(e){g=a+0|0;d=b+0|0;h=g+72|0;do{k[g>>2]=k[d>>2];g=g+4|0;d=d+4|0}while((g|0)<(h|0));k[b+32>>2]=e;k[o>>2]=0;k[o+4>>2]=0;c=qr(c,0,sr(f,116,o,0)|0)|0;k[b>>2]=c;i[b+4>>0]=119;k[b+36>>2]=0;k[a+40>>2]=0;k[a+44>>2]=0;k[a+48>>2]=0;k[n>>2]=0;k[b+56>>2]=0;c=b+6|0;j[c>>1]=(m[c>>1]|0)&57279|8192;k[(k[a+52>>2]|0)+56>>2]=a;k[a+60>>2]=0;k[a+64>>2]=0;c=0}else c=2}else c=2}else c=0}else c=0;while(0);r=p;return c|0}function vu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,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;X=r;r=r+32|0;if((r|0)>=(s|0))ka();W=X;T=X+16|0;G=a+12|0;V=k[G>>2]|0;U=k[V>>2]|0;R=b+6|0;g=m[R>>1]|0;j[R>>1]=g|16;S=U+65|0;a:do if(!(i[S>>0]|0)){F=b+32|0;P=k[F>>2]|0;if((P|0)!=0&(g&16|0)==0){Q=k[b>>2]|0;if((k[a+8>>2]|0)==9){g=b;while(1){f=k[g+56>>2]|0;if(!f)break;else g=f}g=k[g+68>>2]|0;if(g){C=V+532|0;k[g+4>>2]=k[C>>2];k[C>>2]=g;i[V+449>>0]=0}}Hs(V,P);O=P+8|0;g=k[P>>2]|0;b:do if((g|0)>0){B=0;v=O;c:while(1){if(!(i[v+37>>0]&8)){C=v+16|0;c=k[G>>2]|0;if(k[C>>2]|0){d=c;N=10;break}q=k[c>>2]|0;f=c+532|0;h=k[f>>2]|0;d:do if((k[v+4>>2]|0)==0?(E=k[v+8>>2]|0,!((E|0)==0|(h|0)==0)):0){e:while(1){n=k[h>>2]|0;if((n|0)>0){e=0;do{g=h+(e<<4)+8|0;d=k[g>>2]|0;if(!(id(E,d)|0)){z=e;break e}e=e+1|0}while((e|0)<(n|0))}h=k[h+4>>2]|0;if(!h){N=46;break d}}w=h+(z<<4)+20|0;n=k[w>>2]|0;if(n){b=n;N=21;break c}y=rh(q,76,0)|0;if(!y){b=C;N=23;break c}o=y+0|0;n=o+76|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(n|0));k[C>>2]=y;t=y+40|0;j[t>>1]=1;A=ph(q,k[g>>2]|0)|0;k[y>>2]=A;j[y+36>>1]=-1;j[y+28>>1]=200;A=y+44|0;i[A>>0]=l[A>>0]|2;A=lr(q,k[h+(z<<4)+16>>2]|0,0)|0;k[v+20>>2]=A;if(i[q+65>>0]|0){b=2;break a}x=((i[A+4>>0]|0)+-115&255)<2;if(x?(u=k[A+32>>2]|0,D=k[u>>2]|0,(D|0)>0):0){n=A+6|0;o=D;q=0;do{do if(!(k[u+(q*72|0)+12>>2]|0)){p=k[u+(q*72|0)+16>>2]|0;if(!p)break;if(id(p,k[g>>2]|0)|0)break;k[u+(q*72|0)+24>>2]=y;o=u+(q*72|0)+45|0;i[o>>0]=i[o>>0]|8;j[t>>1]=(j[t>>1]|0)+1<<16>>16;j[n>>1]=m[n>>1]|2048;o=k[u>>2]|0}while(0);q=q+1|0}while((q|0)<(o|0))}if((m[t>>1]|0)>2){b=g;N=34;break c}k[w>>2]=28176;e=k[f>>2]|0;k[f>>2]=h;if(x)n=k[A+52>>2]|0;else n=A;pu(a,n)|0;n=A;while(1){d=k[n+52>>2]|0;if(!d)break;else n=d}d=k[n>>2]|0;n=k[h+(z<<4)+12>>2]|0;do if(n){if(!d)break;p=k[d>>2]|0;d=k[n>>2]|0;if((p|0)!=(d|0)){b=p;N=42;break c}}else n=d;while(0);nu(c,n,y+38|0,y+4|0);if(x){k[w>>2]=(j[A+6>>1]&2048)==0?28280:28240;pu(a,A)|0}k[w>>2]=0;k[f>>2]=e;if(!(k[C>>2]|0))N=46}else N=46;while(0);do if((N|0)==46){N=0;if(!(k[v+8>>2]|0)){h=k[v+20>>2]|0;if(pu(a,h)|0){b=2;break a}f=rh(U,76,0)|0;if(!f){b=C;N=49;break c}o=f+0|0;n=o+76|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(n|0));k[C>>2]=f;j[f+40>>1]=1;k[W>>2]=f;C=zh(U,27760,W)|0;k[f>>2]=C;while(1){g=k[h+52>>2]|0;if(!g)break;else h=g}nu(V,k[h>>2]|0,f+38|0,f+4|0);j[f+36>>1]=-1;j[f+28>>1]=200;C=f+44|0;i[C>>0]=l[C>>0]|2;break}c=Zr(V,0,v)|0;k[C>>2]=c;if(!c){b=2;break a}h=c+40|0;g=j[h>>1]|0;if(g<<16>>16==-1){b=C;N=55;break c}j[h>>1]=g+1<<16>>16;h=c+12|0;if((k[h>>2]|0)==0?(i[c+44>>0]&16)==0:0)break;if(mr(V,c)|0){b=2;break a}C=lr(U,k[h>>2]|0,0)|0;k[v+20>>2]=C;pu(a,C)|0}while(0);if(Wt(V,v)|0){b=2;break a}g=k[P>>2]|0}B=B+1|0;if((B|0)>=(g|0))break b;else v=v+72|0}if((N|0)==10){while(1){c=k[b+56>>2]|0;if(!c)break;else b=c}b=k[b+68>>2]|0;if(!b){b=1;break a}k[d+532>>2]=k[b+4>>2];b=1;break a}else if((N|0)==21){k[W>>2]=d;yh(c,b,W);b=2;break a}else if((N|0)==23){k[b>>2]=0;b=2;break a}else if((N|0)==34){k[W>>2]=k[b>>2];yh(c,28128,W);b=2;break a}else if((N|0)==42){k[W>>2]=k[g>>2];k[W+4>>2]=b;k[W+8>>2]=d;yh(c,28200,W);k[f>>2]=e;b=2;break a}else if((N|0)==49){k[b>>2]=0;b=2;break a}else if((N|0)==55){k[W>>2]=k[c>>2];yh(V,27776,W);k[b>>2]=0;b=2;break a}}while(0);if(!(i[S>>0]|0)){v=k[F>>2]|0;f:do if(((k[v>>2]|0)+-1|0)>0){w=b+36|0;y=0;z=v+8|0;A=v+80|0;g:while(1){x=k[A+16>>2]|0;if(!((k[z+16>>2]|0)==0|(x|0)==0)){D=l[A+36>>0]|0;u=D&32;q=(u|0)==0;u=u>>>5;t=A+44|0;if(D&4){if(k[t>>2]|0){N=73;break}g=A+48|0;if(k[g>>2]|0){N=73;break}d=x+38|0;h=j[d>>1]|0;if(h<<16>>16>0){c=x+4|0;p=y+1|0;o=0;do{f=k[(k[c>>2]|0)+(o*24|0)>>2]|0;e=0;do{n=xv(k[v+(e*72|0)+24>>2]|0,f)|0;if((n|0)>-1){h=e;N=77;break}e=e+1|0}while((e|0)<(p|0));if((N|0)==77){N=0;yv(V,v,h,n,p,o,u,w);h=j[d>>1]|0}o=o+1|0}while((o|0)<(h<<16>>16|0))}}else g=A+48|0;h=k[t>>2]|0;if(h){if(k[g>>2]|0){N=81;break}if(!q){zv(h,k[A+40>>2]|0);h=k[t>>2]|0}D=xs(k[V>>2]|0,k[w>>2]|0,h)|0;k[w>>2]=D;k[t>>2]=0}f=k[g>>2]|0;if((f|0)!=0?(M=f+4|0,(k[M>>2]|0)>0):0){e=y+1|0;n=0;do{c=k[(k[f>>2]|0)+(n<<3)>>2]|0;d=xv(x,c)|0;if((d|0)<0){N=91;break g}else h=0;while(1){g=xv(k[v+(h*72|0)+24>>2]|0,c)|0;if((g|0)>-1)break;h=h+1|0;if((h|0)>=(e|0)){N=91;break g}}yv(V,v,h,g,e,d,u,w);n=n+1|0}while((n|0)<(k[M>>2]|0))}}y=y+1|0;if((y|0)>=((k[v>>2]|0)+-1|0))break f;else{z=z+72|0;A=A+72|0}}if((N|0)==73){k[W>>2]=0;yh(V,27928,W);b=2;break a}else if((N|0)==81){yh(V,27984,W);b=2;break a}else if((N|0)==91){k[W>>2]=c;yh(V,28040,W);b=2;break a}}while(0);c=k[Q>>2]|0;h=(c|0)>0;h:do if(h){d=k[Q+4>>2]|0;g=0;do{f=k[d+(g*20|0)>>2]|0;e=i[f>>0]|0;if(e<<24>>24==122){if((i[k[f+16>>2]>>0]|0)==116)break h}else if(e<<24>>24==116)break h;g=g+1|0}while((g|0)<(c|0))}else g=0;while(0);if((g|0)<(c|0)){M=k[Q+4>>2]|0;g=k[(k[V>>2]|0)+24>>2]|0;if(!(g&32))L=0;else L=(g&64|0)==0;if(h){H=U+20|0;I=U+16|0;J=T+4|0;K=0;c=0;do{f=M+(K*20|0)|0;h=k[f>>2]|0;g=i[h>>0]|0;if(g<<24>>24==116){a=0;N=110}else if(g<<24>>24==122?(i[k[h+16>>2]>>0]|0)==116:0){a=k[(k[h+12>>2]|0)+8>>2]|0;N=110}else N=106;do if((N|0)==106){c=qr(V,c,h)|0;if(c){C=M+(K*20|0)+4|0;B=(k[c>>2]|0)+-1|0;A=k[c+4>>2]|0;k[A+(B*20|0)+4>>2]=k[C>>2];D=M+(K*20|0)+8|0;k[A+(B*20|0)+8>>2]=k[D>>2];k[C>>2]=0;k[D>>2]=0}k[f>>2]=0}else if((N|0)==110){if((k[P>>2]|0)>0){D=(a|0)==0;E=(a|0)!=0;F=0;G=O;g=0;while(1){q=k[G+16>>2]|0;f=k[G+20>>2]|0;h=k[G+12>>2]|0;if(!h)h=k[q>>2]|0;if(i[S>>0]|0)break;if((f|0)!=0?(j[f+6>>1]&512)!=0:0){C=0;N=125}else N=117;do if((N|0)==117){N=0;if(!D?(id(a,h)|0)!=0:0)break;n=k[q+68>>2]|0;if(!n){f=0;C=27816;N=125;break}e=k[H>>2]|0;o=k[I>>2]|0;if((e|0)>0){d=0;while(1){f=d+1|0;if((k[o+(d<<4)+12>>2]|0)==(n|0)){f=d;break}if((f|0)<(e|0))d=f;else break}if((f|0)>-1)e=f;else{f=0;C=27816;N=125;break}}else e=0;f=0;C=k[o+(e<<4)>>2]|0;N=125}while(0);do if((N|0)==125){N=0;B=q+38|0;t=j[B>>1]|0;if(t<<16>>16<=0)break;x=q+4|0;w=(f|0)!=0;o=E&w;y=(F|0)>0;p=y&D;v=G+36|0;y=y^1;u=G+48|0;n=(C|0)==0;z=0;do{q=k[x>>2]|0;d=k[q+(z*24|0)>>2]|0;if(!(o?(Av(k[(k[(k[f>>2]|0)+4>>2]|0)+(z*20|0)+8>>2]|0,0,a,0)|0)==0:0))N=129;i:do if((N|0)==129){N=0;if(i[q+(z*24|0)+23>>0]&2)break;if(p){if(!((i[v>>0]&4)==0|y)){q=0;do{if((xv(k[P+(q*72|0)+24>>2]|0,d)|0)>-1){g=1;break i}q=q+1|0}while((q|0)<(F|0))}if((Bv(k[u>>2]|0,d)|0)>-1){g=1;break}}t=yt(U,27,d)|0;if(!L?(k[P>>2]|0)<=1:0){e=d;A=0}else N=137;do if((N|0)==137){N=0;t=cr(V,122,yt(U,27,h)|0,t,0)|0;if(!n)t=cr(V,122,yt(U,27,C)|0,t,0)|0;if(!L){e=d;A=0;break}k[W>>2]=h;k[W+4>>2]=d;A=zh(U,27824,W)|0;e=A}while(0);c=qr(V,c,t)|0;k[T>>2]=e;if(!e)t=0;else{t=e;while(1)if(!(i[t>>0]|0))break;else t=t+1|0;t=t-e&1073741823}k[J>>2]=t;rr(V,c,T,0);do if(c){if(!(j[R>>1]&512))break;q=(k[c>>2]|0)+-1|0;d=k[c+4>>2]|0;if(w)t=ph(U,k[(k[(k[f>>2]|0)+4>>2]|0)+(z*20|0)+8>>2]|0)|0;else{k[W>>2]=C;k[W+4>>2]=h;k[W+8>>2]=e;t=zh(U,27832,W)|0}k[d+(q*20|0)+8>>2]=t;t=d+(q*20|0)+13|0;i[t>>0]=i[t>>0]|2}while(0);rg(U,A);t=j[B>>1]|0;g=1}while(0);z=z+1|0}while((z|0)<(t<<16>>16|0))}while(0);F=F+1|0;if((F|0)>=(k[P>>2]|0))break;else G=G+72|0}if(g)break}if(!a){yh(V,27872,W);break}else{k[W>>2]=a;yh(V,27848,W);break}}while(0);K=K+1|0}while((K|0)<(k[Q>>2]|0))}else c=0;Sk(U,Q);k[b>>2]=c}else c=k[b>>2]|0;if((c|0)!=0?(k[c>>2]|0)>(k[U+96>>2]|0):0){yh(V,27896,W);b=0}else b=0}else b=2}else b=1}else b=2;while(0);r=X;return b|0}function wu(a,b){a=a|0;b=b|0;var c=0;c=k[a+12>>2]|0;while(1){a=k[b+56>>2]|0;if(!a)break;else b=a}b=k[b+68>>2]|0;if(b)k[c+532>>2]=k[b+4>>2];return}function xu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=b+6|0;e=m[d>>1]|0;if((e&32|0)==0?(j[d>>1]=e|32,h=k[a+12>>2]|0,f=k[b+32>>2]|0,c=k[f>>2]|0,(c|0)>0):0){b=0;d=f+8|0;while(1){a=k[d+16>>2]|0;if(((a|0)!=0?(i[a+44>>0]&2)!=0:0)?(g=k[d+20>>2]|0,(g|0)!=0):0){c=g;while(1){e=k[c+52>>2]|0;if(!e)break;else c=e}ou(h,a,c);c=k[f>>2]|0}b=b+1|0;if((b|0)>=(c|0))break;else d=d+72|0}}return}function yu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if((a|0)!=0?(c=k[a>>2]|0,(c|0)>0):0){f=k[a+4>>2]|0;e=0;do{d=k[f+(e*20|0)>>2]|0;if((d|0)!=0?(g=k[d+24>>2]|0,(g|0)>(k[b>>2]|0)):0){k[b>>2]=g;c=k[a>>2]|0}e=e+1|0}while((e|0)<(c|0))}return}function zu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;if(((b|0)!=0?(Ls(a,k[b>>2]|0,c,d),Ls(a,k[b+40>>2]|0,c,d),Ls(a,k[b+48>>2]|0,c,d),f=b+44|0,g=Ms(a,k[f>>2]|0,c,d)|0,k[f>>2]=g,f=b+36|0,g=Ms(a,k[f>>2]|0,c,d)|0,k[f>>2]=g,zu(a,k[b+52>>2]|0,c,d),f=k[b+32>>2]|0,(f|0)!=0):0)?(e=k[f>>2]|0,(e|0)>0):0){b=e;e=f+8|0;while(1){zu(a,k[e+20>>2]|0,c,d);b=b+-1|0;if((b|0)<=0)break;else e=e+72|0}}return}function Au(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0;c=k[b+48>>2]|0;j=k[c>>2]|0;d=k[a>>2]|0;l=Ws(d,j+1|0,1)|0;if((l|0)!=0&(j|0)>0){h=c+4|0;f=d+8|0;e=l+16|0;g=0;do{d=k[h>>2]|0;c=k[d+(g*20|0)>>2]|0;if(!(k[c+4>>2]&256)){d=Xs(a,b,(m[d+(g*20|0)+16>>1]|0)+-1|0)|0;if(!d)d=k[f>>2]|0;c=Cv(a,c,k[d>>2]|0)|0;k[(k[h>>2]|0)+(g*20|0)>>2]=c}else d=hu(a,c)|0;k[l+(g<<2)+20>>2]=d;i[(k[e>>2]|0)+g>>0]=i[(k[h>>2]|0)+(g*20|0)+12>>0]|0;g=g+1|0}while((g|0)!=(j|0))}return l|0}function Bu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();l=m;e=k[a>>2]|0;a:do if((c|0)!=0?(i[e+65>>0]|0)==0:0){f=k[c>>2]|0;if((f|0)>(k[e+96>>2]|0)){k[l>>2]=d;yh(a,27120,l);b=1;break}h=k[b>>2]|0;if((f|0)>0){e=f;b=0;g=k[c+4>>2]|0;while(1){f=j[g+16>>1]|0;if(f<<16>>16){f=f&65535;e=k[h>>2]|0;if((f|0)>(e|0))break;Dv(a,h,f+-1|0,k[g>>2]|0,d,0);e=k[c>>2]|0}b=b+1|0;if((b|0)>=(e|0)){b=0;break a}else g=g+20|0}k[l>>2]=b+1;k[l+4>>2]=d;k[l+8>>2]=e;yh(a,27064,l);b=1}else b=0}else b=0;while(0);r=m;return b|0}function Cu(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=a+8|0;u=k[t>>2]|0;w=u+32|0;j=k[w>>2]|0;x=Cs(u)|0;if(f){n=Bh(u,46,f,0,0)|0;m=c+8|0;p=k[m>>2]|0;r=f+1|0;o=c+12|0;q=k[o>>2]|0;if(g)k[g>>2]=(k[g>>2]|0)+1;p=Bh(u,42,p,r,q)|0;Ch(u,p,g,-6);p=p+2|0;Bh(u,43,p,x,p)|0;p=k[w>>2]|0;if(p>>>0>n>>>0)k[(k[u+4>>2]|0)+(n*20|0)+8>>2]=p;k[(k[u+24>>2]|0)+88>>2]=p+-1;Bh(u,33,k[m>>2]|0,r,(k[o>>2]|0)+-1|0)|0;Bh(u,25,1,f,0)|0}if(!(i[(k[a>>2]|0)+65>>0]|0)){nt(u,k[b+12>>2]|0,x);switch(l[d>>0]|0){case 11:{o=d+1|0;n=Gu(k[k[(k[b>>2]|0)+4>>2]>>2]|0,i[o>>0]|0)|0;i[o>>0]=n;n=a+19|0;m=i[n>>0]|0;if(!(m<<24>>24)){s=a+72|0;n=(k[s>>2]|0)+1|0;k[s>>2]=n}else{s=m+-1<<24>>24;i[n>>0]=s;n=k[a+((s&255)<<2)+24>>2]|0}s=c+8|0;Ch(u,Bh(u,49,k[s>>2]|0,1,n)|0,o,1);it(a,k[s>>2]|0,1);Bh(u,110,k[d+4>>2]|0,n,0)|0;ds(a,n);break}case 13:{q=d+8|0;n=k[q>>2]|0;if(!n){n=k[c+12>>2]|0;o=a+60|0;m=k[o>>2]|0;g=a+56|0;p=k[g>>2]|0;if((p|0)<(n|0)){s=a+72|0;m=k[s>>2]|0;k[s>>2]=m+n;m=m+1|0}else{k[o>>2]=m+n;k[g>>2]=p-n}k[q>>2]=m;k[d+12>>2]=n}else{m=n;n=k[d+12>>2]|0}s=k[c+8>>2]|0;Bh(k[t>>2]|0,32,s,m,n)|0;it(a,s,n);Bh(u,22,k[d+4>>2]|0,0,0)|0;break}case 12:case 14:{m=a+19|0;o=i[m>>0]|0;if(o<<24>>24){f=o+-1<<24>>24;i[m>>0]=f;n=k[a+((f&255)<<2)+24>>2]|0;if(!(f<<24>>24))s=12;else{o=o+-2<<24>>24;i[m>>0]=o;o=k[a+((o&255)<<2)+24>>2]|0;m=n}}else{s=a+72|0;n=(k[s>>2]|0)+1|0;k[s>>2]=n;s=12}if((s|0)==12){m=a+72|0;o=(k[m>>2]|0)+1|0;k[m>>2]=o;m=n}Bh(u,49,k[c+8>>2]|0,k[c+12>>2]|0,m)|0;n=d+4|0;Bh(u,74,k[n>>2]|0,o,0)|0;Bh(u,75,k[n>>2]|0,m,o)|0;n=k[u+4>>2]|0;if(n)i[n+(((k[w>>2]|0)+-1|0)*20|0)+3>>0]=8;ds(a,o);ds(a,m);break}case 10:{s=k[c+8>>2]|0;Bh(k[t>>2]|0,32,s,k[d+4>>2]|0,1)|0;it(a,s,1);break}default:{f=c+8|0;s=c+12|0;Bh(u,35,k[f>>2]|0,k[s>>2]|0,0)|0;it(a,k[f>>2]|0,k[s>>2]|0)}}m=k[b+8>>2]|0;if(m)Bh(u,140,m,h,0)|0;m=k[u+24>>2]|0;n=~x;if((x|0)<0?(v=k[m+112>>2]|0,(v|0)!=0):0)k[v+(n<<2)>>2]=k[w>>2];k[m+88>>2]=(k[w>>2]|0)+-1;Bh(u,18,e,0,0)|0}else j=0;return j|0}function Du(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0;q=r;r=r+80|0;if((r|0)>=(s|0))ka();p=q+64|0;o=q+32|0;f=q;i[p>>0]=1;if((b|0)!=0?(k[a+4>>2]|0)!=0:0){e=l[b>>0]|0;a:do if((e|0)==119){o=k[b+20>>2]|0;d=k[k[(k[o>>2]|0)+4>>2]>>2]|0;k[f+4>>2]=k[o+32>>2];k[f+16>>2]=a;k[f>>2]=k[a>>2];d=Du(f,d,p)|0}else if((e|0)==154|(e|0)==156?(n=j[b+32>>1]|0,d=n<<16>>16,(a|0)!=0):0){m=b+28|0;b:while(1){while(1){h=k[a+4>>2]|0;g=k[h>>2]|0;c:do if((g|0)>0){b=k[m>>2]|0;e=0;while(1){f=e+1|0;if((k[h+(e*72|0)+48>>2]|0)==(b|0)){f=e;break c}if((f|0)<(g|0))e=f;else break}}else f=0;while(0);if((f|0)>=(g|0))break;g=k[h+(f*72|0)+24>>2]|0;b=k[h+(f*72|0)+28>>2]|0;f=(g|0)==0;if(!((a|0)!=0&f))break b}a=k[a+16>>2]|0;if(!a){d=0;break a}}if(!f){if(b){if(n<<16>>16<=-1){d=0;break}e=k[b>>2]|0;if((d|0)>=(k[e>>2]|0)){d=0;break}d=k[(k[e+4>>2]|0)+(d*20|0)>>2]|0;k[o+4>>2]=k[b+32>>2];k[o+16>>2]=a;k[o>>2]=k[a>>2];d=Du(o,d,p)|0;break}if(k[g+68>>2]|0){if(n<<16>>16<0)d=j[g+36>>1]|0;if((d|0)<0)d=11144;else{n=k[g+4>>2]|0;o=k[n+(d*24|0)+12>>2]|0;i[p>>0]=i[n+(d*24|0)+22>>0]|0;d=o}}else d=0}else d=0}else d=0;while(0);if(c)i[c>>0]=i[p>>0]|0}else d=0;r=q;return d|0}function Eu(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=k[a+8>>2]|0;f=a+19|0;g=i[f>>0]|0;if(!(g<<24>>24)){g=a+72|0;f=(k[g>>2]|0)+1|0;k[g>>2]=f}else{g=g+-1<<24>>24;i[f>>0]=g;f=k[a+((g&255)<<2)+24>>2]|0}Ch(h,Bh(h,69,b,c,e)|0,d,-14);Bh(h,49,e,d,f)|0;Bh(h,110,b,f,0)|0;ds(a,f);return}function Fu(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,l=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;u=a+8|0;z=k[u>>2]|0;y=b+24|0;h=i[y>>0]&1;n=h<<24>>24==0;h=(h^1)&255;g=k[b>>2]|0;o=k[g>>2]|0;p=o+e+h|0;s=a+72|0;l=k[s>>2]|0;x=l+1|0;k[s>>2]=x;v=b+4|0;q=k[v>>2]|0;f=(f|0)==0;if(f){k[s>>2]=x+p;t=l+2|0}else t=d-o-h|0;gt(a,g,t,1);if(n)Bh(z,73,k[b+8>>2]|0,t+o|0,0)|0;if(f){Bh(k[u>>2]|0,32,d,h+o+t|0,e)|0;it(a,d,e)}Bh(z,49,t+q|0,p-q|0,x)|0;if((q|0)>0){g=k[s>>2]|0;e=g+1|0;f=k[v>>2]|0;k[s>>2]=f+g;if(n)d=Bh(z,46,t+o|0,0,0)|0;else d=Bh(z,59,k[b+8>>2]|0,0,0)|0;Bh(z,42,e,t,k[v>>2]|0)|0;l=k[b+20>>2]|0;if((l|0)<0)l=(k[z+32>>2]|0)+-1|0;if(!(i[(k[z>>2]|0)+65>>0]|0))l=(k[z+4>>2]|0)+(l*20|0)|0;else l=29120;if(!(i[(k[a>>2]|0)+65>>0]|0)){k[l+8>>2]=p-f;l=l+16|0;f=k[l>>2]|0;kw(k[f+16>>2]|0,0,m[f+6>>1]|0)|0;Ch(z,-1,f,-6);f=Zs(a,k[b>>2]|0,q,(m[f+8>>1]|0)+-1|0)|0;k[l>>2]=f;l=z+32|0;f=k[l>>2]|0;j=f+1|0;Bh(z,43,j,0,j)|0;j=Cs(z)|0;k[b+16>>2]=j;h=(k[s>>2]|0)+1|0;k[s>>2]=h;k[b+12>>2]=h;Bh(z,17,h,j,0)|0;j=b+8|0;Bh(z,119,k[j>>2]|0,0,0)|0;h=k[l>>2]|0;if(h>>>0>d>>>0)k[(k[z+4>>2]|0)+(d*20|0)+8>>2]=h;g=z+24|0;k[(k[g>>2]|0)+88>>2]=h+-1;h=k[v>>2]|0;Bh(k[u>>2]|0,32,t,e,h)|0;it(a,t,h);h=k[l>>2]|0;if(h>>>0>f>>>0)k[(k[z+4>>2]|0)+(f*20|0)+8>>2]=h;k[(k[g>>2]|0)+88>>2]=h+-1;r=23}}else{j=b+8|0;r=23}if((r|0)==23?(Bh(z,110-(i[y>>0]&1)|0,k[j>>2]|0,x,0)|0,w=k[c+8>>2]|0,(w|0)!=0):0){h=k[c+12>>2]|0;h=Bh(z,139,(h|0)==0?w:h+1|0,0,-1)|0;Bh(z,105,k[j>>2]|0,0,0)|0;Bh(z,95,k[j>>2]|0,0,0)|0;g=k[z+32>>2]|0;if(g>>>0>h>>>0)k[(k[z+4>>2]|0)+(h*20|0)+8>>2]=g;k[(k[z+24>>2]|0)+88>>2]=g+-1}return}function Gu(a,b){a=a|0;b=b|0;a=pv(a)|0;if(!(a<<24>>24==0|b<<24>>24==0))return (a<<24>>24>66|b<<24>>24>66?67:65)|0;if(!((a|b)<<24>>24))a=65;else a=(b&255)+(a&255)&255;return a|0}function Hu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0;do if(!((a|0)==0|(b|0)==0)){g=k[a+4>>2]|0;h=k[b+4>>2]|0;l=h|g;if(l&1024){if((g&1024&h|0)!=0?(k[a+8>>2]|0)==(k[b+8>>2]|0):0){d=0;break}d=2;break}d=i[a>>0]|0;e=i[b>>0]|0;if(d<<24>>24!=e<<24>>24){if(d<<24>>24==95?(Hu(k[a+12>>2]|0,b,c)|0)<2:0){d=1;break}if(e<<24>>24==95?(Hu(a,k[b+12>>2]|0,c)|0)<2:0){d=1;break}d=2;break}if((!(d<<24>>24==-100|d<<24>>24==-102)?(f=k[a+8>>2]|0,(f|0)!=0):0)?(dw(f,k[b+8>>2]|0)|0)!=0:0){d=d<<24>>24==95?1:2;break}if(!((h^g)&16)){if(!(l&16384)){if(l&2048){d=2;break}if(Hu(k[a+12>>2]|0,k[b+12>>2]|0,c)|0){d=2;break}if(Hu(k[a+16>>2]|0,k[b+16>>2]|0,c)|0){d=2;break}if(Ys(k[a+20>>2]|0,k[b+20>>2]|0,c)|0){d=2;break}if(!(l&8192)){if((j[a+32>>1]|0)!=(j[b+32>>1]|0)){d=2;break}e=k[a+28>>2]|0;d=k[b+28>>2]|0;if((e|0)!=(d|0)?(e|0)!=(c|0)|(d|0)>-1:0){d=2;break}}}d=0}else d=2}else d=(b|0)==(a|0)?0:2;while(0);return d|0}function Iu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=a+8|0;i[d>>0]=c;a:do if(b){while(1){if((i[b>>0]|0)!=c<<24>>24)break;Iu(a,k[b+12>>2]|0,c);b=k[b+16>>2]|0;i[d>>0]=c;if(!b)break a}Ev(a,b,0)|0}while(0);return}function Ju(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,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,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;C=k[a>>2]|0;Q=k[C>>2]|0;S=k[Q>>2]|0;K=S+65|0;do if(!(i[K>>0]|0)){T=a+20|0;f=k[T>>2]|0;c=f+(b*48|0)|0;_=C+68|0;R=k[c>>2]|0;s=R+12|0;g=k[s>>2]|0;x=Fv(_,g)|0;w=L;e=i[R>>0]|0;u=e&255;do if(e<<24>>24==75){h=R+20|0;if(!(k[R+4>>2]&2048)){d=Qu(_,k[h>>2]|0)|0;t=L;P=f+(b*48|0)+32|0;k[P>>2]=d;k[P+4>>2]=t;break}else{d=Gv(_,k[h>>2]|0)|0;t=L;P=f+(b*48|0)+32|0;k[P>>2]=d;k[P+4>>2]=t;break}}else if(e<<24>>24==76){d=f+(b*48|0)+32|0;k[d>>2]=0;k[d+4>>2]=0;d=0;t=0}else{d=Fv(_,k[R+16>>2]|0)|0;t=L;P=f+(b*48|0)+32|0;k[P>>2]=d;k[P+4>>2]=t}while(0);q=Fv(_,R)|0;h=L;N=R+4|0;if(!(k[N>>2]&1)){O=0;P=0;v=h}else{o=j[R+36>>1]|0;n=k[_>>2]|0;a:do if((n|0)>0){p=0;while(1){if((k[C+(p<<2)+72>>2]|0)==(o|0))break;p=p+1|0;if((p|0)>=(n|0)){p=0;o=0;break a}}p=nw(1,0,p|0)|0;o=L}else{p=0;o=0}while(0);O=ow(p|0,o|0,-1,-1)|0;P=L;q=p|q;v=o|h}r=f+(b*48|0)+40|0;k[r>>2]=q;k[r+4>>2]=v;r=f+(b*48|0)+8|0;k[r>>2]=-1;k[f+(b*48|0)+4>>2]=-1;z=f+(b*48|0)+18|0;j[z>>1]=0;p=u+-75|0;if(p>>>0<9?(499>>>(p&511)&1)!=0:0){b:do if(!g)g=0;else while(1){p=k[g+4>>2]|0;if(!(p&4096))break b;if(!(p&262144))n=g+12|0;else n=k[(k[g+20>>2]|0)+4>>2]|0;g=k[n>>2]|0;if(!g){g=0;break}}while(0);p=k[R+16>>2]|0;c:do if(!p)p=0;else while(1){o=k[p+4>>2]|0;if(!(o&4096))break c;if(!(o&262144))p=p+12|0;else p=k[(k[p+20>>2]|0)+4>>2]|0;p=k[p>>2]|0;if(!p){p=0;break}}while(0);t=(d&x|0)==0&(t&w|0)==0?4095:1024;if((i[g>>0]|0)==-102){h=k[g+28>>2]|0;k[r>>2]=h;k[f+(b*48|0)+12>>2]=j[g+32>>1];if((u|0)==76)n=128;else if((u|0)==75)n=1;else n=2<<u+-79&65535;j[z>>1]=n&t}else h=-1;if((p|0)!=0?(i[p>>0]|0)==-102:0){if((h|0)>-1){g=Rr(S,R,0,0)|0;if(i[K>>0]|0){Lk(S,g);break}h=Ev(a,g,3)|0;if(!h)break;n=k[T>>2]|0;f=n+(h*48|0)|0;k[n+(h*48|0)+4>>2]=b;j[n+(h*48|0)+16>>1]=j[n+(b*48|0)+16>>1]|0;c=n+(b*48|0)+22|0;i[c>>0]=(i[c>>0]|0)+1<<24>>24;c=n+(b*48|0)|0;p=n+(b*48|0)+20|0;j[p>>1]=m[p>>1]|8;if(((i[R>>0]|0)==79?(k[N>>2]&1|0)==0:0)?(j[S+60>>1]&512)==0:0){s=n+(b*48|0)+18|0;j[s>>1]=m[s>>1]|1024;s=1024}else s=0}else{s=0;g=R;f=c}e=g+16|0;o=(k[e>>2]|0)+4|0;n=k[o>>2]|0;h=n&256;d=g+12|0;p=k[d>>2]|0;do if((h|0)==(k[p+4>>2]&256|0)){if(h){k[o>>2]=n&-257;break}p=(hu(Q,p)|0)==0;n=k[d>>2]|0;if(p)p=n;else{p=n+4|0;k[p>>2]=k[p>>2]|256;p=n}}while(0);n=k[e>>2]|0;k[e>>2]=p;k[d>>2]=n;h=i[g>>0]|0;if((h&255)>79){h=((h&255)+176^2)+80&255;i[g>>0]=h}g=k[n+4>>2]|0;if(g&4096)do{if(!(g&262144))n=n+12|0;else n=k[(k[n+20>>2]|0)+4>>2]|0;n=k[n>>2]|0;g=k[n+4>>2]|0}while((g&4096|0)!=0);k[f+8>>2]=k[n+28>>2];k[f+12>>2]=j[n+32>>1];g=f+32|0;k[g>>2]=O|x;k[g+4>>2]=P|w;g=f+40|0;k[g>>2]=q;k[g+4>>2]=v;g=h&255;if((g|0)==76)g=128;else if((g|0)==75)g=1;else g=2<<g+-79&65535;j[f+18>>1]=g+s&(t&65535)}}else G=59;do if((G|0)==59){if(e<<24>>24==74){if((i[a+8>>0]|0)!=72)break;h=(k[R+20>>2]|0)+4|0;d=R+36|0;e=0;while(1){q=l[34144+e>>0]|0;g=Rr(S,g,0,0)|0;g=cr(Q,q,g,Rr(S,k[(k[h>>2]|0)+(e*20|0)>>2]|0,0,0)|0,0)|0;if(g){q=g+4|0;k[q>>2]=k[q>>2]|k[N>>2]&1;j[g+36>>1]=j[d>>1]|0}q=Ev(a,g,3)|0;Ju(a,q);f=k[T>>2]|0;k[f+(q*48|0)+4>>2]=b;j[f+(q*48|0)+16>>1]=j[f+(b*48|0)+16>>1]|0;q=f+(b*48|0)+22|0;i[q>>0]=(i[q>>0]|0)+1<<24>>24;e=e+1|0;if((e|0)==2)break;g=k[s>>2]|0}c=f+(b*48|0)|0;break}else if(e<<24>>24!=71)break;x=rh(S,416,0)|0;d:do if(x){kw(x|0,0,416)|0;k[f+(b*48|0)+12>>2]=x;A=f+(b*48|0)+20|0;j[A>>1]=m[A>>1]|16;k[x>>2]=C;k[x+4>>2]=0;A=x+12|0;k[A>>2]=0;k[x+16>>2]=8;B=x+20|0;k[B>>2]=x+24;Iu(x,R,71);h=k[A>>2]|0;if((h|0)>0)do{h=h+-1|0;Ju(x,h)}while((h|0)>0);if(!(i[K>>0]|0)){p=k[A>>2]|0;if((p|0)>0){w=C+68|0;v=-1;u=-1;d=-1;c=-1;t=k[B>>2]|0;while(1){p=p+-1|0;o=t+18|0;s=j[o>>1]|0;if(!(s&255)){g=rh(S,408,0)|0;if(!g){h=v;n=u;d=0;c=0}else{k[t+12>>2]=g;n=t+20|0;j[n>>1]=m[n>>1]|32;j[o>>1]=512;k[g>>2]=k[a>>2];n=g+4|0;k[n>>2]=0;h=g+12|0;k[h>>2]=0;k[g+16>>2]=8;q=g+20|0;k[q>>2]=g+24;Iu(g,k[t>>2]|0,72);o=k[h>>2]|0;if((o|0)>0)do{o=o+-1|0;Ju(g,o)}while((o|0)>0);k[n>>2]=a;if((i[K>>0]|0)==0?(y=k[h>>2]|0,(y|0)>0):0){o=0;n=0;c=0;r=k[q>>2]|0;while(1){h=(l[k[r>>2]>>0]|0)+-75|0;do if(h>>>0<9){if(!(499>>>(h&511)&1))break;g=k[r+8>>2]|0;e=k[w>>2]|0;e:do if((e|0)>0){h=0;while(1){if((k[C+(h<<2)+72>>2]|0)==(g|0))break;h=h+1|0;if((h|0)>=(e|0)){h=0;g=0;break e}}h=nw(1,0,h|0)|0;g=L}else{h=0;g=0}while(0);o=h|o;n=g|n}while(0);c=c+1|0;if((c|0)>=(y|0))break;else r=r+48|0}}else{o=0;n=0}h=o&v;n=n&u;d=0;c=0}}else{n=j[t+20>>1]|0;if(!(n&8)){q=k[t+8>>2]|0;g=k[w>>2]|0;h=(g|0)>0;f:do if(h){o=0;while(1){if((k[C+(o<<2)+72>>2]|0)==(q|0))break;o=o+1|0;if((o|0)>=(g|0)){e=0;r=0;break f}}e=nw(1,0,o|0)|0;r=L}else{e=0;r=0}while(0);if(!(n&2)){o=e;q=r}else{q=k[(k[B>>2]|0)+((k[t+4>>2]|0)*48|0)+8>>2]|0;g:do if(h){o=0;while(1){if((k[C+(o<<2)+72>>2]|0)==(q|0))break;o=o+1|0;if((o|0)>=(g|0)){o=0;q=0;break g}}o=nw(1,0,o|0)|0;q=L}else{o=0;q=0}while(0);o=o|e;q=q|r}g=(s&2)==0;h=o&v;n=q&u;d=g?0:o&d;c=g?0:q&c}else{h=v;n=u}}o=(h|0)!=0|(n|0)!=0;if(!((p|0)>0&o))break;else{v=h;u=n;t=t+48|0}}q=x+408|0;k[q>>2]=h;k[q+4>>2]=n;j[z>>1]=(h|0)==0&(n|0)==0?0:256;if(o)G=104}else{d=x+408|0;k[d>>2]=-1;k[d+4>>2]=-1;j[z>>1]=256;d=-1;c=-1;G=104}h:do if((G|0)==104)if((k[A>>2]|0)==2){g=k[B>>2]|0;h=0;i:while(1){e=h+1|0;if((j[g+18>>1]|0)!=512)if(!h)o=g;else break h;else{n=k[g+12>>2]|0;if((k[n+12>>2]|0)<=(h|0))break h;o=(k[n+20>>2]|0)+(h*48|0)|0}if(!o)break h;else p=0;while(1){if((j[g+66>>1]|0)==512){n=k[g+60>>2]|0;if((k[n+12>>2]|0)<=(p|0)){h=e;continue i}n=(k[n+20>>2]|0)+(p*48|0)|0;if(!n){h=e;continue i}}else if(!p)n=g+48|0;else{h=e;continue i}Hv(a,o,n);g=k[B>>2]|0;p=p+1|0}}}while(0);if(!((d|0)==0&(c|0)==0)){r=C+68|0;q=-1;s=0;while(1){n=k[A>>2]|0;if((n|0)<=0)break d;p=k[B>>2]|0;while(1){e=n;n=n+-1|0;g=p+20|0;j[g>>1]=m[g>>1]&65471;g=k[p+8>>2]|0;if((g|0)!=(q|0)){h=k[r>>2]|0;j:do if((h|0)>0){o=0;while(1){if((k[C+(o<<2)+72>>2]|0)==(g|0))break;o=o+1|0;if((o|0)>=(h|0)){o=0;h=0;break j}}o=nw(1,0,o|0)|0;h=L}else{o=0;h=0}while(0);if(!((o&d|0)==0&(h&c|0)==0)){o=e;break}}if((n|0)<=0)break d;else p=p+48|0}h=k[p+12>>2]|0;if((o|0)<1)break d;else o=g;while(1){if((o|0)==(g|0)){if((k[p+12>>2]|0)!=(h|0)){n=g;h=1;break}q=pv(k[(k[p>>2]|0)+16>>2]|0)|0;if(!(q<<24>>24==0|q<<24>>24==(pv(k[(k[p>>2]|0)+12>>2]|0)|0)<<24>>24)){n=g;h=1;break}q=p+20|0;j[q>>1]=m[q>>1]|64}else{q=p+20|0;j[q>>1]=m[q>>1]&65471}if((n|0)<=0){n=g;h=0;break}o=k[p+56>>2]|0;n=n+-1|0;p=p+48|0}s=s+1|0;if(!((s|0)<2&h))break;else q=n}if(!h){g=k[A>>2]|0;if((g|0)>0){h=0;d=0;e=k[B>>2]|0;while(1){g=g+-1|0;if(j[e+20>>1]&64){h=Rr(S,k[(k[e>>2]|0)+16>>2]|0,0,0)|0;d=qr(k[C>>2]|0,d,h)|0;h=k[(k[e>>2]|0)+12>>2]|0}if((g|0)<=0){g=h;break}else e=e+48|0}}else{g=0;d=0}e=cr(Q,75,Rr(S,g,0,0)|0,0,0)|0;if(!e)Sk(S,d);else{q=e+4|0;k[q>>2]=k[q>>2]|k[N>>2]&1;j[e+36>>1]=j[R+36>>1]|0;k[e+20>>2]=d;q=Ev(a,e,3)|0;Ju(a,q);f=k[T>>2]|0;k[f+(q*48|0)+4>>2]=b;j[f+(q*48|0)+16>>1]=j[f+(b*48|0)+16>>1]|0;q=f+(b*48|0)+22|0;i[q>>0]=(i[q>>0]|0)+1<<24>>24}j[f+(b*48|0)+18>>1]=2048}}}}else k[f+(b*48|0)+12>>2]=0;while(0);c=(k[T>>2]|0)+(b*48|0)|0}while(0);k:do if((i[a+8>>0]|0)==72){u=k[Q>>2]|0;if((i[R>>0]|0)==-103){t=R+20|0;q=k[t>>2]|0;if((q|0)!=0?(k[q>>2]|0)==2:0){h=k[R+8>>2]|0;if(!h)g=0;else{g=h;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=g-h&1073741823}g=Xh(u,h,g,2,1,0)|0;if(((((g|0)!=0?(D=j[g+2>>1]|0,(D&4)!=0):0)?(J=k[g+4>>2]|0,H=i[J>>0]|0,I=i[J+1>>0]|0,J=i[J+2>>0]|0,M=(D&65535)>>>3&1,E=(k[t>>2]|0)+4|0,F=k[(k[E>>2]|0)+20>>2]|0,(i[F>>0]|0)==-102):0)?(pv(F)|0)<<24>>24==66:0)?(i[(k[F+44>>2]|0)+44>>0]&16)==0:0){f=k[k[E>>2]>>2]|0;l:do if(!f)f=0;else while(1){e=k[f+4>>2]|0;if(!(e&4096))break l;if(!(e&262144))f=f+12|0;else f=k[(k[f+20>>2]|0)+4>>2]|0;f=k[f>>2]|0;if(!f){f=0;break}}while(0);e=i[f>>0]|0;r=e<<24>>24==-121;do if(r){g=k[Q+476>>2]|0;o=j[f+32>>1]|0;p=o<<16>>16;do if(!g){d=0;h=0}else{G=p+-1|0;F=k[g+60>>2]|0;d=F+(G*40|0)|0;if(j[F+(G*40|0)+8>>1]&1){d=0;h=0;break}h=k[g>>2]|0;n=rh(h,40,0)|0;if(!n){d=0;h=0;break}g=n+0|0;e=g+40|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(e|0));G=n+8|0;j[G>>1]=1;k[n+32>>2]=h;dh(n,d)|0;if((j[G>>1]&15)!=2){d=n;h=0;break}d=n;h=Xg(n,1)|0}while(0);g=k[Q+8>>2]|0;if(o<<16>>16>32){k[g+188>>2]=-1;q=h;G=177;break}else{q=g+188|0;k[q>>2]=k[q>>2]|1<<p+-1;q=h;G=177;break}}else if(e<<24>>24==97){d=0;q=k[f+8>>2]|0;G=177}else d=0;while(0);do if((G|0)==177)if(q){h=0;while(1){G=i[q+h>>0]|0;e=G<<24>>24==H<<24>>24;g=h+1|0;if(G<<24>>24!=J<<24>>24&((G<<24>>24==0|e|G<<24>>24==I<<24>>24)^1))h=g;else break}if(h){if((i[q+(h+-1)>>0]|0)==-1)break;if(e)g=(i[q+g>>0]|0)==0;else g=0;n=g&1;s=yt(u,97,q)|0;if(s)i[(k[s+8>>2]|0)+h>>0]=0;do if(r){h=k[Q+8>>2]|0;e=j[f+32>>1]|0;if(e<<16>>16>32)k[h+188>>2]=-1;else{J=h+188|0;k[J>>2]=k[J>>2]|1<<(e<<16>>16)+-1}if(!g){n=0;break}if(!(i[(k[f+8>>2]|0)+1>>0]|0))break;e=Q+19|0;g=i[e>>0]|0;if(!(g<<24>>24)){J=Q+72|0;e=(k[J>>2]|0)+1|0;k[J>>2]=e}else{J=g+-1<<24>>24;i[e>>0]=J;e=k[Q+((J&255)<<2)+24>>2]|0}ns(Q,f,e)|0;f=k[h+32>>2]|0;if(f>>>0>0)k[(k[h+4>>2]|0)+((f+-1|0)*20|0)+12>>2]=0;ds(Q,e)}while(0);Rh(d);if(!q){G=217;break k}o=k[(k[(k[t>>2]|0)+4>>2]|0)+20>>2]|0;h=Rr(S,s,0,0)|0;p=M<<16>>16!=0;do if(!p){if(i[(k[Q>>2]|0)+65>>0]|0)break;d=c+20|0;j[d>>1]=m[d>>1]|1024;d=s+8|0;g=k[d>>2]|0;f=i[g>>0]|0;if(!(f<<24>>24))break;c=h+8|0;e=0;do{J=f&255;i[g>>0]=((l[10368+J>>0]|223)^32)&J;i[(k[c>>2]|0)+e>>0]=i[9328+J>>0]|0;e=e+1|0;g=(k[d>>2]|0)+e|0;f=i[g>>0]|0}while(f<<24>>24!=0)}while(0);if(!(i[K>>0]|0)){f=k[h+8>>2]|0;if(!f)e=-1;else{e=f;while(1)if(!(i[e>>0]|0))break;else e=e+1|0;e=(e-f&1073741823)+-1|0}f=f+e|0;e=i[f>>0]|0;if(p)d=n;else{d=e<<24>>24==64?0:n;e=i[9328+(e&255)>>0]|0}i[f>>0]=(e&255)+1;g=d}else g=n;d=M<<16>>16==0?13752:11152;e=cr(Q,83,Cv(Q,Rr(S,o,0,0)|0,d)|0,s,0)|0;if(e){M=e+4|0;k[M>>2]=k[M>>2]|k[N>>2]&1;j[e+36>>1]=j[R+36>>1]|0}f=Ev(a,e,259)|0;Ju(a,f);d=cr(Q,82,Cv(Q,Rr(S,o,0,0)|0,d)|0,h,0)|0;if(d){M=d+4|0;k[M>>2]=k[M>>2]|k[N>>2]&1;j[d+36>>1]=j[R+36>>1]|0}d=Ev(a,d,259)|0;Ju(a,d);e=k[T>>2]|0;c=e+(b*48|0)|0;if(!g){G=217;break k}k[e+(f*48|0)+4>>2]=b;N=e+(b*48|0)+16|0;j[e+(f*48|0)+16>>1]=j[N>>1]|0;G=e+(b*48|0)+22|0;i[G>>0]=(i[G>>0]|0)+1<<24>>24;k[e+(d*48|0)+4>>2]=b;j[e+(d*48|0)+16>>1]=j[N>>1]|0;i[G>>0]=(i[G>>0]|0)+1<<24>>24;G=217;break k}}while(0);Rh(d);G=217}else G=217}else G=217}}else G=217;while(0);if((G|0)==217)if(((((i[R>>0]|0)==-103?(id(k[R+8>>2]|0,31416)|0)==0:0)?(U=k[R+20>>2]|0,(k[U>>2]|0)==2):0)?(V=k[U+4>>2]|0,W=k[V+20>>2]|0,(i[W>>0]|0)==-102):0)?(X=k[V>>2]|0,Y=Fv(_,X)|0,Z=L,_=Fv(_,W)|0,(_&Y|0)==0&(L&Z|0)==0):0){_=Ev(a,cr(Q,51,0,Rr(S,X,0,0)|0,0)|0,3)|0;c=k[T>>2]|0;X=c+(_*48|0)+32|0;k[X>>2]=Y;k[X+4>>2]=Z;k[c+(_*48|0)+8>>2]=k[W+28>>2];k[c+(_*48|0)+12>>2]=j[W+32>>1];j[c+(_*48|0)+18>>1]=64;k[c+(_*48|0)+4>>2]=b;j[c+(_*48|0)+16>>1]=j[c+(b*48|0)+16>>1]|0;Y=c+(b*48|0)+22|0;i[Y>>0]=(i[Y>>0]|0)+1<<24>>24;Y=c+(b*48|0)+20|0;j[Y>>1]=m[Y>>1]|8;Y=c+(b*48|0)+40|0;Z=k[Y+4>>2]|0;_=c+(_*48|0)+40|0;k[_>>2]=k[Y>>2];k[_+4>>2]=Z;c=c+(b*48|0)|0}b=c+32|0;Z=b;_=k[Z+4>>2]|P;k[b>>2]=k[Z>>2]|O;k[b+4>>2]=_}while(0);return}function Ku(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0;i=r;r=r+112|0;if((r|0)>=(s|0))ka();h=i;f=Iv(h,a,b,c,f,g)|0;a:do if(!f)f=0;else{g=f;f=0;do{b=g+32|0;c=k[b>>2]|0;b=k[b+4>>2]|0;if((c&d|0)==0&(b&e|0)==0){if((c|0)==0&(b|0)==0?(j[g+18>>1]&2)!=0:0){f=g;break a}f=(f|0)==0?g:f}g=Jv(h)|0}while((g|0)!=0)}while(0);r=i;return f|0}function Lu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,q=0,u=0,v=0,w=0.0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ha=0,ja=0,la=0,ma=0;la=r;r=r+16|0;if((r|0)>=(s|0))ka();fa=la;v=k[a>>2]|0;da=k[v>>2]|0;ha=k[da>>2]|0;ca=k[a+4>>2]|0;ea=k[a+12>>2]|0;u=l[ea+16>>0]|0;v=k[v+4>>2]|0;aa=k[v+(u*72|0)+24>>2]|0;x=k[a+8>>2]|0;ba=ca+20|0;ca=ca+12|0;d=k[ca>>2]|0;if((d|0)>0){f=k[v+(u*72|0)+48>>2]|0;g=0;e=0;h=k[ba>>2]|0;while(1){if((k[h+8>>2]|0)==(f|0))e=((j[h+18>>1]&-1153)<<16>>16!=0&1)+e|0;g=g+1|0;if((g|0)==(d|0))break;else h=h+48|0}}else e=0;if(!x)q=0;else{n=k[x>>2]|0;a:do if((n|0)>0){h=k[x+4>>2]|0;g=v+(u*72|0)+48|0;m=0;while(1){f=k[h+(m*20|0)>>2]|0;if((i[f>>0]|0)!=-102){d=m;break a}d=m+1|0;if((k[f+28>>2]|0)!=(k[g>>2]|0)){d=m;break a}if((d|0)<(n|0))m=d;else break}}else d=0;while(0);q=(d|0)==(n|0)?n:0}d=(e*20|0)+56+(q<<3)|0;$=rh(ha,d,0)|0;do if(!$){yh(da,15776,fa);d=7}else{kw($|0,0,d|0)|0;d=$+56|0;o=d+(e*12|0)|0;k[$>>2]=e;Y=$+8|0;k[Y>>2]=q;Z=$+4|0;k[Z>>2]=d;k[$+12>>2]=o;_=$+16|0;k[_>>2]=o+(q<<3);f=k[ca>>2]|0;if((f|0)>0){m=k[v+(u*72|0)+48>>2]|0;h=0;n=0;g=k[ba>>2]|0;while(1){if((k[g+8>>2]|0)==(m|0)?(y=j[g+18>>1]|0,(y&-1153)<<16>>16!=0):0){k[d+(n*12|0)>>2]=k[g+12>>2];k[d+(n*12|0)+8>>2]=h;i[d+(n*12|0)+4>>0]=(y&255)==1?2:y&255;n=n+1|0}h=h+1|0;if((h|0)==(f|0))break;else g=g+48|0}}if((q|0)>0){d=k[x+4>>2]|0;e=0;do{k[o+(e<<3)>>2]=j[(k[d+(e*20|0)>>2]|0)+32>>1];i[o+(e<<3)+4>>0]=i[d+(e*20|0)+12>>0]|0;e=e+1|0}while((e|0)!=(q|0))}A=ea;k[A>>2]=0;k[A+4>>2]=0;A=ea+18|0;j[A>>1]=0;k[ea+36>>2]=1024;B=ea+40|0;j[B>>1]=0;C=ea+28|0;i[C>>0]=0;D=k[_>>2]|0;E=k[$>>2]|0;if(Su(ha,ea,E)|0){rg(ha,$);d=7;break}U=$+28|0;X=$+24|0;F=$+20|0;G=$+32|0;H=$+40|0;I=$+48|0;J=aa+60|0;K=da+64|0;M=(E|0)>0;N=ea+30|0;O=ea+24|0;P=ea+32|0;Q=ea+29|0;R=ea+20|0;S=ea+22|0;T=ea+48|0;v=0;y=0;x=0;b:while(1){if(!((y|0)!=0|(v&1|0)==0))if((v|0)>2){d=0;break}else z=v+1|0;else z=v;if((x|0)==0&(z|0)>1){d=0;break}h=k[$>>2]|0;if((h|0)>0){e=k[ba>>2]|0;f=0;g=k[Z>>2]|0;while(1){v=k[g+8>>2]|0;if((z|0)==2)i[g+5>>0]=j[e+(v*48|0)+18>>1]&1^1;else if((z|0)==1){u=e+(v*48|0)+32|0;i[g+5>>0]=(k[u>>2]|0)==0&(k[u+4>>2]|0)==0&1}else if(!z){d=g+5|0;i[d>>0]=0;u=(j[e+(v*48|0)+18>>1]&1)==0;y=u?y:1;v=e+(v*48|0)+32|0;v=(k[v>>2]|0)!=0|(k[v+4>>2]|0)!=0;if(v|u^1)x=v?1:x;else i[d>>0]=1}else i[g+5>>0]=1;f=f+1|0;if((f|0)>=(h|0)){u=y;break}else g=g+12|0}}else u=y;kw(D|0,0,h<<3|0)|0;if(k[U>>2]|0)$c(k[X>>2]|0);k[F+0>>2]=0;k[F+4>>2]=0;k[F+8>>2]=0;k[F+12>>2]=0;p[H>>3]=5.e+98;d=I;k[d>>2]=25;k[d+4>>2]=0;d=k[da>>2]|0;v=J;while(1){v=k[v>>2]|0;if((k[v>>2]|0)==(d|0))break;else v=v+24|0}y=k[v+8>>2]|0;v=wc[k[(k[y>>2]|0)+12>>2]&127](y,$)|0;do if((v|0)==7)i[(k[da>>2]|0)+65>>0]=1;else if(v){d=k[y+8>>2]|0;if(d){k[fa>>2]=d;yh(da,10344,fa);break}if((v|0)!=516){v=v&255;if(v>>>0>26|(v|0)==2)v=16328;else v=k[15488+(v<<2)>>2]|0}else v=16344;k[fa>>2]=v;yh(da,10344,fa)}while(0);v=y+8|0;$c(k[v>>2]|0);k[v>>2]=0;v=k[$>>2]|0;if((v|0)>0){d=0;do{if((i[(k[Z>>2]|0)+(d*12|0)+5>>0]|0)==0?(k[(k[_>>2]|0)+(d<<3)>>2]|0)>0:0){k[fa>>2]=k[aa>>2];yh(da,34096,fa);v=k[$>>2]|0}d=d+1|0}while((d|0)<(v|0))}d=k[K>>2]|0;if(d)break;y=k[Z>>2]|0;q=ea;k[q>>2]=b;k[q+4>>2]=c;c:do if(M){v=0;do{k[(k[T>>2]|0)+(v<<2)>>2]=0;v=v+1|0}while((v|0)!=(E|0));j[N>>1]=0;if(M){f=b;e=c;d=0;q=0;v=-1;while(1){h=k[D+(q<<3)>>2]|0;m=h+-1|0;do if((h|0)>0){n=k[y+8>>2]|0;if((h|0)>(E|0)|(n|0)<0){ja=65;break b}if((n|0)>=(k[ca>>2]|0)){ja=65;break b}g=(k[T>>2]|0)+(m<<2)|0;if(k[g>>2]|0){ja=65;break b}o=k[ba>>2]|0;ma=o+(n*48|0)+32|0;f=f|k[ma>>2];e=e|k[ma+4>>2];ma=ea;k[ma>>2]=f;k[ma+4>>2]=e;k[g>>2]=o+(n*48|0);v=(m|0)>(v|0)?m:v;do if((h|0)<17){if(!(i[D+(q<<3)+4>>0]|0))break;d=(d&65535|1<<m)&65535;j[N>>1]=d}while(0);if(!(j[o+(n*48|0)+18>>1]&1))break;if(!(i[D+(q<<3)+4>>0]|0))break c;k[G>>2]=0}while(0);q=q+1|0;if((q|0)>=(E|0)){ja=73;break}else y=y+12|0}}else{v=-1;ja=73}}else{j[N>>1]=0;v=-1;ja=73}while(0);if((ja|0)==73){ja=0;j[B>>1]=v+1;k[O>>2]=k[F>>2];i[C>>0]=k[U>>2];k[U>>2]=0;k[P>>2]=k[X>>2];if(!(k[G>>2]|0))v=0;else v=k[Y>>2]&255;i[Q>>0]=v;j[A>>1]=0;w=+p[H>>3];p[t>>3]=w;v=k[t>>2]|0;d=k[t+4>>2]|0;do if(!(w<=1.0))if(!(w<=2.0e9)){v=rw(v|0,d|0,52)|0;v=ow(v|0,L|0,64514,0)|0;v=(v<<16>>16)*10&65535;break}else{v=ks(~~w>>>0,+W(w)>=1.0?(w>0.0?~~+ia(+V(w/4294967296.0),4294967295.0)>>>0:~~+ga((w-+(~~w>>>0))/4294967296.0)>>>0):0)|0;break}else v=0;while(0);j[R>>1]=v;q=I;q=ks(k[q>>2]|0,k[q+4>>2]|0)|0;j[S>>1]=q;Kv(a,ea)|0;if(i[C>>0]|0){$c(k[P>>2]|0);i[C>>0]=0}}v=z+1|0;if((v|0)>=4){d=0;break}else y=u}if((ja|0)==65){k[fa>>2]=k[aa>>2];yh(da,34064,fa);d=1}if(k[U>>2]|0)$c(k[X>>2]|0);rg(ha,$)}while(0);r=la;return d|0}function Mu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0;ca=r;r=r+64|0;if((r|0)>=(s|0))ka();n=ca;h=ca+56|0;g=ca+52|0;j[g>>1]=-1;$=k[a+12>>2]|0;aa=k[a>>2]|0;F=k[aa+4>>2]|0;G=l[$+16>>0]|0;W=F+(G*72|0)+8|0;f=F+(G*72|0)+24|0;H=k[f>>2]|0;X=k[a+4>>2]|0;Y=F+(G*72|0)+76|0;d=k[Y>>2]|0;do if(!d){if(i[H+44>>0]&32){n=k[H+8>>2]|0;break}d=n+0|0;e=d+52|0;do{k[d>>2]=0;d=d+4|0}while((d|0)<(e|0));j[n+46>>1]=1;j[n+48>>1]=1;k[n+4>>2]=g;k[n+8>>2]=h;i[n+50>>0]=5;k[n+12>>2]=H;j[n+44>>1]=j[H+42>>1]|0;j[h>>1]=j[H+28>>1]|0;j[h+2>>1]=0;if(!(i[F+(G*72|0)+45>>0]&1))k[n+20>>2]=k[(k[f>>2]|0)+8>>2]}else n=d;while(0);h=j[H+28>>1]|0;if(h<<16>>16<11)B=0;else{B=h<<16>>16;B=((ks(B,((B|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((k[a+16>>2]|0)==0?(j[aa+34>>1]&128)==0:0)?(k[(k[k[aa>>2]>>2]|0)+24>>2]&1048576|0)!=0:0)?(k[Y>>2]|0)==0:0)?(o=i[F+(G*72|0)+45>>0]|0,(o&5)==0):0)?(E=H+44|0,(o&10|i[E>>0]&32)<<24>>24==0):0)?(C=k[X+20>>2]|0,V=k[X+12>>2]|0,D=C+(V*48|0)|0,(V|0)>0):0){v=$+8|0;w=$+24|0;x=$+42|0;y=$+28|0;z=$+40|0;A=$+48|0;p=(B&65535)+(h&65535)|0;g=p+4&65535;f=$+18|0;e=H+12|0;p=p+28&65535;q=$+22|0;t=$+20|0;u=$+36|0;h=C;do{o=h+32|0;V=o;U=v;if(((k[U>>2]&k[V>>2]|0)==0?(k[U+4>>2]&k[V+4>>2]|0)==0:0)?(Ru(h,W,0,0)|0)!=0:0){j[w>>1]=1;j[x>>1]=0;k[y>>2]=0;j[z>>1]=1;k[k[A>>2]>>2]=h;j[f>>1]=g;if((k[e>>2]|0)==0?(i[E>>0]&2)==0:0)j[f>>1]=p;j[q>>1]=43;U=Lv(B,43)|0;j[t>>1]=U;k[u>>2]=16384;U=o;V=k[U+4>>2]|c;d=$;k[d>>2]=k[U>>2]|b;k[d+4>>2]=V;d=Kv(a,$)|0}else d=0;h=h+48|0}while((d|0)==0&h>>>0<D>>>0)}else d=0;V=$+36|0;a:do if((d|0)==0&(n|0)!=0){M=$+24|0;N=$+42|0;O=$+40|0;P=$+17|0;Q=$+18|0;R=$+22|0;S=$+28|0;T=F+(G*72|0)+48|0;U=$+20|0;J=F+(G*72|0)+64|0;K=H+42|0;t=H+44|0;q=aa+34|0;p=X+12|0;F=X+20|0;I=1;while(1){u=k[n+36>>2]|0;v=k[T>>2]|0;b:do if(u){d=k[p>>2]|0;if((d|0)>0){f=0;g=k[F>>2]|0;while(1){e=k[g>>2]|0;if(Mv(e,u,v)|0){if(!(k[e+4>>2]&1)){ba=32;break b}if((j[e+36>>1]|0)==(v|0)){ba=32;break b}}f=f+1|0;if((f|0)>=(d|0)){d=0;break}else g=g+48|0}}else d=0}else ba=32;while(0);if((ba|0)==32){ba=0;G=j[k[n+8>>2]>>1]|0;j[M>>1]=0;j[N>>1]=0;j[O>>1]=0;i[P>>0]=0;j[Q>>1]=0;H=$;k[H>>2]=b;k[H+4>>2]=c;j[R>>1]=G;k[S>>2]=n;H=n+51|0;w=i[H>>0]|0;c:do if(((w&4)==0?(Z=k[(k[a>>2]|0)+8>>2]|0,(Z|0)!=0):0)?(_=k[Z>>2]|0,(_|0)>0):0){E=k[Z+4>>2]|0;D=n+46|0;y=n+4|0;x=0;while(1){B=k[E+(x*20|0)>>2]|0;d:do if(!B)B=0;else while(1){A=k[B+4>>2]|0;if(!(A&4096))break d;if(!(A&262144))B=B+12|0;else B=k[(k[B+20>>2]|0)+4>>2]|0;B=k[B>>2]|0;if(!B){B=0;break}}while(0);if((i[B>>0]|0)!=-102){x=0;break c}if((k[B+28>>2]|0)==(v|0)){A=j[B+32>>1]|0;if(A<<16>>16<0){x=1;break c}B=j[D>>1]|0;if(B<<16>>16){z=k[y>>2]|0;B=B&65535;C=0;do{if(A<<16>>16==(j[z+(C<<1)>>1]|0)){x=1;break c}C=C+1|0}while((C|0)<(B|0))}}x=x+1|0;if((x|0)>=(_|0)){x=0;break}}}else x=0;while(0);do if((k[n+40>>2]|0)<1){k[V>>2]=256;i[P>>0]=(x|0)!=0?I&255:0;j[U>>1]=(G&65535)+16;Nv(X,$,G);d=Kv(a,$)|0;j[R>>1]=G;if(d)break a}else{if(!(w&32)){D=J;E=k[D>>2]|0;D=k[D+4>>2]|0;C=n+4|0;B=0;A=0;z=m[n+48>>1]|0;e:while(1){y=z;while(1){z=y+-1|0;if((y|0)<=0)break e;y=j[(k[C>>2]|0)+(z<<1)>>1]|0;if((y&65535)<63)break;else y=z}o=nw(1,0,y<<16>>16|0)|0;B=o|B;A=L|A}o=E&~B;u=D&~A;B=o;A=u;u=(o|0)==0&(u|0)==0?576:512}else{B=0;A=0;u=576}k[V>>2]=u;o=(x|0)!=0;if(!o?(i[t>>0]&32)==0:0){if(!((B|0)==0&(A|0)==0))break;if(i[H>>0]&4)break;if((j[n+44>>1]|0)>=(j[K>>1]|0))break;if(!((j[q>>1]&4)==0&(k[2190]|0)!=0))break;if(j[(k[k[aa>>2]>>2]|0)+60>>1]&64)break}i[P>>0]=o?I&255:0;h=G<<16>>16;o=h+1+(((j[n+44>>1]|0)*15|0)/(j[K>>1]|0)|0)&65535;if(!((B|0)==0&(A|0)==0))o=Lv(o,h+16&65535)|0;j[U>>1]=o;Nv(X,$,G);d=Kv(a,$)|0;j[R>>1]=G;if(d)break a}while(0);d=Ov(a,W,n,0)|0;if(k[Y>>2]|0)break a}n=k[n+20>>2]|0;if(!((d|0)==0&(n|0)!=0))break;else I=I+1|0}}while(0);r=ca;return d|0}function Nu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,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;$=r;r=r+608|0;if((r|0)>=(s|0))ka();Z=$+168|0;X=$+576|0;Y=$+112|0;V=$+56|0;W=$;d=k[a>>2]|0;S=k[a+4>>2]|0;h=k[S+20>>2]|0;g=k[S+12>>2]|0;U=h+(g*48|0)|0;R=k[a+12>>2]|0;e=Y+0|0;f=e+56|0;do{k[e>>2]=0;e=e+4|0}while((e|0)<(f|0));f=k[d+4>>2]|0;e=l[R+16>>0]|0;Q=k[f+(e*72|0)+48>>2]|0;a:do if((g|0)>0){A=R+8|0;B=X+8|0;C=X+16|0;D=R+40|0;E=R+48|0;F=R+36|0;G=R+18|0;H=R+17|0;I=R+24|0;J=R+20|0;K=R+22|0;L=Z+4|0;M=Z+8|0;N=Z+12|0;O=Z+20|0;P=X+4|0;w=f+(e*72|0)+24|0;x=W+8|0;y=Y+8|0;z=V+8|0;while(1){b:do if((j[h+18>>1]&256)!=0?(T=k[h+12>>2]|0,t=T+408|0,q=A,!((k[q>>2]&k[t>>2]|0)==0?(k[q+4>>2]&k[t+4>>2]|0)==0:0)):0){g=T+20|0;v=(k[g>>2]|0)+((k[T+12>>2]|0)*48|0)|0;k[X+0>>2]=k[a+0>>2];k[X+4>>2]=k[a+4>>2];k[X+8>>2]=k[a+8>>2];k[X+12>>2]=k[a+12>>2];k[B>>2]=0;k[C>>2]=V;g=k[g>>2]|0;c:do if(g>>>0<v>>>0){e=1;d=0;d:while(1){if(!(j[g+18>>1]&512))if((k[g+8>>2]|0)==(Q|0)){k[Z>>2]=k[S>>2];k[L>>2]=S;i[M>>0]=72;k[N>>2]=1;k[O>>2]=g;f=Z;_=10}else f=e;else{f=k[g+12>>2]|0;_=10}do if((_|0)==10){_=0;k[P>>2]=f;j[V>>1]=0;if(!(i[(k[w>>2]|0)+44>>0]&16))d=Mu(X,b,c)|0;else d=Lu(X,b,c)|0;if(!d)d=Nu(X,b,c)|0;f=j[V>>1]|0;if(!(f<<16>>16))break d;if(e){j[Y>>1]=f;pw(y|0,z|0,(f&65535)<<4|0)|0;f=0;break}t=j[Y>>1]|0;j[W>>1]=t;u=t&65535;pw(x|0,y|0,u<<4|0)|0;j[Y>>1]=0;if(!(t<<16>>16))f=0;else{t=0;do{if(!(f<<16>>16))f=0;else{n=W+(t<<4)+8|0;e=k[n>>2]|0;n=k[n+4>>2]|0;o=j[W+(t<<4)+16>>1]|0;p=j[W+(t<<4)+18>>1]|0;q=0;do{aa=V+(q<<4)+8|0;ba=k[aa>>2]|e;aa=k[aa+4>>2]|n;f=Lv(o,j[V+(q<<4)+16>>1]|0)|0;Pv(Y,ba,aa,f,Lv(p,j[V+(q<<4)+18>>1]|0)|0);q=q+1|0;f=j[V>>1]|0}while((q|0)<(f&65535|0))}t=t+1|0}while((t|0)<(u|0));f=0}}while(0);g=g+48|0;if(g>>>0>=v>>>0)break c;else e=f}j[Y>>1]=0}else d=0;while(0);j[D>>1]=1;k[k[E>>2]>>2]=h;k[F>>2]=8192;j[G>>1]=0;i[H>>0]=0;k[I+0>>2]=0;k[I+4>>2]=0;k[I+8>>2]=0;if(d)break a;g=m[Y>>1]|0;f=0;while(1){if((f|0)>=(g|0))break b;j[J>>1]=(m[Y+(f<<4)+16>>1]|0)+1;j[K>>1]=j[Y+(f<<4)+18>>1]|0;q=Y+(f<<4)+8|0;t=k[q+4>>2]|0;d=R;k[d>>2]=k[q>>2];k[d+4>>2]=t;d=Kv(a,R)|0;if(!d)f=f+1|0;else break a}}while(0);h=h+48|0;if(h>>>0>=U>>>0){d=0;break}}}else d=0;while(0);r=$;return d|0}function Ou(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=b+48|0;d=k[c>>2]|0;e=b+56|0;if((d|0)!=(e|0))rg(a,d);Qv(a,b);k[c>>2]=e;j[b+40>>1]=0;j[b+44>>1]=3;k[b+36>>2]=0;return}function Pu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,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,ia=0,ja=0,la=0;la=r;r=r+32|0;if((r|0)>=(s|0))ka();aa=la+24|0;Z=la+16|0;da=la+8|0;ja=la;$=k[a>>2]|0;fa=k[$>>2]|0;l=i[a+41>>0]|0;ga=l&255;if((l&255)<2)V=1;else V=l<<24>>24==2?5:10;ia=a+8|0;f=k[ia>>2]|0;ba=b<<16>>16==0;if((f|0)==0|ba)U=0;else U=k[f>>2]|0;g=U<<1;ea=g+(ha((ga<<3)+64|0,V)|0)|0;ea=rh(fa,ea,((ea|0)<0)<<31>>31)|0;do if(ea){f=ea+(V<<5)|0;k[f+0>>2]=0;k[f+4>>2]=0;k[f+8>>2]=0;k[f+12>>2]=0;k[f+16>>2]=0;k[f+20>>2]=0;k[f+24>>2]=0;k[f+28>>2]=0;c=V<<1;h=ha(V,-2)|0;h=ea+((ha((((h|0)>-1?h:1073741823)+(V<<1)<<2)+4|0,ga)|0)+(V<<6))|0;e=c;d=ea;c=ea+(c<<5)|0;while(1){k[d+24>>2]=c;e=e+-1|0;if((e|0)<=0)break;else{d=d+32|0;c=c+(ga<<2)|0}}e=(U|0)!=0;if(e)kw(h|0,0,g|0)|0;else h=0;T=k[$+424>>2]|0;j[ea+(V<<5)+16>>1]=T>>>0<48?T&65535:48;if(e)i[ea+(V<<5)+22>>0]=l<<24>>24!=0?-1:U&255;T=l<<24>>24==0;if(!T){P=a+16|0;Q=a+34|0;R=b<<16>>16<11;S=(b&65535)+16|0;M=b<<16>>16;N=((M|0)<0)<<31>>31;O=V>>>0>1;c=ea;L=0;g=0;l=0;b=0;d=1;while(1){if((d|0)>0){G=L&65535;H=L<<2;I=c+18|0;J=c+16|0;K=0;e=0;F=f;while(1){n=k[P>>2]|0;if(n){A=F+22|0;B=F+16|0;C=F+20|0;D=F+24|0;E=F+8|0;z=e;while(1){p=i[A>>0]|0;q=Z;k[q>>2]=0;k[q+4>>2]=0;q=n;e=F;o=k[e>>2]|0;e=k[e+4>>2]|0;a:do if(((k[q>>2]&~o|0)==0?(k[q+4>>2]&~e|0)==0:0)?(W=n+8|0,Y=W,X=k[Y>>2]|0,Y=k[Y+4>>2]|0,(X&o|0)==0&(Y&e|0)==0):0){v=m[B>>1]|0;x=Lv(j[n+18>>1]|0,v+(m[n+20>>1]|0)&65535)|0;x=Lv(x,j[C>>1]|0)|0;v=(m[n+22>>1]|0)+v|0;y=v&65535;u=X|o;q=Y|e;if(p<<24>>24<0)w=Rv(a,k[ia>>2]|0,F,j[Q>>1]|0,G,n,Z)|0;else{e=E;o=k[e+4>>2]|0;w=Z;k[w>>2]=k[e>>2];k[w+4>>2]=o;w=p}p=w<<24>>24;if(w<<24>>24>-1&(U|0)>(p|0)){t=h+(p<<1)|0;o=j[t>>1]|0;if(!(o<<16>>16)){p=((U-p|0)*100|0)/(U|0)|0;p=(ks(p,((p|0)<0)<<31>>31)|0)&65535;if(R)e=0;else e=((ks(M,N)|0)&65535)+65503&65535;p=S+(((p<<16)+-4325376|0)>>>16)+e|0;if(j[Q>>1]&1024)p=(p&65535)+16|0;o=p&65535;j[t>>1]=o}t=Lv(x,o)|0}else t=x;b:do if((z|0)>0){p=0;o=c;while(1){e=o;if(((k[e>>2]|0)==(u|0)?(k[e+4>>2]|0)==(q|0):0)?(i[o+22>>0]^w)<<24>>24>-1:0)break;p=p+1|0;if((p|0)>=(z|0)){_=35;break b}else o=o+32|0}e=j[o+18>>1]|0;if(e<<16>>16<t<<16>>16){e=z;break a}if(e<<16>>16!=t<<16>>16){e=z;break}if((j[o+16>>1]|0)>(v<<16>>16|0))e=z;else{e=z;break a}}else _=35;while(0);if((_|0)==35){_=0;o=(z|0)<(V|0);if(!o){if(t<<16>>16>g<<16>>16){e=z;break}if(!(t<<16>>16!=g<<16>>16?1:x<<16>>16<b<<16>>16)){e=z;break}}e=(o&1)+z|0;o=c+((o?z:l)<<5)|0}p=F;v=W;q=k[v+4>>2]|k[p+4>>2];u=o;k[u>>2]=k[v>>2]|k[p>>2];k[u+4>>2]=q;u=Z;q=k[u+4>>2]|0;p=o+8|0;k[p>>2]=k[u>>2];k[p+4>>2]=q;j[o+16>>1]=y;j[o+18>>1]=t;j[o+20>>1]=x;i[o+22>>0]=w;o=o+24|0;pw(k[o>>2]|0,k[D>>2]|0,H|0)|0;k[(k[o>>2]|0)+(L<<2)>>2]=n;if((e|0)<(V|0))break;g=j[I>>1]|0;b=j[J>>1]|0;if(O){q=c;t=1;p=g;l=0;o=b}else{l=0;break}while(1){g=j[q+50>>1]|0;do if(g<<16>>16<=p<<16>>16){if(g<<16>>16!=p<<16>>16){g=p;b=o;break}b=j[q+52>>1]|0;if(b<<16>>16>o<<16>>16)_=48;else{g=p;b=o}}else{b=j[q+52>>1]|0;_=48}while(0);q=q+32|0;if((_|0)==48){_=0;l=t}t=t+1|0;if((t|0)>=(V|0))break;else{p=g;o=b}}}else e=z;while(0);n=k[n+52>>2]|0;if(!n)break;else z=e}}K=K+1|0;if((K|0)==(d|0)){d=e;break}else F=F+32|0}}else d=0;L=L+1|0;if((L|0)>=(ga|0))break;else{K=c;c=f;f=K}}if(!d){yh($,34008,aa);rg(fa,ea);break}if((d|0)>1){e=1;f=c;do{if((j[f+18>>1]|0)>(j[c+(e<<5)+18>>1]|0))f=c+(e<<5)|0;e=e+1|0}while((e|0)!=(d|0))}else f=c;if(!T){d=a+4|0;e=k[f+24>>2]|0;c=0;do{_=k[e+(c<<2)>>2]|0;k[a+(c*80|0)+800>>2]=_;_=i[_+16>>0]|0;i[a+(c*80|0)+780>>0]=_;k[a+(c*80|0)+740>>2]=k[(k[d>>2]|0)+((_&255)*72|0)+48>>2];c=c+1|0}while((c|0)<(ga|0))}}d=a+34|0;if(((j[d>>1]&1536)==1024?(ca=a+40|0,!((i[ca>>0]|0)!=0|ba)):0)?(_=a+12|0,Z=ga+-1|0,Z=(Rv(a,k[_>>2]|0,f,512,Z&65535,k[(k[f+24>>2]|0)+(Z<<2)>>2]|0,da)|0)<<24>>24,(Z|0)==(k[k[_>>2]>>2]|0)):0)i[ca>>0]=2;e=k[ia>>2]|0;if(e){c=j[d>>1]|0;d=i[f+22>>0]|0;if(c&512){if((d<<24>>24|0)==(k[e>>2]|0))i[a+40>>0]=2}else{i[a+36>>0]=d<<24>>24<0?0:d;Y=f+8|0;Z=k[Y+4>>2]|0;_=a+24|0;k[_>>2]=k[Y>>2];k[_+4>>2]=Z}if(((c&2048)!=0?(i[a+36>>0]|0)==(k[e>>2]|0):0)?(_=ja,k[_>>2]=0,k[_+4>>2]=0,_=ga+-1|0,_=(Rv(a,e,f,0,_&65535,k[(k[f+24>>2]|0)+(_<<2)>>2]|0,ja)|0)<<24>>24,(_|0)==(k[k[ia>>2]>>2]|0)):0){i[a+37>>0]=1;Y=ja;Z=k[Y+4>>2]|0;_=a+24|0;k[_>>2]=k[Y>>2];k[_+4>>2]=Z}}j[a+32>>1]=j[f+16>>1]|0;rg(fa,ea)}while(0);r=la;return}function Qu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if((b|0)!=0?(f=k[b>>2]|0,(f|0)>0):0){d=k[b+4>>2]|0;c=0;b=0;e=0;do{g=Fv(a,k[d+(e*20|0)>>2]|0)|0;c=g|c;b=L|b;e=e+1|0}while((e|0)<(f|0))}else{b=0;c=0}L=b;return c|0}function Ru(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;do if((((k[a+8>>2]|0)==(k[b+40>>2]|0)?(j[a+18>>1]&2)!=0:0)?(f=a+32|0,(k[f>>2]&c|0)==0?(k[f+4>>2]&d|0)==0:0):0)?(e=k[a+12>>2]|0,(e|0)>=0):0){c=i[(k[(k[b+16>>2]|0)+4>>2]|0)+(e*24|0)+21>>0]|0;d=(sv(k[a>>2]|0)|0)<<24>>24;if((d|0)==66){d=c<<24>>24==66&1;break}else if((d|0)==65){d=1;break}else{d=c<<24>>24>66&1;break}}else d=0;while(0);return d|0}function Su(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=b+44|0;if((m[g>>1]|0|0)<(c|0)){d=c+7&-8;e=rh(a,d<<2,0)|0;if(!e)c=7;else{f=b+48|0;pw(e|0,k[f>>2]|0,(m[g>>1]|0)<<2|0)|0;c=k[f>>2]|0;if((c|0)!=(b+56|0))rg(a,c);k[f>>2]=e;j[g>>1]=d;c=0}}else c=0;return c|0}function Tu(a,b,c){a=a|0;b=b|0;c=c|0;do if(!(k[b+4>>2]&256)){if((c|0)!=0?(k[c+4>>2]&256|0)!=0:0){b=hu(a,c)|0;break}b=hu(a,b)|0;if(!b)b=hu(a,c)|0}else b=hu(a,b)|0;while(0);return b|0}function Uu(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+144|0;if((r|0)>=(s|0))ka();t=y;x=y+8|0;m=y+36|0;if(((i[a+450>>0]|0)==2?(o=l[c+44>>0]|0,w=k[a+8>>2]|0,h=k[a>>2]|0,v=k[a+464>>2]|0,q=k[c+64>>2]|0,u=q+36|0,p=k[u>>2]|0,(p&8192|0)==0):0)?(g=f&65535,(g&64|0)==0):0){f=p&48;do if(!f){if((p&1024|0)==0?(j[q+24>>1]|0)!=0:0){n=1;break}n=(g&3|0)!=0}else n=1;while(0);k[x+4>>2]=m;k[x+8>>2]=m;k[x+12>>2]=0;k[x+16>>2]=100;k[x+20>>2]=1e9;i[x+24>>0]=1;i[x+25>>0]=0;k[x>>2]=h;a=n?33576:33584;c=a;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;Xk(x,a,c-a&1073741823);if(!(k[b+(o*72|0)+28>>2]|0)){k[t>>2]=k[b+(o*72|0)+16>>2];Jn(x,0,33608,t)}else{k[t>>2]=l[b+(o*72|0)+46>>0];Jn(x,0,33592,t)}a=k[b+(o*72|0)+20>>2]|0;if(a){k[t>>2]=a;Jn(x,0,33624,t)}do if(!(p&1280)){g=q+28|0;c=k[g>>2]|0;f=b+(o*72|0)+24|0;if((i[(k[f>>2]|0)+44>>0]&32)!=0?(i[c+51>>0]&3)==2:0)if(n)a=33632;else break;else if(!(p&131072))if(!(p&16384))a=(p&64|0)==0?33744:33720;else a=33688;else a=33648;Xk(x,33760,7);k[t>>2]=k[c>>2];Jn(x,0,a,t);p=j[q+24>>1]|0;n=k[(k[f>>2]|0)+4>>2]|0;m=k[(k[g>>2]|0)+4>>2]|0;c=p&65535;if(!(p<<16>>16)){if(!(k[u>>2]&48))break;Xk(x,33904,2);g=0}else{f=j[q+42>>1]|0;Xk(x,33904,2);f=f&65535;g=0;do{a=j[m+(g<<1)>>1]|0;if(a<<16>>16<0)a=20456;else a=k[n+((a<<16>>16)*24|0)>>2]|0;if((g|0)<(f|0)){if(g)Xk(x,33920,5);k[t>>2]=a;Jn(x,0,33928,t)}else Sv(x,g,a,33912);g=g+1|0}while((g|0)<(c|0));g=c>>>0>1?c:1}f=k[u>>2]|0;if(!(f&32))a=g;else{f=j[m+(g<<1)>>1]|0;if(f<<16>>16<0)f=20456;else f=k[n+((f<<16>>16)*24|0)>>2]|0;Sv(x,g,f,33936);f=k[u>>2]|0;a=g+1|0}if(f&16){g=j[m+(g<<1)>>1]|0;if(g<<16>>16<0)g=20456;else g=k[n+((g<<16>>16)*24|0)>>2]|0;Sv(x,a,g,33944)}Xk(x,33952,1)}else{if((p&256|0)==0|(p&15|0)==0){if(!(p&1024))break;p=k[q+32>>2]|0;k[t>>2]=k[q+24>>2];k[t+4>>2]=p;Jn(x,0,33872,t);break}if(!(p&5))if((f|0)==48)f=33784;else f=(p&32|0)==0?33824:33808;else f=33768;Xk(x,33840,27);g=f;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;Xk(x,f,g-f&1073741823)}while(0);p=yg(x)|0;Ch(w,Bh(w,157,v,d,e)|0,p,-1)}r=y;return}function Vu(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,l=0,m=0,n=0;l=k[b>>2]|0;n=k[a+8>>2]|0;g=i[l>>0]|0;do if(g<<24>>24==76)Bh(n,28,0,f,0)|0;else if(g<<24>>24==79)f=ns(a,k[l+16>>2]|0,f)|0;else{h=k[c+64>>2]|0;g=h+36|0;if(((k[g>>2]&1024|0)==0?(j=k[h+28>>2]|0,(j|0)!=0):0)?(i[(k[j+28>>2]|0)+d>>0]|0)!=0:0)e=(e|0)==0&1;m=rv(a,l,4,0)|0;if((m|0)==4)e=(e|0)==0&1;l=k[l+28>>2]|0;d=(e|0)!=0;Bh(n,d?105:108,l,0,0)|0;k[g>>2]=k[g>>2]|2048;j=c+56|0;g=k[j>>2]|0;if(!g){g=Cs(n)|0;k[c+16>>2]=g;g=k[j>>2]|0}h=g+1|0;k[j>>2]=h;g=c+60|0;h=$l(k[a>>2]|0,k[g>>2]|0,h*12|0,0)|0;k[g>>2]=h;if(!h){k[j>>2]=0;break}g=(k[j>>2]|0)+-1|0;k[h+(g*12|0)>>2]=l;if((m|0)==1)e=Bh(n,103,l,f,0)|0;else e=Bh(n,47,l,0,f)|0;k[h+(g*12|0)+4>>2]=e;i[h+(g*12|0)+8>>0]=d?6:7;Bh(n,76,f,0,0)|0}while(0);Wu(c,b);return f|0}function Wu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:do if(b){f=a+72|0;e=0;while(1){c=b+20|0;d=j[c>>1]|0;if(d&4)break a;if((k[a>>2]|0)!=0?(k[(k[b>>2]|0)+4>>2]&1|0)==0:0)break a;g=f;h=b+40|0;if(!((k[h>>2]&k[g>>2]|0)==0?(k[h+4>>2]&k[g+4>>2]|0)==0:0))break a;d=d&65535;j[c>>1]=d|((e|0)==0|(d&1024|0)==0?4:512);d=k[b+4>>2]|0;if((d|0)<0)break a;b=k[(k[b+24>>2]|0)+20>>2]|0;g=b+(d*48|0)+22|0;c=(i[g>>0]|0)+-1<<24>>24;i[g>>0]=c;if(c<<24>>24)break a;b=b+(d*48|0)|0;if(!b)break;else e=e+1|0}}while(0);return}function Xu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0,n=0;do if(!(j[(k[a>>2]|0)+60>>1]&2)){h=a+116|0;g=0;e=h;while(1){f=e+12|0;if(!(k[f>>2]|0)){n=4;break}g=g+1|0;if((g|0)>=10){l=0;e=-1;m=2147483647;break}else e=e+20|0}if((n|0)==4){k[e+8>>2]=k[a+100>>2];k[e>>2]=b;j[e+4>>1]=c;k[f>>2]=d;i[e+6>>0]=0;d=a+104|0;b=k[d>>2]|0;k[d>>2]=b+1;k[e+16>>2]=b;break}while(1){g=k[h+16>>2]|0;f=(g|0)<(m|0);e=f?l:e;l=l+1|0;if((l|0)==10)break;else{m=f?g:m;h=h+20|0}}if((e|0)>-1){k[a+(e*20|0)+124>>2]=k[a+100>>2];k[a+(e*20|0)+116>>2]=b;j[a+(e*20|0)+120>>1]=c;k[a+(e*20|0)+128>>2]=d;i[a+(e*20|0)+122>>0]=0;d=a+104|0;b=k[d>>2]|0;k[d>>2]=b+1;k[a+(e*20|0)+132>>2]=b}}while(0);return}function Yu(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;r=k[a+8>>2]|0;m=k[b+64>>2]|0;n=j[m+24>>1]|0;p=j[m+42>>1]|0;t=k[m+28>>2]|0;q=a+72|0;l=k[q>>2]|0;f=l+1|0;s=n&65535;o=s+d|0;k[q>>2]=l+o;q=k[a>>2]|0;t=ph(q,tt(r,t)|0)|0;q=(t|0)!=0;if(!q)i[(k[a>>2]|0)+65>>0]=1;if(p<<16>>16){d=k[b+8>>2]|0;g=(c|0)!=0;Bh(r,g?105:108,d,0,0)|0;h=Bh(r,16,0,0,0)|0;l=p&65535;g=Bh(r,g?62:65,d,0,f)|0;Ch(r,g,l,-14);k[b+20>>2]=g;g=k[r+32>>2]|0;if(g>>>0>h>>>0)k[(k[r+4>>2]|0)+(h*20|0)+8>>2]=g;k[(k[r+24>>2]|0)+88>>2]=g+-1;h=0;do{Bh(r,47,d,h,h+f|0)|0;h=h+1|0}while((h|0)<(l|0))}if((p&65535)<(n&65535)){m=m+48|0;l=b+12|0;n=(o|0)==1;o=p&65535;h=f;while(1){g=k[(k[m>>2]|0)+(o<<2)>>2]|0;d=o+h|0;f=Vu(a,g,b,o,c,d)|0;do if((f|0)!=(d|0))if(n){ds(a,h);break}else{Bh(r,34,f,d,0)|0;f=h;break}else f=h;while(0);if(!(j[g+18>>1]&129)){d=k[(k[g>>2]|0)+16>>2]|0;if(Zu(d)|0)Bh(r,76,f+o|0,k[l>>2]|0,0)|0;if(q){g=t+o|0;if((Gu(d,i[g>>0]|0)|0)<<24>>24==65){i[g>>0]=65;h=65}else h=i[g>>0]|0;if(_u(d,h)|0)i[g>>0]=65}}o=o+1|0;if((o|0)>=(s|0))break;else h=f}}k[e>>2]=t;return f|0}function Zu(a){a=a|0;var b=0;b=i[a>>0]|0;if((b+99&255)<2)do{a=k[a+12>>2]|0;b=i[a>>0]|0}while((b+99&255)<2);if(b<<24>>24==-97)b=i[a+38>>0]|0;switch(b&255|0){case 134:case 133:case 97:case 132:{a=0;break}case 154:{if(!(k[a+4>>2]&1048576)){b=j[a+32>>1]|0;if(b<<16>>16>-1)a=(i[(k[(k[a+44>>2]|0)+4>>2]|0)+((b<<16>>16)*24|0)+20>>0]|0)==0;else a=0}else a=1;a=a&1;break}default:a=1}return a|0}function _u(a,b){a=a|0;b=b|0;var c=0;a:do if(b<<24>>24==65)a=1;else{c=i[a>>0]|0;if((c+99&255)<2)do{a=k[a+12>>2]|0;c=i[a>>0]|0}while((c+99&255)<2);if(c<<24>>24==-97)c=i[a+38>>0]|0;switch(c&255|0){case 133:{a=(b<<24>>24==69|b<<24>>24==67)&1;break a}case 134:{a=1;break a}case 132:{a=(b+-67&255)<2&1;break a}case 154:{if((j[a+32>>1]|0)<0)a=(b+-67&255)<2;else a=0;a=a&1;break a}case 97:{a=b<<24>>24==66&1;break a}default:{a=0;break a}}}while(0);return a|0}function $u(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=k[a+8>>2]|0;do if(d){a:do if((c|0)>0)while(1){if((i[d>>0]|0)!=65){e=d;break a}c=c+-1|0;b=b+1|0;d=d+1|0;if((c|0)<=0){e=d;break}}else e=d;while(0);while(1){if((c|0)<=1){g=8;break}d=c+-1|0;if((i[e+d>>0]|0)==65)c=d;else break}if((g|0)==8)if((c|0)<=0)break;Bh(f,48,b,c,0)|0;Ch(f,-1,e,c);it(a,b,c)}while(0);return}function av(a,b){a=a|0;b=b|0;var c=0,d=0;if(b){Tv(b+328|0);d=b+16|0;c=k[d>>2]|0;if(c)do{k[d>>2]=k[c+52>>2];Ou(a,c);rg(a,c);c=k[d>>2]|0}while((c|0)!=0);rg(a,b)}return}function bv(a,b){a=a|0;b=b|0;var c=0,d=0;c=r;r=r+32|0;if((r|0)>=(s|0))ka();d=c;k[d+0>>2]=0;k[d+4>>2]=0;k[d+8>>2]=0;k[d+12>>2]=0;k[d+16>>2]=0;k[d+20>>2]=0;k[d>>2]=80;k[d+4>>2]=81;k[d+24>>2]=a;ws(d,b)|0;r=c;return}function cv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0;n=r;r=r+16|0;if((r|0)>=(s|0))ka();l=n+4|0;m=n;j=k[a+8>>2]|0;k[l>>2]=0;k[m>>2]=0;if(!((j|0)==0|(b|0)==0)){f=i[b>>0]|0;e=f&255;a:do switch(e|0){case 74:{dv(a,b,c,1,d);break}case 77:case 76:{Bh(j,e,eu(a,k[b+12>>2]|0,l)|0,c,0)|0;break}case 79:case 78:case 83:case 80:case 81:case 82:{f=b+12|0;h=eu(a,k[f>>2]|0,l)|0;g=b+16|0;j=eu(a,k[g>>2]|0,m)|0;fu(a,k[f>>2]|0,k[g>>2]|0,e,h,j,c,d);break}case 72:{h=Cs(j)|0;lt(a,k[b+12>>2]|0,h,d^16);e=a+100|0;k[e>>2]=(k[e>>2]|0)+1;cv(a,k[b+16>>2]|0,c,d);e=k[j+24>>2]|0;f=~h;if((h|0)<0?(g=k[e+112>>2]|0,(g|0)!=0):0)k[g+(f<<2)>>2]=k[j+32>>2];k[e+88>>2]=(k[j+32>>2]|0)+-1;gu(a);break}case 71:{cv(a,k[b+12>>2]|0,c,d);j=a+100|0;k[j>>2]=(k[j>>2]|0)+1;cv(a,k[b+16>>2]|0,c,d);gu(a);break}case 19:{lt(a,k[b+12>>2]|0,c,d);break}case 148:case 73:{d=b+12|0;h=eu(a,k[d>>2]|0,l)|0;g=b+16|0;j=eu(a,k[g>>2]|0,m)|0;fu(a,k[d>>2]|0,k[g>>2]|0,f<<24>>24==73?79:78,h,j,c,128);break}case 75:{g=Cs(j)|0;ku(a,b,g,(d|0)!=0?c:g);Bh(j,16,0,c,0)|0;f=k[j+24>>2]|0;e=~g;if((g|0)<0?(h=k[f+112>>2]|0,(h|0)!=0):0)k[h+(e<<2)>>2]=k[j+32>>2];k[f+88>>2]=(k[j+32>>2]|0)+-1;break}default:{if(ev(b)|0){Bh(j,16,0,c,0)|0;break a}if(!(ru(b)|0))Bh(j,45,eu(a,b,l)|0,c,(d|0)!=0&1)|0}}while(0);ds(a,k[l>>2]|0);ds(a,k[m>>2]|0)}r=n;return}function dv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0;n=r;r=r+208|0;if((r|0)>=(s|0))ka();h=n+152|0;f=n+104|0;g=n+56|0;j=n+8|0;l=n;k[l>>2]=0;m=j+0|0;o=(k[b+12>>2]|0)+0|0;p=m+48|0;do{k[m>>2]=k[o>>2];m=m+4|0;o=o+4|0}while((m|0)<(p|0));i[h>>0]=72;k[h+12>>2]=f;k[h+16>>2]=g;i[f>>0]=83;k[f+12>>2]=j;b=k[(k[b+20>>2]|0)+4>>2]|0;k[f+16>>2]=k[b>>2];i[g>>0]=81;k[g+12>>2]=j;k[g+16>>2]=k[b+20>>2];b=eu(a,j,l)|0;i[j+38>>0]=i[j>>0]|0;i[j>>0]=-97;k[j+28>>2]=b;b=j+4|0;k[b>>2]=k[b>>2]&-4097;if(!d)lt(a,h,c,e);else cv(a,h,c,e);ds(a,k[l>>2]|0);r=n;return}function ev(a){a=a|0;var b=0,c=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();b=c;k[b>>2]=0;if((k[a+4>>2]&1|0)==0?(Rs(a,b)|0)!=0:0)a=(k[b>>2]|0)!=0&1;else a=0;r=c;return a|0}function fv(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if(!((a|0)==0|(b|0)==0)){d=k[b>>2]|0;if((d|0)>0){b=k[b+4>>2]|0;c=0;while(1){if((Bv(a,k[b+(c*20|0)+4>>2]|0)|0)>-1){b=1;break a}c=c+1|0;if((c|0)>=(d|0)){b=0;break}}}else b=0}else b=1;while(0);return b|0}function gv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0;m=k[b+20>>2]|0;a:do if((m|0)>0){n=j[a+38>>1]|0;o=n<<16>>16>0;p=a+4|0;l=a+36|0;f=(d|0)!=0;g=0;while(1){d=k[b+(g<<3)+40>>2]|0;if(o){a=(d|0)==0;h=0;do{if(!((k[c+(h<<2)>>2]|0)<=-1?!((h|0)==(j[l>>1]|0)&f):0))q=7;do if((q|0)==7){q=0;e=k[p>>2]|0;if(a)if(!(i[e+(h*24|0)+23>>0]&1))break;else{a=1;break a}else if(!(id(k[e+(h*24|0)>>2]|0,d)|0)){a=1;break a}else break}while(0);h=h+1|0}while((h|0)<(n<<16>>16|0))}g=g+1|0;if((g|0)>=(m|0)){a=0;break}}}else a=0;while(0);return a|0}function hv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+48|0;if((r|0)>=(s|0))ka();j=v;o=v+8|0;u=k[a+408>>2]|0;u=(u|0)==0?a:u;h=u+528|0;e=k[h>>2]|0;a:do if(!e)g=5;else while(1){if((k[e>>2]|0)==(b|0)?(k[e+12>>2]|0)==(d|0):0)break a;e=k[e+4>>2]|0;if(!e){g=5;break}}while(0);do if((g|0)==5){q=k[a>>2]|0;e=rh(q,24,0)|0;if(e){g=e+0|0;f=g+24|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(f|0));k[e+4>>2]=k[h>>2];k[h>>2]=e;p=rh(q,28,0)|0;if(!p){k[e+8>>2]=0;e=0;break}g=p+0|0;f=g+24|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(f|0));k[e+8>>2]=p;l=(k[u+8>>2]|0)+192|0;k[p+24>>2]=k[l>>2];k[l>>2]=p;k[e>>2]=b;k[e+12>>2]=d;l=e+16|0;k[l>>2]=-1;m=e+20|0;k[m>>2]=-1;n=rh(q,536,0)|0;if(n){kw(n|0,0,536)|0;k[o+0>>2]=0;k[o+4>>2]=0;k[o+8>>2]=0;k[o+12>>2]=0;k[o+16>>2]=0;k[o+20>>2]=0;k[o+24>>2]=0;k[o+28>>2]=0;k[o>>2]=n;k[n>>2]=q;k[n+412>>2]=c;k[n+408>>2]=u;k[n+492>>2]=k[b>>2];i[n+436>>0]=i[b+8>>0]|0;k[n+424>>2]=k[a+424>>2];c=Tq(n)|0;if(c){k[j>>2]=k[b>>2];Ch(c,-1,zh(q,34152,j)|0,-1);g=k[b+12>>2]|0;if(!g)h=0;else{f=Rr(q,g,0,0)|0;if((qs(o,f)|0)==0?(i[q+65>>0]|0)==0:0){g=Cs(c)|0;lt(n,f,g,16)}else g=0;Lk(q,f);h=g}Uv(n,k[b+28>>2]|0,d);if(h){g=k[c+24>>2]|0;f=~h;if((h|0)<0?(t=k[g+112>>2]|0,(t|0)!=0):0)k[t+(f<<2)>>2]=k[c+32>>2];k[g+88>>2]=(k[c+32>>2]|0)+-1}Bh(c,24,0,0,0)|0;f=a+64|0;g=k[n+4>>2]|0;if(!(k[f>>2]|0)){k[a+4>>2]=g;k[f>>2]=k[n+64>>2]}else rg(k[n>>2]|0,g);if(!(i[q+65>>0]|0)){j=c+4|0;o=k[j>>2]|0;On(c,u+392|0);k[p+4>>2]=k[c+32>>2];k[j>>2]=0;k[p>>2]=o}k[p+8>>2]=k[n+72>>2];k[p+12>>2]=k[n+68>>2];k[p+16>>2]=k[n+80>>2];k[p+20>>2]=b;k[l>>2]=k[n+428>>2];k[m>>2]=k[n+432>>2];Ul(c)}Hh(n);rg(q,n)}else e=0}else e=0}while(0);r=v;return e|0}function iv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0;g=Tq(a)|0;c=hv(a,b,c,e)|0;if(c){if(!(k[b>>2]|0))e=0;else e=((k[(k[a>>2]|0)+24>>2]|0)>>>18&1^1)&255;a=a+72|0;b=(k[a>>2]|0)+1|0;k[a>>2]=b;Bh(g,131,d,f,b)|0;Ch(g,-1,k[c+8>>2]|0,-18);c=k[g+4>>2]|0;if(c)i[c+(((k[g+32>>2]|0)+-1|0)*20|0)+3>>0]=e}return}function jv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;i=r;r=r+16|0;if((r|0)>=(s|0))ka();h=i;e=k[a>>2]|0;g=k[(k[e+16>>2]|0)+(d<<4)>>2]|0;f=pc[k[e+284>>2]&7](k[e+288>>2]|0,20,b,c,g,k[a+492>>2]|0)|0;if((f|0)==1){if((d|0)!=0?1:(k[e+20>>2]|0)>2){k[h>>2]=g;k[h+4>>2]=b;k[h+8>>2]=c;yh(a,27688,h)}else{k[h>>2]=b;k[h+4>>2]=c;yh(a,27728,h)}k[a+12>>2]=23}else if(!((f|0)==0|(f|0)==2)){yh(a,25232,h);k[a+12>>2]=1}r=i;return f|0}function kv(a,b,c,d,e,f,g,h,m){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;y=Tq(a)|0;A=(k[a+68>>2]|0)+-1|0;B=Cs(y)|0;if((h|0)<0)Bh(y,135,l[e+24>>0]|0,B,0)|0;n=e+20|0;o=k[n>>2]|0;if((o|0)>0){q=g+1|0;p=0;do{Bh(y,76,q+(k[f+(p<<2)>>2]|0)|0,B,0)|0;p=p+1|0;o=k[n>>2]|0}while((p|0)<(o|0))}do if(!m){if(!d){o=a+19|0;n=i[o>>0]|0;if(!(n<<24>>24)){d=a+72|0;q=(k[d>>2]|0)+1|0;k[d>>2]=q}else{q=n+-1<<24>>24;i[o>>0]=q;q=k[a+((q&255)<<2)+24>>2]|0}Bh(y,34,g+1+(k[f>>2]|0)|0,q,0)|0;p=Bh(y,38,q,0,0)|0;if(((h|0)==1?(k[e>>2]|0)==(c|0):0)?(Bh(y,79,g,B,q)|0,r=k[y+4>>2]|0,(r|0)!=0):0)i[r+(((k[y+32>>2]|0)+-1|0)*20|0)+3>>0]=-112;Vq(a,A,b,c,54);Bh(y,70,A,0,q)|0;Bh(y,16,0,B,0)|0;n=k[y+32>>2]|0;if(n>>>0>1)k[(k[y+4>>2]|0)+((n+-2|0)*20|0)+8>>2]=n;m=n+-1|0;o=(k[y+24>>2]|0)+88|0;k[o>>2]=m;if(n>>>0>p>>>0)k[(k[y+4>>2]|0)+(p*20|0)+8>>2]=n;k[o>>2]=m;ds(a,q);break}w=a+60|0;q=k[w>>2]|0;x=a+56|0;p=k[x>>2]|0;if((p|0)<(o|0)){v=a+72|0;q=k[v>>2]|0;k[v>>2]=q+o;q=q+1|0}else{k[w>>2]=q+o;k[x>>2]=p-o}p=a+19|0;n=i[p>>0]|0;if(!(n<<24>>24)){m=a+72|0;v=(k[m>>2]|0)+1|0;k[m>>2]=v}else{v=n+-1<<24>>24;i[p>>0]=v;v=k[a+((v&255)<<2)+24>>2]|0}Bh(y,54,A,k[d+40>>2]|0,b)|0;m=k[a+8>>2]|0;Ch(m,-1,ms(a,d)|0,-6);m=(o|0)>0;if(m){p=g+1|0;n=0;do{Bh(y,33,p+(k[f+(n<<2)>>2]|0)|0,n+q|0,0)|0;n=n+1|0}while((n|0)!=(o|0))}if((h|0)==1?(k[e>>2]|0)==(c|0):0){t=y+32|0;u=o+1+(k[t>>2]|0)|0;if(m){b=g+1|0;s=d+4|0;p=c+36|0;n=y+4|0;r=0;do{m=j[(k[s>>2]|0)+(r<<1)>>1]|0;Bh(y,78,b+(k[f+(r<<2)>>2]|0)|0,u,(m<<16>>16==(j[p>>1]|0)?0:(m<<16>>16)+1|0)+g|0)|0;m=k[n>>2]|0;if(m)i[m+(((k[t>>2]|0)+-1|0)*20|0)+3>>0]=16;r=r+1|0}while((r|0)!=(o|0))}Bh(y,16,0,B,0)|0}g=tt(y,d)|0;Ch(y,Bh(y,49,q,o,v)|0,g,o);Ch(y,Bh(y,69,A,B,v)|0,0,-14);ds(a,v);it(a,q,o);if((k[x>>2]|0)<(o|0)){k[x>>2]=o;k[w>>2]=q}}while(0);n=i[e+24>>0]|0;m=n<<24>>24==0;if(((m?(k[(k[a>>2]|0)+24>>2]&16777216|0)==0:0)?(k[a+408>>2]|0)==0:0)?(i[a+20>>0]|0)==0:0)Es(a,787,2,0,-2,4);else{if(!((h|0)<1|m^1)){e=k[a+408>>2]|0;i[((e|0)==0?a:e)+21>>0]=1}Bh(y,134,n&255,h,0)|0}m=k[y+24>>2]|0;n=~B;if((B|0)<0?(z=k[m+112>>2]|0,(z|0)!=0):0)k[z+(n<<2)>>2]=k[y+32>>2];k[m+88>>2]=(k[y+32>>2]|0)+-1;Bh(y,61,A,0,0)|0;return}function lv(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=r;r=r+48|0;if((r|0)>=(s|0))ka();y=D+32|0;z=D;A=k[a>>2]|0;B=Tq(a)|0;if((h|0)<0)C=Bh(B,135,l[e+24>>0]|0,0,0)|0;else C=0;x=e+20|0;if((k[x>>2]|0)>0){w=(d|0)==0;v=(f|0)==0;u=e+36|0;t=d+4|0;q=0;n=0;do{if(w)p=-1;else p=j[(k[t>>2]|0)+(q<<1)>>1]|0;o=Vv(a,c,g,p)|0;if(v)p=u;else p=f+(q<<2)|0;n=xs(A,n,cr(a,79,o,yt(A,27,k[(k[(k[e>>2]|0)+4>>2]|0)+((k[p>>2]<<16>>16)*24|0)>>2]|0)|0,0)|0)|0;q=q+1|0}while((q|0)<(k[x>>2]|0));p=e}else{p=e;n=0}if((h|0)>0?(k[p>>2]|0)==(c|0):0){if(!(i[c+44>>0]&32)){f=k[a>>2]|0;k[y>>2]=0;k[y+4>>2]=0;f=sr(f,159,y,0)|0;if(!f)f=0;else{k[f+28>>2]=g;i[f+1>>0]=68}p=k[b+48>>2]|0;k[y>>2]=0;k[y+4>>2]=0;o=sr(A,154,y,0)|0;if(o){k[o+44>>2]=c;k[o+28>>2]=p;j[o+32>>1]=-1}f=cr(a,78,f,o,0)|0}else{p=c+8|0;while(1){p=k[p>>2]|0;if((i[p+51>>0]&3)==2)break;p=p+20|0}x=p+46|0;if(!(j[x>>1]|0))f=0;else{t=d+4|0;u=b+48|0;v=y+4|0;w=0;f=0;do{p=j[(k[t>>2]|0)+(w<<1)>>1]|0;o=Vv(a,c,g,p)|0;q=k[u>>2]|0;k[y>>2]=0;k[v>>2]=0;d=sr(A,154,y,0)|0;if(d){k[d+44>>2]=c;k[d+28>>2]=q;j[d+32>>1]=p}f=xs(A,f,cr(a,79,o,d,0)|0)|0;w=w+1|0}while((w|0)<(m[x>>1]|0))}f=cr(a,19,f,0,0)|0}n=xs(A,n,f)|0};k[z+0>>2]=0;k[z+4>>2]=0;k[z+8>>2]=0;k[z+12>>2]=0;k[z+16>>2]=0;k[z+20>>2]=0;k[z+24>>2]=0;k[z+28>>2]=0;k[z+4>>2]=b;k[z>>2]=a;qs(z,n)|0;f=_s(a,b,n,0,0,0,0)|0;Bh(B,134,l[e+24>>0]|0,h,0)|0;if(f)at(f);Lk(A,n);if(C){f=k[B+32>>2]|0;if(f>>>0>C>>>0)k[(k[B+4>>2]|0)+(C*20|0)+8>>2]=f;k[(k[B+24>>2]|0)+88>>2]=f+-1}r=D;return}function mv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0;u=r;r=r+32|0;if((r|0)>=(s|0))ka();p=u;n=u+16|0;t=u+28|0;g=k[a>>2]|0;q=Tq(a)|0;if(q){j=(k[g+16>>2]|0)+(b<<4)|0;l=a+388|0;m=(d|0)==0;o=0;a:while(1){h=k[28744+(o<<3)>>2]|0;f=di(g,h,k[j>>2]|0)|0;do if(!f){if(!o){k[p>>2]=k[j>>2];k[p+4>>2]=h;k[p+8>>2]=28768;Gr(a,28816,p);k[n>>2]=k[l>>2];i[t>>0]=4;o=o+1|0;continue a}}else{f=k[f+32>>2]|0;k[n+(o<<2)>>2]=f;i[t+o>>0]=0;ls(a,b,f,1,h);if(m){Bh(q,118,f,b,0)|0;break}else{k[p>>2]=k[j>>2];k[p+4>>2]=h;k[p+8>>2]=e;k[p+12>>2]=d;Gr(a,28840,p);break}}while(0);o=o+1|0;if((o|0)==3)break}Ch(q,Bh(q,55,c,k[n>>2]|0,b)|0,3,-14);f=k[q+4>>2]|0;if(f)i[f+(((k[q+32>>2]|0)+-1|0)*20|0)+3>>0]=i[t>>0]|0}r=u;return}function nv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,l=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;D=k[a>>2]|0;E=e+1|0;F=e+2|0;J=e+3|0;K=e+4|0;L=e+5|0;I=e+6|0;G=e+7|0;H=a+72|0;M=k[H>>2]|0;k[H>>2]=(M|0)>(G|0)?M:G;M=Tq(a)|0;if((!((M|0)==0|(b|0)==0)?(p=b+32|0,(k[p>>2]|0)!=0):0)?(q=k[b>>2]|0,(Kc(q,25568,7)|0)!=0):0){l=k[b+68>>2]|0;a:do if(l){h=k[D+20>>2]|0;if((h|0)>0){g=k[D+16>>2]|0;o=0;while(1){n=o+1|0;if((k[g+(o<<4)+12>>2]|0)==(l|0)){n=o;break a}if((n|0)<(h|0))o=n;else break}}else n=0}else n=-1e6;while(0);if(!(Xq(a,28,q,0,k[(k[D+16>>2]|0)+(n<<4)>>2]|0)|0)){ls(a,n,k[p>>2]|0,0,k[b>>2]|0);w=f+1|0;C=f+2|0;q=a+68|0;B=k[q>>2]|0;k[q>>2]=(B|0)>(C|0)?B:C;Vq(a,f,n,b,54);q=k[b>>2]|0;Ch(M,Bh(M,97,0,K,0)|0,q,0);q=k[b+8>>2]|0;C=(c|0)==0;if(!q)l=1;else{x=b+44|0;y=a+8|0;z=M+4|0;A=M+32|0;B=M+24|0;l=1;do{do if(C|(q|0)==(c|0)){l=(k[q+36>>2]|0)==0?0:l;p=i[q+51>>0]|0;if(!((i[x>>0]&32)!=0&(p&3)==2)){g=m[q+48>>1]|0;o=k[q>>2]|0;h=q+46|0;if(!(p&8)){s=h;r=g;p=g}else{s=h;r=g;p=m[h>>1]|0}}else{s=q+46|0;p=m[s>>1]|0;r=p;o=k[b>>2]|0}u=p+-1|0;Ch(M,Bh(M,97,0,L,0)|0,o,0);v=k[H>>2]|0;p=u+G|0;k[H>>2]=(v|0)>(p|0)?v:p;Bh(M,54,w,k[q+40>>2]|0,n)|0;p=k[y>>2]|0;Ch(p,-1,ms(a,q)|0,-6);Bh(M,25,r,F,0)|0;Bh(M,25,m[s>>1]|0,J,0)|0;Bh(M,1,0,F,E)|0;Ch(M,-1,28552,-5);p=k[z>>2]|0;if(p)i[p+(((k[A>>2]|0)+-1|0)*20|0)+3>>0]=2;v=Bh(M,108,w,0,0)|0;Bh(M,25,0,F,0)|0;o=k[A>>2]|0;if((u|0)>0){r=Cs(M)|0;t=rh(D,u<<2,0)|0;if(!t)break;Bh(M,16,0,0,0)|0;o=k[A>>2]|0;if(((u|0)==1?(j[s>>1]|0)==1:0)?(i[q+50>>0]|0)!=0:0)Bh(M,77,G,r,0)|0;p=q+32|0;g=0;do{s=hr(a,k[(k[p>>2]|0)+(g<<2)>>2]|0)|0;Bh(M,25,g,F,0)|0;Bh(M,47,w,g,J)|0;h=Bh(M,78,J,0,g+G|0)|0;Ch(M,h,s,-4);k[t+(g<<2)>>2]=h;h=k[z>>2]|0;if(h)i[h+(((k[A>>2]|0)+-1|0)*20|0)+3>>0]=-128;g=g+1|0}while((g|0)!=(u|0));Bh(M,25,u,F,0)|0;Bh(M,16,0,r,0)|0;p=o+-1|0;h=k[A>>2]|0;if(h>>>0>p>>>0)k[(k[z>>2]|0)+(p*20|0)+8>>2]=h;k[(k[B>>2]|0)+88>>2]=h+-1;p=0;while(1){g=k[t+(p<<2)>>2]|0;if(h>>>0>g>>>0)k[(k[z>>2]|0)+(g*20|0)+8>>2]=h;k[(k[B>>2]|0)+88>>2]=h+-1;Bh(M,47,w,p,p+G|0)|0;p=p+1|0;if((p|0)==(u|0))break;h=k[A>>2]|0}h=k[B>>2]|0;g=~r;do if((r|0)<0){p=k[h+112>>2]|0;if(!p)break;k[p+(g<<2)>>2]=k[A>>2]}while(0);k[h+88>>2]=(k[A>>2]|0)+-1;rg(D,t)}Bh(M,1,1,E,J)|0;Ch(M,-1,28592,-5);p=k[z>>2]|0;if(p)i[p+(((k[A>>2]|0)+-1|0)*20|0)+3>>0]=2;Bh(M,9,w,o,0)|0;Bh(M,1,0,E,I)|0;Ch(M,-1,28640,-5);p=k[z>>2]|0;if(p)i[p+(((k[A>>2]|0)+-1|0)*20|0)+3>>0]=1;Ch(M,Bh(M,49,K,3,J)|0,28632,0);Bh(M,74,d,e,0)|0;Bh(M,75,d,J,e)|0;o=k[z>>2]|0;p=k[A>>2]|0;if(o)i[o+((p+-1|0)*20|0)+3>>0]=8;if(p>>>0>v>>>0)k[o+(v*20|0)+8>>2]=p;k[(k[B>>2]|0)+88>>2]=p+-1}while(0);q=k[q+20>>2]|0}while((q|0)!=0)}if(!(l<<24>>24==0|C^1)){Bh(M,50,f,I,0)|0;l=Bh(M,46,I,0,0)|0;Bh(M,28,0,L,0)|0;Ch(M,Bh(M,49,K,3,J)|0,28632,0);Bh(M,74,d,e,0)|0;Bh(M,75,d,J,e)|0;h=k[M+4>>2]|0;g=k[M+32>>2]|0;if(h)i[h+((g+-1|0)*20|0)+3>>0]=8;if(g>>>0>l>>>0)k[h+(l*20|0)+8>>2]=g;k[(k[M+24>>2]|0)+88>>2]=g+-1}}}return}function ov(a,b){a=a|0;b=b|0;a=Tq(a)|0;if(a)Bh(a,123,b,0,0)|0;return}function pv(a){a=a|0;var b=0,c=0,d=0;a:while(1){b=k[a+4>>2]|0;do if(b&4096)if(!(b&262144)){a=a+12|0;break}else{a=k[(k[a+20>>2]|0)+4>>2]|0;break}else{if(b&512){a=0;break a}switch(i[a>>0]|0){case -102:case -100:case -97:{d=11;break a}case 38:{d=10;break a}case 119:break;default:{d=14;break a}}a=k[(k[k[a+20>>2]>>2]|0)+4>>2]|0}while(0);a=k[a>>2]|0}if((d|0)==10)a=ar(k[a+8>>2]|0,0)|0;else if((d|0)==11){c=k[a+44>>2]|0;if(c){b=j[a+32>>1]|0;if(b<<16>>16<0)a=68;else a=i[(k[c+4>>2]|0)+((b<<16>>16)*24|0)+21>>0]|0}else d=14}if((d|0)==14)a=i[a+1>>0]|0;return a|0}function qv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;Bh(a,25,0,c,0)|0;d=Bh(a,108,b,0,0)|0;Bh(a,47,b,0,c)|0;b=k[a+4>>2]|0;c=k[a+32>>2]|0;if(b)i[b+((c+-1|0)*20|0)+3>>0]=-128;if(c>>>0>d>>>0)k[b+(d*20|0)+8>>2]=c;k[(k[a+24>>2]|0)+88>>2]=c+-1;return}function rv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;E=r;r=r+32|0;if((r|0)>=(s|0))ka();z=E;C=a+68|0;D=k[C>>2]|0;k[C>>2]=D+1;C=Tq(a)|0;A=(c&4|0)!=0;B=b+4|0;a:do if((((((((((((k[B>>2]&2048|0)!=0?(h=k[b+20>>2]|0,!((k[a+64>>2]|0)!=0|(h|0)==0)):0)?(k[h+52>>2]|0)==0:0)?(j[h+6>>1]&5)==0:0)?(k[h+60>>2]|0)==0:0)?(k[h+36>>2]|0)==0:0)?(g=k[h+32>>2]|0,(k[g>>2]|0)==1):0)?(k[g+28>>2]|0)==0:0)?(t=k[g+24>>2]|0,(t|0)!=0):0)?(i[t+44>>0]&16)==0:0)?(f=k[h>>2]|0,(k[f>>2]|0)==1):0)?(n=k[k[f+4>>2]>>2]|0,(i[n>>0]|0)==-102):0){x=k[a>>2]|0;y=j[n+32>>1]|0;m=k[t+68>>2]|0;b:do if(m){g=k[x+20>>2]|0;if((g|0)>0){f=k[x+16>>2]|0;e=0;while(1){h=e+1|0;if((k[f+(e<<4)+12>>2]|0)==(m|0)){h=e;break b}if((h|0)<(g|0))e=h;else break}}else h=0}else h=-1e6;while(0);v=h<<16>>16;Fr(a,v);ls(a,v,k[t+32>>2]|0,0,k[t>>2]|0);w=y<<16>>16;if(y<<16>>16<0){e=Tq(a)|0;d=a+80|0;f=k[d>>2]|0;k[d>>2]=f+1;f=Bh(e,44,f,0,0)|0;Vq(a,D,v,t,54);e=k[C+32>>2]|0;if(e>>>0>f>>>0)k[(k[C+4>>2]|0)+(f*20|0)+8>>2]=e;k[(k[C+24>>2]|0)+88>>2]=e+-1;e=1;m=49;break}e=Tu(a,k[b+12>>2]|0,n)|0;u=t+4|0;m=i[(k[u>>2]|0)+(w*24|0)+21>>0]|0;h=(sv(b)|0)<<24>>24;if((h|0)==65)h=1;else if((h|0)==66)h=m<<24>>24==66&1;else h=m<<24>>24>66&1;m=k[t+8>>2]|0;if((m|0)!=0&(h|0)!=0){n=x+62|0;h=a+80|0;g=a+8|0;f=(d|0)==0;o=C+32|0;q=C+4|0;t=C+24|0;p=a+72|0;c:while(1){do if((j[k[m+4>>2]>>1]|0)==y<<16>>16?(bo(x,i[n>>0]|0,k[k[m+32>>2]>>2]|0,0)|0)==(e|0):0){if(!A)break c;if((j[m+46>>1]|0)!=1)break;if(i[m+50>>0]|0)break c}while(0);m=k[m+20>>2]|0;if(!m){m=38;break a}}B=Tq(a)|0;e=k[h>>2]|0;k[h>>2]=e+1;h=Bh(B,44,e,0,0)|0;Bh(C,54,D,k[m+40>>2]|0,v)|0;e=k[g>>2]|0;Ch(e,-1,ms(a,m)|0,-6);e=(l[k[m+28>>2]>>0]|0)+3|0;if(!f?(i[(k[u>>2]|0)+(w*24|0)+20>>0]|0)==0:0){B=(k[p>>2]|0)+1|0;k[p>>2]=B;k[d>>2]=B;qv(C,D,B)}f=k[o>>2]|0;if(f>>>0>h>>>0)k[(k[q>>2]|0)+(h*20|0)+8>>2]=f;k[(k[t>>2]|0)+88>>2]=f+-1;m=49}else m=38}else m=38;while(0);do if((m|0)==38){if((c&1|0)!=0?(k[B>>2]&2048|0)==0:0){c=b+12|0;y=k[c>>2]|0;k[c>>2]=0;k[z+0>>2]=0;k[z+4>>2]=0;k[z+8>>2]=0;k[z+12>>2]=0;k[z+16>>2]=0;k[z+20>>2]=0;C=z+20|0;i[C>>0]=1;k[z>>2]=78;k[z+4>>2]=79;k[z+24>>2]=0;ws(z,b)|0;C=i[C>>0]|0;k[c>>2]=y;if(!(C<<24>>24)){e=5;m=49;break}if((k[k[b+20>>2]>>2]|0)<3){e=5;m=49;break}}g=a+424|0;h=k[g>>2]|0;if(A){k[g>>2]=0;if((j[(k[b+12>>2]|0)+32>>1]|0)<0){e=((k[B>>2]|0)>>>11&1)+1|0;f=0}else{e=2;f=0}}else if(!d){e=2;f=0}else{e=a+72|0;f=(k[e>>2]|0)+1|0;k[e>>2]=f;k[d>>2]=f;e=2}ju(a,b,f,(e|0)==1&1)|0;k[g>>2]=h}while(0);if((m|0)==49)k[b+28>>2]=D;r=E;return e|0}function sv(a){a=a|0;var b=0,c=0;b=pv(k[a+12>>2]|0)|0;c=k[a+16>>2]|0;do if(!c)if(!(k[a+4>>2]&2048))return (b<<24>>24==0?65:b)|0;else{b=Gu(k[k[(k[k[a+20>>2]>>2]|0)+4>>2]>>2]|0,b)|0;break}else b=Gu(c,b)|0;while(0);return b|0}function tv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;Z=r;r=r+16|0;if((r|0)>=(s|0))ka();W=Z;U=k[a>>2]|0;X=f+28|0;k[X>>2]=-1;T=f+44|0;k[T>>2]=0;a:do if((b|0)!=0?(j[e+28>>1]&20)==0:0){o=k[U+20>>2]|0;if((o|0)>0){m=k[U+16>>2]|0;n=0;while(1){if(!(id(k[m+(n<<4)>>2]|0,b)|0))break;n=n+1|0;if((n|0)>=(o|0)){S=b;b=0;break a}}S=b;b=k[m+(n<<4)+12>>2]|0}else{S=b;b=0}}else{S=0;b=0}while(0);Q=(S|0)==0;N=Q&(c|0)!=0;h=a+412|0;I=a+436|0;J=f+1|0;Y=f+32|0;K=a+428|0;M=a+432|0;R=(c|0)==0;P=f+4|0;g=e;p=0;l=0;o=0;n=0;b:while(1){H=(g|0)!=0;m=g+4|0;G=g+8|0;q=0;t=p;while(1){p=(q|0)==0;if(!(H&p)){V=82;break b}q=k[m>>2]|0;if(q){F=k[q>>2]|0;if((F|0)>0){p=0;E=0;D=q+8|0;while(1){C=k[D+16>>2]|0;u=k[D+20>>2]|0;if((u|0)!=0?(j[u+6>>1]&512)!=0:0){u=k[u>>2]|0;A=k[u>>2]|0;if((A|0)>0){B=k[u+4>>2]|0;u=0;w=0;do{if(Av(k[B+(w*20|0)+8>>2]|0,d,c,S)|0){j[Y>>1]=w;p=p+1|0;t=2;u=1;n=D}w=w+1|0}while((w|0)<(A|0))}else u=0;if(!((u|0)!=0|R)){v=t;V=21}}else{v=t;V=21}c:do if((V|0)==21){V=0;if(!Q?(k[C+68>>2]|0)!=(b|0):0){t=v;break}if(!R){u=k[D+12>>2]|0;if(!u)u=k[C>>2]|0;if(id(u,c)|0){t=v;break}}t=v+1|0;n=(v|0)==0?D:n;u=j[C+38>>1]|0;if(u<<16>>16>0){q=(p|0)==1;x=D+36|0;y=D+48|0;A=0;B=k[C+4>>2]|0;d:while(1){e:do if(!(id(k[B>>2]|0,d)|0)){if(!q){n=A;break d}if(!(i[x>>0]&4)){w=k[y>>2]|0;if(!w){n=A;break d}z=k[w+4>>2]|0;if((z|0)<=0){n=A;break d}w=k[w>>2]|0;v=0;while(1){if(!(id(k[w+(v<<3)>>2]|0,d)|0))break e;v=v+1|0;if((v|0)>=(z|0)){n=A;break d}}}}while(0);A=A+1|0;if((A|0)>=(u<<16>>16|0))break c;else B=B+24|0}j[Y>>1]=(n|0)==(j[C+36>>1]|0)?-1:n&65535;p=p+1|0;n=D}}while(0);E=E+1|0;if((E|0)>=(F|0))break;else D=D+72|0}}else p=0;if(!n)B=0;else{k[X>>2]=k[n+40>>2];q=k[n+16>>2]|0;k[T>>2]=q;if(i[n+36>>0]&8)k[P>>2]=k[P>>2]|1048576;B=n;b=k[q+68>>2]|0}}else{p=0;B=n}do if(N&(t|0)==0)if(k[h>>2]|0){q=i[I>>0]|0;if(q<<24>>24!=109)if(id(27560,c)|0)if(q<<24>>24==108){v=p;t=0;w=l;break}else V=49;else w=1;else V=49;if((V|0)==49){V=0;if(!(id(27568,c)|0))w=0;else{v=p;t=0;w=l;break}}k[X>>2]=w;v=k[h>>2]|0;if(v){b=k[v+68>>2]|0;u=j[v+38>>1]|0;f:do if(u<<16>>16>0){q=0;t=k[v+4>>2]|0;while(1){if(!(id(k[t>>2]|0,d)|0))break;q=q+1|0;if((q|0)<(u<<16>>16|0))t=t+24|0;else break f}q=(q|0)==(j[v+36>>1]|0)?-1:q}else q=0;while(0);n=u<<16>>16;if((q|0)>=(n|0)?(ei(d)|0)!=0:0)t=(i[v+44>>0]&32)==0?-1:q;else t=q;if((t|0)<(n|0)){p=p+1|0;do if((t|0)>=0){q=(t|0)>31?-1:1<<t;if(!w){k[K>>2]=k[K>>2]|q;break}else{k[M>>2]=k[M>>2]|q;break}}else i[J>>0]=68;while(0);j[Y>>1]=t;k[T>>2]=v;t=1;l=1;V=66}else{t=1;V=66}}else{v=p;t=0;w=l}}else{v=p;t=0;w=l}else V=66;while(0);if((V|0)==66){V=0;if((p|0)==0&(t|0)==1&(B|0)!=0)if((ei(d)|0)!=0?(i[(k[B+16>>2]|0)+44>>0]&32)==0:0){j[Y>>1]=-1;i[J>>0]=68;q=1;n=B;continue}else{v=0;w=l}else{v=p;w=l}}p=k[G>>2]|0;u=(v|0)==0;if((p|0)!=0&R&u?(O=k[p>>2]|0,(O|0)>0):0){l=k[p+4>>2]|0;n=0;do{q=k[l+(n*20|0)+4>>2]|0;if((q|0)!=0?(id(q,d)|0)==0:0){V=75;break b}n=n+1|0}while((n|0)<(O|0))}if(u){q=t;l=w;n=B;break}else{q=v;l=w;n=B}}g=k[g+16>>2]|0;p=q;o=o+1|0}do if((V|0)==75){if((j[g+28>>1]&1)==0?(k[(k[l+(n*20|0)>>2]|0)+4>>2]&2|0)!=0:0){k[W>>2]=q;yh(a,27576,W);e=2;break}Dv(a,p,n,f,10360,o);if((i[f>>0]|0)==24)V=115;else V=96}else if((V|0)==82){if(p&R?(k[P>>2]&64|0)!=0:0){i[f>>0]=97;k[T>>2]=0;e=1;break}q=(q|0)==1;if(!q){p=p?27608:27624;do if(Q)if(R){k[W>>2]=p;k[W+4>>2]=d;yh(a,27680,W);break}else{k[W>>2]=p;k[W+4>>2]=c;k[W+8>>2]=d;yh(a,27664,W);break}else{k[W>>2]=p;k[W+4>>2]=S;k[W+8>>2]=c;k[W+12>>2]=d;yh(a,27648,W)}while(0);i[a+17>>0]=1;E=e+24|0;k[E>>2]=(k[E>>2]|0)+1}o=j[Y>>1]|0;if(o<<16>>16>-1&(n|0)!=0){B=o<<16>>16>63;C=nw(1,0,o<<16>>16|0)|0;E=n+56|0;A=E;D=k[A+4>>2]|(B?-2147483648:L);k[E>>2]=k[A>>2]|(B?0:C);k[E+4>>2]=D}E=f+12|0;Lk(U,k[E>>2]|0);k[E>>2]=0;E=f+16|0;Lk(U,k[E>>2]|0);k[E>>2]=0;i[f>>0]=(l|0)!=0?62:-102;if(q)V=96;else e=2}while(0);g:do if((V|0)==96){p=k[m>>2]|0;l=k[a>>2]|0;if(!((k[l+284>>2]|0)==0|(b|0)==0)){o=k[l+20>>2]|0;if((o|0)>0){m=k[l+16>>2]|0;n=0;while(1){l=n+1|0;if((k[m+(n<<4)+12>>2]|0)==(b|0)){l=n;break}if((l|0)<(o|0))n=l;else break}if((l|0)<0){V=115;break}else b=l}else b=0;if((i[f>>0]|0)!=62){m=k[p>>2]|0;if((m|0)<=0){V=115;break}h=k[X>>2]|0;l=0;while(1){if((h|0)==(k[p+(l*72|0)+48>>2]|0))break;l=l+1|0;if((l|0)>=(m|0)){V=115;break g}}h=p+(l*72|0)+24|0}m=k[h>>2]|0;h=j[Y>>1]|0;l=h<<16>>16;if(m){if(h<<16>>16<=-1){h=j[m+36>>1]|0;if(h<<16>>16>-1)h=k[(k[m+4>>2]|0)+((h<<16>>16)*24|0)>>2]|0;else h=12944}else h=k[(k[m+4>>2]|0)+(l*24|0)>>2]|0;if((jv(a,k[m>>2]|0,h,b)|0)==2){i[f>>0]=101;V=115}else V=115}else V=115}else V=115}while(0);if((V|0)==115){E=e+20|0;k[E>>2]=(k[E>>2]|0)+1;if((g|0)==(e|0))e=1;else{do{e=k[e+16>>2]|0;E=e+20|0;k[E>>2]=(k[E>>2]|0)+1}while((e|0)!=(g|0));e=1}}r=Z;return e|0}function uv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=i[b>>0]|0;a:do if(c<<24>>24==-100|c<<24>>24==-102){c=k[a+24>>2]|0;d=k[c>>2]|0;b:do if((d|0)!=0?(e=k[d>>2]|0,(e|0)>0):0){a=k[b+28>>2]|0;b=0;while(1){if((a|0)==(k[d+(b*72|0)+48>>2]|0))break;b=b+1|0;if((b|0)>=(e|0))break b}a=c+4|0;k[a>>2]=(k[a>>2]|0)+1;break a}while(0);a=c+8|0;k[a>>2]=(k[a>>2]|0)+1}while(0);return 0}function vv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0;w=r;r=r+16|0;if((r|0)>=(s|0))ka();v=w;o=w+12|0;a:do if(!c)e=0;else{t=k[k[b>>2]>>2]|0;u=k[a>>2]|0;b:do if((k[c>>2]|0)>0){e=0;p=k[c+4>>2]|0;c:while(1){m=k[p>>2]|0;d:do if(!m)f=0;else{f=m;while(1){g=k[f+4>>2]|0;if(!(g&4096))break d;if(!(g&262144))f=f+12|0;else f=k[(k[f+20>>2]|0)+4>>2]|0;f=k[f>>2]|0;if(!f){f=0;break}}}while(0);if((i[d>>0]|0)!=71?(n=wv(k[b>>2]|0,f)|0,k[o>>2]=n,(n|0)>0):0)j[p+16>>1]=n;else q=13;do if((q|0)==13){q=0;if(Rs(f,o)|0){f=k[o>>2]|0;if((f+-1|0)>>>0>65534)break c;j[p+16>>1]=f;break}h=p+16|0;j[h>>1]=0;if(qs(a,m)|0){e=1;break a}g=k[b>>2]|0;l=k[g>>2]|0;if((l|0)>0){g=k[g+4>>2]|0;f=0;do{x=f;f=f+1|0;if(!(Hu(m,k[g+(x*20|0)>>2]|0,-1)|0))j[h>>1]=f}while((f|0)<(l|0))}}while(0);e=e+1|0;if((e|0)>=(k[c>>2]|0))break b;else p=p+20|0}k[v>>2]=e+1;k[v+4>>2]=d;k[v+8>>2]=t;yh(u,27064,v);e=1;break a}while(0);e=Bu(u,b,c,d)|0}while(0);r=w;return e|0}function wv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:do if((i[b>>0]|0)==27?(d=k[b+8>>2]|0,e=k[a>>2]|0,(e|0)>0):0){a=k[a+4>>2]|0;b=0;while(1){c=k[a+(b*20|0)+4>>2]|0;if((c|0)!=0?(id(c,d)|0)==0:0)break;b=b+1|0;if((b|0)>=(e|0)){b=0;break a}}b=b+1|0}else b=0;while(0);return b|0}function xv(a,b){a=a|0;b=b|0;var c=0,d=0;c=j[a+38>>1]|0;a:do if(c<<16>>16>0){d=k[a+4>>2]|0;c=c<<16>>16;a=0;while(1){if(!(id(k[d+(a*24|0)>>2]|0,b)|0))break a;a=a+1|0;if((a|0)>=(c|0)){a=-1;break}}}else a=-1;while(0);return a|0}function yv(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0;i=k[a>>2]|0;c=Wv(i,b,c,d)|0;d=Wv(i,b,e,f)|0;f=cr(a,79,c,d,0)|0;if((f|0)!=0&(g|0)!=0){c=f+4|0;k[c>>2]=k[c>>2]|1;j[f+36>>1]=k[d+28>>2]}f=xs(i,k[h>>2]|0,f)|0;k[h>>2]=f;return}function zv(a,b){a=a|0;b=b|0;var c=0,d=0;if(a){c=b&65535;do{d=a+4|0;k[d>>2]=k[d>>2]|1;j[a+36>>1]=c;zv(k[a+12>>2]|0,b);a=k[a+16>>2]|0}while((a|0)!=0)}return}function Av(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;e=0;while(1){f=i[a+e>>0]|0;if(f<<24>>24==46|f<<24>>24==0)break;e=e+1|0}if(d)if((Kc(a,d,e)|0)==0?(i[d+e>>0]|0)==0:0)g=7;else e=0;else g=7;do if((g|0)==7){d=e+1|0;g=a+d|0;f=0;while(1){h=i[a+(f+d)>>0]|0;if(h<<24>>24==46|h<<24>>24==0)break;f=f+1|0}if(c){if(Kc(g,c,f)|0){e=0;break}if(i[c+f>>0]|0){e=0;break}}if((b|0)!=0?(id(a+(e+2+f)|0,b)|0)!=0:0){e=0;break}e=1}while(0);return e|0}function Bv(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if((a|0)!=0?(d=k[a+4>>2]|0,(d|0)>0):0){c=k[a>>2]|0;a=0;while(1){if(!(id(k[c+(a<<3)>>2]|0,b)|0))break a;a=a+1|0;if((a|0)>=(d|0)){a=-1;break}}}else a=-1;while(0);return a|0}function Cv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;k[e>>2]=c;if(!c)d=0;else{d=c;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-c&1073741823}k[e+4>>2]=d;d=Ar(a,b,e,0)|0;r=f;return d|0}function Dv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0;q=r;r=r+32|0;if((r|0)>=(s|0))ka();m=q;h=b+4|0;l=k[(k[h>>2]|0)+(c*20|0)>>2]|0;n=k[a>>2]|0;g=Rr(n,l,0,0)|0;do if(g){if((i[l>>0]|0)!=-102?(i[e>>0]|0)!=71:0){if((f|0)>0){k[m+0>>2]=0;k[m+4>>2]=0;k[m+8>>2]=0;k[m+12>>2]=0;k[m+16>>2]=0;k[m+20>>2]=0;k[m>>2]=88;k[m+24>>2]=f;ws(m,g)|0}g=cr(a,24,g,0,0)|0;if(!g)break;b=g+4|0;k[b>>2]=k[b>>2]|4096;b=(k[h>>2]|0)+(c*20|0)+18|0;f=j[b>>1]|0;if(!(f<<16>>16)){c=a+456|0;f=(k[c>>2]|0)+1|0;k[c>>2]=f;f=f&65535;j[b>>1]=f}k[g+28>>2]=f&65535}if((i[d>>0]|0)==95)g=Cv(a,g,k[d+8>>2]|0)|0;b=d+4|0;k[b>>2]=k[b>>2]|32768;Lk(n,d);f=d+0|0;h=g+0|0;l=f+48|0;do{k[f>>2]=k[h>>2];f=f+4|0;h=h+4|0}while((f|0)<(l|0));if((k[b>>2]&1024|0)==0?(o=d+8|0,p=k[o>>2]|0,(p|0)!=0):0){a=ph(n,p)|0;k[o>>2]=a;k[b>>2]=k[b>>2]|65536}rg(n,g)}while(0);r=q;return}function Ev(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,l=0,n=0;n=a+12|0;d=k[n>>2]|0;h=a+16|0;f=k[h>>2]|0;l=a+20|0;do if((d|0)<(f|0))i=15;else{d=k[l>>2]|0;g=k[k[k[a>>2]>>2]>>2]|0;e=rh(g,f*96|0,0)|0;k[l>>2]=e;if(!e){if(c&1)Lk(g,b);k[l>>2]=d;d=0;break}pw(e|0,d|0,(k[n>>2]|0)*48|0)|0;if((d|0)!=(a+24|0))rg(g,d);e=k[l>>2]|0;do if(!g)e=qc[k[8744+48>>2]&127](e)|0;else{if((k[g+276>>2]|0)>>>0<=e>>>0?(k[g+280>>2]|0)>>>0>e>>>0:0){e=m[g+248>>1]|0;break}e=qc[k[8744+48>>2]&127](e)|0}while(0);i=(e>>>0)/48|0;k[h>>2]=i;d=k[n>>2]|0;kw((k[l>>2]|0)+(d*48|0)|0,0,(i-d|0)*48|0)|0;d=k[n>>2]|0;i=15}while(0);if((i|0)==15){k[n>>2]=d+1;f=k[l>>2]|0;a:do if(!b){j[f+(d*48|0)+16>>1]=1;b=0}else{if(!(k[b+4>>2]&262144))e=1;else{e=k[b+28>>2]|0;e=((ks(e,((e|0)<0)<<31>>31)|0)&65535)+65266&65535}j[f+(d*48|0)+16>>1]=e;while(1){e=k[b+4>>2]|0;if(!(e&4096))break a;if(!(e&262144))b=b+12|0;else b=k[(k[b+20>>2]|0)+4>>2]|0;b=k[b>>2]|0;if(!b){b=0;break}}}while(0);k[f+(d*48|0)>>2]=b;j[f+(d*48|0)+20>>1]=c;k[f+(d*48|0)+24>>2]=a;k[f+(d*48|0)+4>>2]=-1}return d|0}function Fv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:do if(b)if((i[b>>0]|0)==-102){b=k[b+28>>2]|0;d=k[a>>2]|0;if((d|0)>0)c=0;else{d=0;c=0;break}while(1){if((k[a+(c<<2)+4>>2]|0)==(b|0))break;c=c+1|0;if((c|0)>=(d|0)){d=0;c=0;break a}}c=nw(1,0,c|0)|0;d=L;break}else{e=Fv(a,k[b+16>>2]|0)|0;c=L;f=Fv(a,k[b+12>>2]|0)|0;c=L|c;d=b+20|0;if(!(k[b+4>>2]&2048)){b=Qu(a,k[d>>2]|0)|0;d=L}else{b=Gv(a,k[d>>2]|0)|0;d=L}d=c|d;c=f|e|b;break}else{d=0;c=0}while(0);L=d;return c|0}function Gv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0;if(!b){b=0;c=0}else{f=b;c=0;b=0;do{e=k[f+32>>2]|0;l=Qu(a,k[f>>2]|0)|0;b=L|b;j=Qu(a,k[f+40>>2]|0)|0;b=b|L;i=Qu(a,k[f+48>>2]|0)|0;b=b|L;h=Fv(a,k[f+36>>2]|0)|0;b=b|L;d=Fv(a,k[f+44>>2]|0)|0;c=l|c|j|i|h|d;b=b|L;if((e|0)!=0?(g=k[e>>2]|0,(g|0)>0):0){d=0;do{i=Gv(a,k[e+(d*72|0)+28>>2]|0)|0;b=L|b;j=Fv(a,k[e+(d*72|0)+52>>2]|0)|0;c=i|c|j;b=b|L;d=d+1|0}while((d|0)<(g|0))}f=k[f+52>>2]|0}while((f|0)!=0)}L=b;return c|0}function Hv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0;l=j[b+18>>1]|0;h=j[c+18>>1]|0;e=h|l;if(((!((l&62)==0|(h&62)==0)?(d=e&65535,(d&26|0)==(d|0)|(d&38|0)==(d|0)):0)?(g=k[b>>2]|0,f=k[c>>2]|0,(Hu(k[g+12>>2]|0,k[f+12>>2]|0,-1)|0)==0):0)?(Hu(k[g+16>>2]|0,k[f+16>>2]|0,-1)|0)==0:0){if(d+65535&d)e=(d&24|0)==0?32:8;f=Rr(k[k[k[a>>2]>>2]>>2]|0,g,0,0)|0;if(f){e=e&65535;d=79;while(1)if((e|0)==(2<<d+-79|0))break;else d=d+1|0;i[f>>0]=d;Ju(a,Ev(a,f,3)|0)}}return}function Iv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,l=0,n=0;k[a>>2]=b;k[a+4>>2]=b;a:do if((f|0)!=0&(d|0)>-1){i[a+12>>0]=i[(k[(k[f+12>>2]|0)+4>>2]|0)+(d*24|0)+21>>0]|0;g=k[f+4>>2]|0;if((j[g>>1]|0)==(d|0))b=0;else{h=m[f+48>>1]|0;l=0;while(1){b=l+1|0;if((l|0)>(h|0)){b=0;break a}if((j[g+(b<<1)>>1]|0)==(d|0))break;else l=b}}k[a+8>>2]=k[(k[f+32>>2]|0)+(b<<2)>>2];n=8}else{i[a+12>>0]=0;k[a+8>>2]=0;n=8}while(0);if((n|0)==8){k[a+16>>2]=e;k[a+20>>2]=0;k[a+24>>2]=c;k[a+28>>2]=d;i[a+13>>0]=2;i[a+14>>0]=2;b=Jv(a)|0}return b|0}
[all...]
/external/v8/test/mjsunit/asm/poppler/
H A Dpoppler.js[all...]
/external/v8/tools/profviz/
H A Dgnuplot-4.6.3-emscripten.js[all...]

Completed in 1255 milliseconds