Searched refs:Ir (Results 1 - 25 of 25) sorted by relevance

/external/valgrind/callgrind/tests/
H A Dclreq.stderr.exp3 Events : Ir
H A Dthreads.stderr.exp3 Events : Ir Ge
H A Dsimwork-branch.stderr.exp3 Events : Ir Bc Bcm Bi Bim
H A Dnotpower2-hwpref.stderr.exp3 Events : Ir Dr Dw I1mr D1mr D1mw ILmr DLmr DLmw
H A Dnotpower2-use.stderr.exp3 Events : Ir Dr Dw I1mr D1mr D1mw ILmr DLmr DLmw AcCost1 SpLoss1 AcCost2 SpLoss2
H A Dnotpower2-wb.stderr.exp3 Events : Ir Dr Dw I1mr D1mr D1mw ILmr DLmr DLmw ILdmr DLdmr DLdmw
H A Dnotpower2.stderr.exp3 Events : Ir Dr Dw I1mr D1mr D1mw ILmr DLmr DLmw
H A Dsimwork-both.stderr.exp3 Events : Ir Dr Dw I1mr D1mr D1mw ILmr DLmr DLmw Bc Bcm Bi Bim
H A Dsimwork-cache.stderr.exp3 Events : Ir Dr Dw I1mr D1mr D1mw ILmr DLmr DLmw
H A Dsimwork1.stderr.exp3 Events : Ir Dr Dw I1mr D1mr D1mw ILmr DLmr DLmw
H A Dsimwork2.stderr.exp3 Events : Ir Dr Dw I1mr D1mr D1mw ILmr DLmr DLmw ILdmr DLdmr DLdmw
H A Dsimwork3.stderr.exp3 Events : Ir Dr Dw I1mr D1mr D1mw ILmr DLmr DLmw AcCost1 SpLoss1 AcCost2 SpLoss2
H A Dthreads-use.stderr.exp3 Events : Ir Dr Dw I1mr D1mr D1mw ILmr DLmr DLmw AcCost1 SpLoss1 AcCost2 SpLoss2 Ge sysCount sysTime
/external/valgrind/cachegrind/
H A Dcg_main.c107 CacheCC Ir; /* Insn read counts */ member in struct:__anon19850
268 lineCC->Ir.a = 0;
269 lineCC->Ir.m1 = 0;
270 lineCC->Ir.mL = 0;
300 * Ir - not known / not important whether it is an IrNoX
307 n->parent->Ir.a++;
314 n->parent->Ir.a++;
315 n2->parent->Ir.a++;
322 n->parent->Ir.a++;
323 n2->parent->Ir
[all...]
/external/valgrind/callgrind/
H A Dmain.c114 CLG_DEBUG(6, "log_global_event: Ir %#lx/%u\n",
143 CLG_DEBUG(6, "log_cond_branch: Ir %#lx, taken %ld\n",
173 CLG_DEBUG(6, "log_ind_branch: Ir %#lx, dst %#lx\n",
226 For example, it could well be profitable to handle two adjacent Ir
251 } Ir; member in union:__anon19871::__anon19872
334 VG_(printf)("Ir (InstrInfo %p) at +%u\n",
397 // Ir event always is first for a guest instruction
460 /* Merge an Ir with a following Dr. */
462 /* Why is this true? It's because we're merging an Ir
463 with a following Dr. The Ir derive
[all...]
/external/webrtc/talk/media/testdata/
H A Dvideo.rtpdump240 ߭.NoC��u��X�P=4��5:�� ��C'�_����+Qt>q�8B:D;b�-\���ܵͮ�uϘGn�a�3�P6���Gz@�g�h��p��Ͽ�����B����<�}?�B��dߜ�NYh�/����崉�0|Om��N8�?@O��_�ɰ��H�/��G�ȹ���"�Tn4� џ��Z��e�}�V�ZU#�����Je���{�?~�7�_���B<��,����_�����5��~Ϯ]�ݮ���CJc���j�~#�7�E�I�/��n�u��zs3����|�<=�G?���=�n��.��f��@r$!��Y�'BXHL��v`�#�&ng}���G V���qLy=8�ع� y����;<N�k�yr*��i2֙Z��m0�`�o ���L��K�w �<χ�l���_��Z�'A��'t�SA��k�W�UEu۷���r}�Ҏʮ�T_'؄EZ���o�Y����6 �������5�b�fS)�4�c�o�fL�K� �x��ө��-�ج���|�� �n���A�nZIw��4+�VQ^�n�庖�h#���[��>��;M:��1�|+���� �O�h���2��}�����a��ف�o.���@Sxwx�;��E��ȍ���� �����;����6�����l>��!�U����/K�g`�:����ߠzZ������2��v 2�/�f89�ZuK���rQq��K�)��-_�c�D<�����Ir�/F������{�������?ѷ�#D�C7�cA|_�yp"z<9�i*����/o��=�ro�a�e���{�;]2
735 � �`;�e�6���޵��͑�E0z Q���?��Q\Tt��f�A�5�Ir�}! ��_��:w �
1108 d¬ ���I�/�O|W�~8eUw�n��"�S�J�u2���x;g�����?_7��}����pD lדƊp�`E�gI�•Q���)��N �~(B����ǀkc���>-n��T��.��f��Ir�!�=����� JK<� ��pRKx(��"7 ����":
H A Dh264-svc-99-640x360.rtpdump1141 ����0 ���⨋ ��Űu��Ir R�D������~ ;�����V��� �A魋���
1984 �T[����R�5/����γ����{�{��� �|���?bxQ�� G�VL�?�E�a�l&.���������걭x�D��uRh̯�n+��Z}�F�)��۳S�c�����f�g_i��;��[�"��)�C-�����𛥅�$ ��iǪcQOLz^/�S�����&�W�w���ї ��+>�����E�{�ק�1䇙!�H��*�s�����n����N�����&���f��f ��[Ir�8>�G��j4�G��;܁�^Xy��ya�a��,&k��>;
3124 �㳓�PD��������qP� ��|����o����#������W�/�xT���8�ۨ%���0C�E��ۈێ�'H�/�XD"@B��.+j�(ΖG���w4�Xa��% ��{�����B����Ir����gOE}�b��tF��@�<>����@_�p�2��X�B+��v �r�l��n�cnt�����S�����/�(J�k`�}8������d��~SY��VL�=�������ə���&���£k��HI�}Ρ��o;5H9tC������ۀ����}UWџ��e�� �#��@H��d��b�� �?�^ު����� ��nP&���ܜ]j��v���m��P���#� hך o��/�e�A@f��5K����4:���»� ZF�aL�<
3285 ;W�$� ���_�������.�o i��?M=�����!�t��Yl=mU������c&x�����f��f ��Ir8>����.�� `!�v�+>b�K�|�p" D�������hSծh��z=߮�4���f�w�_��T��+�wwﻱ�������r�6�����C��A/���<a7H�[rՑ��oe�w�/���w��ww�� ���<r���W����י���\�{�C�m�(���PL��Nt&�lY_�_�3M��w�z��z��?���W�y����Zij�r��k_"�T�5��'S~����+~L� o�k���OM�7��>�X����ÍR]�G������o���w�Gwܦ/𠛞O��q6��m�-�
4168 ��A���=�}5�Uk��Hk�;��|+^\�}?������j�m~��4&j�?�{���,]�Q~�̶�_�̇aR�O�6=���E&�_¼�@����-=ψ�^�W�,�@��'�ɱ�"p|k���h��&��.���f��f���rn8>���Z4�A6q�$��6C���6�5' �F���Q��W�GE���t�D��O��F�{��Ƶ�,���xS��o/,�.y��B.���g�K���@^4���h���� k� �\g ��^;��b��$���]��~�!u��s� O�L����;�� .��'7rZd6t�OZ��:z�#�m5�q|o���w�c&��:���f��f��%ro��g����g+��r9���\t/��p^�F��Wg�B{���J�C�_5��މZ<��g@�� #���)#�Չ��O��|�#���MՊ��xׯ��ux���\�(j�Gs��c�=u�NL�mew��&��:���f��f��Irp�g���g��s܁��ya�*�@mB�2g
5696 x��8�i�{�=�u� �d�F��W��z������'V���f��f�+��r��g�&�O�gH�&� ءW�mjH�K$����B�HIw+�Т�Ir�+��tlZ�)����DZ���|>nV9X��͜Y�����gț܃b�^Xxy�
6235 C� ��L��]��w�6{��E翉\�I�x9�`�������߂7�)��h�+�r�����=�������T5�������g�E��'~ �J���~ �T��_���u�6�> N���V�����a|�V�ғx�� ��H\'�C��=�'���{�՟�j$n�?d:)�� Fv��࿵�K���?��+3��օ��I�{v� סe��M��Yp�i�SK�c'������f��f��5|/r.��g�*���g үrf0 x��g /J����[�����'������f��f��5|Ir/�g�*��gȫ܁ٍya�!�wp���ʪE�g�ȫ܁ٍya�4�k�cm= �(�Wx,���O'�c���\�� ���c�\˜N\�'B���UM�c'������f��f��5� r08>��G�*�.��G !үr��.��G !/J���`-�����'������f��f��5�2r18>�G�*�<4�GA2*� �זBV #����z�|O��N�.Rń,囒��<��8�� N��i��`�4�Gȫ܀vc^Xxx��4�2�ZSK(�c'���i��f��f.�5��r2��g�*���gҶ�`���g /J�;1��ܟ��{(��'���i��f��f.�5��r3�g�*�=�g�ȭ������|�Qwx��JX V���;<��f��1�F}�~~~��̙�İ$@�gȭ�����-�<q�4��V�c'���!��f��f?�6}*r48>���+�.�� W!���+:�6B��r�(�*�� =�����͏������
9082 ��MdėO��0n�b�u�5,��B�a��x��_wOx7�慧*�d����Ϳ��O�V?����*�D���2�;�9��|iI_E����wT�b�0���zX�y6�/��F�\U�ɵ��lH��w������z!�j����6S���j�������u���#�8o��B�����|f��]X�A��X:0�1��"z B(?��2���Ѫ|+�����?B�e�;����(�Ŋg�%z��;C���4o���,!�麙> >��haaK���f�j�����E������K�����MS�h��No�Դe�*���ȼ�q۬�ԽG���1l��!#�����h�{7��Ŭ����zEF��� �� ��� _�n��f�Α`��������������UF�5$�A��\ʽI^N^����� �m���<E��}]`�X�Z>��|g~�M;�A�0�)�xj��j>��� ښ���1�j�̢C�G/AA�,_�A�U�O<d��C��l��p$s������|�e��?�&���vN�5?�˲_̸�?�W]���1�%�3i��a��5�L̔x�l�)����K߮�4Ҕf@e��KZ�i�3�e����WK�2����qh��i�'����)�����r�UTý���_V鶱ۤ����ܫ`�8�~t��U��!�Oo�T� .<s���|>pv8 Aq��!����ź�� �h�ƕ����?��� ,l����_�0��d!«J��wu��*��?5-k��s3(��[u�u`y�T�7@�����&Ґc(��^���f��f]�_c�r$8>���>�.�� �!��v�+>>(T�0(�8z$x��� SR�v"�Q�7 :��N�f?�Y<����7��;M�C�\�'�@F�\�V��6 ��*V�WVD�YB�A��Hƭ���;i���cD=��4b#xC�RY7�ʓ5U=�`���}�� �N����g�LǓ)��6ޚ|��w'GX/�m��7�`��A��5pw�o����(�K����,V�u��.�#�K�z�z��Y���/#�H[��k�c�Ye��]�ePfR���`�XD��O�]�f>� ��r{���r_��J�܋� ���p�O�_����&�xgR���TM|�r��<b�bq� ���{�ϡ���1��"6����D��+�`�������7[�Z�����Ir� � ���@����(�ӯm�d{��y=��K�6��u��lc��_ׅ\������&Ґc(��^���f��fK�_��r%8>��>��4�A6��$��i
9604 �ԋ�[��@�>o�]�S���`�4 �V��v�/�# ��T���X�����S�O��5}��#�����Թ}�L˜-U�r��9Xv�ɽ�M�f��qp���ռí�zL'�^����ܛqǒ�*Ռ��}���{�ܬ��܃����LA��_\�y��(�2����\%m��]�z��}<ԧt8���l�����yso�4���Ӽ�m���� \F2�">�Ir���/���qb64��7����!����Sd�׸�r~2S'>h��Z�XLf:o87���T�RD�N+�9���� ��'��ӗ;PK�{��v���}��(% �'-�Զ���?0���*�D�Sy��~A�P���T� s�)Es2�P��Z`}�s�<�2���5e���s!}]�S5g2����jGu�qR��#�t�f�M
15202 +xc��*�|�Y����Z�����3g��V�:r���2������I��m�I��7'�*��E��q�P���[i�0�o3�V�8�P[5�7����g��Ы�W�w��X�_�O#:����q��|�����x��f�o�0��^n�&�ֱ��wڣ�%��s�G�[jD�t�z\��|�3%���=/07s� ��_Q*G5�J� ��C��@@/��ӎk��o{����]�1��Jt$׌�qrs�W�:���2�$A��7�8�e<EHY�f�#o��#�8����_Y���G$�EUO��?DR���7N ����R��YQU�ӯ�\�����|�,jL��&x��C�V�h�z�i��|���Fs�����(��ǧ �������)�0�=�BI�,l�8��κx'|n<�+%�k7sm�y�Ir�' �
[all...]
/external/v8/test/mjsunit/asm/sqlite3/
H A Dsqlite.js6 function Vr(f,g,k,l,m){f=f|0;g=g|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;x=i;i=i+16|0;if((i|0)>=(j|0))ba();u=x;v=x+8|0;c[v>>2]=0;a:do if(!g){c[m>>2]=0;n=0}else{o=a[g>>0]|0;if(o<<24>>24==-98)do{g=c[g+12>>2]|0;o=a[g>>0]|0}while(o<<24>>24==-98);if(o<<24>>24==-97)q=d[g+38>>0]|0;else q=o&255;if((q|0)==38){p=Tq(c[g+8>>2]|0,0)|0;n=Vr(f,c[g+12>>2]|0,k,p,m)|0;o=c[m>>2]|0;if(!o)break;cm(o,p,1);bm(c[m>>2]|0,l,1);break}else if((q|0)==157){g=c[g+12>>2]|0;q=a[g>>0]|0;if((q&-2)<<24>>24==-124){p=-1;o=-1;t=q&255;q=26016;w=12}else w=30}else{p=1;o=0;t=q;q=10360;w=12}b:do if((w|0)==12){c:do switch(t|0){case 134:{n=ih(f,40,0)|0;if(!n){c[v>>2]=n;break c}r=n+0|0;s=r+40|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0));b[n+8>>1]=1;c[n+32>>2]=f;c[v>>2]=n;o=(c[g+8>>2]|0)+2|0;g=o;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;v=(g-o&1073741823)+-1|0;Tg(n,Ut(f,o,v)|0,(v|0)/2|0,0,75)|0;o=n;n=0;break b}case 157:{g=c[g+12>>2]|0;w=30;break b}case 101:{n=ih(f,40,0)|0;if(!n){c[v>>2]=n;break c}else{r=n+0|0;s=r+40|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0));b[n+8>>1]=1;c[n+32>>2]=f;c[v>>2]=n;o=n;n=0;break b}}case 97:case 132:case 133:{n=ih(f,40,0)|0;if(!n){c[v>>2]=n;break c}r=n+0|0;s=r+40|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0));b[n+8>>1]=1;c[n+32>>2]=f;c[v>>2]=n;do if(!(c[g+4>>2]&1024)){p=c[g+8>>2]|0;c[u>>2]=q;c[u+4>>2]=p;p=qh(f,19456,u)|0;if(!p)break c;if(n)Tg(n,p,-1,1,75)|0}else{q=c[g+8>>2]|0;q=ow(q|0,((q|0)<0)<<31>>31|0,p|0,o|0)|0;p=C;g=n+8|0;if(!(b[g>>1]&9312)){v=n;c[v>>2]=q;c[v+4>>2]=p;b[g>>1]=4;break}else{Vg(n,q,p);break}}while(0);if((t&-2|0)==132&l<<24>>24==65)bm(n,67,1);else bm(n,l,1);o=n+8|0;g=e[o>>1]|0;if(g&12)b[o>>1]=g&65533;if(k<<24>>24==1){o=n;n=0;break b}o=n;n=Ul(n,k&255)|0;break b}default:{o=0;n=0;break b}}while(0);a[f+65>>0]=1;ig(f,0);Ih(n);n=7;break a}while(0);if((w|0)==30){u=(Vr(f,g,k,l,v)|0)==0;o=c[v>>2]|0;if(u&(o|0)!=0){kp(o);p=o+8|0;g=b[p>>1]|0;do if(!(g&8)){q=o;n=c[q>>2]|0;q=c[q+4>>2]|0;if((n|0)==0&(q|0)==-2147483648){h[o>>3]=9223372036854775808.0;b[p>>1]=g&48640|8;break}else{u=$v(0,0,n|0,q|0)|0;v=o;c[v>>2]=u;c[v+4>>2]=C;break}}else h[o>>3]=-+h[o>>3];while(0);bm(o,l,k);n=0}else n=0}c[m>>2]=o}while(0);i=x;return n|0}function Wr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;do if((d|0)!=0?(g=b+19|0,h=a[g>>0]|0,(h&255)<8):0){f=0;e=b+116|0;while(1){if((c[e+12>>2]|0)==(d|0)){f=5;break}f=f+1|0;if((f|0)>=10){f=7;break}else e=e+20|0}if((f|0)==5){a[e+6>>0]=1;break}else if((f|0)==7){a[g>>0]=h+1<<24>>24;c[b+((h&255)<<2)+24>>2]=d;break}}while(0);return}function Xr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+32|0;if((i|0)>=(j|0))ba();n=o;e=b+484|0;l=c[e>>2]|0;m=c[b>>2]|0;do if((l|0)!=0?(Zr(b),c[b+512>>2]=0,(c[l+52>>2]|0)>=1):0){if(a[m+145>>0]|0)if(!(Ek((c[l+68>>2]|0)+8|0,c[l>>2]|0,l)|0)){c[e>>2]=0;break}else{a[m+65>>0]=1;break}if(d)c[b+500>>2]=(c[d>>2]|0)-(c[b+496>>2]|0)+(c[d+4>>2]|0);c[n>>2]=b+496;k=qh(m,25256,n)|0;d=c[l+68>>2]|0;a:do if(d){f=c[m+20>>2]|0;if((f|0)>0){g=c[m+16>>2]|0;h=0;while(1){e=h+1|0;if((c[g+(h<<4)+12>>2]|0)==(d|0)){e=h;break a}if((e|0)<(f|0))h=e;else break}}else e=0}else e=-1e6;while(0);g=c[l>>2]|0;h=c[b+384>>2]|0;c[n>>2]=c[(c[m+16>>2]|0)+(e<<4)>>2];c[n+4>>2]=(e|0)==1?13184:13208;c[n+8>>2]=g;c[n+12>>2]=g;c[n+16>>2]=k;c[n+20>>2]=h;xr(b,25280,n);ig(m,k);k=Kq(b)|0;zr(b,e);sh(k,144,0,0,0)|0;c[n>>2]=c[l>>2];Er(k,e,qh(m,25368,n)|0);b=b+72|0;n=(c[b>>2]|0)+1|0;c[b>>2]=n;b=c[l>>2]|0;th(k,sh(k,97,0,n,0)|0,b,0);sh(k,147,e,n,0)|0}while(0);i=o;return}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=b+52|0;i=c[h>>2]|0;e=i+1|0;c[h>>2]=e;g=(i<<2)+8|0;f=b+56|0;g=no(a,c[f>>2]|0,g,((g|0)<0)<<31>>31)|0;if(!g){if((i|0)>0){b=0;do{ig(a,c[(c[f>>2]|0)+(b<<2)>>2]|0);b=b+1|0}while((b|0)!=(i|0))}ig(a,d);ig(a,c[f>>2]|0);c[h>>2]=0}else{c[g+(i<<2)>>2]=d;c[g+(e<<2)>>2]=0}c[f>>2]=g;return}function Zr(b){b=b|0;var d=0,e=0,f=0,g=0;d=c[b+512>>2]|0;if((d|0)!=0?(g=c[b+484>>2]|0,(g|0)!=0):0){e=c[b+516>>2]|0;f=c[b>>2]|0;b=fw(e|0,((e|0)<0)<<31>>31|0,1,0)|0;b=ih(f,b,C)|0;if(!b)b=0;else{gw(b|0,d|0,e|0)|0;a[b+e>>0]=0}Yr(f,g,b)}return}function _r(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();l=o;m=c[b>>2]|0;n=Sq(m,e)|0;k=(d|0)!=0;if((n|0)!=0&k?(h=c[d>>2]|0,(h|0)>0):0){e=h;h=0;do{if(!($c(n,c[d+(h<<4)+8>>2]|0)|0)){c[l>>2]=n;ph(b,25184,l);e=c[d>>2]|0}h=h+1|0}while((h|0)<(e|0))}if(k){h=(c[d>>2]<<4)+24|0;h=no(m,d,h,((h|0)<0)<<31>>31)|0;if(!h)e=10;else{d=h;e=11}}else{e=ih(m,24,0)|0;if(!e)e=10;else{h=e+0|0;d=h+24|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(d|0));d=e;e=11}}if((e|0)==10){Jk(m,f);Ik(m,g,1);ig(m,n)}else if((e|0)==11){m=d+8|0;c[m+(c[d>>2]<<4)+8>>2]=g;g=c[d>>2]|0;c[m+(g<<4)+4>>2]=f;c[m+(g<<4)>>2]=n;c[m+(g<<4)+12>>2]=0;c[d>>2]=g+1}i=o;return d|0}function $r(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+96|0;if((i|0)>=(j|0))ba();m=n+48|0;f=n;g=c[c[b+32>>2]>>2]|0;h=m+0|0;k=g+0|0;l=h+48|0;do{a[h>>0]=a[k>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((a[b+43>>0]|0)!=2){h=c[b+4>>2]|0;_b[c[(c[h>>2]|0)+60>>2]&31](h)}h=f+0|0;k=g+48|0;l=h+48|0;do{a[h>>0]=a[k>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((Vv(m,f,48)|0)==0?(a[m+12>>0]|0)!=0:0){k=m+40|0;l=m;g=0;f=0;do{g=g+f+(c[l>>2]|0)|0;f=g+f+(c[l+4>>2]|0)|0;l=l+8|0}while(l>>>0<k>>>0);if((g|0)==(c[k>>2]|0)?(f|0)==(c[m+44>>2]|0):0){f=b+52|0;if(!(Vv(f,m,48)|0))f=0;else{c[d>>2]=1;h=f+0|0;k=m+0|0;l=h+48|0;do{c[h>>2]=c[k>>2];h=h+4|0;k=k+4|0}while((h|0)<(l|0));f=e[b+66>>1]|0;c[b+36>>2]=f<<16&65536|f&65024;f=0}}else f=1}else f=1;i=n;return f|0}function as(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;b=pc[c[(c[a>>2]|0)+8>>2]&31](a,g,4,b,e)|0;if(!b)c[f>>2]=(d[g+1>>0]|0)<<16|(d[g>>0]|0)<<24|(d[g+2>>0]|0)<<8|(d[g+3>>0]|0);i=h;return b|0}function bs(a,b){a=a|0;b=b|0;var c=0,d=0,f=0;if(b>>>0<0|(b|0)==0&a>>>0<8)if(b>>>0<0|(b|0)==0&a>>>0<2)a=0;else{c=40;do{c=(c&65535)+65526|0;a=ew(a|0,b|0,1)|0;b=C}while(b>>>0<0|(b|0)==0&a>>>0<8);c=c&65535;d=11}else{if(b>>>0>0|(b|0)==0&a>>>0>255){f=a;d=b;c=40;while(1){c=(c&65535)+40|0;a=iw(f|0,d|0,4)|0;b=C;if(d>>>0>0|(d|0)==0&f>>>0>4095){f=a;d=b}else break}c=c&65535}else c=40;if(b>>>0>0|(b|0)==0&a>>>0>15){f=a;while(1){c=(c&65535)+10&65535;a=iw(f|0,b|0,1)|0;if(b>>>0>0|(b|0)==0&f>>>0>31){f=a;b=C}else break}d=11}else d=11}if((d|0)==11)a=(c&65535)+65526+(e[13496+((a&7)<<1)>>1]|0)&65535;return a|0}function cs(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,k=0,l=0;k=c[b+408>>2]|0;k=(k|0)==0?b:k;i=k+396|0;h=c[i>>2]|0;j=c[k+400>>2]|0;a:do if((h|0)>0){b=0;while(1){if((c[j+(b<<4)>>2]|0)==(d|0)?(c[j+(b<<4)+4>>2]|0)==(e|0):0)break;b=b+1|0;if((b|0)>=(h|0)){l=8;break a}}b=j+(b<<4)+8|0;if(!(a[b>>0]|0))h=f<<24>>24!=0&1;else h=1;a[b>>0]=h}else l=8;while(0);do if((l|0)==8){b=(h<<4)+16|0;b=Sl(c[k>>2]|0,j,b,((b|0)<0)<<31>>31)|0;c[k+400>>2]=b;if(!b){c[i>>2]=0;a[(c[k>>2]|0)+65>>0]=1;break}else{h=c[i>>2]|0;c[i>>2]=h+1;c[b+(h<<4)>>2]=d;c[b+(h<<4)+4>>2]=e;a[b+(h<<4)+8>>0]=f;c[b+(h<<4)+12>>2]=g;break}}while(0);return}function ds(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=b[f+48>>1]|0;l=i&65535;h=e[f+46>>1]|0;m=d+64|0;if(!(c[m>>2]|0)){g=c[d>>2]|0;if(!(a[f+51>>0]&8))k=Ns(g,l,0)|0;else k=Ns(g,h,l-h|0)|0;if(k){if(i<<16>>16){j=f+32|0;f=f+28|0;h=k+16|0;g=0;do{i=c[(c[j>>2]|0)+(g<<2)>>2]|0;if(!(Wv(i,11152)|0))i=0;else i=_q(d,i)|0;c[k+(g<<2)+20>>2]=i;a[(c[h>>2]|0)+g>>0]=a[(c[f>>2]|0)+g>>0]|0;g=g+1|0}while((g|0)<(l|0))}g=(c[m>>2]|0)==0;if(!g){g=(c[k>>2]|0)+-1|0;c[k>>2]=g;if(!g){Sc(k);g=0}else g=0}else g=g?k:0}else g=0}else g=0;return g|0}function es(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,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+112|0;if((i|0)>=(j|0))ba();A=F;C=F+100|0;D=F+96|0;m=F+48|0;B=c[d+8>>2]|0;c[C>>2]=0;c[D>>2]=0;z=c[d>>2]|0;a:do if(!B)g=0;else{b:do if(!f)E=16;else{q=a[f>>0]|0;p=q&255;do switch(p|0){case 19:case 96:{sh(B,p,Xt(d,c[f+12>>2]|0,C)|0,g,0)|0;break b}case 157:{k=f+12|0;h=c[k>>2]|0;l=a[h>>0]|0;if(l<<24>>24==-124){Vt(d,h,1,g);break b}else if(l<<24>>24==-123){Wt(B,c[h+8>>2]|0,1,g);break b}else{a[m>>0]=-124;c[m+4>>2]=17408;c[m+8>>2]=0;A=Xt(d,m,C)|0;sh(B,90,Xt(d,c[k>>2]|0,D)|0,A,g)|0;break b}}case 134:{h=(c[f+8>>2]|0)+2|0;k=h;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;z=(k-h&1073741823)+-1|0;A=Ut(c[B>>2]|0,h,z)|0;th(B,sh(B,30,(z|0)/2|0,g,0)|0,A,-1);break b}case 94:case 88:case 87:case 92:case 86:case 85:case 93:case 90:case 91:case 89:case 71:case 72:{A=Xt(d,c[f+12>>2]|0,C)|0;sh(B,p,Xt(d,c[f+16>>2]|0,D)|0,A,g)|0;break b}case 79:case 78:case 83:case 80:case 81:case 82:{y=f+12|0;A=Xt(d,c[y>>2]|0,C)|0;z=f+16|0;B=Xt(d,c[z>>2]|0,D)|0;Yt(d,c[y>>2]|0,c[z>>2]|0,p,A,B,g,32);break b}case 97:{A=c[f+8>>2]|0;th(B,sh(B,97,0,g,0)|0,A,0);break b}case 133:{Wt(B,c[f+8>>2]|0,0,g);break b}case 24:{g=es(d,c[f+12>>2]|0,g)|0;break b}case 155:{k=c[f+40>>2]|0;if(!k){c[A>>2]=c[f+8>>2];ph(d,28936,A);break b}else{g=c[(c[k+40>>2]|0)+(b[f+34>>1]<<4)+8>>2]|0;break b}}case 135:{k=f+32|0;sh(B,31,b[k>>1]|0,g,0)|0;if(!(a[(c[f+8>>2]|0)+1>>0]|0))break b;th(B,-1,c[(c[d+472>>2]|0)+((b[k>>1]|0)+-1<<2)>>2]|0,-2);break b}case 74:{q=c[f+12>>2]|0;n=c[(c[f+20>>2]|0)+4>>2]|0;h=c[n>>2]|0;o=Xt(d,q,C)|0;p=Xt(d,h,D)|0;m=d+19|0;k=a[m>>0]|0;if(k<<24>>24){A=k+-1<<24>>24;a[m>>0]=A;l=c[d+((A&255)<<2)+24>>2]|0;if(!(A<<24>>24))E=103;else{A=k+-2<<24>>24;a[m>>0]=A;m=c[d+((A&255)<<2)+24>>2]|0}}else{E=d+72|0;l=(c[E>>2]|0)+1|0;c[E>>2]=l;E=103}if((E|0)==103){A=d+72|0;m=(c[A>>2]|0)+1|0;c[A>>2]=m}Yt(d,q,h,83,o,p,l,32);A=c[n+20>>2]|0;Wr(d,c[D>>2]|0);Yt(d,q,A,81,o,Xt(d,A,D)|0,m,32);sh(B,72,l,m,g)|0;Wr(d,l);Wr(d,m);break b}case 119:case 20:{g=au(d,f,0,0)|0;break b}case 101:{E=16;break b}case 159:{g=c[f+28>>2]|0;break b}case 156:{h=c[f+40>>2]|0;k=b[f+34>>1]|0;l=c[h+28>>2]|0;if(!(a[h>>0]|0)){g=c[l+(k*24|0)+16>>2]|0;break b}if(a[h+1>>0]|0){sh(B,47,c[h+8>>2]|0,c[l+(k*24|0)+12>>2]|0,g)|0;break b}break}case 154:break;case 148:case 73:{y=f+12|0;A=Xt(d,c[y>>2]|0,C)|0;z=f+16|0;B=Xt(d,c[z>>2]|0,D)|0;Yt(d,c[y>>2]|0,c[z>>2]|0,q<<24>>24==73?79:78,A,B,g,160);break b}case 62:{h=c[f+44>>2]|0;A=_((b[h+38>>1]|0)+1|0,c[f+28>>2]|0)|0;k=f+32|0;sh(B,132,(b[k>>1]|0)+1+A|0,g,0)|0;k=b[k>>1]|0;if(k<<16>>16<=-1)break b;if((a[(c[h+4>>2]|0)+((k<<16>>16)*24|0)+21>>0]|0)!=69)break b;sh(B,39,g,0,0)|0;break b}case 57:{if(!(c[d+412>>2]|0)){ph(d,29e3,A);g=0;break a}l=a[f+1>>0]|0;if(l<<24>>24!=2){h=c[f+8>>2]|0;if(l<<24>>24==4){th(B,sh(B,24,0,4,0)|0,h,0);break b}}else{h=c[d+408>>2]|0;a[((h|0)==0?d:h)+21>>0]=1;h=c[f+8>>2]|0}vs(d,1811,l<<24>>24,h,0,0);break b}case 77:case 76:{sh(B,25,1,g,0)|0;h=sh(B,p,Xt(d,c[f+12>>2]|0,C)|0,0,0)|0;sh(B,25,0,g,0)|0;k=c[B+32>>2]|0;if(k>>>0>h>>>0)c[(c[B+4>>2]|0)+(h*20|0)+8>>2]=k;c[(c[B+24>>2]|0)+88>>2]=k+-1;break b}case 153:{o=a[z+62>>0]|0;x=f+4|0;if((c[x>>2]&16384|0)==0?(n=c[f+20>>2]|0,(n|0)!=0):0){y=c[n>>2]|0;v=1;w=n}else{y=0;v=0;w=0}q=c[f+8>>2]|0;if(!q)p=0;else{p=q;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;p=p-q&1073741823}m=Oh(z,q,p,y,o,0)|0;if((m|0)!=0?(c[m+12>>2]|0)!=0:0){u=m+2|0;n=e[u>>1]|0;if(n&512){m=ts(B)|0;l=w+4|0;Nq(d,c[c[l>>2]>>2]|0,g);if((y|0)>1){k=d+100|0;h=1;do{sh(B,77,g,m,0)|0;$s(d,g,1);c[k>>2]=(c[k>>2]|0)+1;Nq(d,c[(c[l>>2]|0)+(h*20|0)>>2]|0,g);Zt(d);h=h+1|0}while((h|0)!=(y|0))}l=c[B+24>>2]|0;k=~m;if((m|0)<0?(t=c[l+112>>2]|0,(t|0)!=0):0)c[t+(k<<2)>>2]=c[B+32>>2];c[l+88>>2]=(c[B+32>>2]|0)+-1;break b}if(n&1024){Nq(d,c[c[w+4>>2]>>2]|0,g);break b}t=(y|0)>0;if(t){p=w+4|0;o=A+20|0;n=A+4|0;k=A+24|0;q=0;h=0;l=0;do{if((h|0)<32?(f=c[(c[p>>2]|0)+(h*20|0)>>2]|0,c[A+0>>2]=0,c[A+4>>2]=0,c[A+8>>2]=0,c[A+12>>2]=0,c[A+16>>2]=0,c[A+20>>2]=0,a[o>>0]=1,c[A>>2]=78,c[n>>2]=79,c[k>>2]=0,ns(A,f)|0,(a[o>>0]|0)!=0):0)q=q|1<<h;if(!((b[u>>1]&32)==0|(l|0)!=0))l=_t(d,c[(c[p>>2]|0)+(h*20|0)>>2]|0)|0;h=h+1|0}while((h|0)!=(y|0));r=q}else{r=0;l=0}if(v){do if(!r){p=d+60|0;q=c[p>>2]|0;o=d+56|0;n=c[o>>2]|0;if((n|0)<(y|0)){A=d+72|0;q=c[A>>2]|0;c[A>>2]=q+y;q=q+1|0;break}else{c[p>>2]=q+y;c[o>>2]=n-y;break}}else{A=d+72|0;q=c[A>>2]|0;c[A>>2]=q+y;q=q+1|0}while(0);n=b[u>>1]|0;if((n&192)!=0?(s=c[c[w+4>>2]>>2]|0,A=a[s>>0]|0,A<<24>>24==-100|A<<24>>24==-102):0)a[s+38>>0]=n&192;A=d+100|0;c[A>>2]=(c[A>>2]|0)+1;Zs(d,w,q,3);Zt(d)}else q=0;if((y|0)>1?(c[x>>2]&128|0)!=0:0)m=$t(z,m,y,c[(c[w+4>>2]|0)+20>>2]|0)|0;else if(t)m=$t(z,m,y,c[c[w+4>>2]>>2]|0)|0;if(b[m+2>>1]&32){if(!l)l=c[z+8>>2]|0;th(B,sh(B,36,0,0,0)|0,l,-4)}th(B,sh(B,1,r,q,g)|0,m,-5);l=c[B+4>>2]|0;if(l)a[l+(((c[B+32>>2]|0)+-1|0)*20|0)+3>>0]=y;if(!((y|0)!=0&(r|0)==0))break b;$s(d,q,y);k=d+56|0;if((c[k>>2]|0)>=(y|0))break b;c[k>>2]=y;c[d+60>>2]=q;break b}c[A>>2]=p;c[A+4>>2]=q;ph(d,28968,A);break b}case 75:{A=ts(B)|0;n=ts(B)|0;sh(B,28,0,g,0)|0;bu(d,f,A,n);sh(B,25,1,g,0)|0;k=B+24|0;h=c[k>>2]|0;l=~A;if((A|0)<0?(o=c[h+112>>2]|0,(o|0)!=0):0)c[o+(l<<2)>>2]=c[B+32>>2];m=B+32|0;c[h+88>>2]=(c[m>>2]|0)+-1;sh(B,37,g,0,0)|0;l=c[k>>2]|0;k=~n;if((n|0)<0?(r=c[l+112>>2]|0,(r|0)!=0):0)c[r+(k<<2)>>2]=c[m>>2];c[l+88>>2]=(c[m>>2]|0)+-1;break b}case 158:case 95:{g=es(d,c[f+12>>2]|0,g)|0;break b}case 132:{Vt(d,f,0,g);break b}case 38:{k=es(d,c[f+12>>2]|0,g)|0;if((k|0)!=(g|0))sh(B,34,k,g,0)|0;sh(B,40,g,(Tq(c[f+8>>2]|0,0)|0)<<24>>24,0)|0;$s(d,g,1);break b}default:{u=c[f+20>>2]|0;s=u+4|0;t=c[s>>2]|0;u=c[u>>2]|0;v=ts(B)|0;q=c[f+12>>2]|0;f=(q|0)!=0;if(f){p=m+0|0;o=q+0|0;n=p+48|0;do{c[p>>2]=c[o>>2];p=p+4|0;o=o+4|0}while((p|0)<(n|0));q=Xt(d,q,C)|0;a[m+38>>0]=a[m>>0]|0;a[m>>0]=-97;c[m+28>>2]=q;q=m+4|0;c[q>>2]=c[q>>2]&-4097;a[A>>0]=79;c[A+12>>2]=m;c[C>>2]=0;q=A}else q=0;r=u+-1|0;if((r|0)>0){h=d+100|0;n=A+16|0;m=B+24|0;l=B+32|0;k=0;p=q;while(1){c[h>>2]=(c[h>>2]|0)+1;q=c[t+(k*20|0)>>2]|0;if(f){c[n>>2]=q;q=p}A=ts(B)|0;ct(d,q,A,16);Nq(d,c[t+((k|1)*20|0)>>2]|0,g);sh(B,16,0,v,0)|0;Zt(d);p=c[m>>2]|0;o=~A;if((A|0)<0?(w=c[p+112>>2]|0,(w|0)!=0):0)c[w+(o<<2)>>2]=c[l>>2];c[p+88>>2]=(c[l>>2]|0)+-1;k=k+2|0;if((k|0)>=(r|0))break;else p=q}}if(!(u&1))sh(B,28,0,g,0)|0;else{A=d+100|0;c[A>>2]=(c[A>>2]|0)+1;Nq(d,c[(c[s>>2]|0)+(r*20|0)>>2]|0,g);Zt(d)}l=c[B+24>>2]|0;k=~v;if((v|0)<0?(x=c[l+112>>2]|0,(x|0)!=0):0)c[x+(k<<2)>>2]=c[B+32>>2];c[l+88>>2]=(c[B+32>>2]|0)+-1;break b}}while(0);h=c[f+28>>2]|0;do if((h|0)<0){h=c[d+92>>2]|0;if((h|0)>0){g=(b[f+32>>1]|0)+h|0;break b}else{h=c[d+96>>2]|0;break}}while(0);g=_s(d,c[f+44>>2]|0,b[f+32>>1]|0,h,g,a[f+38>>0]|0)|0}while(0);if((E|0)==16)sh(B,28,0,g,0)|0;Wr(d,c[C>>2]|0);Wr(d,c[D>>2]|0)}while(0);i=F;return g|0}function fs(a,b){a=a|0;b=b|0;var d=0;d=Kq(a)|0;cs(a,b,1,1,(b|0)==1?13184:13208);th(d,sh(d,55,0,1,b)|0,5,-14);b=a+68|0;if(!(c[b>>2]|0))c[b>>2]=1;return}function gs(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0;h=f+48|0;if((e[h>>1]|0|0)<(g|0)){i=g*7|0;d=ih(d,i,((i|0)<0)<<31>>31)|0;if(!d)d=7;else{bw(d|0,0,i|0)|0;j=f+32|0;gw(d|0,c[j>>2]|0,(e[h>>1]|0)<<2|0)|0;c[j>>2]=d;j=d+(g<<2)|0;i=f+4|0;gw(j|0,c[i>>2]|0,(e[h>>1]|0)<<1|0)|0;c[i>>2]=j;i=d+(g*6|0)|0;d=f+28|0;gw(i|0,c[d>>2]|0,e[h>>1]|0|0)|0;c[d>>2]=i;b[h>>1]=g;d=f+51|0;a[d>>0]=a[d>>0]|16;d=0}}else d=0;return d|0}function hs(a,d){a=a|0;d=d|0;var f=0,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();k=p;o=p+4|0;do if(!d)f=0;else{l=c[a>>2]|0;n=d+24|0;h=l+460|0;g=(c[h>>2]|0)+(c[n>>2]|0)|0;f=c[(c[l>>2]|0)+100>>2]|0;if((f|0)<(g|0)){c[k>>2]=f;ph(l,27152,k);f=1;break}c[h>>2]=g;k=a+28|0;h=e[k>>1]|0;m=h&4098;b[k>>1]=h&61437;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]=82;c[o+4>>2]=83;h=o+12|0;c[h>>2]=l;c[o+24>>2]=a;ns(o,d)|0;o=(c[a>>2]|0)+460|0;c[o>>2]=(c[o>>2]|0)-(c[n>>2]|0);if(!((c[a+24>>2]|0)<=0?(c[(c[h>>2]|0)+64>>2]|0)<=0:0)){o=d+4|0;c[o>>2]=c[o>>2]|8}h=b[k>>1]|0;g=d+4|0;f=c[g>>2]|0;if(h&2){f=f|2;c[g>>2]=f}b[k>>1]=h&65535|m;f=f>>>3&1}while(0);i=p;return f|0}function is(a){a=a|0;var e=0,f=0,g=0,h=0,i=0,j=0;i=c[(c[a+12>>2]|0)+4>>2]|0;f=b[a+48>>1]|0;if(!(f<<16>>16)){e=0;f=0}else{j=c[a+4>>2]|0;g=f&65535;h=0;e=0;do{f=b[j+(h<<1)>>1]|0;if(f<<16>>16<0)f=1;else f=d[i+((f<<16>>16)*24|0)+22>>0]|0;e=f+e|0;h=h+1|0}while((h|0)<(g|0));e=e<<2;f=0}b[a+44>>1]=bs(e,f)|0;return}function js(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;j=c[d>>2]|0;g=j+24|0;i=c[g>>2]|0;c[g>>2]=i&-97|64;zs(d,e,0);if(!(c[d+64>>2]|0)){while(1){f=c[e+52>>2]|0;if(!f){h=e;break}else e=f}c[g>>2]=i;e=ih(j,76,0)|0;if(e){f=e+0|0;g=f+76|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(g|0));b[e+40>>1]=1;c[e>>2]=0;b[e+28>>1]=200;eu(d,c[h>>2]|0,e+38|0,e+4|0);fu(d,e,h);b[e+36>>1]=-1;if(a[j+65>>0]|0){gg(j,e);e=0}}else e=0}else e=0;return e|0}function ks(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=c[d>>2]|0;g=a[e>>0]|0;a:do if(!(g<<24>>24)){i=0;h=0}else{i=g;j=0;while(1){h=j+1|0;if(!(i<<24>>24==95?1:(a[10368+(i&255)>>0]&6)!=0)){h=j;break a}i=a[e+h>>0]|0;if(!(i<<24>>24)){i=0;break}else j=h}}while(0);if((((g&255)+-48|0)>>>0>=10?(bi(e,h)|0)==27:0)?!((h|0)==0|i<<24>>24!=0):0)k=0;else{a[b+f>>0]=34;k=1;g=a[e>>0]|0;f=f+1|0}if(g<<24>>24){h=e;j=0;do{i=f+1|0;a[b+f>>0]=g;if((a[h>>0]|0)==34){a[b+i>>0]=34;f=f+2|0}else f=i;j=j+1|0;h=e+j|0;g=a[h>>0]|0}while(g<<24>>24!=0)}if(k){a[b+f>>0]=34;f=f+1|0}a[b+f>>0]=0;c[d>>2]=f;return}function ls(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;f=b+20|0;g=a[f>>0]|0;if(g<<24>>24==2?(c[e+4>>2]&1|0)!=0:0){a[f>>0]=0;f=2}else h=4;a:do if((h|0)==4)switch(d[e>>0]|0|0){case 135:if(g<<24>>24==5){a[e>>0]=101;f=0;break a}else if(g<<24>>24==4){a[f>>0]=0;f=2;break a}else{f=0;break a}case 153:{if((g&255)>3){f=0;break a}if(c[e+4>>2]&524288){f=0;break a}a[f>>0]=0;f=2;break a}case 156:case 155:case 154:case 27:{if(g<<24>>24==3?(c[e+28>>2]|0)==(c[b+24>>2]|0):0){f=0;break a}a[f>>0]=0;f=2;break a}default:{f=0;break a}}while(0);return f|0}function ms(b,c){b=b|0;c=c|0;a[b+20>>0]=0;return 2}function ns(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!b)b=0;else{d=nc[c[a>>2]&127](a,b)|0;do if((d|0)==0?(e=b+4|0,(c[e>>2]&16384|0)==0):0){if(ns(a,c[b+12>>2]|0)|0){b=2;break a}if(ns(a,c[b+16>>2]|0)|0){b=2;break a}b=b+20|0;if(!(c[e>>2]&2048))if(!(hu(a,c[b>>2]|0)|0))break;else{b=2;break a}else if(!(gu(a,c[b>>2]|0)|0))break;else{b=2;break a}}while(0);b=d&2}while(0);return b|0}function os(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;do if(e)if(!f)g=e;else{if((iu(e)|0)==0?(iu(f)|0)==0:0){g=ih(d,48,0)|0;if(g){h=g+0|0;i=h+48|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(i|0));a[g>>0]=72;b[g+34>>1]=-1;c[g+24>>2]=1}ps(d,g,e,f);break}Ck(d,e);Ck(d,f);g=jr(d,132,20616,0)|0}else g=f;while(0);return g|0}function ps(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if(!b){Ck(a,d);Ck(a,e)}else{if(e){c[b+16>>2]=e;a=b+4|0;c[a>>2]=c[a>>2]|c[e+4>>2]&2097408}if(d){c[b+12>>2]=d;a=b+4|0;c[a>>2]=c[a>>2]|c[d+4>>2]&2097408}Et(b)}return}function qs(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=d<<16>>16;j=(h<<2)+63&-8;k=h<<1;l=k+2|0;i=(h+7+k+l&-8)+j|0;g=i+e|0;e=ih(a,g,((g|0)<0)<<31>>31)|0;if(e){bw(e|0,0,g|0)|0;c[e+32>>2]=e+56;c[e+8>>2]=e+j;g=j+l|0;c[e+4>>2]=e+g;c[e+28>>2]=e+(g+k);b[e+48>>1]=d;b[e+46>>1]=h+65535;c[f>>2]=e+i}return e|0}function rs(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();t=z;p=c[d+12>>2]|0;o=b+68|0;w=c[o>>2]|0;y=w+1|0;c[o>>2]=w+2;n=c[b>>2]|0;l=c[d+24>>2]|0;a:do if(l){h=c[n+20>>2]|0;if((h|0)>0){g=c[n+16>>2]|0;m=0;while(1){k=m+1|0;if((c[g+(m<<4)+12>>2]|0)==(l|0)){k=m;break a}if((k|0)<(h|0))m=k;else break}}else k=0}else k=-1e6;while(0);if((Oq(b,27,c[d>>2]|0,0,c[(c[n+16>>2]|0)+(k<<4)>>2]|0)|0)==0?(cs(b,k,c[p+32>>2]|0,1,c[p>>2]|0),x=Kq(b)|0,(x|0)!=0):0){if((f|0)>-1)q=f;else q=c[d+40>>2]|0;u=ds(b,d)|0;v=c[o>>2]|0;c[o>>2]=v+1;s=d+46|0;h=e[s>>1]|0;if(u)c[u>>2]=(c[u>>2]|0)+1;th(x,sh(x,58,v,0,h)|0,u,-6);Mq(b,w,k,p,54);n=sh(x,108,w,0,0)|0;h=b+19|0;g=a[h>>0]|0;if(!(g<<24>>24)){p=b+72|0;r=(c[p>>2]|0)+1|0;c[p>>2]=r}else{r=g+-1<<24>>24;a[h>>0]=r;r=c[b+((r&255)<<2)+24>>2]|0}Lt(b,d,w,r,0,t,0,0)|0;sh(x,109,v,r,0)|0;Mt(b,c[t>>2]|0);sh(x,9,w,n+1|0,0)|0;p=x+32|0;m=c[p>>2]|0;if(m>>>0>n>>>0)c[(c[x+4>>2]|0)+(n*20|0)+8>>2]=m;l=x+24|0;c[(c[l>>2]|0)+88>>2]=m+-1;if((f|0)<0)sh(x,118,q,k,0)|0;th(x,sh(x,55,y,q,k)|0,u,-6);o=x+4|0;h=c[o>>2]|0;if(h)a[h+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=(f>>31)+4&252|1;n=sh(x,106,v,0,0)|0;h=c[p>>2]|0;if((a[d+50>>0]|0)!=0&(u|0)!=0){m=h+3|0;sh(x,16,0,m,0)|0;h=c[p>>2]|0;q=e[s>>1]|0;th(x,sh(x,99,v,m,r)|0,q,-14);ju(b,2,d)}sh(x,100,v,r,y)|0;sh(x,110,y,r,1)|0;g=c[o>>2]|0;if(g)a[g+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=16;Wr(b,r);sh(x,5,v,h,0)|0;g=c[p>>2]|0;if(g>>>0>n>>>0)c[(c[o>>2]|0)+(n*20|0)+8>>2]=g;c[(c[l>>2]|0)+88>>2]=g+-1;sh(x,61,w,0,0)|0;sh(x,61,y,0,0)|0;sh(x,61,v,0,0)|0}i=z;return}function ss(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;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r;p=c[e>>2]|0;if(!g){g=Un(p,f,h,0)|0;if(!g)n=4;else n=3}else n=3;if((n|0)==3)if(!(c[g+12>>2]|0))n=4;else n=14;if((n|0)==4){l=f&255;k=p+224|0;if(c[k>>2]|0){m=gh(p,h)|0;if(m){mc[c[k>>2]&15](c[p+232>>2]|0,p,l,m);ig(p,m);n=7}}else n=7;if((n|0)==7?(o=p+228|0,(c[o>>2]|0)!=0):0){k=ih(p,40,0)|0;if(!k)k=0;else{m=k+0|0;l=m+40|0;do{a[m>>0]=0;m=m+1|0}while((m|0)<(l|0));b[k+8>>1]=1;c[k+32>>2]=p;Tg(k,h,-1,1,0)|0}g=Og(k,2)|0;if(g)mc[c[o>>2]&15](c[p+232>>2]|0,p,d[p+62>>0]|0,g);Ih(k)}g=Un(p,f,h,0)|0;if(!g)n=19;else n=14}a:do if((n|0)==14)if(!(c[g+12>>2]|0)){l=c[g>>2]|0;m=0;while(1){k=Un(p,a[26816+m>>0]|0,l,0)|0;m=m+1|0;if(c[k+12>>2]|0)break;if((m|0)>=3){n=19;break a}}c[g+0>>2]=c[k+0>>2];c[g+4>>2]=c[k+4>>2];c[g+8>>2]=c[k+8>>2];c[g+12>>2]=c[k+12>>2];c[g+16>>2]=0}while(0);if((n|0)==19){c[q>>2]=h;ph(e,26784,q);g=0}i=r;return g|0}function ts(a){a=a|0;var b=0,d=0;a=c[a+24>>2]|0;d=a+108|0;b=c[d>>2]|0;c[d>>2]=b+1;if(!(b+-1&b)){d=a+112|0;a=Sl(c[a>>2]|0,c[d>>2]|0,b<<3|4,0)|0;c[d>>2]=a}else a=c[a+112>>2]|0;if(a)c[a+(b<<2)>>2]=-1;return ~b|0}function us(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;if(e){g=c[e>>2]|0;if((g|0)>0){h=(g*72|0)+8|0;g=h;h=((h|0)<0)<<31>>31}else{g=80;h=0}g=ih(d,g,h)|0;if(g){h=c[e>>2]|0;c[g+4>>2]=h;c[g>>2]=h;if((c[e>>2]|0)>0){h=g+8|0;j=0;do{c[h+(j*72|0)>>2]=c[e+(j*72|0)+8>>2];c[h+(j*72|0)+4>>2]=gh(d,c[e+(j*72|0)+12>>2]|0)|0;c[h+(j*72|0)+8>>2]=gh(d,c[e+(j*72|0)+16>>2]|0)|0;c[h+(j*72|0)+12>>2]=gh(d,c[e+(j*72|0)+20>>2]|0)|0;a[h+(j*72|0)+36>>0]=a[e+(j*72|0)+44>>0]|0;c[h+(j*72|0)+40>>2]=c[e+(j*72|0)+48>>2];c[h+(j*72|0)+24>>2]=c[e+(j*72|0)+32>>2];c[h+(j*72|0)+28>>2]=c[e+(j*72|0)+36>>2];k=e+(j*72|0)+45|0;i=h+(j*72|0)+37|0;l=a[i>>0]&-3|a[k>>0]&2;a[i>>0]=l;l=l&-5|a[k>>0]&4;a[i>>0]=l;a[i>>0]=l&-9|a[k>>0]&8;c[h+(j*72|0)+64>>2]=gh(d,c[e+(j*72|0)+72>>2]|0)|0;a[i>>0]=a[i>>0]&-2|a[k>>0]&1;c[h+(j*72|0)+68>>2]=c[e+(j*72|0)+76>>2];i=c[e+(j*72|0)+24>>2]|0;c[h+(j*72|0)+16>>2]=i;if(i){i=i+40|0;b[i>>1]=(b[i>>1]|0)+1<<16>>16}c[h+(j*72|0)+20>>2]=cr(d,c[e+(j*72|0)+28>>2]|0,f)|0;c[h+(j*72|0)+44>>2]=Ir(d,c[e+(j*72|0)+52>>2]|0,f,0)|0;c[h+(j*72|0)+48>>2]=Jr(d,c[e+(j*72|0)+56>>2]|0)|0;l=e+(j*72|0)+64|0;k=c[l+4>>2]|0;i=h+(j*72|0)+56|0;c[i>>2]=c[l>>2];c[i+4>>2]=k;j=j+1|0}while((j|0)<(c[e>>2]|0))}}else g=0}else g=0;return g|0}function vs(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;i=Kq(b)|0;if((e|0)==2){k=c[b+408>>2]|0;a[((k|0)==0?b:k)+21>>0]=1}th(i,sh(i,24,d,e,0)|0,f,g<<24>>24);if(h<<24>>24!=0?(j=c[i+4>>2]|0,(j|0)!=0):0)a[j+(((c[i+32>>2]|0)+-1|0)*20|0)+3>>0]=h;return}function ws(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(c[(c[b>>2]|0)+16>>2]|0)+28>>2]|0;do if(!(a[b+438>>0]|0)){h=c[d+68>>2]|0;if((e|0)!=(h|0)?(f=c[e+48>>2]|0,(f|0)!=0):0){g=d+64|0;e=0;while(1){b=c[f+8>>2]|0;if((c[b+24>>2]|0)==(h|0)?($c(c[b+4>>2]|0,c[d>>2]|0)|0)==0:0){if(!e)e=c[g>>2]|0;c[b+32>>2]=e}else b=e;f=c[f>>2]|0;if(!f)break;else e=b}if(b)break}b=c[d+64>>2]|0}else b=0;while(0);return b|0}function xs(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;j=c[b+32>>2]|0;k=b+8|0;i=b+68|0;f=0;while(1){g=(f|0)==0;b=g|(j|0)<(f|0)?j:0;d=c[k>>2]|0;if(!d)h=b;else{do{e=c[d+40>>2]|0;b=(g|(e|0)<(f|0))&(e|0)>(b|0)?e:b;d=c[d+20>>2]|0}while((d|0)!=0);h=b}if(!h)break;b=c[a>>2]|0;f=c[i>>2]|0;a:do if(f){g=c[b+20>>2]|0;if((g|0)>0){d=c[b+16>>2]|0;e=0;while(1){b=e+1|0;if((c[d+(e<<4)+12>>2]|0)==(f|0)){b=e;break a}if((b|0)<(g|0))e=b;else break}}else b=0}else b=-1e6;while(0);Ar(a,h,b);f=h}return}function ys(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;a:do if((b|0)!=0?(d=c[b>>2]|0,(d|0)>0):0){h=a+68|0;f=0;g=b+8|0;while(1){e=g+40|0;if((c[e>>2]|0)>-1)break a;i=c[h>>2]|0;c[h>>2]=i+1;c[e>>2]=i;e=c[g+20>>2]|0;if(e){ys(a,c[e+32>>2]|0);d=c[b>>2]|0}f=f+1|0;if((f|0)>=(d|0))break;else g=g+72|0}}while(0);return}function zs(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))ba();m=n;if(((e|0)!=0?(l=(c[d>>2]|0)+65|0,(a[l>>0]|0)==0):0)?(h=e+6|0,g=b[h>>1]|0,(g&32)==0):0){c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;c[m+24>>2]=0;c[m>>2]=84;c[m+12>>2]=d;k=m+4|0;if(a[d+22>>0]|0){c[k>>2]=85;gu(m,e)|0;g=b[h>>1]|0}c[k>>2]=86;if(!(g&256))c[m+8>>2]=9;gu(m,e)|0;g=d+64|0;if((((c[g>>2]|0)==0?(a[l>>0]|0)==0:0)?(c[m+0>>2]=0,c[m+4>>2]=0,c[m+8>>2]=0,c[m+12>>2]=0,c[m+16>>2]=0,c[m+20>>2]=0,c[m>>2]=82,c[m+4>>2]=83,c[m+12>>2]=d,c[m+24>>2]=f,gu(m,e)|0,(c[g>>2]|0)==0):0)?(a[l>>0]|0)==0:0){c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;c[m+24>>2]=0;c[m+8>>2]=10;c[m>>2]=84;c[m+12>>2]=d;gu(m,e)|0}}i=n;return}function As(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if(a)do{d=c[a+36>>2]|0;if((d|0)!=0?(h=c[d+24>>2]|0,(h|0)>(c[b>>2]|0)):0)c[b>>2]=h;d=c[a+44>>2]|0;if((d|0)!=0?(e=c[d+24>>2]|0,(e|0)>(c[b>>2]|0)):0)c[b>>2]=e;d=c[a+60>>2]|0;if((d|0)!=0?(f=c[d+24>>2]|0,(f|0)>(c[b>>2]|0)):0)c[b>>2]=f;d=c[a+64>>2]|0;if((d|0)!=0?(g=c[d+24>>2]|0,(g|0)>(c[b>>2]|0)):0)c[b>>2]=g;pu(c[a>>2]|0,b);pu(c[a+40>>2]|0,b);pu(c[a+48>>2]|0,b);a=c[a+52>>2]|0}while((a|0)!=0);return}function Bs(a,b,d,f){a=a|0;b=b|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0;g=c[b>>2]|0;h=g+d|0;if(h>>>0>(c[b+4>>2]|0)>>>0){i=no(a,b,(h*72|0)+8|0,0)|0;if(i){do if(!a)b=hc[c[8744+48>>2]&127](i)|0;else{if((c[a+276>>2]|0)>>>0<=i>>>0?(c[a+280>>2]|0)>>>0>i>>>0:0){b=e[a+248>>1]|0;break}b=hc[c[8744+48>>2]&127](i)|0}while(0);c[i+4>>2]=(((b+-80|0)>>>0)/72|0)+1;b=i;g=c[i>>2]|0;j=10}}else j=10;if((j|0)==10){if((g|0)>(f|0)){do{g=g+-1|0;h=b+((g+d|0)*72|0)+8|0;a=b+(g*72|0)+8|0;i=h+72|0;do{c[h>>2]=c[a>>2];h=h+4|0;a=a+4|0}while((h|0)<(i|0))}while((g|0)>(f|0));g=c[b>>2]|0}c[b>>2]=g+d;bw(b+(f*72|0)+8|0,0,d*72|0)|0;g=f+d|0;if((d|0)>0)do{c[b+(f*72|0)+48>>2]=-1;f=f+1|0}while((f|0)<(g|0))}return b|0}function Cs(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;if((b|0)!=0?(c[b>>2]|0)>0:0){f=b+4|0;g=c[f>>2]|0;h=0;do{i=Ds(a,c[g+(h*20|0)>>2]|0,d,e)|0;g=c[f>>2]|0;c[g+(h*20|0)>>2]=i;h=h+1|0}while((h|0)<(c[b>>2]|0))}return}function Ds(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0;do if(e){if((a[e>>0]|0)==-102?(c[e+28>>2]|0)==(f|0):0){h=b[e+32>>1]|0;if(h<<16>>16<0){a[e>>0]=101;break}else{h=Ir(d,c[(c[g+4>>2]|0)+((h<<16>>16)*20|0)>>2]|0,0,0)|0;Ck(d,e);e=h;break}}h=e+12|0;c[h>>2]=Ds(d,c[h>>2]|0,f,g)|0;h=e+16|0;c[h>>2]=Ds(d,c[h>>2]|0,f,g)|0;h=e+20|0;if(!(c[e+4>>2]&2048)){Cs(d,c[h>>2]|0,f,g);break}else{qu(d,c[h>>2]|0,f,g);break}}else e=0;while(0);return e|0}function Es(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[c[b>>2]>>2]|0;e=b;g=1;while(1){b=c[e+52>>2]|0;if(!b){f=5;break}if((c[c[b>>2]>>2]|0)==(f|0)){e=b;g=g+1|0}else{f=3;break}}a:do if((f|0)==3){Fs(a,b);b=1}else if((f|0)==5)if(!e)b=0;else{h=((g|0)<0)<<31>>31;f=0;while(1){i=e+52|0;c[i>>2]=0;b=er(a,e,d)|0;c[i>>2]=f;if(b)break a;b=e+24|0;c[b>>2]=g;c[b+4>>2]=h;b=c[e+56>>2]|0;if(!b){b=0;break a}e=b;f=c[b+52>>2]|0}}while(0);return b|0}function Fs(a,e){a=a|0;e=e|0;var f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;if(!(b[e+6>>1]&128)){e=d[e+4>>0]|0;if((e|0)==117)e=35352;else if((e|0)==118)e=35336;else if((e|0)==116)e=35320;else e=35360;c[f>>2]=e;ph(a,35232,f)}else ph(a,35184,f);i=g;return}function Gs(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,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;E=i;i=i+32|0;if((i|0)>=(j|0))ba();v=E;k=c[f+32>>2]|0;n=c[c[f>>2]>>2]|0;s=c[d+8>>2]|0;t=f+52|0;u=c[t>>2]|0;if(!(Oq(d,33,0,0,0)|0)){w=ts(s)|0;Ks(d,f,w);x=f+60|0;y=c[x>>2]|0;z=f+64|0;A=c[z>>2]|0;B=f+8|0;p=c[B>>2]|0;C=f+12|0;q=c[C>>2]|0;c[z>>2]=0;c[x>>2]=0;c[C>>2]=0;c[B>>2]=0;B=f+48|0;C=c[B>>2]|0;l=c[k>>2]|0;a:do if((l|0)>0){m=0;while(1){if(a[k+(m*72|0)+45>>0]&8)break;m=m+1|0;if((m|0)>=(l|0)){o=0;break a}}o=c[k+(m*72|0)+48>>2]|0}else o=0;while(0);m=d+68|0;k=c[m>>2]|0;l=k+1|0;c[m>>2]=l;h=(C|0)!=0;if((a[f+4>>0]|0)==115){c[m>>2]=k+2;m=h?8:6}else{m=h?7:5;l=0}a[v>>0]=m;c[v+4>>2]=k;a[v+1>>0]=0;c[v+8>>2]=0;c[v+12>>2]=0;F=d+72|0;m=(c[F>>2]|0)+1|0;c[F>>2]=m;sh(s,60,o,m,n)|0;if(h){n=ru(d,f)|0;th(s,sh(s,57,k,(c[C>>2]|0)+2|0,0)|0,n,-6);c[v+16>>2]=C}else sh(s,57,k,n,0)|0;if(l){c[f+16>>2]=sh(s,57,l,0,0)|0;l=f+6|0;b[l>>1]=e[l>>1]|8}c[B>>2]=0;n=u+56|0;c[n>>2]=0;l=er(d,u,v)|0;c[n>>2]=f;if(!l){n=sh(s,108,k,w,0)|0;sh(s,104,o,0,0)|0;if(h)sh(s,47,k,(c[C>>2]|0)+1|0,m)|0;else sh(s,102,k,m,0)|0;sh(s,95,k,0,0)|0;l=ts(s)|0;et(s,q,l);Ls(d,f,c[f>>2]|0,o,0,0,g,l,w);if(p)sh(s,140,p,w,0)|0;h=s+24|0;m=c[h>>2]|0;k=~l;if((l|0)<0?(r=c[m+112>>2]|0,(r|0)!=0):0)c[r+(k<<2)>>2]=c[s+32>>2];l=s+32|0;c[m+88>>2]=(c[l>>2]|0)+-1;c[t>>2]=0;er(d,f,v)|0;c[t>>2]=u;sh(s,16,0,n,0)|0;h=c[h>>2]|0;k=~w;if((w|0)<0?(D=c[h+112>>2]|0,(D|0)!=0):0)c[D+(k<<2)>>2]=c[l>>2];c[h+88>>2]=(c[l>>2]|0)+-1}Jk(c[d>>2]|0,c[B>>2]|0);c[B>>2]=C;c[x>>2]=y;c[z>>2]=A}i=E;return}function Hs(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;Y=i;i=i+48|0;if((i|0)>=(j|0))ba();r=Y+40|0;K=Y+20|0;L=Y;U=c[f>>2]|0;R=c[f+8>>2]|0;T=ts(R)|0;Q=ts(R)|0;V=g+4|0;M=a[V>>0]|0;W=g+52|0;X=c[W>>2]|0;t=g+48|0;m=c[t>>2]|0;l=c[m>>2]|0;O=M<<24>>24==116;a:do if(!O?(p=U+65|0,(a[p>>0]|0)==0):0){n=r+4|0;q=1;while(1){if((q|0)>(c[c[g>>2]>>2]|0)){N=l;s=14;break a}b:do if((l|0)>0){k=0;o=c[m+4>>2]|0;while(1){if((e[o+16>>1]|0)==(q|0))break b;k=k+1|0;if((k|0)<(l|0))o=o+20|0;else break}}else k=0;while(0);if((k|0)==(l|0)){c[r>>2]=0;c[n>>2]=0;k=jr(U,132,r,0)|0;if(!k){k=7;break a}G=k+4|0;c[G>>2]=c[G>>2]|1024;c[k+8>>2]=q;k=hr(f,m,k)|0;if(!k)k=0;else{b[(c[k+4>>2]|0)+(l*20|0)+16>>1]=q;l=l+1|0}}else k=m;if(!(a[p>>0]|0)){q=q+1|0;m=k}else{N=l;m=k;s=14;break}}}else{N=l;s=14}while(0);if((s|0)==14){J=ih(U,N<<2,0)|0;if(!J)H=0;else{if((N|0)>0){l=0;k=c[m+4>>2]|0;while(1){c[J+(l<<2)>>2]=(e[k+16>>1]|0)+-1;l=l+1|0;if((l|0)==(N|0))break;else k=k+20|0}}H=ru(f,g)|0}c[t>>2]=m;p=X+48|0;c[p>>2]=Lr(c[f>>2]|0,m,0)|0;if(!O){m=c[c[g>>2]>>2]|0;l=f+72|0;G=c[l>>2]|0;o=G+1|0;c[l>>2]=m+1+G;sh(R,25,0,o,0)|0;l=Ns(U,m,1)|0;if(l)if((m|0)>0){k=l+16|0;n=0;do{c[l+(n<<2)+20>>2]=Os(f,g,n)|0;a[(c[k>>2]|0)+n>>0]=0;n=n+1|0}while((n|0)!=(m|0));u=l}else u=l;else u=0}else{u=0;o=0}c[W>>2]=0;I=X+56|0;c[I>>2]=0;su(f,g,c[t>>2]|0,26880)|0;if(!(c[X+52>>2]|0))su(f,X,c[p>>2]|0,26880)|0;Ks(f,g,T);n=g+8|0;l=c[n>>2]|0;p=f+72|0;if((l|0)!=0&O){s=c[p>>2]|0;q=s+1|0;s=s+2|0;c[p>>2]=s;G=c[g+12>>2]|0;sh(R,33,(G|0)==0?l:G+1|0,q,0)|0;sh(R,33,q,s,0)|0}else{q=0;s=0}x=g+60|0;Ck(U,c[x>>2]|0);c[x>>2]=0;x=g+64|0;Ck(U,c[x>>2]|0);c[x>>2]=0;x=c[p>>2]|0;y=x+1|0;z=x+2|0;v=x+3|0;x=x+4|0;c[p>>2]=x;a[K>>0]=13;c[K+4>>2]=y;a[K+1>>0]=0;B=K+8|0;c[B>>2]=0;c[K+12>>2]=0;a[L>>0]=13;c[L+4>>2]=z;a[L+1>>0]=0;D=L+8|0;c[D>>2]=0;c[L+12>>2]=0;F=R+32|0;r=sh(R,20,y,0,(c[F>>2]|0)+1|0)|0;c[X+8>>2]=q;p=f+468|0;G=c[p>>2]|0;er(f,X,K)|0;sh(R,21,y,0,0)|0;q=c[F>>2]|0;if(q>>>0>r>>>0)c[(c[R+4>>2]|0)+(r*20|0)+8>>2]=q;A=R+24|0;c[(c[A>>2]|0)+88>>2]=q+-1;w=sh(R,20,z,0,q+1|0)|0;k=c[n>>2]|0;m=g+12|0;t=c[m>>2]|0;c[n>>2]=s;c[m>>2]=0;E=c[p>>2]|0;er(f,g,L)|0;c[n>>2]=k;c[m>>2]=t;sh(R,21,z,0,0)|0;m=tu(f,g,K,h,v,o,u,T)|0;t=(M+-115&255)<2;if(t)k=tu(f,g,L,h,x,o,u,T)|0;else k=0;if((u|0)!=0?(l=(c[u>>2]|0)+-1|0,c[u>>2]=l,(l|0)==0):0)Sc(u);o=M<<24>>24==118;if((M+-117&255)<2){s=T;l=T}else{s=sh(R,17,x,k,0)|0;l=sh(R,22,z,T,0)|0;sh(R,16,0,s,0)|0;n=X+24|0;u=g+24|0;p=u;n=fw(c[p>>2]|0,c[p+4>>2]|0,c[n>>2]|0,c[n+4>>2]|0)|0;c[u>>2]=n;c[u+4>>2]=C}if(o){r=g+24|0;u=r;n=c[u+4>>2]|0;p=X+24|0;q=c[p>>2]|0;p=c[p+4>>2]|0;if(n>>>0>p>>>0|((n|0)==(p|0)?(c[u>>2]|0)>>>0>q>>>0:0)){n=r;c[n>>2]=q;c[n+4>>2]=p;n=s}else n=s}else{n=sh(R,17,v,m,0)|0;sh(R,22,y,T,0)|0;sh(R,16,0,n,0)|0}r=sh(R,17,v,m,0)|0;sh(R,22,y,s,0)|0;sh(R,16,0,Q,0)|0;do if(!O)if(o){s=r;r=r+1|0;break}else{s=sh(R,22,y,s,0)|0;sh(R,16,0,Q,0)|0;break}else s=r;while(0);q=c[F>>2]|0;if(t)sh(R,17,x,k,0)|0;sh(R,22,z,n,0)|0;sh(R,16,0,Q,0)|0;p=c[F>>2]|0;if(p>>>0>w>>>0)c[(c[R+4>>2]|0)+(w*20|0)+8>>2]=p;c[(c[A>>2]|0)+88>>2]=p+-1;sh(R,22,y,l,0)|0;sh(R,22,z,n,0)|0;n=c[A>>2]|0;m=~Q;if((Q|0)<0?(P=c[n+112>>2]|0,(P|0)!=0):0)c[P+(m<<2)>>2]=c[F>>2];c[n+88>>2]=(c[F>>2]|0)+-1;th(R,sh(R,41,0,0,0)|0,J,-15);th(R,sh(R,42,c[B>>2]|0,c[D>>2]|0,N)|0,H,-6);l=c[R+4>>2]|0;if(l)a[l+(((c[F>>2]|0)+-1|0)*20|0)+3>>0]=1;sh(R,43,r,s,q)|0;l=c[A>>2]|0;k=~T;if((T|0)<0?(S=c[l+112>>2]|0,(S|0)!=0):0)c[S+(k<<2)>>2]=c[F>>2];c[l+88>>2]=(c[F>>2]|0)+-1;if((a[h>>0]|0)==9){k=X;while(1){l=c[k+52>>2]|0;if(!l)break;else k=l}Js(f,0,c[k>>2]|0)}k=c[W>>2]|0;if(k)Ik(U,k,1);c[W>>2]=X;c[I>>2]=g;Ms(f,d[V>>0]|0,G,E,0);k=0}i=Y;return k|0}function Is(a,b){a=a|0;b=b|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;do if(!(c[a+4>>2]&1024)){e=d[a>>0]|0;if((e|0)==158){e=Is(c[a+12>>2]|0,b)|0;break}else if((e|0)!=157){e=0;break}if(!(Is(c[a+12>>2]|0,f)|0))e=0;else{c[b>>2]=0-(c[f>>2]|0);e=1}}else{c[b>>2]=c[a+8>>2];e=1}while(0);i=g;return e|0}function Js(d,e,f){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;A=i;i=i+32|0;if((i|0)>=(j|0))ba();z=A;y=d+8|0;v=c[y>>2]|0;w=c[d>>2]|0;if(((a[d+450>>0]|0)==0?(k=d+16|0,!((a[k>>0]|0)!=0|(v|0)==0)):0)?(a[w+65>>0]|0)==0:0){a[k>>0]=1;k=c[w+24>>2]|0;u=(k&32|0)==0;eq(v,c[f>>2]|0);h=c[f>>2]|0;if((h|0)>0){t=f+4|0;s=(e|0)==0;p=(k&96|0)==0;q=(e|0)!=0;r=0;do{o=c[t>>2]|0;h=c[o+(r*20|0)>>2]|0;do if(h){k=c[o+(r*20|0)+4>>2]|0;if(k){fq(v,r,0,k,-1);break}k=a[h>>0]|0;if(k<<24>>24==-102){if(s)x=25}else if(!(k<<24>>24==-100&q))x=25;if((x|0)==25){x=0;k=c[o+(r*20|0)+8>>2]|0;if(!k){c[z>>2]=r+1;k=qh(w,34880,z)|0}else k=gh(w,k)|0;fq(v,r,0,k,75);break}n=b[h+32>>1]|0;k=n<<16>>16;m=c[e>>2]|0;a:do if((m|0)>0){g=c[h+28>>2]|0;l=0;while(1){h=l+1|0;if((c[e+(l*72|0)+48>>2]|0)==(g|0)){h=l;break a}if((h|0)<(m|0))l=h;else break}}else h=0;while(0);h=c[e+(h*72|0)+24>>2]|0;if(n<<16>>16<0)k=b[h+36>>1]|0;if((k|0)<0)k=20456;else k=c[(c[h+4>>2]|0)+(k*24|0)>>2]|0;if(p){fq(v,r,0,gh(w,c[o+(r*20|0)+8>>2]|0)|0,75);break}if(u){fq(v,r,0,k,-1);break}else{c[z>>2]=c[h>>2];c[z+4>>2]=k;fq(v,r,0,qh(w,27824,z)|0,75);break}}while(0);r=r+1|0;h=c[f>>2]|0}while((r|0)<(h|0))}k=c[y>>2]|0;c[z+4>>2]=e;c[z>>2]=d;if((h|0)>0){g=f+4|0;h=0;do{fq(k,h,1,uu(z,c[(c[g>>2]|0)+(h*20|0)>>2]|0,0)|0,-1);h=h+1|0}while((h|0)<(c[f>>2]|0))}}i=A;return}function Ks(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();f=o;h=b+8|0;if((c[h>>2]|0)==0?(Ys(a),g=b+60|0,(c[g>>2]|0)!=0):0){l=a+72|0;m=(c[l>>2]|0)+1|0;c[l>>2]=m;c[h>>2]=m;n=Kq(a)|0;do if(Is(c[g>>2]|0,f)|0){f=c[f>>2]|0;sh(n,25,f,m,0)|0;if(!f){sh(n,16,0,d,0)|0;break}if((f|0)>-1?(e=b+24|0,d=e,h=c[d+4>>2]|0,k=((f|0)<0)<<31>>31,h>>>0>k>>>0|((h|0)==(k|0)?(c[d>>2]|0)>>>0>f>>>0:0)):0){d=e;c[d>>2]=f;c[d+4>>2]=k}}else{Nq(a,c[g>>2]|0,m);sh(n,38,m,0,0)|0;sh(n,46,m,d,0)|0}while(0);f=c[b+64>>2]|0;if(f){k=c[l>>2]|0;d=k+1|0;c[b+12>>2]=d;c[l>>2]=k+2;Nq(a,f,d);sh(n,38,d,0,0)|0;f=sh(n,137,d,0,0)|0;sh(n,25,0,d,0)|0;g=n+32|0;e=c[g>>2]|0;if(e>>>0>f>>>0)c[(c[n+4>>2]|0)+(f*20|0)+8>>2]=e;h=n+24|0;c[(c[h>>2]|0)+88>>2]=e+-1;e=k+2|0;sh(n,89,m,d,e)|0;f=sh(n,137,m,0,0)|0;sh(n,25,-1,e,0)|0;e=c[g>>2]|0;if(e>>>0>f>>>0)c[(c[n+4>>2]|0)+(f*20|0)+8>>2]=e;c[(c[h>>2]|0)+88>>2]=e+-1}}i=o;return}function Ls(b,f,g,h,i,j,k,l,m){b=b|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,C=0,D=0,E=0,F=0,G=0;F=c[b+8>>2]|0;A=a[k>>0]|0;u=A&255;w=k+4|0;D=c[w>>2]|0;if(!j)n=0;else n=d[j+1>>0]|0;if(!i)E=0;else E=(c[i>>2]|0)==0?0:i;z=(E|0)!=0;v=(n|0)!=0;if(!(z|v))et(F,c[f+12>>2]|0,l);B=c[g>>2]|0;q=k+8|0;i=c[q>>2]|0;if(i){p=b+72|0;o=c[p>>2]|0;if((i+B|0)>(o|0)){c[p>>2]=o+B;C=i;x=0}else{C=i;x=0}}else{if(z){o=((a[E+24>>0]&1^1)&255)+(c[c[E>>2]>>2]|0)|0;C=b+72|0;p=o+(c[C>>2]|0)|0;c[C>>2]=p}else{p=c[b+72>>2]|0;o=0}C=p+1|0;c[q>>2]=C;c[b+72>>2]=p+B;x=o}c[k+12>>2]=B;do if((h|0)>-1){if((B|0)>0){p=0;do{sh(F,47,h,p,p+C|0)|0;p=p+1|0}while((p|0)!=(B|0))}}else{if(A<<24>>24==3)break;else if(A<<24>>24==9)o=1;else o=A<<24>>24==13&1;Zs(b,g,C,o)}while(0);if(v){o=d[j+1>>0]|0;if((o|0)==2){o=b+72|0;h=c[o>>2]|0;t=h+1|0;c[o>>2]=h+B;o=j+8|0;vh(F,c[o>>2]|0);o=c[o>>2]|0;if((o|0)<0)o=(c[F+32>>2]|0)+-1|0;if(!(a[(c[F>>2]|0)+65>>0]|0))o=(c[F+4>>2]|0)+(o*20|0)|0;else o=29120;a[o>>0]=28;c[o+4>>2]=1;c[o+8>>2]=t;h=F+32|0;i=(c[h>>2]|0)+B|0;if((B|0)>0){p=g+4|0;o=B+-1|0;q=F+4|0;s=0;do{v=_t(b,c[(c[p>>2]|0)+(s*20|0)>>2]|0)|0;j=s+C|0;n=s+t|0;if((s|0)<(o|0))sh(F,78,j,i,n)|0;else sh(F,79,j,l,n)|0;th(F,-1,v,-4);r=c[q>>2]|0;if(r)a[r+(((c[h>>2]|0)+-1|0)*20|0)+3>>0]=-128;s=s+1|0}while((s|0)!=(B|0))}else o=B+-1|0;sh(F,33,C,t,o)|0}else if((o|0)==1)vh(F,c[j+8>>2]|0);else vu(b,c[j+4>>2]|0,l,B,C);if(!E)et(F,c[f+12>>2]|0,l)}a:do switch(u|0){case 12:case 14:case 6:case 5:{p=x+1|0;o=b+60|0;i=c[o>>2]|0;q=b+56|0;n=c[q>>2]|0;if((n|0)<(p|0)){y=b+72|0;i=c[y>>2]|0;c[y>>2]=i+p;i=i+1|0}else{c[o>>2]=i+p;c[q>>2]=n-p}n=i+x|0;sh(F,49,C,B,n)|0;if(A<<24>>24==6){C=D+1|0;th(F,sh(F,69,C,(c[F+32>>2]|0)+4|0,i)|0,0,-14);sh(F,110,C,i,0)|0}if(z)wu(b,E,f,n,1,x);else{n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){C=b+72|0;j=(c[C>>2]|0)+1|0;c[C>>2]=j}else{j=j+-1<<24>>24;a[n>>0]=j;j=c[b+((j&255)<<2)+24>>2]|0}sh(F,74,D,j,0)|0;sh(F,75,D,i,j)|0;n=c[F+4>>2]|0;if(n)a[n+(((c[F+32>>2]|0)+-1|0)*20|0)+3>>0]=8;Wr(b,j)}$s(b,i,p);if((c[q>>2]|0)<(p|0)){c[q>>2]=p;c[o>>2]=i;y=94}else y=94;break}case 1:{n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){A=b+72|0;j=(c[A>>2]|0)+1|0;c[A>>2]=j}else{j=j+-1<<24>>24;a[n>>0]=j;j=c[b+((j&255)<<2)+24>>2]|0}sh(F,49,C,B,j)|0;sh(F,110,D,j,0)|0;Wr(b,j);y=94;break}case 2:{sh(F,111,D,C,B)|0;y=94;break}case 11:{i=k+1|0;a[i>>0]=xu(c[c[g+4>>2]>>2]|0,a[i>>0]|0)|0;if(z){wu(b,E,f,C,1,x);break a}j=b+19|0;n=a[j>>0]|0;if(!(n<<24>>24)){B=b+72|0;j=(c[B>>2]|0)+1|0;c[B>>2]=j}else{B=n+-1<<24>>24;a[j>>0]=B;j=c[b+((B&255)<<2)+24>>2]|0}th(F,sh(F,49,C,1,j)|0,i,1);$s(b,C,1);sh(F,110,D,j,0)|0;Wr(b,j);y=94;break}case 3:{sh(F,25,1,D,0)|0;y=94;break}case 10:{if(z)wu(b,E,f,C,1,x);else y=95;break}case 9:case 13:{if(z){wu(b,E,f,C,B,x);break a}if(A<<24>>24==13){sh(F,22,c[w>>2]|0,0,0)|0;y=95;break a}else{sh(F,35,C,B,0)|0;$s(b,C,B);y=94;break a}}case 7:case 8:{r=c[k+16>>2]|0;h=c[r>>2]|0;n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){z=b+72|0;s=(c[z>>2]|0)+1|0;c[z>>2]=s}else{s=j+-1<<24>>24;a[n>>0]=s;s=c[b+((s&255)<<2)+24>>2]|0}t=h+2|0;u=b+60|0;i=c[u>>2]|0;v=b+56|0;n=c[v>>2]|0;if((n|0)<(t|0)){z=b+72|0;i=c[z>>2]|0;c[z>>2]=i+t;i=i+1|0}else{c[u>>2]=i+t;c[v>>2]=n-t}q=i+h|0;o=q+1|0;if(A<<24>>24==8){n=D+1|0;j=sh(F,69,n,0,C)|0;th(F,j,B,-14);sh(F,49,C,B,o)|0;sh(F,110,n,o,0)|0;n=c[F+4>>2]|0;if(!n)p=j;else{a[n+(((c[F+32>>2]|0)+-1|0)*20|0)+3>>0]=16;p=j}}else{sh(F,49,C,B,o)|0;p=0}if((h|0)>0){o=r+4|0;n=C+-1|0;j=0;do{sh(F,34,n+(e[(c[o>>2]|0)+(j*20|0)+16>>1]|0)|0,j+i|0,0)|0;j=j+1|0}while((j|0)!=(h|0))}sh(F,73,D,q,0)|0;sh(F,49,i,t,s)|0;sh(F,110,D,s,0)|0;if(p){n=c[F+32>>2]|0;if(n>>>0>p>>>0)c[(c[F+4>>2]|0)+(p*20|0)+8>>2]=n;c[(c[F+24>>2]|0)+88>>2]=n+-1}Wr(b,s);$s(b,i,t);if((c[v>>2]|0)<(t|0)){c[v>>2]=t;c[u>>2]=i;y=94}else y=94;break}default:y=94}while(0);if((y|0)==94?(E|0)==0:0)y=95;if((y|0)==95?(G=c[f+8>>2]|0,(G|0)!=0):0)sh(F,140,G,m,0)|0;return}function Ms(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;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;if((a[b+450>>0]|0)==2){k=c[b+8>>2]|0;l=c[b>>2]|0;h=(g|0)!=0?35160:10360;if((d|0)==117)g=35352;else if((d|0)==118)g=35336;else if((d|0)==116)g=35320;else g=35360;c[m>>2]=e;c[m+4>>2]=f;c[m+8>>2]=h;c[m+12>>2]=g;g=qh(l,35120,m)|0;th(k,sh(k,157,c[b+464>>2]|0,0,0)|0,g,-1)}i=n;return}function Ns(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=f+e|0;h=(g*5|0)+24|0;i=mg(h,0)|0;if(!i)a[d+65>>0]=1;else{bw(i|0,0,h|0)|0;c[i+16>>2]=i+20+(g<<2);b[i+6>>1]=e;b[i+8>>1]=f;a[i+4>>0]=a[d+62>>0]|0;c[i+12>>2]=d;c[i>>2]=1}return i|0}function Os(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=c[b+52>>2]|0;if(!((f|0)!=0?(e=Os(a,f,d)|0,(e|0)!=0):0)){e=c[b>>2]|0;if((c[e>>2]|0)>(d|0))e=_t(a,c[(c[e+4>>2]|0)+(d*20|0)>>2]|0)|0;else e=0}return e|0}function Ps(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=(b|0)==0;f=(d|0)==0;a:do if(!(g&f))if(!(g|f)?(h=c[b>>2]|0,(h|0)==(c[d>>2]|0)):0)if((h|0)>0){b=c[b+4>>2]|0;f=c[d+4>>2]|0;g=0;while(1){if((a[b+(g*20|0)+12>>0]|0)!=(a[f+(g*20|0)+12>>0]|0)){f=1;break a}if(yu(c[b+(g*20|0)>>2]|0,c[f+(g*20|0)>>2]|0,e)|0){f=1;break a}g=g+1|0;if((g|0)>=(h|0)){f=0;break}}}else f=0;else f=1;else f=0;while(0);return f|0}function Qs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=c[b>>2]|0;l=c[d>>2]|0;k=Ns(g,l-e|0,f+1|0)|0;if((k|0)!=0&(l|0)>(e|0)){h=g+8|0;i=k+16|0;j=e;f=(c[d+4>>2]|0)+(e*20|0)|0;while(1){g=_t(b,c[f>>2]|0)|0;if(!g)g=c[h>>2]|0;d=j-e|0;c[k+(d<<2)+20>>2]=g;a[(c[i>>2]|0)+d>>0]=a[f+12>>0]|0;j=j+1|0;if((j|0)==(l|0))break;else f=f+20|0}}return k|0}function Rs(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0;Ma=i;i=i+64|0;if((i|0)>=(j|0))ba();Ka=Ma;La=Ma+48|0;Ja=Ma+52|0;Y=Ma+28|0;Ha=f+8|0;ea=c[Ha>>2]|0;Ia=c[f>>2]|0;c[Y+0>>2]=0;c[Y+4>>2]=0;c[Y+8>>2]=0;c[Y+12>>2]=0;c[Y+16>>2]=0;if(!k)P=0;else P=(c[k>>2]|0)>63?0:k;Z=Y+8|0;c[Z>>2]=P;_=Ia+60|0;if(b[_>>1]&32)m=m&64511;k=c[g>>2]|0;a:do if((k|0)<=64){I=m&65535;L=(I&64|0)!=0;U=L?1:k;u=(U*80|0)+743&-16;o=u+72|0;k=ih(Ia,o,0)|0;Ga=(k|0)==0;if(!Ga)bw(k|0,0,o|0)|0;xa=Ia+65|0;if(a[xa>>0]|0){ig(Ia,k);k=0;break}ca=k+60|0;da=k+64|0;c[da>>2]=-1;c[ca>>2]=-1;ya=k+41|0;a[ya>>0]=U;c[k>>2]=f;za=k+4|0;c[za>>2]=g;$=k+8|0;c[$>>2]=P;c[k+12>>2]=l;Ba=ts(ea)|0;Aa=k+48|0;c[Aa>>2]=Ba;q=k+52|0;c[q>>2]=Ba;Ba=k+34|0;b[Ba>>1]=m;Ca=f+424|0;Da=k+56|0;c[Da>>2]=c[Ca>>2];Ea=k+68|0;c[Y>>2]=k;Fa=k+328|0;X=Y+4|0;c[X>>2]=Fa;S=Y+12|0;c[S>>2]=k+u;c[k+(u+48)>>2]=k+(u+56);b[k+(u+40)>>1]=0;b[k+(u+44)>>1]=3;c[k+(u+36)>>2]=0;c[Ea>>2]=0;c[Fa>>2]=k;c[k+332>>2]=0;va=k+340|0;c[va>>2]=0;c[k+344>>2]=8;wa=k+348|0;c[wa>>2]=k+352;zu(Fa,h,72);y=(U|0)==0;if((c[k+340>>2]|0)>0){x=Ka+20|0;w=Ka+4|0;o=Ka+24|0;h=Fa;p=0;do{if(!y){h=c[(c[h+20>>2]|0)+(p*48|0)>>2]|0;c[Ka+0>>2]=0;c[Ka+4>>2]=0;c[Ka+8>>2]=0;c[Ka+12>>2]=0;c[Ka+16>>2]=0;c[Ka+20>>2]=0;a[x>>0]=2;c[Ka>>2]=78;c[w>>2]=79;c[o>>2]=0;ns(Ka,h)|0;h=c[X>>2]|0;if(a[x>>0]|0)ua=15}else ua=15;if((ua|0)==15){ua=0;ct(f,c[(c[h+20>>2]|0)+(p*48|0)>>2]|0,c[q>>2]|0,16);h=c[X>>2]|0;aa=(c[h+20>>2]|0)+(p*48|0)+20|0;b[aa>>1]=e[aa>>1]|4}p=p+1|0}while((p|0)<(c[h+12>>2]|0))}if(y){if(P)a[k+36>>0]=c[P>>2];if(I&1024)a[k+40>>0]=1}if((c[g>>2]|0)>0){u=0;do{O=c[g+(u*72|0)+48>>2]|0;aa=c[Ea>>2]|0;c[Ea>>2]=aa+1;c[Ea+(aa<<2)+4>>2]=O;u=u+1|0}while((u|0)<(c[g>>2]|0))}r=c[va>>2]|0;if((r|0)>0)do{r=r+-1|0;Au(Fa,r)}while((r|0)>0);b:do if(!(a[xa>>0]|0)){aa=(I&1024|0)==0;c:do if(!aa){d:do if((c[g>>2]|0)==1){H=c[g+48>>2]|0;p=c[g+24>>2]|0;x=c[l>>2]|0;e:do if((x|0)>0){w=c[l+4>>2]|0;o=0;while(1){h=c[w+(o*20|0)>>2]|0;f:do if(!h)h=0;else while(1){y=c[h+4>>2]|0;if(!(y&4096))break f;if(!(y&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);do if((a[h>>0]|0)==-102){if((c[h+28>>2]|0)!=(H|0))break;if((b[h+32>>1]|0)<0)break e}while(0);o=o+1|0;if((o|0)>=(x|0)){ua=41;break}}}else ua=41;while(0);g:do if((ua|0)==41){h=c[p+8>>2]|0;if(!h)break d;q=l+4|0;p=p+4|0;while(1){if(a[h+50>>0]|0){D=h+46|0;h:do if(!(b[D>>1]|0))y=0;else{F=h+4|0;E=h+32|0;y=0;do{B=b[(c[F>>2]|0)+(y<<1)>>1]|0;if(!(Bu(Fa,H,B,-1,-1,2,h)|0)){o=c[(c[E>>2]|0)+(y<<2)>>2]|0;if((c[l>>2]|0)>0)x=0;else break h;i:while(1){z=c[(c[q>>2]|0)+(x*20|0)>>2]|0;j:do if(!z)w=0;else{w=z;while(1){A=c[w+4>>2]|0;if(!(A&4096))break j;if(!(A&262144))w=w+12|0;else w=c[(c[w+20>>2]|0)+4>>2]|0;w=c[w>>2]|0;if(!w){w=0;break}}}while(0);do if((a[w>>0]|0)==-102){if((b[w+32>>1]|0)!=(b[(c[F>>2]|0)+(y<<1)>>1]|0))break;if((c[w+28>>2]|0)!=(H|0))break;w=_t(f,z)|0;if(!w)break;if(!($c(c[w>>2]|0,o)|0))break i}while(0);x=x+1|0;if((x|0)>=(c[l>>2]|0))break h}if((x|0)<0)break h;if(!(a[(c[p>>2]|0)+(B*24|0)+20>>0]|0))break h}y=y+1|0}while((y|0)<(e[D>>1]|0))}while(0);if((y|0)==(e[D>>1]|0))break g}h=c[h+20>>2]|0;if(!h)break d}}while(0);a[k+40>>0]=1;break c}while(0);if(!P){b[Ba>>1]=e[Ba>>1]|512;c[$>>2]=l}}while(0);k:do if((((U|0)==1?(W=c[Y>>2]|0,V=W+34|0,(b[V>>1]&32)==0):0)?(R=c[W+4>>2]|0,N=c[R+24>>2]|0,(a[N+44>>0]&16)==0):0)?(c[R+72>>2]|0)==0:0){P=c[R+48>>2]|0;z=W+328|0;O=c[S>>2]|0;H=O+36|0;c[H>>2]=0;b[O+42>>1]=0;v=Bu(z,P,-1,0,0,2,0)|0;l:do if(!v){x=c[N+8>>2]|0;m:do if(x){A=O+48|0;n:while(1){do if(a[x+50>>0]|0){if(c[x+36>>2]|0)break;w=x+46|0;h=b[w>>1]|0;if((h&65535)>3)break;q=x+4|0;o:do if(!(h<<16>>16)){h=0;y=0}else{y=0;while(1){h=Bu(z,P,b[(c[q>>2]|0)+(y<<1)>>1]|0,0,0,2,x)|0;if(!h)break;c[(c[A>>2]|0)+(y<<2)>>2]=h;y=y+1|0;h=b[w>>1]|0;if((y|0)>=(h&65535|0))break o}h=b[w>>1]|0}while(0);if((y|0)==(h&65535|0)){A=y;break n}}while(0);x=c[x+20>>2]|0;if(!x)break m}c[H>>2]=4609;if(!(a[x+51>>0]&32)){p=R+64|0;o=c[p>>2]|0;p=c[p+4>>2]|0;w=0;v=0;h=e[x+48>>1]|0;p:while(1){y=h;while(1){h=y+-1|0;if((y|0)<=0)break p;y=b[(c[q>>2]|0)+(h<<1)>>1]|0;if((y&65535)<63)break;else y=h}Y=ew(1,0,y<<16>>16|0)|0;w=Y|w;v=C|v}if((o&~w|0)==0&(p&~v|0)==0)ua=91}else ua=91;if((ua|0)==91)c[H>>2]=4673;Y=A&65535;b[O+40>>1]=Y;b[O+24>>1]=Y;c[O+28>>2]=x;b[O+20>>1]=39;break l}while(0);if(!(c[H>>2]|0)){ua=103;break k}}else{c[H>>2]=4353;c[c[O+48>>2]>>2]=v;b[O+40>>1]=1;b[O+24>>1]=1;b[O+20>>1]=33}while(0);b[O+22>>1]=1;c[W+800>>2]=O;q=c[W+68>>2]|0;q:do if((q|0)>0){r=0;while(1){if((c[W+(r<<2)+72>>2]|0)==(P|0))break;r=r+1|0;if((r|0)>=(q|0)){r=0;q=0;break q}}r=ew(1,0,r|0)|0;q=C}else{r=0;q=0}while(0);p=O+8|0;c[p>>2]=r;c[p+4>>2]=q;c[W+740>>2]=P;b[W+32>>1]=1;p=c[W+8>>2]|0;if(p)a[W+36>>0]=c[p>>2];if(!(b[V>>1]&1024)){ua=120;break}a[W+40>>0]=1;ua=120}else ua=103;while(0);if((ua|0)==103){D=c[Y>>2]|0;h=c[D+4>>2]|0;E=c[c[D>>2]>>2]|0;W=a[D+41>>0]|0;F=W&255;w=c[S>>2]|0;c[w+48>>2]=w+56;b[w+40>>1]=0;b[w+44>>1]=3;c[w+36>>2]=0;o=E+65|0;r:do if(W<<24>>24){p=w+16|0;q=D+68|0;r=w+8|0;s=0;t=0;u=0;v=0;B=0;A=h+8|0;z=0;while(1){a[p>>0]=B;y=c[A+40>>2]|0;x=c[q>>2]|0;s:do if((x|0)>0){h=0;while(1){if((c[D+(h<<2)+72>>2]|0)==(y|0))break;h=h+1|0;if((h|0)>=(x|0)){h=0;y=0;break s}}h=ew(1,0,h|0)|0;y=C}else{h=0;y=0}while(0);W=r;c[W>>2]=h;c[W+4>>2]=y;W=z;z=a[A+36>>0]|0;W=((z|W)&10)==0;t=W?t:s;v=W?v:u;if(!(a[(c[A+16>>2]|0)+44>>0]&16))h=Du(Y,t,v)|0;else h=Cu(Y,t,v)|0;if(h)break;W=Eu(Y,t,v)|0;h=r;if(W)break;if(a[o>>0]|0)break r;B=B+1|0;if((B|0)>=(F|0))break r;else{s=c[h>>2]|s;u=c[h+4>>2]|u;A=A+72|0}}Fu(E,w);break b}while(0);Fu(E,w);Gu(k,0);if(a[xa>>0]|0)break;if(c[$>>2]|0){Gu(k,(e[k+32>>1]|0)+1&65535);if(!(a[xa>>0]|0))ua=120;else break}else ua=121}if((ua|0)==120?(c[$>>2]|0)==0:0)ua=121;if((ua|0)==121?(c[Ia+24>>2]&131072|0)!=0:0){$=k+24|0;c[$>>2]=-1;c[$+4>>2]=-1}if((c[f+64>>2]|0)==0?(a[xa>>0]|0)==0:0){u=a[ya>>0]|0;t:do if((u&255)>1&(l|0)!=0?(b[_>>1]&1024)==0:0){p=Hu(Ea,l)|0;q=C;o=c[Z>>2]|0;if(o){$=Hu(Ea,o)|0;p=$|p;q=C|q}y=k+736|0;h=c[za>>2]|0;x=c[X>>2]|0;w=x+20|0;x=x+12|0;v=u;o=U;do{r=c[y+(((v&255)+-1|0)*80|0)+64>>2]|0;if(!(a[h+((d[r+16>>0]|0)*72|0)+44>>0]&8))break t;if(aa?(c[r+36>>2]&4096|0)==0:0)break t;t=r+8|0;s=c[t>>2]|0;t=c[t+4>>2]|0;if(!((s&p|0)==0&(t&q|0)==0))break t;r=c[w>>2]|0;$=c[x>>2]|0;u=r+($*48|0)|0;if(($|0)>0)do{$=r+40|0;if(!((s&c[$>>2]|0)==0?(t&c[$+4>>2]|0)==0:0)?(c[(c[r>>2]|0)+4>>2]&1|0)==0:0)break t;r=r+48|0}while(r>>>0<u>>>0);v=v+-1<<24>>24;a[ya>>0]=v;o=o+-1|0}while((v&255)>1)}else o=U;while(0);aa=(c[k>>2]|0)+424|0;c[aa>>2]=(c[aa>>2]|0)+(b[k+32>>1]|0);do if((I&4|0)!=0?(T=(c[k+800>>2]|0)+36|0,Q=c[T>>2]|0,(Q&4096|0)!=0):0){a[k+38>>0]=1;if(a[(c[g+24>>2]|0)+44>>0]&32)break;c[T>>2]=Q&-65}while(0);ta=k+736|0;P=(o|0)>0;if(P){M=I&16;N=k+38|0;O=ea+32|0;J=L^1;L=(n|0)==0|J;K=f+68|0;H=54-(I>>>12&1)|0;G=ea+4|0;B=Ia+20|0;z=Ia+16|0;s=0;I=ta;while(1){A=d[I+44>>0]|0;D=g+(A*72|0)+24|0;q=c[D>>2]|0;h=c[q+68>>2]|0;u:do if(!h)w=-1e6;else{y=c[B>>2]|0;if((y|0)<=0){w=0;break}x=c[z>>2]|0;p=0;while(1){w=p+1|0;if((c[x+(p<<4)+12>>2]|0)==(h|0)){w=p;break u}if((w|0)<(y|0))p=w;else break}}while(0);F=c[I+64>>2]|0;E=q+44|0;h=d[E>>0]|0;do if(!(h&2)){if(c[q+12>>2]|0)break;y=c[F+36>>2]|0;if(y&1024){v=c[q+60>>2]|0;v:do if(!v)v=0;else while(1){if((c[v>>2]|0)==(Ia|0))break v;v=c[v+24>>2]|0;if(!v){v=0;break}}while(0);th(ea,sh(ea,149,c[g+(A*72|0)+48>>2]|0,0,0)|0,v,-10);break}if(h&16)break;if(y&64|M){cs(f,w,c[q+32>>2]|0,0,c[q>>2]|0);break}x=g+(A*72|0)+48|0;if(!(a[N>>0]|0))h=54;else{c[ca>>2]=c[x>>2];h=55}Mq(f,c[x>>2]|0,w,q,h);if(a[N>>0]|0)break;if((b[q+38>>1]|0)>=64)break;if(a[E>>0]&32)break;x=g+(A*72|0)+64|0;v=c[x>>2]|0;x=c[x+4>>2]|0;if((v|0)==0&(x|0)==0)u=0;else{u=0;do{v=iw(v|0,x|0,1)|0;x=C;u=u+1|0}while(!((v|0)==0&(x|0)==0))}th(ea,(c[O>>2]|0)+-1|0,u,-14)}while(0);y=F+36|0;w:do if(c[y>>2]&512){h=c[F+28>>2]|0;do if(a[E>>0]&32){if((a[h+51>>0]&3)!=2|J)break;c[I+8>>2]=c[I+4>>2];break w}while(0);do if(!(a[N>>0]|0)){if(!L){u=n;t=H;break}u=c[K>>2]|0;c[K>>2]=u+1;t=54}else{t=c[(c[D>>2]|0)+8>>2]|0;if((t|0)==0|(t|0)==(h|0))u=n;else{u=n;do{u=u+1|0;t=c[t+20>>2]|0}while(!((t|0)==0|(t|0)==(h|0)))}c[da>>2]=u;t=55}while(0);c[I+8>>2]=u;sh(ea,t,u,c[h+40>>2]|0,w)|0;aa=c[Ha>>2]|0;th(aa,-1,ds(f,h)|0,-6);aa=c[y>>2]|0;if(!((aa&15|0)!=0&(aa&32770|0)==0))break;if(b[Ba>>1]&1)break;r=c[G>>2]|0;if(!r)break;a[r+(((c[O>>2]|0)+-1|0)*20|0)+3>>0]=2}while(0);if((w|0)>-1)wr(f,w);s=s+1|0;if((s|0)==(o|0))break;else I=I+80|0}da=(a[xa>>0]|0)==0;c[k+44>>2]=c[O>>2];if(!da)break}else{O=ea+32|0;c[k+44>>2]=c[O>>2]}if(!P)break a;ha=k+24|0;ia=k+36|0;ja=k+39|0;ka=f+80|0;la=f+68|0;ma=f+100|0;na=f+19|0;oa=f+72|0;pa=Ka+20|0;qa=Ka+4|0;ra=Ka+24|0;q=-1;p=-1;sa=0;while(1){V=ta+(sa*80|0)|0;h=ta+(sa*80|0)+64|0;X=ta+(sa*80|0)+44|0;if(c[(c[h>>2]|0)+36>>2]&16384){H=d[X>>0]|0;R=g+(H*72|0)+8|0;W=c[Ha>>2]|0;v=Kq(f)|0;Y=c[ka>>2]|0;c[ka>>2]=Y+1;Y=sh(v,44,Y,0,0)|0;v=c[g+(H*72|0)+24>>2]|0;da=c[va>>2]|0;y=c[wa>>2]|0;Q=y+(da*48|0)|0;J=c[h>>2]|0;x:do if((da|0)>0){w=g+(H*72|0)+48|0;s=v+4|0;t=J+48|0;D=0;z=0;x=0;r=0;B=0;while(1){A=c[y>>2]|0;da=J;do if((c[da>>2]|0)==0&(c[da+4>>2]|0)==0){if(b[y+20>>1]&2)break;if(c[A+4>>2]&1)break;da=c[w>>2]|0;c[Ka+0>>2]=0;c[Ka+4>>2]=0;c[Ka+8>>2]=0;c[Ka+12>>2]=0;c[Ka+16>>2]=0;c[Ka+20>>2]=0;a[pa>>0]=3;c[Ka>>2]=78;c[qa>>2]=79;c[ra>>2]=da;ns(Ka,A)|0;if(!(a[pa>>0]|0))break;da=c[f>>2]|0;r=os(da,r,Ir(da,A,0,0)|0)|0}while(0);do if(!(Iu(y,R,q,p)|0)){F=D;A=z;h=x}else{A=c[y+12>>2]|0;if((A|0)>63){F=0;E=-2147483648}else{F=ew(1,0,A|0)|0;E=C}if(!(B<<24>>24)){B=c[(c[s>>2]|0)+(A*24|0)>>2]|0;c[Ka>>2]=c[v>>2];c[Ka+4>>2]=B;Zc(284,33960,Ka);B=1}if(!((F&D|0)==0&(E&z|0)==0)){F=D;A=z;h=x;break}h=x+1|0;if(Ju(c[f>>2]|0,J,h)|0)break x;c[(c[t>>2]|0)+(x<<2)>>2]=y;F=F|D;A=E|z}while(0);y=y+48|0;if(y>>>0>=Q>>>0){y=F;ua=207;break}else{D=F;z=A;x=h}}}else{A=0;y=0;h=0;r=0;ua=207}while(0);do if((ua|0)==207){ua=0;s=h&65535;b[J+40>>1]=s;b[J+24>>1]=s;s=J+36|0;c[s>>2]=16961;I=g+(H*72|0)+64|0;K=I;E=c[K+4>>2]|0;K=c[K>>2]&~y;M=E&((A|-2147483648)^2147483647);u=v+38|0;N=b[u>>1]|0;F=N<<16>>16;N=N<<16>>16>63?63:F;P=(N|0)>0;if(P){A=0;do{da=ew(1,0,A|0)|0;h=(((da&K|0)!=0|(C&M|0)!=0)&1)+h|0;A=A+1|0}while((A|0)!=(N|0))}if((E|0)<0)h=h+-63+F|0;L=h+1|0;G=qs(c[f>>2]|0,L&65535,0,La)|0;if(!G)break;c[J+28>>2]=G;c[G>>2]=33992;c[G+12>>2]=v;A=c[wa>>2]|0;if(A>>>0<Q>>>0){h=G+4|0;y=G+32|0;E=0;F=0;x=0;do{do if(Iu(A,R,q,p)|0){D=c[A+12>>2]|0;if((D|0)>63){B=0;z=-2147483648}else{B=ew(1,0,D|0)|0;z=C}if(!((B&E|0)==0&(z&F|0)==0))break;da=c[A>>2]|0;b[(c[h>>2]|0)+(x<<1)>>1]=D;D=Ku(f,c[da+12>>2]|0,c[da+16>>2]|0)|0;if(!D)D=11152;else D=c[D>>2]|0;c[(c[y>>2]|0)+(x<<2)>>2]=D;E=B|E;F=z|F;x=x+1|0}while(0);A=A+48|0}while(A>>>0<Q>>>0)}else x=0;if(P){A=G+4|0;z=G+32|0;h=0;do{da=ew(1,0,h|0)|0;if(!((da&K|0)==0&(C&M|0)==0)){b[(c[A>>2]|0)+(x<<1)>>1]=h;c[(c[z>>2]|0)+(x<<2)>>2]=11152;x=x+1|0}h=h+1|0}while((h|0)!=(N|0))}do if((c[I+4>>2]|0)<0){if((b[u>>1]|0)<=63)break;h=G+4|0;y=G+32|0;w=63;do{b[(c[h>>2]|0)+(x<<1)>>1]=w;c[(c[y>>2]|0)+(x<<2)>>2]=11152;x=x+1|0;w=w+1|0}while((w|0)<(b[u>>1]|0))}while(0);b[(c[G+4>>2]|0)+(x<<1)>>1]=-1;c[(c[G+32>>2]|0)+(x<<2)>>2]=11152;A=c[la>>2]|0;c[la>>2]=A+1;y=ta+(sa*80|0)+8|0;c[y>>2]=A;sh(W,56,A,L,0)|0;A=c[Ha>>2]|0;th(A,-1,ds(f,G)|0,-6);c[ma>>2]=(c[ma>>2]|0)+1;A=ta+(sa*80|0)+4|0;t=sh(W,108,c[A>>2]|0,0,0)|0;x=(r|0)!=0;if(x){w=ts(W)|0;ct(f,r,w,16);c[s>>2]=c[s>>2]|131072}else w=0;h=a[na>>0]|0;if(!(h<<24>>24)){s=(c[oa>>2]|0)+1|0;c[oa>>2]=s}else{s=h+-1<<24>>24;a[na>>0]=s;s=c[f+((s&255)<<2)+24>>2]|0}Lt(f,G,c[A>>2]|0,s,0,0,0,0)|0;sh(W,110,c[y>>2]|0,s,0)|0;z=W+4|0;h=c[z>>2]|0;if(h)a[h+(((c[W+32>>2]|0)+-1|0)*20|0)+3>>0]=16;if(x){y=c[W+24>>2]|0;x=~w;do if((w|0)<0){h=c[y+112>>2]|0;if(!h)break;c[h+(x<<2)>>2]=c[W+32>>2]}while(0);c[y+88>>2]=(c[W+32>>2]|0)+-1}sh(W,9,c[A>>2]|0,t+1|0,0)|0;h=c[z>>2]|0;y=c[W+32>>2]|0;if(h)a[h+((y+-1|0)*20|0)+3>>0]=3;if(y>>>0>t>>>0)c[h+(t*20|0)+8>>2]=y;h=W+24|0;c[(c[h>>2]|0)+88>>2]=y+-1;Wr(f,s);Zt(f);u=c[W+32>>2]|0;if(u>>>0>Y>>>0)c[(c[z>>2]|0)+(Y*20|0)+8>>2]=u;c[(c[h>>2]|0)+88>>2]=u+-1}while(0);Ck(c[f>>2]|0,r);if(a[xa>>0]|0)break b}Lu(f,g,V,sa,d[X>>0]|0,m);c[ta+(sa*80|0)+32>>2]=c[O>>2];ga=c[k>>2]|0;L=ga+8|0;ca=c[L>>2]|0;ea=c[ga>>2]|0;r=k+(sa*80|0)+736|0;K=c[k+(sa*80|0)+800>>2]|0;$=k+(sa*80|0)+780|0;H=d[$>>0]|0;F=c[za>>2]|0;N=F+(H*72|0)+8|0;n=c[F+(H*72|0)+48>>2]|0;y=c[Ea>>2]|0;y:do if((y|0)>0){h=0;while(1){if((c[Ea+(h<<2)+4>>2]|0)==(n|0))break;h=h+1|0;if((h|0)>=(y|0)){h=-1;y=-1;break y}}h=ew(1,0,h|0)|0;h=~h;y=~C}else{h=-1;y=-1}while(0);fa=k+(sa*80|0)+808|0;M=fa;c[M>>2]=h&q;c[M+4>>2]=y&p;M=ha;M=iw(c[M>>2]|0,c[M+4>>2]|0,sa|0)|0;_=M&1;T=K+36|0;if(!(c[T>>2]&64))v=0;else v=(b[Ba>>1]&32)==0;G=ts(ca)|0;P=k+(sa*80|0)+752|0;c[P>>2]=G;aa=k+(sa*80|0)+748|0;c[aa>>2]=G;da=ts(ca)|0;c[k+(sa*80|0)+760>>2]=da;do if(a[$>>0]|0){if(!(a[F+(H*72|0)+44>>0]&8))break;Z=ga+72|0;l=(c[Z>>2]|0)+1|0;c[Z>>2]=l;c[r>>2]=l;sh(ca,25,0,l,0)|0}while(0);A=a[F+(H*72|0)+45>>0]|0;z:do if(!(A&4)){D=c[T>>2]|0;if(D&1024){s=b[K+40>>1]|0;t=s&65535;v=ga+100|0;c[v>>2]=(c[v>>2]|0)+1;v=t+2|0;G=ga+60|0;h=c[G>>2]|0;H=ga+56|0;y=c[H>>2]|0;if((y|0)<(v|0)){$=ga+72|0;u=c[$>>2]|0;c[$>>2]=u+v;u=u+1|0}else{c[G>>2]=h+v;c[H>>2]=y-v;u=h}h=c[aa>>2]|0;B=s<<16>>16==0;if(!B){E=u+2|0;D=K+48|0;F=0;do{A=E+F|0;z=c[(c[D>>2]|0)+(F<<2)>>2]|0;do if(z)if(!(b[z+18>>1]&1)){Nq(ga,c[(c[z>>2]|0)+16>>2]|0,A);break}else{Mu(ga,z,r,F,_,A)|0;h=c[P>>2]|0;break}while(0);F=F+1|0}while((F|0)<(t|0))}sh(ca,25,c[K+24>>2]|0,u,0)|0;sh(ca,25,t,u+1|0,0)|0;_=c[K+32>>2]|0;aa=K+28|0;$=(a[aa>>0]|0)!=0?-11:-2;th(ca,sh(ca,14,n,h,u)|0,_,$);a[aa>>0]=0;if(!B){w=K+30|0;x=K+48|0;h=(s&65535)>1?0-t|0:-1;h=h>>>0>4294967280?0-h|0:16;y=0;do{if(e[w>>1]&1<<y)Nu(r,c[(c[x>>2]|0)+(y<<2)>>2]|0);y=y+1|0}while((y|0)!=(h|0))}a[k+(sa*80|0)+781>>0]=-105;c[k+(sa*80|0)+784>>2]=n;c[k+(sa*80|0)+788>>2]=c[ca+32>>2];$s(ga,u,v);if((c[H>>2]|0)<(v|0)){c[H>>2]=v;c[G>>2]=u}Zt(ga);ua=459;break}if(!((D&256|0)==0|(D&5|0)==0)){v=c[c[K+48>>2]>>2]|0;aa=ga+72|0;x=(c[aa>>2]|0)+1|0;c[aa>>2]=x;v=Mu(ga,v,r,0,_,x)|0;if((v|0)!=(x|0))Wr(ga,x);ua=c[P>>2]|0;sh(ca,38,v,ua,0)|0;sh(ca,70,n,ua,v)|0;$s(ga,v,1);Ou(ga,n,-1,v);a[k+(sa*80|0)+781>>0]=-100;ua=459;break}if((D&258|0)==258){if(!(D&32)){h=0;x=0}else{h=1;x=c[c[K+48>>2]>>2]|0}if(!(D&16))h=0;else h=c[(c[K+48>>2]|0)+(h<<2)>>2]|0;y=(_|0)!=0;w=y?x:h;h=y?h:x;if(!h)sh(ca,y?105:108,n,G,0)|0;else{$=c[h>>2]|0;aa=Xt(ga,c[$+16>>2]|0,Ka)|0;sh(ca,d[33536+((d[$>>0]|0)+-80)>>0]|0,n,G,aa)|0;$s(ga,aa,1);Wr(ga,c[Ka>>2]|0);Nu(r,h)}if(!w){h=0;y=156}else{aa=c[w>>2]|0;$=ga+72|0;h=(c[$>>2]|0)+1|0;c[$>>2]=h;Nq(ga,c[aa+16>>2]|0,h);aa=a[aa>>0]|0;if(aa<<24>>24==80|aa<<24>>24==82)y=_<<1^83;else y=_<<1|80;Nu(r,w)}x=ca+32|0;aa=c[x>>2]|0;a[k+(sa*80|0)+781>>0]=_^9;c[k+(sa*80|0)+784>>2]=n;c[k+(sa*80|0)+788>>2]=aa;if((y|0)==156){ua=459;break}aa=ga+72|0;u=(c[aa>>2]|0)+1|0;c[aa>>2]=u;sh(ca,103,n,u,0)|0;Ou(ga,n,-1,u);sh(ca,y,h,G,u)|0;u=c[ca+4>>2]|0;if(!u){ua=459;break}a[u+(((c[x>>2]|0)+-1|0)*20|0)+3>>0]=83;ua=459;break}if(D&512){L=b[K+24>>1]|0;a[Ja>>0]=0;S=c[K+28>>2]|0;U=c[k+(sa*80|0)+744>>2]|0;do if(!(b[Ba>>1]&1)){E=0;A=0}else{if((a[ia>>0]|0)<=0){E=0;A=0;break}A=(e[S+46>>1]|0)>(L&65535);E=A&1;A=A&1}while(0);h=L&65535;if(!(D&32)){F=h;H=0}else{F=h+1|0;A=1;H=c[(c[K+48>>2]|0)+(h<<2)>>2]|0}do if(!(D&16))z=0;else{z=c[(c[K+48>>2]|0)+(F<<2)>>2]|0;if(b[z+20>>1]&256){$=ga+72|0;aa=(c[$>>2]|0)+1|0;c[$>>2]=aa;c[k+(sa*80|0)+772>>2]=aa;sh(ca,25,(a[(c[S+28>>2]|0)+h>>0]|0)==1^_,aa,0)|0;c[k+(sa*80|0)+776>>2]=c[ca+32>>2]}if(H){A=1;break}A=b[(c[S+4>>2]|0)+(h<<1)>>1]|0;if(A<<16>>16<=-1){A=1;break}E=(a[(c[(c[S+12>>2]|0)+4>>2]|0)+((A<<16>>16)*24|0)+20>>0]|0)==0?1:E;A=1}while(0);J=Pu(ga,r,_,A,La)|0;I=c[La>>2]|0;G=(I|0)==0;if(!G)a[Ja>>0]=a[I+h>>0]|0;K=c[P>>2]|0;B=b[S+46>>1]|0;if((L&65535)<(B&65535)?!((a[(c[S+28>>2]|0)+h>>0]|0)==0^((M&1|0)!=0|0!=0)):0)ua=318;else if((_|0)!=0?B<<16>>16==L<<16>>16:0)ua=318;else{N=E;E=0;M=z;P=H}if((ua|0)==318){N=0;M=H;P=z}z=(P|0)!=0;if(z)B=(b[P+18>>1]&40)!=0;else B=1;D=B&1;H=(M|0)!=0;if(H)F=(b[M+18>>1]&40)!=0;else F=1;A=F&1;F=(z|L<<16>>16!=0)&1;do if(z){y=c[(c[P>>2]|0)+16>>2]|0;z=J+h|0;Nq(ga,y,z);if(b[P+20>>1]&256){if(!(a[(c[ca>>2]|0)+65>>0]|0))B=(c[ca+4>>2]|0)+(((c[ca+32>>2]|0)+-1|0)*20|0)|0;else B=29120;c[B+12>>2]=c[k+(sa*80|0)+772>>2];a[B+3>>0]=1}if(Qu(y)|0)sh(ca,76,z,K,0)|0;do if(!G){B=I+h|0;if((xu(y,a[B>>0]|0)|0)<<24>>24==65){a[B>>0]=65;z=65}else z=a[B>>0]|0;if(!(Ru(y,z)|0))break;a[B>>0]=65}while(0);B=h+1|0}else{if(!(N<<24>>24)){B=h;break}sh(ca,28,0,J+h|0,0)|0;B=h+1|0;D=0;F=1}while(0);Su(ga,J,B-(N&255)|0,I);th(ca,sh(ca,d[33544+(F<<2|_|D<<1)>>0]|0,U,K,J)|0,B,-14);do if(H){y=c[(c[M>>2]|0)+16>>2]|0;x=J+h|0;$s(ga,x,1);Nq(ga,y,x);if(b[M+20>>1]&256){if(!(a[(c[ca>>2]|0)+65>>0]|0))z=(c[ca+4>>2]|0)+(((c[ca+32>>2]|0)+-1|0)*20|0)|0;else z=29120;c[z+12>>2]=c[k+(sa*80|0)+772>>2];a[z+3>>0]=1}if(Qu(y)|0)sh(ca,76,x,K,0)|0;do if((xu(y,a[Ja>>0]|0)|0)<<24>>24!=65){if(Ru(y,a[Ja>>0]|0)|0)break;Su(ga,x,1,Ja)}while(0);h=h+1|0}else{if(!(E<<24>>24))break;sh(ca,28,0,J+h|0,0)|0;A=0;h=h+1|0}while(0);ig(ea,I);c[k+(sa*80|0)+788>>2]=c[ca+32>>2];if(h)th(ca,sh(ca,d[33552+(A|_<<1)>>0]|0,U,K,J)|0,h,-14);Nu(r,P);Nu(r,M);do if(!v){h=c[S+12>>2]|0;if(!(a[h+44>>0]&32)){$=ga+72|0;aa=(c[$>>2]|0)+1|0;c[$>>2]=aa;sh(ca,112,U,aa,0)|0;Ou(ga,n,-1,aa);sh(ca,66,n,aa,0)|0;break}if((n|0)==(U|0))break;h=c[h+8>>2]|0;A:do if(!h)A=0;else while(1){if((a[h+51>>0]&3)==2){A=h;break A}h=c[h+20>>2]|0;if(!h){A=0;break}}while(0);F=A+46|0;t=b[F>>1]|0;h=t&65535;y=ga+60|0;x=c[y>>2]|0;w=ga+56|0;s=c[w>>2]|0;if((s|0)<(h|0)){aa=ga+72|0;x=c[aa>>2]|0;c[aa>>2]=x+h;x=x+1|0}else{c[y>>2]=x+h;c[w>>2]=s-h}if(t<<16>>16){s=A+4|0;t=S+48|0;w=S+4|0;B=0;do{A=b[(c[s>>2]|0)+(B<<1)>>1]|0;h=b[t>>1]|0;B:do if(!(h<<16>>16))h=-1;else{z=c[w>>2]|0;y=h&65535;h=0;while(1){if((b[z+(h<<1)>>1]|0)==A<<16>>16)break B;h=h+1|0;if((h|0)>=(y|0)){h=-1;break}}}while(0);sh(ca,47,U,h<<16>>16,B+x|0)|0;B=B+1|0;h=e[F>>1]|0}while((B|0)<(h|0))}th(ca,sh(ca,68,n,da,x)|0,h,-14)}while(0);x=c[T>>2]|0;do if(!(x&4096)){w=k+(sa*80|0)+781|0;if(!_){a[w>>0]=9;break}else{a[w>>0]=8;break}}else a[k+(sa*80|0)+781>>0]=-100;while(0);c[k+(sa*80|0)+784>>2]=U;a[k+(sa*80|0)+782>>0]=x>>>16&1;if(x&15){ua=459;break}a[k+(sa*80|0)+783>>0]=1;ua=459;break}if(!(D&8192))if(!(A&8)){a[k+(sa*80|0)+781>>0]=a[33560+_>>0]|0;c[k+(sa*80|0)+784>>2]=n;c[k+(sa*80|0)+788>>2]=(sh(ca,d[33568+_>>0]|0,n,G,0)|0)+1;a[k+(sa*80|0)+783>>0]=1;ua=459;break}else{a[k+(sa*80|0)+781>>0]=-100;ua=459;break}G=ga+68|0;Z=c[G>>2]|0;c[G>>2]=Z+1;X=ga+72|0;Y=(c[X>>2]|0)+1|0;c[X>>2]=Y;_=ts(ca)|0;W=c[F+(H*72|0)+24>>2]|0;l=c[c[K+48>>2]>>2]|0;P=c[l+12>>2]|0;a[k+(sa*80|0)+781>>0]=18;c[k+(sa*80|0)+784>>2]=Y;A=a[ya>>0]|0;do if((A&255)>1){F=(A&255)-sa|0;D=F+-1|0;B=ih(ea,(D*72|0)+80|0,0)|0;if(!B)break z;A=F&255;c[B+4>>2]=A;c[B>>2]=A;A=B+8|0;H=A+0|0;z=N+0|0;h=H+72|0;do{c[H>>2]=c[z>>2];H=H+4|0;z=z+4|0}while((H|0)<(h|0));E=c[za>>2]|0;if((F|0)<2){V=B;break}else F=1;while(1){H=A+(F*72|0)+0|0;z=E+((d[k+((F+sa|0)*80|0)+780>>0]|0)*72|0)+8|0;h=H+72|0;do{c[H>>2]=c[z>>2];H=H+4|0;z=z+4|0}while((H|0)<(h|0));if((F|0)<(D|0))F=F+1|0;else{V=B;break}}}else V=c[za>>2]|0;while(0);if(!(b[Ba>>1]&8)){if(!(a[W+44>>0]&32)){A=(c[X>>2]|0)+1|0;c[X>>2]=A;sh(ca,28,0,A,0)|0}else{A=c[W+8>>2]|0;C:do if(!A)A=0;else while(1){if((a[A+51>>0]&3)==2)break C;A=c[A+20>>2]|0;if(!A){A=0;break}}while(0);U=c[G>>2]|0;c[G>>2]=U+1;sh(ca,57,U,e[A+46>>1]|0,0)|0;T=c[L>>2]|0;th(T,-1,ds(ga,A)|0,-6);A=U}T=(c[X>>2]|0)+1|0;c[X>>2]=T}else{T=0;A=0}U=sh(ca,25,0,Y,0)|0;z=c[va>>2]|0;do if((z|0)>1){B=0;F=0;do{E=c[wa>>2]|0;S=E+(B*48|0)|0;D=c[S>>2]|0;do if((S|0)!=(l|0)){if(c[D+4>>2]&1)break;if(b[E+(B*48|0)+20>>1]&2)break;if(!(b[E+(B*48|0)+18>>1]&4095))break;F=os(ea,F,Ir(ea,D,0,0)|0)|0;z=c[va>>2]|0}while(0);B=B+1|0}while((B|0)<(z|0));z=F;if(!z){S=0;break}S=Vq(ga,72,0,z,0)|0}else S=0;while(0);R=P+12|0;do if((c[R>>2]|0)>0){u=P+20|0;t=(S|0)==0;s=W+44|0;w=ca+32|0;x=ca+4|0;z=ca+24|0;B=W+8|0;D=ga+60|0;E=ga+56|0;F=S+12|0;Q=0;y=0;h=0;v=240;while(1){H=c[u>>2]|0;if((c[H+(Q*48|0)+8>>2]|0)!=(n|0)?(b[H+(Q*48|0)+18>>1]&512)==0:0)H=v;else ua=407;do if((ua|0)==407){ua=0;H=c[H+(Q*48|0)>>2]|0;do if(!t){if(c[H+4>>2]&1)break;c[F>>2]=H;H=S}while(0);I=Rs(ga,V,H,0,0,v,Z)|0;if(!I){H=v;break}Lu(ga,V,I+736|0,sa,d[$>>0]|0,0);do if(!(b[Ba>>1]&8)){L=(Q|0)==((c[R>>2]|0)+-1|0)?-1:Q;do if(!(a[s>>0]&32)){G=sh(ca,130,A,0,_s(ga,W,-1,n,T,0)|0)|0;th(ca,G,L,-14)}else{H=c[B>>2]|0;D:do if(!H)H=0;else while(1){if((a[H+51>>0]&3)==2)break D;H=c[H+20>>2]|0;if(!H){H=0;break}}while(0);M=b[H+46>>1]|0;J=M&65535;P=c[D>>2]|0;N=c[E>>2]|0;if((N|0)<(J|0)){K=c[X>>2]|0;c[X>>2]=K+J;K=K+1|0}else{c[D>>2]=P+J;c[E>>2]=N-J;K=P}if(M<<16>>16){N=H+4|0;P=0;do{_s(ga,W,b[(c[N>>2]|0)+(P<<1)>>1]|0,n,P+K|0,0)|0;P=P+1|0}while((P|0)<(J|0))}P=(L|0)!=0;if(P){G=sh(ca,69,A,0,K)|0;th(ca,G,J,-14);if((L|0)>-1)ua=426}else{G=0;ua=426}do if((ua|0)==426){ua=0;sh(ca,49,K,J,T)|0;sh(ca,110,A,T,0)|0;if(!P)break;L=c[x>>2]|0;if(!L)break;a[L+(((c[w>>2]|0)+-1|0)*20|0)+3>>0]=16}while(0);$s(ga,K,J);if((c[E>>2]|0)>=(J|0))break;c[E>>2]=J;c[D>>2]=K}while(0);sh(ca,17,Y,_,0)|0;if(!G)break;H=c[w>>2]|0;if(H>>>0>G>>>0)c[(c[x>>2]|0)+(G*20|0)+8>>2]=H;c[(c[z>>2]|0)+88>>2]=H+-1}else sh(ca,17,Y,_,0)|0;while(0);h=(a[I+39>>0]|0)==0?h:1;H=c[I+800>>2]|0;do if(!(c[H+36>>2]&512)){y=0;H=v}else{if((Q|0)!=0?(c[H+28>>2]|0)!=(y|0):0){y=0;H=v;break}y=c[H+28>>2]|0;if((a[s>>0]&32)!=0?(a[y+51>>0]&3)==2:0){y=0;H=v;break}H=(v&65535|4096)&65535}while(0);Ts(I)}while(0);Q=Q+1|0;if((Q|0)>=(c[R>>2]|0))break;else v=H}c[k+(sa*80|0)+792>>2]=y;if(!y){s=h;break}c[k+(sa*80|0)+744>>2]=Z;s=h}else{c[k+(sa*80|0)+792>>2]=0;s=0}while(0);if(S){c[S+12>>2]=0;Ck(ea,S)}w=ca+32|0;h=c[w>>2]|0;if(h>>>0>U>>>0)c[(c[ca+4>>2]|0)+(U*20|0)+4>>2]=h;sh(ca,16,0,c[aa>>2]|0,0)|0;y=c[ca+24>>2]|0;x=~_;do if((_|0)<0){h=c[y+112>>2]|0;if(!h)break;c[h+(x<<2)>>2]=c[w>>2]}while(0);c[y+88>>2]=(c[w>>2]|0)+-1;if((d[ya>>0]|0)>1)ig(ea,V);if(s){ua=459;break}Nu(r,l);ua=459}else{ua=c[F+(H*72|0)+36>>2]|0;sh(ca,20,ua,0,c[F+(H*72|0)+32>>2]|0)|0;c[k+(sa*80|0)+788>>2]=sh(ca,22,ua,G,0)|0;a[k+(sa*80|0)+781>>0]=16;ua=459}while(0);if((ua|0)==459){ua=0;h=c[va>>2]|0;do if((h|0)>0){u=k+(sa*80|0)+772|0;v=ca+32|0;z=ca+4|0;A=ca+24|0;t=c[wa>>2]|0;while(1){s=t+20|0;y=b[s>>1]|0;do if(!(y&6)){aa=t+40|0;$=fa;if(!((c[$>>2]&c[aa>>2]|0)==0?(c[$+4>>2]&c[aa+4>>2]|0)==0:0)){a[ja>>0]=1;break}x=c[t>>2]|0;if((c[r>>2]|0)!=0?(c[x+4>>2]&1|0)==0:0)break;do if(!(y&512))ct(ga,x,da,16);else{w=sh(ca,46,c[u>>2]|0,0,0)|0;ct(ga,x,da,16);if(!w)break;y=c[v>>2]|0;if(y>>>0>w>>>0)c[(c[z>>2]|0)+(w*20|0)+8>>2]=y;c[(c[A>>2]|0)+88>>2]=y+-1}while(0);b[s>>1]=e[s>>1]|4}while(0);h=h+-1|0;if((h|0)<=0)break;else t=t+48|0}u=c[va>>2]|0;if((u|0)<=0){ua=475;break}w=c[wa>>2]|0;while(1){do if(!(b[w+20>>1]&6)){if((b[w+18>>1]|0)!=1026)break;if((c[w+8>>2]|0)!=(n|0))break;if(c[r>>2]|0)break;y=c[w>>2]|0;h=Bu(Fa,n,c[w+12>>2]|0,q,p,3,0)|0;if(!h)break;if(b[h+20>>1]&4)break;x=ih(ea,48,0)|0;if(!x)break;H=x+0|0;z=(c[h>>2]|0)+0|0;h=H+48|0;do{c[H>>2]=c[z>>2];H=H+4|0;z=z+4|0}while((H|0)<(h|0));c[x+12>>2]=c[y+12>>2];ct(ga,x,da,16);ig(ea,x)}while(0);u=u+-1|0;if((u|0)<=0)break;else w=w+48|0}}else ua=475;while(0);if((ua|0)==475)ua=0;r=c[r>>2]|0;do if(r){c[k+(sa*80|0)+764>>2]=c[ca+32>>2];sh(ca,25,1,r,0)|0;Ys(ga);r=c[va>>2]|0;if((r|0)<=0)break;u=0;t=c[wa>>2]|0;while(1){q=t+20|0;do if(!(b[q>>1]&6)){ca=t+40|0;aa=fa;if(!((c[aa>>2]&c[ca>>2]|0)==0?(c[aa+4>>2]&c[ca+4>>2]|0)==0:0))break;ct(ga,c[t>>2]|0,da,16);b[q>>1]=e[q>>1]|4;r=c[va>>2]|0}while(0);u=u+1|0;if((u|0)>=(r|0))break;else t=t+48|0}}while(0);p=fa;q=c[p>>2]|0;p=c[p+4>>2]|0}c[Aa>>2]=c[ta+(sa*80|0)+24>>2];sa=sa+1|0;if((sa|0)>=(o|0))break a}}}while(0);if(Ga)k=0;else{c[Ca>>2]=c[Da>>2];Tu(Ia,k);k=0}}else{c[Ka>>2]=64;ph(f,33504,Ka);k=0}while(0);i=Ma;return k|0}function Ss(a){a=a|0;var b=0,c=0,d=0,e=0;e=a<<16>>16;do if(a<<16>>16>=10){a=(e|0)%10|0;b=((a|0)<0)<<31>>31;if(a>>>0>4){c=fw(a|0,b|0,-2,-1)|0;d=C}else{c=((a|0)!=0)<<31>>31;c=fw(c|0,((c|0)<0)<<31>>31|0,a|0,b|0)|0;d=C}b=((e|0)/10|0)<<16;a=b>>16;if((b|0)<=131072){b=fw(c|0,d|0,8,0)|0;a=iw(b|0,C|0,3-a|0)|0;b=C;break}if((b|0)>3932160){b=2147483647;a=-1}else{b=fw(c|0,d|0,8,0)|0;a=ew(b|0,C|0,a+-3|0)|0;b=C}}else{b=0;a=1}while(0);C=b;return a|0}function Ts(e){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,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;C=c[e>>2]|0;D=c[C+8>>2]|0;F=c[e+4>>2]|0;G=c[C>>2]|0;Ys(C);H=e+41|0;g=a[H>>0]|0;if(!(g<<24>>24))f=D+24|0;else{f=D+24|0;p=D+32|0;r=D+4|0;o=g&255;do{o=o+-1|0;i=c[e+(o*80|0)+800>>2]|0;A=c[e+(o*80|0)+760>>2]|0;g=c[f>>2]|0;h=~A;if((A|0)<0?(s=c[g+112>>2]|0,(s|0)!=0):0)c[s+(h<<2)>>2]=c[p>>2];c[g+88>>2]=(c[p>>2]|0)+-1;B=e+(o*80|0)+781|0;h=a[B>>0]|0;if(h<<24>>24!=-100?(sh(D,h&255,c[e+(o*80|0)+784>>2]|0,c[e+(o*80|0)+788>>2]|0,d[e+(o*80|0)+782>>0]|0)|0,u=c[r>>2]|0,(u|0)!=0):0)a[u+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=a[e+(o*80|0)+783>>0]|0;t=i+36|0;if((c[t>>2]&2048|0)!=0?(v=e+(o*80|0)+792|0,w=c[v>>2]|0,(w|0)>0):0){A=c[e+(o*80|0)+752>>2]|0;k=c[f>>2]|0;h=~A;if((A|0)<0?(x=c[k+112>>2]|0,(x|0)!=0):0){c[x+(h<<2)>>2]=c[p>>2];l=c[v>>2]|0;j=c[p>>2]|0;c[k+88>>2]=j+-1;g=e+(o*80|0)+796|0;if((l|0)>0)I=16}else{j=c[p>>2]|0;c[k+88>>2]=j+-1;g=e+(o*80|0)+796|0;l=w;I=16}if((I|0)==16){I=0;h=k;n=l;m=(c[g>>2]|0)+((l+-1|0)*12|0)|0;while(1){l=m+4|0;k=c[l>>2]|0;i=k+1|0;if(j>>>0>i>>>0)c[(c[r>>2]|0)+(i*20|0)+8>>2]=j;c[h+88>>2]=j+-1;sh(D,d[m+8>>0]|0,c[m>>2]|0,k,0)|0;l=(c[l>>2]|0)+-1|0;j=c[p>>2]|0;if(j>>>0>l>>>0)c[(c[r>>2]|0)+(l*20|0)+8>>2]=j;h=c[f>>2]|0;c[h+88>>2]=j+-1;n=n+-1|0;if((n|0)<=0)break;else m=m+-12|0}}ig(G,c[g>>2]|0)}A=c[e+(o*80|0)+748>>2]|0;i=c[f>>2]|0;h=~A;if((A|0)<0?(q=c[i+112>>2]|0,(q|0)!=0):0)c[q+(h<<2)>>2]=c[p>>2];h=c[p>>2]|0;c[i+88>>2]=h+-1;i=e+(o*80|0)+756|0;g=c[i>>2]|0;if(g){sh(D,16,0,g,0)|0;i=c[i>>2]|0;h=c[p>>2]|0;if(h>>>0>i>>>0)c[(c[r>>2]|0)+(i*20|0)+8>>2]=h;j=h+-1|0;g=(c[f>>2]|0)+88|0;c[g>>2]=j;i=i+-2|0;if(h>>>0>i>>>0)c[(c[r>>2]|0)+(i*20|0)+8>>2]=h;c[g>>2]=j}i=c[e+(o*80|0)+776>>2]|0;if(i){if(!(a[(c[D>>2]|0)+65>>0]|0))h=(c[r>>2]|0)+((((i|0)<1?h:i)+-1|0)*20|0)|0;else h=29120;sh(D,(c[h+4>>2]|0)==0?141:140,c[e+(o*80|0)+772>>2]|0,i,0)|0}g=c[e+(o*80|0)+736>>2]|0;if(g){j=sh(D,137,g,0,0)|0;g=c[t>>2]|0;if(!(g&64)){sh(D,104,c[F+(o*72|0)+48>>2]|0,0,0)|0;g=c[t>>2]|0}if(g&512)sh(D,104,c[e+(o*80|0)+744>>2]|0,0,0)|0;g=c[e+(o*80|0)+764>>2]|0;if((a[B>>0]|0)==18)sh(D,17,c[e+(o*80|0)+784>>2]|0,g,0)|0;else sh(D,16,0,g,0)|0;g=c[p>>2]|0;if(g>>>0>j>>>0)c[(c[r>>2]|0)+(j*20|0)+8>>2]=g;c[(c[f>>2]|0)+88>>2]=g+-1}}while((o|0)>0)}A=c[e+52>>2]|0;g=c[f>>2]|0;f=~A;if((A|0)<0?(y=c[g+112>>2]|0,(y|0)!=0):0)c[y+(f<<2)>>2]=c[D+32>>2];B=D+32|0;c[g+88>>2]=(c[B>>2]|0)+-1;if(a[H>>0]|0){u=e+34|0;v=e+38|0;w=e+64|0;x=G+65|0;y=D+4|0;z=0;A=e+736|0;while(1){i=d[A+44>>0]|0;j=c[F+(i*72|0)+24>>2]|0;h=c[A+64>>2]|0;if((a[F+(i*72|0)+45>>0]&4)!=0?(a[x>>0]|0)==0:0){k=c[B>>2]|0;h=c[A+32>>2]|0;if(!(a[(c[D>>2]|0)+65>>0]|0))g=(c[y>>2]|0)+(((h|0)<0?k+-1|0:h)*20|0)|0;else g=29120;if((h|0)<(k|0)){l=c[A+4>>2]|0;j=F+(i*72|0)+40|0;i=g;while(1){g=i+4|0;do if((c[g>>2]|0)==(l|0)){f=a[i>>0]|0;if(f<<24>>24==47){a[i>>0]=33;s=i+8|0;c[g>>2]=(c[j>>2]|0)+(c[s>>2]|0);t=i+12|0;c[s>>2]=c[t>>2];c[t>>2]=0;break}else if(f<<24>>24==103){a[i>>0]=28;c[g>>2]=0;c[i+12>>2]=0;break}else break}while(0);h=h+1|0;if((h|0)==(k|0))break;else i=i+20|0}}}else I=64;do if((I|0)==64){I=0;t=j+44|0;if(((a[t>>0]&2)==0?(c[j+12>>2]|0)==0:0)?(b[u>>1]&16)==0:0){g=c[h+36>>2]|0;if((a[v>>0]|0)==0&(g&64|0)==0)sh(D,61,c[F+(i*72|0)+48>>2]|0,0,0)|0;if((g&17152|0)==512?(E=c[A+8>>2]|0,(E|0)!=(c[w>>2]|0)):0)sh(D,61,E,0,0)|0}g=c[h+36>>2]|0;if(!(g&576)){if(!(g&8192))break;g=A+56|0}else g=h+28|0;h=c[g>>2]|0;if((h|0)!=0?(a[x>>0]|0)==0:0){r=c[B>>2]|0;l=c[A+32>>2]|0;if(!(a[(c[D>>2]|0)+65>>0]|0))k=(c[y>>2]|0)+(((l|0)<0?r+-1|0:l)*20|0)|0;else k=29120;if((l|0)<(r|0)){s=h+48|0;p=h+4|0;q=A+8|0;o=j+8|0;f=c[A+4>>2]|0;g=k;while(1){h=g+4|0;a:do if((c[h>>2]|0)==(f|0)){k=a[g>>0]|0;if(k<<24>>24==103){c[h>>2]=c[q>>2];a[g>>0]=112;break}else if(k<<24>>24!=47)break;i=g+8|0;k=c[i>>2]|0;if(a[t>>0]&32){j=o;while(1){j=c[j>>2]|0;if((a[j+51>>0]&3)==2)break;else j=j+20|0}k=b[(c[j+4>>2]|0)+(k<<1)>>1]|0}n=k&65535;k=b[s>>1]|0;if(k<<16>>16){j=c[p>>2]|0;m=k&65535;k=0;while(1){if((b[j+(k<<1)>>1]|0)==n<<16>>16)break;k=k+1|0;if((k|0)>=(m|0))break a}if((k&65535)<<16>>16>-1){c[i>>2]=k<<16>>16;c[h>>2]=c[q>>2]}}}while(0);l=l+1|0;if((l|0)==(r|0))break;else g=g+20|0}}}}while(0);z=z+1|0;if((z|0)>=(d[H>>0]|0))break;else A=A+80|0}}c[C+424>>2]=c[e+56>>2];Tu(G,e);return}function Us(a,b){a=a|0;b=b|0;var d=0,e=0;if((b|0)!=0?(c[b>>2]|0)>0:0){d=0;e=c[b+4>>2]|0;while(1){Uu(a,c[e>>2]|0);d=d+1|0;if((d|0)>=(c[b>>2]|0))break;else e=e+20|0}}return}function Vs(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();r=u;h=c[e+24>>2]|0;s=c[h>>2]|0;m=c[h+4>>2]|0;t=c[h+12>>2]|0;g=d[f>>0]|0;a:do if((g|0)==154|(g|0)==156)if((m|0)!=0?(l=c[m>>2]|0,(l|0)>0):0){p=f+28|0;o=c[p>>2]|0;g=0;h=m+8|0;while(1){if((o|0)==(c[h+40>>2]|0))break;g=g+1|0;if((g|0)>=(l|0)){e=1;break a}else h=h+72|0}n=t+28|0;k=t+32|0;h=c[k>>2]|0;b:do if((h|0)>0){m=f+32|0;e=0;l=c[n>>2]|0;while(1){if((c[l+4>>2]|0)==(o|0)?(c[l+8>>2]|0)==(b[m>>1]|0):0)break b;e=e+1|0;if((e|0)<(h|0))l=l+24|0;else break}}else e=0;while(0);c:do if((e|0)>=(h|0)){h=Dt(c[s>>2]|0,c[n>>2]|0,24,k,r)|0;c[n>>2]=h;e=c[r>>2]|0;if((e|0)>-1){c[h+(e*24|0)>>2]=c[f+44>>2];k=c[p>>2]|0;c[h+(e*24|0)+4>>2]=k;l=b[f+32>>1]|0;c[h+(e*24|0)+8>>2]=l<<16>>16;p=s+72|0;m=(c[p>>2]|0)+1|0;c[p>>2]=m;c[h+(e*24|0)+16>>2]=m;m=h+(e*24|0)+12|0;c[m>>2]=-1;c[h+(e*24|0)+20>>2]=f;h=c[t+24>>2]|0;d:do if((h|0)!=0?(q=c[h>>2]|0,(q|0)>0):0){g=0;h=c[h+4>>2]|0;while(1){p=c[h>>2]|0;if(((a[p>>0]|0)==-102?(c[p+28>>2]|0)==(k|0):0)?(b[p+32>>1]|0)==l<<16>>16:0)break;g=g+1|0;if((g|0)>=(q|0))break d;else h=h+20|0}c[m>>2]=g;if((g|0)>=0)break c}while(0);p=t+12|0;q=c[p>>2]|0;c[p>>2]=q+1;c[m>>2]=q}}while(0);c[f+40>>2]=t;a[f>>0]=-100;b[f+34>>1]=e;e=1}else e=1;else if(((g|0)==155?(b[h+28>>1]&8)==0:0)?(c[e+16>>2]|0)==(d[f+38>>0]|0):0){l=t+40|0;m=t+44|0;g=c[m>>2]|0;e:do if((g|0)>0){e=0;h=c[l>>2]|0;while(1){if(!(yu(c[h>>2]|0,f,-1)|0))break e;e=e+1|0;if((e|0)<(g|0))h=h+16|0;else break}}else e=0;while(0);do if((e|0)>=(g|0)){k=c[s>>2]|0;n=a[k+62>>0]|0;k=Dt(k,c[l>>2]|0,16,m,r)|0;c[l>>2]=k;e=c[r>>2]|0;if((e|0)>-1){c[k+(e<<4)>>2]=f;l=s+72|0;m=(c[l>>2]|0)+1|0;c[l>>2]=m;c[k+(e<<4)+8>>2]=m;m=c[s>>2]|0;l=c[f+8>>2]|0;if(!l)g=0;else{h=l;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;g=h-l&1073741823}h=c[f+20>>2]|0;if(!h)h=0;else h=c[h>>2]|0;c[k+(e<<4)+4>>2]=Oh(m,l,g,h,n,0)|0;if(!(c[f+4>>2]&16)){c[k+(e<<4)+12>>2]=-1;break}else{p=s+68|0;q=c[p>>2]|0;c[p>>2]=q+1;c[k+(e<<4)+12>>2]=q;break}}}while(0);b[f+34>>1]=e;c[f+40>>2]=t;e=1}else e=0;while(0);i=u;return e|0}function Ws(a,b){a=a|0;b=b|0;return 0}function Xs(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if((a[b+450>>0]|0)==2){g=c[b+8>>2]|0;h=c[b>>2]|0;c[e>>2]=d;e=qh(h,35e3,e)|0;th(g,sh(g,157,c[b+464>>2]|0,0,0)|0,e,-1)}i=f;return}function Ys(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=b+19|0;i=0;j=b+116|0;while(1){e=j+12|0;f=c[e>>2]|0;if(f){g=j+6|0;if(a[g>>0]|0){h=a[d>>0]|0;if((h&255)<8){a[d>>0]=h+1<<24>>24;c[b+((h&255)<<2)+24>>2]=f}a[g>>0]=0}c[e>>2]=0}i=i+1|0;if((i|0)==10)break;else j=j+20|0}return}function Zs(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+32|0;if((i|0)>=(j|0))ba();x=z;g=f&255;q=34-(g&1)|0;t=c[d>>2]|0;if(!(a[b+23>>0]|0))f=g&253;if((t|0)>0){h=(f&2)==0;k=b+8|0;l=(q|0)==33;m=x+20|0;n=x+4|0;o=x+24|0;p=0;d=c[d+4>>2]|0;while(1){g=c[d>>2]|0;if(!h?(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[m>>0]=1,c[x>>2]=78,c[n>>2]=79,c[o>>2]=0,ns(x,g)|0,(a[m>>0]|0)!=0):0)Ct(b,g,p+e|0,0);else y=8;do if((y|0)==8?(y=0,r=p+e|0,s=es(b,g,r)|0,(s|0)!=(r|0)):0){f=c[k>>2]|0;if(l){if(!(a[(c[f>>2]|0)+65>>0]|0))g=(c[f+4>>2]|0)+(((c[f+32>>2]|0)+-1|0)*20|0)|0;else g=29120;if(((a[g>>0]|0)==33?(u=g+12|0,v=c[u>>2]|0,((c[g+4>>2]|0)+1+v|0)==(s|0)):0)?(w=v+1|0,(w+(c[g+8>>2]|0)|0)==(r|0)):0){c[u>>2]=w;break}}sh(f,q,s,r,0)|0}while(0);p=p+1|0;if((p|0)==(t|0))break;else d=d+20|0}}i=z;return}function _s(d,e,f,g,h,i){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;n=c[d+8>>2]|0;j=d+116|0;m=0;k=j;while(1){l=c[k+12>>2]|0;if(((l|0)>0?(c[k>>2]|0)==(g|0):0)?(b[k+4>>1]|0)==(f|0):0){h=l;m=5;break}m=m+1|0;if((m|0)>=10){m=10;break}else k=k+20|0}do if((m|0)==5){n=d+104|0;i=c[n>>2]|0;c[n>>2]=i+1;c[k+16>>2]=i;k=0;while(1){if((c[j+12>>2]|0)==(h|0))a[j+6>>0]=0;k=k+1|0;if((k|0)==10)break;else j=j+20|0}}else if((m|0)==10){jt(n,e,g,f,h);if(!(i<<24>>24)){Ou(d,g,f,h);break}j=c[n+4>>2]|0;if(j)a[j+(((c[n+32>>2]|0)+-1|0)*20|0)+3>>0]=i}while(0);return h|0}function $s(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=d+-1+e|0;g=b+19|0;k=0;l=b+116|0;while(1){h=l+12|0;i=c[h>>2]|0;if(!((i|0)<(d|0)|(i|0)>(e|0))){j=l+6|0;if(a[j>>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[j>>0]=0}c[h>>2]=0}k=k+1|0;if((k|0)==10)break;else l=l+20|0}return}function at(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,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=c[d+8>>2]|0;a[e>>0]=1;s=e+44|0;if((c[s>>2]|0)>0){t=A+4|0;v=d+56|0;w=d+60|0;o=A+24|0;p=A+32|0;q=e+36|0;r=d+72|0;x=0;y=c[e+40>>2]|0;f=0;while(1){k=c[(c[y>>2]|0)+20>>2]|0;if(!k){g=0;i=0}else{g=c[k>>2]|0;i=c[w>>2]|0;h=c[v>>2]|0;if((h|0)<(g|0)){i=c[r>>2]|0;c[r>>2]=i+g;i=i+1|0}else{c[w>>2]=i+g;c[v>>2]=h-g}Zs(d,k,i,1)}h=y+12|0;if((c[h>>2]|0)>-1){n=ts(A)|0;vu(d,c[h>>2]|0,n,1,i)}else n=0;m=y+4|0;h=c[m>>2]|0;if(b[h+2>>1]&32){if((g|0)>0){l=0;k=c[k+4>>2]|0;while(1){h=_t(d,c[k>>2]|0)|0;l=l+1|0;j=(h|0)!=0;if(!((l|0)<(g|0)&(j^1)))break;else k=k+20|0}if(!j)z=15}else z=15;if((z|0)==15){z=0;h=c[(c[d>>2]|0)+8>>2]|0}if(!f)if(!(c[q>>2]|0))f=0;else{f=(c[r>>2]|0)+1|0;c[r>>2]=f}th(A,sh(A,36,f,0,0)|0,h,-4);h=c[m>>2]|0}th(A,sh(A,10,0,i,c[y+8>>2]|0)|0,h,-5);h=c[t>>2]|0;if(h)a[h+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=g;$s(d,i,g);$s(d,i,g);if((c[v>>2]|0)<(g|0)){c[v>>2]=g;c[w>>2]=i}if(n){i=c[o>>2]|0;h=~n;if((n|0)<0?(u=c[i+112>>2]|0,(u|0)!=0):0)c[u+(h<<2)>>2]=c[p>>2];c[i+88>>2]=(c[p>>2]|0)+-1;Ys(d)}x=x+1|0;if((x|0)>=(c[s>>2]|0))break;else y=y+16|0}if(f)i=sh(A,45,f,0,0)|0;else i=0}else i=0;Ys(d);f=e+36|0;if((c[f>>2]|0)>0){g=0;h=c[e+28>>2]|0;while(1){Nq(d,c[h+20>>2]|0,c[h+16>>2]|0);g=g+1|0;if((g|0)>=(c[f>>2]|0))break;else h=h+24|0}}a[e>>0]=0;Ys(d);if(i){f=c[A+32>>2]|0;if(f>>>0>i>>>0)c[(c[A+4>>2]|0)+(i*20|0)+8>>2]=f;c[(c[A+24>>2]|0)+88>>2]=f+-1}return}function bt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[a+8>>2]|0;e=b+44|0;if((c[e>>2]|0)>0){f=0;b=c[b+40>>2]|0;while(1){a=c[(c[b>>2]|0)+20>>2]|0;if(!a)a=0;else a=c[a>>2]|0;g=c[b+4>>2]|0;th(d,sh(d,142,c[b+8>>2]|0,a,0)|0,g,-5);f=f+1|0;if((f|0)>=(c[e>>2]|0))break;else b=b+16|0}}return}function ct(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;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|(e|0)==0)){q=d[e>>0]|0;h=q^1;a:do switch(q|0){case 71:{l=ts(m)|0;Vu(b,c[e+12>>2]|0,l,g^16);h=b+100|0;c[h>>2]=(c[h>>2]|0)+1;ct(b,c[e+16>>2]|0,f,g);f=c[m+24>>2]|0;h=~l;if((l|0)<0?(k=c[f+112>>2]|0,(k|0)!=0):0)c[k+(h<<2)>>2]=c[m+32>>2];c[f+88>>2]=(c[m+32>>2]|0)+-1;Zt(b);break}case 74:{Wu(b,e,f,0,g);break}case 19:{Vu(b,c[e+12>>2]|0,f,g);break}case 72:{ct(b,c[e+12>>2]|0,f,g);m=b+100|0;c[m>>2]=(c[m>>2]|0)+1;ct(b,c[e+16>>2]|0,f,g);Zt(b);break}case 77:case 76:{sh(m,h,Xt(b,c[e+12>>2]|0,n)|0,f,0)|0;break}case 79:case 78:case 83:case 80:case 81:case 82:{q=e+12|0;l=Xt(b,c[q>>2]|0,n)|0;k=e+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[q>>2]|0,c[k>>2]|0,h,l,m,f,g);break}case 148:case 73:{g=e+12|0;l=Xt(b,c[g>>2]|0,n)|0;k=e+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[g>>2]|0,c[k>>2]|0,(a[e>>0]|0)==73?78:79,l,m,f,128);break}case 75:{if(g){bu(b,e,f,f);break a}k=ts(m)|0;bu(b,e,f,k);h=c[m+24>>2]|0;f=~k;if((k|0)<0?(l=c[h+112>>2]|0,(l|0)!=0):0)c[l+(f<<2)>>2]=c[m+32>>2];c[h+88>>2]=(c[m+32>>2]|0)+-1;break}default:{if(iu(e)|0){sh(m,16,0,f,0)|0;break a}if(!(Xu(e)|0))sh(m,46,Xt(b,e,n)|0,f,(g|0)!=0&1)|0}}while(0);Wr(b,c[n>>2]|0);Wr(b,c[o>>2]|0)}i=p;return}function dt(a,b){a=a|0;b=b|0;var d=0,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;f=c[a+8>>2]|0;g=b+44|0;if((c[g>>2]|0)!=(0-(c[b+32>>2]|0)|0)?(sh(f,28,0,c[b+16>>2]|0,c[b+20>>2]|0)|0,(c[g>>2]|0)>0):0){h=0;e=c[b+40>>2]|0;while(1){b=e+12|0;do if((c[b>>2]|0)>-1){d=c[(c[e>>2]|0)+20>>2]|0;if((d|0)!=0?(c[d>>2]|0)==1:0){d=Qs(a,d,0,0)|0;th(f,sh(f,57,c[b>>2]|0,0,0)|0,d,-6);break}ph(a,34944,k);c[b>>2]=-1}while(0);h=h+1|0;if((h|0)>=(c[g>>2]|0))break;else e=e+16|0}}i=l;return}function et(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((b|0)>0){e=sh(a,138,b,0,-1)|0;sh(a,16,0,d,0)|0;b=c[a+32>>2]|0;if(b>>>0>e>>>0)c[(c[a+4>>2]|0)+(e*20|0)+8>>2]=b;c[(c[a+24>>2]|0)+88>>2]=b+-1}return}function ft(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var h=0;if((c[(c[a>>2]|0)+24>>2]&8388608|0)!=0?(h=ws(a,b)|0,(h|0)!=0):0){a=0;b=h;do{if((d[b+8>>0]|0|0)==(e|0)?(Yu(c[b+16>>2]|0,f)|0)!=0:0)a=d[b+9>>0]|0|a;b=c[b+32>>2]|0}while((b|0)!=0)}else{a=0;h=0}if(g)c[g>>2]=a;return ((a|0)!=0?h:0)|0}function gt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;h=a[d+44>>0]|0;if(h&16){g=c[b>>2]|0;f=d+60|0;while(1){f=c[f>>2]|0;if((c[f>>2]|0)==(g|0))break;else f=f+24|0}if(!(c[(c[c[f+4>>2]>>2]|0)+52>>2]|0))g=8;else g=5}else g=5;do if((g|0)==5){if(((h&1)!=0?(c[(c[b>>2]|0)+24>>2]&2048|0)==0:0)?(a[b+18>>0]|0)==0:0){g=8;break}if((e|0)==0?(c[d+12>>2]|0)!=0:0){c[k>>2]=c[d>>2];ph(b,34456,k);f=1}else f=0}while(0);if((g|0)==8){c[k>>2]=c[d>>2];ph(b,34424,k);f=1}i=l;return f|0}function ht(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+32|0;if((i|0)>=(j|0))ba();o=p;n=c[b>>2]|0;h=c[d+68>>2]|0;a:do if(h){g=c[n+20>>2]|0;if((g|0)>0){l=c[n+16>>2]|0;m=0;while(1){k=m+1|0;if((c[l+(m<<4)+12>>2]|0)==(h|0)){k=m;break a}if((k|0)<(g|0))m=k;else break}}else k=0}else k=-1e6;while(0);g=Ir(n,e,0,0)|0;h=lr(n,0,0,0)|0;if(h){c[h+16>>2]=gh(n,c[d>>2]|0)|0;c[h+12>>2]=gh(n,c[(c[n+16>>2]|0)+(k<<4)>>2]|0)|0}e=gr(b,0,h,g,0,0,0,0,0,0)|0;a[o>>0]=12;c[o+4>>2]=f;a[o+1>>0]=0;c[o+8>>2]=0;c[o+12>>2]=0;er(b,e,o)|0;Ik(n,e,1);i=p;return}function it(a,d,e,f){a=a|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();o=p+4|0;h=p;a:do if(c[(c[a>>2]|0)+24>>2]&524288){if(!e){f=Zm((c[d+68>>2]|0)+56|0,c[d>>2]|0,h)|0;if((f|0)!=0?(c[f+8>>2]|0)!=0:0)g=1;else g=(c[d+16>>2]|0)!=0;g=g&1;break}a=c[d+16>>2]|0;if(a){m=d+36|0;n=(f|0)!=0;do{h=c[a+20>>2]|0;if((h|0)>0){l=0;do{k=c[a+(l<<3)+36>>2]|0;if((c[e+(k<<2)>>2]|0)>-1){g=1;break a}l=l+1|0;if((k|0)==(b[m>>1]|0)&n){g=1;break a}}while((l|0)<(h|0))}a=c[a+4>>2]|0}while((a|0)!=0)}h=Zm((c[d+68>>2]|0)+56|0,c[d>>2]|0,o)|0;if((h|0)!=0?(g=c[h+8>>2]|0,(g|0)!=0):0)while(1){if(Zu(d,g,e,f)|0){g=1;break a}g=c[g+12>>2]|0;if(!g){g=0;break}}else g=0}else g=0;while(0);i=p;return g|0}function jt(e,f,g,h,i){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;if((h|0)>=0?(b[f+36>>1]|0)!=(h|0):0){j=d[f+44>>0]|0;n=(j&16|0)!=0?150:47;if(!(j&32))j=h;else{j=c[f+8>>2]|0;a:do if(!j)j=0;else while(1){if((a[j+51>>0]&3)==2)break a;j=c[j+20>>2]|0;if(!j){j=0;break}}while(0);m=h&65535;k=b[j+48>>1]|0;b:do if(!(k<<16>>16))j=-1;else{l=c[j+4>>2]|0;k=k&65535;j=0;while(1){if((b[l+(j<<1)>>1]|0)==m<<16>>16)break b;j=j+1|0;if((j|0)>=(k|0)){j=-1;break}}}while(0);j=j<<16>>16}sh(e,n,g,j,i)|0}else sh(e,103,g,i,0)|0;if((h|0)>-1)Jt(e,f,h,i);return}function kt(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=f+16|0;g=c[j>>2]|0;do if(!g){h=c[f+12>>2]|0;g=c[d>>2]|0;i=f+48|0;d=mg((e[i>>1]|0)+1|0,0)|0;c[j>>2]=d;if(!d){a[g+65>>0]=1;g=0;break}if(!(b[i>>1]|0))g=0;else{f=f+4|0;h=h+4|0;g=0;do{d=b[(c[f>>2]|0)+(g<<1)>>1]|0;if(d<<16>>16<0)d=68;else d=a[(c[h>>2]|0)+((d<<16>>16)*24|0)+21>>0]|0;a[(c[j>>2]|0)+g>>0]=d;g=g+1|0}while((g|0)<(e[i>>1]|0));d=c[j>>2]|0}a[d+g>>0]=0;g=c[j>>2]|0}while(0);return g|0}function lt(b,d,e,f,g,h,i){b=b|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;r=d+44|0;if(!(a[r>>0]&16)){k=c[b>>2]|0;m=c[d+68>>2]|0;a:do if(m){n=c[k+20>>2]|0;if((n|0)>0){k=c[k+16>>2]|0;l=0;while(1){j=l+1|0;if((c[k+(l<<4)+12>>2]|0)==(m|0))break a;if((j|0)<(n|0))l=j;else{l=j;break}}}else l=0}else l=-1e6;while(0);q=Kq(b)|0;if((f|0)<0)f=c[b+68>>2]|0;k=f+1|0;p=(h|0)!=0;if(p)c[h>>2]=f;do if(!(a[r>>0]&32)){if((g|0)!=0?(a[g>>0]|0)==0:0){o=15;break}Mq(b,f,l,d,e)}else o=15;while(0);if((o|0)==15)cs(b,l,c[d+32>>2]|0,(e|0)==55&1,c[d>>2]|0);if(i)c[i>>2]=k;f=c[d+8>>2]|0;if(!f)j=0;else{m=(g|0)==0;d=b+8|0;n=k;j=0;while(1){k=n+1|0;if((a[f+51>>0]&3)==2?(a[r>>0]&32)!=0&p:0)c[h>>2]=n;j=j+1|0;if(!(!m?(a[g+j>>0]|0)==0:0)){sh(q,e,n,c[f+40>>2]|0,l)|0;o=c[d>>2]|0;th(o,-1,ds(b,f)|0,-6)}f=c[f+20>>2]|0;if(!f)break;else n=k}}f=b+68|0;if((k|0)>(c[f>>2]|0))c[f>>2]=k}else j=0;return j|0}function mt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=c[b+408>>2]|0;h=(h|0)==0?b:h;g=h+452|0;b=c[g>>2]|0;e=c[h+520>>2]|0;a:do if((b|0)>0){f=0;while(1){if((c[e+(f<<2)>>2]|0)==(d|0))break a;f=f+1|0;if((f|0)>=(b|0)){i=4;break}}}else i=4;while(0);do if((i|0)==4){b=Tc(e,(b<<2)+4|0)|0;if(!b){a[(c[h>>2]|0)+65>>0]=1;break}else{c[h+520>>2]=b;e=c[g>>2]|0;c[g>>2]=e+1;c[b+(e<<2)>>2]=d;break}}while(0);return}function nt(d,e,f,g,h,i,j,k,l,m){d=d|0;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;w=c[d+8>>2]|0;x=ts(w)|0;u=(a[e+44>>0]&32)>>>4^70;if(!(m<<24>>24))th(w,sh(w,u,g,x,i)|0,j<<16>>16,-14);if((it(d,e,0,0)|0)!=0|(f|0)!=0){q=l&255;r=rt(d,f,0,0,3,e,q)|0;r=qt(d,e)|0|r;o=d+72|0;n=c[o>>2]|0;m=n+1|0;s=e+38|0;c[o>>2]=m+(b[s>>1]|0);sh(w,33,i,m,0)|0;o=b[s>>1]|0;if(o<<16>>16>0){t=(r|0)==-1;p=n+2|0;n=0;do{if(!t){if((n|0)<32?(1<<n&r|0)!=0:0)v=9}else v=9;if((v|0)==9){v=0;jt(w,e,g,n,p+n|0);o=b[s>>1]|0}n=n+1|0}while((n|0)<(o<<16>>16|0))}t=w+32|0;s=c[t>>2]|0;tt(d,f,109,0,1,e,m,q,x);if((s|0)<(c[t>>2]|0))th(w,sh(w,u,g,x,i)|0,j<<16>>16,-14);vt(d,e,m,0,0,0)}else m=0;if((c[e+12>>2]|0)==0?(wt(d,e,g,h,0),sh(w,95,g,k<<24>>24!=0&1,0)|0,k<<24>>24!=0):0)th(w,-1,c[e>>2]|0,0);yt(d,e,0,m,0,0);tt(d,f,109,0,2,e,m,l&255,x);n=c[w+24>>2]|0;m=~x;if((x|0)<0?(y=c[n+112>>2]|0,(y|0)!=0):0)c[y+(m<<2)>>2]=c[w+32>>2];c[n+88>>2]=(c[w+32>>2]|0)+-1;return}function ot(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=c[b+8>>2]|0;d=c[b+404>>2]|0;if(d){l=(c[b>>2]|0)+16|0;m=b+19|0;n=b+72|0;o=j+32|0;p=j+4|0;k=j+24|0;do{f=c[d+8>>2]|0;g=c[l>>2]|0;i=c[d+12>>2]|0;e=a[m>>0]|0;if(!(e<<24>>24)){h=(c[n>>2]|0)+1|0;c[n>>2]=h}else{h=e+-1<<24>>24;a[m>>0]=h;h=c[b+((h&255)<<2)+24>>2]|0}Mq(b,0,f,c[(c[g+(f<<4)+12>>2]|0)+72>>2]|0,55);g=i+1|0;f=sh(j,77,g,0,0)|0;sh(j,74,0,g,0)|0;e=c[o>>2]|0;if(e>>>0>f>>>0)c[(c[p>>2]|0)+(f*20|0)+8>>2]=e;c[(c[k>>2]|0)+88>>2]=e+-1;sh(j,49,i+-1|0,2,h)|0;sh(j,75,0,h,g)|0;e=c[p>>2]|0;if(e)a[e+(((c[o>>2]|0)+-1|0)*20|0)+3>>0]=8;sh(j,61,0,0,0)|0;Wr(b,h);d=c[d>>2]|0}while((d|0)!=0)}return}function pt(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=jr(b,d,g,0)|0;i=h;return f|0}function qt(a,d){a=a|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;o=i;i=i+16|0;if((i|0)>=(j|0))ba();k=o+4|0;n=o;if(c[(c[a>>2]|0)+24>>2]&524288){f=c[d+16>>2]|0;if(!f)e=0;else{e=0;do{g=c[f+20>>2]|0;if((g|0)>0){h=0;do{p=c[f+(h<<3)+36>>2]|0;e=((p|0)>31?-1:1<<p)|e;h=h+1|0}while((h|0)<(g|0))}f=c[f+4>>2]|0}while((f|0)!=0)}f=Zm((c[d+68>>2]|0)+56|0,c[d>>2]|0,k)|0;if((f|0)!=0?(l=c[f+8>>2]|0,(l|0)!=0):0)do{c[n>>2]=0;It(a,d,l,n,0)|0;f=c[n>>2]|0;if((f|0)!=0?(m=b[f+46>>1]|0,m<<16>>16!=0):0){k=m&65535;h=c[f+4>>2]|0;g=0;do{f=b[h+(g<<1)>>1]|0;if(f<<16>>16>31)f=-1;else f=1<<(f<<16>>16);e=f|e;g=g+1|0}while((g|0)<(k|0))}l=c[l+12>>2]|0}while((l|0)!=0)}else e=0;i=o;return e|0}function rt(a,b,e,f,g,h,i){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;k=(e|0)!=0?110:109;if(!b)j=0;else{j=0;do{if((((d[b+8>>0]|0|0)==(k|0)?((d[b+9>>0]|0)&g|0)!=0:0)?(Yu(c[b+16>>2]|0,e)|0)!=0:0)?(l=_u(a,b,h,i)|0,(l|0)!=0):0)j=c[l+(f<<2)+16>>2]|j;b=c[b+32>>2]|0}while((b|0)!=0)}return j|0}function st(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=e+20|0;g=c[l>>2]|0;do if(!g){i=c[d>>2]|0;k=e+38|0;h=(b[k>>1]|0)+1|0;h=mg(h,((h|0)<0)<<31>>31)|0;if(!h){a[i+65>>0]=1;break}if((b[k>>1]|0)>0){i=e+4|0;g=0;do{a[h+g>>0]=a[(c[i>>2]|0)+(g*24|0)+21>>0]|0;g=g+1|0}while((g|0)<(b[k>>1]|0))}else g=0;do{a[h+g>>0]=0;if((g|0)<=0)break;g=g+-1|0}while((a[h+g>>0]|0)==65);c[l>>2]=h;j=10}else{h=g;j=10}while(0);do if((j|0)==10){g=h;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-h&1073741823;if(g)if(!f){th(d,-1,h,g);break}else{th(d,sh(d,48,f,g,0)|0,h,g);break}}while(0);return}function tt(a,b,e,f,g,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;if(b)do{if(((d[b+8>>0]|0|0)==(e|0)?(d[b+9>>0]|0|0)==(g|0):0)?(Yu(c[b+16>>2]|0,f)|0)!=0:0)$u(a,b,h,i,j,k);b=c[b+32>>2]|0}while((b|0)!=0);return}function ut(d,f,g,h,k,l,m,n,o,p,q){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0;la=i;i=i+16|0;if((i|0)>=(j|0))ba();I=la;fa=(m|0)!=0;N=c[d>>2]|0;ka=Kq(d)|0;A=b[f+38>>1]|0;ia=f+44|0;if(!(a[ia>>0]&32)){ea=1;da=0}else{u=f+8|0;while(1){u=c[u>>2]|0;if((a[u+51>>0]&3)==2)break;else u=u+20|0}ea=e[u+46>>1]|0;da=u}if(A<<16>>16>0){w=f+36|0;v=f+4|0;u=o<<24>>24==10;t=d+408|0;s=l+1|0;B=ka+4|0;C=ka+32|0;D=ka+24|0;E=o&255;y=A<<16>>16;x=0;do{a:do if((x|0)!=(b[w>>1]|0)?(F=c[v>>2]|0,G=a[F+(x*24|0)+20>>0]|0,H=G&255,G<<24>>24!=0):0){if(u)if(G<<24>>24==10)ja=14;else{A=H;ja=11}else{A=E;ja=11}do if((ja|0)==11){ja=0;if((A|0)==5)A=(c[F+(x*24|0)+4>>2]|0)==0?2:5;if((A|0)==4){sh(ka,76,s+x|0,p,0)|0;break a}else if((A|0)==3|(A|0)==1)break;else if((A|0)==2){ja=14;break}z=s+x|0;A=sh(ka,77,z,0,0)|0;Nq(d,c[(c[v>>2]|0)+(x*24|0)+4>>2]|0,z);z=c[C>>2]|0;if(z>>>0>A>>>0)c[(c[B>>2]|0)+(A*20|0)+8>>2]=z;c[(c[D>>2]|0)+88>>2]=z+-1;break a}while(0);if((ja|0)==14){ja=0;A=c[t>>2]|0;a[((A|0)==0?d:A)+21>>0]=1;A=2}ca=c[F+(x*24|0)>>2]|0;c[I>>2]=c[f>>2];c[I+4>>2]=ca;ca=qh(N,27824,I)|0;th(ka,sh(ka,23,1299,A,s+x|0)|0,ca,-1);A=c[B>>2]|0;if(A)a[A+(((c[C>>2]|0)+-1|0)*20|0)+3>>0]=1}while(0);x=x+1|0}while((x|0)!=(y|0))}x=c[f+24>>2]|0;if(((x|0)!=0?(c[N+24>>2]&8192|0)==0:0)?(c[d+92>>2]=l+1,(c[x>>2]|0)>0):0){w=x+4|0;s=ka+24|0;y=ka+32|0;A=0;u=o<<24>>24==10?2:o&255;while(1){z=ts(ka)|0;Vu(d,c[(c[w>>2]|0)+(A*20|0)>>2]|0,z,16);if((u|0)==4){sh(ka,16,0,p,0)|0;t=4}else{v=c[(c[w>>2]|0)+(A*20|0)+4>>2]|0;if(!v)v=c[f>>2]|0;t=(u|0)==5?2:u;vs(d,275,t,v,0,3)}v=c[s>>2]|0;u=~z;if((z|0)<0?(J=c[v+112>>2]|0,(J|0)!=0):0)c[J+(u<<2)>>2]=c[y>>2];c[v+88>>2]=(c[y>>2]|0)+-1;A=A+1|0;if((A|0)>=(c[x>>2]|0))break;else u=t}}if(n<<24>>24!=0&(da|0)==0){w=ts(ka)|0;s=a[f+45>>0]|0;if(o<<24>>24==10)s=s<<24>>24==10?2:s&255;else s=o&255;if(fa?(sh(ka,79,l,w,m)|0,K=c[ka+4>>2]|0,(K|0)!=0):0)a[K+(((c[ka+32>>2]|0)+-1|0)*20|0)+3>>0]=-112;b:do if(!((s|0)!=5|o<<24>>24==5)?(r=c[f+8>>2]|0,(r|0)!=0):0){while(1){if(((a[r+50>>0]|0)+-3&255)<2)break;r=c[r+20>>2]|0;if(!r){x=0;break b}}x=sh(ka,16,0,0,0)|0}else x=0;while(0);sh(ka,70,h,w,l)|0;c:do switch(s|0){case 4:{sh(ka,16,0,p,0)|0;s=0;break}case 3:case 2:case 1:{ja=49;break}case 5:{if((c[N+24>>2]&262144|0)!=0?(L=ft(d,f,109,0,0)|0,(L|0)!=0):0)s=L;else if(!(it(d,f,0,0)|0)){if(!(c[f+8>>2]|0)){s=1;break c}s=c[d+408>>2]|0;a[((s|0)==0?d:s)+20>>0]=1;wt(d,f,h,k,0);s=1;break c}else s=0;ca=c[d+408>>2]|0;a[((ca|0)==0?d:ca)+20>>0]=1;nt(d,f,s,h,k,l,1,0,5,1);s=1;break}default:{s=2;ja=49}}while(0);if((ja|0)==49){Bt(d,s,f);s=0}v=ka+24|0;u=c[v>>2]|0;t=~w;if((w|0)<0?(M=c[u+112>>2]|0,(M|0)!=0):0)c[M+(t<<2)>>2]=c[ka+32>>2];r=ka+32|0;c[u+88>>2]=(c[r>>2]|0)+-1;if(!x){t=0;x=0}else{t=sh(ka,16,0,0,0)|0;r=c[r>>2]|0;if(r>>>0>x>>>0)c[(c[ka+4>>2]|0)+(x*20|0)+8>>2]=r;c[(c[v>>2]|0)+88>>2]=r+-1}}else{t=0;x=0;s=0}A=c[f+8>>2]|0;if(A){_=l+1|0;$=d+60|0;aa=d+56|0;ca=d+72|0;Q=n<<24>>24==0;R=ka+24|0;S=ka+32|0;T=o<<24>>24==10;U=ka+4|0;V=da+46|0;W=da+32|0;X=da+4|0;Y=m+1|0;Z=d+408|0;O=N+24|0;P=ea&65535;w=o&255;v=f+36|0;u=d+92|0;E=0;r=0;z=-1;while(1){L=g+(r<<2)|0;do if(c[L>>2]|0){if(!(E<<24>>24)){st(ka,f,_);E=1}M=r+k|0;o=ts(ka)|0;K=A+36|0;if(c[K>>2]|0){sh(ka,28,0,c[L>>2]|0,0)|0;c[u>>2]=_;ct(d,c[K>>2]|0,o,16);c[u>>2]=0}N=A+48|0;F=b[N>>1]|0;I=F&65535;H=c[$>>2]|0;G=c[aa>>2]|0;if((G|0)<(I|0)){n=c[ca>>2]|0;c[ca>>2]=n+I;n=n+1|0}else{c[$>>2]=H+I;c[aa>>2]=G-I;n=H}if(!(F<<16>>16))J=z;else{J=A+4|0;G=0;do{y=b[(c[J>>2]|0)+(G<<1)>>1]|0;I=y<<16>>16;if(y<<16>>16>=0?y<<16>>16!=(b[v>>1]|0):0){H=G+n|0;I=_+I|0;ja=81}else{I=G+n|0;if((z|0)!=(I|0)){H=I;z=(c[K>>2]|0)==0?I:-1;I=l;ja=81}}if((ja|0)==81){ja=0;sh(ka,34,I,H,0)|0;F=b[N>>1]|0}G=G+1|0;I=F&65535}while((G|0)<(I|0));J=z}sh(ka,49,n,I,c[L>>2]|0)|0;$s(d,n,e[N>>1]|0);K=(da|0)==(A|0);if(fa&K&Q){z=c[R>>2]|0;y=~o;if((o|0)<0?(ga=c[z+112>>2]|0,(ga|0)!=0):0)c[ga+(y<<2)>>2]=c[S>>2];c[z+88>>2]=(c[S>>2]|0)+-1;z=J;break}D=a[A+50>>0]|0;C=D&255;if(!(D<<24>>24)){z=e[N>>1]|0;$s(d,n,z);if((c[aa>>2]|0)<(z|0)){c[aa>>2]=z;c[$>>2]=n}z=c[R>>2]|0;y=~o;if((o|0)<0?(ha=c[z+112>>2]|0,(ha|0)!=0):0)c[ha+(y<<2)>>2]=c[S>>2];c[z+88>>2]=(c[S>>2]|0)+-1;z=J;break}if(T)L=D<<24>>24==10?2:C;else L=w;z=e[A+46>>1]|0;th(ka,sh(ka,67,M,o,n)|0,z,-14);do if(!K){I=c[$>>2]|0;H=c[aa>>2]|0;if((H|0)<(ea|0)){I=c[ca>>2]|0;c[ca>>2]=I+ea;I=I+1|0;break}else{c[$>>2]=I+ea;c[aa>>2]=H-ea;break}}else I=n;while(0);do if(fa|(L|0)==5){if(!(a[ia>>0]&32)){sh(ka,112,M,I,0)|0;if(!fa)break;sh(ka,79,I,o,m)|0;D=c[U>>2]|0;if(!D)break;a[D+(((c[S>>2]|0)+-1|0)*20|0)+3>>0]=-112;break}do if(!K){if(!(b[V>>1]|0))break;C=A+4|0;B=0;do{F=b[(c[X>>2]|0)+(B<<1)>>1]|0;H=b[N>>1]|0;d:do if(!(H<<16>>16))H=-1;else{D=c[C>>2]|0;G=H&65535;H=0;while(1){if((b[D+(H<<1)>>1]|0)==F<<16>>16)break d;H=H+1|0;if((H|0)>=(G|0)){H=-1;break}}}while(0);sh(ka,47,M,H<<16>>16,B+I|0)|0;B=B+1|0}while((B|0)<(e[V>>1]|0))}while(0);if(!fa)break;C=(a[A+51>>0]&3)==2?n:I;H=b[V>>1]|0;if(!(H<<16>>16))break;G=(H&65535)+(c[S>>2]|0)|0;F=0;D=78;do{H=_q(d,c[(c[W>>2]|0)+(F<<2)>>2]|0)|0;z=(F|0)==((e[V>>1]|0)+-1|0);G=z?o:G;D=z?79:D;th(ka,sh(ka,D,Y+(b[(c[X>>2]|0)+(F<<1)>>1]|0)|0,G,F+C|0)|0,H,-4);H=c[U>>2]|0;if(H)a[H+(((c[S>>2]|0)+-1|0)*20|0)+3>>0]=-112;F=F+1|0}while((F|0)<(e[V>>1]|0))}while(0);if((L|0)==3|(L|0)==2|(L|0)==1)ju(d,L,A);else if((L|0)==4)sh(ka,16,0,p,0)|0;else{z=c[Z>>2]|0;a[((z|0)==0?d:z)+20>>0]=1;if(!(c[O>>2]&262144))D=0;else D=ft(d,f,109,0,0)|0;nt(d,f,D,h,k,I,P,0,5,K&1);s=1}H=c[R>>2]|0;G=~o;do if((o|0)<0){D=c[H+112>>2]|0;if(!D)break;c[D+(G<<2)>>2]=c[S>>2]}while(0);c[H+88>>2]=(c[S>>2]|0)+-1;z=e[N>>1]|0;$s(d,n,z);if((c[aa>>2]|0)<(z|0)){c[aa>>2]=z;c[$>>2]=n}if((I|0)==(n|0)){z=J;break}$s(d,I,ea);if((c[aa>>2]|0)>=(ea|0)){z=J;break}c[aa>>2]=ea;c[$>>2]=I;z=J}while(0);A=c[A+20>>2]|0;if(!A)break;else r=r+1|0}}if(x){sh(ka,16,0,x+1|0,0)|0;r=c[ka+32>>2]|0;if(r>>>0>t>>>0)c[(c[ka+4>>2]|0)+(t*20|0)+8>>2]=r;c[(c[ka+24>>2]|0)+88>>2]=r+-1}c[q>>2]=s;i=la;return}function vt(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,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;Z=i;i=i+32|0;if((i|0)>=(j|0))ba();Q=Z+20|0;O=Z+16|0;M=Z+12|0;N=Z+8|0;X=Z+4|0;W=Z;S=c[e>>2]|0;L=e+438|0;R=a[L>>0]|0;V=S+24|0;a:do if(c[V>>2]&524288){P=f+68|0;m=c[P>>2]|0;b:do if(m){o=c[S+20>>2]|0;if((o|0)>0){n=c[S+16>>2]|0;r=0;while(1){q=r+1|0;if((c[n+(r<<4)+12>>2]|0)==(m|0)){q=r;break b}if((q|0)<(o|0))r=q;else break}}else q=0}else q=-1e6;while(0);K=c[(c[S+16>>2]|0)+(q<<4)>>2]|0;x=c[f+16>>2]|0;if(!x)n=f;else{z=(k|0)==0;A=R<<24>>24==0;B=S+65|0;C=g+1|0;D=e+68|0;E=(g|0)==0;F=(h|0)==0;G=e+408|0;H=f+36|0;I=S+284|0;J=(l|0)!=0;y=x;do{c[O>>2]=0;c[M>>2]=0;c:do if(!z){x=c[y+8>>2]|0;if($c(c[f>>2]|0,x)|0){w=c[y+20>>2]|0;if((w|0)>0){n=0;do{m=c[y+(n<<3)+36>>2]|0;if((c[k+(m<<2)>>2]|0)>-1){Y=17;break c}n=n+1|0;if((m|0)==(b[H>>1]|0)&J){Y=17;break c}}while((n|0)<(w|0))}}else Y=17}else{x=c[y+8>>2]|0;Y=17}while(0);do if((Y|0)==17){Y=0;if(!(a[L>>0]|0))v=oh(e,0,x,K)|0;else v=Wh(S,x,K)|0;x=(v|0)==0;if(!x?(It(e,v,y,O,M)|0)==0:0){x=c[M>>2]|0;if(!x){c[N>>2]=c[y+36>>2];x=N}n=y+20|0;if((c[n>>2]|0)>0){t=c[O>>2]|0;o=(t|0)==0;r=v+36|0;s=v+4|0;t=t+4|0;m=0;u=0;do{w=x+(u<<2)|0;if((c[w>>2]|0)==(b[H>>1]|0))c[w>>2]=-1;if(c[I>>2]|0){if(o)w=r;else w=(c[t>>2]|0)+(u<<1)|0;m=(av(e,c[v>>2]|0,c[(c[s>>2]|0)+((b[w>>1]|0)*24|0)>>2]|0,q)|0)==2&1}u=u+1|0}while((u|0)<(c[n>>2]|0));w=v}else{w=v;m=0}cs(e,q,c[v+32>>2]|0,0,c[w>>2]|0);c[D>>2]=(c[D>>2]|0)+1;if(!E)bv(e,q,v,c[O>>2]|0,y,x,g,-1,m);d:do if(!F){w=c[G>>2]|0;w=c[((w|0)==0?e:w)+528>>2]|0;do if(w){w=c[w>>2]|0;if((w|0)==(c[y+28>>2]|0)?(a[y+25>>0]|0)==7:0)break d;if((w|0)!=(c[y+32>>2]|0))break;if((a[y+26>>0]|0)==7)break d}while(0);bv(e,q,v,c[O>>2]|0,y,x,h,1,m)}while(0);ig(S,c[M>>2]|0);break}if(A)break a;if(a[B>>0]|0)break a;if(x){x=Kq(e)|0;w=y+20|0;n=c[w>>2]|0;m=(c[x+32>>2]|0)+1+n|0;if((n|0)>0){n=0;do{sh(x,76,C+(c[y+(n<<3)+36>>2]|0)|0,m,0)|0;n=n+1|0}while((n|0)<(c[w>>2]|0))}sh(x,134,d[y+24>>0]|0,-1,0)|0}}while(0);y=c[y+4>>2]|0}while((y|0)!=0);n=f;m=c[P>>2]|0}m=Zm(m+56|0,c[n>>2]|0,Q)|0;if((m|0)!=0?(p=c[m+8>>2]|0,T=S+65|0,(p|0)!=0):0){r=(k|0)!=0;s=e+408|0;t=e+20|0;u=e+68|0;v=(h|0)==0;w=(g|0)==0;x=r&1;q=R<<24>>24==0;do{c[X>>2]=0;c[W>>2]=0;if(!(r?(Zu(f,p,k,l)|0)==0:0))Y=57;do if((Y|0)==57){Y=0;n=p+24|0;if((((a[n>>0]|0)==0?(c[V>>2]&16777216|0)==0:0)?(c[s>>2]|0)==0:0)?(a[t>>0]|0)==0:0)break;if(It(e,f,p,X,W)|0){if(q)break a;if(!(a[T>>0]|0))break;else break a}m=lr(S,0,0,0)|0;if(m){H=c[p>>2]|0;c[m+24>>2]=H;o=m+16|0;c[o>>2]=c[H>>2];H=H+40|0;b[H>>1]=(b[H>>1]|0)+1<<16>>16;H=c[u>>2]|0;c[u>>2]=H+1;c[m+48>>2]=H;if(!v)cv(e,m,f,c[X>>2]|0,p,c[W>>2]|0,h,-1);if((!w?(U=a[p+x+25>>0]|0,cv(e,m,f,c[X>>2]|0,p,c[W>>2]|0,g,1),(a[n>>0]|0)==0):0)?!(U<<24>>24==7|U<<24>>24==9):0){H=c[s>>2]|0;a[((H|0)==0?e:H)+21>>0]=1}c[o>>2]=0;zo(S,m)}ig(S,c[W>>2]|0)}while(0);p=c[p+12>>2]|0}while((p|0)!=0)}}while(0);i=Z;return}function wt(b,d,f,g,h){b=b|0;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,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))ba();r=s;q=c[b+8>>2]|0;l=c[d+8>>2]|0;a:do if(a[d+44>>0]&32){if(l){k=l;while(1){if((a[k+51>>0]&3)==2){p=5;break a}k=c[k+20>>2]|0;if(!k){k=0;p=5;break}}}}else{k=0;p=5}while(0);if((p|0)==5?(l|0)!=0:0){n=(h|0)==0;o=0;d=0;m=-1;while(1){if(n){if((l|0)!=(k|0))p=10}else if(!((l|0)==(k|0)?1:(c[h+(o<<2)>>2]|0)==0))p=10;if((p|0)==10){p=0;m=Lt(b,l,f,0,1,r,d,m)|0;sh(q,111,o+g|0,m,e[((a[l+51>>0]&8)==0?l+48|0:l+46|0)>>1]|0)|0;Mt(b,c[r>>2]|0);d=l}l=c[l+20>>2]|0;if(!l)break;else o=o+1|0}}i=s;return}function xt(d,e,f,g,h,i,j,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=Kq(d)|0;q=c[e+8>>2]|0;if(!q){n=e+44|0;p=0}else{r=(l|0)!=0;n=e+44|0;s=r?17:1;t=w+4|0;u=w+32|0;p=0;v=0;m=q;while(1){o=i+(v<<2)|0;q=c[o>>2]|0;do if(q){if(c[m+36>>2]|0){sh(w,76,q,(c[u>>2]|0)+2|0,0)|0;q=c[o>>2]|0}sh(w,110,v+g|0,q,0)|0;if((a[m+51>>0]&3)==2){q=(a[n>>0]&32)!=0;if(q|r)p=q?s:16;else{p=1;break}}else if(r)p=16;else{p=1;break}q=c[t>>2]|0;if(!q)p=1;else{a[q+(((c[u>>2]|0)+-1|0)*20|0)+3>>0]=p;p=1}}while(0);m=c[m+20>>2]|0;if(!m)break;else v=v+1|0}}if(!(a[n>>0]&32)){o=h+1|0;n=d+19|0;m=a[n>>0]|0;if(!(m<<24>>24)){i=d+72|0;q=(c[i>>2]|0)+1|0;c[i>>2]=q}else{q=m+-1<<24>>24;a[n>>0]=q;q=c[d+((q&255)<<2)+24>>2]|0}n=e+38|0;sh(w,49,o,b[n>>1]|0,q)|0;if(!(p<<24>>24))st(w,e,0);$s(d,o,b[n>>1]|0);o=d+18|0;if(!(a[o>>0]|0))m=(j|0)!=0?5:3;else m=0;if(k)m=(m&255|8)&255;if(!l)n=m;else n=(m&255|16)&255;sh(w,75,f,q,h)|0;if(!(a[o>>0]|0))th(w,-1,c[e>>2]|0,0);m=c[w+4>>2]|0;if(m)a[m+(((c[w+32>>2]|0)+-1|0)*20|0)+3>>0]=n}return}function yt(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,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;Y=i;i=i+64|0;if((i|0)>=(j|0))ba();R=Y+52|0;Q=Y+48|0;V=Y+8|0;U=Y;T=Y+40|0;W=Y+32|0;S=Y+24|0;if(((c[(c[d>>2]|0)+24>>2]&524288|0)!=0?(P=e+68|0,l=Zm((c[P>>2]|0)+56|0,c[e>>2]|0,Y+16|0)|0,(l|0)!=0):0)?(m=c[l+8>>2]|0,(m|0)!=0):0){O=(h|0)==0;H=(f|0)!=0;I=H&1;J=W+4|0;K=T+4|0;L=e+4|0;M=S+4|0;N=H?110:109;do{if(!(!O?(Zu(e,m,h,k)|0)==0:0)){E=c[d>>2]|0;D=a[m+I+25>>0]|0;F=D&255;G=m+(I<<2)+28|0;f=c[G>>2]|0;do if(!(D<<24>>24==0|(f|0)!=0)){c[R>>2]=0;c[Q>>2]=0;if(!(It(d,e,m,R,Q)|0)){r=m+20|0;if((c[r>>2]|0)>0){x=34352;w=c[x>>2]|0;x=c[x+4>>2]|0;z=34360;y=c[z>>2]|0;z=c[z+4>>2]|0;A=m+36|0;C=D<<24>>24!=6&(D<<24>>24!=9|H);B=0;o=0;l=0;n=0;do{f=V;c[f>>2]=w;c[f+4>>2]=x;f=U;c[f>>2]=y;c[f+4>>2]=z;f=c[Q>>2]|0;if(!f)f=A;else f=f+(B<<2)|0;q=c[f>>2]|0;s=c[R>>2]|0;if(!s)u=34368;else u=c[(c[L>>2]|0)+((b[(c[s+4>>2]|0)+(B<<1)>>1]|0)*24|0)>>2]|0;c[W>>2]=u;f=c[(c[(c[m>>2]|0)+4>>2]|0)+(q*24|0)>>2]|0;c[T>>2]=f;if(!u)t=0;else{v=u;while(1)if(!(a[v>>0]|0))break;else v=v+1|0;t=v-u&1073741823}c[J>>2]=t;if(!f)p=0;else{u=f;while(1)if(!(a[u>>0]|0))break;else u=u+1|0;p=u-f&1073741823}c[K>>2]=p;v=Vq(d,27,0,0,V)|0;v=Vq(d,122,v,Vq(d,27,0,0,W)|0,0)|0;n=os(E,n,Vq(d,79,v,Vq(d,27,0,0,T)|0,0)|0)|0;if(H){u=Vq(d,27,0,0,V)|0;u=Vq(d,122,u,Vq(d,27,0,0,W)|0,0)|0;v=Vq(d,27,0,0,U)|0;l=os(E,l,Vq(d,73,u,Vq(d,122,v,Vq(d,27,0,0,W)|0,0)|0,0)|0)|0}if(C){do if(D<<24>>24==8){f=c[(c[(c[m>>2]|0)+4>>2]|0)+(q*24|0)+4>>2]|0;if(!f){f=Vq(d,101,0,0,0)|0;break}else{f=Ir(E,f,0,0)|0;break}}else if(D<<24>>24==9){f=Vq(d,27,0,0,U)|0;f=Vq(d,122,f,Vq(d,27,0,0,W)|0,0)|0}else f=Vq(d,101,0,0,0)|0;while(0);o=hr(d,o,f)|0;ir(d,o,T,0)}B=B+1|0}while((B|0)<(c[r>>2]|0));f=m}else{f=m;o=0;l=0;n=0}ig(E,c[Q>>2]|0);v=c[c[f>>2]>>2]|0;if(!v)p=0;else{f=v;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;p=f-v&1073741823}if(D<<24>>24==6){c[S>>2]=v;c[M>>2]=p;f=pt(E,57,34376)|0;if(f)a[f+1>>0]=2;u=hr(d,0,f)|0;u=gr(d,u,lr(E,0,S,0)|0,n,0,0,0,0,0,0)|0;t=0}else{u=0;t=n}q=E+250|0;r=a[q>>0]|0;a[q>>0]=0;f=p+77|0;s=ih(E,f,0)|0;if(s){bw(s|0,0,f|0)|0;n=s+36|0;c[s+28>>2]=n;D=s+76|0;c[s+48>>2]=D;c[s+52>>2]=p;gw(D|0,v|0,p|0)|0;c[s+56>>2]=Ir(E,t,1,0)|0;c[s+60>>2]=Lr(E,o,1)|0;c[s+44>>2]=cr(E,u,1)|0;if(!l){f=s;l=0}else{l=Vq(d,19,l,0,0)|0;c[s+12>>2]=Ir(E,l,1,0)|0;f=s}}else{f=0;n=0}a[q>>0]=r;Ck(E,t);Ck(E,l);Jk(E,o);Ik(E,u,1);if((a[E+65>>0]|0)==1){Gk(E,f);f=0;break}if((F|0)==6)a[n>>0]=119;else if((F|0)==9?!H:0)a[n>>0]=109;else X=49;if((X|0)==49){X=0;a[n>>0]=110}c[n+4>>2]=f;F=c[P>>2]|0;c[s+20>>2]=F;c[s+24>>2]=F;c[G>>2]=f;a[s+8>>0]=N}else f=0}while(0);if(f)$u(d,f,e,g,2,0)}m=c[m+12>>2]|0}while((m|0)!=0)}i=Y;return}function zt(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=b[d+46>>1]|0;a:do if(f<<16>>16==(b[e+46>>1]|0)?(a[d+50>>0]|0)==(a[e+50>>0]|0):0){if(f<<16>>16){g=c[e+4>>2]|0;h=c[d+4>>2]|0;i=e+28|0;j=d+28|0;k=e+32|0;l=d+32|0;p=0;do{if((b[g+(p<<1)>>1]|0)!=(b[h+(p<<1)>>1]|0)){f=0;break a}if((a[(c[i>>2]|0)+p>>0]|0)!=(a[(c[j>>2]|0)+p>>0]|0)){f=0;break a}m=c[(c[k>>2]|0)+(p<<2)>>2]|0;n=c[(c[l>>2]|0)+(p<<2)>>2]|0;o=(n|0)==0;if(!m){if(!o){f=0;break a}}else{if(o){f=0;break a}if($c(m,n)|0){f=0;break a}}p=p+1|0}while((p|0)<(f&65535|0))}f=(yu(c[e+36>>2]|0,c[d+36>>2]|0,-1)|0)==0&1}else f=0;while(0);return f|0}function At(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;do if(!(a[e+44>>0]&8))f=0;else{h=c[b+408>>2]|0;h=(h|0)==0?b:h;g=h+404|0;f=c[g>>2]|0;a:do if(!f)i=5;else while(1){if((c[f+4>>2]|0)==(e|0))break a;f=c[f>>2]|0;if(!f){i=5;break}}while(0);if((i|0)==5){f=ih(c[b>>2]|0,16,0)|0;if(!f){f=0;break}c[f>>2]=c[g>>2];c[g>>2]=f;c[f+4>>2]=e;c[f+8>>2]=d;b=h+72|0;g=c[b>>2]|0;c[f+12>>2]=g+2;c[b>>2]=g+3}f=c[f+12>>2]|0}while(0);return f|0}function Bt(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;g=b[e+36>>1]|0;h=c[a>>2]|0;f=c[e>>2]|0;if(g<<16>>16>-1){g=c[(c[e+4>>2]|0)+((g<<16>>16)*24|0)>>2]|0;c[k>>2]=f;c[k+4>>2]=g;g=1555;f=qh(h,27824,k)|0}else{c[k>>2]=f;g=2579;f=qh(h,34408,k)|0}vs(a,g,d,f,-1,2);i=l;return}function Ct(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+316|0;h=c[g>>2]|0;d=hr(b,h,Ir(c[b>>2]|0,d,0,0)|0)|0;if(d){b=(c[d>>2]|0)+-1|0;h=c[d+4>>2]|0;c[h+(b*20|0)+16>>2]=e;b=h+(b*20|0)+13|0;a[b>>0]=a[b>>0]&-5|f<<2&4}c[g>>2]=d;return}function Dt(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=c[e>>2]|0;if(!(g+-1&g)){i=_((g|0)==0?1:g<<1,d)|0;a=no(a,b,i,((i|0)<0)<<31>>31)|0;if(!a){c[f>>2]=-1;a=b}else h=4}else{a=b;h=4}if((h|0)==4){bw(a+(_(g,d)|0)|0,0,d|0)|0;c[f>>2]=g;c[e>>2]=(c[e>>2]|0)+1}return a|0}function Et(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;c[h>>2]=0;b=c[a+12>>2]|0;if((b|0)!=0?(d=c[b+24>>2]|0,(d|0)>0):0){c[h>>2]=d;b=d}else b=0;d=c[a+16>>2]|0;if((d|0)!=0?(e=c[d+24>>2]|0,(e|0)>(b|0)):0)c[h>>2]=e;f=a+4|0;b=a+20|0;if(!(c[f>>2]&2048)){d=c[b>>2]|0;if(d){pu(d,h);b=c[b>>2]|0;if((b|0)!=0?(g=c[b>>2]|0,(g|0)>0):0){e=c[b+4>>2]|0;d=0;b=0;do{b=c[(c[e+(d*20|0)>>2]|0)+4>>2]|b;d=d+1|0}while((d|0)!=(g|0));b=b&2097408}else b=0;c[f>>2]=c[f>>2]|b}}else As(c[b>>2]|0,h);c[a+24>>2]=(c[h>>2]|0)+1;i=k;return}function Ft(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Kq(b)|0;i=b+72|0;h=(c[i>>2]|0)+1|0;c[i>>2]=h;b=ih(c[b>>2]|0,8,0)|0;if(b){i=b;c[i>>2]=e;c[i+4>>2]=f}th(g,sh(g,26,0,h,0)|0,b,-13);eq(g,1);if(!(a[(c[g>>2]|0)+65>>0]|0))Tg(c[g+16>>2]|0,d,-1,1,0)|0;sh(g,35,h,1,0)|0;return}function Gt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;d=c[b>>2]|0;e=d+16|0;f=c[(c[e>>2]|0)+20>>2]|0;do if(!f)d=0;else{if((a[d+63>>0]|0)!=0?(a[f+8>>0]|0)==0:0){Il(f);c[(c[e>>2]|0)+20>>2]=0;Ag(d);d=0;break}ph(b,32128,g);d=1}while(0);i=h;return d|0}function Ht(b){b=b|0;var e=0,f=0,g=0;if((a[b+63>>0]|0)!=0?(e=c[b+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[b+16>>2]|0;while(1){e=e+-1|0;b=c[f+4>>2]|0;if(b)po(b,c[g>>2]&28|d[f+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function It(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;x=c[g+20>>2]|0;m=c[g+40>>2]|0;if((x|0)==1){s=b[f+36>>1]|0;l=s<<16>>16;if(s<<16>>16>-1)if((m|0)!=0?($c(c[(c[f+4>>2]|0)+(l*24|0)>>2]|0,m)|0)!=0:0){v=0;y=8}else k=0;else{v=0;y=8}}else if(k){l=ih(c[d>>2]|0,x<<2,0)|0;if(!l)k=1;else{c[k>>2]=l;v=l;y=8}}else{v=0;y=8}a:do if((y|0)==8){k=c[f+8>>2]|0;b:do if(k){s=(m|0)==0;u=(x|0)>0;r=f+4|0;t=(v|0)==0;c:while(1){do if((e[k+46>>1]|0)==(x|0)?(a[k+50>>0]|0)!=0:0){if(s)if((a[k+51>>0]&3)==2){y=16;break c}else break;d:do if(u){n=c[k+4>>2]|0;o=c[r>>2]|0;p=c[k+32>>2]|0;q=0;while(1){f=b[n+(q<<1)>>1]|0;m=c[o+(f*24|0)+16>>2]|0;if($c(c[p+(q<<2)>>2]|0,(m|0)!=0?m:11152)|0){m=q;break d}m=c[o+(f*24|0)>>2]|0;l=0;while(1){f=l+1|0;if(!($c(c[g+(l<<3)+40>>2]|0,m)|0)){f=l;y=23;break}if((f|0)<(x|0))l=f;else break}if((y|0)==23){y=0;if(!t)c[v+(q<<2)>>2]=c[g+(f<<3)+36>>2]}m=q+1|0;if((f|0)==(x|0)){m=q;break d}if((m|0)<(x|0))q=m;else break}}else m=0;while(0);if((m|0)==(x|0))break c}while(0);k=c[k+20>>2]|0;if(!k)break b}if((y|0)==16)if(!(t|u^1)){l=0;do{c[v+(l<<2)>>2]=c[g+(l<<3)+36>>2];l=l+1|0}while((l|0)!=(x|0))}c[h>>2]=k;k=0;break a}while(0);if(!(a[d+438>>0]|0)){s=c[g+8>>2]|0;c[w>>2]=c[c[g>>2]>>2];c[w+4>>2]=s;ph(d,32008,w)}ig(c[d>>2]|0,v);k=1}while(0);i=z;return k|0}function Jt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if(!(c[d+12>>2]|0)){c[h>>2]=0;l=c[b>>2]|0;g=d+4|0;d=c[g>>2]|0;Vr(l,c[d+(e*24|0)+4>>2]|0,a[l+62>>0]|0,a[d+(e*24|0)+21>>0]|0,h)|0;d=c[h>>2]|0;if(d)th(b,-1,d,-8);if((a[(c[g>>2]|0)+(e*24|0)+21>>0]|0)==69)sh(b,39,f,0,0)|0}i=k;return}function Kt(c,d,f){c=c|0;d=d|0;f=f|0;var g=0;if(!d)g=0;else{g=d;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Oh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[g>>1]=e[g>>1]|f&255}return}function Lt(d,e,f,g,h,i,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=c[d+8>>2]|0;r=c[e+12>>2]|0;do if(i){l=e+36|0;if(!(c[l>>2]|0)){c[i>>2]=0;break}else{c[i>>2]=ts(q)|0;c[d+96>>2]=f;p=d+100|0;c[p>>2]=(c[p>>2]|0)+1;ct(d,c[l>>2]|0,c[i>>2]|0,16);break}}while(0);if((h|0)!=0?(a[e+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[l>>1]|0;n=l&65535;o=d+60|0;h=c[o>>2]|0;p=d+56|0;i=c[p>>2]|0;if((i|0)<(n|0)){h=d+72|0;m=c[h>>2]|0;c[h>>2]=m+n;m=m+1|0}else{c[o>>2]=h+n;c[p>>2]=i-n;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[j+36>>2]|0)==0:0){h=j;break}h=0}while(0);if(l<<16>>16){j=(h|0)==0;k=e+4|0;i=h+4|0;l=0;do{if(!j){h=b[(c[k>>2]|0)+(l<<1)>>1]|0;if((b[(c[i>>2]|0)+(l<<1)>>1]|0)!=h<<16>>16)s=21}else{h=b[(c[k>>2]|0)+(l<<1)>>1]|0;s=21}if((s|0)==21){s=0;jt(q,r,f,h<<16>>16,l+m|0);Lq(q,39)|0}l=l+1|0}while((l|0)<(n|0))}if(g)sh(q,49,m,n,g)|0;$s(d,m,n);if((c[p>>2]|0)<(n|0)){c[p>>2]=n;c[o>>2]=m}return m|0}function Mt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[a+8>>2]|0;e=c[d+24>>2]|0;f=~b;if((b|0)<0?(g=c[e+112>>2]|0,(g|0)!=0):0)c[g+(f<<2)>>2]=c[d+32>>2];c[e+88>>2]=(c[d+32>>2]|0)+-1;Zt(a)}return}function Nt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=c[d+16>>2]|0;a:do if((e|0)!=0?(f=c[d+64>>2]|0,(f|0)!=0):0){e=c[e+8>>2]|0;b:do if(e){while(1){if(!($c(c[e>>2]|0,f)|0))break;e=c[e+20>>2]|0;if(!e)break b}c[d+68>>2]=e;e=0;break a}while(0);c[g>>2]=f;c[g+4>>2]=0;ph(b,28104,g);a[b+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function Ot(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Pt(a,b)|0;if(b&1){e=Ot(c[a+12>>2]|0,b)|0;return e+d+(Ot(c[a+16>>2]|0,b)|0)|0}}else d=0;return d|0}
7 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(
[all...]
H A Dsqlite-change-heap.js6 function cs(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,n=0,o=0,q=0,t=0,u=0,v=0,w=0,x=0;x=r;r=r+16|0;if((r|0)>=(s|0))ka();u=x;v=x+8|0;k[v>>2]=0;a:do if(!b){k[e>>2]=0;f=0}else{g=i[b>>0]|0;if(g<<24>>24==-98)do{b=k[b+12>>2]|0;g=i[b>>0]|0}while(g<<24>>24==-98);if(g<<24>>24==-97)n=l[b+38>>0]|0;else n=g&255;if((n|0)==157){b=k[b+12>>2]|0;n=i[b>>0]|0;if((n&-2)<<24>>24==-124){h=-1;g=-1;t=n&255;n=26016;w=12}else w=30}else if((n|0)==38){h=ar(k[b+8>>2]|0,0)|0;f=cs(a,k[b+12>>2]|0,c,h,e)|0;g=k[e>>2]|0;if(!g)break;lm(g,h,1);km(k[e>>2]|0,d,1);break}else{h=1;g=0;t=n;n=10360;w=12}b:do if((w|0)==12){c:do switch(t|0){case 97:case 132:case 133:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;do if(!(k[b+4>>2]&1024)){h=k[b+8>>2]|0;k[u>>2]=n;k[u+4>>2]=h;h=zh(a,19456,u)|0;if(!h)break c;if(f)ah(f,h,-1,1,75)|0}else{n=k[b+8>>2]|0;n=xw(n|0,((n|0)<0)<<31>>31|0,h|0,g|0)|0;h=L;b=f+8|0;if(!(j[b>>1]&9312)){v=f;k[v>>2]=n;k[v+4>>2]=h;j[b>>1]=4;break}else{ch(f,n,h);break}}while(0);if((t&-2|0)==132&d<<24>>24==65)km(f,67,1);else km(f,d,1);g=f+8|0;b=m[g>>1]|0;if(b&12)j[g>>1]=b&65533;if(c<<24>>24==1){g=f;f=0;break b}g=f;f=bm(f,c&255)|0;break b}case 101:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}else{o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;g=f;f=0;break b}}case 157:{b=k[b+12>>2]|0;w=30;break b}case 134:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;g=(k[b+8>>2]|0)+2|0;b=g;while(1)if(!(i[b>>0]|0))break;else b=b+1|0;v=(b-g&1073741823)+-1|0;ah(f,bu(a,g,v)|0,(v|0)/2|0,0,75)|0;g=f;f=0;break b}default:{g=0;f=0;break b}}while(0);i[a+65>>0]=1;rg(a,0);Rh(f);f=7;break a}while(0);if((w|0)==30){u=(cs(a,b,c,d,v)|0)==0;g=k[v>>2]|0;if(u&(g|0)!=0){tp(g);h=g+8|0;b=j[h>>1]|0;do if(!(b&8)){n=g;f=k[n>>2]|0;n=k[n+4>>2]|0;if((f|0)==0&(n|0)==-2147483648){p[g>>3]=9223372036854775808.0;j[h>>1]=b&48640|8;break}else{u=iw(0,0,f|0,n|0)|0;v=g;k[v>>2]=u;k[v+4>>2]=L;break}}else p[g>>3]=-+p[g>>3];while(0);km(g,d,c);f=0}else f=0}k[e>>2]=g}while(0);r=x;return f|0}function ds(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;do if((b|0)!=0?(e=a+19|0,f=i[e>>0]|0,(f&255)<8):0){d=0;c=a+116|0;while(1){if((k[c+12>>2]|0)==(b|0)){d=5;break}d=d+1|0;if((d|0)>=10){d=7;break}else c=c+20|0}if((d|0)==5){i[c+6>>0]=1;break}else if((d|0)==7){i[e>>0]=f+1<<24>>24;k[a+((f&255)<<2)+24>>2]=b;break}}while(0);return}function es(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,m=0;m=r;r=r+32|0;if((r|0)>=(s|0))ka();l=m;c=a+484|0;h=k[c>>2]|0;j=k[a>>2]|0;do if((h|0)!=0?(gs(a),k[a+512>>2]=0,(k[h+52>>2]|0)>=1):0){if(i[j+145>>0]|0)if(!(Nk((k[h+68>>2]|0)+8|0,k[h>>2]|0,h)|0)){k[c>>2]=0;break}else{i[j+65>>0]=1;break}if(b)k[a+500>>2]=(k[b>>2]|0)-(k[a+496>>2]|0)+(k[b+4>>2]|0);k[l>>2]=a+496;g=zh(j,25256,l)|0;b=k[h+68>>2]|0;a:do if(b){d=k[j+20>>2]|0;if((d|0)>0){e=k[j+16>>2]|0;f=0;while(1){c=f+1|0;if((k[e+(f<<4)+12>>2]|0)==(b|0)){c=f;break a}if((c|0)<(d|0))f=c;else break}}else c=0}else c=-1e6;while(0);e=k[h>>2]|0;f=k[a+384>>2]|0;k[l>>2]=k[(k[j+16>>2]|0)+(c<<4)>>2];k[l+4>>2]=(c|0)==1?13184:13208;k[l+8>>2]=e;k[l+12>>2]=e;k[l+16>>2]=g;k[l+20>>2]=f;Gr(a,25280,l);rg(j,g);g=Tq(a)|0;Ir(a,c);Bh(g,144,0,0,0)|0;k[l>>2]=k[h>>2];Nr(g,c,zh(j,25368,l)|0);a=a+72|0;l=(k[a>>2]|0)+1|0;k[a>>2]=l;a=k[h>>2]|0;Ch(g,Bh(g,97,0,l,0)|0,a,0);Bh(g,147,c,l,0)|0}while(0);r=m;return}function fs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=b+52|0;h=k[g>>2]|0;d=h+1|0;k[g>>2]=d;f=(h<<2)+8|0;e=b+56|0;f=wo(a,k[e>>2]|0,f,((f|0)<0)<<31>>31)|0;if(!f){if((h|0)>0){b=0;do{rg(a,k[(k[e>>2]|0)+(b<<2)>>2]|0);b=b+1|0}while((b|0)!=(h|0))}rg(a,c);rg(a,k[e>>2]|0);k[g>>2]=0}else{k[f+(h<<2)>>2]=c;k[f+(d<<2)>>2]=0}k[e>>2]=f;return}function gs(a){a=a|0;var b=0,c=0,d=0,e=0;b=k[a+512>>2]|0;if((b|0)!=0?(e=k[a+484>>2]|0,(e|0)!=0):0){c=k[a+516>>2]|0;d=k[a>>2]|0;a=ow(c|0,((c|0)<0)<<31>>31|0,1,0)|0;a=rh(d,a,L)|0;if(!a)a=0;else{pw(a|0,b|0,c|0)|0;i[a+c>>0]=0}fs(d,e,a)}return}function hs(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;m=r;r=r+16|0;if((r|0)>=(s|0))ka();h=m;j=k[a>>2]|0;l=$q(j,c)|0;g=(b|0)!=0;if((l|0)!=0&g?(f=k[b>>2]|0,(f|0)>0):0){c=f;f=0;do{if(!(id(l,k[b+(f<<4)+8>>2]|0)|0)){k[h>>2]=l;yh(a,25184,h);c=k[b>>2]|0}f=f+1|0}while((f|0)<(c|0))}if(g){f=(k[b>>2]<<4)+24|0;f=wo(j,b,f,((f|0)<0)<<31>>31)|0;if(!f)c=10;else{b=f;c=11}}else{c=rh(j,24,0)|0;if(!c)c=10;else{f=c+0|0;b=f+24|0;do{i[f>>0]=0;f=f+1|0}while((f|0)<(b|0));b=c;c=11}}if((c|0)==10){Sk(j,d);Rk(j,e,1);rg(j,l)}else if((c|0)==11){j=b+8|0;k[j+(k[b>>2]<<4)+8>>2]=e;e=k[b>>2]|0;k[j+(e<<4)+4>>2]=d;k[j+(e<<4)>>2]=l;k[j+(e<<4)+12>>2]=0;k[b>>2]=e+1}r=m;return b|0}function is(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+96|0;if((r|0)>=(s|0))ka();h=j+48|0;c=j;d=k[k[a+32>>2]>>2]|0;e=h+0|0;f=d+0|0;g=e+48|0;do{i[e>>0]=i[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));if((i[a+43>>0]|0)!=2){e=k[a+4>>2]|0;hc[k[(k[e>>2]|0)+60>>2]&31](e)}e=c+0|0;f=d+48|0;g=e+48|0;do{i[e>>0]=i[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));if((cw(h,c,48)|0)==0?(i[h+12>>0]|0)!=0:0){f=h+40|0;g=h;d=0;c=0;do{d=d+c+(k[g>>2]|0)|0;c=d+c+(k[g+4>>2]|0)|0;g=g+8|0}while(g>>>0<f>>>0);if((d|0)==(k[f>>2]|0)?(c|0)==(k[h+44>>2]|0):0){c=a+52|0;if(!(cw(c,h,48)|0))c=0;else{k[b>>2]=1;e=c+0|0;f=h+0|0;g=e+48|0;do{k[e>>2]=k[f>>2];e=e+4|0;f=f+4|0}while((e|0)<(g|0));c=m[a+66>>1]|0;k[a+36>>2]=c<<16&65536|c&65024;c=0}}else c=1}else c=1;r=j;return c|0}function js(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;b=yc[k[(k[a>>2]|0)+8>>2]&31](a,e,4,b,c)|0;if(!b)k[d>>2]=(l[e+1>>0]|0)<<16|(l[e>>0]|0)<<24|(l[e+2>>0]|0)<<8|(l[e+3>>0]|0);r=f;return b|0}function ks(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(b>>>0<0|(b|0)==0&a>>>0<8)if(b>>>0<0|(b|0)==0&a>>>0<2)a=0;else{c=40;do{c=(c&65535)+65526|0;a=nw(a|0,b|0,1)|0;b=L}while(b>>>0<0|(b|0)==0&a>>>0<8);c=c&65535;e=11}else{if(b>>>0>0|(b|0)==0&a>>>0>255){d=b;c=40;while(1){c=(c&65535)+40|0;e=rw(a|0,d|0,4)|0;b=L;if(d>>>0>0|(d|0)==0&a>>>0>4095){a=e;d=b}else{a=e;break}}c=c&65535}else c=40;if(b>>>0>0|(b|0)==0&a>>>0>15){while(1){c=(c&65535)+10&65535;d=rw(a|0,b|0,1)|0;if(b>>>0>0|(b|0)==0&a>>>0>31){a=d;b=L}else{a=d;break}}e=11}else e=11}if((e|0)==11)a=(c&65535)+65526+(m[13496+((a&7)<<1)>>1]|0)&65535;return a|0}function ls(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;j=k[a+408>>2]|0;j=(j|0)==0?a:j;g=j+396|0;f=k[g>>2]|0;h=k[j+400>>2]|0;a:do if((f|0)>0){a=0;while(1){if((k[h+(a<<4)>>2]|0)==(b|0)?(k[h+(a<<4)+4>>2]|0)==(c|0):0)break;a=a+1|0;if((a|0)>=(f|0)){l=8;break a}}a=h+(a<<4)+8|0;if(!(i[a>>0]|0))f=d<<24>>24!=0&1;else f=1;i[a>>0]=f}else l=8;while(0);do if((l|0)==8){a=(f<<4)+16|0;a=$l(k[j>>2]|0,h,a,((a|0)<0)<<31>>31)|0;k[j+400>>2]=a;if(!a){k[g>>2]=0;i[(k[j>>2]|0)+65>>0]=1;break}else{f=k[g>>2]|0;k[g>>2]=f+1;k[a+(f<<4)>>2]=b;k[a+(f<<4)+4>>2]=c;i[a+(f<<4)+8>>0]=d;k[a+(f<<4)+12>>2]=e;break}}while(0);return}function ms(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0;e=j[b+48>>1]|0;h=e&65535;d=m[b+46>>1]|0;l=a+64|0;if(!(k[l>>2]|0)){c=k[a>>2]|0;if(!(i[b+51>>0]&8))g=Ws(c,h,0)|0;else g=Ws(c,d,h-d|0)|0;if(g){if(e<<16>>16){f=b+32|0;b=b+28|0;d=g+16|0;c=0;do{e=k[(k[f>>2]|0)+(c<<2)>>2]|0;if(!(dw(e,11152)|0))e=0;else e=hr(a,e)|0;k[g+(c<<2)+20>>2]=e;i[(k[d>>2]|0)+c>>0]=i[(k[b>>2]|0)+c>>0]|0;c=c+1|0}while((c|0)<(h|0))}c=(k[l>>2]|0)==0;if(!c){c=(k[g>>2]|0)+-1|0;k[g>>2]=c;if(!c){$c(g);c=0}else c=0}else c=c?g:0}else c=0}else c=0;return c|0}function ns(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,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=r;r=r+112|0;if((r|0)>=(s|0))ka();A=F;C=F+100|0;D=F+96|0;g=F+48|0;B=k[a+8>>2]|0;k[C>>2]=0;k[D>>2]=0;z=k[a>>2]|0;a:do if(!B)c=0;else{b:do if(!b)E=16;else{o=i[b>>0]|0;n=o&255;do switch(n|0){case 77:case 76:{Bh(B,25,1,c,0)|0;d=Bh(B,n,eu(a,k[b+12>>2]|0,C)|0,0,0)|0;Bh(B,25,0,c,0)|0;e=k[B+32>>2]|0;if(e>>>0>d>>>0)k[(k[B+4>>2]|0)+(d*20|0)+8>>2]=e;k[(k[B+24>>2]|0)+88>>2]=e+-1;break b}case 135:{e=b+32|0;Bh(B,31,j[e>>1]|0,c,0)|0;if(!(i[(k[b+8>>2]|0)+1>>0]|0))break b;Ch(B,-1,k[(k[a+472>>2]|0)+((j[e>>1]|0)+-1<<2)>>2]|0,-2);break b}case 148:case 73:{y=b+12|0;A=eu(a,k[y>>2]|0,C)|0;z=b+16|0;B=eu(a,k[z>>2]|0,D)|0;fu(a,k[y>>2]|0,k[z>>2]|0,o<<24>>24==73?79:78,A,B,c,160);break b}case 133:{du(B,k[b+8>>2]|0,0,c);break b}case 154:break;case 101:{E=16;break b}case 74:{o=k[b+12>>2]|0;h=k[(k[b+20>>2]|0)+4>>2]|0;d=k[h>>2]|0;l=eu(a,o,C)|0;n=eu(a,d,D)|0;g=a+19|0;e=i[g>>0]|0;if(e<<24>>24){A=e+-1<<24>>24;i[g>>0]=A;f=k[a+((A&255)<<2)+24>>2]|0;if(!(A<<24>>24))E=103;else{A=e+-2<<24>>24;i[g>>0]=A;g=k[a+((A&255)<<2)+24>>2]|0}}else{E=a+72|0;f=(k[E>>2]|0)+1|0;k[E>>2]=f;E=103}if((E|0)==103){A=a+72|0;g=(k[A>>2]|0)+1|0;k[A>>2]=g}fu(a,o,d,83,l,n,f,32);A=k[h+20>>2]|0;ds(a,k[D>>2]|0);fu(a,o,A,81,l,eu(a,A,D)|0,g,32);Bh(B,72,f,g,c)|0;ds(a,f);ds(a,g);break b}case 132:{cu(a,b,0,c);break b}case 79:case 78:case 83:case 80:case 81:case 82:{y=b+12|0;A=eu(a,k[y>>2]|0,C)|0;z=b+16|0;B=eu(a,k[z>>2]|0,D)|0;fu(a,k[y>>2]|0,k[z>>2]|0,n,A,B,c,32);break b}case 19:case 96:{Bh(B,n,eu(a,k[b+12>>2]|0,C)|0,c,0)|0;break b}case 158:case 95:{c=ns(a,k[b+12>>2]|0,c)|0;break b}case 62:{d=k[b+44>>2]|0;e=b+32|0;Bh(B,132,(ha((j[d+38>>1]|0)+1|0,k[b+28>>2]|0)|0)+((j[e>>1]|0)+1)|0,c,0)|0;e=j[e>>1]|0;if(e<<16>>16<=-1)break b;if((i[(k[d+4>>2]|0)+((e<<16>>16)*24|0)+21>>0]|0)!=69)break b;Bh(B,39,c,0,0)|0;break b}case 24:{c=ns(a,k[b+12>>2]|0,c)|0;break b}case 155:{e=k[b+40>>2]|0;if(!e){k[A>>2]=k[b+8>>2];yh(a,28936,A);break b}else{c=k[(k[e+40>>2]|0)+(j[b+34>>1]<<4)+8>>2]|0;break b}}case 94:case 88:case 87:case 92:case 86:case 85:case 93:case 90:case 91:case 89:case 71:case 72:{A=eu(a,k[b+12>>2]|0,C)|0;Bh(B,n,eu(a,k[b+16>>2]|0,D)|0,A,c)|0;break b}case 157:{e=b+12|0;d=k[e>>2]|0;f=i[d>>0]|0;if(f<<24>>24==-124){cu(a,d,1,c);break b}else if(f<<24>>24==-123){du(B,k[d+8>>2]|0,1,c);break b}else{i[g>>0]=-124;k[g+4>>2]=17408;k[g+8>>2]=0;A=eu(a,g,C)|0;Bh(B,90,eu(a,k[e>>2]|0,D)|0,A,c)|0;break b}}case 119:case 20:{c=ju(a,b,0,0)|0;break b}case 75:{A=Cs(B)|0;h=Cs(B)|0;Bh(B,28,0,c,0)|0;ku(a,b,A,h);Bh(B,25,1,c,0)|0;e=B+24|0;d=k[e>>2]|0;f=~A;if((A|0)<0?(l=k[d+112>>2]|0,(l|0)!=0):0)k[l+(f<<2)>>2]=k[B+32>>2];g=B+32|0;k[d+88>>2]=(k[g>>2]|0)+-1;Bh(B,37,c,0,0)|0;f=k[e>>2]|0;e=~h;if((h|0)<0?(p=k[f+112>>2]|0,(p|0)!=0):0)k[p+(e<<2)>>2]=k[g>>2];k[f+88>>2]=(k[g>>2]|0)+-1;break b}case 156:{d=k[b+40>>2]|0;e=j[b+34>>1]|0;f=k[d+28>>2]|0;if(!(i[d>>0]|0)){c=k[f+(e*24|0)+16>>2]|0;break b}if(i[d+1>>0]|0){Bh(B,47,k[d+8>>2]|0,k[f+(e*24|0)+12>>2]|0,c)|0;break b}break}case 38:{e=ns(a,k[b+12>>2]|0,c)|0;if((e|0)!=(c|0))Bh(B,34,e,c,0)|0;Bh(B,40,c,(ar(k[b+8>>2]|0,0)|0)<<24>>24,0)|0;it(a,c,1);break b}case 153:{l=i[z+62>>0]|0;x=b+4|0;if((k[x>>2]&16384|0)==0?(h=k[b+20>>2]|0,(h|0)!=0):0){y=k[h>>2]|0;v=1;w=h}else{y=0;v=0;w=0}o=k[b+8>>2]|0;if(!o)n=0;else{n=o;while(1)if(!(i[n>>0]|0))break;else n=n+1|0;n=n-o&1073741823}g=Xh(z,o,n,y,l,0)|0;if((g|0)!=0?(k[g+12>>2]|0)!=0:0){u=g+2|0;h=m[u>>1]|0;if(h&512){g=Cs(B)|0;f=w+4|0;Wq(a,k[k[f>>2]>>2]|0,c);if((y|0)>1){e=a+100|0;d=1;do{Bh(B,77,c,g,0)|0;it(a,c,1);k[e>>2]=(k[e>>2]|0)+1;Wq(a,k[(k[f>>2]|0)+(d*20|0)>>2]|0,c);gu(a);d=d+1|0}while((d|0)!=(y|0))}f=k[B+24>>2]|0;e=~g;if((g|0)<0?(t=k[f+112>>2]|0,(t|0)!=0):0)k[t+(e<<2)>>2]=k[B+32>>2];k[f+88>>2]=(k[B+32>>2]|0)+-1;break b}if(h&1024){Wq(a,k[k[w+4>>2]>>2]|0,c);break b}t=(y|0)>0;if(t){n=w+4|0;l=A+20|0;h=A+4|0;e=A+24|0;o=0;d=0;f=0;do{if((d|0)<32?(b=k[(k[n>>2]|0)+(d*20|0)>>2]|0,k[A+0>>2]=0,k[A+4>>2]=0,k[A+8>>2]=0,k[A+12>>2]=0,k[A+16>>2]=0,k[A+20>>2]=0,i[l>>0]=1,k[A>>2]=78,k[h>>2]=79,k[e>>2]=0,ws(A,b)|0,(i[l>>0]|0)!=0):0)o=o|1<<d;if(!((j[u>>1]&32)==0|(f|0)!=0))f=hu(a,k[(k[n>>2]|0)+(d*20|0)>>2]|0)|0;d=d+1|0}while((d|0)!=(y|0));p=o}else{p=0;f=0}if(v){do if(!p){n=a+60|0;o=k[n>>2]|0;l=a+56|0;h=k[l>>2]|0;if((h|0)<(y|0)){A=a+72|0;o=k[A>>2]|0;k[A>>2]=o+y;o=o+1|0;break}else{k[n>>2]=o+y;k[l>>2]=h-y;break}}else{A=a+72|0;o=k[A>>2]|0;k[A>>2]=o+y;o=o+1|0}while(0);h=j[u>>1]|0;if((h&192)!=0?(q=k[k[w+4>>2]>>2]|0,A=i[q>>0]|0,A<<24>>24==-100|A<<24>>24==-102):0)i[q+38>>0]=h&192;A=a+100|0;k[A>>2]=(k[A>>2]|0)+1;gt(a,w,o,3);gu(a)}else o=0;if((y|0)>1?(k[x>>2]&128|0)!=0:0)g=iu(z,g,y,k[(k[w+4>>2]|0)+20>>2]|0)|0;else if(t)g=iu(z,g,y,k[k[w+4>>2]>>2]|0)|0;if(j[g+2>>1]&32){if(!f)f=k[z+8>>2]|0;Ch(B,Bh(B,36,0,0,0)|0,f,-4)}Ch(B,Bh(B,1,p,o,c)|0,g,-5);f=k[B+4>>2]|0;if(f)i[f+(((k[B+32>>2]|0)+-1|0)*20|0)+3>>0]=y;if(!((y|0)!=0&(p|0)==0))break b;it(a,o,y);e=a+56|0;if((k[e>>2]|0)>=(y|0))break b;k[e>>2]=y;k[a+60>>2]=o;break b}k[A>>2]=n;k[A+4>>2]=o;yh(a,28968,A);break b}case 159:{c=k[b+28>>2]|0;break b}case 134:{d=(k[b+8>>2]|0)+2|0;e=d;while(1)if(!(i[e>>0]|0))break;else e=e+1|0;z=(e-d&1073741823)+-1|0;A=bu(k[B>>2]|0,d,z)|0;Ch(B,Bh(B,30,(z|0)/2|0,c,0)|0,A,-1);break b}case 57:{if(!(k[a+412>>2]|0)){yh(a,29e3,A);c=0;break a}f=i[b+1>>0]|0;if(f<<24>>24!=2){d=k[b+8>>2]|0;if(f<<24>>24==4){Ch(B,Bh(B,24,0,4,0)|0,d,0);break b}}else{d=k[a+408>>2]|0;i[((d|0)==0?a:d)+21>>0]=1;d=k[b+8>>2]|0}Es(a,1811,f<<24>>24,d,0,0);break b}case 97:{A=k[b+8>>2]|0;Ch(B,Bh(B,97,0,c,0)|0,A,0);break b}default:{u=k[b+20>>2]|0;q=u+4|0;t=k[q>>2]|0;u=k[u>>2]|0;v=Cs(B)|0;o=k[b+12>>2]|0;b=(o|0)!=0;if(b){n=g+0|0;l=o+0|0;h=n+48|0;do{k[n>>2]=k[l>>2];n=n+4|0;l=l+4|0}while((n|0)<(h|0));o=eu(a,o,C)|0;i[g+38>>0]=i[g>>0]|0;i[g>>0]=-97;k[g+28>>2]=o;o=g+4|0;k[o>>2]=k[o>>2]&-4097;i[A>>0]=79;k[A+12>>2]=g;k[C>>2]=0;o=A}else o=0;p=u+-1|0;if((p|0)>0){d=a+100|0;h=A+16|0;g=B+24|0;f=B+32|0;e=0;n=o;while(1){k[d>>2]=(k[d>>2]|0)+1;o=k[t+(e*20|0)>>2]|0;if(b){k[h>>2]=o;o=n}A=Cs(B)|0;lt(a,o,A,16);Wq(a,k[t+((e|1)*20|0)>>2]|0,c);Bh(B,16,0,v,0)|0;gu(a);n=k[g>>2]|0;l=~A;if((A|0)<0?(w=k[n+112>>2]|0,(w|0)!=0):0)k[w+(l<<2)>>2]=k[f>>2];k[n+88>>2]=(k[f>>2]|0)+-1;e=e+2|0;if((e|0)>=(p|0))break;else n=o}}if(!(u&1))Bh(B,28,0,c,0)|0;else{A=a+100|0;k[A>>2]=(k[A>>2]|0)+1;Wq(a,k[(k[q>>2]|0)+(p*20|0)>>2]|0,c);gu(a)}f=k[B+24>>2]|0;e=~v;if((v|0)<0?(x=k[f+112>>2]|0,(x|0)!=0):0)k[x+(e<<2)>>2]=k[B+32>>2];k[f+88>>2]=(k[B+32>>2]|0)+-1;break b}}while(0);d=k[b+28>>2]|0;do if((d|0)<0){d=k[a+92>>2]|0;if((d|0)>0){c=(j[b+32>>1]|0)+d|0;break b}else{d=k[a+96>>2]|0;break}}while(0);c=ht(a,k[b+44>>2]|0,j[b+32>>1]|0,d,c,i[b+38>>0]|0)|0}while(0);if((E|0)==16)Bh(B,28,0,c,0)|0;ds(a,k[C>>2]|0);ds(a,k[D>>2]|0)}while(0);r=F;return c|0}function os(a,b){a=a|0;b=b|0;var c=0;c=Tq(a)|0;ls(a,b,1,1,(b|0)==1?13184:13208);Ch(c,Bh(c,55,0,1,b)|0,5,-14);b=a+68|0;if(!(k[b>>2]|0))k[b>>2]=1;return}function ps(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=b+48|0;if((m[d>>1]|0|0)<(c|0)){e=c*7|0;a=rh(a,e,((e|0)<0)<<31>>31)|0;if(!a)a=7;else{kw(a|0,0,e|0)|0;f=b+32|0;pw(a|0,k[f>>2]|0,(m[d>>1]|0)<<2|0)|0;k[f>>2]=a;f=a+(c<<2)|0;e=b+4|0;pw(f|0,k[e>>2]|0,(m[d>>1]|0)<<1|0)|0;k[e>>2]=f;e=a+(c*6|0)|0;a=b+28|0;pw(e|0,k[a>>2]|0,m[d>>1]|0|0)|0;k[a>>2]=e;j[d>>1]=c;a=b+51|0;i[a>>0]=i[a>>0]|16;a=0}}else a=0;return a|0}function qs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,l=0,n=0;n=r;r=r+32|0;if((r|0)>=(s|0))ka();f=n;l=n+4|0;do if(!b)c=0;else{g=k[a>>2]|0;i=b+24|0;e=g+460|0;d=(k[e>>2]|0)+(k[i>>2]|0)|0;c=k[(k[g>>2]|0)+100>>2]|0;if((c|0)<(d|0)){k[f>>2]=c;yh(g,27152,f);c=1;break}k[e>>2]=d;f=a+28|0;e=m[f>>1]|0;h=e&4098;j[f>>1]=e&61437;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[l+4>>2]=83;e=l+12|0;k[e>>2]=g;k[l+24>>2]=a;ws(l,b)|0;l=(k[a>>2]|0)+460|0;k[l>>2]=(k[l>>2]|0)-(k[i>>2]|0);if(!((k[a+24>>2]|0)<=0?(k[(k[e>>2]|0)+64>>2]|0)<=0:0)){l=b+4|0;k[l>>2]=k[l>>2]|8}e=j[f>>1]|0;d=b+4|0;c=k[d>>2]|0;if(e&2){c=c|2;k[d>>2]=c}j[f>>1]=e&65535|h;c=c>>>3&1}while(0);r=n;return c|0}function rs(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=k[(k[a+12>>2]|0)+4>>2]|0;c=j[a+48>>1]|0;if(!(c<<16>>16)){b=0;c=0}else{g=k[a+4>>2]|0;d=c&65535;e=0;b=0;do{c=j[g+(e<<1)>>1]|0;if(c<<16>>16<0)c=1;else c=l[f+((c<<16>>16)*24|0)+22>>0]|0;b=c+b|0;e=e+1|0}while((e|0)<(d|0));b=b<<2;c=0}b=ks(b,c)|0;j[a+44>>1]=b;return}function ss(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=k[a>>2]|0;d=g+24|0;f=k[d>>2]|0;k[d>>2]=f&-97|64;Is(a,b,0);if(!(k[a+64>>2]|0)){while(1){c=k[b+52>>2]|0;if(!c){e=b;break}else b=c}k[d>>2]=f;b=rh(g,76,0)|0;if(b){c=b+0|0;d=c+76|0;do{i[c>>0]=0;c=c+1|0}while((c|0)<(d|0));j[b+40>>1]=1;k[b>>2]=0;j[b+28>>1]=200;nu(a,k[e>>2]|0,b+38|0,b+4|0);ou(a,b,e);j[b+36>>1]=-1;if(i[g+65>>0]|0){pg(g,b);b=0}}else b=0}else b=0;return b|0}function ts(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;d=k[b>>2]|0;e=i[c>>0]|0;a:do if(!(e<<24>>24)){g=0;f=0}else{g=e;h=0;while(1){f=h+1|0;if(!(g<<24>>24==95?1:(i[10368+(g&255)>>0]&6)!=0)){f=h;break a}g=i[c+f>>0]|0;if(!(g<<24>>24)){g=0;break}else h=f}}while(0);if((((e&255)+-48|0)>>>0>=10?(ki(c,f)|0)==27:0)?!((f|0)==0|g<<24>>24!=0):0)j=0;else{i[a+d>>0]=34;j=1;e=i[c>>0]|0;d=d+1|0}if(e<<24>>24){f=c;h=0;do{g=d+1|0;i[a+d>>0]=e;if((i[f>>0]|0)==34){i[a+g>>0]=34;d=d+2|0}else d=g;h=h+1|0;f=c+h|0;e=i[f>>0]|0}while(e<<24>>24!=0)}if(j){i[a+d>>0]=34;d=d+1|0}i[a+d>>0]=0;k[b>>2]=d;return}function us(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+20|0;d=i[c>>0]|0;if(d<<24>>24==2?(k[b+4>>2]&1|0)!=0:0){i[c>>0]=0;c=2}else e=4;a:do if((e|0)==4)switch(l[b>>0]|0|0){case 135:if(d<<24>>24==4){i[c>>0]=0;c=2;break a}else if(d<<24>>24==5){i[b>>0]=101;c=0;break a}else{c=0;break a}case 153:{if((d&255)>3){c=0;break a}if(k[b+4>>2]&524288){c=0;break a}i[c>>0]=0;c=2;break a}case 156:case 155:case 154:case 27:{if(d<<24>>24==3?(k[b+28>>2]|0)==(k[a+24>>2]|0):0){c=0;break a}i[c>>0]=0;c=2;break a}default:{c=0;break a}}while(0);return c|0}function vs(a,b){a=a|0;b=b|0;i[a+20>>0]=0;return 2}function ws(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if(!b)b=0;else{c=wc[k[a>>2]&127](a,b)|0;do if((c|0)==0?(d=b+4|0,(k[d>>2]&16384|0)==0):0){if(ws(a,k[b+12>>2]|0)|0){b=2;break a}if(ws(a,k[b+16>>2]|0)|0){b=2;break a}b=b+20|0;if(!(k[d>>2]&2048))if(!(qu(a,k[b>>2]|0)|0))break;else{b=2;break a}else if(!(pu(a,k[b>>2]|0)|0))break;else{b=2;break a}}while(0);b=c&2}while(0);return b|0}function xs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;do if(b){if(c){if((ru(b)|0)==0?(ru(c)|0)==0:0){d=rh(a,48,0)|0;if(d){e=d+0|0;f=e+48|0;do{i[e>>0]=0;e=e+1|0}while((e|0)<(f|0));i[d>>0]=72;j[d+34>>1]=-1;k[d+24>>2]=1}ys(a,d,b,c);b=d;break}Lk(a,b);Lk(a,c);b=sr(a,132,20616,0)|0}}else b=c;while(0);return b|0}function ys(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!b){Lk(a,c);Lk(a,d)}else{if(d){k[b+16>>2]=d;a=b+4|0;k[a>>2]=k[a>>2]|k[d+4>>2]&2097408}if(c){k[b+12>>2]=c;a=b+4|0;k[a>>2]=k[a>>2]|k[c+4>>2]&2097408}Nt(b)}return}function zs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,l=0;f=b<<16>>16;h=(f<<2)+63&-8;i=f<<1;l=i+2|0;g=(f+7+i+l&-8)+h|0;e=g+c|0;c=rh(a,e,((e|0)<0)<<31>>31)|0;if(c){kw(c|0,0,e|0)|0;k[c+32>>2]=c+56;k[c+8>>2]=c+h;e=h+l|0;k[c+4>>2]=c+e;k[c+28>>2]=c+(e+i);j[c+48>>1]=b;j[c+46>>1]=f+65535;k[d>>2]=c+g}return c|0}function As(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+16|0;if((r|0)>=(s|0))ka();t=z;n=k[b+12>>2]|0;l=a+68|0;w=k[l>>2]|0;y=w+1|0;k[l>>2]=w+2;j=k[a>>2]|0;g=k[b+24>>2]|0;a:do if(g){e=k[j+20>>2]|0;if((e|0)>0){d=k[j+16>>2]|0;h=0;while(1){f=h+1|0;if((k[d+(h<<4)+12>>2]|0)==(g|0)){f=h;break a}if((f|0)<(e|0))h=f;else break}}else f=0}else f=-1e6;while(0);if((Xq(a,27,k[b>>2]|0,0,k[(k[j+16>>2]|0)+(f<<4)>>2]|0)|0)==0?(ls(a,f,k[n+32>>2]|0,1,k[n>>2]|0),x=Tq(a)|0,(x|0)!=0):0){if((c|0)>-1)o=c;else o=k[b+40>>2]|0;u=ms(a,b)|0;v=k[l>>2]|0;k[l>>2]=v+1;q=b+46|0;e=m[q>>1]|0;if(u)k[u>>2]=(k[u>>2]|0)+1;Ch(x,Bh(x,58,v,0,e)|0,u,-6);Vq(a,w,f,n,54);j=Bh(x,108,w,0,0)|0;e=a+19|0;d=i[e>>0]|0;if(!(d<<24>>24)){n=a+72|0;p=(k[n>>2]|0)+1|0;k[n>>2]=p}else{p=d+-1<<24>>24;i[e>>0]=p;p=k[a+((p&255)<<2)+24>>2]|0}Ut(a,b,w,p,0,t,0,0)|0;Bh(x,109,v,p,0)|0;Vt(a,k[t>>2]|0);Bh(x,9,w,j+1|0,0)|0;n=x+32|0;h=k[n>>2]|0;if(h>>>0>j>>>0)k[(k[x+4>>2]|0)+(j*20|0)+8>>2]=h;g=x+24|0;k[(k[g>>2]|0)+88>>2]=h+-1;if((c|0)<0)Bh(x,118,o,f,0)|0;Ch(x,Bh(x,55,y,o,f)|0,u,-6);l=x+4|0;e=k[l>>2]|0;if(e)i[e+(((k[n>>2]|0)+-1|0)*20|0)+3>>0]=(c>>31)+4&252|1;j=Bh(x,106,v,0,0)|0;e=k[n>>2]|0;if((i[b+50>>0]|0)!=0&(u|0)!=0){h=e+3|0;Bh(x,16,0,h,0)|0;e=k[n>>2]|0;o=m[q>>1]|0;Ch(x,Bh(x,99,v,h,p)|0,o,-14);su(a,2,b)}Bh(x,100,v,p,y)|0;Bh(x,110,y,p,1)|0;d=k[l>>2]|0;if(d)i[d+(((k[n>>2]|0)+-1|0)*20|0)+3>>0]=16;ds(a,p);Bh(x,5,v,e,0)|0;d=k[n>>2]|0;if(d>>>0>j>>>0)k[(k[l>>2]|0)+(j*20|0)+8>>2]=d;k[(k[g>>2]|0)+88>>2]=d+-1;Bh(x,61,w,0,0)|0;Bh(x,61,y,0,0)|0;Bh(x,61,v,0,0)|0}r=z;return}function Bs(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;p=r;r=r+16|0;if((r|0)>=(s|0))ka();o=p;n=k[a>>2]|0;if(!c){c=bo(n,b,d,0)|0;if(!c)h=4;else h=3}else h=3;if((h|0)==3)if(!(k[c+12>>2]|0))h=4;else h=14;if((h|0)==4){f=b&255;e=n+224|0;if(k[e>>2]|0){g=ph(n,d)|0;if(g){vc[k[e>>2]&15](k[n+232>>2]|0,n,f,g);rg(n,g);h=7}}else h=7;if((h|0)==7?(m=n+228|0,(k[m>>2]|0)!=0):0){e=rh(n,40,0)|0;if(!e)e=0;else{g=e+0|0;f=g+40|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(f|0));j[e+8>>1]=1;k[e+32>>2]=n;ah(e,d,-1,1,0)|0}c=Xg(e,2)|0;if(c)vc[k[m>>2]&15](k[n+232>>2]|0,n,l[n+62>>0]|0,c);Rh(e)}c=bo(n,b,d,0)|0;if(!c)h=19;else h=14}a:do if((h|0)==14)if(!(k[c+12>>2]|0)){f=k[c>>2]|0;g=0;while(1){e=bo(n,i[26816+g>>0]|0,f,0)|0;g=g+1|0;if(k[e+12>>2]|0)break;if((g|0)>=3){h=19;break a}}k[c+0>>2]=k[e+0>>2];k[c+4>>2]=k[e+4>>2];k[c+8>>2]=k[e+8>>2];k[c+12>>2]=k[e+12>>2];k[c+16>>2]=0}while(0);if((h|0)==19){k[o>>2]=d;yh(a,26784,o);c=0}r=p;return c|0}function Cs(a){a=a|0;var b=0,c=0;a=k[a+24>>2]|0;c=a+108|0;b=k[c>>2]|0;k[c>>2]=b+1;if(!(b+-1&b)){c=a+112|0;a=$l(k[a>>2]|0,k[c>>2]|0,b<<3|4,0)|0;k[c>>2]=a}else a=k[a+112>>2]|0;if(a)k[a+(b<<2)>>2]=-1;return ~b|0}function Ds(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;if(b){d=k[b>>2]|0;if((d|0)>0){e=(d*72|0)+8|0;d=e;e=((e|0)<0)<<31>>31}else{d=80;e=0}d=rh(a,d,e)|0;if(d){e=k[b>>2]|0;k[d+4>>2]=e;k[d>>2]=e;if((k[b>>2]|0)>0){e=d+8|0;g=0;do{k[e+(g*72|0)>>2]=k[b+(g*72|0)+8>>2];h=ph(a,k[b+(g*72|0)+12>>2]|0)|0;k[e+(g*72|0)+4>>2]=h;h=ph(a,k[b+(g*72|0)+16>>2]|0)|0;k[e+(g*72|0)+8>>2]=h;h=ph(a,k[b+(g*72|0)+20>>2]|0)|0;k[e+(g*72|0)+12>>2]=h;i[e+(g*72|0)+36>>0]=i[b+(g*72|0)+44>>0]|0;k[e+(g*72|0)+40>>2]=k[b+(g*72|0)+48>>2];k[e+(g*72|0)+24>>2]=k[b+(g*72|0)+32>>2];k[e+(g*72|0)+28>>2]=k[b+(g*72|0)+36>>2];h=b+(g*72|0)+45|0;f=e+(g*72|0)+37|0;l=i[f>>0]&-3|i[h>>0]&2;i[f>>0]=l;l=l&-5|i[h>>0]&4;i[f>>0]=l;i[f>>0]=l&-9|i[h>>0]&8;l=ph(a,k[b+(g*72|0)+72>>2]|0)|0;k[e+(g*72|0)+64>>2]=l;i[f>>0]=i[f>>0]&-2|i[h>>0]&1;k[e+(g*72|0)+68>>2]=k[b+(g*72|0)+76>>2];f=k[b+(g*72|0)+24>>2]|0;k[e+(g*72|0)+16>>2]=f;if(f){f=f+40|0;j[f>>1]=(j[f>>1]|0)+1<<16>>16}l=lr(a,k[b+(g*72|0)+28>>2]|0,c)|0;k[e+(g*72|0)+20>>2]=l;l=Rr(a,k[b+(g*72|0)+52>>2]|0,c,0)|0;k[e+(g*72|0)+44>>2]=l;l=Sr(a,k[b+(g*72|0)+56>>2]|0)|0;k[e+(g*72|0)+48>>2]=l;l=b+(g*72|0)+64|0;h=k[l+4>>2]|0;f=e+(g*72|0)+56|0;k[f>>2]=k[l>>2];k[f+4>>2]=h;g=g+1|0}while((g|0)<(k[b>>2]|0))}}else d=0}else d=0;return d|0}function Es(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;g=Tq(a)|0;if((c|0)==2){j=k[a+408>>2]|0;i[((j|0)==0?a:j)+21>>0]=1}Ch(g,Bh(g,24,b,c,0)|0,d,e<<24>>24);if(f<<24>>24!=0?(h=k[g+4>>2]|0,(h|0)!=0):0)i[h+(((k[g+32>>2]|0)+-1|0)*20|0)+3>>0]=f;return}function Fs(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)+28>>2]|0;do if(!(i[a+438>>0]|0)){f=k[b+68>>2]|0;if((c|0)!=(f|0)?(d=k[c+48>>2]|0,(d|0)!=0):0){e=b+64|0;c=0;while(1){a=k[d+8>>2]|0;if((k[a+24>>2]|0)==(f|0)?(id(k[a+4>>2]|0,k[b>>2]|0)|0)==0:0){if(!c)c=k[e>>2]|0;k[a+32>>2]=c}else a=c;d=k[d>>2]|0;if(!d)break;else c=a}if(a)break}a=k[b+64>>2]|0}else a=0;while(0);return a|0}function Gs(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;i=k[b+32>>2]|0;j=b+8|0;h=b+68|0;e=0;while(1){f=(e|0)==0;b=f|(i|0)<(e|0)?i:0;c=k[j>>2]|0;if(!c)g=b;else{do{d=k[c+40>>2]|0;b=(f|(d|0)<(e|0))&(d|0)>(b|0)?d:b;c=k[c+20>>2]|0}while((c|0)!=0);g=b}if(!g)break;b=k[a>>2]|0;e=k[h>>2]|0;a:do if(e){f=k[b+20>>2]|0;if((f|0)>0){c=k[b+16>>2]|0;d=0;while(1){b=d+1|0;if((k[c+(d<<4)+12>>2]|0)==(e|0)){b=d;break a}if((b|0)<(f|0))d=b;else break}}else b=0}else b=-1e6;while(0);Jr(a,g,b);e=g}return}function Hs(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|0)!=0?(c=k[b>>2]|0,(c|0)>0):0){g=a+68|0;e=0;f=b+8|0;while(1){d=f+40|0;if((k[d>>2]|0)>-1)break a;h=k[g>>2]|0;k[g>>2]=h+1;k[d>>2]=h;d=k[f+20>>2]|0;if(d){Hs(a,k[d+32>>2]|0);c=k[b>>2]|0}e=e+1|0;if((e|0)>=(c|0))break;else f=f+72|0}}while(0);return}function Is(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=r;r=r+32|0;if((r|0)>=(s|0))ka();h=l;if(((b|0)!=0?(g=(k[a>>2]|0)+65|0,(i[g>>0]|0)==0):0)?(e=b+6|0,d=j[e>>1]|0,(d&32)==0):0){k[h+0>>2]=0;k[h+4>>2]=0;k[h+8>>2]=0;k[h+12>>2]=0;k[h+16>>2]=0;k[h+20>>2]=0;k[h+24>>2]=0;k[h>>2]=84;k[h+12>>2]=a;f=h+4|0;if(i[a+22>>0]|0){k[f>>2]=85;pu(h,b)|0;d=j[e>>1]|0}k[f>>2]=86;if(!(d&256))k[h+8>>2]=9;pu(h,b)|0;d=a+64|0;if((((k[d>>2]|0)==0?(i[g>>0]|0)==0:0)?(k[h+0>>2]=0,k[h+4>>2]=0,k[h+8>>2]=0,k[h+12>>2]=0,k[h+16>>2]=0,k[h+20>>2]=0,k[h>>2]=82,k[h+4>>2]=83,k[h+12>>2]=a,k[h+24>>2]=c,pu(h,b)|0,(k[d>>2]|0)==0):0)?(i[g>>0]|0)==0:0){k[h+0>>2]=0;k[h+4>>2]=0;k[h+8>>2]=0;k[h+12>>2]=0;k[h+16>>2]=0;k[h+20>>2]=0;k[h+24>>2]=0;k[h+8>>2]=10;k[h>>2]=84;k[h+12>>2]=a;pu(h,b)|0}}r=l;return}function Js(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if(a)do{c=k[a+36>>2]|0;if((c|0)!=0?(g=k[c+24>>2]|0,(g|0)>(k[b>>2]|0)):0)k[b>>2]=g;c=k[a+44>>2]|0;if((c|0)!=0?(d=k[c+24>>2]|0,(d|0)>(k[b>>2]|0)):0)k[b>>2]=d;c=k[a+60>>2]|0;if((c|0)!=0?(e=k[c+24>>2]|0,(e|0)>(k[b>>2]|0)):0)k[b>>2]=e;c=k[a+64>>2]|0;if((c|0)!=0?(f=k[c+24>>2]|0,(f|0)>(k[b>>2]|0)):0)k[b>>2]=f;yu(k[a>>2]|0,b);yu(k[a+40>>2]|0,b);yu(k[a+48>>2]|0,b);a=k[a+52>>2]|0}while((a|0)!=0);return}function Ks(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=k[b>>2]|0;f=e+c|0;if(f>>>0>(k[b+4>>2]|0)>>>0){g=wo(a,b,(f*72|0)+8|0,0)|0;if(g){do if(!a)b=qc[k[8744+48>>2]&127](g)|0;else{if((k[a+276>>2]|0)>>>0<=g>>>0?(k[a+280>>2]|0)>>>0>g>>>0:0){b=m[a+248>>1]|0;break}b=qc[k[8744+48>>2]&127](g)|0}while(0);k[g+4>>2]=(((b+-80|0)>>>0)/72|0)+1;b=g;e=k[g>>2]|0;h=10}}else h=10;if((h|0)==10){if((e|0)>(d|0)){do{e=e+-1|0;f=b+((e+c|0)*72|0)+8|0;a=b+(e*72|0)+8|0;g=f+72|0;do{k[f>>2]=k[a>>2];f=f+4|0;a=a+4|0}while((f|0)<(g|0))}while((e|0)>(d|0));e=k[b>>2]|0}k[b>>2]=e+c;kw(b+(d*72|0)+8|0,0,c*72|0)|0;e=d+c|0;if((c|0)>0)do{k[b+(d*72|0)+48>>2]=-1;d=d+1|0}while((d|0)<(e|0))}return b|0}function Ls(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;if((b|0)!=0?(k[b>>2]|0)>0:0){e=b+4|0;f=k[e>>2]|0;g=0;do{h=Ms(a,k[f+(g*20|0)>>2]|0,c,d)|0;f=k[e>>2]|0;k[f+(g*20|0)>>2]=h;g=g+1|0}while((g|0)<(k[b>>2]|0))}return}function Ms(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;do if(b){if((i[b>>0]|0)==-102?(k[b+28>>2]|0)==(c|0):0){e=j[b+32>>1]|0;if(e<<16>>16<0){i[b>>0]=101;break}else{e=Rr(a,k[(k[d+4>>2]|0)+((e<<16>>16)*20|0)>>2]|0,0,0)|0;Lk(a,b);b=e;break}}e=b+12|0;f=Ms(a,k[e>>2]|0,c,d)|0;k[e>>2]=f;e=b+16|0;f=Ms(a,k[e>>2]|0,c,d)|0;k[e>>2]=f;e=b+20|0;if(!(k[b+4>>2]&2048)){Ls(a,k[e>>2]|0,c,d);break}else{zu(a,k[e>>2]|0,c,d);break}}else b=0;while(0);return b|0}function Ns(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=k[k[b>>2]>>2]|0;d=b;f=1;while(1){b=k[d+52>>2]|0;if(!b){e=5;break}if((k[k[b>>2]>>2]|0)==(e|0)){d=b;f=f+1|0}else{e=3;break}}a:do if((e|0)==3){Os(a,b);b=1}else if((e|0)==5)if(!d)b=0;else{g=((f|0)<0)<<31>>31;e=0;while(1){h=d+52|0;k[h>>2]=0;b=nr(a,d,c)|0;k[h>>2]=e;if(b)break a;b=d+24|0;k[b>>2]=f;k[b+4>>2]=g;b=k[d+56>>2]|0;if(!b){b=0;break a}d=b;e=k[b+52>>2]|0}}while(0);return b|0}function Os(a,b){a=a|0;b=b|0;var c=0,d=0;d=r;r=r+16|0;if((r|0)>=(s|0))ka();c=d;if(!(j[b+6>>1]&128)){b=l[b+4>>0]|0;if((b|0)==116)b=35320;else if((b|0)==118)b=35336;else if((b|0)==117)b=35352;else b=35360;k[c>>2]=b;yh(a,35232,c)}else yh(a,35184,c);r=d;return}function Ps(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,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;E=r;r=r+32|0;if((r|0)>=(s|0))ka();v=E;e=k[b+32>>2]|0;h=k[k[b>>2]>>2]|0;q=k[a+8>>2]|0;t=b+52|0;u=k[t>>2]|0;if(!(Xq(a,33,0,0,0)|0)){w=Cs(q)|0;Ts(a,b,w);x=b+60|0;y=k[x>>2]|0;z=b+64|0;A=k[z>>2]|0;B=b+8|0;n=k[B>>2]|0;C=b+12|0;o=k[C>>2]|0;k[z>>2]=0;k[x>>2]=0;k[C>>2]=0;k[B>>2]=0;B=b+48|0;C=k[B>>2]|0;f=k[e>>2]|0;a:do if((f|0)>0){g=0;while(1){if(i[e+(g*72|0)+45>>0]&8)break;g=g+1|0;if((g|0)>=(f|0)){l=0;break a}}l=k[e+(g*72|0)+48>>2]|0}else l=0;while(0);g=a+68|0;e=k[g>>2]|0;f=e+1|0;k[g>>2]=f;d=(C|0)!=0;if((i[b+4>>0]|0)==115){k[g>>2]=e+2;g=d?8:6}else{g=d?7:5;f=0}i[v>>0]=g;k[v+4>>2]=e;i[v+1>>0]=0;k[v+8>>2]=0;k[v+12>>2]=0;F=a+72|0;g=(k[F>>2]|0)+1|0;k[F>>2]=g;Bh(q,60,l,g,h)|0;if(d){h=Au(a,b)|0;Ch(q,Bh(q,57,e,(k[C>>2]|0)+2|0,0)|0,h,-6);k[v+16>>2]=C}else Bh(q,57,e,h,0)|0;if(f){f=Bh(q,57,f,0,0)|0;k[b+16>>2]=f;f=b+6|0;j[f>>1]=m[f>>1]|8}k[B>>2]=0;h=u+56|0;k[h>>2]=0;f=nr(a,u,v)|0;k[h>>2]=b;if(!f){h=Bh(q,108,e,w,0)|0;Bh(q,104,l,0,0)|0;if(d)Bh(q,47,e,(k[C>>2]|0)+1|0,g)|0;else Bh(q,102,e,g,0)|0;Bh(q,95,e,0,0)|0;f=Cs(q)|0;nt(q,o,f);Us(a,b,k[b>>2]|0,l,0,0,c,f,w);if(n)Bh(q,140,n,w,0)|0;d=q+24|0;g=k[d>>2]|0;e=~f;if((f|0)<0?(p=k[g+112>>2]|0,(p|0)!=0):0)k[p+(e<<2)>>2]=k[q+32>>2];f=q+32|0;k[g+88>>2]=(k[f>>2]|0)+-1;k[t>>2]=0;nr(a,b,v)|0;k[t>>2]=u;Bh(q,16,0,h,0)|0;d=k[d>>2]|0;e=~w;if((w|0)<0?(D=k[d+112>>2]|0,(D|0)!=0):0)k[D+(e<<2)>>2]=k[f>>2];k[d+88>>2]=(k[f>>2]|0)+-1}Sk(k[a>>2]|0,k[B>>2]|0);k[B>>2]=C;k[x>>2]=y;k[z>>2]=A}r=E;return}function Qs(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;X=r;r=r+48|0;if((r|0)>=(s|0))ka();p=X+40|0;I=X+20|0;J=X;T=k[a>>2]|0;Q=k[a+8>>2]|0;S=Cs(Q)|0;P=Cs(Q)|0;U=b+4|0;K=i[U>>0]|0;V=b+52|0;W=k[V>>2]|0;t=b+48|0;f=k[t>>2]|0;e=k[f>>2]|0;N=K<<24>>24==116;a:do if(!N?(n=T+65|0,(i[n>>0]|0)==0):0){g=p+4|0;o=1;while(1){if((o|0)>(k[k[b>>2]>>2]|0)){M=e;q=14;break a}b:do if((e|0)>0){d=0;h=k[f+4>>2]|0;while(1){if((m[h+16>>1]|0)==(o|0))break b;d=d+1|0;if((d|0)<(e|0))h=h+20|0;else break}}else d=0;while(0);if((d|0)==(e|0)){k[p>>2]=0;k[g>>2]=0;d=sr(T,132,p,0)|0;if(!d){d=7;break a}F=d+4|0;k[F>>2]=k[F>>2]|1024;k[d+8>>2]=o;f=qr(a,f,d)|0;if(!f)f=0;else{j[(k[f+4>>2]|0)+(e*20|0)+16>>1]=o;e=e+1|0}}if(!(i[n>>0]|0))o=o+1|0;else{M=e;q=14;break}}}else{M=e;q=14}while(0);if((q|0)==14){H=rh(T,M<<2,0)|0;if(!H)F=0;else{if((M|0)>0){e=0;d=k[f+4>>2]|0;while(1){k[H+(e<<2)>>2]=(m[d+16>>1]|0)+-1;e=e+1|0;if((e|0)==(M|0))break;else d=d+20|0}}F=Au(a,b)|0}k[t>>2]=f;E=Ur(k[a>>2]|0,f,0)|0;n=W+48|0;k[n>>2]=E;if(!N){f=k[k[b>>2]>>2]|0;e=a+72|0;E=k[e>>2]|0;h=E+1|0;k[e>>2]=f+1+E;Bh(Q,25,0,h,0)|0;e=Ws(T,f,1)|0;if(e){if((f|0)>0){d=e+16|0;g=0;do{E=Xs(a,b,g)|0;k[e+(g<<2)+20>>2]=E;i[(k[d>>2]|0)+g>>0]=0;g=g+1|0}while((g|0)!=(f|0))}}else e=0}else{e=0;h=0}k[V>>2]=0;G=W+56|0;k[G>>2]=0;Bu(a,b,k[t>>2]|0,26880)|0;if(!(k[W+52>>2]|0))Bu(a,W,k[n>>2]|0,26880)|0;Ts(a,b,S);g=b+8|0;f=k[g>>2]|0;n=a+72|0;if((f|0)!=0&N){q=k[n>>2]|0;o=q+1|0;q=q+2|0;k[n>>2]=q;E=k[b+12>>2]|0;Bh(Q,33,(E|0)==0?f:E+1|0,o,0)|0;Bh(Q,33,o,q,0)|0}else{o=0;q=0}w=b+60|0;Lk(T,k[w>>2]|0);k[w>>2]=0;w=b+64|0;Lk(T,k[w>>2]|0);k[w>>2]=0;w=k[n>>2]|0;x=w+1|0;y=w+2|0;u=w+3|0;w=w+4|0;k[n>>2]=w;i[I>>0]=13;k[I+4>>2]=x;i[I+1>>0]=0;A=I+8|0;k[A>>2]=0;k[I+12>>2]=0;i[J>>0]=13;k[J+4>>2]=y;i[J+1>>0]=0;B=J+8|0;k[B>>2]=0;k[J+12>>2]=0;D=Q+32|0;p=Bh(Q,20,x,0,(k[D>>2]|0)+1|0)|0;k[W+8>>2]=o;n=a+468|0;E=k[n>>2]|0;nr(a,W,I)|0;Bh(Q,21,x,0,0)|0;o=k[D>>2]|0;if(o>>>0>p>>>0)k[(k[Q+4>>2]|0)+(p*20|0)+8>>2]=o;z=Q+24|0;k[(k[z>>2]|0)+88>>2]=o+-1;v=Bh(Q,20,y,0,o+1|0)|0;d=k[g>>2]|0;f=b+12|0;t=k[f>>2]|0;k[g>>2]=q;k[f>>2]=0;C=k[n>>2]|0;nr(a,b,J)|0;k[g>>2]=d;k[f>>2]=t;Bh(Q,21,y,0,0)|0;f=Cu(a,b,I,c,u,h,e,S)|0;t=(K+-115&255)<2;if(t)d=Cu(a,b,J,c,w,h,e,S)|0;else d=0;if((e|0)!=0?(g=(k[e>>2]|0)+-1|0,k[e>>2]=g,(g|0)==0):0)$c(e);h=K<<24>>24==118;if((K+-117&255)<2){q=S;e=S}else{q=Bh(Q,17,w,d,0)|0;e=Bh(Q,22,y,S,0)|0;Bh(Q,16,0,q,0)|0;n=W+24|0;g=b+24|0;o=g;n=ow(k[o>>2]|0,k[o+4>>2]|0,k[n>>2]|0,k[n+4>>2]|0)|0;k[g>>2]=n;k[g+4>>2]=L}if(h){p=b+24|0;g=p;I=k[g+4>>2]|0;n=W+24|0;o=k[n>>2]|0;n=k[n+4>>2]|0;if(I>>>0>n>>>0|((I|0)==(n|0)?(k[g>>2]|0)>>>0>o>>>0:0)){g=p;k[g>>2]=o;k[g+4>>2]=n;g=q}else g=q}else{g=Bh(Q,17,u,f,0)|0;Bh(Q,22,x,S,0)|0;Bh(Q,16,0,g,0)|0}p=Bh(Q,17,u,f,0)|0;Bh(Q,22,x,q,0)|0;Bh(Q,16,0,P,0)|0;do if(!N)if(h){q=p;p=p+1|0;break}else{q=Bh(Q,22,x,q,0)|0;Bh(Q,16,0,P,0)|0;break}else q=p;while(0);o=k[D>>2]|0;if(t)Bh(Q,17,w,d,0)|0;Bh(Q,22,y,g,0)|0;Bh(Q,16,0,P,0)|0;n=k[D>>2]|0;if(n>>>0>v>>>0)k[(k[Q+4>>2]|0)+(v*20|0)+8>>2]=n;k[(k[z>>2]|0)+88>>2]=n+-1;Bh(Q,22,x,e,0)|0;Bh(Q,22,y,g,0)|0;g=k[z>>2]|0;f=~P;if((P|0)<0?(O=k[g+112>>2]|0,(O|0)!=0):0)k[O+(f<<2)>>2]=k[D>>2];k[g+88>>2]=(k[D>>2]|0)+-1;Ch(Q,Bh(Q,41,0,0,0)|0,H,-15);Ch(Q,Bh(Q,42,k[A>>2]|0,k[B>>2]|0,M)|0,F,-6);e=k[Q+4>>2]|0;if(e)i[e+(((k[D>>2]|0)+-1|0)*20|0)+3>>0]=1;Bh(Q,43,p,q,o)|0;e=k[z>>2]|0;d=~S;if((S|0)<0?(R=k[e+112>>2]|0,(R|0)!=0):0)k[R+(d<<2)>>2]=k[D>>2];k[e+88>>2]=(k[D>>2]|0)+-1;if((i[c>>0]|0)==9){d=W;while(1){e=k[d+52>>2]|0;if(!e)break;else d=e}Ss(a,0,k[d>>2]|0)}d=k[V>>2]|0;if(d)Rk(T,d,1);k[V>>2]=W;k[G>>2]=b;Vs(a,l[U>>0]|0,E,C,0);d=0}r=X;return d|0}function Rs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();d=e;do if(!(k[a+4>>2]&1024)){c=l[a>>0]|0;if((c|0)==158){c=Rs(k[a+12>>2]|0,b)|0;break}else if((c|0)!=157){c=0;break}if(!(Rs(k[a+12>>2]|0,d)|0))c=0;else{k[b>>2]=0-(k[d>>2]|0);c=1}}else{k[b>>2]=k[a+8>>2];c=1}while(0);r=e;return c|0}function Ss(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,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=r;r=r+32|0;if((r|0)>=(s|0))ka();z=A;y=a+8|0;v=k[y>>2]|0;w=k[a>>2]|0;if(((i[a+450>>0]|0)==0?(f=a+16|0,!((i[f>>0]|0)!=0|(v|0)==0)):0)?(i[w+65>>0]|0)==0:0){i[f>>0]=1;f=k[w+24>>2]|0;u=(f&32|0)==0;nq(v,k[c>>2]|0);e=k[c>>2]|0;if((e|0)>0){t=c+4|0;q=(b|0)==0;n=(f&96|0)==0;o=(b|0)!=0;p=0;do{m=k[t>>2]|0;e=k[m+(p*20|0)>>2]|0;do if(e){f=k[m+(p*20|0)+4>>2]|0;if(f){oq(v,p,0,f,-1);break}f=i[e>>0]|0;if(f<<24>>24==-102){if(q)x=25}else if(!(f<<24>>24==-100&o))x=25;if((x|0)==25){x=0;f=k[m+(p*20|0)+8>>2]|0;if(!f){k[z>>2]=p+1;f=zh(w,34880,z)|0}else f=ph(w,f)|0;oq(v,p,0,f,75);break}l=j[e+32>>1]|0;f=l<<16>>16;h=k[b>>2]|0;a:do if((h|0)>0){d=k[e+28>>2]|0;g=0;while(1){e=g+1|0;if((k[b+(g*72|0)+48>>2]|0)==(d|0)){e=g;break a}if((e|0)<(h|0))g=e;else break}}else e=0;while(0);e=k[b+(e*72|0)+24>>2]|0;if(l<<16>>16<0)f=j[e+36>>1]|0;if((f|0)<0)f=20456;else f=k[(k[e+4>>2]|0)+(f*24|0)>>2]|0;if(n){oq(v,p,0,ph(w,k[m+(p*20|0)+8>>2]|0)|0,75);break}if(u){oq(v,p,0,f,-1);break}else{k[z>>2]=k[e>>2];k[z+4>>2]=f;oq(v,p,0,zh(w,27824,z)|0,75);break}}while(0);p=p+1|0;e=k[c>>2]|0}while((p|0)<(e|0))}f=k[y>>2]|0;k[z+4>>2]=b;k[z>>2]=a;if((e|0)>0){d=c+4|0;e=0;do{oq(f,e,1,Du(z,k[(k[d>>2]|0)+(e*20|0)>>2]|0,0)|0,-1);e=e+1|0}while((e|0)<(k[c>>2]|0))}}r=A;return}function Ts(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();e=m;g=b+8|0;if((k[g>>2]|0)==0?(ft(a),f=b+60|0,(k[f>>2]|0)!=0):0){i=a+72|0;j=(k[i>>2]|0)+1|0;k[i>>2]=j;k[g>>2]=j;l=Tq(a)|0;do if(Rs(k[f>>2]|0,e)|0){e=k[e>>2]|0;Bh(l,25,e,j,0)|0;if(!e){Bh(l,16,0,c,0)|0;break}if((e|0)>-1?(d=b+24|0,c=d,g=k[c+4>>2]|0,h=((e|0)<0)<<31>>31,g>>>0>h>>>0|((g|0)==(h|0)?(k[c>>2]|0)>>>0>e>>>0:0)):0){c=d;k[c>>2]=e;k[c+4>>2]=h}}else{Wq(a,k[f>>2]|0,j);Bh(l,38,j,0,0)|0;Bh(l,46,j,c,0)|0}while(0);e=k[b+64>>2]|0;if(e){h=k[i>>2]|0;c=h+1|0;k[b+12>>2]=c;k[i>>2]=h+2;Wq(a,e,c);Bh(l,38,c,0,0)|0;e=Bh(l,137,c,0,0)|0;Bh(l,25,0,c,0)|0;f=l+32|0;d=k[f>>2]|0;if(d>>>0>e>>>0)k[(k[l+4>>2]|0)+(e*20|0)+8>>2]=d;g=l+24|0;k[(k[g>>2]|0)+88>>2]=d+-1;d=h+2|0;Bh(l,89,j,c,d)|0;e=Bh(l,137,j,0,0)|0;Bh(l,25,-1,d,0)|0;d=k[f>>2]|0;if(d>>>0>e>>>0)k[(k[l+4>>2]|0)+(e*20|0)+8>>2]=d;k[(k[g>>2]|0)+88>>2]=d+-1}}r=m;return}function Us(a,b,c,d,e,f,g,h,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var 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;F=k[a+8>>2]|0;A=i[g>>0]|0;u=A&255;w=g+4|0;D=k[w>>2]|0;if(!f)n=0;else n=l[f+1>>0]|0;if(!e)E=0;else E=(k[e>>2]|0)==0?0:e;z=(E|0)!=0;v=(n|0)!=0;if(!(z|v))nt(F,k[b+12>>2]|0,h);B=k[c>>2]|0;q=g+8|0;e=k[q>>2]|0;if(e){p=a+72|0;o=k[p>>2]|0;if((e+B|0)>(o|0)){k[p>>2]=o+B;C=e;x=0}else{C=e;x=0}}else{if(z){o=((i[E+24>>0]&1^1)&255)+(k[k[E>>2]>>2]|0)|0;C=a+72|0;p=o+(k[C>>2]|0)|0;k[C>>2]=p}else{p=k[a+72>>2]|0;o=0}C=p+1|0;k[q>>2]=C;k[a+72>>2]=p+B;x=o}k[g+12>>2]=B;do if((d|0)>-1){if((B|0)>0){p=0;do{Bh(F,47,d,p,p+C|0)|0;p=p+1|0}while((p|0)!=(B|0))}}else{if(A<<24>>24==9)o=1;else if(A<<24>>24==3)break;else o=A<<24>>24==13&1;gt(a,c,C,o)}while(0);if(v){o=l[f+1>>0]|0;if((o|0)==1)Eh(F,k[f+8>>2]|0);else if((o|0)==2){o=a+72|0;d=k[o>>2]|0;t=d+1|0;k[o>>2]=d+B;o=f+8|0;Eh(F,k[o>>2]|0);o=k[o>>2]|0;if((o|0)<0)o=(k[F+32>>2]|0)+-1|0;if(!(i[(k[F>>2]|0)+65>>0]|0))o=(k[F+4>>2]|0)+(o*20|0)|0;else o=29120;i[o>>0]=28;k[o+4>>2]=1;k[o+8>>2]=t;d=F+32|0;e=(k[d>>2]|0)+B|0;if((B|0)>0){p=c+4|0;o=B+-1|0;q=F+4|0;s=0;do{v=hu(a,k[(k[p>>2]|0)+(s*20|0)>>2]|0)|0;f=s+C|0;n=s+t|0;if((s|0)<(o|0))Bh(F,78,f,e,n)|0;else Bh(F,79,f,h,n)|0;Ch(F,-1,v,-4);r=k[q>>2]|0;if(r)i[r+(((k[d>>2]|0)+-1|0)*20|0)+3>>0]=-128;s=s+1|0}while((s|0)!=(B|0))}else o=B+-1|0;Bh(F,33,C,t,o)|0}else Eu(a,k[f+4>>2]|0,h,B,C);if(!E)nt(F,k[b+12>>2]|0,h)}a:do switch(u|0){case 12:case 14:case 6:case 5:{p=x+1|0;o=a+60|0;e=k[o>>2]|0;q=a+56|0;n=k[q>>2]|0;if((n|0)<(p|0)){y=a+72|0;e=k[y>>2]|0;k[y>>2]=e+p;e=e+1|0}else{k[o>>2]=e+p;k[q>>2]=n-p}n=e+x|0;Bh(F,49,C,B,n)|0;if(A<<24>>24==6){C=D+1|0;Ch(F,Bh(F,69,C,(k[F+32>>2]|0)+4|0,e)|0,0,-14);Bh(F,110,C,e,0)|0}if(z)Fu(a,E,b,n,1,x);else{n=a+19|0;f=i[n>>0]|0;if(!(f<<24>>24)){C=a+72|0;f=(k[C>>2]|0)+1|0;k[C>>2]=f}else{f=f+-1<<24>>24;i[n>>0]=f;f=k[a+((f&255)<<2)+24>>2]|0}Bh(F,74,D,f,0)|0;Bh(F,75,D,e,f)|0;n=k[F+4>>2]|0;if(n)i[n+(((k[F+32>>2]|0)+-1|0)*20|0)+3>>0]=8;ds(a,f)}it(a,e,p);if((k[q>>2]|0)<(p|0)){k[q>>2]=p;k[o>>2]=e;y=94}else y=94;break}case 11:{e=g+1|0;B=Gu(k[k[c+4>>2]>>2]|0,i[e>>0]|0)|0;i[e>>0]=B;if(z){Fu(a,E,b,C,1,x);break a}f=a+19|0;n=i[f>>0]|0;if(!(n<<24>>24)){B=a+72|0;f=(k[B>>2]|0)+1|0;k[B>>2]=f}else{B=n+-1<<24>>24;i[f>>0]=B;f=k[a+((B&255)<<2)+24>>2]|0}Ch(F,Bh(F,49,C,1,f)|0,e,1);it(a,C,1);Bh(F,110,D,f,0)|0;ds(a,f);y=94;break}case 2:{Bh(F,111,D,C,B)|0;y=94;break}case 3:{Bh(F,25,1,D,0)|0;y=94;break}case 10:{if(z)Fu(a,E,b,C,1,x);else y=95;break}case 9:case 13:{if(z){Fu(a,E,b,C,B,x);break a}if(A<<24>>24==13){Bh(F,22,k[w>>2]|0,0,0)|0;y=95;break a}else{Bh(F,35,C,B,0)|0;it(a,C,B);y=94;break a}}case 1:{n=a+19|0;f=i[n>>0]|0;if(!(f<<24>>24)){A=a+72|0;f=(k[A>>2]|0)+1|0;k[A>>2]=f}else{f=f+-1<<24>>24;i[n>>0]=f;f=k[a+((f&255)<<2)+24>>2]|0}Bh(F,49,C,B,f)|0;Bh(F,110,D,f,0)|0;ds(a,f);y=94;break}case 7:case 8:{r=k[g+16>>2]|0;d=k[r>>2]|0;n=a+19|0;f=i[n>>0]|0;if(!(f<<24>>24)){z=a+72|0;s=(k[z>>2]|0)+1|0;k[z>>2]=s}else{s=f+-1<<24>>24;i[n>>0]=s;s=k[a+((s&255)<<2)+24>>2]|0}t=d+2|0;u=a+60|0;e=k[u>>2]|0;v=a+56|0;n=k[v>>2]|0;if((n|0)<(t|0)){z=a+72|0;e=k[z>>2]|0;k[z>>2]=e+t;e=e+1|0}else{k[u>>2]=e+t;k[v>>2]=n-t}q=e+d|0;o=q+1|0;if(A<<24>>24==8){n=D+1|0;f=Bh(F,69,n,0,C)|0;Ch(F,f,B,-14);Bh(F,49,C,B,o)|0;Bh(F,110,n,o,0)|0;n=k[F+4>>2]|0;if(!n)p=f;else{i[n+(((k[F+32>>2]|0)+-1|0)*20|0)+3>>0]=16;p=f}}else{Bh(F,49,C,B,o)|0;p=0}if((d|0)>0){o=r+4|0;n=C+-1|0;f=0;do{Bh(F,34,n+(m[(k[o>>2]|0)+(f*20|0)+16>>1]|0)|0,f+e|0,0)|0;f=f+1|0}while((f|0)!=(d|0))}Bh(F,73,D,q,0)|0;Bh(F,49,e,t,s)|0;Bh(F,110,D,s,0)|0;if(p){n=k[F+32>>2]|0;if(n>>>0>p>>>0)k[(k[F+4>>2]|0)+(p*20|0)+8>>2]=n;k[(k[F+24>>2]|0)+88>>2]=n+-1}ds(a,s);it(a,e,t);if((k[v>>2]|0)<(t|0)){k[v>>2]=t;k[u>>2]=e;y=94}else y=94;break}default:y=94}while(0);if((y|0)==94?(E|0)==0:0)y=95;if((y|0)==95?(G=k[b+8>>2]|0,(G|0)!=0):0)Bh(F,140,G,j,0)|0;return}function Vs(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;l=r;r=r+16|0;if((r|0)>=(s|0))ka();j=l;if((i[a+450>>0]|0)==2){g=k[a+8>>2]|0;h=k[a>>2]|0;f=(e|0)!=0?35160:10360;if((b|0)==117)e=35352;else if((b|0)==116)e=35320;else if((b|0)==118)e=35336;else e=35360;k[j>>2]=c;k[j+4>>2]=d;k[j+8>>2]=f;k[j+12>>2]=e;e=zh(h,35120,j)|0;Ch(g,Bh(g,157,k[a+464>>2]|0,0,0)|0,e,-1)}r=l;return}function Ws(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=c+b|0;e=(d*5|0)+24|0;f=vg(e,0)|0;if(!f)i[a+65>>0]=1;else{kw(f|0,0,e|0)|0;k[f+16>>2]=f+20+(d<<2);j[f+6>>1]=b;j[f+8>>1]=c;i[f+4>>0]=i[a+62>>0]|0;k[f+12>>2]=a;k[f>>2]=1}return f|0}function Xs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=k[b+52>>2]|0;if(!((e|0)!=0?(d=Xs(a,e,c)|0,(d|0)!=0):0)){d=k[b>>2]|0;if((k[d>>2]|0)>(c|0))d=hu(a,k[(k[d+4>>2]|0)+(c*20|0)>>2]|0)|0;else d=0}return d|0}function Ys(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=(a|0)==0;d=(b|0)==0;a:do if(!(e&d))if(!(e|d)?(f=k[a>>2]|0,(f|0)==(k[b>>2]|0)):0)if((f|0)>0){a=k[a+4>>2]|0;d=k[b+4>>2]|0;e=0;while(1){if((i[a+(e*20|0)+12>>0]|0)!=(i[d+(e*20|0)+12>>0]|0)){d=1;break a}if(Hu(k[a+(e*20|0)>>2]|0,k[d+(e*20|0)>>2]|0,c)|0){d=1;break a}e=e+1|0;if((e|0)>=(f|0)){d=0;break}}}else d=0;else d=1;else d=0;while(0);return d|0}function Zs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0;e=k[a>>2]|0;l=k[b>>2]|0;j=Ws(e,l-c|0,d+1|0)|0;if((j|0)!=0&(l|0)>(c|0)){f=e+8|0;g=j+16|0;h=c;d=(k[b+4>>2]|0)+(c*20|0)|0;while(1){e=hu(a,k[d>>2]|0)|0;if(!e)e=k[f>>2]|0;b=h-c|0;k[j+(b<<2)+20>>2]=e;i[(k[g>>2]|0)+b>>0]=i[d+12>>0]|0;h=h+1|0;if((h|0)==(l|0))break;else d=d+20|0}}return j|0}function _s(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,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0;Ma=r;r=r+64|0;if((r|0)>=(s|0))ka();Ka=Ma;La=Ma+48|0;Ja=Ma+52|0;Y=Ma+28|0;Ha=a+8|0;da=k[Ha>>2]|0;Ia=k[a>>2]|0;k[Y+0>>2]=0;k[Y+4>>2]=0;k[Y+8>>2]=0;k[Y+12>>2]=0;k[Y+16>>2]=0;if(!d)P=0;else P=(k[d>>2]|0)>63?0:d;Z=Y+8|0;k[Z>>2]=P;_=Ia+60|0;if(j[_>>1]&32)f=f&64511;d=k[b>>2]|0;a:do if((d|0)<=64){H=f&65535;K=(H&64|0)!=0;U=K?1:d;u=(U*80|0)+743&-16;h=u+72|0;d=rh(Ia,h,0)|0;Ga=(d|0)==0;if(!Ga)kw(d|0,0,h|0)|0;xa=Ia+65|0;if(i[xa>>0]|0){rg(Ia,d);d=0;break}ba=d+60|0;ca=d+64|0;k[ca>>2]=-1;k[ba>>2]=-1;ya=d+41|0;i[ya>>0]=U;k[d>>2]=a;za=d+4|0;k[za>>2]=b;$=d+8|0;k[$>>2]=P;k[d+12>>2]=e;Ba=Cs(da)|0;Aa=d+48|0;k[Aa>>2]=Ba;o=d+52|0;k[o>>2]=Ba;Ba=d+34|0;j[Ba>>1]=f;Ca=a+424|0;Da=d+56|0;k[Da>>2]=k[Ca>>2];Ea=d+68|0;k[Y>>2]=d;Fa=d+328|0;X=Y+4|0;k[X>>2]=Fa;S=Y+12|0;k[S>>2]=d+u;k[d+(u+48)>>2]=d+(u+56);j[d+(u+40)>>1]=0;j[d+(u+44)>>1]=3;k[d+(u+36)>>2]=0;k[Ea>>2]=0;k[Fa>>2]=d;k[d+332>>2]=0;va=d+340|0;k[va>>2]=0;k[d+344>>2]=8;wa=d+348|0;k[wa>>2]=d+352;Iu(Fa,c,72);y=(U|0)==0;if((k[d+340>>2]|0)>0){x=Ka+20|0;w=Ka+4|0;h=Ka+24|0;c=Fa;n=0;do{if(!y){c=k[(k[c+20>>2]|0)+(n*48|0)>>2]|0;k[Ka+0>>2]=0;k[Ka+4>>2]=0;k[Ka+8>>2]=0;k[Ka+12>>2]=0;k[Ka+16>>2]=0;k[Ka+20>>2]=0;i[x>>0]=2;k[Ka>>2]=78;k[w>>2]=79;k[h>>2]=0;ws(Ka,c)|0;c=k[X>>2]|0;if(i[x>>0]|0)ua=15}else ua=15;if((ua|0)==15){ua=0;lt(a,k[(k[c+20>>2]|0)+(n*48|0)>>2]|0,k[o>>2]|0,16);c=k[X>>2]|0;aa=(k[c+20>>2]|0)+(n*48|0)+20|0;j[aa>>1]=m[aa>>1]|4}n=n+1|0}while((n|0)<(k[c+12>>2]|0))}if(y){if(P)i[d+36>>0]=k[P>>2];if(H&1024)i[d+40>>0]=1}if((k[b>>2]|0)>0){u=0;do{O=k[b+(u*72|0)+48>>2]|0;aa=k[Ea>>2]|0;k[Ea>>2]=aa+1;k[Ea+(aa<<2)+4>>2]=O;u=u+1|0}while((u|0)<(k[b>>2]|0))}p=k[va>>2]|0;if((p|0)>0)do{p=p+-1|0;Ju(Fa,p)}while((p|0)>0);b:do if(!(i[xa>>0]|0)){aa=(H&1024|0)==0;c:do if(!aa){d:do if((k[b>>2]|0)==1){G=k[b+48>>2]|0;n=k[b+24>>2]|0;x=k[e>>2]|0;e:do if((x|0)>0){w=k[e+4>>2]|0;h=0;while(1){c=k[w+(h*20|0)>>2]|0;f:do if(!c)c=0;else while(1){y=k[c+4>>2]|0;if(!(y&4096))break f;if(!(y&262144))c=c+12|0;else c=k[(k[c+20>>2]|0)+4>>2]|0;c=k[c>>2]|0;if(!c){c=0;break}}while(0);do if((i[c>>0]|0)==-102){if((k[c+28>>2]|0)!=(G|0))break;if((j[c+32>>1]|0)<0)break e}while(0);h=h+1|0;if((h|0)>=(x|0)){ua=41;break}}}else ua=41;while(0);g:do if((ua|0)==41){c=k[n+8>>2]|0;if(!c)break d;o=e+4|0;n=n+4|0;while(1){if(i[c+50>>0]|0){C=c+46|0;h:do if(!(j[C>>1]|0))y=0;else{E=c+4|0;D=c+32|0;y=0;do{B=j[(k[E>>2]|0)+(y<<1)>>1]|0;if(!(Ku(Fa,G,B,-1,-1,2,c)|0)){h=k[(k[D>>2]|0)+(y<<2)>>2]|0;if((k[e>>2]|0)>0)x=0;else break h;i:while(1){z=k[(k[o>>2]|0)+(x*20|0)>>2]|0;j:do if(!z)w=0;else{w=z;while(1){A=k[w+4>>2]|0;if(!(A&4096))break j;if(!(A&262144))w=w+12|0;else w=k[(k[w+20>>2]|0)+4>>2]|0;w=k[w>>2]|0;if(!w){w=0;break}}}while(0);do if((i[w>>0]|0)==-102){if((j[w+32>>1]|0)!=(j[(k[E>>2]|0)+(y<<1)>>1]|0))break;if((k[w+28>>2]|0)!=(G|0))break;w=hu(a,z)|0;if(!w)break;if(!(id(k[w>>2]|0,h)|0))break i}while(0);x=x+1|0;if((x|0)>=(k[e>>2]|0))break h}if((x|0)<0)break h;if(!(i[(k[n>>2]|0)+(B*24|0)+20>>0]|0))break h}y=y+1|0}while((y|0)<(m[C>>1]|0))}while(0);if((y|0)==(m[C>>1]|0))break g}c=k[c+20>>2]|0;if(!c)break d}}while(0);i[d+40>>0]=1;break c}while(0);if(!P){j[Ba>>1]=m[Ba>>1]|512;k[$>>2]=e}}while(0);k:do if((((U|0)==1?(W=k[Y>>2]|0,V=W+34|0,(j[V>>1]&32)==0):0)?(R=k[W+4>>2]|0,N=k[R+24>>2]|0,(i[N+44>>0]&16)==0):0)?(k[R+72>>2]|0)==0:0){P=k[R+48>>2]|0;z=W+328|0;O=k[S>>2]|0;G=O+36|0;k[G>>2]=0;j[O+42>>1]=0;v=Ku(z,P,-1,0,0,2,0)|0;l:do if(!v){x=k[N+8>>2]|0;m:do if(x){A=O+48|0;n:while(1){do if(i[x+50>>0]|0){if(k[x+36>>2]|0)break;w=x+46|0;c=j[w>>1]|0;if((c&65535)>3)break;o=x+4|0;o:do if(!(c<<16>>16)){c=0;y=0}else{y=0;while(1){c=Ku(z,P,j[(k[o>>2]|0)+(y<<1)>>1]|0,0,0,2,x)|0;if(!c)break;k[(k[A>>2]|0)+(y<<2)>>2]=c;y=y+1|0;c=j[w>>1]|0;if((y|0)>=(c&65535|0))break o}c=j[w>>1]|0}while(0);if((y|0)==(c&65535|0)){A=y;break n}}while(0);x=k[x+20>>2]|0;if(!x)break m}k[G>>2]=4609;if(!(i[x+51>>0]&32)){n=R+64|0;h=k[n>>2]|0;n=k[n+4>>2]|0;w=0;v=0;c=m[x+48>>1]|0;p:while(1){y=c;while(1){c=y+-1|0;if((y|0)<=0)break p;y=j[(k[o>>2]|0)+(c<<1)>>1]|0;if((y&65535)<63)break;else y=c}Y=nw(1,0,y<<16>>16|0)|0;w=Y|w;v=L|v}if((h&~w|0)==0&(n&~v|0)==0)ua=91}else ua=91;if((ua|0)==91)k[G>>2]=4673;Y=A&65535;j[O+40>>1]=Y;j[O+24>>1]=Y;k[O+28>>2]=x;j[O+20>>1]=39;break l}while(0);if(!(k[G>>2]|0)){ua=103;break k}}else{k[G>>2]=4353;k[k[O+48>>2]>>2]=v;j[O+40>>1]=1;j[O+24>>1]=1;j[O+20>>1]=33}while(0);j[O+22>>1]=1;k[W+800>>2]=O;o=k[W+68>>2]|0;q:do if((o|0)>0){p=0;while(1){if((k[W+(p<<2)+72>>2]|0)==(P|0))break;p=p+1|0;if((p|0)>=(o|0)){p=0;o=0;break q}}p=nw(1,0,p|0)|0;o=L}else{p=0;o=0}while(0);n=O+8|0;k[n>>2]=p;k[n+4>>2]=o;k[W+740>>2]=P;j[W+32>>1]=1;n=k[W+8>>2]|0;if(n)i[W+36>>0]=k[n>>2];if(!(j[V>>1]&1024)){ua=120;break}i[W+40>>0]=1;ua=120}else ua=103;while(0);if((ua|0)==103){C=k[Y>>2]|0;c=k[C+4>>2]|0;D=k[k[C>>2]>>2]|0;W=i[C+41>>0]|0;E=W&255;w=k[S>>2]|0;k[w+48>>2]=w+56;j[w+40>>1]=0;j[w+44>>1]=3;k[w+36>>2]=0;h=D+65|0;r:do if(W<<24>>24){n=w+16|0;o=C+68|0;p=w+8|0;q=0;t=0;u=0;v=0;B=0;A=c+8|0;z=0;while(1){i[n>>0]=B;y=k[A+40>>2]|0;x=k[o>>2]|0;s:do if((x|0)>0){c=0;while(1){if((k[C+(c<<2)+72>>2]|0)==(y|0))break;c=c+1|0;if((c|0)>=(x|0)){c=0;y=0;break s}}c=nw(1,0,c|0)|0;y=L}else{c=0;y=0}while(0);W=p;k[W>>2]=c;k[W+4>>2]=y;W=z;z=i[A+36>>0]|0;W=((z|W)&10)==0;t=W?t:q;v=W?v:u;if(!(i[(k[A+16>>2]|0)+44>>0]&16))c=Mu(Y,t,v)|0;else c=Lu(Y,t,v)|0;if(c)break;W=Nu(Y,t,v)|0;c=p;if(W)break;if(i[h>>0]|0)break r;B=B+1|0;if((B|0)>=(E|0))break r;else{q=k[c>>2]|q;u=k[c+4>>2]|u;A=A+72|0}}Ou(D,w);break b}while(0);Ou(D,w);Pu(d,0);if(i[xa>>0]|0)break;if(k[$>>2]|0){Pu(d,(m[d+32>>1]|0)+1&65535);if(!(i[xa>>0]|0))ua=120;else break}else ua=121}if((ua|0)==120?(k[$>>2]|0)==0:0)ua=121;if((ua|0)==121?(k[Ia+24>>2]&131072|0)!=0:0){$=d+24|0;k[$>>2]=-1;k[$+4>>2]=-1}if((k[a+64>>2]|0)==0?(i[xa>>0]|0)==0:0){u=i[ya>>0]|0;t:do if((u&255)>1&(e|0)!=0?(j[_>>1]&1024)==0:0){n=Qu(Ea,e)|0;o=L;h=k[Z>>2]|0;if(h){$=Qu(Ea,h)|0;n=$|n;o=L|o}y=d+736|0;c=k[za>>2]|0;x=k[X>>2]|0;w=x+20|0;x=x+12|0;v=u;h=U;do{p=k[y+(((v&255)+-1|0)*80|0)+64>>2]|0;if(!(i[c+((l[p+16>>0]|0)*72|0)+44>>0]&8))break t;if(aa?(k[p+36>>2]&4096|0)==0:0)break t;t=p+8|0;q=k[t>>2]|0;t=k[t+4>>2]|0;if(!((q&n|0)==0&(t&o|0)==0))break t;p=k[w>>2]|0;$=k[x>>2]|0;u=p+($*48|0)|0;if(($|0)>0)do{$=p+40|0;if(!((q&k[$>>2]|0)==0?(t&k[$+4>>2]|0)==0:0)?(k[(k[p>>2]|0)+4>>2]&1|0)==0:0)break t;p=p+48|0}while(p>>>0<u>>>0);v=v+-1<<24>>24;i[ya>>0]=v;h=h+-1|0}while((v&255)>1)}else h=U;while(0);aa=(k[d>>2]|0)+424|0;k[aa>>2]=(k[aa>>2]|0)+(j[d+32>>1]|0);do if((H&4|0)!=0?(T=(k[d+800>>2]|0)+36|0,Q=k[T>>2]|0,(Q&4096|0)!=0):0){i[d+38>>0]=1;if(i[(k[b+24>>2]|0)+44>>0]&32)break;k[T>>2]=Q&-65}while(0);ta=d+736|0;P=(h|0)>0;if(P){M=H&16;N=d+38|0;O=da+32|0;I=K^1;K=(g|0)==0|I;J=a+68|0;G=54-(H>>>12&1)|0;F=da+4|0;B=Ia+20|0;z=Ia+16|0;q=0;H=ta;while(1){A=l[H+44>>0]|0;C=b+(A*72|0)+24|0;o=k[C>>2]|0;c=k[o+68>>2]|0;u:do if(!c)w=-1e6;else{y=k[B>>2]|0;if((y|0)<=0){w=0;break}x=k[z>>2]|0;n=0;while(1){w=n+1|0;if((k[x+(n<<4)+12>>2]|0)==(c|0)){w=n;break u}if((w|0)<(y|0))n=w;else break}}while(0);E=k[H+64>>2]|0;D=o+44|0;c=l[D>>0]|0;do if(!(c&2)){if(k[o+12>>2]|0)break;y=k[E+36>>2]|0;if(y&1024){v=k[o+60>>2]|0;v:do if(!v)v=0;else while(1){if((k[v>>2]|0)==(Ia|0))break v;v=k[v+24>>2]|0;if(!v){v=0;break}}while(0);Ch(da,Bh(da,149,k[b+(A*72|0)+48>>2]|0,0,0)|0,v,-10);break}if(c&16)break;if(y&64|M){ls(a,w,k[o+32>>2]|0,0,k[o>>2]|0);break}x=b+(A*72|0)+48|0;if(!(i[N>>0]|0))c=54;else{k[ba>>2]=k[x>>2];c=55}Vq(a,k[x>>2]|0,w,o,c);if(i[N>>0]|0)break;if((j[o+38>>1]|0)>=64)break;if(i[D>>0]&32)break;x=b+(A*72|0)+64|0;v=k[x>>2]|0;x=k[x+4>>2]|0;if((v|0)==0&(x|0)==0)u=0;else{u=0;do{v=rw(v|0,x|0,1)|0;x=L;u=u+1|0}while(!((v|0)==0&(x|0)==0))}Ch(da,(k[O>>2]|0)+-1|0,u,-14)}while(0);y=E+36|0;w:do if(k[y>>2]&512){c=k[E+28>>2]|0;do if(i[D>>0]&32){if((i[c+51>>0]&3)!=2|I)break;k[H+8>>2]=k[H+4>>2];break w}while(0);do if(!(i[N>>0]|0)){if(!K){u=g;t=G;break}u=k[J>>2]|0;k[J>>2]=u+1;t=54}else{t=k[(k[C>>2]|0)+8>>2]|0;if((t|0)==0|(t|0)==(c|0))u=g;else{u=g;do{u=u+1|0;t=k[t+20>>2]|0}while(!((t|0)==0|(t|0)==(c|0)))}k[ca>>2]=u;t=55}while(0);k[H+8>>2]=u;Bh(da,t,u,k[c+40>>2]|0,w)|0;aa=k[Ha>>2]|0;Ch(aa,-1,ms(a,c)|0,-6);aa=k[y>>2]|0;if(!((aa&15|0)!=0&(aa&32770|0)==0))break;if(j[Ba>>1]&1)break;p=k[F>>2]|0;if(!p)break;i[p+(((k[O>>2]|0)+-1|0)*20|0)+3>>0]=2}while(0);if((w|0)>-1)Fr(a,w);q=q+1|0;if((q|0)==(h|0))break;else H=H+80|0}ca=(i[xa>>0]|0)==0;k[d+44>>2]=k[O>>2];if(!ca)break}else{O=da+32|0;k[d+44>>2]=k[O>>2]}if(!P)break a;ga=d+24|0;ha=d+36|0;ia=d+39|0;ja=a+80|0;la=a+68|0;ma=a+100|0;na=a+19|0;oa=a+72|0;pa=Ka+20|0;qa=Ka+4|0;ra=Ka+24|0;o=-1;n=-1;sa=0;while(1){V=ta+(sa*80|0)|0;c=ta+(sa*80|0)+64|0;X=ta+(sa*80|0)+44|0;if(k[(k[c>>2]|0)+36>>2]&16384){G=l[X>>0]|0;R=b+(G*72|0)+8|0;W=k[Ha>>2]|0;v=Tq(a)|0;Y=k[ja>>2]|0;k[ja>>2]=Y+1;Y=Bh(v,44,Y,0,0)|0;v=k[b+(G*72|0)+24>>2]|0;ca=k[va>>2]|0;y=k[wa>>2]|0;Q=y+(ca*48|0)|0;I=k[c>>2]|0;x:do if((ca|0)>0){w=b+(G*72|0)+48|0;q=v+4|0;t=I+48|0;C=0;z=0;x=0;p=0;B=0;while(1){A=k[y>>2]|0;ca=I;do if((k[ca>>2]|0)==0&(k[ca+4>>2]|0)==0){if(j[y+20>>1]&2)break;if(k[A+4>>2]&1)break;ca=k[w>>2]|0;k[Ka+0>>2]=0;k[Ka+4>>2]=0;k[Ka+8>>2]=0;k[Ka+12>>2]=0;k[Ka+16>>2]=0;k[Ka+20>>2]=0;i[pa>>0]=3;k[Ka>>2]=78;k[qa>>2]=79;k[ra>>2]=ca;ws(Ka,A)|0;if(!(i[pa>>0]|0))break;ca=k[a>>2]|0;p=xs(ca,p,Rr(ca,A,0,0)|0)|0}while(0);do if(!(Ru(y,R,o,n)|0)){E=C;A=z;c=x}else{A=k[y+12>>2]|0;if((A|0)>63){E=0;D=-2147483648}else{E=nw(1,0,A|0)|0;D=L}if(!(B<<24>>24)){B=k[(k[q>>2]|0)+(A*24|0)>>2]|0;k[Ka>>2]=k[v>>2];k[Ka+4>>2]=B;gd(284,33960,Ka);B=1}if(!((E&C|0)==0&(D&z|0)==0)){E=C;A=z;c=x;break}c=x+1|0;if(Su(k[a>>2]|0,I,c)|0)break x;k[(k[t>>2]|0)+(x<<2)>>2]=y;E=E|C;A=D|z}while(0);y=y+48|0;if(y>>>0>=Q>>>0){y=E;ua=207;break}else{C=E;z=A;x=c}}}else{A=0;y=0;c=0;p=0;ua=207}while(0);do if((ua|0)==207){ua=0;q=c&65535;j[I+40>>1]=q;j[I+24>>1]=q;q=I+36|0;k[q>>2]=16961;H=b+(G*72|0)+64|0;J=H;D=k[J+4>>2]|0;J=k[J>>2]&~y;M=D&((A|-2147483648)^2147483647);u=v+38|0;N=j[u>>1]|0;E=N<<16>>16;N=N<<16>>16>63?63:E;P=(N|0)>0;if(P){A=0;do{ca=nw(1,0,A|0)|0;c=(((ca&J|0)!=0|(L&M|0)!=0)&1)+c|0;A=A+1|0}while((A|0)!=(N|0))}if((D|0)<0)c=c+-63+E|0;K=c+1|0;F=zs(k[a>>2]|0,K&65535,0,La)|0;if(!F)break;k[I+28>>2]=F;k[F>>2]=33992;k[F+12>>2]=v;A=k[wa>>2]|0;if(A>>>0<Q>>>0){c=F+4|0;y=F+32|0;D=0;E=0;x=0;do{do if(Ru(A,R,o,n)|0){C=k[A+12>>2]|0;if((C|0)>63){B=0;z=-2147483648}else{B=nw(1,0,C|0)|0;z=L}if(!((B&D|0)==0&(z&E|0)==0))break;ca=k[A>>2]|0;j[(k[c>>2]|0)+(x<<1)>>1]=C;C=Tu(a,k[ca+12>>2]|0,k[ca+16>>2]|0)|0;if(!C)C=11152;else C=k[C>>2]|0;k[(k[y>>2]|0)+(x<<2)>>2]=C;D=B|D;E=z|E;x=x+1|0}while(0);A=A+48|0}while(A>>>0<Q>>>0)}else x=0;if(P){A=F+4|0;z=F+32|0;c=0;do{ca=nw(1,0,c|0)|0;if(!((ca&J|0)==0&(L&M|0)==0)){j[(k[A>>2]|0)+(x<<1)>>1]=c;k[(k[z>>2]|0)+(x<<2)>>2]=11152;x=x+1|0}c=c+1|0}while((c|0)!=(N|0))}do if((k[H+4>>2]|0)<0){if((j[u>>1]|0)<=63)break;c=F+4|0;y=F+32|0;w=63;do{j[(k[c>>2]|0)+(x<<1)>>1]=w;k[(k[y>>2]|0)+(x<<2)>>2]=11152;x=x+1|0;w=w+1|0}while((w|0)<(j[u>>1]|0))}while(0);j[(k[F+4>>2]|0)+(x<<1)>>1]=-1;k[(k[F+32>>2]|0)+(x<<2)>>2]=11152;A=k[la>>2]|0;k[la>>2]=A+1;y=ta+(sa*80|0)+8|0;k[y>>2]=A;Bh(W,56,A,K,0)|0;A=k[Ha>>2]|0;Ch(A,-1,ms(a,F)|0,-6);k[ma>>2]=(k[ma>>2]|0)+1;A=ta+(sa*80|0)+4|0;t=Bh(W,108,k[A>>2]|0,0,0)|0;x=(p|0)!=0;if(x){w=Cs(W)|0;lt(a,p,w,16);k[q>>2]=k[q>>2]|131072}else w=0;c=i[na>>0]|0;if(!(c<<24>>24)){q=(k[oa>>2]|0)+1|0;k[oa>>2]=q}else{q=c+-1<<24>>24;i[na>>0]=q;q=k[a+((q&255)<<2)+24>>2]|0}Ut(a,F,k[A>>2]|0,q,0,0,0,0)|0;Bh(W,110,k[y>>2]|0,q,0)|0;z=W+4|0;c=k[z>>2]|0;if(c)i[c+(((k[W+32>>2]|0)+-1|0)*20|0)+3>>0]=16;if(x){y=k[W+24>>2]|0;x=~w;do if((w|0)<0){c=k[y+112>>2]|0;if(!c)break;k[c+(x<<2)>>2]=k[W+32>>2]}while(0);k[y+88>>2]=(k[W+32>>2]|0)+-1}Bh(W,9,k[A>>2]|0,t+1|0,0)|0;c=k[z>>2]|0;y=k[W+32>>2]|0;if(c)i[c+((y+-1|0)*20|0)+3>>0]=3;if(y>>>0>t>>>0)k[c+(t*20|0)+8>>2]=y;c=W+24|0;k[(k[c>>2]|0)+88>>2]=y+-1;ds(a,q);gu(a);u=k[W+32>>2]|0;if(u>>>0>Y>>>0)k[(k[z>>2]|0)+(Y*20|0)+8>>2]=u;k[(k[c>>2]|0)+88>>2]=u+-1}while(0);Lk(k[a>>2]|0,p);if(i[xa>>0]|0)break b}Uu(a,b,V,sa,l[X>>0]|0,f);k[ta+(sa*80|0)+32>>2]=k[O>>2];fa=k[d>>2]|0;K=fa+8|0;ba=k[K>>2]|0;da=k[fa>>2]|0;p=d+(sa*80|0)+736|0;J=k[d+(sa*80|0)+800>>2]|0;$=d+(sa*80|0)+780|0;G=l[$>>0]|0;E=k[za>>2]|0;N=E+(G*72|0)+8|0;g=k[E+(G*72|0)+48>>2]|0;y=k[Ea>>2]|0;y:do if((y|0)>0){c=0;while(1){if((k[Ea+(c<<2)+4>>2]|0)==(g|0))break;c=c+1|0;if((c|0)>=(y|0)){c=-1;y=-1;break y}}c=nw(1,0,c|0)|0;c=~c;y=~L}else{c=-1;y=-1}while(0);ea=d+(sa*80|0)+808|0;M=ea;k[M>>2]=c&o;k[M+4>>2]=y&n;M=ga;M=rw(k[M>>2]|0,k[M+4>>2]|0,sa|0)|0;_=M&1;T=J+36|0;if(!(k[T>>2]&64))v=0;else v=(j[Ba>>1]&32)==0;F=Cs(ba)|0;P=d+(sa*80|0)+752|0;k[P>>2]=F;aa=d+(sa*80|0)+748|0;k[aa>>2]=F;ca=Cs(ba)|0;k[d+(sa*80|0)+760>>2]=ca;do if(i[$>>0]|0){if(!(i[E+(G*72|0)+44>>0]&8))break;Z=fa+72|0;e=(k[Z>>2]|0)+1|0;k[Z>>2]=e;k[p>>2]=e;Bh(ba,25,0,e,0)|0}while(0);A=i[E+(G*72|0)+45>>0]|0;z:do if(!(A&4)){C=k[T>>2]|0;if(C&1024){q=j[J+40>>1]|0;t=q&65535;v=fa+100|0;k[v>>2]=(k[v>>2]|0)+1;v=t+2|0;F=fa+60|0;c=k[F>>2]|0;G=fa+56|0;y=k[G>>2]|0;if((y|0)<(v|0)){$=fa+72|0;u=k[$>>2]|0;k[$>>2]=u+v;u=u+1|0}else{k[F>>2]=c+v;k[G>>2]=y-v;u=c}c=k[aa>>2]|0;B=q<<16>>16==0;if(!B){D=u+2|0;C=J+48|0;E=0;do{A=D+E|0;z=k[(k[C>>2]|0)+(E<<2)>>2]|0;do if(z)if(!(j[z+18>>1]&1)){Wq(fa,k[(k[z>>2]|0)+16>>2]|0,A);break}else{Vu(fa,z,p,E,_,A)|0;c=k[P>>2]|0;break}while(0);E=E+1|0}while((E|0)<(t|0))}Bh(ba,25,k[J+24>>2]|0,u,0)|0;Bh(ba,25,t,u+1|0,0)|0;_=k[J+32>>2]|0;aa=J+28|0;$=(i[aa>>0]|0)!=0?-11:-2;Ch(ba,Bh(ba,14,g,c,u)|0,_,$);i[aa>>0]=0;if(!B){w=J+30|0;x=J+48|0;c=(q&65535)>1?0-t|0:-1;c=c>>>0>4294967280?0-c|0:16;y=0;do{if(m[w>>1]&1<<y)Wu(p,k[(k[x>>2]|0)+(y<<2)>>2]|0);y=y+1|0}while((y|0)!=(c|0))}i[d+(sa*80|0)+781>>0]=-105;k[d+(sa*80|0)+784>>2]=g;k[d+(sa*80|0)+788>>2]=k[ba+32>>2];it(fa,u,v);if((k[G>>2]|0)<(v|0)){k[G>>2]=v;k[F>>2]=u}gu(fa);ua=459;break}if(!((C&256|0)==0|(C&5|0)==0)){v=k[k[J+48>>2]>>2]|0;aa=fa+72|0;x=(k[aa>>2]|0)+1|0;k[aa>>2]=x;v=Vu(fa,v,p,0,_,x)|0;if((v|0)!=(x|0))ds(fa,x);ua=k[P>>2]|0;Bh(ba,38,v,ua,0)|0;Bh(ba,70,g,ua,v)|0;it(fa,v,1);Xu(fa,g,-1,v);i[d+(sa*80|0)+781>>0]=-100;ua=459;break}if((C&258|0)==258){if(!(C&32)){c=0;x=0}else{c=1;x=k[k[J+48>>2]>>2]|0}if(!(C&16))c=0;else c=k[(k[J+48>>2]|0)+(c<<2)>>2]|0;y=(_|0)!=0;w=y?x:c;c=y?c:x;if(!c)Bh(ba,y?105:108,g,F,0)|0;else{$=k[c>>2]|0;aa=eu(fa,k[$+16>>2]|0,Ka)|0;Bh(ba,l[33536+((l[$>>0]|0)+-80)>>0]|0,g,F,aa)|0;it(fa,aa,1);ds(fa,k[Ka>>2]|0);Wu(p,c)}if(!w){c=0;y=156}else{aa=k[w>>2]|0;$=fa+72|0;c=(k[$>>2]|0)+1|0;k[$>>2]=c;Wq(fa,k[aa+16>>2]|0,c);aa=i[aa>>0]|0;if(aa<<24>>24==80|aa<<24>>24==82)y=_<<1^83;else y=_<<1|80;Wu(p,w)}x=ba+32|0;aa=k[x>>2]|0;i[d+(sa*80|0)+781>>0]=_^9;k[d+(sa*80|0)+784>>2]=g;k[d+(sa*80|0)+788>>2]=aa;if((y|0)==156){ua=459;break}aa=fa+72|0;u=(k[aa>>2]|0)+1|0;k[aa>>2]=u;Bh(ba,103,g,u,0)|0;Xu(fa,g,-1,u);Bh(ba,y,c,F,u)|0;u=k[ba+4>>2]|0;if(!u){ua=459;break}i[u+(((k[x>>2]|0)+-1|0)*20|0)+3>>0]=83;ua=459;break}if(C&512){K=j[J+24>>1]|0;i[Ja>>0]=0;S=k[J+28>>2]|0;U=k[d+(sa*80|0)+744>>2]|0;do if(!(j[Ba>>1]&1)){D=0;A=0}else{if((i[ha>>0]|0)<=0){D=0;A=0;break}A=(m[S+46>>1]|0)>(K&65535);D=A&1;A=A&1}while(0);c=K&65535;if(!(C&32)){E=c;G=0}else{E=c+1|0;A=1;G=k[(k[J+48>>2]|0)+(c<<2)>>2]|0}do if(!(C&16))z=0;else{z=k[(k[J+48>>2]|0)+(E<<2)>>2]|0;if(j[z+20>>1]&256){$=fa+72|0;aa=(k[$>>2]|0)+1|0;k[$>>2]=aa;k[d+(sa*80|0)+772>>2]=aa;Bh(ba,25,(i[(k[S+28>>2]|0)+c>>0]|0)==1^_,aa,0)|0;k[d+(sa*80|0)+776>>2]=k[ba+32>>2]}if(G){A=1;break}A=j[(k[S+4>>2]|0)+(c<<1)>>1]|0;if(A<<16>>16<=-1){A=1;break}D=(i[(k[(k[S+12>>2]|0)+4>>2]|0)+((A<<16>>16)*24|0)+20>>0]|0)==0?1:D;A=1}while(0);I=Yu(fa,p,_,A,La)|0;H=k[La>>2]|0;F=(H|0)==0;if(!F)i[Ja>>0]=i[H+c>>0]|0;J=k[P>>2]|0;B=j[S+46>>1]|0;if((K&65535)<(B&65535)?!((i[(k[S+28>>2]|0)+c>>0]|0)==0^((M&1|0)!=0|0!=0)):0)ua=318;else if((_|0)!=0?B<<16>>16==K<<16>>16:0)ua=318;else{N=D;D=0;M=z;P=G}if((ua|0)==318){N=0;M=G;P=z}z=(P|0)!=0;if(z)B=(j[P+18>>1]&40)!=0;else B=1;C=B&1;G=(M|0)!=0;if(G)E=(j[M+18>>1]&40)!=0;else E=1;A=E&1;E=(z|K<<16>>16!=0)&1;do if(z){y=k[(k[P>>2]|0)+16>>2]|0;z=I+c|0;Wq(fa,y,z);if(j[P+20>>1]&256){if(!(i[(k[ba>>2]|0)+65>>0]|0))B=(k[ba+4>>2]|0)+(((k[ba+32>>2]|0)+-1|0)*20|0)|0;else B=29120;k[B+12>>2]=k[d+(sa*80|0)+772>>2];i[B+3>>0]=1}if(Zu(y)|0)Bh(ba,76,z,J,0)|0;do if(!F){B=H+c|0;if((Gu(y,i[B>>0]|0)|0)<<24>>24==65){i[B>>0]=65;z=65}else z=i[B>>0]|0;if(!(_u(y,z)|0))break;i[B>>0]=65}while(0);B=c+1|0}else{if(!(N<<24>>24)){B=c;break}Bh(ba,28,0,I+c|0,0)|0;B=c+1|0;C=0;E=1}while(0);$u(fa,I,B-(N&255)|0,H);Ch(ba,Bh(ba,l[33544+(E<<2|_|C<<1)>>0]|0,U,J,I)|0,B,-14);do if(G){y=k[(k[M>>2]|0)+16>>2]|0;x=I+c|0;it(fa,x,1);Wq(fa,y,x);if(j[M+20>>1]&256){if(!(i[(k[ba>>2]|0)+65>>0]|0))z=(k[ba+4>>2]|0)+(((k[ba+32>>2]|0)+-1|0)*20|0)|0;else z=29120;k[z+12>>2]=k[d+(sa*80|0)+772>>2];i[z+3>>0]=1}if(Zu(y)|0)Bh(ba,76,x,J,0)|0;do if((Gu(y,i[Ja>>0]|0)|0)<<24>>24!=65){if(_u(y,i[Ja>>0]|0)|0)break;$u(fa,x,1,Ja)}while(0);c=c+1|0}else{if(!(D<<24>>24))break;Bh(ba,28,0,I+c|0,0)|0;A=0;c=c+1|0}while(0);rg(da,H);k[d+(sa*80|0)+788>>2]=k[ba+32>>2];if(c)Ch(ba,Bh(ba,l[33552+(A|_<<1)>>0]|0,U,J,I)|0,c,-14);Wu(p,P);Wu(p,M);do if(!v){c=k[S+12>>2]|0;if(!(i[c+44>>0]&32)){$=fa+72|0;aa=(k[$>>2]|0)+1|0;k[$>>2]=aa;Bh(ba,112,U,aa,0)|0;Xu(fa,g,-1,aa);Bh(ba,66,g,aa,0)|0;break}if((g|0)==(U|0))break;c=k[c+8>>2]|0;A:do if(!c)A=0;else while(1){if((i[c+51>>0]&3)==2){A=c;break A}c=k[c+20>>2]|0;if(!c){A=0;break}}while(0);E=A+46|0;t=j[E>>1]|0;c=t&65535;y=fa+60|0;x=k[y>>2]|0;w=fa+56|0;q=k[w>>2]|0;if((q|0)<(c|0)){aa=fa+72|0;x=k[aa>>2]|0;k[aa>>2]=x+c;x=x+1|0}else{k[y>>2]=x+c;k[w>>2]=q-c}if(t<<16>>16){q=A+4|0;t=S+48|0;w=S+4|0;B=0;do{A=j[(k[q>>2]|0)+(B<<1)>>1]|0;c=j[t>>1]|0;B:do if(!(c<<16>>16))c=-1;else{z=k[w>>2]|0;y=c&65535;c=0;while(1){if((j[z+(c<<1)>>1]|0)==A<<16>>16)break B;c=c+1|0;if((c|0)>=(y|0)){c=-1;break}}}while(0);Bh(ba,47,U,c<<16>>16,B+x|0)|0;B=B+1|0;c=m[E>>1]|0}while((B|0)<(c|0))}Ch(ba,Bh(ba,68,g,ca,x)|0,c,-14)}while(0);x=k[T>>2]|0;do if(!(x&4096)){w=d+(sa*80|0)+781|0;if(!_){i[w>>0]=9;break}else{i[w>>0]=8;break}}else i[d+(sa*80|0)+781>>0]=-100;while(0);k[d+(sa*80|0)+784>>2]=U;i[d+(sa*80|0)+782>>0]=x>>>16&1;if(x&15){ua=459;break}i[d+(sa*80|0)+783>>0]=1;ua=459;break}if(!(C&8192))if(!(A&8)){i[d+(sa*80|0)+781>>0]=i[33560+_>>0]|0;k[d+(sa*80|0)+784>>2]=g;ua=(Bh(ba,l[33568+_>>0]|0,g,F,0)|0)+1|0;k[d+(sa*80|0)+788>>2]=ua;i[d+(sa*80|0)+783>>0]=1;ua=459;break}else{i[d+(sa*80|0)+781>>0]=-100;ua=459;break}F=fa+68|0;Z=k[F>>2]|0;k[F>>2]=Z+1;X=fa+72|0;Y=(k[X>>2]|0)+1|0;k[X>>2]=Y;_=Cs(ba)|0;W=k[E+(G*72|0)+24>>2]|0;e=k[k[J+48>>2]>>2]|0;P=k[e+12>>2]|0;i[d+(sa*80|0)+781>>0]=18;k[d+(sa*80|0)+784>>2]=Y;A=i[ya>>0]|0;do if((A&255)>1){E=(A&255)-sa|0;C=E+-1|0;B=rh(da,(C*72|0)+80|0,0)|0;if(!B)break z;A=E&255;k[B+4>>2]=A;k[B>>2]=A;A=B+8|0;G=A+0|0;z=N+0|0;c=G+72|0;do{k[G>>2]=k[z>>2];G=G+4|0;z=z+4|0}while((G|0)<(c|0));D=k[za>>2]|0;if((E|0)<2){V=B;break}else E=1;while(1){G=A+(E*72|0)+0|0;z=D+((l[d+((E+sa|0)*80|0)+780>>0]|0)*72|0)+8|0;c=G+72|0;do{k[G>>2]=k[z>>2];G=G+4|0;z=z+4|0}while((G|0)<(c|0));if((E|0)<(C|0))E=E+1|0;else{V=B;break}}}else V=k[za>>2]|0;while(0);if(!(j[Ba>>1]&8)){if(!(i[W+44>>0]&32)){A=(k[X>>2]|0)+1|0;k[X>>2]=A;Bh(ba,28,0,A,0)|0}else{A=k[W+8>>2]|0;C:do if(!A)A=0;else while(1){if((i[A+51>>0]&3)==2)break C;A=k[A+20>>2]|0;if(!A){A=0;break}}while(0);U=k[F>>2]|0;k[F>>2]=U+1;Bh(ba,57,U,m[A+46>>1]|0,0)|0;T=k[K>>2]|0;Ch(T,-1,ms(fa,A)|0,-6);A=U}T=(k[X>>2]|0)+1|0;k[X>>2]=T}else{T=0;A=0}U=Bh(ba,25,0,Y,0)|0;z=k[va>>2]|0;do if((z|0)>1){B=0;E=0;do{D=k[wa>>2]|0;S=D+(B*48|0)|0;C=k[S>>2]|0;do if((S|0)!=(e|0)){if(k[C+4>>2]&1)break;if(j[D+(B*48|0)+20>>1]&2)break;if(!(j[D+(B*48|0)+18>>1]&4095))break;E=xs(da,E,Rr(da,C,0,0)|0)|0;z=k[va>>2]|0}while(0);B=B+1|0}while((B|0)<(z|0));z=E;if(!z){S=0;break}S=cr(fa,72,0,z,0)|0}else S=0;while(0);R=P+12|0;do if((k[R>>2]|0)>0){u=P+20|0;t=(S|0)==0;q=W+44|0;w=ba+32|0;x=ba+4|0;z=ba+24|0;B=W+8|0;C=fa+60|0;D=fa+56|0;E=S+12|0;Q=0;y=0;c=0;v=240;while(1){G=k[u>>2]|0;if((k[G+(Q*48|0)+8>>2]|0)!=(g|0)?(j[G+(Q*48|0)+18>>1]&512)==0:0)G=v;else ua=407;do if((ua|0)==407){ua=0;G=k[G+(Q*48|0)>>2]|0;do if(!t){if(k[G+4>>2]&1)break;k[E>>2]=G;G=S}while(0);H=_s(fa,V,G,0,0,v,Z)|0;if(!H){G=v;break}Uu(fa,V,H+736|0,sa,l[$>>0]|0,0);do if(!(j[Ba>>1]&8)){K=(Q|0)==((k[R>>2]|0)+-1|0)?-1:Q;do if(!(i[q>>0]&32)){F=Bh(ba,130,A,0,ht(fa,W,-1,g,T,0)|0)|0;Ch(ba,F,K,-14)}else{G=k[B>>2]|0;D:do if(!G)G=0;else while(1){if((i[G+51>>0]&3)==2)break D;G=k[G+20>>2]|0;if(!G){G=0;break}}while(0);M=j[G+46>>1]|0;I=M&65535;P=k[C>>2]|0;N=k[D>>2]|0;if((N|0)<(I|0)){J=k[X>>2]|0;k[X>>2]=J+I;J=J+1|0}else{k[C>>2]=P+I;k[D>>2]=N-I;J=P}if(M<<16>>16){N=G+4|0;P=0;do{ht(fa,W,j[(k[N>>2]|0)+(P<<1)>>1]|0,g,P+J|0,0)|0;P=P+1|0}while((P|0)<(I|0))}P=(K|0)!=0;if(P){F=Bh(ba,69,A,0,J)|0;Ch(ba,F,I,-14);if((K|0)>-1)ua=426}else{F=0;ua=426}do if((ua|0)==426){ua=0;Bh(ba,49,J,I,T)|0;Bh(ba,110,A,T,0)|0;if(!P)break;K=k[x>>2]|0;if(!K)break;i[K+(((k[w>>2]|0)+-1|0)*20|0)+3>>0]=16}while(0);it(fa,J,I);if((k[D>>2]|0)>=(I|0))break;k[D>>2]=I;k[C>>2]=J}while(0);Bh(ba,17,Y,_,0)|0;if(!F)break;G=k[w>>2]|0;if(G>>>0>F>>>0)k[(k[x>>2]|0)+(F*20|0)+8>>2]=G;k[(k[z>>2]|0)+88>>2]=G+-1}else Bh(ba,17,Y,_,0)|0;while(0);c=(i[H+39>>0]|0)==0?c:1;G=k[H+800>>2]|0;do if(!(k[G+36>>2]&512)){y=0;G=v}else{if((Q|0)!=0?(k[G+28>>2]|0)!=(y|0):0){y=0;G=v;break}y=k[G+28>>2]|0;if((i[q>>0]&32)!=0?(i[y+51>>0]&3)==2:0){y=0;G=v;break}G=(v&65535|4096)&65535}while(0);at(H)}while(0);Q=Q+1|0;if((Q|0)>=(k[R>>2]|0))break;else v=G}k[d+(sa*80|0)+792>>2]=y;if(!y){q=c;break}k[d+(sa*80|0)+744>>2]=Z;q=c}else{k[d+(sa*80|0)+792>>2]=0;q=0}while(0);if(S){k[S+12>>2]=0;Lk(da,S)}w=ba+32|0;c=k[w>>2]|0;if(c>>>0>U>>>0)k[(k[ba+4>>2]|0)+(U*20|0)+4>>2]=c;Bh(ba,16,0,k[aa>>2]|0,0)|0;y=k[ba+24>>2]|0;x=~_;do if((_|0)<0){c=k[y+112>>2]|0;if(!c)break;k[c+(x<<2)>>2]=k[w>>2]}while(0);k[y+88>>2]=(k[w>>2]|0)+-1;if((l[ya>>0]|0)>1)rg(da,V);if(q){ua=459;break}Wu(p,e);ua=459}else{ua=k[E+(G*72|0)+36>>2]|0;Bh(ba,20,ua,0,k[E+(G*72|0)+32>>2]|0)|0;ua=Bh(ba,22,ua,F,0)|0;k[d+(sa*80|0)+788>>2]=ua;i[d+(sa*80|0)+781>>0]=16;ua=459}while(0);if((ua|0)==459){ua=0;c=k[va>>2]|0;do if((c|0)>0){u=d+(sa*80|0)+772|0;v=ba+32|0;z=ba+4|0;A=ba+24|0;t=k[wa>>2]|0;while(1){q=t+20|0;y=j[q>>1]|0;do if(!(y&6)){aa=t+40|0;$=ea;if(!((k[$>>2]&k[aa>>2]|0)==0?(k[$+4>>2]&k[aa+4>>2]|0)==0:0)){i[ia>>0]=1;break}x=k[t>>2]|0;if((k[p>>2]|0)!=0?(k[x+4>>2]&1|0)==0:0)break;do if(!(y&512))lt(fa,x,ca,16);else{w=Bh(ba,46,k[u>>2]|0,0,0)|0;lt(fa,x,ca,16);if(!w)break;y=k[v>>2]|0;if(y>>>0>w>>>0)k[(k[z>>2]|0)+(w*20|0)+8>>2]=y;k[(k[A>>2]|0)+88>>2]=y+-1}while(0);j[q>>1]=m[q>>1]|4}while(0);c=c+-1|0;if((c|0)<=0)break;else t=t+48|0}u=k[va>>2]|0;if((u|0)<=0){ua=475;break}w=k[wa>>2]|0;while(1){do if(!(j[w+20>>1]&6)){if((j[w+18>>1]|0)!=1026)break;if((k[w+8>>2]|0)!=(g|0))break;if(k[p>>2]|0)break;y=k[w>>2]|0;c=Ku(Fa,g,k[w+12>>2]|0,o,n,3,0)|0;if(!c)break;if(j[c+20>>1]&4)break;x=rh(da,48,0)|0;if(!x)break;G=x+0|0;z=(k[c>>2]|0)+0|0;c=G+48|0;do{k[G>>2]=k[z>>2];G=G+4|0;z=z+4|0}while((G|0)<(c|0));k[x+12>>2]=k[y+12>>2];lt(fa,x,ca,16);rg(da,x)}while(0);u=u+-1|0;if((u|0)<=0)break;else w=w+48|0}}else ua=475;while(0);if((ua|0)==475)ua=0;p=k[p>>2]|0;do if(p){k[d+(sa*80|0)+764>>2]=k[ba+32>>2];Bh(ba,25,1,p,0)|0;ft(fa);p=k[va>>2]|0;if((p|0)<=0)break;u=0;t=k[wa>>2]|0;while(1){o=t+20|0;do if(!(j[o>>1]&6)){ba=t+40|0;aa=ea;if(!((k[aa>>2]&k[ba>>2]|0)==0?(k[aa+4>>2]&k[ba+4>>2]|0)==0:0))break;lt(fa,k[t>>2]|0,ca,16);j[o>>1]=m[o>>1]|4;p=k[va>>2]|0}while(0);u=u+1|0;if((u|0)>=(p|0))break;else t=t+48|0}}while(0);n=ea;o=k[n>>2]|0;n=k[n+4>>2]|0}k[Aa>>2]=k[ta+(sa*80|0)+24>>2];sa=sa+1|0;if((sa|0)>=(h|0))break a}}}while(0);if(Ga)d=0;else{k[Ca>>2]=k[Da>>2];av(Ia,d);d=0}}else{k[Ka>>2]=64;yh(a,33504,Ka);d=0}while(0);r=Ma;return d|0}function $s(a){a=a|0;var b=0,c=0,d=0,e=0;e=a<<16>>16;do if(a<<16>>16>=10){a=(e|0)%10|0;b=((a|0)<0)<<31>>31;if(a>>>0>4){c=ow(a|0,b|0,-2,-1)|0;d=L}else{c=((a|0)!=0)<<31>>31;c=ow(c|0,((c|0)<0)<<31>>31|0,a|0,b|0)|0;d=L}b=((e|0)/10|0)<<16;a=b>>16;if((b|0)<=131072){b=ow(c|0,d|0,8,0)|0;a=rw(b|0,L|0,3-a|0)|0;b=L;break}if((b|0)>3932160){b=2147483647;a=-1}else{b=ow(c|0,d|0,8,0)|0;a=nw(b|0,L|0,a+-3|0)|0;b=L}}else{b=0;a=1}while(0);L=b;return a|0}function at(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=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;C=k[a>>2]|0;D=k[C+8>>2]|0;F=k[a+4>>2]|0;G=k[C>>2]|0;ft(C);H=a+41|0;c=i[H>>0]|0;if(!(c<<24>>24))b=D+24|0;else{b=D+24|0;p=D+32|0;r=D+4|0;o=c&255;do{o=o+-1|0;e=k[a+(o*80|0)+800>>2]|0;A=k[a+(o*80|0)+760>>2]|0;c=k[b>>2]|0;d=~A;if((A|0)<0?(s=k[c+112>>2]|0,(s|0)!=0):0)k[s+(d<<2)>>2]=k[p>>2];k[c+88>>2]=(k[p>>2]|0)+-1;B=a+(o*80|0)+781|0;d=i[B>>0]|0;if(d<<24>>24!=-100?(Bh(D,d&255,k[a+(o*80|0)+784>>2]|0,k[a+(o*80|0)+788>>2]|0,l[a+(o*80|0)+782>>0]|0)|0,u=k[r>>2]|0,(u|0)!=0):0)i[u+(((k[p>>2]|0)+-1|0)*20|0)+3>>0]=i[a+(o*80|0)+783>>0]|0;t=e+36|0;if((k[t>>2]&2048|0)!=0?(v=a+(o*80|0)+792|0,w=k[v>>2]|0,(w|0)>0):0){A=k[a+(o*80|0)+752>>2]|0;g=k[b>>2]|0;d=~A;if((A|0)<0?(x=k[g+112>>2]|0,(x|0)!=0):0){k[x+(d<<2)>>2]=k[p>>2];h=k[v>>2]|0;f=k[p>>2]|0;k[g+88>>2]=f+-1;c=a+(o*80|0)+796|0;if((h|0)>0)I=16}else{f=k[p>>2]|0;k[g+88>>2]=f+-1;c=a+(o*80|0)+796|0;h=w;I=16}if((I|0)==16){I=0;d=g;n=h;m=(k[c>>2]|0)+((h+-1|0)*12|0)|0;while(1){h=m+4|0;g=k[h>>2]|0;e=g+1|0;if(f>>>0>e>>>0)k[(k[r>>2]|0)+(e*20|0)+8>>2]=f;k[d+88>>2]=f+-1;Bh(D,l[m+8>>0]|0,k[m>>2]|0,g,0)|0;h=(k[h>>2]|0)+-1|0;f=k[p>>2]|0;if(f>>>0>h>>>0)k[(k[r>>2]|0)+(h*20|0)+8>>2]=f;d=k[b>>2]|0;k[d+88>>2]=f+-1;n=n+-1|0;if((n|0)<=0)break;else m=m+-12|0}}rg(G,k[c>>2]|0)}A=k[a+(o*80|0)+748>>2]|0;e=k[b>>2]|0;d=~A;if((A|0)<0?(q=k[e+112>>2]|0,(q|0)!=0):0)k[q+(d<<2)>>2]=k[p>>2];d=k[p>>2]|0;k[e+88>>2]=d+-1;e=a+(o*80|0)+756|0;c=k[e>>2]|0;if(c){Bh(D,16,0,c,0)|0;e=k[e>>2]|0;d=k[p>>2]|0;if(d>>>0>e>>>0)k[(k[r>>2]|0)+(e*20|0)+8>>2]=d;f=d+-1|0;c=(k[b>>2]|0)+88|0;k[c>>2]=f;e=e+-2|0;if(d>>>0>e>>>0)k[(k[r>>2]|0)+(e*20|0)+8>>2]=d;k[c>>2]=f}e=k[a+(o*80|0)+776>>2]|0;if(e){if(!(i[(k[D>>2]|0)+65>>0]|0))d=(k[r>>2]|0)+((((e|0)<1?d:e)+-1|0)*20|0)|0;else d=29120;Bh(D,(k[d+4>>2]|0)==0?141:140,k[a+(o*80|0)+772>>2]|0,e,0)|0}c=k[a+(o*80|0)+736>>2]|0;if(c){f=Bh(D,137,c,0,0)|0;c=k[t>>2]|0;if(!(c&64)){Bh(D,104,k[F+(o*72|0)+48>>2]|0,0,0)|0;c=k[t>>2]|0}if(c&512)Bh(D,104,k[a+(o*80|0)+744>>2]|0,0,0)|0;c=k[a+(o*80|0)+764>>2]|0;if((i[B>>0]|0)==18)Bh(D,17,k[a+(o*80|0)+784>>2]|0,c,0)|0;else Bh(D,16,0,c,0)|0;c=k[p>>2]|0;if(c>>>0>f>>>0)k[(k[r>>2]|0)+(f*20|0)+8>>2]=c;k[(k[b>>2]|0)+88>>2]=c+-1}}while((o|0)>0)}A=k[a+52>>2]|0;c=k[b>>2]|0;b=~A;if((A|0)<0?(y=k[c+112>>2]|0,(y|0)!=0):0)k[y+(b<<2)>>2]=k[D+32>>2];B=D+32|0;k[c+88>>2]=(k[B>>2]|0)+-1;if(i[H>>0]|0){u=a+34|0;v=a+38|0;w=a+64|0;x=G+65|0;y=D+4|0;z=0;A=a+736|0;while(1){e=l[A+44>>0]|0;f=k[F+(e*72|0)+24>>2]|0;d=k[A+64>>2]|0;if((i[F+(e*72|0)+45>>0]&4)!=0?(i[x>>0]|0)==0:0){g=k[B>>2]|0;d=k[A+32>>2]|0;if(!(i[(k[D>>2]|0)+65>>0]|0))c=(k[y>>2]|0)+(((d|0)<0?g+-1|0:d)*20|0)|0;else c=29120;if((d|0)<(g|0)){h=k[A+4>>2]|0;f=F+(e*72|0)+40|0;e=c;while(1){c=e+4|0;do if((k[c>>2]|0)==(h|0)){b=i[e>>0]|0;if(b<<24>>24==47){i[e>>0]=33;s=e+8|0;k[c>>2]=(k[f>>2]|0)+(k[s>>2]|0);t=e+12|0;k[s>>2]=k[t>>2];k[t>>2]=0;break}else if(b<<24>>24==103){i[e>>0]=28;k[c>>2]=0;k[e+12>>2]=0;break}else break}while(0);d=d+1|0;if((d|0)==(g|0))break;else e=e+20|0}}}else I=64;do if((I|0)==64){I=0;t=f+44|0;if(((i[t>>0]&2)==0?(k[f+12>>2]|0)==0:0)?(j[u>>1]&16)==0:0){c=k[d+36>>2]|0;if((i[v>>0]|0)==0&(c&64|0)==0)Bh(D,61,k[F+(e*72|0)+48>>2]|0,0,0)|0;if((c&17152|0)==512?(E=k[A+8>>2]|0,(E|0)!=(k[w>>2]|0)):0)Bh(D,61,E,0,0)|0}c=k[d+36>>2]|0;if(!(c&576)){if(!(c&8192))break;c=A+56|0}else c=d+28|0;d=k[c>>2]|0;if((d|0)!=0?(i[x>>0]|0)==0:0){r=k[B>>2]|0;h=k[A+32>>2]|0;if(!(i[(k[D>>2]|0)+65>>0]|0))g=(k[y>>2]|0)+(((h|0)<0?r+-1|0:h)*20|0)|0;else g=29120;if((h|0)<(r|0)){s=d+48|0;p=d+4|0;q=A+8|0;o=f+8|0;b=k[A+4>>2]|0;c=g;while(1){d=c+4|0;a:do if((k[d>>2]|0)==(b|0)){g=i[c>>0]|0;if(g<<24>>24==103){k[d>>2]=k[q>>2];i[c>>0]=112;break}else if(g<<24>>24!=47)break;e=c+8|0;g=k[e>>2]|0;if(i[t>>0]&32){f=o;while(1){f=k[f>>2]|0;if((i[f+51>>0]&3)==2)break;else f=f+20|0}g=j[(k[f+4>>2]|0)+(g<<1)>>1]|0}n=g&65535;g=j[s>>1]|0;if(g<<16>>16){f=k[p>>2]|0;m=g&65535;g=0;while(1){if((j[f+(g<<1)>>1]|0)==n<<16>>16)break;g=g+1|0;if((g|0)>=(m|0))break a}if((g&65535)<<16>>16>-1){k[e>>2]=g<<16>>16;k[d>>2]=k[q>>2]}}}while(0);h=h+1|0;if((h|0)==(r|0))break;else c=c+20|0}}}}while(0);z=z+1|0;if((z|0)>=(l[H>>0]|0))break;else A=A+80|0}}k[C+424>>2]=k[a+56>>2];av(G,a);return}function bt(a,b){a=a|0;b=b|0;var c=0,d=0;if((b|0)!=0?(k[b>>2]|0)>0:0){c=0;d=k[b+4>>2]|0;while(1){bv(a,k[d>>2]|0);c=c+1|0;if((c|0)>=(k[b>>2]|0))break;else d=d+20|0}}return}function ct(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0;u=r;r=r+16|0;if((r|0)>=(s|0))ka();p=u;d=k[a+24>>2]|0;q=k[d>>2]|0;g=k[d+4>>2]|0;t=k[d+12>>2]|0;c=l[b>>0]|0;a:do if((c|0)==154|(c|0)==156)if((g|0)!=0?(f=k[g>>2]|0,(f|0)>0):0){n=b+28|0;m=k[n>>2]|0;c=0;d=g+8|0;while(1){if((m|0)==(k[d+40>>2]|0))break;c=c+1|0;if((c|0)>=(f|0)){a=1;break a}else d=d+72|0}h=t+28|0;e=t+32|0;d=k[e>>2]|0;b:do if((d|0)>0){g=b+32|0;a=0;f=k[h>>2]|0;while(1){if((k[f+4>>2]|0)==(m|0)?(k[f+8>>2]|0)==(j[g>>1]|0):0)break b;a=a+1|0;if((a|0)<(d|0))f=f+24|0;else break}}else a=0;while(0);c:do if((a|0)>=(d|0)){d=Mt(k[q>>2]|0,k[h>>2]|0,24,e,p)|0;k[h>>2]=d;a=k[p>>2]|0;if((a|0)>-1){k[d+(a*24|0)>>2]=k[b+44>>2];e=k[n>>2]|0;k[d+(a*24|0)+4>>2]=e;f=j[b+32>>1]|0;k[d+(a*24|0)+8>>2]=f<<16>>16;n=q+72|0;g=(k[n>>2]|0)+1|0;k[n>>2]=g;k[d+(a*24|0)+16>>2]=g;g=d+(a*24|0)+12|0;k[g>>2]=-1;k[d+(a*24|0)+20>>2]=b;d=k[t+24>>2]|0;d:do if((d|0)!=0?(o=k[d>>2]|0,(o|0)>0):0){c=0;d=k[d+4>>2]|0;while(1){n=k[d>>2]|0;if(((i[n>>0]|0)==-102?(k[n+28>>2]|0)==(e|0):0)?(j[n+32>>1]|0)==f<<16>>16:0)break;c=c+1|0;if((c|0)>=(o|0))break d;else d=d+20|0}k[g>>2]=c;if((c|0)>=0)break c}while(0);n=t+12|0;o=k[n>>2]|0;k[n>>2]=o+1;k[g>>2]=o}}while(0);k[b+40>>2]=t;i[b>>0]=-100;j[b+34>>1]=a;a=1}else a=1;else if(((c|0)==155?(j[d+28>>1]&8)==0:0)?(k[a+16>>2]|0)==(l[b+38>>0]|0):0){f=t+40|0;g=t+44|0;c=k[g>>2]|0;e:do if((c|0)>0){a=0;d=k[f>>2]|0;while(1){if(!(Hu(k[d>>2]|0,b,-1)|0))break e;a=a+1|0;if((a|0)<(c|0))d=d+16|0;else break}}else a=0;while(0);do if((a|0)>=(c|0)){e=k[q>>2]|0;h=i[e+62>>0]|0;e=Mt(e,k[f>>2]|0,16,g,p)|0;k[f>>2]=e;a=k[p>>2]|0;if((a|0)>-1){k[e+(a<<4)>>2]=b;f=q+72|0;g=(k[f>>2]|0)+1|0;k[f>>2]=g;k[e+(a<<4)+8>>2]=g;g=k[q>>2]|0;f=k[b+8>>2]|0;if(!f)c=0;else{d=f;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;c=d-f&1073741823}d=k[b+20>>2]|0;if(!d)d=0;else d=k[d>>2]|0;o=Xh(g,f,c,d,h,0)|0;k[e+(a<<4)+4>>2]=o;if(!(k[b+4>>2]&16)){k[e+(a<<4)+12>>2]=-1;break}else{n=q+68|0;o=k[n>>2]|0;k[n>>2]=o+1;k[e+(a<<4)+12>>2]=o;break}}}while(0);j[b+34>>1]=a;k[b+40>>2]=t;a=1}else a=0;while(0);r=u;return a|0}function dt(a,b){a=a|0;b=b|0;return 0}function et(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=r;r=r+16|0;if((r|0)>=(s|0))ka();c=d;if((i[a+450>>0]|0)==2){e=k[a+8>>2]|0;f=k[a>>2]|0;k[c>>2]=b;c=zh(f,35e3,c)|0;Ch(e,Bh(e,157,k[a+464>>2]|0,0,0)|0,c,-1)}r=d;return}function ft(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=a+19|0;g=0;h=a+116|0;while(1){c=h+12|0;d=k[c>>2]|0;if(d){e=h+6|0;if(i[e>>0]|0){f=i[b>>0]|0;if((f&255)<8){i[b>>0]=f+1<<24>>24;k[a+((f&255)<<2)+24>>2]=d}i[e>>0]=0}k[c>>2]=0}g=g+1|0;if((g|0)==10)break;else h=h+20|0}return}function gt(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+32|0;if((r|0)>=(s|0))ka();x=z;e=d&255;o=34-(e&1)|0;t=k[b>>2]|0;if(!(i[a+23>>0]|0))d=e&253;if((t|0)>0){f=(d&2)==0;g=a+8|0;h=(o|0)==33;j=x+20|0;l=x+4|0;m=x+24|0;n=0;b=k[b+4>>2]|0;while(1){e=k[b>>2]|0;if(!f?(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[j>>0]=1,k[x>>2]=78,k[l>>2]=79,k[m>>2]=0,ws(x,e)|0,(i[j>>0]|0)!=0):0)Lt(a,e,n+c|0,0);else y=8;do if((y|0)==8?(y=0,p=n+c|0,q=ns(a,e,p)|0,(q|0)!=(p|0)):0){d=k[g>>2]|0;if(h){if(!(i[(k[d>>2]|0)+65>>0]|0))e=(k[d+4>>2]|0)+(((k[d+32>>2]|0)+-1|0)*20|0)|0;else e=29120;if(((i[e>>0]|0)==33?(u=e+12|0,v=k[u>>2]|0,((k[e+4>>2]|0)+1+v|0)==(q|0)):0)?(w=v+1|0,(w+(k[e+8>>2]|0)|0)==(p|0)):0){k[u>>2]=w;break}}Bh(d,o,q,p,0)|0}while(0);n=n+1|0;if((n|0)==(t|0))break;else b=b+20|0}}r=z;return}function ht(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;n=k[a+8>>2]|0;g=a+116|0;m=0;h=g;while(1){l=k[h+12>>2]|0;if(((l|0)>0?(k[h>>2]|0)==(d|0):0)?(j[h+4>>1]|0)==(c|0):0){e=l;m=5;break}m=m+1|0;if((m|0)>=10){m=10;break}else h=h+20|0}do if((m|0)==5){n=a+104|0;f=k[n>>2]|0;k[n>>2]=f+1;k[h+16>>2]=f;h=0;while(1){if((k[g+12>>2]|0)==(e|0))i[g+6>>0]=0;h=h+1|0;if((h|0)==10)break;else g=g+20|0}}else if((m|0)==10){st(n,b,d,c,e);if(!(f<<24>>24)){Xu(a,d,c,e);break}g=k[n+4>>2]|0;if(g)i[g+(((k[n+32>>2]|0)+-1|0)*20|0)+3>>0]=f}while(0);return e|0}function it(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0;c=b+-1+c|0;e=a+19|0;j=0;l=a+116|0;while(1){f=l+12|0;g=k[f>>2]|0;if(!((g|0)<(b|0)|(g|0)>(c|0))){h=l+6|0;if(i[h>>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[h>>0]=0}k[f>>2]=0}j=j+1|0;if((j|0)==10)break;else l=l+20|0}return}function jt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=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=k[a+8>>2]|0;i[b>>0]=1;s=b+44|0;if((k[s>>2]|0)>0){t=A+4|0;v=a+56|0;w=a+60|0;o=A+24|0;p=A+32|0;q=b+36|0;r=a+72|0;x=0;y=k[b+40>>2]|0;c=0;while(1){h=k[(k[y>>2]|0)+20>>2]|0;if(!h){d=0;f=0}else{d=k[h>>2]|0;f=k[w>>2]|0;e=k[v>>2]|0;if((e|0)<(d|0)){f=k[r>>2]|0;k[r>>2]=f+d;f=f+1|0}else{k[w>>2]=f+d;k[v>>2]=e-d}gt(a,h,f,1)}e=y+12|0;if((k[e>>2]|0)>-1){n=Cs(A)|0;Eu(a,k[e>>2]|0,n,1,f)}else n=0;m=y+4|0;e=k[m>>2]|0;if(j[e+2>>1]&32){if((d|0)>0){l=0;h=k[h+4>>2]|0;while(1){e=hu(a,k[h>>2]|0)|0;l=l+1|0;g=(e|0)!=0;if(!((l|0)<(d|0)&(g^1)))break;else h=h+20|0}if(!g)z=15}else z=15;if((z|0)==15){z=0;e=k[(k[a>>2]|0)+8>>2]|0}if(!c)if(!(k[q>>2]|0))c=0;else{c=(k[r>>2]|0)+1|0;k[r>>2]=c}Ch(A,Bh(A,36,c,0,0)|0,e,-4);e=k[m>>2]|0}Ch(A,Bh(A,10,0,f,k[y+8>>2]|0)|0,e,-5);e=k[t>>2]|0;if(e)i[e+(((k[p>>2]|0)+-1|0)*20|0)+3>>0]=d;it(a,f,d);it(a,f,d);if((k[v>>2]|0)<(d|0)){k[v>>2]=d;k[w>>2]=f}if(n){f=k[o>>2]|0;e=~n;if((n|0)<0?(u=k[f+112>>2]|0,(u|0)!=0):0)k[u+(e<<2)>>2]=k[p>>2];k[f+88>>2]=(k[p>>2]|0)+-1;ft(a)}x=x+1|0;if((x|0)>=(k[s>>2]|0))break;else y=y+16|0}if(c)f=Bh(A,45,c,0,0)|0;else f=0}else f=0;ft(a);c=b+36|0;if((k[c>>2]|0)>0){d=0;e=k[b+28>>2]|0;while(1){Wq(a,k[e+20>>2]|0,k[e+16>>2]|0);d=d+1|0;if((d|0)>=(k[c>>2]|0))break;else e=e+24|0}}i[b>>0]=0;ft(a);if(f){c=k[A+32>>2]|0;if(c>>>0>f>>>0)k[(k[A+4>>2]|0)+(f*20|0)+8>>2]=c;k[(k[A+24>>2]|0)+88>>2]=c+-1}return}function kt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=k[a+8>>2]|0;d=b+44|0;if((k[d>>2]|0)>0){e=0;b=k[b+40>>2]|0;while(1){a=k[(k[b>>2]|0)+20>>2]|0;if(!a)a=0;else a=k[a>>2]|0;f=k[b+4>>2]|0;Ch(c,Bh(c,142,k[b+8>>2]|0,a,0)|0,f,-5);e=e+1|0;if((e|0)>=(k[d>>2]|0))break;else b=b+16|0}}return}function lt(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;n=r;r=r+16|0;if((r|0)>=(s|0))ka();j=n+4|0;m=n;h=k[a+8>>2]|0;k[j>>2]=0;k[m>>2]=0;if(!((h|0)==0|(b|0)==0)){o=l[b>>0]|0;e=o^1;a:do switch(o|0){case 19:{cv(a,k[b+12>>2]|0,c,d);break}case 77:case 76:{Bh(h,e,eu(a,k[b+12>>2]|0,j)|0,c,0)|0;break}case 148:case 73:{d=b+12|0;g=eu(a,k[d>>2]|0,j)|0;f=b+16|0;h=eu(a,k[f>>2]|0,m)|0;fu(a,k[d>>2]|0,k[f>>2]|0,(i[b>>0]|0)==73?78:79,g,h,c,128);break}case 79:case 78:case 83:case 80:case 81:case 82:{o=b+12|0;g=eu(a,k[o>>2]|0,j)|0;f=b+16|0;h=eu(a,k[f>>2]|0,m)|0;fu(a,k[o>>2]|0,k[f>>2]|0,e,g,h,c,d);break}case 75:{if(d){ku(a,b,c,c);break a}f=Cs(h)|0;ku(a,b,c,f);e=k[h+24>>2]|0;c=~f;if((f|0)<0?(g=k[e+112>>2]|0,(g|0)!=0):0)k[g+(c<<2)>>2]=k[h+32>>2];k[e+88>>2]=(k[h+32>>2]|0)+-1;break}case 71:{g=Cs(h)|0;cv(a,k[b+12>>2]|0,g,d^16);e=a+100|0;k[e>>2]=(k[e>>2]|0)+1;lt(a,k[b+16>>2]|0,c,d);c=k[h+24>>2]|0;e=~g;if((g|0)<0?(f=k[c+112>>2]|0,(f|0)!=0):0)k[f+(e<<2)>>2]=k[h+32>>2];k[c+88>>2]=(k[h+32>>2]|0)+-1;gu(a);break}case 72:{lt(a,k[b+12>>2]|0,c,d);h=a+100|0;k[h>>2]=(k[h>>2]|0)+1;lt(a,k[b+16>>2]|0,c,d);gu(a);break}case 74:{dv(a,b,c,0,d);break}default:{if(ru(b)|0){Bh(h,16,0,c,0)|0;break a}if(!(ev(b)|0))Bh(h,46,eu(a,b,j)|0,c,(d|0)!=0&1)|0}}while(0);ds(a,k[j>>2]|0);ds(a,k[m>>2]|0)}r=n;return}function mt(a,b){a=a|0;b=b|0;var c=0,d=0,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+8>>2]|0;f=b+44|0;if((k[f>>2]|0)!=(0-(k[b+32>>2]|0)|0)?(Bh(e,28,0,k[b+16>>2]|0,k[b+20>>2]|0)|0,(k[f>>2]|0)>0):0){g=0;d=k[b+40>>2]|0;while(1){b=d+12|0;do if((k[b>>2]|0)>-1){c=k[(k[d>>2]|0)+20>>2]|0;if((c|0)!=0?(k[c>>2]|0)==1:0){c=Zs(a,c,0,0)|0;Ch(e,Bh(e,57,k[b>>2]|0,0,0)|0,c,-6);break}yh(a,34944,h);k[b>>2]=-1}while(0);g=g+1|0;if((g|0)>=(k[f>>2]|0))break;else d=d+16|0}}r=i;return}function nt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if((b|0)>0){d=Bh(a,138,b,0,-1)|0;Bh(a,16,0,c,0)|0;b=k[a+32>>2]|0;if(b>>>0>d>>>0)k[(k[a+4>>2]|0)+(d*20|0)+8>>2]=b;k[(k[a+24>>2]|0)+88>>2]=b+-1}return}function ot(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;if((k[(k[a>>2]|0)+24>>2]&8388608|0)!=0?(f=Fs(a,b)|0,(f|0)!=0):0){a=0;b=f;do{if((l[b+8>>0]|0|0)==(c|0)?(fv(k[b+16>>2]|0,d)|0)!=0:0)a=l[b+9>>0]|0|a;b=k[b+32>>2]|0}while((b|0)!=0)}else{a=0;f=0}if(e)k[e>>2]=a;return ((a|0)!=0?f:0)|0}function pt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;f=i[b+44>>0]|0;if(f&16){e=k[a>>2]|0;d=b+60|0;while(1){d=k[d>>2]|0;if((k[d>>2]|0)==(e|0))break;else d=d+24|0}if(!(k[(k[k[d+4>>2]>>2]|0)+52>>2]|0))e=8;else e=5}else e=5;do if((e|0)==5){if(((f&1)!=0?(k[(k[a>>2]|0)+24>>2]&2048|0)==0:0)?(i[a+18>>0]|0)==0:0){e=8;break}if((c|0)==0?(k[b+12>>2]|0)!=0:0){k[g>>2]=k[b>>2];yh(a,34456,g);d=1}else d=0}while(0);if((e|0)==8){k[g>>2]=k[b>>2];yh(a,34424,g);d=1}r=h;return d|0}function qt(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+32|0;if((r|0)>=(s|0))ka();m=n;l=k[a>>2]|0;f=k[b+68>>2]|0;a:do if(f){e=k[l+20>>2]|0;if((e|0)>0){h=k[l+16>>2]|0;j=0;while(1){g=j+1|0;if((k[h+(j<<4)+12>>2]|0)==(f|0)){g=j;break a}if((g|0)<(e|0))j=g;else break}}else g=0}else g=-1e6;while(0);e=Rr(l,c,0,0)|0;f=ur(l,0,0,0)|0;if(f){c=ph(l,k[b>>2]|0)|0;k[f+16>>2]=c;c=ph(l,k[(k[l+16>>2]|0)+(g<<4)>>2]|0)|0;k[f+12>>2]=c}c=pr(a,0,f,e,0,0,0,0,0,0)|0;i[m>>0]=12;k[m+4>>2]=d;i[m+1>>0]=0;k[m+8>>2]=0;k[m+12>>2]=0;nr(a,c,m)|0;Rk(l,c,1);r=n;return}function rt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,l=0,m=0,n=0;n=r;r=r+16|0;if((r|0)>=(s|0))ka();m=n+4|0;f=n;a:do if(k[(k[a>>2]|0)+24>>2]&524288){if(!c){d=gn((k[b+68>>2]|0)+56|0,k[b>>2]|0,f)|0;if((d|0)!=0?(k[d+8>>2]|0)!=0:0)e=1;else e=(k[b+16>>2]|0)!=0;e=e&1;break}a=k[b+16>>2]|0;if(a){i=b+36|0;l=(d|0)!=0;do{f=k[a+20>>2]|0;if((f|0)>0){h=0;do{g=k[a+(h<<3)+36>>2]|0;if((k[c+(g<<2)>>2]|0)>-1){e=1;break a}h=h+1|0;if((g|0)==(j[i>>1]|0)&l){e=1;break a}}while((h|0)<(f|0))}a=k[a+4>>2]|0}while((a|0)!=0)}f=gn((k[b+68>>2]|0)+56|0,k[b>>2]|0,m)|0;if((f|0)!=0?(e=k[f+8>>2]|0,(e|0)!=0):0)while(1){if(gv(b,e,c,d)|0){e=1;break a}e=k[e+12>>2]|0;if(!e){e=0;break}}else e=0}else e=0;while(0);r=n;return e|0}function st(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,m=0,n=0;if((d|0)>=0?(j[b+36>>1]|0)!=(d|0):0){f=l[b+44>>0]|0;n=(f&16|0)!=0?150:47;if(!(f&32))f=d;else{f=k[b+8>>2]|0;a:do if(!f)f=0;else while(1){if((i[f+51>>0]&3)==2)break a;f=k[f+20>>2]|0;if(!f){f=0;break}}while(0);m=d&65535;g=j[f+48>>1]|0;b:do if(!(g<<16>>16))f=-1;else{h=k[f+4>>2]|0;g=g&65535;f=0;while(1){if((j[h+(f<<1)>>1]|0)==m<<16>>16)break b;f=f+1|0;if((f|0)>=(g|0)){f=-1;break}}}while(0);f=f<<16>>16}Bh(a,n,c,f,e)|0}else Bh(a,103,c,e,0)|0;if((d|0)>-1)St(a,b,d,e);return}function tt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=b+16|0;c=k[f>>2]|0;do if(!c){d=k[b+12>>2]|0;c=k[a>>2]|0;e=b+48|0;a=vg((m[e>>1]|0)+1|0,0)|0;k[f>>2]=a;if(!a){i[c+65>>0]=1;c=0;break}if(!(j[e>>1]|0))c=0;else{b=b+4|0;d=d+4|0;c=0;do{a=j[(k[b>>2]|0)+(c<<1)>>1]|0;if(a<<16>>16<0)a=68;else a=i[(k[d>>2]|0)+((a<<16>>16)*24|0)+21>>0]|0;i[(k[f>>2]|0)+c>>0]=a;c=c+1|0}while((c|0)<(m[e>>1]|0));a=k[f>>2]|0}i[a+c>>0]=0;c=k[f>>2]|0}while(0);return c|0}function ut(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,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=b+44|0;if(!(i[r>>0]&16)){j=k[a>>2]|0;m=k[b+68>>2]|0;a:do if(m){n=k[j+20>>2]|0;if((n|0)>0){j=k[j+16>>2]|0;l=0;while(1){h=l+1|0;if((k[j+(l<<4)+12>>2]|0)==(m|0))break a;if((h|0)<(n|0))l=h;else{l=h;break}}}else l=0}else l=-1e6;while(0);q=Tq(a)|0;if((d|0)<0)d=k[a+68>>2]|0;j=d+1|0;p=(f|0)!=0;if(p)k[f>>2]=d;do if(!(i[r>>0]&32)){if((e|0)!=0?(i[e>>0]|0)==0:0){o=15;break}Vq(a,d,l,b,c)}else o=15;while(0);if((o|0)==15)ls(a,l,k[b+32>>2]|0,(c|0)==55&1,k[b>>2]|0);if(g)k[g>>2]=j;d=k[b+8>>2]|0;if(!d)h=0;else{m=(e|0)==0;b=a+8|0;n=j;h=0;while(1){j=n+1|0;if((i[d+51>>0]&3)==2?(i[r>>0]&32)!=0&p:0)k[f>>2]=n;h=h+1|0;if(!(!m?(i[e+h>>0]|0)==0:0)){Bh(q,c,n,k[d+40>>2]|0,l)|0;o=k[b>>2]|0;Ch(o,-1,ms(a,d)|0,-6)}d=k[d+20>>2]|0;if(!d)break;else n=j}}d=a+68|0;if((j|0)>(k[d>>2]|0))k[d>>2]=j}else h=0;return h|0}function vt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=k[a+408>>2]|0;f=(f|0)==0?a:f;e=f+452|0;a=k[e>>2]|0;c=k[f+520>>2]|0;a:do if((a|0)>0){d=0;while(1){if((k[c+(d<<2)>>2]|0)==(b|0))break a;d=d+1|0;if((d|0)>=(a|0)){g=4;break}}}else g=4;while(0);do if((g|0)==4){a=ad(c,(a<<2)+4|0)|0;if(!a){i[(k[f>>2]|0)+65>>0]=1;break}else{k[f+520>>2]=a;c=k[e>>2]|0;k[e>>2]=c+1;k[a+(c<<2)>>2]=b;break}}while(0);return}function wt(a,b,c,d,e,f,g,h,l,m){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;w=k[a+8>>2]|0;x=Cs(w)|0;u=(i[b+44>>0]&32)>>>4^70;if(!(m<<24>>24))Ch(w,Bh(w,u,d,x,f)|0,g<<16>>16,-14);if((rt(a,b,0,0)|0)!=0|(c|0)!=0){q=l&255;r=At(a,c,0,0,3,b,q)|0;r=zt(a,b)|0|r;o=a+72|0;n=k[o>>2]|0;m=n+1|0;s=b+38|0;k[o>>2]=m+(j[s>>1]|0);Bh(w,33,f,m,0)|0;o=j[s>>1]|0;if(o<<16>>16>0){t=(r|0)==-1;p=n+2|0;n=0;do{if(!t){if((n|0)<32?(1<<n&r|0)!=0:0)v=9}else v=9;if((v|0)==9){v=0;st(w,b,d,n,p+n|0);o=j[s>>1]|0}n=n+1|0}while((n|0)<(o<<16>>16|0))}t=w+32|0;s=k[t>>2]|0;Ct(a,c,109,0,1,b,m,q,x);if((s|0)<(k[t>>2]|0))Ch(w,Bh(w,u,d,x,f)|0,g<<16>>16,-14);Et(a,b,m,0,0,0)}else m=0;if((k[b+12>>2]|0)==0?(Ft(a,b,d,e,0),Bh(w,95,d,h<<24>>24!=0&1,0)|0,h<<24>>24!=0):0)Ch(w,-1,k[b>>2]|0,0);Ht(a,b,0,m,0,0);Ct(a,c,109,0,2,b,m,l&255,x);n=k[w+24>>2]|0;m=~x;if((x|0)<0?(y=k[n+112>>2]|0,(y|0)!=0):0)k[y+(m<<2)>>2]=k[w+32>>2];k[n+88>>2]=(k[w+32>>2]|0)+-1;return}function xt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0;h=k[a+8>>2]|0;b=k[a+404>>2]|0;if(b){l=(k[a>>2]|0)+16|0;m=a+19|0;n=a+72|0;o=h+32|0;p=h+4|0;j=h+24|0;do{d=k[b+8>>2]|0;e=k[l>>2]|0;g=k[b+12>>2]|0;c=i[m>>0]|0;if(!(c<<24>>24)){f=(k[n>>2]|0)+1|0;k[n>>2]=f}else{f=c+-1<<24>>24;i[m>>0]=f;f=k[a+((f&255)<<2)+24>>2]|0}Vq(a,0,d,k[(k[e+(d<<4)+12>>2]|0)+72>>2]|0,55);e=g+1|0;d=Bh(h,77,e,0,0)|0;Bh(h,74,0,e,0)|0;c=k[o>>2]|0;if(c>>>0>d>>>0)k[(k[p>>2]|0)+(d*20|0)+8>>2]=c;k[(k[j>>2]|0)+88>>2]=c+-1;Bh(h,49,g+-1|0,2,f)|0;Bh(h,75,0,f,e)|0;c=k[p>>2]|0;if(c)i[c+(((k[o>>2]|0)+-1|0)*20|0)+3>>0]=8;Bh(h,61,0,0,0)|0;ds(a,f);b=k[b>>2]|0}while((b|0)!=0)}return}function yt(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=sr(a,b,e,0)|0;r=f;return d|0}function zt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,l=0,m=0,n=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();g=m+4|0;l=m;if(k[(k[a>>2]|0)+24>>2]&524288){d=k[b+16>>2]|0;if(!d)c=0;else{c=0;do{e=k[d+20>>2]|0;if((e|0)>0){f=0;do{n=k[d+(f<<3)+36>>2]|0;c=((n|0)>31?-1:1<<n)|c;f=f+1|0}while((f|0)<(e|0))}d=k[d+4>>2]|0}while((d|0)!=0)}d=gn((k[b+68>>2]|0)+56|0,k[b>>2]|0,g)|0;if((d|0)!=0?(h=k[d+8>>2]|0,(h|0)!=0):0)do{k[l>>2]=0;Rt(a,b,h,l,0)|0;d=k[l>>2]|0;if((d|0)!=0?(i=j[d+46>>1]|0,i<<16>>16!=0):0){g=i&65535;f=k[d+4>>2]|0;e=0;do{d=j[f+(e<<1)>>1]|0;if(d<<16>>16>31)d=-1;else d=1<<(d<<16>>16);c=d|c;e=e+1|0}while((e|0)<(g|0))}h=k[h+12>>2]|0}while((h|0)!=0)}else c=0;r=m;return c|0}function At(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,j=0;i=(c|0)!=0?110:109;if(!b)h=0;else{h=0;do{if((((l[b+8>>0]|0|0)==(i|0)?((l[b+9>>0]|0)&e|0)!=0:0)?(fv(k[b+16>>2]|0,c)|0)!=0:0)?(j=hv(a,b,f,g)|0,(j|0)!=0):0)h=k[j+(d<<2)+16>>2]|h;b=k[b+32>>2]|0}while((b|0)!=0)}return h|0}function Bt(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=b+20|0;d=k[l>>2]|0;do if(!d){f=k[a>>2]|0;h=b+38|0;e=(j[h>>1]|0)+1|0;e=vg(e,((e|0)<0)<<31>>31)|0;if(!e){i[f+65>>0]=1;break}if((j[h>>1]|0)>0){f=b+4|0;d=0;do{i[e+d>>0]=i[(k[f>>2]|0)+(d*24|0)+21>>0]|0;d=d+1|0}while((d|0)<(j[h>>1]|0))}else d=0;do{i[e+d>>0]=0;if((d|0)<=0)break;d=d+-1|0}while((i[e+d>>0]|0)==65);k[l>>2]=e;g=10}else{e=d;g=10}while(0);do if((g|0)==10){d=e;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-e&1073741823;if(d)if(!c){Ch(a,-1,e,d);break}else{Ch(a,Bh(a,48,c,d,0)|0,e,d);break}}while(0);return}function Ct(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;if(b)do{if(((l[b+8>>0]|0|0)==(c|0)?(l[b+9>>0]|0|0)==(e|0):0)?(fv(k[b+16>>2]|0,d)|0)!=0:0)iv(a,b,f,g,h,i);b=k[b+32>>2]|0}while((b|0)!=0);return}function Dt(a,b,c,d,e,f,g,h,l,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;n=n|0;o=o|0;var p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0;la=r;r=r+16|0;if((r|0)>=(s|0))ka();I=la;ea=(g|0)!=0;N=k[a>>2]|0;ja=Tq(a)|0;A=j[b+38>>1]|0;ha=b+44|0;if(!(i[ha>>0]&32)){da=1;ca=0}else{u=b+8|0;while(1){u=k[u>>2]|0;if((i[u+51>>0]&3)==2)break;else u=u+20|0}da=m[u+46>>1]|0;ca=u}if(A<<16>>16>0){w=b+36|0;v=b+4|0;u=l<<24>>24==10;t=a+408|0;q=f+1|0;B=ja+4|0;C=ja+32|0;D=ja+24|0;E=l&255;y=A<<16>>16;x=0;do{a:do if((x|0)!=(j[w>>1]|0)?(F=k[v>>2]|0,G=i[F+(x*24|0)+20>>0]|0,H=G&255,G<<24>>24!=0):0){if(u)if(G<<24>>24==10)ia=14;else{A=H;ia=11}else{A=E;ia=11}do if((ia|0)==11){ia=0;if((A|0)==5)A=(k[F+(x*24|0)+4>>2]|0)==0?2:5;if((A|0)==2){ia=14;break}else if((A|0)==3|(A|0)==1)break;else if((A|0)==4){Bh(ja,76,q+x|0,n,0)|0;break a}z=q+x|0;A=Bh(ja,77,z,0,0)|0;Wq(a,k[(k[v>>2]|0)+(x*24|0)+4>>2]|0,z);z=k[C>>2]|0;if(z>>>0>A>>>0)k[(k[B>>2]|0)+(A*20|0)+8>>2]=z;k[(k[D>>2]|0)+88>>2]=z+-1;break a}while(0);if((ia|0)==14){ia=0;A=k[t>>2]|0;i[((A|0)==0?a:A)+21>>0]=1;A=2}ba=k[F+(x*24|0)>>2]|0;k[I>>2]=k[b>>2];k[I+4>>2]=ba;ba=zh(N,27824,I)|0;Ch(ja,Bh(ja,23,1299,A,q+x|0)|0,ba,-1);A=k[B>>2]|0;if(A)i[A+(((k[C>>2]|0)+-1|0)*20|0)+3>>0]=1}while(0);x=x+1|0}while((x|0)!=(y|0))}x=k[b+24>>2]|0;if(((x|0)!=0?(k[N+24>>2]&8192|0)==0:0)?(k[a+92>>2]=f+1,(k[x>>2]|0)>0):0){w=x+4|0;q=ja+24|0;y=ja+32|0;A=0;u=l<<24>>24==10?2:l&255;while(1){z=Cs(ja)|0;cv(a,k[(k[w>>2]|0)+(A*20|0)>>2]|0,z,16);if((u|0)==4){Bh(ja,16,0,n,0)|0;t=4}else{v=k[(k[w>>2]|0)+(A*20|0)+4>>2]|0;if(!v)v=k[b>>2]|0;t=(u|0)==5?2:u;Es(a,275,t,v,0,3)}v=k[q>>2]|0;u=~z;if((z|0)<0?(J=k[v+112>>2]|0,(J|0)!=0):0)k[J+(u<<2)>>2]=k[y>>2];k[v+88>>2]=(k[y>>2]|0)+-1;A=A+1|0;if((A|0)>=(k[x>>2]|0))break;else u=t}}if(h<<24>>24!=0&(ca|0)==0){w=Cs(ja)|0;q=i[b+45>>0]|0;if(l<<24>>24==10)q=q<<24>>24==10?2:q&255;else q=l&255;if(ea?(Bh(ja,79,f,w,g)|0,K=k[ja+4>>2]|0,(K|0)!=0):0)i[K+(((k[ja+32>>2]|0)+-1|0)*20|0)+3>>0]=-112;b:do if(!((q|0)!=5|l<<24>>24==5)?(p=k[b+8>>2]|0,(p|0)!=0):0){while(1){if(((i[p+50>>0]|0)+-3&255)<2)break;p=k[p+20>>2]|0;if(!p){x=0;break b}}x=Bh(ja,16,0,0,0)|0}else x=0;while(0);Bh(ja,70,d,w,f)|0;c:do switch(q|0){case 4:{Bh(ja,16,0,n,0)|0;q=0;break}case 5:{if((k[N+24>>2]&262144|0)!=0?(L=ot(a,b,109,0,0)|0,(L|0)!=0):0)q=L;else if(!(rt(a,b,0,0)|0)){if(!(k[b+8>>2]|0)){q=1;break c}q=k[a+408>>2]|0;i[((q|0)==0?a:q)+20>>0]=1;Ft(a,b,d,e,0);q=1;break c}else q=0;ba=k[a+408>>2]|0;i[((ba|0)==0?a:ba)+20>>0]=1;wt(a,b,q,d,e,f,1,0,5,1);q=1;break}case 3:case 2:case 1:{ia=49;break}default:{q=2;ia=49}}while(0);if((ia|0)==49){Kt(a,q,b);q=0}v=ja+24|0;u=k[v>>2]|0;t=~w;if((w|0)<0?(M=k[u+112>>2]|0,(M|0)!=0):0)k[M+(t<<2)>>2]=k[ja+32>>2];p=ja+32|0;k[u+88>>2]=(k[p>>2]|0)+-1;if(!x){t=0;x=0}else{t=Bh(ja,16,0,0,0)|0;p=k[p>>2]|0;if(p>>>0>x>>>0)k[(k[ja+4>>2]|0)+(x*20|0)+8>>2]=p;k[(k[v>>2]|0)+88>>2]=p+-1}}else{t=0;x=0;q=0}A=k[b+8>>2]|0;if(A){_=f+1|0;$=a+60|0;aa=a+56|0;ba=a+72|0;Q=h<<24>>24==0;R=ja+24|0;S=ja+32|0;T=l<<24>>24==10;U=ja+4|0;V=ca+46|0;W=ca+32|0;X=ca+4|0;Y=g+1|0;Z=a+408|0;O=N+24|0;P=da&65535;w=l&255;v=b+36|0;u=a+92|0;E=0;p=0;z=-1;while(1){L=c+(p<<2)|0;do if(k[L>>2]|0){if(!(E<<24>>24)){Bt(ja,b,_);E=1}M=p+e|0;l=Cs(ja)|0;K=A+36|0;if(k[K>>2]|0){Bh(ja,28,0,k[L>>2]|0,0)|0;k[u>>2]=_;lt(a,k[K>>2]|0,l,16);k[u>>2]=0}N=A+48|0;F=j[N>>1]|0;I=F&65535;H=k[$>>2]|0;G=k[aa>>2]|0;if((G|0)<(I|0)){h=k[ba>>2]|0;k[ba>>2]=h+I;h=h+1|0}else{k[$>>2]=H+I;k[aa>>2]=G-I;h=H}if(!(F<<16>>16))J=z;else{J=A+4|0;G=0;do{y=j[(k[J>>2]|0)+(G<<1)>>1]|0;I=y<<16>>16;if(y<<16>>16>=0?y<<16>>16!=(j[v>>1]|0):0){H=G+h|0;I=_+I|0;ia=81}else{I=G+h|0;if((z|0)!=(I|0)){H=I;z=(k[K>>2]|0)==0?I:-1;I=f;ia=81}}if((ia|0)==81){ia=0;Bh(ja,34,I,H,0)|0;F=j[N>>1]|0}G=G+1|0;I=F&65535}while((G|0)<(I|0));J=z}Bh(ja,49,h,I,k[L>>2]|0)|0;it(a,h,m[N>>1]|0);K=(ca|0)==(A|0);if(ea&K&Q){z=k[R>>2]|0;y=~l;if((l|0)<0?(fa=k[z+112>>2]|0,(fa|0)!=0):0)k[fa+(y<<2)>>2]=k[S>>2];k[z+88>>2]=(k[S>>2]|0)+-1;z=J;break}D=i[A+50>>0]|0;C=D&255;if(!(D<<24>>24)){z=m[N>>1]|0;it(a,h,z);if((k[aa>>2]|0)<(z|0)){k[aa>>2]=z;k[$>>2]=h}z=k[R>>2]|0;y=~l;if((l|0)<0?(ga=k[z+112>>2]|0,(ga|0)!=0):0)k[ga+(y<<2)>>2]=k[S>>2];k[z+88>>2]=(k[S>>2]|0)+-1;z=J;break}if(T)L=D<<24>>24==10?2:C;else L=w;z=m[A+46>>1]|0;Ch(ja,Bh(ja,67,M,l,h)|0,z,-14);do if(!K){I=k[$>>2]|0;H=k[aa>>2]|0;if((H|0)<(da|0)){I=k[ba>>2]|0;k[ba>>2]=I+da;I=I+1|0;break}else{k[$>>2]=I+da;k[aa>>2]=H-da;break}}else I=h;while(0);do if(ea|(L|0)==5){if(!(i[ha>>0]&32)){Bh(ja,112,M,I,0)|0;if(!ea)break;Bh(ja,79,I,l,g)|0;D=k[U>>2]|0;if(!D)break;i[D+(((k[S>>2]|0)+-1|0)*20|0)+3>>0]=-112;break}do if(!K){if(!(j[V>>1]|0))break;C=A+4|0;B=0;do{F=j[(k[X>>2]|0)+(B<<1)>>1]|0;H=j[N>>1]|0;d:do if(!(H<<16>>16))H=-1;else{D=k[C>>2]|0;G=H&65535;H=0;while(1){if((j[D+(H<<1)>>1]|0)==F<<16>>16)break d;H=H+1|0;if((H|0)>=(G|0)){H=-1;break}}}while(0);Bh(ja,47,M,H<<16>>16,B+I|0)|0;B=B+1|0}while((B|0)<(m[V>>1]|0))}while(0);if(!ea)break;C=(i[A+51>>0]&3)==2?h:I;H=j[V>>1]|0;if(!(H<<16>>16))break;G=(H&65535)+(k[S>>2]|0)|0;F=0;D=78;do{H=hr(a,k[(k[W>>2]|0)+(F<<2)>>2]|0)|0;z=(F|0)==((m[V>>1]|0)+-1|0);G=z?l:G;D=z?79:D;Ch(ja,Bh(ja,D,Y+(j[(k[X>>2]|0)+(F<<1)>>1]|0)|0,G,F+C|0)|0,H,-4);H=k[U>>2]|0;if(H)i[H+(((k[S>>2]|0)+-1|0)*20|0)+3>>0]=-112;F=F+1|0}while((F|0)<(m[V>>1]|0))}while(0);if((L|0)==3|(L|0)==2|(L|0)==1)su(a,L,A);else if((L|0)==4)Bh(ja,16,0,n,0)|0;else{z=k[Z>>2]|0;i[((z|0)==0?a:z)+20>>0]=1;if(!(k[O>>2]&262144))D=0;else D=ot(a,b,109,0,0)|0;wt(a,b,D,d,e,I,P,0,5,K&1);q=1}H=k[R>>2]|0;G=~l;do if((l|0)<0){D=k[H+112>>2]|0;if(!D)break;k[D+(G<<2)>>2]=k[S>>2]}while(0);k[H+88>>2]=(k[S>>2]|0)+-1;z=m[N>>1]|0;it(a,h,z);if((k[aa>>2]|0)<(z|0)){k[aa>>2]=z;k[$>>2]=h}if((I|0)==(h|0)){z=J;break}it(a,I,da);if((k[aa>>2]|0)>=(da|0)){z=J;break}k[aa>>2]=da;k[$>>2]=I;z=J}while(0);A=k[A+20>>2]|0;if(!A)break;else p=p+1|0}}if(x){Bh(ja,16,0,x+1|0,0)|0;p=k[ja+32>>2]|0;if(p>>>0>t>>>0)k[(k[ja+4>>2]|0)+(t*20|0)+8>>2]=p;k[(k[ja+24>>2]|0)+88>>2]=p+-1}k[o>>2]=q;r=la;return}function Et(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,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;Z=r;r=r+32|0;if((r|0)>=(s|0))ka();Q=Z+20|0;O=Z+16|0;M=Z+12|0;N=Z+8|0;X=Z+4|0;W=Z;S=k[a>>2]|0;L=a+438|0;R=i[L>>0]|0;V=S+24|0;a:do if(k[V>>2]&524288){P=b+68|0;g=k[P>>2]|0;b:do if(g){m=k[S+20>>2]|0;if((m|0)>0){h=k[S+16>>2]|0;p=0;while(1){o=p+1|0;if((k[h+(p<<4)+12>>2]|0)==(g|0)){o=p;break b}if((o|0)<(m|0))p=o;else break}}else o=0}else o=-1e6;while(0);K=k[(k[S+16>>2]|0)+(o<<4)>>2]|0;x=k[b+16>>2]|0;if(!x)h=b;else{z=(e|0)==0;A=R<<24>>24==0;B=S+65|0;C=c+1|0;D=a+68|0;E=(c|0)==0;F=(d|0)==0;G=a+408|0;H=b+36|0;I=S+284|0;J=(f|0)!=0;y=x;do{k[O>>2]=0;k[M>>2]=0;c:do if(!z){x=k[y+8>>2]|0;if(id(k[b>>2]|0,x)|0){w=k[y+20>>2]|0;if((w|0)>0){h=0;do{g=k[y+(h<<3)+36>>2]|0;if((k[e+(g<<2)>>2]|0)>-1){Y=17;break c}h=h+1|0;if((g|0)==(j[H>>1]|0)&J){Y=17;break c}}while((h|0)<(w|0))}}else Y=17}else{x=k[y+8>>2]|0;Y=17}while(0);do if((Y|0)==17){Y=0;if(!(i[L>>0]|0))v=xh(a,0,x,K)|0;else v=di(S,x,K)|0;x=(v|0)==0;if(!x?(Rt(a,v,y,O,M)|0)==0:0){x=k[M>>2]|0;if(!x){k[N>>2]=k[y+36>>2];x=N}h=y+20|0;if((k[h>>2]|0)>0){t=k[O>>2]|0;m=(t|0)==0;p=v+36|0;q=v+4|0;t=t+4|0;g=0;u=0;do{w=x+(u<<2)|0;if((k[w>>2]|0)==(j[H>>1]|0))k[w>>2]=-1;if(k[I>>2]|0){if(m)w=p;else w=(k[t>>2]|0)+(u<<1)|0;g=(jv(a,k[v>>2]|0,k[(k[q>>2]|0)+((j[w>>1]|0)*24|0)>>2]|0,o)|0)==2&1}u=u+1|0}while((u|0)<(k[h>>2]|0));w=v}else{w=v;g=0}ls(a,o,k[v+32>>2]|0,0,k[w>>2]|0);k[D>>2]=(k[D>>2]|0)+1;if(!E)kv(a,o,v,k[O>>2]|0,y,x,c,-1,g);d:do if(!F){w=k[G>>2]|0;w=k[((w|0)==0?a:w)+528>>2]|0;do if(w){w=k[w>>2]|0;if((w|0)==(k[y+28>>2]|0)?(i[y+25>>0]|0)==7:0)break d;if((w|0)!=(k[y+32>>2]|0))break;if((i[y+26>>0]|0)==7)break d}while(0);kv(a,o,v,k[O>>2]|0,y,x,d,1,g)}while(0);rg(S,k[M>>2]|0);break}if(A)break a;if(i[B>>0]|0)break a;if(x){x=Tq(a)|0;w=y+20|0;h=k[w>>2]|0;g=(k[x+32>>2]|0)+1+h|0;if((h|0)>0){h=0;do{Bh(x,76,C+(k[y+(h<<3)+36>>2]|0)|0,g,0)|0;h=h+1|0}while((h|0)<(k[w>>2]|0))}Bh(x,134,l[y+24>>0]|0,-1,0)|0}}while(0);y=k[y+4>>2]|0}while((y|0)!=0);h=b;g=k[P>>2]|0}g=gn(g+56|0,k[h>>2]|0,Q)|0;if((g|0)!=0?(n=k[g+8>>2]|0,T=S+65|0,(n|0)!=0):0){p=(e|0)!=0;q=a+408|0;t=a+20|0;u=a+68|0;v=(d|0)==0;w=(c|0)==0;x=p&1;o=R<<24>>24==0;do{k[X>>2]=0;k[W>>2]=0;if(!(p?(gv(b,n,e,f)|0)==0:0))Y=57;do if((Y|0)==57){Y=0;h=n+24|0;if((((i[h>>0]|0)==0?(k[V>>2]&16777216|0)==0:0)?(k[q>>2]|0)==0:0)?(i[t>>0]|0)==0:0)break;if(Rt(a,b,n,X,W)|0){if(o)break a;if(!(i[T>>0]|0))break;else break a}g=ur(S,0,0,0)|0;if(g){H=k[n>>2]|0;k[g+24>>2]=H;m=g+16|0;k[m>>2]=k[H>>2];H=H+40|0;j[H>>1]=(j[H>>1]|0)+1<<16>>16;H=k[u>>2]|0;k[u>>2]=H+1;k[g+48>>2]=H;if(!v)lv(a,g,b,k[X>>2]|0,n,k[W>>2]|0,d,-1);if((!w?(U=i[n+x+25>>0]|0,lv(a,g,b,k[X>>2]|0,n,k[W>>2]|0,c,1),(i[h>>0]|0)==0):0)?!(U<<24>>24==7|U<<24>>24==9):0){H=k[q>>2]|0;i[((H|0)==0?a:H)+21>>0]=1}k[m>>2]=0;Io(S,g)}rg(S,k[W>>2]|0)}while(0);n=k[n+12>>2]|0}while((n|0)!=0)}}while(0);r=Z;return}function Ft(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,n=0,o=0,p=0,q=0;q=r;r=r+16|0;if((r|0)>=(s|0))ka();p=q;o=k[a+8>>2]|0;g=k[b+8>>2]|0;a:do if(i[b+44>>0]&32){if(g){f=g;while(1){if((i[f+51>>0]&3)==2){n=5;break a}f=k[f+20>>2]|0;if(!f){f=0;n=5;break}}}}else{f=0;n=5}while(0);if((n|0)==5?(g|0)!=0:0){j=(e|0)==0;l=0;b=0;h=-1;while(1){if(j){if((g|0)!=(f|0))n=10}else if(!((g|0)==(f|0)?1:(k[e+(l<<2)>>2]|0)==0))n=10;if((n|0)==10){n=0;h=Ut(a,g,c,0,1,p,b,h)|0;Bh(o,111,l+d|0,h,m[((i[g+51>>0]&8)==0?g+48|0:g+46|0)>>1]|0)|0;Vt(a,k[p>>2]|0);b=g}g=k[g+20>>2]|0;if(!g)break;else l=l+1|0}}r=q;return}function Gt(a,b,c,d,e,f,g,h,l){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=Tq(a)|0;q=k[b+8>>2]|0;if(!q){n=b+44|0;p=0}else{r=(l|0)!=0;n=b+44|0;s=r?17:1;t=w+4|0;u=w+32|0;p=0;v=0;m=q;while(1){o=f+(v<<2)|0;q=k[o>>2]|0;do if(q){if(k[m+36>>2]|0){Bh(w,76,q,(k[u>>2]|0)+2|0,0)|0;q=k[o>>2]|0}Bh(w,110,v+d|0,q,0)|0;if((i[m+51>>0]&3)==2){q=(i[n>>0]&32)!=0;if(q|r)p=q?s:16;else{p=1;break}}else if(r)p=16;else{p=1;break}q=k[t>>2]|0;if(!q)p=1;else{i[q+(((k[u>>2]|0)+-1|0)*20|0)+3>>0]=p;p=1}}while(0);m=k[m+20>>2]|0;if(!m)break;else v=v+1|0}}if(!(i[n>>0]&32)){o=e+1|0;n=a+19|0;m=i[n>>0]|0;if(!(m<<24>>24)){f=a+72|0;q=(k[f>>2]|0)+1|0;k[f>>2]=q}else{q=m+-1<<24>>24;i[n>>0]=q;q=k[a+((q&255)<<2)+24>>2]|0}n=b+38|0;Bh(w,49,o,j[n>>1]|0,q)|0;if(!(p<<24>>24))Bt(w,b,0);it(a,o,j[n>>1]|0);o=a+18|0;if(!(i[o>>0]|0))m=(g|0)!=0?5:3;else m=0;if(h)m=(m&255|8)&255;if(!l)n=m;else n=(m&255|16)&255;Bh(w,75,c,q,e)|0;if(!(i[o>>0]|0))Ch(w,-1,k[b>>2]|0,0);m=k[w+4>>2]|0;if(m)i[m+(((k[w+32>>2]|0)+-1|0)*20|0)+3>>0]=n}return}function Ht(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,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=r;r=r+64|0;if((r|0)>=(s|0))ka();R=Y+52|0;Q=Y+48|0;V=Y+8|0;U=Y;T=Y+40|0;W=Y+32|0;S=Y+24|0;if(((k[(k[a>>2]|0)+24>>2]&524288|0)!=0?(P=b+68|0,g=gn((k[P>>2]|0)+56|0,k[b>>2]|0,Y+16|0)|0,(g|0)!=0):0)?(h=k[g+8>>2]|0,(h|0)!=0):0){O=(e|0)==0;H=(c|0)!=0;I=H&1;J=W+4|0;K=T+4|0;L=b+4|0;M=S+4|0;N=H?110:109;do{if(!(!O?(gv(b,h,e,f)|0)==0:0)){E=k[a>>2]|0;D=i[h+I+25>>0]|0;F=D&255;G=h+(I<<2)+28|0;c=k[G>>2]|0;do if(!(D<<24>>24==0|(c|0)!=0)){k[R>>2]=0;k[Q>>2]=0;if(!(Rt(a,b,h,R,Q)|0)){p=h+20|0;if((k[p>>2]|0)>0){x=34352;w=k[x>>2]|0;x=k[x+4>>2]|0;z=34360;y=k[z>>2]|0;z=k[z+4>>2]|0;A=h+36|0;C=D<<24>>24!=6&(D<<24>>24!=9|H);B=0;m=0;g=0;l=0;do{c=V;k[c>>2]=w;k[c+4>>2]=x;c=U;k[c>>2]=y;k[c+4>>2]=z;c=k[Q>>2]|0;if(!c)c=A;else c=c+(B<<2)|0;o=k[c>>2]|0;q=k[R>>2]|0;if(!q)u=34368;else u=k[(k[L>>2]|0)+((j[(k[q+4>>2]|0)+(B<<1)>>1]|0)*24|0)>>2]|0;k[W>>2]=u;c=k[(k[(k[h>>2]|0)+4>>2]|0)+(o*24|0)>>2]|0;k[T>>2]=c;if(!u)t=0;else{v=u;while(1)if(!(i[v>>0]|0))break;else v=v+1|0;t=v-u&1073741823}k[J>>2]=t;if(!c)n=0;else{u=c;while(1)if(!(i[u>>0]|0))break;else u=u+1|0;n=u-c&1073741823}k[K>>2]=n;v=cr(a,27,0,0,V)|0;v=cr(a,122,v,cr(a,27,0,0,W)|0,0)|0;l=xs(E,l,cr(a,79,v,cr(a,27,0,0,T)|0,0)|0)|0;if(H){u=cr(a,27,0,0,V)|0;u=cr(a,122,u,cr(a,27,0,0,W)|0,0)|0;v=cr(a,27,0,0,U)|0;g=xs(E,g,cr(a,73,u,cr(a,122,v,cr(a,27,0,0,W)|0,0)|0,0)|0)|0}if(C){do if(D<<24>>24==9){c=cr(a,27,0,0,U)|0;c=cr(a,122,c,cr(a,27,0,0,W)|0,0)|0}else if(D<<24>>24==8){c=k[(k[(k[h>>2]|0)+4>>2]|0)+(o*24|0)+4>>2]|0;if(!c){c=cr(a,101,0,0,0)|0;break}else{c=Rr(E,c,0,0)|0;break}}else c=cr(a,101,0,0,0)|0;while(0);m=qr(a,m,c)|0;rr(a,m,T,0)}B=B+1|0}while((B|0)<(k[p>>2]|0));c=h}else{c=h;m=0;g=0;l=0}rg(E,k[Q>>2]|0);v=k[k[c>>2]>>2]|0;if(!v)n=0;else{c=v;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;n=c-v&1073741823}if(D<<24>>24==6){k[S>>2]=v;k[M>>2]=n;c=yt(E,57,34376)|0;if(c)i[c+1>>0]=2;u=qr(a,0,c)|0;u=pr(a,u,ur(E,0,S,0)|0,l,0,0,0,0,0,0)|0;t=0}else{u=0;t=l}o=E+250|0;p=i[o>>0]|0;i[o>>0]=0;c=n+77|0;q=rh(E,c,0)|0;if(q){kw(q|0,0,c|0)|0;l=q+36|0;k[q+28>>2]=l;D=q+76|0;k[q+48>>2]=D;k[q+52>>2]=n;pw(D|0,v|0,n|0)|0;D=Rr(E,t,1,0)|0;k[q+56>>2]=D;D=Ur(E,m,1)|0;k[q+60>>2]=D;D=lr(E,u,1)|0;k[q+44>>2]=D;if(!g){c=q;g=0}else{g=cr(a,19,g,0,0)|0;c=Rr(E,g,1,0)|0;k[q+12>>2]=c;c=q}}else{c=0;l=0}i[o>>0]=p;Lk(E,t);Lk(E,g);Sk(E,m);Rk(E,u,1);if((i[E+65>>0]|0)==1){Pk(E,c);c=0;break}if((F|0)==6)i[l>>0]=119;else if((F|0)==9?!H:0)i[l>>0]=109;else X=49;if((X|0)==49){X=0;i[l>>0]=110}k[l+4>>2]=c;F=k[P>>2]|0;k[q+20>>2]=F;k[q+24>>2]=F;k[G>>2]=c;i[q+8>>0]=N}else c=0}while(0);if(c)iv(a,c,b,d,2,0)}h=k[h+12>>2]|0}while((h|0)!=0)}r=Y;return}function It(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0;c=j[a+46>>1]|0;a:do if(c<<16>>16==(j[b+46>>1]|0)?(i[a+50>>0]|0)==(i[b+50>>0]|0):0){if(c<<16>>16){d=k[b+4>>2]|0;e=k[a+4>>2]|0;f=b+28|0;g=a+28|0;h=b+32|0;l=a+32|0;p=0;do{if((j[d+(p<<1)>>1]|0)!=(j[e+(p<<1)>>1]|0)){c=0;break a}if((i[(k[f>>2]|0)+p>>0]|0)!=(i[(k[g>>2]|0)+p>>0]|0)){c=0;break a}m=k[(k[h>>2]|0)+(p<<2)>>2]|0;n=k[(k[l>>2]|0)+(p<<2)>>2]|0;o=(n|0)==0;if(!m){if(!o){c=0;break a}}else{if(o){c=0;break a}if(id(m,n)|0){c=0;break a}}p=p+1|0}while((p|0)<(c&65535|0))}c=(Hu(k[b+36>>2]|0,k[a+36>>2]|0,-1)|0)==0&1}else c=0;while(0);return c|0}function Jt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;do if(!(i[c+44>>0]&8))d=0;else{f=k[a+408>>2]|0;f=(f|0)==0?a:f;e=f+404|0;d=k[e>>2]|0;a:do if(!d)g=5;else while(1){if((k[d+4>>2]|0)==(c|0))break a;d=k[d>>2]|0;if(!d){g=5;break}}while(0);if((g|0)==5){d=rh(k[a>>2]|0,16,0)|0;if(!d){d=0;break}k[d>>2]=k[e>>2];k[e>>2]=d;k[d+4>>2]=c;k[d+8>>2]=b;a=f+72|0;e=k[a>>2]|0;k[d+12>>2]=e+2;k[a>>2]=e+3}d=k[d+12>>2]|0}while(0);return d|0}function Kt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;e=j[c+36>>1]|0;f=k[a>>2]|0;d=k[c>>2]|0;if(e<<16>>16>-1){e=k[(k[c+4>>2]|0)+((e<<16>>16)*24|0)>>2]|0;k[g>>2]=d;k[g+4>>2]=e;e=1555;d=zh(f,27824,g)|0}else{k[g>>2]=d;e=2579;d=zh(f,34408,g)|0}Es(a,e,b,d,-1,2);r=h;return}function Lt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a+316|0;f=k[e>>2]|0;b=qr(a,f,Rr(k[a>>2]|0,b,0,0)|0)|0;if(b){a=(k[b>>2]|0)+-1|0;f=k[b+4>>2]|0;k[f+(a*20|0)+16>>2]=c;a=f+(a*20|0)+13|0;i[a>>0]=i[a>>0]&-5|d<<2&4}k[e>>2]=b;return}function Mt(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;f=k[d>>2]|0;if(!(f+-1&f)){h=ha((f|0)==0?1:f<<1,c)|0;a=wo(a,b,h,((h|0)<0)<<31>>31)|0;if(!a){k[e>>2]=-1;a=b}else g=4}else{a=b;g=4}if((g|0)==4){kw(a+(ha(f,c)|0)|0,0,c|0)|0;k[e>>2]=f;k[d>>2]=(k[d>>2]|0)+1}return a|0}function Nt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;k[g>>2]=0;b=k[a+12>>2]|0;if((b|0)!=0?(c=k[b+24>>2]|0,(c|0)>0):0){k[g>>2]=c;b=c}else b=0;c=k[a+16>>2]|0;if((c|0)!=0?(d=k[c+24>>2]|0,(d|0)>(b|0)):0)k[g>>2]=d;e=a+4|0;b=a+20|0;if(!(k[e>>2]&2048)){c=k[b>>2]|0;if(c){yu(c,g);b=k[b>>2]|0;if((b|0)!=0?(f=k[b>>2]|0,(f|0)>0):0){d=k[b+4>>2]|0;c=0;b=0;do{b=k[(k[d+(c*20|0)>>2]|0)+4>>2]|b;c=c+1|0}while((c|0)!=(f|0));b=b&2097408}else b=0;k[e>>2]=k[e>>2]|b}}else Js(k[b>>2]|0,g);k[a+24>>2]=(k[g>>2]|0)+1;r=h;return}function Ot(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=Tq(a)|0;g=a+72|0;f=(k[g>>2]|0)+1|0;k[g>>2]=f;a=rh(k[a>>2]|0,8,0)|0;if(a){g=a;k[g>>2]=c;k[g+4>>2]=d}Ch(e,Bh(e,26,0,f,0)|0,a,-13);nq(e,1);if(!(i[(k[e>>2]|0)+65>>0]|0))ah(k[e+16>>2]|0,b,-1,1,0)|0;Bh(e,35,f,1,0)|0;return}function Pt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;b=k[a>>2]|0;c=b+16|0;d=k[(k[c>>2]|0)+20>>2]|0;do if(!d)b=0;else{if((i[b+63>>0]|0)!=0?(i[d+8>>0]|0)==0:0){Rl(d);k[(k[c>>2]|0)+20>>2]=0;Jg(b);b=0;break}yh(a,32128,e);b=1}while(0);r=f;return b|0}function Qt(a){a=a|0;var b=0,c=0,d=0;if((i[a+63>>0]|0)!=0?(b=k[a+20>>2]|0,(b|0)>0):0){d=a+24|0;c=k[a+16>>2]|0;while(1){b=b+-1|0;a=k[c+4>>2]|0;if(a)yo(a,k[d>>2]&28|l[c+8>>0]);if((b|0)<=0)break;else c=c+16|0}}return}function Rt(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,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[c+20>>2]|0;g=k[c+40>>2]|0;if((x|0)==1){q=j[b+36>>1]|0;f=q<<16>>16;if(q<<16>>16>-1)if((g|0)!=0?(id(k[(k[b+4>>2]|0)+(f*24|0)>>2]|0,g)|0)!=0:0){v=0;y=8}else e=0;else{v=0;y=8}}else if(e){f=rh(k[a>>2]|0,x<<2,0)|0;if(!f)e=1;else{k[e>>2]=f;v=f;y=8}}else{v=0;y=8}a:do if((y|0)==8){e=k[b+8>>2]|0;b:do if(e){q=(g|0)==0;u=(x|0)>0;p=b+4|0;t=(v|0)==0;c:while(1){do if((m[e+46>>1]|0)==(x|0)?(i[e+50>>0]|0)!=0:0){if(q)if((i[e+51>>0]&3)==2){y=16;break c}else break;d:do if(u){h=k[e+4>>2]|0;l=k[p>>2]|0;n=k[e+32>>2]|0;o=0;while(1){b=j[h+(o<<1)>>1]|0;g=k[l+(b*24|0)+16>>2]|0;if(id(k[n+(o<<2)>>2]|0,(g|0)!=0?g:11152)|0){g=o;break d}g=k[l+(b*24|0)>>2]|0;f=0;while(1){b=f+1|0;if(!(id(k[c+(f<<3)+40>>2]|0,g)|0)){b=f;y=23;break}if((b|0)<(x|0))f=b;else break}if((y|0)==23){y=0;if(!t)k[v+(o<<2)>>2]=k[c+(b<<3)+36>>2]}g=o+1|0;if((b|0)==(x|0)){g=o;break d}if((g|0)<(x|0))o=g;else break}}else g=0;while(0);if((g|0)==(x|0))break c}while(0);e=k[e+20>>2]|0;if(!e)break b}if((y|0)==16)if(!(t|u^1)){f=0;do{k[v+(f<<2)>>2]=k[c+(f<<3)+36>>2];f=f+1|0}while((f|0)!=(x|0))}k[d>>2]=e;e=0;break a}while(0);if(!(i[a+438>>0]|0)){q=k[c+8>>2]|0;k[w>>2]=k[k[c>>2]>>2];k[w+4>>2]=q;yh(a,32008,w)}rg(k[a>>2]|0,v);e=1}while(0);r=z;return e|0}function St(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(!(k[b+12>>2]|0)){k[f>>2]=0;h=k[a>>2]|0;e=b+4|0;b=k[e>>2]|0;cs(h,k[b+(c*24|0)+4>>2]|0,i[h+62>>0]|0,i[b+(c*24|0)+21>>0]|0,f)|0;b=k[f>>2]|0;if(b)Ch(a,-1,b,-8);if((i[(k[e>>2]|0)+(c*24|0)+21>>0]|0)==69)Bh(a,39,d,0,0)|0}r=g;return}function Tt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!b)d=0;else{d=b;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-b&1073741823}d=Xh(a,b,d,2,1,0)|0;if(d){d=d+2|0;j[d>>1]=m[d>>1]|c&255}return}function Ut(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 l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=k[a+8>>2]|0;r=k[b+12>>2]|0;do if(f){l=b+36|0;if(!(k[l>>2]|0)){k[f>>2]=0;break}else{p=Cs(q)|0;k[f>>2]=p;k[a+96>>2]=c;p=a+100|0;k[p>>2]=(k[p>>2]|0)+1;lt(a,k[l>>2]|0,k[f>>2]|0,16);break}}while(0);if((e|0)!=0?(i[b+51>>0]&8)!=0:0)l=b+46|0;else l=b+48|0;l=j[l>>1]|0;n=l&65535;o=a+60|0;e=k[o>>2]|0;p=a+56|0;f=k[p>>2]|0;if((f|0)<(n|0)){e=a+72|0;m=k[e>>2]|0;k[e>>2]=m+n;m=m+1|0}else{k[o>>2]=e+n;k[p>>2]=f-n;m=e}do if(!g)e=0;else{if((m|0)==(h|0)?(k[g+36>>2]|0)==0:0){e=g;break}e=0}while(0);if(l<<16>>16){g=(e|0)==0;h=b+4|0;f=e+4|0;l=0;do{if(!g){e=j[(k[h>>2]|0)+(l<<1)>>1]|0;if((j[(k[f>>2]|0)+(l<<1)>>1]|0)!=e<<16>>16)s=21}else{e=j[(k[h>>2]|0)+(l<<1)>>1]|0;s=21}if((s|0)==21){s=0;st(q,r,c,e<<16>>16,l+m|0);Uq(q,39)|0}l=l+1|0}while((l|0)<(n|0))}if(d)Bh(q,49,m,n,d)|0;it(a,m,n);if((k[p>>2]|0)<(n|0)){k[p>>2]=n;k[o>>2]=m}return m|0}function Vt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(b){c=k[a+8>>2]|0;d=k[c+24>>2]|0;e=~b;if((b|0)<0?(f=k[d+112>>2]|0,(f|0)!=0):0)k[f+(e<<2)>>2]=k[c+32>>2];k[d+88>>2]=(k[c+32>>2]|0)+-1;gu(a)}return}function Wt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;c=k[b+16>>2]|0;a:do if((c|0)!=0?(d=k[b+64>>2]|0,(d|0)!=0):0){c=k[c+8>>2]|0;b:do if(c){while(1){if(!(id(k[c>>2]|0,d)|0))break;c=k[c+20>>2]|0;if(!c)break b}k[b+68>>2]=c;c=0;break a}while(0);k[e>>2]=d;k[e+4>>2]=0;yh(a,28104,e);i[a+17>>0]=1;c=1}else c=0;while(0);r=f;return c|0}function Xt(a,b){a=a|0;b=b|0;var c=0,d=0;if(a){c=Yt(a,b)|0;if(b&1){d=Xt(k[a+12>>2]|0,b)|0;return d+c+(Xt(k[a+16>>2]|0,b)|0)|0}}else c=0;return c|0}
11 function rq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0;da=r;r=r+192|0;if((r|0)>=(s|0))ka();_=da+48|0;Y=da+24|0;X=da+160|0;E=da+156|0;P=da+152|0;H=da+148|0;S=da+144|0;K=da+140|0;D=da+16|0;ba=da;v=da+128|0;u=da+116|0;w=da+96|0;e=da+88|0;ca=a+8|0;$=k[ca>>2]|0;aa=k[a>>2]|0;k[ba+0>>2]=k[9286];k[ba+4>>2]=k[9287];k[ba+8>>2]=k[9288];a:do switch(b|0){case 8:{v=k[$>>2]|0;z=v+65|0;if(((i[z>>0]|0)==0?(i[$+18>>0]|0)==0:0)?(V=$+64|0,(k[V>>2]|0)==0):0){y=Tq($)|0;if(y){do{}while((Uq(y,61)|0)!=0);Bh(y,24,0,0,0)|0;do if(!(i[z>>0]|0)){h=$+332|0;q=k[h>>2]|0;if((q|0)==0?(k[$+316>>2]|0)==0:0)break;n=y+32|0;o=k[n>>2]|0;if(o)k[(k[y+4>>2]|0)+8>>2]=o;k[(k[y+24>>2]|0)+88>>2]=o+-1;t=v+20|0;b:do if((k[t>>2]|0)>0){c=y+96|0;d=$+328|0;e=v+16|0;f=v+145|0;g=y+4|0;p=0;while(1){u=1<<p;if(((u&q|0)!=0?(k[c>>2]=k[c>>2]|u,_=k[(k[(k[e>>2]|0)+(p<<4)+12>>2]|0)+4>>2]|0,Ch(y,Bh(y,4,p,(k[d>>2]&u|0)!=0&1,k[$+(p<<2)+336>>2]|0)|0,_,-14),(i[f>>0]|0)==0):0)?(J=k[g>>2]|0,(J|0)!=0):0)i[J+(((k[n>>2]|0)+-1|0)*20|0)+3>>0]=1;p=p+1|0;if((p|0)>=(k[t>>2]|0))break b;q=k[h>>2]|0}}while(0);n=$+452|0;if((k[n>>2]|0)>0){h=$+520|0;g=0;do{o=k[(k[(k[h>>2]|0)+(g<<2)>>2]|0)+60>>2]|0;c:do if(!o)o=0;else while(1){if((k[o>>2]|0)==(v|0))break c;o=k[o+24>>2]|0;if(!o){o=0;break}}while(0);Ch(y,Bh(y,146,0,0,0)|0,o,-10);g=g+1|0}while((g|0)<(k[n>>2]|0))}k[n>>2]=0;n=Tq($)|0;h=$+396|0;if((k[h>>2]|0)>0){g=$+400|0;f=0;do{Y=k[g>>2]|0;_=k[Y+(f<<4)+12>>2]|0;Ch(n,Bh(n,145,k[Y+(f<<4)>>2]|0,k[Y+(f<<4)+4>>2]|0,l[Y+(f<<4)+8>>0]|0)|0,_,-2);f=f+1|0}while((f|0)<(k[h>>2]|0))}d=k[$+8>>2]|0;o=k[$+404>>2]|0;if(o){c=(k[$>>2]|0)+16|0;p=d+32|0;q=d+4|0;do{h=k[o+8>>2]|0;n=k[o+12>>2]|0;Vq($,0,h,k[(k[(k[c>>2]|0)+(h<<4)+12>>2]|0)+72>>2]|0,54);h=n+1|0;Bh(d,28,0,n,h)|0;g=k[p>>2]|0;e=n+-1|0;f=k[k[o+4>>2]>>2]|0;Ch(d,Bh(d,97,0,e,0)|0,f,0);f=g+9|0;Bh(d,108,0,f,0)|0;Bh(d,47,0,0,n)|0;Bh(d,78,e,g+7|0,n)|0;e=k[q>>2]|0;if(e)i[e+(((k[p>>2]|0)+-1|0)*20|0)+3>>0]=16;Bh(d,103,0,h,0)|0;Bh(d,47,0,1,n)|0;Bh(d,16,0,f,0)|0;Bh(d,9,0,g+2|0,0)|0;Bh(d,25,0,n,0)|0;Bh(d,61,0,0,0)|0;o=k[o>>2]|0}while((o|0)!=0)}n=k[$+316>>2]|0;if((n|0)!=0?(i[$+23>>0]=0,(k[n>>2]|0)>0):0){h=n+4|0;g=0;do{_=k[h>>2]|0;Wq($,k[_+(g*20|0)>>2]|0,k[_+(g*20|0)+16>>2]|0);g=g+1|0}while((g|0)<(k[n>>2]|0))}Bh(y,16,0,1,0)|0}while(0);if((k[V>>2]|0)==0?(i[z>>0]|0)==0:0){if((k[$+404>>2]|0)!=0?(W=$+68|0,(k[W>>2]|0)==0):0)k[W>>2]=1;Fh(y,$);k[$+12>>2]=101;i[$+16>>0]=0}else Z=48}else Z=48;if((Z|0)==48)k[$+12>>2]=1;k[$+68>>2]=0;k[$+72>>2]=0;k[$+76>>2]=0;k[$+440>>2]=0;k[$+332>>2]=0}break}case 33:{_=a+(aa<<4)+16|0;_q($,0,0,0,k[_>>2]|0);Rk(k[$>>2]|0,k[_>>2]|0,1);break}case 35:{e=k[a+(aa<<4)+20>>2]|0;d=k[a+(aa<<4)+16>>2]|0;if((e|0)==5?(Kc(d,20456,5)|0)==0:0){i[ba>>0]=32;break a}i[ba>>0]=0;k[_>>2]=e;k[_+4>>2]=d;yh($,20464,_);break}case 26:{Zq($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0,k[a+(aa+-4<<4)+16>>2]|0,0,0,k[a+(aa+-2<<4)+16>>2]|0);break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{k[ba>>2]=0;break}case 27:{i[(k[$>>2]|0)+250>>0]=0;Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{k[ba>>2]=1;break}case 32:{_q($,a+(aa+-2<<4)+16|0,a+(aa+-1<<4)+16|0,i[a+(aa<<4)+16>>0]|0,0);break}case 34:{i[ba>>0]=0;break}case 62:{dr($,0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0,k[a+(aa+-2<<4)+16>>2]|0);break}case 63:{er($,0,0,0,0,k[a+(aa<<4)+16>>2]|0,0,0,0,0)|0;break}case 70:{k[ba>>2]=0;break}case 71:{k[ba>>2]=k[a+(aa+-1<<4)+16>>2]&~k[a+(aa<<4)+20>>2]|k[a+(aa<<4)+16>>2];break}case 73:case 72:{k[ba>>2]=0;k[ba+4>>2]=0;break}case 74:{k[ba>>2]=k[a+(aa<<4)+16>>2];k[ba+4>>2]=255;break}case 76:{k[ba>>2]=7;break}case 75:{k[ba>>2]=k[a+(aa<<4)+16>>2]<<8;k[ba+4>>2]=65280;break}case 6:{i[$+450>>0]=1;k[$+440>>2]=0;break}case 5:{i[$+450>>0]=0;k[$+440>>2]=0;break}case 9:{e=k[a+(aa+-1<<4)+16>>2]|0;d=k[$>>2]|0;if((Xq($,22,37104,0,0)|0)==0?(B=Tq($)|0,(B|0)!=0):0){if((e|0)!=7?(C=d+20|0,(k[C>>2]|0)>0):0){e=(e|0)==9?2:1;d=B+96|0;g=0;do{Bh(B,4,g,e,0)|0;k[d>>2]=k[d>>2]|1<<g;g=g+1|0}while((g|0)<(k[C>>2]|0))}Bh(B,3,0,0,0)|0}break}case 46:{$=k[a+(aa+-3<<4)+16>>2]|0;k[ba>>2]=$;k[ba+4>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-$;break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break}case 44:{e=a+(aa<<4)+16|0;d=k[$+484>>2]|0;if((d|0)!=0?(F=j[d+38>>1]|0,F<<16>>16>=1):0){_=(F<<16>>16)+-1|0;Z=k[d+4>>2]|0;$=$q(k[$>>2]|0,e)|0;k[Z+(_*24|0)+12>>2]=$;$=ar($,Z+(_*24|0)+22|0)|0;i[Z+(_*24|0)+21>>0]=$}break}case 58:{_=cr($,157,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[v>>2]=_;k[v+4>>2]=k[a+(aa+-1<<4)+16>>2];k[v+8>>2]=k[a+(aa<<4)+24>>2];br($,v);break}case 59:{_=a+(aa<<4)+16|0;Z=cr($,97,0,0,_)|0;k[u>>2]=Z;_=k[_>>2]|0;k[u+4>>2]=_;k[u+8>>2]=_+(k[a+(aa<<4)+20>>2]|0);br($,u);break}case 61:{d=k[a+(aa<<4)+16>>2]|0;e=k[$+484>>2]|0;if((e|0)!=0?(q=j[e+38>>1]|0,q<<16>>16>=1):0)i[(k[e+4>>2]|0)+(((q<<16>>16)+-1|0)*24|0)+20>>0]=d;break}case 7:{i[$+450>>0]=2;k[$+440>>2]=0;break}case 13:{k[ba>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{k[ba>>2]=l[a+(aa<<4)+14>>0];break}case 18:case 17:{if((Xq($,22,37136,0,0)|0)==0?(y=Tq($)|0,(y|0)!=0):0)Bh(y,3,1,0,0)|0;break}case 38:{_=k[a+(aa+-2<<4)+16>>2]|0;k[ba>>2]=_;k[ba+4>>2]=(k[$+504>>2]|0)-_+(k[$+508>>2]|0);break}case 39:{u=a+(aa<<4)+16|0;q=k[$>>2]|0;d=k[$+484>>2]|0;d:do if(d){t=d+38|0;if((j[t>>1]|0)>=(k[q+96>>2]|0)){k[_>>2]=k[d>>2];yh($,36528,_);break}p=$q(q,u)|0;if(p){n=j[t>>1]|0;c=n<<16>>16;e:do if(n<<16>>16>0){o=i[9328+(l[p>>0]|0)>>0]|0;g=k[d+4>>2]|0;h=p+1|0;e=0;while(1){f=k[g+(e*24|0)>>2]|0;if(o<<24>>24==(i[9328+(l[f>>0]|0)>>0]|0)?(id(h,f+1|0)|0)==0:0)break;e=e+1|0;if((e|0)>=(c|0))break e}k[_>>2]=p;yh($,36552,_);rg(q,p);break d}else g=k[d+4>>2]|0;while(0);h=d+4|0;do if(!(c&7)){g=wo(q,g,(c*24|0)+192|0,0)|0;if(!g){rg(q,p);break d}else{k[h>>2]=g;n=j[t>>1]|0;break}}while(0);_=n<<16>>16;Z=g+(_*24|0)|0;k[Z+0>>2]=0;k[Z+4>>2]=0;k[Z+8>>2]=0;k[Z+12>>2]=0;k[Z+16>>2]=0;k[Z+20>>2]=0;k[Z>>2]=p;i[g+(_*24|0)+21>>0]=65;i[g+(_*24|0)+22>>0]=1;j[t>>1]=(j[t>>1]|0)+1<<16>>16}}while(0);Y=u;Z=k[Y+4>>2]|0;_=ba;k[_>>2]=k[Y>>2];k[_+4>>2]=Z;k[$+324>>2]=0;break}case 47:{$=k[a+(aa+-5<<4)+16>>2]|0;k[ba>>2]=$;k[ba+4>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-$;break}case 49:{$=k[a+(aa+-1<<4)+16>>2]|0;k[ba>>2]=$;k[ba+4>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-$;break}case 92:case 54:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=$+320|0;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break}case 57:case 55:{br($,a+(aa<<4)+16|0);break}case 64:{fr($,k[a+(aa+-1<<4)+16>>2]|0);break}case 65:{gr($,0,a+(aa+-2<<4)+16|0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0);break}case 66:{d=k[a+(aa<<4)+16>>2]|0;e=k[$+484>>2]|0;if((e|0)!=0?(p=k[e+16>>2]|0,(p|0)!=0):0)i[p+24>>0]=d;break}case 67:{g=k[$+484>>2]|0;if((g|0)!=0?(A=(j[g+38>>1]|0)+-1|0,h=k[$>>2]|0,f=$q(h,a+(aa<<4)+16|0)|0,(f|0)!=0):0){if(!(hr($,f)|0)){rg(h,f);break a}n=g+4|0;rg(h,k[(k[n>>2]|0)+(A*24|0)+16>>2]|0);k[(k[n>>2]|0)+(A*24|0)+16>>2]=f;e=k[g+8>>2]|0;if(e)do{if((j[k[e+4>>2]>>1]|0)==(A|0))k[k[e+32>>2]>>2]=k[(k[n>>2]|0)+(A*24|0)+16>>2];e=k[e+20>>2]|0}while((e|0)!=0)}break}case 56:{br($,a+(aa+-1<<4)+16|0);break}case 226:{e=aa+-1|0;d=a+(e<<4)+16|0;h=a+(aa<<4)+16|0;g=ur(k[$>>2]|0,0,d,h)|0;n=aa+-3|0;f=cr($,75,k[a+(n<<4)+16>>2]|0,0,0)|0;k[ba>>2]=f;if(!f){Io(k[$>>2]|0,g);g=0}else{g=pr($,0,g,0,0,0,0,0,0,0)|0;k[f+20>>2]=g;g=k[ba>>2]|0;_=g+4|0;k[_>>2]=k[_>>2]|2099200;Dr($,g)}if(k[a+(aa+-2<<4)+16>>2]|0){$=cr($,19,g,0,0)|0;k[ba>>2]=$}k[ba+4>>2]=k[a+(n<<4)+20>>2];c=k[h>>2]|0;if(!c)c=(k[d>>2]|0)+(k[a+(e<<4)+20>>2]|0)|0;else c=c+(k[a+(aa<<4)+20>>2]|0)|0;k[ba+8>>2]=c;break}case 225:{e=aa+-4|0;c=cr($,75,k[a+(e<<4)+16>>2]|0,0,0)|0;k[ba>>2]=c;if(!c){Rk(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,1);c=0}else{k[c+20>>2]=k[a+(aa+-1<<4)+16>>2];c=k[ba>>2]|0;_=c+4|0;k[_>>2]=k[_>>2]|2099200;Dr($,c)}if(k[a+(aa+-3<<4)+16>>2]|0){$=cr($,19,c,0,0)|0;k[ba>>2]=$}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 227:{c=cr($,20,0,0,0)|0;k[ba>>2]=c;if(!c)Rk(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,1);else{k[c+20>>2]=k[a+(aa+-1<<4)+16>>2];_=c+4|0;k[_>>2]=k[_>>2]|2099200;Dr($,c)}k[ba+4>>2]=k[a+(aa+-3<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 228:{d=cr($,136,k[a+(aa+-3<<4)+16>>2]|0,0,0)|0;k[ba>>2]=d;if(!d){Sk(k[$>>2]|0,k[a+(aa+-2<<4)+16>>2]|0);Lk(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0)}else{e=k[a+(aa+-1<<4)+16>>2]|0;c=k[a+(aa+-2<<4)+16>>2]|0;if(e)c=qr($,c,e)|0;k[d+20>>2]=c;Dr($,k[ba>>2]|0)}k[ba+4>>2]=k[a+(aa+-4<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 291:case 240:{k[ba>>2]=2;break}case 241:{k[ba>>2]=0;break}case 239:{er($,a+(aa+-7<<4)+16|0,a+(aa+-6<<4)+16|0,ur(k[$>>2]|0,0,a+(aa+-4<<4)+16|0,0)|0,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa+-10<<4)+16>>2]|0,a+(aa+-11<<4)+16|0,k[a+(aa<<4)+16>>2]|0,0,k[a+(aa+-8<<4)+16>>2]|0)|0;break}case 229:{$=qr($,qr($,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 230:{$=qr($,qr($,0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 237:{$=qr($,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 238:{$=qr($,0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 245:{c=qr($,0,Ar($,0,a+(aa+-1<<4)+16|0,1)|0)|0;k[ba>>2]=c;rr($,c,a+(aa+-2<<4)+16|0,1);if(c){if((k[c>>2]|0)>(k[(k[$>>2]|0)+96>>2]|0)){k[_>>2]=20632;yh($,34544,_)}i[(k[c+4>>2]|0)+(((k[c>>2]|0)+-1|0)*20|0)+12>>0]=k[a+(aa<<4)+16>>2]}break}case 244:{c=Ar($,0,a+(aa+-1<<4)+16|0,1)|0;c=qr($,k[a+(aa+-4<<4)+16>>2]|0,c)|0;k[ba>>2]=c;rr($,c,a+(aa+-2<<4)+16|0,1);if(c){if((k[c>>2]|0)>(k[(k[$>>2]|0)+96>>2]|0)){k[_>>2]=20632;yh($,34544,_)}i[(k[c+4>>2]|0)+(((k[c>>2]|0)+-1|0)*20|0)+12>>0]=k[a+(aa<<4)+16>>2]}break}case 248:{q=k[a+(aa<<4)+16>>2]|0;n=k[a+(aa+-1<<4)+16>>2]|0;p=k[$>>2]|0;do if((i[p+65>>0]|0)==0?(Ln($)|0)==0:0){h=q+12|0;d=gq(p,k[q+16>>2]|0,k[h>>2]|0)|0;if(!d){if(!n){k[_>>2]=q;k[_+4>>2]=0;yh($,33056,_)}else Er($,k[h>>2]|0);i[$+17>>0]=1;break}if(i[d+51>>0]&3){k[_>>2]=0;yh($,33080,_);break}n=k[d+24>>2]|0;f:do if(n){h=k[p+20>>2]|0;if((h|0)>0){g=k[p+16>>2]|0;o=0;while(1){f=o+1|0;if((k[g+(o<<4)+12>>2]|0)==(n|0)){f=o;break f}if((f|0)<(h|0))o=f;else break}}else f=0}else f=-1e6;while(0);n=k[d+12>>2]|0;h=p+16|0;g=k[(k[h>>2]|0)+(f<<4)>>2]|0;e=(f|0)==1?13184:13208;if(((Xq($,9,e,0,g)|0)==0?(Xq($,(f|0)==0?10:12,k[d>>2]|0,k[n>>2]|0,g)|0)==0:0)?(G=Tq($)|0,(G|0)!=0):0){Z=k[$+408>>2]|0;Z=(Z|0)==0?$:Z;Fr($,f);Y=Z+328|0;k[Y>>2]=k[Y>>2]|1<<f;Z=Z+20|0;i[Z>>0]=l[Z>>0]|1;Z=k[d>>2]|0;k[_>>2]=k[(k[h>>2]|0)+(f<<4)>>2];k[_+4>>2]=e;k[_+8>>2]=Z;Gr($,33160,_);Hr($,f,28536,k[d>>2]|0);Ir($,f);Jr($,k[d+40>>2]|0,f);$=k[d>>2]|0;Ch(G,Bh(G,125,f,0,0)|0,$,0)}}while(0);Io(p,q);break}case 246:{k[ba>>2]=0;k[ba+4>>2]=0;break}case 250:case 249:{c=Tq($)|0;if(c){Bh(c,13,0,0,0)|0;$=c+96|0;k[$>>2]=k[$>>2]|1}break}case 251:{Kr($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0,0,0);break}case 252:{Kr($,a+(aa+-3<<4)+16|0,a+(aa+-2<<4)+16|0,a+(aa<<4)+16|0,0);break}case 253:{Kr($,a+(aa+-4<<4)+16|0,a+(aa+-3<<4)+16|0,a+(aa+-1<<4)+16|0,0);break}case 254:{Kr($,a+(aa+-3<<4)+16|0,a+(aa+-2<<4)+16|0,a+(aa<<4)+16|0,1);break}case 255:{Kr($,a+(aa+-4<<4)+16|0,a+(aa+-3<<4)+16|0,a+(aa+-1<<4)+16|0,1);break}case 264:{c=k[a+(aa+-3<<4)+16>>2]|0;e=(k[a+(aa<<4)+16>>2]|0)-c+(k[a+(aa<<4)+20>>2]|0)|0;d=k[a+(aa+-1<<4)+16>>2]|0;Z=$+488|0;w=k[Z>>2]|0;x=k[$>>2]|0;k[Z>>2]=0;g:do if((k[$+64>>2]|0)==0&(w|0)!=0){v=k[w>>2]|0;f=w+20|0;q=k[f>>2]|0;h:do if(q){p=k[x+20>>2]|0;if((p|0)>0){n=k[x+16>>2]|0;g=0;while(1){h=g+1|0;if((k[n+(g<<4)+12>>2]|0)==(q|0))break h;if((h|0)<(p|0))g=h;else{g=h;break}}}else g=0}else g=-1e6;while(0);k[w+28>>2]=d;u=(d|0)==0;if(!u){n=d;do{k[n+4>>2]=w;n=k[n+32>>2]|0}while((n|0)!=0)}k[X>>2]=v;if(!v)n=0;else{n=v;while(1)if(!(i[n>>0]|0))break;else n=n+1|0;n=n-v&1073741823}k[X+4>>2]=n;k[Y>>2]=$;t=x+16|0;q=k[t>>2]|0;k[Y+12>>2]=k[q+(g<<4)>>2];k[Y+4>>2]=k[q+(g<<4)+12>>2];k[Y+16>>2]=10720;k[Y+20>>2]=X;q=(g|0)==1;k[Y+8>>2]=q&1;if(!u)do{if(kr(Y,k[d+8>>2]|0)|0){d=0;e=w;break g}if(Lr(Y,k[d+20>>2]|0)|0){d=0;e=w;break g}if(Mr(Y,k[d+24>>2]|0)|0){d=0;e=w;break g}d=k[d+32>>2]|0}while((d|0)!=0);if(!(Lr(Y,k[w+12>>2]|0)|0)){n=x+145|0;if(!(i[n>>0]|0)){h=Tq($)|0;if(!h){d=0;e=w;break}Z=k[$+408>>2]|0;Fr($,g);Z=((Z|0)==0?$:Z)+328|0;k[Z>>2]=k[Z>>2]|1<<g;if((c|0)!=0?(o=ow(e|0,0,1,0)|0,o=rh(x,o,L)|0,(o|0)!=0):0){pw(o|0,c|0,e|0)|0;i[o+e>>0]=0}else o=0;Z=k[w+4>>2]|0;k[_>>2]=k[(k[t>>2]|0)+(g<<4)>>2];k[_+4>>2]=q?13184:13208;k[_+8>>2]=v;k[_+12>>2]=Z;k[_+16>>2]=o;Gr($,30008,_);rg(x,o);Ir($,g);k[_>>2]=v;Nr(h,g,zh(x,30072,_)|0);if(!(i[n>>0]|0)){d=0;e=w;break}}e=Nk((k[(k[t>>2]|0)+(g<<4)+12>>2]|0)+40|0,v,w)|0;if(e){i[x+65>>0]=1;d=0;break}d=k[f>>2]|0;if((d|0)==(k[w+24>>2]|0)){d=gn(d+8|0,k[w+4>>2]|0,_)|0;if(!d)d=0;else d=k[d+8>>2]|0;d=d+64|0;k[w+32>>2]=k[d>>2];k[d>>2]=w;d=0}else d=0}else{d=0;e=w}}else e=w;while(0);og(x,e);Kk(x,d);break}case 265:{A=a+(aa+-7<<4)+16|0;z=aa+-6|0;B=a+(z<<4)+16|0;h=k[a+(aa+-5<<4)+16>>2]|0;C=aa+-4|0;y=k[a+(C<<4)+16>>2]|0;C=k[a+(C<<4)+20>>2]|0;D=k[a+(aa+-2<<4)+16>>2]|0;E=k[a+(aa<<4)+16>>2]|0;d=k[a+(aa+-8<<4)+16>>2]|0;F=k[$>>2]|0;w=(k[a+(aa+-10<<4)+16>>2]|0)!=0;do if(w)if(!(k[a+(z<<4)+20>>2]|0)){k[Y>>2]=A;if(!D){n=0;o=0;break}else{q=1;Z=483;break}}else{yh($,29664,_);n=0;o=0;break}else{q=jr($,A,B,Y)|0;if((q|0)>-1&(D|0)!=0)Z=483;else{n=0;o=0}}while(0);do if((Z|0)==483){c=F+65|0;if(!(i[c>>0]|0)){u=F+145|0;if((i[u>>0]|0)!=0&(q|0)!=1){Z=D+12|0;rg(F,k[Z>>2]|0);k[Z>>2]=0}t=Or($,D)|0;if((i[u>>0]|0)==0?((t|0)!=0?(k[a+(z<<4)+20>>2]|0)==0:0):0)q=(k[t+68>>2]|0)==(k[(k[F+16>>2]|0)+28>>2]|0)?1:q;if((i[c>>0]|0)==0?(O=k[Y>>2]|0,Z=k[$>>2]|0,k[X>>2]=$,Z=k[Z+16>>2]|0,k[X+12>>2]=k[Z+(q<<4)>>2],k[X+4>>2]=k[Z+(q<<4)+12>>2],k[X+16>>2]=10720,k[X+20>>2]=O,k[X+8>>2]=(q|0)==1&1,(Pr(X,D)|0)==0):0){u=Or($,D)|0;if(!u){if((i[F+144>>0]|0)!=1){n=0;o=0;break}i[F+146>>0]=1;n=0;o=0;break}if(i[u+44>>0]&16){yh($,29712,_);n=0;o=0;break}o=$q(F,O)|0;if(o)if(!(Qr($,o)|0)){x=F+16|0;Z=gn((k[(k[x>>2]|0)+(q<<4)+12>>2]|0)+40|0,o,P)|0;if((Z|0)!=0?(k[Z+8>>2]|0)!=0:0)if(!d){k[_>>2]=O;yh($,29760,_);n=0;break}else{Fr($,q);n=0;break}v=k[u>>2]|0;if(!(Kc(v,25568,7)|0)){yh($,29792,_);n=$+64|0;k[n>>2]=(k[n>>2]|0)+1;n=0;break}p=k[u+12>>2]|0;if((p|0)!=0&(h|0)!=49){k[_>>2]=(h|0)==35?29872:29880;k[_+4>>2]=D;k[_+8>>2]=0;yh($,29832,_);n=0;break}g=(h|0)==49;if((p|0)==0&g){k[_>>2]=D;k[_+4>>2]=0;yh($,29888,_);n=0;break}f=u+68|0;u=k[f>>2]|0;i:do if(u){t=k[F+20>>2]|0;if((t|0)>0){d=k[x>>2]|0;e=0;while(1){c=e+1|0;if((k[d+(e<<4)+12>>2]|0)==(u|0)){c=e;break i}if((c|0)<(t|0))e=c;else break}}else c=0}else c=-1e6;while(0);u=k[x>>2]|0;d=k[u+(c<<4)>>2]|0;if(w)t=k[u+16>>2]|0;else t=d;u=(c|0)==1;if((Xq($,u|w?5:7,o,v,t)|0)==0?(Xq($,18,u?13184:13208,0,d)|0)==0:0){n=rh(F,36,0)|0;if(!n){n=0;break}v=n+0|0;d=v+36|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0));k[n>>2]=o;o=ph(F,k[D+16>>2]|0)|0;k[n+4>>2]=o;k[n+20>>2]=k[(k[x>>2]|0)+(q<<4)+12>>2];k[n+24>>2]=k[f>>2];i[n+8>>0]=y;i[n+9>>0]=g|(h|0)==35?1:2;o=Rr(F,E,1,0)|0;k[n+12>>2]=o;o=Sr(F,C)|0;k[n+16>>2]=o;k[$+488>>2]=n;o=0}else n=0}else n=0;else{n=0;o=0}}else{n=0;o=0}}else{n=0;o=0}}while(0);rg(F,o);Io(F,D);Mk(F,C);Lk(F,E);if(!(k[$+488>>2]|0))og(F,n);if(!(k[a+(z<<4)+20>>2]|0)){Z=A;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break a}else{Z=B;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break a}}case 269:case 266:{k[ba>>2]=35;break}case 267:{k[ba>>2]=31;break}case 268:{k[ba>>2]=49;break}case 284:{e=k[$>>2]|0;d=k[a+(aa+-1<<4)+16>>2]|0;c=k[a+(aa<<4)+16>>2]|0;f=i[a+(aa+-5<<4)+16>>0]|0;g=Tr(e,110,a+(aa+-4<<4)+16|0)|0;if(g){$=Ur(e,d,1)|0;k[g+24>>2]=$;$=Rr(e,c,1,0)|0;k[g+20>>2]=$;i[g+1>>0]=f}Sk(e,d);Lk(e,c);k[ba>>2]=g;break}case 271:case 270:{k[ba>>2]=l[a+(aa<<4)+14>>0];k[ba+4>>2]=0;break}case 272:{k[ba>>2]=110;k[ba+4>>2]=k[a+(aa<<4)+16>>2];break}case 296:case 275:{k[ba>>2]=0;break}case 297:case 276:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 277:{_=a+(aa+-1<<4)+16|0;$=a+(aa+-2<<4)+16|0;k[(k[(k[$>>2]|0)+36>>2]|0)+32>>2]=k[_>>2];k[(k[$>>2]|0)+36>>2]=k[_>>2];k[ba>>2]=k[$>>2];break}case 278:{$=a+(aa+-1<<4)+16|0;_=k[$>>2]|0;k[_+36>>2]=_;k[ba>>2]=k[$>>2];break}case 282:{yh($,20736,_);break}case 280:{X=a+(aa<<4)+16|0;Y=k[X+4>>2]|0;Z=ba;k[Z>>2]=k[X>>2];k[Z+4>>2]=Y;yh($,20640,_);break}case 283:{yh($,20824,_);break}case 286:{c=k[$>>2]|0;d=k[a+(aa<<4)+16>>2]|0;e=Tr(c,109,a+(aa+-2<<4)+16|0)|0;if(e){$=Rr(c,d,1,0)|0;k[e+20>>2]=$;i[e+1>>0]=10}Lk(c,d);k[ba>>2]=e;break}case 287:{e=k[$>>2]|0;g=k[a+(aa<<4)+16>>2]|0;c=rh(e,40,0)|0;if(!c){Rk(e,g,1);c=0}else{v=c+0|0;d=v+40|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0));i[c>>0]=119;k[c+8>>2]=g;i[c+1>>0]=10}k[ba>>2]=c;break}case 285:{g=k[$>>2]|0;f=k[a+(aa+-1<<4)+16>>2]|0;e=k[a+(aa<<4)+16>>2]|0;d=i[a+(aa+-4<<4)+16>>0]|0;c=Tr(g,108,a+(aa+-2<<4)+16|0)|0;if(!c)Mk(g,f);else{$=lr(g,e,1)|0;k[c+8>>2]=$;k[c+28>>2]=f;i[c+1>>0]=d}Rk(g,e,1);k[ba>>2]=c;break}case 288:{c=cr($,57,0,0,0)|0;k[ba>>2]=c;if(c)i[c+1>>0]=4;k[ba+4>>2]=k[a+(aa+-3<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 289:{c=cr($,57,0,0,a+(aa+-1<<4)+16|0)|0;k[ba>>2]=c;if(c)i[c+1>>0]=k[a+(aa+-3<<4)+16>>2];k[ba+4>>2]=k[a+(aa+-5<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 290:{k[ba>>2]=1;break}case 292:{k[ba>>2]=3;break}case 293:{d=k[a+(aa<<4)+16>>2]|0;c=k[a+(aa+-1<<4)+16>>2]|0;t=k[$>>2]|0;do if((i[t+65>>0]|0)==0?(Ln($)|0)==0:0){u=k[d+12>>2]|0;q=k[d+16>>2]|0;p=t+20|0;if((k[p>>2]|0)>0){g=(u|0)==0;f=t+16|0;e=0;n=0;do{h=(e|0)<2^e;o=k[f>>2]|0;if(!(!g?(id(k[o+(h<<4)>>2]|0,u)|0)!=0:0)){o=gn((k[o+(h<<4)+12>>2]|0)+40|0,q,H)|0;if(o){n=k[o+8>>2]|0;if(n)break}else n=0}e=e+1|0}while((e|0)<(k[p>>2]|0));if(n){Vr($,n);break}}if(!c){k[_>>2]=d;k[_+4>>2]=0;yh($,29600,_)}else Er($,u);i[$+17>>0]=1}while(0);Io(t,d);break}case 294:{_=k[a+(aa+-3<<4)+16>>2]|0;Wr($,24,29360,_,_,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0);break}case 303:{Yr($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0);break}case 304:{w=k[a+(aa+-3<<4)+16>>2]|0;u=a+(aa<<4)+16|0;v=k[$>>2]|0;d=v+24|0;e=k[d>>2]|0;do if((i[v+65>>0]|0)==0?(U=Zr($,0,w+8|0)|0,(U|0)!=0):0){o=k[$>>2]|0;x=U+68|0;q=k[x>>2]|0;j:do if(q){p=k[o+20>>2]|0;if((p|0)>0){o=k[o+16>>2]|0;h=0;while(1){n=h+1|0;if((k[o+(h<<4)+12>>2]|0)==(q|0)){n=h;break j}if((n|0)<(p|0))h=n;else break}}else n=0}else n=-1e6;while(0);c=k[(k[v+16>>2]|0)+(n<<4)>>2]|0;k[d>>2]=k[d>>2]|2097152;g=$q(v,u)|0;if(g){if((di(v,g,c)|0)==0?(gq(v,g,c)|0)==0:0){if(_r($,k[U>>2]|0)|0)break;if(Qr($,g)|0)break;o=k[U>>2]|0;if(k[U+12>>2]|0){k[_>>2]=o;yh($,26088,_);break}if(Xq($,26,c,o,0)|0)break;if(mr($,U)|0)break;if(!(i[U+44>>0]&16))f=0;else{o=k[U+60>>2]|0;k:do if(!o)o=0;else while(1){if((k[o>>2]|0)==(v|0))break k;o=k[o+24>>2]|0;if(!o){o=0;break}}while(0);f=(k[(k[k[o+8>>2]>>2]|0)+76>>2]|0)==0?0:o}o=Tq($)|0;if(!o)break;Z=(f|0)!=0;h=$+408|0;Y=k[h>>2]|0;Y=(Y|0)==0?$:Y;Fr($,n);X=Y+328|0;k[X>>2]=k[X>>2]|1<<n;Y=Y+20|0;i[Y>>0]=l[Y>>0]|Z&1;Ir($,n);if(Z){Y=$+72|0;Z=(k[Y>>2]|0)+1|0;k[Y>>2]=Z;Ch(o,Bh(o,97,0,Z,0)|0,g,0);Ch(o,Bh(o,152,Z,0,0)|0,f,-10);Z=k[h>>2]|0;i[((Z|0)==0?$:Z)+21>>0]=1}u=k[U>>2]|0;t=Sn(u,-1)|0;do if((k[d>>2]&524288|0)!=0?(Q=gn((k[x>>2]|0)+56|0,u,S)|0,(Q|0)!=0):0){o=k[Q+8>>2]|0;if(!o)break;h=o;o=0;do{o=$r(k[$>>2]|0,o,k[k[h>>2]>>2]|0)|0;h=k[h+12>>2]|0}while((h|0)!=0);if(!o)break;k[_>>2]=c;k[_+4>>2]=(n|0)==1?13184:13208;k[_+8>>2]=u;k[_+12>>2]=g;k[_+16>>2]=o;Gr($,26120,_);rg(v,o)}while(0);k[_>>2]=c;k[_+4>>2]=(n|0)==1?13184:13208;k[_+8>>2]=g;k[_+12>>2]=g;k[_+16>>2]=g;k[_+20>>2]=g;k[_+24>>2]=g;k[_+28>>2]=t;k[_+32>>2]=u;Gr($,26192,_);if(di(v,26576,c)|0){Z=k[U>>2]|0;k[_>>2]=c;k[_+4>>2]=g;k[_+8>>2]=Z;Gr($,26592,_)}n=as($,U)|0;if(n){k[_>>2]=g;k[_+4>>2]=g;k[_+8>>2]=n;Gr($,26656,_);rg(v,n)}do if(k[d>>2]&524288){n=gn((k[x>>2]|0)+56|0,k[U>>2]|0,_)|0;if(!n)break;n=k[n+8>>2]|0;if(!n)break;do{h=k[n>>2]|0;if((h|0)!=(U|0))bs($,h,k[h>>2]|0);n=k[n+12>>2]|0}while((n|0)!=0)}while(0);bs($,U,g);break}k[_>>2]=g;yh($,26024,_)}else g=0}else g=0;while(0);Io(v,w);rg(v,g);k[d>>2]=e;break}case 295:{_=k[a+(aa<<4)+16>>2]|0;Wr($,25,29176,_,0,0,_);break}case 300:{Xr($,0,0);break}case 302:{Yr($,0,0);break}case 301:{Xr($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0);break}case 305:{v=k[$>>2]|0;if((k[$+64>>2]|0)==0?(I=v+65|0,(i[I>>0]|0)==0):0){e=k[$+484>>2]|0;o=k[e+68>>2]|0;l:do if(o){n=k[v+20>>2]|0;if((n|0)>0){h=k[v+16>>2]|0;f=0;while(1){g=f+1|0;if((k[h+(f<<4)+12>>2]|0)==(o|0)){x=f;break l}if((g|0)<(n|0))f=g;else{x=g;break}}}else x=0}else x=-1e6;while(0);c=k[(k[v+16>>2]|0)+(x<<4)>>2]|0;d=(k[e>>2]|0)+16|0;p=(j[e+38>>1]|0)+-1|0;n=k[e+4>>2]|0;o=k[n+(p*24|0)+4>>2]|0;w=di(v,d,c)|0;if(!(Xq($,26,c,k[w>>2]|0,0)|0)){if(!o)q=0;else q=(i[o>>0]|0)==101?0:o;if(i[n+(p*24|0)+23>>0]&1){yh($,25608,_);break a}if(k[e+8>>2]|0){yh($,25640,_);break a}u=v+24|0;if((k[u>>2]&524288|0)!=0?(k[e+16>>2]|0)!=0&(q|0)!=0:0){yh($,25672,_);break a}t=(q|0)!=0;if(!((i[n+(p*24|0)+20>>0]|0)==0|t)){yh($,25736,_);break a}do if(t){k[K>>2]=0;if(cs(v,q,1,65,K)|0){i[I>>0]=1;break a}o=k[K>>2]|0;if(!o){yh($,25792,_);break a}else{Rh(o);break}}while(0);o=k[a+(aa<<4)+16>>2]|0;n=a+(aa<<4)+20|0;h=k[n>>2]|0;if((o|0)!=0?(R=ow(h|0,0,1,0)|0,R=rh(v,R,L)|0,(R|0)!=0):0){pw(R|0,o|0,h|0)|0;i[R+h>>0]=0;o=(k[n>>2]|0)+-1|0;n=k[u>>2]|0;m:do if((o|0)>0){o=R+o|0;do{Y=i[o>>0]|0;if(Y<<24>>24!=59?(i[10368+(Y&255)>>0]&1)==0:0)break m;i[o>>0]=0;o=o+-1|0}while(o>>>0>R>>>0)}while(0);k[u>>2]=k[u>>2]|2097152;Y=k[e+48>>2]|0;k[_>>2]=c;k[_+4>>2]=(x|0)==1?13184:13208;k[_+8>>2]=Y;k[_+12>>2]=R;k[_+16>>2]=Y+1;k[_+20>>2]=d;Gr($,25840,_);rg(v,R);k[u>>2]=n}o=t?3:2;q=Tq($)|0;if(q){n=$+19|0;g=i[n>>0]|0;do if(g<<24>>24){_=g+-1<<24>>24;i[n>>0]=_;h=k[$+((_&255)<<2)+24>>2]|0;if(!(_<<24>>24)){n=k[$+72>>2]|0;Z=663;break}else{d=g+-2<<24>>24;i[n>>0]=d;d=k[$+((d&255)<<2)+24>>2]|0;break}}else{h=$+72|0;n=(k[h>>2]|0)+1|0;k[h>>2]=n;h=n;Z=663}while(0);if((Z|0)==663){d=n+1|0;k[$+72>>2]=d}Bh(q,51,x,h,2)|0;f=q+96|0;k[f>>2]=k[f>>2]|1<<x;Bh(q,25,o,d,0)|0;f=Bh(q,83,d,0,h)|0;e=q+4|0;g=k[e>>2]|0;n=q+32|0;if(g)i[g+(((k[n>>2]|0)+-1|0)*20|0)+3>>0]=-112;Bh(q,52,x,2,d)|0;n=k[n>>2]|0;if(n>>>0>f>>>0)k[(k[e>>2]|0)+(f*20|0)+8>>2]=n;k[(k[q+24>>2]|0)+88>>2]=n+-1;ds($,h);ds($,d)}bs($,w,k[w>>2]|0)}}break}case 306:{t=k[$>>2]|0;i[t+250>>0]=0;c=k[a+(aa<<4)+16>>2]|0;u=t+65|0;do if((i[u>>0]|0)==0?(N=Zr($,0,c+8|0)|0,(N|0)!=0):0){if(i[N+44>>0]&16){yh($,25400,_);break}if(k[N+12>>2]|0){yh($,25440,_);break}if(!(_r($,k[N>>2]|0)|0)){n=k[N+68>>2]|0;n:do if(n){h=k[t+20>>2]|0;if((h|0)>0){g=k[t+16>>2]|0;o=0;while(1){f=o+1|0;if((k[g+(o<<4)+12>>2]|0)==(n|0)){f=o;break n}if((f|0)<(h|0))o=f;else break}}else f=0}else f=-1e6;while(0);q=rh(t,76,0)|0;if(q){v=q+0|0;d=v+76|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0));k[$+484>>2]=q;h=q+40|0;j[h>>1]=1;o=j[N+38>>1]|0;g=q+38|0;j[g>>1]=o;o=((((o<<16>>16)+-1|0)/8|0)*192|0)+192|0;n=rh(t,o,0)|0;if(n)kw(n|0,0,o|0)|0;o=q+4|0;k[o>>2]=n;k[_>>2]=k[N>>2];_=zh(t,25472,_)|0;k[q>>2]=_;n=k[o>>2]|0;if((n|0)==0|(_|0)==0){i[u>>0]=1;break}pw(n|0,k[N+4>>2]|0,(j[g>>1]|0)*24|0)|0;if((j[g>>1]|0)>0){n=0;do{_=k[o>>2]|0;Z=_+(n*24|0)|0;Y=ph(t,k[Z>>2]|0)|0;k[Z>>2]=Y;_=_+(n*24|0)+4|0;n=n+1|0;k[_+0>>2]=0;k[_+4>>2]=0;k[_+8>>2]=0;k[_+12>>2]=0}while((n|0)<(j[g>>1]|0))}k[q+68>>2]=k[(k[t+16>>2]|0)+(f<<4)+12>>2];k[q+48>>2]=k[N+48>>2];j[h>>1]=1;_=k[$+408>>2]|0;Fr($,f);_=((_|0)==0?$:_)+328|0;k[_>>2]=k[_>>2]|1<<f;if(Tq($)|0)Ir($,f)}}}while(0);Io(t,c);break}case 309:{es($,0);break}case 310:{es($,a+(aa<<4)+16|0);break}case 311:{d=a+(aa<<4)+16|0;Zq($,a+(aa+-3<<4)+16|0,a+(aa+-2<<4)+16|0,0,0,1,k[a+(aa+-4<<4)+16>>2]|0);o=k[$+484>>2]|0;if(o){c=k[$>>2]|0;n=k[o+68>>2]|0;o:do if(n){h=k[c+20>>2]|0;if((h|0)>0){f=k[c+16>>2]|0;e=0;while(1){g=e+1|0;if((k[f+(e<<4)+12>>2]|0)==(n|0)){g=e;break o}if((g|0)<(h|0))e=g;else break}}else g=0}else g=-1e6;while(0);e=o+44|0;i[e>>0]=l[e>>0]|16;k[o+52>>2]=0;fs(c,o,$q(c,d)|0);fs(c,o,0);fs(c,o,ph(c,k[o>>2]|0)|0);k[$+500>>2]=(k[d>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-(k[$+496>>2]|0);e=k[o+56>>2]|0;if(e)Xq($,29,k[o>>2]|0,k[e>>2]|0,k[(k[(k[$>>2]|0)+16>>2]|0)+(g<<4)>>2]|0)|0}break}case 322:{k[ba>>2]=0;break}case 324:case 323:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 325:{$=hs($,0,a+(aa+-5<<4)+16|0,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 326:{$=hs($,k[a+(aa+-7<<4)+16>>2]|0,a+(aa+-5<<4)+16|0,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 314:{gs($);k[$+512>>2]=0;k[$+516>>2]=0;break}case 318:case 317:case 316:{e=$+512|0;d=k[e>>2]|0;c=k[a+(aa<<4)+16>>2]|0;if(!d){k[e>>2]=c;c=k[a+(aa<<4)+20>>2]|0}else c=c+(k[a+(aa<<4)+20>>2]|0)-d|0;k[$+516>>2]=c;break}case 77:{k[ba>>2]=8;break}case 78:{k[ba>>2]=9;break}case 79:{k[ba>>2]=6;break}case 80:{k[ba>>2]=0;break}case 103:case 100:case 98:case 82:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 86:{k[ba+4>>2]=0;k[ba>>2]=0;break}case 87:{Z=a+(aa+-1<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break}case 90:{k[$+324>>2]=0;break}case 99:{k[ba>>2]=10;break}case 101:{i[ba>>0]=10;break}case 102:{i[ba>>0]=k[a+(aa<<4)+16>>2];break}case 104:{k[ba>>2]=4;break}case 105:{k[ba>>2]=5;break}case 106:{ir($,k[a+(aa<<4)+16>>2]|0,0,k[a+(aa+-1<<4)+16>>2]|0);break}case 93:{dr($,k[a+(aa+-3<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0,k[a+(aa+-2<<4)+16>>2]|0,0);break}case 94:{er($,0,0,0,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0,0,0,0,0)|0;break}case 95:{fr($,k[a+(aa+-2<<4)+16>>2]|0);break}case 96:{gr($,k[a+(aa+-6<<4)+16>>2]|0,a+(aa+-3<<4)+16|0,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0);d=k[a+(aa<<4)+16>>2]|0;e=k[$+484>>2]|0;if((e|0)!=0?(g=k[e+16>>2]|0,(g|0)!=0):0)i[g+24>>0]=d;break}case 109:{c=aa+-7|0;h=a+(aa+-3<<4)+16|0;g=a+(aa+-2<<4)+16|0;u=k[a+(aa<<4)+16>>2]|0;o=k[a+(aa+-6<<4)+16>>2]|0;n=k[a+(aa+-4<<4)+16>>2]|0;k[E>>2]=0;t=k[$>>2]|0;if((k[$+440>>2]|0)>0){yh($,35440,_);Rk(t,u,1);break a}Zq($,h,g,o,1,0,n);e=k[$+484>>2]|0;if((e|0)!=0?(k[$+64>>2]|0)==0:0){jr($,h,g,E)|0;o=k[e+68>>2]|0;p:do if(o){h=k[t+20>>2]|0;if((h|0)>0){g=k[t+16>>2]|0;f=0;while(1){n=f+1|0;if((k[g+(f<<4)+12>>2]|0)==(o|0)){n=f;break p}if((n|0)<(h|0))f=n;else break}}else n=0}else n=-1e6;while(0);_=k[E>>2]|0;Z=k[$>>2]|0;k[X>>2]=$;Z=k[Z+16>>2]|0;k[X+12>>2]=k[Z+(n<<4)>>2];k[X+4>>2]=k[Z+(n<<4)+12>>2];k[X+16>>2]=35480;k[X+20>>2]=_;k[X+8>>2]=(n|0)==1&1;if(kr(X,u)|0){Rk(t,u,1);break a}_=lr(t,u,1)|0;k[e+12>>2]=_;Rk(t,u,1);if(i[t+65>>0]|0)break a;if(!(i[t+145>>0]|0))mr($,e)|0;g=$+504|0;f=k[g>>2]|0;g=k[g+4>>2]|0;_=Y;k[_>>2]=f;k[_+4>>2]=g;_=i[f>>0]|0;if(!(_<<24>>24==59|_<<24>>24==0)){f=f+g|0;k[Y>>2]=f}h=Y+4|0;k[h>>2]=0;n=k[a+(c<<4)+16>>2]|0;g=f-n|0;do{_=g;g=g+-1|0;e=n+g|0;if((_|0)<=0)break}while((i[10368+(l[e>>0]|0)>>0]&1)!=0);k[Y>>2]=e;k[h>>2]=1;_q($,0,Y,0,0);break a}Rk(t,u,1);break}case 110:{ir($,k[a+(aa<<4)+16>>2]|0,1,k[a+(aa+-1<<4)+16>>2]|0);break}case 111:{k[w+0>>2]=k[5124];k[w+4>>2]=k[5125];k[w+8>>2]=k[5126];k[w+12>>2]=k[5127];k[w+16>>2]=k[5128];_=a+(aa<<4)+16|0;nr($,k[_>>2]|0,w)|0;Rk(k[$>>2]|0,k[_>>2]|0,1);break}case 112:{o=k[a+(aa<<4)+16>>2]|0;do if(o){k[o+68>>2]=k[a+(aa+-1<<4)+16>>2];e=k[o+52>>2]|0;if(e){f=128;g=1;h=o;n=0;while(1){k[h+56>>2]=n;Y=h+6|0;Z=m[Y>>1]|64;j[Y>>1]=Z;f=Z&f;if(!e)break;Z=e;e=k[e+52>>2]|0;g=g+1|0;n=h;h=Z}if(f){$=o+6|0;j[$>>1]=m[$>>1]|256;break}Z=k[(k[$>>2]|0)+104>>2]|0;if((Z|0)>0&(g|0)>(Z|0))yh($,20520,_)}}else Vn(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0);while(0);k[ba>>2]=o;break}case 119:case 113:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 114:{c=k[a+(aa<<4)+16>>2]|0;do if(c){if(k[c+52>>2]|0){k[e+4>>2]=0;c=pr($,0,or($,0,0,0,e,c,0,0)|0,0,0,0,0,0,0,0)|0;if(!c){Z=192;break}}_=k[a+(aa+-1<<4)+16>>2]|0;i[c+4>>0]=_;k[c+52>>2]=k[a+(aa+-2<<4)+16>>2];if((_|0)!=116)i[$+22>>0]=1}else Z=192;while(0);if((Z|0)==192){Rk(k[$>>2]|0,k[a+(aa+-2<<4)+16>>2]|0,1);c=0}k[ba>>2]=c;break}case 116:{k[ba>>2]=116;break}case 169:{c=k[a+(aa+-5<<4)+16>>2]|0;if(c){_=$+532|0;k[c+4>>2]=k[_>>2];k[_>>2]=c;i[$+449>>0]=1}_=a+(aa+-2<<4)+16|0;tr($,k[_>>2]|0,a+(aa+-1<<4)+16|0);wr($,k[_>>2]|0,k[a+(aa<<4)+16>>2]|0);break}case 172:{e=k[a+(aa+-7<<4)+16>>2]|0;if(e){Z=$+532|0;k[e+4>>2]=k[Z>>2];k[Z>>2]=e;i[$+449>>0]=1}f=a+(aa+-4<<4)+16|0;tr($,k[f>>2]|0,a+(aa+-3<<4)+16|0);g=a+(aa+-1<<4)+16|0;e=k[g>>2]|0;if(e){if((k[e>>2]|0)>(k[(k[$>>2]|0)+96>>2]|0)){k[_>>2]=20560;yh($,34544,_);e=k[g>>2]|0}}else e=0;xr($,k[f>>2]|0,e,k[a+(aa<<4)+16>>2]|0,l[a+(aa+-5<<4)+16>>0]|0);break}case 176:{c=k[a+(aa+-6<<4)+16>>2]|0;if(c){_=$+532|0;k[c+4>>2]=k[_>>2];k[_>>2]=c;i[$+449>>0]=1}yr($,k[a+(aa+-3<<4)+16>>2]|0,0,k[a+(aa+-2<<4)+16>>2]|0,l[a+(aa+-5<<4)+16>>0]|0);break}case 173:{_=qr($,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=_;rr($,_,a+(aa+-2<<4)+16|0,1);break}case 174:{_=qr($,0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=_;rr($,_,a+(aa+-2<<4)+16|0,1);break}case 175:{c=k[a+(aa+-5<<4)+16>>2]|0;if(c){_=$+532|0;k[c+4>>2]=k[_>>2];k[_>>2]=c;i[$+449>>0]=1}yr($,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,l[a+(aa+-4<<4)+16>>0]|0);break}case 181:{$=zr(k[$>>2]|0,k[a+(aa+-2<<4)+16>>2]|0,a+(aa<<4)+16|0)|0;k[ba>>2]=$;break}case 182:{$=zr(k[$>>2]|0,0,a+(aa<<4)+16|0)|0;k[ba>>2]=$;break}case 183:{$=a+(aa<<4)+16|0;k[ba+0>>2]=k[$+0>>2];k[ba+4>>2]=k[$+4>>2];k[ba+8>>2]=k[$+8>>2];break}case 177:{i[ba>>0]=i[a+(aa<<4)+16>>0]|0;break}case 178:{i[ba>>0]=5;break}case 184:{k[ba>>2]=k[a+(aa+-1<<4)+16>>2];k[ba+4>>2]=k[a+(aa+-2<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 191:case 190:case 185:{_=a+(aa<<4)+16|0;$=cr($,l[a+(aa<<4)+14>>0]|0,0,0,_)|0;k[ba>>2]=$;$=k[_>>2]|0;k[ba+4>>2]=$;k[ba+8>>2]=$+(k[a+(aa<<4)+20>>2]|0);break}case 187:case 186:{_=a+(aa<<4)+16|0;$=cr($,27,0,0,_)|0;k[ba>>2]=$;$=k[_>>2]|0;k[ba+4>>2]=$;k[ba+8>>2]=$+(k[a+(aa<<4)+20>>2]|0);break}case 188:{Z=a+(aa+-2<<4)+16|0;_=a+(aa<<4)+16|0;$=cr($,122,cr($,27,0,0,Z)|0,cr($,27,0,0,_)|0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[Z>>2];k[ba+8>>2]=(k[_>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 189:{Z=a+(aa+-4<<4)+16|0;_=a+(aa<<4)+16|0;$=cr($,122,cr($,27,0,0,Z)|0,cr($,122,cr($,27,0,0,a+(aa+-2<<4)+16|0)|0,cr($,27,0,0,_)|0,0)|0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[Z>>2];k[ba+8>>2]=(k[_>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 192:{u=a+(aa<<4)+16|0;t=a+(aa<<4)+20|0;do if(((k[t>>2]|0)>>>0>1?(z=k[u>>2]|0,(i[z>>0]|0)==35):0)?((l[z+1>>0]|0)+-48|0)>>>0<10:0){if(!(i[$+18>>0]|0)){k[_>>2]=u;yh($,20432,_);k[ba>>2]=0;break}h=cr($,159,0,0,u)|0;k[ba>>2]=h;if(h)In((k[u>>2]|0)+1|0,h+28|0)|0}else Z=298;while(0);q:do if((Z|0)==298?(M=cr($,135,0,0,u)|0,k[ba>>2]=M,T=k[u>>2]|0,k[ba+4>>2]=T,k[ba+8>>2]=T+(k[t>>2]|0),T=k[$>>2]|0,(M|0)!=0):0){w=k[M+8>>2]|0;h=w+1|0;do if(i[h>>0]|0){v=(w|0)==0;if(v)x=0;else{o=w;while(1)if(!(i[o>>0]|0))break;else o=o+1|0;x=o-w&1073741823}r:do if((i[w>>0]|0)==63){Y=Zl(h,D,x+-1|0,1)|0;f=D;g=k[f>>2]|0;f=k[f+4>>2]|0;o=g&65535;j[M+32>>1]=o;h=k[T+124>>2]|0;Z=((h|0)<0)<<31>>31;if((f|0)<0|(f|0)==0&g>>>0<1|(Y|0)!=0|((f|0)>(Z|0)|(f|0)==(Z|0)&g>>>0>h>>>0)){k[_>>2]=h;yh($,33296,_);o=0}h=$+440|0;Z=k[h>>2]|0;Y=((Z|0)<0)<<31>>31;if((f|0)>(Y|0)|(f|0)==(Y|0)&g>>>0>Z>>>0)k[h>>2]=g}else{h=k[$+444>>2]|0;s:do if((h|0)>0){g=k[$+472>>2]|0;o=0;e=0;while(1){f=k[g+(o<<2)>>2]|0;if((f|0)!=0?(dw(f,w)|0)==0:0)break;e=e+1<<16>>16;o=e<<16>>16;if((o|0)>=(h|0)){Z=315;break s}}o=o+1&65535;h=M+32|0;j[h>>1]=o;if(o<<16>>16)break r}else Z=315;while(0);if((Z|0)==315)h=M+32|0;Z=$+440|0;o=(k[Z>>2]|0)+1|0;k[Z>>2]=o;o=o&65535;j[h>>1]=o}while(0);f=o<<16>>16;if(o<<16>>16>0){o=$+444|0;if((f|0)>(k[o>>2]|0)){h=$+472|0;g=wo(T,k[h>>2]|0,f<<2,0)|0;if(!g)break q;k[h>>2]=g;Z=k[o>>2]|0;kw(g+(Z<<2)|0,0,f-Z<<2|0)|0;k[o>>2]=f}if((i[w>>0]|0)==63){h=f+-1|0;if(!(k[(k[$+472>>2]|0)+(h<<2)>>2]|0))o=0;else break}else{o=f+-1|0;h=o;o=k[(k[$+472>>2]|0)+(o<<2)>>2]|0}g=$+472|0;rg(T,o);if(!v?(n=ow(x|0,0,1,0)|0,n=rh(T,n,L)|0,(n|0)!=0):0){pw(n|0,w|0,x|0)|0;i[n+x>>0]=0}else n=0;k[(k[g>>2]|0)+(h<<2)>>2]=n}}else{Y=$+440|0;Z=(k[Y>>2]|0)+1|0;k[Y>>2]=Z;j[M+32>>1]=Z}while(0);if((k[$+64>>2]|0)==0?(k[$+440>>2]|0)>(k[T+124>>2]|0):0)yh($,33344,_)}while(0);$=k[u>>2]|0;k[ba+4>>2]=$;k[ba+8>>2]=$+(k[t>>2]|0);break}case 196:{_=a+(aa+-3<<4)+16|0;$=Br($,0,_)|0;k[ba>>2]=$;k[ba+4>>2]=k[_>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 197:{_=a+(aa<<4)+16|0;$=Br($,0,_)|0;k[ba>>2]=$;$=k[_>>2]|0;k[ba+4>>2]=$;k[ba+8>>2]=$+(k[a+(aa<<4)+20>>2]|0);break}case 193:{Z=aa+-2|0;_=a+(aa<<4)+16|0;$=Ar($,k[a+(Z<<4)+16>>2]|0,_,1)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(Z<<4)+20>>2];k[ba+8>>2]=(k[_>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 194:{$=cr($,38,k[a+(aa+-3<<4)+16>>2]|0,0,a+(aa+-1<<4)+16|0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(aa+-5<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 195:{e=a+(aa+-1<<4)+16|0;c=k[e>>2]|0;if(c){if((k[c>>2]|0)>(k[(k[$>>2]|0)+112>>2]|0)){k[_>>2]=a+(aa+-4<<4)+16;yh($,20576,_);c=k[e>>2]|0}}else c=0;_=a+(aa+-4<<4)+16|0;c=Br($,c,_)|0;k[ba>>2]=c;k[ba+4>>2]=k[_>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);if(!((c|0)==0?1:(j[a+(aa+-2<<4)+16>>1]|0)==0)){$=c+4|0;k[$>>2]=k[$>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{_=aa+-2|0;$=cr($,l[a+(aa+-1<<4)+14>>0]|0,k[a+(_<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 206:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;k[ba+8>>2]=0;break}case 207:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;k[ba+8>>2]=1;break}case 208:{e=aa+-2|0;_=aa+-1|0;c=Br($,qr($,qr($,0,k[a+(aa<<4)+16>>2]|0)|0,k[a+(e<<4)+16>>2]|0)|0,a+(_<<4)+16|0)|0;k[ba>>2]=c;if(k[a+(_<<4)+24>>2]|0){c=cr($,19,c,0,0)|0;k[ba>>2]=c}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];if(c){$=c+4|0;k[$>>2]=k[$>>2]|128}break}case 210:{_=aa+-1|0;$=cr($,l[a+(aa<<4)+14>>0]|0,k[a+(_<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 209:{e=aa+-4|0;_=aa+-3|0;c=Br($,qr($,qr($,qr($,0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(e<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0,a+(_<<4)+16|0)|0;k[ba>>2]=c;if(k[a+(_<<4)+24>>2]|0){c=cr($,19,c,0,0)|0;k[ba>>2]=c}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];if(c){$=c+4|0;k[$>>2]=k[$>>2]|128}break}case 223:{e=a+(aa+-1<<4)+16|0;c=k[e>>2]|0;do if(c){if((k[c>>2]|0)==1){_=k[c+4>>2]|0;c=k[_>>2]|0;k[_>>2]=0;Sk(k[$>>2]|0,k[e>>2]|0);if(c){_=c+4|0;k[_>>2]=k[_>>2]&-769|512}$=cr($,(k[a+(aa+-3<<4)+16>>2]|0)!=0?78:79,k[a+(aa+-4<<4)+16>>2]|0,c,0)|0;k[ba>>2]=$;break}c=cr($,75,k[a+(aa+-4<<4)+16>>2]|0,0,0)|0;k[ba>>2]=c;if(!c){Sk(k[$>>2]|0,k[e>>2]|0);c=0}else{k[c+20>>2]=k[e>>2];c=k[ba>>2]|0;Dr($,c)}if(k[a+(aa+-3<<4)+16>>2]|0){$=cr($,19,c,0,0)|0;k[ba>>2]=$}}else{_=cr($,132,0,0,20616+(k[a+(aa+-3<<4)+16>>2]<<3)|0)|0;k[ba>>2]=_;Lk(k[$>>2]|0,k[a+(aa+-4<<4)+16>>2]|0)}while(0);k[ba+4>>2]=k[a+(aa+-4<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 211:{_=aa+-2|0;$=cr($,77,k[a+(_<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 212:{Y=aa+-2|0;Z=a+(aa<<4)+16|0;_=cr($,73,k[a+(Y<<4)+16>>2]|0,k[Z>>2]|0,0)|0;k[ba>>2]=_;k[ba+4>>2]=k[a+(Y<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];Cr($,k[Z>>2]|0,_,76);break}case 213:{Y=aa+-3|0;Z=a+(aa<<4)+16|0;_=cr($,148,k[a+(Y<<4)+16>>2]|0,k[Z>>2]|0,0)|0;k[ba>>2]=_;k[ba+4>>2]=k[a+(Y<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];Cr($,k[Z>>2]|0,_,77);break}case 215:case 214:{_=aa+-1|0;$=cr($,l[a+(_<<4)+14>>0]|0,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 216:{$=cr($,157,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(aa+-1<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 217:{$=cr($,158,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(aa+-1<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 220:{d=qr($,qr($,0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0;e=aa+-4|0;c=cr($,74,k[a+(e<<4)+16>>2]|0,0,0)|0;k[ba>>2]=c;if(!c)Sk(k[$>>2]|0,d);else k[c+20>>2]=d;if(k[a+(aa+-3<<4)+16>>2]|0){$=cr($,19,k[ba>>2]|0,0,0)|0;k[ba>>2]=$}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 224:{c=cr($,119,0,0,0)|0;k[ba>>2]=c;if(!c)Rk(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,1);else{k[c+20>>2]=k[a+(aa+-1<<4)+16>>2];_=k[ba>>2]|0;Z=_+4|0;k[Z>>2]=k[Z>>2]|2099200;Dr($,_)}k[ba+4>>2]=k[a+(aa+-2<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 118:{$=pr($,k[a+(aa+-6<<4)+16>>2]|0,k[a+(aa+-5<<4)+16>>2]|0,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-3<<4)+16>>2]|0,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,j[a+(aa+-7<<4)+16>>1]|0,k[a+(aa<<4)+16>>2]|0,k[a+(aa<<4)+20>>2]|0)|0;k[ba>>2]=$;break}case 120:{$=pr($,k[a+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;k[ba>>2]=$;break}case 121:{c=pr($,k[a+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!c){k[ba>>2]=k[a+(aa+-4<<4)+16>>2];break a}else{i[c+4>>0]=116;k[c+52>>2]=k[a+(aa+-4<<4)+16>>2];k[ba>>2]=c;break a}}case 122:{j[ba>>1]=1;break}case 124:case 123:{j[ba>>1]=0;break}case 243:case 125:{k[ba>>2]=k[a+(aa+-1<<4)+16>>2];break}case 242:case 236:case 161:case 154:case 126:{k[ba>>2]=0;break}case 127:{e=aa+-1|0;g=qr($,k[a+(aa+-2<<4)+16>>2]|0,k[a+(e<<4)+16>>2]|0)|0;k[ba>>2]=g;if(k[a+(aa<<4)+20>>2]|0)rr($,g,a+(aa<<4)+16|0,1);n=k[$>>2]|0;if(g){h=(k[g+4>>2]|0)+(((k[g>>2]|0)+-1|0)*20|0)+8|0;rg(n,k[h>>2]|0);f=k[a+(e<<4)+20>>2]|0;g=(k[a+(e<<4)+24>>2]|0)-f|0;if((f|0)!=0?(c=ow(g|0,((g|0)<0)<<31>>31|0,1,0)|0,c=rh(n,c,L)|0,(c|0)!=0):0){pw(c|0,f|0,g|0)|0;i[c+g>>0]=0}else c=0;k[h>>2]=c}break}case 133:{e=rh(k[$>>2]|0,80,0)|0;if(e){v=e+0|0;d=v+80|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0))}k[ba>>2]=e;break}case 134:{g=k[a+(aa<<4)+16>>2]|0;k[ba>>2]=g;if(g){e=k[g>>2]|0;d=e+-1|0;if((d|0)>0)while(1){i[g+(d*72|0)+44>>0]=i[g+((e+-2|0)*72|0)+44>>0]|0;e=d+-1|0;if((e|0)>0){$=d;d=e;e=$}else break}i[g+44>>0]=0}break}case 128:{Z=k[$>>2]|0;k[_>>2]=0;k[_+4>>2]=0;_=sr(Z,116,_,0)|0;$=qr($,k[a+(aa+-1<<4)+16>>2]|0,_)|0;k[ba>>2]=$;break}case 132:{k[ba+4>>2]=0;break}case 129:{_=cr($,116,0,0,a+(aa<<4)+16|0)|0;_=cr($,122,cr($,27,0,0,a+(aa+-2<<4)+16|0)|0,_,0)|0;$=qr($,k[a+(aa+-3<<4)+16>>2]|0,_)|0;k[ba>>2]=$;break}case 136:{k[ba>>2]=0;break}case 137:{_=or($,k[a+(aa+-6<<4)+16>>2]|0,a+(aa+-5<<4)+16|0,a+(aa+-4<<4)+16|0,a+(aa+-3<<4)+16|0,0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=_;tr($,_,a+(aa+-2<<4)+16|0);break}case 135:{c=k[a+(aa+-1<<4)+16>>2]|0;k[ba>>2]=c;if((c|0)!=0?(t=k[c>>2]|0,(t|0)>0):0)i[c+((t+-1|0)*72|0)+44>>0]=k[a+(aa<<4)+16>>2];break}case 138:{$=or($,k[a+(aa+-6<<4)+16>>2]|0,0,0,a+(aa+-2<<4)+16|0,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 139:{e=a+(aa+-6<<4)+16|0;g=k[e>>2]|0;if((((g|0)==0?(k[a+(aa+-2<<4)+20>>2]|0)==0:0)?(k[a+(aa+-1<<4)+16>>2]|0)==0:0)?(k[a+(aa<<4)+16>>2]|0)==0:0){k[ba>>2]=k[a+(aa+-4<<4)+16>>2];break a}n=a+(aa+-4<<4)+16|0;d=k[n>>2]|0;h=k[d>>2]|0;if((h|0)==1){e=or($,g,0,0,a+(aa+-2<<4)+16|0,0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=e;if(e){X=(k[e>>2]|0)+-1|0;_=k[n>>2]|0;Z=_+16|0;k[e+(X*72|0)+16>>2]=k[Z>>2];Y=_+12|0;k[e+(X*72|0)+12>>2]=k[Y>>2];_=_+28|0;k[e+(X*72|0)+28>>2]=k[_>>2];k[Y>>2]=0;k[Z>>2]=0;k[_>>2]=0}Io(k[$>>2]|0,k[n>>2]|0);break a}if(d){f=h+-1|0;if((f|0)>0){g=h;while(1){i[d+(f*72|0)+44>>0]=i[d+((g+-2|0)*72|0)+44>>0]|0;g=f+-1|0;if((g|0)>0){_=f;f=g;g=_}else break}}i[d+44>>0]=0}_=pr($,0,d,0,0,0,0,512,0,0)|0;$=or($,k[e>>2]|0,0,0,a+(aa+-2<<4)+16|0,_,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 149:case 140:{k[ba>>2]=0;k[ba+4>>2]=0;break}case 144:{$=vr($,a+(aa+-1<<4)+16|0,0,0)|0;k[ba>>2]=$;break}case 145:{$=vr($,a+(aa+-2<<4)+16|0,a+(aa+-1<<4)+16|0,0)|0;k[ba>>2]=$;break}case 146:{$=vr($,a+(aa+-3<<4)+16|0,a+(aa+-2<<4)+16|0,a+(aa+-1<<4)+16|0)|0;k[ba>>2]=$;break}case 233:case 231:case 171:case 164:case 147:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{k[ba>>2]=0;break}case 151:{k[ba>>2]=0;k[ba+4>>2]=1;break}case 143:{k[ba>>2]=1;break}case 142:{$=ur(k[$>>2]|0,0,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0)|0;k[ba>>2]=$;break}case 235:case 162:case 155:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 156:{c=qr($,k[a+(aa+-3<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0)|0;k[ba>>2]=c;if(c)i[(k[c+4>>2]|0)+(((k[c>>2]|0)+-1|0)*20|0)+12>>0]=k[a+(aa<<4)+16>>2];break}case 157:{c=qr($,0,k[a+(aa+-1<<4)+16>>2]|0)|0;k[ba>>2]=c;if((c|0)!=0?(d=k[c+4>>2]|0,(d|0)!=0):0)i[d+12>>0]=k[a+(aa<<4)+16>>2];break}case 179:case 153:{k[ba>>2]=0;break}case 180:case 152:{k[ba>>2]=k[a+(aa+-1<<4)+16>>2];break}case 160:case 158:{k[ba>>2]=0;break}case 159:{k[ba>>2]=1;break}case 165:{k[ba>>2]=0;k[ba+4>>2]=0;break}case 166:{k[ba>>2]=k[a+(aa<<4)+16>>2];k[ba+4>>2]=0;break}case 167:{k[ba>>2]=k[a+(aa+-2<<4)+16>>2];k[ba+4>>2]=k[a+(aa<<4)+16>>2];break}case 168:{k[ba+4>>2]=k[a+(aa+-2<<4)+16>>2];k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 19:{if((Xq($,22,37120,0,0)|0)==0?(x=Tq($)|0,(x|0)!=0):0)Bh(x,3,1,1,0)|0;break}case 22:{Yq($,0,a+(aa<<4)+16|0);break}case 23:{Yq($,1,a+(aa<<4)+16|0);break}case 24:{Yq($,2,a+(aa<<4)+16|0);break}default:{}}while(0);c=i[20912+(b<<1)>>0]|0;h=c&255;g=i[20913+(b<<1)>>0]|0;f=g&255;n=(k[a>>2]|0)-f|0;k[a>>2]=n;e=j[22184+((j[21568+(m[a+(aa-f<<4)+12>>1]<<1)>>1]|0)+h<<1)>>1]|0;d=e&65535;do if((e&65535)<642)if(!(g<<24>>24)){pq(a,d,h,ba);break}else{k[a>>2]=n+1;aa=1-f+aa|0;j[a+(aa<<4)+12>>1]=e;i[a+(aa<<4)+14>>0]=c;aa=a+(aa<<4)+16|0;k[aa+0>>2]=k[ba+0>>2];k[aa+4>>2]=k[ba+4>>2];k[aa+8>>2]=k[ba+8>>2];break}else{c=k[ca>>2]|0;if((n|0)>-1)do Un(a);while((k[a>>2]|0)>-1);k[ca>>2]=c}while(0);r=da;return}function sq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,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;aa=r;r=r+64|0;if((r|0)>=(s|0))ka();$=aa+8|0;W=aa;h=aa+24|0;d=aa+16|0;f=Cq(a,0,d)|0;do if(!f){if(k[d>>2]|0){f=is(a,b)|0;if(!f)c=0;else e=4}else{f=1;e=4}if((e|0)==4){_=a+43|0;e=(i[_>>0]|0)==0;do if(!(i[a+46>>0]&2)){if(e?(g=a+4|0,Z=k[g>>2]|0,fc[k[(k[Z>>2]|0)+40>>2]&63](Z,24,0)|0,g=k[g>>2]|0,g=uc[k[(k[g>>2]|0)+56>>2]&31](g,0,1,10)|0,(g|0)!=0):0){d=f;c=g;break}Z=a+44|0;i[Z>>0]=1;e=Cq(a,0,d)|0;if(!e){d=is(a,b)|0;if(!d){d=0;c=0}else{Y=l[a+45>>0]|0;X=Y+1|0;Y=7-Y|0;if(!((i[_>>0]|0)==0?(c=k[a+4>>2]|0,c=uc[k[(k[c>>2]|0)+56>>2]&31](c,X,Y,10)|0,(c|0)!=0):0)){f=a+52|0;e=f+48|0;do{k[f>>2]=0;f=f+4|0}while((f|0)<(e|0));Q=a+8|0;c=k[Q>>2]|0;c=wc[k[(k[c>>2]|0)+24>>2]&127](c,W)|0;a:do if(!c){R=W;P=k[R+4>>2]|0;b:do if((P|0)>0|(P|0)==0&(k[R>>2]|0)>>>0>32){c=k[Q>>2]|0;c=yc[k[(k[c>>2]|0)+8>>2]&31](c,h,32,0,0)|0;if(c)break a;g=l[h+3>>0]|0;e=l[h+9>>0]<<16|l[h+8>>0]<<24;c=l[h+10>>0]<<8;f=e|c|l[h+11>>0];if(((l[h+1>>0]<<16|l[h>>0]<<24|l[h+2>>0]<<8|g&254|0)==931071618?!((f+-1&f|0)!=0|(f|0)>65536|(f|0)<512):0)?(R=g&1,S=a+65|0,i[S>>0]=R,T=a+36|0,k[T>>2]=f,k[a+104>>2]=l[h+13>>0]<<16|l[h+12>>0]<<24|l[h+14>>0]<<8|l[h+15>>0],U=a+84|0,P=h+16|0,N=P,N=l[N>>0]|l[N+1>>0]<<8|l[N+2>>0]<<16|l[N+3>>0]<<24,P=P+4|0,P=l[P>>0]|l[P+1>>0]<<8|l[P+2>>0]<<16|l[P+3>>0]<<24,V=U,O=V,i[O>>0]=N,i[O+1>>0]=N>>8,i[O+2>>0]=N>>16,i[O+3>>0]=N>>24,V=V+4|0,i[V>>0]=P,i[V+1>>0]=P>>8,i[V+2>>0]=P>>16,i[V+3>>0]=P>>24,V=a+76|0,Dq(R^1,h,24,0,V),(k[V>>2]|0)==(l[h+25>>0]<<16|l[h+24>>0]<<24|l[h+26>>0]<<8|l[h+27>>0]|0)):0){P=a+80|0;if((k[P>>2]|0)!=(l[h+29>>0]<<16|l[h+28>>0]<<24|l[h+30>>0]<<8|l[h+31>>0]|0)){f=0;c=0;break}if((l[h+5>>0]<<16|l[h+4>>0]<<24|l[h+6>>0]<<8|l[h+7>>0]|0)!=3007e3){k[$>>2]=49983;k[$+4>>2]=10788;gd(14,14848,$);c=14;break a}t=f+24|0;R=Yc(t)|0;if(!R){c=7;break a}u=R+24|0;v=((t|0)<0)<<31>>31;h=ow(t|0,v|0,32,0)|0;g=L;O=W;N=k[O+4>>2]|0;c:do if(!((g|0)>(N|0)|((g|0)==(N|0)?h>>>0>(k[O>>2]|0)>>>0:0))){w=R+8|0;x=R+1|0;y=R+2|0;z=R+3|0;A=R+16|0;B=R+17|0;C=R+18|0;D=R+19|0;E=R+20|0;F=R+21|0;G=R+22|0;H=R+23|0;I=R+4|0;J=R+5|0;K=R+6|0;M=R+7|0;N=a+68|0;O=a+72|0;p=(e>>>16|c)&65535;q=a+66|0;m=32;e=0;f=0;n=0;o=1;while(1){c=k[Q>>2]|0;c=yc[k[(k[c>>2]|0)+8>>2]&31](c,R,t,m,e)|0;if(c){e=36;break}if(cw(U,w,8)|0){c=n;e=37;break}e=l[x>>0]<<16|l[R>>0]<<24|l[y>>0]<<8|l[z>>0];if(!e){c=n;e=37;break}m=(i[S>>0]|0)==0&1;Dq(m,R,8,V,V);Dq(m,u,k[T>>2]|0,V,V);if((k[V>>2]|0)!=(l[B>>0]<<16|l[A>>0]<<24|l[C>>0]<<8|l[D>>0]|0)){c=n;e=37;break}if((k[P>>2]|0)!=(l[F>>0]<<16|l[E>>0]<<24|l[G>>0]<<8|l[H>>0]|0)){c=n;break c}m=l[J>>0]<<16|l[I>>0]<<24|l[K>>0]<<8|l[M>>0];c=dp(a,o,e)|0;if(c){e=36;break}if(!m)c=n;else{k[N>>2]=o;k[O>>2]=m;j[q>>1]=p;f=k[V>>2]|0;c=k[P>>2]|0}e=ow(h|0,g|0,t|0,v|0)|0;m=L;n=W;ba=k[n+4>>2]|0;if((m|0)>(ba|0)|((m|0)==(ba|0)?e>>>0>(k[n>>2]|0)>>>0:0))break c;else{ca=g;ba=h;h=e;g=m;n=c;o=o+1|0;e=ca;m=ba}}if((e|0)==36){$c(R);break a}else if((e|0)==37){$c(R);break b}}else{f=0;c=0}while(0);$c(R)}else{f=0;c=0}}else{f=0;c=0}while(0);k[a+76>>2]=f;k[a+80>>2]=c;ep(a);e=k[k[a+32>>2]>>2]|0;k[e+96>>2]=0;k[e+100>>2]=0;c=e+104|0;k[c>>2]=-1;k[e+108>>2]=-1;k[e+112>>2]=-1;k[e+116>>2]=-1;e=a+68|0;f=k[e>>2]|0;if(f)k[c>>2]=f;if(!(k[a+72>>2]|0))c=0;else{c=k[a+100>>2]|0;k[$>>2]=k[e>>2];k[$+4>>2]=c;gd(283,14888,$);c=0}}while(0);if(!(i[_>>0]|0)){W=k[a+4>>2]|0;uc[k[(k[W>>2]|0)+56>>2]&31](W,X,Y,9)|0}}k[b>>2]=1}}else{d=f;c=e}i[Z>>0]=0;if(!(i[_>>0]|0)){_=k[a+4>>2]|0;uc[k[(k[_>>2]|0)+56>>2]&31](_,0,1,9)|0}}else if(e){d=a+4|0;c=k[d>>2]|0;c=uc[k[(k[c>>2]|0)+56>>2]&31](c,0,1,6)|0;if(!c)if(!(i[_>>0]|0)){d=k[d>>2]|0;uc[k[(k[d>>2]|0)+56>>2]&31](d,0,1,5)|0;d=f;c=264}else{d=f;c=264}else d=f}else{d=f;c=264}while(0);if(d)break}if((k[a+52>>2]|0)!=3007e3){k[$>>2]=50909;k[$+4>>2]=10788;gd(14,14848,$);c=14}}else c=f;while(0);r=aa;return c|0}function tq(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,l=0,n=0,o=0,p=0,q=0,r=0,s=0;p=k[e>>2]|0;q=k[d>>2]|0;h=(p|0)>0;g=(c|0)>0;if(h|g){n=g;i=0;o=0;l=0;while(1){do if(n){g=b+(i<<1)|0;if(h?(r=q+(l<<1)|0,(k[a+((m[g>>1]|0)<<2)>>2]|0)>>>0>=(k[a+((m[r>>1]|0)<<2)>>2]|0)>>>0):0){h=r;s=7;break}i=i+1|0;h=g}else{h=q+(l<<1)|0;s=7}while(0);if((s|0)==7){s=0;l=l+1|0}n=j[h>>1]|0;h=k[a+((n&65535)<<2)>>2]|0;g=o+1|0;j[f+(o<<1)>>1]=n;if((i|0)<(c|0))i=((k[a+((m[b+(i<<1)>>1]|0)<<2)>>2]|0)==(h|0)&1)+i|0;h=(l|0)<(p|0);n=(i|0)<(c|0);if(!(h|n))break;else o=g}}else g=0;k[d>>2]=b;k[e>>2]=g;pw(b|0,f|0,g<<1|0)|0;return}function uq(a,b){a=a|0;b=b|0;var c=0,d=0;d=k[a+4>>2]|0;k[d+4>>2]=k[a>>2];a=k[(k[d>>2]|0)+204>>2]|0;k[a+16>>2]=b;d=k[2217]|0;c=k[a+40>>2]|0;if((b|0)>-1)a=b;else{b=xw(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(k[a+24>>2]|0)+(k[a+20>>2]|0)|0;a=vw(b|0,L|0,a|0,((a|0)<0)<<31>>31|0)|0}oc[d&15](c,a);return}function vq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=(k[a+12>>2]|0)+136|0;c=e;d=k[c>>2]|0;c=k[c+4>>2]|0;do if((d|0)==0&(c|0)==0)if(!(gh(k[k[(k[a>>2]|0)+32>>2]>>2]|0,e)|0)){c=e;d=k[c>>2]|0;c=k[c+4>>2]|0;f=5;break}else{c=e;k[c>>2]=0;k[c+4>>2]=0;c=b;k[c>>2]=0;k[c+4>>2]=0;c=1;break}else f=5;while(0);if((f|0)==5){e=b;k[e>>2]=d;k[e+4>>2]=c;if((c|0)>0|(c|0)==0&d>>>0>0){i[b+42>>0]=1;c=0}else c=1}return c|0}function wq(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,m=0,n=0;n=r;r=r+16|0;if((r|0)>=(s|0))ka();l=n;k[l>>2]=b;b=a;a=0;a:while(1){f=k[l>>2]|0;e=k[f>>2]|0;k[l>>2]=f+4;f=k[l>>2]|0;g=k[f>>2]|0;k[l>>2]=f+4;f=k[l>>2]|0;h=k[f>>2]|0;k[l>>2]=f+4;f=k[l>>2]|0;j=k[f>>2]|0;k[l>>2]=f+4;f=k[l>>2]|0;c=k[f>>2]|0;k[l>>2]=f+4;if(!e){d=b;b=0}else{d=b;b=0;do{e=e+-1|0;f=i[d>>0]|0;if(((f&255)+-48|0)>>>0>=10)break a;b=(b*10|0)+-48+(f<<24>>24)|0;d=d+1|0}while((e|0)!=0)}if((b|0)<(g|0)|(b|0)>(h|0))break;if(!j){m=9;break}if((j|0)!=(i[d>>0]|0))break;k[c>>2]=b;b=d+1|0;a=a+1|0}if((m|0)==9){k[c>>2]=b;a=a+1|0}r=n;return a|0}function xq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0.0,g=0,h=0.0,j=0,m=0,n=0,o=0,q=0,t=0,u=0;u=r;r=r+64|0;if((r|0)>=(s|0))ka();q=u;n=u+56|0;o=u+52|0;c=u+48|0;j=u+44|0;m=u+40|0;k[q>>2]=2;k[q+4>>2]=0;k[q+8>>2]=24;k[q+12>>2]=58;k[q+16>>2]=c;k[q+20>>2]=2;k[q+24>>2]=0;k[q+28>>2]=59;k[q+32>>2]=0;k[q+36>>2]=j;do if((wq(a,q)|0)==2){g=a+5|0;if((i[g>>0]|0)==58){k[q>>2]=2;k[q+4>>2]=0;k[q+8>>2]=59;k[q+12>>2]=0;k[q+16>>2]=m;if((wq(a+6|0,q)|0)!=1){c=1;break}g=a+8|0;if((i[g>>0]|0)==46?(d=a+9|0,e=i[d>>0]|0,((e&255)+-48|0)>>>0<10):0){h=0.0;f=1.0;do{h=h*10.0+ +(e<<24>>24)+-48.0;f=f*10.0;d=d+1|0;e=i[d>>0]|0}while(((e&255)+-48|0)>>>0<10);f=h/f}else{d=g;f=0.0}}else{k[m>>2]=0;d=g;f=0.0}i[b+42>>0]=0;i[b+41>>0]=1;k[b+20>>2]=k[c>>2];k[b+24>>2]=k[j>>2];p[b+32>>3]=f+ +(k[m>>2]|0);while(1){c=d+1|0;if(!(i[10368+(l[d>>0]|0)>>0]&1)){g=d;break}else d=c}a=b+28|0;k[a>>2]=0;d=i[g>>0]|0;if(d<<24>>24==45){e=-1;t=14}else if(d<<24>>24!=43)if((d&-33)<<24>>24==90){e=0;t=16}else c=0;else{e=1;t=14}if((t|0)==14){k[q>>2]=2;k[q+4>>2]=0;k[q+8>>2]=14;k[q+12>>2]=58;k[q+16>>2]=n;k[q+20>>2]=2;k[q+24>>2]=0;k[q+28>>2]=59;k[q+32>>2]=0;k[q+36>>2]=o;if((wq(c,q)|0)!=2){c=1;break}e=ha(((k[n>>2]|0)*60|0)+(k[o>>2]|0)|0,e)|0;k[a>>2]=e;c=g+6|0;t=16}if((t|0)==16)while(1){d=i[c>>0]|0;if(!(i[10368+(d&255)>>0]&1)){c=e;break}else c=c+1|0}if(!(d<<24>>24)){i[b+43>>0]=(c|0)!=0&1;c=0}else c=1}else c=1;while(0);r=u;return c|0}function yq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0.0,m=0;j=r;r=r+112|0;if((r|0)>=(s|0))ka();f=j+48|0;h=j;g=j+96|0;d=f+0|0;a=a+0|0;e=d+48|0;do{k[d>>2]=k[a>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));to(f);uo(f);e=f+8|0;if(((k[e>>2]|0)+-1971|0)>>>0>66){k[e>>2]=2e3;k[f+12>>2]=1;k[f+16>>2]=1;k[f+20>>2]=0;k[f+24>>2]=0;p[f+32>>3]=0.0}else{d=f+32|0;p[d>>3]=+(~~(+p[d>>3]+.5)|0)}k[f+28>>2]=0;i[f+42>>0]=0;so(f);a=f;d=k[a>>2]|0;a=k[a+4>>2]|0;e=vw(d|0,a|0,1e3,0)|0;e=ow(e|0,L|0,-413362496,0)|0;k[g>>2]=e;e=_b(g|0)|0;e=(k[2253]|0)!=0?0:e;if(!e){k[b+20>>2]=1;i[b+25>>0]=1;ah(k[b>>2]|0,20056,-1,1,-1)|0;k[c>>2]=1;d=0;e=0}else{f=k[e+4>>2]|0;g=k[e+8>>2]|0;b=k[e+12>>2]|0;m=(k[e+16>>2]|0)+1|0;l=+(k[e>>2]|0);k[h+8>>2]=(k[e+20>>2]|0)+1900;k[h+12>>2]=m;k[h+16>>2]=b;k[h+20>>2]=g;k[h+24>>2]=f;p[h+32>>3]=l;i[h+40>>0]=1;i[h+41>>0]=1;i[h+42>>0]=0;i[h+43>>0]=0;so(h);k[c>>2]=0;e=h;e=iw(k[e>>2]|0,k[e+4>>2]|0,d|0,a|0)|0;d=L}L=d;r=j;return e|0}function zq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0;n=r;r=r+32|0;if((r|0)>=(s|0))ka();m=n+12|0;h=n;l=n+8|0;g=n+16|0;i[b>>0]=0;d=wc[k[(k[a>>2]|0)+24>>2]&127](a,h)|0;f=h;e=k[f>>2]|0;f=k[f+4>>2]|0;if(!((d|0)!=0|((f|0)<0|(f|0)==0&e>>>0<16))){d=ow(e|0,f|0,-16,-1)|0;d=js(a,d,L,m)|0;if(!d){j=k[m>>2]|0;if(!(j>>>0>=c>>>0|(j|0)==0)){d=h;d=ow(k[d>>2]|0,k[d+4>>2]|0,-12,-1)|0;d=js(a,d,L,l)|0;if(!d){d=h;d=ow(k[d>>2]|0,k[d+4>>2]|0,-8,-1)|0;d=yc[k[(k[a>>2]|0)+8>>2]&31](a,g,8,d,L)|0;if(!d)if(!(cw(g,14808,8)|0)){d=h;d=ow(k[d>>2]|0,k[d+4>>2]|0,-16,-1)|0;d=iw(d|0,L|0,j|0,0)|0;d=yc[k[(k[a>>2]|0)+8>>2]&31](a,b,j,d,L)|0;if(!d){e=k[l>>2]|0;f=0;while(1){c=i[b+f>>0]|0;d=e-c|0;f=f+1|0;if(f>>>0>=j>>>0)break;else e=d}k[l>>2]=d;if((e|0)==(c|0))d=j;else{k[m>>2]=0;d=0}i[b+d>>0]=0;d=0}}else d=0}}else d=0}}r=n;return d|0}function Aq(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,l=0,m=0,n=0,o=0,p=0,q=0;q=r;r=r+16|0;if((r|0)>=(s|0))ka();i=q+8|0;o=q+4|0;m=q;p=a+72|0;g=p;h=k[g>>2]|0;g=k[g+4>>2]|0;if((h|0)==0&(g|0)==0){j=0;l=0;h=k[a+148>>2]|0}else{j=ow(h|0,g|0,-1,-1)|0;h=k[a+148>>2]|0;j=vw(j|0,L|0,h|0,0)|0;j=ow(j|0,L|0,1,0)|0;j=xw(j|0,L|0,h|0,0)|0;l=L}n=p;k[n>>2]=j;k[n+4>>2]=l;n=a+148|0;h=ow(h|0,0,j|0,l|0)|0;g=L;do if(!((g|0)>(d|0)|(g|0)==(d|0)&h>>>0>c>>>0)){if((b|0)==0?(b=a+80|0,(j|0)==(k[b>>2]|0)?(l|0)==(k[b+4>>2]|0):0):0)c=a+64|0;else{h=a+64|0;d=k[h>>2]|0;d=yc[k[(k[d>>2]|0)+8>>2]&31](d,i,8,j,l)|0;if(d)break;if(!(cw(i,14808,8)|0))c=h;else{d=101;break}}i=k[c>>2]|0;d=ow(j|0,l|0,8,0)|0;d=js(i,d,L,e)|0;if(!d){e=k[c>>2]|0;d=ow(j|0,l|0,12,0)|0;d=js(e,d,L,a+48|0)|0;if(!d){e=k[c>>2]|0;d=ow(j|0,l|0,16,0)|0;d=js(e,d,L,f)|0;if(!d){g=p;h=k[g>>2]|0;g=k[g+4>>2]|0;if((h|0)==0&(g|0)==0){f=k[c>>2]|0;d=ow(j|0,l|0,20,0)|0;d=js(f,d,L,m)|0;if(d)break;f=k[c>>2]|0;d=ow(j|0,l|0,24,0)|0;d=js(f,d,L,o)|0;if(d)break;c=k[o>>2]|0;if(!c){g=k[a+152>>2]|0;k[o>>2]=g}else g=c;c=k[m>>2]|0;if(g>>>0<512|c>>>0<32|g>>>0>65536|c>>>0>65536){d=101;break}if(g+-1&g){d=101;break}if(c+-1&c){d=101;break}d=fl(a,o,-1)|0;k[n>>2]=c;g=p;h=k[g>>2]|0;g=k[g+4>>2]|0}else{c=k[n>>2]|0;d=0}j=ow(h|0,g|0,c|0,0)|0;l=p;k[l>>2]=j;k[l+4>>2]=L}}}}else d=101;while(0);r=q;return d|0}function Bq(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,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;A=r;r=r+16|0;if((r|0)>=(s|0))ka();v=A+8|0;h=A+4|0;p=A;y=k[a+200>>2]|0;z=(d|0)!=0;g=k[(z?a+64|0:a+68|0)>>2]|0;o=b;o=js(g,k[o>>2]|0,k[o+4>>2]|0,h)|0;do if(!o){x=a+152|0;u=k[x>>2]|0;o=b;o=ow(k[o>>2]|0,k[o+4>>2]|0,4,0)|0;o=yc[k[(k[g>>2]|0)+8>>2]&31](g,y,u,o,L)|0;if(!o){B=k[x>>2]|0;n=(d<<2)+4+B|0;o=b;o=ow(n|0,((n|0)<0)<<31>>31|0,k[o>>2]|0,k[o+4>>2]|0)|0;n=L;u=b;k[u>>2]=o;k[u+4>>2]=n;u=k[h>>2]|0;if((u|0)!=0?(u|0)!=(((k[2514]|0)/(B|0)|0)+1|0):0)if(u>>>0<=(k[a+24>>2]|0)>>>0?(ii(c,u)|0)==0:0){if(z){o=ow(o|0,n|0,-4,-1)|0;o=js(g,o,L,p)|0;if(o){f=o;break}if(!e){o=k[a+48>>2]|0;n=(k[x>>2]|0)+-200|0;if((n|0)>0)do{o=(l[y+n>>0]|0)+o|0;n=n+-200|0}while((n|0)>0);if((o|0)!=(k[p>>2]|0)){f=101;break}}}if((c|0)!=0?(f=gi(c,u)|0,(f|0)!=0):0)break;p=(u|0)==1;if(p?(q=a+142|0,t=i[y+20>>0]|0,(j[q>>1]|0)!=(t&255|0)):0)j[q>>1]=t&255;if(!(k[a+208>>2]|0)){t=a+204|0;o=fc[k[8744+132>>2]&63](k[(k[t>>2]|0)+40>>2]|0,u,0)|0;o=nl(k[t>>2]|0,u,o)|0}else o=0;k[v>>2]=o;if(z)if(!(i[a+7>>0]|0)){t=b;c=k[t+4>>2]|0;n=a+80|0;q=k[n+4>>2]|0;n=(c|0)<(q|0)|((c|0)==(q|0)?(k[t>>2]|0)>>>0<=(k[n>>2]|0)>>>0:0)}else n=1;else if(!o)n=1;else n=(j[o+24>>1]&4)==0;h=k[a+60>>2]|0;g=k[h>>2]|0;do if(g){f=i[a+16>>0]|0;if((f&255)>3){if(!n){w=33;break}}else if(!(f<<24>>24==0&n)){w=33;break}n=k[x>>2]|0;f=xw(n|0,((n|0)<0)<<31>>31|0,u+-1|0,0)|0;f=yc[k[g+12>>2]&31](h,y,n,f,L)|0;n=a+32|0;if(u>>>0>(k[n>>2]|0)>>>0)k[n>>2]=u;n=k[a+88>>2]|0;if(n)fp(n,u,y)}else w=33;while(0);if((w|0)==33)if((d|0)==0&(o|0)==0){t=a+20|0;i[t>>0]=l[t>>0]|2;f=Eg(a,u,v,1)|0;i[t>>0]=l[t>>0]&253;if(f)break;o=k[v>>2]|0;f=o+24|0;j[f>>1]=m[f>>1]&65527;Yo(o);f=0}else f=0;if(o){h=k[o+4>>2]|0;pw(h|0,y|0,k[x>>2]|0)|0;hc[k[a+196>>2]&31](o);do if(z){if((e|0)!=0?(t=b,c=k[t+4>>2]|0,u=a+80|0,q=k[u+4>>2]|0,(c|0)>(q|0)|((c|0)==(q|0)?(k[t>>2]|0)>>>0>(k[u>>2]|0)>>>0:0)):0)break;Cl(o)}while(0);if(p){n=a+104|0;g=h+24|0;h=n+16|0;do{i[n>>0]=i[g>>0]|0;n=n+1|0;g=g+1|0}while((n|0)<(h|0))}tl(o)}}else f=0;else f=101}else f=o}else f=o;while(0);r=A;return f|0}function Cq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=a+24|0;if((k[d>>2]|0)<=(b|0)){f=b+1|0;g=a+32|0;e=ad(k[g>>2]|0,f<<2)|0;if(!e){d=7;e=0}else{h=k[d>>2]|0;kw(e+(h<<2)|0,0,f-h<<2|0)|0;k[g>>2]=e;k[d>>2]=f;h=5}}else{e=k[a+32>>2]|0;h=5}if((h|0)==5){g=a+32|0;e=e+(b<<2)|0;do if(!(k[e>>2]|0)){if((i[a+43>>0]|0)!=2){d=k[a+4>>2]|0;d=yc[k[(k[d>>2]|0)+52>>2]&31](d,b,32768,l[a+44>>0]|0,e)|0;if((d|0)!=8)break;d=a+46|0;i[d>>0]=l[d>>0]|2;d=0;break}d=vg(32768,0)|0;if(d)kw(d|0,0,32768)|0;k[(k[g>>2]|0)+(b<<2)>>2]=d;d=(k[(k[g>>2]|0)+(b<<2)>>2]|0)==0?7:0}else d=0;while(0);e=k[(k[g>>2]|0)+(b<<2)>>2]|0}k[c>>2]=e;return d|0}function Dq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=b+c|0;if(!d){f=0;c=0}else{f=k[d>>2]|0;c=k[d+4>>2]|0}if(!a)do{f=f+c+(sw(k[b>>2]|0)|0)|0;c=f+c+(sw(k[b+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0<g>>>0);else do{f=f+c+(k[b>>2]|0)|0;c=f+c+(k[b+4>>2]|0)|0;b=b+8|0}while(b>>>0<g>>>0);k[e>>2]=f;k[e+4>>2]=c;return}function Eq(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;g=a+8|0;f=k[g>>2]|0;g=k[g+4>>2]|0;if((g|0)>(e|0)|(g|0)==(e|0)&f>>>0>d>>>0?(h=ow(c|0,((c|0)<0)<<31>>31|0,d|0,e|0)|0,j=L,!((j|0)<(g|0)|(j|0)==(g|0)&h>>>0<f>>>0)):0){h=iw(f|0,g|0,d|0,e|0)|0;g=a+4|0;f=k[g>>2]|0;f=yc[k[(k[f>>2]|0)+12>>2]&31](f,b,h,d,e)|0;if(!f){d=ow(h|0,((h|0)<0)<<31>>31|0,d|0,e|0)|0;e=L;f=k[g>>2]|0;f=wc[k[(k[f>>2]|0)+20>>2]&127](f,k[a+16>>2]&19)|0;if(!((h|0)==(c|0)|(f|0)!=0)){c=c-h|0;g=b+h|0;f=e;i=5}}}else{g=b;f=e;i=5}if((i|0)==5){e=k[a+4>>2]|0;f=yc[k[(k[e>>2]|0)+12>>2]&31](e,g,c,d,f)|0}return f|0}function Fq(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();e=g+8|0;f=g+4|0;d=g;k[e>>2]=0;k[f>>2]=0;k[d>>2]=0;c=a+68|0;b=k[c>>2]|0;if(b){Uo(a,(b+33|0)>>>12,e,f,d)|0;d=(k[c>>2]|0)-(k[d>>2]|0)|0;a=k[e>>2]|0;c=0;do{b=a+(c<<1)|0;if((m[b>>1]|0|0)>(d|0))j[b>>1]=0;c=c+1|0}while((c|0)!=8192);b=(k[f>>2]|0)+(d+1<<2)|0;kw(b|0,0,a-b|0)|0}r=g;return}function Gq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();c=e;f=a+204|0;d=fc[k[8744+132>>2]&63](k[(k[f>>2]|0)+40>>2]|0,b,0)|0;d=nl(k[f>>2]|0,b,d)|0;do if(!d)c=0;else{if((j[d+26>>1]|0)==1){rl(d);c=0;break}k[c>>2]=0;b=pl(k[a+208>>2]|0,k[d+20>>2]|0,c)|0;if(!b){b=ql(d,k[c>>2]|0)|0;if(!b){hc[k[a+196>>2]&31](d);b=0}}Gg(d);c=b}while(0);b=k[a+88>>2]|0;if(b)do{k[b+16>>2]=1;b=k[b+44>>2]|0}while((b|0)!=0);r=e;return c|0}function Hq(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;D=r;r=r+16|0;if((r|0)>=(s|0))ka();C=D;z=k[a+52>>2]|0;o=(k[z+36>>2]|0)+-4|0;v=b&65535;A=c&65535;u=A+v|0;B=k[a+56>>2]|0;if(j[z+22>>1]&4)kw(B+v|0,0,A|0)|0;y=l[a+6>>0]|0;z=y+1|0;g=z&65535;x=z&65535;if((i[B+(x+1)>>0]|0)==0?(i[B+x>>0]|0)==0:0){q=c&255;o=(c&65535)>>>8&255;p=u;n=0;h=0;x=23}else{q=g;x=6}a:do if((x|0)==6){while(1){x=0;f=q&65535;h=i[B+(f+1)>>0]|0;e=h&255;p=l[B+f>>0]<<8|e;g=q;q=p&65535;if(!(p>>>0<v>>>0&(p|0)!=0)){n=h;t=p;break}if(p>>>0<(f+4|0)>>>0){x=8;break}else x=6}if((x|0)==8){k[C>>2]=54420;k[C+4>>2]=10788;gd(11,13600,C);d=11;break}if(t>>>0>o>>>0){k[C>>2]=54423;k[C+4>>2]=10788;gd(11,13600,C);d=11;break}d=c&255;o=(c&65535)>>>8&255;h=(q&65535)>>>8&255;do if((t+-1|0)>>>0<(u+3|0)>>>0)if(u>>>0>t>>>0){k[C>>2]=54434;k[C+4>>2]=10788;gd(11,13600,C);d=11;break a}else{p=(l[B+(t+2)>>0]<<8|l[B+(t+3)>>0])+t|0;o=p-v|0;q=o&255;o=(o&65535)>>>8&255;n=i[B+(t+1)>>0]|0;h=i[B+t>>0]|0;d=e-u&255;break}else{q=d;p=u;d=0}while(0);do if(f>>>0>z>>>0?(w=(l[B+(f+2)>>0]<<8|l[B+(f+3)>>0])+f|0,(w+3|0)>=(v|0)):0)if((v|0)<(w|0)){k[C>>2]=54447;k[C+4>>2]=10788;gd(11,13600,C);d=11;break a}else{o=p-f|0;b=g;q=o&255;o=(o&65535)>>>8&255;d=(d&255)+v-w&255;break}while(0);f=B+(y+7)|0;e=i[f>>0]|0;if((e&255)<(d&255)){k[C>>2]=54453;k[C+4>>2]=10788;gd(11,13600,C);d=11;break}else{i[f>>0]=(e&255)-(d&255);x=23;break}}while(0);b:do if((x|0)==23){d=b&65535;e=B+(y+5)|0;f=B+(y+6)|0;do if((d|0)==(l[e>>0]<<8|l[f>>0]|0))if((g&65535|0)==(z|0)){i[B+z>>0]=h;i[B+(y+2)>>0]=n;i[e>>0]=p>>>8;i[f>>0]=p;break}else{k[C>>2]=54460;k[C+4>>2]=10788;gd(11,13600,C);d=11;break b}else{C=g&65535;i[B+C>>0]=(b&65535)>>>8;i[B+(C+1)>>0]=b;i[B+d>>0]=h;i[B+(d+1)>>0]=n;i[B+(d+2)>>0]=o;i[B+(d+3)>>0]=q}while(0);d=a+16|0;j[d>>1]=(m[d>>1]|0)+A;d=0}while(0);r=D;return d|0}function Iq(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;u=r;r=r+16|0;if((r|0)>=(s|0))ka();p=u;o=l[a+6>>0]|0;t=k[a+56>>2]|0;n=k[(k[a+52>>2]|0)+36>>2]|0;g=n+-4|0;a=o+1|0;while(1){h=t+a|0;j=(l[h>>0]|0)<<8|(l[t+(a+1)>>0]|0);if(!j){a=0;break}if((j|0)>(g|0)|(j|0)<(a+4|0)){q=4;break}e=t+(j+2)|0;f=t+(j+3)|0;a=(l[e>>0]|0)<<8|(l[f>>0]|0);if((a|0)<(b|0))a=j;else{m=e;g=j;q=6;break}}a:do if((q|0)==4){k[p>>2]=54252;k[p+4>>2]=10788;gd(11,13600,p);k[c>>2]=11;a=0}else if((q|0)==6){e=a-b|0;do if((e|0)>=4)if((a+g|0)>(n|0)){k[p>>2]=54275;k[p+4>>2]=10788;gd(11,13600,p);k[c>>2]=11;a=0;break a}else{i[m>>0]=e>>>8;i[f>>0]=e;break}else{a=t+(o+7)|0;if((l[a>>0]|0)<=59){o=t+g|0;o=l[o>>0]|l[o+1>>0]<<8;i[h>>0]=o;i[h+1>>0]=o>>8;i[a>>0]=(l[a>>0]|0)+e;break}if(!d){a=0;break a}k[d>>2]=1;a=0;break a}while(0);a=t+(e+g)|0}while(0);r=u;return a|0}function Jq(a){a=a|0;var b=0,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;D=r;r=r+16|0;if((r|0)>=(s|0))ka();B=D;y=k[a+56>>2]|0;A=l[a+6>>0]|0;u=m[a+14>>1]|0;v=j[a+18>>1]|0;o=v&65535;p=a+52|0;q=k[(k[p>>2]|0)+36>>2]|0;z=(o<<1)+u|0;t=q+-4|0;w=y+(A+5)|0;x=y+(A+6)|0;a:do if(v<<16>>16){n=q;v=0;c=y;d=0;while(1){f=(v<<1)+u|0;e=y+f|0;f=y+(f+1)|0;g=(l[e>>0]|0)<<8|(l[f>>0]|0);if((g|0)<(z|0)|(g|0)>(t|0)){C=3;break}h=(Qp(a,c+g|0)|0)&65535;b=n-h|0;if((b|0)<(z|0)|(h+g|0)>(q|0)){C=5;break}i[e>>0]=b>>>8;i[f>>0]=b;if(!d)if((b|0)==(g|0))d=0;else{d=k[(k[k[p>>2]>>2]|0)+200>>2]|0;c=(l[w>>0]|0)<<8|(l[x>>0]|0);pw(d+c|0,y+c|0,n-c|0)|0;c=d;C=9}else C=9;if((C|0)==9){C=0;pw(y+b|0,c+g|0,h|0)|0}v=v+1|0;if((v|0)>=(o|0)){C=11;break a}else n=b}if((C|0)==3){k[B>>2]=54184;k[B+4>>2]=10788;gd(11,13600,B);b=11;break}else if((C|0)==5){k[B>>2]=54196;k[B+4>>2]=10788;gd(11,13600,B);b=11;break}}else{b=q;C=11}while(0);if((C|0)==11){i[w>>0]=b>>>8;i[x>>0]=b;i[y+(A+1)>>0]=0;i[y+(A+2)>>0]=0;i[y+(A+7)>>0]=0;C=b-z|0;kw(y+z|0,0,C|0)|0;if((C|0)==(m[a+16>>1]|0|0))b=0;else{k[B>>2]=54221;k[B+4>>2]=10788;gd(11,13600,B);b=11}}r=D;return b|0}function Kq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=r;r=r+32|0;if((r|0)>=(s|0))ka();e=f;if((k[c>>2]|0)==0?(wp(a,b,e),d=j[e+18>>1]|0,d<<16>>16!=0):0){d=d&65535;Ep(k[a+52>>2]|0,(l[b+(d+1)>>0]|0)<<16|(l[b+d>>0]|0)<<24|(l[b+(d+2)>>0]|0)<<8|(l[b+(d+3)>>0]|0),3,k[a+72>>2]|0,c)}r=f;return}function Lq(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;do if(!(k[c>>2]|0)){d=k[a+52>>2]|0;f=k[a+56>>2]|0;h=k[b+56>>2]|0;e=l[a+6>>0]|0;g=(k[b+72>>2]|0)==1?100:0;j=l[f+(e+5)>>0]<<8|l[f+(e+6)>>0];pw(h+j|0,f+j|0,(k[d+36>>2]|0)-j|0)|0;pw(h+g|0,f+e|0,(m[a+18>>1]<<1)+(m[a+14>>1]|0)|0)|0;i[b>>0]=0;a=eq(b)|0;if(a){k[c>>2]=a;break}if(i[d+17>>0]|0){a=dq(b)|0;k[c>>2]=a}}while(0);return}function Mq(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,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;q=l[a+6>>0]|0;t=k[a+56>>2]|0;h=k[a+52>>2]|0;o=k[h+36>>2]|0;n=t+o|0;e=k[a+64>>2]|0;h=k[(k[h>>2]|0)+200>>2]|0;p=t+(q+5)|0;r=t+(q+6)|0;s=(l[p>>0]|0)<<8|(l[r>>0]|0);pw(h+s|0,t+s|0,o-s|0)|0;s=t;if((b|0)>0){o=0;g=e;e=n;while(1){f=k[c+(o<<2)>>2]|0;if(f>>>0>t>>>0&f>>>0<n>>>0)f=h+(f-s)|0;u=m[d+(o<<1)>>1]|0;e=e+(0-u)|0;pw(e|0,f|0,u|0)|0;f=e-s|0;i[g>>0]=f>>>8;i[g+1>>0]=f;o=o+1|0;if((o|0)==(b|0))break;else g=g+2|0}}else e=n;d=a+18|0;j[d>>1]=b;i[a+1>>0]=0;i[t+(q+1)>>0]=0;i[t+(q+2)>>0]=0;i[t+(q+3)>>0]=(m[d>>1]|0)>>>8;i[t+(q+4)>>0]=j[d>>1];d=e-s|0;i[p>>0]=d>>>8;i[r>>0]=d;i[t+(q+7)>>0]=0;return}function Nq(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,n=0,o=0,p=0,q=0,r=0;r=k[a+56>>2]|0;p=r+(k[(k[a+52>>2]|0)+36>>2]|0)|0;n=r+((l[a+6>>0]|0)+8+(l[a+7>>0]|0))|0;a:do if((b|0)>0){o=r;q=0;e=0;i=0;j=0;while(1){g=k[c+(q<<2)>>2]|0;if(g>>>0>=n>>>0&g>>>0<p>>>0){f=m[d+(q<<1)>>1]|0;h=g+f|0;if((i|0)!=(h|0)){if(i)Hq(a,i-o&65535,j&65535)|0;if(h>>>0>p>>>0){e=0;break a}}else f=f+j|0;e=e+1|0}else{g=i;f=j}q=q+1|0;if((q|0)>=(b|0))break;else{i=g;j=f}}if(g)Hq(a,g-r&65535,f&65535)|0}else e=0;while(0);return e|0}function Oq(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,j=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+16|0;if((r|0)>=(s|0))ka();t=v;j=k[a+56>>2]|0;h=k[c>>2]|0;if(!(i[j+1>>0]|0))q=(i[j+2>>0]|0)!=0;else q=1;a:do if((e|0)>0){o=0;while(1){n=m[g+(o<<1)>>1]|0;if(q?(p=Iq(a,n,t,0)|0,(p|0)!=0):0)l=p;else{l=h+(0-n)|0;if(l>>>0<b>>>0){h=1;break a}else h=l}pw(l|0,k[f+(o<<2)>>2]|0,n|0)|0;n=l-j|0;i[d>>0]=n>>>8;i[d+1>>0]=n;o=o+1|0;if((o|0)>=(e|0)){u=9;break}else d=d+2|0}}else u=9;while(0);if((u|0)==9){k[c>>2]=h;h=0}r=v;return h|0}function Pq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();l=m;d=k[a+44>>2]|0;g=a;e=k[g>>2]|0;g=k[g+4>>2]|0;a:do if(!d){j=a+40|0;d=k[j>>2]|0;f=((d|0)<0)<<31>>31;i=ww(e|0,g|0,d|0,f|0)|0;if(!i){h=a+8|0;h=iw(k[h>>2]|0,k[h+4>>2]|0,e|0,g|0)|0;n=L;o=k[a+24>>2]|0;d=yc[k[(k[o>>2]|0)+8>>2]&31](o,k[a+36>>2]|0,(n|0)>(f|0)|(n|0)==(f|0)&h>>>0>d>>>0?d:h,e,g)|0;if(d)break;d=k[j>>2]|0}h=d-i|0;if((h|0)>=(b|0)){k[c>>2]=(k[a+36>>2]|0)+i;d=a;b=ow(k[d>>2]|0,k[d+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;d=a;k[d>>2]=b;k[d+4>>2]=L;d=0;break}d=a+16|0;e=k[d>>2]|0;if((e|0)<(b|0)){e=e<<1;e=(e|0)<128?128:e;while(1)if((e|0)<(b|0))e=e<<1;else{g=e;break}f=a+28|0;e=wg(k[f>>2]|0,g,((g|0)<0)<<31>>31)|0;if(!e){d=7;break}k[d>>2]=g;k[f>>2]=e}else e=k[a+28>>2]|0;g=a+28|0;pw(e|0,(k[a+36>>2]|0)+i|0,h|0)|0;i=a;i=ow(k[i>>2]|0,k[i+4>>2]|0,h|0,((h|0)<0)<<31>>31|0)|0;d=a;k[d>>2]=i;k[d+4>>2]=L;d=b-h|0;if((d|0)>0){f=d;do{e=k[j>>2]|0;e=(f|0)>(e|0)?e:f;d=Pq(a,e,l)|0;if(d)break a;pw((k[g>>2]|0)+(b-f)|0,k[l>>2]|0,e|0)|0;f=f-e|0}while((f|0)>0)}k[c>>2]=k[g>>2];d=0}else{k[c>>2]=d+e;b=ow(e|0,g|0,b|0,((b|0)<0)<<31>>31|0)|0;d=a;k[d>>2]=b;k[d+4>>2]=L;d=0}while(0);r=m;return d|0}function Qq(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=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+64|0;if((r|0)>=(s|0))ka();w=z+44|0;y=z;x=z+40|0;u=a+8|0;t=k[u>>2]|0;u=k[u+4>>2]|0;v=a+4|0;n=k[v>>2]|0;Up(k[a+48>>2]|0,y,k[(k[(k[a>>2]|0)+8>>2]|0)+12>>2]|0,t,u);m=n+8|0;n=n+12|0;o=y+24|0;p=y+16|0;q=a+16|0;while(1){e=k[(k[m>>2]|0)+4>>2]|0;f=k[n>>2]|0;g=k[f+(e*56|0)+20>>2]|0;if(!(k[f+(e*56|0)+24>>2]|0)){c=1;b=0;break}i=o;h=k[i>>2]|0;i=k[i+4>>2]|0;j=k[p>>2]|0;l=((g|0)<0)<<31>>31;b=g;d=l;c=0;do{c=c+1|0;b=rw(b|0,d|0,7)|0;d=L}while(((b|0)!=0|(d|0)!=0)&(c|0)<9);h=ow(h|0,i|0,g|0,l|0)|0;h=ow(h|0,L|0,j|0,((j|0)<0)<<31>>31|0)|0;c=ow(h|0,L|0,c|0,((c|0)<0)<<31>>31|0)|0;h=L;b=k[q>>2]|0;b=ow(b|0,((b|0)<0)<<31>>31|0,t|0,u|0)|0;d=L;if((h|0)>(d|0)|(h|0)==(d|0)&c>>>0>b>>>0){c=1;b=0;break}Vp(y,w,um(w,g,l)|0);Vp(y,k[f+(e*56|0)+32>>2]|0,g);b=$m(k[v>>2]|0,x)|0;if(b){c=0;break}}y=Wp(y,a+56|0)|0;r=z;return (c?y:b)|0}function Rq(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();e=c;k[e>>2]=d;d=$k(a,13592,e)|0;rg(a,b);r=c;return d|0}function Sq(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();h=l;e=i[a>>0]|0;if(e<<24>>24!=0&(b|0)>0){g=0;do{if((e+-48&255)<10){f=0;do{f=(f*10|0)+-48+(e<<24>>24)|0;a=a+1|0;e=i[a>>0]|0}while((e+-48&255)<10);e=0}else{f=0;e=0}e=ks(f,e)|0;j[c+(g<<1)>>1]=e;a=(i[a>>0]|0)==32?a+1|0:a;g=g+1|0;e=i[a>>0]|0}while(e<<24>>24!=0&(g|0)<(b|0))}g=d+51|0;i[g>>0]=i[g>>0]&-69;a:do if(i[a>>0]|0){c=d+44|0;b:while(1){do if(!(Lh(13448,a,10352,0)|0)){if(Lh(13464,a,10352,0)|0){k[h>>2]=0;In(a+3|0,h)|0;e=k[h>>2]|0;e=ks(e,((e|0)<0)<<31>>31)|0;j[c>>1]=e;break}if(Lh(13480,a,10352,0)|0)i[g>>0]=i[g>>0]|64}else i[g>>0]=i[g>>0]|4;while(0);while(1){e=i[a>>0]|0;if(e<<24>>24==32|e<<24>>24==0)break;a=a+1|0}while(1){f=a+1|0;if(!(e<<24>>24))break a;else if(e<<24>>24!=32)continue b;e=i[f>>0]|0;a=f}}}while(0);r=l;return}function Tq(a){a=a|0;var b=0,c=0;c=a+8|0;b=k[c>>2]|0;if(!b){b=Ah(a)|0;k[c>>2]=b;if(b)Bh(b,155,0,0,0)|0;if((k[a+408>>2]|0)==0?(j[(k[a>>2]|0)+60>>1]&8)==0:0)i[a+23>>0]=1}return b|0}function Uq(a,b){a=a|0;b=b|0;var c=0;c=(k[a+32>>2]|0)+-1|0;if((c|0)>(k[(k[a+24>>2]|0)+88>>2]|0)?(i[(k[a+4>>2]|0)+(c*20|0)>>0]|0)==b<<24>>24:0){Eh(a,c);c=1}else c=0;return c|0}function Vq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=Tq(a)|0;f=d+32|0;ls(a,c,k[f>>2]|0,(e|0)==55&1,k[d>>2]|0);if(!(i[d+44>>0]&32)){d=j[d+38>>1]|0;Ch(g,Bh(g,e,b,k[f>>2]|0,c)|0,d,-14)}else{f=k[d+8>>2]|0;a:do if(!f)f=0;else while(1){if((i[f+51>>0]&3)==2)break a;f=k[f+20>>2]|0;if(!f){f=0;break}}while(0);Bh(g,e,b,k[f+40>>2]|0,c)|0;d=k[a+8>>2]|0;Ch(d,-1,ms(a,f)|0,-6)}return}function Wq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if((b|0)!=0?(i[b>>0]|0)==-97:0)Bh(k[a+8>>2]|0,33,k[b+28>>2]|0,c,0)|0;else f=4;if(((f|0)==4?(e=ns(a,b,c)|0,(e|0)!=(c|0)):0)?(d=k[a+8>>2]|0,(d|0)!=0):0)Bh(d,34,e,c,0)|0;return}function Xq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();h=j;f=k[a>>2]|0;do if(((i[f+145>>0]|0)==0?(i[a+451>>0]|0)==0:0)?(g=k[f+284>>2]|0,(g|0)!=0):0){f=pc[g&7](k[f+288>>2]|0,b,c,d,e,k[a+492>>2]|0)|0;if((f|0)==0|(f|0)==2)break;else if((f|0)==1){yh(a,25216,h);k[a+12>>2]=23;f=1;break}else{yh(a,25232,h);k[a+12>>2]=1;f=1;break}}else f=0;while(0);r=j;return f|0}function Yq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;c=$q(k[a>>2]|0,c)|0;do if(c){d=Tq(a)|0;if((d|0)!=0?(Xq(a,32,k[37088+(b<<2)>>2]|0,c,0)|0)==0:0){Ch(d,Bh(d,2,b,0,0)|0,c,-1);break}rg(k[a>>2]|0,c)}while(0);return}function Zq(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+16|0;if((r|0)>=(s|0))ka();p=v;n=v+4|0;u=k[a>>2]|0;b=jr(a,b,c,n)|0;a:do if((b|0)>=0){o=(d|0)!=0;if(o?(k[c+4>>2]|0)!=0&(b|0)!=1:0){yh(a,36976,p);break}t=o?1:b;c=k[n>>2]|0;o=c;b=k[o+4>>2]|0;n=a+496|0;k[n>>2]=k[o>>2];k[n+4>>2]=b;n=$q(u,c)|0;if(n){b:do if((Qr(a,n)|0)==0?(m=(i[u+144>>0]|0)==1?1:d,q=u+16|0,h=k[(k[q>>2]|0)+(t<<4)>>2]|0,(Xq(a,18,(m|0)==1?13184:13208,0,h)|0)==0):0){d=(m|0)!=0;if(!e)b=d?4:2;else b=d?6:8;o=(f|0)!=0;if(!o?(Xq(a,b,n,0,h)|0)!=0:0)break;do if(!(i[a+451>>0]|0)){d=k[(k[q>>2]|0)+(t<<4)>>2]|0;if(Ln(a)|0)break b;if(!(di(u,n,d)|0)){if(!(gq(u,n,d)|0))break;k[p>>2]=n;yh(a,37048,p);break b}if(!g){k[p>>2]=c;yh(a,37024,p);break b}else{Fr(a,t);break b}}while(0);m=rh(u,76,0)|0;if(!m){i[u+65>>0]=1;k[a+12>>2]=7;q=a+64|0;k[q>>2]=(k[q>>2]|0)+1;break}h=m+0|0;d=h+76|0;do{i[h>>0]=0;h=h+1|0}while((h|0)<(d|0));k[m>>2]=n;j[m+36>>1]=-1;h=k[(k[q>>2]|0)+(t<<4)+12>>2]|0;k[m+68>>2]=h;j[m+40>>1]=1;j[m+28>>1]=200;k[a+484>>2]=m;if((i[a+18>>0]|0)==0?(dw(n,26576)|0)==0:0)k[h+72>>2]=m;if(i[u+145>>0]|0)break a;c=Tq(a)|0;if(!c)break a;q=k[a+408>>2]|0;Fr(a,t);h=1<<t;q=((q|0)==0?a:q)+328|0;k[q>>2]=k[q>>2]|h;if(o)Bh(c,146,0,0,0)|0;m=a+72|0;b=k[m>>2]|0;n=b+1|0;k[a+384>>2]=n;o=b+2|0;k[a+388>>2]=o;b=b+3|0;k[m>>2]=b;Bh(c,51,t,b,2)|0;m=c+96|0;k[m>>2]=k[m>>2]|h;m=Bh(c,45,b,0,0)|0;Bh(c,25,(k[u+24>>2]&32768|0)!=0?1:4,b,0)|0;Bh(c,52,t,2,b)|0;Bh(c,25,l[u+62>>0]|0,b,0)|0;Bh(c,52,t,5,b)|0;d=c+32|0;h=k[d>>2]|0;if(h>>>0>m>>>0)k[(k[c+4>>2]|0)+(m*20|0)+8>>2]=h;k[(k[c+24>>2]|0)+88>>2]=h+-1;if(!(f|e)){q=Bh(c,121,t,o,0)|0;k[a+416>>2]=q}else Bh(c,25,0,o,0)|0;os(a,t);Bh(c,74,0,n,0)|0;Bh(c,28,0,b,0)|0;Bh(c,75,0,b,n)|0;h=k[c+4>>2]|0;if(h)i[h+(((k[d>>2]|0)+-1|0)*20|0)+3>>0]=8;Bh(c,61,0,0,0)|0;break a}while(0);rg(u,n)}}while(0);r=v;return}function _q(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,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;O=r;r=r+176|0;if((r|0)>=(s|0))ka();J=O+80|0;G=O+168|0;D=O;E=O+136|0;F=O+112|0;K=k[a>>2]|0;a:do if((!((c|0)==0&(e|0)==0)?(L=K+65|0,(i[L>>0]|0)==0):0)?(M=a+484|0,N=k[M>>2]|0,(N|0)!=0):0){I=K+145|0;if(i[I>>0]|0)k[N+32>>2]=k[K+140>>2];b:do if(d&32){n=N+44|0;h=l[n>>0]|0;if(h&8){yh(a,36584,J);break a}if(!(h&4)){k[J>>2]=k[N>>2];yh(a,36640,J);break}i[n>>0]=h|32;o=k[a+8>>2]|0;n=k[a+416>>2]|0;if(n){if((n|0)<0)n=(k[o+32>>2]|0)+-1|0;if(!(i[(k[o>>2]|0)+65>>0]|0))n=(k[o+4>>2]|0)+(n*20|0)|0;else n=29120;i[n>>0]=120}n=k[a+420>>2]|0;if(n){if((n|0)<0)n=(k[o+32>>2]|0)+-1|0;if(!(i[(k[o>>2]|0)+65>>0]|0))h=(k[o+4>>2]|0)+(n*20|0)|0;else h=29120;i[h>>0]=16}h=N+36|0;if((j[h>>1]|0)>-1){n=qr(a,0,0)|0;if(!n)break;z=ph(k[a>>2]|0,k[(k[N+4>>2]|0)+((j[h>>1]|0)*24|0)>>2]|0)|0;A=k[n+4>>2]|0;k[A+4>>2]=z;i[A+12>>0]=i[a+448>>0]|0;n=er(a,0,0,0,n,l[N+45>>0]|0,0,0,0,0)|0;if(!n)break;u=n+51|0;i[u>>0]=i[u>>0]&-4|2;j[h>>1]=-1;u=j[n+46>>1]|0}else{n=k[N+8>>2]|0;c:do if(!n)n=0;else while(1){if((i[n+51>>0]&3)==2)break c;n=k[n+20>>2]|0;if(!n){n=0;break}}while(0);v=n+46|0;o=j[v>>1]|0;if((o&65535)>1){t=k[n+4>>2]|0;q=n+48|0;u=1;h=1;do{f=j[t+(u<<1)>>1]|0;p=h;g=t;while(1){if((p|0)<=0){C=36;break}if((j[g>>1]|0)==f<<16>>16){C=35;break}else{p=p+-1|0;g=g+2|0}}if((C|0)==35){C=0;j[q>>1]=(j[q>>1]|0)+-1<<16>>16}else if((C|0)==36){C=0;j[t+(h<<1)>>1]=f;o=j[v>>1]|0;h=h+1|0}u=u+1|0}while((u|0)<(o&65535|0))}else h=1;u=h&65535;j[v>>1]=u}p=n+51|0;o=i[p>>0]|32;i[p>>0]=o;A=u&65535;if(!(i[K+147>>0]|0)){if(u<<16>>16){o=k[n+4>>2]|0;h=k[N+4>>2]|0;g=0;do{i[h+((j[o+(g<<1)>>1]|0)*24|0)+20>>0]=1;g=g+1|0}while((g|0)<(A|0));o=i[p>>0]|0}i[p>>0]=o|8}k[n+40>>2]=k[N+32>>2];p=k[N+8>>2]|0;if(p){x=u<<16>>16==0;y=n+4|0;z=n+32|0;do{d:do if((i[p+51>>0]&3)!=2){do if(x)o=j[p+46>>1]|0;else{q=k[p+4>>2]|0;o=j[p+46>>1]|0;g=o&65535;f=k[y>>2]|0;w=0;h=0;do{t=j[f+(w<<1)>>1]|0;v=g;u=q;while(1){if((v|0)<=0){u=1;break}if((j[u>>1]|0)==t<<16>>16){u=0;break}else{v=v+-1|0;u=u+2|0}}h=u+h|0;w=w+1|0}while((w|0)<(A|0));g=p+46|0;if(!h)break;if(ps(K,p,(o&65535)+h|0)|0)break b;if(x)break d;t=j[g>>1]|0;w=p+4|0;f=p+32|0;v=t;u=0;t=t&65535;while(1){o=k[w>>2]|0;h=j[(k[y>>2]|0)+(u<<1)>>1]|0;v=v&65535;q=o;while(1){if((v|0)<=0){C=63;break}if((j[q>>1]|0)==h<<16>>16)break;else{v=v+-1|0;q=q+2|0}}if((C|0)==63){C=0;j[o+(t<<1)>>1]=h;k[(k[f>>2]|0)+(t<<2)>>2]=k[(k[z>>2]|0)+(u<<2)>>2];t=t+1|0}u=u+1|0;if((u|0)>=(A|0))break d;v=j[g>>1]|0}}while(0);j[p+48>>1]=o}while(0);p=k[p+20>>2]|0}while((p|0)!=0)}v=N+38|0;o=j[v>>1]|0;h=o<<16>>16;if((A|0)>=(h|0)){j[n+48>>1]=o;break}if((ps(K,n,h)|0)==0?(B=j[v>>1]|0,B<<16>>16>0):0){q=n+4|0;u=n+32|0;o=B;t=0;n=A;do{g=k[q>>2]|0;p=n;h=g;while(1){if((p|0)<=0){C=74;break}if((j[h>>1]|0)==(t|0))break;else{p=p+-1|0;h=h+2|0}}if((C|0)==74){C=0;j[g+(n<<1)>>1]=t;k[(k[u>>2]|0)+(n<<2)>>2]=11152;o=j[v>>1]|0;n=n+1|0}t=t+1|0}while((t|0)<(o<<16>>16|0))}}while(0);C=N+68|0;n=k[C>>2]|0;e:do if(n){h=k[K+20>>2]|0;if((h|0)>0){g=k[K+16>>2]|0;o=0;while(1){f=o+1|0;if((k[g+(o<<4)+12>>2]|0)==(n|0))break e;if((f|0)<(h|0))o=f;else{o=f;break}}}else o=0}else o=-1e6;while(0);g=k[N+24>>2]|0;f:do if(g){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;n=D+0|0;h=n+80|0;do{k[n>>2]=0;n=n+4|0}while((n|0)<(h|0));k[D>>2]=1;k[D+16>>2]=k[N>>2];k[D+24>>2]=N;k[D+48>>2]=-1;k[E>>2]=a;k[E+4>>2]=D;j[E+28>>1]=4;n=g+4|0;if((k[g>>2]|0)>0){h=0;do{if(qs(E,k[(k[n>>2]|0)+(h*20|0)>>2]|0)|0)break f;h=h+1|0}while((h|0)<(k[g>>2]|0))}}while(0);A=N+38|0;f=j[A>>1]|0;if(f<<16>>16>0){n=f<<16>>16;h=k[N+4>>2]|0;g=0;while(1){g=(l[h+22>>0]|0)+g|0;n=n+-1|0;if((n|0)<=0)break;else h=h+24|0}}else g=0;g=ks(((m[N+36>>1]|0)>>>15&65535)+g<<2,0)|0;j[N+42>>1]=g;g=k[N+8>>2]|0;if(g)do{rs(g);g=k[g+20>>2]|0}while((g|0)!=0);if(!(i[I>>0]|0)){B=Tq(a)|0;if(!B)break;Bh(B,61,0,0,0)|0;y=(k[N+12>>2]|0)==0;h=y?36672:36680;y=y?31232:35480;do if(!e){g=d<<24>>24==0?c:a+504|0;e=k[g>>2]|0;n=k[a+496>>2]|0;f=e-n|0;if((i[e>>0]|0)!=59)f=(k[g+4>>2]|0)+f|0;k[J>>2]=h;k[J+4>>2]=f;k[J+8>>2]=n;n=a+388|0;f=N;h=zh(K,36688,J)|0}else{n=a+388|0;Bh(B,55,1,k[n>>2]|0,o)|0;h=k[B+4>>2]|0;if(h)i[h+(((k[B+32>>2]|0)+-1|0)*20|0)+3>>0]=4;k[a+68>>2]=2;i[F>>0]=14;k[F+4>>2]=1;i[F+1>>0]=0;k[F+8>>2]=0;k[F+12>>2]=0;nr(a,e,F)|0;Bh(B,61,1,0,0)|0;if(!(k[a+64>>2]|0)){f=ss(a,e)|0;if(!f)break a;F=f+38|0;j[A>>1]=j[F>>1]|0;e=f+4|0;k[N+4>>2]=k[e>>2];j[F>>1]=0;k[e>>2]=0;pg(K,f)}z=N+4|0;w=j[A>>1]|0;if(w<<16>>16>0){q=w<<16>>16;t=0;h=0;u=k[z>>2]|0;while(1){f=k[u>>2]|0;g=0;while(1){p=i[f>>0]|0;if(p<<24>>24==34)g=g+1|0;else if(!(p<<24>>24))break;f=f+1|0;g=g+1|0}h=h+7+g|0;t=t+1|0;if((t|0)==(q|0))break;else u=u+24|0}p=h+2|0}else p=2;f=k[N>>2]|0;h=0;while(1){g=i[f>>0]|0;if(!(g<<24>>24))break;else if(g<<24>>24==34)h=h+1|0;f=f+1|0;h=h+1|0}u=h+p|0;x=(u|0)<50;p=x?10360:36880;v=x?20240:36888;x=x?33952:36896;u=((w<<16>>16)*6|0)+35+u|0;h=vg(u,((u|0)<0)<<31>>31)|0;if(!h){i[L>>0]=1;f=N;h=0;break}fd(u,h,36904,J)|0;g=h;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;k[G>>2]=g-h&1073741823;ts(h,G,k[N>>2]|0);f=k[G>>2]|0;q=f+1|0;k[G>>2]=q;i[h+f>>0]=40;f=u-q|0;g=h+q|0;if((j[A>>1]|0)>0){w=0;t=k[z>>2]|0;while(1){fd(f,g,p,J)|0;g=h+q|0;if(!g)g=0;else{p=g;while(1)if(!(i[p>>0]|0))break;else p=p+1|0;g=p-g&1073741823}k[G>>2]=g+q;ts(h,G,k[t>>2]|0);g=k[36920+((i[t+21>>0]|0)+-65<<2)>>2]|0;p=g;while(1)if(!(i[p>>0]|0))break;else p=p+1|0;q=p-g&1073741823;p=k[G>>2]|0;pw(h+p|0,g|0,q|0)|0;q=p+q|0;k[G>>2]=q;p=w+1|0;f=u-q|0;g=h+q|0;if((p|0)<(j[A>>1]|0)){w=p;t=t+24|0;p=v}else break}}k[J>>2]=x;fd(f,g,10344,J)|0;f=N}while(0);g=K+16|0;d=k[f>>2]|0;F=k[n>>2]|0;e=k[a+384>>2]|0;k[J>>2]=k[(k[g>>2]|0)+(o<<4)>>2];k[J+4>>2]=(o|0)==1?13184:13208;k[J+8>>2]=y;k[J+12>>2]=d;k[J+16>>2]=d;k[J+20>>2]=F;k[J+24>>2]=h;k[J+28>>2]=e;Gr(a,36704,J);rg(K,h);Ir(a,o);if((i[N+44>>0]&8)!=0?(H=k[g>>2]|0,(k[(k[H+(o<<4)+12>>2]|0)+72>>2]|0)==0):0){k[J>>2]=k[H+(o<<4)>>2];Gr(a,36792,J)}k[J>>2]=k[f>>2];Nr(B,o,zh(K,36840,J)|0);if(!(i[I>>0]|0))break}else f=N;if(Nk((k[C>>2]|0)+8|0,k[f>>2]|0,N)|0){i[L>>0]=1;break}k[M>>2]=0;e=K+24|0;k[e>>2]=k[e>>2]|2;if(!(k[N+12>>2]|0)){e=k[a+496>>2]|0;e=(Sn(e,(k[((k[b>>2]|0)==0?c:b)>>2]|0)-e|0)|0)+13|0;k[N+48>>2]=e}}while(0);r=O;return}function $q(a,b){a=a|0;b=b|0;var c=0,d=0;if(!b)c=0;else{d=k[b>>2]|0;b=k[b+4>>2]|0;if((d|0)!=0?(c=ow(b|0,0,1,0)|0,c=rh(a,c,L)|0,(c|0)!=0):0){pw(c|0,d|0,b|0)|0;i[c+b>>0]=0}else c=0;qo(c)}return c|0}function ar(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,m=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();h=j;a:do if(a){d=i[a>>0]|0;b:do if(!(d<<24>>24)){c=67;d=0}else{f=d;c=67;e=0;d=0;do{e=l[9328+(f&255)>>0]|0|e<<8;a=a+1|0;if((e|0)==1651273570)if(c<<24>>24==69|c<<24>>24==67){m=i[a>>0]|0;f=m;c=65;e=1651273570;d=m<<24>>24==40?a:d}else g=14;else if((e|0)==1718382433)if(c<<24>>24==67){c=69;e=1718382433;g=5}else g=13;else if((e|0)==1667785074){c=66;e=1667785074;d=a;g=5}else if((e|0)==1952807028){c=66;g=5}else if((e|0)==1685026146)if(c<<24>>24==67){c=69;e=1685026146;g=5}else g=13;else if((e|0)==1919246700)if(c<<24>>24==67){c=69;e=1919246700;g=5}else g=14;else if((e|0)!=1668050786)if((e&16777215|0)==6909556){c=68;break b}else g=5;else{c=66;g=5}if((g|0)==13)g=5;else if((g|0)==14)g=5;if((g|0)==5){g=0;f=i[a>>0]|0}}while(f<<24>>24!=0)}while(0);if((b|0)!=0?(i[b>>0]=1,c<<24>>24<67):0){if(!d){i[b>>0]=5;break}a=i[d>>0]|0;if(a<<24>>24){while(1){if(((a&255)+-48|0)>>>0<10)break;d=d+1|0;a=i[d>>0]|0;if(!(a<<24>>24))break a}k[h>>2]=0;In(d,h)|0;d=((k[h>>2]|0)/4|0)+1|0;d=(d|0)>255?255:d;k[h>>2]=d;i[b>>0]=d}}}else c=67;while(0);r=j;return c|0}function br(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0;m=r;r=r+32|0;if((r|0)>=(s|0))ka();g=m;h=k[a>>2]|0;e=k[a+484>>2]|0;do if(e){d=(j[e+38>>1]|0)+-1|0;f=k[e+4>>2]|0;n=k[b>>2]|0;o=(l[h+145>>0]|0)+4|0;k[g+0>>2]=0;k[g+4>>2]=0;k[g+8>>2]=0;k[g+12>>2]=0;k[g+16>>2]=0;k[g+20>>2]=0;e=g+20|0;i[e>>0]=o;k[g>>2]=78;k[g+4>>2]=79;k[g+24>>2]=0;ws(g,n)|0;if(!(i[e>>0]|0)){k[g>>2]=k[f+(d*24|0)>>2];yh(a,36480,g);break}e=f+(d*24|0)+4|0;Lk(h,k[e>>2]|0);n=Rr(h,k[b>>2]|0,1,0)|0;k[e>>2]=n;f=f+(d*24|0)+8|0;rg(h,k[f>>2]|0);d=k[b+4>>2]|0;e=(k[b+8>>2]|0)-d|0;if((d|0)!=0?(c=ow(e|0,((e|0)<0)<<31>>31|0,1,0)|0,c=rh(h,c,L)|0,(c|0)!=0):0){pw(c|0,d|0,e|0)|0;i[c+e>>0]=0}else c=0;k[f>>2]=c}while(0);Lk(h,k[b>>2]|0);r=m;return}function cr(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=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;if((b|0)==72&(c|0)!=0&(d|0)!=0?(k[a+64>>2]|0)==0:0)b=xs(k[a>>2]|0,c,d)|0;else{b=sr(k[a>>2]|0,b,e,1)|0;ys(k[a>>2]|0,b,c,d)}if((b|0)!=0?(f=k[(k[a>>2]|0)+100>>2]|0,(f|0)<(k[b+24>>2]|0)):0){k[g>>2]=f;yh(a,27152,g)}r=h;return b|0}function dr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=r;r=r+16|0;if((r|0)>=(s|0))ka();z=A;x=k[a+484>>2]|0;do if((x|0)!=0?(i[a+451>>0]|0)==0:0){y=x+44|0;g=l[y>>0]|0;if(g&4){k[z>>2]=k[x>>2];yh(a,36376,z);break}v=g|4;i[y>>0]=v;w=(b|0)==0;if(w){g=(j[x+38>>1]|0)+-1|0;t=k[x+4>>2]|0;f=t+(g*24|0)+23|0;i[f>>0]=l[f>>0]|1;f=g;h=1;g=k[t+(g*24|0)+12>>2]|0}else{u=k[b>>2]|0;if((u|0)>0){p=b+4|0;q=x+4|0;o=j[x+38>>1]|0;t=0;g=0;do{a:do if(o<<16>>16>0){m=k[(k[p>>2]|0)+(t*20|0)+4>>2]|0;n=k[q>>2]|0;h=0;while(1){f=h+1|0;if(!(id(m,k[n+(h*24|0)>>2]|0)|0))break;if((f|0)<(o<<16>>16|0))h=f;else break a}f=n+(h*24|0)+23|0;i[f>>0]=l[f>>0]|1;f=h;g=k[n+(h*24|0)+12>>2]|0}else f=0;while(0);t=t+1|0}while((t|0)!=(u|0))}else{f=-1;g=0}h=(u|0)==1}if(h&(g|0)!=0?(id(g,11144)|0|e|0)==0:0){j[x+36>>1]=f;i[x+45>>0]=c;i[y>>0]=v|d<<3;if(w){b=0;break}i[a+448>>0]=i[(k[b+4>>2]|0)+12>>0]|0;break}if(d){yh(a,36424,z);break}g=k[a+8>>2]|0;f=(g|0)!=0;if(f){t=Bh(g,156,0,0,0)|0;k[a+420>>2]=t}b=er(a,0,0,0,b,c,0,0,e,0)|0;if((b|0)!=0?(t=b+51|0,i[t>>0]=i[t>>0]&-4|2,f):0){b=k[a+420>>2]|0;f=k[g+32>>2]|0;if(f>>>0>b>>>0)k[(k[g+4>>2]|0)+(b*20|0)+8>>2]=f;k[(k[g+24>>2]|0)+88>>2]=f+-1;b=0}else b=0}while(0);Sk(k[a>>2]|0,b);r=A;return}function er(a,b,c,d,e,f,g,h,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;n=n|0;o=o|0;var 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;V=r;r=r+144|0;if((r|0)>=(s|0))ka();S=V;B=V+112|0;u=V+88|0;Q=V+84|0;K=V+80|0;U=k[a>>2]|0;k[Q>>2]=0;k[K>>2]=0;P=U+65|0;a:do if(((i[P>>0]|0)==0?(i[a+451>>0]|0)==0:0)?(Ln(a)|0)==0:0){R=(d|0)!=0;b:do if(R){b=jr(a,b,c,Q)|0;if((b|0)<0){p=0;c=0;break a}if((i[U+145>>0]|0)==0?(p=Or(a,d)|0,(k[c+4>>2]|0)==0&(p|0)!=0):0)b=(k[p+68>>2]|0)==(k[(k[U+16>>2]|0)+28>>2]|0)?1:b;c=k[Q>>2]|0;p=k[a>>2]|0;k[u>>2]=a;p=k[p+16>>2]|0;k[u+12>>2]=k[p+(b<<4)>>2];k[u+4>>2]=k[p+(b<<4)+12>>2];k[u+16>>2]=20632;k[u+20>>2]=c;p=(b|0)==1;k[u+8>>2]=p&1;Pr(u,d)|0;t=Zr(a,0,d+8|0)|0;if(!t){p=0;c=0;break a}if(p?(k[(k[U+16>>2]|0)+28>>2]|0)!=(k[t+68>>2]|0):0){k[S>>2]=k[t>>2];yh(a,35920,S);p=0;c=0;break a}if((i[t+44>>0]&32)!=0?(q=k[t+8>>2]|0,(q|0)!=0):0){p=q;while(1){if((i[p+51>>0]&3)==2){q=b;J=p;u=t;break b}p=k[p+20>>2]|0;if(!p){q=b;J=0;u=t;break}}}else{q=b;J=0;u=t}}else{u=k[a+484>>2]|0;if(!u){p=0;c=0;break a}b=k[u+68>>2]|0;if(b){p=k[U+20>>2]|0;if((p|0)>0){c=k[U+16>>2]|0;t=0;while(1){q=t+1|0;if((k[c+(t<<4)+12>>2]|0)==(b|0)){c=0;q=t;J=0;break b}if((q|0)<(p|0))t=q;else{c=0;J=0;break}}}else{c=0;q=0;J=0}}else{c=0;q=-1e6;J=0}}while(0);O=U+16|0;C=k[O>>2]|0;b=C+(q<<4)|0;x=k[u>>2]|0;if(((Kc(x,25568,7)|0)==0?(i[U+145>>0]|0)==0:0)?(Kc(x+7|0,35976,9)|0)!=0:0){k[S>>2]=x;yh(a,35992,S);p=0;c=0;break}if(k[u+12>>2]|0){yh(a,36024,S);p=0;c=0;break}N=u+44|0;if(i[N>>0]&16){yh(a,36056,S);p=0;c=0;break}D=(c|0)==0;if(!D){c=$q(U,c)|0;if(!c){p=0;c=0;break}if(Qr(a,c)|0){p=0;break}if((i[U+145>>0]|0)==0?(di(U,c,0)|0)!=0:0){k[S>>2]=c;yh(a,36096,S);p=0;break}if(gq(U,c,k[b>>2]|0)|0)if(!o){k[S>>2]=c;yh(a,36136,S);p=0;break}else{Fr(a,q);p=0;break}else t=c}else{p=k[u+8>>2]|0;if(!p)t=1;else{t=1;do{t=t+1|0;p=k[p+20>>2]|0}while((p|0)!=0)}k[S>>2]=x;k[S+4>>2]=t;t=zh(U,36160,S)|0;if(!t){p=0;c=0;break}}b=k[b>>2]|0;p=(q|0)==1;L=p?13184:13208;if((Xq(a,18,L,0,b)|0)==0?(Xq(a,p?3:1,t,k[u>>2]|0,b)|0)==0:0){if(!e){e=qr(a,0,0)|0;if(!e){e=0;p=0;c=t;break}F=ph(k[a>>2]|0,k[(k[u+4>>2]|0)+(((j[u+38>>1]|0)+-1|0)*24|0)>>2]|0)|0;G=k[e+4>>2]|0;k[G+4>>2]=F;i[G+12>>0]=n}A=k[e>>2]|0;if((A|0)>0){x=k[e+4>>2]|0;v=0;b=0;do{p=k[x+(v*20|0)>>2]|0;if(p){c=k[p+8>>2]|0;if(!c)p=1;else{p=c;while(1)if(!(i[p>>0]|0))break;else p=p+1|0;p=(p-c&1073741823)+1|0}b=p+b|0}v=v+1|0}while((v|0)<(A|0));c=b}else c=0;if(!t)p=0;else{b=t;while(1)if(!(i[b>>0]|0))break;else b=b+1|0;p=b-t&1073741823}F=(J|0)!=0;if(F)b=m[J+46>>1]|0;else b=1;M=zs(U,A+b&65535,c+1+p|0,K)|0;c:do if(!(i[P>>0]|0)){E=k[K>>2]|0;k[M>>2]=E;I=p+1|0;z=E+I|0;k[K>>2]=z;pw(E|0,t|0,I|0)|0;k[M+12>>2]=u;I=M+50|0;i[I>>0]=f;E=M+51|0;i[E>>0]=i[E>>0]&-12|((f|0)!=0&1)<<3&255|D&1;H=M+24|0;k[H>>2]=k[(k[O>>2]|0)+(q<<4)+12>>2];b=k[e>>2]|0;G=M+46|0;j[G>>1]=b;if(h){k[B+0>>2]=0;k[B+4>>2]=0;k[B+8>>2]=0;k[B+12>>2]=0;k[B+16>>2]=0;k[B+20>>2]=0;k[B+24>>2]=0;k[B+28>>2]=0;x=S+0|0;c=x+80|0;do{k[x>>2]=0;x=x+4|0}while((x|0)<(c|0));k[S>>2]=1;k[S+16>>2]=k[u>>2];k[S+24>>2]=u;k[S+48>>2]=-1;k[B>>2]=a;k[B+4>>2]=S;j[B+28>>1]=16;qs(B,h)|0;k[M+36>>2]=h;b=k[e>>2]|0}w=(l[(k[C+(q<<4)+12>>2]|0)+76>>0]|0)>3;d:do if((b|0)>0){D=u+4|0;C=u+38|0;B=M+4|0;h=U+145|0;b=M+32|0;v=M+28|0;c=0;n=k[e+4>>2]|0;while(1){p=k[n+4>>2]|0;x=j[C>>1]|0;e:do if(x<<16>>16>0){A=0;y=k[D>>2]|0;while(1){if(!(id(p,k[y>>2]|0)|0)){o=A;break e}A=A+1|0;if((A|0)<(x<<16>>16|0))y=y+24|0;else{o=A;break}}}else o=0;while(0);if((o|0)>=(x<<16>>16|0))break;j[(k[B>>2]|0)+(c<<1)>>1]=o;A=k[n>>2]|0;if(!A){A=k[(k[D>>2]|0)+(o*24|0)+16>>2]|0;A=(A|0)!=0?A:11152}else{y=k[A+8>>2]|0;if(!y)A=1;else{A=y;while(1)if(!(i[A>>0]|0))break;else A=A+1|0;A=(A-y&1073741823)+1|0}pw(z|0,y|0,A|0)|0;y=k[K>>2]|0;z=y+A|0;k[K>>2]=z;A=y}if((i[h>>0]|0)==0?(hr(a,A)|0)==0:0){c=0;p=0;T=134;break c}k[(k[b>>2]|0)+(c<<2)>>2]=A;i[(k[v>>2]|0)+c>>0]=w?i[n+12>>0]|0:0;if(!(i[(k[D>>2]|0)+(o*24|0)+20>>0]|0))i[E>>0]=i[E>>0]&-9;c=c+1|0;if((c|0)<(k[e>>2]|0))n=n+20|0;else break d}k[S>>2]=k[u>>2];k[S+4>>2]=p;yh(a,36184,S);i[a+17>>0]=1;c=0;p=0;T=134;break c}else c=0;while(0);do if(F){w=J+46|0;x=j[w>>1]|0;if(!(x<<16>>16))break;B=J+4|0;C=M+4|0;D=M+48|0;n=J+32|0;o=M+32|0;b=J+28|0;v=M+28|0;h=0;do{y=j[(k[B>>2]|0)+(h<<1)>>1]|0;p=k[C>>2]|0;A=m[G>>1]|0;z=p;while(1){if((A|0)<=0){T=92;break}if((j[z>>1]|0)==y<<16>>16){T=91;break}else{A=A+-1|0;z=z+2|0}}if((T|0)==91){T=0;j[D>>1]=(j[D>>1]|0)+-1<<16>>16}else if((T|0)==92){T=0;j[p+(c<<1)>>1]=y;k[(k[o>>2]|0)+(c<<2)>>2]=k[(k[n>>2]|0)+(h<<2)>>2];i[(k[v>>2]|0)+c>>0]=i[(k[b>>2]|0)+h>>0]|0;x=j[w>>1]|0;c=c+1|0}h=h+1|0}while((h|0)<(x&65535|0))}else{j[(k[M+4>>2]|0)+(c<<1)>>1]=-1;k[(k[M+32>>2]|0)+(c<<2)>>2]=11152}while(0);hq(M);h=a+484|0;b=k[h>>2]|0;if(!b){rs(M);b=k[h>>2]|0}f:do if((u|0)==(b|0)){p=k[u+8>>2]|0;if(!p)break;y=j[G>>1]|0;z=M+4|0;A=M+32|0;while(1){if((j[p+46>>1]|0)==y<<16>>16){g:do if(!(y<<16>>16)){h=0;b=0}else{v=k[p+4>>2]|0;w=k[z>>2]|0;x=p+32|0;b=0;while(1){if((j[v+(b<<1)>>1]|0)!=(j[w+(b<<1)>>1]|0)){h=y;break g}h=k[(k[x>>2]|0)+(b<<2)>>2]|0;c=k[(k[A>>2]|0)+(b<<2)>>2]|0;if((h|0)!=(c|0)?(id(h,c)|0)!=0:0){h=y;break g}b=b+1|0;if((b|0)>=(y&65535|0)){h=y;break}}}while(0);if((b|0)==(h&65535|0))break}p=k[p+20>>2]|0;if(!p)break f}b=p+50|0;c=i[b>>0]|0;h=i[I>>0]|0;if(c<<24>>24==h<<24>>24){c=0;break c}if(!(c<<24>>24==10|h<<24>>24==10)){k[S>>2]=0;yh(a,36216,S);c=i[b>>0]|0}if(c<<24>>24!=10){c=0;T=134;break c}i[b>>0]=i[I>>0]|0;c=0;break c}while(0);c=U+145|0;do if(!(i[c>>0]|0)){if(k[a+64>>2]|0){T=126;break}if(!((i[N>>0]&32)==0|R)){T=126;break}p=a+72|0;h=(k[p>>2]|0)+1|0;k[p>>2]=h;p=Tq(a)|0;if(!p){c=0;p=0;T=134;break c}G=k[a+408>>2]|0;G=(G|0)==0?a:G;Fr(a,q);F=G+328|0;k[F>>2]=k[F>>2]|1<<q;G=G+20|0;i[G>>0]=l[G>>0]|1;Bh(p,120,q,h,0)|0;if(!g)b=0;else{b=k[k[Q>>2]>>2]|0;G=(k[a+504>>2]|0)-b+(k[a+508>>2]|0)|0;F=G+-1|0;G=(i[b+F>>0]|0)==59?F:G;k[S>>2]=(f|0)==0?10360:36288;k[S+4>>2]=G;k[S+8>>2]=b;b=zh(U,36264,S)|0}F=k[M>>2]|0;G=k[u>>2]|0;k[S>>2]=k[(k[O>>2]|0)+(q<<4)>>2];k[S+4>>2]=L;k[S+8>>2]=F;k[S+12>>2]=G;k[S+16>>2]=h;k[S+20>>2]=b;Gr(a,36296,S);rg(U,b);if(!R)break;As(a,M,h);Ir(a,q);k[S>>2]=k[M>>2];Nr(p,q,zh(U,36344,S)|0);Bh(p,144,0,0,0)|0;T=126}else{if(Nk((k[H>>2]|0)+24|0,k[M>>2]|0,M)|0){i[P>>0]=1;c=0;p=0;T=134;break c}G=U+24|0;k[G>>2]=k[G>>2]|2;if(!R)break;k[M+40>>2]=k[U+140>>2];T=126}while(0);if((T|0)==126?!((i[c>>0]|0)!=0|(d|0)==0):0){c=0;p=0;T=134;break}c=k[u+8>>2]|0;do if((f|0)==5){if(!c){c=0;break}if((i[c+50>>0]|0)==5)break;do{p=c+20|0;c=k[p>>2]|0;if(!c){c=0;break}}while((i[c+50>>0]|0)!=5);k[M+20>>2]=c;k[p>>2]=M;h=0;p=M;c=t;break a}while(0);k[M+20>>2]=c;k[u+8>>2]=M;h=0;p=M;c=t;break a}else{c=h;p=0;T=134}while(0);if((T|0)==134)if(!M){h=c;c=t;break}Ok(U,M);h=c;c=t}else{p=0;c=t}}else{p=0;c=0}while(0);Lk(U,h);Sk(U,e);Io(U,d);rg(U,c);r=V;return p|0}function fr(a,b){a=a|0;b=b|0;var c=0,d=0;c=k[a+484>>2]|0;d=k[a>>2]|0;if(((c|0)!=0?(i[a+451>>0]|0)==0:0)?(j[(k[(k[(k[d+16>>2]|0)+(l[d+144>>0]<<4)+4>>2]|0)+4>>2]|0)+22>>1]&1)==0:0){d=c+24|0;c=qr(a,k[d>>2]|0,b)|0;k[d>>2]=c;if(k[a+324>>2]|0)rr(a,c,a+320|0,1)}else Lk(d,b);return}function gr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=r;r=r+16|0;if((r|0)>=(s|0))ka();z=C;B=k[a>>2]|0;A=k[a+484>>2]|0;a:do if((A|0)!=0?(i[a+451>>0]|0)==0:0){w=(b|0)==0;do if(w){y=j[A+38>>1]|0;g=(y<<16>>16)+-1|0;if(y<<16>>16<1){f=0;break a}if(d)if((k[d>>2]|0)==1){g=1;f=13}else{k[z>>2]=k[(k[A+4>>2]|0)+(g*24|0)>>2];k[z+4>>2]=c;yh(a,35712,z);f=0;break a}else{g=1;f=12}}else{if(!d){g=k[b>>2]|0;f=12;break}g=k[d>>2]|0;if((g|0)==(k[b>>2]|0))f=13;else{yh(a,35776,z);f=0;break a}}while(0);if((f|0)==12){h=c+4|0;n=h;t=0;h=(g<<3)+37+(k[h>>2]|0)|0;y=g}else if((f|0)==13){n=c+4|0;h=(g<<3)+37+(k[n>>2]|0)|0;o=k[d>>2]|0;if((o|0)>0){p=k[d+4>>2]|0;q=0;do{m=k[p+(q*20|0)+4>>2]|0;if(!m)f=1;else{l=m;while(1)if(!(i[l>>0]|0))break;else l=l+1|0;f=(l-m&1073741823)+1|0}h=f+h|0;q=q+1|0}while((q|0)<(o|0));t=1;y=g}else{t=1;y=g}}f=rh(B,h,((h|0)<0)<<31>>31)|0;if(f){kw(f|0,0,h|0)|0;k[f>>2]=A;x=A+16|0;k[f+4>>2]=k[x>>2];u=f+36|0;l=u+(y<<3)|0;v=f+8|0;k[v>>2]=l;pw(l|0,k[c>>2]|0,k[n>>2]|0)|0;i[l+(k[n>>2]|0)>>0]=0;qo(l);l=l+((k[n>>2]|0)+1)|0;k[f+20>>2]=y;b:do if(!w){if((y|0)>0){h=A+4|0;c=b+4|0;m=j[A+38>>1]|0;g=0;while(1){c:do if(m<<16>>16>0){q=k[h>>2]|0;p=k[(k[c>>2]|0)+(g*20|0)+4>>2]|0;o=0;while(1){n=o+1|0;if(!(id(k[q+(o*24|0)>>2]|0,p)|0)){n=o;break}if((n|0)<(m<<16>>16|0))o=n;else break c}k[u+(g<<3)>>2]=n}else n=0;while(0);if((n|0)>=(m<<16>>16|0))break;g=g+1|0;if((g|0)>=(y|0))break b}k[z>>2]=k[(k[c>>2]|0)+(g*20|0)+4>>2];yh(a,35872,z);break a}}else k[u>>2]=(j[A+38>>1]|0)+-1;while(0);if(t&(y|0)>0){m=d+4|0;n=0;while(1){h=k[(k[m>>2]|0)+(n*20|0)+4>>2]|0;if(!h)g=0;else{g=h;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=g-h&1073741823}k[u+(n<<3)+4>>2]=l;pw(l|0,h|0,g|0)|0;i[l+g>>0]=0;n=n+1|0;if((n|0)==(y|0))break;else l=l+(g+1)|0}}i[f+24>>0]=0;i[f+25>>0]=e;i[f+26>>0]=e>>>8;g=Nk((k[A+68>>2]|0)+56|0,k[v>>2]|0,f)|0;if((g|0)==(f|0)){i[B+65>>0]=1;break}if(g){k[f+12>>2]=g;k[g+16>>2]=f}k[x>>2]=f;f=0}else f=0}else f=0;while(0);rg(B,f);Sk(B,b);Sk(B,d);r=C;return}function hr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=k[a>>2]|0;d=i[c+62>>0]|0;e=i[c+145>>0]|0;c=bo(c,d,b,e&255)|0;do if(!(e<<24>>24)){if((c|0)!=0?(k[c+12>>2]|0)!=0:0)break;c=Bs(a,d,c,b)|0}while(0);return c|0}function ir(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+16|0;if((r|0)>=(s|0))ka();w=y;q=y+12|0;x=k[a>>2]|0;do if(!(i[x+65>>0]|0)){d=(d|0)!=0;if(d){p=x+68|0;i[p>>0]=(i[p>>0]|0)+1<<24>>24;v=Zr(a,c,b+8|0)|0;i[p>>0]=(i[p>>0]|0)+-1<<24>>24}else v=Zr(a,c,b+8|0)|0;if(!v){if(!d)break;Er(a,k[b+12>>2]|0);break}n=v+68|0;f=k[n>>2]|0;a:do if(f){d=k[x+20>>2]|0;if((d|0)>0){e=k[x+16>>2]|0;h=0;while(1){g=h+1|0;if((k[e+(h<<4)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(d|0))h=g;else break}}else g=0}else g=-1e6;while(0);t=v+44|0;if((i[t>>0]&16)!=0?(mr(a,v)|0)!=0:0)break;h=(g|0)==1;u=h?13184:13208;d=k[(k[x+16>>2]|0)+(g<<4)>>2]|0;if(!(Xq(a,9,u,0,d)|0)){e=(c|0)!=0;do if(e){f=h?15:17;h=0}else{if(!(i[t>>0]&16)){f=h?13:11;h=0;break}h=v+60|0;while(1){h=k[h>>2]|0;if((k[h>>2]|0)==(x|0))break;else h=h+24|0}f=30;h=k[(k[h+4>>2]|0)+4>>2]|0}while(0);if((Xq(a,f,k[v>>2]|0,h,d)|0)==0?(Xq(a,9,k[v>>2]|0,0,d)|0)==0:0){h=k[v>>2]|0;if((Kc(h,25568,7)|0)==0?(Kc(h,35488,11)|0)!=0:0){k[w>>2]=h;yh(a,35504,w);break}d=v+12|0;f=(k[d>>2]|0)==0;if(e){if(f){k[w>>2]=h;yh(a,35536,w);break}}else if(!f){k[w>>2]=h;yh(a,35576,w);break}if(Tq(a)|0){o=a+408|0;f=k[o>>2]|0;f=(f|0)==0?a:f;Fr(a,g);p=1<<g;e=f+328|0;k[e>>2]=k[e>>2]|p;f=f+20|0;i[f>>0]=l[f>>0]|1;Hr(a,g,28544,k[v>>2]|0);f=k[a>>2]|0;e=f+24|0;b:do if(((k[e>>2]&524288|0)!=0?(i[t>>0]&16)==0:0)?(k[d>>2]|0)==0:0){m=Tq(a)|0;q=gn((k[n>>2]|0)+56|0,k[v>>2]|0,q)|0;if((q|0)!=0?(k[q+8>>2]|0)!=0:0)h=0;else{h=k[v+16>>2]|0;if(!h)break;while(1){if(i[h+24>>0]|0)break;if(k[e>>2]&16777216)break;h=k[h+4>>2]|0;if(!h)break b}h=Cs(m)|0;Bh(m,135,1,h,0)|0}q=a+438|0;i[q>>0]=1;wr(a,Ds(f,b,0)|0,0);i[q>>0]=0;if(!(k[e>>2]&16777216)){Bh(m,135,0,(k[m+32>>2]|0)+2|0,0)|0;Es(a,787,2,0,-2,4)}if(h){f=k[m+24>>2]|0;d=~h;do if((h|0)<0){h=k[f+112>>2]|0;if(!h)break;k[h+(d<<2)>>2]=k[m+32>>2]}while(0);k[f+88>>2]=(k[m+32>>2]|0)+-1}}while(0);m=k[a>>2]|0;n=m+16|0;f=k[n>>2]|0;d=Tq(a)|0;q=k[o>>2]|0;q=(q|0)==0?a:q;Fr(a,g);o=q+328|0;k[o>>2]=k[o>>2]|p;q=q+20|0;i[q>>0]=l[q>>0]|1;if(i[t>>0]&16)Bh(d,146,0,0,0)|0;h=Fs(a,v)|0;if(h)do{Vr(a,h);h=k[h+32>>2]|0}while((h|0)!=0);f=f+(g<<4)|0;if(i[t>>0]&8){q=k[v>>2]|0;k[w>>2]=k[f>>2];k[w+4>>2]=q;Gr(a,35608,w)}q=k[v>>2]|0;k[w>>2]=k[f>>2];k[w+4>>2]=u;k[w+8>>2]=q;Gr(a,35656,w);if((c|0)==0?(i[t>>0]&16)==0:0)Gs(a,v);if(i[t>>0]&16){q=k[v>>2]|0;Ch(d,Bh(d,148,g,0,0)|0,q,0)}e=k[v>>2]|0;Ch(d,Bh(d,124,g,0,0)|0,e,0);Ir(a,g);d=k[(k[n>>2]|0)+(g<<4)+12>>2]|0;e=j[d+78>>1]|0;if(e&2){f=k[d+16>>2]|0;if(f){e=f;do{d=k[e+8>>2]|0;if(k[d+12>>2]|0){Qk(m,d);k[d+4>>2]=0;j[d+38>>1]=0}e=k[e>>2]|0}while((e|0)!=0);e=k[(k[n>>2]|0)+(g<<4)+12>>2]|0;d=e;e=j[e+78>>1]|0}j[d+78>>1]=e&65533}}}}}while(0);Io(x,b);r=y;return}function jr(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;h=r;r=r+16|0;if((r|0)>=(s|0))ka();f=h;e=k[a>>2]|0;do if((c|0)!=0?(k[c+4>>2]|0)!=0:0){if(i[e+145>>0]|0){yh(a,28488,f);c=a+64|0;k[c>>2]=(k[c>>2]|0)+1;c=-1;break}k[d>>2]=c;d=$q(e,b)|0;c=_h(e,d)|0;rg(e,d);if((c|0)<0){k[f>>2]=b;yh(a,28512,f);c=a+64|0;k[c>>2]=(k[c>>2]|0)+1;c=-1}}else g=7;while(0);if((g|0)==7){c=l[e+144>>0]|0;k[d>>2]=b}r=h;return c|0}function kr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Mr(a,k[b>>2]|0)|0){b=1;break a}if(Pr(a,k[b+32>>2]|0)|0){b=1;break a}if(Lr(a,k[b+36>>2]|0)|0){b=1;break a}if(Mr(a,k[b+40>>2]|0)|0){b=1;break a}if(Lr(a,k[b+44>>2]|0)|0){b=1;break a}if(Mr(a,k[b+48>>2]|0)|0){b=1;break a}if(Lr(a,k[b+60>>2]|0)|0){b=1;break a}if(Lr(a,k[b+64>>2]|0)|0){b=1;break a}b=k[b+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function lr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if((b|0)!=0?(d=rh(a,72,0)|0,(d|0)!=0):0){f=Ur(a,k[b>>2]|0,c)|0;k[d>>2]=f;f=Ds(a,k[b+32>>2]|0,c)|0;k[d+32>>2]=f;f=Rr(a,k[b+36>>2]|0,c,0)|0;k[d+36>>2]=f;f=Ur(a,k[b+40>>2]|0,c)|0;k[d+40>>2]=f;f=Rr(a,k[b+44>>2]|0,c,0)|0;k[d+44>>2]=f;f=Ur(a,k[b+48>>2]|0,c)|0;k[d+48>>2]=f;i[d+4>>0]=i[b+4>>0]|0;f=lr(a,k[b+52>>2]|0,c)|0;k[d+52>>2]=f;if(f)k[f+56>>2]=d;k[d+56>>2]=0;h=Rr(a,k[b+60>>2]|0,c,0)|0;k[d+60>>2]=h;h=Rr(a,k[b+64>>2]|0,c,0)|0;k[d+64>>2]=h;k[d+8>>2]=0;k[d+12>>2]=0;j[d+6>>1]=(m[b+6>>1]|0)&65527;k[d+16>>2]=-1;k[d+20>>2]=-1;h=b+24|0;f=k[h+4>>2]|0;c=d+24|0;k[c>>2]=k[h>>2];k[c+4>>2]=f;c=k[b+68>>2]|0;if((c|0)!=0?(g=k[c>>2]<<4|8,e=rh(a,g,((g|0)<0)<<31>>31)|0,(e|0)!=0):0){kw(e|0,0,g|0)|0;k[e>>2]=k[c>>2];if((k[c>>2]|0)>0){b=e+8|0;f=0;do{g=lr(a,k[c+(f<<4)+16>>2]|0,0)|0;k[b+(f<<4)+8>>2]=g;g=Ur(a,k[c+(f<<4)+12>>2]|0,0)|0;k[b+(f<<4)+4>>2]=g;g=ph(a,k[c+(f<<4)+8>>2]|0)|0;k[b+(f<<4)>>2]=g;f=f+1|0}while((f|0)<(k[c>>2]|0))}}else e=0;k[d+68>>2]=e}else d=0;return d|0}function mr(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;t=r;r=r+16|0;if((r|0)>=(s|0))ka();n=t;e=t+8|0;g=t+4|0;q=k[a>>2]|0;h=b+44|0;d=i[h>>0]|0;a:do if(!(d&16))o=11;else{c=k[b+60>>2]|0;if(c)do{if((k[c>>2]|0)==(q|0)){o=11;break a}c=k[c+24>>2]|0}while((c|0)!=0);c=b+56|0;d=gn(q+308|0,k[k[c>>2]>>2]|0,e)|0;if((d|0)!=0?(f=k[d+8>>2]|0,(f|0)!=0):0){k[g>>2]=0;f=(En(q,b,f,k[(k[f>>2]|0)+8>>2]|0,g)|0)==0;d=k[g>>2]|0;if(f){rg(q,d);d=i[h>>0]|0;o=11;break}else{k[n>>2]=d;yh(a,10344,n);rg(q,d);c=1;break}}k[n>>2]=k[k[c>>2]>>2];yh(a,28320,n);c=1}while(0);do if((o|0)==11)if((d&16)==0?(p=b+38|0,l=j[p>>1]|0,l<<16>>16<=0):0){if(l<<16>>16<0){k[n>>2]=k[b>>2];yh(a,26752,n);c=1;break}d=lr(q,k[b+12>>2]|0,0)|0;if(!d)c=1;else{l=q+250|0;h=i[l>>0]|0;o=a+68|0;n=k[o>>2]|0;Hs(a,k[d+32>>2]|0);j[p>>1]=-1;i[l>>0]=0;g=q+284|0;f=k[g>>2]|0;k[g>>2]=0;c=ss(a,d)|0;k[g>>2]=f;i[l>>0]=h;k[o>>2]=n;if(!c){j[p>>1]=0;c=1}else{a=c+38|0;j[p>>1]=j[a>>1]|0;o=c+4|0;k[b+4>>2]=k[o>>2];j[a>>1]=0;k[o>>2]=0;pg(q,c);c=(k[b+68>>2]|0)+78|0;j[c>>1]=m[c>>1]|0|2;c=0}Rk(q,d,1)}}else c=0;while(0);r=t;return c|0}
[all...]
H A Dsqlite-pointer-masking.js6 function Zr(f,g,k,l,m){f=f|0;g=g|0;k=k|0;l=l|0;m=m|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+16|0;if((i|0)>=(j|0))fa();y=B;z=B+8|0;c[(z&p)>>2]=0;a:do if(!g){c[(m&p)>>2]=0;r=0}else{s=a[(g&n)>>0]|0;if(s<<24>>24==-98)do{g=c[(g&p)+12>>2]|0;s=a[(g&n)>>0]|0}while(s<<24>>24==-98);if(s<<24>>24==-97)u=d[(g&n)+38>>0]|0;else u=s&255;if((u|0)==38){t=Xq(c[(g&p)+8>>2]|0,0)|0;r=Zr(f,c[(g&p)+12>>2]|0,k,t,m)|0;s=c[(m&p)>>2]|0;if(!s)break;gm(s,t,1);fm(c[(m&p)>>2]|0,l,1);break}else if((u|0)==157){g=c[(g&p)+12>>2]|0;u=a[(g&n)>>0]|0;if((u&-2)<<24>>24==-124){t=-1;s=-1;x=u&255;u=26016;A=12}else A=30}else{t=1;s=0;x=u;u=10360;A=12}b:do if((A|0)==12){c:do switch(x|0){case 157:{g=c[(g&p)+12>>2]|0;A=30;break b}case 97:case 132:case 133:{r=mh(f,40,0)|0;if(!r){c[(z&p)>>2]=r;break c}v=r+0|0;w=v+40|0;do{a[(v&n)>>0]=0;v=v+1|0}while((v|0)<(w|0));b[(r&o)+8>>1]=1;c[(r&p)+32>>2]=f;c[(z&p)>>2]=r;do if(!(c[(g&p)+4>>2]&1024)){t=c[(g&p)+8>>2]|0;c[(y&p)>>2]=u;c[(y&p)+4>>2]=t;t=uh(f,19456,y)|0;if(!t)break c;if(r)Xg(r,t,-1,1,75)|0}else{u=c[(g&p)+8>>2]|0;u=sw(u|0,((u|0)<0)<<31>>31|0,t|0,s|0)|0;t=G;g=r+8|0;if(!(b[(g&o)>>1]&9312)){z=r;c[(z&p)>>2]=u;c[(z&p)+4>>2]=t;b[(g&o)>>1]=4;break}else{Zg(r,u,t);break}}while(0);if((x&-2|0)==132&l<<24>>24==65)fm(r,67,1);else fm(r,l,1);s=r+8|0;g=e[(s&o)>>1]|0;if(g&12)b[(s&o)>>1]=g&65533;if(k<<24>>24==1){s=r;r=0;break b}s=r;r=Yl(r,k&255)|0;break b}case 101:{r=mh(f,40,0)|0;if(!r){c[(z&p)>>2]=r;break c}else{v=r+0|0;w=v+40|0;do{a[(v&n)>>0]=0;v=v+1|0}while((v|0)<(w|0));b[(r&o)+8>>1]=1;c[(r&p)+32>>2]=f;c[(z&p)>>2]=r;s=r;r=0;break b}}case 134:{r=mh(f,40,0)|0;if(!r){c[(z&p)>>2]=r;break c}v=r+0|0;w=v+40|0;do{a[(v&n)>>0]=0;v=v+1|0}while((v|0)<(w|0));b[(r&o)+8>>1]=1;c[(r&p)+32>>2]=f;c[(z&p)>>2]=r;s=(c[(g&p)+8>>2]|0)+2|0;g=s;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;z=(g-s&1073741823)+-1|0;Xg(r,Yt(f,s,z)|0,(z|0)/2|0,0,75)|0;s=r;r=0;break b}default:{s=0;r=0;break b}}while(0);a[(f&n)+65>>0]=1;mg(f,0);Mh(r);r=7;break a}while(0);if((A|0)==30){y=(Zr(f,g,k,l,z)|0)==0;s=c[(z&p)>>2]|0;if(y&(s|0)!=0){op(s);t=s+8|0;g=b[(t&o)>>1]|0;do if(!(g&8)){u=s;r=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((r|0)==0&(u|0)==-2147483648){h[(s&q)>>3]=9223372036854775808.0;b[(t&o)>>1]=g&48640|8;break}else{y=dw(0,0,r|0,u|0)|0;z=s;c[(z&p)>>2]=y;c[(z&p)+4>>2]=G;break}}else h[(s&q)>>3]=-+h[(s&q)>>3];while(0);fm(s,l,k);r=0}else r=0}c[(m&p)>>2]=s}while(0);i=B;return r|0}function _r(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;do if((d|0)!=0?(g=b+19|0,h=a[(g&n)>>0]|0,(h&255)<8):0){f=0;e=b+116|0;while(1){if((c[(e&p)+12>>2]|0)==(d|0)){f=5;break}f=f+1|0;if((f|0)>=10){f=7;break}else e=e+20|0}if((f|0)==5){a[(e&n)+6>>0]=1;break}else if((f|0)==7){a[(g&n)>>0]=h+1<<24>>24;c[(b+((h&255)<<2)&p)+24>>2]=d;break}}while(0);return}function $r(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+32|0;if((i|0)>=(j|0))fa();o=q;e=b+484|0;l=c[(e&p)>>2]|0;m=c[(b&p)>>2]|0;do if((l|0)!=0?(bs(b),c[(b&p)+512>>2]=0,(c[(l&p)+52>>2]|0)>=1):0){if(a[(m&n)+145>>0]|0)if(!(Ik((c[(l&p)+68>>2]|0)+8|0,c[(l&p)>>2]|0,l)|0)){c[(e&p)>>2]=0;break}else{a[(m&n)+65>>0]=1;break}if(d)c[(b&p)+500>>2]=(c[(d&p)>>2]|0)-(c[(b&p)+496>>2]|0)+(c[(d&p)+4>>2]|0);c[(o&p)>>2]=b+496;k=uh(m,25256,o)|0;d=c[(l&p)+68>>2]|0;a:do if(d){f=c[(m&p)+20>>2]|0;if((f|0)>0){g=c[(m&p)+16>>2]|0;h=0;while(1){e=h+1|0;if((c[(g+(h<<4)&p)+12>>2]|0)==(d|0)){e=h;break a}if((e|0)<(f|0))h=e;else break}}else e=0}else e=-1e6;while(0);g=c[(l&p)>>2]|0;h=c[(b&p)+384>>2]|0;c[(o&p)>>2]=c[((c[(m&p)+16>>2]|0)+(e<<4)&p)>>2];c[(o&p)+4>>2]=(e|0)==1?13184:13208;c[(o&p)+8>>2]=g;c[(o&p)+12>>2]=g;c[(o&p)+16>>2]=k;c[(o&p)+20>>2]=h;Br(b,25280,o);mg(m,k);k=Oq(b)|0;Dr(b,e);wh(k,144,0,0,0)|0;c[(o&p)>>2]=c[(l&p)>>2];Ir(k,e,uh(m,25368,o)|0);b=b+72|0;o=(c[(b&p)>>2]|0)+1|0;c[(b&p)>>2]=o;b=c[(l&p)>>2]|0;xh(k,wh(k,97,0,o,0)|0,b,0);wh(k,147,e,o,0)|0}while(0);i=q;return}function as(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=b+52|0;i=c[(h&p)>>2]|0;e=i+1|0;c[(h&p)>>2]=e;g=(i<<2)+8|0;f=b+56|0;g=ro(a,c[(f&p)>>2]|0,g,((g|0)<0)<<31>>31)|0;if(!g){if((i|0)>0){b=0;do{mg(a,c[((c[(f&p)>>2]|0)+(b<<2)&p)>>2]|0);b=b+1|0}while((b|0)!=(i|0))}mg(a,d);mg(a,c[(f&p)>>2]|0);c[(h&p)>>2]=0}else{c[(g+(i<<2)&p)>>2]=d;c[(g+(e<<2)&p)>>2]=0}c[(f&p)>>2]=g;return}function bs(b){b=b|0;var d=0,e=0,f=0,g=0;d=c[(b&p)+512>>2]|0;if((d|0)!=0?(g=c[(b&p)+484>>2]|0,(g|0)!=0):0){e=c[(b&p)+516>>2]|0;f=c[(b&p)>>2]|0;b=jw(e|0,((e|0)<0)<<31>>31|0,1,0)|0;b=mh(f,b,G)|0;if(!b)b=0;else{kw(b|0,d|0,e|0)|0;a[(b+e&n)>>0]=0}as(f,g,b)}return}function cs(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;q=i;i=i+16|0;if((i|0)>=(j|0))fa();l=q;m=c[(b&p)>>2]|0;o=Wq(m,e)|0;k=(d|0)!=0;if((o|0)!=0&k?(h=c[(d&p)>>2]|0,(h|0)>0):0){e=h;h=0;do{if(!(dd(o,c[(d+(h<<4)&p)+8>>2]|0)|0)){c[(l&p)>>2]=o;th(b,25184,l);e=c[(d&p)>>2]|0}h=h+1|0}while((h|0)<(e|0))}if(k){h=(c[(d&p)>>2]<<4)+24|0;h=ro(m,d,h,((h|0)<0)<<31>>31)|0;if(!h)e=10;else{d=h;e=11}}else{e=mh(m,24,0)|0;if(!e)e=10;else{h=e+0|0;d=h+24|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(d|0));d=e;e=11}}if((e|0)==10){Nk(m,f);Mk(m,g,1);mg(m,o)}else if((e|0)==11){m=d+8|0;c[(m+(c[(d&p)>>2]<<4)&p)+8>>2]=g;g=c[(d&p)>>2]|0;c[(m+(g<<4)&p)+4>>2]=f;c[(m+(g<<4)&p)>>2]=o;c[(m+(g<<4)&p)+12>>2]=0;c[(d&p)>>2]=g+1}i=q;return d|0}function ds(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0;q=i;i=i+96|0;if((i|0)>=(j|0))fa();m=q+48|0;f=q;g=c[(c[(b&p)+32>>2]&p)>>2]|0;h=m+0|0;k=g+0|0;l=h+48|0;do{a[(h&n)>>0]=a[(k&n)>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((a[(b&n)+43>>0]|0)!=2){h=c[(b&p)+4>>2]|0;cc[c[((c[(h&p)>>2]|0)&p)+60>>2]&31](h)}h=f+0|0;k=g+48|0;l=h+48|0;do{a[(h&n)>>0]=a[(k&n)>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((Zv(m,f,48)|0)==0?(a[(m&n)+12>>0]|0)!=0:0){k=m+40|0;l=m;g=0;f=0;do{g=g+f+(c[(l&p)>>2]|0)|0;f=g+f+(c[(l&p)+4>>2]|0)|0;l=l+8|0}while(l>>>0<k>>>0);if((g|0)==(c[(k&p)>>2]|0)?(f|0)==(c[(m&p)+44>>2]|0):0){f=b+52|0;if(!(Zv(f,m,48)|0))f=0;else{c[(d&p)>>2]=1;h=f+0|0;k=m+0|0;l=h+48|0;do{c[(h&p)>>2]=c[(k&p)>>2];h=h+4|0;k=k+4|0}while((h|0)<(l|0));f=e[(b&o)+66>>1]|0;c[(b&p)+36>>2]=f<<16&65536|f&65024;f=0}}else f=1}else f=1;i=q;return f|0}function es(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;b=tc[c[((c[(a&p)>>2]|0)&p)+8>>2]&31](a,g,4,b,e)|0;if(!b)c[(f&p)>>2]=(d[(g&n)+1>>0]|0)<<16|(d[(g&n)>>0]|0)<<24|(d[(g&n)+2>>0]|0)<<8|(d[(g&n)+3>>0]|0);i=h;return b|0}function fs(a,b){a=a|0;b=b|0;var c=0,d=0,f=0;if(b>>>0<0|(b|0)==0&a>>>0<8)if(b>>>0<0|(b|0)==0&a>>>0<2)a=0;else{c=40;do{c=(c&65535)+65526|0;a=iw(a|0,b|0,1)|0;b=G}while(b>>>0<0|(b|0)==0&a>>>0<8);c=c&65535;f=11}else{if(b>>>0>0|(b|0)==0&a>>>0>255){d=b;c=40;while(1){c=(c&65535)+40|0;f=mw(a|0,d|0,4)|0;b=G;if(d>>>0>0|(d|0)==0&a>>>0>4095){a=f;d=b}else{a=f;break}}c=c&65535}else c=40;if(b>>>0>0|(b|0)==0&a>>>0>15){while(1){c=(c&65535)+10&65535;d=mw(a|0,b|0,1)|0;if(b>>>0>0|(b|0)==0&a>>>0>31){a=d;b=G}else{a=d;break}}f=11}else f=11}if((f|0)==11)a=(c&65535)+65526+(e[((a&7)<<1&o)+13496>>1]|0)&65535;return a|0}function gs(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,k=0,l=0;k=c[(b&p)+408>>2]|0;k=(k|0)==0?b:k;i=k+396|0;h=c[(i&p)>>2]|0;j=c[(k&p)+400>>2]|0;a:do if((h|0)>0){b=0;while(1){if((c[(j+(b<<4)&p)>>2]|0)==(d|0)?(c[(j+(b<<4)&p)+4>>2]|0)==(e|0):0)break;b=b+1|0;if((b|0)>=(h|0)){l=8;break a}}b=j+(b<<4)+8|0;if(!(a[(b&n)>>0]|0))h=f<<24>>24!=0&1;else h=1;a[(b&n)>>0]=h}else l=8;while(0);do if((l|0)==8){b=(h<<4)+16|0;b=Wl(c[(k&p)>>2]|0,j,b,((b|0)<0)<<31>>31)|0;c[(k&p)+400>>2]=b;if(!b){c[(i&p)>>2]=0;a[((c[(k&p)>>2]|0)&n)+65>>0]=1;break}else{h=c[(i&p)>>2]|0;c[(i&p)>>2]=h+1;c[(b+(h<<4)&p)>>2]=d;c[(b+(h<<4)&p)+4>>2]=e;a[(b+(h<<4)&n)+8>>0]=f;c[(b+(h<<4)&p)+12>>2]=g;break}}while(0);return}function hs(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=b[(f&o)+48>>1]|0;l=i&65535;h=e[(f&o)+46>>1]|0;m=d+64|0;if(!(c[(m&p)>>2]|0)){g=c[(d&p)>>2]|0;if(!(a[(f&n)+51>>0]&8))k=Rs(g,l,0)|0;else k=Rs(g,h,l-h|0)|0;if(k){if(i<<16>>16){j=f+32|0;f=f+28|0;h=k+16|0;g=0;do{i=c[((c[(j&p)>>2]|0)+(g<<2)&p)>>2]|0;if(!(_v(i,11152)|0))i=0;else i=cr(d,i)|0;c[(k+(g<<2)&p)+20>>2]=i;a[((c[(h&p)>>2]|0)+g&n)>>0]=a[((c[(f&p)>>2]|0)+g&n)>>0]|0;g=g+1|0}while((g|0)<(l|0))}g=(c[(m&p)>>2]|0)==0;if(!g){g=(c[(k&p)>>2]|0)+-1|0;c[(k&p)>>2]=g;if(!g){Wc(k);g=0}else g=0}else g=g?k:0}else g=0}else g=0;return g|0}function is(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,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+112|0;if((i|0)>=(j|0))fa();D=I;F=I+100|0;G=I+96|0;m=I+48|0;E=c[(d&p)+8>>2]|0;c[(F&p)>>2]=0;c[(G&p)>>2]=0;C=c[(d&p)>>2]|0;a:do if(!E)g=0;else{b:do if(!f)H=16;else{t=a[(f&n)>>0]|0;s=t&255;do switch(s|0){case 94:case 88:case 87:case 92:case 86:case 85:case 93:case 90:case 91:case 89:case 71:case 72:{D=$t(d,c[(f&p)+12>>2]|0,F)|0;wh(E,s,$t(d,c[(f&p)+16>>2]|0,G)|0,D,g)|0;break b}case 156:{h=c[(f&p)+40>>2]|0;k=b[(f&o)+34>>1]|0;l=c[(h&p)+28>>2]|0;if(!(a[(h&n)>>0]|0)){g=c[(l+(k*24|0)&p)+16>>2]|0;break b}if(a[(h&n)+1>>0]|0){wh(E,47,c[(h&p)+8>>2]|0,c[(l+(k*24|0)&p)+12>>2]|0,g)|0;break b}break}case 79:case 78:case 83:case 80:case 81:case 82:{B=f+12|0;D=$t(d,c[(B&p)>>2]|0,F)|0;C=f+16|0;E=$t(d,c[(C&p)>>2]|0,G)|0;au(d,c[(B&p)>>2]|0,c[(C&p)>>2]|0,s,D,E,g,32);break b}case 133:{_t(E,c[(f&p)+8>>2]|0,0,g);break b}case 97:{D=c[(f&p)+8>>2]|0;xh(E,wh(E,97,0,g,0)|0,D,0);break b}case 158:case 95:{g=is(d,c[(f&p)+12>>2]|0,g)|0;break b}case 38:{k=is(d,c[(f&p)+12>>2]|0,g)|0;if((k|0)!=(g|0))wh(E,34,k,g,0)|0;wh(E,40,g,(Xq(c[(f&p)+8>>2]|0,0)|0)<<24>>24,0)|0;dt(d,g,1);break b}case 119:case 20:{g=eu(d,f,0,0)|0;break b}case 75:{D=xs(E)|0;q=xs(E)|0;wh(E,28,0,g,0)|0;fu(d,f,D,q);wh(E,25,1,g,0)|0;k=E+24|0;h=c[(k&p)>>2]|0;l=~D;if((D|0)<0?(r=c[(h&p)+112>>2]|0,(r|0)!=0):0)c[(r+(l<<2)&p)>>2]=c[(E&p)+32>>2];m=E+32|0;c[(h&p)+88>>2]=(c[(m&p)>>2]|0)+-1;wh(E,37,g,0,0)|0;l=c[(k&p)>>2]|0;k=~q;if((q|0)<0?(u=c[(l&p)+112>>2]|0,(u|0)!=0):0)c[(u+(k<<2)&p)>>2]=c[(m&p)>>2];c[(l&p)+88>>2]=(c[(m&p)>>2]|0)+-1;break b}case 155:{k=c[(f&p)+40>>2]|0;if(!k){c[(D&p)>>2]=c[(f&p)+8>>2];th(d,28936,D);break b}else{g=c[((c[(k&p)+40>>2]|0)+(b[(f&o)+34>>1]<<4)&p)+8>>2]|0;break b}}case 19:case 96:{wh(E,s,$t(d,c[(f&p)+12>>2]|0,F)|0,g,0)|0;break b}case 77:case 76:{wh(E,25,1,g,0)|0;h=wh(E,s,$t(d,c[(f&p)+12>>2]|0,F)|0,0,0)|0;wh(E,25,0,g,0)|0;k=c[(E&p)+32>>2]|0;if(k>>>0>h>>>0)c[((c[(E&p)+4>>2]|0)+(h*20|0)&p)+8>>2]=k;c[((c[(E&p)+24>>2]|0)&p)+88>>2]=k+-1;break b}case 157:{k=f+12|0;h=c[(k&p)>>2]|0;l=a[(h&n)>>0]|0;if(l<<24>>24==-124){Zt(d,h,1,g);break b}else if(l<<24>>24==-123){_t(E,c[(h&p)+8>>2]|0,1,g);break b}else{a[(m&n)>>0]=-124;c[(m&p)+4>>2]=17408;c[(m&p)+8>>2]=0;D=$t(d,m,F)|0;wh(E,90,$t(d,c[(k&p)>>2]|0,G)|0,D,g)|0;break b}}case 57:{if(!(c[(d&p)+412>>2]|0)){th(d,29e3,D);g=0;break a}l=a[(f&n)+1>>0]|0;if(l<<24>>24!=2){h=c[(f&p)+8>>2]|0;if(l<<24>>24==4){xh(E,wh(E,24,0,4,0)|0,h,0);break b}}else{h=c[(d&p)+408>>2]|0;a[(((h|0)==0?d:h)&n)+21>>0]=1;h=c[(f&p)+8>>2]|0}zs(d,1811,l<<24>>24,h,0,0);break b}case 148:case 73:{B=f+12|0;D=$t(d,c[(B&p)>>2]|0,F)|0;C=f+16|0;E=$t(d,c[(C&p)>>2]|0,G)|0;au(d,c[(B&p)>>2]|0,c[(C&p)>>2]|0,t<<24>>24==73?79:78,D,E,g,160);break b}case 135:{k=f+32|0;wh(E,31,b[(k&o)>>1]|0,g,0)|0;if(!(a[((c[(f&p)+8>>2]|0)&n)+1>>0]|0))break b;xh(E,-1,c[((c[(d&p)+472>>2]|0)+((b[(k&o)>>1]|0)+-1<<2)&p)>>2]|0,-2);break b}case 154:break;case 153:{r=a[(C&n)+62>>0]|0;A=f+4|0;if((c[(A&p)>>2]&16384|0)==0?(q=c[(f&p)+20>>2]|0,(q|0)!=0):0){B=c[(q&p)>>2]|0;y=1;z=q}else{B=0;y=0;z=0}t=c[(f&p)+8>>2]|0;if(!t)s=0;else{s=t;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-t&1073741823}m=Sh(C,t,s,B,r,0)|0;if((m|0)!=0?(c[(m&p)+12>>2]|0)!=0:0){x=m+2|0;q=e[(x&o)>>1]|0;if(q&512){m=xs(E)|0;l=z+4|0;Rq(d,c[(c[(l&p)>>2]&p)>>2]|0,g);if((B|0)>1){k=d+100|0;h=1;do{wh(E,77,g,m,0)|0;dt(d,g,1);c[(k&p)>>2]=(c[(k&p)>>2]|0)+1;Rq(d,c[((c[(l&p)>>2]|0)+(h*20|0)&p)>>2]|0,g);bu(d);h=h+1|0}while((h|0)!=(B|0))}l=c[(E&p)+24>>2]|0;k=~m;if((m|0)<0?(w=c[(l&p)+112>>2]|0,(w|0)!=0):0)c[(w+(k<<2)&p)>>2]=c[(E&p)+32>>2];c[(l&p)+88>>2]=(c[(E&p)+32>>2]|0)+-1;break b}if(q&1024){Rq(d,c[(c[(z&p)+4>>2]&p)>>2]|0,g);break b}w=(B|0)>0;if(w){s=z+4|0;r=D+20|0;q=D+4|0;k=D+24|0;t=0;h=0;l=0;do{if((h|0)<32?(f=c[((c[(s&p)>>2]|0)+(h*20|0)&p)>>2]|0,c[(D&p)>>2]=0,c[(D&p)+4>>2]=0,c[(D&p)+8>>2]=0,c[(D&p)+12>>2]=0,c[(D&p)+16>>2]=0,c[(D&p)+20>>2]=0,a[(r&n)>>0]=1,c[(D&p)>>2]=78,c[(q&p)>>2]=79,c[(k&p)>>2]=0,rs(D,f)|0,(a[(r&n)>>0]|0)!=0):0)t=t|1<<h;if(!((b[(x&o)>>1]&32)==0|(l|0)!=0))l=cu(d,c[((c[(s&p)>>2]|0)+(h*20|0)&p)>>2]|0)|0;h=h+1|0}while((h|0)!=(B|0));u=t}else{u=0;l=0}if(y){do if(!u){s=d+60|0;t=c[(s&p)>>2]|0;r=d+56|0;q=c[(r&p)>>2]|0;if((q|0)<(B|0)){D=d+72|0;t=c[(D&p)>>2]|0;c[(D&p)>>2]=t+B;t=t+1|0;break}else{c[(s&p)>>2]=t+B;c[(r&p)>>2]=q-B;break}}else{D=d+72|0;t=c[(D&p)>>2]|0;c[(D&p)>>2]=t+B;t=t+1|0}while(0);q=b[(x&o)>>1]|0;if((q&192)!=0?(v=c[(c[(z&p)+4>>2]&p)>>2]|0,D=a[(v&n)>>0]|0,D<<24>>24==-100|D<<24>>24==-102):0)a[(v&n)+38>>0]=q&192;D=d+100|0;c[(D&p)>>2]=(c[(D&p)>>2]|0)+1;bt(d,z,t,3);bu(d)}else t=0;if((B|0)>1?(c[(A&p)>>2]&128|0)!=0:0)m=du(C,m,B,c[((c[(z&p)+4>>2]|0)&p)+20>>2]|0)|0;else if(w)m=du(C,m,B,c[(c[(z&p)+4>>2]&p)>>2]|0)|0;if(b[(m&o)+2>>1]&32){if(!l)l=c[(C&p)+8>>2]|0;xh(E,wh(E,36,0,0,0)|0,l,-4)}xh(E,wh(E,1,u,t,g)|0,m,-5);l=c[(E&p)+4>>2]|0;if(l)a[(l+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=B;if(!((B|0)!=0&(u|0)==0))break b;dt(d,t,B);k=d+56|0;if((c[(k&p)>>2]|0)>=(B|0))break b;c[(k&p)>>2]=B;c[(d&p)+60>>2]=t;break b}c[(D&p)>>2]=s;c[(D&p)+4>>2]=t;th(d,28968,D);break b}case 101:{H=16;break b}case 24:{g=is(d,c[(f&p)+12>>2]|0,g)|0;break b}case 74:{t=c[(f&p)+12>>2]|0;q=c[((c[(f&p)+20>>2]|0)&p)+4>>2]|0;h=c[(q&p)>>2]|0;r=$t(d,t,F)|0;s=$t(d,h,G)|0;m=d+19|0;k=a[(m&n)>>0]|0;if(k<<24>>24){D=k+-1<<24>>24;a[(m&n)>>0]=D;l=c[(d+((D&255)<<2)&p)+24>>2]|0;if(!(D<<24>>24))H=103;else{D=k+-2<<24>>24;a[(m&n)>>0]=D;m=c[(d+((D&255)<<2)&p)+24>>2]|0}}else{H=d+72|0;l=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=l;H=103}if((H|0)==103){D=d+72|0;m=(c[(D&p)>>2]|0)+1|0;c[(D&p)>>2]=m}au(d,t,h,83,r,s,l,32);D=c[(q&p)+20>>2]|0;_r(d,c[(G&p)>>2]|0);au(d,t,D,81,r,$t(d,D,G)|0,m,32);wh(E,72,l,m,g)|0;_r(d,l);_r(d,m);break b}case 159:{g=c[(f&p)+28>>2]|0;break b}case 132:{Zt(d,f,0,g);break b}case 134:{h=(c[(f&p)+8>>2]|0)+2|0;k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;C=(k-h&1073741823)+-1|0;D=Yt(c[(E&p)>>2]|0,h,C)|0;xh(E,wh(E,30,(C|0)/2|0,g,0)|0,D,-1);break b}case 62:{h=c[(f&p)+44>>2]|0;D=ca((b[(h&o)+38>>1]|0)+1|0,c[(f&p)+28>>2]|0)|0;k=f+32|0;wh(E,132,(b[(k&o)>>1]|0)+1+D|0,g,0)|0;k=b[(k&o)>>1]|0;if(k<<16>>16<=-1)break b;if((a[((c[(h&p)+4>>2]|0)+((k<<16>>16)*24|0)&n)+21>>0]|0)!=69)break b;wh(E,39,g,0,0)|0;break b}default:{x=c[(f&p)+20>>2]|0;v=x+4|0;w=c[(v&p)>>2]|0;x=c[(x&p)>>2]|0;y=xs(E)|0;t=c[(f&p)+12>>2]|0;f=(t|0)!=0;if(f){s=m+0|0;r=t+0|0;q=s+48|0;do{c[(s&p)>>2]=c[(r&p)>>2];s=s+4|0;r=r+4|0}while((s|0)<(q|0));t=$t(d,t,F)|0;a[(m&n)+38>>0]=a[(m&n)>>0]|0;a[(m&n)>>0]=-97;c[(m&p)+28>>2]=t;t=m+4|0;c[(t&p)>>2]=c[(t&p)>>2]&-4097;a[(D&n)>>0]=79;c[(D&p)+12>>2]=m;c[(F&p)>>2]=0;t=D}else t=0;u=x+-1|0;if((u|0)>0){h=d+100|0;q=D+16|0;m=E+24|0;l=E+32|0;k=0;s=t;while(1){c[(h&p)>>2]=(c[(h&p)>>2]|0)+1;t=c[(w+(k*20|0)&p)>>2]|0;if(f){c[(q&p)>>2]=t;t=s}D=xs(E)|0;gt(d,t,D,16);Rq(d,c[(w+((k|1)*20|0)&p)>>2]|0,g);wh(E,16,0,y,0)|0;bu(d);s=c[(m&p)>>2]|0;r=~D;if((D|0)<0?(z=c[(s&p)+112>>2]|0,(z|0)!=0):0)c[(z+(r<<2)&p)>>2]=c[(l&p)>>2];c[(s&p)+88>>2]=(c[(l&p)>>2]|0)+-1;k=k+2|0;if((k|0)>=(u|0))break;else s=t}}if(!(x&1))wh(E,28,0,g,0)|0;else{D=d+100|0;c[(D&p)>>2]=(c[(D&p)>>2]|0)+1;Rq(d,c[((c[(v&p)>>2]|0)+(u*20|0)&p)>>2]|0,g);bu(d)}l=c[(E&p)+24>>2]|0;k=~y;if((y|0)<0?(A=c[(l&p)+112>>2]|0,(A|0)!=0):0)c[(A+(k<<2)&p)>>2]=c[(E&p)+32>>2];c[(l&p)+88>>2]=(c[(E&p)+32>>2]|0)+-1;break b}}while(0);h=c[(f&p)+28>>2]|0;do if((h|0)<0){h=c[(d&p)+92>>2]|0;if((h|0)>0){g=(b[(f&o)+32>>1]|0)+h|0;break b}else{h=c[(d&p)+96>>2]|0;break}}while(0);g=ct(d,c[(f&p)+44>>2]|0,b[(f&o)+32>>1]|0,h,g,a[(f&n)+38>>0]|0)|0}while(0);if((H|0)==16)wh(E,28,0,g,0)|0;_r(d,c[(F&p)>>2]|0);_r(d,c[(G&p)>>2]|0)}while(0);i=I;return g|0}function js(a,b){a=a|0;b=b|0;var d=0;d=Oq(a)|0;gs(a,b,1,1,(b|0)==1?13184:13208);xh(d,wh(d,55,0,1,b)|0,5,-14);b=a+68|0;if(!(c[(b&p)>>2]|0))c[(b&p)>>2]=1;return}function ks(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0;h=f+48|0;if((e[(h&o)>>1]|0|0)<(g|0)){i=g*7|0;d=mh(d,i,((i|0)<0)<<31>>31)|0;if(!d)d=7;else{fw(d|0,0,i|0)|0;j=f+32|0;kw(d|0,c[(j&p)>>2]|0,(e[(h&o)>>1]|0)<<2|0)|0;c[(j&p)>>2]=d;j=d+(g<<2)|0;i=f+4|0;kw(j|0,c[(i&p)>>2]|0,(e[(h&o)>>1]|0)<<1|0)|0;c[(i&p)>>2]=j;i=d+(g*6|0)|0;d=f+28|0;kw(i|0,c[(d&p)>>2]|0,e[(h&o)>>1]|0|0)|0;c[(d&p)>>2]=i;b[(h&o)>>1]=g;d=f+51|0;a[(d&n)>>0]=a[(d&n)>>0]|16;d=0}}else d=0;return d|0}function ls(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();k=r;q=r+4|0;do if(!d)f=0;else{l=c[(a&p)>>2]|0;n=d+24|0;h=l+460|0;g=(c[(h&p)>>2]|0)+(c[(n&p)>>2]|0)|0;f=c[((c[(l&p)>>2]|0)&p)+100>>2]|0;if((f|0)<(g|0)){c[(k&p)>>2]=f;th(l,27152,k);f=1;break}c[(h&p)>>2]=g;k=a+28|0;h=e[(k&o)>>1]|0;m=h&4098;b[(k&o)>>1]=h&61437;c[(q&p)>>2]=0;c[(q&p)+4>>2]=0;c[(q&p)+8>>2]=0;c[(q&p)+12>>2]=0;c[(q&p)+16>>2]=0;c[(q&p)+20>>2]=0;c[(q&p)>>2]=82;c[(q&p)+4>>2]=83;h=q+12|0;c[(h&p)>>2]=l;c[(q&p)+24>>2]=a;rs(q,d)|0;q=(c[(a&p)>>2]|0)+460|0;c[(q&p)>>2]=(c[(q&p)>>2]|0)-(c[(n&p)>>2]|0);if(!((c[(a&p)+24>>2]|0)<=0?(c[((c[(h&p)>>2]|0)&p)+64>>2]|0)<=0:0)){q=d+4|0;c[(q&p)>>2]=c[(q&p)>>2]|8}h=b[(k&o)>>1]|0;g=d+4|0;f=c[(g&p)>>2]|0;if(h&2){f=f|2;c[(g&p)>>2]=f}b[(k&o)>>1]=h&65535|m;f=f>>>3&1}while(0);i=r;return f|0}function ms(a){a=a|0;var e=0,f=0,g=0,h=0,i=0,j=0;i=c[((c[(a&p)+12>>2]|0)&p)+4>>2]|0;f=b[(a&o)+48>>1]|0;if(!(f<<16>>16)){e=0;f=0}else{j=c[(a&p)+4>>2]|0;g=f&65535;h=0;e=0;do{f=b[(j+(h<<1)&o)>>1]|0;if(f<<16>>16<0)f=1;else f=d[(i+((f<<16>>16)*24|0)&n)+22>>0]|0;e=f+e|0;h=h+1|0}while((h|0)<(g|0));e=e<<2;f=0}b[(a&o)+44>>1]=fs(e,f)|0;return}function ns(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;j=c[(d&p)>>2]|0;g=j+24|0;i=c[(g&p)>>2]|0;c[(g&p)>>2]=i&-97|64;Ds(d,e,0);if(!(c[(d&p)+64>>2]|0)){while(1){f=c[(e&p)+52>>2]|0;if(!f){h=e;break}else e=f}c[(g&p)>>2]=i;e=mh(j,76,0)|0;if(e){f=e+0|0;g=f+76|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(g|0));b[(e&o)+40>>1]=1;c[(e&p)>>2]=0;b[(e&o)+28>>1]=200;iu(d,c[(h&p)>>2]|0,e+38|0,e+4|0);ju(d,e,h);b[(e&o)+36>>1]=-1;if(a[(j&n)+65>>0]|0){kg(j,e);e=0}}else e=0}else e=0;return e|0}function os(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=c[(d&p)>>2]|0;g=a[(e&n)>>0]|0;a:do if(!(g<<24>>24)){i=0;h=0}else{i=g;j=0;while(1){h=j+1|0;if(!(i<<24>>24==95?1:(a[(i&255&n)+10368>>0]&6)!=0)){h=j;break a}i=a[(e+h&n)>>0]|0;if(!(i<<24>>24)){i=0;break}else j=h}}while(0);if((((g&255)+-48|0)>>>0>=10?(fi(e,h)|0)==27:0)?!((h|0)==0|i<<24>>24!=0):0)k=0;else{a[(b+f&n)>>0]=34;k=1;g=a[(e&n)>>0]|0;f=f+1|0}if(g<<24>>24){h=e;j=0;do{i=f+1|0;a[(b+f&n)>>0]=g;if((a[(h&n)>>0]|0)==34){a[(b+i&n)>>0]=34;f=f+2|0}else f=i;j=j+1|0;h=e+j|0;g=a[(h&n)>>0]|0}while(g<<24>>24!=0)}if(k){a[(b+f&n)>>0]=34;f=f+1|0}a[(b+f&n)>>0]=0;c[(d&p)>>2]=f;return}function ps(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;f=b+20|0;g=a[(f&n)>>0]|0;if(g<<24>>24==2?(c[(e&p)+4>>2]&1|0)!=0:0){a[(f&n)>>0]=0;f=2}else h=4;a:do if((h|0)==4)switch(d[(e&n)>>0]|0|0){case 153:{if((g&255)>3){f=0;break a}if(c[(e&p)+4>>2]&524288){f=0;break a}a[(f&n)>>0]=0;f=2;break a}case 135:if(g<<24>>24==4){a[(f&n)>>0]=0;f=2;break a}else if(g<<24>>24==5){a[(e&n)>>0]=101;f=0;break a}else{f=0;break a}case 156:case 155:case 154:case 27:{if(g<<24>>24==3?(c[(e&p)+28>>2]|0)==(c[(b&p)+24>>2]|0):0){f=0;break a}a[(f&n)>>0]=0;f=2;break a}default:{f=0;break a}}while(0);return f|0}function qs(b,c){b=b|0;c=c|0;a[(b&n)+20>>0]=0;return 2}function rs(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!b)b=0;else{d=rc[c[(a&p)>>2]&127](a,b)|0;do if((d|0)==0?(e=b+4|0,(c[(e&p)>>2]&16384|0)==0):0){if(rs(a,c[(b&p)+12>>2]|0)|0){b=2;break a}if(rs(a,c[(b&p)+16>>2]|0)|0){b=2;break a}b=b+20|0;if(!(c[(e&p)>>2]&2048))if(!(lu(a,c[(b&p)>>2]|0)|0))break;else{b=2;break a}else if(!(ku(a,c[(b&p)>>2]|0)|0))break;else{b=2;break a}}while(0);b=d&2}while(0);return b|0}function ss(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;do if(e)if(!f)g=e;else{if((mu(e)|0)==0?(mu(f)|0)==0:0){g=mh(d,48,0)|0;if(g){h=g+0|0;i=h+48|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(g&n)>>0]=72;b[(g&o)+34>>1]=-1;c[(g&p)+24>>2]=1}ts(d,g,e,f);break}Gk(d,e);Gk(d,f);g=nr(d,132,20616,0)|0}else g=f;while(0);return g|0}function ts(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if(!b){Gk(a,d);Gk(a,e)}else{if(e){c[(b&p)+16>>2]=e;a=b+4|0;c[(a&p)>>2]=c[(a&p)>>2]|c[(e&p)+4>>2]&2097408}if(d){c[(b&p)+12>>2]=d;a=b+4|0;c[(a&p)>>2]=c[(a&p)>>2]|c[(d&p)+4>>2]&2097408}It(b)}return}function us(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=d<<16>>16;j=(h<<2)+63&-8;k=h<<1;l=k+2|0;i=(h+7+k+l&-8)+j|0;g=i+e|0;e=mh(a,g,((g|0)<0)<<31>>31)|0;if(e){fw(e|0,0,g|0)|0;c[(e&p)+32>>2]=e+56;c[(e&p)+8>>2]=e+j;g=j+l|0;c[(e&p)+4>>2]=e+g;c[(e&p)+28>>2]=e+(g+k);b[(e&o)+48>>1]=d;b[(e&o)+46>>1]=h+65535;c[(f&p)>>2]=e+i}return e|0}function vs(b,d,f){b=b|0;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;C=i;i=i+16|0;if((i|0)>=(j|0))fa();w=C;s=c[(d&p)+12>>2]|0;r=b+68|0;z=c[(r&p)>>2]|0;B=z+1|0;c[(r&p)>>2]=z+2;q=c[(b&p)>>2]|0;l=c[(d&p)+24>>2]|0;a:do if(l){h=c[(q&p)+20>>2]|0;if((h|0)>0){g=c[(q&p)+16>>2]|0;m=0;while(1){k=m+1|0;if((c[(g+(m<<4)&p)+12>>2]|0)==(l|0)){k=m;break a}if((k|0)<(h|0))m=k;else break}}else k=0}else k=-1e6;while(0);if((Sq(b,27,c[(d&p)>>2]|0,0,c[((c[(q&p)+16>>2]|0)+(k<<4)&p)>>2]|0)|0)==0?(gs(b,k,c[(s&p)+32>>2]|0,1,c[(s&p)>>2]|0),A=Oq(b)|0,(A|0)!=0):0){if((f|0)>-1)t=f;else t=c[(d&p)+40>>2]|0;x=hs(b,d)|0;y=c[(r&p)>>2]|0;c[(r&p)>>2]=y+1;v=d+46|0;h=e[(v&o)>>1]|0;if(x)c[(x&p)>>2]=(c[(x&p)>>2]|0)+1;xh(A,wh(A,58,y,0,h)|0,x,-6);Qq(b,z,k,s,54);q=wh(A,108,z,0,0)|0;h=b+19|0;g=a[(h&n)>>0]|0;if(!(g<<24>>24)){s=b+72|0;u=(c[(s&p)>>2]|0)+1|0;c[(s&p)>>2]=u}else{u=g+-1<<24>>24;a[(h&n)>>0]=u;u=c[(b+((u&255)<<2)&p)+24>>2]|0}Pt(b,d,z,u,0,w,0,0)|0;wh(A,109,y,u,0)|0;Qt(b,c[(w&p)>>2]|0);wh(A,9,z,q+1|0,0)|0;s=A+32|0;m=c[(s&p)>>2]|0;if(m>>>0>q>>>0)c[((c[(A&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;l=A+24|0;c[((c[(l&p)>>2]|0)&p)+88>>2]=m+-1;if((f|0)<0)wh(A,118,t,k,0)|0;xh(A,wh(A,55,B,t,k)|0,x,-6);r=A+4|0;h=c[(r&p)>>2]|0;if(h)a[(h+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(f>>31)+4&252|1;q=wh(A,106,y,0,0)|0;h=c[(s&p)>>2]|0;if((a[(d&n)+50>>0]|0)!=0&(x|0)!=0){m=h+3|0;wh(A,16,0,m,0)|0;h=c[(s&p)>>2]|0;t=e[(v&o)>>1]|0;xh(A,wh(A,99,y,m,u)|0,t,-14);nu(b,2,d)}wh(A,100,y,u,B)|0;wh(A,110,B,u,1)|0;g=c[(r&p)>>2]|0;if(g)a[(g+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;_r(b,u);wh(A,5,y,h,0)|0;g=c[(s&p)>>2]|0;if(g>>>0>q>>>0)c[((c[(r&p)>>2]|0)+(q*20|0)&p)+8>>2]=g;c[((c[(l&p)>>2]|0)&p)+88>>2]=g+-1;wh(A,61,z,0,0)|0;wh(A,61,B,0,0)|0;wh(A,61,y,0,0)|0}i=C;return}function ws(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;u=i;i=i+16|0;if((i|0)>=(j|0))fa();t=u;s=c[(e&p)>>2]|0;if(!g){g=Yn(s,f,h,0)|0;if(!g)q=4;else q=3}else q=3;if((q|0)==3)if(!(c[(g&p)+12>>2]|0))q=4;else q=14;if((q|0)==4){l=f&255;k=s+224|0;if(c[(k&p)>>2]|0){m=kh(s,h)|0;if(m){qc[c[(k&p)>>2]&15](c[(s&p)+232>>2]|0,s,l,m);mg(s,m);q=7}}else q=7;if((q|0)==7?(r=s+228|0,(c[(r&p)>>2]|0)!=0):0){k=mh(s,40,0)|0;if(!k)k=0;else{m=k+0|0;l=m+40|0;do{a[(m&n)>>0]=0;m=m+1|0}while((m|0)<(l|0));b[(k&o)+8>>1]=1;c[(k&p)+32>>2]=s;Xg(k,h,-1,1,0)|0}g=Sg(k,2)|0;if(g)qc[c[(r&p)>>2]&15](c[(s&p)+232>>2]|0,s,d[(s&n)+62>>0]|0,g);Mh(k)}g=Yn(s,f,h,0)|0;if(!g)q=19;else q=14}a:do if((q|0)==14)if(!(c[(g&p)+12>>2]|0)){l=c[(g&p)>>2]|0;m=0;while(1){k=Yn(s,a[(m&n)+26816>>0]|0,l,0)|0;m=m+1|0;if(c[(k&p)+12>>2]|0)break;if((m|0)>=3){q=19;break a}}c[(g&p)>>2]=c[(k&p)>>2];c[(g&p)+4>>2]=c[(k&p)+4>>2];c[(g&p)+8>>2]=c[(k&p)+8>>2];c[(g&p)+12>>2]=c[(k&p)+12>>2];c[(g&p)+16>>2]=0}while(0);if((q|0)==19){c[(t&p)>>2]=h;th(e,26784,t);g=0}i=u;return g|0}function xs(a){a=a|0;var b=0,d=0;a=c[(a&p)+24>>2]|0;d=a+108|0;b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;if(!(b+-1&b)){d=a+112|0;a=Wl(c[(a&p)>>2]|0,c[(d&p)>>2]|0,b<<3|4,0)|0;c[(d&p)>>2]=a}else a=c[(a&p)+112>>2]|0;if(a)c[(a+(b<<2)&p)>>2]=-1;return ~b|0}function ys(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;if(e){g=c[(e&p)>>2]|0;if((g|0)>0){h=(g*72|0)+8|0;g=h;h=((h|0)<0)<<31>>31}else{g=80;h=0}g=mh(d,g,h)|0;if(g){h=c[(e&p)>>2]|0;c[(g&p)+4>>2]=h;c[(g&p)>>2]=h;if((c[(e&p)>>2]|0)>0){h=g+8|0;j=0;do{c[(h+(j*72|0)&p)>>2]=c[(e+(j*72|0)&p)+8>>2];c[(h+(j*72|0)&p)+4>>2]=kh(d,c[(e+(j*72|0)&p)+12>>2]|0)|0;c[(h+(j*72|0)&p)+8>>2]=kh(d,c[(e+(j*72|0)&p)+16>>2]|0)|0;c[(h+(j*72|0)&p)+12>>2]=kh(d,c[(e+(j*72|0)&p)+20>>2]|0)|0;a[(h+(j*72|0)&n)+36>>0]=a[(e+(j*72|0)&n)+44>>0]|0;c[(h+(j*72|0)&p)+40>>2]=c[(e+(j*72|0)&p)+48>>2];c[(h+(j*72|0)&p)+24>>2]=c[(e+(j*72|0)&p)+32>>2];c[(h+(j*72|0)&p)+28>>2]=c[(e+(j*72|0)&p)+36>>2];k=e+(j*72|0)+45|0;i=h+(j*72|0)+37|0;l=a[(i&n)>>0]&-3|a[(k&n)>>0]&2;a[(i&n)>>0]=l;l=l&-5|a[(k&n)>>0]&4;a[(i&n)>>0]=l;a[(i&n)>>0]=l&-9|a[(k&n)>>0]&8;c[(h+(j*72|0)&p)+64>>2]=kh(d,c[(e+(j*72|0)&p)+72>>2]|0)|0;a[(i&n)>>0]=a[(i&n)>>0]&-2|a[(k&n)>>0]&1;c[(h+(j*72|0)&p)+68>>2]=c[(e+(j*72|0)&p)+76>>2];i=c[(e+(j*72|0)&p)+24>>2]|0;c[(h+(j*72|0)&p)+16>>2]=i;if(i){i=i+40|0;b[(i&o)>>1]=(b[(i&o)>>1]|0)+1<<16>>16}c[(h+(j*72|0)&p)+20>>2]=gr(d,c[(e+(j*72|0)&p)+28>>2]|0,f)|0;c[(h+(j*72|0)&p)+44>>2]=Mr(d,c[(e+(j*72|0)&p)+52>>2]|0,f,0)|0;c[(h+(j*72|0)&p)+48>>2]=Nr(d,c[(e+(j*72|0)&p)+56>>2]|0)|0;l=e+(j*72|0)+64|0;k=c[(l&p)+4>>2]|0;i=h+(j*72|0)+56|0;c[(i&p)>>2]=c[(l&p)>>2];c[(i&p)+4>>2]=k;j=j+1|0}while((j|0)<(c[(e&p)>>2]|0))}}else g=0}else g=0;return g|0}function zs(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;i=Oq(b)|0;if((e|0)==2){k=c[(b&p)+408>>2]|0;a[(((k|0)==0?b:k)&n)+21>>0]=1}xh(i,wh(i,24,d,e,0)|0,f,g<<24>>24);if(h<<24>>24!=0?(j=c[(i&p)+4>>2]|0,(j|0)!=0):0)a[(j+(((c[(i&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=h;return}function As(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)&p)+28>>2]|0;do if(!(a[(b&n)+438>>0]|0)){h=c[(d&p)+68>>2]|0;if((e|0)!=(h|0)?(f=c[(e&p)+48>>2]|0,(f|0)!=0):0){g=d+64|0;e=0;while(1){b=c[(f&p)+8>>2]|0;if((c[(b&p)+24>>2]|0)==(h|0)?(dd(c[(b&p)+4>>2]|0,c[(d&p)>>2]|0)|0)==0:0){if(!e)e=c[(g&p)>>2]|0;c[(b&p)+32>>2]=e}else b=e;f=c[(f&p)>>2]|0;if(!f)break;else e=b}if(b)break}b=c[(d&p)+64>>2]|0}else b=0;while(0);return b|0}function Bs(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;j=c[(b&p)+32>>2]|0;k=b+8|0;i=b+68|0;f=0;while(1){g=(f|0)==0;b=g|(j|0)<(f|0)?j:0;d=c[(k&p)>>2]|0;if(!d)h=b;else{do{e=c[(d&p)+40>>2]|0;b=(g|(e|0)<(f|0))&(e|0)>(b|0)?e:b;d=c[(d&p)+20>>2]|0}while((d|0)!=0);h=b}if(!h)break;b=c[(a&p)>>2]|0;f=c[(i&p)>>2]|0;a:do if(f){g=c[(b&p)+20>>2]|0;if((g|0)>0){d=c[(b&p)+16>>2]|0;e=0;while(1){b=e+1|0;if((c[(d+(e<<4)&p)+12>>2]|0)==(f|0)){b=e;break a}if((b|0)<(g|0))e=b;else break}}else b=0}else b=-1e6;while(0);Er(a,h,b);f=h}return}function Cs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;a:do if((b|0)!=0?(d=c[(b&p)>>2]|0,(d|0)>0):0){h=a+68|0;f=0;g=b+8|0;while(1){e=g+40|0;if((c[(e&p)>>2]|0)>-1)break a;i=c[(h&p)>>2]|0;c[(h&p)>>2]=i+1;c[(e&p)>>2]=i;e=c[(g&p)+20>>2]|0;if(e){Cs(a,c[(e&p)+32>>2]|0);d=c[(b&p)>>2]|0}f=f+1|0;if((f|0)>=(d|0))break;else g=g+72|0}}while(0);return}function Ds(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0;q=i;i=i+32|0;if((i|0)>=(j|0))fa();m=q;if(((e|0)!=0?(l=(c[(d&p)>>2]|0)+65|0,(a[(l&n)>>0]|0)==0):0)?(h=e+6|0,g=b[(h&o)>>1]|0,(g&32)==0):0){c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)>>2]=84;c[(m&p)+12>>2]=d;k=m+4|0;if(a[(d&n)+22>>0]|0){c[(k&p)>>2]=85;ku(m,e)|0;g=b[(h&o)>>1]|0}c[(k&p)>>2]=86;if(!(g&256))c[(m&p)+8>>2]=9;ku(m,e)|0;g=d+64|0;if((((c[(g&p)>>2]|0)==0?(a[(l&n)>>0]|0)==0:0)?(c[(m&p)>>2]=0,c[(m&p)+4>>2]=0,c[(m&p)+8>>2]=0,c[(m&p)+12>>2]=0,c[(m&p)+16>>2]=0,c[(m&p)+20>>2]=0,c[(m&p)>>2]=82,c[(m&p)+4>>2]=83,c[(m&p)+12>>2]=d,c[(m&p)+24>>2]=f,ku(m,e)|0,(c[(g&p)>>2]|0)==0):0)?(a[(l&n)>>0]|0)==0:0){c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+8>>2]=10;c[(m&p)>>2]=84;c[(m&p)+12>>2]=d;ku(m,e)|0}}i=q;return}function Es(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if(a)do{d=c[(a&p)+36>>2]|0;if((d|0)!=0?(h=c[(d&p)+24>>2]|0,(h|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=h;d=c[(a&p)+44>>2]|0;if((d|0)!=0?(e=c[(d&p)+24>>2]|0,(e|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=e;d=c[(a&p)+60>>2]|0;if((d|0)!=0?(f=c[(d&p)+24>>2]|0,(f|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=f;d=c[(a&p)+64>>2]|0;if((d|0)!=0?(g=c[(d&p)+24>>2]|0,(g|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=g;tu(c[(a&p)>>2]|0,b);tu(c[(a&p)+40>>2]|0,b);tu(c[(a&p)+48>>2]|0,b);a=c[(a&p)+52>>2]|0}while((a|0)!=0);return}function Fs(a,b,d,f){a=a|0;b=b|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0;g=c[(b&p)>>2]|0;h=g+d|0;if(h>>>0>(c[(b&p)+4>>2]|0)>>>0){i=ro(a,b,(h*72|0)+8|0,0)|0;if(i){do if(!a)b=lc[c[8792>>2]&127](i)|0;else{if((c[(a&p)+276>>2]|0)>>>0<=i>>>0?(c[(a&p)+280>>2]|0)>>>0>i>>>0:0){b=e[(a&o)+248>>1]|0;break}b=lc[c[8792>>2]&127](i)|0}while(0);c[(i&p)+4>>2]=(((b+-80|0)>>>0)/72|0)+1;b=i;g=c[(i&p)>>2]|0;j=10}}else j=10;if((j|0)==10){if((g|0)>(f|0)){do{g=g+-1|0;h=b+((g+d|0)*72|0)+8|0;a=b+(g*72|0)+8|0;i=h+72|0;do{c[(h&p)>>2]=c[(a&p)>>2];h=h+4|0;a=a+4|0}while((h|0)<(i|0))}while((g|0)>(f|0));g=c[(b&p)>>2]|0}c[(b&p)>>2]=g+d;fw(b+(f*72|0)+8|0,0,d*72|0)|0;g=f+d|0;if((d|0)>0)do{c[(b+(f*72|0)&p)+48>>2]=-1;f=f+1|0}while((f|0)<(g|0))}return b|0}function Gs(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){f=b+4|0;g=c[(f&p)>>2]|0;h=0;do{i=Hs(a,c[(g+(h*20|0)&p)>>2]|0,d,e)|0;g=c[(f&p)>>2]|0;c[(g+(h*20|0)&p)>>2]=i;h=h+1|0}while((h|0)<(c[(b&p)>>2]|0))}return}function Hs(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0;do if(e){if((a[(e&n)>>0]|0)==-102?(c[(e&p)+28>>2]|0)==(f|0):0){h=b[(e&o)+32>>1]|0;if(h<<16>>16<0){a[(e&n)>>0]=101;break}else{h=Mr(d,c[((c[(g&p)+4>>2]|0)+((h<<16>>16)*20|0)&p)>>2]|0,0,0)|0;Gk(d,e);e=h;break}}h=e+12|0;c[(h&p)>>2]=Hs(d,c[(h&p)>>2]|0,f,g)|0;h=e+16|0;c[(h&p)>>2]=Hs(d,c[(h&p)>>2]|0,f,g)|0;h=e+20|0;if(!(c[(e&p)+4>>2]&2048)){Gs(d,c[(h&p)>>2]|0,f,g);break}else{uu(d,c[(h&p)>>2]|0,f,g);break}}else e=0;while(0);return e|0}function Is(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(c[(b&p)>>2]&p)>>2]|0;e=b;g=1;while(1){b=c[(e&p)+52>>2]|0;if(!b){f=5;break}if((c[(c[(b&p)>>2]&p)>>2]|0)==(f|0)){e=b;g=g+1|0}else{f=3;break}}a:do if((f|0)==3){Js(a,b);b=1}else if((f|0)==5)if(!e)b=0;else{h=((g|0)<0)<<31>>31;f=0;while(1){i=e+52|0;c[(i&p)>>2]=0;b=ir(a,e,d)|0;c[(i&p)>>2]=f;if(b)break a;b=e+24|0;c[(b&p)>>2]=g;c[(b&p)+4>>2]=h;b=c[(e&p)+56>>2]|0;if(!b){b=0;break a}e=b;f=c[(b&p)+52>>2]|0}}while(0);return b|0}function Js(a,e){a=a|0;e=e|0;var f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(!(b[(e&o)+6>>1]&128)){e=d[(e&n)+4>>0]|0;if((e|0)==118)e=35336;else if((e|0)==116)e=35320;else if((e|0)==117)e=35352;else e=35360;c[(f&p)>>2]=e;th(a,35232,f)}else th(a,35184,f);i=g;return}function Ks(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;H=i;i=i+32|0;if((i|0)>=(j|0))fa();y=H;k=c[(f&p)+32>>2]|0;q=c[(c[(f&p)>>2]&p)>>2]|0;v=c[(d&p)+8>>2]|0;w=f+52|0;x=c[(w&p)>>2]|0;if(!(Sq(d,33,0,0,0)|0)){z=xs(v)|0;Os(d,f,z);A=f+60|0;B=c[(A&p)>>2]|0;C=f+64|0;D=c[(C&p)>>2]|0;E=f+8|0;s=c[(E&p)>>2]|0;F=f+12|0;t=c[(F&p)>>2]|0;c[(C&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(E&p)>>2]=0;E=f+48|0;F=c[(E&p)>>2]|0;l=c[(k&p)>>2]|0;a:do if((l|0)>0){m=0;while(1){if(a[(k+(m*72|0)&n)+45>>0]&8)break;m=m+1|0;if((m|0)>=(l|0)){r=0;break a}}r=c[(k+(m*72|0)&p)+48>>2]|0}else r=0;while(0);m=d+68|0;k=c[(m&p)>>2]|0;l=k+1|0;c[(m&p)>>2]=l;h=(F|0)!=0;if((a[(f&n)+4>>0]|0)==115){c[(m&p)>>2]=k+2;m=h?8:6}else{m=h?7:5;l=0}a[(y&n)>>0]=m;c[(y&p)+4>>2]=k;a[(y&n)+1>>0]=0;c[(y&p)+8>>2]=0;c[(y&p)+12>>2]=0;I=d+72|0;m=(c[(I&p)>>2]|0)+1|0;c[(I&p)>>2]=m;wh(v,60,r,m,q)|0;if(h){q=vu(d,f)|0;xh(v,wh(v,57,k,(c[(F&p)>>2]|0)+2|0,0)|0,q,-6);c[(y&p)+16>>2]=F}else wh(v,57,k,q,0)|0;if(l){c[(f&p)+16>>2]=wh(v,57,l,0,0)|0;l=f+6|0;b[(l&o)>>1]=e[(l&o)>>1]|8}c[(E&p)>>2]=0;q=x+56|0;c[(q&p)>>2]=0;l=ir(d,x,y)|0;c[(q&p)>>2]=f;if(!l){q=wh(v,108,k,z,0)|0;wh(v,104,r,0,0)|0;if(h)wh(v,47,k,(c[(F&p)>>2]|0)+1|0,m)|0;else wh(v,102,k,m,0)|0;wh(v,95,k,0,0)|0;l=xs(v)|0;it(v,t,l);Ps(d,f,c[(f&p)>>2]|0,r,0,0,g,l,z);if(s)wh(v,140,s,z,0)|0;h=v+24|0;m=c[(h&p)>>2]|0;k=~l;if((l|0)<0?(u=c[(m&p)+112>>2]|0,(u|0)!=0):0)c[(u+(k<<2)&p)>>2]=c[(v&p)+32>>2];l=v+32|0;c[(m&p)+88>>2]=(c[(l&p)>>2]|0)+-1;c[(w&p)>>2]=0;ir(d,f,y)|0;c[(w&p)>>2]=x;wh(v,16,0,q,0)|0;h=c[(h&p)>>2]|0;k=~z;if((z|0)<0?(G=c[(h&p)+112>>2]|0,(G|0)!=0):0)c[(G+(k<<2)&p)>>2]=c[(l&p)>>2];c[(h&p)+88>>2]=(c[(l&p)>>2]|0)+-1}Nk(c[(d&p)>>2]|0,c[(E&p)>>2]|0);c[(E&p)>>2]=F;c[(A&p)>>2]=B;c[(C&p)>>2]=D}i=H;return}function Ls(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;$=i;i=i+48|0;if((i|0)>=(j|0))fa();u=$+40|0;N=$+20|0;O=$;X=c[(f&p)>>2]|0;U=c[(f&p)+8>>2]|0;W=xs(U)|0;T=xs(U)|0;Y=g+4|0;P=a[(Y&n)>>0]|0;Z=g+52|0;_=c[(Z&p)>>2]|0;w=g+48|0;m=c[(w&p)>>2]|0;l=c[(m&p)>>2]|0;R=P<<24>>24==116;a:do if(!R?(s=X+65|0,(a[(s&n)>>0]|0)==0):0){q=u+4|0;t=1;while(1){if((t|0)>(c[(c[(g&p)>>2]&p)>>2]|0)){Q=l;v=14;break a}b:do if((l|0)>0){k=0;r=c[(m&p)+4>>2]|0;while(1){if((e[(r&o)+16>>1]|0)==(t|0))break b;k=k+1|0;if((k|0)<(l|0))r=r+20|0;else break}}else k=0;while(0);if((k|0)==(l|0)){c[(u&p)>>2]=0;c[(q&p)>>2]=0;k=nr(X,132,u,0)|0;if(!k){k=7;break a}J=k+4|0;c[(J&p)>>2]=c[(J&p)>>2]|1024;c[(k&p)+8>>2]=t;k=lr(f,m,k)|0;if(!k)k=0;else{b[((c[(k&p)+4>>2]|0)+(l*20|0)&o)+16>>1]=t;l=l+1|0}}else k=m;if(!(a[(s&n)>>0]|0)){t=t+1|0;m=k}else{Q=l;m=k;v=14;break}}}else{Q=l;v=14}while(0);if((v|0)==14){M=mh(X,Q<<2,0)|0;if(!M)K=0;else{if((Q|0)>0){l=0;k=c[(m&p)+4>>2]|0;while(1){c[(M+(l<<2)&p)>>2]=(e[(k&o)+16>>1]|0)+-1;l=l+1|0;if((l|0)==(Q|0))break;else k=k+20|0}}K=vu(f,g)|0}c[(w&p)>>2]=m;s=_+48|0;c[(s&p)>>2]=Pr(c[(f&p)>>2]|0,m,0)|0;if(!R){m=c[(c[(g&p)>>2]&p)>>2]|0;l=f+72|0;J=c[(l&p)>>2]|0;r=J+1|0;c[(l&p)>>2]=m+1+J;wh(U,25,0,r,0)|0;l=Rs(X,m,1)|0;if(l)if((m|0)>0){k=l+16|0;q=0;do{c[(l+(q<<2)&p)+20>>2]=Ss(f,g,q)|0;a[((c[(k&p)>>2]|0)+q&n)>>0]=0;q=q+1|0}while((q|0)!=(m|0));x=l}else x=l;else x=0}else{x=0;r=0}c[(Z&p)>>2]=0;L=_+56|0;c[(L&p)>>2]=0;wu(f,g,c[(w&p)>>2]|0,26880)|0;if(!(c[(_&p)+52>>2]|0))wu(f,_,c[(s&p)>>2]|0,26880)|0;Os(f,g,W);q=g+8|0;l=c[(q&p)>>2]|0;s=f+72|0;if((l|0)!=0&R){v=c[(s&p)>>2]|0;t=v+1|0;v=v+2|0;c[(s&p)>>2]=v;J=c[(g&p)+12>>2]|0;wh(U,33,(J|0)==0?l:J+1|0,t,0)|0;wh(U,33,t,v,0)|0}else{t=0;v=0}A=g+60|0;Gk(X,c[(A&p)>>2]|0);c[(A&p)>>2]=0;A=g+64|0;Gk(X,c[(A&p)>>2]|0);c[(A&p)>>2]=0;A=c[(s&p)>>2]|0;B=A+1|0;C=A+2|0;y=A+3|0;A=A+4|0;c[(s&p)>>2]=A;a[(N&n)>>0]=13;c[(N&p)+4>>2]=B;a[(N&n)+1>>0]=0;E=N+8|0;c[(E&p)>>2]=0;c[(N&p)+12>>2]=0;a[(O&n)>>0]=13;c[(O&p)+4>>2]=C;a[(O&n)+1>>0]=0;F=O+8|0;c[(F&p)>>2]=0;c[(O&p)+12>>2]=0;I=U+32|0;u=wh(U,20,B,0,(c[(I&p)>>2]|0)+1|0)|0;c[(_&p)+8>>2]=t;s=f+468|0;J=c[(s&p)>>2]|0;ir(f,_,N)|0;wh(U,21,B,0,0)|0;t=c[(I&p)>>2]|0;if(t>>>0>u>>>0)c[((c[(U&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;D=U+24|0;c[((c[(D&p)>>2]|0)&p)+88>>2]=t+-1;z=wh(U,20,C,0,t+1|0)|0;k=c[(q&p)>>2]|0;m=g+12|0;w=c[(m&p)>>2]|0;c[(q&p)>>2]=v;c[(m&p)>>2]=0;H=c[(s&p)>>2]|0;ir(f,g,O)|0;c[(q&p)>>2]=k;c[(m&p)>>2]=w;wh(U,21,C,0,0)|0;m=xu(f,g,N,h,y,r,x,W)|0;w=(P+-115&255)<2;if(w)k=xu(f,g,O,h,A,r,x,W)|0;else k=0;if((x|0)!=0?(l=(c[(x&p)>>2]|0)+-1|0,c[(x&p)>>2]=l,(l|0)==0):0)Wc(x);r=P<<24>>24==118;if((P+-117&255)<2){v=W;l=W}else{v=wh(U,17,A,k,0)|0;l=wh(U,22,C,W,0)|0;wh(U,16,0,v,0)|0;q=_+24|0;x=g+24|0;s=x;q=jw(c[(s&p)>>2]|0,c[(s&p)+4>>2]|0,c[(q&p)>>2]|0,c[(q&p)+4>>2]|0)|0;c[(x&p)>>2]=q;c[(x&p)+4>>2]=G}if(r){u=g+24|0;x=u;q=c[(x&p)+4>>2]|0;s=_+24|0;t=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;if(q>>>0>s>>>0|((q|0)==(s|0)?(c[(x&p)>>2]|0)>>>0>t>>>0:0)){q=u;c[(q&p)>>2]=t;c[(q&p)+4>>2]=s;q=v}else q=v}else{q=wh(U,17,y,m,0)|0;wh(U,22,B,W,0)|0;wh(U,16,0,q,0)|0}u=wh(U,17,y,m,0)|0;wh(U,22,B,v,0)|0;wh(U,16,0,T,0)|0;do if(!R)if(r){v=u;u=u+1|0;break}else{v=wh(U,22,B,v,0)|0;wh(U,16,0,T,0)|0;break}else v=u;while(0);t=c[(I&p)>>2]|0;if(w)wh(U,17,A,k,0)|0;wh(U,22,C,q,0)|0;wh(U,16,0,T,0)|0;s=c[(I&p)>>2]|0;if(s>>>0>z>>>0)c[((c[(U&p)+4>>2]|0)+(z*20|0)&p)+8>>2]=s;c[((c[(D&p)>>2]|0)&p)+88>>2]=s+-1;wh(U,22,B,l,0)|0;wh(U,22,C,q,0)|0;q=c[(D&p)>>2]|0;m=~T;if((T|0)<0?(S=c[(q&p)+112>>2]|0,(S|0)!=0):0)c[(S+(m<<2)&p)>>2]=c[(I&p)>>2];c[(q&p)+88>>2]=(c[(I&p)>>2]|0)+-1;xh(U,wh(U,41,0,0,0)|0,M,-15);xh(U,wh(U,42,c[(E&p)>>2]|0,c[(F&p)>>2]|0,Q)|0,K,-6);l=c[(U&p)+4>>2]|0;if(l)a[(l+(((c[(I&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;wh(U,43,u,v,t)|0;l=c[(D&p)>>2]|0;k=~W;if((W|0)<0?(V=c[(l&p)+112>>2]|0,(V|0)!=0):0)c[(V+(k<<2)&p)>>2]=c[(I&p)>>2];c[(l&p)+88>>2]=(c[(I&p)>>2]|0)+-1;if((a[(h&n)>>0]|0)==9){k=_;while(1){l=c[(k&p)+52>>2]|0;if(!l)break;else k=l}Ns(f,0,c[(k&p)>>2]|0)}k=c[(Z&p)>>2]|0;if(k)Mk(X,k,1);c[(Z&p)>>2]=_;c[(L&p)>>2]=g;Qs(f,d[(Y&n)>>0]|0,J,H,0);k=0}i=$;return k|0}function Ms(a,b){a=a|0;b=b|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;do if(!(c[(a&p)+4>>2]&1024)){e=d[(a&n)>>0]|0;if((e|0)==158){e=Ms(c[(a&p)+12>>2]|0,b)|0;break}else if((e|0)!=157){e=0;break}if(!(Ms(c[(a&p)+12>>2]|0,f)|0))e=0;else{c[(b&p)>>2]=0-(c[(f&p)>>2]|0);e=1}}else{c[(b&p)>>2]=c[(a&p)+8>>2];e=1}while(0);i=g;return e|0}function Ns(d,e,f){d=d|0;e=e|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;D=i;i=i+32|0;if((i|0)>=(j|0))fa();C=D;B=d+8|0;y=c[(B&p)>>2]|0;z=c[(d&p)>>2]|0;if(((a[(d&n)+450>>0]|0)==0?(k=d+16|0,!((a[(k&n)>>0]|0)!=0|(y|0)==0)):0)?(a[(z&n)+65>>0]|0)==0:0){a[(k&n)>>0]=1;k=c[(z&p)+24>>2]|0;x=(k&32|0)==0;iq(y,c[(f&p)>>2]|0);h=c[(f&p)>>2]|0;if((h|0)>0){w=f+4|0;v=(e|0)==0;s=(k&96|0)==0;t=(e|0)!=0;u=0;do{r=c[(w&p)>>2]|0;h=c[(r+(u*20|0)&p)>>2]|0;do if(h){k=c[(r+(u*20|0)&p)+4>>2]|0;if(k){jq(y,u,0,k,-1);break}k=a[(h&n)>>0]|0;if(k<<24>>24==-102){if(v)A=25}else if(!(k<<24>>24==-100&t))A=25;if((A|0)==25){A=0;k=c[(r+(u*20|0)&p)+8>>2]|0;if(!k){c[(C&p)>>2]=u+1;k=uh(z,34880,C)|0}else k=kh(z,k)|0;jq(y,u,0,k,75);break}q=b[(h&o)+32>>1]|0;k=q<<16>>16;m=c[(e&p)>>2]|0;a:do if((m|0)>0){g=c[(h&p)+28>>2]|0;l=0;while(1){h=l+1|0;if((c[(e+(l*72|0)&p)+48>>2]|0)==(g|0)){h=l;break a}if((h|0)<(m|0))l=h;else break}}else h=0;while(0);h=c[(e+(h*72|0)&p)+24>>2]|0;if(q<<16>>16<0)k=b[(h&o)+36>>1]|0;if((k|0)<0)k=20456;else k=c[((c[(h&p)+4>>2]|0)+(k*24|0)&p)>>2]|0;if(s){jq(y,u,0,kh(z,c[(r+(u*20|0)&p)+8>>2]|0)|0,75);break}if(x){jq(y,u,0,k,-1);break}else{c[(C&p)>>2]=c[(h&p)>>2];c[(C&p)+4>>2]=k;jq(y,u,0,uh(z,27824,C)|0,75);break}}while(0);u=u+1|0;h=c[(f&p)>>2]|0}while((u|0)<(h|0))}k=c[(B&p)>>2]|0;c[(C&p)+4>>2]=e;c[(C&p)>>2]=d;if((h|0)>0){g=f+4|0;h=0;do{jq(k,h,1,yu(C,c[((c[(g&p)>>2]|0)+(h*20|0)&p)>>2]|0,0)|0,-1);h=h+1|0}while((h|0)<(c[(f&p)>>2]|0))}}i=D;return}function Os(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();f=o;h=b+8|0;if((c[(h&p)>>2]|0)==0?(at(a),g=b+60|0,(c[(g&p)>>2]|0)!=0):0){l=a+72|0;m=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=m;c[(h&p)>>2]=m;n=Oq(a)|0;do if(Ms(c[(g&p)>>2]|0,f)|0){f=c[(f&p)>>2]|0;wh(n,25,f,m,0)|0;if(!f){wh(n,16,0,d,0)|0;break}if((f|0)>-1?(e=b+24|0,d=e,h=c[(d&p)+4>>2]|0,k=((f|0)<0)<<31>>31,h>>>0>k>>>0|((h|0)==(k|0)?(c[(d&p)>>2]|0)>>>0>f>>>0:0)):0){d=e;c[(d&p)>>2]=f;c[(d&p)+4>>2]=k}}else{Rq(a,c[(g&p)>>2]|0,m);wh(n,38,m,0,0)|0;wh(n,46,m,d,0)|0}while(0);f=c[(b&p)+64>>2]|0;if(f){k=c[(l&p)>>2]|0;d=k+1|0;c[(b&p)+12>>2]=d;c[(l&p)>>2]=k+2;Rq(a,f,d);wh(n,38,d,0,0)|0;f=wh(n,137,d,0,0)|0;wh(n,25,0,d,0)|0;g=n+32|0;e=c[(g&p)>>2]|0;if(e>>>0>f>>>0)c[((c[(n&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=e;h=n+24|0;c[((c[(h&p)>>2]|0)&p)+88>>2]=e+-1;e=k+2|0;wh(n,89,m,d,e)|0;f=wh(n,137,m,0,0)|0;wh(n,25,-1,e,0)|0;e=c[(g&p)>>2]|0;if(e>>>0>f>>>0)c[((c[(n&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=e;c[((c[(h&p)>>2]|0)&p)+88>>2]=e+-1}}i=o;return}function Ps(b,f,g,h,i,j,k,l,m){b=b|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,F=0,G=0,H=0,I=0,J=0;I=c[(b&p)+8>>2]|0;D=a[(k&n)>>0]|0;x=D&255;z=k+4|0;G=c[(z&p)>>2]|0;if(!j)q=0;else q=d[(j&n)+1>>0]|0;if(!i)H=0;else H=(c[(i&p)>>2]|0)==0?0:i;C=(H|0)!=0;y=(q|0)!=0;if(!(C|y))it(I,c[(f&p)+12>>2]|0,l);E=c[(g&p)>>2]|0;t=k+8|0;i=c[(t&p)>>2]|0;if(i){s=b+72|0;r=c[(s&p)>>2]|0;if((i+E|0)>(r|0)){c[(s&p)>>2]=r+E;F=i;A=0}else{F=i;A=0}}else{if(C){r=((a[(H&n)+24>>0]&1^1)&255)+(c[(c[(H&p)>>2]&p)>>2]|0)|0;F=b+72|0;s=r+(c[(F&p)>>2]|0)|0;c[(F&p)>>2]=s}else{s=c[(b&p)+72>>2]|0;r=0}F=s+1|0;c[(t&p)>>2]=F;c[(b&p)+72>>2]=s+E;A=r}c[(k&p)+12>>2]=E;do if((h|0)>-1){if((E|0)>0){s=0;do{wh(I,47,h,s,s+F|0)|0;s=s+1|0}while((s|0)!=(E|0))}}else{if(D<<24>>24==9)r=1;else if(D<<24>>24==3)break;else r=D<<24>>24==13&1;bt(b,g,F,r)}while(0);if(y){r=d[(j&n)+1>>0]|0;if((r|0)==1)zh(I,c[(j&p)+8>>2]|0);else if((r|0)==2){r=b+72|0;h=c[(r&p)>>2]|0;w=h+1|0;c[(r&p)>>2]=h+E;r=j+8|0;zh(I,c[(r&p)>>2]|0);r=c[(r&p)>>2]|0;if((r|0)<0)r=(c[(I&p)+32>>2]|0)+-1|0;if(!(a[((c[(I&p)>>2]|0)&n)+65>>0]|0))r=(c[(I&p)+4>>2]|0)+(r*20|0)|0;else r=29120;a[(r&n)>>0]=28;c[(r&p)+4>>2]=1;c[(r&p)+8>>2]=w;h=I+32|0;i=(c[(h&p)>>2]|0)+E|0;if((E|0)>0){s=g+4|0;r=E+-1|0;t=I+4|0;v=0;do{y=cu(b,c[((c[(s&p)>>2]|0)+(v*20|0)&p)>>2]|0)|0;j=v+F|0;q=v+w|0;if((v|0)<(r|0))wh(I,78,j,i,q)|0;else wh(I,79,j,l,q)|0;xh(I,-1,y,-4);u=c[(t&p)>>2]|0;if(u)a[(u+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;v=v+1|0}while((v|0)!=(E|0))}else r=E+-1|0;wh(I,33,F,w,r)|0}else zu(b,c[(j&p)+4>>2]|0,l,E,F);if(!H)it(I,c[(f&p)+12>>2]|0,l)}a:do switch(x|0){case 11:{i=k+1|0;a[(i&n)>>0]=Bu(c[(c[(g&p)+4>>2]&p)>>2]|0,a[(i&n)>>0]|0)|0;if(C){Au(b,H,f,F,1,A);break a}j=b+19|0;q=a[(j&n)>>0]|0;if(!(q<<24>>24)){E=b+72|0;j=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=j}else{E=q+-1<<24>>24;a[(j&n)>>0]=E;j=c[(b+((E&255)<<2)&p)+24>>2]|0}xh(I,wh(I,49,F,1,j)|0,i,1);dt(b,F,1);wh(I,110,G,j,0)|0;_r(b,j);B=94;break}case 3:{wh(I,25,1,G,0)|0;B=94;break}case 10:{if(C)Au(b,H,f,F,1,A);else B=95;break}case 2:{wh(I,111,G,F,E)|0;B=94;break}case 12:case 14:case 6:case 5:{s=A+1|0;r=b+60|0;i=c[(r&p)>>2]|0;t=b+56|0;q=c[(t&p)>>2]|0;if((q|0)<(s|0)){B=b+72|0;i=c[(B&p)>>2]|0;c[(B&p)>>2]=i+s;i=i+1|0}else{c[(r&p)>>2]=i+s;c[(t&p)>>2]=q-s}q=i+A|0;wh(I,49,F,E,q)|0;if(D<<24>>24==6){F=G+1|0;xh(I,wh(I,69,F,(c[(I&p)+32>>2]|0)+4|0,i)|0,0,-14);wh(I,110,F,i,0)|0}if(C)Au(b,H,f,q,1,A);else{q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){F=b+72|0;j=(c[(F&p)>>2]|0)+1|0;c[(F&p)>>2]=j}else{j=j+-1<<24>>24;a[(q&n)>>0]=j;j=c[(b+((j&255)<<2)&p)+24>>2]|0}wh(I,74,G,j,0)|0;wh(I,75,G,i,j)|0;q=c[(I&p)+4>>2]|0;if(q)a[(q+(((c[(I&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;_r(b,j)}dt(b,i,s);if((c[(t&p)>>2]|0)<(s|0)){c[(t&p)>>2]=s;c[(r&p)>>2]=i;B=94}else B=94;break}case 1:{q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){D=b+72|0;j=(c[(D&p)>>2]|0)+1|0;c[(D&p)>>2]=j}else{j=j+-1<<24>>24;a[(q&n)>>0]=j;j=c[(b+((j&255)<<2)&p)+24>>2]|0}wh(I,49,F,E,j)|0;wh(I,110,G,j,0)|0;_r(b,j);B=94;break}case 9:case 13:{if(C){Au(b,H,f,F,E,A);break a}if(D<<24>>24==13){wh(I,22,c[(z&p)>>2]|0,0,0)|0;B=95;break a}else{wh(I,35,F,E,0)|0;dt(b,F,E);B=94;break a}}case 7:case 8:{u=c[(k&p)+16>>2]|0;h=c[(u&p)>>2]|0;q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){C=b+72|0;v=(c[(C&p)>>2]|0)+1|0;c[(C&p)>>2]=v}else{v=j+-1<<24>>24;a[(q&n)>>0]=v;v=c[(b+((v&255)<<2)&p)+24>>2]|0}w=h+2|0;x=b+60|0;i=c[(x&p)>>2]|0;y=b+56|0;q=c[(y&p)>>2]|0;if((q|0)<(w|0)){C=b+72|0;i=c[(C&p)>>2]|0;c[(C&p)>>2]=i+w;i=i+1|0}else{c[(x&p)>>2]=i+w;c[(y&p)>>2]=q-w}t=i+h|0;r=t+1|0;if(D<<24>>24==8){q=G+1|0;j=wh(I,69,q,0,F)|0;xh(I,j,E,-14);wh(I,49,F,E,r)|0;wh(I,110,q,r,0)|0;q=c[(I&p)+4>>2]|0;if(!q)s=j;else{a[(q+(((c[(I&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;s=j}}else{wh(I,49,F,E,r)|0;s=0}if((h|0)>0){r=u+4|0;q=F+-1|0;j=0;do{wh(I,34,q+(e[((c[(r&p)>>2]|0)+(j*20|0)&o)+16>>1]|0)|0,j+i|0,0)|0;j=j+1|0}while((j|0)!=(h|0))}wh(I,73,G,t,0)|0;wh(I,49,i,w,v)|0;wh(I,110,G,v,0)|0;if(s){q=c[(I&p)+32>>2]|0;if(q>>>0>s>>>0)c[((c[(I&p)+4>>2]|0)+(s*20|0)&p)+8>>2]=q;c[((c[(I&p)+24>>2]|0)&p)+88>>2]=q+-1}_r(b,v);dt(b,i,w);if((c[(y&p)>>2]|0)<(w|0)){c[(y&p)>>2]=w;c[(x&p)>>2]=i;B=94}else B=94;break}default:B=94}while(0);if((B|0)==94?(H|0)==0:0)B=95;if((B|0)==95?(J=c[(f&p)+8>>2]|0,(J|0)!=0):0)wh(I,140,J,m,0)|0;return}function Qs(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;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;if((a[(b&n)+450>>0]|0)==2){k=c[(b&p)+8>>2]|0;l=c[(b&p)>>2]|0;h=(g|0)!=0?35160:10360;if((d|0)==118)g=35336;else if((d|0)==116)g=35320;else if((d|0)==117)g=35352;else g=35360;c[(m&p)>>2]=e;c[(m&p)+4>>2]=f;c[(m&p)+8>>2]=h;c[(m&p)+12>>2]=g;g=uh(l,35120,m)|0;xh(k,wh(k,157,c[(b&p)+464>>2]|0,0,0)|0,g,-1)}i=o;return}function Rs(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=f+e|0;h=(g*5|0)+24|0;i=qg(h,0)|0;if(!i)a[(d&n)+65>>0]=1;else{fw(i|0,0,h|0)|0;c[(i&p)+16>>2]=i+20+(g<<2);b[(i&o)+6>>1]=e;b[(i&o)+8>>1]=f;a[(i&n)+4>>0]=a[(d&n)+62>>0]|0;c[(i&p)+12>>2]=d;c[(i&p)>>2]=1}return i|0}function Ss(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=c[(b&p)+52>>2]|0;if(!((f|0)!=0?(e=Ss(a,f,d)|0,(e|0)!=0):0)){e=c[(b&p)>>2]|0;if((c[(e&p)>>2]|0)>(d|0))e=cu(a,c[((c[(e&p)+4>>2]|0)+(d*20|0)&p)>>2]|0)|0;else e=0}return e|0}function Ts(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=(b|0)==0;f=(d|0)==0;a:do if(!(g&f))if(!(g|f)?(h=c[(b&p)>>2]|0,(h|0)==(c[(d&p)>>2]|0)):0)if((h|0)>0){b=c[(b&p)+4>>2]|0;f=c[(d&p)+4>>2]|0;g=0;while(1){if((a[(b+(g*20|0)&n)+12>>0]|0)!=(a[(f+(g*20|0)&n)+12>>0]|0)){f=1;break a}if(Cu(c[(b+(g*20|0)&p)>>2]|0,c[(f+(g*20|0)&p)>>2]|0,e)|0){f=1;break a}g=g+1|0;if((g|0)>=(h|0)){f=0;break}}}else f=0;else f=1;else f=0;while(0);return f|0}function Us(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=c[(b&p)>>2]|0;l=c[(d&p)>>2]|0;k=Rs(g,l-e|0,f+1|0)|0;if((k|0)!=0&(l|0)>(e|0)){h=g+8|0;i=k+16|0;j=e;f=(c[(d&p)+4>>2]|0)+(e*20|0)|0;while(1){g=cu(b,c[(f&p)>>2]|0)|0;if(!g)g=c[(h&p)>>2]|0;d=j-e|0;c[(k+(d<<2)&p)+20>>2]=g;a[((c[(i&p)>>2]|0)+d&n)>>0]=a[(f&n)+12>>0]|0;j=j+1|0;if((j|0)==(l|0))break;else f=f+20|0}}return k|0}function Vs(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0;Pa=i;i=i+64|0;if((i|0)>=(j|0))fa();Na=Pa;Oa=Pa+48|0;Ma=Pa+52|0;$=Pa+28|0;Ka=f+8|0;ha=c[(Ka&p)>>2]|0;La=c[(f&p)>>2]|0;c[($&p)>>2]=0;c[($&p)+4>>2]=0;c[($&p)+8>>2]=0;c[($&p)+12>>2]=0;c[($&p)+16>>2]=0;if(!k)S=0;else S=(c[(k&p)>>2]|0)>63?0:k;aa=$+8|0;c[(aa&p)>>2]=S;ba=La+60|0;if(b[(ba&o)>>1]&32)m=m&64511;k=c[(g&p)>>2]|0;a:do if((k|0)<=64){L=m&65535;O=(L&64|0)!=0;X=O?1:k;x=(X*80|0)+743&-16;r=x+72|0;k=mh(La,r,0)|0;Ja=(k|0)==0;if(!Ja)fw(k|0,0,r|0)|0;Aa=La+65|0;if(a[(Aa&n)>>0]|0){mg(La,k);k=0;break}ea=k+60|0;ga=k+64|0;c[(ga&p)>>2]=-1;c[(ea&p)>>2]=-1;Ba=k+41|0;a[(Ba&n)>>0]=X;c[(k&p)>>2]=f;Ca=k+4|0;c[(Ca&p)>>2]=g;ca=k+8|0;c[(ca&p)>>2]=S;c[(k&p)+12>>2]=l;Ea=xs(ha)|0;Da=k+48|0;c[(Da&p)>>2]=Ea;t=k+52|0;c[(t&p)>>2]=Ea;Ea=k+34|0;b[(Ea&o)>>1]=m;Fa=f+424|0;Ga=k+56|0;c[(Ga&p)>>2]=c[(Fa&p)>>2];Ha=k+68|0;c[($&p)>>2]=k;Ia=k+328|0;_=$+4|0;c[(_&p)>>2]=Ia;V=$+12|0;c[(V&p)>>2]=k+x;c[(k+x&p)+48>>2]=k+(x+56);b[(k+x&o)+40>>1]=0;b[(k+x&o)+44>>1]=3;c[(k+x&p)+36>>2]=0;c[(Ha&p)>>2]=0;c[(Ia&p)>>2]=k;c[(k&p)+332>>2]=0;ya=k+340|0;c[(ya&p)>>2]=0;c[(k&p)+344>>2]=8;za=k+348|0;c[(za&p)>>2]=k+352;Du(Ia,h,72);B=(X|0)==0;if((c[(k&p)+340>>2]|0)>0){A=Na+20|0;z=Na+4|0;r=Na+24|0;h=Ia;s=0;do{if(!B){h=c[((c[(h&p)+20>>2]|0)+(s*48|0)&p)>>2]|0;c[(Na&p)>>2]=0;c[(Na&p)+4>>2]=0;c[(Na&p)+8>>2]=0;c[(Na&p)+12>>2]=0;c[(Na&p)+16>>2]=0;c[(Na&p)+20>>2]=0;a[(A&n)>>0]=2;c[(Na&p)>>2]=78;c[(z&p)>>2]=79;c[(r&p)>>2]=0;rs(Na,h)|0;h=c[(_&p)>>2]|0;if(a[(A&n)>>0]|0)xa=15}else xa=15;if((xa|0)==15){xa=0;gt(f,c[((c[(h&p)+20>>2]|0)+(s*48|0)&p)>>2]|0,c[(t&p)>>2]|0,16);h=c[(_&p)>>2]|0;da=(c[(h&p)+20>>2]|0)+(s*48|0)+20|0;b[(da&o)>>1]=e[(da&o)>>1]|4}s=s+1|0}while((s|0)<(c[(h&p)+12>>2]|0))}if(B){if(S)a[(k&n)+36>>0]=c[(S&p)>>2];if(L&1024)a[(k&n)+40>>0]=1}if((c[(g&p)>>2]|0)>0){x=0;do{R=c[(g+(x*72|0)&p)+48>>2]|0;da=c[(Ha&p)>>2]|0;c[(Ha&p)>>2]=da+1;c[(Ha+(da<<2)&p)+4>>2]=R;x=x+1|0}while((x|0)<(c[(g&p)>>2]|0))}u=c[(ya&p)>>2]|0;if((u|0)>0)do{u=u+-1|0;Eu(Ia,u)}while((u|0)>0);b:do if(!(a[(Aa&n)>>0]|0)){da=(L&1024|0)==0;c:do if(!da){d:do if((c[(g&p)>>2]|0)==1){K=c[(g&p)+48>>2]|0;s=c[(g&p)+24>>2]|0;A=c[(l&p)>>2]|0;e:do if((A|0)>0){z=c[(l&p)+4>>2]|0;r=0;while(1){h=c[(z+(r*20|0)&p)>>2]|0;f:do if(!h)h=0;else while(1){B=c[(h&p)+4>>2]|0;if(!(B&4096))break f;if(!(B&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);do if((a[(h&n)>>0]|0)==-102){if((c[(h&p)+28>>2]|0)!=(K|0))break;if((b[(h&o)+32>>1]|0)<0)break e}while(0);r=r+1|0;if((r|0)>=(A|0)){xa=41;break}}}else xa=41;while(0);g:do if((xa|0)==41){h=c[(s&p)+8>>2]|0;if(!h)break d;t=l+4|0;s=s+4|0;while(1){if(a[(h&n)+50>>0]|0){F=h+46|0;h:do if(!(b[(F&o)>>1]|0))B=0;else{I=h+4|0;H=h+32|0;B=0;do{E=b[((c[(I&p)>>2]|0)+(B<<1)&o)>>1]|0;if(!(Fu(Ia,K,E,-1,-1,2,h)|0)){r=c[((c[(H&p)>>2]|0)+(B<<2)&p)>>2]|0;if((c[(l&p)>>2]|0)>0)A=0;else break h;i:while(1){C=c[((c[(t&p)>>2]|0)+(A*20|0)&p)>>2]|0;j:do if(!C)z=0;else{z=C;while(1){D=c[(z&p)+4>>2]|0;if(!(D&4096))break j;if(!(D&262144))z=z+12|0;else z=c[((c[(z&p)+20>>2]|0)&p)+4>>2]|0;z=c[(z&p)>>2]|0;if(!z){z=0;break}}}while(0);do if((a[(z&n)>>0]|0)==-102){if((b[(z&o)+32>>1]|0)!=(b[((c[(I&p)>>2]|0)+(B<<1)&o)>>1]|0))break;if((c[(z&p)+28>>2]|0)!=(K|0))break;z=cu(f,C)|0;if(!z)break;if(!(dd(c[(z&p)>>2]|0,r)|0))break i}while(0);A=A+1|0;if((A|0)>=(c[(l&p)>>2]|0))break h}if((A|0)<0)break h;if(!(a[((c[(s&p)>>2]|0)+(E*24|0)&n)+20>>0]|0))break h}B=B+1|0}while((B|0)<(e[(F&o)>>1]|0))}while(0);if((B|0)==(e[(F&o)>>1]|0))break g}h=c[(h&p)+20>>2]|0;if(!h)break d}}while(0);a[(k&n)+40>>0]=1;break c}while(0);if(!S){b[(Ea&o)>>1]=e[(Ea&o)>>1]|512;c[(ca&p)>>2]=l}}while(0);k:do if((((X|0)==1?(Z=c[($&p)>>2]|0,Y=Z+34|0,(b[(Y&o)>>1]&32)==0):0)?(U=c[(Z&p)+4>>2]|0,Q=c[(U&p)+24>>2]|0,(a[(Q&n)+44>>0]&16)==0):0)?(c[(U&p)+72>>2]|0)==0:0){S=c[(U&p)+48>>2]|0;C=Z+328|0;R=c[(V&p)>>2]|0;K=R+36|0;c[(K&p)>>2]=0;b[(R&o)+42>>1]=0;y=Fu(C,S,-1,0,0,2,0)|0;l:do if(!y){A=c[(Q&p)+8>>2]|0;m:do if(A){D=R+48|0;n:while(1){do if(a[(A&n)+50>>0]|0){if(c[(A&p)+36>>2]|0)break;z=A+46|0;h=b[(z&o)>>1]|0;if((h&65535)>3)break;t=A+4|0;o:do if(!(h<<16>>16)){h=0;B=0}else{B=0;while(1){h=Fu(C,S,b[((c[(t&p)>>2]|0)+(B<<1)&o)>>1]|0,0,0,2,A)|0;if(!h)break;c[((c[(D&p)>>2]|0)+(B<<2)&p)>>2]=h;B=B+1|0;h=b[(z&o)>>1]|0;if((B|0)>=(h&65535|0))break o}h=b[(z&o)>>1]|0}while(0);if((B|0)==(h&65535|0)){D=B;break n}}while(0);A=c[(A&p)+20>>2]|0;if(!A)break m}c[(K&p)>>2]=4609;if(!(a[(A&n)+51>>0]&32)){s=U+64|0;r=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;z=0;y=0;h=e[(A&o)+48>>1]|0;p:while(1){B=h;while(1){h=B+-1|0;if((B|0)<=0)break p;B=b[((c[(t&p)>>2]|0)+(h<<1)&o)>>1]|0;if((B&65535)<63)break;else B=h}$=iw(1,0,B<<16>>16|0)|0;z=$|z;y=G|y}if((r&~z|0)==0&(s&~y|0)==0)xa=91}else xa=91;if((xa|0)==91)c[(K&p)>>2]=4673;$=D&65535;b[(R&o)+40>>1]=$;b[(R&o)+24>>1]=$;c[(R&p)+28>>2]=A;b[(R&o)+20>>1]=39;break l}while(0);if(!(c[(K&p)>>2]|0)){xa=103;break k}}else{c[(K&p)>>2]=4353;c[(c[(R&p)+48>>2]&p)>>2]=y;b[(R&o)+40>>1]=1;b[(R&o)+24>>1]=1;b[(R&o)+20>>1]=33}while(0);b[(R&o)+22>>1]=1;c[(Z&p)+800>>2]=R;t=c[(Z&p)+68>>2]|0;q:do if((t|0)>0){u=0;while(1){if((c[(Z+(u<<2)&p)+72>>2]|0)==(S|0))break;u=u+1|0;if((u|0)>=(t|0)){u=0;t=0;break q}}u=iw(1,0,u|0)|0;t=G}else{u=0;t=0}while(0);s=R+8|0;c[(s&p)>>2]=u;c[(s&p)+4>>2]=t;c[(Z&p)+740>>2]=S;b[(Z&o)+32>>1]=1;s=c[(Z&p)+8>>2]|0;if(s)a[(Z&n)+36>>0]=c[(s&p)>>2];if(!(b[(Y&o)>>1]&1024)){xa=120;break}a[(Z&n)+40>>0]=1;xa=120}else xa=103;while(0);if((xa|0)==103){F=c[($&p)>>2]|0;h=c[(F&p)+4>>2]|0;H=c[(c[(F&p)>>2]&p)>>2]|0;Z=a[(F&n)+41>>0]|0;I=Z&255;z=c[(V&p)>>2]|0;c[(z&p)+48>>2]=z+56;b[(z&o)+40>>1]=0;b[(z&o)+44>>1]=3;c[(z&p)+36>>2]=0;r=H+65|0;r:do if(Z<<24>>24){s=z+16|0;t=F+68|0;u=z+8|0;v=0;w=0;x=0;y=0;E=0;D=h+8|0;C=0;while(1){a[(s&n)>>0]=E;B=c[(D&p)+40>>2]|0;A=c[(t&p)>>2]|0;s:do if((A|0)>0){h=0;while(1){if((c[(F+(h<<2)&p)+72>>2]|0)==(B|0))break;h=h+1|0;if((h|0)>=(A|0)){h=0;B=0;break s}}h=iw(1,0,h|0)|0;B=G}else{h=0;B=0}while(0);Z=u;c[(Z&p)>>2]=h;c[(Z&p)+4>>2]=B;Z=C;C=a[(D&n)+36>>0]|0;Z=((C|Z)&10)==0;w=Z?w:v;y=Z?y:x;if(!(a[((c[(D&p)+16>>2]|0)&n)+44>>0]&16))h=Hu($,w,y)|0;else h=Gu($,w,y)|0;if(h)break;Z=Iu($,w,y)|0;h=u;if(Z)break;if(a[(r&n)>>0]|0)break r;E=E+1|0;if((E|0)>=(I|0))break r;else{v=c[(h&p)>>2]|v;x=c[(h&p)+4>>2]|x;D=D+72|0}}Ju(H,z);break b}while(0);Ju(H,z);Ku(k,0);if(a[(Aa&n)>>0]|0)break;if(c[(ca&p)>>2]|0){Ku(k,(e[(k&o)+32>>1]|0)+1&65535);if(!(a[(Aa&n)>>0]|0))xa=120;else break}else xa=121}if((xa|0)==120?(c[(ca&p)>>2]|0)==0:0)xa=121;if((xa|0)==121?(c[(La&p)+24>>2]&131072|0)!=0:0){ca=k+24|0;c[(ca&p)>>2]=-1;c[(ca&p)+4>>2]=-1}if((c[(f&p)+64>>2]|0)==0?(a[(Aa&n)>>0]|0)==0:0){x=a[(Ba&n)>>0]|0;t:do if((x&255)>1&(l|0)!=0?(b[(ba&o)>>1]&1024)==0:0){s=Lu(Ha,l)|0;t=G;r=c[(aa&p)>>2]|0;if(r){ca=Lu(Ha,r)|0;s=ca|s;t=G|t}B=k+736|0;h=c[(Ca&p)>>2]|0;A=c[(_&p)>>2]|0;z=A+20|0;A=A+12|0;y=x;r=X;do{u=c[(B+(((y&255)+-1|0)*80|0)&p)+64>>2]|0;if(!(a[(h+((d[(u&n)+16>>0]|0)*72|0)&n)+44>>0]&8))break t;if(da?(c[(u&p)+36>>2]&4096|0)==0:0)break t;w=u+8|0;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;if(!((v&s|0)==0&(w&t|0)==0))break t;u=c[(z&p)>>2]|0;ca=c[(A&p)>>2]|0;x=u+(ca*48|0)|0;if((ca|0)>0)do{ca=u+40|0;if(!((v&c[(ca&p)>>2]|0)==0?(w&c[(ca&p)+4>>2]|0)==0:0)?(c[((c[(u&p)>>2]|0)&p)+4>>2]&1|0)==0:0)break t;u=u+48|0}while(u>>>0<x>>>0);y=y+-1<<24>>24;a[(Ba&n)>>0]=y;r=r+-1|0}while((y&255)>1)}else r=X;while(0);da=(c[(k&p)>>2]|0)+424|0;c[(da&p)>>2]=(c[(da&p)>>2]|0)+(b[(k&o)+32>>1]|0);do if((L&4|0)!=0?(W=(c[(k&p)+800>>2]|0)+36|0,T=c[(W&p)>>2]|0,(T&4096|0)!=0):0){a[(k&n)+38>>0]=1;if(a[((c[(g&p)+24>>2]|0)&n)+44>>0]&32)break;c[(W&p)>>2]=T&-65}while(0);wa=k+736|0;S=(r|0)>0;if(S){P=L&16;Q=k+38|0;R=ha+32|0;M=O^1;O=(q|0)==0|M;N=f+68|0;K=54-(L>>>12&1)|0;J=ha+4|0;E=La+20|0;C=La+16|0;v=0;L=wa;while(1){D=d[(L&n)+44>>0]|0;F=g+(D*72|0)+24|0;t=c[(F&p)>>2]|0;h=c[(t&p)+68>>2]|0;u:do if(!h)z=-1e6;else{B=c[(E&p)>>2]|0;if((B|0)<=0){z=0;break}A=c[(C&p)>>2]|0;s=0;while(1){z=s+1|0;if((c[(A+(s<<4)&p)+12>>2]|0)==(h|0)){z=s;break u}if((z|0)<(B|0))s=z;else break}}while(0);I=c[(L&p)+64>>2]|0;H=t+44|0;h=d[(H&n)>>0]|0;do if(!(h&2)){if(c[(t&p)+12>>2]|0)break;B=c[(I&p)+36>>2]|0;if(B&1024){y=c[(t&p)+60>>2]|0;v:do if(!y)y=0;else while(1){if((c[(y&p)>>2]|0)==(La|0))break v;y=c[(y&p)+24>>2]|0;if(!y){y=0;break}}while(0);xh(ha,wh(ha,149,c[(g+(D*72|0)&p)+48>>2]|0,0,0)|0,y,-10);break}if(h&16)break;if(B&64|P){gs(f,z,c[(t&p)+32>>2]|0,0,c[(t&p)>>2]|0);break}A=g+(D*72|0)+48|0;if(!(a[(Q&n)>>0]|0))h=54;else{c[(ea&p)>>2]=c[(A&p)>>2];h=55}Qq(f,c[(A&p)>>2]|0,z,t,h);if(a[(Q&n)>>0]|0)break;if((b[(t&o)+38>>1]|0)>=64)break;if(a[(H&n)>>0]&32)break;A=g+(D*72|0)+64|0;y=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;if((y|0)==0&(A|0)==0)x=0;else{x=0;do{y=mw(y|0,A|0,1)|0;A=G;x=x+1|0}while(!((y|0)==0&(A|0)==0))}xh(ha,(c[(R&p)>>2]|0)+-1|0,x,-14)}while(0);B=I+36|0;w:do if(c[(B&p)>>2]&512){h=c[(I&p)+28>>2]|0;do if(a[(H&n)>>0]&32){if((a[(h&n)+51>>0]&3)!=2|M)break;c[(L&p)+8>>2]=c[(L&p)+4>>2];break w}while(0);do if(!(a[(Q&n)>>0]|0)){if(!O){x=q;w=K;break}x=c[(N&p)>>2]|0;c[(N&p)>>2]=x+1;w=54}else{w=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if((w|0)==0|(w|0)==(h|0))x=q;else{x=q;do{x=x+1|0;w=c[(w&p)+20>>2]|0}while(!((w|0)==0|(w|0)==(h|0)))}c[(ga&p)>>2]=x;w=55}while(0);c[(L&p)+8>>2]=x;wh(ha,w,x,c[(h&p)+40>>2]|0,z)|0;da=c[(Ka&p)>>2]|0;xh(da,-1,hs(f,h)|0,-6);da=c[(B&p)>>2]|0;if(!((da&15|0)!=0&(da&32770|0)==0))break;if(b[(Ea&o)>>1]&1)break;u=c[(J&p)>>2]|0;if(!u)break;a[(u+(((c[(R&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=2}while(0);if((z|0)>-1)Ar(f,z);v=v+1|0;if((v|0)==(r|0))break;else L=L+80|0}ga=(a[(Aa&n)>>0]|0)==0;c[(k&p)+44>>2]=c[(R&p)>>2];if(!ga)break}else{R=ha+32|0;c[(k&p)+44>>2]=c[(R&p)>>2]}if(!S)break a;ka=k+24|0;la=k+36|0;ma=k+39|0;na=f+80|0;oa=f+68|0;pa=f+100|0;qa=f+19|0;ra=f+72|0;sa=Na+20|0;ta=Na+4|0;ua=Na+24|0;t=-1;s=-1;va=0;while(1){Y=wa+(va*80|0)|0;h=wa+(va*80|0)+64|0;_=wa+(va*80|0)+44|0;if(c[((c[(h&p)>>2]|0)&p)+36>>2]&16384){K=d[(_&n)>>0]|0;U=g+(K*72|0)+8|0;Z=c[(Ka&p)>>2]|0;y=Oq(f)|0;$=c[(na&p)>>2]|0;c[(na&p)>>2]=$+1;$=wh(y,44,$,0,0)|0;y=c[(g+(K*72|0)&p)+24>>2]|0;ga=c[(ya&p)>>2]|0;B=c[(za&p)>>2]|0;T=B+(ga*48|0)|0;M=c[(h&p)>>2]|0;x:do if((ga|0)>0){z=g+(K*72|0)+48|0;v=y+4|0;w=M+48|0;F=0;C=0;A=0;u=0;E=0;while(1){D=c[(B&p)>>2]|0;ga=M;do if((c[(ga&p)>>2]|0)==0&(c[(ga&p)+4>>2]|0)==0){if(b[(B&o)+20>>1]&2)break;if(c[(D&p)+4>>2]&1)break;ga=c[(z&p)>>2]|0;c[(Na&p)>>2]=0;c[(Na&p)+4>>2]=0;c[(Na&p)+8>>2]=0;c[(Na&p)+12>>2]=0;c[(Na&p)+16>>2]=0;c[(Na&p)+20>>2]=0;a[(sa&n)>>0]=3;c[(Na&p)>>2]=78;c[(ta&p)>>2]=79;c[(ua&p)>>2]=ga;rs(Na,D)|0;if(!(a[(sa&n)>>0]|0))break;ga=c[(f&p)>>2]|0;u=ss(ga,u,Mr(ga,D,0,0)|0)|0}while(0);do if(!(Mu(B,U,t,s)|0)){I=F;D=C;h=A}else{D=c[(B&p)+12>>2]|0;if((D|0)>63){I=0;H=-2147483648}else{I=iw(1,0,D|0)|0;H=G}if(!(E<<24>>24)){E=c[((c[(v&p)>>2]|0)+(D*24|0)&p)>>2]|0;c[(Na&p)>>2]=c[(y&p)>>2];c[(Na&p)+4>>2]=E;bd(284,33960,Na);E=1}if(!((I&F|0)==0&(H&C|0)==0)){I=F;D=C;h=A;break}h=A+1|0;if(Nu(c[(f&p)>>2]|0,M,h)|0)break x;c[((c[(w&p)>>2]|0)+(A<<2)&p)>>2]=B;I=I|F;D=H|C}while(0);B=B+48|0;if(B>>>0>=T>>>0){B=I;xa=207;break}else{F=I;C=D;A=h}}}else{D=0;B=0;h=0;u=0;xa=207}while(0);do if((xa|0)==207){xa=0;v=h&65535;b[(M&o)+40>>1]=v;b[(M&o)+24>>1]=v;v=M+36|0;c[(v&p)>>2]=16961;L=g+(K*72|0)+64|0;N=L;H=c[(N&p)+4>>2]|0;N=c[(N&p)>>2]&~B;P=H&((D|-2147483648)^2147483647);x=y+38|0;Q=b[(x&o)>>1]|0;I=Q<<16>>16;Q=Q<<16>>16>63?63:I;S=(Q|0)>0;if(S){D=0;do{ga=iw(1,0,D|0)|0;h=(((ga&N|0)!=0|(G&P|0)!=0)&1)+h|0;D=D+1|0}while((D|0)!=(Q|0))}if((H|0)<0)h=h+-63+I|0;O=h+1|0;J=us(c[(f&p)>>2]|0,O&65535,0,Oa)|0;if(!J)break;c[(M&p)+28>>2]=J;c[(J&p)>>2]=33992;c[(J&p)+12>>2]=y;D=c[(za&p)>>2]|0;if(D>>>0<T>>>0){h=J+4|0;B=J+32|0;H=0;I=0;A=0;do{do if(Mu(D,U,t,s)|0){F=c[(D&p)+12>>2]|0;if((F|0)>63){E=0;C=-2147483648}else{E=iw(1,0,F|0)|0;C=G}if(!((E&H|0)==0&(C&I|0)==0))break;ga=c[(D&p)>>2]|0;b[((c[(h&p)>>2]|0)+(A<<1)&o)>>1]=F;F=Ou(f,c[(ga&p)+12>>2]|0,c[(ga&p)+16>>2]|0)|0;if(!F)F=11152;else F=c[(F&p)>>2]|0;c[((c[(B&p)>>2]|0)+(A<<2)&p)>>2]=F;H=E|H;I=C|I;A=A+1|0}while(0);D=D+48|0}while(D>>>0<T>>>0)}else A=0;if(S){D=J+4|0;C=J+32|0;h=0;do{ga=iw(1,0,h|0)|0;if(!((ga&N|0)==0&(G&P|0)==0)){b[((c[(D&p)>>2]|0)+(A<<1)&o)>>1]=h;c[((c[(C&p)>>2]|0)+(A<<2)&p)>>2]=11152;A=A+1|0}h=h+1|0}while((h|0)!=(Q|0))}do if((c[(L&p)+4>>2]|0)<0){if((b[(x&o)>>1]|0)<=63)break;h=J+4|0;B=J+32|0;z=63;do{b[((c[(h&p)>>2]|0)+(A<<1)&o)>>1]=z;c[((c[(B&p)>>2]|0)+(A<<2)&p)>>2]=11152;A=A+1|0;z=z+1|0}while((z|0)<(b[(x&o)>>1]|0))}while(0);b[((c[(J&p)+4>>2]|0)+(A<<1)&o)>>1]=-1;c[((c[(J&p)+32>>2]|0)+(A<<2)&p)>>2]=11152;D=c[(oa&p)>>2]|0;c[(oa&p)>>2]=D+1;B=wa+(va*80|0)+8|0;c[(B&p)>>2]=D;wh(Z,56,D,O,0)|0;D=c[(Ka&p)>>2]|0;xh(D,-1,hs(f,J)|0,-6);c[(pa&p)>>2]=(c[(pa&p)>>2]|0)+1;D=wa+(va*80|0)+4|0;w=wh(Z,108,c[(D&p)>>2]|0,0,0)|0;A=(u|0)!=0;if(A){z=xs(Z)|0;gt(f,u,z,16);c[(v&p)>>2]=c[(v&p)>>2]|131072}else z=0;h=a[(qa&n)>>0]|0;if(!(h<<24>>24)){v=(c[(ra&p)>>2]|0)+1|0;c[(ra&p)>>2]=v}else{v=h+-1<<24>>24;a[(qa&n)>>0]=v;v=c[(f+((v&255)<<2)&p)+24>>2]|0}Pt(f,J,c[(D&p)>>2]|0,v,0,0,0,0)|0;wh(Z,110,c[(B&p)>>2]|0,v,0)|0;C=Z+4|0;h=c[(C&p)>>2]|0;if(h)a[(h+(((c[(Z&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;if(A){B=c[(Z&p)+24>>2]|0;A=~z;do if((z|0)<0){h=c[(B&p)+112>>2]|0;if(!h)break;c[(h+(A<<2)&p)>>2]=c[(Z&p)+32>>2]}while(0);c[(B&p)+88>>2]=(c[(Z&p)+32>>2]|0)+-1}wh(Z,9,c[(D&p)>>2]|0,w+1|0,0)|0;h=c[(C&p)>>2]|0;B=c[(Z&p)+32>>2]|0;if(h)a[(h+((B+-1|0)*20|0)&n)+3>>0]=3;if(B>>>0>w>>>0)c[(h+(w*20|0)&p)+8>>2]=B;h=Z+24|0;c[((c[(h&p)>>2]|0)&p)+88>>2]=B+-1;_r(f,v);bu(f);x=c[(Z&p)+32>>2]|0;if(x>>>0>$>>>0)c[((c[(C&p)>>2]|0)+($*20|0)&p)+8>>2]=x;c[((c[(h&p)>>2]|0)&p)+88>>2]=x+-1}while(0);Gk(c[(f&p)>>2]|0,u);if(a[(Aa&n)>>0]|0)break b}Pu(f,g,Y,va,d[(_&n)>>0]|0,m);c[(wa+(va*80|0)&p)+32>>2]=c[(R&p)>>2];ja=c[(k&p)>>2]|0;O=ja+8|0;ea=c[(O&p)>>2]|0;ha=c[(ja&p)>>2]|0;u=k+(va*80|0)+736|0;N=c[(k+(va*80|0)&p)+800>>2]|0;ca=k+(va*80|0)+780|0;K=d[(ca&n)>>0]|0;I=c[(Ca&p)>>2]|0;Q=I+(K*72|0)+8|0;q=c[(I+(K*72|0)&p)+48>>2]|0;B=c[(Ha&p)>>2]|0;y:do if((B|0)>0){h=0;while(1){if((c[(Ha+(h<<2)&p)+4>>2]|0)==(q|0))break;h=h+1|0;if((h|0)>=(B|0)){h=-1;B=-1;break y}}h=iw(1,0,h|0)|0;h=~h;B=~G}else{h=-1;B=-1}while(0);ia=k+(va*80|0)+808|0;P=ia;c[(P&p)>>2]=h&t;c[(P&p)+4>>2]=B&s;P=ka;P=mw(c[(P&p)>>2]|0,c[(P&p)+4>>2]|0,va|0)|0;ba=P&1;W=N+36|0;if(!(c[(W&p)>>2]&64))y=0;else y=(b[(Ea&o)>>1]&32)==0;J=xs(ea)|0;S=k+(va*80|0)+752|0;c[(S&p)>>2]=J;da=k+(va*80|0)+748|0;c[(da&p)>>2]=J;ga=xs(ea)|0;c[(k+(va*80|0)&p)+760>>2]=ga;do if(a[(ca&n)>>0]|0){if(!(a[(I+(K*72|0)&n)+44>>0]&8))break;aa=ja+72|0;l=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=l;c[(u&p)>>2]=l;wh(ea,25,0,l,0)|0}while(0);D=a[(I+(K*72|0)&n)+45>>0]|0;z:do if(!(D&4)){F=c[(W&p)>>2]|0;if(F&1024){v=b[(N&o)+40>>1]|0;w=v&65535;y=ja+100|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1;y=w+2|0;J=ja+60|0;h=c[(J&p)>>2]|0;K=ja+56|0;B=c[(K&p)>>2]|0;if((B|0)<(y|0)){ca=ja+72|0;x=c[(ca&p)>>2]|0;c[(ca&p)>>2]=x+y;x=x+1|0}else{c[(J&p)>>2]=h+y;c[(K&p)>>2]=B-y;x=h}h=c[(da&p)>>2]|0;E=v<<16>>16==0;if(!E){H=x+2|0;F=N+48|0;I=0;do{D=H+I|0;C=c[((c[(F&p)>>2]|0)+(I<<2)&p)>>2]|0;do if(C)if(!(b[(C&o)+18>>1]&1)){Rq(ja,c[((c[(C&p)>>2]|0)&p)+16>>2]|0,D);break}else{Qu(ja,C,u,I,ba,D)|0;h=c[(S&p)>>2]|0;break}while(0);I=I+1|0}while((I|0)<(w|0))}wh(ea,25,c[(N&p)+24>>2]|0,x,0)|0;wh(ea,25,w,x+1|0,0)|0;ba=c[(N&p)+32>>2]|0;da=N+28|0;ca=(a[(da&n)>>0]|0)!=0?-11:-2;xh(ea,wh(ea,14,q,h,x)|0,ba,ca);a[(da&n)>>0]=0;if(!E){z=N+30|0;A=N+48|0;h=(v&65535)>1?0-w|0:-1;h=h>>>0>4294967280?0-h|0:16;B=0;do{if(e[(z&o)>>1]&1<<B)Ru(u,c[((c[(A&p)>>2]|0)+(B<<2)&p)>>2]|0);B=B+1|0}while((B|0)!=(h|0))}a[(k+(va*80|0)&n)+781>>0]=-105;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=c[(ea&p)+32>>2];dt(ja,x,y);if((c[(K&p)>>2]|0)<(y|0)){c[(K&p)>>2]=y;c[(J&p)>>2]=x}bu(ja);xa=459;break}if(!((F&256|0)==0|(F&5|0)==0)){y=c[(c[(N&p)+48>>2]&p)>>2]|0;da=ja+72|0;A=(c[(da&p)>>2]|0)+1|0;c[(da&p)>>2]=A;y=Qu(ja,y,u,0,ba,A)|0;if((y|0)!=(A|0))_r(ja,A);xa=c[(S&p)>>2]|0;wh(ea,38,y,xa,0)|0;wh(ea,70,q,xa,y)|0;dt(ja,y,1);Su(ja,q,-1,y);a[(k+(va*80|0)&n)+781>>0]=-100;xa=459;break}if((F&258|0)==258){if(!(F&32)){h=0;A=0}else{h=1;A=c[(c[(N&p)+48>>2]&p)>>2]|0}if(!(F&16))h=0;else h=c[((c[(N&p)+48>>2]|0)+(h<<2)&p)>>2]|0;B=(ba|0)!=0;z=B?A:h;h=B?h:A;if(!h)wh(ea,B?105:108,q,J,0)|0;else{ca=c[(h&p)>>2]|0;da=$t(ja,c[(ca&p)+16>>2]|0,Na)|0;wh(ea,d[((d[(ca&n)>>0]|0)+-80&n)+33536>>0]|0,q,J,da)|0;dt(ja,da,1);_r(ja,c[(Na&p)>>2]|0);Ru(u,h)}if(!z){h=0;B=156}else{da=c[(z&p)>>2]|0;ca=ja+72|0;h=(c[(ca&p)>>2]|0)+1|0;c[(ca&p)>>2]=h;Rq(ja,c[(da&p)+16>>2]|0,h);da=a[(da&n)>>0]|0;if(da<<24>>24==80|da<<24>>24==82)B=ba<<1^83;else B=ba<<1|80;Ru(u,z)}A=ea+32|0;da=c[(A&p)>>2]|0;a[(k+(va*80|0)&n)+781>>0]=ba^9;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=da;if((B|0)==156){xa=459;break}da=ja+72|0;x=(c[(da&p)>>2]|0)+1|0;c[(da&p)>>2]=x;wh(ea,103,q,x,0)|0;Su(ja,q,-1,x);wh(ea,B,h,J,x)|0;x=c[(ea&p)+4>>2]|0;if(!x){xa=459;break}a[(x+(((c[(A&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=83;xa=459;break}if(F&512){O=b[(N&o)+24>>1]|0;a[(Ma&n)>>0]=0;V=c[(N&p)+28>>2]|0;X=c[(k+(va*80|0)&p)+744>>2]|0;do if(!(b[(Ea&o)>>1]&1)){H=0;D=0}else{if((a[(la&n)>>0]|0)<=0){H=0;D=0;break}D=(e[(V&o)+46>>1]|0)>(O&65535);H=D&1;D=D&1}while(0);h=O&65535;if(!(F&32)){I=h;K=0}else{I=h+1|0;D=1;K=c[((c[(N&p)+48>>2]|0)+(h<<2)&p)>>2]|0}do if(!(F&16))C=0;else{C=c[((c[(N&p)+48>>2]|0)+(I<<2)&p)>>2]|0;if(b[(C&o)+20>>1]&256){ca=ja+72|0;da=(c[(ca&p)>>2]|0)+1|0;c[(ca&p)>>2]=da;c[(k+(va*80|0)&p)+772>>2]=da;wh(ea,25,(a[((c[(V&p)+28>>2]|0)+h&n)>>0]|0)==1^ba,da,0)|0;c[(k+(va*80|0)&p)+776>>2]=c[(ea&p)+32>>2]}if(K){D=1;break}D=b[((c[(V&p)+4>>2]|0)+(h<<1)&o)>>1]|0;if(D<<16>>16<=-1){D=1;break}H=(a[((c[((c[(V&p)+12>>2]|0)&p)+4>>2]|0)+((D<<16>>16)*24|0)&n)+20>>0]|0)==0?1:H;D=1}while(0);M=Tu(ja,u,ba,D,Oa)|0;L=c[(Oa&p)>>2]|0;J=(L|0)==0;if(!J)a[(Ma&n)>>0]=a[(L+h&n)>>0]|0;N=c[(S&p)>>2]|0;E=b[(V&o)+46>>1]|0;if((O&65535)<(E&65535)?!((a[((c[(V&p)+28>>2]|0)+h&n)>>0]|0)==0^((P&1|0)!=0|0!=0)):0)xa=318;else if((ba|0)!=0?E<<16>>16==O<<16>>16:0)xa=318;else{Q=H;H=0;P=C;S=K}if((xa|0)==318){Q=0;P=K;S=C}C=(S|0)!=0;if(C)E=(b[(S&o)+18>>1]&40)!=0;else E=1;F=E&1;K=(P|0)!=0;if(K)I=(b[(P&o)+18>>1]&40)!=0;else I=1;D=I&1;I=(C|O<<16>>16!=0)&1;do if(C){B=c[((c[(S&p)>>2]|0)&p)+16>>2]|0;C=M+h|0;Rq(ja,B,C);if(b[(S&o)+20>>1]&256){if(!(a[((c[(ea&p)>>2]|0)&n)+65>>0]|0))E=(c[(ea&p)+4>>2]|0)+(((c[(ea&p)+32>>2]|0)+-1|0)*20|0)|0;else E=29120;c[(E&p)+12>>2]=c[(k+(va*80|0)&p)+772>>2];a[(E&n)+3>>0]=1}if(Uu(B)|0)wh(ea,76,C,N,0)|0;do if(!J){E=L+h|0;if((Bu(B,a[(E&n)>>0]|0)|0)<<24>>24==65){a[(E&n)>>0]=65;C=65}else C=a[(E&n)>>0]|0;if(!(Vu(B,C)|0))break;a[(E&n)>>0]=65}while(0);E=h+1|0}else{if(!(Q<<24>>24)){E=h;break}wh(ea,28,0,M+h|0,0)|0;E=h+1|0;F=0;I=1}while(0);Wu(ja,M,E-(Q&255)|0,L);xh(ea,wh(ea,d[((I<<2|ba|F<<1)&n)+33544>>0]|0,X,N,M)|0,E,-14);do if(K){B=c[((c[(P&p)>>2]|0)&p)+16>>2]|0;A=M+h|0;dt(ja,A,1);Rq(ja,B,A);if(b[(P&o)+20>>1]&256){if(!(a[((c[(ea&p)>>2]|0)&n)+65>>0]|0))C=(c[(ea&p)+4>>2]|0)+(((c[(ea&p)+32>>2]|0)+-1|0)*20|0)|0;else C=29120;c[(C&p)+12>>2]=c[(k+(va*80|0)&p)+772>>2];a[(C&n)+3>>0]=1}if(Uu(B)|0)wh(ea,76,A,N,0)|0;do if((Bu(B,a[(Ma&n)>>0]|0)|0)<<24>>24!=65){if(Vu(B,a[(Ma&n)>>0]|0)|0)break;Wu(ja,A,1,Ma)}while(0);h=h+1|0}else{if(!(H<<24>>24))break;wh(ea,28,0,M+h|0,0)|0;D=0;h=h+1|0}while(0);mg(ha,L);c[(k+(va*80|0)&p)+788>>2]=c[(ea&p)+32>>2];if(h)xh(ea,wh(ea,d[((D|ba<<1)&n)+33552>>0]|0,X,N,M)|0,h,-14);Ru(u,S);Ru(u,P);do if(!y){h=c[(V&p)+12>>2]|0;if(!(a[(h&n)+44>>0]&32)){ca=ja+72|0;da=(c[(ca&p)>>2]|0)+1|0;c[(ca&p)>>2]=da;wh(ea,112,X,da,0)|0;Su(ja,q,-1,da);wh(ea,66,q,da,0)|0;break}if((q|0)==(X|0))break;h=c[(h&p)+8>>2]|0;A:do if(!h)D=0;else while(1){if((a[(h&n)+51>>0]&3)==2){D=h;break A}h=c[(h&p)+20>>2]|0;if(!h){D=0;break}}while(0);I=D+46|0;w=b[(I&o)>>1]|0;h=w&65535;B=ja+60|0;A=c[(B&p)>>2]|0;z=ja+56|0;v=c[(z&p)>>2]|0;if((v|0)<(h|0)){da=ja+72|0;A=c[(da&p)>>2]|0;c[(da&p)>>2]=A+h;A=A+1|0}else{c[(B&p)>>2]=A+h;c[(z&p)>>2]=v-h}if(w<<16>>16){v=D+4|0;w=V+48|0;z=V+4|0;E=0;do{D=b[((c[(v&p)>>2]|0)+(E<<1)&o)>>1]|0;h=b[(w&o)>>1]|0;B:do if(!(h<<16>>16))h=-1;else{C=c[(z&p)>>2]|0;B=h&65535;h=0;while(1){if((b[(C+(h<<1)&o)>>1]|0)==D<<16>>16)break B;h=h+1|0;if((h|0)>=(B|0)){h=-1;break}}}while(0);wh(ea,47,X,h<<16>>16,E+A|0)|0;E=E+1|0;h=e[(I&o)>>1]|0}while((E|0)<(h|0))}xh(ea,wh(ea,68,q,ga,A)|0,h,-14)}while(0);A=c[(W&p)>>2]|0;do if(!(A&4096)){z=k+(va*80|0)+781|0;if(!ba){a[(z&n)>>0]=9;break}else{a[(z&n)>>0]=8;break}}else a[(k+(va*80|0)&n)+781>>0]=-100;while(0);c[(k+(va*80|0)&p)+784>>2]=X;a[(k+(va*80|0)&n)+782>>0]=A>>>16&1;if(A&15){xa=459;break}a[(k+(va*80|0)&n)+783>>0]=1;xa=459;break}if(!(F&8192))if(!(D&8)){a[(k+(va*80|0)&n)+781>>0]=a[(ba&n)+33560>>0]|0;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=(wh(ea,d[(ba&n)+33568>>0]|0,q,J,0)|0)+1;a[(k+(va*80|0)&n)+783>>0]=1;xa=459;break}else{a[(k+(va*80|0)&n)+781>>0]=-100;xa=459;break}J=ja+68|0;aa=c[(J&p)>>2]|0;c[(J&p)>>2]=aa+1;_=ja+72|0;$=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=$;ba=xs(ea)|0;Z=c[(I+(K*72|0)&p)+24>>2]|0;l=c[(c[(N&p)+48>>2]&p)>>2]|0;S=c[(l&p)+12>>2]|0;a[(k+(va*80|0)&n)+781>>0]=18;c[(k+(va*80|0)&p)+784>>2]=$;D=a[(Ba&n)>>0]|0;do if((D&255)>1){I=(D&255)-va|0;F=I+-1|0;E=mh(ha,(F*72|0)+80|0,0)|0;if(!E)break z;D=I&255;c[(E&p)+4>>2]=D;c[(E&p)>>2]=D;D=E+8|0;K=D+0|0;C=Q+0|0;h=K+72|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));H=c[(Ca&p)>>2]|0;if((I|0)<2){Y=E;break}else I=1;while(1){K=D+(I*72|0)+0|0;C=H+((d[(k+((I+va|0)*80|0)&n)+780>>0]|0)*72|0)+8|0;h=K+72|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));if((I|0)<(F|0))I=I+1|0;else{Y=E;break}}}else Y=c[(Ca&p)>>2]|0;while(0);if(!(b[(Ea&o)>>1]&8)){if(!(a[(Z&n)+44>>0]&32)){D=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=D;wh(ea,28,0,D,0)|0}else{D=c[(Z&p)+8>>2]|0;C:do if(!D)D=0;else while(1){if((a[(D&n)+51>>0]&3)==2)break C;D=c[(D&p)+20>>2]|0;if(!D){D=0;break}}while(0);X=c[(J&p)>>2]|0;c[(J&p)>>2]=X+1;wh(ea,57,X,e[(D&o)+46>>1]|0,0)|0;W=c[(O&p)>>2]|0;xh(W,-1,hs(ja,D)|0,-6);D=X}W=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=W}else{W=0;D=0}X=wh(ea,25,0,$,0)|0;C=c[(ya&p)>>2]|0;do if((C|0)>1){E=0;I=0;do{H=c[(za&p)>>2]|0;V=H+(E*48|0)|0;F=c[(V&p)>>2]|0;do if((V|0)!=(l|0)){if(c[(F&p)+4>>2]&1)break;if(b[(H+(E*48|0)&o)+20>>1]&2)break;if(!(b[(H+(E*48|0)&o)+18>>1]&4095))break;I=ss(ha,I,Mr(ha,F,0,0)|0)|0;C=c[(ya&p)>>2]|0}while(0);E=E+1|0}while((E|0)<(C|0));C=I;if(!C){V=0;break}V=Zq(ja,72,0,C,0)|0}else V=0;while(0);U=S+12|0;do if((c[(U&p)>>2]|0)>0){x=S+20|0;w=(V|0)==0;v=Z+44|0;z=ea+32|0;A=ea+4|0;C=ea+24|0;E=Z+8|0;F=ja+60|0;H=ja+56|0;I=V+12|0;T=0;B=0;h=0;y=240;while(1){K=c[(x&p)>>2]|0;if((c[(K+(T*48|0)&p)+8>>2]|0)!=(q|0)?(b[(K+(T*48|0)&o)+18>>1]&512)==0:0)K=y;else xa=407;do if((xa|0)==407){xa=0;K=c[(K+(T*48|0)&p)>>2]|0;do if(!w){if(c[(K&p)+4>>2]&1)break;c[(I&p)>>2]=K;K=V}while(0);L=Vs(ja,Y,K,0,0,y,aa)|0;if(!L){K=y;break}Pu(ja,Y,L+736|0,va,d[(ca&n)>>0]|0,0);do if(!(b[(Ea&o)>>1]&8)){O=(T|0)==((c[(U&p)>>2]|0)+-1|0)?-1:T;do if(!(a[(v&n)>>0]&32)){J=wh(ea,130,D,0,ct(ja,Z,-1,q,W,0)|0)|0;xh(ea,J,O,-14)}else{K=c[(E&p)>>2]|0;D:do if(!K)K=0;else while(1){if((a[(K&n)+51>>0]&3)==2)break D;K=c[(K&p)+20>>2]|0;if(!K){K=0;break}}while(0);P=b[(K&o)+46>>1]|0;M=P&65535;S=c[(F&p)>>2]|0;Q=c[(H&p)>>2]|0;if((Q|0)<(M|0)){N=c[(_&p)>>2]|0;c[(_&p)>>2]=N+M;N=N+1|0}else{c[(F&p)>>2]=S+M;c[(H&p)>>2]=Q-M;N=S}if(P<<16>>16){Q=K+4|0;S=0;do{ct(ja,Z,b[((c[(Q&p)>>2]|0)+(S<<1)&o)>>1]|0,q,S+N|0,0)|0;S=S+1|0}while((S|0)<(M|0))}S=(O|0)!=0;if(S){J=wh(ea,69,D,0,N)|0;xh(ea,J,M,-14);if((O|0)>-1)xa=426}else{J=0;xa=426}do if((xa|0)==426){xa=0;wh(ea,49,N,M,W)|0;wh(ea,110,D,W,0)|0;if(!S)break;O=c[(A&p)>>2]|0;if(!O)break;a[(O+(((c[(z&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16}while(0);dt(ja,N,M);if((c[(H&p)>>2]|0)>=(M|0))break;c[(H&p)>>2]=M;c[(F&p)>>2]=N}while(0);wh(ea,17,$,ba,0)|0;if(!J)break;K=c[(z&p)>>2]|0;if(K>>>0>J>>>0)c[((c[(A&p)>>2]|0)+(J*20|0)&p)+8>>2]=K;c[((c[(C&p)>>2]|0)&p)+88>>2]=K+-1}else wh(ea,17,$,ba,0)|0;while(0);h=(a[(L&n)+39>>0]|0)==0?h:1;K=c[(L&p)+800>>2]|0;do if(!(c[(K&p)+36>>2]&512)){B=0;K=y}else{if((T|0)!=0?(c[(K&p)+28>>2]|0)!=(B|0):0){B=0;K=y;break}B=c[(K&p)+28>>2]|0;if((a[(v&n)>>0]&32)!=0?(a[(B&n)+51>>0]&3)==2:0){B=0;K=y;break}K=(y&65535|4096)&65535}while(0);Xs(L)}while(0);T=T+1|0;if((T|0)>=(c[(U&p)>>2]|0))break;else y=K}c[(k+(va*80|0)&p)+792>>2]=B;if(!B){v=h;break}c[(k+(va*80|0)&p)+744>>2]=aa;v=h}else{c[(k+(va*80|0)&p)+792>>2]=0;v=0}while(0);if(V){c[(V&p)+12>>2]=0;Gk(ha,V)}z=ea+32|0;h=c[(z&p)>>2]|0;if(h>>>0>X>>>0)c[((c[(ea&p)+4>>2]|0)+(X*20|0)&p)+4>>2]=h;wh(ea,16,0,c[(da&p)>>2]|0,0)|0;B=c[(ea&p)+24>>2]|0;A=~ba;do if((ba|0)<0){h=c[(B&p)+112>>2]|0;if(!h)break;c[(h+(A<<2)&p)>>2]=c[(z&p)>>2]}while(0);c[(B&p)+88>>2]=(c[(z&p)>>2]|0)+-1;if((d[(Ba&n)>>0]|0)>1)mg(ha,Y);if(v){xa=459;break}Ru(u,l);xa=459}else{xa=c[(I+(K*72|0)&p)+36>>2]|0;wh(ea,20,xa,0,c[(I+(K*72|0)&p)+32>>2]|0)|0;c[(k+(va*80|0)&p)+788>>2]=wh(ea,22,xa,J,0)|0;a[(k+(va*80|0)&n)+781>>0]=16;xa=459}while(0);if((xa|0)==459){xa=0;h=c[(ya&p)>>2]|0;do if((h|0)>0){x=k+(va*80|0)+772|0;y=ea+32|0;C=ea+4|0;D=ea+24|0;w=c[(za&p)>>2]|0;while(1){v=w+20|0;B=b[(v&o)>>1]|0;do if(!(B&6)){da=w+40|0;ca=ia;if(!((c[(ca&p)>>2]&c[(da&p)>>2]|0)==0?(c[(ca&p)+4>>2]&c[(da&p)+4>>2]|0)==0:0)){a[(ma&n)>>0]=1;break}A=c[(w&p)>>2]|0;if((c[(u&p)>>2]|0)!=0?(c[(A&p)+4>>2]&1|0)==0:0)break;do if(!(B&512))gt(ja,A,ga,16);else{z=wh(ea,46,c[(x&p)>>2]|0,0,0)|0;gt(ja,A,ga,16);if(!z)break;B=c[(y&p)>>2]|0;if(B>>>0>z>>>0)c[((c[(C&p)>>2]|0)+(z*20|0)&p)+8>>2]=B;c[((c[(D&p)>>2]|0)&p)+88>>2]=B+-1}while(0);b[(v&o)>>1]=e[(v&o)>>1]|4}while(0);h=h+-1|0;if((h|0)<=0)break;else w=w+48|0}x=c[(ya&p)>>2]|0;if((x|0)<=0){xa=475;break}z=c[(za&p)>>2]|0;while(1){do if(!(b[(z&o)+20>>1]&6)){if((b[(z&o)+18>>1]|0)!=1026)break;if((c[(z&p)+8>>2]|0)!=(q|0))break;if(c[(u&p)>>2]|0)break;B=c[(z&p)>>2]|0;h=Fu(Ia,q,c[(z&p)+12>>2]|0,t,s,3,0)|0;if(!h)break;if(b[(h&o)+20>>1]&4)break;A=mh(ha,48,0)|0;if(!A)break;K=A+0|0;C=(c[(h&p)>>2]|0)+0|0;h=K+48|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));c[(A&p)+12>>2]=c[(B&p)+12>>2];gt(ja,A,ga,16);mg(ha,A)}while(0);x=x+-1|0;if((x|0)<=0)break;else z=z+48|0}}else xa=475;while(0);if((xa|0)==475)xa=0;u=c[(u&p)>>2]|0;do if(u){c[(k+(va*80|0)&p)+764>>2]=c[(ea&p)+32>>2];wh(ea,25,1,u,0)|0;at(ja);u=c[(ya&p)>>2]|0;if((u|0)<=0)break;x=0;w=c[(za&p)>>2]|0;while(1){t=w+20|0;do if(!(b[(t&o)>>1]&6)){ea=w+40|0;da=ia;if(!((c[(da&p)>>2]&c[(ea&p)>>2]|0)==0?(c[(da&p)+4>>2]&c[(ea&p)+4>>2]|0)==0:0))break;gt(ja,c[(w&p)>>2]|0,ga,16);b[(t&o)>>1]=e[(t&o)>>1]|4;u=c[(ya&p)>>2]|0}while(0);x=x+1|0;if((x|0)>=(u|0))break;else w=w+48|0}}while(0);s=ia;t=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0}c[(Da&p)>>2]=c[(wa+(va*80|0)&p)+24>>2];va=va+1|0;if((va|0)>=(r|0))break a}}}while(0);if(Ja)k=0;else{c[(Fa&p)>>2]=c[(Ga&p)>>2];Xu(La,k);k=0}}else{c[(Na&p)>>2]=64;th(f,33504,Na);k=0}while(0);i=Pa;return k|0}function Ws(a){a=a|0;var b=0,c=0,d=0,e=0;e=a<<16>>16;do if(a<<16>>16>=10){a=(e|0)%10|0;b=((a|0)<0)<<31>>31;if(a>>>0>4){c=jw(a|0,b|0,-2,-1)|0;d=G}else{c=((a|0)!=0)<<31>>31;c=jw(c|0,((c|0)<0)<<31>>31|0,a|0,b|0)|0;d=G}b=((e|0)/10|0)<<16;a=b>>16;if((b|0)<=131072){b=jw(c|0,d|0,8,0)|0;a=mw(b|0,G|0,3-a|0)|0;b=G;break}if((b|0)>3932160){b=2147483647;a=-1}else{b=jw(c|0,d|0,8,0)|0;a=iw(b|0,G|0,a+-3|0)|0;b=G}}else{b=0;a=1}while(0);G=b;return a|0}function Xs(e){e=e|0;var f=0,g=0,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,G=0,H=0,I=0,J=0,K=0,L=0;F=c[(e&p)>>2]|0;G=c[(F&p)+8>>2]|0;I=c[(e&p)+4>>2]|0;J=c[(F&p)>>2]|0;at(F);K=e+41|0;g=a[(K&n)>>0]|0;if(!(g<<24>>24))f=G+24|0;else{f=G+24|0;s=G+32|0;u=G+4|0;r=g&255;do{r=r+-1|0;i=c[(e+(r*80|0)&p)+800>>2]|0;D=c[(e+(r*80|0)&p)+760>>2]|0;g=c[(f&p)>>2]|0;h=~D;if((D|0)<0?(v=c[(g&p)+112>>2]|0,(v|0)!=0):0)c[(v+(h<<2)&p)>>2]=c[(s&p)>>2];c[(g&p)+88>>2]=(c[(s&p)>>2]|0)+-1;E=e+(r*80|0)+781|0;h=a[(E&n)>>0]|0;if(h<<24>>24!=-100?(wh(G,h&255,c[(e+(r*80|0)&p)+784>>2]|0,c[(e+(r*80|0)&p)+788>>2]|0,d[(e+(r*80|0)&n)+782>>0]|0)|0,x=c[(u&p)>>2]|0,(x|0)!=0):0)a[(x+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=a[(e+(r*80|0)&n)+783>>0]|0;w=i+36|0;if((c[(w&p)>>2]&2048|0)!=0?(y=e+(r*80|0)+792|0,z=c[(y&p)>>2]|0,(z|0)>0):0){D=c[(e+(r*80|0)&p)+752>>2]|0;k=c[(f&p)>>2]|0;h=~D;if((D|0)<0?(A=c[(k&p)+112>>2]|0,(A|0)!=0):0){c[(A+(h<<2)&p)>>2]=c[(s&p)>>2];l=c[(y&p)>>2]|0;j=c[(s&p)>>2]|0;c[(k&p)+88>>2]=j+-1;g=e+(r*80|0)+796|0;if((l|0)>0)L=16}else{j=c[(s&p)>>2]|0;c[(k&p)+88>>2]=j+-1;g=e+(r*80|0)+796|0;l=z;L=16}if((L|0)==16){L=0;h=k;q=l;m=(c[(g&p)>>2]|0)+((l+-1|0)*12|0)|0;while(1){l=m+4|0;k=c[(l&p)>>2]|0;i=k+1|0;if(j>>>0>i>>>0)c[((c[(u&p)>>2]|0)+(i*20|0)&p)+8>>2]=j;c[(h&p)+88>>2]=j+-1;wh(G,d[(m&n)+8>>0]|0,c[(m&p)>>2]|0,k,0)|0;l=(c[(l&p)>>2]|0)+-1|0;j=c[(s&p)>>2]|0;if(j>>>0>l>>>0)c[((c[(u&p)>>2]|0)+(l*20|0)&p)+8>>2]=j;h=c[(f&p)>>2]|0;c[(h&p)+88>>2]=j+-1;q=q+-1|0;if((q|0)<=0)break;else m=m+-12|0}}mg(J,c[(g&p)>>2]|0)}D=c[(e+(r*80|0)&p)+748>>2]|0;i=c[(f&p)>>2]|0;h=~D;if((D|0)<0?(t=c[(i&p)+112>>2]|0,(t|0)!=0):0)c[(t+(h<<2)&p)>>2]=c[(s&p)>>2];h=c[(s&p)>>2]|0;c[(i&p)+88>>2]=h+-1;i=e+(r*80|0)+756|0;g=c[(i&p)>>2]|0;if(g){wh(G,16,0,g,0)|0;i=c[(i&p)>>2]|0;h=c[(s&p)>>2]|0;if(h>>>0>i>>>0)c[((c[(u&p)>>2]|0)+(i*20|0)&p)+8>>2]=h;j=h+-1|0;g=(c[(f&p)>>2]|0)+88|0;c[(g&p)>>2]=j;i=i+-2|0;if(h>>>0>i>>>0)c[((c[(u&p)>>2]|0)+(i*20|0)&p)+8>>2]=h;c[(g&p)>>2]=j}i=c[(e+(r*80|0)&p)+776>>2]|0;if(i){if(!(a[((c[(G&p)>>2]|0)&n)+65>>0]|0))h=(c[(u&p)>>2]|0)+((((i|0)<1?h:i)+-1|0)*20|0)|0;else h=29120;wh(G,(c[(h&p)+4>>2]|0)==0?141:140,c[(e+(r*80|0)&p)+772>>2]|0,i,0)|0}g=c[(e+(r*80|0)&p)+736>>2]|0;if(g){j=wh(G,137,g,0,0)|0;g=c[(w&p)>>2]|0;if(!(g&64)){wh(G,104,c[(I+(r*72|0)&p)+48>>2]|0,0,0)|0;g=c[(w&p)>>2]|0}if(g&512)wh(G,104,c[(e+(r*80|0)&p)+744>>2]|0,0,0)|0;g=c[(e+(r*80|0)&p)+764>>2]|0;if((a[(E&n)>>0]|0)==18)wh(G,17,c[(e+(r*80|0)&p)+784>>2]|0,g,0)|0;else wh(G,16,0,g,0)|0;g=c[(s&p)>>2]|0;if(g>>>0>j>>>0)c[((c[(u&p)>>2]|0)+(j*20|0)&p)+8>>2]=g;c[((c[(f&p)>>2]|0)&p)+88>>2]=g+-1}}while((r|0)>0)}D=c[(e&p)+52>>2]|0;g=c[(f&p)>>2]|0;f=~D;if((D|0)<0?(B=c[(g&p)+112>>2]|0,(B|0)!=0):0)c[(B+(f<<2)&p)>>2]=c[(G&p)+32>>2];E=G+32|0;c[(g&p)+88>>2]=(c[(E&p)>>2]|0)+-1;if(a[(K&n)>>0]|0){x=e+34|0;y=e+38|0;z=e+64|0;A=J+65|0;B=G+4|0;C=0;D=e+736|0;while(1){i=d[(D&n)+44>>0]|0;j=c[(I+(i*72|0)&p)+24>>2]|0;h=c[(D&p)+64>>2]|0;if((a[(I+(i*72|0)&n)+45>>0]&4)!=0?(a[(A&n)>>0]|0)==0:0){k=c[(E&p)>>2]|0;h=c[(D&p)+32>>2]|0;if(!(a[((c[(G&p)>>2]|0)&n)+65>>0]|0))g=(c[(B&p)>>2]|0)+(((h|0)<0?k+-1|0:h)*20|0)|0;else g=29120;if((h|0)<(k|0)){l=c[(D&p)+4>>2]|0;j=I+(i*72|0)+40|0;i=g;while(1){g=i+4|0;do if((c[(g&p)>>2]|0)==(l|0)){f=a[(i&n)>>0]|0;if(f<<24>>24==103){a[(i&n)>>0]=28;c[(g&p)>>2]=0;c[(i&p)+12>>2]=0;break}else if(f<<24>>24==47){a[(i&n)>>0]=33;v=i+8|0;c[(g&p)>>2]=(c[(j&p)>>2]|0)+(c[(v&p)>>2]|0);w=i+12|0;c[(v&p)>>2]=c[(w&p)>>2];c[(w&p)>>2]=0;break}else break}while(0);h=h+1|0;if((h|0)==(k|0))break;else i=i+20|0}}}else L=64;do if((L|0)==64){L=0;w=j+44|0;if(((a[(w&n)>>0]&2)==0?(c[(j&p)+12>>2]|0)==0:0)?(b[(x&o)>>1]&16)==0:0){g=c[(h&p)+36>>2]|0;if((a[(y&n)>>0]|0)==0&(g&64|0)==0)wh(G,61,c[(I+(i*72|0)&p)+48>>2]|0,0,0)|0;if((g&17152|0)==512?(H=c[(D&p)+8>>2]|0,(H|0)!=(c[(z&p)>>2]|0)):0)wh(G,61,H,0,0)|0}g=c[(h&p)+36>>2]|0;if(!(g&576)){if(!(g&8192))break;g=D+56|0}else g=h+28|0;h=c[(g&p)>>2]|0;if((h|0)!=0?(a[(A&n)>>0]|0)==0:0){u=c[(E&p)>>2]|0;l=c[(D&p)+32>>2]|0;if(!(a[((c[(G&p)>>2]|0)&n)+65>>0]|0))k=(c[(B&p)>>2]|0)+(((l|0)<0?u+-1|0:l)*20|0)|0;else k=29120;if((l|0)<(u|0)){v=h+48|0;s=h+4|0;t=D+8|0;r=j+8|0;f=c[(D&p)+4>>2]|0;g=k;while(1){h=g+4|0;a:do if((c[(h&p)>>2]|0)==(f|0)){k=a[(g&n)>>0]|0;if(k<<24>>24==103){c[(h&p)>>2]=c[(t&p)>>2];a[(g&n)>>0]=112;break}else if(k<<24>>24!=47)break;i=g+8|0;k=c[(i&p)>>2]|0;if(a[(w&n)>>0]&32){j=r;while(1){j=c[(j&p)>>2]|0;if((a[(j&n)+51>>0]&3)==2)break;else j=j+20|0}k=b[((c[(j&p)+4>>2]|0)+(k<<1)&o)>>1]|0}q=k&65535;k=b[(v&o)>>1]|0;if(k<<16>>16){j=c[(s&p)>>2]|0;m=k&65535;k=0;while(1){if((b[(j+(k<<1)&o)>>1]|0)==q<<16>>16)break;k=k+1|0;if((k|0)>=(m|0))break a}if((k&65535)<<16>>16>-1){c[(i&p)>>2]=k<<16>>16;c[(h&p)>>2]=c[(t&p)>>2]}}}while(0);l=l+1|0;if((l|0)==(u|0))break;else g=g+20|0}}}}while(0);C=C+1|0;if((C|0)>=(d[(K&n)>>0]|0))break;else D=D+80|0}}c[(F&p)+424>>2]=c[(e&p)+56>>2];Xu(J,e);return}function Ys(a,b){a=a|0;b=b|0;var d=0,e=0;if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){Yu(a,c[(e&p)>>2]|0);d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0))break;else e=e+20|0}}return}function Zs(e,f){e=e|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;x=i;i=i+16|0;if((i|0)>=(j|0))fa();u=x;h=c[(e&p)+24>>2]|0;v=c[(h&p)>>2]|0;m=c[(h&p)+4>>2]|0;w=c[(h&p)+12>>2]|0;g=d[(f&n)>>0]|0;a:do if((g|0)==154|(g|0)==156)if((m|0)!=0?(l=c[(m&p)>>2]|0,(l|0)>0):0){s=f+28|0;r=c[(s&p)>>2]|0;g=0;h=m+8|0;while(1){if((r|0)==(c[(h&p)+40>>2]|0))break;g=g+1|0;if((g|0)>=(l|0)){e=1;break a}else h=h+72|0}q=w+28|0;k=w+32|0;h=c[(k&p)>>2]|0;b:do if((h|0)>0){m=f+32|0;e=0;l=c[(q&p)>>2]|0;while(1){if((c[(l&p)+4>>2]|0)==(r|0)?(c[(l&p)+8>>2]|0)==(b[(m&o)>>1]|0):0)break b;e=e+1|0;if((e|0)<(h|0))l=l+24|0;else break}}else e=0;while(0);c:do if((e|0)>=(h|0)){h=Ht(c[(v&p)>>2]|0,c[(q&p)>>2]|0,24,k,u)|0;c[(q&p)>>2]=h;e=c[(u&p)>>2]|0;if((e|0)>-1){c[(h+(e*24|0)&p)>>2]=c[(f&p)+44>>2];k=c[(s&p)>>2]|0;c[(h+(e*24|0)&p)+4>>2]=k;l=b[(f&o)+32>>1]|0;c[(h+(e*24|0)&p)+8>>2]=l<<16>>16;s=v+72|0;m=(c[(s&p)>>2]|0)+1|0;c[(s&p)>>2]=m;c[(h+(e*24|0)&p)+16>>2]=m;m=h+(e*24|0)+12|0;c[(m&p)>>2]=-1;c[(h+(e*24|0)&p)+20>>2]=f;h=c[(w&p)+24>>2]|0;d:do if((h|0)!=0?(t=c[(h&p)>>2]|0,(t|0)>0):0){g=0;h=c[(h&p)+4>>2]|0;while(1){s=c[(h&p)>>2]|0;if(((a[(s&n)>>0]|0)==-102?(c[(s&p)+28>>2]|0)==(k|0):0)?(b[(s&o)+32>>1]|0)==l<<16>>16:0)break;g=g+1|0;if((g|0)>=(t|0))break d;else h=h+20|0}c[(m&p)>>2]=g;if((g|0)>=0)break c}while(0);s=w+12|0;t=c[(s&p)>>2]|0;c[(s&p)>>2]=t+1;c[(m&p)>>2]=t}}while(0);c[(f&p)+40>>2]=w;a[(f&n)>>0]=-100;b[(f&o)+34>>1]=e;e=1}else e=1;else if(((g|0)==155?(b[(h&o)+28>>1]&8)==0:0)?(c[(e&p)+16>>2]|0)==(d[(f&n)+38>>0]|0):0){l=w+40|0;m=w+44|0;g=c[(m&p)>>2]|0;e:do if((g|0)>0){e=0;h=c[(l&p)>>2]|0;while(1){if(!(Cu(c[(h&p)>>2]|0,f,-1)|0))break e;e=e+1|0;if((e|0)<(g|0))h=h+16|0;else break}}else e=0;while(0);do if((e|0)>=(g|0)){k=c[(v&p)>>2]|0;q=a[(k&n)+62>>0]|0;k=Ht(k,c[(l&p)>>2]|0,16,m,u)|0;c[(l&p)>>2]=k;e=c[(u&p)>>2]|0;if((e|0)>-1){c[(k+(e<<4)&p)>>2]=f;l=v+72|0;m=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=m;c[(k+(e<<4)&p)+8>>2]=m;m=c[(v&p)>>2]|0;l=c[(f&p)+8>>2]|0;if(!l)g=0;else{h=l;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;g=h-l&1073741823}h=c[(f&p)+20>>2]|0;if(!h)h=0;else h=c[(h&p)>>2]|0;c[(k+(e<<4)&p)+4>>2]=Sh(m,l,g,h,q,0)|0;if(!(c[(f&p)+4>>2]&16)){c[(k+(e<<4)&p)+12>>2]=-1;break}else{s=v+68|0;t=c[(s&p)>>2]|0;c[(s&p)>>2]=t+1;c[(k+(e<<4)&p)+12>>2]=t;break}}}while(0);b[(f&o)+34>>1]=e;c[(f&p)+40>>2]=w;e=1}else e=0;while(0);i=x;return e|0}function _s(a,b){a=a|0;b=b|0;return 0}function $s(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((a[(b&n)+450>>0]|0)==2){g=c[(b&p)+8>>2]|0;h=c[(b&p)>>2]|0;c[(e&p)>>2]=d;e=uh(h,35e3,e)|0;xh(g,wh(g,157,c[(b&p)+464>>2]|0,0,0)|0,e,-1)}i=f;return}function at(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=b+19|0;i=0;j=b+116|0;while(1){e=j+12|0;f=c[(e&p)>>2]|0;if(f){g=j+6|0;if(a[(g&n)>>0]|0){h=a[(d&n)>>0]|0;if((h&255)<8){a[(d&n)>>0]=h+1<<24>>24;c[(b+((h&255)<<2)&p)+24>>2]=f}a[(g&n)>>0]=0}c[(e&p)>>2]=0}i=i+1|0;if((i|0)==10)break;else j=j+20|0}return}function bt(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+32|0;if((i|0)>=(j|0))fa();z=B;g=f&255;s=34-(g&1)|0;v=c[(d&p)>>2]|0;if(!(a[(b&n)+23>>0]|0))f=g&253;if((v|0)>0){h=(f&2)==0;k=b+8|0;l=(s|0)==33;m=z+20|0;o=z+4|0;q=z+24|0;r=0;d=c[(d&p)+4>>2]|0;while(1){g=c[(d&p)>>2]|0;if(!h?(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[(m&n)>>0]=1,c[(z&p)>>2]=78,c[(o&p)>>2]=79,c[(q&p)>>2]=0,rs(z,g)|0,(a[(m&n)>>0]|0)!=0):0)Gt(b,g,r+e|0,0);else A=8;do if((A|0)==8?(A=0,t=r+e|0,u=is(b,g,t)|0,(u|0)!=(t|0)):0){f=c[(k&p)>>2]|0;if(l){if(!(a[((c[(f&p)>>2]|0)&n)+65>>0]|0))g=(c[(f&p)+4>>2]|0)+(((c[(f&p)+32>>2]|0)+-1|0)*20|0)|0;else g=29120;if(((a[(g&n)>>0]|0)==33?(w=g+12|0,x=c[(w&p)>>2]|0,((c[(g&p)+4>>2]|0)+1+x|0)==(u|0)):0)?(y=x+1|0,(y+(c[(g&p)+8>>2]|0)|0)==(t|0)):0){c[(w&p)>>2]=y;break}}wh(f,s,u,t,0)|0}while(0);r=r+1|0;if((r|0)==(v|0))break;else d=d+20|0}}i=B;return}function ct(d,e,f,g,h,i){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,q=0;q=c[(d&p)+8>>2]|0;j=d+116|0;m=0;k=j;while(1){l=c[(k&p)+12>>2]|0;if(((l|0)>0?(c[(k&p)>>2]|0)==(g|0):0)?(b[(k&o)+4>>1]|0)==(f|0):0){h=l;m=5;break}m=m+1|0;if((m|0)>=10){m=10;break}else k=k+20|0}do if((m|0)==5){q=d+104|0;i=c[(q&p)>>2]|0;c[(q&p)>>2]=i+1;c[(k&p)+16>>2]=i;k=0;while(1){if((c[(j&p)+12>>2]|0)==(h|0))a[(j&n)+6>>0]=0;k=k+1|0;if((k|0)==10)break;else j=j+20|0}}else if((m|0)==10){nt(q,e,g,f,h);if(!(i<<24>>24)){Su(d,g,f,h);break}j=c[(q&p)+4>>2]|0;if(j)a[(j+(((c[(q&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=i}while(0);return h|0}function dt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=d+-1+e|0;g=b+19|0;k=0;l=b+116|0;while(1){h=l+12|0;i=c[(h&p)>>2]|0;if(!((i|0)<(d|0)|(i|0)>(e|0))){j=l+6|0;if(a[(j&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[(j&n)>>0]=0}c[(h&p)>>2]=0}k=k+1|0;if((k|0)==10)break;else l=l+20|0}return}function et(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,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=c[(d&p)+8>>2]|0;a[(e&n)>>0]=1;v=e+44|0;if((c[(v&p)>>2]|0)>0){w=D+4|0;y=d+56|0;z=d+60|0;r=D+24|0;s=D+32|0;t=e+36|0;u=d+72|0;A=0;B=c[(e&p)+40>>2]|0;f=0;while(1){k=c[((c[(B&p)>>2]|0)&p)+20>>2]|0;if(!k){g=0;i=0}else{g=c[(k&p)>>2]|0;i=c[(z&p)>>2]|0;h=c[(y&p)>>2]|0;if((h|0)<(g|0)){i=c[(u&p)>>2]|0;c[(u&p)>>2]=i+g;i=i+1|0}else{c[(z&p)>>2]=i+g;c[(y&p)>>2]=h-g}bt(d,k,i,1)}h=B+12|0;if((c[(h&p)>>2]|0)>-1){q=xs(D)|0;zu(d,c[(h&p)>>2]|0,q,1,i)}else q=0;m=B+4|0;h=c[(m&p)>>2]|0;if(b[(h&o)+2>>1]&32){if((g|0)>0){l=0;k=c[(k&p)+4>>2]|0;while(1){h=cu(d,c[(k&p)>>2]|0)|0;l=l+1|0;j=(h|0)!=0;if(!((l|0)<(g|0)&(j^1)))break;else k=k+20|0}if(!j)C=15}else C=15;if((C|0)==15){C=0;h=c[((c[(d&p)>>2]|0)&p)+8>>2]|0}if(!f)if(!(c[(t&p)>>2]|0))f=0;else{f=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=f}xh(D,wh(D,36,f,0,0)|0,h,-4);h=c[(m&p)>>2]|0}xh(D,wh(D,10,0,i,c[(B&p)+8>>2]|0)|0,h,-5);h=c[(w&p)>>2]|0;if(h)a[(h+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=g;dt(d,i,g);dt(d,i,g);if((c[(y&p)>>2]|0)<(g|0)){c[(y&p)>>2]=g;c[(z&p)>>2]=i}if(q){i=c[(r&p)>>2]|0;h=~q;if((q|0)<0?(x=c[(i&p)+112>>2]|0,(x|0)!=0):0)c[(x+(h<<2)&p)>>2]=c[(s&p)>>2];c[(i&p)+88>>2]=(c[(s&p)>>2]|0)+-1;at(d)}A=A+1|0;if((A|0)>=(c[(v&p)>>2]|0))break;else B=B+16|0}if(f)i=wh(D,45,f,0,0)|0;else i=0}else i=0;at(d);f=e+36|0;if((c[(f&p)>>2]|0)>0){g=0;h=c[(e&p)+28>>2]|0;while(1){Rq(d,c[(h&p)+20>>2]|0,c[(h&p)+16>>2]|0);g=g+1|0;if((g|0)>=(c[(f&p)>>2]|0))break;else h=h+24|0}}a[(e&n)>>0]=0;at(d);if(i){f=c[(D&p)+32>>2]|0;if(f>>>0>i>>>0)c[((c[(D&p)+4>>2]|0)+(i*20|0)&p)+8>>2]=f;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=f+-1}return}function ft(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[(a&p)+8>>2]|0;e=b+44|0;if((c[(e&p)>>2]|0)>0){f=0;b=c[(b&p)+40>>2]|0;while(1){a=c[((c[(b&p)>>2]|0)&p)+20>>2]|0;if(!a)a=0;else a=c[(a&p)>>2]|0;g=c[(b&p)+4>>2]|0;xh(d,wh(d,142,c[(b&p)+8>>2]|0,a,0)|0,g,-5);f=f+1|0;if((f|0)>=(c[(e&p)>>2]|0))break;else b=b+16|0}}return}function gt(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;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|(e|0)==0)){s=d[(e&n)>>0]|0;h=s^1;a:do switch(s|0){case 75:{if(g){fu(b,e,f,f);break a}k=xs(m)|0;fu(b,e,f,k);h=c[(m&p)+24>>2]|0;f=~k;if((k|0)<0?(l=c[(h&p)+112>>2]|0,(l|0)!=0):0)c[(l+(f<<2)&p)>>2]=c[(m&p)+32>>2];c[(h&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;break}case 71:{l=xs(m)|0;Zu(b,c[(e&p)+12>>2]|0,l,g^16);h=b+100|0;c[(h&p)>>2]=(c[(h&p)>>2]|0)+1;gt(b,c[(e&p)+16>>2]|0,f,g);f=c[(m&p)+24>>2]|0;h=~l;if((l|0)<0?(k=c[(f&p)+112>>2]|0,(k|0)!=0):0)c[(k+(h<<2)&p)>>2]=c[(m&p)+32>>2];c[(f&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;bu(b);break}case 72:{gt(b,c[(e&p)+12>>2]|0,f,g);m=b+100|0;c[(m&p)>>2]=(c[(m&p)>>2]|0)+1;gt(b,c[(e&p)+16>>2]|0,f,g);bu(b);break}case 79:case 78:case 83:case 80:case 81:case 82:{s=e+12|0;l=$t(b,c[(s&p)>>2]|0,o)|0;k=e+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(s&p)>>2]|0,c[(k&p)>>2]|0,h,l,m,f,g);break}case 148:case 73:{g=e+12|0;l=$t(b,c[(g&p)>>2]|0,o)|0;k=e+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(g&p)>>2]|0,c[(k&p)>>2]|0,(a[(e&n)>>0]|0)==73?78:79,l,m,f,128);break}case 19:{Zu(b,c[(e&p)+12>>2]|0,f,g);break}case 77:case 76:{wh(m,h,$t(b,c[(e&p)+12>>2]|0,o)|0,f,0)|0;break}case 74:{_u(b,e,f,0,g);break}default:{if(mu(e)|0){wh(m,16,0,f,0)|0;break a}if(!($u(e)|0))wh(m,46,$t(b,e,o)|0,f,(g|0)!=0&1)|0}}while(0);_r(b,c[(o&p)>>2]|0);_r(b,c[(q&p)>>2]|0)}i=r;return}function ht(a,b){a=a|0;b=b|0;var d=0,e=0,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)+8>>2]|0;g=b+44|0;if((c[(g&p)>>2]|0)!=(0-(c[(b&p)+32>>2]|0)|0)?(wh(f,28,0,c[(b&p)+16>>2]|0,c[(b&p)+20>>2]|0)|0,(c[(g&p)>>2]|0)>0):0){h=0;e=c[(b&p)+40>>2]|0;while(1){b=e+12|0;do if((c[(b&p)>>2]|0)>-1){d=c[((c[(e&p)>>2]|0)&p)+20>>2]|0;if((d|0)!=0?(c[(d&p)>>2]|0)==1:0){d=Us(a,d,0,0)|0;xh(f,wh(f,57,c[(b&p)>>2]|0,0,0)|0,d,-6);break}th(a,34944,k);c[(b&p)>>2]=-1}while(0);h=h+1|0;if((h|0)>=(c[(g&p)>>2]|0))break;else e=e+16|0}}i=l;return}function it(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((b|0)>0){e=wh(a,138,b,0,-1)|0;wh(a,16,0,d,0)|0;b=c[(a&p)+32>>2]|0;if(b>>>0>e>>>0)c[((c[(a&p)+4>>2]|0)+(e*20|0)&p)+8>>2]=b;c[((c[(a&p)+24>>2]|0)&p)+88>>2]=b+-1}return}function jt(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var h=0;if((c[((c[(a&p)>>2]|0)&p)+24>>2]&8388608|0)!=0?(h=As(a,b)|0,(h|0)!=0):0){a=0;b=h;do{if((d[(b&n)+8>>0]|0|0)==(e|0)?(av(c[(b&p)+16>>2]|0,f)|0)!=0:0)a=d[(b&n)+9>>0]|0|a;b=c[(b&p)+32>>2]|0}while((b|0)!=0)}else{a=0;h=0}if(g)c[(g&p)>>2]=a;return ((a|0)!=0?h:0)|0}function kt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;h=a[(d&n)+44>>0]|0;if(h&16){g=c[(b&p)>>2]|0;f=d+60|0;while(1){f=c[(f&p)>>2]|0;if((c[(f&p)>>2]|0)==(g|0))break;else f=f+24|0}if(!(c[((c[(c[(f&p)+4>>2]&p)>>2]|0)&p)+52>>2]|0))g=8;else g=5}else g=5;do if((g|0)==5){if(((h&1)!=0?(c[((c[(b&p)>>2]|0)&p)+24>>2]&2048|0)==0:0)?(a[(b&n)+18>>0]|0)==0:0){g=8;break}if((e|0)==0?(c[(d&p)+12>>2]|0)!=0:0){c[(k&p)>>2]=c[(d&p)>>2];th(b,34456,k);f=1}else f=0}while(0);if((g|0)==8){c[(k&p)>>2]=c[(d&p)>>2];th(b,34424,k);f=1}i=l;return f|0}function lt(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+32|0;if((i|0)>=(j|0))fa();q=r;o=c[(b&p)>>2]|0;h=c[(d&p)+68>>2]|0;a:do if(h){g=c[(o&p)+20>>2]|0;if((g|0)>0){l=c[(o&p)+16>>2]|0;m=0;while(1){k=m+1|0;if((c[(l+(m<<4)&p)+12>>2]|0)==(h|0)){k=m;break a}if((k|0)<(g|0))m=k;else break}}else k=0}else k=-1e6;while(0);g=Mr(o,e,0,0)|0;h=pr(o,0,0,0)|0;if(h){c[(h&p)+16>>2]=kh(o,c[(d&p)>>2]|0)|0;c[(h&p)+12>>2]=kh(o,c[((c[(o&p)+16>>2]|0)+(k<<4)&p)>>2]|0)|0}e=kr(b,0,h,g,0,0,0,0,0,0)|0;a[(q&n)>>0]=12;c[(q&p)+4>>2]=f;a[(q&n)+1>>0]=0;c[(q&p)+8>>2]=0;c[(q&p)+12>>2]=0;ir(b,e,q)|0;Mk(o,e,1);i=r;return}function mt(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r+4|0;h=r;a:do if(c[((c[(a&p)>>2]|0)&p)+24>>2]&524288){if(!e){f=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,h)|0;if((f|0)!=0?(c[(f&p)+8>>2]|0)!=0:0)g=1;else g=(c[(d&p)+16>>2]|0)!=0;g=g&1;break}a=c[(d&p)+16>>2]|0;if(a){m=d+36|0;n=(f|0)!=0;do{h=c[(a&p)+20>>2]|0;if((h|0)>0){l=0;do{k=c[(a+(l<<3)&p)+36>>2]|0;if((c[(e+(k<<2)&p)>>2]|0)>-1){g=1;break a}l=l+1|0;if((k|0)==(b[(m&o)>>1]|0)&n){g=1;break a}}while((l|0)<(h|0))}a=c[(a&p)+4>>2]|0}while((a|0)!=0)}h=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,q)|0;if((h|0)!=0?(g=c[(h&p)+8>>2]|0,(g|0)!=0):0)while(1){if(bv(d,g,e,f)|0){g=1;break a}g=c[(g&p)+12>>2]|0;if(!g){g=0;break}}else g=0}else g=0;while(0);i=r;return g|0}function nt(e,f,g,h,i){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0;if((h|0)>=0?(b[(f&o)+36>>1]|0)!=(h|0):0){j=d[(f&n)+44>>0]|0;q=(j&16|0)!=0?150:47;if(!(j&32))j=h;else{j=c[(f&p)+8>>2]|0;a:do if(!j)j=0;else while(1){if((a[(j&n)+51>>0]&3)==2)break a;j=c[(j&p)+20>>2]|0;if(!j){j=0;break}}while(0);m=h&65535;k=b[(j&o)+48>>1]|0;b:do if(!(k<<16>>16))j=-1;else{l=c[(j&p)+4>>2]|0;k=k&65535;j=0;while(1){if((b[(l+(j<<1)&o)>>1]|0)==m<<16>>16)break b;j=j+1|0;if((j|0)>=(k|0)){j=-1;break}}}while(0);j=j<<16>>16}wh(e,q,g,j,i)|0}else wh(e,103,g,i,0)|0;if((h|0)>-1)Nt(e,f,h,i);return}function ot(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=f+16|0;g=c[(j&p)>>2]|0;do if(!g){h=c[(f&p)+12>>2]|0;g=c[(d&p)>>2]|0;i=f+48|0;d=qg((e[(i&o)>>1]|0)+1|0,0)|0;c[(j&p)>>2]=d;if(!d){a[(g&n)+65>>0]=1;g=0;break}if(!(b[(i&o)>>1]|0))g=0;else{f=f+4|0;h=h+4|0;g=0;do{d=b[((c[(f&p)>>2]|0)+(g<<1)&o)>>1]|0;if(d<<16>>16<0)d=68;else d=a[((c[(h&p)>>2]|0)+((d<<16>>16)*24|0)&n)+21>>0]|0;a[((c[(j&p)>>2]|0)+g&n)>>0]=d;g=g+1|0}while((g|0)<(e[(i&o)>>1]|0));d=c[(j&p)>>2]|0}a[(d+g&n)>>0]=0;g=c[(j&p)>>2]|0}while(0);return g|0}function pt(b,d,e,f,g,h,i){b=b|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,o=0,q=0,r=0,s=0,t=0;t=d+44|0;if(!(a[(t&n)>>0]&16)){k=c[(b&p)>>2]|0;m=c[(d&p)+68>>2]|0;a:do if(m){o=c[(k&p)+20>>2]|0;if((o|0)>0){k=c[(k&p)+16>>2]|0;l=0;while(1){j=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(m|0))break a;if((j|0)<(o|0))l=j;else{l=j;break}}}else l=0}else l=-1e6;while(0);s=Oq(b)|0;if((f|0)<0)f=c[(b&p)+68>>2]|0;k=f+1|0;r=(h|0)!=0;if(r)c[(h&p)>>2]=f;do if(!(a[(t&n)>>0]&32)){if((g|0)!=0?(a[(g&n)>>0]|0)==0:0){q=15;break}Qq(b,f,l,d,e)}else q=15;while(0);if((q|0)==15)gs(b,l,c[(d&p)+32>>2]|0,(e|0)==55&1,c[(d&p)>>2]|0);if(i)c[(i&p)>>2]=k;f=c[(d&p)+8>>2]|0;if(!f)j=0;else{m=(g|0)==0;d=b+8|0;o=k;j=0;while(1){k=o+1|0;if((a[(f&n)+51>>0]&3)==2?(a[(t&n)>>0]&32)!=0&r:0)c[(h&p)>>2]=o;j=j+1|0;if(!(!m?(a[(g+j&n)>>0]|0)==0:0)){wh(s,e,o,c[(f&p)+40>>2]|0,l)|0;q=c[(d&p)>>2]|0;xh(q,-1,hs(b,f)|0,-6)}f=c[(f&p)+20>>2]|0;if(!f)break;else o=k}}f=b+68|0;if((k|0)>(c[(f&p)>>2]|0))c[(f&p)>>2]=k}else j=0;return j|0}function qt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=c[(b&p)+408>>2]|0;h=(h|0)==0?b:h;g=h+452|0;b=c[(g&p)>>2]|0;e=c[(h&p)+520>>2]|0;a:do if((b|0)>0){f=0;while(1){if((c[(e+(f<<2)&p)>>2]|0)==(d|0))break a;f=f+1|0;if((f|0)>=(b|0)){i=4;break}}}else i=4;while(0);do if((i|0)==4){b=Xc(e,(b<<2)+4|0)|0;if(!b){a[((c[(h&p)>>2]|0)&n)+65>>0]=1;break}else{c[(h&p)+520>>2]=b;e=c[(g&p)>>2]|0;c[(g&p)>>2]=e+1;c[(b+(e<<2)&p)>>2]=d;break}}while(0);return}function rt(d,e,f,g,h,i,j,k,l,m){d=d|0;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;z=c[(d&p)+8>>2]|0;A=xs(z)|0;x=(a[(e&n)+44>>0]&32)>>>4^70;if(!(m<<24>>24))xh(z,wh(z,x,g,A,i)|0,j<<16>>16,-14);if((mt(d,e,0,0)|0)!=0|(f|0)!=0){t=l&255;u=vt(d,f,0,0,3,e,t)|0;u=ut(d,e)|0|u;r=d+72|0;q=c[(r&p)>>2]|0;m=q+1|0;v=e+38|0;c[(r&p)>>2]=m+(b[(v&o)>>1]|0);wh(z,33,i,m,0)|0;r=b[(v&o)>>1]|0;if(r<<16>>16>0){w=(u|0)==-1;s=q+2|0;q=0;do{if(!w){if((q|0)<32?(1<<q&u|0)!=0:0)y=9}else y=9;if((y|0)==9){y=0;nt(z,e,g,q,s+q|0);r=b[(v&o)>>1]|0}q=q+1|0}while((q|0)<(r<<16>>16|0))}w=z+32|0;v=c[(w&p)>>2]|0;xt(d,f,109,0,1,e,m,t,A);if((v|0)<(c[(w&p)>>2]|0))xh(z,wh(z,x,g,A,i)|0,j<<16>>16,-14);zt(d,e,m,0,0,0)}else m=0;if((c[(e&p)+12>>2]|0)==0?(At(d,e,g,h,0),wh(z,95,g,k<<24>>24!=0&1,0)|0,k<<24>>24!=0):0)xh(z,-1,c[(e&p)>>2]|0,0);Ct(d,e,0,m,0,0);xt(d,f,109,0,2,e,m,l&255,A);q=c[(z&p)+24>>2]|0;m=~A;if((A|0)<0?(B=c[(q&p)+112>>2]|0,(B|0)!=0):0)c[(B+(m<<2)&p)>>2]=c[(z&p)+32>>2];c[(q&p)+88>>2]=(c[(z&p)+32>>2]|0)+-1;return}function st(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0;j=c[(b&p)+8>>2]|0;d=c[(b&p)+404>>2]|0;if(d){l=(c[(b&p)>>2]|0)+16|0;m=b+19|0;o=b+72|0;q=j+32|0;r=j+4|0;k=j+24|0;do{f=c[(d&p)+8>>2]|0;g=c[(l&p)>>2]|0;i=c[(d&p)+12>>2]|0;e=a[(m&n)>>0]|0;if(!(e<<24>>24)){h=(c[(o&p)>>2]|0)+1|0;c[(o&p)>>2]=h}else{h=e+-1<<24>>24;a[(m&n)>>0]=h;h=c[(b+((h&255)<<2)&p)+24>>2]|0}Qq(b,0,f,c[((c[(g+(f<<4)&p)+12>>2]|0)&p)+72>>2]|0,55);g=i+1|0;f=wh(j,77,g,0,0)|0;wh(j,74,0,g,0)|0;e=c[(q&p)>>2]|0;if(e>>>0>f>>>0)c[((c[(r&p)>>2]|0)+(f*20|0)&p)+8>>2]=e;c[((c[(k&p)>>2]|0)&p)+88>>2]=e+-1;wh(j,49,i+-1|0,2,h)|0;wh(j,75,0,h,g)|0;e=c[(r&p)>>2]|0;if(e)a[(e+(((c[(q&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(j,61,0,0,0)|0;_r(b,h);d=c[(d&p)>>2]|0}while((d|0)!=0)}return}function tt(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=nr(b,d,g,0)|0;i=h;return f|0}function ut(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q+4|0;n=q;if(c[((c[(a&p)>>2]|0)&p)+24>>2]&524288){f=c[(d&p)+16>>2]|0;if(!f)e=0;else{e=0;do{g=c[(f&p)+20>>2]|0;if((g|0)>0){h=0;do{r=c[(f+(h<<3)&p)+36>>2]|0;e=((r|0)>31?-1:1<<r)|e;h=h+1|0}while((h|0)<(g|0))}f=c[(f&p)+4>>2]|0}while((f|0)!=0)}f=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,k)|0;if((f|0)!=0?(l=c[(f&p)+8>>2]|0,(l|0)!=0):0)do{c[(n&p)>>2]=0;Mt(a,d,l,n,0)|0;f=c[(n&p)>>2]|0;if((f|0)!=0?(m=b[(f&o)+46>>1]|0,m<<16>>16!=0):0){k=m&65535;h=c[(f&p)+4>>2]|0;g=0;do{f=b[(h+(g<<1)&o)>>1]|0;if(f<<16>>16>31)f=-1;else f=1<<(f<<16>>16);e=f|e;g=g+1|0}while((g|0)<(k|0))}l=c[(l&p)+12>>2]|0}while((l|0)!=0)}else e=0;i=q;return e|0}function vt(a,b,e,f,g,h,i){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;k=(e|0)!=0?110:109;if(!b)j=0;else{j=0;do{if((((d[(b&n)+8>>0]|0|0)==(k|0)?((d[(b&n)+9>>0]|0)&g|0)!=0:0)?(av(c[(b&p)+16>>2]|0,e)|0)!=0:0)?(l=cv(a,b,h,i)|0,(l|0)!=0):0)j=c[(l+(f<<2)&p)+16>>2]|j;b=c[(b&p)+32>>2]|0}while((b|0)!=0)}return j|0}function wt(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=e+20|0;g=c[(l&p)>>2]|0;do if(!g){i=c[(d&p)>>2]|0;k=e+38|0;h=(b[(k&o)>>1]|0)+1|0;h=qg(h,((h|0)<0)<<31>>31)|0;if(!h){a[(i&n)+65>>0]=1;break}if((b[(k&o)>>1]|0)>0){i=e+4|0;g=0;do{a[(h+g&n)>>0]=a[((c[(i&p)>>2]|0)+(g*24|0)&n)+21>>0]|0;g=g+1|0}while((g|0)<(b[(k&o)>>1]|0))}else g=0;do{a[(h+g&n)>>0]=0;if((g|0)<=0)break;g=g+-1|0}while((a[(h+g&n)>>0]|0)==65);c[(l&p)>>2]=h;j=10}else{h=g;j=10}while(0);do if((j|0)==10){g=h;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-h&1073741823;if(g)if(!f){xh(d,-1,h,g);break}else{xh(d,wh(d,48,f,g,0)|0,h,g);break}}while(0);return}function xt(a,b,e,f,g,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;if(b)do{if(((d[(b&n)+8>>0]|0|0)==(e|0)?(d[(b&n)+9>>0]|0|0)==(g|0):0)?(av(c[(b&p)+16>>2]|0,f)|0)!=0:0)dv(a,b,h,i,j,k);b=c[(b&p)+32>>2]|0}while((b|0)!=0);return}function yt(d,f,g,h,k,l,m,q,r,s,t){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var 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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+16|0;if((i|0)>=(j|0))fa();L=oa;ia=(m|0)!=0;Q=c[(d&p)>>2]|0;na=Oq(d)|0;D=b[(f&o)+38>>1]|0;la=f+44|0;if(!(a[(la&n)>>0]&32)){ha=1;ga=0}else{x=f+8|0;while(1){x=c[(x&p)>>2]|0;if((a[(x&n)+51>>0]&3)==2)break;else x=x+20|0}ha=e[(x&o)+46>>1]|0;ga=x}if(D<<16>>16>0){z=f+36|0;y=f+4|0;x=r<<24>>24==10;w=d+408|0;v=l+1|0;E=na+4|0;F=na+32|0;G=na+24|0;H=r&255;B=D<<16>>16;A=0;do{a:do if((A|0)!=(b[(z&o)>>1]|0)?(I=c[(y&p)>>2]|0,J=a[(I+(A*24|0)&n)+20>>0]|0,K=J&255,J<<24>>24!=0):0){if(x)if(J<<24>>24==10)ma=14;else{D=K;ma=11}else{D=H;ma=11}do if((ma|0)==11){ma=0;if((D|0)==5)D=(c[(I+(A*24|0)&p)+4>>2]|0)==0?2:5;if((D|0)==2){ma=14;break}else if((D|0)==3|(D|0)==1)break;else if((D|0)==4){wh(na,76,v+A|0,s,0)|0;break a}C=v+A|0;D=wh(na,77,C,0,0)|0;Rq(d,c[((c[(y&p)>>2]|0)+(A*24|0)&p)+4>>2]|0,C);C=c[(F&p)>>2]|0;if(C>>>0>D>>>0)c[((c[(E&p)>>2]|0)+(D*20|0)&p)+8>>2]=C;c[((c[(G&p)>>2]|0)&p)+88>>2]=C+-1;break a}while(0);if((ma|0)==14){ma=0;D=c[(w&p)>>2]|0;a[(((D|0)==0?d:D)&n)+21>>0]=1;D=2}ea=c[(I+(A*24|0)&p)>>2]|0;c[(L&p)>>2]=c[(f&p)>>2];c[(L&p)+4>>2]=ea;ea=uh(Q,27824,L)|0;xh(na,wh(na,23,1299,D,v+A|0)|0,ea,-1);D=c[(E&p)>>2]|0;if(D)a[(D+(((c[(F&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1}while(0);A=A+1|0}while((A|0)!=(B|0))}A=c[(f&p)+24>>2]|0;if(((A|0)!=0?(c[(Q&p)+24>>2]&8192|0)==0:0)?(c[(d&p)+92>>2]=l+1,(c[(A&p)>>2]|0)>0):0){z=A+4|0;v=na+24|0;B=na+32|0;D=0;x=r<<24>>24==10?2:r&255;while(1){C=xs(na)|0;Zu(d,c[((c[(z&p)>>2]|0)+(D*20|0)&p)>>2]|0,C,16);if((x|0)==4){wh(na,16,0,s,0)|0;w=4}else{y=c[((c[(z&p)>>2]|0)+(D*20|0)&p)+4>>2]|0;if(!y)y=c[(f&p)>>2]|0;w=(x|0)==5?2:x;zs(d,275,w,y,0,3)}y=c[(v&p)>>2]|0;x=~C;if((C|0)<0?(M=c[(y&p)+112>>2]|0,(M|0)!=0):0)c[(M+(x<<2)&p)>>2]=c[(B&p)>>2];c[(y&p)+88>>2]=(c[(B&p)>>2]|0)+-1;D=D+1|0;if((D|0)>=(c[(A&p)>>2]|0))break;else x=w}}if(q<<24>>24!=0&(ga|0)==0){z=xs(na)|0;v=a[(f&n)+45>>0]|0;if(r<<24>>24==10)v=v<<24>>24==10?2:v&255;else v=r&255;if(ia?(wh(na,79,l,z,m)|0,N=c[(na&p)+4>>2]|0,(N|0)!=0):0)a[(N+(((c[(na&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;b:do if(!((v|0)!=5|r<<24>>24==5)?(u=c[(f&p)+8>>2]|0,(u|0)!=0):0){while(1){if(((a[(u&n)+50>>0]|0)+-3&255)<2)break;u=c[(u&p)+20>>2]|0;if(!u){A=0;break b}}A=wh(na,16,0,0,0)|0}else A=0;while(0);wh(na,70,h,z,l)|0;c:do switch(v|0){case 4:{wh(na,16,0,s,0)|0;v=0;break}case 3:case 2:case 1:{ma=49;break}case 5:{if((c[(Q&p)+24>>2]&262144|0)!=0?(O=jt(d,f,109,0,0)|0,(O|0)!=0):0)v=O;else if(!(mt(d,f,0,0)|0)){if(!(c[(f&p)+8>>2]|0)){v=1;break c}v=c[(d&p)+408>>2]|0;a[(((v|0)==0?d:v)&n)+20>>0]=1;At(d,f,h,k,0);v=1;break c}else v=0;ea=c[(d&p)+408>>2]|0;a[(((ea|0)==0?d:ea)&n)+20>>0]=1;rt(d,f,v,h,k,l,1,0,5,1);v=1;break}default:{v=2;ma=49}}while(0);if((ma|0)==49){Ft(d,v,f);v=0}y=na+24|0;x=c[(y&p)>>2]|0;w=~z;if((z|0)<0?(P=c[(x&p)+112>>2]|0,(P|0)!=0):0)c[(P+(w<<2)&p)>>2]=c[(na&p)+32>>2];u=na+32|0;c[(x&p)+88>>2]=(c[(u&p)>>2]|0)+-1;if(!A){w=0;A=0}else{w=wh(na,16,0,0,0)|0;u=c[(u&p)>>2]|0;if(u>>>0>A>>>0)c[((c[(na&p)+4>>2]|0)+(A*20|0)&p)+8>>2]=u;c[((c[(y&p)>>2]|0)&p)+88>>2]=u+-1}}else{w=0;A=0;v=0}D=c[(f&p)+8>>2]|0;if(D){ba=l+1|0;ca=d+60|0;da=d+56|0;ea=d+72|0;T=q<<24>>24==0;U=na+24|0;V=na+32|0;W=r<<24>>24==10;X=na+4|0;Y=ga+46|0;Z=ga+32|0;_=ga+4|0;$=m+1|0;aa=d+408|0;R=Q+24|0;S=ha&65535;z=r&255;y=f+36|0;x=d+92|0;H=0;u=0;C=-1;while(1){O=g+(u<<2)|0;do if(c[(O&p)>>2]|0){if(!(H<<24>>24)){wt(na,f,ba);H=1}P=u+k|0;r=xs(na)|0;N=D+36|0;if(c[(N&p)>>2]|0){wh(na,28,0,c[(O&p)>>2]|0,0)|0;c[(x&p)>>2]=ba;gt(d,c[(N&p)>>2]|0,r,16);c[(x&p)>>2]=0}Q=D+48|0;I=b[(Q&o)>>1]|0;L=I&65535;K=c[(ca&p)>>2]|0;J=c[(da&p)>>2]|0;if((J|0)<(L|0)){q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+L;q=q+1|0}else{c[(ca&p)>>2]=K+L;c[(da&p)>>2]=J-L;q=K}if(!(I<<16>>16))M=C;else{M=D+4|0;J=0;do{B=b[((c[(M&p)>>2]|0)+(J<<1)&o)>>1]|0;L=B<<16>>16;if(B<<16>>16>=0?B<<16>>16!=(b[(y&o)>>1]|0):0){K=J+q|0;L=ba+L|0;ma=81}else{L=J+q|0;if((C|0)!=(L|0)){K=L;C=(c[(N&p)>>2]|0)==0?L:-1;L=l;ma=81}}if((ma|0)==81){ma=0;wh(na,34,L,K,0)|0;I=b[(Q&o)>>1]|0}J=J+1|0;L=I&65535}while((J|0)<(L|0));M=C}wh(na,49,q,L,c[(O&p)>>2]|0)|0;dt(d,q,e[(Q&o)>>1]|0);N=(ga|0)==(D|0);if(ia&N&T){C=c[(U&p)>>2]|0;B=~r;if((r|0)<0?(ja=c[(C&p)+112>>2]|0,(ja|0)!=0):0)c[(ja+(B<<2)&p)>>2]=c[(V&p)>>2];c[(C&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=M;break}G=a[(D&n)+50>>0]|0;F=G&255;if(!(G<<24>>24)){C=e[(Q&o)>>1]|0;dt(d,q,C);if((c[(da&p)>>2]|0)<(C|0)){c[(da&p)>>2]=C;c[(ca&p)>>2]=q}C=c[(U&p)>>2]|0;B=~r;if((r|0)<0?(ka=c[(C&p)+112>>2]|0,(ka|0)!=0):0)c[(ka+(B<<2)&p)>>2]=c[(V&p)>>2];c[(C&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=M;break}if(W)O=G<<24>>24==10?2:F;else O=z;C=e[(D&o)+46>>1]|0;xh(na,wh(na,67,P,r,q)|0,C,-14);do if(!N){L=c[(ca&p)>>2]|0;K=c[(da&p)>>2]|0;if((K|0)<(ha|0)){L=c[(ea&p)>>2]|0;c[(ea&p)>>2]=L+ha;L=L+1|0;break}else{c[(ca&p)>>2]=L+ha;c[(da&p)>>2]=K-ha;break}}else L=q;while(0);do if(ia|(O|0)==5){if(!(a[(la&n)>>0]&32)){wh(na,112,P,L,0)|0;if(!ia)break;wh(na,79,L,r,m)|0;G=c[(X&p)>>2]|0;if(!G)break;a[(G+(((c[(V&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;break}do if(!N){if(!(b[(Y&o)>>1]|0))break;F=D+4|0;E=0;do{I=b[((c[(_&p)>>2]|0)+(E<<1)&o)>>1]|0;K=b[(Q&o)>>1]|0;d:do if(!(K<<16>>16))K=-1;else{G=c[(F&p)>>2]|0;J=K&65535;K=0;while(1){if((b[(G+(K<<1)&o)>>1]|0)==I<<16>>16)break d;K=K+1|0;if((K|0)>=(J|0)){K=-1;break}}}while(0);wh(na,47,P,K<<16>>16,E+L|0)|0;E=E+1|0}while((E|0)<(e[(Y&o)>>1]|0))}while(0);if(!ia)break;F=(a[(D&n)+51>>0]&3)==2?q:L;K=b[(Y&o)>>1]|0;if(!(K<<16>>16))break;J=(K&65535)+(c[(V&p)>>2]|0)|0;I=0;G=78;do{K=cr(d,c[((c[(Z&p)>>2]|0)+(I<<2)&p)>>2]|0)|0;C=(I|0)==((e[(Y&o)>>1]|0)+-1|0);J=C?r:J;G=C?79:G;xh(na,wh(na,G,$+(b[((c[(_&p)>>2]|0)+(I<<1)&o)>>1]|0)|0,J,I+F|0)|0,K,-4);K=c[(X&p)>>2]|0;if(K)a[(K+(((c[(V&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;I=I+1|0}while((I|0)<(e[(Y&o)>>1]|0))}while(0);if((O|0)==3|(O|0)==2|(O|0)==1)nu(d,O,D);else if((O|0)==4)wh(na,16,0,s,0)|0;else{C=c[(aa&p)>>2]|0;a[(((C|0)==0?d:C)&n)+20>>0]=1;if(!(c[(R&p)>>2]&262144))G=0;else G=jt(d,f,109,0,0)|0;rt(d,f,G,h,k,L,S,0,5,N&1);v=1}K=c[(U&p)>>2]|0;J=~r;do if((r|0)<0){G=c[(K&p)+112>>2]|0;if(!G)break;c[(G+(J<<2)&p)>>2]=c[(V&p)>>2]}while(0);c[(K&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=e[(Q&o)>>1]|0;dt(d,q,C);if((c[(da&p)>>2]|0)<(C|0)){c[(da&p)>>2]=C;c[(ca&p)>>2]=q}if((L|0)==(q|0)){C=M;break}dt(d,L,ha);if((c[(da&p)>>2]|0)>=(ha|0)){C=M;break}c[(da&p)>>2]=ha;c[(ca&p)>>2]=L;C=M}while(0);D=c[(D&p)+20>>2]|0;if(!D)break;else u=u+1|0}}if(A){wh(na,16,0,A+1|0,0)|0;u=c[(na&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(na&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(na&p)+24>>2]|0)&p)+88>>2]=u+-1}c[(t&p)>>2]=v;i=oa;return}function zt(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,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;aa=i;i=i+32|0;if((i|0)>=(j|0))fa();T=aa+20|0;R=aa+16|0;P=aa+12|0;Q=aa+8|0;_=aa+4|0;Z=aa;V=c[(e&p)>>2]|0;O=e+438|0;U=a[(O&n)>>0]|0;Y=V+24|0;a:do if(c[(Y&p)>>2]&524288){S=f+68|0;m=c[(S&p)>>2]|0;b:do if(m){r=c[(V&p)+20>>2]|0;if((r|0)>0){q=c[(V&p)+16>>2]|0;u=0;while(1){t=u+1|0;if((c[(q+(u<<4)&p)+12>>2]|0)==(m|0)){t=u;break b}if((t|0)<(r|0))u=t;else break}}else t=0}else t=-1e6;while(0);N=c[((c[(V&p)+16>>2]|0)+(t<<4)&p)>>2]|0;A=c[(f&p)+16>>2]|0;if(!A)q=f;else{C=(k|0)==0;D=U<<24>>24==0;E=V+65|0;F=g+1|0;G=e+68|0;H=(g|0)==0;I=(h|0)==0;J=e+408|0;K=f+36|0;L=V+284|0;M=(l|0)!=0;B=A;do{c[(R&p)>>2]=0;c[(P&p)>>2]=0;c:do if(!C){A=c[(B&p)+8>>2]|0;if(dd(c[(f&p)>>2]|0,A)|0){z=c[(B&p)+20>>2]|0;if((z|0)>0){q=0;do{m=c[(B+(q<<3)&p)+36>>2]|0;if((c[(k+(m<<2)&p)>>2]|0)>-1){$=17;break c}q=q+1|0;if((m|0)==(b[(K&o)>>1]|0)&M){$=17;break c}}while((q|0)<(z|0))}}else $=17}else{A=c[(B&p)+8>>2]|0;$=17}while(0);do if(($|0)==17){$=0;if(!(a[(O&n)>>0]|0))y=sh(e,0,A,N)|0;else y=_h(V,A,N)|0;A=(y|0)==0;if(!A?(Mt(e,y,B,R,P)|0)==0:0){A=c[(P&p)>>2]|0;if(!A){c[(Q&p)>>2]=c[(B&p)+36>>2];A=Q}q=B+20|0;if((c[(q&p)>>2]|0)>0){w=c[(R&p)>>2]|0;r=(w|0)==0;u=y+36|0;v=y+4|0;w=w+4|0;m=0;x=0;do{z=A+(x<<2)|0;if((c[(z&p)>>2]|0)==(b[(K&o)>>1]|0))c[(z&p)>>2]=-1;if(c[(L&p)>>2]|0){if(r)z=u;else z=(c[(w&p)>>2]|0)+(x<<1)|0;m=(ev(e,c[(y&p)>>2]|0,c[((c[(v&p)>>2]|0)+((b[(z&o)>>1]|0)*24|0)&p)>>2]|0,t)|0)==2&1}x=x+1|0}while((x|0)<(c[(q&p)>>2]|0));z=y}else{z=y;m=0}gs(e,t,c[(y&p)+32>>2]|0,0,c[(z&p)>>2]|0);c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;if(!H)fv(e,t,y,c[(R&p)>>2]|0,B,A,g,-1,m);d:do if(!I){z=c[(J&p)>>2]|0;z=c[(((z|0)==0?e:z)&p)+528>>2]|0;do if(z){z=c[(z&p)>>2]|0;if((z|0)==(c[(B&p)+28>>2]|0)?(a[(B&n)+25>>0]|0)==7:0)break d;if((z|0)!=(c[(B&p)+32>>2]|0))break;if((a[(B&n)+26>>0]|0)==7)break d}while(0);fv(e,t,y,c[(R&p)>>2]|0,B,A,h,1,m)}while(0);mg(V,c[(P&p)>>2]|0);break}if(D)break a;if(a[(E&n)>>0]|0)break a;if(A){A=Oq(e)|0;z=B+20|0;q=c[(z&p)>>2]|0;m=(c[(A&p)+32>>2]|0)+1+q|0;if((q|0)>0){q=0;do{wh(A,76,F+(c[(B+(q<<3)&p)+36>>2]|0)|0,m,0)|0;q=q+1|0}while((q|0)<(c[(z&p)>>2]|0))}wh(A,134,d[(B&n)+24>>0]|0,-1,0)|0}}while(0);B=c[(B&p)+4>>2]|0}while((B|0)!=0);q=f;m=c[(S&p)>>2]|0}m=bn(m+56|0,c[(q&p)>>2]|0,T)|0;if((m|0)!=0?(s=c[(m&p)+8>>2]|0,W=V+65|0,(s|0)!=0):0){u=(k|0)!=0;v=e+408|0;w=e+20|0;x=e+68|0;y=(h|0)==0;z=(g|0)==0;A=u&1;t=U<<24>>24==0;do{c[(_&p)>>2]=0;c[(Z&p)>>2]=0;if(!(u?(bv(f,s,k,l)|0)==0:0))$=57;do if(($|0)==57){$=0;q=s+24|0;if((((a[(q&n)>>0]|0)==0?(c[(Y&p)>>2]&16777216|0)==0:0)?(c[(v&p)>>2]|0)==0:0)?(a[(w&n)>>0]|0)==0:0)break;if(Mt(e,f,s,_,Z)|0){if(t)break a;if(!(a[(W&n)>>0]|0))break;else break a}m=pr(V,0,0,0)|0;if(m){K=c[(s&p)>>2]|0;c[(m&p)+24>>2]=K;r=m+16|0;c[(r&p)>>2]=c[(K&p)>>2];K=K+40|0;b[(K&o)>>1]=(b[(K&o)>>1]|0)+1<<16>>16;K=c[(x&p)>>2]|0;c[(x&p)>>2]=K+1;c[(m&p)+48>>2]=K;if(!y)gv(e,m,f,c[(_&p)>>2]|0,s,c[(Z&p)>>2]|0,h,-1);if((!z?(X=a[(s+A&n)+25>>0]|0,gv(e,m,f,c[(_&p)>>2]|0,s,c[(Z&p)>>2]|0,g,1),(a[(q&n)>>0]|0)==0):0)?!(X<<24>>24==7|X<<24>>24==9):0){K=c[(v&p)>>2]|0;a[(((K|0)==0?e:K)&n)+21>>0]=1}c[(r&p)>>2]=0;Do(V,m)}mg(V,c[(Z&p)>>2]|0)}while(0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}}while(0);i=aa;return}function At(b,d,f,g,h){b=b|0;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,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))fa();u=v;t=c[(b&p)+8>>2]|0;l=c[(d&p)+8>>2]|0;a:do if(a[(d&n)+44>>0]&32){if(l){k=l;while(1){if((a[(k&n)+51>>0]&3)==2){s=5;break a}k=c[(k&p)+20>>2]|0;if(!k){k=0;s=5;break}}}}else{k=0;s=5}while(0);if((s|0)==5?(l|0)!=0:0){q=(h|0)==0;r=0;d=0;m=-1;while(1){if(q){if((l|0)!=(k|0))s=10}else if(!((l|0)==(k|0)?1:(c[(h+(r<<2)&p)>>2]|0)==0))s=10;if((s|0)==10){s=0;m=Pt(b,l,f,0,1,u,d,m)|0;wh(t,111,r+g|0,m,e[(((a[(l&n)+51>>0]&8)==0?l+48|0:l+46|0)&o)>>1]|0)|0;Qt(b,c[(u&p)>>2]|0);d=l}l=c[(l&p)+20>>2]|0;if(!l)break;else r=r+1|0}}i=v;return}function Bt(d,e,f,g,h,i,j,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|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;z=Oq(d)|0;t=c[(e&p)+8>>2]|0;if(!t){q=e+44|0;s=0}else{u=(l|0)!=0;q=e+44|0;v=u?17:1;w=z+4|0;x=z+32|0;s=0;y=0;m=t;while(1){r=i+(y<<2)|0;t=c[(r&p)>>2]|0;do if(t){if(c[(m&p)+36>>2]|0){wh(z,76,t,(c[(x&p)>>2]|0)+2|0,0)|0;t=c[(r&p)>>2]|0}wh(z,110,y+g|0,t,0)|0;if((a[(m&n)+51>>0]&3)==2){t=(a[(q&n)>>0]&32)!=0;if(t|u)s=t?v:16;else{s=1;break}}else if(u)s=16;else{s=1;break}t=c[(w&p)>>2]|0;if(!t)s=1;else{a[(t+(((c[(x&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=s;s=1}}while(0);m=c[(m&p)+20>>2]|0;if(!m)break;else y=y+1|0}}if(!(a[(q&n)>>0]&32)){r=h+1|0;q=d+19|0;m=a[(q&n)>>0]|0;if(!(m<<24>>24)){i=d+72|0;t=(c[(i&p)>>2]|0)+1|0;c[(i&p)>>2]=t}else{t=m+-1<<24>>24;a[(q&n)>>0]=t;t=c[(d+((t&255)<<2)&p)+24>>2]|0}q=e+38|0;wh(z,49,r,b[(q&o)>>1]|0,t)|0;if(!(s<<24>>24))wt(z,e,0);dt(d,r,b[(q&o)>>1]|0);r=d+18|0;if(!(a[(r&n)>>0]|0))m=(j|0)!=0?5:3;else m=0;if(k)m=(m&255|8)&255;if(!l)q=m;else q=(m&255|16)&255;wh(z,75,f,t,h)|0;if(!(a[(r&n)>>0]|0))xh(z,-1,c[(e&p)>>2]|0,0);m=c[(z&p)+4>>2]|0;if(m)a[(m+(((c[(z&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=q}return}function Ct(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,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;$=i;i=i+64|0;if((i|0)>=(j|0))fa();U=$+52|0;T=$+48|0;Y=$+8|0;X=$;W=$+40|0;Z=$+32|0;V=$+24|0;if(((c[((c[(d&p)>>2]|0)&p)+24>>2]&524288|0)!=0?(S=e+68|0,l=bn((c[(S&p)>>2]|0)+56|0,c[(e&p)>>2]|0,$+16|0)|0,(l|0)!=0):0)?(m=c[(l&p)+8>>2]|0,(m|0)!=0):0){R=(h|0)==0;K=(f|0)!=0;L=K&1;M=Z+4|0;N=W+4|0;O=e+4|0;P=V+4|0;Q=K?110:109;do{if(!(!R?(bv(e,m,h,k)|0)==0:0)){H=c[(d&p)>>2]|0;G=a[(m+L&n)+25>>0]|0;I=G&255;J=m+(L<<2)+28|0;f=c[(J&p)>>2]|0;do if(!(G<<24>>24==0|(f|0)!=0)){c[(U&p)>>2]=0;c[(T&p)>>2]=0;if(!(Mt(d,e,m,U,T)|0)){u=m+20|0;if((c[(u&p)>>2]|0)>0){A=34352;z=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;C=34360;B=c[(C&p)>>2]|0;C=c[(C&p)+4>>2]|0;D=m+36|0;F=G<<24>>24!=6&(G<<24>>24!=9|K);E=0;r=0;l=0;q=0;do{f=Y;c[(f&p)>>2]=z;c[(f&p)+4>>2]=A;f=X;c[(f&p)>>2]=B;c[(f&p)+4>>2]=C;f=c[(T&p)>>2]|0;if(!f)f=D;else f=f+(E<<2)|0;t=c[(f&p)>>2]|0;v=c[(U&p)>>2]|0;if(!v)x=34368;else x=c[((c[(O&p)>>2]|0)+((b[((c[(v&p)+4>>2]|0)+(E<<1)&o)>>1]|0)*24|0)&p)>>2]|0;c[(Z&p)>>2]=x;f=c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(t*24|0)&p)>>2]|0;c[(W&p)>>2]=f;if(!x)w=0;else{y=x;while(1)if(!(a[(y&n)>>0]|0))break;else y=y+1|0;w=y-x&1073741823}c[(M&p)>>2]=w;if(!f)s=0;else{x=f;while(1)if(!(a[(x&n)>>0]|0))break;else x=x+1|0;s=x-f&1073741823}c[(N&p)>>2]=s;y=Zq(d,27,0,0,Y)|0;y=Zq(d,122,y,Zq(d,27,0,0,Z)|0,0)|0;q=ss(H,q,Zq(d,79,y,Zq(d,27,0,0,W)|0,0)|0)|0;if(K){x=Zq(d,27,0,0,Y)|0;x=Zq(d,122,x,Zq(d,27,0,0,Z)|0,0)|0;y=Zq(d,27,0,0,X)|0;l=ss(H,l,Zq(d,73,x,Zq(d,122,y,Zq(d,27,0,0,Z)|0,0)|0,0)|0)|0}if(F){do if(G<<24>>24==8){f=c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(t*24|0)&p)+4>>2]|0;if(!f){f=Zq(d,101,0,0,0)|0;break}else{f=Mr(H,f,0,0)|0;break}}else if(G<<24>>24==9){f=Zq(d,27,0,0,X)|0;f=Zq(d,122,f,Zq(d,27,0,0,Z)|0,0)|0}else f=Zq(d,101,0,0,0)|0;while(0);r=lr(d,r,f)|0;mr(d,r,W,0)}E=E+1|0}while((E|0)<(c[(u&p)>>2]|0));f=m}else{f=m;r=0;l=0;q=0}mg(H,c[(T&p)>>2]|0);y=c[(c[(f&p)>>2]&p)>>2]|0;if(!y)s=0;else{f=y;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;s=f-y&1073741823}if(G<<24>>24==6){c[(V&p)>>2]=y;c[(P&p)>>2]=s;f=tt(H,57,34376)|0;if(f)a[(f&n)+1>>0]=2;x=lr(d,0,f)|0;x=kr(d,x,pr(H,0,V,0)|0,q,0,0,0,0,0,0)|0;w=0}else{x=0;w=q}t=H+250|0;u=a[(t&n)>>0]|0;a[(t&n)>>0]=0;f=s+77|0;v=mh(H,f,0)|0;if(v){fw(v|0,0,f|0)|0;q=v+36|0;c[(v&p)+28>>2]=q;G=v+76|0;c[(v&p)+48>>2]=G;c[(v&p)+52>>2]=s;kw(G|0,y|0,s|0)|0;c[(v&p)+56>>2]=Mr(H,w,1,0)|0;c[(v&p)+60>>2]=Pr(H,r,1)|0;c[(v&p)+44>>2]=gr(H,x,1)|0;if(!l){f=v;l=0}else{l=Zq(d,19,l,0,0)|0;c[(v&p)+12>>2]=Mr(H,l,1,0)|0;f=v}}else{f=0;q=0}a[(t&n)>>0]=u;Gk(H,w);Gk(H,l);Nk(H,r);Mk(H,x,1);if((a[(H&n)+65>>0]|0)==1){Kk(H,f);f=0;break}if((I|0)==6)a[(q&n)>>0]=119;else if((I|0)==9?!K:0)a[(q&n)>>0]=109;else _=49;if((_|0)==49){_=0;a[(q&n)>>0]=110}c[(q&p)+4>>2]=f;I=c[(S&p)>>2]|0;c[(v&p)+20>>2]=I;c[(v&p)+24>>2]=I;c[(J&p)>>2]=f;a[(v&n)+8>>0]=Q}else f=0}while(0);if(f)dv(d,f,e,g,2,0)}m=c[(m&p)+12>>2]|0}while((m|0)!=0)}i=$;return}function Dt(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0;f=b[(d&o)+46>>1]|0;a:do if(f<<16>>16==(b[(e&o)+46>>1]|0)?(a[(d&n)+50>>0]|0)==(a[(e&n)+50>>0]|0):0){if(f<<16>>16){g=c[(e&p)+4>>2]|0;h=c[(d&p)+4>>2]|0;i=e+28|0;j=d+28|0;k=e+32|0;l=d+32|0;s=0;do{if((b[(g+(s<<1)&o)>>1]|0)!=(b[(h+(s<<1)&o)>>1]|0)){f=0;break a}if((a[((c[(i&p)>>2]|0)+s&n)>>0]|0)!=(a[((c[(j&p)>>2]|0)+s&n)>>0]|0)){f=0;break a}m=c[((c[(k&p)>>2]|0)+(s<<2)&p)>>2]|0;q=c[((c[(l&p)>>2]|0)+(s<<2)&p)>>2]|0;r=(q|0)==0;if(!m){if(!r){f=0;break a}}else{if(r){f=0;break a}if(dd(m,q)|0){f=0;break a}}s=s+1|0}while((s|0)<(f&65535|0))}f=(Cu(c[(e&p)+36>>2]|0,c[(d&p)+36>>2]|0,-1)|0)==0&1}else f=0;while(0);return f|0}function Et(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;do if(!(a[(e&n)+44>>0]&8))f=0;else{h=c[(b&p)+408>>2]|0;h=(h|0)==0?b:h;g=h+404|0;f=c[(g&p)>>2]|0;a:do if(!f)i=5;else while(1){if((c[(f&p)+4>>2]|0)==(e|0))break a;f=c[(f&p)>>2]|0;if(!f){i=5;break}}while(0);if((i|0)==5){f=mh(c[(b&p)>>2]|0,16,0)|0;if(!f){f=0;break}c[(f&p)>>2]=c[(g&p)>>2];c[(g&p)>>2]=f;c[(f&p)+4>>2]=e;c[(f&p)+8>>2]=d;b=h+72|0;g=c[(b&p)>>2]|0;c[(f&p)+12>>2]=g+2;c[(b&p)>>2]=g+3}f=c[(f&p)+12>>2]|0}while(0);return f|0}function Ft(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;g=b[(e&o)+36>>1]|0;h=c[(a&p)>>2]|0;f=c[(e&p)>>2]|0;if(g<<16>>16>-1){g=c[((c[(e&p)+4>>2]|0)+((g<<16>>16)*24|0)&p)>>2]|0;c[(k&p)>>2]=f;c[(k&p)+4>>2]=g;g=1555;f=uh(h,27824,k)|0}else{c[(k&p)>>2]=f;g=2579;f=uh(h,34408,k)|0}zs(a,g,d,f,-1,2);i=l;return}function Gt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+316|0;h=c[(g&p)>>2]|0;d=lr(b,h,Mr(c[(b&p)>>2]|0,d,0,0)|0)|0;if(d){b=(c[(d&p)>>2]|0)+-1|0;h=c[(d&p)+4>>2]|0;c[(h+(b*20|0)&p)+16>>2]=e;b=h+(b*20|0)+13|0;a[(b&n)>>0]=a[(b&n)>>0]&-5|f<<2&4}c[(g&p)>>2]=d;return}function Ht(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=c[(e&p)>>2]|0;if(!(g+-1&g)){i=ca((g|0)==0?1:g<<1,d)|0;a=ro(a,b,i,((i|0)<0)<<31>>31)|0;if(!a){c[(f&p)>>2]=-1;a=b}else h=4}else{a=b;h=4}if((h|0)==4){fw(a+(ca(g,d)|0)|0,0,d|0)|0;c[(f&p)>>2]=g;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1}return a|0}function It(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;c[(h&p)>>2]=0;b=c[(a&p)+12>>2]|0;if((b|0)!=0?(d=c[(b&p)+24>>2]|0,(d|0)>0):0){c[(h&p)>>2]=d;b=d}else b=0;d=c[(a&p)+16>>2]|0;if((d|0)!=0?(e=c[(d&p)+24>>2]|0,(e|0)>(b|0)):0)c[(h&p)>>2]=e;f=a+4|0;b=a+20|0;if(!(c[(f&p)>>2]&2048)){d=c[(b&p)>>2]|0;if(d){tu(d,h);b=c[(b&p)>>2]|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;do{b=c[((c[(e+(d*20|0)&p)>>2]|0)&p)+4>>2]|b;d=d+1|0}while((d|0)!=(g|0));b=b&2097408}else b=0;c[(f&p)>>2]=c[(f&p)>>2]|b}}else Es(c[(b&p)>>2]|0,h);c[(a&p)+24>>2]=(c[(h&p)>>2]|0)+1;i=k;return}function Jt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Oq(b)|0;i=b+72|0;h=(c[(i&p)>>2]|0)+1|0;c[(i&p)>>2]=h;b=mh(c[(b&p)>>2]|0,8,0)|0;if(b){i=b;c[(i&p)>>2]=e;c[(i&p)+4>>2]=f}xh(g,wh(g,26,0,h,0)|0,b,-13);iq(g,1);if(!(a[((c[(g&p)>>2]|0)&n)+65>>0]|0))Xg(c[(g&p)+16>>2]|0,d,-1,1,0)|0;wh(g,35,h,1,0)|0;return}function Kt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;d=c[(b&p)>>2]|0;e=d+16|0;f=c[((c[(e&p)>>2]|0)&p)+20>>2]|0;do if(!f)d=0;else{if((a[(d&n)+63>>0]|0)!=0?(a[(f&n)+8>>0]|0)==0:0){Ml(f);c[((c[(e&p)>>2]|0)&p)+20>>2]=0;Eg(d);d=0;break}th(b,32128,g);d=1}while(0);i=h;return d|0}function Lt(b){b=b|0;var e=0,f=0,g=0;if((a[(b&n)+63>>0]|0)!=0?(e=c[(b&p)+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[(b&p)+16>>2]|0;while(1){e=e+-1|0;b=c[(f&p)+4>>2]|0;if(b)to(b,c[(g&p)>>2]&28|d[(f&n)+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function Mt(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,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[(g&p)+20>>2]|0;m=c[(g&p)+40>>2]|0;if((A|0)==1){v=b[(f&o)+36>>1]|0;l=v<<16>>16;if(v<<16>>16>-1)if((m|0)!=0?(dd(c[((c[(f&p)+4>>2]|0)+(l*24|0)&p)>>2]|0,m)|0)!=0:0){y=0;B=8}else k=0;else{y=0;B=8}}else if(k){l=mh(c[(d&p)>>2]|0,A<<2,0)|0;if(!l)k=1;else{c[(k&p)>>2]=l;y=l;B=8}}else{y=0;B=8}a:do if((B|0)==8){k=c[(f&p)+8>>2]|0;b:do if(k){v=(m|0)==0;x=(A|0)>0;u=f+4|0;w=(y|0)==0;c:while(1){do if((e[(k&o)+46>>1]|0)==(A|0)?(a[(k&n)+50>>0]|0)!=0:0){if(v)if((a[(k&n)+51>>0]&3)==2){B=16;break c}else break;d:do if(x){q=c[(k&p)+4>>2]|0;r=c[(u&p)>>2]|0;s=c[(k&p)+32>>2]|0;t=0;while(1){f=b[(q+(t<<1)&o)>>1]|0;m=c[(r+(f*24|0)&p)+16>>2]|0;if(dd(c[(s+(t<<2)&p)>>2]|0,(m|0)!=0?m:11152)|0){m=t;break d}m=c[(r+(f*24|0)&p)>>2]|0;l=0;while(1){f=l+1|0;if(!(dd(c[(g+(l<<3)&p)+40>>2]|0,m)|0)){f=l;B=23;break}if((f|0)<(A|0))l=f;else break}if((B|0)==23){B=0;if(!w)c[(y+(t<<2)&p)>>2]=c[(g+(f<<3)&p)+36>>2]}m=t+1|0;if((f|0)==(A|0)){m=t;break d}if((m|0)<(A|0))t=m;else break}}else m=0;while(0);if((m|0)==(A|0))break c}while(0);k=c[(k&p)+20>>2]|0;if(!k)break b}if((B|0)==16)if(!(w|x^1)){l=0;do{c[(y+(l<<2)&p)>>2]=c[(g+(l<<3)&p)+36>>2];l=l+1|0}while((l|0)!=(A|0))}c[(h&p)>>2]=k;k=0;break a}while(0);if(!(a[(d&n)+438>>0]|0)){v=c[(g&p)+8>>2]|0;c[(z&p)>>2]=c[(c[(g&p)>>2]&p)>>2];c[(z&p)+4>>2]=v;th(d,32008,z)}mg(c[(d&p)>>2]|0,y);k=1}while(0);i=C;return k|0}function Nt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if(!(c[(d&p)+12>>2]|0)){c[(h&p)>>2]=0;l=c[(b&p)>>2]|0;g=d+4|0;d=c[(g&p)>>2]|0;Zr(l,c[(d+(e*24|0)&p)+4>>2]|0,a[(l&n)+62>>0]|0,a[(d+(e*24|0)&n)+21>>0]|0,h)|0;d=c[(h&p)>>2]|0;if(d)xh(b,-1,d,-8);if((a[((c[(g&p)>>2]|0)+(e*24|0)&n)+21>>0]|0)==69)wh(b,39,f,0,0)|0}i=k;return}function Ot(c,d,f){c=c|0;d=d|0;f=f|0;var g=0;if(!d)g=0;else{g=d;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Sh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[(g&o)>>1]=e[(g&o)>>1]|f&255}return}function Pt(d,e,f,g,h,i,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;t=c[(d&p)+8>>2]|0;u=c[(e&p)+12>>2]|0;do if(i){l=e+36|0;if(!(c[(l&p)>>2]|0)){c[(i&p)>>2]=0;break}else{c[(i&p)>>2]=xs(t)|0;c[(d&p)+96>>2]=f;s=d+100|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;gt(d,c[(l&p)>>2]|0,c[(i&p)>>2]|0,16);break}}while(0);if((h|0)!=0?(a[(e&n)+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[(l&o)>>1]|0;q=l&65535;r=d+60|0;h=c[(r&p)>>2]|0;s=d+56|0;i=c[(s&p)>>2]|0;if((i|0)<(q|0)){h=d+72|0;m=c[(h&p)>>2]|0;c[(h&p)>>2]=m+q;m=m+1|0}else{c[(r&p)>>2]=h+q;c[(s&p)>>2]=i-q;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[(j&p)+36>>2]|0)==0:0){h=j;break}h=0}while(0);if(l<<16>>16){j=(h|0)==0;k=e+4|0;i=h+4|0;l=0;do{if(!j){h=b[((c[(k&p)>>2]|0)+(l<<1)&o)>>1]|0;if((b[((c[(i&p)>>2]|0)+(l<<1)&o)>>1]|0)!=h<<16>>16)v=21}else{h=b[((c[(k&p)>>2]|0)+(l<<1)&o)>>1]|0;v=21}if((v|0)==21){v=0;nt(t,u,f,h<<16>>16,l+m|0);Pq(t,39)|0}l=l+1|0}while((l|0)<(q|0))}if(g)wh(t,49,m,q,g)|0;dt(d,m,q);if((c[(s&p)>>2]|0)<(q|0)){c[(s&p)>>2]=q;c[(r&p)>>2]=m}return m|0}function Qt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[(a&p)+8>>2]|0;e=c[(d&p)+24>>2]|0;f=~b;if((b|0)<0?(g=c[(e&p)+112>>2]|0,(g|0)!=0):0)c[(g+(f<<2)&p)>>2]=c[(d&p)+32>>2];c[(e&p)+88>>2]=(c[(d&p)+32>>2]|0)+-1;bu(a)}return}function Rt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(d&p)+16>>2]|0;a:do if((e|0)!=0?(f=c[(d&p)+64>>2]|0,(f|0)!=0):0){e=c[(e&p)+8>>2]|0;b:do if(e){while(1){if(!(dd(c[(e&p)>>2]|0,f)|0))break;e=c[(e&p)+20>>2]|0;if(!e)break b}c[(d&p)+68>>2]=e;e=0;break a}while(0);c[(g&p)>>2]=f;c[(g&p)+4>>2]=0;th(b,28104,g);a[(b&n)+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function St(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Tt(a,b)|0;if(b&1){e=St(c[(a&p)+12>>2]|0,b)|0;return e+d+(St(c[(a&p)+16>>2]|0,b)|0)|0}}else d=0;return d|0}
11 function mq(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,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,ha=0;ha=i;i=i+192|0;if((i|0)>=(j|0))fa();ba=ha+48|0;$=ha+24|0;_=ha+160|0;I=ha+156|0;S=ha+152|0;L=ha+148|0;V=ha+144|0;O=ha+140|0;H=ha+16|0;ea=ha;y=ha+128|0;x=ha+116|0;z=ha+96|0;l=ha+88|0;ga=f+8|0;ca=c[(ga&p)>>2]|0;da=c[(f&p)>>2]|0;c[(ea&p)>>2]=c[9286];c[(ea&p)+4>>2]=c[9287];c[(ea&p)+8>>2]=c[9288];a:do switch(g|0){case 9:{l=c[(f+(da+-1<<4)&p)+16>>2]|0;k=c[(ca&p)>>2]|0;if((Sq(ca,22,37104,0,0)|0)==0?(E=Oq(ca)|0,(E|0)!=0):0){if((l|0)!=7?(F=k+20|0,(c[(F&p)>>2]|0)>0):0){l=(l|0)==9?2:1;k=E+96|0;q=0;do{wh(E,4,q,l,0)|0;c[(k&p)>>2]=c[(k&p)>>2]|1<<q;q=q+1|0}while((q|0)<(c[(F&p)>>2]|0))}wh(E,3,0,0,0)|0}break}case 8:{y=c[(ca&p)>>2]|0;C=y+65|0;if(((a[(C&n)>>0]|0)==0?(a[(ca&n)+18>>0]|0)==0:0)?(Y=ca+64|0,(c[(Y&p)>>2]|0)==0):0){B=Oq(ca)|0;if(B){do{}while((Pq(B,61)|0)!=0);wh(B,24,0,0,0)|0;do if(!(a[(C&n)>>0]|0)){r=ca+332|0;v=c[(r&p)>>2]|0;if((v|0)==0?(c[(ca&p)+316>>2]|0)==0:0)break;s=B+32|0;t=c[(s&p)>>2]|0;if(t)c[((c[(B&p)+4>>2]|0)&p)+8>>2]=t;c[((c[(B&p)+24>>2]|0)&p)+88>>2]=t+-1;w=y+20|0;b:do if((c[(w&p)>>2]|0)>0){h=B+96|0;k=ca+328|0;l=y+16|0;m=y+145|0;q=B+4|0;u=0;while(1){x=1<<u;if(((x&v|0)!=0?(c[(h&p)>>2]=c[(h&p)>>2]|x,ba=c[((c[((c[(l&p)>>2]|0)+(u<<4)&p)+12>>2]|0)&p)+4>>2]|0,xh(B,wh(B,4,u,(c[(k&p)>>2]&x|0)!=0&1,c[(ca+(u<<2)&p)+336>>2]|0)|0,ba,-14),(a[(m&n)>>0]|0)==0):0)?(N=c[(q&p)>>2]|0,(N|0)!=0):0)a[(N+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;u=u+1|0;if((u|0)>=(c[(w&p)>>2]|0))break b;v=c[(r&p)>>2]|0}}while(0);s=ca+452|0;if((c[(s&p)>>2]|0)>0){r=ca+520|0;q=0;do{t=c[((c[((c[(r&p)>>2]|0)+(q<<2)&p)>>2]|0)&p)+60>>2]|0;c:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break c;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);xh(B,wh(B,146,0,0,0)|0,t,-10);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}c[(s&p)>>2]=0;s=Oq(ca)|0;r=ca+396|0;if((c[(r&p)>>2]|0)>0){q=ca+400|0;m=0;do{$=c[(q&p)>>2]|0;ba=c[($+(m<<4)&p)+12>>2]|0;xh(s,wh(s,145,c[($+(m<<4)&p)>>2]|0,c[($+(m<<4)&p)+4>>2]|0,d[($+(m<<4)&n)+8>>0]|0)|0,ba,-2);m=m+1|0}while((m|0)<(c[(r&p)>>2]|0))}k=c[(ca&p)+8>>2]|0;t=c[(ca&p)+404>>2]|0;if(t){h=(c[(ca&p)>>2]|0)+16|0;u=k+32|0;v=k+4|0;do{r=c[(t&p)+8>>2]|0;s=c[(t&p)+12>>2]|0;Qq(ca,0,r,c[((c[((c[(h&p)>>2]|0)+(r<<4)&p)+12>>2]|0)&p)+72>>2]|0,54);r=s+1|0;wh(k,28,0,s,r)|0;q=c[(u&p)>>2]|0;l=s+-1|0;m=c[(c[(t&p)+4>>2]&p)>>2]|0;xh(k,wh(k,97,0,l,0)|0,m,0);m=q+9|0;wh(k,108,0,m,0)|0;wh(k,47,0,0,s)|0;wh(k,78,l,q+7|0,s)|0;l=c[(v&p)>>2]|0;if(l)a[(l+(((c[(u&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;wh(k,103,0,r,0)|0;wh(k,47,0,1,s)|0;wh(k,16,0,m,0)|0;wh(k,9,0,q+2|0,0)|0;wh(k,25,0,s,0)|0;wh(k,61,0,0,0)|0;t=c[(t&p)>>2]|0}while((t|0)!=0)}s=c[(ca&p)+316>>2]|0;if((s|0)!=0?(a[(ca&n)+23>>0]=0,(c[(s&p)>>2]|0)>0):0){r=s+4|0;q=0;do{ba=c[(r&p)>>2]|0;Rq(ca,c[(ba+(q*20|0)&p)>>2]|0,c[(ba+(q*20|0)&p)+16>>2]|0);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}wh(B,16,0,1,0)|0}while(0);if((c[(Y&p)>>2]|0)==0?(a[(C&n)>>0]|0)==0:0){if((c[(ca&p)+404>>2]|0)!=0?(Z=ca+68|0,(c[(Z&p)>>2]|0)==0):0)c[(Z&p)>>2]=1;Ah(B,ca);c[(ca&p)+12>>2]=101;a[(ca&n)+16>>0]=0}else aa=48}else aa=48;if((aa|0)==48)c[(ca&p)+12>>2]=1;c[(ca&p)+68>>2]=0;c[(ca&p)+72>>2]=0;c[(ca&p)+76>>2]=0;c[(ca&p)+440>>2]=0;c[(ca&p)+332>>2]=0}break}case 5:{a[(ca&n)+450>>0]=0;c[(ca&p)+440>>2]=0;break}case 6:{a[(ca&n)+450>>0]=1;c[(ca&p)+440>>2]=0;break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[(ea&p)>>2]=0;break}case 27:{a[((c[(ca&p)>>2]|0)&n)+250>>0]=0;aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[(ea&p)>>2]=1;break}case 32:{Vq(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,a[(f+(da<<4)&n)+16>>0]|0,0);break}case 33:{ba=f+(da<<4)+16|0;Vq(ca,0,0,0,c[(ba&p)>>2]|0);Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 34:{a[(ea&n)>>0]=0;break}case 35:{l=c[(f+(da<<4)&p)+20>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;if((l|0)==5?(Fc(k,20456,5)|0)==0:0){a[(ea&n)>>0]=32;break a}a[(ea&n)>>0]=0;c[(ba&p)>>2]=l;c[(ba&p)+4>>2]=k;th(ca,20464,ba);break}case 59:{ba=f+(da<<4)+16|0;c[(x&p)>>2]=Zq(ca,97,0,0,ba)|0;ba=c[(ba&p)>>2]|0;c[(x&p)+4>>2]=ba;c[(x&p)+8>>2]=ba+(c[(f+(da<<4)&p)+20>>2]|0);Yq(ca,x);break}case 61:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(v=b[(l&o)+38>>1]|0,v<<16>>16>=1):0)a[((c[(l&p)+4>>2]|0)+(((v<<16>>16)+-1|0)*24|0)&n)+20>>0]=k;break}case 70:{c[(ea&p)>>2]=0;break}case 71:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2]&~c[(f+(da<<4)&p)+20>>2]|c[(f+(da<<4)&p)+16>>2];break}case 73:case 72:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 74:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=255;break}case 76:{c[(ea&p)>>2]=7;break}case 75:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2]<<8;c[(ea&p)+4>>2]=65280;break}case 65:{br(ca,0,f+(da+-2<<4)+16|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 66:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(u=c[(l&p)+16>>2]|0,(u|0)!=0):0)a[(u&n)+24>>0]=k;break}case 67:{q=c[(ca&p)+484>>2]|0;if((q|0)!=0?(D=(b[(q&o)+38>>1]|0)+-1|0,r=c[(ca&p)>>2]|0,m=Wq(r,f+(da<<4)+16|0)|0,(m|0)!=0):0){if(!(cr(ca,m)|0)){mg(r,m);break a}s=q+4|0;mg(r,c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]|0);c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]=m;l=c[(q&p)+8>>2]|0;if(l)do{if((b[(c[(l&p)+4>>2]&o)>>1]|0)==(D|0))c[(c[(l&p)+32>>2]&p)>>2]=c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2];l=c[(l&p)+20>>2]|0}while((l|0)!=0)}break}case 13:{c[(ea&p)>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];break}case 46:{ca=c[(f+(da+-3<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 47:{ca=c[(f+(da+-5<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 49:{ca=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 92:case 54:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ca+320|0;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 57:case 55:{Yq(ca,f+(da<<4)+16|0);break}case 56:{Yq(ca,f+(da+-1<<4)+16|0);break}case 58:{c[(y&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(y&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(y&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];Yq(ca,y);break}case 18:case 17:{if((Sq(ca,22,37136,0,0)|0)==0?(B=Oq(ca)|0,(B|0)!=0):0)wh(B,3,1,0,0)|0;break}case 19:{if((Sq(ca,22,37120,0,0)|0)==0?(A=Oq(ca)|0,(A|0)!=0):0)wh(A,3,1,1,0)|0;break}case 22:{Tq(ca,0,f+(da<<4)+16|0);break}case 38:{ba=c[(f+(da+-2<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=(c[(ca&p)+504>>2]|0)-ba+(c[(ca&p)+508>>2]|0);break}case 39:{x=f+(da<<4)+16|0;v=c[(ca&p)>>2]|0;k=c[(ca&p)+484>>2]|0;d:do if(k){w=k+38|0;if((b[(w&o)>>1]|0)>=(c[(v&p)+96>>2]|0)){c[(ba&p)>>2]=c[(k&p)>>2];th(ca,36528,ba);break}u=Wq(v,x)|0;if(u){s=b[(w&o)>>1]|0;h=s<<16>>16;e:do if(s<<16>>16>0){t=a[((d[(u&n)>>0]|0)&n)+9328>>0]|0;q=c[(k&p)+4>>2]|0;r=u+1|0;l=0;while(1){m=c[(q+(l*24|0)&p)>>2]|0;if(t<<24>>24==(a[((d[(m&n)>>0]|0)&n)+9328>>0]|0)?(dd(r,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break e}c[(ba&p)>>2]=u;th(ca,36552,ba);mg(v,u);break d}else q=c[(k&p)+4>>2]|0;while(0);r=k+4|0;do if(!(h&7)){q=ro(v,q,(h*24|0)+192|0,0)|0;if(!q){mg(v,u);break d}else{c[(r&p)>>2]=q;s=b[(w&o)>>1]|0;break}}while(0);ba=s<<16>>16;aa=q+(ba*24|0)|0;c[(aa&p)>>2]=0;c[(aa&p)+4>>2]=0;c[(aa&p)+8>>2]=0;c[(aa&p)+12>>2]=0;c[(aa&p)+16>>2]=0;c[(aa&p)+20>>2]=0;c[(aa&p)>>2]=u;a[(q+(ba*24|0)&n)+21>>0]=65;a[(q+(ba*24|0)&n)+22>>0]=1;b[(w&o)>>1]=(b[(w&o)>>1]|0)+1<<16>>16}}while(0);$=x;aa=c[($&p)+4>>2]|0;ba=ea;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;c[(ca&p)+324>>2]=0;break}case 62:{_q(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 63:{$q(ca,0,0,0,0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 64:{ar(ca,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 44:{l=f+(da<<4)+16|0;k=c[(ca&p)+484>>2]|0;if((k|0)!=0?(J=b[(k&o)+38>>1]|0,J<<16>>16>=1):0){ba=(J<<16>>16)+-1|0;aa=c[(k&p)+4>>2]|0;ca=Wq(c[(ca&p)>>2]|0,l)|0;c[(aa+(ba*24|0)&p)+12>>2]=ca;a[(aa+(ba*24|0)&n)+21>>0]=Xq(ca,aa+(ba*24|0)+22|0)|0}break}case 226:{l=da+-1|0;k=f+(l<<4)+16|0;r=f+(da<<4)+16|0;q=pr(c[(ca&p)>>2]|0,0,k,r)|0;s=da+-3|0;m=Zq(ca,75,c[(f+(s<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=m;if(!m){Do(c[(ca&p)>>2]|0,q);q=0}else{c[(m&p)+20>>2]=kr(ca,0,q,0,0,0,0,0,0,0)|0;q=c[(ea&p)>>2]|0;ba=q+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,q)}if(c[(f+(da+-2<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,q,0,0)|0;c[(ea&p)+4>>2]=c[(f+(s<<4)&p)+20>>2];h=c[(r&p)>>2]|0;if(!h)h=(c[(k&p)>>2]|0)+(c[(f+(l<<4)&p)+20>>2]|0)|0;else h=h+(c[(f+(da<<4)&p)+20>>2]|0)|0;c[(ea&p)+8>>2]=h;break}case 225:{l=da+-4|0;h=Zq(ca,75,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);h=0}else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];h=c[(ea&p)>>2]|0;ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 227:{h=Zq(ca,20,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 228:{k=Zq(ca,136,c[(f+(da+-3<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=k;if(!k){Nk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);Gk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)}else{l=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da+-2<<4)&p)+16>>2]|0;if(l)h=lr(ca,h,l)|0;c[(k&p)+20>>2]=h;yr(ca,c[(ea&p)>>2]|0)}c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 291:case 240:{c[(ea&p)>>2]=2;break}case 241:{c[(ea&p)>>2]=0;break}case 239:{$q(ca,f+(da+-7<<4)+16|0,f+(da+-6<<4)+16|0,pr(c[(ca&p)>>2]|0,0,f+(da+-4<<4)+16|0,0)|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-10<<4)&p)+16>>2]|0,f+(da+-11<<4)+16|0,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-8<<4)&p)+16>>2]|0)|0;break}case 229:{c[(ea&p)>>2]=lr(ca,lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 230:{c[(ea&p)>>2]=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 237:{c[(ea&p)>>2]=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 238:{c[(ea&p)>>2]=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 245:{h=lr(ca,0,vr(ca,0,f+(da+-1<<4)+16|0,1)|0)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 244:{h=vr(ca,0,f+(da+-1<<4)+16|0,1)|0;h=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,h)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 248:{v=c[(f+(da<<4)&p)+16>>2]|0;s=c[(f+(da+-1<<4)&p)+16>>2]|0;u=c[(ca&p)>>2]|0;do if((a[(u&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){r=v+12|0;k=bq(u,c[(v&p)+16>>2]|0,c[(r&p)>>2]|0)|0;if(!k){if(!s){c[(ba&p)>>2]=v;c[(ba&p)+4>>2]=0;th(ca,33056,ba)}else zr(ca,c[(r&p)>>2]|0);a[(ca&n)+17>>0]=1;break}if(a[(k&n)+51>>0]&3){c[(ba&p)>>2]=0;th(ca,33080,ba);break}s=c[(k&p)+24>>2]|0;f:do if(s){r=c[(u&p)+20>>2]|0;if((r|0)>0){q=c[(u&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break f}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);s=c[(k&p)+12>>2]|0;r=u+16|0;q=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2]|0;l=(m|0)==1?13184:13208;if(((Sq(ca,9,l,0,q)|0)==0?(Sq(ca,(m|0)==0?10:12,c[(k&p)>>2]|0,c[(s&p)>>2]|0,q)|0)==0:0)?(K=Oq(ca)|0,(K|0)!=0):0){aa=c[(ca&p)+408>>2]|0;aa=(aa|0)==0?ca:aa;Ar(ca,m);$=aa+328|0;c[($&p)>>2]=c[($&p)>>2]|1<<m;aa=aa+20|0;a[(aa&n)>>0]=d[(aa&n)>>0]|1;aa=c[(k&p)>>2]|0;c[(ba&p)>>2]=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2];c[(ba&p)+4>>2]=l;c[(ba&p)+8>>2]=aa;Br(ca,33160,ba);Cr(ca,m,28536,c[(k&p)>>2]|0);Dr(ca,m);Er(ca,c[(k&p)+40>>2]|0,m);ca=c[(k&p)>>2]|0;xh(K,wh(K,125,m,0,0)|0,ca,0)}}while(0);Do(u,v);break}case 246:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 250:case 249:{h=Oq(ca)|0;if(h){wh(h,13,0,0,0)|0;ca=h+96|0;c[(ca&p)>>2]=c[(ca&p)>>2]|1}break}case 251:{Fr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,0,0);break}case 252:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,0);break}case 253:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,0);break}case 254:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,1);break}case 255:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,1);break}case 264:{h=c[(f+(da+-3<<4)&p)+16>>2]|0;l=(c[(f+(da<<4)&p)+16>>2]|0)-h+(c[(f+(da<<4)&p)+20>>2]|0)|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;aa=ca+488|0;z=c[(aa&p)>>2]|0;A=c[(ca&p)>>2]|0;c[(aa&p)>>2]=0;g:do if((c[(ca&p)+64>>2]|0)==0&(z|0)!=0){y=c[(z&p)>>2]|0;m=z+20|0;v=c[(m&p)>>2]|0;h:do if(v){u=c[(A&p)+20>>2]|0;if((u|0)>0){s=c[(A&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(v|0))break h;if((r|0)<(u|0))q=r;else{q=r;break}}}else q=0}else q=-1e6;while(0);c[(z&p)+28>>2]=k;x=(k|0)==0;if(!x){s=k;do{c[(s&p)+4>>2]=z;s=c[(s&p)+32>>2]|0}while((s|0)!=0)}c[(_&p)>>2]=y;if(!y)s=0;else{s=y;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-y&1073741823}c[(_&p)+4>>2]=s;c[($&p)>>2]=ca;w=A+16|0;v=c[(w&p)>>2]|0;c[($&p)+12>>2]=c[(v+(q<<4)&p)>>2];c[($&p)+4>>2]=c[(v+(q<<4)&p)+12>>2];c[($&p)+16>>2]=10720;c[($&p)+20>>2]=_;v=(q|0)==1;c[($&p)+8>>2]=v&1;if(!x)do{if(fr($,c[(k&p)+8>>2]|0)|0){k=0;l=z;break g}if(Gr($,c[(k&p)+20>>2]|0)|0){k=0;l=z;break g}if(Hr($,c[(k&p)+24>>2]|0)|0){k=0;l=z;break g}k=c[(k&p)+32>>2]|0}while((k|0)!=0);if(!(Gr($,c[(z&p)+12>>2]|0)|0)){s=A+145|0;if(!(a[(s&n)>>0]|0)){r=Oq(ca)|0;if(!r){k=0;l=z;break}aa=c[(ca&p)+408>>2]|0;Ar(ca,q);aa=((aa|0)==0?ca:aa)+328|0;c[(aa&p)>>2]=c[(aa&p)>>2]|1<<q;if((h|0)!=0?(t=jw(l|0,0,1,0)|0,t=mh(A,t,G)|0,(t|0)!=0):0){kw(t|0,h|0,l|0)|0;a[(t+l&n)>>0]=0}else t=0;aa=c[(z&p)+4>>2]|0;c[(ba&p)>>2]=c[((c[(w&p)>>2]|0)+(q<<4)&p)>>2];c[(ba&p)+4>>2]=v?13184:13208;c[(ba&p)+8>>2]=y;c[(ba&p)+12>>2]=aa;c[(ba&p)+16>>2]=t;Br(ca,30008,ba);mg(A,t);Dr(ca,q);c[(ba&p)>>2]=y;Ir(r,q,uh(A,30072,ba)|0);if(!(a[(s&n)>>0]|0)){k=0;l=z;break}}l=Ik((c[((c[(w&p)>>2]|0)+(q<<4)&p)+12>>2 (…)
[all...]
H A Dsqlite-safe-heap.js[all...]
/external/chromium-trace/catapult/tracing/third_party/d3/
H A Dd3.min.js2 },t.clipExtent=function(n){return arguments.length?(w=n,_=n?Pe(n[0][0],n[0][1],n[1][0],n[1][1]):bt,u()):w},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(g=+n[0],p=+n[1],r()):[g,p]},t.center=function(n){return arguments.length?(v=n[0]%360*Na,d=n[1]%360*Na,r()):[v*La,d*La]},t.rotate=function(n){return arguments.length?(m=n[0]%360*Na,y=n[1]%360*Na,x=n.length>2?n[2]%360*Na:0,r()):[m*La,y*La,x*La]},Xo.rebind(t,f,"precision"),function(){return i=n.apply(this,arguments),t.invert=i.invert&&e,r()}}function tr(n){return Ke(n,function(t,e){n.point(t*Na,e*Na)})}function er(n,t){return[n,t]}function rr(n,t){return[n>Sa?n-ka:-Sa>n?n+ka:n,t]}function ur(n,t,e){return n?t||e?Ue(or(n),ar(t,e)):or(n):t||e?ar(t,e):rr}function ir(n){return function(t,e){return t+=n,[t>Sa?t-ka:-Sa>t?t+ka:t,e]}}function or(n){var t=ir(n);return t.invert=ir(-n),t}function ar(n,t){function e(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,s=Math.sin(t),l=s*r+a*u;return[Math.atan2(c*i-l*o,a*r-s*u),X(l*i+c*o)]}var r=Math.cos(n),u=Math.sin(n),i=Math.cos(t),o=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,s=Math.sin(t),l=s*i-c*o;return[Math.atan2(c*i+s*o,a*r+l*u),X(l*r-a*u)]},e}function cr(n,t){var e=Math.cos(n),r=Math.sin(n);return function(u,i,o,a){var c=o*t;null!=u?(u=sr(e,u),i=sr(e,i),(o>0?i>u:u>i)&&(u+=o*ka)):(u=n+o*ka,i=n-.5*c);for(var s,l=u;o>0?l>i:i>l;l-=c)a.point((s=ve([e,-r*Math.cos(l),-r*Math.sin(l)]))[0],s[1])}}function sr(n,t){var e=se(t);e[0]-=n,pe(e);var r=V(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Aa)%(2*Math.PI)}function lr(n,t,e){var r=Xo.range(n,t-Aa,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function fr(n,t,e){var r=Xo.range(n,t-Aa,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function hr(n){return n.source}function gr(n){return n.target}function pr(n,t,e,r){var u=Math.cos(t),i=Math.sin(t),o=Math.cos(r),a=Math.sin(r),c=u*Math.cos(n),s=u*Math.sin(n),l=o*Math.cos(e),f=o*Math.sin(e),h=2*Math.asin(Math.sqrt(J(r-t)+u*o*J(e-n))),g=1/Math.sin(h),p=h?function(n){var t=Math.sin(n*=h)*g,e=Math.sin(h-n)*g,r=e*c+t*l,u=e*s+t*f,o=e*i+t*a;return[Math.atan2(u,r)*La,Math.atan2(o,Math.sqrt(r*r+u*u))*La]}:function(){return[n*La,t*La]};return p.distance=h,p}function vr(){function n(n,u){var i=Math.sin(u*=Na),o=Math.cos(u),a=oa((n*=Na)-t),c=Math.cos(a);Uc+=Math.atan2(Math.sqrt((a=o*Math.sin(a))*a+(a=r*i-e*o*c)*a),e*i+r*o*c),t=n,e=i,r=o}var t,e,r;jc.point=function(u,i){t=u*Na,e=Math.sin(i*=Na),r=Math.cos(i),jc.point=n},jc.lineEnd=function(){jc.point=jc.lineEnd=g}}function dr(n,t){function e(t,e){var r=Math.cos(t),u=Math.cos(e),i=n(r*u);return[i*u*Math.sin(t),i*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),u=t(r),i=Math.sin(u),o=Math.cos(u);return[Math.atan2(n*i,r*o),Math.asin(r&&e*i/r)]},e}function mr(n,t){function e(n,t){var e=oa(oa(t)-Ea)<Aa?0:o/Math.pow(u(t),i);return[e*Math.sin(i*n),o-e*Math.cos(i*n)]}var r=Math.cos(n),u=function(n){return Math.tan(Sa/4+n/2)},i=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(u(t)/u(n)),o=r*Math.pow(u(n),i)/i;return i?(e.invert=function(n,t){var e=o-t,r=I(i)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/i,2*Math.atan(Math.pow(o/r,1/i))-Ea]},e):xr}function yr(n,t){function e(n,t){var e=i-t;return[e*Math.sin(u*n),i-e*Math.cos(u*n)]}var r=Math.cos(n),u=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),i=r/u+n;return oa(u)<Aa?er:(e.invert=function(n,t){var e=i-t;return[Math.atan2(n,e)/u,i-I(u)*Math.sqrt(n*n+e*e)]},e)}function xr(n,t){return[n,Math.log(Math.tan(Sa/4+t/2))]}function Mr(n){var t,e=Qe(n),r=e.scale,u=e.translate,i=e.clipExtent;return e.scale=function(){var n=r.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.translate=function(){var n=u.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.clipExtent=function(n){var o=i.apply(e,arguments);if(o===e){if(t=null==n){var a=Sa*r(),c=u();i([[c[0]-a,c[1]-a],[c[0]+a,c[1]+a]])}}else t&&(o=null);return o},e.clipExtent(null)}function _r(n,t){return[Math.log(Math.tan(Sa/4+t/2)),-n]}function br(n){return n[0]}function wr(n){return n[1]}function Sr(n){for(var t=n.length,e=[0,1],r=2,u=2;t>u;u++){for(;r>1&&Z(n[e[r-2]],n[e[r-1]],n[u])<=0;)--r;e[r++]=u}return e.slice(0,r)}function kr(n,t){return n[0]-t[0]||n[1]-t[1]}function Er(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Ar(n,t,e,r){var u=n[0],i=e[0],o=t[0]-u,a=r[0]-i,c=n[1],s=e[1],l=t[1]-c,f=r[1]-s,h=(a*(c-s)-f*(u-i))/(f*o-a*l);return[u+h*o,c+h*l]}function Cr(n){var t=n[0],e=n[n.length-1];return!(t[0]-e[0]||t[1]-e[1])}function Nr(){Jr(this),this.edge=this.site=this.circle=null}function Lr(n){var t=Jc.pop()||new Nr;return t.site=n,t}function Tr(n){Or(n),$c.remove(n),Jc.push(n),Jr(n)}function qr(n){var t=n.circle,e=t.x,r=t.cy,u={x:e,y:r},i=n.P,o=n.N,a=[n];Tr(n);for(var c=i;c.circle&&oa(e-c.circle.x)<Aa&&oa(r-c.circle.cy)<Aa;)i=c.P,a.unshift(c),Tr(c),c=i;a.unshift(c),Or(c);for(var s=o;s.circle&&oa(e-s.circle.x)<Aa&&oa(r-s.circle.cy)<Aa;)o=s.N,a.push(s),Tr(s),s=o;a.push(s),Or(s);var l,f=a.length;for(l=1;f>l;++l)s=a[l],c=a[l-1],$r(s.edge,c.site,s.site,u);c=a[0],s=a[f-1],s.edge=Vr(c.site,s.site,null,u),Fr(c),Fr(s)}function zr(n){for(var t,e,r,u,i=n.x,o=n.y,a=$c._;a;)if(r=Rr(a,o)-i,r>Aa)a=a.L;else{if(u=i-Dr(a,o),!(u>Aa)){r>-Aa?(t=a.P,e=a):u>-Aa?(t=a,e=a.N):t=e=a;break}if(!a.R){t=a;break}a=a.R}var c=Lr(n);if($c.insert(t,c),t||e){if(t===e)return Or(t),e=Lr(t.site),$c.insert(c,e),c.edge=e.edge=Vr(t.site,c.site),Fr(t),Fr(e),void 0;if(!e)return c.edge=Vr(t.site,c.site),void 0;Or(t),Or(e);var s=t.site,l=s.x,f=s.y,h=n.x-l,g=n.y-f,p=e.site,v=p.x-l,d=p.y-f,m=2*(h*d-g*v),y=h*h+g*g,x=v*v+d*d,M={x:(d*y-g*x)/m+l,y:(h*x-v*y)/m+f};$r(e.edge,s,p,M),c.edge=Vr(s,n,null,M),e.edge=Vr(n,p,null,M),Fr(t),Fr(e)}}function Rr(n,t){var e=n.site,r=e.x,u=e.y,i=u-t;if(!i)return r;var o=n.P;if(!o)return-1/0;e=o.site;var a=e.x,c=e.y,s=c-t;if(!s)return a;var l=a-r,f=1/i-1/s,h=l/s;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*s)-c+s/2+u-i/2)))/f+r:(r+a)/2}function Dr(n,t){var e=n.N;if(e)return Rr(e,t);var r=n.site;return r.y===t?r.x:1/0}function Pr(n){this.site=n,this.edges=[]}function Ur(n){for(var t,e,r,u,i,o,a,c,s,l,f=n[0][0],h=n[1][0],g=n[0][1],p=n[1][1],v=Xc,d=v.length;d--;)if(i=v[d],i&&i.prepare())for(a=i.edges,c=a.length,o=0;c>o;)l=a[o].end(),r=l.x,u=l.y,s=a[++o%c].start(),t=s.x,e=s.y,(oa(r-t)>Aa||oa(u-e)>Aa)&&(a.splice(o,0,new Br(Xr(i.site,l,oa(r-f)<Aa&&p-u>Aa?{x:f,y:oa(t-f)<Aa?e:p}:oa(u-p)<Aa&&h-r>Aa?{x:oa(e-p)<Aa?t:h,y:p}:oa(r-h)<Aa&&u-g>Aa?{x:h,y:oa(t-h)<Aa?e:g}:oa(u-g)<Aa&&r-f>Aa?{x:oa(e-g)<Aa?t:f,y:g}:null),i.site,null)),++c)}function jr(n,t){return t.angle-n.angle}function Hr(){Jr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Fr(n){var t=n.P,e=n.N;if(t&&e){var r=t.site,u=n.site,i=e.site;if(r!==i){var o=u.x,a=u.y,c=r.x-o,s=r.y-a,l=i.x-o,f=i.y-a,h=2*(c*f-s*l);if(!(h>=-Ca)){var g=c*c+s*s,p=l*l+f*f,v=(f*g-s*p)/h,d=(c*p-l*g)/h,f=d+a,m=Gc.pop()||new Hr;m.arc=n,m.site=u,m.x=v+o,m.y=f+Math.sqrt(v*v+d*d),m.cy=f,n.circle=m;for(var y=null,x=Wc._;x;)if(m.y<x.y||m.y===x.y&&m.x<=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}Wc.insert(y,m),y||(Bc=m)}}}}function Or(n){var t=n.circle;t&&(t.P||(Bc=t.N),Wc.remove(t),Gc.push(t),Jr(t),n.circle=null)}function Yr(n){for(var t,e=Vc,r=De(n[0][0],n[0][1],n[1][0],n[1][1]),u=e.length;u--;)t=e[u],(!Ir(t,n)||!r(t)||oa(t.a.x-t.b.x)<Aa&&oa(t.a.y-t.b.y)<Aa)&&(t.a=t.b=null,e.splice(u,1))}function Ir(n,t){var e=n.b;if(e)return!0;var r,u,i=n.a,o=t[0][0],a=t[1][0],c=t[0][1],s=t[1][1],l=n.l,f=n.r,h=l.x,g=l.y,p=f.x,v=f.y,d=(h+p)/2,m=(g+v)/2;if(v===g){if(o>d||d>=a)return;if(h>p){if(i){if(i.y>=s)return}else i={x:d,y:c};e={x:d,y:s}}else{if(i){if(i.y<c)return}else i={x:d,y:s};e={x:d,y:c}}}else if(r=(h-p)/(v-g),u=m-r*d,-1>r||r>1)if(h>p){if(i){if(i.y>=s)return}else i={x:(c-u)/r,y:c};e={x:(s-u)/r,y:s}}else{if(i){if(i.y<c)return}else i={x:(s-u)/r,y:s};e={x:(c-u)/r,y:c}}else if(v>g){if(i){if(i.x>=a)return}else i={x:o,y:r*o+u};e={x:a,y:r*a+u}}else{if(i){if(i.x<o)return}else i={x:a,y:r*a+u};e={x:o,y:r*o+u}}return n.a=i,n.b=e,!0}function Zr(n,t){this.l=n,this.r=t,this.a=this.b=null}function Vr(n,t,e,r){var u=new Zr(n,t);return Vc.push(u),e&&$r(u,n,t,e),r&&$r(u,t,n,r),Xc[n.i].edges.push(new Br(u,n,t)),Xc[t.i].edges.push(new Br(u,t,n)),u}function Xr(n,t,e){var r=new Zr(n,null);return r.a=t,r.b=e,Vc.push(r),r}function $r(n,t,e,r){n.a||n.b?n.l===e?n.b=r:n.a=r:(n.a=r,n.l=t,n.r=e)}function Br(n,t,e){var r=n.a,u=n.b;this.edge=n,this.site=t,this.angle=e?Math.atan2(e.y-t.y,e.x-t.x):n.l===t?Math.atan2(u.x-r.x,r.y-u.y):Math.atan2(r.x-u.x,u.y-r.y)}function Wr(){this._=null}function Jr(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function Gr(n,t){var e=t,r=t.R,u=e.U;u?u.L===e?u.L=r:u.R=r:n._=r,r.U=u,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function Kr(n,t){var e=t,r=t.L,u=e.U;u?u.L===e?u.L=r:u.R=r:n._=r,r.U=u,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function Qr(n){for(;n.L;)n=n.L;return n}function nu(n,t){var e,r,u,i=n.sort(tu).pop();for(Vc=[],Xc=new Array(n.length),$c=new Wr,Wc=new Wr;;)if(u=Bc,i&&(!u||i.y<u.y||i.y===u.y&&i.x<u.x))(i.x!==e||i.y!==r)&&(Xc[i.i]=new Pr(i),zr(i),e=i.x,r=i.y),i=n.pop();else{if(!u)break;qr(u.arc)}t&&(Yr(t),Ur(t));var o={cells:Xc,edges:Vc};return $c=Wc=Vc=Xc=null,o}function tu(n,t){return t.y-n.y||t.x-n.x}function eu(n,t,e){return(n.x-e.x)*(t.y-n.y)-(n.x-t.x)*(e.y-n.y)}function ru(n){return n.x}function uu(n){return n.y}function iu(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function ou(n,t,e,r,u,i){if(!n(t,e,r,u,i)){var o=.5*(e+u),a=.5*(r+i),c=t.nodes;c[0]&&ou(n,c[0],e,r,o,a),c[1]&&ou(n,c[1],o,r,u,a),c[2]&&ou(n,c[2],e,a,o,i),c[3]&&ou(n,c[3],o,a,u,i)}}function au(n,t){n=Xo.rgb(n),t=Xo.rgb(t);var e=n.r,r=n.g,u=n.b,i=t.r-e,o=t.g-r,a=t.b-u;return function(n){return"#"+vt(Math.round(e+i*n))+vt(Math.round(r+o*n))+vt(Math.round(u+a*n))}}function cu(n,t){var e,r={},u={};for(e in n)e in t?r[e]=fu(n[e],t[e]):u[e]=n[e];for(e in t)e in n||(u[e]=t[e]);return function(n){for(e in r)u[e]=r[e](n);return u}}function su(n,t){return t-=n=+n,function(e){return n+t*e}}function lu(n,t){var e,r,u,i,o,a=0,c=0,s=[],l=[];for(n+="",t+="",Qc.lastIndex=0,r=0;e=Qc.exec(t);++r)e.index&&s.push(t.substring(a,c=e.index)),l.push({i:s.length,x:e[0]}),s.push(null),a=Qc.lastIndex;for(a<t.length&&s.push(t.substring(a)),r=0,i=l.length;(e=Qc.exec(n))&&i>r;++r)if(o=l[r],o.x==e[0]){if(o.i)if(null==s[o.i+1])for(s[o.i-1]+=o.x,s.splice(o.i,1),u=r+1;i>u;++u)l[u].i--;else for(s[o.i-1]+=o.x+s[o.i+1],s.splice(o.i,2),u=r+1;i>u;++u)l[u].i-=2;else if(null==s[o.i+1])s[o.i]=o.x;else for(s[o.i]=o.x+s[o.i+1],s.splice(o.i+1,1),u=r+1;i>u;++u)l[u].i--;l.splice(r,1),i--,r--}else o.x=su(parseFloat(e[0]),parseFloat(o.x));for(;i>r;)o=l.pop(),null==s[o.i+1]?s[o.i]=o.x:(s[o.i]=o.x+s[o.i+1],s.splice(o.i+1,1)),i--;return 1===s.length?null==s[0]?(o=l[0].x,function(n){return o(n)+""}):function(){return t}:function(n){for(r=0;i>r;++r)s[(o=l[r]).i]=o.x(n);return s.join("")}}function fu(n,t){for(var e,r=Xo.interpolators.length;--r>=0&&!(e=Xo.interpolators[r](n,t)););return e}function hu(n,t){var e,r=[],u=[],i=n.length,o=t.length,a=Math.min(n.length,t.length);for(e=0;a>e;++e)r.push(fu(n[e],t[e]));for(;i>e;++e)u[e]=n[e];for(;o>e;++e)u[e]=t[e];return function(n){for(e=0;a>e;++e)u[e]=r[e](n);return u}}function gu(n){return function(t){return 0>=t?0:t>=1?1:n(t)}}function pu(n){return function(t){return 1-n(1-t)}}function vu(n){return function(t){return.5*(.5>t?n(2*t):2-n(2-2*t))}}function du(n){return n*n}function mu(n){return n*n*n}function yu(n){if(0>=n)return 0;if(n>=1)return 1;var t=n*n,e=t*n;return 4*(.5>n?e:3*(n-t)+e-.75)}function xu(n){return function(t){return Math.pow(t,n)}}function Mu(n){return 1-Math.cos(n*Ea)}function _u(n){return Math.pow(2,10*(n-1))}function bu(n){return 1-Math.sqrt(1-n*n)}function wu(n,t){var e;return arguments.length<2&&(t=.45),arguments.length?e=t/ka*Math.asin(1/n):(n=1,e=t/4),function(r){return 1+n*Math.pow(2,-10*r)*Math.sin((r-e)*ka/t)}}function Su(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function ku(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Eu(n,t){n=Xo.hcl(n),t=Xo.hcl(t);var e=n.h,r=n.c,u=n.l,i=t.h-e,o=t.c-r,a=t.l-u;return isNaN(o)&&(o=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return rt(e+i*n,r+o*n,u+a*n)+""}}function Au(n,t){n=Xo.hsl(n),t=Xo.hsl(t);var e=n.h,r=n.s,u=n.l,i=t.h-e,o=t.s-r,a=t.l-u;return isNaN(o)&&(o=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return nt(e+i*n,r+o*n,u+a*n)+""}}function Cu(n,t){n=Xo.lab(n),t=Xo.lab(t);var e=n.l,r=n.a,u=n.b,i=t.l-e,o=t.a-r,a=t.b-u;return function(n){return ot(e+i*n,r+o*n,u+a*n)+""}}function Nu(n,t){return t-=n,function(e){return Math.round(n+t*e)}}function Lu(n){var t=[n.a,n.b],e=[n.c,n.d],r=qu(t),u=Tu(t,e),i=qu(zu(e,t,-u))||0;t[0]*e[1]<e[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,u*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-e[0],e[1]))*La,this.translate=[n.e,n.f],this.scale=[r,i],this.skew=i?Math.atan2(u,i)*La:0}function Tu(n,t){return n[0]*t[0]+n[1]*t[1]}function qu(n){var t=Math.sqrt(Tu(n,n));return t&&(n[0]/=t,n[1]/=t),t}function zu(n,t,e){return n[0]+=e*t[0],n[1]+=e*t[1],n}function Ru(n,t){var e,r=[],u=[],i=Xo.transform(n),o=Xo.transform(t),a=i.translate,c=o.translate,s=i.rotate,l=o.rotate,f=i.skew,h=o.skew,g=i.scale,p=o.scale;return a[0]!=c[0]||a[1]!=c[1]?(r.push("translate(",null,",",null,")"),u.push({i:1,x:su(a[0],c[0])},{i:3,x:su(a[1],c[1])})):c[0]||c[1]?r.push("translate("+c+")"):r.push(""),s!=l?(s-l>180?l+=360:l-s>180&&(s+=360),u.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:su(s,l)})):l&&r.push(r.pop()+"rotate("+l+")"),f!=h?u.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:su(f,h)}):h&&r.push(r.pop()+"skewX("+h+")"),g[0]!=p[0]||g[1]!=p[1]?(e=r.push(r.pop()+"scale(",null,",",null,")"),u.push({i:e-4,x:su(g[0],p[0])},{i:e-2,x:su(g[1],p[1])})):(1!=p[0]||1!=p[1])&&r.push(r.pop()+"scale("+p+")"),e=u.length,function(n){for(var t,i=-1;++i<e;)r[(t=u[i]).i]=t.x(n);return r.join("")}}function Du(n,t){return t=t-(n=+n)?1/(t-n):0,function(e){return(e-n)*t}}function Pu(n,t){return t=t-(n=+n)?1/(t-n):0,function(e){return Math.max(0,Math.min(1,(e-n)*t))}}function Uu(n){for(var t=n.source,e=n.target,r=Hu(t,e),u=[t];t!==r;)t=t.parent,u.push(t);for(var i=u.length;e!==r;)u.splice(i,0,e),e=e.parent;return u}function ju(n){for(var t=[],e=n.parent;null!=e;)t.push(n),n=e,e=e.parent;return t.push(n),t}function Hu(n,t){if(n===t)return n;for(var e=ju(n),r=ju(t),u=e.pop(),i=r.pop(),o=null;u===i;)o=u,u=e.pop(),i=r.pop();return o}function Fu(n){n.fixed|=2}function Ou(n){n.fixed&=-7}function Yu(n){n.fixed|=4,n.px=n.x,n.py=n.y}function Iu(n){n.fixed&=-5}function Zu(n,t,e){var r=0,u=0;if(n.charge=0,!n.leaf)for(var i,o=n.nodes,a=o.length,c=-1;++c<a;)i=o[c],null!=i&&(Zu(i,t,e),n.charge+=i.charge,r+=i.charge*i.cx,u+=i.charge*i.cy);if(n.point){n.leaf||(n.point.x+=Math.random()-.5,n.point.y+=Math.random()-.5);var s=t*e[n.point.index];n.charge+=n.pointCharge=s,r+=s*n.point.x,u+=s*n.point.y}n.cx=r/n.charge,n.cy=u/n.charge}function Vu(n,t){return Xo.rebind(n,t,"sort","children","value"),n.nodes=n,n.links=Wu,n}function Xu(n){return n.children}function $u(n){return n.value}function Bu(n,t){return t.value-n.value}function Wu(n){return Xo.merge(n.map(function(n){return(n.children||[]).map(function(t){return{source:n,target:t}})}))}function Ju(n){return n.x}function Gu(n){return n.y}function Ku(n,t,e){n.y0=t,n.y=e}function Qu(n){return Xo.range(n.length)}function ni(n){for(var t=-1,e=n[0].length,r=[];++t<e;)r[t]=0;return r}function ti(n){for(var t,e=1,r=0,u=n[0][1],i=n.length;i>e;++e)(t=n[e][1])>u&&(r=e,u=t);return r}function ei(n){return n.reduce(ri,0)}function ri(n,t){return n+t[1]}function ui(n,t){return ii(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function ii(n,t){for(var e=-1,r=+n[0],u=(n[1]-r)/t,i=[];++e<=t;)i[e]=u*e+r;return i}function oi(n){return[Xo.min(n),Xo.max(n)]}function ai(n,t){return n.parent==t.parent?1:2}function ci(n){var t=n.children;return t&&t.length?t[0]:n._tree.thread}function si(n){var t,e=n.children;return e&&(t=e.length)?e[t-1]:n._tree.thread}function li(n,t){var e=n.children;if(e&&(u=e.length))for(var r,u,i=-1;++i<u;)t(r=li(e[i],t),n)>0&&(n=r);return n}function fi(n,t){return n.x-t.x}function hi(n,t){return t.x-n.x}function gi(n,t){return n.depth-t.depth}function pi(n,t){function e(n,r){var u=n.children;if(u&&(o=u.length))for(var i,o,a=null,c=-1;++c<o;)i=u[c],e(i,a),a=i;t(n,r)}e(n,null)}function vi(n){for(var t,e=0,r=0,u=n.children,i=u.length;--i>=0;)t=u[i]._tree,t.prelim+=e,t.mod+=e,e+=t.shift+(r+=t.change)}function di(n,t,e){n=n._tree,t=t._tree;var r=e/(t.number-n.number);n.change+=r,t.change-=r,t.shift+=e,t.prelim+=e,t.mod+=e}function mi(n,t,e){return n._tree.ancestor.parent==t.parent?n._tree.ancestor:e}function yi(n,t){return n.value-t.value}function xi(n,t){var e=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=e,e._pack_prev=t}function Mi(n,t){n._pack_next=t,t._pack_prev=n}function _i(n,t){var e=t.x-n.x,r=t.y-n.y,u=n.r+t.r;return.999*u*u>e*e+r*r}function bi(n){function t(n){l=Math.min(n.x-n.r,l),f=Math.max(n.x+n.r,f),h=Math.min(n.y-n.r,h),g=Math.max(n.y+n.r,g)}if((e=n.children)&&(s=e.length)){var e,r,u,i,o,a,c,s,l=1/0,f=-1/0,h=1/0,g=-1/0;if(e.forEach(wi),r=e[0],r.x=-r.r,r.y=0,t(r),s>1&&(u=e[1],u.x=u.r,u.y=0,t(u),s>2))for(i=e[2],Ei(r,u,i),t(i),xi(r,i),r._pack_prev=i,xi(i,u),u=r._pack_next,o=3;s>o;o++){Ei(r,u,i=e[o]);var p=0,v=1,d=1;for(a=u._pack_next;a!==u;a=a._pack_next,v++)if(_i(a,i)){p=1;break}if(1==p)for(c=r._pack_prev;c!==a._pack_prev&&!_i(c,i);c=c._pack_prev,d++);p?(d>v||v==d&&u.r<r.r?Mi(r,u=a):Mi(r=c,u),o--):(xi(r,i),u=i,t(i))}var m=(l+f)/2,y=(h+g)/2,x=0;for(o=0;s>o;o++)i=e[o],i.x-=m,i.y-=y,x=Math.max(x,i.r+Math.sqrt(i.x*i.x+i.y*i.y));n.r=x,e.forEach(Si)}}function wi(n){n._pack_next=n._pack_prev=n}function Si(n){delete n._pack_next,delete n._pack_prev}function ki(n,t,e,r){var u=n.children;if(n.x=t+=r*n.x,n.y=e+=r*n.y,n.r*=r,u)for(var i=-1,o=u.length;++i<o;)ki(u[i],t,e,r)}function Ei(n,t,e){var r=n.r+e.r,u=t.x-n.x,i=t.y-n.y;if(r&&(u||i)){var o=t.r+e.r,a=u*u+i*i;o*=o,r*=r;var c=.5+(r-o)/(2*a),s=Math.sqrt(Math.max(0,2*o*(r+a)-(r-=a)*r-o*o))/(2*a);e.x=n.x+c*u+s*i,e.y=n.y+c*i-s*u}else e.x=n.x+r,e.y=n.y}function Ai(n){return 1+Xo.max(n,function(n){return n.y})}function Ci(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function Ni(n){var t=n.children;return t&&t.length?Ni(t[0]):n}function Li(n){var t,e=n.children;return e&&(t=e.length)?Li(e[t-1]):n}function Ti(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function qi(n,t){var e=n.x+t[3],r=n.y+t[0],u=n.dx-t[1]-t[3],i=n.dy-t[0]-t[2];return 0>u&&(e+=u/2,u=0),0>i&&(r+=i/2,i=0),{x:e,y:r,dx:u,dy:i}}function zi(n){var t=n[0],e=n[n.length-1];return e>t?[t,e]:[e,t]}function Ri(n){return n.rangeExtent?n.rangeExtent():zi(n.range())}function Di(n,t,e,r){var u=e(n[0],n[1]),i=r(t[0],t[1]);return function(n){return i(u(n))}}function Pi(n,t){var e,r=0,u=n.length-1,i=n[r],o=n[u];return i>o&&(e=r,r=u,u=e,e=i,i=o,o=e),n[r]=t.floor(i),n[u]=t.ceil(o),n}function Ui(n){return n?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:ls}function ji(n,t,e,r){var u=[],i=[],o=0,a=Math.min(n.length,t.length)-1;for(n[a]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++o<=a;)u.push(e(n[o-1],n[o])),i.push(r(t[o-1],t[o]));return function(t){var e=Xo.bisect(n,t,1,a)-1;return i[e](u[e](t))}}function Hi(n,t,e,r){function u(){var u=Math.min(n.length,t.length)>2?ji:Di,c=r?Pu:Du;return o=u(n,t,c,e),a=u(t,n,c,fu),i}function i(n){return o(n)}var o,a;return i.invert=function(n){return a(n)},i.domain=function(t){return arguments.length?(n=t.map(Number),u()):n},i.range=function(n){return arguments.length?(t=n,u()):t},i.rangeRound=function(n){return i.range(n).interpolate(Nu)},i.clamp=function(n){return arguments.length?(r=n,u()):r},i.interpolate=function(n){return arguments.length?(e=n,u()):e},i.ticks=function(t){return Ii(n,t)},i.tickFormat=function(t,e){return Zi(n,t,e)},i.nice=function(t){return Oi(n,t),u()},i.copy=function(){return Hi(n,t,e,r)},u()}function Fi(n,t){return Xo.rebind(n,t,"range","rangeRound","interpolate","clamp")}function Oi(n,t){return Pi(n,Ui(Yi(n,t)[2]))}function Yi(n,t){null==t&&(t=10);var e=zi(n),r=e[1]-e[0],u=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*u;return.15>=i?u*=10:.35>=i?u*=5:.75>=i&&(u*=2),e[0]=Math.ceil(e[0]/u)*u,e[1]=Math.floor(e[1]/u)*u+.5*u,e[2]=u,e}function Ii(n,t){return Xo.range.apply(Xo,Yi(n,t))}function Zi(n,t,e){var r=Yi(n,t);return Xo.format(e?e.replace(Qa,function(n,t,e,u,i,o,a,c,s,l){return[t,e,u,i,o,a,c,s||"."+Xi(l,r),l].join("")}):",."+Vi(r[2])+"f")}function Vi(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function Xi(n,t){var e=Vi(t[2]);return n in fs?Math.abs(e-Vi(Math.max(Math.abs(t[0]),Math.abs(t[1]))))+ +("e"!==n):e-2*("%"===n)}function $i(n,t,e,r){function u(n){return(e?Math.log(0>n?0:n):-Math.log(n>0?0:-n))/Math.log(t)}function i(n){return e?Math.pow(t,n):-Math.pow(t,-n)}function o(t){return n(u(t))}return o.invert=function(t){return i(n.invert(t))},o.domain=function(t){return arguments.length?(e=t[0]>=0,n.domain((r=t.map(Number)).map(u)),o):r},o.base=function(e){return arguments.length?(t=+e,n.domain(r.map(u)),o):t},o.nice=function(){var t=Pi(r.map(u),e?Math:gs);return n.domain(t),r=t.map(i),o},o.ticks=function(){var n=zi(r),o=[],a=n[0],c=n[1],s=Math.floor(u(a)),l=Math.ceil(u(c)),f=t%1?2:t;if(isFinite(l-s)){if(e){for(;l>s;s++)for(var h=1;f>h;h++)o.push(i(s)*h);o.push(i(s))}else for(o.push(i(s));s++<l;)for(var h=f-1;h>0;h--)o.push(i(s)*h);for(s=0;o[s]<a;s++);for(l=o.length;o[l-1]>c;l--);o=o.slice(s,l)}return o},o.tickFormat=function(n,t){if(!arguments.length)return hs;arguments.length<2?t=hs:"function"!=typeof t&&(t=Xo.format(t));var r,a=Math.max(.1,n/o.ticks().length),c=e?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(n){return n/i(c(u(n)+r))<=a?t(n):""}},o.copy=function(){return $i(n.copy(),t,e,r)},Fi(o,n)}function Bi(n,t,e){function r(t){return n(u(t))}var u=Wi(t),i=Wi(1/t);return r.invert=function(t){return i(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain((e=t.map(Number)).map(u)),r):e},r.ticks=function(n){return Ii(e,n)},r.tickFormat=function(n,t){return Zi(e,n,t)},r.nice=function(n){return r.domain(Oi(e,n))},r.exponent=function(o){return arguments.length?(u=Wi(t=o),i=Wi(1/t),n.domain(e.map(u)),r):t},r.copy=function(){return Bi(n.copy(),t,e)},Fi(r,n)}function Wi(n){return function(t){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}}function Ji(n,t){function e(e){return o[((i.get(e)||"range"===t.t&&i.set(e,n.push(e)))-1)%o.length]}function r(t,e){return Xo.range(n.length).map(function(n){return t+e*n})}var i,o,a;return e.domain=function(r){if(!arguments.length)return n;n=[],i=new u;for(var o,a=-1,c=r.length;++a<c;)i.has(o=r[a])||i.set(o,n.push(o));return e[t.t].apply(e,t.a)},e.range=function(n){return arguments.length?(o=n,a=0,t={t:"range",a:arguments},e):o},e.rangePoints=function(u,i){arguments.length<2&&(i=0);var c=u[0],s=u[1],l=(s-c)/(Math.max(1,n.length-1)+i);return o=r(n.length<2?(c+s)/2:c+l*i/2,l),a=0,t={t:"rangePoints",a:arguments},e},e.rangeBands=function(u,i,c){arguments.length<2&&(i=0),arguments.length<3&&(c=i);var s=u[1]<u[0],l=u[s-0],f=u[1-s],h=(f-l)/(n.length-i+2*c);return o=r(l+h*c,h),s&&o.reverse(),a=h*(1-i),t={t:"rangeBands",a:arguments},e},e.rangeRoundBands=function(u,i,c){arguments.length<2&&(i=0),arguments.length<3&&(c=i);var s=u[1]<u[0],l=u[s-0],f=u[1-s],h=Math.floor((f-l)/(n.length-i+2*c)),g=f-l-(n.length-i)*h;return o=r(l+Math.round(g/2),h),s&&o.reverse(),a=Math.round(h*(1-i)),t={t:"rangeRoundBands",a:arguments},e},e.rangeBand=function(){return a},e.rangeExtent=function(){return zi(t.a[0])},e.copy=function(){return Ji(n,t)},e.domain(n)}function Gi(n,t){function e(){var e=0,i=t.length;for(u=[];++e<i;)u[e-1]=Xo.quantile(n,e/i);return r}function r(n){return isNaN(n=+n)?void 0:t[Xo.bisect(u,n)]}var u;return r.domain=function(t){return arguments.length?(n=t.filter(function(n){return!isNaN(n)}).sort(Xo.ascending),e()):n},r.range=function(n){return arguments.length?(t=n,e()):t},r.quantiles=function(){return u},r.invertExtent=function(e){return e=t.indexOf(e),0>e?[0/0,0/0]:[e>0?u[e-1]:n[0],e<u.length?u[e]:n[n.length-1]]},r.copy=function(){return Gi(n,t)},e()}function Ki(n,t,e){function r(t){return e[Math.max(0,Math.min(o,Math.floor(i*(t-n))))]}function u(){return i=e.length/(t-n),o=e.length-1,r}var i,o;return r.domain=function(e){return arguments.length?(n=+e[0],t=+e[e.length-1],u()):[n,t]},r.range=function(n){return arguments.length?(e=n,u()):e},r.invertExtent=function(t){return t=e.indexOf(t),t=0>t?0/0:t/i+n,[t,t+1/i]},r.copy=function(){return Ki(n,t,e)},u()}function Qi(n,t){function e(e){return e>=e?t[Xo.bisect(n,e)]:void 0}return e.domain=function(t){return arguments.length?(n=t,e):n},e.range=function(n){return arguments.length?(t=n,e):t},e.invertExtent=function(e){return e=t.indexOf(e),[n[e-1],n[e]]},e.copy=function(){return Qi(n,t)},e}function no(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=e.map(t),t):n},t.ticks=function(t){return Ii(n,t)},t.tickFormat=function(t,e){return Zi(n,t,e)},t.copy=function(){return no(n)},t}function to(n){return n.innerRadius}function eo(n){return n.outerRadius}function ro(n){return n.startAngle}function uo(n){return n.endAngle}function io(n){function t(t){function o(){s.push("M",i(n(l),a))}for(var c,s=[],l=[],f=-1,h=t.length,g=_t(e),p=_t(r);++f<h;)u.call(this,c=t[f],f)?l.push([+g.call(this,c,f),+p.call(this,c,f)]):l.length&&(o(),l=[]);return l.length&&o(),s.length?s.join(""):null}var e=br,r=wr,u=be,i=oo,o=i.key,a=.7;return t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t.defined=function(n){return arguments.length?(u=n,t):u},t.interpolate=function(n){return arguments.length?(o="function"==typeof n?i=n:(i=Ms.get(n)||oo).key,t):o},t.tension=function(n){return arguments.length?(a=n,t):a},t}function oo(n){return n.join("L")}function ao(n){return oo(n)+"Z"}function co(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("H",(r[0]+(r=n[t])[0])/2,"V",r[1]);return e>1&&u.push("H",r[0]),u.join("")}function so(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("V",(r=n[t])[1],"H",r[0]);return u.join("")}function lo(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("H",(r=n[t])[0],"V",r[1]);return u.join("")}function fo(n,t){return n.length<4?oo(n):n[1]+po(n.slice(1,n.length-1),vo(n,t))}function ho(n,t){return n.length<3?oo(n):n[0]+po((n.push(n[0]),n),vo([n[n.length-2]].concat(n,[n[1]]),t))}function go(n,t){return n.length<3?oo(n):n[0]+po(n,vo(n,t))}function po(n,t){if(t.length<1||n.length!=t.length&&n.length!=t.length+2)return oo(n);var e=n.length!=t.length,r="",u=n[0],i=n[1],o=t[0],a=o,c=1;if(e&&(r+="Q"+(i[0]-2*o[0]/3)+","+(i[1]-2*o[1]/3)+","+i[0]+","+i[1],u=n[1],c=2),t.length>1){a=t[1],i=n[c],c++,r+="C"+(u[0]+o[0])+","+(u[1]+o[1])+","+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1];for(var s=2;s<t.length;s++,c++)i=n[c],a=t[s],r+="S"+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1]}if(e){var l=n[c];r+="Q"+(i[0]+2*a[0]/3)+","+(i[1]+2*a[1]/3)+","+l[0]+","+l[1]}return r}function vo(n,t){for(var e,r=[],u=(1-t)/2,i=n[0],o=n[1],a=1,c=n.length;++a<c;)e=i,i=o,o=n[a],r.push([u*(o[0]-e[0]),u*(o[1]-e[1])]);return r}function mo(n){if(n.length<3)return oo(n);var t=1,e=n.length,r=n[0],u=r[0],i=r[1],o=[u,u,u,(r=n[1])[0]],a=[i,i,i,r[1]],c=[u,",",i,"L",_o(ws,o),",",_o(ws,a)];for(n.push(n[e-1]);++t<=e;)r=n[t],o.shift(),o.push(r[0]),a.shift(),a.push(r[1]),bo(c,o,a);return n.pop(),c.push("L",r),c.join("")}function yo(n){if(n.length<4)return oo(n);for(var t,e=[],r=-1,u=n.length,i=[0],o=[0];++r<3;)t=n[r],i.push(t[0]),o.push(t[1]);for(e.push(_o(ws,i)+","+_o(ws,o)),--r;++r<u;)t=n[r],i.shift(),i.push(t[0]),o.shift(),o.push(t[1]),bo(e,i,o);return e.join("")}function xo(n){for(var t,e,r=-1,u=n.length,i=u+4,o=[],a=[];++r<4;)e=n[r%u],o.push(e[0]),a.push(e[1]);for(t=[_o(ws,o),",",_o(ws,a)],--r;++r<i;)e=n[r%u],o.shift(),o.push(e[0]),a.shift(),a.push(e[1]),bo(t,o,a);return t.join("")}function Mo(n,t){var e=n.length-1;if(e)for(var r,u,i=n[0][0],o=n[0][1],a=n[e][0]-i,c=n[e][1]-o,s=-1;++s<=e;)r=n[s],u=s/e,r[0]=t*r[0]+(1-t)*(i+u*a),r[1]=t*r[1]+(1-t)*(o+u*c);return mo(n)}function _o(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}function bo(n,t,e){n.push("C",_o(_s,t),",",_o(_s,e),",",_o(bs,t),",",_o(bs,e),",",_o(ws,t),",",_o(ws,e))}function wo(n,t){return(t[1]-n[1])/(t[0]-n[0])}function So(n){for(var t=0,e=n.length-1,r=[],u=n[0],i=n[1],o=r[0]=wo(u,i);++t<e;)r[t]=(o+(o=wo(u=i,i=n[t+1])))/2;return r[t]=o,r}function ko(n){for(var t,e,r,u,i=[],o=So(n),a=-1,c=n.length-1;++a<c;)t=wo(n[a],n[a+1]),oa(t)<Aa?o[a]=o[a+1]=0:(e=o[a]/t,r=o[a+1]/t,u=e*e+r*r,u>9&&(u=3*t/Math.sqrt(u),o[a]=u*e,o[a+1]=u*r));for(a=-1;++a<=c;)u=(n[Math.min(c,a+1)][0]-n[Math.max(0,a-1)][0])/(6*(1+o[a]*o[a])),i.push([u||0,o[a]*u||0]);return i}function Eo(n){return n.length<3?oo(n):n[0]+po(n,ko(n))}function Ao(n){for(var t,e,r,u=-1,i=n.length;++u<i;)t=n[u],e=t[0],r=t[1]+ys,t[0]=e*Math.cos(r),t[1]=e*Math.sin(r);return n}function Co(n){function t(t){function c(){v.push("M",a(n(m),f),l,s(n(d.reverse()),f),"Z")}for(var h,g,p,v=[],d=[],m=[],y=-1,x=t.length,M=_t(e),_=_t(u),b=e===r?function(){return g}:_t(r),w=u===i?function(){return p}:_t(i);++y<x;)o.call(this,h=t[y],y)?(d.push([g=+M.call(this,h,y),p=+_.call(this,h,y)]),m.push([+b.call(this,h,y),+w.call(this,h,y)])):d.length&&(c(),d=[],m=[]);return d.length&&c(),v.length?v.join(""):null}var e=br,r=br,u=0,i=wr,o=be,a=oo,c=a.key,s=a,l="L",f=.7;return t.x=function(n){return arguments.length?(e=r=n,t):r},t.x0=function(n){return arguments.length?(e=n,t):e},t.x1=function(n){return arguments.length?(r=n,t):r},t.y=function(n){return arguments.length?(u=i=n,t):i},t.y0=function(n){return arguments.length?(u=n,t):u},t.y1=function(n){return arguments.length?(i=n,t):i},t.defined=function(n){return arguments.length?(o=n,t):o},t.interpolate=function(n){return arguments.length?(c="function"==typeof n?a=n:(a=Ms.get(n)||oo).key,s=a.reverse||a,l=a.closed?"M":"L",t):c},t.tension=function(n){return arguments.length?(f=n,t):f},t}function No(n){return n.radius}function Lo(n){return[n.x,n.y]}function To(n){return function(){var t=n.apply(this,arguments),e=t[0],r=t[1]+ys;return[e*Math.cos(r),e*Math.sin(r)]}}function qo(){return 64}function zo(){return"circle"}function Ro(n){var t=Math.sqrt(n/Sa);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Do(n,t){return fa(n,Ns),n.id=t,n}function Po(n,t,e,r){var u=n.id;return R(n,"function"==typeof e?function(n,i,o){n.__transition__[u].tween.set(t,r(e.call(n,n.__data__,i,o)))}:(e=r(e),function(n){n.__transition__[u].tween.set(t,e)}))}function Uo(n){return null==n&&(n=""),function(){this.textContent=n}}function jo(n,t,e,r){var i=n.__transition__||(n.__transition__={active:0,count:0}),o=i[e];if(!o){var a=r.time;o=i[e]={tween:new u,time:a,ease:r.ease,delay:r.delay,duration:r.duration},++i.count,Xo.timer(function(r){function u(r){return i.active>e?s():(i.active=e,o.event&&o.event.start.call(n,l,t),o.tween.forEach(function(e,r){(r=r.call(n,l,t))&&v.push(r)}),Xo.timer(function(){return p.c=c(r||1)?be:c,1},0,a),void 0)}function c(r){if(i.active!==e)return s();for(var u=r/g,a=f(u),c=v.length;c>0;)v[--c].call(n,a);return u>=1?(o.event&&o.event.end.call(n,l,t),s()):void 0}function s(){return--i.count?delete i[e]:delete n.__transition__,1}var l=n.__data__,f=o.ease,h=o.delay,g=o.duration,p=Ja,v=[];return p.t=h+a,r>=h?u(r-h):(p.c=u,void 0)},0,a)}}function Ho(n,t){n.attr("transform",function(n){return"translate("+t(n)+",0)"})}function Fo(n,t){n.attr("transform",function(n){return"translate(0,"+t(n)+")"})}function Oo(n){return n.toISOString()}function Yo(n,t,e){function r(t){return n(t)}function u(n,e){var r=n[1]-n[0],u=r/e,i=Xo.bisect(js,u);return i==js.length?[t.year,Yi(n.map(function(n){return n/31536e6}),e)[2]]:i?t[u/js[i-1]<js[i]/u?i-1:i]:[Os,Yi(n,e)[2]]
/external/webrtc/data/voice_engine/stereo_rtp_files/
H A Dhrtf_g722_1C_48.rtp1306 ȦR�@�H���m%�Cő�D����A炈��$�$l�G��t�M��b��bH @�P/�g�!���f�&�Y�g�$��!B��"�cˆ�H��@DDԞ��0�۫��<�A�9 8���v��5�)QBH�g-#��k�C4W���Ir ��m�4n��ޠ��m�����[�I��( �k �Q��}Q�t���:��� �}��S�I��XÙ�1WT6B�I�b@�y�QT),�yY`���ΐ�a��i�
3983 ���"C��~܊ ��խ�K���'��d�V���2� ��C��dS�ŷF"�Fg�Dr����=�b��egqKnC��`���N��) ��Z�DF� �h"���ǔ� ��?�8,�}���I��X�&*vZ��ư@9����:+��K��>_�0IZ*P ����d��'nar �80�#D,֢2���L�Z2Jp�� U ��@T�J�TP[A��xSV� lS�*KA�<-E�EF0����ʜ�Q����s�����RM�jw��Ai�Ir��%7� t7(���� �c�ɭ@Ѷڼ����R2��ڤkAH"�e�Ω$��8�O�|�ñaH�!8{#,u�e���q ��8@�}��EI��X���5L�)�C a����k�(��!����!��W�D"����q�?8�Vj%g�����HR2#�S�1�Ҿ@��D�@d�R���,Rե,��v�
4182 GxH�d��|�V+=�k�xB��9i0T�� V�d4@ \��0�H~r�O�H�A����ЉJ} �N2#�� Q�$�H�ŅJT������+�����;�}��tEI��X��D�-UW绌{� .��\餐h��Pg\uR1�%W֍v��:��e�-k�|]:��t)��w���t���”��R�6Z�$�Ô�ƾJP������YBjإ|"�2.A�p_m����*WG�"�Y�Jl��F8�2$yN,���,��X����[\�A��b�� � �e{ A�/�U�79 �2��L� ��\U�eU6"���a�`�� �Y!b��r�{nr�]G�;$�}��v�I��X©�t���� ����`���Y� H @�� h ��)7J��F��faZP� D�� ҕ�)��!�*�cr������j��xhRr�N� ��79k<#R� PSXA⏊Z�Xhu�ÜĂ/?A�R-'���<L�Ir�3
4737 � ������C��}_��EI��X�H�����i��?�[�(�Y�&)PWD//�T�T�/UuN J�fj�H�S�%� &5�kU�<�Ú!jjw_5��{Z�7Z�KCN�;��;�i��4Hڒ��r%4΢me�|�Į'��{��~�z~,!b(a��� ���@{��+�iA�.�~�JA��Ir+�/�Z0R���*Ѯ��)Do�ur6JI2x$!�a�dWP�O��Ώ9*4T—D�c��-�U���y=EcK���C��}`���I��X|(h���Q���2d �F� �-�SfF�.�¥t��¼��%�@9��v����`�[@~q��� ��j����
H A Dhrtf_g722_1C_48_jitterT2.rtp1303 ȦR�@�H���m%�Cő�D����A炈��$�$l�G��t�M��b��bH @�P/�g�!���f�&�Y�g�$��!B��"�cˆ�H��@DDԞ��0�۫��<�A�9 8���v��5�)QBH�g-#��k�C4W���Ir ��m�4n��ޠ��m�����[�I��( �k �Q��}Q�t���:���ʀ}��S�I��XÙ�1WT6B�I�b@�y�QT),�yY`���ΐ�a��i�
3939 ���"C��~܊ ��խ�K���'��d�V���2� ��C��dS�ŷF"�Fg�Dr����=�b��egqKnC��`���N��) ��Z�DF� �h"���ǔ� ��?�7�}���I��X�&*vZ��ư@9����:+��K��>_�0IZ*P ����d��'nar �80�#D,֢2���L�Z2Jp�� U ��@T�J�TP[A��xSV� lS�*KA�<-E�EF0����ʜ�Q����s�����RM�jw��Ai�Ir��%7� t7(���� �c�ɭ@Ѷڼ����R2��ڤkAH"�e�Ω$��8�O�|�ñaH�!8{#,u�e���q ��80�}���I��X��]���P�P8�o�;��s�kJ���)fI��H.䜋� ��;�C�@'�
4139 GxH�d��|�V+=�k�xB��9i0T�� V�d4@ \��0�H~r�O�H�A����ЉJ} �N2#�� Q�$�H�ŅJT������+�����;�}��tEI��X��D�-UW绌{� .��\餐h��Pg\uR1�%W֍v��:��e�-k�|]:��t)��w���t���”��R�6Z�$�Ô�ƾJP������YBjإ|"�2.A�p_m����*WG�"�Y�Jl��F8�2$yN,���,��X����[\�A��b�� � �e{ A�/�U�79 �2��L� ��\U�eU6"���a�`�� �Y!b��r�{nr�]G�;�}��v�I��X©�t���� ����`���Y� H @�� h ��)7J��F��faZP� D�� ҕ�)��!�*�cr������j��xhRr�N� ��79k<#R� PSXA⏊Z�Xhu�ÜĂ/?A�R-'���<L�Ir�3
4679 � ������C3�}_��EI��X�H�����i��?�[�(�Y�&)PWD//�T�T�/UuN J�fj�H�S�%� &5�kU�<�Ú!jjw_5��{Z�7Z�KCN�;��;�i��4Hڒ��r%4΢me�|�Į'��{��~�z~,!b(a��� ���@{��+�iA�.�~�JA��Ir+�/�Z0R���*Ѯ��)Do�ur6JI2x$!�a�dWP�O��Ώ9*4T—D�c��-�U���y=EcK���Cv�}`���I��X|(h���Q���2d �F� �-�SfF�.�¥t��¼��%�@9��v����`�[@~q��� ��j����
/external/v8/test/mjsunit/asm/poppler/
H A Dpoppler.js[all...]

Completed in 1764 milliseconds